@sepveneto/dnde-core 0.4.1 → 0.4.3

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.
@@ -1,4 +1,4 @@
1
- import { FormItemRule, UploadRequestOptions, InputInstance, ElOption, SelectInstance, InputNumberInstance, SwitchInstance, ImageInstance } from 'element-plus';
1
+ import { FormItemRule, UploadRequestOptions, InputInstance, ElOption, SelectInstance, InputNumberInstance, SwitchInstance, ImageInstance, RadioGroupInstance, ElRadio, ElRadioButton, DatePickerInstance, ColorPickerInstance } from 'element-plus';
2
2
  import * as vue from 'vue';
3
3
  import { CSSProperties } from 'vue';
4
4
  import Validator from 'async-validator';
@@ -131,12 +131,14 @@ interface EditorData {
131
131
  }
132
132
 
133
133
  type Option = InstanceType<typeof ElOption>;
134
+ type RadioOption = InstanceType<typeof ElRadio>;
135
+ type RadioButtonOption = InstanceType<typeof ElRadioButton>;
134
136
  interface SchemaItemBase {
135
137
  label: string;
136
138
  key: string;
137
139
  rules?: FormItemRule | FormItemRule[];
138
140
  }
139
- interface ShcemaItemInput extends SchemaItemBase {
141
+ interface SchemaItemInput extends SchemaItemBase {
140
142
  type: 'input';
141
143
  attrs?: InputInstance['$props'];
142
144
  }
@@ -157,14 +159,33 @@ interface SchemaItemImage extends SchemaItemBase {
157
159
  type: 'image';
158
160
  attrs?: ImageInstance['$props'];
159
161
  }
162
+ interface SchemaItemDatetimePicker extends SchemaItemBase {
163
+ type: 'datetimePicker';
164
+ attrs?: Partial<DatePickerInstance['$props']>;
165
+ }
166
+ interface SchemaItemColorPicker extends SchemaItemBase {
167
+ type: 'colorPicker';
168
+ attrs?: ColorPickerInstance['$props'];
169
+ }
160
170
  interface SchemaItemCustom extends SchemaItemBase {
161
- type: string;
171
+ type: 'custom';
172
+ name: string;
162
173
  attrs?: Record<string, any>;
163
174
  }
164
175
  interface SchemaItemStyleNumber extends SchemaItemBase {
165
176
  type: 'styleNumber';
166
177
  }
167
- type SchemaItem = ShcemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemImage | SchemaItemCustom | SchemaItemStyleNumber;
178
+ interface SchemaItemRadio extends SchemaItemBase {
179
+ type: 'radio';
180
+ attrs?: RadioGroupInstance['$props'];
181
+ options?: RadioOption['$props'][];
182
+ }
183
+ interface SchemaItemRadioButton extends SchemaItemBase {
184
+ type: 'radioButton';
185
+ attrs?: RadioGroupInstance['$props'];
186
+ options?: RadioButtonOption['$props'][];
187
+ }
188
+ type SchemaItem = SchemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemImage | SchemaItemCustom | SchemaItemStyleNumber | SchemaItemRadio | SchemaItemRadioButton | SchemaItemDatetimePicker | SchemaItemColorPicker;
168
189
  declare class Widget {
169
190
  name: string;
170
191
  view: string;
@@ -184,4 +205,4 @@ declare class Widget {
184
205
  get validatorStyle(): Validator;
185
206
  }
186
207
 
187
- export { type Base as B, type DisabledItemFn as D, type EditorConfig as E, type IWidget as I, 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 SchemaItem as j, Widget as k };
208
+ 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 SchemaItem as k, Widget as l };
@@ -1,4 +1,4 @@
1
- import { FormItemRule, UploadRequestOptions, InputInstance, ElOption, SelectInstance, InputNumberInstance, SwitchInstance, ImageInstance } from 'element-plus';
1
+ import { FormItemRule, UploadRequestOptions, InputInstance, ElOption, SelectInstance, InputNumberInstance, SwitchInstance, ImageInstance, RadioGroupInstance, ElRadio, ElRadioButton, DatePickerInstance, ColorPickerInstance } from 'element-plus';
2
2
  import * as vue from 'vue';
3
3
  import { CSSProperties } from 'vue';
4
4
  import Validator from 'async-validator';
@@ -131,12 +131,14 @@ interface EditorData {
131
131
  }
132
132
 
133
133
  type Option = InstanceType<typeof ElOption>;
134
+ type RadioOption = InstanceType<typeof ElRadio>;
135
+ type RadioButtonOption = InstanceType<typeof ElRadioButton>;
134
136
  interface SchemaItemBase {
135
137
  label: string;
136
138
  key: string;
137
139
  rules?: FormItemRule | FormItemRule[];
138
140
  }
139
- interface ShcemaItemInput extends SchemaItemBase {
141
+ interface SchemaItemInput extends SchemaItemBase {
140
142
  type: 'input';
141
143
  attrs?: InputInstance['$props'];
142
144
  }
@@ -157,14 +159,33 @@ interface SchemaItemImage extends SchemaItemBase {
157
159
  type: 'image';
158
160
  attrs?: ImageInstance['$props'];
159
161
  }
162
+ interface SchemaItemDatetimePicker extends SchemaItemBase {
163
+ type: 'datetimePicker';
164
+ attrs?: Partial<DatePickerInstance['$props']>;
165
+ }
166
+ interface SchemaItemColorPicker extends SchemaItemBase {
167
+ type: 'colorPicker';
168
+ attrs?: ColorPickerInstance['$props'];
169
+ }
160
170
  interface SchemaItemCustom extends SchemaItemBase {
161
- type: string;
171
+ type: 'custom';
172
+ name: string;
162
173
  attrs?: Record<string, any>;
163
174
  }
164
175
  interface SchemaItemStyleNumber extends SchemaItemBase {
165
176
  type: 'styleNumber';
166
177
  }
167
- type SchemaItem = ShcemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemImage | SchemaItemCustom | SchemaItemStyleNumber;
178
+ interface SchemaItemRadio extends SchemaItemBase {
179
+ type: 'radio';
180
+ attrs?: RadioGroupInstance['$props'];
181
+ options?: RadioOption['$props'][];
182
+ }
183
+ interface SchemaItemRadioButton extends SchemaItemBase {
184
+ type: 'radioButton';
185
+ attrs?: RadioGroupInstance['$props'];
186
+ options?: RadioButtonOption['$props'][];
187
+ }
188
+ type SchemaItem = SchemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemImage | SchemaItemCustom | SchemaItemStyleNumber | SchemaItemRadio | SchemaItemRadioButton | SchemaItemDatetimePicker | SchemaItemColorPicker;
168
189
  declare class Widget {
169
190
  name: string;
170
191
  view: string;
@@ -184,4 +205,4 @@ declare class Widget {
184
205
  get validatorStyle(): Validator;
185
206
  }
186
207
 
187
- export { type Base as B, type DisabledItemFn as D, type EditorConfig as E, type IWidget as I, 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 SchemaItem as j, Widget as k };
208
+ 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 SchemaItem as k, Widget as l };
@@ -33,24 +33,46 @@ var schema = {
33
33
  options: config.options
34
34
  };
35
35
  },
36
- switch(config) {
37
- return {
36
+ radio(config) {
37
+ const base = {
38
38
  label: config.label,
39
39
  key: config.key,
40
- type: "switch",
40
+ type: "radio",
41
+ rules: normalizeRules(config),
41
42
  attrs: config.attrs,
42
- rules: normalizeRules(config)
43
+ options: config.options
43
44
  };
45
+ return base;
44
46
  },
45
- image(config) {
47
+ radioButton(config) {
48
+ const base = {
49
+ label: config.label,
50
+ key: config.key,
51
+ type: "radioButton",
52
+ rules: normalizeRules(config),
53
+ attrs: config.attrs,
54
+ options: config.options
55
+ };
56
+ return base;
57
+ },
58
+ switch(config) {
46
59
  return {
47
60
  label: config.label,
48
61
  key: config.key,
49
- type: "image",
62
+ type: "switch",
50
63
  attrs: config.attrs,
51
64
  rules: normalizeRules(config)
52
65
  };
53
66
  },
67
+ // image(config: BaseConfig & { attrs?: ImageInstance['$props'] }): SchemaItem {
68
+ // return {
69
+ // label: config.label,
70
+ // key: config.key,
71
+ // type: 'image',
72
+ // attrs: config.attrs,
73
+ // rules: normalizeRules(config),
74
+ // }
75
+ // },
54
76
  time(config) {
55
77
  return {
56
78
  label: config.label,
@@ -73,7 +95,8 @@ var schema = {
73
95
  return {
74
96
  label: config.label,
75
97
  key: config.key,
76
- type: config.type,
98
+ name: config.type,
99
+ type: "custom",
77
100
  attrs: config.attrs,
78
101
  rules: normalizeRules(config)
79
102
  };
@@ -1,4 +1,4 @@
1
- import { k as Widget, I as IWidget } from '../Widget-BXpoxMwR.cjs';
1
+ import { l as Widget, I as IWidget } from '../Widget-Dfw3PnBq.cjs';
2
2
  import 'element-plus';
3
3
  import 'vue';
4
4
  import 'async-validator';
@@ -1,4 +1,4 @@
1
- import { k as Widget, I as IWidget } from '../Widget-BXpoxMwR.js';
1
+ import { l as Widget, I as IWidget } from '../Widget-Dfw3PnBq.js';
2
2
  import 'element-plus';
3
3
  import 'vue';
4
4
  import 'async-validator';
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { k as Widget } from '../Widget-BXpoxMwR.cjs';
2
+ import { l as Widget } from '../Widget-Dfw3PnBq.cjs';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { k as Widget } from '../Widget-BXpoxMwR.js';
2
+ import { l as Widget } from '../Widget-Dfw3PnBq.js';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
5
5
 
@@ -1,4 +1,4 @@
1
- export { j as SchemaItem, k as Widget } from '../Widget-BXpoxMwR.cjs';
1
+ export { O as Option, j as RadioButtonOption, R as RadioOption, k as SchemaItem, l as Widget } from '../Widget-Dfw3PnBq.cjs';
2
2
  import 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -1,4 +1,4 @@
1
- export { j as SchemaItem, k as Widget } from '../Widget-BXpoxMwR.js';
1
+ export { O as Option, j as RadioButtonOption, R as RadioOption, k as SchemaItem, l as Widget } from '../Widget-Dfw3PnBq.js';
2
2
  import 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -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-BXpoxMwR.cjs';
3
+ export { O as Option, j as RadioButtonOption, R as RadioOption, k as SchemaItem, l as Widget } from '../Widget-Dfw3PnBq.cjs';
4
4
  import 'vue';
5
5
  import 'element-plus';
6
6
  import 'async-validator';
@@ -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-BXpoxMwR.js';
3
+ export { O as Option, j as RadioButtonOption, R as RadioOption, k as SchemaItem, l as Widget } from '../Widget-Dfw3PnBq.js';
4
4
  import 'vue';
5
5
  import 'element-plus';
6
6
  import 'async-validator';
@@ -96,24 +96,46 @@ var schema = {
96
96
  options: config.options
97
97
  };
98
98
  },
99
- switch(config) {
100
- return {
99
+ radio(config) {
100
+ const base = {
101
101
  label: config.label,
102
102
  key: config.key,
103
- type: "switch",
103
+ type: "radio",
104
+ rules: normalizeRules(config),
104
105
  attrs: config.attrs,
105
- rules: normalizeRules(config)
106
+ options: config.options
106
107
  };
108
+ return base;
107
109
  },
108
- image(config) {
110
+ radioButton(config) {
111
+ const base = {
112
+ label: config.label,
113
+ key: config.key,
114
+ type: "radioButton",
115
+ rules: normalizeRules(config),
116
+ attrs: config.attrs,
117
+ options: config.options
118
+ };
119
+ return base;
120
+ },
121
+ switch(config) {
109
122
  return {
110
123
  label: config.label,
111
124
  key: config.key,
112
- type: "image",
125
+ type: "switch",
113
126
  attrs: config.attrs,
114
127
  rules: normalizeRules(config)
115
128
  };
116
129
  },
130
+ // image(config: BaseConfig & { attrs?: ImageInstance['$props'] }): SchemaItem {
131
+ // return {
132
+ // label: config.label,
133
+ // key: config.key,
134
+ // type: 'image',
135
+ // attrs: config.attrs,
136
+ // rules: normalizeRules(config),
137
+ // }
138
+ // },
117
139
  time(config) {
118
140
  return {
119
141
  label: config.label,
@@ -136,7 +158,8 @@ var schema = {
136
158
  return {
137
159
  label: config.label,
138
160
  key: config.key,
139
- type: config.type,
161
+ name: config.type,
162
+ type: "custom",
140
163
  attrs: config.attrs,
141
164
  rules: normalizeRules(config)
142
165
  };
@@ -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-BXpoxMwR.cjs';
5
+ import '../Widget-Dfw3PnBq.cjs';
6
6
  import 'vue';
7
7
  import 'async-validator';
@@ -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-BXpoxMwR.js';
5
+ import '../Widget-Dfw3PnBq.js';
6
6
  import 'vue';
7
7
  import 'async-validator';
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-W776G2UQ.js";
5
5
  import {
6
6
  schema
7
- } from "../chunk-SIPKDBVZ.js";
7
+ } from "../chunk-ZYXSKUF4.js";
8
8
  import {
9
9
  widget,
10
10
  widgetType
@@ -60,24 +60,46 @@ var schema = {
60
60
  options: config.options
61
61
  };
62
62
  },
63
- switch(config) {
64
- return {
63
+ radio(config) {
64
+ const base = {
65
65
  label: config.label,
66
66
  key: config.key,
67
- type: "switch",
67
+ type: "radio",
68
+ rules: normalizeRules(config),
68
69
  attrs: config.attrs,
69
- rules: normalizeRules(config)
70
+ options: config.options
70
71
  };
72
+ return base;
71
73
  },
72
- image(config) {
74
+ radioButton(config) {
75
+ const base = {
76
+ label: config.label,
77
+ key: config.key,
78
+ type: "radioButton",
79
+ rules: normalizeRules(config),
80
+ attrs: config.attrs,
81
+ options: config.options
82
+ };
83
+ return base;
84
+ },
85
+ switch(config) {
73
86
  return {
74
87
  label: config.label,
75
88
  key: config.key,
76
- type: "image",
89
+ type: "switch",
77
90
  attrs: config.attrs,
78
91
  rules: normalizeRules(config)
79
92
  };
80
93
  },
94
+ // image(config: BaseConfig & { attrs?: ImageInstance['$props'] }): SchemaItem {
95
+ // return {
96
+ // label: config.label,
97
+ // key: config.key,
98
+ // type: 'image',
99
+ // attrs: config.attrs,
100
+ // rules: normalizeRules(config),
101
+ // }
102
+ // },
81
103
  time(config) {
82
104
  return {
83
105
  label: config.label,
@@ -100,7 +122,8 @@ var schema = {
100
122
  return {
101
123
  label: config.label,
102
124
  key: config.key,
103
- type: config.type,
125
+ name: config.type,
126
+ type: "custom",
104
127
  attrs: config.attrs,
105
128
  rules: normalizeRules(config)
106
129
  };
@@ -1,9 +1,8 @@
1
- import { InputInstance, InputNumberInstance, SelectInstance, ElOption, SwitchInstance, ImageInstance, DatePickerInstance, ColorPickerInstance } from 'element-plus';
2
- import { j as SchemaItem } from '../Widget-BXpoxMwR.cjs';
1
+ import { InputInstance, InputNumberInstance, SelectInstance, RadioInstance, SwitchInstance, DatePickerInstance, ColorPickerInstance } from 'element-plus';
2
+ import { k as SchemaItem, O as Option, R as RadioOption, j as RadioButtonOption } from '../Widget-Dfw3PnBq.cjs';
3
3
  import 'vue';
4
4
  import 'async-validator';
5
5
 
6
- type Option = InstanceType<typeof ElOption>;
7
6
  interface BaseConfig {
8
7
  label: SchemaItem['label'];
9
8
  key: SchemaItem['key'];
@@ -22,12 +21,17 @@ declare const schema: {
22
21
  attrs?: SelectInstance["$props"];
23
22
  options?: Option["$props"][];
24
23
  }): SchemaItem;
24
+ radio(config: BaseConfig & {
25
+ attrs?: RadioInstance["$props"];
26
+ options?: RadioOption["$props"][];
27
+ }): SchemaItem;
28
+ radioButton(config: BaseConfig & {
29
+ attrs?: RadioInstance["$props"];
30
+ options?: RadioButtonOption["$props"][];
31
+ }): SchemaItem;
25
32
  switch(config: BaseConfig & {
26
33
  attrs?: SwitchInstance["$props"];
27
34
  }): SchemaItem;
28
- image(config: BaseConfig & {
29
- attrs?: ImageInstance["$props"];
30
- }): SchemaItem;
31
35
  time(config: BaseConfig & {
32
36
  attrs?: Partial<DatePickerInstance["$props"]>;
33
37
  }): SchemaItem;
@@ -1,9 +1,8 @@
1
- import { InputInstance, InputNumberInstance, SelectInstance, ElOption, SwitchInstance, ImageInstance, DatePickerInstance, ColorPickerInstance } from 'element-plus';
2
- import { j as SchemaItem } from '../Widget-BXpoxMwR.js';
1
+ import { InputInstance, InputNumberInstance, SelectInstance, RadioInstance, SwitchInstance, DatePickerInstance, ColorPickerInstance } from 'element-plus';
2
+ import { k as SchemaItem, O as Option, R as RadioOption, j as RadioButtonOption } from '../Widget-Dfw3PnBq.js';
3
3
  import 'vue';
4
4
  import 'async-validator';
5
5
 
6
- type Option = InstanceType<typeof ElOption>;
7
6
  interface BaseConfig {
8
7
  label: SchemaItem['label'];
9
8
  key: SchemaItem['key'];
@@ -22,12 +21,17 @@ declare const schema: {
22
21
  attrs?: SelectInstance["$props"];
23
22
  options?: Option["$props"][];
24
23
  }): SchemaItem;
24
+ radio(config: BaseConfig & {
25
+ attrs?: RadioInstance["$props"];
26
+ options?: RadioOption["$props"][];
27
+ }): SchemaItem;
28
+ radioButton(config: BaseConfig & {
29
+ attrs?: RadioInstance["$props"];
30
+ options?: RadioButtonOption["$props"][];
31
+ }): SchemaItem;
25
32
  switch(config: BaseConfig & {
26
33
  attrs?: SwitchInstance["$props"];
27
34
  }): SchemaItem;
28
- image(config: BaseConfig & {
29
- attrs?: ImageInstance["$props"];
30
- }): SchemaItem;
31
35
  time(config: BaseConfig & {
32
36
  attrs?: Partial<DatePickerInstance["$props"]>;
33
37
  }): SchemaItem;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  schema
3
- } from "../chunk-SIPKDBVZ.js";
3
+ } from "../chunk-ZYXSKUF4.js";
4
4
  import "../chunk-XJ2IJHKH.js";
5
5
  import "../chunk-HJO26HIQ.js";
6
6
  export {
@@ -1,4 +1,4 @@
1
- import { I as IWidget, j as SchemaItem, W as WidgetPos, B as Base } from '../Widget-BXpoxMwR.cjs';
1
+ import { I as IWidget, k as SchemaItem, W as WidgetPos, B as Base } from '../Widget-Dfw3PnBq.cjs';
2
2
  import * as vue from 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -1,4 +1,4 @@
1
- import { I as IWidget, j as SchemaItem, W as WidgetPos, B as Base } from '../Widget-BXpoxMwR.js';
1
+ import { I as IWidget, k as SchemaItem, W as WidgetPos, B as Base } from '../Widget-Dfw3PnBq.js';
2
2
  import * as vue from 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
package/dist/index.cjs CHANGED
@@ -100,24 +100,46 @@ var schema = {
100
100
  options: config.options
101
101
  };
102
102
  },
103
- switch(config) {
104
- return {
103
+ radio(config) {
104
+ const base = {
105
105
  label: config.label,
106
106
  key: config.key,
107
- type: "switch",
107
+ type: "radio",
108
+ rules: normalizeRules(config),
108
109
  attrs: config.attrs,
109
- rules: normalizeRules(config)
110
+ options: config.options
110
111
  };
112
+ return base;
111
113
  },
112
- image(config) {
114
+ radioButton(config) {
115
+ const base = {
116
+ label: config.label,
117
+ key: config.key,
118
+ type: "radioButton",
119
+ rules: normalizeRules(config),
120
+ attrs: config.attrs,
121
+ options: config.options
122
+ };
123
+ return base;
124
+ },
125
+ switch(config) {
113
126
  return {
114
127
  label: config.label,
115
128
  key: config.key,
116
- type: "image",
129
+ type: "switch",
117
130
  attrs: config.attrs,
118
131
  rules: normalizeRules(config)
119
132
  };
120
133
  },
134
+ // image(config: BaseConfig & { attrs?: ImageInstance['$props'] }): SchemaItem {
135
+ // return {
136
+ // label: config.label,
137
+ // key: config.key,
138
+ // type: 'image',
139
+ // attrs: config.attrs,
140
+ // rules: normalizeRules(config),
141
+ // }
142
+ // },
121
143
  time(config) {
122
144
  return {
123
145
  label: config.label,
@@ -140,7 +162,8 @@ var schema = {
140
162
  return {
141
163
  label: config.label,
142
164
  key: config.key,
143
- type: config.type,
165
+ name: config.type,
166
+ type: "custom",
144
167
  attrs: config.attrs,
145
168
  rules: normalizeRules(config)
146
169
  };
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-BXpoxMwR.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-Dfw3PnBq.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-BXpoxMwR.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-Dfw3PnBq.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-SIPKDBVZ.js";
7
+ } from "./chunk-ZYXSKUF4.js";
8
8
  import {
9
9
  widget,
10
10
  widgetType
@@ -1,6 +1,6 @@
1
1
  import { Node } from './class/Node.cjs';
2
2
  import 'vue';
3
- import './Widget-BXpoxMwR.cjs';
3
+ import './Widget-Dfw3PnBq.cjs';
4
4
  import 'element-plus';
5
5
  import 'async-validator';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { Node } from './class/Node.js';
2
2
  import 'vue';
3
- import './Widget-BXpoxMwR.js';
3
+ import './Widget-Dfw3PnBq.js';
4
4
  import 'element-plus';
5
5
  import 'async-validator';
6
6
 
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-BXpoxMwR.cjs';
4
+ import './Widget-Dfw3PnBq.cjs';
5
5
  import 'element-plus';
6
6
  import 'async-validator';
7
7
 
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-BXpoxMwR.js';
4
+ import './Widget-Dfw3PnBq.js';
5
5
  import 'element-plus';
6
6
  import 'async-validator';
7
7
 
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-BXpoxMwR.cjs';
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-Dfw3PnBq.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-BXpoxMwR.js';
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-Dfw3PnBq.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.1",
4
+ "version": "0.4.3",
5
5
  "description": "",
6
6
  "author": "sepveneto",
7
7
  "license": "MIT",
@@ -40,7 +40,6 @@
40
40
  "uuid": "^11.1.0"
41
41
  },
42
42
  "devDependencies": {
43
- "element-plus": "^2.9.11",
44
43
  "tsup": "^8.4.0",
45
44
  "vite": "^4.5.5",
46
45
  "vitest": "^0.28.5",