@taiga-ui/legacy 4.52.0-canary.e10b718 → 4.52.0-canary.eb5ffe3

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 (159) hide show
  1. package/components/dialog/dialog.component.d.ts +20 -0
  2. package/components/dialog/dialog.directive.d.ts +7 -0
  3. package/components/dialog/dialog.factory.d.ts +16 -0
  4. package/components/dialog/dialog.interfaces.d.ts +31 -0
  5. package/components/dialog/dialog.service.d.ts +7 -0
  6. package/components/dialog/dialog.tokens.d.ts +8 -0
  7. package/components/dialog/index.d.ts +6 -0
  8. package/components/index.d.ts +2 -9
  9. package/components/input/input.module.d.ts +1 -1
  10. package/components/input-date-range/input-date-range.module.d.ts +1 -1
  11. package/components/input-date-time/input-date-time.component.d.ts +4 -3
  12. package/components/input-date-time/input-date-time.module.d.ts +1 -1
  13. package/components/input-month-range/input-month-range.module.d.ts +1 -1
  14. package/components/input-range/input-range.component.d.ts +1 -1
  15. package/components/input-tag/input-tag.module.d.ts +1 -1
  16. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  17. package/components/multi-select/multi-select.module.d.ts +1 -1
  18. package/components/pdf-viewer/index.d.ts +4 -0
  19. package/components/pdf-viewer/pdf-viewer.component.d.ts +12 -0
  20. package/components/pdf-viewer/pdf-viewer.directive.d.ts +7 -0
  21. package/components/pdf-viewer/pdf-viewer.options.d.ts +13 -0
  22. package/components/pdf-viewer/pdf-viewer.service.d.ts +13 -0
  23. package/components/select/select.module.d.ts +1 -1
  24. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-legacy-components-dialog.mjs +129 -0
  26. package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -0
  27. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +5 -5
  28. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +6 -6
  30. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +2 -2
  32. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -1
  33. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +3 -3
  34. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
  35. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +7 -7
  36. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +3 -3
  38. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +5 -5
  40. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-legacy-components-input.mjs +4 -5
  42. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +9 -9
  45. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs +82 -0
  47. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs.map +1 -0
  48. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +2 -2
  49. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-legacy-components-select.mjs +8 -9
  52. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +2 -2
  55. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-legacy-components.mjs +2 -9
  57. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +1 -2
  59. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-legacy.mjs +0 -2
  61. package/fesm2022/taiga-ui-legacy.mjs.map +1 -1
  62. package/index.d.ts +0 -2
  63. package/package.json +8 -56
  64. package/utils/icons-path-factory.d.ts +1 -1
  65. package/components/color-selector/color-edit/color-edit.component.d.ts +0 -18
  66. package/components/color-selector/color-edit/color-edit.module.d.ts +0 -21
  67. package/components/color-selector/color-picker/color-picker.component.d.ts +0 -22
  68. package/components/color-selector/color-picker/color-picker.module.d.ts +0 -14
  69. package/components/color-selector/color-selector.component.d.ts +0 -47
  70. package/components/color-selector/color-selector.module.d.ts +0 -23
  71. package/components/color-selector/color-selector.options.d.ts +0 -25
  72. package/components/color-selector/flat-picker/flat-picker.component.d.ts +0 -12
  73. package/components/color-selector/flat-picker/flat-picker.module.d.ts +0 -12
  74. package/components/color-selector/index.d.ts +0 -16
  75. package/components/color-selector/linear-multi-picker/linear-multi-picker.component.d.ts +0 -17
  76. package/components/color-selector/linear-multi-picker/linear-multi-picker.module.d.ts +0 -12
  77. package/components/color-selector/linear-picker/linear-picker.component.d.ts +0 -10
  78. package/components/color-selector/linear-picker/linear-picker.module.d.ts +0 -12
  79. package/components/color-selector/palette/palette.component.d.ts +0 -10
  80. package/components/color-selector/palette/palette.module.d.ts +0 -13
  81. package/components/color-selector/services/picker.service.d.ts +0 -15
  82. package/components/combo-box/combo-box-strict.directive.d.ts +0 -12
  83. package/components/combo-box/combo-box.component.d.ts +0 -52
  84. package/components/combo-box/combo-box.directive.d.ts +0 -13
  85. package/components/combo-box/combo-box.module.d.ts +0 -20
  86. package/components/combo-box/index.d.ts +0 -4
  87. package/components/input-color/index.d.ts +0 -2
  88. package/components/input-color/input-color.component.d.ts +0 -30
  89. package/components/input-color/input-color.module.d.ts +0 -17
  90. package/components/input-date/index.d.ts +0 -3
  91. package/components/input-date/input-date.component.d.ts +0 -62
  92. package/components/input-date/input-date.directive.d.ts +0 -19
  93. package/components/input-date/input-date.module.d.ts +0 -24
  94. package/components/input-date/native-date/native-date.component.d.ts +0 -15
  95. package/components/input-phone/index.d.ts +0 -4
  96. package/components/input-phone/input-phone.component.d.ts +0 -52
  97. package/components/input-phone/input-phone.directive.d.ts +0 -16
  98. package/components/input-phone/input-phone.module.d.ts +0 -15
  99. package/components/input-phone/input-phone.options.d.ts +0 -22
  100. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +0 -9
  101. package/components/input-phone/utils/create-phone-mask-expression.d.ts +0 -7
  102. package/components/input-phone/utils/index.d.ts +0 -2
  103. package/components/input-phone-international/index.d.ts +0 -3
  104. package/components/input-phone-international/input-phone-international.component.d.ts +0 -43
  105. package/components/input-phone-international/input-phone-international.options.d.ts +0 -25
  106. package/components/input-phone-international/utils/extract-value-from-event.d.ts +0 -4
  107. package/components/input-time/index.d.ts +0 -4
  108. package/components/input-time/input-time.component.d.ts +0 -62
  109. package/components/input-time/input-time.directive.d.ts +0 -17
  110. package/components/input-time/input-time.module.d.ts +0 -23
  111. package/components/input-time/input-time.options.d.ts +0 -42
  112. package/components/input-time/native-time/native-time.component.d.ts +0 -12
  113. package/components/input-year/index.d.ts +0 -3
  114. package/components/input-year/input-year.component.d.ts +0 -36
  115. package/components/input-year/input-year.directive.d.ts +0 -14
  116. package/components/input-year/input-year.module.d.ts +0 -18
  117. package/components/svg/content-processor.d.ts +0 -19
  118. package/components/svg/deprecated-icons.d.ts +0 -5
  119. package/components/svg/index.d.ts +0 -5
  120. package/components/svg/svg-options.d.ts +0 -50
  121. package/components/svg/svg.component.d.ts +0 -50
  122. package/components/svg/svg.service.d.ts +0 -21
  123. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +0 -726
  124. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +0 -1
  125. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +0 -300
  126. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +0 -1
  127. package/fesm2022/taiga-ui-legacy-components-input-color.mjs +0 -127
  128. package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +0 -1
  129. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +0 -372
  130. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +0 -1
  131. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +0 -215
  132. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +0 -1
  133. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +0 -373
  134. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +0 -1
  135. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +0 -430
  136. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +0 -1
  137. package/fesm2022/taiga-ui-legacy-components-input-year.mjs +0 -188
  138. package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +0 -1
  139. package/fesm2022/taiga-ui-legacy-components-svg.mjs +0 -387
  140. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +0 -1
  141. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +0 -59
  142. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +0 -1
  143. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +0 -50
  144. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +0 -1
  145. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +0 -80
  146. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +0 -1
  147. package/fesm2022/taiga-ui-legacy-pipes.mjs +0 -8
  148. package/fesm2022/taiga-ui-legacy-pipes.mjs.map +0 -1
  149. package/fesm2022/taiga-ui-legacy-services.mjs +0 -42
  150. package/fesm2022/taiga-ui-legacy-services.mjs.map +0 -1
  151. package/pipes/format-phone/format-phone.pipe.d.ts +0 -37
  152. package/pipes/format-phone/index.d.ts +0 -1
  153. package/pipes/index.d.ts +0 -3
  154. package/pipes/iso-to-country-code/index.d.ts +0 -1
  155. package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +0 -30
  156. package/pipes/to-country-code/index.d.ts +0 -1
  157. package/pipes/to-country-code/to-country-code.pipe.d.ts +0 -38
  158. package/services/index.d.ts +0 -1
  159. package/services/static-request.service.d.ts +0 -11
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, ElementRef, Input, ContentChild, ViewChild, ChangeDetectionStrategy, Component, Directive, NgModule } from '@angular/core';
3
3
  import { TUI_IS_IOS } from '@taiga-ui/cdk/tokens';
4
- import { tuiIsNativeFocused } from '@taiga-ui/cdk/utils/focus';
4
+ import { tuiIsFocused } from '@taiga-ui/cdk/utils/focus';
5
5
  import { TUI_TEXTFIELD_OPTIONS } from '@taiga-ui/core/components/textfield';
6
6
  import { TuiHintOptionsDirective } from '@taiga-ui/core/directives/hint';
7
7
  import { AbstractTuiControl, tuiAsControl, AbstractTuiTextfieldHost } from '@taiga-ui/legacy/classes';
@@ -50,7 +50,7 @@ class TuiTextareaComponent extends AbstractTuiControl {
50
50
  return (this.textfield?.nativeElement || this.focusableElement?.nativeElement || null);
51
51
  }
52
52
  get focused() {
53
- return tuiIsNativeFocused(this.nativeFocusableElement);
53
+ return tuiIsFocused(this.nativeFocusableElement);
54
54
  }
55
55
  get computeMaxHeight() {
56
56
  return this.expandable ? this.rows * this.lineHeight : null;
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-legacy-components-textarea.mjs","sources":["../../../projects/legacy/components/textarea/textarea.component.ts","../../../projects/legacy/components/textarea/textarea.template.html","../../../projects/legacy/components/textarea/textarea.directive.ts","../../../projects/legacy/components/textarea/textarea.module.ts","../../../projects/legacy/components/textarea/taiga-ui-legacy-components-textarea.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ElementRef,\n inject,\n Input,\n ViewChild,\n} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiIsNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {TUI_TEXTFIELD_OPTIONS} from '@taiga-ui/core/components/textfield';\nimport {TuiHintOptionsDirective} from '@taiga-ui/core/directives/hint';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {AbstractTuiControl, tuiAsControl} from '@taiga-ui/legacy/classes';\nimport {\n TUI_ICON_START_PADDINGS,\n TuiTextfieldComponent,\n} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n} from '@taiga-ui/legacy/directives';\nimport {\n tuiAsFocusableItemAccessor,\n type TuiFocusableElementAccessor,\n} from '@taiga-ui/legacy/tokens';\nimport {tuiGetBorder} from '@taiga-ui/legacy/utils';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport const DEFAULT_ROWS = 20;\nexport const LINE_HEIGHT_M = 20;\nexport const LINE_HEIGHT_L = 24;\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/textarea Textarea} (from @taiga-ui/kit) instead\n */\n@Component({\n standalone: false,\n selector: 'tui-textarea',\n templateUrl: './textarea.template.html',\n styleUrls: ['./textarea.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiTextareaComponent),\n tuiAsControl(TuiTextareaComponent),\n TEXTFIELD_CONTROLLER_PROVIDER,\n ],\n host: {\n '[attr.data-size]': 'size',\n '[class._ios]': 'isIOS',\n '[class._expandable]': 'expandable',\n '[class._has-counter]': 'hasCounter',\n '[class._label-outside]': 'labelOutside',\n '[class._has-tooltip]': 'hasTooltip',\n '[class._has-value]': 'hasValue',\n '[style.--t-border-end.rem]': 'borderEnd',\n '[style.--t-border-start.rem]': 'borderStart',\n '(focusin)': 'onFocused(true)',\n '(focusout)': 'onFocused(false)',\n },\n})\nexport class TuiTextareaComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLTextAreaElement>;\n\n @ContentChild(TuiTextfieldComponent, {read: ElementRef})\n private readonly textfield?: ElementRef<HTMLTextAreaElement>;\n\n private readonly options = inject(TUI_TEXTFIELD_OPTIONS);\n\n protected readonly isIOS = inject(TUI_IS_IOS);\n protected readonly controller = inject(TUI_TEXTFIELD_WATCHED_CONTROLLER);\n protected readonly hintOptions = inject(TuiHintOptionsDirective, {optional: true});\n\n @Input()\n public rows = DEFAULT_ROWS;\n\n @Input()\n public maxLength: number | null = null;\n\n @Input()\n public expandable = false;\n\n public get nativeFocusableElement(): HTMLTextAreaElement | null {\n if (this.computedDisabled) {\n return null;\n }\n\n return (\n this.textfield?.nativeElement || this.focusableElement?.nativeElement || null\n );\n }\n\n public get focused(): boolean {\n return tuiIsNativeFocused(this.nativeFocusableElement);\n }\n\n public get computeMaxHeight(): number | null {\n return this.expandable ? this.rows * this.lineHeight : null;\n }\n\n public onValueChange(value: string): void {\n this.value = value;\n }\n\n protected get labelOutside(): boolean {\n return this.options.appearance() === 'table' || this.controller.labelOutside;\n }\n\n protected get size(): TuiSizeL | TuiSizeS {\n return this.controller.size;\n }\n\n protected get borderStart(): number {\n return this.iconLeftContent ? TUI_ICON_START_PADDINGS[this.size] : 0;\n }\n\n protected get borderEnd(): number {\n return tuiGetBorder(\n !!this.iconContent,\n this.hasCleaner,\n this.hasTooltip,\n this.hasCustomContent,\n this.size,\n );\n }\n\n protected get hasTooltip(): boolean {\n return (\n !!this.hintOptions?.content &&\n (this.controller.options.hintOnDisabled || !this.computedDisabled)\n );\n }\n\n protected get hasValue(): boolean {\n return this.value !== '';\n }\n\n protected get hasCounter(): boolean {\n return !!this.maxLength && this.interactive;\n }\n\n protected get appearance(): string {\n return this.options.appearance() === 'table'\n ? 'table'\n : this.controller.appearance;\n }\n\n protected get hasCleaner(): boolean {\n return this.controller.cleaner && this.hasValue && this.interactive;\n }\n\n protected get hasPlaceholder(): boolean {\n return this.placeholderRaisable || (!this.hasValue && !this.hasExampleText);\n }\n\n protected get hasCustomContent(): boolean {\n return !!this.controller.customContent;\n }\n\n protected get iconLeftContent(): PolymorpheusContent<\n TuiContext<TuiSizeL | TuiSizeS>\n > {\n return this.controller.iconStart;\n }\n\n protected get iconContent(): PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>> {\n return this.controller.icon;\n }\n\n protected get iconCleaner(): PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>> {\n return this.controller.options.iconCleaner;\n }\n\n protected get hasExampleText(): boolean {\n return (\n !!this.textfield?.nativeElement.placeholder &&\n this.focused &&\n !this.hasValue &&\n !this.readOnly\n );\n }\n\n protected get placeholderRaised(): boolean {\n return (\n this.placeholderRaisable &&\n ((this.computedFocused && !this.readOnly) || this.hasValue)\n );\n }\n\n protected get fittedContent(): string {\n return this.value.slice(0, this.maxLength || Infinity);\n }\n\n protected get extraContent(): string {\n return this.value.slice(this.maxLength || Infinity);\n }\n\n protected onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n protected onMouseDown(event: MouseEvent): void {\n if (event.target === this.nativeFocusableElement) {\n return;\n }\n\n event.preventDefault();\n\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.focus();\n }\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n private get lineHeight(): number {\n return this.controller.size === 'm' ? LINE_HEIGHT_M : LINE_HEIGHT_L;\n }\n\n private get placeholderRaisable(): boolean {\n return this.size !== 's' && !this.controller.labelOutside;\n }\n}\n","@if (hintOptions?.change$ | async) {}\n<div\n automation-id=\"tui-text-area__wrapper\"\n tuiWrapper\n class=\"t-outline\"\n [appearance]=\"appearance\"\n [disabled]=\"disabled\"\n [focus]=\"computedFocused\"\n [hover]=\"pseudoHover\"\n [invalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n>\n @if (hasCounter) {\n <div\n automation-id=\"tui-text-area__counter\"\n class=\"t-counter\"\n >\n {{ value.length }}/{{ maxLength }}\n </div>\n }\n\n <label\n class=\"t-content\"\n (mousedown)=\"onMouseDown($event)\"\n >\n <div class=\"t-wrapper\">\n @if (hasPlaceholder) {\n <div\n automation-id=\"tui-text-area__placeholder\"\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content />\n </div>\n }\n <tui-scrollbar\n automation-id=\"tui-text-area__scrollbar\"\n class=\"t-box\"\n [style.maxHeight.px]=\"computeMaxHeight\"\n >\n <div class=\"t-input-wrapper\">\n <div class=\"t-relative\">\n <div\n aria-hidden=\"true\"\n class=\"t-pseudo-content\"\n >\n <span [textContent]=\"fittedContent || nativeFocusableElement?.placeholder\"></span>\n <span\n class=\"t-pseudo-content__extra\"\n [textContent]=\"extraContent\"\n ></span>\n <span class=\"t-caret\"></span>\n </div>\n <textarea\n #focusableElement\n automation-id=\"tui-text-area__native\"\n class=\"t-input\"\n [disabled]=\"computedDisabled\"\n [id]=\"id\"\n [ngModelOptions]=\"{standalone: true}\"\n [readOnly]=\"readOnly\"\n [tabIndex]=\"computedFocusable ? 0 : -1\"\n [(ngModel)]=\"value\"\n ></textarea>\n <ng-content select=\"textarea\" />\n </div>\n </div>\n </tui-scrollbar>\n </div>\n <div class=\"t-icons\">\n @if (iconLeftContent) {\n <div class=\"t-icon t-icon_left t-textfield-icon\">\n <tui-icon\n *polymorpheusOutlet=\"iconLeftContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\n }\n @if (hasCustomContent) {\n <tui-icon\n *polymorpheusOutlet=\"controller.customContent as src\"\n [icon]=\"src\"\n />\n }\n @if (hasCleaner) {\n <tui-icon\n *polymorpheusOutlet=\"iconCleaner as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n class=\"t-cleaner\"\n [icon]=\"src.toString()\"\n (click.stop)=\"onValueChange('')\"\n />\n }\n @if (hasTooltip) {\n <tui-tooltip\n automation-id=\"tui-text-area__tooltip\"\n [content]=\"hintOptions?.content\"\n [describeId]=\"id\"\n />\n }\n @if (iconContent) {\n <div class=\"t-icon t-textfield-icon\">\n <tui-icon\n *polymorpheusOutlet=\"iconContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\n }\n </div>\n </label>\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 TuiTextareaComponent} from './textarea.component';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/textarea Textarea} (from @taiga-ui/kit) instead\n */\n@Directive({\n standalone: false,\n selector: 'tui-textarea',\n providers: [tuiAsTextfieldHost(TuiTextareaDirective)],\n})\nexport class TuiTextareaDirective extends AbstractTuiTextfieldHost<TuiTextareaComponent> {\n public onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiScrollbar} from '@taiga-ui/core/components/scrollbar';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TuiTooltipModule} from '@taiga-ui/legacy/components/tooltip';\nimport {TuiWrapperModule} from '@taiga-ui/legacy/directives';\nimport {PolymorpheusOutlet, PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\n\nimport {TuiTextareaComponent} from './textarea.component';\nimport {TuiTextareaDirective} from './textarea.directive';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/textarea Textarea} (from @taiga-ui/kit) instead\n */\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiScrollbar,\n TuiTooltipModule,\n TuiWrapperModule,\n TuiPrimitiveTextfieldModule,\n PolymorpheusOutlet,\n PolymorpheusTemplate,\n TuiIcon,\n TuiAppearance,\n ],\n declarations: [TuiTextareaComponent, TuiTextareaDirective],\n exports: [\n TuiTextareaComponent,\n TuiTextareaDirective,\n TuiTextfieldComponent,\n PolymorpheusOutlet,\n PolymorpheusTemplate,\n ],\n})\nexport class TuiTextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BO,MAAM,YAAY,GAAG;AACrB,MAAM,aAAa,GAAG;AACtB,MAAM,aAAa,GAAG;AAE7B;;;AAGG;AA0BG,MAAO,oBACT,SAAQ,kBAA0B,CAAA;AA1BtC,IAAA,WAAA,GAAA;;AAmCqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,qBAAqB,CAAC;AAErC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC;AAC1B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,gCAAgC,CAAC;QACrD,IAAW,CAAA,WAAA,GAAG,MAAM,CAAC,uBAAuB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;QAG3E,IAAI,CAAA,IAAA,GAAG,YAAY;QAGnB,IAAS,CAAA,SAAA,GAAkB,IAAI;QAG/B,IAAU,CAAA,UAAA,GAAG,KAAK;AAgJ5B;AA9IG,IAAA,IAAW,sBAAsB,GAAA;AAC7B,QAAA,IAAI,IAAI,CAAC,gBAAgB,EAAE;AACvB,YAAA,OAAO,IAAI;;AAGf,QAAA,QACI,IAAI,CAAC,SAAS,EAAE,aAAa,IAAI,IAAI,CAAC,gBAA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EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YApBtB,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,gBAAgB;YAChB,gBAAgB;YAChB,2BAA2B;YAG3B,OAAO,CAAA,EAAA,CAAA,CAAA;;4FAYF,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAtB7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,gBAAgB;wBAChB,gBAAgB;wBAChB,2BAA2B;wBAC3B,kBAAkB;wBAClB,oBAAoB;wBACpB,OAAO;wBACP,aAAa;AAChB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;AAC1D,oBAAA,OAAO,EAAE;wBACL,oBAAoB;wBACpB,oBAAoB;wBACpB,qBAAqB;wBACrB,kBAAkB;wBAClB,oBAAoB;AACvB,qBAAA;AACJ,iBAAA;;;AC1CD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-legacy-components-textarea.mjs","sources":["../../../projects/legacy/components/textarea/textarea.component.ts","../../../projects/legacy/components/textarea/textarea.template.html","../../../projects/legacy/components/textarea/textarea.directive.ts","../../../projects/legacy/components/textarea/textarea.module.ts","../../../projects/legacy/components/textarea/taiga-ui-legacy-components-textarea.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ElementRef,\n inject,\n Input,\n ViewChild,\n} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiIsFocused} from '@taiga-ui/cdk/utils/focus';\nimport {TUI_TEXTFIELD_OPTIONS} from '@taiga-ui/core/components/textfield';\nimport {TuiHintOptionsDirective} from '@taiga-ui/core/directives/hint';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {AbstractTuiControl, tuiAsControl} from '@taiga-ui/legacy/classes';\nimport {\n TUI_ICON_START_PADDINGS,\n TuiTextfieldComponent,\n} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n} from '@taiga-ui/legacy/directives';\nimport {\n tuiAsFocusableItemAccessor,\n type TuiFocusableElementAccessor,\n} from '@taiga-ui/legacy/tokens';\nimport {tuiGetBorder} from '@taiga-ui/legacy/utils';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport const DEFAULT_ROWS = 20;\nexport const LINE_HEIGHT_M = 20;\nexport const LINE_HEIGHT_L = 24;\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/textarea Textarea} (from @taiga-ui/kit) instead\n */\n@Component({\n standalone: false,\n selector: 'tui-textarea',\n templateUrl: './textarea.template.html',\n styleUrl: './textarea.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiTextareaComponent),\n tuiAsControl(TuiTextareaComponent),\n TEXTFIELD_CONTROLLER_PROVIDER,\n ],\n host: {\n '[attr.data-size]': 'size',\n '[class._ios]': 'isIOS',\n '[class._expandable]': 'expandable',\n '[class._has-counter]': 'hasCounter',\n '[class._label-outside]': 'labelOutside',\n '[class._has-tooltip]': 'hasTooltip',\n '[class._has-value]': 'hasValue',\n '[style.--t-border-end.rem]': 'borderEnd',\n '[style.--t-border-start.rem]': 'borderStart',\n '(focusin)': 'onFocused(true)',\n '(focusout)': 'onFocused(false)',\n },\n})\nexport class TuiTextareaComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLTextAreaElement>;\n\n @ContentChild(TuiTextfieldComponent, {read: ElementRef})\n private readonly textfield?: ElementRef<HTMLTextAreaElement>;\n\n private readonly options = inject(TUI_TEXTFIELD_OPTIONS);\n\n protected readonly isIOS = inject(TUI_IS_IOS);\n protected readonly controller = inject(TUI_TEXTFIELD_WATCHED_CONTROLLER);\n protected readonly hintOptions = inject(TuiHintOptionsDirective, {optional: true});\n\n @Input()\n public rows = DEFAULT_ROWS;\n\n @Input()\n public maxLength: number | null = null;\n\n @Input()\n public expandable = false;\n\n public get nativeFocusableElement(): HTMLTextAreaElement | null {\n if (this.computedDisabled) {\n return null;\n }\n\n return (\n this.textfield?.nativeElement || this.focusableElement?.nativeElement || null\n );\n }\n\n public get focused(): boolean {\n return tuiIsFocused(this.nativeFocusableElement);\n }\n\n public get computeMaxHeight(): number | null {\n return this.expandable ? this.rows * this.lineHeight : null;\n }\n\n public onValueChange(value: string): void {\n this.value = value;\n }\n\n protected get labelOutside(): boolean {\n return this.options.appearance() === 'table' || this.controller.labelOutside;\n }\n\n protected get size(): TuiSizeL | TuiSizeS {\n return this.controller.size;\n }\n\n protected get borderStart(): number {\n return this.iconLeftContent ? TUI_ICON_START_PADDINGS[this.size] : 0;\n }\n\n protected get borderEnd(): number {\n return tuiGetBorder(\n !!this.iconContent,\n this.hasCleaner,\n this.hasTooltip,\n this.hasCustomContent,\n this.size,\n );\n }\n\n protected get hasTooltip(): boolean {\n return (\n !!this.hintOptions?.content &&\n (this.controller.options.hintOnDisabled || !this.computedDisabled)\n );\n }\n\n protected get hasValue(): boolean {\n return this.value !== '';\n }\n\n protected get hasCounter(): boolean {\n return !!this.maxLength && this.interactive;\n }\n\n protected get appearance(): string {\n return this.options.appearance() === 'table'\n ? 'table'\n : this.controller.appearance;\n }\n\n protected get hasCleaner(): boolean {\n return this.controller.cleaner && this.hasValue && this.interactive;\n }\n\n protected get hasPlaceholder(): boolean {\n return this.placeholderRaisable || (!this.hasValue && !this.hasExampleText);\n }\n\n protected get hasCustomContent(): boolean {\n return !!this.controller.customContent;\n }\n\n protected get iconLeftContent(): PolymorpheusContent<\n TuiContext<TuiSizeL | TuiSizeS>\n > {\n return this.controller.iconStart;\n }\n\n protected get iconContent(): PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>> {\n return this.controller.icon;\n }\n\n protected get iconCleaner(): PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>> {\n return this.controller.options.iconCleaner;\n }\n\n protected get hasExampleText(): boolean {\n return (\n !!this.textfield?.nativeElement.placeholder &&\n this.focused &&\n !this.hasValue &&\n !this.readOnly\n );\n }\n\n protected get placeholderRaised(): boolean {\n return (\n this.placeholderRaisable &&\n ((this.computedFocused && !this.readOnly) || this.hasValue)\n );\n }\n\n protected get fittedContent(): string {\n return this.value.slice(0, this.maxLength || Infinity);\n }\n\n protected get extraContent(): string {\n return this.value.slice(this.maxLength || Infinity);\n }\n\n protected onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n protected onMouseDown(event: MouseEvent): void {\n if (event.target === this.nativeFocusableElement) {\n return;\n }\n\n event.preventDefault();\n\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.focus();\n }\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n private get lineHeight(): number {\n return this.controller.size === 'm' ? LINE_HEIGHT_M : LINE_HEIGHT_L;\n }\n\n private get placeholderRaisable(): boolean {\n return this.size !== 's' && !this.controller.labelOutside;\n }\n}\n","@if (hintOptions?.change$ | async) {}\n<div\n automation-id=\"tui-text-area__wrapper\"\n tuiWrapper\n class=\"t-outline\"\n [appearance]=\"appearance\"\n [disabled]=\"disabled\"\n [focus]=\"computedFocused\"\n [hover]=\"pseudoHover\"\n [invalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n>\n @if (hasCounter) {\n <div\n automation-id=\"tui-text-area__counter\"\n class=\"t-counter\"\n >\n {{ value.length }}/{{ maxLength }}\n </div>\n }\n\n <label\n class=\"t-content\"\n (mousedown)=\"onMouseDown($event)\"\n >\n <div class=\"t-wrapper\">\n @if (hasPlaceholder) {\n <div\n automation-id=\"tui-text-area__placeholder\"\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content />\n </div>\n }\n <tui-scrollbar\n automation-id=\"tui-text-area__scrollbar\"\n class=\"t-box\"\n [style.maxHeight.px]=\"computeMaxHeight\"\n >\n <div class=\"t-input-wrapper\">\n <div class=\"t-relative\">\n <div\n aria-hidden=\"true\"\n class=\"t-pseudo-content\"\n >\n <span [textContent]=\"fittedContent || nativeFocusableElement?.placeholder\"></span>\n <span\n class=\"t-pseudo-content__extra\"\n [textContent]=\"extraContent\"\n ></span>\n <span class=\"t-caret\"></span>\n </div>\n <textarea\n #focusableElement\n automation-id=\"tui-text-area__native\"\n class=\"t-input\"\n [disabled]=\"computedDisabled\"\n [id]=\"id\"\n [ngModelOptions]=\"{standalone: true}\"\n [readOnly]=\"readOnly\"\n [tabIndex]=\"computedFocusable ? 0 : -1\"\n [(ngModel)]=\"value\"\n ></textarea>\n <ng-content select=\"textarea\" />\n </div>\n </div>\n </tui-scrollbar>\n </div>\n <div class=\"t-icons\">\n @if (iconLeftContent) {\n <div class=\"t-icon t-icon_left t-textfield-icon\">\n <tui-icon\n *polymorpheusOutlet=\"iconLeftContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\n }\n @if (hasCustomContent) {\n <tui-icon\n *polymorpheusOutlet=\"controller.customContent as src\"\n [icon]=\"src\"\n />\n }\n @if (hasCleaner) {\n <tui-icon\n *polymorpheusOutlet=\"iconCleaner as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n class=\"t-cleaner\"\n [icon]=\"src.toString()\"\n (click.stop)=\"onValueChange('')\"\n />\n }\n @if (hasTooltip) {\n <tui-tooltip\n automation-id=\"tui-text-area__tooltip\"\n [content]=\"hintOptions?.content\"\n [describeId]=\"id\"\n />\n }\n @if (iconContent) {\n <div class=\"t-icon t-textfield-icon\">\n <tui-icon\n *polymorpheusOutlet=\"iconContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\n }\n </div>\n </label>\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 TuiTextareaComponent} from './textarea.component';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/textarea Textarea} (from @taiga-ui/kit) instead\n */\n@Directive({\n standalone: false,\n selector: 'tui-textarea',\n providers: [tuiAsTextfieldHost(TuiTextareaDirective)],\n})\nexport class TuiTextareaDirective extends AbstractTuiTextfieldHost<TuiTextareaComponent> {\n public onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiScrollbar} from '@taiga-ui/core/components/scrollbar';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TuiTooltipModule} from '@taiga-ui/legacy/components/tooltip';\nimport {TuiWrapperModule} from '@taiga-ui/legacy/directives';\nimport {PolymorpheusOutlet, PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\n\nimport {TuiTextareaComponent} from './textarea.component';\nimport {TuiTextareaDirective} from './textarea.directive';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/textarea Textarea} (from @taiga-ui/kit) instead\n */\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiScrollbar,\n TuiTooltipModule,\n TuiWrapperModule,\n TuiPrimitiveTextfieldModule,\n PolymorpheusOutlet,\n PolymorpheusTemplate,\n TuiIcon,\n TuiAppearance,\n ],\n declarations: [TuiTextareaComponent, TuiTextareaDirective],\n exports: [\n TuiTextareaComponent,\n TuiTextareaDirective,\n TuiTextfieldComponent,\n PolymorpheusOutlet,\n PolymorpheusTemplate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oBAAoB;wBACpB,OAAO;wBACP,aAAa;AAChB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;AAC1D,oBAAA,OAAO,EAAE;wBACL,oBAAoB;wBACpB,oBAAoB;wBACpB,qBAAqB;wBACrB,kBAAkB;wBAClB,oBAAoB;AACvB,qBAAA;AACJ,iBAAA;;;AC1CD;;AAEG;;;;"}
@@ -1,26 +1,19 @@
1
1
  export * from '@taiga-ui/legacy/components/arrow';
2
- export * from '@taiga-ui/legacy/components/color-selector';
3
- export * from '@taiga-ui/legacy/components/combo-box';
2
+ export * from '@taiga-ui/legacy/components/dialog';
4
3
  export * from '@taiga-ui/legacy/components/input';
5
- export * from '@taiga-ui/legacy/components/input-color';
6
- export * from '@taiga-ui/legacy/components/input-date';
7
4
  export * from '@taiga-ui/legacy/components/input-date-range';
8
5
  export * from '@taiga-ui/legacy/components/input-date-time';
9
6
  export * from '@taiga-ui/legacy/components/input-month-range';
10
7
  export * from '@taiga-ui/legacy/components/input-number';
11
- export * from '@taiga-ui/legacy/components/input-phone';
12
- export * from '@taiga-ui/legacy/components/input-phone-international';
13
8
  export * from '@taiga-ui/legacy/components/input-range';
14
9
  export * from '@taiga-ui/legacy/components/input-slider';
15
10
  export * from '@taiga-ui/legacy/components/input-tag';
16
- export * from '@taiga-ui/legacy/components/input-time';
17
- export * from '@taiga-ui/legacy/components/input-year';
18
11
  export * from '@taiga-ui/legacy/components/multi-select';
19
12
  export * from '@taiga-ui/legacy/components/multi-select-option';
13
+ export * from '@taiga-ui/legacy/components/pdf-viewer';
20
14
  export * from '@taiga-ui/legacy/components/primitive-textfield';
21
15
  export * from '@taiga-ui/legacy/components/select';
22
16
  export * from '@taiga-ui/legacy/components/select-option';
23
- export * from '@taiga-ui/legacy/components/svg';
24
17
  export * from '@taiga-ui/legacy/components/tag';
25
18
  export * from '@taiga-ui/legacy/components/textarea';
26
19
  export * from '@taiga-ui/legacy/components/tooltip';
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-legacy-components.mjs","sources":["../../../projects/legacy/components/taiga-ui-legacy-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG"}
1
+ {"version":3,"file":"taiga-ui-legacy-components.mjs","sources":["../../../projects/legacy/components/taiga-ui-legacy-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;AAEG"}
@@ -2,7 +2,6 @@ import { TuiValidationError } from '@taiga-ui/cdk/classes';
2
2
  import { tuiIsHTMLElement, tuiIsInput } from '@taiga-ui/cdk/utils/dom';
3
3
  import * as i0 from '@angular/core';
4
4
  import { inject, INJECTOR, Input, Directive } from '@angular/core';
5
- import { toSignal } from '@angular/core/rxjs-interop';
6
5
  import { NG_VALIDATORS } from '@angular/forms';
7
6
  import { tuiProvide } from '@taiga-ui/cdk/utils/miscellaneous';
8
7
  import { TUI_DEFAULT_ERROR_MESSAGE } from '@taiga-ui/core/tokens';
@@ -23,7 +22,7 @@ function tuiCreateUnfinishedValidator(nativeInputGetter, message) {
23
22
 
24
23
  class TuiUnfinishedValidator {
25
24
  constructor() {
26
- this.default = toSignal(inject(TUI_DEFAULT_ERROR_MESSAGE));
25
+ this.default = inject(TUI_DEFAULT_ERROR_MESSAGE);
27
26
  this.injector = inject(INJECTOR);
28
27
  this.tuiUnfinishedValidator = '';
29
28
  this.validate = tuiCreateUnfinishedValidator(() => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR), () => this.tuiUnfinishedValidator || this.default());
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-legacy-directives-unfinished-validator.mjs","sources":["../../../projects/legacy/directives/unfinished-validator/unfinished.validator.ts","../../../projects/legacy/directives/unfinished-validator/unfinished-validator.directive.ts","../../../projects/legacy/directives/unfinished-validator/taiga-ui-legacy-directives-unfinished-validator.ts"],"sourcesContent":["import {type AbstractControl, type ValidatorFn} from '@angular/forms';\nimport {TuiValidationError} from '@taiga-ui/cdk/classes';\nimport {tuiIsHTMLElement, tuiIsInput} from '@taiga-ui/cdk/utils/dom';\nimport {type TuiFocusableElementAccessor} from '@taiga-ui/legacy/tokens';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport function tuiCreateUnfinishedValidator(\n nativeInputGetter: () => TuiFocusableElementAccessor,\n message: PolymorpheusContent,\n): ValidatorFn {\n return ({\n value,\n }: AbstractControl): {unfinished: TuiValidationError | string} | null => {\n const nativeInput = nativeInputGetter();\n\n return value === null &&\n nativeInput &&\n tuiIsHTMLElement(nativeInput.nativeFocusableElement) &&\n tuiIsInput(nativeInput.nativeFocusableElement) &&\n nativeInput.nativeFocusableElement.value !== ''\n ? {unfinished: new TuiValidationError(message)}\n : null;\n };\n}\n","import {Directive, inject, INJECTOR, Input} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {NG_VALIDATORS, type Validator} from '@angular/forms';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_DEFAULT_ERROR_MESSAGE} from '@taiga-ui/core/tokens';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/legacy/tokens';\n\nimport {tuiCreateUnfinishedValidator} from './unfinished.validator';\n\n@Directive({\n standalone: true,\n selector: '[tuiUnfinishedValidator]',\n providers: [tuiProvide(NG_VALIDATORS, TuiUnfinishedValidator, true)],\n})\nexport class TuiUnfinishedValidator implements Validator {\n private readonly default = toSignal(inject(TUI_DEFAULT_ERROR_MESSAGE));\n private readonly injector = inject(INJECTOR);\n\n @Input()\n public tuiUnfinishedValidator = '';\n\n public readonly validate = tuiCreateUnfinishedValidator(\n () => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR),\n () => this.tuiUnfinishedValidator || this.default(),\n );\n}\n","/**\n * Generated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AA,CAAA;;4FAE3D,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,0BAA0B;oBACpC,SAAS,EAAE,CAAC,UAAU,CAAC,aAAa,EAA0B,sBAAA,EAAA,IAAI,CAAC,CAAC;AACvE,iBAAA;8BAMU,sBAAsB,EAAA,CAAA;sBAD5B;;;AClBL;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-legacy-directives-unfinished-validator.mjs","sources":["../../../projects/legacy/directives/unfinished-validator/unfinished.validator.ts","../../../projects/legacy/directives/unfinished-validator/unfinished-validator.directive.ts","../../../projects/legacy/directives/unfinished-validator/taiga-ui-legacy-directives-unfinished-validator.ts"],"sourcesContent":["import {type AbstractControl, type ValidatorFn} from '@angular/forms';\nimport {TuiValidationError} from '@taiga-ui/cdk/classes';\nimport {tuiIsHTMLElement, tuiIsInput} from '@taiga-ui/cdk/utils/dom';\nimport {type TuiFocusableElementAccessor} from '@taiga-ui/legacy/tokens';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport function tuiCreateUnfinishedValidator(\n nativeInputGetter: () => TuiFocusableElementAccessor,\n message: PolymorpheusContent,\n): ValidatorFn {\n return ({\n value,\n }: AbstractControl): {unfinished: TuiValidationError | string} | null => {\n const nativeInput = nativeInputGetter();\n\n return value === null &&\n nativeInput &&\n tuiIsHTMLElement(nativeInput.nativeFocusableElement) &&\n tuiIsInput(nativeInput.nativeFocusableElement) &&\n nativeInput.nativeFocusableElement.value !== ''\n ? {unfinished: new TuiValidationError(message)}\n : null;\n };\n}\n","import {Directive, inject, INJECTOR, Input} from '@angular/core';\nimport {NG_VALIDATORS, type Validator} from '@angular/forms';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_DEFAULT_ERROR_MESSAGE} from '@taiga-ui/core/tokens';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/legacy/tokens';\n\nimport {tuiCreateUnfinishedValidator} from './unfinished.validator';\n\n@Directive({\n standalone: true,\n selector: '[tuiUnfinishedValidator]',\n providers: [tuiProvide(NG_VALIDATORS, TuiUnfinishedValidator, true)],\n})\nexport class TuiUnfinishedValidator implements Validator {\n private readonly default = inject(TUI_DEFAULT_ERROR_MESSAGE);\n private readonly injector = inject(INJECTOR);\n\n @Input()\n public tuiUnfinishedValidator = '';\n\n public readonly validate = tuiCreateUnfinishedValidator(\n () => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR),\n () => this.tuiUnfinishedValidator || this.default(),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAMgB,SAAA,4BAA4B,CACxC,iBAAoD,EACpD,OAA4B,EAAA;AAE5B,IAAA,OAAO,CAAC,EACJ,KAAK,GACS,KAAsD;AACpE,QAAA,MAAM,WAAW,GAAG,iBAAiB,EAAE;QAEvC,OAAO,KAAK,KAAK,IAAI;YACjB,WAAW;AACX,YAAA,gBAAgB,CAAC,WAAW,CAAC,sBAAsB,CAAC;AACpD,YAAA,UAAU,CAAC,WAAW,CAAC,sBAAsB,CAAC;AAC9C,YAAA,WAAW,CAAC,sBAAsB,CAAC,KAAK,KAAK;cAC3C,EAAC,UAAU,EAAE,IAAI,kBAAkB,CAAC,OAAO,CAAC;cAC5C,IAAI;AACd,KAAC;AACL;;MCVa,sBAAsB,CAAA;AALnC,IAAA,WAAA,GAAA;AAMqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,yBAAyB,CAAC;AAC3C,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAGrC,IAAsB,CAAA,sBAAA,GAAG,EAAE;QAElB,IAAQ,CAAA,QAAA,GAAG,4BAA4B,CACnD,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,2BAA2B,CAAC,EACpD,MAAM,IAAI,CAAC,sBAAsB,IAAI,IAAI,CAAC,OAAO,EAAE,CACtD;AACJ;+GAXY,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,MAAA,EAAA,EAAA,sBAAA,EAAA,wBAAA,EAAA,EAAA,SAAA,EAFpB,CAAC,UAAU,CAAC,aAAa,EAAE,sBAAsB,EAAE,IAAI,CAAC,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAE3D,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,0BAA0B;oBACpC,SAAS,EAAE,CAAC,UAAU,CAAC,aAAa,EAA0B,sBAAA,EAAA,IAAI,CAAC,CAAC;AACvE,iBAAA;8BAMU,sBAAsB,EAAA,CAAA;sBAD5B;;;ACjBL;;AAEG;;;;"}
@@ -1,8 +1,6 @@
1
1
  export * from '@taiga-ui/legacy/classes';
2
2
  export * from '@taiga-ui/legacy/components';
3
3
  export * from '@taiga-ui/legacy/directives';
4
- export * from '@taiga-ui/legacy/pipes';
5
- export * from '@taiga-ui/legacy/services';
6
4
  export * from '@taiga-ui/legacy/tokens';
7
5
  export * from '@taiga-ui/legacy/utils';
8
6
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-legacy.mjs","sources":["../../../projects/legacy/taiga-ui-legacy.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;;AAEG"}
1
+ {"version":3,"file":"taiga-ui-legacy.mjs","sources":["../../../projects/legacy/taiga-ui-legacy.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;AAEG"}
package/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  export * from '@taiga-ui/legacy/classes';
2
2
  export * from '@taiga-ui/legacy/components';
3
3
  export * from '@taiga-ui/legacy/directives';
4
- export * from '@taiga-ui/legacy/pipes';
5
- export * from '@taiga-ui/legacy/services';
6
4
  export * from '@taiga-ui/legacy/tokens';
7
5
  export * from '@taiga-ui/legacy/utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/legacy",
3
- "version": "4.52.0-canary.e10b718",
3
+ "version": "4.52.0-canary.eb5ffe3",
4
4
  "description": "Legacy Taiga UI entities from the previous major release to simplify migration",
5
5
  "keywords": [
6
6
  "legacy",
@@ -31,14 +31,6 @@
31
31
  "types": "./directives/index.d.ts",
32
32
  "default": "./fesm2022/taiga-ui-legacy-directives.mjs"
33
33
  },
34
- "./pipes": {
35
- "types": "./pipes/index.d.ts",
36
- "default": "./fesm2022/taiga-ui-legacy-pipes.mjs"
37
- },
38
- "./services": {
39
- "types": "./services/index.d.ts",
40
- "default": "./fesm2022/taiga-ui-legacy-services.mjs"
41
- },
42
34
  "./tokens": {
43
35
  "types": "./tokens/index.d.ts",
44
36
  "default": "./fesm2022/taiga-ui-legacy-tokens.mjs"
@@ -51,25 +43,13 @@
51
43
  "types": "./components/arrow/index.d.ts",
52
44
  "default": "./fesm2022/taiga-ui-legacy-components-arrow.mjs"
53
45
  },
54
- "./components/color-selector": {
55
- "types": "./components/color-selector/index.d.ts",
56
- "default": "./fesm2022/taiga-ui-legacy-components-color-selector.mjs"
57
- },
58
- "./components/combo-box": {
59
- "types": "./components/combo-box/index.d.ts",
60
- "default": "./fesm2022/taiga-ui-legacy-components-combo-box.mjs"
61
- },
62
46
  "./components/input": {
63
47
  "types": "./components/input/index.d.ts",
64
48
  "default": "./fesm2022/taiga-ui-legacy-components-input.mjs"
65
49
  },
66
- "./components/input-color": {
67
- "types": "./components/input-color/index.d.ts",
68
- "default": "./fesm2022/taiga-ui-legacy-components-input-color.mjs"
69
- },
70
- "./components/input-date": {
71
- "types": "./components/input-date/index.d.ts",
72
- "default": "./fesm2022/taiga-ui-legacy-components-input-date.mjs"
50
+ "./components/dialog": {
51
+ "types": "./components/dialog/index.d.ts",
52
+ "default": "./fesm2022/taiga-ui-legacy-components-dialog.mjs"
73
53
  },
74
54
  "./components/input-date-range": {
75
55
  "types": "./components/input-date-range/index.d.ts",
@@ -87,14 +67,6 @@
87
67
  "types": "./components/input-number/index.d.ts",
88
68
  "default": "./fesm2022/taiga-ui-legacy-components-input-number.mjs"
89
69
  },
90
- "./components/input-phone": {
91
- "types": "./components/input-phone/index.d.ts",
92
- "default": "./fesm2022/taiga-ui-legacy-components-input-phone.mjs"
93
- },
94
- "./components/input-phone-international": {
95
- "types": "./components/input-phone-international/index.d.ts",
96
- "default": "./fesm2022/taiga-ui-legacy-components-input-phone-international.mjs"
97
- },
98
70
  "./components/input-range": {
99
71
  "types": "./components/input-range/index.d.ts",
100
72
  "default": "./fesm2022/taiga-ui-legacy-components-input-range.mjs"
@@ -107,14 +79,6 @@
107
79
  "types": "./components/input-tag/index.d.ts",
108
80
  "default": "./fesm2022/taiga-ui-legacy-components-input-tag.mjs"
109
81
  },
110
- "./components/input-time": {
111
- "types": "./components/input-time/index.d.ts",
112
- "default": "./fesm2022/taiga-ui-legacy-components-input-time.mjs"
113
- },
114
- "./components/input-year": {
115
- "types": "./components/input-year/index.d.ts",
116
- "default": "./fesm2022/taiga-ui-legacy-components-input-year.mjs"
117
- },
118
82
  "./components/multi-select": {
119
83
  "types": "./components/multi-select/index.d.ts",
120
84
  "default": "./fesm2022/taiga-ui-legacy-components-multi-select.mjs"
@@ -123,6 +87,10 @@
123
87
  "types": "./components/multi-select-option/index.d.ts",
124
88
  "default": "./fesm2022/taiga-ui-legacy-components-multi-select-option.mjs"
125
89
  },
90
+ "./components/pdf-viewer": {
91
+ "types": "./components/pdf-viewer/index.d.ts",
92
+ "default": "./fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs"
93
+ },
126
94
  "./components/primitive-textfield": {
127
95
  "types": "./components/primitive-textfield/index.d.ts",
128
96
  "default": "./fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs"
@@ -135,10 +103,6 @@
135
103
  "types": "./components/select-option/index.d.ts",
136
104
  "default": "./fesm2022/taiga-ui-legacy-components-select-option.mjs"
137
105
  },
138
- "./components/svg": {
139
- "types": "./components/svg/index.d.ts",
140
- "default": "./fesm2022/taiga-ui-legacy-components-svg.mjs"
141
- },
142
106
  "./components/tag": {
143
107
  "types": "./components/tag/index.d.ts",
144
108
  "default": "./fesm2022/taiga-ui-legacy-components-tag.mjs"
@@ -170,18 +134,6 @@
170
134
  "./directives/wrapper": {
171
135
  "types": "./directives/wrapper/index.d.ts",
172
136
  "default": "./fesm2022/taiga-ui-legacy-directives-wrapper.mjs"
173
- },
174
- "./pipes/format-phone": {
175
- "types": "./pipes/format-phone/index.d.ts",
176
- "default": "./fesm2022/taiga-ui-legacy-pipes-format-phone.mjs"
177
- },
178
- "./pipes/iso-to-country-code": {
179
- "types": "./pipes/iso-to-country-code/index.d.ts",
180
- "default": "./fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs"
181
- },
182
- "./pipes/to-country-code": {
183
- "types": "./pipes/to-country-code/index.d.ts",
184
- "default": "./fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs"
185
137
  }
186
138
  },
187
139
  "peerDependencies": {
@@ -2,7 +2,7 @@ import { type TuiStringHandler } from '@taiga-ui/cdk/types';
2
2
  /**
3
3
  * @deprecated: drop in v5.0
4
4
  */
5
- export declare const TUI_CACHE_BUSTING_PAYLOAD: "?v=4.52.0-canary.e10b718";
5
+ export declare const TUI_CACHE_BUSTING_PAYLOAD: "?v=4.52.0-canary.eb5ffe3";
6
6
  /**
7
7
  * @deprecated: drop in v5.0
8
8
  */
@@ -1,18 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { type MaskitoOptions } from '@maskito/core';
3
- import * as i0 from "@angular/core";
4
- export declare class TuiColorEditComponent {
5
- color: [number, number, number, number];
6
- readonly colorChange: EventEmitter<[number, number, number, number]>;
7
- readonly hexMask: MaskitoOptions;
8
- readonly modes: string[];
9
- mode: string | undefined;
10
- get isHex(): boolean;
11
- get hex(): string;
12
- get opacity(): number;
13
- onHexChange(hex: string): void;
14
- onRgbChange(...rgba: [number, number, number, number]): void;
15
- private updateColor;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiColorEditComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiColorEditComponent, "tui-color-edit", never, { "color": { "alias": "color"; "required": false; }; }, { "colorChange": "colorChange"; }, never, never, false, never>;
18
- }
@@ -1,21 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./color-edit.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@maskito/angular";
6
- import * as i5 from "@taiga-ui/legacy/components/primitive-textfield";
7
- import * as i6 from "@taiga-ui/legacy/directives/textfield-controller";
8
- import * as i7 from "@taiga-ui/legacy/components/input-number";
9
- import * as i8 from "@taiga-ui/legacy/components/select";
10
- import * as i9 from "@taiga-ui/core/directives/dropdown";
11
- import * as i10 from "@taiga-ui/core/components/data-list";
12
- import * as i11 from "@taiga-ui/core/components/button";
13
- /**
14
- * TODO(v5): delete it
15
- * @deprecated use new version of {@link https://taiga-ui.dev/components/input-color TuiInputColor} (from @taiga-ui/kit) instead
16
- */
17
- export declare class TuiColorEditModule {
18
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiColorEditModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<TuiColorEditModule, [typeof i1.TuiColorEditComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MaskitoDirective, typeof i5.TuiPrimitiveTextfieldModule, typeof i6.TuiTextfieldControllerModule, typeof i7.TuiInputNumberModule, typeof i8.TuiSelectModule, typeof i9.TuiDropdownOptionsDirective, typeof i9.TuiDropdownDriverDirective, typeof i9.TuiDropdownDirective, typeof i9.TuiDropdownComponent, typeof i9.TuiDropdownOpen, typeof i9.TuiDropdownOpenLegacy, typeof i9.TuiDropdownPortal, typeof i9.TuiDropdownManual, typeof i9.TuiDropdownHover, typeof i9.TuiDropdownContext, typeof i9.TuiDropdownPosition, typeof i9.TuiDropdownPositionSided, typeof i9.TuiDropdownSelection, typeof i10.TuiDataListComponent, typeof i10.TuiDataListDirective, typeof i10.TuiOption, typeof i10.TuiOptionNew, typeof i10.TuiOptionWithValue, typeof i10.TuiOptGroup, typeof i11.TuiButton], [typeof i1.TuiColorEditComponent, typeof i9.TuiDropdownOptionsDirective, typeof i9.TuiDropdownDriverDirective, typeof i9.TuiDropdownDirective, typeof i9.TuiDropdownComponent, typeof i9.TuiDropdownOpen, typeof i9.TuiDropdownOpenLegacy, typeof i9.TuiDropdownPortal, typeof i9.TuiDropdownManual, typeof i9.TuiDropdownHover, typeof i9.TuiDropdownContext, typeof i9.TuiDropdownPosition, typeof i9.TuiDropdownPositionSided, typeof i9.TuiDropdownSelection, typeof i10.TuiDataListComponent, typeof i10.TuiDataListDirective, typeof i10.TuiOption, typeof i10.TuiOptionNew, typeof i10.TuiOptionWithValue, typeof i10.TuiOptGroup]>;
20
- static ɵinj: i0.ɵɵInjectorDeclaration<TuiColorEditModule>;
21
- }
@@ -1,22 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { type SafeStyle } from '@angular/platform-browser';
3
- import { type TuiPoint } from '@taiga-ui/core/types';
4
- import * as i0 from "@angular/core";
5
- export declare class TuiColorPickerComponent {
6
- private readonly sanitizer;
7
- protected point: TuiPoint;
8
- protected hue: number;
9
- protected opacity: number;
10
- readonly colorChange: EventEmitter<[h: number, s: number, v: number, opacity: number]>;
11
- set color(color: [h: number, s: number, v: number, opacity: number]);
12
- get currentColor(): [h: number, s: number, v: number];
13
- get base(): string;
14
- get gradient(): SafeStyle;
15
- onPointChange(point: TuiPoint): void;
16
- onHueChange(hue: number): void;
17
- onOpacityChange(opacity: number): void;
18
- private getCurrentColor;
19
- private updateColor;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiColorPickerComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiColorPickerComponent, "tui-color-picker", never, { "color": { "alias": "color"; "required": false; }; }, { "colorChange": "colorChange"; }, never, never, false, never>;
22
- }
@@ -1,14 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./color-picker.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../flat-picker/flat-picker.module";
5
- import * as i4 from "../linear-picker/linear-picker.module";
6
- /**
7
- * TODO(v5): delete it
8
- * @deprecated use new version of {@link https://taiga-ui.dev/components/input-color TuiInputColor} (from @taiga-ui/kit) instead
9
- */
10
- export declare class TuiColorPickerModule {
11
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiColorPickerModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<TuiColorPickerModule, [typeof i1.TuiColorPickerComponent], [typeof i2.CommonModule, typeof i3.TuiFlatPickerModule, typeof i4.TuiLinearPickerModule], [typeof i1.TuiColorPickerComponent]>;
13
- static ɵinj: i0.ɵɵInjectorDeclaration<TuiColorPickerModule>;
14
- }
@@ -1,47 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { type SafeStyle } from '@angular/platform-browser';
3
- import { type TuiGradientDirection } from '@taiga-ui/cdk/utils/color';
4
- import * as i0 from "@angular/core";
5
- export declare class TuiColorSelectorComponent {
6
- private readonly selectorOptions;
7
- private stops;
8
- private currentStop;
9
- private direction;
10
- private readonly sanitizer;
11
- protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
12
- protected open: boolean;
13
- colors: ReadonlyMap<string, string>;
14
- readonly colorChange: EventEmitter<string>;
15
- color: [number, number, number, number];
16
- readonly modes: [string, string];
17
- currentMode: string;
18
- readonly buttons: readonly TuiGradientDirection[];
19
- set colorSetter(color: string);
20
- get selectorMode(): boolean;
21
- get palette(): Map<string, string>;
22
- get stopsKeys(): number[];
23
- get currentColor(): [number, number, number, number];
24
- get gradient(): SafeStyle;
25
- get isGradient(): boolean;
26
- getIcon(direction: TuiGradientDirection): string;
27
- isModeActive(mode: string): boolean;
28
- isDirectionActive(direction: TuiGradientDirection): boolean;
29
- onPalettePick(color: string): void;
30
- onDirectionChange(direction: TuiGradientDirection): void;
31
- onModeSelect(mode: string): void;
32
- onIndexChange(index: number): void;
33
- onColorChange(color: [number, number, number, number]): void;
34
- onStopsChange(stopsKeys: readonly number[]): void;
35
- private getStopsKeys;
36
- private filterPalette;
37
- private updateColor;
38
- private getGradient;
39
- private getStop;
40
- private addStop;
41
- private removeStop;
42
- private replaceStop;
43
- private parseGradient;
44
- private parseColor;
45
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiColorSelectorComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiColorSelectorComponent, "tui-color-selector", never, { "colors": { "alias": "colors"; "required": false; }; "colorSetter": { "alias": "color"; "required": false; }; }, { "colorChange": "colorChange"; }, never, never, false, never>;
47
- }
@@ -1,23 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./color-selector.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@taiga-ui/core/components/button";
5
- import * as i4 from "./color-picker/color-picker.module";
6
- import * as i5 from "./linear-multi-picker/linear-multi-picker.module";
7
- import * as i6 from "@taiga-ui/cdk/directives/active-zone";
8
- import * as i7 from "./color-edit/color-edit.module";
9
- import * as i8 from "@taiga-ui/core/directives/group";
10
- import * as i9 from "./palette/palette.module";
11
- import * as i10 from "@taiga-ui/kit/directives/chevron";
12
- import * as i11 from "@taiga-ui/core/components/icon";
13
- import * as i12 from "@taiga-ui/core/directives/hint";
14
- import * as i13 from "@taiga-ui/core/components/data-list";
15
- /**
16
- * TODO(v5): delete it
17
- * @deprecated use new version of {@link https://taiga-ui.dev/components/input-color TuiInputColor} (from @taiga-ui/kit) instead
18
- */
19
- export declare class TuiColorSelectorModule {
20
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiColorSelectorModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<TuiColorSelectorModule, [typeof i1.TuiColorSelectorComponent], [typeof i2.CommonModule, typeof i3.TuiButton, typeof i4.TuiColorPickerModule, typeof i5.TuiLinearMultiPickerModule, typeof i6.TuiActiveZone, typeof i7.TuiColorEditModule, typeof i8.TuiGroup, typeof i9.TuiPaletteModule, typeof i10.TuiChevron, typeof i11.TuiIcon, typeof i12.TuiHintComponent, typeof i12.TuiHintDirective, typeof i12.TuiHintOptionsDirective, typeof i12.TuiHintUnstyled, typeof i12.TuiHintDriver, typeof i12.TuiHintPosition, typeof i12.TuiHintHover, typeof i12.TuiHintOverflow, typeof i12.TuiHintDescribe, typeof i12.TuiHintHost, typeof i12.TuiHintManual, typeof i12.TuiHintPointer, typeof i13.TuiDataListComponent, typeof i13.TuiDataListDirective, typeof i13.TuiOption, typeof i13.TuiOptionNew, typeof i13.TuiOptionWithValue, typeof i13.TuiOptGroup], [typeof i1.TuiColorSelectorComponent, typeof i12.TuiHintComponent, typeof i12.TuiHintDirective, typeof i12.TuiHintOptionsDirective, typeof i12.TuiHintUnstyled, typeof i12.TuiHintDriver, typeof i12.TuiHintPosition, typeof i12.TuiHintHover, typeof i12.TuiHintOverflow, typeof i12.TuiHintDescribe, typeof i12.TuiHintHost, typeof i12.TuiHintManual, typeof i12.TuiHintPointer, typeof i13.TuiDataListComponent, typeof i13.TuiDataListDirective, typeof i13.TuiOption, typeof i13.TuiOptionNew, typeof i13.TuiOptionWithValue, typeof i13.TuiOptGroup]>;
22
- static ɵinj: i0.ɵɵInjectorDeclaration<TuiColorSelectorModule>;
23
- }
@@ -1,25 +0,0 @@
1
- import { InjectionToken, type Provider } from '@angular/core';
2
- import { type TuiGradientDirection } from '@taiga-ui/cdk/utils/color';
3
- export declare const TUI_COLOR_SELECTOR_MODE_NAMES: InjectionToken<[string, string]>;
4
- export declare const TUI_DEFAULT_INPUT_COLORS: Map<string, string>;
5
- export declare const TuiColorSelectorMode: {
6
- readonly SolidColor: 0;
7
- readonly Gradient: 1;
8
- };
9
- export interface TuiColorSelectorOptions {
10
- readonly mode: (typeof TuiColorSelectorMode)[keyof typeof TuiColorSelectorMode];
11
- readonly selectorMode: boolean;
12
- readonly color: [number, number, number, number];
13
- readonly colors: ReadonlyMap<string, string>;
14
- readonly gradient: {
15
- readonly icons: Record<TuiGradientDirection, string>;
16
- readonly steps: ReadonlyArray<[number, [number, number, number, number]]>;
17
- readonly stop: number;
18
- readonly direction: TuiGradientDirection;
19
- readonly emptyStop: [number, number, number, number];
20
- readonly buttons: readonly TuiGradientDirection[];
21
- };
22
- }
23
- export declare const TUI_COLOR_SELECTOR_DEFAULT_OPTIONS: TuiColorSelectorOptions;
24
- export declare const TUI_COLOR_SELECTOR_OPTIONS: InjectionToken<TuiColorSelectorOptions>;
25
- export declare function tuiColorSelectorOptionsProvider(options: Partial<TuiColorSelectorOptions>): Provider;
@@ -1,12 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { type TuiPoint } from '@taiga-ui/core/types';
3
- import * as i0 from "@angular/core";
4
- export declare class TuiFlatPickerComponent {
5
- protected readonly $: import("rxjs").Subscription;
6
- value: TuiPoint;
7
- readonly valueChange: EventEmitter<[number, number]>;
8
- get left(): number;
9
- get top(): number;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiFlatPickerComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiFlatPickerComponent, "tui-flat-picker", never, { "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
12
- }
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./flat-picker.component";
3
- import * as i2 from "@angular/common";
4
- /**
5
- * TODO(v5): delete it
6
- * @deprecated use new version of {@link https://taiga-ui.dev/components/input-color TuiInputColor} (from @taiga-ui/kit) instead
7
- */
8
- export declare class TuiFlatPickerModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiFlatPickerModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<TuiFlatPickerModule, [typeof i1.TuiFlatPickerComponent], [typeof i2.CommonModule], [typeof i1.TuiFlatPickerComponent]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<TuiFlatPickerModule>;
12
- }
@@ -1,16 +0,0 @@
1
- export * from './color-edit/color-edit.component';
2
- export * from './color-edit/color-edit.module';
3
- export * from './color-picker/color-picker.component';
4
- export * from './color-picker/color-picker.module';
5
- export * from './color-selector.component';
6
- export * from './color-selector.module';
7
- export * from './color-selector.options';
8
- export * from './flat-picker/flat-picker.component';
9
- export * from './flat-picker/flat-picker.module';
10
- export * from './linear-multi-picker/linear-multi-picker.component';
11
- export * from './linear-multi-picker/linear-multi-picker.module';
12
- export * from './linear-picker/linear-picker.component';
13
- export * from './linear-picker/linear-picker.module';
14
- export * from './palette/palette.component';
15
- export * from './palette/palette.module';
16
- export * from './services/picker.service';
@@ -1,17 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TuiLinearMultiPickerComponent {
4
- protected readonly $: import("rxjs").Subscription;
5
- value: number[];
6
- readonly valueChange: EventEmitter<number[]>;
7
- readonly indexChange: EventEmitter<number>;
8
- index: number;
9
- onMouseUp(): void;
10
- onMouseDown(index: number): void;
11
- onClick(index: number): void;
12
- private onPicker;
13
- private updateIndex;
14
- private updateValue;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiLinearMultiPickerComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiLinearMultiPickerComponent, "tui-linear-multi-picker", never, { "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "indexChange": "indexChange"; }, never, never, false, never>;
17
- }