@sepveneto/dnde-core 0.4.2 → 0.4.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.
@@ -14,7 +14,7 @@ var Node = class _Node {
14
14
  this.hovering = false;
15
15
  this.dragging = false;
16
16
  this.widget = widget;
17
- this.wid = v4();
17
+ this.wid = (info == null ? void 0 : info.uuid) || v4();
18
18
  this.list = (info == null ? void 0 : info.list) || [];
19
19
  this.data = (info == null ? void 0 : info.props) || {};
20
20
  this.style = (info == null ? void 0 : info.style) || {};
@@ -64,15 +64,15 @@ var schema = {
64
64
  rules: normalizeRules(config)
65
65
  };
66
66
  },
67
- image(config) {
68
- return {
69
- label: config.label,
70
- key: config.key,
71
- type: "image",
72
- attrs: config.attrs,
73
- rules: normalizeRules(config)
74
- };
75
- },
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
+ // },
76
76
  time(config) {
77
77
  return {
78
78
  label: config.label,
@@ -68,7 +68,7 @@ var Node = class _Node {
68
68
  this.hovering = false;
69
69
  this.dragging = false;
70
70
  this.widget = widget;
71
- this.wid = (0, import_uuid.v4)();
71
+ this.wid = (info == null ? void 0 : info.uuid) || (0, import_uuid.v4)();
72
72
  this.list = (info == null ? void 0 : info.list) || [];
73
73
  this.data = (info == null ? void 0 : info.props) || {};
74
74
  this.style = (info == null ? void 0 : info.style) || {};
@@ -14,6 +14,7 @@ declare class Node {
14
14
  hovering: boolean;
15
15
  dragging: boolean;
16
16
  constructor(widget: Widget, info?: {
17
+ uuid?: string;
17
18
  props?: Node['data'];
18
19
  style?: Node['style'];
19
20
  list?: Node['list'];
@@ -14,6 +14,7 @@ declare class Node {
14
14
  hovering: boolean;
15
15
  dragging: boolean;
16
16
  constructor(widget: Widget, info?: {
17
+ uuid?: string;
17
18
  props?: Node['data'];
18
19
  style?: Node['style'];
19
20
  list?: Node['list'];
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Node,
3
3
  RootNode
4
- } from "../chunk-6MWWYHG2.js";
4
+ } from "../chunk-77RZWUI5.js";
5
5
  import "../chunk-HJO26HIQ.js";
6
6
  export {
7
7
  Node,
@@ -151,7 +151,7 @@ var Node = class _Node {
151
151
  this.hovering = false;
152
152
  this.dragging = false;
153
153
  this.widget = widget;
154
- this.wid = (0, import_uuid.v4)();
154
+ this.wid = (info == null ? void 0 : info.uuid) || (0, import_uuid.v4)();
155
155
  this.list = (info == null ? void 0 : info.list) || [];
156
156
  this.data = (info == null ? void 0 : info.props) || {};
157
157
  this.style = (info == null ? void 0 : info.style) || {};
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  Node,
6
6
  RootNode
7
- } from "../chunk-6MWWYHG2.js";
7
+ } from "../chunk-77RZWUI5.js";
8
8
  import {
9
9
  Widget
10
10
  } from "../chunk-KHPFRVKB.js";
@@ -127,15 +127,15 @@ var schema = {
127
127
  rules: normalizeRules(config)
128
128
  };
129
129
  },
130
- image(config) {
131
- return {
132
- label: config.label,
133
- key: config.key,
134
- type: "image",
135
- attrs: config.attrs,
136
- rules: normalizeRules(config)
137
- };
138
- },
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
+ // },
139
139
  time(config) {
140
140
  return {
141
141
  label: config.label,
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-W776G2UQ.js";
5
5
  import {
6
6
  schema
7
- } from "../chunk-ZH4BREEZ.js";
7
+ } from "../chunk-ZYXSKUF4.js";
8
8
  import {
9
9
  widget,
10
10
  widgetType
@@ -91,15 +91,15 @@ var schema = {
91
91
  rules: normalizeRules(config)
92
92
  };
93
93
  },
94
- image(config) {
95
- return {
96
- label: config.label,
97
- key: config.key,
98
- type: "image",
99
- attrs: config.attrs,
100
- rules: normalizeRules(config)
101
- };
102
- },
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
+ // },
103
103
  time(config) {
104
104
  return {
105
105
  label: config.label,
@@ -1,4 +1,4 @@
1
- import { InputInstance, InputNumberInstance, SelectInstance, RadioInstance, SwitchInstance, ImageInstance, DatePickerInstance, ColorPickerInstance } from 'element-plus';
1
+ import { InputInstance, InputNumberInstance, SelectInstance, RadioInstance, SwitchInstance, DatePickerInstance, ColorPickerInstance } from 'element-plus';
2
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';
@@ -32,9 +32,6 @@ declare const schema: {
32
32
  switch(config: BaseConfig & {
33
33
  attrs?: SwitchInstance["$props"];
34
34
  }): SchemaItem;
35
- image(config: BaseConfig & {
36
- attrs?: ImageInstance["$props"];
37
- }): SchemaItem;
38
35
  time(config: BaseConfig & {
39
36
  attrs?: Partial<DatePickerInstance["$props"]>;
40
37
  }): SchemaItem;
@@ -1,4 +1,4 @@
1
- import { InputInstance, InputNumberInstance, SelectInstance, RadioInstance, SwitchInstance, ImageInstance, DatePickerInstance, ColorPickerInstance } from 'element-plus';
1
+ import { InputInstance, InputNumberInstance, SelectInstance, RadioInstance, SwitchInstance, DatePickerInstance, ColorPickerInstance } from 'element-plus';
2
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';
@@ -32,9 +32,6 @@ declare const schema: {
32
32
  switch(config: BaseConfig & {
33
33
  attrs?: SwitchInstance["$props"];
34
34
  }): SchemaItem;
35
- image(config: BaseConfig & {
36
- attrs?: ImageInstance["$props"];
37
- }): SchemaItem;
38
35
  time(config: BaseConfig & {
39
36
  attrs?: Partial<DatePickerInstance["$props"]>;
40
37
  }): SchemaItem;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  schema
3
- } from "../chunk-ZH4BREEZ.js";
3
+ } from "../chunk-ZYXSKUF4.js";
4
4
  import "../chunk-XJ2IJHKH.js";
5
5
  import "../chunk-HJO26HIQ.js";
6
6
  export {
package/dist/index.cjs CHANGED
@@ -131,15 +131,15 @@ var schema = {
131
131
  rules: normalizeRules(config)
132
132
  };
133
133
  },
134
- image(config) {
135
- return {
136
- label: config.label,
137
- key: config.key,
138
- type: "image",
139
- attrs: config.attrs,
140
- rules: normalizeRules(config)
141
- };
142
- },
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
+ // },
143
143
  time(config) {
144
144
  return {
145
145
  label: config.label,
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-ZH4BREEZ.js";
7
+ } from "./chunk-ZYXSKUF4.js";
8
8
  import {
9
9
  widget,
10
10
  widgetType
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sepveneto/dnde-core",
3
3
  "type": "module",
4
- "version": "0.4.2",
4
+ "version": "0.4.4",
5
5
  "description": "",
6
6
  "author": "sepveneto",
7
7
  "license": "MIT",