vome-core 0.0.92 → 0.0.93

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.
@@ -1,67 +1 @@
1
- const ORG = "vomekj";
2
- export function serviceUrlFromDocs(docsUrl) {
3
- const u = new URL(docsUrl);
4
- const host = u.hostname.replace(/^www\./, "").replace(/^service\./, "");
5
- return `${u.protocol}//service.${host}`;
6
- }
7
- export function seatApiBaseFromDocs(docsUrl) {
8
- return `${serviceUrlFromDocs(docsUrl)}/app/pluginStore/seat`;
9
- }
10
- export function licenseIssueUrlFromDocs(docsUrl) {
11
- return `${serviceUrlFromDocs(docsUrl)}/app/pluginStore/wallet/license/issue`;
12
- }
13
- function giteeArchive(repo) {
14
- return `https://gitee.com/${ORG}/${repo}/repository/archive/master.zip`;
15
- }
16
- function githubArchive(repo) {
17
- return `https://github.com/${ORG}/${repo}/archive/refs/heads/master.zip`;
18
- }
19
- function giteeRepo(repo) {
20
- return `https://gitee.com/${ORG}/${repo}`;
21
- }
22
- function githubRepo(repo) {
23
- return `https://github.com/${ORG}/${repo}`;
24
- }
25
- const docsUrl = "https://vomekj.com";
26
- export const pluginDev = {
27
- docsUrl,
28
- serviceUrl: serviceUrlFromDocs(docsUrl),
29
- uploadUrl: `${docsUrl}/plugins/upload`,
30
- mirrors: {
31
- prefer: "gitee",
32
- giteeOrg: `https://gitee.com/${ORG}`,
33
- githubOrg: `https://github.com/${ORG}`
34
- },
35
- scaffolds: {
36
- full: {
37
- key: "full",
38
- title: "前端 + 后端",
39
- desc: "完整业务模块脚手架(.vome:含 server 与 web),本地开发打包后发布。",
40
- repo: "vome-plugin-full",
41
- repoUrl: giteeRepo("vome-plugin-full"),
42
- githubRepoUrl: githubRepo("vome-plugin-full"),
43
- downloadUrl: giteeArchive("vome-plugin-full"),
44
- githubDownloadUrl: githubArchive("vome-plugin-full")
45
- },
46
- backend: {
47
- key: "backend",
48
- title: "纯后端",
49
- desc: "钩子 / 服务端插件脚手架(.vome:仅 server),适合上传、短信、支付等能力扩展。",
50
- repo: "vome-plugin-service",
51
- repoUrl: giteeRepo("vome-plugin-service"),
52
- githubRepoUrl: githubRepo("vome-plugin-service"),
53
- downloadUrl: giteeArchive("vome-plugin-service"),
54
- githubDownloadUrl: githubArchive("vome-plugin-service")
55
- },
56
- frontend: {
57
- key: "frontend",
58
- title: "纯前端",
59
- desc: "后台微应用脚手架(.vome:含 web/),以 wujie 挂载独立前端页面。",
60
- repo: "vome-plugin-front",
61
- repoUrl: giteeRepo("vome-plugin-front"),
62
- githubRepoUrl: githubRepo("vome-plugin-front"),
63
- downloadUrl: giteeArchive("vome-plugin-front"),
64
- githubDownloadUrl: githubArchive("vome-plugin-front")
65
- }
66
- }
67
- };
1
+ const _0x4c8fa2=_0x4281;function _0x4e68(){const _0x444af5=['zNvSBa','z2L0zwu','5A6m5Pw05lIA5yQH5QIH5z2x6isA5OMl5P6277YilNzVBwxVVjRLKkSGC2vYDMvYios4JIb3zwlVViNVViZMNkZLNldLVidLJ5hMIzpLJixLKi7LJ5hLUipJGii','Ahr0Chm6lY9NAxrLzs5JB20V','nZiYmJK5mfvWrfvnrW','6zkP5A2qic8G5PYn5yQH56UV5O+s5lU26isA5OMl5P6277YilNzVBwxVVjRKU4uGC2vYDMvY77Yj77Ym6ycc5zci5lIk5lYG44cb55+T5l+H44cb5PsV5lUy562j6io95yQB5OMP5Bgv44cc','l2fWCc9WBhvNAw5tDg9Yzs9Zzwf0','lY9Zzxj2AwnLlG','Ahr0Chm6lY9NAxrODwiUy29TlW','mJy0nty2ntjKt0Hdqxy','5yMn56UVicSG5zco56UV','l3jLCg9ZAxrVCNKVyxjJAgL2zs9Tyxn0zxiUEMLW','ndi2m3bvwxjoEG','mJqYmtq2mg5JwLDlsq','DM9Tzs1WBhvNAw4TC2vYDMLJzq','ntu5mtzMBgzbu28','57QV5zco56UV','Ag9ZDg5HBwu','zNjVBNrLBMq','l2fWCc9WBhvNAw5tDg9Yzs93ywXSzxqVBgLJzw5Zzs9PC3n1zq','yMfJA2vUza','CMvWBgfJzq','l2fYy2HPDMuVCMvMCY9OzwfKCY9Tyxn0zxiUEMLW','DM9Tzs1WBhvNAw4TzNvSBa','DM9Tzs1WBhvNAw4TzNjVBNq','mZe0odCXmfPxsfPwBq','mJe5otjoswPpyui','mtjevMvZChu','mtmYnZi2ovPKEfDZEq','Ahr0Chm6lY92B21LA2OUy29T','DM9TzwTQ'];_0x4e68=function(){return _0x444af5;};return _0x4e68();}(function(_0x91f905,_0xae4dbf){const _0x106006=_0x4281,_0x3f55c1=_0x91f905();while(!![]){try{const _0x5ebc48=parseInt(_0x106006(0x176))/0x1+-parseInt(_0x106006(0x174))/0x2+parseInt(_0x106006(0x183))/0x3*(parseInt(_0x106006(0x182))/0x4)+parseInt(_0x106006(0x18a))/0x5+parseInt(_0x106006(0x180))/0x6+parseInt(_0x106006(0x173))/0x7*(parseInt(_0x106006(0x181))/0x8)+-parseInt(_0x106006(0x170))/0x9;if(_0x5ebc48===_0xae4dbf)break;else _0x3f55c1['push'](_0x3f55c1['shift']());}catch(_0x90c5b6){_0x3f55c1['push'](_0x3f55c1['shift']());}}}(_0x4e68,0xd5f3f));const ORG=_0x4c8fa2(0x185);export function serviceUrlFromDocs(_0x247a2c){const _0x42d316=_0x4c8fa2,_0x46fc1f=new URL(_0x247a2c),_0x15b9e8=_0x46fc1f[_0x42d316(0x178)][_0x42d316(0x17c)](/^www\./,'')[_0x42d316(0x17c)](/^service\./,'');return _0x46fc1f['protocol']+_0x42d316(0x18d)+_0x15b9e8;}export function seatApiBaseFromDocs(_0x375f1e){const _0x220264=_0x4c8fa2;return serviceUrlFromDocs(_0x375f1e)+_0x220264(0x18c);}export function licenseIssueUrlFromDocs(_0x4c5ce1){const _0x39c103=_0x4c8fa2;return serviceUrlFromDocs(_0x4c5ce1)+_0x39c103(0x17a);}function _0x4281(_0x50942b,_0x2b5060){_0x50942b=_0x50942b-0x170;const _0x4e68a9=_0x4e68();let _0x428111=_0x4e68a9[_0x50942b];if(_0x4281['HKtfjZ']===undefined){var _0x3e1921=function(_0x4af6b3){const _0x1133ec='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x247a2c='',_0x46fc1f='';for(let _0x15b9e8=0x0,_0x375f1e,_0x4c5ce1,_0x2f4510=0x0;_0x4c5ce1=_0x4af6b3['charAt'](_0x2f4510++);~_0x4c5ce1&&(_0x375f1e=_0x15b9e8%0x4?_0x375f1e*0x40+_0x4c5ce1:_0x4c5ce1,_0x15b9e8++%0x4)?_0x247a2c+=String['fromCharCode'](0xff&_0x375f1e>>(-0x2*_0x15b9e8&0x6)):0x0){_0x4c5ce1=_0x1133ec['indexOf'](_0x4c5ce1);}for(let _0x22b7f7=0x0,_0x24adff=_0x247a2c['length'];_0x22b7f7<_0x24adff;_0x22b7f7++){_0x46fc1f+='%'+('00'+_0x247a2c['charCodeAt'](_0x22b7f7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x46fc1f);};_0x4281['WWzaII']=_0x3e1921,_0x4281['UEIiTT']={},_0x4281['HKtfjZ']=!![];}const _0x3d3b26=_0x4e68a9[0x0],_0x2bb248=_0x50942b+_0x3d3b26,_0x16fe25=_0x4281['UEIiTT'][_0x2bb248];return!_0x16fe25?(_0x428111=_0x4281['WWzaII'](_0x428111),_0x4281['UEIiTT'][_0x2bb248]=_0x428111):_0x428111=_0x16fe25,_0x428111;}function giteeArchive(_0x2f4510){const _0x12166c=_0x4c8fa2;return'https://gitee.com/'+ORG+'/'+_0x2f4510+_0x12166c(0x172);}function githubArchive(_0x22b7f7){const _0x2ed6cf=_0x4c8fa2;return _0x2ed6cf(0x18e)+ORG+'/'+_0x22b7f7+_0x2ed6cf(0x17d);}function giteeRepo(_0x24adff){const _0x445431=_0x4c8fa2;return _0x445431(0x189)+ORG+'/'+_0x24adff;}function githubRepo(_0x1da242){return'https://github.com/'+ORG+'/'+_0x1da242;}const docsUrl=_0x4c8fa2(0x184);export const pluginDev={'docsUrl':docsUrl,'serviceUrl':serviceUrlFromDocs(docsUrl),'uploadUrl':docsUrl+'/plugins/upload','mirrors':{'prefer':_0x4c8fa2(0x187),'giteeOrg':_0x4c8fa2(0x189)+ORG,'githubOrg':_0x4c8fa2(0x18e)+ORG},'scaffolds':{'full':{'key':_0x4c8fa2(0x186),'title':_0x4c8fa2(0x171),'desc':_0x4c8fa2(0x188),'repo':_0x4c8fa2(0x17e),'repoUrl':giteeRepo(_0x4c8fa2(0x17e)),'githubRepoUrl':githubRepo(_0x4c8fa2(0x17e)),'downloadUrl':giteeArchive(_0x4c8fa2(0x17e)),'githubDownloadUrl':githubArchive('vome-plugin-full')},'backend':{'key':_0x4c8fa2(0x17b),'title':_0x4c8fa2(0x177),'desc':_0x4c8fa2(0x18b),'repo':_0x4c8fa2(0x175),'repoUrl':giteeRepo(_0x4c8fa2(0x175)),'githubRepoUrl':githubRepo(_0x4c8fa2(0x175)),'downloadUrl':giteeArchive(_0x4c8fa2(0x175)),'githubDownloadUrl':githubArchive('vome-plugin-service')},'frontend':{'key':_0x4c8fa2(0x179),'title':'纯前端','desc':'后台微应用脚手架(.vome:含\x20web/),以\x20wujie\x20挂载独立前端页面。','repo':_0x4c8fa2(0x17f),'repoUrl':giteeRepo('vome-plugin-front'),'githubRepoUrl':githubRepo(_0x4c8fa2(0x17f)),'downloadUrl':giteeArchive(_0x4c8fa2(0x17f)),'githubDownloadUrl':githubArchive(_0x4c8fa2(0x17f))}}};
@@ -1,33 +1 @@
1
- import { getCrudConfig } from "./style";
2
- import { CRUD_LABELS, DEFAULT_CRUD_DICT } from "./dict";
3
-
4
- export { CRUD_LABELS, DEFAULT_CRUD_DICT };
5
- export const DEFAULT_CRUD_PERMISSION = {
6
- page: true,
7
- list: true,
8
- info: true,
9
- add: true,
10
- delete: true,
11
- update: true
12
- };
13
- export function mergeDict(partial) {
14
- const base = getCrudConfig().dict;
15
- if (!partial)
16
- return { ...base, label: { ...base.label } };
17
- return {
18
- ...base,
19
- ...partial,
20
- api: { ...base.api, ...partial.api },
21
- pagination: { ...base.pagination, ...partial.pagination },
22
- search: { ...base.search, ...partial.search },
23
- sort: { ...base.sort, ...partial.sort },
24
- label: { ...base.label, ...partial.label }
25
- };
26
- }
27
- export function mergePermission(partial, fromService) {
28
- return {
29
- ...DEFAULT_CRUD_PERMISSION,
30
- ...fromService,
31
- ...partial
32
- };
33
- }
1
+ (function(_0x4c6ebb,_0x58a2ce){const _0x5949cb=_0x5de2,_0x2801ba=_0x4c6ebb();while(!![]){try{const _0x11235b=parseInt(_0x5949cb(0x110))/0x1+-parseInt(_0x5949cb(0x11d))/0x2*(parseInt(_0x5949cb(0x119))/0x3)+-parseInt(_0x5949cb(0x113))/0x4*(-parseInt(_0x5949cb(0x11e))/0x5)+parseInt(_0x5949cb(0x11a))/0x6+parseInt(_0x5949cb(0x118))/0x7+parseInt(_0x5949cb(0x11f))/0x8*(-parseInt(_0x5949cb(0x116))/0x9)+-parseInt(_0x5949cb(0x115))/0xa;if(_0x11235b===_0x58a2ce)break;else _0x2801ba['push'](_0x2801ba['shift']());}catch(_0x5d8e2c){_0x2801ba['push'](_0x2801ba['shift']());}}}(_0x43a2,0xebee1));import{getCrudConfig}from'./style';import{CRUD_LABELS,DEFAULT_CRUD_DICT}from'./dict';export{CRUD_LABELS,DEFAULT_CRUD_DICT};export const DEFAULT_CRUD_PERMISSION={'page':!![],'list':!![],'info':!![],'add':!![],'delete':!![],'update':!![]};export function mergeDict(_0xa4ef9e){const _0x502e90=_0x5de2,_0x4ca06e=getCrudConfig()[_0x502e90(0x114)];if(!_0xa4ef9e)return{..._0x4ca06e,'label':{..._0x4ca06e['label']}};return{..._0x4ca06e,..._0xa4ef9e,'api':{..._0x4ca06e[_0x502e90(0x111)],..._0xa4ef9e[_0x502e90(0x111)]},'pagination':{..._0x4ca06e[_0x502e90(0x11b)],..._0xa4ef9e[_0x502e90(0x11b)]},'search':{..._0x4ca06e[_0x502e90(0x112)],..._0xa4ef9e[_0x502e90(0x112)]},'sort':{..._0x4ca06e[_0x502e90(0x11c)],..._0xa4ef9e['sort']},'label':{..._0x4ca06e[_0x502e90(0x117)],..._0xa4ef9e['label']}};}function _0x5de2(_0x599062,_0x3d698f){_0x599062=_0x599062-0x110;const _0x43a208=_0x43a2();let _0x5de22d=_0x43a208[_0x599062];if(_0x5de2['TLvRXw']===undefined){var _0xd25d08=function(_0x3e15c0){const _0x42bf72='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xa4ef9e='',_0x4ca06e='';for(let _0x4edde6=0x0,_0x39eea7,_0x5bcdd7,_0x3d5c09=0x0;_0x5bcdd7=_0x3e15c0['charAt'](_0x3d5c09++);~_0x5bcdd7&&(_0x39eea7=_0x4edde6%0x4?_0x39eea7*0x40+_0x5bcdd7:_0x5bcdd7,_0x4edde6++%0x4)?_0xa4ef9e+=String['fromCharCode'](0xff&_0x39eea7>>(-0x2*_0x4edde6&0x6)):0x0){_0x5bcdd7=_0x42bf72['indexOf'](_0x5bcdd7);}for(let _0x9ad4e5=0x0,_0x49e49a=_0xa4ef9e['length'];_0x9ad4e5<_0x49e49a;_0x9ad4e5++){_0x4ca06e+='%'+('00'+_0xa4ef9e['charCodeAt'](_0x9ad4e5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4ca06e);};_0x5de2['CDSUaz']=_0xd25d08,_0x5de2['RVzkaD']={},_0x5de2['TLvRXw']=!![];}const _0x3899d8=_0x43a208[0x0],_0x2504eb=_0x599062+_0x3899d8,_0x444e46=_0x5de2['RVzkaD'][_0x2504eb];return!_0x444e46?(_0x5de22d=_0x5de2['CDSUaz'](_0x5de22d),_0x5de2['RVzkaD'][_0x2504eb]=_0x5de22d):_0x5de22d=_0x444e46,_0x5de22d;}export function mergePermission(_0x4edde6,_0x39eea7){return{...DEFAULT_CRUD_PERMISSION,..._0x39eea7,..._0x4edde6};}function _0x43a2(){const _0x22aac2=['yxbP','C2vHCMnO','ndeYntjcAhnTu1e','zgLJDa','mtm0mdGZotbswwznDhK','ntrSrK5eCLa','BgfIzwW','mti3ndy4mdrpDwXHrwO','ndyYmJu2mK9WueHArq','mZC0nJGZofHgC0rHwa','CgfNAw5HDgLVBG','C29YDa','mLvHqxvwBa','nte1D0DIz3bn','mJG1mdy0tKjRA2Td','ntu0mtC2wNzZDfPU'];_0x43a2=function(){return _0x22aac2;};return _0x43a2();}
@@ -1,97 +1 @@
1
- import { createApp, h, ref } from "vue";
2
- import {
3
- Dialog,
4
- DialogContent,
5
- DialogFooter,
6
- DialogHeader,
7
- DialogTitle
8
- } from "#vome-host/components/ui/dialog";
9
- export function vmConfirm(options) {
10
- const opts = typeof options === "string" ? { message: options } : options;
11
- return new Promise((resolve) => {
12
- const open = ref(true);
13
- const host = document.createElement("div");
14
- document.body.appendChild(host);
15
- const app = createApp({
16
- setup() {
17
- function finish(ok) {
18
- open.value = false;
19
- resolve(ok);
20
- setTimeout(() => {
21
- app.unmount();
22
- host.remove();
23
- }, 200);
24
- }
25
- return () => h(Dialog, {
26
- open: open.value,
27
- "onUpdate:open": (v) => {
28
- if (!v)
29
- finish(false);
30
- }
31
- }, {
32
- default: () => h(DialogContent, { class: "vm-confirm", showCloseButton: false }, {
33
- default: () => [
34
- h(DialogHeader, { class: "vm-confirm__head" }, () => h(DialogTitle, { class: "vm-confirm__title" }, () => opts.title || "提示")),
35
- h("div", { class: "vm-confirm__body" }, opts.message),
36
- h(DialogFooter, { class: "vm-confirm__foot" }, () => [
37
- h("button", {
38
- type: "button",
39
- class: "vm-confirm__btn is-ghost",
40
- onClick: () => finish(false)
41
- }, opts.cancelText || "取消"),
42
- h("button", {
43
- type: "button",
44
- class: "vm-confirm__btn is-primary",
45
- onClick: () => finish(true)
46
- }, opts.confirmText || "确定")
47
- ])
48
- ]
49
- })
50
- });
51
- }
52
- });
53
- app.mount(host);
54
- });
55
- }
56
- if (typeof document !== "undefined" && !document.getElementById("vm-confirm-style")) {
57
- const style = document.createElement("style");
58
- style.id = "vm-confirm-style";
59
- style.textContent = `
60
- .vm-confirm[data-slot='dialog-content'] {
61
- width: min(400px, calc(100vw - 32px)) !important;
62
- max-width: min(400px, calc(100vw - 32px)) !important;
63
- gap: 0 !important;
64
- padding: 0 !important;
65
- border: none !important;
66
- border-radius: 24px !important;
67
- box-shadow: var(--shadow-soft) !important;
68
- }
69
- .vm-confirm__head { padding: 18px 22px 0; border-bottom: none; }
70
- .vm-confirm__title { font-size: 16px; font-weight: 650; }
71
- .vm-confirm__body {
72
- padding: 12px 22px 8px;
73
- color: var(--foreground);
74
- font-size: 14px;
75
- line-height: 1.6;
76
- }
77
- .vm-confirm__foot {
78
- display: flex;
79
- justify-content: flex-end;
80
- gap: 8px;
81
- padding: 14px 22px;
82
- }
83
- .vm-confirm__btn {
84
- height: 36px;
85
- padding: 0 16px;
86
- border: none;
87
- border-radius: 12px;
88
- font-size: 13px;
89
- font-weight: 600;
90
- cursor: pointer;
91
- }
92
- .vm-confirm__btn.is-primary { background: var(--brand); color: #fff; }
93
- .vm-confirm__btn.is-primary:hover { background: var(--brand-deep); }
94
- .vm-confirm__btn.is-ghost { background: var(--muted); color: var(--foreground); }
95
- `;
96
- document.head.appendChild(style);
97
- }
1
+ const _0x474a1c=_0x5b30;(function(_0x31d083,_0x27dc2f){const _0x12dccc=_0x5b30,_0xdab9dd=_0x31d083();while(!![]){try{const _0x2410b4=-parseInt(_0x12dccc(0xda))/0x1+-parseInt(_0x12dccc(0xdd))/0x2+parseInt(_0x12dccc(0xe7))/0x3*(parseInt(_0x12dccc(0xed))/0x4)+-parseInt(_0x12dccc(0xe8))/0x5*(-parseInt(_0x12dccc(0xe5))/0x6)+parseInt(_0x12dccc(0xf4))/0x7+parseInt(_0x12dccc(0xe3))/0x8+parseInt(_0x12dccc(0xdf))/0x9*(-parseInt(_0x12dccc(0xe2))/0xa);if(_0x2410b4===_0x27dc2f)break;else _0xdab9dd['push'](_0xdab9dd['shift']());}catch(_0x5e2f6e){_0xdab9dd['push'](_0xdab9dd['shift']());}}}(_0x4217,0xa0b02));import{createApp,h,ref}from'vue';function _0x4217(){const _0x4121cc=['DM0Ty29UzMLYBv9FzM9VDa','CMvTB3zL','z2v0rwXLBwvUDej5swq','DM0Ty29UzMLYBv9FyM9KEq','yNv0Dg9U','ndK5otCXnvrOrxDcDq','Bw91BNq','nZa4mdKXy0HAwM5S','DMfSDwu','yxbWzw5Kq2HPBgq','mtaYndeYAhzvzhL5','Dgv4DenVBNrLBNq','ou5tr3bdDG','DM0Ty29UzMLYBq','DM0Ty29UzMLYBv9FyNrUigLZlwDOB3n0','mti1mJy2mdbKCMPdwNy','nteYmZy4mhzbwLnmEG','Dw5TB3vUDa','nLvvsLvwuW','BwvZC2fNzq','ndCZmdGYEg51BMv0','mJy5mZKWEhLODxrw','y3jLyxrLrwXLBwvUDa','C3rYAw5N','zgL2','AgvHza','mZjNzujZwxq','DM0Ty29UzMLYBs1ZDhLSzq'];_0x4217=function(){return _0x4121cc;};return _0x4217();}import{Dialog,DialogContent,DialogFooter,DialogHeader,DialogTitle}from'#vome-host/components/ui/dialog';function _0x5b30(_0x424834,_0x409331){_0x424834=_0x424834-0xda;const _0x421761=_0x4217();let _0x5b3096=_0x421761[_0x424834];if(_0x5b30['BJTUOK']===undefined){var _0x4aebb2=function(_0x403092){const _0x1a23ce='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x9d1cb1='',_0x17a5db='';for(let _0x5d5d44=0x0,_0x969187,_0x2cae46,_0xe28d3a=0x0;_0x2cae46=_0x403092['charAt'](_0xe28d3a++);~_0x2cae46&&(_0x969187=_0x5d5d44%0x4?_0x969187*0x40+_0x2cae46:_0x2cae46,_0x5d5d44++%0x4)?_0x9d1cb1+=String['fromCharCode'](0xff&_0x969187>>(-0x2*_0x5d5d44&0x6)):0x0){_0x2cae46=_0x1a23ce['indexOf'](_0x2cae46);}for(let _0xabc6cc=0x0,_0x3d98bd=_0x9d1cb1['length'];_0xabc6cc<_0x3d98bd;_0xabc6cc++){_0x17a5db+='%'+('00'+_0x9d1cb1['charCodeAt'](_0xabc6cc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x17a5db);};_0x5b30['EyjlbC']=_0x4aebb2,_0x5b30['UnNXyW']={},_0x5b30['BJTUOK']=!![];}const _0x3a1110=_0x421761[0x0],_0x4db6d9=_0x424834+_0x3a1110,_0x1080dc=_0x5b30['UnNXyW'][_0x4db6d9];return!_0x1080dc?(_0x5b3096=_0x5b30['EyjlbC'](_0x5b3096),_0x5b30['UnNXyW'][_0x4db6d9]=_0x5b3096):_0x5b3096=_0x1080dc,_0x5b3096;}export function vmConfirm(_0x9d1cb1){const _0x5c12a4=_0x5b30,_0x17a5db=typeof _0x9d1cb1===_0x5c12a4(0xea)?{'message':_0x9d1cb1}:_0x9d1cb1;return new Promise(_0x5d5d44=>{const _0x54be75=_0x5c12a4,_0x969187=ref(!![]),_0x2cae46=document[_0x54be75(0xe9)](_0x54be75(0xeb));document['body']['appendChild'](_0x2cae46);const _0xe28d3a=createApp({'setup'(){const _0x3aebce=_0x54be75;function _0xabc6cc(_0x3d98bd){const _0x9c78cc=_0x5b30;_0x969187[_0x9c78cc(0xdb)]=![],_0x5d5d44(_0x3d98bd),setTimeout(()=>{const _0x37ce4a=_0x9c78cc;_0xe28d3a[_0x37ce4a(0xe4)](),_0x2cae46[_0x37ce4a(0xf0)]();},0xc8);}return()=>h(Dialog,{'open':_0x969187[_0x3aebce(0xdb)],'onUpdate:open':_0x189bc2=>{if(!_0x189bc2)_0xabc6cc(![]);}},{'default':()=>h(DialogContent,{'class':_0x3aebce(0xe0),'showCloseButton':![]},{'default':()=>[h(DialogHeader,{'class':'vm-confirm__head'},()=>h(DialogTitle,{'class':'vm-confirm__title'},()=>_0x17a5db['title']||'提示')),h(_0x3aebce(0xeb),{'class':_0x3aebce(0xf2)},_0x17a5db[_0x3aebce(0xe6)]),h(DialogFooter,{'class':_0x3aebce(0xef)},()=>[h(_0x3aebce(0xf3),{'type':_0x3aebce(0xf3),'class':_0x3aebce(0xe1),'onClick':()=>_0xabc6cc(![])},_0x17a5db['cancelText']||'取消'),h('button',{'type':_0x3aebce(0xf3),'class':'vm-confirm__btn\x20is-primary','onClick':()=>_0xabc6cc(!![])},_0x17a5db['confirmText']||'确定')])]})});}});_0xe28d3a[_0x54be75(0xf5)](_0x2cae46);});}if(typeof document!=='undefined'&&!document[_0x474a1c(0xf1)]('vm-confirm-style')){const style=document[_0x474a1c(0xe9)]('style');style['id']=_0x474a1c(0xee),style[_0x474a1c(0xde)]='\x0a.vm-confirm[data-slot=\x27dialog-content\x27]\x20{\x0a\x20\x20width:\x20min(400px,\x20calc(100vw\x20-\x2032px))\x20!important;\x0a\x20\x20max-width:\x20min(400px,\x20calc(100vw\x20-\x2032px))\x20!important;\x0a\x20\x20gap:\x200\x20!important;\x0a\x20\x20padding:\x200\x20!important;\x0a\x20\x20border:\x20none\x20!important;\x0a\x20\x20border-radius:\x2024px\x20!important;\x0a\x20\x20box-shadow:\x20var(--shadow-soft)\x20!important;\x0a}\x0a.vm-confirm__head\x20{\x20padding:\x2018px\x2022px\x200;\x20border-bottom:\x20none;\x20}\x0a.vm-confirm__title\x20{\x20font-size:\x2016px;\x20font-weight:\x20650;\x20}\x0a.vm-confirm__body\x20{\x0a\x20\x20padding:\x2012px\x2022px\x208px;\x0a\x20\x20color:\x20var(--foreground);\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.6;\x0a}\x0a.vm-confirm__foot\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20justify-content:\x20flex-end;\x0a\x20\x20gap:\x208px;\x0a\x20\x20padding:\x2014px\x2022px;\x0a}\x0a.vm-confirm__btn\x20{\x0a\x20\x20height:\x2036px;\x0a\x20\x20padding:\x200\x2016px;\x0a\x20\x20border:\x20none;\x0a\x20\x20border-radius:\x2012px;\x0a\x20\x20font-size:\x2013px;\x0a\x20\x20font-weight:\x20600;\x0a\x20\x20cursor:\x20pointer;\x0a}\x0a.vm-confirm__btn.is-primary\x20{\x20background:\x20var(--brand);\x20color:\x20#fff;\x20}\x0a.vm-confirm__btn.is-primary:hover\x20{\x20background:\x20var(--brand-deep);\x20}\x0a.vm-confirm__btn.is-ghost\x20{\x20background:\x20var(--muted);\x20color:\x20var(--foreground);\x20}\x0a',document[_0x474a1c(0xec)][_0x474a1c(0xdc)](style);}
@@ -1,67 +1 @@
1
- export const CRUD_LABELS = {
2
- op: "操作",
3
- add: "新增",
4
- delete: "删除",
5
- multiDelete: "删除",
6
- export: "导出",
7
- import: "导入",
8
- update: "编辑",
9
- refresh: "刷新",
10
- info: "详情",
11
- search: "搜索",
12
- reset: "重置",
13
- clear: "清空",
14
- save: "保存",
15
- close: "取消",
16
- confirm: "确定",
17
- advSearch: "高级搜索",
18
- searchKey: "搜索关键字",
19
- placeholder: "请输入",
20
- tips: "提示",
21
- saveSuccess: "保存成功",
22
- deleteSuccess: "删除成功",
23
- deleteConfirm: "此操作将数据标记为已删除,是否继续?",
24
- forceDeleteConfirm: "此操作将永久删除选中数据,是否继续?",
25
- empty: "暂无数据",
26
- desc: "降序",
27
- asc: "升序",
28
- select: "选择",
29
- deselect: "取消选择",
30
- seeMore: "查看更多",
31
- hideContent: "隐藏内容",
32
- nonEmpty: "不能为空",
33
- list: "列表",
34
- trash: "回收站",
35
- searchNamed: "搜索{0}",
36
- selectNamed: "选择{0}",
37
- keyword: "关键字",
38
- range: "区间",
39
- min: "最小值",
40
- max: "最大值",
41
- start: "开始",
42
- end: "结束",
43
- total: "共 {0} 条",
44
- pageSize: "{0} / 页",
45
- prevPage: "上一页",
46
- nextPage: "下一页",
47
- forceDeleted: "已彻底删除",
48
- deleted: "已删除",
49
- restore: "恢复",
50
- forceDelete: "彻底删除",
51
- loading: "加载中…"
52
- };
53
- export const DEFAULT_CRUD_DICT = {
54
- primaryId: "id",
55
- api: {
56
- list: "list",
57
- add: "add",
58
- update: "update",
59
- delete: "delete",
60
- info: "info",
61
- page: "page"
62
- },
63
- pagination: { page: "page", size: "size" },
64
- search: { keyWord: "keyWord", query: "query" },
65
- sort: { prop: "order", order: "sort" },
66
- label: CRUD_LABELS
67
- };
1
+ function _0x83f3(){const _0x12feab=['zgvSzxrL','5zUE5Ps256Uz','5PYa5AsN5yc8','nte5ndu4ngvvrwjzua','B3jKzxi','5PcC57sI5ywZ6zsU5A2x','CgfNzq','5PQc5PEG5PwW5O2U','mJy0nty5nLHWsKvrua','5l+D5A2y5OIq5yQF','ntGXnda1mLjdwhncBa','ywrK','mJiYrgLpq1nv','5PcC57sIEZb9','5y+w5RAi6ycj5OUP','5yQG6l295lIT4OcM','5P+L55Yl5PU05AsA','mtK1odeZowHvBxHjwq','5lIk5lIa6Ag1','nZq5odGXnvLsAuXWwa','5yIG6zMK5OIq5yQF','5ywZ6zsU5A2x','5Q2K5Pon5l2C5Bcg5Rc45lMf5yIG6zMK6ycj5lIT5PwW5O2U77Ym5PIV5zcM57UN57UT77YF','5Q2K5Pon5l2C5Bcg5PwW5O2U5Qch6k6W5lI65BEY5yIG6zMK77Ym5PIV5zcM57UN57UT77YF','5lIn6io95lI656M6','BgLZDa','nJC0mdnMwLLLzxK','EZb9ic8G6Ag1','6zQq6jEp5yAf5A65','A2v5v29Yza','C2L6zq','mtCWmJq3zKvYy1nu','6AUy57QN5PcC57sI','6ycj5OUPEZb9','C29YDa'];_0x83f3=function(){return _0x12feab;};return _0x83f3();}const _0x5ea856=_0x5a04;(function(_0x4d7376,_0x1f10f4){const _0x268dda=_0x5a04,_0x309feb=_0x4d7376();while(!![]){try{const _0x24294b=-parseInt(_0x268dda(0x118))/0x1+parseInt(_0x268dda(0x124))/0x2+parseInt(_0x268dda(0x12d))/0x3+parseInt(_0x268dda(0x126))/0x4+-parseInt(_0x268dda(0x12f))/0x5+parseInt(_0x268dda(0x128))/0x6*(-parseInt(_0x268dda(0x136))/0x7)+-parseInt(_0x268dda(0x11f))/0x8;if(_0x24294b===_0x1f10f4)break;else _0x309feb['push'](_0x309feb['shift']());}catch(_0x23e970){_0x309feb['push'](_0x309feb['shift']());}}}(_0x83f3,0xb7f3c));export const CRUD_LABELS={'op':'操作','add':'新增','delete':'删除','multiDelete':'删除','export':'导出','import':'导入','update':'编辑','refresh':'刷新','info':'详情','search':'搜索','reset':'重置','clear':'清空','save':'保存','close':'取消','confirm':'确定','advSearch':_0x5ea856(0x119),'searchKey':_0x5ea856(0x121),'placeholder':'请输入','tips':'提示','saveSuccess':_0x5ea856(0x125),'deleteSuccess':_0x5ea856(0x130),'deleteConfirm':_0x5ea856(0x133),'forceDeleteConfirm':_0x5ea856(0x132),'empty':_0x5ea856(0x123),'desc':'降序','asc':'升序','select':'选择','deselect':_0x5ea856(0x12a),'seeMore':_0x5ea856(0x12c),'hideContent':_0x5ea856(0x138),'nonEmpty':_0x5ea856(0x134),'list':'列表','trash':_0x5ea856(0x11d),'searchNamed':_0x5ea856(0x129),'selectNamed':_0x5ea856(0x11a),'keyword':_0x5ea856(0x131),'range':'区间','min':'最小值','max':_0x5ea856(0x11e),'start':'开始','end':'结束','total':'共\x20{0}\x20条','pageSize':_0x5ea856(0x137),'prevPage':_0x5ea856(0x12e),'nextPage':'下一页','forceDeleted':'已彻底删除','deleted':'已删除','restore':'恢复','forceDelete':'彻底删除','loading':_0x5ea856(0x12b)};function _0x5a04(_0x19fa11,_0x1d5932){_0x19fa11=_0x19fa11-0x117;const _0x83f378=_0x83f3();let _0x5a0479=_0x83f378[_0x19fa11];if(_0x5a04['KOAfSQ']===undefined){var _0x429fe2=function(_0x18901f){const _0x4eee2f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x453f1b='',_0x2a4d4b='';for(let _0x598afe=0x0,_0x445710,_0x5dad59,_0x3c8c4=0x0;_0x5dad59=_0x18901f['charAt'](_0x3c8c4++);~_0x5dad59&&(_0x445710=_0x598afe%0x4?_0x445710*0x40+_0x5dad59:_0x5dad59,_0x598afe++%0x4)?_0x453f1b+=String['fromCharCode'](0xff&_0x445710>>(-0x2*_0x598afe&0x6)):0x0){_0x5dad59=_0x4eee2f['indexOf'](_0x5dad59);}for(let _0x246a88=0x0,_0xf9c63f=_0x453f1b['length'];_0x246a88<_0xf9c63f;_0x246a88++){_0x2a4d4b+='%'+('00'+_0x453f1b['charCodeAt'](_0x246a88)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2a4d4b);};_0x5a04['rNFGrC']=_0x429fe2,_0x5a04['VCzjAC']={},_0x5a04['KOAfSQ']=!![];}const _0x327387=_0x83f378[0x0],_0x53a1a5=_0x19fa11+_0x327387,_0x2a957a=_0x5a04['VCzjAC'][_0x53a1a5];return!_0x2a957a?(_0x5a0479=_0x5a04['rNFGrC'](_0x5a0479),_0x5a04['VCzjAC'][_0x53a1a5]=_0x5a0479):_0x5a0479=_0x2a957a,_0x5a0479;}export const DEFAULT_CRUD_DICT={'primaryId':'id','api':{'list':_0x5ea856(0x135),'add':_0x5ea856(0x127),'update':'update','delete':_0x5ea856(0x11c),'info':'info','page':_0x5ea856(0x122)},'pagination':{'page':'page','size':_0x5ea856(0x117)},'search':{'keyWord':_0x5ea856(0x139),'query':'query'},'sort':{'prop':_0x5ea856(0x120),'order':_0x5ea856(0x11b)},'label':CRUD_LABELS};
@@ -1,81 +1 @@
1
- export { default as VmCrud } from "./vm-crud.vue";
2
- export { default as VmSearch } from "./vm-search.vue";
3
- export { default as VmSearchKey } from "./vm-search-key.vue";
4
- export { default as VmTable } from "./vm-table.vue";
5
- export { default as VmPagination } from "./vm-pagination.vue";
6
- export { default as VmUpsert } from "./vm-upsert.vue";
7
- export { default as VmToolbar } from "./vm-toolbar.vue";
8
- export { default as VmRow } from "./vm-row.vue";
9
- export { default as VmFlex } from "./vm-flex.vue";
10
- export { default as VmAddBtn } from "./vm-add-btn.vue";
11
- export { default as VmRefreshBtn } from "./vm-refresh-btn.vue";
12
- export { default as VmMultiDeleteBtn } from "./vm-multi-delete-btn.vue";
13
- export { default as VmExportBtn } from "./vm-export-btn.vue";
14
- export { default as VmImportBtn } from "./vm-import-btn.vue";
15
- export { default as VmForm } from "./vm-form.vue";
16
- export { default as VmAdvSearch } from "./vm-adv-search.vue";
17
- export { default as VmSwitch } from "./components/vm-switch.vue";
18
- export { default as VmColorPicker } from "./components/vm-color-picker.vue";
19
- export { default as VmSelect } from "./components/vm-select.vue";
20
- export { default as VmTreeSelect } from "./components/vm-tree-select.vue";
21
- export { default as VmRadio } from "./components/vm-radio.vue";
22
- export { default as VmDateText } from "./components/vm-date-text.vue";
23
- export { default as VmDatePicker } from "./components/vm-date-picker.vue";
24
- export { default as VmDateRange } from "./components/vm-date-range.vue";
25
- export { default as VmNumberRange } from "./components/vm-number-range.vue";
26
- export { default as VmMultiSelect } from "./components/vm-multi-select.vue";
27
- export { default as VmDictTag } from "./components/vm-dict-tag.vue";
28
- export { default as VmUserSelect } from "./components/vm-user-select.vue";
29
- export { default as VmColumnCustom } from "./components/vm-column-custom.vue";
30
- export { default as VmContextMenu } from "./components/vm-context-menu.vue";
31
- export { default as VmUpload } from "./components/vm-upload.vue";
32
- export { default as VmUploadItem } from "./components/vm-upload-item.vue";
33
- export { default as VmPreviewViewer } from "./components/vm-preview-viewer.vue";
34
- export { default as VmRichtext } from "./components/vm-richtext.vue";
35
- export { default as VmJsonCode } from "./components/vm-json-code.vue";
36
- export { default as VmJsonEditor } from "./components/vm-json-editor.vue";
37
- export { default as VmStatusTag } from "./components/vm-status-tag.vue";
38
- export { default as VmTagList } from "./components/vm-tag-list.vue";
39
- export { default as VmAvatar } from "./components/vm-avatar.vue";
40
- export { default as VmTextLink } from "./components/vm-text-link.vue";
41
- export { default as VmCopyBtn } from "./components/vm-copy-btn.vue";
42
- export { default as VmFormHint } from "./components/vm-form-hint.vue";
43
- export { default as VmDatetimePicker } from "./components/vm-datetime-picker.vue";
44
- export { default as VmEllipsisText } from "./components/vm-ellipsis-text.vue";
45
- export { default as VmKvRow } from "./components/vm-kv-row.vue";
46
- export { default as VmToggleSwitch } from "./components/vm-toggle-switch.vue";
47
- export { vmConfirm } from "./confirm";
48
- export {
49
- useCrud,
50
- useTable,
51
- useUpsert,
52
- useSearch,
53
- useCore,
54
- CRUD_KEY
55
- } from "./useCrud";
56
- export { Plugins, toTree, setFocus, setRules, setAuto, buildAutoSearchItems } from "./plugins";
57
- export { deepTree, flattenTree } from "../lib/tree";
58
- export { resolveCrudComponent, registerCrudComponent } from "./registry";
59
- export {
60
- setCrudConfig,
61
- getCrudConfig,
62
- getCrudStyle,
63
- DEFAULT_CRUD_STYLE,
64
- crudLocaleRev,
65
- setCrudTranslator,
66
- crudT,
67
- crudLabel,
68
- crudFormat,
69
- resolveSearchPlaceholder,
70
- resolveRangePlaceholders
71
- } from "./style";
72
- export {
73
- FORM_COLS_DESKTOP,
74
- FORM_COLS_MOBILE,
75
- FORM_SPAN_FULL,
76
- FORM_MQ_MOBILE,
77
- getFormCols,
78
- resolveFormSpan,
79
- useFormCols
80
- } from "./span";
81
- export { mergeDict, mergePermission, DEFAULT_CRUD_DICT, CRUD_LABELS } from "./config";
1
+ (function(_0x3d7c3a,_0x8b50f5){var _0x133fe9=_0x4b3e,_0x54466b=_0x3d7c3a();while(!![]){try{var _0x3936f4=-parseInt(_0x133fe9(0xf5))/0x1*(-parseInt(_0x133fe9(0xf1))/0x2)+parseInt(_0x133fe9(0xf0))/0x3*(-parseInt(_0x133fe9(0xed))/0x4)+-parseInt(_0x133fe9(0xec))/0x5+-parseInt(_0x133fe9(0xef))/0x6*(-parseInt(_0x133fe9(0xee))/0x7)+parseInt(_0x133fe9(0xf3))/0x8*(-parseInt(_0x133fe9(0xf4))/0x9)+-parseInt(_0x133fe9(0xf2))/0xa+-parseInt(_0x133fe9(0xf7))/0xb*(-parseInt(_0x133fe9(0xf6))/0xc);if(_0x3936f4===_0x8b50f5)break;else _0x54466b['push'](_0x54466b['shift']());}catch(_0x218be9){_0x54466b['push'](_0x54466b['shift']());}}}(_0x2bf5,0x40c10));export{default as VmCrud}from'./vm-crud.vue';export{default as VmSearch}from'./vm-search.vue';export{default as VmSearchKey}from'./vm-search-key.vue';export{default as VmTable}from'./vm-table.vue';export{default as VmPagination}from'./vm-pagination.vue';export{default as VmUpsert}from'./vm-upsert.vue';export{default as VmToolbar}from'./vm-toolbar.vue';export{default as VmRow}from'./vm-row.vue';export{default as VmFlex}from'./vm-flex.vue';export{default as VmAddBtn}from'./vm-add-btn.vue';export{default as VmRefreshBtn}from'./vm-refresh-btn.vue';export{default as VmMultiDeleteBtn}from'./vm-multi-delete-btn.vue';export{default as VmExportBtn}from'./vm-export-btn.vue';export{default as VmImportBtn}from'./vm-import-btn.vue';export{default as VmForm}from'./vm-form.vue';export{default as VmAdvSearch}from'./vm-adv-search.vue';export{default as VmSwitch}from'./components/vm-switch.vue';export{default as VmColorPicker}from'./components/vm-color-picker.vue';export{default as VmSelect}from'./components/vm-select.vue';export{default as VmTreeSelect}from'./components/vm-tree-select.vue';export{default as VmRadio}from'./components/vm-radio.vue';export{default as VmDateText}from'./components/vm-date-text.vue';export{default as VmDatePicker}from'./components/vm-date-picker.vue';function _0x4b3e(_0x2cb60c,_0x2008bc){_0x2cb60c=_0x2cb60c-0xec;var _0x2bf513=_0x2bf5();var _0x4b3efc=_0x2bf513[_0x2cb60c];if(_0x4b3e['Bwpakl']===undefined){var _0x120397=function(_0x24f268){var _0x11cb8a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x118431='',_0x49bf17='';for(var _0x14f055=0x0,_0x90b760,_0x362b1d,_0x1ef728=0x0;_0x362b1d=_0x24f268['charAt'](_0x1ef728++);~_0x362b1d&&(_0x90b760=_0x14f055%0x4?_0x90b760*0x40+_0x362b1d:_0x362b1d,_0x14f055++%0x4)?_0x118431+=String['fromCharCode'](0xff&_0x90b760>>(-0x2*_0x14f055&0x6)):0x0){_0x362b1d=_0x11cb8a['indexOf'](_0x362b1d);}for(var _0x22a580=0x0,_0x4215bf=_0x118431['length'];_0x22a580<_0x4215bf;_0x22a580++){_0x49bf17+='%'+('00'+_0x118431['charCodeAt'](_0x22a580)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x49bf17);};_0x4b3e['rdcXYQ']=_0x120397,_0x4b3e['UjwZuA']={},_0x4b3e['Bwpakl']=!![];}var _0x5d03f3=_0x2bf513[0x0],_0x3721f9=_0x2cb60c+_0x5d03f3,_0x1800f4=_0x4b3e['UjwZuA'][_0x3721f9];return!_0x1800f4?(_0x4b3efc=_0x4b3e['rdcXYQ'](_0x4b3efc),_0x4b3e['UjwZuA'][_0x3721f9]=_0x4b3efc):_0x4b3efc=_0x1800f4,_0x4b3efc;}export{default as VmDateRange}from'./components/vm-date-range.vue';export{default as VmNumberRange}from'./components/vm-number-range.vue';export{default as VmMultiSelect}from'./components/vm-multi-select.vue';export{default as VmDictTag}from'./components/vm-dict-tag.vue';export{default as VmUserSelect}from'./components/vm-user-select.vue';export{default as VmColumnCustom}from'./components/vm-column-custom.vue';export{default as VmContextMenu}from'./components/vm-context-menu.vue';export{default as VmUpload}from'./components/vm-upload.vue';export{default as VmUploadItem}from'./components/vm-upload-item.vue';export{default as VmPreviewViewer}from'./components/vm-preview-viewer.vue';export{default as VmRichtext}from'./components/vm-richtext.vue';export{default as VmJsonCode}from'./components/vm-json-code.vue';export{default as VmJsonEditor}from'./components/vm-json-editor.vue';export{default as VmStatusTag}from'./components/vm-status-tag.vue';export{default as VmTagList}from'./components/vm-tag-list.vue';export{default as VmAvatar}from'./components/vm-avatar.vue';export{default as VmTextLink}from'./components/vm-text-link.vue';export{default as VmCopyBtn}from'./components/vm-copy-btn.vue';function _0x2bf5(){var _0x2e419f=['oe9fEwfeAq','mty3nduWngLPwKHNzG','mti2mdvgsfL2zge','mty0otaYoeLLrNvYyG','nZD4ywPwrgK','mJe0otCWnu93sxfvrG','nfLVB0LbvW','ndu4nZHgvwrJv00','nJzTseTruKy','odKYodmZEfHzsMPd','ndzyCM1fuvG','mtq1mtaYmhDmq294BG'];_0x2bf5=function(){return _0x2e419f;};return _0x2bf5();}export{default as VmFormHint}from'./components/vm-form-hint.vue';export{default as VmDatetimePicker}from'./components/vm-datetime-picker.vue';export{default as VmEllipsisText}from'./components/vm-ellipsis-text.vue';export{default as VmKvRow}from'./components/vm-kv-row.vue';export{default as VmToggleSwitch}from'./components/vm-toggle-switch.vue';export{vmConfirm}from'./confirm';export{useCrud,useTable,useUpsert,useSearch,useCore,CRUD_KEY}from'./useCrud';export{Plugins,toTree,setFocus,setRules,setAuto,buildAutoSearchItems}from'./plugins';export{deepTree,flattenTree}from'../lib/tree';export{resolveCrudComponent,registerCrudComponent}from'./registry';export{setCrudConfig,getCrudConfig,getCrudStyle,DEFAULT_CRUD_STYLE,crudLocaleRev,setCrudTranslator,crudT,crudLabel,crudFormat,resolveSearchPlaceholder,resolveRangePlaceholders}from'./style';export{FORM_COLS_DESKTOP,FORM_COLS_MOBILE,FORM_SPAN_FULL,FORM_MQ_MOBILE,getFormCols,resolveFormSpan,useFormCols}from'./span';export{mergeDict,mergePermission,DEFAULT_CRUD_DICT,CRUD_LABELS}from'./config';
@@ -1,20 +1 @@
1
- import { inject } from "vue";
2
- export const CRUD_KEY = Symbol("vm-crud");
3
- export const CRUD_MITT_KEY = Symbol("vm-crud-mitt");
4
- export const CRUD_OPTIONS_KEY = Symbol("useCrud__options");
5
- export const TABLE_OPTIONS_KEY = Symbol("useTable__options");
6
- export const UPSERT_OPTIONS_KEY = Symbol("useUpsert__options");
7
- export const SEARCH_OPTIONS_KEY = Symbol("useSearch__options");
8
- export const TABLE_API_KEY = Symbol("vm-table-api");
9
- export function injectCrudOptions() {
10
- return inject(CRUD_OPTIONS_KEY, undefined);
11
- }
12
- export function injectTableOptions() {
13
- return inject(TABLE_OPTIONS_KEY, undefined);
14
- }
15
- export function injectUpsertOptions() {
16
- return inject(UPSERT_OPTIONS_KEY, undefined);
17
- }
18
- export function injectSearchOptions() {
19
- return inject(SEARCH_OPTIONS_KEY, undefined);
20
- }
1
+ function _0x37dc(){const _0x1405d3=['odu2mZK1swLzAMXm','DM0Ty3j1za','DxnLq3j1zf9FB3b0Aw9UCW','mtqXnLHQt0PdqW','DxnLvxbZzxj0x19VChrPB25Z','ng5XB1vqEq','DM0TDgfIBguTyxbP','DxnLvgfIBgvFx29WDgLVBNm','DxnLu2vHCMnOx19VChrPB25Z','ndu0odm2nLbtyxbKyq','mJK2otf1tgTKuMq','mZmWmJmZwfn6Axzy','mJC3nZiXnLHXC0DOCq','ndiZmZqXmvPiBfrRzq','DM0Ty3j1zc1TAxr0','mtG5ndi1qxf4AeTO'];_0x37dc=function(){return _0x1405d3;};return _0x37dc();}const _0x396c35=_0x5823;function _0x5823(_0x3433cf,_0x5ee5ce){_0x3433cf=_0x3433cf-0x16c;const _0x37dcd3=_0x37dc();let _0x582301=_0x37dcd3[_0x3433cf];if(_0x5823['azHtpO']===undefined){var _0x3b787c=function(_0x5ee6b1){const _0x1f2fd1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2a200c='',_0x4f5665='';for(let _0x22025d=0x0,_0xe6b02b,_0x318101,_0x54039f=0x0;_0x318101=_0x5ee6b1['charAt'](_0x54039f++);~_0x318101&&(_0xe6b02b=_0x22025d%0x4?_0xe6b02b*0x40+_0x318101:_0x318101,_0x22025d++%0x4)?_0x2a200c+=String['fromCharCode'](0xff&_0xe6b02b>>(-0x2*_0x22025d&0x6)):0x0){_0x318101=_0x1f2fd1['indexOf'](_0x318101);}for(let _0x4cab30=0x0,_0x353dc4=_0x2a200c['length'];_0x4cab30<_0x353dc4;_0x4cab30++){_0x4f5665+='%'+('00'+_0x2a200c['charCodeAt'](_0x4cab30)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4f5665);};_0x5823['vKYGED']=_0x3b787c,_0x5823['nwLaEx']={},_0x5823['azHtpO']=!![];}const _0x39c781=_0x37dcd3[0x0],_0x11ecc0=_0x3433cf+_0x39c781,_0x4a1611=_0x5823['nwLaEx'][_0x11ecc0];return!_0x4a1611?(_0x582301=_0x5823['vKYGED'](_0x582301),_0x5823['nwLaEx'][_0x11ecc0]=_0x582301):_0x582301=_0x4a1611,_0x582301;}(function(_0x480430,_0x4929de){const _0x47dfcc=_0x5823,_0x72036=_0x480430();while(!![]){try{const _0x311d1e=parseInt(_0x47dfcc(0x171))/0x1*(parseInt(_0x47dfcc(0x17b))/0x2)+-parseInt(_0x47dfcc(0x176))/0x3+-parseInt(_0x47dfcc(0x172))/0x4+parseInt(_0x47dfcc(0x175))/0x5+parseInt(_0x47dfcc(0x16f))/0x6+parseInt(_0x47dfcc(0x173))/0x7+parseInt(_0x47dfcc(0x179))/0x8*(-parseInt(_0x47dfcc(0x170))/0x9);if(_0x311d1e===_0x4929de)break;else _0x72036['push'](_0x72036['shift']());}catch(_0x4bdcb7){_0x72036['push'](_0x72036['shift']());}}}(_0x37dc,0x79755));import{inject}from'vue';export const CRUD_KEY=Symbol(_0x396c35(0x177));export const CRUD_MITT_KEY=Symbol(_0x396c35(0x174));export const CRUD_OPTIONS_KEY=Symbol(_0x396c35(0x178));export const TABLE_OPTIONS_KEY=Symbol(_0x396c35(0x16d));export const UPSERT_OPTIONS_KEY=Symbol(_0x396c35(0x17a));export const SEARCH_OPTIONS_KEY=Symbol(_0x396c35(0x16e));export const TABLE_API_KEY=Symbol(_0x396c35(0x16c));export function injectCrudOptions(){return inject(CRUD_OPTIONS_KEY,undefined);}export function injectTableOptions(){return inject(TABLE_OPTIONS_KEY,undefined);}export function injectUpsertOptions(){return inject(UPSERT_OPTIONS_KEY,undefined);}export function injectSearchOptions(){return inject(SEARCH_OPTIONS_KEY,undefined);}
@@ -1,21 +1 @@
1
- export class Mitt {
2
- map = new Map;
3
- on(type, handler) {
4
- if (!this.map.has(type))
5
- this.map.set(type, new Set);
6
- this.map.get(type).add(handler);
7
- }
8
- off(type, handler) {
9
- if (!handler) {
10
- this.map.delete(type);
11
- return;
12
- }
13
- this.map.get(type)?.delete(handler);
14
- }
15
- emit(type, ...args) {
16
- this.map.get(type)?.forEach((fn) => fn(...args));
17
- }
18
- }
19
- export function createMitt() {
20
- return new Mitt;
21
- }
1
+ function _0x4095(_0xab1ed8,_0x4da898){_0xab1ed8=_0xab1ed8-0x68;var _0x25b056=_0x25b0();var _0x409544=_0x25b056[_0xab1ed8];if(_0x4095['EVFHPo']===undefined){var _0x59b799=function(_0x2e92b6){var _0x39411c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xc46471='',_0x14fd8c='';for(var _0x5a09ee=0x0,_0x33fe04,_0x4b06d9,_0x120d8d=0x0;_0x4b06d9=_0x2e92b6['charAt'](_0x120d8d++);~_0x4b06d9&&(_0x33fe04=_0x5a09ee%0x4?_0x33fe04*0x40+_0x4b06d9:_0x4b06d9,_0x5a09ee++%0x4)?_0xc46471+=String['fromCharCode'](0xff&_0x33fe04>>(-0x2*_0x5a09ee&0x6)):0x0){_0x4b06d9=_0x39411c['indexOf'](_0x4b06d9);}for(var _0x4a4ab7=0x0,_0x428139=_0xc46471['length'];_0x4a4ab7<_0x428139;_0x4a4ab7++){_0x14fd8c+='%'+('00'+_0xc46471['charCodeAt'](_0x4a4ab7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x14fd8c);};_0x4095['dbQcXQ']=_0x59b799,_0x4095['ZncSSU']={},_0x4095['EVFHPo']=!![];}var _0x5a11c5=_0x25b056[0x0],_0x26669a=_0xab1ed8+_0x5a11c5,_0x4619bc=_0x4095['ZncSSU'][_0x26669a];return!_0x4619bc?(_0x409544=_0x4095['dbQcXQ'](_0x409544),_0x4095['ZncSSU'][_0x26669a]=_0x409544):_0x409544=_0x4619bc,_0x409544;}var _0x371af0=_0x4095;(function(_0x4f84ef,_0x1ac582){var _0x7422b1=_0x4095,_0x4ebf2d=_0x4f84ef();while(!![]){try{var _0x113e85=-parseInt(_0x7422b1(0x68))/0x1+-parseInt(_0x7422b1(0x78))/0x2*(-parseInt(_0x7422b1(0x6b))/0x3)+parseInt(_0x7422b1(0x6e))/0x4*(-parseInt(_0x7422b1(0x74))/0x5)+parseInt(_0x7422b1(0x6f))/0x6+parseInt(_0x7422b1(0x73))/0x7+parseInt(_0x7422b1(0x72))/0x8*(parseInt(_0x7422b1(0x71))/0x9)+parseInt(_0x7422b1(0x69))/0xa;if(_0x113e85===_0x1ac582)break;else _0x4ebf2d['push'](_0x4ebf2d['shift']());}catch(_0x568497){_0x4ebf2d['push'](_0x4ebf2d['shift']());}}}(_0x25b0,0xb1a27));export class Mitt{[_0x371af0(0x75)]=new Map();['on'](_0xc46471,_0x14fd8c){var _0xe1954d=_0x371af0;if(!this[_0xe1954d(0x75)]['has'](_0xc46471))this['map'][_0xe1954d(0x76)](_0xc46471,new Set());this[_0xe1954d(0x75)][_0xe1954d(0x6d)](_0xc46471)['add'](_0x14fd8c);}[_0x371af0(0x70)](_0x5a09ee,_0x33fe04){var _0x5ec419=_0x371af0;if(!_0x33fe04){this[_0x5ec419(0x75)][_0x5ec419(0x6a)](_0x5a09ee);return;}this[_0x5ec419(0x75)][_0x5ec419(0x6d)](_0x5a09ee)?.[_0x5ec419(0x6a)](_0x33fe04);}[_0x371af0(0x77)](_0x4b06d9,..._0x120d8d){var _0x4d8fcc=_0x371af0;this[_0x4d8fcc(0x75)]['get'](_0x4b06d9)?.[_0x4d8fcc(0x6c)](_0x4a4ab7=>_0x4a4ab7(..._0x120d8d));}}export function createMitt(){return new Mitt();}function _0x25b0(){var _0x2ae1fb=['B2zM','nJeYs3vlwezY','ndCWndHIDNvZEva','odq1mta1muHdruHlua','nJuYmte1nuThwNbwAq','BwfW','C2v0','zw1PDa','mKPxzu9ADq','mtqYmZa2mwroDLbbDq','nJyWody0meDgB3Pmva','zgvSzxrL','ndeYmJGXB1bnDhzc','zM9YrwfJAa','z2v0','nfnjDMLjqW','nJi5nJm0nK9NCKDzEa'];_0x25b0=function(){return _0x2ae1fb;};return _0x25b0();}