@sepveneto/dnde-core 0.1.0 → 0.3.0
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/dist/{Widget-BRcHUoH6.d.cts → Widget-BXpoxMwR.d.cts} +23 -2
- package/dist/{Widget-BRcHUoH6.d.ts → Widget-BXpoxMwR.d.ts} +23 -2
- package/dist/{chunk-CJZUQN2X.js → chunk-KHPFRVKB.js} +14 -0
- package/dist/{chunk-AEGKV2TZ.js → chunk-KTDOAEEU.js} +36 -0
- package/dist/{chunk-WPER3YKQ.js → chunk-QWT3TZVQ.js} +22 -0
- package/dist/{chunk-YSTVVZUQ.js → chunk-VY2Z4X4S.js} +2 -1
- package/dist/{chunk-QYATL3P2.js → chunk-ZNYRMDSU.js} +1 -1
- package/dist/class/Container.cjs +14 -0
- package/dist/class/Container.d.cts +1 -1
- package/dist/class/Container.d.ts +1 -1
- package/dist/class/Container.js +2 -2
- package/dist/class/Node.cjs +22 -0
- package/dist/class/Node.d.cts +6 -1
- package/dist/class/Node.d.ts +6 -1
- package/dist/class/Node.js +1 -1
- package/dist/class/Widget.cjs +14 -0
- package/dist/class/Widget.d.cts +2 -2
- package/dist/class/Widget.d.ts +2 -2
- package/dist/class/Widget.js +1 -1
- package/dist/class/index.cjs +36 -0
- package/dist/class/index.d.cts +1 -1
- package/dist/class/index.d.ts +1 -1
- package/dist/class/index.js +3 -3
- package/dist/helper/index.cjs +38 -1
- package/dist/helper/index.d.cts +1 -1
- package/dist/helper/index.d.ts +1 -1
- package/dist/helper/index.js +2 -2
- package/dist/helper/schema.cjs +36 -0
- package/dist/helper/schema.d.cts +16 -2
- package/dist/helper/schema.d.ts +16 -2
- package/dist/helper/schema.js +1 -1
- package/dist/helper/widget.cjs +2 -1
- package/dist/helper/widget.d.cts +5 -1
- package/dist/helper/widget.d.ts +5 -1
- package/dist/helper/widget.js +1 -1
- package/dist/index.cjs +38 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/tokens.d.cts +2 -1
- package/dist/tokens.d.ts +2 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -6
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FormItemRule, UploadRequestOptions, InputInstance, ElOption, SelectInstance, InputNumberInstance } from 'element-plus';
|
|
1
|
+
import { FormItemRule, UploadRequestOptions, InputInstance, ElOption, SelectInstance, InputNumberInstance, SwitchInstance, ImageInstance } from 'element-plus';
|
|
2
|
+
import * as vue from 'vue';
|
|
2
3
|
import { CSSProperties } from 'vue';
|
|
3
4
|
import Validator from 'async-validator';
|
|
4
5
|
|
|
@@ -14,14 +15,18 @@ interface Base {
|
|
|
14
15
|
_view: string;
|
|
15
16
|
_icon?: string;
|
|
16
17
|
container?: boolean;
|
|
18
|
+
isShow?: boolean;
|
|
17
19
|
meta?: {
|
|
18
20
|
draggable?: boolean;
|
|
21
|
+
visible?: boolean;
|
|
22
|
+
fixed?: boolean;
|
|
19
23
|
};
|
|
20
24
|
schema?: {
|
|
21
25
|
props?: SchemaItem[];
|
|
22
26
|
style?: SchemaItem[];
|
|
23
27
|
};
|
|
24
28
|
style?: CSSProperties & WidgetPos;
|
|
29
|
+
data?: Record<string, any> | any[];
|
|
25
30
|
}
|
|
26
31
|
type BaseKey = '_inContainer' | '_custom' | '_disableDel' | '_name' | '_schema' | '_uuid' | '_view';
|
|
27
32
|
type IWidget = Base;
|
|
@@ -144,10 +149,22 @@ interface SchemaItemNumber extends SchemaItemBase {
|
|
|
144
149
|
type: 'number';
|
|
145
150
|
attrs?: InputNumberInstance['$props'];
|
|
146
151
|
}
|
|
152
|
+
interface SchemaItemSwitch extends SchemaItemBase {
|
|
153
|
+
type: 'switch';
|
|
154
|
+
attrs?: SwitchInstance['$props'];
|
|
155
|
+
}
|
|
156
|
+
interface SchemaItemImage extends SchemaItemBase {
|
|
157
|
+
type: 'image';
|
|
158
|
+
attrs?: ImageInstance['$props'];
|
|
159
|
+
}
|
|
160
|
+
interface SchemaItemCustom extends SchemaItemBase {
|
|
161
|
+
type: string;
|
|
162
|
+
attrs?: Record<string, any>;
|
|
163
|
+
}
|
|
147
164
|
interface SchemaItemStyleNumber extends SchemaItemBase {
|
|
148
165
|
type: 'styleNumber';
|
|
149
166
|
}
|
|
150
|
-
type SchemaItem = ShcemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemStyleNumber;
|
|
167
|
+
type SchemaItem = ShcemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemImage | SchemaItemCustom | SchemaItemStyleNumber;
|
|
151
168
|
declare class Widget {
|
|
152
169
|
name: string;
|
|
153
170
|
view: string;
|
|
@@ -158,7 +175,11 @@ declare class Widget {
|
|
|
158
175
|
get icon(): string | undefined;
|
|
159
176
|
get props(): SchemaItem[];
|
|
160
177
|
get style(): SchemaItem[];
|
|
178
|
+
get defaultStyle(): (vue.CSSProperties & WidgetPos) | undefined;
|
|
179
|
+
get defaultData(): any[] | Record<string, any> | undefined;
|
|
161
180
|
get draggable(): boolean;
|
|
181
|
+
get isFixed(): boolean | undefined;
|
|
182
|
+
get visible(): boolean;
|
|
162
183
|
get validatorProps(): Validator;
|
|
163
184
|
get validatorStyle(): Validator;
|
|
164
185
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FormItemRule, UploadRequestOptions, InputInstance, ElOption, SelectInstance, InputNumberInstance } from 'element-plus';
|
|
1
|
+
import { FormItemRule, UploadRequestOptions, InputInstance, ElOption, SelectInstance, InputNumberInstance, SwitchInstance, ImageInstance } from 'element-plus';
|
|
2
|
+
import * as vue from 'vue';
|
|
2
3
|
import { CSSProperties } from 'vue';
|
|
3
4
|
import Validator from 'async-validator';
|
|
4
5
|
|
|
@@ -14,14 +15,18 @@ interface Base {
|
|
|
14
15
|
_view: string;
|
|
15
16
|
_icon?: string;
|
|
16
17
|
container?: boolean;
|
|
18
|
+
isShow?: boolean;
|
|
17
19
|
meta?: {
|
|
18
20
|
draggable?: boolean;
|
|
21
|
+
visible?: boolean;
|
|
22
|
+
fixed?: boolean;
|
|
19
23
|
};
|
|
20
24
|
schema?: {
|
|
21
25
|
props?: SchemaItem[];
|
|
22
26
|
style?: SchemaItem[];
|
|
23
27
|
};
|
|
24
28
|
style?: CSSProperties & WidgetPos;
|
|
29
|
+
data?: Record<string, any> | any[];
|
|
25
30
|
}
|
|
26
31
|
type BaseKey = '_inContainer' | '_custom' | '_disableDel' | '_name' | '_schema' | '_uuid' | '_view';
|
|
27
32
|
type IWidget = Base;
|
|
@@ -144,10 +149,22 @@ interface SchemaItemNumber extends SchemaItemBase {
|
|
|
144
149
|
type: 'number';
|
|
145
150
|
attrs?: InputNumberInstance['$props'];
|
|
146
151
|
}
|
|
152
|
+
interface SchemaItemSwitch extends SchemaItemBase {
|
|
153
|
+
type: 'switch';
|
|
154
|
+
attrs?: SwitchInstance['$props'];
|
|
155
|
+
}
|
|
156
|
+
interface SchemaItemImage extends SchemaItemBase {
|
|
157
|
+
type: 'image';
|
|
158
|
+
attrs?: ImageInstance['$props'];
|
|
159
|
+
}
|
|
160
|
+
interface SchemaItemCustom extends SchemaItemBase {
|
|
161
|
+
type: string;
|
|
162
|
+
attrs?: Record<string, any>;
|
|
163
|
+
}
|
|
147
164
|
interface SchemaItemStyleNumber extends SchemaItemBase {
|
|
148
165
|
type: 'styleNumber';
|
|
149
166
|
}
|
|
150
|
-
type SchemaItem = ShcemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemStyleNumber;
|
|
167
|
+
type SchemaItem = ShcemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemImage | SchemaItemCustom | SchemaItemStyleNumber;
|
|
151
168
|
declare class Widget {
|
|
152
169
|
name: string;
|
|
153
170
|
view: string;
|
|
@@ -158,7 +175,11 @@ declare class Widget {
|
|
|
158
175
|
get icon(): string | undefined;
|
|
159
176
|
get props(): SchemaItem[];
|
|
160
177
|
get style(): SchemaItem[];
|
|
178
|
+
get defaultStyle(): (vue.CSSProperties & WidgetPos) | undefined;
|
|
179
|
+
get defaultData(): any[] | Record<string, any> | undefined;
|
|
161
180
|
get draggable(): boolean;
|
|
181
|
+
get isFixed(): boolean | undefined;
|
|
182
|
+
get visible(): boolean;
|
|
162
183
|
get validatorProps(): Validator;
|
|
163
184
|
get validatorStyle(): Validator;
|
|
164
185
|
}
|
|
@@ -21,10 +21,24 @@ var Widget = class _Widget {
|
|
|
21
21
|
var _a;
|
|
22
22
|
return ((_a = this._data.schema) == null ? void 0 : _a.style) || [];
|
|
23
23
|
}
|
|
24
|
+
get defaultStyle() {
|
|
25
|
+
return this._data.style;
|
|
26
|
+
}
|
|
27
|
+
get defaultData() {
|
|
28
|
+
return this._data.data;
|
|
29
|
+
}
|
|
24
30
|
get draggable() {
|
|
25
31
|
var _a, _b;
|
|
26
32
|
return (_b = (_a = this._data.meta) == null ? void 0 : _a.draggable) != null ? _b : true;
|
|
27
33
|
}
|
|
34
|
+
get isFixed() {
|
|
35
|
+
var _a;
|
|
36
|
+
return (_a = this._data.meta) == null ? void 0 : _a.fixed;
|
|
37
|
+
}
|
|
38
|
+
get visible() {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return (_b = (_a = this._data.meta) == null ? void 0 : _a.visible) != null ? _b : true;
|
|
41
|
+
}
|
|
28
42
|
get validatorProps() {
|
|
29
43
|
var _a, _b;
|
|
30
44
|
const _rules = ((_b = (_a = this._data.schema) == null ? void 0 : _a.props) == null ? void 0 : _b.reduce((all, curr) => {
|
|
@@ -33,6 +33,42 @@ var schema = {
|
|
|
33
33
|
options: config.options
|
|
34
34
|
};
|
|
35
35
|
},
|
|
36
|
+
switch(config) {
|
|
37
|
+
return {
|
|
38
|
+
label: config.label,
|
|
39
|
+
key: config.key,
|
|
40
|
+
type: "switch",
|
|
41
|
+
attrs: config.attrs,
|
|
42
|
+
rules: normalizeRules(config)
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
image(config) {
|
|
46
|
+
return {
|
|
47
|
+
label: config.label,
|
|
48
|
+
key: config.key,
|
|
49
|
+
type: "image",
|
|
50
|
+
attrs: config.attrs,
|
|
51
|
+
rules: normalizeRules(config)
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
time(config) {
|
|
55
|
+
return {
|
|
56
|
+
label: config.label,
|
|
57
|
+
key: config.key,
|
|
58
|
+
type: "datetimePicker",
|
|
59
|
+
attrs: config.attrs,
|
|
60
|
+
rules: normalizeRules(config)
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
custom(config) {
|
|
64
|
+
return {
|
|
65
|
+
label: config.label,
|
|
66
|
+
key: config.key,
|
|
67
|
+
type: config.type,
|
|
68
|
+
attrs: config.attrs,
|
|
69
|
+
rules: normalizeRules(config)
|
|
70
|
+
};
|
|
71
|
+
},
|
|
36
72
|
styleNumber(config) {
|
|
37
73
|
return {
|
|
38
74
|
label: config.label,
|
|
@@ -20,6 +20,11 @@ var Node = class _Node {
|
|
|
20
20
|
this.data = (info == null ? void 0 : info.props) || {};
|
|
21
21
|
this.style = (info == null ? void 0 : info.style) || {};
|
|
22
22
|
}
|
|
23
|
+
get info() {
|
|
24
|
+
return __spreadValues({
|
|
25
|
+
style: this.style
|
|
26
|
+
}, this.data);
|
|
27
|
+
}
|
|
23
28
|
get isContainer() {
|
|
24
29
|
return !!this.widget.container;
|
|
25
30
|
}
|
|
@@ -37,6 +42,10 @@ var Node = class _Node {
|
|
|
37
42
|
var _a;
|
|
38
43
|
return ((_a = this.widget) == null ? void 0 : _a.name) || "\u9875\u9762";
|
|
39
44
|
}
|
|
45
|
+
get visible() {
|
|
46
|
+
if ("isShow" in this.data)
|
|
47
|
+
return Boolean(this.data.isShow);
|
|
48
|
+
}
|
|
40
49
|
validate(only = false) {
|
|
41
50
|
return __async(this, null, function* () {
|
|
42
51
|
const valid = yield Promise.all([
|
|
@@ -103,6 +112,19 @@ var RootNode = class {
|
|
|
103
112
|
this.data = (info == null ? void 0 : info.props) || {};
|
|
104
113
|
this.style = (info == null ? void 0 : info.style) || {};
|
|
105
114
|
}
|
|
115
|
+
validate(only = false) {
|
|
116
|
+
return __async(this, null, function* () {
|
|
117
|
+
if (only || !this.list) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
for (const item of this.list) {
|
|
121
|
+
const invalid = yield item.validate();
|
|
122
|
+
if (invalid) {
|
|
123
|
+
return invalid;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
106
128
|
};
|
|
107
129
|
|
|
108
130
|
export {
|
package/dist/class/Container.cjs
CHANGED
|
@@ -57,10 +57,24 @@ var Widget = class _Widget {
|
|
|
57
57
|
var _a;
|
|
58
58
|
return ((_a = this._data.schema) == null ? void 0 : _a.style) || [];
|
|
59
59
|
}
|
|
60
|
+
get defaultStyle() {
|
|
61
|
+
return this._data.style;
|
|
62
|
+
}
|
|
63
|
+
get defaultData() {
|
|
64
|
+
return this._data.data;
|
|
65
|
+
}
|
|
60
66
|
get draggable() {
|
|
61
67
|
var _a, _b;
|
|
62
68
|
return (_b = (_a = this._data.meta) == null ? void 0 : _a.draggable) != null ? _b : true;
|
|
63
69
|
}
|
|
70
|
+
get isFixed() {
|
|
71
|
+
var _a;
|
|
72
|
+
return (_a = this._data.meta) == null ? void 0 : _a.fixed;
|
|
73
|
+
}
|
|
74
|
+
get visible() {
|
|
75
|
+
var _a, _b;
|
|
76
|
+
return (_b = (_a = this._data.meta) == null ? void 0 : _a.visible) != null ? _b : true;
|
|
77
|
+
}
|
|
64
78
|
get validatorProps() {
|
|
65
79
|
var _a, _b;
|
|
66
80
|
const _rules = ((_b = (_a = this._data.schema) == null ? void 0 : _a.props) == null ? void 0 : _b.reduce((all, curr) => {
|
package/dist/class/Container.js
CHANGED
package/dist/class/Node.cjs
CHANGED
|
@@ -76,6 +76,11 @@ var Node = class _Node {
|
|
|
76
76
|
this.data = (info == null ? void 0 : info.props) || {};
|
|
77
77
|
this.style = (info == null ? void 0 : info.style) || {};
|
|
78
78
|
}
|
|
79
|
+
get info() {
|
|
80
|
+
return __spreadValues({
|
|
81
|
+
style: this.style
|
|
82
|
+
}, this.data);
|
|
83
|
+
}
|
|
79
84
|
get isContainer() {
|
|
80
85
|
return !!this.widget.container;
|
|
81
86
|
}
|
|
@@ -93,6 +98,10 @@ var Node = class _Node {
|
|
|
93
98
|
var _a;
|
|
94
99
|
return ((_a = this.widget) == null ? void 0 : _a.name) || "\u9875\u9762";
|
|
95
100
|
}
|
|
101
|
+
get visible() {
|
|
102
|
+
if ("isShow" in this.data)
|
|
103
|
+
return Boolean(this.data.isShow);
|
|
104
|
+
}
|
|
96
105
|
validate(only = false) {
|
|
97
106
|
return __async(this, null, function* () {
|
|
98
107
|
const valid = yield Promise.all([
|
|
@@ -159,6 +168,19 @@ var RootNode = class {
|
|
|
159
168
|
this.data = (info == null ? void 0 : info.props) || {};
|
|
160
169
|
this.style = (info == null ? void 0 : info.style) || {};
|
|
161
170
|
}
|
|
171
|
+
validate(only = false) {
|
|
172
|
+
return __async(this, null, function* () {
|
|
173
|
+
if (only || !this.list) {
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
for (const item of this.list) {
|
|
177
|
+
const invalid = yield item.validate();
|
|
178
|
+
if (invalid) {
|
|
179
|
+
return invalid;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
}
|
|
162
184
|
};
|
|
163
185
|
// Annotate the CommonJS export names for ESM import in node:
|
|
164
186
|
0 && (module.exports = {
|
package/dist/class/Node.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { k as Widget } from '../Widget-
|
|
2
|
+
import { k as Widget } from '../Widget-BXpoxMwR.cjs';
|
|
3
3
|
import 'element-plus';
|
|
4
4
|
import 'async-validator';
|
|
5
5
|
|
|
@@ -18,11 +18,15 @@ declare class Node {
|
|
|
18
18
|
style?: Node['style'];
|
|
19
19
|
list?: Node['list'];
|
|
20
20
|
});
|
|
21
|
+
get info(): {
|
|
22
|
+
style: CSSProperties;
|
|
23
|
+
};
|
|
21
24
|
get isContainer(): boolean;
|
|
22
25
|
get hasList(): boolean;
|
|
23
26
|
get mouseover(): boolean;
|
|
24
27
|
get type(): string;
|
|
25
28
|
get name(): string;
|
|
29
|
+
get visible(): boolean | undefined;
|
|
26
30
|
validate(only?: boolean): Promise<string | undefined>;
|
|
27
31
|
triggerHover(hover: boolean): void;
|
|
28
32
|
setList(list: Node[]): void;
|
|
@@ -44,6 +48,7 @@ declare class RootNode {
|
|
|
44
48
|
style?: Node['style'];
|
|
45
49
|
list?: Node['list'];
|
|
46
50
|
});
|
|
51
|
+
validate(only?: boolean): Promise<any>;
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
export { Node, RootNode };
|
package/dist/class/Node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { k as Widget } from '../Widget-
|
|
2
|
+
import { k as Widget } from '../Widget-BXpoxMwR.js';
|
|
3
3
|
import 'element-plus';
|
|
4
4
|
import 'async-validator';
|
|
5
5
|
|
|
@@ -18,11 +18,15 @@ declare class Node {
|
|
|
18
18
|
style?: Node['style'];
|
|
19
19
|
list?: Node['list'];
|
|
20
20
|
});
|
|
21
|
+
get info(): {
|
|
22
|
+
style: CSSProperties;
|
|
23
|
+
};
|
|
21
24
|
get isContainer(): boolean;
|
|
22
25
|
get hasList(): boolean;
|
|
23
26
|
get mouseover(): boolean;
|
|
24
27
|
get type(): string;
|
|
25
28
|
get name(): string;
|
|
29
|
+
get visible(): boolean | undefined;
|
|
26
30
|
validate(only?: boolean): Promise<string | undefined>;
|
|
27
31
|
triggerHover(hover: boolean): void;
|
|
28
32
|
setList(list: Node[]): void;
|
|
@@ -44,6 +48,7 @@ declare class RootNode {
|
|
|
44
48
|
style?: Node['style'];
|
|
45
49
|
list?: Node['list'];
|
|
46
50
|
});
|
|
51
|
+
validate(only?: boolean): Promise<any>;
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
export { Node, RootNode };
|
package/dist/class/Node.js
CHANGED
package/dist/class/Widget.cjs
CHANGED
|
@@ -55,10 +55,24 @@ var Widget = class _Widget {
|
|
|
55
55
|
var _a;
|
|
56
56
|
return ((_a = this._data.schema) == null ? void 0 : _a.style) || [];
|
|
57
57
|
}
|
|
58
|
+
get defaultStyle() {
|
|
59
|
+
return this._data.style;
|
|
60
|
+
}
|
|
61
|
+
get defaultData() {
|
|
62
|
+
return this._data.data;
|
|
63
|
+
}
|
|
58
64
|
get draggable() {
|
|
59
65
|
var _a, _b;
|
|
60
66
|
return (_b = (_a = this._data.meta) == null ? void 0 : _a.draggable) != null ? _b : true;
|
|
61
67
|
}
|
|
68
|
+
get isFixed() {
|
|
69
|
+
var _a;
|
|
70
|
+
return (_a = this._data.meta) == null ? void 0 : _a.fixed;
|
|
71
|
+
}
|
|
72
|
+
get visible() {
|
|
73
|
+
var _a, _b;
|
|
74
|
+
return (_b = (_a = this._data.meta) == null ? void 0 : _a.visible) != null ? _b : true;
|
|
75
|
+
}
|
|
62
76
|
get validatorProps() {
|
|
63
77
|
var _a, _b;
|
|
64
78
|
const _rules = ((_b = (_a = this._data.schema) == null ? void 0 : _a.props) == null ? void 0 : _b.reduce((all, curr) => {
|
package/dist/class/Widget.d.cts
CHANGED
package/dist/class/Widget.d.ts
CHANGED
package/dist/class/Widget.js
CHANGED
package/dist/class/index.cjs
CHANGED
|
@@ -97,10 +97,24 @@ var Widget = class _Widget {
|
|
|
97
97
|
var _a;
|
|
98
98
|
return ((_a = this._data.schema) == null ? void 0 : _a.style) || [];
|
|
99
99
|
}
|
|
100
|
+
get defaultStyle() {
|
|
101
|
+
return this._data.style;
|
|
102
|
+
}
|
|
103
|
+
get defaultData() {
|
|
104
|
+
return this._data.data;
|
|
105
|
+
}
|
|
100
106
|
get draggable() {
|
|
101
107
|
var _a, _b;
|
|
102
108
|
return (_b = (_a = this._data.meta) == null ? void 0 : _a.draggable) != null ? _b : true;
|
|
103
109
|
}
|
|
110
|
+
get isFixed() {
|
|
111
|
+
var _a;
|
|
112
|
+
return (_a = this._data.meta) == null ? void 0 : _a.fixed;
|
|
113
|
+
}
|
|
114
|
+
get visible() {
|
|
115
|
+
var _a, _b;
|
|
116
|
+
return (_b = (_a = this._data.meta) == null ? void 0 : _a.visible) != null ? _b : true;
|
|
117
|
+
}
|
|
104
118
|
get validatorProps() {
|
|
105
119
|
var _a, _b;
|
|
106
120
|
const _rules = ((_b = (_a = this._data.schema) == null ? void 0 : _a.props) == null ? void 0 : _b.reduce((all, curr) => {
|
|
@@ -145,6 +159,11 @@ var Node = class _Node {
|
|
|
145
159
|
this.data = (info == null ? void 0 : info.props) || {};
|
|
146
160
|
this.style = (info == null ? void 0 : info.style) || {};
|
|
147
161
|
}
|
|
162
|
+
get info() {
|
|
163
|
+
return __spreadValues({
|
|
164
|
+
style: this.style
|
|
165
|
+
}, this.data);
|
|
166
|
+
}
|
|
148
167
|
get isContainer() {
|
|
149
168
|
return !!this.widget.container;
|
|
150
169
|
}
|
|
@@ -162,6 +181,10 @@ var Node = class _Node {
|
|
|
162
181
|
var _a;
|
|
163
182
|
return ((_a = this.widget) == null ? void 0 : _a.name) || "\u9875\u9762";
|
|
164
183
|
}
|
|
184
|
+
get visible() {
|
|
185
|
+
if ("isShow" in this.data)
|
|
186
|
+
return Boolean(this.data.isShow);
|
|
187
|
+
}
|
|
165
188
|
validate(only = false) {
|
|
166
189
|
return __async(this, null, function* () {
|
|
167
190
|
const valid = yield Promise.all([
|
|
@@ -228,6 +251,19 @@ var RootNode = class {
|
|
|
228
251
|
this.data = (info == null ? void 0 : info.props) || {};
|
|
229
252
|
this.style = (info == null ? void 0 : info.style) || {};
|
|
230
253
|
}
|
|
254
|
+
validate(only = false) {
|
|
255
|
+
return __async(this, null, function* () {
|
|
256
|
+
if (only || !this.list) {
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
for (const item of this.list) {
|
|
260
|
+
const invalid = yield item.validate();
|
|
261
|
+
if (invalid) {
|
|
262
|
+
return invalid;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
}
|
|
231
267
|
};
|
|
232
268
|
// Annotate the CommonJS export names for ESM import in node:
|
|
233
269
|
0 && (module.exports = {
|
package/dist/class/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Container } from './Container.cjs';
|
|
2
2
|
export { Node, RootNode } from './Node.cjs';
|
|
3
|
-
export { j as SchemaItem, k as Widget } from '../Widget-
|
|
3
|
+
export { j as SchemaItem, k as Widget } from '../Widget-BXpoxMwR.cjs';
|
|
4
4
|
import 'vue';
|
|
5
5
|
import 'element-plus';
|
|
6
6
|
import 'async-validator';
|
package/dist/class/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Container } from './Container.js';
|
|
2
2
|
export { Node, RootNode } from './Node.js';
|
|
3
|
-
export { j as SchemaItem, k as Widget } from '../Widget-
|
|
3
|
+
export { j as SchemaItem, k as Widget } from '../Widget-BXpoxMwR.js';
|
|
4
4
|
import 'vue';
|
|
5
5
|
import 'element-plus';
|
|
6
6
|
import 'async-validator';
|
package/dist/class/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Container
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ZNYRMDSU.js";
|
|
4
4
|
import {
|
|
5
5
|
Node,
|
|
6
6
|
RootNode
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-QWT3TZVQ.js";
|
|
8
8
|
import {
|
|
9
9
|
Widget
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-KHPFRVKB.js";
|
|
11
11
|
import "../chunk-6FNC3XMI.js";
|
|
12
12
|
export {
|
|
13
13
|
Container,
|
package/dist/helper/index.cjs
CHANGED
|
@@ -96,6 +96,42 @@ var schema = {
|
|
|
96
96
|
options: config.options
|
|
97
97
|
};
|
|
98
98
|
},
|
|
99
|
+
switch(config) {
|
|
100
|
+
return {
|
|
101
|
+
label: config.label,
|
|
102
|
+
key: config.key,
|
|
103
|
+
type: "switch",
|
|
104
|
+
attrs: config.attrs,
|
|
105
|
+
rules: normalizeRules(config)
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
image(config) {
|
|
109
|
+
return {
|
|
110
|
+
label: config.label,
|
|
111
|
+
key: config.key,
|
|
112
|
+
type: "image",
|
|
113
|
+
attrs: config.attrs,
|
|
114
|
+
rules: normalizeRules(config)
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
time(config) {
|
|
118
|
+
return {
|
|
119
|
+
label: config.label,
|
|
120
|
+
key: config.key,
|
|
121
|
+
type: "datetimePicker",
|
|
122
|
+
attrs: config.attrs,
|
|
123
|
+
rules: normalizeRules(config)
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
custom(config) {
|
|
127
|
+
return {
|
|
128
|
+
label: config.label,
|
|
129
|
+
key: config.key,
|
|
130
|
+
type: config.type,
|
|
131
|
+
attrs: config.attrs,
|
|
132
|
+
rules: normalizeRules(config)
|
|
133
|
+
};
|
|
134
|
+
},
|
|
99
135
|
styleNumber(config) {
|
|
100
136
|
return {
|
|
101
137
|
label: config.label,
|
|
@@ -155,7 +191,8 @@ var widget = {
|
|
|
155
191
|
props: config.attributes,
|
|
156
192
|
style: config.stylesheet
|
|
157
193
|
},
|
|
158
|
-
style: config.defaultStyle
|
|
194
|
+
style: config.defaultStyle,
|
|
195
|
+
data: config.defaultData
|
|
159
196
|
};
|
|
160
197
|
},
|
|
161
198
|
group(name, list) {
|
package/dist/helper/index.d.cts
CHANGED
|
@@ -2,6 +2,6 @@ export { EventEmitter } from './EventEmitter.cjs';
|
|
|
2
2
|
export { schema } from './schema.cjs';
|
|
3
3
|
export { widget, widgetType } from './widget.cjs';
|
|
4
4
|
import 'element-plus';
|
|
5
|
-
import '../Widget-
|
|
5
|
+
import '../Widget-BXpoxMwR.cjs';
|
|
6
6
|
import 'vue';
|
|
7
7
|
import 'async-validator';
|
package/dist/helper/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export { EventEmitter } from './EventEmitter.js';
|
|
|
2
2
|
export { schema } from './schema.js';
|
|
3
3
|
export { widget, widgetType } from './widget.js';
|
|
4
4
|
import 'element-plus';
|
|
5
|
-
import '../Widget-
|
|
5
|
+
import '../Widget-BXpoxMwR.js';
|
|
6
6
|
import 'vue';
|
|
7
7
|
import 'async-validator';
|
package/dist/helper/index.js
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "../chunk-W776G2UQ.js";
|
|
5
5
|
import {
|
|
6
6
|
schema
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-KTDOAEEU.js";
|
|
8
8
|
import {
|
|
9
9
|
widget,
|
|
10
10
|
widgetType
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-VY2Z4X4S.js";
|
|
12
12
|
import "../chunk-XJ2IJHKH.js";
|
|
13
13
|
import "../chunk-6FNC3XMI.js";
|
|
14
14
|
export {
|
package/dist/helper/schema.cjs
CHANGED
|
@@ -60,6 +60,42 @@ var schema = {
|
|
|
60
60
|
options: config.options
|
|
61
61
|
};
|
|
62
62
|
},
|
|
63
|
+
switch(config) {
|
|
64
|
+
return {
|
|
65
|
+
label: config.label,
|
|
66
|
+
key: config.key,
|
|
67
|
+
type: "switch",
|
|
68
|
+
attrs: config.attrs,
|
|
69
|
+
rules: normalizeRules(config)
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
image(config) {
|
|
73
|
+
return {
|
|
74
|
+
label: config.label,
|
|
75
|
+
key: config.key,
|
|
76
|
+
type: "image",
|
|
77
|
+
attrs: config.attrs,
|
|
78
|
+
rules: normalizeRules(config)
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
time(config) {
|
|
82
|
+
return {
|
|
83
|
+
label: config.label,
|
|
84
|
+
key: config.key,
|
|
85
|
+
type: "datetimePicker",
|
|
86
|
+
attrs: config.attrs,
|
|
87
|
+
rules: normalizeRules(config)
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
custom(config) {
|
|
91
|
+
return {
|
|
92
|
+
label: config.label,
|
|
93
|
+
key: config.key,
|
|
94
|
+
type: config.type,
|
|
95
|
+
attrs: config.attrs,
|
|
96
|
+
rules: normalizeRules(config)
|
|
97
|
+
};
|
|
98
|
+
},
|
|
63
99
|
styleNumber(config) {
|
|
64
100
|
return {
|
|
65
101
|
label: config.label,
|
package/dist/helper/schema.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InputInstance, InputNumberInstance, SelectInstance, ElOption } from 'element-plus';
|
|
2
|
-
import { j as SchemaItem } from '../Widget-
|
|
1
|
+
import { InputInstance, InputNumberInstance, SelectInstance, ElOption, SwitchInstance, ImageInstance, DatePickerInstance } from 'element-plus';
|
|
2
|
+
import { j as SchemaItem } from '../Widget-BXpoxMwR.cjs';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import 'async-validator';
|
|
5
5
|
|
|
@@ -7,6 +7,7 @@ type Option = InstanceType<typeof ElOption>;
|
|
|
7
7
|
interface BaseConfig {
|
|
8
8
|
label: SchemaItem['label'];
|
|
9
9
|
key: SchemaItem['key'];
|
|
10
|
+
tips?: string;
|
|
10
11
|
required?: boolean | string;
|
|
11
12
|
rules?: SchemaItem['rules'];
|
|
12
13
|
}
|
|
@@ -21,6 +22,19 @@ declare const schema: {
|
|
|
21
22
|
attrs?: SelectInstance["$props"];
|
|
22
23
|
options?: Option["$props"][];
|
|
23
24
|
}): SchemaItem;
|
|
25
|
+
switch(config: BaseConfig & {
|
|
26
|
+
attrs?: SwitchInstance["$props"];
|
|
27
|
+
}): SchemaItem;
|
|
28
|
+
image(config: BaseConfig & {
|
|
29
|
+
attrs?: ImageInstance["$props"];
|
|
30
|
+
}): SchemaItem;
|
|
31
|
+
time(config: BaseConfig & {
|
|
32
|
+
attrs?: Partial<DatePickerInstance["$props"]>;
|
|
33
|
+
}): SchemaItem;
|
|
34
|
+
custom(config: BaseConfig & {
|
|
35
|
+
attrs?: Record<string, any>;
|
|
36
|
+
type: string;
|
|
37
|
+
}): SchemaItem;
|
|
24
38
|
styleNumber(config: BaseConfig): SchemaItem;
|
|
25
39
|
};
|
|
26
40
|
|
package/dist/helper/schema.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InputInstance, InputNumberInstance, SelectInstance, ElOption } from 'element-plus';
|
|
2
|
-
import { j as SchemaItem } from '../Widget-
|
|
1
|
+
import { InputInstance, InputNumberInstance, SelectInstance, ElOption, SwitchInstance, ImageInstance, DatePickerInstance } from 'element-plus';
|
|
2
|
+
import { j as SchemaItem } from '../Widget-BXpoxMwR.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import 'async-validator';
|
|
5
5
|
|
|
@@ -7,6 +7,7 @@ type Option = InstanceType<typeof ElOption>;
|
|
|
7
7
|
interface BaseConfig {
|
|
8
8
|
label: SchemaItem['label'];
|
|
9
9
|
key: SchemaItem['key'];
|
|
10
|
+
tips?: string;
|
|
10
11
|
required?: boolean | string;
|
|
11
12
|
rules?: SchemaItem['rules'];
|
|
12
13
|
}
|
|
@@ -21,6 +22,19 @@ declare const schema: {
|
|
|
21
22
|
attrs?: SelectInstance["$props"];
|
|
22
23
|
options?: Option["$props"][];
|
|
23
24
|
}): SchemaItem;
|
|
25
|
+
switch(config: BaseConfig & {
|
|
26
|
+
attrs?: SwitchInstance["$props"];
|
|
27
|
+
}): SchemaItem;
|
|
28
|
+
image(config: BaseConfig & {
|
|
29
|
+
attrs?: ImageInstance["$props"];
|
|
30
|
+
}): SchemaItem;
|
|
31
|
+
time(config: BaseConfig & {
|
|
32
|
+
attrs?: Partial<DatePickerInstance["$props"]>;
|
|
33
|
+
}): SchemaItem;
|
|
34
|
+
custom(config: BaseConfig & {
|
|
35
|
+
attrs?: Record<string, any>;
|
|
36
|
+
type: string;
|
|
37
|
+
}): SchemaItem;
|
|
24
38
|
styleNumber(config: BaseConfig): SchemaItem;
|
|
25
39
|
};
|
|
26
40
|
|
package/dist/helper/schema.js
CHANGED
package/dist/helper/widget.cjs
CHANGED
package/dist/helper/widget.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IWidget, j as SchemaItem, W as WidgetPos, B as Base } from '../Widget-
|
|
1
|
+
import { I as IWidget, j as SchemaItem, W as WidgetPos, B as Base } from '../Widget-BXpoxMwR.cjs';
|
|
2
2
|
import * as vue from 'vue';
|
|
3
3
|
import 'element-plus';
|
|
4
4
|
import 'async-validator';
|
|
@@ -14,6 +14,7 @@ interface CWidget {
|
|
|
14
14
|
config?: IWidget['meta'];
|
|
15
15
|
isContainer?: IWidget['container'];
|
|
16
16
|
defaultStyle?: IWidget['style'];
|
|
17
|
+
defaultData?: Record<string, any>;
|
|
17
18
|
attributes?: SchemaItem[];
|
|
18
19
|
stylesheet?: SchemaItem[];
|
|
19
20
|
}
|
|
@@ -34,12 +35,15 @@ declare const widget: {
|
|
|
34
35
|
container: boolean | undefined;
|
|
35
36
|
meta: {
|
|
36
37
|
draggable?: boolean;
|
|
38
|
+
visible?: boolean;
|
|
39
|
+
fixed?: boolean;
|
|
37
40
|
} | undefined;
|
|
38
41
|
schema: {
|
|
39
42
|
props: SchemaItem[] | undefined;
|
|
40
43
|
style: SchemaItem[] | undefined;
|
|
41
44
|
};
|
|
42
45
|
style: (vue.CSSProperties & WidgetPos) | undefined;
|
|
46
|
+
data: Record<string, any> | undefined;
|
|
43
47
|
};
|
|
44
48
|
group(name: string, list: IWidget[]): {
|
|
45
49
|
type: widgetType;
|
package/dist/helper/widget.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IWidget, j as SchemaItem, W as WidgetPos, B as Base } from '../Widget-
|
|
1
|
+
import { I as IWidget, j as SchemaItem, W as WidgetPos, B as Base } from '../Widget-BXpoxMwR.js';
|
|
2
2
|
import * as vue from 'vue';
|
|
3
3
|
import 'element-plus';
|
|
4
4
|
import 'async-validator';
|
|
@@ -14,6 +14,7 @@ interface CWidget {
|
|
|
14
14
|
config?: IWidget['meta'];
|
|
15
15
|
isContainer?: IWidget['container'];
|
|
16
16
|
defaultStyle?: IWidget['style'];
|
|
17
|
+
defaultData?: Record<string, any>;
|
|
17
18
|
attributes?: SchemaItem[];
|
|
18
19
|
stylesheet?: SchemaItem[];
|
|
19
20
|
}
|
|
@@ -34,12 +35,15 @@ declare const widget: {
|
|
|
34
35
|
container: boolean | undefined;
|
|
35
36
|
meta: {
|
|
36
37
|
draggable?: boolean;
|
|
38
|
+
visible?: boolean;
|
|
39
|
+
fixed?: boolean;
|
|
37
40
|
} | undefined;
|
|
38
41
|
schema: {
|
|
39
42
|
props: SchemaItem[] | undefined;
|
|
40
43
|
style: SchemaItem[] | undefined;
|
|
41
44
|
};
|
|
42
45
|
style: (vue.CSSProperties & WidgetPos) | undefined;
|
|
46
|
+
data: Record<string, any> | undefined;
|
|
43
47
|
};
|
|
44
48
|
group(name: string, list: IWidget[]): {
|
|
45
49
|
type: widgetType;
|
package/dist/helper/widget.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -100,6 +100,42 @@ var schema = {
|
|
|
100
100
|
options: config.options
|
|
101
101
|
};
|
|
102
102
|
},
|
|
103
|
+
switch(config) {
|
|
104
|
+
return {
|
|
105
|
+
label: config.label,
|
|
106
|
+
key: config.key,
|
|
107
|
+
type: "switch",
|
|
108
|
+
attrs: config.attrs,
|
|
109
|
+
rules: normalizeRules(config)
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
image(config) {
|
|
113
|
+
return {
|
|
114
|
+
label: config.label,
|
|
115
|
+
key: config.key,
|
|
116
|
+
type: "image",
|
|
117
|
+
attrs: config.attrs,
|
|
118
|
+
rules: normalizeRules(config)
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
time(config) {
|
|
122
|
+
return {
|
|
123
|
+
label: config.label,
|
|
124
|
+
key: config.key,
|
|
125
|
+
type: "datetimePicker",
|
|
126
|
+
attrs: config.attrs,
|
|
127
|
+
rules: normalizeRules(config)
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
custom(config) {
|
|
131
|
+
return {
|
|
132
|
+
label: config.label,
|
|
133
|
+
key: config.key,
|
|
134
|
+
type: config.type,
|
|
135
|
+
attrs: config.attrs,
|
|
136
|
+
rules: normalizeRules(config)
|
|
137
|
+
};
|
|
138
|
+
},
|
|
103
139
|
styleNumber(config) {
|
|
104
140
|
return {
|
|
105
141
|
label: config.label,
|
|
@@ -159,7 +195,8 @@ var widget = {
|
|
|
159
195
|
props: config.attributes,
|
|
160
196
|
style: config.stylesheet
|
|
161
197
|
},
|
|
162
|
-
style: config.defaultStyle
|
|
198
|
+
style: config.defaultStyle,
|
|
199
|
+
data: config.defaultData
|
|
163
200
|
};
|
|
164
201
|
},
|
|
165
202
|
group(name, list) {
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { schema } from './helper/schema.cjs';
|
|
|
3
3
|
export { widget, widgetType } from './helper/widget.cjs';
|
|
4
4
|
export { createCopy, createDelete } from './internal.cjs';
|
|
5
5
|
export { EditorContext, editorContextKey } from './tokens.cjs';
|
|
6
|
-
export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-
|
|
6
|
+
export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-BXpoxMwR.cjs';
|
|
7
7
|
import 'element-plus';
|
|
8
8
|
import 'vue';
|
|
9
9
|
import './class/Node.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { schema } from './helper/schema.js';
|
|
|
3
3
|
export { widget, widgetType } from './helper/widget.js';
|
|
4
4
|
export { createCopy, createDelete } from './internal.js';
|
|
5
5
|
export { EditorContext, editorContextKey } from './tokens.js';
|
|
6
|
-
export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-
|
|
6
|
+
export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-BXpoxMwR.js';
|
|
7
7
|
import 'element-plus';
|
|
8
8
|
import 'vue';
|
|
9
9
|
import './class/Node.js';
|
package/dist/index.js
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./chunk-W776G2UQ.js";
|
|
5
5
|
import {
|
|
6
6
|
schema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KTDOAEEU.js";
|
|
8
8
|
import {
|
|
9
9
|
widget,
|
|
10
10
|
widgetType
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VY2Z4X4S.js";
|
|
12
12
|
import {
|
|
13
13
|
createCopy,
|
|
14
14
|
createDelete
|
package/dist/internal.d.cts
CHANGED
package/dist/internal.d.ts
CHANGED
package/dist/tokens.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
2
|
import { EventEmitter } from './helper/EventEmitter.cjs';
|
|
3
3
|
import { Node } from './class/Node.cjs';
|
|
4
|
-
import './Widget-
|
|
4
|
+
import './Widget-BXpoxMwR.cjs';
|
|
5
5
|
import 'element-plus';
|
|
6
6
|
import 'async-validator';
|
|
7
7
|
|
|
@@ -9,6 +9,7 @@ interface EditorContext {
|
|
|
9
9
|
node?: Node;
|
|
10
10
|
plugins?: any;
|
|
11
11
|
bus: EventEmitter;
|
|
12
|
+
extra: Record<string, any>;
|
|
12
13
|
}
|
|
13
14
|
declare const editorContextKey: InjectionKey<EditorContext>;
|
|
14
15
|
|
package/dist/tokens.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
2
|
import { EventEmitter } from './helper/EventEmitter.js';
|
|
3
3
|
import { Node } from './class/Node.js';
|
|
4
|
-
import './Widget-
|
|
4
|
+
import './Widget-BXpoxMwR.js';
|
|
5
5
|
import 'element-plus';
|
|
6
6
|
import 'async-validator';
|
|
7
7
|
|
|
@@ -9,6 +9,7 @@ interface EditorContext {
|
|
|
9
9
|
node?: Node;
|
|
10
10
|
plugins?: any;
|
|
11
11
|
bus: EventEmitter;
|
|
12
|
+
extra: Record<string, any>;
|
|
12
13
|
}
|
|
13
14
|
declare const editorContextKey: InjectionKey<EditorContext>;
|
|
14
15
|
|
package/dist/types.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'element-plus';
|
|
2
2
|
import 'vue';
|
|
3
|
-
export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-
|
|
3
|
+
export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-BXpoxMwR.cjs';
|
|
4
4
|
import 'async-validator';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'element-plus';
|
|
2
2
|
import 'vue';
|
|
3
|
-
export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-
|
|
3
|
+
export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-BXpoxMwR.js';
|
|
4
4
|
import 'async-validator';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sepveneto/dnde-core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "sepveneto",
|
|
7
7
|
"license": "MIT",
|
|
@@ -17,11 +17,6 @@
|
|
|
17
17
|
"import": "./dist/index.js",
|
|
18
18
|
"require": "./dist/index.cjs"
|
|
19
19
|
},
|
|
20
|
-
"./vue": {
|
|
21
|
-
"types": "./dist/vue/index.d.ts",
|
|
22
|
-
"import": "./dist/vue/index.js",
|
|
23
|
-
"require": "./dist/vue/index.cjs"
|
|
24
|
-
},
|
|
25
20
|
"./class": {
|
|
26
21
|
"types": "./dist/class/index.d.ts",
|
|
27
22
|
"import": "./dist/class/index.js",
|