@taiga-ui/legacy 4.52.0-canary.a59c4d0 → 4.52.0-canary.b61d3d0

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 (69) hide show
  1. package/components/dialog/dialog.component.d.ts +2 -2
  2. package/components/index.d.ts +0 -1
  3. package/components/input/input.module.d.ts +4 -4
  4. package/components/input-date-range/input-date-range.component.d.ts +1 -2
  5. package/components/input-date-range/input-date-range.module.d.ts +8 -9
  6. package/components/input-date-time/input-date-time.component.d.ts +5 -5
  7. package/components/input-date-time/input-date-time.module.d.ts +6 -6
  8. package/components/input-month-range/input-month-range.module.d.ts +3 -3
  9. package/components/input-number/input-number.component.d.ts +1 -2
  10. package/components/input-number/input-number.module.d.ts +5 -5
  11. package/components/input-range/input-range.module.d.ts +4 -4
  12. package/components/input-tag/input-tag.module.d.ts +8 -8
  13. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  14. package/components/multi-select/multi-select.module.d.ts +11 -12
  15. package/components/pdf-viewer/pdf-viewer.component.d.ts +1 -1
  16. package/components/primitive-textfield/primitive-textfield.module.d.ts +5 -5
  17. package/components/select/select.module.d.ts +8 -8
  18. package/components/select-option/select-option.module.d.ts +3 -3
  19. package/components/tag/tag.module.d.ts +4 -4
  20. package/components/textarea/textarea.module.d.ts +7 -7
  21. package/fesm2022/taiga-ui-legacy-components-dialog.mjs +4 -6
  22. package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -1
  23. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +32 -42
  24. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +29 -35
  26. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -1
  27. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +9 -9
  28. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +23 -30
  30. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +11 -11
  32. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -1
  33. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +22 -22
  34. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
  35. package/fesm2022/taiga-ui-legacy-components-input.mjs +6 -5
  36. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +28 -32
  38. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs +4 -6
  40. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +16 -16
  42. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +6 -6
  44. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-legacy-components-select.mjs +23 -23
  46. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-legacy-components-tag.mjs +10 -10
  48. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +23 -23
  50. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-legacy-components.mjs +0 -1
  52. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +0 -1
  54. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +1 -3
  56. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-legacy-utils.mjs +1 -7
  58. package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -1
  59. package/package.json +5 -9
  60. package/utils/icons-path-factory.d.ts +1 -1
  61. package/utils/index.d.ts +0 -1
  62. package/components/combo-box/combo-box-strict.directive.d.ts +0 -12
  63. package/components/combo-box/combo-box.component.d.ts +0 -52
  64. package/components/combo-box/combo-box.directive.d.ts +0 -13
  65. package/components/combo-box/combo-box.module.d.ts +0 -20
  66. package/components/combo-box/index.d.ts +0 -4
  67. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +0 -299
  68. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +0 -1
  69. package/utils/is-apple.d.ts +0 -5
@@ -1,13 +0,0 @@
1
- import { AbstractTuiTextfieldHost } from '@taiga-ui/legacy/classes';
2
- import { type TuiComboBoxComponent } from './combo-box.component';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * TODO(v5): delete it
6
- * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead
7
- */
8
- export declare class TuiComboBoxDirective extends AbstractTuiTextfieldHost<TuiComboBoxComponent<unknown>> {
9
- get value(): string;
10
- onValueChange(value: string): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiComboBoxDirective, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiComboBoxDirective, "tui-combo-box", never, {}, {}, never, never, false, never>;
13
- }
@@ -1,20 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./combo-box.component";
3
- import * as i2 from "./combo-box-strict.directive";
4
- import * as i3 from "./combo-box.directive";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@taiga-ui/polymorpheus";
7
- import * as i6 from "@taiga-ui/legacy/components/primitive-textfield";
8
- import * as i7 from "@taiga-ui/legacy/components/select-option";
9
- import * as i8 from "@taiga-ui/legacy/components/arrow";
10
- import * as i9 from "@taiga-ui/legacy/directives";
11
- import * as i10 from "@taiga-ui/core/directives/dropdown";
12
- /**
13
- * TODO(v5): delete it
14
- * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead
15
- */
16
- export declare class TuiComboBoxModule {
17
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiComboBoxModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<TuiComboBoxModule, [typeof i1.TuiComboBoxComponent, typeof i2.TuiComboBoxStrictDirective, typeof i3.TuiComboBoxDirective], [typeof i4.CommonModule, typeof i5.PolymorpheusOutlet, typeof i5.PolymorpheusTemplate, typeof i6.TuiPrimitiveTextfieldModule, typeof i7.TuiSelectOptionModule, typeof i8.TuiArrowComponent, typeof i9.TuiWrapperModule, typeof i9.TuiTextfieldControllerModule, typeof i9.TuiLegacyDropdownOpenMonitorDirective, typeof i10.TuiDropdownOptionsDirective, typeof i10.TuiDropdownDriverDirective, typeof i10.TuiDropdownDirective, typeof i10.TuiDropdownComponent, typeof i10.TuiDropdownOpen, typeof i10.TuiDropdownOpenLegacy, typeof i10.TuiDropdownManual, typeof i10.TuiDropdownHover, typeof i10.TuiDropdownContent, typeof i10.TuiDropdownContext, typeof i10.TuiDropdownPosition, typeof i10.TuiDropdownPositionSided, typeof i10.TuiDropdownSelection], [typeof i1.TuiComboBoxComponent, typeof i2.TuiComboBoxStrictDirective, typeof i3.TuiComboBoxDirective, typeof i6.TuiTextfieldComponent, typeof i10.TuiDropdownOptionsDirective, typeof i10.TuiDropdownDriverDirective, typeof i10.TuiDropdownDirective, typeof i10.TuiDropdownComponent, typeof i10.TuiDropdownOpen, typeof i10.TuiDropdownOpenLegacy, typeof i10.TuiDropdownManual, typeof i10.TuiDropdownHover, typeof i10.TuiDropdownContent, typeof i10.TuiDropdownContext, typeof i10.TuiDropdownPosition, typeof i10.TuiDropdownPositionSided, typeof i10.TuiDropdownSelection]>;
19
- static ɵinj: i0.ɵɵInjectorDeclaration<TuiComboBoxModule>;
20
- }
@@ -1,4 +0,0 @@
1
- export * from './combo-box.component';
2
- export * from './combo-box.directive';
3
- export * from './combo-box.module';
4
- export * from './combo-box-strict.directive';
@@ -1,299 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, EventEmitter, TemplateRef, Output, Input, ContentChild, ViewChild, ChangeDetectionStrategy, Component, Directive, NgModule } from '@angular/core';
3
- import { TUI_STRICT_MATCHER } from '@taiga-ui/cdk/constants';
4
- import { tuiIsFocused } from '@taiga-ui/cdk/utils/focus';
5
- import { tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
6
- import { TUI_DATA_LIST_ACCESSOR, TuiDataListDirective, tuiAsDataListHost, tuiAsOptionContent } from '@taiga-ui/core/components/data-list';
7
- import * as i1 from '@taiga-ui/core/directives/dropdown';
8
- import { TuiDropdownOpen, TuiDropdownFixed, TuiDropdown } from '@taiga-ui/core/directives/dropdown';
9
- import { TUI_ITEMS_HANDLERS } from '@taiga-ui/kit/tokens';
10
- import { AbstractTuiNullableControl, tuiAsControl, AbstractTuiTextfieldHost } from '@taiga-ui/legacy/classes';
11
- import { TUI_ARROW_MODE, TuiArrowComponent } from '@taiga-ui/legacy/components/arrow';
12
- import * as i3 from '@taiga-ui/legacy/components/primitive-textfield';
13
- import { TuiPrimitiveTextfieldComponent, TuiTextfieldComponent, TuiPrimitiveTextfieldModule } from '@taiga-ui/legacy/components/primitive-textfield';
14
- import { TUI_SELECT_OPTION, TuiSelectOptionModule } from '@taiga-ui/legacy/components/select-option';
15
- import * as i4 from '@taiga-ui/legacy/directives';
16
- import { TUI_TEXTFIELD_SIZE, TuiWrapperModule, TuiTextfieldControllerModule, TuiLegacyDropdownOpenMonitorDirective } from '@taiga-ui/legacy/directives';
17
- import { tuiAsFocusableItemAccessor, tuiAsTextfieldHost } from '@taiga-ui/legacy/tokens';
18
- import * as i2 from '@taiga-ui/polymorpheus';
19
- import { PolymorpheusOutlet, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
20
- import { CommonModule } from '@angular/common';
21
-
22
- /**
23
- * TODO(v5): delete it
24
- * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead
25
- */
26
- class TuiComboBoxComponent extends AbstractTuiNullableControl {
27
- constructor() {
28
- super(...arguments);
29
- this.arrowMode = inject(TUI_ARROW_MODE);
30
- this.itemsHandlers = inject(TUI_ITEMS_HANDLERS);
31
- this.textfieldSize = inject(TUI_TEXTFIELD_SIZE);
32
- this.stringify = this.itemsHandlers.stringify;
33
- this.strictMatcher = TUI_STRICT_MATCHER;
34
- this.identityMatcher = this.itemsHandlers.identityMatcher;
35
- this.strict = true;
36
- this.search = null;
37
- this.searchChange = new EventEmitter();
38
- this.open = false;
39
- }
40
- get size() {
41
- return this.textfieldSize.size;
42
- }
43
- get nativeFocusableElement() {
44
- return this.textfield?.nativeFocusableElement ?? null;
45
- }
46
- get focused() {
47
- return (tuiIsFocused(this.nativeFocusableElement) || !!this.dropdown?.tuiDropdownOpen);
48
- }
49
- get nativeValue() {
50
- return this.value === null ? this.search || '' : this.stringify(this.value);
51
- }
52
- checkOption(option) {
53
- if (!this.isStrictMatch(option)) {
54
- return;
55
- }
56
- this.value = option;
57
- this.updateSearch(null);
58
- }
59
- handleOption(item) {
60
- this.focusInput();
61
- this.close();
62
- this.updateSearch(null);
63
- this.value = item;
64
- if (this.value) {
65
- this.setNativeValue(this.stringify(item));
66
- }
67
- }
68
- onValueChange(value) {
69
- this.updateSearch(value);
70
- const match = this.accessor
71
- ?.getOptions()
72
- .find((item) => this.isStrictMatch(item));
73
- if (match !== undefined) {
74
- this.value = match;
75
- this.updateSearch(null);
76
- return;
77
- }
78
- if (this.strict || this.search === '') {
79
- this.value = null;
80
- }
81
- // Clearing sets the empty value, the dropdown should not be opened on clear.
82
- if (this.search !== '') {
83
- this.open = true;
84
- }
85
- }
86
- toggle() {
87
- if (this.interactive) {
88
- this.open = !this.open;
89
- }
90
- }
91
- get arrow() {
92
- return !this.interactive ? this.arrowMode.disabled : this.arrowMode.interactive;
93
- }
94
- get showValueTemplate() {
95
- return tuiIsPresent(this.value) && !this.focused;
96
- }
97
- get computedContent() {
98
- return this.valueContent || this.nativeValue;
99
- }
100
- onActiveZone(active) {
101
- this.updateFocused(active);
102
- }
103
- onFieldKeyDownEnter(event) {
104
- if (this.open) {
105
- event.preventDefault();
106
- }
107
- const options = this.accessor?.getOptions() || [];
108
- if (options.length !== 1) {
109
- return;
110
- }
111
- this.value = options[0] ?? null;
112
- this.updateSearch(null);
113
- this.close();
114
- }
115
- isStrictMatch(item) {
116
- return !!this.search && !!this.strictMatcher?.(item, this.search, this.stringify);
117
- }
118
- close() {
119
- this.open = false;
120
- }
121
- updateSearch(search) {
122
- if (this.search === search) {
123
- return;
124
- }
125
- this.search = search;
126
- this.searchChange.emit(search);
127
- }
128
- setNativeValue(value) {
129
- if (this.nativeFocusableElement) {
130
- this.nativeFocusableElement.value = value;
131
- }
132
- }
133
- focusInput(preventScroll = false) {
134
- if (this.nativeFocusableElement) {
135
- this.nativeFocusableElement.focus({ preventScroll });
136
- }
137
- }
138
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
139
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiComboBoxComponent, isStandalone: false, selector: "tui-combo-box", inputs: { stringify: "stringify", strictMatcher: "strictMatcher", identityMatcher: "identityMatcher", valueContent: "valueContent", strict: "strict", search: "search" }, outputs: { searchChange: "searchChange" }, host: { properties: { "attr.data-size": "size" } }, providers: [
140
- tuiAsFocusableItemAccessor(TuiComboBoxComponent),
141
- tuiAsDataListHost(TuiComboBoxComponent),
142
- tuiAsControl(TuiComboBoxComponent),
143
- tuiAsOptionContent(TUI_SELECT_OPTION),
144
- ], queries: [{ propertyName: "accessor", first: true, predicate: TUI_DATA_LIST_ACCESSOR, descendants: true }, { propertyName: "datalist", first: true, predicate: TuiDataListDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "dropdown", first: true, predicate: TuiDropdownOpen, descendants: true }, { propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.TuiDropdownFixed }], ngImport: i0, template: "<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"datalist || ''\"\n [tuiDropdownEnabled]=\"interactive && !!datalist\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-combo-box__textfield\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"computedFocusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [value]=\"nativeValue\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onFieldKeyDownEnter($event)\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n @if (showValueTemplate) {\n <div\n automation-id=\"tui-combo-box__template\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <ng-container\n *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value!, active: computedFocused}\"\n >\n {{ text }}\n </ng-container>\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 :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-icon{pointer-events:auto}\n"], dependencies: [{ kind: "directive", type: i2.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i3.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i3.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i4.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { kind: "directive", type: i4.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { kind: "directive", type: i4.TuiLegacyDropdownOpenMonitorDirective, selector: "[tuiDropdownOpenMonitor]" }, { kind: "directive", type: i1.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container):not(ng-template)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { kind: "directive", type: i1.TuiDropdownOpen, selector: "[tuiDropdown][tuiDropdownOpen],[tuiDropdown][tuiDropdownOpenChange]", inputs: ["tuiDropdownEnabled", "tuiDropdownOpen"], outputs: ["tuiDropdownOpenChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
145
- }
146
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxComponent, decorators: [{
147
- type: Component,
148
- args: [{ standalone: false, selector: 'tui-combo-box', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
149
- tuiAsFocusableItemAccessor(TuiComboBoxComponent),
150
- tuiAsDataListHost(TuiComboBoxComponent),
151
- tuiAsControl(TuiComboBoxComponent),
152
- tuiAsOptionContent(TUI_SELECT_OPTION),
153
- ], hostDirectives: [TuiDropdownFixed], host: {
154
- '[attr.data-size]': 'size',
155
- }, template: "<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"datalist || ''\"\n [tuiDropdownEnabled]=\"interactive && !!datalist\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-combo-box__textfield\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"computedFocusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [value]=\"nativeValue\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onFieldKeyDownEnter($event)\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n @if (showValueTemplate) {\n <div\n automation-id=\"tui-combo-box__template\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <ng-container\n *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value!, active: computedFocused}\"\n >\n {{ text }}\n </ng-container>\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 :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-icon{pointer-events:auto}\n"] }]
156
- }], propDecorators: { accessor: [{
157
- type: ContentChild,
158
- args: [TUI_DATA_LIST_ACCESSOR]
159
- }], dropdown: [{
160
- type: ViewChild,
161
- args: [TuiDropdownOpen]
162
- }], textfield: [{
163
- type: ViewChild,
164
- args: [TuiPrimitiveTextfieldComponent]
165
- }], datalist: [{
166
- type: ContentChild,
167
- args: [TuiDataListDirective, { read: TemplateRef }]
168
- }], stringify: [{
169
- type: Input
170
- }], strictMatcher: [{
171
- type: Input
172
- }], identityMatcher: [{
173
- type: Input
174
- }], valueContent: [{
175
- type: Input
176
- }], strict: [{
177
- type: Input
178
- }], search: [{
179
- type: Input
180
- }], searchChange: [{
181
- type: Output
182
- }] } });
183
-
184
- /**
185
- * TODO(v5): delete it
186
- * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead
187
- */
188
- class TuiComboBoxDirective extends AbstractTuiTextfieldHost {
189
- get value() {
190
- return this.host.nativeValue;
191
- }
192
- onValueChange(value) {
193
- this.host.onValueChange(value);
194
- }
195
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
196
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiComboBoxDirective, isStandalone: false, selector: "tui-combo-box", providers: [tuiAsTextfieldHost(TuiComboBoxDirective)], usesInheritance: true, ngImport: i0 }); }
197
- }
198
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxDirective, decorators: [{
199
- type: Directive,
200
- args: [{
201
- standalone: false,
202
- selector: 'tui-combo-box',
203
- providers: [tuiAsTextfieldHost(TuiComboBoxDirective)],
204
- }]
205
- }] });
206
-
207
- /**
208
- * TODO(v5): delete it
209
- * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead
210
- */
211
- class TuiComboBoxStrictDirective {
212
- constructor() {
213
- this.comboBox = inject((TuiComboBoxComponent));
214
- this.strict = true;
215
- }
216
- onInput() {
217
- if (!this.strict && this.comboBox.search) {
218
- this.comboBox.value = this.comboBox.search;
219
- }
220
- }
221
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxStrictDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
222
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiComboBoxStrictDirective, isStandalone: false, selector: "tui-combo-box[strict]", inputs: { strict: "strict" }, host: { listeners: { "input": "onInput()" } }, ngImport: i0 }); }
223
- }
224
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxStrictDirective, decorators: [{
225
- type: Directive,
226
- args: [{
227
- standalone: false,
228
- selector: 'tui-combo-box[strict]',
229
- host: {
230
- '(input)': 'onInput()',
231
- },
232
- }]
233
- }], propDecorators: { strict: [{
234
- type: Input
235
- }] } });
236
-
237
- /**
238
- * TODO(v5): delete it
239
- * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead
240
- */
241
- class TuiComboBoxModule {
242
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
243
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxModule, declarations: [TuiComboBoxComponent,
244
- TuiComboBoxStrictDirective,
245
- TuiComboBoxDirective], imports: [CommonModule,
246
- PolymorpheusOutlet,
247
- PolymorpheusTemplate,
248
- TuiPrimitiveTextfieldModule,
249
- TuiSelectOptionModule,
250
- TuiArrowComponent,
251
- TuiWrapperModule,
252
- TuiTextfieldControllerModule,
253
- TuiLegacyDropdownOpenMonitorDirective, i1.TuiDropdownOptionsDirective, i1.TuiDropdownDriverDirective, i1.TuiDropdownDirective, i1.TuiDropdownComponent, i1.TuiDropdownOpen, i1.TuiDropdownOpenLegacy, i1.TuiDropdownManual, i1.TuiDropdownHover, i1.TuiDropdownContent, i1.TuiDropdownContext, i1.TuiDropdownPosition, i1.TuiDropdownPositionSided, i1.TuiDropdownSelection], exports: [TuiComboBoxComponent,
254
- TuiComboBoxStrictDirective,
255
- TuiComboBoxDirective,
256
- TuiTextfieldComponent, i1.TuiDropdownOptionsDirective, i1.TuiDropdownDriverDirective, i1.TuiDropdownDirective, i1.TuiDropdownComponent, i1.TuiDropdownOpen, i1.TuiDropdownOpenLegacy, i1.TuiDropdownManual, i1.TuiDropdownHover, i1.TuiDropdownContent, i1.TuiDropdownContext, i1.TuiDropdownPosition, i1.TuiDropdownPositionSided, i1.TuiDropdownSelection] }); }
257
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxModule, imports: [CommonModule,
258
- TuiPrimitiveTextfieldModule,
259
- TuiSelectOptionModule,
260
- TuiArrowComponent,
261
- TuiWrapperModule,
262
- TuiTextfieldControllerModule, i1.TuiDropdownComponent] }); }
263
- }
264
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxModule, decorators: [{
265
- type: NgModule,
266
- args: [{
267
- imports: [
268
- CommonModule,
269
- PolymorpheusOutlet,
270
- PolymorpheusTemplate,
271
- TuiPrimitiveTextfieldModule,
272
- TuiSelectOptionModule,
273
- TuiArrowComponent,
274
- TuiWrapperModule,
275
- TuiTextfieldControllerModule,
276
- TuiLegacyDropdownOpenMonitorDirective,
277
- ...TuiDropdown,
278
- ],
279
- declarations: [
280
- TuiComboBoxComponent,
281
- TuiComboBoxStrictDirective,
282
- TuiComboBoxDirective,
283
- ],
284
- exports: [
285
- TuiComboBoxComponent,
286
- TuiComboBoxStrictDirective,
287
- TuiComboBoxDirective,
288
- TuiTextfieldComponent,
289
- ...TuiDropdown,
290
- ],
291
- }]
292
- }] });
293
-
294
- /**
295
- * Generated bundle index. Do not edit.
296
- */
297
-
298
- export { TuiComboBoxComponent, TuiComboBoxDirective, TuiComboBoxModule, TuiComboBoxStrictDirective };
299
- //# sourceMappingURL=taiga-ui-legacy-components-combo-box.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-legacy-components-combo-box.mjs","sources":["../../../projects/legacy/components/combo-box/combo-box.component.ts","../../../projects/legacy/components/combo-box/combo-box.template.html","../../../projects/legacy/components/combo-box/combo-box.directive.ts","../../../projects/legacy/components/combo-box/combo-box-strict.directive.ts","../../../projects/legacy/components/combo-box/combo-box.module.ts","../../../projects/legacy/components/combo-box/taiga-ui-legacy-components-combo-box.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n EventEmitter,\n inject,\n Input,\n Output,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {TUI_STRICT_MATCHER} from '@taiga-ui/cdk/constants';\nimport {type TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {type TuiContext, type TuiStringMatcher} from '@taiga-ui/cdk/types';\nimport {tuiIsFocused} from '@taiga-ui/cdk/utils/focus';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_DATA_LIST_ACCESSOR,\n tuiAsDataListHost,\n tuiAsOptionContent,\n type TuiDataListAccessor,\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 {AbstractTuiNullableControl, tuiAsControl} 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_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\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead\n */\n@Component({\n standalone: false,\n selector: 'tui-combo-box',\n templateUrl: './combo-box.template.html',\n styleUrl: './combo-box.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiComboBoxComponent),\n tuiAsDataListHost(TuiComboBoxComponent),\n tuiAsControl(TuiComboBoxComponent),\n tuiAsOptionContent(TUI_SELECT_OPTION),\n ],\n hostDirectives: [TuiDropdownFixed],\n host: {\n '[attr.data-size]': 'size',\n },\n})\nexport class TuiComboBoxComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor, TuiDataListHost<T>\n{\n @ContentChild(TUI_DATA_LIST_ACCESSOR as any)\n private readonly accessor?: TuiDataListAccessor<T>;\n\n @ViewChild(TuiDropdownOpen)\n private readonly dropdown?: TuiDropdownOpen;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly arrowMode = inject(TUI_ARROW_MODE);\n private readonly itemsHandlers = inject<TuiItemsHandlers<T>>(TUI_ITEMS_HANDLERS);\n private readonly textfieldSize = inject(TUI_TEXTFIELD_SIZE);\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n protected readonly datalist: PolymorpheusContent<TuiContext<TuiActiveZone>>;\n\n @Input()\n public stringify: TuiItemsHandlers<T>['stringify'] = this.itemsHandlers.stringify;\n\n @Input()\n public strictMatcher: TuiStringMatcher<T> | null = TUI_STRICT_MATCHER;\n\n @Input()\n public identityMatcher: TuiItemsHandlers<T>['identityMatcher'] =\n this.itemsHandlers.identityMatcher;\n\n @Input()\n public valueContent: PolymorpheusContent<TuiValueContentContext<T>>;\n\n @Input()\n public strict = true;\n\n @Input()\n public search: string | null = null;\n\n @Output()\n public readonly searchChange = new EventEmitter<string | null>();\n\n public open = false;\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 nativeValue(): string {\n return this.value === null ? this.search || '' : this.stringify(this.value);\n }\n\n public checkOption(option: T): void {\n if (!this.isStrictMatch(option)) {\n return;\n }\n\n this.value = option;\n this.updateSearch(null);\n }\n\n public handleOption(item: T): void {\n this.focusInput();\n this.close();\n this.updateSearch(null);\n this.value = item;\n\n if (this.value) {\n this.setNativeValue(this.stringify(item));\n }\n }\n\n public onValueChange(value: string): void {\n this.updateSearch(value);\n\n const match = this.accessor\n ?.getOptions()\n .find((item) => this.isStrictMatch(item));\n\n if (match !== undefined) {\n this.value = match;\n this.updateSearch(null);\n\n return;\n }\n\n if (this.strict || this.search === '') {\n this.value = null;\n }\n\n // Clearing sets the empty value, the dropdown should not be opened on clear.\n if (this.search !== '') {\n this.open = true;\n }\n }\n\n public toggle(): void {\n if (this.interactive) {\n this.open = !this.open;\n }\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 showValueTemplate(): boolean {\n return tuiIsPresent(this.value) && !this.focused;\n }\n\n protected get computedContent(): PolymorpheusContent<TuiValueContentContext<T>> {\n return this.valueContent || this.nativeValue;\n }\n\n protected onActiveZone(active: boolean): void {\n this.updateFocused(active);\n }\n\n protected onFieldKeyDownEnter(event: Event): void {\n if (this.open) {\n event.preventDefault();\n }\n\n const options = this.accessor?.getOptions() || [];\n\n if (options.length !== 1) {\n return;\n }\n\n this.value = options[0] ?? null;\n this.updateSearch(null);\n this.close();\n }\n\n private isStrictMatch(item: T): boolean {\n return !!this.search && !!this.strictMatcher?.(item, this.search, this.stringify);\n }\n\n private close(): void {\n this.open = false;\n }\n\n private updateSearch(search: string | null): void {\n if (this.search === search) {\n return;\n }\n\n this.search = search;\n this.searchChange.emit(search);\n }\n\n private setNativeValue(value: string): void {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.value = value;\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 && !!datalist\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-combo-box__textfield\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"computedFocusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [value]=\"nativeValue\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onFieldKeyDownEnter($event)\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n @if (showValueTemplate) {\n <div\n automation-id=\"tui-combo-box__template\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <ng-container\n *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value!, active: computedFocused}\"\n >\n {{ text }}\n </ng-container>\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 {AbstractTuiTextfieldHost} from '@taiga-ui/legacy/classes';\nimport {tuiAsTextfieldHost} from '@taiga-ui/legacy/tokens';\n\nimport {type TuiComboBoxComponent} from './combo-box.component';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead\n */\n@Directive({\n standalone: false,\n selector: 'tui-combo-box',\n providers: [tuiAsTextfieldHost(TuiComboBoxDirective)],\n})\nexport class TuiComboBoxDirective extends AbstractTuiTextfieldHost<\n TuiComboBoxComponent<unknown>\n> {\n public override get value(): string {\n return this.host.nativeValue;\n }\n\n public onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {Directive, inject, Input} from '@angular/core';\n\nimport {TuiComboBoxComponent} from './combo-box.component';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead\n */\n@Directive({\n standalone: false,\n selector: 'tui-combo-box[strict]',\n host: {\n '(input)': 'onInput()',\n },\n})\nexport class TuiComboBoxStrictDirective<T> {\n private readonly comboBox = inject(TuiComboBoxComponent<T | string>);\n\n @Input()\n public strict = true;\n\n protected onInput(): void {\n if (!this.strict && this.comboBox.search) {\n this.comboBox.value = this.comboBox.search;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiDropdown} from '@taiga-ui/core/directives/dropdown';\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 {TuiComboBoxComponent} from './combo-box.component';\nimport {TuiComboBoxDirective} from './combo-box.directive';\nimport {TuiComboBoxStrictDirective} from './combo-box-strict.directive';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead\n */\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusOutlet,\n PolymorpheusTemplate,\n TuiPrimitiveTextfieldModule,\n TuiSelectOptionModule,\n TuiArrowComponent,\n TuiWrapperModule,\n TuiTextfieldControllerModule,\n TuiLegacyDropdownOpenMonitorDirective,\n ...TuiDropdown,\n ],\n declarations: [\n TuiComboBoxComponent,\n TuiComboBoxStrictDirective,\n TuiComboBoxDirective,\n ],\n exports: [\n TuiComboBoxComponent,\n TuiComboBoxStrictDirective,\n TuiComboBoxDirective,\n TuiTextfieldComponent,\n ...TuiDropdown,\n ],\n})\nexport class TuiComboBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2CA;;;AAGG;AAkBG,MAAO,oBACT,SAAQ,0BAA6B,CAAA;AAlBzC,IAAA,WAAA,GAAA;;AA8BqB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AAClC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAsB,kBAAkB,CAAC;AAC/D,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAMpD,QAAA,IAAA,CAAA,SAAS,GAAqC,IAAI,CAAC,aAAa,CAAC,SAAS;QAG1E,IAAa,CAAA,aAAA,GAA+B,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