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