@web-utils/form-ui 1.0.0-beta4 → 1.0.0-beta40
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 -0
- package/chunks/B1MSrc6f.mjs +8 -0
- package/chunks/B3ajWLh3.mjs +198 -0
- package/chunks/BH_JJ8Xh.mjs +106 -0
- package/chunks/BWBHzD5N.mjs +89 -0
- package/chunks/Bd1UFJic.mjs +660 -0
- package/chunks/Bm5eiSmT.mjs +79 -0
- package/chunks/BsCS7SB5.mjs +141 -0
- package/chunks/BufIRDd0.mjs +185 -0
- package/chunks/C1AgOUe_.mjs +172 -0
- package/chunks/C3Uo82-I.mjs +35 -0
- package/chunks/C9dGL28n.mjs +56 -0
- package/chunks/CFOGMFgo.mjs +150 -0
- package/chunks/CLPSCSsy.mjs +603 -0
- package/chunks/CSyJ-vEx.mjs +17 -0
- package/chunks/CTKmEf2M.mjs +93 -0
- package/chunks/CWfUPCtS.mjs +1360 -0
- package/chunks/CXvGoZKJ.mjs +198 -0
- package/chunks/Cab-ZjRx.mjs +164 -0
- package/chunks/ChmDDqoZ2.mjs +478 -0
- package/chunks/Cj59E77g.mjs +230 -0
- package/chunks/CqTcEefA.mjs +93 -0
- package/chunks/Ct5bDJ50.mjs +38 -0
- package/chunks/CuG2Q-PM.mjs +100 -0
- package/chunks/D8UVq1t1.mjs +176 -0
- package/chunks/DDmQcNm6.mjs +93 -0
- package/chunks/DF9fJMQS.mjs +105 -0
- package/chunks/DJe97Fgi.mjs +107 -0
- package/chunks/DXYgAmil.mjs +317 -0
- package/chunks/DhtHh0jk.mjs +87 -0
- package/chunks/DiJyms_r.mjs +100 -0
- package/chunks/Ds_Tpa_M.mjs +83 -0
- package/chunks/TvNHGVAP.mjs +25 -0
- package/chunks/XCGWTz41.mjs +25 -0
- package/chunks/XqRTtFfp.mjs +166 -0
- package/chunks/cmuHpsX6.mjs +109 -0
- package/chunks/o6VhYAN52.mjs +207 -0
- package/chunks/pdwFQpA8.mjs +57 -0
- package/chunks/taicx2sd.mjs +25 -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 +53 -0
- package/constants/index.mjs +4 -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/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 +114 -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-check-box-group/index.d.ts +289 -18
- package/form-check-box-group/index.mjs +1 -1
- package/form-check-box-group/style.css +1 -0
- package/form-checkbox/index.d.ts +236 -16
- package/form-checkbox/index.mjs +1 -1
- 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-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.d.ts +52 -36
- package/index.mjs +54 -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/resize-observer/index.d.ts +8 -0
- package/resize-observer/index.mjs +40 -0
- package/resize-observer/style.css +1 -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-view/index.d.ts +340 -1
- package/table-view/index.mjs +453 -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 +227 -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/input/style.css +0 -1
- package/resolver.mjs +0 -79
- package/utils/style.css +0 -1
- /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {
|
|
2
|
+
compareAndNotify(): void;
|
|
3
|
+
addResizeHandlers(): void;
|
|
4
|
+
removeResizeHandlers(): void;
|
|
5
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "notify"[], "notify", import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
6
|
+
onNotify?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { t as e } from "../chunks/B1MSrc6f.mjs";
|
|
2
|
+
import { createElementBlock as t, openBlock as n } from "vue";
|
|
3
|
+
//#region src/components/ResizeObserver.vue
|
|
4
|
+
var r = {
|
|
5
|
+
name: "ResizeObserver",
|
|
6
|
+
emits: ["notify"],
|
|
7
|
+
mounted() {
|
|
8
|
+
this.$nextTick(() => {
|
|
9
|
+
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight;
|
|
10
|
+
});
|
|
11
|
+
let e = document.createElement("object");
|
|
12
|
+
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", e.data = "about:blank", this.$el.appendChild(e);
|
|
13
|
+
},
|
|
14
|
+
beforeUnmount() {
|
|
15
|
+
this.removeResizeHandlers();
|
|
16
|
+
},
|
|
17
|
+
methods: {
|
|
18
|
+
compareAndNotify() {
|
|
19
|
+
(this._w !== this.$el.offsetWidth || this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.$emit("notify", {
|
|
20
|
+
width: this._w,
|
|
21
|
+
height: this._h
|
|
22
|
+
}));
|
|
23
|
+
},
|
|
24
|
+
addResizeHandlers() {
|
|
25
|
+
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
26
|
+
},
|
|
27
|
+
removeResizeHandlers() {
|
|
28
|
+
this._resizeObject && this._resizeObject.onload && (this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}, i = {
|
|
32
|
+
class: "resize-observer",
|
|
33
|
+
tabindex: "-1"
|
|
34
|
+
};
|
|
35
|
+
function a(e, r, a, o, s, c) {
|
|
36
|
+
return n(), t("div", i);
|
|
37
|
+
}
|
|
38
|
+
var o = /* @__PURE__ */ e(r, [["render", a]]);
|
|
39
|
+
//#endregion
|
|
40
|
+
export { o as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.resize-observer{z-index:-1;opacity:0;pointer-events:none;background-color:#0000;border:none;width:100%;height:100%;display:block;position:absolute;top:0;left:0;overflow:hidden}.resize-observer>object{z-index:-1;pointer-events:none;width:100%;height:100%;display:block;position:absolute;top:0;left:0;overflow:hidden}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { componentNames as e, noStylesComponents as t } from "../index.mjs";
|
|
2
|
+
import { hyphenate as n } from "@web-utils/core";
|
|
3
|
+
//#region src/resolver/index.ts
|
|
4
|
+
var r = ({ importStyle: r = !1, excludeComponents: a = [] } = {}) => {
|
|
5
|
+
let o = {}, s = {}, c = {};
|
|
6
|
+
return e.forEach((e) => {
|
|
7
|
+
o[e] = !0;
|
|
8
|
+
}), t.forEach((e) => {
|
|
9
|
+
s[e] = !0;
|
|
10
|
+
}), a.forEach((e) => {
|
|
11
|
+
c[e] = !0;
|
|
12
|
+
}), (e) => {
|
|
13
|
+
if (c[e] === !0 || o[e] !== !0) return;
|
|
14
|
+
let t = n(e);
|
|
15
|
+
return {
|
|
16
|
+
from: `@web-utils/form-ui/${t}/index.mjs`,
|
|
17
|
+
sideEffects: i({
|
|
18
|
+
componentName: e,
|
|
19
|
+
name: t,
|
|
20
|
+
importStyle: r,
|
|
21
|
+
noStylesComponentNameMap: s
|
|
22
|
+
})
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}, i = ({ componentName: e, name: t, importStyle: n = !1, noStylesComponentNameMap: r } = {}) => {
|
|
26
|
+
if (n && r[e] !== !0) return ["@web-utils/form-ui/base.css", `@web-utils/form-ui/${t}/style.css`];
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { r as FormUiResolver };
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
type: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
index: (FunctionConstructor | NumberConstructor)[];
|
|
7
|
+
label: StringConstructor;
|
|
8
|
+
columnKey: StringConstructor;
|
|
9
|
+
prop: StringConstructor;
|
|
10
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
11
|
+
minWidth: (StringConstructor | NumberConstructor)[];
|
|
12
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
13
|
+
renderHeader: FunctionConstructor;
|
|
14
|
+
sortable: (StringConstructor | BooleanConstructor)[];
|
|
15
|
+
sortMethod: FunctionConstructor;
|
|
16
|
+
sortBy: (StringConstructor | ArrayConstructor | FunctionConstructor)[];
|
|
17
|
+
sortOrders: {
|
|
18
|
+
type: ArrayConstructor;
|
|
19
|
+
default: () => (string | null)[];
|
|
20
|
+
};
|
|
21
|
+
resizable: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
formatter: FunctionConstructor;
|
|
26
|
+
showOverflowTooltip: {
|
|
27
|
+
type: (BooleanConstructor | ObjectConstructor)[];
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
align: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
headerAlign: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
className: StringConstructor;
|
|
39
|
+
labelClassName: StringConstructor;
|
|
40
|
+
selectable: FunctionConstructor;
|
|
41
|
+
reserveSelection: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
filters: ArrayConstructor;
|
|
46
|
+
filterPlacement: StringConstructor;
|
|
47
|
+
filterClassName: StringConstructor;
|
|
48
|
+
filterMultiple: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
filterMethod: FunctionConstructor;
|
|
53
|
+
filteredValue: {
|
|
54
|
+
type: ArrayConstructor;
|
|
55
|
+
default: () => never[];
|
|
56
|
+
};
|
|
57
|
+
tooltipFormatter: FunctionConstructor;
|
|
58
|
+
property: StringConstructor;
|
|
59
|
+
showTooltipWhenOverflow: BooleanConstructor;
|
|
60
|
+
clickable: BooleanConstructor;
|
|
61
|
+
cellClick: FunctionConstructor;
|
|
62
|
+
dictType: StringConstructor;
|
|
63
|
+
options: ArrayConstructor;
|
|
64
|
+
autoUpdate: BooleanConstructor;
|
|
65
|
+
treeDict: BooleanConstructor;
|
|
66
|
+
idAsValue: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
labelAsValue: BooleanConstructor;
|
|
71
|
+
maxWidth: StringConstructor;
|
|
72
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
73
|
+
type: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
index: (FunctionConstructor | NumberConstructor)[];
|
|
78
|
+
label: StringConstructor;
|
|
79
|
+
columnKey: StringConstructor;
|
|
80
|
+
prop: StringConstructor;
|
|
81
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
82
|
+
minWidth: (StringConstructor | NumberConstructor)[];
|
|
83
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
84
|
+
renderHeader: FunctionConstructor;
|
|
85
|
+
sortable: (StringConstructor | BooleanConstructor)[];
|
|
86
|
+
sortMethod: FunctionConstructor;
|
|
87
|
+
sortBy: (StringConstructor | ArrayConstructor | FunctionConstructor)[];
|
|
88
|
+
sortOrders: {
|
|
89
|
+
type: ArrayConstructor;
|
|
90
|
+
default: () => (string | null)[];
|
|
91
|
+
};
|
|
92
|
+
resizable: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
formatter: FunctionConstructor;
|
|
97
|
+
showOverflowTooltip: {
|
|
98
|
+
type: (BooleanConstructor | ObjectConstructor)[];
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
align: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
headerAlign: {
|
|
106
|
+
type: StringConstructor;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
className: StringConstructor;
|
|
110
|
+
labelClassName: StringConstructor;
|
|
111
|
+
selectable: FunctionConstructor;
|
|
112
|
+
reserveSelection: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: boolean;
|
|
115
|
+
};
|
|
116
|
+
filters: ArrayConstructor;
|
|
117
|
+
filterPlacement: StringConstructor;
|
|
118
|
+
filterClassName: StringConstructor;
|
|
119
|
+
filterMultiple: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
filterMethod: FunctionConstructor;
|
|
124
|
+
filteredValue: {
|
|
125
|
+
type: ArrayConstructor;
|
|
126
|
+
default: () => never[];
|
|
127
|
+
};
|
|
128
|
+
tooltipFormatter: FunctionConstructor;
|
|
129
|
+
property: StringConstructor;
|
|
130
|
+
showTooltipWhenOverflow: BooleanConstructor;
|
|
131
|
+
clickable: BooleanConstructor;
|
|
132
|
+
cellClick: FunctionConstructor;
|
|
133
|
+
dictType: StringConstructor;
|
|
134
|
+
options: ArrayConstructor;
|
|
135
|
+
autoUpdate: BooleanConstructor;
|
|
136
|
+
treeDict: BooleanConstructor;
|
|
137
|
+
idAsValue: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default: boolean;
|
|
140
|
+
};
|
|
141
|
+
labelAsValue: BooleanConstructor;
|
|
142
|
+
maxWidth: StringConstructor;
|
|
143
|
+
}>> & Readonly<{}>, {
|
|
144
|
+
type: string;
|
|
145
|
+
treeDict: boolean;
|
|
146
|
+
idAsValue: boolean;
|
|
147
|
+
labelAsValue: boolean;
|
|
148
|
+
align: string;
|
|
149
|
+
showOverflowTooltip: boolean | Record<string, any>;
|
|
150
|
+
sortOrders: unknown[];
|
|
151
|
+
resizable: boolean;
|
|
152
|
+
headerAlign: string;
|
|
153
|
+
reserveSelection: boolean;
|
|
154
|
+
filterMultiple: boolean;
|
|
155
|
+
filteredValue: unknown[];
|
|
156
|
+
showTooltipWhenOverflow: boolean;
|
|
157
|
+
clickable: boolean;
|
|
158
|
+
autoUpdate: boolean;
|
|
159
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
160
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.is-clickable{cursor:pointer;text-decoration:underline}.is-clickable:hover{color:var(--color-primary)}.el-table__column-filter-trigger{line-height:unset}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
type: string;
|
|
3
|
+
treeDict: boolean;
|
|
4
|
+
idAsValue: boolean;
|
|
5
|
+
labelAsValue: boolean;
|
|
6
|
+
align: string;
|
|
7
|
+
showOverflowTooltip: boolean | Record<string, any>;
|
|
8
|
+
sortOrders: unknown[];
|
|
9
|
+
resizable: boolean;
|
|
10
|
+
headerAlign: string;
|
|
11
|
+
reserveSelection: boolean;
|
|
12
|
+
filterMultiple: boolean;
|
|
13
|
+
filteredValue: unknown[];
|
|
14
|
+
showTooltipWhenOverflow: boolean;
|
|
15
|
+
clickable: boolean;
|
|
16
|
+
autoUpdate: boolean;
|
|
17
|
+
label?: string | undefined;
|
|
18
|
+
filters?: unknown[] | undefined;
|
|
19
|
+
fixed?: string | boolean | undefined;
|
|
20
|
+
width?: string | number | undefined;
|
|
21
|
+
prop?: string | undefined;
|
|
22
|
+
options?: unknown[] | undefined;
|
|
23
|
+
dictType?: string | undefined;
|
|
24
|
+
filterMethod?: Function | undefined;
|
|
25
|
+
formatter?: Function | undefined;
|
|
26
|
+
tooltipFormatter?: Function | undefined;
|
|
27
|
+
index?: number | Function | undefined;
|
|
28
|
+
columnKey?: string | undefined;
|
|
29
|
+
minWidth?: string | number | undefined;
|
|
30
|
+
renderHeader?: Function | undefined;
|
|
31
|
+
sortable?: string | boolean | undefined;
|
|
32
|
+
sortMethod?: Function | undefined;
|
|
33
|
+
sortBy?: string | Function | unknown[] | undefined;
|
|
34
|
+
className?: string | undefined;
|
|
35
|
+
labelClassName?: string | undefined;
|
|
36
|
+
selectable?: Function | undefined;
|
|
37
|
+
filterPlacement?: string | undefined;
|
|
38
|
+
filterClassName?: string | undefined;
|
|
39
|
+
property?: string | undefined;
|
|
40
|
+
cellClick?: Function | undefined;
|
|
41
|
+
maxWidth?: string | undefined;
|
|
42
|
+
$props: {
|
|
43
|
+
readonly type?: string | undefined;
|
|
44
|
+
readonly treeDict?: boolean | undefined;
|
|
45
|
+
readonly idAsValue?: boolean | undefined;
|
|
46
|
+
readonly labelAsValue?: boolean | undefined;
|
|
47
|
+
readonly align?: string | undefined;
|
|
48
|
+
readonly showOverflowTooltip?: boolean | Record<string, any> | undefined;
|
|
49
|
+
readonly sortOrders?: unknown[] | undefined;
|
|
50
|
+
readonly resizable?: boolean | undefined;
|
|
51
|
+
readonly headerAlign?: string | undefined;
|
|
52
|
+
readonly reserveSelection?: boolean | undefined;
|
|
53
|
+
readonly filterMultiple?: boolean | undefined;
|
|
54
|
+
readonly filteredValue?: unknown[] | undefined;
|
|
55
|
+
readonly showTooltipWhenOverflow?: boolean | undefined;
|
|
56
|
+
readonly clickable?: boolean | undefined;
|
|
57
|
+
readonly autoUpdate?: boolean | undefined;
|
|
58
|
+
readonly label?: string | undefined;
|
|
59
|
+
readonly filters?: unknown[] | undefined;
|
|
60
|
+
readonly fixed?: string | boolean | undefined;
|
|
61
|
+
readonly width?: string | number | undefined;
|
|
62
|
+
readonly prop?: string | undefined;
|
|
63
|
+
readonly options?: unknown[] | undefined;
|
|
64
|
+
readonly dictType?: string | undefined;
|
|
65
|
+
readonly filterMethod?: Function | undefined;
|
|
66
|
+
readonly formatter?: Function | undefined;
|
|
67
|
+
readonly tooltipFormatter?: Function | undefined;
|
|
68
|
+
readonly index?: number | Function | undefined;
|
|
69
|
+
readonly columnKey?: string | undefined;
|
|
70
|
+
readonly minWidth?: string | number | undefined;
|
|
71
|
+
readonly renderHeader?: Function | undefined;
|
|
72
|
+
readonly sortable?: string | boolean | undefined;
|
|
73
|
+
readonly sortMethod?: Function | undefined;
|
|
74
|
+
readonly sortBy?: string | Function | unknown[] | undefined;
|
|
75
|
+
readonly className?: string | undefined;
|
|
76
|
+
readonly labelClassName?: string | undefined;
|
|
77
|
+
readonly selectable?: Function | undefined;
|
|
78
|
+
readonly filterPlacement?: string | undefined;
|
|
79
|
+
readonly filterClassName?: string | undefined;
|
|
80
|
+
readonly property?: string | undefined;
|
|
81
|
+
readonly cellClick?: Function | undefined;
|
|
82
|
+
readonly maxWidth?: string | undefined;
|
|
83
|
+
};
|
|
84
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
85
|
+
export default _default;
|
package/table-view/index.d.ts
CHANGED
|
@@ -1,2 +1,341 @@
|
|
|
1
|
-
|
|
1
|
+
import { tableViewContextKey } from '../../constants';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
3
|
+
viewId: (StringConstructor | ArrayConstructor)[];
|
|
4
|
+
searchPanelAttrs: {
|
|
5
|
+
type: ObjectConstructor;
|
|
6
|
+
default: () => void;
|
|
7
|
+
};
|
|
8
|
+
toolbarAttrs: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
default: () => void;
|
|
11
|
+
};
|
|
12
|
+
toolbarListeners: ObjectConstructor;
|
|
13
|
+
treeAttrs: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
default: () => void;
|
|
16
|
+
};
|
|
17
|
+
treeListeners: ObjectConstructor;
|
|
18
|
+
tableAttrs: ObjectConstructor;
|
|
19
|
+
searchModel: ObjectConstructor;
|
|
20
|
+
tableListeners: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
default: () => void;
|
|
23
|
+
};
|
|
24
|
+
deleteApi: FunctionConstructor;
|
|
25
|
+
borderTop: BooleanConstructor;
|
|
26
|
+
borderBottom: BooleanConstructor;
|
|
27
|
+
borderLeft: BooleanConstructor;
|
|
28
|
+
borderRight: BooleanConstructor;
|
|
29
|
+
border: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
labelWidth: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
formPath: (StringConstructor | FunctionConstructor)[];
|
|
38
|
+
searchFormPosition: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
embed: BooleanConstructor;
|
|
43
|
+
deleteTips: StringConstructor;
|
|
44
|
+
selectTips: StringConstructor;
|
|
45
|
+
rowKey: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
expandSearch: BooleanConstructor;
|
|
50
|
+
showToolbar: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
}>, {}, {
|
|
55
|
+
importDialogVisible: boolean;
|
|
56
|
+
selectedRows: never[];
|
|
57
|
+
isSearchVisible: boolean;
|
|
58
|
+
}, {
|
|
59
|
+
buttonSlots(): string[];
|
|
60
|
+
toolbarProps(): any;
|
|
61
|
+
treeProps(): Record<string, any>;
|
|
62
|
+
tableProps(): Record<string, any>;
|
|
63
|
+
searchPanelProps(): Record<string, any>;
|
|
64
|
+
toolbarEventHandlers(): {
|
|
65
|
+
[x: string]: any;
|
|
66
|
+
};
|
|
67
|
+
tableScopeSlotNames(): any;
|
|
68
|
+
}, {
|
|
69
|
+
toHyphenateKey: (properties: Record<string, any>) => Record<string, any>;
|
|
70
|
+
onTreeScroll(): void;
|
|
71
|
+
toggleSearch(): void;
|
|
72
|
+
onSearchClick(): void;
|
|
73
|
+
onClearClick(): void;
|
|
74
|
+
openFrom(row: any): void;
|
|
75
|
+
rowDbClick(row: any): void;
|
|
76
|
+
onSelectionChange(rows: any): void;
|
|
77
|
+
create(): void;
|
|
78
|
+
del(): Promise<void>;
|
|
79
|
+
reloadTable(): void;
|
|
80
|
+
refreshTable(useLoading: any): Promise<void>;
|
|
81
|
+
reloadTree(): void;
|
|
82
|
+
reloadTableAndTree(): void;
|
|
83
|
+
currentRow(): any;
|
|
84
|
+
getPageQuery(): any;
|
|
85
|
+
exp(): void;
|
|
86
|
+
getTableColumns(): any;
|
|
87
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "reset"[], "reset", import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
88
|
+
viewId: (StringConstructor | ArrayConstructor)[];
|
|
89
|
+
searchPanelAttrs: {
|
|
90
|
+
type: ObjectConstructor;
|
|
91
|
+
default: () => void;
|
|
92
|
+
};
|
|
93
|
+
toolbarAttrs: {
|
|
94
|
+
type: ObjectConstructor;
|
|
95
|
+
default: () => void;
|
|
96
|
+
};
|
|
97
|
+
toolbarListeners: ObjectConstructor;
|
|
98
|
+
treeAttrs: {
|
|
99
|
+
type: ObjectConstructor;
|
|
100
|
+
default: () => void;
|
|
101
|
+
};
|
|
102
|
+
treeListeners: ObjectConstructor;
|
|
103
|
+
tableAttrs: ObjectConstructor;
|
|
104
|
+
searchModel: ObjectConstructor;
|
|
105
|
+
tableListeners: {
|
|
106
|
+
type: ObjectConstructor;
|
|
107
|
+
default: () => void;
|
|
108
|
+
};
|
|
109
|
+
deleteApi: FunctionConstructor;
|
|
110
|
+
borderTop: BooleanConstructor;
|
|
111
|
+
borderBottom: BooleanConstructor;
|
|
112
|
+
borderLeft: BooleanConstructor;
|
|
113
|
+
borderRight: BooleanConstructor;
|
|
114
|
+
border: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
labelWidth: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
formPath: (StringConstructor | FunctionConstructor)[];
|
|
123
|
+
searchFormPosition: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
embed: BooleanConstructor;
|
|
128
|
+
deleteTips: StringConstructor;
|
|
129
|
+
selectTips: StringConstructor;
|
|
130
|
+
rowKey: {
|
|
131
|
+
type: StringConstructor;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
expandSearch: BooleanConstructor;
|
|
135
|
+
showToolbar: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
}>> & Readonly<{
|
|
140
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
141
|
+
}>, {
|
|
142
|
+
embed: boolean;
|
|
143
|
+
labelWidth: string;
|
|
144
|
+
border: boolean;
|
|
145
|
+
rowKey: string;
|
|
146
|
+
borderTop: boolean;
|
|
147
|
+
borderBottom: boolean;
|
|
148
|
+
borderLeft: boolean;
|
|
149
|
+
borderRight: boolean;
|
|
150
|
+
expandSearch: boolean;
|
|
151
|
+
searchPanelAttrs: Record<string, any>;
|
|
152
|
+
toolbarAttrs: Record<string, any>;
|
|
153
|
+
treeAttrs: Record<string, any>;
|
|
154
|
+
tableListeners: Record<string, any>;
|
|
155
|
+
searchFormPosition: string;
|
|
156
|
+
showToolbar: boolean;
|
|
157
|
+
}, {}, {}, {}, string, () => {
|
|
158
|
+
[tableViewContextKey]: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
159
|
+
viewId: (StringConstructor | ArrayConstructor)[];
|
|
160
|
+
searchPanelAttrs: {
|
|
161
|
+
type: ObjectConstructor;
|
|
162
|
+
default: () => void;
|
|
163
|
+
};
|
|
164
|
+
toolbarAttrs: {
|
|
165
|
+
type: ObjectConstructor;
|
|
166
|
+
default: () => void;
|
|
167
|
+
};
|
|
168
|
+
toolbarListeners: ObjectConstructor;
|
|
169
|
+
treeAttrs: {
|
|
170
|
+
type: ObjectConstructor;
|
|
171
|
+
default: () => void;
|
|
172
|
+
};
|
|
173
|
+
treeListeners: ObjectConstructor;
|
|
174
|
+
tableAttrs: ObjectConstructor;
|
|
175
|
+
searchModel: ObjectConstructor;
|
|
176
|
+
tableListeners: {
|
|
177
|
+
type: ObjectConstructor;
|
|
178
|
+
default: () => void;
|
|
179
|
+
};
|
|
180
|
+
deleteApi: FunctionConstructor;
|
|
181
|
+
borderTop: BooleanConstructor;
|
|
182
|
+
borderBottom: BooleanConstructor;
|
|
183
|
+
borderLeft: BooleanConstructor;
|
|
184
|
+
borderRight: BooleanConstructor;
|
|
185
|
+
border: {
|
|
186
|
+
type: BooleanConstructor;
|
|
187
|
+
default: boolean;
|
|
188
|
+
};
|
|
189
|
+
labelWidth: {
|
|
190
|
+
type: StringConstructor;
|
|
191
|
+
default: string;
|
|
192
|
+
};
|
|
193
|
+
formPath: (StringConstructor | FunctionConstructor)[];
|
|
194
|
+
searchFormPosition: {
|
|
195
|
+
type: StringConstructor;
|
|
196
|
+
default: string;
|
|
197
|
+
};
|
|
198
|
+
embed: BooleanConstructor;
|
|
199
|
+
deleteTips: StringConstructor;
|
|
200
|
+
selectTips: StringConstructor;
|
|
201
|
+
rowKey: {
|
|
202
|
+
type: StringConstructor;
|
|
203
|
+
default: string;
|
|
204
|
+
};
|
|
205
|
+
expandSearch: BooleanConstructor;
|
|
206
|
+
showToolbar: {
|
|
207
|
+
type: BooleanConstructor;
|
|
208
|
+
default: boolean;
|
|
209
|
+
};
|
|
210
|
+
}>> & Readonly<{
|
|
211
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
212
|
+
}>, {}, {
|
|
213
|
+
importDialogVisible: boolean;
|
|
214
|
+
selectedRows: never[];
|
|
215
|
+
isSearchVisible: boolean;
|
|
216
|
+
}, {
|
|
217
|
+
buttonSlots(): string[];
|
|
218
|
+
toolbarProps(): any;
|
|
219
|
+
treeProps(): Record<string, any>;
|
|
220
|
+
tableProps(): Record<string, any>;
|
|
221
|
+
searchPanelProps(): Record<string, any>;
|
|
222
|
+
toolbarEventHandlers(): {
|
|
223
|
+
[x: string]: any;
|
|
224
|
+
};
|
|
225
|
+
tableScopeSlotNames(): any;
|
|
226
|
+
}, {
|
|
227
|
+
toHyphenateKey: (properties: Record<string, any>) => Record<string, any>;
|
|
228
|
+
onTreeScroll(): void;
|
|
229
|
+
toggleSearch(): void;
|
|
230
|
+
onSearchClick(): void;
|
|
231
|
+
onClearClick(): void;
|
|
232
|
+
openFrom(row: any): void;
|
|
233
|
+
rowDbClick(row: any): void;
|
|
234
|
+
onSelectionChange(rows: any): void;
|
|
235
|
+
create(): void;
|
|
236
|
+
del(): Promise<void>;
|
|
237
|
+
reloadTable(): void;
|
|
238
|
+
refreshTable(useLoading: any): Promise<void>;
|
|
239
|
+
reloadTree(): void;
|
|
240
|
+
reloadTableAndTree(): void;
|
|
241
|
+
currentRow(): any;
|
|
242
|
+
getPageQuery(): any;
|
|
243
|
+
exp(): void;
|
|
244
|
+
getTableColumns(): any;
|
|
245
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "reset"[], {}, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
246
|
+
P: {};
|
|
247
|
+
B: {};
|
|
248
|
+
D: {};
|
|
249
|
+
C: {};
|
|
250
|
+
M: {};
|
|
251
|
+
Defaults: {};
|
|
252
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
253
|
+
viewId: (StringConstructor | ArrayConstructor)[];
|
|
254
|
+
searchPanelAttrs: {
|
|
255
|
+
type: ObjectConstructor;
|
|
256
|
+
default: () => void;
|
|
257
|
+
};
|
|
258
|
+
toolbarAttrs: {
|
|
259
|
+
type: ObjectConstructor;
|
|
260
|
+
default: () => void;
|
|
261
|
+
};
|
|
262
|
+
toolbarListeners: ObjectConstructor;
|
|
263
|
+
treeAttrs: {
|
|
264
|
+
type: ObjectConstructor;
|
|
265
|
+
default: () => void;
|
|
266
|
+
};
|
|
267
|
+
treeListeners: ObjectConstructor;
|
|
268
|
+
tableAttrs: ObjectConstructor;
|
|
269
|
+
searchModel: ObjectConstructor;
|
|
270
|
+
tableListeners: {
|
|
271
|
+
type: ObjectConstructor;
|
|
272
|
+
default: () => void;
|
|
273
|
+
};
|
|
274
|
+
deleteApi: FunctionConstructor;
|
|
275
|
+
borderTop: BooleanConstructor;
|
|
276
|
+
borderBottom: BooleanConstructor;
|
|
277
|
+
borderLeft: BooleanConstructor;
|
|
278
|
+
borderRight: BooleanConstructor;
|
|
279
|
+
border: {
|
|
280
|
+
type: BooleanConstructor;
|
|
281
|
+
default: boolean;
|
|
282
|
+
};
|
|
283
|
+
labelWidth: {
|
|
284
|
+
type: StringConstructor;
|
|
285
|
+
default: string;
|
|
286
|
+
};
|
|
287
|
+
formPath: (StringConstructor | FunctionConstructor)[];
|
|
288
|
+
searchFormPosition: {
|
|
289
|
+
type: StringConstructor;
|
|
290
|
+
default: string;
|
|
291
|
+
};
|
|
292
|
+
embed: BooleanConstructor;
|
|
293
|
+
deleteTips: StringConstructor;
|
|
294
|
+
selectTips: StringConstructor;
|
|
295
|
+
rowKey: {
|
|
296
|
+
type: StringConstructor;
|
|
297
|
+
default: string;
|
|
298
|
+
};
|
|
299
|
+
expandSearch: BooleanConstructor;
|
|
300
|
+
showToolbar: {
|
|
301
|
+
type: BooleanConstructor;
|
|
302
|
+
default: boolean;
|
|
303
|
+
};
|
|
304
|
+
}>> & Readonly<{
|
|
305
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
306
|
+
}>, {}, {
|
|
307
|
+
importDialogVisible: boolean;
|
|
308
|
+
selectedRows: never[];
|
|
309
|
+
isSearchVisible: boolean;
|
|
310
|
+
}, {
|
|
311
|
+
buttonSlots(): string[];
|
|
312
|
+
toolbarProps(): any;
|
|
313
|
+
treeProps(): Record<string, any>;
|
|
314
|
+
tableProps(): Record<string, any>;
|
|
315
|
+
searchPanelProps(): Record<string, any>;
|
|
316
|
+
toolbarEventHandlers(): {
|
|
317
|
+
[x: string]: any;
|
|
318
|
+
};
|
|
319
|
+
tableScopeSlotNames(): any;
|
|
320
|
+
}, {
|
|
321
|
+
toHyphenateKey: (properties: Record<string, any>) => Record<string, any>;
|
|
322
|
+
onTreeScroll(): void;
|
|
323
|
+
toggleSearch(): void;
|
|
324
|
+
onSearchClick(): void;
|
|
325
|
+
onClearClick(): void;
|
|
326
|
+
openFrom(row: any): void;
|
|
327
|
+
rowDbClick(row: any): void;
|
|
328
|
+
onSelectionChange(rows: any): void;
|
|
329
|
+
create(): void;
|
|
330
|
+
del(): Promise<void>;
|
|
331
|
+
reloadTable(): void;
|
|
332
|
+
refreshTable(useLoading: any): Promise<void>;
|
|
333
|
+
reloadTree(): void;
|
|
334
|
+
reloadTableAndTree(): void;
|
|
335
|
+
currentRow(): any;
|
|
336
|
+
getPageQuery(): any;
|
|
337
|
+
exp(): void;
|
|
338
|
+
getTableColumns(): any;
|
|
339
|
+
}, {}>;
|
|
340
|
+
}, true, {}, any>;
|
|
2
341
|
export default _default;
|