@skyfox2000/webui 1.3.15 → 1.3.17

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 (132) hide show
  1. package/package.json +1 -1
  2. package/src/components/form/select/index.vue +27 -14
  3. package/src/components/layout/page/baseLayout.vue +44 -0
  4. package/src/components/layout/page/basicLayout.vue +11 -44
  5. package/src/components/layout/page/menuLayout.vue +35 -0
  6. package/src/typings/option.d.ts +2 -2
  7. package/src/utils/data.ts +5 -1
  8. package/src/utils/options.ts +2 -2
  9. package/vite.config.ts +1 -0
  10. package/lib/AceEditor.d.ts +0 -1
  11. package/lib/BasicLayout.d.ts +0 -1
  12. package/lib/Error403.d.ts +0 -1
  13. package/lib/Error404.d.ts +0 -1
  14. package/lib/ExcelForm.d.ts +0 -1
  15. package/lib/UploadForm.d.ts +0 -1
  16. package/lib/assets/modules/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  17. package/lib/assets/modules/file-upload-D8Ln4vVV.js +0 -204
  18. package/lib/assets/modules/index-B2AK2Li9.js +0 -380
  19. package/lib/assets/modules/index-BnDOMkVL.js +0 -109
  20. package/lib/assets/modules/index-C8qhSdva.js +0 -112
  21. package/lib/assets/modules/menuTabs-FUxE-a2D.js +0 -671
  22. package/lib/assets/modules/toolIcon-bJ_WgHLU.js +0 -50
  23. package/lib/assets/modules/uploadList-BAX79qeV.js +0 -382
  24. package/lib/assets/modules/uploadList-BNkHE3fR.js +0 -2394
  25. package/lib/components/common/alert/index.vue.d.ts +0 -13
  26. package/lib/components/common/button/index.vue.d.ts +0 -41
  27. package/lib/components/common/icon/appicon.vue.d.ts +0 -11
  28. package/lib/components/common/icon/fullscreen.vue.d.ts +0 -3
  29. package/lib/components/common/icon/helper.vue.d.ts +0 -23
  30. package/lib/components/common/icon/index.vue.d.ts +0 -243
  31. package/lib/components/common/icon/layoutIcon.vue.d.ts +0 -43
  32. package/lib/components/common/icon/projectIcon.vue.d.ts +0 -59
  33. package/lib/components/common/icon/toolIcon.vue.d.ts +0 -43
  34. package/lib/components/common/index.d.ts +0 -22
  35. package/lib/components/common/loading/index.vue.d.ts +0 -3
  36. package/lib/components/common/tooltip/index.vue.d.ts +0 -21
  37. package/lib/components/content/dialog/index.vue.d.ts +0 -35
  38. package/lib/components/content/drawer/index.vue.d.ts +0 -28
  39. package/lib/components/content/form/formItem.vue.d.ts +0 -28
  40. package/lib/components/content/form/index.vue.d.ts +0 -25
  41. package/lib/components/content/index.d.ts +0 -22
  42. package/lib/components/content/search/index.vue.d.ts +0 -32
  43. package/lib/components/content/search/searchItem.vue.d.ts +0 -23
  44. package/lib/components/content/table/index.vue.d.ts +0 -127
  45. package/lib/components/content/table/tableOperate.vue.d.ts +0 -18
  46. package/lib/components/content/toolbar/icontool.vue.d.ts +0 -7
  47. package/lib/components/content/toolbar/index.vue.d.ts +0 -18
  48. package/lib/components/content/tree/index.vue.d.ts +0 -46
  49. package/lib/components/form/aceEditor/aceConfig.d.ts +0 -8
  50. package/lib/components/form/autoComplete/index.vue.d.ts +0 -101
  51. package/lib/components/form/cascader/index.vue.d.ts +0 -80
  52. package/lib/components/form/checkbox/index.vue.d.ts +0 -100
  53. package/lib/components/form/datePicker/index.vue.d.ts +0 -6
  54. package/lib/components/form/index.d.ts +0 -41
  55. package/lib/components/form/input/index.vue.d.ts +0 -29
  56. package/lib/components/form/input/inputIcon.vue.d.ts +0 -10
  57. package/lib/components/form/input/inputNumber.vue.d.ts +0 -3
  58. package/lib/components/form/input/inputPassword.vue.d.ts +0 -3
  59. package/lib/components/form/propEditor/index.vue.d.ts +0 -15
  60. package/lib/components/form/radio/index.vue.d.ts +0 -105
  61. package/lib/components/form/radio/radioStatus.vue.d.ts +0 -31
  62. package/lib/components/form/rangePicker/index.vue.d.ts +0 -16
  63. package/lib/components/form/select/index.vue.d.ts +0 -110
  64. package/lib/components/form/switch/index.vue.d.ts +0 -76
  65. package/lib/components/form/textarea/index.vue.d.ts +0 -3
  66. package/lib/components/form/timePicker/index.vue.d.ts +0 -6
  67. package/lib/components/form/transfer/index.vue.d.ts +0 -38
  68. package/lib/components/form/transfer/transferTable.vue.d.ts +0 -38
  69. package/lib/components/form/treeSelect/index.vue.d.ts +0 -47
  70. package/lib/components/form/upload/uploadList.vue.d.ts +0 -488
  71. package/lib/components/index.d.ts +0 -4
  72. package/lib/components/layout/breadcrumb/index.vue.d.ts +0 -3
  73. package/lib/components/layout/content/index.vue.d.ts +0 -22
  74. package/lib/components/layout/datetime/index.vue.d.ts +0 -3
  75. package/lib/components/layout/header/headerExits.vue.d.ts +0 -3
  76. package/lib/components/layout/header/index.vue.d.ts +0 -3
  77. package/lib/components/layout/header/user.vue.d.ts +0 -3
  78. package/lib/components/layout/index.d.ts +0 -14
  79. package/lib/components/layout/menu/index.vue.d.ts +0 -6
  80. package/lib/components/layout/menu/menuTabs.vue.d.ts +0 -3
  81. package/lib/const/options.d.ts +0 -32
  82. package/lib/directives/enter-submit.d.ts +0 -4
  83. package/lib/directives/index.d.ts +0 -2
  84. package/lib/directives/permission.d.ts +0 -5
  85. package/lib/es/AceEditor/index.js +0 -167
  86. package/lib/es/BasicLayout/index.js +0 -101
  87. package/lib/es/Error403/index.js +0 -39
  88. package/lib/es/Error404/index.js +0 -39
  89. package/lib/es/ExcelForm/index.js +0 -491
  90. package/lib/es/UploadForm/index.js +0 -110
  91. package/lib/index.d.ts +0 -46
  92. package/lib/router/index.d.ts +0 -15
  93. package/lib/stores/appInfo.d.ts +0 -31
  94. package/lib/stores/hostInfo.d.ts +0 -11
  95. package/lib/stores/pageInfo.d.ts +0 -18
  96. package/lib/stores/pinia.d.ts +0 -3
  97. package/lib/stores/settingInfo.d.ts +0 -8
  98. package/lib/stores/userInfo.d.ts +0 -25
  99. package/lib/typings/data.d.ts +0 -80
  100. package/lib/typings/form.d.ts +0 -206
  101. package/lib/typings/menu.d.ts +0 -7
  102. package/lib/typings/option.d.ts +0 -209
  103. package/lib/typings/page.d.ts +0 -70
  104. package/lib/typings/table.d.ts +0 -181
  105. package/lib/typings/tools.d.ts +0 -130
  106. package/lib/typings/tree.d.ts +0 -72
  107. package/lib/typings/upload.d.ts +0 -161
  108. package/lib/typings/urls.d.ts +0 -69
  109. package/lib/utils/cache.d.ts +0 -23
  110. package/lib/utils/data.d.ts +0 -6
  111. package/lib/utils/download.d.ts +0 -6
  112. package/lib/utils/eventbus.d.ts +0 -16
  113. package/lib/utils/excel-preview.d.ts +0 -24
  114. package/lib/utils/excel-view.d.ts +0 -25
  115. package/lib/utils/export-table.d.ts +0 -12
  116. package/lib/utils/file-upload.d.ts +0 -17
  117. package/lib/utils/form-csv.d.ts +0 -18
  118. package/lib/utils/form-excel.d.ts +0 -36
  119. package/lib/utils/form-validate.d.ts +0 -29
  120. package/lib/utils/form.d.ts +0 -9
  121. package/lib/utils/icon-loader.d.ts +0 -125
  122. package/lib/utils/isEmpty.d.ts +0 -1
  123. package/lib/utils/main-openapis.d.ts +0 -8
  124. package/lib/utils/menu.d.ts +0 -6
  125. package/lib/utils/options.d.ts +0 -7
  126. package/lib/utils/page.d.ts +0 -30
  127. package/lib/utils/table.d.ts +0 -21
  128. package/lib/utils/tools.d.ts +0 -18
  129. package/lib/utils/tree.d.ts +0 -3
  130. package/lib/vite-env.d.ts +0 -8
  131. package/lib/webui.css +0 -1
  132. package/lib/webui.es.js +0 -2345
@@ -1,167 +0,0 @@
1
- import { defineComponent as F, defineAsyncComponent as M, ref as m, watch as V, onMounted as J, createElementBlock as x, openBlock as p, Fragment as K, createElementVNode as v, createVNode as _, toDisplayString as W, unref as i, createBlock as P, withKeys as f, normalizeClass as N, withModifiers as w, withCtx as z, createCommentVNode as L } from "vue";
2
- import "ant-design-vue";
3
- import { _ as q } from "../../assets/modules/toolIcon-bJ_WgHLU.js";
4
- import "@skyfox2000/fapi";
5
- import "../../assets/modules/uploadList-BNkHE3fR.js";
6
- import "@skyfox2000/microbase";
7
- import "vue-m-message";
8
- import "async-validator";
9
- import "dayjs";
10
- import { _ as D } from "../../assets/modules/index-C8qhSdva.js";
11
- import "vue-draggable-next";
12
- const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
13
- const o = document.createElement("script");
14
- o.src = `${s}ace/ace.js`, o.async = !0, o.onload = () => {
15
- window.ace.config.set("basePath", `${s}ace/`);
16
- const n = document.createElement("script");
17
- n.src = `${s}ace/ext-language_tools.js`, n.async = !0, n.onload = () => {
18
- l(window.ace);
19
- }, n.onerror = () => {
20
- t(new Error("Failed to load language tools extension"));
21
- }, document.head.appendChild(n);
22
- }, o.onerror = () => {
23
- t(new Error("Failed to load Ace editor"));
24
- }, document.head.appendChild(o);
25
- }), Q = async (s, l) => {
26
- const t = await h(s), o = `${s}ace/mode-${l}.js`, n = `${s}ace/worker-${l}.js`;
27
- if (!document.querySelector(`script[src="${o}"]`)) {
28
- const r = document.createElement("script");
29
- r.src = o, r.async = !0, document.head.appendChild(r), await new Promise((a) => {
30
- r.onload = a, r.onerror = a;
31
- });
32
- }
33
- t.config.setModuleUrl(`ace/mode/${l}`, o), t.config.setModuleUrl(`ace/mode/${l}_worker`, n);
34
- }, R = async (s, l) => {
35
- const t = await h(s), o = `${s}ace/theme-${l}.js`;
36
- if (!document.querySelector(`script[src="${o}"]`)) {
37
- const n = document.createElement("script");
38
- n.src = o, n.async = !0, document.head.appendChild(n), await new Promise((r) => {
39
- n.onload = r, n.onerror = r;
40
- });
41
- }
42
- t.config.setModuleUrl(`ace/theme/${l}`, o);
43
- }, T = { class: "w-full overflow-hidden rounded-md border-1 border-solid border-gray-300" }, G = { class: "w-full h-[30px] bg-[#ccc] relative flex items-center justify-between px-2" }, H = { class: "flex-1 overflow-hidden" }, I = {
44
- key: 1,
45
- class: "h-[500px] w-[99.3%] flex justify-center items-center border-1 border-solid border-gray-200"
46
- }, $ = "github", ie = /* @__PURE__ */ F({
47
- __name: "index",
48
- props: {
49
- value: {},
50
- baseUrl: {},
51
- lang: {}
52
- },
53
- emits: ["update:value"],
54
- setup(s, { emit: l }) {
55
- const t = s, o = t.baseUrl.endsWith("/") ? t.baseUrl : t.baseUrl + "/", n = M(() => h(o).then(() => import("vue3-ace-editor").then((c) => c.VAceEditor))), r = t.lang ?? "json", a = m(""), b = t.value ? "h-[240px]" : "h-[100px]", S = {
56
- useWorker: !0,
57
- showPrintMargin: !1,
58
- highlightActiveLine: !0,
59
- highlightSelectedWord: !0,
60
- tabSize: 3,
61
- fontSize: 10,
62
- wrap: !0,
63
- readOnly: !1
64
- }, g = m({
65
- ...S
66
- }), k = l, C = () => {
67
- r === "json" ? A() && k("update:value", JSON.parse(a.value)) : k("update:value", a.value);
68
- }, A = () => {
69
- if (a.value) {
70
- let e = a.value;
71
- const u = /(\w+)(?=\s*:)/g;
72
- e = e.replace(u, '"$1"');
73
- const U = /'([^']*)'/g;
74
- e = e.replace(U, '"$1"');
75
- try {
76
- const E = JSON.parse(e), B = JSON.stringify(E, null, 3);
77
- return a.value = B, !0;
78
- } catch {
79
- }
80
- }
81
- return !1;
82
- }, j = () => {
83
- t.value && typeof t.value == "object" ? a.value = JSON.stringify(t.value, null, 3) : a.value = t.value ?? "";
84
- };
85
- V(
86
- () => t.value,
87
- (c, e) => {
88
- c !== e && j();
89
- }
90
- );
91
- const d = m(!1), y = m(!1), O = () => {
92
- d.value = !d.value;
93
- };
94
- return J(async () => {
95
- try {
96
- await h(o), await Promise.all([R(o, $), Q(o, r)]), y.value = !0, j(), g.value = {
97
- ...S
98
- // TODO 会提示拼写错误
99
- // enableBasicAutocompletion: true,
100
- // enableLiveAutocompletion: true,
101
- // enableSnippets: true,
102
- };
103
- } catch (c) {
104
- console.error("Failed to load Ace editor:", c);
105
- }
106
- }), (c, e) => (p(), x(K, null, [
107
- v("div", T, [
108
- v("div", G, [
109
- v("div", null, W(i(r).toUpperCase()), 1),
110
- _(i(q), {
111
- icon: "icon-fullscreen",
112
- clickable: "",
113
- class: "w-4 h-4 text-[12px]",
114
- onClick: O
115
- })
116
- ]),
117
- v("div", H, [
118
- y.value ? (p(), P(i(n), {
119
- key: 0,
120
- class: N([i(b)]),
121
- value: a.value,
122
- "onUpdate:value": e[0] || (e[0] = (u) => a.value = u),
123
- lang: i(r),
124
- theme: $,
125
- options: g.value,
126
- onBlur: C,
127
- onKeyup: e[1] || (e[1] = f(w(() => {
128
- }, ["stop"]), ["enter", "native"])),
129
- onKeydown: e[2] || (e[2] = f(w(() => {
130
- }, ["stop"]), ["enter", "native"]))
131
- }, null, 8, ["class", "value", "lang", "options"])) : (p(), x("div", {
132
- key: 1,
133
- class: N([i(b), "flex justify-center items-center"])
134
- }, "加载编辑器中...", 2))
135
- ])
136
- ]),
137
- _(i(D), {
138
- title: "代码编辑器",
139
- open: d.value,
140
- "onUpdate:open": e[6] || (e[6] = (u) => d.value = u),
141
- width: 680,
142
- footer: null
143
- }, {
144
- default: z(() => [
145
- d.value && y.value ? (p(), P(i(n), {
146
- key: 0,
147
- class: "h-[500px] w-[99.3%] border-1 border-solid border-gray-200",
148
- value: a.value,
149
- "onUpdate:value": e[3] || (e[3] = (u) => a.value = u),
150
- lang: i(r),
151
- theme: $,
152
- options: g.value,
153
- onBlur: C,
154
- onKeyup: e[4] || (e[4] = f(w(() => {
155
- }, ["stop"]), ["enter", "native"])),
156
- onKeydown: e[5] || (e[5] = f(w(() => {
157
- }, ["stop"]), ["enter", "native"]))
158
- }, null, 8, ["value", "lang", "options"])) : d.value ? (p(), x("div", I, " 加载编辑器中... ")) : L("", !0)
159
- ]),
160
- _: 1
161
- }, 8, ["open"])
162
- ], 64));
163
- }
164
- });
165
- export {
166
- ie as default
167
- };
@@ -1,101 +0,0 @@
1
- import { defineComponent as y, ref as I, watch as C, onMounted as g, resolveComponent as b, createBlock as n, openBlock as o, unref as e, withCtx as l, createCommentVNode as c, createVNode as r, createElementVNode as u, createElementBlock as k, toDisplayString as w, normalizeClass as S, KeepAlive as N, resolveDynamicComponent as $ } from "vue";
2
- import { Layout as f, LayoutSider as E } from "ant-design-vue";
3
- import { a as z } from "../../assets/modules/toolIcon-bJ_WgHLU.js";
4
- import { I as A, _ as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-FUxE-a2D.js";
5
- import { ad as j, a as K, af as M } from "../../assets/modules/uploadList-BNkHE3fR.js";
6
- import "@skyfox2000/microbase";
7
- import "@skyfox2000/fapi";
8
- import P from "vue-m-message";
9
- import "async-validator";
10
- import "dayjs";
11
- import "vue-draggable-next";
12
- const T = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-nowrap items-center justify-center text-white font-bold text-lg overflow-hidden text-ellipsis" }, U = {
13
- key: 0,
14
- class: "ml-[10px]"
15
- }, Z = /* @__PURE__ */ y({
16
- __name: "basicLayout",
17
- props: {
18
- routes: {}
19
- },
20
- setup(d) {
21
- const _ = d, t = j(), s = K(), x = M(), p = I("h-[calc(100vh-80px)]");
22
- return C(
23
- () => s.fullscreen,
24
- (i) => {
25
- p.value = i ? "h-[calc(100vh-40px)]" : "h-[calc(100vh-80px)]";
26
- }
27
- ), g(() => {
28
- P.closeAll();
29
- }), (i, m) => {
30
- const h = b("router-view");
31
- return o(), n(e(f), { class: "h-screen" }, {
32
- default: l(() => [
33
- e(s).fullscreen ? c("", !0) : (o(), n(e(E), {
34
- key: 0,
35
- class: "overflow-auto h-screen left-0 top-0 bottom-0",
36
- collapsed: e(s).menuCollapse,
37
- "onUpdate:collapsed": m[0] || (m[0] = (a) => e(s).menuCollapse = a),
38
- collapsible: ""
39
- }, {
40
- default: l(() => [
41
- u("div", T, [
42
- r(z, {
43
- title: e(s).menuCollapse ? e(t).appInfo.Name : "",
44
- placement: "right"
45
- }, {
46
- default: l(() => {
47
- var a;
48
- return [
49
- (a = e(t).appInfo.Icon) != null && a.startsWith("sym-") ? (o(), n(A, {
50
- key: 0,
51
- icon: e(t).appInfo.Icon,
52
- fontsize: "30px",
53
- size: "26px"
54
- }, null, 8, ["icon"])) : (o(), n(B, {
55
- key: 1,
56
- icon: e(t).appInfo.Icon,
57
- class: "mx-1"
58
- }, null, 8, ["icon"]))
59
- ];
60
- }),
61
- _: 1
62
- }, 8, ["title"]),
63
- e(s).menuCollapse ? c("", !0) : (o(), k("span", U, w(e(t).appInfo.Name), 1))
64
- ]),
65
- r(L, {
66
- routes: _.routes
67
- }, null, 8, ["routes"])
68
- ]),
69
- _: 1
70
- }, 8, ["collapsed"])),
71
- r(e(f), { class: "overflow-y-auto block" }, {
72
- default: l(() => [
73
- e(s).fullscreen ? c("", !0) : (o(), n(V, { key: 0 })),
74
- e(x).TabEnabled ? (o(), n(D, { key: 1 })) : c("", !0),
75
- u("div", {
76
- class: S(["relative overflow-y-auto", p.value])
77
- }, [
78
- r(h, null, {
79
- default: l(({ Component: a, route: v }) => [
80
- (o(), n(N, {
81
- include: e(t).CachedComponents,
82
- exclude: e(t).ExcludeComponents
83
- }, [
84
- (o(), n($(e(t).cacheComponent(a, v))))
85
- ], 1032, ["include", "exclude"]))
86
- ]),
87
- _: 1
88
- })
89
- ], 2)
90
- ]),
91
- _: 1
92
- })
93
- ]),
94
- _: 1
95
- });
96
- };
97
- }
98
- });
99
- export {
100
- Z as default
101
- };
@@ -1,39 +0,0 @@
1
- import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
2
- import { r as s } from "../../assets/modules/uploadList-BNkHE3fR.js";
3
- import "@skyfox2000/microbase";
4
- import "@skyfox2000/fapi";
5
- import "vue-m-message";
6
- import "async-validator";
7
- import "dayjs";
8
- import { Result as u, Button as c } from "ant-design-vue";
9
- import "vue-draggable-next";
10
- const V = /* @__PURE__ */ i({
11
- __name: "error403",
12
- setup(_) {
13
- const o = () => {
14
- s.back();
15
- };
16
- return (l, t) => (m(), p(r(u), {
17
- status: "403",
18
- title: "403",
19
- "sub-title": "您没有权限访问当前页面!"
20
- }, {
21
- extra: e(() => [
22
- n(r(c), {
23
- type: "primary",
24
- onClick: o
25
- }, {
26
- default: e(() => t[0] || (t[0] = [
27
- a("点击返回")
28
- ])),
29
- _: 1,
30
- __: [0]
31
- })
32
- ]),
33
- _: 1
34
- }));
35
- }
36
- });
37
- export {
38
- V as default
39
- };
@@ -1,39 +0,0 @@
1
- import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
2
- import { r as s } from "../../assets/modules/uploadList-BNkHE3fR.js";
3
- import "@skyfox2000/microbase";
4
- import "@skyfox2000/fapi";
5
- import "vue-m-message";
6
- import "async-validator";
7
- import "dayjs";
8
- import { Result as u, Button as c } from "ant-design-vue";
9
- import "vue-draggable-next";
10
- const V = /* @__PURE__ */ i({
11
- __name: "error404",
12
- setup(_) {
13
- const o = () => {
14
- s.back();
15
- };
16
- return (l, t) => (m(), p(r(u), {
17
- status: "404",
18
- title: "404",
19
- "sub-title": "页面不存在或者没有权限访问页面!"
20
- }, {
21
- extra: e(() => [
22
- n(r(c), {
23
- type: "primary",
24
- onClick: o
25
- }, {
26
- default: e(() => t[0] || (t[0] = [
27
- a("点击返回")
28
- ])),
29
- _: 1,
30
- __: [0]
31
- })
32
- ]),
33
- _: 1
34
- }));
35
- }
36
- });
37
- export {
38
- V as default
39
- };