@unizhen/ui 0.1.23 → 0.1.24
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/lib/components/table/factory.d.ts +5 -13
- package/lib/ui.js +25 -20
- package/package.json +1 -1
|
@@ -114,7 +114,6 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
114
114
|
params: {
|
|
115
115
|
placeholder: string | (() => string);
|
|
116
116
|
filterable: boolean;
|
|
117
|
-
options: any;
|
|
118
117
|
type: any;
|
|
119
118
|
_async?: boolean;
|
|
120
119
|
_fetch?: boolean;
|
|
@@ -123,7 +122,6 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
123
122
|
} | {
|
|
124
123
|
placeholder: string | (() => string);
|
|
125
124
|
filterable: boolean;
|
|
126
|
-
options: any;
|
|
127
125
|
type: any;
|
|
128
126
|
_async?: boolean;
|
|
129
127
|
_fetch?: boolean;
|
|
@@ -137,12 +135,12 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
137
135
|
} | {
|
|
138
136
|
placeholder: string | (() => string);
|
|
139
137
|
filterable: boolean;
|
|
140
|
-
options: any;
|
|
141
138
|
type: any;
|
|
142
139
|
_async?: boolean;
|
|
143
140
|
_fetch?: boolean;
|
|
144
141
|
_asyncFn?: () => Promise<any[]>;
|
|
145
142
|
clearable: boolean;
|
|
143
|
+
options: (() => Promise<any[]>) | any[];
|
|
146
144
|
minlength?: number | null;
|
|
147
145
|
maxlength?: number | null;
|
|
148
146
|
rows?: number | null;
|
|
@@ -151,7 +149,6 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
151
149
|
} | {
|
|
152
150
|
placeholder: string | (() => string);
|
|
153
151
|
filterable: boolean;
|
|
154
|
-
options: any;
|
|
155
152
|
type: any;
|
|
156
153
|
_async?: boolean;
|
|
157
154
|
_fetch?: boolean;
|
|
@@ -169,7 +166,6 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
169
166
|
} | {
|
|
170
167
|
placeholder: string | (() => string);
|
|
171
168
|
filterable: boolean;
|
|
172
|
-
options: any;
|
|
173
169
|
type: any;
|
|
174
170
|
_async?: boolean;
|
|
175
171
|
_fetch?: boolean;
|
|
@@ -187,13 +183,13 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
187
183
|
} | {
|
|
188
184
|
placeholder: string | (() => string);
|
|
189
185
|
filterable: boolean;
|
|
190
|
-
options: any;
|
|
191
186
|
type: any;
|
|
192
187
|
_async?: boolean;
|
|
193
188
|
_fetch?: boolean;
|
|
194
189
|
_asyncFn?: () => Promise<any[]>;
|
|
195
190
|
immediately: boolean;
|
|
196
191
|
clearable: boolean;
|
|
192
|
+
options: (() => Promise<any[]>) | any[];
|
|
197
193
|
multiple?: boolean;
|
|
198
194
|
tag?: boolean;
|
|
199
195
|
title?: string;
|
|
@@ -207,18 +203,17 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
207
203
|
} | {
|
|
208
204
|
placeholder: string | (() => string);
|
|
209
205
|
filterable: boolean;
|
|
210
|
-
options: any;
|
|
211
206
|
type: any;
|
|
212
207
|
_async?: boolean;
|
|
213
208
|
_fetch?: boolean;
|
|
214
209
|
_asyncFn?: () => Promise<any[]>;
|
|
215
210
|
immediately: boolean;
|
|
216
211
|
clearable: boolean;
|
|
212
|
+
options: (() => Promise<any[]>) | any[];
|
|
217
213
|
multiple?: boolean;
|
|
218
214
|
} | {
|
|
219
215
|
placeholder: string | (() => string);
|
|
220
216
|
filterable: boolean;
|
|
221
|
-
options: any;
|
|
222
217
|
type: any;
|
|
223
218
|
_async?: boolean;
|
|
224
219
|
_fetch?: boolean;
|
|
@@ -227,16 +222,15 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
227
222
|
} | {
|
|
228
223
|
placeholder: string | (() => string);
|
|
229
224
|
filterable: boolean;
|
|
230
|
-
options: any;
|
|
231
225
|
type: any;
|
|
232
226
|
_async?: boolean;
|
|
233
227
|
_fetch?: boolean;
|
|
234
228
|
_asyncFn?: () => Promise<any[]>;
|
|
235
229
|
clearable: boolean;
|
|
230
|
+
options: (() => Promise<Array<ObjectKey>>) | Array<ObjectKey>;
|
|
236
231
|
} | {
|
|
237
232
|
placeholder: string | (() => string);
|
|
238
233
|
filterable: boolean;
|
|
239
|
-
options: any;
|
|
240
234
|
type: any;
|
|
241
235
|
_async?: boolean;
|
|
242
236
|
_fetch?: boolean;
|
|
@@ -246,7 +240,6 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
246
240
|
} | {
|
|
247
241
|
placeholder: string | (() => string);
|
|
248
242
|
filterable: boolean;
|
|
249
|
-
options: any;
|
|
250
243
|
type: any;
|
|
251
244
|
_async?: boolean;
|
|
252
245
|
_fetch?: boolean;
|
|
@@ -255,7 +248,6 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
255
248
|
} | {
|
|
256
249
|
placeholder: string | (() => string);
|
|
257
250
|
filterable: boolean;
|
|
258
|
-
options: any;
|
|
259
251
|
type: any;
|
|
260
252
|
_async?: boolean;
|
|
261
253
|
_fetch?: boolean;
|
|
@@ -264,7 +256,7 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
264
256
|
parentKey: string;
|
|
265
257
|
};
|
|
266
258
|
form: {
|
|
267
|
-
show:
|
|
259
|
+
show: boolean;
|
|
268
260
|
};
|
|
269
261
|
search: ISearch;
|
|
270
262
|
}[];
|
package/lib/ui.js
CHANGED
|
@@ -4998,7 +4998,7 @@ var pp = () => new Promise((e) => {
|
|
|
4998
4998
|
}), r = Ze(r).join("-")) : r = t[n[1]], e.input === "select" && e.params.valueKey && (i = t[e.params.valueKey]), {
|
|
4999
4999
|
label: r,
|
|
5000
5000
|
value: i,
|
|
5001
|
-
disabled: t?.is_disabled === "1",
|
|
5001
|
+
disabled: e.params._search ? !1 : t?.is_disabled === "1",
|
|
5002
5002
|
params: t
|
|
5003
5003
|
};
|
|
5004
5004
|
});
|
|
@@ -5438,24 +5438,29 @@ async function Dp(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5438
5438
|
return Function("sourceData", n)(t);
|
|
5439
5439
|
} else return hp(e, t, n);
|
|
5440
5440
|
};
|
|
5441
|
-
e.search.multiple && (e.params.multiple = !0, e.search.defaultValue && (e.search.defaultValue = fp(e.search.defaultValue))),
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5441
|
+
if (e.search.multiple && (e.params.multiple = !0, e.search.defaultValue && (e.search.defaultValue = fp(e.search.defaultValue))), e.search.show) {
|
|
5442
|
+
let t = H(e);
|
|
5443
|
+
t.params._async && (t.params._search = !0, t.params._asyncFn = async () => {
|
|
5444
|
+
let { sourceData: e, n } = await vp(t.source);
|
|
5445
|
+
if (e && Array.isArray(e)) if (t.sourceFn) {
|
|
5446
|
+
let n = t.sourceFn;
|
|
5447
|
+
return Function("sourceData", n)(e);
|
|
5448
|
+
} else return hp(t, e, n);
|
|
5449
|
+
}), o.push({
|
|
5450
|
+
input: t.input,
|
|
5451
|
+
label: t.label,
|
|
5452
|
+
key: t.key,
|
|
5453
|
+
defaultValue: t.search.defaultValue,
|
|
5454
|
+
params: {
|
|
5455
|
+
...t.params,
|
|
5456
|
+
placeholder: t.label,
|
|
5457
|
+
filterable: !0,
|
|
5458
|
+
type: t.params.type
|
|
5459
|
+
},
|
|
5460
|
+
form: { show: t.search.show },
|
|
5461
|
+
search: t.search
|
|
5462
|
+
});
|
|
5463
|
+
}
|
|
5459
5464
|
}
|
|
5460
5465
|
e.input === "subTable" && e.params.link && !e.params.quest && s.push(e.params.link);
|
|
5461
5466
|
}
|
|
@@ -7921,7 +7926,7 @@ function Qm(e, t, n) {
|
|
|
7921
7926
|
}
|
|
7922
7927
|
//#endregion
|
|
7923
7928
|
//#region package.json
|
|
7924
|
-
var $m = "0.1.
|
|
7929
|
+
var $m = "0.1.24", eh;
|
|
7925
7930
|
async function th() {
|
|
7926
7931
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7927
7932
|
method: "HEAD",
|