@web-utils/form-ui 1.0.0-beta5 → 1.0.0-beta50
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/6yfBZFOB.mjs +56 -0
- package/chunks/B-zqRAXo.mjs +69 -0
- package/chunks/B1IPSTA6.mjs +198 -0
- package/chunks/B9gA65rt2.mjs +38 -0
- package/chunks/BA2KEptL.mjs +172 -0
- package/chunks/BBERmTup.mjs +83 -0
- package/chunks/BUGCiCnl.mjs +83 -0
- package/chunks/BbSPWDDZ.mjs +100 -0
- package/chunks/BfxDxIg0.mjs +106 -0
- package/chunks/BqWvBF14.mjs +35 -0
- package/chunks/BsZgAJX_2.mjs +81 -0
- package/chunks/BtcjAHE6.mjs +317 -0
- package/chunks/ByHz4mmh.mjs +87 -0
- package/chunks/C2zgFLYO.mjs +185 -0
- package/chunks/CAd1zK9Q.mjs +25 -0
- package/chunks/CJdkjadi.mjs +17 -0
- package/chunks/CabldOLo.mjs +157 -0
- package/chunks/CkOD-_VV.mjs +8 -0
- package/chunks/Cln3RBAD.mjs +660 -0
- package/chunks/CqoVAnxC2.mjs +93 -0
- package/chunks/CuAoMR3n.mjs +105 -0
- package/chunks/CxTg0r4n.mjs +166 -0
- package/chunks/D0Zg2CV0.mjs +57 -0
- package/chunks/DA7oGHSX.mjs +141 -0
- package/chunks/DOP3aBxf.mjs +93 -0
- package/chunks/DOZRzqlo.mjs +37 -0
- package/chunks/D_qiRmiE.mjs +230 -0
- package/chunks/DcTVYqeJ.mjs +113 -0
- package/chunks/Dkd5BC98.mjs +198 -0
- package/chunks/GI8krYU82.mjs +478 -0
- package/chunks/V2p-PCpL.mjs +176 -0
- package/chunks/bFbPPcdq.mjs +25 -0
- package/chunks/cqIZWDHo.mjs +614 -0
- package/chunks/eae6huQB.mjs +25 -0
- package/chunks/gCeDFHo1.mjs +32 -0
- package/chunks/gLPy4Sus.mjs +164 -0
- package/chunks/hlha6Bhc.mjs +107 -0
- package/chunks/hzaYr6Ud2.mjs +207 -0
- package/chunks/kflKDW4T2.mjs +146 -0
- package/chunks/pIzhYsBe.mjs +93 -0
- package/chunks/vXQf89tS.mjs +1361 -0
- package/chunks/wXeqV-_7.mjs +89 -0
- package/chunks/zwXzk9ff2.mjs +568 -0
- package/confirm-button/index.d.ts +115 -0
- package/confirm-button/index.mjs +35 -0
- package/confirmable/index.d.ts +86 -0
- package/confirmable/index.mjs +8 -0
- package/constants/index.d.ts +53 -0
- package/constants/index.mjs +4 -0
- package/dict-render/index.d.ts +28 -0
- package/dict-render/index.mjs +2 -0
- package/editable-tree/index.d.ts +254 -0
- package/editable-tree/index.mjs +2 -0
- package/editable-tree/style.css +1 -0
- package/element-dialog/index.d.ts +337 -16
- package/element-dialog/index.mjs +2 -91
- package/element-resize-observer/index.d.ts +8 -0
- package/element-resize-observer/index.mjs +40 -0
- package/element-resize-observer/style.css +1 -0
- package/empty-view/index.d.ts +2 -2
- package/empty-view/index.mjs +1 -1
- package/flex-scroll-area/index.d.ts +1 -1
- package/flex-scroll-area/index.mjs +1 -1
- package/form-advice/index.mjs +13 -12
- package/form-button/index.d.ts +116 -0
- package/form-button/index.mjs +36 -0
- package/form-card/index.d.ts +14 -0
- package/form-card/index.mjs +18 -0
- package/form-cascader/index.d.ts +472 -0
- package/form-cascader/index.mjs +2 -0
- package/form-checkbox/index.d.ts +236 -16
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.d.ts +364 -0
- package/form-checkbox-group/index.mjs +2 -0
- package/form-checkbox-group/style.css +1 -0
- package/form-date-picker/index.d.ts +390 -19
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +87 -20
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +145 -13
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +301 -20
- 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 +307 -16
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +307 -16
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +246 -18
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +307 -16
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +263 -1
- package/form-input-tag/index.mjs +1 -3
- package/form-input-time/index.d.ts +434 -1
- package/form-input-time/index.mjs +1 -3
- 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 +91 -17
- package/form-item-group/index.mjs +2 -78
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.d.ts +141 -11
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -0
- package/form-radio-group/index.d.ts +303 -16
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +254 -14
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.mjs +27 -26
- package/form-row/index.d.ts +2 -2
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +537 -18
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +283 -16
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +272 -14
- package/form-switch/index.mjs +1 -1
- package/form-table/index.d.ts +269 -0
- package/form-table/index.mjs +2 -0
- package/form-table-plus/index.d.ts +266 -0
- package/form-table-plus/index.mjs +2 -0
- package/form-text/index.d.ts +165 -13
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +351 -0
- package/form-textarea/index.mjs +2 -0
- package/form-time-select/index.d.ts +319 -0
- package/form-time-select/index.mjs +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.css +2 -0
- package/index.d.ts +57 -36
- package/index.mjs +59 -61
- package/package.json +10 -5
- package/pageable-table/index.d.ts +398 -0
- package/pageable-table/index.mjs +2 -0
- package/pageable-table/style.css +1 -0
- package/resolver/index.mjs +29 -0
- package/sub-table/index.d.ts +100 -0
- package/sub-table/index.mjs +472 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.d.ts +97 -0
- package/sub-table-plus/index.mjs +2 -0
- package/sub-table-plus/style.css +1 -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 +95 -0
- package/table-column-def/index.mjs +11 -0
- package/table-view/index.d.ts +340 -1
- package/table-view/index.mjs +454 -6
- package/table-view/style.css +1 -0
- package/toolbar/index.d.ts +128 -1
- package/toolbar/index.mjs +1 -8
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.d.ts +188 -1
- 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 +228 -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.d.ts +0 -1
- package/constants.mjs +0 -4
- package/form-check-box-group/index.d.ts +0 -93
- package/form-check-box-group/index.mjs +0 -2
- package/input/style.css +0 -1
- package/resolver.mjs +0 -79
- /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
stop: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
prevent: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
text: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
message: StringConstructor;
|
|
15
|
+
confirmable: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
confirmText: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
confirmType: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
confirmTitle: StringConstructor;
|
|
28
|
+
loadable: BooleanConstructor;
|
|
29
|
+
loadingText: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
tag: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
icon: StringConstructor;
|
|
38
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
39
|
+
stop: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
prevent: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
text: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
message: StringConstructor;
|
|
52
|
+
confirmable: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
confirmText: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
confirmType: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
confirmTitle: StringConstructor;
|
|
65
|
+
loadable: BooleanConstructor;
|
|
66
|
+
loadingText: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
tag: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
icon: StringConstructor;
|
|
75
|
+
}>> & Readonly<{}>, {
|
|
76
|
+
text: string;
|
|
77
|
+
stop: boolean;
|
|
78
|
+
prevent: boolean;
|
|
79
|
+
loadable: boolean;
|
|
80
|
+
loadingText: string;
|
|
81
|
+
confirmable: boolean;
|
|
82
|
+
confirmType: string;
|
|
83
|
+
confirmText: string;
|
|
84
|
+
tag: string;
|
|
85
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | {
|
|
86
|
+
props: {
|
|
87
|
+
type: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
size: StringConstructor;
|
|
92
|
+
icon: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
nativeType: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
loading: BooleanConstructor;
|
|
101
|
+
disabled: BooleanConstructor;
|
|
102
|
+
plain: BooleanConstructor;
|
|
103
|
+
autofocus: BooleanConstructor;
|
|
104
|
+
round: BooleanConstructor;
|
|
105
|
+
text: {
|
|
106
|
+
type: StringConstructor;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
tag: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
}, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
115
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { t as e } from "../chunks/BUGCiCnl.mjs";
|
|
2
|
+
//#region src/components/button/ConfirmButton.vue
|
|
3
|
+
var t = {
|
|
4
|
+
name: "ConfirmButton",
|
|
5
|
+
mixins: [e, { props: {
|
|
6
|
+
type: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "danger"
|
|
9
|
+
},
|
|
10
|
+
size: String,
|
|
11
|
+
icon: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
nativeType: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "button"
|
|
18
|
+
},
|
|
19
|
+
loading: Boolean,
|
|
20
|
+
disabled: Boolean,
|
|
21
|
+
plain: Boolean,
|
|
22
|
+
autofocus: Boolean,
|
|
23
|
+
round: Boolean,
|
|
24
|
+
text: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "删除"
|
|
27
|
+
},
|
|
28
|
+
tag: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "ElButton"
|
|
31
|
+
}
|
|
32
|
+
} }]
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { t as default };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
stop: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
prevent: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
text: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
message: StringConstructor;
|
|
15
|
+
confirmable: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
confirmText: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
confirmType: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
confirmTitle: StringConstructor;
|
|
28
|
+
loadable: BooleanConstructor;
|
|
29
|
+
loadingText: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
tag: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
icon: StringConstructor;
|
|
38
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
39
|
+
stop: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
prevent: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
text: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
message: StringConstructor;
|
|
52
|
+
confirmable: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
confirmText: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
confirmType: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
confirmTitle: StringConstructor;
|
|
65
|
+
loadable: BooleanConstructor;
|
|
66
|
+
loadingText: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
tag: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
icon: StringConstructor;
|
|
75
|
+
}>> & Readonly<{}>, {
|
|
76
|
+
text: string;
|
|
77
|
+
stop: boolean;
|
|
78
|
+
prevent: boolean;
|
|
79
|
+
loadable: boolean;
|
|
80
|
+
loadingText: string;
|
|
81
|
+
confirmable: boolean;
|
|
82
|
+
confirmType: string;
|
|
83
|
+
confirmText: string;
|
|
84
|
+
tag: string;
|
|
85
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
86
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { InjectionKey, ComputedRef } from 'vue';
|
|
2
|
+
export declare const formHolderContextKey: InjectionKey<{
|
|
3
|
+
tableForm: boolean;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
enabledFields: string[];
|
|
6
|
+
requiredFields: string[];
|
|
7
|
+
enabledFieldsMap: Record<string, boolean | undefined>;
|
|
8
|
+
disabledFieldsMap: Record<string, boolean | undefined>;
|
|
9
|
+
requiredFieldsMap: Record<string, boolean | undefined>;
|
|
10
|
+
disabledFields: string[];
|
|
11
|
+
scrollIntoRequiredField: () => Promise<void> | any;
|
|
12
|
+
formRef: unknown;
|
|
13
|
+
validate: () => Promise<void> | any;
|
|
14
|
+
validateField: () => any;
|
|
15
|
+
resetFields: () => any;
|
|
16
|
+
scrollToField: () => any;
|
|
17
|
+
clearValidate: () => any;
|
|
18
|
+
getField: () => any;
|
|
19
|
+
setInitialValues: () => any;
|
|
20
|
+
getFields: () => any;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const formItemGroupContextKey: InjectionKey<{
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
enabled: boolean;
|
|
25
|
+
isDisabled: boolean;
|
|
26
|
+
size: string;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const formItemConfigProviderContextKey: InjectionKey<{
|
|
29
|
+
reactive: boolean;
|
|
30
|
+
block: boolean;
|
|
31
|
+
wrapCol: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const formViewContextKey: InjectionKey<{
|
|
34
|
+
formCardStyle: object;
|
|
35
|
+
addGroup: (group: any) => void;
|
|
36
|
+
removeGroup: (group: any) => void;
|
|
37
|
+
tableForm: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const formEntityContextKey: unique symbol;
|
|
40
|
+
export declare const formItemConfigContextKey: unique symbol;
|
|
41
|
+
export declare const flowContextKey: InjectionKey<{
|
|
42
|
+
formComments: object[];
|
|
43
|
+
}>;
|
|
44
|
+
export declare const toolbarContextKey: InjectionKey<{
|
|
45
|
+
footer: boolean;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const tableViewContextKey: unique symbol;
|
|
48
|
+
export declare const pageableTableContextKey: InjectionKey<{
|
|
49
|
+
records: ComputedRef<object[]>;
|
|
50
|
+
}>;
|
|
51
|
+
export declare const columnSizeContextKey: unique symbol;
|
|
52
|
+
export declare const columnsContextKey: unique symbol;
|
|
53
|
+
export declare const setColumnSizeContextKey: unique symbol;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/constants/index.ts
|
|
2
|
+
var e = Symbol("formHolder"), t = Symbol("formItemGroup"), n = Symbol("formItemConfigProvider"), r = Symbol("formView"), i = Symbol("formEntity"), a = Symbol("formItemConfig"), o = Symbol("flowContext"), s = Symbol("toolbar"), c = Symbol("tableView"), l = Symbol("pageableTable"), u = Symbol("columnSize"), d = Symbol("columns"), f = Symbol("setColumnSize");
|
|
3
|
+
//#endregion
|
|
4
|
+
export { u as columnSizeContextKey, d as columnsContextKey, o as flowContextKey, i as formEntityContextKey, e as formHolderContextKey, a as formItemConfigContextKey, n as formItemConfigProviderContextKey, t as formItemGroupContextKey, r as formViewContextKey, l as pageableTableContextKey, f as setColumnSizeContextKey, c as tableViewContextKey, s as toolbarContextKey };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
row: ObjectConstructor;
|
|
3
|
+
column: ObjectConstructor;
|
|
4
|
+
dictType: StringConstructor;
|
|
5
|
+
options: ArrayConstructor;
|
|
6
|
+
treeDict: BooleanConstructor;
|
|
7
|
+
idAsValue: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
labelAsValue: BooleanConstructor;
|
|
12
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
13
|
+
row: ObjectConstructor;
|
|
14
|
+
column: ObjectConstructor;
|
|
15
|
+
dictType: StringConstructor;
|
|
16
|
+
options: ArrayConstructor;
|
|
17
|
+
treeDict: BooleanConstructor;
|
|
18
|
+
idAsValue: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
labelAsValue: BooleanConstructor;
|
|
23
|
+
}>> & Readonly<{}>, {
|
|
24
|
+
treeDict: boolean;
|
|
25
|
+
idAsValue: boolean;
|
|
26
|
+
labelAsValue: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
label: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
addRootNodeLabel: StringConstructor;
|
|
7
|
+
defaultExpandedKeys: {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
newNodeBuilder: {
|
|
12
|
+
type: FunctionConstructor;
|
|
13
|
+
default: (name: string, parent: {
|
|
14
|
+
id: string | number;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}) => {
|
|
17
|
+
name: string;
|
|
18
|
+
parentId: string | number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
contextMenu: BooleanConstructor;
|
|
22
|
+
lazy: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
expandFirstNode: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
readonly: BooleanConstructor;
|
|
31
|
+
saveApi: FunctionConstructor;
|
|
32
|
+
updateApi: FunctionConstructor;
|
|
33
|
+
deleteApi: FunctionConstructor;
|
|
34
|
+
fetchApi: FunctionConstructor;
|
|
35
|
+
customRootNode: (ObjectConstructor | FunctionConstructor)[];
|
|
36
|
+
rootNode: ObjectConstructor;
|
|
37
|
+
contextMenuIcon: BooleanConstructor;
|
|
38
|
+
contextMenuInline: BooleanConstructor;
|
|
39
|
+
treeProps: {
|
|
40
|
+
type: ObjectConstructor;
|
|
41
|
+
default: () => {
|
|
42
|
+
children: string;
|
|
43
|
+
label: string;
|
|
44
|
+
isLeaf: (data: any) => boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
menuLabel: {
|
|
48
|
+
type: ObjectConstructor;
|
|
49
|
+
default: () => {
|
|
50
|
+
appendPeer: string;
|
|
51
|
+
appendChild: string;
|
|
52
|
+
removeNode: string;
|
|
53
|
+
editNode: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
icon: {
|
|
57
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
|
58
|
+
default: (data: any, node: any) => string;
|
|
59
|
+
};
|
|
60
|
+
confirmButton: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
addRootNodeButtonStyle: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
reserveExpandKey: BooleanConstructor;
|
|
69
|
+
nodeKey: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
defaultExpandAll: BooleanConstructor;
|
|
74
|
+
}>, {
|
|
75
|
+
autoBindProps: globalThis.ComputedRef<Record<string, any>>;
|
|
76
|
+
listeners: globalThis.ComputedRef<Record<string, any>>;
|
|
77
|
+
}, {
|
|
78
|
+
loading: boolean;
|
|
79
|
+
showMenu: boolean;
|
|
80
|
+
empty: boolean;
|
|
81
|
+
expandedKeys: unknown[];
|
|
82
|
+
treeData: never[];
|
|
83
|
+
curNode: {};
|
|
84
|
+
curData: {};
|
|
85
|
+
position: {};
|
|
86
|
+
text: string;
|
|
87
|
+
right: number;
|
|
88
|
+
treeKey: number;
|
|
89
|
+
}, {
|
|
90
|
+
defaultOptions(): {
|
|
91
|
+
confirmButtonText: string;
|
|
92
|
+
cancelButtonText: string;
|
|
93
|
+
closeOnClickModal: boolean;
|
|
94
|
+
modal: boolean;
|
|
95
|
+
inputErrorMessage: string;
|
|
96
|
+
inputPlaceholder: string;
|
|
97
|
+
inputValidator: (value: any) => boolean;
|
|
98
|
+
};
|
|
99
|
+
innerTreeData(): {};
|
|
100
|
+
}, {
|
|
101
|
+
addExpandKey(data: any): void;
|
|
102
|
+
removeExpandKey(data: any): void;
|
|
103
|
+
resize(): void;
|
|
104
|
+
showContextMenu(event: any, data: any, node: any): Promise<void>;
|
|
105
|
+
hideContextMenu(): void;
|
|
106
|
+
tryFetch(): Promise<void>;
|
|
107
|
+
loadNode(node: any, resolve: any): Promise<any>;
|
|
108
|
+
clear(): void;
|
|
109
|
+
clearChecked(): void;
|
|
110
|
+
removeNewNode(): void;
|
|
111
|
+
cancelEdit(): void;
|
|
112
|
+
editNode(node: any, data: any): Promise<void>;
|
|
113
|
+
appendRootNode(): Promise<void>;
|
|
114
|
+
appendChildNode(node: any): void;
|
|
115
|
+
appendChildNodeWithData(node: any, parentId: any, label: any): void;
|
|
116
|
+
appendPeerNode(node: any): void;
|
|
117
|
+
addRootNode(data: any): Promise<void>;
|
|
118
|
+
addChildNode(data: any): Promise<void>;
|
|
119
|
+
addPeerNode(data: any): Promise<void>;
|
|
120
|
+
updateNode(data: any): void;
|
|
121
|
+
setCurrentKey(key: any): void;
|
|
122
|
+
createNewChild(parentId: any): void;
|
|
123
|
+
removeNodeModal(node: any): Promise<void>;
|
|
124
|
+
removeNode(node: any): Promise<void>;
|
|
125
|
+
onConfirm(node: any, data: any): Promise<void>;
|
|
126
|
+
onCancel(node: any, data: any): void;
|
|
127
|
+
nodeClick(data: any, node: any, tree: any): void;
|
|
128
|
+
getCurrentNode(): any;
|
|
129
|
+
locateView(): Promise<void>;
|
|
130
|
+
scrollIntoView(expanded: any): Promise<void>;
|
|
131
|
+
inputKeyup(event: any, node: any, data: any): void;
|
|
132
|
+
inputBlur(event: any, node: any, data: any): void;
|
|
133
|
+
getCheckedKeys(): any;
|
|
134
|
+
setCheckedKeys(keys: any): void;
|
|
135
|
+
getCheckedNodes(): any;
|
|
136
|
+
setCheckedNodes(nodes: any): void;
|
|
137
|
+
getNode(data: any): any;
|
|
138
|
+
getRootNode(): any;
|
|
139
|
+
findTreeNode(data: any): import('@web-utils/core').TreeNode[];
|
|
140
|
+
registerNode(node: any): void;
|
|
141
|
+
reloadTree(): Promise<void>;
|
|
142
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
143
|
+
'remove-new-node': null;
|
|
144
|
+
'node-loaded': null;
|
|
145
|
+
'root-node-loaded': null;
|
|
146
|
+
'node-deleted': null;
|
|
147
|
+
'node-updated': null;
|
|
148
|
+
'node-added': null;
|
|
149
|
+
'on-node-click': null;
|
|
150
|
+
'add-root-node': null;
|
|
151
|
+
'create-new-node': null;
|
|
152
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
153
|
+
label: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
157
|
+
addRootNodeLabel: StringConstructor;
|
|
158
|
+
defaultExpandedKeys: {
|
|
159
|
+
type: ArrayConstructor;
|
|
160
|
+
default: () => never[];
|
|
161
|
+
};
|
|
162
|
+
newNodeBuilder: {
|
|
163
|
+
type: FunctionConstructor;
|
|
164
|
+
default: (name: string, parent: {
|
|
165
|
+
id: string | number;
|
|
166
|
+
[key: string]: any;
|
|
167
|
+
}) => {
|
|
168
|
+
name: string;
|
|
169
|
+
parentId: string | number;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
contextMenu: BooleanConstructor;
|
|
173
|
+
lazy: {
|
|
174
|
+
type: BooleanConstructor;
|
|
175
|
+
default: boolean;
|
|
176
|
+
};
|
|
177
|
+
expandFirstNode: {
|
|
178
|
+
type: BooleanConstructor;
|
|
179
|
+
default: boolean;
|
|
180
|
+
};
|
|
181
|
+
readonly: BooleanConstructor;
|
|
182
|
+
saveApi: FunctionConstructor;
|
|
183
|
+
updateApi: FunctionConstructor;
|
|
184
|
+
deleteApi: FunctionConstructor;
|
|
185
|
+
fetchApi: FunctionConstructor;
|
|
186
|
+
customRootNode: (ObjectConstructor | FunctionConstructor)[];
|
|
187
|
+
rootNode: ObjectConstructor;
|
|
188
|
+
contextMenuIcon: BooleanConstructor;
|
|
189
|
+
contextMenuInline: BooleanConstructor;
|
|
190
|
+
treeProps: {
|
|
191
|
+
type: ObjectConstructor;
|
|
192
|
+
default: () => {
|
|
193
|
+
children: string;
|
|
194
|
+
label: string;
|
|
195
|
+
isLeaf: (data: any) => boolean;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
menuLabel: {
|
|
199
|
+
type: ObjectConstructor;
|
|
200
|
+
default: () => {
|
|
201
|
+
appendPeer: string;
|
|
202
|
+
appendChild: string;
|
|
203
|
+
removeNode: string;
|
|
204
|
+
editNode: string;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
icon: {
|
|
208
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
|
209
|
+
default: (data: any, node: any) => string;
|
|
210
|
+
};
|
|
211
|
+
confirmButton: {
|
|
212
|
+
type: BooleanConstructor;
|
|
213
|
+
default: boolean;
|
|
214
|
+
};
|
|
215
|
+
addRootNodeButtonStyle: {
|
|
216
|
+
type: StringConstructor;
|
|
217
|
+
default: string;
|
|
218
|
+
};
|
|
219
|
+
reserveExpandKey: BooleanConstructor;
|
|
220
|
+
nodeKey: {
|
|
221
|
+
type: StringConstructor;
|
|
222
|
+
default: string;
|
|
223
|
+
};
|
|
224
|
+
defaultExpandAll: BooleanConstructor;
|
|
225
|
+
}>> & Readonly<{
|
|
226
|
+
"onRemove-new-node"?: ((...args: any[]) => any) | undefined;
|
|
227
|
+
"onNode-loaded"?: ((...args: any[]) => any) | undefined;
|
|
228
|
+
"onRoot-node-loaded"?: ((...args: any[]) => any) | undefined;
|
|
229
|
+
"onNode-deleted"?: ((...args: any[]) => any) | undefined;
|
|
230
|
+
"onNode-updated"?: ((...args: any[]) => any) | undefined;
|
|
231
|
+
"onNode-added"?: ((...args: any[]) => any) | undefined;
|
|
232
|
+
"onOn-node-click"?: ((...args: any[]) => any) | undefined;
|
|
233
|
+
"onAdd-root-node"?: ((...args: any[]) => any) | undefined;
|
|
234
|
+
"onCreate-new-node"?: ((...args: any[]) => any) | undefined;
|
|
235
|
+
}>, {
|
|
236
|
+
icon: boolean | Function;
|
|
237
|
+
label: string;
|
|
238
|
+
defaultExpandedKeys: unknown[];
|
|
239
|
+
newNodeBuilder: Function;
|
|
240
|
+
contextMenu: boolean;
|
|
241
|
+
lazy: boolean;
|
|
242
|
+
expandFirstNode: boolean;
|
|
243
|
+
readonly: boolean;
|
|
244
|
+
contextMenuIcon: boolean;
|
|
245
|
+
contextMenuInline: boolean;
|
|
246
|
+
treeProps: Record<string, any>;
|
|
247
|
+
menuLabel: Record<string, any>;
|
|
248
|
+
confirmButton: boolean;
|
|
249
|
+
addRootNodeButtonStyle: string;
|
|
250
|
+
reserveExpandKey: boolean;
|
|
251
|
+
nodeKey: string;
|
|
252
|
+
defaultExpandAll: boolean;
|
|
253
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
254
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.editable-tree{position:relative}.editable-tree.et-tree-label-overflow-visible .et-tree-label{position:static}.et-tree-wrapper{text-align:left;flex-direction:column;width:100%;display:flex;overflow:auto}.et-tree-wrapper .el-tree{width:100%;display:table;overflow:visible}.et-tree-wrapper .el-button+.el-button{margin-left:8px!important}.et-tree-wrapper .el-input__inner{padding:0 4px}.et-tree-wrapper .custom-tree-node{align-items:center;width:100%;padding-right:8px;font-size:14px;display:flex}.et-tree-wrapper .custom-tree-node:hover .handle-actions{display:block}.et-tree-wrapper .custom-tree-node .handle-actions{align-self:flex-end;display:none}.et-tree-wrapper .custom-tree-node .node-icon{margin-top:2px;margin-right:4px}.et-tree-wrapper .node-label{align-items:center}.et-tree-wrapper .node-input{min-width:140px;margin-right:10px}.et-tree-wrapper .menu{z-index:3;background:#fff;border-radius:4px;padding:0;position:fixed;box-shadow:0 5px 10px #bebebe}.et-tree-wrapper .menu-item{color:#242f42;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;padding:8px 20px 8px 8px;font:11px/100% tahoma,arial,sans-serif;display:block}.et-tree-wrapper .menu .menu-item:hover{color:#66b1ff;background-color:#ecf5ff}.et-tree-wrapper .menu-item-icon{margin-right:4px;font-size:1.3em;font-weight:700}
|