@taiga-ui/legacy 4.9.0 → 4.11.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 (136) hide show
  1. package/classes/control.d.ts +1 -1
  2. package/components/combo-box/combo-box.component.d.ts +2 -1
  3. package/components/input-phone/input-phone.component.d.ts +2 -1
  4. package/components/input-phone-international/input-phone-international.component.d.ts +2 -1
  5. package/components/input-tag/input-tag.component.d.ts +2 -1
  6. package/components/input-time/input-time.component.d.ts +2 -1
  7. package/components/multi-select/multi-select.component.d.ts +6 -1
  8. package/components/select/select.component.d.ts +2 -1
  9. package/esm2022/classes/control.mjs +5 -5
  10. package/esm2022/components/arrow/arrow.component.mjs +3 -4
  11. package/esm2022/components/color-selector/color-edit/color-edit.component.mjs +3 -5
  12. package/esm2022/components/color-selector/color-picker/color-picker.component.mjs +3 -5
  13. package/esm2022/components/color-selector/color-selector.component.mjs +3 -5
  14. package/esm2022/components/color-selector/flat-picker/flat-picker.component.mjs +3 -5
  15. package/esm2022/components/color-selector/linear-multi-picker/linear-multi-picker.component.mjs +2 -3
  16. package/esm2022/components/color-selector/linear-picker/linear-picker.component.mjs +3 -5
  17. package/esm2022/components/color-selector/palette/palette.component.mjs +3 -5
  18. package/esm2022/components/combo-box/combo-box.component.mjs +11 -13
  19. package/esm2022/components/input/input.component.mjs +6 -8
  20. package/esm2022/components/input-color/input-color.component.mjs +3 -4
  21. package/esm2022/components/input-copy/input-copy.component.mjs +4 -5
  22. package/esm2022/components/input-date/input-date.component.mjs +4 -5
  23. package/esm2022/components/input-date-multi/input-date-multi.component.mjs +4 -5
  24. package/esm2022/components/input-date-range/input-date-range.component.mjs +4 -5
  25. package/esm2022/components/input-date-time/input-date-time.component.mjs +4 -5
  26. package/esm2022/components/input-date-time/input-date-time.directive.mjs +2 -2
  27. package/esm2022/components/input-month/input-month.component.mjs +4 -5
  28. package/esm2022/components/input-month-range/input-month-range.component.mjs +4 -5
  29. package/esm2022/components/input-number/input-number.component.mjs +4 -5
  30. package/esm2022/components/input-password/input-password.component.mjs +4 -5
  31. package/esm2022/components/input-phone/input-phone.component.mjs +10 -12
  32. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +11 -12
  33. package/esm2022/components/input-range/input-range.component.mjs +4 -5
  34. package/esm2022/components/input-slider/input-slider.component.mjs +4 -5
  35. package/esm2022/components/input-tag/input-tag.component.mjs +22 -20
  36. package/esm2022/components/input-time/input-time.component.mjs +14 -15
  37. package/esm2022/components/input-time/native-time/native-time.component.mjs +2 -3
  38. package/esm2022/components/input-year/input-year.component.mjs +4 -5
  39. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +2 -3
  40. package/esm2022/components/multi-select/multi-select.component.mjs +42 -15
  41. package/esm2022/components/multi-select/native-multi-select/native-multi-select-group.component.mjs +2 -3
  42. package/esm2022/components/multi-select/native-multi-select/native-multi-select.component.mjs +2 -3
  43. package/esm2022/components/multi-select-option/multi-select-option.component.mjs +3 -5
  44. package/esm2022/components/primitive-textfield/primitive-textfield.component.mjs +4 -5
  45. package/esm2022/components/primitive-textfield/textfield/textfield.component.mjs +2 -3
  46. package/esm2022/components/primitive-textfield/value-decoration/value-decoration.component.mjs +2 -3
  47. package/esm2022/components/select/native-select/native-select-group.component.mjs +2 -3
  48. package/esm2022/components/select/native-select/native-select.component.mjs +2 -3
  49. package/esm2022/components/select/select.component.mjs +11 -13
  50. package/esm2022/components/select-option/select-option.component.mjs +3 -5
  51. package/esm2022/components/sheet/components/sheet/sheet.component.mjs +2 -3
  52. package/esm2022/components/sheet/components/sheet-bar/sheet-bar.component.mjs +3 -5
  53. package/esm2022/components/sheet/components/sheet-heading/sheet-heading.component.mjs +3 -5
  54. package/esm2022/components/sheet/components/sheets-host/sheets-host.component.mjs +3 -5
  55. package/esm2022/components/svg/svg.component.mjs +3 -5
  56. package/esm2022/components/table-bar/table-bar.component.mjs +2 -3
  57. package/esm2022/components/table-bar/table-bars-host.component.mjs +3 -5
  58. package/esm2022/components/tag/tag.component.mjs +4 -5
  59. package/esm2022/components/textarea/textarea.component.mjs +4 -5
  60. package/esm2022/components/tooltip/tooltip.component.mjs +3 -4
  61. package/esm2022/tokens/is-apple.mjs +3 -3
  62. package/esm2022/utils/is-apple.mjs +3 -6
  63. package/fesm2022/taiga-ui-legacy-classes.mjs +4 -4
  64. package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +2 -3
  66. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +13 -26
  68. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +13 -15
  70. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-legacy-components-input-color.mjs +2 -3
  72. package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +3 -4
  74. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +3 -4
  76. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +3 -4
  78. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +4 -5
  80. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +3 -4
  82. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +3 -4
  84. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-legacy-components-input-month.mjs +3 -4
  86. package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +3 -4
  88. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-legacy-components-input-password.mjs +3 -4
  90. package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +10 -11
  92. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +12 -14
  94. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +3 -4
  96. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +3 -4
  98. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +23 -21
  100. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +18 -21
  102. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-legacy-components-input-year.mjs +3 -4
  104. package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-legacy-components-input.mjs +5 -7
  106. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +2 -4
  108. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +51 -27
  110. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -1
  111. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +5 -8
  112. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
  113. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +2 -4
  114. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -1
  115. package/fesm2022/taiga-ui-legacy-components-select.mjs +10 -14
  116. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-legacy-components-sheet.mjs +7 -14
  118. package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-legacy-components-svg.mjs +2 -4
  120. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +3 -6
  122. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-legacy-components-tag.mjs +3 -4
  124. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +3 -4
  126. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +2 -3
  128. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-legacy-tokens.mjs +2 -2
  130. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-legacy-utils.mjs +2 -5
  132. package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -1
  133. package/package.json +25 -25
  134. package/styles/mixins/textfield.less +5 -1
  135. package/utils/icons-path-factory.d.ts +1 -1
  136. package/utils/is-apple.d.ts +2 -1
@@ -137,11 +137,11 @@ class TuiTextareaComponent extends AbstractTuiControl {
137
137
  return this.size !== 's' && !this.controller.labelOutside;
138
138
  }
139
139
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTextareaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
140
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiTextareaComponent, selector: "tui-textarea", inputs: { rows: "rows", maxLength: "maxLength", expandable: "expandable" }, host: { attributes: { "ngSkipHydration": "true" }, listeners: { "focusin": "onFocused(true)", "focusout": "onFocused(false)" }, properties: { "attr.data-size": "size", "class._ios": "isIOS", "class._expandable": "expandable", "class._has-counter": "hasCounter", "class._label-outside": "labelOutside", "class._has-tooltip": "hasTooltip", "class._has-value": "hasValue", "style.--border-end.rem": "borderEnd", "style.--border-start.rem": "borderStart" } }, providers: [
140
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiTextareaComponent, selector: "tui-textarea", inputs: { rows: "rows", maxLength: "maxLength", expandable: "expandable" }, host: { listeners: { "focusin": "onFocused(true)", "focusout": "onFocused(false)" }, properties: { "attr.data-size": "size", "class._ios": "isIOS", "class._expandable": "expandable", "class._has-counter": "hasCounter", "class._label-outside": "labelOutside", "class._has-tooltip": "hasTooltip", "class._has-value": "hasValue", "style.--border-end.rem": "borderEnd", "style.--border-start.rem": "borderStart" } }, providers: [
141
141
  tuiAsFocusableItemAccessor(TuiTextareaComponent),
142
142
  tuiAsControl(TuiTextareaComponent),
143
143
  TEXTFIELD_CONTROLLER_PROVIDER,
144
- ], queries: [{ propertyName: "textfield", first: true, predicate: TuiTextfieldComponent, descendants: true, read: ElementRef }], viewQueries: [{ propertyName: "focusableElement", first: true, predicate: ["focusableElement"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"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 <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 />\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 <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 <div\n *ngIf=\"iconLeftContent\"\n class=\"t-icon t-icon_left t-textfield-icon\"\n >\n <tui-icon\n *polymorpheusOutlet=\"iconLeftContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\n <ng-container *ngIf=\"hasCustomContent\">\n <tui-icon\n *polymorpheusOutlet=\"controller.customContent as src\"\n [icon]=\"src\"\n />\n </ng-container>\n <ng-container *ngIf=\"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 </ng-container>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-text-area__tooltip\"\n [content]=\"hintOptions?.content\"\n [describeId]=\"id\"\n />\n <div\n *ngIf=\"iconContent\"\n class=\"t-icon t-textfield-icon\"\n >\n <tui-icon\n *polymorpheusOutlet=\"iconContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\n </div>\n </label>\n</div>\n", styles: [":host{position:relative;z-index:0;display:flex;flex-direction:column;min-block-size:var(--tui-textarea-height);border-radius:var(--tui-radius-m);color:var(--tui-text-primary)}: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}@supports (-webkit-hyphens: none){:host .t-pseudo-content,:host .t-input{text-wrap:balance}}.t-outline{min-block-size:inherit}.t-content{display:block;margin-top:0;margin-bottom:0;min-block-size: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-block-size:auto}:host._has-counter:not(._expandable) .t-content{bottom:1.6875rem}:host._label-outside._has-counter:not(._expandable) .t-content{bottom:1rem}.t-wrapper{position:relative;inline-size:100%;block-size:100%;min-block-size: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-block-size:inherit;inline-size:100%;flex:1}.t-relative{position:relative;min-block-size:inherit}.t-box{display:flex;min-block-size:calc(100% - 1rem);inline-size:100%}:host:not(._expandable) .t-box{block-size:calc(100% - 1rem)}:host:not(._expandable)._label-outside .t-box{block-size:100%}:host._has-counter._expandable .t-box{margin-bottom:1.25rem}:host[data-size=m]:not(._label-outside) .t-box{border-block-start:1rem solid transparent}:host[data-size=l]:not(._label-outside) .t-box{border-block-start:1.25rem solid transparent}.t-pseudo-content{white-space:pre-wrap;word-wrap:break-word;word-break:keep-all;pointer-events:none;color:transparent;overflow:hidden;border:0 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-status-negative-pale)}.t-input{padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;inline-size:100%;block-size:100%;box-sizing:border-box;resize:none;overflow:hidden;outline:none;border-style:solid;border-color: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{-webkit-text-fill-color:var(--tui-text-primary)!important;border-color:var(--tui-service-autofill-background);box-shadow:0 0 0 100rem var(--tui-service-autofill-background) inset!important}.t-input:not(:last-of-type){display:none}.t-input::placeholder{color:var(--tui-text-tertiary);opacity:0}: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;font:var(--tui-font-text-s)}:host[data-size=l] .t-input{padding:0 1rem;font:var(--tui-font-text-m)}@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;inline-size:100%;-webkit-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-secondary);pointer-events:none;will-change:transform;transform:translateY(0);position:absolute;top:calc(var(--tui-height) / 2 - .625rem);left:0;max-inline-size:100%;border:0 solid transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);box-sizing:border-box}@supports (-webkit-hyphens: none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}.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-text-negative)}: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-tertiary)}: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-primary)}: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;block-size: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){margin-inline-start:.25rem}.t-icon{position:relative;display:flex;inline-size:1.5rem;block-size:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none}.t-icon_left{margin-inline-end:auto}.t-cleaner{position:relative;display:flex;inline-size:1.5rem;block-size:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto;border:.25rem solid transparent}:host._readonly .t-cleaner,:host._disabled .t-cleaner{pointer-events:none}.t-caret{display:inline-block;block-size:1rem;inline-size:0}.t-counter{position:absolute;right:.75rem;bottom:.5rem;font:var(--tui-font-text-s);pointer-events:none;margin-top:auto;text-align:end;color:var(--tui-text-tertiary)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.TuiScrollbar, selector: "tui-scrollbar", inputs: ["hidden"] }, { kind: "component", type: i4.TuiTooltipComponent, selector: "tui-tooltip", inputs: ["content", "direction", "appearance", "showDelay", "hideDelay", "describeId", "context"] }, { kind: "directive", type: i5.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { kind: "directive", type: i6.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i7.TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }, { kind: "directive", type: i8.TuiAppearance, selector: "[tuiAppearance]", inputs: ["tuiAppearance", "tuiAppearanceState", "tuiAppearanceFocus", "tuiAppearanceMode"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
144
+ ], queries: [{ propertyName: "textfield", first: true, predicate: TuiTextfieldComponent, descendants: true, read: ElementRef }], viewQueries: [{ propertyName: "focusableElement", first: true, predicate: ["focusableElement"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"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 <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 />\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 <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 <div\n *ngIf=\"iconLeftContent\"\n class=\"t-icon t-icon_left t-textfield-icon\"\n >\n <tui-icon\n *polymorpheusOutlet=\"iconLeftContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\n <ng-container *ngIf=\"hasCustomContent\">\n <tui-icon\n *polymorpheusOutlet=\"controller.customContent as src\"\n [icon]=\"src\"\n />\n </ng-container>\n <ng-container *ngIf=\"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 </ng-container>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-text-area__tooltip\"\n [content]=\"hintOptions?.content\"\n [describeId]=\"id\"\n />\n <div\n *ngIf=\"iconContent\"\n class=\"t-icon t-textfield-icon\"\n >\n <tui-icon\n *polymorpheusOutlet=\"iconContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\n </div>\n </label>\n</div>\n", styles: [":host{position:relative;z-index:0;display:flex;flex-direction:column;min-block-size:var(--tui-textarea-height);border-radius:var(--tui-radius-m);color:var(--tui-text-primary)}:host :host-context(*:disabled){pointer-events:none}: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}@supports (-webkit-hyphens: none){:host .t-pseudo-content,:host .t-input{text-wrap:balance}}.t-outline{min-block-size:inherit}.t-content{display:block;margin-top:0;margin-bottom:0;min-block-size: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-block-size:auto}:host._has-counter:not(._expandable) .t-content{bottom:1.6875rem}:host._label-outside._has-counter:not(._expandable) .t-content{bottom:1rem}.t-wrapper{position:relative;inline-size:100%;block-size:100%;min-block-size: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-block-size:inherit;inline-size:100%;flex:1}.t-relative{position:relative;min-block-size:inherit}.t-box{display:flex;min-block-size:calc(100% - 1rem);inline-size:100%}:host:not(._expandable) .t-box{block-size:calc(100% - 1rem)}:host:not(._expandable)._label-outside .t-box{block-size:100%}:host._has-counter._expandable .t-box{margin-bottom:1.25rem}:host[data-size=m]:not(._label-outside) .t-box{border-block-start:1rem solid transparent}:host[data-size=l]:not(._label-outside) .t-box{border-block-start:1.25rem solid transparent}.t-pseudo-content{white-space:pre-wrap;overflow-wrap:break-word;word-break:keep-all;pointer-events:none;color:transparent;overflow:hidden;border:0 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-status-negative-pale)}.t-input{padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;inline-size:100%;block-size:100%;box-sizing:border-box;resize:none;overflow:hidden;outline:none;border-style:solid;border-color: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{-webkit-text-fill-color:var(--tui-text-primary)!important;border-color:var(--tui-service-autofill-background);box-shadow:0 0 0 100rem var(--tui-service-autofill-background) inset!important}.t-input:not(:last-of-type){display:none}.t-input::placeholder{color:var(--tui-text-tertiary);opacity:0}: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;font:var(--tui-font-text-s)}:host[data-size=l] .t-input{padding:0 1rem;font:var(--tui-font-text-m)}@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;inline-size:100%;-webkit-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-secondary);pointer-events:none;will-change:transform;transform:translateY(0);position:absolute;top:calc(var(--tui-height) / 2 - .625rem);left:0;max-inline-size:100%;border:0 solid transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);box-sizing:border-box}@supports (-webkit-hyphens: none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}.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-text-negative)}: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-tertiary)}: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-primary)}: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;block-size: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){margin-inline-start:.25rem}.t-icon{position:relative;display:flex;inline-size:1.5rem;block-size:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none}.t-icon_left{margin-inline-end:auto}.t-cleaner{position:relative;display:flex;inline-size:1.5rem;block-size:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto;border-width:.25rem}:host._readonly .t-cleaner,:host._disabled .t-cleaner{pointer-events:none}.t-caret{display:inline-block;block-size:1rem;inline-size:0}.t-counter{position:absolute;right:.75rem;bottom:.5rem;font:var(--tui-font-text-s);pointer-events:none;margin-top:auto;text-align:end;color:var(--tui-text-tertiary)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.TuiScrollbar, selector: "tui-scrollbar", inputs: ["hidden"] }, { kind: "component", type: i4.TuiTooltipComponent, selector: "tui-tooltip", inputs: ["content", "direction", "appearance", "showDelay", "hideDelay", "describeId", "context"] }, { kind: "directive", type: i5.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { kind: "directive", type: i6.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i7.TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }, { kind: "directive", type: i8.TuiAppearance, selector: "[tuiAppearance]", inputs: ["tuiAppearance", "tuiAppearanceState", "tuiAppearanceFocus", "tuiAppearanceMode"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
145
145
  }
146
146
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTextareaComponent, decorators: [{
147
147
  type: Component,
@@ -150,7 +150,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
150
150
  tuiAsControl(TuiTextareaComponent),
151
151
  TEXTFIELD_CONTROLLER_PROVIDER,
152
152
  ], host: {
153
- ngSkipHydration: 'true',
154
153
  '[attr.data-size]': 'size',
155
154
  '[class._ios]': 'isIOS',
156
155
  '[class._expandable]': 'expandable',
@@ -162,7 +161,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
162
161
  '[style.--border-start.rem]': 'borderStart',
163
162
  '(focusin)': 'onFocused(true)',
164
163
  '(focusout)': 'onFocused(false)',
165
- }, template: "<ng-container *ngIf=\"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 <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 />\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 <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 <div\n *ngIf=\"iconLeftContent\"\n class=\"t-icon t-icon_left t-textfield-icon\"\n >\n <tui-icon\n *polymorpheusOutlet=\"iconLeftContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\n <ng-container *ngIf=\"hasCustomContent\">\n <tui-icon\n *polymorpheusOutlet=\"controller.customContent as src\"\n [icon]=\"src\"\n />\n </ng-container>\n <ng-container *ngIf=\"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 </ng-container>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-text-area__tooltip\"\n [content]=\"hintOptions?.content\"\n [describeId]=\"id\"\n />\n <div\n *ngIf=\"iconContent\"\n class=\"t-icon t-textfield-icon\"\n >\n <tui-icon\n *polymorpheusOutlet=\"iconContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\n </div>\n </label>\n</div>\n", styles: [":host{position:relative;z-index:0;display:flex;flex-direction:column;min-block-size:var(--tui-textarea-height);border-radius:var(--tui-radius-m);color:var(--tui-text-primary)}: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}@supports (-webkit-hyphens: none){:host .t-pseudo-content,:host .t-input{text-wrap:balance}}.t-outline{min-block-size:inherit}.t-content{display:block;margin-top:0;margin-bottom:0;min-block-size: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-block-size:auto}:host._has-counter:not(._expandable) .t-content{bottom:1.6875rem}:host._label-outside._has-counter:not(._expandable) .t-content{bottom:1rem}.t-wrapper{position:relative;inline-size:100%;block-size:100%;min-block-size: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-block-size:inherit;inline-size:100%;flex:1}.t-relative{position:relative;min-block-size:inherit}.t-box{display:flex;min-block-size:calc(100% - 1rem);inline-size:100%}:host:not(._expandable) .t-box{block-size:calc(100% - 1rem)}:host:not(._expandable)._label-outside .t-box{block-size:100%}:host._has-counter._expandable .t-box{margin-bottom:1.25rem}:host[data-size=m]:not(._label-outside) .t-box{border-block-start:1rem solid transparent}:host[data-size=l]:not(._label-outside) .t-box{border-block-start:1.25rem solid transparent}.t-pseudo-content{white-space:pre-wrap;word-wrap:break-word;word-break:keep-all;pointer-events:none;color:transparent;overflow:hidden;border:0 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-status-negative-pale)}.t-input{padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;inline-size:100%;block-size:100%;box-sizing:border-box;resize:none;overflow:hidden;outline:none;border-style:solid;border-color: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{-webkit-text-fill-color:var(--tui-text-primary)!important;border-color:var(--tui-service-autofill-background);box-shadow:0 0 0 100rem var(--tui-service-autofill-background) inset!important}.t-input:not(:last-of-type){display:none}.t-input::placeholder{color:var(--tui-text-tertiary);opacity:0}: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;font:var(--tui-font-text-s)}:host[data-size=l] .t-input{padding:0 1rem;font:var(--tui-font-text-m)}@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;inline-size:100%;-webkit-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-secondary);pointer-events:none;will-change:transform;transform:translateY(0);position:absolute;top:calc(var(--tui-height) / 2 - .625rem);left:0;max-inline-size:100%;border:0 solid transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);box-sizing:border-box}@supports (-webkit-hyphens: none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}.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-text-negative)}: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-tertiary)}: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-primary)}: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;block-size: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){margin-inline-start:.25rem}.t-icon{position:relative;display:flex;inline-size:1.5rem;block-size:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none}.t-icon_left{margin-inline-end:auto}.t-cleaner{position:relative;display:flex;inline-size:1.5rem;block-size:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto;border:.25rem solid transparent}:host._readonly .t-cleaner,:host._disabled .t-cleaner{pointer-events:none}.t-caret{display:inline-block;block-size:1rem;inline-size:0}.t-counter{position:absolute;right:.75rem;bottom:.5rem;font:var(--tui-font-text-s);pointer-events:none;margin-top:auto;text-align:end;color:var(--tui-text-tertiary)}\n"] }]
164
+ }, template: "<ng-container *ngIf=\"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 <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 />\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 <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 <div\n *ngIf=\"iconLeftContent\"\n class=\"t-icon t-icon_left t-textfield-icon\"\n >\n <tui-icon\n *polymorpheusOutlet=\"iconLeftContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\n <ng-container *ngIf=\"hasCustomContent\">\n <tui-icon\n *polymorpheusOutlet=\"controller.customContent as src\"\n [icon]=\"src\"\n />\n </ng-container>\n <ng-container *ngIf=\"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 </ng-container>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-text-area__tooltip\"\n [content]=\"hintOptions?.content\"\n [describeId]=\"id\"\n />\n <div\n *ngIf=\"iconContent\"\n class=\"t-icon t-textfield-icon\"\n >\n <tui-icon\n *polymorpheusOutlet=\"iconContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\n </div>\n </label>\n</div>\n", styles: [":host{position:relative;z-index:0;display:flex;flex-direction:column;min-block-size:var(--tui-textarea-height);border-radius:var(--tui-radius-m);color:var(--tui-text-primary)}:host :host-context(*:disabled){pointer-events:none}: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}@supports (-webkit-hyphens: none){:host .t-pseudo-content,:host .t-input{text-wrap:balance}}.t-outline{min-block-size:inherit}.t-content{display:block;margin-top:0;margin-bottom:0;min-block-size: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-block-size:auto}:host._has-counter:not(._expandable) .t-content{bottom:1.6875rem}:host._label-outside._has-counter:not(._expandable) .t-content{bottom:1rem}.t-wrapper{position:relative;inline-size:100%;block-size:100%;min-block-size: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-block-size:inherit;inline-size:100%;flex:1}.t-relative{position:relative;min-block-size:inherit}.t-box{display:flex;min-block-size:calc(100% - 1rem);inline-size:100%}:host:not(._expandable) .t-box{block-size:calc(100% - 1rem)}:host:not(._expandable)._label-outside .t-box{block-size:100%}:host._has-counter._expandable .t-box{margin-bottom:1.25rem}:host[data-size=m]:not(._label-outside) .t-box{border-block-start:1rem solid transparent}:host[data-size=l]:not(._label-outside) .t-box{border-block-start:1.25rem solid transparent}.t-pseudo-content{white-space:pre-wrap;overflow-wrap:break-word;word-break:keep-all;pointer-events:none;color:transparent;overflow:hidden;border:0 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-status-negative-pale)}.t-input{padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;inline-size:100%;block-size:100%;box-sizing:border-box;resize:none;overflow:hidden;outline:none;border-style:solid;border-color: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{-webkit-text-fill-color:var(--tui-text-primary)!important;border-color:var(--tui-service-autofill-background);box-shadow:0 0 0 100rem var(--tui-service-autofill-background) inset!important}.t-input:not(:last-of-type){display:none}.t-input::placeholder{color:var(--tui-text-tertiary);opacity:0}: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;font:var(--tui-font-text-s)}:host[data-size=l] .t-input{padding:0 1rem;font:var(--tui-font-text-m)}@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;inline-size:100%;-webkit-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-secondary);pointer-events:none;will-change:transform;transform:translateY(0);position:absolute;top:calc(var(--tui-height) / 2 - .625rem);left:0;max-inline-size:100%;border:0 solid transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);box-sizing:border-box}@supports (-webkit-hyphens: none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}.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-text-negative)}: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-tertiary)}: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-primary)}: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;block-size: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){margin-inline-start:.25rem}.t-icon{position:relative;display:flex;inline-size:1.5rem;block-size:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none}.t-icon_left{margin-inline-end:auto}.t-cleaner{position:relative;display:flex;inline-size:1.5rem;block-size:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto;border-width:.25rem}:host._readonly .t-cleaner,:host._disabled .t-cleaner{pointer-events:none}.t-caret{display:inline-block;block-size:1rem;inline-size:0}.t-counter{position:absolute;right:.75rem;bottom:.5rem;font:var(--tui-font-text-s);pointer-events:none;margin-top:auto;text-align:end;color:var(--tui-text-tertiary)}\n"] }]
166
165
  }], propDecorators: { focusableElement: [{
167
166
  type: ViewChild,
168
167
  args: ['focusableElement']
@@ -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, 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 type {TuiFocusableElementAccessor} from '@taiga-ui/legacy/tokens';\nimport {tuiAsFocusableItemAccessor} 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@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 ngSkipHydration: 'true',\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.--border-end.rem]': 'borderEnd',\n '[style.--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","<ng-container *ngIf=\"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 <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 />\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 <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 <div\n *ngIf=\"iconLeftContent\"\n class=\"t-icon t-icon_left t-textfield-icon\"\n >\n <tui-icon\n *polymorpheusOutlet=\"iconLeftContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\n <ng-container *ngIf=\"hasCustomContent\">\n <tui-icon\n *polymorpheusOutlet=\"controller.customContent as src\"\n [icon]=\"src\"\n />\n </ng-container>\n <ng-container *ngIf=\"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 </ng-container>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-text-area__tooltip\"\n [content]=\"hintOptions?.content\"\n [describeId]=\"id\"\n />\n <div\n *ngIf=\"iconContent\"\n class=\"t-icon t-textfield-icon\"\n >\n <tui-icon\n *polymorpheusOutlet=\"iconContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\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@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@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 TuiTextarea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YAAA,aAAa,aAIb,oBAAoB;YACpB,oBAAoB;YACpB,qBAAqB;YACrB,kBAAkB;YAClB,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA;AAGf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YApBtB,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,gBAAgB;YAChB,gBAAgB;YAChB,2BAA2B;YAG3B,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;;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,CAAA;;;ACtCD;;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 {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, 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 type {TuiFocusableElementAccessor} from '@taiga-ui/legacy/tokens';\nimport {tuiAsFocusableItemAccessor} 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@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.--border-end.rem]': 'borderEnd',\n '[style.--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","<ng-container *ngIf=\"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 <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 />\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 <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 <div\n *ngIf=\"iconLeftContent\"\n class=\"t-icon t-icon_left t-textfield-icon\"\n >\n <tui-icon\n *polymorpheusOutlet=\"iconLeftContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\n <ng-container *ngIf=\"hasCustomContent\">\n <tui-icon\n *polymorpheusOutlet=\"controller.customContent as src\"\n [icon]=\"src\"\n />\n </ng-container>\n <ng-container *ngIf=\"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 </ng-container>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-text-area__tooltip\"\n [content]=\"hintOptions?.content\"\n [describeId]=\"id\"\n />\n <div\n *ngIf=\"iconContent\"\n class=\"t-icon t-textfield-icon\"\n >\n <tui-icon\n *polymorpheusOutlet=\"iconContent as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [icon]=\"src.toString()\"\n />\n </div>\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@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@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":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BO,MAAM,YAAY,GAAG,GAAG;AACxB,MAAM,aAAa,GAAG,GAAG;AACzB,MAAM,aAAa,GAAG,GAAG;AAEhC,MAyBa,oBACT,SAAQ,kBAA0B,CAAA;AA1BtC,IAAA,WAAA,GAAA;;AAmCqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAEtC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,gCAAgC,CAAC,CAAC;QACtD,IAAW,CAAA,WAAA,GAAG,MAAM,CAAC,uBAAuB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;QAG5E,IAAI,CAAA,IAAA,GAAG,YAAY,CAAC;QAGpB,IAAS,CAAA,SAAA,GAAkB,IAAI,CAAC;QAGhC,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;AAgJ7B,KAAA;AA9IG,IAAA,IAAW,sBAAsB,GAAA;QAC7B,IAAI,IAAI,CAAC,gBAAgB,EAAE;AACvB,YAAA,OAAO,IAAI,CAAC;AACf,SAAA;AAED,QAAA,QACI,IAAI,CAAC,SAAS,EAAE,aAAa,IAAI,IAAI,CAAC,gBAAgB,EAAE,aAAa,IAAI,IAAI,EAC/E;KACL;AAED,IAAA,IAAW,OAAO,GAAA;AACd,QAAA,OAAO,kBAAkB,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;KAC1D;AAED,IAAA,IAAW,gBAAgB,GAAA;AACvB,QAAA,OAAO,IAAI,CAAC,UAAU,GAAG,IAAI,CA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;YAClB,oBAAoB;YACpB,OAAO;AACP,YAAA,aAAa,aAIb,oBAAoB;YACpB,oBAAoB;YACpB,qBAAqB;YACrB,kBAAkB;YAClB,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA;AAGf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YApBtB,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,gBAAgB;YAChB,gBAAgB;YAChB,2BAA2B;YAG3B,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;;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,CAAA;;;ACtCD;;AAEG;;;;"}
@@ -33,15 +33,14 @@ class TuiTooltipComponent extends TuiHintOptionsDirective {
33
33
  this.driver$?.toggle();
34
34
  }
35
35
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTooltipComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
36
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiTooltipComponent, selector: "tui-tooltip", inputs: { content: "content", direction: "direction", appearance: "appearance", showDelay: "showDelay", hideDelay: "hideDelay", describeId: "describeId", context: "context" }, host: { attributes: { "ngSkipHydration": "true" }, listeners: { "mousedown": "stopOnMobile($event)" }, properties: { "attr.data-appearance": "computedAppearance" } }, viewQueries: [{ propertyName: "driver$", first: true, predicate: TuiHintHover, descendants: true }], usesInheritance: true, ngImport: i0, template: "<span\n #driver=\"tuiHintHover\"\n automation-id=\"tui-tooltip__icon\"\n tuiAppearance=\"icon\"\n class=\"t-tooltip-icon\"\n [tuiAppearanceState]=\"(driver | async) ? 'hover' : null\"\n [tuiHint]=\"content\"\n [tuiHintAppearance]=\"computedAppearance\"\n [tuiHintContext]=\"context\"\n [tuiHintDescribe]=\"describeId\"\n [tuiHintDirection]=\"direction\"\n [tuiHintHideDelay]=\"hideDelay\"\n [tuiHintShowDelay]=\"showDelay\"\n>\n <tui-icon\n *polymorpheusOutlet=\"icon as src\"\n class=\"t-icon\"\n [icon]=\"src\"\n />\n</span>\n", styles: [":host{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;inline-size:1.5rem;block-size:1.5rem;vertical-align:middle;font-size:0;line-height:0;pointer-events:auto;cursor:pointer;color:var(--tui-text-primary)}:host[data-appearance=error]{color:var(--tui-text-negative)}.t-tooltip-icon{display:inline-block;inline-size:100%;block-size:100%}.t-icon{border:.25rem solid transparent}\n"], dependencies: [{ kind: "component", type: i1.TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }, { kind: "directive", type: i2.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i3.TuiAppearance, selector: "[tuiAppearance]", inputs: ["tuiAppearance", "tuiAppearanceState", "tuiAppearanceFocus", "tuiAppearanceMode"] }, { kind: "directive", type: i1$1.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHintContext", "tuiHintAppearance", "tuiHint"] }, { kind: "directive", type: i1$1.TuiHintDescribe, selector: "[tuiHintDescribe]", inputs: ["tuiHintDescribe"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
36
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiTooltipComponent, selector: "tui-tooltip", inputs: { content: "content", direction: "direction", appearance: "appearance", showDelay: "showDelay", hideDelay: "hideDelay", describeId: "describeId", context: "context" }, host: { listeners: { "mousedown": "stopOnMobile($event)" }, properties: { "attr.data-appearance": "computedAppearance" } }, viewQueries: [{ propertyName: "driver$", first: true, predicate: TuiHintHover, descendants: true }], usesInheritance: true, ngImport: i0, template: "<span\n #driver=\"tuiHintHover\"\n automation-id=\"tui-tooltip__icon\"\n tuiAppearance=\"icon\"\n class=\"t-tooltip-icon\"\n [tuiAppearanceState]=\"(driver | async) ? 'hover' : null\"\n [tuiHint]=\"content\"\n [tuiHintAppearance]=\"computedAppearance\"\n [tuiHintContext]=\"context\"\n [tuiHintDescribe]=\"describeId\"\n [tuiHintDirection]=\"direction\"\n [tuiHintHideDelay]=\"hideDelay\"\n [tuiHintShowDelay]=\"showDelay\"\n>\n <tui-icon\n *polymorpheusOutlet=\"icon as src\"\n class=\"t-icon\"\n [icon]=\"src\"\n />\n</span>\n", styles: [":host{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;inline-size:1.5rem;block-size:1.5rem;vertical-align:middle;font-size:0;line-height:0;pointer-events:auto;cursor:pointer;color:var(--tui-text-primary)}:host[data-appearance=error]{color:var(--tui-text-negative)}.t-tooltip-icon{display:inline-block;inline-size:100%;block-size:100%}.t-icon{border-width:.25rem}\n"], dependencies: [{ kind: "component", type: i1.TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }, { kind: "directive", type: i2.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i3.TuiAppearance, selector: "[tuiAppearance]", inputs: ["tuiAppearance", "tuiAppearanceState", "tuiAppearanceFocus", "tuiAppearanceMode"] }, { kind: "directive", type: i1$1.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHintContext", "tuiHintAppearance", "tuiHint"] }, { kind: "directive", type: i1$1.TuiHintDescribe, selector: "[tuiHintDescribe]", inputs: ["tuiHintDescribe"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
37
37
  }
38
38
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTooltipComponent, decorators: [{
39
39
  type: Component,
40
40
  args: [{ standalone: false, selector: 'tui-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['content', 'direction', 'appearance', 'showDelay', 'hideDelay'], host: {
41
- ngSkipHydration: 'true',
42
41
  '[attr.data-appearance]': 'computedAppearance',
43
42
  '(mousedown)': 'stopOnMobile($event)',
44
- }, template: "<span\n #driver=\"tuiHintHover\"\n automation-id=\"tui-tooltip__icon\"\n tuiAppearance=\"icon\"\n class=\"t-tooltip-icon\"\n [tuiAppearanceState]=\"(driver | async) ? 'hover' : null\"\n [tuiHint]=\"content\"\n [tuiHintAppearance]=\"computedAppearance\"\n [tuiHintContext]=\"context\"\n [tuiHintDescribe]=\"describeId\"\n [tuiHintDirection]=\"direction\"\n [tuiHintHideDelay]=\"hideDelay\"\n [tuiHintShowDelay]=\"showDelay\"\n>\n <tui-icon\n *polymorpheusOutlet=\"icon as src\"\n class=\"t-icon\"\n [icon]=\"src\"\n />\n</span>\n", styles: [":host{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;inline-size:1.5rem;block-size:1.5rem;vertical-align:middle;font-size:0;line-height:0;pointer-events:auto;cursor:pointer;color:var(--tui-text-primary)}:host[data-appearance=error]{color:var(--tui-text-negative)}.t-tooltip-icon{display:inline-block;inline-size:100%;block-size:100%}.t-icon{border:.25rem solid transparent}\n"] }]
43
+ }, template: "<span\n #driver=\"tuiHintHover\"\n automation-id=\"tui-tooltip__icon\"\n tuiAppearance=\"icon\"\n class=\"t-tooltip-icon\"\n [tuiAppearanceState]=\"(driver | async) ? 'hover' : null\"\n [tuiHint]=\"content\"\n [tuiHintAppearance]=\"computedAppearance\"\n [tuiHintContext]=\"context\"\n [tuiHintDescribe]=\"describeId\"\n [tuiHintDirection]=\"direction\"\n [tuiHintHideDelay]=\"hideDelay\"\n [tuiHintShowDelay]=\"showDelay\"\n>\n <tui-icon\n *polymorpheusOutlet=\"icon as src\"\n class=\"t-icon\"\n [icon]=\"src\"\n />\n</span>\n", styles: [":host{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;inline-size:1.5rem;block-size:1.5rem;vertical-align:middle;font-size:0;line-height:0;pointer-events:auto;cursor:pointer;color:var(--tui-text-primary)}:host[data-appearance=error]{color:var(--tui-text-negative)}.t-tooltip-icon{display:inline-block;inline-size:100%;block-size:100%}.t-icon{border-width:.25rem}\n"] }]
45
44
  }], propDecorators: { driver$: [{
46
45
  type: ViewChild,
47
46
  args: [TuiHintHover]
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-legacy-components-tooltip.mjs","sources":["../../../projects/legacy/components/tooltip/tooltip.component.ts","../../../projects/legacy/components/tooltip/tooltip.template.html","../../../projects/legacy/components/tooltip/tooltip.module.ts","../../../projects/legacy/components/tooltip/taiga-ui-legacy-components-tooltip.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n ViewChild,\n} from '@angular/core';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {TuiHintHover, TuiHintOptionsDirective} from '@taiga-ui/core/directives/hint';\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiTooltip}\n * https://taiga-ui.dev/components/tooltip\n */\n@Component({\n standalone: false,\n selector: 'tui-tooltip',\n templateUrl: './tooltip.template.html',\n styleUrls: ['./tooltip.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: ['content', 'direction', 'appearance', 'showDelay', 'hideDelay'],\n host: {\n ngSkipHydration: 'true',\n '[attr.data-appearance]': 'computedAppearance',\n '(mousedown)': 'stopOnMobile($event)',\n },\n})\nexport class TuiTooltipComponent<C = any> extends TuiHintOptionsDirective {\n private readonly isMobile = inject(TUI_IS_MOBILE);\n\n @ViewChild(TuiHintHover)\n protected readonly driver$?: TuiHintHover;\n\n @Input()\n public describeId = '';\n\n @Input()\n public context?: C;\n\n protected get computedAppearance(): string {\n return this.appearance || '';\n }\n\n protected stopOnMobile(event: MouseEvent): void {\n if (this.isMobile) {\n event.preventDefault();\n event.stopPropagation();\n }\n\n this.driver$?.toggle();\n }\n}\n","<span\n #driver=\"tuiHintHover\"\n automation-id=\"tui-tooltip__icon\"\n tuiAppearance=\"icon\"\n class=\"t-tooltip-icon\"\n [tuiAppearanceState]=\"(driver | async) ? 'hover' : null\"\n [tuiHint]=\"content\"\n [tuiHintAppearance]=\"computedAppearance\"\n [tuiHintContext]=\"context\"\n [tuiHintDescribe]=\"describeId\"\n [tuiHintDirection]=\"direction\"\n [tuiHintHideDelay]=\"hideDelay\"\n [tuiHintShowDelay]=\"showDelay\"\n>\n <tui-icon\n *polymorpheusOutlet=\"icon as src\"\n class=\"t-icon\"\n [icon]=\"src\"\n />\n</span>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {TuiHint} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nimport {TuiTooltipComponent} from './tooltip.component';\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiTooltip}\n * https://taiga-ui.dev/components/tooltip\n */\n@NgModule({\n imports: [CommonModule, TuiIcon, PolymorpheusOutlet, TuiAppearance, ...TuiHint],\n declarations: [TuiTooltipComponent],\n exports: [TuiTooltipComponent],\n})\nexport class TuiTooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i4","i1"],"mappings":";;;;;;;;;;;;;;AAUA;;;AAGG;AACH,MAaa,mBAA6B,SAAQ,uBAAuB,CAAA;AAbzE,IAAA,WAAA,GAAA;;AAcqB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;QAM3C,IAAU,CAAA,UAAA,GAAG,EAAE,CAAC;AAiB1B,KAAA;AAZG,IAAA,IAAc,kBAAkB,GAAA;AAC5B,QAAA,OAAO,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC;KAChC;AAES,IAAA,YAAY,CAAC,KAAiB,EAAA;QACpC,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,eAAe,EAAE,CAAC;AAC3B,SAAA;AAED,QAAA,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;KAC1B;+GAvBQ,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAnB,mBAAmB,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,SAAA,EAAA,WAAA,EAAA,UAAA,EAAA,YAAA,EAAA,SAAA,EAAA,WAAA,EAAA,SAAA,EAAA,WAAA,EAAA,UAAA,EAAA,YAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,WAAA,EAAA,sBAAA,EAAA,EAAA,UAAA,EAAA,EAAA,sBAAA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gHAEpB,gBAAgB,EAAA,OAAA,EAAA,CAJf,YAAY,EAAE,OAAO,EAAAA,IAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAItB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAL5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;oBAC/E,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;AACjC,iBAAA,CAAA;;;ACjBD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-legacy-components-tooltip.mjs","sources":["../../../projects/legacy/components/tooltip/tooltip.component.ts","../../../projects/legacy/components/tooltip/tooltip.template.html","../../../projects/legacy/components/tooltip/tooltip.module.ts","../../../projects/legacy/components/tooltip/taiga-ui-legacy-components-tooltip.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n ViewChild,\n} from '@angular/core';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {TuiHintHover, TuiHintOptionsDirective} from '@taiga-ui/core/directives/hint';\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiTooltip}\n * https://taiga-ui.dev/components/tooltip\n */\n@Component({\n standalone: false,\n selector: 'tui-tooltip',\n templateUrl: './tooltip.template.html',\n styleUrls: ['./tooltip.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: ['content', 'direction', 'appearance', 'showDelay', 'hideDelay'],\n host: {\n '[attr.data-appearance]': 'computedAppearance',\n '(mousedown)': 'stopOnMobile($event)',\n },\n})\nexport class TuiTooltipComponent<C = any> extends TuiHintOptionsDirective {\n private readonly isMobile = inject(TUI_IS_MOBILE);\n\n @ViewChild(TuiHintHover)\n protected readonly driver$?: TuiHintHover;\n\n @Input()\n public describeId = '';\n\n @Input()\n public context?: C;\n\n protected get computedAppearance(): string {\n return this.appearance || '';\n }\n\n protected stopOnMobile(event: MouseEvent): void {\n if (this.isMobile) {\n event.preventDefault();\n event.stopPropagation();\n }\n\n this.driver$?.toggle();\n }\n}\n","<span\n #driver=\"tuiHintHover\"\n automation-id=\"tui-tooltip__icon\"\n tuiAppearance=\"icon\"\n class=\"t-tooltip-icon\"\n [tuiAppearanceState]=\"(driver | async) ? 'hover' : null\"\n [tuiHint]=\"content\"\n [tuiHintAppearance]=\"computedAppearance\"\n [tuiHintContext]=\"context\"\n [tuiHintDescribe]=\"describeId\"\n [tuiHintDirection]=\"direction\"\n [tuiHintHideDelay]=\"hideDelay\"\n [tuiHintShowDelay]=\"showDelay\"\n>\n <tui-icon\n *polymorpheusOutlet=\"icon as src\"\n class=\"t-icon\"\n [icon]=\"src\"\n />\n</span>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {TuiHint} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nimport {TuiTooltipComponent} from './tooltip.component';\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiTooltip}\n * https://taiga-ui.dev/components/tooltip\n */\n@NgModule({\n imports: [CommonModule, TuiIcon, PolymorpheusOutlet, TuiAppearance, ...TuiHint],\n declarations: [TuiTooltipComponent],\n exports: [TuiTooltipComponent],\n})\nexport class TuiTooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i4","i1"],"mappings":";;;;;;;;;;;;;;AAUA;;;AAGG;AACH,MAYa,mBAA6B,SAAQ,uBAAuB,CAAA;AAZzE,IAAA,WAAA,GAAA;;AAaqB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;QAM3C,IAAU,CAAA,UAAA,GAAG,EAAE,CAA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
4
4
  import { from, EMPTY, shareReplay, map, of } from 'rxjs';
5
5
  import { WA_NAVIGATOR, WA_WINDOW } from '@ng-web-apis/common';
6
- import { tuiIsApple } from '@taiga-ui/legacy/utils';
6
+ import { isApple } from '@ng-web-apis/platform';
7
7
  import { TuiMonthPipe } from '@taiga-ui/core/pipes/month';
8
8
 
9
9
  /**
@@ -287,7 +287,7 @@ const TUI_ICON_STARTS = tuiCreateToken({});
287
287
  * @deprecated: drop in v5.0
288
288
  * Apple(safari/webkit) detection
289
289
  */
290
- const TUI_IS_APPLE = tuiCreateTokenFromFactory(() => tuiIsApple(inject(WA_NAVIGATOR)));
290
+ const TUI_IS_APPLE = tuiCreateTokenFromFactory(() => isApple(inject(WA_NAVIGATOR)));
291
291
 
292
292
  /**
293
293
  * @deprecated: drop in v5.0
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-legacy-tokens.mjs","sources":["../../../projects/legacy/tokens/countries-masks.ts","../../../projects/legacy/tokens/focusable-item-accessor.ts","../../../projects/legacy/tokens/fonts-ready.ts","../../../projects/legacy/tokens/icons.ts","../../../projects/legacy/tokens/is-apple.ts","../../../projects/legacy/tokens/is-chromium.ts","../../../projects/legacy/tokens/is-firefox.ts","../../../projects/legacy/tokens/is-stackblitz.ts","../../../projects/legacy/tokens/month-formatter.ts","../../../projects/legacy/tokens/sanitizer.ts","../../../projects/legacy/tokens/textfield-appearance.ts","../../../projects/legacy/tokens/textfield-host.ts","../../../projects/legacy/tokens/touch-supported.ts","../../../projects/legacy/tokens/value-accessor.ts","../../../projects/legacy/tokens/taiga-ui-legacy-tokens.ts"],"sourcesContent":["import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {TuiCountryIsoCode} from '@taiga-ui/i18n/types';\n\n/**\n * @deprecated: drop in v5.0\n * Use new version of {@link https://taiga-ui.dev/components/input-phone-international InputPhoneInternational}.\n * The new version is based on Google Open Source solution {@link https://github.com/google/libphonenumber libphonenumber}.\n * This token (and all other hard-coded values) and related utils are no more required.\n */\nexport const TUI_COUNTRIES_MASKS = tuiCreateToken<Record<TuiCountryIsoCode, string>>({\n AD: '+376###-###',\n AE: '+971-##-###-####',\n AF: '+93##-###-####',\n AG: '+1(268) ###-####',\n AI: '+1(264) ###-####',\n AL: '+355(###) ###-###',\n AM: '+374##-###-###',\n AO: '+244(###) ###-###',\n AR: '+54(###) ####-####',\n AT: '+43(###) ###-####',\n AU: '+61#-####-####',\n AW: '+297###-####',\n AZ: '+994##-###-##-##',\n BA: '+387 ###-####-##',\n BB: '+1(246) ###-####',\n BD: '+880##-###-###',\n BE: '+32(###) ###-###',\n BF: '+226##-##-####',\n BG: '+359(###) ###-###',\n BH: '+973####-####',\n BI: '+257##-##-####',\n BJ: '+229##-##-####',\n BL: '+590 ## ## ## ## ##',\n BM: '+1(441) ###-####',\n BN: '+673###-####',\n BO: '+591#-###-####',\n BQ: '+599-###-####',\n BR: '+55(##) ####-####',\n BS: '+1(242) ###-####',\n BT: '+975#-###-###',\n BW: '+267##-###-###',\n BY: '+375(##) ###-##-##',\n BZ: '+501###-####',\n CA: '+1(###) ###-####',\n CD: '+243(###) ###-###',\n CF: '+236-##-##-####',\n CG: '+242##-###-####',\n CH: '+41##-###-####',\n CI: '+225##-##-###-###',\n CL: '+56#-####-####',\n CM: '+237#####-####',\n CN: '+86(###) ####-####',\n CO: '+57(###) ###-####',\n CR: '+506####-####',\n CU: '+53#-###-####',\n CV: '+238(###) ##-##',\n CW: '+5999-###-####',\n CY: '+357##-###-###',\n CZ: '+420(###) ###-###',\n DE: '+49(###) ###-###-##',\n DJ: '+253##-##-##-##',\n DK: '+45##-##-##-##',\n DM: '+1(767) ###-####',\n DO: '+1(###) ###-####',\n DZ: '+213##-###-####',\n EC: '+593##-###-####',\n EE: '+372####-####',\n EG: '+20(###) ###-####',\n ER: '+291#-###-###',\n ES: '+34(###) ###-###',\n ET: '+251##-###-####',\n FI: '+358(###) ###-##-##',\n FJ: '+679##-#####',\n FK: '+500#####',\n FM: '+691###-####',\n FR: '+33 ## ## ## ## ##',\n GA: '+241##-##-##-##',\n GB: '+44##-####-####',\n GD: '+1(473) ###-####',\n GE: '+995(###) ###-###',\n GF: '+594 ## ## ## ## ##',\n GH: '+233(###) ###-###',\n GI: '+350###-#####',\n GL: '+299##-##-##',\n GM: '+220(###) ##-##',\n GN: '+224##-###-###',\n GP: '+590 ## ## ## ## ##',\n GQ: '+240##-###-####',\n GR: '+30(###) ###-####',\n GT: '+502#-###-####',\n GW: '+245#-######',\n GY: '+592###-####',\n HK: '+852####-####',\n HN: '+504####-####',\n HR: '+385##-###-####',\n HT: '+509##-##-####',\n HU: '+36(###) ###-###',\n ID: '+62(###) ###-##-###',\n IE: '+353(###) ###-###',\n IL: '+972##-###-####',\n IN: '+91(####) ###-###',\n IQ: '+964(###) ###-####',\n IR: '+98(###) ###-####',\n IS: '+354###-####',\n IT: '+39(###) ####-###',\n JM: '+1(876) ###-####',\n JO: '+962#-####-####',\n JP: '+81-##-####-####',\n KE: '+254###-######',\n KG: '+996(###) ###-###',\n KH: '+855##-###-###',\n KM: '+269##-#####',\n KN: '+1(869) ###-####',\n KP: '+850####-#############',\n KR: '+82##-###-####',\n KW: '+965####-####',\n KY: '+1(345) ###-####',\n KZ: '+7(###) ###-##-##',\n LA: '+856##-##-###-###',\n LB: '+961##-###-###',\n LC: '+1(758) ###-####',\n LI: '+423(###) ###-####',\n LK: '+94##-###-####',\n LR: '+231##-###-###',\n LS: '+266#-###-####',\n LT: '+370(###) ##-###',\n LU: '+352(###) ###-###',\n LV: '+371##-###-###',\n LY: '+218##-###-####',\n MA: '+212##-####-###',\n MC: '+377###-###-###',\n MD: '+373####-####',\n ME: '+382##-###-###',\n MF: '+590 ## ## ## ## ##',\n MG: '+261##-##-#####',\n MK: '+389##-###-###',\n ML: '+223##-##-####',\n MM: '+95##-###-###',\n MN: '+976##-##-####',\n MO: '+853####-####',\n MQ: '+596 ## ## ## ## ##',\n MR: '+222##-##-####',\n MS: '+1(664) ###-####',\n MT: '+356####-####',\n MU: '+230####-####',\n MV: '+960###-####',\n MW: '+265#-####-####',\n MX: '+52(###) ###-####',\n MY: '+60(###) ###-###',\n MZ: '+258##-###-###',\n NA: '+264##-###-####',\n NC: '+687 ### ###',\n NE: '+227##-##-####',\n NG: '+234(###) ###-####',\n NI: '+505####-####',\n NL: '+31##-###-####',\n NO: '+47(###) ##-###',\n NP: '+977##-###-###',\n NZ: '+64(###) ###-####',\n OM: '+968##-###-###',\n PA: '+507###-####',\n PE: '+51(###) ###-###',\n PF: '+689 ## ## ## ##',\n PG: '+675(###) ##-###',\n PH: '+63(###) ###-####',\n PK: '+92(###) ###-####',\n PL: '+48(###) ###-###',\n PT: '+351##-###-####',\n PW: '+680###-####',\n PY: '+595(###) ###-###',\n QA: '+974####-####',\n RE: '+262 ## ## ## ## ##',\n RO: '+40##-###-####',\n RS: '+381##-###-####',\n RU: '+7### ###-##-##',\n RW: '+250(###) ###-###',\n SA: '+966#-####-####',\n SB: '+677###-####',\n SC: '+248#-###-###',\n SD: '+249##-###-####',\n SE: '+46##-###-####',\n SG: '+65####-####',\n SH: '+290####',\n SI: '+386##-###-###',\n SK: '+421(###) ###-###',\n SL: '+232##-######',\n SM: '+378####-######',\n SN: '+221##-###-####',\n SO: '+252##-###-###',\n SR: '+597###-####',\n ST: '+239##-#####',\n SV: '+503##-##-####',\n SX: '+1(721) ###-####',\n SY: '+963##-####-###',\n SZ: '+268##-##-####',\n TC: '+1(649) ###-####',\n TD: '+235##-##-##-##',\n TG: '+228##-###-###',\n TH: '+66##-###-####',\n TJ: '+992##-###-####',\n TL: '+670###-#####',\n TM: '+993#-###-####',\n TN: '+216##-###-###',\n TO: '+676#####',\n TR: '+90(###) ###-####',\n TT: '+1(868) ###-####',\n TW: '+886#-####-####',\n TZ: '+255##-###-####',\n UA: '+380(##) ###-##-##',\n UG: '+256(###) ###-###',\n US: '+1(###) ###-####',\n UY: '+598#-###-##-##',\n UZ: '+998##-###-####',\n VC: '+1(784) ###-####',\n VE: '+58(###) ###-####',\n VG: '+1(284)###-####',\n VN: '+84(###) ####-###',\n VU: '+678##-#####',\n WS: '+685##-####',\n XK: '+383##-###-###',\n YE: '+967###-###-###',\n YT: '+262 ## ## ## ## ##',\n ZA: '+27##-###-####',\n ZM: '+260##-###-####',\n ZW: '+263#-######',\n VA: '+39 #### ###-####',\n WF: '+681 ## ##-##',\n VI: '+1(340) ###-####',\n JE: '+44(####) ######',\n AC: '+247###-####',\n TV: '+686###-####',\n TK: '+690###-####',\n TA: '+290###-####',\n SS: '+211### ###-###',\n SJ: '+47 ## ##-##-##',\n PS: '+970 #### ###-###',\n PR: '+1(###) ###-####',\n PM: '+508 ### ##-##-##',\n NU: '+683 ###-####',\n NR: '+674 ###-####',\n NF: '+672##-####',\n MP: '+1(670) ###-####',\n MH: '+692 ###-####',\n KI: '+686 ####-####',\n IO: '+246 ### ####',\n IM: '+44(####) ######',\n GU: '+1(###) ###-###',\n GG: '+44(###) ###-####',\n FO: '+298 ######',\n EH: '+212 #### #####',\n CX: '+61 # ####-####',\n CK: '+682 ## ###',\n CC: '+61 # ####-####',\n AX: '+358 ## ###-####',\n AS: '+1(###) ###-####',\n});\n","import type {Provider, Type} from '@angular/core';\nimport {tuiCreateToken, tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {Observable} from 'rxjs';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport interface TuiNativeFocusableElement extends Element, HTMLOrSVGElement {}\n\n/**\n * @deprecated: drop in v5.0\n * Public interface for any focusable component or directive\n */\nexport interface TuiFocusableElementAccessor {\n focused: boolean;\n readonly focusedChange: Observable<boolean>;\n nativeFocusableElement: TuiNativeFocusableElement | null;\n}\n\n/**\n * @deprecated: drop in v5.0\n * A component that can be focused\n */\nexport const TUI_FOCUSABLE_ITEM_ACCESSOR = tuiCreateToken<TuiFocusableElementAccessor>();\n\n/**\n * @deprecated: drop in v5.0\n */\nexport function tuiAsFocusableItemAccessor(\n accessor: Type<TuiFocusableElementAccessor>,\n): Provider {\n return tuiProvide(TUI_FOCUSABLE_ITEM_ACCESSOR, accessor);\n}\n","import {DOCUMENT} from '@angular/common';\nimport {inject} from '@angular/core';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {Observable} from 'rxjs';\nimport {EMPTY, from, shareReplay} from 'rxjs';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const TUI_FONTS_READY = tuiCreateTokenFromFactory<Observable<unknown>>(() =>\n from((inject(DOCUMENT) as any).fonts?.ready || EMPTY).pipe(\n shareReplay({bufferSize: 1, refCount: false}),\n ),\n);\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n * A key/value dictionary of icon names and src to be defined with TuiSvgService\n */\nexport const TUI_ICON_STARTS = tuiCreateToken<Record<string, string>>({});\n","import {inject} from '@angular/core';\nimport {WA_NAVIGATOR} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiIsApple} from '@taiga-ui/legacy/utils';\n\n/**\n * @deprecated: drop in v5.0\n * Apple(safari/webkit) detection\n */\nexport const TUI_IS_APPLE = tuiCreateTokenFromFactory(() =>\n tuiIsApple(inject(WA_NAVIGATOR)),\n);\n","import {inject} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n * Chromium browser engine detection\n */\nexport const TUI_IS_CHROMIUM = tuiCreateTokenFromFactory(\n () => !!(inject(WA_WINDOW) as Window & {chrome: unknown}).chrome,\n);\n","import {inject} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n * Firefox browser engine detection\n */\nexport const TUI_IS_FIREFOX = tuiCreateTokenFromFactory(\n () =>\n (inject(WA_WINDOW) as Window & {mozCancelFullScreen: unknown})\n ?.mozCancelFullScreen !== undefined,\n);\n","import {inject} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const TUI_IS_STACKBLITZ = tuiCreateTokenFromFactory(() =>\n inject(WA_WINDOW).location.host.endsWith('stackblitz.io'),\n);\n","import type {FactoryProvider} from '@angular/core';\nimport type {TuiMonth} from '@taiga-ui/cdk/date-time';\nimport type {TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiMonthPipe} from '@taiga-ui/core/pipes/month';\nimport type {Observable} from 'rxjs';\nimport {map, of} from 'rxjs';\n\n/**\n * @deprecated: drop in v5.0\n * A function to get localized formatted month\n */\nexport const TUI_MONTH_FORMATTER =\n tuiCreateToken<TuiHandler<TuiMonth | null, Observable<string>>>();\n\nexport const TUI_MONTH_FORMATTER_PROVIDER: FactoryProvider = {\n provide: TUI_MONTH_FORMATTER,\n deps: [TuiMonthPipe],\n useFactory:\n (pipe: TuiMonthPipe): TuiHandler<TuiMonth | null, Observable<string>> =>\n (month) =>\n month\n ? pipe\n .transform(month)\n .pipe(map((formatted) => `${formatted} ${month.formattedYear}`))\n : of(''),\n};\n","import type {Sanitizer} from '@angular/core';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n * A custom Sanitizer to sanitize source before inlining\n */\nexport const TUI_SANITIZER = tuiCreateToken<Sanitizer>();\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n * Appearance for inputs\n * use {@link TUI_TEXTFIELD_APPEARANCE_DIRECTIVE} instead\n */\nexport const TUI_TEXTFIELD_APPEARANCE = tuiCreateToken<string>('textfield');\n","import type {Provider, Type} from '@angular/core';\nimport {tuiCreateToken, tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport interface TuiTextfieldHost {\n readonly disabled: boolean;\n readonly focusable: boolean;\n readonly inputMode:\n | 'decimal'\n | 'email'\n | 'none'\n | 'numeric'\n | 'search'\n | 'tel'\n | 'text'\n | 'url';\n readonly invalid: boolean;\n onValueChange(value: string): void;\n process(input: HTMLInputElement): void;\n readonly readOnly: boolean;\n readonly value: string;\n}\n\n/**\n * @deprecated: drop in v5.0\n * An interface to communicate with textfield based controls\n */\nexport const TUI_TEXTFIELD_HOST = tuiCreateToken<TuiTextfieldHost>();\n\n/**\n * @deprecated: drop in v5.0\n */\nexport function tuiAsTextfieldHost(host: Type<TuiTextfieldHost>): Provider {\n return tuiProvide(TUI_TEXTFIELD_HOST, host);\n}\n","import {inject} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const TUI_TOUCH_SUPPORTED = tuiCreateTokenFromFactory(\n () => inject(WA_WINDOW).matchMedia('(any-pointer: coarse)').matches,\n);\n","import type {ControlValueAccessor} from '@angular/forms';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n * Buffer token to pass NG_VALUE_ACCESSOR to a different Injector\n */\nexport const TUI_VALUE_ACCESSOR = tuiCreateToken<ControlValueAccessor>();\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAGA;;;;;AAKG;AACI,MAAM,mBAAmB,GAAG,cAAc,CAAoC;AACjF,IAAA,EAAE,EAAE,aAAa;AACjB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,EAAE,EAAE,gBAAgB;AACpB,IAAA,EAAE,EAAE,kBA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CAAC,eAAe,CAAC;;ACA7D;;;AAGG;AACU,MAAA,mBAAmB,GAC5B,cAAc,GAAoD;AAEzD,MAAA,4BAA4B,GAAoB;AACzD,IAAA,OAAO,EAAE,mBAAmB;IAC5B,IAAI,EAAE,CAAC,YAAY,CAAC;IACpB,UAAU,EACN,CAAC,IAAkB,KACnB,CAAC,KAAK,KACF,KAAK;AACD,UAAE,IAAI;aACC,SAAS,CAAC,KAAK,CAAC;AAChB,aAAA,IAAI,CAAC,GAAG,CAAC,CAAC,SAAS,KAAK,CAAG,EAAA,SAAS,IAAI,KAAK,CAAC,aAAa,CAAA,CAAE,CAAC,CAAC;AACtE,UAAE,EAAE,CAAC,EAAE,CAAC;;;ACtBxB;;;AAGG;AACU,MAAA,aAAa,GAAG,cAAc;;ACL3C;;;;AAIG;MACU,wBAAwB,GAAG,cAAc,CAAS,WAAW;;ACkB1E;;;AAGG;AACU,MAAA,kBAAkB,GAAG,cAAc,GAAqB;AAErE;;AAEG;AACG,SAAU,kBAAkB,CAAC,IAA4B,EAAA;AAC3D,IAAA,OAAO,UAAU,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;AAChD;;AChCA;;AAEG;MACU,mBAAmB,GAAG,yBAAyB,CACxD,MAAM,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC,OAAO;;ACLvE;;;AAGG;AACU,MAAA,kBAAkB,GAAG,cAAc;;ACPhD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-legacy-tokens.mjs","sources":["../../../projects/legacy/tokens/countries-masks.ts","../../../projects/legacy/tokens/focusable-item-accessor.ts","../../../projects/legacy/tokens/fonts-ready.ts","../../../projects/legacy/tokens/icons.ts","../../../projects/legacy/tokens/is-apple.ts","../../../projects/legacy/tokens/is-chromium.ts","../../../projects/legacy/tokens/is-firefox.ts","../../../projects/legacy/tokens/is-stackblitz.ts","../../../projects/legacy/tokens/month-formatter.ts","../../../projects/legacy/tokens/sanitizer.ts","../../../projects/legacy/tokens/textfield-appearance.ts","../../../projects/legacy/tokens/textfield-host.ts","../../../projects/legacy/tokens/touch-supported.ts","../../../projects/legacy/tokens/value-accessor.ts","../../../projects/legacy/tokens/taiga-ui-legacy-tokens.ts"],"sourcesContent":["import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {TuiCountryIsoCode} from '@taiga-ui/i18n/types';\n\n/**\n * @deprecated: drop in v5.0\n * Use new version of {@link https://taiga-ui.dev/components/input-phone-international InputPhoneInternational}.\n * The new version is based on Google Open Source solution {@link https://github.com/google/libphonenumber libphonenumber}.\n * This token (and all other hard-coded values) and related utils are no more required.\n */\nexport const TUI_COUNTRIES_MASKS = tuiCreateToken<Record<TuiCountryIsoCode, string>>({\n AD: '+376###-###',\n AE: '+971-##-###-####',\n AF: '+93##-###-####',\n AG: '+1(268) ###-####',\n AI: '+1(264) ###-####',\n AL: '+355(###) ###-###',\n AM: '+374##-###-###',\n AO: '+244(###) ###-###',\n AR: '+54(###) ####-####',\n AT: '+43(###) ###-####',\n AU: '+61#-####-####',\n AW: '+297###-####',\n AZ: '+994##-###-##-##',\n BA: '+387 ###-####-##',\n BB: '+1(246) ###-####',\n BD: '+880##-###-###',\n BE: '+32(###) ###-###',\n BF: '+226##-##-####',\n BG: '+359(###) ###-###',\n BH: '+973####-####',\n BI: '+257##-##-####',\n BJ: '+229##-##-####',\n BL: '+590 ## ## ## ## ##',\n BM: '+1(441) ###-####',\n BN: '+673###-####',\n BO: '+591#-###-####',\n BQ: '+599-###-####',\n BR: '+55(##) ####-####',\n BS: '+1(242) ###-####',\n BT: '+975#-###-###',\n BW: '+267##-###-###',\n BY: '+375(##) ###-##-##',\n BZ: '+501###-####',\n CA: '+1(###) ###-####',\n CD: '+243(###) ###-###',\n CF: '+236-##-##-####',\n CG: '+242##-###-####',\n CH: '+41##-###-####',\n CI: '+225##-##-###-###',\n CL: '+56#-####-####',\n CM: '+237#####-####',\n CN: '+86(###) ####-####',\n CO: '+57(###) ###-####',\n CR: '+506####-####',\n CU: '+53#-###-####',\n CV: '+238(###) ##-##',\n CW: '+5999-###-####',\n CY: '+357##-###-###',\n CZ: '+420(###) ###-###',\n DE: '+49(###) ###-###-##',\n DJ: '+253##-##-##-##',\n DK: '+45##-##-##-##',\n DM: '+1(767) ###-####',\n DO: '+1(###) ###-####',\n DZ: '+213##-###-####',\n EC: '+593##-###-####',\n EE: '+372####-####',\n EG: '+20(###) ###-####',\n ER: '+291#-###-###',\n ES: '+34(###) ###-###',\n ET: '+251##-###-####',\n FI: '+358(###) ###-##-##',\n FJ: '+679##-#####',\n FK: '+500#####',\n FM: '+691###-####',\n FR: '+33 ## ## ## ## ##',\n GA: '+241##-##-##-##',\n GB: '+44##-####-####',\n GD: '+1(473) ###-####',\n GE: '+995(###) ###-###',\n GF: '+594 ## ## ## ## ##',\n GH: '+233(###) ###-###',\n GI: '+350###-#####',\n GL: '+299##-##-##',\n GM: '+220(###) ##-##',\n GN: '+224##-###-###',\n GP: '+590 ## ## ## ## ##',\n GQ: '+240##-###-####',\n GR: '+30(###) ###-####',\n GT: '+502#-###-####',\n GW: '+245#-######',\n GY: '+592###-####',\n HK: '+852####-####',\n HN: '+504####-####',\n HR: '+385##-###-####',\n HT: '+509##-##-####',\n HU: '+36(###) ###-###',\n ID: '+62(###) ###-##-###',\n IE: '+353(###) ###-###',\n IL: '+972##-###-####',\n IN: '+91(####) ###-###',\n IQ: '+964(###) ###-####',\n IR: '+98(###) ###-####',\n IS: '+354###-####',\n IT: '+39(###) ####-###',\n JM: '+1(876) ###-####',\n JO: '+962#-####-####',\n JP: '+81-##-####-####',\n KE: '+254###-######',\n KG: '+996(###) ###-###',\n KH: '+855##-###-###',\n KM: '+269##-#####',\n KN: '+1(869) ###-####',\n KP: '+850####-#############',\n KR: '+82##-###-####',\n KW: '+965####-####',\n KY: '+1(345) ###-####',\n KZ: '+7(###) ###-##-##',\n LA: '+856##-##-###-###',\n LB: '+961##-###-###',\n LC: '+1(758) ###-####',\n LI: '+423(###) ###-####',\n LK: '+94##-###-####',\n LR: '+231##-###-###',\n LS: '+266#-###-####',\n LT: '+370(###) ##-###',\n LU: '+352(###) ###-###',\n LV: '+371##-###-###',\n LY: '+218##-###-####',\n MA: '+212##-####-###',\n MC: '+377###-###-###',\n MD: '+373####-####',\n ME: '+382##-###-###',\n MF: '+590 ## ## ## ## ##',\n MG: '+261##-##-#####',\n MK: '+389##-###-###',\n ML: '+223##-##-####',\n MM: '+95##-###-###',\n MN: '+976##-##-####',\n MO: '+853####-####',\n MQ: '+596 ## ## ## ## ##',\n MR: '+222##-##-####',\n MS: '+1(664) ###-####',\n MT: '+356####-####',\n MU: '+230####-####',\n MV: '+960###-####',\n MW: '+265#-####-####',\n MX: '+52(###) ###-####',\n MY: '+60(###) ###-###',\n MZ: '+258##-###-###',\n NA: '+264##-###-####',\n NC: '+687 ### ###',\n NE: '+227##-##-####',\n NG: '+234(###) ###-####',\n NI: '+505####-####',\n NL: '+31##-###-####',\n NO: '+47(###) ##-###',\n NP: '+977##-###-###',\n NZ: '+64(###) ###-####',\n OM: '+968##-###-###',\n PA: '+507###-####',\n PE: '+51(###) ###-###',\n PF: '+689 ## ## ## ##',\n PG: '+675(###) ##-###',\n PH: '+63(###) ###-####',\n PK: '+92(###) ###-####',\n PL: '+48(###) ###-###',\n PT: '+351##-###-####',\n PW: '+680###-####',\n PY: '+595(###) ###-###',\n QA: '+974####-####',\n RE: '+262 ## ## ## ## ##',\n RO: '+40##-###-####',\n RS: '+381##-###-####',\n RU: '+7### ###-##-##',\n RW: '+250(###) ###-###',\n SA: '+966#-####-####',\n SB: '+677###-####',\n SC: '+248#-###-###',\n SD: '+249##-###-####',\n SE: '+46##-###-####',\n SG: '+65####-####',\n SH: '+290####',\n SI: '+386##-###-###',\n SK: '+421(###) ###-###',\n SL: '+232##-######',\n SM: '+378####-######',\n SN: '+221##-###-####',\n SO: '+252##-###-###',\n SR: '+597###-####',\n ST: '+239##-#####',\n SV: '+503##-##-####',\n SX: '+1(721) ###-####',\n SY: '+963##-####-###',\n SZ: '+268##-##-####',\n TC: '+1(649) ###-####',\n TD: '+235##-##-##-##',\n TG: '+228##-###-###',\n TH: '+66##-###-####',\n TJ: '+992##-###-####',\n TL: '+670###-#####',\n TM: '+993#-###-####',\n TN: '+216##-###-###',\n TO: '+676#####',\n TR: '+90(###) ###-####',\n TT: '+1(868) ###-####',\n TW: '+886#-####-####',\n TZ: '+255##-###-####',\n UA: '+380(##) ###-##-##',\n UG: '+256(###) ###-###',\n US: '+1(###) ###-####',\n UY: '+598#-###-##-##',\n UZ: '+998##-###-####',\n VC: '+1(784) ###-####',\n VE: '+58(###) ###-####',\n VG: '+1(284)###-####',\n VN: '+84(###) ####-###',\n VU: '+678##-#####',\n WS: '+685##-####',\n XK: '+383##-###-###',\n YE: '+967###-###-###',\n YT: '+262 ## ## ## ## ##',\n ZA: '+27##-###-####',\n ZM: '+260##-###-####',\n ZW: '+263#-######',\n VA: '+39 #### ###-####',\n WF: '+681 ## ##-##',\n VI: '+1(340) ###-####',\n JE: '+44(####) ######',\n AC: '+247###-####',\n TV: '+686###-####',\n TK: '+690###-####',\n TA: '+290###-####',\n SS: '+211### ###-###',\n SJ: '+47 ## ##-##-##',\n PS: '+970 #### ###-###',\n PR: '+1(###) ###-####',\n PM: '+508 ### ##-##-##',\n NU: '+683 ###-####',\n NR: '+674 ###-####',\n NF: '+672##-####',\n MP: '+1(670) ###-####',\n MH: '+692 ###-####',\n KI: '+686 ####-####',\n IO: '+246 ### ####',\n IM: '+44(####) ######',\n GU: '+1(###) ###-###',\n GG: '+44(###) ###-####',\n FO: '+298 ######',\n EH: '+212 #### #####',\n CX: '+61 # ####-####',\n CK: '+682 ## ###',\n CC: '+61 # ####-####',\n AX: '+358 ## ###-####',\n AS: '+1(###) ###-####',\n});\n","import type {Provider, Type} from '@angular/core';\nimport {tuiCreateToken, tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {Observable} from 'rxjs';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport interface TuiNativeFocusableElement extends Element, HTMLOrSVGElement {}\n\n/**\n * @deprecated: drop in v5.0\n * Public interface for any focusable component or directive\n */\nexport interface TuiFocusableElementAccessor {\n focused: boolean;\n readonly focusedChange: Observable<boolean>;\n nativeFocusableElement: TuiNativeFocusableElement | null;\n}\n\n/**\n * @deprecated: drop in v5.0\n * A component that can be focused\n */\nexport const TUI_FOCUSABLE_ITEM_ACCESSOR = tuiCreateToken<TuiFocusableElementAccessor>();\n\n/**\n * @deprecated: drop in v5.0\n */\nexport function tuiAsFocusableItemAccessor(\n accessor: Type<TuiFocusableElementAccessor>,\n): Provider {\n return tuiProvide(TUI_FOCUSABLE_ITEM_ACCESSOR, accessor);\n}\n","import {DOCUMENT} from '@angular/common';\nimport {inject} from '@angular/core';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {Observable} from 'rxjs';\nimport {EMPTY, from, shareReplay} from 'rxjs';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const TUI_FONTS_READY = tuiCreateTokenFromFactory<Observable<unknown>>(() =>\n from((inject(DOCUMENT) as any).fonts?.ready || EMPTY).pipe(\n shareReplay({bufferSize: 1, refCount: false}),\n ),\n);\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n * A key/value dictionary of icon names and src to be defined with TuiSvgService\n */\nexport const TUI_ICON_STARTS = tuiCreateToken<Record<string, string>>({});\n","import {inject} from '@angular/core';\nimport {WA_NAVIGATOR} from '@ng-web-apis/common';\nimport {isApple} from '@ng-web-apis/platform';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n * Apple(safari/webkit) detection\n */\nexport const TUI_IS_APPLE = tuiCreateTokenFromFactory(() =>\n isApple(inject(WA_NAVIGATOR)),\n);\n","import {inject} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n * Chromium browser engine detection\n */\nexport const TUI_IS_CHROMIUM = tuiCreateTokenFromFactory(\n () => !!(inject(WA_WINDOW) as Window & {chrome: unknown}).chrome,\n);\n","import {inject} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n * Firefox browser engine detection\n */\nexport const TUI_IS_FIREFOX = tuiCreateTokenFromFactory(\n () =>\n (inject(WA_WINDOW) as Window & {mozCancelFullScreen: unknown})\n ?.mozCancelFullScreen !== undefined,\n);\n","import {inject} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const TUI_IS_STACKBLITZ = tuiCreateTokenFromFactory(() =>\n inject(WA_WINDOW).location.host.endsWith('stackblitz.io'),\n);\n","import type {FactoryProvider} from '@angular/core';\nimport type {TuiMonth} from '@taiga-ui/cdk/date-time';\nimport type {TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiMonthPipe} from '@taiga-ui/core/pipes/month';\nimport type {Observable} from 'rxjs';\nimport {map, of} from 'rxjs';\n\n/**\n * @deprecated: drop in v5.0\n * A function to get localized formatted month\n */\nexport const TUI_MONTH_FORMATTER =\n tuiCreateToken<TuiHandler<TuiMonth | null, Observable<string>>>();\n\nexport const TUI_MONTH_FORMATTER_PROVIDER: FactoryProvider = {\n provide: TUI_MONTH_FORMATTER,\n deps: [TuiMonthPipe],\n useFactory:\n (pipe: TuiMonthPipe): TuiHandler<TuiMonth | null, Observable<string>> =>\n (month) =>\n month\n ? pipe\n .transform(month)\n .pipe(map((formatted) => `${formatted} ${month.formattedYear}`))\n : of(''),\n};\n","import type {Sanitizer} from '@angular/core';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n * A custom Sanitizer to sanitize source before inlining\n */\nexport const TUI_SANITIZER = tuiCreateToken<Sanitizer>();\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n * Appearance for inputs\n * use {@link TUI_TEXTFIELD_APPEARANCE_DIRECTIVE} instead\n */\nexport const TUI_TEXTFIELD_APPEARANCE = tuiCreateToken<string>('textfield');\n","import type {Provider, Type} from '@angular/core';\nimport {tuiCreateToken, tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport interface TuiTextfieldHost {\n readonly disabled: boolean;\n readonly focusable: boolean;\n readonly inputMode:\n | 'decimal'\n | 'email'\n | 'none'\n | 'numeric'\n | 'search'\n | 'tel'\n | 'text'\n | 'url';\n readonly invalid: boolean;\n onValueChange(value: string): void;\n process(input: HTMLInputElement): void;\n readonly readOnly: boolean;\n readonly value: string;\n}\n\n/**\n * @deprecated: drop in v5.0\n * An interface to communicate with textfield based controls\n */\nexport const TUI_TEXTFIELD_HOST = tuiCreateToken<TuiTextfieldHost>();\n\n/**\n * @deprecated: drop in v5.0\n */\nexport function tuiAsTextfieldHost(host: Type<TuiTextfieldHost>): Provider {\n return tuiProvide(TUI_TEXTFIELD_HOST, host);\n}\n","import {inject} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const TUI_TOUCH_SUPPORTED = tuiCreateTokenFromFactory(\n () => inject(WA_WINDOW).matchMedia('(any-pointer: coarse)').matches,\n);\n","import type {ControlValueAccessor} from '@angular/forms';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated: drop in v5.0\n * Buffer token to pass NG_VALUE_ACCESSOR to a different Injector\n */\nexport const TUI_VALUE_ACCESSOR = tuiCreateToken<ControlValueAccessor>();\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAGA;;;;;AAKG;AACI,MAAM,mBAAmB,GAAG,cAAc,CAAoC;AACjF,IAAA,EAAE,EAAE,aAAa;AACjB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,EAAE,EAAE,gBAAgB;AACpB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,EAAE,EAAE,mBAAmB;AACvB,IAAA,EAAE,EAAE,gBAAgB;AACpB,IAAA,EAAE,EAAE,mBAAmB;AACvB,IAAA,EAAE,EAAE,oBAAoB;AACxB,IAAA,EAAE,EAAE,mBAAmB;AACvB,IAAA,EAAE,EAAE,gBAAgB;AACpB,IAAA,EAAE,EAAE,cAAc;AAClB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,EAAE,EAAE,gBAAgB;AACpB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,EAAE,EAAE,gBAAgB;AACpB,IAAA,EAAE,EAAE,mBAAmB;AACvB,IAAA,EAAE,EAAE,eAAe;AACnB,IAAA,EAAE,EAAE,gBAAgB;AACpB,IAAA,EAAE,EAAE,gBAAgB;AACpB,IAAA,EAAE,EAAE,qBAAqB;AACzB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,EAAE,EAAE,cAAc;AAClB,IAAA,EAAE,EAAE,gBAAgB;AACpB,IAAA,EAAE,EAAE,eAAe;AACnB,IAAA,EAAE,EAAE,mBAAmB;AACvB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,EAAE,EAAE,eAAe;AACnB,IAAA,EA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GG;AACU,MAAA,kBAAkB,GAAG,cAAc;;ACPhD;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { CHAR_PLUS, TUI_VERSION } from '@taiga-ui/cdk/constants';
2
- import { tuiIsIos } from '@taiga-ui/cdk/utils/browser';
2
+ import { isApple } from '@ng-web-apis/platform';
3
3
  import { tuiDropdownOptionsProvider } from '@taiga-ui/core/directives/dropdown';
4
4
 
5
5
  /**
@@ -165,13 +165,10 @@ function tuiIconsPathFactory(staticPath) {
165
165
  };
166
166
  }
167
167
 
168
- const SAFARI_REG_EXP = /^((?!chrome|android).)*safari/i;
169
168
  /**
170
169
  * @deprecated: drop in v5.0
171
170
  */
172
- function tuiIsApple(navigator) {
173
- return tuiIsIos(navigator) || SAFARI_REG_EXP.test(navigator.userAgent.toLowerCase());
174
- }
171
+ const tuiIsApple = isApple;
175
172
 
176
173
  /**
177
174
  * @deprecated: drop in v5.0