@xlabs-store/core 0.0.1 → 0.0.2

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 (1095) hide show
  1. package/LICENSE +21 -21
  2. package/components/index.d.ts +0 -0
  3. package/components/index.js +1 -1
  4. package/components/p--BbMiBIf.js +1 -0
  5. package/components/p-4BROAJ-M.js +1 -0
  6. package/components/p-9T3IQVUX.js +1 -0
  7. package/components/p-B1Y8S28h.js +1 -0
  8. package/components/p-B5VsEsBC.js +1 -0
  9. package/components/p-B7SdFSQT.js +1 -0
  10. package/components/p-B97Hj_bs.js +1 -0
  11. package/components/p-BBTo0Tfc.js +1 -0
  12. package/components/p-BCuFZ3xx.js +1 -0
  13. package/components/p-BFPoQ179.js +1 -0
  14. package/components/p-BGNOiTqa.js +1 -0
  15. package/components/p-BLqwG7xa.js +1 -0
  16. package/components/p-BPaLHj9P.js +1 -0
  17. package/components/p-BQtB82ld.js +1 -0
  18. package/components/p-BSLE4EQn.js +1 -0
  19. package/components/{p-DcRlYBIl.js → p-BUXxKr3t.js} +1 -1
  20. package/components/p-BYCebYZT.js +1 -0
  21. package/components/p-BZdNMS4e.js +1 -0
  22. package/components/p-BgCjF74f.js +1 -0
  23. package/components/p-BhWqNJhk.js +1 -0
  24. package/components/p-BlvrLhyv.js +1 -0
  25. package/components/p-BnnNgLpE.js +1 -0
  26. package/components/p-BoPZ9Se8.js +1 -0
  27. package/components/p-BogEYBiK.js +1 -0
  28. package/components/p-Brr9Q7gj.js +1 -0
  29. package/components/p-BvOnPBRo.js +1 -0
  30. package/components/p-BzX-LA7W.js +1 -0
  31. package/components/p-C-KgrbKX.js +1 -0
  32. package/components/{p-CfhgoXyB.js → p-C-rau5Ex.js} +1 -1
  33. package/components/{p-B4R9Mtmk.js → p-C1PUbETy.js} +1 -1
  34. package/components/p-C1_JmoB8.js +1 -0
  35. package/components/{p-noTpj1Kh.js → p-C3Kx_-Wc.js} +1 -1
  36. package/components/p-CIOnWzKr.js +1 -0
  37. package/components/p-CXhCHTJf.js +1 -0
  38. package/components/p-CaJOfbTg.js +1 -0
  39. package/components/p-Cf_74fjT.js +1 -0
  40. package/components/{p-DVz50Dd3.js → p-CgLn4Y4c.js} +1 -1
  41. package/components/p-CgaLhv3u.js +1 -0
  42. package/components/{p-CGYOWZnh.js → p-CijqjTOk.js} +1 -1
  43. package/components/p-CkyEMR2k.js +1 -0
  44. package/components/{p-Ce32Mo_Q.js → p-CmfyRJYt.js} +1 -1
  45. package/components/p-CnPsn8zN.js +1 -0
  46. package/components/p-Cp3SPBy3.js +1 -0
  47. package/components/p-CsYh9t-z.js +1 -0
  48. package/components/{p-BM-ap7lt.js → p-CtFbsd8j.js} +1 -1
  49. package/components/p-Cuf33Rgj.js +1 -0
  50. package/components/p-CwNmnRmr.js +1 -0
  51. package/components/p-CxMQkHjk.js +1 -0
  52. package/components/p-CzErFq8K.js +1 -0
  53. package/components/p-CzjK_fJj.js +1 -0
  54. package/components/p-D4Joi-Km.js +1 -0
  55. package/components/p-D4am7l6X.js +1 -0
  56. package/components/p-D7kqIlVo.js +1 -0
  57. package/components/p-DFzUUEiS.js +1 -0
  58. package/components/p-DINdyuGa.js +1 -0
  59. package/components/p-DIZuWptV.js +1 -0
  60. package/components/p-DPo53FC8.js +1 -0
  61. package/components/p-DPt8hDp3.js +1 -0
  62. package/components/p-DSC5zsOB.js +1 -0
  63. package/components/{p-Co3Y9VjQ.js → p-DSa1uqPO.js} +1 -1
  64. package/components/p-DT7-VE44.js +1 -0
  65. package/components/p-DTPUsC3Q.js +1 -0
  66. package/components/p-DUjF0MeP.js +1 -0
  67. package/components/p-DXMO8s1V.js +1 -0
  68. package/components/p-DZtvVtvb.js +1 -0
  69. package/components/p-D_184xNl.js +1 -0
  70. package/components/p-D_hKBumm.js +1 -0
  71. package/components/p-Da7AZprv.js +1 -0
  72. package/components/p-DcqkhKqy.js +1 -0
  73. package/components/p-Dkga4pDL.js +1 -0
  74. package/components/p-Dn1c0e9W.js +1 -0
  75. package/components/p-DobuHW4v.js +1 -0
  76. package/components/{p-Cd919NAP.js → p-DtIk7IPf.js} +1 -1
  77. package/components/p-DwySgZYx.js +1 -0
  78. package/components/p-DynL8Hj8.js +1 -0
  79. package/components/p-EYMvnfpO.js +1 -0
  80. package/components/p-K2tV3sog.js +1 -0
  81. package/components/p-LX68sH4m.js +1 -0
  82. package/components/{p-CKVSyuIH.js → p-MRcLOacJ.js} +1 -1
  83. package/components/p-N4_1eZ9k.js +1 -0
  84. package/components/p-PNU1f8B9.js +1 -0
  85. package/components/p-SFcKtdEL.js +1 -0
  86. package/components/p-VezrLuwj.js +1 -0
  87. package/components/p-eF_oZrS1.js +1 -0
  88. package/components/p-ez-wfqCC.js +1 -0
  89. package/components/p-gQbQhfDs.js +1 -0
  90. package/components/p-ibXnjCdF.js +1 -0
  91. package/components/p-jTIj1nFL.js +1 -0
  92. package/components/p-k2uLDFNn.js +1 -0
  93. package/components/p-pK9HRi91.js +1 -0
  94. package/components/p-sijpPVRP.js +1 -0
  95. package/components/p-tMIvQ4L0.js +1 -0
  96. package/components/p-xf66Fag-.js +1 -0
  97. package/components/p-xzKm-BQN.js +1 -0
  98. package/components/p-yktKa2eA.js +1 -0
  99. package/components/x-address.js +1 -1
  100. package/components/x-affix.d.ts +0 -0
  101. package/components/x-affix.js +1 -1
  102. package/components/x-alert.d.ts +0 -0
  103. package/components/x-alert.js +1 -1
  104. package/components/x-anchor-link.d.ts +0 -0
  105. package/components/x-anchor-link.js +1 -1
  106. package/components/x-anchor.d.ts +0 -0
  107. package/components/x-anchor.js +1 -1
  108. package/components/x-app.d.ts +0 -0
  109. package/components/x-app.js +1 -1
  110. package/components/x-auto-complete-dropdown-content.d.ts +0 -0
  111. package/components/x-auto-complete-dropdown-content.js +1 -1
  112. package/components/x-auto-complete.d.ts +0 -0
  113. package/components/x-auto-complete.js +1 -1
  114. package/components/x-avatar.d.ts +0 -0
  115. package/components/x-avatar.js +1 -1
  116. package/components/x-back-top.js +1 -1
  117. package/components/x-badge.d.ts +0 -0
  118. package/components/x-badge.js +1 -1
  119. package/components/x-breadcrumb-item.d.ts +0 -0
  120. package/components/x-breadcrumb-item.js +1 -1
  121. package/components/x-breadcrumb.d.ts +0 -0
  122. package/components/x-breadcrumb.js +1 -1
  123. package/components/x-button.d.ts +0 -0
  124. package/components/x-button.js +1 -1
  125. package/components/x-captcha.js +1 -1
  126. package/components/x-card.d.ts +0 -0
  127. package/components/x-card.js +1 -1
  128. package/components/x-carousel.d.ts +0 -0
  129. package/components/x-carousel.js +1 -1
  130. package/components/x-cascader-dropdown-content.d.ts +0 -0
  131. package/components/x-cascader-dropdown-content.js +1 -1
  132. package/components/x-cascader.d.ts +0 -0
  133. package/components/x-cascader.js +1 -1
  134. package/components/x-checkbox.d.ts +0 -0
  135. package/components/x-checkbox.js +1 -1
  136. package/components/x-code-editor.d.ts +11 -0
  137. package/components/x-code-editor.js +1 -0
  138. package/components/x-col.d.ts +0 -0
  139. package/components/x-col.js +1 -1
  140. package/components/x-collapse-panel.d.ts +0 -0
  141. package/components/x-collapse-panel.js +1 -1
  142. package/components/x-collapse.d.ts +0 -0
  143. package/components/x-collapse.js +1 -1
  144. package/components/x-color-picker-panel.d.ts +0 -0
  145. package/components/x-color-picker-panel.js +1 -1
  146. package/components/x-color-picker.d.ts +0 -0
  147. package/components/x-color-picker.js +1 -1
  148. package/components/x-comment.d.ts +0 -0
  149. package/components/x-comment.js +1 -1
  150. package/components/x-content.d.ts +0 -0
  151. package/components/x-content.js +1 -1
  152. package/components/x-date-picker-dropdown-content.d.ts +0 -0
  153. package/components/x-date-picker-dropdown-content.js +1 -1
  154. package/components/x-date-picker.d.ts +0 -0
  155. package/components/x-date-picker.js +1 -1
  156. package/components/x-descriptions-item.d.ts +0 -0
  157. package/components/x-descriptions-item.js +1 -1
  158. package/components/x-descriptions.d.ts +0 -0
  159. package/components/x-descriptions.js +1 -1
  160. package/components/x-divider.d.ts +0 -0
  161. package/components/x-divider.js +1 -1
  162. package/components/x-drawer-content.d.ts +0 -0
  163. package/components/x-drawer-content.js +1 -1
  164. package/components/x-drawer.d.ts +0 -0
  165. package/components/x-drawer.js +1 -1
  166. package/components/x-dropdown-content.d.ts +0 -0
  167. package/components/x-dropdown-content.js +1 -1
  168. package/components/x-dropdown.d.ts +0 -0
  169. package/components/x-dropdown.js +1 -1
  170. package/components/x-editor.d.ts +0 -0
  171. package/components/x-editor.js +1 -1
  172. package/components/x-empty.d.ts +0 -0
  173. package/components/x-empty.js +1 -1
  174. package/components/x-finder.d.ts +0 -0
  175. package/components/x-finder.js +1 -1
  176. package/components/x-flex.d.ts +0 -0
  177. package/components/x-flex.js +1 -1
  178. package/components/x-float-button.d.ts +0 -0
  179. package/components/x-float-button.js +1 -1
  180. package/components/x-footer.d.ts +0 -0
  181. package/components/x-footer.js +1 -1
  182. package/components/x-form-builder.d.ts +0 -0
  183. package/components/x-form-builder.js +1 -1
  184. package/components/x-form-item.d.ts +0 -0
  185. package/components/x-form-item.js +1 -1
  186. package/components/x-form.d.ts +0 -0
  187. package/components/x-form.js +1 -1
  188. package/components/x-header.d.ts +0 -0
  189. package/components/x-header.js +1 -1
  190. package/components/x-icon-picker-dropdown-content.d.ts +11 -0
  191. package/components/x-icon-picker-dropdown-content.js +1 -0
  192. package/components/x-icon.d.ts +0 -0
  193. package/components/x-icon.js +1 -1
  194. package/components/x-image.d.ts +0 -0
  195. package/components/x-image.js +1 -1
  196. package/components/x-infinite-scroll.d.ts +0 -0
  197. package/components/x-infinite-scroll.js +1 -1
  198. package/components/x-input-icon.d.ts +11 -0
  199. package/components/x-input-icon.js +1 -0
  200. package/components/x-input-number.d.ts +0 -0
  201. package/components/x-input-number.js +1 -1
  202. package/components/x-input.d.ts +0 -0
  203. package/components/x-input.js +1 -1
  204. package/components/x-layout-admin.d.ts +11 -0
  205. package/components/x-layout-admin.js +1 -0
  206. package/components/x-layout-detail.d.ts +11 -0
  207. package/components/x-layout-detail.js +1 -0
  208. package/components/x-layout-list.d.ts +11 -0
  209. package/components/x-layout-list.js +1 -0
  210. package/components/x-layout.d.ts +0 -0
  211. package/components/x-layout.js +1 -1
  212. package/components/x-list-item.js +1 -1
  213. package/components/x-list.d.ts +0 -0
  214. package/components/x-list.js +1 -1
  215. package/components/x-login.d.ts +11 -0
  216. package/components/x-login.js +1 -0
  217. package/components/x-mentions.d.ts +0 -0
  218. package/components/x-mentions.js +1 -1
  219. package/components/x-menu-divider.d.ts +0 -0
  220. package/components/x-menu-divider.js +1 -1
  221. package/components/x-menu-item-group.d.ts +0 -0
  222. package/components/x-menu-item-group.js +1 -1
  223. package/components/x-menu-item.d.ts +0 -0
  224. package/components/x-menu-item.js +1 -1
  225. package/components/x-menu-submenu.d.ts +0 -0
  226. package/components/x-menu-submenu.js +1 -1
  227. package/components/x-menu.d.ts +0 -0
  228. package/components/x-menu.js +1 -1
  229. package/components/x-message.d.ts +0 -0
  230. package/components/x-message.js +1 -1
  231. package/components/x-modal-content.d.ts +0 -0
  232. package/components/x-modal-content.js +1 -1
  233. package/components/x-modal.d.ts +0 -0
  234. package/components/x-modal.js +1 -1
  235. package/components/x-notification.d.ts +0 -0
  236. package/components/x-notification.js +1 -1
  237. package/components/x-page-header.js +1 -1
  238. package/components/x-pagination.d.ts +0 -0
  239. package/components/x-pagination.js +1 -1
  240. package/components/x-popconfirm-content.d.ts +0 -0
  241. package/components/x-popconfirm-content.js +1 -1
  242. package/components/x-popconfirm.d.ts +0 -0
  243. package/components/x-popconfirm.js +1 -1
  244. package/components/x-popover-content.d.ts +0 -0
  245. package/components/x-popover-content.js +1 -1
  246. package/components/x-popover.d.ts +0 -0
  247. package/components/x-popover.js +1 -1
  248. package/components/x-progress.d.ts +0 -0
  249. package/components/x-progress.js +1 -1
  250. package/components/x-qr-code.d.ts +0 -0
  251. package/components/x-qr-code.js +1 -1
  252. package/components/x-radio-group.d.ts +0 -0
  253. package/components/x-radio-group.js +1 -1
  254. package/components/x-radio.d.ts +0 -0
  255. package/components/x-radio.js +1 -1
  256. package/components/x-range-picker-dropdown-content.d.ts +0 -0
  257. package/components/x-range-picker-dropdown-content.js +1 -1
  258. package/components/x-range-picker.d.ts +0 -0
  259. package/components/x-range-picker.js +1 -1
  260. package/components/x-rate.d.ts +0 -0
  261. package/components/x-rate.js +1 -1
  262. package/components/x-result.d.ts +0 -0
  263. package/components/x-result.js +1 -1
  264. package/components/x-row.d.ts +0 -0
  265. package/components/x-row.js +1 -1
  266. package/components/x-segmented.d.ts +0 -0
  267. package/components/x-segmented.js +1 -1
  268. package/components/x-select-dropdown-content.d.ts +0 -0
  269. package/components/x-select-dropdown-content.js +1 -1
  270. package/components/x-select-option.d.ts +0 -0
  271. package/components/x-select-option.js +1 -1
  272. package/components/x-select.d.ts +0 -0
  273. package/components/x-select.js +1 -1
  274. package/components/x-sider.d.ts +0 -0
  275. package/components/x-sider.js +1 -1
  276. package/components/x-skeleton.d.ts +0 -0
  277. package/components/x-skeleton.js +1 -1
  278. package/components/x-slider.d.ts +0 -0
  279. package/components/x-slider.js +1 -1
  280. package/components/x-space.d.ts +0 -0
  281. package/components/x-space.js +1 -1
  282. package/components/x-spin.d.ts +0 -0
  283. package/components/x-spin.js +1 -1
  284. package/components/x-splitter-panel.d.ts +0 -0
  285. package/components/x-splitter-panel.js +1 -1
  286. package/components/x-splitter.d.ts +0 -0
  287. package/components/x-splitter.js +1 -1
  288. package/components/x-statistic.d.ts +0 -0
  289. package/components/x-statistic.js +1 -1
  290. package/components/x-step.d.ts +0 -0
  291. package/components/x-step.js +1 -1
  292. package/components/x-steps.d.ts +0 -0
  293. package/components/x-steps.js +1 -1
  294. package/components/x-switch.d.ts +0 -0
  295. package/components/x-switch.js +1 -1
  296. package/components/x-tab-pane.js +1 -1
  297. package/components/x-table-cell.d.ts +0 -0
  298. package/components/x-table-cell.js +1 -1
  299. package/components/x-table-row.d.ts +0 -0
  300. package/components/x-table-row.js +1 -1
  301. package/components/x-table.d.ts +0 -0
  302. package/components/x-table.js +1 -1
  303. package/components/x-tabs.d.ts +0 -0
  304. package/components/x-tabs.js +1 -1
  305. package/components/x-tag.d.ts +0 -0
  306. package/components/x-tag.js +1 -1
  307. package/components/x-textarea.d.ts +0 -0
  308. package/components/x-textarea.js +1 -1
  309. package/components/x-time-picker-dropdown-content.d.ts +0 -0
  310. package/components/x-time-picker-dropdown-content.js +1 -1
  311. package/components/x-time-picker.d.ts +0 -0
  312. package/components/x-time-picker.js +1 -1
  313. package/components/x-timeline-item.d.ts +0 -0
  314. package/components/x-timeline-item.js +1 -1
  315. package/components/x-timeline.d.ts +0 -0
  316. package/components/x-timeline.js +1 -1
  317. package/components/x-tooltip-content.d.ts +0 -0
  318. package/components/x-tooltip-content.js +1 -1
  319. package/components/x-tooltip.d.ts +0 -0
  320. package/components/x-tooltip.js +1 -1
  321. package/components/x-tour-panel.d.ts +0 -0
  322. package/components/x-tour-panel.js +1 -1
  323. package/components/x-tour.d.ts +0 -0
  324. package/components/x-tour.js +1 -1
  325. package/components/x-transfer.d.ts +0 -0
  326. package/components/x-transfer.js +1 -1
  327. package/components/x-tree-select-dropdown-content.js +1 -1
  328. package/components/x-tree-select.d.ts +0 -0
  329. package/components/x-tree-select.js +1 -1
  330. package/components/x-tree.d.ts +0 -0
  331. package/components/x-tree.js +1 -1
  332. package/components/x-typography.d.ts +0 -0
  333. package/components/x-typography.js +1 -1
  334. package/components/x-upload.d.ts +0 -0
  335. package/components/x-upload.js +1 -1
  336. package/components/x-virtual-scroll.d.ts +0 -0
  337. package/components/x-virtual-scroll.js +1 -1
  338. package/components/x-workflow-builder.d.ts +0 -0
  339. package/components/x-workflow-builder.js +1 -1
  340. package/components/x-workflow.d.ts +0 -0
  341. package/components/x-workflow.js +1 -1
  342. package/dist/cjs/{abstract-control-C4D0eNCC.js → abstract-control-JI4_szTV.js} +40 -14
  343. package/dist/cjs/{config-BP9bROYD.js → config-BYR5qIIZ.js} +3 -3
  344. package/dist/cjs/icons-DJ-kuboh.js +19291 -0
  345. package/dist/cjs/{index-C7sKs9A2.js → index-Cy2P_ln3.js} +39 -12
  346. package/dist/cjs/index.cjs.js +7 -5
  347. package/dist/cjs/loader.cjs.js +2 -2
  348. package/dist/cjs/{locale.service-Cz-aZQnr.js → locale.service-DT6E8Rzd.js} +17 -9
  349. package/dist/cjs/{modal-service-BtAF0mFq.js → modal-service-FQpCPk_L.js} +34 -14
  350. package/dist/cjs/{notification-service-m6I5U9aG.js → notification-service-v7LRmTyh.js} +12 -13
  351. package/dist/cjs/{portal-controller-CtYVbhXL.js → portal-controller-DJft2QkA.js} +11 -16
  352. package/dist/cjs/{schema-builder-CYnX7lKi.js → schema-builder-BKX4QdTc.js} +291 -89
  353. package/dist/cjs/{tree.service-fxLOCSpD.js → tree.service-u0qqS1Qh.js} +22 -22
  354. package/dist/cjs/x-address_51.cjs.entry.js +26874 -0
  355. package/dist/cjs/x-affix.cjs.entry.js +5 -5
  356. package/dist/cjs/{x-alert_11.cjs.entry.js → x-alert_9.cjs.entry.js} +267 -646
  357. package/dist/cjs/x-anchor-link.cjs.entry.js +3 -3
  358. package/dist/cjs/x-anchor.cjs.entry.js +11 -9
  359. package/dist/cjs/x-app.cjs.entry.js +19 -19
  360. package/dist/cjs/x-back-top.cjs.entry.js +4 -4
  361. package/dist/cjs/x-breadcrumb_2.cjs.entry.js +124 -0
  362. package/dist/cjs/x-carousel.cjs.entry.js +7 -7
  363. package/dist/cjs/x-code-editor.cjs.entry.js +2365 -0
  364. package/dist/cjs/x-col_11.cjs.entry.js +1204 -0
  365. package/dist/cjs/x-collapse-panel.cjs.entry.js +4 -4
  366. package/dist/cjs/x-collapse.cjs.entry.js +4 -4
  367. package/dist/cjs/x-comment.cjs.entry.js +5 -5
  368. package/dist/cjs/x-descriptions-item.cjs.entry.js +6 -6
  369. package/dist/cjs/{x-breadcrumb_5.cjs.entry.js → x-descriptions_3.cjs.entry.js} +36 -157
  370. package/dist/cjs/x-drawer-content.cjs.entry.js +8 -8
  371. package/dist/cjs/x-drawer.cjs.entry.js +9 -7
  372. package/dist/cjs/x-finder.cjs.entry.js +39 -32
  373. package/dist/cjs/x-icon-picker-dropdown-content.cjs.entry.js +158 -0
  374. package/dist/cjs/x-infinite-scroll.cjs.entry.js +4 -4
  375. package/dist/cjs/x-input-icon.cjs.entry.js +361 -0
  376. package/dist/cjs/x-layout-admin.cjs.entry.js +45 -0
  377. package/dist/cjs/x-layout-detail.cjs.entry.js +145 -0
  378. package/dist/cjs/x-layout-list.cjs.entry.js +259 -0
  379. package/dist/cjs/x-list-item.cjs.entry.js +3 -3
  380. package/dist/cjs/{x-menu-submenu.cjs.entry.js → x-list_2.cjs.entry.js} +141 -7
  381. package/dist/cjs/x-mentions.cjs.entry.js +6 -6
  382. package/dist/cjs/x-menu-divider.cjs.entry.js +2 -2
  383. package/dist/cjs/x-menu-item-group.cjs.entry.js +2 -2
  384. package/dist/cjs/x-menu_2.cjs.entry.js +509 -0
  385. package/dist/cjs/x-message.cjs.entry.js +7 -7
  386. package/dist/cjs/x-notification.cjs.entry.js +7 -7
  387. package/dist/cjs/x-page-header.cjs.entry.js +3 -3
  388. package/dist/cjs/x-popconfirm-content.cjs.entry.js +4 -4
  389. package/dist/cjs/x-popconfirm.cjs.entry.js +5 -5
  390. package/dist/cjs/x-progress.cjs.entry.js +10 -10
  391. package/dist/cjs/x-qr-code.cjs.entry.js +11 -9
  392. package/dist/cjs/x-skeleton.cjs.entry.js +5 -5
  393. package/dist/cjs/x-splitter-panel.cjs.entry.js +2 -2
  394. package/dist/cjs/x-splitter.cjs.entry.js +11 -5
  395. package/dist/cjs/x-statistic.cjs.entry.js +3 -3
  396. package/dist/cjs/x-step.cjs.entry.js +7 -7
  397. package/dist/cjs/x-steps.cjs.entry.js +6 -8
  398. package/dist/cjs/x-table-cell.cjs.entry.js +4 -4
  399. package/dist/cjs/x-table-row.cjs.entry.js +13 -10
  400. package/dist/cjs/x-timeline-item.cjs.entry.js +4 -4
  401. package/dist/cjs/x-timeline.cjs.entry.js +4 -4
  402. package/dist/cjs/x-tour-panel.cjs.entry.js +3 -3
  403. package/dist/cjs/x-tour.cjs.entry.js +16 -16
  404. package/dist/cjs/x-virtual-scroll.cjs.entry.js +5 -5
  405. package/dist/cjs/x-workflow-builder.cjs.entry.js +8 -8
  406. package/dist/cjs/xlabs.cjs.js +24 -0
  407. package/dist/collection/collection-manifest.json +8 -1
  408. package/dist/collection/components/x-address/vietnam-data.js +3 -3
  409. package/dist/collection/components/x-address/x-address.css +5 -2
  410. package/dist/collection/components/x-address/x-address.js +8 -10
  411. package/dist/collection/components/x-affix/x-affix.js +4 -4
  412. package/dist/collection/components/x-alert/x-alert.css +5 -2
  413. package/dist/collection/components/x-alert/x-alert.js +1 -1
  414. package/dist/collection/components/x-anchor/x-anchor.js +16 -8
  415. package/dist/collection/components/x-anchor-link/x-anchor-link.js +2 -2
  416. package/dist/collection/components/x-app/x-app.js +15 -15
  417. package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.css +5 -2
  418. package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.js +1 -1
  419. package/dist/collection/components/x-auto-complete/types.js +2 -5
  420. package/dist/collection/components/x-auto-complete/x-auto-complete.css +5 -2
  421. package/dist/collection/components/x-auto-complete/x-auto-complete.js +52 -25
  422. package/dist/collection/components/x-avatar/x-avatar.js +23 -14
  423. package/dist/collection/components/x-back-top/x-back-top.js +3 -3
  424. package/dist/collection/components/x-badge/x-badge.js +3 -7
  425. package/dist/collection/components/x-breadcrumb/x-breadcrumb.js +3 -3
  426. package/dist/collection/components/x-breadcrumb-item/x-breadcrumb-item.js +1 -1
  427. package/dist/collection/components/x-button/x-button.js +7 -7
  428. package/dist/collection/components/x-captcha/x-captcha.js +28 -8
  429. package/dist/collection/components/x-card/x-card.css +9 -4
  430. package/dist/collection/components/x-card/x-card.js +1 -1
  431. package/dist/collection/components/x-carousel/x-carousel.css +5 -2
  432. package/dist/collection/components/x-carousel/x-carousel.js +5 -5
  433. package/dist/collection/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.css +5 -2
  434. package/dist/collection/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.js +9 -9
  435. package/dist/collection/components/x-cascader/x-cascader.css +5 -2
  436. package/dist/collection/components/x-cascader/x-cascader.js +17 -20
  437. package/dist/collection/components/x-checkbox/x-checkbox.css +5 -2
  438. package/dist/collection/components/x-checkbox/x-checkbox.js +9 -19
  439. package/dist/collection/components/x-code-editor/types.js +1 -0
  440. package/dist/collection/components/x-code-editor/x-code-editor.css +1274 -0
  441. package/dist/collection/components/x-code-editor/x-code-editor.js +1497 -0
  442. package/dist/collection/components/x-col/x-col.css +5 -2
  443. package/dist/collection/components/x-col/x-col.js +14 -14
  444. package/dist/collection/components/x-collapse/x-collapse.css +5 -2
  445. package/dist/collection/components/x-collapse/x-collapse.js +4 -4
  446. package/dist/collection/components/x-collapse-panel/x-collapse-panel.css +5 -2
  447. package/dist/collection/components/x-collapse-panel/x-collapse-panel.js +4 -4
  448. package/dist/collection/components/x-color-picker/x-color-picker-panel.js +6 -8
  449. package/dist/collection/components/x-color-picker/x-color-picker.css +5 -2
  450. package/dist/collection/components/x-color-picker/x-color-picker.js +72 -12
  451. package/dist/collection/components/x-comment/x-comment.css +5 -2
  452. package/dist/collection/components/x-comment/x-comment.js +3 -3
  453. package/dist/collection/components/x-content/x-content.css +5 -4
  454. package/dist/collection/components/x-content/x-content.js +3 -3
  455. package/dist/collection/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.css +7 -3
  456. package/dist/collection/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.js +5 -9
  457. package/dist/collection/components/x-date-picker/x-date-picker.css +5 -2
  458. package/dist/collection/components/x-date-picker/x-date-picker.js +65 -23
  459. package/dist/collection/components/x-descriptions/x-descriptions.css +5 -2
  460. package/dist/collection/components/x-descriptions/x-descriptions.js +3 -3
  461. package/dist/collection/components/x-descriptions-item/x-descriptions-item.css +5 -2
  462. package/dist/collection/components/x-descriptions-item/x-descriptions-item.js +4 -4
  463. package/dist/collection/components/x-divider/x-divider.css +5 -2
  464. package/dist/collection/components/x-divider/x-divider.js +3 -3
  465. package/dist/collection/components/x-drawer/x-drawer.css +5 -2
  466. package/dist/collection/components/x-drawer/x-drawer.js +6 -4
  467. package/dist/collection/components/x-drawer-content/x-drawer-content.css +5 -2
  468. package/dist/collection/components/x-drawer-content/x-drawer-content.js +4 -4
  469. package/dist/collection/components/x-dropdown/dropdown-content/dropdown-content.css +5 -2
  470. package/dist/collection/components/x-dropdown/dropdown-content/dropdown-content.js +1 -1
  471. package/dist/collection/components/x-dropdown/x-dropdown.css +5 -2
  472. package/dist/collection/components/x-dropdown/x-dropdown.js +34 -12
  473. package/dist/collection/components/x-editor/types.js +4 -6
  474. package/dist/collection/components/x-editor/x-editor.css +25 -10
  475. package/dist/collection/components/x-editor/x-editor.js +80 -74
  476. package/dist/collection/components/x-empty/x-empty.css +5 -2
  477. package/dist/collection/components/x-empty/x-empty.js +1 -1
  478. package/dist/collection/components/x-finder/services/finder-service.js +7 -9
  479. package/dist/collection/components/x-finder/x-finder.css +10 -4
  480. package/dist/collection/components/x-finder/x-finder.js +28 -19
  481. package/dist/collection/components/x-flex/x-flex.css +5 -2
  482. package/dist/collection/components/x-flex/x-flex.js +5 -7
  483. package/dist/collection/components/x-float-button/x-float-button.css +5 -2
  484. package/dist/collection/components/x-float-button/x-float-button.js +4 -4
  485. package/dist/collection/components/x-footer/x-footer.css +5 -2
  486. package/dist/collection/components/x-footer/x-footer.js +1 -1
  487. package/dist/collection/components/x-form/x-form.css +5 -2
  488. package/dist/collection/components/x-form/x-form.js +98 -3
  489. package/dist/collection/components/x-form-builder/services/apis/api-client.js +24 -15
  490. package/dist/collection/components/x-form-builder/services/forms/form-array.js +3 -5
  491. package/dist/collection/components/x-form-builder/services/forms/form-group.js +6 -6
  492. package/dist/collection/components/x-form-builder/services/forms/validators.js +20 -10
  493. package/dist/collection/components/x-form-builder/services/schema/condition-builder.js +25 -44
  494. package/dist/collection/components/x-form-builder/services/schema/default-registry.js +108 -87
  495. package/dist/collection/components/x-form-builder/services/schema/form-mapping.js +80 -5
  496. package/dist/collection/components/x-form-builder/services/schema/formula-builder.js +114 -0
  497. package/dist/collection/components/x-form-builder/services/schema/schema-builder.js +7 -2
  498. package/dist/collection/components/x-form-builder/services/schema/schema-validator.js +1 -1
  499. package/dist/collection/components/x-form-builder/types/common/index.js +1 -0
  500. package/dist/collection/components/x-form-builder/types/common/ui-types.js +1 -0
  501. package/dist/collection/components/x-form-builder/types/fields/selection-fields.js +1 -9
  502. package/dist/collection/components/x-form-builder/utils/condition-engine.js +10 -10
  503. package/dist/collection/components/x-form-builder/utils/utils.js +25 -6
  504. package/dist/collection/components/x-form-builder/x-form-builder.js +468 -205
  505. package/dist/collection/components/x-form-item/x-form-item.css +16 -10
  506. package/dist/collection/components/x-form-item/x-form-item.js +46 -28
  507. package/dist/collection/components/x-header/x-header.css +5 -2
  508. package/dist/collection/components/x-header/x-header.js +1 -1
  509. package/dist/collection/components/x-icon/icons.js +19287 -2716
  510. package/dist/collection/components/x-icon/x-icon.css +5 -2
  511. package/dist/collection/components/x-icon/x-icon.js +6 -6
  512. package/dist/collection/components/x-image/x-image.css +5 -2
  513. package/dist/collection/components/x-image/x-image.js +6 -6
  514. package/dist/collection/components/x-infinite-scroll/x-infinite-scroll.css +5 -2
  515. package/dist/collection/components/x-infinite-scroll/x-infinite-scroll.js +2 -2
  516. package/dist/collection/components/x-input/x-input.css +25 -2
  517. package/dist/collection/components/x-input/x-input.js +38 -9
  518. package/dist/collection/components/x-input-icon/icon-picker-dropdown-content/icon-picker-dropdown-content.css +453 -0
  519. package/dist/collection/components/x-input-icon/icon-picker-dropdown-content/icon-picker-dropdown-content.js +304 -0
  520. package/dist/collection/components/x-input-icon/types.js +1 -0
  521. package/dist/collection/components/x-input-icon/x-input-icon.css +404 -0
  522. package/dist/collection/components/x-input-icon/x-input-icon.js +917 -0
  523. package/dist/collection/components/x-input-number/x-input-number.css +5 -2
  524. package/dist/collection/components/x-input-number/x-input-number.js +108 -13
  525. package/dist/collection/components/x-layout/x-layout.css +5 -2
  526. package/dist/collection/components/x-layout/x-layout.js +11 -5
  527. package/dist/collection/components/x-layout-admin/x-layout-admin.css +403 -0
  528. package/dist/collection/components/x-layout-admin/x-layout-admin.js +127 -0
  529. package/dist/collection/components/x-layout-detail/x-layout-detail.css +479 -0
  530. package/dist/collection/components/x-layout-detail/x-layout-detail.js +300 -0
  531. package/dist/collection/components/x-layout-list/types.js +1 -0
  532. package/dist/collection/components/x-layout-list/x-layout-list.css +511 -0
  533. package/dist/collection/components/x-layout-list/x-layout-list.js +619 -0
  534. package/dist/collection/components/x-list/x-list.css +5 -2
  535. package/dist/collection/components/x-list/x-list.js +3 -3
  536. package/dist/collection/components/x-list-item/x-list-item.css +5 -2
  537. package/dist/collection/components/x-list-item/x-list-item.js +1 -1
  538. package/dist/collection/components/x-login/types.js +1 -0
  539. package/dist/collection/components/x-login/x-login.css +562 -0
  540. package/dist/collection/components/x-login/x-login.js +706 -0
  541. package/dist/collection/components/x-mentions/x-mentions.css +5 -2
  542. package/dist/collection/components/x-mentions/x-mentions.js +4 -4
  543. package/dist/collection/components/x-menu/x-menu.js +1 -1
  544. package/dist/collection/components/x-menu-divider/x-menu-divider.js +1 -1
  545. package/dist/collection/components/x-menu-item/x-menu-item.js +2 -2
  546. package/dist/collection/components/x-menu-item-group/x-menu-item-group.js +1 -1
  547. package/dist/collection/components/x-menu-submenu/x-menu-submenu.js +5 -5
  548. package/dist/collection/components/x-message/message-service.js +2 -2
  549. package/dist/collection/components/x-message/x-message.css +5 -2
  550. package/dist/collection/components/x-message/x-message.js +5 -5
  551. package/dist/collection/components/x-modal/modal-service.js +33 -13
  552. package/dist/collection/components/x-modal/x-modal.css +5 -2
  553. package/dist/collection/components/x-modal/x-modal.js +148 -47
  554. package/dist/collection/components/x-modal-content/x-modal-content.css +110 -18
  555. package/dist/collection/components/x-modal-content/x-modal-content.js +157 -12
  556. package/dist/collection/components/x-notification/notification-service.js +9 -10
  557. package/dist/collection/components/x-notification/x-notification.css +6 -2
  558. package/dist/collection/components/x-notification/x-notification.js +4 -4
  559. package/dist/collection/components/x-page-header/x-page-header.css +5 -2
  560. package/dist/collection/components/x-page-header/x-page-header.js +1 -1
  561. package/dist/collection/components/x-pagination/x-pagination.css +11 -2
  562. package/dist/collection/components/x-pagination/x-pagination.js +18 -14
  563. package/dist/collection/components/x-popconfirm/popconfirm-content/popconfirm-content.css +5 -2
  564. package/dist/collection/components/x-popconfirm/popconfirm-content/popconfirm-content.js +1 -1
  565. package/dist/collection/components/x-popconfirm/x-popconfirm.css +5 -2
  566. package/dist/collection/components/x-popconfirm/x-popconfirm.js +1 -1
  567. package/dist/collection/components/x-popover/popover-content/popover-content.css +5 -2
  568. package/dist/collection/components/x-popover/popover-content/popover-content.js +1 -1
  569. package/dist/collection/components/x-popover/x-popover.css +5 -2
  570. package/dist/collection/components/x-popover/x-popover.js +1 -1
  571. package/dist/collection/components/x-portal/positioning.js +11 -16
  572. package/dist/collection/components/x-progress/x-progress.css +5 -2
  573. package/dist/collection/components/x-progress/x-progress.js +8 -8
  574. package/dist/collection/components/x-qr-code/x-qr-code.css +2 -1
  575. package/dist/collection/components/x-qr-code/x-qr-code.js +23 -1
  576. package/dist/collection/components/x-radio/x-radio.css +5 -2
  577. package/dist/collection/components/x-radio/x-radio.js +5 -5
  578. package/dist/collection/components/x-radio-group/x-radio-group.css +5 -2
  579. package/dist/collection/components/x-radio-group/x-radio-group.js +6 -8
  580. package/dist/collection/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.css +7 -3
  581. package/dist/collection/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.js +13 -13
  582. package/dist/collection/components/x-range-picker/x-range-picker.css +5 -2
  583. package/dist/collection/components/x-range-picker/x-range-picker.js +9 -18
  584. package/dist/collection/components/x-rate/x-rate.css +5 -2
  585. package/dist/collection/components/x-rate/x-rate.js +3 -3
  586. package/dist/collection/components/x-result/x-result.css +5 -2
  587. package/dist/collection/components/x-result/x-result.js +11 -10
  588. package/dist/collection/components/x-row/x-row.css +5 -2
  589. package/dist/collection/components/x-row/x-row.js +4 -4
  590. package/dist/collection/components/x-segmented/x-segmented.css +5 -2
  591. package/dist/collection/components/x-segmented/x-segmented.js +8 -8
  592. package/dist/collection/components/x-select/select-dropdown-content/select-dropdown-content.css +11 -4
  593. package/dist/collection/components/x-select/select-dropdown-content/select-dropdown-content.js +1 -1
  594. package/dist/collection/components/x-select/x-select.css +11 -4
  595. package/dist/collection/components/x-select/x-select.js +33 -39
  596. package/dist/collection/components/x-select-option/x-select-option.css +5 -2
  597. package/dist/collection/components/x-select-option/x-select-option.js +3 -3
  598. package/dist/collection/components/x-sider/x-sider.css +7 -4
  599. package/dist/collection/components/x-sider/x-sider.js +7 -9
  600. package/dist/collection/components/x-skeleton/x-skeleton.css +5 -2
  601. package/dist/collection/components/x-skeleton/x-skeleton.js +3 -3
  602. package/dist/collection/components/x-slider/x-slider.css +5 -2
  603. package/dist/collection/components/x-slider/x-slider.js +11 -23
  604. package/dist/collection/components/x-space/x-space.css +5 -2
  605. package/dist/collection/components/x-space/x-space.js +4 -4
  606. package/dist/collection/components/x-spin/x-spin.css +5 -2
  607. package/dist/collection/components/x-spin/x-spin.js +1 -1
  608. package/dist/collection/components/x-splitter/x-splitter.js +14 -8
  609. package/dist/collection/components/x-splitter-panel/x-splitter-panel.js +1 -1
  610. package/dist/collection/components/x-statistic/x-statistic.css +5 -2
  611. package/dist/collection/components/x-statistic/x-statistic.js +1 -1
  612. package/dist/collection/components/x-step/x-step.css +5 -2
  613. package/dist/collection/components/x-step/x-step.js +5 -5
  614. package/dist/collection/components/x-steps/x-steps.css +5 -2
  615. package/dist/collection/components/x-steps/x-steps.js +4 -6
  616. package/dist/collection/components/x-switch/x-switch.css +5 -2
  617. package/dist/collection/components/x-switch/x-switch.js +7 -4
  618. package/dist/collection/components/x-tab-pane/x-tab-pane.css +5 -2
  619. package/dist/collection/components/x-tab-pane/x-tab-pane.js +58 -2
  620. package/dist/collection/components/x-table/x-table.css +187 -41
  621. package/dist/collection/components/x-table/x-table.js +242 -104
  622. package/dist/collection/components/x-table-cell/x-table-cell.css +5 -2
  623. package/dist/collection/components/x-table-cell/x-table-cell.js +2 -2
  624. package/dist/collection/components/x-table-row/x-table-row.css +5 -2
  625. package/dist/collection/components/x-table-row/x-table-row.js +11 -8
  626. package/dist/collection/components/x-tabs/x-tabs.css +17 -2
  627. package/dist/collection/components/x-tabs/x-tabs.js +130 -12
  628. package/dist/collection/components/x-tag/x-tag.css +6 -3
  629. package/dist/collection/components/x-tag/x-tag.js +1 -4
  630. package/dist/collection/components/x-textarea/x-textarea.css +5 -2
  631. package/dist/collection/components/x-textarea/x-textarea.js +5 -5
  632. package/dist/collection/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.css +5 -2
  633. package/dist/collection/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.js +1 -1
  634. package/dist/collection/components/x-time-picker/x-time-picker.css +5 -2
  635. package/dist/collection/components/x-time-picker/x-time-picker.js +4 -7
  636. package/dist/collection/components/x-timeline/x-timeline.css +5 -2
  637. package/dist/collection/components/x-timeline/x-timeline.js +2 -2
  638. package/dist/collection/components/x-timeline-item/x-timeline-item.css +5 -2
  639. package/dist/collection/components/x-timeline-item/x-timeline-item.js +2 -2
  640. package/dist/collection/components/x-tooltip/x-tooltip.css +5 -2
  641. package/dist/collection/components/x-tooltip/x-tooltip.js +6 -8
  642. package/dist/collection/components/x-tooltip-content/x-tooltip-content.js +2 -2
  643. package/dist/collection/components/x-tour/x-tour-panel.css +5 -2
  644. package/dist/collection/components/x-tour/x-tour-panel.js +1 -1
  645. package/dist/collection/components/x-tour/x-tour.css +5 -2
  646. package/dist/collection/components/x-tour/x-tour.js +15 -15
  647. package/dist/collection/components/x-transfer/x-transfer.css +5 -2
  648. package/dist/collection/components/x-transfer/x-transfer.js +8 -8
  649. package/dist/collection/components/x-tree/x-tree.css +5 -2
  650. package/dist/collection/components/x-tree/x-tree.js +25 -26
  651. package/dist/collection/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.css +5 -2
  652. package/dist/collection/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.js +6 -6
  653. package/dist/collection/components/x-tree-select/x-tree-select.css +5 -2
  654. package/dist/collection/components/x-tree-select/x-tree-select.js +21 -31
  655. package/dist/collection/components/x-typography/x-typography.css +10 -3
  656. package/dist/collection/components/x-typography/x-typography.js +12 -12
  657. package/dist/collection/components/x-upload/x-upload.css +5 -2
  658. package/dist/collection/components/x-upload/x-upload.js +342 -48
  659. package/dist/collection/components/x-virtual-scroll/x-virtual-scroll.js +5 -5
  660. package/dist/collection/components/x-workflow/x-workflow.css +3 -1
  661. package/dist/collection/components/x-workflow/x-workflow.js +81 -66
  662. package/dist/collection/components/x-workflow-builder/x-workflow-builder.css +5 -2
  663. package/dist/collection/components/x-workflow-builder/x-workflow-builder.js +6 -6
  664. package/dist/collection/index.js +2 -0
  665. package/dist/collection/locales/languages/mn_MN.js +14 -1
  666. package/dist/collection/locales/locale.service.js +4 -9
  667. package/dist/collection/utils/code-editor/ast-parser.js +378 -0
  668. package/dist/collection/utils/code-editor/autocomplete-db.js +590 -0
  669. package/dist/collection/utils/code-editor/history.js +56 -0
  670. package/dist/collection/utils/code-editor/index.js +4 -0
  671. package/dist/collection/utils/code-editor/plugin-system.js +54 -0
  672. package/dist/collection/utils/code-editor/tokenizer.js +300 -0
  673. package/dist/collection/utils/config.js +3 -3
  674. package/dist/collection/utils/form/core/abstract-control.js +40 -14
  675. package/dist/collection/utils/form/core/form-array.js +7 -5
  676. package/dist/collection/utils/form/core/form-group.js +8 -4
  677. package/dist/collection/utils/form/frameworks.js +7 -3
  678. package/dist/collection/utils/form/validators/validators.js +3 -9
  679. package/dist/collection/utils/qr-code/engine/qr.engine.js +3 -3
  680. package/dist/collection/utils/qr-code/engine/qr.mask.js +3 -3
  681. package/dist/collection/utils/qr-code/engine/qr.rs.js +1 -1
  682. package/dist/collection/utils/table.service.js +40 -14
  683. package/dist/collection/utils/tree.service.js +22 -22
  684. package/dist/collection/utils/workflow/flow.service.js +95 -30
  685. package/dist/esm/{abstract-control-XBF88YT_.js → abstract-control-BtYiIQqg.js} +40 -14
  686. package/dist/esm/{config-BPeosvTA.js → config-RKpMhZmc.js} +3 -3
  687. package/dist/esm/icons-BgCjF74f.js +19289 -0
  688. package/dist/esm/{index-ig_mFsVk.js → index-BMTt8QT3.js} +39 -12
  689. package/dist/esm/index.js +6 -5
  690. package/dist/esm/loader.js +3 -3
  691. package/dist/esm/{locale.service-D66tF8_2.js → locale.service-DFADJBLL.js} +17 -9
  692. package/dist/esm/{modal-service-C_e0SaFZ.js → modal-service-ikfAY1gn.js} +34 -14
  693. package/dist/esm/{notification-service-DJTSPOq7.js → notification-service-CUyIF7K-.js} +12 -13
  694. package/dist/esm/{portal-controller-COpzIi1n.js → portal-controller-DM8AggMt.js} +11 -16
  695. package/dist/esm/{schema-builder-DBPGgJBx.js → schema-builder-DlGEzg5B.js} +291 -89
  696. package/dist/esm/{tree.service-Dgxy93Bg.js → tree.service-iG9CbEpE.js} +22 -22
  697. package/dist/esm/x-address_51.entry.js +26822 -0
  698. package/dist/esm/x-affix.entry.js +5 -5
  699. package/dist/esm/{x-alert_11.entry.js → x-alert_9.entry.js} +268 -645
  700. package/dist/esm/x-anchor-link.entry.js +3 -3
  701. package/dist/esm/x-anchor.entry.js +11 -9
  702. package/dist/esm/x-app.entry.js +19 -19
  703. package/dist/esm/x-back-top.entry.js +4 -4
  704. package/dist/esm/x-breadcrumb_2.entry.js +121 -0
  705. package/dist/esm/x-carousel.entry.js +7 -7
  706. package/dist/esm/x-code-editor.entry.js +2363 -0
  707. package/dist/esm/x-col_11.entry.js +1192 -0
  708. package/dist/esm/x-collapse-panel.entry.js +4 -4
  709. package/dist/esm/x-collapse.entry.js +4 -4
  710. package/dist/esm/x-comment.entry.js +5 -5
  711. package/dist/esm/x-descriptions-item.entry.js +6 -6
  712. package/dist/esm/{x-breadcrumb_5.entry.js → x-descriptions_3.entry.js} +37 -156
  713. package/dist/esm/x-drawer-content.entry.js +8 -8
  714. package/dist/esm/x-drawer.entry.js +9 -7
  715. package/dist/esm/x-finder.entry.js +39 -32
  716. package/dist/esm/x-icon-picker-dropdown-content.entry.js +156 -0
  717. package/dist/esm/x-infinite-scroll.entry.js +4 -4
  718. package/dist/esm/x-input-icon.entry.js +359 -0
  719. package/dist/esm/x-layout-admin.entry.js +43 -0
  720. package/dist/esm/x-layout-detail.entry.js +143 -0
  721. package/dist/esm/x-layout-list.entry.js +257 -0
  722. package/dist/esm/x-list-item.entry.js +3 -3
  723. package/dist/esm/{x-menu-submenu.entry.js → x-list_2.entry.js} +141 -8
  724. package/dist/esm/x-mentions.entry.js +6 -6
  725. package/dist/esm/x-menu-divider.entry.js +2 -2
  726. package/dist/esm/x-menu-item-group.entry.js +2 -2
  727. package/dist/esm/x-menu_2.entry.js +506 -0
  728. package/dist/esm/x-message.entry.js +7 -7
  729. package/dist/esm/x-notification.entry.js +7 -7
  730. package/dist/esm/x-page-header.entry.js +3 -3
  731. package/dist/esm/x-popconfirm-content.entry.js +4 -4
  732. package/dist/esm/x-popconfirm.entry.js +5 -5
  733. package/dist/esm/x-progress.entry.js +10 -10
  734. package/dist/esm/x-qr-code.entry.js +11 -9
  735. package/dist/esm/x-skeleton.entry.js +5 -5
  736. package/dist/esm/x-splitter-panel.entry.js +2 -2
  737. package/dist/esm/x-splitter.entry.js +11 -5
  738. package/dist/esm/x-statistic.entry.js +3 -3
  739. package/dist/esm/x-step.entry.js +7 -7
  740. package/dist/esm/x-steps.entry.js +6 -8
  741. package/dist/esm/x-table-cell.entry.js +4 -4
  742. package/dist/esm/x-table-row.entry.js +13 -10
  743. package/dist/esm/x-timeline-item.entry.js +4 -4
  744. package/dist/esm/x-timeline.entry.js +4 -4
  745. package/dist/esm/x-tour-panel.entry.js +3 -3
  746. package/dist/esm/x-tour.entry.js +16 -16
  747. package/dist/esm/x-virtual-scroll.entry.js +5 -5
  748. package/dist/esm/x-workflow-builder.entry.js +8 -8
  749. package/dist/esm/xlabs.js +20 -0
  750. package/dist/types/components/x-app/x-app.d.ts +12 -12
  751. package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/index.d.ts +1 -1
  752. package/dist/types/components/x-auto-complete/x-auto-complete.d.ts +6 -0
  753. package/dist/types/components/x-avatar/x-avatar.d.ts +3 -2
  754. package/dist/types/components/x-captcha/x-captcha.d.ts +4 -0
  755. package/dist/types/components/x-checkbox/x-checkbox.d.ts +0 -4
  756. package/dist/types/components/x-code-editor/types.d.ts +26 -0
  757. package/dist/types/components/x-code-editor/x-code-editor.d.ts +141 -0
  758. package/dist/types/components/x-color-picker/types.d.ts +4 -0
  759. package/dist/types/components/x-color-picker/x-color-picker.d.ts +8 -1
  760. package/dist/types/components/x-content/x-content.d.ts +1 -1
  761. package/dist/types/components/x-date-picker/x-date-picker.d.ts +4 -0
  762. package/dist/types/components/x-form/x-form.d.ts +12 -0
  763. package/dist/types/components/x-form-builder/services/forms/validators.d.ts +1 -0
  764. package/dist/types/components/x-form-builder/services/schema/form-mapping.d.ts +4 -0
  765. package/dist/types/components/x-form-builder/services/schema/formula-builder.d.ts +29 -0
  766. package/dist/types/components/x-form-builder/services/schema/schema-builder.d.ts +6 -1
  767. package/dist/types/components/x-form-builder/types/common/common-types.d.ts +5 -0
  768. package/dist/types/components/x-form-builder/types/common/field-types-enum.d.ts +1 -1
  769. package/dist/types/components/x-form-builder/types/common/index.d.ts +1 -0
  770. package/dist/types/components/x-form-builder/types/common/ui-types.d.ts +28 -0
  771. package/dist/types/components/x-form-builder/types/common/validation-types.d.ts +1 -1
  772. package/dist/types/components/x-form-builder/types/fields/base-field.d.ts +4 -1
  773. package/dist/types/components/x-form-builder/types/fields/datetime-file-fields.d.ts +10 -3
  774. package/dist/types/components/x-form-builder/types/fields/display-fields.d.ts +3 -0
  775. package/dist/types/components/x-form-builder/types/fields/form-field-union.d.ts +4 -4
  776. package/dist/types/components/x-form-builder/types/fields/input-fields.d.ts +5 -0
  777. package/dist/types/components/x-form-builder/types/fields/layout-fields.d.ts +20 -2
  778. package/dist/types/components/x-form-builder/types/fields/selection-fields.d.ts +11 -4
  779. package/dist/types/components/x-form-builder/types/form/schema-types.d.ts +7 -3
  780. package/dist/types/components/x-form-builder/utils/values.d.ts +1 -1
  781. package/dist/types/components/x-form-builder/x-form-builder.d.ts +9 -3
  782. package/dist/types/components/x-icon/icons.d.ts +12 -2716
  783. package/dist/types/components/x-icon/x-icon.d.ts +1 -1
  784. package/dist/types/components/x-input/types.d.ts +1 -1
  785. package/dist/types/components/x-input/x-input.d.ts +6 -0
  786. package/dist/types/components/x-input-icon/icon-picker-dropdown-content/icon-picker-dropdown-content.d.ts +39 -0
  787. package/dist/types/components/x-input-icon/types.d.ts +9 -0
  788. package/dist/types/components/x-input-icon/x-input-icon.d.ts +150 -0
  789. package/dist/types/components/x-input-number/x-input-number.d.ts +5 -0
  790. package/dist/types/components/x-layout/x-layout.d.ts +2 -1
  791. package/dist/types/components/x-layout-admin/x-layout-admin.d.ts +23 -0
  792. package/dist/types/components/x-layout-detail/x-layout-detail.d.ts +86 -0
  793. package/dist/types/components/x-layout-list/types.d.ts +100 -0
  794. package/dist/types/components/x-layout-list/x-layout-list.d.ts +107 -0
  795. package/dist/types/components/x-login/types.d.ts +113 -0
  796. package/dist/types/components/x-login/x-login.d.ts +126 -0
  797. package/dist/types/components/x-message/message-service.d.ts +1 -1
  798. package/dist/types/components/x-modal/x-modal.d.ts +31 -6
  799. package/dist/types/components/x-modal-content/x-modal-content.d.ts +24 -0
  800. package/dist/types/components/x-notification/notification-service.d.ts +1 -1
  801. package/dist/types/components/x-qr-code/x-qr-code.d.ts +2 -0
  802. package/dist/types/components/x-select/select-dropdown-content/index.d.ts +1 -1
  803. package/dist/types/components/x-tab-pane/x-tab-pane.d.ts +11 -0
  804. package/dist/types/components/x-table/types.d.ts +3 -0
  805. package/dist/types/components/x-table/x-table.d.ts +15 -4
  806. package/dist/types/components/x-tabs/types.d.ts +9 -0
  807. package/dist/types/components/x-tabs/x-tabs.d.ts +40 -1
  808. package/dist/types/components/x-time-picker/time-picker-dropdown-content/index.d.ts +1 -1
  809. package/dist/types/components/x-transfer/types.d.ts +3 -1
  810. package/dist/types/components/x-upload/types.d.ts +14 -0
  811. package/dist/types/components/x-upload/x-upload.d.ts +34 -7
  812. package/dist/types/components.d.ts +1304 -70
  813. package/dist/types/index.d.ts +2 -0
  814. package/dist/types/locales/locale.service.d.ts +3 -3
  815. package/dist/types/types.d.ts +2 -0
  816. package/dist/types/utils/code-editor/ast-parser.d.ts +5 -0
  817. package/dist/types/utils/code-editor/autocomplete-db.d.ts +10 -0
  818. package/dist/types/utils/code-editor/history.d.ts +19 -0
  819. package/dist/types/utils/code-editor/index.d.ts +4 -0
  820. package/dist/types/utils/code-editor/plugin-system.d.ts +31 -0
  821. package/dist/types/utils/code-editor/tokenizer.d.ts +2 -0
  822. package/dist/types/utils/form/types.d.ts +1 -1
  823. package/dist/types/utils/table.service.d.ts +2 -1
  824. package/dist/xlabs/index.esm.js +1 -0
  825. package/dist/xlabs/p-0139d27f.entry.js +1 -0
  826. package/dist/xlabs/p-04985e4d.entry.js +1 -0
  827. package/dist/xlabs/p-05a79f30.entry.js +1 -0
  828. package/dist/xlabs/p-0a08e0c8.entry.js +1 -0
  829. package/dist/xlabs/p-0d5fb8de.entry.js +1 -0
  830. package/dist/{xlabs-store/p-cd3c3374.entry.js → xlabs/p-121911e5.entry.js} +1 -1
  831. package/dist/xlabs/p-1260ad3b.entry.js +1 -0
  832. package/dist/xlabs/p-1c0ee15c.entry.js +1 -0
  833. package/dist/{xlabs-store/p-023259c9.entry.js → xlabs/p-1cd3b259.entry.js} +1 -1
  834. package/dist/xlabs/p-239cf367.entry.js +1 -0
  835. package/dist/xlabs/p-2451ab24.entry.js +1 -0
  836. package/dist/xlabs/p-2ab3bc58.entry.js +1 -0
  837. package/dist/xlabs/p-2f9d0da7.entry.js +1 -0
  838. package/dist/xlabs/p-302ab3b9.entry.js +1 -0
  839. package/dist/xlabs/p-31029063.entry.js +1 -0
  840. package/dist/xlabs/p-31c814c2.entry.js +1 -0
  841. package/dist/xlabs/p-3f5b28e5.entry.js +1 -0
  842. package/dist/xlabs/p-43d10a6e.entry.js +1 -0
  843. package/dist/xlabs/p-45fda37b.entry.js +1 -0
  844. package/dist/xlabs/p-4bf9b6f7.entry.js +1 -0
  845. package/dist/xlabs/p-5ab9ce39.entry.js +1 -0
  846. package/dist/xlabs/p-5e495388.entry.js +1 -0
  847. package/dist/xlabs/p-6039e514.entry.js +1 -0
  848. package/dist/xlabs/p-674527b2.entry.js +1 -0
  849. package/dist/xlabs/p-68056c0e.entry.js +1 -0
  850. package/dist/xlabs/p-6d7480c0.entry.js +1 -0
  851. package/dist/xlabs/p-7697ef47.entry.js +1 -0
  852. package/dist/xlabs/p-7b8bdd79.entry.js +1 -0
  853. package/dist/xlabs/p-7f9a80e0.entry.js +1 -0
  854. package/dist/xlabs/p-948a032e.entry.js +1 -0
  855. package/dist/{xlabs-store/p-7a8f11b4.entry.js → xlabs/p-9ae3501d.entry.js} +1 -1
  856. package/dist/xlabs/p-9b3a4aa6.entry.js +1 -0
  857. package/dist/xlabs/p-9c1cc5ff.entry.js +1 -0
  858. package/dist/xlabs/p-BMTt8QT3.js +2 -0
  859. package/dist/xlabs/p-BgCjF74f.js +1 -0
  860. package/dist/xlabs/p-D7kqIlVo.js +1 -0
  861. package/dist/{xlabs-store/p-Co3Y9VjQ.js → xlabs/p-DSa1uqPO.js} +1 -1
  862. package/dist/{xlabs-store/p-c0ca6f7d.entry.js → xlabs/p-a2d14538.entry.js} +1 -1
  863. package/dist/xlabs/p-a415c8c1.entry.js +1 -0
  864. package/dist/{xlabs-store/p-fdec5d89.entry.js → xlabs/p-aba80f73.entry.js} +1 -1
  865. package/dist/xlabs/p-bc5969e0.entry.js +1 -0
  866. package/dist/xlabs/p-bef8def9.entry.js +1 -0
  867. package/dist/xlabs/p-cc57e705.entry.js +1 -0
  868. package/dist/xlabs/p-d11de492.entry.js +1 -0
  869. package/dist/xlabs/p-d4558f7b.entry.js +1 -0
  870. package/dist/xlabs/p-d921a2c7.entry.js +1 -0
  871. package/dist/xlabs/p-df10e5a1.entry.js +1 -0
  872. package/dist/xlabs/p-e1a1acbe.entry.js +1 -0
  873. package/dist/xlabs/p-eab901c4.entry.js +1 -0
  874. package/dist/xlabs/p-edcb4001.entry.js +1 -0
  875. package/dist/xlabs/p-f07d9ee7.entry.js +1 -0
  876. package/dist/xlabs/p-f280faed.entry.js +1 -0
  877. package/dist/xlabs/p-f5b96f2a.entry.js +1 -0
  878. package/dist/xlabs/p-f6950840.entry.js +1 -0
  879. package/dist/{xlabs-store/p-96b1939d.entry.js → xlabs/p-f69d2b16.entry.js} +1 -1
  880. package/dist/{xlabs-store/p-8bcbb4e3.entry.js → xlabs/p-fd003457.entry.js} +1 -1
  881. package/dist/xlabs/p-xf66Fag-.js +1 -0
  882. package/dist/xlabs/xlabs.css +2 -0
  883. package/dist/xlabs/xlabs.esm.js +1 -0
  884. package/loader/cdn.js +0 -0
  885. package/loader/index.cjs.js +0 -0
  886. package/loader/index.d.ts +0 -0
  887. package/loader/index.es2017.js +0 -0
  888. package/loader/index.js +0 -0
  889. package/package.json +65 -69
  890. package/readme.md +107 -50
  891. package/components/p-5c86X8JO.js +0 -1
  892. package/components/p-6KpqCGp9.js +0 -1
  893. package/components/p-ADwHM_jT.js +0 -1
  894. package/components/p-AgSyA7Ia.js +0 -1
  895. package/components/p-B-7Hwizp.js +0 -1
  896. package/components/p-B-ClGFfy.js +0 -1
  897. package/components/p-B4rO7Sgt.js +0 -1
  898. package/components/p-B5Syz0fw.js +0 -1
  899. package/components/p-B6p-mzW-.js +0 -1
  900. package/components/p-B8SZP5Xz.js +0 -1
  901. package/components/p-BBGHXZqR.js +0 -1
  902. package/components/p-BHLvuyOq.js +0 -1
  903. package/components/p-BOCR5Zk0.js +0 -1
  904. package/components/p-BRBrLtOz.js +0 -1
  905. package/components/p-BSRP2TGa.js +0 -1
  906. package/components/p-BUjRcJoK.js +0 -1
  907. package/components/p-BVeQ5W_G.js +0 -1
  908. package/components/p-BVnVlCcd.js +0 -1
  909. package/components/p-BZQcq9R_.js +0 -1
  910. package/components/p-BeIFU-wn.js +0 -1
  911. package/components/p-BkEgl31q.js +0 -1
  912. package/components/p-BkPJ1Whr.js +0 -1
  913. package/components/p-BkevSugc.js +0 -1
  914. package/components/p-BkiOFW3H.js +0 -1
  915. package/components/p-BskMfHyY.js +0 -1
  916. package/components/p-Bu2JqZs8.js +0 -1
  917. package/components/p-BvjR2Q5Q.js +0 -1
  918. package/components/p-Bz7MhZ4K.js +0 -1
  919. package/components/p-C3gvR6nN.js +0 -1
  920. package/components/p-C70KKm8p.js +0 -1
  921. package/components/p-C7csgUoA.js +0 -1
  922. package/components/p-CAPfC5Vn.js +0 -1
  923. package/components/p-CEBSDVyp.js +0 -1
  924. package/components/p-CFB6xkAX.js +0 -1
  925. package/components/p-CGIxdOEm.js +0 -1
  926. package/components/p-CHRrsVXB.js +0 -1
  927. package/components/p-CKUzvJue.js +0 -1
  928. package/components/p-CRBPzT4B.js +0 -1
  929. package/components/p-CSfrs76m.js +0 -1
  930. package/components/p-C_ZBjXFP.js +0 -1
  931. package/components/p-Ce5L9qbY.js +0 -1
  932. package/components/p-CeBfFEIa.js +0 -1
  933. package/components/p-Ck6SW8G3.js +0 -1
  934. package/components/p-D7ijqXRY.js +0 -1
  935. package/components/p-D7n-26Q5.js +0 -1
  936. package/components/p-D8ew7Rgv.js +0 -1
  937. package/components/p-DBk4T-b-.js +0 -1
  938. package/components/p-DD-W_fMF.js +0 -1
  939. package/components/p-DElCk9ta.js +0 -1
  940. package/components/p-DEumEVI3.js +0 -1
  941. package/components/p-DGqQ8PT4.js +0 -1
  942. package/components/p-DJ1WhSJ4.js +0 -1
  943. package/components/p-DOxXxhXb.js +0 -1
  944. package/components/p-DRa4o4c6.js +0 -1
  945. package/components/p-DTlSrH8_.js +0 -1
  946. package/components/p-DTvD0UO5.js +0 -1
  947. package/components/p-DZFphzg1.js +0 -1
  948. package/components/p-DZPUUptR.js +0 -1
  949. package/components/p-D_xaGiZU.js +0 -1
  950. package/components/p-DaL42JUi.js +0 -1
  951. package/components/p-DbRpEXwX.js +0 -1
  952. package/components/p-Dg0xgMke.js +0 -1
  953. package/components/p-Dky_8i8S.js +0 -1
  954. package/components/p-DlwlBBr4.js +0 -1
  955. package/components/p-DoTf8yXn.js +0 -1
  956. package/components/p-DphUq6Z5.js +0 -1
  957. package/components/p-DsgWQbJY.js +0 -1
  958. package/components/p-Dx3yBe39.js +0 -1
  959. package/components/p-DxKMnrS8.js +0 -1
  960. package/components/p-O88oQkR1.js +0 -1
  961. package/components/p-PlUkLT0A.js +0 -1
  962. package/components/p-QTSiPk0I.js +0 -1
  963. package/components/p-TC9DZAbC.js +0 -1
  964. package/components/p-bVsOg7S9.js +0 -1
  965. package/components/p-ccpcKv5U.js +0 -1
  966. package/components/p-en06CSUT.js +0 -1
  967. package/components/p-g6ZBqIze.js +0 -1
  968. package/dist/cjs/types-DQ-V76ZQ.js +0 -255
  969. package/dist/cjs/x-address_14.cjs.entry.js +0 -12577
  970. package/dist/cjs/x-auto-complete-dropdown-content.cjs.entry.js +0 -69
  971. package/dist/cjs/x-avatar.cjs.entry.js +0 -269
  972. package/dist/cjs/x-button.cjs.entry.js +0 -174
  973. package/dist/cjs/x-card_12.cjs.entry.js +0 -1386
  974. package/dist/cjs/x-cascader-dropdown-content.cjs.entry.js +0 -364
  975. package/dist/cjs/x-checkbox_5.cjs.entry.js +0 -1376
  976. package/dist/cjs/x-color-picker-panel_2.cjs.entry.js +0 -873
  977. package/dist/cjs/x-color-picker_9.cjs.entry.js +0 -3085
  978. package/dist/cjs/x-date-picker-dropdown-content.cjs.entry.js +0 -757
  979. package/dist/cjs/x-dropdown_2.cjs.entry.js +0 -735
  980. package/dist/cjs/x-empty.cjs.entry.js +0 -64
  981. package/dist/cjs/x-form-builder.cjs.entry.js +0 -807
  982. package/dist/cjs/x-icon.cjs.entry.js +0 -144
  983. package/dist/cjs/x-list.cjs.entry.js +0 -138
  984. package/dist/cjs/x-modal-content.cjs.entry.js +0 -217
  985. package/dist/cjs/x-range-picker-dropdown-content.cjs.entry.js +0 -821
  986. package/dist/cjs/x-select_2.cjs.entry.js +0 -1316
  987. package/dist/cjs/x-spin.cjs.entry.js +0 -62
  988. package/dist/cjs/x-tab-pane.cjs.entry.js +0 -73
  989. package/dist/cjs/x-tabs.cjs.entry.js +0 -609
  990. package/dist/cjs/x-time-picker-dropdown-content.cjs.entry.js +0 -389
  991. package/dist/cjs/x-tree-select-dropdown-content.cjs.entry.js +0 -439
  992. package/dist/cjs/xlabs-store.cjs.js +0 -24
  993. package/dist/esm/types-C_QdJRdB.js +0 -253
  994. package/dist/esm/x-address_14.entry.js +0 -12562
  995. package/dist/esm/x-auto-complete-dropdown-content.entry.js +0 -67
  996. package/dist/esm/x-avatar.entry.js +0 -267
  997. package/dist/esm/x-button.entry.js +0 -172
  998. package/dist/esm/x-card_12.entry.js +0 -1373
  999. package/dist/esm/x-cascader-dropdown-content.entry.js +0 -362
  1000. package/dist/esm/x-checkbox_5.entry.js +0 -1370
  1001. package/dist/esm/x-color-picker-panel_2.entry.js +0 -870
  1002. package/dist/esm/x-color-picker_9.entry.js +0 -3075
  1003. package/dist/esm/x-date-picker-dropdown-content.entry.js +0 -755
  1004. package/dist/esm/x-dropdown_2.entry.js +0 -732
  1005. package/dist/esm/x-empty.entry.js +0 -62
  1006. package/dist/esm/x-form-builder.entry.js +0 -805
  1007. package/dist/esm/x-icon.entry.js +0 -142
  1008. package/dist/esm/x-list.entry.js +0 -136
  1009. package/dist/esm/x-modal-content.entry.js +0 -215
  1010. package/dist/esm/x-range-picker-dropdown-content.entry.js +0 -819
  1011. package/dist/esm/x-select_2.entry.js +0 -1313
  1012. package/dist/esm/x-spin.entry.js +0 -60
  1013. package/dist/esm/x-tab-pane.entry.js +0 -71
  1014. package/dist/esm/x-tabs.entry.js +0 -607
  1015. package/dist/esm/x-time-picker-dropdown-content.entry.js +0 -387
  1016. package/dist/esm/x-tree-select-dropdown-content.entry.js +0 -437
  1017. package/dist/esm/xlabs-store.js +0 -20
  1018. package/dist/xlabs-store/index.esm.js +0 -1
  1019. package/dist/xlabs-store/p-016194dc.entry.js +0 -1
  1020. package/dist/xlabs-store/p-04a3721a.entry.js +0 -1
  1021. package/dist/xlabs-store/p-072445b7.entry.js +0 -1
  1022. package/dist/xlabs-store/p-0ec21454.entry.js +0 -1
  1023. package/dist/xlabs-store/p-12b6a843.entry.js +0 -1
  1024. package/dist/xlabs-store/p-1a81cf09.entry.js +0 -1
  1025. package/dist/xlabs-store/p-1b019aeb.entry.js +0 -1
  1026. package/dist/xlabs-store/p-262a0673.entry.js +0 -1
  1027. package/dist/xlabs-store/p-34cce823.entry.js +0 -1
  1028. package/dist/xlabs-store/p-3a9fdefe.entry.js +0 -1
  1029. package/dist/xlabs-store/p-40036100.entry.js +0 -1
  1030. package/dist/xlabs-store/p-45f04e8d.entry.js +0 -1
  1031. package/dist/xlabs-store/p-48ba7c34.entry.js +0 -1
  1032. package/dist/xlabs-store/p-48e2c26e.entry.js +0 -1
  1033. package/dist/xlabs-store/p-4ac2e915.entry.js +0 -1
  1034. package/dist/xlabs-store/p-4d7c2a35.entry.js +0 -1
  1035. package/dist/xlabs-store/p-4f67cb33.entry.js +0 -1
  1036. package/dist/xlabs-store/p-502b345e.entry.js +0 -1
  1037. package/dist/xlabs-store/p-555c5e48.entry.js +0 -1
  1038. package/dist/xlabs-store/p-5878525f.entry.js +0 -1
  1039. package/dist/xlabs-store/p-5abbdca7.entry.js +0 -1
  1040. package/dist/xlabs-store/p-6243ca69.entry.js +0 -1
  1041. package/dist/xlabs-store/p-64e7a057.entry.js +0 -1
  1042. package/dist/xlabs-store/p-6530d2ef.entry.js +0 -1
  1043. package/dist/xlabs-store/p-675a39e1.entry.js +0 -1
  1044. package/dist/xlabs-store/p-689c52ef.entry.js +0 -1
  1045. package/dist/xlabs-store/p-69b8cb7d.entry.js +0 -1
  1046. package/dist/xlabs-store/p-6b121c60.entry.js +0 -1
  1047. package/dist/xlabs-store/p-6c75fc39.entry.js +0 -1
  1048. package/dist/xlabs-store/p-6f705deb.entry.js +0 -1
  1049. package/dist/xlabs-store/p-723d362c.entry.js +0 -1
  1050. package/dist/xlabs-store/p-783545e3.entry.js +0 -1
  1051. package/dist/xlabs-store/p-81fb4caf.entry.js +0 -1
  1052. package/dist/xlabs-store/p-863dd67d.entry.js +0 -1
  1053. package/dist/xlabs-store/p-8bcc219a.entry.js +0 -1
  1054. package/dist/xlabs-store/p-914b0ae2.entry.js +0 -1
  1055. package/dist/xlabs-store/p-9ac291ea.entry.js +0 -1
  1056. package/dist/xlabs-store/p-9de03a07.entry.js +0 -1
  1057. package/dist/xlabs-store/p-C_QdJRdB.js +0 -1
  1058. package/dist/xlabs-store/p-Ce5L9qbY.js +0 -1
  1059. package/dist/xlabs-store/p-DElCk9ta.js +0 -1
  1060. package/dist/xlabs-store/p-a4223feb.entry.js +0 -1
  1061. package/dist/xlabs-store/p-a8c2eca7.entry.js +0 -1
  1062. package/dist/xlabs-store/p-ac9ba3aa.entry.js +0 -1
  1063. package/dist/xlabs-store/p-bd5084b8.entry.js +0 -1
  1064. package/dist/xlabs-store/p-bda322db.entry.js +0 -1
  1065. package/dist/xlabs-store/p-c4c8840c.entry.js +0 -1
  1066. package/dist/xlabs-store/p-c4d0ce0d.entry.js +0 -1
  1067. package/dist/xlabs-store/p-cf4697bc.entry.js +0 -1
  1068. package/dist/xlabs-store/p-d2ec3d4a.entry.js +0 -1
  1069. package/dist/xlabs-store/p-d4d00aff.entry.js +0 -1
  1070. package/dist/xlabs-store/p-d9d0147b.entry.js +0 -1
  1071. package/dist/xlabs-store/p-dd930f2a.entry.js +0 -1
  1072. package/dist/xlabs-store/p-e04836e8.entry.js +0 -1
  1073. package/dist/xlabs-store/p-e14b5f6d.entry.js +0 -1
  1074. package/dist/xlabs-store/p-eb1dd3c2.entry.js +0 -1
  1075. package/dist/xlabs-store/p-f02155e4.entry.js +0 -1
  1076. package/dist/xlabs-store/p-f1331938.entry.js +0 -1
  1077. package/dist/xlabs-store/p-fac0b689.entry.js +0 -1
  1078. package/dist/xlabs-store/p-fd2e1d9c.entry.js +0 -1
  1079. package/dist/xlabs-store/p-ffba56b2.entry.js +0 -1
  1080. package/dist/xlabs-store/p-ig_mFsVk.js +0 -2
  1081. package/dist/xlabs-store/xlabs-store.css +0 -1
  1082. package/dist/xlabs-store/xlabs-store.esm.js +0 -1
  1083. /package/components/{p-XBF88YT_.js → p-BtYiIQqg.js} +0 -0
  1084. /package/components/{p-D66tF8_2.js → p-DFADJBLL.js} +0 -0
  1085. /package/components/{p-COpzIi1n.js → p-DM8AggMt.js} +0 -0
  1086. /package/components/{p-BPeosvTA.js → p-RKpMhZmc.js} +0 -0
  1087. /package/components/{p-Dgxy93Bg.js → p-iG9CbEpE.js} +0 -0
  1088. /package/dist/{xlabs-store → xlabs}/fonts/xlabs-outlined.woff2 +0 -0
  1089. /package/dist/{xlabs-store → xlabs}/fonts/xlabs-rounded.woff2 +0 -0
  1090. /package/dist/{xlabs-store → xlabs}/fonts/xlabs-solided.woff2 +0 -0
  1091. /package/dist/{xlabs-store/p-XBF88YT_.js → xlabs/p-BtYiIQqg.js} +0 -0
  1092. /package/dist/{xlabs-store/p-D66tF8_2.js → xlabs/p-DFADJBLL.js} +0 -0
  1093. /package/dist/{xlabs-store/p-COpzIi1n.js → xlabs/p-DM8AggMt.js} +0 -0
  1094. /package/dist/{xlabs-store/p-BPeosvTA.js → xlabs/p-RKpMhZmc.js} +0 -0
  1095. /package/dist/{xlabs-store/p-Dgxy93Bg.js → xlabs/p-iG9CbEpE.js} +0 -0
@@ -1,1376 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-C7sKs9A2.js');
4
- var locale_service = require('./locale.service-Cz-aZQnr.js');
5
- var config = require('./config-BP9bROYD.js');
6
- var portalController = require('./portal-controller-CtYVbhXL.js');
7
-
8
- const xCheckboxCss = () => `@charset "UTF-8";:root{--x-color-primary:#1677ff;--x-color-primary-rgb:22, 119, 255;--x-color-primary-contrast:#ffffff;--x-color-primary-contrast-rgb:255, 255, 255;--x-color-primary-shade:#0958d9;--x-color-primary-tint:#4096ff;--x-color-primary-bg:#e6f4ff;--x-color-primary-bg-hover:#bae0ff;--x-color-primary-border:#91caff;--x-color-primary-border-hover:#69b1ff;--x-color-primary-hover:#4096ff;--x-color-primary-active:#0958d9;--x-color-primary-text:#1677ff;--x-color-primary-text-hover:#4096ff;--x-color-primary-text-active:#0958d9;--x-color-secondary:#3dc2ff;--x-color-secondary-rgb:61, 194, 255;--x-color-secondary-contrast:#ffffff;--x-color-secondary-contrast-rgb:255, 255, 255;--x-color-secondary-shade:#36abe0;--x-color-secondary-tint:#50c8ff;--x-color-success:#52c41a;--x-color-success-rgb:82, 196, 26;--x-color-success-contrast:#ffffff;--x-color-success-contrast-rgb:255, 255, 255;--x-color-success-shade:#389e0d;--x-color-success-tint:#73d13d;--x-color-success-bg:#f6ffed;--x-color-success-bg-hover:#d9f7be;--x-color-success-border:#b7eb8f;--x-color-success-border-hover:#95de64;--x-color-success-hover:#73d13d;--x-color-success-active:#389e0d;--x-color-success-text:#52c41a;--x-color-success-text-hover:#73d13d;--x-color-success-text-active:#389e0d;--x-color-warning:#faad14;--x-color-warning-rgb:250, 173, 20;--x-color-warning-contrast:#000000;--x-color-warning-contrast-rgb:0, 0, 0;--x-color-warning-shade:#d48806;--x-color-warning-tint:#ffc53d;--x-color-warning-bg:#fffbe6;--x-color-warning-bg-hover:#fff1b8;--x-color-warning-border:#ffe58f;--x-color-warning-border-hover:#ffd666;--x-color-warning-hover:#ffc53d;--x-color-warning-active:#d48806;--x-color-warning-text:#faad14;--x-color-warning-text-hover:#ffc53d;--x-color-warning-text-active:#d48806;--x-color-danger:#ff4d4f;--x-color-danger-rgb:255, 77, 79;--x-color-danger-contrast:#ffffff;--x-color-danger-contrast-rgb:255, 255, 255;--x-color-danger-shade:#cf1322;--x-color-danger-tint:#ff7875;--x-color-error:#ff4d4f;--x-color-error-rgb:255, 77, 79;--x-color-error-bg:#fff2f0;--x-color-error-bg-hover:#ffccc7;--x-color-error-border:#ffa39e;--x-color-error-border-hover:#ff7875;--x-color-error-hover:#ff7875;--x-color-error-active:#d9363e;--x-color-error-text:#ff4d4f;--x-color-error-text-hover:#ff7875;--x-color-error-text-active:#d9363e;--x-color-info:#1677ff;--x-color-info-rgb:22, 119, 255;--x-color-info-bg:#e6f4ff;--x-color-info-bg-hover:#bae0ff;--x-color-info-border:#91caff;--x-color-info-border-hover:#69b1ff;--x-color-info-hover:#69b1ff;--x-color-info-active:#0958d9;--x-color-info-text:#1677ff;--x-color-info-text-hover:#69b1ff;--x-color-info-text-active:#0958d9;--x-color-text:rgba(0, 0, 0, 0.88);--x-color-text-secondary:rgba(0, 0, 0, 0.65);--x-color-text-tertiary:rgba(0, 0, 0, 0.45);--x-color-text-quaternary:rgba(0, 0, 0, 0.25);--x-color-text-disabled:rgba(0, 0, 0, 0.25);--x-color-text-placeholder:rgba(0, 0, 0, 0.25);--x-color-text-heading:rgba(0, 0, 0, 0.88);--x-color-text-label:rgba(0, 0, 0, 0.65);--x-color-text-description:rgba(0, 0, 0, 0.45);--x-color-text-light-solid:#ffffff;--x-color-bg-container:#ffffff;--x-color-bg-elevated:#ffffff;--x-color-bg-layout:#f5f5f5;--x-color-bg-spotlight:rgba(0, 0, 0, 0.85);--x-color-bg-mask:rgba(0, 0, 0, 0.45);--x-color-bg-base:#ffffff;--x-color-bg-container-disabled:#f5f5f5;--x-color-bg-container-loading:rgba(255, 255, 255, 0.65);--x-color-white:#ffffff;--x-color-fill:rgba(0, 0, 0, 0.15);--x-color-fill-secondary:rgba(0, 0, 0, 0.06);--x-color-fill-tertiary:rgba(0, 0, 0, 0.04);--x-color-fill-quaternary:rgba(0, 0, 0, 0.02);--x-color-border:#d9d9d9;--x-color-border-secondary:#f0f0f0;--x-color-border-bg:#ffffff;--x-color-split:rgba(5, 5, 5, 0.06);--x-color-dark:#222428;--x-color-dark-rgb:34, 36, 40;--x-color-dark-contrast:#ffffff;--x-color-dark-contrast-rgb:255, 255, 255;--x-color-dark-shade:#1e2023;--x-color-dark-tint:#383a3e;--x-color-medium:#92949c;--x-color-medium-rgb:146, 148, 156;--x-color-medium-contrast:#ffffff;--x-color-medium-contrast-rgb:255, 255, 255;--x-color-medium-shade:#808289;--x-color-medium-tint:#9d9fa6;--x-color-light:#f4f5f8;--x-color-light-rgb:244, 245, 248;--x-color-light-contrast:#000000;--x-color-light-contrast-rgb:0, 0, 0;--x-color-light-shade:#d7d8da;--x-color-light-tint:#f5f6f9;--x-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--x-font-family-code:"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;--x-font-size:14px;--x-font-size-sm:12px;--x-font-size-lg:16px;--x-font-size-xl:20px;--x-font-size-heading-1:38px;--x-font-size-heading-2:30px;--x-font-size-heading-3:24px;--x-font-size-heading-4:20px;--x-font-size-heading-5:16px;--x-line-height:1.5714285714285714;--x-line-height-lg:1.5;--x-line-height-sm:1.6666666666666667;--x-line-height-heading-1:1.2105263157894737;--x-line-height-heading-2:1.2666666666666666;--x-line-height-heading-3:1.3333333333333333;--x-line-height-heading-4:1.4;--x-line-height-heading-5:1.5;--x-font-weight-normal:400;--x-font-weight-medium:500;--x-font-weight-semibold:600;--x-font-weight-strong:600;--x-font-size-base:14px;--x-font-size-xxl:24px;--x-line-height-base:1.5714285714285714;--x-spacing-xxs:4px;--x-spacing-xs:8px;--x-spacing-sm:12px;--x-spacing-md:16px;--x-spacing-lg:20px;--x-spacing-xl:24px;--x-spacing-xxl:32px;--x-spacing-xxxl:48px;--x-margin-xxs:4px;--x-margin-xs:8px;--x-margin-sm:12px;--x-margin-md:16px;--x-margin-lg:24px;--x-margin-xl:32px;--x-margin-xxl:48px;--x-padding-xxs:4px;--x-padding-xs:8px;--x-padding-sm:12px;--x-padding-md:16px;--x-padding-lg:24px;--x-padding-content-horizontal-lg:24px;--x-padding-content-vertical-lg:12px;--x-padding-content-horizontal:16px;--x-padding-content-vertical:12px;--x-padding-content-horizontal-sm:16px;--x-padding-content-vertical-sm:8px;--x-border-radius:6px;--x-border-radius-xs:2px;--x-border-radius-sm:4px;--x-border-radius-lg:8px;--x-border-radius-xl:12px;--x-border-radius-outer:4px;--x-border-radius-base:6px;--x-border-width:1px;--x-border-width-base:1px;--x-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-shadow-secondary:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-shadow-tertiary:0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);--x-shadow-lg:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-secondary:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-tertiary:0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);--x-box-shadow-popover-arrow:2px 2px 5px rgba(0, 0, 0, 0.05);--x-box-shadow-card:0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);--x-box-shadow-drawer-right:-6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-left:6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-up:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-down:0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-tabs-overflow-left:inset 10px 0 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-right:inset -10px 0 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-top:inset 0 10px 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-bottom:inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08);--x-motion-duration-fast:0.1s;--x-motion-duration-mid:0.2s;--x-motion-duration-slow:0.3s;--x-motion-ease-in-out:cubic-bezier(0.645, 0.045, 0.355, 1);--x-motion-ease-out:cubic-bezier(0.215, 0.61, 0.355, 1);--x-motion-ease-in:cubic-bezier(0.55, 0.055, 0.675, 0.19);--x-motion-ease-out-back:cubic-bezier(0.12, 0.4, 0.29, 1.46);--x-motion-ease-in-back:cubic-bezier(0.71, -0.46, 0.88, 0.6);--x-motion-ease-in-out-circle:cubic-bezier(0.78, 0.14, 0.15, 0.86);--x-motion-ease-out-circle:cubic-bezier(0.08, 0.82, 0.17, 1);--x-motion-ease-in-circle:cubic-bezier(0.6, 0.04, 0.98, 0.34);--x-motion-ease-in-quint:cubic-bezier(0.755, 0.05, 0.855, 0.06);--x-motion-ease-out-quint:cubic-bezier(0.23, 1, 0.32, 1);--x-z-index-base:0;--x-z-index-popup-base:1000;--x-z-index-popup:1030;--x-z-index-affix:10;--x-z-index-modal:1000;--x-z-index-modal-mask:1000;--x-z-index-drawer:1000;--x-z-index-popover:1030;--x-z-index-dropdown:1050;--x-z-index-tooltip:1070;--x-z-index-notification:1080;--x-z-index-message:1090;--x-z-index-popconfirm:1060;--x-z-index-table-fixed:10;--x-opacity-loading:0.65;--x-opacity-image:1;--x-opacity-disabled:0.5;--x-control-height:32px;--x-control-height-xs:24px;--x-control-height-sm:24px;--x-control-height-lg:40px;--x-control-radio-size:16px;--x-control-checkbox-size:16px;--x-control-padding-horizontal:12px;--x-control-padding-horizontal-sm:8px;--x-control-outline-width:2px;--x-control-outline:rgba(5, 145, 255, 0.1);--x-control-item-bg-hover:rgba(0, 0, 0, 0.04);--x-control-item-bg-active:#e6f4ff;--x-control-item-bg-active-hover:#bae0ff;--x-control-item-bg-active-disabled:rgba(0, 0, 0, 0.15);--x-control-tmp-outline:rgba(0, 0, 0, 0.02);--x-color-yellow:#fadb14;--x-color-yellow-rgb:250, 219, 20;--x-font-family-base:var(--x-font-family);--x-color-link:#1677ff;--x-color-link-hover:#69b1ff;--x-color-link-active:#0958d9;--x-color-icon:rgba(0, 0, 0, 0.45);--x-color-icon-hover:rgba(0, 0, 0, 0.88);--x-color-highlight:#ff4d4f;--x-color-bg-text-hover:rgba(0, 0, 0, 0.06);--x-color-bg-text-active:rgba(0, 0, 0, 0.15);--x-screen-xs:480px;--x-screen-xs-min:480px;--x-screen-xs-max:575px;--x-screen-sm:576px;--x-screen-sm-min:576px;--x-screen-sm-max:767px;--x-screen-md:768px;--x-screen-md-min:768px;--x-screen-md-max:991px;--x-screen-lg:992px;--x-screen-lg-min:992px;--x-screen-lg-max:1199px;--x-screen-xl:1200px;--x-screen-xl-min:1200px;--x-screen-xl-max:1599px;--x-screen-xxl:1600px;--x-screen-xxl-min:1600px;--x-color-fill-content:rgba(0, 0, 0, 0.06);--x-color-fill-content-hover:rgba(0, 0, 0, 0.15);--x-color-fill-alter:rgba(0, 0, 0, 0.02);--x-scrollbar-width:12px;--x-scrollbar-track-bg:rgba(0, 0, 0, 0.04);--x-scrollbar-thumb-bg:rgba(0, 0, 0, 0.25);--x-scrollbar-thumb-bg-hover:rgba(0, 0, 0, 0.35);--x-menu-dark-bg:#001529;--x-menu-dark-item-bg:#001529;--x-menu-dark-popup-bg:#001529;--x-menu-dark-submenu-item-bg:#000c17}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;line-height:1;cursor:pointer;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;font-size:var(--x-checkbox-font-size, var(--x-font-size, 14px));font-family:inherit;color:var(--x-checkbox-label-color, var(--x-color-text, rgba(0, 0, 0, 0.88)));list-style:none;outline:none}:host(:focus-visible){outline:2px solid var(--x-color-primary-border, #91caff);outline-offset:1px;border-radius:4px}:host(.x-checkbox-wrapper-disabled){cursor:not-allowed;color:var(--x-checkbox-label-color-disabled, var(--x-color-text-disabled, rgba(0, 0, 0, 0.25)))}.x-checkbox{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;line-height:1;white-space:nowrap;outline:none;cursor:pointer;vertical-align:sub}.x-checkbox-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0;margin:0;padding:0}.x-checkbox-inner{position:relative;top:0;left:0;display:block;width:var(--x-checkbox-size, var(--x-control-checkbox-size, 16px));height:var(--x-checkbox-size, var(--x-control-checkbox-size, 16px));direction:ltr;background-color:var(--x-checkbox-bg, var(--x-color-bg-container, #ffffff));border:var(--x-checkbox-border-width, var(--x-border-width-base, 1px)) solid var(--x-checkbox-border-color, var(--x-color-border, #d9d9d9));border-radius:var(--x-checkbox-border-radius, var(--x-border-radius-xs, 2px));border-collapse:separate;-webkit-transition:all var(--x-checkbox-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-checkbox-motion-timing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1)));transition:all var(--x-checkbox-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-checkbox-motion-timing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1)))}.x-checkbox-inner::after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid var(--x-checkbox-check-color, var(--x-color-white, #ffffff));border-top:0;border-left:0;-webkit-transform:rotate(45deg) scale(0) translate(-50%, -50%);transform:rotate(45deg) scale(0) translate(-50%, -50%);opacity:0;-webkit-transition:all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;transition:all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;content:""}.x-checkbox:not(.x-checkbox-disabled):hover .x-checkbox-inner{border-color:var(--x-checkbox-border-color-hover, var(--x-color-primary, #1677ff))}:host(.x-checkbox-wrapper-checked) .x-checkbox-inner,.x-checkbox-checked .x-checkbox-inner{background-color:var(--x-checkbox-color, var(--x-color-primary, #1677ff));border-color:var(--x-checkbox-color, var(--x-color-primary, #1677ff))}:host(.x-checkbox-wrapper-checked) .x-checkbox-inner::after,.x-checkbox-checked .x-checkbox-inner::after{position:absolute;display:table;border:2px solid var(--x-checkbox-check-color, var(--x-color-white, #ffffff));border-top:0;border-left:0;-webkit-transform:rotate(45deg) scale(1) translate(-50%, -50%);transform:rotate(45deg) scale(1) translate(-50%, -50%);opacity:1;-webkit-transition:all var(--x-checkbox-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-checkbox-motion-timing-bounce, cubic-bezier(0.12, 0.4, 0.29, 1.46)) 0.1s;transition:all var(--x-checkbox-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-checkbox-motion-timing-bounce, cubic-bezier(0.12, 0.4, 0.29, 1.46)) 0.1s}:host(.x-checkbox-wrapper-checked) .x-checkbox:not(.x-checkbox-disabled):hover .x-checkbox-inner,.x-checkbox-checked:not(.x-checkbox-disabled):hover .x-checkbox-inner{background-color:var(--x-checkbox-color-hover, var(--x-color-primary-hover, #4096ff));border-color:var(--x-checkbox-color-hover, var(--x-color-primary-hover, #4096ff))}:host(.x-checkbox-wrapper-indeterminate:not(.x-checkbox-wrapper-checked)) .x-checkbox-inner,.x-checkbox-indeterminate .x-checkbox-inner{background-color:var(--x-checkbox-bg, var(--x-color-bg-container, #ffffff));border-color:var(--x-checkbox-color, var(--x-color-primary, #1677ff))}:host(.x-checkbox-wrapper-indeterminate:not(.x-checkbox-wrapper-checked)) .x-checkbox-inner::after,.x-checkbox-indeterminate .x-checkbox-inner::after{top:50%;left:50%;width:var(--x-checkbox-inner-size, var(--x-spacing-xs, 8px));height:var(--x-checkbox-inner-size, var(--x-spacing-xs, 8px));background-color:var(--x-checkbox-color, var(--x-color-primary, #1677ff));border:0;border-radius:0;-webkit-transform:translate(-50%, -50%) scale(1);transform:translate(-50%, -50%) scale(1);opacity:1;content:""}:host(.x-checkbox-wrapper-disabled) .x-checkbox,.x-checkbox-disabled{cursor:not-allowed}:host(.x-checkbox-wrapper-disabled) .x-checkbox-input,.x-checkbox-disabled .x-checkbox-input{cursor:not-allowed}:host(.x-checkbox-wrapper-disabled) .x-checkbox-inner,.x-checkbox-disabled .x-checkbox-inner{background-color:var(--x-checkbox-bg-disabled, var(--x-color-bg-container-disabled, rgba(0, 0, 0, 0.04)));border-color:var(--x-checkbox-border-color-disabled, var(--x-color-border, #d9d9d9)) !important}:host(.x-checkbox-wrapper-disabled) .x-checkbox-inner::after,.x-checkbox-disabled .x-checkbox-inner::after{border-color:var(--x-checkbox-check-color-disabled, var(--x-color-text-quaternary, rgba(0, 0, 0, 0.25)))}:host(.x-checkbox-wrapper-disabled.x-checkbox-wrapper-checked) .x-checkbox-inner,.x-checkbox-disabled.x-checkbox-checked .x-checkbox-inner{background-color:var(--x-checkbox-bg-disabled, var(--x-color-bg-container-disabled, rgba(0, 0, 0, 0.04)));border-color:var(--x-checkbox-border-color-disabled, var(--x-color-border, #d9d9d9)) !important}:host(.x-checkbox-wrapper-disabled.x-checkbox-wrapper-checked) .x-checkbox-inner::after,.x-checkbox-disabled.x-checkbox-checked .x-checkbox-inner::after{border-color:var(--x-checkbox-check-color-disabled, var(--x-color-text-quaternary, rgba(0, 0, 0, 0.25)))}.x-checkbox-label{line-height:1.5715;word-break:break-all}:host(.x-checkbox-wrapper-disabled) .x-checkbox-label{color:var(--x-checkbox-label-color-disabled, var(--x-color-text-disabled, rgba(0, 0, 0, 0.25)))}:host(.x-checkbox-placement-start){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.x-checkbox-placement-start) .x-checkbox-label{padding-right:var(--x-checkbox-label-padding, var(--x-spacing-xs, 8px));padding-left:0}:host(.x-checkbox-placement-end){-ms-flex-direction:row;flex-direction:row}:host(.x-checkbox-placement-end) .x-checkbox-label{padding-left:var(--x-checkbox-label-padding, var(--x-spacing-xs, 8px));padding-right:0}:host(.x-checkbox-placement-fixed){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.x-checkbox-placement-fixed) .x-checkbox-label{padding-right:var(--x-checkbox-label-padding, var(--x-spacing-xs, 8px));padding-left:0;width:var(--x-checkbox-label-width, 100px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}:host(.x-checkbox-placement-stacked){-ms-flex-direction:column-reverse;flex-direction:column-reverse;gap:var(--x-checkbox-label-padding, var(--x-spacing-xs, 8px))}:host(.x-checkbox-placement-stacked) .x-checkbox-label{padding:0;width:100%;text-align:center}:host(.x-checkbox-alignment-start){-ms-flex-align:start;align-items:flex-start}:host(.x-checkbox-alignment-center){-ms-flex-align:center;align-items:center}:host(.x-checkbox-alignment-end){-ms-flex-align:end;align-items:flex-end}`;
9
-
10
- const XCheckbox = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.xChange = index.createEvent(this, "xChange", 7);
14
- this.xFocus = index.createEvent(this, "xFocus", 7);
15
- this.xBlur = index.createEvent(this, "xBlur", 7);
16
- }
17
- get el() { return index.getElement(this); }
18
- inputEl;
19
- // ==================== Props ====================
20
- /**
21
- * Whether the checkbox is automatically focused on mount.
22
- * @default false
23
- * @example
24
- * <x-checkbox autoFocus>Auto focus</x-checkbox>
25
- */
26
- autoFocus = false;
27
- /**
28
- * Whether the checkbox is checked (controlled mode).
29
- * @example
30
- * <x-checkbox checked>Checked</x-checkbox>
31
- */
32
- checked = false;
33
- /**
34
- * Whether the checkbox is checked by default (uncontrolled mode).
35
- * @default false
36
- * @example
37
- * <x-checkbox defaultChecked>Default</x-checkbox>
38
- */
39
- defaultChecked = false;
40
- /**
41
- * Whether the checkbox is disabled.
42
- * @default false
43
- * @example
44
- * <x-checkbox disabled>Disabled</x-checkbox>
45
- */
46
- disabled = false;
47
- /**
48
- * The indeterminate state of checkbox.
49
- * Used when only some child checkboxes are checked.
50
- * @default false
51
- * @example
52
- * <x-checkbox indeterminate>Select all</x-checkbox>
53
- */
54
- indeterminate = false;
55
- /**
56
- * The name attribute of the checkbox input.
57
- * @example
58
- * <x-checkbox name="fruits">Apple</x-checkbox>
59
- */
60
- name;
61
- /**
62
- * The value of the checkbox.
63
- * @example
64
- * <x-checkbox value="apple">Apple</x-checkbox>
65
- */
66
- value;
67
- /**
68
- * Custom class names for checkbox parts.
69
- * @example
70
- * <x-checkbox classNames={{ root: 'my-checkbox' }}>Custom</x-checkbox>
71
- */
72
- classNames;
73
- /**
74
- * Custom styles for checkbox parts.
75
- * @example
76
- * <x-checkbox styles={{ root: { marginRight: '8px' } }}>Styled</x-checkbox>
77
- */
78
- styles;
79
- /**
80
- * Unique identifier for the checkbox.
81
- * @example
82
- * <x-checkbox checkboxId="agree">Agree</x-checkbox>
83
- */
84
- checkboxId;
85
- /**
86
- * The placement of the label relative to the checkbox.
87
- * @default 'start'
88
- */
89
- placement = 'start';
90
- /**
91
- * The alignment of the label relative to the checkbox.
92
- * @default 'center'
93
- */
94
- alignment = 'center';
95
- // ==================== Events ====================
96
- /**
97
- * Callback fired when the checkbox state changes.
98
- * @example
99
- * <x-checkbox onXChange={(ev) => console.log(ev.detail)}>Change</x-checkbox>
100
- */
101
- xChange;
102
- /**
103
- * Callback fired when the checkbox is focused.
104
- * @example
105
- * <x-checkbox onXFocus={() => {}}>Focus</x-checkbox>
106
- */
107
- xFocus;
108
- /**
109
- * Callback fired when the checkbox loses focus.
110
- * @example
111
- * <x-checkbox onXBlur={() => {}}>Blur</x-checkbox>
112
- */
113
- xBlur;
114
- // ==================== Lifecycle ====================
115
- componentWillLoad() {
116
- if (this.defaultChecked && !this.checked) {
117
- this.checked = true;
118
- }
119
- }
120
- componentDidLoad() {
121
- if (this.autoFocus && this.inputEl) {
122
- this.inputEl.focus();
123
- }
124
- }
125
- // ==================== Watchers ====================
126
- handleCheckedChange() {
127
- // Sync with parent if needed
128
- }
129
- handleIndeterminateChange(newValue) {
130
- if (this.inputEl) {
131
- this.inputEl.indeterminate = newValue;
132
- }
133
- }
134
- // ==================== Methods ====================
135
- /**
136
- * Focus the checkbox input.
137
- * @example
138
- * await el.setFocus()
139
- */
140
- async setFocus() {
141
- this.inputEl?.focus();
142
- }
143
- /**
144
- * Remove focus from the checkbox input.
145
- * @example
146
- * await el.removeFocus()
147
- */
148
- async removeFocus() {
149
- this.inputEl?.blur();
150
- }
151
- // ==================== Private Methods ====================
152
- /**
153
- * Handle mouse click event on the checkbox host.
154
- *
155
- * Flow:
156
- * 1. Checks if checkbox is disabled.
157
- * 2. If enabled:
158
- * - Toggles `checked` state.
159
- * - Emits `xChange` event with new value and native event.
160
- *
161
- * @param e - Mouse event.
162
- */
163
- handleClick = (e) => {
164
- if (this.disabled) {
165
- e.preventDefault();
166
- e.stopPropagation();
167
- return;
168
- }
169
- const newChecked = !this.checked;
170
- this.checked = newChecked;
171
- this.xChange.emit({
172
- value: this.value,
173
- checked: newChecked,
174
- nativeEvent: e,
175
- });
176
- };
177
- handleFocus = () => {
178
- this.xFocus.emit();
179
- };
180
- handleBlur = () => {
181
- this.xBlur.emit();
182
- };
183
- /**
184
- * Handle keydown event for accessibility (Space/Enter).
185
- *
186
- * Flow:
187
- * 1. Checks if checkbox is disabled.
188
- * 2. Checks if key is 'Space' or 'Enter'.
189
- * 3. If match:
190
- * - Prevents default scrolling/submission.
191
- * - Toggles `checked` state.
192
- * - Emits `xChange` event.
193
- *
194
- * @param e - Keyboard event.
195
- */
196
- handleKeyDown = (e) => {
197
- if (this.disabled)
198
- return;
199
- if (e.key === ' ' || e.key === 'Enter') {
200
- e.preventDefault();
201
- const newChecked = !this.checked;
202
- this.checked = newChecked;
203
- this.xChange.emit({
204
- value: this.value,
205
- checked: newChecked,
206
- nativeEvent: e,
207
- });
208
- }
209
- };
210
- // ==================== Render ====================
211
- render() {
212
- const wrapperClasses = {
213
- 'x-checkbox-wrapper': true,
214
- 'x-checkbox-wrapper-checked': this.checked,
215
- 'x-checkbox-wrapper-disabled': this.disabled,
216
- 'x-checkbox-wrapper-indeterminate': this.indeterminate,
217
- [`x-checkbox-placement-${this.placement}`]: true,
218
- [`x-checkbox-alignment-${this.alignment}`]: true,
219
- [this.classNames?.root ?? '']: !!this.classNames?.root,
220
- };
221
- const checkboxClasses = {
222
- 'x-checkbox': true,
223
- 'x-checkbox-checked': this.checked,
224
- 'x-checkbox-disabled': this.disabled,
225
- 'x-checkbox-indeterminate': this.indeterminate && !this.checked,
226
- [this.classNames?.checkbox ?? '']: !!this.classNames?.checkbox,
227
- };
228
- const innerClasses = {
229
- 'x-checkbox-inner': true,
230
- [this.classNames?.inner ?? '']: !!this.classNames?.inner,
231
- };
232
- const labelClasses = {
233
- 'x-checkbox-label': true,
234
- [this.classNames?.label ?? '']: !!this.classNames?.label,
235
- };
236
- const wrapperStyles = this.styles?.root;
237
- const checkboxStyles = this.styles?.checkbox;
238
- const innerStyles = this.styles?.inner;
239
- const labelStyles = this.styles?.label;
240
- return (index.h(index.Host, { key: 'a1c7291fd6e4031b6c8d0bea308dd6aea7153ad4', class: wrapperClasses, style: wrapperStyles, onClick: this.handleClick, onKeyDown: this.handleKeyDown, role: "checkbox", "aria-checked": this.indeterminate ? 'mixed' : this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', tabindex: this.disabled ? -1 : 0 }, index.h("span", { key: '59675b4f86cdda584c581cbe30f802d68f6d60e9', class: checkboxClasses, style: checkboxStyles }, index.h("input", { key: 'ff2ff95534df771155a1b2ebd415d8fa0cec147b', ref: (el) => (this.inputEl = el), type: "checkbox", class: "x-checkbox-input", id: this.checkboxId, checked: this.checked, disabled: this.disabled, name: this.name, value: this.value, tabIndex: -1, onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: (e) => e.stopPropagation() }), index.h("span", { key: '3649f0c10c84cd790968df35463c86cbebb16063', class: innerClasses, style: innerStyles })), index.h("span", { key: '29926839fb6291c5cddbf64dcfdfa67ac003729f', class: labelClasses, style: labelStyles }, index.h("slot", { key: 'b8f3d955db9c3370c9bb0f18ef158f64341619b6' }))));
241
- }
242
- static get watchers() { return {
243
- "checked": [{
244
- "handleCheckedChange": 0
245
- }],
246
- "indeterminate": [{
247
- "handleIndeterminateChange": 0
248
- }]
249
- }; }
250
- };
251
- XCheckbox.style = xCheckboxCss();
252
-
253
- const xPaginationCss = () => `@charset "UTF-8";:root{--x-color-primary:#1677ff;--x-color-primary-rgb:22, 119, 255;--x-color-primary-contrast:#ffffff;--x-color-primary-contrast-rgb:255, 255, 255;--x-color-primary-shade:#0958d9;--x-color-primary-tint:#4096ff;--x-color-primary-bg:#e6f4ff;--x-color-primary-bg-hover:#bae0ff;--x-color-primary-border:#91caff;--x-color-primary-border-hover:#69b1ff;--x-color-primary-hover:#4096ff;--x-color-primary-active:#0958d9;--x-color-primary-text:#1677ff;--x-color-primary-text-hover:#4096ff;--x-color-primary-text-active:#0958d9;--x-color-secondary:#3dc2ff;--x-color-secondary-rgb:61, 194, 255;--x-color-secondary-contrast:#ffffff;--x-color-secondary-contrast-rgb:255, 255, 255;--x-color-secondary-shade:#36abe0;--x-color-secondary-tint:#50c8ff;--x-color-success:#52c41a;--x-color-success-rgb:82, 196, 26;--x-color-success-contrast:#ffffff;--x-color-success-contrast-rgb:255, 255, 255;--x-color-success-shade:#389e0d;--x-color-success-tint:#73d13d;--x-color-success-bg:#f6ffed;--x-color-success-bg-hover:#d9f7be;--x-color-success-border:#b7eb8f;--x-color-success-border-hover:#95de64;--x-color-success-hover:#73d13d;--x-color-success-active:#389e0d;--x-color-success-text:#52c41a;--x-color-success-text-hover:#73d13d;--x-color-success-text-active:#389e0d;--x-color-warning:#faad14;--x-color-warning-rgb:250, 173, 20;--x-color-warning-contrast:#000000;--x-color-warning-contrast-rgb:0, 0, 0;--x-color-warning-shade:#d48806;--x-color-warning-tint:#ffc53d;--x-color-warning-bg:#fffbe6;--x-color-warning-bg-hover:#fff1b8;--x-color-warning-border:#ffe58f;--x-color-warning-border-hover:#ffd666;--x-color-warning-hover:#ffc53d;--x-color-warning-active:#d48806;--x-color-warning-text:#faad14;--x-color-warning-text-hover:#ffc53d;--x-color-warning-text-active:#d48806;--x-color-danger:#ff4d4f;--x-color-danger-rgb:255, 77, 79;--x-color-danger-contrast:#ffffff;--x-color-danger-contrast-rgb:255, 255, 255;--x-color-danger-shade:#cf1322;--x-color-danger-tint:#ff7875;--x-color-error:#ff4d4f;--x-color-error-rgb:255, 77, 79;--x-color-error-bg:#fff2f0;--x-color-error-bg-hover:#ffccc7;--x-color-error-border:#ffa39e;--x-color-error-border-hover:#ff7875;--x-color-error-hover:#ff7875;--x-color-error-active:#d9363e;--x-color-error-text:#ff4d4f;--x-color-error-text-hover:#ff7875;--x-color-error-text-active:#d9363e;--x-color-info:#1677ff;--x-color-info-rgb:22, 119, 255;--x-color-info-bg:#e6f4ff;--x-color-info-bg-hover:#bae0ff;--x-color-info-border:#91caff;--x-color-info-border-hover:#69b1ff;--x-color-info-hover:#69b1ff;--x-color-info-active:#0958d9;--x-color-info-text:#1677ff;--x-color-info-text-hover:#69b1ff;--x-color-info-text-active:#0958d9;--x-color-text:rgba(0, 0, 0, 0.88);--x-color-text-secondary:rgba(0, 0, 0, 0.65);--x-color-text-tertiary:rgba(0, 0, 0, 0.45);--x-color-text-quaternary:rgba(0, 0, 0, 0.25);--x-color-text-disabled:rgba(0, 0, 0, 0.25);--x-color-text-placeholder:rgba(0, 0, 0, 0.25);--x-color-text-heading:rgba(0, 0, 0, 0.88);--x-color-text-label:rgba(0, 0, 0, 0.65);--x-color-text-description:rgba(0, 0, 0, 0.45);--x-color-text-light-solid:#ffffff;--x-color-bg-container:#ffffff;--x-color-bg-elevated:#ffffff;--x-color-bg-layout:#f5f5f5;--x-color-bg-spotlight:rgba(0, 0, 0, 0.85);--x-color-bg-mask:rgba(0, 0, 0, 0.45);--x-color-bg-base:#ffffff;--x-color-bg-container-disabled:#f5f5f5;--x-color-bg-container-loading:rgba(255, 255, 255, 0.65);--x-color-white:#ffffff;--x-color-fill:rgba(0, 0, 0, 0.15);--x-color-fill-secondary:rgba(0, 0, 0, 0.06);--x-color-fill-tertiary:rgba(0, 0, 0, 0.04);--x-color-fill-quaternary:rgba(0, 0, 0, 0.02);--x-color-border:#d9d9d9;--x-color-border-secondary:#f0f0f0;--x-color-border-bg:#ffffff;--x-color-split:rgba(5, 5, 5, 0.06);--x-color-dark:#222428;--x-color-dark-rgb:34, 36, 40;--x-color-dark-contrast:#ffffff;--x-color-dark-contrast-rgb:255, 255, 255;--x-color-dark-shade:#1e2023;--x-color-dark-tint:#383a3e;--x-color-medium:#92949c;--x-color-medium-rgb:146, 148, 156;--x-color-medium-contrast:#ffffff;--x-color-medium-contrast-rgb:255, 255, 255;--x-color-medium-shade:#808289;--x-color-medium-tint:#9d9fa6;--x-color-light:#f4f5f8;--x-color-light-rgb:244, 245, 248;--x-color-light-contrast:#000000;--x-color-light-contrast-rgb:0, 0, 0;--x-color-light-shade:#d7d8da;--x-color-light-tint:#f5f6f9;--x-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--x-font-family-code:"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;--x-font-size:14px;--x-font-size-sm:12px;--x-font-size-lg:16px;--x-font-size-xl:20px;--x-font-size-heading-1:38px;--x-font-size-heading-2:30px;--x-font-size-heading-3:24px;--x-font-size-heading-4:20px;--x-font-size-heading-5:16px;--x-line-height:1.5714285714285714;--x-line-height-lg:1.5;--x-line-height-sm:1.6666666666666667;--x-line-height-heading-1:1.2105263157894737;--x-line-height-heading-2:1.2666666666666666;--x-line-height-heading-3:1.3333333333333333;--x-line-height-heading-4:1.4;--x-line-height-heading-5:1.5;--x-font-weight-normal:400;--x-font-weight-medium:500;--x-font-weight-semibold:600;--x-font-weight-strong:600;--x-font-size-base:14px;--x-font-size-xxl:24px;--x-line-height-base:1.5714285714285714;--x-spacing-xxs:4px;--x-spacing-xs:8px;--x-spacing-sm:12px;--x-spacing-md:16px;--x-spacing-lg:20px;--x-spacing-xl:24px;--x-spacing-xxl:32px;--x-spacing-xxxl:48px;--x-margin-xxs:4px;--x-margin-xs:8px;--x-margin-sm:12px;--x-margin-md:16px;--x-margin-lg:24px;--x-margin-xl:32px;--x-margin-xxl:48px;--x-padding-xxs:4px;--x-padding-xs:8px;--x-padding-sm:12px;--x-padding-md:16px;--x-padding-lg:24px;--x-padding-content-horizontal-lg:24px;--x-padding-content-vertical-lg:12px;--x-padding-content-horizontal:16px;--x-padding-content-vertical:12px;--x-padding-content-horizontal-sm:16px;--x-padding-content-vertical-sm:8px;--x-border-radius:6px;--x-border-radius-xs:2px;--x-border-radius-sm:4px;--x-border-radius-lg:8px;--x-border-radius-xl:12px;--x-border-radius-outer:4px;--x-border-radius-base:6px;--x-border-width:1px;--x-border-width-base:1px;--x-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-shadow-secondary:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-shadow-tertiary:0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);--x-shadow-lg:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-secondary:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-tertiary:0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);--x-box-shadow-popover-arrow:2px 2px 5px rgba(0, 0, 0, 0.05);--x-box-shadow-card:0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);--x-box-shadow-drawer-right:-6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-left:6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-up:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-down:0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-tabs-overflow-left:inset 10px 0 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-right:inset -10px 0 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-top:inset 0 10px 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-bottom:inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08);--x-motion-duration-fast:0.1s;--x-motion-duration-mid:0.2s;--x-motion-duration-slow:0.3s;--x-motion-ease-in-out:cubic-bezier(0.645, 0.045, 0.355, 1);--x-motion-ease-out:cubic-bezier(0.215, 0.61, 0.355, 1);--x-motion-ease-in:cubic-bezier(0.55, 0.055, 0.675, 0.19);--x-motion-ease-out-back:cubic-bezier(0.12, 0.4, 0.29, 1.46);--x-motion-ease-in-back:cubic-bezier(0.71, -0.46, 0.88, 0.6);--x-motion-ease-in-out-circle:cubic-bezier(0.78, 0.14, 0.15, 0.86);--x-motion-ease-out-circle:cubic-bezier(0.08, 0.82, 0.17, 1);--x-motion-ease-in-circle:cubic-bezier(0.6, 0.04, 0.98, 0.34);--x-motion-ease-in-quint:cubic-bezier(0.755, 0.05, 0.855, 0.06);--x-motion-ease-out-quint:cubic-bezier(0.23, 1, 0.32, 1);--x-z-index-base:0;--x-z-index-popup-base:1000;--x-z-index-popup:1030;--x-z-index-affix:10;--x-z-index-modal:1000;--x-z-index-modal-mask:1000;--x-z-index-drawer:1000;--x-z-index-popover:1030;--x-z-index-dropdown:1050;--x-z-index-tooltip:1070;--x-z-index-notification:1080;--x-z-index-message:1090;--x-z-index-popconfirm:1060;--x-z-index-table-fixed:10;--x-opacity-loading:0.65;--x-opacity-image:1;--x-opacity-disabled:0.5;--x-control-height:32px;--x-control-height-xs:24px;--x-control-height-sm:24px;--x-control-height-lg:40px;--x-control-radio-size:16px;--x-control-checkbox-size:16px;--x-control-padding-horizontal:12px;--x-control-padding-horizontal-sm:8px;--x-control-outline-width:2px;--x-control-outline:rgba(5, 145, 255, 0.1);--x-control-item-bg-hover:rgba(0, 0, 0, 0.04);--x-control-item-bg-active:#e6f4ff;--x-control-item-bg-active-hover:#bae0ff;--x-control-item-bg-active-disabled:rgba(0, 0, 0, 0.15);--x-control-tmp-outline:rgba(0, 0, 0, 0.02);--x-color-yellow:#fadb14;--x-color-yellow-rgb:250, 219, 20;--x-font-family-base:var(--x-font-family);--x-color-link:#1677ff;--x-color-link-hover:#69b1ff;--x-color-link-active:#0958d9;--x-color-icon:rgba(0, 0, 0, 0.45);--x-color-icon-hover:rgba(0, 0, 0, 0.88);--x-color-highlight:#ff4d4f;--x-color-bg-text-hover:rgba(0, 0, 0, 0.06);--x-color-bg-text-active:rgba(0, 0, 0, 0.15);--x-screen-xs:480px;--x-screen-xs-min:480px;--x-screen-xs-max:575px;--x-screen-sm:576px;--x-screen-sm-min:576px;--x-screen-sm-max:767px;--x-screen-md:768px;--x-screen-md-min:768px;--x-screen-md-max:991px;--x-screen-lg:992px;--x-screen-lg-min:992px;--x-screen-lg-max:1199px;--x-screen-xl:1200px;--x-screen-xl-min:1200px;--x-screen-xl-max:1599px;--x-screen-xxl:1600px;--x-screen-xxl-min:1600px;--x-color-fill-content:rgba(0, 0, 0, 0.06);--x-color-fill-content-hover:rgba(0, 0, 0, 0.15);--x-color-fill-alter:rgba(0, 0, 0, 0.02);--x-scrollbar-width:12px;--x-scrollbar-track-bg:rgba(0, 0, 0, 0.04);--x-scrollbar-thumb-bg:rgba(0, 0, 0, 0.25);--x-scrollbar-thumb-bg-hover:rgba(0, 0, 0, 0.35);--x-menu-dark-bg:#001529;--x-menu-dark-item-bg:#001529;--x-menu-dark-popup-bg:#001529;--x-menu-dark-submenu-item-bg:#000c17}:host{display:-ms-flexbox;display:flex;font-size:var(--x-pagination-font-size, var(--x-font-size-base, 14px));line-height:var(--x-pagination-line-height, var(--x-line-height-base, 1.5714));color:var(--x-pagination-color, var(--x-color-text, rgba(0, 0, 0, 0.88)));-webkit-box-sizing:border-box;box-sizing:border-box}:host(.x-pagination-align-start){-ms-flex-pack:start;justify-content:flex-start}:host(.x-pagination-align-center){-ms-flex-pack:center;justify-content:center}:host(.x-pagination-align-end){-ms-flex-pack:end;justify-content:flex-end}:host(.x-pagination-disabled){cursor:not-allowed;opacity:0.65}:host(.x-pagination-disabled) .x-pagination-item,:host(.x-pagination-disabled) .x-pagination-prev,:host(.x-pagination-disabled) .x-pagination-next,:host(.x-pagination-disabled) .x-pagination-jump-prev,:host(.x-pagination-disabled) .x-pagination-jump-next{cursor:not-allowed;pointer-events:none}:host(.x-pagination-small){font-size:var(--x-pagination-font-size-sm, var(--x-font-size-sm, 12px))}:host(.x-pagination-small) .x-pagination-item,:host(.x-pagination-small) .x-pagination-prev,:host(.x-pagination-small) .x-pagination-next,:host(.x-pagination-small) .x-pagination-jump-prev,:host(.x-pagination-small) .x-pagination-jump-next{min-width:var(--x-pagination-item-size-sm, var(--x-control-height-sm, 24px));height:var(--x-pagination-item-size-sm, var(--x-control-height-sm, 24px));line-height:calc(var(--x-pagination-item-size-sm, var(--x-control-height-sm, 24px)) - 2px)}:host(.x-pagination-small) .x-pagination-options-quick-jumper input{height:var(--x-pagination-item-size-sm, var(--x-control-height-sm, 24px));font-size:var(--x-pagination-font-size-sm, var(--x-font-size-sm, 12px))}:host(.x-pagination-small) .x-pagination-simple-pager-input{width:var(--x-pagination-simple-input-width-sm, 40px);height:var(--x-pagination-item-size-sm, var(--x-control-height-sm, 24px));font-size:var(--x-pagination-font-size-sm, var(--x-font-size-sm, 12px))}:host(.x-pagination-large){font-size:var(--x-pagination-font-size-lg, var(--x-font-size-lg, 16px))}:host(.x-pagination-large) .x-pagination-item,:host(.x-pagination-large) .x-pagination-prev,:host(.x-pagination-large) .x-pagination-next,:host(.x-pagination-large) .x-pagination-jump-prev,:host(.x-pagination-large) .x-pagination-jump-next{min-width:var(--x-pagination-item-size-lg, var(--x-control-height-lg, 40px));height:var(--x-pagination-item-size-lg, var(--x-control-height-lg, 40px));line-height:calc(var(--x-pagination-item-size-lg, var(--x-control-height-lg, 40px)) - 2px)}:host(.x-pagination-large) .x-pagination-options-quick-jumper input{height:var(--x-pagination-item-size-lg, var(--x-control-height-lg, 40px));font-size:var(--x-pagination-font-size-lg, var(--x-font-size-lg, 16px))}:host(.x-pagination-large) .x-pagination-simple-pager-input{width:var(--x-pagination-simple-input-width-lg, 60px);height:var(--x-pagination-item-size-lg, var(--x-control-height-lg, 40px));font-size:var(--x-pagination-font-size-lg, var(--x-font-size-lg, 16px))}.x-pagination{margin:0;padding:0;list-style:none;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;gap:var(--x-pagination-item-margin, var(--x-spacing-xs, 8px))}.x-pagination-item{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:var(--x-pagination-item-size, var(--x-control-height, 32px));height:var(--x-pagination-item-size, var(--x-control-height, 32px));font-family:var(--x-pagination-font-family, var(--x-font-family-base, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif));text-align:center;vertical-align:middle;list-style:none;background-color:var(--x-pagination-item-bg, var(--x-color-bg-container, #ffffff));border:var(--x-pagination-border-width, var(--x-border-width-base, 1px)) solid var(--x-pagination-border-color, var(--x-color-border, #d9d9d9));border-radius:var(--x-pagination-border-radius, var(--x-border-radius-base, 6px));outline:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all var(--x-pagination-motion-duration, var(--x-motion-duration-mid, 0.2s));transition:all var(--x-pagination-motion-duration, var(--x-motion-duration-mid, 0.2s))}.x-pagination-item .x-pagination-item-link{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;padding:0 var(--x-pagination-item-padding, var(--x-spacing-xs, 8px));color:var(--x-pagination-color, var(--x-color-text, rgba(0, 0, 0, 0.88)))}.x-pagination-item:hover:not(.x-pagination-item-active){border-color:var(--x-pagination-border-color-hover, var(--x-color-primary-hover, #4096ff))}.x-pagination-item:hover:not(.x-pagination-item-active) .x-pagination-item-link{color:var(--x-pagination-color-hover, var(--x-color-primary-hover, #4096ff))}.x-pagination-item:focus-visible{outline:2px solid var(--x-pagination-border-color-hover, var(--x-color-primary-hover, #4096ff));outline-offset:2px}.x-pagination-item-active{font-weight:var(--x-pagination-font-weight-active, var(--x-font-weight-semibold, 600));background-color:var(--x-pagination-item-bg-active, var(--x-color-bg-container, #ffffff));border-color:var(--x-pagination-border-color-active, var(--x-color-primary, #1677ff))}.x-pagination-item-active .x-pagination-item-link{color:var(--x-pagination-color-active, var(--x-color-primary, #1677ff))}.x-pagination-item-active:hover{border-color:var(--x-pagination-border-color-active, var(--x-color-primary, #1677ff))}.x-pagination-item-active:hover .x-pagination-item-link{color:var(--x-pagination-color-active, var(--x-color-primary, #1677ff))}.x-pagination-prev,.x-pagination-next{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:var(--x-pagination-item-size, var(--x-control-height, 32px));height:var(--x-pagination-item-size, var(--x-control-height, 32px));text-align:center;vertical-align:middle;list-style:none;background-color:var(--x-pagination-item-bg, var(--x-color-bg-container, #ffffff));border:var(--x-pagination-border-width, var(--x-border-width-base, 1px)) solid var(--x-pagination-border-color, var(--x-color-border, #d9d9d9));border-radius:var(--x-pagination-border-radius, var(--x-border-radius-base, 6px));outline:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all var(--x-pagination-motion-duration, var(--x-motion-duration-mid, 0.2s));transition:all var(--x-pagination-motion-duration, var(--x-motion-duration-mid, 0.2s))}.x-pagination-prev button,.x-pagination-next button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;padding:0;color:var(--x-pagination-color, var(--x-color-text, rgba(0, 0, 0, 0.88)));font-size:inherit;background:transparent;border:none;cursor:inherit}.x-pagination-prev .x-pagination-prev-icon,.x-pagination-prev .x-pagination-next-icon,.x-pagination-next .x-pagination-prev-icon,.x-pagination-next .x-pagination-next-icon{font-size:var(--x-pagination-jump-icon-size, 12px);font-weight:bold}.x-pagination-prev:hover:not(.x-pagination-disabled),.x-pagination-next:hover:not(.x-pagination-disabled){border-color:var(--x-pagination-border-color-hover, var(--x-color-primary-hover, #4096ff))}.x-pagination-prev:hover:not(.x-pagination-disabled) button,.x-pagination-next:hover:not(.x-pagination-disabled) button{color:var(--x-pagination-color-hover, var(--x-color-primary-hover, #4096ff))}.x-pagination-prev:focus-visible,.x-pagination-next:focus-visible{outline:2px solid var(--x-pagination-border-color-hover, var(--x-color-primary-hover, #4096ff));outline-offset:2px}.x-pagination-disabled{cursor:not-allowed;background-color:var(--x-pagination-item-bg-disabled, var(--x-color-bg-container-disabled, rgba(0, 0, 0, 0.04)));border-color:var(--x-pagination-border-color, var(--x-color-border, #d9d9d9))}.x-pagination-disabled button{color:var(--x-pagination-color-disabled, var(--x-color-text-disabled, rgba(0, 0, 0, 0.25)));cursor:not-allowed}.x-pagination-disabled:hover{border-color:var(--x-pagination-border-color, var(--x-color-border, #d9d9d9))}.x-pagination-disabled:hover button{color:var(--x-pagination-color-disabled, var(--x-color-text-disabled, rgba(0, 0, 0, 0.25)))}.x-pagination-jump-prev,.x-pagination-jump-next{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:var(--x-pagination-item-size, var(--x-control-height, 32px));height:var(--x-pagination-item-size, var(--x-control-height, 32px));text-align:center;vertical-align:middle;list-style:none;color:var(--x-pagination-color-quaternary, var(--x-color-text-quaternary, rgba(0, 0, 0, 0.25)));background-color:transparent;border:var(--x-pagination-border-width, var(--x-border-width-base, 1px)) solid transparent;border-radius:var(--x-pagination-border-radius, var(--x-border-radius-base, 6px));cursor:pointer;-webkit-transition:all var(--x-pagination-motion-duration, var(--x-motion-duration-mid, 0.2s));transition:all var(--x-pagination-motion-duration, var(--x-motion-duration-mid, 0.2s))}.x-pagination-jump-prev .x-pagination-item-ellipsis,.x-pagination-jump-next .x-pagination-item-ellipsis{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.x-pagination-jump-prev .x-pagination-item-ellipsis-dot,.x-pagination-jump-next .x-pagination-item-ellipsis-dot{display:block;letter-spacing:2px}.x-pagination-jump-prev .x-pagination-item-ellipsis-icon,.x-pagination-jump-next .x-pagination-item-ellipsis-icon{display:none;color:var(--x-pagination-color-hover, var(--x-color-primary-hover, #4096ff));font-size:var(--x-pagination-jump-icon-size, 12px);font-weight:bold}.x-pagination-jump-prev:hover .x-pagination-item-ellipsis-dot,.x-pagination-jump-next:hover .x-pagination-item-ellipsis-dot{display:none}.x-pagination-jump-prev:hover .x-pagination-item-ellipsis-icon,.x-pagination-jump-next:hover .x-pagination-item-ellipsis-icon{display:block}.x-pagination-jump-prev:focus-visible,.x-pagination-jump-next:focus-visible{outline:2px solid var(--x-pagination-border-color-hover, var(--x-color-primary-hover, #4096ff));outline-offset:2px}.x-pagination-total-text{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;height:var(--x-pagination-item-size, var(--x-control-height, 32px));color:var(--x-pagination-color, var(--x-color-text, rgba(0, 0, 0, 0.88)))}.x-pagination-options{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;list-style:none}.x-pagination-options-quick-jumper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;list-style:none;gap:8px}.x-pagination-options-quick-jumper span{color:var(--x-pagination-color, var(--x-color-text, rgba(0, 0, 0, 0.88)))}.x-pagination-options-quick-jumper input{width:var(--x-pagination-simple-input-width, 50px);height:var(--x-pagination-item-size, var(--x-control-height, 32px));padding:0 8px;font-size:var(--x-pagination-font-size, var(--x-font-size-base, 14px));color:var(--x-pagination-color, var(--x-color-text, rgba(0, 0, 0, 0.88)));text-align:center;background-color:var(--x-pagination-item-bg, var(--x-color-bg-container, #ffffff));border:var(--x-pagination-border-width, var(--x-border-width-base, 1px)) solid var(--x-pagination-border-color, var(--x-color-border, #d9d9d9));border-radius:var(--x-pagination-border-radius, var(--x-border-radius-base, 6px));-webkit-transition:all var(--x-pagination-motion-duration, var(--x-motion-duration-mid, 0.2s));transition:all var(--x-pagination-motion-duration, var(--x-motion-duration-mid, 0.2s))}.x-pagination-options-quick-jumper input:hover{border-color:var(--x-pagination-border-color-hover, var(--x-color-primary-hover, #4096ff))}.x-pagination-options-quick-jumper input:focus{outline:none;border-color:var(--x-pagination-border-color-active, var(--x-color-primary, #1677ff));-webkit-box-shadow:0 0 0 2px rgba(var(--x-pagination-border-color-active, var(--x-color-primary, #1677ff)), 0.2);box-shadow:0 0 0 2px rgba(var(--x-pagination-border-color-active, var(--x-color-primary, #1677ff)), 0.2)}.x-pagination-options-quick-jumper input:disabled{cursor:not-allowed;background-color:var(--x-pagination-item-bg-disabled, var(--x-color-bg-container-disabled, rgba(0, 0, 0, 0.04)));color:var(--x-pagination-color-disabled, var(--x-color-text-disabled, rgba(0, 0, 0, 0.25)))}.x-pagination-options-quick-jumper .x-pagination-options-quick-jumper-button{height:var(--x-pagination-item-size, var(--x-control-height, 32px));padding:0 12px;font-size:var(--x-pagination-font-size, var(--x-font-size-base, 14px));color:var(--x-pagination-color, var(--x-color-text, rgba(0, 0, 0, 0.88)));background-color:var(--x-pagination-item-bg, var(--x-color-bg-container, #ffffff));border:var(--x-pagination-border-width, var(--x-border-width-base, 1px)) solid var(--x-pagination-border-color, var(--x-color-border, #d9d9d9));border-radius:var(--x-pagination-border-radius, var(--x-border-radius-base, 6px));cursor:pointer;-webkit-transition:all var(--x-pagination-motion-duration, var(--x-motion-duration-mid, 0.2s));transition:all var(--x-pagination-motion-duration, var(--x-motion-duration-mid, 0.2s))}.x-pagination-options-quick-jumper .x-pagination-options-quick-jumper-button:hover{border-color:var(--x-pagination-border-color-hover, var(--x-color-primary-hover, #4096ff));color:var(--x-pagination-color-hover, var(--x-color-primary-hover, #4096ff))}.x-pagination-options-quick-jumper .x-pagination-options-quick-jumper-button:disabled{cursor:not-allowed;background-color:var(--x-pagination-item-bg-disabled, var(--x-color-bg-container-disabled, rgba(0, 0, 0, 0.04)));color:var(--x-pagination-color-disabled, var(--x-color-text-disabled, rgba(0, 0, 0, 0.25)))}.x-pagination-simple .x-pagination-prev,.x-pagination-simple .x-pagination-next{background:transparent;border-color:transparent}.x-pagination-simple .x-pagination-prev:hover:not(.x-pagination-disabled),.x-pagination-simple .x-pagination-next:hover:not(.x-pagination-disabled){background-color:var(--x-pagination-item-bg-disabled, var(--x-color-bg-container-disabled, rgba(0, 0, 0, 0.04)))}.x-pagination-simple-pager{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:4px;list-style:none}.x-pagination-simple-pager-input{width:var(--x-pagination-simple-input-width, 50px);height:var(--x-pagination-item-size, var(--x-control-height, 32px));padding:0 8px;font-size:var(--x-pagination-font-size, var(--x-font-size-base, 14px));color:var(--x-pagination-color, var(--x-color-text, rgba(0, 0, 0, 0.88)));text-align:center;background-color:var(--x-pagination-item-bg, var(--x-color-bg-container, #ffffff));border:var(--x-pagination-border-width, var(--x-border-width-base, 1px)) solid var(--x-pagination-border-color, var(--x-color-border, #d9d9d9));border-radius:var(--x-pagination-border-radius, var(--x-border-radius-base, 6px));-webkit-transition:all var(--x-pagination-motion-duration, var(--x-motion-duration-mid, 0.2s));transition:all var(--x-pagination-motion-duration, var(--x-motion-duration-mid, 0.2s))}.x-pagination-simple-pager-input:hover{border-color:var(--x-pagination-border-color-hover, var(--x-color-primary-hover, #4096ff))}.x-pagination-simple-pager-input:focus{outline:none;border-color:var(--x-pagination-border-color-active, var(--x-color-primary, #1677ff));-webkit-box-shadow:0 0 0 2px rgba(var(--x-pagination-border-color-active, var(--x-color-primary, #1677ff)), 0.2);box-shadow:0 0 0 2px rgba(var(--x-pagination-border-color-active, var(--x-color-primary, #1677ff)), 0.2)}.x-pagination-simple-pager-input:-moz-read-only{cursor:not-allowed;background-color:var(--x-pagination-item-bg-disabled, var(--x-color-bg-container-disabled, rgba(0, 0, 0, 0.04)));color:var(--x-pagination-color-disabled, var(--x-color-text-disabled, rgba(0, 0, 0, 0.25)))}.x-pagination-simple-pager-input:disabled,.x-pagination-simple-pager-input:read-only{cursor:not-allowed;background-color:var(--x-pagination-item-bg-disabled, var(--x-color-bg-container-disabled, rgba(0, 0, 0, 0.04)));color:var(--x-pagination-color-disabled, var(--x-color-text-disabled, rgba(0, 0, 0, 0.25)))}.x-pagination-simple-pager-slash{color:var(--x-pagination-color-quaternary, var(--x-color-text-quaternary, rgba(0, 0, 0, 0.25)))}.x-pagination-simple-pager-total{color:var(--x-pagination-color, var(--x-color-text, rgba(0, 0, 0, 0.88)))}`;
254
-
255
- const XPagination = class {
256
- constructor(hostRef) {
257
- index.registerInstance(this, hostRef);
258
- this.xChange = index.createEvent(this, "xChange", 7);
259
- this.xShowSizeChange = index.createEvent(this, "xShowSizeChange", 7);
260
- }
261
- // ==================== Props ====================
262
- /**
263
- * Current page number (controlled).
264
- * @type {number}
265
- * @example
266
- * <x-pagination current={2}></x-pagination>
267
- */
268
- current;
269
- /**
270
- * Default initial page number (uncontrolled).
271
- * @type {number}
272
- * @default 1
273
- * @example
274
- * <x-pagination defaultCurrent={1}></x-pagination>
275
- */
276
- defaultCurrent = 1;
277
- /**
278
- * Default number of data items per page.
279
- * @type {number}
280
- * @default 10
281
- * @example
282
- * <x-pagination defaultPageSize={20}></x-pagination>
283
- */
284
- defaultPageSize = 10;
285
- /**
286
- * Disable pagination interaction.
287
- * @type {boolean}
288
- * @default false
289
- * @example
290
- * <x-pagination disabled></x-pagination>
291
- */
292
- disabled = false;
293
- /**
294
- * Whether to hide pager when there is only one page.
295
- * @type {boolean}
296
- * @default false
297
- * @example
298
- * <x-pagination hideOnSinglePage></x-pagination>
299
- */
300
- hideOnSinglePage = false;
301
- /**
302
- * Number of data items per page (controlled).
303
- * @type {number}
304
- * @example
305
- * <x-pagination pageSize={50}></x-pagination>
306
- */
307
- pageSize;
308
- /**
309
- * Options providing selectable page sizes.
310
- * @type {number[]}
311
- * @default [10, 20, 50, 100]
312
- * @example
313
- * <x-pagination pageSizeOptions={[10, 20, 50, 100]}></x-pagination>
314
- */
315
- pageSizeOptions = [10, 20, 50, 100];
316
- /**
317
- * Minimum total items required to automatically show the size changer.
318
- * @type {number}
319
- * @default 50
320
- * @example
321
- * <x-pagination totalBoundaryShowSizeChanger={100}></x-pagination>
322
- */
323
- totalBoundaryShowSizeChanger = 50;
324
- /**
325
- * Force show/hide size changer regardless of total items.
326
- * @type {boolean}
327
- * @example
328
- * <x-pagination showSizeChanger={true}></x-pagination>
329
- */
330
- showSizeChanger;
331
- /**
332
- * Show quick jumper to skip to a specific page.
333
- * @type {boolean | PaginationQuickJumper}
334
- * @default false
335
- * @example
336
- * <x-pagination showQuickJumper></x-pagination>
337
- */
338
- showQuickJumper = false;
339
- /**
340
- * Function to customize the display of total items and current range.
341
- * @type {(total: number, range: [number, number]) => string}
342
- * @example
343
- * <x-pagination showTotal={(total, range) => `${range[0]}-${range[1]} of ${total} items`}></x-pagination>
344
- */
345
- showTotal;
346
- /**
347
- * Show fewer items in the pager (useful for narrow spaces).
348
- * @type {boolean}
349
- * @default false
350
- * @example
351
- * <x-pagination showLessItems></x-pagination>
352
- */
353
- showLessItems = false;
354
- /**
355
- * Whether to show title attributes on the pager elements.
356
- * @type {boolean}
357
- * @default true
358
- * @example
359
- * <x-pagination showTitle={false}></x-pagination>
360
- */
361
- showTitle = true;
362
- /**
363
- * Enable simple mode navigation.
364
- * @type {boolean | PaginationSimple}
365
- * @default false
366
- * @example
367
- * <x-pagination simple></x-pagination>
368
- */
369
- simple = false;
370
- /**
371
- * Component size: 'small', 'middle', or 'large'.
372
- * @type {PaginationSize}
373
- * @default 'middle'
374
- * @example
375
- * <x-pagination size="small"></x-pagination>
376
- */
377
- size = 'middle';
378
- /**
379
- * Total number of data items.
380
- * @type {number}
381
- * @default 0
382
- * @example
383
- * <x-pagination total={120}></x-pagination>
384
- */
385
- total = 0;
386
- /**
387
- * Alignment of the pagination container.
388
- * @type {PaginationAlign}
389
- * @default 'start'
390
- * @example
391
- * <x-pagination align="center"></x-pagination>
392
- */
393
- align = 'start';
394
- /**
395
- * If set, pagination will be responsive and adjust its UI.
396
- * @type {boolean}
397
- * @default false
398
- * @example
399
- * <x-pagination responsive></x-pagination>
400
- */
401
- responsive = false;
402
- /**
403
- * Custom CSS class names for internal sub-components.
404
- * @type {PaginationClassNames}
405
- * @example
406
- * <x-pagination classNames={{ root: 'my-pg', item: 'pg-item' }}></x-pagination>
407
- */
408
- classNames = {};
409
- /**
410
- * Inline styles for internal sub-components.
411
- * @type {PaginationStyles}
412
- * @example
413
- * <x-pagination styles={{ root: 'margin-top: 10px;' }}></x-pagination>
414
- */
415
- styles = {};
416
- // ==================== Events ====================
417
- /**
418
- * Emitted when current page number or page size is changed.
419
- * Useful for triggering data re-fetching.
420
- * @event xChange
421
- */
422
- xChange;
423
- /**
424
- * Emitted specifically when the page size is changed via the selector.
425
- * @event xShowSizeChange
426
- */
427
- xShowSizeChange;
428
- // ==================== State ====================
429
- /** Internal state tracking current page to handle uncontrolled/controlled logic sync. */
430
- internalCurrent = 1;
431
- /** Internal state tracking current items per page. */
432
- internalPageSize = 10;
433
- /** Temporary string value typed into the jump input before confirming (Enter/Go). */
434
- jumpValue = '';
435
- // ==================== Lifecycle ====================
436
- /** Sets up initial internal state from props during component initialization. */
437
- componentWillLoad() {
438
- this.internalCurrent = this.current ?? this.defaultCurrent;
439
- this.internalPageSize = this.pageSize ?? this.defaultPageSize;
440
- }
441
- /**
442
- * Syncs internal page state when the 'current' prop is updated externally.
443
- * @param {number} newValue - The new page number.
444
- */
445
- watchCurrent(newValue) {
446
- if (newValue !== undefined) {
447
- this.internalCurrent = newValue;
448
- }
449
- }
450
- /**
451
- * Syncs internal page size when the 'pageSize' prop is updated externally.
452
- * @param {number} newValue - The new number of items per page.
453
- */
454
- watchPageSize(newValue) {
455
- if (newValue !== undefined) {
456
- this.internalPageSize = newValue;
457
- }
458
- }
459
- // ==================== Helpers ====================
460
- /** @returns {number} The total number of pages based on total items and current page size. */
461
- get totalPages() {
462
- return Math.max(1, Math.ceil(this.total / this.internalPageSize));
463
- }
464
- /** @returns {boolean} True if the current page is the first page. */
465
- get isFirstPage() {
466
- return this.internalCurrent === 1;
467
- }
468
- /** @returns {boolean} True if the current page is the last page. */
469
- get isLastPage() {
470
- return this.internalCurrent === this.totalPages;
471
- }
472
- /** @returns {boolean} Determines if the page size changer dropdown should be rendered. */
473
- get shouldShowSizeChanger() {
474
- // If explicitly set via prop, use that value
475
- if (this.showSizeChanger !== undefined) {
476
- return this.showSizeChanger;
477
- }
478
- // Otherwise, show it only if the total item count exceeds the boundary threshold
479
- return this.total > this.totalBoundaryShowSizeChanger;
480
- }
481
- /** @returns {[number, number]} The start and end item indices for the current page. */
482
- get range() {
483
- const start = (this.internalCurrent - 1) * this.internalPageSize + 1;
484
- const end = Math.min(this.internalCurrent * this.internalPageSize, this.total);
485
- return [start, end];
486
- }
487
- // ==================== Handlers ====================
488
- /**
489
- * Validates and processes a request to change the current page.
490
- * @param {number} page - The target page number.
491
- */
492
- handlePageChange = (page) => {
493
- // Block navigation if component is disabled
494
- if (this.disabled)
495
- return;
496
- // Clamp the page number between 1 and the maximum total pages
497
- const validPage = Math.max(1, Math.min(page, this.totalPages));
498
- // Only trigger update if the page is actually different from the current one
499
- if (validPage !== this.internalCurrent) {
500
- this.internalCurrent = validPage;
501
- this.xChange.emit({
502
- current: validPage,
503
- pageSize: this.internalPageSize,
504
- });
505
- }
506
- };
507
- /** Navigates to the previous page if available. */
508
- handlePrev = () => {
509
- if (!this.isFirstPage && !this.disabled) {
510
- this.handlePageChange(this.internalCurrent - 1);
511
- }
512
- };
513
- /** Navigates to the next page if available. */
514
- handleNext = () => {
515
- if (!this.isLastPage && !this.disabled) {
516
- this.handlePageChange(this.internalCurrent + 1);
517
- }
518
- };
519
- /** Skips backward by a set amount of pages (3 or 5). */
520
- handleJumpPrev = () => {
521
- const jumpSize = this.showLessItems ? 3 : 5;
522
- this.handlePageChange(Math.max(1, this.internalCurrent - jumpSize));
523
- };
524
- /** Skips forward by a set amount of pages (3 or 5). */
525
- handleJumpNext = () => {
526
- const jumpSize = this.showLessItems ? 3 : 5;
527
- this.handlePageChange(Math.min(this.totalPages, this.internalCurrent + jumpSize));
528
- };
529
- /**
530
- * Handles page size selection changes.
531
- * Recalculates the current page to keep the first visible item consistent.
532
- */
533
- handleSizeChange = (e) => {
534
- const newSize = Number(e.detail.value);
535
- if (newSize !== this.internalPageSize) {
536
- // Calculate the current page in the new sizing to keep the user at the same data point
537
- const newCurrent = Math.ceil((this.range[0]) / newSize);
538
- this.internalPageSize = newSize;
539
- this.internalCurrent = newCurrent;
540
- this.xShowSizeChange.emit({
541
- current: newCurrent,
542
- size: newSize,
543
- });
544
- this.xChange.emit({
545
- current: newCurrent,
546
- pageSize: newSize,
547
- });
548
- }
549
- };
550
- /** Updates the temporary jump input value on every keystroke. */
551
- handleJumpInputChange = (e) => {
552
- const target = e.target;
553
- this.jumpValue = target.value;
554
- };
555
- /** Listens for 'Enter' key on the jump input to trigger navigation. */
556
- handleJumpInputKeyDown = (e) => {
557
- if (e.key === 'Enter') {
558
- this.handleJump();
559
- }
560
- };
561
- /** Executes the jump to the page number currently in the jump input. */
562
- handleJump = () => {
563
- const page = parseInt(this.jumpValue, 10);
564
- // Validate that the input is a valid number within page bounds
565
- if (!isNaN(page) && page >= 1 && page <= this.totalPages) {
566
- this.handlePageChange(page);
567
- }
568
- // Reset the input field after attempt
569
- this.jumpValue = '';
570
- };
571
- // ==================== Render Helpers ====================
572
- /**
573
- * Logic to determine which page numbers should be displayed in the pager.
574
- * Automatically handles ellipsis ('jump-prev', 'jump-next') for large datasets.
575
- *
576
- * Flow:
577
- * 1. Check if total pages fits within the maximum count (5 or 7).
578
- * 2. If it fits, show all pages.
579
- * 3. Else, calculate left/right bounds around the current page.
580
- * 4. Add ellipses if the bounds don't reach the first or last page.
581
- *
582
- * @returns {(number | string)[]} Array of page numbers or jump string identifiers.
583
- */
584
- getPageNumbers() {
585
- const { totalPages, internalCurrent, showLessItems } = this;
586
- const pages = [];
587
- // Determine maximum visible slots based on showLessItems prop
588
- const pagerCount = showLessItems ? 5 : 7;
589
- const halfPagerCount = Math.floor(pagerCount / 2);
590
- if (totalPages <= pagerCount) {
591
- // Total count is small enough: render the full list without ellipsis
592
- for (let i = 1; i <= totalPages; i++) {
593
- pages.push(i);
594
- }
595
- }
596
- else {
597
- // Always keep the first page visible
598
- pages.push(1);
599
- // Calculate the sliding window of middle pages
600
- let left = Math.max(2, internalCurrent - halfPagerCount + 1);
601
- let right = Math.min(totalPages - 1, internalCurrent + halfPagerCount - 1);
602
- // Shift indices if we are too close to either boundary
603
- if (internalCurrent - 1 <= halfPagerCount) {
604
- right = pagerCount - 2;
605
- }
606
- if (totalPages - internalCurrent <= halfPagerCount) {
607
- left = totalPages - pagerCount + 3;
608
- }
609
- // Add left ellipsis if it bypasses pages 2...
610
- if (left > 2) {
611
- pages.push('jump-prev');
612
- }
613
- // Render the middle block of numbers
614
- for (let i = left; i <= right; i++) {
615
- pages.push(i);
616
- }
617
- // Add right ellipsis if it skips pages before the last page
618
- if (right < totalPages - 1) {
619
- pages.push('jump-next');
620
- }
621
- // Always keep the last page visible
622
- pages.push(totalPages);
623
- }
624
- return pages;
625
- }
626
- /**
627
- * Renders a single page item (number or jump button).
628
- * @param {number | string} page - Page number or identifier.
629
- * @param {PaginationItemType} type - Type of the item ('page', 'jump-prev', etc.).
630
- * @param {number} index - For key tracking.
631
- */
632
- renderItem(page, type, index$1) {
633
- const { disabled, internalCurrent, showTitle, classNames, styles } = this;
634
- const isPage = typeof page === 'number';
635
- const isActive = isPage && page === internalCurrent;
636
- const itemClasses = {
637
- 'x-pagination-item': true,
638
- 'x-pagination-item-active': isActive,
639
- 'x-pagination-jump-prev': type === 'jump-prev',
640
- 'x-pagination-jump-next': type === 'jump-next',
641
- [classNames.item || '']: !!classNames.item,
642
- };
643
- // Handle click based on item type
644
- // Flow:
645
- // 1. Checks disabled state.
646
- // 2. If page number, navigates to that page.
647
- // 3. If jump button, navigates forward/backward by jump size.
648
- const handleClick = () => {
649
- if (disabled)
650
- return;
651
- if (isPage) {
652
- this.handlePageChange(page);
653
- }
654
- else if (type === 'jump-prev') {
655
- this.handleJumpPrev();
656
- }
657
- else if (type === 'jump-next') {
658
- this.handleJumpNext();
659
- }
660
- };
661
- const getTitle = () => {
662
- if (!showTitle)
663
- return undefined;
664
- if (isPage)
665
- return String(page);
666
- if (type === 'jump-prev')
667
- return `${locale_service.translate('Pagination.prev_page', {}, 'Previous')} ${this.showLessItems ? 3 : 5} ${locale_service.translate('Pagination.page', {}, 'pages')}`;
668
- if (type === 'jump-next')
669
- return `${locale_service.translate('Pagination.next_page', {}, 'Next')} ${this.showLessItems ? 3 : 5} ${locale_service.translate('Pagination.page', {}, 'pages')}`;
670
- return undefined;
671
- };
672
- const renderContent = () => {
673
- if (isPage) {
674
- return index.h("span", { class: "x-pagination-item-link" }, page);
675
- }
676
- // Ellipsis with double arrow on hover
677
- return (index.h("span", { class: "x-pagination-item-link x-pagination-item-ellipsis" }, index.h("span", { class: "x-pagination-item-ellipsis-dot" }, index.h("x-icon", { name: config.getIcon('more'), rotate: 90 })), index.h("span", { class: "x-pagination-item-ellipsis-icon" }, type === 'jump-prev' ? index.h("x-icon", { name: config.getIcon('doubleArrowLeft') }) : index.h("x-icon", { name: config.getIcon('doubleArrowRight') }))));
678
- };
679
- return (index.h("li", { "data-key": `page-${index$1}`, class: itemClasses, style: styles.item, title: getTitle(), tabIndex: disabled ? -1 : 0, onClick: handleClick, onKeyDown: (e) => e.key === 'Enter' && handleClick(), part: "item", "aria-current": isActive ? 'page' : undefined }, renderContent()));
680
- }
681
- /** Renders the 'backward' navigation button. */
682
- renderPrev() {
683
- const { disabled, isFirstPage, showTitle, classNames, styles } = this;
684
- const isDisabled = disabled || isFirstPage;
685
- const prevClasses = {
686
- 'x-pagination-prev': true,
687
- 'x-pagination-disabled': isDisabled,
688
- [classNames.prev || '']: !!classNames.prev,
689
- };
690
- return (index.h("li", { class: prevClasses, style: styles.prev, title: showTitle ? locale_service.translate('Pagination.prev_page', {}, 'Previous Page') : undefined, tabIndex: isDisabled ? -1 : 0, onClick: this.handlePrev, onKeyDown: (e) => e.key === 'Enter' && this.handlePrev(), part: "prev", "aria-disabled": isDisabled ? 'true' : undefined }, index.h("button", { type: "button", disabled: isDisabled, class: "x-pagination-item-link" }, index.h("span", { class: "x-pagination-prev-icon" }, index.h("x-icon", { name: config.getIcon('arrowLeft') })))));
691
- }
692
- /** Renders the 'forward' navigation button. */
693
- renderNext() {
694
- const { disabled, isLastPage, showTitle, classNames, styles } = this;
695
- const isDisabled = disabled || isLastPage;
696
- const nextClasses = {
697
- 'x-pagination-next': true,
698
- 'x-pagination-disabled': isDisabled,
699
- [classNames.next || '']: !!classNames.next,
700
- };
701
- return (index.h("li", { class: nextClasses, style: styles.next, title: showTitle ? locale_service.translate('Pagination.next_page', {}, 'Next Page') : undefined, tabIndex: isDisabled ? -1 : 0, onClick: this.handleNext, onKeyDown: (e) => e.key === 'Enter' && this.handleNext(), part: "next", "aria-disabled": isDisabled ? 'true' : undefined }, index.h("button", { type: "button", disabled: isDisabled, class: "x-pagination-item-link" }, index.h("span", { class: "x-pagination-next-icon" }, index.h("x-icon", { name: config.getIcon('arrowRight') })))));
702
- }
703
- /** Renders the dropdown for selecting items-per-page. */
704
- renderSizeChanger() {
705
- const { disabled, internalPageSize, pageSizeOptions, classNames, styles } = this;
706
- const optionsClasses = {
707
- 'x-pagination-options': true,
708
- [classNames.options || '']: !!classNames.options,
709
- };
710
- const options = pageSizeOptions.map((size) => ({
711
- value: size,
712
- label: `${size} ${locale_service.translate('Pagination.items_per_page', {}, '/ page')}`,
713
- }));
714
- return (index.h("li", { class: optionsClasses, style: styles.options, part: "options" }, index.h("x-select", { class: "x-pagination-options-size-changer", disabled: disabled, value: internalPageSize, onXChange: this.handleSizeChange, options: options })));
715
- }
716
- /** Renders the numeric input for jumping to a specific page. */
717
- renderQuickJumper() {
718
- const { disabled, showQuickJumper, classNames, styles } = this;
719
- const goButton = typeof showQuickJumper === 'object'
720
- ? showQuickJumper.goButton
721
- : locale_service.translate('global.go', {}, 'Go');
722
- const jumperClasses = {
723
- 'x-pagination-options-quick-jumper': true,
724
- [classNames.jumper || '']: !!classNames.jumper,
725
- };
726
- return (index.h("li", { class: jumperClasses, style: styles.jumper, part: "jumper" }, index.h("span", null, locale_service.translate('Pagination.jump_to', {}, 'Go to')), index.h("input", { type: "text", value: this.jumpValue, disabled: disabled, onInput: this.handleJumpInputChange, onKeyDown: this.handleJumpInputKeyDown }), goButton && (index.h("button", { type: "button", class: "x-pagination-options-quick-jumper-button", disabled: disabled, onClick: this.handleJump }, goButton))));
727
- }
728
- /** Renders the total summary text. */
729
- renderTotal() {
730
- const { showTotal, total, range, classNames, styles } = this;
731
- if (!showTotal)
732
- return null;
733
- const totalText = showTotal(total, range);
734
- const totalClasses = {
735
- 'x-pagination-total-text': true,
736
- [classNames.total || '']: !!classNames.total,
737
- };
738
- return (index.h("li", { class: totalClasses, style: styles.total, part: "total" }, totalText));
739
- }
740
- /** Renders the minimalist 'simple' mode variant. */
741
- renderSimple() {
742
- const { disabled, internalCurrent, totalPages, simple, showTitle, classNames, styles } = this;
743
- const isReadOnly = typeof simple === 'object' && simple.readOnly;
744
- return (index.h("ul", { class: "x-pagination x-pagination-simple", style: styles.root }, this.renderPrev(), index.h("li", { class: "x-pagination-simple-pager", title: showTitle ? `${internalCurrent}/${totalPages}` : undefined }, index.h("input", { type: "text", value: internalCurrent, disabled: disabled, readOnly: isReadOnly, onInput: (e) => {
745
- if (!isReadOnly && !disabled) {
746
- const target = e.target;
747
- const page = parseInt(target.value, 10);
748
- if (!isNaN(page)) {
749
- this.handlePageChange(page);
750
- }
751
- }
752
- }, onKeyDown: (e) => {
753
- if (e.key === 'Enter' && !isReadOnly && !disabled) {
754
- const target = e.target;
755
- const page = parseInt(target.value, 10);
756
- if (!isNaN(page)) {
757
- this.handlePageChange(page);
758
- }
759
- }
760
- }, class: {
761
- 'x-pagination-simple-pager-input': true,
762
- [classNames.item || '']: !!classNames.item,
763
- }, style: styles.item }), index.h("span", { class: "x-pagination-simple-pager-slash" }, "/"), index.h("span", { class: "x-pagination-simple-pager-total" }, totalPages)), this.renderNext(), this.shouldShowSizeChanger && this.renderSizeChanger()));
764
- }
765
- // ==================== Render ====================
766
- /** Main render entry point. Manages visibility and switcher between mode layouts. */
767
- render() {
768
- const { hideOnSinglePage, disabled, size, align, simple, showQuickJumper, classNames, styles, } = this;
769
- // Hide on single page
770
- if (hideOnSinglePage && this.totalPages <= 1) {
771
- return null;
772
- }
773
- // Simple mode
774
- if (simple) {
775
- return (index.h(index.Host, { class: {
776
- 'x-pagination-disabled': disabled,
777
- 'x-pagination-small': size === 'small',
778
- 'x-pagination-large': size === 'large',
779
- [`x-pagination-align-${align}`]: true,
780
- [classNames.root || '']: !!classNames.root,
781
- } }, this.renderSimple()));
782
- }
783
- // Full mode
784
- const pageNumbers = this.getPageNumbers();
785
- return (index.h(index.Host, { class: {
786
- 'x-pagination-disabled': disabled,
787
- 'x-pagination-small': size === 'small',
788
- 'x-pagination-large': size === 'large',
789
- [`x-pagination-align-${align}`]: true,
790
- [classNames.root || '']: !!classNames.root,
791
- } }, index.h("ul", { class: "x-pagination", style: styles.root, part: "pagination", role: "navigation", "aria-label": "Pagination" }, this.renderTotal(), this.renderPrev(), pageNumbers.map((page, index) => {
792
- const type = typeof page === 'number'
793
- ? 'page'
794
- : page;
795
- return this.renderItem(page, type, index);
796
- }), this.renderNext(), this.shouldShowSizeChanger && this.renderSizeChanger(), showQuickJumper && this.renderQuickJumper())));
797
- }
798
- static get watchers() { return {
799
- "current": [{
800
- "watchCurrent": 0
801
- }],
802
- "pageSize": [{
803
- "watchPageSize": 0
804
- }]
805
- }; }
806
- };
807
- XPagination.style = xPaginationCss();
808
-
809
- const xPopoverCss = () => `@charset "UTF-8";:root{--x-color-primary:#1677ff;--x-color-primary-rgb:22, 119, 255;--x-color-primary-contrast:#ffffff;--x-color-primary-contrast-rgb:255, 255, 255;--x-color-primary-shade:#0958d9;--x-color-primary-tint:#4096ff;--x-color-primary-bg:#e6f4ff;--x-color-primary-bg-hover:#bae0ff;--x-color-primary-border:#91caff;--x-color-primary-border-hover:#69b1ff;--x-color-primary-hover:#4096ff;--x-color-primary-active:#0958d9;--x-color-primary-text:#1677ff;--x-color-primary-text-hover:#4096ff;--x-color-primary-text-active:#0958d9;--x-color-secondary:#3dc2ff;--x-color-secondary-rgb:61, 194, 255;--x-color-secondary-contrast:#ffffff;--x-color-secondary-contrast-rgb:255, 255, 255;--x-color-secondary-shade:#36abe0;--x-color-secondary-tint:#50c8ff;--x-color-success:#52c41a;--x-color-success-rgb:82, 196, 26;--x-color-success-contrast:#ffffff;--x-color-success-contrast-rgb:255, 255, 255;--x-color-success-shade:#389e0d;--x-color-success-tint:#73d13d;--x-color-success-bg:#f6ffed;--x-color-success-bg-hover:#d9f7be;--x-color-success-border:#b7eb8f;--x-color-success-border-hover:#95de64;--x-color-success-hover:#73d13d;--x-color-success-active:#389e0d;--x-color-success-text:#52c41a;--x-color-success-text-hover:#73d13d;--x-color-success-text-active:#389e0d;--x-color-warning:#faad14;--x-color-warning-rgb:250, 173, 20;--x-color-warning-contrast:#000000;--x-color-warning-contrast-rgb:0, 0, 0;--x-color-warning-shade:#d48806;--x-color-warning-tint:#ffc53d;--x-color-warning-bg:#fffbe6;--x-color-warning-bg-hover:#fff1b8;--x-color-warning-border:#ffe58f;--x-color-warning-border-hover:#ffd666;--x-color-warning-hover:#ffc53d;--x-color-warning-active:#d48806;--x-color-warning-text:#faad14;--x-color-warning-text-hover:#ffc53d;--x-color-warning-text-active:#d48806;--x-color-danger:#ff4d4f;--x-color-danger-rgb:255, 77, 79;--x-color-danger-contrast:#ffffff;--x-color-danger-contrast-rgb:255, 255, 255;--x-color-danger-shade:#cf1322;--x-color-danger-tint:#ff7875;--x-color-error:#ff4d4f;--x-color-error-rgb:255, 77, 79;--x-color-error-bg:#fff2f0;--x-color-error-bg-hover:#ffccc7;--x-color-error-border:#ffa39e;--x-color-error-border-hover:#ff7875;--x-color-error-hover:#ff7875;--x-color-error-active:#d9363e;--x-color-error-text:#ff4d4f;--x-color-error-text-hover:#ff7875;--x-color-error-text-active:#d9363e;--x-color-info:#1677ff;--x-color-info-rgb:22, 119, 255;--x-color-info-bg:#e6f4ff;--x-color-info-bg-hover:#bae0ff;--x-color-info-border:#91caff;--x-color-info-border-hover:#69b1ff;--x-color-info-hover:#69b1ff;--x-color-info-active:#0958d9;--x-color-info-text:#1677ff;--x-color-info-text-hover:#69b1ff;--x-color-info-text-active:#0958d9;--x-color-text:rgba(0, 0, 0, 0.88);--x-color-text-secondary:rgba(0, 0, 0, 0.65);--x-color-text-tertiary:rgba(0, 0, 0, 0.45);--x-color-text-quaternary:rgba(0, 0, 0, 0.25);--x-color-text-disabled:rgba(0, 0, 0, 0.25);--x-color-text-placeholder:rgba(0, 0, 0, 0.25);--x-color-text-heading:rgba(0, 0, 0, 0.88);--x-color-text-label:rgba(0, 0, 0, 0.65);--x-color-text-description:rgba(0, 0, 0, 0.45);--x-color-text-light-solid:#ffffff;--x-color-bg-container:#ffffff;--x-color-bg-elevated:#ffffff;--x-color-bg-layout:#f5f5f5;--x-color-bg-spotlight:rgba(0, 0, 0, 0.85);--x-color-bg-mask:rgba(0, 0, 0, 0.45);--x-color-bg-base:#ffffff;--x-color-bg-container-disabled:#f5f5f5;--x-color-bg-container-loading:rgba(255, 255, 255, 0.65);--x-color-white:#ffffff;--x-color-fill:rgba(0, 0, 0, 0.15);--x-color-fill-secondary:rgba(0, 0, 0, 0.06);--x-color-fill-tertiary:rgba(0, 0, 0, 0.04);--x-color-fill-quaternary:rgba(0, 0, 0, 0.02);--x-color-border:#d9d9d9;--x-color-border-secondary:#f0f0f0;--x-color-border-bg:#ffffff;--x-color-split:rgba(5, 5, 5, 0.06);--x-color-dark:#222428;--x-color-dark-rgb:34, 36, 40;--x-color-dark-contrast:#ffffff;--x-color-dark-contrast-rgb:255, 255, 255;--x-color-dark-shade:#1e2023;--x-color-dark-tint:#383a3e;--x-color-medium:#92949c;--x-color-medium-rgb:146, 148, 156;--x-color-medium-contrast:#ffffff;--x-color-medium-contrast-rgb:255, 255, 255;--x-color-medium-shade:#808289;--x-color-medium-tint:#9d9fa6;--x-color-light:#f4f5f8;--x-color-light-rgb:244, 245, 248;--x-color-light-contrast:#000000;--x-color-light-contrast-rgb:0, 0, 0;--x-color-light-shade:#d7d8da;--x-color-light-tint:#f5f6f9;--x-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--x-font-family-code:"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;--x-font-size:14px;--x-font-size-sm:12px;--x-font-size-lg:16px;--x-font-size-xl:20px;--x-font-size-heading-1:38px;--x-font-size-heading-2:30px;--x-font-size-heading-3:24px;--x-font-size-heading-4:20px;--x-font-size-heading-5:16px;--x-line-height:1.5714285714285714;--x-line-height-lg:1.5;--x-line-height-sm:1.6666666666666667;--x-line-height-heading-1:1.2105263157894737;--x-line-height-heading-2:1.2666666666666666;--x-line-height-heading-3:1.3333333333333333;--x-line-height-heading-4:1.4;--x-line-height-heading-5:1.5;--x-font-weight-normal:400;--x-font-weight-medium:500;--x-font-weight-semibold:600;--x-font-weight-strong:600;--x-font-size-base:14px;--x-font-size-xxl:24px;--x-line-height-base:1.5714285714285714;--x-spacing-xxs:4px;--x-spacing-xs:8px;--x-spacing-sm:12px;--x-spacing-md:16px;--x-spacing-lg:20px;--x-spacing-xl:24px;--x-spacing-xxl:32px;--x-spacing-xxxl:48px;--x-margin-xxs:4px;--x-margin-xs:8px;--x-margin-sm:12px;--x-margin-md:16px;--x-margin-lg:24px;--x-margin-xl:32px;--x-margin-xxl:48px;--x-padding-xxs:4px;--x-padding-xs:8px;--x-padding-sm:12px;--x-padding-md:16px;--x-padding-lg:24px;--x-padding-content-horizontal-lg:24px;--x-padding-content-vertical-lg:12px;--x-padding-content-horizontal:16px;--x-padding-content-vertical:12px;--x-padding-content-horizontal-sm:16px;--x-padding-content-vertical-sm:8px;--x-border-radius:6px;--x-border-radius-xs:2px;--x-border-radius-sm:4px;--x-border-radius-lg:8px;--x-border-radius-xl:12px;--x-border-radius-outer:4px;--x-border-radius-base:6px;--x-border-width:1px;--x-border-width-base:1px;--x-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-shadow-secondary:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-shadow-tertiary:0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);--x-shadow-lg:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-secondary:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-tertiary:0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);--x-box-shadow-popover-arrow:2px 2px 5px rgba(0, 0, 0, 0.05);--x-box-shadow-card:0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);--x-box-shadow-drawer-right:-6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-left:6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-up:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-down:0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-tabs-overflow-left:inset 10px 0 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-right:inset -10px 0 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-top:inset 0 10px 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-bottom:inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08);--x-motion-duration-fast:0.1s;--x-motion-duration-mid:0.2s;--x-motion-duration-slow:0.3s;--x-motion-ease-in-out:cubic-bezier(0.645, 0.045, 0.355, 1);--x-motion-ease-out:cubic-bezier(0.215, 0.61, 0.355, 1);--x-motion-ease-in:cubic-bezier(0.55, 0.055, 0.675, 0.19);--x-motion-ease-out-back:cubic-bezier(0.12, 0.4, 0.29, 1.46);--x-motion-ease-in-back:cubic-bezier(0.71, -0.46, 0.88, 0.6);--x-motion-ease-in-out-circle:cubic-bezier(0.78, 0.14, 0.15, 0.86);--x-motion-ease-out-circle:cubic-bezier(0.08, 0.82, 0.17, 1);--x-motion-ease-in-circle:cubic-bezier(0.6, 0.04, 0.98, 0.34);--x-motion-ease-in-quint:cubic-bezier(0.755, 0.05, 0.855, 0.06);--x-motion-ease-out-quint:cubic-bezier(0.23, 1, 0.32, 1);--x-z-index-base:0;--x-z-index-popup-base:1000;--x-z-index-popup:1030;--x-z-index-affix:10;--x-z-index-modal:1000;--x-z-index-modal-mask:1000;--x-z-index-drawer:1000;--x-z-index-popover:1030;--x-z-index-dropdown:1050;--x-z-index-tooltip:1070;--x-z-index-notification:1080;--x-z-index-message:1090;--x-z-index-popconfirm:1060;--x-z-index-table-fixed:10;--x-opacity-loading:0.65;--x-opacity-image:1;--x-opacity-disabled:0.5;--x-control-height:32px;--x-control-height-xs:24px;--x-control-height-sm:24px;--x-control-height-lg:40px;--x-control-radio-size:16px;--x-control-checkbox-size:16px;--x-control-padding-horizontal:12px;--x-control-padding-horizontal-sm:8px;--x-control-outline-width:2px;--x-control-outline:rgba(5, 145, 255, 0.1);--x-control-item-bg-hover:rgba(0, 0, 0, 0.04);--x-control-item-bg-active:#e6f4ff;--x-control-item-bg-active-hover:#bae0ff;--x-control-item-bg-active-disabled:rgba(0, 0, 0, 0.15);--x-control-tmp-outline:rgba(0, 0, 0, 0.02);--x-color-yellow:#fadb14;--x-color-yellow-rgb:250, 219, 20;--x-font-family-base:var(--x-font-family);--x-color-link:#1677ff;--x-color-link-hover:#69b1ff;--x-color-link-active:#0958d9;--x-color-icon:rgba(0, 0, 0, 0.45);--x-color-icon-hover:rgba(0, 0, 0, 0.88);--x-color-highlight:#ff4d4f;--x-color-bg-text-hover:rgba(0, 0, 0, 0.06);--x-color-bg-text-active:rgba(0, 0, 0, 0.15);--x-screen-xs:480px;--x-screen-xs-min:480px;--x-screen-xs-max:575px;--x-screen-sm:576px;--x-screen-sm-min:576px;--x-screen-sm-max:767px;--x-screen-md:768px;--x-screen-md-min:768px;--x-screen-md-max:991px;--x-screen-lg:992px;--x-screen-lg-min:992px;--x-screen-lg-max:1199px;--x-screen-xl:1200px;--x-screen-xl-min:1200px;--x-screen-xl-max:1599px;--x-screen-xxl:1600px;--x-screen-xxl-min:1600px;--x-color-fill-content:rgba(0, 0, 0, 0.06);--x-color-fill-content-hover:rgba(0, 0, 0, 0.15);--x-color-fill-alter:rgba(0, 0, 0, 0.02);--x-scrollbar-width:12px;--x-scrollbar-track-bg:rgba(0, 0, 0, 0.04);--x-scrollbar-thumb-bg:rgba(0, 0, 0, 0.25);--x-scrollbar-thumb-bg-hover:rgba(0, 0, 0, 0.35);--x-menu-dark-bg:#001529;--x-menu-dark-item-bg:#001529;--x-menu-dark-popup-bg:#001529;--x-menu-dark-submenu-item-bg:#000c17}:host{display:inline-block;position:relative;font-family:var(--x-popover-font-family, var(--x-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif))}.x-popover-trigger{display:inline-block}.x-popover-content{position:relative;z-index:var(--x-popover-z-index, 1030);display:block;visibility:visible;font-size:var(--x-popover-font-size, var(--x-font-size-base, 14px));line-height:var(--x-popover-line-height, var(--x-line-height-base, 1.5714));word-wrap:break-word;opacity:1;-webkit-transition:opacity var(--x-popover-motion-duration, var(--x-motion-duration-fast, 0.2s)), visibility var(--x-popover-motion-duration, var(--x-motion-duration-fast, 0.2s));transition:opacity var(--x-popover-motion-duration, var(--x-motion-duration-fast, 0.2s)), visibility var(--x-popover-motion-duration, var(--x-motion-duration-fast, 0.2s));white-space:normal}.x-popover-content.x-popover-hidden{opacity:0;visibility:hidden;pointer-events:none}.x-popover-placement-bottom,.x-popover-placement-bottomLeft,.x-popover-placement-bottomRight{-webkit-transform-origin:top center;transform-origin:top center}.x-popover-placement-top,.x-popover-placement-topLeft,.x-popover-placement-topRight{-webkit-transform-origin:bottom center;transform-origin:bottom center}.x-popover-placement-left,.x-popover-placement-leftTop,.x-popover-placement-leftBottom{-webkit-transform-origin:right center;transform-origin:right center}.x-popover-placement-right,.x-popover-placement-rightTop,.x-popover-placement-rightBottom{-webkit-transform-origin:left center;transform-origin:left center}.x-popover-inner{background-color:var(--x-popover-bg, var(--x-color-bg-container, #ffffff));background-clip:padding-box;border-radius:var(--x-popover-border-radius, var(--x-border-radius-lg, 8px));-webkit-box-shadow:var(--x-popover-shadow, var(--x-box-shadow-secondary, 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)));box-shadow:var(--x-popover-shadow, var(--x-box-shadow-secondary, 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)))}.x-popover-title{min-width:var(--x-popover-min-width, 177px);min-height:var(--x-popover-min-height, var(--x-control-height, 32px));margin:0;padding:var(--x-popover-title-padding-block, var(--x-spacing-xxs, 4px)) var(--x-popover-title-padding-inline, var(--x-spacing-md, 16px));color:var(--x-popover-title-color, var(--x-color-text, rgba(0, 0, 0, 0.88)));font-weight:var(--x-popover-title-font-weight, var(--x-font-weight-semibold, 600));border-bottom:var(--x-popover-border-width, var(--x-border-width-base, 1px)) solid var(--x-popover-border-color, var(--x-color-border-secondary, #f0f0f0))}.x-popover-inner-content{padding:var(--x-popover-content-padding-block, var(--x-spacing-sm, 8px)) var(--x-popover-content-padding-inline, var(--x-spacing-md, 16px));color:var(--x-popover-color, var(--x-color-text, rgba(0, 0, 0, 0.88)))}.x-popover-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}[data-placement^=top] .x-popover-arrow{bottom:0;left:50%;-webkit-transform:translateX(-50%) translateY(100%);transform:translateX(-50%) translateY(100%);border-width:var(--x-popover-arrow-size, 6px) var(--x-popover-arrow-size, 6px) 0;border-top-color:var(--x-popover-bg, var(--x-color-bg-container, #ffffff))}[data-placement^=bottom] .x-popover-arrow{top:0;left:50%;-webkit-transform:translateX(-50%) translateY(-100%);transform:translateX(-50%) translateY(-100%);border-width:0 var(--x-popover-arrow-size, 6px) var(--x-popover-arrow-size, 6px);border-bottom-color:var(--x-popover-bg, var(--x-color-bg-container, #ffffff))}[data-placement^=left] .x-popover-arrow{right:0;top:50%;-webkit-transform:translateY(-50%) translateX(100%);transform:translateY(-50%) translateX(100%);border-width:var(--x-popover-arrow-size, 6px) 0 var(--x-popover-arrow-size, 6px) var(--x-popover-arrow-size, 6px);border-left-color:var(--x-popover-bg, var(--x-color-bg-container, #ffffff))}[data-placement^=right] .x-popover-arrow{left:0;top:50%;-webkit-transform:translateY(-50%) translateX(-100%);transform:translateY(-50%) translateX(-100%);border-width:var(--x-popover-arrow-size, 6px) var(--x-popover-arrow-size, 6px) var(--x-popover-arrow-size, 6px) 0;border-right-color:var(--x-popover-bg, var(--x-color-bg-container, #ffffff))}`;
810
-
811
- const XPopover = class {
812
- constructor(hostRef) {
813
- index.registerInstance(this, hostRef);
814
- this.xOpenChange = index.createEvent(this, "xOpenChange", 7);
815
- }
816
- get el() { return index.getElement(this); }
817
- /**
818
- * Title of the popover
819
- * @example
820
- * <x-popover popoverTitle="Notification" />
821
- */
822
- popoverTitle;
823
- /**
824
- * Content of the popover
825
- * @example
826
- * <x-popover content="You have 3 new messages." />
827
- */
828
- content;
829
- /**
830
- * The position of the popover relative to the target
831
- * @example
832
- * <x-popover placement="bottomRight" />
833
- */
834
- placement = 'top';
835
- /**
836
- * Trigger mode
837
- * @example
838
- * <x-popover trigger="hover" />
839
- */
840
- trigger = 'click';
841
- /**
842
- * Whether the popover is visible (controlled)
843
- * @example
844
- * <x-popover open={true} />
845
- */
846
- open;
847
- /**
848
- * Callback when open state changes
849
- * @example
850
- * <x-popover onXOpenChange={(e) => console.log(e.detail)} />
851
- */
852
- xOpenChange;
853
- visible = false;
854
- timer;
855
- portalInstance = null;
856
- triggerEl = null;
857
- watchOpen(newValue) {
858
- if (newValue !== undefined) {
859
- this.visible = newValue;
860
- this.updatePortal();
861
- }
862
- }
863
- componentWillLoad() {
864
- if (this.open !== undefined) {
865
- this.visible = this.open;
866
- }
867
- }
868
- handleClick(ev) {
869
- if (this.trigger === 'click') {
870
- const target = ev.target;
871
- // Check if click is inside portal content
872
- if (this.isClickInPortal(target)) {
873
- return;
874
- }
875
- this.toggle(!this.visible);
876
- }
877
- }
878
- handleMouseEnter() {
879
- if (this.trigger === 'hover') {
880
- this.show();
881
- }
882
- }
883
- handleMouseLeave() {
884
- if (this.trigger === 'hover') {
885
- this.hide();
886
- }
887
- }
888
- isClickInPortal(target) {
889
- const portalEl = this.portalInstance?.getElement();
890
- return portalEl ? portalEl.contains(target) : false;
891
- }
892
- /**
893
- * Toggles the visibility state.
894
- *
895
- * Flow:
896
- * 1. Checks if `open` prop is controlled (not undefined).
897
- * 2. If controlled: Emits `xOpenChange` event with the new state.
898
- * 3. If uncontrolled:
899
- * - Updates internal `visible` state.
900
- * - Calls `updatePortal` to reflect the change in the UI.
901
- *
902
- * @param visible - The desired visibility state.
903
- */
904
- toggle(visible) {
905
- if (this.open !== undefined) {
906
- this.xOpenChange.emit(visible);
907
- }
908
- else {
909
- this.visible = visible;
910
- this.updatePortal();
911
- }
912
- }
913
- /**
914
- * Shows the popover.
915
- * Clears any pending hide timer and calls `toggle(true)`.
916
- */
917
- show() {
918
- clearTimeout(this.timer);
919
- this.toggle(true);
920
- }
921
- /**
922
- * Hides the popover with a small delay.
923
- * The delay prevents flickering when moving mouse quickly between trigger and content.
924
- */
925
- hide() {
926
- this.timer = setTimeout(() => {
927
- this.toggle(false);
928
- }, 100);
929
- }
930
- getTriggerEl() {
931
- if (!this.triggerEl) {
932
- this.triggerEl = this.el.shadowRoot?.querySelector('.x-popover-trigger');
933
- }
934
- return this.triggerEl;
935
- }
936
- /**
937
- * Build popover content element.
938
- *
939
- * Flow:
940
- * 1. Creates `x-popover-content` element.
941
- * 2. Assigns props (title, content, placement).
942
- * 3. If trigger is hover, attaches mouse enter/leave handlers to content (to prevent closing when moving mouse to popover).
943
- * 4. Clones `slot="content"` nodes and appends to popover content if present.
944
- *
945
- * @returns HTMLElement
946
- */
947
- buildPopoverContent() {
948
- const popoverContent = document.createElement('x-popover-content');
949
- // Set properties
950
- popoverContent.popoverTitle = this.popoverTitle;
951
- popoverContent.content = this.content;
952
- popoverContent.placement = this.placement;
953
- popoverContent.hidden = !this.visible;
954
- // Add hover handlers to keep popover open
955
- if (this.trigger === 'hover') {
956
- popoverContent.mouseEnterPopover = () => {
957
- clearTimeout(this.timer);
958
- };
959
- popoverContent.mouseLeavePopover = () => {
960
- this.hide();
961
- };
962
- }
963
- // Clone slot content if available
964
- const contentSlot = this.el.querySelector('[slot="content"]');
965
- if (contentSlot) {
966
- const cloned = contentSlot.cloneNode(true);
967
- popoverContent.appendChild(cloned);
968
- }
969
- return popoverContent;
970
- }
971
- updatePortal() {
972
- if (!this.visible) {
973
- if (this.portalInstance) {
974
- this.portalInstance.destroy();
975
- this.portalInstance = null;
976
- }
977
- return;
978
- }
979
- const contentElement = this.buildPopoverContent();
980
- if (!this.portalInstance) {
981
- this.portalInstance = portalController.PortalController.create({
982
- open: this.visible,
983
- target: this.getTriggerEl(),
984
- placement: this.placement,
985
- zIndex: 1050,
986
- offset: 8, // arrow size + small gap
987
- content: contentElement,
988
- });
989
- }
990
- else {
991
- this.portalInstance.update({
992
- open: this.visible,
993
- target: this.getTriggerEl(),
994
- placement: this.placement,
995
- offset: 8,
996
- content: contentElement,
997
- });
998
- }
999
- }
1000
- disconnectedCallback() {
1001
- clearTimeout(this.timer);
1002
- if (this.portalInstance) {
1003
- this.portalInstance.destroy();
1004
- this.portalInstance = null;
1005
- }
1006
- }
1007
- /**
1008
- * Renders the trigger element wrapper.
1009
- *
1010
- * Flow:
1011
- * 1. Renders a Host element with `x-popover-wrapper` class.
1012
- * 2. Renders a `div` acting as the trigger container.
1013
- * 3. Projects the default slot content (the trigger element).
1014
- *
1015
- * @returns {JSX.Element} The component tree.
1016
- */
1017
- render() {
1018
- return (index.h(index.Host, { key: '37bcdc5da5a0ff94640494ac499ba599d6f27900', class: "x-popover-wrapper" }, index.h("div", { key: 'ce22172182c96e972e4621bd49609baaf08932c0', class: "x-popover-trigger" }, index.h("slot", { key: 'cc3860811241624a4df21471b9f6359477412dd0' }))));
1019
- }
1020
- static get watchers() { return {
1021
- "open": [{
1022
- "watchOpen": 0
1023
- }]
1024
- }; }
1025
- };
1026
- XPopover.style = xPopoverCss();
1027
-
1028
- const popoverContentCss = () => `@charset "UTF-8";:root{--x-color-primary:#1677ff;--x-color-primary-rgb:22, 119, 255;--x-color-primary-contrast:#ffffff;--x-color-primary-contrast-rgb:255, 255, 255;--x-color-primary-shade:#0958d9;--x-color-primary-tint:#4096ff;--x-color-primary-bg:#e6f4ff;--x-color-primary-bg-hover:#bae0ff;--x-color-primary-border:#91caff;--x-color-primary-border-hover:#69b1ff;--x-color-primary-hover:#4096ff;--x-color-primary-active:#0958d9;--x-color-primary-text:#1677ff;--x-color-primary-text-hover:#4096ff;--x-color-primary-text-active:#0958d9;--x-color-secondary:#3dc2ff;--x-color-secondary-rgb:61, 194, 255;--x-color-secondary-contrast:#ffffff;--x-color-secondary-contrast-rgb:255, 255, 255;--x-color-secondary-shade:#36abe0;--x-color-secondary-tint:#50c8ff;--x-color-success:#52c41a;--x-color-success-rgb:82, 196, 26;--x-color-success-contrast:#ffffff;--x-color-success-contrast-rgb:255, 255, 255;--x-color-success-shade:#389e0d;--x-color-success-tint:#73d13d;--x-color-success-bg:#f6ffed;--x-color-success-bg-hover:#d9f7be;--x-color-success-border:#b7eb8f;--x-color-success-border-hover:#95de64;--x-color-success-hover:#73d13d;--x-color-success-active:#389e0d;--x-color-success-text:#52c41a;--x-color-success-text-hover:#73d13d;--x-color-success-text-active:#389e0d;--x-color-warning:#faad14;--x-color-warning-rgb:250, 173, 20;--x-color-warning-contrast:#000000;--x-color-warning-contrast-rgb:0, 0, 0;--x-color-warning-shade:#d48806;--x-color-warning-tint:#ffc53d;--x-color-warning-bg:#fffbe6;--x-color-warning-bg-hover:#fff1b8;--x-color-warning-border:#ffe58f;--x-color-warning-border-hover:#ffd666;--x-color-warning-hover:#ffc53d;--x-color-warning-active:#d48806;--x-color-warning-text:#faad14;--x-color-warning-text-hover:#ffc53d;--x-color-warning-text-active:#d48806;--x-color-danger:#ff4d4f;--x-color-danger-rgb:255, 77, 79;--x-color-danger-contrast:#ffffff;--x-color-danger-contrast-rgb:255, 255, 255;--x-color-danger-shade:#cf1322;--x-color-danger-tint:#ff7875;--x-color-error:#ff4d4f;--x-color-error-rgb:255, 77, 79;--x-color-error-bg:#fff2f0;--x-color-error-bg-hover:#ffccc7;--x-color-error-border:#ffa39e;--x-color-error-border-hover:#ff7875;--x-color-error-hover:#ff7875;--x-color-error-active:#d9363e;--x-color-error-text:#ff4d4f;--x-color-error-text-hover:#ff7875;--x-color-error-text-active:#d9363e;--x-color-info:#1677ff;--x-color-info-rgb:22, 119, 255;--x-color-info-bg:#e6f4ff;--x-color-info-bg-hover:#bae0ff;--x-color-info-border:#91caff;--x-color-info-border-hover:#69b1ff;--x-color-info-hover:#69b1ff;--x-color-info-active:#0958d9;--x-color-info-text:#1677ff;--x-color-info-text-hover:#69b1ff;--x-color-info-text-active:#0958d9;--x-color-text:rgba(0, 0, 0, 0.88);--x-color-text-secondary:rgba(0, 0, 0, 0.65);--x-color-text-tertiary:rgba(0, 0, 0, 0.45);--x-color-text-quaternary:rgba(0, 0, 0, 0.25);--x-color-text-disabled:rgba(0, 0, 0, 0.25);--x-color-text-placeholder:rgba(0, 0, 0, 0.25);--x-color-text-heading:rgba(0, 0, 0, 0.88);--x-color-text-label:rgba(0, 0, 0, 0.65);--x-color-text-description:rgba(0, 0, 0, 0.45);--x-color-text-light-solid:#ffffff;--x-color-bg-container:#ffffff;--x-color-bg-elevated:#ffffff;--x-color-bg-layout:#f5f5f5;--x-color-bg-spotlight:rgba(0, 0, 0, 0.85);--x-color-bg-mask:rgba(0, 0, 0, 0.45);--x-color-bg-base:#ffffff;--x-color-bg-container-disabled:#f5f5f5;--x-color-bg-container-loading:rgba(255, 255, 255, 0.65);--x-color-white:#ffffff;--x-color-fill:rgba(0, 0, 0, 0.15);--x-color-fill-secondary:rgba(0, 0, 0, 0.06);--x-color-fill-tertiary:rgba(0, 0, 0, 0.04);--x-color-fill-quaternary:rgba(0, 0, 0, 0.02);--x-color-border:#d9d9d9;--x-color-border-secondary:#f0f0f0;--x-color-border-bg:#ffffff;--x-color-split:rgba(5, 5, 5, 0.06);--x-color-dark:#222428;--x-color-dark-rgb:34, 36, 40;--x-color-dark-contrast:#ffffff;--x-color-dark-contrast-rgb:255, 255, 255;--x-color-dark-shade:#1e2023;--x-color-dark-tint:#383a3e;--x-color-medium:#92949c;--x-color-medium-rgb:146, 148, 156;--x-color-medium-contrast:#ffffff;--x-color-medium-contrast-rgb:255, 255, 255;--x-color-medium-shade:#808289;--x-color-medium-tint:#9d9fa6;--x-color-light:#f4f5f8;--x-color-light-rgb:244, 245, 248;--x-color-light-contrast:#000000;--x-color-light-contrast-rgb:0, 0, 0;--x-color-light-shade:#d7d8da;--x-color-light-tint:#f5f6f9;--x-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--x-font-family-code:"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;--x-font-size:14px;--x-font-size-sm:12px;--x-font-size-lg:16px;--x-font-size-xl:20px;--x-font-size-heading-1:38px;--x-font-size-heading-2:30px;--x-font-size-heading-3:24px;--x-font-size-heading-4:20px;--x-font-size-heading-5:16px;--x-line-height:1.5714285714285714;--x-line-height-lg:1.5;--x-line-height-sm:1.6666666666666667;--x-line-height-heading-1:1.2105263157894737;--x-line-height-heading-2:1.2666666666666666;--x-line-height-heading-3:1.3333333333333333;--x-line-height-heading-4:1.4;--x-line-height-heading-5:1.5;--x-font-weight-normal:400;--x-font-weight-medium:500;--x-font-weight-semibold:600;--x-font-weight-strong:600;--x-font-size-base:14px;--x-font-size-xxl:24px;--x-line-height-base:1.5714285714285714;--x-spacing-xxs:4px;--x-spacing-xs:8px;--x-spacing-sm:12px;--x-spacing-md:16px;--x-spacing-lg:20px;--x-spacing-xl:24px;--x-spacing-xxl:32px;--x-spacing-xxxl:48px;--x-margin-xxs:4px;--x-margin-xs:8px;--x-margin-sm:12px;--x-margin-md:16px;--x-margin-lg:24px;--x-margin-xl:32px;--x-margin-xxl:48px;--x-padding-xxs:4px;--x-padding-xs:8px;--x-padding-sm:12px;--x-padding-md:16px;--x-padding-lg:24px;--x-padding-content-horizontal-lg:24px;--x-padding-content-vertical-lg:12px;--x-padding-content-horizontal:16px;--x-padding-content-vertical:12px;--x-padding-content-horizontal-sm:16px;--x-padding-content-vertical-sm:8px;--x-border-radius:6px;--x-border-radius-xs:2px;--x-border-radius-sm:4px;--x-border-radius-lg:8px;--x-border-radius-xl:12px;--x-border-radius-outer:4px;--x-border-radius-base:6px;--x-border-width:1px;--x-border-width-base:1px;--x-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-shadow-secondary:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-shadow-tertiary:0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);--x-shadow-lg:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-secondary:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-tertiary:0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);--x-box-shadow-popover-arrow:2px 2px 5px rgba(0, 0, 0, 0.05);--x-box-shadow-card:0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);--x-box-shadow-drawer-right:-6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-left:6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-up:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-down:0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-tabs-overflow-left:inset 10px 0 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-right:inset -10px 0 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-top:inset 0 10px 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-bottom:inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08);--x-motion-duration-fast:0.1s;--x-motion-duration-mid:0.2s;--x-motion-duration-slow:0.3s;--x-motion-ease-in-out:cubic-bezier(0.645, 0.045, 0.355, 1);--x-motion-ease-out:cubic-bezier(0.215, 0.61, 0.355, 1);--x-motion-ease-in:cubic-bezier(0.55, 0.055, 0.675, 0.19);--x-motion-ease-out-back:cubic-bezier(0.12, 0.4, 0.29, 1.46);--x-motion-ease-in-back:cubic-bezier(0.71, -0.46, 0.88, 0.6);--x-motion-ease-in-out-circle:cubic-bezier(0.78, 0.14, 0.15, 0.86);--x-motion-ease-out-circle:cubic-bezier(0.08, 0.82, 0.17, 1);--x-motion-ease-in-circle:cubic-bezier(0.6, 0.04, 0.98, 0.34);--x-motion-ease-in-quint:cubic-bezier(0.755, 0.05, 0.855, 0.06);--x-motion-ease-out-quint:cubic-bezier(0.23, 1, 0.32, 1);--x-z-index-base:0;--x-z-index-popup-base:1000;--x-z-index-popup:1030;--x-z-index-affix:10;--x-z-index-modal:1000;--x-z-index-modal-mask:1000;--x-z-index-drawer:1000;--x-z-index-popover:1030;--x-z-index-dropdown:1050;--x-z-index-tooltip:1070;--x-z-index-notification:1080;--x-z-index-message:1090;--x-z-index-popconfirm:1060;--x-z-index-table-fixed:10;--x-opacity-loading:0.65;--x-opacity-image:1;--x-opacity-disabled:0.5;--x-control-height:32px;--x-control-height-xs:24px;--x-control-height-sm:24px;--x-control-height-lg:40px;--x-control-radio-size:16px;--x-control-checkbox-size:16px;--x-control-padding-horizontal:12px;--x-control-padding-horizontal-sm:8px;--x-control-outline-width:2px;--x-control-outline:rgba(5, 145, 255, 0.1);--x-control-item-bg-hover:rgba(0, 0, 0, 0.04);--x-control-item-bg-active:#e6f4ff;--x-control-item-bg-active-hover:#bae0ff;--x-control-item-bg-active-disabled:rgba(0, 0, 0, 0.15);--x-control-tmp-outline:rgba(0, 0, 0, 0.02);--x-color-yellow:#fadb14;--x-color-yellow-rgb:250, 219, 20;--x-font-family-base:var(--x-font-family);--x-color-link:#1677ff;--x-color-link-hover:#69b1ff;--x-color-link-active:#0958d9;--x-color-icon:rgba(0, 0, 0, 0.45);--x-color-icon-hover:rgba(0, 0, 0, 0.88);--x-color-highlight:#ff4d4f;--x-color-bg-text-hover:rgba(0, 0, 0, 0.06);--x-color-bg-text-active:rgba(0, 0, 0, 0.15);--x-screen-xs:480px;--x-screen-xs-min:480px;--x-screen-xs-max:575px;--x-screen-sm:576px;--x-screen-sm-min:576px;--x-screen-sm-max:767px;--x-screen-md:768px;--x-screen-md-min:768px;--x-screen-md-max:991px;--x-screen-lg:992px;--x-screen-lg-min:992px;--x-screen-lg-max:1199px;--x-screen-xl:1200px;--x-screen-xl-min:1200px;--x-screen-xl-max:1599px;--x-screen-xxl:1600px;--x-screen-xxl-min:1600px;--x-color-fill-content:rgba(0, 0, 0, 0.06);--x-color-fill-content-hover:rgba(0, 0, 0, 0.15);--x-color-fill-alter:rgba(0, 0, 0, 0.02);--x-scrollbar-width:12px;--x-scrollbar-track-bg:rgba(0, 0, 0, 0.04);--x-scrollbar-thumb-bg:rgba(0, 0, 0, 0.25);--x-scrollbar-thumb-bg-hover:rgba(0, 0, 0, 0.35);--x-menu-dark-bg:#001529;--x-menu-dark-item-bg:#001529;--x-menu-dark-popup-bg:#001529;--x-menu-dark-submenu-item-bg:#000c17}:host{display:block;font-family:var(--x-popover-font-family, var(--x-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif));font-size:var(--x-popover-font-size, var(--x-font-size-base, 14px));line-height:var(--x-popover-line-height, var(--x-line-height-base, 1.5714));color:var(--x-popover-color, var(--x-color-text, rgba(0, 0, 0, 0.88)));pointer-events:auto;z-index:var(--x-popover-z-index, 1030)}.x-popover-content{position:relative;display:block;-webkit-animation:x-popover-fade-in 0.2s cubic-bezier(0.23, 1, 0.32, 1);animation:x-popover-fade-in 0.2s cubic-bezier(0.23, 1, 0.32, 1)}@-webkit-keyframes x-popover-fade-in{from{opacity:0;-webkit-transform:scale(0.95);transform:scale(0.95)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes x-popover-fade-in{from{opacity:0;-webkit-transform:scale(0.95);transform:scale(0.95)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.x-popover-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;z-index:10}.x-popover-inner{background-color:var(--x-popover-bg, var(--x-color-bg-container, #ffffff));background-clip:padding-box;border-radius:var(--x-popover-border-radius, var(--x-border-radius-lg, 8px));-webkit-box-shadow:var(--x-popover-shadow, var(--x-box-shadow-secondary, 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)));box-shadow:var(--x-popover-shadow, var(--x-box-shadow-secondary, 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)));overflow:hidden;border:var(--x-popover-border-width, var(--x-border-width-base, 1px)) solid var(--x-popover-border-color, var(--x-color-border-secondary, #f0f0f0))}.x-popover-title{min-width:var(--x-popover-min-width, 177px);margin:0;padding:var(--x-popover-title-padding-block, var(--x-spacing-xxs, 4px)) var(--x-popover-title-padding-inline, var(--x-spacing-md, 16px));color:var(--x-popover-title-color, var(--x-color-text, rgba(0, 0, 0, 0.88)));font-weight:var(--x-popover-title-font-weight, var(--x-font-weight-semibold, 600));border-bottom:var(--x-popover-border-width, var(--x-border-width-base, 1px)) solid var(--x-popover-border-color, var(--x-color-border-secondary, #f0f0f0));background:transparent}.x-popover-inner-content{padding:var(--x-popover-content-padding-block, var(--x-spacing-sm, 8px)) var(--x-popover-content-padding-inline, var(--x-spacing-md, 16px));color:var(--x-popover-color, var(--x-color-text, rgba(0, 0, 0, 0.88)))}[class*=x-popover-placement-bottom]{-webkit-transform-origin:top center;transform-origin:top center;padding-top:var(--x-popover-arrow-size, 6px)}[class*=x-popover-placement-bottom] .x-popover-arrow{top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);border-width:0 var(--x-popover-arrow-size, 6px) var(--x-popover-arrow-size, 6px);border-bottom-color:var(--x-popover-bg, var(--x-color-bg-container, #ffffff))}[class*=x-popover-placement-top]{-webkit-transform-origin:bottom center;transform-origin:bottom center;padding-bottom:var(--x-popover-arrow-size, 6px)}[class*=x-popover-placement-top] .x-popover-arrow{bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);border-width:var(--x-popover-arrow-size, 6px) var(--x-popover-arrow-size, 6px) 0;border-top-color:var(--x-popover-bg, var(--x-color-bg-container, #ffffff))}[class*=x-popover-placement-left]{-webkit-transform-origin:right center;transform-origin:right center;padding-right:var(--x-popover-arrow-size, 6px)}[class*=x-popover-placement-left] .x-popover-arrow{right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);border-width:var(--x-popover-arrow-size, 6px) 0 var(--x-popover-arrow-size, 6px) var(--x-popover-arrow-size, 6px);border-left-color:var(--x-popover-bg, var(--x-color-bg-container, #ffffff))}[class*=x-popover-placement-right]{-webkit-transform-origin:left center;transform-origin:left center;padding-left:var(--x-popover-arrow-size, 6px)}[class*=x-popover-placement-right] .x-popover-arrow{left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);border-width:var(--x-popover-arrow-size, 6px) var(--x-popover-arrow-size, 6px) var(--x-popover-arrow-size, 6px) 0;border-right-color:var(--x-popover-bg, var(--x-color-bg-container, #ffffff))}.x-popover-hidden{display:none !important;opacity:0}`;
1029
-
1030
- const XPopoverContent = class {
1031
- constructor(hostRef) {
1032
- index.registerInstance(this, hostRef);
1033
- }
1034
- get el() { return index.getElement(this); }
1035
- /**
1036
- * Title of the popover.
1037
- * @example
1038
- * <x-popover-content popoverTitle="Title"></x-popover-content>
1039
- */
1040
- popoverTitle;
1041
- /**
1042
- * Content text.
1043
- * @example
1044
- * <x-popover-content content="Details"></x-popover-content>
1045
- */
1046
- content;
1047
- /**
1048
- * Placement of the popover.
1049
- * @example
1050
- * <x-popover-content placement="right"></x-popover-content>
1051
- */
1052
- placement = 'top';
1053
- /**
1054
- * Whether the popover is hidden.
1055
- * @example
1056
- * <x-popover-content hidden></x-popover-content>
1057
- */
1058
- hidden = false;
1059
- /**
1060
- * Custom class for the content.
1061
- * @example
1062
- * <x-popover-content contentClass="my-popover"></x-popover-content>
1063
- */
1064
- contentClass;
1065
- /**
1066
- * Mouse enter handler.
1067
- * @example
1068
- * <x-popover-content mouseEnterPopover={(ev) => console.log(ev)}></x-popover-content>
1069
- */
1070
- mouseEnterPopover;
1071
- /**
1072
- * Mouse leave handler.
1073
- * @example
1074
- * <x-popover-content mouseLeavePopover={(ev) => console.log(ev)}></x-popover-content>
1075
- */
1076
- mouseLeavePopover;
1077
- /**
1078
- * Render popover content, arrow, and slots.
1079
- *
1080
- * Flow:
1081
- * 1. Constructs dynamic class map based on placement and hidden state.
1082
- * 2. Renders Host element with mouse enter/leave listeners (for hover trigger support).
1083
- * 3. Renders the arrow indicator.
1084
- * 4. Renders the inner content wrapper:
1085
- * - Title (if provided).
1086
- * - Content body (text prop + named slot "content").
1087
- *
1088
- * @returns {JSX.Element} The rendered content.
1089
- * @example
1090
- * <x-popover-content content="Hello"></x-popover-content>
1091
- */
1092
- render() {
1093
- const classes = {
1094
- 'x-popover-content': true,
1095
- [`x-popover-placement-${this.placement}`]: true,
1096
- 'x-popover-hidden': this.hidden,
1097
- [this.contentClass || '']: !!this.contentClass,
1098
- };
1099
- return (index.h(index.Host, { key: 'b948dbdb61a8213de272d33c24a3ec20254ee6ff', class: classes, onMouseEnter: (ev) => this.mouseEnterPopover?.(ev), onMouseLeave: (ev) => this.mouseLeavePopover?.(ev) }, index.h("div", { key: '996a05418f154b8a76ec40bc762e82d021672562', class: "x-popover-arrow" }), index.h("div", { key: '48ca4c9f425c776e9422b99627a146bfd18382d7', class: "x-popover-inner" }, this.popoverTitle && (index.h("div", { key: 'e2d31f80e31df45c4415309ac3518a01dd749c0f', class: "x-popover-title" }, this.popoverTitle)), index.h("div", { key: 'e8727b440e39c0f04dba02dfa802ee9c7735adec', class: "x-popover-inner-content" }, this.content, index.h("slot", { key: 'c4872c221f2e639ef106b31589e6f638b1bd8995', name: "content" })))));
1100
- }
1101
- };
1102
- XPopoverContent.style = popoverContentCss();
1103
-
1104
- const xRadioCss = () => `@charset "UTF-8";:root{--x-color-primary:#1677ff;--x-color-primary-rgb:22, 119, 255;--x-color-primary-contrast:#ffffff;--x-color-primary-contrast-rgb:255, 255, 255;--x-color-primary-shade:#0958d9;--x-color-primary-tint:#4096ff;--x-color-primary-bg:#e6f4ff;--x-color-primary-bg-hover:#bae0ff;--x-color-primary-border:#91caff;--x-color-primary-border-hover:#69b1ff;--x-color-primary-hover:#4096ff;--x-color-primary-active:#0958d9;--x-color-primary-text:#1677ff;--x-color-primary-text-hover:#4096ff;--x-color-primary-text-active:#0958d9;--x-color-secondary:#3dc2ff;--x-color-secondary-rgb:61, 194, 255;--x-color-secondary-contrast:#ffffff;--x-color-secondary-contrast-rgb:255, 255, 255;--x-color-secondary-shade:#36abe0;--x-color-secondary-tint:#50c8ff;--x-color-success:#52c41a;--x-color-success-rgb:82, 196, 26;--x-color-success-contrast:#ffffff;--x-color-success-contrast-rgb:255, 255, 255;--x-color-success-shade:#389e0d;--x-color-success-tint:#73d13d;--x-color-success-bg:#f6ffed;--x-color-success-bg-hover:#d9f7be;--x-color-success-border:#b7eb8f;--x-color-success-border-hover:#95de64;--x-color-success-hover:#73d13d;--x-color-success-active:#389e0d;--x-color-success-text:#52c41a;--x-color-success-text-hover:#73d13d;--x-color-success-text-active:#389e0d;--x-color-warning:#faad14;--x-color-warning-rgb:250, 173, 20;--x-color-warning-contrast:#000000;--x-color-warning-contrast-rgb:0, 0, 0;--x-color-warning-shade:#d48806;--x-color-warning-tint:#ffc53d;--x-color-warning-bg:#fffbe6;--x-color-warning-bg-hover:#fff1b8;--x-color-warning-border:#ffe58f;--x-color-warning-border-hover:#ffd666;--x-color-warning-hover:#ffc53d;--x-color-warning-active:#d48806;--x-color-warning-text:#faad14;--x-color-warning-text-hover:#ffc53d;--x-color-warning-text-active:#d48806;--x-color-danger:#ff4d4f;--x-color-danger-rgb:255, 77, 79;--x-color-danger-contrast:#ffffff;--x-color-danger-contrast-rgb:255, 255, 255;--x-color-danger-shade:#cf1322;--x-color-danger-tint:#ff7875;--x-color-error:#ff4d4f;--x-color-error-rgb:255, 77, 79;--x-color-error-bg:#fff2f0;--x-color-error-bg-hover:#ffccc7;--x-color-error-border:#ffa39e;--x-color-error-border-hover:#ff7875;--x-color-error-hover:#ff7875;--x-color-error-active:#d9363e;--x-color-error-text:#ff4d4f;--x-color-error-text-hover:#ff7875;--x-color-error-text-active:#d9363e;--x-color-info:#1677ff;--x-color-info-rgb:22, 119, 255;--x-color-info-bg:#e6f4ff;--x-color-info-bg-hover:#bae0ff;--x-color-info-border:#91caff;--x-color-info-border-hover:#69b1ff;--x-color-info-hover:#69b1ff;--x-color-info-active:#0958d9;--x-color-info-text:#1677ff;--x-color-info-text-hover:#69b1ff;--x-color-info-text-active:#0958d9;--x-color-text:rgba(0, 0, 0, 0.88);--x-color-text-secondary:rgba(0, 0, 0, 0.65);--x-color-text-tertiary:rgba(0, 0, 0, 0.45);--x-color-text-quaternary:rgba(0, 0, 0, 0.25);--x-color-text-disabled:rgba(0, 0, 0, 0.25);--x-color-text-placeholder:rgba(0, 0, 0, 0.25);--x-color-text-heading:rgba(0, 0, 0, 0.88);--x-color-text-label:rgba(0, 0, 0, 0.65);--x-color-text-description:rgba(0, 0, 0, 0.45);--x-color-text-light-solid:#ffffff;--x-color-bg-container:#ffffff;--x-color-bg-elevated:#ffffff;--x-color-bg-layout:#f5f5f5;--x-color-bg-spotlight:rgba(0, 0, 0, 0.85);--x-color-bg-mask:rgba(0, 0, 0, 0.45);--x-color-bg-base:#ffffff;--x-color-bg-container-disabled:#f5f5f5;--x-color-bg-container-loading:rgba(255, 255, 255, 0.65);--x-color-white:#ffffff;--x-color-fill:rgba(0, 0, 0, 0.15);--x-color-fill-secondary:rgba(0, 0, 0, 0.06);--x-color-fill-tertiary:rgba(0, 0, 0, 0.04);--x-color-fill-quaternary:rgba(0, 0, 0, 0.02);--x-color-border:#d9d9d9;--x-color-border-secondary:#f0f0f0;--x-color-border-bg:#ffffff;--x-color-split:rgba(5, 5, 5, 0.06);--x-color-dark:#222428;--x-color-dark-rgb:34, 36, 40;--x-color-dark-contrast:#ffffff;--x-color-dark-contrast-rgb:255, 255, 255;--x-color-dark-shade:#1e2023;--x-color-dark-tint:#383a3e;--x-color-medium:#92949c;--x-color-medium-rgb:146, 148, 156;--x-color-medium-contrast:#ffffff;--x-color-medium-contrast-rgb:255, 255, 255;--x-color-medium-shade:#808289;--x-color-medium-tint:#9d9fa6;--x-color-light:#f4f5f8;--x-color-light-rgb:244, 245, 248;--x-color-light-contrast:#000000;--x-color-light-contrast-rgb:0, 0, 0;--x-color-light-shade:#d7d8da;--x-color-light-tint:#f5f6f9;--x-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--x-font-family-code:"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;--x-font-size:14px;--x-font-size-sm:12px;--x-font-size-lg:16px;--x-font-size-xl:20px;--x-font-size-heading-1:38px;--x-font-size-heading-2:30px;--x-font-size-heading-3:24px;--x-font-size-heading-4:20px;--x-font-size-heading-5:16px;--x-line-height:1.5714285714285714;--x-line-height-lg:1.5;--x-line-height-sm:1.6666666666666667;--x-line-height-heading-1:1.2105263157894737;--x-line-height-heading-2:1.2666666666666666;--x-line-height-heading-3:1.3333333333333333;--x-line-height-heading-4:1.4;--x-line-height-heading-5:1.5;--x-font-weight-normal:400;--x-font-weight-medium:500;--x-font-weight-semibold:600;--x-font-weight-strong:600;--x-font-size-base:14px;--x-font-size-xxl:24px;--x-line-height-base:1.5714285714285714;--x-spacing-xxs:4px;--x-spacing-xs:8px;--x-spacing-sm:12px;--x-spacing-md:16px;--x-spacing-lg:20px;--x-spacing-xl:24px;--x-spacing-xxl:32px;--x-spacing-xxxl:48px;--x-margin-xxs:4px;--x-margin-xs:8px;--x-margin-sm:12px;--x-margin-md:16px;--x-margin-lg:24px;--x-margin-xl:32px;--x-margin-xxl:48px;--x-padding-xxs:4px;--x-padding-xs:8px;--x-padding-sm:12px;--x-padding-md:16px;--x-padding-lg:24px;--x-padding-content-horizontal-lg:24px;--x-padding-content-vertical-lg:12px;--x-padding-content-horizontal:16px;--x-padding-content-vertical:12px;--x-padding-content-horizontal-sm:16px;--x-padding-content-vertical-sm:8px;--x-border-radius:6px;--x-border-radius-xs:2px;--x-border-radius-sm:4px;--x-border-radius-lg:8px;--x-border-radius-xl:12px;--x-border-radius-outer:4px;--x-border-radius-base:6px;--x-border-width:1px;--x-border-width-base:1px;--x-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-shadow-secondary:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-shadow-tertiary:0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);--x-shadow-lg:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-secondary:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-tertiary:0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);--x-box-shadow-popover-arrow:2px 2px 5px rgba(0, 0, 0, 0.05);--x-box-shadow-card:0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);--x-box-shadow-drawer-right:-6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-left:6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-up:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-down:0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-tabs-overflow-left:inset 10px 0 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-right:inset -10px 0 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-top:inset 0 10px 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-bottom:inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08);--x-motion-duration-fast:0.1s;--x-motion-duration-mid:0.2s;--x-motion-duration-slow:0.3s;--x-motion-ease-in-out:cubic-bezier(0.645, 0.045, 0.355, 1);--x-motion-ease-out:cubic-bezier(0.215, 0.61, 0.355, 1);--x-motion-ease-in:cubic-bezier(0.55, 0.055, 0.675, 0.19);--x-motion-ease-out-back:cubic-bezier(0.12, 0.4, 0.29, 1.46);--x-motion-ease-in-back:cubic-bezier(0.71, -0.46, 0.88, 0.6);--x-motion-ease-in-out-circle:cubic-bezier(0.78, 0.14, 0.15, 0.86);--x-motion-ease-out-circle:cubic-bezier(0.08, 0.82, 0.17, 1);--x-motion-ease-in-circle:cubic-bezier(0.6, 0.04, 0.98, 0.34);--x-motion-ease-in-quint:cubic-bezier(0.755, 0.05, 0.855, 0.06);--x-motion-ease-out-quint:cubic-bezier(0.23, 1, 0.32, 1);--x-z-index-base:0;--x-z-index-popup-base:1000;--x-z-index-popup:1030;--x-z-index-affix:10;--x-z-index-modal:1000;--x-z-index-modal-mask:1000;--x-z-index-drawer:1000;--x-z-index-popover:1030;--x-z-index-dropdown:1050;--x-z-index-tooltip:1070;--x-z-index-notification:1080;--x-z-index-message:1090;--x-z-index-popconfirm:1060;--x-z-index-table-fixed:10;--x-opacity-loading:0.65;--x-opacity-image:1;--x-opacity-disabled:0.5;--x-control-height:32px;--x-control-height-xs:24px;--x-control-height-sm:24px;--x-control-height-lg:40px;--x-control-radio-size:16px;--x-control-checkbox-size:16px;--x-control-padding-horizontal:12px;--x-control-padding-horizontal-sm:8px;--x-control-outline-width:2px;--x-control-outline:rgba(5, 145, 255, 0.1);--x-control-item-bg-hover:rgba(0, 0, 0, 0.04);--x-control-item-bg-active:#e6f4ff;--x-control-item-bg-active-hover:#bae0ff;--x-control-item-bg-active-disabled:rgba(0, 0, 0, 0.15);--x-control-tmp-outline:rgba(0, 0, 0, 0.02);--x-color-yellow:#fadb14;--x-color-yellow-rgb:250, 219, 20;--x-font-family-base:var(--x-font-family);--x-color-link:#1677ff;--x-color-link-hover:#69b1ff;--x-color-link-active:#0958d9;--x-color-icon:rgba(0, 0, 0, 0.45);--x-color-icon-hover:rgba(0, 0, 0, 0.88);--x-color-highlight:#ff4d4f;--x-color-bg-text-hover:rgba(0, 0, 0, 0.06);--x-color-bg-text-active:rgba(0, 0, 0, 0.15);--x-screen-xs:480px;--x-screen-xs-min:480px;--x-screen-xs-max:575px;--x-screen-sm:576px;--x-screen-sm-min:576px;--x-screen-sm-max:767px;--x-screen-md:768px;--x-screen-md-min:768px;--x-screen-md-max:991px;--x-screen-lg:992px;--x-screen-lg-min:992px;--x-screen-lg-max:1199px;--x-screen-xl:1200px;--x-screen-xl-min:1200px;--x-screen-xl-max:1599px;--x-screen-xxl:1600px;--x-screen-xxl-min:1600px;--x-color-fill-content:rgba(0, 0, 0, 0.06);--x-color-fill-content-hover:rgba(0, 0, 0, 0.15);--x-color-fill-alter:rgba(0, 0, 0, 0.02);--x-scrollbar-width:12px;--x-scrollbar-track-bg:rgba(0, 0, 0, 0.04);--x-scrollbar-thumb-bg:rgba(0, 0, 0, 0.25);--x-scrollbar-thumb-bg-hover:rgba(0, 0, 0, 0.35);--x-menu-dark-bg:#001529;--x-menu-dark-item-bg:#001529;--x-menu-dark-popup-bg:#001529;--x-menu-dark-submenu-item-bg:#000c17}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;line-height:1;cursor:pointer;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;font-size:var(--x-radio-font-size, var(--x-font-size, 14px));font-family:inherit;color:var(--x-radio-label-color, var(--x-color-text, rgba(0, 0, 0, 0.88)));list-style:none;outline:none}:host(:focus-visible){outline:2px solid var(--x-color-primary-border, #91caff);outline-offset:1px;border-radius:4px}:host(.x-radio-wrapper-disabled){cursor:not-allowed;color:var(--x-radio-label-color-disabled, var(--x-color-text-disabled, rgba(0, 0, 0, 0.25)))}.x-radio{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;line-height:1;white-space:nowrap;outline:none;cursor:pointer;vertical-align:sub}.x-radio-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0;margin:0;padding:0}.x-radio-inner{position:relative;top:0;left:0;display:block;width:var(--x-radio-size, var(--x-control-radio-size, 16px));height:var(--x-radio-size, var(--x-control-radio-size, 16px));background-color:var(--x-radio-bg, var(--x-color-bg-container, #ffffff));border:var(--x-radio-border-width, var(--x-border-width-base, 1px)) solid var(--x-radio-border-color, var(--x-color-border, #d9d9d9));border-radius:50%;-webkit-transition:all var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86)));transition:all var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86)))}.x-radio-inner::after{position:absolute;top:50%;left:50%;display:block;width:var(--x-radio-dot-size, var(--x-spacing-xs, 8px));height:var(--x-radio-dot-size, var(--x-spacing-xs, 8px));margin-top:calc(var(--x-radio-dot-size, var(--x-spacing-xs, 8px)) / -2);margin-left:calc(var(--x-radio-dot-size, var(--x-spacing-xs, 8px)) / -2);background-color:var(--x-radio-dot-color, var(--x-color-primary, #1677ff));border-top:0;border-left:0;border-radius:50%;-webkit-transform:scale(0);transform:scale(0);opacity:0;-webkit-transition:all var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86)));transition:all var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86)));content:""}.x-radio:not(.x-radio-disabled):hover .x-radio-inner{border-color:var(--x-radio-border-color-hover, var(--x-color-primary, #1677ff))}:host(.x-radio-wrapper-checked) .x-radio-inner,.x-radio-checked .x-radio-inner{border-color:var(--x-radio-color, var(--x-color-primary, #1677ff));background-color:var(--x-radio-bg, var(--x-color-bg-container, #ffffff))}:host(.x-radio-wrapper-checked) .x-radio-inner::after,.x-radio-checked .x-radio-inner::after{-webkit-transform:scale(0.625);transform:scale(0.625);-webkit-transform:scale(1);transform:scale(1);opacity:1;-webkit-transition:opacity var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86))), background-color var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86))), -webkit-transform var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86)));transition:opacity var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86))), background-color var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86))), -webkit-transform var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86)));transition:transform var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86))), opacity var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86))), background-color var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86)));transition:transform var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86))), opacity var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86))), background-color var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86))), -webkit-transform var(--x-radio-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-radio-motion-timing, var(--x-motion-ease-in-out-circle, cubic-bezier(0.78, 0.14, 0.15, 0.86)))}:host(.x-radio-wrapper-checked) .x-radio:not(.x-radio-disabled):hover .x-radio-inner,.x-radio-checked:not(.x-radio-disabled):hover .x-radio-inner{border-color:var(--x-radio-color-hover, var(--x-color-primary-hover, #4096ff))}:host(:focus-visible) .x-radio-inner,.x-radio-input:focus-visible+.x-radio-inner{-webkit-box-shadow:0 0 0 3px var(--x-color-primary-shadow, rgba(22, 119, 255, 0.12));box-shadow:0 0 0 3px var(--x-color-primary-shadow, rgba(22, 119, 255, 0.12))}:host(.x-radio-wrapper-disabled) .x-radio,.x-radio-disabled{cursor:not-allowed}:host(.x-radio-wrapper-disabled) .x-radio-input,.x-radio-disabled .x-radio-input{cursor:not-allowed}:host(.x-radio-wrapper-disabled) .x-radio-inner,.x-radio-disabled .x-radio-inner{background-color:var(--x-radio-bg-disabled, var(--x-color-bg-container-disabled, rgba(0, 0, 0, 0.04)));border-color:var(--x-radio-border-color-disabled, var(--x-color-border, #d9d9d9)) !important;cursor:not-allowed}:host(.x-radio-wrapper-disabled) .x-radio-inner::after,.x-radio-disabled .x-radio-inner::after{background-color:var(--x-radio-dot-color-disabled, var(--x-color-text-quaternary, rgba(0, 0, 0, 0.25)))}:host(.x-radio-wrapper-disabled.x-radio-wrapper-checked) .x-radio-inner::after,.x-radio-disabled.x-radio-checked .x-radio-inner::after{-webkit-transform:scale(1);transform:scale(1);opacity:1}.x-radio-label{padding-right:var(--x-radio-label-padding, var(--x-spacing-xs, 8px));padding-left:var(--x-radio-label-padding, var(--x-spacing-xs, 8px));line-height:1.5715;word-break:break-all}:host(.x-radio-wrapper-disabled) .x-radio-label{color:var(--x-radio-label-color-disabled, var(--x-color-text-disabled, rgba(0, 0, 0, 0.25)));cursor:not-allowed}:host(.x-radio-placement-start){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.x-radio-placement-start) .x-radio-label{padding-right:var(--x-radio-label-padding, var(--x-spacing-xs, 8px));padding-left:0}:host(.x-radio-placement-end){-ms-flex-direction:row;flex-direction:row}:host(.x-radio-placement-end) .x-radio-label{padding-left:var(--x-radio-label-padding, var(--x-spacing-xs, 8px));padding-right:0}:host(.x-radio-placement-fixed){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.x-radio-placement-fixed) .x-radio-label{padding-right:var(--x-radio-label-padding, var(--x-spacing-xs, 8px));padding-left:0;width:var(--x-radio-label-width, 100px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}:host(.x-radio-placement-stacked){-ms-flex-direction:column-reverse;flex-direction:column-reverse;gap:var(--x-radio-label-padding, var(--x-spacing-xs, 8px))}:host(.x-radio-placement-stacked) .x-radio-label{padding:0;width:100%;text-align:center}:host(.x-radio-alignment-start){-ms-flex-align:start;align-items:flex-start}:host(.x-radio-alignment-center){-ms-flex-align:center;align-items:center}:host(.x-radio-alignment-end){-ms-flex-align:end;align-items:flex-end}`;
1105
-
1106
- const XRadio = class {
1107
- constructor(hostRef) {
1108
- index.registerInstance(this, hostRef);
1109
- this.xChange = index.createEvent(this, "xChange", 7);
1110
- this.xFocus = index.createEvent(this, "xFocus", 7);
1111
- this.xBlur = index.createEvent(this, "xBlur", 7);
1112
- }
1113
- get el() { return index.getElement(this); }
1114
- /**
1115
- * Input element reference for focus management.
1116
- */
1117
- inputEl;
1118
- // ==================== Props ====================
1119
- /**
1120
- * Whether the radio is automatically focused on mount.
1121
- * @default false
1122
- * @example
1123
- * <x-radio autoFocus></x-radio>
1124
- */
1125
- autoFocus = false;
1126
- /**
1127
- * Whether the radio is checked (controlled mode).
1128
- * @example
1129
- * <x-radio checked></x-radio>
1130
- */
1131
- checked = false;
1132
- /**
1133
- * Whether the radio is checked by default (uncontrolled mode).
1134
- * @default false
1135
- * @example
1136
- * <x-radio defaultChecked></x-radio>
1137
- */
1138
- defaultChecked = false;
1139
- /**
1140
- * Whether the radio is disabled.
1141
- * @default false
1142
- * @example
1143
- * <x-radio disabled></x-radio>
1144
- */
1145
- disabled = false;
1146
- /**
1147
- * The name attribute of the radio input.
1148
- * @example
1149
- * <x-radio name="group1"></x-radio>
1150
- */
1151
- name;
1152
- /**
1153
- * Radio label placement.
1154
- * @default 'start'
1155
- * @example
1156
- * <x-radio placement="end"></x-radio>
1157
- */
1158
- placement = 'start';
1159
- /**
1160
- * Radio label alignment.
1161
- * @default 'center'
1162
- */
1163
- alignment = 'center';
1164
- /**
1165
- * The value of the radio.
1166
- * @example
1167
- * <x-radio value="A"></x-radio>
1168
- */
1169
- value;
1170
- /**
1171
- * Custom class names for radio parts.
1172
- * @example
1173
- * <x-radio classNames={{ root: 'my-radio' }}></x-radio>
1174
- */
1175
- classNames;
1176
- /**
1177
- * Custom styles for radio parts.
1178
- * @example
1179
- * <x-radio styles={{ root: 'margin: 4px;' }}></x-radio>
1180
- */
1181
- styles;
1182
- /**
1183
- * Unique identifier for the radio.
1184
- * @example
1185
- * <x-radio radioId="opt-a"></x-radio>
1186
- */
1187
- radioId;
1188
- // ==================== Events ====================
1189
- /**
1190
- * Callback fired when the radio state changes.
1191
- * @example
1192
- * <x-radio onXChange={(ev) => console.log(ev.detail)}></x-radio>
1193
- */
1194
- xChange;
1195
- /**
1196
- * Callback fired when the radio is focused.
1197
- * @example
1198
- * <x-radio onXFocus={() => {}}></x-radio>
1199
- */
1200
- xFocus;
1201
- /**
1202
- * Callback fired when the radio loses focus.
1203
- * @example
1204
- * <x-radio onXBlur={() => {}}></x-radio>
1205
- */
1206
- xBlur;
1207
- // ==================== Lifecycle ====================
1208
- /**
1209
- * Component lifecycle method called before loading.
1210
- * Syncs the internal checked state with defaultChecked if provided.
1211
- */
1212
- componentWillLoad() {
1213
- if (this.defaultChecked && !this.checked) {
1214
- this.checked = true;
1215
- }
1216
- }
1217
- /**
1218
- * Component lifecycle method called after loading.
1219
- * Handles auto-focus behavior if enabled.
1220
- */
1221
- componentDidLoad() {
1222
- if (this.autoFocus && this.inputEl) {
1223
- this.inputEl.focus();
1224
- }
1225
- }
1226
- // ==================== Watchers ====================
1227
- /**
1228
- * Watcher for checked prop changes.
1229
- * Can be used to sync with parent components or trigger side effects.
1230
- */
1231
- handleCheckedChange() {
1232
- // Sync with parent if needed
1233
- }
1234
- // ==================== Methods ====================
1235
- /**
1236
- * Focus the radio input programmatically.
1237
- * @returns Promise<void> - Resolves when focus is set.
1238
- * @example
1239
- * const radio = document.querySelector('x-radio');
1240
- * await radio.setFocus();
1241
- */
1242
- async setFocus() {
1243
- this.inputEl?.focus();
1244
- }
1245
- /**
1246
- * Remove focus from the radio input programmatically.
1247
- * @returns Promise<void> - Resolves when focus is removed.
1248
- * @example
1249
- * const radio = document.querySelector('x-radio');
1250
- * await radio.removeFocus();
1251
- */
1252
- async removeFocus() {
1253
- this.inputEl?.blur();
1254
- }
1255
- // ==================== Private Methods ====================
1256
- /**
1257
- * Handles click events on the radio component.
1258
- *
1259
- * Flow:
1260
- * 1. Checks if the component is disabled; if so, prevents default action and stops propagation.
1261
- * 2. Checks if the radio is currently unchecked (since radio buttons cannot be unchecked by clicking).
1262
- * 3. If unchecked, updates the checked state to true.
1263
- * 4. Emits the `xChange` event with the new state and original event.
1264
- *
1265
- * @param e - The mouse event triggered by user click.
1266
- */
1267
- handleClick = (e) => {
1268
- if (this.disabled) {
1269
- e.preventDefault();
1270
- e.stopPropagation();
1271
- return;
1272
- }
1273
- // Radio buttons can only be checked, not unchecked
1274
- if (!this.checked) {
1275
- this.checked = true;
1276
- this.xChange.emit({
1277
- value: this.value,
1278
- checked: true,
1279
- nativeEvent: e,
1280
- });
1281
- }
1282
- };
1283
- /**
1284
- * Handles focus events on the internal input element.
1285
- * Emits the `xFocus` event to notify parent components.
1286
- */
1287
- handleFocus = () => {
1288
- this.xFocus.emit();
1289
- };
1290
- /**
1291
- * Handles blur events on the internal input element.
1292
- * Emits the `xBlur` event to notify parent components.
1293
- */
1294
- handleBlur = () => {
1295
- this.xBlur.emit();
1296
- };
1297
- /**
1298
- * Handles keyboard events for accessibility.
1299
- *
1300
- * Flow:
1301
- * 1. Checks if the component is disabled.
1302
- * 2. Listens for 'Space' or 'Enter' keys.
1303
- * 3. If triggered, prevents default browser behavior.
1304
- * 4. If currently unchecked, updates state to checked and emits change event.
1305
- *
1306
- * @param e - The keyboard event.
1307
- */
1308
- handleKeyDown = (e) => {
1309
- if (this.disabled)
1310
- return;
1311
- if (e.key === ' ' || e.key === 'Enter') {
1312
- e.preventDefault();
1313
- if (!this.checked) {
1314
- this.checked = true;
1315
- this.xChange.emit({
1316
- value: this.value,
1317
- checked: true,
1318
- nativeEvent: e,
1319
- });
1320
- }
1321
- }
1322
- };
1323
- // ==================== Render ====================
1324
- /**
1325
- * Renders the component.
1326
- *
1327
- * Structure:
1328
- * - Host element serves as the wrapper with ARIA roles.
1329
- * - Contains a visual radio indicator (input + inner span).
1330
- * - Contains a label slot for content.
1331
- *
1332
- * @returns JSX.Element
1333
- */
1334
- render() {
1335
- // Build class maps based on checked and disabled state.
1336
- const wrapperClasses = {
1337
- 'x-radio-wrapper': true,
1338
- 'x-radio-wrapper-checked': this.checked,
1339
- 'x-radio-wrapper-disabled': this.disabled,
1340
- [`x-radio-placement-${this.placement}`]: !!this.placement,
1341
- [`x-radio-alignment-${this.alignment}`]: !!this.alignment,
1342
- [this.classNames?.root ?? '']: !!this.classNames?.root,
1343
- };
1344
- const radioClasses = {
1345
- 'x-radio': true,
1346
- 'x-radio-checked': this.checked,
1347
- 'x-radio-disabled': this.disabled,
1348
- [this.classNames?.radio ?? '']: !!this.classNames?.radio,
1349
- };
1350
- const innerClasses = {
1351
- 'x-radio-inner': true,
1352
- [this.classNames?.inner ?? '']: !!this.classNames?.inner,
1353
- };
1354
- const labelClasses = {
1355
- 'x-radio-label': true,
1356
- [this.classNames?.label ?? '']: !!this.classNames?.label,
1357
- };
1358
- const wrapperStyles = this.styles?.root;
1359
- const radioStyles = this.styles?.radio;
1360
- const innerStyles = this.styles?.inner;
1361
- const labelStyles = this.styles?.label;
1362
- return (index.h(index.Host, { key: '73c3b076a9ec6eddd0978ff6aa8cca6e8f776526', class: wrapperClasses, style: wrapperStyles, onClick: this.handleClick, onKeyDown: this.handleKeyDown, role: "radio", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', tabindex: this.disabled ? -1 : 0 }, index.h("span", { key: '99b9cf1d6c8a56ad7c868d6b4a6d0dbda220c9f4', class: radioClasses, style: radioStyles }, index.h("input", { key: '68e873e4984a6f972dfa9531de6d387db4400bf7', ref: (el) => (this.inputEl = el), type: "radio", class: "x-radio-input", id: this.radioId, checked: this.checked, disabled: this.disabled, name: this.name, value: this.value, tabIndex: -1, onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: (e) => e.stopPropagation() }), index.h("span", { key: 'b74110568edc7a6c43a42efed8bf0788e6f932c9', class: innerClasses, style: innerStyles })), index.h("span", { key: '1d6a28efc70aadf65bccceb22c8ccbc294c9987b', class: labelClasses, style: labelStyles }, index.h("slot", { key: 'eb70a0875223ff3b54ae4d3cc0d0d6b3ee6629e5' }))));
1363
- }
1364
- static get watchers() { return {
1365
- "checked": [{
1366
- "handleCheckedChange": 0
1367
- }]
1368
- }; }
1369
- };
1370
- XRadio.style = xRadioCss();
1371
-
1372
- exports.x_checkbox = XCheckbox;
1373
- exports.x_pagination = XPagination;
1374
- exports.x_popover = XPopover;
1375
- exports.x_popover_content = XPopoverContent;
1376
- exports.x_radio = XRadio;