@web-utils/form-ui 1.0.0-beta4 → 1.0.0-beta41

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 (189) hide show
  1. package/api/index.d.ts +60 -0
  2. package/api/index.mjs +42 -0
  3. package/awesome-button/index.d.ts +60 -0
  4. package/awesome-button/index.mjs +49 -0
  5. package/base.css +1 -0
  6. package/chunks/4GMuTlFS.mjs +25 -0
  7. package/chunks/B-YO6Py8.mjs +145 -0
  8. package/chunks/B1MSrc6f.mjs +8 -0
  9. package/chunks/B40JZqF5.mjs +60 -0
  10. package/chunks/BLNpMvUQ.mjs +95 -0
  11. package/chunks/BNQD6fKI.mjs +40 -0
  12. package/chunks/BROfNO6c.mjs +17 -0
  13. package/chunks/BiF8cEVB.mjs +102 -0
  14. package/chunks/Bm5eiSmT.mjs +79 -0
  15. package/chunks/C5BjmbyR.mjs +91 -0
  16. package/chunks/CBHZpxPE.mjs +108 -0
  17. package/chunks/CD2WYSl1.mjs +188 -0
  18. package/chunks/CE0MejA6.mjs +200 -0
  19. package/chunks/CSf0Lu3w.mjs +102 -0
  20. package/chunks/CXSIP67a.mjs +234 -0
  21. package/chunks/ChmDDqoZ2.mjs +478 -0
  22. package/chunks/ClpNoMQe.mjs +37 -0
  23. package/chunks/Csa9EgOO.mjs +152 -0
  24. package/chunks/CuBH-6_y.mjs +25 -0
  25. package/chunks/CybmpSN8.mjs +664 -0
  26. package/chunks/CzvmkGvn.mjs +89 -0
  27. package/chunks/DASUt7ot.mjs +166 -0
  28. package/chunks/DBNqhkDl.mjs +174 -0
  29. package/chunks/DMcUruCK2.mjs +207 -0
  30. package/chunks/DUjgfS7g.mjs +95 -0
  31. package/chunks/DWLv8UUC.mjs +612 -0
  32. package/chunks/Ds_Tpa_M.mjs +83 -0
  33. package/chunks/MeM8FGzA.mjs +200 -0
  34. package/chunks/_90XRi0U.mjs +105 -0
  35. package/chunks/_Uzl3uMy.mjs +109 -0
  36. package/chunks/b5HOxD60.mjs +1369 -0
  37. package/chunks/cmuHpsX6.mjs +109 -0
  38. package/chunks/ePSxkHli.mjs +95 -0
  39. package/chunks/jHrYQI1Q.mjs +320 -0
  40. package/chunks/kKoMKOYH.mjs +180 -0
  41. package/chunks/lPLJkGiz.mjs +25 -0
  42. package/chunks/mbLUSXcZ.mjs +56 -0
  43. package/chunks/y-DmM31a.mjs +168 -0
  44. package/confirm-button/index.d.ts +113 -0
  45. package/confirm-button/index.mjs +35 -0
  46. package/confirmable/index.d.ts +84 -0
  47. package/confirmable/index.mjs +8 -0
  48. package/constants/index.d.ts +53 -0
  49. package/constants/index.mjs +4 -0
  50. package/editable-tree/index.d.ts +254 -0
  51. package/editable-tree/index.mjs +2 -0
  52. package/editable-tree/style.css +1 -0
  53. package/element-dialog/index.d.ts +337 -16
  54. package/element-dialog/index.mjs +2 -91
  55. package/empty-view/index.d.ts +2 -2
  56. package/empty-view/index.mjs +1 -1
  57. package/flex-scroll-area/index.d.ts +1 -1
  58. package/flex-scroll-area/index.mjs +1 -1
  59. package/form-advice/index.mjs +13 -12
  60. package/form-button/index.d.ts +114 -0
  61. package/form-button/index.mjs +36 -0
  62. package/form-card/index.d.ts +14 -0
  63. package/form-card/index.mjs +18 -0
  64. package/form-cascader/index.d.ts +472 -0
  65. package/form-cascader/index.mjs +2 -0
  66. package/form-check-box-group/index.d.ts +289 -18
  67. package/form-check-box-group/index.mjs +1 -1
  68. package/form-check-box-group/style.css +1 -0
  69. package/form-checkbox/index.d.ts +236 -16
  70. package/form-checkbox/index.mjs +1 -1
  71. package/form-date-picker/index.d.ts +390 -19
  72. package/form-date-picker/index.mjs +1 -1
  73. package/form-holder/index.d.ts +87 -20
  74. package/form-holder/index.mjs +1 -1
  75. package/form-holder/style.css +1 -1
  76. package/form-image/index.d.ts +145 -13
  77. package/form-image/index.mjs +1 -1
  78. package/form-input/index.d.ts +301 -20
  79. package/form-input/index.mjs +1 -1
  80. package/form-input/style.css +1 -0
  81. package/form-input-cron-expression/index.d.ts +217 -0
  82. package/form-input-cron-expression/index.mjs +2 -0
  83. package/form-input-cron-expression/style.css +1 -0
  84. package/form-input-email/index.d.ts +307 -16
  85. package/form-input-email/index.mjs +1 -1
  86. package/form-input-id-card/index.d.ts +307 -16
  87. package/form-input-id-card/index.mjs +1 -1
  88. package/form-input-number/index.d.ts +246 -18
  89. package/form-input-number/index.mjs +1 -1
  90. package/form-input-phone-number/index.d.ts +307 -16
  91. package/form-input-phone-number/index.mjs +1 -1
  92. package/form-input-tag/index.d.ts +263 -1
  93. package/form-input-tag/index.mjs +1 -3
  94. package/form-input-time/index.d.ts +434 -1
  95. package/form-input-time/index.mjs +1 -3
  96. package/form-item-config-provider/index.d.ts +22 -0
  97. package/form-item-config-provider/index.mjs +24 -0
  98. package/form-item-group/index.d.ts +91 -17
  99. package/form-item-group/index.mjs +2 -78
  100. package/form-item-group/style.css +1 -1
  101. package/form-item-x/index.d.ts +141 -11
  102. package/form-item-x/index.mjs +1 -1
  103. package/form-item-x/style.css +1 -0
  104. package/form-radio-group/index.d.ts +303 -16
  105. package/form-radio-group/index.mjs +1 -1
  106. package/form-rate/index.d.ts +254 -14
  107. package/form-rate/index.mjs +1 -1
  108. package/form-red-table/index.mjs +27 -26
  109. package/form-row/index.d.ts +2 -2
  110. package/form-row/index.mjs +1 -1
  111. package/form-select/index.d.ts +537 -18
  112. package/form-select/index.mjs +1 -1
  113. package/form-slider/index.d.ts +283 -16
  114. package/form-slider/index.mjs +1 -1
  115. package/form-switch/index.d.ts +272 -14
  116. package/form-switch/index.mjs +1 -1
  117. package/form-text/index.d.ts +165 -13
  118. package/form-text/index.mjs +1 -1
  119. package/form-textarea/index.d.ts +351 -0
  120. package/form-textarea/index.mjs +2 -0
  121. package/form-time-select/index.d.ts +319 -0
  122. package/form-time-select/index.mjs +2 -0
  123. package/form-view/index.mjs +1 -1
  124. package/helper/dictionary.d.ts +15 -0
  125. package/helper/dictionary.mjs +97 -0
  126. package/hook/useDictionary.d.ts +60 -0
  127. package/hook/useDictionary.mjs +15 -0
  128. package/hook/useVisibilityChange.d.ts +4 -0
  129. package/hook/useVisibilityChange.mjs +14 -0
  130. package/iframe-window/index.d.ts +9 -0
  131. package/iframe-window/index.mjs +37 -0
  132. package/iframe-window/style.css +1 -0
  133. package/index.d.ts +52 -36
  134. package/index.mjs +54 -61
  135. package/package.json +10 -5
  136. package/pageable-table/index.d.ts +398 -0
  137. package/pageable-table/index.mjs +2 -0
  138. package/pageable-table/style.css +1 -0
  139. package/resize-observer/index.d.ts +8 -0
  140. package/resize-observer/index.mjs +40 -0
  141. package/resize-observer/style.css +1 -0
  142. package/resolver/index.mjs +29 -0
  143. package/table-column/index.d.ts +160 -0
  144. package/table-column/index.mjs +2 -0
  145. package/table-column/style.css +1 -0
  146. package/table-column-def/index.d.ts +85 -0
  147. package/table-column-def/index.mjs +11 -0
  148. package/table-view/index.d.ts +340 -1
  149. package/table-view/index.mjs +459 -6
  150. package/table-view/style.css +1 -0
  151. package/toolbar/index.d.ts +128 -1
  152. package/toolbar/index.mjs +1 -8
  153. package/toolbar/style.css +1 -0
  154. package/toolbar-button/index.d.ts +188 -1
  155. package/toolbar-button/index.mjs +1 -8
  156. package/vue-cron/index.d.ts +191 -0
  157. package/vue-cron/index.mjs +2 -0
  158. package/vue-cron/style.css +1 -0
  159. package/web-types.json +1 -1
  160. package/x-input-tag/index.d.ts +2 -0
  161. package/x-input-tag/index.mjs +232 -0
  162. package/x-input-tag/style.css +1 -0
  163. package/year-calendar/index.d.ts +99 -0
  164. package/year-calendar/index.mjs +2 -0
  165. package/year-calendar/style.css +1 -0
  166. package/chunks/B4M_TFeR.mjs +0 -152
  167. package/chunks/B5BIQCcK.mjs +0 -149
  168. package/chunks/BHNKrW1j.mjs +0 -61
  169. package/chunks/BO9jWhBl.mjs +0 -46
  170. package/chunks/BZ8aOa78.mjs +0 -35
  171. package/chunks/Bsz7y4Xp.mjs +0 -73
  172. package/chunks/Bxj372sF.mjs +0 -53
  173. package/chunks/C33EmJN8.mjs +0 -32
  174. package/chunks/C6Li3-l7.mjs +0 -28
  175. package/chunks/CBcdalMX.mjs +0 -35
  176. package/chunks/CdRsyF0n.mjs +0 -43
  177. package/chunks/ClNahmiU.mjs +0 -23
  178. package/chunks/CstztYMu.mjs +0 -28
  179. package/chunks/DC9b53M6.mjs +0 -32
  180. package/chunks/DDVAgRED.mjs +0 -36
  181. package/chunks/DpJQABVD.mjs +0 -91
  182. package/chunks/ZsLNWI9x.mjs +0 -46
  183. package/chunks/jn_iQrVZ.mjs +0 -28
  184. package/constants.d.ts +0 -1
  185. package/constants.mjs +0 -4
  186. package/input/style.css +0 -1
  187. package/resolver.mjs +0 -79
  188. package/utils/style.css +0 -1
  189. /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
package/api/index.d.ts ADDED
@@ -0,0 +1,60 @@
1
+ export interface DictItem {
2
+ id: string;
3
+ dictId: string;
4
+ label: string;
5
+ dictType: string;
6
+ description: string;
7
+ sortOrder: number;
8
+ createBy: string;
9
+ updateBy: string;
10
+ createTime: string;
11
+ updateTime: string;
12
+ remarks: null;
13
+ delFlag: string;
14
+ value: string;
15
+ }
16
+ export interface ConfigOptions {
17
+ privilege?: {
18
+ processButtons?: (buttons: Array<string | Record<string, string>>) => Array<string | Record<string, boolean>>;
19
+ hasAuthority?: (privilege: string) => boolean;
20
+ };
21
+ dict?: {
22
+ getDictTreeByType?: (type: string, options: {
23
+ idAsValue?: boolean;
24
+ labelAsValue?: boolean;
25
+ }) => Promise<{
26
+ data: {
27
+ data: DictItem[];
28
+ };
29
+ }>;
30
+ remote?: (type: string) => Promise<{
31
+ data: {
32
+ data: DictItem[];
33
+ };
34
+ }>;
35
+ };
36
+ tableView?: {
37
+ reload?: () => void;
38
+ };
39
+ toolbar?: {
40
+ goBack?: (path: string) => void;
41
+ };
42
+ }
43
+ export declare const processButtons: (buttons: Array<string | Record<string, string>>) => (string | Record<string, boolean>)[] | undefined;
44
+ export declare const hasAuthority: (str: string) => boolean | undefined;
45
+ export declare const goBack: (path: string) => void | undefined;
46
+ export declare const reloadTable: () => void | undefined;
47
+ export declare const getDictTreeByType: (type: string, options: {
48
+ idAsValue?: boolean;
49
+ labelAsValue?: boolean;
50
+ }) => Promise<{
51
+ data: {
52
+ data: DictItem[];
53
+ };
54
+ }> | undefined;
55
+ export declare const remote: (type: string) => Promise<{
56
+ data: {
57
+ data: DictItem[];
58
+ };
59
+ }> | undefined;
60
+ export declare const config: (options: ConfigOptions) => void;
package/api/index.mjs ADDED
@@ -0,0 +1,42 @@
1
+ import { isObject as e, isString as t } from "@web-utils/core";
2
+ import { mergeWith as n } from "@web-utils/integrations/lodash";
3
+ //#region src/api/index.ts
4
+ var r = { privilege: {
5
+ processButtons(n) {
6
+ return n.map((n) => {
7
+ if (e(n)) {
8
+ let e = n, r = {};
9
+ for (let n in e) t(e[n]) && (r[n] = a(e[n]) ?? !0);
10
+ return r;
11
+ }
12
+ return n;
13
+ });
14
+ },
15
+ hasAuthority(e) {
16
+ return !0;
17
+ }
18
+ } }, i = (e) => {
19
+ var t, n;
20
+ return (t = r.privilege) == null || (n = t.processButtons) == null ? void 0 : n.call(t, e);
21
+ }, a = (e) => {
22
+ var t, n;
23
+ return (t = r.privilege) == null || (n = t.hasAuthority) == null ? void 0 : n.call(t, e);
24
+ }, o = (e) => {
25
+ var t, n;
26
+ return (t = r.toolbar) == null || (n = t.goBack) == null ? void 0 : n.call(t, e);
27
+ }, s = () => {
28
+ var e, t;
29
+ return (e = r.tableView) == null || (t = e.reload) == null ? void 0 : t.call(e);
30
+ }, c = (e, t) => {
31
+ var n, i;
32
+ return (n = r.dict) == null || (i = n.getDictTreeByType) == null ? void 0 : i.call(n, e, t);
33
+ }, l = (e) => {
34
+ var t, n;
35
+ return (t = r.dict) == null || (n = t.remote) == null ? void 0 : n.call(t, e);
36
+ }, u = (e) => {
37
+ n(r, e, (e, t) => {
38
+ if (typeof t == "function") return t;
39
+ });
40
+ };
41
+ //#endregion
42
+ export { u as config, c as getDictTreeByType, o as goBack, a as hasAuthority, i as processButtons, s as reloadTable, l as remote };
@@ -0,0 +1,60 @@
1
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
+ type: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ size: StringConstructor;
7
+ icon: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ nativeType: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ loading: BooleanConstructor;
16
+ disabled: BooleanConstructor;
17
+ plain: BooleanConstructor;
18
+ autofocus: BooleanConstructor;
19
+ round: BooleanConstructor;
20
+ text: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ }>, () => globalThis.VNode<import('vue').RendererNode, import('vue').RendererElement, {
25
+ [key: string]: any;
26
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
27
+ type: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ size: StringConstructor;
32
+ icon: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ nativeType: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ loading: BooleanConstructor;
41
+ disabled: BooleanConstructor;
42
+ plain: BooleanConstructor;
43
+ autofocus: BooleanConstructor;
44
+ round: BooleanConstructor;
45
+ text: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ }>> & Readonly<{}>, {
50
+ loading: boolean;
51
+ disabled: boolean;
52
+ plain: boolean;
53
+ autofocus: boolean;
54
+ round: boolean;
55
+ type: string;
56
+ icon: string;
57
+ nativeType: string;
58
+ text: string;
59
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
60
+ export default _default;
@@ -0,0 +1,49 @@
1
+ import { isFunction as e } from "@web-utils/core";
2
+ import { h as t, ref as n, resolveComponent as r } from "vue";
3
+ //#region src/components/button/AwesomeButton.vue
4
+ var i = {
5
+ name: "AwesomeButton",
6
+ inheritAttrs: !1,
7
+ props: {
8
+ type: {
9
+ type: String,
10
+ default: "primary"
11
+ },
12
+ size: String,
13
+ icon: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ nativeType: {
18
+ type: String,
19
+ default: "button"
20
+ },
21
+ loading: Boolean,
22
+ disabled: Boolean,
23
+ plain: Boolean,
24
+ autofocus: Boolean,
25
+ round: Boolean,
26
+ text: {
27
+ type: String,
28
+ default: ""
29
+ }
30
+ },
31
+ setup(i, { attrs: a, slots: o }) {
32
+ let s = r("ElButton"), { text: c, ...l } = i, { onClick: u, ...d } = a, f = n(!1), p = async (t) => {
33
+ if (f.value = !0, e(u)) try {
34
+ await u(t);
35
+ } catch (e) {
36
+ console.error(e);
37
+ }
38
+ f.value = !1;
39
+ };
40
+ return () => t(s, {
41
+ ...d,
42
+ ...l,
43
+ disabled: f.value,
44
+ onClick: p
45
+ }, { default: o.default || (() => c) });
46
+ }
47
+ };
48
+ //#endregion
49
+ export { i as default };
package/base.css ADDED
@@ -0,0 +1 @@
1
+ :root{--el-disabled-text-color:#606266;--border-color:#d7dae0}.border-bottom{border-bottom:1px solid #d7dae0}.clear-fix:after{clear:both;visibility:hidden;content:" ";height:0;display:block}.flex-row{flex-direction:row;flex-shrink:0;display:flex}.flex-row.vertical-center{align-items:center}.flex-row.vertical-start{align-items:flex-start}.flex-row.horizon-center{justify-content:center}.text-center{text-align:center}.flex-column{flex-direction:column;display:flex}.flex-column.vertical-center{justify-content:center}.flex-column.horizon-center{align-items:center}.flex-item,.flex-item-relative{flex:auto}.flex-item-relative{position:relative}.flex-item-relative .flex-content{position:absolute;top:0;bottom:0;left:0;right:0}.flex-not-shrink{flex-shrink:0}
@@ -0,0 +1,25 @@
1
+ import { n as e } from "./CXSIP67a.mjs";
2
+ import { n as t, t as n } from "./Csa9EgOO.mjs";
3
+ import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
4
+ //#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
5
+ function s(e) {
6
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
7
+ }
8
+ //#endregion
9
+ //#region src/components/form/FormInputPhoneNumber.vue
10
+ var c = {
11
+ name: "FormInputPhoneNumber",
12
+ inheritAttrs: !1,
13
+ props: { ...t },
14
+ emits: { ...e },
15
+ setup(e, { slots: t, attrs: i }) {
16
+ let c = o(e, "modelValue");
17
+ return () => r(n, a(e, i, {
18
+ modelValue: c.value,
19
+ "onUpdate:modelValue": (e) => c.value = e,
20
+ type: "phone"
21
+ }), s(t) ? t : { default: () => [t] });
22
+ }
23
+ };
24
+ //#endregion
25
+ export { c as t };
@@ -0,0 +1,145 @@
1
+ import { i as e, n as t } from "./CXSIP67a.mjs";
2
+ import { n } from "./BROfNO6c.mjs";
3
+ import { useDictionary as r } from "../hook/useDictionary.mjs";
4
+ import { computed as i, createVNode as a, isVNode as o, mergeProps as s, useModel as c } from "vue";
5
+ import { ElRadio as l, ElRadioButton as u, ElRadioGroup as d } from "element-plus/es";
6
+ import "element-plus/es/components/base/style/css";
7
+ import "element-plus/es/components/radio-group/style/css";
8
+ import "element-plus/es/components/radio/style/css";
9
+ import "element-plus/es/components/radio-button/style/css";
10
+ //#region src/components/form/props/radio-group.ts
11
+ var f = {
12
+ ...n,
13
+ modelValue: [
14
+ String,
15
+ Number,
16
+ Boolean
17
+ ],
18
+ size: {
19
+ type: String,
20
+ default: "default"
21
+ },
22
+ validateEvent: {
23
+ type: Boolean,
24
+ default: !0
25
+ },
26
+ textColor: {
27
+ type: String,
28
+ default: "#ffffff"
29
+ },
30
+ fill: {
31
+ type: String,
32
+ default: "#409eff"
33
+ },
34
+ ariaLabel: String,
35
+ name: String,
36
+ id: String,
37
+ options: {
38
+ type: Array,
39
+ default: () => []
40
+ },
41
+ props: {
42
+ type: Object,
43
+ default: () => ({
44
+ value: "value",
45
+ label: "label",
46
+ disabled: "disabled"
47
+ })
48
+ },
49
+ type: {
50
+ type: String,
51
+ default: "radio"
52
+ },
53
+ border: Boolean,
54
+ gender: Boolean,
55
+ overFlow: Boolean,
56
+ confirm: Boolean,
57
+ trigger: {
58
+ type: String,
59
+ default: "change"
60
+ },
61
+ labelProp: {
62
+ type: String,
63
+ default: "name"
64
+ },
65
+ valueProp: {
66
+ type: String,
67
+ default: "code"
68
+ },
69
+ english: Boolean,
70
+ chinese: Boolean,
71
+ typing: Boolean,
72
+ classic: {
73
+ type: Boolean,
74
+ default: !0
75
+ },
76
+ fillRow: Boolean,
77
+ ellipsis: Boolean,
78
+ inline: Boolean,
79
+ allowCancel: Boolean,
80
+ radioType: {
81
+ type: String,
82
+ default: "radio"
83
+ },
84
+ dictType: String
85
+ }, p = {
86
+ modelValue: !0,
87
+ disabled: !0,
88
+ type: !0,
89
+ options: !0
90
+ }, m = (e) => n[e] === void 0 && p[e] !== !0;
91
+ //#endregion
92
+ //#region src/components/form/FormRadioGroup.vue?vue&type=script&lang.jsx
93
+ function h(e) {
94
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !o(e);
95
+ }
96
+ //#endregion
97
+ //#region src/components/form/FormRadioGroup.vue
98
+ var g = {
99
+ name: "FormRadioGroup",
100
+ inheritAttrs: !1,
101
+ props: { ...f },
102
+ emits: { ...t },
103
+ setup(t, { slots: n, attrs: o, emit: f }) {
104
+ let p = c(t, "modelValue"), { render: g, disabled: _, listeners: v, inputProps: y } = e(t, {
105
+ emit: f,
106
+ slots: n,
107
+ attrs: o,
108
+ predicate: m,
109
+ messagePrefix: "请选择"
110
+ }), b = i(() => t.classic ? "label" : t.labelProp), x = i(() => t.classic ? "value" : t.valueProp), { dictItems: S } = r(t), C = i(() => t.dictType ? S.value : t.gender ? [{
111
+ [b.value]: "男",
112
+ [x.value]: t.chinese ? "男" : t.typing ? 1 : "1"
113
+ }, {
114
+ [b.value]: "女",
115
+ [x.value]: t.chinese ? "女" : t.typing ? 2 : "2"
116
+ }] : t.confirm ? [{
117
+ [b.value]: "是",
118
+ [x.value]: t.chinese ? "是" : t.english ? "Y" : t.typing ? 1 : "1"
119
+ }, {
120
+ [b.value]: "否",
121
+ [x.value]: t.chinese ? "否" : t.english ? "N" : t.typing ? 0 : "0"
122
+ }] : t.options);
123
+ return () => g({ vNodes: a(d, s(v.value, y.value, {
124
+ modelValue: p.value,
125
+ "onUpdate:modelValue": (e) => p.value = e,
126
+ disabled: _.value
127
+ }), {
128
+ ...n,
129
+ default: n.default || (() => {
130
+ var e;
131
+ return (e = C.value) == null ? void 0 : e.map(({ value: e, label: n, disabled: r }) => t.type === "button" || t.radioType === "button" ? a(u, {
132
+ key: e,
133
+ value: e,
134
+ disabled: r
135
+ }, h(n) ? n : { default: () => [n] }) : a(l, {
136
+ key: e,
137
+ value: e,
138
+ disabled: r
139
+ }, h(n) ? n : { default: () => [n] }));
140
+ })
141
+ }) });
142
+ }
143
+ };
144
+ //#endregion
145
+ export { g as t };
@@ -0,0 +1,8 @@
1
+ //#region \0plugin-vue:export-helper
2
+ var e = (e, t) => {
3
+ let n = e.__vccOpts || e;
4
+ for (let [e, r] of t) n[e] = r;
5
+ return n;
6
+ };
7
+ //#endregion
8
+ export { e as t };
@@ -0,0 +1,60 @@
1
+ import { i as e, n as t } from "./CXSIP67a.mjs";
2
+ import { n, t as r } from "./BROfNO6c.mjs";
3
+ import { t as i } from "./b5HOxD60.mjs";
4
+ import { createVNode as a, mergeProps as o, ref as s } from "vue";
5
+ import { ElInput as c, ElPopover as l } from "element-plus/es";
6
+ import "element-plus/es/components/base/style/css";
7
+ import "element-plus/es/components/input/style/css";
8
+ import "element-plus/es/components/popover/style/css";
9
+ //#region src/components/form/props/input-cron.ts
10
+ var u = {
11
+ ...n,
12
+ ...r,
13
+ modelValue: [String, Number]
14
+ }, d = {
15
+ readonly: !0,
16
+ placeholder: !0,
17
+ disabled: !0,
18
+ modelValue: !0,
19
+ prefix: !0,
20
+ suffix: !0
21
+ }, f = (e) => n[e] === void 0 && d[e] !== !0, p = {
22
+ name: "FormInputCronExpression",
23
+ props: { ...u },
24
+ emits: { ...t },
25
+ setup(t, { emit: n, slots: r, attrs: u }) {
26
+ let d = s(!1), { emitInput: p, render: m, placeholder: h, disabled: g, listeners: _, inputProps: v } = e(t, {
27
+ emit: n,
28
+ slots: r,
29
+ attrs: u,
30
+ predicate: f
31
+ }), y = () => {
32
+ d.value = !0;
33
+ }, b = () => {
34
+ d.value = !1;
35
+ };
36
+ return () => m({ vNodes: a("div", { class: "cron" }, [a(l, {
37
+ placement: "bottom-start",
38
+ disabled: g.value,
39
+ visible: d.value,
40
+ "onUpdate:visible": (e) => d.value = e,
41
+ "popper-class": "cron-popover"
42
+ }, {
43
+ default: () => a(i, o(_.value, v.value, {
44
+ i18n: "cn",
45
+ expression: t.modelValue,
46
+ onChange: p,
47
+ onClose: b
48
+ }), null),
49
+ reference: () => a(c, {
50
+ modelValue: t.modelValue,
51
+ readonly: !0,
52
+ disabled: g.value,
53
+ placeholder: h.value,
54
+ onClick: y
55
+ }, null)
56
+ })]) });
57
+ }
58
+ };
59
+ //#endregion
60
+ export { p as t };
@@ -0,0 +1,95 @@
1
+ import { columnSizeContextKey as e, setColumnSizeContextKey as t } from "../constants/index.mjs";
2
+ import n from "../form-cell/index.mjs";
3
+ import { camelize as r, isDef as i, isString as a } from "@web-utils/core";
4
+ import { Comment as o, Fragment as s, Text as c, createVNode as l, inject as u, isVNode as d } from "vue";
5
+ import { ElTooltip as f } from "element-plus/es";
6
+ import "element-plus/es/components/base/style/css";
7
+ import "element-plus/es/components/tooltip/style/css";
8
+ //#region src/components/red-form/FormRow.vue?vue&type=script&lang.jsx
9
+ function p(e) {
10
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !d(e);
11
+ }
12
+ var m = (e) => {
13
+ let t = Object.keys({});
14
+ for (let n in e) t[r(n)] = e[n];
15
+ return t;
16
+ }, h = (e, { columnSize: t }) => {
17
+ if (!e || !e.length) return null;
18
+ e = e.filter((e) => e.type !== o);
19
+ let n = [], r = e.length === 1;
20
+ for (let o = 0; o < e.length; o++) {
21
+ let v = e[o], { name: y } = v.type;
22
+ if (v.type === c) n.push({
23
+ tag: y,
24
+ type: "text",
25
+ content: v,
26
+ colspan: r ? t : 0
27
+ });
28
+ else if (v.type === s) n.push(...h(v.children, { columnSize: t }));
29
+ else if (a(v.type) && v.type === "td") n.push({
30
+ tag: v.type,
31
+ type: "td",
32
+ content: v
33
+ });
34
+ else if (y === "FormCell") n.push({
35
+ tag: y,
36
+ type: "FormCell",
37
+ content: v
38
+ });
39
+ else if (typeof v.type == "object") {
40
+ var u, d;
41
+ let { label: e, hideLabel: a, labelColspan: o, inputColspan: s, labelRowspan: c, inputRowspan: h, tipsAfterLabel: b, tips: x } = m(v.props);
42
+ if (!i(a)) {
43
+ var p, g, _;
44
+ let t = (p = v.children) == null ? void 0 : p.tips, r = t || x ? l(f, {
45
+ effect: "light",
46
+ content: x,
47
+ offset: 4
48
+ }, {
49
+ default: () => l("i", { class: "el-icon-info form-item-input-info" }, null),
50
+ content: t || null
51
+ }) : null;
52
+ n.push({
53
+ tag: y,
54
+ type: "label",
55
+ colspan: o,
56
+ rowspan: c,
57
+ content: [((g = v.children) == null || (_ = g.label) == null ? void 0 : _.call(g)) || e, b === "" ? r : null]
58
+ });
59
+ }
60
+ let S;
61
+ S = r && i(a) ? t : i(s) ? s : r ? t - 1 : 0, n.push({
62
+ tag: y,
63
+ type: "input",
64
+ colspan: S,
65
+ rowspan: h,
66
+ content: [v, (u = v.children) == null || (d = u.below) == null ? void 0 : d.call(u)]
67
+ });
68
+ } else console.error("未知节点");
69
+ }
70
+ return n;
71
+ }, g = {
72
+ name: "FormRow",
73
+ props: {
74
+ isLabel: Boolean,
75
+ alignCenter: Boolean
76
+ },
77
+ setup(r, { slots: i }) {
78
+ let a = u(t, null), o = u(e, null);
79
+ return () => {
80
+ var e;
81
+ let t = (e = i.default) == null ? void 0 : e.call(i), s = [];
82
+ return s.push(...h(t, { columnSize: (o == null ? void 0 : o.value) ?? 0 })), ((o == null ? void 0 : o.value) ?? 0) < s.length && (a == null || a(s.length)), l("tr", null, [s.map(({ tag: e, type: t, colspan: i, rowspan: a, content: o }) => e === "td" || t === "FormCell" ? o : t === "text" ? l(n, {
83
+ isLabel: r.isLabel,
84
+ alignCenter: r.alignCenter,
85
+ colspan: i
86
+ }, p(o) ? o : { default: () => [o] }) : l("td", {
87
+ class: t,
88
+ colspan: i,
89
+ rowspan: a
90
+ }, [o]))]);
91
+ };
92
+ }
93
+ };
94
+ //#endregion
95
+ export { g as t };
@@ -0,0 +1,40 @@
1
+ import { d as e } from "./cmuHpsX6.mjs";
2
+ import { o as t, r as n } from "./CXSIP67a.mjs";
3
+ import { n as r } from "./BROfNO6c.mjs";
4
+ import { createVNode as i, mergeProps as a } from "vue";
5
+ import { ElText as o } from "element-plus/es";
6
+ import "element-plus/es/components/base/style/css";
7
+ import "element-plus/es/components/text/style/css";
8
+ //#region src/components/form/props/text.ts
9
+ var s = {
10
+ ...r,
11
+ type: String,
12
+ size: {
13
+ type: String,
14
+ default: "default"
15
+ },
16
+ truncated: {
17
+ type: Boolean,
18
+ default: !1
19
+ },
20
+ lineClamp: [String, Number],
21
+ tag: {
22
+ type: String,
23
+ default: "span"
24
+ },
25
+ text: String
26
+ }, c = { modelValue: !0 }, l = (e) => r[e] === void 0 && c[e] !== !0, u = {
27
+ name: "FormText",
28
+ inheritAttrs: !1,
29
+ props: { ...s },
30
+ setup(r, { slots: s, attrs: c }) {
31
+ let u = t(r, { attrs: c }), d = e(r, l);
32
+ return () => n(r, {
33
+ vNodes: i(o, a(d.value, c), { default: s.default || (() => r.text) }),
34
+ formItemProps: u,
35
+ slots: s
36
+ });
37
+ }
38
+ };
39
+ //#endregion
40
+ export { u as t };
@@ -0,0 +1,17 @@
1
+ import { c as e, s as t } from "./CXSIP67a.mjs";
2
+ //#region src/components/form/props/common.ts
3
+ var n = {
4
+ ...e,
5
+ ...t,
6
+ wrapFormItem: {
7
+ type: Boolean,
8
+ default: !0
9
+ },
10
+ disabled: {
11
+ type: Boolean,
12
+ default: void 0
13
+ },
14
+ col: Boolean
15
+ }, r = { size: { type: String } };
16
+ //#endregion
17
+ export { n, r as t };