@taiga-ui/legacy 4.52.0-canary.ec0802b → 4.52.0-canary.efbd0d4

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 (181) hide show
  1. package/components/dialog/dialog.component.d.ts +2 -1
  2. package/components/dialog/dialog.service.d.ts +1 -1
  3. package/components/index.d.ts +0 -11
  4. package/components/mobile-dialog/mobile-dialog.service.d.ts +1 -1
  5. package/components/pdf-viewer/pdf-viewer.service.d.ts +1 -1
  6. package/fesm2022/taiga-ui-legacy-components-dialog.mjs +17 -17
  7. package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -1
  8. package/fesm2022/taiga-ui-legacy-components-mobile-dialog.mjs +8 -8
  9. package/fesm2022/taiga-ui-legacy-components-mobile-dialog.mjs.map +1 -1
  10. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs +11 -11
  11. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs.map +1 -1
  12. package/fesm2022/taiga-ui-legacy-components.mjs +0 -11
  13. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
  14. package/fesm2022/taiga-ui-legacy.mjs +0 -4
  15. package/fesm2022/taiga-ui-legacy.mjs.map +1 -1
  16. package/index.d.ts +0 -4
  17. package/package.json +15 -93
  18. package/classes/abstract-native-select.d.ts +0 -22
  19. package/classes/abstract-textfield-host.d.ts +0 -19
  20. package/classes/control.d.ts +0 -60
  21. package/classes/controller.d.ts +0 -9
  22. package/classes/index.d.ts +0 -9
  23. package/classes/interactive.d.ts +0 -34
  24. package/classes/multiple-control.d.ts +0 -11
  25. package/classes/named-day.d.ts +0 -11
  26. package/classes/nullable-control.d.ts +0 -10
  27. package/classes/stringifiable-item.d.ts +0 -11
  28. package/components/arrow/arrow.component.d.ts +0 -17
  29. package/components/arrow/arrow.options.d.ts +0 -17
  30. package/components/arrow/arrow.providers.d.ts +0 -18
  31. package/components/arrow/index.d.ts +0 -3
  32. package/components/input/index.d.ts +0 -3
  33. package/components/input/input.component.d.ts +0 -32
  34. package/components/input/input.directive.d.ts +0 -12
  35. package/components/input/input.module.d.ts +0 -16
  36. package/components/input-date-range/index.d.ts +0 -3
  37. package/components/input-date-range/input-date-range.component.d.ts +0 -66
  38. package/components/input-date-range/input-date-range.directive.d.ts +0 -16
  39. package/components/input-date-range/input-date-range.module.d.ts +0 -21
  40. package/components/input-date-time/index.d.ts +0 -3
  41. package/components/input-date-time/input-date-time.component.d.ts +0 -87
  42. package/components/input-date-time/input-date-time.directive.d.ts +0 -17
  43. package/components/input-date-time/input-date-time.module.d.ts +0 -23
  44. package/components/input-date-time/native-date-time/native-date-time.directive.d.ts +0 -13
  45. package/components/input-month-range/index.d.ts +0 -3
  46. package/components/input-month-range/input-month-range.component.d.ts +0 -38
  47. package/components/input-month-range/input-month-range.directive.d.ts +0 -23
  48. package/components/input-month-range/input-month-range.module.d.ts +0 -18
  49. package/components/input-number/index.d.ts +0 -4
  50. package/components/input-number/input-number.component.d.ts +0 -62
  51. package/components/input-number/input-number.directive.d.ts +0 -16
  52. package/components/input-number/input-number.module.d.ts +0 -18
  53. package/components/input-number/input-number.options.d.ts +0 -23
  54. package/components/input-range/index.d.ts +0 -2
  55. package/components/input-range/input-range.component.d.ts +0 -56
  56. package/components/input-range/input-range.module.d.ts +0 -19
  57. package/components/primitive-textfield/index.d.ts +0 -7
  58. package/components/primitive-textfield/primitive-textfield-options.d.ts +0 -21
  59. package/components/primitive-textfield/primitive-textfield-types.d.ts +0 -11
  60. package/components/primitive-textfield/primitive-textfield.component.d.ts +0 -73
  61. package/components/primitive-textfield/primitive-textfield.directive.d.ts +0 -14
  62. package/components/primitive-textfield/primitive-textfield.module.d.ts +0 -21
  63. package/components/primitive-textfield/textfield/textfield.component.d.ts +0 -13
  64. package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +0 -22
  65. package/components/select/index.d.ts +0 -6
  66. package/components/select/native-select/native-select-group.component.d.ts +0 -17
  67. package/components/select/native-select/native-select.component.d.ts +0 -16
  68. package/components/select/select.component.d.ts +0 -45
  69. package/components/select/select.directive.d.ts +0 -16
  70. package/components/select/select.module.d.ts +0 -24
  71. package/components/select/select.options.d.ts +0 -19
  72. package/components/select-option/index.d.ts +0 -2
  73. package/components/select-option/select-option.component.d.ts +0 -27
  74. package/components/select-option/select-option.module.d.ts +0 -10
  75. package/components/tooltip/index.d.ts +0 -2
  76. package/components/tooltip/tooltip.component.d.ts +0 -12
  77. package/components/tooltip/tooltip.module.d.ts +0 -13
  78. package/directives/index.d.ts +0 -5
  79. package/directives/legacy-dropdown-open-monitor/index.d.ts +0 -1
  80. package/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.d.ts +0 -11
  81. package/directives/textfield-controller/index.d.ts +0 -14
  82. package/directives/textfield-controller/textfield-appearance.directive.d.ts +0 -9
  83. package/directives/textfield-controller/textfield-cleaner.directive.d.ts +0 -9
  84. package/directives/textfield-controller/textfield-controller.module.d.ts +0 -17
  85. package/directives/textfield-controller/textfield-controller.provider.d.ts +0 -4
  86. package/directives/textfield-controller/textfield-custom-content.directive.d.ts +0 -10
  87. package/directives/textfield-controller/textfield-filler.directive.d.ts +0 -9
  88. package/directives/textfield-controller/textfield-icon-left.directive.d.ts +0 -12
  89. package/directives/textfield-controller/textfield-icon.directive.d.ts +0 -12
  90. package/directives/textfield-controller/textfield-label-outside.directive.d.ts +0 -9
  91. package/directives/textfield-controller/textfield-postfix.directive.d.ts +0 -9
  92. package/directives/textfield-controller/textfield-prefix.directive.d.ts +0 -9
  93. package/directives/textfield-controller/textfield-size.directive.d.ts +0 -10
  94. package/directives/textfield-controller/textfield.controller.d.ts +0 -41
  95. package/directives/textfield-controller/textfield.options.d.ts +0 -17
  96. package/directives/unfinished-validator/index.d.ts +0 -2
  97. package/directives/unfinished-validator/unfinished-validator.directive.d.ts +0 -10
  98. package/directives/unfinished-validator/unfinished.validator.d.ts +0 -4
  99. package/directives/value-accessor/index.d.ts +0 -3
  100. package/directives/value-accessor/value-accessor.directive.d.ts +0 -5
  101. package/directives/value-accessor/value-accessor.module.d.ts +0 -7
  102. package/directives/value-accessor/value-accessor.provider.d.ts +0 -2
  103. package/directives/wrapper/README.md +0 -19
  104. package/directives/wrapper/index.d.ts +0 -2
  105. package/directives/wrapper/wrapper.directive.d.ts +0 -22
  106. package/directives/wrapper/wrapper.module.d.ts +0 -10
  107. package/fesm2022/taiga-ui-legacy-classes.mjs +0 -413
  108. package/fesm2022/taiga-ui-legacy-classes.mjs.map +0 -1
  109. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +0 -72
  110. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +0 -1
  111. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +0 -346
  112. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +0 -1
  113. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +0 -459
  114. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +0 -1
  115. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +0 -221
  116. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +0 -1
  117. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +0 -375
  118. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +0 -1
  119. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +0 -261
  120. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +0 -1
  121. package/fesm2022/taiga-ui-legacy-components-input.mjs +0 -156
  122. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +0 -1
  123. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +0 -454
  124. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +0 -1
  125. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +0 -88
  126. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +0 -1
  127. package/fesm2022/taiga-ui-legacy-components-select.mjs +0 -345
  128. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +0 -1
  129. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +0 -53
  130. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +0 -1
  131. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +0 -49
  132. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +0 -1
  133. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +0 -397
  134. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +0 -1
  135. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +0 -48
  136. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +0 -1
  137. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +0 -44
  138. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +0 -1
  139. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +0 -99
  140. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +0 -1
  141. package/fesm2022/taiga-ui-legacy-directives.mjs +0 -10
  142. package/fesm2022/taiga-ui-legacy-directives.mjs.map +0 -1
  143. package/fesm2022/taiga-ui-legacy-tokens.mjs +0 -384
  144. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +0 -1
  145. package/fesm2022/taiga-ui-legacy-utils.mjs +0 -262
  146. package/fesm2022/taiga-ui-legacy-utils.mjs.map +0 -1
  147. package/styles/mixins/mixins.less +0 -239
  148. package/styles/mixins/mixins.scss +0 -224
  149. package/styles/mixins/textfield.less +0 -324
  150. package/styles/mixins/textfield.scss +0 -308
  151. package/styles/taiga-ui-local.less +0 -3
  152. package/styles/taiga-ui-local.scss +0 -3
  153. package/tokens/countries-masks.d.ts +0 -9
  154. package/tokens/focusable-item-accessor.d.ts +0 -25
  155. package/tokens/fonts-ready.d.ts +0 -6
  156. package/tokens/icons.d.ts +0 -6
  157. package/tokens/index.d.ts +0 -14
  158. package/tokens/is-apple.d.ts +0 -6
  159. package/tokens/is-chromium.d.ts +0 -6
  160. package/tokens/is-firefox.d.ts +0 -6
  161. package/tokens/is-stackblitz.d.ts +0 -5
  162. package/tokens/month-formatter.d.ts +0 -10
  163. package/tokens/sanitizer.d.ts +0 -6
  164. package/tokens/textfield-appearance.d.ts +0 -7
  165. package/tokens/textfield-host.d.ts +0 -23
  166. package/tokens/touch-supported.d.ts +0 -5
  167. package/tokens/value-accessor.d.ts +0 -7
  168. package/utils/capitalize-first-letter.d.ts +0 -4
  169. package/utils/date-mode-maskito-adapter.d.ts +0 -6
  170. package/utils/format-phone.d.ts +0 -30
  171. package/utils/get-border.d.ts +0 -5
  172. package/utils/get-max-allowed-phone-length.d.ts +0 -24
  173. package/utils/get-safe-area-size.d.ts +0 -7
  174. package/utils/icons-path-factory.d.ts +0 -13
  175. package/utils/index.d.ts +0 -13
  176. package/utils/is-presumed-html-string.d.ts +0 -4
  177. package/utils/iso-to-country-code.d.ts +0 -13
  178. package/utils/not-kz-region.d.ts +0 -20
  179. package/utils/process-icon.d.ts +0 -4
  180. package/utils/specific-dropdown-controllers.d.ts +0 -4
  181. package/utils/status.d.ts +0 -4
@@ -1,88 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
- import { NgControl } from '@angular/forms';
4
- import { TUI_DEFAULT_IDENTITY_MATCHER } from '@taiga-ui/cdk/constants';
5
- import { tuiTypedFromEvent } from '@taiga-ui/cdk/observables';
6
- import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
7
- import { tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
8
- import { TUI_DATA_LIST_HOST, TuiOption, TuiDataListComponent } from '@taiga-ui/core/components/data-list';
9
- import { TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
10
- import { AbstractTuiControl } from '@taiga-ui/legacy/classes';
11
- import { injectContext, PolymorpheusComponent } from '@taiga-ui/polymorpheus';
12
- import { Subject, merge, EMPTY, startWith, map, distinctUntilChanged } from 'rxjs';
13
- import * as i1 from '@angular/common';
14
- import { CommonModule } from '@angular/common';
15
- import * as i2 from '@taiga-ui/core/components/icon';
16
- import { TuiIcon } from '@taiga-ui/core/components/icon';
17
- import * as i3 from '@taiga-ui/core/components/scrollbar';
18
- import { TuiScrollIntoView } from '@taiga-ui/core/components/scrollbar';
19
-
20
- class TuiSelectOptionComponent {
21
- constructor() {
22
- this.host = inject(TUI_DATA_LIST_HOST);
23
- this.el = tuiInjectElement();
24
- this.changeDetection$ = new Subject();
25
- this.abstractControl = inject((AbstractTuiControl), { optional: true });
26
- this.control = inject(NgControl);
27
- this.option = inject((TuiOption));
28
- this.dataList = inject((TuiDataListComponent), { optional: true });
29
- this.icons = inject(TUI_COMMON_ICONS);
30
- this.context = injectContext();
31
- this.selected$ = merge(this.abstractControl?.update$ || EMPTY, this.changeDetection$, this.control.valueChanges || EMPTY, tuiTypedFromEvent(this.el, 'animationstart')).pipe(startWith(null), map(() => this.selected), distinctUntilChanged());
32
- }
33
- ngOnInit() {
34
- /**
35
- * This would cause changes inside already checked parent component (during the same change detection cycle),
36
- * and it might cause ExpressionChanged error due to potential HostBinding
37
- * (for example, inside {@link https://github.com/angular/angular/blob/main/packages/forms/src/directives/ng_control_status.ts#L99 NgControlStatus}).
38
- * Microtask keeps it in the same frame but allows change detection to run.
39
- */
40
- void Promise.resolve().then(() => {
41
- if (tuiIsPresent(this.option.value) && !this.option.disabled) {
42
- this.host.checkOption?.(this.option.value);
43
- }
44
- });
45
- }
46
- ngDoCheck() {
47
- this.changeDetection$.next();
48
- }
49
- get value() {
50
- return this.abstractControl?.value ?? this.control.value;
51
- }
52
- get matcher() {
53
- return this.host.identityMatcher || TUI_DEFAULT_IDENTITY_MATCHER;
54
- }
55
- get selected() {
56
- return (tuiIsPresent(this.option.value) &&
57
- tuiIsPresent(this.value) &&
58
- this.matcher(this.value, this.option.value));
59
- }
60
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSelectOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
61
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiSelectOptionComponent, isStandalone: false, selector: "tui-select-option", ngImport: i0, template: "<ng-container [ngTemplateOutlet]=\"context.$implicit\" />\n@if (selected$ | async) {\n <tui-icon\n automation-id=\"tui-select-option__checkmark\"\n class=\"t-checkmark\"\n [icon]=\"icons.check\"\n [tuiScrollIntoView]=\"true\"\n />\n} @else {\n <span class=\"t-dummy\"></span>\n}\n", styles: ["@keyframes retrigger{0%{left:1px}to{left:2px}}:host{display:flex;flex:1;align-items:center;max-inline-size:100%;animation:retrigger 1s}.t-checkmark{margin-inline-start:auto;inline-size:1.75rem;border-width:.25rem;border-inline-start-width:.5rem}.t-checkmark:after{font-size:1rem}:host-context(tui-data-list[data-size=\"s\"]) .t-checkmark{margin-inline-end:-.375rem}:host-context(tui-data-list[data-size=\"m\"]) .t-checkmark{margin-inline-end:-.125rem}.t-dummy{inline-size:1.75rem}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.TuiIcon, selector: "tui-icon:not([tuiBadge])", inputs: ["background"] }, { kind: "directive", type: i3.TuiScrollIntoView, selector: "[tuiScrollIntoView]", inputs: ["tuiScrollIntoView"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
62
- }
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSelectOptionComponent, decorators: [{
64
- type: Component,
65
- args: [{ standalone: false, selector: 'tui-select-option', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [ngTemplateOutlet]=\"context.$implicit\" />\n@if (selected$ | async) {\n <tui-icon\n automation-id=\"tui-select-option__checkmark\"\n class=\"t-checkmark\"\n [icon]=\"icons.check\"\n [tuiScrollIntoView]=\"true\"\n />\n} @else {\n <span class=\"t-dummy\"></span>\n}\n", styles: ["@keyframes retrigger{0%{left:1px}to{left:2px}}:host{display:flex;flex:1;align-items:center;max-inline-size:100%;animation:retrigger 1s}.t-checkmark{margin-inline-start:auto;inline-size:1.75rem;border-width:.25rem;border-inline-start-width:.5rem}.t-checkmark:after{font-size:1rem}:host-context(tui-data-list[data-size=\"s\"]) .t-checkmark{margin-inline-end:-.375rem}:host-context(tui-data-list[data-size=\"m\"]) .t-checkmark{margin-inline-end:-.125rem}.t-dummy{inline-size:1.75rem}\n"] }]
66
- }] });
67
- const TUI_SELECT_OPTION = new PolymorpheusComponent(TuiSelectOptionComponent);
68
-
69
- class TuiSelectOptionModule {
70
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSelectOptionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
71
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiSelectOptionModule, declarations: [TuiSelectOptionComponent], imports: [CommonModule, TuiIcon, TuiScrollIntoView], exports: [TuiSelectOptionComponent] }); }
72
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSelectOptionModule, imports: [CommonModule, TuiIcon] }); }
73
- }
74
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSelectOptionModule, decorators: [{
75
- type: NgModule,
76
- args: [{
77
- imports: [CommonModule, TuiIcon, TuiScrollIntoView],
78
- declarations: [TuiSelectOptionComponent],
79
- exports: [TuiSelectOptionComponent],
80
- }]
81
- }] });
82
-
83
- /**
84
- * Generated bundle index. Do not edit.
85
- */
86
-
87
- export { TUI_SELECT_OPTION, TuiSelectOptionComponent, TuiSelectOptionModule };
88
- //# sourceMappingURL=taiga-ui-legacy-components-select-option.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-legacy-components-select-option.mjs","sources":["../../../projects/legacy/components/select-option/select-option.component.ts","../../../projects/legacy/components/select-option/select-option.template.html","../../../projects/legacy/components/select-option/select-option.module.ts","../../../projects/legacy/components/select-option/taiga-ui-legacy-components-select-option.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n type DoCheck,\n inject,\n type OnInit,\n type TemplateRef,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {TUI_DEFAULT_IDENTITY_MATCHER} from '@taiga-ui/cdk/constants';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {type TuiContext, type TuiIdentityMatcher} from '@taiga-ui/cdk/types';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_DATA_LIST_HOST,\n TuiDataListComponent,\n type TuiDataListHost,\n TuiOption,\n} from '@taiga-ui/core/components/data-list';\nimport {TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {AbstractTuiControl} from '@taiga-ui/legacy/classes';\nimport {injectContext, PolymorpheusComponent} from '@taiga-ui/polymorpheus';\nimport {distinctUntilChanged, EMPTY, map, merge, startWith, Subject} from 'rxjs';\n\n@Component({\n standalone: false,\n selector: 'tui-select-option',\n templateUrl: './select-option.template.html',\n styleUrl: './select-option.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSelectOptionComponent<T> implements OnInit, DoCheck {\n private readonly host = inject<TuiDataListHost<T>>(TUI_DATA_LIST_HOST);\n private readonly el = tuiInjectElement();\n private readonly changeDetection$ = new Subject<void>();\n protected readonly abstractControl = inject(AbstractTuiControl<T>, {optional: true});\n protected readonly control = inject(NgControl);\n protected readonly option = inject(TuiOption<T>);\n protected readonly dataList = inject(TuiDataListComponent<T>, {optional: true});\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly context =\n injectContext<TuiContext<TemplateRef<Record<string, unknown>>>>();\n\n protected readonly selected$ = merge<unknown[]>(\n this.abstractControl?.update$ || EMPTY,\n this.changeDetection$,\n this.control.valueChanges || EMPTY,\n tuiTypedFromEvent(this.el, 'animationstart'),\n ).pipe(\n startWith(null),\n map(() => this.selected),\n distinctUntilChanged(),\n );\n\n public ngOnInit(): void {\n /**\n * This would cause changes inside already checked parent component (during the same change detection cycle),\n * and it might cause ExpressionChanged error due to potential HostBinding\n * (for example, inside {@link https://github.com/angular/angular/blob/main/packages/forms/src/directives/ng_control_status.ts#L99 NgControlStatus}).\n * Microtask keeps it in the same frame but allows change detection to run.\n */\n void Promise.resolve().then(() => {\n if (tuiIsPresent(this.option.value) && !this.option.disabled) {\n this.host.checkOption?.(this.option.value);\n }\n });\n }\n\n public ngDoCheck(): void {\n this.changeDetection$.next();\n }\n\n protected get value(): T | null {\n return this.abstractControl?.value ?? this.control.value;\n }\n\n protected get matcher(): TuiIdentityMatcher<T> {\n return this.host.identityMatcher || TUI_DEFAULT_IDENTITY_MATCHER;\n }\n\n protected get selected(): boolean {\n return (\n tuiIsPresent(this.option.value) &&\n tuiIsPresent(this.value) &&\n this.matcher(this.value, this.option.value)\n );\n }\n}\n\nexport const TUI_SELECT_OPTION = new PolymorpheusComponent(TuiSelectOptionComponent);\n","<ng-container [ngTemplateOutlet]=\"context.$implicit\" />\n@if (selected$ | async) {\n <tui-icon\n automation-id=\"tui-select-option__checkmark\"\n class=\"t-checkmark\"\n [icon]=\"icons.check\"\n [tuiScrollIntoView]=\"true\"\n />\n} @else {\n <span class=\"t-dummy\"></span>\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiScrollIntoView} from '@taiga-ui/core/components/scrollbar';\n\nimport {TuiSelectOptionComponent} from './select-option.component';\n\n@NgModule({\n imports: [CommonModule, TuiIcon, TuiScrollIntoView],\n declarations: [TuiSelectOptionComponent],\n exports: [TuiSelectOptionComponent],\n})\nexport class TuiSelectOptionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;MAgCa,wBAAwB,CAAA;AAPrC,IAAA,WAAA,GAAA;AAQqB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAqB,kBAAkB,CAAC;QACrD,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;AACvB,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,OAAO,EAAQ;AACpC,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,EAAC,kBAAqB,GAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;AACjE,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC;AAC3B,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,EAAC,SAAY,EAAC;AAC7B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,EAAC,oBAAuB,GAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;AAC5D,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC;QAChC,IAAO,CAAA,OAAA,GACtB,aAAa,EAAoD;QAElD,IAAS,CAAA,SAAA,GAAG,KAAK,CAChC,IAAI,CAAC,eAAe,EAAE,OAAO,IAAI,KAAK,EACtC,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,KAAK,EAClC,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,gBAAgB,CAAC,CAC/C,CAAC,IAAI,CACF,SAAS,CAAC,IAAI,CAAC,EACf,GAAG,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,EACxB,oBAAoB,EAAE,CACzB;AAmCJ;IAjCU,QAAQ,GAAA;AACX;;;;;AAKG;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YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,iBAAiB,CAAC;oBACnD,YAAY,EAAE,CAAC,wBAAwB,CAAC;oBACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;AACtC,iBAAA;;;ACXD;;AAEG;;;;"}
@@ -1,345 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { TemplateRef, Input, ChangeDetectionStrategy, Component, inject, ContentChild, ViewChild, Directive, NgModule } from '@angular/core';
3
- import { tuiProvide } from '@taiga-ui/cdk/utils/miscellaneous';
4
- import * as i1 from '@taiga-ui/core/components/data-list';
5
- import { tuiAsDataList, TuiDataListDirective, tuiAsDataListHost, tuiAsOptionContent, TuiDataList } from '@taiga-ui/core/components/data-list';
6
- import { AbstractTuiNativeSelect, AbstractTuiNullableControl, tuiAsControl, AbstractTuiTextfieldHost } from '@taiga-ui/legacy/classes';
7
- import * as i2 from '@taiga-ui/kit/components/data-list-wrapper';
8
- import { TuiDataListWrapper } from '@taiga-ui/kit/components/data-list-wrapper';
9
- import * as i3 from '@angular/common';
10
- import { CommonModule } from '@angular/common';
11
- import * as i4 from '@taiga-ui/kit/pipes/stringify-content';
12
- import { TuiStringifyContentPipe } from '@taiga-ui/kit/pipes/stringify-content';
13
- import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
14
- import { tuiIsFocused } from '@taiga-ui/cdk/utils/focus';
15
- import * as i3$2 from '@taiga-ui/core/directives/dropdown';
16
- import { TuiDropdownOpen, TuiDropdownFixed, TuiDropdown } from '@taiga-ui/core/directives/dropdown';
17
- import { TUI_ITEMS_HANDLERS } from '@taiga-ui/kit/tokens';
18
- import { TUI_ARROW_MODE, TuiArrowComponent } from '@taiga-ui/legacy/components/arrow';
19
- import * as i4$1 from '@taiga-ui/legacy/components/primitive-textfield';
20
- import { TuiPrimitiveTextfieldComponent, TuiTextfieldComponent, TuiPrimitiveTextfieldModule } from '@taiga-ui/legacy/components/primitive-textfield';
21
- import { TUI_SELECT_OPTION, TuiSelectOptionModule } from '@taiga-ui/legacy/components/select-option';
22
- import * as i3$1 from '@taiga-ui/legacy/directives';
23
- import { TUI_TEXTFIELD_CLEANER, TUI_TEXTFIELD_SIZE, TuiLegacyDropdownOpenMonitorDirective, TuiTextfieldControllerModule, TuiWrapperModule } from '@taiga-ui/legacy/directives';
24
- import { tuiAsFocusableItemAccessor, tuiAsTextfieldHost } from '@taiga-ui/legacy/tokens';
25
- import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
26
- import * as i2$1 from '@taiga-ui/polymorpheus';
27
- import { PolymorpheusOutlet, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
28
-
29
- /**
30
- * TODO(v5): delete it
31
- * @deprecated use native picker from new version of {@link https://taiga-ui.dev/components/select#native-picker-disabled-option TuiSelect} (from @taiga-ui/kit) instead
32
- */
33
- class TuiNativeSelectComponent extends AbstractTuiNativeSelect {
34
- constructor() {
35
- super(...arguments);
36
- this.items = [];
37
- }
38
- get stringify() {
39
- return this.host.stringify;
40
- }
41
- selected(option) {
42
- return this.control.value === option;
43
- }
44
- onValueChange(index) {
45
- this.host.onValueChange(this.items?.[index] || null);
46
- }
47
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNativeSelectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
48
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiNativeSelectComponent, isStandalone: false, selector: "select[tuiSelect]:not([labels]):not([multiple])", inputs: { items: "items" }, host: { listeners: { "change": "onValueChange($event.target.options.selectedIndex - (emptyOption ? 1 : 0))" }, properties: { "attr.aria-invalid": "host.invalid", "disabled": "host.disabled || control.readOnly", "tabIndex": "host.focusable ? 0 : -1", "value": "host.value" } }, providers: [
49
- tuiAsDataList(TuiNativeSelectComponent),
50
- tuiProvide(AbstractTuiNativeSelect, TuiNativeSelectComponent),
51
- {
52
- provide: TemplateRef,
53
- deps: [TuiNativeSelectComponent],
54
- useFactory: ({ datalist }) => datalist,
55
- },
56
- ], usesInheritance: true, ngImport: i0, template: "<tui-data-list-wrapper\n *tuiDataList\n [disabledItemHandler]=\"disabledItemHandler || itemsHandlers.disabledItemHandler\"\n [itemContent]=\"stringify | tuiStringifyContent\"\n [items]=\"items\"\n/>\n@if (control.control?.valueChanges | async) {}\n@if (emptyOption) {\n <option\n disabled\n selected\n value=\"\"\n >\n {{ placeholder }}\n </option>\n}\n@for (option of items; track option) {\n <option\n [disabled]=\"disabledItemHandler ? disabledItemHandler(option) : itemsHandlers.disabledItemHandler(option)\"\n [selected]=\"selected(option)\"\n [value]=\"stringify(option)\"\n >\n {{ stringify(option) }}\n </option>\n}\n", styles: [":host{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;opacity:0}\n"], dependencies: [{ kind: "directive", type: i1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { kind: "component", type: i2.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels]), tui-data-list-wrapper:not([labels])[new]", inputs: ["items", "disabledItemHandler", "emptyContent", "size", "itemContent"], outputs: ["itemClick"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TuiStringifyContentPipe, name: "tuiStringifyContent" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
57
- }
58
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNativeSelectComponent, decorators: [{
59
- type: Component,
60
- args: [{ standalone: false, selector: 'select[tuiSelect]:not([labels]):not([multiple])', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
61
- tuiAsDataList(TuiNativeSelectComponent),
62
- tuiProvide(AbstractTuiNativeSelect, TuiNativeSelectComponent),
63
- {
64
- provide: TemplateRef,
65
- deps: [TuiNativeSelectComponent],
66
- useFactory: ({ datalist }) => datalist,
67
- },
68
- ], host: {
69
- '[attr.aria-invalid]': 'host.invalid',
70
- '[disabled]': 'host.disabled || control.readOnly',
71
- '[tabIndex]': 'host.focusable ? 0 : -1',
72
- '[value]': 'host.value',
73
- '(change)': 'onValueChange($event.target.options.selectedIndex - (emptyOption ? 1 : 0))',
74
- }, template: "<tui-data-list-wrapper\n *tuiDataList\n [disabledItemHandler]=\"disabledItemHandler || itemsHandlers.disabledItemHandler\"\n [itemContent]=\"stringify | tuiStringifyContent\"\n [items]=\"items\"\n/>\n@if (control.control?.valueChanges | async) {}\n@if (emptyOption) {\n <option\n disabled\n selected\n value=\"\"\n >\n {{ placeholder }}\n </option>\n}\n@for (option of items; track option) {\n <option\n [disabled]=\"disabledItemHandler ? disabledItemHandler(option) : itemsHandlers.disabledItemHandler(option)\"\n [selected]=\"selected(option)\"\n [value]=\"stringify(option)\"\n >\n {{ stringify(option) }}\n </option>\n}\n", styles: [":host{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;opacity:0}\n"] }]
75
- }], propDecorators: { items: [{
76
- type: Input
77
- }] } });
78
-
79
- /**
80
- * TODO(v5): delete it
81
- * @deprecated use native picker from new version of {@link https://taiga-ui.dev/components/select#native-picker-groups TuiSelect} (from @taiga-ui/kit) instead
82
- */
83
- class TuiNativeSelectGroupComponent extends AbstractTuiNativeSelect {
84
- constructor() {
85
- super(...arguments);
86
- this.items = [];
87
- this.labels = [];
88
- }
89
- get stringify() {
90
- return this.host.stringify;
91
- }
92
- selected(option) {
93
- return this.control.value === option;
94
- }
95
- onValueChange(index) {
96
- const flatItems = this.items?.reduce((acc, val) => acc.concat(val), []);
97
- this.host.onValueChange(flatItems?.[index] || null);
98
- }
99
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNativeSelectGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
100
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiNativeSelectGroupComponent, isStandalone: false, selector: "select[tuiSelect][labels]:not([multiple])", inputs: { items: "items", labels: "labels" }, host: { listeners: { "change": "onValueChange($event.target.options.selectedIndex - (emptyOption ? 1 : 0))" }, properties: { "attr.aria-invalid": "host.invalid", "disabled": "host.disabled || control.readOnly", "tabIndex": "host.focusable ? 0 : -1", "value": "host.value" } }, providers: [
101
- tuiAsDataList(TuiNativeSelectGroupComponent),
102
- tuiProvide(AbstractTuiNativeSelect, TuiNativeSelectGroupComponent),
103
- {
104
- provide: TemplateRef,
105
- deps: [TuiNativeSelectGroupComponent],
106
- useFactory: ({ datalist }) => datalist,
107
- },
108
- ], usesInheritance: true, ngImport: i0, template: "<tui-data-list-wrapper\n *tuiDataList\n [disabledItemHandler]=\"disabledItemHandler || itemsHandlers.disabledItemHandler\"\n [itemContent]=\"stringify | tuiStringifyContent\"\n [items]=\"items\"\n [labels]=\"labels\"\n/>\n@if (control.control?.valueChanges | async) {}\n@if (emptyOption) {\n <option\n disabled\n selected\n value=\"\"\n >\n {{ placeholder }}\n </option>\n}\n@for (group of items; track group) {\n <optgroup [label]=\"labels[$index]\">\n @for (option of group; track option; let i = $index) {\n <option\n [disabled]=\"\n disabledItemHandler ? disabledItemHandler(option) : itemsHandlers.disabledItemHandler(option)\n \"\n [selected]=\"selected(option)\"\n [value]=\"stringify(option)\"\n >\n {{ stringify(option) }}\n </option>\n }\n </optgroup>\n}\n", styles: [":host{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;opacity:0}\n"], dependencies: [{ kind: "directive", type: i1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { kind: "component", type: i2.TuiDataListGroupWrapperComponent, selector: "tui-data-list-wrapper[labels]", inputs: ["labels"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TuiStringifyContentPipe, name: "tuiStringifyContent" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
109
- }
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNativeSelectGroupComponent, decorators: [{
111
- type: Component,
112
- args: [{ standalone: false, selector: 'select[tuiSelect][labels]:not([multiple])', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
113
- tuiAsDataList(TuiNativeSelectGroupComponent),
114
- tuiProvide(AbstractTuiNativeSelect, TuiNativeSelectGroupComponent),
115
- {
116
- provide: TemplateRef,
117
- deps: [TuiNativeSelectGroupComponent],
118
- useFactory: ({ datalist }) => datalist,
119
- },
120
- ], host: {
121
- '[attr.aria-invalid]': 'host.invalid',
122
- '[disabled]': 'host.disabled || control.readOnly',
123
- '[tabIndex]': 'host.focusable ? 0 : -1',
124
- '[value]': 'host.value',
125
- '(change)': 'onValueChange($event.target.options.selectedIndex - (emptyOption ? 1 : 0))',
126
- }, template: "<tui-data-list-wrapper\n *tuiDataList\n [disabledItemHandler]=\"disabledItemHandler || itemsHandlers.disabledItemHandler\"\n [itemContent]=\"stringify | tuiStringifyContent\"\n [items]=\"items\"\n [labels]=\"labels\"\n/>\n@if (control.control?.valueChanges | async) {}\n@if (emptyOption) {\n <option\n disabled\n selected\n value=\"\"\n >\n {{ placeholder }}\n </option>\n}\n@for (group of items; track group) {\n <optgroup [label]=\"labels[$index]\">\n @for (option of group; track option; let i = $index) {\n <option\n [disabled]=\"\n disabledItemHandler ? disabledItemHandler(option) : itemsHandlers.disabledItemHandler(option)\n \"\n [selected]=\"selected(option)\"\n [value]=\"stringify(option)\"\n >\n {{ stringify(option) }}\n </option>\n }\n </optgroup>\n}\n", styles: [":host{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;opacity:0}\n"] }]
127
- }], propDecorators: { items: [{
128
- type: Input
129
- }], labels: [{
130
- type: Input
131
- }] } });
132
-
133
- /**
134
- * TODO(v5): delete it
135
- * @deprecated use new version of {@link https://taiga-ui.dev/components/select TuiSelect} (from @taiga-ui/kit) instead
136
- */
137
- const TUI_SELECT_DEFAULT_OPTIONS = {
138
- valueContent: '',
139
- };
140
- /**
141
- * TODO(v5): delete it
142
- * @deprecated use new version of {@link https://taiga-ui.dev/components/select TuiSelect} (from @taiga-ui/kit) instead
143
- */
144
- const [TUI_SELECT_OPTIONS, tuiSelectOptionsProvider] = tuiCreateOptions(TUI_SELECT_DEFAULT_OPTIONS);
145
-
146
- /**
147
- * TODO(v5): delete it
148
- * @deprecated use new version of {@link https://taiga-ui.dev/components/select TuiSelect} (from @taiga-ui/kit) instead
149
- */
150
- class TuiSelectComponent extends AbstractTuiNullableControl {
151
- constructor() {
152
- super(...arguments);
153
- this.itemsHandlers = inject(TUI_ITEMS_HANDLERS);
154
- this.textfieldCleaner = inject(TUI_TEXTFIELD_CLEANER);
155
- this.textfieldSize = inject(TUI_TEXTFIELD_SIZE);
156
- this.arrowMode = inject(TUI_ARROW_MODE);
157
- this.options = inject(TUI_SELECT_OPTIONS);
158
- this.isMobile = inject(TUI_IS_MOBILE);
159
- this.open = false;
160
- this.stringify = this.itemsHandlers.stringify;
161
- this.identityMatcher = this.itemsHandlers.identityMatcher;
162
- this.valueContent = this.options.valueContent;
163
- }
164
- get size() {
165
- return this.textfieldSize.size;
166
- }
167
- get nativeFocusableElement() {
168
- return this.textfield?.nativeFocusableElement ?? null;
169
- }
170
- get focused() {
171
- return (tuiIsFocused(this.nativeFocusableElement) || !!this.dropdown?.tuiDropdownOpen);
172
- }
173
- get computedValue() {
174
- return this.value === null ? '' : this.stringify(this.value) || ' ';
175
- }
176
- onValueChange(value) {
177
- this.value = value || null;
178
- }
179
- handleOption(option) {
180
- this.focusInput();
181
- this.value = option;
182
- this.open = false;
183
- }
184
- get arrow() {
185
- return !this.interactive ? this.arrowMode.disabled : this.arrowMode.interactive;
186
- }
187
- get nativeDropdownMode() {
188
- return !!this.nativeSelect && this.isMobile;
189
- }
190
- get computedContent() {
191
- return this.valueContent || this.computedValue;
192
- }
193
- onActiveZone(active) {
194
- this.updateFocused(active);
195
- }
196
- onKeyDownDelete() {
197
- if (this.textfieldCleaner.cleaner) {
198
- this.value = null;
199
- }
200
- }
201
- focusInput(preventScroll = false) {
202
- if (this.nativeFocusableElement) {
203
- this.nativeFocusableElement.focus({ preventScroll });
204
- }
205
- }
206
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSelectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
207
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiSelectComponent, isStandalone: false, selector: "tui-select", inputs: { stringify: "stringify", identityMatcher: "identityMatcher", valueContent: "valueContent" }, host: { properties: { "attr.data-size": "size" } }, providers: [
208
- tuiAsFocusableItemAccessor(TuiSelectComponent),
209
- tuiAsControl(TuiSelectComponent),
210
- tuiAsDataListHost(TuiSelectComponent),
211
- tuiAsOptionContent(TUI_SELECT_OPTION),
212
- ], queries: [{ propertyName: "nativeSelect", first: true, predicate: AbstractTuiNativeSelect, descendants: true, static: true }, { propertyName: "datalist", first: true, predicate: TuiDataListDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }, { propertyName: "dropdown", first: true, predicate: TuiDropdownOpen, descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i3$2.TuiDropdownFixed }], ngImport: i0, template: "<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"datalist || ''\"\n [tuiDropdownEnabled]=\"interactive && !nativeDropdownMode\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-select__textfield\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [editable]=\"false\"\n [focusable]=\"computedFocusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [value]=\"computedValue\"\n (keydown.backspace.prevent)=\"onKeyDownDelete()\"\n (keydown.delete.prevent)=\"onKeyDownDelete()\"\n (valueChange)=\"onValueChange($any($event))\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n\n @if (isMobile) {\n <ng-container ngProjectAs=\"select\">\n <ng-content select=\"select\" />\n </ng-container>\n }\n\n @if (value !== null) {\n <div\n automation-id=\"tui-select__value\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <div\n *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value, active: computedFocused}\"\n class=\"t-primitive-value\"\n [textContent]=\"text\"\n ></div>\n </div>\n }\n </tui-primitive-textfield>\n\n <ng-template #icon>\n <div\n appearance=\"icon\"\n tuiWrapper\n class=\"t-icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\" />\n </div>\n </ng-template>\n</div>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host:not(._readonly) ::ng-deep input:not(:disabled){cursor:pointer}:host._readonly ::ng-deep input{cursor:default}:host :host-context(*:disabled){pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-value{display:flex;inline-size:100%;align-items:center}.t-primitive-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i2$1.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i3$1.TuiLegacyDropdownOpenMonitorDirective, selector: "[tuiDropdownOpenMonitor]" }, { kind: "component", type: i4$1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i4$1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i3$1.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { kind: "directive", type: i3$1.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { kind: "directive", type: i3$2.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container):not(ng-template)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { kind: "directive", type: i3$2.TuiDropdownOpen, selector: "[tuiDropdown][tuiDropdownOpen],[tuiDropdown][tuiDropdownOpenChange]", inputs: ["tuiDropdownEnabled", "tuiDropdownOpen"], outputs: ["tuiDropdownOpenChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
213
- }
214
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSelectComponent, decorators: [{
215
- type: Component,
216
- args: [{ standalone: false, selector: 'tui-select', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
217
- tuiAsFocusableItemAccessor(TuiSelectComponent),
218
- tuiAsControl(TuiSelectComponent),
219
- tuiAsDataListHost(TuiSelectComponent),
220
- tuiAsOptionContent(TUI_SELECT_OPTION),
221
- ], hostDirectives: [TuiDropdownFixed], host: {
222
- '[attr.data-size]': 'size',
223
- }, template: "<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"datalist || ''\"\n [tuiDropdownEnabled]=\"interactive && !nativeDropdownMode\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-select__textfield\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [editable]=\"false\"\n [focusable]=\"computedFocusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [value]=\"computedValue\"\n (keydown.backspace.prevent)=\"onKeyDownDelete()\"\n (keydown.delete.prevent)=\"onKeyDownDelete()\"\n (valueChange)=\"onValueChange($any($event))\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n\n @if (isMobile) {\n <ng-container ngProjectAs=\"select\">\n <ng-content select=\"select\" />\n </ng-container>\n }\n\n @if (value !== null) {\n <div\n automation-id=\"tui-select__value\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <div\n *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value, active: computedFocused}\"\n class=\"t-primitive-value\"\n [textContent]=\"text\"\n ></div>\n </div>\n }\n </tui-primitive-textfield>\n\n <ng-template #icon>\n <div\n appearance=\"icon\"\n tuiWrapper\n class=\"t-icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\" />\n </div>\n </ng-template>\n</div>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host:not(._readonly) ::ng-deep input:not(:disabled){cursor:pointer}:host._readonly ::ng-deep input{cursor:default}:host :host-context(*:disabled){pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-value{display:flex;inline-size:100%;align-items:center}.t-primitive-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n"] }]
224
- }], propDecorators: { textfield: [{
225
- type: ViewChild,
226
- args: [TuiPrimitiveTextfieldComponent]
227
- }], dropdown: [{
228
- type: ViewChild,
229
- args: [TuiDropdownOpen]
230
- }], nativeSelect: [{
231
- type: ContentChild,
232
- args: [AbstractTuiNativeSelect, { static: true }]
233
- }], datalist: [{
234
- type: ContentChild,
235
- args: [TuiDataListDirective, { read: TemplateRef }]
236
- }], stringify: [{
237
- type: Input
238
- }], identityMatcher: [{
239
- type: Input
240
- }], valueContent: [{
241
- type: Input
242
- }] } });
243
-
244
- /**
245
- * TODO(v5): delete it
246
- * @deprecated use new version of {@link https://taiga-ui.dev/components/select TuiSelect} (from @taiga-ui/kit) instead
247
- */
248
- class TuiSelectDirective extends AbstractTuiTextfieldHost {
249
- get readOnly() {
250
- return true;
251
- }
252
- get value() {
253
- return this.host.computedValue;
254
- }
255
- get stringify() {
256
- return this.host.stringify;
257
- }
258
- onValueChange(value) {
259
- this.host.onValueChange(value);
260
- }
261
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSelectDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
262
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiSelectDirective, isStandalone: false, selector: "tui-select", providers: [tuiAsTextfieldHost(TuiSelectDirective)], usesInheritance: true, ngImport: i0 }); }
263
- }
264
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSelectDirective, decorators: [{
265
- type: Directive,
266
- args: [{
267
- standalone: false,
268
- selector: 'tui-select',
269
- providers: [tuiAsTextfieldHost(TuiSelectDirective)],
270
- }]
271
- }] });
272
-
273
- /**
274
- * TODO(v5): delete it
275
- * @deprecated use new version of {@link https://taiga-ui.dev/components/select TuiSelect} (from @taiga-ui/kit) instead
276
- */
277
- class TuiSelectModule {
278
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
279
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiSelectModule, declarations: [TuiSelectComponent,
280
- TuiSelectDirective,
281
- TuiNativeSelectComponent,
282
- TuiNativeSelectGroupComponent], imports: [CommonModule,
283
- PolymorpheusOutlet,
284
- PolymorpheusTemplate,
285
- TuiArrowComponent,
286
- TuiLegacyDropdownOpenMonitorDirective,
287
- TuiPrimitiveTextfieldModule,
288
- TuiSelectOptionModule,
289
- TuiStringifyContentPipe,
290
- TuiTextfieldControllerModule,
291
- TuiWrapperModule, i1.TuiDataListComponent, i1.TuiDataListDirective, i1.TuiOption, i1.TuiOptionNew, i1.TuiOptionWithValue, i1.TuiOptGroup, i2.TuiDataListWrapperComponent, i2.TuiDataListGroupWrapperComponent, i1.TuiDataListDirective, i3$2.TuiDropdownOptionsDirective, i3$2.TuiDropdownDriverDirective, i3$2.TuiDropdownDirective, i3$2.TuiDropdownComponent, i3$2.TuiDropdownOpen, i3$2.TuiDropdownOpenLegacy, i3$2.TuiDropdownManual, i3$2.TuiDropdownHover, i3$2.TuiDropdownContent, i3$2.TuiDropdownContext, i3$2.TuiDropdownPosition, i3$2.TuiDropdownPositionSided, i3$2.TuiDropdownSelection], exports: [TuiSelectComponent,
292
- TuiSelectDirective,
293
- TuiTextfieldComponent,
294
- TuiNativeSelectComponent,
295
- TuiNativeSelectGroupComponent, i3$2.TuiDropdownOptionsDirective, i3$2.TuiDropdownDriverDirective, i3$2.TuiDropdownDirective, i3$2.TuiDropdownComponent, i3$2.TuiDropdownOpen, i3$2.TuiDropdownOpenLegacy, i3$2.TuiDropdownManual, i3$2.TuiDropdownHover, i3$2.TuiDropdownContent, i3$2.TuiDropdownContext, i3$2.TuiDropdownPosition, i3$2.TuiDropdownPositionSided, i3$2.TuiDropdownSelection, i1.TuiDataListComponent, i1.TuiDataListDirective, i1.TuiOption, i1.TuiOptionNew, i1.TuiOptionWithValue, i1.TuiOptGroup, i2.TuiDataListWrapperComponent, i2.TuiDataListGroupWrapperComponent, i1.TuiDataListDirective] }); }
296
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSelectModule, imports: [CommonModule,
297
- TuiArrowComponent,
298
- TuiPrimitiveTextfieldModule,
299
- TuiSelectOptionModule,
300
- TuiTextfieldControllerModule,
301
- TuiWrapperModule, i1.TuiDataListComponent, i1.TuiOption, i2.TuiDataListWrapperComponent, i2.TuiDataListGroupWrapperComponent, i3$2.TuiDropdownComponent] }); }
302
- }
303
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSelectModule, decorators: [{
304
- type: NgModule,
305
- args: [{
306
- imports: [
307
- CommonModule,
308
- PolymorpheusOutlet,
309
- PolymorpheusTemplate,
310
- TuiArrowComponent,
311
- TuiLegacyDropdownOpenMonitorDirective,
312
- TuiPrimitiveTextfieldModule,
313
- TuiSelectOptionModule,
314
- TuiStringifyContentPipe,
315
- TuiTextfieldControllerModule,
316
- TuiWrapperModule,
317
- ...TuiDataList,
318
- ...TuiDataListWrapper,
319
- ...TuiDropdown,
320
- ],
321
- declarations: [
322
- TuiSelectComponent,
323
- TuiSelectDirective,
324
- TuiNativeSelectComponent,
325
- TuiNativeSelectGroupComponent,
326
- ],
327
- exports: [
328
- TuiSelectComponent,
329
- TuiSelectDirective,
330
- TuiTextfieldComponent,
331
- TuiNativeSelectComponent,
332
- TuiNativeSelectGroupComponent,
333
- ...TuiDropdown,
334
- ...TuiDataList,
335
- ...TuiDataListWrapper,
336
- ],
337
- }]
338
- }] });
339
-
340
- /**
341
- * Generated bundle index. Do not edit.
342
- */
343
-
344
- export { TUI_SELECT_DEFAULT_OPTIONS, TUI_SELECT_OPTIONS, TuiNativeSelectComponent, TuiNativeSelectGroupComponent, TuiSelectComponent, TuiSelectDirective, TuiSelectModule, tuiSelectOptionsProvider };
345
- //# sourceMappingURL=taiga-ui-legacy-components-select.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-legacy-components-select.mjs","sources":["../../../projects/legacy/components/select/native-select/native-select.component.ts","../../../projects/legacy/components/select/native-select/native-select.template.html","../../../projects/legacy/components/select/native-select/native-select-group.component.ts","../../../projects/legacy/components/select/native-select/native-select-group.template.html","../../../projects/legacy/components/select/select.options.ts","../../../projects/legacy/components/select/select.component.ts","../../../projects/legacy/components/select/select.template.html","../../../projects/legacy/components/select/select.directive.ts","../../../projects/legacy/components/select/select.module.ts","../../../projects/legacy/components/select/taiga-ui-legacy-components-select.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Input, TemplateRef} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiAsDataList} from '@taiga-ui/core/components/data-list';\nimport {type TuiItemsHandlers} from '@taiga-ui/kit/tokens';\nimport {AbstractTuiNativeSelect} from '@taiga-ui/legacy/classes';\n\nimport {type TuiSelectDirective} from '../select.directive';\n\n/**\n * TODO(v5): delete it\n * @deprecated use native picker from new version of {@link https://taiga-ui.dev/components/select#native-picker-disabled-option TuiSelect} (from @taiga-ui/kit) instead\n */\n@Component({\n standalone: false,\n selector: 'select[tuiSelect]:not([labels]):not([multiple])',\n templateUrl: './native-select.template.html',\n styleUrl: './native-select.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsDataList(TuiNativeSelectComponent),\n tuiProvide(AbstractTuiNativeSelect, TuiNativeSelectComponent),\n {\n provide: TemplateRef,\n deps: [TuiNativeSelectComponent],\n useFactory: ({datalist}: TuiNativeSelectComponent<unknown>) => datalist,\n },\n ],\n host: {\n '[attr.aria-invalid]': 'host.invalid',\n '[disabled]': 'host.disabled || control.readOnly',\n '[tabIndex]': 'host.focusable ? 0 : -1',\n '[value]': 'host.value',\n '(change)':\n 'onValueChange($event.target.options.selectedIndex - (emptyOption ? 1 : 0))',\n },\n})\nexport class TuiNativeSelectComponent<T> extends AbstractTuiNativeSelect<\n TuiSelectDirective,\n T\n> {\n @Input()\n public items: readonly T[] | null = [];\n\n protected get stringify(): TuiItemsHandlers<T>['stringify'] {\n return this.host.stringify;\n }\n\n protected selected(option: T): boolean {\n return this.control.value === option;\n }\n\n protected onValueChange(index: number): void {\n this.host.onValueChange(this.items?.[index] || null);\n }\n}\n","<tui-data-list-wrapper\n *tuiDataList\n [disabledItemHandler]=\"disabledItemHandler || itemsHandlers.disabledItemHandler\"\n [itemContent]=\"stringify | tuiStringifyContent\"\n [items]=\"items\"\n/>\n@if (control.control?.valueChanges | async) {}\n@if (emptyOption) {\n <option\n disabled\n selected\n value=\"\"\n >\n {{ placeholder }}\n </option>\n}\n@for (option of items; track option) {\n <option\n [disabled]=\"disabledItemHandler ? disabledItemHandler(option) : itemsHandlers.disabledItemHandler(option)\"\n [selected]=\"selected(option)\"\n [value]=\"stringify(option)\"\n >\n {{ stringify(option) }}\n </option>\n}\n","import {ChangeDetectionStrategy, Component, Input, TemplateRef} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiAsDataList} from '@taiga-ui/core/components/data-list';\nimport {type TuiItemsHandlers} from '@taiga-ui/kit/tokens';\nimport {AbstractTuiNativeSelect} from '@taiga-ui/legacy/classes';\n\nimport {type TuiSelectDirective} from '../select.directive';\n\n/**\n * TODO(v5): delete it\n * @deprecated use native picker from new version of {@link https://taiga-ui.dev/components/select#native-picker-groups TuiSelect} (from @taiga-ui/kit) instead\n */\n@Component({\n standalone: false,\n selector: 'select[tuiSelect][labels]:not([multiple])',\n templateUrl: './native-select-group.template.html',\n styleUrl: './native-select.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsDataList(TuiNativeSelectGroupComponent),\n tuiProvide(AbstractTuiNativeSelect, TuiNativeSelectGroupComponent),\n {\n provide: TemplateRef,\n deps: [TuiNativeSelectGroupComponent],\n useFactory: ({datalist}: TuiNativeSelectGroupComponent<unknown>) => datalist,\n },\n ],\n host: {\n '[attr.aria-invalid]': 'host.invalid',\n '[disabled]': 'host.disabled || control.readOnly',\n '[tabIndex]': 'host.focusable ? 0 : -1',\n '[value]': 'host.value',\n '(change)':\n 'onValueChange($event.target.options.selectedIndex - (emptyOption ? 1 : 0))',\n },\n})\nexport class TuiNativeSelectGroupComponent<T> extends AbstractTuiNativeSelect<\n TuiSelectDirective,\n T\n> {\n @Input()\n public items: readonly T[][] | null = [];\n\n @Input()\n public labels: readonly string[] = [];\n\n protected get stringify(): TuiItemsHandlers<T>['stringify'] {\n return this.host.stringify;\n }\n\n protected selected(option: T): boolean {\n return this.control.value === option;\n }\n\n protected onValueChange(index: number): void {\n const flatItems = this.items?.reduce((acc, val) => acc.concat(val), []);\n\n this.host.onValueChange(flatItems?.[index] || null);\n }\n}\n","<tui-data-list-wrapper\n *tuiDataList\n [disabledItemHandler]=\"disabledItemHandler || itemsHandlers.disabledItemHandler\"\n [itemContent]=\"stringify | tuiStringifyContent\"\n [items]=\"items\"\n [labels]=\"labels\"\n/>\n@if (control.control?.valueChanges | async) {}\n@if (emptyOption) {\n <option\n disabled\n selected\n value=\"\"\n >\n {{ placeholder }}\n </option>\n}\n@for (group of items; track group) {\n <optgroup [label]=\"labels[$index]\">\n @for (option of group; track option; let i = $index) {\n <option\n [disabled]=\"\n disabledItemHandler ? disabledItemHandler(option) : itemsHandlers.disabledItemHandler(option)\n \"\n [selected]=\"selected(option)\"\n [value]=\"stringify(option)\"\n >\n {{ stringify(option) }}\n </option>\n }\n </optgroup>\n}\n","import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiValueContentContext} from '@taiga-ui/core/types';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/select TuiSelect} (from @taiga-ui/kit) instead\n */\nexport interface TuiSelectOptions<T> {\n readonly valueContent: PolymorpheusContent<TuiValueContentContext<T>>;\n}\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/select TuiSelect} (from @taiga-ui/kit) instead\n */\nexport const TUI_SELECT_DEFAULT_OPTIONS: TuiSelectOptions<unknown> = {\n valueContent: '',\n};\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/select TuiSelect} (from @taiga-ui/kit) instead\n */\nexport const [TUI_SELECT_OPTIONS, tuiSelectOptionsProvider] = tuiCreateOptions(\n TUI_SELECT_DEFAULT_OPTIONS,\n);\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n inject,\n Input,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {type TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiIsFocused} from '@taiga-ui/cdk/utils/focus';\nimport {\n tuiAsDataListHost,\n tuiAsOptionContent,\n TuiDataListDirective,\n type TuiDataListHost,\n} from '@taiga-ui/core/components/data-list';\nimport {TuiDropdownFixed, TuiDropdownOpen} from '@taiga-ui/core/directives/dropdown';\nimport {\n type TuiSizeL,\n type TuiSizeM,\n type TuiSizeS,\n type TuiValueContentContext,\n} from '@taiga-ui/core/types';\nimport {TUI_ITEMS_HANDLERS, type TuiItemsHandlers} from '@taiga-ui/kit/tokens';\nimport {\n AbstractTuiNativeSelect,\n AbstractTuiNullableControl,\n tuiAsControl,\n} from '@taiga-ui/legacy/classes';\nimport {TUI_ARROW_MODE} from '@taiga-ui/legacy/components/arrow';\nimport {TuiPrimitiveTextfieldComponent} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TUI_SELECT_OPTION} from '@taiga-ui/legacy/components/select-option';\nimport {TUI_TEXTFIELD_CLEANER, TUI_TEXTFIELD_SIZE} from '@taiga-ui/legacy/directives';\nimport {\n tuiAsFocusableItemAccessor,\n type TuiFocusableElementAccessor,\n} from '@taiga-ui/legacy/tokens';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nimport {TUI_SELECT_OPTIONS, type TuiSelectOptions} from './select.options';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/select TuiSelect} (from @taiga-ui/kit) instead\n */\n@Component({\n standalone: false,\n selector: 'tui-select',\n templateUrl: './select.template.html',\n styleUrl: './select.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiSelectComponent),\n tuiAsControl(TuiSelectComponent),\n tuiAsDataListHost(TuiSelectComponent),\n tuiAsOptionContent(TUI_SELECT_OPTION),\n ],\n hostDirectives: [TuiDropdownFixed],\n host: {\n '[attr.data-size]': 'size',\n },\n})\nexport class TuiSelectComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor, TuiDataListHost<T>\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n @ViewChild(TuiDropdownOpen)\n private readonly dropdown?: TuiDropdownOpen;\n\n @ContentChild(AbstractTuiNativeSelect, {static: true})\n private readonly nativeSelect?: AbstractTuiNativeSelect;\n\n private readonly itemsHandlers = inject<TuiItemsHandlers<T>>(TUI_ITEMS_HANDLERS);\n private readonly textfieldCleaner = inject(TUI_TEXTFIELD_CLEANER);\n private readonly textfieldSize = inject(TUI_TEXTFIELD_SIZE);\n private readonly arrowMode = inject(TUI_ARROW_MODE);\n private readonly options = inject(TUI_SELECT_OPTIONS);\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n protected readonly datalist: PolymorpheusContent<TuiContext<TuiActiveZone>>;\n\n protected readonly isMobile = inject(TUI_IS_MOBILE);\n protected open = false;\n\n @Input()\n public stringify: TuiItemsHandlers<T>['stringify'] = this.itemsHandlers.stringify;\n\n @Input()\n public identityMatcher: TuiItemsHandlers<T>['identityMatcher'] =\n this.itemsHandlers.identityMatcher;\n\n @Input()\n public valueContent: TuiSelectOptions<T>['valueContent'] = this.options.valueContent;\n\n public get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n public get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield?.nativeFocusableElement ?? null;\n }\n\n public get focused(): boolean {\n return (\n tuiIsFocused(this.nativeFocusableElement) || !!this.dropdown?.tuiDropdownOpen\n );\n }\n\n public get computedValue(): string {\n return this.value === null ? '' : this.stringify(this.value) || ' ';\n }\n\n public onValueChange(value: T): void {\n this.value = value || null;\n }\n\n public handleOption(option: T): void {\n this.focusInput();\n this.value = option;\n this.open = false;\n }\n\n protected get arrow(): PolymorpheusContent<\n TuiContext<TuiSizeL | TuiSizeM | TuiSizeS>\n > {\n return !this.interactive ? this.arrowMode.disabled : this.arrowMode.interactive;\n }\n\n protected get nativeDropdownMode(): boolean {\n return !!this.nativeSelect && this.isMobile;\n }\n\n protected get computedContent(): PolymorpheusContent<TuiValueContentContext<T>> {\n return this.valueContent || this.computedValue;\n }\n\n protected onActiveZone(active: boolean): void {\n this.updateFocused(active);\n }\n\n protected onKeyDownDelete(): void {\n if (this.textfieldCleaner.cleaner) {\n this.value = null;\n }\n }\n\n private focusInput(preventScroll = false): void {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.focus({preventScroll});\n }\n }\n}\n","<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"datalist || ''\"\n [tuiDropdownEnabled]=\"interactive && !nativeDropdownMode\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-select__textfield\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [editable]=\"false\"\n [focusable]=\"computedFocusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [value]=\"computedValue\"\n (keydown.backspace.prevent)=\"onKeyDownDelete()\"\n (keydown.delete.prevent)=\"onKeyDownDelete()\"\n (valueChange)=\"onValueChange($any($event))\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n\n @if (isMobile) {\n <ng-container ngProjectAs=\"select\">\n <ng-content select=\"select\" />\n </ng-container>\n }\n\n @if (value !== null) {\n <div\n automation-id=\"tui-select__value\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <div\n *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value, active: computedFocused}\"\n class=\"t-primitive-value\"\n [textContent]=\"text\"\n ></div>\n </div>\n }\n </tui-primitive-textfield>\n\n <ng-template #icon>\n <div\n appearance=\"icon\"\n tuiWrapper\n class=\"t-icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\" />\n </div>\n </ng-template>\n</div>\n","import {Directive} from '@angular/core';\nimport {type TuiItemsHandlers} from '@taiga-ui/kit/tokens';\nimport {AbstractTuiTextfieldHost} from '@taiga-ui/legacy/classes';\nimport {tuiAsTextfieldHost} from '@taiga-ui/legacy/tokens';\n\nimport {type TuiSelectComponent} from './select.component';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/select TuiSelect} (from @taiga-ui/kit) instead\n */\n@Directive({\n standalone: false,\n selector: 'tui-select',\n providers: [tuiAsTextfieldHost(TuiSelectDirective)],\n})\nexport class TuiSelectDirective extends AbstractTuiTextfieldHost<\n TuiSelectComponent<unknown>\n> {\n public override get readOnly(): boolean {\n return true;\n }\n\n public override get value(): string {\n return this.host.computedValue;\n }\n\n public get stringify(): TuiItemsHandlers<unknown>['stringify'] {\n return this.host.stringify;\n }\n\n public onValueChange(value: unknown): void {\n this.host.onValueChange(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiDataList} from '@taiga-ui/core/components/data-list';\nimport {TuiDropdown} from '@taiga-ui/core/directives/dropdown';\nimport {TuiDataListWrapper} from '@taiga-ui/kit/components/data-list-wrapper';\nimport {TuiStringifyContentPipe} from '@taiga-ui/kit/pipes/stringify-content';\nimport {TuiArrowComponent} from '@taiga-ui/legacy/components/arrow';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TuiSelectOptionModule} from '@taiga-ui/legacy/components/select-option';\nimport {\n TuiLegacyDropdownOpenMonitorDirective,\n TuiTextfieldControllerModule,\n TuiWrapperModule,\n} from '@taiga-ui/legacy/directives';\nimport {PolymorpheusOutlet, PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\n\nimport {TuiNativeSelectComponent} from './native-select/native-select.component';\nimport {TuiNativeSelectGroupComponent} from './native-select/native-select-group.component';\nimport {TuiSelectComponent} from './select.component';\nimport {TuiSelectDirective} from './select.directive';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/select TuiSelect} (from @taiga-ui/kit) instead\n */\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusOutlet,\n PolymorpheusTemplate,\n TuiArrowComponent,\n TuiLegacyDropdownOpenMonitorDirective,\n TuiPrimitiveTextfieldModule,\n TuiSelectOptionModule,\n TuiStringifyContentPipe,\n TuiTextfieldControllerModule,\n TuiWrapperModule,\n ...TuiDataList,\n ...TuiDataListWrapper,\n ...TuiDropdown,\n ],\n declarations: [\n TuiSelectComponent,\n TuiSelectDirective,\n TuiNativeSelectComponent,\n TuiNativeSelectGroupComponent,\n ],\n exports: [\n TuiSelectComponent,\n TuiSelectDirective,\n TuiTextfieldComponent,\n TuiNativeSelectComponent,\n TuiNativeSelectGroupComponent,\n ...TuiDropdown,\n ...TuiDataList,\n ...TuiDataListWrapper,\n ],\n})\nexport class TuiSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA;;;AAGG;AAyBG,MAAO,wBAA4B,SAAQ,uBAGhD,CAAA;AA3BD,IAAA,WAAA,GAAA;;QA6BW,IAAK,CAAA,KAAA,GAAwB,EAAE;AAazC;AAXG,IAAA,IAAc,SAAS,GAAA;AACnB,QAAA,OAAO,IAAI,CAAC,IA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,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YA/BpB,YAAY;YAGZ,iBAAiB;YAEjB,2BAA2B;YAC3B,qBAAqB;YAErB,4BAA4B;YAC5B,gBAAgB,EAAA,EAAA,CAAA,oBAAA,EAAA,EAAA,CAAA,SAAA,EAAA,EAAA,CAAA,2BAAA,EAAA,EAAA,CAAA,gCAAA,EAAAA,IAAA,CAAA,oBAAA,CAAA,EAAA,CAAA,CAAA;;4FAsBX,eAAe,EAAA,UAAA,EAAA,CAAA;kBAjC3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,kBAAkB;wBAClB,oBAAoB;wBACpB,iBAAiB;wBACjB,qCAAqC;wBACrC,2BAA2B;wBAC3B,qBAAqB;wBACrB,uBAAuB;wBACvB,4BAA4B;wBAC5B,gBAAgB;AAChB,wBAAA,GAAG,WAAW;AACd,wBAAA,GAAG,kBAAkB;AACrB,wBAAA,GAAG,WAAW;AACjB,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,kBAAkB;wBAClB,kBAAkB;wBAClB,wBAAwB;wBACxB,6BAA6B;AAChC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,kBAAkB;wBAClB,kBAAkB;wBAClB,qBAAqB;wBACrB,wBAAwB;wBACxB,6BAA6B;AAC7B,wBAAA,GAAG,WAAW;AACd,wBAAA,GAAG,WAAW;AACd,wBAAA,GAAG,kBAAkB;AACxB,qBAAA;AACJ,iBAAA;;;AC5DD;;AAEG;;;;"}
@@ -1,53 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
- import { TuiHintOptionsDirective } from '@taiga-ui/core/directives/hint';
4
- import * as i1 from '@taiga-ui/core/components/icon';
5
- import { TuiIcon } from '@taiga-ui/core/components/icon';
6
- import * as i2 from '@taiga-ui/kit/directives/tooltip';
7
- import { TuiTooltip } from '@taiga-ui/kit/directives/tooltip';
8
-
9
- /**
10
- * @deprecated: drop in v5.0 use {@link TuiTooltip}
11
- * https://taiga-ui.dev/components/tooltip
12
- */
13
- class TuiTooltipComponent extends TuiHintOptionsDirective {
14
- constructor() {
15
- super(...arguments);
16
- this.describeId = '';
17
- }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTooltipComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
19
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiTooltipComponent, isStandalone: false, selector: "tui-tooltip", inputs: { content: "content", direction: "direction", appearance: "appearance", showDelay: "showDelay", hideDelay: "hideDelay", describeId: "describeId", context: "context" }, usesInheritance: true, ngImport: i0, template: "<tui-icon\n automation-id=\"tui-tooltip__icon\"\n [tuiHintAppearance]=\"appearance || ''\"\n [tuiHintContext]=\"context\"\n [tuiHintDirection]=\"direction\"\n [tuiHintHideDelay]=\"hideDelay\"\n [tuiHintShowDelay]=\"showDelay\"\n [tuiTooltip]=\"content\"\n [tuiTooltipDescribe]=\"describeId\"\n/>\n", dependencies: [{ kind: "component", type: i1.TuiIcon, selector: "tui-icon:not([tuiBadge])", inputs: ["background"] }, { kind: "directive", type: i2.TuiTooltip, selector: "tui-icon[tuiTooltip]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
20
- }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTooltipComponent, decorators: [{
22
- type: Component,
23
- args: [{ standalone: false, selector: 'tui-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['content', 'direction', 'appearance', 'showDelay', 'hideDelay'], template: "<tui-icon\n automation-id=\"tui-tooltip__icon\"\n [tuiHintAppearance]=\"appearance || ''\"\n [tuiHintContext]=\"context\"\n [tuiHintDirection]=\"direction\"\n [tuiHintHideDelay]=\"hideDelay\"\n [tuiHintShowDelay]=\"showDelay\"\n [tuiTooltip]=\"content\"\n [tuiTooltipDescribe]=\"describeId\"\n/>\n" }]
24
- }], propDecorators: { describeId: [{
25
- type: Input
26
- }], context: [{
27
- type: Input
28
- }] } });
29
-
30
- /**
31
- * @deprecated: drop in v5.0 use {@link TuiTooltip}
32
- * https://taiga-ui.dev/components/tooltip
33
- */
34
- class TuiTooltipModule {
35
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
36
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiTooltipModule, declarations: [TuiTooltipComponent], imports: [TuiIcon, TuiTooltip], exports: [TuiTooltipComponent] }); }
37
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTooltipModule, imports: [TuiIcon] }); }
38
- }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTooltipModule, decorators: [{
40
- type: NgModule,
41
- args: [{
42
- imports: [TuiIcon, TuiTooltip],
43
- declarations: [TuiTooltipComponent],
44
- exports: [TuiTooltipComponent],
45
- }]
46
- }] });
47
-
48
- /**
49
- * Generated bundle index. Do not edit.
50
- */
51
-
52
- export { TuiTooltipComponent, TuiTooltipModule };
53
- //# sourceMappingURL=taiga-ui-legacy-components-tooltip.mjs.map