@exhaustive-ui/core 22.0.0-alpha.9 → 22.0.0-rc.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 (249) hide show
  1. package/fesm2022/exhaustive-ui-core-accordion.mjs +5 -5
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-api.mjs +3 -3
  4. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +25 -14
  6. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-avatar.mjs +2 -2
  8. package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-avatargroup.mjs +2 -2
  10. package/fesm2022/exhaustive-ui-core-avatargroup.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-badge.mjs +2 -2
  12. package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-basecomponent.mjs +34 -4
  14. package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-baseeditableholder.mjs +4 -2
  16. package/fesm2022/exhaustive-ui-core-baseeditableholder.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-blockui.mjs +9 -2
  18. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +13 -6
  20. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-button.mjs +35 -13
  22. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-card.mjs +2 -6
  24. package/fesm2022/exhaustive-ui-core-card.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-carousel.mjs +9 -4
  26. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +12 -11
  28. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-chart.mjs +2 -2
  30. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-checkbox.mjs +2 -2
  32. package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-chip.mjs +2 -2
  34. package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-colorpicker.mjs +2 -2
  36. package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-config.mjs +3 -1
  38. package/fesm2022/exhaustive-ui-core-config.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +65 -26
  40. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +28 -5
  42. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +15 -8
  44. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-dataview.mjs +2 -2
  46. package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-datepicker.mjs +188 -95
  48. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-dialog.mjs +31 -13
  50. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-divider.mjs +2 -2
  52. package/fesm2022/exhaustive-ui-core-divider.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-dock.mjs +2 -2
  54. package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-dom.mjs +3 -1
  56. package/fesm2022/exhaustive-ui-core-dom.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-drawer.mjs +24 -6
  58. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +9 -5
  60. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-editor.mjs +2 -2
  62. package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-fieldset.mjs +4 -4
  64. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-fileupload.mjs +25 -14
  66. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-floatlabel.mjs +2 -2
  68. package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-focustrap.mjs +0 -2
  70. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-galleria.mjs +5 -5
  72. package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-iconfield.mjs +18 -3
  74. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-image.mjs +12 -4
  76. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-imagecompare.mjs +2 -2
  78. package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-inplace.mjs +3 -3
  80. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +11 -2
  82. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +2 -2
  84. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-inputicon.mjs +2 -2
  86. package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-inputmask.mjs +31 -7
  88. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +85 -25
  90. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-inputotp.mjs +9 -3
  92. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-inputtext.mjs +8 -9
  94. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +27 -17
  96. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-knob.mjs +2 -2
  98. package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-listbox.mjs +17 -6
  100. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-megamenu.mjs +4 -3
  102. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-menu.mjs +15 -4
  104. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-menubar.mjs +58 -14
  106. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-message.mjs +2 -4
  108. package/fesm2022/exhaustive-ui-core-message.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-metergroup.mjs +7 -7
  110. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-multiselect.mjs +38 -27
  112. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-orderlist.mjs +19 -6
  114. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-organizationchart.mjs +2 -2
  116. package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-overlay.mjs +6 -4
  118. package/fesm2022/exhaustive-ui-core-overlay.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +4 -4
  120. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-paginator.mjs +12 -5
  122. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-panel.mjs +9 -11
  124. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +43 -15
  126. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-password.mjs +93 -25
  128. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-picklist.mjs +33 -12
  130. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-popover.mjs +27 -8
  132. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-progressbar.mjs +5 -5
  134. package/fesm2022/exhaustive-ui-core-progressbar.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-progressspinner.mjs +2 -2
  136. package/fesm2022/exhaustive-ui-core-progressspinner.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-radiobutton.mjs +8 -3
  138. package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-rating.mjs +2 -2
  140. package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-scroller.mjs +14 -4
  142. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +2 -2
  144. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +11 -3
  146. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-select.mjs +102 -29
  148. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +13 -7
  150. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  151. package/fesm2022/exhaustive-ui-core-skeleton.mjs +2 -2
  152. package/fesm2022/exhaustive-ui-core-skeleton.mjs.map +1 -1
  153. package/fesm2022/exhaustive-ui-core-slider.mjs +18 -5
  154. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  155. package/fesm2022/exhaustive-ui-core-speeddial.mjs +2 -2
  156. package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
  157. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +9 -5
  158. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  159. package/fesm2022/exhaustive-ui-core-splitter.mjs +29 -8
  160. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  161. package/fesm2022/exhaustive-ui-core-stepper.mjs +8 -4
  162. package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
  163. package/fesm2022/exhaustive-ui-core-steps.mjs +2 -2
  164. package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
  165. package/fesm2022/exhaustive-ui-core-table.mjs +535 -203
  166. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  167. package/fesm2022/exhaustive-ui-core-tabs.mjs +44 -8
  168. package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
  169. package/fesm2022/exhaustive-ui-core-tag.mjs +2 -2
  170. package/fesm2022/exhaustive-ui-core-tag.mjs.map +1 -1
  171. package/fesm2022/exhaustive-ui-core-terminal.mjs +1 -1
  172. package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
  173. package/fesm2022/exhaustive-ui-core-textarea.mjs +9 -4
  174. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  175. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +31 -16
  176. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  177. package/fesm2022/exhaustive-ui-core-timeline.mjs +2 -2
  178. package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
  179. package/fesm2022/exhaustive-ui-core-toast.mjs +17 -5
  180. package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
  181. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +11 -4
  182. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  183. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +2 -4
  184. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  185. package/fesm2022/exhaustive-ui-core-toolbar.mjs +2 -2
  186. package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
  187. package/fesm2022/exhaustive-ui-core-tooltip.mjs +5 -1
  188. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  189. package/fesm2022/exhaustive-ui-core-tree.mjs +30 -11
  190. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  191. package/fesm2022/exhaustive-ui-core-treeselect.mjs +53 -6
  192. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  193. package/fesm2022/exhaustive-ui-core-treetable.mjs +93 -21
  194. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  195. package/fesm2022/exhaustive-ui-core-usestyle.mjs +49 -0
  196. package/fesm2022/exhaustive-ui-core-usestyle.mjs.map +1 -1
  197. package/fesm2022/exhaustive-ui-core-utils.mjs +2 -1
  198. package/fesm2022/exhaustive-ui-core-utils.mjs.map +1 -1
  199. package/package.json +5 -5
  200. package/schematics/migrate-from-primeflex/index.js +4 -2
  201. package/schematics/migrate-from-primeflex/schema.json +5 -0
  202. package/schematics/utils/package-json.js +17 -0
  203. package/schematics/utils/primeflex.js +45 -10
  204. package/schematics/utils/versions.json +8 -8
  205. package/types/exhaustive-ui-core-api.d.ts +6 -0
  206. package/types/exhaustive-ui-core-autocomplete.d.ts +2 -0
  207. package/types/exhaustive-ui-core-basecomponent.d.ts +16 -0
  208. package/types/exhaustive-ui-core-breadcrumb.d.ts +7 -1
  209. package/types/exhaustive-ui-core-button.d.ts +12 -1
  210. package/types/exhaustive-ui-core-cascadeselect.d.ts +2 -1
  211. package/types/exhaustive-ui-core-chart.d.ts +2 -2
  212. package/types/exhaustive-ui-core-confirmdialog.d.ts +17 -5
  213. package/types/exhaustive-ui-core-confirmpopup.d.ts +4 -0
  214. package/types/exhaustive-ui-core-datepicker.d.ts +10 -2
  215. package/types/exhaustive-ui-core-dialog.d.ts +2 -0
  216. package/types/exhaustive-ui-core-drawer.d.ts +1 -0
  217. package/types/exhaustive-ui-core-fileupload.d.ts +4 -0
  218. package/types/exhaustive-ui-core-iconfield.d.ts +1 -2
  219. package/types/exhaustive-ui-core-image.d.ts +6 -1
  220. package/types/exhaustive-ui-core-inputnumber.d.ts +8 -0
  221. package/types/exhaustive-ui-core-keyfilter.d.ts +1 -0
  222. package/types/exhaustive-ui-core-megamenu.d.ts +1 -0
  223. package/types/exhaustive-ui-core-menu.d.ts +2 -0
  224. package/types/exhaustive-ui-core-menubar.d.ts +5 -0
  225. package/types/exhaustive-ui-core-metergroup.d.ts +1 -1
  226. package/types/exhaustive-ui-core-multiselect.d.ts +1 -1
  227. package/types/exhaustive-ui-core-orderlist.d.ts +11 -1
  228. package/types/exhaustive-ui-core-paginator.d.ts +1 -0
  229. package/types/exhaustive-ui-core-panelmenu.d.ts +7 -0
  230. package/types/exhaustive-ui-core-password.d.ts +9 -1
  231. package/types/exhaustive-ui-core-picklist.d.ts +8 -3
  232. package/types/exhaustive-ui-core-popover.d.ts +3 -0
  233. package/types/exhaustive-ui-core-select.d.ts +13 -1
  234. package/types/exhaustive-ui-core-selectbutton.d.ts +3 -0
  235. package/types/exhaustive-ui-core-splitbutton.d.ts +2 -1
  236. package/types/exhaustive-ui-core-splitter.d.ts +7 -1
  237. package/types/exhaustive-ui-core-stepper.d.ts +3 -2
  238. package/types/exhaustive-ui-core-table.d.ts +34 -4
  239. package/types/exhaustive-ui-core-tabs.d.ts +4 -0
  240. package/types/exhaustive-ui-core-tieredmenu.d.ts +2 -0
  241. package/types/exhaustive-ui-core-togglebutton.d.ts +1 -0
  242. package/types/exhaustive-ui-core-tree.d.ts +2 -0
  243. package/types/exhaustive-ui-core-treeselect.d.ts +12 -1
  244. package/types/exhaustive-ui-core-treetable.d.ts +22 -2
  245. package/types/exhaustive-ui-core-types-chart.d.ts +21 -1
  246. package/types/exhaustive-ui-core-types-confirmdialog.d.ts +1 -3
  247. package/types/exhaustive-ui-core-types-table.d.ts +1 -1
  248. package/types/exhaustive-ui-core-types-treetable.d.ts +2 -2
  249. package/types/exhaustive-ui-core-usestyle.d.ts +17 -0
@@ -1,6 +1,6 @@
1
1
  export * from '@exhaustive-ui/core/types/treetable';
2
2
  import * as i0 from '@angular/core';
3
- import { Injectable, InjectionToken, inject, input, booleanAttribute, model, numberAttribute, output, viewChild, signal, linkedSignal, contentChild, computed, contentChildren, NgZone, afterEveryRender, afterNextRender, effect, untracked, ViewEncapsulation, ChangeDetectionStrategy, Component, HostListener, Directive, ElementRef, NgModule } from '@angular/core';
3
+ import { Injectable, InjectionToken, inject, input, booleanAttribute, model, numberAttribute, output, viewChild, signal, linkedSignal, contentChild, computed, contentChildren, NgZone, afterNextRender, effect, untracked, ViewEncapsulation, ChangeDetectionStrategy, Component, HostListener, Directive, ElementRef, NgModule } from '@angular/core';
4
4
  import { BaseStyle } from '@exhaustive-ui/core/base';
5
5
  import * as i2 from '@angular/common';
6
6
  import { isPlatformBrowser, CommonModule } from '@angular/common';
@@ -110,7 +110,7 @@ const style = /*css*/ `
110
110
  }
111
111
 
112
112
  .p-treetable-frozen-view>.p-treetable-scrollable-body>table>.p-treetable-tbody>tr>td:last-child {
113
- border-right: 0 none;
113
+ border-inline-end: 0 none;
114
114
  }
115
115
 
116
116
  .p-treetable-unfrozen-view {
@@ -764,6 +764,13 @@ var TreeTableClasses;
764
764
  })(TreeTableClasses || (TreeTableClasses = {}));
765
765
 
766
766
  const TREETABLE_INSTANCE = new InjectionToken('TREETABLE_INSTANCE');
767
+ /**
768
+ * Whether a key event comes from a form field inside a row (e.g. a cell editor), whose keys must not drive the row.
769
+ */
770
+ function isEditableTarget(event) {
771
+ const target = event.target;
772
+ return target !== event.currentTarget && (target.isContentEditable || ['INPUT', 'TEXTAREA', 'SELECT'].includes(target.nodeName));
773
+ }
767
774
  class TreeTableService {
768
775
  sortSource = new Subject();
769
776
  selectionSource = new Subject();
@@ -1456,7 +1463,7 @@ class TreeTable extends BaseComponent {
1456
1463
  zone = inject(NgZone);
1457
1464
  constructor() {
1458
1465
  super();
1459
- afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
1466
+ this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));
1460
1467
  afterNextRender(() => {
1461
1468
  this.initialized.set(true);
1462
1469
  });
@@ -1522,6 +1529,8 @@ class TreeTable extends BaseComponent {
1522
1529
  }
1523
1530
  }
1524
1531
  this.selectionKeysChange.emit(selectionKeys);
1532
+ // checkboxes refresh on selection changes only: notify them of keys assigned from outside (e.g. loaded asynchronously)
1533
+ this.tableService.onSelectionChange();
1525
1534
  });
1526
1535
  });
1527
1536
  }
@@ -1711,7 +1720,7 @@ class TreeTable extends BaseComponent {
1711
1720
  }
1712
1721
  if (this.customSort()) {
1713
1722
  this.sortFunction.emit({
1714
- data: this.value(),
1723
+ data: nodes,
1715
1724
  mode: this.sortMode(),
1716
1725
  multiSortMeta: this._multiSortMeta()
1717
1726
  });
@@ -2344,6 +2353,10 @@ class TreeTable extends BaseComponent {
2344
2353
  this.propagateUp(node.parent, check);
2345
2354
  }
2346
2355
  this.selectionKeysChange.emit(this.selectionKeys());
2356
+ if (check)
2357
+ this.onNodeSelect.emit({ originalEvent, node });
2358
+ else
2359
+ this.onNodeUnselect.emit({ originalEvent, node });
2347
2360
  }
2348
2361
  else {
2349
2362
  this.toggleNodeWithCheckbox({ originalEvent, rowNode });
@@ -2752,7 +2765,7 @@ class TreeTable extends BaseComponent {
2752
2765
  [unstyled]="unstyled()"
2753
2766
  [frozen]="false"
2754
2767
  [scrollHeight]="scrollHeight()"
2755
- [ngStyle]="{ left: frozenWidth(), width: 'calc(100% - ' + frozenWidth() + ')' }"
2768
+ [ngStyle]="{ 'inset-inline-start': frozenWidth(), width: 'calc(100% - ' + frozenWidth() + ')' }"
2756
2769
  ></div>
2757
2770
  </div>
2758
2771
  }
@@ -2941,7 +2954,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2941
2954
  [unstyled]="unstyled()"
2942
2955
  [frozen]="false"
2943
2956
  [scrollHeight]="scrollHeight()"
2944
- [ngStyle]="{ left: frozenWidth(), width: 'calc(100% - ' + frozenWidth() + ')' }"
2957
+ [ngStyle]="{ 'inset-inline-start': frozenWidth(), width: 'calc(100% - ' + frozenWidth() + ')' }"
2945
2958
  ></div>
2946
2959
  </div>
2947
2960
  }
@@ -3177,10 +3190,10 @@ class TTScrollableView extends BaseComponent {
3177
3190
  }
3178
3191
  if (this.scrollHeight()) {
3179
3192
  let scrollBarWidth = calculateScrollbarWidth();
3180
- this.scrollHeaderBoxViewChild().nativeElement.style.paddingRight = scrollBarWidth + 'px';
3193
+ this.scrollHeaderBoxViewChild().nativeElement.style.paddingInlineEnd = scrollBarWidth + 'px';
3181
3194
  const scrollFooterBoxViewChild = this.scrollFooterBoxViewChild();
3182
3195
  if (scrollFooterBoxViewChild && scrollFooterBoxViewChild.nativeElement) {
3183
- scrollFooterBoxViewChild.nativeElement.style.paddingRight = scrollBarWidth + 'px';
3196
+ scrollFooterBoxViewChild.nativeElement.style.paddingInlineEnd = scrollBarWidth + 'px';
3184
3197
  }
3185
3198
  }
3186
3199
  }
@@ -3262,10 +3275,10 @@ class TTScrollableView extends BaseComponent {
3262
3275
  this.preventBodyScrollPropagation.set(false);
3263
3276
  return;
3264
3277
  }
3265
- this.scrollHeaderBoxViewChild().nativeElement.style.marginLeft = -1 * event.target.scrollLeft + 'px';
3278
+ this.scrollHeaderBoxViewChild().nativeElement.style.marginInlineStart = -1 * Math.abs(event.target.scrollLeft) + 'px';
3266
3279
  const scrollFooterViewChild = this.scrollFooterViewChild();
3267
3280
  if (scrollFooterViewChild && scrollFooterViewChild.nativeElement) {
3268
- this.scrollFooterBoxViewChild().nativeElement.style.marginLeft = -1 * event.target.scrollLeft + 'px';
3281
+ this.scrollFooterBoxViewChild().nativeElement.style.marginInlineStart = -1 * Math.abs(event.target.scrollLeft) + 'px';
3269
3282
  }
3270
3283
  if (this.frozenSiblingBody()) {
3271
3284
  this.frozenSiblingBody().scrollTop = event.target.scrollTop;
@@ -3520,7 +3533,7 @@ class TTSortableColumn extends BaseComponent {
3520
3533
  ...(ngDevMode ? [{ debugName: "ariaSorted" }] : /* istanbul ignore next */ []));
3521
3534
  constructor() {
3522
3535
  super();
3523
- afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('sortableColumn', { context: { sorted: this.sorted() } })));
3536
+ this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptm('sortableColumn', { context: { sorted: this.sorted() } }));
3524
3537
  if (this.isEnabled()) {
3525
3538
  this.subscription = this.tt.tableService.sortSource$.subscribe((sortMeta) => {
3526
3539
  this.updateSortState();
@@ -3811,6 +3824,10 @@ class TTReorderableColumn extends BaseComponent {
3811
3824
  this.mouseDownListener()();
3812
3825
  this.mouseDownListener.set(null);
3813
3826
  }
3827
+ if (this.dragStartListener()) {
3828
+ this.dragStartListener()();
3829
+ this.dragStartListener.set(null);
3830
+ }
3814
3831
  if (this.dragOverListener()) {
3815
3832
  this.dragOverListener()();
3816
3833
  this.dragOverListener.set(null);
@@ -3898,6 +3915,9 @@ class TTSelectableRow extends BaseComponent {
3898
3915
  }
3899
3916
  }
3900
3917
  onKeyDown(event) {
3918
+ if (isEditableTarget(event)) {
3919
+ return;
3920
+ }
3901
3921
  switch (event.code) {
3902
3922
  case 'Enter':
3903
3923
  case 'Space':
@@ -4070,6 +4090,18 @@ class TTCheckbox extends BaseComponent {
4070
4090
  hostName = 'TreeTable';
4071
4091
  disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4072
4092
  rowNode = input(undefined, { ...(ngDevMode ? { debugName: "rowNode" } : /* istanbul ignore next */ {}), alias: 'value' });
4093
+ /**
4094
+ * Defines a string that labels the checkbox for accessibility.
4095
+ * @group Props
4096
+ */
4097
+ ariaLabel = input(/* @ts-ignore */
4098
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
4099
+ /**
4100
+ * Establishes relationships between the checkbox and its label(s), where its value should be one or more element IDs.
4101
+ * @group Props
4102
+ */
4103
+ ariaLabelledBy = input(/* @ts-ignore */
4104
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
4073
4105
  checked = signal(undefined, /* @ts-ignore */
4074
4106
  ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
4075
4107
  partialChecked = signal(undefined, /* @ts-ignore */
@@ -4133,7 +4165,7 @@ class TTCheckbox extends BaseComponent {
4133
4165
  }
4134
4166
  }
4135
4167
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TTCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
4136
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TTCheckbox, isStandalone: false, selector: "p-treeTableCheckbox, p-treetable-checkbox, p-tree-table-checkbox", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, rowNode: { classPropertyName: "rowNode", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, providers: [TreeTableStyle], usesInheritance: true, ngImport: i0, template: `
4168
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TTCheckbox, isStandalone: false, selector: "p-treeTableCheckbox, p-treetable-checkbox, p-tree-table-checkbox", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, rowNode: { classPropertyName: "rowNode", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null } }, providers: [TreeTableStyle], usesInheritance: true, ngImport: i0, template: `
4137
4169
  <p-checkbox
4138
4170
  [ngModel]="checked()"
4139
4171
  [ngModelOptions]="{ standalone: true }"
@@ -4144,6 +4176,8 @@ class TTCheckbox extends BaseComponent {
4144
4176
  [indeterminate]="partialChecked()"
4145
4177
  [class]="cx('pcNodeCheckbox')"
4146
4178
  [tabIndex]="-1"
4179
+ [ariaLabel]="ariaLabel()"
4180
+ [ariaLabelledBy]="ariaLabelledBy()"
4147
4181
  [unstyled]="unstyled()"
4148
4182
  >
4149
4183
  @if (tt.checkboxIconTemplate() || tt._checkboxIconTemplate()) {
@@ -4170,6 +4204,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4170
4204
  [indeterminate]="partialChecked()"
4171
4205
  [class]="cx('pcNodeCheckbox')"
4172
4206
  [tabIndex]="-1"
4207
+ [ariaLabel]="ariaLabel()"
4208
+ [ariaLabelledBy]="ariaLabelledBy()"
4173
4209
  [unstyled]="unstyled()"
4174
4210
  >
4175
4211
  @if (tt.checkboxIconTemplate() || tt._checkboxIconTemplate()) {
@@ -4183,10 +4219,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4183
4219
  changeDetection: ChangeDetectionStrategy.OnPush,
4184
4220
  providers: [TreeTableStyle]
4185
4221
  }]
4186
- }], ctorParameters: () => [], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], rowNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
4222
+ }], ctorParameters: () => [], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], rowNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }] } });
4187
4223
  class TTHeaderCheckbox extends BaseComponent {
4188
4224
  tt = inject(TreeTable);
4189
4225
  tableService = inject(TreeTableService);
4226
+ /**
4227
+ * Defines a string that labels the checkbox for accessibility.
4228
+ * @group Props
4229
+ */
4230
+ ariaLabel = input(/* @ts-ignore */
4231
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
4232
+ /**
4233
+ * Establishes relationships between the checkbox and its label(s), where its value should be one or more element IDs.
4234
+ * @group Props
4235
+ */
4236
+ ariaLabelledBy = input(/* @ts-ignore */
4237
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
4190
4238
  checked = signal(undefined, /* @ts-ignore */
4191
4239
  ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
4192
4240
  disabled;
@@ -4252,8 +4300,18 @@ class TTHeaderCheckbox extends BaseComponent {
4252
4300
  return checked;
4253
4301
  }
4254
4302
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TTHeaderCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
4255
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TTHeaderCheckbox, isStandalone: false, selector: "p-treeTableHeaderCheckbox", usesInheritance: true, ngImport: i0, template: `
4256
- <p-checkbox [ngModel]="checked()" [ngModelOptions]="{ standalone: true }" [pt]="ptm('pcHeaderCheckbox')" (onChange)="onClick($event)" [binary]="true" [disabled]="!tt.value() || tt.value()!.length === 0" [unstyled]="unstyled()">
4303
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TTHeaderCheckbox, isStandalone: false, selector: "p-treeTableHeaderCheckbox", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
4304
+ <p-checkbox
4305
+ [ngModel]="checked()"
4306
+ [ngModelOptions]="{ standalone: true }"
4307
+ [pt]="ptm('pcHeaderCheckbox')"
4308
+ (onChange)="onClick($event)"
4309
+ [binary]="true"
4310
+ [disabled]="!tt.value() || tt.value()!.length === 0"
4311
+ [ariaLabel]="ariaLabel()"
4312
+ [ariaLabelledBy]="ariaLabelledBy()"
4313
+ [unstyled]="unstyled()"
4314
+ >
4257
4315
  @if (tt.headerCheckboxIconTemplate() || tt._headerCheckboxIconTemplate()) {
4258
4316
  <ng-template pTemplate="icon">
4259
4317
  <ng-template *ngTemplateOutlet="tt.headerCheckboxIconTemplate() || tt._headerCheckboxIconTemplate(); context: { $implicit: checked() }"></ng-template>
@@ -4268,7 +4326,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4268
4326
  selector: 'p-treeTableHeaderCheckbox',
4269
4327
  standalone: false,
4270
4328
  template: `
4271
- <p-checkbox [ngModel]="checked()" [ngModelOptions]="{ standalone: true }" [pt]="ptm('pcHeaderCheckbox')" (onChange)="onClick($event)" [binary]="true" [disabled]="!tt.value() || tt.value()!.length === 0" [unstyled]="unstyled()">
4329
+ <p-checkbox
4330
+ [ngModel]="checked()"
4331
+ [ngModelOptions]="{ standalone: true }"
4332
+ [pt]="ptm('pcHeaderCheckbox')"
4333
+ (onChange)="onClick($event)"
4334
+ [binary]="true"
4335
+ [disabled]="!tt.value() || tt.value()!.length === 0"
4336
+ [ariaLabel]="ariaLabel()"
4337
+ [ariaLabelledBy]="ariaLabelledBy()"
4338
+ [unstyled]="unstyled()"
4339
+ >
4272
4340
  @if (tt.headerCheckboxIconTemplate() || tt._headerCheckboxIconTemplate()) {
4273
4341
  <ng-template pTemplate="icon">
4274
4342
  <ng-template *ngTemplateOutlet="tt.headerCheckboxIconTemplate() || tt._headerCheckboxIconTemplate(); context: { $implicit: checked() }"></ng-template>
@@ -4279,7 +4347,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4279
4347
  encapsulation: ViewEncapsulation.None,
4280
4348
  changeDetection: ChangeDetectionStrategy.OnPush
4281
4349
  }]
4282
- }], ctorParameters: () => [] });
4350
+ }], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }] } });
4283
4351
  class TTEditableColumn extends BaseComponent {
4284
4352
  tt = inject(TreeTable);
4285
4353
  zone = inject(NgZone);
@@ -4478,7 +4546,7 @@ class TreeTableCellEditor extends BaseComponent {
4478
4546
  ...(ngDevMode ? [{ debugName: "outputTemplate" }] : /* istanbul ignore next */ []));
4479
4547
  constructor() {
4480
4548
  super();
4481
- afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('cellEditor')));
4549
+ this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptm('cellEditor'));
4482
4550
  }
4483
4551
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TreeTableCellEditor, deps: [], target: i0.ɵɵFactoryTarget.Component });
4484
4552
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TreeTableCellEditor, isStandalone: false, selector: "p-treeTableCellEditor, p-treetablecelleditor, p-treetable-cell-editor", queries: [{ propertyName: "templates", predicate: PrimeTemplate, isSignal: true }, { propertyName: "_inputTemplate", first: true, predicate: ["input"], descendants: true, isSignal: true }, { propertyName: "_outputTemplate", first: true, predicate: ["output"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
@@ -4517,7 +4585,7 @@ class TTRow extends BaseComponent {
4517
4585
  treeTable = inject(TreeTable);
4518
4586
  constructor() {
4519
4587
  super();
4520
- afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('row', this.ptmOptions())));
4588
+ this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptm('row', this.ptmOptions()));
4521
4589
  }
4522
4590
  get level() {
4523
4591
  return this.rowNode()?.['level'] + 1;
@@ -4531,6 +4599,9 @@ class TTRow extends BaseComponent {
4531
4599
  rowNode = input(undefined, { ...(ngDevMode ? { debugName: "rowNode" } : /* istanbul ignore next */ {}), alias: 'ttRow' });
4532
4600
  _componentStyle = inject(TreeTableStyle);
4533
4601
  onKeyDown(event) {
4602
+ if (isEditableTarget(event)) {
4603
+ return;
4604
+ }
4534
4605
  switch (event.code) {
4535
4606
  case 'ArrowDown':
4536
4607
  this.onArrowDownKey(event);
@@ -4573,7 +4644,8 @@ class TTRow extends BaseComponent {
4573
4644
  }
4574
4645
  onArrowRightKey(event) {
4575
4646
  const currentTarget = event.currentTarget;
4576
- const isHiddenIcon = findSingle(currentTarget, 'button').style.visibility === 'hidden';
4647
+ // a row may have no toggler, e.g. the unfrozen part of a row when frozen columns are used
4648
+ const isHiddenIcon = findSingle(currentTarget, 'button')?.style.visibility === 'hidden';
4577
4649
  if (!isHiddenIcon && !this.expanded && this.rowNode().node['children']) {
4578
4650
  this.expand(event);
4579
4651
  currentTarget.tabIndex = -1;
@@ -4702,7 +4774,7 @@ class TreeTableToggler extends BaseComponent {
4702
4774
  _componentStyle = inject(TreeTableStyle);
4703
4775
  constructor() {
4704
4776
  super();
4705
- afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('toggler')));
4777
+ this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptm('toggler'));
4706
4778
  }
4707
4779
  get toggleButtonAriaLabel() {
4708
4780
  return this.config.translation ? (this.rowNode().expanded ? this.config.translation?.aria?.collapseRow : this.config.translation?.aria?.expandRow) : undefined;