@sepveneto/dnde-core 0.4.5 → 0.4.7
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-DndvEdEX.d.cts → Widget-xF5X82JJ.d.cts} +1 -1
- package/dist/{Widget-DndvEdEX.d.ts → Widget-xF5X82JJ.d.ts} +1 -1
- package/dist/{chunk-HJO26HIQ.js → chunk-6FNC3XMI.js} +4 -0
- package/dist/{chunk-77RZWUI5.js → chunk-CETJOSM3.js} +1 -1
- package/dist/{chunk-MWZZYXEL.js → chunk-M7DQRYCX.js} +17 -2
- package/dist/class/Container.d.cts +1 -1
- package/dist/class/Container.d.ts +1 -1
- package/dist/class/Container.js +1 -1
- package/dist/class/Node.d.cts +1 -1
- package/dist/class/Node.d.ts +1 -1
- package/dist/class/Node.js +2 -2
- package/dist/class/Widget.d.cts +1 -1
- package/dist/class/Widget.d.ts +1 -1
- package/dist/class/Widget.js +1 -1
- package/dist/class/index.d.cts +1 -1
- package/dist/class/index.d.ts +1 -1
- package/dist/class/index.js +2 -2
- package/dist/helper/EventEmitter.js +1 -1
- package/dist/helper/index.cjs +30 -2
- 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 +30 -2
- package/dist/helper/schema.d.cts +2 -1
- package/dist/helper/schema.d.ts +2 -1
- package/dist/helper/schema.js +2 -2
- package/dist/helper/widget.d.cts +1 -1
- package/dist/helper/widget.d.ts +1 -1
- package/dist/helper/widget.js +1 -1
- package/dist/index.cjs +30 -2
- 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/internal.js +1 -1
- package/dist/tokens.d.cts +1 -1
- package/dist/tokens.d.ts +1 -1
- package/dist/tokens.js +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
|
@@ -206,4 +206,4 @@ declare class Widget {
|
|
|
206
206
|
get validatorStyle(): Validator;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
export { type Base as B, type DisabledItemFn as D, type EditorConfig as E, type IWidget as I, type Option as O, type RadioOption as R, type SchemaOther as S, type WidgetPos as W, type SchemaBox as a, type ISchema as b, type EditorSchema as c, type EditorWidget as d, type EditorRoute as e, type EditorWidgets as f, type EditorSettings as g, type EditorData as h, isBox as i, type RadioButtonOption as j, type
|
|
209
|
+
export { type Base as B, type DisabledItemFn as D, type EditorConfig as E, type IWidget as I, type Option as O, type RadioOption as R, type SchemaOther as S, type WidgetPos as W, type SchemaBox as a, type ISchema as b, type EditorSchema as c, type EditorWidget as d, type EditorRoute as e, type EditorWidgets as f, type EditorSettings as g, type EditorData as h, isBox as i, type RadioButtonOption as j, type SchemaItemCustom as k, type SchemaItem as l, Widget as m };
|
|
@@ -206,4 +206,4 @@ declare class Widget {
|
|
|
206
206
|
get validatorStyle(): Validator;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
export { type Base as B, type DisabledItemFn as D, type EditorConfig as E, type IWidget as I, type Option as O, type RadioOption as R, type SchemaOther as S, type WidgetPos as W, type SchemaBox as a, type ISchema as b, type EditorSchema as c, type EditorWidget as d, type EditorRoute as e, type EditorWidgets as f, type EditorSettings as g, type EditorData as h, isBox as i, type RadioButtonOption as j, type
|
|
209
|
+
export { type Base as B, type DisabledItemFn as D, type EditorConfig as E, type IWidget as I, type Option as O, type RadioOption as R, type SchemaOther as S, type WidgetPos as W, type SchemaBox as a, type ISchema as b, type EditorSchema as c, type EditorWidget as d, type EditorRoute as e, type EditorWidgets as f, type EditorSettings as g, type EditorData as h, isBox as i, type RadioButtonOption as j, type SchemaItemCustom as k, type SchemaItem as l, Widget as m };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,6 +16,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
17
20
|
var __async = (__this, __arguments, generator) => {
|
|
18
21
|
return new Promise((resolve, reject) => {
|
|
19
22
|
var fulfilled = (value) => {
|
|
@@ -37,5 +40,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
37
40
|
|
|
38
41
|
export {
|
|
39
42
|
__spreadValues,
|
|
43
|
+
__spreadProps,
|
|
40
44
|
__async
|
|
41
45
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
likeArray
|
|
3
3
|
} from "./chunk-XJ2IJHKH.js";
|
|
4
|
+
import {
|
|
5
|
+
__spreadProps,
|
|
6
|
+
__spreadValues
|
|
7
|
+
} from "./chunk-6FNC3XMI.js";
|
|
4
8
|
|
|
5
9
|
// src/helper/schema.ts
|
|
6
10
|
var schema = {
|
|
@@ -13,7 +17,14 @@ var schema = {
|
|
|
13
17
|
rules: normalizeRules(config),
|
|
14
18
|
attrs: config.attrs
|
|
15
19
|
};
|
|
16
|
-
|
|
20
|
+
switch (type) {
|
|
21
|
+
case "select":
|
|
22
|
+
case "radio":
|
|
23
|
+
case "radioButton":
|
|
24
|
+
return __spreadProps(__spreadValues({}, base), { type, options: config.options });
|
|
25
|
+
default:
|
|
26
|
+
return base;
|
|
27
|
+
}
|
|
17
28
|
},
|
|
18
29
|
input(config) {
|
|
19
30
|
return this._create("input", config);
|
|
@@ -40,7 +51,11 @@ var schema = {
|
|
|
40
51
|
return this._create("colorPicker", config);
|
|
41
52
|
},
|
|
42
53
|
custom(config) {
|
|
43
|
-
|
|
54
|
+
const res = __spreadProps(__spreadValues({}, this._create("custom", config)), {
|
|
55
|
+
type: "custom",
|
|
56
|
+
name: config.type
|
|
57
|
+
});
|
|
58
|
+
return res;
|
|
44
59
|
},
|
|
45
60
|
styleNumber(config) {
|
|
46
61
|
return this._create("styleNumber", config);
|
package/dist/class/Container.js
CHANGED
package/dist/class/Node.d.cts
CHANGED
package/dist/class/Node.d.ts
CHANGED
package/dist/class/Node.js
CHANGED
package/dist/class/Widget.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { O as Option, j as RadioButtonOption, R as RadioOption,
|
|
1
|
+
export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-xF5X82JJ.cjs';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import 'element-plus';
|
|
4
4
|
import 'async-validator';
|
package/dist/class/Widget.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { O as Option, j as RadioButtonOption, R as RadioOption,
|
|
1
|
+
export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-xF5X82JJ.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import 'element-plus';
|
|
4
4
|
import 'async-validator';
|
package/dist/class/Widget.js
CHANGED
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 { O as Option, j as RadioButtonOption, R as RadioOption,
|
|
3
|
+
export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-xF5X82JJ.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 { O as Option, j as RadioButtonOption, R as RadioOption,
|
|
3
|
+
export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-xF5X82JJ.js';
|
|
4
4
|
import 'vue';
|
|
5
5
|
import 'element-plus';
|
|
6
6
|
import 'async-validator';
|
package/dist/class/index.js
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
Node,
|
|
6
6
|
RootNode
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-CETJOSM3.js";
|
|
8
8
|
import {
|
|
9
9
|
Widget
|
|
10
10
|
} from "../chunk-KHPFRVKB.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-6FNC3XMI.js";
|
|
12
12
|
export {
|
|
13
13
|
Container,
|
|
14
14
|
Node,
|
package/dist/helper/index.cjs
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
6
23
|
var __export = (target, all) => {
|
|
7
24
|
for (var name in all)
|
|
8
25
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -76,7 +93,14 @@ var schema = {
|
|
|
76
93
|
rules: normalizeRules(config),
|
|
77
94
|
attrs: config.attrs
|
|
78
95
|
};
|
|
79
|
-
|
|
96
|
+
switch (type) {
|
|
97
|
+
case "select":
|
|
98
|
+
case "radio":
|
|
99
|
+
case "radioButton":
|
|
100
|
+
return __spreadProps(__spreadValues({}, base), { type, options: config.options });
|
|
101
|
+
default:
|
|
102
|
+
return base;
|
|
103
|
+
}
|
|
80
104
|
},
|
|
81
105
|
input(config) {
|
|
82
106
|
return this._create("input", config);
|
|
@@ -103,7 +127,11 @@ var schema = {
|
|
|
103
127
|
return this._create("colorPicker", config);
|
|
104
128
|
},
|
|
105
129
|
custom(config) {
|
|
106
|
-
|
|
130
|
+
const res = __spreadProps(__spreadValues({}, this._create("custom", config)), {
|
|
131
|
+
type: "custom",
|
|
132
|
+
name: config.type
|
|
133
|
+
});
|
|
134
|
+
return res;
|
|
107
135
|
},
|
|
108
136
|
styleNumber(config) {
|
|
109
137
|
return this._create("styleNumber", config);
|
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-xF5X82JJ.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-xF5X82JJ.js';
|
|
6
6
|
import 'vue';
|
|
7
7
|
import 'async-validator';
|
package/dist/helper/index.js
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
} from "../chunk-W776G2UQ.js";
|
|
5
5
|
import {
|
|
6
6
|
schema
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-M7DQRYCX.js";
|
|
8
8
|
import {
|
|
9
9
|
widget,
|
|
10
10
|
widgetType
|
|
11
11
|
} from "../chunk-VRAKS4JU.js";
|
|
12
12
|
import "../chunk-XJ2IJHKH.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-6FNC3XMI.js";
|
|
14
14
|
export {
|
|
15
15
|
EventEmitter,
|
|
16
16
|
schema,
|
package/dist/helper/schema.cjs
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
6
23
|
var __export = (target, all) => {
|
|
7
24
|
for (var name in all)
|
|
8
25
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -40,7 +57,14 @@ var schema = {
|
|
|
40
57
|
rules: normalizeRules(config),
|
|
41
58
|
attrs: config.attrs
|
|
42
59
|
};
|
|
43
|
-
|
|
60
|
+
switch (type) {
|
|
61
|
+
case "select":
|
|
62
|
+
case "radio":
|
|
63
|
+
case "radioButton":
|
|
64
|
+
return __spreadProps(__spreadValues({}, base), { type, options: config.options });
|
|
65
|
+
default:
|
|
66
|
+
return base;
|
|
67
|
+
}
|
|
44
68
|
},
|
|
45
69
|
input(config) {
|
|
46
70
|
return this._create("input", config);
|
|
@@ -67,7 +91,11 @@ var schema = {
|
|
|
67
91
|
return this._create("colorPicker", config);
|
|
68
92
|
},
|
|
69
93
|
custom(config) {
|
|
70
|
-
|
|
94
|
+
const res = __spreadProps(__spreadValues({}, this._create("custom", config)), {
|
|
95
|
+
type: "custom",
|
|
96
|
+
name: config.type
|
|
97
|
+
});
|
|
98
|
+
return res;
|
|
71
99
|
},
|
|
72
100
|
styleNumber(config) {
|
|
73
101
|
return this._create("styleNumber", config);
|
package/dist/helper/schema.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormItemProps, InputInstance, InputNumberInstance, SelectInstance, RadioInstance, SwitchInstance, DatePickerInstance, ColorPickerInstance } from 'element-plus';
|
|
2
|
-
import {
|
|
2
|
+
import { l as SchemaItem, O as Option, R as RadioOption, j as RadioButtonOption } from '../Widget-xF5X82JJ.cjs';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import 'async-validator';
|
|
5
5
|
|
|
@@ -14,6 +14,7 @@ interface BaseConfig {
|
|
|
14
14
|
declare const schema: {
|
|
15
15
|
_create(type: any, config: BaseConfig & {
|
|
16
16
|
attrs?: any;
|
|
17
|
+
options?: any;
|
|
17
18
|
}): SchemaItem;
|
|
18
19
|
input(config: BaseConfig & {
|
|
19
20
|
attrs?: InputInstance["$props"];
|
package/dist/helper/schema.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormItemProps, InputInstance, InputNumberInstance, SelectInstance, RadioInstance, SwitchInstance, DatePickerInstance, ColorPickerInstance } from 'element-plus';
|
|
2
|
-
import {
|
|
2
|
+
import { l as SchemaItem, O as Option, R as RadioOption, j as RadioButtonOption } from '../Widget-xF5X82JJ.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import 'async-validator';
|
|
5
5
|
|
|
@@ -14,6 +14,7 @@ interface BaseConfig {
|
|
|
14
14
|
declare const schema: {
|
|
15
15
|
_create(type: any, config: BaseConfig & {
|
|
16
16
|
attrs?: any;
|
|
17
|
+
options?: any;
|
|
17
18
|
}): SchemaItem;
|
|
18
19
|
input(config: BaseConfig & {
|
|
19
20
|
attrs?: InputInstance["$props"];
|
package/dist/helper/schema.js
CHANGED
package/dist/helper/widget.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IWidget,
|
|
1
|
+
import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-xF5X82JJ.cjs';
|
|
2
2
|
import * as vue from 'vue';
|
|
3
3
|
import 'element-plus';
|
|
4
4
|
import 'async-validator';
|
package/dist/helper/widget.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IWidget,
|
|
1
|
+
import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-xF5X82JJ.js';
|
|
2
2
|
import * as vue from 'vue';
|
|
3
3
|
import 'element-plus';
|
|
4
4
|
import 'async-validator';
|
package/dist/helper/widget.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
6
23
|
var __export = (target, all) => {
|
|
7
24
|
for (var name in all)
|
|
8
25
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -80,7 +97,14 @@ var schema = {
|
|
|
80
97
|
rules: normalizeRules(config),
|
|
81
98
|
attrs: config.attrs
|
|
82
99
|
};
|
|
83
|
-
|
|
100
|
+
switch (type) {
|
|
101
|
+
case "select":
|
|
102
|
+
case "radio":
|
|
103
|
+
case "radioButton":
|
|
104
|
+
return __spreadProps(__spreadValues({}, base), { type, options: config.options });
|
|
105
|
+
default:
|
|
106
|
+
return base;
|
|
107
|
+
}
|
|
84
108
|
},
|
|
85
109
|
input(config) {
|
|
86
110
|
return this._create("input", config);
|
|
@@ -107,7 +131,11 @@ var schema = {
|
|
|
107
131
|
return this._create("colorPicker", config);
|
|
108
132
|
},
|
|
109
133
|
custom(config) {
|
|
110
|
-
|
|
134
|
+
const res = __spreadProps(__spreadValues({}, this._create("custom", config)), {
|
|
135
|
+
type: "custom",
|
|
136
|
+
name: config.type
|
|
137
|
+
});
|
|
138
|
+
return res;
|
|
111
139
|
},
|
|
112
140
|
styleNumber(config) {
|
|
113
141
|
return this._create("styleNumber", config);
|
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-xF5X82JJ.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-xF5X82JJ.js';
|
|
7
7
|
import 'element-plus';
|
|
8
8
|
import 'vue';
|
|
9
9
|
import './class/Node.js';
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-W776G2UQ.js";
|
|
5
5
|
import {
|
|
6
6
|
schema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-M7DQRYCX.js";
|
|
8
8
|
import {
|
|
9
9
|
widget,
|
|
10
10
|
widgetType
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
isBox
|
|
21
21
|
} from "./chunk-4QIIKQ6B.js";
|
|
22
22
|
import "./chunk-XJ2IJHKH.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-6FNC3XMI.js";
|
|
24
24
|
export {
|
|
25
25
|
EventEmitter,
|
|
26
26
|
createCopy,
|
package/dist/internal.d.cts
CHANGED
package/dist/internal.d.ts
CHANGED
package/dist/internal.js
CHANGED
package/dist/tokens.d.cts
CHANGED
package/dist/tokens.d.ts
CHANGED
package/dist/tokens.js
CHANGED
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-xF5X82JJ.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-xF5X82JJ.js';
|
|
4
4
|
import 'async-validator';
|
package/dist/types.js
CHANGED
package/dist/utils.js
CHANGED