@unizhen/ui 0.1.136 → 0.1.138
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/bom/index.vue.d.ts +9 -2
- package/lib/components/form/draggable.vue.d.ts +12 -0
- package/lib/components/form/index.vue.d.ts +12 -0
- package/lib/components/form/interface.d.ts +3 -0
- package/lib/components/table/components/expand.vue.d.ts +1 -0
- package/lib/components/table/factory.d.ts +3 -0
- package/lib/components/table/index.vue.d.ts +1 -0
- package/lib/ui.js +98 -72
- package/package.json +1 -1
|
@@ -32,7 +32,6 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
32
32
|
default: () => never[];
|
|
33
33
|
};
|
|
34
34
|
item: {
|
|
35
|
-
required: true;
|
|
36
35
|
type: PropType<IUzFormItemSubTable>;
|
|
37
36
|
default: () => {};
|
|
38
37
|
};
|
|
@@ -44,6 +43,10 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
44
43
|
type: PropType<number>;
|
|
45
44
|
default: number;
|
|
46
45
|
};
|
|
46
|
+
expand: {
|
|
47
|
+
type: PropType<boolean>;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
47
50
|
}>, {
|
|
48
51
|
t: ComposerTranslation<{
|
|
49
52
|
[x: string]: LocaleMessage<VueMessageType>;
|
|
@@ -114,7 +117,6 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
114
117
|
default: () => never[];
|
|
115
118
|
};
|
|
116
119
|
item: {
|
|
117
|
-
required: true;
|
|
118
120
|
type: PropType<IUzFormItemSubTable>;
|
|
119
121
|
default: () => {};
|
|
120
122
|
};
|
|
@@ -126,10 +128,15 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
126
128
|
type: PropType<number>;
|
|
127
129
|
default: number;
|
|
128
130
|
};
|
|
131
|
+
expand: {
|
|
132
|
+
type: PropType<boolean>;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
129
135
|
}>> & Readonly<{
|
|
130
136
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
131
137
|
}>, {
|
|
132
138
|
item: IUzFormItemSubTable;
|
|
139
|
+
expand: boolean;
|
|
133
140
|
status: number;
|
|
134
141
|
value: BomRow[] | null;
|
|
135
142
|
height: string | number | undefined;
|
|
@@ -1353,6 +1353,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
1353
1353
|
options?: string | undefined;
|
|
1354
1354
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
1355
1355
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
1356
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
1356
1357
|
deleteFn?: string | undefined;
|
|
1357
1358
|
};
|
|
1358
1359
|
label: string | (() => string);
|
|
@@ -1536,6 +1537,8 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
1536
1537
|
placeholder: string;
|
|
1537
1538
|
clearable: boolean;
|
|
1538
1539
|
expandable: boolean;
|
|
1540
|
+
merge?: string | ((pageData: any) => any) | undefined;
|
|
1541
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
1539
1542
|
};
|
|
1540
1543
|
label: string | (() => string);
|
|
1541
1544
|
key: string;
|
|
@@ -2953,6 +2956,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
2953
2956
|
options?: string | undefined;
|
|
2954
2957
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
2955
2958
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
2959
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
2956
2960
|
deleteFn?: string | undefined;
|
|
2957
2961
|
};
|
|
2958
2962
|
label: string | (() => string);
|
|
@@ -3136,6 +3140,8 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
3136
3140
|
placeholder: string;
|
|
3137
3141
|
clearable: boolean;
|
|
3138
3142
|
expandable: boolean;
|
|
3143
|
+
merge?: string | ((pageData: any) => any) | undefined;
|
|
3144
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
3139
3145
|
};
|
|
3140
3146
|
label: string | (() => string);
|
|
3141
3147
|
key: string;
|
|
@@ -4477,6 +4483,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
4477
4483
|
options?: string | undefined;
|
|
4478
4484
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
4479
4485
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
4486
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
4480
4487
|
deleteFn?: string | undefined;
|
|
4481
4488
|
};
|
|
4482
4489
|
label: string | (() => string);
|
|
@@ -4660,6 +4667,8 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
4660
4667
|
placeholder: string;
|
|
4661
4668
|
clearable: boolean;
|
|
4662
4669
|
expandable: boolean;
|
|
4670
|
+
merge?: string | ((pageData: any) => any) | undefined;
|
|
4671
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
4663
4672
|
};
|
|
4664
4673
|
label: string | (() => string);
|
|
4665
4674
|
key: string;
|
|
@@ -6077,6 +6086,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
6077
6086
|
options?: string | undefined;
|
|
6078
6087
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
6079
6088
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
6089
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
6080
6090
|
deleteFn?: string | undefined;
|
|
6081
6091
|
};
|
|
6082
6092
|
label: string | (() => string);
|
|
@@ -6260,6 +6270,8 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
6260
6270
|
placeholder: string;
|
|
6261
6271
|
clearable: boolean;
|
|
6262
6272
|
expandable: boolean;
|
|
6273
|
+
merge?: string | ((pageData: any) => any) | undefined;
|
|
6274
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
6263
6275
|
};
|
|
6264
6276
|
label: string | (() => string);
|
|
6265
6277
|
key: string;
|
|
@@ -1355,6 +1355,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
1355
1355
|
options?: string | undefined;
|
|
1356
1356
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
1357
1357
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
1358
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
1358
1359
|
deleteFn?: string | undefined;
|
|
1359
1360
|
};
|
|
1360
1361
|
label: string | (() => string);
|
|
@@ -1538,6 +1539,8 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
1538
1539
|
placeholder: string;
|
|
1539
1540
|
clearable: boolean;
|
|
1540
1541
|
expandable: boolean;
|
|
1542
|
+
merge?: string | ((pageData: any) => any) | undefined;
|
|
1543
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
1541
1544
|
};
|
|
1542
1545
|
label: string | (() => string);
|
|
1543
1546
|
key: string;
|
|
@@ -2955,6 +2958,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
2955
2958
|
options?: string | undefined;
|
|
2956
2959
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
2957
2960
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
2961
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
2958
2962
|
deleteFn?: string | undefined;
|
|
2959
2963
|
};
|
|
2960
2964
|
label: string | (() => string);
|
|
@@ -3138,6 +3142,8 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
3138
3142
|
placeholder: string;
|
|
3139
3143
|
clearable: boolean;
|
|
3140
3144
|
expandable: boolean;
|
|
3145
|
+
merge?: string | ((pageData: any) => any) | undefined;
|
|
3146
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
3141
3147
|
};
|
|
3142
3148
|
label: string | (() => string);
|
|
3143
3149
|
key: string;
|
|
@@ -4479,6 +4485,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
4479
4485
|
options?: string | undefined;
|
|
4480
4486
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
4481
4487
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
4488
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
4482
4489
|
deleteFn?: string | undefined;
|
|
4483
4490
|
};
|
|
4484
4491
|
label: string | (() => string);
|
|
@@ -4662,6 +4669,8 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
4662
4669
|
placeholder: string;
|
|
4663
4670
|
clearable: boolean;
|
|
4664
4671
|
expandable: boolean;
|
|
4672
|
+
merge?: string | ((pageData: any) => any) | undefined;
|
|
4673
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
4665
4674
|
};
|
|
4666
4675
|
label: string | (() => string);
|
|
4667
4676
|
key: string;
|
|
@@ -6079,6 +6088,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
6079
6088
|
options?: string | undefined;
|
|
6080
6089
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
6081
6090
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
6091
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
6082
6092
|
deleteFn?: string | undefined;
|
|
6083
6093
|
};
|
|
6084
6094
|
label: string | (() => string);
|
|
@@ -6262,6 +6272,8 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
6262
6272
|
placeholder: string;
|
|
6263
6273
|
clearable: boolean;
|
|
6264
6274
|
expandable: boolean;
|
|
6275
|
+
merge?: string | ((pageData: any) => any) | undefined;
|
|
6276
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
6265
6277
|
};
|
|
6266
6278
|
label: string | (() => string);
|
|
6267
6279
|
key: string;
|
|
@@ -312,6 +312,8 @@ export interface IUzFormItemBom extends IUzFormItemBase {
|
|
|
312
312
|
placeholder: string;
|
|
313
313
|
clearable: boolean;
|
|
314
314
|
expandable: boolean;
|
|
315
|
+
merge?: string | ((pageData: any) => any);
|
|
316
|
+
expandableFn?: string | ((rowData: any) => boolean);
|
|
315
317
|
};
|
|
316
318
|
}
|
|
317
319
|
export interface IUzFormItemSubTable extends IUzFormItemBase {
|
|
@@ -339,6 +341,7 @@ export interface IUzFormItemSubTable extends IUzFormItemBase {
|
|
|
339
341
|
options?: string;
|
|
340
342
|
summary?: string | ((pageData: any) => any);
|
|
341
343
|
merge?: string | ((pageData: any) => any);
|
|
344
|
+
expandableFn?: string | ((rowData: any) => boolean);
|
|
342
345
|
deleteFn?: string;
|
|
343
346
|
};
|
|
344
347
|
}
|
|
@@ -42,6 +42,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
42
42
|
columns: Ref<any[], any[]>;
|
|
43
43
|
columnsData: Ref<never[], never[]>;
|
|
44
44
|
tableScrollX: Ref<number, number>;
|
|
45
|
+
tableType: Ref<number, number>;
|
|
45
46
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
46
47
|
data: {
|
|
47
48
|
required: true;
|
|
@@ -274,6 +274,8 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
274
274
|
_asyncFn?: () => Promise<any[]>;
|
|
275
275
|
clearable: boolean;
|
|
276
276
|
expandable: boolean;
|
|
277
|
+
merge?: string | ((pageData: any) => any);
|
|
278
|
+
expandableFn?: string | ((rowData: any) => boolean);
|
|
277
279
|
};
|
|
278
280
|
form: {
|
|
279
281
|
show: boolean;
|
|
@@ -285,6 +287,7 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
285
287
|
key: string;
|
|
286
288
|
link: string;
|
|
287
289
|
merge: string;
|
|
290
|
+
expandableFn: string;
|
|
288
291
|
};
|
|
289
292
|
tableWidth: number;
|
|
290
293
|
}>;
|
|
@@ -2998,6 +2998,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
2998
2998
|
columns: Ref<any[], any[]>;
|
|
2999
2999
|
columnsData: Ref<never[], never[]>;
|
|
3000
3000
|
tableScrollX: Ref<number, number>;
|
|
3001
|
+
tableType: Ref<number, number>;
|
|
3001
3002
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
3002
3003
|
data: {
|
|
3003
3004
|
required: true;
|
package/lib/ui.js
CHANGED
|
@@ -2899,7 +2899,7 @@ async function _i(e) {
|
|
|
2899
2899
|
}
|
|
2900
2900
|
var vi = (e) => e.map((e) => {
|
|
2901
2901
|
let t = {};
|
|
2902
|
-
return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "bom" && (t.x = +!!e.params.expandable), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.x = +!!e.params.expandable, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.deleteFn && (t.f = e.params.deleteFn)), {
|
|
2902
|
+
return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "bom" && (t.x = +!!e.params.expandable, e.params.merge && (t.m = e.params.merge), e.params.expandableFn && (t.e = e.params.expandableFn)), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.x = +!!e.params.expandable, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.expandableFn && (t.e = e.params.expandableFn), e.params.deleteFn && (t.f = e.params.deleteFn)), {
|
|
2903
2903
|
i: e.input,
|
|
2904
2904
|
l: e.label ? encodeURIComponent(e.label) : "",
|
|
2905
2905
|
k: e.key.replace(/\s*/g, ""),
|
|
@@ -2974,7 +2974,7 @@ var vi = (e) => e.map((e) => {
|
|
|
2974
2974
|
};
|
|
2975
2975
|
}), yi = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
2976
2976
|
let t = {};
|
|
2977
|
-
return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "bom" && (t.expandable = !!e.p.x), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), t.expandable = !!e.p.x, e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.f && (t.deleteFn = e.p.f)), {
|
|
2977
|
+
return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "bom" && (t.expandable = !!e.p.x, e.p.m && (t.merge = e.p.m), e.p.e && (t.expandableFn = e.p.e)), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), t.expandable = !!e.p.x, e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.e && (t.expandableFn = e.p.e), e.p.f && (t.deleteFn = e.p.f)), {
|
|
2978
2978
|
input: e.i,
|
|
2979
2979
|
label: e.l ? decodeURIComponent(e.l) : "",
|
|
2980
2980
|
key: e.k,
|
|
@@ -3245,7 +3245,8 @@ async function Ti(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
3245
3245
|
let s = 0, c = [], l = [], u = {
|
|
3246
3246
|
key: "",
|
|
3247
3247
|
link: "",
|
|
3248
|
-
merge: ""
|
|
3248
|
+
merge: "",
|
|
3249
|
+
expandableFn: ""
|
|
3249
3250
|
}, d = [], p = G(e), m = [], h = [];
|
|
3250
3251
|
for (let e of p) e.input === "group" ? (m.push(...e.params.children), h.push({
|
|
3251
3252
|
title: e.label,
|
|
@@ -3379,12 +3380,14 @@ async function Ti(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
3379
3380
|
}
|
|
3380
3381
|
s.input === "bom" && s.params.expandable && (u = {
|
|
3381
3382
|
key: s.key,
|
|
3382
|
-
link: "",
|
|
3383
|
-
merge:
|
|
3383
|
+
link: "bom",
|
|
3384
|
+
merge: s.params.merge,
|
|
3385
|
+
expandableFn: s.params.expandableFn
|
|
3384
3386
|
}), s.input === "subTable" && s.params.link && !s.params.quest && (l.push(s.params.link), s.params.expandable && (u = {
|
|
3385
3387
|
key: s.key,
|
|
3386
3388
|
link: s.params.link,
|
|
3387
|
-
merge: s.params.merge
|
|
3389
|
+
merge: s.params.merge,
|
|
3390
|
+
expandableFn: s.params.expandableFn
|
|
3388
3391
|
}));
|
|
3389
3392
|
}
|
|
3390
3393
|
let g = [];
|
|
@@ -3434,7 +3437,6 @@ var Ei = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3434
3437
|
default: () => []
|
|
3435
3438
|
},
|
|
3436
3439
|
item: {
|
|
3437
|
-
required: !0,
|
|
3438
3440
|
type: Object,
|
|
3439
3441
|
default: () => ({})
|
|
3440
3442
|
},
|
|
@@ -3445,6 +3447,10 @@ var Ei = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3445
3447
|
status: {
|
|
3446
3448
|
type: Number,
|
|
3447
3449
|
default: 1
|
|
3450
|
+
},
|
|
3451
|
+
expand: {
|
|
3452
|
+
type: Boolean,
|
|
3453
|
+
default: !1
|
|
3448
3454
|
}
|
|
3449
3455
|
},
|
|
3450
3456
|
emits: ["update:value"],
|
|
@@ -3720,50 +3726,46 @@ var Ei = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3720
3726
|
key: 0,
|
|
3721
3727
|
class: "uz-table-asterisk"
|
|
3722
3728
|
};
|
|
3723
|
-
function Ni(
|
|
3724
|
-
let
|
|
3725
|
-
return x(), a("div", ki, [o("div", Ai, [
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3729
|
+
function Ni(t, n, s, u, d, f) {
|
|
3730
|
+
let p = D("NDataTable"), m = D("NForm");
|
|
3731
|
+
return x(), a("div", ki, [o("div", Ai, [t.expand ? i("", !0) : (x(), a(e, { key: 0 }, [o("div", ji, [c(A(t.item.label) + " ", 1), t.item.form?.rule.required ? (x(), a("span", Mi, " \xA0* ")) : i("", !0)]), n[0] ||= o("div", { class: "uz-br" }, null, -1)], 64)), l(m, {
|
|
3732
|
+
ref: "formRef",
|
|
3733
|
+
model: { child: t.innerData }
|
|
3734
|
+
}, {
|
|
3735
|
+
default: P(() => [(x(), r(p, {
|
|
3736
|
+
key: t.tableVersion,
|
|
3737
|
+
ref: "tableRef",
|
|
3738
|
+
columns: t.displayedTableCols,
|
|
3739
|
+
data: t.innerData,
|
|
3740
|
+
"row-props": t.getRowProps,
|
|
3741
|
+
"row-key": t.getRowKey,
|
|
3742
|
+
"children-key": "children",
|
|
3743
|
+
indent: 0,
|
|
3744
|
+
"expanded-row-keys": t.innerExpandedRowKeys,
|
|
3745
|
+
"min-height": t.height,
|
|
3746
|
+
"max-height": t.height,
|
|
3747
|
+
"scroll-x": t.displayedScrollX,
|
|
3748
|
+
pagination: !1,
|
|
3749
|
+
size: "small",
|
|
3750
|
+
"onUpdate:expandedRowKeys": t.handleExpandedRowKeysChange,
|
|
3751
|
+
"scrollbar-props": { trigger: "none" },
|
|
3752
|
+
remote: ""
|
|
3731
3753
|
}, {
|
|
3732
|
-
|
|
3733
|
-
key: e.tableVersion,
|
|
3734
|
-
ref: "tableRef",
|
|
3735
|
-
columns: e.displayedTableCols,
|
|
3736
|
-
data: e.innerData,
|
|
3737
|
-
"row-props": e.getRowProps,
|
|
3738
|
-
"row-key": e.getRowKey,
|
|
3739
|
-
"children-key": "children",
|
|
3740
|
-
indent: 0,
|
|
3741
|
-
"expanded-row-keys": e.innerExpandedRowKeys,
|
|
3742
|
-
"min-height": e.height,
|
|
3743
|
-
"max-height": e.height,
|
|
3744
|
-
"scroll-x": e.displayedScrollX,
|
|
3745
|
-
pagination: !1,
|
|
3746
|
-
size: "small",
|
|
3747
|
-
"onUpdate:expandedRowKeys": e.handleExpandedRowKeysChange,
|
|
3748
|
-
"scrollbar-props": { trigger: "none" },
|
|
3749
|
-
remote: ""
|
|
3750
|
-
}, {
|
|
3751
|
-
empty: P(() => [E(e.$slots, "empty", {}, () => [c(A(e.t("BOM.empty")), 1)])]),
|
|
3752
|
-
_: 3
|
|
3753
|
-
}, 8, [
|
|
3754
|
-
"columns",
|
|
3755
|
-
"data",
|
|
3756
|
-
"row-props",
|
|
3757
|
-
"row-key",
|
|
3758
|
-
"expanded-row-keys",
|
|
3759
|
-
"min-height",
|
|
3760
|
-
"max-height",
|
|
3761
|
-
"scroll-x",
|
|
3762
|
-
"onUpdate:expandedRowKeys"
|
|
3763
|
-
]))]),
|
|
3754
|
+
empty: P(() => [E(t.$slots, "empty", {}, () => [c(A(t.t("BOM.empty")), 1)])]),
|
|
3764
3755
|
_: 3
|
|
3765
|
-
}, 8, [
|
|
3766
|
-
|
|
3756
|
+
}, 8, [
|
|
3757
|
+
"columns",
|
|
3758
|
+
"data",
|
|
3759
|
+
"row-props",
|
|
3760
|
+
"row-key",
|
|
3761
|
+
"expanded-row-keys",
|
|
3762
|
+
"min-height",
|
|
3763
|
+
"max-height",
|
|
3764
|
+
"scroll-x",
|
|
3765
|
+
"onUpdate:expandedRowKeys"
|
|
3766
|
+
]))]),
|
|
3767
|
+
_: 3
|
|
3768
|
+
}, 8, ["model"])])]);
|
|
3767
3769
|
}
|
|
3768
3770
|
var Pi = /*#__PURE__*/ Q(Oi, [["render", Ni]]), Fi = 46, Ii = 8, Li = 2 * Math.PI * Fi, Ri = Ii, zi = 19, Bi = 69, Vi = 52, Hi = 8, Ui = 135, Wi = 270, Gi = 2 * Math.PI * Vi, Ki = Wi / 360 * Gi, qi = 11, Ji = `rotate(${Ui} 60 ${Bi})`, Yi = (e, t, n, r) => {
|
|
3769
3771
|
let i = r * Math.PI / 180;
|
|
@@ -4806,39 +4808,51 @@ var Wa = /*#__PURE__*/ Q(Ha, [["render", Ua]]), Ga = d({
|
|
|
4806
4808
|
}
|
|
4807
4809
|
},
|
|
4808
4810
|
setup(e) {
|
|
4809
|
-
let t = w(!0), n = w([]), r = w([]), i = w(0);
|
|
4811
|
+
let t = w(!0), n = w([]), r = w([]), i = w(0), a = w(0);
|
|
4810
4812
|
return y(async () => {
|
|
4811
|
-
if (e.data.
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4813
|
+
if (e.data.link === "bom") {
|
|
4814
|
+
if (e.data.merge) try {
|
|
4815
|
+
let t = e.data.merge, n = Function("formValue", "mainFormValue", "POST", t);
|
|
4816
|
+
r.value = await n(e.value, { value: () => e.value }, Z);
|
|
4817
|
+
} catch (e) {
|
|
4818
|
+
q(e);
|
|
4819
|
+
}
|
|
4820
|
+
a.value = 1;
|
|
4821
|
+
} else {
|
|
4822
|
+
if (e.data.merge) try {
|
|
4823
|
+
let t = e.data.merge, n = Function("formValue", "mainFormValue", "POST", t);
|
|
4824
|
+
r.value = await n(e.value[`sub_${e.data.key}`], { value: () => e.value }, Z);
|
|
4825
|
+
} catch (e) {
|
|
4826
|
+
q(e);
|
|
4827
|
+
}
|
|
4828
|
+
_i(e.data.link).then(async (e) => {
|
|
4829
|
+
let { tableColumns: r } = await Ti(yi(et.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
|
|
4830
|
+
...e,
|
|
4831
|
+
sorter: !1,
|
|
4832
|
+
resizable: !1
|
|
4833
|
+
})).filter((e) => e.show);
|
|
4834
|
+
o.forEach((e) => {
|
|
4835
|
+
a += e.width;
|
|
4836
|
+
}), n.value = o, i.value = a, t.value = !1;
|
|
4837
|
+
}).catch(() => {
|
|
4838
|
+
t.value = !1;
|
|
4839
|
+
});
|
|
4816
4840
|
}
|
|
4817
|
-
_i(e.data.link).then(async (e) => {
|
|
4818
|
-
let { tableColumns: r } = await Ti(yi(et.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
|
|
4819
|
-
...e,
|
|
4820
|
-
sorter: !1,
|
|
4821
|
-
resizable: !1
|
|
4822
|
-
})).filter((e) => e.show);
|
|
4823
|
-
o.forEach((e) => {
|
|
4824
|
-
a += e.width;
|
|
4825
|
-
}), n.value = o, i.value = a, t.value = !1;
|
|
4826
|
-
}).catch((e) => {
|
|
4827
|
-
t.value = !1;
|
|
4828
|
-
});
|
|
4829
4841
|
}), {
|
|
4830
4842
|
loading: t,
|
|
4831
4843
|
columns: n,
|
|
4832
4844
|
columnsData: r,
|
|
4833
|
-
tableScrollX: i
|
|
4845
|
+
tableScrollX: i,
|
|
4846
|
+
tableType: a
|
|
4834
4847
|
};
|
|
4835
4848
|
}
|
|
4836
4849
|
});
|
|
4837
4850
|
//#endregion
|
|
4838
4851
|
//#region components/table/components/expand.vue
|
|
4839
4852
|
function Ka(e, t, n, i, a, o) {
|
|
4840
|
-
let s = D("NDataTable");
|
|
4841
|
-
return x(), r(s, {
|
|
4853
|
+
let s = D("NDataTable"), c = D("UzBom");
|
|
4854
|
+
return e.tableType === 0 ? (x(), r(s, {
|
|
4855
|
+
key: 0,
|
|
4842
4856
|
columns: e.columns,
|
|
4843
4857
|
data: e.columnsData,
|
|
4844
4858
|
pagination: !1,
|
|
@@ -4853,7 +4867,12 @@ function Ka(e, t, n, i, a, o) {
|
|
|
4853
4867
|
"data",
|
|
4854
4868
|
"loading",
|
|
4855
4869
|
"scroll-x"
|
|
4856
|
-
])
|
|
4870
|
+
])) : (x(), r(c, {
|
|
4871
|
+
key: 1,
|
|
4872
|
+
value: e.columnsData,
|
|
4873
|
+
status: 2,
|
|
4874
|
+
expand: !0
|
|
4875
|
+
}, null, 8, ["value"]));
|
|
4857
4876
|
}
|
|
4858
4877
|
var qa = /*#__PURE__*/ Q(Ga, [["render", Ka]]), Ja = d({
|
|
4859
4878
|
components: { NSkeleton: ke },
|
|
@@ -5391,6 +5410,13 @@ var $a = d({
|
|
|
5391
5410
|
fixed: "left",
|
|
5392
5411
|
filter: "default",
|
|
5393
5412
|
filterOptionValue: null,
|
|
5413
|
+
expandable: a.expandableFn ? (e) => {
|
|
5414
|
+
try {
|
|
5415
|
+
return Function("rowData", a.expandableFn)(e);
|
|
5416
|
+
} catch {
|
|
5417
|
+
return !1;
|
|
5418
|
+
}
|
|
5419
|
+
} : !0,
|
|
5394
5420
|
renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(L, { onClick: Re }, { default: () => s("Common.expand") }), f(L, { onClick: ze }, { default: () => s("Common.contract") })]),
|
|
5395
5421
|
renderExpand: (e) => f(qa, {
|
|
5396
5422
|
data: a,
|
|
@@ -7850,7 +7876,7 @@ function ac(e, t, n) {
|
|
|
7850
7876
|
}
|
|
7851
7877
|
//#endregion
|
|
7852
7878
|
//#region package.json
|
|
7853
|
-
var oc = "0.1.
|
|
7879
|
+
var oc = "0.1.138", sc;
|
|
7854
7880
|
async function cc() {
|
|
7855
7881
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7856
7882
|
method: "HEAD",
|