@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.
- package/dist/{Widget-DgKKmcEA.d.cts → Widget-C7n5dKys.d.cts} +19 -19
- package/dist/{Widget-DgKKmcEA.d.ts → Widget-C7n5dKys.d.ts} +19 -19
- package/dist/{chunk-I4XJIKFE.js → chunk-3C7FYUNE.js} +3 -0
- package/dist/{chunk-KHPFRVKB.js → chunk-LTDSWBOW.js} +6 -1
- package/dist/{chunk-ZNYRMDSU.js → chunk-XDF4SBRY.js} +1 -1
- package/dist/class/Container.cjs +6 -1
- package/dist/class/Container.d.cts +1 -1
- package/dist/class/Container.d.ts +1 -1
- package/dist/class/Container.js +2 -2
- package/dist/class/Node.d.cts +1 -1
- package/dist/class/Node.d.ts +1 -1
- package/dist/class/Widget.cjs +6 -1
- package/dist/class/Widget.d.cts +1 -1
- package/dist/class/Widget.d.ts +1 -1
- package/dist/class/Widget.js +1 -1
- package/dist/class/index.cjs +6 -1
- package/dist/class/index.d.cts +1 -1
- package/dist/class/index.d.ts +1 -1
- package/dist/class/index.js +2 -2
- package/dist/helper/index.cjs +3 -0
- package/dist/helper/index.d.cts +1 -1
- package/dist/helper/index.d.ts +1 -1
- package/dist/helper/index.js +1 -1
- package/dist/helper/schema.cjs +3 -0
- package/dist/helper/schema.d.cts +16 -13
- package/dist/helper/schema.d.ts +16 -13
- package/dist/helper/schema.js +1 -1
- package/dist/helper/widget.d.cts +3 -3
- package/dist/helper/widget.d.ts +3 -3
- package/dist/index.cjs +3 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/tokens.d.cts +1 -1
- package/dist/tokens.d.ts +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormItemRule, UploadRequestOptions, FormItemProps,
|
|
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?:
|
|
144
|
+
attrs?: InputProps;
|
|
145
145
|
}
|
|
146
146
|
interface SchemaItemSelect extends SchemaItemBase {
|
|
147
147
|
type: 'select';
|
|
148
|
-
options?: Option[
|
|
149
|
-
attrs?:
|
|
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?:
|
|
154
|
+
attrs?: InputNumberProps;
|
|
155
155
|
}
|
|
156
156
|
interface SchemaItemSwitch extends SchemaItemBase {
|
|
157
157
|
type: 'switch';
|
|
158
|
-
attrs?:
|
|
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?:
|
|
162
|
+
attrs?: DatePickerProps;
|
|
167
163
|
}
|
|
168
164
|
interface SchemaItemColorPicker extends SchemaItemBase {
|
|
169
165
|
type: 'colorPicker';
|
|
170
|
-
attrs?:
|
|
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?:
|
|
183
|
-
options?: RadioOption[
|
|
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?:
|
|
189
|
-
options?: RadioButtonOption[
|
|
188
|
+
attrs?: RadioGroupProps;
|
|
189
|
+
options?: RadioButtonOption[];
|
|
190
190
|
link?: Record<string | number, SchemaItem[]>;
|
|
191
191
|
}
|
|
192
|
-
type SchemaItem = SchemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch |
|
|
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():
|
|
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,
|
|
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?:
|
|
144
|
+
attrs?: InputProps;
|
|
145
145
|
}
|
|
146
146
|
interface SchemaItemSelect extends SchemaItemBase {
|
|
147
147
|
type: 'select';
|
|
148
|
-
options?: Option[
|
|
149
|
-
attrs?:
|
|
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?:
|
|
154
|
+
attrs?: InputNumberProps;
|
|
155
155
|
}
|
|
156
156
|
interface SchemaItemSwitch extends SchemaItemBase {
|
|
157
157
|
type: 'switch';
|
|
158
|
-
attrs?:
|
|
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?:
|
|
162
|
+
attrs?: DatePickerProps;
|
|
167
163
|
}
|
|
168
164
|
interface SchemaItemColorPicker extends SchemaItemBase {
|
|
169
165
|
type: 'colorPicker';
|
|
170
|
-
attrs?:
|
|
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?:
|
|
183
|
-
options?: RadioOption[
|
|
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?:
|
|
189
|
-
options?: RadioButtonOption[
|
|
188
|
+
attrs?: RadioGroupProps;
|
|
189
|
+
options?: RadioButtonOption[];
|
|
190
190
|
link?: Record<string | number, SchemaItem[]>;
|
|
191
191
|
}
|
|
192
|
-
type SchemaItem = SchemaItemInput | SchemaItemSelect | SchemaItemNumber | SchemaItemSwitch |
|
|
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():
|
|
206
|
+
get isFixed(): false | "header" | "footer" | undefined;
|
|
207
207
|
get visible(): boolean;
|
|
208
208
|
get validatorProps(): Validator;
|
|
209
209
|
get validatorStyle(): Validator;
|
|
@@ -33,7 +33,12 @@ var Widget = class _Widget {
|
|
|
33
33
|
}
|
|
34
34
|
get isFixed() {
|
|
35
35
|
var _a;
|
|
36
|
-
|
|
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;
|
package/dist/class/Container.cjs
CHANGED
|
@@ -69,7 +69,12 @@ var Widget = class _Widget {
|
|
|
69
69
|
}
|
|
70
70
|
get isFixed() {
|
|
71
71
|
var _a;
|
|
72
|
-
|
|
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;
|
package/dist/class/Container.js
CHANGED
package/dist/class/Node.d.cts
CHANGED
package/dist/class/Node.d.ts
CHANGED
package/dist/class/Widget.cjs
CHANGED
|
@@ -67,7 +67,12 @@ var Widget = class _Widget {
|
|
|
67
67
|
}
|
|
68
68
|
get isFixed() {
|
|
69
69
|
var _a;
|
|
70
|
-
|
|
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;
|
package/dist/class/Widget.d.cts
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/class/Widget.d.ts
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/class/Widget.js
CHANGED
package/dist/class/index.cjs
CHANGED
|
@@ -106,7 +106,12 @@ var Widget = class _Widget {
|
|
|
106
106
|
}
|
|
107
107
|
get isFixed() {
|
|
108
108
|
var _a;
|
|
109
|
-
|
|
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;
|
package/dist/class/index.d.cts
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/class/index.d.ts
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/class/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Container
|
|
3
|
-
} from "../chunk-
|
|
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-
|
|
10
|
+
} from "../chunk-LTDSWBOW.js";
|
|
11
11
|
import "../chunk-6FNC3XMI.js";
|
|
12
12
|
export {
|
|
13
13
|
Container,
|
package/dist/helper/index.cjs
CHANGED
package/dist/helper/index.d.cts
CHANGED
|
@@ -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-
|
|
5
|
+
import '../Widget-C7n5dKys.cjs';
|
|
6
6
|
import 'vue';
|
|
7
7
|
import 'async-validator';
|
package/dist/helper/index.d.ts
CHANGED
|
@@ -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-
|
|
5
|
+
import '../Widget-C7n5dKys.js';
|
|
6
6
|
import 'vue';
|
|
7
7
|
import 'async-validator';
|
package/dist/helper/index.js
CHANGED
package/dist/helper/schema.cjs
CHANGED
package/dist/helper/schema.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormItemProps,
|
|
2
|
-
import { l as SchemaItem, O as Option, R as RadioOption, j as RadioButtonOption } from '../Widget-
|
|
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?:
|
|
21
|
+
attrs?: InputProps;
|
|
22
22
|
}): SchemaItem;
|
|
23
23
|
number(config: BaseConfig & {
|
|
24
|
-
attrs?:
|
|
24
|
+
attrs?: InputNumberProps;
|
|
25
|
+
}): SchemaItem;
|
|
26
|
+
checkbox(config: BaseConfig & {
|
|
27
|
+
attrs?: CheckboxProps;
|
|
25
28
|
}): SchemaItem;
|
|
26
29
|
select(config: BaseConfig & {
|
|
27
|
-
attrs?:
|
|
28
|
-
options?: Option[
|
|
30
|
+
attrs?: SelectProps;
|
|
31
|
+
options?: Option[];
|
|
29
32
|
link?: Record<string, SchemaItem[]>;
|
|
30
33
|
}): SchemaItem;
|
|
31
34
|
radio(config: BaseConfig & {
|
|
32
|
-
attrs?:
|
|
33
|
-
options?: RadioOption[
|
|
35
|
+
attrs?: RadioProps;
|
|
36
|
+
options?: RadioOption[];
|
|
34
37
|
link?: Record<string, SchemaItem[]>;
|
|
35
38
|
}): SchemaItem;
|
|
36
39
|
radioButton(config: BaseConfig & {
|
|
37
|
-
attrs?:
|
|
38
|
-
options?: RadioButtonOption[
|
|
40
|
+
attrs?: RadioButtonProps;
|
|
41
|
+
options?: RadioButtonOption[];
|
|
39
42
|
link?: Record<string, SchemaItem[]>;
|
|
40
43
|
}): SchemaItem;
|
|
41
44
|
switch(config: BaseConfig & {
|
|
42
|
-
attrs?:
|
|
45
|
+
attrs?: SwitchProps;
|
|
43
46
|
}): SchemaItem;
|
|
44
47
|
time(config: BaseConfig & {
|
|
45
|
-
attrs?:
|
|
48
|
+
attrs?: DatePickerProps;
|
|
46
49
|
}): SchemaItem;
|
|
47
50
|
color(config: BaseConfig & {
|
|
48
|
-
attrs?:
|
|
51
|
+
attrs?: ColorPickerProps;
|
|
49
52
|
}): SchemaItem;
|
|
50
53
|
custom(config: BaseConfig & {
|
|
51
54
|
attrs?: Record<string, any>;
|
package/dist/helper/schema.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormItemProps,
|
|
2
|
-
import { l as SchemaItem, O as Option, R as RadioOption, j as RadioButtonOption } from '../Widget-
|
|
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?:
|
|
21
|
+
attrs?: InputProps;
|
|
22
22
|
}): SchemaItem;
|
|
23
23
|
number(config: BaseConfig & {
|
|
24
|
-
attrs?:
|
|
24
|
+
attrs?: InputNumberProps;
|
|
25
|
+
}): SchemaItem;
|
|
26
|
+
checkbox(config: BaseConfig & {
|
|
27
|
+
attrs?: CheckboxProps;
|
|
25
28
|
}): SchemaItem;
|
|
26
29
|
select(config: BaseConfig & {
|
|
27
|
-
attrs?:
|
|
28
|
-
options?: Option[
|
|
30
|
+
attrs?: SelectProps;
|
|
31
|
+
options?: Option[];
|
|
29
32
|
link?: Record<string, SchemaItem[]>;
|
|
30
33
|
}): SchemaItem;
|
|
31
34
|
radio(config: BaseConfig & {
|
|
32
|
-
attrs?:
|
|
33
|
-
options?: RadioOption[
|
|
35
|
+
attrs?: RadioProps;
|
|
36
|
+
options?: RadioOption[];
|
|
34
37
|
link?: Record<string, SchemaItem[]>;
|
|
35
38
|
}): SchemaItem;
|
|
36
39
|
radioButton(config: BaseConfig & {
|
|
37
|
-
attrs?:
|
|
38
|
-
options?: RadioButtonOption[
|
|
40
|
+
attrs?: RadioButtonProps;
|
|
41
|
+
options?: RadioButtonOption[];
|
|
39
42
|
link?: Record<string, SchemaItem[]>;
|
|
40
43
|
}): SchemaItem;
|
|
41
44
|
switch(config: BaseConfig & {
|
|
42
|
-
attrs?:
|
|
45
|
+
attrs?: SwitchProps;
|
|
43
46
|
}): SchemaItem;
|
|
44
47
|
time(config: BaseConfig & {
|
|
45
|
-
attrs?:
|
|
48
|
+
attrs?: DatePickerProps;
|
|
46
49
|
}): SchemaItem;
|
|
47
50
|
color(config: BaseConfig & {
|
|
48
|
-
attrs?:
|
|
51
|
+
attrs?: ColorPickerProps;
|
|
49
52
|
}): SchemaItem;
|
|
50
53
|
custom(config: BaseConfig & {
|
|
51
54
|
attrs?: Record<string, any>;
|
package/dist/helper/schema.js
CHANGED
package/dist/helper/widget.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-
|
|
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;
|
package/dist/helper/widget.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-
|
|
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
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-
|
|
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-
|
|
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
package/dist/internal.d.cts
CHANGED
package/dist/internal.d.ts
CHANGED
package/dist/tokens.d.cts
CHANGED
package/dist/tokens.d.ts
CHANGED
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-
|
|
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-
|
|
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
|
+
"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": "
|
|
47
|
+
"vue": "3.5.40"
|
|
47
48
|
},
|
|
48
49
|
"scripts": {
|
|
49
50
|
"build": "tsup",
|