@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.
Files changed (44) hide show
  1. package/dist/{Widget-DndvEdEX.d.cts → Widget-xF5X82JJ.d.cts} +1 -1
  2. package/dist/{Widget-DndvEdEX.d.ts → Widget-xF5X82JJ.d.ts} +1 -1
  3. package/dist/{chunk-HJO26HIQ.js → chunk-6FNC3XMI.js} +4 -0
  4. package/dist/{chunk-77RZWUI5.js → chunk-CETJOSM3.js} +1 -1
  5. package/dist/{chunk-MWZZYXEL.js → chunk-M7DQRYCX.js} +17 -2
  6. package/dist/class/Container.d.cts +1 -1
  7. package/dist/class/Container.d.ts +1 -1
  8. package/dist/class/Container.js +1 -1
  9. package/dist/class/Node.d.cts +1 -1
  10. package/dist/class/Node.d.ts +1 -1
  11. package/dist/class/Node.js +2 -2
  12. package/dist/class/Widget.d.cts +1 -1
  13. package/dist/class/Widget.d.ts +1 -1
  14. package/dist/class/Widget.js +1 -1
  15. package/dist/class/index.d.cts +1 -1
  16. package/dist/class/index.d.ts +1 -1
  17. package/dist/class/index.js +2 -2
  18. package/dist/helper/EventEmitter.js +1 -1
  19. package/dist/helper/index.cjs +30 -2
  20. package/dist/helper/index.d.cts +1 -1
  21. package/dist/helper/index.d.ts +1 -1
  22. package/dist/helper/index.js +2 -2
  23. package/dist/helper/schema.cjs +30 -2
  24. package/dist/helper/schema.d.cts +2 -1
  25. package/dist/helper/schema.d.ts +2 -1
  26. package/dist/helper/schema.js +2 -2
  27. package/dist/helper/widget.d.cts +1 -1
  28. package/dist/helper/widget.d.ts +1 -1
  29. package/dist/helper/widget.js +1 -1
  30. package/dist/index.cjs +30 -2
  31. package/dist/index.d.cts +1 -1
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.js +2 -2
  34. package/dist/internal.d.cts +1 -1
  35. package/dist/internal.d.ts +1 -1
  36. package/dist/internal.js +1 -1
  37. package/dist/tokens.d.cts +1 -1
  38. package/dist/tokens.d.ts +1 -1
  39. package/dist/tokens.js +1 -1
  40. package/dist/types.d.cts +1 -1
  41. package/dist/types.d.ts +1 -1
  42. package/dist/types.js +1 -1
  43. package/dist/utils.js +1 -1
  44. 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 SchemaItem as k, Widget as l };
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 SchemaItem as k, Widget as l };
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,7 +1,7 @@
1
1
  import {
2
2
  __async,
3
3
  __spreadValues
4
- } from "./chunk-HJO26HIQ.js";
4
+ } from "./chunk-6FNC3XMI.js";
5
5
 
6
6
  // src/class/Node.ts
7
7
  import { v4 } from "uuid";
@@ -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
- return base;
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
- return this._create("custom", config);
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);
@@ -1,4 +1,4 @@
1
- import { l as Widget, I as IWidget } from '../Widget-DndvEdEX.cjs';
1
+ import { m as Widget, I as IWidget } from '../Widget-xF5X82JJ.cjs';
2
2
  import 'element-plus';
3
3
  import 'vue';
4
4
  import 'async-validator';
@@ -1,4 +1,4 @@
1
- import { l as Widget, I as IWidget } from '../Widget-DndvEdEX.js';
1
+ import { m as Widget, I as IWidget } from '../Widget-xF5X82JJ.js';
2
2
  import 'element-plus';
3
3
  import 'vue';
4
4
  import 'async-validator';
@@ -2,7 +2,7 @@ import {
2
2
  Container
3
3
  } from "../chunk-ZNYRMDSU.js";
4
4
  import "../chunk-KHPFRVKB.js";
5
- import "../chunk-HJO26HIQ.js";
5
+ import "../chunk-6FNC3XMI.js";
6
6
  export {
7
7
  Container
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { l as Widget } from '../Widget-DndvEdEX.cjs';
2
+ import { m as Widget } from '../Widget-xF5X82JJ.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 { l as Widget } from '../Widget-DndvEdEX.js';
2
+ import { m as Widget } from '../Widget-xF5X82JJ.js';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
5
5
 
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Node,
3
3
  RootNode
4
- } from "../chunk-77RZWUI5.js";
5
- import "../chunk-HJO26HIQ.js";
4
+ } from "../chunk-CETJOSM3.js";
5
+ import "../chunk-6FNC3XMI.js";
6
6
  export {
7
7
  Node,
8
8
  RootNode
@@ -1,4 +1,4 @@
1
- export { O as Option, j as RadioButtonOption, R as RadioOption, k as SchemaItem, l as Widget } from '../Widget-DndvEdEX.cjs';
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';
@@ -1,4 +1,4 @@
1
- export { O as Option, j as RadioButtonOption, R as RadioOption, k as SchemaItem, l as Widget } from '../Widget-DndvEdEX.js';
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';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Widget
3
3
  } from "../chunk-KHPFRVKB.js";
4
- import "../chunk-HJO26HIQ.js";
4
+ import "../chunk-6FNC3XMI.js";
5
5
  export {
6
6
  Widget
7
7
  };
@@ -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, k as SchemaItem, l as Widget } from '../Widget-DndvEdEX.cjs';
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';
@@ -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, k as SchemaItem, l as Widget } from '../Widget-DndvEdEX.js';
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';
@@ -4,11 +4,11 @@ import {
4
4
  import {
5
5
  Node,
6
6
  RootNode
7
- } from "../chunk-77RZWUI5.js";
7
+ } from "../chunk-CETJOSM3.js";
8
8
  import {
9
9
  Widget
10
10
  } from "../chunk-KHPFRVKB.js";
11
- import "../chunk-HJO26HIQ.js";
11
+ import "../chunk-6FNC3XMI.js";
12
12
  export {
13
13
  Container,
14
14
  Node,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  EventEmitter
3
3
  } from "../chunk-W776G2UQ.js";
4
- import "../chunk-HJO26HIQ.js";
4
+ import "../chunk-6FNC3XMI.js";
5
5
  export {
6
6
  EventEmitter
7
7
  };
@@ -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
- return base;
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
- return this._create("custom", config);
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);
@@ -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-DndvEdEX.cjs';
5
+ import '../Widget-xF5X82JJ.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-DndvEdEX.js';
5
+ import '../Widget-xF5X82JJ.js';
6
6
  import 'vue';
7
7
  import 'async-validator';
@@ -4,13 +4,13 @@ import {
4
4
  } from "../chunk-W776G2UQ.js";
5
5
  import {
6
6
  schema
7
- } from "../chunk-MWZZYXEL.js";
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-HJO26HIQ.js";
13
+ import "../chunk-6FNC3XMI.js";
14
14
  export {
15
15
  EventEmitter,
16
16
  schema,
@@ -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
- return base;
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
- return this._create("custom", config);
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);
@@ -1,5 +1,5 @@
1
1
  import { FormItemProps, 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-DndvEdEX.cjs';
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"];
@@ -1,5 +1,5 @@
1
1
  import { FormItemProps, 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-DndvEdEX.js';
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"];
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  schema
3
- } from "../chunk-MWZZYXEL.js";
3
+ } from "../chunk-M7DQRYCX.js";
4
4
  import "../chunk-XJ2IJHKH.js";
5
- import "../chunk-HJO26HIQ.js";
5
+ import "../chunk-6FNC3XMI.js";
6
6
  export {
7
7
  schema
8
8
  };
@@ -1,4 +1,4 @@
1
- import { I as IWidget, k as SchemaItem, W as WidgetPos, B as Base } from '../Widget-DndvEdEX.cjs';
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';
@@ -1,4 +1,4 @@
1
- import { I as IWidget, k as SchemaItem, W as WidgetPos, B as Base } from '../Widget-DndvEdEX.js';
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';
@@ -2,7 +2,7 @@ import {
2
2
  widget,
3
3
  widgetType
4
4
  } from "../chunk-VRAKS4JU.js";
5
- import "../chunk-HJO26HIQ.js";
5
+ import "../chunk-6FNC3XMI.js";
6
6
  export {
7
7
  widget,
8
8
  widgetType
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
- return base;
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
- return this._create("custom", config);
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-DndvEdEX.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-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-DndvEdEX.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-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-MWZZYXEL.js";
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-HJO26HIQ.js";
23
+ import "./chunk-6FNC3XMI.js";
24
24
  export {
25
25
  EventEmitter,
26
26
  createCopy,
@@ -1,6 +1,6 @@
1
1
  import { Node } from './class/Node.cjs';
2
2
  import 'vue';
3
- import './Widget-DndvEdEX.cjs';
3
+ import './Widget-xF5X82JJ.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-DndvEdEX.js';
3
+ import './Widget-xF5X82JJ.js';
4
4
  import 'element-plus';
5
5
  import 'async-validator';
6
6
 
package/dist/internal.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  createCopy,
3
3
  createDelete
4
4
  } from "./chunk-TM53N6AZ.js";
5
- import "./chunk-HJO26HIQ.js";
5
+ import "./chunk-6FNC3XMI.js";
6
6
  export {
7
7
  createCopy,
8
8
  createDelete
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-DndvEdEX.cjs';
4
+ import './Widget-xF5X82JJ.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-DndvEdEX.js';
4
+ import './Widget-xF5X82JJ.js';
5
5
  import 'element-plus';
6
6
  import 'async-validator';
7
7
 
package/dist/tokens.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  editorContextKey
3
3
  } from "./chunk-D2MSIUE2.js";
4
- import "./chunk-HJO26HIQ.js";
4
+ import "./chunk-6FNC3XMI.js";
5
5
  export {
6
6
  editorContextKey
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-DndvEdEX.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-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-DndvEdEX.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-xF5X82JJ.js';
4
4
  import 'async-validator';
package/dist/types.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isBox
3
3
  } from "./chunk-4QIIKQ6B.js";
4
- import "./chunk-HJO26HIQ.js";
4
+ import "./chunk-6FNC3XMI.js";
5
5
  export {
6
6
  isBox
7
7
  };
package/dist/utils.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  likeArray
3
3
  } from "./chunk-XJ2IJHKH.js";
4
- import "./chunk-HJO26HIQ.js";
4
+ import "./chunk-6FNC3XMI.js";
5
5
  export {
6
6
  likeArray
7
7
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sepveneto/dnde-core",
3
3
  "type": "module",
4
- "version": "0.4.5",
4
+ "version": "0.4.7",
5
5
  "description": "",
6
6
  "author": "sepveneto",
7
7
  "license": "MIT",