@web-utils/form-ui 1.0.0-beta3 → 1.0.0-beta30
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.
- package/api/index.d.ts +60 -0
- package/api/index.mjs +42 -0
- package/awesome-button/index.d.ts +60 -0
- package/awesome-button/index.mjs +49 -0
- package/base.css +1 -1
- package/chunks/4ZuVpQf6.mjs +478 -0
- package/chunks/B99alfW4.mjs +207 -0
- package/chunks/BQ77eAb3.mjs +71 -0
- package/chunks/BV_N8p9t.mjs +83 -0
- package/chunks/BV_P9a8o.mjs +100 -0
- package/chunks/BgDYHgyH.mjs +189 -0
- package/chunks/Bm5eiSmT.mjs +79 -0
- package/chunks/BmZieBZW.mjs +88 -0
- package/chunks/Br4i8stg.mjs +222 -0
- package/chunks/C3a15Ful.mjs +95 -0
- package/chunks/C4bM8miy.mjs +174 -0
- package/chunks/C9J3j0PX.mjs +93 -0
- package/chunks/CKErj8Ax.mjs +637 -0
- package/chunks/Cby3mvvZ.mjs +216 -0
- package/chunks/Cc3EJjbV.mjs +25 -0
- package/chunks/Cgl-hCE5.mjs +25 -0
- package/chunks/Ci1XxmdE.mjs +51 -0
- package/chunks/CkFapoKt.mjs +8 -0
- package/chunks/CsfgUCe9.mjs +17 -0
- package/chunks/CugRu2Ka.mjs +42 -0
- package/chunks/Cy-4nmyC.mjs +106 -0
- package/chunks/D1EOkWJ7.mjs +25 -0
- package/chunks/D1G2MMMx.mjs +1360 -0
- package/chunks/DO8dVGef.mjs +98 -0
- package/chunks/DazglPJZ.mjs +180 -0
- package/chunks/Dt6gY213.mjs +62 -0
- package/chunks/DtAYXPvz.mjs +108 -0
- package/chunks/JhyiXnbd.mjs +76 -0
- package/chunks/S64sNmuR.mjs +226 -0
- package/chunks/bnRb5PUB.mjs +108 -0
- package/chunks/dM-icPM8.mjs +107 -0
- package/chunks/pxFLMMUm.mjs +110 -0
- package/chunks/q1SlJP1y.mjs +171 -0
- package/confirm-button/index.d.ts +113 -0
- package/confirm-button/index.mjs +35 -0
- package/confirmable/index.d.ts +84 -0
- package/confirmable/index.mjs +8 -0
- package/constants/index.d.ts +42 -0
- package/constants/index.mjs +4 -0
- package/dict-render/index.d.ts +28 -0
- package/element-dialog/index.d.ts +374 -0
- package/element-dialog/index.mjs +2 -91
- package/empty-view/index.d.ts +29 -0
- package/empty-view/index.mjs +1 -1
- package/flex-scroll-area/index.d.ts +22 -0
- package/flex-scroll-area/index.mjs +1 -1
- package/form-advice/index.d.ts +9 -0
- package/form-advice/index.mjs +13 -12
- package/form-button/index.d.ts +114 -0
- package/form-button/index.mjs +36 -0
- package/form-cascader/index.d.ts +486 -0
- package/form-cascader/index.mjs +2 -0
- package/form-cell/index.d.ts +25 -0
- package/form-check-box-group/index.d.ts +295 -0
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.d.ts +273 -0
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.d.ts +423 -0
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +166 -0
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +226 -0
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +389 -0
- package/form-input/index.mjs +1 -1
- package/form-input/style.css +1 -0
- package/form-input-cron-expression/index.d.ts +217 -0
- package/form-input-cron-expression/index.mjs +2 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.d.ts +363 -0
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +363 -0
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +327 -0
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +363 -0
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +2 -0
- package/form-input-time/index.d.ts +2 -0
- package/form-item-config-provider/index.d.ts +22 -0
- package/form-item-config-provider/index.mjs +24 -0
- package/form-item-group/index.d.ts +94 -0
- package/form-item-group/index.mjs +2 -78
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.d.ts +184 -0
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -0
- package/form-radio-group/index.d.ts +283 -0
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +321 -0
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.d.ts +21 -0
- package/form-red-table/index.mjs +27 -26
- package/form-row/index.d.ts +11 -0
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +542 -0
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +350 -0
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +339 -0
- package/form-switch/index.mjs +1 -1
- package/form-text/index.d.ts +229 -0
- package/form-text/index.mjs +1 -1
- package/form-view/index.d.ts +2 -0
- package/form-view/index.mjs +1 -1
- package/helper/dictionary.d.ts +15 -0
- package/helper/dictionary.mjs +97 -0
- package/hook/useDictionary.d.ts +60 -0
- package/hook/useDictionary.mjs +15 -0
- package/hook/useVisibilityChange.d.ts +4 -0
- package/hook/useVisibilityChange.mjs +14 -0
- package/iframe-window/index.d.ts +9 -0
- package/iframe-window/index.mjs +37 -0
- package/iframe-window/style.css +1 -0
- package/index.d.ts +51 -0
- package/index.mjs +51 -37
- package/month-calendar/index.d.ts +80 -0
- package/package.json +12 -7
- package/pageable-table/index.d.ts +436 -0
- package/pageable-table/index.mjs +2 -0
- package/pageable-table/style.css +1 -0
- package/resize-observer/index.d.ts +8 -0
- package/resize-observer/index.mjs +40 -0
- package/resize-observer/style.css +1 -0
- package/resolver/index.d.ts +9 -0
- package/resolver/index.mjs +29 -0
- package/table-column/index.d.ts +160 -0
- package/table-column/index.mjs +2 -0
- package/table-column/style.css +1 -0
- package/table-column-def/index.d.ts +85 -0
- package/table-column-def/index.mjs +11 -0
- package/table-column-filter/index.d.ts +11 -0
- package/table-column-filterable/index.d.ts +10 -0
- package/table-view/index.d.ts +2 -0
- package/table-view/index.mjs +1 -1
- package/toolbar/index.d.ts +129 -0
- package/toolbar/index.mjs +1 -8
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.d.ts +77 -0
- package/toolbar-button/index.mjs +1 -8
- package/vue-cron/index.d.ts +191 -0
- package/vue-cron/index.mjs +2 -0
- package/vue-cron/style.css +1 -0
- package/web-types.json +1 -1
- package/x-input-tag/index.d.ts +2 -0
- package/x-input-tag/index.mjs +226 -0
- package/x-input-tag/style.css +1 -0
- package/year-calendar/index.d.ts +99 -0
- package/year-calendar/index.mjs +2 -0
- package/year-calendar/style.css +1 -0
- package/chunks/B4M_TFeR.mjs +0 -152
- package/chunks/B5BIQCcK.mjs +0 -149
- package/chunks/BHNKrW1j.mjs +0 -61
- package/chunks/BO9jWhBl.mjs +0 -46
- package/chunks/BZ8aOa78.mjs +0 -35
- package/chunks/Bsz7y4Xp.mjs +0 -73
- package/chunks/Bxj372sF.mjs +0 -53
- package/chunks/C33EmJN8.mjs +0 -32
- package/chunks/C6Li3-l7.mjs +0 -28
- package/chunks/CBcdalMX.mjs +0 -35
- package/chunks/CdRsyF0n.mjs +0 -43
- package/chunks/ClNahmiU.mjs +0 -23
- package/chunks/CstztYMu.mjs +0 -28
- package/chunks/DC9b53M6.mjs +0 -32
- package/chunks/DDVAgRED.mjs +0 -36
- package/chunks/DpJQABVD.mjs +0 -91
- package/chunks/ZsLNWI9x.mjs +0 -46
- package/chunks/jn_iQrVZ.mjs +0 -28
- package/constants.mjs +0 -4
- package/input/style.css +0 -1
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
type: StringConstructor;
|
|
3
|
+
size: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
truncated: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
lineClamp: (StringConstructor | NumberConstructor)[];
|
|
12
|
+
tag: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
text: StringConstructor;
|
|
17
|
+
wrapFormItem: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
col: BooleanConstructor;
|
|
26
|
+
span: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
offset: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
push: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
pull: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
xs: {
|
|
43
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
44
|
+
};
|
|
45
|
+
sm: {
|
|
46
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
47
|
+
};
|
|
48
|
+
md: {
|
|
49
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
50
|
+
};
|
|
51
|
+
lg: {
|
|
52
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
53
|
+
};
|
|
54
|
+
xl: {
|
|
55
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
56
|
+
};
|
|
57
|
+
prop: (StringConstructor | ArrayConstructor)[];
|
|
58
|
+
label: StringConstructor;
|
|
59
|
+
labelPosition: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
labelWidth: (StringConstructor | NumberConstructor)[];
|
|
64
|
+
required: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
rules: ObjectConstructor;
|
|
69
|
+
error: StringConstructor;
|
|
70
|
+
showMessage: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
inlineMessage: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
for: StringConstructor;
|
|
79
|
+
validateStatus: StringConstructor;
|
|
80
|
+
messagePrefix: StringConstructor;
|
|
81
|
+
message: StringConstructor;
|
|
82
|
+
wrapCol: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
fixedSpan: NumberConstructor;
|
|
87
|
+
block: BooleanConstructor;
|
|
88
|
+
unwrap: BooleanConstructor;
|
|
89
|
+
half: BooleanConstructor;
|
|
90
|
+
formItemClass: StringConstructor;
|
|
91
|
+
hideLabel: BooleanConstructor;
|
|
92
|
+
tips: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
};
|
|
95
|
+
tipsAfterLabel: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
labelColspan: (StringConstructor | NumberConstructor)[];
|
|
100
|
+
inputColspan: (StringConstructor | NumberConstructor)[];
|
|
101
|
+
labelRowspan: (StringConstructor | NumberConstructor)[];
|
|
102
|
+
inputRowspan: (StringConstructor | NumberConstructor)[];
|
|
103
|
+
}>, () => globalThis.VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
104
|
+
[key: string]: any;
|
|
105
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
106
|
+
type: StringConstructor;
|
|
107
|
+
size: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
truncated: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
lineClamp: (StringConstructor | NumberConstructor)[];
|
|
116
|
+
tag: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
text: StringConstructor;
|
|
121
|
+
wrapFormItem: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
disabled: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: undefined;
|
|
128
|
+
};
|
|
129
|
+
col: BooleanConstructor;
|
|
130
|
+
span: {
|
|
131
|
+
type: NumberConstructor;
|
|
132
|
+
default: number;
|
|
133
|
+
};
|
|
134
|
+
offset: {
|
|
135
|
+
type: NumberConstructor;
|
|
136
|
+
default: number;
|
|
137
|
+
};
|
|
138
|
+
push: {
|
|
139
|
+
type: NumberConstructor;
|
|
140
|
+
default: number;
|
|
141
|
+
};
|
|
142
|
+
pull: {
|
|
143
|
+
type: NumberConstructor;
|
|
144
|
+
default: number;
|
|
145
|
+
};
|
|
146
|
+
xs: {
|
|
147
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
148
|
+
};
|
|
149
|
+
sm: {
|
|
150
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
151
|
+
};
|
|
152
|
+
md: {
|
|
153
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
154
|
+
};
|
|
155
|
+
lg: {
|
|
156
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
157
|
+
};
|
|
158
|
+
xl: {
|
|
159
|
+
type: (ObjectConstructor | NumberConstructor)[];
|
|
160
|
+
};
|
|
161
|
+
prop: (StringConstructor | ArrayConstructor)[];
|
|
162
|
+
label: StringConstructor;
|
|
163
|
+
labelPosition: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
labelWidth: (StringConstructor | NumberConstructor)[];
|
|
168
|
+
required: {
|
|
169
|
+
type: BooleanConstructor;
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
172
|
+
rules: ObjectConstructor;
|
|
173
|
+
error: StringConstructor;
|
|
174
|
+
showMessage: {
|
|
175
|
+
type: BooleanConstructor;
|
|
176
|
+
default: boolean;
|
|
177
|
+
};
|
|
178
|
+
inlineMessage: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: boolean;
|
|
181
|
+
};
|
|
182
|
+
for: StringConstructor;
|
|
183
|
+
validateStatus: StringConstructor;
|
|
184
|
+
messagePrefix: StringConstructor;
|
|
185
|
+
message: StringConstructor;
|
|
186
|
+
wrapCol: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
190
|
+
fixedSpan: NumberConstructor;
|
|
191
|
+
block: BooleanConstructor;
|
|
192
|
+
unwrap: BooleanConstructor;
|
|
193
|
+
half: BooleanConstructor;
|
|
194
|
+
formItemClass: StringConstructor;
|
|
195
|
+
hideLabel: BooleanConstructor;
|
|
196
|
+
tips: {
|
|
197
|
+
type: StringConstructor;
|
|
198
|
+
};
|
|
199
|
+
tipsAfterLabel: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
default: boolean;
|
|
202
|
+
};
|
|
203
|
+
labelColspan: (StringConstructor | NumberConstructor)[];
|
|
204
|
+
inputColspan: (StringConstructor | NumberConstructor)[];
|
|
205
|
+
labelRowspan: (StringConstructor | NumberConstructor)[];
|
|
206
|
+
inputRowspan: (StringConstructor | NumberConstructor)[];
|
|
207
|
+
}>> & Readonly<{}>, {
|
|
208
|
+
size: string;
|
|
209
|
+
disabled: boolean;
|
|
210
|
+
push: number;
|
|
211
|
+
col: boolean;
|
|
212
|
+
span: number;
|
|
213
|
+
tag: string;
|
|
214
|
+
offset: number;
|
|
215
|
+
required: boolean;
|
|
216
|
+
wrapCol: boolean;
|
|
217
|
+
block: boolean;
|
|
218
|
+
unwrap: boolean;
|
|
219
|
+
half: boolean;
|
|
220
|
+
hideLabel: boolean;
|
|
221
|
+
tipsAfterLabel: boolean;
|
|
222
|
+
labelPosition: string;
|
|
223
|
+
showMessage: boolean;
|
|
224
|
+
inlineMessage: boolean;
|
|
225
|
+
pull: number;
|
|
226
|
+
wrapFormItem: boolean;
|
|
227
|
+
truncated: boolean;
|
|
228
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
229
|
+
export default _default;
|
package/form-text/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/CugRu2Ka.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
package/form-view/index.mjs
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DictItem } from '../api';
|
|
2
|
+
export declare const clearDictCache: () => void;
|
|
3
|
+
export type DictOption = {
|
|
4
|
+
options?: any;
|
|
5
|
+
treeDict?: boolean;
|
|
6
|
+
idAsValue?: boolean;
|
|
7
|
+
labelAsValue?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const getDictData: (type: string, cache?: boolean, { options, treeDict, idAsValue, labelAsValue }?: DictOption) => DictItem[] | readonly DictItem[] | Promise<DictItem[] | readonly DictItem[] | null>;
|
|
10
|
+
export declare const getDictItem: (type: string, value: any, cache?: boolean, { treeDict, idAsValue, labelAsValue }?: DictOption) => Promise<any>;
|
|
11
|
+
export declare const getDictLabel: (type: string, value: any, cache?: boolean, { treeDict, idAsValue, labelAsValue }?: DictOption) => Promise<any>;
|
|
12
|
+
export declare const confirmOptions: readonly {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { a as e, o as t } from "../chunks/BQ77eAb3.mjs";
|
|
2
|
+
import { getDictTreeByType as n, remote as r } from "../api/index.mjs";
|
|
3
|
+
//#region src/helper/dictionary.ts
|
|
4
|
+
var i = {}, a = {}, o = {}, s = () => {
|
|
5
|
+
for (let e in i) delete i[e];
|
|
6
|
+
for (let e in a) delete a[e];
|
|
7
|
+
}, c = (e, t = !0, { options: n, treeDict: r, idAsValue: a, labelAsValue: o } = {}) => {
|
|
8
|
+
let s = e;
|
|
9
|
+
r && (s = `${e}-${a}-${o}${n ? "-options" : ""}`);
|
|
10
|
+
let c = i[s];
|
|
11
|
+
return t && c ? c : r ? u(e, t, {
|
|
12
|
+
idAsValue: a,
|
|
13
|
+
labelAsValue: o
|
|
14
|
+
}) : l(e, t);
|
|
15
|
+
}, l = (e, t = !0) => {
|
|
16
|
+
if (o[e]) return o[e];
|
|
17
|
+
let n = new Promise((n, s) => {
|
|
18
|
+
if (t && i[e]) n(i[e]);
|
|
19
|
+
else {
|
|
20
|
+
var c;
|
|
21
|
+
(c = r(e)) == null || c.then((r) => {
|
|
22
|
+
let s = r.data.data;
|
|
23
|
+
if (t) {
|
|
24
|
+
let t = {};
|
|
25
|
+
s.forEach(({ label: e, value: n }) => {
|
|
26
|
+
t[n] = Object.freeze({
|
|
27
|
+
label: e,
|
|
28
|
+
value: n
|
|
29
|
+
});
|
|
30
|
+
}), a[e] = t, s = Object.freeze(s), i[e] = s;
|
|
31
|
+
}
|
|
32
|
+
o[e] = null, n(s);
|
|
33
|
+
}).catch((t) => {
|
|
34
|
+
o[e] = null, s(t);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
return o[e] = n, n;
|
|
39
|
+
}, u = (r, s = !0, { idAsValue: c, labelAsValue: l } = {}) => {
|
|
40
|
+
let u = `${r}-${c}-${l}`;
|
|
41
|
+
if (o[u]) return o[u];
|
|
42
|
+
let d = new Promise((d, f) => {
|
|
43
|
+
if (s && i[u]) d(i[u]);
|
|
44
|
+
else {
|
|
45
|
+
var p;
|
|
46
|
+
(p = n(r, {
|
|
47
|
+
idAsValue: c,
|
|
48
|
+
labelAsValue: l
|
|
49
|
+
})) == null || p.then((n) => {
|
|
50
|
+
let r = n.data.data;
|
|
51
|
+
s && (i[u] = r, i[`${u}-options`] = t(r), a[u] = e(r)), o[u] = null, d(r);
|
|
52
|
+
}).catch((e) => {
|
|
53
|
+
o[u] = null, f(e);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
return o[u] = d, d;
|
|
58
|
+
}, d = async (e, n, r = !0, { treeDict: i, idAsValue: o, labelAsValue: s } = {}) => {
|
|
59
|
+
let l = e;
|
|
60
|
+
i && (l = `${e}-${o}-${s}`);
|
|
61
|
+
let u = a[l], d;
|
|
62
|
+
if (r && u) d = u[n];
|
|
63
|
+
else {
|
|
64
|
+
let u = await c(e, r, {
|
|
65
|
+
treeDict: i,
|
|
66
|
+
idAsValue: o,
|
|
67
|
+
labelAsValue: s
|
|
68
|
+
});
|
|
69
|
+
if (r) d = a[l][n];
|
|
70
|
+
else {
|
|
71
|
+
if (i && (u = t(u)), !u) return d;
|
|
72
|
+
for (let e = 0; e < u.length; e++) {
|
|
73
|
+
let t = u[e];
|
|
74
|
+
if (t.value === n) {
|
|
75
|
+
d = t;
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return d;
|
|
82
|
+
}, f = async (e, t, n = !0, { treeDict: r, idAsValue: i, labelAsValue: a } = {}) => {
|
|
83
|
+
var o;
|
|
84
|
+
return ((o = await d(e, t, n, {
|
|
85
|
+
treeDict: r,
|
|
86
|
+
idAsValue: i,
|
|
87
|
+
labelAsValue: a
|
|
88
|
+
})) == null ? void 0 : o.label) || t || "";
|
|
89
|
+
}, p = Object.freeze([{
|
|
90
|
+
label: "是",
|
|
91
|
+
value: "1"
|
|
92
|
+
}, {
|
|
93
|
+
label: "否",
|
|
94
|
+
value: "0"
|
|
95
|
+
}]);
|
|
96
|
+
//#endregion
|
|
97
|
+
export { s as clearDictCache, p as confirmOptions, c as getDictData, d as getDictItem, f as getDictLabel };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { DictItem } from '../api';
|
|
2
|
+
export declare const useDictionary: (props: Record<string, any>) => {
|
|
3
|
+
dictItems: globalThis.Ref<{
|
|
4
|
+
id: string;
|
|
5
|
+
dictId: string;
|
|
6
|
+
label: string;
|
|
7
|
+
dictType: string;
|
|
8
|
+
description: string;
|
|
9
|
+
sortOrder: number;
|
|
10
|
+
createBy: string;
|
|
11
|
+
updateBy: string;
|
|
12
|
+
createTime: string;
|
|
13
|
+
updateTime: string;
|
|
14
|
+
remarks: null;
|
|
15
|
+
delFlag: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}[] | readonly {
|
|
18
|
+
id: string;
|
|
19
|
+
dictId: string;
|
|
20
|
+
label: string;
|
|
21
|
+
dictType: string;
|
|
22
|
+
description: string;
|
|
23
|
+
sortOrder: number;
|
|
24
|
+
createBy: string;
|
|
25
|
+
updateBy: string;
|
|
26
|
+
createTime: string;
|
|
27
|
+
updateTime: string;
|
|
28
|
+
remarks: null;
|
|
29
|
+
delFlag: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}[] | null, DictItem[] | readonly DictItem[] | {
|
|
32
|
+
id: string;
|
|
33
|
+
dictId: string;
|
|
34
|
+
label: string;
|
|
35
|
+
dictType: string;
|
|
36
|
+
description: string;
|
|
37
|
+
sortOrder: number;
|
|
38
|
+
createBy: string;
|
|
39
|
+
updateBy: string;
|
|
40
|
+
createTime: string;
|
|
41
|
+
updateTime: string;
|
|
42
|
+
remarks: null;
|
|
43
|
+
delFlag: string;
|
|
44
|
+
value: string;
|
|
45
|
+
}[] | readonly {
|
|
46
|
+
id: string;
|
|
47
|
+
dictId: string;
|
|
48
|
+
label: string;
|
|
49
|
+
dictType: string;
|
|
50
|
+
description: string;
|
|
51
|
+
sortOrder: number;
|
|
52
|
+
createBy: string;
|
|
53
|
+
updateBy: string;
|
|
54
|
+
createTime: string;
|
|
55
|
+
updateTime: string;
|
|
56
|
+
remarks: null;
|
|
57
|
+
delFlag: string;
|
|
58
|
+
value: string;
|
|
59
|
+
}[] | null>;
|
|
60
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { getDictData as e } from "../helper/dictionary.mjs";
|
|
2
|
+
import { ref as t, watchEffect as n } from "vue";
|
|
3
|
+
//#region src/hook/useDictionary.ts
|
|
4
|
+
var r = (r) => {
|
|
5
|
+
let i = t([]);
|
|
6
|
+
return n(async () => {
|
|
7
|
+
r.dictType ? i.value = await e(r.dictType, !0, {
|
|
8
|
+
treeDict: r.treeDict,
|
|
9
|
+
idAsValue: r.idAsValue,
|
|
10
|
+
labelAsValue: r.labelAsValue
|
|
11
|
+
}) : i.value = [];
|
|
12
|
+
}), { dictItems: i };
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { r as useDictionary };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { onBeforeMount as e, onBeforeUnmount as t } from "vue";
|
|
2
|
+
//#region src/hook/useVisibilityChange.ts
|
|
3
|
+
var n = ({ onPageHidden: n, onPageVisible: r } = {}) => {
|
|
4
|
+
let i = () => {
|
|
5
|
+
document.hidden ? n == null || n() : r == null || r();
|
|
6
|
+
};
|
|
7
|
+
e(() => {
|
|
8
|
+
document.addEventListener("visibilitychange", i);
|
|
9
|
+
}), t(() => {
|
|
10
|
+
document.removeEventListener("visibilitychange", i);
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { n as useVisibilityChange };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
title?: string | undefined;
|
|
3
|
+
url?: string | undefined;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly title?: string | undefined;
|
|
6
|
+
readonly url?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { t as e } from "../chunks/DazglPJZ.mjs";
|
|
2
|
+
import { createBlock as t, createElementVNode as n, mergeModels as r, mergeProps as i, openBlock as a, useModel as o, withCtx as s } from "vue";
|
|
3
|
+
//#region src/components/iframe-window/IframeWindow.vue
|
|
4
|
+
var c = ["src"], l = /* @__PURE__ */ Object.assign({ name: "IframeWindow" }, {
|
|
5
|
+
__name: "IframeWindow",
|
|
6
|
+
props: /* @__PURE__ */ r({
|
|
7
|
+
title: String,
|
|
8
|
+
url: String
|
|
9
|
+
}, {
|
|
10
|
+
modelValue: { type: Boolean },
|
|
11
|
+
modelModifiers: {}
|
|
12
|
+
}),
|
|
13
|
+
emits: ["update:modelValue"],
|
|
14
|
+
setup(r) {
|
|
15
|
+
let l = o(r, "modelValue");
|
|
16
|
+
return (o, u) => {
|
|
17
|
+
let d = e;
|
|
18
|
+
return a(), t(d, i(o.$attrs, {
|
|
19
|
+
modelValue: l.value,
|
|
20
|
+
"onUpdate:modelValue": u[0] || (u[0] = (e) => l.value = e),
|
|
21
|
+
"destroy-on-close": "",
|
|
22
|
+
class: "iframe-window",
|
|
23
|
+
height: "60vh",
|
|
24
|
+
title: r.title,
|
|
25
|
+
"show-fullscreen": ""
|
|
26
|
+
}), {
|
|
27
|
+
default: s(() => [n("iframe", {
|
|
28
|
+
class: "iframe-window-iframe",
|
|
29
|
+
src: r.url
|
|
30
|
+
}, null, 8, c)]),
|
|
31
|
+
_: 1
|
|
32
|
+
}, 16, ["modelValue", "title"]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { l as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.iframe-window.el-dialog .el-dialog__body{position:relative}.iframe-window .iframe-window-iframe{border:none;width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { default as AwesomeButton } from './awesome-button/index.js';
|
|
3
|
+
import { default as Confirmable } from './confirmable/index.js';
|
|
4
|
+
import { default as ConfirmButton } from './confirm-button/index.js';
|
|
5
|
+
import { default as ElementDialog } from './element-dialog/index.js';
|
|
6
|
+
import { default as EmptyView } from './empty-view/index.js';
|
|
7
|
+
import { default as FlexScrollArea } from './flex-scroll-area/index.js';
|
|
8
|
+
import { default as FormAdvice } from './form-advice/index.js';
|
|
9
|
+
import { default as FormButton } from './form-button/index.js';
|
|
10
|
+
import { default as FormCascader } from './form-cascader/index.js';
|
|
11
|
+
import { default as FormCell } from './form-cell/index.js';
|
|
12
|
+
import { default as FormCheckbox } from './form-checkbox/index.js';
|
|
13
|
+
import { default as FormCheckBoxGroup } from './form-check-box-group/index.js';
|
|
14
|
+
import { default as FormDatePicker } from './form-date-picker/index.js';
|
|
15
|
+
import { default as FormHolder } from './form-holder/index.js';
|
|
16
|
+
import { default as FormImage } from './form-image/index.js';
|
|
17
|
+
import { default as FormInput } from './form-input/index.js';
|
|
18
|
+
import { default as FormInputCronExpression } from './form-input-cron-expression/index.js';
|
|
19
|
+
import { default as FormInputEmail } from './form-input-email/index.js';
|
|
20
|
+
import { default as FormInputIdCard } from './form-input-id-card/index.js';
|
|
21
|
+
import { default as FormInputNumber } from './form-input-number/index.js';
|
|
22
|
+
import { default as FormInputPhoneNumber } from './form-input-phone-number/index.js';
|
|
23
|
+
import { default as FormInputTag } from './form-input-tag/index.js';
|
|
24
|
+
import { default as FormInputTime } from './form-input-time/index.js';
|
|
25
|
+
import { default as FormItemConfigProvider } from './form-item-config-provider/index.js';
|
|
26
|
+
import { default as FormItemGroup } from './form-item-group/index.js';
|
|
27
|
+
import { default as FormItemX } from './form-item-x/index.js';
|
|
28
|
+
import { default as FormRadioGroup } from './form-radio-group/index.js';
|
|
29
|
+
import { default as FormRate } from './form-rate/index.js';
|
|
30
|
+
import { default as FormRedTable } from './form-red-table/index.js';
|
|
31
|
+
import { default as FormRow } from './form-row/index.js';
|
|
32
|
+
import { default as FormSelect } from './form-select/index.js';
|
|
33
|
+
import { default as FormSlider } from './form-slider/index.js';
|
|
34
|
+
import { default as FormSwitch } from './form-switch/index.js';
|
|
35
|
+
import { default as FormText } from './form-text/index.js';
|
|
36
|
+
import { default as FormView } from './form-view/index.js';
|
|
37
|
+
import { default as IframeWindow } from './iframe-window/index.js';
|
|
38
|
+
import { default as PageableTable } from './pageable-table/index.js';
|
|
39
|
+
import { default as ResizeObserver } from './resize-observer/index.js';
|
|
40
|
+
import { default as TableColumn } from './table-column/index.js';
|
|
41
|
+
import { default as TableColumnDef } from './table-column-def/index.js';
|
|
42
|
+
import { default as TableView } from './table-view/index.js';
|
|
43
|
+
import { default as Toolbar } from './toolbar/index.js';
|
|
44
|
+
import { default as ToolbarButton } from './toolbar-button/index.js';
|
|
45
|
+
import { default as VueCron } from './vue-cron/index.js';
|
|
46
|
+
import { default as XInputTag } from './x-input-tag/index.js';
|
|
47
|
+
import { default as YearCalendar } from './year-calendar/index.js';
|
|
48
|
+
export { AwesomeButton, Confirmable, ConfirmButton, ElementDialog, EmptyView, FlexScrollArea, FormAdvice, FormButton, FormCascader, FormCell, FormCheckbox, FormCheckBoxGroup, FormDatePicker, FormHolder, FormImage, FormInput, FormInputCronExpression, FormInputEmail, FormInputIdCard, FormInputNumber, FormInputPhoneNumber, FormInputTag, FormInputTime, FormItemConfigProvider, FormItemGroup, FormItemX, FormRadioGroup, FormRate, FormRedTable, FormRow, FormSelect, FormSlider, FormSwitch, FormText, FormView, IframeWindow, PageableTable, ResizeObserver, TableColumn, TableColumnDef, TableView, Toolbar, ToolbarButton, VueCron, XInputTag, YearCalendar };
|
|
49
|
+
export declare const componentNames: string[];
|
|
50
|
+
export declare const noStylesComponents: string[];
|
|
51
|
+
export declare const install: (app: App) => void;
|
package/index.mjs
CHANGED
|
@@ -1,38 +1,52 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./
|
|
4
|
-
import r from "./
|
|
5
|
-
import i from "./
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import l from "./
|
|
11
|
-
import
|
|
12
|
-
import { t as d } from "./chunks/
|
|
13
|
-
import { t as f } from "./chunks/
|
|
14
|
-
import { t as p } from "./chunks/
|
|
15
|
-
import
|
|
16
|
-
import { t as h } from "./chunks/
|
|
17
|
-
import { t as g } from "./chunks/
|
|
18
|
-
import _ from "./
|
|
19
|
-
import v from "./
|
|
20
|
-
import y from "./
|
|
21
|
-
import { t as b } from "./chunks/
|
|
22
|
-
import { t as x } from "./chunks/
|
|
23
|
-
import { t as S } from "./chunks/
|
|
24
|
-
import { t as C } from "./chunks/
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import D from "./
|
|
29
|
-
import O from "./
|
|
30
|
-
import k from "./
|
|
31
|
-
import A from "./
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
import e from "./awesome-button/index.mjs";
|
|
2
|
+
import t from "./confirmable/index.mjs";
|
|
3
|
+
import n from "./confirm-button/index.mjs";
|
|
4
|
+
import { t as r } from "./chunks/DazglPJZ.mjs";
|
|
5
|
+
import i from "./empty-view/index.mjs";
|
|
6
|
+
import a from "./flex-scroll-area/index.mjs";
|
|
7
|
+
import o from "./form-advice/index.mjs";
|
|
8
|
+
import s from "./form-button/index.mjs";
|
|
9
|
+
import { a as c } from "./chunks/Br4i8stg.mjs";
|
|
10
|
+
import { t as l } from "./chunks/Cby3mvvZ.mjs";
|
|
11
|
+
import u from "./form-cell/index.mjs";
|
|
12
|
+
import { t as d } from "./chunks/JhyiXnbd.mjs";
|
|
13
|
+
import { t as f } from "./chunks/DtAYXPvz.mjs";
|
|
14
|
+
import { t as p } from "./chunks/q1SlJP1y.mjs";
|
|
15
|
+
import m from "./form-red-table/index.mjs";
|
|
16
|
+
import { t as h } from "./chunks/BgDYHgyH.mjs";
|
|
17
|
+
import { t as g } from "./chunks/Ci1XxmdE.mjs";
|
|
18
|
+
import { t as _ } from "./chunks/C4bM8miy.mjs";
|
|
19
|
+
import { t as v } from "./chunks/D1G2MMMx.mjs";
|
|
20
|
+
import { t as y } from "./chunks/Dt6gY213.mjs";
|
|
21
|
+
import { t as b } from "./chunks/Cc3EJjbV.mjs";
|
|
22
|
+
import { t as x } from "./chunks/Cgl-hCE5.mjs";
|
|
23
|
+
import { t as S } from "./chunks/bnRb5PUB.mjs";
|
|
24
|
+
import { t as C } from "./chunks/D1EOkWJ7.mjs";
|
|
25
|
+
import w from "./form-input-tag/index.mjs";
|
|
26
|
+
import T from "./form-input-time/index.mjs";
|
|
27
|
+
import E from "./form-item-config-provider/index.mjs";
|
|
28
|
+
import { t as D } from "./chunks/pxFLMMUm.mjs";
|
|
29
|
+
import { t as O } from "./chunks/DO8dVGef.mjs";
|
|
30
|
+
import { t as k } from "./chunks/BmZieBZW.mjs";
|
|
31
|
+
import { t as A } from "./chunks/C9J3j0PX.mjs";
|
|
32
|
+
import { t as j } from "./chunks/S64sNmuR.mjs";
|
|
33
|
+
import { t as M } from "./chunks/C3a15Ful.mjs";
|
|
34
|
+
import { t as N } from "./chunks/Cy-4nmyC.mjs";
|
|
35
|
+
import { t as P } from "./chunks/CugRu2Ka.mjs";
|
|
36
|
+
import F from "./form-view/index.mjs";
|
|
37
|
+
import I from "./iframe-window/index.mjs";
|
|
38
|
+
import L from "./resize-observer/index.mjs";
|
|
39
|
+
import { t as R } from "./chunks/CKErj8Ax.mjs";
|
|
40
|
+
import { t as z } from "./chunks/BV_P9a8o.mjs";
|
|
41
|
+
import B from "./table-column-def/index.mjs";
|
|
42
|
+
import V from "./table-view/index.mjs";
|
|
43
|
+
import { t as H } from "./chunks/dM-icPM8.mjs";
|
|
44
|
+
import { t as U } from "./chunks/B99alfW4.mjs";
|
|
45
|
+
import W from "./x-input-tag/index.mjs";
|
|
46
|
+
import { t as G } from "./chunks/4ZuVpQf6.mjs";
|
|
47
|
+
//#region src/components/index.ts
|
|
48
|
+
var K = /* @__PURE__ */ "AwesomeButton.Confirmable.ConfirmButton.ElementDialog.EmptyView.FlexScrollArea.FormAdvice.FormButton.FormCascader.FormCell.FormCheckbox.FormCheckBoxGroup.FormDatePicker.FormHolder.FormImage.FormInput.FormInputCronExpression.FormInputEmail.FormInputIdCard.FormInputNumber.FormInputPhoneNumber.FormInputTag.FormInputTime.FormItemConfigProvider.FormItemGroup.FormItemX.FormRadioGroup.FormRate.FormRedTable.FormRow.FormSelect.FormSlider.FormSwitch.FormText.FormView.IframeWindow.PageableTable.ResizeObserver.TableColumn.TableColumnDef.TableView.Toolbar.ToolbarButton.VueCron.XInputTag.YearCalendar".split("."), q = /* @__PURE__ */ "AwesomeButton.Confirmable.ConfirmButton.FlexScrollArea.FormAdvice.FormButton.FormCascader.FormCell.FormCheckbox.FormCheckBoxGroup.FormDatePicker.FormImage.FormInputEmail.FormInputIdCard.FormInputNumber.FormInputPhoneNumber.FormInputTag.FormInputTime.FormItemConfigProvider.FormRadioGroup.FormRate.FormSelect.FormSlider.FormSwitch.FormText.FormView.TableColumnDef.TableView.ToolbarButton".split("."), J = (K) => {
|
|
49
|
+
K.component(e.name, e), K.component(t.name, t), K.component(n.name, n), K.component(r.name, r), K.component(i.name, i), K.component(a.name, a), K.component(o.name, o), K.component(s.name, s), K.component(l.name, l), K.component(u.name, u), K.component(d.name, d), K.component(f.name, f), K.component(p.name, p), K.component(h.name, h), K.component(g.name, g), K.component(_.name, _), K.component(y.name, y), K.component(b.name, b), K.component(x.name, x), K.component(S.name, S), K.component(C.name, C), K.component(w.name, w), K.component(T.name, T), K.component(E.name, E), K.component(D.name, D), K.component(c.name, c), K.component(O.name, O), K.component(k.name, k), K.component(m.name, m), K.component(A.name, A), K.component(j.name, j), K.component(M.name, M), K.component(N.name, N), K.component(P.name, P), K.component(F.name, F), K.component(I.name, I), K.component(R.name, R), K.component(L.name, L), K.component(z.name, z), K.component(B.name, B), K.component(V.name, V), K.component(U.name, U), K.component(H.name, H), K.component(v.name, v), K.component(W.name, W), K.component(G.name, G);
|
|
50
|
+
};
|
|
37
51
|
//#endregion
|
|
38
|
-
export { e as
|
|
52
|
+
export { e as AwesomeButton, n as ConfirmButton, t as Confirmable, r as ElementDialog, i as EmptyView, a as FlexScrollArea, o as FormAdvice, s as FormButton, l as FormCascader, u as FormCell, f as FormCheckBoxGroup, d as FormCheckbox, p as FormDatePicker, h as FormHolder, g as FormImage, _ as FormInput, y as FormInputCronExpression, b as FormInputEmail, x as FormInputIdCard, S as FormInputNumber, C as FormInputPhoneNumber, w as FormInputTag, T as FormInputTime, E as FormItemConfigProvider, D as FormItemGroup, c as FormItemX, O as FormRadioGroup, k as FormRate, m as FormRedTable, A as FormRow, j as FormSelect, M as FormSlider, N as FormSwitch, P as FormText, F as FormView, I as IframeWindow, R as PageableTable, L as ResizeObserver, z as TableColumn, B as TableColumnDef, V as TableView, U as Toolbar, H as ToolbarButton, v as VueCron, W as XInputTag, G as YearCalendar, K as componentNames, J as install, q as noStylesComponents };
|