@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,10 +2,11 @@ export * from '@exhaustive-ui/core/types/checkbox';
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, forwardRef, input, output, viewChild, signal, contentChild, contentChildren, inject, computed, booleanAttribute, numberAttribute, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, forwardRef, input, booleanAttribute, numberAttribute, output, viewChild, computed, linkedSignal, contentChild, contentChildren, signal, inject, afterEveryRender, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import { NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
7
7
  import { contains, equals } from '@exhaustive-ui/utils';
8
8
  import { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
9
+ import { AutoFocus } from '@exhaustive-ui/core/autofocus';
9
10
  import { PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
10
11
  import { BaseEditableHolder } from '@exhaustive-ui/core/baseeditableholder';
11
12
  import * as i1 from '@exhaustive-ui/core/bind';
@@ -29,7 +30,7 @@ const classes = {
29
30
  root: ({ instance }) => [
30
31
  'p-checkbox p-component',
31
32
  {
32
- 'p-checkbox-checked p-highlight': instance.checked,
33
+ 'p-checkbox-checked p-highlight': instance.checked(),
33
34
  'p-disabled': instance.$disabled(),
34
35
  'p-invalid': instance.invalid(),
35
36
  'p-variant-filled': instance.$variant() === 'filled',
@@ -80,7 +81,6 @@ var CheckboxClasses;
80
81
  CheckboxClasses["icon"] = "p-checkbox-icon";
81
82
  })(CheckboxClasses || (CheckboxClasses = {}));
82
83
 
83
- const CHECKBOX_INSTANCE = new InjectionToken('CHECKBOX_INSTANCE');
84
84
  const CHECKBOX_VALUE_ACCESSOR = {
85
85
  provide: NG_VALUE_ACCESSOR,
86
86
  useExisting: forwardRef(() => Checkbox),
@@ -92,88 +92,93 @@ const CHECKBOX_VALUE_ACCESSOR = {
92
92
  */
93
93
  class Checkbox extends BaseEditableHolder {
94
94
  componentName = 'Checkbox';
95
- hostName = '';
95
+ hostName = input('', /* @ts-ignore */
96
+ ...(ngDevMode ? [{ debugName: "hostName" }] : /* istanbul ignore next */ []));
96
97
  /**
97
98
  * Value of the checkbox.
98
99
  * @group Props
99
100
  */
100
- value;
101
+ value = input(/* @ts-ignore */
102
+ ...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
101
103
  /**
102
104
  * Allows to select a boolean value instead of multiple values.
103
105
  * @group Props
104
106
  */
105
- binary;
107
+ binary = input(undefined, { ...(ngDevMode ? { debugName: "binary" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
106
108
  /**
107
109
  * Establishes relationships between the component and label(s) where its value should be one or more element IDs.
108
110
  * @group Props
109
111
  */
110
- ariaLabelledBy;
112
+ ariaLabelledBy = input(/* @ts-ignore */
113
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
111
114
  /**
112
115
  * Used to define a string that labels the input element.
113
116
  * @group Props
114
117
  */
115
- ariaLabel;
118
+ ariaLabel = input(/* @ts-ignore */
119
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
116
120
  /**
117
121
  * Index of the element in tabbing order.
118
122
  * @group Props
119
123
  */
120
- tabindex;
124
+ tabindex = input(undefined, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
121
125
  /**
122
126
  * Identifier of the focus input to match a label defined for the component.
123
127
  * @group Props
124
128
  */
125
- inputId;
129
+ inputId = input(/* @ts-ignore */
130
+ ...(ngDevMode ? [undefined, { debugName: "inputId" }] : /* istanbul ignore next */ []));
126
131
  /**
127
132
  * Inline style of the input element.
128
133
  * @group Props
129
134
  */
130
- inputStyle;
131
- /**
132
- * Style class of the component.
133
- * @deprecated since v20.0.0, use `class` instead.
134
- * @group Props
135
- */
136
- styleClass;
135
+ inputStyle = input(/* @ts-ignore */
136
+ ...(ngDevMode ? [undefined, { debugName: "inputStyle" }] : /* istanbul ignore next */ []));
137
137
  /**
138
138
  * Style class of the input element.
139
139
  * @group Props
140
140
  */
141
- inputClass;
141
+ inputClass = input(/* @ts-ignore */
142
+ ...(ngDevMode ? [undefined, { debugName: "inputClass" }] : /* istanbul ignore next */ []));
142
143
  /**
143
144
  * When present, it specifies input state as indeterminate.
144
145
  * @group Props
145
146
  */
146
- indeterminate = false;
147
+ indeterminate = input(false, { ...(ngDevMode ? { debugName: "indeterminate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
147
148
  /**
148
149
  * Form control value.
149
150
  * @group Props
150
151
  */
151
- formControl;
152
+ formControl = input(/* @ts-ignore */
153
+ ...(ngDevMode ? [undefined, { debugName: "formControl" }] : /* istanbul ignore next */ []));
152
154
  /**
153
155
  * Icon class of the checkbox icon.
154
156
  * @group Props
155
157
  */
156
- checkboxIcon;
158
+ checkboxIcon = input(/* @ts-ignore */
159
+ ...(ngDevMode ? [undefined, { debugName: "checkboxIcon" }] : /* istanbul ignore next */ []));
157
160
  /**
158
161
  * When present, it specifies that the component cannot be edited.
159
162
  * @group Props
160
163
  */
161
- readonly;
164
+ readonly = input(undefined, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
162
165
  /**
163
166
  * When present, it specifies that the component should automatically get focus on load.
164
167
  * @group Props
165
168
  */
166
- autofocus;
169
+ autofocus = input(undefined, { ...(ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
167
170
  /**
168
171
  * Value in checked state.
169
172
  * @group Props
170
173
  */
171
- trueValue = true;
174
+ trueValue = input(true, /* @ts-ignore */
175
+ ...(ngDevMode ? [{ debugName: "trueValue" }] : /* istanbul ignore next */ []));
172
176
  /**
173
177
  * Value in unchecked state.
174
178
  * @group Props
175
179
  */
176
- falseValue = false;
180
+ falseValue = input(false, /* @ts-ignore */
181
+ ...(ngDevMode ? [{ debugName: "falseValue" }] : /* istanbul ignore next */ []));
177
182
  /**
178
183
  * Specifies the input variant of the component.
179
184
  * @defaultValue undefined
@@ -208,10 +213,9 @@ class Checkbox extends BaseEditableHolder {
208
213
  onBlur = output();
209
214
  inputViewChild = viewChild.required('input', /* @ts-ignore */
210
215
  ...(ngDevMode ? [{ debugName: "inputViewChild" }] : /* istanbul ignore next */ []));
211
- get checked() {
212
- return this._indeterminate() ? false : this.binary ? this.modelValue() === this.trueValue : contains(this.value, this.modelValue());
213
- }
214
- _indeterminate = signal(undefined, /* @ts-ignore */
216
+ checked = computed(() => (this._indeterminate() ? false : this.binary() ? this.modelValue() === this.trueValue() : contains(this.value(), this.modelValue())), /* @ts-ignore */
217
+ ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
218
+ _indeterminate = linkedSignal(() => this.indeterminate(), /* @ts-ignore */
215
219
  ...(ngDevMode ? [{ debugName: "_indeterminate" }] : /* istanbul ignore next */ []));
216
220
  /**
217
221
  * Custom checkbox icon template.
@@ -220,33 +224,20 @@ class Checkbox extends BaseEditableHolder {
220
224
  checkboxIconTemplate = contentChild('icon', { ...(ngDevMode ? { debugName: "checkboxIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
221
225
  templates = contentChildren(PrimeTemplate, /* @ts-ignore */
222
226
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
223
- _checkboxIconTemplate;
224
- focused = false;
227
+ _checkboxIconTemplate = computed(() => this.templates()
228
+ .filter((item) => item.getType() === 'icon' || item.getType() === 'checkboxicon')
229
+ .at(-1)?.template, /* @ts-ignore */
230
+ ...(ngDevMode ? [{ debugName: "_checkboxIconTemplate" }] : /* istanbul ignore next */ []));
231
+ focused = signal(false, /* @ts-ignore */
232
+ ...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
225
233
  _componentStyle = inject(CheckboxStyle);
226
234
  bindDirectiveInstance = inject(Bind, { self: true });
227
- $pcCheckbox = inject(CHECKBOX_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
235
+ constructor() {
236
+ super();
237
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
238
+ }
228
239
  $variant = computed(() => this.variant() || this.config.inputStyle() || this.config.inputVariant(), /* @ts-ignore */
229
240
  ...(ngDevMode ? [{ debugName: "$variant" }] : /* istanbul ignore next */ []));
230
- onAfterContentInit() {
231
- this.templates()?.forEach((item) => {
232
- switch (item.getType()) {
233
- case 'icon':
234
- this._checkboxIconTemplate = item.template;
235
- break;
236
- case 'checkboxicon':
237
- this._checkboxIconTemplate = item.template;
238
- break;
239
- }
240
- });
241
- }
242
- onChanges(changes) {
243
- if (changes.indeterminate) {
244
- this._indeterminate.set(changes.indeterminate.currentValue);
245
- }
246
- }
247
- onAfterViewChecked() {
248
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
249
- }
250
241
  updateModel(event) {
251
242
  let newModelValue;
252
243
  /*
@@ -255,20 +246,18 @@ class Checkbox extends BaseEditableHolder {
255
246
  * `selfControl` is the source of truth of references, it is made to avoid reference loss.
256
247
  * */
257
248
  const selfControl = this.injector.get(NgControl, null, { optional: true, self: true });
258
- const currentModelValue = selfControl && !this.formControl ? selfControl.value : this.modelValue();
259
- if (!this.binary) {
260
- if (this.checked || this._indeterminate())
261
- newModelValue = currentModelValue.filter((val) => !equals(val, this.value));
249
+ const currentModelValue = selfControl && !this.formControl() ? selfControl.value : this.modelValue();
250
+ if (!this.binary()) {
251
+ if (this.checked() || this._indeterminate())
252
+ newModelValue = currentModelValue.filter((val) => !equals(val, this.value()));
262
253
  else
263
- newModelValue = currentModelValue ? [...currentModelValue, this.value] : [this.value];
254
+ newModelValue = currentModelValue ? [...currentModelValue, this.value()] : [this.value()];
264
255
  this.onModelChange(newModelValue);
265
256
  this.writeModelValue(newModelValue);
266
- if (this.formControl) {
267
- this.formControl.setValue(newModelValue);
268
- }
257
+ this.formControl()?.setValue(newModelValue);
269
258
  }
270
259
  else {
271
- newModelValue = this._indeterminate() ? this.trueValue : this.checked ? this.falseValue : this.trueValue;
260
+ newModelValue = this._indeterminate() ? this.trueValue() : this.checked() ? this.falseValue() : this.trueValue();
272
261
  this.writeModelValue(newModelValue);
273
262
  this.onModelChange(newModelValue);
274
263
  }
@@ -278,16 +267,16 @@ class Checkbox extends BaseEditableHolder {
278
267
  this.onChange.emit({ checked: newModelValue, originalEvent: event });
279
268
  }
280
269
  handleChange(event) {
281
- if (!this.readonly) {
270
+ if (!this.readonly()) {
282
271
  this.updateModel(event);
283
272
  }
284
273
  }
285
274
  onInputFocus(event) {
286
- this.focused = true;
275
+ this.focused.set(true);
287
276
  this.onFocus.emit(event);
288
277
  }
289
278
  onInputBlur(event) {
290
- this.focused = false;
279
+ this.focused.set(false);
291
280
  this.onBlur.emit(event);
292
281
  this.onModelTouched();
293
282
  }
@@ -302,153 +291,113 @@ class Checkbox extends BaseEditableHolder {
302
291
  */
303
292
  writeControlValue(value, setModelValue) {
304
293
  setModelValue(value);
305
- this.cd.markForCheck();
306
- }
307
- get dataP() {
308
- return this.cn({
309
- invalid: this.invalid(),
310
- checked: this.checked,
311
- disabled: this.$disabled(),
312
- filled: this.$variant() === 'filled',
313
- [this.size()]: this.size()
314
- });
315
294
  }
316
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Checkbox, deps: null, target: i0.ɵɵFactoryTarget.Component });
317
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Checkbox, isStandalone: true, selector: "p-checkbox, p-checkBox, p-check-box", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal: false, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, binary: { classPropertyName: "binary", publicName: "binary", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: false, isRequired: false, transformFunction: null }, inputStyle: { classPropertyName: "inputStyle", publicName: "inputStyle", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, inputClass: { classPropertyName: "inputClass", publicName: "inputClass", isSignal: false, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, formControl: { classPropertyName: "formControl", publicName: "formControl", isSignal: false, isRequired: false, transformFunction: null }, checkboxIcon: { classPropertyName: "checkboxIcon", publicName: "checkboxIcon", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, trueValue: { classPropertyName: "trueValue", publicName: "trueValue", isSignal: false, isRequired: false, transformFunction: null }, falseValue: { classPropertyName: "falseValue", publicName: "falseValue", isSignal: false, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onFocus: "onFocus", onBlur: "onBlur" }, host: { properties: { "class": "cn(cx('root'), styleClass)", "attr.data-p-highlight": "checked", "attr.data-p-checked": "checked", "attr.data-p-disabled": "$disabled()", "attr.data-p": "dataP" } }, providers: [CHECKBOX_VALUE_ACCESSOR, CheckboxStyle, { provide: CHECKBOX_INSTANCE, useExisting: Checkbox }, { provide: PARENT_INSTANCE, useExisting: Checkbox }], queries: [{ propertyName: "checkboxIconTemplate", first: true, predicate: ["icon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "inputViewChild", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
295
+ dataP = computed(() => this.cn({
296
+ invalid: this.invalid(),
297
+ checked: this.checked(),
298
+ disabled: this.$disabled(),
299
+ filled: this.$variant() === 'filled',
300
+ [this.size()]: this.size()
301
+ }), /* @ts-ignore */
302
+ ...(ngDevMode ? [{ debugName: "dataP" }] : /* istanbul ignore next */ []));
303
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Checkbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
304
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Checkbox, isStandalone: true, selector: "p-checkbox, p-checkBox, p-check-box", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, binary: { classPropertyName: "binary", publicName: "binary", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, inputStyle: { classPropertyName: "inputStyle", publicName: "inputStyle", isSignal: true, isRequired: false, transformFunction: null }, inputClass: { classPropertyName: "inputClass", publicName: "inputClass", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, formControl: { classPropertyName: "formControl", publicName: "formControl", isSignal: true, isRequired: false, transformFunction: null }, checkboxIcon: { classPropertyName: "checkboxIcon", publicName: "checkboxIcon", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, trueValue: { classPropertyName: "trueValue", publicName: "trueValue", isSignal: true, isRequired: false, transformFunction: null }, falseValue: { classPropertyName: "falseValue", publicName: "falseValue", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onFocus: "onFocus", onBlur: "onBlur" }, host: { properties: { "class": "cx('root')", "attr.data-p-highlight": "checked()", "attr.data-p-checked": "checked()", "attr.data-p-disabled": "$disabled()", "attr.data-p": "dataP()" } }, providers: [CHECKBOX_VALUE_ACCESSOR, CheckboxStyle, { provide: PARENT_INSTANCE, useExisting: Checkbox }], queries: [{ propertyName: "checkboxIconTemplate", first: true, predicate: ["icon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "inputViewChild", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
318
305
  <input
319
306
  #input
320
- [attr.id]="inputId"
307
+ [attr.id]="inputId()"
321
308
  type="checkbox"
322
- [attr.value]="value"
309
+ [attr.value]="value()"
323
310
  [attr.name]="name()"
324
- [checked]="checked"
325
- [attr.tabindex]="tabindex"
311
+ [checked]="checked()"
312
+ [attr.tabindex]="tabindex()"
326
313
  [attr.required]="required() ? '' : undefined"
327
- [attr.readonly]="readonly ? '' : undefined"
314
+ [attr.readonly]="readonly() ? '' : undefined"
328
315
  [attr.disabled]="$disabled() ? '' : undefined"
329
- [attr.aria-labelledby]="ariaLabelledBy"
330
- [attr.aria-label]="ariaLabel"
331
- [style]="inputStyle"
332
- [class]="cn(cx('input'), inputClass)"
316
+ [attr.aria-labelledby]="ariaLabelledBy()"
317
+ [attr.aria-label]="ariaLabel()"
318
+ [style]="inputStyle()"
319
+ [class]="cn(cx('input'), inputClass())"
320
+ [pAutoFocus]="autofocus()"
333
321
  [pBind]="ptm('input')"
334
322
  (focus)="onInputFocus($event)"
335
323
  (blur)="onInputBlur($event)"
336
324
  (change)="handleChange($event)"
337
325
  />
338
- <div [class]="cx('box')" [pBind]="ptm('box')" [attr.data-p]="dataP">
339
- @if (!checkboxIconTemplate() && !_checkboxIconTemplate) {
340
- @if (checked) {
341
- @if (checkboxIcon) {
342
- <span [class]="cx('icon')" [ngClass]="checkboxIcon" [pBind]="ptm('icon')" [attr.data-p]="dataP"></span>
326
+ <div [class]="cx('box')" [pBind]="ptm('box')" [attr.data-p]="dataP()">
327
+ @if (!checkboxIconTemplate() && !_checkboxIconTemplate()) {
328
+ @if (checked()) {
329
+ @if (checkboxIcon()) {
330
+ <span [class]="cx('icon')" [ngClass]="checkboxIcon()" [pBind]="ptm('icon')" [attr.data-p]="dataP()"></span>
343
331
  }
344
- @if (!checkboxIcon) {
345
- <svg data-p-icon="check" [class]="cx('icon')" [pBind]="ptm('icon')" [attr.data-p]="dataP" />
332
+ @if (!checkboxIcon()) {
333
+ <svg data-p-icon="check" [class]="cx('icon')" [pBind]="ptm('icon')" [attr.data-p]="dataP()" />
346
334
  }
347
335
  }
348
336
  @if (_indeterminate()) {
349
- <svg data-p-icon="minus" [class]="cx('icon')" [pBind]="ptm('icon')" [attr.data-p]="dataP" />
337
+ <svg data-p-icon="minus" [class]="cx('icon')" [pBind]="ptm('icon')" [attr.data-p]="dataP()" />
350
338
  }
351
339
  }
352
- <ng-template *ngTemplateOutlet="checkboxIconTemplate() || _checkboxIconTemplate; context: { checked: checked, class: cx('icon'), dataP: dataP }"></ng-template>
340
+ <ng-template *ngTemplateOutlet="checkboxIconTemplate() || _checkboxIconTemplate(); context: { checked: checked(), class: cx('icon'), dataP: dataP() }"></ng-template>
353
341
  </div>
354
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: SharedModule }, { kind: "component", type: CheckIcon, selector: "[data-p-icon=\"check\"]" }, { kind: "component", type: MinusIcon, selector: "[data-p-icon=\"minus\"]" }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
342
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "ngmodule", type: SharedModule }, { kind: "component", type: CheckIcon, selector: "[data-p-icon=\"check\"]" }, { kind: "component", type: MinusIcon, selector: "[data-p-icon=\"minus\"]" }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
355
343
  }
356
344
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Checkbox, decorators: [{
357
345
  type: Component,
358
346
  args: [{
359
347
  selector: 'p-checkbox, p-checkBox, p-check-box',
360
- standalone: true,
361
- imports: [CommonModule, SharedModule, CheckIcon, MinusIcon, BindModule],
348
+ imports: [CommonModule, AutoFocus, SharedModule, CheckIcon, MinusIcon, BindModule],
362
349
  template: `
363
350
  <input
364
351
  #input
365
- [attr.id]="inputId"
352
+ [attr.id]="inputId()"
366
353
  type="checkbox"
367
- [attr.value]="value"
354
+ [attr.value]="value()"
368
355
  [attr.name]="name()"
369
- [checked]="checked"
370
- [attr.tabindex]="tabindex"
356
+ [checked]="checked()"
357
+ [attr.tabindex]="tabindex()"
371
358
  [attr.required]="required() ? '' : undefined"
372
- [attr.readonly]="readonly ? '' : undefined"
359
+ [attr.readonly]="readonly() ? '' : undefined"
373
360
  [attr.disabled]="$disabled() ? '' : undefined"
374
- [attr.aria-labelledby]="ariaLabelledBy"
375
- [attr.aria-label]="ariaLabel"
376
- [style]="inputStyle"
377
- [class]="cn(cx('input'), inputClass)"
361
+ [attr.aria-labelledby]="ariaLabelledBy()"
362
+ [attr.aria-label]="ariaLabel()"
363
+ [style]="inputStyle()"
364
+ [class]="cn(cx('input'), inputClass())"
365
+ [pAutoFocus]="autofocus()"
378
366
  [pBind]="ptm('input')"
379
367
  (focus)="onInputFocus($event)"
380
368
  (blur)="onInputBlur($event)"
381
369
  (change)="handleChange($event)"
382
370
  />
383
- <div [class]="cx('box')" [pBind]="ptm('box')" [attr.data-p]="dataP">
384
- @if (!checkboxIconTemplate() && !_checkboxIconTemplate) {
385
- @if (checked) {
386
- @if (checkboxIcon) {
387
- <span [class]="cx('icon')" [ngClass]="checkboxIcon" [pBind]="ptm('icon')" [attr.data-p]="dataP"></span>
371
+ <div [class]="cx('box')" [pBind]="ptm('box')" [attr.data-p]="dataP()">
372
+ @if (!checkboxIconTemplate() && !_checkboxIconTemplate()) {
373
+ @if (checked()) {
374
+ @if (checkboxIcon()) {
375
+ <span [class]="cx('icon')" [ngClass]="checkboxIcon()" [pBind]="ptm('icon')" [attr.data-p]="dataP()"></span>
388
376
  }
389
- @if (!checkboxIcon) {
390
- <svg data-p-icon="check" [class]="cx('icon')" [pBind]="ptm('icon')" [attr.data-p]="dataP" />
377
+ @if (!checkboxIcon()) {
378
+ <svg data-p-icon="check" [class]="cx('icon')" [pBind]="ptm('icon')" [attr.data-p]="dataP()" />
391
379
  }
392
380
  }
393
381
  @if (_indeterminate()) {
394
- <svg data-p-icon="minus" [class]="cx('icon')" [pBind]="ptm('icon')" [attr.data-p]="dataP" />
382
+ <svg data-p-icon="minus" [class]="cx('icon')" [pBind]="ptm('icon')" [attr.data-p]="dataP()" />
395
383
  }
396
384
  }
397
- <ng-template *ngTemplateOutlet="checkboxIconTemplate() || _checkboxIconTemplate; context: { checked: checked, class: cx('icon'), dataP: dataP }"></ng-template>
385
+ <ng-template *ngTemplateOutlet="checkboxIconTemplate() || _checkboxIconTemplate(); context: { checked: checked(), class: cx('icon'), dataP: dataP() }"></ng-template>
398
386
  </div>
399
387
  `,
400
- providers: [CHECKBOX_VALUE_ACCESSOR, CheckboxStyle, { provide: CHECKBOX_INSTANCE, useExisting: Checkbox }, { provide: PARENT_INSTANCE, useExisting: Checkbox }],
388
+ providers: [CHECKBOX_VALUE_ACCESSOR, CheckboxStyle, { provide: PARENT_INSTANCE, useExisting: Checkbox }],
401
389
  changeDetection: ChangeDetectionStrategy.OnPush,
402
390
  encapsulation: ViewEncapsulation.None,
403
391
  host: {
404
- '[class]': "cn(cx('root'), styleClass)",
405
- '[attr.data-p-highlight]': 'checked',
406
- '[attr.data-p-checked]': 'checked',
392
+ '[class]': "cx('root')",
393
+ '[attr.data-p-highlight]': 'checked()',
394
+ '[attr.data-p-checked]': 'checked()',
407
395
  '[attr.data-p-disabled]': '$disabled()',
408
- '[attr.data-p]': 'dataP'
396
+ '[attr.data-p]': 'dataP()'
409
397
  },
410
398
  hostDirectives: [Bind]
411
399
  }]
412
- }], propDecorators: { hostName: [{
413
- type: Input
414
- }], value: [{
415
- type: Input
416
- }], binary: [{
417
- type: Input,
418
- args: [{ transform: booleanAttribute }]
419
- }], ariaLabelledBy: [{
420
- type: Input
421
- }], ariaLabel: [{
422
- type: Input
423
- }], tabindex: [{
424
- type: Input,
425
- args: [{ transform: numberAttribute }]
426
- }], inputId: [{
427
- type: Input
428
- }], inputStyle: [{
429
- type: Input
430
- }], styleClass: [{
431
- type: Input
432
- }], inputClass: [{
433
- type: Input
434
- }], indeterminate: [{
435
- type: Input,
436
- args: [{ transform: booleanAttribute }]
437
- }], formControl: [{
438
- type: Input
439
- }], checkboxIcon: [{
440
- type: Input
441
- }], readonly: [{
442
- type: Input,
443
- args: [{ transform: booleanAttribute }]
444
- }], autofocus: [{
445
- type: Input,
446
- args: [{ transform: booleanAttribute }]
447
- }], trueValue: [{
448
- type: Input
449
- }], falseValue: [{
450
- type: Input
451
- }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], inputViewChild: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }], checkboxIconTemplate: [{ type: i0.ContentChild, args: ['icon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
400
+ }], ctorParameters: () => [], propDecorators: { hostName: [{ type: i0.Input, args: [{ isSignal: true, alias: "hostName", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], binary: [{ type: i0.Input, args: [{ isSignal: true, alias: "binary", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], inputStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyle", required: false }] }], inputClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputClass", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], formControl: [{ type: i0.Input, args: [{ isSignal: true, alias: "formControl", required: false }] }], checkboxIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkboxIcon", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], trueValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "trueValue", required: false }] }], falseValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "falseValue", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], inputViewChild: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }], checkboxIconTemplate: [{ type: i0.ContentChild, args: ['icon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
452
401
  class CheckboxModule {
453
402
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: CheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
454
403
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: CheckboxModule, imports: [Checkbox, SharedModule], exports: [Checkbox, SharedModule] });
@@ -1 +1 @@
1
- {"version":3,"file":"exhaustive-ui-core-checkbox.mjs","sources":["../../src/checkbox/style/checkboxstyle.ts","../../src/checkbox/checkbox.ts","../../src/checkbox/exhaustive-ui-core-checkbox.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style as checkbox_style } from '@exhaustive-ui/styles/checkbox';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst style = /*css*/ `\n ${checkbox_style}\n\n /* For Exhaustive */\n p-checkBox.ng-invalid.ng-dirty .p-checkbox-box,\n p-check-box.ng-invalid.ng-dirty .p-checkbox-box,\n p-checkbox.ng-invalid.ng-dirty .p-checkbox-box {\n border-color: dt('checkbox.invalid.border.color');\n }\n`;\n\nconst classes = {\n root: ({ instance }) => [\n 'p-checkbox p-component',\n {\n 'p-checkbox-checked p-highlight': instance.checked,\n 'p-disabled': instance.$disabled(),\n 'p-invalid': instance.invalid(),\n 'p-variant-filled': instance.$variant() === 'filled',\n 'p-checkbox-sm p-inputfield-sm': instance.size() === 'small',\n 'p-checkbox-lg p-inputfield-lg': instance.size() === 'large'\n }\n ],\n box: 'p-checkbox-box',\n input: 'p-checkbox-input',\n icon: 'p-checkbox-icon'\n};\n\n@Injectable()\nexport class CheckboxStyle extends BaseStyle {\n name = 'checkbox';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Checkbox is an extension to standard checkbox element with theming.\n *\n * [Live Demo](https://exhaustive-ui.e-xiste.com/checkbox/)\n *\n * @module checkboxstyle\n *\n */\nexport enum CheckboxClasses {\n /**\n * Class name of the root element\n */\n root = 'p-checkbox',\n /**\n * Class name of the box element\n */\n box = 'p-checkbox-box',\n /**\n * Class name of the input element\n */\n input = 'p-checkbox-input',\n /**\n * Class name of the icon element\n */\n icon = 'p-checkbox-icon'\n}\n\nexport interface CheckboxStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n forwardRef,\n inject,\n InjectionToken,\n input,\n Input,\n NgModule,\n numberAttribute,\n signal,\n SimpleChanges,\n TemplateRef,\n ViewEncapsulation,\n viewChild,\n contentChild,\n contentChildren,\n output\n} from '@angular/core';\nimport { FormControl, NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';\nimport { contains, equals } from '@exhaustive-ui/utils';\nimport { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';\nimport { PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { BaseEditableHolder } from '@exhaustive-ui/core/baseeditableholder';\nimport { Bind, BindModule } from '@exhaustive-ui/core/bind';\nimport { CheckIcon } from '@exhaustive-ui/core/icons/check';\nimport { MinusIcon } from '@exhaustive-ui/core/icons/minus';\nimport { CheckboxChangeEvent, CheckboxIconTemplateContext, CheckboxPassThrough } from '@exhaustive-ui/core/types/checkbox';\nimport { CheckboxStyle } from './style/checkboxstyle';\n\nconst CHECKBOX_INSTANCE = new InjectionToken<Checkbox>('CHECKBOX_INSTANCE');\n\nexport const CHECKBOX_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => Checkbox),\n multi: true\n};\n/**\n * Checkbox is an extension to standard checkbox element with theming.\n * @group Components\n */\n@Component({\n selector: 'p-checkbox, p-checkBox, p-check-box',\n standalone: true,\n imports: [CommonModule, SharedModule, CheckIcon, MinusIcon, BindModule],\n template: `\n <input\n #input\n [attr.id]=\"inputId\"\n type=\"checkbox\"\n [attr.value]=\"value\"\n [attr.name]=\"name()\"\n [checked]=\"checked\"\n [attr.tabindex]=\"tabindex\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.aria-label]=\"ariaLabel\"\n [style]=\"inputStyle\"\n [class]=\"cn(cx('input'), inputClass)\"\n [pBind]=\"ptm('input')\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (change)=\"handleChange($event)\"\n />\n <div [class]=\"cx('box')\" [pBind]=\"ptm('box')\" [attr.data-p]=\"dataP\">\n @if (!checkboxIconTemplate() && !_checkboxIconTemplate) {\n @if (checked) {\n @if (checkboxIcon) {\n <span [class]=\"cx('icon')\" [ngClass]=\"checkboxIcon\" [pBind]=\"ptm('icon')\" [attr.data-p]=\"dataP\"></span>\n }\n @if (!checkboxIcon) {\n <svg data-p-icon=\"check\" [class]=\"cx('icon')\" [pBind]=\"ptm('icon')\" [attr.data-p]=\"dataP\" />\n }\n }\n @if (_indeterminate()) {\n <svg data-p-icon=\"minus\" [class]=\"cx('icon')\" [pBind]=\"ptm('icon')\" [attr.data-p]=\"dataP\" />\n }\n }\n <ng-template *ngTemplateOutlet=\"checkboxIconTemplate() || _checkboxIconTemplate; context: { checked: checked, class: cx('icon'), dataP: dataP }\"></ng-template>\n </div>\n `,\n providers: [CHECKBOX_VALUE_ACCESSOR, CheckboxStyle, { provide: CHECKBOX_INSTANCE, useExisting: Checkbox }, { provide: PARENT_INSTANCE, useExisting: Checkbox }],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class]': \"cn(cx('root'), styleClass)\",\n '[attr.data-p-highlight]': 'checked',\n '[attr.data-p-checked]': 'checked',\n '[attr.data-p-disabled]': '$disabled()',\n '[attr.data-p]': 'dataP'\n },\n hostDirectives: [Bind]\n})\nexport class Checkbox extends BaseEditableHolder<CheckboxPassThrough> {\n componentName = 'Checkbox';\n\n @Input() hostName: any = '';\n /**\n * Value of the checkbox.\n * @group Props\n */\n @Input() value: any;\n /**\n * Allows to select a boolean value instead of multiple values.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) binary: boolean | undefined;\n /**\n * Establishes relationships between the component and label(s) where its value should be one or more element IDs.\n * @group Props\n */\n @Input() ariaLabelledBy: string | undefined;\n /**\n * Used to define a string that labels the input element.\n * @group Props\n */\n @Input() ariaLabel: string | undefined;\n /**\n * Index of the element in tabbing order.\n * @group Props\n */\n @Input({ transform: numberAttribute }) tabindex: number | undefined;\n /**\n * Identifier of the focus input to match a label defined for the component.\n * @group Props\n */\n @Input() inputId: string | undefined;\n /**\n * Inline style of the input element.\n * @group Props\n */\n @Input() inputStyle: { [klass: string]: any } | null | undefined;\n /**\n * Style class of the component.\n * @deprecated since v20.0.0, use `class` instead.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Style class of the input element.\n * @group Props\n */\n @Input() inputClass: string | undefined;\n /**\n * When present, it specifies input state as indeterminate.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) indeterminate: boolean = false;\n /**\n * Form control value.\n * @group Props\n */\n @Input() formControl: FormControl | undefined;\n /**\n * Icon class of the checkbox icon.\n * @group Props\n */\n @Input() checkboxIcon: string | undefined;\n /**\n * When present, it specifies that the component cannot be edited.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) readonly: boolean | undefined;\n /**\n * When present, it specifies that the component should automatically get focus on load.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) autofocus: boolean | undefined;\n /**\n * Value in checked state.\n * @group Props\n */\n @Input() trueValue: any = true;\n /**\n * Value in unchecked state.\n * @group Props\n */\n @Input() falseValue: any = false;\n /**\n * Specifies the input variant of the component.\n * @defaultValue undefined\n * @group Props\n */\n variant = input<'filled' | 'outlined' | undefined>();\n /**\n * Specifies the size of the component.\n * @defaultValue undefined\n * @group Props\n */\n size = input<'large' | 'small' | undefined>();\n /**\n * Callback to invoke on value change.\n * @param {CheckboxChangeEvent} event - Custom value change event.\n * @group Emits\n */\n readonly onChange = output<CheckboxChangeEvent>();\n /**\n * Callback to invoke when the receives focus.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n readonly onFocus = output<Event>();\n /**\n * Callback to invoke when the loses focus.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n readonly onBlur = output<Event>();\n\n readonly inputViewChild = viewChild.required<ElementRef>('input');\n\n get checked() {\n return this._indeterminate() ? false : this.binary ? this.modelValue() === this.trueValue : contains(this.value, this.modelValue());\n }\n\n _indeterminate = signal<any>(undefined);\n /**\n * Custom checkbox icon template.\n * @group Templates\n */\n readonly checkboxIconTemplate = contentChild<TemplateRef<CheckboxIconTemplateContext>>('icon', { descendants: false });\n\n readonly templates = contentChildren(PrimeTemplate);\n\n _checkboxIconTemplate: TemplateRef<CheckboxIconTemplateContext> | undefined;\n\n focused: boolean = false;\n\n _componentStyle = inject(CheckboxStyle);\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n $pcCheckbox: Checkbox | undefined = inject(CHECKBOX_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n $variant = computed(() => this.variant() || this.config.inputStyle() || this.config.inputVariant());\n\n onAfterContentInit() {\n this.templates()?.forEach((item) => {\n switch (item.getType()) {\n case 'icon':\n this._checkboxIconTemplate = item.template;\n break;\n case 'checkboxicon':\n this._checkboxIconTemplate = item.template;\n break;\n }\n });\n }\n\n onChanges(changes: SimpleChanges) {\n if (changes.indeterminate) {\n this._indeterminate.set(changes.indeterminate.currentValue);\n }\n }\n\n onAfterViewChecked(): void {\n this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));\n }\n\n updateModel(event) {\n let newModelValue;\n\n /*\n * When `formControlName` or `formControl` is used - `writeValue` is not called after control changes.\n * Otherwise it is causing multiple references to the actual value: there is one array reference inside the component and another one in the control value.\n * `selfControl` is the source of truth of references, it is made to avoid reference loss.\n * */\n const selfControl = this.injector.get<NgControl | null>(NgControl, null, { optional: true, self: true });\n\n const currentModelValue = selfControl && !this.formControl ? selfControl.value : this.modelValue();\n\n if (!this.binary) {\n if (this.checked || this._indeterminate()) newModelValue = currentModelValue.filter((val) => !equals(val, this.value));\n else newModelValue = currentModelValue ? [...currentModelValue, this.value] : [this.value];\n\n this.onModelChange(newModelValue);\n this.writeModelValue(newModelValue);\n\n if (this.formControl) {\n this.formControl.setValue(newModelValue);\n }\n } else {\n newModelValue = this._indeterminate() ? this.trueValue : this.checked ? this.falseValue : this.trueValue;\n this.writeModelValue(newModelValue);\n this.onModelChange(newModelValue);\n }\n\n if (this._indeterminate()) {\n this._indeterminate.set(false);\n }\n\n this.onChange.emit({ checked: newModelValue, originalEvent: event });\n }\n\n handleChange(event) {\n if (!this.readonly) {\n this.updateModel(event);\n }\n }\n\n onInputFocus(event) {\n this.focused = true;\n this.onFocus.emit(event);\n }\n\n onInputBlur(event) {\n this.focused = false;\n this.onBlur.emit(event);\n this.onModelTouched();\n }\n\n focus() {\n this.inputViewChild().nativeElement.focus();\n }\n\n /**\n * @override\n *\n * @see {@link BaseEditableHolder.writeControlValue}\n * Writes the value to the control.\n */\n writeControlValue(value: any, setModelValue: (value: any) => void): void {\n setModelValue(value);\n this.cd.markForCheck();\n }\n\n get dataP() {\n return this.cn({\n invalid: this.invalid(),\n checked: this.checked,\n disabled: this.$disabled(),\n filled: this.$variant() === 'filled',\n [this.size() as string]: this.size()\n });\n }\n}\n\n@NgModule({\n imports: [Checkbox, SharedModule],\n exports: [Checkbox, SharedModule]\n})\nexport class CheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["checkbox_style"],"mappings":";;;;;;;;;;;;;;;;;AAIA,MAAM,KAAK,WAAW;MAChBA,OAAc;;;;;;;;CAQnB;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,wBAAwB;AACxB,QAAA;YACI,gCAAgC,EAAE,QAAQ,CAAC,OAAO;AAClD,YAAA,YAAY,EAAE,QAAQ,CAAC,SAAS,EAAE;A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zC,cAAc,CAAA;uGAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAxPd,QAAQ,EAqPG,YAAY,CAAA,EAAA,OAAA,EAAA,CArPvB,QAAQ,EAsPG,YAAY,CAAA,EAAA,CAAA;AAEvB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,EAAA,OAAA,EAAA,CAHb,QAAQ,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEvB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC;AACjC,oBAAA,OAAO,EAAE,CAAC,QAAQ,EAAE,YAAY;AACnC,iBAAA;;;AC1VD;;AAEG;;;;"}
1
+ {"version":3,"file":"exhaustive-ui-core-checkbox.mjs","sources":["../../src/checkbox/style/checkboxstyle.ts","../../src/checkbox/checkbox.ts","../../src/checkbox/exhaustive-ui-core-checkbox.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style as checkbox_style } from '@exhaustive-ui/styles/checkbox';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst style = /*css*/ `\n ${checkbox_style}\n\n /* For Exhaustive */\n p-checkBox.ng-invalid.ng-dirty .p-checkbox-box,\n p-check-box.ng-invalid.ng-dirty .p-checkbox-box,\n p-checkbox.ng-invalid.ng-dirty .p-checkbox-box {\n border-color: dt('checkbox.invalid.border.color');\n }\n`;\n\nconst classes = {\n root: ({ instance }) => [\n 'p-checkbox p-component',\n {\n 'p-checkbox-checked p-highlight': instance.checked(),\n 'p-disabled': instance.$disabled(),\n 'p-invalid': instance.invalid(),\n 'p-variant-filled': instance.$variant() === 'filled',\n 'p-checkbox-sm p-inputfield-sm': instance.size() === 'small',\n 'p-checkbox-lg p-inputfield-lg': instance.size() === 'large'\n }\n ],\n box: 'p-checkbox-box',\n input: 'p-checkbox-input',\n icon: 'p-checkbox-icon'\n};\n\n@Injectable()\nexport class CheckboxStyle extends BaseStyle {\n name = 'checkbox';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Checkbox is an extension to standard checkbox element with theming.\n *\n * [Live Demo](https://exhaustive-ui.e-xiste.com/checkbox/)\n *\n * @module checkboxstyle\n *\n */\nexport enum CheckboxClasses {\n /**\n * Class name of the root element\n */\n root = 'p-checkbox',\n /**\n * Class name of the box element\n */\n box = 'p-checkbox-box',\n /**\n * Class name of the input element\n */\n input = 'p-checkbox-input',\n /**\n * Class name of the icon element\n */\n icon = 'p-checkbox-icon'\n}\n\nexport interface CheckboxStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport {\n afterEveryRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n forwardRef,\n inject,\n input,\n linkedSignal,\n NgModule,\n numberAttribute,\n signal,\n TemplateRef,\n ViewEncapsulation,\n viewChild,\n contentChild,\n contentChildren,\n output\n} from '@angular/core';\nimport { FormControl, NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';\nimport { contains, equals } from '@exhaustive-ui/utils';\nimport { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';\nimport { AutoFocus } from '@exhaustive-ui/core/autofocus';\nimport { PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { BaseEditableHolder } from '@exhaustive-ui/core/baseeditableholder';\nimport { Bind, BindModule } from '@exhaustive-ui/core/bind';\nimport { CheckIcon } from '@exhaustive-ui/core/icons/check';\nimport { MinusIcon } from '@exhaustive-ui/core/icons/minus';\nimport { CheckboxChangeEvent, CheckboxIconTemplateContext, CheckboxPassThrough } from '@exhaustive-ui/core/types/checkbox';\nimport { CheckboxStyle } from './style/checkboxstyle';\n\nexport const CHECKBOX_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => Checkbox),\n multi: true\n};\n/**\n * Checkbox is an extension to standard checkbox element with theming.\n * @group Components\n */\n@Component({\n selector: 'p-checkbox, p-checkBox, p-check-box',\n imports: [CommonModule, AutoFocus, SharedModule, CheckIcon, MinusIcon, BindModule],\n template: `\n <input\n #input\n [attr.id]=\"inputId()\"\n type=\"checkbox\"\n [attr.value]=\"value()\"\n [attr.name]=\"name()\"\n [checked]=\"checked()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.required]=\"required() ? '' : undefined\"\n [attr.readonly]=\"readonly() ? '' : undefined\"\n [attr.disabled]=\"$disabled() ? '' : undefined\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-label]=\"ariaLabel()\"\n [style]=\"inputStyle()\"\n [class]=\"cn(cx('input'), inputClass())\"\n [pAutoFocus]=\"autofocus()\"\n [pBind]=\"ptm('input')\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (change)=\"handleChange($event)\"\n />\n <div [class]=\"cx('box')\" [pBind]=\"ptm('box')\" [attr.data-p]=\"dataP()\">\n @if (!checkboxIconTemplate() && !_checkboxIconTemplate()) {\n @if (checked()) {\n @if (checkboxIcon()) {\n <span [class]=\"cx('icon')\" [ngClass]=\"checkboxIcon()\" [pBind]=\"ptm('icon')\" [attr.data-p]=\"dataP()\"></span>\n }\n @if (!checkboxIcon()) {\n <svg data-p-icon=\"check\" [class]=\"cx('icon')\" [pBind]=\"ptm('icon')\" [attr.data-p]=\"dataP()\" />\n }\n }\n @if (_indeterminate()) {\n <svg data-p-icon=\"minus\" [class]=\"cx('icon')\" [pBind]=\"ptm('icon')\" [attr.data-p]=\"dataP()\" />\n }\n }\n <ng-template *ngTemplateOutlet=\"checkboxIconTemplate() || _checkboxIconTemplate(); context: { checked: checked(), class: cx('icon'), dataP: dataP() }\"></ng-template>\n </div>\n `,\n providers: [CHECKBOX_VALUE_ACCESSOR, CheckboxStyle, { provide: PARENT_INSTANCE, useExisting: Checkbox }],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class]': \"cx('root')\",\n '[attr.data-p-highlight]': 'checked()',\n '[attr.data-p-checked]': 'checked()',\n '[attr.data-p-disabled]': '$disabled()',\n '[attr.data-p]': 'dataP()'\n },\n hostDirectives: [Bind]\n})\nexport class Checkbox extends BaseEditableHolder<CheckboxPassThrough> {\n componentName = 'Checkbox';\n\n readonly hostName = input<any>('');\n /**\n * Value of the checkbox.\n * @group Props\n */\n readonly value = input<any>();\n /**\n * Allows to select a boolean value instead of multiple values.\n * @group Props\n */\n readonly binary = input<boolean | undefined, unknown>(undefined, { transform: booleanAttribute });\n /**\n * Establishes relationships between the component and label(s) where its value should be one or more element IDs.\n * @group Props\n */\n readonly ariaLabelledBy = input<string | undefined>();\n /**\n * Used to define a string that labels the input element.\n * @group Props\n */\n readonly ariaLabel = input<string | undefined>();\n /**\n * Index of the element in tabbing order.\n * @group Props\n */\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: numberAttribute });\n /**\n * Identifier of the focus input to match a label defined for the component.\n * @group Props\n */\n readonly inputId = input<string | undefined>();\n /**\n * Inline style of the input element.\n * @group Props\n */\n readonly inputStyle = input<{ [klass: string]: any } | null | undefined>();\n /**\n * Style class of the input element.\n * @group Props\n */\n readonly inputClass = input<string | undefined>();\n /**\n * When present, it specifies input state as indeterminate.\n * @group Props\n */\n readonly indeterminate = input<boolean, unknown>(false, { transform: booleanAttribute });\n /**\n * Form control value.\n * @group Props\n */\n readonly formControl = input<FormControl | undefined>();\n /**\n * Icon class of the checkbox icon.\n * @group Props\n */\n readonly checkboxIcon = input<string | undefined>();\n /**\n * When present, it specifies that the component cannot be edited.\n * @group Props\n */\n readonly readonly = input<boolean | undefined, unknown>(undefined, { transform: booleanAttribute });\n /**\n * When present, it specifies that the component should automatically get focus on load.\n * @group Props\n */\n readonly autofocus = input<boolean | undefined, unknown>(undefined, { transform: booleanAttribute });\n /**\n * Value in checked state.\n * @group Props\n */\n readonly trueValue = input<any>(true);\n /**\n * Value in unchecked state.\n * @group Props\n */\n readonly falseValue = input<any>(false);\n /**\n * Specifies the input variant of the component.\n * @defaultValue undefined\n * @group Props\n */\n variant = input<'filled' | 'outlined' | undefined>();\n /**\n * Specifies the size of the component.\n * @defaultValue undefined\n * @group Props\n */\n size = input<'large' | 'small' | undefined>();\n /**\n * Callback to invoke on value change.\n * @param {CheckboxChangeEvent} event - Custom value change event.\n * @group Emits\n */\n readonly onChange = output<CheckboxChangeEvent>();\n /**\n * Callback to invoke when the receives focus.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n readonly onFocus = output<Event>();\n /**\n * Callback to invoke when the loses focus.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n readonly onBlur = output<Event>();\n\n readonly inputViewChild = viewChild.required<ElementRef>('input');\n\n readonly checked = computed(() => (this._indeterminate() ? false : this.binary() ? this.modelValue() === this.trueValue() : contains(this.value(), this.modelValue())));\n\n _indeterminate = linkedSignal(() => this.indeterminate());\n /**\n * Custom checkbox icon template.\n * @group Templates\n */\n readonly checkboxIconTemplate = contentChild<TemplateRef<CheckboxIconTemplateContext>>('icon', { descendants: false });\n\n readonly templates = contentChildren(PrimeTemplate);\n\n readonly _checkboxIconTemplate = computed<TemplateRef<CheckboxIconTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'icon' || item.getType() === 'checkboxicon')\n .at(-1)?.template\n );\n\n focused = signal<boolean>(false);\n\n _componentStyle = inject(CheckboxStyle);\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));\n }\n\n $variant = computed(() => this.variant() || this.config.inputStyle() || this.config.inputVariant());\n\n updateModel(event) {\n let newModelValue;\n\n /*\n * When `formControlName` or `formControl` is used - `writeValue` is not called after control changes.\n * Otherwise it is causing multiple references to the actual value: there is one array reference inside the component and another one in the control value.\n * `selfControl` is the source of truth of references, it is made to avoid reference loss.\n * */\n const selfControl = this.injector.get<NgControl | null>(NgControl, null, { optional: true, self: true });\n\n const currentModelValue = selfControl && !this.formControl() ? selfControl.value : this.modelValue();\n\n if (!this.binary()) {\n if (this.checked() || this._indeterminate()) newModelValue = currentModelValue.filter((val) => !equals(val, this.value()));\n else newModelValue = currentModelValue ? [...currentModelValue, this.value()] : [this.value()];\n\n this.onModelChange(newModelValue);\n this.writeModelValue(newModelValue);\n\n this.formControl()?.setValue(newModelValue);\n } else {\n newModelValue = this._indeterminate() ? this.trueValue() : this.checked() ? this.falseValue() : this.trueValue();\n this.writeModelValue(newModelValue);\n this.onModelChange(newModelValue);\n }\n\n if (this._indeterminate()) {\n this._indeterminate.set(false);\n }\n\n this.onChange.emit({ checked: newModelValue, originalEvent: event });\n }\n\n handleChange(event) {\n if (!this.readonly()) {\n this.updateModel(event);\n }\n }\n\n onInputFocus(event) {\n this.focused.set(true);\n this.onFocus.emit(event);\n }\n\n onInputBlur(event) {\n this.focused.set(false);\n this.onBlur.emit(event);\n this.onModelTouched();\n }\n\n focus() {\n this.inputViewChild().nativeElement.focus();\n }\n\n /**\n * @override\n *\n * @see {@link BaseEditableHolder.writeControlValue}\n * Writes the value to the control.\n */\n writeControlValue(value: any, setModelValue: (value: any) => void): void {\n setModelValue(value);\n }\n\n readonly dataP = computed(() =>\n this.cn({\n invalid: this.invalid(),\n checked: this.checked(),\n disabled: this.$disabled(),\n filled: this.$variant() === 'filled',\n [this.size() as string]: this.size()\n })\n );\n}\n\n@NgModule({\n imports: [Checkbox, SharedModule],\n exports: [Checkbox, SharedModule]\n})\nexport class CheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["checkbox_style"],"mappings":";;;;;;;;;;;;;;;;;;AAIA,MAAM,KAAK,WAAW;MAChBA,OAAc;;;;;;;;CAQnB;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,wBAAwB;AACxB,QAAA;AACI,YAAA,gCAAgC,EAAE,QAAQ,CAAC,OAAO,EAAE;AACpD,YAAA,YAAY,EAAE,QAAQ,CAAC,SAAS,EAAE;AAClC,YAAA,WAAW,EAAE,QAAQ,CAAC,OAAO,EAAE;AAC/B,YAAA,kBAAkB,EAAE,QAAQ,CAAC,QAAQ,EAAE,KAAK,QAAQ;AACpD,YAAA,+BAA+B,EAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,OAAO;AAC5D,YAAA,+BAA+B,EAAE,QAAQ,CAAC,IAAI,EAAE,KAAK;AACxD;AACJ,KAAA;AACD,IAAA,GAAG,EAAE,gBAAgB;AACrB,IAAA,KAAK,EAAE,kBAAkB;AACzB,IAAA,IAAI,EAAE;CACT;AAGK,MAAO,aAAc,SAAQ,SAAS,CAAA;IACxC,IAAI,GAAG,UAAU;IAEjB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,aAAa,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAb,aAAa,EAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB;;AASD;;;;;;;;AAQG;IACS;AAAZ,CAAA,UAAY,eAAe,EAAA;AACvB;;AAEG;AACH,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,YAAmB;AACnB;;AAEG;AACH,IAAA,eAAA,CAAA,KAAA,CAAA,GAAA,gBAAsB;AACtB;;AAEG;AACH,IAAA,eAAA,CAAA,OAAA,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