@pubinfo-nightly/module-rbac 2025.12.8 → 2025.12.25

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 (454) hide show
  1. package/dist/ComponentSelect-D0OCk6H1.js +3572 -0
  2. package/dist/ComponentSelect-WO-3S5rH.js +2 -0
  3. package/dist/DynamicRoutesForm-DP_sq_Uu.js +168 -0
  4. package/dist/DynamicRoutesForm-DjZ3eVLW.js +4 -0
  5. package/dist/HCheckList-B5Qk_HBI.js +2 -0
  6. package/dist/HCheckList-DLBewmPw.js +36 -0
  7. package/dist/HoverCard-69ZIOivd.js +2 -0
  8. package/dist/HoverCard-BDFcxxvk.js +43 -0
  9. package/dist/IconSelect-1pVgA_5l.js +705 -0
  10. package/dist/IconSelect-C5KTdyzv.js +3 -0
  11. package/dist/IconSelect.css +1 -1
  12. package/dist/ImportExport-CL5uPlby.js +342 -0
  13. package/dist/ImportExport-CPy2rvv7.js +4 -0
  14. package/dist/LayoutForm-Cp4bBrYl.js +124 -0
  15. package/dist/LayoutForm-QFjwakyQ.js +4 -0
  16. package/dist/MetaForm-Bb-um1Zo.js +4 -0
  17. package/dist/MetaForm-CVSgktB_.js +38917 -0
  18. package/dist/OrgAndPosition-ClASobEv.js +183 -0
  19. package/dist/OrgAndPosition-DoiGY5xb.js +2 -0
  20. package/dist/ResourceEdit-BX6xdiXV.js +10 -0
  21. package/dist/ResourceEdit-Dwr5KLyS.js +380 -0
  22. package/dist/ResourceRelation-BIOzTOKA.js +2 -0
  23. package/dist/ResourceRelation-ChEwIbWM.js +76 -0
  24. package/dist/ResourceRelation-D_j898zp.js +90 -0
  25. package/dist/ResourceRelation.css +1 -1
  26. package/dist/ResourceRelation2.css +1 -1
  27. package/dist/RoleRelation-CyTcqRfZ.js +2 -0
  28. package/dist/RoleRelation-DzyVn5dk.js +78 -0
  29. package/dist/RoleSelector-Cd6_RUsc.js +275 -0
  30. package/dist/TenantEdit-BOvXk7BZ.js +245 -0
  31. package/dist/TenantEdit-BlMmL6q5.js +2 -0
  32. package/dist/UserAuthorization-DLeivbs7.js +232 -0
  33. package/dist/UserAuthorization-qGr1Sdat.js +3 -0
  34. package/dist/UserEdit-CwfyqNWf.js +3 -0
  35. package/dist/UserEdit-YKS1FVW_.js +319 -0
  36. package/dist/add-child-CFHHkjfg.js +2 -0
  37. package/dist/animation_item-BU-LInxP.js +4485 -0
  38. package/dist/animation_item-GzGItm3s.js +2 -0
  39. package/dist/api/modules/assist/gonggaofuwu.d.ts +7 -7
  40. package/dist/api/modules/assist/qunzujiekou.d.ts +7 -7
  41. package/dist/api/modules/assist/quyujiekou.d.ts +6 -6
  42. package/dist/api/modules/configData/heibaimingdanfuwu.d.ts +6 -6
  43. package/dist/api/modules/configData/xitongpeizhifuwu.d.ts +15 -15
  44. package/dist/api/modules/configData/zidifuwu.d.ts +11 -11
  45. package/dist/api/modules/log/caozuorizhifuwu.d.ts +3 -3
  46. package/dist/api/modules/log/denglurizhifuwu.d.ts +3 -3
  47. package/dist/api/modules/rbac/gangweijiekou.d.ts +7 -7
  48. package/dist/api/modules/rbac/jiaosejiekou.d.ts +8 -8
  49. package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +8 -8
  50. package/dist/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +10 -10
  51. package/dist/api/modules/rbac/yonghujiekou.d.ts +16 -16
  52. package/dist/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +6 -6
  53. package/dist/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +5 -5
  54. package/dist/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +7 -7
  55. package/dist/api/modules/rbac/ziyuanjiekou.d.ts +14 -14
  56. package/dist/api/modules/rbac/zuhuguanlijiekou.d.ts +6 -6
  57. package/dist/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +5 -5
  58. package/dist/api/modules/rbac/zuzhijiekou.d.ts +10 -10
  59. package/dist/api/request.d.ts +1 -1
  60. package/dist/authority-L7SfiMdP.js +2 -0
  61. package/dist/authorize-qMpV_BXT.js +2 -0
  62. package/dist/blackWhiteList-FZezar30.js +210 -0
  63. package/dist/blackWhiteList.css +1 -0
  64. package/dist/blacklist-disable-BT6Xx-JG.js +2 -0
  65. package/dist/blacklist-enable-CJ6DK_V2.js +2 -0
  66. package/dist/breadcrumb_setting-Ds-XJRR1.js +108 -0
  67. package/dist/browser-chrome-DuAegVCe.js +2 -0
  68. package/dist/browser-edge-DzkWdXRd.js +2 -0
  69. package/dist/browser-ie-DZ9g_MXr.js +2 -0
  70. package/dist/browser-other-BmkifoYq.js +2 -0
  71. package/dist/browser-safari-CXrCuF2a.js +2 -0
  72. package/dist/browserType-BXTT4j6i.js +2 -0
  73. package/dist/browserType-Dn_hQtAN.js +25 -0
  74. package/dist/chunk-Cpsc_9al.js +18 -0
  75. package/dist/cloneDeep-DDAtsK42.js +7 -0
  76. package/dist/components/DirectoryIcones/ComponentsIcones.vue.d.ts +3 -2
  77. package/dist/components/DirectoryIcones/FolderIcones.vue.d.ts +3 -2
  78. package/dist/components/DirectoryIcones/ModuleIcones.vue.d.ts +3 -2
  79. package/dist/components/DirectoryIcones/PackagesIcones.vue.d.ts +3 -2
  80. package/dist/components/DirectoryIcones/SrcIcones.vue.d.ts +3 -2
  81. package/dist/components/DirectoryIcones/ViewIcones.vue.d.ts +3 -2
  82. package/dist/components/DirectoryIcones/VueIcones.vue.d.ts +2 -1
  83. package/dist/components/GroupSelector/index.vue.d.ts +5 -10
  84. package/dist/components/JsonEditorModal/index.vue.d.ts +20 -0
  85. package/dist/components/OrgTree/index.vue.d.ts +6 -0
  86. package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +15 -18
  87. package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +15 -18
  88. package/dist/components/OrgUserSelector/index.d.ts +4 -2
  89. package/dist/components/OrgUserSelector/provider.d.ts +1 -1
  90. package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +4 -6
  91. package/dist/components/ResourceIcones/Select.vue.d.ts +14 -23
  92. package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +16 -7
  93. package/dist/components/ResourceSelector/index.vue.d.ts +10 -14
  94. package/dist/components/RoleSelector/RoleSearch.vue.d.ts +6 -12
  95. package/dist/components/RoleSelector/RoleSelector.vue.d.ts +8 -12
  96. package/dist/components/RoleSelector/TooltipLabel.vue.d.ts +3 -2
  97. package/dist/components/RoleSelector/useRole.d.ts +68 -4
  98. package/dist/composables/useLottie.d.ts +1 -1
  99. package/dist/context.d.ts +2 -2
  100. package/dist/createAndEditDataPermission-CChlLDUm.js +5 -0
  101. package/dist/createAndEditDataPermission-CaOBJgoV.js +430 -0
  102. package/dist/createAndEditDataPermission.css +1 -1
  103. package/dist/data-permission-ZRQ-Aoib.js +152 -0
  104. package/dist/dayjs.min-sGDSMYRj.js +297 -0
  105. package/dist/dictionary-CtGgtPfc.js +179 -0
  106. package/dist/drawerBlackWhiteList-BqIDyn2Q.js +2 -0
  107. package/dist/drawerBlackWhiteList-CkbZ_9PZ.js +119 -0
  108. package/dist/drawerDictionary-D911w7pC.js +2 -0
  109. package/dist/drawerDictionary-dMHs-6Cw.js +125 -0
  110. package/dist/drawerDictionaryItem-CbTa_qL-.js +137 -0
  111. package/dist/drawerDictionaryItem-DLUI5Yuc.js +2 -0
  112. package/dist/drawerGroup-CEEDMBg9.js +3 -0
  113. package/dist/drawerGroup-DEuiiDPP.js +184 -0
  114. package/dist/drawerOrganization-CqEMD3gE.js +246 -0
  115. package/dist/drawerOrganization-mks5NMd9.js +2 -0
  116. package/dist/drawerPosition-Bd0s7qze.js +165 -0
  117. package/dist/drawerPosition-DwlTrlGA.js +2 -0
  118. package/dist/drawerRegion-DUbQAZuV.js +182 -0
  119. package/dist/drawerRegion-DwVzsZfT.js +2 -0
  120. package/dist/drawerRole-BNrbcSmr.js +3 -0
  121. package/dist/drawerRole-BxUIekjh.js +3 -0
  122. package/dist/drawerRole-CyA2oFht.js +4 -0
  123. package/dist/drawerRole-D5X7oHB_.js +153 -0
  124. package/dist/drawerRole-DNDyOvXw.js +166 -0
  125. package/dist/drawerRole-Dv61PBZR.js +208 -0
  126. package/dist/edit-fZ7h_z_Z.js +2 -0
  127. package/dist/enum-3E_sUqRF.js +50 -0
  128. package/dist/enum-3mYayxff.js +61 -0
  129. package/dist/enum-Cr7uWnB2.js +23 -0
  130. package/dist/enum-D2UEJsrC.js +4 -0
  131. package/dist/group-BbkZjv5e.js +172 -0
  132. package/dist/group.css +1 -0
  133. package/dist/icard-H-d9Pip-.js +2 -0
  134. package/dist/icon_animation-BCdRKkE5.js +2 -0
  135. package/dist/icon_breadcrumb-BR6LK8hP.js +2 -0
  136. package/dist/icon_copyright-BfWn1s6t.js +2 -0
  137. package/dist/icon_jt-DOMTq9De.js +2 -0
  138. package/dist/icon_layout-DKqAThpM.js +2 -0
  139. package/dist/icon_mainpage-CXB9JMGv.js +2 -0
  140. package/dist/icon_menu-BYQtWV-Q.js +2 -0
  141. package/dist/icon_page_size-r-z4oHWp.js +2 -0
  142. package/dist/icon_position_type-JDFdklRh.js +2 -0
  143. package/dist/icon_safe_manage-BDTIOduB.js +2 -0
  144. package/dist/icon_screen_scale-vEaAdr9S.js +2 -0
  145. package/dist/icon_system_manage-CkhQtieE.js +2 -0
  146. package/dist/icon_tabbar-DZNj-h-p.js +2 -0
  147. package/dist/icon_toolbar-BBYhGmEf.js +2 -0
  148. package/dist/icon_topbar-Bc379eaS.js +2 -0
  149. package/dist/icon_watermark-CTP8r-e2.js +2 -0
  150. package/dist/index.css +1 -1
  151. package/dist/index.d.ts +2 -2
  152. package/dist/index.js +7503 -7465
  153. package/dist/interface.d.ts +2 -2
  154. package/dist/isEmpty-BvRqbmpu.js +13 -0
  155. package/dist/itemlist-By-FV6pN.js +156 -0
  156. package/dist/layout_setting-BUAgQ1Bk.js +68 -0
  157. package/dist/layout_setting.css +1 -0
  158. package/dist/log-center-CGT-BGAN.js +2 -0
  159. package/dist/log-vjU7aBPR.js +14 -0
  160. package/dist/loginHistoryDetail-C7GT2yME.js +77 -0
  161. package/dist/loginHistoryDetail-CkH5UUGU.js +3 -0
  162. package/dist/login_history-D08W00Qu.js +195 -0
  163. package/dist/login_history.css +1 -1
  164. package/dist/menu_setting-5Jet091Q.js +155 -0
  165. package/dist/not-data-Cx--tk_h.js +2 -0
  166. package/dist/not-data-tyTawN37.js +2 -0
  167. package/dist/operateHistoryDetail-BaNJRfwy.js +89 -0
  168. package/dist/operateHistoryDetail-CeVPJzD6.js +3 -0
  169. package/dist/operate_history-kJwIuPg2.js +190 -0
  170. package/dist/operate_history.css +1 -1
  171. package/dist/org-main-DnftBa38.js +2 -0
  172. package/dist/org-unmain-ByMarqFw.js +2 -0
  173. package/dist/organization-Cmj3DUXl.js +15322 -0
  174. package/dist/organization.css +1 -0
  175. package/dist/other_setting-DQ70WnZK.js +213 -0
  176. package/dist/other_setting.css +1 -0
  177. package/dist/page_animation_setting-Lp6cMuFM.js +108 -0
  178. package/dist/page_animation_setting.css +1 -0
  179. package/dist/page_w_setting-CD_HtSUv.js +63 -0
  180. package/dist/page_w_setting.css +1 -0
  181. package/dist/position-CLpbgKGj.js +166 -0
  182. package/dist/region-Dd9pt_Si.js +179 -0
  183. package/dist/remove-DfZZBE2T.js +2 -0
  184. package/dist/resource-B-gkg5Ti.js +271 -0
  185. package/dist/resource-app-QSLZ7Hts.js +2 -0
  186. package/dist/resource-btn-BcB4xMgR.js +2 -0
  187. package/dist/resource-dynamic-D69oEbaO.js +2 -0
  188. package/dist/resource-index-BIHr3PZY.js +2 -0
  189. package/dist/resource-menu-0JSNn7S7.js +2 -0
  190. package/dist/resource-micro-CcX_pmaJ.js +2 -0
  191. package/dist/resource-nonmenu-DFItasMT.js +2 -0
  192. package/dist/role-JGtvRObt.js +192 -0
  193. package/dist/role_group-CKOb_m63.js +171 -0
  194. package/dist/routeSystem-DXMoWhFo.js +2 -0
  195. package/dist/routes/index.d.ts +2 -2
  196. package/dist/routes/modules/authority.manage.menu.d.ts +1 -1
  197. package/dist/routes/modules/log.manage.menu.d.ts +1 -1
  198. package/dist/routes/modules/safe.manage.menu.d.ts +1 -1
  199. package/dist/routes/modules/stylesetting.manage.menu.d.ts +1 -1
  200. package/dist/routes/modules/system.manage.menu.d.ts +1 -1
  201. package/dist/safe_setting-G_ZP-jWQ.js +221 -0
  202. package/dist/setItem-Qa7UapHO.js +4 -0
  203. package/dist/setItem-yKhjmUh0.js +76 -0
  204. package/dist/setItem.css +1 -1
  205. package/dist/setting-manage-C9whamLP.js +2 -0
  206. package/dist/stores/view.d.ts +127 -22
  207. package/dist/stores-DPQF8JRt.js +2 -0
  208. package/dist/tabbar_setting-B3kMhRNm.js +139 -0
  209. package/dist/tenant-BBiCJkU_.js +177 -0
  210. package/dist/theme-check-mark-DG4oWCQN.js +2 -0
  211. package/dist/theme-title-BCYnl2jK.js +2 -0
  212. package/dist/theme_setting-vhNDLlkc.js +111 -0
  213. package/dist/theme_setting.css +1 -0
  214. package/dist/{index-C2G4xRrJ.js → toolbar_setting-DNBdxeGP.js} +140 -144
  215. package/dist/useAppAndResource-CPL2VpOJ.js +52 -0
  216. package/dist/user-DvCyUhZW.js +339 -0
  217. package/dist/utils/routeSystem.d.ts +133 -28
  218. package/dist/vanilla-picker-DcG96G63.js +724 -0
  219. package/dist/view-Bnu34EJT.js +2 -0
  220. package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +3 -8
  221. package/dist/views/blackWhiteList/index.vue.d.ts +2 -1534
  222. package/dist/views/breadcrumb_setting/animationData.d.ts +6 -6
  223. package/dist/views/breadcrumb_setting/index.vue.d.ts +2 -1
  224. package/dist/views/components/HCheckList.vue.d.ts +4 -3
  225. package/dist/views/components/animation_item.vue.d.ts +4 -5
  226. package/dist/views/components/setItem.vue.d.ts +3 -35
  227. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +3 -169
  228. package/dist/views/data-permission/index.vue.d.ts +2 -1690
  229. package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +3 -8
  230. package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +3 -8
  231. package/dist/views/dictionary/index.vue.d.ts +2 -1531
  232. package/dist/views/dictionary/itemlist.vue.d.ts +2 -1531
  233. package/dist/views/group/components/drawerGroup.vue.d.ts +3 -8
  234. package/dist/views/group/index.vue.d.ts +2 -1531
  235. package/dist/views/layout_setting/index.vue.d.ts +2 -1
  236. package/dist/views/log_center/components/browserType.vue.d.ts +4 -3
  237. package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +4 -10
  238. package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +4 -10
  239. package/dist/views/log_center/login_history.vue.d.ts +2 -1510
  240. package/dist/views/log_center/operate_history.vue.d.ts +2 -1510
  241. package/dist/views/menu_setting/animationData.d.ts +12 -12
  242. package/dist/views/menu_setting/index.vue.d.ts +2 -1
  243. package/dist/views/organization/components/drawerOrganization.vue.d.ts +3 -8
  244. package/dist/views/organization/components/drawerRole.vue.d.ts +3 -41
  245. package/dist/views/organization/index.vue.d.ts +2 -80
  246. package/dist/views/other_setting/animationData.d.ts +6 -6
  247. package/dist/views/other_setting/index.vue.d.ts +2 -1
  248. package/dist/views/other_setting/interface.d.ts +1 -1
  249. package/dist/views/page_animation_setting/animationData.d.ts +10 -10
  250. package/dist/views/page_animation_setting/index.vue.d.ts +2 -1
  251. package/dist/views/page_w_setting/index.vue.d.ts +2 -1
  252. package/dist/views/position/components/drawerPosition.vue.d.ts +3 -8
  253. package/dist/views/position/index.vue.d.ts +2 -1531
  254. package/dist/views/region/components/drawerRegion.vue.d.ts +3 -8
  255. package/dist/views/region/index.vue.d.ts +2 -1532
  256. package/dist/views/resource/components/ComponentSelect.vue.d.ts +5 -6
  257. package/dist/views/resource/components/DynamicRoutesForm.vue.d.ts +8 -6
  258. package/dist/views/resource/components/HoverCard.vue.d.ts +9 -12
  259. package/dist/views/resource/components/IconSelect.vue.d.ts +6 -5
  260. package/dist/views/resource/components/ImportExport.vue.d.ts +4 -7
  261. package/dist/views/resource/components/LayoutForm.vue.d.ts +6 -5
  262. package/dist/views/resource/components/MetaForm.vue.d.ts +6 -5
  263. package/dist/views/resource/components/ResourceEdit.vue.d.ts +4 -9
  264. package/dist/views/resource/components/RoleRelation.vue.d.ts +4 -3
  265. package/dist/views/resource/hooks/useLayoutForm.d.ts +5 -4
  266. package/dist/views/resource/hooks/useMetaForm.d.ts +12 -3
  267. package/dist/views/resource/index.vue.d.ts +2 -1570
  268. package/dist/views/resource/interface.d.ts +1 -1
  269. package/dist/views/role/components/ResourceRelation.vue.d.ts +4 -1512
  270. package/dist/views/role/components/drawerRole.vue.d.ts +3 -45
  271. package/dist/views/role/index.vue.d.ts +2 -3089
  272. package/dist/views/role_group/components/drawerRole.vue.d.ts +3 -41
  273. package/dist/views/role_group/index.vue.d.ts +2 -1564
  274. package/dist/views/safe_setting/index.vue.d.ts +2 -3
  275. package/dist/views/tabbar_setting/animationData.d.ts +10 -10
  276. package/dist/views/tabbar_setting/index.vue.d.ts +2 -1
  277. package/dist/views/tenant/components/TenantEdit.vue.d.ts +4 -10
  278. package/dist/views/tenant/index.vue.d.ts +2 -1533
  279. package/dist/views/theme_setting/index.vue.d.ts +2 -1
  280. package/dist/views/toolbar_setting/animationData.d.ts +14 -14
  281. package/dist/views/toolbar_setting/index.vue.d.ts +2 -1
  282. package/dist/views/user/components/OrgAndPosition.vue.d.ts +8 -7
  283. package/dist/views/user/components/UserAuthorization.vue.d.ts +3 -41
  284. package/dist/views/user/components/UserEdit.vue.d.ts +4 -9
  285. package/dist/views/user/index.vue.d.ts +2 -1593
  286. package/dist/views/watermark_setting/animationData.d.ts +2 -2
  287. package/dist/views/watermark_setting/index.vue.d.ts +2 -30
  288. package/dist/watermark_setting-CXp4Og0Y.js +191 -0
  289. package/dist/watermark_setting.css +1 -0
  290. package/dist/zddata-Ceyga3_2.js +2 -0
  291. package/dist/zy_checked-DvD7k9F8.js +2 -0
  292. package/dist/zy_default-DJ2tB3Fo.js +2 -0
  293. package/package.json +7 -5
  294. package/dist/ComponentSelect-ZLey_5w7.js +0 -4
  295. package/dist/ComponentSelect.vue_vue_type_style_index_0_lang-CMEO08Uz.js +0 -3981
  296. package/dist/DynamicRoutesForm-BU4EAISs.js +0 -4
  297. package/dist/DynamicRoutesForm.vue_vue_type_script_setup_true_lang-bEqJ03T_.js +0 -179
  298. package/dist/HCheckList-Dkxhu1br.js +0 -4
  299. package/dist/HCheckList.vue_vue_type_script_setup_true_lang-n_QczT28.js +0 -41
  300. package/dist/HoverCard-7agF2aDO.js +0 -4
  301. package/dist/HoverCard.vue_vue_type_script_setup_true_lang-DEScDCo1.js +0 -62
  302. package/dist/IconSelect-DtNpk3Rj.js +0 -4
  303. package/dist/IconSelect.vue_vue_type_script_setup_true_lang-D450SiKg.js +0 -757
  304. package/dist/ImportExport-DAe_Sl13.js +0 -4
  305. package/dist/ImportExport.vue_vue_type_script_setup_true_lang-CV0DrMvw.js +0 -456
  306. package/dist/LayoutForm-Pv6UyKl3.js +0 -173
  307. package/dist/MetaForm-BMPtZc0g.js +0 -42413
  308. package/dist/OrgAndPosition-R-YixdXG.js +0 -4
  309. package/dist/OrgAndPosition.vue_vue_type_script_setup_true_lang-jEjTok4n.js +0 -195
  310. package/dist/ResourceEdit-D59JUDvG.js +0 -4
  311. package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-IWn27Vz1.js +0 -429
  312. package/dist/ResourceRelation-CeM9Eq39.js +0 -90
  313. package/dist/ResourceRelation-qhIdXLAy.js +0 -111
  314. package/dist/RoleRelation-BuqK0cnl.js +0 -4
  315. package/dist/RoleRelation.vue_vue_type_script_setup_true_lang-BjEOlM2g.js +0 -93
  316. package/dist/RoleSelector.vue_vue_type_script_setup_true_lang-ZwsINUBu.js +0 -352
  317. package/dist/TenantEdit-C61O1pSu.js +0 -4
  318. package/dist/TenantEdit.vue_vue_type_script_setup_true_lang-BwsA9hth.js +0 -306
  319. package/dist/UserAuthorization-Ch_iKzms.js +0 -273
  320. package/dist/UserEdit-B1fnFcSC.js +0 -4
  321. package/dist/UserEdit.vue_vue_type_script_setup_true_lang-SIR1ZO_N.js +0 -315
  322. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  323. package/dist/add-child-B9gDBQjZ.js +0 -4
  324. package/dist/animation_item-BZ1HNA6o.js +0 -4
  325. package/dist/animation_item.vue_vue_type_script_setup_true_lang-CmwThjHB.js +0 -4858
  326. package/dist/authority-B-0S66Fv.js +0 -4
  327. package/dist/authorize-DnyYvAo3.js +0 -4
  328. package/dist/blacklist-disable-DzVU8JLV.js +0 -4
  329. package/dist/blacklist-enable-BmWQR1i4.js +0 -4
  330. package/dist/browser-chrome-O9MASusF.js +0 -4
  331. package/dist/browser-edge-Dk6N_uRy.js +0 -4
  332. package/dist/browser-ie-Dtz7hQTC.js +0 -4
  333. package/dist/browser-other-Crzi8vov.js +0 -4
  334. package/dist/browser-safari-DF0pVlrn.js +0 -4
  335. package/dist/browserType-DQySszjD.js +0 -4
  336. package/dist/browserType.vue_vue_type_script_setup_true_lang-od1-AmrS.js +0 -32
  337. package/dist/cloneDeep-BOLZdR62.js +0 -8
  338. package/dist/createAndEditDataPermission-DPeFulie.js +0 -4
  339. package/dist/createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js +0 -528
  340. package/dist/dayjs.min-B2Yn1Frg.js +0 -284
  341. package/dist/drawerBlackWhiteList-eWyKScZN.js +0 -4
  342. package/dist/drawerBlackWhiteList.vue_vue_type_script_setup_true_lang-CNBKo3Jg.js +0 -173
  343. package/dist/drawerDictionary-BRGmcIFT.js +0 -4
  344. package/dist/drawerDictionary.vue_vue_type_script_setup_true_lang-0zsptmrP.js +0 -146
  345. package/dist/drawerDictionaryItem-CFBfyhEw.js +0 -4
  346. package/dist/drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DeJblyyZ.js +0 -158
  347. package/dist/drawerGroup-Bs1Z8XPo.js +0 -4
  348. package/dist/drawerGroup.vue_vue_type_script_setup_true_lang-ClG-M0Ru.js +0 -202
  349. package/dist/drawerOrganization-Bs0YtPuo.js +0 -4
  350. package/dist/drawerOrganization.vue_vue_type_script_setup_true_lang-5YJaULAh.js +0 -250
  351. package/dist/drawerPosition-BA_gLotd.js +0 -4
  352. package/dist/drawerPosition.vue_vue_type_script_setup_true_lang-ZqfbI05C.js +0 -181
  353. package/dist/drawerRegion-CauOP4lh.js +0 -4
  354. package/dist/drawerRegion.vue_vue_type_script_setup_true_lang-DeL9jV-P.js +0 -235
  355. package/dist/drawerRole-CXGVqxPX.js +0 -4
  356. package/dist/drawerRole-CfJjf3v_.js +0 -4
  357. package/dist/drawerRole-nmMTIQYS.js +0 -4
  358. package/dist/drawerRole.vue_vue_type_script_setup_true_lang-B-VZS3gq.js +0 -243
  359. package/dist/drawerRole.vue_vue_type_script_setup_true_lang-B1eT0e_Q.js +0 -197
  360. package/dist/drawerRole.vue_vue_type_script_setup_true_lang-Surpf3ov.js +0 -191
  361. package/dist/edit-B69fMWPH.js +0 -4
  362. package/dist/enum-C9ihxJe7.js +0 -4
  363. package/dist/enum-D5iPiZiT.js +0 -17
  364. package/dist/enum-DDKThkSw.js +0 -24
  365. package/dist/enum-DkSNwGbC.js +0 -74
  366. package/dist/gangweijiekou-CUGlx4Ni.js +0 -48
  367. package/dist/icard-C4FaIC0V.js +0 -4
  368. package/dist/icon_animation-CfRxn8ne.js +0 -4
  369. package/dist/icon_breadcrumb-CAPCH16K.js +0 -4
  370. package/dist/icon_copyright-T9HuRtib.js +0 -4
  371. package/dist/icon_jt-BZgxEG_D.js +0 -4
  372. package/dist/icon_layout-BynQzkfn.js +0 -4
  373. package/dist/icon_mainpage-Bu_lyj_6.js +0 -4
  374. package/dist/icon_menu-D41hl_4p.js +0 -4
  375. package/dist/icon_page_size-Bioi61il.js +0 -4
  376. package/dist/icon_position_type-QpezzPDJ.js +0 -4
  377. package/dist/icon_safe_manage-ByWMOnwf.js +0 -4
  378. package/dist/icon_screen_scale-CuPyb7Ni.js +0 -4
  379. package/dist/icon_system_manage-BxRLv7Nw.js +0 -4
  380. package/dist/icon_tabbar-CetwmJHN.js +0 -4
  381. package/dist/icon_toolbar-DXt_LXp8.js +0 -4
  382. package/dist/icon_topbar-C186yIiC.js +0 -4
  383. package/dist/icon_watermark-DhaloO3m.js +0 -4
  384. package/dist/index-B0zXLUdu.js +0 -350
  385. package/dist/index-B5aP0re3.js +0 -170
  386. package/dist/index-BEB4liGe.js +0 -151
  387. package/dist/index-BNwGLzXe.js +0 -168
  388. package/dist/index-BXvJhqJD.js +0 -97
  389. package/dist/index-BhZNbJp6.js +0 -189
  390. package/dist/index-Bm3WQuJD.js +0 -226
  391. package/dist/index-C5WD-YUu.js +0 -246
  392. package/dist/index-CJQB8KAz.js +0 -186
  393. package/dist/index-CLnFLvHy.js +0 -193
  394. package/dist/index-CbVJdR5M.js +0 -194
  395. package/dist/index-ChWnVs6j.js +0 -196
  396. package/dist/index-CoZM8pyH.js +0 -197
  397. package/dist/index-Copy5kiW.js +0 -17701
  398. package/dist/index-D3Xw_aOi.js +0 -144
  399. package/dist/index-DHVEXch0.js +0 -253
  400. package/dist/index-DQhQqT_Z.js +0 -269
  401. package/dist/index-Dl0hWfIE.js +0 -118
  402. package/dist/index-En8oOf9e.js +0 -168
  403. package/dist/index-VZuizuKs.js +0 -257
  404. package/dist/index-XhYtVVT9.js +0 -88
  405. package/dist/index-iBmBJd50.js +0 -181
  406. package/dist/index10.css +0 -1
  407. package/dist/index13.css +0 -1
  408. package/dist/index16.css +0 -1
  409. package/dist/index17.css +0 -1
  410. package/dist/index4.css +0 -1
  411. package/dist/index5.css +0 -1
  412. package/dist/index7.css +0 -1
  413. package/dist/index8.css +0 -1
  414. package/dist/index9.css +0 -1
  415. package/dist/isEmpty-BgDIb4aS.js +0 -20
  416. package/dist/itemlist-zTYJtoSs.js +0 -172
  417. package/dist/jiaosejiekou-p42Hm9h3.js +0 -58
  418. package/dist/log-center-Bw9UlmOq.js +0 -4
  419. package/dist/loginHistoryDetail-BZVwG8m2.js +0 -105
  420. package/dist/login_history-CMZGS2PN.js +0 -221
  421. package/dist/not-data-BDuvYboz.js +0 -4
  422. package/dist/operateHistoryDetail-Badx3zl-.js +0 -123
  423. package/dist/operate_history-B42WNY1u.js +0 -217
  424. package/dist/org-main-DfWpX8Wv.js +0 -4
  425. package/dist/org-unmain-DrX63NH5.js +0 -4
  426. package/dist/remove-D2ES5tEr.js +0 -4
  427. package/dist/resource-app-1lqF6C6F.js +0 -4
  428. package/dist/resource-btn-Cfo6ddAY.js +0 -4
  429. package/dist/resource-dynamic-BAwkCWS4.js +0 -4
  430. package/dist/resource-index-BS4V5uy8.js +0 -4
  431. package/dist/resource-menu-CEWU8Iis.js +0 -4
  432. package/dist/resource-micro-9S0h5AlK.js +0 -4
  433. package/dist/resource-nonmenu-BZ9e4ynT.js +0 -4
  434. package/dist/setItem-Blb3dox4.js +0 -87
  435. package/dist/setting-manage-Xj_s0OoK.js +0 -4
  436. package/dist/shujuquanxianzhubiaokongzhiqi-SpN37fyO.js +0 -65
  437. package/dist/theme-check-mark-D58efagJ.js +0 -4
  438. package/dist/theme-title-CYUX2SBW.js +0 -4
  439. package/dist/useAppAndResource-DDywX2iz.js +0 -54
  440. package/dist/vanilla-picker-BAEwS4Fy.js +0 -536
  441. package/dist/view-BCWU0JWM.js +0 -4
  442. package/dist/xitongpeizhifuwu-BoCbGEk7.js +0 -23
  443. package/dist/zddata-DQP5Kx3c.js +0 -4
  444. package/dist/ziyuanjiekou-BC65-bFK.js +0 -69
  445. package/dist/zuzhijiaosebiaokongzhiqi-Cj4ZjkfZ.js +0 -28
  446. package/dist/zy_checked-Bb6zRsYe.js +0 -4
  447. package/dist/zy_default-BGjhoury.js +0 -4
  448. /package/dist/{index2.css → breadcrumb_setting.css} +0 -0
  449. /package/dist/{index3.css → data-permission.css} +0 -0
  450. /package/dist/{index6.css → menu_setting.css} +0 -0
  451. /package/dist/{index11.css → safe_setting.css} +0 -0
  452. /package/dist/{index12.css → tabbar_setting.css} +0 -0
  453. /package/dist/{index14.css → toolbar_setting.css} +0 -0
  454. /package/dist/{index15.css → user.css} +0 -0
@@ -0,0 +1,724 @@
1
+ var classCallCheck = function(e, n) {
2
+ if (!(e instanceof n)) throw TypeError("Cannot call a class as a function");
3
+ }, createClass = function() {
4
+ function e(e, n) {
5
+ for (var r = 0; r < n.length; r++) {
6
+ var i = n[r];
7
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, i.key, i);
8
+ }
9
+ }
10
+ return function(n, r, i) {
11
+ return r && e(n.prototype, r), i && e(n, i), n;
12
+ };
13
+ }(), slicedToArray = function() {
14
+ function e(e, n) {
15
+ var r = [], i = !0, a = !1, o = void 0;
16
+ try {
17
+ for (var s = e[Symbol.iterator](), c; !(i = (c = s.next()).done) && (r.push(c.value), !(n && r.length === n)); i = !0);
18
+ } catch (e) {
19
+ a = !0, o = e;
20
+ } finally {
21
+ try {
22
+ !i && s.return && s.return();
23
+ } finally {
24
+ if (a) throw o;
25
+ }
26
+ }
27
+ return r;
28
+ }
29
+ return function(n, r) {
30
+ if (Array.isArray(n)) return n;
31
+ if (Symbol.iterator in Object(n)) return e(n, r);
32
+ throw TypeError("Invalid attempt to destructure non-iterable instance");
33
+ };
34
+ }();
35
+ String.prototype.startsWith = String.prototype.startsWith || function(e) {
36
+ return this.indexOf(e) === 0;
37
+ }, String.prototype.padStart = String.prototype.padStart || function(e, n) {
38
+ for (var r = this; r.length < e;) r = n + r;
39
+ return r;
40
+ };
41
+ var colorNames = {
42
+ cb: "0f8ff",
43
+ tqw: "aebd7",
44
+ q: "-ffff",
45
+ qmrn: "7fffd4",
46
+ zr: "0ffff",
47
+ bg: "5f5dc",
48
+ bsq: "e4c4",
49
+ bck: "---",
50
+ nch: "ebcd",
51
+ b: "--ff",
52
+ bvt: "8a2be2",
53
+ brwn: "a52a2a",
54
+ brw: "deb887",
55
+ ctb: "5f9ea0",
56
+ hrt: "7fff-",
57
+ chcT: "d2691e",
58
+ cr: "7f50",
59
+ rnw: "6495ed",
60
+ crns: "8dc",
61
+ crms: "dc143c",
62
+ cn: "-ffff",
63
+ Db: "--8b",
64
+ Dcn: "-8b8b",
65
+ Dgnr: "b8860b",
66
+ Dgr: "a9a9a9",
67
+ Dgrn: "-64-",
68
+ Dkhk: "bdb76b",
69
+ Dmgn: "8b-8b",
70
+ Dvgr: "556b2f",
71
+ Drng: "8c-",
72
+ Drch: "9932cc",
73
+ Dr: "8b--",
74
+ Dsmn: "e9967a",
75
+ Dsgr: "8fbc8f",
76
+ DsTb: "483d8b",
77
+ DsTg: "2f4f4f",
78
+ Dtrq: "-ced1",
79
+ Dvt: "94-d3",
80
+ ppnk: "1493",
81
+ pskb: "-bfff",
82
+ mgr: "696969",
83
+ grb: "1e90ff",
84
+ rbrc: "b22222",
85
+ rwht: "af0",
86
+ stg: "228b22",
87
+ chs: "-ff",
88
+ gnsb: "dcdcdc",
89
+ st: "8f8ff",
90
+ g: "d7-",
91
+ gnr: "daa520",
92
+ gr: "808080",
93
+ grn: "-8-0",
94
+ grnw: "adff2f",
95
+ hnw: "0fff0",
96
+ htpn: "69b4",
97
+ nnr: "cd5c5c",
98
+ ng: "4b-82",
99
+ vr: "0",
100
+ khk: "0e68c",
101
+ vnr: "e6e6fa",
102
+ nrb: "0f5",
103
+ wngr: "7cfc-",
104
+ mnch: "acd",
105
+ Lb: "add8e6",
106
+ Lcr: "08080",
107
+ Lcn: "e0ffff",
108
+ Lgnr: "afad2",
109
+ Lgr: "d3d3d3",
110
+ Lgrn: "90ee90",
111
+ Lpnk: "b6c1",
112
+ Lsmn: "a07a",
113
+ Lsgr: "20b2aa",
114
+ Lskb: "87cefa",
115
+ LsTg: "778899",
116
+ Lstb: "b0c4de",
117
+ Lw: "e0",
118
+ m: "-ff-",
119
+ mgrn: "32cd32",
120
+ nn: "af0e6",
121
+ mgnt: "-ff",
122
+ mrn: "8--0",
123
+ mqm: "66cdaa",
124
+ mmb: "--cd",
125
+ mmrc: "ba55d3",
126
+ mmpr: "9370db",
127
+ msg: "3cb371",
128
+ mmsT: "7b68ee",
129
+ "": "-fa9a",
130
+ mtr: "48d1cc",
131
+ mmvt: "c71585",
132
+ mnLb: "191970",
133
+ ntc: "5fffa",
134
+ mstr: "e4e1",
135
+ mccs: "e4b5",
136
+ vjw: "dead",
137
+ nv: "--80",
138
+ c: "df5e6",
139
+ v: "808-0",
140
+ vrb: "6b8e23",
141
+ rng: "a5-",
142
+ rngr: "45-",
143
+ rch: "da70d6",
144
+ pgnr: "eee8aa",
145
+ pgrn: "98fb98",
146
+ ptrq: "afeeee",
147
+ pvtr: "db7093",
148
+ ppwh: "efd5",
149
+ pchp: "dab9",
150
+ pr: "cd853f",
151
+ pnk: "c0cb",
152
+ pm: "dda0dd",
153
+ pwrb: "b0e0e6",
154
+ prp: "8-080",
155
+ cc: "663399",
156
+ r: "--",
157
+ sbr: "bc8f8f",
158
+ rb: "4169e1",
159
+ sbrw: "8b4513",
160
+ smn: "a8072",
161
+ nbr: "4a460",
162
+ sgrn: "2e8b57",
163
+ ssh: "5ee",
164
+ snn: "a0522d",
165
+ svr: "c0c0c0",
166
+ skb: "87ceeb",
167
+ sTb: "6a5acd",
168
+ sTgr: "708090",
169
+ snw: "afa",
170
+ n: "-ff7f",
171
+ stb: "4682b4",
172
+ tn: "d2b48c",
173
+ t: "-8080",
174
+ thst: "d8bfd8",
175
+ tmT: "6347",
176
+ trqs: "40e0d0",
177
+ vt: "ee82ee",
178
+ whT: "5deb3",
179
+ wht: "",
180
+ hts: "5f5f5",
181
+ w: "-",
182
+ wgrn: "9acd32"
183
+ };
184
+ function printNum(e) {
185
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
186
+ return (n > 0 ? e.toFixed(n).replace(/0+$/, "").replace(/\.$/, "") : e.toString()) || "0";
187
+ }
188
+ var Color = function() {
189
+ function o(n, i, a, s) {
190
+ classCallCheck(this, o);
191
+ var c = this;
192
+ function l(e) {
193
+ if (e.startsWith("hsl")) {
194
+ var n = slicedToArray(e.match(/([\-\d\.e]+)/g).map(Number), 4), i = n[0], a = n[1], s = n[2], l = n[3];
195
+ l === void 0 && (l = 1), i /= 360, a /= 100, s /= 100, c.hsla = [
196
+ i,
197
+ a,
198
+ s,
199
+ l
200
+ ];
201
+ } else if (e.startsWith("rgb")) {
202
+ var u = slicedToArray(e.match(/([\-\d\.e]+)/g).map(Number), 4), d = u[0], f = u[1], p = u[2], m = u[3];
203
+ m === void 0 && (m = 1), c.rgba = [
204
+ d,
205
+ f,
206
+ p,
207
+ m
208
+ ];
209
+ } else e.startsWith("#") ? c.rgba = o.hexToRgb(e) : c.rgba = o.nameToRgb(e) || o.hexToRgb(e);
210
+ }
211
+ if (n !== void 0) if (Array.isArray(n)) this.rgba = n;
212
+ else if (a === void 0) {
213
+ var u = n && "" + n;
214
+ u && l(u.toLowerCase());
215
+ } else this.rgba = [
216
+ n,
217
+ i,
218
+ a,
219
+ s === void 0 ? 1 : s
220
+ ];
221
+ }
222
+ return createClass(o, [
223
+ {
224
+ key: "printRGB",
225
+ value: function(e) {
226
+ var n = (e ? this.rgba : this.rgba.slice(0, 3)).map(function(e, n) {
227
+ return printNum(e, n === 3 ? 3 : 0);
228
+ });
229
+ return e ? "rgba(" + n + ")" : "rgb(" + n + ")";
230
+ }
231
+ },
232
+ {
233
+ key: "printHSL",
234
+ value: function(e) {
235
+ var n = [
236
+ 360,
237
+ 100,
238
+ 100,
239
+ 1
240
+ ], r = [
241
+ "",
242
+ "%",
243
+ "%",
244
+ ""
245
+ ], i = (e ? this.hsla : this.hsla.slice(0, 3)).map(function(e, i) {
246
+ return printNum(e * n[i], i === 3 ? 3 : 1) + r[i];
247
+ });
248
+ return e ? "hsla(" + i + ")" : "hsl(" + i + ")";
249
+ }
250
+ },
251
+ {
252
+ key: "printHex",
253
+ value: function(e) {
254
+ var n = this.hex;
255
+ return e ? n : n.substring(0, 7);
256
+ }
257
+ },
258
+ {
259
+ key: "rgba",
260
+ get: function() {
261
+ if (this._rgba) return this._rgba;
262
+ if (!this._hsla) throw Error("No color is set");
263
+ return this._rgba = o.hslToRgb(this._hsla);
264
+ },
265
+ set: function(e) {
266
+ e.length === 3 && (e[3] = 1), this._rgba = e, this._hsla = null;
267
+ }
268
+ },
269
+ {
270
+ key: "rgbString",
271
+ get: function() {
272
+ return this.printRGB();
273
+ }
274
+ },
275
+ {
276
+ key: "rgbaString",
277
+ get: function() {
278
+ return this.printRGB(!0);
279
+ }
280
+ },
281
+ {
282
+ key: "hsla",
283
+ get: function() {
284
+ if (this._hsla) return this._hsla;
285
+ if (!this._rgba) throw Error("No color is set");
286
+ return this._hsla = o.rgbToHsl(this._rgba);
287
+ },
288
+ set: function(e) {
289
+ e.length === 3 && (e[3] = 1), this._hsla = e, this._rgba = null;
290
+ }
291
+ },
292
+ {
293
+ key: "hslString",
294
+ get: function() {
295
+ return this.printHSL();
296
+ }
297
+ },
298
+ {
299
+ key: "hslaString",
300
+ get: function() {
301
+ return this.printHSL(!0);
302
+ }
303
+ },
304
+ {
305
+ key: "hex",
306
+ get: function() {
307
+ return "#" + this.rgba.map(function(e, n) {
308
+ return n < 3 ? e.toString(16) : Math.round(e * 255).toString(16);
309
+ }).map(function(e) {
310
+ return e.padStart(2, "0");
311
+ }).join("");
312
+ },
313
+ set: function(e) {
314
+ this.rgba = o.hexToRgb(e);
315
+ }
316
+ }
317
+ ], [
318
+ {
319
+ key: "hexToRgb",
320
+ value: function(e) {
321
+ var n = (e.startsWith("#") ? e.slice(1) : e).replace(/^(\w{3})$/, "$1F").replace(/^(\w)(\w)(\w)(\w)$/, "$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/, "$1FF");
322
+ if (!n.match(/^([0-9a-fA-F]{8})$/)) throw Error("Unknown hex color; " + e);
323
+ var r = n.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(e) {
324
+ return parseInt(e, 16);
325
+ });
326
+ return r[3] /= 255, r;
327
+ }
328
+ },
329
+ {
330
+ key: "nameToRgb",
331
+ value: function(e) {
332
+ var n = colorNames[e.toLowerCase().replace("at", "T").replace(/[aeiouyldf]/g, "").replace("ght", "L").replace("rk", "D").slice(-5, 4)];
333
+ return n === void 0 ? n : o.hexToRgb(n.replace(/\-/g, "00").padStart(6, "f"));
334
+ }
335
+ },
336
+ {
337
+ key: "rgbToHsl",
338
+ value: function(e) {
339
+ var n = slicedToArray(e, 4), i = n[0], a = n[1], o = n[2], s = n[3];
340
+ i /= 255, a /= 255, o /= 255;
341
+ var c = Math.max(i, a, o), l = Math.min(i, a, o), u = void 0, d = void 0, f = (c + l) / 2;
342
+ if (c === l) u = d = 0;
343
+ else {
344
+ var p = c - l;
345
+ switch (d = f > .5 ? p / (2 - c - l) : p / (c + l), c) {
346
+ case i:
347
+ u = (a - o) / p + (a < o ? 6 : 0);
348
+ break;
349
+ case a:
350
+ u = (o - i) / p + 2;
351
+ break;
352
+ case o:
353
+ u = (i - a) / p + 4;
354
+ break;
355
+ }
356
+ u /= 6;
357
+ }
358
+ return [
359
+ u,
360
+ d,
361
+ f,
362
+ s
363
+ ];
364
+ }
365
+ },
366
+ {
367
+ key: "hslToRgb",
368
+ value: function(e) {
369
+ var n = slicedToArray(e, 4), i = n[0], a = n[1], o = n[2], s = n[3], c = void 0, l = void 0, u = void 0;
370
+ if (a === 0) c = l = u = o;
371
+ else {
372
+ var d = function(e, n, r) {
373
+ return r < 0 && (r += 1), r > 1 && --r, r < 1 / 6 ? e + (n - e) * 6 * r : r < 1 / 2 ? n : r < 2 / 3 ? e + (n - e) * (2 / 3 - r) * 6 : e;
374
+ }, f = o < .5 ? o * (1 + a) : o + a - o * a, p = 2 * o - f;
375
+ c = d(p, f, i + 1 / 3), l = d(p, f, i), u = d(p, f, i - 1 / 3);
376
+ }
377
+ var m = [
378
+ c * 255,
379
+ l * 255,
380
+ u * 255
381
+ ].map(Math.round);
382
+ return m[3] = s, m;
383
+ }
384
+ }
385
+ ]), o;
386
+ }(), EventBucket = function() {
387
+ function r() {
388
+ classCallCheck(this, r), this._events = [];
389
+ }
390
+ return createClass(r, [
391
+ {
392
+ key: "add",
393
+ value: function(e, n, r) {
394
+ e.addEventListener(n, r, !1), this._events.push({
395
+ target: e,
396
+ type: n,
397
+ handler: r
398
+ });
399
+ }
400
+ },
401
+ {
402
+ key: "remove",
403
+ value: function(e, n, i) {
404
+ this._events = this._events.filter(function(a) {
405
+ var o = !0;
406
+ return e && e !== a.target && (o = !1), n && n !== a.type && (o = !1), i && i !== a.handler && (o = !1), o && r._doRemove(a.target, a.type, a.handler), !o;
407
+ });
408
+ }
409
+ },
410
+ {
411
+ key: "destroy",
412
+ value: function() {
413
+ this._events.forEach(function(e) {
414
+ return r._doRemove(e.target, e.type, e.handler);
415
+ }), this._events = [];
416
+ }
417
+ }
418
+ ], [{
419
+ key: "_doRemove",
420
+ value: function(e, n, r) {
421
+ e.removeEventListener(n, r, !1);
422
+ }
423
+ }]), r;
424
+ }();
425
+ function parseHTML(e) {
426
+ var n = document.createElement("div");
427
+ return n.innerHTML = e, n.firstElementChild;
428
+ }
429
+ function dragTrack(e, n, r) {
430
+ var i = !1;
431
+ function a(e, n, r) {
432
+ return Math.max(n, Math.min(e, r));
433
+ }
434
+ function o(e, o, s) {
435
+ if (s && (i = !0), i) {
436
+ e.preventDefault();
437
+ var c = n.getBoundingClientRect(), l = c.width, u = c.height, d = o.clientX, f = o.clientY, p = a(d - c.left, 0, l), m = a(f - c.top, 0, u);
438
+ r(p / l, m / u);
439
+ }
440
+ }
441
+ function s(e, n) {
442
+ (e.buttons === void 0 ? e.which : e.buttons) === 1 ? o(e, e, n) : i = !1;
443
+ }
444
+ function c(e, n) {
445
+ e.touches.length === 1 ? o(e, e.touches[0], n) : i = !1;
446
+ }
447
+ e.add(n, "mousedown", function(e) {
448
+ s(e, !0);
449
+ }), e.add(n, "touchstart", function(e) {
450
+ c(e, !0);
451
+ }), e.add(window, "mousemove", s), e.add(n, "touchmove", c), e.add(window, "mouseup", function(e) {
452
+ i = !1;
453
+ }), e.add(n, "touchend", function(e) {
454
+ i = !1;
455
+ }), e.add(n, "touchcancel", function(e) {
456
+ i = !1;
457
+ });
458
+ }
459
+ var BG_TRANSP = "linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em", HUES = 360, EVENT_KEY = "keydown", EVENT_CLICK_OUTSIDE = "mousedown", EVENT_TAB_MOVE = "focusin";
460
+ function $(e, n) {
461
+ return (n || document).querySelector(e);
462
+ }
463
+ function stopEvent(e) {
464
+ e.preventDefault(), e.stopPropagation();
465
+ }
466
+ function onKey(e, n, r, i, a) {
467
+ e.add(n, EVENT_KEY, function(e) {
468
+ r.indexOf(e.key) >= 0 && (a && stopEvent(e), i(e));
469
+ });
470
+ }
471
+ var Picker = function() {
472
+ function r(n) {
473
+ classCallCheck(this, r), this.settings = {
474
+ popup: "right",
475
+ layout: "default",
476
+ alpha: !0,
477
+ editor: !0,
478
+ editorFormat: "hex",
479
+ cancelButton: !1,
480
+ defaultColor: "#0cf"
481
+ }, this._events = new EventBucket(), this.onChange = null, this.onDone = null, this.onOpen = null, this.onClose = null, this.setOptions(n);
482
+ }
483
+ return createClass(r, [
484
+ {
485
+ key: "setOptions",
486
+ value: function(e) {
487
+ var n = this;
488
+ if (!e) return;
489
+ var r = this.settings;
490
+ function i(e, n, r) {
491
+ for (var i in e) r && r.indexOf(i) >= 0 || (n[i] = e[i]);
492
+ }
493
+ if (e instanceof HTMLElement) r.parent = e;
494
+ else {
495
+ r.parent && e.parent && r.parent !== e.parent && (this._events.remove(r.parent), this._popupInited = !1), i(e, r), e.onChange && (this.onChange = e.onChange), e.onDone && (this.onDone = e.onDone), e.onOpen && (this.onOpen = e.onOpen), e.onClose && (this.onClose = e.onClose);
496
+ var a = e.color || e.colour;
497
+ a && this._setColor(a);
498
+ }
499
+ var o = r.parent;
500
+ if (o && r.popup && !this._popupInited) {
501
+ var s = function(e) {
502
+ return n.openHandler(e);
503
+ };
504
+ this._events.add(o, "click", s), onKey(this._events, o, [
505
+ " ",
506
+ "Spacebar",
507
+ "Enter"
508
+ ], s), this._popupInited = !0;
509
+ } else e.parent && !r.popup && this.show();
510
+ }
511
+ },
512
+ {
513
+ key: "openHandler",
514
+ value: function(e) {
515
+ if (this.show()) {
516
+ e && e.preventDefault(), this.settings.parent.style.pointerEvents = "none";
517
+ var n = e && e.type === EVENT_KEY ? this._domEdit : this.domElement;
518
+ setTimeout(function() {
519
+ return n.focus();
520
+ }, 100), this.onOpen && this.onOpen(this.colour);
521
+ }
522
+ }
523
+ },
524
+ {
525
+ key: "closeHandler",
526
+ value: function(e) {
527
+ var n = e && e.type, r = !1;
528
+ if (!e) r = !0;
529
+ else if (n === EVENT_CLICK_OUTSIDE || n === EVENT_TAB_MOVE) {
530
+ var i = (this.__containedEvent || 0) + 100;
531
+ e.timeStamp > i && (r = !0);
532
+ } else stopEvent(e), r = !0;
533
+ r && this.hide() && (this.settings.parent.style.pointerEvents = "", n !== EVENT_CLICK_OUTSIDE && this.settings.parent.focus(), this.onClose && this.onClose(this.colour));
534
+ }
535
+ },
536
+ {
537
+ key: "movePopup",
538
+ value: function(e, n) {
539
+ this.closeHandler(), this.setOptions(e), n && this.openHandler();
540
+ }
541
+ },
542
+ {
543
+ key: "setColor",
544
+ value: function(e, n) {
545
+ this._setColor(e, { silent: n });
546
+ }
547
+ },
548
+ {
549
+ key: "_setColor",
550
+ value: function(e, n) {
551
+ if (typeof e == "string" && (e = e.trim()), e) {
552
+ n ||= {};
553
+ var r = void 0;
554
+ try {
555
+ r = new Color(e);
556
+ } catch (e) {
557
+ if (n.failSilently) return;
558
+ throw e;
559
+ }
560
+ if (!this.settings.alpha) {
561
+ var i = r.hsla;
562
+ i[3] = 1, r.hsla = i;
563
+ }
564
+ this.colour = this.color = r, this._setHSLA(null, null, null, null, n);
565
+ }
566
+ }
567
+ },
568
+ {
569
+ key: "setColour",
570
+ value: function(e, n) {
571
+ this.setColor(e, n);
572
+ }
573
+ },
574
+ {
575
+ key: "show",
576
+ value: function() {
577
+ if (!this.settings.parent) return !1;
578
+ if (this.domElement) {
579
+ var e = this._toggleDOM(!0);
580
+ return this._setPosition(), e;
581
+ }
582
+ var n = parseHTML(this.settings.template || "<div class=\"picker_wrapper\" tabindex=\"-1\"><div class=\"picker_arrow\"></div><div class=\"picker_hue picker_slider\"><div class=\"picker_selector\"></div></div><div class=\"picker_sl\"><div class=\"picker_selector\"></div></div><div class=\"picker_alpha picker_slider\"><div class=\"picker_selector\"></div></div><div class=\"picker_editor\"><input aria-label=\"Type a color name or hex value\"/></div><div class=\"picker_sample\"></div><div class=\"picker_done\"><button>Ok</button></div><div class=\"picker_cancel\"><button>Cancel</button></div></div>");
583
+ return this.domElement = n, this._domH = $(".picker_hue", n), this._domSL = $(".picker_sl", n), this._domA = $(".picker_alpha", n), this._domEdit = $(".picker_editor input", n), this._domSample = $(".picker_sample", n), this._domOkay = $(".picker_done button", n), this._domCancel = $(".picker_cancel button", n), n.classList.add("layout_" + this.settings.layout), this.settings.alpha || n.classList.add("no_alpha"), this.settings.editor || n.classList.add("no_editor"), this.settings.cancelButton || n.classList.add("no_cancel"), this._ifPopup(function() {
584
+ return n.classList.add("popup");
585
+ }), this._setPosition(), this.colour ? this._updateUI() : this._setColor(this.settings.defaultColor), this._bindEvents(), !0;
586
+ }
587
+ },
588
+ {
589
+ key: "hide",
590
+ value: function() {
591
+ return this._toggleDOM(!1);
592
+ }
593
+ },
594
+ {
595
+ key: "destroy",
596
+ value: function() {
597
+ this._events.destroy(), this.domElement && this.settings.parent.removeChild(this.domElement);
598
+ }
599
+ },
600
+ {
601
+ key: "_bindEvents",
602
+ value: function() {
603
+ var e = this, n = this, r = this.domElement, i = this._events;
604
+ function a(e, n, r) {
605
+ i.add(e, n, r);
606
+ }
607
+ a(r, "click", function(e) {
608
+ return e.preventDefault();
609
+ }), dragTrack(i, this._domH, function(e, r) {
610
+ return n._setHSLA(e);
611
+ }), dragTrack(i, this._domSL, function(e, r) {
612
+ return n._setHSLA(null, e, 1 - r);
613
+ }), this.settings.alpha && dragTrack(i, this._domA, function(e, r) {
614
+ return n._setHSLA(null, null, null, 1 - r);
615
+ });
616
+ var o = this._domEdit;
617
+ a(o, "input", function(e) {
618
+ n._setColor(this.value, {
619
+ fromEditor: !0,
620
+ failSilently: !0
621
+ });
622
+ }), a(o, "focus", function(e) {
623
+ var n = this;
624
+ n.selectionStart === n.selectionEnd && n.select();
625
+ }), this._ifPopup(function() {
626
+ var n = function(n) {
627
+ return e.closeHandler(n);
628
+ };
629
+ a(window, EVENT_CLICK_OUTSIDE, n), a(window, EVENT_TAB_MOVE, n), onKey(i, r, ["Esc", "Escape"], n);
630
+ var o = function(n) {
631
+ e.__containedEvent = n.timeStamp;
632
+ };
633
+ a(r, EVENT_CLICK_OUTSIDE, o), a(r, EVENT_TAB_MOVE, o), a(e._domCancel, "click", n);
634
+ });
635
+ var s = function(n) {
636
+ e._ifPopup(function() {
637
+ return e.closeHandler(n);
638
+ }), e.onDone && e.onDone(e.colour);
639
+ };
640
+ a(this._domOkay, "click", s), onKey(i, r, ["Enter"], s);
641
+ }
642
+ },
643
+ {
644
+ key: "_setPosition",
645
+ value: function() {
646
+ var e = this.settings.parent, n = this.domElement;
647
+ e !== n.parentNode && e.appendChild(n), this._ifPopup(function(r) {
648
+ getComputedStyle(e).position === "static" && (e.style.position = "relative");
649
+ var i = r === !0 ? "popup_right" : "popup_" + r;
650
+ [
651
+ "popup_top",
652
+ "popup_bottom",
653
+ "popup_left",
654
+ "popup_right"
655
+ ].forEach(function(e) {
656
+ e === i ? n.classList.add(e) : n.classList.remove(e);
657
+ }), n.classList.add(i);
658
+ });
659
+ }
660
+ },
661
+ {
662
+ key: "_setHSLA",
663
+ value: function(e, n, r, i, a) {
664
+ a ||= {};
665
+ var o = this.colour, s = o.hsla;
666
+ [
667
+ e,
668
+ n,
669
+ r,
670
+ i
671
+ ].forEach(function(e, n) {
672
+ (e || e === 0) && (s[n] = e);
673
+ }), o.hsla = s, this._updateUI(a), this.onChange && !a.silent && this.onChange(o);
674
+ }
675
+ },
676
+ {
677
+ key: "_updateUI",
678
+ value: function(e) {
679
+ if (!this.domElement) return;
680
+ e ||= {};
681
+ var n = this.colour, r = n.hsla, i = "hsl(" + r[0] * HUES + ", 100%, 50%)", a = n.hslString, o = n.hslaString, s = this._domH, c = this._domSL, l = this._domA, f = $(".picker_selector", s), p = $(".picker_selector", c), m = $(".picker_selector", l);
682
+ function h(e, n, r) {
683
+ n.style.left = r * 100 + "%";
684
+ }
685
+ function g(e, n, r) {
686
+ n.style.top = r * 100 + "%";
687
+ }
688
+ h(s, f, r[0]), this._domSL.style.backgroundColor = this._domH.style.color = i, h(c, p, r[1]), g(c, p, 1 - r[2]), c.style.color = a, g(l, m, 1 - r[3]);
689
+ var _ = a, v = "linear-gradient(" + [_, _.replace("hsl", "hsla").replace(")", ", 0)")] + ")";
690
+ if (this._domA.style.background = v + ", " + BG_TRANSP, !e.fromEditor) {
691
+ var y = this.settings.editorFormat, b = this.settings.alpha, x = void 0;
692
+ switch (y) {
693
+ case "rgb":
694
+ x = n.printRGB(b);
695
+ break;
696
+ case "hsl":
697
+ x = n.printHSL(b);
698
+ break;
699
+ default: x = n.printHex(b);
700
+ }
701
+ this._domEdit.value = x;
702
+ }
703
+ this._domSample.style.color = o;
704
+ }
705
+ },
706
+ {
707
+ key: "_ifPopup",
708
+ value: function(e, n) {
709
+ this.settings.parent && this.settings.popup ? e && e(this.settings.popup) : n && n();
710
+ }
711
+ },
712
+ {
713
+ key: "_toggleDOM",
714
+ value: function(e) {
715
+ var n = this.domElement;
716
+ if (!n) return !1;
717
+ var r = e ? "" : "none", i = n.style.display !== r;
718
+ return i && (n.style.display = r), i;
719
+ }
720
+ }
721
+ ]), r;
722
+ }(), style = document.createElement("style");
723
+ style.textContent = ".picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:\"\";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:\"\";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:\"\";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:\"\";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}", document.documentElement.firstElementChild.appendChild(style), Picker.StyleElement = style;
724
+ export { Picker as default };