@taiga-ui/kit 3.39.1 → 3.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/bundles/taiga-ui-kit-components-accordion.umd.js +11 -7
  2. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  3. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +1 -1
  4. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +7 -3
  6. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-files.umd.js +12 -8
  8. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-input-number.umd.js +42 -22
  10. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-input-range.umd.js +5 -23
  12. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-input-slider.umd.js +5 -1
  14. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-input-tag.umd.js +7 -3
  16. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-pagination.umd.js +22 -25
  18. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +7 -3
  20. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-progress.umd.js +6 -5
  22. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-prompt.umd.js +1 -1
  24. package/bundles/taiga-ui-kit-components-prompt.umd.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-push.umd.js +7 -3
  26. package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-select-option.umd.js +7 -3
  28. package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-stepper.umd.js +7 -3
  30. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-tabs.umd.js +11 -7
  32. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-tag.umd.js +16 -27
  34. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  35. package/bundles/{taiga-ui-kit-components-text-area.umd.js → taiga-ui-kit-components-textarea.umd.js} +81 -64
  36. package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -0
  37. package/bundles/taiga-ui-kit-components-tiles.umd.js +5 -0
  38. package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-tree.umd.js +7 -3
  40. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components.umd.js +6 -6
  42. package/components/accordion/accordion-item/accordion-item.component.d.ts +3 -1
  43. package/components/calendar-range/calendar-range.component.d.ts +4 -3
  44. package/components/files/file/file.component.d.ts +3 -2
  45. package/components/index.d.ts +1 -1
  46. package/components/input-number/input-number.component.d.ts +7 -4
  47. package/components/input-range/input-range.component.d.ts +2 -4
  48. package/components/input-tag/input-tag.component.d.ts +5 -4
  49. package/components/pagination/pagination.component.d.ts +7 -6
  50. package/components/pagination/pagination.module.d.ts +3 -3
  51. package/components/pdf-viewer/pdf-viewer.component.d.ts +3 -1
  52. package/components/progress/progress-circle/progress-circle.component.d.ts +1 -1
  53. package/components/push/push.component.d.ts +3 -1
  54. package/components/select-option/select-option.component.d.ts +4 -3
  55. package/components/stepper/step/step.component.d.ts +3 -1
  56. package/components/tabs/tabs-with-more/tabs-with-more.component.d.ts +3 -1
  57. package/components/tag/tag.component.d.ts +3 -5
  58. package/components/tag/tag.module.d.ts +3 -4
  59. package/components/textarea/deprecated.d.ts +15 -0
  60. package/components/textarea/index.d.ts +4 -0
  61. package/components/textarea/package.json +10 -0
  62. package/components/{text-area/taiga-ui-kit-components-text-area.d.ts → textarea/taiga-ui-kit-components-textarea.d.ts} +1 -1
  63. package/components/{text-area/text-area.component.d.ts → textarea/textarea.component.d.ts} +3 -3
  64. package/components/textarea/textarea.directive.d.ts +8 -0
  65. package/components/{text-area/text-area.module.d.ts → textarea/textarea.module.d.ts} +6 -6
  66. package/components/tiles/tile.component.d.ts +3 -2
  67. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +3 -1
  68. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +9 -4
  69. package/esm2015/components/calendar-month/calendar-month.component.js +1 -1
  70. package/esm2015/components/calendar-range/calendar-range.component.js +9 -5
  71. package/esm2015/components/files/file/file.component.js +9 -4
  72. package/esm2015/components/index.js +2 -2
  73. package/esm2015/components/input-number/input-number.component.js +29 -10
  74. package/esm2015/components/input-range/input-range.component.js +6 -16
  75. package/esm2015/components/input-slider/input-slider.component.js +6 -2
  76. package/esm2015/components/input-tag/input-tag.component.js +9 -5
  77. package/esm2015/components/pagination/pagination.component.js +18 -12
  78. package/esm2015/components/pagination/pagination.module.js +5 -8
  79. package/esm2015/components/pdf-viewer/pdf-viewer.component.js +9 -5
  80. package/esm2015/components/progress/progress-circle/progress-circle.component.js +7 -6
  81. package/esm2015/components/prompt/prompt.component.js +1 -1
  82. package/esm2015/components/push/push.component.js +9 -5
  83. package/esm2015/components/select-option/select-option.component.js +9 -5
  84. package/esm2015/components/stepper/step/step.component.js +9 -5
  85. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +9 -4
  86. package/esm2015/components/tag/tag.component.js +12 -16
  87. package/esm2015/components/tag/tag.module.js +1 -5
  88. package/esm2015/components/textarea/deprecated.js +16 -0
  89. package/esm2015/components/textarea/index.js +5 -0
  90. package/esm2015/components/textarea/taiga-ui-kit-components-textarea.js +5 -0
  91. package/esm2015/components/textarea/textarea.component.js +217 -0
  92. package/esm2015/components/textarea/textarea.directive.js +19 -0
  93. package/esm2015/components/textarea/textarea.module.js +51 -0
  94. package/esm2015/components/tiles/tile.component.js +6 -1
  95. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +9 -4
  96. package/fesm2015/taiga-ui-kit-components-accordion.js +8 -3
  97. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  98. package/fesm2015/taiga-ui-kit-components-calendar-month.js +1 -1
  99. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  100. package/fesm2015/taiga-ui-kit-components-calendar-range.js +8 -4
  101. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  102. package/fesm2015/taiga-ui-kit-components-files.js +9 -5
  103. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
  104. package/fesm2015/taiga-ui-kit-components-input-number.js +29 -10
  105. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  106. package/fesm2015/taiga-ui-kit-components-input-range.js +5 -15
  107. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  108. package/fesm2015/taiga-ui-kit-components-input-slider.js +5 -1
  109. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  110. package/fesm2015/taiga-ui-kit-components-input-tag.js +8 -4
  111. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  112. package/fesm2015/taiga-ui-kit-components-pagination.js +22 -19
  113. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  114. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +8 -4
  115. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  116. package/fesm2015/taiga-ui-kit-components-progress.js +6 -5
  117. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  118. package/fesm2015/taiga-ui-kit-components-prompt.js +1 -1
  119. package/fesm2015/taiga-ui-kit-components-prompt.js.map +1 -1
  120. package/fesm2015/taiga-ui-kit-components-push.js +8 -4
  121. package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
  122. package/fesm2015/taiga-ui-kit-components-select-option.js +8 -4
  123. package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
  124. package/fesm2015/taiga-ui-kit-components-stepper.js +8 -4
  125. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  126. package/fesm2015/taiga-ui-kit-components-tabs.js +8 -3
  127. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  128. package/fesm2015/taiga-ui-kit-components-tag.js +12 -19
  129. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  130. package/fesm2015/{taiga-ui-kit-components-text-area.js → taiga-ui-kit-components-textarea.js} +41 -27
  131. package/fesm2015/taiga-ui-kit-components-textarea.js.map +1 -0
  132. package/fesm2015/taiga-ui-kit-components-tiles.js +5 -0
  133. package/fesm2015/taiga-ui-kit-components-tiles.js.map +1 -1
  134. package/fesm2015/taiga-ui-kit-components-tree.js +8 -4
  135. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  136. package/fesm2015/taiga-ui-kit-components.js +1 -1
  137. package/package.json +5 -5
  138. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +0 -1
  139. package/components/text-area/index.d.ts +0 -3
  140. package/components/text-area/package.json +0 -10
  141. package/components/text-area/text-area.directive.d.ts +0 -8
  142. package/esm2015/components/text-area/index.js +0 -4
  143. package/esm2015/components/text-area/taiga-ui-kit-components-text-area.js +0 -5
  144. package/esm2015/components/text-area/text-area.component.js +0 -217
  145. package/esm2015/components/text-area/text-area.directive.js +0 -18
  146. package/esm2015/components/text-area/text-area.module.js +0 -51
  147. package/fesm2015/taiga-ui-kit-components-text-area.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-tag.umd.js","sources":["../../../projects/kit/components/tag/tag.options.ts","../../../projects/kit/components/tag/tag.component.ts","../../../projects/kit/components/tag/tag.template.html","../../../projects/kit/components/tag/tag.module.ts","../../../projects/kit/components/tag/taiga-ui-kit-components-tag.ts"],"sourcesContent":["import {Provider} from '@angular/core';\nimport {tuiCreateOptions, tuiProvideOptions} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {TuiStatus} from '@taiga-ui/kit/types';\n\nexport interface TuiTagOptions {\n readonly size: TuiSizeL | TuiSizeS;\n readonly status: TuiStatus;\n readonly autoColor: boolean;\n}\n\n/** Default values for the tag options. */\nexport const TUI_TAG_DEFAULT_OPTIONS: TuiTagOptions = {\n size: `m`,\n status: `default`,\n autoColor: false,\n};\n\n/**\n * Default parameters for Tag component\n */\nexport const TUI_TAG_OPTIONS = tuiCreateOptions(TUI_TAG_DEFAULT_OPTIONS);\n\nexport function tuiTagOptionsProvider(options: Partial<TuiTagOptions>): Provider {\n return tuiProvideOptions(TUI_TAG_OPTIONS, options, TUI_TAG_DEFAULT_OPTIONS);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n ViewChild,\n} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {\n MODE_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_MODE,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiBrightness,\n tuiSizeBigger,\n TuiSizeL,\n TuiSizeS,\n TuiSizeXS,\n TuiTextfieldController,\n} from '@taiga-ui/core';\nimport {TuiStatus} from '@taiga-ui/kit/types';\nimport {tuiStringHashToHsl} from '@taiga-ui/kit/utils/format';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TUI_TAG_OPTIONS, TuiTagOptions} from './tag.options';\n\n@Component({\n selector: 'tui-tag, a[tuiTag], button[tuiTag]',\n templateUrl: './tag.template.html',\n styleUrls: ['./tag.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TEXTFIELD_CONTROLLER_PROVIDER, MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': 'mode$',\n },\n})\nexport class TuiTagComponent {\n // TODO: Possibly implement standard focus mechanisms and outline\n @Input()\n value = '';\n\n @Input()\n editable = false;\n\n @Input()\n separator: RegExp | string = ',';\n\n @Input()\n maxLength: number | null = null;\n\n @Input()\n @HostBinding('attr.data-size')\n size: TuiSizeL | TuiSizeS = this.options.size;\n\n @Input()\n showLoader = false;\n\n @Input()\n @HostBinding('attr.data-status')\n status: TuiStatus = this.options.status;\n\n @Input()\n @HostBinding('class._hoverable')\n hoverable = false;\n\n @Input()\n removable = false;\n\n @Input()\n @HostBinding('class._disabled')\n disabled = false;\n\n @Input()\n @HostBinding('class._autocolor')\n autoColor: boolean = this.options.autoColor;\n\n @Input()\n leftContent: PolymorpheusContent;\n\n @Output()\n readonly edited = new EventEmitter<string>();\n\n @HostBinding('class._editing')\n editing = false;\n\n editedText: string | null = null;\n\n @ViewChild('input', {read: ElementRef})\n set input(input: ElementRef<HTMLInputElement>) {\n if (input) {\n input.nativeElement.focus();\n }\n }\n\n constructor(\n @Inject(ElementRef) private readonly el: ElementRef<HTMLElement>,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TAG_OPTIONS) private readonly options: TuiTagOptions,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n ) {}\n\n get backgroundColor(): string | null {\n return this.autoColor ? tuiStringHashToHsl(this.value) : null;\n }\n\n get canRemove(): boolean {\n return this.removable && !this.disabled && !this.showLoader;\n }\n\n get displayText(): string {\n return this.editedText === null ? this.value : this.editedText;\n }\n\n get loaderSize(): TuiSizeXS {\n return tuiSizeBigger(this.size) ? 's' : 'xs';\n }\n\n get iconCleaner(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeL | TuiSizeS>> {\n return this.controller.options.iconCleaner;\n }\n\n @HostListener('keydown.enter', ['$event'])\n edit(event: Event): void {\n if (!this.canEdit) {\n return;\n }\n\n event.preventDefault();\n this.editing = true;\n this.editedText = this.value;\n }\n\n @HostListener('keydown.delete', ['$event'])\n @HostListener('keydown.backspace', ['$event'])\n remove(event: Event): void {\n if (!this.canRemove) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n this.edited.emit('');\n }\n\n onInput(value: string): void {\n const newTags = value.split(this.separator);\n\n if (newTags.length > 1) {\n this.save(String(newTags));\n\n return;\n }\n\n this.editedText = value;\n }\n\n onKeyDown(event: KeyboardEvent): void {\n event.stopPropagation();\n\n switch (event.key.toLowerCase()) {\n case 'enter':\n event.preventDefault();\n this.save(this.editedText || '');\n break;\n case 'escape':\n case 'esc':\n event.preventDefault();\n this.stopEditing();\n this.el.nativeElement.focus();\n break;\n default:\n break;\n }\n }\n\n onBlur(): void {\n if (this.editedText !== null) {\n this.save(this.editedText);\n }\n }\n\n private get canEdit(): boolean {\n return this.editable && !this.disabled && !this.showLoader;\n }\n\n private stopEditing(): void {\n this.editing = false;\n this.editedText = null;\n }\n\n private save(value: string): void {\n this.stopEditing();\n this.edited.emit(value.trim());\n }\n}\n","<div\n class=\"t-tag\"\n [style.backgroundColor]=\"backgroundColor\"\n (dblclick)=\"edit($event)\"\n>\n <div\n *ngIf=\"leftContent\"\n class=\"t-content\"\n >\n <ng-container *polymorpheusOutlet=\"leftContent as text\">\n {{ text }}\n </ng-container>\n </div>\n <span\n automation-id=\"tui-tag__text\"\n class=\"t-text\"\n [textContent]=\"displayText\"\n ></span>\n <tui-loader\n *ngIf=\"showLoader\"\n class=\"t-content\"\n [inheritColor]=\"true\"\n [size]=\"loaderSize\"\n ></tui-loader>\n <ng-container *ngIf=\"canRemove\">\n <tui-svg\n *polymorpheusOutlet=\"iconCleaner as src; context: {$implicit: size}\"\n tuiPreventDefault=\"mousedown\"\n automation-id=\"tui-tag__remove\"\n class=\"t-icon\"\n [src]=\"src\"\n (click)=\"remove($event)\"\n ></tui-svg>\n </ng-container>\n</div>\n<input\n *ngIf=\"editing\"\n #input\n automation-id=\"tui-tag__edit\"\n type=\"text\"\n class=\"t-edit\"\n [attr.maxLength]=\"maxLength\"\n [ngModel]=\"editedText\"\n (ngModelChange)=\"onInput($event)\"\n (blur)=\"onBlur()\"\n (keydown)=\"onKeyDown($event)\"\n/>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiPreventDefaultModule} from '@taiga-ui/cdk';\nimport {TuiLoaderModule, TuiSvgModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTagComponent} from './tag.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiPreventDefaultModule,\n TuiSvgModule,\n TuiLoaderModule,\n PolymorpheusModule,\n ],\n declarations: [TuiTagComponent],\n exports: [TuiTagComponent],\n})\nexport class TuiTagModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["tuiCreateOptions","tuiProvideOptions","EventEmitter","tuiStringHashToHsl","tuiSizeBigger","i0","ElementRef","TUI_MODE","TUI_TEXTFIELD_WATCHED_CONTROLLER","TEXTFIELD_CONTROLLER_PROVIDER","MODE_PROVIDER","i1","i2","i3","i4","i5","Component","ChangeDetectionStrategy","Inject","Input","HostBinding","Output","ViewChild","HostListener","CommonModule","FormsModule","TuiPreventDefaultModule","TuiSvgModule","TuiLoaderModule","PolymorpheusModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWA;AACa,QAAA,uBAAuB,GAAkB;IAClD,IAAA,IAAI,EAAE,GAAG;IACT,IAAA,MAAM,EAAE,SAAS;IACjB,IAAA,SAAS,EAAE,KAAK;MAClB;IAEF;;IAEG;QACU,eAAe,GAAGA,mBAAgB,CAAC,uBAAuB,EAAE;IAEnE,SAAU,qBAAqB,CAAC,OAA+B,EAAA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BAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;qBAC7B,CAAA;;;ICpBD;;IAEG;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-tag.umd.js","sources":["../../../projects/kit/components/tag/tag.options.ts","../../../projects/kit/components/tag/tag.component.ts","../../../projects/kit/components/tag/tag.template.html","../../../projects/kit/components/tag/tag.module.ts","../../../projects/kit/components/tag/taiga-ui-kit-components-tag.ts"],"sourcesContent":["import {Provider} from '@angular/core';\nimport {tuiCreateOptions, tuiProvideOptions} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {TuiStatus} from '@taiga-ui/kit/types';\n\nexport interface TuiTagOptions {\n readonly size: TuiSizeL | TuiSizeS;\n readonly status: TuiStatus;\n readonly autoColor: boolean;\n}\n\n/** Default values for the tag options. */\nexport const TUI_TAG_DEFAULT_OPTIONS: TuiTagOptions = {\n size: `m`,\n status: `default`,\n autoColor: false,\n};\n\n/**\n * Default parameters for Tag component\n */\nexport const TUI_TAG_OPTIONS = tuiCreateOptions(TUI_TAG_DEFAULT_OPTIONS);\n\nexport function tuiTagOptionsProvider(options: Partial<TuiTagOptions>): Provider {\n return tuiProvideOptions(TUI_TAG_OPTIONS, options, TUI_TAG_DEFAULT_OPTIONS);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n ViewChild,\n} from '@angular/core';\nimport {\n MODE_PROVIDER,\n TUI_COMMON_ICONS,\n TUI_MODE,\n TuiBrightness,\n TuiCommonIcons,\n tuiSizeBigger,\n TuiSizeL,\n TuiSizeS,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {TuiStatus} from '@taiga-ui/kit/types';\nimport {tuiStringHashToHsl} from '@taiga-ui/kit/utils/format';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TUI_TAG_OPTIONS, TuiTagOptions} from './tag.options';\n\n@Component({\n selector: 'tui-tag, a[tuiTag], button[tuiTag]',\n templateUrl: './tag.template.html',\n styleUrls: ['./tag.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': 'mode$',\n },\n})\nexport class TuiTagComponent {\n // TODO: Possibly implement standard focus mechanisms and outline\n @Input()\n value = '';\n\n @Input()\n editable = false;\n\n @Input()\n separator: RegExp | string = ',';\n\n @Input()\n maxLength: number | null = null;\n\n @Input()\n @HostBinding('attr.data-size')\n size: TuiSizeL | TuiSizeS = this.options.size;\n\n @Input()\n showLoader = false;\n\n @Input()\n @HostBinding('attr.data-status')\n status: TuiStatus = this.options.status;\n\n @Input()\n @HostBinding('class._hoverable')\n hoverable = false;\n\n @Input()\n removable = false;\n\n @Input()\n @HostBinding('class._disabled')\n disabled = false;\n\n @Input()\n @HostBinding('class._autocolor')\n autoColor: boolean = this.options.autoColor;\n\n @Input()\n leftContent: PolymorpheusContent;\n\n @Output()\n readonly edited = new EventEmitter<string>();\n\n @HostBinding('class._editing')\n editing = false;\n\n editedText: string | null = null;\n\n @ViewChild('input', {read: ElementRef})\n set input(input: ElementRef<HTMLInputElement>) {\n if (input) {\n input.nativeElement.focus();\n }\n }\n\n constructor(\n @Inject(ElementRef) private readonly el: ElementRef<HTMLElement>,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TAG_OPTIONS) private readonly options: TuiTagOptions,\n @Inject(TUI_COMMON_ICONS) readonly icons: TuiCommonIcons,\n ) {}\n\n get backgroundColor(): string | null {\n return this.autoColor ? tuiStringHashToHsl(this.value) : null;\n }\n\n get canRemove(): boolean {\n return this.removable && !this.disabled && !this.showLoader;\n }\n\n get displayText(): string {\n return this.editedText === null ? this.value : this.editedText;\n }\n\n get loaderSize(): TuiSizeXS {\n return tuiSizeBigger(this.size) ? 's' : 'xs';\n }\n\n @HostListener('keydown.enter', ['$event'])\n edit(event: Event): void {\n if (!this.canEdit) {\n return;\n }\n\n event.preventDefault();\n this.editing = true;\n this.editedText = this.value;\n }\n\n @HostListener('keydown.delete', ['$event'])\n @HostListener('keydown.backspace', ['$event'])\n remove(event: Event): void {\n if (!this.canRemove) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n this.edited.emit('');\n }\n\n onInput(value: string): void {\n const newTags = value.split(this.separator);\n\n if (newTags.length > 1) {\n this.save(String(newTags));\n\n return;\n }\n\n this.editedText = value;\n }\n\n onKeyDown(event: KeyboardEvent): void {\n event.stopPropagation();\n\n switch (event.key.toLowerCase()) {\n case 'enter':\n event.preventDefault();\n this.save(this.editedText || '');\n break;\n case 'escape':\n case 'esc':\n event.preventDefault();\n this.stopEditing();\n this.el.nativeElement.focus();\n break;\n default:\n break;\n }\n }\n\n onBlur(): void {\n if (this.editedText !== null) {\n this.save(this.editedText);\n }\n }\n\n private get canEdit(): boolean {\n return this.editable && !this.disabled && !this.showLoader;\n }\n\n private stopEditing(): void {\n this.editing = false;\n this.editedText = null;\n }\n\n private save(value: string): void {\n this.stopEditing();\n this.edited.emit(value.trim());\n }\n}\n","<div\n class=\"t-tag\"\n [style.backgroundColor]=\"backgroundColor\"\n (dblclick)=\"edit($event)\"\n>\n <div\n *ngIf=\"leftContent\"\n class=\"t-content\"\n >\n <ng-container *polymorpheusOutlet=\"leftContent as text\">\n {{ text }}\n </ng-container>\n </div>\n <span\n automation-id=\"tui-tag__text\"\n class=\"t-text\"\n [textContent]=\"displayText\"\n ></span>\n <tui-loader\n *ngIf=\"showLoader\"\n class=\"t-content\"\n [inheritColor]=\"true\"\n [size]=\"loaderSize\"\n ></tui-loader>\n <tui-svg\n *ngIf=\"canRemove\"\n automation-id=\"tui-tag__remove\"\n class=\"t-icon\"\n [src]=\"icons.close\"\n (click)=\"remove($event)\"\n (mousedown.prevent.silent)=\"(0)\"\n ></tui-svg>\n</div>\n<input\n *ngIf=\"editing\"\n #input\n automation-id=\"tui-tag__edit\"\n type=\"text\"\n class=\"t-edit\"\n [attr.maxLength]=\"maxLength\"\n [ngModel]=\"editedText\"\n (ngModelChange)=\"onInput($event)\"\n (blur)=\"onBlur()\"\n (keydown)=\"onKeyDown($event)\"\n/>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiLoaderModule, TuiSvgModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTagComponent} from './tag.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiSvgModule,\n TuiLoaderModule,\n PolymorpheusModule,\n ],\n declarations: [TuiTagComponent],\n exports: [TuiTagComponent],\n})\nexport class TuiTagModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["tuiCreateOptions","tuiProvideOptions","EventEmitter","tuiStringHashToHsl","tuiSizeBigger","i0","ElementRef","TUI_MODE","TUI_COMMON_ICONS","MODE_PROVIDER","i1","i2","i3","i4","Component","ChangeDetectionStrategy","Inject","Input","HostBinding","Output","ViewChild","HostListener","CommonModule","FormsModule","TuiSvgModule","TuiLoaderModule","PolymorpheusModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWA;AACa,QAAA,uBAAuB,GAAkB;IAClD,IAAA,IAAI,EAAE,GAAG;IACT,IAAA,MAAM,EAAE,SAAS;IACjB,IAAA,SAAS,EAAE,KAAK;MAClB;IAEF;;IAEG;QACU,eAAe,GAAGA,oBAAgB,CAAC,uBAAuB,EAAE;IAEnE,SAAU,qBAAqB,CAAC,OAA+B,EAAA;QACjE,OAAOC,qBAAiB,CAAC,eAAe,EAAE,OAAO,EAAE,uBAAuB,CAAC,CAAC;IAChF;;ACeA,QAAA,eAAA,kBAAA,YAAA;IA0DI,IAAA,SAAA,eAAA,CACyC,EAA2B,EACrC,KAAuC,EACxB,OAAsB,EAC7B,KAAqB,EAAA;IAHn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C;qBAC7B,CAAA;;;IClBD;;IAEG;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@angular/common'), require('@tinkoff/ng-polymorpheus'), require('rxjs')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/text-area', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', '@angular/common', '@tinkoff/ng-polymorpheus', 'rxjs'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components["text-area"] = {}), global.ng.core, global.ng.forms, global.i4, global.i1, global.ng.common, global.i5, global.rxjs));
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/textarea', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', '@angular/common', '@tinkoff/ng-polymorpheus', 'rxjs'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components.textarea = {}), global.ng.core, global.ng.forms, global.i4, global.i1, global.ng.common, global.i5, global.rxjs));
5
5
  })(this, (function (exports, i0, i3, i4, i1, i2, i5, i6) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
@@ -351,9 +351,9 @@
351
351
  var DEFAULT_ROWS = 20;
352
352
  var LINE_HEIGHT_M = 20;
353
353
  var LINE_HEIGHT_L = 24;
354
- var TuiTextAreaComponent = /** @class */ (function (_super) {
355
- __extends(TuiTextAreaComponent, _super);
356
- function TuiTextAreaComponent(control, cdr, isIOS, mode$, controller, hintOptions) {
354
+ var TuiTextareaComponent = /** @class */ (function (_super) {
355
+ __extends(TuiTextareaComponent, _super);
356
+ function TuiTextareaComponent(control, cdr, isIOS, mode$, controller, hintOptions) {
357
357
  var _this = _super.call(this, control, cdr) || this;
358
358
  _this.isIOS = isIOS;
359
359
  _this.mode$ = mode$;
@@ -364,14 +364,14 @@
364
364
  _this.expandable = false;
365
365
  return _this;
366
366
  }
367
- Object.defineProperty(TuiTextAreaComponent.prototype, "labelOutside", {
367
+ Object.defineProperty(TuiTextareaComponent.prototype, "labelOutside", {
368
368
  get: function () {
369
369
  return this.controller.labelOutside;
370
370
  },
371
371
  enumerable: false,
372
372
  configurable: true
373
373
  });
374
- Object.defineProperty(TuiTextAreaComponent.prototype, "nativeFocusableElement", {
374
+ Object.defineProperty(TuiTextareaComponent.prototype, "nativeFocusableElement", {
375
375
  get: function () {
376
376
  var _a, _b;
377
377
  if (this.computedDisabled) {
@@ -382,49 +382,49 @@
382
382
  enumerable: false,
383
383
  configurable: true
384
384
  });
385
- Object.defineProperty(TuiTextAreaComponent.prototype, "focused", {
385
+ Object.defineProperty(TuiTextareaComponent.prototype, "focused", {
386
386
  get: function () {
387
387
  return i4.tuiIsNativeFocused(this.nativeFocusableElement);
388
388
  },
389
389
  enumerable: false,
390
390
  configurable: true
391
391
  });
392
- Object.defineProperty(TuiTextAreaComponent.prototype, "appearance", {
392
+ Object.defineProperty(TuiTextareaComponent.prototype, "appearance", {
393
393
  get: function () {
394
394
  return this.controller.appearance;
395
395
  },
396
396
  enumerable: false,
397
397
  configurable: true
398
398
  });
399
- Object.defineProperty(TuiTextAreaComponent.prototype, "size", {
399
+ Object.defineProperty(TuiTextareaComponent.prototype, "size", {
400
400
  get: function () {
401
401
  return this.controller.size;
402
402
  },
403
403
  enumerable: false,
404
404
  configurable: true
405
405
  });
406
- Object.defineProperty(TuiTextAreaComponent.prototype, "borderStart", {
406
+ Object.defineProperty(TuiTextareaComponent.prototype, "borderStart", {
407
407
  get: function () {
408
408
  return this.iconLeftContent ? i1.TUI_ICON_PADDINGS[this.size] : 0;
409
409
  },
410
410
  enumerable: false,
411
411
  configurable: true
412
412
  });
413
- Object.defineProperty(TuiTextAreaComponent.prototype, "borderEnd", {
413
+ Object.defineProperty(TuiTextareaComponent.prototype, "borderEnd", {
414
414
  get: function () {
415
415
  return i1.tuiGetBorder(!!this.iconContent, this.hasCleaner, this.hasTooltip, this.hasCustomContent, this.size);
416
416
  },
417
417
  enumerable: false,
418
418
  configurable: true
419
419
  });
420
- Object.defineProperty(TuiTextAreaComponent.prototype, "hasCleaner", {
420
+ Object.defineProperty(TuiTextareaComponent.prototype, "hasCleaner", {
421
421
  get: function () {
422
422
  return this.controller.cleaner && this.hasValue && this.interactive;
423
423
  },
424
424
  enumerable: false,
425
425
  configurable: true
426
426
  });
427
- Object.defineProperty(TuiTextAreaComponent.prototype, "hasTooltip", {
427
+ Object.defineProperty(TuiTextareaComponent.prototype, "hasTooltip", {
428
428
  get: function () {
429
429
  var _a;
430
430
  return (!!((_a = this.hintOptions) === null || _a === void 0 ? void 0 : _a.content) &&
@@ -433,56 +433,56 @@
433
433
  enumerable: false,
434
434
  configurable: true
435
435
  });
436
- Object.defineProperty(TuiTextAreaComponent.prototype, "hasValue", {
436
+ Object.defineProperty(TuiTextareaComponent.prototype, "hasValue", {
437
437
  get: function () {
438
438
  return this.value !== '';
439
439
  },
440
440
  enumerable: false,
441
441
  configurable: true
442
442
  });
443
- Object.defineProperty(TuiTextAreaComponent.prototype, "hasCounter", {
443
+ Object.defineProperty(TuiTextareaComponent.prototype, "hasCounter", {
444
444
  get: function () {
445
445
  return !!this.maxLength && this.interactive;
446
446
  },
447
447
  enumerable: false,
448
448
  configurable: true
449
449
  });
450
- Object.defineProperty(TuiTextAreaComponent.prototype, "hasPlaceholder", {
450
+ Object.defineProperty(TuiTextareaComponent.prototype, "hasPlaceholder", {
451
451
  get: function () {
452
452
  return this.placeholderRaisable || (!this.hasValue && !this.hasExampleText);
453
453
  },
454
454
  enumerable: false,
455
455
  configurable: true
456
456
  });
457
- Object.defineProperty(TuiTextAreaComponent.prototype, "hasCustomContent", {
457
+ Object.defineProperty(TuiTextareaComponent.prototype, "hasCustomContent", {
458
458
  get: function () {
459
459
  return !!this.controller.customContent;
460
460
  },
461
461
  enumerable: false,
462
462
  configurable: true
463
463
  });
464
- Object.defineProperty(TuiTextAreaComponent.prototype, "iconLeftContent", {
464
+ Object.defineProperty(TuiTextareaComponent.prototype, "iconLeftContent", {
465
465
  get: function () {
466
466
  return this.controller.iconLeft;
467
467
  },
468
468
  enumerable: false,
469
469
  configurable: true
470
470
  });
471
- Object.defineProperty(TuiTextAreaComponent.prototype, "iconContent", {
471
+ Object.defineProperty(TuiTextareaComponent.prototype, "iconContent", {
472
472
  get: function () {
473
473
  return this.controller.icon;
474
474
  },
475
475
  enumerable: false,
476
476
  configurable: true
477
477
  });
478
- Object.defineProperty(TuiTextAreaComponent.prototype, "iconCleaner", {
478
+ Object.defineProperty(TuiTextareaComponent.prototype, "iconCleaner", {
479
479
  get: function () {
480
480
  return this.controller.options.iconCleaner;
481
481
  },
482
482
  enumerable: false,
483
483
  configurable: true
484
484
  });
485
- Object.defineProperty(TuiTextAreaComponent.prototype, "hasExampleText", {
485
+ Object.defineProperty(TuiTextareaComponent.prototype, "hasExampleText", {
486
486
  get: function () {
487
487
  var _a;
488
488
  return (!!((_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeElement.placeholder) &&
@@ -493,14 +493,14 @@
493
493
  enumerable: false,
494
494
  configurable: true
495
495
  });
496
- Object.defineProperty(TuiTextAreaComponent.prototype, "computeMaxHeight", {
496
+ Object.defineProperty(TuiTextareaComponent.prototype, "computeMaxHeight", {
497
497
  get: function () {
498
498
  return this.expandable ? this.rows * this.lineHeight : null;
499
499
  },
500
500
  enumerable: false,
501
501
  configurable: true
502
502
  });
503
- Object.defineProperty(TuiTextAreaComponent.prototype, "placeholderRaised", {
503
+ Object.defineProperty(TuiTextareaComponent.prototype, "placeholderRaised", {
504
504
  get: function () {
505
505
  return (this.placeholderRaisable &&
506
506
  ((this.computedFocused && !this.readOnly) || this.hasValue));
@@ -508,27 +508,27 @@
508
508
  enumerable: false,
509
509
  configurable: true
510
510
  });
511
- Object.defineProperty(TuiTextAreaComponent.prototype, "fittedContent", {
511
+ Object.defineProperty(TuiTextareaComponent.prototype, "fittedContent", {
512
512
  get: function () {
513
513
  return this.value.slice(0, this.maxLength || Infinity);
514
514
  },
515
515
  enumerable: false,
516
516
  configurable: true
517
517
  });
518
- Object.defineProperty(TuiTextAreaComponent.prototype, "extraContent", {
518
+ Object.defineProperty(TuiTextareaComponent.prototype, "extraContent", {
519
519
  get: function () {
520
520
  return this.value.slice(this.maxLength || Infinity);
521
521
  },
522
522
  enumerable: false,
523
523
  configurable: true
524
524
  });
525
- TuiTextAreaComponent.prototype.onFocused = function (focused) {
525
+ TuiTextareaComponent.prototype.onFocused = function (focused) {
526
526
  this.updateFocused(focused);
527
527
  };
528
- TuiTextAreaComponent.prototype.onValueChange = function (value) {
528
+ TuiTextareaComponent.prototype.onValueChange = function (value) {
529
529
  this.value = value;
530
530
  };
531
- TuiTextAreaComponent.prototype.onMouseDown = function (event) {
531
+ TuiTextareaComponent.prototype.onMouseDown = function (event) {
532
532
  if (event.target === this.nativeFocusableElement) {
533
533
  return;
534
534
  }
@@ -537,42 +537,42 @@
537
537
  this.nativeFocusableElement.focus();
538
538
  }
539
539
  };
540
- TuiTextAreaComponent.prototype.getFallbackValue = function () {
540
+ TuiTextareaComponent.prototype.getFallbackValue = function () {
541
541
  return '';
542
542
  };
543
- Object.defineProperty(TuiTextAreaComponent.prototype, "lineHeight", {
543
+ Object.defineProperty(TuiTextareaComponent.prototype, "lineHeight", {
544
544
  get: function () {
545
545
  return this.controller.size === 'm' ? LINE_HEIGHT_M : LINE_HEIGHT_L;
546
546
  },
547
547
  enumerable: false,
548
548
  configurable: true
549
549
  });
550
- Object.defineProperty(TuiTextAreaComponent.prototype, "placeholderRaisable", {
550
+ Object.defineProperty(TuiTextareaComponent.prototype, "placeholderRaisable", {
551
551
  get: function () {
552
552
  return this.size !== 's' && !this.controller.labelOutside;
553
553
  },
554
554
  enumerable: false,
555
555
  configurable: true
556
556
  });
557
- return TuiTextAreaComponent;
557
+ return TuiTextareaComponent;
558
558
  }(i4.AbstractTuiControl));
559
- TuiTextAreaComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextAreaComponent, deps: [{ token: i3.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i4.TUI_IS_IOS }, { token: i1.TUI_MODE }, { token: i1.TUI_TEXTFIELD_WATCHED_CONTROLLER }, { token: i1.TuiHintOptionsDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
560
- TuiTextAreaComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiTextAreaComponent, selector: "tui-text-area", inputs: { rows: "rows", maxLength: "maxLength", expandable: "expandable" }, host: { listeners: { "$.data-mode.attr": "mode$", "focusin": "onFocused(true)", "focusout": "onFocused(false)" }, properties: { "class._ios": "isIOS", "class._expandable": "this.expandable", "class._label-outside": "this.labelOutside", "attr.data-size": "this.size", "style.--border-start.rem": "this.borderStart", "style.--border-end.rem": "this.borderEnd", "class._has-tooltip": "this.hasTooltip", "class._has-value": "this.hasValue", "class._has-counter": "this.hasCounter" } }, providers: [
561
- i4.tuiAsFocusableItemAccessor(TuiTextAreaComponent),
562
- i4.tuiAsControl(TuiTextAreaComponent),
559
+ TuiTextareaComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextareaComponent, deps: [{ token: i3.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i4.TUI_IS_IOS }, { token: i1.TUI_MODE }, { token: i1.TUI_TEXTFIELD_WATCHED_CONTROLLER }, { token: i1.TuiHintOptionsDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
560
+ TuiTextareaComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiTextareaComponent, selector: "tui-textarea, tui-text-area", inputs: { rows: "rows", maxLength: "maxLength", expandable: "expandable" }, host: { listeners: { "$.data-mode.attr": "mode$", "focusin": "onFocused(true)", "focusout": "onFocused(false)" }, properties: { "class._ios": "isIOS", "class._expandable": "this.expandable", "class._label-outside": "this.labelOutside", "attr.data-size": "this.size", "style.--border-start.rem": "this.borderStart", "style.--border-end.rem": "this.borderEnd", "class._has-tooltip": "this.hasTooltip", "class._has-value": "this.hasValue", "class._has-counter": "this.hasCounter" } }, providers: [
561
+ i4.tuiAsFocusableItemAccessor(TuiTextareaComponent),
562
+ i4.tuiAsControl(TuiTextareaComponent),
563
563
  i1.TEXTFIELD_CONTROLLER_PROVIDER,
564
564
  i1.MODE_PROVIDER,
565
565
  ], queries: [{ propertyName: "textfield", first: true, predicate: i1.TuiTextfieldComponent, descendants: true, read: i0.ElementRef }], viewQueries: [{ propertyName: "focusableElement", first: true, predicate: ["focusableElement"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"hintOptions?.change$ | async\"></ng-container>\n<div\n tuiWrapper\n automation-id=\"tui-text-area__wrapper\"\n class=\"t-outline\"\n [appearance]=\"appearance\"\n [disabled]=\"disabled\"\n [focus]=\"computedFocused\"\n [hover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [invalid]=\"computedInvalid\"\n>\n <div\n *ngIf=\"hasCounter\"\n automation-id=\"tui-text-area__counter\"\n class=\"t-counter\"\n >\n {{ value.length }}/{{ maxLength }}\n </div>\n\n <label\n class=\"t-content\"\n (mousedown)=\"onMouseDown($event)\"\n >\n <div class=\"t-wrapper\">\n <div\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-text-area__placeholder\"\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content></ng-content>\n </div>\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 &nbsp;\n </div>\n <textarea\n #focusableElement\n automation-id=\"tui-text-area__native\"\n class=\"t-input\"\n [id]=\"id\"\n [tuiFocusable]=\"computedFocusable\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly\"\n [(ngModel)]=\"value\"\n ></textarea>\n <ng-content select=\"textarea\"></ng-content>\n </div>\n </div>\n </tui-scrollbar>\n </div>\n <div class=\"t-icons\">\n <div\n *ngIf=\"iconLeftContent\"\n class=\"t-icon t-icon_left t-textfield-icon\"\n >\n <tui-svg\n *polymorpheusOutlet=\"iconLeftContent as src; context: {$implicit: size}\"\n tuiWrapper\n appearance=\"icon\"\n [src]=\"src\"\n ></tui-svg>\n </div>\n <ng-container *ngIf=\"hasCustomContent\">\n <tui-svg\n *polymorpheusOutlet=\"controller.customContent as src\"\n [src]=\"src\"\n ></tui-svg>\n </ng-container>\n <ng-container *ngIf=\"hasCleaner\">\n <tui-svg\n *polymorpheusOutlet=\"iconCleaner as src; context: {$implicit: size}\"\n tuiWrapper\n appearance=\"icon\"\n class=\"t-cleaner\"\n [src]=\"src\"\n (click.stop)=\"onValueChange('')\"\n ></tui-svg>\n </ng-container>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-text-area__tooltip\"\n [describeId]=\"id\"\n [content]=\"hintOptions?.content\"\n ></tui-tooltip>\n <div\n *ngIf=\"iconContent\"\n class=\"t-icon t-textfield-icon\"\n >\n <tui-svg\n *polymorpheusOutlet=\"iconContent as src; context: {$implicit: size}\"\n tuiWrapper\n appearance=\"icon\"\n [src]=\"src\"\n ></tui-svg>\n </div>\n </div>\n </label>\n</div>\n", styles: [":host{position:relative;z-index:0;display:flex;flex-direction:column;min-height:var(--tui-textarea-height);border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host[data-size=s]{--tui-height: var(--tui-height-s);--tui-textarea-height: 4.5625rem;font:var(--tui-font-text-s)}:host[data-size=m]{--tui-height: var(--tui-height-m);--tui-textarea-height: 5.5rem;font:var(--tui-font-text-s)}:host[data-size=l]{--tui-height: var(--tui-height-l);--tui-textarea-height: 6.75rem;font:var(--tui-font-text-m)}:host[data-size=m]._has-counter{--tui-textarea-height: 6.625rem}:host[data-size=l]._has-counter{--tui-textarea-height: 7.875rem}.t-outline{min-height:inherit}.t-content{display:block;margin-top:0;margin-bottom:0;min-height:inherit;box-sizing:border-box;overflow:hidden;cursor:text}:host._disabled .t-content{cursor:auto;opacity:var(--tui-disabled-opacity)}:host:not(._expandable) .t-content{position:absolute;top:0;left:0;bottom:1px;right:0;min-height:auto}:host._has-counter:not(._expandable) .t-content{bottom:1.6875rem}.t-wrapper{position:relative;width:100%;height:100%;min-height:inherit;box-sizing:border-box;padding:calc((var(--tui-height) - 1.25rem) / 2) 0}:host[data-size=l]._label-outside .t-wrapper{padding:calc((var(--tui-height) - 1.5rem) / 2) 0}:host[data-size=m]:not(._label-outside) .t-wrapper{padding:calc((var(--tui-height) - 2.25rem) / 2) 0}:host[data-size=l]:not(._label-outside) .t-wrapper{padding:calc((var(--tui-height) - 2.625rem) / 2) 0}:host-context(table)[data-size=m]._label-outside .t-wrapper{padding-bottom:.75rem}:host-context(table)[data-size=l]._label-outside .t-wrapper{padding-bottom:1rem}.t-input-wrapper{min-height:inherit;width:100%;flex:1}.t-relative{position:relative;min-height:inherit}.t-box{display:flex;min-height:calc(100% - 1rem);width:100%}:host:not(._expandable) .t-box{height:calc(100% - 1rem)}:host._has-counter._expandable .t-box{margin-bottom:1.25rem}:host[data-size=m]:not(._label-outside) .t-box{border-top:1rem solid transparent}:host[data-size=l]:not(._label-outside) .t-box{border-top:1.25rem solid transparent}.t-pseudo-content{white-space:pre-wrap;word-wrap:break-word;pointer-events:none;color:transparent;overflow:hidden;border:solid transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0)}:host[data-size=s] .t-pseudo-content,:host[data-size=m] .t-pseudo-content{padding:0 .75rem}:host[data-size=l] .t-pseudo-content{padding:0 1rem}.t-pseudo-content__extra{background-color:var(--tui-error-bg-night)}.t-input{padding:0;margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;resize:none;overflow:hidden;outline:none;border:solid transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0)}.t-input:-webkit-autofill,.t-input:-webkit-autofill:hover,.t-input:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-input:not(:last-of-type){display:none}.t-input::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .t-input::placeholder{color:var(--tui-text-03-night)}:host._focused .t-input:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .t-input:not(:read-only)::placeholder{opacity:1}:host[data-size=s] .t-input,:host[data-size=m] .t-input{padding:0 .75rem}:host[data-size=l] .t-input{padding:0 1rem}:host[data-mode=onDark]._disabled .t-input{color:var(--tui-text-03-night)}@supports (-webkit-marquee-repetition: infinite) and (object-fit: fill){:host._ios .t-input{padding-left:.8125rem}}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0);position:absolute;top:calc(var(--tui-height) / 2 - .625rem);left:0;max-width:100%;border:solid transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);box-sizing:border-box}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size=m] .t-placeholder_raised{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host._invalid:not(._focused) [tuiWrapper][data-mode=onDark] .t-placeholder_raised,:host._invalid:not(._focused):hover [tuiWrapper][data-mode=onDark] .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size=m]._focused._label-outside .t-placeholder,:host[data-size=l]._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size=l] .t-placeholder{font:var(--tui-font-text-m);line-height:1.25rem}:host[data-size=l] .t-placeholder_raised{font-size:.8156rem}:host[data-size=m]._focused:not(._label-outside) .t-placeholder,:host[data-size=l]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}[tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size=m]._focused:not(._label-outside) [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=l]._focused:not(._label-outside) [tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-01-night)}:host._focused [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=m]._focused._label-outside [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=l]._focused._label-outside [tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}@supports (-webkit-hyphens: none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}:host[data-size=s] .t-placeholder{padding:0 .75rem}:host[data-size=m] .t-placeholder{padding:0 .75rem}:host[data-size=l] .t-placeholder{padding:0 1rem}:host._label-outside .t-placeholder{overflow:initial;height:auto;white-space:initial}.t-icons{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:flex-end;pointer-events:none;padding:calc((var(--tui-height) - 1.5rem) / 2) 1rem}:host[data-size=m] .t-icons{padding:calc((var(--tui-height) - 1.5rem) / 2) .625rem}.t-icons>:not(:first-child){-webkit-margin-start:.25rem;margin-inline-start:.25rem}.t-icon{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none}.t-icon_left{-webkit-margin-end:auto;margin-inline-end:auto}.t-cleaner{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto}:host._readonly .t-cleaner,:host._disabled .t-cleaner{pointer-events:none}.t-counter{position:absolute;right:.75rem;bottom:.5rem;font:var(--tui-font-text-s);pointer-events:none;margin-top:auto;text-align:right;color:var(--tui-text-03)}:host[data-mode=onDark] .t-counter{color:var(--tui-text-03-night)}\n"], components: [{ type: i1__namespace.TuiScrollbarComponent, selector: "tui-scrollbar", inputs: ["hidden"] }, { type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i1__namespace.TuiTooltipComponent, selector: "tui-tooltip", inputs: ["content", "direction", "appearance", "showDelay", "hideDelay", "describeId"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i3__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4__namespace.TuiFocusableDirective, selector: "[tuiFocusable]", inputs: ["tuiFocusable"] }, { type: i3__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
566
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextAreaComponent, decorators: [{
566
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextareaComponent, decorators: [{
567
567
  type: i0.Component,
568
568
  args: [{
569
- selector: 'tui-text-area',
570
- templateUrl: './text-area.template.html',
571
- styleUrls: ['./text-area.style.less'],
569
+ selector: 'tui-textarea, tui-text-area',
570
+ templateUrl: './textarea.template.html',
571
+ styleUrls: ['./textarea.style.less'],
572
572
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
573
573
  providers: [
574
- i4.tuiAsFocusableItemAccessor(TuiTextAreaComponent),
575
- i4.tuiAsControl(TuiTextAreaComponent),
574
+ i4.tuiAsFocusableItemAccessor(TuiTextareaComponent),
575
+ i4.tuiAsControl(TuiTextareaComponent),
576
576
  i1.TEXTFIELD_CONTROLLER_PROVIDER,
577
577
  i1.MODE_PROVIDER,
578
578
  ],
@@ -651,33 +651,34 @@
651
651
  args: ['focusout', ['false']]
652
652
  }] } });
653
653
 
654
- var TuiTextAreaDirective = /** @class */ (function (_super) {
655
- __extends(TuiTextAreaDirective, _super);
656
- function TuiTextAreaDirective() {
654
+ // TODO: delete `tui-text-area` in v4.0
655
+ var TuiTextareaDirective = /** @class */ (function (_super) {
656
+ __extends(TuiTextareaDirective, _super);
657
+ function TuiTextareaDirective() {
657
658
  return _super !== null && _super.apply(this, arguments) || this;
658
659
  }
659
- TuiTextAreaDirective.prototype.onValueChange = function (value) {
660
+ TuiTextareaDirective.prototype.onValueChange = function (value) {
660
661
  this.host.onValueChange(value);
661
662
  };
662
- return TuiTextAreaDirective;
663
+ return TuiTextareaDirective;
663
664
  }(i1.AbstractTuiTextfieldHost));
664
- TuiTextAreaDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextAreaDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
665
- TuiTextAreaDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTextAreaDirective, selector: "tui-text-area", providers: [i1.tuiAsTextfieldHost(TuiTextAreaDirective)], usesInheritance: true, ngImport: i0__namespace });
666
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextAreaDirective, decorators: [{
665
+ TuiTextareaDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextareaDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
666
+ TuiTextareaDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTextareaDirective, selector: "tui-textarea, tui-text-area", providers: [i1.tuiAsTextfieldHost(TuiTextareaDirective)], usesInheritance: true, ngImport: i0__namespace });
667
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextareaDirective, decorators: [{
667
668
  type: i0.Directive,
668
669
  args: [{
669
- selector: 'tui-text-area',
670
- providers: [i1.tuiAsTextfieldHost(TuiTextAreaDirective)],
670
+ selector: 'tui-textarea, tui-text-area',
671
+ providers: [i1.tuiAsTextfieldHost(TuiTextareaDirective)],
671
672
  }]
672
673
  }] });
673
674
 
674
- var TuiTextAreaModule = /** @class */ (function () {
675
- function TuiTextAreaModule() {
675
+ var TuiTextareaModule = /** @class */ (function () {
676
+ function TuiTextareaModule() {
676
677
  }
677
- return TuiTextAreaModule;
678
+ return TuiTextareaModule;
678
679
  }());
679
- TuiTextAreaModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextAreaModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
680
- TuiTextAreaModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextAreaModule, declarations: [TuiTextAreaComponent, TuiTextAreaDirective], imports: [i2.CommonModule,
680
+ TuiTextareaModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextareaModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
681
+ TuiTextareaModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextareaModule, declarations: [TuiTextareaComponent, TuiTextareaDirective], imports: [i2.CommonModule,
681
682
  i3.FormsModule,
682
683
  i4.TuiFocusableModule,
683
684
  i1.TuiScrollbarModule,
@@ -685,8 +686,8 @@
685
686
  i1.TuiWrapperModule,
686
687
  i1.TuiSvgModule,
687
688
  i1.TuiPrimitiveTextfieldModule,
688
- i5.PolymorpheusModule], exports: [TuiTextAreaComponent, TuiTextAreaDirective, i1.TuiTextfieldComponent] });
689
- TuiTextAreaModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextAreaModule, imports: [[
689
+ i5.PolymorpheusModule], exports: [TuiTextareaComponent, TuiTextareaDirective, i1.TuiTextfieldComponent] });
690
+ TuiTextareaModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextareaModule, imports: [[
690
691
  i2.CommonModule,
691
692
  i3.FormsModule,
692
693
  i4.TuiFocusableModule,
@@ -697,7 +698,7 @@
697
698
  i1.TuiPrimitiveTextfieldModule,
698
699
  i5.PolymorpheusModule,
699
700
  ]] });
700
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextAreaModule, decorators: [{
701
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextareaModule, decorators: [{
701
702
  type: i0.NgModule,
702
703
  args: [{
703
704
  imports: [
@@ -711,11 +712,24 @@
711
712
  i1.TuiPrimitiveTextfieldModule,
712
713
  i5.PolymorpheusModule,
713
714
  ],
714
- declarations: [TuiTextAreaComponent, TuiTextAreaDirective],
715
- exports: [TuiTextAreaComponent, TuiTextAreaDirective, i1.TuiTextfieldComponent],
715
+ declarations: [TuiTextareaComponent, TuiTextareaDirective],
716
+ exports: [TuiTextareaComponent, TuiTextareaDirective, i1.TuiTextfieldComponent],
716
717
  }]
717
718
  }] });
718
719
 
720
+ /**
721
+ * @deprecated: use {@link TuiTextareaComponent}
722
+ */
723
+ var TuiTextAreaComponent = TuiTextareaComponent;
724
+ /**
725
+ * @deprecated: use {@link TuiTextareaDirective}
726
+ */
727
+ var TuiTextAreaDirective = TuiTextareaDirective;
728
+ /**
729
+ * @deprecated: use {@link TuiTextareaModule}
730
+ */
731
+ var TuiTextAreaModule = TuiTextareaModule;
732
+
719
733
  /**
720
734
  * Generated bundle index. Do not edit.
721
735
  */
@@ -726,8 +740,11 @@
726
740
  exports.TuiTextAreaComponent = TuiTextAreaComponent;
727
741
  exports.TuiTextAreaDirective = TuiTextAreaDirective;
728
742
  exports.TuiTextAreaModule = TuiTextAreaModule;
743
+ exports.TuiTextareaComponent = TuiTextareaComponent;
744
+ exports.TuiTextareaDirective = TuiTextareaDirective;
745
+ exports.TuiTextareaModule = TuiTextareaModule;
729
746
 
730
747
  Object.defineProperty(exports, '__esModule', { value: true });
731
748
 
732
749
  }));
733
- //# sourceMappingURL=taiga-ui-kit-components-text-area.umd.js.map
750
+ //# sourceMappingURL=taiga-ui-kit-components-textarea.umd.js.map