@xlabs-store/core 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1398) hide show
  1. package/LICENSE +21 -0
  2. package/components/index.d.ts +35 -0
  3. package/components/index.js +1 -0
  4. package/components/p-5c86X8JO.js +1 -0
  5. package/components/p-6KpqCGp9.js +1 -0
  6. package/components/p-ADwHM_jT.js +1 -0
  7. package/components/p-AgSyA7Ia.js +1 -0
  8. package/components/p-B-7Hwizp.js +1 -0
  9. package/components/p-B-ClGFfy.js +1 -0
  10. package/components/p-B4R9Mtmk.js +1 -0
  11. package/components/p-B4rO7Sgt.js +1 -0
  12. package/components/p-B5Syz0fw.js +1 -0
  13. package/components/p-B6p-mzW-.js +1 -0
  14. package/components/p-B8SZP5Xz.js +1 -0
  15. package/components/p-BBGHXZqR.js +1 -0
  16. package/components/p-BHLvuyOq.js +1 -0
  17. package/components/p-BM-ap7lt.js +1 -0
  18. package/components/p-BOCR5Zk0.js +1 -0
  19. package/components/p-BPeosvTA.js +1 -0
  20. package/components/p-BRBrLtOz.js +1 -0
  21. package/components/p-BSRP2TGa.js +1 -0
  22. package/components/p-BUjRcJoK.js +1 -0
  23. package/components/p-BVeQ5W_G.js +1 -0
  24. package/components/p-BVnVlCcd.js +1 -0
  25. package/components/p-BZQcq9R_.js +1 -0
  26. package/components/p-BeIFU-wn.js +1 -0
  27. package/components/p-BkEgl31q.js +1 -0
  28. package/components/p-BkPJ1Whr.js +1 -0
  29. package/components/p-BkevSugc.js +1 -0
  30. package/components/p-BkiOFW3H.js +1 -0
  31. package/components/p-BskMfHyY.js +1 -0
  32. package/components/p-Bu2JqZs8.js +1 -0
  33. package/components/p-BvjR2Q5Q.js +1 -0
  34. package/components/p-Bz7MhZ4K.js +1 -0
  35. package/components/p-C3gvR6nN.js +1 -0
  36. package/components/p-C70KKm8p.js +1 -0
  37. package/components/p-C7csgUoA.js +1 -0
  38. package/components/p-CAPfC5Vn.js +1 -0
  39. package/components/p-CEBSDVyp.js +1 -0
  40. package/components/p-CFB6xkAX.js +1 -0
  41. package/components/p-CGIxdOEm.js +1 -0
  42. package/components/p-CGYOWZnh.js +1 -0
  43. package/components/p-CHRrsVXB.js +1 -0
  44. package/components/p-CKUzvJue.js +1 -0
  45. package/components/p-CKVSyuIH.js +1 -0
  46. package/components/p-COpzIi1n.js +1 -0
  47. package/components/p-CRBPzT4B.js +1 -0
  48. package/components/p-CSfrs76m.js +1 -0
  49. package/components/p-C_ZBjXFP.js +1 -0
  50. package/components/p-Cd919NAP.js +1 -0
  51. package/components/p-Ce32Mo_Q.js +1 -0
  52. package/components/p-Ce5L9qbY.js +1 -0
  53. package/components/p-CeBfFEIa.js +1 -0
  54. package/components/p-CfhgoXyB.js +1 -0
  55. package/components/p-Ck6SW8G3.js +1 -0
  56. package/components/p-Co3Y9VjQ.js +1 -0
  57. package/components/p-D66tF8_2.js +1 -0
  58. package/components/p-D7ijqXRY.js +1 -0
  59. package/components/p-D7n-26Q5.js +1 -0
  60. package/components/p-D8ew7Rgv.js +1 -0
  61. package/components/p-DBk4T-b-.js +1 -0
  62. package/components/p-DD-W_fMF.js +1 -0
  63. package/components/p-DElCk9ta.js +1 -0
  64. package/components/p-DEumEVI3.js +1 -0
  65. package/components/p-DGqQ8PT4.js +1 -0
  66. package/components/p-DJ1WhSJ4.js +1 -0
  67. package/components/p-DOxXxhXb.js +1 -0
  68. package/components/p-DRa4o4c6.js +1 -0
  69. package/components/p-DTlSrH8_.js +1 -0
  70. package/components/p-DTvD0UO5.js +1 -0
  71. package/components/p-DVz50Dd3.js +1 -0
  72. package/components/p-DZFphzg1.js +1 -0
  73. package/components/p-DZPUUptR.js +1 -0
  74. package/components/p-D_xaGiZU.js +1 -0
  75. package/components/p-DaL42JUi.js +1 -0
  76. package/components/p-DbRpEXwX.js +1 -0
  77. package/components/p-DcRlYBIl.js +1 -0
  78. package/components/p-Dg0xgMke.js +1 -0
  79. package/components/p-Dgxy93Bg.js +1 -0
  80. package/components/p-Dky_8i8S.js +1 -0
  81. package/components/p-DlwlBBr4.js +1 -0
  82. package/components/p-DoTf8yXn.js +1 -0
  83. package/components/p-DphUq6Z5.js +1 -0
  84. package/components/p-DsgWQbJY.js +1 -0
  85. package/components/p-Dx3yBe39.js +1 -0
  86. package/components/p-DxKMnrS8.js +1 -0
  87. package/components/p-O88oQkR1.js +1 -0
  88. package/components/p-PlUkLT0A.js +1 -0
  89. package/components/p-QTSiPk0I.js +1 -0
  90. package/components/p-TC9DZAbC.js +1 -0
  91. package/components/p-XBF88YT_.js +1 -0
  92. package/components/p-bVsOg7S9.js +1 -0
  93. package/components/p-ccpcKv5U.js +1 -0
  94. package/components/p-en06CSUT.js +1 -0
  95. package/components/p-g6ZBqIze.js +1 -0
  96. package/components/p-noTpj1Kh.js +1 -0
  97. package/components/x-address.d.ts +11 -0
  98. package/components/x-address.js +1 -0
  99. package/components/x-affix.d.ts +11 -0
  100. package/components/x-affix.js +1 -0
  101. package/components/x-alert.d.ts +11 -0
  102. package/components/x-alert.js +1 -0
  103. package/components/x-anchor-link.d.ts +11 -0
  104. package/components/x-anchor-link.js +1 -0
  105. package/components/x-anchor.d.ts +11 -0
  106. package/components/x-anchor.js +1 -0
  107. package/components/x-app.d.ts +11 -0
  108. package/components/x-app.js +1 -0
  109. package/components/x-auto-complete-dropdown-content.d.ts +11 -0
  110. package/components/x-auto-complete-dropdown-content.js +1 -0
  111. package/components/x-auto-complete.d.ts +11 -0
  112. package/components/x-auto-complete.js +1 -0
  113. package/components/x-avatar.d.ts +11 -0
  114. package/components/x-avatar.js +1 -0
  115. package/components/x-back-top.d.ts +11 -0
  116. package/components/x-back-top.js +1 -0
  117. package/components/x-badge.d.ts +11 -0
  118. package/components/x-badge.js +1 -0
  119. package/components/x-breadcrumb-item.d.ts +11 -0
  120. package/components/x-breadcrumb-item.js +1 -0
  121. package/components/x-breadcrumb.d.ts +11 -0
  122. package/components/x-breadcrumb.js +1 -0
  123. package/components/x-button.d.ts +11 -0
  124. package/components/x-button.js +1 -0
  125. package/components/x-captcha.d.ts +11 -0
  126. package/components/x-captcha.js +1 -0
  127. package/components/x-card.d.ts +11 -0
  128. package/components/x-card.js +1 -0
  129. package/components/x-carousel.d.ts +11 -0
  130. package/components/x-carousel.js +1 -0
  131. package/components/x-cascader-dropdown-content.d.ts +11 -0
  132. package/components/x-cascader-dropdown-content.js +1 -0
  133. package/components/x-cascader.d.ts +11 -0
  134. package/components/x-cascader.js +1 -0
  135. package/components/x-checkbox.d.ts +11 -0
  136. package/components/x-checkbox.js +1 -0
  137. package/components/x-col.d.ts +11 -0
  138. package/components/x-col.js +1 -0
  139. package/components/x-collapse-panel.d.ts +11 -0
  140. package/components/x-collapse-panel.js +1 -0
  141. package/components/x-collapse.d.ts +11 -0
  142. package/components/x-collapse.js +1 -0
  143. package/components/x-color-picker-panel.d.ts +11 -0
  144. package/components/x-color-picker-panel.js +1 -0
  145. package/components/x-color-picker.d.ts +11 -0
  146. package/components/x-color-picker.js +1 -0
  147. package/components/x-comment.d.ts +11 -0
  148. package/components/x-comment.js +1 -0
  149. package/components/x-content.d.ts +11 -0
  150. package/components/x-content.js +1 -0
  151. package/components/x-date-picker-dropdown-content.d.ts +11 -0
  152. package/components/x-date-picker-dropdown-content.js +1 -0
  153. package/components/x-date-picker.d.ts +11 -0
  154. package/components/x-date-picker.js +1 -0
  155. package/components/x-descriptions-item.d.ts +11 -0
  156. package/components/x-descriptions-item.js +1 -0
  157. package/components/x-descriptions.d.ts +11 -0
  158. package/components/x-descriptions.js +1 -0
  159. package/components/x-divider.d.ts +11 -0
  160. package/components/x-divider.js +1 -0
  161. package/components/x-drawer-content.d.ts +11 -0
  162. package/components/x-drawer-content.js +1 -0
  163. package/components/x-drawer.d.ts +11 -0
  164. package/components/x-drawer.js +1 -0
  165. package/components/x-dropdown-content.d.ts +11 -0
  166. package/components/x-dropdown-content.js +1 -0
  167. package/components/x-dropdown.d.ts +11 -0
  168. package/components/x-dropdown.js +1 -0
  169. package/components/x-editor.d.ts +11 -0
  170. package/components/x-editor.js +1 -0
  171. package/components/x-empty.d.ts +11 -0
  172. package/components/x-empty.js +1 -0
  173. package/components/x-finder.d.ts +11 -0
  174. package/components/x-finder.js +1 -0
  175. package/components/x-flex.d.ts +11 -0
  176. package/components/x-flex.js +1 -0
  177. package/components/x-float-button.d.ts +11 -0
  178. package/components/x-float-button.js +1 -0
  179. package/components/x-footer.d.ts +11 -0
  180. package/components/x-footer.js +1 -0
  181. package/components/x-form-builder.d.ts +11 -0
  182. package/components/x-form-builder.js +1 -0
  183. package/components/x-form-item.d.ts +11 -0
  184. package/components/x-form-item.js +1 -0
  185. package/components/x-form.d.ts +11 -0
  186. package/components/x-form.js +1 -0
  187. package/components/x-header.d.ts +11 -0
  188. package/components/x-header.js +1 -0
  189. package/components/x-icon.d.ts +11 -0
  190. package/components/x-icon.js +1 -0
  191. package/components/x-image.d.ts +11 -0
  192. package/components/x-image.js +1 -0
  193. package/components/x-infinite-scroll.d.ts +11 -0
  194. package/components/x-infinite-scroll.js +1 -0
  195. package/components/x-input-number.d.ts +11 -0
  196. package/components/x-input-number.js +1 -0
  197. package/components/x-input.d.ts +11 -0
  198. package/components/x-input.js +1 -0
  199. package/components/x-layout.d.ts +11 -0
  200. package/components/x-layout.js +1 -0
  201. package/components/x-list-item.d.ts +11 -0
  202. package/components/x-list-item.js +1 -0
  203. package/components/x-list.d.ts +11 -0
  204. package/components/x-list.js +1 -0
  205. package/components/x-mentions.d.ts +11 -0
  206. package/components/x-mentions.js +1 -0
  207. package/components/x-menu-divider.d.ts +11 -0
  208. package/components/x-menu-divider.js +1 -0
  209. package/components/x-menu-item-group.d.ts +11 -0
  210. package/components/x-menu-item-group.js +1 -0
  211. package/components/x-menu-item.d.ts +11 -0
  212. package/components/x-menu-item.js +1 -0
  213. package/components/x-menu-submenu.d.ts +11 -0
  214. package/components/x-menu-submenu.js +1 -0
  215. package/components/x-menu.d.ts +11 -0
  216. package/components/x-menu.js +1 -0
  217. package/components/x-message.d.ts +11 -0
  218. package/components/x-message.js +1 -0
  219. package/components/x-modal-content.d.ts +11 -0
  220. package/components/x-modal-content.js +1 -0
  221. package/components/x-modal.d.ts +11 -0
  222. package/components/x-modal.js +1 -0
  223. package/components/x-notification.d.ts +11 -0
  224. package/components/x-notification.js +1 -0
  225. package/components/x-page-header.d.ts +11 -0
  226. package/components/x-page-header.js +1 -0
  227. package/components/x-pagination.d.ts +11 -0
  228. package/components/x-pagination.js +1 -0
  229. package/components/x-popconfirm-content.d.ts +11 -0
  230. package/components/x-popconfirm-content.js +1 -0
  231. package/components/x-popconfirm.d.ts +11 -0
  232. package/components/x-popconfirm.js +1 -0
  233. package/components/x-popover-content.d.ts +11 -0
  234. package/components/x-popover-content.js +1 -0
  235. package/components/x-popover.d.ts +11 -0
  236. package/components/x-popover.js +1 -0
  237. package/components/x-progress.d.ts +11 -0
  238. package/components/x-progress.js +1 -0
  239. package/components/x-qr-code.d.ts +11 -0
  240. package/components/x-qr-code.js +1 -0
  241. package/components/x-radio-group.d.ts +11 -0
  242. package/components/x-radio-group.js +1 -0
  243. package/components/x-radio.d.ts +11 -0
  244. package/components/x-radio.js +1 -0
  245. package/components/x-range-picker-dropdown-content.d.ts +11 -0
  246. package/components/x-range-picker-dropdown-content.js +1 -0
  247. package/components/x-range-picker.d.ts +11 -0
  248. package/components/x-range-picker.js +1 -0
  249. package/components/x-rate.d.ts +11 -0
  250. package/components/x-rate.js +1 -0
  251. package/components/x-result.d.ts +11 -0
  252. package/components/x-result.js +1 -0
  253. package/components/x-row.d.ts +11 -0
  254. package/components/x-row.js +1 -0
  255. package/components/x-segmented.d.ts +11 -0
  256. package/components/x-segmented.js +1 -0
  257. package/components/x-select-dropdown-content.d.ts +11 -0
  258. package/components/x-select-dropdown-content.js +1 -0
  259. package/components/x-select-option.d.ts +11 -0
  260. package/components/x-select-option.js +1 -0
  261. package/components/x-select.d.ts +11 -0
  262. package/components/x-select.js +1 -0
  263. package/components/x-sider.d.ts +11 -0
  264. package/components/x-sider.js +1 -0
  265. package/components/x-skeleton.d.ts +11 -0
  266. package/components/x-skeleton.js +1 -0
  267. package/components/x-slider.d.ts +11 -0
  268. package/components/x-slider.js +1 -0
  269. package/components/x-space.d.ts +11 -0
  270. package/components/x-space.js +1 -0
  271. package/components/x-spin.d.ts +11 -0
  272. package/components/x-spin.js +1 -0
  273. package/components/x-splitter-panel.d.ts +11 -0
  274. package/components/x-splitter-panel.js +1 -0
  275. package/components/x-splitter.d.ts +11 -0
  276. package/components/x-splitter.js +1 -0
  277. package/components/x-statistic.d.ts +11 -0
  278. package/components/x-statistic.js +1 -0
  279. package/components/x-step.d.ts +11 -0
  280. package/components/x-step.js +1 -0
  281. package/components/x-steps.d.ts +11 -0
  282. package/components/x-steps.js +1 -0
  283. package/components/x-switch.d.ts +11 -0
  284. package/components/x-switch.js +1 -0
  285. package/components/x-tab-pane.d.ts +11 -0
  286. package/components/x-tab-pane.js +1 -0
  287. package/components/x-table-cell.d.ts +11 -0
  288. package/components/x-table-cell.js +1 -0
  289. package/components/x-table-row.d.ts +11 -0
  290. package/components/x-table-row.js +1 -0
  291. package/components/x-table.d.ts +11 -0
  292. package/components/x-table.js +1 -0
  293. package/components/x-tabs.d.ts +11 -0
  294. package/components/x-tabs.js +1 -0
  295. package/components/x-tag.d.ts +11 -0
  296. package/components/x-tag.js +1 -0
  297. package/components/x-textarea.d.ts +11 -0
  298. package/components/x-textarea.js +1 -0
  299. package/components/x-time-picker-dropdown-content.d.ts +11 -0
  300. package/components/x-time-picker-dropdown-content.js +1 -0
  301. package/components/x-time-picker.d.ts +11 -0
  302. package/components/x-time-picker.js +1 -0
  303. package/components/x-timeline-item.d.ts +11 -0
  304. package/components/x-timeline-item.js +1 -0
  305. package/components/x-timeline.d.ts +11 -0
  306. package/components/x-timeline.js +1 -0
  307. package/components/x-tooltip-content.d.ts +11 -0
  308. package/components/x-tooltip-content.js +1 -0
  309. package/components/x-tooltip.d.ts +11 -0
  310. package/components/x-tooltip.js +1 -0
  311. package/components/x-tour-panel.d.ts +11 -0
  312. package/components/x-tour-panel.js +1 -0
  313. package/components/x-tour.d.ts +11 -0
  314. package/components/x-tour.js +1 -0
  315. package/components/x-transfer.d.ts +11 -0
  316. package/components/x-transfer.js +1 -0
  317. package/components/x-tree-select-dropdown-content.d.ts +11 -0
  318. package/components/x-tree-select-dropdown-content.js +1 -0
  319. package/components/x-tree-select.d.ts +11 -0
  320. package/components/x-tree-select.js +1 -0
  321. package/components/x-tree.d.ts +11 -0
  322. package/components/x-tree.js +1 -0
  323. package/components/x-typography.d.ts +11 -0
  324. package/components/x-typography.js +1 -0
  325. package/components/x-upload.d.ts +11 -0
  326. package/components/x-upload.js +1 -0
  327. package/components/x-virtual-scroll.d.ts +11 -0
  328. package/components/x-virtual-scroll.js +1 -0
  329. package/components/x-workflow-builder.d.ts +11 -0
  330. package/components/x-workflow-builder.js +1 -0
  331. package/components/x-workflow.d.ts +11 -0
  332. package/components/x-workflow.js +1 -0
  333. package/dist/cjs/abstract-control-C4D0eNCC.js +277 -0
  334. package/dist/cjs/config-BP9bROYD.js +63 -0
  335. package/dist/cjs/index-C7sKs9A2.js +2170 -0
  336. package/dist/cjs/index.cjs.js +14 -0
  337. package/dist/cjs/loader.cjs.js +12 -0
  338. package/dist/cjs/locale.service-Cz-aZQnr.js +8203 -0
  339. package/dist/cjs/modal-service-BtAF0mFq.js +399 -0
  340. package/dist/cjs/notification-service-m6I5U9aG.js +602 -0
  341. package/dist/cjs/portal-controller-CtYVbhXL.js +504 -0
  342. package/dist/cjs/schema-builder-CYnX7lKi.js +1505 -0
  343. package/dist/cjs/tree.service-fxLOCSpD.js +339 -0
  344. package/dist/cjs/types-DQ-V76ZQ.js +255 -0
  345. package/dist/cjs/x-address_14.cjs.entry.js +12577 -0
  346. package/dist/cjs/x-affix.cjs.entry.js +182 -0
  347. package/dist/cjs/x-alert_11.cjs.entry.js +3239 -0
  348. package/dist/cjs/x-anchor-link.cjs.entry.js +67 -0
  349. package/dist/cjs/x-anchor.cjs.entry.js +158 -0
  350. package/dist/cjs/x-app.cjs.entry.js +137 -0
  351. package/dist/cjs/x-auto-complete-dropdown-content.cjs.entry.js +69 -0
  352. package/dist/cjs/x-avatar.cjs.entry.js +269 -0
  353. package/dist/cjs/x-back-top.cjs.entry.js +89 -0
  354. package/dist/cjs/x-breadcrumb_5.cjs.entry.js +1554 -0
  355. package/dist/cjs/x-button.cjs.entry.js +174 -0
  356. package/dist/cjs/x-card_12.cjs.entry.js +1386 -0
  357. package/dist/cjs/x-carousel.cjs.entry.js +147 -0
  358. package/dist/cjs/x-cascader-dropdown-content.cjs.entry.js +364 -0
  359. package/dist/cjs/x-checkbox_5.cjs.entry.js +1376 -0
  360. package/dist/cjs/x-collapse-panel.cjs.entry.js +243 -0
  361. package/dist/cjs/x-collapse.cjs.entry.js +291 -0
  362. package/dist/cjs/x-color-picker-panel_2.cjs.entry.js +873 -0
  363. package/dist/cjs/x-color-picker_9.cjs.entry.js +3085 -0
  364. package/dist/cjs/x-comment.cjs.entry.js +189 -0
  365. package/dist/cjs/x-date-picker-dropdown-content.cjs.entry.js +757 -0
  366. package/dist/cjs/x-descriptions-item.cjs.entry.js +108 -0
  367. package/dist/cjs/x-drawer-content.cjs.entry.js +197 -0
  368. package/dist/cjs/x-drawer.cjs.entry.js +294 -0
  369. package/dist/cjs/x-dropdown_2.cjs.entry.js +735 -0
  370. package/dist/cjs/x-empty.cjs.entry.js +64 -0
  371. package/dist/cjs/x-finder.cjs.entry.js +647 -0
  372. package/dist/cjs/x-form-builder.cjs.entry.js +807 -0
  373. package/dist/cjs/x-icon.cjs.entry.js +144 -0
  374. package/dist/cjs/x-infinite-scroll.cjs.entry.js +129 -0
  375. package/dist/cjs/x-list-item.cjs.entry.js +27 -0
  376. package/dist/cjs/x-list.cjs.entry.js +138 -0
  377. package/dist/cjs/x-mentions.cjs.entry.js +275 -0
  378. package/dist/cjs/x-menu-divider.cjs.entry.js +49 -0
  379. package/dist/cjs/x-menu-item-group.cjs.entry.js +149 -0
  380. package/dist/cjs/x-menu-submenu.cjs.entry.js +373 -0
  381. package/dist/cjs/x-message.cjs.entry.js +219 -0
  382. package/dist/cjs/x-modal-content.cjs.entry.js +217 -0
  383. package/dist/cjs/x-notification.cjs.entry.js +325 -0
  384. package/dist/cjs/x-page-header.cjs.entry.js +67 -0
  385. package/dist/cjs/x-popconfirm-content.cjs.entry.js +72 -0
  386. package/dist/cjs/x-popconfirm.cjs.entry.js +181 -0
  387. package/dist/cjs/x-progress.cjs.entry.js +136 -0
  388. package/dist/cjs/x-qr-code.cjs.entry.js +446 -0
  389. package/dist/cjs/x-range-picker-dropdown-content.cjs.entry.js +821 -0
  390. package/dist/cjs/x-select_2.cjs.entry.js +1316 -0
  391. package/dist/cjs/x-skeleton.cjs.entry.js +75 -0
  392. package/dist/cjs/x-spin.cjs.entry.js +62 -0
  393. package/dist/cjs/x-splitter-panel.cjs.entry.js +91 -0
  394. package/dist/cjs/x-splitter.cjs.entry.js +612 -0
  395. package/dist/cjs/x-statistic.cjs.entry.js +104 -0
  396. package/dist/cjs/x-step.cjs.entry.js +179 -0
  397. package/dist/cjs/x-steps.cjs.entry.js +439 -0
  398. package/dist/cjs/x-tab-pane.cjs.entry.js +73 -0
  399. package/dist/cjs/x-table-cell.cjs.entry.js +45 -0
  400. package/dist/cjs/x-table-row.cjs.entry.js +85 -0
  401. package/dist/cjs/x-tabs.cjs.entry.js +609 -0
  402. package/dist/cjs/x-time-picker-dropdown-content.cjs.entry.js +389 -0
  403. package/dist/cjs/x-timeline-item.cjs.entry.js +50 -0
  404. package/dist/cjs/x-timeline.cjs.entry.js +52 -0
  405. package/dist/cjs/x-tour-panel.cjs.entry.js +89 -0
  406. package/dist/cjs/x-tour.cjs.entry.js +344 -0
  407. package/dist/cjs/x-tree-select-dropdown-content.cjs.entry.js +439 -0
  408. package/dist/cjs/x-virtual-scroll.cjs.entry.js +203 -0
  409. package/dist/cjs/x-workflow-builder.cjs.entry.js +366 -0
  410. package/dist/cjs/xlabs-store.cjs.js +24 -0
  411. package/dist/collection/collection-manifest.json +130 -0
  412. package/dist/collection/components/x-address/vietnam-data.js +28 -0
  413. package/dist/collection/components/x-address/x-address.css +367 -0
  414. package/dist/collection/components/x-address/x-address.js +403 -0
  415. package/dist/collection/components/x-affix/x-affix.css +27 -0
  416. package/dist/collection/components/x-affix/x-affix.js +299 -0
  417. package/dist/collection/components/x-alert/x-alert.css +475 -0
  418. package/dist/collection/components/x-alert/x-alert.js +273 -0
  419. package/dist/collection/components/x-anchor/x-anchor.css +74 -0
  420. package/dist/collection/components/x-anchor/x-anchor.js +371 -0
  421. package/dist/collection/components/x-anchor-link/x-anchor-link.css +43 -0
  422. package/dist/collection/components/x-anchor-link/x-anchor-link.js +145 -0
  423. package/dist/collection/components/x-app/x-app.css +14 -0
  424. package/dist/collection/components/x-app/x-app.js +308 -0
  425. package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.css +410 -0
  426. package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.js +166 -0
  427. package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/index.js +1 -0
  428. package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/types.js +1 -0
  429. package/dist/collection/components/x-auto-complete/types.js +61 -0
  430. package/dist/collection/components/x-auto-complete/x-auto-complete.css +535 -0
  431. package/dist/collection/components/x-auto-complete/x-auto-complete.js +1829 -0
  432. package/dist/collection/components/x-avatar/types.js +1 -0
  433. package/dist/collection/components/x-avatar/x-avatar.css +128 -0
  434. package/dist/collection/components/x-avatar/x-avatar.js +533 -0
  435. package/dist/collection/components/x-back-top/x-back-top.css +56 -0
  436. package/dist/collection/components/x-back-top/x-back-top.js +148 -0
  437. package/dist/collection/components/x-badge/types.js +1 -0
  438. package/dist/collection/components/x-badge/x-badge.css +233 -0
  439. package/dist/collection/components/x-badge/x-badge.js +618 -0
  440. package/dist/collection/components/x-breadcrumb/x-breadcrumb.css +44 -0
  441. package/dist/collection/components/x-breadcrumb/x-breadcrumb.js +96 -0
  442. package/dist/collection/components/x-breadcrumb-item/x-breadcrumb-item.css +63 -0
  443. package/dist/collection/components/x-breadcrumb-item/x-breadcrumb-item.js +147 -0
  444. package/dist/collection/components/x-button/x-button.css +278 -0
  445. package/dist/collection/components/x-button/x-button.js +488 -0
  446. package/dist/collection/components/x-captcha/x-captcha.css +125 -0
  447. package/dist/collection/components/x-captcha/x-captcha.js +408 -0
  448. package/dist/collection/components/x-card/x-card.css +523 -0
  449. package/dist/collection/components/x-card/x-card.js +389 -0
  450. package/dist/collection/components/x-carousel/x-carousel.css +417 -0
  451. package/dist/collection/components/x-carousel/x-carousel.js +257 -0
  452. package/dist/collection/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.css +529 -0
  453. package/dist/collection/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.js +771 -0
  454. package/dist/collection/components/x-cascader/cascader-dropdown-content/index.js +2 -0
  455. package/dist/collection/components/x-cascader/cascader-dropdown-content/types.js +1 -0
  456. package/dist/collection/components/x-cascader/types.js +1 -0
  457. package/dist/collection/components/x-cascader/x-cascader.css +691 -0
  458. package/dist/collection/components/x-cascader/x-cascader.js +1841 -0
  459. package/dist/collection/components/x-checkbox/types.js +1 -0
  460. package/dist/collection/components/x-checkbox/x-checkbox.css +541 -0
  461. package/dist/collection/components/x-checkbox/x-checkbox.js +681 -0
  462. package/dist/collection/components/x-col/x-col.css +1704 -0
  463. package/dist/collection/components/x-col/x-col.js +479 -0
  464. package/dist/collection/components/x-collapse/types.js +1 -0
  465. package/dist/collection/components/x-collapse/x-collapse.css +384 -0
  466. package/dist/collection/components/x-collapse/x-collapse.js +579 -0
  467. package/dist/collection/components/x-collapse-panel/x-collapse-panel.css +486 -0
  468. package/dist/collection/components/x-collapse-panel/x-collapse-panel.js +500 -0
  469. package/dist/collection/components/x-color-picker/types.js +251 -0
  470. package/dist/collection/components/x-color-picker/x-color-picker-panel.css +310 -0
  471. package/dist/collection/components/x-color-picker/x-color-picker-panel.js +575 -0
  472. package/dist/collection/components/x-color-picker/x-color-picker.css +446 -0
  473. package/dist/collection/components/x-color-picker/x-color-picker.js +1209 -0
  474. package/dist/collection/components/x-comment/types.js +1 -0
  475. package/dist/collection/components/x-comment/x-comment.css +442 -0
  476. package/dist/collection/components/x-comment/x-comment.js +306 -0
  477. package/dist/collection/components/x-content/types.js +1 -0
  478. package/dist/collection/components/x-content/x-content.css +361 -0
  479. package/dist/collection/components/x-content/x-content.js +402 -0
  480. package/dist/collection/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.css +691 -0
  481. package/dist/collection/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.js +1496 -0
  482. package/dist/collection/components/x-date-picker/date-picker-dropdown-content/index.js +1 -0
  483. package/dist/collection/components/x-date-picker/date-picker-dropdown-content/types.js +1 -0
  484. package/dist/collection/components/x-date-picker/types.js +1 -0
  485. package/dist/collection/components/x-date-picker/x-date-picker.css +804 -0
  486. package/dist/collection/components/x-date-picker/x-date-picker.js +2110 -0
  487. package/dist/collection/components/x-descriptions/types.js +1 -0
  488. package/dist/collection/components/x-descriptions/x-descriptions.css +417 -0
  489. package/dist/collection/components/x-descriptions/x-descriptions.js +494 -0
  490. package/dist/collection/components/x-descriptions-item/x-descriptions-item.css +387 -0
  491. package/dist/collection/components/x-descriptions-item/x-descriptions-item.js +238 -0
  492. package/dist/collection/components/x-divider/x-divider.css +417 -0
  493. package/dist/collection/components/x-divider/x-divider.js +263 -0
  494. package/dist/collection/components/x-drawer/x-drawer.css +333 -0
  495. package/dist/collection/components/x-drawer/x-drawer.js +623 -0
  496. package/dist/collection/components/x-drawer-content/x-drawer-content.css +481 -0
  497. package/dist/collection/components/x-drawer-content/x-drawer-content.js +579 -0
  498. package/dist/collection/components/x-dropdown/dropdown-content/dropdown-content.css +673 -0
  499. package/dist/collection/components/x-dropdown/dropdown-content/dropdown-content.js +294 -0
  500. package/dist/collection/components/x-dropdown/dropdown-content/types.js +1 -0
  501. package/dist/collection/components/x-dropdown/types.js +1 -0
  502. package/dist/collection/components/x-dropdown/x-dropdown.css +669 -0
  503. package/dist/collection/components/x-dropdown/x-dropdown.js +1004 -0
  504. package/dist/collection/components/x-editor/editor-history.js +118 -0
  505. package/dist/collection/components/x-editor/editor-normalizer.js +263 -0
  506. package/dist/collection/components/x-editor/editor-parser.js +326 -0
  507. package/dist/collection/components/x-editor/editor-selection.js +415 -0
  508. package/dist/collection/components/x-editor/types.js +33 -0
  509. package/dist/collection/components/x-editor/x-editor.css +599 -0
  510. package/dist/collection/components/x-editor/x-editor.js +1636 -0
  511. package/dist/collection/components/x-empty/x-empty.css +357 -0
  512. package/dist/collection/components/x-empty/x-empty.js +117 -0
  513. package/dist/collection/components/x-finder/services/finder-service.js +250 -0
  514. package/dist/collection/components/x-finder/types.js +1 -0
  515. package/dist/collection/components/x-finder/x-finder.css +633 -0
  516. package/dist/collection/components/x-finder/x-finder.js +540 -0
  517. package/dist/collection/components/x-flex/x-flex.css +344 -0
  518. package/dist/collection/components/x-flex/x-flex.js +285 -0
  519. package/dist/collection/components/x-float-button/x-float-button.css +389 -0
  520. package/dist/collection/components/x-float-button/x-float-button.js +265 -0
  521. package/dist/collection/components/x-footer/x-footer.css +346 -0
  522. package/dist/collection/components/x-footer/x-footer.js +29 -0
  523. package/dist/collection/components/x-form/x-form.css +365 -0
  524. package/dist/collection/components/x-form/x-form.js +355 -0
  525. package/dist/collection/components/x-form-builder/services/apis/api-client.js +240 -0
  526. package/dist/collection/components/x-form-builder/services/constants/index.js +33 -0
  527. package/dist/collection/components/x-form-builder/services/forms/abstract-control.js +175 -0
  528. package/dist/collection/components/x-form-builder/services/forms/form-array.js +92 -0
  529. package/dist/collection/components/x-form-builder/services/forms/form-builder.js +40 -0
  530. package/dist/collection/components/x-form-builder/services/forms/form-control.js +33 -0
  531. package/dist/collection/components/x-form-builder/services/forms/form-group.js +150 -0
  532. package/dist/collection/components/x-form-builder/services/forms/index.js +7 -0
  533. package/dist/collection/components/x-form-builder/services/forms/types.js +1 -0
  534. package/dist/collection/components/x-form-builder/services/forms/validators.js +83 -0
  535. package/dist/collection/components/x-form-builder/services/schema/condition-builder.js +337 -0
  536. package/dist/collection/components/x-form-builder/services/schema/default-registry.js +440 -0
  537. package/dist/collection/components/x-form-builder/services/schema/form-mapping.js +176 -0
  538. package/dist/collection/components/x-form-builder/services/schema/form-registry.js +30 -0
  539. package/dist/collection/components/x-form-builder/services/schema/schema-actions.js +3 -0
  540. package/dist/collection/components/x-form-builder/services/schema/schema-builder.js +52 -0
  541. package/dist/collection/components/x-form-builder/services/schema/schema-validator.js +53 -0
  542. package/dist/collection/components/x-form-builder/types/api/api-common-types.js +1 -0
  543. package/dist/collection/components/x-form-builder/types/api/api-interfaces.js +1 -0
  544. package/dist/collection/components/x-form-builder/types/api/index.js +2 -0
  545. package/dist/collection/components/x-form-builder/types/common/common-types.js +1 -0
  546. package/dist/collection/components/x-form-builder/types/common/condition-types.js +1 -0
  547. package/dist/collection/components/x-form-builder/types/common/field-types-enum.js +1 -0
  548. package/dist/collection/components/x-form-builder/types/common/index.js +7 -0
  549. package/dist/collection/components/x-form-builder/types/common/shared-interfaces.js +1 -0
  550. package/dist/collection/components/x-form-builder/types/common/validation-types.js +1 -0
  551. package/dist/collection/components/x-form-builder/types/common/value-types.js +1 -0
  552. package/dist/collection/components/x-form-builder/types/event/event-types.js +1 -0
  553. package/dist/collection/components/x-form-builder/types/event/index.js +1 -0
  554. package/dist/collection/components/x-form-builder/types/fields/advanced-fields.js +1 -0
  555. package/dist/collection/components/x-form-builder/types/fields/base-field.js +1 -0
  556. package/dist/collection/components/x-form-builder/types/fields/datetime-file-fields.js +1 -0
  557. package/dist/collection/components/x-form-builder/types/fields/display-fields.js +1 -0
  558. package/dist/collection/components/x-form-builder/types/fields/form-field-union.js +1 -0
  559. package/dist/collection/components/x-form-builder/types/fields/index.js +9 -0
  560. package/dist/collection/components/x-form-builder/types/fields/input-fields.js +1 -0
  561. package/dist/collection/components/x-form-builder/types/fields/layout-fields.js +1 -0
  562. package/dist/collection/components/x-form-builder/types/fields/selection-fields.js +10 -0
  563. package/dist/collection/components/x-form-builder/types/fields/special-input-fields.js +1 -0
  564. package/dist/collection/components/x-form-builder/types/form/events-types.js +1 -0
  565. package/dist/collection/components/x-form-builder/types/form/form-config.js +50 -0
  566. package/dist/collection/components/x-form-builder/types/form/index.js +2 -0
  567. package/dist/collection/components/x-form-builder/types/form/schema-types.js +1 -0
  568. package/dist/collection/components/x-form-builder/types/index.js +4 -0
  569. package/dist/collection/components/x-form-builder/utils/condition-engine.js +118 -0
  570. package/dist/collection/components/x-form-builder/utils/utils.js +138 -0
  571. package/dist/collection/components/x-form-builder/utils/values.js +36 -0
  572. package/dist/collection/components/x-form-builder/x-form-builder.css +3 -0
  573. package/dist/collection/components/x-form-builder/x-form-builder.js +1017 -0
  574. package/dist/collection/components/x-form-item/x-form-item.css +564 -0
  575. package/dist/collection/components/x-form-item/x-form-item.js +538 -0
  576. package/dist/collection/components/x-header/x-header.css +344 -0
  577. package/dist/collection/components/x-header/x-header.js +29 -0
  578. package/dist/collection/components/x-icon/fonts/xlabs-outlined.woff2 +0 -0
  579. package/dist/collection/components/x-icon/fonts/xlabs-rounded.woff2 +0 -0
  580. package/dist/collection/components/x-icon/fonts/xlabs-solided.woff2 +0 -0
  581. package/dist/collection/components/x-icon/icons.js +2716 -0
  582. package/dist/collection/components/x-icon/x-icon.css +378 -0
  583. package/dist/collection/components/x-icon/x-icon.js +353 -0
  584. package/dist/collection/components/x-image/types.js +1 -0
  585. package/dist/collection/components/x-image/x-image.css +556 -0
  586. package/dist/collection/components/x-image/x-image.js +628 -0
  587. package/dist/collection/components/x-infinite-scroll/x-infinite-scroll.css +345 -0
  588. package/dist/collection/components/x-infinite-scroll/x-infinite-scroll.js +294 -0
  589. package/dist/collection/components/x-input/types.js +1 -0
  590. package/dist/collection/components/x-input/x-input.css +640 -0
  591. package/dist/collection/components/x-input/x-input.js +1449 -0
  592. package/dist/collection/components/x-input-number/types.js +96 -0
  593. package/dist/collection/components/x-input-number/x-input-number.css +612 -0
  594. package/dist/collection/components/x-input-number/x-input-number.js +1488 -0
  595. package/dist/collection/components/x-layout/x-layout.css +361 -0
  596. package/dist/collection/components/x-layout/x-layout.js +188 -0
  597. package/dist/collection/components/x-list/x-list.css +382 -0
  598. package/dist/collection/components/x-list/x-list.js +373 -0
  599. package/dist/collection/components/x-list-item/x-list-item.css +351 -0
  600. package/dist/collection/components/x-list-item/x-list-item.js +31 -0
  601. package/dist/collection/components/x-mentions/types.js +1 -0
  602. package/dist/collection/components/x-mentions/x-mentions.css +388 -0
  603. package/dist/collection/components/x-mentions/x-mentions.js +528 -0
  604. package/dist/collection/components/x-menu/types.js +1 -0
  605. package/dist/collection/components/x-menu/x-menu.css +78 -0
  606. package/dist/collection/components/x-menu/x-menu.js +793 -0
  607. package/dist/collection/components/x-menu-divider/types.js +1 -0
  608. package/dist/collection/components/x-menu-divider/x-menu-divider.css +31 -0
  609. package/dist/collection/components/x-menu-divider/x-menu-divider.js +126 -0
  610. package/dist/collection/components/x-menu-item/types.js +1 -0
  611. package/dist/collection/components/x-menu-item/x-menu-item.css +183 -0
  612. package/dist/collection/components/x-menu-item/x-menu-item.js +449 -0
  613. package/dist/collection/components/x-menu-item-group/types.js +1 -0
  614. package/dist/collection/components/x-menu-item-group/x-menu-item-group.css +45 -0
  615. package/dist/collection/components/x-menu-item-group/x-menu-item-group.js +299 -0
  616. package/dist/collection/components/x-menu-submenu/types.js +1 -0
  617. package/dist/collection/components/x-menu-submenu/x-menu-submenu.css +236 -0
  618. package/dist/collection/components/x-menu-submenu/x-menu-submenu.js +775 -0
  619. package/dist/collection/components/x-message/message-service.js +263 -0
  620. package/dist/collection/components/x-message/types.js +1 -0
  621. package/dist/collection/components/x-message/x-message.css +402 -0
  622. package/dist/collection/components/x-message/x-message.js +487 -0
  623. package/dist/collection/components/x-modal/modal-service.js +402 -0
  624. package/dist/collection/components/x-modal/modal-service.types.js +1 -0
  625. package/dist/collection/components/x-modal/x-modal.css +468 -0
  626. package/dist/collection/components/x-modal/x-modal.js +683 -0
  627. package/dist/collection/components/x-modal-content/index.js +1 -0
  628. package/dist/collection/components/x-modal-content/types.js +1 -0
  629. package/dist/collection/components/x-modal-content/x-modal-content.css +749 -0
  630. package/dist/collection/components/x-modal-content/x-modal-content.js +701 -0
  631. package/dist/collection/components/x-notification/notification-service.js +335 -0
  632. package/dist/collection/components/x-notification/types.js +1 -0
  633. package/dist/collection/components/x-notification/x-notification.css +486 -0
  634. package/dist/collection/components/x-notification/x-notification.js +788 -0
  635. package/dist/collection/components/x-page-header/x-page-header.css +406 -0
  636. package/dist/collection/components/x-page-header/x-page-header.js +159 -0
  637. package/dist/collection/components/x-pagination/types.js +1 -0
  638. package/dist/collection/components/x-pagination/x-pagination.css +705 -0
  639. package/dist/collection/components/x-pagination/x-pagination.js +1241 -0
  640. package/dist/collection/components/x-popconfirm/popconfirm-content/popconfirm-content.css +456 -0
  641. package/dist/collection/components/x-popconfirm/popconfirm-content/popconfirm-content.js +244 -0
  642. package/dist/collection/components/x-popconfirm/x-popconfirm.css +412 -0
  643. package/dist/collection/components/x-popconfirm/x-popconfirm.js +355 -0
  644. package/dist/collection/components/x-popover/popover-content/popover-content.css +437 -0
  645. package/dist/collection/components/x-popover/popover-content/popover-content.js +261 -0
  646. package/dist/collection/components/x-popover/x-popover.css +442 -0
  647. package/dist/collection/components/x-popover/x-popover.js +390 -0
  648. package/dist/collection/components/x-portal/debug.js +42 -0
  649. package/dist/collection/components/x-portal/index.js +1 -0
  650. package/dist/collection/components/x-portal/portal-controller.js +146 -0
  651. package/dist/collection/components/x-portal/positioning.js +332 -0
  652. package/dist/collection/components/x-portal/types.js +1 -0
  653. package/dist/collection/components/x-portal/x-portal.js +21 -0
  654. package/dist/collection/components/x-progress/x-progress.css +424 -0
  655. package/dist/collection/components/x-progress/x-progress.js +326 -0
  656. package/dist/collection/components/x-qr-code/x-qr-code.css +37 -0
  657. package/dist/collection/components/x-qr-code/x-qr-code.js +292 -0
  658. package/dist/collection/components/x-radio/types.js +1 -0
  659. package/dist/collection/components/x-radio/x-radio.css +523 -0
  660. package/dist/collection/components/x-radio/x-radio.js +689 -0
  661. package/dist/collection/components/x-radio-group/types.js +1 -0
  662. package/dist/collection/components/x-radio-group/x-radio-group.css +326 -0
  663. package/dist/collection/components/x-radio-group/x-radio-group.js +531 -0
  664. package/dist/collection/components/x-range-picker/range-picker-dropdown-content/index.js +1 -0
  665. package/dist/collection/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.css +609 -0
  666. package/dist/collection/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.js +1497 -0
  667. package/dist/collection/components/x-range-picker/range-picker-dropdown-content/types.js +1 -0
  668. package/dist/collection/components/x-range-picker/types.js +1 -0
  669. package/dist/collection/components/x-range-picker/x-range-picker.css +775 -0
  670. package/dist/collection/components/x-range-picker/x-range-picker.js +1883 -0
  671. package/dist/collection/components/x-rate/x-rate.css +396 -0
  672. package/dist/collection/components/x-rate/x-rate.js +445 -0
  673. package/dist/collection/components/x-result/types.js +1 -0
  674. package/dist/collection/components/x-result/x-result.css +434 -0
  675. package/dist/collection/components/x-result/x-result.js +376 -0
  676. package/dist/collection/components/x-row/x-row.css +345 -0
  677. package/dist/collection/components/x-row/x-row.js +196 -0
  678. package/dist/collection/components/x-segmented/types.js +1 -0
  679. package/dist/collection/components/x-segmented/x-segmented.css +407 -0
  680. package/dist/collection/components/x-segmented/x-segmented.js +414 -0
  681. package/dist/collection/components/x-select/select-dropdown-content/index.js +1 -0
  682. package/dist/collection/components/x-select/select-dropdown-content/select-dropdown-content.css +827 -0
  683. package/dist/collection/components/x-select/select-dropdown-content/select-dropdown-content.js +163 -0
  684. package/dist/collection/components/x-select/select-dropdown-content/types.js +1 -0
  685. package/dist/collection/components/x-select/types.js +9 -0
  686. package/dist/collection/components/x-select/x-select.css +823 -0
  687. package/dist/collection/components/x-select/x-select.js +2247 -0
  688. package/dist/collection/components/x-select-option/x-select-option.css +379 -0
  689. package/dist/collection/components/x-select-option/x-select-option.js +207 -0
  690. package/dist/collection/components/x-sider/x-sider.css +379 -0
  691. package/dist/collection/components/x-sider/x-sider.js +379 -0
  692. package/dist/collection/components/x-skeleton/x-skeleton.css +400 -0
  693. package/dist/collection/components/x-skeleton/x-skeleton.js +221 -0
  694. package/dist/collection/components/x-slider/types.js +1 -0
  695. package/dist/collection/components/x-slider/x-slider.css +511 -0
  696. package/dist/collection/components/x-slider/x-slider.js +785 -0
  697. package/dist/collection/components/x-space/x-space.css +339 -0
  698. package/dist/collection/components/x-space/x-space.js +228 -0
  699. package/dist/collection/components/x-spin/x-spin.css +465 -0
  700. package/dist/collection/components/x-spin/x-spin.js +142 -0
  701. package/dist/collection/components/x-splitter/types.js +1 -0
  702. package/dist/collection/components/x-splitter/x-splitter.css +181 -0
  703. package/dist/collection/components/x-splitter/x-splitter.js +884 -0
  704. package/dist/collection/components/x-splitter-panel/types.js +1 -0
  705. package/dist/collection/components/x-splitter-panel/x-splitter-panel.css +25 -0
  706. package/dist/collection/components/x-splitter-panel/x-splitter-panel.js +292 -0
  707. package/dist/collection/components/x-statistic/x-statistic.css +366 -0
  708. package/dist/collection/components/x-statistic/x-statistic.js +291 -0
  709. package/dist/collection/components/x-step/types.js +1 -0
  710. package/dist/collection/components/x-step/x-step.css +801 -0
  711. package/dist/collection/components/x-step/x-step.js +539 -0
  712. package/dist/collection/components/x-steps/types.js +1 -0
  713. package/dist/collection/components/x-steps/x-steps.css +830 -0
  714. package/dist/collection/components/x-steps/x-steps.js +1032 -0
  715. package/dist/collection/components/x-switch/types.js +1 -0
  716. package/dist/collection/components/x-switch/x-switch.css +463 -0
  717. package/dist/collection/components/x-switch/x-switch.js +356 -0
  718. package/dist/collection/components/x-tab-pane/x-tab-pane.css +337 -0
  719. package/dist/collection/components/x-tab-pane/x-tab-pane.js +243 -0
  720. package/dist/collection/components/x-table/column-util.js +87 -0
  721. package/dist/collection/components/x-table/types.js +1 -0
  722. package/dist/collection/components/x-table/x-table.css +898 -0
  723. package/dist/collection/components/x-table/x-table.js +2464 -0
  724. package/dist/collection/components/x-table-cell/x-table-cell.css +337 -0
  725. package/dist/collection/components/x-table-cell/x-table-cell.js +167 -0
  726. package/dist/collection/components/x-table-row/x-table-row.css +336 -0
  727. package/dist/collection/components/x-table-row/x-table-row.js +172 -0
  728. package/dist/collection/components/x-tabs/types.js +1 -0
  729. package/dist/collection/components/x-tabs/x-tabs.css +664 -0
  730. package/dist/collection/components/x-tabs/x-tabs.js +1264 -0
  731. package/dist/collection/components/x-tag/types.js +1 -0
  732. package/dist/collection/components/x-tag/x-tag.css +1047 -0
  733. package/dist/collection/components/x-tag/x-tag.js +535 -0
  734. package/dist/collection/components/x-textarea/x-textarea.css +446 -0
  735. package/dist/collection/components/x-textarea/x-textarea.js +553 -0
  736. package/dist/collection/components/x-time-picker/time-picker-dropdown-content/index.js +1 -0
  737. package/dist/collection/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.css +409 -0
  738. package/dist/collection/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.js +855 -0
  739. package/dist/collection/components/x-time-picker/time-picker-dropdown-content/types.js +1 -0
  740. package/dist/collection/components/x-time-picker/types.js +1 -0
  741. package/dist/collection/components/x-time-picker/x-time-picker.css +653 -0
  742. package/dist/collection/components/x-time-picker/x-time-picker.js +1454 -0
  743. package/dist/collection/components/x-timeline/x-timeline.css +404 -0
  744. package/dist/collection/components/x-timeline/x-timeline.js +129 -0
  745. package/dist/collection/components/x-timeline-item/x-timeline-item.css +400 -0
  746. package/dist/collection/components/x-timeline-item/x-timeline-item.js +125 -0
  747. package/dist/collection/components/x-tooltip/types.js +1 -0
  748. package/dist/collection/components/x-tooltip/x-tooltip.css +528 -0
  749. package/dist/collection/components/x-tooltip/x-tooltip.js +1006 -0
  750. package/dist/collection/components/x-tooltip-content/index.js +1 -0
  751. package/dist/collection/components/x-tooltip-content/types.js +1 -0
  752. package/dist/collection/components/x-tooltip-content/x-tooltip-content.css +217 -0
  753. package/dist/collection/components/x-tooltip-content/x-tooltip-content.js +238 -0
  754. package/dist/collection/components/x-tour/index.js +1 -0
  755. package/dist/collection/components/x-tour/types.js +1 -0
  756. package/dist/collection/components/x-tour/x-tour-panel.css +467 -0
  757. package/dist/collection/components/x-tour/x-tour-panel.js +265 -0
  758. package/dist/collection/components/x-tour/x-tour.css +353 -0
  759. package/dist/collection/components/x-tour/x-tour.js +555 -0
  760. package/dist/collection/components/x-transfer/types.js +1 -0
  761. package/dist/collection/components/x-transfer/x-transfer.css +626 -0
  762. package/dist/collection/components/x-transfer/x-transfer.js +956 -0
  763. package/dist/collection/components/x-tree/types.js +1 -0
  764. package/dist/collection/components/x-tree/x-tree.css +703 -0
  765. package/dist/collection/components/x-tree/x-tree.js +1793 -0
  766. package/dist/collection/components/x-tree-select/tree-select-dropdown-content/index.js +2 -0
  767. package/dist/collection/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.css +635 -0
  768. package/dist/collection/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.js +890 -0
  769. package/dist/collection/components/x-tree-select/tree-select-dropdown-content/types.js +1 -0
  770. package/dist/collection/components/x-tree-select/types.js +2 -0
  771. package/dist/collection/components/x-tree-select/x-tree-select.css +790 -0
  772. package/dist/collection/components/x-tree-select/x-tree-select.js +2750 -0
  773. package/dist/collection/components/x-typography/x-typography.css +409 -0
  774. package/dist/collection/components/x-typography/x-typography.js +431 -0
  775. package/dist/collection/components/x-upload/types.js +1 -0
  776. package/dist/collection/components/x-upload/x-upload.css +774 -0
  777. package/dist/collection/components/x-upload/x-upload.js +1452 -0
  778. package/dist/collection/components/x-virtual-scroll/x-virtual-scroll.css +79 -0
  779. package/dist/collection/components/x-virtual-scroll/x-virtual-scroll.js +478 -0
  780. package/dist/collection/components/x-workflow/x-workflow.css +486 -0
  781. package/dist/collection/components/x-workflow/x-workflow.js +1403 -0
  782. package/dist/collection/components/x-workflow-builder/x-workflow-builder.css +538 -0
  783. package/dist/collection/components/x-workflow-builder/x-workflow-builder.js +468 -0
  784. package/dist/collection/index.js +5 -0
  785. package/dist/collection/locales/index.js +2 -0
  786. package/dist/collection/locales/languages/ar_EG.js +120 -0
  787. package/dist/collection/locales/languages/az_AZ.js +120 -0
  788. package/dist/collection/locales/languages/bg_BG.js +120 -0
  789. package/dist/collection/locales/languages/bn_BD.js +120 -0
  790. package/dist/collection/locales/languages/by_BY.js +120 -0
  791. package/dist/collection/locales/languages/ca_ES.js +120 -0
  792. package/dist/collection/locales/languages/cs_CZ.js +120 -0
  793. package/dist/collection/locales/languages/da_DK.js +120 -0
  794. package/dist/collection/locales/languages/de_DE.js +120 -0
  795. package/dist/collection/locales/languages/el_GR.js +120 -0
  796. package/dist/collection/locales/languages/en_AU.js +120 -0
  797. package/dist/collection/locales/languages/en_GB.js +120 -0
  798. package/dist/collection/locales/languages/en_US.js +120 -0
  799. package/dist/collection/locales/languages/es_ES.js +120 -0
  800. package/dist/collection/locales/languages/et_EE.js +120 -0
  801. package/dist/collection/locales/languages/fa_IR.js +120 -0
  802. package/dist/collection/locales/languages/fi_FI.js +120 -0
  803. package/dist/collection/locales/languages/fr_BE.js +120 -0
  804. package/dist/collection/locales/languages/fr_CA.js +120 -0
  805. package/dist/collection/locales/languages/fr_FR.js +120 -0
  806. package/dist/collection/locales/languages/ga_IE.js +120 -0
  807. package/dist/collection/locales/languages/gl_ES.js +120 -0
  808. package/dist/collection/locales/languages/he_IL.js +120 -0
  809. package/dist/collection/locales/languages/hi_IN.js +120 -0
  810. package/dist/collection/locales/languages/hr_HR.js +120 -0
  811. package/dist/collection/locales/languages/hu_HU.js +120 -0
  812. package/dist/collection/locales/languages/hy_AM.js +120 -0
  813. package/dist/collection/locales/languages/id_ID.js +120 -0
  814. package/dist/collection/locales/languages/index.js +137 -0
  815. package/dist/collection/locales/languages/is_IS.js +120 -0
  816. package/dist/collection/locales/languages/it_IT.js +120 -0
  817. package/dist/collection/locales/languages/ja_JP.js +120 -0
  818. package/dist/collection/locales/languages/ka_GE.js +120 -0
  819. package/dist/collection/locales/languages/kk_KZ.js +120 -0
  820. package/dist/collection/locales/languages/km_KH.js +120 -0
  821. package/dist/collection/locales/languages/kmr_IQ.js +120 -0
  822. package/dist/collection/locales/languages/kn_IN.js +120 -0
  823. package/dist/collection/locales/languages/ko_KR.js +120 -0
  824. package/dist/collection/locales/languages/ku_IQ.js +120 -0
  825. package/dist/collection/locales/languages/lt_LT.js +120 -0
  826. package/dist/collection/locales/languages/lv_LV.js +120 -0
  827. package/dist/collection/locales/languages/mk_MK.js +120 -0
  828. package/dist/collection/locales/languages/ml_IN.js +120 -0
  829. package/dist/collection/locales/languages/mn_MN.js +120 -0
  830. package/dist/collection/locales/languages/ms_MY.js +120 -0
  831. package/dist/collection/locales/languages/nb_NO.js +120 -0
  832. package/dist/collection/locales/languages/ne_NP.js +120 -0
  833. package/dist/collection/locales/languages/nl_BE.js +120 -0
  834. package/dist/collection/locales/languages/nl_NL.js +120 -0
  835. package/dist/collection/locales/languages/pl_PL.js +120 -0
  836. package/dist/collection/locales/languages/pt_BR.js +120 -0
  837. package/dist/collection/locales/languages/pt_PT.js +120 -0
  838. package/dist/collection/locales/languages/ro_RO.js +120 -0
  839. package/dist/collection/locales/languages/ru_RU.js +120 -0
  840. package/dist/collection/locales/languages/sk_SK.js +120 -0
  841. package/dist/collection/locales/languages/sl_SI.js +120 -0
  842. package/dist/collection/locales/languages/sr_RS.js +120 -0
  843. package/dist/collection/locales/languages/sv_SE.js +120 -0
  844. package/dist/collection/locales/languages/ta_IN.js +120 -0
  845. package/dist/collection/locales/languages/th_TH.js +120 -0
  846. package/dist/collection/locales/languages/tr_TR.js +120 -0
  847. package/dist/collection/locales/languages/uk_UA.js +120 -0
  848. package/dist/collection/locales/languages/ur_PK.js +120 -0
  849. package/dist/collection/locales/languages/vi_VN.js +120 -0
  850. package/dist/collection/locales/languages/zh_CN.js +120 -0
  851. package/dist/collection/locales/languages/zh_HK.js +120 -0
  852. package/dist/collection/locales/languages/zh_TW.js +120 -0
  853. package/dist/collection/locales/locale.service.js +179 -0
  854. package/dist/collection/types.js +11 -0
  855. package/dist/collection/utils/app-service.js +19 -0
  856. package/dist/collection/utils/cascader.service.js +142 -0
  857. package/dist/collection/utils/config.js +59 -0
  858. package/dist/collection/utils/form/core/abstract-control.js +273 -0
  859. package/dist/collection/utils/form/core/form-array.js +131 -0
  860. package/dist/collection/utils/form/core/form-builder.js +56 -0
  861. package/dist/collection/utils/form/core/form-control.js +69 -0
  862. package/dist/collection/utils/form/core/form-group.js +163 -0
  863. package/dist/collection/utils/form/frameworks.js +37 -0
  864. package/dist/collection/utils/form/types.js +1 -0
  865. package/dist/collection/utils/form/validators/validators.js +198 -0
  866. package/dist/collection/utils/index.js +3 -0
  867. package/dist/collection/utils/qr-code/cache/qr.cache.js +20 -0
  868. package/dist/collection/utils/qr-code/engine/qr.engine.js +130 -0
  869. package/dist/collection/utils/qr-code/engine/qr.gf.js +22 -0
  870. package/dist/collection/utils/qr-code/engine/qr.mask.js +54 -0
  871. package/dist/collection/utils/qr-code/engine/qr.rs.js +29 -0
  872. package/dist/collection/utils/qr-code/engine/qr.util.js +0 -0
  873. package/dist/collection/utils/qr-code/engine/qr.version.js +11 -0
  874. package/dist/collection/utils/qr-code/renderer/canvas.renderer.js +36 -0
  875. package/dist/collection/utils/qr-code/renderer/svg.renderer.js +33 -0
  876. package/dist/collection/utils/qr-code/worker/worker.manager.js +24 -0
  877. package/dist/collection/utils/table.service.js +150 -0
  878. package/dist/collection/utils/tree.service.js +335 -0
  879. package/dist/collection/utils/workflow/flow.service.js +382 -0
  880. package/dist/collection/utils/workflow/types.js +1 -0
  881. package/dist/esm/abstract-control-XBF88YT_.js +275 -0
  882. package/dist/esm/config-BPeosvTA.js +60 -0
  883. package/dist/esm/index-ig_mFsVk.js +2159 -0
  884. package/dist/esm/index.js +5 -0
  885. package/dist/esm/loader.js +10 -0
  886. package/dist/esm/locale.service-D66tF8_2.js +8199 -0
  887. package/dist/esm/modal-service-C_e0SaFZ.js +397 -0
  888. package/dist/esm/notification-service-DJTSPOq7.js +599 -0
  889. package/dist/esm/portal-controller-COpzIi1n.js +499 -0
  890. package/dist/esm/schema-builder-DBPGgJBx.js +1502 -0
  891. package/dist/esm/tree.service-Dgxy93Bg.js +337 -0
  892. package/dist/esm/types-C_QdJRdB.js +253 -0
  893. package/dist/esm/x-address_14.entry.js +12562 -0
  894. package/dist/esm/x-affix.entry.js +180 -0
  895. package/dist/esm/x-alert_11.entry.js +3227 -0
  896. package/dist/esm/x-anchor-link.entry.js +65 -0
  897. package/dist/esm/x-anchor.entry.js +156 -0
  898. package/dist/esm/x-app.entry.js +135 -0
  899. package/dist/esm/x-auto-complete-dropdown-content.entry.js +67 -0
  900. package/dist/esm/x-avatar.entry.js +267 -0
  901. package/dist/esm/x-back-top.entry.js +87 -0
  902. package/dist/esm/x-breadcrumb_5.entry.js +1548 -0
  903. package/dist/esm/x-button.entry.js +172 -0
  904. package/dist/esm/x-card_12.entry.js +1373 -0
  905. package/dist/esm/x-carousel.entry.js +145 -0
  906. package/dist/esm/x-cascader-dropdown-content.entry.js +362 -0
  907. package/dist/esm/x-checkbox_5.entry.js +1370 -0
  908. package/dist/esm/x-collapse-panel.entry.js +241 -0
  909. package/dist/esm/x-collapse.entry.js +289 -0
  910. package/dist/esm/x-color-picker-panel_2.entry.js +870 -0
  911. package/dist/esm/x-color-picker_9.entry.js +3075 -0
  912. package/dist/esm/x-comment.entry.js +187 -0
  913. package/dist/esm/x-date-picker-dropdown-content.entry.js +755 -0
  914. package/dist/esm/x-descriptions-item.entry.js +106 -0
  915. package/dist/esm/x-drawer-content.entry.js +195 -0
  916. package/dist/esm/x-drawer.entry.js +292 -0
  917. package/dist/esm/x-dropdown_2.entry.js +732 -0
  918. package/dist/esm/x-empty.entry.js +62 -0
  919. package/dist/esm/x-finder.entry.js +645 -0
  920. package/dist/esm/x-form-builder.entry.js +805 -0
  921. package/dist/esm/x-icon.entry.js +142 -0
  922. package/dist/esm/x-infinite-scroll.entry.js +127 -0
  923. package/dist/esm/x-list-item.entry.js +25 -0
  924. package/dist/esm/x-list.entry.js +136 -0
  925. package/dist/esm/x-mentions.entry.js +273 -0
  926. package/dist/esm/x-menu-divider.entry.js +47 -0
  927. package/dist/esm/x-menu-item-group.entry.js +147 -0
  928. package/dist/esm/x-menu-submenu.entry.js +371 -0
  929. package/dist/esm/x-message.entry.js +217 -0
  930. package/dist/esm/x-modal-content.entry.js +215 -0
  931. package/dist/esm/x-notification.entry.js +323 -0
  932. package/dist/esm/x-page-header.entry.js +65 -0
  933. package/dist/esm/x-popconfirm-content.entry.js +70 -0
  934. package/dist/esm/x-popconfirm.entry.js +179 -0
  935. package/dist/esm/x-progress.entry.js +134 -0
  936. package/dist/esm/x-qr-code.entry.js +444 -0
  937. package/dist/esm/x-range-picker-dropdown-content.entry.js +819 -0
  938. package/dist/esm/x-select_2.entry.js +1313 -0
  939. package/dist/esm/x-skeleton.entry.js +73 -0
  940. package/dist/esm/x-spin.entry.js +60 -0
  941. package/dist/esm/x-splitter-panel.entry.js +89 -0
  942. package/dist/esm/x-splitter.entry.js +610 -0
  943. package/dist/esm/x-statistic.entry.js +102 -0
  944. package/dist/esm/x-step.entry.js +177 -0
  945. package/dist/esm/x-steps.entry.js +437 -0
  946. package/dist/esm/x-tab-pane.entry.js +71 -0
  947. package/dist/esm/x-table-cell.entry.js +43 -0
  948. package/dist/esm/x-table-row.entry.js +83 -0
  949. package/dist/esm/x-tabs.entry.js +607 -0
  950. package/dist/esm/x-time-picker-dropdown-content.entry.js +387 -0
  951. package/dist/esm/x-timeline-item.entry.js +48 -0
  952. package/dist/esm/x-timeline.entry.js +50 -0
  953. package/dist/esm/x-tour-panel.entry.js +87 -0
  954. package/dist/esm/x-tour.entry.js +342 -0
  955. package/dist/esm/x-tree-select-dropdown-content.entry.js +437 -0
  956. package/dist/esm/x-virtual-scroll.entry.js +201 -0
  957. package/dist/esm/x-workflow-builder.entry.js +364 -0
  958. package/dist/esm/xlabs-store.js +20 -0
  959. package/dist/index.cjs.js +1 -0
  960. package/dist/index.js +1 -0
  961. package/dist/types/components/x-address/vietnam-data.d.ts +14 -0
  962. package/dist/types/components/x-address/x-address.d.ts +64 -0
  963. package/dist/types/components/x-affix/x-affix.d.ts +111 -0
  964. package/dist/types/components/x-alert/x-alert.d.ts +74 -0
  965. package/dist/types/components/x-anchor/x-anchor.d.ts +120 -0
  966. package/dist/types/components/x-anchor-link/x-anchor-link.d.ts +47 -0
  967. package/dist/types/components/x-app/x-app.d.ts +93 -0
  968. package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.d.ts +58 -0
  969. package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/index.d.ts +2 -0
  970. package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/types.d.ts +14 -0
  971. package/dist/types/components/x-auto-complete/types.d.ts +150 -0
  972. package/dist/types/components/x-auto-complete/x-auto-complete.d.ts +480 -0
  973. package/dist/types/components/x-avatar/types.d.ts +38 -0
  974. package/dist/types/components/x-avatar/x-avatar.d.ts +171 -0
  975. package/dist/types/components/x-back-top/x-back-top.d.ts +59 -0
  976. package/dist/types/components/x-badge/types.d.ts +23 -0
  977. package/dist/types/components/x-badge/x-badge.d.ts +184 -0
  978. package/dist/types/components/x-breadcrumb/x-breadcrumb.d.ts +43 -0
  979. package/dist/types/components/x-breadcrumb-item/x-breadcrumb-item.d.ts +43 -0
  980. package/dist/types/components/x-button/x-button.d.ts +121 -0
  981. package/dist/types/components/x-captcha/x-captcha.d.ts +78 -0
  982. package/dist/types/components/x-card/x-card.d.ts +139 -0
  983. package/dist/types/components/x-carousel/x-carousel.d.ts +104 -0
  984. package/dist/types/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.d.ts +255 -0
  985. package/dist/types/components/x-cascader/cascader-dropdown-content/index.d.ts +2 -0
  986. package/dist/types/components/x-cascader/cascader-dropdown-content/types.d.ts +20 -0
  987. package/dist/types/components/x-cascader/types.d.ts +143 -0
  988. package/dist/types/components/x-cascader/x-cascader.d.ts +520 -0
  989. package/dist/types/components/x-checkbox/types.d.ts +83 -0
  990. package/dist/types/components/x-checkbox/x-checkbox.d.ts +156 -0
  991. package/dist/types/components/x-col/x-col.d.ts +89 -0
  992. package/dist/types/components/x-collapse/types.d.ts +55 -0
  993. package/dist/types/components/x-collapse/x-collapse.d.ts +157 -0
  994. package/dist/types/components/x-collapse-panel/x-collapse-panel.d.ts +143 -0
  995. package/dist/types/components/x-color-picker/types.d.ts +135 -0
  996. package/dist/types/components/x-color-picker/x-color-picker-panel.d.ts +80 -0
  997. package/dist/types/components/x-color-picker/x-color-picker.d.ts +328 -0
  998. package/dist/types/components/x-comment/types.d.ts +20 -0
  999. package/dist/types/components/x-comment/x-comment.d.ts +111 -0
  1000. package/dist/types/components/x-content/types.d.ts +6 -0
  1001. package/dist/types/components/x-content/x-content.d.ts +64 -0
  1002. package/dist/types/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.d.ts +376 -0
  1003. package/dist/types/components/x-date-picker/date-picker-dropdown-content/index.d.ts +2 -0
  1004. package/dist/types/components/x-date-picker/date-picker-dropdown-content/types.d.ts +61 -0
  1005. package/dist/types/components/x-date-picker/types.d.ts +28 -0
  1006. package/dist/types/components/x-date-picker/x-date-picker.d.ts +512 -0
  1007. package/dist/types/components/x-descriptions/types.d.ts +41 -0
  1008. package/dist/types/components/x-descriptions/x-descriptions.d.ts +141 -0
  1009. package/dist/types/components/x-descriptions-item/x-descriptions-item.d.ts +70 -0
  1010. package/dist/types/components/x-divider/x-divider.d.ts +82 -0
  1011. package/dist/types/components/x-drawer/x-drawer.d.ts +156 -0
  1012. package/dist/types/components/x-drawer-content/x-drawer-content.d.ts +142 -0
  1013. package/dist/types/components/x-dropdown/dropdown-content/dropdown-content.d.ts +83 -0
  1014. package/dist/types/components/x-dropdown/dropdown-content/types.d.ts +16 -0
  1015. package/dist/types/components/x-dropdown/types.d.ts +119 -0
  1016. package/dist/types/components/x-dropdown/x-dropdown.d.ts +292 -0
  1017. package/dist/types/components/x-editor/editor-history.d.ts +62 -0
  1018. package/dist/types/components/x-editor/editor-normalizer.d.ts +70 -0
  1019. package/dist/types/components/x-editor/editor-parser.d.ts +34 -0
  1020. package/dist/types/components/x-editor/editor-selection.d.ts +92 -0
  1021. package/dist/types/components/x-editor/types.d.ts +62 -0
  1022. package/dist/types/components/x-editor/x-editor.d.ts +279 -0
  1023. package/dist/types/components/x-empty/x-empty.d.ts +45 -0
  1024. package/dist/types/components/x-finder/services/finder-service.d.ts +38 -0
  1025. package/dist/types/components/x-finder/types.d.ts +63 -0
  1026. package/dist/types/components/x-finder/x-finder.d.ts +66 -0
  1027. package/dist/types/components/x-flex/x-flex.d.ts +62 -0
  1028. package/dist/types/components/x-float-button/x-float-button.d.ts +66 -0
  1029. package/dist/types/components/x-footer/x-footer.d.ts +11 -0
  1030. package/dist/types/components/x-form/x-form.d.ts +64 -0
  1031. package/dist/types/components/x-form-builder/services/apis/api-client.d.ts +63 -0
  1032. package/dist/types/components/x-form-builder/services/constants/index.d.ts +2 -0
  1033. package/dist/types/components/x-form-builder/services/forms/abstract-control.d.ts +59 -0
  1034. package/dist/types/components/x-form-builder/services/forms/form-array.d.ts +25 -0
  1035. package/dist/types/components/x-form-builder/services/forms/form-builder.d.ts +17 -0
  1036. package/dist/types/components/x-form-builder/services/forms/form-control.d.ts +14 -0
  1037. package/dist/types/components/x-form-builder/services/forms/form-group.d.ts +33 -0
  1038. package/dist/types/components/x-form-builder/services/forms/index.d.ts +11 -0
  1039. package/dist/types/components/x-form-builder/services/forms/types.d.ts +11 -0
  1040. package/dist/types/components/x-form-builder/services/forms/validators.d.ts +16 -0
  1041. package/dist/types/components/x-form-builder/services/schema/condition-builder.d.ts +39 -0
  1042. package/dist/types/components/x-form-builder/services/schema/default-registry.d.ts +1 -0
  1043. package/dist/types/components/x-form-builder/services/schema/form-mapping.d.ts +26 -0
  1044. package/dist/types/components/x-form-builder/services/schema/form-registry.d.ts +27 -0
  1045. package/dist/types/components/x-form-builder/services/schema/schema-actions.d.ts +3 -0
  1046. package/dist/types/components/x-form-builder/services/schema/schema-builder.d.ts +19 -0
  1047. package/dist/types/components/x-form-builder/services/schema/schema-validator.d.ts +9 -0
  1048. package/dist/types/components/x-form-builder/types/api/api-common-types.d.ts +5 -0
  1049. package/dist/types/components/x-form-builder/types/api/api-interfaces.d.ts +52 -0
  1050. package/dist/types/components/x-form-builder/types/api/index.d.ts +2 -0
  1051. package/dist/types/components/x-form-builder/types/common/common-types.d.ts +49 -0
  1052. package/dist/types/components/x-form-builder/types/common/condition-types.d.ts +53 -0
  1053. package/dist/types/components/x-form-builder/types/common/field-types-enum.d.ts +2 -0
  1054. package/dist/types/components/x-form-builder/types/common/index.d.ts +7 -0
  1055. package/dist/types/components/x-form-builder/types/common/shared-interfaces.d.ts +37 -0
  1056. package/dist/types/components/x-form-builder/types/common/validation-types.d.ts +36 -0
  1057. package/dist/types/components/x-form-builder/types/common/value-types.d.ts +15 -0
  1058. package/dist/types/components/x-form-builder/types/event/event-types.d.ts +16 -0
  1059. package/dist/types/components/x-form-builder/types/event/index.d.ts +1 -0
  1060. package/dist/types/components/x-form-builder/types/fields/advanced-fields.d.ts +125 -0
  1061. package/dist/types/components/x-form-builder/types/fields/base-field.d.ts +49 -0
  1062. package/dist/types/components/x-form-builder/types/fields/datetime-file-fields.d.ts +37 -0
  1063. package/dist/types/components/x-form-builder/types/fields/display-fields.d.ts +92 -0
  1064. package/dist/types/components/x-form-builder/types/fields/form-field-union.d.ts +9 -0
  1065. package/dist/types/components/x-form-builder/types/fields/index.d.ts +9 -0
  1066. package/dist/types/components/x-form-builder/types/fields/input-fields.d.ts +53 -0
  1067. package/dist/types/components/x-form-builder/types/fields/layout-fields.d.ts +55 -0
  1068. package/dist/types/components/x-form-builder/types/fields/selection-fields.d.ts +130 -0
  1069. package/dist/types/components/x-form-builder/types/fields/special-input-fields.d.ts +99 -0
  1070. package/dist/types/components/x-form-builder/types/form/events-types.d.ts +29 -0
  1071. package/dist/types/components/x-form-builder/types/form/form-config.d.ts +0 -0
  1072. package/dist/types/components/x-form-builder/types/form/index.d.ts +2 -0
  1073. package/dist/types/components/x-form-builder/types/form/schema-types.d.ts +134 -0
  1074. package/dist/types/components/x-form-builder/types/index.d.ts +4 -0
  1075. package/dist/types/components/x-form-builder/utils/condition-engine.d.ts +23 -0
  1076. package/dist/types/components/x-form-builder/utils/utils.d.ts +19 -0
  1077. package/dist/types/components/x-form-builder/utils/values.d.ts +8 -0
  1078. package/dist/types/components/x-form-builder/x-form-builder.d.ts +65 -0
  1079. package/dist/types/components/x-form-item/x-form-item.d.ts +94 -0
  1080. package/dist/types/components/x-header/x-header.d.ts +11 -0
  1081. package/dist/types/components/x-icon/icons.d.ts +2717 -0
  1082. package/dist/types/components/x-icon/x-icon.d.ts +89 -0
  1083. package/dist/types/components/x-image/types.d.ts +94 -0
  1084. package/dist/types/components/x-image/x-image.d.ts +150 -0
  1085. package/dist/types/components/x-infinite-scroll/x-infinite-scroll.d.ts +75 -0
  1086. package/dist/types/components/x-input/types.d.ts +14 -0
  1087. package/dist/types/components/x-input/x-input.d.ts +385 -0
  1088. package/dist/types/components/x-input-number/types.d.ts +98 -0
  1089. package/dist/types/components/x-input-number/x-input-number.d.ts +395 -0
  1090. package/dist/types/components/x-layout/x-layout.d.ts +61 -0
  1091. package/dist/types/components/x-list/x-list.d.ts +100 -0
  1092. package/dist/types/components/x-list-item/x-list-item.d.ts +13 -0
  1093. package/dist/types/components/x-mentions/types.d.ts +7 -0
  1094. package/dist/types/components/x-mentions/x-mentions.d.ts +159 -0
  1095. package/dist/types/components/x-menu/types.d.ts +83 -0
  1096. package/dist/types/components/x-menu/x-menu.d.ts +153 -0
  1097. package/dist/types/components/x-menu-divider/types.d.ts +6 -0
  1098. package/dist/types/components/x-menu-divider/x-menu-divider.d.ts +19 -0
  1099. package/dist/types/components/x-menu-item/types.d.ts +8 -0
  1100. package/dist/types/components/x-menu-item/x-menu-item.d.ts +80 -0
  1101. package/dist/types/components/x-menu-item-group/types.d.ts +6 -0
  1102. package/dist/types/components/x-menu-item-group/x-menu-item-group.d.ts +60 -0
  1103. package/dist/types/components/x-menu-submenu/types.d.ts +15 -0
  1104. package/dist/types/components/x-menu-submenu/x-menu-submenu.d.ts +135 -0
  1105. package/dist/types/components/x-message/message-service.d.ts +58 -0
  1106. package/dist/types/components/x-message/types.d.ts +90 -0
  1107. package/dist/types/components/x-message/x-message.d.ts +133 -0
  1108. package/dist/types/components/x-modal/modal-service.d.ts +6 -0
  1109. package/dist/types/components/x-modal/modal-service.types.d.ts +278 -0
  1110. package/dist/types/components/x-modal/x-modal.d.ts +160 -0
  1111. package/dist/types/components/x-modal-content/index.d.ts +1 -0
  1112. package/dist/types/components/x-modal-content/types.d.ts +83 -0
  1113. package/dist/types/components/x-modal-content/x-modal-content.d.ts +174 -0
  1114. package/dist/types/components/x-notification/notification-service.d.ts +83 -0
  1115. package/dist/types/components/x-notification/types.d.ts +112 -0
  1116. package/dist/types/components/x-notification/x-notification.d.ts +212 -0
  1117. package/dist/types/components/x-page-header/x-page-header.d.ts +51 -0
  1118. package/dist/types/components/x-pagination/types.d.ts +104 -0
  1119. package/dist/types/components/x-pagination/x-pagination.d.ts +274 -0
  1120. package/dist/types/components/x-popconfirm/popconfirm-content/popconfirm-content.d.ts +62 -0
  1121. package/dist/types/components/x-popconfirm/x-popconfirm.d.ts +97 -0
  1122. package/dist/types/components/x-popover/popover-content/popover-content.d.ts +71 -0
  1123. package/dist/types/components/x-popover/x-popover.d.ts +99 -0
  1124. package/dist/types/components/x-portal/debug.d.ts +5 -0
  1125. package/dist/types/components/x-portal/index.d.ts +2 -0
  1126. package/dist/types/components/x-portal/portal-controller.d.ts +20 -0
  1127. package/dist/types/components/x-portal/positioning.d.ts +102 -0
  1128. package/dist/types/components/x-portal/types.d.ts +43 -0
  1129. package/dist/types/components/x-portal/x-portal.d.ts +19 -0
  1130. package/dist/types/components/x-progress/x-progress.d.ts +85 -0
  1131. package/dist/types/components/x-qr-code/x-qr-code.d.ts +26 -0
  1132. package/dist/types/components/x-radio/types.d.ts +94 -0
  1133. package/dist/types/components/x-radio/x-radio.d.ts +186 -0
  1134. package/dist/types/components/x-radio-group/types.d.ts +20 -0
  1135. package/dist/types/components/x-radio-group/x-radio-group.d.ts +90 -0
  1136. package/dist/types/components/x-range-picker/range-picker-dropdown-content/index.d.ts +2 -0
  1137. package/dist/types/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.d.ts +437 -0
  1138. package/dist/types/components/x-range-picker/range-picker-dropdown-content/types.d.ts +48 -0
  1139. package/dist/types/components/x-range-picker/types.d.ts +35 -0
  1140. package/dist/types/components/x-range-picker/x-range-picker.d.ts +457 -0
  1141. package/dist/types/components/x-rate/x-rate.d.ts +129 -0
  1142. package/dist/types/components/x-result/types.d.ts +45 -0
  1143. package/dist/types/components/x-result/x-result.d.ts +120 -0
  1144. package/dist/types/components/x-row/x-row.d.ts +44 -0
  1145. package/dist/types/components/x-segmented/types.d.ts +10 -0
  1146. package/dist/types/components/x-segmented/x-segmented.d.ts +128 -0
  1147. package/dist/types/components/x-select/select-dropdown-content/index.d.ts +2 -0
  1148. package/dist/types/components/x-select/select-dropdown-content/select-dropdown-content.d.ts +52 -0
  1149. package/dist/types/components/x-select/select-dropdown-content/types.d.ts +14 -0
  1150. package/dist/types/components/x-select/types.d.ts +41 -0
  1151. package/dist/types/components/x-select/x-select.d.ts +635 -0
  1152. package/dist/types/components/x-select-option/x-select-option.d.ts +51 -0
  1153. package/dist/types/components/x-sider/x-sider.d.ts +99 -0
  1154. package/dist/types/components/x-skeleton/x-skeleton.d.ts +54 -0
  1155. package/dist/types/components/x-slider/types.d.ts +1 -0
  1156. package/dist/types/components/x-slider/x-slider.d.ts +240 -0
  1157. package/dist/types/components/x-space/x-space.d.ts +54 -0
  1158. package/dist/types/components/x-spin/x-spin.d.ts +41 -0
  1159. package/dist/types/components/x-splitter/types.d.ts +41 -0
  1160. package/dist/types/components/x-splitter/x-splitter.d.ts +187 -0
  1161. package/dist/types/components/x-splitter-panel/types.d.ts +23 -0
  1162. package/dist/types/components/x-splitter-panel/x-splitter-panel.d.ts +67 -0
  1163. package/dist/types/components/x-statistic/x-statistic.d.ts +80 -0
  1164. package/dist/types/components/x-step/types.d.ts +14 -0
  1165. package/dist/types/components/x-step/x-step.d.ts +104 -0
  1166. package/dist/types/components/x-steps/types.d.ts +124 -0
  1167. package/dist/types/components/x-steps/x-steps.d.ts +270 -0
  1168. package/dist/types/components/x-switch/types.d.ts +5 -0
  1169. package/dist/types/components/x-switch/x-switch.d.ts +92 -0
  1170. package/dist/types/components/x-tab-pane/x-tab-pane.d.ts +55 -0
  1171. package/dist/types/components/x-table/column-util.d.ts +26 -0
  1172. package/dist/types/components/x-table/types.d.ts +386 -0
  1173. package/dist/types/components/x-table/x-table.d.ts +552 -0
  1174. package/dist/types/components/x-table-cell/x-table-cell.d.ts +27 -0
  1175. package/dist/types/components/x-table-row/x-table-row.d.ts +24 -0
  1176. package/dist/types/components/x-tabs/types.d.ts +190 -0
  1177. package/dist/types/components/x-tabs/x-tabs.d.ts +359 -0
  1178. package/dist/types/components/x-tag/types.d.ts +27 -0
  1179. package/dist/types/components/x-tag/x-tag.d.ts +148 -0
  1180. package/dist/types/components/x-textarea/x-textarea.d.ts +165 -0
  1181. package/dist/types/components/x-time-picker/time-picker-dropdown-content/index.d.ts +2 -0
  1182. package/dist/types/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.d.ts +239 -0
  1183. package/dist/types/components/x-time-picker/time-picker-dropdown-content/types.d.ts +28 -0
  1184. package/dist/types/components/x-time-picker/types.d.ts +18 -0
  1185. package/dist/types/components/x-time-picker/x-time-picker.d.ts +378 -0
  1186. package/dist/types/components/x-timeline/x-timeline.d.ts +33 -0
  1187. package/dist/types/components/x-timeline-item/x-timeline-item.d.ts +33 -0
  1188. package/dist/types/components/x-tooltip/types.d.ts +53 -0
  1189. package/dist/types/components/x-tooltip/x-tooltip.d.ts +274 -0
  1190. package/dist/types/components/x-tooltip-content/index.d.ts +1 -0
  1191. package/dist/types/components/x-tooltip-content/types.d.ts +25 -0
  1192. package/dist/types/components/x-tooltip-content/x-tooltip-content.d.ts +57 -0
  1193. package/dist/types/components/x-tour/index.d.ts +1 -0
  1194. package/dist/types/components/x-tour/types.d.ts +71 -0
  1195. package/dist/types/components/x-tour/x-tour-panel.d.ts +73 -0
  1196. package/dist/types/components/x-tour/x-tour.d.ts +158 -0
  1197. package/dist/types/components/x-transfer/types.d.ts +89 -0
  1198. package/dist/types/components/x-transfer/x-transfer.d.ts +291 -0
  1199. package/dist/types/components/x-tree/types.d.ts +163 -0
  1200. package/dist/types/components/x-tree/x-tree.d.ts +406 -0
  1201. package/dist/types/components/x-tree-select/tree-select-dropdown-content/index.d.ts +2 -0
  1202. package/dist/types/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.d.ts +268 -0
  1203. package/dist/types/components/x-tree-select/tree-select-dropdown-content/types.d.ts +24 -0
  1204. package/dist/types/components/x-tree-select/types.d.ts +100 -0
  1205. package/dist/types/components/x-tree-select/x-tree-select.d.ts +750 -0
  1206. package/dist/types/components/x-typography/x-typography.d.ts +89 -0
  1207. package/dist/types/components/x-upload/types.d.ts +177 -0
  1208. package/dist/types/components/x-upload/x-upload.d.ts +361 -0
  1209. package/dist/types/components/x-virtual-scroll/x-virtual-scroll.d.ts +127 -0
  1210. package/dist/types/components/x-workflow/x-workflow.d.ts +126 -0
  1211. package/dist/types/components/x-workflow-builder/x-workflow-builder.d.ts +69 -0
  1212. package/dist/types/components.d.ts +19048 -0
  1213. package/dist/types/index.d.ts +63 -0
  1214. package/dist/types/locales/index.d.ts +2 -0
  1215. package/dist/types/locales/languages/ar_EG.d.ts +119 -0
  1216. package/dist/types/locales/languages/az_AZ.d.ts +119 -0
  1217. package/dist/types/locales/languages/bg_BG.d.ts +119 -0
  1218. package/dist/types/locales/languages/bn_BD.d.ts +119 -0
  1219. package/dist/types/locales/languages/by_BY.d.ts +119 -0
  1220. package/dist/types/locales/languages/ca_ES.d.ts +119 -0
  1221. package/dist/types/locales/languages/cs_CZ.d.ts +119 -0
  1222. package/dist/types/locales/languages/da_DK.d.ts +119 -0
  1223. package/dist/types/locales/languages/de_DE.d.ts +119 -0
  1224. package/dist/types/locales/languages/el_GR.d.ts +119 -0
  1225. package/dist/types/locales/languages/en_AU.d.ts +119 -0
  1226. package/dist/types/locales/languages/en_GB.d.ts +119 -0
  1227. package/dist/types/locales/languages/en_US.d.ts +119 -0
  1228. package/dist/types/locales/languages/es_ES.d.ts +119 -0
  1229. package/dist/types/locales/languages/et_EE.d.ts +119 -0
  1230. package/dist/types/locales/languages/fa_IR.d.ts +119 -0
  1231. package/dist/types/locales/languages/fi_FI.d.ts +119 -0
  1232. package/dist/types/locales/languages/fr_BE.d.ts +119 -0
  1233. package/dist/types/locales/languages/fr_CA.d.ts +119 -0
  1234. package/dist/types/locales/languages/fr_FR.d.ts +119 -0
  1235. package/dist/types/locales/languages/ga_IE.d.ts +119 -0
  1236. package/dist/types/locales/languages/gl_ES.d.ts +119 -0
  1237. package/dist/types/locales/languages/he_IL.d.ts +119 -0
  1238. package/dist/types/locales/languages/hi_IN.d.ts +119 -0
  1239. package/dist/types/locales/languages/hr_HR.d.ts +119 -0
  1240. package/dist/types/locales/languages/hu_HU.d.ts +119 -0
  1241. package/dist/types/locales/languages/hy_AM.d.ts +119 -0
  1242. package/dist/types/locales/languages/id_ID.d.ts +119 -0
  1243. package/dist/types/locales/languages/index.d.ts +13 -0
  1244. package/dist/types/locales/languages/is_IS.d.ts +119 -0
  1245. package/dist/types/locales/languages/it_IT.d.ts +119 -0
  1246. package/dist/types/locales/languages/ja_JP.d.ts +119 -0
  1247. package/dist/types/locales/languages/ka_GE.d.ts +119 -0
  1248. package/dist/types/locales/languages/kk_KZ.d.ts +119 -0
  1249. package/dist/types/locales/languages/km_KH.d.ts +119 -0
  1250. package/dist/types/locales/languages/kmr_IQ.d.ts +119 -0
  1251. package/dist/types/locales/languages/kn_IN.d.ts +119 -0
  1252. package/dist/types/locales/languages/ko_KR.d.ts +119 -0
  1253. package/dist/types/locales/languages/ku_IQ.d.ts +119 -0
  1254. package/dist/types/locales/languages/lt_LT.d.ts +119 -0
  1255. package/dist/types/locales/languages/lv_LV.d.ts +119 -0
  1256. package/dist/types/locales/languages/mk_MK.d.ts +119 -0
  1257. package/dist/types/locales/languages/ml_IN.d.ts +119 -0
  1258. package/dist/types/locales/languages/mn_MN.d.ts +119 -0
  1259. package/dist/types/locales/languages/ms_MY.d.ts +119 -0
  1260. package/dist/types/locales/languages/nb_NO.d.ts +119 -0
  1261. package/dist/types/locales/languages/ne_NP.d.ts +119 -0
  1262. package/dist/types/locales/languages/nl_BE.d.ts +119 -0
  1263. package/dist/types/locales/languages/nl_NL.d.ts +119 -0
  1264. package/dist/types/locales/languages/pl_PL.d.ts +119 -0
  1265. package/dist/types/locales/languages/pt_BR.d.ts +119 -0
  1266. package/dist/types/locales/languages/pt_PT.d.ts +119 -0
  1267. package/dist/types/locales/languages/ro_RO.d.ts +119 -0
  1268. package/dist/types/locales/languages/ru_RU.d.ts +119 -0
  1269. package/dist/types/locales/languages/sk_SK.d.ts +119 -0
  1270. package/dist/types/locales/languages/sl_SI.d.ts +119 -0
  1271. package/dist/types/locales/languages/sr_RS.d.ts +119 -0
  1272. package/dist/types/locales/languages/sv_SE.d.ts +119 -0
  1273. package/dist/types/locales/languages/ta_IN.d.ts +119 -0
  1274. package/dist/types/locales/languages/th_TH.d.ts +119 -0
  1275. package/dist/types/locales/languages/tr_TR.d.ts +119 -0
  1276. package/dist/types/locales/languages/uk_UA.d.ts +119 -0
  1277. package/dist/types/locales/languages/ur_PK.d.ts +119 -0
  1278. package/dist/types/locales/languages/vi_VN.d.ts +119 -0
  1279. package/dist/types/locales/languages/zh_CN.d.ts +119 -0
  1280. package/dist/types/locales/languages/zh_HK.d.ts +119 -0
  1281. package/dist/types/locales/languages/zh_TW.d.ts +119 -0
  1282. package/dist/types/locales/locale.service.d.ts +93 -0
  1283. package/dist/types/stencil-public-runtime.d.ts +1860 -0
  1284. package/dist/types/types.d.ts +59 -0
  1285. package/dist/types/utils/app-service.d.ts +20 -0
  1286. package/dist/types/utils/cascader.service.d.ts +45 -0
  1287. package/dist/types/utils/config.d.ts +47 -0
  1288. package/dist/types/utils/form/core/abstract-control.d.ts +121 -0
  1289. package/dist/types/utils/form/core/form-array.d.ts +51 -0
  1290. package/dist/types/utils/form/core/form-builder.d.ts +45 -0
  1291. package/dist/types/utils/form/core/form-control.d.ts +37 -0
  1292. package/dist/types/utils/form/core/form-group.d.ts +63 -0
  1293. package/dist/types/utils/form/frameworks.d.ts +18 -0
  1294. package/dist/types/utils/form/types.d.ts +8 -0
  1295. package/dist/types/utils/form/validators/validators.d.ts +39 -0
  1296. package/dist/types/utils/index.d.ts +10 -0
  1297. package/dist/types/utils/qr-code/cache/qr.cache.d.ts +7 -0
  1298. package/dist/types/utils/qr-code/engine/qr.engine.d.ts +15 -0
  1299. package/dist/types/utils/qr-code/engine/qr.gf.d.ts +4 -0
  1300. package/dist/types/utils/qr-code/engine/qr.mask.d.ts +2 -0
  1301. package/dist/types/utils/qr-code/engine/qr.rs.d.ts +1 -0
  1302. package/dist/types/utils/qr-code/engine/qr.util.d.ts +0 -0
  1303. package/dist/types/utils/qr-code/engine/qr.version.d.ts +16 -0
  1304. package/dist/types/utils/qr-code/renderer/canvas.renderer.d.ts +6 -0
  1305. package/dist/types/utils/qr-code/renderer/svg.renderer.d.ts +7 -0
  1306. package/dist/types/utils/qr-code/worker/worker.manager.d.ts +12 -0
  1307. package/dist/types/utils/table.service.d.ts +48 -0
  1308. package/dist/types/utils/tree.service.d.ts +85 -0
  1309. package/dist/types/utils/workflow/flow.service.d.ts +61 -0
  1310. package/dist/types/utils/workflow/types.d.ts +120 -0
  1311. package/dist/xlabs-store/fonts/xlabs-outlined.woff2 +0 -0
  1312. package/dist/xlabs-store/fonts/xlabs-rounded.woff2 +0 -0
  1313. package/dist/xlabs-store/fonts/xlabs-solided.woff2 +0 -0
  1314. package/dist/xlabs-store/index.esm.js +1 -0
  1315. package/dist/xlabs-store/p-016194dc.entry.js +1 -0
  1316. package/dist/xlabs-store/p-023259c9.entry.js +1 -0
  1317. package/dist/xlabs-store/p-04a3721a.entry.js +1 -0
  1318. package/dist/xlabs-store/p-072445b7.entry.js +1 -0
  1319. package/dist/xlabs-store/p-0ec21454.entry.js +1 -0
  1320. package/dist/xlabs-store/p-12b6a843.entry.js +1 -0
  1321. package/dist/xlabs-store/p-1a81cf09.entry.js +1 -0
  1322. package/dist/xlabs-store/p-1b019aeb.entry.js +1 -0
  1323. package/dist/xlabs-store/p-262a0673.entry.js +1 -0
  1324. package/dist/xlabs-store/p-34cce823.entry.js +1 -0
  1325. package/dist/xlabs-store/p-3a9fdefe.entry.js +1 -0
  1326. package/dist/xlabs-store/p-40036100.entry.js +1 -0
  1327. package/dist/xlabs-store/p-45f04e8d.entry.js +1 -0
  1328. package/dist/xlabs-store/p-48ba7c34.entry.js +1 -0
  1329. package/dist/xlabs-store/p-48e2c26e.entry.js +1 -0
  1330. package/dist/xlabs-store/p-4ac2e915.entry.js +1 -0
  1331. package/dist/xlabs-store/p-4d7c2a35.entry.js +1 -0
  1332. package/dist/xlabs-store/p-4f67cb33.entry.js +1 -0
  1333. package/dist/xlabs-store/p-502b345e.entry.js +1 -0
  1334. package/dist/xlabs-store/p-555c5e48.entry.js +1 -0
  1335. package/dist/xlabs-store/p-5878525f.entry.js +1 -0
  1336. package/dist/xlabs-store/p-5abbdca7.entry.js +1 -0
  1337. package/dist/xlabs-store/p-6243ca69.entry.js +1 -0
  1338. package/dist/xlabs-store/p-64e7a057.entry.js +1 -0
  1339. package/dist/xlabs-store/p-6530d2ef.entry.js +1 -0
  1340. package/dist/xlabs-store/p-675a39e1.entry.js +1 -0
  1341. package/dist/xlabs-store/p-689c52ef.entry.js +1 -0
  1342. package/dist/xlabs-store/p-69b8cb7d.entry.js +1 -0
  1343. package/dist/xlabs-store/p-6b121c60.entry.js +1 -0
  1344. package/dist/xlabs-store/p-6c75fc39.entry.js +1 -0
  1345. package/dist/xlabs-store/p-6f705deb.entry.js +1 -0
  1346. package/dist/xlabs-store/p-723d362c.entry.js +1 -0
  1347. package/dist/xlabs-store/p-783545e3.entry.js +1 -0
  1348. package/dist/xlabs-store/p-7a8f11b4.entry.js +1 -0
  1349. package/dist/xlabs-store/p-81fb4caf.entry.js +1 -0
  1350. package/dist/xlabs-store/p-863dd67d.entry.js +1 -0
  1351. package/dist/xlabs-store/p-8bcbb4e3.entry.js +1 -0
  1352. package/dist/xlabs-store/p-8bcc219a.entry.js +1 -0
  1353. package/dist/xlabs-store/p-914b0ae2.entry.js +1 -0
  1354. package/dist/xlabs-store/p-96b1939d.entry.js +1 -0
  1355. package/dist/xlabs-store/p-9ac291ea.entry.js +1 -0
  1356. package/dist/xlabs-store/p-9de03a07.entry.js +1 -0
  1357. package/dist/xlabs-store/p-BPeosvTA.js +1 -0
  1358. package/dist/xlabs-store/p-COpzIi1n.js +1 -0
  1359. package/dist/xlabs-store/p-C_QdJRdB.js +1 -0
  1360. package/dist/xlabs-store/p-Ce5L9qbY.js +1 -0
  1361. package/dist/xlabs-store/p-Co3Y9VjQ.js +1 -0
  1362. package/dist/xlabs-store/p-D66tF8_2.js +1 -0
  1363. package/dist/xlabs-store/p-DElCk9ta.js +1 -0
  1364. package/dist/xlabs-store/p-Dgxy93Bg.js +1 -0
  1365. package/dist/xlabs-store/p-XBF88YT_.js +1 -0
  1366. package/dist/xlabs-store/p-a4223feb.entry.js +1 -0
  1367. package/dist/xlabs-store/p-a8c2eca7.entry.js +1 -0
  1368. package/dist/xlabs-store/p-ac9ba3aa.entry.js +1 -0
  1369. package/dist/xlabs-store/p-bd5084b8.entry.js +1 -0
  1370. package/dist/xlabs-store/p-bda322db.entry.js +1 -0
  1371. package/dist/xlabs-store/p-c0ca6f7d.entry.js +1 -0
  1372. package/dist/xlabs-store/p-c4c8840c.entry.js +1 -0
  1373. package/dist/xlabs-store/p-c4d0ce0d.entry.js +1 -0
  1374. package/dist/xlabs-store/p-cd3c3374.entry.js +1 -0
  1375. package/dist/xlabs-store/p-cf4697bc.entry.js +1 -0
  1376. package/dist/xlabs-store/p-d2ec3d4a.entry.js +1 -0
  1377. package/dist/xlabs-store/p-d4d00aff.entry.js +1 -0
  1378. package/dist/xlabs-store/p-d9d0147b.entry.js +1 -0
  1379. package/dist/xlabs-store/p-dd930f2a.entry.js +1 -0
  1380. package/dist/xlabs-store/p-e04836e8.entry.js +1 -0
  1381. package/dist/xlabs-store/p-e14b5f6d.entry.js +1 -0
  1382. package/dist/xlabs-store/p-eb1dd3c2.entry.js +1 -0
  1383. package/dist/xlabs-store/p-f02155e4.entry.js +1 -0
  1384. package/dist/xlabs-store/p-f1331938.entry.js +1 -0
  1385. package/dist/xlabs-store/p-fac0b689.entry.js +1 -0
  1386. package/dist/xlabs-store/p-fd2e1d9c.entry.js +1 -0
  1387. package/dist/xlabs-store/p-fdec5d89.entry.js +1 -0
  1388. package/dist/xlabs-store/p-ffba56b2.entry.js +1 -0
  1389. package/dist/xlabs-store/p-ig_mFsVk.js +2 -0
  1390. package/dist/xlabs-store/xlabs-store.css +1 -0
  1391. package/dist/xlabs-store/xlabs-store.esm.js +1 -0
  1392. package/loader/cdn.js +1 -0
  1393. package/loader/index.cjs.js +1 -0
  1394. package/loader/index.d.ts +24 -0
  1395. package/loader/index.es2017.js +1 -0
  1396. package/loader/index.js +2 -0
  1397. package/package.json +69 -0
  1398. package/readme.md +50 -0
@@ -0,0 +1,1502 @@
1
+ import { t as translate } from './locale.service-D66tF8_2.js';
2
+
3
+ class ValueUtil {
4
+ static number(value) {
5
+ return Number(value);
6
+ }
7
+ static string(value) {
8
+ return String(value);
9
+ }
10
+ static boolean(value) {
11
+ return Boolean(value);
12
+ }
13
+ static date(value) {
14
+ return new Date(value);
15
+ }
16
+ static detect(filed, value) {
17
+ switch (filed.type) {
18
+ case 'number':
19
+ return ValueUtil.number(value);
20
+ case 'email':
21
+ case 'text':
22
+ case 'textarea':
23
+ case 'phone':
24
+ case 'url':
25
+ case 'password':
26
+ case 'color':
27
+ case 'file':
28
+ return ValueUtil.string(value);
29
+ case 'switch':
30
+ return ValueUtil.boolean(value);
31
+ case 'date':
32
+ case 'datetime':
33
+ return ValueUtil.date(value);
34
+ default:
35
+ return value;
36
+ }
37
+ }
38
+ }
39
+
40
+ /**
41
+ * getNestedValue - Navigate through nested objects using dot notation.
42
+ * @param obj The source object
43
+ * @param path The path to the value (e.g., 'user.name')
44
+ * @returns The value at the specified path or undefined
45
+ */
46
+ function getNestedValue(obj, path) {
47
+ if (!obj || !path)
48
+ return undefined;
49
+ const keys = path.split('.');
50
+ let result = obj;
51
+ for (const key of keys) {
52
+ if (result && typeof result === 'object' && key in result) {
53
+ result = result[key];
54
+ }
55
+ else {
56
+ return undefined;
57
+ }
58
+ }
59
+ return result;
60
+ }
61
+ /**
62
+ * getFieldValue - Resolve field values from either formValues or context.
63
+ * @param field The field identifier (starts with $ for context)
64
+ * @param formValues The form values object
65
+ * @param context The context object
66
+ * @returns The resolved value
67
+ */
68
+ function getFieldValue(field, formValues, context) {
69
+ if (!field)
70
+ return undefined;
71
+ if (field.startsWith('$')) {
72
+ const contextPath = field.substring(1);
73
+ return getNestedValue(context, contextPath);
74
+ }
75
+ return getNestedValue(formValues, field);
76
+ }
77
+ /**
78
+ * evaluateCondition - Pure utility to evaluate a condition against data sources.
79
+ * @param condition The condition object { field, operator, value }
80
+ * @param formValues Current form values
81
+ * @param context External context ($ fields)
82
+ * @returns boolean
83
+ */
84
+ function evaluateCondition(condition, formValues, context) {
85
+ if (!condition || !condition.field || !condition.operator) {
86
+ return false;
87
+ }
88
+ const { field, operator, value: expectedValue } = condition;
89
+ const actualValue = getFieldValue(field, formValues, context);
90
+ const result = (() => {
91
+ switch (operator) {
92
+ case 'equals':
93
+ return actualValue === expectedValue;
94
+ case 'notEquals':
95
+ return actualValue !== expectedValue;
96
+ case 'contains':
97
+ if (Array.isArray(actualValue)) {
98
+ return actualValue.includes(expectedValue);
99
+ }
100
+ if (typeof actualValue === 'string') {
101
+ return actualValue.includes(String(expectedValue));
102
+ }
103
+ return false;
104
+ case 'notContains':
105
+ if (Array.isArray(actualValue)) {
106
+ return !actualValue.includes(expectedValue);
107
+ }
108
+ if (typeof actualValue === 'string') {
109
+ return !actualValue.includes(String(expectedValue));
110
+ }
111
+ return true;
112
+ case 'greaterThan':
113
+ return Number(actualValue) > Number(expectedValue);
114
+ case 'lessThan':
115
+ return Number(actualValue) < Number(expectedValue);
116
+ case 'greaterThanOrEqual':
117
+ return Number(actualValue) >= Number(expectedValue);
118
+ case 'lessThanOrEqual':
119
+ return Number(actualValue) <= Number(expectedValue);
120
+ case 'isNotEmpty':
121
+ case 'notEmpty':
122
+ return (actualValue !== null &&
123
+ actualValue !== undefined &&
124
+ actualValue !== '' &&
125
+ !(Array.isArray(actualValue) && actualValue.length === 0));
126
+ case 'isEmpty':
127
+ case 'empty':
128
+ return (actualValue === null ||
129
+ actualValue === undefined ||
130
+ actualValue === '' ||
131
+ (Array.isArray(actualValue) && actualValue.length === 0));
132
+ case 'startsWith':
133
+ return String(actualValue).startsWith(String(expectedValue));
134
+ case 'endsWith':
135
+ return String(actualValue).endsWith(String(expectedValue));
136
+ case 'in':
137
+ if (Array.isArray(expectedValue)) {
138
+ return expectedValue.includes(actualValue);
139
+ }
140
+ if (typeof expectedValue === 'string') {
141
+ return expectedValue.split(',').map(v => v.trim()).includes(String(actualValue));
142
+ }
143
+ return false;
144
+ case 'notIn':
145
+ if (Array.isArray(expectedValue)) {
146
+ return !expectedValue.includes(actualValue);
147
+ }
148
+ if (typeof expectedValue === 'string') {
149
+ return !expectedValue.split(',').map(v => v.trim()).includes(String(actualValue));
150
+ }
151
+ return true;
152
+ default:
153
+ return false;
154
+ }
155
+ })();
156
+ return result;
157
+ }
158
+
159
+ class ConditionOperators {
160
+ get mapping() {
161
+ return {
162
+ equals: this.equals.bind(this),
163
+ notEquals: this.notEquals.bind(this),
164
+ contains: this.contains.bind(this),
165
+ notContains: this.notContains.bind(this),
166
+ greaterThan: this.greaterThan.bind(this),
167
+ lessThan: this.lessThan.bind(this),
168
+ greaterThanOrEqual: this.greaterThanOrEqual.bind(this),
169
+ lessThanOrEqual: this.lessThanOrEqual.bind(this),
170
+ isEmpty: this.isEmpty.bind(this),
171
+ isNotEmpty: this.isNotEmpty.bind(this),
172
+ startsWith: this.startsWith.bind(this),
173
+ endsWith: this.endsWith.bind(this),
174
+ in: this.in.bind(this),
175
+ notIn: this.notIn.bind(this),
176
+ };
177
+ }
178
+ equals(option, field, value) {
179
+ value = ValueUtil.detect(field, value);
180
+ return option.value === value;
181
+ }
182
+ notEquals(option, field, value) {
183
+ value = ValueUtil.detect(field, value);
184
+ return option.value !== value;
185
+ }
186
+ contains(option, field, value) {
187
+ value = ValueUtil.detect(field, value);
188
+ if (Array.isArray(value)) {
189
+ return value.includes(option.value);
190
+ }
191
+ if (typeof value === 'string') {
192
+ return value.includes(String(option.value));
193
+ }
194
+ return false;
195
+ }
196
+ greaterThan(option, field, value) {
197
+ value = ValueUtil.detect(field, value);
198
+ if (typeof value === 'number') {
199
+ const cmp = typeof option.value === 'number'
200
+ ? option.value
201
+ : Number(option.value ?? NaN);
202
+ return Number.isFinite(cmp) ? value > cmp : false;
203
+ }
204
+ return false;
205
+ }
206
+ lessThan(option, field, value) {
207
+ value = ValueUtil.detect(field, value);
208
+ if (typeof value === 'number') {
209
+ const cmp = typeof option.value === 'number'
210
+ ? option.value
211
+ : Number(option.value ?? NaN);
212
+ return Number.isFinite(cmp) ? value < cmp : false;
213
+ }
214
+ return false;
215
+ }
216
+ isEmpty(_option, field, value) {
217
+ value = ValueUtil.detect(field, value);
218
+ return (value == null ||
219
+ value === '' ||
220
+ (Array.isArray(value) && value.length === 0));
221
+ }
222
+ isNotEmpty(_option, field, value) {
223
+ value = ValueUtil.detect(field, value);
224
+ return !(value == null ||
225
+ value === '' ||
226
+ (Array.isArray(value) && value.length === 0));
227
+ }
228
+ notContains(option, field, value) {
229
+ value = ValueUtil.detect(field, value);
230
+ if (Array.isArray(value)) {
231
+ return !value.includes(option.value);
232
+ }
233
+ if (typeof value === 'string') {
234
+ return !value.includes(String(option.value));
235
+ }
236
+ return true;
237
+ }
238
+ greaterThanOrEqual(option, field, value) {
239
+ value = ValueUtil.detect(field, value);
240
+ if (typeof value === 'number') {
241
+ const cmp = typeof option.value === 'number'
242
+ ? option.value
243
+ : Number(option.value ?? NaN);
244
+ return Number.isFinite(cmp) ? value >= cmp : false;
245
+ }
246
+ return false;
247
+ }
248
+ lessThanOrEqual(option, field, value) {
249
+ value = ValueUtil.detect(field, value);
250
+ if (typeof value === 'number') {
251
+ const cmp = typeof option.value === 'number'
252
+ ? option.value
253
+ : Number(option.value ?? NaN);
254
+ return Number.isFinite(cmp) ? value <= cmp : false;
255
+ }
256
+ return false;
257
+ }
258
+ startsWith(option, field, value) {
259
+ value = ValueUtil.detect(field, value);
260
+ if (typeof value === 'string') {
261
+ return value.startsWith(String(option.value));
262
+ }
263
+ return false;
264
+ }
265
+ endsWith(option, field, value) {
266
+ value = ValueUtil.detect(field, value);
267
+ if (typeof value === 'string') {
268
+ return value.endsWith(String(option.value));
269
+ }
270
+ return false;
271
+ }
272
+ in(option, field, value) {
273
+ value = ValueUtil.detect(field, value);
274
+ if (Array.isArray(option.value)) {
275
+ return option.value.includes(value);
276
+ }
277
+ if (typeof option.value === 'string') {
278
+ return option.value
279
+ .split(',')
280
+ .map((v) => v.trim())
281
+ .includes(String(value));
282
+ }
283
+ return false;
284
+ }
285
+ notIn(option, field, value) {
286
+ value = ValueUtil.detect(field, value);
287
+ if (Array.isArray(option.value)) {
288
+ return !option.value.includes(value);
289
+ }
290
+ if (typeof option.value === 'string') {
291
+ return !option.value
292
+ .split(',')
293
+ .map((v) => v.trim())
294
+ .includes(String(value));
295
+ }
296
+ return true;
297
+ }
298
+ run(option, values, context) {
299
+ return evaluateCondition({
300
+ field: option.field,
301
+ operator: option.condition,
302
+ value: option.value,
303
+ }, values, context);
304
+ }
305
+ }
306
+ class ConditionBuilder extends ConditionOperators {
307
+ builder;
308
+ get form() {
309
+ return this.builder.form;
310
+ }
311
+ get schema() {
312
+ return this.builder.schema;
313
+ }
314
+ get conditions() {
315
+ return this.schema.conditions || [];
316
+ }
317
+ executors = [];
318
+ isCheckingAll = false;
319
+ constructor(builder) {
320
+ super();
321
+ this.builder = builder;
322
+ this.extract();
323
+ }
324
+ checkAll() {
325
+ this.isCheckingAll = true;
326
+ this.executors.forEach((executor) => executor());
327
+ this.isCheckingAll = false;
328
+ this.builder.notifySubscribers();
329
+ }
330
+ extract() {
331
+ this.conditions.forEach((cond) => {
332
+ if ('when' in cond) {
333
+ this.advanced(cond);
334
+ }
335
+ else if ('conditions' in cond) {
336
+ this.group(cond);
337
+ }
338
+ else {
339
+ this.condition(cond);
340
+ }
341
+ });
342
+ }
343
+ getEvaluationValues() {
344
+ const values = {};
345
+ // Map by ID
346
+ this.form.mappingById.forEach((field, id) => {
347
+ if (field.control) {
348
+ values[id] = field.control.value;
349
+ }
350
+ });
351
+ // Map by Name (for stability and backward compatibility)
352
+ this.form.mapping.forEach((field, name) => {
353
+ if (field.control) {
354
+ values[name] = field.control.value;
355
+ }
356
+ });
357
+ return values;
358
+ }
359
+ group(option) {
360
+ const executor = () => {
361
+ const values = this.getEvaluationValues();
362
+ this.builder.callEvent('beforeConditionCheck', option, values);
363
+ const statuses = option.conditions.map((cond) => {
364
+ return this.run(cond, values, this.builder.context);
365
+ });
366
+ const groupStatus = option.operator === 'and'
367
+ ? statuses.every(Boolean)
368
+ : statuses.some(Boolean);
369
+ if (groupStatus) {
370
+ option.actions.forEach((action) => {
371
+ this.execute(action.action, action.actionField);
372
+ });
373
+ }
374
+ this.builder.callEvent('afterConditionCheck', option, values, groupStatus);
375
+ if (!this.isCheckingAll) {
376
+ this.builder.notifySubscribers();
377
+ }
378
+ };
379
+ option.conditions.forEach((cond) => {
380
+ const field = this.form.mapping.get(cond.field);
381
+ if (field && 'control' in field && field.control) {
382
+ const control = field.control;
383
+ control.subscribe((_val) => executor());
384
+ }
385
+ });
386
+ this.executors.push(executor);
387
+ executor();
388
+ }
389
+ advanced(option) {
390
+ const executor = () => {
391
+ const values = this.getEvaluationValues();
392
+ this.builder.callEvent('beforeConditionCheck', option, values);
393
+ const results = option.when.rules.map((rule) => {
394
+ const field = this.form.mappingById.get(rule.field) ??
395
+ this.form.mapping.get(rule.field);
396
+ if (field || rule.field?.startsWith('$')) {
397
+ const mockCond = {
398
+ id: option.id,
399
+ field: rule.field,
400
+ condition: rule.operator,
401
+ value: rule.value,
402
+ action: 'show',
403
+ actionField: 'none'
404
+ };
405
+ return this.run(mockCond, values, this.builder.context);
406
+ }
407
+ return false;
408
+ });
409
+ const isMatch = option.when.operator === 'or' ? results.some(Boolean) : results.every(Boolean);
410
+ const actions = isMatch ? option.then : (option.else || []);
411
+ actions.forEach((action) => {
412
+ const targetField = this.form.mappingById.get(action.target) ??
413
+ this.form.mapping.get(action.target);
414
+ // If targetField found, use its id as key to execute (execute will resolve correctly)
415
+ const targetKey = targetField ? (targetField.id || targetField.name) : action.target;
416
+ this.execute(action.action, targetKey, action.value);
417
+ });
418
+ this.builder.callEvent('afterConditionCheck', option, values, isMatch);
419
+ if (!this.isCheckingAll) {
420
+ this.builder.notifySubscribers();
421
+ }
422
+ };
423
+ option.when.rules.forEach((rule) => {
424
+ const field = this.form.mappingById.get(rule.field) ??
425
+ this.form.mapping.get(rule.field);
426
+ if (field && 'control' in field && field.control) {
427
+ field.control.subscribe(() => executor());
428
+ }
429
+ });
430
+ this.executors.push(executor);
431
+ executor();
432
+ }
433
+ condition(option) {
434
+ const executor = () => {
435
+ const field = this.form.mappingById.get(option.field) || this.form.mapping.get(option.field);
436
+ if (field && 'control' in field && field.control) {
437
+ const val = field.control.value;
438
+ const values = this.getEvaluationValues();
439
+ this.builder.callEvent('beforeConditionCheck', option, val);
440
+ const status = this.run(option, values, this.builder.context);
441
+ status ? this.execute(option.action, option.actionField) : undefined;
442
+ this.builder.callEvent('afterConditionCheck', option, val, status);
443
+ if (!this.isCheckingAll) {
444
+ this.builder.notifySubscribers();
445
+ }
446
+ }
447
+ };
448
+ const field = this.form.mappingById.get(option.field) || this.form.mapping.get(option.field);
449
+ if (field && 'control' in field && field.control) {
450
+ const control = field.control;
451
+ control.subscribe(() => executor());
452
+ this.executors.push(executor);
453
+ }
454
+ executor();
455
+ }
456
+ execute(action, actionField, value) {
457
+ const actionFieldIds = actionField === 'all'
458
+ ? Array.from(this.form.mapping.keys())
459
+ : [actionField];
460
+ for (const fieldId of actionFieldIds) {
461
+ const field = this.form.mappingById.get(fieldId) || this.form.mapping.get(fieldId);
462
+ console.log(`[ConditionEngine] Executing action '${action}' on field '${fieldId}'. Field found:`, !!field, 'Value:', value);
463
+ if (field) {
464
+ switch (action) {
465
+ case 'show':
466
+ field.hidden = false;
467
+ break;
468
+ case 'hide':
469
+ field.hidden = true;
470
+ break;
471
+ case 'enable':
472
+ field.disabled = false;
473
+ break;
474
+ case 'disable':
475
+ field.disabled = true;
476
+ break;
477
+ case 'require':
478
+ field.required = true;
479
+ break;
480
+ case 'unrequire':
481
+ field.required = false;
482
+ break;
483
+ case 'setContent':
484
+ field.content = value;
485
+ break;
486
+ case 'setLabel':
487
+ field.label = String(value);
488
+ break;
489
+ }
490
+ }
491
+ }
492
+ }
493
+ }
494
+
495
+ class AbstractControl {
496
+ _value;
497
+ _errors = null;
498
+ _status = 'VALID';
499
+ _parent = null;
500
+ _validators = [];
501
+ _asyncValidators = [];
502
+ // private _updateOn: 'change' | 'blur' | 'submit' = 'change';
503
+ _subscribers = new Set();
504
+ _touched = false;
505
+ _dirty = false;
506
+ constructor(validators, asyncValidators) {
507
+ if (validators)
508
+ this._validators = validators;
509
+ if (asyncValidators)
510
+ this._asyncValidators = asyncValidators;
511
+ }
512
+ // Getters
513
+ get value() {
514
+ return this._value;
515
+ }
516
+ get errors() {
517
+ return this._errors;
518
+ }
519
+ get status() {
520
+ return this._status;
521
+ }
522
+ get valid() {
523
+ return this._status === 'VALID';
524
+ }
525
+ get invalid() {
526
+ return this._status === 'INVALID';
527
+ }
528
+ get pending() {
529
+ return this._status === 'PENDING';
530
+ }
531
+ get disabled() {
532
+ return this._status === 'DISABLED';
533
+ }
534
+ get parent() {
535
+ return this._parent;
536
+ }
537
+ get touched() {
538
+ return this._touched;
539
+ }
540
+ get untouched() {
541
+ return !this._touched;
542
+ }
543
+ get dirty() {
544
+ return this._dirty;
545
+ }
546
+ get pristine() {
547
+ return !this._dirty;
548
+ }
549
+ // Validation
550
+ runValidators() {
551
+ let errors = null;
552
+ for (const validator of this._validators) {
553
+ const validationError = validator(this);
554
+ if (validationError) {
555
+ errors = errors || {};
556
+ Object.assign(errors, validationError);
557
+ }
558
+ }
559
+ return errors;
560
+ }
561
+ async runAsyncValidators() {
562
+ let errors = null;
563
+ for (const validator of this._asyncValidators) {
564
+ const validationError = await validator(this._value);
565
+ if (validationError) {
566
+ errors = errors || {};
567
+ Object.assign(errors, validationError);
568
+ }
569
+ }
570
+ return errors;
571
+ }
572
+ async updateValueAndValidity(options = {}) {
573
+ const { emitEvent = true } = options;
574
+ if (this._status === 'DISABLED') {
575
+ return;
576
+ }
577
+ // Run sync validators
578
+ this._errors = this.runValidators();
579
+ this._status = this._errors ? 'INVALID' : 'VALID';
580
+ // Run async validators if sync validators pass
581
+ if (this._asyncValidators.length > 0 && !this._errors) {
582
+ this._status = 'PENDING';
583
+ if (emitEvent)
584
+ this.notifySubscribers();
585
+ const asyncErrors = await this.runAsyncValidators();
586
+ if (asyncErrors) {
587
+ this._errors = { ...(this._errors ?? {}), ...asyncErrors };
588
+ this._status = 'INVALID';
589
+ }
590
+ else {
591
+ this._status = 'VALID';
592
+ }
593
+ }
594
+ if (emitEvent) {
595
+ this.notifySubscribers();
596
+ if (this._parent) {
597
+ this._parent.updateValueAndValidity({ emitEvent: true });
598
+ }
599
+ }
600
+ }
601
+ // State management
602
+ markAsTouched() {
603
+ this._touched = true;
604
+ }
605
+ markAsUntouched() {
606
+ this._touched = false;
607
+ }
608
+ markAsDirty() {
609
+ this._dirty = true;
610
+ }
611
+ markAsPristine() {
612
+ this._dirty = false;
613
+ }
614
+ disable() {
615
+ this._status = 'DISABLED';
616
+ this.notifySubscribers();
617
+ }
618
+ enable() {
619
+ this._status = 'VALID';
620
+ this.updateValueAndValidity();
621
+ }
622
+ // Validators management
623
+ setValidators(validators) {
624
+ this._validators = validators;
625
+ this.updateValueAndValidity();
626
+ }
627
+ setAsyncValidators(validators) {
628
+ this._asyncValidators = validators;
629
+ this.updateValueAndValidity();
630
+ }
631
+ clearValidators() {
632
+ this._validators = [];
633
+ this.updateValueAndValidity();
634
+ }
635
+ clearAsyncValidators() {
636
+ this._asyncValidators = [];
637
+ this.updateValueAndValidity();
638
+ }
639
+ registerValidator(validator) {
640
+ this._validators.push(validator);
641
+ this.updateValueAndValidity();
642
+ }
643
+ registerValidatorAsync(validator) {
644
+ this._asyncValidators.push(validator);
645
+ this.updateValueAndValidity();
646
+ }
647
+ // Parent management
648
+ setParent(parent) {
649
+ this._parent = parent;
650
+ }
651
+ // Subscription
652
+ subscribe(callback) {
653
+ this._subscribers.add(callback);
654
+ return () => this._subscribers.delete(callback);
655
+ }
656
+ notifySubscribers() {
657
+ this._subscribers.forEach(callback => callback(this._value));
658
+ }
659
+ setValueInternal(value) {
660
+ this._value = value;
661
+ }
662
+ // Error helpers
663
+ hasError(errorCode) {
664
+ return this._errors ? this._errors[errorCode] !== undefined : false;
665
+ }
666
+ getError(errorCode) {
667
+ return this._errors ? this._errors[errorCode] : null;
668
+ }
669
+ }
670
+
671
+ class FormControl extends AbstractControl {
672
+ constructor(initialValue = null, validatorsOrOptions, asyncValidators) {
673
+ let validators = [];
674
+ let asyncValidatorsList = [];
675
+ if (Array.isArray(validatorsOrOptions)) {
676
+ validators = validatorsOrOptions;
677
+ asyncValidatorsList = asyncValidators || [];
678
+ }
679
+ else if (validatorsOrOptions) {
680
+ validators = validatorsOrOptions.validators || [];
681
+ asyncValidatorsList = validatorsOrOptions.asyncValidators || [];
682
+ }
683
+ super(validators, asyncValidatorsList);
684
+ this.setValueInternal(initialValue);
685
+ this.updateValueAndValidity({ emitEvent: false });
686
+ }
687
+ setValue(value, options = {}) {
688
+ const { emitEvent = true } = options;
689
+ this.setValueInternal(value);
690
+ this.markAsDirty();
691
+ this.updateValueAndValidity({ emitEvent });
692
+ }
693
+ patchValue(value, options = {}) {
694
+ this.setValue(value, options);
695
+ }
696
+ reset(value = null, options = {}) {
697
+ this.setValueInternal(value);
698
+ this.markAsPristine();
699
+ this.markAsUntouched();
700
+ this.updateValueAndValidity(options);
701
+ }
702
+ }
703
+
704
+ class FormArray extends AbstractControl {
705
+ _controls = [];
706
+ constructor(controls, validatorsOrOptions, asyncValidators) {
707
+ let validators = [];
708
+ let asyncValidatorsList = [];
709
+ if (Array.isArray(validatorsOrOptions)) {
710
+ validators = validatorsOrOptions;
711
+ asyncValidatorsList = asyncValidators || [];
712
+ }
713
+ else if (validatorsOrOptions) {
714
+ validators = validatorsOrOptions.validators || [];
715
+ asyncValidatorsList = validatorsOrOptions.asyncValidators || [];
716
+ }
717
+ super(validators, asyncValidatorsList);
718
+ this._controls = controls;
719
+ controls.forEach((control) => {
720
+ control.setParent(this);
721
+ });
722
+ this.updateValueAndValidity({ emitEvent: false });
723
+ }
724
+ get controls() {
725
+ return this._controls;
726
+ }
727
+ get value() {
728
+ return this._controls
729
+ .filter((control) => !control.disabled)
730
+ .map((control) => control.value);
731
+ }
732
+ get length() {
733
+ return this._controls.length;
734
+ }
735
+ at(index) {
736
+ return this._controls[index] || null;
737
+ }
738
+ push(control) {
739
+ this._controls.push(control);
740
+ control.setParent(this);
741
+ this.updateValueAndValidity();
742
+ }
743
+ insert(index, control) {
744
+ this._controls.splice(index, 0, control);
745
+ control.setParent(this);
746
+ this.updateValueAndValidity();
747
+ }
748
+ removeAt(index) {
749
+ if (this._controls[index]) {
750
+ this._controls.splice(index, 1);
751
+ this.updateValueAndValidity();
752
+ }
753
+ }
754
+ setControl(index, control) {
755
+ if (this._controls[index]) {
756
+ this._controls[index] = control;
757
+ control.setParent(this);
758
+ this.updateValueAndValidity();
759
+ }
760
+ }
761
+ clear() {
762
+ this._controls = [];
763
+ this.updateValueAndValidity();
764
+ }
765
+ setValue(value, options = {}) {
766
+ if (value.length !== this._controls.length) {
767
+ throw new Error('setValue: value array length must match controls array length');
768
+ }
769
+ value.forEach((val, index) => {
770
+ this._controls[index].setValue(val, { emitEvent: false });
771
+ });
772
+ this.markAsDirty();
773
+ this.updateValueAndValidity(options);
774
+ }
775
+ patchValue(value, options = {}) {
776
+ value.forEach((val, index) => {
777
+ if (this._controls[index]) {
778
+ this._controls[index].patchValue(val, { emitEvent: false });
779
+ }
780
+ });
781
+ this.updateValueAndValidity(options);
782
+ }
783
+ reset(value = [], options = {}) {
784
+ this._controls.forEach((control, index) => {
785
+ control.reset(value[index], { emitEvent: false });
786
+ });
787
+ this.markAsPristine();
788
+ this.markAsUntouched();
789
+ this.updateValueAndValidity(options);
790
+ }
791
+ getRawValue() {
792
+ return this._controls.map((control) => control.value);
793
+ }
794
+ }
795
+
796
+ class FormGroup extends AbstractControl {
797
+ _controls = {};
798
+ constructor(controls, validatorsOrOptions, asyncValidators) {
799
+ let validators = [];
800
+ let asyncValidatorsList = [];
801
+ if (Array.isArray(validatorsOrOptions)) {
802
+ validators = validatorsOrOptions;
803
+ asyncValidatorsList = asyncValidators || [];
804
+ }
805
+ else if (validatorsOrOptions) {
806
+ validators = validatorsOrOptions.validators || [];
807
+ asyncValidatorsList = validatorsOrOptions.asyncValidators || [];
808
+ }
809
+ super(validators, asyncValidatorsList);
810
+ this._controls = controls;
811
+ Object.values(controls).forEach((control) => {
812
+ control.setParent(this);
813
+ });
814
+ this.updateValueAndValidity({ emitEvent: false });
815
+ }
816
+ get controls() {
817
+ return this._controls;
818
+ }
819
+ get value() {
820
+ const value = {};
821
+ Object.keys(this._controls).forEach((key) => {
822
+ const control = this._controls[key];
823
+ if (!control.disabled) {
824
+ value[key] = control.value;
825
+ }
826
+ });
827
+ return value;
828
+ }
829
+ setValue(value, options = {}) {
830
+ Object.keys(value).forEach((key) => {
831
+ if (!this._controls[key]) {
832
+ throw new Error(`Cannot find form control with name: ${key}`);
833
+ }
834
+ this._controls[key].setValue(value[key], { emitEvent: false });
835
+ });
836
+ this.markAsDirty();
837
+ this.updateValueAndValidity(options);
838
+ }
839
+ patchValue(value, options = {}) {
840
+ Object.keys(value).forEach((key) => {
841
+ if (this._controls[key]) {
842
+ this._controls[key].patchValue(value[key], { emitEvent: false });
843
+ }
844
+ });
845
+ this.updateValueAndValidity(options);
846
+ }
847
+ reset(value = {}, options = {}) {
848
+ Object.keys(this._controls).forEach((key) => {
849
+ this._controls[key].reset(value[key], { emitEvent: false });
850
+ });
851
+ this.markAsPristine();
852
+ this.markAsUntouched();
853
+ this.updateValueAndValidity(options);
854
+ }
855
+ // Control management
856
+ addControl(name, control) {
857
+ this._controls[name] = control;
858
+ control.setParent(this);
859
+ this.updateValueAndValidity();
860
+ }
861
+ removeControl(name) {
862
+ if (this._controls[name]) {
863
+ delete this._controls[name];
864
+ this.updateValueAndValidity();
865
+ }
866
+ }
867
+ setControl(name, control) {
868
+ if (this._controls[name]) {
869
+ this.removeControl(name);
870
+ }
871
+ this.addControl(name, control);
872
+ }
873
+ contains(name) {
874
+ return this._controls[name] !== undefined;
875
+ }
876
+ get(path) {
877
+ const pathArray = Array.isArray(path) ? path : path.split('.');
878
+ if (pathArray.length === 0)
879
+ return null;
880
+ let control = this._controls[pathArray[0]] || null;
881
+ for (let i = 1; i < pathArray.length && control; i++) {
882
+ if (control instanceof FormGroup) {
883
+ control = control.controls[pathArray[i]] || null;
884
+ }
885
+ else if (control instanceof FormArray) {
886
+ const index = parseInt(pathArray[i], 10);
887
+ control = control.at(index) || null;
888
+ }
889
+ else {
890
+ return null;
891
+ }
892
+ }
893
+ return control;
894
+ }
895
+ /**
896
+ * Override to aggregate validity from child controls
897
+ */
898
+ async updateValueAndValidity(options = {}) {
899
+ const { emitEvent = true } = options;
900
+ if (this._status === 'DISABLED') {
901
+ return;
902
+ }
903
+ // First run own validators
904
+ this._errors = this.runValidators();
905
+ // Then check all child controls
906
+ let hasInvalidChild = false;
907
+ const childErrors = {};
908
+ for (const key of Object.keys(this._controls)) {
909
+ const control = this._controls[key];
910
+ if (control.invalid) {
911
+ hasInvalidChild = true;
912
+ if (control.errors) {
913
+ childErrors[key] = control.errors;
914
+ }
915
+ }
916
+ }
917
+ // Aggregate errors from children
918
+ if (hasInvalidChild) {
919
+ this._errors = this._errors || {};
920
+ Object.assign(this._errors, childErrors);
921
+ this._status = 'INVALID';
922
+ }
923
+ else if (this._errors) {
924
+ this._status = 'INVALID';
925
+ }
926
+ else {
927
+ this._status = 'VALID';
928
+ }
929
+ if (emitEvent) {
930
+ this.notifySubscribers();
931
+ if (this._parent) {
932
+ await this._parent.updateValueAndValidity({ emitEvent: true });
933
+ }
934
+ }
935
+ }
936
+ getRawValue() {
937
+ const value = {};
938
+ Object.keys(this._controls).forEach((key) => {
939
+ value[key] = this._controls[key].value;
940
+ });
941
+ return value;
942
+ }
943
+ }
944
+
945
+ class Validators {
946
+ static required(control) {
947
+ const value = control.value;
948
+ if (value === null || value === undefined || value === '' ||
949
+ (Array.isArray(value) && value.length === 0)) {
950
+ return { required: true };
951
+ }
952
+ return null;
953
+ }
954
+ static email(control) {
955
+ if (!control.value)
956
+ return null;
957
+ const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
958
+ return emailRegex.test(control.value) ? null : { email: true };
959
+ }
960
+ static min(min) {
961
+ return (control) => {
962
+ if (!control.value || isNaN(control.value))
963
+ return null;
964
+ return control.value < min ? { min: { min, actual: control.value } } : null;
965
+ };
966
+ }
967
+ static max(max) {
968
+ return (control) => {
969
+ if (!control.value || isNaN(control.value))
970
+ return null;
971
+ return control.value > max ? { max: { max, actual: control.value } } : null;
972
+ };
973
+ }
974
+ static minLength(minLength) {
975
+ return (control) => {
976
+ if (!control.value || typeof control.value !== 'string')
977
+ return null;
978
+ return control.value.length < minLength
979
+ ? { minLength: { minLength: minLength, actualLength: control.value.length } }
980
+ : null;
981
+ };
982
+ }
983
+ static maxLength(maxLength) {
984
+ return (control) => {
985
+ if (!control.value || typeof control.value !== 'string')
986
+ return null;
987
+ return control.value.length > maxLength
988
+ ? { maxLength: { maxLength: maxLength, actualLength: control.value.length } }
989
+ : null;
990
+ };
991
+ }
992
+ static pattern(pattern) {
993
+ return (control) => {
994
+ if (!control.value)
995
+ return null;
996
+ const regex = typeof pattern === 'string' ? new RegExp(`^(?:${pattern})$`) : pattern;
997
+ return regex.test(control.value) ? null : { pattern: { requiredPattern: pattern, actualValue: control.value } };
998
+ };
999
+ }
1000
+ static hasUppercase(control) {
1001
+ if (!control.value)
1002
+ return null;
1003
+ return /[A-Z]/.test(control.value) ? null : { hasUppercase: true };
1004
+ }
1005
+ static hasNumber(control) {
1006
+ if (!control.value)
1007
+ return null;
1008
+ return /[0-9]/.test(control.value) ? null : { hasNumber: true };
1009
+ }
1010
+ static hasSpecialChar(control) {
1011
+ if (!control.value)
1012
+ return null;
1013
+ return /[!@#$%^&*(),.?":{}|<>]/.test(control.value) ? null : { hasSpecialChar: true };
1014
+ }
1015
+ static integer(control) {
1016
+ if (control.value === null || control.value === undefined || control.value === '')
1017
+ return null;
1018
+ const num = Number(control.value);
1019
+ return !isNaN(num) && Number.isInteger(num) ? null : { integer: true };
1020
+ }
1021
+ static number(control) {
1022
+ if (control.value === null || control.value === undefined || control.value === '')
1023
+ return null;
1024
+ const num = Number(control.value);
1025
+ return !isNaN(num) ? null : { number: true };
1026
+ }
1027
+ }
1028
+
1029
+ class FormBuilder {
1030
+ control(value, validatorsOrOptions, asyncValidators) {
1031
+ return new FormControl(value, validatorsOrOptions, asyncValidators);
1032
+ }
1033
+ group(controls, options) {
1034
+ const formControls = {};
1035
+ Object.keys(controls).forEach(key => {
1036
+ const control = controls[key];
1037
+ if (control instanceof AbstractControl) {
1038
+ formControls[key] = control;
1039
+ }
1040
+ else if (Array.isArray(control)) {
1041
+ // [value, validators, asyncValidators]
1042
+ formControls[key] = new FormControl(control[0], control[1], control[2]);
1043
+ }
1044
+ else {
1045
+ formControls[key] = new FormControl(control);
1046
+ }
1047
+ });
1048
+ return new FormGroup(formControls, options?.validators, options?.asyncValidators);
1049
+ }
1050
+ array(controls, options) {
1051
+ const formControls = controls.map(control => {
1052
+ if (control instanceof AbstractControl) {
1053
+ return control;
1054
+ }
1055
+ else if (Array.isArray(control)) {
1056
+ return new FormControl(control[0], control[1], control[2]);
1057
+ }
1058
+ else {
1059
+ return new FormControl(control);
1060
+ }
1061
+ });
1062
+ return new FormArray(formControls, options?.validators, options?.asyncValidators);
1063
+ }
1064
+ }
1065
+
1066
+ const FORM_INPUT_TYPE = [
1067
+ 'text',
1068
+ 'password',
1069
+ 'email',
1070
+ 'number',
1071
+ 'phone',
1072
+ 'url',
1073
+ 'date',
1074
+ 'datetime',
1075
+ 'time',
1076
+ 'color',
1077
+ 'checkbox',
1078
+ 'radio',
1079
+ 'file',
1080
+ 'range',
1081
+ 'textarea',
1082
+ 'select',
1083
+ 'switch',
1084
+ 'slider',
1085
+ 'rate',
1086
+ 'tags',
1087
+ 'daterange',
1088
+ 'tree-select',
1089
+ 'transfer',
1090
+ 'cascader',
1091
+ 'auto-complete',
1092
+ 'editor',
1093
+ 'location',
1094
+ 'input',
1095
+ 'captcha',
1096
+ 'address',
1097
+ 'table',
1098
+ ];
1099
+
1100
+ class Utils {
1101
+ static isEmpty(value) {
1102
+ return value === null || value === undefined || value === '';
1103
+ }
1104
+ static isNotEmpty(value) {
1105
+ return value !== null && value !== undefined && value !== '';
1106
+ }
1107
+ static isFieldGroup(field) {
1108
+ return 'elements' in field && Array.isArray(field.elements);
1109
+ }
1110
+ static isInputField(type) {
1111
+ return FORM_INPUT_TYPE.includes(type);
1112
+ }
1113
+ static builderFromControl(field) {
1114
+ try {
1115
+ const validators = Utils.buildValidators(field);
1116
+ const initialValue = field.defaultValue ?? field.targetKeys ?? field.defaultChecked ?? '';
1117
+ const control = new FormControl(initialValue, validators);
1118
+ field.control = control;
1119
+ return { field, control };
1120
+ }
1121
+ catch (error) {
1122
+ throw new Error(`Error building control for field ${field?.name}: ${error}`);
1123
+ }
1124
+ }
1125
+ static buildValidators(field) {
1126
+ const validators = [];
1127
+ if (field.required) {
1128
+ validators.push(Validators.required);
1129
+ }
1130
+ if ('minLength' in field && !Utils.isEmpty(field.minLength)) {
1131
+ validators.push(Validators.minLength(field.minLength));
1132
+ }
1133
+ if ('maxLength' in field && !Utils.isEmpty(field.maxLength)) {
1134
+ validators.push(Validators.maxLength(field.maxLength));
1135
+ }
1136
+ if ('pattern' in field && !Utils.isEmpty(field.pattern)) {
1137
+ validators.push(Validators.pattern(field.pattern));
1138
+ }
1139
+ if (field.type === 'email') {
1140
+ validators.push(Validators.email);
1141
+ }
1142
+ if ('min' in field && !Utils.isEmpty(field.min)) {
1143
+ validators.push(Validators.min(Number(field.min)));
1144
+ }
1145
+ if ('max' in field && !Utils.isEmpty(field.max)) {
1146
+ validators.push(Validators.max(Number(field.max)));
1147
+ }
1148
+ if (field.hasUppercase) {
1149
+ validators.push(Validators.hasUppercase);
1150
+ }
1151
+ if (field.hasNumber) {
1152
+ validators.push(Validators.hasNumber);
1153
+ }
1154
+ if (field.hasSpecialChar) {
1155
+ validators.push(Validators.hasSpecialChar);
1156
+ }
1157
+ // ── Structured validators array (new format) ──────────────────────────
1158
+ if (Array.isArray(field.validators) && field.validators.length > 0) {
1159
+ for (const cfg of field.validators) {
1160
+ switch (cfg.type) {
1161
+ case 'required':
1162
+ validators.push(Validators.required);
1163
+ break;
1164
+ case 'minLength':
1165
+ if (!Utils.isEmpty(cfg.value))
1166
+ validators.push(Validators.minLength(Number(cfg.value)));
1167
+ break;
1168
+ case 'maxLength':
1169
+ if (!Utils.isEmpty(cfg.value))
1170
+ validators.push(Validators.maxLength(Number(cfg.value)));
1171
+ break;
1172
+ case 'pattern':
1173
+ if (!Utils.isEmpty(cfg.value))
1174
+ validators.push(Validators.pattern(cfg.value));
1175
+ break;
1176
+ case 'min':
1177
+ if (!Utils.isEmpty(cfg.value))
1178
+ validators.push(Validators.min(Number(cfg.value)));
1179
+ break;
1180
+ case 'max':
1181
+ if (!Utils.isEmpty(cfg.value))
1182
+ validators.push(Validators.max(Number(cfg.value)));
1183
+ break;
1184
+ case 'hasUppercase':
1185
+ validators.push(Validators.hasUppercase);
1186
+ break;
1187
+ case 'hasNumber':
1188
+ validators.push(Validators.hasNumber);
1189
+ break;
1190
+ case 'hasSpecialChar':
1191
+ validators.push(Validators.hasSpecialChar);
1192
+ break;
1193
+ case 'integer':
1194
+ validators.push(Validators.integer);
1195
+ break;
1196
+ case 'number':
1197
+ validators.push(Validators.number);
1198
+ break;
1199
+ }
1200
+ }
1201
+ }
1202
+ // ─────────────────────────────────────────────────────────────────────
1203
+ return validators;
1204
+ }
1205
+ static translate(message, params) {
1206
+ if (!message)
1207
+ return '';
1208
+ if (!params)
1209
+ return message;
1210
+ return message.replace(/\{\{(\w+)\}\}/g, (_, key) => {
1211
+ return params[key] !== undefined ? params[key] : `{{${key}}}`;
1212
+ });
1213
+ }
1214
+ static messageValidator() {
1215
+ // Direct check of resources — currently no validation bundle exists
1216
+ const bundle = translate('validation', {}, {});
1217
+ return {
1218
+ required: bundle.required || 'This field is required',
1219
+ email: bundle.email || 'Invalid email',
1220
+ min: bundle.min || 'Value is too small',
1221
+ max: bundle.max || 'Value is too large',
1222
+ minLength: bundle.minLength || 'Value is too short',
1223
+ maxLength: bundle.maxLength || 'Value is too long',
1224
+ pattern: bundle.pattern || 'Invalid pattern',
1225
+ hasUppercase: bundle.hasUppercase || 'Uppercase letter required',
1226
+ hasNumber: bundle.hasNumber || 'Number required',
1227
+ hasSpecialChar: bundle.hasSpecialChar || 'Special character required',
1228
+ type: bundle.type || 'Invalid type',
1229
+ integer: bundle.integer || 'Value must be an integer',
1230
+ number: bundle.number || 'Value must be a number',
1231
+ custom: bundle.custom || 'Invalid value',
1232
+ };
1233
+ }
1234
+ }
1235
+
1236
+ class FormMapping extends FormGroup {
1237
+ builder;
1238
+ mapping = new Map();
1239
+ mappingById = new Map();
1240
+ mappingObject = {};
1241
+ fb = new FormBuilder();
1242
+ get schema() {
1243
+ return this.builder.schema;
1244
+ }
1245
+ is_custom_submit = false;
1246
+ constructor(builder) {
1247
+ super({});
1248
+ this.builder = builder;
1249
+ this.mapping = this.toMapping();
1250
+ this.mappingObject = this.toMappingObject();
1251
+ this.toFormMapping(this.mappingObject, this);
1252
+ }
1253
+ toMapping() {
1254
+ const mappingRecursive = (fields) => {
1255
+ const paths = new Map();
1256
+ if (!fields || !Array.isArray(fields))
1257
+ return paths;
1258
+ for (const field of fields) {
1259
+ if (!field)
1260
+ continue;
1261
+ if (field.type === 'button' && field.htmlType === 'submit') {
1262
+ this.is_custom_submit = true;
1263
+ // Don't continue here, we still want to map button for conditions
1264
+ }
1265
+ // Map all elements with a name or id regardless of whether they have a control
1266
+ if (field.name) {
1267
+ paths.set(field.name, field);
1268
+ }
1269
+ if (field.id) {
1270
+ this.mappingById.set(field.id, field);
1271
+ // If it doesn't have a name, still add it to main mapping by id so it can be found by key
1272
+ if (!field.name) {
1273
+ paths.set(field.id, field);
1274
+ }
1275
+ }
1276
+ if (Utils.isFieldGroup(field)) {
1277
+ const child_paths = mappingRecursive(field.elements);
1278
+ // Safely merge Maps
1279
+ child_paths.forEach((v, k) => paths.set(k, v));
1280
+ }
1281
+ }
1282
+ return paths;
1283
+ };
1284
+ // Support both 'elements' and 'fields' for compatibility
1285
+ const elements = this.schema?.elements || this.schema?.fields;
1286
+ if (!elements || !Array.isArray(elements)) {
1287
+ return new Map();
1288
+ }
1289
+ return mappingRecursive(elements);
1290
+ }
1291
+ toMappingObject() {
1292
+ const applyField = (root, field) => {
1293
+ const path = field.name;
1294
+ const segments = path.split('.');
1295
+ let current = root;
1296
+ for (let i = 0; i < segments.length; i++) {
1297
+ let seg = segments[i];
1298
+ const isArray = seg.endsWith('[]');
1299
+ const key = isArray ? seg.replace('[]', '') : seg;
1300
+ const isLast = i === segments.length - 1;
1301
+ if (isArray) {
1302
+ // Nếu chưa tồn tại hoặc không phải mảng → khởi tạo mảng với 1 object rỗng
1303
+ const existing = current[key];
1304
+ if (!Array.isArray(existing)) {
1305
+ current[key] = [{}];
1306
+ }
1307
+ // Đảm bảo phần tử đầu tiên là object (FormMappingOptions)
1308
+ const arr = current[key];
1309
+ if (!arr[0] || typeof arr[0] !== 'object' || Array.isArray(arr[0])) {
1310
+ arr[0] = {};
1311
+ }
1312
+ // Đi vào phần tử đầu tiên của mảng
1313
+ current = arr[0];
1314
+ continue;
1315
+ }
1316
+ // Nếu là cuối → gán null
1317
+ if (isLast) {
1318
+ if (!current[key]) {
1319
+ current[key] = field.name;
1320
+ }
1321
+ break;
1322
+ }
1323
+ // Chưa phải cuối → object
1324
+ if (!current[key]) {
1325
+ current[key] = {};
1326
+ }
1327
+ current = current[key];
1328
+ }
1329
+ };
1330
+ const root = {};
1331
+ for (const [_key, field] of Array.from(this.mapping.entries())) {
1332
+ applyField(root, field);
1333
+ }
1334
+ return root;
1335
+ }
1336
+ toFormMapping(option, root) {
1337
+ for (const [key, value] of Object.entries(option)) {
1338
+ if (Array.isArray(value)) {
1339
+ const formArray = this.fb.array([]);
1340
+ for (const item of value) {
1341
+ if (item instanceof Object && !(item instanceof Array)) {
1342
+ const formGroup = this.fb.group({});
1343
+ this.toFormMapping(item, formGroup);
1344
+ formArray.push(formGroup);
1345
+ }
1346
+ else {
1347
+ // Trường hợp mảng giá trị đơn giản
1348
+ const field = this.mapping.get(item);
1349
+ if (!field) {
1350
+ console.warn(`Field with name ${item} not found in mapping.`);
1351
+ continue;
1352
+ }
1353
+ const { control } = Utils.builderFromControl(field);
1354
+ this.validateOnUseApi(field);
1355
+ control.subscribe((value) => {
1356
+ this.builder.callEvent('onFieldChange', field.name, value);
1357
+ });
1358
+ formArray.push(control);
1359
+ }
1360
+ }
1361
+ if (root instanceof FormGroup) {
1362
+ root.addControl(key, formArray);
1363
+ }
1364
+ else {
1365
+ root.push(formArray);
1366
+ }
1367
+ }
1368
+ else if (value instanceof Object) {
1369
+ const formGroup = root;
1370
+ const childGroup = new FormGroup({});
1371
+ this.toFormMapping(value, childGroup);
1372
+ formGroup.addControl(key, childGroup);
1373
+ }
1374
+ else {
1375
+ // Giá trị là FormField
1376
+ const field = this.mapping.get(value);
1377
+ if (!field) {
1378
+ console.warn(`Field with name ${value} not found in mapping.`);
1379
+ continue;
1380
+ }
1381
+ const formGroup = root;
1382
+ this.validateOnUseApi(field);
1383
+ const { control } = Utils.builderFromControl(field);
1384
+ control.subscribe((value) => {
1385
+ this.builder.callEvent('onFieldChange', field.name, value);
1386
+ });
1387
+ formGroup.addControl(key, control);
1388
+ }
1389
+ }
1390
+ }
1391
+ validateOnUseApi(field) {
1392
+ }
1393
+ /**
1394
+ * Mark all form controls as touched to trigger validation message display
1395
+ */
1396
+ markAllAsTouched() {
1397
+ // Mark all controls in the mapping as touched
1398
+ for (const [_key, field] of Array.from(this.mapping.entries())) {
1399
+ if (field.control) {
1400
+ field.control.markAsTouched();
1401
+ }
1402
+ }
1403
+ }
1404
+ onSubmit() { }
1405
+ onReset() { }
1406
+ }
1407
+
1408
+ class SchemaValidator {
1409
+ /**
1410
+ * Validates a schema object and returns an array of error messages.
1411
+ * If the array is empty, the schema is valid.
1412
+ */
1413
+ static validate(schema) {
1414
+ const errors = [];
1415
+ if (!schema) {
1416
+ errors.push('Schema is undefined or null.');
1417
+ return errors;
1418
+ }
1419
+ const elements = schema.elements || schema.fields;
1420
+ if (elements && Array.isArray(elements)) {
1421
+ if (elements.length === 0) {
1422
+ errors.push('Schema elements array is empty.');
1423
+ }
1424
+ elements.forEach((element, index) => {
1425
+ this.validateField(element, `elements[${index}]`, errors);
1426
+ });
1427
+ }
1428
+ else {
1429
+ errors.push('Schema must contain an "elements" or "fields" array.');
1430
+ }
1431
+ return errors;
1432
+ }
1433
+ static validateField(field, path, errors) {
1434
+ if (!field) {
1435
+ errors.push(`Field at ${path} is undefined or null.`);
1436
+ return;
1437
+ }
1438
+ if (!field.type) {
1439
+ errors.push(`Field at ${path} is missing required property "type".`);
1440
+ }
1441
+ // Panels, grids, and containers usually have nested elements
1442
+ if (['panel', 'grid', 'container'].includes(field.type)) {
1443
+ if ('elements' in field && Array.isArray(field.elements)) {
1444
+ field.elements.forEach((child, childIndex) => {
1445
+ this.validateField(child, `${path}.elements[${childIndex}]`, errors);
1446
+ });
1447
+ }
1448
+ }
1449
+ }
1450
+ }
1451
+
1452
+ class SchemaBuilder {
1453
+ schema;
1454
+ form;
1455
+ context = {};
1456
+ get fields() {
1457
+ return this.schema?.elements || this.schema?.fields || [];
1458
+ }
1459
+ events = {};
1460
+ plugins = [];
1461
+ _subscribers = new Set();
1462
+ on(name, fn) {
1463
+ this.events[name] = fn;
1464
+ return this;
1465
+ }
1466
+ conditions;
1467
+ constructor(schema) {
1468
+ this.schema = schema;
1469
+ this.form = new FormMapping(this);
1470
+ const schemaErrors = SchemaValidator.validate(this.schema);
1471
+ if (schemaErrors.length > 0) {
1472
+ console.error('SchemaBuilder Error: The provided schema is invalid.', schemaErrors);
1473
+ }
1474
+ this.conditions = new ConditionBuilder(this);
1475
+ this.callEvent('onInit');
1476
+ }
1477
+ callEvent(name, ...args) {
1478
+ const event = this.events[name];
1479
+ if (event) {
1480
+ const ctx = {
1481
+ builder: this,
1482
+ form: this.form,
1483
+ schema: this.schema,
1484
+ };
1485
+ event(ctx, ...args);
1486
+ }
1487
+ }
1488
+ async use(plugin, options) {
1489
+ this.plugins.push(plugin);
1490
+ await plugin(this, options);
1491
+ return this;
1492
+ }
1493
+ subscribe(callback) {
1494
+ this._subscribers.add(callback);
1495
+ return () => this._subscribers.delete(callback);
1496
+ }
1497
+ notifySubscribers() {
1498
+ this._subscribers.forEach((callback) => callback(this.form.value));
1499
+ }
1500
+ }
1501
+
1502
+ export { SchemaBuilder as S, Utils as U };