@sepveneto/dnde-core 0.4.8 → 0.5.0

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 (40) hide show
  1. package/dist/{Widget-DgKKmcEA.d.cts → Widget-C7n5dKys.d.cts} +19 -19
  2. package/dist/{Widget-DgKKmcEA.d.ts → Widget-C7n5dKys.d.ts} +19 -19
  3. package/dist/{chunk-I4XJIKFE.js → chunk-3C7FYUNE.js} +3 -0
  4. package/dist/{chunk-KHPFRVKB.js → chunk-LTDSWBOW.js} +6 -1
  5. package/dist/{chunk-ZNYRMDSU.js → chunk-XDF4SBRY.js} +1 -1
  6. package/dist/class/Container.cjs +6 -1
  7. package/dist/class/Container.d.cts +1 -1
  8. package/dist/class/Container.d.ts +1 -1
  9. package/dist/class/Container.js +2 -2
  10. package/dist/class/Node.d.cts +1 -1
  11. package/dist/class/Node.d.ts +1 -1
  12. package/dist/class/Widget.cjs +6 -1
  13. package/dist/class/Widget.d.cts +1 -1
  14. package/dist/class/Widget.d.ts +1 -1
  15. package/dist/class/Widget.js +1 -1
  16. package/dist/class/index.cjs +6 -1
  17. package/dist/class/index.d.cts +1 -1
  18. package/dist/class/index.d.ts +1 -1
  19. package/dist/class/index.js +2 -2
  20. package/dist/helper/index.cjs +3 -0
  21. package/dist/helper/index.d.cts +1 -1
  22. package/dist/helper/index.d.ts +1 -1
  23. package/dist/helper/index.js +1 -1
  24. package/dist/helper/schema.cjs +3 -0
  25. package/dist/helper/schema.d.cts +16 -13
  26. package/dist/helper/schema.d.ts +16 -13
  27. package/dist/helper/schema.js +1 -1
  28. package/dist/helper/widget.d.cts +3 -3
  29. package/dist/helper/widget.d.ts +3 -3
  30. package/dist/index.cjs +3 -0
  31. package/dist/index.d.cts +1 -1
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.js +1 -1
  34. package/dist/internal.d.cts +1 -1
  35. package/dist/internal.d.ts +1 -1
  36. package/dist/tokens.d.cts +1 -1
  37. package/dist/tokens.d.ts +1 -1
  38. package/dist/types.d.cts +1 -1
  39. package/dist/types.d.ts +1 -1
  40. package/package.json +3 -2
@@ -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';
@@ -19,7 +19,7 @@ interface Base {
19
19
  meta?: {
20
20
  draggable?: boolean;
21
21
  visible?: boolean;
22
- fixed?: boolean;
22
+ fixed?: boolean | 'header' | 'footer';
23
23
  };
24
24
  schema?: {
25
25
  props?: SchemaItem[];
@@ -141,33 +141,33 @@ interface SchemaItemBase {
141
141
  }
142
142
  interface SchemaItemInput extends SchemaItemBase {
143
143
  type: 'input';
144
- attrs?: InputInstance['$props'];
144
+ attrs?: InputProps;
145
145
  }
146
146
  interface SchemaItemSelect extends SchemaItemBase {
147
147
  type: 'select';
148
- options?: Option['$props'][];
149
- attrs?: SelectInstance['$props'];
148
+ options?: Option[];
149
+ attrs?: SelectProps;
150
150
  link?: Record<string | number, SchemaItem[]>;
151
151
  }
152
152
  interface SchemaItemNumber extends SchemaItemBase {
153
153
  type: 'number';
154
- attrs?: InputNumberInstance['$props'];
154
+ attrs?: InputNumberProps;
155
155
  }
156
156
  interface SchemaItemSwitch extends SchemaItemBase {
157
157
  type: 'switch';
158
- attrs?: SwitchInstance['$props'];
159
- }
160
- interface SchemaItemImage extends SchemaItemBase {
161
- type: 'image';
162
- attrs?: ImageInstance['$props'];
158
+ attrs?: SwitchProps;
163
159
  }
164
160
  interface SchemaItemDatetimePicker extends SchemaItemBase {
165
161
  type: 'datetimePicker';
166
- attrs?: Partial<DatePickerInstance['$props']>;
162
+ attrs?: DatePickerProps;
167
163
  }
168
164
  interface SchemaItemColorPicker extends SchemaItemBase {
169
165
  type: 'colorPicker';
170
- attrs?: ColorPickerInstance['$props'];
166
+ attrs?: ColorPickerProps;
167
+ }
168
+ interface SchemaItemCheckbox extends SchemaItemBase {
169
+ type: 'checkbox';
170
+ attrs?: CheckboxProps;
171
171
  }
172
172
  interface SchemaItemCustom extends SchemaItemBase {
173
173
  type: 'custom';
@@ -179,17 +179,17 @@ interface SchemaItemStyleNumber extends SchemaItemBase {
179
179
  }
180
180
  interface SchemaItemRadio extends SchemaItemBase {
181
181
  type: 'radio';
182
- attrs?: RadioGroupInstance['$props'];
183
- options?: RadioOption['$props'][];
182
+ attrs?: RadioGroupProps;
183
+ options?: RadioOption[];
184
184
  link?: Record<string | number, SchemaItem[]>;
185
185
  }
186
186
  interface SchemaItemRadioButton extends SchemaItemBase {
187
187
  type: 'radioButton';
188
- attrs?: RadioGroupInstance['$props'];
189
- options?: RadioButtonOption['$props'][];
188
+ attrs?: RadioGroupProps;
189
+ options?: RadioButtonOption[];
190
190
  link?: Record<string | number, SchemaItem[]>;
191
191
  }
192
- type SchemaItem = SchemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemImage | SchemaItemCustom | SchemaItemStyleNumber | SchemaItemRadio | SchemaItemRadioButton | SchemaItemDatetimePicker | SchemaItemColorPicker;
192
+ type SchemaItem = SchemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemCustom | SchemaItemStyleNumber | SchemaItemRadio | SchemaItemRadioButton | SchemaItemDatetimePicker | SchemaItemColorPicker | SchemaItemCheckbox;
193
193
  declare class Widget {
194
194
  name: string;
195
195
  view: string;
@@ -203,7 +203,7 @@ declare class Widget {
203
203
  get defaultStyle(): (vue.CSSProperties & WidgetPos) | undefined;
204
204
  get defaultData(): any[] | Record<string, any> | undefined;
205
205
  get draggable(): boolean;
206
- get isFixed(): boolean | undefined;
206
+ get isFixed(): false | "header" | "footer" | undefined;
207
207
  get visible(): boolean;
208
208
  get validatorProps(): Validator;
209
209
  get validatorStyle(): Validator;
@@ -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';
@@ -19,7 +19,7 @@ interface Base {
19
19
  meta?: {
20
20
  draggable?: boolean;
21
21
  visible?: boolean;
22
- fixed?: boolean;
22
+ fixed?: boolean | 'header' | 'footer';
23
23
  };
24
24
  schema?: {
25
25
  props?: SchemaItem[];
@@ -141,33 +141,33 @@ interface SchemaItemBase {
141
141
  }
142
142
  interface SchemaItemInput extends SchemaItemBase {
143
143
  type: 'input';
144
- attrs?: InputInstance['$props'];
144
+ attrs?: InputProps;
145
145
  }
146
146
  interface SchemaItemSelect extends SchemaItemBase {
147
147
  type: 'select';
148
- options?: Option['$props'][];
149
- attrs?: SelectInstance['$props'];
148
+ options?: Option[];
149
+ attrs?: SelectProps;
150
150
  link?: Record<string | number, SchemaItem[]>;
151
151
  }
152
152
  interface SchemaItemNumber extends SchemaItemBase {
153
153
  type: 'number';
154
- attrs?: InputNumberInstance['$props'];
154
+ attrs?: InputNumberProps;
155
155
  }
156
156
  interface SchemaItemSwitch extends SchemaItemBase {
157
157
  type: 'switch';
158
- attrs?: SwitchInstance['$props'];
159
- }
160
- interface SchemaItemImage extends SchemaItemBase {
161
- type: 'image';
162
- attrs?: ImageInstance['$props'];
158
+ attrs?: SwitchProps;
163
159
  }
164
160
  interface SchemaItemDatetimePicker extends SchemaItemBase {
165
161
  type: 'datetimePicker';
166
- attrs?: Partial<DatePickerInstance['$props']>;
162
+ attrs?: DatePickerProps;
167
163
  }
168
164
  interface SchemaItemColorPicker extends SchemaItemBase {
169
165
  type: 'colorPicker';
170
- attrs?: ColorPickerInstance['$props'];
166
+ attrs?: ColorPickerProps;
167
+ }
168
+ interface SchemaItemCheckbox extends SchemaItemBase {
169
+ type: 'checkbox';
170
+ attrs?: CheckboxProps;
171
171
  }
172
172
  interface SchemaItemCustom extends SchemaItemBase {
173
173
  type: 'custom';
@@ -179,17 +179,17 @@ interface SchemaItemStyleNumber extends SchemaItemBase {
179
179
  }
180
180
  interface SchemaItemRadio extends SchemaItemBase {
181
181
  type: 'radio';
182
- attrs?: RadioGroupInstance['$props'];
183
- options?: RadioOption['$props'][];
182
+ attrs?: RadioGroupProps;
183
+ options?: RadioOption[];
184
184
  link?: Record<string | number, SchemaItem[]>;
185
185
  }
186
186
  interface SchemaItemRadioButton extends SchemaItemBase {
187
187
  type: 'radioButton';
188
- attrs?: RadioGroupInstance['$props'];
189
- options?: RadioButtonOption['$props'][];
188
+ attrs?: RadioGroupProps;
189
+ options?: RadioButtonOption[];
190
190
  link?: Record<string | number, SchemaItem[]>;
191
191
  }
192
- type SchemaItem = SchemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemImage | SchemaItemCustom | SchemaItemStyleNumber | SchemaItemRadio | SchemaItemRadioButton | SchemaItemDatetimePicker | SchemaItemColorPicker;
192
+ type SchemaItem = SchemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch | SchemaItemCustom | SchemaItemStyleNumber | SchemaItemRadio | SchemaItemRadioButton | SchemaItemDatetimePicker | SchemaItemColorPicker | SchemaItemCheckbox;
193
193
  declare class Widget {
194
194
  name: string;
195
195
  view: string;
@@ -203,7 +203,7 @@ declare class Widget {
203
203
  get defaultStyle(): (vue.CSSProperties & WidgetPos) | undefined;
204
204
  get defaultData(): any[] | Record<string, any> | undefined;
205
205
  get draggable(): boolean;
206
- get isFixed(): boolean | undefined;
206
+ get isFixed(): false | "header" | "footer" | undefined;
207
207
  get visible(): boolean;
208
208
  get validatorProps(): Validator;
209
209
  get validatorStyle(): Validator;
@@ -32,6 +32,9 @@ var schema = {
32
32
  number(config) {
33
33
  return this._create("number", config);
34
34
  },
35
+ checkbox(config) {
36
+ return this._create("checkbox", config);
37
+ },
35
38
  select(config) {
36
39
  return this._create("select", config);
37
40
  },
@@ -33,7 +33,12 @@ var Widget = class _Widget {
33
33
  }
34
34
  get isFixed() {
35
35
  var _a;
36
- return (_a = this._data.meta) == null ? void 0 : _a.fixed;
36
+ const fixed = (_a = this._data.meta) == null ? void 0 : _a.fixed;
37
+ if (fixed === true) {
38
+ return "header";
39
+ } else {
40
+ return fixed;
41
+ }
37
42
  }
38
43
  get visible() {
39
44
  var _a, _b;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Widget
3
- } from "./chunk-KHPFRVKB.js";
3
+ } from "./chunk-LTDSWBOW.js";
4
4
 
5
5
  // src/class/Container.ts
6
6
  var Container = class extends Widget {
@@ -69,7 +69,12 @@ var Widget = class _Widget {
69
69
  }
70
70
  get isFixed() {
71
71
  var _a;
72
- return (_a = this._data.meta) == null ? void 0 : _a.fixed;
72
+ const fixed = (_a = this._data.meta) == null ? void 0 : _a.fixed;
73
+ if (fixed === true) {
74
+ return "header";
75
+ } else {
76
+ return fixed;
77
+ }
73
78
  }
74
79
  get visible() {
75
80
  var _a, _b;
@@ -1,4 +1,4 @@
1
- import { m as Widget, I as IWidget } from '../Widget-DgKKmcEA.cjs';
1
+ import { m as Widget, I as IWidget } from '../Widget-C7n5dKys.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-DgKKmcEA.js';
1
+ import { m as Widget, I as IWidget } from '../Widget-C7n5dKys.js';
2
2
  import 'element-plus';
3
3
  import 'vue';
4
4
  import 'async-validator';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Container
3
- } from "../chunk-ZNYRMDSU.js";
4
- import "../chunk-KHPFRVKB.js";
3
+ } from "../chunk-XDF4SBRY.js";
4
+ import "../chunk-LTDSWBOW.js";
5
5
  import "../chunk-6FNC3XMI.js";
6
6
  export {
7
7
  Container
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { m as Widget } from '../Widget-DgKKmcEA.cjs';
2
+ import { m as Widget } from '../Widget-C7n5dKys.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-DgKKmcEA.js';
2
+ import { m as Widget } from '../Widget-C7n5dKys.js';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
5
5
 
@@ -67,7 +67,12 @@ var Widget = class _Widget {
67
67
  }
68
68
  get isFixed() {
69
69
  var _a;
70
- return (_a = this._data.meta) == null ? void 0 : _a.fixed;
70
+ const fixed = (_a = this._data.meta) == null ? void 0 : _a.fixed;
71
+ if (fixed === true) {
72
+ return "header";
73
+ } else {
74
+ return fixed;
75
+ }
71
76
  }
72
77
  get visible() {
73
78
  var _a, _b;
@@ -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-DgKKmcEA.cjs';
1
+ export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-C7n5dKys.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-DgKKmcEA.js';
1
+ export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-C7n5dKys.js';
2
2
  import 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Widget
3
- } from "../chunk-KHPFRVKB.js";
3
+ } from "../chunk-LTDSWBOW.js";
4
4
  import "../chunk-6FNC3XMI.js";
5
5
  export {
6
6
  Widget
@@ -106,7 +106,12 @@ var Widget = class _Widget {
106
106
  }
107
107
  get isFixed() {
108
108
  var _a;
109
- return (_a = this._data.meta) == null ? void 0 : _a.fixed;
109
+ const fixed = (_a = this._data.meta) == null ? void 0 : _a.fixed;
110
+ if (fixed === true) {
111
+ return "header";
112
+ } else {
113
+ return fixed;
114
+ }
110
115
  }
111
116
  get visible() {
112
117
  var _a, _b;
@@ -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-DgKKmcEA.cjs';
3
+ export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-C7n5dKys.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-DgKKmcEA.js';
3
+ export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-C7n5dKys.js';
4
4
  import 'vue';
5
5
  import 'element-plus';
6
6
  import 'async-validator';
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Container
3
- } from "../chunk-ZNYRMDSU.js";
3
+ } from "../chunk-XDF4SBRY.js";
4
4
  import {
5
5
  Node,
6
6
  RootNode
7
7
  } from "../chunk-KJZSF66T.js";
8
8
  import {
9
9
  Widget
10
- } from "../chunk-KHPFRVKB.js";
10
+ } from "../chunk-LTDSWBOW.js";
11
11
  import "../chunk-6FNC3XMI.js";
12
12
  export {
13
13
  Container,
@@ -108,6 +108,9 @@ var schema = {
108
108
  number(config) {
109
109
  return this._create("number", config);
110
110
  },
111
+ checkbox(config) {
112
+ return this._create("checkbox", config);
113
+ },
111
114
  select(config) {
112
115
  return this._create("select", config);
113
116
  },
@@ -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-DgKKmcEA.cjs';
5
+ import '../Widget-C7n5dKys.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-DgKKmcEA.js';
5
+ import '../Widget-C7n5dKys.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-3C7FYUNE.js";
8
8
  import {
9
9
  widget,
10
10
  widgetType
@@ -72,6 +72,9 @@ var schema = {
72
72
  number(config) {
73
73
  return this._create("number", config);
74
74
  },
75
+ checkbox(config) {
76
+ return this._create("checkbox", config);
77
+ },
75
78
  select(config) {
76
79
  return this._create("select", config);
77
80
  },
@@ -1,5 +1,5 @@
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-DgKKmcEA.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-C7n5dKys.cjs';
3
3
  import 'vue';
4
4
  import 'async-validator';
5
5
 
@@ -18,34 +18,37 @@ declare const schema: {
18
18
  link?: any;
19
19
  }): SchemaItem;
20
20
  input(config: BaseConfig & {
21
- attrs?: InputInstance["$props"];
21
+ attrs?: InputProps;
22
22
  }): SchemaItem;
23
23
  number(config: BaseConfig & {
24
- attrs?: InputNumberInstance["$props"];
24
+ attrs?: InputNumberProps;
25
+ }): SchemaItem;
26
+ checkbox(config: BaseConfig & {
27
+ attrs?: CheckboxProps;
25
28
  }): SchemaItem;
26
29
  select(config: BaseConfig & {
27
- attrs?: SelectInstance["$props"];
28
- options?: Option["$props"][];
30
+ attrs?: SelectProps;
31
+ options?: Option[];
29
32
  link?: Record<string, SchemaItem[]>;
30
33
  }): SchemaItem;
31
34
  radio(config: BaseConfig & {
32
- attrs?: RadioInstance["$props"];
33
- options?: RadioOption["$props"][];
35
+ attrs?: RadioProps;
36
+ options?: RadioOption[];
34
37
  link?: Record<string, SchemaItem[]>;
35
38
  }): SchemaItem;
36
39
  radioButton(config: BaseConfig & {
37
- attrs?: RadioInstance["$props"];
38
- options?: RadioButtonOption["$props"][];
40
+ attrs?: RadioButtonProps;
41
+ options?: RadioButtonOption[];
39
42
  link?: Record<string, SchemaItem[]>;
40
43
  }): SchemaItem;
41
44
  switch(config: BaseConfig & {
42
- attrs?: SwitchInstance["$props"];
45
+ attrs?: SwitchProps;
43
46
  }): SchemaItem;
44
47
  time(config: BaseConfig & {
45
- attrs?: Partial<DatePickerInstance["$props"]>;
48
+ attrs?: DatePickerProps;
46
49
  }): SchemaItem;
47
50
  color(config: BaseConfig & {
48
- attrs?: ColorPickerInstance["$props"];
51
+ attrs?: ColorPickerProps;
49
52
  }): SchemaItem;
50
53
  custom(config: BaseConfig & {
51
54
  attrs?: Record<string, any>;
@@ -1,5 +1,5 @@
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-DgKKmcEA.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-C7n5dKys.js';
3
3
  import 'vue';
4
4
  import 'async-validator';
5
5
 
@@ -18,34 +18,37 @@ declare const schema: {
18
18
  link?: any;
19
19
  }): SchemaItem;
20
20
  input(config: BaseConfig & {
21
- attrs?: InputInstance["$props"];
21
+ attrs?: InputProps;
22
22
  }): SchemaItem;
23
23
  number(config: BaseConfig & {
24
- attrs?: InputNumberInstance["$props"];
24
+ attrs?: InputNumberProps;
25
+ }): SchemaItem;
26
+ checkbox(config: BaseConfig & {
27
+ attrs?: CheckboxProps;
25
28
  }): SchemaItem;
26
29
  select(config: BaseConfig & {
27
- attrs?: SelectInstance["$props"];
28
- options?: Option["$props"][];
30
+ attrs?: SelectProps;
31
+ options?: Option[];
29
32
  link?: Record<string, SchemaItem[]>;
30
33
  }): SchemaItem;
31
34
  radio(config: BaseConfig & {
32
- attrs?: RadioInstance["$props"];
33
- options?: RadioOption["$props"][];
35
+ attrs?: RadioProps;
36
+ options?: RadioOption[];
34
37
  link?: Record<string, SchemaItem[]>;
35
38
  }): SchemaItem;
36
39
  radioButton(config: BaseConfig & {
37
- attrs?: RadioInstance["$props"];
38
- options?: RadioButtonOption["$props"][];
40
+ attrs?: RadioButtonProps;
41
+ options?: RadioButtonOption[];
39
42
  link?: Record<string, SchemaItem[]>;
40
43
  }): SchemaItem;
41
44
  switch(config: BaseConfig & {
42
- attrs?: SwitchInstance["$props"];
45
+ attrs?: SwitchProps;
43
46
  }): SchemaItem;
44
47
  time(config: BaseConfig & {
45
- attrs?: Partial<DatePickerInstance["$props"]>;
48
+ attrs?: DatePickerProps;
46
49
  }): SchemaItem;
47
50
  color(config: BaseConfig & {
48
- attrs?: ColorPickerInstance["$props"];
51
+ attrs?: ColorPickerProps;
49
52
  }): SchemaItem;
50
53
  custom(config: BaseConfig & {
51
54
  attrs?: Record<string, any>;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  schema
3
- } from "../chunk-I4XJIKFE.js";
3
+ } from "../chunk-3C7FYUNE.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-DgKKmcEA.cjs';
1
+ import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-C7n5dKys.cjs';
2
2
  import * as vue from 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -43,7 +43,7 @@ declare const widget: {
43
43
  meta: {
44
44
  draggable?: boolean;
45
45
  visible?: boolean;
46
- fixed?: boolean;
46
+ fixed?: boolean | "header" | "footer";
47
47
  } | undefined;
48
48
  schema: {
49
49
  props: SchemaItem[] | undefined;
@@ -70,7 +70,7 @@ declare const widget: {
70
70
  meta: {
71
71
  draggable?: boolean;
72
72
  visible?: boolean;
73
- fixed?: boolean;
73
+ fixed?: boolean | "header" | "footer";
74
74
  } | undefined;
75
75
  schema: {
76
76
  props: SchemaItem[] | undefined;
@@ -1,4 +1,4 @@
1
- import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-DgKKmcEA.js';
1
+ import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-C7n5dKys.js';
2
2
  import * as vue from 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -43,7 +43,7 @@ declare const widget: {
43
43
  meta: {
44
44
  draggable?: boolean;
45
45
  visible?: boolean;
46
- fixed?: boolean;
46
+ fixed?: boolean | "header" | "footer";
47
47
  } | undefined;
48
48
  schema: {
49
49
  props: SchemaItem[] | undefined;
@@ -70,7 +70,7 @@ declare const widget: {
70
70
  meta: {
71
71
  draggable?: boolean;
72
72
  visible?: boolean;
73
- fixed?: boolean;
73
+ fixed?: boolean | "header" | "footer";
74
74
  } | undefined;
75
75
  schema: {
76
76
  props: SchemaItem[] | undefined;
package/dist/index.cjs CHANGED
@@ -112,6 +112,9 @@ var schema = {
112
112
  number(config) {
113
113
  return this._create("number", config);
114
114
  },
115
+ checkbox(config) {
116
+ return this._create("checkbox", config);
117
+ },
115
118
  select(config) {
116
119
  return this._create("select", config);
117
120
  },
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-DgKKmcEA.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-C7n5dKys.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-DgKKmcEA.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-C7n5dKys.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-3C7FYUNE.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-DgKKmcEA.cjs';
3
+ import './Widget-C7n5dKys.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-DgKKmcEA.js';
3
+ import './Widget-C7n5dKys.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-DgKKmcEA.cjs';
4
+ import './Widget-C7n5dKys.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-DgKKmcEA.js';
4
+ import './Widget-C7n5dKys.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-DgKKmcEA.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-C7n5dKys.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-DgKKmcEA.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-C7n5dKys.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.8",
4
+ "version": "0.5.0",
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",