@wirabyte/ui 0.0.0-stage → 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1702) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/LICENSE +21 -0
  3. package/README.md +74 -2
  4. package/accordion/accordion.component.d.ts +126 -0
  5. package/accordion/accordion.module.d.ts +9 -0
  6. package/accordion/accordion.types.d.ts +10 -0
  7. package/accordion/index.d.ts +5 -0
  8. package/accordion/public-api.d.ts +3 -0
  9. package/alert/alert-dialog.base.d.ts +79 -0
  10. package/alert/alert-dialog.component.d.ts +8 -0
  11. package/alert/alert.module.d.ts +8 -0
  12. package/alert/alert.service.d.ts +76 -0
  13. package/alert/alert.types.d.ts +87 -0
  14. package/alert/index.d.ts +5 -0
  15. package/alert/public-api.d.ts +5 -0
  16. package/animate/animate.directive.d.ts +34 -0
  17. package/animate/animate.module.d.ts +11 -0
  18. package/animate/animate.service.d.ts +36 -0
  19. package/animate/animate.styles.d.ts +2 -0
  20. package/animate/animate.types.d.ts +20 -0
  21. package/animate/index.d.ts +5 -0
  22. package/animate/public-api.d.ts +4 -0
  23. package/api/index.d.ts +5 -0
  24. package/api/public-api.d.ts +15 -0
  25. package/api/shared.module.d.ts +8 -0
  26. package/asidemenu/asidemenu.component.d.ts +221 -0
  27. package/asidemenu/asidemenu.module.d.ts +9 -0
  28. package/asidemenu/index.d.ts +5 -0
  29. package/asidemenu/public-api.d.ts +2 -0
  30. package/autocomplete/autocomplete.base.d.ts +181 -0
  31. package/autocomplete/autocomplete.component.d.ts +10 -0
  32. package/autocomplete/autocomplete.module.d.ts +9 -0
  33. package/autocomplete/autocomplete.types.d.ts +10 -0
  34. package/autocomplete/index.d.ts +5 -0
  35. package/autocomplete/public-api.d.ts +4 -0
  36. package/avatar/avatar.component.d.ts +38 -0
  37. package/avatar/avatar.module.d.ts +8 -0
  38. package/avatar/avatar.types.d.ts +2 -0
  39. package/avatar/index.d.ts +5 -0
  40. package/avatar/public-api.d.ts +3 -0
  41. package/badge/badge.component.d.ts +20 -0
  42. package/badge/badge.directive.d.ts +32 -0
  43. package/badge/badge.module.d.ts +9 -0
  44. package/badge/badge.styles.d.ts +2 -0
  45. package/badge/badge.types.d.ts +3 -0
  46. package/badge/index.d.ts +5 -0
  47. package/badge/public-api.d.ts +4 -0
  48. package/blockui/blockui.component.d.ts +41 -0
  49. package/blockui/blockui.module.d.ts +8 -0
  50. package/blockui/index.d.ts +5 -0
  51. package/blockui/public-api.d.ts +2 -0
  52. package/bottombar/bottombar.component.d.ts +79 -0
  53. package/bottombar/bottombar.module.d.ts +9 -0
  54. package/bottombar/index.d.ts +5 -0
  55. package/bottombar/public-api.d.ts +2 -0
  56. package/breadcrumb/breadcrumb.component.d.ts +41 -0
  57. package/breadcrumb/breadcrumb.module.d.ts +8 -0
  58. package/breadcrumb/index.d.ts +5 -0
  59. package/breadcrumb/public-api.d.ts +2 -0
  60. package/button/button-class.d.ts +8 -0
  61. package/button/button.component.d.ts +69 -0
  62. package/button/button.directive.d.ts +53 -0
  63. package/button/button.module.d.ts +9 -0
  64. package/button/button.styles.d.ts +2 -0
  65. package/button/button.types.d.ts +8 -0
  66. package/button/index.d.ts +5 -0
  67. package/button/public-api.d.ts +7 -0
  68. package/card/card-slots.d.ts +11 -0
  69. package/card/card.component.d.ts +41 -0
  70. package/card/card.module.d.ts +10 -0
  71. package/card/card.types.d.ts +5 -0
  72. package/card/index.d.ts +5 -0
  73. package/card/public-api.d.ts +4 -0
  74. package/carousel/carousel.component.d.ts +169 -0
  75. package/carousel/carousel.module.d.ts +10 -0
  76. package/carousel/carousel.types.d.ts +21 -0
  77. package/carousel/index.d.ts +5 -0
  78. package/carousel/public-api.d.ts +3 -0
  79. package/chart/chart.component.d.ts +11 -0
  80. package/chart/chart.module.d.ts +8 -0
  81. package/chart/index.d.ts +5 -0
  82. package/chart/public-api.d.ts +3 -0
  83. package/chartjs/chartjs.base.d.ts +70 -0
  84. package/chartjs/chartjs.component.d.ts +10 -0
  85. package/chartjs/chartjs.module.d.ts +8 -0
  86. package/chartjs/chartjs.types.d.ts +8 -0
  87. package/chartjs/index.d.ts +5 -0
  88. package/chartjs/public-api.d.ts +4 -0
  89. package/checkbox/checkbox.component.d.ts +59 -0
  90. package/checkbox/checkbox.module.d.ts +8 -0
  91. package/checkbox/checkbox.styles.d.ts +2 -0
  92. package/checkbox/checkbox.types.d.ts +4 -0
  93. package/checkbox/index.d.ts +5 -0
  94. package/checkbox/public-api.d.ts +5 -0
  95. package/chip/chip.component.d.ts +36 -0
  96. package/chip/chip.module.d.ts +8 -0
  97. package/chip/index.d.ts +5 -0
  98. package/chip/public-api.d.ts +2 -0
  99. package/colorpicker/colorpicker.component.d.ts +87 -0
  100. package/colorpicker/colorpicker.module.d.ts +8 -0
  101. package/colorpicker/index.d.ts +5 -0
  102. package/colorpicker/public-api.d.ts +2 -0
  103. package/config/forms.d.ts +17 -0
  104. package/config/index.d.ts +5 -0
  105. package/config/initializer.d.ts +3 -0
  106. package/config/menu-item.d.ts +52 -0
  107. package/config/options.d.ts +48 -0
  108. package/config/popup.d.ts +48 -0
  109. package/config/provide.d.ts +23 -0
  110. package/config/public-api.d.ts +17 -0
  111. package/config/ripple.d.ts +2 -0
  112. package/config/scroll-lock.d.ts +5 -0
  113. package/config/severity.d.ts +5 -0
  114. package/config/style-loader.d.ts +12 -0
  115. package/config/template.d.ts +19 -0
  116. package/config/theme.service.d.ts +46 -0
  117. package/config/version-guard.d.ts +14 -0
  118. package/config/version.d.ts +6 -0
  119. package/config/wu-config.service.d.ts +24 -0
  120. package/confirmdialog/confirmation.service.d.ts +25 -0
  121. package/confirmdialog/confirmdialog.base.d.ts +110 -0
  122. package/confirmdialog/confirmdialog.component.d.ts +11 -0
  123. package/confirmdialog/confirmdialog.module.d.ts +9 -0
  124. package/confirmdialog/confirmdialog.types.d.ts +37 -0
  125. package/confirmdialog/index.d.ts +5 -0
  126. package/confirmdialog/public-api.d.ts +5 -0
  127. package/contextmenu/contextmenu.component.d.ts +47 -0
  128. package/contextmenu/contextmenu.module.d.ts +8 -0
  129. package/contextmenu/index.d.ts +5 -0
  130. package/contextmenu/public-api.d.ts +2 -0
  131. package/core/carousel.d.ts +27 -0
  132. package/core/catalog.d.ts +446 -0
  133. package/core/chart/format.d.ts +19 -0
  134. package/core/chart/index.d.ts +6 -0
  135. package/core/chart/kinds.d.ts +78 -0
  136. package/core/chart/model.d.ts +500 -0
  137. package/core/chart/more.d.ts +33 -0
  138. package/core/chart/paths.d.ts +41 -0
  139. package/core/chart/scale.d.ts +22 -0
  140. package/core/color.d.ts +31 -0
  141. package/core/colorpicker.d.ts +23 -0
  142. package/core/compat.d.ts +11 -0
  143. package/core/config.d.ts +64 -0
  144. package/core/date.d.ts +130 -0
  145. package/core/datepicker.d.ts +184 -0
  146. package/core/dock.d.ts +6 -0
  147. package/core/editor.d.ts +117 -0
  148. package/core/errorpage.d.ts +15 -0
  149. package/core/excel.d.ts +239 -0
  150. package/core/exporters.d.ts +18 -0
  151. package/core/families.d.ts +13 -0
  152. package/core/fileupload.d.ts +24 -0
  153. package/core/flow/changes.d.ts +63 -0
  154. package/core/flow/edges.d.ts +52 -0
  155. package/core/flow/export.d.ts +56 -0
  156. package/core/flow/geometry.d.ts +117 -0
  157. package/core/flow/graph.d.ts +104 -0
  158. package/core/flow/history.d.ts +54 -0
  159. package/core/flow/index.d.ts +13 -0
  160. package/core/flow/interaction.d.ts +140 -0
  161. package/core/flow/layout.d.ts +57 -0
  162. package/core/flow/paths.d.ts +76 -0
  163. package/core/flow/text.d.ts +18 -0
  164. package/core/flow/types.d.ts +217 -0
  165. package/core/flow/viewport.d.ts +48 -0
  166. package/core/i18n.d.ts +24 -0
  167. package/core/imagecompare.d.ts +12 -0
  168. package/core/imagecropper.d.ts +183 -0
  169. package/core/index.d.ts +39 -0
  170. package/core/inputotp.d.ts +20 -0
  171. package/core/knob.d.ts +28 -0
  172. package/core/mask.d.ts +43 -0
  173. package/core/menu.d.ts +29 -0
  174. package/core/number.d.ts +66 -0
  175. package/core/organizationchart.d.ts +39 -0
  176. package/core/overrides.d.ts +109 -0
  177. package/core/picklist.d.ts +81 -0
  178. package/core/select.d.ts +44 -0
  179. package/core/splitter.d.ts +17 -0
  180. package/core/table.d.ts +48 -0
  181. package/core/terminal.d.ts +12 -0
  182. package/core/thai/buddhist.d.ts +22 -0
  183. package/core/thai/locale.d.ts +358 -0
  184. package/core/thai/text.d.ts +32 -0
  185. package/core/thai/thai-id.d.ts +6 -0
  186. package/core/tokens.d.ts +69 -0
  187. package/core/tree.d.ts +50 -0
  188. package/core/validation.d.ts +18 -0
  189. package/datepicker/datepicker.component.d.ts +275 -0
  190. package/datepicker/datepicker.module.d.ts +8 -0
  191. package/datepicker/datepicker.types.d.ts +10 -0
  192. package/datepicker/index.d.ts +5 -0
  193. package/datepicker/public-api.d.ts +3 -0
  194. package/dialog/dialog.base.d.ts +147 -0
  195. package/dialog/dialog.component.d.ts +11 -0
  196. package/dialog/dialog.module.d.ts +10 -0
  197. package/dialog/dialog.service.d.ts +104 -0
  198. package/dialog/dialog.types.d.ts +3 -0
  199. package/dialog/index.d.ts +5 -0
  200. package/dialog/public-api.d.ts +5 -0
  201. package/divider/divider.component.d.ts +20 -0
  202. package/divider/divider.module.d.ts +8 -0
  203. package/divider/divider.types.d.ts +4 -0
  204. package/divider/index.d.ts +5 -0
  205. package/divider/public-api.d.ts +3 -0
  206. package/dock/dock.component.d.ts +88 -0
  207. package/dock/dock.module.d.ts +9 -0
  208. package/dock/index.d.ts +5 -0
  209. package/dock/public-api.d.ts +2 -0
  210. package/dragdrop/dragdrop.directive.d.ts +65 -0
  211. package/dragdrop/dragdrop.module.d.ts +8 -0
  212. package/dragdrop/dragdrop.styles.d.ts +2 -0
  213. package/dragdrop/index.d.ts +5 -0
  214. package/dragdrop/public-api.d.ts +2 -0
  215. package/drawer/drawer.component.d.ts +102 -0
  216. package/drawer/drawer.module.d.ts +8 -0
  217. package/drawer/index.d.ts +5 -0
  218. package/drawer/public-api.d.ts +5 -0
  219. package/editor/editor-content.directive.d.ts +10 -0
  220. package/editor/editor-icon.directive.d.ts +8 -0
  221. package/editor/editor.base.d.ts +367 -0
  222. package/editor/editor.component.d.ts +11 -0
  223. package/editor/editor.dom.d.ts +91 -0
  224. package/editor/editor.icons.d.ts +13 -0
  225. package/editor/editor.module.d.ts +10 -0
  226. package/editor/editor.styles.d.ts +2 -0
  227. package/editor/editor.types.d.ts +92 -0
  228. package/editor/index.d.ts +5 -0
  229. package/editor/public-api.d.ts +6 -0
  230. package/emptystate/emptystate.component.d.ts +44 -0
  231. package/emptystate/emptystate.module.d.ts +8 -0
  232. package/emptystate/index.d.ts +5 -0
  233. package/emptystate/public-api.d.ts +2 -0
  234. package/errorpage/errorpage.component.d.ts +73 -0
  235. package/errorpage/errorpage.module.d.ts +8 -0
  236. package/errorpage/index.d.ts +5 -0
  237. package/errorpage/public-api.d.ts +2 -0
  238. package/esm2020/accordion/accordion.component.mjs +376 -0
  239. package/esm2020/accordion/accordion.module.mjs +19 -0
  240. package/esm2020/accordion/accordion.types.mjs +17 -0
  241. package/esm2020/accordion/public-api.mjs +4 -0
  242. package/esm2020/accordion/wirabyte-ui-accordion.mjs +5 -0
  243. package/esm2020/alert/alert-dialog.base.mjs +355 -0
  244. package/esm2020/alert/alert-dialog.component.mjs +21 -0
  245. package/esm2020/alert/alert.module.mjs +17 -0
  246. package/esm2020/alert/alert.service.mjs +142 -0
  247. package/esm2020/alert/alert.types.mjs +2 -0
  248. package/esm2020/alert/public-api.mjs +6 -0
  249. package/esm2020/alert/wirabyte-ui-alert.mjs +5 -0
  250. package/esm2020/animate/animate.directive.mjs +71 -0
  251. package/esm2020/animate/animate.module.mjs +21 -0
  252. package/esm2020/animate/animate.service.mjs +183 -0
  253. package/esm2020/animate/animate.styles.mjs +3 -0
  254. package/esm2020/animate/animate.types.mjs +2 -0
  255. package/esm2020/animate/public-api.mjs +5 -0
  256. package/esm2020/animate/wirabyte-ui-animate.mjs +5 -0
  257. package/esm2020/api/public-api.mjs +11 -0
  258. package/esm2020/api/shared.module.mjs +17 -0
  259. package/esm2020/api/wirabyte-ui-api.mjs +5 -0
  260. package/esm2020/asidemenu/asidemenu.component.mjs +811 -0
  261. package/esm2020/asidemenu/asidemenu.module.mjs +18 -0
  262. package/esm2020/asidemenu/public-api.mjs +3 -0
  263. package/esm2020/asidemenu/wirabyte-ui-asidemenu.mjs +5 -0
  264. package/esm2020/autocomplete/autocomplete.base.mjs +567 -0
  265. package/esm2020/autocomplete/autocomplete.component.mjs +24 -0
  266. package/esm2020/autocomplete/autocomplete.module.mjs +18 -0
  267. package/esm2020/autocomplete/autocomplete.types.mjs +2 -0
  268. package/esm2020/autocomplete/public-api.mjs +5 -0
  269. package/esm2020/autocomplete/wirabyte-ui-autocomplete.mjs +5 -0
  270. package/esm2020/avatar/avatar.component.mjs +81 -0
  271. package/esm2020/avatar/avatar.module.mjs +17 -0
  272. package/esm2020/avatar/avatar.types.mjs +2 -0
  273. package/esm2020/avatar/public-api.mjs +4 -0
  274. package/esm2020/avatar/wirabyte-ui-avatar.mjs +5 -0
  275. package/esm2020/badge/badge.component.mjs +52 -0
  276. package/esm2020/badge/badge.directive.mjs +111 -0
  277. package/esm2020/badge/badge.module.mjs +18 -0
  278. package/esm2020/badge/badge.styles.mjs +3 -0
  279. package/esm2020/badge/badge.types.mjs +2 -0
  280. package/esm2020/badge/public-api.mjs +5 -0
  281. package/esm2020/badge/wirabyte-ui-badge.mjs +5 -0
  282. package/esm2020/blockui/blockui.component.mjs +152 -0
  283. package/esm2020/blockui/blockui.module.mjs +17 -0
  284. package/esm2020/blockui/public-api.mjs +3 -0
  285. package/esm2020/blockui/wirabyte-ui-blockui.mjs +5 -0
  286. package/esm2020/bottombar/bottombar.component.mjs +209 -0
  287. package/esm2020/bottombar/bottombar.module.mjs +18 -0
  288. package/esm2020/bottombar/public-api.mjs +3 -0
  289. package/esm2020/bottombar/wirabyte-ui-bottombar.mjs +5 -0
  290. package/esm2020/breadcrumb/breadcrumb.component.mjs +86 -0
  291. package/esm2020/breadcrumb/breadcrumb.module.mjs +17 -0
  292. package/esm2020/breadcrumb/public-api.mjs +3 -0
  293. package/esm2020/breadcrumb/wirabyte-ui-breadcrumb.mjs +5 -0
  294. package/esm2020/button/button-class.mjs +26 -0
  295. package/esm2020/button/button.component.mjs +175 -0
  296. package/esm2020/button/button.directive.mjs +193 -0
  297. package/esm2020/button/button.module.mjs +18 -0
  298. package/esm2020/button/button.styles.mjs +3 -0
  299. package/esm2020/button/button.types.mjs +2 -0
  300. package/esm2020/button/public-api.mjs +8 -0
  301. package/esm2020/button/wirabyte-ui-button.mjs +5 -0
  302. package/esm2020/card/card-slots.mjs +27 -0
  303. package/esm2020/card/card.component.mjs +88 -0
  304. package/esm2020/card/card.module.mjs +19 -0
  305. package/esm2020/card/card.types.mjs +2 -0
  306. package/esm2020/card/public-api.mjs +5 -0
  307. package/esm2020/card/wirabyte-ui-card.mjs +5 -0
  308. package/esm2020/carousel/carousel.component.mjs +617 -0
  309. package/esm2020/carousel/carousel.module.mjs +19 -0
  310. package/esm2020/carousel/carousel.types.mjs +2 -0
  311. package/esm2020/carousel/public-api.mjs +4 -0
  312. package/esm2020/carousel/wirabyte-ui-carousel.mjs +5 -0
  313. package/esm2020/chart/chart.component.mjs +42 -0
  314. package/esm2020/chart/chart.module.mjs +17 -0
  315. package/esm2020/chart/public-api.mjs +3 -0
  316. package/esm2020/chart/wirabyte-ui-chart.mjs +5 -0
  317. package/esm2020/chartjs/chartjs.base.mjs +204 -0
  318. package/esm2020/chartjs/chartjs.component.mjs +41 -0
  319. package/esm2020/chartjs/chartjs.module.mjs +17 -0
  320. package/esm2020/chartjs/chartjs.types.mjs +2 -0
  321. package/esm2020/chartjs/public-api.mjs +5 -0
  322. package/esm2020/chartjs/wirabyte-ui-chartjs.mjs +5 -0
  323. package/esm2020/checkbox/checkbox.component.mjs +140 -0
  324. package/esm2020/checkbox/checkbox.module.mjs +17 -0
  325. package/esm2020/checkbox/checkbox.styles.mjs +3 -0
  326. package/esm2020/checkbox/checkbox.types.mjs +2 -0
  327. package/esm2020/checkbox/public-api.mjs +6 -0
  328. package/esm2020/checkbox/wirabyte-ui-checkbox.mjs +5 -0
  329. package/esm2020/chip/chip.component.mjs +76 -0
  330. package/esm2020/chip/chip.module.mjs +17 -0
  331. package/esm2020/chip/public-api.mjs +3 -0
  332. package/esm2020/chip/wirabyte-ui-chip.mjs +5 -0
  333. package/esm2020/colorpicker/colorpicker.component.mjs +308 -0
  334. package/esm2020/colorpicker/colorpicker.module.mjs +17 -0
  335. package/esm2020/colorpicker/public-api.mjs +3 -0
  336. package/esm2020/colorpicker/wirabyte-ui-colorpicker.mjs +5 -0
  337. package/esm2020/config/forms.mjs +38 -0
  338. package/esm2020/config/initializer.mjs +6 -0
  339. package/esm2020/config/menu-item.mjs +2 -0
  340. package/esm2020/config/options.mjs +3 -0
  341. package/esm2020/config/popup.mjs +153 -0
  342. package/esm2020/config/provide.mjs +45 -0
  343. package/esm2020/config/public-api.mjs +17 -0
  344. package/esm2020/config/ripple.mjs +13 -0
  345. package/esm2020/config/scroll-lock.mjs +31 -0
  346. package/esm2020/config/severity.mjs +9 -0
  347. package/esm2020/config/style-loader.mjs +32 -0
  348. package/esm2020/config/template.mjs +46 -0
  349. package/esm2020/config/theme.service.mjs +161 -0
  350. package/esm2020/config/version-guard.mjs +43 -0
  351. package/esm2020/config/version.mjs +3 -0
  352. package/esm2020/config/wirabyte-ui-config.mjs +5 -0
  353. package/esm2020/config/wu-config.service.mjs +50 -0
  354. package/esm2020/confirmdialog/confirmation.service.mjs +78 -0
  355. package/esm2020/confirmdialog/confirmdialog.base.mjs +274 -0
  356. package/esm2020/confirmdialog/confirmdialog.component.mjs +22 -0
  357. package/esm2020/confirmdialog/confirmdialog.module.mjs +18 -0
  358. package/esm2020/confirmdialog/confirmdialog.types.mjs +8 -0
  359. package/esm2020/confirmdialog/public-api.mjs +6 -0
  360. package/esm2020/confirmdialog/wirabyte-ui-confirmdialog.mjs +5 -0
  361. package/esm2020/contextmenu/contextmenu.component.mjs +159 -0
  362. package/esm2020/contextmenu/contextmenu.module.mjs +17 -0
  363. package/esm2020/contextmenu/public-api.mjs +3 -0
  364. package/esm2020/contextmenu/wirabyte-ui-contextmenu.mjs +5 -0
  365. package/esm2020/core/carousel.mjs +62 -0
  366. package/esm2020/core/catalog.mjs +203 -0
  367. package/esm2020/core/chart/format.mjs +66 -0
  368. package/esm2020/core/chart/index.mjs +7 -0
  369. package/esm2020/core/chart/kinds.mjs +1336 -0
  370. package/esm2020/core/chart/model.mjs +713 -0
  371. package/esm2020/core/chart/more.mjs +311 -0
  372. package/esm2020/core/chart/paths.mjs +160 -0
  373. package/esm2020/core/chart/scale.mjs +58 -0
  374. package/esm2020/core/color.mjs +94 -0
  375. package/esm2020/core/colorpicker.mjs +73 -0
  376. package/esm2020/core/compat.mjs +149 -0
  377. package/esm2020/core/config.mjs +163 -0
  378. package/esm2020/core/date.mjs +317 -0
  379. package/esm2020/core/datepicker.mjs +526 -0
  380. package/esm2020/core/dock.mjs +14 -0
  381. package/esm2020/core/editor.mjs +271 -0
  382. package/esm2020/core/errorpage.mjs +47 -0
  383. package/esm2020/core/excel.mjs +809 -0
  384. package/esm2020/core/exporters.mjs +241 -0
  385. package/esm2020/core/families.mjs +1756 -0
  386. package/esm2020/core/fileupload.mjs +48 -0
  387. package/esm2020/core/flow/changes.mjs +205 -0
  388. package/esm2020/core/flow/edges.mjs +87 -0
  389. package/esm2020/core/flow/export.mjs +231 -0
  390. package/esm2020/core/flow/geometry.mjs +309 -0
  391. package/esm2020/core/flow/graph.mjs +314 -0
  392. package/esm2020/core/flow/history.mjs +105 -0
  393. package/esm2020/core/flow/index.mjs +14 -0
  394. package/esm2020/core/flow/interaction.mjs +246 -0
  395. package/esm2020/core/flow/layout.mjs +586 -0
  396. package/esm2020/core/flow/paths.mjs +252 -0
  397. package/esm2020/core/flow/text.mjs +68 -0
  398. package/esm2020/core/flow/types.mjs +7 -0
  399. package/esm2020/core/flow/viewport.mjs +133 -0
  400. package/esm2020/core/i18n.mjs +78 -0
  401. package/esm2020/core/imagecompare.mjs +28 -0
  402. package/esm2020/core/imagecropper.mjs +483 -0
  403. package/esm2020/core/index.mjs +40 -0
  404. package/esm2020/core/inputotp.mjs +50 -0
  405. package/esm2020/core/knob.mjs +106 -0
  406. package/esm2020/core/mask.mjs +112 -0
  407. package/esm2020/core/menu.mjs +77 -0
  408. package/esm2020/core/number.mjs +131 -0
  409. package/esm2020/core/organizationchart.mjs +84 -0
  410. package/esm2020/core/overrides.mjs +169 -0
  411. package/esm2020/core/picklist.mjs +248 -0
  412. package/esm2020/core/select.mjs +161 -0
  413. package/esm2020/core/splitter.mjs +63 -0
  414. package/esm2020/core/table.mjs +174 -0
  415. package/esm2020/core/terminal.mjs +29 -0
  416. package/esm2020/core/thai/buddhist.mjs +129 -0
  417. package/esm2020/core/thai/locale.mjs +652 -0
  418. package/esm2020/core/thai/text.mjs +164 -0
  419. package/esm2020/core/thai/thai-id.mjs +22 -0
  420. package/esm2020/core/tokens.mjs +314 -0
  421. package/esm2020/core/tree.mjs +137 -0
  422. package/esm2020/core/validation.mjs +43 -0
  423. package/esm2020/core/wirabyte-ui-core.mjs +5 -0
  424. package/esm2020/datepicker/datepicker.component.mjs +921 -0
  425. package/esm2020/datepicker/datepicker.module.mjs +17 -0
  426. package/esm2020/datepicker/datepicker.types.mjs +2 -0
  427. package/esm2020/datepicker/public-api.mjs +4 -0
  428. package/esm2020/datepicker/wirabyte-ui-datepicker.mjs +5 -0
  429. package/esm2020/dialog/dialog.base.mjs +433 -0
  430. package/esm2020/dialog/dialog.component.mjs +18 -0
  431. package/esm2020/dialog/dialog.module.mjs +19 -0
  432. package/esm2020/dialog/dialog.service.mjs +237 -0
  433. package/esm2020/dialog/dialog.types.mjs +2 -0
  434. package/esm2020/dialog/public-api.mjs +6 -0
  435. package/esm2020/dialog/wirabyte-ui-dialog.mjs +5 -0
  436. package/esm2020/divider/divider.component.mjs +56 -0
  437. package/esm2020/divider/divider.module.mjs +17 -0
  438. package/esm2020/divider/divider.types.mjs +2 -0
  439. package/esm2020/divider/public-api.mjs +4 -0
  440. package/esm2020/divider/wirabyte-ui-divider.mjs +5 -0
  441. package/esm2020/dock/dock.component.mjs +287 -0
  442. package/esm2020/dock/dock.module.mjs +18 -0
  443. package/esm2020/dock/public-api.mjs +3 -0
  444. package/esm2020/dock/wirabyte-ui-dock.mjs +5 -0
  445. package/esm2020/dragdrop/dragdrop.directive.mjs +206 -0
  446. package/esm2020/dragdrop/dragdrop.module.mjs +17 -0
  447. package/esm2020/dragdrop/dragdrop.styles.mjs +3 -0
  448. package/esm2020/dragdrop/public-api.mjs +3 -0
  449. package/esm2020/dragdrop/wirabyte-ui-dragdrop.mjs +5 -0
  450. package/esm2020/drawer/drawer.component.mjs +300 -0
  451. package/esm2020/drawer/drawer.module.mjs +17 -0
  452. package/esm2020/drawer/public-api.mjs +6 -0
  453. package/esm2020/drawer/wirabyte-ui-drawer.mjs +5 -0
  454. package/esm2020/editor/editor-content.directive.mjs +24 -0
  455. package/esm2020/editor/editor-icon.directive.mjs +24 -0
  456. package/esm2020/editor/editor.base.mjs +2082 -0
  457. package/esm2020/editor/editor.component.mjs +20 -0
  458. package/esm2020/editor/editor.dom.mjs +787 -0
  459. package/esm2020/editor/editor.icons.mjs +106 -0
  460. package/esm2020/editor/editor.module.mjs +19 -0
  461. package/esm2020/editor/editor.styles.mjs +3 -0
  462. package/esm2020/editor/editor.types.mjs +6 -0
  463. package/esm2020/editor/public-api.mjs +7 -0
  464. package/esm2020/editor/wirabyte-ui-editor.mjs +5 -0
  465. package/esm2020/emptystate/emptystate.component.mjs +78 -0
  466. package/esm2020/emptystate/emptystate.module.mjs +17 -0
  467. package/esm2020/emptystate/public-api.mjs +3 -0
  468. package/esm2020/emptystate/wirabyte-ui-emptystate.mjs +5 -0
  469. package/esm2020/errorpage/errorpage.component.mjs +163 -0
  470. package/esm2020/errorpage/errorpage.module.mjs +17 -0
  471. package/esm2020/errorpage/public-api.mjs +3 -0
  472. package/esm2020/errorpage/wirabyte-ui-errorpage.mjs +5 -0
  473. package/esm2020/excel/excel.mjs +35 -0
  474. package/esm2020/excel/public-api.mjs +3 -0
  475. package/esm2020/excel/wirabyte-ui-excel.mjs +5 -0
  476. package/esm2020/fieldset/fieldset.component.mjs +74 -0
  477. package/esm2020/fieldset/fieldset.module.mjs +18 -0
  478. package/esm2020/fieldset/public-api.mjs +3 -0
  479. package/esm2020/fieldset/wirabyte-ui-fieldset.mjs +5 -0
  480. package/esm2020/fileupload/fileupload.base.mjs +563 -0
  481. package/esm2020/fileupload/fileupload.component.mjs +19 -0
  482. package/esm2020/fileupload/fileupload.module.mjs +18 -0
  483. package/esm2020/fileupload/fileupload.types.mjs +2 -0
  484. package/esm2020/fileupload/public-api.mjs +5 -0
  485. package/esm2020/fileupload/wirabyte-ui-fileupload.mjs +5 -0
  486. package/esm2020/floatlabel/floatlabel.component.mjs +53 -0
  487. package/esm2020/floatlabel/floatlabel.module.mjs +17 -0
  488. package/esm2020/floatlabel/floatlabel.types.mjs +2 -0
  489. package/esm2020/floatlabel/public-api.mjs +4 -0
  490. package/esm2020/floatlabel/wirabyte-ui-floatlabel.mjs +5 -0
  491. package/esm2020/flow/flow-background.component.mjs +183 -0
  492. package/esm2020/flow/flow-controls.component.mjs +267 -0
  493. package/esm2020/flow/flow-handle.component.mjs +130 -0
  494. package/esm2020/flow/flow-history.directive.mjs +129 -0
  495. package/esm2020/flow/flow-host.mjs +7 -0
  496. package/esm2020/flow/flow-minimap.component.mjs +322 -0
  497. package/esm2020/flow/flow-node-outlet.mjs +148 -0
  498. package/esm2020/flow/flow-node-resizer.component.mjs +208 -0
  499. package/esm2020/flow/flow-node-toolbar.component.mjs +119 -0
  500. package/esm2020/flow/flow-panel.component.mjs +37 -0
  501. package/esm2020/flow/flow-templates.mjs +100 -0
  502. package/esm2020/flow/flow.component.mjs +3245 -0
  503. package/esm2020/flow/flow.module.mjs +76 -0
  504. package/esm2020/flow/flow.types.mjs +7 -0
  505. package/esm2020/flow/public-api.mjs +17 -0
  506. package/esm2020/flow/wirabyte-ui-flow.mjs +5 -0
  507. package/esm2020/galleria/galleria.component.mjs +480 -0
  508. package/esm2020/galleria/galleria.module.mjs +17 -0
  509. package/esm2020/galleria/public-api.mjs +3 -0
  510. package/esm2020/galleria/wirabyte-ui-galleria.mjs +5 -0
  511. package/esm2020/i18n/i18n.module.mjs +37 -0
  512. package/esm2020/i18n/i18n.service.mjs +148 -0
  513. package/esm2020/i18n/i18n.types.mjs +3 -0
  514. package/esm2020/i18n/language-switch.component.mjs +91 -0
  515. package/esm2020/i18n/public-api.mjs +7 -0
  516. package/esm2020/i18n/translate.pipe.mjs +52 -0
  517. package/esm2020/i18n/wirabyte-ui-i18n.mjs +5 -0
  518. package/esm2020/iconfield/iconfield.component.mjs +73 -0
  519. package/esm2020/iconfield/iconfield.module.mjs +17 -0
  520. package/esm2020/iconfield/public-api.mjs +3 -0
  521. package/esm2020/iconfield/wirabyte-ui-iconfield.mjs +5 -0
  522. package/esm2020/image/image.base.mjs +183 -0
  523. package/esm2020/image/image.component.mjs +14 -0
  524. package/esm2020/image/image.module.mjs +18 -0
  525. package/esm2020/image/public-api.mjs +4 -0
  526. package/esm2020/image/wirabyte-ui-image.mjs +5 -0
  527. package/esm2020/imagecompare/imagecompare.component.mjs +200 -0
  528. package/esm2020/imagecompare/imagecompare.module.mjs +18 -0
  529. package/esm2020/imagecompare/public-api.mjs +3 -0
  530. package/esm2020/imagecompare/wirabyte-ui-imagecompare.mjs +5 -0
  531. package/esm2020/imagecropper/imagecropper.component.mjs +1253 -0
  532. package/esm2020/imagecropper/imagecropper.module.mjs +17 -0
  533. package/esm2020/imagecropper/imagecropper.types.mjs +6 -0
  534. package/esm2020/imagecropper/public-api.mjs +5 -0
  535. package/esm2020/imagecropper/wirabyte-ui-imagecropper.mjs +5 -0
  536. package/esm2020/inplace/inplace.component.mjs +145 -0
  537. package/esm2020/inplace/inplace.module.mjs +17 -0
  538. package/esm2020/inplace/public-api.mjs +3 -0
  539. package/esm2020/inplace/wirabyte-ui-inplace.mjs +5 -0
  540. package/esm2020/inputgroup/inputgroup.component.mjs +61 -0
  541. package/esm2020/inputgroup/inputgroup.module.mjs +17 -0
  542. package/esm2020/inputgroup/public-api.mjs +3 -0
  543. package/esm2020/inputgroup/wirabyte-ui-inputgroup.mjs +5 -0
  544. package/esm2020/inputmask/inputmask.base.mjs +319 -0
  545. package/esm2020/inputmask/inputmask.component.mjs +23 -0
  546. package/esm2020/inputmask/inputmask.module.mjs +17 -0
  547. package/esm2020/inputmask/public-api.mjs +4 -0
  548. package/esm2020/inputmask/wirabyte-ui-inputmask.mjs +5 -0
  549. package/esm2020/inputnumber/inputnumber.component.mjs +364 -0
  550. package/esm2020/inputnumber/inputnumber.module.mjs +17 -0
  551. package/esm2020/inputnumber/inputnumber.types.mjs +2 -0
  552. package/esm2020/inputnumber/public-api.mjs +4 -0
  553. package/esm2020/inputnumber/wirabyte-ui-inputnumber.mjs +5 -0
  554. package/esm2020/inputotp/inputotp.component.mjs +344 -0
  555. package/esm2020/inputotp/inputotp.module.mjs +18 -0
  556. package/esm2020/inputotp/inputotp.types.mjs +2 -0
  557. package/esm2020/inputotp/public-api.mjs +4 -0
  558. package/esm2020/inputotp/wirabyte-ui-inputotp.mjs +5 -0
  559. package/esm2020/inputtext/inputtext.directive.mjs +62 -0
  560. package/esm2020/inputtext/inputtext.module.mjs +17 -0
  561. package/esm2020/inputtext/inputtext.styles.mjs +3 -0
  562. package/esm2020/inputtext/inputtext.types.mjs +2 -0
  563. package/esm2020/inputtext/public-api.mjs +6 -0
  564. package/esm2020/inputtext/wirabyte-ui-inputtext.mjs +5 -0
  565. package/esm2020/keyfilter/keyfilter.directive.mjs +131 -0
  566. package/esm2020/keyfilter/keyfilter.module.mjs +17 -0
  567. package/esm2020/keyfilter/public-api.mjs +3 -0
  568. package/esm2020/keyfilter/wirabyte-ui-keyfilter.mjs +5 -0
  569. package/esm2020/knob/knob.component.mjs +207 -0
  570. package/esm2020/knob/knob.module.mjs +17 -0
  571. package/esm2020/knob/public-api.mjs +3 -0
  572. package/esm2020/knob/wirabyte-ui-knob.mjs +5 -0
  573. package/esm2020/listbox/listbox.component.mjs +520 -0
  574. package/esm2020/listbox/listbox.module.mjs +17 -0
  575. package/esm2020/listbox/public-api.mjs +3 -0
  576. package/esm2020/listbox/wirabyte-ui-listbox.mjs +5 -0
  577. package/esm2020/menu/menu.base.mjs +320 -0
  578. package/esm2020/menu/menu.component.mjs +19 -0
  579. package/esm2020/menu/menu.module.mjs +18 -0
  580. package/esm2020/menu/public-api.mjs +4 -0
  581. package/esm2020/menu/wirabyte-ui-menu.mjs +5 -0
  582. package/esm2020/menubar/menubar.base.mjs +568 -0
  583. package/esm2020/menubar/menubar.component.mjs +19 -0
  584. package/esm2020/menubar/menubar.module.mjs +18 -0
  585. package/esm2020/menubar/public-api.mjs +4 -0
  586. package/esm2020/menubar/wirabyte-ui-menubar.mjs +5 -0
  587. package/esm2020/message/message.component.mjs +107 -0
  588. package/esm2020/message/message.module.mjs +20 -0
  589. package/esm2020/message/message.types.mjs +2 -0
  590. package/esm2020/message/messages.base.mjs +109 -0
  591. package/esm2020/message/messages.component.mjs +62 -0
  592. package/esm2020/message/public-api.mjs +6 -0
  593. package/esm2020/message/wirabyte-ui-message.mjs +5 -0
  594. package/esm2020/metergroup/metergroup.component.mjs +146 -0
  595. package/esm2020/metergroup/metergroup.module.mjs +17 -0
  596. package/esm2020/metergroup/metergroup.types.mjs +26 -0
  597. package/esm2020/metergroup/public-api.mjs +4 -0
  598. package/esm2020/metergroup/wirabyte-ui-metergroup.mjs +5 -0
  599. package/esm2020/multiselect/multiselect.base.mjs +732 -0
  600. package/esm2020/multiselect/multiselect.component.mjs +26 -0
  601. package/esm2020/multiselect/multiselect.module.mjs +18 -0
  602. package/esm2020/multiselect/multiselect.styles.mjs +3 -0
  603. package/esm2020/multiselect/multiselect.types.mjs +2 -0
  604. package/esm2020/multiselect/public-api.mjs +6 -0
  605. package/esm2020/multiselect/wirabyte-ui-multiselect.mjs +5 -0
  606. package/esm2020/navbar/navbar.component.mjs +460 -0
  607. package/esm2020/navbar/navbar.module.mjs +18 -0
  608. package/esm2020/navbar/public-api.mjs +3 -0
  609. package/esm2020/navbar/wirabyte-ui-navbar.mjs +5 -0
  610. package/esm2020/orderlist/orderlist.base.mjs +411 -0
  611. package/esm2020/orderlist/orderlist.component.mjs +17 -0
  612. package/esm2020/orderlist/orderlist.module.mjs +18 -0
  613. package/esm2020/orderlist/orderlist.types.mjs +2 -0
  614. package/esm2020/orderlist/public-api.mjs +5 -0
  615. package/esm2020/orderlist/wirabyte-ui-orderlist.mjs +5 -0
  616. package/esm2020/organizationchart/organizationchart.component.mjs +200 -0
  617. package/esm2020/organizationchart/organizationchart.module.mjs +18 -0
  618. package/esm2020/organizationchart/organizationchart.types.mjs +2 -0
  619. package/esm2020/organizationchart/public-api.mjs +4 -0
  620. package/esm2020/organizationchart/wirabyte-ui-organizationchart.mjs +5 -0
  621. package/esm2020/paginator/paginator.base.mjs +188 -0
  622. package/esm2020/paginator/paginator.component.mjs +20 -0
  623. package/esm2020/paginator/paginator.module.mjs +17 -0
  624. package/esm2020/paginator/paginator.types.mjs +2 -0
  625. package/esm2020/paginator/public-api.mjs +5 -0
  626. package/esm2020/paginator/wirabyte-ui-paginator.mjs +5 -0
  627. package/esm2020/panel/panel.component.mjs +108 -0
  628. package/esm2020/panel/panel.module.mjs +19 -0
  629. package/esm2020/panel/panel.types.mjs +2 -0
  630. package/esm2020/panel/public-api.mjs +4 -0
  631. package/esm2020/panel/wirabyte-ui-panel.mjs +5 -0
  632. package/esm2020/panelmenu/panelmenu.base.mjs +181 -0
  633. package/esm2020/panelmenu/panelmenu.component.mjs +15 -0
  634. package/esm2020/panelmenu/panelmenu.module.mjs +18 -0
  635. package/esm2020/panelmenu/public-api.mjs +4 -0
  636. package/esm2020/panelmenu/wirabyte-ui-panelmenu.mjs +5 -0
  637. package/esm2020/password/password.component.mjs +233 -0
  638. package/esm2020/password/password.module.mjs +17 -0
  639. package/esm2020/password/password.types.mjs +14 -0
  640. package/esm2020/password/public-api.mjs +4 -0
  641. package/esm2020/password/wirabyte-ui-password.mjs +5 -0
  642. package/esm2020/picklist/list-drag.mjs +259 -0
  643. package/esm2020/picklist/picklist.base.mjs +649 -0
  644. package/esm2020/picklist/picklist.component.mjs +17 -0
  645. package/esm2020/picklist/picklist.module.mjs +18 -0
  646. package/esm2020/picklist/picklist.styles.mjs +3 -0
  647. package/esm2020/picklist/picklist.types.mjs +2 -0
  648. package/esm2020/picklist/public-api.mjs +8 -0
  649. package/esm2020/picklist/wirabyte-ui-picklist.mjs +5 -0
  650. package/esm2020/popover/popover.base.mjs +171 -0
  651. package/esm2020/popover/popover.component.mjs +17 -0
  652. package/esm2020/popover/popover.module.mjs +18 -0
  653. package/esm2020/popover/public-api.mjs +4 -0
  654. package/esm2020/popover/wirabyte-ui-popover.mjs +5 -0
  655. package/esm2020/presets/public-api.mjs +5 -0
  656. package/esm2020/presets/wirabyte-ui-presets.mjs +5 -0
  657. package/esm2020/progressbar/progressbar.component.mjs +117 -0
  658. package/esm2020/progressbar/progressbar.module.mjs +17 -0
  659. package/esm2020/progressbar/progressbar.types.mjs +19 -0
  660. package/esm2020/progressbar/public-api.mjs +4 -0
  661. package/esm2020/progressbar/wirabyte-ui-progressbar.mjs +5 -0
  662. package/esm2020/progressspinner/progressspinner.component.mjs +109 -0
  663. package/esm2020/progressspinner/progressspinner.module.mjs +17 -0
  664. package/esm2020/progressspinner/progressspinner.types.mjs +27 -0
  665. package/esm2020/progressspinner/public-api.mjs +4 -0
  666. package/esm2020/progressspinner/wirabyte-ui-progressspinner.mjs +5 -0
  667. package/esm2020/public-api.mjs +3 -0
  668. package/esm2020/radiobutton/public-api.mjs +7 -0
  669. package/esm2020/radiobutton/radio-registry.mjs +40 -0
  670. package/esm2020/radiobutton/radiobutton.component.mjs +125 -0
  671. package/esm2020/radiobutton/radiobutton.module.mjs +17 -0
  672. package/esm2020/radiobutton/radiobutton.styles.mjs +3 -0
  673. package/esm2020/radiobutton/radiobutton.types.mjs +2 -0
  674. package/esm2020/radiobutton/wirabyte-ui-radiobutton.mjs +5 -0
  675. package/esm2020/rating/public-api.mjs +4 -0
  676. package/esm2020/rating/rating.component.mjs +107 -0
  677. package/esm2020/rating/rating.module.mjs +17 -0
  678. package/esm2020/rating/rating.types.mjs +2 -0
  679. package/esm2020/rating/wirabyte-ui-rating.mjs +5 -0
  680. package/esm2020/result/public-api.mjs +3 -0
  681. package/esm2020/result/result.component.mjs +72 -0
  682. package/esm2020/result/result.module.mjs +17 -0
  683. package/esm2020/result/wirabyte-ui-result.mjs +5 -0
  684. package/esm2020/ripple/public-api.mjs +3 -0
  685. package/esm2020/ripple/ripple.directive.mjs +43 -0
  686. package/esm2020/ripple/ripple.module.mjs +17 -0
  687. package/esm2020/ripple/ripple.styles.mjs +3 -0
  688. package/esm2020/ripple/wirabyte-ui-ripple.mjs +5 -0
  689. package/esm2020/scroller/public-api.mjs +6 -0
  690. package/esm2020/scroller/scroller.component.mjs +305 -0
  691. package/esm2020/scroller/scroller.module.mjs +17 -0
  692. package/esm2020/scroller/wirabyte-ui-scroller.mjs +5 -0
  693. package/esm2020/scrollpanel/public-api.mjs +3 -0
  694. package/esm2020/scrollpanel/scrollpanel.component.mjs +67 -0
  695. package/esm2020/scrollpanel/scrollpanel.module.mjs +17 -0
  696. package/esm2020/scrollpanel/wirabyte-ui-scrollpanel.mjs +5 -0
  697. package/esm2020/select/public-api.mjs +7 -0
  698. package/esm2020/select/select.base.mjs +667 -0
  699. package/esm2020/select/select.component.mjs +26 -0
  700. package/esm2020/select/select.module.mjs +17 -0
  701. package/esm2020/select/select.styles.mjs +3 -0
  702. package/esm2020/select/select.types.mjs +2 -0
  703. package/esm2020/select/wirabyte-ui-select.mjs +5 -0
  704. package/esm2020/selectbutton/public-api.mjs +4 -0
  705. package/esm2020/selectbutton/selectbutton.component.mjs +174 -0
  706. package/esm2020/selectbutton/selectbutton.module.mjs +18 -0
  707. package/esm2020/selectbutton/selectbutton.types.mjs +2 -0
  708. package/esm2020/selectbutton/wirabyte-ui-selectbutton.mjs +5 -0
  709. package/esm2020/sitefooter/public-api.mjs +3 -0
  710. package/esm2020/sitefooter/sitefooter.component.mjs +139 -0
  711. package/esm2020/sitefooter/sitefooter.module.mjs +18 -0
  712. package/esm2020/sitefooter/wirabyte-ui-sitefooter.mjs +5 -0
  713. package/esm2020/skeleton/public-api.mjs +4 -0
  714. package/esm2020/skeleton/skeleton.component.mjs +51 -0
  715. package/esm2020/skeleton/skeleton.module.mjs +17 -0
  716. package/esm2020/skeleton/skeleton.types.mjs +2 -0
  717. package/esm2020/skeleton/wirabyte-ui-skeleton.mjs +5 -0
  718. package/esm2020/slider/public-api.mjs +3 -0
  719. package/esm2020/slider/slider.component.mjs +247 -0
  720. package/esm2020/slider/slider.module.mjs +17 -0
  721. package/esm2020/slider/wirabyte-ui-slider.mjs +5 -0
  722. package/esm2020/splitbutton/public-api.mjs +3 -0
  723. package/esm2020/splitbutton/splitbutton.component.mjs +180 -0
  724. package/esm2020/splitbutton/splitbutton.module.mjs +17 -0
  725. package/esm2020/splitbutton/wirabyte-ui-splitbutton.mjs +5 -0
  726. package/esm2020/splitter/public-api.mjs +5 -0
  727. package/esm2020/splitter/splitter-panel.component.mjs +32 -0
  728. package/esm2020/splitter/splitter.component.mjs +372 -0
  729. package/esm2020/splitter/splitter.module.mjs +19 -0
  730. package/esm2020/splitter/splitter.types.mjs +2 -0
  731. package/esm2020/splitter/wirabyte-ui-splitter.mjs +5 -0
  732. package/esm2020/stepper/public-api.mjs +4 -0
  733. package/esm2020/stepper/stepper.base.mjs +392 -0
  734. package/esm2020/stepper/stepper.component.mjs +191 -0
  735. package/esm2020/stepper/stepper.module.mjs +19 -0
  736. package/esm2020/stepper/wirabyte-ui-stepper.mjs +5 -0
  737. package/esm2020/steps/public-api.mjs +4 -0
  738. package/esm2020/steps/steps.base.mjs +148 -0
  739. package/esm2020/steps/steps.component.mjs +15 -0
  740. package/esm2020/steps/steps.module.mjs +17 -0
  741. package/esm2020/steps/wirabyte-ui-steps.mjs +5 -0
  742. package/esm2020/table/public-api.mjs +10 -0
  743. package/esm2020/table/table-celleditor.component.mjs +34 -0
  744. package/esm2020/table/table-filter.component.mjs +123 -0
  745. package/esm2020/table/table.base.mjs +1443 -0
  746. package/esm2020/table/table.celleditor.mjs +42 -0
  747. package/esm2020/table/table.component.mjs +21 -0
  748. package/esm2020/table/table.directives.mjs +1117 -0
  749. package/esm2020/table/table.filter.mjs +346 -0
  750. package/esm2020/table/table.module.mjs +99 -0
  751. package/esm2020/table/table.types.mjs +3 -0
  752. package/esm2020/table/wirabyte-ui-table.mjs +5 -0
  753. package/esm2020/tabmenu/public-api.mjs +3 -0
  754. package/esm2020/tabmenu/wirabyte-ui-tabmenu.mjs +5 -0
  755. package/esm2020/tabs/public-api.mjs +9 -0
  756. package/esm2020/tabs/tabmenu.base.mjs +196 -0
  757. package/esm2020/tabs/tabmenu.component.mjs +18 -0
  758. package/esm2020/tabs/tabmenu.module.mjs +18 -0
  759. package/esm2020/tabs/tabs.component.mjs +477 -0
  760. package/esm2020/tabs/tabs.module.mjs +20 -0
  761. package/esm2020/tabs/tabs.styles.mjs +3 -0
  762. package/esm2020/tabs/tabs.types.mjs +50 -0
  763. package/esm2020/tabs/wirabyte-ui-tabs.mjs +5 -0
  764. package/esm2020/tag/public-api.mjs +4 -0
  765. package/esm2020/tag/tag.component.mjs +52 -0
  766. package/esm2020/tag/tag.module.mjs +17 -0
  767. package/esm2020/tag/tag.types.mjs +2 -0
  768. package/esm2020/tag/wirabyte-ui-tag.mjs +5 -0
  769. package/esm2020/terminal/public-api.mjs +6 -0
  770. package/esm2020/terminal/terminal.component.mjs +150 -0
  771. package/esm2020/terminal/terminal.module.mjs +17 -0
  772. package/esm2020/terminal/terminal.service.mjs +35 -0
  773. package/esm2020/terminal/wirabyte-ui-terminal.mjs +5 -0
  774. package/esm2020/textarea/public-api.mjs +3 -0
  775. package/esm2020/textarea/textarea.directive.mjs +87 -0
  776. package/esm2020/textarea/textarea.module.mjs +17 -0
  777. package/esm2020/textarea/wirabyte-ui-textarea.mjs +5 -0
  778. package/esm2020/thai/public-api.mjs +4 -0
  779. package/esm2020/thai/thai.module.mjs +18 -0
  780. package/esm2020/thai/thai.pipes.mjs +115 -0
  781. package/esm2020/thai/wirabyte-ui-thai.mjs +5 -0
  782. package/esm2020/tieredmenu/public-api.mjs +3 -0
  783. package/esm2020/tieredmenu/tieredmenu.component.mjs +385 -0
  784. package/esm2020/tieredmenu/tieredmenu.module.mjs +17 -0
  785. package/esm2020/tieredmenu/wirabyte-ui-tieredmenu.mjs +5 -0
  786. package/esm2020/timeline/public-api.mjs +4 -0
  787. package/esm2020/timeline/timeline.base.mjs +66 -0
  788. package/esm2020/timeline/timeline.component.mjs +46 -0
  789. package/esm2020/timeline/timeline.module.mjs +18 -0
  790. package/esm2020/timeline/wirabyte-ui-timeline.mjs +5 -0
  791. package/esm2020/toast/message.service.mjs +34 -0
  792. package/esm2020/toast/public-api.mjs +6 -0
  793. package/esm2020/toast/toast.base.mjs +227 -0
  794. package/esm2020/toast/toast.component.mjs +17 -0
  795. package/esm2020/toast/toast.module.mjs +18 -0
  796. package/esm2020/toast/toast.types.mjs +2 -0
  797. package/esm2020/toast/wirabyte-ui-toast.mjs +5 -0
  798. package/esm2020/togglebutton/public-api.mjs +4 -0
  799. package/esm2020/togglebutton/togglebutton.component.mjs +129 -0
  800. package/esm2020/togglebutton/togglebutton.module.mjs +17 -0
  801. package/esm2020/togglebutton/togglebutton.types.mjs +2 -0
  802. package/esm2020/togglebutton/wirabyte-ui-togglebutton.mjs +5 -0
  803. package/esm2020/toggleswitch/public-api.mjs +4 -0
  804. package/esm2020/toggleswitch/toggleswitch.component.mjs +123 -0
  805. package/esm2020/toggleswitch/toggleswitch.module.mjs +17 -0
  806. package/esm2020/toggleswitch/toggleswitch.types.mjs +2 -0
  807. package/esm2020/toggleswitch/wirabyte-ui-toggleswitch.mjs +5 -0
  808. package/esm2020/toolbar/public-api.mjs +3 -0
  809. package/esm2020/toolbar/toolbar.component.mjs +67 -0
  810. package/esm2020/toolbar/toolbar.module.mjs +18 -0
  811. package/esm2020/toolbar/wirabyte-ui-toolbar.mjs +5 -0
  812. package/esm2020/tooltip/public-api.mjs +4 -0
  813. package/esm2020/tooltip/tooltip.directive.mjs +370 -0
  814. package/esm2020/tooltip/tooltip.module.mjs +17 -0
  815. package/esm2020/tooltip/tooltip.styles.mjs +3 -0
  816. package/esm2020/tooltip/tooltip.types.mjs +2 -0
  817. package/esm2020/tooltip/wirabyte-ui-tooltip.mjs +5 -0
  818. package/esm2020/tree/public-api.mjs +3 -0
  819. package/esm2020/tree/tree.component.mjs +453 -0
  820. package/esm2020/tree/tree.module.mjs +17 -0
  821. package/esm2020/tree/wirabyte-ui-tree.mjs +5 -0
  822. package/esm2020/treeselect/public-api.mjs +3 -0
  823. package/esm2020/treeselect/treeselect.component.mjs +410 -0
  824. package/esm2020/treeselect/treeselect.module.mjs +17 -0
  825. package/esm2020/treeselect/wirabyte-ui-treeselect.mjs +5 -0
  826. package/esm2020/validation/field-error.component.mjs +84 -0
  827. package/esm2020/validation/public-api.mjs +4 -0
  828. package/esm2020/validation/validation.module.mjs +19 -0
  829. package/esm2020/validation/validators.mjs +84 -0
  830. package/esm2020/validation/wirabyte-ui-validation.mjs +5 -0
  831. package/esm2020/wirabyte-ui.mjs +5 -0
  832. package/excel/excel.d.ts +24 -0
  833. package/excel/index.d.ts +5 -0
  834. package/excel/public-api.d.ts +3 -0
  835. package/fesm2015/wirabyte-ui-accordion.mjs +416 -0
  836. package/fesm2015/wirabyte-ui-accordion.mjs.map +1 -0
  837. package/fesm2015/wirabyte-ui-alert.mjs +555 -0
  838. package/fesm2015/wirabyte-ui-alert.mjs.map +1 -0
  839. package/fesm2015/wirabyte-ui-animate.mjs +280 -0
  840. package/fesm2015/wirabyte-ui-animate.mjs.map +1 -0
  841. package/fesm2015/wirabyte-ui-api.mjs +34 -0
  842. package/fesm2015/wirabyte-ui-api.mjs.map +1 -0
  843. package/fesm2015/wirabyte-ui-asidemenu.mjs +848 -0
  844. package/fesm2015/wirabyte-ui-asidemenu.mjs.map +1 -0
  845. package/fesm2015/wirabyte-ui-autocomplete.mjs +619 -0
  846. package/fesm2015/wirabyte-ui-autocomplete.mjs.map +1 -0
  847. package/fesm2015/wirabyte-ui-avatar.mjs +103 -0
  848. package/fesm2015/wirabyte-ui-avatar.mjs.map +1 -0
  849. package/fesm2015/wirabyte-ui-badge.mjs +185 -0
  850. package/fesm2015/wirabyte-ui-badge.mjs.map +1 -0
  851. package/fesm2015/wirabyte-ui-blockui.mjs +176 -0
  852. package/fesm2015/wirabyte-ui-blockui.mjs.map +1 -0
  853. package/fesm2015/wirabyte-ui-bottombar.mjs +237 -0
  854. package/fesm2015/wirabyte-ui-bottombar.mjs.map +1 -0
  855. package/fesm2015/wirabyte-ui-breadcrumb.mjs +109 -0
  856. package/fesm2015/wirabyte-ui-breadcrumb.mjs.map +1 -0
  857. package/fesm2015/wirabyte-ui-button.mjs +415 -0
  858. package/fesm2015/wirabyte-ui-button.mjs.map +1 -0
  859. package/fesm2015/wirabyte-ui-card.mjs +134 -0
  860. package/fesm2015/wirabyte-ui-card.mjs.map +1 -0
  861. package/fesm2015/wirabyte-ui-carousel.mjs +647 -0
  862. package/fesm2015/wirabyte-ui-carousel.mjs.map +1 -0
  863. package/fesm2015/wirabyte-ui-chart.mjs +63 -0
  864. package/fesm2015/wirabyte-ui-chart.mjs.map +1 -0
  865. package/fesm2015/wirabyte-ui-chartjs.mjs +268 -0
  866. package/fesm2015/wirabyte-ui-chartjs.mjs.map +1 -0
  867. package/fesm2015/wirabyte-ui-checkbox.mjs +164 -0
  868. package/fesm2015/wirabyte-ui-checkbox.mjs.map +1 -0
  869. package/fesm2015/wirabyte-ui-chip.mjs +97 -0
  870. package/fesm2015/wirabyte-ui-chip.mjs.map +1 -0
  871. package/fesm2015/wirabyte-ui-colorpicker.mjs +333 -0
  872. package/fesm2015/wirabyte-ui-colorpicker.mjs.map +1 -0
  873. package/fesm2015/wirabyte-ui-config.mjs +624 -0
  874. package/fesm2015/wirabyte-ui-config.mjs.map +1 -0
  875. package/fesm2015/wirabyte-ui-confirmdialog.mjs +421 -0
  876. package/fesm2015/wirabyte-ui-confirmdialog.mjs.map +1 -0
  877. package/fesm2015/wirabyte-ui-contextmenu.mjs +185 -0
  878. package/fesm2015/wirabyte-ui-contextmenu.mjs.map +1 -0
  879. package/fesm2015/wirabyte-ui-core.mjs +13312 -0
  880. package/fesm2015/wirabyte-ui-core.mjs.map +1 -0
  881. package/fesm2015/wirabyte-ui-datepicker.mjs +951 -0
  882. package/fesm2015/wirabyte-ui-datepicker.mjs.map +1 -0
  883. package/fesm2015/wirabyte-ui-dialog.mjs +707 -0
  884. package/fesm2015/wirabyte-ui-dialog.mjs.map +1 -0
  885. package/fesm2015/wirabyte-ui-divider.mjs +77 -0
  886. package/fesm2015/wirabyte-ui-divider.mjs.map +1 -0
  887. package/fesm2015/wirabyte-ui-dock.mjs +317 -0
  888. package/fesm2015/wirabyte-ui-dock.mjs.map +1 -0
  889. package/fesm2015/wirabyte-ui-dragdrop.mjs +232 -0
  890. package/fesm2015/wirabyte-ui-dragdrop.mjs.map +1 -0
  891. package/fesm2015/wirabyte-ui-drawer.mjs +326 -0
  892. package/fesm2015/wirabyte-ui-drawer.mjs.map +1 -0
  893. package/fesm2015/wirabyte-ui-editor.mjs +3099 -0
  894. package/fesm2015/wirabyte-ui-editor.mjs.map +1 -0
  895. package/fesm2015/wirabyte-ui-emptystate.mjs +101 -0
  896. package/fesm2015/wirabyte-ui-emptystate.mjs.map +1 -0
  897. package/fesm2015/wirabyte-ui-errorpage.mjs +187 -0
  898. package/fesm2015/wirabyte-ui-errorpage.mjs.map +1 -0
  899. package/fesm2015/wirabyte-ui-excel.mjs +49 -0
  900. package/fesm2015/wirabyte-ui-excel.mjs.map +1 -0
  901. package/fesm2015/wirabyte-ui-fieldset.mjs +95 -0
  902. package/fesm2015/wirabyte-ui-fieldset.mjs.map +1 -0
  903. package/fesm2015/wirabyte-ui-fileupload.mjs +607 -0
  904. package/fesm2015/wirabyte-ui-fileupload.mjs.map +1 -0
  905. package/fesm2015/wirabyte-ui-floatlabel.mjs +74 -0
  906. package/fesm2015/wirabyte-ui-floatlabel.mjs.map +1 -0
  907. package/fesm2015/wirabyte-ui-flow.mjs +4967 -0
  908. package/fesm2015/wirabyte-ui-flow.mjs.map +1 -0
  909. package/fesm2015/wirabyte-ui-galleria.mjs +506 -0
  910. package/fesm2015/wirabyte-ui-galleria.mjs.map +1 -0
  911. package/fesm2015/wirabyte-ui-i18n.mjs +330 -0
  912. package/fesm2015/wirabyte-ui-i18n.mjs.map +1 -0
  913. package/fesm2015/wirabyte-ui-iconfield.mjs +94 -0
  914. package/fesm2015/wirabyte-ui-iconfield.mjs.map +1 -0
  915. package/fesm2015/wirabyte-ui-image.mjs +218 -0
  916. package/fesm2015/wirabyte-ui-image.mjs.map +1 -0
  917. package/fesm2015/wirabyte-ui-imagecompare.mjs +224 -0
  918. package/fesm2015/wirabyte-ui-imagecompare.mjs.map +1 -0
  919. package/fesm2015/wirabyte-ui-imagecropper.mjs +1301 -0
  920. package/fesm2015/wirabyte-ui-imagecropper.mjs.map +1 -0
  921. package/fesm2015/wirabyte-ui-inplace.mjs +167 -0
  922. package/fesm2015/wirabyte-ui-inplace.mjs.map +1 -0
  923. package/fesm2015/wirabyte-ui-inputgroup.mjs +82 -0
  924. package/fesm2015/wirabyte-ui-inputgroup.mjs.map +1 -0
  925. package/fesm2015/wirabyte-ui-inputmask.mjs +367 -0
  926. package/fesm2015/wirabyte-ui-inputmask.mjs.map +1 -0
  927. package/fesm2015/wirabyte-ui-inputnumber.mjs +388 -0
  928. package/fesm2015/wirabyte-ui-inputnumber.mjs.map +1 -0
  929. package/fesm2015/wirabyte-ui-inputotp.mjs +370 -0
  930. package/fesm2015/wirabyte-ui-inputotp.mjs.map +1 -0
  931. package/fesm2015/wirabyte-ui-inputtext.mjs +85 -0
  932. package/fesm2015/wirabyte-ui-inputtext.mjs.map +1 -0
  933. package/fesm2015/wirabyte-ui-keyfilter.mjs +155 -0
  934. package/fesm2015/wirabyte-ui-keyfilter.mjs.map +1 -0
  935. package/fesm2015/wirabyte-ui-knob.mjs +229 -0
  936. package/fesm2015/wirabyte-ui-knob.mjs.map +1 -0
  937. package/fesm2015/wirabyte-ui-listbox.mjs +543 -0
  938. package/fesm2015/wirabyte-ui-listbox.mjs.map +1 -0
  939. package/fesm2015/wirabyte-ui-menu.mjs +365 -0
  940. package/fesm2015/wirabyte-ui-menu.mjs.map +1 -0
  941. package/fesm2015/wirabyte-ui-menubar.mjs +614 -0
  942. package/fesm2015/wirabyte-ui-menubar.mjs.map +1 -0
  943. package/fesm2015/wirabyte-ui-message.mjs +291 -0
  944. package/fesm2015/wirabyte-ui-message.mjs.map +1 -0
  945. package/fesm2015/wirabyte-ui-metergroup.mjs +192 -0
  946. package/fesm2015/wirabyte-ui-metergroup.mjs.map +1 -0
  947. package/fesm2015/wirabyte-ui-multiselect.mjs +795 -0
  948. package/fesm2015/wirabyte-ui-multiselect.mjs.map +1 -0
  949. package/fesm2015/wirabyte-ui-navbar.mjs +491 -0
  950. package/fesm2015/wirabyte-ui-navbar.mjs.map +1 -0
  951. package/fesm2015/wirabyte-ui-orderlist.mjs +450 -0
  952. package/fesm2015/wirabyte-ui-orderlist.mjs.map +1 -0
  953. package/fesm2015/wirabyte-ui-organizationchart.mjs +225 -0
  954. package/fesm2015/wirabyte-ui-organizationchart.mjs.map +1 -0
  955. package/fesm2015/wirabyte-ui-paginator.mjs +226 -0
  956. package/fesm2015/wirabyte-ui-paginator.mjs.map +1 -0
  957. package/fesm2015/wirabyte-ui-panel.mjs +130 -0
  958. package/fesm2015/wirabyte-ui-panel.mjs.map +1 -0
  959. package/fesm2015/wirabyte-ui-panelmenu.mjs +216 -0
  960. package/fesm2015/wirabyte-ui-panelmenu.mjs.map +1 -0
  961. package/fesm2015/wirabyte-ui-password.mjs +271 -0
  962. package/fesm2015/wirabyte-ui-password.mjs.map +1 -0
  963. package/fesm2015/wirabyte-ui-picklist.mjs +954 -0
  964. package/fesm2015/wirabyte-ui-picklist.mjs.map +1 -0
  965. package/fesm2015/wirabyte-ui-popover.mjs +210 -0
  966. package/fesm2015/wirabyte-ui-popover.mjs.map +1 -0
  967. package/fesm2015/wirabyte-ui-presets.mjs +10 -0
  968. package/fesm2015/wirabyte-ui-presets.mjs.map +1 -0
  969. package/fesm2015/wirabyte-ui-progressbar.mjs +156 -0
  970. package/fesm2015/wirabyte-ui-progressbar.mjs.map +1 -0
  971. package/fesm2015/wirabyte-ui-progressspinner.mjs +158 -0
  972. package/fesm2015/wirabyte-ui-progressspinner.mjs.map +1 -0
  973. package/fesm2015/wirabyte-ui-radiobutton.mjs +186 -0
  974. package/fesm2015/wirabyte-ui-radiobutton.mjs.map +1 -0
  975. package/fesm2015/wirabyte-ui-rating.mjs +129 -0
  976. package/fesm2015/wirabyte-ui-rating.mjs.map +1 -0
  977. package/fesm2015/wirabyte-ui-result.mjs +95 -0
  978. package/fesm2015/wirabyte-ui-result.mjs.map +1 -0
  979. package/fesm2015/wirabyte-ui-ripple.mjs +67 -0
  980. package/fesm2015/wirabyte-ui-ripple.mjs.map +1 -0
  981. package/fesm2015/wirabyte-ui-scroller.mjs +330 -0
  982. package/fesm2015/wirabyte-ui-scroller.mjs.map +1 -0
  983. package/fesm2015/wirabyte-ui-scrollpanel.mjs +90 -0
  984. package/fesm2015/wirabyte-ui-scrollpanel.mjs.map +1 -0
  985. package/fesm2015/wirabyte-ui-select.mjs +730 -0
  986. package/fesm2015/wirabyte-ui-select.mjs.map +1 -0
  987. package/fesm2015/wirabyte-ui-selectbutton.mjs +195 -0
  988. package/fesm2015/wirabyte-ui-selectbutton.mjs.map +1 -0
  989. package/fesm2015/wirabyte-ui-sitefooter.mjs +166 -0
  990. package/fesm2015/wirabyte-ui-sitefooter.mjs.map +1 -0
  991. package/fesm2015/wirabyte-ui-skeleton.mjs +72 -0
  992. package/fesm2015/wirabyte-ui-skeleton.mjs.map +1 -0
  993. package/fesm2015/wirabyte-ui-slider.mjs +271 -0
  994. package/fesm2015/wirabyte-ui-slider.mjs.map +1 -0
  995. package/fesm2015/wirabyte-ui-splitbutton.mjs +202 -0
  996. package/fesm2015/wirabyte-ui-splitbutton.mjs.map +1 -0
  997. package/fesm2015/wirabyte-ui-splitter.mjs +431 -0
  998. package/fesm2015/wirabyte-ui-splitter.mjs.map +1 -0
  999. package/fesm2015/wirabyte-ui-stepper.mjs +607 -0
  1000. package/fesm2015/wirabyte-ui-stepper.mjs.map +1 -0
  1001. package/fesm2015/wirabyte-ui-steps.mjs +182 -0
  1002. package/fesm2015/wirabyte-ui-steps.mjs.map +1 -0
  1003. package/fesm2015/wirabyte-ui-table.mjs +3223 -0
  1004. package/fesm2015/wirabyte-ui-table.mjs.map +1 -0
  1005. package/fesm2015/wirabyte-ui-tabmenu.mjs +8 -0
  1006. package/fesm2015/wirabyte-ui-tabmenu.mjs.map +1 -0
  1007. package/fesm2015/wirabyte-ui-tabs.mjs +790 -0
  1008. package/fesm2015/wirabyte-ui-tabs.mjs.map +1 -0
  1009. package/fesm2015/wirabyte-ui-tag.mjs +73 -0
  1010. package/fesm2015/wirabyte-ui-tag.mjs.map +1 -0
  1011. package/fesm2015/wirabyte-ui-terminal.mjs +207 -0
  1012. package/fesm2015/wirabyte-ui-terminal.mjs.map +1 -0
  1013. package/fesm2015/wirabyte-ui-textarea.mjs +108 -0
  1014. package/fesm2015/wirabyte-ui-textarea.mjs.map +1 -0
  1015. package/fesm2015/wirabyte-ui-thai.mjs +138 -0
  1016. package/fesm2015/wirabyte-ui-thai.mjs.map +1 -0
  1017. package/fesm2015/wirabyte-ui-tieredmenu.mjs +417 -0
  1018. package/fesm2015/wirabyte-ui-tieredmenu.mjs.map +1 -0
  1019. package/fesm2015/wirabyte-ui-timeline.mjs +130 -0
  1020. package/fesm2015/wirabyte-ui-timeline.mjs.map +1 -0
  1021. package/fesm2015/wirabyte-ui-toast.mjs +294 -0
  1022. package/fesm2015/wirabyte-ui-toast.mjs.map +1 -0
  1023. package/fesm2015/wirabyte-ui-togglebutton.mjs +151 -0
  1024. package/fesm2015/wirabyte-ui-togglebutton.mjs.map +1 -0
  1025. package/fesm2015/wirabyte-ui-toggleswitch.mjs +144 -0
  1026. package/fesm2015/wirabyte-ui-toggleswitch.mjs.map +1 -0
  1027. package/fesm2015/wirabyte-ui-toolbar.mjs +88 -0
  1028. package/fesm2015/wirabyte-ui-toolbar.mjs.map +1 -0
  1029. package/fesm2015/wirabyte-ui-tooltip.mjs +398 -0
  1030. package/fesm2015/wirabyte-ui-tooltip.mjs.map +1 -0
  1031. package/fesm2015/wirabyte-ui-tree.mjs +480 -0
  1032. package/fesm2015/wirabyte-ui-tree.mjs.map +1 -0
  1033. package/fesm2015/wirabyte-ui-treeselect.mjs +438 -0
  1034. package/fesm2015/wirabyte-ui-treeselect.mjs.map +1 -0
  1035. package/fesm2015/wirabyte-ui-validation.mjs +189 -0
  1036. package/fesm2015/wirabyte-ui-validation.mjs.map +1 -0
  1037. package/fesm2015/wirabyte-ui.mjs +9 -0
  1038. package/fesm2015/wirabyte-ui.mjs.map +1 -0
  1039. package/fesm2020/wirabyte-ui-accordion.mjs +414 -0
  1040. package/fesm2020/wirabyte-ui-accordion.mjs.map +1 -0
  1041. package/fesm2020/wirabyte-ui-alert.mjs +529 -0
  1042. package/fesm2020/wirabyte-ui-alert.mjs.map +1 -0
  1043. package/fesm2020/wirabyte-ui-animate.mjs +276 -0
  1044. package/fesm2020/wirabyte-ui-animate.mjs.map +1 -0
  1045. package/fesm2020/wirabyte-ui-api.mjs +34 -0
  1046. package/fesm2020/wirabyte-ui-api.mjs.map +1 -0
  1047. package/fesm2020/wirabyte-ui-asidemenu.mjs +832 -0
  1048. package/fesm2020/wirabyte-ui-asidemenu.mjs.map +1 -0
  1049. package/fesm2020/wirabyte-ui-autocomplete.mjs +608 -0
  1050. package/fesm2020/wirabyte-ui-autocomplete.mjs.map +1 -0
  1051. package/fesm2020/wirabyte-ui-avatar.mjs +102 -0
  1052. package/fesm2020/wirabyte-ui-avatar.mjs.map +1 -0
  1053. package/fesm2020/wirabyte-ui-badge.mjs +183 -0
  1054. package/fesm2020/wirabyte-ui-badge.mjs.map +1 -0
  1055. package/fesm2020/wirabyte-ui-blockui.mjs +173 -0
  1056. package/fesm2020/wirabyte-ui-blockui.mjs.map +1 -0
  1057. package/fesm2020/wirabyte-ui-bottombar.mjs +230 -0
  1058. package/fesm2020/wirabyte-ui-bottombar.mjs.map +1 -0
  1059. package/fesm2020/wirabyte-ui-breadcrumb.mjs +107 -0
  1060. package/fesm2020/wirabyte-ui-breadcrumb.mjs.map +1 -0
  1061. package/fesm2020/wirabyte-ui-button.mjs +412 -0
  1062. package/fesm2020/wirabyte-ui-button.mjs.map +1 -0
  1063. package/fesm2020/wirabyte-ui-card.mjs +134 -0
  1064. package/fesm2020/wirabyte-ui-card.mjs.map +1 -0
  1065. package/fesm2020/wirabyte-ui-carousel.mjs +638 -0
  1066. package/fesm2020/wirabyte-ui-carousel.mjs.map +1 -0
  1067. package/fesm2020/wirabyte-ui-chart.mjs +63 -0
  1068. package/fesm2020/wirabyte-ui-chart.mjs.map +1 -0
  1069. package/fesm2020/wirabyte-ui-chartjs.mjs +262 -0
  1070. package/fesm2020/wirabyte-ui-chartjs.mjs.map +1 -0
  1071. package/fesm2020/wirabyte-ui-checkbox.mjs +164 -0
  1072. package/fesm2020/wirabyte-ui-checkbox.mjs.map +1 -0
  1073. package/fesm2020/wirabyte-ui-chip.mjs +97 -0
  1074. package/fesm2020/wirabyte-ui-chip.mjs.map +1 -0
  1075. package/fesm2020/wirabyte-ui-colorpicker.mjs +329 -0
  1076. package/fesm2020/wirabyte-ui-colorpicker.mjs.map +1 -0
  1077. package/fesm2020/wirabyte-ui-config.mjs +621 -0
  1078. package/fesm2020/wirabyte-ui-config.mjs.map +1 -0
  1079. package/fesm2020/wirabyte-ui-confirmdialog.mjs +395 -0
  1080. package/fesm2020/wirabyte-ui-confirmdialog.mjs.map +1 -0
  1081. package/fesm2020/wirabyte-ui-contextmenu.mjs +180 -0
  1082. package/fesm2020/wirabyte-ui-contextmenu.mjs.map +1 -0
  1083. package/fesm2020/wirabyte-ui-core.mjs +13367 -0
  1084. package/fesm2020/wirabyte-ui-core.mjs.map +1 -0
  1085. package/fesm2020/wirabyte-ui-datepicker.mjs +942 -0
  1086. package/fesm2020/wirabyte-ui-datepicker.mjs.map +1 -0
  1087. package/fesm2020/wirabyte-ui-dialog.mjs +698 -0
  1088. package/fesm2020/wirabyte-ui-dialog.mjs.map +1 -0
  1089. package/fesm2020/wirabyte-ui-divider.mjs +77 -0
  1090. package/fesm2020/wirabyte-ui-divider.mjs.map +1 -0
  1091. package/fesm2020/wirabyte-ui-dock.mjs +308 -0
  1092. package/fesm2020/wirabyte-ui-dock.mjs.map +1 -0
  1093. package/fesm2020/wirabyte-ui-dragdrop.mjs +229 -0
  1094. package/fesm2020/wirabyte-ui-dragdrop.mjs.map +1 -0
  1095. package/fesm2020/wirabyte-ui-drawer.mjs +321 -0
  1096. package/fesm2020/wirabyte-ui-drawer.mjs.map +1 -0
  1097. package/fesm2020/wirabyte-ui-editor.mjs +3056 -0
  1098. package/fesm2020/wirabyte-ui-editor.mjs.map +1 -0
  1099. package/fesm2020/wirabyte-ui-emptystate.mjs +99 -0
  1100. package/fesm2020/wirabyte-ui-emptystate.mjs.map +1 -0
  1101. package/fesm2020/wirabyte-ui-errorpage.mjs +184 -0
  1102. package/fesm2020/wirabyte-ui-errorpage.mjs.map +1 -0
  1103. package/fesm2020/wirabyte-ui-excel.mjs +43 -0
  1104. package/fesm2020/wirabyte-ui-excel.mjs.map +1 -0
  1105. package/fesm2020/wirabyte-ui-fieldset.mjs +95 -0
  1106. package/fesm2020/wirabyte-ui-fieldset.mjs.map +1 -0
  1107. package/fesm2020/wirabyte-ui-fileupload.mjs +599 -0
  1108. package/fesm2020/wirabyte-ui-fileupload.mjs.map +1 -0
  1109. package/fesm2020/wirabyte-ui-floatlabel.mjs +74 -0
  1110. package/fesm2020/wirabyte-ui-floatlabel.mjs.map +1 -0
  1111. package/fesm2020/wirabyte-ui-flow.mjs +4920 -0
  1112. package/fesm2020/wirabyte-ui-flow.mjs.map +1 -0
  1113. package/fesm2020/wirabyte-ui-galleria.mjs +501 -0
  1114. package/fesm2020/wirabyte-ui-galleria.mjs.map +1 -0
  1115. package/fesm2020/wirabyte-ui-i18n.mjs +321 -0
  1116. package/fesm2020/wirabyte-ui-i18n.mjs.map +1 -0
  1117. package/fesm2020/wirabyte-ui-iconfield.mjs +94 -0
  1118. package/fesm2020/wirabyte-ui-iconfield.mjs.map +1 -0
  1119. package/fesm2020/wirabyte-ui-image.mjs +214 -0
  1120. package/fesm2020/wirabyte-ui-image.mjs.map +1 -0
  1121. package/fesm2020/wirabyte-ui-imagecompare.mjs +221 -0
  1122. package/fesm2020/wirabyte-ui-imagecompare.mjs.map +1 -0
  1123. package/fesm2020/wirabyte-ui-imagecropper.mjs +1279 -0
  1124. package/fesm2020/wirabyte-ui-imagecropper.mjs.map +1 -0
  1125. package/fesm2020/wirabyte-ui-inplace.mjs +166 -0
  1126. package/fesm2020/wirabyte-ui-inplace.mjs.map +1 -0
  1127. package/fesm2020/wirabyte-ui-inputgroup.mjs +82 -0
  1128. package/fesm2020/wirabyte-ui-inputgroup.mjs.map +1 -0
  1129. package/fesm2020/wirabyte-ui-inputmask.mjs +360 -0
  1130. package/fesm2020/wirabyte-ui-inputmask.mjs.map +1 -0
  1131. package/fesm2020/wirabyte-ui-inputnumber.mjs +385 -0
  1132. package/fesm2020/wirabyte-ui-inputnumber.mjs.map +1 -0
  1133. package/fesm2020/wirabyte-ui-inputotp.mjs +365 -0
  1134. package/fesm2020/wirabyte-ui-inputotp.mjs.map +1 -0
  1135. package/fesm2020/wirabyte-ui-inputtext.mjs +85 -0
  1136. package/fesm2020/wirabyte-ui-inputtext.mjs.map +1 -0
  1137. package/fesm2020/wirabyte-ui-keyfilter.mjs +152 -0
  1138. package/fesm2020/wirabyte-ui-keyfilter.mjs.map +1 -0
  1139. package/fesm2020/wirabyte-ui-knob.mjs +228 -0
  1140. package/fesm2020/wirabyte-ui-knob.mjs.map +1 -0
  1141. package/fesm2020/wirabyte-ui-listbox.mjs +541 -0
  1142. package/fesm2020/wirabyte-ui-listbox.mjs.map +1 -0
  1143. package/fesm2020/wirabyte-ui-menu.mjs +356 -0
  1144. package/fesm2020/wirabyte-ui-menu.mjs.map +1 -0
  1145. package/fesm2020/wirabyte-ui-menubar.mjs +604 -0
  1146. package/fesm2020/wirabyte-ui-menubar.mjs.map +1 -0
  1147. package/fesm2020/wirabyte-ui-message.mjs +291 -0
  1148. package/fesm2020/wirabyte-ui-message.mjs.map +1 -0
  1149. package/fesm2020/wirabyte-ui-metergroup.mjs +192 -0
  1150. package/fesm2020/wirabyte-ui-metergroup.mjs.map +1 -0
  1151. package/fesm2020/wirabyte-ui-multiselect.mjs +778 -0
  1152. package/fesm2020/wirabyte-ui-multiselect.mjs.map +1 -0
  1153. package/fesm2020/wirabyte-ui-navbar.mjs +481 -0
  1154. package/fesm2020/wirabyte-ui-navbar.mjs.map +1 -0
  1155. package/fesm2020/wirabyte-ui-orderlist.mjs +445 -0
  1156. package/fesm2020/wirabyte-ui-orderlist.mjs.map +1 -0
  1157. package/fesm2020/wirabyte-ui-organizationchart.mjs +221 -0
  1158. package/fesm2020/wirabyte-ui-organizationchart.mjs.map +1 -0
  1159. package/fesm2020/wirabyte-ui-paginator.mjs +226 -0
  1160. package/fesm2020/wirabyte-ui-paginator.mjs.map +1 -0
  1161. package/fesm2020/wirabyte-ui-panel.mjs +130 -0
  1162. package/fesm2020/wirabyte-ui-panel.mjs.map +1 -0
  1163. package/fesm2020/wirabyte-ui-panelmenu.mjs +213 -0
  1164. package/fesm2020/wirabyte-ui-panelmenu.mjs.map +1 -0
  1165. package/fesm2020/wirabyte-ui-password.mjs +267 -0
  1166. package/fesm2020/wirabyte-ui-password.mjs.map +1 -0
  1167. package/fesm2020/wirabyte-ui-picklist.mjs +944 -0
  1168. package/fesm2020/wirabyte-ui-picklist.mjs.map +1 -0
  1169. package/fesm2020/wirabyte-ui-popover.mjs +205 -0
  1170. package/fesm2020/wirabyte-ui-popover.mjs.map +1 -0
  1171. package/fesm2020/wirabyte-ui-presets.mjs +10 -0
  1172. package/fesm2020/wirabyte-ui-presets.mjs.map +1 -0
  1173. package/fesm2020/wirabyte-ui-progressbar.mjs +156 -0
  1174. package/fesm2020/wirabyte-ui-progressbar.mjs.map +1 -0
  1175. package/fesm2020/wirabyte-ui-progressspinner.mjs +156 -0
  1176. package/fesm2020/wirabyte-ui-progressspinner.mjs.map +1 -0
  1177. package/fesm2020/wirabyte-ui-radiobutton.mjs +186 -0
  1178. package/fesm2020/wirabyte-ui-radiobutton.mjs.map +1 -0
  1179. package/fesm2020/wirabyte-ui-rating.mjs +128 -0
  1180. package/fesm2020/wirabyte-ui-rating.mjs.map +1 -0
  1181. package/fesm2020/wirabyte-ui-result.mjs +93 -0
  1182. package/fesm2020/wirabyte-ui-result.mjs.map +1 -0
  1183. package/fesm2020/wirabyte-ui-ripple.mjs +66 -0
  1184. package/fesm2020/wirabyte-ui-ripple.mjs.map +1 -0
  1185. package/fesm2020/wirabyte-ui-scroller.mjs +326 -0
  1186. package/fesm2020/wirabyte-ui-scroller.mjs.map +1 -0
  1187. package/fesm2020/wirabyte-ui-scrollpanel.mjs +88 -0
  1188. package/fesm2020/wirabyte-ui-scrollpanel.mjs.map +1 -0
  1189. package/fesm2020/wirabyte-ui-select.mjs +713 -0
  1190. package/fesm2020/wirabyte-ui-select.mjs.map +1 -0
  1191. package/fesm2020/wirabyte-ui-selectbutton.mjs +195 -0
  1192. package/fesm2020/wirabyte-ui-selectbutton.mjs.map +1 -0
  1193. package/fesm2020/wirabyte-ui-sitefooter.mjs +160 -0
  1194. package/fesm2020/wirabyte-ui-sitefooter.mjs.map +1 -0
  1195. package/fesm2020/wirabyte-ui-skeleton.mjs +72 -0
  1196. package/fesm2020/wirabyte-ui-skeleton.mjs.map +1 -0
  1197. package/fesm2020/wirabyte-ui-slider.mjs +268 -0
  1198. package/fesm2020/wirabyte-ui-slider.mjs.map +1 -0
  1199. package/fesm2020/wirabyte-ui-splitbutton.mjs +201 -0
  1200. package/fesm2020/wirabyte-ui-splitbutton.mjs.map +1 -0
  1201. package/fesm2020/wirabyte-ui-splitter.mjs +422 -0
  1202. package/fesm2020/wirabyte-ui-splitter.mjs.map +1 -0
  1203. package/fesm2020/wirabyte-ui-stepper.mjs +602 -0
  1204. package/fesm2020/wirabyte-ui-stepper.mjs.map +1 -0
  1205. package/fesm2020/wirabyte-ui-steps.mjs +180 -0
  1206. package/fesm2020/wirabyte-ui-steps.mjs.map +1 -0
  1207. package/fesm2020/wirabyte-ui-table.mjs +3201 -0
  1208. package/fesm2020/wirabyte-ui-table.mjs.map +1 -0
  1209. package/fesm2020/wirabyte-ui-tabmenu.mjs +8 -0
  1210. package/fesm2020/wirabyte-ui-tabmenu.mjs.map +1 -0
  1211. package/fesm2020/wirabyte-ui-tabs.mjs +769 -0
  1212. package/fesm2020/wirabyte-ui-tabs.mjs.map +1 -0
  1213. package/fesm2020/wirabyte-ui-tag.mjs +73 -0
  1214. package/fesm2020/wirabyte-ui-tag.mjs.map +1 -0
  1215. package/fesm2020/wirabyte-ui-terminal.mjs +203 -0
  1216. package/fesm2020/wirabyte-ui-terminal.mjs.map +1 -0
  1217. package/fesm2020/wirabyte-ui-textarea.mjs +108 -0
  1218. package/fesm2020/wirabyte-ui-textarea.mjs.map +1 -0
  1219. package/fesm2020/wirabyte-ui-thai.mjs +138 -0
  1220. package/fesm2020/wirabyte-ui-thai.mjs.map +1 -0
  1221. package/fesm2020/wirabyte-ui-tieredmenu.mjs +406 -0
  1222. package/fesm2020/wirabyte-ui-tieredmenu.mjs.map +1 -0
  1223. package/fesm2020/wirabyte-ui-timeline.mjs +130 -0
  1224. package/fesm2020/wirabyte-ui-timeline.mjs.map +1 -0
  1225. package/fesm2020/wirabyte-ui-toast.mjs +291 -0
  1226. package/fesm2020/wirabyte-ui-toast.mjs.map +1 -0
  1227. package/fesm2020/wirabyte-ui-togglebutton.mjs +150 -0
  1228. package/fesm2020/wirabyte-ui-togglebutton.mjs.map +1 -0
  1229. package/fesm2020/wirabyte-ui-toggleswitch.mjs +144 -0
  1230. package/fesm2020/wirabyte-ui-toggleswitch.mjs.map +1 -0
  1231. package/fesm2020/wirabyte-ui-toolbar.mjs +88 -0
  1232. package/fesm2020/wirabyte-ui-toolbar.mjs.map +1 -0
  1233. package/fesm2020/wirabyte-ui-tooltip.mjs +393 -0
  1234. package/fesm2020/wirabyte-ui-tooltip.mjs.map +1 -0
  1235. package/fesm2020/wirabyte-ui-tree.mjs +474 -0
  1236. package/fesm2020/wirabyte-ui-tree.mjs.map +1 -0
  1237. package/fesm2020/wirabyte-ui-treeselect.mjs +431 -0
  1238. package/fesm2020/wirabyte-ui-treeselect.mjs.map +1 -0
  1239. package/fesm2020/wirabyte-ui-validation.mjs +186 -0
  1240. package/fesm2020/wirabyte-ui-validation.mjs.map +1 -0
  1241. package/fesm2020/wirabyte-ui.mjs +9 -0
  1242. package/fesm2020/wirabyte-ui.mjs.map +1 -0
  1243. package/fieldset/fieldset.component.d.ts +35 -0
  1244. package/fieldset/fieldset.module.d.ts +9 -0
  1245. package/fieldset/index.d.ts +5 -0
  1246. package/fieldset/public-api.d.ts +2 -0
  1247. package/fileupload/fileupload.base.d.ts +175 -0
  1248. package/fileupload/fileupload.component.d.ts +11 -0
  1249. package/fileupload/fileupload.module.d.ts +9 -0
  1250. package/fileupload/fileupload.types.d.ts +54 -0
  1251. package/fileupload/index.d.ts +5 -0
  1252. package/fileupload/public-api.d.ts +4 -0
  1253. package/floatlabel/floatlabel.component.d.ts +21 -0
  1254. package/floatlabel/floatlabel.module.d.ts +8 -0
  1255. package/floatlabel/floatlabel.types.d.ts +1 -0
  1256. package/floatlabel/index.d.ts +5 -0
  1257. package/floatlabel/public-api.d.ts +3 -0
  1258. package/flow/flow-background.component.d.ts +49 -0
  1259. package/flow/flow-controls.component.d.ts +47 -0
  1260. package/flow/flow-handle.component.d.ts +48 -0
  1261. package/flow/flow-history.directive.d.ts +42 -0
  1262. package/flow/flow-host.d.ts +48 -0
  1263. package/flow/flow-minimap.component.d.ts +79 -0
  1264. package/flow/flow-node-outlet.d.ts +46 -0
  1265. package/flow/flow-node-resizer.component.d.ts +57 -0
  1266. package/flow/flow-node-toolbar.component.d.ts +38 -0
  1267. package/flow/flow-panel.component.d.ts +11 -0
  1268. package/flow/flow-templates.d.ts +47 -0
  1269. package/flow/flow.component.d.ts +633 -0
  1270. package/flow/flow.module.d.ts +21 -0
  1271. package/flow/flow.types.d.ts +210 -0
  1272. package/flow/index.d.ts +5 -0
  1273. package/flow/public-api.d.ts +16 -0
  1274. package/galleria/galleria.component.d.ts +163 -0
  1275. package/galleria/galleria.module.d.ts +8 -0
  1276. package/galleria/index.d.ts +5 -0
  1277. package/galleria/public-api.d.ts +2 -0
  1278. package/i18n/i18n.module.d.ts +22 -0
  1279. package/i18n/i18n.service.d.ts +54 -0
  1280. package/i18n/i18n.types.d.ts +33 -0
  1281. package/i18n/index.d.ts +5 -0
  1282. package/i18n/language-switch.component.d.ts +50 -0
  1283. package/i18n/public-api.d.ts +6 -0
  1284. package/i18n/translate.pipe.d.ts +25 -0
  1285. package/iconfield/iconfield.component.d.ts +30 -0
  1286. package/iconfield/iconfield.module.d.ts +8 -0
  1287. package/iconfield/index.d.ts +5 -0
  1288. package/iconfield/public-api.d.ts +2 -0
  1289. package/image/image.base.d.ts +83 -0
  1290. package/image/image.component.d.ts +7 -0
  1291. package/image/image.module.d.ts +9 -0
  1292. package/image/index.d.ts +5 -0
  1293. package/image/public-api.d.ts +3 -0
  1294. package/imagecompare/imagecompare.component.d.ts +67 -0
  1295. package/imagecompare/imagecompare.module.d.ts +9 -0
  1296. package/imagecompare/index.d.ts +5 -0
  1297. package/imagecompare/public-api.d.ts +2 -0
  1298. package/imagecropper/imagecropper.component.d.ts +309 -0
  1299. package/imagecropper/imagecropper.module.d.ts +8 -0
  1300. package/imagecropper/imagecropper.types.d.ts +79 -0
  1301. package/imagecropper/index.d.ts +5 -0
  1302. package/imagecropper/public-api.d.ts +4 -0
  1303. package/index.d.ts +5 -0
  1304. package/inplace/index.d.ts +5 -0
  1305. package/inplace/inplace.component.d.ts +59 -0
  1306. package/inplace/inplace.module.d.ts +8 -0
  1307. package/inplace/public-api.d.ts +2 -0
  1308. package/inputgroup/index.d.ts +5 -0
  1309. package/inputgroup/inputgroup.component.d.ts +26 -0
  1310. package/inputgroup/inputgroup.module.d.ts +8 -0
  1311. package/inputgroup/public-api.d.ts +2 -0
  1312. package/inputmask/index.d.ts +5 -0
  1313. package/inputmask/inputmask.base.d.ts +115 -0
  1314. package/inputmask/inputmask.component.d.ts +10 -0
  1315. package/inputmask/inputmask.module.d.ts +8 -0
  1316. package/inputmask/public-api.d.ts +3 -0
  1317. package/inputnumber/index.d.ts +5 -0
  1318. package/inputnumber/inputnumber.component.d.ts +132 -0
  1319. package/inputnumber/inputnumber.module.d.ts +8 -0
  1320. package/inputnumber/inputnumber.types.d.ts +7 -0
  1321. package/inputnumber/public-api.d.ts +3 -0
  1322. package/inputotp/index.d.ts +5 -0
  1323. package/inputotp/inputotp.component.d.ts +105 -0
  1324. package/inputotp/inputotp.module.d.ts +9 -0
  1325. package/inputotp/inputotp.types.d.ts +22 -0
  1326. package/inputotp/public-api.d.ts +3 -0
  1327. package/inputtext/index.d.ts +5 -0
  1328. package/inputtext/inputtext.directive.d.ts +25 -0
  1329. package/inputtext/inputtext.module.d.ts +8 -0
  1330. package/inputtext/inputtext.styles.d.ts +2 -0
  1331. package/inputtext/inputtext.types.d.ts +3 -0
  1332. package/inputtext/public-api.d.ts +5 -0
  1333. package/keyfilter/index.d.ts +5 -0
  1334. package/keyfilter/keyfilter.directive.d.ts +29 -0
  1335. package/keyfilter/keyfilter.module.d.ts +8 -0
  1336. package/keyfilter/public-api.d.ts +2 -0
  1337. package/knob/index.d.ts +5 -0
  1338. package/knob/knob.component.d.ts +94 -0
  1339. package/knob/knob.module.d.ts +8 -0
  1340. package/knob/public-api.d.ts +2 -0
  1341. package/listbox/index.d.ts +5 -0
  1342. package/listbox/listbox.component.d.ts +186 -0
  1343. package/listbox/listbox.module.d.ts +8 -0
  1344. package/listbox/public-api.d.ts +2 -0
  1345. package/menu/index.d.ts +5 -0
  1346. package/menu/menu.base.d.ts +95 -0
  1347. package/menu/menu.component.d.ts +11 -0
  1348. package/menu/menu.module.d.ts +9 -0
  1349. package/menu/public-api.d.ts +4 -0
  1350. package/menubar/index.d.ts +5 -0
  1351. package/menubar/menubar.base.d.ts +135 -0
  1352. package/menubar/menubar.component.d.ts +11 -0
  1353. package/menubar/menubar.module.d.ts +9 -0
  1354. package/menubar/public-api.d.ts +4 -0
  1355. package/message/index.d.ts +5 -0
  1356. package/message/message.component.d.ts +50 -0
  1357. package/message/message.module.d.ts +11 -0
  1358. package/message/message.types.d.ts +5 -0
  1359. package/message/messages.base.d.ts +50 -0
  1360. package/message/messages.component.d.ts +7 -0
  1361. package/message/public-api.d.ts +5 -0
  1362. package/metergroup/index.d.ts +5 -0
  1363. package/metergroup/metergroup.component.d.ts +59 -0
  1364. package/metergroup/metergroup.module.d.ts +8 -0
  1365. package/metergroup/metergroup.types.d.ts +42 -0
  1366. package/metergroup/public-api.d.ts +3 -0
  1367. package/multiselect/index.d.ts +5 -0
  1368. package/multiselect/multiselect.base.d.ts +222 -0
  1369. package/multiselect/multiselect.component.d.ts +11 -0
  1370. package/multiselect/multiselect.module.d.ts +9 -0
  1371. package/multiselect/multiselect.styles.d.ts +2 -0
  1372. package/multiselect/multiselect.types.d.ts +20 -0
  1373. package/multiselect/public-api.d.ts +5 -0
  1374. package/navbar/index.d.ts +5 -0
  1375. package/navbar/navbar.component.d.ts +172 -0
  1376. package/navbar/navbar.module.d.ts +9 -0
  1377. package/navbar/public-api.d.ts +2 -0
  1378. package/orderlist/index.d.ts +5 -0
  1379. package/orderlist/orderlist.base.d.ts +136 -0
  1380. package/orderlist/orderlist.component.d.ts +10 -0
  1381. package/orderlist/orderlist.module.d.ts +9 -0
  1382. package/orderlist/orderlist.types.d.ts +10 -0
  1383. package/orderlist/public-api.d.ts +4 -0
  1384. package/organizationchart/index.d.ts +5 -0
  1385. package/organizationchart/organizationchart.component.d.ts +76 -0
  1386. package/organizationchart/organizationchart.module.d.ts +9 -0
  1387. package/organizationchart/organizationchart.types.d.ts +10 -0
  1388. package/organizationchart/public-api.d.ts +4 -0
  1389. package/package.json +891 -3
  1390. package/paginator/index.d.ts +5 -0
  1391. package/paginator/paginator.base.d.ts +95 -0
  1392. package/paginator/paginator.component.d.ts +10 -0
  1393. package/paginator/paginator.module.d.ts +8 -0
  1394. package/paginator/paginator.types.d.ts +7 -0
  1395. package/paginator/public-api.d.ts +4 -0
  1396. package/panel/index.d.ts +5 -0
  1397. package/panel/panel.component.d.ts +51 -0
  1398. package/panel/panel.module.d.ts +10 -0
  1399. package/panel/panel.types.d.ts +2 -0
  1400. package/panel/public-api.d.ts +3 -0
  1401. package/panelmenu/index.d.ts +5 -0
  1402. package/panelmenu/panelmenu.base.d.ts +53 -0
  1403. package/panelmenu/panelmenu.component.d.ts +7 -0
  1404. package/panelmenu/panelmenu.module.d.ts +9 -0
  1405. package/panelmenu/public-api.d.ts +3 -0
  1406. package/password/index.d.ts +5 -0
  1407. package/password/password.component.d.ts +90 -0
  1408. package/password/password.module.d.ts +8 -0
  1409. package/password/password.types.d.ts +6 -0
  1410. package/password/public-api.d.ts +3 -0
  1411. package/picklist/index.d.ts +5 -0
  1412. package/picklist/list-drag.d.ts +49 -0
  1413. package/picklist/picklist.base.d.ts +217 -0
  1414. package/picklist/picklist.component.d.ts +10 -0
  1415. package/picklist/picklist.module.d.ts +9 -0
  1416. package/picklist/picklist.styles.d.ts +2 -0
  1417. package/picklist/picklist.types.d.ts +21 -0
  1418. package/picklist/public-api.d.ts +7 -0
  1419. package/popover/index.d.ts +5 -0
  1420. package/popover/popover.base.d.ts +61 -0
  1421. package/popover/popover.component.d.ts +10 -0
  1422. package/popover/popover.module.d.ts +9 -0
  1423. package/popover/public-api.d.ts +3 -0
  1424. package/presets/index.d.ts +5 -0
  1425. package/presets/public-api.d.ts +2 -0
  1426. package/progressbar/index.d.ts +5 -0
  1427. package/progressbar/progressbar.component.d.ts +62 -0
  1428. package/progressbar/progressbar.module.d.ts +8 -0
  1429. package/progressbar/progressbar.types.d.ts +16 -0
  1430. package/progressbar/public-api.d.ts +3 -0
  1431. package/progressspinner/index.d.ts +5 -0
  1432. package/progressspinner/progressspinner.component.d.ts +50 -0
  1433. package/progressspinner/progressspinner.module.d.ts +8 -0
  1434. package/progressspinner/progressspinner.types.d.ts +9 -0
  1435. package/progressspinner/public-api.d.ts +3 -0
  1436. package/public-api.d.ts +2 -0
  1437. package/radiobutton/index.d.ts +5 -0
  1438. package/radiobutton/public-api.d.ts +6 -0
  1439. package/radiobutton/radio-registry.d.ts +23 -0
  1440. package/radiobutton/radiobutton.component.d.ts +57 -0
  1441. package/radiobutton/radiobutton.module.d.ts +8 -0
  1442. package/radiobutton/radiobutton.styles.d.ts +2 -0
  1443. package/radiobutton/radiobutton.types.d.ts +4 -0
  1444. package/rating/index.d.ts +5 -0
  1445. package/rating/public-api.d.ts +3 -0
  1446. package/rating/rating.component.d.ts +47 -0
  1447. package/rating/rating.module.d.ts +8 -0
  1448. package/rating/rating.types.d.ts +4 -0
  1449. package/result/index.d.ts +5 -0
  1450. package/result/public-api.d.ts +2 -0
  1451. package/result/result.component.d.ts +39 -0
  1452. package/result/result.module.d.ts +8 -0
  1453. package/ripple/index.d.ts +5 -0
  1454. package/ripple/public-api.d.ts +2 -0
  1455. package/ripple/ripple.directive.d.ts +15 -0
  1456. package/ripple/ripple.module.d.ts +8 -0
  1457. package/ripple/ripple.styles.d.ts +2 -0
  1458. package/schematics/collection.json +21 -0
  1459. package/schematics/core/carousel.cjs +70 -0
  1460. package/schematics/core/catalog.cjs +206 -0
  1461. package/schematics/core/chart/format.cjs +68 -0
  1462. package/schematics/core/chart/index.cjs +32 -0
  1463. package/schematics/core/chart/kinds.cjs +1355 -0
  1464. package/schematics/core/chart/model.cjs +717 -0
  1465. package/schematics/core/chart/more.cjs +317 -0
  1466. package/schematics/core/chart/paths.cjs +170 -0
  1467. package/schematics/core/chart/scale.cjs +63 -0
  1468. package/schematics/core/color.cjs +106 -0
  1469. package/schematics/core/colorpicker.cjs +79 -0
  1470. package/schematics/core/compat.cjs +152 -0
  1471. package/schematics/core/config.cjs +172 -0
  1472. package/schematics/core/date.cjs +346 -0
  1473. package/schematics/core/datepicker.cjs +530 -0
  1474. package/schematics/core/dock.cjs +16 -0
  1475. package/schematics/core/editor.cjs +281 -0
  1476. package/schematics/core/errorpage.cjs +52 -0
  1477. package/schematics/core/excel.cjs +826 -0
  1478. package/schematics/core/exporters.cjs +249 -0
  1479. package/schematics/core/families.cjs +1758 -0
  1480. package/schematics/core/fileupload.cjs +54 -0
  1481. package/schematics/core/flow/changes.cjs +215 -0
  1482. package/schematics/core/flow/edges.cjs +95 -0
  1483. package/schematics/core/flow/export.cjs +236 -0
  1484. package/schematics/core/flow/geometry.cjs +338 -0
  1485. package/schematics/core/flow/graph.cjs +338 -0
  1486. package/schematics/core/flow/history.cjs +109 -0
  1487. package/schematics/core/flow/index.cjs +29 -0
  1488. package/schematics/core/flow/interaction.cjs +264 -0
  1489. package/schematics/core/flow/layout.cjs +592 -0
  1490. package/schematics/core/flow/paths.cjs +268 -0
  1491. package/schematics/core/flow/text.cjs +74 -0
  1492. package/schematics/core/flow/types.cjs +7 -0
  1493. package/schematics/core/flow/viewport.cjs +151 -0
  1494. package/schematics/core/i18n.cjs +85 -0
  1495. package/schematics/core/imagecompare.cjs +32 -0
  1496. package/schematics/core/imagecropper.cjs +515 -0
  1497. package/schematics/core/index.cjs +55 -0
  1498. package/schematics/core/inputotp.cjs +56 -0
  1499. package/schematics/core/knob.cjs +114 -0
  1500. package/schematics/core/mask.cjs +122 -0
  1501. package/schematics/core/menu.cjs +88 -0
  1502. package/schematics/core/number.cjs +141 -0
  1503. package/schematics/core/organizationchart.cjs +91 -0
  1504. package/schematics/core/overrides.cjs +179 -0
  1505. package/schematics/core/picklist.cjs +262 -0
  1506. package/schematics/core/select.cjs +172 -0
  1507. package/schematics/core/splitter.cjs +69 -0
  1508. package/schematics/core/table.cjs +183 -0
  1509. package/schematics/core/terminal.cjs +34 -0
  1510. package/schematics/core/thai/buddhist.cjs +135 -0
  1511. package/schematics/core/thai/locale.cjs +654 -0
  1512. package/schematics/core/thai/text.cjs +173 -0
  1513. package/schematics/core/thai/thai-id.cjs +26 -0
  1514. package/schematics/core/tokens.cjs +335 -0
  1515. package/schematics/core/tree.cjs +144 -0
  1516. package/schematics/core/validation.cjs +46 -0
  1517. package/schematics/from-primeng/index.cjs +221 -0
  1518. package/schematics/from-primeng/mapping.cjs +195 -0
  1519. package/schematics/from-primeng/schema.cjs +2 -0
  1520. package/schematics/from-primeng/schema.json +17 -0
  1521. package/schematics/migration.json +4 -0
  1522. package/schematics/ng-add/index.cjs +318 -0
  1523. package/schematics/ng-add/schema.cjs +2 -0
  1524. package/schematics/ng-add/schema.json +325 -0
  1525. package/schematics/utils/ast.cjs +185 -0
  1526. package/schematics/utils/workspace.cjs +115 -0
  1527. package/scroller/index.d.ts +5 -0
  1528. package/scroller/public-api.d.ts +5 -0
  1529. package/scroller/scroller.component.d.ts +135 -0
  1530. package/scroller/scroller.module.d.ts +8 -0
  1531. package/scrollpanel/index.d.ts +5 -0
  1532. package/scrollpanel/public-api.d.ts +2 -0
  1533. package/scrollpanel/scrollpanel.component.d.ts +27 -0
  1534. package/scrollpanel/scrollpanel.module.d.ts +8 -0
  1535. package/select/index.d.ts +5 -0
  1536. package/select/public-api.d.ts +6 -0
  1537. package/select/select.base.d.ts +217 -0
  1538. package/select/select.component.d.ts +11 -0
  1539. package/select/select.module.d.ts +8 -0
  1540. package/select/select.styles.d.ts +2 -0
  1541. package/select/select.types.d.ts +9 -0
  1542. package/selectbutton/index.d.ts +5 -0
  1543. package/selectbutton/public-api.d.ts +3 -0
  1544. package/selectbutton/selectbutton.component.d.ts +70 -0
  1545. package/selectbutton/selectbutton.module.d.ts +9 -0
  1546. package/selectbutton/selectbutton.types.d.ts +9 -0
  1547. package/sitefooter/index.d.ts +5 -0
  1548. package/sitefooter/public-api.d.ts +2 -0
  1549. package/sitefooter/sitefooter.component.d.ts +69 -0
  1550. package/sitefooter/sitefooter.module.d.ts +9 -0
  1551. package/skeleton/index.d.ts +5 -0
  1552. package/skeleton/public-api.d.ts +3 -0
  1553. package/skeleton/skeleton.component.d.ts +22 -0
  1554. package/skeleton/skeleton.module.d.ts +8 -0
  1555. package/skeleton/skeleton.types.d.ts +2 -0
  1556. package/slider/index.d.ts +5 -0
  1557. package/slider/public-api.d.ts +2 -0
  1558. package/slider/slider.component.d.ts +79 -0
  1559. package/slider/slider.module.d.ts +8 -0
  1560. package/splitbutton/index.d.ts +5 -0
  1561. package/splitbutton/public-api.d.ts +2 -0
  1562. package/splitbutton/splitbutton.component.d.ts +75 -0
  1563. package/splitbutton/splitbutton.module.d.ts +8 -0
  1564. package/splitter/index.d.ts +5 -0
  1565. package/splitter/public-api.d.ts +4 -0
  1566. package/splitter/splitter-panel.component.d.ts +20 -0
  1567. package/splitter/splitter.component.d.ts +109 -0
  1568. package/splitter/splitter.module.d.ts +10 -0
  1569. package/splitter/splitter.types.d.ts +8 -0
  1570. package/stepper/index.d.ts +5 -0
  1571. package/stepper/public-api.d.ts +3 -0
  1572. package/stepper/stepper.base.d.ts +200 -0
  1573. package/stepper/stepper.component.d.ts +41 -0
  1574. package/stepper/stepper.module.d.ts +9 -0
  1575. package/steps/index.d.ts +5 -0
  1576. package/steps/public-api.d.ts +3 -0
  1577. package/steps/steps.base.d.ts +52 -0
  1578. package/steps/steps.component.d.ts +7 -0
  1579. package/steps/steps.module.d.ts +8 -0
  1580. package/table/index.d.ts +5 -0
  1581. package/table/public-api.d.ts +9 -0
  1582. package/table/table-celleditor.component.d.ts +14 -0
  1583. package/table/table-filter.component.d.ts +11 -0
  1584. package/table/table.base.d.ts +410 -0
  1585. package/table/table.celleditor.d.ts +20 -0
  1586. package/table/table.component.d.ts +12 -0
  1587. package/table/table.directives.d.ts +330 -0
  1588. package/table/table.filter.d.ts +131 -0
  1589. package/table/table.module.d.ts +12 -0
  1590. package/table/table.types.d.ts +180 -0
  1591. package/tabmenu/index.d.ts +5 -0
  1592. package/tabmenu/public-api.d.ts +2 -0
  1593. package/tabs/index.d.ts +5 -0
  1594. package/tabs/public-api.d.ts +8 -0
  1595. package/tabs/tabmenu.base.d.ts +59 -0
  1596. package/tabs/tabmenu.component.d.ts +10 -0
  1597. package/tabs/tabmenu.module.d.ts +9 -0
  1598. package/tabs/tabs.component.d.ts +147 -0
  1599. package/tabs/tabs.module.d.ts +10 -0
  1600. package/tabs/tabs.styles.d.ts +2 -0
  1601. package/tabs/tabs.types.d.ts +21 -0
  1602. package/tag/index.d.ts +5 -0
  1603. package/tag/public-api.d.ts +3 -0
  1604. package/tag/tag.component.d.ts +24 -0
  1605. package/tag/tag.module.d.ts +8 -0
  1606. package/tag/tag.types.d.ts +2 -0
  1607. package/terminal/index.d.ts +5 -0
  1608. package/terminal/public-api.d.ts +5 -0
  1609. package/terminal/terminal.component.d.ts +58 -0
  1610. package/terminal/terminal.module.d.ts +8 -0
  1611. package/terminal/terminal.service.d.ts +20 -0
  1612. package/textarea/index.d.ts +5 -0
  1613. package/textarea/public-api.d.ts +2 -0
  1614. package/textarea/textarea.directive.d.ts +33 -0
  1615. package/textarea/textarea.module.d.ts +8 -0
  1616. package/thai/index.d.ts +5 -0
  1617. package/thai/public-api.d.ts +3 -0
  1618. package/thai/thai.module.d.ts +8 -0
  1619. package/thai/thai.pipes.d.ts +57 -0
  1620. package/theme/_api.scss +71 -0
  1621. package/theme/_color.scss +153 -0
  1622. package/theme/_data.scss +9283 -0
  1623. package/theme/_index.scss +424 -0
  1624. package/theme/_version.scss +2 -0
  1625. package/themes/arun-blue/theme.css +1446 -0
  1626. package/themes/arun-green/theme.css +1446 -0
  1627. package/themes/arun-orange/theme.css +1445 -0
  1628. package/themes/arun-purple/theme.css +1446 -0
  1629. package/themes/md-dark-deeppurple/theme.css +1309 -0
  1630. package/themes/md-dark-indigo/theme.css +1309 -0
  1631. package/themes/md-light-deeppurple/theme.css +1418 -0
  1632. package/themes/md-light-indigo/theme.css +1418 -0
  1633. package/themes/ratri-blue/theme.css +1309 -0
  1634. package/themes/ratri-green/theme.css +1309 -0
  1635. package/themes/ratri-orange/theme.css +1309 -0
  1636. package/themes/ratri-purple/theme.css +1309 -0
  1637. package/themes/sayan-blue/theme.css +1309 -0
  1638. package/themes/sayan-green/theme.css +1309 -0
  1639. package/themes/sayan-orange/theme.css +1309 -0
  1640. package/themes/sayan-purple/theme.css +1309 -0
  1641. package/themes/sila-dark-blue/theme.css +1309 -0
  1642. package/themes/sila-dark-indigo/theme.css +1309 -0
  1643. package/themes/sila-dark-purple/theme.css +1309 -0
  1644. package/themes/sila-dark-teal/theme.css +1309 -0
  1645. package/themes/sila-light-blue/theme.css +1446 -0
  1646. package/themes/sila-light-indigo/theme.css +1446 -0
  1647. package/themes/sila-light-purple/theme.css +1446 -0
  1648. package/themes/sila-light-teal/theme.css +1446 -0
  1649. package/themes/sila-light-wira/theme.css +1446 -0
  1650. package/tieredmenu/index.d.ts +5 -0
  1651. package/tieredmenu/public-api.d.ts +2 -0
  1652. package/tieredmenu/tieredmenu.component.d.ts +90 -0
  1653. package/tieredmenu/tieredmenu.module.d.ts +8 -0
  1654. package/timeline/index.d.ts +5 -0
  1655. package/timeline/public-api.d.ts +3 -0
  1656. package/timeline/timeline.base.d.ts +36 -0
  1657. package/timeline/timeline.component.d.ts +7 -0
  1658. package/timeline/timeline.module.d.ts +9 -0
  1659. package/toast/index.d.ts +5 -0
  1660. package/toast/message.service.d.ts +19 -0
  1661. package/toast/public-api.d.ts +5 -0
  1662. package/toast/toast.base.d.ts +84 -0
  1663. package/toast/toast.component.d.ts +10 -0
  1664. package/toast/toast.module.d.ts +9 -0
  1665. package/toast/toast.types.d.ts +28 -0
  1666. package/togglebutton/index.d.ts +5 -0
  1667. package/togglebutton/public-api.d.ts +3 -0
  1668. package/togglebutton/togglebutton.component.d.ts +56 -0
  1669. package/togglebutton/togglebutton.module.d.ts +8 -0
  1670. package/togglebutton/togglebutton.types.d.ts +4 -0
  1671. package/toggleswitch/index.d.ts +5 -0
  1672. package/toggleswitch/public-api.d.ts +3 -0
  1673. package/toggleswitch/toggleswitch.component.d.ts +52 -0
  1674. package/toggleswitch/toggleswitch.module.d.ts +8 -0
  1675. package/toggleswitch/toggleswitch.types.d.ts +4 -0
  1676. package/toolbar/index.d.ts +5 -0
  1677. package/toolbar/public-api.d.ts +2 -0
  1678. package/toolbar/toolbar.component.d.ts +29 -0
  1679. package/toolbar/toolbar.module.d.ts +9 -0
  1680. package/tooltip/index.d.ts +5 -0
  1681. package/tooltip/public-api.d.ts +3 -0
  1682. package/tooltip/tooltip.directive.d.ts +87 -0
  1683. package/tooltip/tooltip.module.d.ts +8 -0
  1684. package/tooltip/tooltip.styles.d.ts +2 -0
  1685. package/tooltip/tooltip.types.d.ts +14 -0
  1686. package/tree/index.d.ts +5 -0
  1687. package/tree/public-api.d.ts +2 -0
  1688. package/tree/tree.component.d.ts +149 -0
  1689. package/tree/tree.module.d.ts +8 -0
  1690. package/treeselect/index.d.ts +5 -0
  1691. package/treeselect/public-api.d.ts +2 -0
  1692. package/treeselect/treeselect.component.d.ts +140 -0
  1693. package/treeselect/treeselect.module.d.ts +8 -0
  1694. package/utils/_index.scss +532 -0
  1695. package/utils/_palettes.scss +23 -0
  1696. package/utils/utils.css +9280 -0
  1697. package/utils/utils.min.css +1 -0
  1698. package/validation/field-error.component.d.ts +39 -0
  1699. package/validation/index.d.ts +5 -0
  1700. package/validation/public-api.d.ts +3 -0
  1701. package/validation/validation.module.d.ts +9 -0
  1702. package/validation/validators.d.ts +33 -0
@@ -0,0 +1,3201 @@
1
+ import { DOCUMENT, NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { TemplateRef, EventEmitter, inject, ChangeDetectorRef, ElementRef, Directive, Input, Output, ContentChildren, ContentChild, InjectionToken, forwardRef, Component, ViewEncapsulation, ChangeDetectionStrategy, HostBinding, HostListener, NgZone, NgModule } from '@angular/core';
4
+ import { Subject } from 'rxjs';
5
+ import { ɵtoBool, WU_VERSION_INFO, WuConfig, ɵrefreshOnTranslation, ɵassertSupportedAngular, ɵWU_SKIP_VERSION_CHECK, ɵsize, ɵfindTemplate, WuTemplate, ɵWuStyleLoader, ɵWuPopup } from '@wirabyte/ui/config';
6
+ import { optionField, EXCEL_MIME, buildExcel, excelSheetFromRows, sameValue, filterGlobal, filterColumns, sortRows, pageInfo } from '@wirabyte/ui/core';
7
+ import { WuPaginator } from '@wirabyte/ui/paginator';
8
+ import { ɵWU_CHECKBOX_CSS } from '@wirabyte/ui/checkbox';
9
+ import { ɵWU_RADIOBUTTON_CSS } from '@wirabyte/ui/radiobutton';
10
+ import { ɵWU_BUTTON_CSS, ɵbuttonClass } from '@wirabyte/ui/button';
11
+ import { ɵWU_INPUTTEXT_CSS } from '@wirabyte/ui/inputtext';
12
+
13
+ const asTemplate$1 = (v) => (v instanceof TemplateRef ? v : null);
14
+ const toInt = (v, fallback) => (Number.isFinite(Number(v)) && v !== null && v !== '' ? Math.floor(Number(v)) : fallback);
15
+ /**
16
+ * What wu-table does, shared by the v1 and v2/v3 templates (they differ only in control flow and era class names).
17
+ *
18
+ * The data flow is filter (global search, column filters) → sort → page, all in the browser; with `lazy` the table
19
+ * only reports what to load (`onLazyLoad`) and shows `value` as it is. Body rows come from the app's own templates
20
+ * (`body`, `header`, `caption`, `emptymessage` …, as `wuTemplate="body"` / `pTemplate="body"` or `#body`), so any
21
+ * markup and components fit in the cells.
22
+ */
23
+ class ɵWuTableBase {
24
+ // ---------- data ----------
25
+ set value(v) {
26
+ this._valueRef = Array.isArray(v) ? v : null;
27
+ this._value = v ? [...v] : [];
28
+ this.process();
29
+ }
30
+ get value() { return this._value; }
31
+ // ---------- paging ----------
32
+ set paginator(v) { this._paginator = ɵtoBool(v); this.process(); }
33
+ get paginator() { return this._paginator; }
34
+ set rows(v) { this._rows = Math.max(1, toInt(v, 10)); this.process(); }
35
+ get rows() { return this._rows; }
36
+ /** Index of the first row shown. Two-way: `[(first)]`. */
37
+ set first(v) { this._first = Math.max(0, toInt(v, 0)); this.process(); }
38
+ get first() { return this._first; }
39
+ set showCurrentPageReport(v) { this._showReport = ɵtoBool(v); }
40
+ get showCurrentPageReport() { return this._showReport; }
41
+ set alwaysShowPaginator(v) { this._alwaysPaginator = v === undefined || ɵtoBool(v); }
42
+ get alwaysShowPaginator() { return this._alwaysPaginator; }
43
+ /** Lazy tables: the number of rows on the server. */
44
+ set totalRecords(v) { this._totalInput = v === null || v === undefined || v === '' ? null : Math.max(0, toInt(v, 0)); }
45
+ // ---------- lazy loading ----------
46
+ /** The server pages, sorts and filters: the table emits `onLazyLoad` and shows `value` as given. */
47
+ set lazy(v) { this._lazy = ɵtoBool(v); this.process(); }
48
+ get lazy() { return this._lazy; }
49
+ set lazyLoadOnInit(v) { this._lazyOnInit = v === undefined || ɵtoBool(v); }
50
+ set loading(v) { this._loading = ɵtoBool(v); }
51
+ get loading() { return this._loading; }
52
+ /** Show the spinner over the table while loading. Default true (a `loadingbody` template replaces it). */
53
+ set showLoader(v) { this._showLoader = v === undefined || ɵtoBool(v); }
54
+ get showLoader() { return this._showLoader; }
55
+ // ---------- sorting ----------
56
+ set sortField(v) { this._sortField = v || null; this.process(); }
57
+ get sortField() { return this._sortField; }
58
+ set sortOrder(v) { this._sortOrder = toInt(v, 1) < 0 ? -1 : 1; this.process(); }
59
+ get sortOrder() { return this._sortOrder; }
60
+ set multiSortMeta(v) { this._multi = v ? [...v] : []; this.process(); }
61
+ get multiSortMeta() { return this._multi; }
62
+ /** A third click on a sorted column removes its sort. Default true; `[removableSort]="false"` keeps toggling. */
63
+ set removableSort(v) { this._removable = v === undefined || v === null || ɵtoBool(v); }
64
+ set defaultSortOrder(v) { this._defaultOrder = toInt(v, 1) < 0 ? -1 : 1; }
65
+ /** Go back to the first page after sorting. Default true. */
66
+ set resetPageOnSort(v) { this._resetOnSort = v === undefined || ɵtoBool(v); }
67
+ /** Wait this long after typing before searching, in ms. `0` searches at once. Default: the app's `delays.filter` (0). */
68
+ set filterDelay(v) { this._filterDelay = v === null || v === undefined || v === '' ? null : Math.max(0, toInt(v, 0)); }
69
+ get filterDelay() { return this._filterDelay ?? this.config.delays.filter; }
70
+ set filters(v) { this._filters = { ...(v || {}) }; this.process(); }
71
+ get filters() { return this._filters; }
72
+ /**
73
+ * Two-way: `[(selection)]`. A row in single mode, an array in multiple mode. Typed `any` so app fields keep their
74
+ * own types (`selected: Student[]`).
75
+ */
76
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
77
+ set selection(v) { this._selection = v; this.notify(); }
78
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
79
+ get selection() { return this._selection; }
80
+ /** The header checkbox selects only the rows of the current page. */
81
+ set selectionPageOnly(v) { this._pageOnly = ɵtoBool(v); }
82
+ /** Two-way: `[(contextMenuSelection)]`, the row last right-clicked (it gets an outline). */
83
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
84
+ set contextMenuSelection(v) { this._ctxSelection = v; this.notify(); }
85
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
86
+ get contextMenuSelection() { return this._ctxSelection; }
87
+ set showGridlines(v) { this._gridlines = ɵtoBool(v); }
88
+ get showGridlines() { return this._gridlines || /(^|\s)p-datatable-gridlines(\s|$)/.test(this.styleClass || ''); }
89
+ set stripedRows(v) { this._striped = ɵtoBool(v); }
90
+ get stripedRows() { return this._striped || /(^|\s)p-datatable-striped(\s|$)/.test(this.styleClass || ''); }
91
+ set rowHover(v) { this._rowHover = ɵtoBool(v); }
92
+ get rowHover() { return this._rowHover || !!this.selectionMode; }
93
+ /** Fixed-height body that scrolls under a sticky header: `[scrollable]="true" scrollHeight="400px"` (or `"flex"`). */
94
+ set scrollable(v) { this._scrollable = ɵtoBool(v); }
95
+ get scrollable() { return this._scrollable || !!this.scrollHeight; }
96
+ set breakpoint(v) { this._breakpoint = v || '960px'; this.watchStack(); }
97
+ // ---------- row expansion ----------
98
+ /** Rows open under their `rowexpansion` template, by `dataKey` value: `{ 7: true }`. Kept up to date in place. */
99
+ set expandedRowKeys(v) { this._expandedKeys = v || {}; this.notify(); }
100
+ get expandedRowKeys() { return this._expandedKeys; }
101
+ /** Header cells marked `wuResizableColumn` get a grip on their right edge. */
102
+ set resizableColumns(v) { this._resizable = ɵtoBool(v); }
103
+ get resizableColumns() { return this._resizable; }
104
+ /** Header cells marked `wuReorderableColumn` can be dragged sideways; `columns` changes in place. */
105
+ set reorderableColumns(v) { this._reorderable = ɵtoBool(v); }
106
+ get reorderableColumns() { return this._reorderable; }
107
+ // ---------- selection extras ----------
108
+ /** A click picks only that row and Ctrl / ⌘ + click adds (true), or each click toggles (false, default). Shift + click picks a range. */
109
+ set metaKeySelection(v) { this._metaKey = ɵtoBool(v); }
110
+ // ---------- custom sort ----------
111
+ /** The app sorts: `(sortFunction)` gets the rows to sort in place. */
112
+ set customSort(v) { this._customSort = ɵtoBool(v); this.process(); }
113
+ // ---------- column resize and reorder ----------
114
+ /**
115
+ * Drag on a header cell's grip. On the first drag every column keeps its current width (fixed layout), so the
116
+ * other columns do not jump.
117
+ */
118
+ startColumnResize(th, event) {
119
+ if (event.button !== 0)
120
+ return;
121
+ event.preventDefault();
122
+ event.stopPropagation();
123
+ const table = th.closest('table');
124
+ if (!table)
125
+ return;
126
+ const row = th.parentElement;
127
+ if (table.style.tableLayout !== 'fixed') {
128
+ const cells = Array.from(row.children);
129
+ const widths = cells.map((c) => c.getBoundingClientRect().width);
130
+ cells.forEach((c, i) => (c.style.width = `${widths[i]}px`));
131
+ table.style.width = `${widths.reduce((a, b) => a + b, 0)}px`;
132
+ table.style.minWidth = '0';
133
+ table.style.tableLayout = 'fixed';
134
+ }
135
+ const next = th.nextElementSibling;
136
+ const startX = event.clientX;
137
+ const w0 = th.getBoundingClientRect().width;
138
+ const n0 = next ? next.getBoundingClientRect().width : 0;
139
+ const t0 = table.getBoundingClientRect().width;
140
+ const min = 24;
141
+ let delta = 0;
142
+ th.classList.add('wu-column-resizing');
143
+ const move = (e) => {
144
+ delta = e.clientX - startX;
145
+ if (this.columnResizeMode === 'expand' || !next) {
146
+ delta = Math.max(min - w0, delta);
147
+ th.style.width = `${w0 + delta}px`;
148
+ table.style.width = `${t0 + delta}px`;
149
+ }
150
+ else {
151
+ delta = Math.max(min - w0, Math.min(n0 - min, delta));
152
+ th.style.width = `${w0 + delta}px`;
153
+ next.style.width = `${n0 - delta}px`;
154
+ }
155
+ };
156
+ const up = () => {
157
+ this.doc.removeEventListener('pointermove', move, true);
158
+ this.doc.removeEventListener('pointerup', up, true);
159
+ this.doc.removeEventListener('pointercancel', up, true);
160
+ th.classList.remove('wu-column-resizing');
161
+ // The click that ends a resize must not sort the column. Chromium sends it to the grip (which ignores it), but
162
+ // Firefox sends it to the header cell when the pointer is let go beside the grip.
163
+ const swallow = (e) => {
164
+ e.stopPropagation();
165
+ e.preventDefault();
166
+ };
167
+ th.addEventListener('click', swallow, { capture: true, once: true });
168
+ setTimeout(() => th.removeEventListener('click', swallow, { capture: true }), 0);
169
+ if (delta)
170
+ this.onColResize.emit({ element: th, delta });
171
+ };
172
+ this.doc.addEventListener('pointermove', move, true);
173
+ this.doc.addEventListener('pointerup', up, true);
174
+ this.doc.addEventListener('pointercancel', up, true);
175
+ }
176
+ /** Drag a header cell sideways to move its column (a line shows where it lands). */
177
+ startColumnDrag(th, event) {
178
+ if (event.button !== 0 || !this._reorderable)
179
+ return;
180
+ const row = th.parentElement;
181
+ const startX = event.clientX;
182
+ const startY = event.clientY;
183
+ let dragging = false;
184
+ let target = null;
185
+ const cells = () => Array.from(row.children).filter((c) => c.classList.contains('wu-reorderable-column'));
186
+ const dragIndex = cells().indexOf(th);
187
+ const clear = () => row.querySelectorAll('.wu-col-drop-before, .wu-col-drop-after').forEach((c) => c.classList.remove('wu-col-drop-before', 'wu-col-drop-after'));
188
+ // Firefox starts selecting the header's text on the press and then never reports the release, so the drop never
189
+ // comes. Holding back the press's default stops that (the click still follows and still sorts when the pointer
190
+ // did not move); the header is focused by hand, as the press would have done. A native drag or selection that
191
+ // starts anyway is refused while the press lasts.
192
+ event.preventDefault();
193
+ th.focus({ preventScroll: true });
194
+ const noNative = (e) => e.preventDefault();
195
+ this.doc.addEventListener('dragstart', noNative, true);
196
+ this.doc.addEventListener('selectstart', noNative, true);
197
+ const move = (e) => {
198
+ if (!dragging && Math.hypot(e.clientX - startX, e.clientY - startY) < 6)
199
+ return;
200
+ if (!dragging) {
201
+ dragging = true;
202
+ th.classList.add('wu-column-dragging');
203
+ }
204
+ e.preventDefault();
205
+ clear();
206
+ target = null;
207
+ cells().forEach((c, i) => {
208
+ const b = c.getBoundingClientRect();
209
+ if (e.clientX >= b.left && e.clientX <= b.right) {
210
+ const after = e.clientX > b.left + b.width / 2;
211
+ target = { index: i, after };
212
+ c.classList.add(after ? 'wu-col-drop-after' : 'wu-col-drop-before');
213
+ }
214
+ });
215
+ };
216
+ const up = () => {
217
+ this.doc.removeEventListener('pointermove', move, true);
218
+ this.doc.removeEventListener('pointerup', up, true);
219
+ this.doc.removeEventListener('pointercancel', up, true);
220
+ this.doc.removeEventListener('dragstart', noNative, true);
221
+ this.doc.removeEventListener('selectstart', noNative, true);
222
+ clear();
223
+ th.classList.remove('wu-column-dragging');
224
+ if (!dragging)
225
+ return;
226
+ // The click that ends the drag must not sort the column.
227
+ const swallow = (e) => {
228
+ e.stopPropagation();
229
+ e.preventDefault();
230
+ };
231
+ th.addEventListener('click', swallow, { capture: true, once: true });
232
+ setTimeout(() => th.removeEventListener('click', swallow, { capture: true }), 0);
233
+ const t = target;
234
+ if (!t || dragIndex < 0)
235
+ return;
236
+ let dropIndex = t.index + (t.after ? 1 : 0);
237
+ if (dropIndex > dragIndex)
238
+ dropIndex--;
239
+ if (dropIndex === dragIndex)
240
+ return;
241
+ const cols = this.columns;
242
+ if (Array.isArray(cols) && cols.length > Math.max(dragIndex, dropIndex)) {
243
+ const [moved] = cols.splice(dragIndex, 1);
244
+ cols.splice(dropIndex, 0, moved);
245
+ }
246
+ this.onColReorder.emit({ dragIndex, dropIndex, columns: Array.isArray(cols) ? cols : [] });
247
+ this.notify();
248
+ };
249
+ this.doc.addEventListener('pointermove', move, true);
250
+ this.doc.addEventListener('pointerup', up, true);
251
+ this.doc.addEventListener('pointercancel', up, true);
252
+ }
253
+ // ---------- cell editing ----------
254
+ isCellEditing(cell) {
255
+ return !!this.editing && this.editing.cell === cell;
256
+ }
257
+ /** Opens a cell's `input` template (`wu-cellEditor`). Another open cell closes first. */
258
+ startCellEdit(cell, data, field, index, event) {
259
+ if (this.editing?.cell === cell)
260
+ return;
261
+ if (this.editing)
262
+ this.completeCellEdit(event);
263
+ this.editing = { cell, data, field, index };
264
+ this.onEditInit.emit({ field, data, index, originalEvent: event });
265
+ this.notify();
266
+ this.cdr.detectChanges();
267
+ const focusable = cell.querySelector('input, textarea, select, [tabindex]:not([tabindex="-1"]), button');
268
+ focusable?.focus();
269
+ if (focusable instanceof HTMLInputElement) {
270
+ // Select the text once ngModel has written it (a microtask) and the view shows it (the next check); not if the
271
+ // user has already typed.
272
+ let typed = false;
273
+ const onInput = () => (typed = true);
274
+ focusable.addEventListener('input', onInput, { once: true });
275
+ Promise.resolve().then(() => setTimeout(() => {
276
+ focusable.removeEventListener('input', onInput);
277
+ if (!typed && this.editing?.cell === cell && this.doc.activeElement === focusable)
278
+ focusable.select?.();
279
+ }));
280
+ }
281
+ const outside = (e) => {
282
+ const t = e.target;
283
+ if (this.editing && t && !this.editing.cell.contains(t))
284
+ this.completeCellEdit(e);
285
+ };
286
+ this.stopOutside?.();
287
+ this.doc.addEventListener('pointerdown', outside, true);
288
+ this.stopOutside = () => this.doc.removeEventListener('pointerdown', outside, true);
289
+ }
290
+ /** Keeps the edited value (Enter, Tab, a click elsewhere); with `next`, Tab moves to the next editable cell. */
291
+ completeCellEdit(event, next) {
292
+ const e = this.editing;
293
+ if (!e)
294
+ return;
295
+ this.closeCellEditor();
296
+ this.onEditComplete.emit({ field: e.field, data: e.data, index: e.index, originalEvent: event });
297
+ this.notify();
298
+ if (next) {
299
+ const cells = Array.from(this.tableHost.querySelectorAll('.wu-editable-column'));
300
+ const at = cells.indexOf(e.cell);
301
+ const target = cells[at + next];
302
+ if (target)
303
+ target.click();
304
+ else
305
+ e.cell.focus();
306
+ }
307
+ else {
308
+ e.cell.focus();
309
+ }
310
+ }
311
+ /** Drops the edit (Escape). The app restores the old value in `(onEditCancel)` if it changed the row on the fly. */
312
+ cancelCellEdit(event) {
313
+ const e = this.editing;
314
+ if (!e)
315
+ return;
316
+ this.closeCellEditor();
317
+ this.onEditCancel.emit({ field: e.field, data: e.data, index: e.index, originalEvent: event });
318
+ this.notify();
319
+ e.cell.focus();
320
+ }
321
+ closeCellEditor() {
322
+ this.stopOutside?.();
323
+ this.stopOutside = null;
324
+ this.editing = null;
325
+ }
326
+ // ---------- row editing ----------
327
+ isRowEditing(row) {
328
+ const key = this.rowKey(row);
329
+ return key === null ? this.editingRows.has(row) : !!this._editingKeys[key];
330
+ }
331
+ /** The row's cell editors show their `input` templates (`pInitEditableRow`). */
332
+ initRowEdit(row) {
333
+ const key = this.rowKey(row);
334
+ if (key === null)
335
+ this.editingRows.add(row);
336
+ else
337
+ this._editingKeys[key] = true;
338
+ this.notify();
339
+ }
340
+ /** Back to the `output` templates (`pSaveEditableRow`), unless a field in the row is invalid. */
341
+ saveRowEdit(row, rowElement) {
342
+ if (rowElement && rowElement.querySelector('.ng-invalid:not(form)'))
343
+ return;
344
+ this.endRowEdit(row);
345
+ }
346
+ /** Back to the `output` templates without keeping anything (`pCancelEditableRow`). */
347
+ cancelRowEdit(row) {
348
+ this.endRowEdit(row);
349
+ }
350
+ endRowEdit(row) {
351
+ const key = this.rowKey(row);
352
+ if (key === null)
353
+ this.editingRows.delete(row);
354
+ else
355
+ delete this._editingKeys[key];
356
+ this.notify();
357
+ }
358
+ /** Rows being edited, by `dataKey` value: `{ 7: true }`. Kept up to date in place. */
359
+ set editingRowKeys(v) { this._editingKeys = v || {}; this.notify(); }
360
+ get editingRowKeys() { return this._editingKeys; }
361
+ // ---------- frozen rows ----------
362
+ /** Rows kept at the top of the body (under the header) while the rest scrolls; drawn with `frozenbody` (else `body`). */
363
+ set frozenValue(v) { this._frozenValue = v ? [...v] : []; this.notify(); }
364
+ get frozenValue() { return this._frozenValue; }
365
+ constructor() {
366
+ this.pageLinks = 5;
367
+ this.paginatorPosition = 'bottom';
368
+ this.sortMode = 'single';
369
+ /** `'separate'` (default): kept apart from the selection; `'joint'`: a right-click also selects the row. */
370
+ this.contextMenuSelectionMode = 'separate';
371
+ /** `'scroll'` (default) scrolls sideways on narrow screens; `'stack'` turns each row into a card below `breakpoint`. */
372
+ this.responsiveLayout = 'scroll';
373
+ /** `'multiple'` (default) keeps every opened row open; `'single'` closes the others. */
374
+ this.rowExpandMode = 'multiple';
375
+ this.csvSeparator = ',';
376
+ /** `'fit'` (default): the next column gives up the width; `'expand'`: the table grows. */
377
+ this.columnResizeMode = 'fit';
378
+ /** `'deepEquals'` (default: same contents count as the same row) or `'equals'` (the same object only), without `dataKey`. */
379
+ this.compareSelectionBy = 'deepEquals';
380
+ this.stateStorage = 'session';
381
+ // ---------- editing ----------
382
+ /** `'cell'` (default): a `wuEditableColumn` cell edits on click. `'row'`: rows edit as a whole with the row buttons. */
383
+ this.editMode = 'cell';
384
+ this.onPage = new EventEmitter();
385
+ this.onSort = new EventEmitter();
386
+ this.onFilter = new EventEmitter();
387
+ this.onLazyLoad = new EventEmitter();
388
+ this.onRowSelect = new EventEmitter();
389
+ this.onRowUnselect = new EventEmitter();
390
+ this.onHeaderCheckboxToggle = new EventEmitter();
391
+ this.onRowExpand = new EventEmitter();
392
+ this.onRowReorder = new EventEmitter();
393
+ this.onColResize = new EventEmitter();
394
+ this.onColReorder = new EventEmitter();
395
+ this.onEditInit = new EventEmitter();
396
+ this.onEditComplete = new EventEmitter();
397
+ this.onEditCancel = new EventEmitter();
398
+ this.sortFunction = new EventEmitter();
399
+ this.onStateSave = new EventEmitter();
400
+ this.onStateRestore = new EventEmitter();
401
+ this.onRowCollapse = new EventEmitter();
402
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
403
+ this.selectionChange = new EventEmitter();
404
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
405
+ this.contextMenuSelectionChange = new EventEmitter();
406
+ this.onContextMenuSelect = new EventEmitter();
407
+ this.firstChange = new EventEmitter();
408
+ this.rowsChange = new EventEmitter();
409
+ /** Rows after filtering and sorting (client-side), and the rows of the current page. */
410
+ this.processed = [];
411
+ this.pageRows = [];
412
+ /** Start of the current page in `processed` (client paging) or `first` (lazy). */
413
+ this.pageFirst = 0;
414
+ this.stacked = false;
415
+ this.major = WU_VERSION_INFO.major;
416
+ this.changes = new Subject();
417
+ this.globalFilter = null;
418
+ this.trackRow = (i, row) => this.rowTrackBy ? this.rowTrackBy(i, row) : this.dataKey && row && typeof row === 'object' ? row[this.dataKey] ?? row : row;
419
+ this.cdr = inject(ChangeDetectorRef);
420
+ this.doc = inject(DOCUMENT);
421
+ this.config = inject(WuConfig);
422
+ this.tableHost = inject(ElementRef).nativeElement;
423
+ this.i18n = ɵrefreshOnTranslation();
424
+ this._value = [];
425
+ this._paginator = false;
426
+ this._rows = 10;
427
+ this._first = 0;
428
+ this._showReport = false;
429
+ this._alwaysPaginator = true;
430
+ this._totalInput = null;
431
+ this._lazy = false;
432
+ this._lazyOnInit = true;
433
+ this._loading = false;
434
+ this._showLoader = true;
435
+ this._sortField = null;
436
+ this._sortOrder = 1;
437
+ this._multi = [];
438
+ this._removable = true;
439
+ this._defaultOrder = 1;
440
+ this._resetOnSort = true;
441
+ this._filterDelay = null;
442
+ this._filters = {};
443
+ this._selection = null;
444
+ this._pageOnly = false;
445
+ this._ctxSelection = null;
446
+ this._gridlines = false;
447
+ this._striped = false;
448
+ this._rowHover = false;
449
+ this._scrollable = false;
450
+ this._breakpoint = '960px';
451
+ this._expandedKeys = {};
452
+ this._valueRef = null;
453
+ this._resizable = false;
454
+ this._reorderable = false;
455
+ this._editingKeys = {};
456
+ this.editingRows = new Set();
457
+ this.editing = null;
458
+ this.stopOutside = null;
459
+ this._metaKey = false;
460
+ this._customSort = false;
461
+ this._frozenValue = [];
462
+ this.anchorIndex = -1;
463
+ this.restoringState = false;
464
+ /** Expanded rows of a table without `dataKey`. */
465
+ this.expandedRows = new Set();
466
+ this.filterTimer = null;
467
+ this.stackQuery = null;
468
+ this.onStackChange = () => {
469
+ this.stacked = !!this.stackQuery?.matches;
470
+ this.cdr.markForCheck();
471
+ };
472
+ this.initialized = false;
473
+ // ---------- internals ----------
474
+ this.globalMode = 'contains';
475
+ ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));
476
+ }
477
+ ngAfterContentInit() {
478
+ this.restoreState();
479
+ this.initialized = true;
480
+ this.watchStack();
481
+ if (this._lazy && this._lazyOnInit)
482
+ this.emitLazy();
483
+ }
484
+ /** Frozen rows sit right under the sticky header: their offset follows the header's height. */
485
+ ngAfterViewChecked() {
486
+ if (!this._frozenValue.length)
487
+ return;
488
+ const wrapper = this.tableHost.querySelector('.wu-table-wrapper');
489
+ const head = wrapper?.querySelector('thead');
490
+ const h = head ? `${head.offsetHeight}px` : '0px';
491
+ if (wrapper && wrapper.style.getPropertyValue('--_table-head-height') !== h)
492
+ wrapper.style.setProperty('--_table-head-height', h);
493
+ }
494
+ ngOnDestroy() {
495
+ this.stopOutside?.();
496
+ this.i18n.unsubscribe();
497
+ if (this.filterTimer)
498
+ clearTimeout(this.filterTimer);
499
+ this.stackQuery?.removeEventListener?.('change', this.onStackChange);
500
+ }
501
+ // ---------- what the templates read ----------
502
+ get t() {
503
+ return this.config.translation;
504
+ }
505
+ get sizeKey() {
506
+ const s = ɵsize(this.size);
507
+ if (s)
508
+ return s;
509
+ const c = this.styleClass || '';
510
+ return /(^|\s)p-datatable-sm(\s|$)/.test(c) ? 'sm' : /(^|\s)p-datatable-lg(\s|$)/.test(c) ? 'lg' : null;
511
+ }
512
+ /** Rows on the server (lazy) or after filtering (client). */
513
+ get total() {
514
+ return this._lazy ? this._totalInput ?? this._value.length : this.processed.length;
515
+ }
516
+ get hasRows() {
517
+ return this.pageRows.length > 0;
518
+ }
519
+ get isEmpty() {
520
+ return !this.pageRows.length;
521
+ }
522
+ get showMask() {
523
+ return this._loading && this._showLoader && !this.loadingBodyTemplate;
524
+ }
525
+ get showLoadingBody() {
526
+ return this._loading && !!this.loadingBodyTemplate;
527
+ }
528
+ get showPaginatorTop() {
529
+ return this._paginator && (this.paginatorPosition === 'top' || this.paginatorPosition === 'both');
530
+ }
531
+ get showPaginatorBottom() {
532
+ return this._paginator && this.paginatorPosition !== 'top';
533
+ }
534
+ get flexScroll() {
535
+ return this.scrollHeight === 'flex';
536
+ }
537
+ get wrapperMaxHeight() {
538
+ return this.scrollHeight && this.scrollHeight !== 'flex' ? this.scrollHeight : null;
539
+ }
540
+ get captionTemplate() {
541
+ return asTemplate$1(this.captionRef) || ɵfindTemplate(this.templates, 'caption');
542
+ }
543
+ get headerTemplate() {
544
+ return asTemplate$1(this.headerRef) || ɵfindTemplate(this.templates, 'header');
545
+ }
546
+ get bodyTemplate() {
547
+ return asTemplate$1(this.bodyRef) || ɵfindTemplate(this.templates, 'body');
548
+ }
549
+ get footerTemplate() {
550
+ return asTemplate$1(this.footerRef) || ɵfindTemplate(this.templates, 'footer');
551
+ }
552
+ get emptyTemplate() {
553
+ return asTemplate$1(this.emptyRef) || ɵfindTemplate(this.templates, 'emptymessage');
554
+ }
555
+ get summaryTemplate() {
556
+ return asTemplate$1(this.summaryRef) || ɵfindTemplate(this.templates, 'summary');
557
+ }
558
+ get loadingBodyTemplate() {
559
+ return asTemplate$1(this.loadingBodyRef) || ɵfindTemplate(this.templates, 'loadingbody');
560
+ }
561
+ get paginatorLeftTemplate() {
562
+ return asTemplate$1(this.paginatorLeftRef) || ɵfindTemplate(this.templates, 'paginatorleft');
563
+ }
564
+ get paginatorRightTemplate() {
565
+ return asTemplate$1(this.paginatorRightRef) || ɵfindTemplate(this.templates, 'paginatorright');
566
+ }
567
+ get colgroupTemplate() {
568
+ return asTemplate$1(this.colgroupRef) || ɵfindTemplate(this.templates, 'colgroup');
569
+ }
570
+ /** `rowexpansion`, or `expandedrow` as later templates call it. */
571
+ get rowExpansionTemplate() {
572
+ return (asTemplate$1(this.rowExpansionRef) ||
573
+ asTemplate$1(this.expandedRowRef) ||
574
+ ɵfindTemplate(this.templates, 'rowexpansion') ||
575
+ ɵfindTemplate(this.templates, 'expandedrow'));
576
+ }
577
+ get frozenBodyTemplate() {
578
+ return asTemplate$1(this.frozenBodyRef) || ɵfindTemplate(this.templates, 'frozenbody') || this.bodyTemplate;
579
+ }
580
+ /** Context of a frozen row: like the body's, with `frozen: true`. */
581
+ frozenContext(row, i) {
582
+ return { $implicit: row, rowIndex: i, columns: this.columns, editing: false, expanded: false, frozen: true };
583
+ }
584
+ get groupHeaderTemplate() {
585
+ return this.rowGroupMode === 'subheader' ? asTemplate$1(this.groupHeaderRef) || ɵfindTemplate(this.templates, 'groupheader') : null;
586
+ }
587
+ get groupFooterTemplate() {
588
+ return this.rowGroupMode === 'subheader' ? asTemplate$1(this.groupFooterRef) || ɵfindTemplate(this.templates, 'groupfooter') : null;
589
+ }
590
+ /**
591
+ * Context of the body template: `let-row let-i="rowIndex" let-columns="columns" let-expanded="expanded"`; rowIndex
592
+ * counts across pages. In `rowGroupMode="rowspan"`, `rowgroup` is true on a group's first row and `rowspan` its size.
593
+ */
594
+ rowContext(row, i) {
595
+ const spans = this.rowGroupMode === 'rowspan' && !!this.groupRowsBy;
596
+ const first = spans && this.isGroupStart(i);
597
+ return {
598
+ $implicit: row,
599
+ rowIndex: this.pageFirst + i,
600
+ columns: this.columns,
601
+ editing: this.isRowEditing(row),
602
+ expanded: this.isRowExpanded(row),
603
+ rowgroup: first,
604
+ rowspan: first ? this.groupSize(i) : undefined,
605
+ };
606
+ }
607
+ /** The row starts a new group on this page (row groups). */
608
+ isGroupStart(i) {
609
+ return i === 0 || !this.sameGroup(this.pageRows[i - 1], this.pageRows[i]);
610
+ }
611
+ /** The row ends its group on this page. */
612
+ isGroupEnd(i) {
613
+ return i === this.pageRows.length - 1 || !this.sameGroup(this.pageRows[i], this.pageRows[i + 1]);
614
+ }
615
+ /** Rows in the group starting at `i`, on this page. */
616
+ groupSize(i) {
617
+ let n = 1;
618
+ while (i + n < this.pageRows.length && this.sameGroup(this.pageRows[i], this.pageRows[i + n]))
619
+ n++;
620
+ return n;
621
+ }
622
+ get columnsContext() {
623
+ return { $implicit: this.columns, columns: this.columns };
624
+ }
625
+ // ---------- paging ----------
626
+ pageChange(e) {
627
+ const rowsChanged = e.rows !== this._rows;
628
+ this._first = e.first;
629
+ this._rows = e.rows;
630
+ this.process();
631
+ this.firstChange.emit(this._first);
632
+ if (rowsChanged)
633
+ this.rowsChange.emit(this._rows);
634
+ this.onPage.emit({ first: this._first, rows: this._rows });
635
+ this.saveStateIfKept();
636
+ if (this._lazy)
637
+ this.emitLazy();
638
+ }
639
+ // ---------- sorting ----------
640
+ sortOrderOf(field) {
641
+ if (this.sortMode === 'multiple')
642
+ return this._multi.find((m) => m.field === field)?.order ?? 0;
643
+ return this._sortField === field ? this._sortOrder : 0;
644
+ }
645
+ sortIndexOf(field) {
646
+ if (this.sortMode !== 'multiple' || this._multi.length < 2)
647
+ return 0;
648
+ return this._multi.findIndex((m) => m.field === field) + 1;
649
+ }
650
+ /** A sortable header was clicked. Ctrl / ⌘ adds a level in multiple mode. */
651
+ sortBy(field, event) {
652
+ const add = this.sortMode === 'multiple' && event.ctrlKey !== undefined && (event.ctrlKey || event.metaKey);
653
+ if (this.sortMode === 'multiple') {
654
+ const at = this._multi.findIndex((m) => m.field === field);
655
+ const cur = at >= 0 ? this._multi[at] : null;
656
+ const next = !cur ? this._defaultOrder : cur.order === this._defaultOrder ? -cur.order : this._removable ? 0 : -cur.order;
657
+ const levels = add ? this._multi.filter((m) => m.field !== field) : [];
658
+ if (next) {
659
+ if (add && at >= 0)
660
+ levels.splice(at, 0, { field, order: next });
661
+ else
662
+ levels.push({ field, order: next });
663
+ }
664
+ this._multi = levels;
665
+ this.onSort.emit({ multisortmeta: [...this._multi] });
666
+ }
667
+ else {
668
+ const same = this._sortField === field;
669
+ const next = !same ? this._defaultOrder : this._sortOrder === this._defaultOrder ? -this._sortOrder : this._removable ? 0 : -this._sortOrder;
670
+ this._sortField = next ? field : null;
671
+ this._sortOrder = next || this._defaultOrder;
672
+ this.onSort.emit({ field: this._sortField ?? undefined, order: next || undefined });
673
+ }
674
+ this.saveStateIfKept();
675
+ if (this._resetOnSort && this._first !== 0) {
676
+ this._first = 0;
677
+ this.firstChange.emit(0);
678
+ }
679
+ this.process();
680
+ if (this._lazy)
681
+ this.emitLazy();
682
+ }
683
+ // ---------- filtering ----------
684
+ /** The search box: `(input)="dt.filterGlobal($any($event.target).value, 'contains')"`. */
685
+ filterGlobal(value, matchMode = 'contains') {
686
+ if (this.filterTimer)
687
+ clearTimeout(this.filterTimer);
688
+ const run = () => {
689
+ this.filterTimer = null;
690
+ const text = value === null || value === undefined ? '' : String(value);
691
+ this.globalFilter = text.trim() ? text : null;
692
+ this.globalMode = matchMode;
693
+ this.afterFilter();
694
+ };
695
+ if (this.filterDelay)
696
+ this.filterTimer = setTimeout(run, this.filterDelay);
697
+ else
698
+ run();
699
+ }
700
+ /** One column: `dt.filter(value, 'grade', 'equals')`. An empty value removes the filter. */
701
+ filter(value, field, matchMode = 'contains') {
702
+ const next = { ...this._filters };
703
+ if (value === null || value === undefined || value === '' || (Array.isArray(value) && !value.length))
704
+ delete next[field];
705
+ else
706
+ next[field] = { value, matchMode };
707
+ this._filters = next;
708
+ this.afterFilter();
709
+ }
710
+ /** A column's rules from the filter menu, combined with `operator`; null or no rule with a value removes the filter. */
711
+ filterRules(field, rules, operator = 'and') {
712
+ const next = { ...this._filters };
713
+ const kept = (rules || []).filter((f) => f.value !== null && f.value !== undefined && f.value !== '');
714
+ if (!kept.length)
715
+ delete next[field];
716
+ else
717
+ next[field] = kept.map((f, i) => ({ ...f, operator: i === 0 ? operator : f.operator }));
718
+ this._filters = next;
719
+ this.afterFilter();
720
+ }
721
+ /** Removes search, filters and sorting, and goes to the first page. */
722
+ clear() {
723
+ this._sortField = null;
724
+ this._sortOrder = this._defaultOrder;
725
+ this._multi = [];
726
+ this._filters = {};
727
+ this.globalFilter = null;
728
+ this._first = 0;
729
+ this.process();
730
+ this.firstChange.emit(0);
731
+ if (this._lazy)
732
+ this.emitLazy();
733
+ }
734
+ /** The same as clear(). */
735
+ reset() {
736
+ this.clear();
737
+ }
738
+ // ---------- selection ----------
739
+ isSelected(row) {
740
+ const sel = this._selection;
741
+ if (sel === null || sel === undefined)
742
+ return false;
743
+ if (Array.isArray(sel))
744
+ return sel.some((s) => this.sameRow(s, row));
745
+ return this.sameRow(sel, row);
746
+ }
747
+ /** The row the context menu is open for (or was last opened for). */
748
+ isContextMenuRow(row) {
749
+ return this._ctxSelection !== null && this._ctxSelection !== undefined && this.sameRow(this._ctxSelection, row);
750
+ }
751
+ /** A right-click on a row: remember it, select it in `joint` mode, and open the context menu at the pointer. */
752
+ rowContextMenu(event, row, index) {
753
+ if (!this.contextMenu)
754
+ return;
755
+ if (this.contextMenuSelectionMode === 'joint' && this.selectionMode && !this.isSelected(row) && this.isRowSelectable(row, index)) {
756
+ this._selection = this.selectionMode === 'multiple' ? [row] : row;
757
+ this.selectionChange.emit(this._selection);
758
+ this.onRowSelect.emit({ originalEvent: event, data: row, index, type: 'row' });
759
+ }
760
+ this._ctxSelection = row;
761
+ this.contextMenuSelectionChange.emit(row);
762
+ this.onContextMenuSelect.emit({ originalEvent: event, data: row, index });
763
+ this.contextMenu.show(event);
764
+ this.notify();
765
+ }
766
+ isRowSelectable(row, index) {
767
+ return !this.rowSelectable || this.rowSelectable({ data: row, index });
768
+ }
769
+ toggleRow(row, event, index, type) {
770
+ if (!this.isRowSelectable(row, index))
771
+ return;
772
+ const multiple = (this.selectionMode === 'multiple' && type !== 'radio') || type === 'checkbox';
773
+ if (!this.selectionMode && type === 'row')
774
+ return;
775
+ const was = this.isSelected(row);
776
+ const mouse = event;
777
+ const meta = !!(mouse && (mouse.ctrlKey || mouse.metaKey));
778
+ const pageIndex = index === undefined ? -1 : index - this.pageFirst;
779
+ if (type === 'row' && multiple && mouse && mouse.shiftKey && this.anchorIndex >= 0 && pageIndex >= 0) {
780
+ // Shift + click: every row between the last click and this one.
781
+ const [a, b] = this.anchorIndex < pageIndex ? [this.anchorIndex, pageIndex] : [pageIndex, this.anchorIndex];
782
+ const range = this.pageRows.slice(a, b + 1).filter((r, k) => this.isRowSelectable(r, this.pageFirst + a + k));
783
+ const keep = meta ? (Array.isArray(this._selection) ? this._selection : []).filter((s) => !range.some((r) => this.sameRow(s, r))) : [];
784
+ this._selection = [...keep, ...range];
785
+ this.selectionChange.emit(this._selection);
786
+ this.onRowSelect.emit({ originalEvent: event, data: row, index, type });
787
+ this.notify();
788
+ return;
789
+ }
790
+ if (pageIndex >= 0)
791
+ this.anchorIndex = pageIndex;
792
+ if (type === 'radio') {
793
+ if (was)
794
+ return;
795
+ this._selection = row;
796
+ }
797
+ else if (type === 'row' && this._metaKey && !meta) {
798
+ // metaKeySelection: a plain click picks only this row (a second click on it clears it in single mode).
799
+ this._selection = multiple ? (was && Array.isArray(this._selection) && this._selection.length === 1 ? [] : [row]) : was ? null : row;
800
+ }
801
+ else if (multiple) {
802
+ const list = Array.isArray(this._selection) ? this._selection : [];
803
+ this._selection = was ? list.filter((s) => !this.sameRow(s, row)) : [...list, row];
804
+ }
805
+ else {
806
+ this._selection = was ? null : row;
807
+ }
808
+ const now = this.isSelected(row);
809
+ this.selectionChange.emit(this._selection);
810
+ (now ? this.onRowSelect : this.onRowUnselect).emit({ originalEvent: event, data: row, index, type });
811
+ this.saveStateIfKept();
812
+ this.notify();
813
+ }
814
+ /** Rows the header checkbox acts on: the current page, or every row the search leaves. */
815
+ get selectableRows() {
816
+ return this._pageOnly || this._lazy ? this.pageRows : this.processed;
817
+ }
818
+ get allSelected() {
819
+ const rows = this.selectableRows;
820
+ return rows.length > 0 && rows.every((r) => this.isSelected(r));
821
+ }
822
+ get someSelected() {
823
+ return this.selectableRows.some((r) => this.isSelected(r));
824
+ }
825
+ toggleAll(event) {
826
+ const rows = this.selectableRows.filter((r) => this.isRowSelectable(r));
827
+ const checked = !this.allSelected;
828
+ const list = Array.isArray(this._selection) ? this._selection : [];
829
+ const others = list.filter((s) => !rows.some((r) => this.sameRow(s, r)));
830
+ this._selection = checked ? [...others, ...rows] : others;
831
+ this.selectionChange.emit(this._selection);
832
+ this.onHeaderCheckboxToggle.emit({ originalEvent: event, checked });
833
+ this.notify();
834
+ }
835
+ // ---------- row expansion ----------
836
+ isRowExpanded(row) {
837
+ const key = this.rowKey(row);
838
+ return key === null ? this.expandedRows.has(row) : !!this._expandedKeys[key];
839
+ }
840
+ /** Opens or closes a row's `rowexpansion` template; the row toggler button calls this. */
841
+ toggleRowExpansion(row, event) {
842
+ const open = !this.isRowExpanded(row);
843
+ const key = this.rowKey(row);
844
+ if (open && this.rowExpandMode === 'single') {
845
+ for (const k of Object.keys(this._expandedKeys))
846
+ delete this._expandedKeys[k];
847
+ this.expandedRows.clear();
848
+ }
849
+ if (key === null) {
850
+ if (open)
851
+ this.expandedRows.add(row);
852
+ else
853
+ this.expandedRows.delete(row);
854
+ }
855
+ else if (open) {
856
+ this._expandedKeys[key] = true;
857
+ }
858
+ else {
859
+ delete this._expandedKeys[key];
860
+ }
861
+ (open ? this.onRowExpand : this.onRowCollapse).emit({ originalEvent: event, data: row });
862
+ this.saveStateIfKept();
863
+ this.notify();
864
+ }
865
+ // ---------- export ----------
866
+ /**
867
+ * Downloads the rows as a CSV file Excel opens with Thai intact (UTF-8 with a byte order mark): the rows the search
868
+ * and sort leave (all of them with `allValues`, the selection with `selectionOnly`), the `columns` given to the
869
+ * table (`field`, `header`, `exportable: false` to skip), or every top-level field when there are none.
870
+ */
871
+ exportCSV(options = {}) {
872
+ const csv = this.toCSV(options);
873
+ this.download(new Blob(['\ufeff' + csv], { type: 'text/csv;charset=utf-8' }), `${this.exportFilename || 'download'}.csv`);
874
+ }
875
+ /** The CSV text `exportCSV()` saves (without the byte order mark). */
876
+ toCSV(options = {}) {
877
+ const { rows, cols, headerKey } = this.exportSource(options);
878
+ const sep = this.csvSeparator || ',';
879
+ const quote = (v) => `"${(v === null || v === undefined ? '' : v instanceof Date ? v.toISOString() : String(v)).replace(/"/g, '""')}"`;
880
+ const lines = [cols.map((c) => quote(c[headerKey] ?? c.header ?? c.field)).join(sep)];
881
+ for (const row of rows) {
882
+ lines.push(cols
883
+ .map((c) => {
884
+ const raw = optionField(row, c.field);
885
+ return quote(this.exportFunction ? this.exportFunction({ data: raw, field: c.field }) : raw);
886
+ })
887
+ .join(sep));
888
+ }
889
+ return lines.join('\r\n');
890
+ }
891
+ /**
892
+ * Downloads the rows as an Excel file (.xlsx), the same rows and columns as `exportCSV()` but with Thai, leading
893
+ * zeros, numbers and dates kept as they are, and styled like a report: a bold header that stays in view with filter
894
+ * buttons, borders, widths from the content, and whatever `options` add (title, colours, totals, merged cells,
895
+ * formulas through `customize`). No library needed.
896
+ */
897
+ async exportExcel(options = {}) {
898
+ const bytes = await this.toExcel(options);
899
+ this.download(new Blob([bytes], { type: EXCEL_MIME }), `${options.fileName || this.exportFilename || 'download'}.xlsx`);
900
+ }
901
+ /** The .xlsx file `exportExcel()` saves, e.g. to upload it instead. */
902
+ toExcel(options = {}) {
903
+ return buildExcel({
904
+ sheets: [this.toExcelSheet(options), ...(options.sheets || [])],
905
+ fontName: options.fontName,
906
+ fontSize: options.fontSize,
907
+ calendar: options.calendar,
908
+ dateFormat: options.dateFormat,
909
+ });
910
+ }
911
+ /** The table as one sheet, to put several tables in one workbook with `buildExcel()` from `@wirabyte/ui/excel`. */
912
+ toExcelSheet(options = {}) {
913
+ const { rows, cols, headerKey } = this.exportSource(options);
914
+ const columns = cols.map((c) => {
915
+ const col = c;
916
+ const header = col[headerKey] ?? col.header ?? col.field;
917
+ return {
918
+ field: col.field,
919
+ header: header === null || header === undefined ? '' : String(header),
920
+ width: col.exportWidth,
921
+ format: col.exportFormat,
922
+ style: col.exportStyle,
923
+ total: col.exportTotal,
924
+ };
925
+ });
926
+ const exportFunction = this.exportFunction;
927
+ return excelSheetFromRows(rows, columns, {
928
+ totalLabel: this.t.total,
929
+ ...options,
930
+ value: exportFunction ? (_row, field, raw) => exportFunction({ data: raw, field }) : undefined,
931
+ });
932
+ }
933
+ /** The rows and columns an export writes (see `exportCSV()`), and the column key that names the header. */
934
+ exportSource(options) {
935
+ const sel = this._selection;
936
+ const rows = options.selectionOnly ? (Array.isArray(sel) ? sel : sel ? [sel] : []) : options.allValues ? this._value : this.processed;
937
+ let cols = (this.columns || []).filter((c) => c && typeof c === 'object' && c.field && c.exportable !== false);
938
+ if (!cols.length) {
939
+ const first = rows.find((r) => r && typeof r === 'object');
940
+ cols = first ? Object.keys(first).filter((k) => typeof first[k] !== 'object' || first[k] === null || first[k] instanceof Date).map((k) => ({ field: k, header: k })) : [];
941
+ }
942
+ return { rows, cols, headerKey: this.exportHeader || 'header' };
943
+ }
944
+ /** Saves a blob through a temporary link. */
945
+ download(blob, name) {
946
+ const win = this.doc.defaultView;
947
+ if (!win?.URL?.createObjectURL)
948
+ return;
949
+ const url = win.URL.createObjectURL(blob);
950
+ const a = this.doc.createElement('a');
951
+ a.href = url;
952
+ a.download = name;
953
+ a.style.display = 'none';
954
+ this.doc.body.appendChild(a);
955
+ a.click();
956
+ a.remove();
957
+ setTimeout(() => win.URL.revokeObjectURL(url), 0);
958
+ }
959
+ // ---------- row reorder ----------
960
+ /** Drag from a row's handle (`pReorderableRowHandle`): a line shows where the row lands. */
961
+ startRowDrag(row, index, event) {
962
+ if (event.button !== 0)
963
+ return;
964
+ const tbody = row.parentElement;
965
+ if (!tbody)
966
+ return;
967
+ event.preventDefault();
968
+ let target = null;
969
+ row.classList.add('wu-row-dragging');
970
+ const clear = () => tbody.querySelectorAll('.wu-row-drop-above, .wu-row-drop-below').forEach((el) => el.classList.remove('wu-row-drop-above', 'wu-row-drop-below'));
971
+ const move = (e) => {
972
+ const rows = Array.from(tbody.querySelectorAll(':scope > tr[data-wu-row-index]'));
973
+ clear();
974
+ target = null;
975
+ for (const r of rows) {
976
+ const b = r.getBoundingClientRect();
977
+ if (e.clientY < b.top || e.clientY > b.bottom)
978
+ continue;
979
+ const below = e.clientY > b.top + b.height / 2;
980
+ target = { index: Number(r.getAttribute('data-wu-row-index')), below };
981
+ r.classList.add(below ? 'wu-row-drop-below' : 'wu-row-drop-above');
982
+ break;
983
+ }
984
+ };
985
+ const end = (drop) => {
986
+ this.doc.removeEventListener('pointermove', move, true);
987
+ this.doc.removeEventListener('pointerup', onUp, true);
988
+ this.doc.removeEventListener('pointercancel', onCancel, true);
989
+ this.doc.removeEventListener('keydown', onKey, true);
990
+ clear();
991
+ row.classList.remove('wu-row-dragging');
992
+ const t = target;
993
+ if (drop && t)
994
+ this.reorderRows(index, t.index + (t.below ? 1 : 0));
995
+ };
996
+ const onUp = () => end(true);
997
+ const onCancel = () => end(false);
998
+ const onKey = (e) => {
999
+ if (e.key === 'Escape')
1000
+ end(false);
1001
+ };
1002
+ this.doc.addEventListener('pointermove', move, true);
1003
+ this.doc.addEventListener('pointerup', onUp, true);
1004
+ this.doc.addEventListener('pointercancel', onCancel, true);
1005
+ this.doc.addEventListener('keydown', onKey, true);
1006
+ }
1007
+ /**
1008
+ * Moves a row, with the same index rules as before: `droppedRowIndex` is the row dropped on (+1 when dropped on its
1009
+ * lower half). `value` is changed in place.
1010
+ */
1011
+ reorderRows(dragIndex, droppedRowIndex) {
1012
+ const list = this._valueRef || this._value;
1013
+ if (dragIndex < 0 || dragIndex >= list.length || droppedRowIndex < 0)
1014
+ return;
1015
+ const dropIndex = dragIndex > droppedRowIndex ? droppedRowIndex : droppedRowIndex === 0 ? 0 : droppedRowIndex - 1;
1016
+ if (dropIndex === dragIndex || dropIndex >= list.length)
1017
+ return;
1018
+ const [moved] = list.splice(dragIndex, 1);
1019
+ list.splice(dropIndex, 0, moved);
1020
+ this._value = [...list];
1021
+ this.process();
1022
+ this.onRowReorder.emit({ dragIndex, dropIndex });
1023
+ }
1024
+ // ---------- state ----------
1025
+ get storage() {
1026
+ try {
1027
+ const win = this.doc.defaultView;
1028
+ return win ? (this.stateStorage === 'local' ? win.localStorage : win.sessionStorage) : null;
1029
+ }
1030
+ catch {
1031
+ return null;
1032
+ }
1033
+ }
1034
+ /** Saves paging, sorting, filters, selection and expanded rows under `stateKey`. */
1035
+ saveState() {
1036
+ if (!this.stateKey || this.restoringState)
1037
+ return;
1038
+ const state = {
1039
+ first: this._first,
1040
+ rows: this._rows,
1041
+ sortField: this._sortField,
1042
+ sortOrder: this._sortOrder,
1043
+ multiSortMeta: this._multi.length ? [...this._multi] : undefined,
1044
+ filters: Object.keys(this._filters).length ? { ...this._filters } : undefined,
1045
+ globalFilter: this.globalFilter,
1046
+ selection: this._selection ?? undefined,
1047
+ expandedRowKeys: Object.keys(this._expandedKeys).length ? { ...this._expandedKeys } : undefined,
1048
+ };
1049
+ try {
1050
+ this.storage?.setItem(this.stateKey, JSON.stringify(state));
1051
+ }
1052
+ catch {
1053
+ /* storage full or blocked */
1054
+ }
1055
+ this.onStateSave.emit(state);
1056
+ }
1057
+ /** Brings back what `saveState()` kept. Runs on its own when the table starts. */
1058
+ restoreState() {
1059
+ if (!this.stateKey)
1060
+ return;
1061
+ let state = null;
1062
+ try {
1063
+ const raw = this.storage?.getItem(this.stateKey);
1064
+ state = raw ? JSON.parse(raw) : null;
1065
+ }
1066
+ catch {
1067
+ state = null;
1068
+ }
1069
+ if (!state)
1070
+ return;
1071
+ this.restoringState = true;
1072
+ if (typeof state.rows === 'number')
1073
+ this._rows = state.rows;
1074
+ if (typeof state.first === 'number')
1075
+ this._first = state.first;
1076
+ if (state.sortField !== undefined)
1077
+ this._sortField = state.sortField;
1078
+ if (typeof state.sortOrder === 'number')
1079
+ this._sortOrder = state.sortOrder;
1080
+ if (state.multiSortMeta)
1081
+ this._multi = state.multiSortMeta;
1082
+ if (state.filters)
1083
+ this._filters = state.filters;
1084
+ if (state.globalFilter)
1085
+ this.globalFilter = state.globalFilter;
1086
+ if (state.selection !== undefined) {
1087
+ this._selection = state.selection;
1088
+ this.selectionChange.emit(this._selection);
1089
+ }
1090
+ if (state.expandedRowKeys)
1091
+ Object.assign(this._expandedKeys, state.expandedRowKeys);
1092
+ this.process();
1093
+ this.restoringState = false;
1094
+ this.onStateRestore.emit(state);
1095
+ }
1096
+ /** Forgets the saved state. */
1097
+ clearState() {
1098
+ if (this.stateKey)
1099
+ this.storage?.removeItem(this.stateKey);
1100
+ }
1101
+ saveStateIfKept() {
1102
+ if (this.stateKey)
1103
+ this.saveState();
1104
+ }
1105
+ rowKey(row) {
1106
+ if (!this.dataKey || row === null || typeof row !== 'object')
1107
+ return null;
1108
+ const k = optionField(row, this.dataKey);
1109
+ return k === null || k === undefined ? null : String(k);
1110
+ }
1111
+ sameGroup(a, b) {
1112
+ if (!this.groupRowsBy)
1113
+ return true;
1114
+ return sameValue(optionField(a, this.groupRowsBy), optionField(b, this.groupRowsBy));
1115
+ }
1116
+ sameRow(a, b) {
1117
+ if (a === b)
1118
+ return true;
1119
+ if (!this.dataKey && this.compareSelectionBy === 'equals')
1120
+ return false;
1121
+ return sameValue(a, b, this.dataKey);
1122
+ }
1123
+ afterFilter() {
1124
+ this._first = 0;
1125
+ this.process();
1126
+ this.firstChange.emit(0);
1127
+ this.onFilter.emit({ filters: { ...this._filters }, globalFilter: this.globalFilter, filteredValue: this.processed });
1128
+ this.saveStateIfKept();
1129
+ if (this._lazy)
1130
+ this.emitLazy();
1131
+ }
1132
+ /** filter → sort → page. Lazy tables show `value` as the server sent it. */
1133
+ process() {
1134
+ if (this._lazy) {
1135
+ this.processed = this._value;
1136
+ this.pageFirst = this._first;
1137
+ this.pageRows = this._value;
1138
+ }
1139
+ else {
1140
+ let rows = this._value;
1141
+ if (this.globalFilter)
1142
+ rows = filterGlobal(rows, this.globalFilter, this.globalFilterFields || [], this.globalMode);
1143
+ rows = filterColumns(rows, this._filters);
1144
+ const meta = this.sortMode === 'multiple' ? this._multi : this._sortField ? [{ field: this._sortField, order: this._sortOrder }] : [];
1145
+ if (meta.length && this._customSort) {
1146
+ rows = rows.slice();
1147
+ this.sortFunction.emit({
1148
+ data: rows,
1149
+ mode: this.sortMode === 'multiple' ? 'multiple' : 'single',
1150
+ field: this._sortField ?? undefined,
1151
+ order: this._sortOrder,
1152
+ multiSortMeta: this.sortMode === 'multiple' ? [...this._multi] : undefined,
1153
+ });
1154
+ }
1155
+ else if (meta.length)
1156
+ rows = sortRows(rows, meta);
1157
+ this.processed = rows;
1158
+ if (this._paginator) {
1159
+ const info = pageInfo({ first: this._first, rows: this._rows, totalRecords: rows.length });
1160
+ // Rows removed or a search narrowed the list: stay on the last page that exists.
1161
+ this._first = info.first;
1162
+ this.pageFirst = info.first;
1163
+ this.pageRows = rows.slice(info.first, info.last);
1164
+ }
1165
+ else {
1166
+ this.pageFirst = 0;
1167
+ this.pageRows = rows;
1168
+ }
1169
+ }
1170
+ this.notify();
1171
+ }
1172
+ emitLazy() {
1173
+ const page = Math.floor(this._first / Math.max(1, this._rows)) + 1;
1174
+ this.onLazyLoad.emit({
1175
+ first: this._first,
1176
+ rows: this._rows,
1177
+ page,
1178
+ sortField: this.sortMode === 'single' ? this._sortField : undefined,
1179
+ sortOrder: this.sortMode === 'single' ? this._sortOrder : undefined,
1180
+ multiSortMeta: this.sortMode === 'multiple' ? [...this._multi] : undefined,
1181
+ filters: { ...this._filters },
1182
+ globalFilter: this.globalFilter,
1183
+ });
1184
+ }
1185
+ watchStack() {
1186
+ if (!this.initialized)
1187
+ return;
1188
+ this.stackQuery?.removeEventListener?.('change', this.onStackChange);
1189
+ this.stackQuery = null;
1190
+ const win = this.doc.defaultView;
1191
+ if (this.responsiveLayout === 'stack' && win?.matchMedia) {
1192
+ this.stackQuery = win.matchMedia(`(max-width: ${this._breakpoint})`);
1193
+ this.stackQuery.addEventListener?.('change', this.onStackChange);
1194
+ }
1195
+ this.onStackChange();
1196
+ }
1197
+ notify() {
1198
+ this.changes.next();
1199
+ this.cdr.markForCheck();
1200
+ }
1201
+ }
1202
+ ɵWuTableBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ɵWuTableBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1203
+ ɵWuTableBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ɵWuTableBase, inputs: { value: "value", dataKey: "dataKey", columns: "columns", rowTrackBy: "rowTrackBy", paginator: "paginator", rows: "rows", first: "first", rowsPerPageOptions: "rowsPerPageOptions", showCurrentPageReport: "showCurrentPageReport", currentPageReportTemplate: "currentPageReportTemplate", pageLinks: "pageLinks", paginatorPosition: "paginatorPosition", alwaysShowPaginator: "alwaysShowPaginator", paginatorStyleClass: "paginatorStyleClass", totalRecords: "totalRecords", lazy: "lazy", lazyLoadOnInit: "lazyLoadOnInit", loading: "loading", showLoader: "showLoader", loadingIcon: "loadingIcon", sortField: "sortField", sortOrder: "sortOrder", sortMode: "sortMode", multiSortMeta: "multiSortMeta", removableSort: "removableSort", defaultSortOrder: "defaultSortOrder", resetPageOnSort: "resetPageOnSort", globalFilterFields: "globalFilterFields", filterDelay: "filterDelay", filters: "filters", selectionMode: "selectionMode", selection: "selection", selectionPageOnly: "selectionPageOnly", contextMenu: "contextMenu", contextMenuSelection: "contextMenuSelection", contextMenuSelectionMode: "contextMenuSelectionMode", styleClass: "styleClass", style: "style", tableStyle: "tableStyle", tableStyleClass: "tableStyleClass", size: "size", showGridlines: "showGridlines", stripedRows: "stripedRows", rowHover: "rowHover", scrollable: "scrollable", scrollHeight: "scrollHeight", responsiveLayout: "responsiveLayout", breakpoint: "breakpoint", expandedRowKeys: "expandedRowKeys", rowExpandMode: "rowExpandMode", rowGroupMode: "rowGroupMode", groupRowsBy: "groupRowsBy", exportFilename: "exportFilename", exportHeader: "exportHeader", csvSeparator: "csvSeparator", exportFunction: "exportFunction", responsive: "responsive", autoLayout: "autoLayout", resizableColumns: "resizableColumns", reorderableColumns: "reorderableColumns", columnResizeMode: "columnResizeMode", virtualScroll: "virtualScroll", virtualScrollItemSize: "virtualScrollItemSize", paginatorDropdownAppendTo: "paginatorDropdownAppendTo", frozenColumns: "frozenColumns", metaKeySelection: "metaKeySelection", rowSelectable: "rowSelectable", compareSelectionBy: "compareSelectionBy", customSort: "customSort", stateKey: "stateKey", stateStorage: "stateStorage", editMode: "editMode", editingRowKeys: "editingRowKeys", frozenValue: "frozenValue" }, outputs: { onPage: "onPage", onSort: "onSort", onFilter: "onFilter", onLazyLoad: "onLazyLoad", onRowSelect: "onRowSelect", onRowUnselect: "onRowUnselect", onHeaderCheckboxToggle: "onHeaderCheckboxToggle", onRowExpand: "onRowExpand", onRowReorder: "onRowReorder", onColResize: "onColResize", onColReorder: "onColReorder", onEditInit: "onEditInit", onEditComplete: "onEditComplete", onEditCancel: "onEditCancel", sortFunction: "sortFunction", onStateSave: "onStateSave", onStateRestore: "onStateRestore", onRowCollapse: "onRowCollapse", selectionChange: "selectionChange", contextMenuSelectionChange: "contextMenuSelectionChange", onContextMenuSelect: "onContextMenuSelect", firstChange: "firstChange", rowsChange: "rowsChange" }, queries: [{ propertyName: "captionRef", first: true, predicate: ["caption"] }, { propertyName: "headerRef", first: true, predicate: ["header"] }, { propertyName: "bodyRef", first: true, predicate: ["body"] }, { propertyName: "footerRef", first: true, predicate: ["footer"] }, { propertyName: "emptyRef", first: true, predicate: ["emptymessage"] }, { propertyName: "summaryRef", first: true, predicate: ["summary"] }, { propertyName: "loadingBodyRef", first: true, predicate: ["loadingbody"] }, { propertyName: "paginatorLeftRef", first: true, predicate: ["paginatorleft"] }, { propertyName: "paginatorRightRef", first: true, predicate: ["paginatorright"] }, { propertyName: "colgroupRef", first: true, predicate: ["colgroup"] }, { propertyName: "rowExpansionRef", first: true, predicate: ["rowexpansion"] }, { propertyName: "expandedRowRef", first: true, predicate: ["expandedrow"] }, { propertyName: "frozenBodyRef", first: true, predicate: ["frozenbody"] }, { propertyName: "groupHeaderRef", first: true, predicate: ["groupheader"] }, { propertyName: "groupFooterRef", first: true, predicate: ["groupfooter"] }, { propertyName: "templates", predicate: WuTemplate }], ngImport: i0 });
1204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ɵWuTableBase, decorators: [{
1205
+ type: Directive
1206
+ }], ctorParameters: function () { return []; }, propDecorators: { value: [{
1207
+ type: Input
1208
+ }], dataKey: [{
1209
+ type: Input
1210
+ }], columns: [{
1211
+ type: Input
1212
+ }], rowTrackBy: [{
1213
+ type: Input
1214
+ }], paginator: [{
1215
+ type: Input
1216
+ }], rows: [{
1217
+ type: Input
1218
+ }], first: [{
1219
+ type: Input
1220
+ }], rowsPerPageOptions: [{
1221
+ type: Input
1222
+ }], showCurrentPageReport: [{
1223
+ type: Input
1224
+ }], currentPageReportTemplate: [{
1225
+ type: Input
1226
+ }], pageLinks: [{
1227
+ type: Input
1228
+ }], paginatorPosition: [{
1229
+ type: Input
1230
+ }], alwaysShowPaginator: [{
1231
+ type: Input
1232
+ }], paginatorStyleClass: [{
1233
+ type: Input
1234
+ }], totalRecords: [{
1235
+ type: Input
1236
+ }], lazy: [{
1237
+ type: Input
1238
+ }], lazyLoadOnInit: [{
1239
+ type: Input
1240
+ }], loading: [{
1241
+ type: Input
1242
+ }], showLoader: [{
1243
+ type: Input
1244
+ }], loadingIcon: [{
1245
+ type: Input
1246
+ }], sortField: [{
1247
+ type: Input
1248
+ }], sortOrder: [{
1249
+ type: Input
1250
+ }], sortMode: [{
1251
+ type: Input
1252
+ }], multiSortMeta: [{
1253
+ type: Input
1254
+ }], removableSort: [{
1255
+ type: Input
1256
+ }], defaultSortOrder: [{
1257
+ type: Input
1258
+ }], resetPageOnSort: [{
1259
+ type: Input
1260
+ }], globalFilterFields: [{
1261
+ type: Input
1262
+ }], filterDelay: [{
1263
+ type: Input
1264
+ }], filters: [{
1265
+ type: Input
1266
+ }], selectionMode: [{
1267
+ type: Input
1268
+ }], selection: [{
1269
+ type: Input
1270
+ }], selectionPageOnly: [{
1271
+ type: Input
1272
+ }], contextMenu: [{
1273
+ type: Input
1274
+ }], contextMenuSelection: [{
1275
+ type: Input
1276
+ }], contextMenuSelectionMode: [{
1277
+ type: Input
1278
+ }], styleClass: [{
1279
+ type: Input
1280
+ }], style: [{
1281
+ type: Input
1282
+ }], tableStyle: [{
1283
+ type: Input
1284
+ }], tableStyleClass: [{
1285
+ type: Input
1286
+ }], size: [{
1287
+ type: Input
1288
+ }], showGridlines: [{
1289
+ type: Input
1290
+ }], stripedRows: [{
1291
+ type: Input
1292
+ }], rowHover: [{
1293
+ type: Input
1294
+ }], scrollable: [{
1295
+ type: Input
1296
+ }], scrollHeight: [{
1297
+ type: Input
1298
+ }], responsiveLayout: [{
1299
+ type: Input
1300
+ }], breakpoint: [{
1301
+ type: Input
1302
+ }], expandedRowKeys: [{
1303
+ type: Input
1304
+ }], rowExpandMode: [{
1305
+ type: Input
1306
+ }], rowGroupMode: [{
1307
+ type: Input
1308
+ }], groupRowsBy: [{
1309
+ type: Input
1310
+ }], exportFilename: [{
1311
+ type: Input
1312
+ }], exportHeader: [{
1313
+ type: Input
1314
+ }], csvSeparator: [{
1315
+ type: Input
1316
+ }], exportFunction: [{
1317
+ type: Input
1318
+ }], responsive: [{
1319
+ type: Input
1320
+ }], autoLayout: [{
1321
+ type: Input
1322
+ }], resizableColumns: [{
1323
+ type: Input
1324
+ }], reorderableColumns: [{
1325
+ type: Input
1326
+ }], columnResizeMode: [{
1327
+ type: Input
1328
+ }], virtualScroll: [{
1329
+ type: Input
1330
+ }], virtualScrollItemSize: [{
1331
+ type: Input
1332
+ }], paginatorDropdownAppendTo: [{
1333
+ type: Input
1334
+ }], frozenColumns: [{
1335
+ type: Input
1336
+ }], metaKeySelection: [{
1337
+ type: Input
1338
+ }], rowSelectable: [{
1339
+ type: Input
1340
+ }], compareSelectionBy: [{
1341
+ type: Input
1342
+ }], customSort: [{
1343
+ type: Input
1344
+ }], stateKey: [{
1345
+ type: Input
1346
+ }], stateStorage: [{
1347
+ type: Input
1348
+ }], editMode: [{
1349
+ type: Input
1350
+ }], editingRowKeys: [{
1351
+ type: Input
1352
+ }], frozenValue: [{
1353
+ type: Input
1354
+ }], onPage: [{
1355
+ type: Output
1356
+ }], onSort: [{
1357
+ type: Output
1358
+ }], onFilter: [{
1359
+ type: Output
1360
+ }], onLazyLoad: [{
1361
+ type: Output
1362
+ }], onRowSelect: [{
1363
+ type: Output
1364
+ }], onRowUnselect: [{
1365
+ type: Output
1366
+ }], onHeaderCheckboxToggle: [{
1367
+ type: Output
1368
+ }], onRowExpand: [{
1369
+ type: Output
1370
+ }], onRowReorder: [{
1371
+ type: Output
1372
+ }], onColResize: [{
1373
+ type: Output
1374
+ }], onColReorder: [{
1375
+ type: Output
1376
+ }], onEditInit: [{
1377
+ type: Output
1378
+ }], onEditComplete: [{
1379
+ type: Output
1380
+ }], onEditCancel: [{
1381
+ type: Output
1382
+ }], sortFunction: [{
1383
+ type: Output
1384
+ }], onStateSave: [{
1385
+ type: Output
1386
+ }], onStateRestore: [{
1387
+ type: Output
1388
+ }], onRowCollapse: [{
1389
+ type: Output
1390
+ }], selectionChange: [{
1391
+ type: Output
1392
+ }], contextMenuSelectionChange: [{
1393
+ type: Output
1394
+ }], onContextMenuSelect: [{
1395
+ type: Output
1396
+ }], firstChange: [{
1397
+ type: Output
1398
+ }], rowsChange: [{
1399
+ type: Output
1400
+ }], templates: [{
1401
+ type: ContentChildren,
1402
+ args: [WuTemplate]
1403
+ }], captionRef: [{
1404
+ type: ContentChild,
1405
+ args: ['caption', { descendants: false }]
1406
+ }], headerRef: [{
1407
+ type: ContentChild,
1408
+ args: ['header', { descendants: false }]
1409
+ }], bodyRef: [{
1410
+ type: ContentChild,
1411
+ args: ['body', { descendants: false }]
1412
+ }], footerRef: [{
1413
+ type: ContentChild,
1414
+ args: ['footer', { descendants: false }]
1415
+ }], emptyRef: [{
1416
+ type: ContentChild,
1417
+ args: ['emptymessage', { descendants: false }]
1418
+ }], summaryRef: [{
1419
+ type: ContentChild,
1420
+ args: ['summary', { descendants: false }]
1421
+ }], loadingBodyRef: [{
1422
+ type: ContentChild,
1423
+ args: ['loadingbody', { descendants: false }]
1424
+ }], paginatorLeftRef: [{
1425
+ type: ContentChild,
1426
+ args: ['paginatorleft', { descendants: false }]
1427
+ }], paginatorRightRef: [{
1428
+ type: ContentChild,
1429
+ args: ['paginatorright', { descendants: false }]
1430
+ }], colgroupRef: [{
1431
+ type: ContentChild,
1432
+ args: ['colgroup', { descendants: false }]
1433
+ }], rowExpansionRef: [{
1434
+ type: ContentChild,
1435
+ args: ['rowexpansion', { descendants: false }]
1436
+ }], expandedRowRef: [{
1437
+ type: ContentChild,
1438
+ args: ['expandedrow', { descendants: false }]
1439
+ }], frozenBodyRef: [{
1440
+ type: ContentChild,
1441
+ args: ['frozenbody', { descendants: false }]
1442
+ }], groupHeaderRef: [{
1443
+ type: ContentChild,
1444
+ args: ['groupheader', { descendants: false }]
1445
+ }], groupFooterRef: [{
1446
+ type: ContentChild,
1447
+ args: ['groupfooter', { descendants: false }]
1448
+ }] } });
1449
+
1450
+ const ɵWU_TABLE = new InjectionToken('WU_TABLE');
1451
+
1452
+ /**
1453
+ * Data table: `<wu-table [value]="students" [paginator]="true" [rows]="10" dataKey="id">` with the app's own
1454
+ * `header` / `body` / `caption` / `emptymessage` templates (`wuTemplate="body"`, `pTemplate="body"` or `#body`).
1455
+ * Sorting (`wuSortableColumn` + `wu-sortIcon`), global search (`dt.filterGlobal(...)`), column filters, row selection
1456
+ * (`wuSelectableRow`, `wu-tableCheckbox`), lazy loading and a Thai page report. `wu-datatable` is the same component.
1457
+ */
1458
+ class WuTable extends ɵWuTableBase {
1459
+ }
1460
+ WuTable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuTable, deps: null, target: i0.ɵɵFactoryTarget.Component });
1461
+ WuTable.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuTable, isStandalone: true, selector: "wu-table, wu-datatable", host: { classAttribute: "wu-table-host" }, providers: [{ provide: ɵWU_TABLE, useExisting: forwardRef(() => WuTable) }], exportAs: ["wuTable"], usesInheritance: true, ngImport: i0, template: "<div\n class=\"wu-table p-datatable p-component\"\n [ngClass]=\"styleClass || ''\"\n [ngStyle]=\"style || null\"\n [class.wu-table-gridlines]=\"showGridlines\"\n [class.p-datatable-gridlines]=\"showGridlines\"\n [class.wu-table-striped]=\"stripedRows\"\n [class.p-datatable-striped]=\"stripedRows\"\n [class.wu-table-sm]=\"sizeKey === 'sm'\"\n [class.p-datatable-sm]=\"sizeKey === 'sm'\"\n [class.wu-table-lg]=\"sizeKey === 'lg'\"\n [class.p-datatable-lg]=\"sizeKey === 'lg'\"\n [class.wu-table-hoverable]=\"rowHover\"\n [class.p-datatable-hoverable-rows]=\"rowHover\"\n [class.wu-table-scrollable]=\"scrollable\"\n [class.p-datatable-scrollable]=\"scrollable\"\n [class.wu-table-flex]=\"flexScroll\"\n [class.wu-table-stack]=\"responsiveLayout === 'stack'\"\n [class.p-datatable-responsive-stack]=\"responsiveLayout === 'stack'\"\n [class.p-datatable-responsive-scroll]=\"responsiveLayout !== 'stack'\"\n [class.wu-table-stacked]=\"stacked\"\n [class.wu-table-loading]=\"loading\"\n [attr.aria-busy]=\"loading || null\"\n>\n <div *ngIf=\"showMask\" class=\"wu-table-mask p-datatable-loading-overlay p-component-overlay\">\n <i *ngIf=\"loadingIcon; else spinner\" [class]=\"'wu-table-loading-icon p-datatable-loading-icon ' + loadingIcon\" aria-hidden=\"true\"></i>\n <ng-template #spinner><span class=\"wu-table-spinner\" role=\"status\" [attr.aria-label]=\"t.loading\"></span></ng-template>\n </div>\n <div *ngIf=\"captionTemplate\" class=\"wu-table-header p-datatable-header\">\n <ng-container *ngTemplateOutlet=\"captionTemplate\"></ng-container>\n </div>\n <wu-paginator\n *ngIf=\"showPaginatorTop\"\n class=\"wu-table-paginator p-paginator-top\"\n [styleClass]=\"paginatorStyleClass\"\n [first]=\"pageFirst\"\n [rows]=\"rows\"\n [totalRecords]=\"total\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [showCurrentPageReport]=\"showCurrentPageReport\"\n [currentPageReportTemplate]=\"currentPageReportTemplate\"\n [pageLinkSize]=\"pageLinks\"\n [alwaysShow]=\"alwaysShowPaginator\"\n [leftTemplate]=\"paginatorLeftTemplate\"\n [rightTemplate]=\"paginatorRightTemplate\"\n (onPageChange)=\"pageChange($event)\"\n ></wu-paginator>\n <div class=\"wu-table-wrapper p-datatable-wrapper\" [style.max-height]=\"wrapperMaxHeight\">\n <table class=\"wu-table-table p-datatable-table\" role=\"table\" [ngClass]=\"tableStyleClass || ''\" [ngStyle]=\"tableStyle || null\">\n <ng-container *ngIf=\"colgroupTemplate\"><ng-container *ngTemplateOutlet=\"colgroupTemplate; context: columnsContext\"></ng-container></ng-container>\n <thead *ngIf=\"headerTemplate\" class=\"wu-table-thead p-datatable-thead\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: columnsContext\"></ng-container>\n </thead>\n <tbody *ngIf=\"frozenValue.length && frozenBodyTemplate\" class=\"wu-table-tbody wu-table-frozen-tbody p-datatable-frozen-tbody\">\n <ng-container *ngFor=\"let row of frozenValue; let i = index\">\n <ng-container *ngTemplateOutlet=\"frozenBodyTemplate; context: frozenContext(row, i)\"></ng-container>\n </ng-container>\n </tbody>\n <tbody class=\"wu-table-tbody p-datatable-tbody\">\n <ng-container *ngIf=\"showLoadingBody; else rowsBody\">\n <ng-container *ngTemplateOutlet=\"loadingBodyTemplate; context: columnsContext\"></ng-container>\n </ng-container>\n <ng-template #rowsBody>\n <ng-container *ngIf=\"bodyTemplate\">\n <ng-container *ngFor=\"let row of pageRows; let i = index; trackBy: trackRow\">\n <ng-container *ngIf=\"groupHeaderTemplate && isGroupStart(i)\">\n <ng-container *ngTemplateOutlet=\"groupHeaderTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: rowContext(row, i)\"></ng-container>\n <ng-container *ngIf=\"rowExpansionTemplate && isRowExpanded(row)\">\n <ng-container *ngTemplateOutlet=\"rowExpansionTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"groupFooterTemplate && isGroupEnd(i)\">\n <ng-container *ngTemplateOutlet=\"groupFooterTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"isEmpty && !loading\">\n <ng-container *ngIf=\"emptyTemplate; else defaultEmpty\"><ng-container *ngTemplateOutlet=\"emptyTemplate; context: columnsContext\"></ng-container></ng-container>\n <ng-template #defaultEmpty><tr class=\"wu-table-empty-row\"><td class=\"wu-table-empty\" colspan=\"100\">{{ t.emptyMessage }}</td></tr></ng-template>\n </ng-container>\n </ng-template>\n </tbody>\n <tfoot *ngIf=\"footerTemplate\" class=\"wu-table-tfoot p-datatable-tfoot\">\n <ng-container *ngTemplateOutlet=\"footerTemplate; context: columnsContext\"></ng-container>\n </tfoot>\n </table>\n </div>\n <wu-paginator\n *ngIf=\"showPaginatorBottom\"\n class=\"wu-table-paginator p-paginator-bottom\"\n [styleClass]=\"paginatorStyleClass\"\n [first]=\"pageFirst\"\n [rows]=\"rows\"\n [totalRecords]=\"total\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [showCurrentPageReport]=\"showCurrentPageReport\"\n [currentPageReportTemplate]=\"currentPageReportTemplate\"\n [pageLinkSize]=\"pageLinks\"\n [alwaysShow]=\"alwaysShowPaginator\"\n [leftTemplate]=\"paginatorLeftTemplate\"\n [rightTemplate]=\"paginatorRightTemplate\"\n (onPageChange)=\"pageChange($event)\"\n ></wu-paginator>\n <div *ngIf=\"summaryTemplate\" class=\"wu-table-footer p-datatable-footer\">\n <ng-container *ngTemplateOutlet=\"summaryTemplate\"></ng-container>\n </div>\n</div>\n", styles: ["@layer wiraui.components{wu-table,wu-datatable{display:block;min-width:0}.wu-table{position:relative;display:flex;flex-direction:column;min-width:0;color:var(--wu-text);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-table-flex{height:100%}.wu-table-header{padding:var(--wu-table-header-padding);border:1px solid var(--wu-table-border-color);border-width:var(--wu-table-header-border-width);background:var(--wu-table-header-bg);color:var(--wu-text);font-weight:var(--wu-table-header-weight)}.wu-table-footer{padding:var(--wu-table-header-padding);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-header-bg);font-weight:var(--wu-table-header-weight)}.wu-table-wrapper{position:relative;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}.wu-table-scrollable .wu-table-wrapper{overflow:auto;overscroll-behavior:contain}.wu-table-flex .wu-table-wrapper{flex:1 1 auto;min-height:0}.wu-table-table{width:100%;border-collapse:separate;border-spacing:0}.wu-table-thead>tr>th{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-head-bg);color:var(--wu-table-head-color);font-weight:var(--wu-table-head-weight);text-align:start;vertical-align:middle;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-table-scrollable .wu-table-thead>tr>th{position:sticky;top:0;z-index:1}.wu-table-tbody>tr{height:var(--wu-table-row-height);background:var(--wu-table-row-bg);color:var(--wu-text);transition:background-color var(--wu-transition)}.wu-table-tbody>tr>td{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;text-align:start;vertical-align:middle}.wu-table-tfoot>tr>td,.wu-table-tfoot>tr>th{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-head-bg);color:var(--wu-table-head-color);font-weight:var(--wu-table-head-weight)}.wu-table-tbody>tr:nth-child(even){background:var(--wu-table-stripe-bg, var(--wu-table-row-bg))}.wu-table-striped .wu-table-tbody>tr:nth-child(even){background:var(--wu-table-row-striped-bg)}.wu-table-hoverable .wu-table-tbody>tr:not(.wu-table-empty-row):hover{background:var(--wu-table-row-hover-bg)}.wu-table-tbody>tr.wu-row-contextmenu{outline:2px solid var(--wu-field-focus-border);outline-offset:-2px}.wu-table-tbody>tr.wu-row-selected,.wu-table-hoverable .wu-table-tbody>tr.wu-row-selected:hover{background:var(--wu-table-row-selected-bg);color:var(--wu-table-row-selected-color)}.wu-selectable-row{cursor:pointer}.wu-selectable-row:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-table-gridlines .wu-table-header{border-width:1px}.wu-table-gridlines .wu-table-thead>tr>th,.wu-table-gridlines .wu-table-tbody>tr>td,.wu-table-gridlines .wu-table-tfoot>tr>td,.wu-table-gridlines .wu-table-tfoot>tr>th{border-width:0 1px 1px 0}.wu-table-gridlines .wu-table-thead>tr>th:first-child,.wu-table-gridlines .wu-table-tbody>tr>td:first-child,.wu-table-gridlines .wu-table-tfoot>tr>:first-child{border-left-width:1px}.wu-table-gridlines .wu-table-thead>tr:first-child>th{border-top-width:1px}.wu-table-sm .wu-table-thead>tr>th,.wu-table-sm .wu-table-tbody>tr>td,.wu-table-sm .wu-table-tfoot>tr>*{padding:calc(var(--wu-table-cell-padding-y) * .5) calc(var(--wu-table-cell-padding-x) * .5)}.wu-table-lg .wu-table-thead>tr>th,.wu-table-lg .wu-table-tbody>tr>td,.wu-table-lg .wu-table-tfoot>tr>*{padding:calc(var(--wu-table-cell-padding-y) * 1.25) calc(var(--wu-table-cell-padding-x) * 1.25)}.wu-table-empty{color:var(--wu-text-muted);text-align:center!important}.wu-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.wu-sortable-column:not(.wu-sorted):hover{background:var(--wu-table-head-hover-bg)}.wu-sortable-column.wu-sorted{background:var(--wu-table-sorted-bg);color:var(--wu-table-sorted-color)}.wu-sortable-column:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-sorticon{display:inline-flex;align-items:center;gap:.125rem;margin-left:.375rem;vertical-align:middle;color:var(--wu-text-muted)}.wu-sorticon-svg{width:.875rem;height:.875rem}.wu-sorticon-asc,.wu-sorticon-desc{color:var(--wu-table-sorted-color)}.wu-sorticon-asc .wu-sorticon-down,.wu-sorticon-desc .wu-sorticon-up{opacity:.25}.wu-sorticon-badge{display:inline-grid;place-items:center;min-width:1rem;height:1rem;padding:0 .25rem;border-radius:999px;background:var(--wu-table-sorted-color);color:var(--wu-primary-contrast);font-size:.6875rem;font-weight:700;line-height:1}.wu-sorticon-badge[hidden]{display:none}.wu-table-checkbox{display:inline-flex;vertical-align:middle}.wu-table-mask{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:color-mix(in srgb,var(--wu-card-bg) 60%,transparent)}.wu-table-spinner{width:2rem;height:2rem;border:3px solid var(--wu-primary-color);border-right-color:transparent;border-radius:50%;animation:wu-table-spin .8s linear infinite}.wu-table-loading-icon{font-size:2rem;color:var(--wu-primary-color)}@keyframes wu-table-spin{to{transform:rotate(360deg)}}.wu-table-paginator .wu-paginator{border-width:0 0 1px}.wu-table .p-column-title{display:none}.wu-table-stacked .wu-table-thead>tr>th,.wu-table-stacked .wu-table-tfoot>tr>*{display:none}.wu-table-stacked .wu-table-tbody>tr{display:block;height:auto;border-bottom:1px solid var(--wu-table-border-color)}.wu-table-stacked .wu-table-tbody>tr>td{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:auto!important;border:0!important;text-align:end}.wu-table-stacked .wu-table-tbody>tr>td>.p-column-title{display:inline-block;flex:none;min-width:40%;color:var(--wu-text-muted);font-weight:var(--wu-table-head-weight);text-align:start}.wu-table-stacked .wu-table-tbody>tr.wu-table-empty-row>td{justify-content:center}.wu-table-thead>tr>.wu-frozen-column,.wu-table-tbody>tr>.wu-frozen-column,.wu-table-tfoot>tr>.wu-frozen-column{position:sticky;z-index:1}.wu-table-thead>tr>.wu-frozen-column{z-index:2}.wu-table-tbody>tr>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-bg),var(--wu-table-row-bg)),var(--wu-card-bg)}.wu-table-tbody>tr:nth-child(even)>.wu-frozen-column{background:linear-gradient(var(--wu-table-stripe-bg),var(--wu-table-stripe-bg)),var(--wu-card-bg)}.wu-table-striped .wu-table-tbody>tr:nth-child(even)>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-striped-bg),var(--wu-table-row-striped-bg)),var(--wu-card-bg)}.wu-table-hoverable .wu-table-tbody>tr:not(.wu-table-empty-row):hover>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-hover-bg),var(--wu-table-row-hover-bg)),var(--wu-card-bg)}.wu-table-tbody>tr.wu-row-selected>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-selected-bg),var(--wu-table-row-selected-bg)),var(--wu-card-bg)}.wu-table-stacked .wu-frozen-column{position:static}.wu-table-frozen-tbody>tr>td{background:linear-gradient(var(--wu-table-row-bg),var(--wu-table-row-bg)),var(--wu-card-bg)}.wu-table-scrollable .wu-table-frozen-tbody>tr>td{position:sticky;top:var(--_table-head-height, 0px);z-index:1}.wu-table-frozen-tbody>tr:last-child>td{border-bottom:2px solid var(--wu-table-border-color)}.wu-reorderable-row-handle{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.wu-reorderable-row-handle:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:2px;border-radius:var(--wu-radius-sm)}.wu-table-tbody>tr.wu-row-dragging{opacity:.5}.wu-table-tbody>tr.wu-row-drop-above>td{box-shadow:inset 0 2px 0 var(--wu-primary-color)}.wu-table-tbody>tr.wu-row-drop-below>td{box-shadow:inset 0 -2px 0 var(--wu-primary-color)}wu-tableradiobutton{display:inline-flex}.wu-resizable-column{position:relative;overflow:hidden;text-overflow:ellipsis}.wu-column-resizer{position:absolute;top:0;right:0;bottom:0;width:.5rem;cursor:col-resize;touch-action:none}.wu-resizable-column:not(.wu-resizable-column-off)>.wu-column-resizer:after{content:\"\";position:absolute;top:25%;right:2px;bottom:25%;width:2px;border-radius:1px;background:transparent;transition:background-color var(--wu-transition)}.wu-resizable-column:hover>.wu-column-resizer:after,.wu-column-resizing>.wu-column-resizer:after{background:var(--wu-primary-color)}th:not(.wu-resizable-column)>.wu-column-resizer{display:none}.wu-reorderable-column{cursor:grab}.wu-column-dragging{opacity:.6}.wu-col-drop-before{box-shadow:inset 2px 0 0 var(--wu-primary-color)}.wu-col-drop-after{box-shadow:inset -2px 0 0 var(--wu-primary-color)}.wu-editable-column{cursor:pointer}.wu-editable-column:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-editable-column.wu-cell-editing{padding-top:.25rem;padding-bottom:.25rem;cursor:default}.wu-cell-editing :is(input,select,textarea,.wu-inputtext),.wu-row-editing :is(input,select,textarea,.wu-inputtext){box-sizing:border-box;width:100%;max-width:100%}wu-celleditor{display:contents}.wu-table-tbody>tr.wu-rowgroup-header{background:var(--wu-table-group-bg);color:var(--wu-table-group-color);font-weight:var(--wu-table-head-weight)}.wu-table-tbody>tr.wu-rowgroup-header>:is(td,th):first-child{box-shadow:inset var(--wu-table-group-accent-width) 0 0 var(--wu-primary-color)}.wu-table-tbody>tr:is(.wu-rowgroup-footer,.p-rowgroup-footer){background:var(--wu-table-row-bg);color:var(--wu-text-muted);font-size:.9375em}.wu-table-tbody>tr:is(.wu-rowgroup-footer,.p-rowgroup-footer)>td{border-bottom-width:2px}.wu-row-toggler[aria-expanded=true] .wu-row-toggler-icon{transform:rotate(90deg)}:is(wu-columnfilter,wu-column-filter){display:block;min-width:0}.wu-column-filter{display:flex;align-items:center;gap:.25rem;min-width:0;font-weight:400}.wu-column-filter>:first-child:not(button){flex:1 1 auto;min-width:0}.wu-column-filter-input.wu-inputtext{box-sizing:border-box;width:100%;min-width:0}.wu-column-filter-clear,.wu-column-filter-bool{display:grid;flex:none;place-items:center;box-sizing:border-box;padding:0;cursor:pointer}.wu-column-filter-clear{width:2rem;height:2rem;border:0;border-radius:50%;background:none;color:var(--wu-text-muted)}.wu-column-filter-clear:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-column-filter-bool{width:1.5rem;height:1.5rem;border:1px solid var(--wu-field-border);border-radius:var(--wu-radius-sm);background:var(--wu-field-bg);color:var(--wu-primary-color)}.wu-column-filter-clear svg,.wu-column-filter-bool svg{width:.875rem;height:.875rem}.wu-column-filter-menu{display:inline-flex;vertical-align:middle}.wu-column-filter-menu-button.wu-column-filter-active{background:var(--wu-primary-soft);color:var(--wu-primary-soft-text)}.wu-column-filter-menu-button svg{width:1rem;height:1rem}.wu-column-filter-overlay{position:fixed;inset:auto;z-index:1200;display:flex;flex-direction:column;gap:.625rem;box-sizing:border-box;width:min(18rem,calc(100vw - 1rem));margin:0;padding:.75rem;border:1px solid var(--wu-border);border-radius:var(--wu-radius-md);background:var(--wu-card-bg);color:var(--wu-text);box-shadow:var(--wu-shadow-md);font-family:var(--wu-font-family);font-size:var(--wu-font-size);font-weight:400;text-align:start}.wu-column-filter-rule{display:flex;flex-direction:column;gap:.375rem;padding-bottom:.625rem;border-bottom:1px solid var(--wu-border)}.wu-column-filter-select.wu-inputtext,.wu-column-filter-rule .wu-inputtext{box-sizing:border-box;width:100%}.wu-column-filter-remove,.wu-column-filter-add{align-self:flex-start}.wu-column-filter-buttons{display:flex;justify-content:space-between;gap:.5rem}.wu-column-filter-clear:focus-visible,.wu-column-filter-bool:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset)}@media (prefers-reduced-motion: reduce){.wu-table-spinner{animation-duration:2s}}@media (pointer: coarse){.wu-reorderable-row-handle{position:relative}.wu-reorderable-row-handle:after{content:\"\";position:absolute;top:50%;right:-.5rem;left:-.5rem;height:max(100%,24px);translate:0 -50%}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: WuPaginator, selector: "wu-paginator" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1462
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuTable, decorators: [{
1463
+ type: Component,
1464
+ args: [{ selector: 'wu-table, wu-datatable', standalone: true, exportAs: 'wuTable', imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, WuPaginator], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: ɵWU_TABLE, useExisting: forwardRef(() => WuTable) }], host: { class: 'wu-table-host' }, template: "<div\n class=\"wu-table p-datatable p-component\"\n [ngClass]=\"styleClass || ''\"\n [ngStyle]=\"style || null\"\n [class.wu-table-gridlines]=\"showGridlines\"\n [class.p-datatable-gridlines]=\"showGridlines\"\n [class.wu-table-striped]=\"stripedRows\"\n [class.p-datatable-striped]=\"stripedRows\"\n [class.wu-table-sm]=\"sizeKey === 'sm'\"\n [class.p-datatable-sm]=\"sizeKey === 'sm'\"\n [class.wu-table-lg]=\"sizeKey === 'lg'\"\n [class.p-datatable-lg]=\"sizeKey === 'lg'\"\n [class.wu-table-hoverable]=\"rowHover\"\n [class.p-datatable-hoverable-rows]=\"rowHover\"\n [class.wu-table-scrollable]=\"scrollable\"\n [class.p-datatable-scrollable]=\"scrollable\"\n [class.wu-table-flex]=\"flexScroll\"\n [class.wu-table-stack]=\"responsiveLayout === 'stack'\"\n [class.p-datatable-responsive-stack]=\"responsiveLayout === 'stack'\"\n [class.p-datatable-responsive-scroll]=\"responsiveLayout !== 'stack'\"\n [class.wu-table-stacked]=\"stacked\"\n [class.wu-table-loading]=\"loading\"\n [attr.aria-busy]=\"loading || null\"\n>\n <div *ngIf=\"showMask\" class=\"wu-table-mask p-datatable-loading-overlay p-component-overlay\">\n <i *ngIf=\"loadingIcon; else spinner\" [class]=\"'wu-table-loading-icon p-datatable-loading-icon ' + loadingIcon\" aria-hidden=\"true\"></i>\n <ng-template #spinner><span class=\"wu-table-spinner\" role=\"status\" [attr.aria-label]=\"t.loading\"></span></ng-template>\n </div>\n <div *ngIf=\"captionTemplate\" class=\"wu-table-header p-datatable-header\">\n <ng-container *ngTemplateOutlet=\"captionTemplate\"></ng-container>\n </div>\n <wu-paginator\n *ngIf=\"showPaginatorTop\"\n class=\"wu-table-paginator p-paginator-top\"\n [styleClass]=\"paginatorStyleClass\"\n [first]=\"pageFirst\"\n [rows]=\"rows\"\n [totalRecords]=\"total\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [showCurrentPageReport]=\"showCurrentPageReport\"\n [currentPageReportTemplate]=\"currentPageReportTemplate\"\n [pageLinkSize]=\"pageLinks\"\n [alwaysShow]=\"alwaysShowPaginator\"\n [leftTemplate]=\"paginatorLeftTemplate\"\n [rightTemplate]=\"paginatorRightTemplate\"\n (onPageChange)=\"pageChange($event)\"\n ></wu-paginator>\n <div class=\"wu-table-wrapper p-datatable-wrapper\" [style.max-height]=\"wrapperMaxHeight\">\n <table class=\"wu-table-table p-datatable-table\" role=\"table\" [ngClass]=\"tableStyleClass || ''\" [ngStyle]=\"tableStyle || null\">\n <ng-container *ngIf=\"colgroupTemplate\"><ng-container *ngTemplateOutlet=\"colgroupTemplate; context: columnsContext\"></ng-container></ng-container>\n <thead *ngIf=\"headerTemplate\" class=\"wu-table-thead p-datatable-thead\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: columnsContext\"></ng-container>\n </thead>\n <tbody *ngIf=\"frozenValue.length && frozenBodyTemplate\" class=\"wu-table-tbody wu-table-frozen-tbody p-datatable-frozen-tbody\">\n <ng-container *ngFor=\"let row of frozenValue; let i = index\">\n <ng-container *ngTemplateOutlet=\"frozenBodyTemplate; context: frozenContext(row, i)\"></ng-container>\n </ng-container>\n </tbody>\n <tbody class=\"wu-table-tbody p-datatable-tbody\">\n <ng-container *ngIf=\"showLoadingBody; else rowsBody\">\n <ng-container *ngTemplateOutlet=\"loadingBodyTemplate; context: columnsContext\"></ng-container>\n </ng-container>\n <ng-template #rowsBody>\n <ng-container *ngIf=\"bodyTemplate\">\n <ng-container *ngFor=\"let row of pageRows; let i = index; trackBy: trackRow\">\n <ng-container *ngIf=\"groupHeaderTemplate && isGroupStart(i)\">\n <ng-container *ngTemplateOutlet=\"groupHeaderTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: rowContext(row, i)\"></ng-container>\n <ng-container *ngIf=\"rowExpansionTemplate && isRowExpanded(row)\">\n <ng-container *ngTemplateOutlet=\"rowExpansionTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"groupFooterTemplate && isGroupEnd(i)\">\n <ng-container *ngTemplateOutlet=\"groupFooterTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"isEmpty && !loading\">\n <ng-container *ngIf=\"emptyTemplate; else defaultEmpty\"><ng-container *ngTemplateOutlet=\"emptyTemplate; context: columnsContext\"></ng-container></ng-container>\n <ng-template #defaultEmpty><tr class=\"wu-table-empty-row\"><td class=\"wu-table-empty\" colspan=\"100\">{{ t.emptyMessage }}</td></tr></ng-template>\n </ng-container>\n </ng-template>\n </tbody>\n <tfoot *ngIf=\"footerTemplate\" class=\"wu-table-tfoot p-datatable-tfoot\">\n <ng-container *ngTemplateOutlet=\"footerTemplate; context: columnsContext\"></ng-container>\n </tfoot>\n </table>\n </div>\n <wu-paginator\n *ngIf=\"showPaginatorBottom\"\n class=\"wu-table-paginator p-paginator-bottom\"\n [styleClass]=\"paginatorStyleClass\"\n [first]=\"pageFirst\"\n [rows]=\"rows\"\n [totalRecords]=\"total\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [showCurrentPageReport]=\"showCurrentPageReport\"\n [currentPageReportTemplate]=\"currentPageReportTemplate\"\n [pageLinkSize]=\"pageLinks\"\n [alwaysShow]=\"alwaysShowPaginator\"\n [leftTemplate]=\"paginatorLeftTemplate\"\n [rightTemplate]=\"paginatorRightTemplate\"\n (onPageChange)=\"pageChange($event)\"\n ></wu-paginator>\n <div *ngIf=\"summaryTemplate\" class=\"wu-table-footer p-datatable-footer\">\n <ng-container *ngTemplateOutlet=\"summaryTemplate\"></ng-container>\n </div>\n</div>\n", styles: ["@layer wiraui.components{wu-table,wu-datatable{display:block;min-width:0}.wu-table{position:relative;display:flex;flex-direction:column;min-width:0;color:var(--wu-text);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-table-flex{height:100%}.wu-table-header{padding:var(--wu-table-header-padding);border:1px solid var(--wu-table-border-color);border-width:var(--wu-table-header-border-width);background:var(--wu-table-header-bg);color:var(--wu-text);font-weight:var(--wu-table-header-weight)}.wu-table-footer{padding:var(--wu-table-header-padding);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-header-bg);font-weight:var(--wu-table-header-weight)}.wu-table-wrapper{position:relative;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}.wu-table-scrollable .wu-table-wrapper{overflow:auto;overscroll-behavior:contain}.wu-table-flex .wu-table-wrapper{flex:1 1 auto;min-height:0}.wu-table-table{width:100%;border-collapse:separate;border-spacing:0}.wu-table-thead>tr>th{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-head-bg);color:var(--wu-table-head-color);font-weight:var(--wu-table-head-weight);text-align:start;vertical-align:middle;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-table-scrollable .wu-table-thead>tr>th{position:sticky;top:0;z-index:1}.wu-table-tbody>tr{height:var(--wu-table-row-height);background:var(--wu-table-row-bg);color:var(--wu-text);transition:background-color var(--wu-transition)}.wu-table-tbody>tr>td{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;text-align:start;vertical-align:middle}.wu-table-tfoot>tr>td,.wu-table-tfoot>tr>th{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-head-bg);color:var(--wu-table-head-color);font-weight:var(--wu-table-head-weight)}.wu-table-tbody>tr:nth-child(even){background:var(--wu-table-stripe-bg, var(--wu-table-row-bg))}.wu-table-striped .wu-table-tbody>tr:nth-child(even){background:var(--wu-table-row-striped-bg)}.wu-table-hoverable .wu-table-tbody>tr:not(.wu-table-empty-row):hover{background:var(--wu-table-row-hover-bg)}.wu-table-tbody>tr.wu-row-contextmenu{outline:2px solid var(--wu-field-focus-border);outline-offset:-2px}.wu-table-tbody>tr.wu-row-selected,.wu-table-hoverable .wu-table-tbody>tr.wu-row-selected:hover{background:var(--wu-table-row-selected-bg);color:var(--wu-table-row-selected-color)}.wu-selectable-row{cursor:pointer}.wu-selectable-row:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-table-gridlines .wu-table-header{border-width:1px}.wu-table-gridlines .wu-table-thead>tr>th,.wu-table-gridlines .wu-table-tbody>tr>td,.wu-table-gridlines .wu-table-tfoot>tr>td,.wu-table-gridlines .wu-table-tfoot>tr>th{border-width:0 1px 1px 0}.wu-table-gridlines .wu-table-thead>tr>th:first-child,.wu-table-gridlines .wu-table-tbody>tr>td:first-child,.wu-table-gridlines .wu-table-tfoot>tr>:first-child{border-left-width:1px}.wu-table-gridlines .wu-table-thead>tr:first-child>th{border-top-width:1px}.wu-table-sm .wu-table-thead>tr>th,.wu-table-sm .wu-table-tbody>tr>td,.wu-table-sm .wu-table-tfoot>tr>*{padding:calc(var(--wu-table-cell-padding-y) * .5) calc(var(--wu-table-cell-padding-x) * .5)}.wu-table-lg .wu-table-thead>tr>th,.wu-table-lg .wu-table-tbody>tr>td,.wu-table-lg .wu-table-tfoot>tr>*{padding:calc(var(--wu-table-cell-padding-y) * 1.25) calc(var(--wu-table-cell-padding-x) * 1.25)}.wu-table-empty{color:var(--wu-text-muted);text-align:center!important}.wu-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.wu-sortable-column:not(.wu-sorted):hover{background:var(--wu-table-head-hover-bg)}.wu-sortable-column.wu-sorted{background:var(--wu-table-sorted-bg);color:var(--wu-table-sorted-color)}.wu-sortable-column:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-sorticon{display:inline-flex;align-items:center;gap:.125rem;margin-left:.375rem;vertical-align:middle;color:var(--wu-text-muted)}.wu-sorticon-svg{width:.875rem;height:.875rem}.wu-sorticon-asc,.wu-sorticon-desc{color:var(--wu-table-sorted-color)}.wu-sorticon-asc .wu-sorticon-down,.wu-sorticon-desc .wu-sorticon-up{opacity:.25}.wu-sorticon-badge{display:inline-grid;place-items:center;min-width:1rem;height:1rem;padding:0 .25rem;border-radius:999px;background:var(--wu-table-sorted-color);color:var(--wu-primary-contrast);font-size:.6875rem;font-weight:700;line-height:1}.wu-sorticon-badge[hidden]{display:none}.wu-table-checkbox{display:inline-flex;vertical-align:middle}.wu-table-mask{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:color-mix(in srgb,var(--wu-card-bg) 60%,transparent)}.wu-table-spinner{width:2rem;height:2rem;border:3px solid var(--wu-primary-color);border-right-color:transparent;border-radius:50%;animation:wu-table-spin .8s linear infinite}.wu-table-loading-icon{font-size:2rem;color:var(--wu-primary-color)}@keyframes wu-table-spin{to{transform:rotate(360deg)}}.wu-table-paginator .wu-paginator{border-width:0 0 1px}.wu-table .p-column-title{display:none}.wu-table-stacked .wu-table-thead>tr>th,.wu-table-stacked .wu-table-tfoot>tr>*{display:none}.wu-table-stacked .wu-table-tbody>tr{display:block;height:auto;border-bottom:1px solid var(--wu-table-border-color)}.wu-table-stacked .wu-table-tbody>tr>td{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:auto!important;border:0!important;text-align:end}.wu-table-stacked .wu-table-tbody>tr>td>.p-column-title{display:inline-block;flex:none;min-width:40%;color:var(--wu-text-muted);font-weight:var(--wu-table-head-weight);text-align:start}.wu-table-stacked .wu-table-tbody>tr.wu-table-empty-row>td{justify-content:center}.wu-table-thead>tr>.wu-frozen-column,.wu-table-tbody>tr>.wu-frozen-column,.wu-table-tfoot>tr>.wu-frozen-column{position:sticky;z-index:1}.wu-table-thead>tr>.wu-frozen-column{z-index:2}.wu-table-tbody>tr>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-bg),var(--wu-table-row-bg)),var(--wu-card-bg)}.wu-table-tbody>tr:nth-child(even)>.wu-frozen-column{background:linear-gradient(var(--wu-table-stripe-bg),var(--wu-table-stripe-bg)),var(--wu-card-bg)}.wu-table-striped .wu-table-tbody>tr:nth-child(even)>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-striped-bg),var(--wu-table-row-striped-bg)),var(--wu-card-bg)}.wu-table-hoverable .wu-table-tbody>tr:not(.wu-table-empty-row):hover>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-hover-bg),var(--wu-table-row-hover-bg)),var(--wu-card-bg)}.wu-table-tbody>tr.wu-row-selected>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-selected-bg),var(--wu-table-row-selected-bg)),var(--wu-card-bg)}.wu-table-stacked .wu-frozen-column{position:static}.wu-table-frozen-tbody>tr>td{background:linear-gradient(var(--wu-table-row-bg),var(--wu-table-row-bg)),var(--wu-card-bg)}.wu-table-scrollable .wu-table-frozen-tbody>tr>td{position:sticky;top:var(--_table-head-height, 0px);z-index:1}.wu-table-frozen-tbody>tr:last-child>td{border-bottom:2px solid var(--wu-table-border-color)}.wu-reorderable-row-handle{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.wu-reorderable-row-handle:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:2px;border-radius:var(--wu-radius-sm)}.wu-table-tbody>tr.wu-row-dragging{opacity:.5}.wu-table-tbody>tr.wu-row-drop-above>td{box-shadow:inset 0 2px 0 var(--wu-primary-color)}.wu-table-tbody>tr.wu-row-drop-below>td{box-shadow:inset 0 -2px 0 var(--wu-primary-color)}wu-tableradiobutton{display:inline-flex}.wu-resizable-column{position:relative;overflow:hidden;text-overflow:ellipsis}.wu-column-resizer{position:absolute;top:0;right:0;bottom:0;width:.5rem;cursor:col-resize;touch-action:none}.wu-resizable-column:not(.wu-resizable-column-off)>.wu-column-resizer:after{content:\"\";position:absolute;top:25%;right:2px;bottom:25%;width:2px;border-radius:1px;background:transparent;transition:background-color var(--wu-transition)}.wu-resizable-column:hover>.wu-column-resizer:after,.wu-column-resizing>.wu-column-resizer:after{background:var(--wu-primary-color)}th:not(.wu-resizable-column)>.wu-column-resizer{display:none}.wu-reorderable-column{cursor:grab}.wu-column-dragging{opacity:.6}.wu-col-drop-before{box-shadow:inset 2px 0 0 var(--wu-primary-color)}.wu-col-drop-after{box-shadow:inset -2px 0 0 var(--wu-primary-color)}.wu-editable-column{cursor:pointer}.wu-editable-column:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-editable-column.wu-cell-editing{padding-top:.25rem;padding-bottom:.25rem;cursor:default}.wu-cell-editing :is(input,select,textarea,.wu-inputtext),.wu-row-editing :is(input,select,textarea,.wu-inputtext){box-sizing:border-box;width:100%;max-width:100%}wu-celleditor{display:contents}.wu-table-tbody>tr.wu-rowgroup-header{background:var(--wu-table-group-bg);color:var(--wu-table-group-color);font-weight:var(--wu-table-head-weight)}.wu-table-tbody>tr.wu-rowgroup-header>:is(td,th):first-child{box-shadow:inset var(--wu-table-group-accent-width) 0 0 var(--wu-primary-color)}.wu-table-tbody>tr:is(.wu-rowgroup-footer,.p-rowgroup-footer){background:var(--wu-table-row-bg);color:var(--wu-text-muted);font-size:.9375em}.wu-table-tbody>tr:is(.wu-rowgroup-footer,.p-rowgroup-footer)>td{border-bottom-width:2px}.wu-row-toggler[aria-expanded=true] .wu-row-toggler-icon{transform:rotate(90deg)}:is(wu-columnfilter,wu-column-filter){display:block;min-width:0}.wu-column-filter{display:flex;align-items:center;gap:.25rem;min-width:0;font-weight:400}.wu-column-filter>:first-child:not(button){flex:1 1 auto;min-width:0}.wu-column-filter-input.wu-inputtext{box-sizing:border-box;width:100%;min-width:0}.wu-column-filter-clear,.wu-column-filter-bool{display:grid;flex:none;place-items:center;box-sizing:border-box;padding:0;cursor:pointer}.wu-column-filter-clear{width:2rem;height:2rem;border:0;border-radius:50%;background:none;color:var(--wu-text-muted)}.wu-column-filter-clear:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-column-filter-bool{width:1.5rem;height:1.5rem;border:1px solid var(--wu-field-border);border-radius:var(--wu-radius-sm);background:var(--wu-field-bg);color:var(--wu-primary-color)}.wu-column-filter-clear svg,.wu-column-filter-bool svg{width:.875rem;height:.875rem}.wu-column-filter-menu{display:inline-flex;vertical-align:middle}.wu-column-filter-menu-button.wu-column-filter-active{background:var(--wu-primary-soft);color:var(--wu-primary-soft-text)}.wu-column-filter-menu-button svg{width:1rem;height:1rem}.wu-column-filter-overlay{position:fixed;inset:auto;z-index:1200;display:flex;flex-direction:column;gap:.625rem;box-sizing:border-box;width:min(18rem,calc(100vw - 1rem));margin:0;padding:.75rem;border:1px solid var(--wu-border);border-radius:var(--wu-radius-md);background:var(--wu-card-bg);color:var(--wu-text);box-shadow:var(--wu-shadow-md);font-family:var(--wu-font-family);font-size:var(--wu-font-size);font-weight:400;text-align:start}.wu-column-filter-rule{display:flex;flex-direction:column;gap:.375rem;padding-bottom:.625rem;border-bottom:1px solid var(--wu-border)}.wu-column-filter-select.wu-inputtext,.wu-column-filter-rule .wu-inputtext{box-sizing:border-box;width:100%}.wu-column-filter-remove,.wu-column-filter-add{align-self:flex-start}.wu-column-filter-buttons{display:flex;justify-content:space-between;gap:.5rem}.wu-column-filter-clear:focus-visible,.wu-column-filter-bool:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset)}@media (prefers-reduced-motion: reduce){.wu-table-spinner{animation-duration:2s}}@media (pointer: coarse){.wu-reorderable-row-handle{position:relative}.wu-reorderable-row-handle:after{content:\"\";position:absolute;top:50%;right:-.5rem;left:-.5rem;height:max(100%,24px);translate:0 -50%}}}\n"] }]
1465
+ }] });
1466
+
1467
+ /** Re-renders a directive's host whenever its table sorts, selects or pages. */
1468
+ class TableChild {
1469
+ constructor() {
1470
+ this.table = inject(ɵWU_TABLE);
1471
+ this.cdr = inject(ChangeDetectorRef);
1472
+ this.sub = this.table.changes.subscribe(() => this.cdr.markForCheck());
1473
+ }
1474
+ ngOnDestroy() {
1475
+ this.sub.unsubscribe();
1476
+ }
1477
+ }
1478
+ TableChild.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TableChild, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1479
+ TableChild.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TableChild, ngImport: i0 });
1480
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TableChild, decorators: [{
1481
+ type: Directive
1482
+ }] });
1483
+ /**
1484
+ * Makes a header cell sort its column: `<th wuSortableColumn="name">ชื่อ <wu-sortIcon field="name" /></th>`.
1485
+ * The `pSortableColumn` attribute existing templates use works the same. Click, Enter or Space sorts; hold Ctrl / ⌘
1486
+ * to add a column in `sortMode="multiple"`.
1487
+ */
1488
+ class WuSortableColumn extends TableChild {
1489
+ constructor() {
1490
+ super(...arguments);
1491
+ this.field = '';
1492
+ this.off = false;
1493
+ }
1494
+ set wuSortableColumn(v) { this.field = v; }
1495
+ set pSortableColumn(v) { this.field = v; }
1496
+ set wuSortableColumnDisabled(v) { this.off = ɵtoBool(v); }
1497
+ set pSortableColumnDisabled(v) { this.off = ɵtoBool(v); }
1498
+ get sortable() {
1499
+ return !this.off;
1500
+ }
1501
+ get v1Sortable() {
1502
+ return !this.off && this.table.major === 1;
1503
+ }
1504
+ get styledSortable() {
1505
+ return !this.off && this.table.major > 1;
1506
+ }
1507
+ get sorted() {
1508
+ return !!this.table.sortOrderOf(this.field);
1509
+ }
1510
+ get v1Sorted() {
1511
+ return this.sorted && this.table.major === 1;
1512
+ }
1513
+ get styledSorted() {
1514
+ return this.sorted && this.table.major > 1;
1515
+ }
1516
+ get ariaSort() {
1517
+ if (this.off)
1518
+ return null;
1519
+ const o = this.table.sortOrderOf(this.field);
1520
+ return o > 0 ? 'ascending' : o < 0 ? 'descending' : 'none';
1521
+ }
1522
+ get tabindex() {
1523
+ return this.off ? null : 0;
1524
+ }
1525
+ click(event) {
1526
+ if (this.off || !this.field)
1527
+ return;
1528
+ // Clicks on controls inside the header (a filter box, a checkbox) do not sort.
1529
+ const t = event.target;
1530
+ if (t && t.closest('input, select, textarea, button, a, wu-select, wu-tableHeaderCheckbox, wu-tableheadercheckbox'))
1531
+ return;
1532
+ this.table.sortBy(this.field, event);
1533
+ }
1534
+ key(event) {
1535
+ if (event.key !== 'Enter' && event.key !== ' ')
1536
+ return;
1537
+ if (event.target !== event.currentTarget)
1538
+ return;
1539
+ event.preventDefault();
1540
+ this.click(event);
1541
+ }
1542
+ }
1543
+ WuSortableColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuSortableColumn, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1544
+ WuSortableColumn.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuSortableColumn, isStandalone: true, selector: "[wuSortableColumn], [pSortableColumn]", inputs: { wuSortableColumn: "wuSortableColumn", pSortableColumn: "pSortableColumn", wuSortableColumnDisabled: "wuSortableColumnDisabled", pSortableColumnDisabled: "pSortableColumnDisabled" }, host: { listeners: { "click": "click($event)", "keydown": "key($event)" }, properties: { "class.wu-sortable-column": "this.sortable", "class.p-sortable-column": "this.v1Sortable", "class.p-datatable-sortable-column": "this.styledSortable", "class.wu-sorted": "this.sorted", "class.p-highlight": "this.v1Sorted", "class.p-datatable-column-sorted": "this.styledSorted", "attr.aria-sort": "this.ariaSort", "attr.tabindex": "this.tabindex" } }, usesInheritance: true, ngImport: i0 });
1545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuSortableColumn, decorators: [{
1546
+ type: Directive,
1547
+ args: [{
1548
+ selector: '[wuSortableColumn], [pSortableColumn]',
1549
+ standalone: true,
1550
+ }]
1551
+ }], propDecorators: { wuSortableColumn: [{
1552
+ type: Input
1553
+ }], pSortableColumn: [{
1554
+ type: Input
1555
+ }], wuSortableColumnDisabled: [{
1556
+ type: Input
1557
+ }], pSortableColumnDisabled: [{
1558
+ type: Input
1559
+ }], sortable: [{
1560
+ type: HostBinding,
1561
+ args: ['class.wu-sortable-column']
1562
+ }], v1Sortable: [{
1563
+ type: HostBinding,
1564
+ args: ['class.p-sortable-column']
1565
+ }], styledSortable: [{
1566
+ type: HostBinding,
1567
+ args: ['class.p-datatable-sortable-column']
1568
+ }], sorted: [{
1569
+ type: HostBinding,
1570
+ args: ['class.wu-sorted']
1571
+ }], v1Sorted: [{
1572
+ type: HostBinding,
1573
+ args: ['class.p-highlight']
1574
+ }], styledSorted: [{
1575
+ type: HostBinding,
1576
+ args: ['class.p-datatable-column-sorted']
1577
+ }], ariaSort: [{
1578
+ type: HostBinding,
1579
+ args: ['attr.aria-sort']
1580
+ }], tabindex: [{
1581
+ type: HostBinding,
1582
+ args: ['attr.tabindex']
1583
+ }], click: [{
1584
+ type: HostListener,
1585
+ args: ['click', ['$event']]
1586
+ }], key: [{
1587
+ type: HostListener,
1588
+ args: ['keydown', ['$event']]
1589
+ }] } });
1590
+ /** The arrow of a sortable column: `<wu-sortIcon field="name" />`. Shows the order and, in multi-sort, its rank. */
1591
+ class WuSortIcon extends TableChild {
1592
+ constructor() {
1593
+ super(...arguments);
1594
+ this.field = '';
1595
+ }
1596
+ get order() {
1597
+ return this.table.sortOrderOf(this.field);
1598
+ }
1599
+ /** Rank in a multi-column sort (1, 2, …), 0 when there is only one level. */
1600
+ get rank() {
1601
+ return this.table.sortIndexOf(this.field);
1602
+ }
1603
+ }
1604
+ WuSortIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuSortIcon, deps: null, target: i0.ɵɵFactoryTarget.Component });
1605
+ WuSortIcon.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuSortIcon, isStandalone: true, selector: "wu-sortIcon, wu-sorticon", inputs: { field: "field" }, host: { properties: { "class.wu-sorticon-asc": "order > 0", "class.wu-sorticon-desc": "order < 0" }, classAttribute: "wu-sorticon" }, usesInheritance: true, ngImport: i0, template: `<svg class="wu-sorticon-svg p-sortable-column-icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
1606
+ <path class="wu-sorticon-up" d="m5 6 3-3 3 3"></path>
1607
+ <path class="wu-sorticon-down" d="m5 10 3 3 3-3"></path></svg
1608
+ ><span class="wu-sorticon-badge p-sortable-column-badge" [hidden]="rank < 1">{{ rank }}</span>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1609
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuSortIcon, decorators: [{
1610
+ type: Component,
1611
+ args: [{
1612
+ selector: 'wu-sortIcon, wu-sorticon',
1613
+ standalone: true,
1614
+ template: `<svg class="wu-sorticon-svg p-sortable-column-icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
1615
+ <path class="wu-sorticon-up" d="m5 6 3-3 3 3"></path>
1616
+ <path class="wu-sorticon-down" d="m5 10 3 3 3-3"></path></svg
1617
+ ><span class="wu-sorticon-badge p-sortable-column-badge" [hidden]="rank < 1">{{ rank }}</span>`,
1618
+ encapsulation: ViewEncapsulation.None,
1619
+ changeDetection: ChangeDetectionStrategy.OnPush,
1620
+ host: {
1621
+ class: 'wu-sorticon',
1622
+ '[class.wu-sorticon-asc]': 'order > 0',
1623
+ '[class.wu-sorticon-desc]': 'order < 0',
1624
+ },
1625
+ }]
1626
+ }], propDecorators: { field: [{
1627
+ type: Input
1628
+ }] } });
1629
+ /**
1630
+ * Makes a row selectable by click, Enter or Space: `<tr [wuSelectableRow]="row" [wuSelectableRowIndex]="i">`.
1631
+ * The `pSelectableRow` attribute existing templates use works the same.
1632
+ */
1633
+ class WuSelectableRow extends TableChild {
1634
+ constructor() {
1635
+ super(...arguments);
1636
+ this.off = false;
1637
+ this.el = inject(ElementRef).nativeElement;
1638
+ }
1639
+ set wuSelectableRow(v) { this.row = v; }
1640
+ set pSelectableRow(v) { this.row = v; }
1641
+ set wuSelectableRowIndex(v) { this.index = v; }
1642
+ set pSelectableRowIndex(v) { this.index = v; }
1643
+ set wuSelectableRowDisabled(v) { this.off = ɵtoBool(v); }
1644
+ set pSelectableRowDisabled(v) { this.off = ɵtoBool(v); }
1645
+ get selectable() {
1646
+ return !this.off;
1647
+ }
1648
+ get v1Selectable() {
1649
+ return !this.off && this.table.major === 1;
1650
+ }
1651
+ get styledSelectable() {
1652
+ return !this.off && this.table.major > 1;
1653
+ }
1654
+ get selected() {
1655
+ return this.table.isSelected(this.row);
1656
+ }
1657
+ get v1Selected() {
1658
+ return this.selected && this.table.major === 1;
1659
+ }
1660
+ get styledSelected() {
1661
+ return this.selected && this.table.major > 1;
1662
+ }
1663
+ get ariaSelected() {
1664
+ return this.off ? null : this.selected;
1665
+ }
1666
+ get tabindex() {
1667
+ return this.off ? null : 0;
1668
+ }
1669
+ click(event) {
1670
+ if (this.off)
1671
+ return;
1672
+ const t = event.target;
1673
+ // Buttons, links and fields inside the row do their own thing.
1674
+ if (t && t !== this.el && t.closest('button, a, input, select, textarea, wu-select, wu-checkbox, wu-tableCheckbox, wu-tablecheckbox, [contenteditable]'))
1675
+ return;
1676
+ this.table.toggleRow(this.row, event, this.index, 'row');
1677
+ }
1678
+ key(event) {
1679
+ if (event.target !== this.el)
1680
+ return;
1681
+ if (event.key === 'Enter' || event.key === ' ') {
1682
+ event.preventDefault();
1683
+ this.table.toggleRow(this.row, event, this.index, 'row');
1684
+ }
1685
+ else if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
1686
+ event.preventDefault();
1687
+ const sib = (event.key === 'ArrowDown' ? this.el.nextElementSibling : this.el.previousElementSibling);
1688
+ if (sib && sib.tabIndex >= 0)
1689
+ sib.focus();
1690
+ }
1691
+ }
1692
+ }
1693
+ WuSelectableRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuSelectableRow, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1694
+ WuSelectableRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuSelectableRow, isStandalone: true, selector: "[wuSelectableRow], [pSelectableRow]", inputs: { wuSelectableRow: "wuSelectableRow", pSelectableRow: "pSelectableRow", wuSelectableRowIndex: "wuSelectableRowIndex", pSelectableRowIndex: "pSelectableRowIndex", wuSelectableRowDisabled: "wuSelectableRowDisabled", pSelectableRowDisabled: "pSelectableRowDisabled" }, host: { listeners: { "click": "click($event)", "keydown": "key($event)" }, properties: { "class.wu-selectable-row": "this.selectable", "class.p-selectable-row": "this.v1Selectable", "class.p-datatable-selectable-row": "this.styledSelectable", "class.wu-row-selected": "this.selected", "class.p-highlight": "this.v1Selected", "class.p-datatable-row-selected": "this.styledSelected", "attr.aria-selected": "this.ariaSelected", "attr.tabindex": "this.tabindex" } }, usesInheritance: true, ngImport: i0 });
1695
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuSelectableRow, decorators: [{
1696
+ type: Directive,
1697
+ args: [{
1698
+ selector: '[wuSelectableRow], [pSelectableRow]',
1699
+ standalone: true,
1700
+ }]
1701
+ }], propDecorators: { wuSelectableRow: [{
1702
+ type: Input
1703
+ }], pSelectableRow: [{
1704
+ type: Input
1705
+ }], wuSelectableRowIndex: [{
1706
+ type: Input
1707
+ }], pSelectableRowIndex: [{
1708
+ type: Input
1709
+ }], wuSelectableRowDisabled: [{
1710
+ type: Input
1711
+ }], pSelectableRowDisabled: [{
1712
+ type: Input
1713
+ }], selectable: [{
1714
+ type: HostBinding,
1715
+ args: ['class.wu-selectable-row']
1716
+ }], v1Selectable: [{
1717
+ type: HostBinding,
1718
+ args: ['class.p-selectable-row']
1719
+ }], styledSelectable: [{
1720
+ type: HostBinding,
1721
+ args: ['class.p-datatable-selectable-row']
1722
+ }], selected: [{
1723
+ type: HostBinding,
1724
+ args: ['class.wu-row-selected']
1725
+ }], v1Selected: [{
1726
+ type: HostBinding,
1727
+ args: ['class.p-highlight']
1728
+ }], styledSelected: [{
1729
+ type: HostBinding,
1730
+ args: ['class.p-datatable-row-selected']
1731
+ }], ariaSelected: [{
1732
+ type: HostBinding,
1733
+ args: ['attr.aria-selected']
1734
+ }], tabindex: [{
1735
+ type: HostBinding,
1736
+ args: ['attr.tabindex']
1737
+ }], click: [{
1738
+ type: HostListener,
1739
+ args: ['click', ['$event']]
1740
+ }], key: [{
1741
+ type: HostListener,
1742
+ args: ['keydown', ['$event']]
1743
+ }] } });
1744
+ const CHECK_SVG = '<svg class="wu-checkbox-icon p-checkbox-icon" viewBox="0 0 24 24"><path d="M20 6 9 17l-5-5"></path></svg>';
1745
+ /** A row's checkbox in `selectionMode="multiple"` tables: `<td><wu-tableCheckbox [value]="row" /></td>`. */
1746
+ class WuTableCheckbox extends TableChild {
1747
+ set disabled(v) { this._disabled = ɵtoBool(v); }
1748
+ get disabled() { return this._disabled; }
1749
+ constructor() {
1750
+ super();
1751
+ this._disabled = false;
1752
+ this.config = inject(WuConfig);
1753
+ inject(ɵWuStyleLoader).load('checkbox', ɵWU_CHECKBOX_CSS);
1754
+ }
1755
+ get t() {
1756
+ return this.config.translation;
1757
+ }
1758
+ get checked() {
1759
+ return this.table.isSelected(this.value);
1760
+ }
1761
+ toggle(event) {
1762
+ this.table.toggleRow(this.value, event, this.index, 'checkbox');
1763
+ }
1764
+ }
1765
+ WuTableCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuTableCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
1766
+ WuTableCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuTableCheckbox, isStandalone: true, selector: "wu-tableCheckbox, wu-tablecheckbox", inputs: { value: "value", index: "index", disabled: "disabled", ariaLabel: "ariaLabel" }, host: { classAttribute: "wu-table-checkbox p-element" }, usesInheritance: true, ngImport: i0, template: "<label class=\"wu-checkbox\" [class.wu-checkbox-checked]=\"checked\" [class.wu-checkbox-disabled]=\"disabled\">\n <input type=\"checkbox\" class=\"wu-checkbox-input\" [checked]=\"checked\" [disabled]=\"disabled\" [attr.aria-label]=\"ariaLabel || t.selectRow\" (change)=\"toggle($event)\" />\n <span class=\"wu-checkbox-control p-checkbox p-component\" [class.p-checkbox-checked]=\"checked\" aria-hidden=\"true\">\n <span class=\"wu-checkbox-box p-checkbox-box\" [class.p-highlight]=\"checked\"><svg class=\"wu-checkbox-icon p-checkbox-icon\" viewBox=\"0 0 24 24\"><path d=\"M20 6 9 17l-5-5\"></path></svg></span>\n </span>\n </label>", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1767
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuTableCheckbox, decorators: [{
1768
+ type: Component,
1769
+ args: [{
1770
+ selector: 'wu-tableCheckbox, wu-tablecheckbox',
1771
+ standalone: true,
1772
+ template: `<label class="wu-checkbox" [class.wu-checkbox-checked]="checked" [class.wu-checkbox-disabled]="disabled">
1773
+ <input type="checkbox" class="wu-checkbox-input" [checked]="checked" [disabled]="disabled" [attr.aria-label]="ariaLabel || t.selectRow" (change)="toggle($event)" />
1774
+ <span class="wu-checkbox-control p-checkbox p-component" [class.p-checkbox-checked]="checked" aria-hidden="true">
1775
+ <span class="wu-checkbox-box p-checkbox-box" [class.p-highlight]="checked">${CHECK_SVG}</span>
1776
+ </span>
1777
+ </label>`,
1778
+ encapsulation: ViewEncapsulation.None,
1779
+ changeDetection: ChangeDetectionStrategy.OnPush,
1780
+ host: { class: 'wu-table-checkbox p-element' },
1781
+ }]
1782
+ }], ctorParameters: function () { return []; }, propDecorators: { value: [{
1783
+ type: Input
1784
+ }], index: [{
1785
+ type: Input
1786
+ }], disabled: [{
1787
+ type: Input
1788
+ }], ariaLabel: [{
1789
+ type: Input
1790
+ }] } });
1791
+ /** Select or clear every row (every row the search leaves): `<th><wu-tableHeaderCheckbox /></th>`. */
1792
+ class WuTableHeaderCheckbox extends TableChild {
1793
+ set disabled(v) { this._disabled = ɵtoBool(v); }
1794
+ get disabled() { return this._disabled || !this.table.hasRows; }
1795
+ constructor() {
1796
+ super();
1797
+ this._disabled = false;
1798
+ this.config = inject(WuConfig);
1799
+ inject(ɵWuStyleLoader).load('checkbox', ɵWU_CHECKBOX_CSS);
1800
+ }
1801
+ get t() {
1802
+ return this.config.translation;
1803
+ }
1804
+ get checked() {
1805
+ return this.table.allSelected;
1806
+ }
1807
+ get mixed() {
1808
+ return !this.table.allSelected && this.table.someSelected;
1809
+ }
1810
+ toggle(event) {
1811
+ this.table.toggleAll(event);
1812
+ }
1813
+ }
1814
+ WuTableHeaderCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuTableHeaderCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
1815
+ WuTableHeaderCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuTableHeaderCheckbox, isStandalone: true, selector: "wu-tableHeaderCheckbox, wu-tableheadercheckbox", inputs: { disabled: "disabled", ariaLabel: "ariaLabel" }, host: { classAttribute: "wu-table-checkbox p-element" }, usesInheritance: true, ngImport: i0, template: "<label class=\"wu-checkbox\" [class.wu-checkbox-checked]=\"checked\" [class.wu-checkbox-disabled]=\"disabled\">\n <input\n type=\"checkbox\"\n class=\"wu-checkbox-input\"\n [checked]=\"checked\"\n [indeterminate]=\"mixed\"\n [disabled]=\"disabled\"\n [attr.aria-label]=\"ariaLabel || t.selectAll\"\n (change)=\"toggle($event)\"\n />\n <span class=\"wu-checkbox-control p-checkbox p-component\" [class.p-checkbox-checked]=\"checked\" aria-hidden=\"true\">\n <span class=\"wu-checkbox-box p-checkbox-box\" [class.p-highlight]=\"checked\" [class.wu-checkbox-mixed]=\"mixed\"><svg class=\"wu-checkbox-icon p-checkbox-icon\" viewBox=\"0 0 24 24\"><path d=\"M20 6 9 17l-5-5\"></path></svg></span>\n </span>\n </label>", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1816
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuTableHeaderCheckbox, decorators: [{
1817
+ type: Component,
1818
+ args: [{
1819
+ selector: 'wu-tableHeaderCheckbox, wu-tableheadercheckbox',
1820
+ standalone: true,
1821
+ template: `<label class="wu-checkbox" [class.wu-checkbox-checked]="checked" [class.wu-checkbox-disabled]="disabled">
1822
+ <input
1823
+ type="checkbox"
1824
+ class="wu-checkbox-input"
1825
+ [checked]="checked"
1826
+ [indeterminate]="mixed"
1827
+ [disabled]="disabled"
1828
+ [attr.aria-label]="ariaLabel || t.selectAll"
1829
+ (change)="toggle($event)"
1830
+ />
1831
+ <span class="wu-checkbox-control p-checkbox p-component" [class.p-checkbox-checked]="checked" aria-hidden="true">
1832
+ <span class="wu-checkbox-box p-checkbox-box" [class.p-highlight]="checked" [class.wu-checkbox-mixed]="mixed">${CHECK_SVG}</span>
1833
+ </span>
1834
+ </label>`,
1835
+ encapsulation: ViewEncapsulation.None,
1836
+ changeDetection: ChangeDetectionStrategy.OnPush,
1837
+ host: { class: 'wu-table-checkbox p-element' },
1838
+ }]
1839
+ }], ctorParameters: function () { return []; }, propDecorators: { disabled: [{
1840
+ type: Input
1841
+ }], ariaLabel: [{
1842
+ type: Input
1843
+ }] } });
1844
+ /**
1845
+ * Keeps a column in view while the table scrolls sideways: `<th wuFrozenColumn>` / `<td wuFrozenColumn>` (or the
1846
+ * `pFrozenColumn` attribute). `alignFrozen="right"` pins it to the right edge instead; `[frozen]="false"` lets it go.
1847
+ * Each frozen cell sits after the frozen cells before it in its row.
1848
+ */
1849
+ class WuFrozenColumn extends TableChild {
1850
+ constructor() {
1851
+ super(...arguments);
1852
+ this._frozen = true;
1853
+ this._align = 'left';
1854
+ this.frame = 0;
1855
+ this.resize = null;
1856
+ this.el = inject(ElementRef).nativeElement;
1857
+ this.onChange = this.table.changes.subscribe(() => this.schedule());
1858
+ }
1859
+ set frozen(v) {
1860
+ this._frozen = v === undefined || v === '' || ɵtoBool(v);
1861
+ this.schedule();
1862
+ }
1863
+ get frozen() {
1864
+ return this._frozen;
1865
+ }
1866
+ set alignFrozen(v) {
1867
+ this._align = v === 'right' ? 'right' : 'left';
1868
+ this.schedule();
1869
+ }
1870
+ get isFrozen() {
1871
+ return this._frozen;
1872
+ }
1873
+ get v1Frozen() {
1874
+ return this._frozen;
1875
+ }
1876
+ get styledFrozen() {
1877
+ return this._frozen && this.table.major > 1;
1878
+ }
1879
+ get right() {
1880
+ return this._frozen && this._align === 'right';
1881
+ }
1882
+ ngAfterViewInit() {
1883
+ this.schedule();
1884
+ const table = this.el.closest('table');
1885
+ const win = this.el.ownerDocument.defaultView;
1886
+ if (table && win?.ResizeObserver) {
1887
+ this.resize = new win.ResizeObserver(() => this.schedule());
1888
+ this.resize.observe(table);
1889
+ }
1890
+ }
1891
+ ngOnDestroy() {
1892
+ this.onChange.unsubscribe();
1893
+ this.resize?.disconnect();
1894
+ const win = this.el.ownerDocument.defaultView;
1895
+ if (this.frame && win)
1896
+ win.cancelAnimationFrame(this.frame);
1897
+ super.ngOnDestroy();
1898
+ }
1899
+ /** Offsets: the widths of the frozen cells before (or after, when right-aligned) this one in its row. */
1900
+ updateStickyPosition() {
1901
+ const style = this.el.style;
1902
+ if (!this._frozen) {
1903
+ style.left = '';
1904
+ style.right = '';
1905
+ return;
1906
+ }
1907
+ let offset = 0;
1908
+ if (this._align === 'right') {
1909
+ for (let n = this.el.nextElementSibling; n; n = n.nextElementSibling) {
1910
+ if (n.classList.contains('wu-frozen-column-right'))
1911
+ offset += n.offsetWidth;
1912
+ }
1913
+ style.left = '';
1914
+ style.right = `${offset}px`;
1915
+ }
1916
+ else {
1917
+ for (let n = this.el.previousElementSibling; n; n = n.previousElementSibling) {
1918
+ if (n.classList.contains('wu-frozen-column') && !n.classList.contains('wu-frozen-column-right'))
1919
+ offset += n.offsetWidth;
1920
+ }
1921
+ style.right = '';
1922
+ style.left = `${offset}px`;
1923
+ }
1924
+ }
1925
+ schedule() {
1926
+ const win = this.el.ownerDocument?.defaultView;
1927
+ if (!win || this.frame)
1928
+ return;
1929
+ this.frame = win.requestAnimationFrame(() => {
1930
+ this.frame = 0;
1931
+ this.updateStickyPosition();
1932
+ });
1933
+ }
1934
+ }
1935
+ WuFrozenColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuFrozenColumn, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1936
+ WuFrozenColumn.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuFrozenColumn, isStandalone: true, selector: "[wuFrozenColumn], [pFrozenColumn]", inputs: { frozen: "frozen", alignFrozen: "alignFrozen" }, host: { properties: { "class.wu-frozen-column": "this.isFrozen", "class.p-frozen-column": "this.v1Frozen", "class.p-datatable-frozen-column": "this.styledFrozen", "class.wu-frozen-column-right": "this.right" } }, usesInheritance: true, ngImport: i0 });
1937
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuFrozenColumn, decorators: [{
1938
+ type: Directive,
1939
+ args: [{
1940
+ selector: '[wuFrozenColumn], [pFrozenColumn]',
1941
+ standalone: true,
1942
+ }]
1943
+ }], propDecorators: { frozen: [{
1944
+ type: Input
1945
+ }], alignFrozen: [{
1946
+ type: Input
1947
+ }], isFrozen: [{
1948
+ type: HostBinding,
1949
+ args: ['class.wu-frozen-column']
1950
+ }], v1Frozen: [{
1951
+ type: HostBinding,
1952
+ args: ['class.p-frozen-column']
1953
+ }], styledFrozen: [{
1954
+ type: HostBinding,
1955
+ args: ['class.p-datatable-frozen-column']
1956
+ }], right: [{
1957
+ type: HostBinding,
1958
+ args: ['class.wu-frozen-column-right']
1959
+ }] } });
1960
+ /**
1961
+ * Opens and closes a row's `rowexpansion` template: `<button type="button" [wuRowToggler]="row">` (or
1962
+ * `[pRowToggler]`). Sets `aria-expanded`; read `let-expanded="expanded"` in the body template to turn its icon.
1963
+ */
1964
+ class WuRowToggler extends TableChild {
1965
+ constructor() {
1966
+ super(...arguments);
1967
+ this.off = false;
1968
+ this.cls = true;
1969
+ }
1970
+ set wuRowToggler(v) { this.row = v; }
1971
+ set pRowToggler(v) { this.row = v; }
1972
+ set wuRowTogglerDisabled(v) { this.off = ɵtoBool(v); }
1973
+ set pRowTogglerDisabled(v) { this.off = ɵtoBool(v); }
1974
+ get expanded() {
1975
+ return this.table.isRowExpanded(this.row);
1976
+ }
1977
+ click(event) {
1978
+ if (this.off)
1979
+ return;
1980
+ event.preventDefault();
1981
+ this.table.toggleRowExpansion(this.row, event);
1982
+ }
1983
+ }
1984
+ WuRowToggler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuRowToggler, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1985
+ WuRowToggler.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuRowToggler, isStandalone: true, selector: "[wuRowToggler], [pRowToggler]", inputs: { wuRowToggler: "wuRowToggler", pRowToggler: "pRowToggler", wuRowTogglerDisabled: "wuRowTogglerDisabled", pRowTogglerDisabled: "pRowTogglerDisabled" }, host: { listeners: { "click": "click($event)" }, properties: { "class.wu-row-toggler": "this.cls", "attr.aria-expanded": "this.expanded" } }, usesInheritance: true, ngImport: i0 });
1986
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuRowToggler, decorators: [{
1987
+ type: Directive,
1988
+ args: [{
1989
+ selector: '[wuRowToggler], [pRowToggler]',
1990
+ standalone: true,
1991
+ }]
1992
+ }], propDecorators: { wuRowToggler: [{
1993
+ type: Input
1994
+ }], pRowToggler: [{
1995
+ type: Input
1996
+ }], wuRowTogglerDisabled: [{
1997
+ type: Input
1998
+ }], pRowTogglerDisabled: [{
1999
+ type: Input
2000
+ }], cls: [{
2001
+ type: HostBinding,
2002
+ args: ['class.wu-row-toggler']
2003
+ }], expanded: [{
2004
+ type: HostBinding,
2005
+ args: ['attr.aria-expanded']
2006
+ }], click: [{
2007
+ type: HostListener,
2008
+ args: ['click', ['$event']]
2009
+ }] } });
2010
+ /** The row a `groupheader` template draws: `<tr wuRowGroupHeader>` (or `pRowGroupHeader`). Stays under the header while a scrollable table scrolls. */
2011
+ class WuRowGroupHeader {
2012
+ }
2013
+ WuRowGroupHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuRowGroupHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2014
+ WuRowGroupHeader.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuRowGroupHeader, isStandalone: true, selector: "[wuRowGroupHeader], [pRowGroupHeader]", host: { classAttribute: "wu-rowgroup-header p-rowgroup-header" }, ngImport: i0 });
2015
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuRowGroupHeader, decorators: [{
2016
+ type: Directive,
2017
+ args: [{
2018
+ selector: '[wuRowGroupHeader], [pRowGroupHeader]',
2019
+ standalone: true,
2020
+ host: { class: 'wu-rowgroup-header p-rowgroup-header' },
2021
+ }]
2022
+ }] });
2023
+ const RADIO_DOT = '<span class="wu-radiobutton-dot p-radiobutton-icon"></span>';
2024
+ /** A row's radio button in `selectionMode="single"` tables: `<td><wu-tableRadioButton [value]="row" /></td>`. */
2025
+ class WuTableRadioButton extends TableChild {
2026
+ set disabled(v) { this._disabled = ɵtoBool(v); }
2027
+ get disabled() { return this._disabled || !this.table.isRowSelectable(this.value, this.index); }
2028
+ constructor() {
2029
+ super();
2030
+ this._disabled = false;
2031
+ this.config = inject(WuConfig);
2032
+ inject(ɵWuStyleLoader).load('radiobutton', ɵWU_RADIOBUTTON_CSS);
2033
+ }
2034
+ get t() {
2035
+ return this.config.translation;
2036
+ }
2037
+ get checked() {
2038
+ return this.table.isSelected(this.value);
2039
+ }
2040
+ pick(event) {
2041
+ this.table.toggleRow(this.value, event, this.index, 'radio');
2042
+ }
2043
+ }
2044
+ WuTableRadioButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuTableRadioButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
2045
+ WuTableRadioButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuTableRadioButton, isStandalone: true, selector: "wu-tableRadioButton, wu-tableradiobutton", inputs: { value: "value", index: "index", disabled: "disabled", ariaLabel: "ariaLabel" }, host: { classAttribute: "wu-table-radiobutton p-element" }, usesInheritance: true, ngImport: i0, template: "<label class=\"wu-radiobutton\" [class.wu-radiobutton-checked]=\"checked\" [class.wu-radiobutton-disabled]=\"disabled\">\n <input type=\"radio\" class=\"wu-radiobutton-input\" [checked]=\"checked\" [disabled]=\"disabled\" [attr.aria-label]=\"ariaLabel || t.selectRow\" (change)=\"pick($event)\" />\n <span class=\"wu-radiobutton-control p-radiobutton p-component\" [class.p-radiobutton-checked]=\"checked\" aria-hidden=\"true\">\n <span class=\"wu-radiobutton-box p-radiobutton-box\" [class.p-highlight]=\"checked\"><span class=\"wu-radiobutton-dot p-radiobutton-icon\"></span></span>\n </span>\n </label>", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2046
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuTableRadioButton, decorators: [{
2047
+ type: Component,
2048
+ args: [{
2049
+ selector: 'wu-tableRadioButton, wu-tableradiobutton',
2050
+ standalone: true,
2051
+ template: `<label class="wu-radiobutton" [class.wu-radiobutton-checked]="checked" [class.wu-radiobutton-disabled]="disabled">
2052
+ <input type="radio" class="wu-radiobutton-input" [checked]="checked" [disabled]="disabled" [attr.aria-label]="ariaLabel || t.selectRow" (change)="pick($event)" />
2053
+ <span class="wu-radiobutton-control p-radiobutton p-component" [class.p-radiobutton-checked]="checked" aria-hidden="true">
2054
+ <span class="wu-radiobutton-box p-radiobutton-box" [class.p-highlight]="checked">${RADIO_DOT}</span>
2055
+ </span>
2056
+ </label>`,
2057
+ encapsulation: ViewEncapsulation.None,
2058
+ changeDetection: ChangeDetectionStrategy.OnPush,
2059
+ host: { class: 'wu-table-radiobutton p-element' },
2060
+ }]
2061
+ }], ctorParameters: function () { return []; }, propDecorators: { value: [{
2062
+ type: Input
2063
+ }], index: [{
2064
+ type: Input
2065
+ }], disabled: [{
2066
+ type: Input
2067
+ }], ariaLabel: [{
2068
+ type: Input
2069
+ }] } });
2070
+ /** Selects a row on double click: `<tr [wuSelectableRowDblClick]="row">` (or `pSelectableRowDblClick`). */
2071
+ class WuSelectableRowDblClick extends TableChild {
2072
+ set wuSelectableRowDblClick(v) { this.row = v; }
2073
+ set pSelectableRowDblClick(v) { this.row = v; }
2074
+ set wuSelectableRowIndex(v) { this.index = v; }
2075
+ set pSelectableRowIndex(v) { this.index = v; }
2076
+ get selected() {
2077
+ return this.table.isSelected(this.row);
2078
+ }
2079
+ get v1Selected() {
2080
+ return this.selected && this.table.major === 1;
2081
+ }
2082
+ dblclick(event) {
2083
+ this.table.toggleRow(this.row, event, this.index, 'row');
2084
+ }
2085
+ }
2086
+ WuSelectableRowDblClick.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuSelectableRowDblClick, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2087
+ WuSelectableRowDblClick.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuSelectableRowDblClick, isStandalone: true, selector: "[wuSelectableRowDblClick], [pSelectableRowDblClick]", inputs: { wuSelectableRowDblClick: "wuSelectableRowDblClick", pSelectableRowDblClick: "pSelectableRowDblClick", wuSelectableRowIndex: "wuSelectableRowIndex", pSelectableRowIndex: "pSelectableRowIndex" }, host: { listeners: { "dblclick": "dblclick($event)" }, properties: { "class.wu-row-selected": "this.selected", "class.p-highlight": "this.v1Selected" } }, usesInheritance: true, ngImport: i0 });
2088
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuSelectableRowDblClick, decorators: [{
2089
+ type: Directive,
2090
+ args: [{
2091
+ selector: '[wuSelectableRowDblClick], [pSelectableRowDblClick]',
2092
+ standalone: true,
2093
+ }]
2094
+ }], propDecorators: { wuSelectableRowDblClick: [{
2095
+ type: Input
2096
+ }], pSelectableRowDblClick: [{
2097
+ type: Input
2098
+ }], wuSelectableRowIndex: [{
2099
+ type: Input
2100
+ }], pSelectableRowIndex: [{
2101
+ type: Input
2102
+ }], selected: [{
2103
+ type: HostBinding,
2104
+ args: ['class.wu-row-selected']
2105
+ }], v1Selected: [{
2106
+ type: HostBinding,
2107
+ args: ['class.p-highlight']
2108
+ }], dblclick: [{
2109
+ type: HostListener,
2110
+ args: ['dblclick', ['$event']]
2111
+ }] } });
2112
+ /**
2113
+ * Opens the table's context menu on a right-click of this row: `<tr [wuContextMenuRow]="row">` (or `pContextMenuRow`)
2114
+ * with `<wu-table [contextMenu]="cm" [(contextMenuSelection)]="picked">`. The row gets an outline while it is the one.
2115
+ */
2116
+ class WuContextMenuRow extends TableChild {
2117
+ constructor() {
2118
+ super(...arguments);
2119
+ this.disabled = false;
2120
+ }
2121
+ set wuContextMenuRow(v) { this.row = v; }
2122
+ set pContextMenuRow(v) { this.row = v; }
2123
+ set wuContextMenuRowIndex(v) { this.index = v; }
2124
+ set pContextMenuRowIndex(v) { this.index = v; }
2125
+ set wuContextMenuRowDisabled(v) { this.disabled = ɵtoBool(v); }
2126
+ set pContextMenuRowDisabled(v) { this.disabled = ɵtoBool(v); }
2127
+ get current() {
2128
+ return this.table.isContextMenuRow(this.row);
2129
+ }
2130
+ get v1Current() {
2131
+ return this.current;
2132
+ }
2133
+ contextmenu(event) {
2134
+ if (!this.disabled)
2135
+ this.table.rowContextMenu(event, this.row, this.index);
2136
+ }
2137
+ }
2138
+ WuContextMenuRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuContextMenuRow, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2139
+ WuContextMenuRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuContextMenuRow, isStandalone: true, selector: "[wuContextMenuRow], [pContextMenuRow]", inputs: { wuContextMenuRow: "wuContextMenuRow", pContextMenuRow: "pContextMenuRow", wuContextMenuRowIndex: "wuContextMenuRowIndex", pContextMenuRowIndex: "pContextMenuRowIndex", wuContextMenuRowDisabled: "wuContextMenuRowDisabled", pContextMenuRowDisabled: "pContextMenuRowDisabled" }, host: { listeners: { "contextmenu": "contextmenu($event)" }, properties: { "class.wu-row-contextmenu": "this.current", "class.p-highlight-contextmenu": "this.v1Current" } }, usesInheritance: true, ngImport: i0 });
2140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuContextMenuRow, decorators: [{
2141
+ type: Directive,
2142
+ args: [{
2143
+ selector: '[wuContextMenuRow], [pContextMenuRow]',
2144
+ standalone: true,
2145
+ }]
2146
+ }], propDecorators: { wuContextMenuRow: [{
2147
+ type: Input
2148
+ }], pContextMenuRow: [{
2149
+ type: Input
2150
+ }], wuContextMenuRowIndex: [{
2151
+ type: Input
2152
+ }], pContextMenuRowIndex: [{
2153
+ type: Input
2154
+ }], wuContextMenuRowDisabled: [{
2155
+ type: Input
2156
+ }], pContextMenuRowDisabled: [{
2157
+ type: Input
2158
+ }], current: [{
2159
+ type: HostBinding,
2160
+ args: ['class.wu-row-contextmenu']
2161
+ }], v1Current: [{
2162
+ type: HostBinding,
2163
+ args: ['class.p-highlight-contextmenu']
2164
+ }], contextmenu: [{
2165
+ type: HostListener,
2166
+ args: ['contextmenu', ['$event']]
2167
+ }] } });
2168
+ /**
2169
+ * A row that can be dragged to a new place: `<tr [wuReorderableRow]="i">` (or `pReorderableRow`), dragged by an element
2170
+ * inside it marked `wuReorderableRowHandle` (`pReorderableRowHandle`). The table changes `value` in place and emits
2171
+ * `(onRowReorder)`. The handle also answers ↑ / ↓ from the keyboard.
2172
+ */
2173
+ class WuReorderableRow {
2174
+ constructor() {
2175
+ this.index = -1;
2176
+ this.off = false;
2177
+ }
2178
+ set wuReorderableRow(v) { this.index = Number(v); }
2179
+ set pReorderableRow(v) { this.index = Number(v); }
2180
+ set wuReorderableRowDisabled(v) { this.off = ɵtoBool(v); }
2181
+ set pReorderableRowDisabled(v) { this.off = ɵtoBool(v); }
2182
+ get dataIndex() {
2183
+ return this.off ? null : this.index;
2184
+ }
2185
+ get reorderable() {
2186
+ return !this.off;
2187
+ }
2188
+ }
2189
+ WuReorderableRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuReorderableRow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2190
+ WuReorderableRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuReorderableRow, isStandalone: true, selector: "[wuReorderableRow], [pReorderableRow]", inputs: { wuReorderableRow: "wuReorderableRow", pReorderableRow: "pReorderableRow", wuReorderableRowDisabled: "wuReorderableRowDisabled", pReorderableRowDisabled: "pReorderableRowDisabled" }, host: { properties: { "attr.data-wu-row-index": "this.dataIndex", "class.wu-reorderable-row": "this.reorderable" } }, ngImport: i0 });
2191
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuReorderableRow, decorators: [{
2192
+ type: Directive,
2193
+ args: [{
2194
+ selector: '[wuReorderableRow], [pReorderableRow]',
2195
+ standalone: true,
2196
+ }]
2197
+ }], propDecorators: { wuReorderableRow: [{
2198
+ type: Input
2199
+ }], pReorderableRow: [{
2200
+ type: Input
2201
+ }], wuReorderableRowDisabled: [{
2202
+ type: Input
2203
+ }], pReorderableRowDisabled: [{
2204
+ type: Input
2205
+ }], dataIndex: [{
2206
+ type: HostBinding,
2207
+ args: ['attr.data-wu-row-index']
2208
+ }], reorderable: [{
2209
+ type: HostBinding,
2210
+ args: ['class.wu-reorderable-row']
2211
+ }] } });
2212
+ /** The grip of a reorderable row. */
2213
+ class WuReorderableRowHandle {
2214
+ constructor() {
2215
+ this.table = inject(ɵWU_TABLE);
2216
+ this.row = inject(WuReorderableRow, { optional: true });
2217
+ this.el = inject(ElementRef).nativeElement;
2218
+ this.config = inject(WuConfig);
2219
+ }
2220
+ get label() {
2221
+ return `${this.config.translation.moveUp} / ${this.config.translation.moveDown}`;
2222
+ }
2223
+ get rowEl() {
2224
+ return this.el.closest('tr[data-wu-row-index]');
2225
+ }
2226
+ get index() {
2227
+ return this.row ? this.row.index : Number(this.rowEl?.getAttribute('data-wu-row-index') ?? -1);
2228
+ }
2229
+ down(event) {
2230
+ const tr = this.rowEl;
2231
+ if (!tr || (this.row && this.row.off))
2232
+ return;
2233
+ this.table.startRowDrag(tr, this.index, event);
2234
+ }
2235
+ key(event) {
2236
+ const i = this.index;
2237
+ if (i < 0 || (this.row && this.row.off))
2238
+ return;
2239
+ if (event.key === 'ArrowUp') {
2240
+ event.preventDefault();
2241
+ this.table.reorderRows(i, i - 1);
2242
+ }
2243
+ else if (event.key === 'ArrowDown') {
2244
+ event.preventDefault();
2245
+ this.table.reorderRows(i, i + 2);
2246
+ }
2247
+ else
2248
+ return;
2249
+ // Keep the keyboard on the handle of the row that moved.
2250
+ const doc = this.el.ownerDocument;
2251
+ const target = event.key === 'ArrowUp' ? i - 1 : i + 1;
2252
+ setTimeout(() => doc.querySelector(`tr[data-wu-row-index="${target}"] .wu-reorderable-row-handle`)?.focus());
2253
+ }
2254
+ }
2255
+ WuReorderableRowHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuReorderableRowHandle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2256
+ WuReorderableRowHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuReorderableRowHandle, isStandalone: true, selector: "[wuReorderableRowHandle], [pReorderableRowHandle]", host: { attributes: { "role": "button", "tabindex": "0" }, listeners: { "pointerdown": "down($event)", "keydown": "key($event)" }, properties: { "attr.aria-label": "this.label" }, classAttribute: "wu-reorderable-row-handle p-datatable-reorderable-row-handle" }, ngImport: i0 });
2257
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuReorderableRowHandle, decorators: [{
2258
+ type: Directive,
2259
+ args: [{
2260
+ selector: '[wuReorderableRowHandle], [pReorderableRowHandle]',
2261
+ standalone: true,
2262
+ host: { class: 'wu-reorderable-row-handle p-datatable-reorderable-row-handle', role: 'button', tabindex: '0' },
2263
+ }]
2264
+ }], propDecorators: { label: [{
2265
+ type: HostBinding,
2266
+ args: ['attr.aria-label']
2267
+ }], down: [{
2268
+ type: HostListener,
2269
+ args: ['pointerdown', ['$event']]
2270
+ }], key: [{
2271
+ type: HostListener,
2272
+ args: ['keydown', ['$event']]
2273
+ }] } });
2274
+ /**
2275
+ * A cell that edits on click: `<td [wuEditableColumn]="row" wuEditableColumnField="name">` (or `pEditableColumn` /
2276
+ * `pEditableColumnField`) holding a `wu-cellEditor`. Enter or a click elsewhere keeps the value, Escape drops it,
2277
+ * Tab keeps it and opens the next editable cell; Enter or F2 on a focused cell opens it.
2278
+ */
2279
+ class WuEditableColumn extends TableChild {
2280
+ constructor() {
2281
+ super(...arguments);
2282
+ this.field = '';
2283
+ this.off = false;
2284
+ this.el = inject(ElementRef).nativeElement;
2285
+ }
2286
+ set wuEditableColumn(v) { this.data = v; }
2287
+ set pEditableColumn(v) { this.data = v; }
2288
+ set wuEditableColumnField(v) { this.field = v; }
2289
+ set pEditableColumnField(v) { this.field = v; }
2290
+ set wuEditableColumnRowIndex(v) { this.index = v; }
2291
+ set pEditableColumnRowIndex(v) { this.index = v; }
2292
+ set wuEditableColumnDisabled(v) { this.off = ɵtoBool(v); }
2293
+ set pEditableColumnDisabled(v) { this.off = ɵtoBool(v); }
2294
+ get editing() {
2295
+ return this.table.isCellEditing(this.el);
2296
+ }
2297
+ get v1Editing() {
2298
+ return this.editing;
2299
+ }
2300
+ click(event) {
2301
+ if (this.off || this.table.editMode !== 'cell' || this.editing)
2302
+ return;
2303
+ this.table.startCellEdit(this.el, this.data, this.field, this.index, event);
2304
+ }
2305
+ key(event) {
2306
+ if (this.off || this.table.editMode !== 'cell')
2307
+ return;
2308
+ if (!this.editing) {
2309
+ if ((event.key === 'Enter' || event.key === 'F2') && event.target === this.el) {
2310
+ event.preventDefault();
2311
+ this.table.startCellEdit(this.el, this.data, this.field, this.index, event);
2312
+ }
2313
+ return;
2314
+ }
2315
+ if (event.key === 'Enter' && !event.target.closest('textarea')) {
2316
+ event.preventDefault();
2317
+ this.table.completeCellEdit(event);
2318
+ }
2319
+ else if (event.key === 'Escape') {
2320
+ event.preventDefault();
2321
+ event.stopPropagation();
2322
+ this.table.cancelCellEdit(event);
2323
+ }
2324
+ else if (event.key === 'Tab') {
2325
+ event.preventDefault();
2326
+ this.table.completeCellEdit(event, event.shiftKey ? -1 : 1);
2327
+ }
2328
+ }
2329
+ }
2330
+ WuEditableColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuEditableColumn, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2331
+ WuEditableColumn.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuEditableColumn, isStandalone: true, selector: "[wuEditableColumn], [pEditableColumn]", inputs: { wuEditableColumn: "wuEditableColumn", pEditableColumn: "pEditableColumn", wuEditableColumnField: "wuEditableColumnField", pEditableColumnField: "pEditableColumnField", wuEditableColumnRowIndex: "wuEditableColumnRowIndex", pEditableColumnRowIndex: "pEditableColumnRowIndex", wuEditableColumnDisabled: "wuEditableColumnDisabled", pEditableColumnDisabled: "pEditableColumnDisabled" }, host: { attributes: { "tabindex": "0" }, listeners: { "click": "click($event)", "keydown": "key($event)" }, properties: { "class.wu-cell-editing": "this.editing", "class.p-cell-editing": "this.v1Editing" }, classAttribute: "wu-editable-column p-editable-column" }, usesInheritance: true, ngImport: i0 });
2332
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuEditableColumn, decorators: [{
2333
+ type: Directive,
2334
+ args: [{
2335
+ selector: '[wuEditableColumn], [pEditableColumn]',
2336
+ standalone: true,
2337
+ host: { class: 'wu-editable-column p-editable-column', tabindex: '0' },
2338
+ }]
2339
+ }], propDecorators: { wuEditableColumn: [{
2340
+ type: Input
2341
+ }], pEditableColumn: [{
2342
+ type: Input
2343
+ }], wuEditableColumnField: [{
2344
+ type: Input
2345
+ }], pEditableColumnField: [{
2346
+ type: Input
2347
+ }], wuEditableColumnRowIndex: [{
2348
+ type: Input
2349
+ }], pEditableColumnRowIndex: [{
2350
+ type: Input
2351
+ }], wuEditableColumnDisabled: [{
2352
+ type: Input
2353
+ }], pEditableColumnDisabled: [{
2354
+ type: Input
2355
+ }], editing: [{
2356
+ type: HostBinding,
2357
+ args: ['class.wu-cell-editing']
2358
+ }], v1Editing: [{
2359
+ type: HostBinding,
2360
+ args: ['class.p-cell-editing']
2361
+ }], click: [{
2362
+ type: HostListener,
2363
+ args: ['click', ['$event']]
2364
+ }], key: [{
2365
+ type: HostListener,
2366
+ args: ['keydown', ['$event']]
2367
+ }] } });
2368
+ /** Marks the row a row editor works on: `<tr [wuEditableRow]="row">` (or `pEditableRow`). */
2369
+ class WuEditableRow extends TableChild {
2370
+ constructor() {
2371
+ super(...arguments);
2372
+ this.off = false;
2373
+ this.el = inject(ElementRef).nativeElement;
2374
+ }
2375
+ set wuEditableRow(v) { this.data = v; }
2376
+ set pEditableRow(v) { this.data = v; }
2377
+ set wuEditableRowDisabled(v) { this.off = ɵtoBool(v); }
2378
+ set pEditableRowDisabled(v) { this.off = ɵtoBool(v); }
2379
+ get editing() {
2380
+ return this.table.isRowEditing(this.data);
2381
+ }
2382
+ get v1Editing() {
2383
+ return this.editing;
2384
+ }
2385
+ }
2386
+ WuEditableRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuEditableRow, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2387
+ WuEditableRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuEditableRow, isStandalone: true, selector: "[wuEditableRow], [pEditableRow]", inputs: { wuEditableRow: "wuEditableRow", pEditableRow: "pEditableRow", wuEditableRowDisabled: "wuEditableRowDisabled", pEditableRowDisabled: "pEditableRowDisabled" }, host: { properties: { "class.wu-row-editing": "this.editing", "class.p-row-editing": "this.v1Editing" } }, usesInheritance: true, ngImport: i0 });
2388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuEditableRow, decorators: [{
2389
+ type: Directive,
2390
+ args: [{
2391
+ selector: '[wuEditableRow], [pEditableRow]',
2392
+ standalone: true,
2393
+ }]
2394
+ }], propDecorators: { wuEditableRow: [{
2395
+ type: Input
2396
+ }], pEditableRow: [{
2397
+ type: Input
2398
+ }], wuEditableRowDisabled: [{
2399
+ type: Input
2400
+ }], pEditableRowDisabled: [{
2401
+ type: Input
2402
+ }], editing: [{
2403
+ type: HostBinding,
2404
+ args: ['class.wu-row-editing']
2405
+ }], v1Editing: [{
2406
+ type: HostBinding,
2407
+ args: ['class.p-row-editing']
2408
+ }] } });
2409
+ /** Starts editing the row (`pInitEditableRow` on a button inside a `wuEditableRow`). */
2410
+ class WuInitEditableRow {
2411
+ constructor() {
2412
+ this.table = inject(ɵWU_TABLE);
2413
+ this.row = inject(WuEditableRow);
2414
+ }
2415
+ click(event) {
2416
+ event.preventDefault();
2417
+ if (!this.row.off)
2418
+ this.table.initRowEdit(this.row.data);
2419
+ }
2420
+ }
2421
+ WuInitEditableRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuInitEditableRow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2422
+ WuInitEditableRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuInitEditableRow, isStandalone: true, selector: "[wuInitEditableRow], [pInitEditableRow]", host: { listeners: { "click": "click($event)" } }, ngImport: i0 });
2423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuInitEditableRow, decorators: [{
2424
+ type: Directive,
2425
+ args: [{
2426
+ selector: '[wuInitEditableRow], [pInitEditableRow]',
2427
+ standalone: true,
2428
+ }]
2429
+ }], propDecorators: { click: [{
2430
+ type: HostListener,
2431
+ args: ['click', ['$event']]
2432
+ }] } });
2433
+ /** Keeps the row's edits (`pSaveEditableRow`); stays in edit mode while a field is invalid. */
2434
+ class WuSaveEditableRow {
2435
+ constructor() {
2436
+ this.table = inject(ɵWU_TABLE);
2437
+ this.row = inject(WuEditableRow);
2438
+ }
2439
+ click(event) {
2440
+ event.preventDefault();
2441
+ this.table.saveRowEdit(this.row.data, this.row.el);
2442
+ }
2443
+ }
2444
+ WuSaveEditableRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuSaveEditableRow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2445
+ WuSaveEditableRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuSaveEditableRow, isStandalone: true, selector: "[wuSaveEditableRow], [pSaveEditableRow]", host: { listeners: { "click": "click($event)" } }, ngImport: i0 });
2446
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuSaveEditableRow, decorators: [{
2447
+ type: Directive,
2448
+ args: [{
2449
+ selector: '[wuSaveEditableRow], [pSaveEditableRow]',
2450
+ standalone: true,
2451
+ }]
2452
+ }], propDecorators: { click: [{
2453
+ type: HostListener,
2454
+ args: ['click', ['$event']]
2455
+ }] } });
2456
+ /** Leaves row editing (`pCancelEditableRow`). */
2457
+ class WuCancelEditableRow {
2458
+ constructor() {
2459
+ this.table = inject(ɵWU_TABLE);
2460
+ this.row = inject(WuEditableRow);
2461
+ }
2462
+ click(event) {
2463
+ event.preventDefault();
2464
+ this.table.cancelRowEdit(this.row.data);
2465
+ }
2466
+ }
2467
+ WuCancelEditableRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuCancelEditableRow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2468
+ WuCancelEditableRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuCancelEditableRow, isStandalone: true, selector: "[wuCancelEditableRow], [pCancelEditableRow]", host: { listeners: { "click": "click($event)" } }, ngImport: i0 });
2469
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuCancelEditableRow, decorators: [{
2470
+ type: Directive,
2471
+ args: [{
2472
+ selector: '[wuCancelEditableRow], [pCancelEditableRow]',
2473
+ standalone: true,
2474
+ }]
2475
+ }], propDecorators: { click: [{
2476
+ type: HostListener,
2477
+ args: ['click', ['$event']]
2478
+ }] } });
2479
+ /**
2480
+ * A header cell whose width can be dragged (`wuResizableColumn` / `pResizableColumn`) when the table has
2481
+ * `[resizableColumns]="true"`.
2482
+ */
2483
+ class WuResizableColumn extends TableChild {
2484
+ constructor() {
2485
+ super(...arguments);
2486
+ this.off = false;
2487
+ this.grip = null;
2488
+ this.el = inject(ElementRef).nativeElement;
2489
+ }
2490
+ set wuResizableColumnDisabled(v) { this.off = ɵtoBool(v); }
2491
+ set pResizableColumnDisabled(v) { this.off = ɵtoBool(v); }
2492
+ get resizable() {
2493
+ return !this.off && this.table.resizableColumns;
2494
+ }
2495
+ get v1Resizable() {
2496
+ return this.resizable;
2497
+ }
2498
+ ngAfterViewInit() {
2499
+ const grip = this.el.ownerDocument.createElement('span');
2500
+ grip.className = 'wu-column-resizer p-column-resizer';
2501
+ grip.setAttribute('aria-hidden', 'true');
2502
+ grip.addEventListener('pointerdown', (e) => {
2503
+ if (this.resizable)
2504
+ this.table.startColumnResize(this.el, e);
2505
+ });
2506
+ grip.addEventListener('click', (e) => e.stopPropagation());
2507
+ this.el.appendChild(grip);
2508
+ this.grip = grip;
2509
+ }
2510
+ ngOnDestroy() {
2511
+ this.grip?.remove();
2512
+ super.ngOnDestroy();
2513
+ }
2514
+ }
2515
+ WuResizableColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuResizableColumn, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2516
+ WuResizableColumn.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuResizableColumn, isStandalone: true, selector: "[wuResizableColumn], [pResizableColumn]", inputs: { wuResizableColumnDisabled: "wuResizableColumnDisabled", pResizableColumnDisabled: "pResizableColumnDisabled" }, host: { properties: { "class.wu-resizable-column": "this.resizable", "class.p-resizable-column": "this.v1Resizable" } }, usesInheritance: true, ngImport: i0 });
2517
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuResizableColumn, decorators: [{
2518
+ type: Directive,
2519
+ args: [{
2520
+ selector: '[wuResizableColumn], [pResizableColumn]',
2521
+ standalone: true,
2522
+ }]
2523
+ }], propDecorators: { wuResizableColumnDisabled: [{
2524
+ type: Input
2525
+ }], pResizableColumnDisabled: [{
2526
+ type: Input
2527
+ }], resizable: [{
2528
+ type: HostBinding,
2529
+ args: ['class.wu-resizable-column']
2530
+ }], v1Resizable: [{
2531
+ type: HostBinding,
2532
+ args: ['class.p-resizable-column']
2533
+ }] } });
2534
+ /**
2535
+ * A header cell that can be dragged to move its column (`wuReorderableColumn` / `pReorderableColumn`) when the table
2536
+ * has `[reorderableColumns]="true"`; the table moves the item in `columns`.
2537
+ */
2538
+ class WuReorderableColumn extends TableChild {
2539
+ constructor() {
2540
+ super(...arguments);
2541
+ this.off = false;
2542
+ this.el = inject(ElementRef).nativeElement;
2543
+ }
2544
+ set wuReorderableColumnDisabled(v) { this.off = ɵtoBool(v); }
2545
+ set pReorderableColumnDisabled(v) { this.off = ɵtoBool(v); }
2546
+ get reorderable() {
2547
+ return !this.off && this.table.reorderableColumns;
2548
+ }
2549
+ down(event) {
2550
+ if (!this.reorderable)
2551
+ return;
2552
+ const t = event.target;
2553
+ if (t.closest('.wu-column-resizer, input, select, textarea, button, a, wu-columnfilter'))
2554
+ return;
2555
+ this.table.startColumnDrag(this.el, event);
2556
+ }
2557
+ }
2558
+ WuReorderableColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuReorderableColumn, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2559
+ WuReorderableColumn.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WuReorderableColumn, isStandalone: true, selector: "[wuReorderableColumn], [pReorderableColumn]", inputs: { wuReorderableColumnDisabled: "wuReorderableColumnDisabled", pReorderableColumnDisabled: "pReorderableColumnDisabled" }, host: { listeners: { "pointerdown": "down($event)" }, properties: { "class.wu-reorderable-column": "this.reorderable" } }, usesInheritance: true, ngImport: i0 });
2560
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuReorderableColumn, decorators: [{
2561
+ type: Directive,
2562
+ args: [{
2563
+ selector: '[wuReorderableColumn], [pReorderableColumn]',
2564
+ standalone: true,
2565
+ }]
2566
+ }], propDecorators: { wuReorderableColumnDisabled: [{
2567
+ type: Input
2568
+ }], pReorderableColumnDisabled: [{
2569
+ type: Input
2570
+ }], reorderable: [{
2571
+ type: HostBinding,
2572
+ args: ['class.wu-reorderable-column']
2573
+ }], down: [{
2574
+ type: HostListener,
2575
+ args: ['pointerdown', ['$event']]
2576
+ }] } });
2577
+
2578
+ const asTemplate = (v) => (v instanceof TemplateRef ? v : null);
2579
+ /**
2580
+ * What wu-columnFilter does: a filter box for one column, usually in a header row or the caption. Without a template
2581
+ * it is a text box (or a number / date box, or a yes–no–any button for `type="boolean"`); a `filter` template brings
2582
+ * any control, which calls `filterCallback(value)`. The table filters by `field` with `matchMode` (contains for text,
2583
+ * the same day for dates, equals otherwise). `display="menu"` puts a filter button in the header instead: its menu
2584
+ * has match modes, several rules joined by "match all" / "match any", and Clear / Apply.
2585
+ */
2586
+ class ɵWuColumnFilterBase {
2587
+ set showClearButton(v) {
2588
+ this._showClear = v === undefined || ɵtoBool(v);
2589
+ }
2590
+ get showClearButton() {
2591
+ return this._showClear;
2592
+ }
2593
+ /** Wait this long after typing before filtering, in ms. `0` filters at once. Default: the table's `filterDelay`. */
2594
+ set delay(v) {
2595
+ const n = Number(v);
2596
+ this._delay = v === null || v === undefined || v === '' || !Number.isFinite(n) ? null : Math.max(0, n);
2597
+ }
2598
+ /** Menu display: the "match all / any" choice (default true), the add-rule button, Apply, and match modes. */
2599
+ set showOperator(v) { this._showOperator = v === undefined || ɵtoBool(v); }
2600
+ get showOperator() { return this._showOperator; }
2601
+ set showAddButton(v) { this._showAdd = v === undefined || ɵtoBool(v); }
2602
+ get showAddButton() { return this._showAdd; }
2603
+ set showApplyButton(v) { this._showApply = v === undefined || ɵtoBool(v); }
2604
+ get showApplyButton() { return this._showApply; }
2605
+ set showMatchModes(v) { this._showModes = v === undefined || ɵtoBool(v); }
2606
+ get showMatchModes() { return this._showModes; }
2607
+ /** Most rules in the menu. Default 2. */
2608
+ set maxConstraints(v) { const n = Number(v); this._max = Number.isFinite(n) && n > 0 ? n : 2; }
2609
+ get maxConstraints() { return this._max; }
2610
+ /** Close the menu after Clear. */
2611
+ set hideOnClear(v) { this._hideOnClear = ɵtoBool(v); }
2612
+ constructor() {
2613
+ this.field = '';
2614
+ this.type = 'text';
2615
+ this.display = 'row';
2616
+ this.filterCallback = (value) => this.apply(value);
2617
+ this.table = inject(ɵWU_TABLE);
2618
+ this.cdr = inject(ChangeDetectorRef);
2619
+ this.config = inject(WuConfig);
2620
+ this.sub = this.table.changes.subscribe(() => this.cdr.markForCheck());
2621
+ this._showClear = true;
2622
+ this._delay = null;
2623
+ this._showOperator = true;
2624
+ this._showAdd = true;
2625
+ this._showApply = true;
2626
+ this._showModes = true;
2627
+ this._max = 2;
2628
+ this._hideOnClear = false;
2629
+ this.popup = null;
2630
+ this.host = inject(ElementRef).nativeElement;
2631
+ this.zone = inject(NgZone);
2632
+ /** The menu is open, and the rules being edited in it. */
2633
+ this.menuOpen = false;
2634
+ this.rules = [];
2635
+ this.operator = 'and';
2636
+ this.menuId = `wu-colfilter-${Math.random().toString(36).slice(2, 9)}`;
2637
+ this.timer = null;
2638
+ const styles = inject(ɵWuStyleLoader);
2639
+ styles.load('inputtext', ɵWU_INPUTTEXT_CSS);
2640
+ styles.load('button', ɵWU_BUTTON_CSS);
2641
+ }
2642
+ ngOnDestroy() {
2643
+ this.sub.unsubscribe();
2644
+ this.popup?.close();
2645
+ if (this.timer)
2646
+ clearTimeout(this.timer);
2647
+ }
2648
+ get t() {
2649
+ return this.config.translation;
2650
+ }
2651
+ get filterTemplate() {
2652
+ return asTemplate(this.filterRef) || ɵfindTemplate(this.templates, 'filter');
2653
+ }
2654
+ /** The column's current filter value (the first rule's, when there are several). */
2655
+ get value() {
2656
+ const f = this.table.filters[this.field];
2657
+ if (!f)
2658
+ return null;
2659
+ return Array.isArray(f) ? (f[0] ? f[0].value : null) : f.value;
2660
+ }
2661
+ /** The menu button shows a filter is on. */
2662
+ get active() {
2663
+ const f = this.table.filters[this.field];
2664
+ if (!f)
2665
+ return false;
2666
+ return (Array.isArray(f) ? f : [f]).some((x) => x.value !== null && x.value !== undefined && x.value !== '');
2667
+ }
2668
+ get hasValue() {
2669
+ const v = this.value;
2670
+ return v !== null && v !== undefined && v !== '' && !(Array.isArray(v) && !v.length);
2671
+ }
2672
+ get mode() {
2673
+ return this.matchMode || (this.type === 'text' ? 'contains' : this.type === 'date' ? 'dateIs' : 'equals');
2674
+ }
2675
+ get inputType() {
2676
+ return this.type === 'numeric' ? 'number' : this.type === 'date' ? 'date' : 'text';
2677
+ }
2678
+ /** The value as the box shows it. */
2679
+ get inputValue() {
2680
+ const v = this.value;
2681
+ if (v === null || v === undefined)
2682
+ return '';
2683
+ if (v instanceof Date) {
2684
+ const p = (n) => String(n).padStart(2, '0');
2685
+ return `${v.getFullYear()}-${p(v.getMonth() + 1)}-${p(v.getDate())}`;
2686
+ }
2687
+ return String(v);
2688
+ }
2689
+ get boolLabel() {
2690
+ const v = this.value;
2691
+ return v === true ? this.t.yes : v === false ? this.t.no : '';
2692
+ }
2693
+ get context() {
2694
+ return { $implicit: this.value, filterCallback: this.filterCallback, field: this.field, type: this.type, placeholder: this.placeholder };
2695
+ }
2696
+ /** Text from a box as the value of this column's type. */
2697
+ parse(raw) {
2698
+ if (this.type === 'numeric')
2699
+ return raw === '' ? null : Number(raw);
2700
+ if (this.type === 'date') {
2701
+ const m = /^(\d{4})-(\d{2})-(\d{2})$/.exec(raw);
2702
+ return m ? new Date(Number(m[1]), Number(m[2]) - 1, Number(m[3])) : null;
2703
+ }
2704
+ return raw;
2705
+ }
2706
+ /** A value as a box shows it. */
2707
+ show(v) {
2708
+ if (v === null || v === undefined)
2709
+ return '';
2710
+ if (v instanceof Date) {
2711
+ const p = (n) => String(n).padStart(2, '0');
2712
+ return `${v.getFullYear()}-${p(v.getMonth() + 1)}-${p(v.getDate())}`;
2713
+ }
2714
+ return String(v);
2715
+ }
2716
+ input(event) {
2717
+ const value = this.parse(event.target.value);
2718
+ if (this.timer)
2719
+ clearTimeout(this.timer);
2720
+ const wait = this._delay ?? this.table.filterDelay;
2721
+ if (this.type === 'text' && wait)
2722
+ this.timer = setTimeout(() => this.apply(value), wait);
2723
+ else
2724
+ this.apply(value);
2725
+ }
2726
+ /** Boolean filter: any → yes → no → any. */
2727
+ cycle() {
2728
+ const v = this.value;
2729
+ this.apply(v === true ? false : v === false ? null : true);
2730
+ }
2731
+ clear() {
2732
+ if (this.timer)
2733
+ clearTimeout(this.timer);
2734
+ this.apply(null);
2735
+ }
2736
+ // ---------- menu display ----------
2737
+ /** The match modes the menu offers for this column's type. */
2738
+ get modeOptions() {
2739
+ if (this.matchModeOptions && this.matchModeOptions.length)
2740
+ return this.matchModeOptions;
2741
+ const t = this.t;
2742
+ const modes = this.type === 'numeric'
2743
+ ? ['equals', 'notEquals', 'lt', 'lte', 'gt', 'gte']
2744
+ : this.type === 'date'
2745
+ ? ['dateIs', 'dateIsNot', 'dateBefore', 'dateAfter']
2746
+ : this.type === 'boolean'
2747
+ ? ['equals']
2748
+ : ['startsWith', 'contains', 'notContains', 'endsWith', 'equals', 'notEquals'];
2749
+ return modes.map((value) => ({ value, label: t[value] || value }));
2750
+ }
2751
+ get buttonClasses() {
2752
+ return ɵbuttonClass('p-button-text p-button-rounded p-button-sm') + ' wu-btn-icon-only wu-column-filter-menu-button';
2753
+ }
2754
+ get clearClass() {
2755
+ return ɵbuttonClass('p-button-outlined p-button-sm') + ' wu-column-filter-menu-clear';
2756
+ }
2757
+ get applyClass() {
2758
+ return ɵbuttonClass('p-button-sm') + ' wu-column-filter-menu-apply';
2759
+ }
2760
+ get addClass() {
2761
+ return ɵbuttonClass('p-button-text p-button-sm') + ' wu-column-filter-add';
2762
+ }
2763
+ get removeClass() {
2764
+ return ɵbuttonClass('p-button-text p-button-danger p-button-sm') + ' wu-column-filter-remove';
2765
+ }
2766
+ ruleContext(rule) {
2767
+ return { $implicit: rule.value, filterCallback: (v) => this.setRuleValue(rule, v), field: this.field, type: this.type, placeholder: this.placeholder };
2768
+ }
2769
+ toggleMenu(event) {
2770
+ if (this.menuOpen)
2771
+ this.closeMenu(true);
2772
+ else
2773
+ this.openMenu(event.currentTarget);
2774
+ }
2775
+ openMenu(anchor) {
2776
+ const f = this.table.filters[this.field];
2777
+ const list = f ? (Array.isArray(f) ? f : [f]) : [];
2778
+ this.rules = list.length ? list.map((x) => ({ value: x.value, matchMode: x.matchMode || this.mode })) : [{ value: null, matchMode: this.mode }];
2779
+ this.operator = (Array.isArray(f) && f[0]?.operator) || 'and';
2780
+ this.menuOpen = true;
2781
+ this.cdr.detectChanges();
2782
+ const panel = this.host.querySelector(`#${this.menuId}`);
2783
+ if (!panel)
2784
+ return;
2785
+ this.popup = new ɵWuPopup(anchor, panel, {
2786
+ onOutside: () => this.zone.run(() => this.closeMenu(false)),
2787
+ onEscape: (e) => this.zone.run(() => {
2788
+ e.preventDefault();
2789
+ this.closeMenu(true);
2790
+ }),
2791
+ sheetClass: 'wu-column-filter-sheet',
2792
+ modalClass: 'wu-column-filter-modal',
2793
+ sheet: false,
2794
+ });
2795
+ this.popup.open();
2796
+ panel.querySelector('input, select, button')?.focus();
2797
+ }
2798
+ closeMenu(returnFocus) {
2799
+ if (!this.menuOpen)
2800
+ return;
2801
+ this.popup?.close();
2802
+ this.popup = null;
2803
+ this.menuOpen = false;
2804
+ this.cdr.markForCheck();
2805
+ if (returnFocus)
2806
+ this.host.querySelector('.wu-column-filter-menu-button')?.focus();
2807
+ }
2808
+ setRuleValue(rule, v) {
2809
+ rule.value = v;
2810
+ // Without an Apply button the rule takes effect at once.
2811
+ if (!this._showApply)
2812
+ this.applyMenu(false);
2813
+ this.cdr.markForCheck();
2814
+ }
2815
+ ruleInput(rule, event) {
2816
+ this.setRuleValue(rule, this.parse(event.target.value));
2817
+ }
2818
+ ruleMode(rule, event) {
2819
+ rule.matchMode = event.target.value;
2820
+ if (!this._showApply)
2821
+ this.applyMenu(false);
2822
+ }
2823
+ ruleBool(rule) {
2824
+ this.setRuleValue(rule, rule.value === true ? false : rule.value === false ? null : true);
2825
+ }
2826
+ setOperator(event) {
2827
+ this.operator = event.target.value === 'or' ? 'or' : 'and';
2828
+ if (!this._showApply)
2829
+ this.applyMenu(false);
2830
+ }
2831
+ addRule() {
2832
+ if (this.rules.length >= this._max)
2833
+ return;
2834
+ this.rules = [...this.rules, { value: null, matchMode: this.mode }];
2835
+ this.cdr.markForCheck();
2836
+ }
2837
+ removeRule(index) {
2838
+ this.rules = this.rules.filter((_, i) => i !== index);
2839
+ if (!this._showApply)
2840
+ this.applyMenu(false);
2841
+ this.cdr.markForCheck();
2842
+ }
2843
+ applyMenu(close = true) {
2844
+ this.table.filterRules(this.field, this.rules.map((x) => ({ ...x })), this.operator);
2845
+ if (close)
2846
+ this.closeMenu(true);
2847
+ }
2848
+ clearMenu() {
2849
+ this.rules = [{ value: null, matchMode: this.mode }];
2850
+ this.operator = 'and';
2851
+ this.table.filterRules(this.field, null);
2852
+ if (this._hideOnClear)
2853
+ this.closeMenu(true);
2854
+ this.cdr.markForCheck();
2855
+ }
2856
+ apply(value) {
2857
+ this.timer = null;
2858
+ this.table.filter(value, this.field, this.mode);
2859
+ this.cdr.markForCheck();
2860
+ }
2861
+ }
2862
+ ɵWuColumnFilterBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ɵWuColumnFilterBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2863
+ ɵWuColumnFilterBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ɵWuColumnFilterBase, inputs: { field: "field", type: "type", display: "display", placeholder: "placeholder", matchMode: "matchMode", ariaLabel: "ariaLabel", showClearButton: "showClearButton", delay: "delay", showOperator: "showOperator", showAddButton: "showAddButton", showApplyButton: "showApplyButton", showMatchModes: "showMatchModes", matchModeOptions: "matchModeOptions", maxConstraints: "maxConstraints", hideOnClear: "hideOnClear", showMenu: "showMenu", minFractionDigits: "minFractionDigits", maxFractionDigits: "maxFractionDigits", locale: "locale", currency: "currency", useGrouping: "useGrouping", showButtons: "showButtons" }, queries: [{ propertyName: "filterRef", first: true, predicate: ["filter"] }, { propertyName: "templates", predicate: WuTemplate }], ngImport: i0 });
2864
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ɵWuColumnFilterBase, decorators: [{
2865
+ type: Directive
2866
+ }], ctorParameters: function () { return []; }, propDecorators: { field: [{
2867
+ type: Input
2868
+ }], type: [{
2869
+ type: Input
2870
+ }], display: [{
2871
+ type: Input
2872
+ }], placeholder: [{
2873
+ type: Input
2874
+ }], matchMode: [{
2875
+ type: Input
2876
+ }], ariaLabel: [{
2877
+ type: Input
2878
+ }], showClearButton: [{
2879
+ type: Input
2880
+ }], delay: [{
2881
+ type: Input
2882
+ }], showOperator: [{
2883
+ type: Input
2884
+ }], showAddButton: [{
2885
+ type: Input
2886
+ }], showApplyButton: [{
2887
+ type: Input
2888
+ }], showMatchModes: [{
2889
+ type: Input
2890
+ }], matchModeOptions: [{
2891
+ type: Input
2892
+ }], maxConstraints: [{
2893
+ type: Input
2894
+ }], hideOnClear: [{
2895
+ type: Input
2896
+ }], showMenu: [{
2897
+ type: Input
2898
+ }], minFractionDigits: [{
2899
+ type: Input
2900
+ }], maxFractionDigits: [{
2901
+ type: Input
2902
+ }], locale: [{
2903
+ type: Input
2904
+ }], currency: [{
2905
+ type: Input
2906
+ }], useGrouping: [{
2907
+ type: Input
2908
+ }], showButtons: [{
2909
+ type: Input
2910
+ }], templates: [{
2911
+ type: ContentChildren,
2912
+ args: [WuTemplate]
2913
+ }], filterRef: [{
2914
+ type: ContentChild,
2915
+ args: ['filter', { descendants: false }]
2916
+ }] } });
2917
+
2918
+ const X_ICON = '<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" aria-hidden="true"><path d="m4 4 8 8M12 4l-8 8"></path></svg>';
2919
+ const FILTER_ICON = '<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><path d="M2.5 3h11L9.25 8.25v4.25l-2.5 1.25v-5.5z"></path></svg>';
2920
+ const CHECK_ICON = '<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3.5 8.5 3 3 6-7"></path></svg>';
2921
+ /**
2922
+ * A filter for one column: `<wu-columnFilter field="name" />` (a box in a header row or the caption), or
2923
+ * `display="menu"` (a filter button with match modes, rules and Clear / Apply). A `filter` template
2924
+ * (`let-value let-filter="filterCallback"`) brings any control. `p-columnFilter` markup moves over by changing the prefix.
2925
+ */
2926
+ class WuColumnFilter extends ɵWuColumnFilterBase {
2927
+ }
2928
+ WuColumnFilter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuColumnFilter, deps: null, target: i0.ɵɵFactoryTarget.Component });
2929
+ WuColumnFilter.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuColumnFilter, isStandalone: true, selector: "wu-columnFilter, wu-columnfilter, wu-column-filter", host: { classAttribute: "wu-column-filter-host" }, usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"display === 'menu'; else rowDisplay\" class=\"wu-column-filter wu-column-filter-menu p-column-filter p-column-filter-menu\">\n <button\n type=\"button\"\n [class]=\"buttonClasses\"\n [class.wu-column-filter-active]=\"active\"\n [class.p-column-filter-menu-button-active]=\"active\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"menuOpen\"\n [attr.aria-controls]=\"menuOpen ? menuId : null\"\n [attr.aria-label]=\"ariaLabel || t.filter\"\n (click)=\"toggleMenu($event)\"\n ><svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.5 3h11L9.25 8.25v4.25l-2.5 1.25v-5.5z\"></path></svg></button>\n <div *ngIf=\"menuOpen\" class=\"wu-column-filter-overlay p-column-filter-overlay\" popover=\"manual\" role=\"dialog\" [id]=\"menuId\" [attr.aria-label]=\"t.filter\">\n <div *ngIf=\"showOperator && rules.length > 1\" class=\"wu-column-filter-operator p-column-filter-operator\">\n <select class=\"wu-inputtext p-inputtext wu-column-filter-select\" [attr.aria-label]=\"t.matchAll + ' / ' + t.matchAny\" (change)=\"setOperator($event)\">\n <option value=\"and\" [selected]=\"operator === 'and'\">{{ t.matchAll }}</option>\n <option value=\"or\" [selected]=\"operator === 'or'\">{{ t.matchAny }}</option>\n </select>\n </div>\n <div *ngFor=\"let rule of rules; let i = index\" class=\"wu-column-filter-rule p-column-filter-constraint\">\n <select *ngIf=\"showMatchModes && type !== 'boolean'\" class=\"wu-inputtext p-inputtext wu-column-filter-select\" [attr.aria-label]=\"t.filter\" (change)=\"ruleMode(rule, $event)\">\n <option *ngFor=\"let o of modeOptions\" [value]=\"o.value\" [selected]=\"rule.matchMode === o.value\">{{ o.label }}</option>\n </select>\n <ng-container *ngIf=\"filterTemplate; else builtInRule\">\n <ng-container *ngTemplateOutlet=\"filterTemplate; context: ruleContext(rule)\"></ng-container>\n </ng-container>\n <ng-template #builtInRule>\n <button\n *ngIf=\"type === 'boolean'; else ruleBox\"\n type=\"button\"\n class=\"wu-column-filter-bool\"\n role=\"checkbox\"\n [class.wu-column-filter-bool-set]=\"rule.value === true || rule.value === false\"\n [attr.aria-checked]=\"rule.value === true ? 'true' : rule.value === false ? 'false' : 'mixed'\"\n [attr.aria-label]=\"ariaLabel || placeholder || field\"\n (click)=\"ruleBool(rule)\"\n >\n <ng-container *ngIf=\"rule.value === true\"><svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m3.5 8.5 3 3 6-7\"></path></svg></ng-container>\n <ng-container *ngIf=\"rule.value === false\"><svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"m4 4 8 8M12 4l-8 8\"></path></svg></ng-container>\n </button>\n <ng-template #ruleBox>\n <input\n class=\"wu-inputtext p-inputtext p-component wu-column-filter-input\"\n [attr.type]=\"inputType\"\n [value]=\"show(rule.value)\"\n [attr.placeholder]=\"placeholder || t.search\"\n [attr.aria-label]=\"ariaLabel || placeholder || t.search\"\n (input)=\"ruleInput(rule, $event)\"\n (keydown.enter)=\"applyMenu()\"\n />\n </ng-template>\n </ng-template>\n <button *ngIf=\"rules.length > 1\" type=\"button\" [class]=\"removeClass\" (click)=\"removeRule(i)\">{{ t.removeRule }}</button>\n </div>\n <button *ngIf=\"showAddButton && rules.length < maxConstraints && type !== 'boolean'\" type=\"button\" [class]=\"addClass\" (click)=\"addRule()\">+ {{ t.addRule }}</button>\n <div class=\"wu-column-filter-buttons p-column-filter-buttonbar\">\n <button *ngIf=\"showClearButton\" type=\"button\" [class]=\"clearClass\" (click)=\"clearMenu()\">{{ t.clear }}</button>\n <button *ngIf=\"showApplyButton\" type=\"button\" [class]=\"applyClass\" (click)=\"applyMenu()\">{{ t.apply }}</button>\n </div>\n </div>\n </div>\n <ng-template #rowDisplay>\n <div class=\"wu-column-filter p-column-filter p-column-filter-row\">\n <ng-container *ngIf=\"filterTemplate; else builtIn\">\n <ng-container *ngTemplateOutlet=\"filterTemplate; context: context\"></ng-container>\n </ng-container>\n <ng-template #builtIn>\n <button\n *ngIf=\"type === 'boolean'; else box\"\n type=\"button\"\n class=\"wu-column-filter-bool\"\n role=\"checkbox\"\n [class.wu-column-filter-bool-set]=\"hasValue\"\n [attr.aria-checked]=\"value === true ? 'true' : value === false ? 'false' : 'mixed'\"\n [attr.aria-label]=\"ariaLabel || placeholder || field\"\n [attr.title]=\"boolLabel || null\"\n (click)=\"cycle()\"\n >\n <ng-container *ngIf=\"value === true\"><svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m3.5 8.5 3 3 6-7\"></path></svg></ng-container>\n <ng-container *ngIf=\"value === false\"><svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"m4 4 8 8M12 4l-8 8\"></path></svg></ng-container>\n </button>\n <ng-template #box>\n <input\n class=\"wu-inputtext wu-column-filter-input p-inputtext p-component p-column-filter-input\"\n [attr.type]=\"inputType\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"placeholder || t.search\"\n [attr.aria-label]=\"ariaLabel || placeholder || t.search\"\n (input)=\"input($event)\"\n />\n </ng-template>\n </ng-template>\n <button *ngIf=\"showClearButton && hasValue\" type=\"button\" class=\"wu-column-filter-clear p-column-filter-clear-button\" [attr.aria-label]=\"t.clear\" (click)=\"clear()\"><svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"m4 4 8 8M12 4l-8 8\"></path></svg></button>\n </div>\n </ng-template>", isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2930
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuColumnFilter, decorators: [{
2931
+ type: Component,
2932
+ args: [{
2933
+ selector: 'wu-columnFilter, wu-columnfilter, wu-column-filter',
2934
+ standalone: true,
2935
+ imports: [NgFor, NgIf, NgTemplateOutlet],
2936
+ template: `<div *ngIf="display === 'menu'; else rowDisplay" class="wu-column-filter wu-column-filter-menu p-column-filter p-column-filter-menu">
2937
+ <button
2938
+ type="button"
2939
+ [class]="buttonClasses"
2940
+ [class.wu-column-filter-active]="active"
2941
+ [class.p-column-filter-menu-button-active]="active"
2942
+ aria-haspopup="dialog"
2943
+ [attr.aria-expanded]="menuOpen"
2944
+ [attr.aria-controls]="menuOpen ? menuId : null"
2945
+ [attr.aria-label]="ariaLabel || t.filter"
2946
+ (click)="toggleMenu($event)"
2947
+ >${FILTER_ICON}</button>
2948
+ <div *ngIf="menuOpen" class="wu-column-filter-overlay p-column-filter-overlay" popover="manual" role="dialog" [id]="menuId" [attr.aria-label]="t.filter">
2949
+ <div *ngIf="showOperator && rules.length > 1" class="wu-column-filter-operator p-column-filter-operator">
2950
+ <select class="wu-inputtext p-inputtext wu-column-filter-select" [attr.aria-label]="t.matchAll + ' / ' + t.matchAny" (change)="setOperator($event)">
2951
+ <option value="and" [selected]="operator === 'and'">{{ t.matchAll }}</option>
2952
+ <option value="or" [selected]="operator === 'or'">{{ t.matchAny }}</option>
2953
+ </select>
2954
+ </div>
2955
+ <div *ngFor="let rule of rules; let i = index" class="wu-column-filter-rule p-column-filter-constraint">
2956
+ <select *ngIf="showMatchModes && type !== 'boolean'" class="wu-inputtext p-inputtext wu-column-filter-select" [attr.aria-label]="t.filter" (change)="ruleMode(rule, $event)">
2957
+ <option *ngFor="let o of modeOptions" [value]="o.value" [selected]="rule.matchMode === o.value">{{ o.label }}</option>
2958
+ </select>
2959
+ <ng-container *ngIf="filterTemplate; else builtInRule">
2960
+ <ng-container *ngTemplateOutlet="filterTemplate; context: ruleContext(rule)"></ng-container>
2961
+ </ng-container>
2962
+ <ng-template #builtInRule>
2963
+ <button
2964
+ *ngIf="type === 'boolean'; else ruleBox"
2965
+ type="button"
2966
+ class="wu-column-filter-bool"
2967
+ role="checkbox"
2968
+ [class.wu-column-filter-bool-set]="rule.value === true || rule.value === false"
2969
+ [attr.aria-checked]="rule.value === true ? 'true' : rule.value === false ? 'false' : 'mixed'"
2970
+ [attr.aria-label]="ariaLabel || placeholder || field"
2971
+ (click)="ruleBool(rule)"
2972
+ >
2973
+ <ng-container *ngIf="rule.value === true">${CHECK_ICON}</ng-container>
2974
+ <ng-container *ngIf="rule.value === false">${X_ICON}</ng-container>
2975
+ </button>
2976
+ <ng-template #ruleBox>
2977
+ <input
2978
+ class="wu-inputtext p-inputtext p-component wu-column-filter-input"
2979
+ [attr.type]="inputType"
2980
+ [value]="show(rule.value)"
2981
+ [attr.placeholder]="placeholder || t.search"
2982
+ [attr.aria-label]="ariaLabel || placeholder || t.search"
2983
+ (input)="ruleInput(rule, $event)"
2984
+ (keydown.enter)="applyMenu()"
2985
+ />
2986
+ </ng-template>
2987
+ </ng-template>
2988
+ <button *ngIf="rules.length > 1" type="button" [class]="removeClass" (click)="removeRule(i)">{{ t.removeRule }}</button>
2989
+ </div>
2990
+ <button *ngIf="showAddButton && rules.length < maxConstraints && type !== 'boolean'" type="button" [class]="addClass" (click)="addRule()">+ {{ t.addRule }}</button>
2991
+ <div class="wu-column-filter-buttons p-column-filter-buttonbar">
2992
+ <button *ngIf="showClearButton" type="button" [class]="clearClass" (click)="clearMenu()">{{ t.clear }}</button>
2993
+ <button *ngIf="showApplyButton" type="button" [class]="applyClass" (click)="applyMenu()">{{ t.apply }}</button>
2994
+ </div>
2995
+ </div>
2996
+ </div>
2997
+ <ng-template #rowDisplay>
2998
+ <div class="wu-column-filter p-column-filter p-column-filter-row">
2999
+ <ng-container *ngIf="filterTemplate; else builtIn">
3000
+ <ng-container *ngTemplateOutlet="filterTemplate; context: context"></ng-container>
3001
+ </ng-container>
3002
+ <ng-template #builtIn>
3003
+ <button
3004
+ *ngIf="type === 'boolean'; else box"
3005
+ type="button"
3006
+ class="wu-column-filter-bool"
3007
+ role="checkbox"
3008
+ [class.wu-column-filter-bool-set]="hasValue"
3009
+ [attr.aria-checked]="value === true ? 'true' : value === false ? 'false' : 'mixed'"
3010
+ [attr.aria-label]="ariaLabel || placeholder || field"
3011
+ [attr.title]="boolLabel || null"
3012
+ (click)="cycle()"
3013
+ >
3014
+ <ng-container *ngIf="value === true">${CHECK_ICON}</ng-container>
3015
+ <ng-container *ngIf="value === false">${X_ICON}</ng-container>
3016
+ </button>
3017
+ <ng-template #box>
3018
+ <input
3019
+ class="wu-inputtext wu-column-filter-input p-inputtext p-component p-column-filter-input"
3020
+ [attr.type]="inputType"
3021
+ [value]="inputValue"
3022
+ [attr.placeholder]="placeholder || t.search"
3023
+ [attr.aria-label]="ariaLabel || placeholder || t.search"
3024
+ (input)="input($event)"
3025
+ />
3026
+ </ng-template>
3027
+ </ng-template>
3028
+ <button *ngIf="showClearButton && hasValue" type="button" class="wu-column-filter-clear p-column-filter-clear-button" [attr.aria-label]="t.clear" (click)="clear()">${X_ICON}</button>
3029
+ </div>
3030
+ </ng-template>`,
3031
+ encapsulation: ViewEncapsulation.None,
3032
+ changeDetection: ChangeDetectionStrategy.OnPush,
3033
+ host: { class: 'wu-column-filter-host' },
3034
+ }]
3035
+ }] });
3036
+
3037
+ /**
3038
+ * What wu-cellEditor does: shows its `output` template, and its `input` template while its cell (cell editing) or
3039
+ * its row (row editing) is being edited.
3040
+ */
3041
+ class ɵWuCellEditorBase {
3042
+ constructor() {
3043
+ this.table = inject(ɵWU_TABLE);
3044
+ this.column = inject(WuEditableColumn, { optional: true });
3045
+ this.row = inject(WuEditableRow, { optional: true });
3046
+ }
3047
+ get editing() {
3048
+ if (this.table.editMode === 'row')
3049
+ return !!this.row && this.table.isRowEditing(this.row.data);
3050
+ return !!this.column && this.table.isCellEditing(this.column.el);
3051
+ }
3052
+ get inputTemplate() {
3053
+ return this.inputRef || ɵfindTemplate(this.slotTemplates, 'input');
3054
+ }
3055
+ get outputTemplate() {
3056
+ return this.outputRef || ɵfindTemplate(this.slotTemplates, 'output');
3057
+ }
3058
+ }
3059
+ ɵWuCellEditorBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ɵWuCellEditorBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3060
+ ɵWuCellEditorBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ɵWuCellEditorBase, queries: [{ propertyName: "inputRef", first: true, predicate: ["input"], descendants: true, read: TemplateRef }, { propertyName: "outputRef", first: true, predicate: ["output"], descendants: true, read: TemplateRef }, { propertyName: "slotTemplates", predicate: WuTemplate }], ngImport: i0 });
3061
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ɵWuCellEditorBase, decorators: [{
3062
+ type: Directive
3063
+ }], propDecorators: { slotTemplates: [{
3064
+ type: ContentChildren,
3065
+ args: [WuTemplate]
3066
+ }], inputRef: [{
3067
+ type: ContentChild,
3068
+ args: ['input', { read: TemplateRef }]
3069
+ }], outputRef: [{
3070
+ type: ContentChild,
3071
+ args: ['output', { read: TemplateRef }]
3072
+ }] } });
3073
+
3074
+ /**
3075
+ * The editor inside an editable cell or row: `<wu-cellEditor>` with an `input` template (the field) and an `output`
3076
+ * template (the value), as `pTemplate="input"` / `pTemplate="output"` or `#input` / `#output`.
3077
+ */
3078
+ class WuCellEditor extends ɵWuCellEditorBase {
3079
+ constructor() {
3080
+ super(...arguments);
3081
+ this.cdr = inject(ChangeDetectorRef);
3082
+ this.sub = this.table.changes.subscribe(() => this.cdr.markForCheck());
3083
+ }
3084
+ ngOnDestroy() {
3085
+ this.sub.unsubscribe();
3086
+ }
3087
+ }
3088
+ WuCellEditor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuCellEditor, deps: null, target: i0.ɵɵFactoryTarget.Component });
3089
+ WuCellEditor.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuCellEditor, isStandalone: true, selector: "wu-cellEditor, wu-celleditor, wu-cell-editor", usesInheritance: true, ngImport: i0, template: `<ng-container *ngIf="editing; else showOutput"><ng-container *ngIf="inputTemplate"><ng-container *ngTemplateOutlet="inputTemplate"></ng-container></ng-container></ng-container>
3090
+ <ng-template #showOutput><ng-container *ngIf="outputTemplate"><ng-container *ngTemplateOutlet="outputTemplate"></ng-container></ng-container></ng-template>`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3091
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuCellEditor, decorators: [{
3092
+ type: Component,
3093
+ args: [{
3094
+ selector: 'wu-cellEditor, wu-celleditor, wu-cell-editor',
3095
+ standalone: true,
3096
+ imports: [NgIf, NgTemplateOutlet],
3097
+ template: `<ng-container *ngIf="editing; else showOutput"><ng-container *ngIf="inputTemplate"><ng-container *ngTemplateOutlet="inputTemplate"></ng-container></ng-container></ng-container>
3098
+ <ng-template #showOutput><ng-container *ngIf="outputTemplate"><ng-container *ngTemplateOutlet="outputTemplate"></ng-container></ng-container></ng-template>`,
3099
+ encapsulation: ViewEncapsulation.None,
3100
+ changeDetection: ChangeDetectionStrategy.OnPush,
3101
+ }]
3102
+ }] });
3103
+
3104
+ const ALL = [
3105
+ WuTable,
3106
+ WuSortableColumn,
3107
+ WuSortIcon,
3108
+ WuSelectableRow,
3109
+ WuTableCheckbox,
3110
+ WuTableHeaderCheckbox,
3111
+ WuFrozenColumn,
3112
+ WuRowToggler,
3113
+ WuRowGroupHeader,
3114
+ WuColumnFilter,
3115
+ WuTableRadioButton,
3116
+ WuSelectableRowDblClick,
3117
+ WuContextMenuRow,
3118
+ WuReorderableRow,
3119
+ WuReorderableRowHandle,
3120
+ WuEditableColumn,
3121
+ WuCellEditor,
3122
+ WuEditableRow,
3123
+ WuInitEditableRow,
3124
+ WuSaveEditableRow,
3125
+ WuCancelEditableRow,
3126
+ WuResizableColumn,
3127
+ WuReorderableColumn,
3128
+ WuTemplate,
3129
+ ];
3130
+ /** For NgModule apps: the table, its column / row / checkbox / filter directives and `wuTemplate` (`pTemplate`). */
3131
+ class WuTableModule {
3132
+ }
3133
+ WuTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3134
+ WuTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: WuTableModule, imports: [WuTable,
3135
+ WuSortableColumn,
3136
+ WuSortIcon,
3137
+ WuSelectableRow,
3138
+ WuTableCheckbox,
3139
+ WuTableHeaderCheckbox,
3140
+ WuFrozenColumn,
3141
+ WuRowToggler,
3142
+ WuRowGroupHeader,
3143
+ WuColumnFilter,
3144
+ WuTableRadioButton,
3145
+ WuSelectableRowDblClick,
3146
+ WuContextMenuRow,
3147
+ WuReorderableRow,
3148
+ WuReorderableRowHandle,
3149
+ WuEditableColumn,
3150
+ WuCellEditor,
3151
+ WuEditableRow,
3152
+ WuInitEditableRow,
3153
+ WuSaveEditableRow,
3154
+ WuCancelEditableRow,
3155
+ WuResizableColumn,
3156
+ WuReorderableColumn,
3157
+ WuTemplate], exports: [WuTable,
3158
+ WuSortableColumn,
3159
+ WuSortIcon,
3160
+ WuSelectableRow,
3161
+ WuTableCheckbox,
3162
+ WuTableHeaderCheckbox,
3163
+ WuFrozenColumn,
3164
+ WuRowToggler,
3165
+ WuRowGroupHeader,
3166
+ WuColumnFilter,
3167
+ WuTableRadioButton,
3168
+ WuSelectableRowDblClick,
3169
+ WuContextMenuRow,
3170
+ WuReorderableRow,
3171
+ WuReorderableRowHandle,
3172
+ WuEditableColumn,
3173
+ WuCellEditor,
3174
+ WuEditableRow,
3175
+ WuInitEditableRow,
3176
+ WuSaveEditableRow,
3177
+ WuCancelEditableRow,
3178
+ WuResizableColumn,
3179
+ WuReorderableColumn,
3180
+ WuTemplate] });
3181
+ WuTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuTableModule, imports: [WuTable,
3182
+ WuSortIcon,
3183
+ WuTableCheckbox,
3184
+ WuTableHeaderCheckbox,
3185
+ WuColumnFilter,
3186
+ WuTableRadioButton,
3187
+ WuCellEditor] });
3188
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuTableModule, decorators: [{
3189
+ type: NgModule,
3190
+ args: [{
3191
+ imports: ALL,
3192
+ exports: ALL,
3193
+ }]
3194
+ }] });
3195
+
3196
+ /**
3197
+ * Generated bundle index. Do not edit.
3198
+ */
3199
+
3200
+ export { WuCancelEditableRow, WuCellEditor, WuColumnFilter, WuContextMenuRow, WuEditableColumn, WuEditableRow, WuFrozenColumn, WuInitEditableRow, WuReorderableColumn, WuReorderableRow, WuReorderableRowHandle, WuResizableColumn, WuRowGroupHeader, WuRowToggler, WuSaveEditableRow, WuSelectableRow, WuSelectableRowDblClick, WuSortIcon, WuSortableColumn, WuTable, WuTableCheckbox, WuTableHeaderCheckbox, WuTableModule, WuTableRadioButton, ɵWU_TABLE, ɵWuCellEditorBase, ɵWuColumnFilterBase, ɵWuTableBase };
3201
+ //# sourceMappingURL=wirabyte-ui-table.mjs.map