@sepveneto/dnde-core 0.6.3 → 0.6.4

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.
@@ -18,11 +18,21 @@ interface WidgetLayoutItem {
18
18
  }>;
19
19
  }
20
20
  interface WidgetAgent {
21
- description: string;
21
+ /**
22
+ * 组件的功能描述。
23
+ * 用于组件检索、用户意图匹配和编辑时的组件定位。
24
+ */
25
+ description?: string;
26
+ /**
27
+ * 初始化页面时使用的布局信息。
28
+ */
22
29
  layout?: {
23
- direction: 'row' | 'column';
24
- density: 'low' | 'medium' | 'high';
25
- priority: 'large';
30
+ /**
31
+ * 组件的布局特征与适用场景。
32
+ */
33
+ description: string;
34
+ estimatedSize: string;
35
+ priority: 'large' | 'medium' | 'small' | 'tiny';
26
36
  };
27
37
  /**
28
38
  * 布局子 Agent 结束、组件创建完成后,由业务侧决定数据如何更新到组件里。
@@ -267,21 +277,5 @@ declare class Node {
267
277
  copy(): Node;
268
278
  parse(): Record<string, any>;
269
279
  }
270
- declare class RootNode {
271
- level: number;
272
- wid: string;
273
- widget: Readonly<Widget>;
274
- parent?: Node;
275
- list: any[];
276
- data: Record<string, any>;
277
- style: CSSProperties;
278
- hovering: boolean;
279
- dragging: boolean;
280
- constructor(widget: Widget, info?: {
281
- props?: Node['data'];
282
- style?: Node['style'];
283
- list?: Node['list'];
284
- });
285
- }
286
280
 
287
- export { type Base as B, type DisabledItemFn as D, type EditorConfig as E, type IWidget as I, Node as N, type Option as O, type RadioOption as R, type SchemaOther as S, type WidgetPos as W, type WidgetLayoutItem as a, type WidgetAgent as b, type SchemaBox as c, type ISchema as d, type EditorSchema as e, type EditorWidget as f, type EditorRoute as g, type EditorWidgets as h, isBox as i, type EditorSettings as j, type EditorData as k, type SchemaItem as l, type RadioButtonOption as m, Widget as n, RootNode as o, type SchemaItemCustom as p };
281
+ export { type Base as B, type DisabledItemFn as D, type EditorConfig as E, type IWidget as I, Node as N, type Option as O, type RadioOption as R, type SchemaItemCustom as S, Widget as W, type RadioButtonOption as a, type SchemaItem as b, type WidgetPos as c, type WidgetLayoutItem as d, type WidgetAgent as e, type SchemaOther as f, type SchemaBox as g, type ISchema as h, isBox as i, type EditorSchema as j, type EditorWidget as k, type EditorRoute as l, type EditorWidgets as m, type EditorSettings as n, type EditorData as o };
@@ -18,11 +18,21 @@ interface WidgetLayoutItem {
18
18
  }>;
19
19
  }
20
20
  interface WidgetAgent {
21
- description: string;
21
+ /**
22
+ * 组件的功能描述。
23
+ * 用于组件检索、用户意图匹配和编辑时的组件定位。
24
+ */
25
+ description?: string;
26
+ /**
27
+ * 初始化页面时使用的布局信息。
28
+ */
22
29
  layout?: {
23
- direction: 'row' | 'column';
24
- density: 'low' | 'medium' | 'high';
25
- priority: 'large';
30
+ /**
31
+ * 组件的布局特征与适用场景。
32
+ */
33
+ description: string;
34
+ estimatedSize: string;
35
+ priority: 'large' | 'medium' | 'small' | 'tiny';
26
36
  };
27
37
  /**
28
38
  * 布局子 Agent 结束、组件创建完成后,由业务侧决定数据如何更新到组件里。
@@ -267,21 +277,5 @@ declare class Node {
267
277
  copy(): Node;
268
278
  parse(): Record<string, any>;
269
279
  }
270
- declare class RootNode {
271
- level: number;
272
- wid: string;
273
- widget: Readonly<Widget>;
274
- parent?: Node;
275
- list: any[];
276
- data: Record<string, any>;
277
- style: CSSProperties;
278
- hovering: boolean;
279
- dragging: boolean;
280
- constructor(widget: Widget, info?: {
281
- props?: Node['data'];
282
- style?: Node['style'];
283
- list?: Node['list'];
284
- });
285
- }
286
280
 
287
- export { type Base as B, type DisabledItemFn as D, type EditorConfig as E, type IWidget as I, Node as N, type Option as O, type RadioOption as R, type SchemaOther as S, type WidgetPos as W, type WidgetLayoutItem as a, type WidgetAgent as b, type SchemaBox as c, type ISchema as d, type EditorSchema as e, type EditorWidget as f, type EditorRoute as g, type EditorWidgets as h, isBox as i, type EditorSettings as j, type EditorData as k, type SchemaItem as l, type RadioButtonOption as m, Widget as n, RootNode as o, type SchemaItemCustom as p };
281
+ export { type Base as B, type DisabledItemFn as D, type EditorConfig as E, type IWidget as I, Node as N, type Option as O, type RadioOption as R, type SchemaItemCustom as S, Widget as W, type RadioButtonOption as a, type SchemaItem as b, type WidgetPos as c, type WidgetLayoutItem as d, type WidgetAgent as e, type SchemaOther as f, type SchemaBox as g, type ISchema as h, isBox as i, type EditorSchema as j, type EditorWidget as k, type EditorRoute as l, type EditorWidgets as m, type EditorSettings as n, type EditorData as o };
File without changes
@@ -96,22 +96,7 @@ var Node = class _Node {
96
96
  return res;
97
97
  }
98
98
  };
99
- var RootNode = class {
100
- constructor(widget, info) {
101
- this.level = 0;
102
- this.list = [];
103
- this.data = {};
104
- this.style = {};
105
- this.hovering = false;
106
- this.dragging = false;
107
- this.widget = widget;
108
- this.wid = v4();
109
- this.data = (info == null ? void 0 : info.props) || {};
110
- this.style = (info == null ? void 0 : info.style) || {};
111
- }
112
- };
113
99
 
114
100
  export {
115
- Node,
116
- RootNode
101
+ Node
117
102
  };
@@ -1,4 +1,4 @@
1
- import { n as Widget, I as IWidget } from '../Node-B7pDsvZF.cjs';
1
+ import { W as Widget, I as IWidget } from '../Node-CnqlVnWy.cjs';
2
2
  import 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -1,4 +1,4 @@
1
- import { n as Widget, I as IWidget } from '../Node-B7pDsvZF.js';
1
+ import { W as Widget, I as IWidget } from '../Node-CnqlVnWy.js';
2
2
  import 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -54,8 +54,7 @@ var __async = (__this, __arguments, generator) => {
54
54
  // src/class/Node.ts
55
55
  var Node_exports = {};
56
56
  __export(Node_exports, {
57
- Node: () => Node,
58
- RootNode: () => RootNode
57
+ Node: () => Node
59
58
  });
60
59
  module.exports = __toCommonJS(Node_exports);
61
60
  var import_uuid = require("uuid");
@@ -150,22 +149,7 @@ var Node = class _Node {
150
149
  return res;
151
150
  }
152
151
  };
153
- var RootNode = class {
154
- constructor(widget, info) {
155
- this.level = 0;
156
- this.list = [];
157
- this.data = {};
158
- this.style = {};
159
- this.hovering = false;
160
- this.dragging = false;
161
- this.widget = widget;
162
- this.wid = (0, import_uuid.v4)();
163
- this.data = (info == null ? void 0 : info.props) || {};
164
- this.style = (info == null ? void 0 : info.style) || {};
165
- }
166
- };
167
152
  // Annotate the CommonJS export names for ESM import in node:
168
153
  0 && (module.exports = {
169
- Node,
170
- RootNode
154
+ Node
171
155
  });
@@ -1,4 +1,4 @@
1
1
  import 'vue';
2
- export { N as Node, o as RootNode } from '../Node-B7pDsvZF.cjs';
2
+ export { N as Node } from '../Node-CnqlVnWy.cjs';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -1,4 +1,4 @@
1
1
  import 'vue';
2
- export { N as Node, o as RootNode } from '../Node-B7pDsvZF.js';
2
+ export { N as Node } from '../Node-CnqlVnWy.js';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -1,9 +1,7 @@
1
1
  import {
2
- Node,
3
- RootNode
4
- } from "../chunk-KJZSF66T.js";
2
+ Node
3
+ } from "../chunk-RLMXVDJK.js";
5
4
  import "../chunk-6FNC3XMI.js";
6
5
  export {
7
- Node,
8
- RootNode
6
+ Node
9
7
  };
@@ -1,4 +1,4 @@
1
- export { O as Option, m as RadioButtonOption, R as RadioOption, l as SchemaItem, p as SchemaItemCustom, n as Widget } from '../Node-B7pDsvZF.cjs';
1
+ export { O as Option, a as RadioButtonOption, R as RadioOption, b as SchemaItem, S as SchemaItemCustom, W as Widget } from '../Node-CnqlVnWy.cjs';
2
2
  import 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -1,4 +1,4 @@
1
- export { O as Option, m as RadioButtonOption, R as RadioOption, l as SchemaItem, p as SchemaItemCustom, n as Widget } from '../Node-B7pDsvZF.js';
1
+ export { O as Option, a as RadioButtonOption, R as RadioOption, b as SchemaItem, S as SchemaItemCustom, W as Widget } from '../Node-CnqlVnWy.js';
2
2
  import 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -66,7 +66,6 @@ var class_exports = {};
66
66
  __export(class_exports, {
67
67
  Container: () => Container,
68
68
  Node: () => Node,
69
- RootNode: () => RootNode,
70
69
  Widget: () => Widget
71
70
  });
72
71
  module.exports = __toCommonJS(class_exports);
@@ -243,24 +242,9 @@ var Node = class _Node {
243
242
  return res;
244
243
  }
245
244
  };
246
- var RootNode = class {
247
- constructor(widget, info) {
248
- this.level = 0;
249
- this.list = [];
250
- this.data = {};
251
- this.style = {};
252
- this.hovering = false;
253
- this.dragging = false;
254
- this.widget = widget;
255
- this.wid = (0, import_uuid.v4)();
256
- this.data = (info == null ? void 0 : info.props) || {};
257
- this.style = (info == null ? void 0 : info.style) || {};
258
- }
259
- };
260
245
  // Annotate the CommonJS export names for ESM import in node:
261
246
  0 && (module.exports = {
262
247
  Container,
263
248
  Node,
264
- RootNode,
265
249
  Widget
266
250
  });
@@ -1,5 +1,5 @@
1
1
  export { Container } from './Container.cjs';
2
- export { N as Node, O as Option, m as RadioButtonOption, R as RadioOption, o as RootNode, l as SchemaItem, p as SchemaItemCustom, n as Widget } from '../Node-B7pDsvZF.cjs';
2
+ export { N as Node, O as Option, a as RadioButtonOption, R as RadioOption, b as SchemaItem, S as SchemaItemCustom, W as Widget } from '../Node-CnqlVnWy.cjs';
3
3
  import 'vue';
4
4
  import 'element-plus';
5
5
  import 'async-validator';
@@ -1,5 +1,5 @@
1
1
  export { Container } from './Container.js';
2
- export { N as Node, O as Option, m as RadioButtonOption, R as RadioOption, o as RootNode, l as SchemaItem, p as SchemaItemCustom, n as Widget } from '../Node-B7pDsvZF.js';
2
+ export { N as Node, O as Option, a as RadioButtonOption, R as RadioOption, b as SchemaItem, S as SchemaItemCustom, W as Widget } from '../Node-CnqlVnWy.js';
3
3
  import 'vue';
4
4
  import 'element-plus';
5
5
  import 'async-validator';
@@ -1,10 +1,10 @@
1
+ import "../chunk-IQ5LOS7W.js";
1
2
  import {
2
3
  Container
3
4
  } from "../chunk-VLEUQG7E.js";
4
5
  import {
5
- Node,
6
- RootNode
7
- } from "../chunk-KJZSF66T.js";
6
+ Node
7
+ } from "../chunk-RLMXVDJK.js";
8
8
  import {
9
9
  Widget
10
10
  } from "../chunk-CI6CS5LG.js";
@@ -12,6 +12,5 @@ import "../chunk-6FNC3XMI.js";
12
12
  export {
13
13
  Container,
14
14
  Node,
15
- RootNode,
16
15
  Widget
17
16
  };
@@ -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 '../Node-B7pDsvZF.cjs';
5
+ import '../Node-CnqlVnWy.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 '../Node-B7pDsvZF.js';
5
+ import '../Node-CnqlVnWy.js';
6
6
  import 'vue';
7
7
  import 'async-validator';
@@ -1,5 +1,5 @@
1
1
  import { FormItemProps, InputProps, InputNumberProps, CheckboxProps, SelectProps, RadioProps, RadioButtonProps, SwitchProps, DatePickerProps, ColorPickerProps } from 'element-plus';
2
- import { l as SchemaItem, O as Option, R as RadioOption, m as RadioButtonOption } from '../Node-B7pDsvZF.cjs';
2
+ import { b as SchemaItem, O as Option, R as RadioOption, a as RadioButtonOption } from '../Node-CnqlVnWy.cjs';
3
3
  import 'vue';
4
4
  import 'async-validator';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { FormItemProps, InputProps, InputNumberProps, CheckboxProps, SelectProps, RadioProps, RadioButtonProps, SwitchProps, DatePickerProps, ColorPickerProps } from 'element-plus';
2
- import { l as SchemaItem, O as Option, R as RadioOption, m as RadioButtonOption } from '../Node-B7pDsvZF.js';
2
+ import { b as SchemaItem, O as Option, R as RadioOption, a as RadioButtonOption } from '../Node-CnqlVnWy.js';
3
3
  import 'vue';
4
4
  import 'async-validator';
5
5
 
@@ -1,4 +1,4 @@
1
- import { I as IWidget, l as SchemaItem, W as WidgetPos, b as WidgetAgent, B as Base } from '../Node-B7pDsvZF.cjs';
1
+ import { I as IWidget, b as SchemaItem, c as WidgetPos, e as WidgetAgent, B as Base } from '../Node-CnqlVnWy.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, l as SchemaItem, W as WidgetPos, b as WidgetAgent, B as Base } from '../Node-B7pDsvZF.js';
1
+ import { I as IWidget, b as SchemaItem, c as WidgetPos, e as WidgetAgent, B as Base } from '../Node-CnqlVnWy.js';
2
2
  import * as vue from 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
package/dist/index.cjs CHANGED
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __defProps = Object.defineProperties;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
8
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
8
10
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
11
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
12
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -32,12 +34,43 @@ var __copyProps = (to, from, except, desc) => {
32
34
  }
33
35
  return to;
34
36
  };
37
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
38
+ // If the importer is in node compatibility mode or this is not an ESM
39
+ // file that has been converted to a CommonJS file using a Babel-
40
+ // compatible transform (i.e. "__esModule" has not been set), then set
41
+ // "default" to the CommonJS "module.exports" for node compatibility.
42
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
43
+ mod
44
+ ));
35
45
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
46
+ var __async = (__this, __arguments, generator) => {
47
+ return new Promise((resolve, reject) => {
48
+ var fulfilled = (value) => {
49
+ try {
50
+ step(generator.next(value));
51
+ } catch (e) {
52
+ reject(e);
53
+ }
54
+ };
55
+ var rejected = (value) => {
56
+ try {
57
+ step(generator.throw(value));
58
+ } catch (e) {
59
+ reject(e);
60
+ }
61
+ };
62
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
63
+ step((generator = generator.apply(__this, __arguments)).next());
64
+ });
65
+ };
36
66
 
37
67
  // src/index.ts
38
68
  var index_exports = {};
39
69
  __export(index_exports, {
70
+ Container: () => Container,
40
71
  EventEmitter: () => EventEmitter,
72
+ Node: () => Node,
73
+ Widget: () => Widget,
41
74
  createCopy: () => createCopy,
42
75
  createDelete: () => createDelete,
43
76
  editorContextKey: () => editorContextKey,
@@ -48,6 +81,179 @@ __export(index_exports, {
48
81
  });
49
82
  module.exports = __toCommonJS(index_exports);
50
83
 
84
+ // src/class/Widget.ts
85
+ var import_async_validator = __toESM(require("async-validator"), 1);
86
+ var Widget = class _Widget {
87
+ constructor(widget2) {
88
+ this._data = JSON.parse(JSON.stringify(widget2));
89
+ if (widget2.agent)
90
+ this._data.agent = __spreadValues({}, widget2.agent);
91
+ this.name = widget2._name;
92
+ this.view = widget2._view;
93
+ this.container = widget2.container;
94
+ }
95
+ clone() {
96
+ return new _Widget(this._data);
97
+ }
98
+ get icon() {
99
+ return this._data._icon;
100
+ }
101
+ get props() {
102
+ var _a;
103
+ return ((_a = this._data.schema) == null ? void 0 : _a.props) || [];
104
+ }
105
+ get style() {
106
+ var _a;
107
+ return ((_a = this._data.schema) == null ? void 0 : _a.style) || [];
108
+ }
109
+ get defaultStyle() {
110
+ return this._data.style;
111
+ }
112
+ get defaultData() {
113
+ return this._data.data;
114
+ }
115
+ get agent() {
116
+ return this._data.agent;
117
+ }
118
+ get draggable() {
119
+ var _a, _b;
120
+ return (_b = (_a = this._data.meta) == null ? void 0 : _a.draggable) != null ? _b : true;
121
+ }
122
+ get isFixed() {
123
+ var _a;
124
+ const fixed = (_a = this._data.meta) == null ? void 0 : _a.fixed;
125
+ if (fixed === true) {
126
+ return "header";
127
+ } else {
128
+ return fixed;
129
+ }
130
+ }
131
+ get visible() {
132
+ var _a, _b;
133
+ return (_b = (_a = this._data.meta) == null ? void 0 : _a.visible) != null ? _b : true;
134
+ }
135
+ get validatorProps() {
136
+ var _a, _b;
137
+ const _rules = ((_b = (_a = this._data.schema) == null ? void 0 : _a.props) == null ? void 0 : _b.reduce((all, curr) => {
138
+ all[curr.key] = curr.rules || [];
139
+ return all;
140
+ }, {})) || {};
141
+ const validator = new import_async_validator.default(_rules);
142
+ return validator;
143
+ }
144
+ get validatorStyle() {
145
+ var _a, _b;
146
+ const _rules = ((_b = (_a = this._data.schema) == null ? void 0 : _a.style) == null ? void 0 : _b.reduce((all, curr) => {
147
+ all[curr.key] = curr.rules || [];
148
+ return all;
149
+ }, {})) || {};
150
+ const validator = new import_async_validator.default(_rules);
151
+ return validator;
152
+ }
153
+ };
154
+
155
+ // src/class/Container.ts
156
+ var Container = class extends Widget {
157
+ constructor(data) {
158
+ super(data);
159
+ this.view = "container";
160
+ }
161
+ };
162
+
163
+ // src/class/Node.ts
164
+ var import_uuid = require("uuid");
165
+ var Node = class _Node {
166
+ constructor(widget2, info) {
167
+ this.level = 0;
168
+ this.list = [];
169
+ this.data = {};
170
+ this.style = {};
171
+ this.hovering = false;
172
+ this.dragging = false;
173
+ this.widget = widget2;
174
+ this.wid = (info == null ? void 0 : info.uuid) || (0, import_uuid.v4)();
175
+ this.list = (info == null ? void 0 : info.list) || [];
176
+ this.data = (info == null ? void 0 : info.props) || {};
177
+ this.style = (info == null ? void 0 : info.style) || {};
178
+ }
179
+ get info() {
180
+ return __spreadValues({
181
+ style: this.style
182
+ }, this.data);
183
+ }
184
+ get isContainer() {
185
+ return !!this.widget.container;
186
+ }
187
+ get hasList() {
188
+ return this.list && this.list.length > 0;
189
+ }
190
+ get mouseover() {
191
+ return this.hovering;
192
+ }
193
+ get type() {
194
+ var _a;
195
+ return ((_a = this.widget) == null ? void 0 : _a.view) || "root";
196
+ }
197
+ get name() {
198
+ var _a;
199
+ return ((_a = this.widget) == null ? void 0 : _a.name) || "\u9875\u9762";
200
+ }
201
+ get visible() {
202
+ if ("isShow" in this.data)
203
+ return Boolean(this.data.isShow);
204
+ }
205
+ validate(only = false) {
206
+ return __async(this, null, function* () {
207
+ const valid = yield Promise.all([
208
+ this.widget.validatorProps.validate(this.data),
209
+ this.widget.validatorStyle.validate(this.style)
210
+ ]).catch(() => {
211
+ return false;
212
+ });
213
+ if (!valid) {
214
+ return this.wid;
215
+ }
216
+ if (only || !this.list) {
217
+ return;
218
+ }
219
+ for (const item of this.list) {
220
+ const invalid = yield item.validate();
221
+ if (invalid) {
222
+ return invalid;
223
+ }
224
+ }
225
+ });
226
+ }
227
+ triggerHover(hover) {
228
+ this.hovering = hover;
229
+ }
230
+ setList(list) {
231
+ this.list = list;
232
+ }
233
+ copy() {
234
+ var _a;
235
+ const list = (_a = this.list) == null ? void 0 : _a.map((item) => item.copy());
236
+ const info = {
237
+ props: JSON.parse(JSON.stringify(this.data)),
238
+ style: JSON.parse(JSON.stringify(this.style)),
239
+ list
240
+ };
241
+ return new _Node(this.widget.clone(), info);
242
+ }
243
+ parse() {
244
+ var _a;
245
+ const res = {
246
+ _uuid: this.wid,
247
+ _name: this.name,
248
+ _view: this.type,
249
+ data: this.data,
250
+ style: this.style,
251
+ list: (_a = this.list) == null ? void 0 : _a.map((item) => item.parse())
252
+ };
253
+ return res;
254
+ }
255
+ };
256
+
51
257
  // src/helper/EventEmitter.ts
52
258
  var EventEmitter = class {
53
259
  constructor(subscribeFn) {
@@ -259,7 +465,10 @@ function isBox(schema2) {
259
465
  }
260
466
  // Annotate the CommonJS export names for ESM import in node:
261
467
  0 && (module.exports = {
468
+ Container,
262
469
  EventEmitter,
470
+ Node,
471
+ Widget,
263
472
  createCopy,
264
473
  createDelete,
265
474
  editorContextKey,
package/dist/index.d.cts CHANGED
@@ -1,9 +1,10 @@
1
+ export { Container } from './class/Container.cjs';
2
+ export { B as Base, D as DisabledItemFn, E as EditorConfig, o as EditorData, l as EditorRoute, j as EditorSchema, n as EditorSettings, k as EditorWidget, m as EditorWidgets, h as ISchema, I as IWidget, N as Node, O as Option, a as RadioButtonOption, R as RadioOption, g as SchemaBox, b as SchemaItem, S as SchemaItemCustom, f as SchemaOther, W as Widget, e as WidgetAgent, d as WidgetLayoutItem, c as WidgetPos, i as isBox } from './Node-CnqlVnWy.cjs';
1
3
  export { EventEmitter } from './helper/EventEmitter.cjs';
2
4
  export { schema } from './helper/schema.cjs';
3
5
  export { widget, widgetType } from './helper/widget.cjs';
4
6
  export { createCopy, createDelete } from './internal.cjs';
5
7
  export { EditorContext, editorContextKey } from './tokens.cjs';
6
- export { B as Base, D as DisabledItemFn, E as EditorConfig, k as EditorData, g as EditorRoute, e as EditorSchema, j as EditorSettings, f as EditorWidget, h as EditorWidgets, d as ISchema, I as IWidget, c as SchemaBox, S as SchemaOther, b as WidgetAgent, a as WidgetLayoutItem, W as WidgetPos, i as isBox } from './Node-B7pDsvZF.cjs';
7
- import 'element-plus';
8
8
  import 'vue';
9
+ import 'element-plus';
9
10
  import 'async-validator';
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
+ export { Container } from './class/Container.js';
2
+ export { B as Base, D as DisabledItemFn, E as EditorConfig, o as EditorData, l as EditorRoute, j as EditorSchema, n as EditorSettings, k as EditorWidget, m as EditorWidgets, h as ISchema, I as IWidget, N as Node, O as Option, a as RadioButtonOption, R as RadioOption, g as SchemaBox, b as SchemaItem, S as SchemaItemCustom, f as SchemaOther, W as Widget, e as WidgetAgent, d as WidgetLayoutItem, c as WidgetPos, i as isBox } from './Node-CnqlVnWy.js';
1
3
  export { EventEmitter } from './helper/EventEmitter.js';
2
4
  export { schema } from './helper/schema.js';
3
5
  export { widget, widgetType } from './helper/widget.js';
4
6
  export { createCopy, createDelete } from './internal.js';
5
7
  export { EditorContext, editorContextKey } from './tokens.js';
6
- export { B as Base, D as DisabledItemFn, E as EditorConfig, k as EditorData, g as EditorRoute, e as EditorSchema, j as EditorSettings, f as EditorWidget, h as EditorWidgets, d as ISchema, I as IWidget, c as SchemaBox, S as SchemaOther, b as WidgetAgent, a as WidgetLayoutItem, W as WidgetPos, i as isBox } from './Node-B7pDsvZF.js';
7
- import 'element-plus';
8
8
  import 'vue';
9
+ import 'element-plus';
9
10
  import 'async-validator';
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import "./chunk-IQ5LOS7W.js";
1
2
  import "./chunk-4QVESRP3.js";
2
3
  import {
3
4
  EventEmitter
@@ -20,9 +21,21 @@ import {
20
21
  isBox
21
22
  } from "./chunk-4QIIKQ6B.js";
22
23
  import "./chunk-XJ2IJHKH.js";
24
+ import {
25
+ Container
26
+ } from "./chunk-VLEUQG7E.js";
27
+ import {
28
+ Node
29
+ } from "./chunk-RLMXVDJK.js";
30
+ import {
31
+ Widget
32
+ } from "./chunk-CI6CS5LG.js";
23
33
  import "./chunk-6FNC3XMI.js";
24
34
  export {
35
+ Container,
25
36
  EventEmitter,
37
+ Node,
38
+ Widget,
26
39
  createCopy,
27
40
  createDelete,
28
41
  editorContextKey,
@@ -1,4 +1,4 @@
1
- import { N as Node } from './Node-B7pDsvZF.cjs';
1
+ import { N as Node } from './Node-CnqlVnWy.cjs';
2
2
  import 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -1,4 +1,4 @@
1
- import { N as Node } from './Node-B7pDsvZF.js';
1
+ import { N as Node } from './Node-CnqlVnWy.js';
2
2
  import 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
package/dist/tokens.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { InjectionKey } from 'vue';
2
2
  import { EventEmitter } from './helper/EventEmitter.cjs';
3
- import { N as Node } from './Node-B7pDsvZF.cjs';
3
+ import { N as Node } from './Node-CnqlVnWy.cjs';
4
4
  import 'element-plus';
5
5
  import 'async-validator';
6
6
 
package/dist/tokens.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { InjectionKey } from 'vue';
2
2
  import { EventEmitter } from './helper/EventEmitter.js';
3
- import { N as Node } from './Node-B7pDsvZF.js';
3
+ import { N as Node } from './Node-CnqlVnWy.js';
4
4
  import 'element-plus';
5
5
  import 'async-validator';
6
6
 
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, k as EditorData, g as EditorRoute, e as EditorSchema, j as EditorSettings, f as EditorWidget, h as EditorWidgets, d as ISchema, I as IWidget, c as SchemaBox, S as SchemaOther, b as WidgetAgent, a as WidgetLayoutItem, W as WidgetPos, i as isBox } from './Node-B7pDsvZF.cjs';
3
+ export { B as Base, D as DisabledItemFn, E as EditorConfig, o as EditorData, l as EditorRoute, j as EditorSchema, n as EditorSettings, k as EditorWidget, m as EditorWidgets, h as ISchema, I as IWidget, g as SchemaBox, f as SchemaOther, e as WidgetAgent, d as WidgetLayoutItem, c as WidgetPos, i as isBox } from './Node-CnqlVnWy.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, k as EditorData, g as EditorRoute, e as EditorSchema, j as EditorSettings, f as EditorWidget, h as EditorWidgets, d as ISchema, I as IWidget, c as SchemaBox, S as SchemaOther, b as WidgetAgent, a as WidgetLayoutItem, W as WidgetPos, i as isBox } from './Node-B7pDsvZF.js';
3
+ export { B as Base, D as DisabledItemFn, E as EditorConfig, o as EditorData, l as EditorRoute, j as EditorSchema, n as EditorSettings, k as EditorWidget, m as EditorWidgets, h as ISchema, I as IWidget, g as SchemaBox, f as SchemaOther, e as WidgetAgent, d as WidgetLayoutItem, c as WidgetPos, i as isBox } from './Node-CnqlVnWy.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.6.3",
4
+ "version": "0.6.4",
5
5
  "description": "",
6
6
  "author": "sepveneto",
7
7
  "license": "MIT",