@skyfox2000/webui 1.3.18 → 1.3.20

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 (131) hide show
  1. package/lib/AceEditor.d.ts +1 -0
  2. package/lib/BasicLayout.d.ts +1 -0
  3. package/lib/Error403.d.ts +1 -0
  4. package/lib/Error404.d.ts +1 -0
  5. package/lib/ExcelForm.d.ts +1 -0
  6. package/lib/MenuLayout.d.ts +1 -0
  7. package/lib/UploadForm.d.ts +1 -0
  8. package/lib/assets/modules/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  9. package/lib/assets/modules/baseLayout-B9dSxkYo.js +79 -0
  10. package/lib/assets/modules/file-upload-JBIvw5Xx.js +204 -0
  11. package/lib/assets/modules/index-BMkaOjBS.js +380 -0
  12. package/lib/assets/modules/index-BOYtm8ib.js +112 -0
  13. package/lib/assets/modules/index-BkChvyed.js +109 -0
  14. package/lib/assets/modules/menuTabs-BFPjaQRI.js +671 -0
  15. package/lib/assets/modules/toolIcon-XOgjdQdO.js +50 -0
  16. package/lib/assets/modules/uploadList-BedljASx.js +2407 -0
  17. package/lib/assets/modules/uploadList-CW7OIDS3.js +382 -0
  18. package/lib/components/common/alert/index.vue.d.ts +13 -0
  19. package/lib/components/common/button/index.vue.d.ts +41 -0
  20. package/lib/components/common/icon/appicon.vue.d.ts +11 -0
  21. package/lib/components/common/icon/fullscreen.vue.d.ts +3 -0
  22. package/lib/components/common/icon/helper.vue.d.ts +23 -0
  23. package/lib/components/common/icon/index.vue.d.ts +243 -0
  24. package/lib/components/common/icon/layoutIcon.vue.d.ts +43 -0
  25. package/lib/components/common/icon/projectIcon.vue.d.ts +59 -0
  26. package/lib/components/common/icon/toolIcon.vue.d.ts +43 -0
  27. package/lib/components/common/index.d.ts +22 -0
  28. package/lib/components/common/loading/index.vue.d.ts +3 -0
  29. package/lib/components/common/tooltip/index.vue.d.ts +21 -0
  30. package/lib/components/content/dialog/index.vue.d.ts +35 -0
  31. package/lib/components/content/drawer/index.vue.d.ts +28 -0
  32. package/lib/components/content/form/formItem.vue.d.ts +28 -0
  33. package/lib/components/content/form/index.vue.d.ts +25 -0
  34. package/lib/components/content/index.d.ts +22 -0
  35. package/lib/components/content/search/index.vue.d.ts +32 -0
  36. package/lib/components/content/search/searchItem.vue.d.ts +23 -0
  37. package/lib/components/content/table/index.vue.d.ts +127 -0
  38. package/lib/components/content/table/tableOperate.vue.d.ts +18 -0
  39. package/lib/components/content/toolbar/icontool.vue.d.ts +7 -0
  40. package/lib/components/content/toolbar/index.vue.d.ts +18 -0
  41. package/lib/components/content/tree/index.vue.d.ts +46 -0
  42. package/lib/components/form/aceEditor/aceConfig.d.ts +8 -0
  43. package/lib/components/form/autoComplete/index.vue.d.ts +101 -0
  44. package/lib/components/form/cascader/index.vue.d.ts +80 -0
  45. package/lib/components/form/checkbox/index.vue.d.ts +100 -0
  46. package/lib/components/form/datePicker/index.vue.d.ts +6 -0
  47. package/lib/components/form/index.d.ts +41 -0
  48. package/lib/components/form/input/index.vue.d.ts +29 -0
  49. package/lib/components/form/input/inputIcon.vue.d.ts +10 -0
  50. package/lib/components/form/input/inputNumber.vue.d.ts +3 -0
  51. package/lib/components/form/input/inputPassword.vue.d.ts +3 -0
  52. package/lib/components/form/propEditor/index.vue.d.ts +15 -0
  53. package/lib/components/form/radio/index.vue.d.ts +105 -0
  54. package/lib/components/form/radio/radioStatus.vue.d.ts +31 -0
  55. package/lib/components/form/rangePicker/index.vue.d.ts +16 -0
  56. package/lib/components/form/select/index.vue.d.ts +119 -0
  57. package/lib/components/form/switch/index.vue.d.ts +76 -0
  58. package/lib/components/form/textarea/index.vue.d.ts +3 -0
  59. package/lib/components/form/timePicker/index.vue.d.ts +6 -0
  60. package/lib/components/form/transfer/index.vue.d.ts +38 -0
  61. package/lib/components/form/transfer/transferTable.vue.d.ts +38 -0
  62. package/lib/components/form/treeSelect/index.vue.d.ts +47 -0
  63. package/lib/components/form/upload/uploadList.vue.d.ts +488 -0
  64. package/lib/components/index.d.ts +4 -0
  65. package/lib/components/layout/breadcrumb/index.vue.d.ts +3 -0
  66. package/lib/components/layout/content/index.vue.d.ts +22 -0
  67. package/lib/components/layout/datetime/index.vue.d.ts +3 -0
  68. package/lib/components/layout/header/headerExits.vue.d.ts +3 -0
  69. package/lib/components/layout/header/index.vue.d.ts +3 -0
  70. package/lib/components/layout/header/user.vue.d.ts +3 -0
  71. package/lib/components/layout/index.d.ts +14 -0
  72. package/lib/components/layout/menu/index.vue.d.ts +6 -0
  73. package/lib/components/layout/menu/menuTabs.vue.d.ts +3 -0
  74. package/lib/const/options.d.ts +32 -0
  75. package/lib/directives/enter-submit.d.ts +4 -0
  76. package/lib/directives/index.d.ts +2 -0
  77. package/lib/directives/permission.d.ts +5 -0
  78. package/lib/es/AceEditor/index.js +167 -0
  79. package/lib/es/BasicLayout/index.js +54 -0
  80. package/lib/es/Error403/index.js +39 -0
  81. package/lib/es/Error404/index.js +39 -0
  82. package/lib/es/ExcelForm/index.js +491 -0
  83. package/lib/es/MenuLayout/index.js +54 -0
  84. package/lib/es/UploadForm/index.js +110 -0
  85. package/lib/index.d.ts +46 -0
  86. package/lib/router/index.d.ts +15 -0
  87. package/lib/stores/appInfo.d.ts +31 -0
  88. package/lib/stores/hostInfo.d.ts +11 -0
  89. package/lib/stores/pageInfo.d.ts +18 -0
  90. package/lib/stores/pinia.d.ts +3 -0
  91. package/lib/stores/settingInfo.d.ts +8 -0
  92. package/lib/stores/userInfo.d.ts +25 -0
  93. package/lib/typings/data.d.ts +80 -0
  94. package/lib/typings/form.d.ts +206 -0
  95. package/lib/typings/menu.d.ts +7 -0
  96. package/lib/typings/option.d.ts +209 -0
  97. package/lib/typings/page.d.ts +70 -0
  98. package/lib/typings/table.d.ts +181 -0
  99. package/lib/typings/tools.d.ts +130 -0
  100. package/lib/typings/tree.d.ts +72 -0
  101. package/lib/typings/upload.d.ts +161 -0
  102. package/lib/typings/urls.d.ts +69 -0
  103. package/lib/utils/cache.d.ts +23 -0
  104. package/lib/utils/data.d.ts +6 -0
  105. package/lib/utils/download.d.ts +6 -0
  106. package/lib/utils/eventbus.d.ts +16 -0
  107. package/lib/utils/excel-preview.d.ts +24 -0
  108. package/lib/utils/excel-view.d.ts +25 -0
  109. package/lib/utils/export-table.d.ts +12 -0
  110. package/lib/utils/file-upload.d.ts +17 -0
  111. package/lib/utils/form-csv.d.ts +18 -0
  112. package/lib/utils/form-excel.d.ts +36 -0
  113. package/lib/utils/form-validate.d.ts +29 -0
  114. package/lib/utils/form.d.ts +9 -0
  115. package/lib/utils/icon-loader.d.ts +125 -0
  116. package/lib/utils/isEmpty.d.ts +1 -0
  117. package/lib/utils/main-openapis.d.ts +8 -0
  118. package/lib/utils/menu.d.ts +6 -0
  119. package/lib/utils/options.d.ts +7 -0
  120. package/lib/utils/page.d.ts +30 -0
  121. package/lib/utils/table.d.ts +21 -0
  122. package/lib/utils/tools.d.ts +18 -0
  123. package/lib/utils/tree.d.ts +3 -0
  124. package/lib/vite-env.d.ts +8 -0
  125. package/lib/webui.css +1 -0
  126. package/lib/webui.es.js +2345 -0
  127. package/package.json +1 -1
  128. package/src/components/layout/page/menuLayout.vue +34 -0
  129. package/vite.config.ts +1 -1
  130. package/.cursorignore +0 -8
  131. package/scripts/userInput.py +0 -2
@@ -0,0 +1,112 @@
1
+ import { defineComponent as F, provide as _, ref as w, watch as p, onMounted as B, createBlock as n, openBlock as r, unref as a, withCtx as i, createElementVNode as N, renderSlot as b, createVNode as V, createCommentVNode as d, createTextVNode as u, toDisplayString as v } from "vue";
2
+ import { _ as m } from "./index-BkChvyed.js";
3
+ import { Modal as D, Space as E } from "ant-design-vue";
4
+ import "@skyfox2000/fapi";
5
+ import { P as M, d as P, o as $, b as K } from "./uploadList-BedljASx.js";
6
+ import "@skyfox2000/microbase";
7
+ import "vue-m-message";
8
+ import "async-validator";
9
+ import "dayjs";
10
+ import "vue-draggable-next";
11
+ const U = { class: "overflow-y-auto w-full h-full" }, R = /* @__PURE__ */ F({
12
+ __name: "index",
13
+ props: {
14
+ saveText: {},
15
+ saveAsText: {},
16
+ cancelText: {},
17
+ editorCtrl: {},
18
+ dialogSave: { type: Function },
19
+ dialogSaveAs: { type: Function },
20
+ width: {},
21
+ full: { type: Boolean },
22
+ open: { type: Boolean }
23
+ },
24
+ emits: ["update:open"],
25
+ setup(C, { emit: T }) {
26
+ const l = C, e = l.editorCtrl;
27
+ _(M.EditorControl, e);
28
+ const t = w(l.open ?? !1), A = T, h = w(l.width ?? 430);
29
+ p(
30
+ () => e == null ? void 0 : e.visible.value,
31
+ (o) => {
32
+ t.value = o ?? !1;
33
+ }
34
+ ), p(
35
+ () => l.open,
36
+ (o) => {
37
+ t.value = o;
38
+ }
39
+ ), p(
40
+ () => t.value,
41
+ (o) => {
42
+ A("update:open", o), o || f();
43
+ }
44
+ ), B(() => {
45
+ t.value = (e == null ? void 0 : e.visible.value) ?? !1;
46
+ });
47
+ const k = () => {
48
+ l.dialogSave ? l.dialogSave() : e && $(e);
49
+ }, x = () => {
50
+ l.dialogSaveAs ? l.dialogSaveAs() : e && K(e);
51
+ }, f = () => {
52
+ e ? P(e) : t.value = !1;
53
+ };
54
+ return (o, c) => (r(), n(a(D), {
55
+ open: t.value,
56
+ "onUpdate:open": c[0] || (c[0] = (s) => t.value = s),
57
+ wrapClassName: "modal mx-auto min-w-[430px] " + (o.full ? "full-modal w-full" : ""),
58
+ width: h.value
59
+ }, {
60
+ footer: i(() => [
61
+ V(a(E), null, {
62
+ default: i(() => {
63
+ var s, g, S, y;
64
+ return [
65
+ o.cancelText !== "" ? (r(), n(a(m), {
66
+ key: 0,
67
+ onClick: f
68
+ }, {
69
+ default: i(() => [
70
+ u(v(o.cancelText ?? "取消"), 1)
71
+ ]),
72
+ _: 1
73
+ })) : d("", !0),
74
+ o.saveAsText !== "" && ((s = a(e)) == null ? void 0 : s.saveAsBtnVisible) !== !1 ? (r(), n(a(m), {
75
+ key: 1,
76
+ onClick: x,
77
+ type: "primary",
78
+ loading: (g = a(e)) == null ? void 0 : g.isFormSaving.value
79
+ }, {
80
+ default: i(() => [
81
+ u(v(o.saveAsText ?? "另存为"), 1)
82
+ ]),
83
+ _: 1
84
+ }, 8, ["loading"])) : d("", !0),
85
+ o.saveText !== "" && ((S = a(e)) == null ? void 0 : S.saveBtnVisible) !== !1 ? (r(), n(a(m), {
86
+ key: 2,
87
+ onClick: k,
88
+ type: "primary",
89
+ loading: (y = a(e)) == null ? void 0 : y.isFormSaving.value
90
+ }, {
91
+ default: i(() => [
92
+ u(v(o.saveText ?? "保存"), 1)
93
+ ]),
94
+ _: 1
95
+ }, 8, ["loading"])) : d("", !0)
96
+ ];
97
+ }),
98
+ _: 1
99
+ })
100
+ ]),
101
+ default: i(() => [
102
+ N("div", U, [
103
+ b(o.$slots, "default")
104
+ ])
105
+ ]),
106
+ _: 3
107
+ }, 8, ["open", "wrapClassName", "width"]));
108
+ }
109
+ });
110
+ export {
111
+ R as _
112
+ };
@@ -0,0 +1,109 @@
1
+ import { defineComponent as d, useAttrs as f, createElementBlock as u, openBlock as x, createVNode as e, withCtx as n, unref as o, mergeProps as r, renderSlot as p } from "vue";
2
+ import { Button as _ } from "ant-design-vue";
3
+ import { a as P, _ as k } from "./toolIcon-XOgjdQdO.js";
4
+ const C = /* @__PURE__ */ d({
5
+ inheritAttrs: !1,
6
+ __name: "index",
7
+ props: {
8
+ /**
9
+ * 提示标题
10
+ * @props
11
+ * @name content
12
+ * @type {string}
13
+ */
14
+ tiptext: String,
15
+ /**
16
+ * 提示显示位置
17
+ * @props
18
+ * @name placement
19
+ * @type {string}
20
+ * @default 'top'
21
+ */
22
+ placement: {
23
+ type: String,
24
+ default: "top"
25
+ },
26
+ /**
27
+ * 内置图标属性设置
28
+ * @props
29
+ * @name iconProps
30
+ * @type {object}
31
+ * @summary 内置图标复杂属性设置,仅支持前置图标
32
+ */
33
+ iconProps: Object,
34
+ /**
35
+ * 默认使用框架图标
36
+ * 其它图标请自定义
37
+ * @props
38
+ * @name icon
39
+ * @type {string}
40
+ */
41
+ icon: String
42
+ // /**
43
+ // * 点击事件
44
+ // * @props
45
+ // * @name clickEvent
46
+ // * @summary 格式 "空间名#事件名",空间名和事件名用#分隔,事件名用.分隔
47
+ // * @type {string}
48
+ // */
49
+ // clickEvent: {
50
+ // type: String
51
+ // },
52
+ // /**
53
+ // * 点击传输数据
54
+ // * @props
55
+ // * @name data
56
+ // * @summary 点击事件传输的默认数据
57
+ // * @type {object|string}
58
+ // */
59
+ // data: {
60
+ // type: [Object, String]
61
+ // }
62
+ },
63
+ emits: [
64
+ /**
65
+ * 点击事件
66
+ * @emits
67
+ * @name click
68
+ * @summary 图标按钮点击时触发的事件
69
+ */
70
+ "click"
71
+ ],
72
+ setup(i, { emit: l }) {
73
+ const c = f(), t = i, a = l, m = () => {
74
+ t.iconProps && t.iconProps.icons && (t.iconProps.iconIndex = (t.iconProps.iconIndex + 1) % t.iconProps.icons.length), a("click");
75
+ };
76
+ return (s, b) => (x(), u("div", null, [
77
+ e(P, {
78
+ title: t.tiptext,
79
+ disabled: t.tiptext ? void 0 : "disabled",
80
+ placement: i.placement
81
+ }, {
82
+ default: n(() => [
83
+ e(o(_), r({ class: "px-[10px] py-[4px] flex items-center gap-1" }, o(c), { onClick: m }), {
84
+ icon: n(() => [
85
+ p(s.$slots, "icon", {}, () => [
86
+ e(k, r({
87
+ icon: t.icon,
88
+ class: [
89
+ o(c).type === "primary" ? "ant-btn-primary" : "",
90
+ "cursor-pointer w-[17px] h-[17px] mx-auto"
91
+ ],
92
+ clickable: ""
93
+ }, t.iconProps), null, 16, ["icon", "class"])
94
+ ])
95
+ ]),
96
+ default: n(() => [
97
+ p(s.$slots, "default")
98
+ ]),
99
+ _: 3
100
+ }, 16)
101
+ ]),
102
+ _: 3
103
+ }, 8, ["title", "disabled", "placement"])
104
+ ]));
105
+ }
106
+ });
107
+ export {
108
+ C as _
109
+ };