@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
@@ -2,7 +2,7 @@ export * from '@exhaustive-ui/core/types/inplace';
2
2
  import * as i2 from '@angular/common';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, ChangeDetectionStrategy, Component, inject, output, contentChild, contentChildren, booleanAttribute, Input, ViewEncapsulation, NgModule } from '@angular/core';
5
+ import { Injectable, ChangeDetectionStrategy, Component, inject, afterEveryRender, model, input, booleanAttribute, output, contentChild, contentChildren, computed, ViewEncapsulation, NgModule } from '@angular/core';
6
6
  import { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
7
7
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
8
8
  import * as i1 from '@exhaustive-ui/core/bind';
@@ -16,7 +16,7 @@ import { BaseStyle } from '@exhaustive-ui/core/base';
16
16
 
17
17
  const classes = {
18
18
  root: () => ['p-inplace p-component'],
19
- display: ({ instance }) => ['p-inplace-display', { 'p-disabled': instance.disabled }],
19
+ display: ({ instance }) => ['p-inplace-display', { 'p-disabled': instance.disabled() }],
20
20
  content: 'p-inplace-content'
21
21
  };
22
22
  class InplaceStyle extends BaseStyle {
@@ -54,7 +54,6 @@ var InplaceClasses;
54
54
  InplaceClasses["content"] = "p-inplace-content";
55
55
  })(InplaceClasses || (InplaceClasses = {}));
56
56
 
57
- const INPLACE_INSTANCE = new InjectionToken('INPLACE_INSTANCE');
58
57
  class InplaceDisplay extends BaseComponent {
59
58
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InplaceDisplay, deps: null, target: i0.ɵɵFactoryTarget.Component });
60
59
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.1", type: InplaceDisplay, isStandalone: true, selector: "p-inplacedisplay, p-inplaceDisplay", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.Eager });
@@ -64,7 +63,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
64
63
  args: [{
65
64
  changeDetection: ChangeDetectionStrategy.Eager,
66
65
  selector: 'p-inplacedisplay, p-inplaceDisplay',
67
- standalone: true,
68
66
  imports: [],
69
67
  template: '<ng-content></ng-content>'
70
68
  }]
@@ -78,7 +76,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
78
76
  args: [{
79
77
  changeDetection: ChangeDetectionStrategy.Eager,
80
78
  selector: 'p-inplacecontent, p-inplaceContent',
81
- standalone: true,
82
79
  imports: [],
83
80
  template: '<ng-content></ng-content>'
84
81
  }]
@@ -89,49 +86,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
89
86
  */
90
87
  class Inplace extends BaseComponent {
91
88
  componentName = 'Inplace';
92
- $pcInplace = inject(INPLACE_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
93
89
  bindDirectiveInstance = inject(Bind, { self: true });
94
- onAfterViewChecked() {
95
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
90
+ constructor() {
91
+ super();
92
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
96
93
  }
97
94
  /**
98
- * Whether the content is displayed or not.
95
+ * Whether the content is displayed or not, supports one or two-way binding as well.
96
+ * Emits `activeChange` with the new value when the content is activated or deactivated.
99
97
  * @group Props
100
98
  */
101
- active = false;
99
+ active = model(false, /* @ts-ignore */
100
+ ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
102
101
  /**
103
102
  * Displays a button to switch back to display mode.
104
103
  * @deprecated since v20.0.0, use `closeCallback` within content template.
105
104
  * @group Props
106
105
  */
107
- closable = false;
106
+ closable = input(false, { ...(ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
108
107
  /**
109
108
  * When present, it specifies that the element should be disabled.
110
109
  * @group Props
111
110
  */
112
- disabled = false;
111
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
113
112
  /**
114
113
  * Allows to prevent clicking.
115
114
  * @group Props
116
115
  */
117
- preventClick;
118
- /**
119
- * Class of the element.
120
- * @deprecated since v20.0.0, use `class` instead.
121
- * @group Props
122
- */
123
- styleClass;
116
+ preventClick = input(undefined, { ...(ngDevMode ? { debugName: "preventClick" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
124
117
  /**
125
118
  * Icon to display in the close button.
126
119
  * @deprecated since v20.0.0, use `class` instead.
127
120
  * @group Props
128
121
  */
129
- closeIcon;
122
+ closeIcon = input(/* @ts-ignore */
123
+ ...(ngDevMode ? [undefined, { debugName: "closeIcon" }] : /* istanbul ignore next */ []));
130
124
  /**
131
125
  * Establishes a string value that labels the close button.
132
126
  * @group Props
133
127
  */
134
- closeAriaLabel;
128
+ closeAriaLabel = input(/* @ts-ignore */
129
+ ...(ngDevMode ? [undefined, { debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []));
135
130
  /**
136
131
  * Callback to invoke when inplace is opened.
137
132
  * @param {Event} event - Browser event.
@@ -144,7 +139,6 @@ class Inplace extends BaseComponent {
144
139
  * @group Emits
145
140
  */
146
141
  onDeactivate = output();
147
- hover;
148
142
  /**
149
143
  * Custom display template.
150
144
  * @group Templates
@@ -162,11 +156,11 @@ class Inplace extends BaseComponent {
162
156
  closeIconTemplate = contentChild('closeicon', { ...(ngDevMode ? { debugName: "closeIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
163
157
  _componentStyle = inject(InplaceStyle);
164
158
  onActivateClick(event) {
165
- if (!this.preventClick)
159
+ if (!this.preventClick())
166
160
  this.activate(event);
167
161
  }
168
162
  onDeactivateClick(event) {
169
- if (!this.preventClick)
163
+ if (!this.preventClick())
170
164
  this.deactivate(event);
171
165
  }
172
166
  /**
@@ -175,10 +169,9 @@ class Inplace extends BaseComponent {
175
169
  * @group Method
176
170
  */
177
171
  activate(event) {
178
- if (!this.disabled) {
179
- this.active = true;
172
+ if (!this.disabled()) {
173
+ this.active.set(true);
180
174
  this.onActivate.emit(event);
181
- this.cd.markForCheck();
182
175
  }
183
176
  }
184
177
  /**
@@ -187,11 +180,9 @@ class Inplace extends BaseComponent {
187
180
  * @group Method
188
181
  */
189
182
  deactivate(event) {
190
- if (!this.disabled) {
191
- this.active = false;
192
- this.hover = false;
183
+ if (!this.disabled()) {
184
+ this.active.set(false);
193
185
  this.onDeactivate.emit(event);
194
- this.cd.markForCheck();
195
186
  }
196
187
  }
197
188
  onKeydown(event) {
@@ -202,84 +193,77 @@ class Inplace extends BaseComponent {
202
193
  }
203
194
  templates = contentChildren(PrimeTemplate, /* @ts-ignore */
204
195
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
205
- _displayTemplate;
206
- _closeIconTemplate;
207
- _contentTemplate;
208
- onAfterContentInit() {
209
- this.templates()?.forEach((item) => {
210
- switch (item.getType()) {
211
- case 'display':
212
- this._displayTemplate = item.template;
213
- break;
214
- case 'closeicon':
215
- this._closeIconTemplate = item.template;
216
- break;
217
- case 'content':
218
- this._contentTemplate = item.template;
219
- break;
220
- }
221
- });
222
- }
223
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Inplace, deps: null, target: i0.ɵɵFactoryTarget.Component });
224
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Inplace, isStandalone: true, selector: "p-inplace", inputs: { active: ["active", "active", booleanAttribute], closable: ["closable", "closable", booleanAttribute], disabled: ["disabled", "disabled", booleanAttribute], preventClick: ["preventClick", "preventClick", booleanAttribute], styleClass: "styleClass", closeIcon: "closeIcon", closeAriaLabel: "closeAriaLabel" }, outputs: { onActivate: "onActivate", onDeactivate: "onDeactivate" }, host: { properties: { "attr.aria-live": "'polite'", "class": "cn(cx('root'), styleClass)" } }, providers: [InplaceStyle, { provide: INPLACE_INSTANCE, useExisting: Inplace }, { provide: PARENT_INSTANCE, useExisting: Inplace }], queries: [{ propertyName: "displayTemplate", first: true, predicate: ["display"], isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "closeIconTemplate", first: true, predicate: ["closeicon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
225
- @if (!active) {
226
- <div [class]="cx('display')" [pBind]="ptm('display')" (click)="onActivateClick($event)" tabindex="0" role="button" (keydown)="onKeydown($event)" [attr.data-p-disabled]="disabled">
196
+ _displayTemplate = computed(() => this.templates()
197
+ .filter((item) => item.getType() === 'display')
198
+ .at(-1)?.template, /* @ts-ignore */
199
+ ...(ngDevMode ? [{ debugName: "_displayTemplate" }] : /* istanbul ignore next */ []));
200
+ _closeIconTemplate = computed(() => this.templates()
201
+ .filter((item) => item.getType() === 'closeicon')
202
+ .at(-1)?.template, /* @ts-ignore */
203
+ ...(ngDevMode ? [{ debugName: "_closeIconTemplate" }] : /* istanbul ignore next */ []));
204
+ _contentTemplate = computed(() => this.templates()
205
+ .filter((item) => item.getType() === 'content')
206
+ .at(-1)?.template, /* @ts-ignore */
207
+ ...(ngDevMode ? [{ debugName: "_contentTemplate" }] : /* istanbul ignore next */ []));
208
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Inplace, deps: [], target: i0.ɵɵFactoryTarget.Component });
209
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Inplace, isStandalone: true, selector: "p-inplace", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, preventClick: { classPropertyName: "preventClick", publicName: "preventClick", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { active: "activeChange", onActivate: "onActivate", onDeactivate: "onDeactivate" }, host: { properties: { "attr.aria-live": "'polite'", "class": "cx('root')" } }, providers: [InplaceStyle, { provide: PARENT_INSTANCE, useExisting: Inplace }], queries: [{ propertyName: "displayTemplate", first: true, predicate: ["display"], isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "closeIconTemplate", first: true, predicate: ["closeicon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
210
+ @if (!active()) {
211
+ <div [class]="cx('display')" [pBind]="ptm('display')" (click)="onActivateClick($event)" tabindex="0" role="button" (keydown)="onKeydown($event)" [attr.data-p-disabled]="disabled()">
227
212
  <ng-content select="[pInplaceDisplay]"></ng-content>
228
- <ng-container *ngTemplateOutlet="displayTemplate() || _displayTemplate"></ng-container>
213
+ <ng-container *ngTemplateOutlet="displayTemplate() || _displayTemplate()"></ng-container>
229
214
  </div>
230
215
  }
231
- @if (active) {
216
+ @if (active()) {
232
217
  <div [class]="cx('content')" [pBind]="ptm('content')">
233
218
  <ng-content select="[pInplaceContent]"></ng-content>
234
- <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate; context: { closeCallback: onDeactivateClick.bind(this) }"></ng-container>
235
- @if (closable) {
236
- @if (closeIcon) {
237
- <p-button [pt]="ptm('pcButton')" type="button" [icon]="closeIcon" pRipple (click)="onDeactivateClick($event)" [attr.aria-label]="closeAriaLabel"></p-button>
219
+ <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate(); context: { closeCallback: onDeactivateClick.bind(this) }"></ng-container>
220
+ @if (closable()) {
221
+ @if (closeIcon()) {
222
+ <p-button [pt]="ptm('pcButton')" type="button" [icon]="closeIcon()" pRipple (click)="onDeactivateClick($event)" [attr.aria-label]="closeAriaLabel()"></p-button>
238
223
  }
239
- @if (!closeIcon) {
240
- <p-button [pt]="ptm('pcButton')" type="button" pRipple (click)="onDeactivateClick($event)" [attr.aria-label]="closeAriaLabel">
224
+ @if (!closeIcon()) {
225
+ <p-button [pt]="ptm('pcButton')" type="button" pRipple (click)="onDeactivateClick($event)" [attr.aria-label]="closeAriaLabel()">
241
226
  <ng-template #icon>
242
- @if (!closeIconTemplate() && !_closeIconTemplate) {
227
+ @if (!closeIconTemplate() && !_closeIconTemplate()) {
243
228
  <svg data-p-icon="times" />
244
229
  }
245
230
  </ng-template>
246
- <ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate"></ng-template>
231
+ <ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate()"></ng-template>
247
232
  </p-button>
248
233
  }
249
234
  }
250
235
  </div>
251
236
  }
252
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
237
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
253
238
  }
254
239
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Inplace, decorators: [{
255
240
  type: Component,
256
241
  args: [{
257
242
  selector: 'p-inplace',
258
- standalone: true,
259
243
  imports: [CommonModule, ButtonModule, TimesIcon, SharedModule, Ripple, Bind],
260
244
  template: `
261
- @if (!active) {
262
- <div [class]="cx('display')" [pBind]="ptm('display')" (click)="onActivateClick($event)" tabindex="0" role="button" (keydown)="onKeydown($event)" [attr.data-p-disabled]="disabled">
245
+ @if (!active()) {
246
+ <div [class]="cx('display')" [pBind]="ptm('display')" (click)="onActivateClick($event)" tabindex="0" role="button" (keydown)="onKeydown($event)" [attr.data-p-disabled]="disabled()">
263
247
  <ng-content select="[pInplaceDisplay]"></ng-content>
264
- <ng-container *ngTemplateOutlet="displayTemplate() || _displayTemplate"></ng-container>
248
+ <ng-container *ngTemplateOutlet="displayTemplate() || _displayTemplate()"></ng-container>
265
249
  </div>
266
250
  }
267
- @if (active) {
251
+ @if (active()) {
268
252
  <div [class]="cx('content')" [pBind]="ptm('content')">
269
253
  <ng-content select="[pInplaceContent]"></ng-content>
270
- <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate; context: { closeCallback: onDeactivateClick.bind(this) }"></ng-container>
271
- @if (closable) {
272
- @if (closeIcon) {
273
- <p-button [pt]="ptm('pcButton')" type="button" [icon]="closeIcon" pRipple (click)="onDeactivateClick($event)" [attr.aria-label]="closeAriaLabel"></p-button>
254
+ <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate(); context: { closeCallback: onDeactivateClick.bind(this) }"></ng-container>
255
+ @if (closable()) {
256
+ @if (closeIcon()) {
257
+ <p-button [pt]="ptm('pcButton')" type="button" [icon]="closeIcon()" pRipple (click)="onDeactivateClick($event)" [attr.aria-label]="closeAriaLabel()"></p-button>
274
258
  }
275
- @if (!closeIcon) {
276
- <p-button [pt]="ptm('pcButton')" type="button" pRipple (click)="onDeactivateClick($event)" [attr.aria-label]="closeAriaLabel">
259
+ @if (!closeIcon()) {
260
+ <p-button [pt]="ptm('pcButton')" type="button" pRipple (click)="onDeactivateClick($event)" [attr.aria-label]="closeAriaLabel()">
277
261
  <ng-template #icon>
278
- @if (!closeIconTemplate() && !_closeIconTemplate) {
262
+ @if (!closeIconTemplate() && !_closeIconTemplate()) {
279
263
  <svg data-p-icon="times" />
280
264
  }
281
265
  </ng-template>
282
- <ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate"></ng-template>
266
+ <ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate()"></ng-template>
283
267
  </p-button>
284
268
  }
285
269
  }
@@ -288,32 +272,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
288
272
  `,
289
273
  changeDetection: ChangeDetectionStrategy.OnPush,
290
274
  encapsulation: ViewEncapsulation.None,
291
- providers: [InplaceStyle, { provide: INPLACE_INSTANCE, useExisting: Inplace }, { provide: PARENT_INSTANCE, useExisting: Inplace }],
275
+ providers: [InplaceStyle, { provide: PARENT_INSTANCE, useExisting: Inplace }],
292
276
  host: {
293
277
  '[attr.aria-live]': "'polite'",
294
- '[class]': "cn(cx('root'), styleClass)"
278
+ '[class]': "cx('root')"
295
279
  },
296
280
  hostDirectives: [Bind]
297
281
  }]
298
- }], propDecorators: { active: [{
299
- type: Input,
300
- args: [{ transform: booleanAttribute }]
301
- }], closable: [{
302
- type: Input,
303
- args: [{ transform: booleanAttribute }]
304
- }], disabled: [{
305
- type: Input,
306
- args: [{ transform: booleanAttribute }]
307
- }], preventClick: [{
308
- type: Input,
309
- args: [{ transform: booleanAttribute }]
310
- }], styleClass: [{
311
- type: Input
312
- }], closeIcon: [{
313
- type: Input
314
- }], closeAriaLabel: [{
315
- type: Input
316
- }], onActivate: [{ type: i0.Output, args: ["onActivate"] }], onDeactivate: [{ type: i0.Output, args: ["onDeactivate"] }], displayTemplate: [{ type: i0.ContentChild, args: ['display', { ...{ descendants: false }, isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], closeIconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
282
+ }], ctorParameters: () => [], propDecorators: { active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }, { type: i0.Output, args: ["activeChange"] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], preventClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "preventClick", required: false }] }], closeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeIcon", required: false }] }], closeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeAriaLabel", required: false }] }], onActivate: [{ type: i0.Output, args: ["onActivate"] }], onDeactivate: [{ type: i0.Output, args: ["onDeactivate"] }], displayTemplate: [{ type: i0.ContentChild, args: ['display', { ...{ descendants: false }, isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], closeIconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
317
283
  class InplaceModule {
318
284
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InplaceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
319
285
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: InplaceModule, imports: [Inplace, InplaceContent, InplaceDisplay, SharedModule], exports: [Inplace, InplaceContent, InplaceDisplay, SharedModule] });
@@ -1 +1 @@
1
- {"version":3,"file":"exhaustive-ui-core-inplace.mjs","sources":["../../src/inplace/style/inplacestyle.ts","../../src/inplace/inplace.ts","../../src/inplace/exhaustive-ui-core-inplace.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/inplace';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: () => ['p-inplace p-component'],\n display: ({ instance }) => ['p-inplace-display', { 'p-disabled': instance.disabled }],\n content: 'p-inplace-content'\n};\n\n@Injectable()\nexport class InplaceStyle extends BaseStyle {\n name = 'inplace';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Inplace provides an easy to do editing and display at the same time where clicking the output displays the actual content.\n *\n * [Live Demo](https://exhaustive-ui.e-xiste.com/inplace)\n *\n * @module inplacestyle\n *\n */\nexport enum InplaceClasses {\n /**\n * Class name of the root element\n */\n root = 'p-inplace',\n /**\n * Class name of the display element\n */\n display = 'p-inplace-display',\n /**\n * Class name of the content element\n */\n content = 'p-inplace-content'\n}\n\nexport interface InplaceStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport { AfterContentInit, booleanAttribute, ChangeDetectionStrategy, Component, inject, InjectionToken, Input, NgModule, TemplateRef, ViewEncapsulation, contentChild, contentChildren, output } from '@angular/core';\nimport { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { TimesIcon } from '@exhaustive-ui/core/icons';\nimport { Ripple } from '@exhaustive-ui/core/ripple';\nimport { InplaceContentTemplateContext, InplacePassThrough } from '@exhaustive-ui/core/types/inplace';\nimport { InplaceStyle } from './style/inplacestyle';\n\nconst INPLACE_INSTANCE = new InjectionToken<Inplace>('INPLACE_INSTANCE');\n\n@Component({\n changeDetection: ChangeDetectionStrategy.Eager,\n selector: 'p-inplacedisplay, p-inplaceDisplay',\n standalone: true,\n imports: [],\n template: '<ng-content></ng-content>'\n})\nexport class InplaceDisplay extends BaseComponent {}\n\n@Component({\n changeDetection: ChangeDetectionStrategy.Eager,\n selector: 'p-inplacecontent, p-inplaceContent',\n standalone: true,\n imports: [],\n template: '<ng-content></ng-content>'\n})\nexport class InplaceContent extends BaseComponent {}\n/**\n * Inplace provides an easy to do editing and display at the same time where clicking the output displays the actual content.\n * @group Components\n */\n@Component({\n selector: 'p-inplace',\n standalone: true,\n imports: [CommonModule, ButtonModule, TimesIcon, SharedModule, Ripple, Bind],\n template: `\n @if (!active) {\n <div [class]=\"cx('display')\" [pBind]=\"ptm('display')\" (click)=\"onActivateClick($event)\" tabindex=\"0\" role=\"button\" (keydown)=\"onKeydown($event)\" [attr.data-p-disabled]=\"disabled\">\n <ng-content select=\"[pInplaceDisplay]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"displayTemplate() || _displayTemplate\"></ng-container>\n </div>\n }\n @if (active) {\n <div [class]=\"cx('content')\" [pBind]=\"ptm('content')\">\n <ng-content select=\"[pInplaceContent]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate() || _contentTemplate; context: { closeCallback: onDeactivateClick.bind(this) }\"></ng-container>\n @if (closable) {\n @if (closeIcon) {\n <p-button [pt]=\"ptm('pcButton')\" type=\"button\" [icon]=\"closeIcon\" pRipple (click)=\"onDeactivateClick($event)\" [attr.aria-label]=\"closeAriaLabel\"></p-button>\n }\n @if (!closeIcon) {\n <p-button [pt]=\"ptm('pcButton')\" type=\"button\" pRipple (click)=\"onDeactivateClick($event)\" [attr.aria-label]=\"closeAriaLabel\">\n <ng-template #icon>\n @if (!closeIconTemplate() && !_closeIconTemplate) {\n <svg data-p-icon=\"times\" />\n }\n </ng-template>\n <ng-template *ngTemplateOutlet=\"closeIconTemplate() || _closeIconTemplate\"></ng-template>\n </p-button>\n }\n }\n </div>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [InplaceStyle, { provide: INPLACE_INSTANCE, useExisting: Inplace }, { provide: PARENT_INSTANCE, useExisting: Inplace }],\n host: {\n '[attr.aria-live]': \"'polite'\",\n '[class]': \"cn(cx('root'), styleClass)\"\n },\n hostDirectives: [Bind]\n})\nexport class Inplace extends BaseComponent<InplacePassThrough> {\n componentName = 'Inplace';\n\n $pcInplace: Inplace | undefined = inject(INPLACE_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n onAfterViewChecked(): void {\n this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));\n }\n\n /**\n * Whether the content is displayed or not.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) active: boolean | undefined = false;\n /**\n * Displays a button to switch back to display mode.\n * @deprecated since v20.0.0, use `closeCallback` within content template.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) closable: boolean | undefined = false;\n /**\n * When present, it specifies that the element should be disabled.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) disabled: boolean | undefined = false;\n /**\n * Allows to prevent clicking.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) preventClick: boolean | undefined;\n /**\n * Class of the element.\n * @deprecated since v20.0.0, use `class` instead.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Icon to display in the close button.\n * @deprecated since v20.0.0, use `class` instead.\n * @group Props\n */\n @Input() closeIcon: string | undefined;\n /**\n * Establishes a string value that labels the close button.\n * @group Props\n */\n @Input() closeAriaLabel: string | undefined;\n /**\n * Callback to invoke when inplace is opened.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n readonly onActivate = output<Event | undefined>();\n /**\n * Callback to invoke when inplace is closed.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n readonly onDeactivate = output<Event | undefined>();\n\n hover!: boolean;\n /**\n * Custom display template.\n * @group Templates\n */\n readonly displayTemplate = contentChild<TemplateRef<void>>('display', { descendants: false });\n /**\n * Custom content template.\n * @group Templates\n */\n readonly contentTemplate = contentChild<TemplateRef<InplaceContentTemplateContext>>('content', { descendants: false });\n /**\n * Custom close icon template.\n * @group Templates\n */\n readonly closeIconTemplate = contentChild<TemplateRef<void>>('closeicon', { descendants: false });\n\n _componentStyle = inject(InplaceStyle);\n\n onActivateClick(event: MouseEvent) {\n if (!this.preventClick) this.activate(event);\n }\n\n onDeactivateClick(event: MouseEvent) {\n if (!this.preventClick) this.deactivate(event);\n }\n /**\n * Activates the content.\n * @param {Event} event - Browser event.\n * @group Method\n */\n activate(event?: Event) {\n if (!this.disabled) {\n this.active = true;\n this.onActivate.emit(event);\n this.cd.markForCheck();\n }\n }\n /**\n * Deactivates the content.\n * @param {Event} event - Browser event.\n * @group Method\n */\n deactivate(event?: Event) {\n if (!this.disabled) {\n this.active = false;\n this.hover = false;\n this.onDeactivate.emit(event);\n this.cd.markForCheck();\n }\n }\n\n onKeydown(event: KeyboardEvent) {\n if (event.code === 'Enter') {\n this.activate(event);\n event.preventDefault();\n }\n }\n\n readonly templates = contentChildren(PrimeTemplate);\n\n _displayTemplate: TemplateRef<void> | undefined;\n\n _closeIconTemplate: TemplateRef<void> | undefined;\n\n _contentTemplate: TemplateRef<InplaceContentTemplateContext> | undefined;\n\n onAfterContentInit() {\n this.templates()?.forEach((item) => {\n switch (item.getType()) {\n case 'display':\n this._displayTemplate = item.template;\n break;\n\n case 'closeicon':\n this._closeIconTemplate = item.template;\n break;\n\n case 'content':\n this._contentTemplate = item.template;\n break;\n }\n });\n }\n}\n\n@NgModule({\n imports: [Inplace, InplaceContent, InplaceDisplay, SharedModule],\n exports: [Inplace, InplaceContent, InplaceDisplay, SharedModule]\n})\nexport class InplaceModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,MAAM,CAAC,uBAAuB,CAAC;AACrC,IAAA,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,mBAAmB,EAAE,EAAE,YAAY,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC;AACrF,IAAA,OAAO,EAAE;CACZ;AAGK,MAAO,YAAa,SAAQ,SAAS,CAAA;IACvC,IAAI,GAAG,SAAS;IAEhB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAZ,YAAY,EAAA,CAAA;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AAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MA4C3D,aAAa,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;MA+BzC,aAAa,CAAA;uGAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAAA,OAAA,EAAA,CAxJb,OAAO,EA/CP,cAAc,EATd,cAAc,EA6M4B,YAAY,CAAA,EAAA,OAAA,EAAA,CArJtD,OAAO,EA/CP,cAAc,EATd,cAAc,EA8M4B,YAAY,CAAA,EAAA,CAAA;AAEtD,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAAA,OAAA,EAAA,CAHZ,OAAO,EAAkC,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEtD,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,CAAC;oBAChE,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY;AAClE,iBAAA;;;ACnOD;;AAEG;;;;"}
1
+ {"version":3,"file":"exhaustive-ui-core-inplace.mjs","sources":["../../src/inplace/style/inplacestyle.ts","../../src/inplace/inplace.ts","../../src/inplace/exhaustive-ui-core-inplace.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/inplace';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: () => ['p-inplace p-component'],\n display: ({ instance }) => ['p-inplace-display', { 'p-disabled': instance.disabled() }],\n content: 'p-inplace-content'\n};\n\n@Injectable()\nexport class InplaceStyle extends BaseStyle {\n name = 'inplace';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Inplace provides an easy to do editing and display at the same time where clicking the output displays the actual content.\n *\n * [Live Demo](https://exhaustive-ui.e-xiste.com/inplace)\n *\n * @module inplacestyle\n *\n */\nexport enum InplaceClasses {\n /**\n * Class name of the root element\n */\n root = 'p-inplace',\n /**\n * Class name of the display element\n */\n display = 'p-inplace-display',\n /**\n * Class name of the content element\n */\n content = 'p-inplace-content'\n}\n\nexport interface InplaceStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport { afterEveryRender, booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, input, model, NgModule, TemplateRef, ViewEncapsulation, contentChild, contentChildren, output } from '@angular/core';\nimport { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { TimesIcon } from '@exhaustive-ui/core/icons';\nimport { Ripple } from '@exhaustive-ui/core/ripple';\nimport { InplaceContentTemplateContext, InplacePassThrough } from '@exhaustive-ui/core/types/inplace';\nimport { InplaceStyle } from './style/inplacestyle';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.Eager,\n selector: 'p-inplacedisplay, p-inplaceDisplay',\n imports: [],\n template: '<ng-content></ng-content>'\n})\nexport class InplaceDisplay extends BaseComponent {}\n\n@Component({\n changeDetection: ChangeDetectionStrategy.Eager,\n selector: 'p-inplacecontent, p-inplaceContent',\n imports: [],\n template: '<ng-content></ng-content>'\n})\nexport class InplaceContent extends BaseComponent {}\n/**\n * Inplace provides an easy to do editing and display at the same time where clicking the output displays the actual content.\n * @group Components\n */\n@Component({\n selector: 'p-inplace',\n imports: [CommonModule, ButtonModule, TimesIcon, SharedModule, Ripple, Bind],\n template: `\n @if (!active()) {\n <div [class]=\"cx('display')\" [pBind]=\"ptm('display')\" (click)=\"onActivateClick($event)\" tabindex=\"0\" role=\"button\" (keydown)=\"onKeydown($event)\" [attr.data-p-disabled]=\"disabled()\">\n <ng-content select=\"[pInplaceDisplay]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"displayTemplate() || _displayTemplate()\"></ng-container>\n </div>\n }\n @if (active()) {\n <div [class]=\"cx('content')\" [pBind]=\"ptm('content')\">\n <ng-content select=\"[pInplaceContent]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate() || _contentTemplate(); context: { closeCallback: onDeactivateClick.bind(this) }\"></ng-container>\n @if (closable()) {\n @if (closeIcon()) {\n <p-button [pt]=\"ptm('pcButton')\" type=\"button\" [icon]=\"closeIcon()\" pRipple (click)=\"onDeactivateClick($event)\" [attr.aria-label]=\"closeAriaLabel()\"></p-button>\n }\n @if (!closeIcon()) {\n <p-button [pt]=\"ptm('pcButton')\" type=\"button\" pRipple (click)=\"onDeactivateClick($event)\" [attr.aria-label]=\"closeAriaLabel()\">\n <ng-template #icon>\n @if (!closeIconTemplate() && !_closeIconTemplate()) {\n <svg data-p-icon=\"times\" />\n }\n </ng-template>\n <ng-template *ngTemplateOutlet=\"closeIconTemplate() || _closeIconTemplate()\"></ng-template>\n </p-button>\n }\n }\n </div>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [InplaceStyle, { provide: PARENT_INSTANCE, useExisting: Inplace }],\n host: {\n '[attr.aria-live]': \"'polite'\",\n '[class]': \"cx('root')\"\n },\n hostDirectives: [Bind]\n})\nexport class Inplace extends BaseComponent<InplacePassThrough> {\n componentName = 'Inplace';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));\n }\n\n /**\n * Whether the content is displayed or not, supports one or two-way binding as well.\n * Emits `activeChange` with the new value when the content is activated or deactivated.\n * @group Props\n */\n readonly active = model<boolean | undefined>(false);\n /**\n * Displays a button to switch back to display mode.\n * @deprecated since v20.0.0, use `closeCallback` within content template.\n * @group Props\n */\n readonly closable = input<boolean | undefined, unknown>(false, { transform: booleanAttribute });\n /**\n * When present, it specifies that the element should be disabled.\n * @group Props\n */\n readonly disabled = input<boolean | undefined, unknown>(false, { transform: booleanAttribute });\n /**\n * Allows to prevent clicking.\n * @group Props\n */\n readonly preventClick = input<boolean | undefined, unknown>(undefined, { transform: booleanAttribute });\n /**\n * Icon to display in the close button.\n * @deprecated since v20.0.0, use `class` instead.\n * @group Props\n */\n readonly closeIcon = input<string | undefined>();\n /**\n * Establishes a string value that labels the close button.\n * @group Props\n */\n readonly closeAriaLabel = input<string | undefined>();\n /**\n * Callback to invoke when inplace is opened.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n readonly onActivate = output<Event | undefined>();\n /**\n * Callback to invoke when inplace is closed.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n readonly onDeactivate = output<Event | undefined>();\n\n /**\n * Custom display template.\n * @group Templates\n */\n readonly displayTemplate = contentChild<TemplateRef<void>>('display', { descendants: false });\n /**\n * Custom content template.\n * @group Templates\n */\n readonly contentTemplate = contentChild<TemplateRef<InplaceContentTemplateContext>>('content', { descendants: false });\n /**\n * Custom close icon template.\n * @group Templates\n */\n readonly closeIconTemplate = contentChild<TemplateRef<void>>('closeicon', { descendants: false });\n\n _componentStyle = inject(InplaceStyle);\n\n onActivateClick(event: MouseEvent) {\n if (!this.preventClick()) this.activate(event);\n }\n\n onDeactivateClick(event: MouseEvent) {\n if (!this.preventClick()) this.deactivate(event);\n }\n /**\n * Activates the content.\n * @param {Event} event - Browser event.\n * @group Method\n */\n activate(event?: Event) {\n if (!this.disabled()) {\n this.active.set(true);\n this.onActivate.emit(event);\n }\n }\n /**\n * Deactivates the content.\n * @param {Event} event - Browser event.\n * @group Method\n */\n deactivate(event?: Event) {\n if (!this.disabled()) {\n this.active.set(false);\n this.onDeactivate.emit(event);\n }\n }\n\n onKeydown(event: KeyboardEvent) {\n if (event.code === 'Enter') {\n this.activate(event);\n event.preventDefault();\n }\n }\n\n readonly templates = contentChildren(PrimeTemplate);\n\n readonly _displayTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'display')\n .at(-1)?.template\n );\n\n readonly _closeIconTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'closeicon')\n .at(-1)?.template\n );\n\n readonly _contentTemplate = computed<TemplateRef<InplaceContentTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'content')\n .at(-1)?.template\n );\n}\n\n@NgModule({\n imports: [Inplace, InplaceContent, InplaceDisplay, SharedModule],\n exports: [Inplace, InplaceContent, InplaceDisplay, SharedModule]\n})\nexport class InplaceModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,MAAM,CAAC,uBAAuB,CAAC;AACrC,IAAA,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,mBAAmB,EAAE,EAAE,YAAY,EAAE,QAAQ,CAAC,QAAQ,EAAE,EAAE,CAAC;AACvF,IAAA,OAAO,EAAE;CACZ;AAGK,MAAO,YAAa,SAAQ,SAAS,CAAA;IACvC,IAAI,GAAG,SAAS;IAEhB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAZ,YAAY,EAAA,CAAA;;2FAA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E,YAAY,CAAC;oBAChE,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY;AAClE,iBAAA;;;ACjND;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, InjectionToken, inject, Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
2
+ import { Injectable, inject, afterEveryRender, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
3
  import { SharedModule } from '@exhaustive-ui/core/api';
4
4
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
5
5
  import * as i1 from '@exhaustive-ui/core/bind';
@@ -77,7 +77,6 @@ var InputGroupClasses;
77
77
  InputGroupClasses["root"] = "p-inputgroup";
78
78
  })(InputGroupClasses || (InputGroupClasses = {}));
79
79
 
80
- const INPUTGROUP_INSTANCE = new InjectionToken('INPUTGROUP_INSTANCE');
81
80
  /**
82
81
  * InputGroup displays text, icon, buttons and other content can be grouped next to an input.
83
82
  * @group Components
@@ -85,37 +84,28 @@ const INPUTGROUP_INSTANCE = new InjectionToken('INPUTGROUP_INSTANCE');
85
84
  class InputGroup extends BaseComponent {
86
85
  componentName = 'InputGroup';
87
86
  _componentStyle = inject(InputGroupStyle);
88
- $pcInputGroup = inject(INPUTGROUP_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
89
87
  bindDirectiveInstance = inject(Bind, { self: true });
90
- onAfterViewChecked() {
91
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
88
+ constructor() {
89
+ super();
90
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
92
91
  }
93
- /**
94
- * Class of the element.
95
- * @deprecated since v20.0.0, use `class` instead.
96
- * @group Props
97
- */
98
- styleClass;
99
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputGroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
100
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.1", type: InputGroup, isStandalone: true, selector: "p-inputgroup, p-inputGroup, p-input-group", inputs: { styleClass: "styleClass" }, host: { properties: { "class": "cn(cx('root'), styleClass)" } }, providers: [InputGroupStyle, { provide: INPUTGROUP_INSTANCE, useExisting: InputGroup }, { provide: PARENT_INSTANCE, useExisting: InputGroup }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.Eager });
92
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
93
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.1", type: InputGroup, isStandalone: true, selector: "p-inputgroup, p-inputGroup, p-input-group", host: { properties: { "class": "cx('root')" } }, providers: [InputGroupStyle, { provide: PARENT_INSTANCE, useExisting: InputGroup }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
101
94
  }
102
95
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputGroup, decorators: [{
103
96
  type: Component,
104
97
  args: [{
105
- changeDetection: ChangeDetectionStrategy.Eager,
98
+ changeDetection: ChangeDetectionStrategy.OnPush,
106
99
  selector: 'p-inputgroup, p-inputGroup, p-input-group',
107
- standalone: true,
108
100
  imports: [BindModule],
109
101
  template: ` <ng-content></ng-content> `,
110
- providers: [InputGroupStyle, { provide: INPUTGROUP_INSTANCE, useExisting: InputGroup }, { provide: PARENT_INSTANCE, useExisting: InputGroup }],
102
+ providers: [InputGroupStyle, { provide: PARENT_INSTANCE, useExisting: InputGroup }],
111
103
  hostDirectives: [Bind],
112
104
  host: {
113
- '[class]': "cn(cx('root'), styleClass)"
105
+ '[class]': "cx('root')"
114
106
  }
115
107
  }]
116
- }], propDecorators: { styleClass: [{
117
- type: Input
118
- }] } });
108
+ }], ctorParameters: () => [] });
119
109
  class InputGroupModule {
120
110
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
121
111
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: InputGroupModule, imports: [InputGroup, SharedModule], exports: [InputGroup, SharedModule] });
@@ -1 +1 @@
1
- {"version":3,"file":"exhaustive-ui-core-inputgroup.mjs","sources":["../../src/inputgroup/style/inputgroupstyle.ts","../../src/inputgroup/inputgroup.ts","../../src/inputgroup/exhaustive-ui-core-inputgroup.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style as inputgroup_style } from '@exhaustive-ui/styles/inputgroup';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst style = /*css*/ `\n ${inputgroup_style}\n\n /*For Exhaustive */\n\n .p-inputgroup > .p-component,\n .p-inputgroup > .p-inputwrapper > .p-component,\n .p-inputgroup:first-child > p-button > .p-button,\n .p-inputgroup > .p-floatlabel > .p-component,\n .p-inputgroup > .p-floatlabel > .p-inputwrapper > .p-component,\n .p-inputgroup > .p-iftalabel > .p-component,\n .p-inputgroup > .p-iftalabel > .p-inputwrapper > .p-component {\n border-radius: 0;\n margin: 0;\n }\n\n .p-inputgroup p-button:first-child,\n .p-inputgroup p-button:last-child {\n display: inline-flex;\n }\n\n .p-inputgroup:has(> p-button:first-child) .p-button {\n border-start-start-radius: dt('inputgroup.addon.border.radius');\n border-end-start-radius: dt('inputgroup.addon.border.radius');\n }\n\n .p-inputgroup:has(> p-button:last-child) .p-button {\n border-start-end-radius: dt('inputgroup.addon.border.radius');\n border-end-end-radius: dt('inputgroup.addon.border.radius');\n }\n\n .p-inputgroup > p-inputmask > .p-inputtext {\n width: 100%;\n }\n`;\n\nconst classes = {\n root: ({ instance }) => [\n 'p-inputgroup',\n {\n 'p-inputgroup-fluid': instance.fluid\n }\n ]\n};\n\n@Injectable()\nexport class InputGroupStyle extends BaseStyle {\n name = 'inputgroup';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * InputGroup displays text, icon, buttons and other content can be grouped next to an input.\n *\n * [Live Demo](https://exhaustive-ui.e-xiste.com/inputgroup/)\n *\n * @module inputgroupstyle\n *\n */\n\nexport enum InputGroupClasses {\n /**\n * Class name of the root element\n */\n root = 'p-inputgroup'\n}\n\nexport interface InputGroupStyle extends BaseStyle {}\n","import { ChangeDetectionStrategy, Component, inject, InjectionToken, Input, NgModule } from '@angular/core';\nimport { SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind, BindModule } from '@exhaustive-ui/core/bind';\nimport { InputGroupPassThrough } from '@exhaustive-ui/core/types/inputgroup';\nimport { InputGroupStyle } from './style/inputgroupstyle';\n\nconst INPUTGROUP_INSTANCE = new InjectionToken<InputGroup>('INPUTGROUP_INSTANCE');\n\n/**\n * InputGroup displays text, icon, buttons and other content can be grouped next to an input.\n * @group Components\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.Eager,\n selector: 'p-inputgroup, p-inputGroup, p-input-group',\n standalone: true,\n imports: [BindModule],\n template: ` <ng-content></ng-content> `,\n providers: [InputGroupStyle, { provide: INPUTGROUP_INSTANCE, useExisting: InputGroup }, { provide: PARENT_INSTANCE, useExisting: InputGroup }],\n hostDirectives: [Bind],\n host: {\n '[class]': \"cn(cx('root'), styleClass)\"\n }\n})\nexport class InputGroup extends BaseComponent<InputGroupPassThrough> {\n componentName = 'InputGroup';\n\n _componentStyle = inject(InputGroupStyle);\n\n $pcInputGroup: InputGroup | undefined = inject(INPUTGROUP_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n onAfterViewChecked(): void {\n this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));\n }\n\n /**\n * Class of the element.\n * @deprecated since v20.0.0, use `class` instead.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n}\n\n@NgModule({\n imports: [InputGroup, SharedModule],\n exports: [InputGroup, SharedModule]\n})\nexport class InputGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["inputgroup_style"],"mappings":";;;;;;;;;AAIA,MAAM,KAAK,WAAW;MAChBA,OAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCrB;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,cAAc;AACd,QAAA;YACI,oBAAoB,EAAE,QAAQ,CAAC;AAClC;AACJ;CACJ;AAGK,MAAO,eAAgB,SAAQ,SAAS,CAAA;IAC1C,IAAI,GAAG,YAAY;IAEnB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAf,eAAe,EAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B;;AASD;;;;;;;;AAQG;IAES;AAAZ,CAAA,UAAY,iBAAiB,EAAA;AACzB;;AAEG;AACH,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,cAAqB;AACzB,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,GAAA,EAAA,CAAA,CAAA;;AC7D7B,MAAM,mBAAmB,GAAG,IAAI,cAAc,CAAa,qBAAqB,CAAC;AAEjF;;;AAGG;AAaG,MAAO,UAAW,SAAQ,aAAoC,CAAA;IAChE,aAAa,GAAG,YA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AAE,CAAC,UAAU,EAAE,YAAY,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY;AACrC,iBAAA;;;ACjDD;;AAEG;;;;"}
1
+ {"version":3,"file":"exhaustive-ui-core-inputgroup.mjs","sources":["../../src/inputgroup/style/inputgroupstyle.ts","../../src/inputgroup/inputgroup.ts","../../src/inputgroup/exhaustive-ui-core-inputgroup.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style as inputgroup_style } from '@exhaustive-ui/styles/inputgroup';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst style = /*css*/ `\n ${inputgroup_style}\n\n /*For Exhaustive */\n\n .p-inputgroup > .p-component,\n .p-inputgroup > .p-inputwrapper > .p-component,\n .p-inputgroup:first-child > p-button > .p-button,\n .p-inputgroup > .p-floatlabel > .p-component,\n .p-inputgroup > .p-floatlabel > .p-inputwrapper > .p-component,\n .p-inputgroup > .p-iftalabel > .p-component,\n .p-inputgroup > .p-iftalabel > .p-inputwrapper > .p-component {\n border-radius: 0;\n margin: 0;\n }\n\n .p-inputgroup p-button:first-child,\n .p-inputgroup p-button:last-child {\n display: inline-flex;\n }\n\n .p-inputgroup:has(> p-button:first-child) .p-button {\n border-start-start-radius: dt('inputgroup.addon.border.radius');\n border-end-start-radius: dt('inputgroup.addon.border.radius');\n }\n\n .p-inputgroup:has(> p-button:last-child) .p-button {\n border-start-end-radius: dt('inputgroup.addon.border.radius');\n border-end-end-radius: dt('inputgroup.addon.border.radius');\n }\n\n .p-inputgroup > p-inputmask > .p-inputtext {\n width: 100%;\n }\n`;\n\nconst classes = {\n root: ({ instance }) => [\n 'p-inputgroup',\n {\n 'p-inputgroup-fluid': instance.fluid\n }\n ]\n};\n\n@Injectable()\nexport class InputGroupStyle extends BaseStyle {\n name = 'inputgroup';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * InputGroup displays text, icon, buttons and other content can be grouped next to an input.\n *\n * [Live Demo](https://exhaustive-ui.e-xiste.com/inputgroup/)\n *\n * @module inputgroupstyle\n *\n */\n\nexport enum InputGroupClasses {\n /**\n * Class name of the root element\n */\n root = 'p-inputgroup'\n}\n\nexport interface InputGroupStyle extends BaseStyle {}\n","import { afterEveryRender, ChangeDetectionStrategy, Component, inject, NgModule } from '@angular/core';\nimport { SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind, BindModule } from '@exhaustive-ui/core/bind';\nimport { InputGroupPassThrough } from '@exhaustive-ui/core/types/inputgroup';\nimport { InputGroupStyle } from './style/inputgroupstyle';\n\n/**\n * InputGroup displays text, icon, buttons and other content can be grouped next to an input.\n * @group Components\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'p-inputgroup, p-inputGroup, p-input-group',\n imports: [BindModule],\n template: ` <ng-content></ng-content> `,\n providers: [InputGroupStyle, { provide: PARENT_INSTANCE, useExisting: InputGroup }],\n hostDirectives: [Bind],\n host: {\n '[class]': \"cx('root')\"\n }\n})\nexport class InputGroup extends BaseComponent<InputGroupPassThrough> {\n componentName = 'InputGroup';\n\n _componentStyle = inject(InputGroupStyle);\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));\n }\n}\n\n@NgModule({\n imports: [InputGroup, SharedModule],\n exports: [InputGroup, SharedModule]\n})\nexport class InputGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["inputgroup_style"],"mappings":";;;;;;;;;AAIA,MAAM,KAAK,WAAW;MAChBA,OAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCrB;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,cAAc;AACd,QAAA;YACI,oBAAoB,EAAE,QAAQ,CAAC;AAClC;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,YAAY,CAAA,EAAA,CAAA;;2FAEzB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY;AACrC,iBAAA;;;ACtCD;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, InjectionToken, inject, HostBinding, Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
2
+ import { Injectable, inject, afterEveryRender, input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
3
  import { SharedModule } from '@exhaustive-ui/core/api';
4
4
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
5
5
  import * as i1 from '@exhaustive-ui/core/bind';
@@ -19,7 +19,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
19
19
  type: Injectable
20
20
  }] });
21
21
 
22
- const INPUTGROUPADDON_INSTANCE = new InjectionToken('INPUTGROUPADDON_INSTANCE');
23
22
  /**
24
23
  * InputGroupAddon displays text, icon, buttons and other content can be grouped next to an input.
25
24
  * @group Components
@@ -27,49 +26,41 @@ const INPUTGROUPADDON_INSTANCE = new InjectionToken('INPUTGROUPADDON_INSTANCE');
27
26
  class InputGroupAddon extends BaseComponent {
28
27
  componentName = 'InputGroupAddon';
29
28
  _componentStyle = inject(InputGroupAddonStyle);
30
- $pcInputGroupAddon = inject(INPUTGROUPADDON_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
31
29
  bindDirectiveInstance = inject(Bind, { self: true });
32
- onAfterViewChecked() {
33
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
30
+ constructor() {
31
+ super();
32
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
34
33
  }
35
34
  /**
36
35
  * Inline style of the element.
37
36
  * @group Props
38
37
  */
39
- style;
38
+ style = input(/* @ts-ignore */
39
+ ...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
40
40
  /**
41
41
  * Class of the element.
42
42
  * @group Props
43
43
  */
44
- styleClass;
45
- get hostStyle() {
46
- return this.style;
47
- }
48
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputGroupAddon, deps: null, target: i0.ɵɵFactoryTarget.Component });
49
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.1", type: InputGroupAddon, isStandalone: true, selector: "p-inputgroup-addon, p-inputGroupAddon", inputs: { style: "style", styleClass: "styleClass" }, host: { properties: { "class": "cn(cx('root'), styleClass)", "style": "this.hostStyle" } }, providers: [InputGroupAddonStyle, { provide: INPUTGROUPADDON_INSTANCE, useExisting: InputGroupAddon }, { provide: PARENT_INSTANCE, useExisting: InputGroupAddon }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.Eager });
44
+ styleClass = input(/* @ts-ignore */
45
+ ...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
46
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputGroupAddon, deps: [], target: i0.ɵɵFactoryTarget.Component });
47
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.1", type: InputGroupAddon, isStandalone: true, selector: "p-inputgroup-addon, p-inputGroupAddon", inputs: { style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "cn(cx('root'), styleClass())", "style": "style()" } }, providers: [InputGroupAddonStyle, { provide: PARENT_INSTANCE, useExisting: InputGroupAddon }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
50
48
  }
51
49
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputGroupAddon, decorators: [{
52
50
  type: Component,
53
51
  args: [{
54
- changeDetection: ChangeDetectionStrategy.Eager,
52
+ changeDetection: ChangeDetectionStrategy.OnPush,
55
53
  selector: 'p-inputgroup-addon, p-inputGroupAddon',
56
54
  template: ` <ng-content></ng-content> `,
57
- standalone: true,
58
55
  imports: [BindModule],
59
56
  host: {
60
- '[class]': "cn(cx('root'), styleClass)"
57
+ '[class]': "cn(cx('root'), styleClass())",
58
+ '[style]': 'style()'
61
59
  },
62
- providers: [InputGroupAddonStyle, { provide: INPUTGROUPADDON_INSTANCE, useExisting: InputGroupAddon }, { provide: PARENT_INSTANCE, useExisting: InputGroupAddon }],
60
+ providers: [InputGroupAddonStyle, { provide: PARENT_INSTANCE, useExisting: InputGroupAddon }],
63
61
  hostDirectives: [Bind]
64
62
  }]
65
- }], propDecorators: { style: [{
66
- type: Input
67
- }], styleClass: [{
68
- type: Input
69
- }], hostStyle: [{
70
- type: HostBinding,
71
- args: ['style']
72
- }] } });
63
+ }], ctorParameters: () => [], propDecorators: { style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }] } });
73
64
  class InputGroupAddonModule {
74
65
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputGroupAddonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
75
66
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: InputGroupAddonModule, imports: [InputGroupAddon, SharedModule], exports: [InputGroupAddon, SharedModule] });