@fewangsit/wangsvue-fats 1.0.0-alpha.41 → 1.0.0-alpha.43

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 (373) hide show
  1. package/ButtonCopy-C6DSmsOR.es.js +4 -0
  2. package/ButtonCopy-CeBlNyVx.system.js +1 -0
  3. package/ButtonSync-BLyCwwnU.system.js +1 -0
  4. package/ButtonSync-DtUhn-Q-.es.js +4 -0
  5. package/ButtonToggle-B9Fa75pf.es.js +4 -0
  6. package/ButtonToggle-CSxzlLR2.system.js +1 -0
  7. package/ButtonViewLog-B1oa4oFN.es.js +4 -0
  8. package/ButtonViewLog-_J6r7Oz8.system.js +1 -0
  9. package/Card-B19WgA6Y.es.js +4 -0
  10. package/Card-umUgd-nP.system.js +1 -0
  11. package/InputEmail-BZ5Y0wSk.system.js +1 -0
  12. package/InputEmail-DR_E1DsL.es.js +4 -0
  13. package/InputURL-DL6a94kM.system.js +1 -0
  14. package/InputURL-PVF5EUUY.es.js +4 -0
  15. package/Loading-Cq7rP88c.system.js +1 -0
  16. package/Loading-DUHTVct4.es.js +4 -0
  17. package/UserWithIcon-Ddn_GlNu.system.js +1 -0
  18. package/UserWithIcon-hWXf-A2U.es.js +4 -0
  19. package/assets/lottie/loading-page-B9ooQcfF.system.js +1 -0
  20. package/assets/lottie/loading-page-CQ0mKER2.es.js +15 -0
  21. package/assets/lottie/loading-table-B4T3FYiI.system.js +1 -0
  22. package/assets/lottie/loading-table-BnpbX8Ew.es.js +15 -0
  23. package/assets/lottie/no-data-CMWnya_k.system.js +1 -0
  24. package/{no-data-DLHO1L_u.js → assets/lottie/no-data-DOy8kIGF.es.js} +13 -2
  25. package/async-components/index-C8nb7p3T.es.js +70 -0
  26. package/async-components/index-DvjqHrYE.system.js +1 -0
  27. package/components/animation/Animation-CCEnvZ_Z.es.js +48 -0
  28. package/components/animation/Animation-CJb4YIwm.system.js +1 -0
  29. package/components/approverinfo/ApproverInfo-Bruotw1h.es.js +127 -0
  30. package/components/approverinfo/ApproverInfo-CoWywuLZ.system.js +1 -0
  31. package/components/assetinfo/AssetInfo-B8KAsqvC.system.js +1 -0
  32. package/components/assetinfo/AssetInfo-DNsWx4Xv.es.js +201 -0
  33. package/components/badge/Badge-DXAyz4Z8.es.js +99 -0
  34. package/components/badge/Badge-wSExdsOP.system.js +1 -0
  35. package/components/badgegroup/BadgeGroup-CAYL_5-g.system.js +1 -0
  36. package/components/badgegroup/BadgeGroup-Dl2cL80L.es.js +68 -0
  37. package/components/basetree/BaseTree-CmBp0uwr.system.js +1 -0
  38. package/components/basetree/BaseTree-RsvvntBp.es.js +167 -0
  39. package/components/basetree/TreeNode-CUL5_2Rj.es.js +499 -0
  40. package/components/basetree/TreeNode-D-YgXird.system.js +1 -0
  41. package/components/breadcrumb/Breadcrumb-BmuuCYJx.system.js +1 -0
  42. package/components/breadcrumb/Breadcrumb-oqdG9WGT.es.js +46 -0
  43. package/components/button/Button-CgkhMnxo.es.js +124 -0
  44. package/components/button/Button-D892iaxz.system.js +1 -0
  45. package/components/buttonbulkaction/ButtonBulkAction-CAamlaLP.system.js +1 -0
  46. package/components/buttonbulkaction/ButtonBulkAction-Tdf3aVtp.es.js +189 -0
  47. package/components/buttoncopy/ButtonCopy-CUFHlIO-.es.js +31 -0
  48. package/components/buttoncopy/ButtonCopy-CZPTLNHh.system.js +1 -0
  49. package/components/buttoncopy/ButtonCopy.vue.d.ts +6 -4
  50. package/components/buttondownload/ButtonDownload-BWGTiJnP.es.js +61 -0
  51. package/components/buttondownload/ButtonDownload-CUR6u0AT.system.js +1 -0
  52. package/components/buttonfilter/ButtonFilter-B1F4poKd.system.js +1 -0
  53. package/components/buttonfilter/ButtonFilter-B49leY-q.es.js +28 -0
  54. package/components/buttonradio/ButtonRadio-D6xKhPLg.es.js +83 -0
  55. package/components/buttonradio/ButtonRadio-NBcy0Epa.system.js +1 -0
  56. package/components/buttonscan/ButtonScan-BZzpqBe8.system.js +1 -0
  57. package/components/buttonscan/ButtonScan-mVHAdACL.es.js +387 -0
  58. package/components/buttonscan/workers/scanner.worker-8_0GG6W3.system.js +1 -0
  59. package/components/buttonscan/workers/scanner.worker-D3a72Zyk.es.js +25 -0
  60. package/components/buttonsearch/ButtonSearch-3hnarf3D.system.js +1 -0
  61. package/components/buttonsearch/ButtonSearch-BjcXUDQZ.es.js +70 -0
  62. package/components/buttonselecttree/ButtonSelectTree-D0lT3Exu.es.js +218 -0
  63. package/components/buttonselecttree/ButtonSelectTree-DKmPV8FD.system.js +1 -0
  64. package/components/buttonselectuser/ButtonSelectUser-B7GbLfS-.system.js +1 -0
  65. package/components/buttonselectuser/ButtonSelectUser-OAZRY9OR.es.js +101 -0
  66. package/components/buttonsync/ButtonSync-Brk16H8C.es.js +29 -0
  67. package/components/buttonsync/ButtonSync-D5lXmtHs.system.js +1 -0
  68. package/components/buttontoggle/ButtonToggle-1R5y5DCx.es.js +11 -0
  69. package/components/buttontoggle/ButtonToggle-DLsiXxjK.system.js +1 -0
  70. package/components/buttonviewlog/ButtonViewLog-CGsSkrzf.es.js +21 -0
  71. package/components/buttonviewlog/ButtonViewLog-leLO6F_N.system.js +1 -0
  72. package/components/calendar/BaseCalendar-5EI1UTbl.es.js +867 -0
  73. package/components/calendar/BaseCalendar-C02-gmOQ.system.js +1 -0
  74. package/components/calendar/Calendar-B2z-lfi9.es.js +112 -0
  75. package/components/calendar/Calendar-CWw4R5mN.system.js +1 -0
  76. package/components/card/Card-BccG14LV.es.js +47 -0
  77. package/components/card/Card-BjI-Xi0S.system.js +1 -0
  78. package/components/checkbox/Checkbox-DBU7Ji2C.es.js +135 -0
  79. package/components/checkbox/Checkbox-FZg_wq3C.system.js +1 -0
  80. package/components/codesnippet/CodeSnippet--pMQi4aO.es.js +127 -0
  81. package/components/codesnippet/CodeSnippet-BVwAQPSv.system.js +2 -0
  82. package/components/customcolumn/ColumnList-fdR5JfHj.es.js +159 -0
  83. package/components/customcolumn/ColumnList-yaNVEQFA.system.js +1 -0
  84. package/components/customcolumn/CustomColumn-CfvCLH4v.es.js +139 -0
  85. package/components/customcolumn/CustomColumn-D3u59-Rd.system.js +1 -0
  86. package/components/customcolumn/helpers/setVisibilityColumn.helper-B1vEZDtD.system.js +1 -0
  87. package/components/customcolumn/helpers/setVisibilityColumn.helper-CQ4P_C_9.es.js +16 -0
  88. package/components/datatable/DataTable-BH7Fk88O.es.js +992 -0
  89. package/components/datatable/DataTable-Cko2S6sM.system.js +1 -0
  90. package/components/datatable/MultiRow-B2vMSb7W.es.js +52 -0
  91. package/components/datatable/MultiRow-Sef5icam.system.js +1 -0
  92. package/components/datatable/store/dataTable.store-B4p-hj3w.es.js +37 -0
  93. package/components/datatable/store/dataTable.store-C9376aEJ.system.js +1 -0
  94. package/components/dialog/Dialog-BCcbXSya.es.js +121 -0
  95. package/components/dialog/Dialog-Dv7Jzg4E.system.js +1 -0
  96. package/components/dialogconfirm/DialogConfirm-BU-LRZCo.system.js +1 -0
  97. package/components/dialogconfirm/DialogConfirm-ByIWXisz.es.js +139 -0
  98. package/components/dialogform/DialogForm-DGl_NOEr.system.js +1 -0
  99. package/components/dialogform/DialogForm-tAbix3iC.es.js +222 -0
  100. package/components/dialogselecttree/DialogSelectTree-BrVtt3iG.es.js +268 -0
  101. package/components/dialogselecttree/DialogSelectTree-CT7dKC5N.system.js +1 -0
  102. package/components/dialogselectuser/DialogSelectUser-Bu7z7lUq.es.js +121 -0
  103. package/components/dialogselectuser/DialogSelectUser-DXL_NMJj.system.js +1 -0
  104. package/components/dialogselectuser/DialogSelectUserFilter-BNbIynoa.system.js +1 -0
  105. package/components/dialogselectuser/DialogSelectUserFilter-BgBrQCz1.es.js +44 -0
  106. package/components/dialogselectuser/options/columns-BKDHtwAp.es.js +71 -0
  107. package/components/dialogselectuser/options/columns-DLmJdDTR.system.js +1 -0
  108. package/components/dropdown/Dropdown-BNzT2uLU.system.js +1 -0
  109. package/components/dropdown/Dropdown-Dk4urj-W.es.js +258 -0
  110. package/components/editor/CodeSnippetAdapter-C0f7wytw.es.js +26 -0
  111. package/components/editor/CodeSnippetAdapter-f-VHwbwS.system.js +1 -0
  112. package/components/editor/Editor-RB5MqBs1.es.js +887 -0
  113. package/components/editor/Editor-upU4Z9FH.system.js +1 -0
  114. package/components/editor/EditorButton-CC6U1a_u.system.js +1 -0
  115. package/components/editor/EditorButton-Cfew79JD.es.js +28 -0
  116. package/components/editor/MentionList-BjWKefLh.system.js +1 -0
  117. package/components/editor/MentionList-CdX0_-TK.es.js +58 -0
  118. package/components/editor/MentionSection-5I-FSwew.es.js +52 -0
  119. package/components/editor/MentionSection-CiuaeX4J.system.js +3 -0
  120. package/components/editor/codeSnippetExtension-C-ADHg2S.es.js +40 -0
  121. package/components/editor/codeSnippetExtension-C3uj0fCk.system.js +1 -0
  122. package/components/editor/mentionSectionExtension-DJ6wkX1L.system.js +1 -0
  123. package/components/editor/mentionSectionExtension-rbWufuMT.es.js +46 -0
  124. package/components/editor/suggestion-BcYK0KeI.system.js +1 -0
  125. package/components/editor/suggestion-mkkpQFP-.es.js +41 -0
  126. package/components/fieldwrapper/FieldWrapper-Dc-stQRH.system.js +1 -0
  127. package/components/fieldwrapper/FieldWrapper-DmOogUM5.es.js +35 -0
  128. package/components/fileupload/FileUpload-0EHKlInu.es.js +175 -0
  129. package/components/fileupload/FileUpload-dXrsIAeC.system.js +1 -0
  130. package/components/filtercontainer/FilterContainer-Cd8TpncM.es.js +234 -0
  131. package/components/filtercontainer/FilterContainer-kkw3n3tu.system.js +1 -0
  132. package/components/filtercontainer/helpers/applyFilter.helper-Ci22FrPF.system.js +1 -0
  133. package/components/filtercontainer/helpers/applyFilter.helper-DpVdjYBr.es.js +56 -0
  134. package/components/form/Form-By85t_oI.system.js +1 -0
  135. package/components/form/Form-DhWBpdkq.es.js +181 -0
  136. package/components/hardwaresync/HardwareSync-BckCfIeF.es.js +238 -0
  137. package/components/hardwaresync/HardwareSync-DcgVc0cL.system.js +1 -0
  138. package/components/hardwaresync/store/device.store-DEKXH36R.system.js +1 -0
  139. package/components/hardwaresync/store/device.store-DpVE6Nhl.es.js +20 -0
  140. package/components/icon/Icon-C4kXVcEX.es.js +82 -0
  141. package/components/icon/Icon-D1a666FC.system.js +1 -0
  142. package/components/image/Image-Bf5EaBWP.es.js +170 -0
  143. package/components/image/Image-Cxi0E9gK.system.js +1 -0
  144. package/components/imagecompressor/BackgroundImageCropper-DhrTpgNX.system.js +1 -0
  145. package/components/imagecompressor/BackgroundImageCropper-hiHqCcIy.es.js +52 -0
  146. package/components/imagecompressor/ImageCompressor-C_vnTwmo.system.js +1 -0
  147. package/components/imagecompressor/ImageCompressor-DPo-1Yo8.es.js +509 -0
  148. package/components/imagecompressor/ImageInputInfo-4Ac8cBDM.es.js +46 -0
  149. package/components/imagecompressor/ImageInputInfo-U3hLlbwo.system.js +1 -0
  150. package/components/index-BMti6lK3.es.js +64 -0
  151. package/components/index-DBzSxIov.system.js +1 -0
  152. package/components/index.d.ts +162 -60
  153. package/components/inlinemessage/InlineMessage-BPJD82sq.es.js +94 -0
  154. package/components/inlinemessage/InlineMessage-DTyTe5_W.system.js +1 -0
  155. package/components/inputbadge/InputBadge-BUm6Kn-F.system.js +1 -0
  156. package/components/inputbadge/InputBadge-BngtjqHQ.es.js +186 -0
  157. package/components/inputcurrency/InputCurrency-CE4WrJ9k.es.js +1211 -0
  158. package/components/inputcurrency/InputCurrency-DaJuUujH.system.js +1 -0
  159. package/components/inputemail/InputEmail-8E04RVeq.system.js +1 -0
  160. package/components/inputemail/InputEmail-BFeY1l9Z.es.js +49 -0
  161. package/components/inputgroup/InputGroup-CTHxHL8n.system.js +1 -0
  162. package/components/inputgroup/InputGroup-CUxNAtDZ.es.js +56 -0
  163. package/components/inputnumber/InputNumber-BJ8Qm27k.system.js +1 -0
  164. package/components/inputnumber/InputNumber-CQd01PQ5.es.js +232 -0
  165. package/components/inputpassword/InputPassword-D3jaUFfR.system.js +1 -0
  166. package/components/inputpassword/InputPassword-DGWsHAB4.es.js +121 -0
  167. package/components/inputphonenumber/InputPhoneNumber-3To4Ktp9.system.js +1 -0
  168. package/components/inputphonenumber/InputPhoneNumber-DVAOWAj6.es.js +162 -0
  169. package/components/inputphonenumber/helpers/getUserLocation.helper-B0lZav7S.es.js +15 -0
  170. package/components/inputphonenumber/helpers/getUserLocation.helper-CSC5I9tB.system.js +1 -0
  171. package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-CUP9NUYE.es.js +423 -0
  172. package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-DgzOgH_M.system.js +1 -0
  173. package/components/inputrangenumber/InputRangeNumber-Cfea6oM_.es.js +134 -0
  174. package/components/inputrangenumber/InputRangeNumber-iLScQOa6.system.js +1 -0
  175. package/components/inputsearch/InputSearch-CHJP-N57.es.js +53 -0
  176. package/components/inputsearch/InputSearch-DkB4O0Dc.system.js +1 -0
  177. package/components/inputtext/InputText-BEDxrRqK.es.js +242 -0
  178. package/components/inputtext/InputText-BOgH8xpA.system.js +1 -0
  179. package/components/inputurl/InputURL-CNrOkrAC.es.js +61 -0
  180. package/components/inputurl/InputURL-D4QWV9G7.system.js +1 -0
  181. package/components/invisiblefield/InvisibleField-4XbiOrqw.es.js +27 -0
  182. package/components/invisiblefield/InvisibleField-BHudtX2g.system.js +1 -0
  183. package/components/litedropdown/LiteDropdown-BbDUnfnd.es.js +102 -0
  184. package/components/litedropdown/LiteDropdown-DTXwb5JR.system.js +1 -0
  185. package/components/loading/Loading-DIfTUHr7.es.js +24 -0
  186. package/components/loading/Loading-Vb4HctBJ.system.js +1 -0
  187. package/components/menu/Menu-BtzGGhbp.es.js +73 -0
  188. package/components/menu/Menu-CPm5vua_.system.js +1 -0
  189. package/components/menuitem/MenuItem-8yxkFTug.system.js +1 -0
  190. package/components/menuitem/MenuItem-uLVAqgBS.es.js +65 -0
  191. package/components/multiselect/MultiSelect-BoPpQ31j.es.js +189 -0
  192. package/components/multiselect/MultiSelect-D5NEDtGe.system.js +1 -0
  193. package/components/overlaypanel/OverlayPanel-BKCivqTs.system.js +1 -0
  194. package/components/overlaypanel/OverlayPanel-bQbjuUgG.es.js +49 -0
  195. package/components/tabmenu/TabMenu-BBk8EW-C.system.js +1 -0
  196. package/components/tabmenu/TabMenu-ByKBaVsd.es.js +108 -0
  197. package/components/tagtype/TagType-CAXomDiD.es.js +49 -0
  198. package/components/tagtype/TagType-i4RK2JbL.system.js +1 -0
  199. package/components/textarea/Textarea-CnAlgPq5.es.js +108 -0
  200. package/components/textarea/Textarea-qirKOw5z.system.js +1 -0
  201. package/components/timeline/Timeline-CF2qJo4E.es.js +120 -0
  202. package/components/timeline/Timeline-DKfKWZFI.system.js +1 -0
  203. package/components/timeline/TimelineContentByType-_cKGDWAW.es.js +108 -0
  204. package/components/timeline/TimelineContentByType-uxM3NSqd.system.js +1 -0
  205. package/components/toast/Toast-C3D50rGo.system.js +1 -0
  206. package/components/toast/Toast-DRUJCz4I.es.js +74 -0
  207. package/components/toggleswitch/ToggleSwitch-De-_8nQl.es.js +90 -0
  208. package/components/toggleswitch/ToggleSwitch-DuyahX09.system.js +1 -0
  209. package/components/transactionroles/TransactionRoles-WrcXMwBu.es.js +223 -0
  210. package/components/transactionroles/TransactionRoles-iVQyWseb.system.js +1 -0
  211. package/components/tree/Tree-93NvdElH.es.js +267 -0
  212. package/components/tree/Tree-BTTVTAEH.system.js +1 -0
  213. package/components/tree/helpers/filterNodeKeys.helper-CmamKUTa.system.js +1 -0
  214. package/components/tree/helpers/filterNodeKeys.helper-z7SxLuvZ.es.js +10 -0
  215. package/components/treesearchinput/TreeSearchInput-BG2TfunA.system.js +1 -0
  216. package/components/treesearchinput/TreeSearchInput-CNfoc3f6.es.js +56 -0
  217. package/components/username/UserName-A1N6Q7bS.system.js +1 -0
  218. package/components/username/UserName-D5C0qdbu.es.js +132 -0
  219. package/components/userwithicon/UserWithIcon-CHHDfQG0.es.js +18 -0
  220. package/components/userwithicon/UserWithIcon-DnY6loZc.system.js +1 -0
  221. package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +19 -0
  222. package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +1 -0
  223. package/config/config.esm-BZepf1kR.system.js +1 -0
  224. package/config/config.esm-Drl0fECZ.es.js +212 -0
  225. package/config/defaultProps-B3syHUKt.system.js +1 -0
  226. package/config/defaultProps-BC_lvAG9.es.js +136 -0
  227. package/config/locale-DK6d2rJ3.system.js +1 -0
  228. package/config/locale-pQnRpNZ6.es.js +85 -0
  229. package/event-bus/index-CykcrsqY.system.js +1 -0
  230. package/event-bus/index-PQwO5T6B.es.js +6 -0
  231. package/event-bus/mitt-BjeF6e5j.es.js +53 -0
  232. package/event-bus/mitt-X_X8W9w9.system.js +1 -0
  233. package/package.json +1 -1
  234. package/plugins/WangsVue-Dl5OiLXF.es.js +332 -0
  235. package/plugins/WangsVue-Dugc3GRS.system.js +1 -0
  236. package/plugins/i18n-BVujDShu.system.js +1 -0
  237. package/plugins/i18n-CIoi8go0.es.js +89 -0
  238. package/stats.html +1 -1
  239. package/style.css +1 -1
  240. package/utils/addAttachment.util-CPzZEHNG.system.js +1 -0
  241. package/utils/addAttachment.util-D9sYCBjS.es.js +10 -0
  242. package/utils/computeAutoPlacement-Ac2MkS5B.es.js +33 -0
  243. package/utils/computeAutoPlacement-DCaci6j-.system.js +1 -0
  244. package/utils/computeOffsets-Cx9i84Mn.system.js +1 -0
  245. package/utils/computeOffsets-DXWJPq7f.es.js +56 -0
  246. package/utils/date.util-DbjB32co.es.js +198 -0
  247. package/utils/date.util-rX9kq_yC.system.js +1 -0
  248. package/utils/detectOverflow-BrAC_sJF.system.js +1 -0
  249. package/utils/detectOverflow-CETbaen7.es.js +88 -0
  250. package/utils/exportToExcel.util-Bf-PpzHW.system.js +1 -0
  251. package/utils/exportToExcel.util-jz7aU08m.es.js +32 -0
  252. package/utils/genPlaceholder.util-0UuDQpbx.es.js +37 -0
  253. package/utils/genPlaceholder.util-CxMG7LbT.system.js +1 -0
  254. package/utils/mergePropsWithDefaults.util-BKcJzgvs.es.js +9 -0
  255. package/utils/mergePropsWithDefaults.util-CXowvEKY.system.js +1 -0
  256. package/utils/object.util-6veM2gu5.es.js +51 -0
  257. package/utils/object.util-uApor4uP.system.js +1 -0
  258. package/utils/orderModifiers-qXBm1wkD.system.js +1 -0
  259. package/utils/orderModifiers-rOag5Cyh.es.js +31 -0
  260. package/utils/role.util-BdUNoOqf.es.js +67 -0
  261. package/utils/role.util-Co8OMWnc.system.js +1 -0
  262. package/utils/textFormatter.util-BjenkyWf.system.js +1 -0
  263. package/utils/textFormatter.util-CYul3RpH.es.js +21 -0
  264. package/utils/toast.util-C7p3h9XQ.es.js +52 -0
  265. package/utils/toast.util-DPtauJUV.system.js +1 -0
  266. package/utils/utils.esm-iwnsFuDg.system.js +23 -0
  267. package/utils/utils.esm-s_-kLKXf.es.js +1080 -0
  268. package/utils/xlsx.util-FKEpiU2t.system.js +1 -0
  269. package/utils/xlsx.util-LU1upHR3.es.js +8 -0
  270. package/vendor/@popperjs/core-DFLwc7xU.system.js +1 -0
  271. package/vendor/@popperjs/core-DJHUrK4e.es.js +748 -0
  272. package/vendor/@tiptap/core-D4rHEGhs.system.js +80 -0
  273. package/vendor/@tiptap/core-DSbPv8xh.es.js +2868 -0
  274. package/vendor/@tiptap/extension-bold-CvAjR8FR.es.js +71 -0
  275. package/vendor/@tiptap/extension-bold-DI_Zfdzb.system.js +1 -0
  276. package/vendor/@tiptap/extension-bubble-menu-0_0wc2P7.system.js +1 -0
  277. package/vendor/@tiptap/extension-bubble-menu-DY29ulfu.es.js +128 -0
  278. package/vendor/@tiptap/extension-bullet-list-BrkIcd-z.es.js +53 -0
  279. package/vendor/@tiptap/extension-bullet-list-CgIgW9RG.system.js +1 -0
  280. package/vendor/@tiptap/extension-code-BtAtPCQQ.es.js +51 -0
  281. package/vendor/@tiptap/extension-code-SOANT0O3.system.js +1 -0
  282. package/vendor/@tiptap/extension-floating-menu-BTwcx1u8.es.js +99 -0
  283. package/vendor/@tiptap/extension-floating-menu-Dtu9tcTW.system.js +1 -0
  284. package/vendor/@tiptap/extension-heading-B6PMnqvS.es.js +54 -0
  285. package/vendor/@tiptap/extension-heading-BpK6SnFO.system.js +1 -0
  286. package/vendor/@tiptap/extension-history-CTFK6g3n.system.js +1 -0
  287. package/vendor/@tiptap/extension-history-DdPDTH0G.es.js +35 -0
  288. package/vendor/@tiptap/extension-image-BNa6azmK.system.js +1 -0
  289. package/vendor/@tiptap/extension-image-DCo2JDZp.es.js +64 -0
  290. package/vendor/@tiptap/extension-italic-D09oL4ps.es.js +70 -0
  291. package/vendor/@tiptap/extension-italic-w93Lmtg_.system.js +1 -0
  292. package/vendor/@tiptap/extension-link-CV6Fodq9.es.js +262 -0
  293. package/vendor/@tiptap/extension-link-FrdAKaJ2.system.js +1 -0
  294. package/vendor/@tiptap/extension-list-item-BRio_hHs.system.js +1 -0
  295. package/vendor/@tiptap/extension-list-item-D8wSpPxS.es.js +33 -0
  296. package/vendor/@tiptap/extension-mention-cFXQdAs7.es.js +130 -0
  297. package/vendor/@tiptap/extension-mention-y62_tYRn.system.js +1 -0
  298. package/vendor/@tiptap/extension-ordered-list-BZU-Ty3o.es.js +71 -0
  299. package/vendor/@tiptap/extension-ordered-list-CH9LyYR1.system.js +1 -0
  300. package/vendor/@tiptap/extension-placeholder-CsBxoitZ.es.js +52 -0
  301. package/vendor/@tiptap/extension-placeholder-Dqw7HNAJ.system.js +1 -0
  302. package/vendor/@tiptap/extension-underline-DklFOEoR.es.js +40 -0
  303. package/vendor/@tiptap/extension-underline-SGsaBlAL.system.js +1 -0
  304. package/vendor/@tiptap/suggestion-B3Grok9m.system.js +1 -0
  305. package/vendor/@tiptap/suggestion-Dg-vhPtN.es.js +131 -0
  306. package/vendor/@tiptap/vue-3-BOfcUn5G.es.js +436 -0
  307. package/vendor/@tiptap/vue-3-ZMNXXvBd.system.js +1 -0
  308. package/vendor/highlight.js-ClnJXT0q.system.js +2 -0
  309. package/vendor/highlight.js-Czlvg6fB.es.js +2493 -0
  310. package/vendor/linkifyjs-BxsOjwQz.es.js +705 -0
  311. package/vendor/linkifyjs-CMLfIa6I.system.js +5 -0
  312. package/vendor/lodash-B6nNLFd3.es.js +127 -0
  313. package/vendor/lodash-BuO1dYnQ.system.js +1 -0
  314. package/vendor/lodash-es-C3G1Cc1m.system.js +1 -0
  315. package/vendor/lodash-es-CJerBxJQ.es.js +766 -0
  316. package/vendor/orderedmap-B3SOk52B.es.js +103 -0
  317. package/vendor/orderedmap-Dwr31MF0.system.js +1 -0
  318. package/vendor/primevue-C5Z_k4WB.system.js +171 -0
  319. package/vendor/primevue-DkBtKf1Y.es.js +12649 -0
  320. package/vendor/prosemirror-commands-CUjo-x4s.es.js +383 -0
  321. package/vendor/prosemirror-commands-Dn6KNBP0.system.js +2 -0
  322. package/vendor/prosemirror-history-BPOe4I2H.es.js +248 -0
  323. package/vendor/prosemirror-history-BTrzvpc-.system.js +1 -0
  324. package/vendor/prosemirror-keymap-BvIUhswp.es.js +60 -0
  325. package/vendor/prosemirror-keymap-WRY9zVpK.system.js +1 -0
  326. package/vendor/prosemirror-model-D2n-Dx_L.es.js +2736 -0
  327. package/vendor/prosemirror-model-DTWK5xnv.system.js +4 -0
  328. package/vendor/prosemirror-schema-list-BvrICwYb.es.js +87 -0
  329. package/vendor/prosemirror-schema-list-Dv9KV10j.system.js +1 -0
  330. package/vendor/prosemirror-state-BW6XGB3U.es.js +820 -0
  331. package/vendor/prosemirror-state-COJ-aZZ4.system.js +1 -0
  332. package/vendor/prosemirror-transform-BXNgAhmF.system.js +2 -0
  333. package/vendor/prosemirror-transform-DvAmofec.es.js +1507 -0
  334. package/vendor/prosemirror-view-C9ZQp8VZ.es.js +3742 -0
  335. package/vendor/prosemirror-view-DOxSTbB-.system.js +5 -0
  336. package/vendor/rope-sequence-4t46C6az.system.js +1 -0
  337. package/vendor/rope-sequence-sEGCUMi8.es.js +100 -0
  338. package/vendor/simplebar-core-CtWK1-xd.system.js +1 -0
  339. package/vendor/simplebar-core-ofTx4QqK.es.js +333 -0
  340. package/vendor/simplebar-vue-BHVrvuf1.system.js +1 -0
  341. package/vendor/simplebar-vue-dpCx-K7E.es.js +176 -0
  342. package/vendor/tippy.js-6wuFov1j.system.js +1 -0
  343. package/vendor/tippy.js-i1ic-msv.es.js +721 -0
  344. package/vendor/uuid-93tp0umt.es.js +9 -0
  345. package/vendor/uuid-Cymn6orr.system.js +1 -0
  346. package/vendor/vee-validate-Cc_B-qII.system.js +5 -0
  347. package/vendor/vee-validate-RE5RuswC.es.js +1309 -0
  348. package/vendor/vue-advanced-cropper-CshlvNaD.es.js +1380 -0
  349. package/vendor/vue-advanced-cropper-NG93jHnU.system.js +20 -0
  350. package/vendor/w3c-keyname-BSD-PgAi.system.js +1 -0
  351. package/vendor/w3c-keyname-CLxH8j-f.es.js +92 -0
  352. package/wangsvue-fats.js +156 -0
  353. package/wangsvue-fats.system.js +1 -313
  354. package/loading-page-BrQattYE.js +0 -1
  355. package/loading-page-CoC9UhfC.js +0 -4
  356. package/loading-page-DbLuqCHa.js +0 -1
  357. package/loading-page-f8D03l3G.js +0 -4
  358. package/loading-plane-CgfbWppy.js +0 -1
  359. package/loading-plane-CoXtqoc9.js +0 -4
  360. package/loading-table-Bdr9ZhtP.js +0 -1
  361. package/loading-table-ByUoWqUo.js +0 -4
  362. package/loading-table-BygEMzFM.js +0 -4
  363. package/loading-table-BzrSQlA0.js +0 -1
  364. package/loading-table-D9bw9OcI.js +0 -4
  365. package/loading-table-chOgXi94.js +0 -1
  366. package/no-data-CTKux8RI.js +0 -4
  367. package/no-data-Cgze_Rvp.js +0 -1
  368. package/no-data-Dep79CBh.js +0 -1
  369. package/no-data-g0dJCy2p.js +0 -4
  370. package/no-data-y1X5WtcQ.js +0 -1
  371. package/wangsvue-fats.es.js +0 -51894
  372. /package/{loading-page-CgfbWppy.js → assets/lottie/loading-plane-CgfbWppy.system.js} +0 -0
  373. /package/{loading-page-CoXtqoc9.js → assets/lottie/loading-plane-CoXtqoc9.es.js} +0 -0
@@ -0,0 +1,167 @@
1
+ import { defineComponent as w, inject as D, ref as F, computed as P, watch as A, createElementBlock as h, openBlock as f, mergeProps as u, unref as p, createCommentVNode as H, createElementVNode as N, normalizeProps as j, renderSlot as z, createVNode as I, Fragment as q, renderList as x, createBlock as G } from "vue";
2
+ import { O as J } from "../../utils/utils.esm-s_-kLKXf.es.js";
3
+ import Q from "../icon/Icon-C4kXVcEX.es.js";
4
+ import { _ as R } from "./TreeNode-CUL5_2Rj.es.js";
5
+ const X = ["id"], Y = ["aria-label", "aria-labelledby"], te = /* @__PURE__ */ w({
6
+ inheritAttrs: !1,
7
+ __name: "BaseTree",
8
+ props: {
9
+ disableKeys: {},
10
+ disableNodeAll: { type: Boolean, default: !1 },
11
+ exactDisableKeys: {},
12
+ level: { default: 0 },
13
+ listLabelsNoOption: {},
14
+ value: {},
15
+ propagateSelection: { type: Boolean, default: !0 },
16
+ expandedKeys: {},
17
+ selectionKeys: { default: null },
18
+ treeNodeMenus: {},
19
+ selectionMode: {},
20
+ metaKeySelection: { type: Boolean, default: !1 },
21
+ loading: { type: Boolean, default: !1 },
22
+ loadingIcon: {},
23
+ loadingMode: { default: "mask" },
24
+ filterText: { default: "" },
25
+ filterBy: { default: "label" },
26
+ filterMode: { default: "lenient" },
27
+ filterPlaceholder: {},
28
+ filterLocale: {},
29
+ highlightOnSelect: { type: Boolean, default: !1 },
30
+ scrollHeight: {},
31
+ ariaLabel: {},
32
+ ariaLabelledby: {},
33
+ pt: {},
34
+ ptOptions: {},
35
+ unstyled: { type: Boolean },
36
+ useOption: { type: Boolean, default: !1 },
37
+ disableNodeWhen: {},
38
+ exactDisableNodeWhen: {},
39
+ nodeSelectedWhen: {}
40
+ },
41
+ emits: ["update:expandedKeys", "update:selectionKeys", "nodeSelect", "nodeUnselect", "nodeExpand", "nodeCollapse", "toggleMenu"],
42
+ setup(S, { emit: v }) {
43
+ const l = S, i = v, c = D("preset", {}).tree, d = F(l.expandedKeys ?? []), L = (e) => {
44
+ const { key: t } = e;
45
+ d.value[t] ? (delete d.value[t], i("nodeCollapse", e)) : (d.value[t] = !0, i("nodeExpand", e)), d.value = { ...d.value }, i("update:expandedKeys", d.value);
46
+ }, B = (e) => {
47
+ if (l.selectionMode != null && e.node.selectable !== !1) {
48
+ const o = (e.nodeTouched ? !1 : l.metaKeySelection) ? O(e) : $(e);
49
+ i("update:selectionKeys", o);
50
+ }
51
+ }, C = (e) => {
52
+ i("update:selectionKeys", e.selectionKeys), e.check ? i("nodeSelect", e.node) : i("nodeUnselect", e.node);
53
+ }, O = (e) => {
54
+ const { originalEvent: t } = e, { node: o } = e, s = t.metaKey || t.ctrlKey, a = g(o);
55
+ let n;
56
+ return a && s ? (y() ? n = {} : (n = { ...l.selectionKeys }, delete n[o.key]), i("nodeUnselect", o)) : (y() ? n = {} : E() && (s && l.selectionKeys ? n = { ...l.selectionKeys } : n = {}), n[o.key] = !0, i("nodeSelect", o)), n;
57
+ }, $ = (e) => {
58
+ const { node: t } = e, o = g(t);
59
+ let s;
60
+ return y() ? o ? (s = {}, i("nodeUnselect", t)) : (s = {}, s[t.key] = !0, i("nodeSelect", t)) : o ? (s = { ...l.selectionKeys }, delete s[t.key], i("nodeUnselect", t)) : (s = l.selectionKeys ? { ...l.selectionKeys } : {}, s[t.key] = !0, i("nodeSelect", t)), s;
61
+ }, y = () => l.selectionMode === "single", E = () => l.selectionMode === "multiple", g = (e) => l.selectionMode && l.selectionKeys ? l.selectionKeys[e.key] === !0 : !1, T = (e) => e.leaf === !1 ? !1 : !(e.children && e.children.length), m = (e, t) => {
62
+ if (e) {
63
+ let o = !1;
64
+ if (e.children) {
65
+ const s = [...e.children];
66
+ e.children = [];
67
+ for (const a of s) {
68
+ const n = { ...a };
69
+ b(n, t) && (o = !0, e.children.push(n));
70
+ }
71
+ }
72
+ if (o)
73
+ return !0;
74
+ }
75
+ }, b = (e, { searchFields: t, filterText: o, strict: s }) => {
76
+ let a = !1;
77
+ for (const n of t)
78
+ String(
79
+ J.resolveFieldData(e, n)
80
+ ).toLocaleLowerCase(l.filterLocale).indexOf(o) > -1 && (a = !0);
81
+ return (!a || s && !T(e)) && (a = m(e, { searchFields: t, filterText: o, strict: s }) || a), a;
82
+ }, U = P(() => {
83
+ const e = [], t = l.filterBy.split(","), o = l.filterMode === "strict";
84
+ for (const s of l.value) {
85
+ const a = { ...s }, n = {
86
+ searchFields: t,
87
+ filterText: l.filterText.toLocaleLowerCase(l.filterLocale),
88
+ strict: o
89
+ };
90
+ (o && (m(a, n) || b(a, n)) || !o && (b(a, n) || m(a, n))) && e.push(a);
91
+ }
92
+ return e;
93
+ });
94
+ return A(
95
+ () => l.expandedKeys,
96
+ (e) => {
97
+ d.value = e;
98
+ },
99
+ { deep: !0 }
100
+ ), (e, t) => {
101
+ var o, s, a, n;
102
+ return f(), h("div", u((o = l.pt ?? p(c)) == null ? void 0 : o.root, {
103
+ id: e.$attrs.id,
104
+ class: e.$attrs.class,
105
+ "data-wv-name": "tree"
106
+ }), [
107
+ e.loading && e.loadingMode === "mask" ? (f(), h("div", j(u({ key: 0 }, (s = l.pt ?? p(c)) == null ? void 0 : s.loadingOverlay)), [
108
+ z(e.$slots, "loadingicon", {}, () => {
109
+ var r;
110
+ return [
111
+ I(Q, u({
112
+ class: "animate-spin",
113
+ icon: "spinner"
114
+ }, (r = l.pt ?? p(c)) == null ? void 0 : r.loadingicon), null, 16)
115
+ ];
116
+ })
117
+ ], 16)) : H("", !0),
118
+ N("div", u({
119
+ style: { maxHeight: e.scrollHeight }
120
+ }, (a = l.pt ?? p(c)) == null ? void 0 : a.wrapper), [
121
+ N("ul", u({
122
+ "aria-label": e.ariaLabel,
123
+ "aria-labelledby": e.ariaLabelledby
124
+ }, (n = l.pt ?? p(c)) == null ? void 0 : n.container, {
125
+ "data-pc-section": "container",
126
+ role: "tree"
127
+ }), [
128
+ (f(!0), h(q, null, x(U.value, (r, V) => {
129
+ var K, k, M;
130
+ return f(), G(R, u({
131
+ key: r.key,
132
+ ref_for: !0
133
+ }, l, {
134
+ class: [...(k = (K = l.pt ?? p(c)) == null ? void 0 : K.node) == null ? void 0 : k.class],
135
+ "disable-keys": e.disableKeys,
136
+ "disable-node-all": l.disableNodeAll,
137
+ disabled: (M = e.disableKeys) == null ? void 0 : M.includes(+r.key),
138
+ "exact-disable-keys": e.exactDisableKeys,
139
+ "expanded-keys": d.value,
140
+ index: V,
141
+ level: e.level + 1,
142
+ "list-labels-no-option": e.listLabelsNoOption,
143
+ "loading-mode": e.loadingMode,
144
+ node: r,
145
+ "propagate-selection": e.propagateSelection,
146
+ pt: e.pt,
147
+ "selection-keys": e.selectionKeys,
148
+ "selection-mode": e.selectionMode,
149
+ templates: e.$slots,
150
+ "tree-node-menus": e.treeNodeMenus,
151
+ unstyled: e.unstyled,
152
+ "use-option": e.useOption,
153
+ onCheckboxChange: C,
154
+ onNodeClick: B,
155
+ onNodeToggle: L,
156
+ onToggleMenu: t[0] || (t[0] = (W) => e.$emit("toggleMenu", W))
157
+ }), null, 16, ["class", "disable-keys", "disable-node-all", "disabled", "exact-disable-keys", "expanded-keys", "index", "level", "list-labels-no-option", "loading-mode", "node", "propagate-selection", "pt", "selection-keys", "selection-mode", "templates", "tree-node-menus", "unstyled", "use-option"]);
158
+ }), 128))
159
+ ], 16, Y)
160
+ ], 16)
161
+ ], 16, X);
162
+ };
163
+ }
164
+ });
165
+ export {
166
+ te as default
167
+ };
@@ -0,0 +1,499 @@
1
+ import { defineComponent as De, inject as Le, ref as oe, computed as i, onMounted as Be, resolveComponent as Ie, createElementBlock as N, openBlock as a, Fragment as P, createElementVNode as C, createBlock as b, createCommentVNode as A, mergeProps as m, unref as d, resolveDynamicComponent as V, normalizeClass as E, withModifiers as x, toDisplayString as le, renderList as Oe, withCtx as We, createVNode as Pe, nextTick as ae } from "vue";
2
+ import { D as y } from "../../utils/utils.esm-s_-kLKXf.es.js";
3
+ import { _ as Ve } from "../button/Button-CgkhMnxo.es.js";
4
+ import Fe from "../checkbox/Checkbox-DBU7Ji2C.es.js";
5
+ import F from "../icon/Icon-C4kXVcEX.es.js";
6
+ import Ue from "../menu/Menu-BtzGGhbp.es.js";
7
+ const $e = ["aria-checked", "aria-expanded", "aria-label", "aria-level", "aria-posinset", "aria-selected", "aria-setsize", "tabindex"], ze = ["data-p-highlight", "data-p-selectable"], He = ["data-node-has-children", "data-node-key", "data-node-selected"], je = {
8
+ "aria-hidden": "true",
9
+ class: "flex items-center justify-start gap-2 px-4 py-1.5 hover:bg-surface-50 text-xs no-underline overflow-hidden cursor-pointer select-none",
10
+ "data-pc-section": "action",
11
+ tabindex: "-1"
12
+ }, Ye = /* @__PURE__ */ De({
13
+ __name: "TreeNode",
14
+ props: {
15
+ node: {},
16
+ index: {},
17
+ disabled: { type: Boolean },
18
+ listLabelsNoOption: {},
19
+ pt: {},
20
+ templates: {},
21
+ disableKeys: {},
22
+ disableNodeAll: { type: Boolean },
23
+ exactDisableKeys: {},
24
+ level: {},
25
+ value: {},
26
+ propagateSelection: { type: Boolean },
27
+ expandedKeys: {},
28
+ selectionKeys: {},
29
+ treeNodeMenus: {},
30
+ selectionMode: {},
31
+ metaKeySelection: { type: Boolean },
32
+ loading: { type: Boolean },
33
+ loadingIcon: {},
34
+ loadingMode: {},
35
+ filterText: {},
36
+ filterBy: {},
37
+ filterMode: {},
38
+ filterPlaceholder: {},
39
+ filterLocale: {},
40
+ highlightOnSelect: { type: Boolean },
41
+ scrollHeight: {},
42
+ ariaLabel: {},
43
+ ariaLabelledby: {},
44
+ ptOptions: {},
45
+ unstyled: { type: Boolean },
46
+ useOption: { type: Boolean },
47
+ disableNodeWhen: { type: Function },
48
+ exactDisableNodeWhen: { type: Function },
49
+ nodeSelectedWhen: { type: Function }
50
+ },
51
+ emits: ["nodeToggle", "nodeClick", "checkboxChange", "toggleMenu"],
52
+ setup(se, { emit: ie }) {
53
+ const u = ie, t = se, s = Le("preset", {}).tree, D = oe(), K = oe(null);
54
+ let T = !1, L = !1;
55
+ const de = i(
56
+ () => {
57
+ var e;
58
+ return ((e = t.node) == null ? void 0 : e.children) && t.node.children.length > 0;
59
+ }
60
+ ), U = i(
61
+ () => {
62
+ var e;
63
+ return +t.node.key != -1 && t.useOption && !((e = t.listLabelsNoOption) != null && e.includes(t.node.name));
64
+ }
65
+ ), h = i(
66
+ () => t.expandedKeys && t.expandedKeys[t.node.key] === !0
67
+ ), B = i(
68
+ () => t.node.leaf === !1 ? !1 : !(t.node.children && t.node.children.length)
69
+ ), $ = i(() => v(t.node) || w(t.node) || t.node.selectable === !1 ? !1 : t.selectionMode != null), M = i(
70
+ () => {
71
+ var e;
72
+ return ((e = t.nodeSelectedWhen) == null ? void 0 : e.call(t, t.node)) || (t.selectionMode && t.selectionKeys ? t.selectionKeys[t.node.key] === !0 : !1);
73
+ }
74
+ ), I = i(
75
+ () => t.selectionMode === "checkbox" && t.node.selectable !== !1
76
+ ), g = i(
77
+ () => {
78
+ var e, n;
79
+ return ((e = t.nodeSelectedWhen) == null ? void 0 : e.call(t, t.node)) || (t.selectionKeys ? (n = t.selectionKeys[t.node.key]) == null ? void 0 : n.checked : !1);
80
+ }
81
+ ), re = i(
82
+ () => {
83
+ var e;
84
+ return t.selectionKeys ? (e = t.selectionKeys[t.node.key]) == null ? void 0 : e.partialChecked : !1;
85
+ }
86
+ ), ce = i(
87
+ () => t.selectionMode === "single" || t.selectionMode === "multiple" ? M.value : void 0
88
+ ), ue = i(
89
+ () => I.value ? g.value : void 0
90
+ ), ge = () => {
91
+ u("nodeToggle", t.node), L = !0;
92
+ }, pe = (e) => e.label, be = (e) => {
93
+ u("nodeToggle", e);
94
+ }, O = (e) => {
95
+ if (L || y.getAttribute(
96
+ e.target,
97
+ '[data-pc-section="toggler"]'
98
+ ) || y.getAttribute(
99
+ e.target.parentElement,
100
+ '[data-pc-section="toggler"]'
101
+ )) {
102
+ L = !1;
103
+ return;
104
+ }
105
+ ve() ? ye(e.type === "dblclick" || t.node.key === -1) : u("nodeClick", {
106
+ originalEvent: e,
107
+ nodeTouched: T,
108
+ node: { ...t.node, selectable: $.value }
109
+ // To prevent selection when the node disabled by disableKeys or exactDisableKeys
110
+ }), T = !1;
111
+ }, fe = (e) => {
112
+ u("nodeClick", e);
113
+ }, he = () => {
114
+ T = !0;
115
+ }, me = (e, n) => {
116
+ if (t.selectionMode !== null) {
117
+ const o = [
118
+ ...y.find(K.value.parentElement, '[role="treeitem"]')
119
+ ];
120
+ e.currentTarget.tabIndex = n === !1 ? -1 : 0, o.every((l) => l.tabIndex === -1) && (o[0].tabIndex = 0);
121
+ }
122
+ }, k = (e, n, o) => {
123
+ e.tabIndex = -1, n.tabIndex = 0, Ae(o || n);
124
+ }, z = (e) => {
125
+ const n = e.closest("ul").closest("li");
126
+ if (n) {
127
+ const o = y.findSingle(n, "button");
128
+ return o && o.style.visibility !== "hidden" ? n : z(e.previousElementSibling);
129
+ }
130
+ return null;
131
+ }, H = () => {
132
+ if (!K.value) return;
133
+ const e = y.find(
134
+ K.value.closest('[data-pc-section="container"]'),
135
+ '[role="treeitem"]'
136
+ ), n = [...e].some(
137
+ (o) => o.getAttribute("aria-selected") === "true" || o.getAttribute("aria-checked") === "true"
138
+ );
139
+ if ([...e].forEach((o) => {
140
+ o.tabIndex = -1;
141
+ }), n) {
142
+ const o = [...e].filter(
143
+ (l) => l.getAttribute("aria-selected") === "true" || l.getAttribute("aria-checked") === "true"
144
+ );
145
+ o[0].tabIndex = 0;
146
+ return;
147
+ }
148
+ [...e][0].tabIndex = 0;
149
+ }, ye = (e = !1) => {
150
+ const n = t.selectionKeys ? { ...t.selectionKeys } : {}, o = !g.value;
151
+ j(t.node, o, n, e), u("checkboxChange", {
152
+ node: t.node,
153
+ check: o,
154
+ selectionKeys: n
155
+ });
156
+ }, j = (e, n, o, l = !1) => {
157
+ if (n ? o[e.key] = { checked: !0, partialChecked: !1 } : delete o[e.key], (l || t.propagateSelection) && e.children && e.children.length)
158
+ for (const r of e.children)
159
+ j(r, n, o, l);
160
+ }, ke = (e) => {
161
+ var f, p;
162
+ const { check: n } = e, o = { ...e.selectionKeys };
163
+ let l = 0, r = !1;
164
+ if (t.node.children) {
165
+ if (t.propagateSelection) {
166
+ for (const S of t.node.children)
167
+ (f = o[S.key]) != null && f.checked ? l++ : (p = o[S.key]) != null && p.partialChecked && (r = !0);
168
+ n && l === t.node.children.length ? o[t.node.key] = { checked: !0, partialChecked: !1 } : (n || delete o[t.node.key], r || l > 0 && l !== t.node.children.length ? o[t.node.key] = {
169
+ checked: !1,
170
+ partialChecked: !0
171
+ } : delete o[t.node.key]);
172
+ }
173
+ u("checkboxChange", {
174
+ node: e.node,
175
+ check: e.check,
176
+ selectionKeys: o
177
+ });
178
+ }
179
+ }, ve = () => t.selectionMode === "checkbox", Ne = (e) => {
180
+ if (Te(e))
181
+ switch (e.code) {
182
+ case "Tab":
183
+ Ke();
184
+ break;
185
+ case "ArrowDown":
186
+ q(e);
187
+ break;
188
+ case "ArrowUp":
189
+ Ce(e);
190
+ break;
191
+ case "ArrowRight":
192
+ Ee(e);
193
+ break;
194
+ case "ArrowLeft":
195
+ we(e);
196
+ break;
197
+ case "Enter":
198
+ case "NumpadEnter":
199
+ case "Space":
200
+ Se(e);
201
+ break;
202
+ }
203
+ }, q = (e) => {
204
+ const n = e.target.getAttribute("data-wv-section") === "tree-node-toggler" ? e.target.closest(
205
+ '[role="treeitem"]'
206
+ ) : e.target, o = n.children[1];
207
+ if (o)
208
+ k(n, o.children[0]);
209
+ else if (n.nextElementSibling)
210
+ k(
211
+ n,
212
+ n.nextElementSibling
213
+ );
214
+ else {
215
+ const l = R(
216
+ n
217
+ );
218
+ l && k(n, l);
219
+ }
220
+ e.preventDefault();
221
+ }, Ce = (e) => {
222
+ const n = e.target;
223
+ if (n.previousElementSibling)
224
+ k(
225
+ n,
226
+ n.previousElementSibling,
227
+ G(
228
+ n.previousElementSibling
229
+ )
230
+ );
231
+ else {
232
+ const o = J(n);
233
+ o && k(n, o);
234
+ }
235
+ e.preventDefault();
236
+ }, Ee = (e) => {
237
+ B.value || h.value || (e.currentTarget.tabIndex = -1, u("nodeToggle", t.node), ae(() => {
238
+ q(e);
239
+ }));
240
+ }, we = (e) => {
241
+ const n = y.findSingle(
242
+ e.currentTarget,
243
+ '[data-wv-section="tree-node-toggler"]'
244
+ );
245
+ if (t.level === 0 && !h.value)
246
+ return !1;
247
+ if (h.value && !B.value)
248
+ return n.click(), !1;
249
+ const o = z(
250
+ e.currentTarget
251
+ );
252
+ o && k(e.currentTarget, o);
253
+ }, Se = (e) => {
254
+ me(e, T), O(e), e.preventDefault();
255
+ }, Ke = () => {
256
+ H();
257
+ }, Te = (e) => e.currentTarget && (e.currentTarget.isSameNode(e.target) || e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]'))), Me = async (e, n) => {
258
+ var r, f;
259
+ const o = e.target, l = o.tagName.toLowerCase() === "button" ? o : o.parentElement;
260
+ if (l != null && l.classList.contains("tree-menu-button-active")) {
261
+ W();
262
+ const p = {
263
+ ...e,
264
+ currentTarget: e.target
265
+ };
266
+ (r = D.value) == null || r.toggle(p);
267
+ } else {
268
+ await ae(), W(), l == null || l.classList.add("tree-menu-button-active", "!bg-surface-300/20");
269
+ const p = {
270
+ ...e,
271
+ currentTarget: e.target
272
+ };
273
+ (f = D.value) == null || f.toggle(p), u("toggleMenu", n);
274
+ }
275
+ }, W = () => {
276
+ const e = document.querySelectorAll(
277
+ ".tree-menu-button-active"
278
+ );
279
+ e == null || e.forEach((n) => {
280
+ n.classList.remove("tree-menu-button-active", "!bg-surface-300/20");
281
+ });
282
+ }, R = (e) => {
283
+ const n = J(e);
284
+ return n ? n.nextElementSibling ? n.nextElementSibling : R(n) : null;
285
+ }, G = (e) => {
286
+ const n = e.children[1];
287
+ if (n) {
288
+ const o = n.children[n.children.length - 1];
289
+ return G(o);
290
+ }
291
+ return e;
292
+ }, J = (e) => {
293
+ const n = e.parentElement.parentElement;
294
+ return y.getAttribute(n, "role") === "treeitem" ? n : null;
295
+ }, Ae = (e) => {
296
+ e.focus();
297
+ }, v = (e) => {
298
+ var n, o;
299
+ return ((n = t.disableKeys) == null ? void 0 : n.includes(+e.key)) || t.disabled || e.selectable == !1 || e.disabled == !0 || ((o = t.disableNodeWhen) == null ? void 0 : o.call(t, e));
300
+ }, w = (e) => {
301
+ var n, o;
302
+ return e.selectable == !1 || ((n = t.exactDisableKeys) == null ? void 0 : n.includes(+e.key)) || t.disableNodeAll && +e.key == -1 || ((o = t.exactDisableNodeWhen) == null ? void 0 : o.call(t, e));
303
+ };
304
+ return Be(() => {
305
+ H();
306
+ }), (e, n) => {
307
+ var l, r, f, p, S, Q, X, Y, Z, _, ee;
308
+ const o = Ie("TreeNode", !0);
309
+ return a(), N(P, null, [
310
+ C("li", m({
311
+ ref_key: "currentNode",
312
+ ref: K,
313
+ "aria-checked": ce.value,
314
+ "aria-expanded": h.value,
315
+ "aria-label": pe(e.node),
316
+ "aria-level": e.level,
317
+ "aria-posinset": e.index + 1,
318
+ "aria-selected": ue.value,
319
+ "aria-setsize": e.node.children ? e.node.children.length : 0,
320
+ tabindex: e.index === 0 ? 0 : -1,
321
+ onKeydown: Ne
322
+ }, (l = t.pt ?? d(s)) == null ? void 0 : l.node, {
323
+ "data-wv-name": "treenode",
324
+ role: "treeitem"
325
+ }), [
326
+ C("div", m(
327
+ (r = t.pt ?? d(s)) == null ? void 0 : r.content({
328
+ props: t,
329
+ context: {
330
+ selected: g.value || M.value,
331
+ disabled: v(e.node),
332
+ exactDisabled: w(e.node)
333
+ }
334
+ }),
335
+ {
336
+ "data-p-highlight": I.value ? g.value : M.value,
337
+ "data-p-selectable": $.value,
338
+ style: e.node.style,
339
+ onClick: O,
340
+ onTouchend: he
341
+ }
342
+ ), [
343
+ C("button", m({
344
+ onClick: ge,
345
+ "aria-hidden": "true",
346
+ tabindex: "-1",
347
+ type: "button"
348
+ }, (f = t.pt ?? d(s)) == null ? void 0 : f.toggler({ context: { leaf: B.value } })), [
349
+ e.node.loading && e.loadingMode === "icon" ? (a(), b(F, {
350
+ key: 0,
351
+ class: "animate-spin",
352
+ icon: "spinner"
353
+ })) : (a(), N(P, { key: 1 }, [
354
+ e.templates.togglericon ? (a(), b(V(e.templates.togglericon), {
355
+ key: 0,
356
+ class: E([...(p = t.pt ?? d(s)) == null ? void 0 : p.togglericon.class]),
357
+ expanded: h.value,
358
+ node: e.node
359
+ }, null, 8, ["class", "expanded", "node"])) : (a(), b(F, {
360
+ key: 1,
361
+ class: E([
362
+ ...(S = t.pt ?? d(s)) == null ? void 0 : S.togglericon.class,
363
+ { "rotate-90": h.value }
364
+ ]),
365
+ "data-wv-section": "togglericon",
366
+ icon: "arrow-right"
367
+ }, null, 8, ["class"]))
368
+ ], 64))
369
+ ], 16),
370
+ I.value ? (a(), b(Fe, m({
371
+ key: 0,
372
+ binary: !1
373
+ }, (Q = t.pt ?? d(s)) == null ? void 0 : Q.nodeCheckbox.root, {
374
+ disabled: v(e.node) || w(e.node),
375
+ "model-value": g.value ? g.value : re.value ? !1 : null,
376
+ onClick: n[0] || (n[0] = x(() => {
377
+ }, ["prevent"])),
378
+ onKeydown: n[1] || (n[1] = x(() => {
379
+ }, ["prevent", "stop"])),
380
+ "onUpdate:modelValue": O,
381
+ "data-wv-section": "nodecheckbox",
382
+ "tri-state": ""
383
+ }), null, 16, ["disabled", "model-value"])) : A("", !0),
384
+ e.templates.nodeicon ? (a(), b(V(e.templates.nodeicon), {
385
+ key: 1,
386
+ class: E([...(X = t.pt ?? d(s)) == null ? void 0 : X.nodeicon().class]),
387
+ node: e.node
388
+ }, null, 8, ["class", "node"])) : (a(), N("span", {
389
+ key: 2,
390
+ class: E([...(Y = t.pt ?? d(s)) == null ? void 0 : Y.nodeicon().class, e.node.icon])
391
+ }, null, 2)),
392
+ C("span", m(
393
+ (Z = t.pt ?? d(s)) == null ? void 0 : Z.label({
394
+ props: t,
395
+ context: {
396
+ selected: g.value || M.value,
397
+ disabled: v(e.node),
398
+ exactDisabled: w(e.node)
399
+ }
400
+ }),
401
+ {
402
+ onKeydown: n[3] || (n[3] = x(() => {
403
+ }, ["stop"]))
404
+ }
405
+ ), [
406
+ e.templates[e.node.type] || e.templates.default ? (a(), b(V(e.templates[e.node.type] || e.templates.default), {
407
+ key: 0,
408
+ checked: g.value,
409
+ disabled: w(e.node) || v(e.node),
410
+ node: e.node
411
+ }, null, 8, ["checked", "disabled", "node"])) : (a(), N("span", {
412
+ key: 1,
413
+ "data-node-has-children": !!((_ = e.node.children) != null && _.length),
414
+ "data-node-key": e.node.key,
415
+ "data-node-selected": g.value,
416
+ class: "grow"
417
+ }, le(e.node.name), 9, He)),
418
+ U.value ? (a(), b(Ve, {
419
+ key: 2,
420
+ class: E([
421
+ "!w-4 !h-4 !min-w-4 p-0.5",
422
+ "!text-general-200",
423
+ "rounded-full"
424
+ ]),
425
+ onClick: n[2] || (n[2] = x((c) => Me(c, e.node), ["stop"])),
426
+ "data-wv-section": "nodemenubutton",
427
+ icon: "more",
428
+ severity: "secondary",
429
+ text: "",
430
+ tooltip: "Action",
431
+ "tooltip-pos": "left"
432
+ })) : A("", !0)
433
+ ], 16)
434
+ ], 16, ze),
435
+ de.value && h.value ? (a(), N("ul", m({
436
+ key: 0,
437
+ role: "group"
438
+ }, (ee = t.pt ?? d(s)) == null ? void 0 : ee.subgroup), [
439
+ (a(!0), N(P, null, Oe(e.node.children, (c) => {
440
+ var te, ne;
441
+ return a(), b(o, m({
442
+ key: c.key,
443
+ ref_for: !0
444
+ }, t, {
445
+ class: [...(ne = (te = t.pt ?? d(s)) == null ? void 0 : te.node) == null ? void 0 : ne.class],
446
+ "disable-keys": e.disableKeys,
447
+ disabled: v(c),
448
+ "exact-disable-keys": e.exactDisableKeys,
449
+ "expanded-keys": e.expandedKeys,
450
+ level: e.level + 1,
451
+ "list-labels-no-option": e.listLabelsNoOption,
452
+ "loading-mode": e.loadingMode,
453
+ node: c,
454
+ "propagate-selection": t.propagateSelection,
455
+ pt: e.pt,
456
+ "selection-keys": e.selectionKeys,
457
+ "selection-mode": e.selectionMode,
458
+ templates: e.templates,
459
+ "tree-node-menus": e.treeNodeMenus,
460
+ unstyled: e.unstyled,
461
+ "use-option": e.useOption,
462
+ onCheckboxChange: ke,
463
+ onNodeClick: fe,
464
+ onNodeToggle: be,
465
+ onToggleMenu: n[4] || (n[4] = (xe) => u("toggleMenu", xe))
466
+ }), null, 16, ["class", "disable-keys", "disabled", "exact-disable-keys", "expanded-keys", "level", "list-labels-no-option", "loading-mode", "node", "propagate-selection", "pt", "selection-keys", "selection-mode", "templates", "tree-node-menus", "unstyled", "use-option"]);
467
+ }), 128))
468
+ ], 16)) : A("", !0)
469
+ ], 16, $e),
470
+ U.value ? (a(), b(Ue, {
471
+ key: 0,
472
+ ref_key: "treeNodeMenu",
473
+ ref: D,
474
+ model: e.treeNodeMenus,
475
+ popup: !0,
476
+ onHide: W,
477
+ "data-wv-section": "tree-node-menus"
478
+ }, {
479
+ item: We(({ item: c }) => [
480
+ C("a", je, [
481
+ Pe(F, {
482
+ icon: c.icon,
483
+ severity: c.danger ? "danger" : void 0
484
+ }, null, 8, ["icon", "severity"]),
485
+ C("span", {
486
+ class: E(["text-inherit", { "!text-danger-500": c.danger }]),
487
+ "data-pc-section": "label"
488
+ }, le(c.label), 3)
489
+ ])
490
+ ]),
491
+ _: 1
492
+ }, 8, ["model"])) : A("", !0)
493
+ ], 64);
494
+ };
495
+ }
496
+ });
497
+ export {
498
+ Ye as _
499
+ };