@exhaustive-ui/core 3.0.0-alpha.0 → 3.0.0-alpha.1

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 (265) hide show
  1. package/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
  4. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-api.mjs +6 -13
  6. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +485 -683
  8. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
  10. package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
  12. package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
  14. package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
  16. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
  18. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
  20. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-carousel.mjs +379 -451
  22. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
  24. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
  26. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
  28. package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
  30. package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
  32. package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +157 -332
  34. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +187 -210
  36. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +315 -361
  38. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
  40. package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-datepicker.mjs +1012 -1157
  42. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-dialog.mjs +370 -507
  44. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
  46. package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
  48. package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
  50. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
  52. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
  54. package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
  56. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-fileupload.mjs +486 -541
  58. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
  60. package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
  62. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
  64. package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
  66. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
  68. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
  70. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
  72. package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-inplace.mjs +64 -98
  74. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
  76. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
  78. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
  80. package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
  82. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
  84. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
  86. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
  88. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
  90. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
  92. package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-listbox.mjs +365 -546
  94. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-megamenu.mjs +320 -371
  96. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
  98. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
  100. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
  102. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-multiselect.mjs +647 -835
  104. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
  106. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
  108. package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
  110. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
  112. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
  114. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
  116. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
  118. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-picklist.mjs +557 -655
  120. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
  122. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
  124. package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
  126. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
  128. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
  130. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-select.mjs +581 -784
  132. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
  134. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
  136. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
  138. package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
  140. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
  142. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
  144. package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
  146. package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-table.mjs +2213 -2543
  148. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
  150. package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
  151. package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
  152. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  153. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +318 -394
  154. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  155. package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
  156. package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
  157. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
  158. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  159. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
  160. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  161. package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
  162. package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
  163. package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
  164. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  165. package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
  166. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  167. package/fesm2022/exhaustive-ui-core-treeselect.mjs +327 -421
  168. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  169. package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
  170. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  171. package/package.json +5 -5
  172. package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
  173. package/schematics/migrations/renamed-inputs/migration.js +97 -0
  174. package/schematics/migrations/styleclass-to-class/migration.js +92 -1
  175. package/schematics/migrations.json +7 -2
  176. package/schematics/utils/removed-inputs.js +0 -0
  177. package/schematics/utils/renamed-inputs.js +175 -0
  178. package/schematics/utils/styleclass.js +24 -8
  179. package/schematics/utils/versions.json +8 -8
  180. package/types/exhaustive-ui-core-accordion.d.ts +8 -24
  181. package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
  182. package/types/exhaustive-ui-core-api.d.ts +2 -3
  183. package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
  184. package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
  185. package/types/exhaustive-ui-core-avatar.d.ts +18 -25
  186. package/types/exhaustive-ui-core-badge.d.ts +13 -27
  187. package/types/exhaustive-ui-core-blockui.d.ts +18 -30
  188. package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
  189. package/types/exhaustive-ui-core-button.d.ts +57 -89
  190. package/types/exhaustive-ui-core-carousel.d.ts +56 -82
  191. package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
  192. package/types/exhaustive-ui-core-chart.d.ts +21 -29
  193. package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
  194. package/types/exhaustive-ui-core-chip.d.ts +31 -38
  195. package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
  196. package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
  197. package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
  198. package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
  199. package/types/exhaustive-ui-core-dataview.d.ts +42 -65
  200. package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
  201. package/types/exhaustive-ui-core-dialog.d.ts +73 -123
  202. package/types/exhaustive-ui-core-dock.d.ts +16 -25
  203. package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
  204. package/types/exhaustive-ui-core-drawer.d.ts +32 -64
  205. package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
  206. package/types/exhaustive-ui-core-editor.d.ts +15 -25
  207. package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
  208. package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
  209. package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
  210. package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
  211. package/types/exhaustive-ui-core-galleria.d.ts +124 -194
  212. package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
  213. package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
  214. package/types/exhaustive-ui-core-image.d.ts +35 -68
  215. package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
  216. package/types/exhaustive-ui-core-inplace.d.ts +30 -42
  217. package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
  218. package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
  219. package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
  220. package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
  221. package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
  222. package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
  223. package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
  224. package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
  225. package/types/exhaustive-ui-core-knob.d.ts +45 -60
  226. package/types/exhaustive-ui-core-listbox.d.ts +90 -126
  227. package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
  228. package/types/exhaustive-ui-core-menu.d.ts +33 -53
  229. package/types/exhaustive-ui-core-menubar.d.ts +38 -85
  230. package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
  231. package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
  232. package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
  233. package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
  234. package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
  235. package/types/exhaustive-ui-core-paginator.d.ts +41 -69
  236. package/types/exhaustive-ui-core-panel.d.ts +18 -45
  237. package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
  238. package/types/exhaustive-ui-core-password.d.ts +56 -93
  239. package/types/exhaustive-ui-core-picklist.d.ts +107 -121
  240. package/types/exhaustive-ui-core-popover.d.ts +23 -47
  241. package/types/exhaustive-ui-core-rating.d.ts +18 -26
  242. package/types/exhaustive-ui-core-scroller.d.ts +90 -120
  243. package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
  244. package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
  245. package/types/exhaustive-ui-core-select.d.ts +137 -188
  246. package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
  247. package/types/exhaustive-ui-core-slider.d.ts +52 -67
  248. package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
  249. package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
  250. package/types/exhaustive-ui-core-splitter.d.ts +47 -59
  251. package/types/exhaustive-ui-core-steps.d.ts +24 -31
  252. package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
  253. package/types/exhaustive-ui-core-table.d.ts +349 -453
  254. package/types/exhaustive-ui-core-terminal.d.ts +10 -22
  255. package/types/exhaustive-ui-core-textarea.d.ts +7 -10
  256. package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
  257. package/types/exhaustive-ui-core-timeline.d.ts +20 -28
  258. package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
  259. package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
  260. package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
  261. package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
  262. package/types/exhaustive-ui-core-tree.d.ts +82 -119
  263. package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
  264. package/types/exhaustive-ui-core-treetable.d.ts +203 -280
  265. package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
@@ -1,6 +1,5 @@
1
- import { isPlatformBrowser } from '@angular/common';
2
1
  import * as i0 from '@angular/core';
3
- import { Injectable, InjectionToken, inject, NgZone, ViewContainerRef, input, computed, effect, booleanAttribute, numberAttribute, Input, Directive, NgModule } from '@angular/core';
2
+ import { Injectable, InjectionToken, inject, NgZone, ViewContainerRef, input, booleanAttribute, numberAttribute, linkedSignal, signal, effect, untracked, afterNextRender, Directive, NgModule } from '@angular/core';
4
3
  import { uuid, hasClass, createElement, appendChild, fadeIn, getWindowScrollLeft, getWindowScrollTop, findSingle, getOuterWidth, getOuterHeight, getViewport, removeChild } from '@exhaustive-ui/utils';
5
4
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
6
5
  import { BindModule } from '@exhaustive-ui/core/bind';
@@ -63,99 +62,99 @@ class Tooltip extends BaseComponent {
63
62
  * Position of the tooltip.
64
63
  * @group Props
65
64
  */
66
- tooltipPosition;
65
+ tooltipPosition = input(undefined, /* @ts-ignore */
66
+ ...(ngDevMode ? [{ debugName: "tooltipPosition" }] : /* istanbul ignore next */ []));
67
67
  /**
68
68
  * Event to show the tooltip.
69
69
  * @group Props
70
70
  */
71
- tooltipEvent = 'hover';
71
+ tooltipEvent = input('hover', /* @ts-ignore */
72
+ ...(ngDevMode ? [{ debugName: "tooltipEvent" }] : /* istanbul ignore next */ []));
72
73
  /**
73
74
  * Type of CSS position.
74
75
  * @group Props
75
76
  */
76
- positionStyle;
77
+ positionStyle = input(undefined, /* @ts-ignore */
78
+ ...(ngDevMode ? [{ debugName: "positionStyle" }] : /* istanbul ignore next */ []));
77
79
  /**
78
80
  * Style class of the tooltip.
79
81
  * @group Props
80
82
  */
81
- tooltipStyleClass;
83
+ tooltipStyleClass = input(undefined, /* @ts-ignore */
84
+ ...(ngDevMode ? [{ debugName: "tooltipStyleClass" }] : /* istanbul ignore next */ []));
82
85
  /**
83
86
  * Whether the z-index should be managed automatically to always go on top or have a fixed value.
84
87
  * @group Props
85
88
  */
86
- tooltipZIndex;
89
+ tooltipZIndex = input(undefined, /* @ts-ignore */
90
+ ...(ngDevMode ? [{ debugName: "tooltipZIndex" }] : /* istanbul ignore next */ []));
87
91
  /**
88
92
  * By default the tooltip contents are rendered as text. Set to false to support html tags in the content.
89
93
  * @group Props
90
94
  */
91
- escape = true;
95
+ escape = input(true, { ...(ngDevMode ? { debugName: "escape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
92
96
  /**
93
97
  * Delay to show the tooltip in milliseconds.
94
98
  * @group Props
95
99
  */
96
- showDelay;
100
+ showDelay = input(undefined, { ...(ngDevMode ? { debugName: "showDelay" } : /* istanbul ignore next */ {}), transform: numberAttribute });
97
101
  /**
98
102
  * Delay to hide the tooltip in milliseconds.
99
103
  * @group Props
100
104
  */
101
- hideDelay;
105
+ hideDelay = input(undefined, { ...(ngDevMode ? { debugName: "hideDelay" } : /* istanbul ignore next */ {}), transform: numberAttribute });
102
106
  /**
103
107
  * Time to wait in milliseconds to hide the tooltip even it is active.
104
108
  * @group Props
105
109
  */
106
- life;
110
+ life = input(undefined, { ...(ngDevMode ? { debugName: "life" } : /* istanbul ignore next */ {}), transform: numberAttribute });
107
111
  /**
108
112
  * Specifies the additional vertical offset of the tooltip from its default position.
109
113
  * @group Props
110
114
  */
111
- positionTop;
115
+ positionTop = input(undefined, { ...(ngDevMode ? { debugName: "positionTop" } : /* istanbul ignore next */ {}), transform: numberAttribute });
112
116
  /**
113
117
  * Specifies the additional horizontal offset of the tooltip from its default position.
114
118
  * @group Props
115
119
  */
116
- positionLeft;
120
+ positionLeft = input(undefined, { ...(ngDevMode ? { debugName: "positionLeft" } : /* istanbul ignore next */ {}), transform: numberAttribute });
117
121
  /**
118
122
  * Whether to hide tooltip when hovering over tooltip content.
119
123
  * @group Props
120
124
  */
121
- autoHide = true;
125
+ autoHide = input(true, { ...(ngDevMode ? { debugName: "autoHide" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
122
126
  /**
123
127
  * Automatically adjusts the element position when there is not enough space on the selected position.
124
128
  * @group Props
125
129
  */
126
- fitContent = true;
130
+ fitContent = input(true, { ...(ngDevMode ? { debugName: "fitContent" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
127
131
  /**
128
132
  * Whether to hide tooltip on escape key press.
129
133
  * @group Props
130
134
  */
131
- hideOnEscape = true;
135
+ hideOnEscape = input(true, { ...(ngDevMode ? { debugName: "hideOnEscape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
132
136
  /**
133
137
  * Whether to show the tooltip only when the target text overflows (e.g., ellipsis is active).
134
138
  * @group Props
135
139
  */
136
- showOnEllipsis = false;
140
+ showOnEllipsis = input(false, { ...(ngDevMode ? { debugName: "showOnEllipsis" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
137
141
  /**
138
142
  * Content of the tooltip.
139
143
  * @group Props
140
144
  */
141
- content;
145
+ content = input(undefined, { ...(ngDevMode ? { debugName: "content" } : /* istanbul ignore next */ {}), alias: 'pTooltip' });
142
146
  /**
143
147
  * When present, it specifies that the component should be disabled.
144
148
  * @defaultValue false
145
149
  * @group Props
146
150
  */
147
- get disabled() {
148
- return this._disabled;
149
- }
150
- set disabled(val) {
151
- this._disabled = val;
152
- this.deactivate();
153
- }
151
+ disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), alias: 'tooltipDisabled' });
154
152
  /**
155
153
  * Specifies the tooltip configuration options for the component.
156
154
  * @group Props
157
155
  */
158
- tooltipOptions;
156
+ tooltipOptions = input(undefined, /* @ts-ignore */
157
+ ...(ngDevMode ? [{ debugName: "tooltipOptions" }] : /* istanbul ignore next */ []));
159
158
  /**
160
159
  * Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
161
160
  * @defaultValue 'self'
@@ -163,51 +162,68 @@ class Tooltip extends BaseComponent {
163
162
  */
164
163
  appendTo = input(undefined, /* @ts-ignore */
165
164
  ...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
166
- $appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
167
- ...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
168
- _tooltipOptions = {
169
- tooltipLabel: null,
170
- tooltipPosition: 'right',
171
- tooltipEvent: 'hover',
172
- appendTo: 'body',
173
- positionStyle: null,
174
- tooltipStyleClass: null,
175
- tooltipZIndex: 'auto',
176
- escape: true,
177
- disabled: null,
178
- showDelay: null,
179
- hideDelay: null,
180
- positionTop: null,
181
- positionLeft: null,
182
- life: null,
183
- autoHide: true,
184
- hideOnEscape: true,
185
- showOnEllipsis: false,
186
- id: uuid('pn_id_') + '_tooltip'
187
- };
188
- _disabled;
189
- container;
190
- styleClass;
191
- tooltipText;
192
- rootPTClasses = '';
193
- showTimeout;
194
- hideTimeout;
195
- active;
196
- mouseEnterListener;
197
- mouseLeaveListener;
198
- containerMouseleaveListener;
199
- clickListener;
200
- focusListener;
201
- blurListener;
202
- touchStartListener;
203
- touchEndListener;
204
- documentTouchListener;
205
- documentEscapeListener;
206
- scrollHandler;
207
- resizeListener;
165
+ _id = uuid('pn_id_') + '_tooltip';
166
+ _tooltipOptions = linkedSignal(() => ({
167
+ tooltipLabel: this.content() ?? null,
168
+ tooltipPosition: this.tooltipPosition() ?? 'right',
169
+ tooltipEvent: this.tooltipEvent(),
170
+ appendTo: this.appendTo() ?? 'body',
171
+ positionStyle: this.positionStyle() ?? null,
172
+ tooltipStyleClass: this.tooltipStyleClass() ?? null,
173
+ tooltipZIndex: this.tooltipZIndex() ?? 'auto',
174
+ escape: this.escape(),
175
+ disabled: this.disabled() ?? null,
176
+ showDelay: this.showDelay() ?? null,
177
+ hideDelay: this.hideDelay() ?? null,
178
+ positionTop: this.positionTop() ?? null,
179
+ positionLeft: this.positionLeft() ?? null,
180
+ life: this.life() ?? null,
181
+ autoHide: this.autoHide(),
182
+ hideOnEscape: this.hideOnEscape(),
183
+ showOnEllipsis: this.showOnEllipsis(),
184
+ id: this._id,
185
+ ...this.tooltipOptions()
186
+ }), /* @ts-ignore */
187
+ ...(ngDevMode ? [{ debugName: "_tooltipOptions" }] : /* istanbul ignore next */ []));
188
+ container = signal(undefined, /* @ts-ignore */
189
+ ...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
190
+ tooltipText = signal(undefined, /* @ts-ignore */
191
+ ...(ngDevMode ? [{ debugName: "tooltipText" }] : /* istanbul ignore next */ []));
192
+ showTimeout = signal(undefined, /* @ts-ignore */
193
+ ...(ngDevMode ? [{ debugName: "showTimeout" }] : /* istanbul ignore next */ []));
194
+ hideTimeout = signal(undefined, /* @ts-ignore */
195
+ ...(ngDevMode ? [{ debugName: "hideTimeout" }] : /* istanbul ignore next */ []));
196
+ active = signal(undefined, /* @ts-ignore */
197
+ ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
198
+ mouseEnterListener = signal(undefined, /* @ts-ignore */
199
+ ...(ngDevMode ? [{ debugName: "mouseEnterListener" }] : /* istanbul ignore next */ []));
200
+ mouseLeaveListener = signal(undefined, /* @ts-ignore */
201
+ ...(ngDevMode ? [{ debugName: "mouseLeaveListener" }] : /* istanbul ignore next */ []));
202
+ containerMouseleaveListener = signal(undefined, /* @ts-ignore */
203
+ ...(ngDevMode ? [{ debugName: "containerMouseleaveListener" }] : /* istanbul ignore next */ []));
204
+ clickListener = signal(undefined, /* @ts-ignore */
205
+ ...(ngDevMode ? [{ debugName: "clickListener" }] : /* istanbul ignore next */ []));
206
+ focusListener = signal(undefined, /* @ts-ignore */
207
+ ...(ngDevMode ? [{ debugName: "focusListener" }] : /* istanbul ignore next */ []));
208
+ blurListener = signal(undefined, /* @ts-ignore */
209
+ ...(ngDevMode ? [{ debugName: "blurListener" }] : /* istanbul ignore next */ []));
210
+ touchStartListener = signal(undefined, /* @ts-ignore */
211
+ ...(ngDevMode ? [{ debugName: "touchStartListener" }] : /* istanbul ignore next */ []));
212
+ touchEndListener = signal(undefined, /* @ts-ignore */
213
+ ...(ngDevMode ? [{ debugName: "touchEndListener" }] : /* istanbul ignore next */ []));
214
+ documentTouchListener = signal(undefined, /* @ts-ignore */
215
+ ...(ngDevMode ? [{ debugName: "documentTouchListener" }] : /* istanbul ignore next */ []));
216
+ documentEscapeListener = signal(undefined, /* @ts-ignore */
217
+ ...(ngDevMode ? [{ debugName: "documentEscapeListener" }] : /* istanbul ignore next */ []));
218
+ scrollHandler = signal(undefined, /* @ts-ignore */
219
+ ...(ngDevMode ? [{ debugName: "scrollHandler" }] : /* istanbul ignore next */ []));
220
+ resizeListener = signal(undefined, /* @ts-ignore */
221
+ ...(ngDevMode ? [{ debugName: "resizeListener" }] : /* istanbul ignore next */ []));
208
222
  _componentStyle = inject(TooltipStyle);
209
- interactionInProgress = false;
210
- pointerInside = false;
223
+ interactionInProgress = signal(false, /* @ts-ignore */
224
+ ...(ngDevMode ? [{ debugName: "interactionInProgress" }] : /* istanbul ignore next */ []));
225
+ pointerInside = signal(false, /* @ts-ignore */
226
+ ...(ngDevMode ? [{ debugName: "pointerInside" }] : /* istanbul ignore next */ []));
211
227
  /**
212
228
  * Used to pass attributes to DOM elements inside the Tooltip component.
213
229
  * @defaultValue undefined
@@ -239,121 +255,58 @@ class Tooltip extends BaseComponent {
239
255
  effect(() => {
240
256
  this.pTooltipUnstyled() && this.directiveUnstyled.set(this.pTooltipUnstyled());
241
257
  });
242
- }
243
- onAfterViewInit() {
244
- if (isPlatformBrowser(this.platformId)) {
258
+ effect(() => {
259
+ const content = this.content();
260
+ untracked(() => {
261
+ if (this.active()) {
262
+ if (content) {
263
+ if (this.container() && this.container().offsetParent) {
264
+ this.updateText();
265
+ this.align();
266
+ }
267
+ else {
268
+ this.show();
269
+ }
270
+ }
271
+ else {
272
+ this.hide();
273
+ }
274
+ }
275
+ });
276
+ });
277
+ effect(() => {
278
+ this.tooltipOptions();
279
+ this.disabled();
280
+ untracked(() => this.deactivate());
281
+ });
282
+ afterNextRender(() => {
245
283
  this.zone.runOutsideAngular(() => {
246
284
  const tooltipEvent = this.getOption('tooltipEvent');
247
285
  if (tooltipEvent === 'hover' || tooltipEvent === 'both') {
248
- this.mouseEnterListener = this.onMouseEnter.bind(this);
249
- this.mouseLeaveListener = this.onMouseLeave.bind(this);
250
- this.clickListener = this.onInputClick.bind(this);
251
- this.el.nativeElement.addEventListener('mouseenter', this.mouseEnterListener);
252
- this.el.nativeElement.addEventListener('click', this.clickListener);
253
- this.el.nativeElement.addEventListener('mouseleave', this.mouseLeaveListener);
286
+ this.mouseEnterListener.set(this.onMouseEnter.bind(this));
287
+ this.mouseLeaveListener.set(this.onMouseLeave.bind(this));
288
+ this.clickListener.set(this.onInputClick.bind(this));
289
+ this.el.nativeElement.addEventListener('mouseenter', this.mouseEnterListener());
290
+ this.el.nativeElement.addEventListener('click', this.clickListener());
291
+ this.el.nativeElement.addEventListener('mouseleave', this.mouseLeaveListener());
254
292
  // Touch support
255
- this.touchStartListener = this.onTouchStart.bind(this);
256
- this.touchEndListener = this.onTouchEnd.bind(this);
257
- this.el.nativeElement.addEventListener('touchstart', this.touchStartListener, { passive: true });
258
- this.el.nativeElement.addEventListener('touchend', this.touchEndListener, { passive: true });
293
+ this.touchStartListener.set(this.onTouchStart.bind(this));
294
+ this.touchEndListener.set(this.onTouchEnd.bind(this));
295
+ this.el.nativeElement.addEventListener('touchstart', this.touchStartListener(), { passive: true });
296
+ this.el.nativeElement.addEventListener('touchend', this.touchEndListener(), { passive: true });
259
297
  }
260
298
  if (tooltipEvent === 'focus' || tooltipEvent === 'both') {
261
- this.focusListener = this.onFocus.bind(this);
262
- this.blurListener = this.onBlur.bind(this);
299
+ this.focusListener.set(this.onFocus.bind(this));
300
+ this.blurListener.set(this.onBlur.bind(this));
263
301
  let target = this.el.nativeElement.querySelector('.p-component');
264
302
  if (!target) {
265
303
  target = this.getTarget(this.el.nativeElement);
266
304
  }
267
- target.addEventListener('focus', this.focusListener);
268
- target.addEventListener('blur', this.blurListener);
305
+ target.addEventListener('focus', this.focusListener());
306
+ target.addEventListener('blur', this.blurListener());
269
307
  }
270
308
  });
271
- }
272
- }
273
- onChanges(simpleChange) {
274
- if (simpleChange.tooltipPosition) {
275
- this.setOption({ tooltipPosition: simpleChange.tooltipPosition.currentValue });
276
- }
277
- if (simpleChange.tooltipEvent) {
278
- this.setOption({ tooltipEvent: simpleChange.tooltipEvent.currentValue });
279
- }
280
- if (simpleChange.appendTo) {
281
- this.setOption({ appendTo: simpleChange.appendTo.currentValue });
282
- }
283
- if (simpleChange.positionStyle) {
284
- this.setOption({ positionStyle: simpleChange.positionStyle.currentValue });
285
- }
286
- if (simpleChange.tooltipStyleClass) {
287
- this.setOption({ tooltipStyleClass: simpleChange.tooltipStyleClass.currentValue });
288
- }
289
- if (simpleChange.tooltipZIndex) {
290
- this.setOption({ tooltipZIndex: simpleChange.tooltipZIndex.currentValue });
291
- }
292
- if (simpleChange.escape) {
293
- this.setOption({ escape: simpleChange.escape.currentValue });
294
- }
295
- if (simpleChange.showDelay) {
296
- this.setOption({ showDelay: simpleChange.showDelay.currentValue });
297
- }
298
- if (simpleChange.hideDelay) {
299
- this.setOption({ hideDelay: simpleChange.hideDelay.currentValue });
300
- }
301
- if (simpleChange.life) {
302
- this.setOption({ life: simpleChange.life.currentValue });
303
- }
304
- if (simpleChange.positionTop) {
305
- this.setOption({ positionTop: simpleChange.positionTop.currentValue });
306
- }
307
- if (simpleChange.positionLeft) {
308
- this.setOption({ positionLeft: simpleChange.positionLeft.currentValue });
309
- }
310
- if (simpleChange.disabled) {
311
- this.setOption({ disabled: simpleChange.disabled.currentValue });
312
- }
313
- if (simpleChange.content) {
314
- this.setOption({ tooltipLabel: simpleChange.content.currentValue });
315
- if (this.active) {
316
- if (simpleChange.content.currentValue) {
317
- if (this.container && this.container.offsetParent) {
318
- this.updateText();
319
- this.align();
320
- }
321
- else {
322
- this.show();
323
- }
324
- }
325
- else {
326
- this.hide();
327
- }
328
- }
329
- }
330
- if (simpleChange.autoHide) {
331
- this.setOption({ autoHide: simpleChange.autoHide.currentValue });
332
- }
333
- if (simpleChange.showOnEllipsis) {
334
- this.setOption({ showOnEllipsis: simpleChange.showOnEllipsis.currentValue });
335
- }
336
- if (simpleChange.id) {
337
- this.setOption({ id: simpleChange.id.currentValue });
338
- }
339
- if (simpleChange.tooltipOptions) {
340
- this._tooltipOptions = { ...this._tooltipOptions, ...simpleChange.tooltipOptions.currentValue };
341
- this.deactivate();
342
- if (this.active) {
343
- if (this.getOption('tooltipLabel')) {
344
- if (this.container && this.container.offsetParent) {
345
- this.updateText();
346
- this.align();
347
- }
348
- else {
349
- this.show();
350
- }
351
- }
352
- else {
353
- this.hide();
354
- }
355
- }
356
- }
309
+ });
357
310
  }
358
311
  isAutoHide() {
359
312
  return this.getOption('autoHide');
@@ -363,16 +316,16 @@ class Tooltip extends BaseComponent {
363
316
  // detached (e.g. an overlay rendered inside the host closing on click), without the
364
317
  // pointer ever leaving. An enter without a preceding leave is not a new hover, so
365
318
  // ignore it - otherwise a tooltip dismissed by that very click comes straight back.
366
- if (this.pointerInside) {
319
+ if (this.pointerInside()) {
367
320
  return;
368
321
  }
369
- this.pointerInside = true;
370
- if (!this.container && !this.showTimeout) {
322
+ this.pointerInside.set(true);
323
+ if (!this.container() && !this.showTimeout()) {
371
324
  this.activate();
372
325
  }
373
326
  }
374
327
  onMouseLeave(e) {
375
- this.pointerInside = false;
328
+ this.pointerInside.set(false);
376
329
  if (!this.isAutoHide()) {
377
330
  const valid = hasClass(e.relatedTarget, 'p-tooltip') || hasClass(e.relatedTarget, 'p-tooltip-text') || hasClass(e.relatedTarget, 'p-tooltip-arrow');
378
331
  !valid && this.deactivate();
@@ -382,7 +335,7 @@ class Tooltip extends BaseComponent {
382
335
  }
383
336
  }
384
337
  onTouchStart(e) {
385
- if (!this.container && !this.showTimeout) {
338
+ if (!this.container() && !this.showTimeout()) {
386
339
  this.activate();
387
340
  if (!this.isAutoHide()) {
388
341
  this.bindDocumentTouchListener();
@@ -395,19 +348,21 @@ class Tooltip extends BaseComponent {
395
348
  }
396
349
  }
397
350
  bindDocumentTouchListener() {
398
- if (!this.documentTouchListener) {
399
- this.documentTouchListener = this.renderer.listen('document', 'touchstart', (e) => {
400
- if (this.container && !this.container.contains(e.target) && !this.el.nativeElement.contains(e.target)) {
351
+ if (!this.documentTouchListener()) {
352
+ this.documentTouchListener.set(this.renderer.listen('document', 'touchstart', (e) => {
353
+ const container = this.container();
354
+ if (container && !container.contains(e.target) && !this.el.nativeElement.contains(e.target)) {
401
355
  this.deactivate();
402
356
  this.unbindDocumentTouchListener();
403
357
  }
404
- });
358
+ }));
405
359
  }
406
360
  }
407
361
  unbindDocumentTouchListener() {
408
- if (this.documentTouchListener) {
409
- this.documentTouchListener();
410
- this.documentTouchListener = null;
362
+ const documentTouchListener = this.documentTouchListener();
363
+ if (documentTouchListener) {
364
+ documentTouchListener();
365
+ this.documentTouchListener.set(null);
411
366
  }
412
367
  }
413
368
  onFocus(e) {
@@ -424,95 +379,99 @@ class Tooltip extends BaseComponent {
424
379
  return el.offsetWidth < el.scrollWidth || el.offsetHeight < el.scrollHeight;
425
380
  }
426
381
  activate() {
427
- if (!this.interactionInProgress) {
382
+ if (!this.interactionInProgress()) {
428
383
  if (this.getOption('showOnEllipsis') && !this.hasEllipsis()) {
429
384
  return;
430
385
  }
431
- this.active = true;
386
+ this.active.set(true);
432
387
  this.clearHideTimeout();
433
388
  if (this.getOption('showDelay'))
434
- this.showTimeout = setTimeout(() => {
389
+ this.showTimeout.set(setTimeout(() => {
435
390
  this.show();
436
- }, this.getOption('showDelay'));
391
+ }, this.getOption('showDelay')));
437
392
  else
438
393
  this.show();
439
394
  if (this.getOption('life')) {
440
395
  let duration = this.getOption('showDelay') ? this.getOption('life') + this.getOption('showDelay') : this.getOption('life');
441
- this.hideTimeout = setTimeout(() => {
396
+ this.hideTimeout.set(setTimeout(() => {
442
397
  this.hide();
443
- }, duration);
398
+ }, duration));
444
399
  }
445
400
  if (this.getOption('hideOnEscape')) {
446
- this.documentEscapeListener = this.renderer.listen('document', 'keydown.escape', () => {
401
+ this.documentEscapeListener.set(this.renderer.listen('document', 'keydown.escape', () => {
447
402
  this.deactivate();
448
- this.documentEscapeListener?.();
449
- });
403
+ this.documentEscapeListener()?.();
404
+ }));
450
405
  }
451
- this.interactionInProgress = true;
406
+ this.interactionInProgress.set(true);
452
407
  }
453
408
  }
454
409
  deactivate() {
455
- this.interactionInProgress = false;
456
- this.active = false;
410
+ this.interactionInProgress.set(false);
411
+ this.active.set(false);
457
412
  this.clearShowTimeout();
458
413
  if (this.getOption('hideDelay')) {
459
414
  this.clearHideTimeout(); //life timeout
460
- this.hideTimeout = setTimeout(() => {
415
+ this.hideTimeout.set(setTimeout(() => {
461
416
  this.hide();
462
- }, this.getOption('hideDelay'));
417
+ }, this.getOption('hideDelay')));
463
418
  }
464
419
  else {
465
420
  this.hide();
466
421
  }
467
- if (this.documentEscapeListener) {
468
- this.documentEscapeListener();
422
+ const documentEscapeListener = this.documentEscapeListener();
423
+ if (documentEscapeListener) {
424
+ documentEscapeListener();
469
425
  }
470
426
  }
471
427
  create() {
472
- if (this.container) {
428
+ if (this.container()) {
473
429
  this.clearHideTimeout();
474
430
  this.remove();
475
431
  }
476
- this.container = createElement('div', { class: this.cx('root'), 'p-bind': this.ptm('root'), 'data-pc-section': 'root' });
477
- this.container.setAttribute('role', 'tooltip');
432
+ const container = createElement('div', { class: this.cx('root'), 'p-bind': this.ptm('root'), 'data-pc-section': 'root' });
433
+ this.container.set(container);
434
+ container.setAttribute('role', 'tooltip');
478
435
  let tooltipArrow = createElement('div', { class: this.cx('arrow'), 'p-bind': this.ptm('arrow'), 'data-pc-section': 'arrow' });
479
- this.container.appendChild(tooltipArrow);
480
- this.tooltipText = createElement('div', { class: this.cx('text'), 'p-bind': this.ptm('text'), 'data-pc-section': 'text' });
436
+ container.appendChild(tooltipArrow);
437
+ this.tooltipText.set(createElement('div', { class: this.cx('text'), 'p-bind': this.ptm('text'), 'data-pc-section': 'text' }));
481
438
  this.updateText();
482
439
  if (this.getOption('positionStyle')) {
483
- this.container.style.position = this.getOption('positionStyle');
440
+ container.style.position = this.getOption('positionStyle');
484
441
  }
485
- this.container.appendChild(this.tooltipText);
442
+ container.appendChild(this.tooltipText());
486
443
  if (this.getOption('appendTo') === 'body')
487
- document.body.appendChild(this.container);
444
+ document.body.appendChild(container);
488
445
  else if (this.getOption('appendTo') === 'target')
489
- appendChild(this.container, this.el.nativeElement);
446
+ appendChild(container, this.el.nativeElement);
490
447
  else
491
- appendChild(this.getOption('appendTo'), this.container);
492
- this.container.style.display = 'none';
493
- if (this.fitContent) {
494
- this.container.style.width = 'fit-content';
448
+ appendChild(this.getOption('appendTo'), container);
449
+ container.style.display = 'none';
450
+ if (this.fitContent()) {
451
+ container.style.width = 'fit-content';
495
452
  }
496
453
  if (this.isAutoHide()) {
497
- this.container.style.pointerEvents = 'none';
454
+ container.style.pointerEvents = 'none';
498
455
  }
499
456
  else {
500
- this.container.style.pointerEvents = 'unset';
457
+ container.style.pointerEvents = 'unset';
501
458
  this.bindContainerMouseleaveListener();
502
459
  }
503
460
  }
504
461
  bindContainerMouseleaveListener() {
505
- if (!this.containerMouseleaveListener) {
506
- const targetEl = this.container ?? this.container.nativeElement;
507
- this.containerMouseleaveListener = this.renderer.listen(targetEl, 'mouseleave', (e) => {
462
+ if (!this.containerMouseleaveListener()) {
463
+ const container = this.container();
464
+ const targetEl = container ?? container.nativeElement;
465
+ this.containerMouseleaveListener.set(this.renderer.listen(targetEl, 'mouseleave', (e) => {
508
466
  this.deactivate();
509
- });
467
+ }));
510
468
  }
511
469
  }
512
470
  unbindContainerMouseleaveListener() {
513
- if (this.containerMouseleaveListener) {
514
- this.bindContainerMouseleaveListener();
515
- this.containerMouseleaveListener = null;
471
+ const containerMouseleaveListener = this.containerMouseleaveListener();
472
+ if (containerMouseleaveListener) {
473
+ containerMouseleaveListener();
474
+ this.containerMouseleaveListener.set(null);
516
475
  }
517
476
  }
518
477
  show() {
@@ -524,41 +483,43 @@ class Tooltip extends BaseComponent {
524
483
  const pDialogWrapper = nativeElement.closest('p-dialog');
525
484
  if (pDialogWrapper) {
526
485
  setTimeout(() => {
527
- this.container && (this.container.style.display = 'inline-block');
528
- this.container && this.align();
486
+ const container = this.container();
487
+ container && (container.style.display = 'inline-block');
488
+ container && this.align();
529
489
  }, 100);
530
490
  }
531
491
  else {
532
- this.container.style.display = 'inline-block';
492
+ this.container().style.display = 'inline-block';
533
493
  this.align();
534
494
  }
535
- fadeIn(this.container, 250);
495
+ fadeIn(this.container(), 250);
536
496
  if (this.getOption('tooltipZIndex') === 'auto')
537
- ZIndexUtils.set('tooltip', this.container, this.config.zIndex.tooltip);
497
+ ZIndexUtils.set('tooltip', this.container(), this.config.zIndex.tooltip);
538
498
  else
539
- this.container.style.zIndex = this.getOption('tooltipZIndex');
499
+ this.container().style.zIndex = this.getOption('tooltipZIndex');
540
500
  this.bindDocumentResizeListener();
541
501
  this.bindScrollListener();
542
502
  }
543
503
  hide() {
544
504
  if (this.getOption('tooltipZIndex') === 'auto') {
545
- ZIndexUtils.clear(this.container);
505
+ ZIndexUtils.clear(this.container());
546
506
  }
547
507
  this.remove();
548
508
  }
549
509
  updateText() {
550
510
  const content = this.getOption('tooltipLabel');
511
+ const tooltipText = this.tooltipText();
551
512
  if (content && typeof content.createEmbeddedView === 'function') {
552
513
  const embeddedViewRef = this.viewContainer.createEmbeddedView(content);
553
514
  embeddedViewRef.detectChanges();
554
- embeddedViewRef.rootNodes.forEach((node) => this.tooltipText.appendChild(node));
515
+ embeddedViewRef.rootNodes.forEach((node) => tooltipText.appendChild(node));
555
516
  }
556
517
  else if (this.getOption('escape')) {
557
- this.tooltipText.textContent = '';
558
- this.tooltipText.appendChild(document.createTextNode(content));
518
+ tooltipText.textContent = '';
519
+ tooltipText.appendChild(document.createTextNode(content));
559
520
  }
560
521
  else {
561
- this.tooltipText.innerHTML = content;
522
+ tooltipText.innerHTML = content;
562
523
  }
563
524
  }
564
525
  align() {
@@ -597,7 +558,7 @@ class Tooltip extends BaseComponent {
597
558
  this.preAlign('right');
598
559
  const el = this.activeElement;
599
560
  const offsetLeft = getOuterWidth(el);
600
- const offsetTop = (getOuterHeight(el) - getOuterHeight(this.container)) / 2;
561
+ const offsetTop = (getOuterHeight(el) - getOuterHeight(this.container())) / 2;
601
562
  this.alignTooltip(offsetLeft, offsetTop);
602
563
  let arrowElement = this.getArrowElement();
603
564
  arrowElement.style.top = '50%';
@@ -608,8 +569,8 @@ class Tooltip extends BaseComponent {
608
569
  alignLeft() {
609
570
  this.preAlign('left');
610
571
  let arrowElement = this.getArrowElement();
611
- let offsetLeft = getOuterWidth(this.container);
612
- let offsetTop = (getOuterHeight(this.el.nativeElement) - getOuterHeight(this.container)) / 2;
572
+ let offsetLeft = getOuterWidth(this.container());
573
+ let offsetTop = (getOuterHeight(this.el.nativeElement) - getOuterHeight(this.container())) / 2;
613
574
  this.alignTooltip(-offsetLeft, offsetTop);
614
575
  arrowElement.style.top = '50%';
615
576
  arrowElement.style.right = '0';
@@ -620,9 +581,9 @@ class Tooltip extends BaseComponent {
620
581
  this.preAlign('top');
621
582
  let arrowElement = this.getArrowElement();
622
583
  let hostOffset = this.getHostOffset();
623
- let elementWidth = getOuterWidth(this.container);
624
- let offsetLeft = (getOuterWidth(this.el.nativeElement) - getOuterWidth(this.container)) / 2;
625
- let offsetTop = getOuterHeight(this.container);
584
+ let elementWidth = getOuterWidth(this.container());
585
+ let offsetLeft = (getOuterWidth(this.el.nativeElement) - getOuterWidth(this.container())) / 2;
586
+ let offsetTop = getOuterHeight(this.container());
626
587
  this.alignTooltip(offsetLeft, -offsetTop);
627
588
  let elementRelativeCenter = hostOffset.left - this.getHostOffset().left + elementWidth / 2;
628
589
  arrowElement.style.top = null;
@@ -631,14 +592,14 @@ class Tooltip extends BaseComponent {
631
592
  arrowElement.style.left = elementRelativeCenter + 'px';
632
593
  }
633
594
  getArrowElement() {
634
- return findSingle(this.container, '[data-pc-section="arrow"]');
595
+ return findSingle(this.container(), '[data-pc-section="arrow"]');
635
596
  }
636
597
  alignBottom() {
637
598
  this.preAlign('bottom');
638
599
  let arrowElement = this.getArrowElement();
639
- let elementWidth = getOuterWidth(this.container);
600
+ let elementWidth = getOuterWidth(this.container());
640
601
  let hostOffset = this.getHostOffset();
641
- let offsetLeft = (getOuterWidth(this.el.nativeElement) - getOuterWidth(this.container)) / 2;
602
+ let offsetLeft = (getOuterWidth(this.el.nativeElement) - getOuterWidth(this.container())) / 2;
642
603
  let offsetTop = getOuterHeight(this.el.nativeElement);
643
604
  this.alignTooltip(offsetLeft, offsetTop);
644
605
  let elementRelativeCenter = hostOffset.left - this.getHostOffset().left + elementWidth / 2;
@@ -651,29 +612,31 @@ class Tooltip extends BaseComponent {
651
612
  let hostOffset = this.getHostOffset();
652
613
  let left = hostOffset.left + offsetLeft;
653
614
  let top = hostOffset.top + offsetTop;
654
- this.container.style.left = left + this.getOption('positionLeft') + 'px';
655
- this.container.style.top = top + this.getOption('positionTop') + 'px';
615
+ this.container().style.left = left + this.getOption('positionLeft') + 'px';
616
+ this.container().style.top = top + this.getOption('positionTop') + 'px';
656
617
  }
657
618
  setOption(option) {
658
- this._tooltipOptions = { ...this._tooltipOptions, ...option };
619
+ this._tooltipOptions.update((options) => ({ ...options, ...option }));
659
620
  }
660
621
  getOption(option) {
661
- return this._tooltipOptions[option];
622
+ return this._tooltipOptions()[option];
662
623
  }
663
624
  getTarget(el) {
664
625
  return hasClass(el, 'p-inputwrapper') ? findSingle(el, 'input') : el;
665
626
  }
666
627
  preAlign(position) {
667
- this.container.style.left = -999 + 'px';
668
- this.container.style.top = -999 + 'px';
669
- this.container.className = this.cn(this.cx('root'), this.ptm('root')?.class, 'p-tooltip-' + position, this.getOption('tooltipStyleClass'));
628
+ const container = this.container();
629
+ container.style.left = -999 + 'px';
630
+ container.style.top = -999 + 'px';
631
+ container.className = this.cn(this.cx('root'), this.ptm('root')?.class, 'p-tooltip-' + position, this.getOption('tooltipStyleClass'));
670
632
  }
671
633
  isOutOfBounds() {
672
- let offset = this.container.getBoundingClientRect();
634
+ const container = this.container();
635
+ let offset = container.getBoundingClientRect();
673
636
  let targetTop = offset.top;
674
637
  let targetLeft = offset.left;
675
- let width = getOuterWidth(this.container);
676
- let height = getOuterHeight(this.container);
638
+ let width = getOuterWidth(container);
639
+ let height = getOuterHeight(container);
677
640
  let viewport = getViewport();
678
641
  return targetLeft + width > viewport.width || targetLeft < 0 || targetTop < 0 || targetTop + height > viewport.height;
679
642
  }
@@ -682,41 +645,43 @@ class Tooltip extends BaseComponent {
682
645
  }
683
646
  bindDocumentResizeListener() {
684
647
  this.zone.runOutsideAngular(() => {
685
- this.resizeListener = this.onWindowResize.bind(this);
686
- window.addEventListener('resize', this.resizeListener);
648
+ this.resizeListener.set(this.onWindowResize.bind(this));
649
+ window.addEventListener('resize', this.resizeListener());
687
650
  });
688
651
  }
689
652
  unbindDocumentResizeListener() {
690
- if (this.resizeListener) {
691
- window.removeEventListener('resize', this.resizeListener);
692
- this.resizeListener = null;
653
+ const resizeListener = this.resizeListener();
654
+ if (resizeListener) {
655
+ window.removeEventListener('resize', resizeListener);
656
+ this.resizeListener.set(null);
693
657
  }
694
658
  }
695
659
  bindScrollListener() {
696
- if (!this.scrollHandler) {
697
- this.scrollHandler = new ConnectedOverlayScrollHandler(this.el.nativeElement, () => {
698
- if (this.container) {
660
+ if (!this.scrollHandler()) {
661
+ this.scrollHandler.set(new ConnectedOverlayScrollHandler(this.el.nativeElement, () => {
662
+ if (this.container()) {
699
663
  this.hide();
700
664
  }
701
- });
665
+ }));
702
666
  }
703
- this.scrollHandler.bindScrollListener();
667
+ this.scrollHandler().bindScrollListener();
704
668
  }
705
669
  unbindScrollListener() {
706
- if (this.scrollHandler) {
707
- this.scrollHandler.unbindScrollListener();
670
+ const scrollHandler = this.scrollHandler();
671
+ if (scrollHandler) {
672
+ scrollHandler.unbindScrollListener();
708
673
  }
709
674
  }
710
675
  unbindEvents() {
711
676
  const tooltipEvent = this.getOption('tooltipEvent');
712
- this.pointerInside = false;
677
+ this.pointerInside.set(false);
713
678
  if (tooltipEvent === 'hover' || tooltipEvent === 'both') {
714
- this.el.nativeElement.removeEventListener('mouseenter', this.mouseEnterListener);
715
- this.el.nativeElement.removeEventListener('mouseleave', this.mouseLeaveListener);
716
- this.el.nativeElement.removeEventListener('click', this.clickListener);
679
+ this.el.nativeElement.removeEventListener('mouseenter', this.mouseEnterListener());
680
+ this.el.nativeElement.removeEventListener('mouseleave', this.mouseLeaveListener());
681
+ this.el.nativeElement.removeEventListener('click', this.clickListener());
717
682
  // Touch support
718
- this.el.nativeElement.removeEventListener('touchstart', this.touchStartListener);
719
- this.el.nativeElement.removeEventListener('touchend', this.touchEndListener);
683
+ this.el.nativeElement.removeEventListener('touchstart', this.touchStartListener());
684
+ this.el.nativeElement.removeEventListener('touchend', this.touchEndListener());
720
685
  this.unbindDocumentTouchListener();
721
686
  }
722
687
  if (tooltipEvent === 'focus' || tooltipEvent === 'both') {
@@ -724,38 +689,41 @@ class Tooltip extends BaseComponent {
724
689
  if (!target) {
725
690
  target = this.getTarget(this.el.nativeElement);
726
691
  }
727
- target.removeEventListener('focus', this.focusListener);
728
- target.removeEventListener('blur', this.blurListener);
692
+ target.removeEventListener('focus', this.focusListener());
693
+ target.removeEventListener('blur', this.blurListener());
729
694
  }
730
695
  this.unbindDocumentResizeListener();
731
696
  }
732
697
  remove() {
733
- if (this.container && this.container.parentElement) {
698
+ const container = this.container();
699
+ if (container && container.parentElement) {
734
700
  if (this.getOption('appendTo') === 'body')
735
- document.body.removeChild(this.container);
701
+ document.body.removeChild(container);
736
702
  else if (this.getOption('appendTo') === 'target')
737
- this.el.nativeElement.removeChild(this.container);
703
+ this.el.nativeElement.removeChild(container);
738
704
  else
739
- removeChild(this.getOption('appendTo'), this.container);
705
+ removeChild(this.getOption('appendTo'), container);
740
706
  }
741
707
  this.unbindDocumentResizeListener();
742
708
  this.unbindScrollListener();
743
709
  this.unbindContainerMouseleaveListener();
744
710
  this.unbindDocumentTouchListener();
745
711
  this.clearTimeouts();
746
- this.container = null;
747
- this.scrollHandler = null;
712
+ this.container.set(null);
713
+ this.scrollHandler.set(null);
748
714
  }
749
715
  clearShowTimeout() {
750
- if (this.showTimeout) {
751
- clearTimeout(this.showTimeout);
752
- this.showTimeout = null;
716
+ const showTimeout = this.showTimeout();
717
+ if (showTimeout) {
718
+ clearTimeout(showTimeout);
719
+ this.showTimeout.set(null);
753
720
  }
754
721
  }
755
722
  clearHideTimeout() {
756
- if (this.hideTimeout) {
757
- clearTimeout(this.hideTimeout);
758
- this.hideTimeout = null;
723
+ const hideTimeout = this.hideTimeout();
724
+ if (hideTimeout) {
725
+ clearTimeout(hideTimeout);
726
+ this.hideTimeout.set(null);
759
727
  }
760
728
  }
761
729
  clearTimeouts() {
@@ -764,77 +732,30 @@ class Tooltip extends BaseComponent {
764
732
  }
765
733
  onDestroy() {
766
734
  this.unbindEvents();
767
- if (this.container) {
768
- ZIndexUtils.clear(this.container);
735
+ if (this.container()) {
736
+ ZIndexUtils.clear(this.container());
769
737
  }
770
738
  this.remove();
771
- if (this.scrollHandler) {
772
- this.scrollHandler.destroy();
773
- this.scrollHandler = null;
739
+ const scrollHandler = this.scrollHandler();
740
+ if (scrollHandler) {
741
+ scrollHandler.destroy();
742
+ this.scrollHandler.set(null);
774
743
  }
775
- if (this.documentEscapeListener) {
776
- this.documentEscapeListener();
744
+ const documentEscapeListener = this.documentEscapeListener();
745
+ if (documentEscapeListener) {
746
+ documentEscapeListener();
777
747
  }
778
748
  }
779
749
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Tooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive });
780
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.1", type: Tooltip, isStandalone: true, selector: "[pTooltip]", inputs: { tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: false, isRequired: false, transformFunction: null }, tooltipEvent: { classPropertyName: "tooltipEvent", publicName: "tooltipEvent", isSignal: false, isRequired: false, transformFunction: null }, positionStyle: { classPropertyName: "positionStyle", publicName: "positionStyle", isSignal: false, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: false, isRequired: false, transformFunction: null }, tooltipZIndex: { classPropertyName: "tooltipZIndex", publicName: "tooltipZIndex", isSignal: false, isRequired: false, transformFunction: null }, escape: { classPropertyName: "escape", publicName: "escape", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: false, isRequired: false, transformFunction: numberAttribute }, hideDelay: { classPropertyName: "hideDelay", publicName: "hideDelay", isSignal: false, isRequired: false, transformFunction: numberAttribute }, life: { classPropertyName: "life", publicName: "life", isSignal: false, isRequired: false, transformFunction: numberAttribute }, positionTop: { classPropertyName: "positionTop", publicName: "positionTop", isSignal: false, isRequired: false, transformFunction: numberAttribute }, positionLeft: { classPropertyName: "positionLeft", publicName: "positionLeft", isSignal: false, isRequired: false, transformFunction: numberAttribute }, autoHide: { classPropertyName: "autoHide", publicName: "autoHide", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, fitContent: { classPropertyName: "fitContent", publicName: "fitContent", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, hideOnEscape: { classPropertyName: "hideOnEscape", publicName: "hideOnEscape", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showOnEllipsis: { classPropertyName: "showOnEllipsis", publicName: "showOnEllipsis", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, content: { classPropertyName: "content", publicName: "pTooltip", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "tooltipDisabled", isSignal: false, isRequired: false, transformFunction: null }, tooltipOptions: { classPropertyName: "tooltipOptions", publicName: "tooltipOptions", isSignal: false, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, ptTooltip: { classPropertyName: "ptTooltip", publicName: "ptTooltip", isSignal: true, isRequired: false, transformFunction: null }, pTooltipPT: { classPropertyName: "pTooltipPT", publicName: "pTooltipPT", isSignal: true, isRequired: false, transformFunction: null }, pTooltipUnstyled: { classPropertyName: "pTooltipUnstyled", publicName: "pTooltipUnstyled", isSignal: true, isRequired: false, transformFunction: null } }, providers: [TooltipStyle, { provide: TOOLTIP_INSTANCE, useExisting: Tooltip }, { provide: PARENT_INSTANCE, useExisting: Tooltip }], usesInheritance: true, ngImport: i0 });
750
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.1", type: Tooltip, isStandalone: true, selector: "[pTooltip]", inputs: { tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, tooltipEvent: { classPropertyName: "tooltipEvent", publicName: "tooltipEvent", isSignal: true, isRequired: false, transformFunction: null }, positionStyle: { classPropertyName: "positionStyle", publicName: "positionStyle", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: true, isRequired: false, transformFunction: null }, tooltipZIndex: { classPropertyName: "tooltipZIndex", publicName: "tooltipZIndex", isSignal: true, isRequired: false, transformFunction: null }, escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "hideDelay", isSignal: true, isRequired: false, transformFunction: null }, life: { classPropertyName: "life", publicName: "life", isSignal: true, isRequired: false, transformFunction: null }, positionTop: { classPropertyName: "positionTop", publicName: "positionTop", isSignal: true, isRequired: false, transformFunction: null }, positionLeft: { classPropertyName: "positionLeft", publicName: "positionLeft", isSignal: true, isRequired: false, transformFunction: null }, autoHide: { classPropertyName: "autoHide", publicName: "autoHide", isSignal: true, isRequired: false, transformFunction: null }, fitContent: { classPropertyName: "fitContent", publicName: "fitContent", isSignal: true, isRequired: false, transformFunction: null }, hideOnEscape: { classPropertyName: "hideOnEscape", publicName: "hideOnEscape", isSignal: true, isRequired: false, transformFunction: null }, showOnEllipsis: { classPropertyName: "showOnEllipsis", publicName: "showOnEllipsis", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "pTooltip", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "tooltipDisabled", isSignal: true, isRequired: false, transformFunction: null }, tooltipOptions: { classPropertyName: "tooltipOptions", publicName: "tooltipOptions", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, ptTooltip: { classPropertyName: "ptTooltip", publicName: "ptTooltip", isSignal: true, isRequired: false, transformFunction: null }, pTooltipPT: { classPropertyName: "pTooltipPT", publicName: "pTooltipPT", isSignal: true, isRequired: false, transformFunction: null }, pTooltipUnstyled: { classPropertyName: "pTooltipUnstyled", publicName: "pTooltipUnstyled", isSignal: true, isRequired: false, transformFunction: null } }, providers: [TooltipStyle, { provide: TOOLTIP_INSTANCE, useExisting: Tooltip }, { provide: PARENT_INSTANCE, useExisting: Tooltip }], usesInheritance: true, ngImport: i0 });
781
751
  }
782
752
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Tooltip, decorators: [{
783
753
  type: Directive,
784
754
  args: [{
785
755
  selector: '[pTooltip]',
786
- standalone: true,
787
756
  providers: [TooltipStyle, { provide: TOOLTIP_INSTANCE, useExisting: Tooltip }, { provide: PARENT_INSTANCE, useExisting: Tooltip }]
788
757
  }]
789
- }], ctorParameters: () => [], propDecorators: { tooltipPosition: [{
790
- type: Input
791
- }], tooltipEvent: [{
792
- type: Input
793
- }], positionStyle: [{
794
- type: Input
795
- }], tooltipStyleClass: [{
796
- type: Input
797
- }], tooltipZIndex: [{
798
- type: Input
799
- }], escape: [{
800
- type: Input,
801
- args: [{ transform: booleanAttribute }]
802
- }], showDelay: [{
803
- type: Input,
804
- args: [{ transform: numberAttribute }]
805
- }], hideDelay: [{
806
- type: Input,
807
- args: [{ transform: numberAttribute }]
808
- }], life: [{
809
- type: Input,
810
- args: [{ transform: numberAttribute }]
811
- }], positionTop: [{
812
- type: Input,
813
- args: [{ transform: numberAttribute }]
814
- }], positionLeft: [{
815
- type: Input,
816
- args: [{ transform: numberAttribute }]
817
- }], autoHide: [{
818
- type: Input,
819
- args: [{ transform: booleanAttribute }]
820
- }], fitContent: [{
821
- type: Input,
822
- args: [{ transform: booleanAttribute }]
823
- }], hideOnEscape: [{
824
- type: Input,
825
- args: [{ transform: booleanAttribute }]
826
- }], showOnEllipsis: [{
827
- type: Input,
828
- args: [{ transform: booleanAttribute }]
829
- }], content: [{
830
- type: Input,
831
- args: ['pTooltip']
832
- }], disabled: [{
833
- type: Input,
834
- args: ['tooltipDisabled']
835
- }], tooltipOptions: [{
836
- type: Input
837
- }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], ptTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "ptTooltip", required: false }] }], pTooltipPT: [{ type: i0.Input, args: [{ isSignal: true, alias: "pTooltipPT", required: false }] }], pTooltipUnstyled: [{ type: i0.Input, args: [{ isSignal: true, alias: "pTooltipUnstyled", required: false }] }] } });
758
+ }], ctorParameters: () => [], propDecorators: { tooltipPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPosition", required: false }] }], tooltipEvent: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipEvent", required: false }] }], positionStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "positionStyle", required: false }] }], tooltipStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipStyleClass", required: false }] }], tooltipZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipZIndex", required: false }] }], escape: [{ type: i0.Input, args: [{ isSignal: true, alias: "escape", required: false }] }], showDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "showDelay", required: false }] }], hideDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideDelay", required: false }] }], life: [{ type: i0.Input, args: [{ isSignal: true, alias: "life", required: false }] }], positionTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "positionTop", required: false }] }], positionLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "positionLeft", required: false }] }], autoHide: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoHide", required: false }] }], fitContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "fitContent", required: false }] }], hideOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideOnEscape", required: false }] }], showOnEllipsis: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOnEllipsis", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "pTooltip", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipDisabled", required: false }] }], tooltipOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipOptions", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], ptTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "ptTooltip", required: false }] }], pTooltipPT: [{ type: i0.Input, args: [{ isSignal: true, alias: "pTooltipPT", required: false }] }], pTooltipUnstyled: [{ type: i0.Input, args: [{ isSignal: true, alias: "pTooltipUnstyled", required: false }] }] } });
838
759
  class TooltipModule {
839
760
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
840
761
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: TooltipModule, imports: [Tooltip, BindModule], exports: [Tooltip, BindModule] });