@sepveneto/dnde-core 0.4.7 → 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.
@@ -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 {
@@ -21,7 +21,7 @@ var schema = {
21
21
  case "select":
22
22
  case "radio":
23
23
  case "radioButton":
24
- return __spreadProps(__spreadValues({}, base), { type, options: config.options });
24
+ return __spreadProps(__spreadValues({}, base), { type, options: config.options, link: config.link });
25
25
  default:
26
26
  return base;
27
27
  }
@@ -89,8 +89,6 @@ var Node = class _Node {
89
89
  _uuid: this.wid,
90
90
  _name: this.name,
91
91
  _view: this.type,
92
- // TODO
93
- isShow: true,
94
92
  data: this.data,
95
93
  style: this.style,
96
94
  list: (_a = this.list) == null ? void 0 : _a.map((item) => item.parse())
@@ -1,4 +1,4 @@
1
- import { m as Widget, I as IWidget } from '../Widget-xF5X82JJ.cjs';
1
+ import { m as Widget, I as IWidget } from '../Widget-DgKKmcEA.cjs';
2
2
  import 'element-plus';
3
3
  import 'vue';
4
4
  import 'async-validator';
@@ -1,4 +1,4 @@
1
- import { m as Widget, I as IWidget } from '../Widget-xF5X82JJ.js';
1
+ import { m as Widget, I as IWidget } from '../Widget-DgKKmcEA.js';
2
2
  import 'element-plus';
3
3
  import 'vue';
4
4
  import 'async-validator';
@@ -143,8 +143,6 @@ var Node = class _Node {
143
143
  _uuid: this.wid,
144
144
  _name: this.name,
145
145
  _view: this.type,
146
- // TODO
147
- isShow: true,
148
146
  data: this.data,
149
147
  style: this.style,
150
148
  list: (_a = this.list) == null ? void 0 : _a.map((item) => item.parse())
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { m as Widget } from '../Widget-xF5X82JJ.cjs';
2
+ import { m as Widget } from '../Widget-DgKKmcEA.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 { m as Widget } from '../Widget-xF5X82JJ.js';
2
+ import { m as Widget } from '../Widget-DgKKmcEA.js';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Node,
3
3
  RootNode
4
- } from "../chunk-CETJOSM3.js";
4
+ } from "../chunk-KJZSF66T.js";
5
5
  import "../chunk-6FNC3XMI.js";
6
6
  export {
7
7
  Node,
@@ -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-xF5X82JJ.cjs';
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';
@@ -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-xF5X82JJ.js';
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';
@@ -226,8 +226,6 @@ var Node = class _Node {
226
226
  _uuid: this.wid,
227
227
  _name: this.name,
228
228
  _view: this.type,
229
- // TODO
230
- isShow: true,
231
229
  data: this.data,
232
230
  style: this.style,
233
231
  list: (_a = this.list) == null ? void 0 : _a.map((item) => item.parse())
@@ -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-xF5X82JJ.cjs';
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';
@@ -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-xF5X82JJ.js';
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';
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  Node,
6
6
  RootNode
7
- } from "../chunk-CETJOSM3.js";
7
+ } from "../chunk-KJZSF66T.js";
8
8
  import {
9
9
  Widget
10
10
  } from "../chunk-KHPFRVKB.js";
@@ -97,7 +97,7 @@ var schema = {
97
97
  case "select":
98
98
  case "radio":
99
99
  case "radioButton":
100
- return __spreadProps(__spreadValues({}, base), { type, options: config.options });
100
+ return __spreadProps(__spreadValues({}, base), { type, options: config.options, link: config.link });
101
101
  default:
102
102
  return base;
103
103
  }
@@ -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-xF5X82JJ.cjs';
5
+ import '../Widget-DgKKmcEA.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-xF5X82JJ.js';
5
+ import '../Widget-DgKKmcEA.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-M7DQRYCX.js";
7
+ } from "../chunk-I4XJIKFE.js";
8
8
  import {
9
9
  widget,
10
10
  widgetType
@@ -61,7 +61,7 @@ var schema = {
61
61
  case "select":
62
62
  case "radio":
63
63
  case "radioButton":
64
- return __spreadProps(__spreadValues({}, base), { type, options: config.options });
64
+ return __spreadProps(__spreadValues({}, base), { type, options: config.options, link: config.link });
65
65
  default:
66
66
  return base;
67
67
  }
@@ -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-xF5X82JJ.cjs';
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
 
@@ -15,6 +15,7 @@ declare const schema: {
15
15
  _create(type: any, config: BaseConfig & {
16
16
  attrs?: any;
17
17
  options?: any;
18
+ link?: any;
18
19
  }): SchemaItem;
19
20
  input(config: BaseConfig & {
20
21
  attrs?: InputInstance["$props"];
@@ -25,14 +26,17 @@ declare const schema: {
25
26
  select(config: BaseConfig & {
26
27
  attrs?: SelectInstance["$props"];
27
28
  options?: Option["$props"][];
29
+ link?: Record<string, SchemaItem[]>;
28
30
  }): SchemaItem;
29
31
  radio(config: BaseConfig & {
30
32
  attrs?: RadioInstance["$props"];
31
33
  options?: RadioOption["$props"][];
34
+ link?: Record<string, SchemaItem[]>;
32
35
  }): SchemaItem;
33
36
  radioButton(config: BaseConfig & {
34
37
  attrs?: RadioInstance["$props"];
35
38
  options?: RadioButtonOption["$props"][];
39
+ link?: Record<string, SchemaItem[]>;
36
40
  }): SchemaItem;
37
41
  switch(config: BaseConfig & {
38
42
  attrs?: SwitchInstance["$props"];
@@ -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-xF5X82JJ.js';
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
 
@@ -15,6 +15,7 @@ declare const schema: {
15
15
  _create(type: any, config: BaseConfig & {
16
16
  attrs?: any;
17
17
  options?: any;
18
+ link?: any;
18
19
  }): SchemaItem;
19
20
  input(config: BaseConfig & {
20
21
  attrs?: InputInstance["$props"];
@@ -25,14 +26,17 @@ declare const schema: {
25
26
  select(config: BaseConfig & {
26
27
  attrs?: SelectInstance["$props"];
27
28
  options?: Option["$props"][];
29
+ link?: Record<string, SchemaItem[]>;
28
30
  }): SchemaItem;
29
31
  radio(config: BaseConfig & {
30
32
  attrs?: RadioInstance["$props"];
31
33
  options?: RadioOption["$props"][];
34
+ link?: Record<string, SchemaItem[]>;
32
35
  }): SchemaItem;
33
36
  radioButton(config: BaseConfig & {
34
37
  attrs?: RadioInstance["$props"];
35
38
  options?: RadioButtonOption["$props"][];
39
+ link?: Record<string, SchemaItem[]>;
36
40
  }): SchemaItem;
37
41
  switch(config: BaseConfig & {
38
42
  attrs?: SwitchInstance["$props"];
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  schema
3
- } from "../chunk-M7DQRYCX.js";
3
+ } from "../chunk-I4XJIKFE.js";
4
4
  import "../chunk-XJ2IJHKH.js";
5
5
  import "../chunk-6FNC3XMI.js";
6
6
  export {
@@ -1,4 +1,4 @@
1
- import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-xF5X82JJ.cjs';
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';
@@ -1,4 +1,4 @@
1
- import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-xF5X82JJ.js';
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
@@ -101,7 +101,7 @@ var schema = {
101
101
  case "select":
102
102
  case "radio":
103
103
  case "radioButton":
104
- return __spreadProps(__spreadValues({}, base), { type, options: config.options });
104
+ return __spreadProps(__spreadValues({}, base), { type, options: config.options, link: config.link });
105
105
  default:
106
106
  return base;
107
107
  }
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-xF5X82JJ.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-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-xF5X82JJ.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-DgKKmcEA.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-M7DQRYCX.js";
7
+ } from "./chunk-I4XJIKFE.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-xF5X82JJ.cjs';
3
+ import './Widget-DgKKmcEA.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-xF5X82JJ.js';
3
+ import './Widget-DgKKmcEA.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-xF5X82JJ.cjs';
4
+ import './Widget-DgKKmcEA.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-xF5X82JJ.js';
4
+ import './Widget-DgKKmcEA.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-xF5X82JJ.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-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-xF5X82JJ.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-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.7",
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/miniprogram-design"
11
+ "url": "https://github.com/SepVeneto/dnd-editor"
12
12
  },
13
13
  "keywords": [],
14
14
  "exports": {