primeng 18.0.0-rc.1 → 18.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/LICENSE.md +1 -1
  2. package/accordion/accordion.d.ts +2 -4
  3. package/api/primeicons.d.ts +3 -3
  4. package/api/scrolleroptions.d.ts +10 -0
  5. package/api/selectitemgroup.d.ts +2 -2
  6. package/api/shared.d.ts +2 -2
  7. package/autocomplete/autocomplete.d.ts +6 -7
  8. package/badge/badge.d.ts +16 -2
  9. package/blockui/blockui.d.ts +2 -2
  10. package/breadcrumb/breadcrumb.d.ts +3 -4
  11. package/button/button.d.ts +3 -4
  12. package/calendar/calendar.d.ts +12 -12
  13. package/card/card.d.ts +2 -2
  14. package/carousel/carousel.d.ts +3 -3
  15. package/cascadeselect/cascadeselect.d.ts +31 -15
  16. package/cascadeselect/style/cascadeselectstyle.d.ts +8 -1
  17. package/checkbox/checkbox.d.ts +2 -2
  18. package/chip/chip.d.ts +2 -2
  19. package/config/primeng.d.ts +12 -6
  20. package/config/provideprimeng.d.ts +1 -12
  21. package/config/themeprovider.d.ts +10 -4
  22. package/confirmdialog/confirmdialog.d.ts +4 -3
  23. package/confirmpopup/confirmpopup.d.ts +3 -4
  24. package/contextmenu/contextmenu.d.ts +2 -2
  25. package/dataview/dataview.d.ts +9 -10
  26. package/datepicker/datepicker.d.ts +8 -8
  27. package/defer/defer.d.ts +2 -0
  28. package/dialog/dialog.d.ts +4 -4
  29. package/drawer/drawer.d.ts +2 -2
  30. package/dropdown/dropdown.d.ts +0 -23
  31. package/editor/editor.d.ts +2 -2
  32. package/esm2022/accordion/accordion.mjs +9 -35
  33. package/esm2022/accordion/style/accordionstyle.mjs +9 -7
  34. package/esm2022/api/primeicons.mjs +4 -4
  35. package/esm2022/api/scrolleroptions.mjs +1 -1
  36. package/esm2022/api/selectitemgroup.mjs +1 -1
  37. package/esm2022/api/shared.mjs +6 -6
  38. package/esm2022/autocomplete/autocomplete.mjs +272 -308
  39. package/esm2022/autocomplete/style/autocompletestyle.mjs +16 -15
  40. package/esm2022/avatar/avatar.mjs +3 -3
  41. package/esm2022/avatar/style/avatarstyle.mjs +3 -3
  42. package/esm2022/badge/badge.mjs +33 -3
  43. package/esm2022/badge/style/badgestyle.mjs +3 -3
  44. package/esm2022/base/style/basestyle.mjs +6 -4
  45. package/esm2022/basecomponent/basecomponent.mjs +8 -2
  46. package/esm2022/blockui/blockui.mjs +6 -6
  47. package/esm2022/breadcrumb/breadcrumb.mjs +94 -101
  48. package/esm2022/breadcrumb/style/breadcrumbstyle.mjs +5 -1
  49. package/esm2022/button/button.mjs +19 -37
  50. package/esm2022/button/style/buttonstyle.mjs +17 -7
  51. package/esm2022/buttongroup/style/buttongroupstyle.mjs +9 -9
  52. package/esm2022/calendar/calendar.mjs +115 -115
  53. package/esm2022/calendar/style/calendarstyle.mjs +5 -5
  54. package/esm2022/card/card.mjs +10 -9
  55. package/esm2022/carousel/carousel.mjs +20 -19
  56. package/esm2022/carousel/style/carouselstyle.mjs +10 -1
  57. package/esm2022/cascadeselect/cascadeselect.mjs +182 -107
  58. package/esm2022/cascadeselect/style/cascadeselectstyle.mjs +37 -22
  59. package/esm2022/checkbox/checkbox.mjs +8 -8
  60. package/esm2022/chip/chip.mjs +10 -10
  61. package/esm2022/chip/style/chipstyle.mjs +2 -2
  62. package/esm2022/colorpicker/colorpicker.mjs +2 -2
  63. package/esm2022/colorpicker/style/colorpickerstyle.mjs +29 -1
  64. package/esm2022/config/primeng.mjs +14 -18
  65. package/esm2022/config/provideprimeng.mjs +11 -3
  66. package/esm2022/config/themeprovider.mjs +10 -16
  67. package/esm2022/confirmdialog/confirmdialog.mjs +26 -18
  68. package/esm2022/confirmpopup/confirmpopup.mjs +45 -36
  69. package/esm2022/contextmenu/contextmenu.mjs +13 -13
  70. package/esm2022/contextmenu/style/contextmenustyle.mjs +11 -1
  71. package/esm2022/dataview/dataview.mjs +39 -113
  72. package/esm2022/datepicker/datepicker.mjs +93 -93
  73. package/esm2022/datepicker/style/datepickerstyle.mjs +23 -16
  74. package/esm2022/defer/defer.mjs +7 -1
  75. package/esm2022/dialog/dialog.mjs +44 -43
  76. package/esm2022/dialog/style/dialogstyle.mjs +22 -1
  77. package/esm2022/divider/style/dividerstyle.mjs +18 -14
  78. package/esm2022/dock/style/dockstyle.mjs +11 -1
  79. package/esm2022/drawer/drawer.mjs +11 -11
  80. package/esm2022/drawer/style/drawerstyle.mjs +5 -1
  81. package/esm2022/dropdown/dropdown.mjs +4 -18
  82. package/esm2022/dropdown/style/dropdownstyle.mjs +4 -4
  83. package/esm2022/dynamicdialog/dialogservice.mjs +2 -2
  84. package/esm2022/editor/editor.mjs +1 -1
  85. package/esm2022/editor/style/editorstyle.mjs +52 -158
  86. package/esm2022/fieldset/fieldset.mjs +20 -21
  87. package/esm2022/fileupload/fileupload.mjs +108 -68
  88. package/esm2022/floatlabel/style/floatlabelstyle.mjs +5 -5
  89. package/esm2022/galleria/galleria.mjs +6 -1
  90. package/esm2022/galleria/style/galleriastyle.mjs +18 -1
  91. package/esm2022/iconfield/style/iconfieldstyle.mjs +2 -2
  92. package/esm2022/iftalabel/iftalabel.mjs +6 -6
  93. package/esm2022/iftalabel/style/iftalabelstyle.mjs +5 -5
  94. package/esm2022/image/image.mjs +37 -70
  95. package/esm2022/image/style/imagestyle.mjs +7 -7
  96. package/esm2022/imagecompare/imagecompare.mjs +158 -0
  97. package/esm2022/imagecompare/primeng-imagecompare.mjs +5 -0
  98. package/esm2022/imagecompare/public_api.mjs +3 -0
  99. package/esm2022/imagecompare/style/imagecomparestyle.mjs +124 -0
  100. package/esm2022/inplace/inplace.mjs +8 -8
  101. package/esm2022/inputmask/inputmask.mjs +13 -13
  102. package/esm2022/inputmask/style/inputmaskstyle.mjs +14 -7
  103. package/esm2022/inputnumber/inputnumber.mjs +44 -46
  104. package/esm2022/inputnumber/style/inputnumberstyle.mjs +27 -19
  105. package/esm2022/inputotp/inputotp.mjs +4 -16
  106. package/esm2022/inputtext/inputtext.mjs +11 -10
  107. package/esm2022/inputtext/style/inputtextstyle.mjs +15 -9
  108. package/esm2022/keyfilter/keyfilter.mjs +4 -3
  109. package/esm2022/listbox/listbox.mjs +8 -53
  110. package/esm2022/megamenu/megamenu.mjs +18 -18
  111. package/esm2022/megamenu/style/megamenustyle.mjs +17 -1
  112. package/esm2022/menu/menu.mjs +47 -29
  113. package/esm2022/menubar/menubar.mjs +25 -25
  114. package/esm2022/menubar/style/menubarstyle.mjs +22 -2
  115. package/esm2022/message/message.mjs +12 -12
  116. package/esm2022/messages/messages.mjs +2 -1
  117. package/esm2022/metergroup/style/metergroupstyle.mjs +9 -9
  118. package/esm2022/multiselect/multiselect.mjs +214 -202
  119. package/esm2022/multiselect/style/multiselectstyle.mjs +13 -18
  120. package/esm2022/orderlist/orderlist.mjs +38 -80
  121. package/esm2022/organizationchart/style/organizationchartstyle.mjs +11 -22
  122. package/esm2022/overlay/style/overlaystyle.mjs +2 -2
  123. package/esm2022/overlaypanel/overlaypanel.mjs +25 -25
  124. package/esm2022/paginator/paginator.mjs +48 -48
  125. package/esm2022/paginator/style/paginatorstyle.mjs +10 -3
  126. package/esm2022/panel/panel.mjs +17 -37
  127. package/esm2022/panelmenu/panelmenu.mjs +32 -43
  128. package/esm2022/panelmenu/style/panelmenustyle.mjs +13 -5
  129. package/esm2022/password/password.mjs +53 -30
  130. package/esm2022/password/style/passwordstyle.mjs +14 -6
  131. package/esm2022/picklist/picklist.mjs +136 -112
  132. package/esm2022/popover/popover.mjs +22 -26
  133. package/esm2022/progressbar/style/progressbarstyle.mjs +29 -29
  134. package/esm2022/radiobutton/style/radiobuttonstyle.mjs +2 -2
  135. package/esm2022/rating/rating.mjs +12 -12
  136. package/esm2022/ripple/ripple.mjs +5 -2
  137. package/esm2022/scroller/scroller.mjs +9 -9
  138. package/esm2022/scrollpanel/scrollpanel.mjs +4 -4
  139. package/esm2022/scrollpanel/style/scrollpanelstyle.mjs +3 -2
  140. package/esm2022/scrolltop/style/scrolltopstyle.mjs +7 -2
  141. package/esm2022/select/select.mjs +70 -116
  142. package/esm2022/select/style/selectstyle.mjs +14 -23
  143. package/esm2022/selectbutton/style/selectbuttonstyle.mjs +5 -5
  144. package/esm2022/sidebar/sidebar.mjs +2 -2
  145. package/esm2022/skeleton/style/skeletonstyle.mjs +15 -2
  146. package/esm2022/slider/slider.mjs +18 -11
  147. package/esm2022/slider/style/sliderstyle.mjs +6 -6
  148. package/esm2022/speeddial/speeddial.mjs +1 -16
  149. package/esm2022/speeddial/style/speeddialstyle.mjs +2 -2
  150. package/esm2022/splitbutton/splitbutton.mjs +8 -8
  151. package/esm2022/splitbutton/style/splitbuttonstyle.mjs +9 -9
  152. package/esm2022/splitter/splitter.mjs +79 -29
  153. package/esm2022/splitter/style/splitterstyle.mjs +5 -4
  154. package/esm2022/stepper/style/stepperstyle.mjs +6 -1
  155. package/esm2022/styleclass/styleclass.mjs +2 -2
  156. package/esm2022/table/style/tablestyle.mjs +14 -7
  157. package/esm2022/table/table.mjs +6649 -6669
  158. package/esm2022/tabmenu/tabmenu.mjs +15 -33
  159. package/esm2022/tabs/tab.mjs +4 -3
  160. package/esm2022/tabs/tablist.mjs +9 -6
  161. package/esm2022/tabview/tabview.mjs +72 -64
  162. package/esm2022/terminal/style/terminalstyle.mjs +2 -2
  163. package/esm2022/textarea/style/textareastyle.mjs +9 -7
  164. package/esm2022/textarea/textarea.mjs +9 -9
  165. package/esm2022/tieredmenu/style/tieredmenustyle.mjs +6 -1
  166. package/esm2022/tieredmenu/tieredmenu.mjs +13 -13
  167. package/esm2022/timeline/style/timelinestyle.mjs +2 -1
  168. package/esm2022/timeline/timeline.mjs +1 -16
  169. package/esm2022/toast/style/toaststyle.mjs +7 -1
  170. package/esm2022/togglebutton/style/togglebuttonstyle.mjs +2 -2
  171. package/esm2022/toggleswitch/toggleswitch.mjs +1 -10
  172. package/esm2022/tooltip/tooltip.mjs +34 -26
  173. package/esm2022/tree/style/treestyle.mjs +20 -8
  174. package/esm2022/tree/tree.mjs +138 -97
  175. package/esm2022/treeselect/style/treeselectstyle.mjs +15 -15
  176. package/esm2022/treeselect/treeselect.mjs +50 -50
  177. package/esm2022/treetable/style/treetablestyle.mjs +4 -4
  178. package/esm2022/treetable/treetable.mjs +20 -4
  179. package/esm2022/usestyle/usestyle.mjs +3 -2
  180. package/fesm2022/primeng-accordion.mjs +16 -40
  181. package/fesm2022/primeng-accordion.mjs.map +1 -1
  182. package/fesm2022/primeng-api.mjs +8 -8
  183. package/fesm2022/primeng-api.mjs.map +1 -1
  184. package/fesm2022/primeng-autocomplete.mjs +286 -321
  185. package/fesm2022/primeng-autocomplete.mjs.map +1 -1
  186. package/fesm2022/primeng-avatar.mjs +4 -4
  187. package/fesm2022/primeng-avatar.mjs.map +1 -1
  188. package/fesm2022/primeng-badge.mjs +34 -4
  189. package/fesm2022/primeng-badge.mjs.map +1 -1
  190. package/fesm2022/primeng-base.mjs +5 -3
  191. package/fesm2022/primeng-base.mjs.map +1 -1
  192. package/fesm2022/primeng-basecomponent.mjs +7 -1
  193. package/fesm2022/primeng-basecomponent.mjs.map +1 -1
  194. package/fesm2022/primeng-blockui.mjs +5 -5
  195. package/fesm2022/primeng-blockui.mjs.map +1 -1
  196. package/fesm2022/primeng-breadcrumb.mjs +97 -100
  197. package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
  198. package/fesm2022/primeng-button.mjs +34 -42
  199. package/fesm2022/primeng-button.mjs.map +1 -1
  200. package/fesm2022/primeng-buttongroup.mjs +8 -8
  201. package/fesm2022/primeng-buttongroup.mjs.map +1 -1
  202. package/fesm2022/primeng-calendar.mjs +118 -118
  203. package/fesm2022/primeng-calendar.mjs.map +1 -1
  204. package/fesm2022/primeng-card.mjs +9 -8
  205. package/fesm2022/primeng-card.mjs.map +1 -1
  206. package/fesm2022/primeng-carousel.mjs +28 -18
  207. package/fesm2022/primeng-carousel.mjs.map +1 -1
  208. package/fesm2022/primeng-cascadeselect.mjs +218 -128
  209. package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
  210. package/fesm2022/primeng-checkbox.mjs +7 -7
  211. package/fesm2022/primeng-checkbox.mjs.map +1 -1
  212. package/fesm2022/primeng-chip.mjs +10 -10
  213. package/fesm2022/primeng-chip.mjs.map +1 -1
  214. package/fesm2022/primeng-colorpicker.mjs +29 -1
  215. package/fesm2022/primeng-colorpicker.mjs.map +1 -1
  216. package/fesm2022/primeng-config.mjs +38 -39
  217. package/fesm2022/primeng-config.mjs.map +1 -1
  218. package/fesm2022/primeng-confirmdialog.mjs +25 -17
  219. package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
  220. package/fesm2022/primeng-confirmpopup.mjs +44 -35
  221. package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
  222. package/fesm2022/primeng-contextmenu.mjs +22 -12
  223. package/fesm2022/primeng-contextmenu.mjs.map +1 -1
  224. package/fesm2022/primeng-dataview.mjs +38 -112
  225. package/fesm2022/primeng-dataview.mjs.map +1 -1
  226. package/fesm2022/primeng-datepicker.mjs +114 -107
  227. package/fesm2022/primeng-datepicker.mjs.map +1 -1
  228. package/fesm2022/primeng-defer.mjs +6 -0
  229. package/fesm2022/primeng-defer.mjs.map +1 -1
  230. package/fesm2022/primeng-dialog.mjs +64 -42
  231. package/fesm2022/primeng-dialog.mjs.map +1 -1
  232. package/fesm2022/primeng-divider.mjs +17 -13
  233. package/fesm2022/primeng-divider.mjs.map +1 -1
  234. package/fesm2022/primeng-dock.mjs +10 -0
  235. package/fesm2022/primeng-dock.mjs.map +1 -1
  236. package/fesm2022/primeng-drawer.mjs +14 -10
  237. package/fesm2022/primeng-drawer.mjs.map +1 -1
  238. package/fesm2022/primeng-dropdown.mjs +6 -20
  239. package/fesm2022/primeng-dropdown.mjs.map +1 -1
  240. package/fesm2022/primeng-dynamicdialog.mjs +1 -1
  241. package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
  242. package/fesm2022/primeng-editor.mjs +51 -157
  243. package/fesm2022/primeng-editor.mjs.map +1 -1
  244. package/fesm2022/primeng-fieldset.mjs +19 -20
  245. package/fesm2022/primeng-fieldset.mjs.map +1 -1
  246. package/fesm2022/primeng-fileupload.mjs +107 -67
  247. package/fesm2022/primeng-fileupload.mjs.map +1 -1
  248. package/fesm2022/primeng-floatlabel.mjs +4 -4
  249. package/fesm2022/primeng-floatlabel.mjs.map +1 -1
  250. package/fesm2022/primeng-galleria.mjs +22 -0
  251. package/fesm2022/primeng-galleria.mjs.map +1 -1
  252. package/fesm2022/primeng-iconfield.mjs +1 -1
  253. package/fesm2022/primeng-iconfield.mjs.map +1 -1
  254. package/fesm2022/primeng-iftalabel.mjs +9 -9
  255. package/fesm2022/primeng-iftalabel.mjs.map +1 -1
  256. package/fesm2022/primeng-image.mjs +42 -75
  257. package/fesm2022/primeng-image.mjs.map +1 -1
  258. package/fesm2022/primeng-imagecompare.mjs +286 -0
  259. package/fesm2022/primeng-imagecompare.mjs.map +1 -0
  260. package/fesm2022/primeng-inplace.mjs +7 -7
  261. package/fesm2022/primeng-inplace.mjs.map +1 -1
  262. package/fesm2022/primeng-inputmask.mjs +25 -18
  263. package/fesm2022/primeng-inputmask.mjs.map +1 -1
  264. package/fesm2022/primeng-inputnumber.mjs +69 -63
  265. package/fesm2022/primeng-inputnumber.mjs.map +1 -1
  266. package/fesm2022/primeng-inputotp.mjs +3 -15
  267. package/fesm2022/primeng-inputotp.mjs.map +1 -1
  268. package/fesm2022/primeng-inputtext.mjs +24 -17
  269. package/fesm2022/primeng-inputtext.mjs.map +1 -1
  270. package/fesm2022/primeng-keyfilter.mjs +3 -2
  271. package/fesm2022/primeng-keyfilter.mjs.map +1 -1
  272. package/fesm2022/primeng-listbox.mjs +7 -52
  273. package/fesm2022/primeng-listbox.mjs.map +1 -1
  274. package/fesm2022/primeng-megamenu.mjs +33 -17
  275. package/fesm2022/primeng-megamenu.mjs.map +1 -1
  276. package/fesm2022/primeng-menu.mjs +46 -28
  277. package/fesm2022/primeng-menu.mjs.map +1 -1
  278. package/fesm2022/primeng-menubar.mjs +45 -25
  279. package/fesm2022/primeng-menubar.mjs.map +1 -1
  280. package/fesm2022/primeng-message.mjs +11 -11
  281. package/fesm2022/primeng-message.mjs.map +1 -1
  282. package/fesm2022/primeng-messages.mjs +1 -0
  283. package/fesm2022/primeng-messages.mjs.map +1 -1
  284. package/fesm2022/primeng-metergroup.mjs +8 -8
  285. package/fesm2022/primeng-metergroup.mjs.map +1 -1
  286. package/fesm2022/primeng-multiselect.mjs +225 -218
  287. package/fesm2022/primeng-multiselect.mjs.map +1 -1
  288. package/fesm2022/primeng-orderlist.mjs +37 -79
  289. package/fesm2022/primeng-orderlist.mjs.map +1 -1
  290. package/fesm2022/primeng-organizationchart.mjs +10 -21
  291. package/fesm2022/primeng-organizationchart.mjs.map +1 -1
  292. package/fesm2022/primeng-overlay.mjs +1 -1
  293. package/fesm2022/primeng-overlay.mjs.map +1 -1
  294. package/fesm2022/primeng-overlaypanel.mjs +24 -24
  295. package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
  296. package/fesm2022/primeng-paginator.mjs +56 -49
  297. package/fesm2022/primeng-paginator.mjs.map +1 -1
  298. package/fesm2022/primeng-panel.mjs +16 -36
  299. package/fesm2022/primeng-panel.mjs.map +1 -1
  300. package/fesm2022/primeng-panelmenu.mjs +43 -46
  301. package/fesm2022/primeng-panelmenu.mjs.map +1 -1
  302. package/fesm2022/primeng-password.mjs +65 -34
  303. package/fesm2022/primeng-password.mjs.map +1 -1
  304. package/fesm2022/primeng-picklist.mjs +135 -111
  305. package/fesm2022/primeng-picklist.mjs.map +1 -1
  306. package/fesm2022/primeng-popover.mjs +21 -25
  307. package/fesm2022/primeng-popover.mjs.map +1 -1
  308. package/fesm2022/primeng-progressbar.mjs +28 -28
  309. package/fesm2022/primeng-progressbar.mjs.map +1 -1
  310. package/fesm2022/primeng-radiobutton.mjs +1 -1
  311. package/fesm2022/primeng-radiobutton.mjs.map +1 -1
  312. package/fesm2022/primeng-rating.mjs +11 -11
  313. package/fesm2022/primeng-rating.mjs.map +1 -1
  314. package/fesm2022/primeng-ripple.mjs +4 -1
  315. package/fesm2022/primeng-ripple.mjs.map +1 -1
  316. package/fesm2022/primeng-scroller.mjs +8 -8
  317. package/fesm2022/primeng-scroller.mjs.map +1 -1
  318. package/fesm2022/primeng-scrollpanel.mjs +5 -4
  319. package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
  320. package/fesm2022/primeng-scrolltop.mjs +6 -1
  321. package/fesm2022/primeng-scrolltop.mjs.map +1 -1
  322. package/fesm2022/primeng-select.mjs +82 -137
  323. package/fesm2022/primeng-select.mjs.map +1 -1
  324. package/fesm2022/primeng-selectbutton.mjs +4 -4
  325. package/fesm2022/primeng-selectbutton.mjs.map +1 -1
  326. package/fesm2022/primeng-sidebar.mjs +1 -1
  327. package/fesm2022/primeng-sidebar.mjs.map +1 -1
  328. package/fesm2022/primeng-skeleton.mjs +14 -1
  329. package/fesm2022/primeng-skeleton.mjs.map +1 -1
  330. package/fesm2022/primeng-slider.mjs +22 -15
  331. package/fesm2022/primeng-slider.mjs.map +1 -1
  332. package/fesm2022/primeng-speeddial.mjs +1 -16
  333. package/fesm2022/primeng-speeddial.mjs.map +1 -1
  334. package/fesm2022/primeng-splitbutton.mjs +15 -15
  335. package/fesm2022/primeng-splitbutton.mjs.map +1 -1
  336. package/fesm2022/primeng-splitter.mjs +84 -33
  337. package/fesm2022/primeng-splitter.mjs.map +1 -1
  338. package/fesm2022/primeng-stepper.mjs +5 -0
  339. package/fesm2022/primeng-stepper.mjs.map +1 -1
  340. package/fesm2022/primeng-styleclass.mjs +1 -1
  341. package/fesm2022/primeng-styleclass.mjs.map +1 -1
  342. package/fesm2022/primeng-table.mjs +6663 -6676
  343. package/fesm2022/primeng-table.mjs.map +1 -1
  344. package/fesm2022/primeng-tabmenu.mjs +14 -32
  345. package/fesm2022/primeng-tabmenu.mjs.map +1 -1
  346. package/fesm2022/primeng-tabs.mjs +11 -7
  347. package/fesm2022/primeng-tabs.mjs.map +1 -1
  348. package/fesm2022/primeng-tabview.mjs +71 -63
  349. package/fesm2022/primeng-tabview.mjs.map +1 -1
  350. package/fesm2022/primeng-terminal.mjs +1 -1
  351. package/fesm2022/primeng-terminal.mjs.map +1 -1
  352. package/fesm2022/primeng-textarea.mjs +16 -14
  353. package/fesm2022/primeng-textarea.mjs.map +1 -1
  354. package/fesm2022/primeng-tieredmenu.mjs +17 -12
  355. package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
  356. package/fesm2022/primeng-timeline.mjs +1 -15
  357. package/fesm2022/primeng-timeline.mjs.map +1 -1
  358. package/fesm2022/primeng-toast.mjs +6 -0
  359. package/fesm2022/primeng-toast.mjs.map +1 -1
  360. package/fesm2022/primeng-togglebutton.mjs +1 -1
  361. package/fesm2022/primeng-togglebutton.mjs.map +1 -1
  362. package/fesm2022/primeng-toggleswitch.mjs +0 -9
  363. package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
  364. package/fesm2022/primeng-tooltip.mjs +33 -25
  365. package/fesm2022/primeng-tooltip.mjs.map +1 -1
  366. package/fesm2022/primeng-tree.mjs +156 -103
  367. package/fesm2022/primeng-tree.mjs.map +1 -1
  368. package/fesm2022/primeng-treeselect.mjs +63 -63
  369. package/fesm2022/primeng-treeselect.mjs.map +1 -1
  370. package/fesm2022/primeng-treetable.mjs +22 -6
  371. package/fesm2022/primeng-treetable.mjs.map +1 -1
  372. package/fesm2022/primeng-usestyle.mjs +2 -1
  373. package/fesm2022/primeng-usestyle.mjs.map +1 -1
  374. package/fieldset/fieldset.d.ts +3 -3
  375. package/fileupload/fileupload.d.ts +21 -5
  376. package/iftalabel/iftalabel.d.ts +2 -2
  377. package/image/image.d.ts +6 -7
  378. package/imagecompare/imagecompare.d.ts +52 -0
  379. package/imagecompare/index.d.ts +5 -0
  380. package/imagecompare/public_api.d.ts +2 -0
  381. package/imagecompare/style/imagecomparestyle.d.ts +35 -0
  382. package/inplace/inplace.d.ts +2 -2
  383. package/inputmask/inputmask.d.ts +2 -2
  384. package/inputnumber/inputnumber.d.ts +4 -5
  385. package/inputotp/inputotp.d.ts +1 -2
  386. package/inputtext/inputtext.d.ts +2 -2
  387. package/listbox/listbox.d.ts +2 -3
  388. package/megamenu/megamenu.d.ts +4 -4
  389. package/menu/menu.d.ts +10 -4
  390. package/menubar/menubar.d.ts +5 -5
  391. package/message/message.d.ts +2 -2
  392. package/multiselect/multiselect.d.ts +16 -16
  393. package/orderlist/orderlist.d.ts +10 -11
  394. package/overlaypanel/overlaypanel.d.ts +3 -4
  395. package/package.json +172 -166
  396. package/paginator/paginator.d.ts +6 -6
  397. package/panel/panel.d.ts +3 -4
  398. package/panelmenu/panelmenu.d.ts +2 -3
  399. package/password/password.d.ts +9 -5
  400. package/popover/popover.d.ts +7 -5
  401. package/rating/rating.d.ts +4 -4
  402. package/scroller/scroller.d.ts +2 -2
  403. package/select/select.d.ts +12 -13
  404. package/speeddial/speeddial.d.ts +2 -3
  405. package/splitbutton/splitbutton.d.ts +2 -2
  406. package/splitter/splitter.d.ts +11 -5
  407. package/splitter/style/splitterstyle.d.ts +0 -13
  408. package/table/table.d.ts +934 -995
  409. package/tabmenu/tabmenu.d.ts +5 -6
  410. package/tabview/tabview.d.ts +4 -5
  411. package/textarea/textarea.d.ts +2 -2
  412. package/tieredmenu/tieredmenu.d.ts +2 -2
  413. package/timeline/timeline.d.ts +0 -1
  414. package/toggleswitch/toggleswitch.d.ts +0 -1
  415. package/tooltip/tooltip.d.ts +2 -1
  416. package/tree/style/treestyle.d.ts +1 -1
  417. package/tree/tree.d.ts +9 -7
  418. package/treeselect/treeselect.d.ts +9 -9
@@ -0,0 +1,286 @@
1
+ import * as i1 from '@angular/common';
2
+ import { isPlatformBrowser, CommonModule } from '@angular/common';
3
+ import * as i0 from '@angular/core';
4
+ import { Injectable, inject, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ContentChild, NgModule } from '@angular/core';
5
+ import { SharedModule } from 'primeng/api';
6
+ import { BaseComponent } from 'primeng/basecomponent';
7
+ import { BaseStyle } from 'primeng/base';
8
+
9
+ const theme = ({ dt }) => `
10
+ .p-imagecompare {
11
+ position: relative;
12
+ overflow: hidden;
13
+ width: 100%;
14
+ aspect-ratio: 16 / 9;
15
+ }
16
+
17
+ .p-imagecompare img {
18
+ width: 100%;
19
+ height: 100%;
20
+ position: absolute;
21
+ }
22
+
23
+ .p-imagecompare img + img {
24
+ clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
25
+ }
26
+
27
+ .p-imagecompare:dir(rtl) img + img {
28
+ clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
29
+ }
30
+
31
+ .p-imagecompare-slider {
32
+ position: relative;
33
+ -webkit-appearance: none;
34
+ width: calc(100% + ${dt('imagecompare.handle.size')});
35
+ height: 100%;
36
+ margin-inline-start: calc(-1 * calc(${dt('imagecompare.handle.size')} / 2));
37
+ background-color: transparent;
38
+ outline: none;
39
+ transition: all ${dt('imagecompare.handle.transition.duration')};
40
+ }
41
+
42
+ .p-imagecompare-slider::-webkit-slider-thumb {
43
+ -webkit-appearance: none;
44
+ height: ${dt('imagecompare.handle.size')};
45
+ width: ${dt('imagecompare.handle.size')};
46
+ background: ${dt('imagecompare.handle.background')};
47
+ border: ${dt('imagecompare.handle.border.width')} solid ${dt('imagecompare.handle.border.color')};
48
+ border-radius: ${dt('imagecompare.handle.border.radius')};
49
+ background-size: contain;
50
+ cursor: ew-resize;
51
+ transition: all ${dt('imagecompare.handle.transition.duration')};
52
+ }
53
+
54
+ .p-imagecompare-slider::-moz-range-thumb {
55
+ height: ${dt('imagecompare.handle.size')};
56
+ width: ${dt('imagecompare.handle.size')};
57
+ background: ${dt('imagecompare.handle.background')};
58
+ border: ${dt('imagecompare.handle.border.width')} ${dt('imagecompare.handle.border.style')} ${dt('imagecompare.handle.border.color')};
59
+ border-radius: ${dt('imagecompare.handle.border.radius')};
60
+ background-size: contain;
61
+ cursor: ew-resize;
62
+ }
63
+
64
+ .p-imagecompare-slider:focus-visible::-webkit-slider-thumb {
65
+ box-shadow: ${dt('imagecompare.handle.focus.ring.shadow')};
66
+ outline: ${dt('imagecompare.handle.focus.ring.width')} ${dt('imagecompare.handle.focus.ring.style')} ${dt('imagecompare.handle.focus.ring.color')};
67
+ outline-offset: ${dt('imagecompare.handle.focus.ring.offset')};
68
+ }
69
+
70
+ .p-imagecompare-slider:focus-visible::-moz-range-thumb {
71
+ box-shadow: ${dt('imagecompare.handle.focus.ring.shadow')};
72
+ outline: ${dt('imagecompare.handle.focus.ring.width')} ${dt('imagecompare.handle.focus.ring.style')} ${dt('imagecompare.handle.focus.ring.color')};
73
+ outline-offset: ${dt('imagecompare.handle.focus.ring.offset')};
74
+ }
75
+
76
+ .p-imagecompare-slider:hover {
77
+ width: calc(100% + ${dt('imagecompare.handle.hover.size')});
78
+ margin-inline-start: calc(-1 * calc(${dt('imagecompare.handle.hover.size')} / 2));
79
+ }
80
+
81
+ .p-imagecompare-slider:hover::-webkit-slider-thumb {
82
+ background: ${dt('imagecompare.handle.hover.background')};
83
+ border-color: ${dt('imagecompare.handle.hover.border.color')};
84
+ height: ${dt('imagecompare.handle.hover.size')};
85
+ width: ${dt('imagecompare.handle.hover.size')};
86
+ }
87
+
88
+ .p-imagecompare-slider:hover::-moz-range-thumb {
89
+ background: ${dt('imagecompare.handle.hover.background')};
90
+ border-color: ${dt('imagecompare.handle.hover.border.color')};
91
+ height: ${dt('imagecompare.handle.hover.size')};
92
+ width: ${dt('imagecompare.handle.hover.size')};
93
+ }
94
+ `;
95
+ const classes = {
96
+ root: 'p-imagecompare',
97
+ slider: 'p-imagecompare-slider'
98
+ };
99
+ class ImageCompareStyle extends BaseStyle {
100
+ name = 'imagecompare';
101
+ theme = theme;
102
+ classes = classes;
103
+ static ɵfac = /*@__PURE__*/ (() => { let ɵImageCompareStyle_BaseFactory; return function ImageCompareStyle_Factory(__ngFactoryType__) { return (ɵImageCompareStyle_BaseFactory || (ɵImageCompareStyle_BaseFactory = i0.ɵɵgetInheritedFactory(ImageCompareStyle)))(__ngFactoryType__ || ImageCompareStyle); }; })();
104
+ static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ImageCompareStyle, factory: ImageCompareStyle.ɵfac });
105
+ }
106
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ImageCompareStyle, [{
107
+ type: Injectable
108
+ }], null, null); })();
109
+ /**
110
+ *
111
+ * ImageCompare compares two images side by side with a slider.
112
+ *
113
+ * [Live Demo](https://www.primeng.org/imagecompare/)
114
+ *
115
+ * @module imagecomparestyle
116
+ *
117
+ */
118
+ var ImageCompareClasses;
119
+ (function (ImageCompareClasses) {
120
+ /**
121
+ * Class name of the root element
122
+ */
123
+ ImageCompareClasses["root"] = "p-imagecompare";
124
+ /**
125
+ * Class name of the slider element
126
+ */
127
+ ImageCompareClasses["slider"] = "p-imagecompare-slider";
128
+ })(ImageCompareClasses || (ImageCompareClasses = {}));
129
+
130
+ const _c0 = ["left"];
131
+ const _c1 = ["right"];
132
+ function ImageCompare_0_ng_template_0_Template(rf, ctx) { }
133
+ function ImageCompare_0_Template(rf, ctx) { if (rf & 1) {
134
+ i0.ɵɵtemplate(0, ImageCompare_0_ng_template_0_Template, 0, 0, "ng-template");
135
+ } }
136
+ function ImageCompare_1_ng_template_0_Template(rf, ctx) { }
137
+ function ImageCompare_1_Template(rf, ctx) { if (rf & 1) {
138
+ i0.ɵɵtemplate(0, ImageCompare_1_ng_template_0_Template, 0, 0, "ng-template");
139
+ } }
140
+ /**
141
+ * Compare two images side by side with a slider.
142
+ * @group Components
143
+ */
144
+ class ImageCompare extends BaseComponent {
145
+ isRTL = false;
146
+ /**
147
+ * Index of the element in tabbing order.
148
+ * @defaultValue 0
149
+ * @group Props
150
+ */
151
+ tabindex;
152
+ /**
153
+ * Defines a string value that labels an interactive element.
154
+ * @group Props
155
+ */
156
+ ariaLabelledby;
157
+ /**
158
+ * Identifier of the underlying input element.
159
+ * @group Props
160
+ */
161
+ ariaLabel;
162
+ /**
163
+ * Template for the left side.
164
+ * @group Templates
165
+ */
166
+ leftTemplate;
167
+ /**
168
+ * Template for the right side.
169
+ * @group Templates
170
+ */
171
+ rightTemplate;
172
+ _componentStyle = inject(ImageCompareStyle);
173
+ mutationObserver;
174
+ ngOnInit() {
175
+ super.ngOnInit();
176
+ this.updateDirection();
177
+ this.observeDirectionChanges();
178
+ }
179
+ onSlide(event) {
180
+ const value = event.target.value;
181
+ const image = event.target.previousElementSibling;
182
+ if (this.isRTL) {
183
+ image.style.clipPath = `polygon(${100 - value}% 0, 100% 0, 100% 100%, ${100 - value}% 100%)`;
184
+ }
185
+ else {
186
+ image.style.clipPath = `polygon(0 0, ${value}% 0, ${value}% 100%, 0 100%)`;
187
+ }
188
+ }
189
+ updateDirection() {
190
+ this.isRTL = !!this.el.nativeElement.closest('[dir="rtl"]');
191
+ }
192
+ observeDirectionChanges() {
193
+ if (isPlatformBrowser(this.platformId)) {
194
+ const targetNode = document?.documentElement;
195
+ const config = { attributes: true, attributeFilter: ['dir'] };
196
+ this.mutationObserver = new MutationObserver(() => {
197
+ this.updateDirection();
198
+ });
199
+ this.mutationObserver.observe(targetNode, config);
200
+ }
201
+ }
202
+ ngOnDestroy() {
203
+ if (this.mutationObserver) {
204
+ this.mutationObserver.disconnect();
205
+ }
206
+ super.ngOnDestroy();
207
+ }
208
+ static ɵfac = /*@__PURE__*/ (() => { let ɵImageCompare_BaseFactory; return function ImageCompare_Factory(__ngFactoryType__) { return (ɵImageCompare_BaseFactory || (ɵImageCompare_BaseFactory = i0.ɵɵgetInheritedFactory(ImageCompare)))(__ngFactoryType__ || ImageCompare); }; })();
209
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ImageCompare, selectors: [["p-imageCompare"], ["p-imagecompare"], ["p-image-compare"]], contentQueries: function ImageCompare_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
210
+ i0.ɵɵcontentQuery(dirIndex, _c0, 5);
211
+ i0.ɵɵcontentQuery(dirIndex, _c1, 5);
212
+ } if (rf & 2) {
213
+ let _t;
214
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.leftTemplate = _t.first);
215
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.rightTemplate = _t.first);
216
+ } }, hostAttrs: [1, "p-imagecompare"], hostVars: 3, hostBindings: function ImageCompare_HostBindings(rf, ctx) { if (rf & 2) {
217
+ i0.ɵɵattribute("tabindex", ctx.tabindex)("aria-labelledby", ctx.ariaLabelledby)("aria-label", ctx.ariaLabel);
218
+ } }, inputs: { tabindex: "tabindex", ariaLabelledby: "ariaLabelledby", ariaLabel: "ariaLabel" }, standalone: true, features: [i0.ɵɵProvidersFeature([ImageCompareStyle]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 3, vars: 4, consts: [[4, "ngTemplateOutlet"], ["type", "range", "min", "0", "max", "100", "value", "50", 3, "input"]], template: function ImageCompare_Template(rf, ctx) { if (rf & 1) {
219
+ i0.ɵɵtemplate(0, ImageCompare_0_Template, 1, 0, null, 0)(1, ImageCompare_1_Template, 1, 0, null, 0);
220
+ i0.ɵɵelementStart(2, "input", 1);
221
+ i0.ɵɵlistener("input", function ImageCompare_Template_input_input_2_listener($event) { return ctx.onSlide($event); });
222
+ i0.ɵɵelementEnd();
223
+ } if (rf & 2) {
224
+ i0.ɵɵproperty("ngTemplateOutlet", ctx.leftTemplate);
225
+ i0.ɵɵadvance();
226
+ i0.ɵɵproperty("ngTemplateOutlet", ctx.rightTemplate);
227
+ i0.ɵɵadvance();
228
+ i0.ɵɵclassMap(ctx.cx("slider"));
229
+ } }, dependencies: [CommonModule, i1.NgTemplateOutlet, SharedModule], encapsulation: 2, changeDetection: 0 });
230
+ }
231
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ImageCompare, [{
232
+ type: Component,
233
+ args: [{
234
+ selector: 'p-imageCompare, p-imagecompare, p-image-compare',
235
+ standalone: true,
236
+ imports: [CommonModule, SharedModule],
237
+ template: `
238
+ <ng-template *ngTemplateOutlet="leftTemplate"></ng-template>
239
+ <ng-template *ngTemplateOutlet="rightTemplate"></ng-template>
240
+
241
+ <input type="range" min="0" max="100" value="50" (input)="onSlide($event)" [class]="cx('slider')" />
242
+ `,
243
+ host: {
244
+ class: 'p-imagecompare',
245
+ '[attr.tabindex]': 'tabindex',
246
+ '[attr.aria-labelledby]': 'ariaLabelledby',
247
+ '[attr.aria-label]': 'ariaLabel'
248
+ },
249
+ changeDetection: ChangeDetectionStrategy.OnPush,
250
+ encapsulation: ViewEncapsulation.None,
251
+ providers: [ImageCompareStyle]
252
+ }]
253
+ }], null, { tabindex: [{
254
+ type: Input
255
+ }], ariaLabelledby: [{
256
+ type: Input
257
+ }], ariaLabel: [{
258
+ type: Input
259
+ }], leftTemplate: [{
260
+ type: ContentChild,
261
+ args: ['left']
262
+ }], rightTemplate: [{
263
+ type: ContentChild,
264
+ args: ['right']
265
+ }] }); })();
266
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ImageCompare, { className: "ImageCompare" }); })();
267
+ class ImageCompareModule {
268
+ static ɵfac = function ImageCompareModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ImageCompareModule)(); };
269
+ static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: ImageCompareModule });
270
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [ImageCompare, SharedModule, SharedModule] });
271
+ }
272
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ImageCompareModule, [{
273
+ type: NgModule,
274
+ args: [{
275
+ imports: [ImageCompare, SharedModule],
276
+ exports: [ImageCompare, SharedModule]
277
+ }]
278
+ }], null, null); })();
279
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ImageCompareModule, { imports: [ImageCompare, SharedModule], exports: [ImageCompare, SharedModule] }); })();
280
+
281
+ /**
282
+ * Generated bundle index. Do not edit.
283
+ */
284
+
285
+ export { ImageCompare, ImageCompareClasses, ImageCompareModule, ImageCompareStyle };
286
+ //# sourceMappingURL=primeng-imagecompare.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primeng-imagecompare.mjs","sources":["../../src/imagecompare/style/imagecomparestyle.ts","../../src/imagecompare/imagecompare.ts","../../src/imagecompare/primeng-imagecompare.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BaseStyle } from 'primeng/base';\n\nconst theme = ({ dt }) => `\n.p-imagecompare {\n position: relative;\n overflow: hidden;\n width: 100%;\n aspect-ratio: 16 / 9;\n}\n\n.p-imagecompare img {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.p-imagecompare img + img {\n clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);\n}\n\n.p-imagecompare:dir(rtl) img + img {\n clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);\n}\n\n.p-imagecompare-slider {\n position: relative;\n -webkit-appearance: none;\n width: calc(100% + ${dt('imagecompare.handle.size')});\n height: 100%;\n margin-inline-start: calc(-1 * calc(${dt('imagecompare.handle.size')} / 2));\n background-color: transparent;\n outline: none;\n transition: all ${dt('imagecompare.handle.transition.duration')};\n}\n\n.p-imagecompare-slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n height: ${dt('imagecompare.handle.size')};\n width: ${dt('imagecompare.handle.size')};\n background: ${dt('imagecompare.handle.background')};\n border: ${dt('imagecompare.handle.border.width')} solid ${dt('imagecompare.handle.border.color')};\n border-radius: ${dt('imagecompare.handle.border.radius')};\n background-size: contain;\n cursor: ew-resize;\n transition: all ${dt('imagecompare.handle.transition.duration')};\n}\n\n.p-imagecompare-slider::-moz-range-thumb {\n height: ${dt('imagecompare.handle.size')};\n width: ${dt('imagecompare.handle.size')};\n background: ${dt('imagecompare.handle.background')};\n border: ${dt('imagecompare.handle.border.width')} ${dt('imagecompare.handle.border.style')} ${dt('imagecompare.handle.border.color')};\n border-radius: ${dt('imagecompare.handle.border.radius')};\n background-size: contain;\n cursor: ew-resize;\n}\n\n.p-imagecompare-slider:focus-visible::-webkit-slider-thumb {\n box-shadow: ${dt('imagecompare.handle.focus.ring.shadow')};\n outline: ${dt('imagecompare.handle.focus.ring.width')} ${dt('imagecompare.handle.focus.ring.style')} ${dt('imagecompare.handle.focus.ring.color')};\n outline-offset: ${dt('imagecompare.handle.focus.ring.offset')};\n}\n\n.p-imagecompare-slider:focus-visible::-moz-range-thumb {\n box-shadow: ${dt('imagecompare.handle.focus.ring.shadow')};\n outline: ${dt('imagecompare.handle.focus.ring.width')} ${dt('imagecompare.handle.focus.ring.style')} ${dt('imagecompare.handle.focus.ring.color')};\n outline-offset: ${dt('imagecompare.handle.focus.ring.offset')};\n}\n\n.p-imagecompare-slider:hover {\n width: calc(100% + ${dt('imagecompare.handle.hover.size')});\n margin-inline-start: calc(-1 * calc(${dt('imagecompare.handle.hover.size')} / 2));\n}\n\n.p-imagecompare-slider:hover::-webkit-slider-thumb {\n background: ${dt('imagecompare.handle.hover.background')};\n border-color: ${dt('imagecompare.handle.hover.border.color')};\n height: ${dt('imagecompare.handle.hover.size')};\n width: ${dt('imagecompare.handle.hover.size')};\n}\n\n.p-imagecompare-slider:hover::-moz-range-thumb {\n background: ${dt('imagecompare.handle.hover.background')};\n border-color: ${dt('imagecompare.handle.hover.border.color')};\n height: ${dt('imagecompare.handle.hover.size')};\n width: ${dt('imagecompare.handle.hover.size')};\n}\n`;\n\nconst classes = {\n root: 'p-imagecompare',\n slider: 'p-imagecompare-slider'\n};\n\n@Injectable()\nexport class ImageCompareStyle extends BaseStyle {\n name = 'imagecompare';\n\n theme = theme;\n\n classes = classes;\n}\n\n/**\n *\n * ImageCompare compares two images side by side with a slider.\n *\n * [Live Demo](https://www.primeng.org/imagecompare/)\n *\n * @module imagecomparestyle\n *\n */\nexport enum ImageCompareClasses {\n /**\n * Class name of the root element\n */\n root = 'p-imagecompare',\n /**\n * Class name of the slider element\n */\n slider = 'p-imagecompare-slider'\n}\nexport interface ImageCompareStyle extends BaseStyle {}\n","import { CommonModule, isPlatformBrowser } from '@angular/common';\nimport { AfterContentInit, ChangeDetectionStrategy, Component, ContentChild, inject, Input, NgModule, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { SharedModule } from 'primeng/api';\nimport { BaseComponent } from 'primeng/basecomponent';\nimport { ImageCompareStyle } from './style/imagecomparestyle';\n\n/**\n * Compare two images side by side with a slider.\n * @group Components\n */\n@Component({\n selector: 'p-imageCompare, p-imagecompare, p-image-compare',\n standalone: true,\n imports: [CommonModule, SharedModule],\n template: `\n <ng-template *ngTemplateOutlet=\"leftTemplate\"></ng-template>\n <ng-template *ngTemplateOutlet=\"rightTemplate\"></ng-template>\n\n <input type=\"range\" min=\"0\" max=\"100\" value=\"50\" (input)=\"onSlide($event)\" [class]=\"cx('slider')\" />\n `,\n host: {\n class: 'p-imagecompare',\n '[attr.tabindex]': 'tabindex',\n '[attr.aria-labelledby]': 'ariaLabelledby',\n '[attr.aria-label]': 'ariaLabel'\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [ImageCompareStyle]\n})\nexport class ImageCompare extends BaseComponent implements AfterContentInit {\n isRTL: boolean = false;\n\n /**\n * Index of the element in tabbing order.\n * @defaultValue 0\n * @group Props\n */\n @Input() tabindex: number | undefined;\n /**\n * Defines a string value that labels an interactive element.\n * @group Props\n */\n @Input() ariaLabelledby: string | undefined;\n /**\n * Identifier of the underlying input element.\n * @group Props\n */\n @Input() ariaLabel: string | undefined;\n\n /**\n * Template for the left side.\n * @group Templates\n */\n @ContentChild('left') leftTemplate: TemplateRef<any>;\n\n /**\n * Template for the right side.\n * @group Templates\n */\n @ContentChild('right') rightTemplate: TemplateRef<any>;\n\n _componentStyle = inject(ImageCompareStyle);\n\n mutationObserver: MutationObserver;\n\n ngOnInit() {\n super.ngOnInit();\n this.updateDirection();\n this.observeDirectionChanges();\n }\n\n onSlide(event) {\n const value = event.target.value;\n const image = event.target.previousElementSibling;\n\n if (this.isRTL) {\n image.style.clipPath = `polygon(${100 - value}% 0, 100% 0, 100% 100%, ${100 - value}% 100%)`;\n } else {\n image.style.clipPath = `polygon(0 0, ${value}% 0, ${value}% 100%, 0 100%)`;\n }\n }\n\n updateDirection() {\n this.isRTL = !!this.el.nativeElement.closest('[dir=\"rtl\"]');\n }\n\n observeDirectionChanges() {\n if (isPlatformBrowser(this.platformId)) {\n const targetNode = document?.documentElement;\n const config = { attributes: true, attributeFilter: ['dir'] };\n\n this.mutationObserver = new MutationObserver(() => {\n this.updateDirection();\n });\n\n this.mutationObserver.observe(targetNode, config);\n }\n }\n\n ngOnDestroy() {\n if (this.mutationObserver) {\n this.mutationObserver.disconnect();\n }\n\n super.ngOnDestroy();\n }\n}\n\n@NgModule({\n imports: [ImageCompare, SharedModule],\n exports: [ImageCompare, SharedModule]\n})\nexport class ImageCompareModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AAGA,MAAM,KAAK,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;yBAyBD,EAAE,CAAC,0BAA0B,CAAC,CAAA;;0CAEb,EAAE,CAAC,0BAA0B,CAAC,CAAA;;;sBAGlD,EAAE,CAAC,yCAAyC,CAAC,CAAA;;;;;cAKrD,EAAE,CAAC,0BAA0B,CAAC,CAAA;aAC/B,EAAE,CAAC,0BAA0B,CAAC,CAAA;kBACzB,EAAE,CAAC,gCAAgC,CAAC,CAAA;AACxC,YAAA,EAAA,EAAE,CAAC,kCAAkC,CAAC,UAAU,EAAE,CAAC,kCAAkC,CAAC,CAAA;qBAC/E,EAAE,CAAC,mCAAmC,CAAC,CAAA;;;sBAGtC,EAAE,CAAC,yCAAyC,CAAC,CA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,EAAA,CAAA;kBAAhB;YAKQ,cAAc,EAAA,CAAA;kBAAtB;YAKQ,SAAS,EAAA,CAAA;kBAAjB;YAMqB,YAAY,EAAA,CAAA;kBAAjC,YAAY;mBAAC,MAAM;YAMG,aAAa,EAAA,CAAA;kBAAnC,YAAY;mBAAC,OAAO;;kFA9BZ,YAAY,EAAA,EAAA,SAAA,EAAA,cAAA,EAAA,CAAA,CAAA,EAAA,GAAA;MAmFZ,kBAAkB,CAAA;4GAAlB,kBAAkB,GAAA,CAAA,EAAA;4DAAlB,kBAAkB,EAAA,CAAA;gEAHjB,YAAY,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;iFAE3B,kBAAkB,EAAA,CAAA;cAJ9B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;AACrC,gBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY;AACvC,aAAA;;AACY,CAAA,YAAA,EAAA,CAAA,OAAA,SAAA,KAAA,WAAA,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,kBAAkB,cAnFlB,YAAY,EAgFG,YAAY,CAhF3B,EAAA,OAAA,EAAA,CAAA,YAAY,EAiFG,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;AC/GxC;;AAEG;;;;"}
@@ -131,9 +131,9 @@ function Inplace_div_2_ng_container_3_button_2_Template(rf, ctx) { if (rf & 1) {
131
131
  i0.ɵɵproperty("ngClass", "p-button-icon-only");
132
132
  i0.ɵɵattribute("aria-label", ctx_r1.closeAriaLabel);
133
133
  i0.ɵɵadvance();
134
- i0.ɵɵproperty("ngIf", !ctx_r1.closeIconTemplate);
134
+ i0.ɵɵproperty("ngIf", !ctx_r1.closeicon);
135
135
  i0.ɵɵadvance();
136
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.closeIconTemplate);
136
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.closeicon);
137
137
  } }
138
138
  function Inplace_div_2_ng_container_3_Template(rf, ctx) { if (rf & 1) {
139
139
  i0.ɵɵelementContainerStart(0);
@@ -260,7 +260,7 @@ class Inplace extends BaseComponent {
260
260
  * Content template of the element.
261
261
  * @group Templates
262
262
  */
263
- closeIconTemplate;
263
+ closeicon;
264
264
  /**
265
265
  * Close icon template of the element.
266
266
  * @group Templates
@@ -314,7 +314,7 @@ class Inplace extends BaseComponent {
314
314
  let _t;
315
315
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.displayTemplate = _t.first);
316
316
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentTemplate = _t.first);
317
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.closeIconTemplate = _t.first);
317
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.closeicon = _t.first);
318
318
  } }, inputs: { active: [2, "active", "active", booleanAttribute], closable: [2, "closable", "closable", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], preventClick: [2, "preventClick", "preventClick", booleanAttribute], style: "style", styleClass: "styleClass", closeIcon: "closeIcon", closeAriaLabel: "closeAriaLabel" }, outputs: { onActivate: "onActivate", onDeactivate: "onDeactivate" }, standalone: true, features: [i0.ɵɵProvidersFeature([InplaceStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], ngContentSelectors: _c5, decls: 3, vars: 9, consts: [[3, "ngClass", "ngStyle"], ["class", "p-inplace-display", "tabindex", "0", "role", "button", 3, "ngClass", "click", "keydown", 4, "ngIf"], ["class", "p-inplace-content", 4, "ngIf"], ["tabindex", "0", "role", "button", 1, "p-inplace-display", 3, "click", "keydown", "ngClass"], [4, "ngTemplateOutlet"], [1, "p-inplace-content"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [4, "ngIf"], ["type", "button", "pButton", "", "pRipple", "", 3, "icon", "click", 4, "ngIf"], ["type", "button", "pButton", "", "pRipple", "", 3, "ngClass", "click", 4, "ngIf"], ["type", "button", "pButton", "", "pRipple", "", 3, "click", "icon"], ["type", "button", "pButton", "", "pRipple", "", 3, "click", "ngClass"]], template: function Inplace_Template(rf, ctx) { if (rf & 1) {
319
319
  i0.ɵɵprojectionDef(_c4);
320
320
  i0.ɵɵelementStart(0, "div", 0);
@@ -349,8 +349,8 @@ class Inplace extends BaseComponent {
349
349
  <ng-container *ngIf="closable">
350
350
  <button *ngIf="closeIcon" type="button" [icon]="closeIcon" pButton pRipple (click)="onDeactivateClick($event)" [attr.aria-label]="closeAriaLabel"></button>
351
351
  <button *ngIf="!closeIcon" type="button" pButton pRipple [ngClass]="'p-button-icon-only'" (click)="onDeactivateClick($event)" [attr.aria-label]="closeAriaLabel">
352
- <TimesIcon *ngIf="!closeIconTemplate" />
353
- <ng-template *ngTemplateOutlet="closeIconTemplate"></ng-template>
352
+ <TimesIcon *ngIf="!closeicon" />
353
+ <ng-template *ngTemplateOutlet="closeicon"></ng-template>
354
354
  </button>
355
355
  </ng-container>
356
356
  </div>
@@ -390,7 +390,7 @@ class Inplace extends BaseComponent {
390
390
  }], contentTemplate: [{
391
391
  type: ContentChild,
392
392
  args: ['content']
393
- }], closeIconTemplate: [{
393
+ }], closeicon: [{
394
394
  type: ContentChild,
395
395
  args: ['closeicon']
396
396
  }] }); })();
@@ -1 +1 @@
1
- {"version":3,"file":"primeng-inplace.mjs","sources":["../../src/inplace/style/inplacestyle.ts","../../src/inplace/inplace.ts","../../src/inplace/primeng-inplace.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BaseStyle } from 'primeng/base';\n\nconst theme = ({ dt }) => `\n.p-inplace-display {\n display: inline-block;\n cursor: pointer;\n border: 1px solid transparent;\n padding: ${dt('inplace.padding')};\n border-radius: ${dt('inplace.border.radius')};\n transition: background ${dt('inplace.transition.duration')}, color ${dt('inplace.transition.duration')}, outline-color ${dt('inplace.transition.duration')}, box-shadow ${dt('inplace.transition.duration')};\n outline-color: transparent;\n}\n\n.p-inplace-display:not(.p-disabled):hover {\n background: ${dt('inplace.display.hover.background')};\n color: ${dt('inplace.display.hover.color')};\n}\n\n.p-inplace-display:focus-visible {\n box-shadow: ${dt('inplace.focus.ring.shadow')};\n outline: ${dt('inplace.focus.ring.width')} ${dt('inplace.focus.ring.style')} ${dt('inplace.focus.ring.color')};\n outline-offset: ${dt('inplace.focus.ring.offset')};\n}\n\n.p-inplace-content {\n display: block;\n}\n`;\n\nconst classes = {\n root: 'p-inplace p-component',\n display: ({ props }) => ['p-inplace-display', { 'p-disabled': props.disabled }],\n content: 'p-inplace-content'\n};\n\n@Injectable()\nexport class InplaceStyle extends BaseStyle {\n name = 'inplace';\n\n theme = theme;\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://www.primeng.org/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 { booleanAttribute, ChangeDetectionStrategy, Component, ContentChild, EventEmitter, inject, Input, NgModule, Output, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { SharedModule } from 'primeng/api';\nimport { BaseComponent } from 'primeng/basecomponent';\nimport { ButtonModule } from 'primeng/button';\nimport { TimesIcon } from 'primeng/icons';\nimport { InplaceStyle } from './style/inplacestyle';\n\n@Component({\n selector: 'p-inplacedisplay, p-inplaceDisplay',\n standalone: true,\n imports: [CommonModule],\n template: '<ng-content></ng-content>'\n})\nexport class InplaceDisplay {}\n\n@Component({\n selector: 'p-inplacecontent, p-inplaceContent',\n standalone: true,\n imports: [CommonModule],\n template: '<ng-content></ng-content>'\n})\nexport class InplaceContent {}\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],\n template: `\n <div [ngClass]=\"{ 'p-inplace p-component': true, 'p-inplace-closable': closable }\" [ngStyle]=\"style\" [class]=\"styleClass\" [attr.aria-live]=\"'polite'\">\n <div class=\"p-inplace-display\" (click)=\"onActivateClick($event)\" tabindex=\"0\" role=\"button\" (keydown)=\"onKeydown($event)\" [ngClass]=\"{ 'p-disabled': disabled }\" *ngIf=\"!active\">\n <ng-content select=\"[pInplaceDisplay]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"displayTemplate\"></ng-container>\n </div>\n <div class=\"p-inplace-content\" *ngIf=\"active\">\n <ng-content select=\"[pInplaceContent]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate; context: { closeCallback: onDeactivateClick.bind(this) }\"></ng-container>\n\n <ng-container *ngIf=\"closable\">\n <button *ngIf=\"closeIcon\" type=\"button\" [icon]=\"closeIcon\" pButton pRipple (click)=\"onDeactivateClick($event)\" [attr.aria-label]=\"closeAriaLabel\"></button>\n <button *ngIf=\"!closeIcon\" type=\"button\" pButton pRipple [ngClass]=\"'p-button-icon-only'\" (click)=\"onDeactivateClick($event)\" [attr.aria-label]=\"closeAriaLabel\">\n <TimesIcon *ngIf=\"!closeIconTemplate\" />\n <ng-template *ngTemplateOutlet=\"closeIconTemplate\"></ng-template>\n </button>\n </ng-container>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [InplaceStyle]\n})\nexport class Inplace extends BaseComponent {\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 * @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 * Inline style of the element.\n * @group Props\n */\n @Input() style: { [klass: string]: any } | null | undefined;\n /**\n * Class of the element.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Icon to display in the close button.\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 @Output() onActivate: EventEmitter<Event> = new EventEmitter<Event>();\n /**\n * Callback to invoke when inplace is closed.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n @Output() onDeactivate: EventEmitter<Event> = new EventEmitter<Event>();\n\n hover!: boolean;\n\n @ContentChild('display') displayTemplate: TemplateRef<any> | undefined;\n /**\n * Display template of the element.\n * @group Templates\n */\n @ContentChild('content') contentTemplate: TemplateRef<any> | undefined;\n /**\n * Content template of the element.\n * @group Templates\n */\n @ContentChild('closeicon') closeIconTemplate: TemplateRef<any> | undefined;\n /**\n * Close icon template of the element.\n * @group Templates\n */\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\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":";;;;;;;;;;;AAGA,MAAM,KAAK,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK;;;;;eAKX,EAAE,CAAC,iBAAiB,CAAC,CAAA;qBACf,EAAE,CAAC,uBAAuB,CAAC,CAAA;AACnB,2BAAA,EAAA,EAAE,CAAC,6BAA6B,CAAC,CAAW,QAAA,EAAA,EAAE,CAAC,6BAA6B,CAAC,CAAmB,gBAAA,EAAA,EAAE,CAAC,6BAA6B,CAAC,gBAAgB,EAAE,CAAC,6BAA6B,CAAC,CAAA;;;;;kBAK7L,EAAE,CAAC,kCAAkC,CAAC,CAAA;aAC3C,EAAE,CAAC,6BAA6B,CAAC,CAAA;;;;kBAI5B,EAAE,CAAC,2BAA2B,CAAC,CAAA;AAClC,aAAA,EAAA,EAAE,CAAC,0BAA0B,CAAC,CAAA,CAAA,EAAI,EAAE,CAAC,0BAA0B,CAAC,CAAI,CAAA,EAAA,EAAE,CAAC,0BAA0B,CAAC,CAAA;sBAC3F,EAAE,CAAC,2BAA2B,CAAC,CAAA;;;;;;CAMpD;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,uBAAuB;AAC7B,IAAA,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,mBAAmB,EAAE,EAAE,YAAY,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;AAC/E,IAAA,OAAO,EAAE;CACZ;AAGK,MAAO,YAAa,SAAQ,SAAS,CAAA;IACvC,IAAI,GAAG,SAAS;IAEhB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;AALR,IAAA,OAAA,IAAA,iBAAA,CAAA,MAAA,EAAA,IAAA,yBAAA,CA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AIwB,eAAe,EAAA,CAAA;kBAAvC,YAAY;mBAAC,SAAS;YAKE,eAAe,EAAA,CAAA;kBAAvC,YAAY;mBAAC,SAAS;YAKI,iBAAiB,EAAA,CAAA;kBAA3C,YAAY;mBAAC,WAAW;;kFAlEhB,OAAO,EAAA,EAAA,SAAA,EAAA,SAAA,EAAA,CAAA,CAAA,EAAA,GAAA;MAuHP,aAAa,CAAA;uGAAb,aAAa,GAAA,CAAA,EAAA;4DAAb,aAAa,EAAA,CAAA;AAHZ,IAAA,OAAA,IAAA,iBAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;iFAEtD,aAAa,EAAA,CAAA;cAJzB,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;gBACN,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,CAAC;gBAChE,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY;AAClE,aAAA;;AACY,CAAA,YAAA,EAAA,CAAA,OAAA,SAAA,KAAA,WAAA,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,aAAa,EAvHb,EAAA,OAAA,EAAA,CAAA,OAAO,EAjCP,cAAc,EARd,cAAc,EA6J4B,YAAY,CAAA,EAAA,OAAA,EAAA,CApHtD,OAAO,EAjCP,cAAc,EARd,cAAc,EA8J4B,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;AC5KnE;;AAEG;;;;"}
1
+ {"version":3,"file":"primeng-inplace.mjs","sources":["../../src/inplace/style/inplacestyle.ts","../../src/inplace/inplace.ts","../../src/inplace/primeng-inplace.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BaseStyle } from 'primeng/base';\n\nconst theme = ({ dt }) => `\n.p-inplace-display {\n display: inline-block;\n cursor: pointer;\n border: 1px solid transparent;\n padding: ${dt('inplace.padding')};\n border-radius: ${dt('inplace.border.radius')};\n transition: background ${dt('inplace.transition.duration')}, color ${dt('inplace.transition.duration')}, outline-color ${dt('inplace.transition.duration')}, box-shadow ${dt('inplace.transition.duration')};\n outline-color: transparent;\n}\n\n.p-inplace-display:not(.p-disabled):hover {\n background: ${dt('inplace.display.hover.background')};\n color: ${dt('inplace.display.hover.color')};\n}\n\n.p-inplace-display:focus-visible {\n box-shadow: ${dt('inplace.focus.ring.shadow')};\n outline: ${dt('inplace.focus.ring.width')} ${dt('inplace.focus.ring.style')} ${dt('inplace.focus.ring.color')};\n outline-offset: ${dt('inplace.focus.ring.offset')};\n}\n\n.p-inplace-content {\n display: block;\n}\n`;\n\nconst classes = {\n root: 'p-inplace p-component',\n display: ({ props }) => ['p-inplace-display', { 'p-disabled': props.disabled }],\n content: 'p-inplace-content'\n};\n\n@Injectable()\nexport class InplaceStyle extends BaseStyle {\n name = 'inplace';\n\n theme = theme;\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://www.primeng.org/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 { booleanAttribute, ChangeDetectionStrategy, Component, ContentChild, EventEmitter, inject, Input, NgModule, Output, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { SharedModule } from 'primeng/api';\nimport { BaseComponent } from 'primeng/basecomponent';\nimport { ButtonModule } from 'primeng/button';\nimport { TimesIcon } from 'primeng/icons';\nimport { InplaceStyle } from './style/inplacestyle';\n\n@Component({\n selector: 'p-inplacedisplay, p-inplaceDisplay',\n standalone: true,\n imports: [CommonModule],\n template: '<ng-content></ng-content>'\n})\nexport class InplaceDisplay {}\n\n@Component({\n selector: 'p-inplacecontent, p-inplaceContent',\n standalone: true,\n imports: [CommonModule],\n template: '<ng-content></ng-content>'\n})\nexport class InplaceContent {}\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],\n template: `\n <div [ngClass]=\"{ 'p-inplace p-component': true, 'p-inplace-closable': closable }\" [ngStyle]=\"style\" [class]=\"styleClass\" [attr.aria-live]=\"'polite'\">\n <div class=\"p-inplace-display\" (click)=\"onActivateClick($event)\" tabindex=\"0\" role=\"button\" (keydown)=\"onKeydown($event)\" [ngClass]=\"{ 'p-disabled': disabled }\" *ngIf=\"!active\">\n <ng-content select=\"[pInplaceDisplay]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"displayTemplate\"></ng-container>\n </div>\n <div class=\"p-inplace-content\" *ngIf=\"active\">\n <ng-content select=\"[pInplaceContent]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate; context: { closeCallback: onDeactivateClick.bind(this) }\"></ng-container>\n\n <ng-container *ngIf=\"closable\">\n <button *ngIf=\"closeIcon\" type=\"button\" [icon]=\"closeIcon\" pButton pRipple (click)=\"onDeactivateClick($event)\" [attr.aria-label]=\"closeAriaLabel\"></button>\n <button *ngIf=\"!closeIcon\" type=\"button\" pButton pRipple [ngClass]=\"'p-button-icon-only'\" (click)=\"onDeactivateClick($event)\" [attr.aria-label]=\"closeAriaLabel\">\n <TimesIcon *ngIf=\"!closeicon\" />\n <ng-template *ngTemplateOutlet=\"closeicon\"></ng-template>\n </button>\n </ng-container>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [InplaceStyle]\n})\nexport class Inplace extends BaseComponent {\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 * @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 * Inline style of the element.\n * @group Props\n */\n @Input() style: { [klass: string]: any } | null | undefined;\n /**\n * Class of the element.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Icon to display in the close button.\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 @Output() onActivate: EventEmitter<Event> = new EventEmitter<Event>();\n /**\n * Callback to invoke when inplace is closed.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n @Output() onDeactivate: EventEmitter<Event> = new EventEmitter<Event>();\n\n hover!: boolean;\n\n @ContentChild('display') displayTemplate: TemplateRef<any> | undefined;\n /**\n * Display template of the element.\n * @group Templates\n */\n @ContentChild('content') contentTemplate: TemplateRef<any> | undefined;\n /**\n * Content template of the element.\n * @group Templates\n */\n @ContentChild('closeicon') closeicon: TemplateRef<any> | undefined;\n /**\n * Close icon template of the element.\n * @group Templates\n */\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\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":";;;;;;;;;;;AAGA,MAAM,KAAK,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK;;;;;eAKX,EAAE,CAAC,iBAAiB,CAAC,CAAA;qBACf,EAAE,CAAC,uBAAuB,CAAC,CAAA;AACnB,2BAAA,EAAA,EAAE,CAAC,6BAA6B,CAAC,CAAW,QAAA,EAAA,EAAE,CAAC,6BAA6B,CAAC,CAAmB,gBAAA,EAAA,EAAE,CAAC,6BAA6B,CAAC,gBAAgB,EAAE,CAAC,6BAA6B,CAAC,CAAA;;;;;kBAK7L,EAAE,CAAC,kCAAkC,CAAC,CAAA;aAC3C,EAAE,CAAC,6BAA6B,CAAC,CAAA;;;;kBAI5B,EAAE,CAAC,2BAA2B,CAAC,CAAA;AAClC,aAAA,EAAA,EAAE,CAAC,0BAA0B,CAAC,CAAA,CAAA,EAAI,EAAE,CAAC,0BAA0B,CAAC,CAAI,CAAA,EAAA,EAAE,CAAC,0BAA0B,CAAC,CAAA;sBAC3F,EAAE,CAAC,2BAA2B,CAAC,CAAA;;;;;;CAMpD;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,uBAAuB;AAC7B,IAAA,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,mBAAmB,EAAE,EAAE,YAAY,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;AAC/E,IAAA,OAAO,EAAE;CACZ;AAGK,MAAO,YAAa,SAAQ,SAAS,CAAA;IACvC,IAAI,GAAG,SAAS;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inputmask.ng-invalid.ng-dirty > .p-inputtext {
17
- border-color: ${dt('inputtext.invalid.border.color')};
18
- }
19
-
20
15
  p-inputmask {
21
16
  position: relative;
22
17
  }
@@ -26,9 +21,21 @@ p-inputmask {
26
21
  top: 50%;
27
22
  margin-top: -0.5rem;
28
23
  cursor: pointer;
29
- right: ${dt('form.field.padding.x')};
24
+ inset-inline-end: ${dt('form.field.padding.x')};
30
25
  color: ${dt('form.field.icon.color')};
31
26
  }
27
+
28
+ p-inputmask.ng-invalid.ng-dirty > .p-inputtext {
29
+ border-color: ${dt('inputtext.invalid.border.color')};
30
+ }
31
+
32
+ p-inputmask.ng-invalid.ng-dirty > .p-inputtext:enabled:focus {
33
+ border-color: ${dt('inputtext.focus.border.color')};
34
+ }
35
+
36
+ p-inputmask.ng-invalid.ng-dirty > .p-inputtext::placeholder {
37
+ color: ${dt('inputtext.invalid.placeholder.color')};
38
+ }
32
39
  `;
33
40
  const classes = {
34
41
  root: ({ instance }) => ({
@@ -115,7 +122,7 @@ function InputMask_ng_container_2_span_2_Template(rf, ctx) { if (rf & 1) {
115
122
  const ctx_r2 = i0.ɵɵnextContext(2);
116
123
  i0.ɵɵattribute("data-pc-section", "clearIcon");
117
124
  i0.ɵɵadvance();
118
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.clearIconTemplate);
125
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.cleariconTemplate);
119
126
  } }
120
127
  function InputMask_ng_container_2_Template(rf, ctx) { if (rf & 1) {
121
128
  i0.ɵɵelementContainerStart(0);
@@ -124,9 +131,9 @@ function InputMask_ng_container_2_Template(rf, ctx) { if (rf & 1) {
124
131
  } if (rf & 2) {
125
132
  const ctx_r2 = i0.ɵɵnextContext();
126
133
  i0.ɵɵadvance();
127
- i0.ɵɵproperty("ngIf", !ctx_r2.clearIconTemplate);
134
+ i0.ɵɵproperty("ngIf", !ctx_r2.cleariconTemplate);
128
135
  i0.ɵɵadvance();
129
- i0.ɵɵproperty("ngIf", ctx_r2.clearIconTemplate);
136
+ i0.ɵɵproperty("ngIf", ctx_r2.cleariconTemplate);
130
137
  } }
131
138
  const INPUTMASK_VALUE_ACCESSOR = {
132
139
  provide: NG_VALUE_ACCESSOR,
@@ -323,7 +330,7 @@ class InputMask extends BaseComponent {
323
330
  * Template of the clear icon.
324
331
  * @group Templates
325
332
  */
326
- clearIconTemplate;
333
+ cleariconTemplate;
327
334
  inputViewChild;
328
335
  value;
329
336
  _mask;
@@ -793,13 +800,13 @@ class InputMask extends BaseComponent {
793
800
  i0.ɵɵcontentQuery(dirIndex, _c0, 5);
794
801
  } if (rf & 2) {
795
802
  let _t;
796
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.clearIconTemplate = _t.first);
803
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.cleariconTemplate = _t.first);
797
804
  } }, viewQuery: function InputMask_Query(rf, ctx) { if (rf & 1) {
798
805
  i0.ɵɵviewQuery(_c1, 7);
799
806
  } if (rf & 2) {
800
807
  let _t;
801
808
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputViewChild = _t.first);
802
- } }, inputs: { type: "type", slotChar: "slotChar", autoClear: [2, "autoClear", "autoClear", booleanAttribute], showClear: [2, "showClear", "showClear", booleanAttribute], style: "style", inputId: "inputId", styleClass: "styleClass", placeholder: "placeholder", size: "size", maxlength: [2, "maxlength", "maxlength", numberAttribute], tabindex: "tabindex", title: "title", variant: "variant", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", ariaRequired: [2, "ariaRequired", "ariaRequired", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], readonly: [2, "readonly", "readonly", booleanAttribute], unmask: [2, "unmask", "unmask", booleanAttribute], name: "name", required: [2, "required", "required", booleanAttribute], characterPattern: "characterPattern", autofocus: [2, "autofocus", "autofocus", booleanAttribute], autoFocus: [2, "autoFocus", "autoFocus", booleanAttribute], autocomplete: "autocomplete", keepBuffer: [2, "keepBuffer", "keepBuffer", booleanAttribute], mask: "mask" }, outputs: { onComplete: "onComplete", onFocus: "onFocus", onBlur: "onBlur", onInput: "onInput", onKeydown: "onKeydown", onClear: "onClear" }, standalone: true, features: [i0.ɵɵProvidersFeature([INPUTMASK_VALUE_ACCESSOR, InputMaskStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 3, vars: 24, consts: [["input", ""], ["pInputText", "", 3, "focus", "blur", "keydown", "keypress", "input", "paste", "ngClass", "ngStyle", "size", "disabled", "readonly", "variant", "pAutoFocus"], [4, "ngIf"], [3, "styleClass", "click", 4, "ngIf"], ["class", "p-inputmask-clear-icon", 3, "click", 4, "ngIf"], [3, "click", "styleClass"], [1, "p-inputmask-clear-icon", 3, "click"], [4, "ngTemplateOutlet"]], template: function InputMask_Template(rf, ctx) { if (rf & 1) {
809
+ } }, inputs: { type: "type", slotChar: "slotChar", autoClear: [2, "autoClear", "autoClear", booleanAttribute], showClear: [2, "showClear", "showClear", booleanAttribute], style: "style", inputId: "inputId", styleClass: "styleClass", placeholder: "placeholder", size: "size", maxlength: [2, "maxlength", "maxlength", numberAttribute], tabindex: "tabindex", title: "title", variant: "variant", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", ariaRequired: [2, "ariaRequired", "ariaRequired", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], readonly: [2, "readonly", "readonly", booleanAttribute], unmask: [2, "unmask", "unmask", booleanAttribute], name: "name", required: [2, "required", "required", booleanAttribute], characterPattern: "characterPattern", autofocus: [2, "autofocus", "autofocus", booleanAttribute], autoFocus: [2, "autoFocus", "autoFocus", booleanAttribute], autocomplete: "autocomplete", keepBuffer: [2, "keepBuffer", "keepBuffer", booleanAttribute], mask: "mask" }, outputs: { onComplete: "onComplete", onFocus: "onFocus", onBlur: "onBlur", onInput: "onInput", onKeydown: "onKeydown", onClear: "onClear" }, standalone: true, features: [i0.ɵɵProvidersFeature([INPUTMASK_VALUE_ACCESSOR, InputMaskStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 3, vars: 24, consts: [["input", ""], ["pInputText", "", 3, "focus", "blur", "keydown", "keypress", "input", "paste", "ngClass", "ngStyle", "pSize", "disabled", "readonly", "variant", "pAutoFocus"], [4, "ngIf"], [3, "styleClass", "click", 4, "ngIf"], ["class", "p-inputmask-clear-icon", 3, "click", 4, "ngIf"], [3, "click", "styleClass"], [1, "p-inputmask-clear-icon", 3, "click"], [4, "ngTemplateOutlet"]], template: function InputMask_Template(rf, ctx) { if (rf & 1) {
803
810
  const _r1 = i0.ɵɵgetCurrentView();
804
811
  i0.ɵɵelementStart(0, "input", 1, 0);
805
812
  i0.ɵɵlistener("focus", function InputMask_Template_input_focus_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInputFocus($event)); })("blur", function InputMask_Template_input_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInputBlur($event)); })("keydown", function InputMask_Template_input_keydown_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInputKeydown($event)); })("keypress", function InputMask_Template_input_keypress_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onKeyPress($event)); })("input", function InputMask_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInputChange($event)); })("paste", function InputMask_Template_input_paste_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleInputChange($event)); });
@@ -807,7 +814,7 @@ class InputMask extends BaseComponent {
807
814
  i0.ɵɵtemplate(2, InputMask_ng_container_2_Template, 3, 2, "ng-container", 2);
808
815
  } if (rf & 2) {
809
816
  i0.ɵɵclassMap(ctx.styleClass);
810
- i0.ɵɵproperty("ngClass", ctx.inputClass)("ngStyle", ctx.style)("size", ctx.size)("disabled", ctx.disabled)("readonly", ctx.readonly)("variant", ctx.variant)("pAutoFocus", ctx.autofocus);
817
+ i0.ɵɵproperty("ngClass", ctx.inputClass)("ngStyle", ctx.style)("pSize", ctx.size)("disabled", ctx.disabled)("readonly", ctx.readonly)("variant", ctx.variant)("pAutoFocus", ctx.autofocus);
811
818
  i0.ɵɵattribute("id", ctx.inputId)("type", ctx.type)("name", ctx.name)("placeholder", ctx.placeholder)("title", ctx.title)("autocomplete", ctx.autocomplete)("maxlength", ctx.maxlength)("tabindex", ctx.tabindex)("aria-label", ctx.ariaLabel)("aria-labelledBy", ctx.ariaLabelledBy)("aria-required", ctx.ariaRequired)("required", ctx.required)("data-pc-name", "inputmask")("data-pc-section", "root");
812
819
  i0.ɵɵadvance(2);
813
820
  i0.ɵɵproperty("ngIf", ctx.value != null && ctx.filled && ctx.showClear && !ctx.disabled);
@@ -831,7 +838,7 @@ class InputMask extends BaseComponent {
831
838
  [ngStyle]="style"
832
839
  [attr.placeholder]="placeholder"
833
840
  [attr.title]="title"
834
- [size]="size"
841
+ [pSize]="size"
835
842
  [attr.autocomplete]="autocomplete"
836
843
  [attr.maxlength]="maxlength"
837
844
  [attr.tabindex]="tabindex"
@@ -853,9 +860,9 @@ class InputMask extends BaseComponent {
853
860
  [attr.data-pc-section]="'root'"
854
861
  />
855
862
  <ng-container *ngIf="value != null && filled && showClear && !disabled">
856
- <TimesIcon *ngIf="!clearIconTemplate" [styleClass]="'p-inputmask-clear-icon'" (click)="clear()" [attr.data-pc-section]="'clearIcon'" />
857
- <span *ngIf="clearIconTemplate" class="p-inputmask-clear-icon" (click)="clear()" [attr.data-pc-section]="'clearIcon'">
858
- <ng-template *ngTemplateOutlet="clearIconTemplate"></ng-template>
863
+ <TimesIcon *ngIf="!cleariconTemplate" [styleClass]="'p-inputmask-clear-icon'" (click)="clear()" [attr.data-pc-section]="'clearIcon'" />
864
+ <span *ngIf="cleariconTemplate" class="p-inputmask-clear-icon" (click)="clear()" [attr.data-pc-section]="'clearIcon'">
865
+ <ng-template *ngTemplateOutlet="cleariconTemplate"></ng-template>
859
866
  </span>
860
867
  </ng-container>
861
868
  `,
@@ -940,7 +947,7 @@ class InputMask extends BaseComponent {
940
947
  type: Output
941
948
  }], onClear: [{
942
949
  type: Output
943
- }], clearIconTemplate: [{
950
+ }], cleariconTemplate: [{
944
951
  type: ContentChild,
945
952
  args: ['clearicon']
946
953
  }], inputViewChild: [{