@sepveneto/dnde-core 0.4.6 → 0.4.8
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-xF5X82JJ.d.cts → Widget-DgKKmcEA.d.cts} +3 -0
- package/dist/{Widget-xF5X82JJ.d.ts → Widget-DgKKmcEA.d.ts} +3 -0
- package/dist/{chunk-2KTF7TW7.js → chunk-I4XJIKFE.js} +8 -1
- package/dist/{chunk-CETJOSM3.js → chunk-KJZSF66T.js} +0 -2
- package/dist/class/Container.d.cts +1 -1
- package/dist/class/Container.d.ts +1 -1
- package/dist/class/Node.cjs +0 -2
- package/dist/class/Node.d.cts +1 -1
- package/dist/class/Node.d.ts +1 -1
- package/dist/class/Node.js +1 -1
- package/dist/class/Widget.d.cts +1 -1
- package/dist/class/Widget.d.ts +1 -1
- package/dist/class/index.cjs +0 -2
- package/dist/class/index.d.cts +1 -1
- package/dist/class/index.d.ts +1 -1
- package/dist/class/index.js +1 -1
- package/dist/helper/index.cjs +8 -1
- package/dist/helper/index.d.cts +1 -1
- package/dist/helper/index.d.ts +1 -1
- package/dist/helper/index.js +1 -1
- package/dist/helper/schema.cjs +8 -1
- package/dist/helper/schema.d.cts +6 -1
- package/dist/helper/schema.d.ts +6 -1
- package/dist/helper/schema.js +1 -1
- package/dist/helper/widget.d.cts +1 -1
- package/dist/helper/widget.d.ts +1 -1
- package/dist/index.cjs +8 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/tokens.d.cts +1 -1
- package/dist/tokens.d.ts +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -147,6 +147,7 @@ interface SchemaItemSelect extends SchemaItemBase {
|
|
|
147
147
|
type: 'select';
|
|
148
148
|
options?: Option['$props'][];
|
|
149
149
|
attrs?: SelectInstance['$props'];
|
|
150
|
+
link?: Record<string | number, SchemaItem[]>;
|
|
150
151
|
}
|
|
151
152
|
interface SchemaItemNumber extends SchemaItemBase {
|
|
152
153
|
type: 'number';
|
|
@@ -180,11 +181,13 @@ interface SchemaItemRadio extends SchemaItemBase {
|
|
|
180
181
|
type: 'radio';
|
|
181
182
|
attrs?: RadioGroupInstance['$props'];
|
|
182
183
|
options?: RadioOption['$props'][];
|
|
184
|
+
link?: Record<string | number, SchemaItem[]>;
|
|
183
185
|
}
|
|
184
186
|
interface SchemaItemRadioButton extends SchemaItemBase {
|
|
185
187
|
type: 'radioButton';
|
|
186
188
|
attrs?: RadioGroupInstance['$props'];
|
|
187
189
|
options?: RadioButtonOption['$props'][];
|
|
190
|
+
link?: Record<string | number, SchemaItem[]>;
|
|
188
191
|
}
|
|
189
192
|
type SchemaItem = SchemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemImage | SchemaItemCustom | SchemaItemStyleNumber | SchemaItemRadio | SchemaItemRadioButton | SchemaItemDatetimePicker | SchemaItemColorPicker;
|
|
190
193
|
declare class Widget {
|
|
@@ -147,6 +147,7 @@ interface SchemaItemSelect extends SchemaItemBase {
|
|
|
147
147
|
type: 'select';
|
|
148
148
|
options?: Option['$props'][];
|
|
149
149
|
attrs?: SelectInstance['$props'];
|
|
150
|
+
link?: Record<string | number, SchemaItem[]>;
|
|
150
151
|
}
|
|
151
152
|
interface SchemaItemNumber extends SchemaItemBase {
|
|
152
153
|
type: 'number';
|
|
@@ -180,11 +181,13 @@ interface SchemaItemRadio extends SchemaItemBase {
|
|
|
180
181
|
type: 'radio';
|
|
181
182
|
attrs?: RadioGroupInstance['$props'];
|
|
182
183
|
options?: RadioOption['$props'][];
|
|
184
|
+
link?: Record<string | number, SchemaItem[]>;
|
|
183
185
|
}
|
|
184
186
|
interface SchemaItemRadioButton extends SchemaItemBase {
|
|
185
187
|
type: 'radioButton';
|
|
186
188
|
attrs?: RadioGroupInstance['$props'];
|
|
187
189
|
options?: RadioButtonOption['$props'][];
|
|
190
|
+
link?: Record<string | number, SchemaItem[]>;
|
|
188
191
|
}
|
|
189
192
|
type SchemaItem = SchemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemImage | SchemaItemCustom | SchemaItemStyleNumber | SchemaItemRadio | SchemaItemRadioButton | SchemaItemDatetimePicker | SchemaItemColorPicker;
|
|
190
193
|
declare class Widget {
|
|
@@ -17,7 +17,14 @@ var schema = {
|
|
|
17
17
|
rules: normalizeRules(config),
|
|
18
18
|
attrs: config.attrs
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
switch (type) {
|
|
21
|
+
case "select":
|
|
22
|
+
case "radio":
|
|
23
|
+
case "radioButton":
|
|
24
|
+
return __spreadProps(__spreadValues({}, base), { type, options: config.options, link: config.link });
|
|
25
|
+
default:
|
|
26
|
+
return base;
|
|
27
|
+
}
|
|
21
28
|
},
|
|
22
29
|
input(config) {
|
|
23
30
|
return this._create("input", config);
|
package/dist/class/Node.cjs
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, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-
|
|
1
|
+
export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-DgKKmcEA.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, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-
|
|
1
|
+
export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-DgKKmcEA.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import 'element-plus';
|
|
4
4
|
import 'async-validator';
|
package/dist/class/index.cjs
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, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-
|
|
3
|
+
export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-DgKKmcEA.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, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-
|
|
3
|
+
export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-DgKKmcEA.js';
|
|
4
4
|
import 'vue';
|
|
5
5
|
import 'element-plus';
|
|
6
6
|
import 'async-validator';
|
package/dist/class/index.js
CHANGED
package/dist/helper/index.cjs
CHANGED
|
@@ -93,7 +93,14 @@ var schema = {
|
|
|
93
93
|
rules: normalizeRules(config),
|
|
94
94
|
attrs: config.attrs
|
|
95
95
|
};
|
|
96
|
-
|
|
96
|
+
switch (type) {
|
|
97
|
+
case "select":
|
|
98
|
+
case "radio":
|
|
99
|
+
case "radioButton":
|
|
100
|
+
return __spreadProps(__spreadValues({}, base), { type, options: config.options, link: config.link });
|
|
101
|
+
default:
|
|
102
|
+
return base;
|
|
103
|
+
}
|
|
97
104
|
},
|
|
98
105
|
input(config) {
|
|
99
106
|
return this._create("input", 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-DgKKmcEA.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-DgKKmcEA.js';
|
|
6
6
|
import 'vue';
|
|
7
7
|
import 'async-validator';
|
package/dist/helper/index.js
CHANGED
package/dist/helper/schema.cjs
CHANGED
|
@@ -57,7 +57,14 @@ var schema = {
|
|
|
57
57
|
rules: normalizeRules(config),
|
|
58
58
|
attrs: config.attrs
|
|
59
59
|
};
|
|
60
|
-
|
|
60
|
+
switch (type) {
|
|
61
|
+
case "select":
|
|
62
|
+
case "radio":
|
|
63
|
+
case "radioButton":
|
|
64
|
+
return __spreadProps(__spreadValues({}, base), { type, options: config.options, link: config.link });
|
|
65
|
+
default:
|
|
66
|
+
return base;
|
|
67
|
+
}
|
|
61
68
|
},
|
|
62
69
|
input(config) {
|
|
63
70
|
return this._create("input", 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 { l as SchemaItem, O as Option, R as RadioOption, j as RadioButtonOption } from '../Widget-
|
|
2
|
+
import { l as SchemaItem, O as Option, R as RadioOption, j as RadioButtonOption } from '../Widget-DgKKmcEA.cjs';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import 'async-validator';
|
|
5
5
|
|
|
@@ -14,6 +14,8 @@ interface BaseConfig {
|
|
|
14
14
|
declare const schema: {
|
|
15
15
|
_create(type: any, config: BaseConfig & {
|
|
16
16
|
attrs?: any;
|
|
17
|
+
options?: any;
|
|
18
|
+
link?: any;
|
|
17
19
|
}): SchemaItem;
|
|
18
20
|
input(config: BaseConfig & {
|
|
19
21
|
attrs?: InputInstance["$props"];
|
|
@@ -24,14 +26,17 @@ declare const schema: {
|
|
|
24
26
|
select(config: BaseConfig & {
|
|
25
27
|
attrs?: SelectInstance["$props"];
|
|
26
28
|
options?: Option["$props"][];
|
|
29
|
+
link?: Record<string, SchemaItem[]>;
|
|
27
30
|
}): SchemaItem;
|
|
28
31
|
radio(config: BaseConfig & {
|
|
29
32
|
attrs?: RadioInstance["$props"];
|
|
30
33
|
options?: RadioOption["$props"][];
|
|
34
|
+
link?: Record<string, SchemaItem[]>;
|
|
31
35
|
}): SchemaItem;
|
|
32
36
|
radioButton(config: BaseConfig & {
|
|
33
37
|
attrs?: RadioInstance["$props"];
|
|
34
38
|
options?: RadioButtonOption["$props"][];
|
|
39
|
+
link?: Record<string, SchemaItem[]>;
|
|
35
40
|
}): SchemaItem;
|
|
36
41
|
switch(config: BaseConfig & {
|
|
37
42
|
attrs?: SwitchInstance["$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 { l as SchemaItem, O as Option, R as RadioOption, j as RadioButtonOption } from '../Widget-
|
|
2
|
+
import { l as SchemaItem, O as Option, R as RadioOption, j as RadioButtonOption } from '../Widget-DgKKmcEA.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import 'async-validator';
|
|
5
5
|
|
|
@@ -14,6 +14,8 @@ interface BaseConfig {
|
|
|
14
14
|
declare const schema: {
|
|
15
15
|
_create(type: any, config: BaseConfig & {
|
|
16
16
|
attrs?: any;
|
|
17
|
+
options?: any;
|
|
18
|
+
link?: any;
|
|
17
19
|
}): SchemaItem;
|
|
18
20
|
input(config: BaseConfig & {
|
|
19
21
|
attrs?: InputInstance["$props"];
|
|
@@ -24,14 +26,17 @@ declare const schema: {
|
|
|
24
26
|
select(config: BaseConfig & {
|
|
25
27
|
attrs?: SelectInstance["$props"];
|
|
26
28
|
options?: Option["$props"][];
|
|
29
|
+
link?: Record<string, SchemaItem[]>;
|
|
27
30
|
}): SchemaItem;
|
|
28
31
|
radio(config: BaseConfig & {
|
|
29
32
|
attrs?: RadioInstance["$props"];
|
|
30
33
|
options?: RadioOption["$props"][];
|
|
34
|
+
link?: Record<string, SchemaItem[]>;
|
|
31
35
|
}): SchemaItem;
|
|
32
36
|
radioButton(config: BaseConfig & {
|
|
33
37
|
attrs?: RadioInstance["$props"];
|
|
34
38
|
options?: RadioButtonOption["$props"][];
|
|
39
|
+
link?: Record<string, SchemaItem[]>;
|
|
35
40
|
}): SchemaItem;
|
|
36
41
|
switch(config: BaseConfig & {
|
|
37
42
|
attrs?: SwitchInstance["$props"];
|
package/dist/helper/schema.js
CHANGED
package/dist/helper/widget.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-
|
|
1
|
+
import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-DgKKmcEA.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, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-
|
|
1
|
+
import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-DgKKmcEA.js';
|
|
2
2
|
import * as vue from 'vue';
|
|
3
3
|
import 'element-plus';
|
|
4
4
|
import 'async-validator';
|
package/dist/index.cjs
CHANGED
|
@@ -97,7 +97,14 @@ var schema = {
|
|
|
97
97
|
rules: normalizeRules(config),
|
|
98
98
|
attrs: config.attrs
|
|
99
99
|
};
|
|
100
|
-
|
|
100
|
+
switch (type) {
|
|
101
|
+
case "select":
|
|
102
|
+
case "radio":
|
|
103
|
+
case "radioButton":
|
|
104
|
+
return __spreadProps(__spreadValues({}, base), { type, options: config.options, link: config.link });
|
|
105
|
+
default:
|
|
106
|
+
return base;
|
|
107
|
+
}
|
|
101
108
|
},
|
|
102
109
|
input(config) {
|
|
103
110
|
return this._create("input", 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-DgKKmcEA.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-DgKKmcEA.js';
|
|
7
7
|
import 'element-plus';
|
|
8
8
|
import 'vue';
|
|
9
9
|
import './class/Node.js';
|
package/dist/index.js
CHANGED
package/dist/internal.d.cts
CHANGED
package/dist/internal.d.ts
CHANGED
package/dist/tokens.d.cts
CHANGED
package/dist/tokens.d.ts
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-DgKKmcEA.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-DgKKmcEA.js';
|
|
4
4
|
import 'async-validator';
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sepveneto/dnde-core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.8",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "sepveneto",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://github.com/SepVeneto/miniprogram-design/blob/master/packages/core",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/SepVeneto/
|
|
11
|
+
"url": "https://github.com/SepVeneto/dnd-editor"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [],
|
|
14
14
|
"exports": {
|