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