@sepveneto/dnde-core 0.4.9 → 0.5.1

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, FormItemProps, InputInstance, ElOption, SelectInstance, InputNumberInstance, SwitchInstance, ImageInstance, RadioGroupInstance, ElRadio, ElRadioButton, DatePickerInstance, ColorPickerInstance } from 'element-plus';
1
+ import { FormItemRule, UploadRequestOptions, FormItemProps, InputProps, ElOption, SelectProps, InputNumberProps, SwitchProps, RadioGroupProps, ElRadio, ElRadioButton, DatePickerProps, ColorPickerProps, CheckboxProps } from 'element-plus';
2
2
  import * as vue from 'vue';
3
3
  import { CSSProperties } from 'vue';
4
4
  import Validator from 'async-validator';
@@ -130,10 +130,12 @@ interface EditorData {
130
130
  settings?: EditorSettings;
131
131
  }
132
132
 
133
- type Option = InstanceType<typeof ElOption>;
134
- type RadioOption = InstanceType<typeof ElRadio>;
135
- type RadioButtonOption = InstanceType<typeof ElRadioButton>;
133
+ type Option = InstanceType<typeof ElOption>['$props'];
134
+ type RadioOption = InstanceType<typeof ElRadio>['$props'];
135
+ type RadioButtonOption = InstanceType<typeof ElRadioButton>['$props'];
136
136
  interface SchemaItemBase {
137
+ /** @private */
138
+ _role?: string;
137
139
  label: string;
138
140
  key: string;
139
141
  formItem?: Partial<FormItemProps>;
@@ -141,33 +143,33 @@ interface SchemaItemBase {
141
143
  }
142
144
  interface SchemaItemInput extends SchemaItemBase {
143
145
  type: 'input';
144
- attrs?: InputInstance['$props'];
146
+ attrs?: InputProps;
145
147
  }
146
148
  interface SchemaItemSelect extends SchemaItemBase {
147
149
  type: 'select';
148
- options?: Option['$props'][];
149
- attrs?: SelectInstance['$props'];
150
+ options?: Option[];
151
+ attrs?: SelectProps;
150
152
  link?: Record<string | number, SchemaItem[]>;
151
153
  }
152
154
  interface SchemaItemNumber extends SchemaItemBase {
153
155
  type: 'number';
154
- attrs?: InputNumberInstance['$props'];
156
+ attrs?: InputNumberProps;
155
157
  }
156
158
  interface SchemaItemSwitch extends SchemaItemBase {
157
159
  type: 'switch';
158
- attrs?: SwitchInstance['$props'];
159
- }
160
- interface SchemaItemImage extends SchemaItemBase {
161
- type: 'image';
162
- attrs?: ImageInstance['$props'];
160
+ attrs?: SwitchProps;
163
161
  }
164
162
  interface SchemaItemDatetimePicker extends SchemaItemBase {
165
163
  type: 'datetimePicker';
166
- attrs?: Partial<DatePickerInstance['$props']>;
164
+ attrs?: DatePickerProps;
167
165
  }
168
166
  interface SchemaItemColorPicker extends SchemaItemBase {
169
167
  type: 'colorPicker';
170
- attrs?: ColorPickerInstance['$props'];
168
+ attrs?: ColorPickerProps;
169
+ }
170
+ interface SchemaItemCheckbox extends SchemaItemBase {
171
+ type: 'checkbox';
172
+ attrs?: CheckboxProps;
171
173
  }
172
174
  interface SchemaItemCustom extends SchemaItemBase {
173
175
  type: 'custom';
@@ -179,17 +181,17 @@ interface SchemaItemStyleNumber extends SchemaItemBase {
179
181
  }
180
182
  interface SchemaItemRadio extends SchemaItemBase {
181
183
  type: 'radio';
182
- attrs?: RadioGroupInstance['$props'];
183
- options?: RadioOption['$props'][];
184
+ attrs?: RadioGroupProps;
185
+ options?: RadioOption[];
184
186
  link?: Record<string | number, SchemaItem[]>;
185
187
  }
186
188
  interface SchemaItemRadioButton extends SchemaItemBase {
187
189
  type: 'radioButton';
188
- attrs?: RadioGroupInstance['$props'];
189
- options?: RadioButtonOption['$props'][];
190
+ attrs?: RadioGroupProps;
191
+ options?: RadioButtonOption[];
190
192
  link?: Record<string | number, SchemaItem[]>;
191
193
  }
192
- type SchemaItem = SchemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemImage | SchemaItemCustom | SchemaItemStyleNumber | SchemaItemRadio | SchemaItemRadioButton | SchemaItemDatetimePicker | SchemaItemColorPicker;
194
+ type SchemaItem = SchemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemCustom | SchemaItemStyleNumber | SchemaItemRadio | SchemaItemRadioButton | SchemaItemDatetimePicker | SchemaItemColorPicker | SchemaItemCheckbox;
193
195
  declare class Widget {
194
196
  name: string;
195
197
  view: string;
@@ -1,4 +1,4 @@
1
- import { FormItemRule, UploadRequestOptions, FormItemProps, InputInstance, ElOption, SelectInstance, InputNumberInstance, SwitchInstance, ImageInstance, RadioGroupInstance, ElRadio, ElRadioButton, DatePickerInstance, ColorPickerInstance } from 'element-plus';
1
+ import { FormItemRule, UploadRequestOptions, FormItemProps, InputProps, ElOption, SelectProps, InputNumberProps, SwitchProps, RadioGroupProps, ElRadio, ElRadioButton, DatePickerProps, ColorPickerProps, CheckboxProps } from 'element-plus';
2
2
  import * as vue from 'vue';
3
3
  import { CSSProperties } from 'vue';
4
4
  import Validator from 'async-validator';
@@ -130,10 +130,12 @@ interface EditorData {
130
130
  settings?: EditorSettings;
131
131
  }
132
132
 
133
- type Option = InstanceType<typeof ElOption>;
134
- type RadioOption = InstanceType<typeof ElRadio>;
135
- type RadioButtonOption = InstanceType<typeof ElRadioButton>;
133
+ type Option = InstanceType<typeof ElOption>['$props'];
134
+ type RadioOption = InstanceType<typeof ElRadio>['$props'];
135
+ type RadioButtonOption = InstanceType<typeof ElRadioButton>['$props'];
136
136
  interface SchemaItemBase {
137
+ /** @private */
138
+ _role?: string;
137
139
  label: string;
138
140
  key: string;
139
141
  formItem?: Partial<FormItemProps>;
@@ -141,33 +143,33 @@ interface SchemaItemBase {
141
143
  }
142
144
  interface SchemaItemInput extends SchemaItemBase {
143
145
  type: 'input';
144
- attrs?: InputInstance['$props'];
146
+ attrs?: InputProps;
145
147
  }
146
148
  interface SchemaItemSelect extends SchemaItemBase {
147
149
  type: 'select';
148
- options?: Option['$props'][];
149
- attrs?: SelectInstance['$props'];
150
+ options?: Option[];
151
+ attrs?: SelectProps;
150
152
  link?: Record<string | number, SchemaItem[]>;
151
153
  }
152
154
  interface SchemaItemNumber extends SchemaItemBase {
153
155
  type: 'number';
154
- attrs?: InputNumberInstance['$props'];
156
+ attrs?: InputNumberProps;
155
157
  }
156
158
  interface SchemaItemSwitch extends SchemaItemBase {
157
159
  type: 'switch';
158
- attrs?: SwitchInstance['$props'];
159
- }
160
- interface SchemaItemImage extends SchemaItemBase {
161
- type: 'image';
162
- attrs?: ImageInstance['$props'];
160
+ attrs?: SwitchProps;
163
161
  }
164
162
  interface SchemaItemDatetimePicker extends SchemaItemBase {
165
163
  type: 'datetimePicker';
166
- attrs?: Partial<DatePickerInstance['$props']>;
164
+ attrs?: DatePickerProps;
167
165
  }
168
166
  interface SchemaItemColorPicker extends SchemaItemBase {
169
167
  type: 'colorPicker';
170
- attrs?: ColorPickerInstance['$props'];
168
+ attrs?: ColorPickerProps;
169
+ }
170
+ interface SchemaItemCheckbox extends SchemaItemBase {
171
+ type: 'checkbox';
172
+ attrs?: CheckboxProps;
171
173
  }
172
174
  interface SchemaItemCustom extends SchemaItemBase {
173
175
  type: 'custom';
@@ -179,17 +181,17 @@ interface SchemaItemStyleNumber extends SchemaItemBase {
179
181
  }
180
182
  interface SchemaItemRadio extends SchemaItemBase {
181
183
  type: 'radio';
182
- attrs?: RadioGroupInstance['$props'];
183
- options?: RadioOption['$props'][];
184
+ attrs?: RadioGroupProps;
185
+ options?: RadioOption[];
184
186
  link?: Record<string | number, SchemaItem[]>;
185
187
  }
186
188
  interface SchemaItemRadioButton extends SchemaItemBase {
187
189
  type: 'radioButton';
188
- attrs?: RadioGroupInstance['$props'];
189
- options?: RadioButtonOption['$props'][];
190
+ attrs?: RadioGroupProps;
191
+ options?: RadioButtonOption[];
190
192
  link?: Record<string | number, SchemaItem[]>;
191
193
  }
192
- type SchemaItem = SchemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemImage | SchemaItemCustom | SchemaItemStyleNumber | SchemaItemRadio | SchemaItemRadioButton | SchemaItemDatetimePicker | SchemaItemColorPicker;
194
+ type SchemaItem = SchemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemCustom | SchemaItemStyleNumber | SchemaItemRadio | SchemaItemRadioButton | SchemaItemDatetimePicker | SchemaItemColorPicker | SchemaItemCheckbox;
193
195
  declare class Widget {
194
196
  name: string;
195
197
  view: string;
@@ -10,6 +10,7 @@ import {
10
10
  var schema = {
11
11
  _create(type, config) {
12
12
  const base = {
13
+ _role: config._role,
13
14
  label: config.label,
14
15
  key: config.key,
15
16
  type,
@@ -32,6 +33,9 @@ var schema = {
32
33
  number(config) {
33
34
  return this._create("number", config);
34
35
  },
36
+ checkbox(config) {
37
+ return this._create("checkbox", config);
38
+ },
35
39
  select(config) {
36
40
  return this._create("select", config);
37
41
  },
@@ -59,6 +63,9 @@ var schema = {
59
63
  },
60
64
  styleNumber(config) {
61
65
  return this._create("styleNumber", config);
66
+ },
67
+ topbar(config) {
68
+ return this.radio(__spreadProps(__spreadValues({}, config), { _role: "topbar" }));
62
69
  }
63
70
  };
64
71
  function normalizeRules(config) {
@@ -1,4 +1,4 @@
1
- import { m as Widget, I as IWidget } from '../Widget-CHTbCsAd.cjs';
1
+ import { m as Widget, I as IWidget } from '../Widget-B-BAQlzv.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-CHTbCsAd.js';
1
+ import { m as Widget, I as IWidget } from '../Widget-B-BAQlzv.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 { m as Widget } from '../Widget-CHTbCsAd.cjs';
2
+ import { m as Widget } from '../Widget-B-BAQlzv.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-CHTbCsAd.js';
2
+ import { m as Widget } from '../Widget-B-BAQlzv.js';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
5
5
 
@@ -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-CHTbCsAd.cjs';
1
+ export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-B-BAQlzv.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-CHTbCsAd.js';
1
+ export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-B-BAQlzv.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 { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-CHTbCsAd.cjs';
3
+ export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-B-BAQlzv.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-CHTbCsAd.js';
3
+ export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-B-BAQlzv.js';
4
4
  import 'vue';
5
5
  import 'element-plus';
6
6
  import 'async-validator';
@@ -86,6 +86,7 @@ function likeArray(val) {
86
86
  var schema = {
87
87
  _create(type, config) {
88
88
  const base = {
89
+ _role: config._role,
89
90
  label: config.label,
90
91
  key: config.key,
91
92
  type,
@@ -108,6 +109,9 @@ var schema = {
108
109
  number(config) {
109
110
  return this._create("number", config);
110
111
  },
112
+ checkbox(config) {
113
+ return this._create("checkbox", config);
114
+ },
111
115
  select(config) {
112
116
  return this._create("select", config);
113
117
  },
@@ -135,6 +139,9 @@ var schema = {
135
139
  },
136
140
  styleNumber(config) {
137
141
  return this._create("styleNumber", config);
142
+ },
143
+ topbar(config) {
144
+ return this.radio(__spreadProps(__spreadValues({}, config), { _role: "topbar" }));
138
145
  }
139
146
  };
140
147
  function normalizeRules(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-CHTbCsAd.cjs';
5
+ import '../Widget-B-BAQlzv.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-CHTbCsAd.js';
5
+ import '../Widget-B-BAQlzv.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-I4XJIKFE.js";
7
+ } from "../chunk-PRK4NPVH.js";
8
8
  import {
9
9
  widget,
10
10
  widgetType
@@ -50,6 +50,7 @@ function likeArray(val) {
50
50
  var schema = {
51
51
  _create(type, config) {
52
52
  const base = {
53
+ _role: config._role,
53
54
  label: config.label,
54
55
  key: config.key,
55
56
  type,
@@ -72,6 +73,9 @@ var schema = {
72
73
  number(config) {
73
74
  return this._create("number", config);
74
75
  },
76
+ checkbox(config) {
77
+ return this._create("checkbox", config);
78
+ },
75
79
  select(config) {
76
80
  return this._create("select", config);
77
81
  },
@@ -99,6 +103,9 @@ var schema = {
99
103
  },
100
104
  styleNumber(config) {
101
105
  return this._create("styleNumber", config);
106
+ },
107
+ topbar(config) {
108
+ return this.radio(__spreadProps(__spreadValues({}, config), { _role: "topbar" }));
102
109
  }
103
110
  };
104
111
  function normalizeRules(config) {
@@ -1,9 +1,11 @@
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-CHTbCsAd.cjs';
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, j as RadioButtonOption } from '../Widget-B-BAQlzv.cjs';
3
3
  import 'vue';
4
4
  import 'async-validator';
5
5
 
6
6
  interface BaseConfig {
7
+ /** @private */
8
+ _role?: string;
7
9
  label: SchemaItem['label'];
8
10
  key: SchemaItem['key'];
9
11
  tips?: string;
@@ -18,40 +20,48 @@ declare const schema: {
18
20
  link?: any;
19
21
  }): SchemaItem;
20
22
  input(config: BaseConfig & {
21
- attrs?: InputInstance["$props"];
23
+ attrs?: InputProps;
22
24
  }): SchemaItem;
23
25
  number(config: BaseConfig & {
24
- attrs?: InputNumberInstance["$props"];
26
+ attrs?: InputNumberProps;
27
+ }): SchemaItem;
28
+ checkbox(config: BaseConfig & {
29
+ attrs?: CheckboxProps;
25
30
  }): SchemaItem;
26
31
  select(config: BaseConfig & {
27
- attrs?: SelectInstance["$props"];
28
- options?: Option["$props"][];
32
+ attrs?: SelectProps;
33
+ options?: Option[];
29
34
  link?: Record<string, SchemaItem[]>;
30
35
  }): SchemaItem;
31
36
  radio(config: BaseConfig & {
32
- attrs?: RadioInstance["$props"];
33
- options?: RadioOption["$props"][];
37
+ attrs?: RadioProps;
38
+ options?: RadioOption[];
34
39
  link?: Record<string, SchemaItem[]>;
35
40
  }): SchemaItem;
36
41
  radioButton(config: BaseConfig & {
37
- attrs?: RadioInstance["$props"];
38
- options?: RadioButtonOption["$props"][];
42
+ attrs?: RadioButtonProps;
43
+ options?: RadioButtonOption[];
39
44
  link?: Record<string, SchemaItem[]>;
40
45
  }): SchemaItem;
41
46
  switch(config: BaseConfig & {
42
- attrs?: SwitchInstance["$props"];
47
+ attrs?: SwitchProps;
43
48
  }): SchemaItem;
44
49
  time(config: BaseConfig & {
45
- attrs?: Partial<DatePickerInstance["$props"]>;
50
+ attrs?: DatePickerProps;
46
51
  }): SchemaItem;
47
52
  color(config: BaseConfig & {
48
- attrs?: ColorPickerInstance["$props"];
53
+ attrs?: ColorPickerProps;
49
54
  }): SchemaItem;
50
55
  custom(config: BaseConfig & {
51
56
  attrs?: Record<string, any>;
52
57
  type: string;
53
58
  }): SchemaItem;
54
59
  styleNumber(config: BaseConfig): SchemaItem;
60
+ topbar(config: BaseConfig & {
61
+ attrs?: RadioProps;
62
+ options?: RadioOption[];
63
+ link?: Record<string, SchemaItem[]>;
64
+ }): SchemaItem;
55
65
  };
56
66
 
57
67
  export { schema };
@@ -1,9 +1,11 @@
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-CHTbCsAd.js';
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, j as RadioButtonOption } from '../Widget-B-BAQlzv.js';
3
3
  import 'vue';
4
4
  import 'async-validator';
5
5
 
6
6
  interface BaseConfig {
7
+ /** @private */
8
+ _role?: string;
7
9
  label: SchemaItem['label'];
8
10
  key: SchemaItem['key'];
9
11
  tips?: string;
@@ -18,40 +20,48 @@ declare const schema: {
18
20
  link?: any;
19
21
  }): SchemaItem;
20
22
  input(config: BaseConfig & {
21
- attrs?: InputInstance["$props"];
23
+ attrs?: InputProps;
22
24
  }): SchemaItem;
23
25
  number(config: BaseConfig & {
24
- attrs?: InputNumberInstance["$props"];
26
+ attrs?: InputNumberProps;
27
+ }): SchemaItem;
28
+ checkbox(config: BaseConfig & {
29
+ attrs?: CheckboxProps;
25
30
  }): SchemaItem;
26
31
  select(config: BaseConfig & {
27
- attrs?: SelectInstance["$props"];
28
- options?: Option["$props"][];
32
+ attrs?: SelectProps;
33
+ options?: Option[];
29
34
  link?: Record<string, SchemaItem[]>;
30
35
  }): SchemaItem;
31
36
  radio(config: BaseConfig & {
32
- attrs?: RadioInstance["$props"];
33
- options?: RadioOption["$props"][];
37
+ attrs?: RadioProps;
38
+ options?: RadioOption[];
34
39
  link?: Record<string, SchemaItem[]>;
35
40
  }): SchemaItem;
36
41
  radioButton(config: BaseConfig & {
37
- attrs?: RadioInstance["$props"];
38
- options?: RadioButtonOption["$props"][];
42
+ attrs?: RadioButtonProps;
43
+ options?: RadioButtonOption[];
39
44
  link?: Record<string, SchemaItem[]>;
40
45
  }): SchemaItem;
41
46
  switch(config: BaseConfig & {
42
- attrs?: SwitchInstance["$props"];
47
+ attrs?: SwitchProps;
43
48
  }): SchemaItem;
44
49
  time(config: BaseConfig & {
45
- attrs?: Partial<DatePickerInstance["$props"]>;
50
+ attrs?: DatePickerProps;
46
51
  }): SchemaItem;
47
52
  color(config: BaseConfig & {
48
- attrs?: ColorPickerInstance["$props"];
53
+ attrs?: ColorPickerProps;
49
54
  }): SchemaItem;
50
55
  custom(config: BaseConfig & {
51
56
  attrs?: Record<string, any>;
52
57
  type: string;
53
58
  }): SchemaItem;
54
59
  styleNumber(config: BaseConfig): SchemaItem;
60
+ topbar(config: BaseConfig & {
61
+ attrs?: RadioProps;
62
+ options?: RadioOption[];
63
+ link?: Record<string, SchemaItem[]>;
64
+ }): SchemaItem;
55
65
  };
56
66
 
57
67
  export { schema };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  schema
3
- } from "../chunk-I4XJIKFE.js";
3
+ } from "../chunk-PRK4NPVH.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-CHTbCsAd.cjs';
1
+ import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-B-BAQlzv.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-CHTbCsAd.js';
1
+ import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-B-BAQlzv.js';
2
2
  import * as vue from 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
package/dist/index.cjs CHANGED
@@ -90,6 +90,7 @@ function likeArray(val) {
90
90
  var schema = {
91
91
  _create(type, config) {
92
92
  const base = {
93
+ _role: config._role,
93
94
  label: config.label,
94
95
  key: config.key,
95
96
  type,
@@ -112,6 +113,9 @@ var schema = {
112
113
  number(config) {
113
114
  return this._create("number", config);
114
115
  },
116
+ checkbox(config) {
117
+ return this._create("checkbox", config);
118
+ },
115
119
  select(config) {
116
120
  return this._create("select", config);
117
121
  },
@@ -139,6 +143,9 @@ var schema = {
139
143
  },
140
144
  styleNumber(config) {
141
145
  return this._create("styleNumber", config);
146
+ },
147
+ topbar(config) {
148
+ return this.radio(__spreadProps(__spreadValues({}, config), { _role: "topbar" }));
142
149
  }
143
150
  };
144
151
  function normalizeRules(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-CHTbCsAd.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-B-BAQlzv.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-CHTbCsAd.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-B-BAQlzv.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-I4XJIKFE.js";
7
+ } from "./chunk-PRK4NPVH.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-CHTbCsAd.cjs';
3
+ import './Widget-B-BAQlzv.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-CHTbCsAd.js';
3
+ import './Widget-B-BAQlzv.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-CHTbCsAd.cjs';
4
+ import './Widget-B-BAQlzv.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-CHTbCsAd.js';
4
+ import './Widget-B-BAQlzv.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-CHTbCsAd.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-B-BAQlzv.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-CHTbCsAd.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-B-BAQlzv.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.9",
4
+ "version": "0.5.1",
5
5
  "description": "",
6
6
  "author": "sepveneto",
7
7
  "license": "MIT",
@@ -36,6 +36,7 @@
36
36
  ],
37
37
  "changelog": "https://github.com/SepVeneto/miniprogram-design/blob/master/packages/core/CHANGELOG.md",
38
38
  "dependencies": {
39
+ "element-plus": "^2.14.1",
39
40
  "async-validator": "^4.2.5",
40
41
  "uuid": "^11.1.0"
41
42
  },
@@ -43,7 +44,7 @@
43
44
  "tsup": "^8.4.0",
44
45
  "vite": "^4.5.5",
45
46
  "vitest": "^0.28.5",
46
- "vue": "^3.5.12"
47
+ "vue": "3.5.40"
47
48
  },
48
49
  "scripts": {
49
50
  "build": "tsup",