@modufolio/panel 0.1.0 → 0.2.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 (73) hide show
  1. package/README.md +1 -1
  2. package/dist/Builder/dragHandle.d.ts +10 -0
  3. package/dist/Builder/schema.d.ts +1 -1
  4. package/dist/Components/Actions/Action.vue.d.ts +1 -1
  5. package/dist/Components/Columns/CellActions.vue.d.ts +7 -7
  6. package/dist/Components/Columns/SelectColumn.vue.d.ts +8 -2
  7. package/dist/Components/Core/Button.vue.d.ts +2 -2
  8. package/dist/Components/Core/FlashMessages.vue.d.ts +6 -1
  9. package/dist/Components/Core/SelectInput.vue.d.ts +1 -1
  10. package/dist/Components/Core/TextInput.vue.d.ts +1 -1
  11. package/dist/Components/Dialogs/Dialog.vue.d.ts +1 -1
  12. package/dist/Components/Drawer/Drawer.vue.d.ts +1 -1
  13. package/dist/Components/Drawer/DrawerLink.vue.d.ts +4 -3
  14. package/dist/Components/Drawer/DrawerRelationList.vue.d.ts +12 -10
  15. package/dist/Components/Drawer/DrawerStack.vue.d.ts +14 -14
  16. package/dist/Components/Drawer/useDrawerDirtyGuard.d.ts +17 -0
  17. package/dist/Components/Drawer/useDrawerStack.d.ts +1 -1
  18. package/dist/Components/Drawer/useIsDrawer.d.ts +8 -0
  19. package/dist/Components/Fields/BelongsToSelect.vue.d.ts +14 -9
  20. package/dist/Components/Fields/CheckboxField.vue.d.ts +2 -2
  21. package/dist/Components/Fields/ColorPickerField.vue.d.ts +3 -3
  22. package/dist/Components/Fields/DataField.vue.d.ts +55 -0
  23. package/dist/Components/Fields/DatePickerField.vue.d.ts +2 -2
  24. package/dist/Components/Fields/DateRangePickerField.vue.d.ts +2 -2
  25. package/dist/Components/Fields/DateTimePickerField.vue.d.ts +2 -2
  26. package/dist/Components/Fields/EmbedField.vue.d.ts +95 -0
  27. package/dist/Components/Fields/FieldDescription.vue.d.ts +25 -0
  28. package/dist/Components/Fields/FieldLabel.vue.d.ts +67 -0
  29. package/dist/Components/Fields/FieldMessage.vue.d.ts +25 -0
  30. package/dist/Components/Fields/FieldPrimitive.vue.d.ts +127 -0
  31. package/dist/Components/Fields/FileUploadField.vue.d.ts +2 -2
  32. package/dist/Components/Fields/HiddenField.vue.d.ts +28 -0
  33. package/dist/Components/Fields/MultiSelectField.vue.d.ts +3 -3
  34. package/dist/Components/Fields/ProseMirrorBuilderField.vue.d.ts +1 -1
  35. package/dist/Components/Fields/RangeField.vue.d.ts +2 -2
  36. package/dist/Components/Fields/RepeaterField.vue.d.ts +29 -15
  37. package/dist/Components/Fields/RichTextEditorField.vue.d.ts +3 -3
  38. package/dist/Components/Fields/SelectField.vue.d.ts +6 -5
  39. package/dist/Components/Fields/SetField.vue.d.ts +77 -0
  40. package/dist/Components/Fields/TagsField.vue.d.ts +3 -3
  41. package/dist/Components/Fields/TextField.vue.d.ts +4 -4
  42. package/dist/Components/Fields/TextareaField.vue.d.ts +3 -3
  43. package/dist/Components/Fields/TimePickerField.vue.d.ts +2 -2
  44. package/dist/Components/Fields/ToggleButtonsField.vue.d.ts +10 -5
  45. package/dist/Components/Fields/ToggleField.vue.d.ts +2 -2
  46. package/dist/Components/Fields/fieldsFromSpec.d.ts +10 -2
  47. package/dist/Components/Fields/useBlueprint.d.ts +4 -0
  48. package/dist/Components/Filters/DateRangeFilter.vue.d.ts +1 -1
  49. package/dist/Components/Filters/MultiSelectFilter.vue.d.ts +2 -2
  50. package/dist/Components/Filters/NumberFilter.vue.d.ts +1 -1
  51. package/dist/Components/Filters/SelectFilter.vue.d.ts +2 -2
  52. package/dist/Components/Filters/TernaryFilter.vue.d.ts +1 -1
  53. package/dist/Components/Layout/AppLayout.vue.d.ts +5 -3
  54. package/dist/Components/Layout/Breadcrumbs.vue.d.ts +2 -2
  55. package/dist/Components/Layout/Sidebar.vue.d.ts +22 -3
  56. package/dist/Components/Relations/RelationManager.vue.d.ts +4 -3
  57. package/dist/Components/Table/ExportButton.vue.d.ts +3 -3
  58. package/dist/Components/Table/SchemaCell.d.ts +7 -7
  59. package/dist/Components/Table/SchemaTable.vue.d.ts +21 -20
  60. package/dist/Components/Table/schemaLinks.d.ts +11 -3
  61. package/dist/Components/Table/tableSchema.d.ts +28 -11
  62. package/dist/Components/Table/tableTypes.d.ts +14 -1
  63. package/dist/Components/Table/useSchemaActions.d.ts +9 -26
  64. package/dist/Composables/useDeleteConfirmation.d.ts +11 -31
  65. package/dist/Composables/useNestedDrawerForm.d.ts +7 -0
  66. package/dist/index.css +1 -1
  67. package/dist/index.d.ts +6 -1
  68. package/dist/index.js +9951 -9770
  69. package/dist/index.js.map +1 -1
  70. package/docs/custom-fields.md +54 -2
  71. package/docs/drawer-protocol.md +27 -1
  72. package/docs/table-schema.md +5 -0
  73. package/package.json +2 -2
@@ -0,0 +1,95 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ /** Ties the label and any help/error text to the control. */
3
+ id: {
4
+ type: StringConstructor;
5
+ default: () => string;
6
+ };
7
+ modelValue: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ label: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ help: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ error: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ placeholder: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ disabled: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ required: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ width: {
36
+ readonly type: StringConstructor;
37
+ readonly default: "full";
38
+ readonly validator: (v: string) => boolean;
39
+ };
40
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
41
+ "update:model-value": (value: string) => any;
42
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
43
+ /** Ties the label and any help/error text to the control. */
44
+ id: {
45
+ type: StringConstructor;
46
+ default: () => string;
47
+ };
48
+ modelValue: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ label: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ help: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ error: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ placeholder: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ disabled: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ required: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ width: {
77
+ readonly type: StringConstructor;
78
+ readonly default: "full";
79
+ readonly validator: (v: string) => boolean;
80
+ };
81
+ }>> & Readonly<{
82
+ "onUpdate:model-value"?: ((value: string) => any) | undefined;
83
+ }>, {
84
+ required: boolean;
85
+ id: string;
86
+ label: string;
87
+ help: string;
88
+ error: string;
89
+ width: string;
90
+ modelValue: string;
91
+ placeholder: string;
92
+ disabled: boolean;
93
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
94
+ declare const _default: typeof __VLS_export;
95
+ export default _default;
@@ -0,0 +1,25 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ id: {
7
+ type: StringConstructor;
8
+ default: undefined;
9
+ };
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
+ id: {
12
+ type: StringConstructor;
13
+ default: undefined;
14
+ };
15
+ }>> & Readonly<{}>, {
16
+ id: string;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,67 @@
1
+ import { PropType } from 'vue';
2
+ declare var __VLS_8: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_8) => any;
5
+ };
6
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
+ /** The control this labels. Ignored when rendering as a `legend`. */
8
+ for: {
9
+ type: StringConstructor;
10
+ default: undefined;
11
+ };
12
+ /**
13
+ * `legend` for a group of controls (a date+time pair, a set of sub-fields):
14
+ * `<label for>` may only point at one form control, so a fieldset's caption
15
+ * has to be a legend or it labels nothing.
16
+ */
17
+ as: {
18
+ type: PropType<"label" | "legend">;
19
+ default: string;
20
+ };
21
+ required: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ /** Bottom margin, for the rare control that hugs its label. */
26
+ spacing: {
27
+ type: PropType<"default" | "none">;
28
+ default: string;
29
+ };
30
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
31
+ /** The control this labels. Ignored when rendering as a `legend`. */
32
+ for: {
33
+ type: StringConstructor;
34
+ default: undefined;
35
+ };
36
+ /**
37
+ * `legend` for a group of controls (a date+time pair, a set of sub-fields):
38
+ * `<label for>` may only point at one form control, so a fieldset's caption
39
+ * has to be a legend or it labels nothing.
40
+ */
41
+ as: {
42
+ type: PropType<"label" | "legend">;
43
+ default: string;
44
+ };
45
+ required: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ /** Bottom margin, for the rare control that hugs its label. */
50
+ spacing: {
51
+ type: PropType<"default" | "none">;
52
+ default: string;
53
+ };
54
+ }>> & Readonly<{}>, {
55
+ required: boolean;
56
+ for: string;
57
+ as: "label" | "legend";
58
+ spacing: "default" | "none";
59
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
60
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
61
+ declare const _default: typeof __VLS_export;
62
+ export default _default;
63
+ type __VLS_WithSlots<T, S> = T & {
64
+ new (): {
65
+ $slots: S;
66
+ };
67
+ };
@@ -0,0 +1,25 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ id: {
7
+ type: StringConstructor;
8
+ default: undefined;
9
+ };
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
+ id: {
12
+ type: StringConstructor;
13
+ default: undefined;
14
+ };
15
+ }>> & Readonly<{}>, {
16
+ id: string;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,127 @@
1
+ import { PropType } from 'vue';
2
+ declare var __VLS_14: {
3
+ describedBy: string | undefined;
4
+ descriptionId: string | undefined;
5
+ errorId: string | undefined;
6
+ invalid: boolean | undefined;
7
+ };
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_14) => any;
10
+ };
11
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
12
+ /**
13
+ * The control's id. The help and error ids derive from it, so passing the
14
+ * same id to the control is what connects the three.
15
+ */
16
+ id: {
17
+ type: StringConstructor;
18
+ default: undefined;
19
+ };
20
+ label: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ help: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ error: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ required: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ /**
37
+ * `fieldset` when the slot holds several controls rather than one — the
38
+ * label then renders as a `legend`, because `<label for>` can only point at
39
+ * a single control.
40
+ */
41
+ as: {
42
+ type: PropType<"div" | "fieldset">;
43
+ default: string;
44
+ };
45
+ /** Extra classes for the wrapper, e.g. a field-specific `ui-field-*` hook. */
46
+ wrapperClass: {
47
+ type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
48
+ default: string;
49
+ };
50
+ /** Bottom margin under the label. */
51
+ labelSpacing: {
52
+ type: PropType<"default" | "none">;
53
+ default: string;
54
+ };
55
+ width: {
56
+ readonly type: StringConstructor;
57
+ readonly default: "full";
58
+ readonly validator: (v: string) => boolean;
59
+ };
60
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
61
+ /**
62
+ * The control's id. The help and error ids derive from it, so passing the
63
+ * same id to the control is what connects the three.
64
+ */
65
+ id: {
66
+ type: StringConstructor;
67
+ default: undefined;
68
+ };
69
+ label: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ };
73
+ help: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ };
77
+ error: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ required: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ /**
86
+ * `fieldset` when the slot holds several controls rather than one — the
87
+ * label then renders as a `legend`, because `<label for>` can only point at
88
+ * a single control.
89
+ */
90
+ as: {
91
+ type: PropType<"div" | "fieldset">;
92
+ default: string;
93
+ };
94
+ /** Extra classes for the wrapper, e.g. a field-specific `ui-field-*` hook. */
95
+ wrapperClass: {
96
+ type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
97
+ default: string;
98
+ };
99
+ /** Bottom margin under the label. */
100
+ labelSpacing: {
101
+ type: PropType<"default" | "none">;
102
+ default: string;
103
+ };
104
+ width: {
105
+ readonly type: StringConstructor;
106
+ readonly default: "full";
107
+ readonly validator: (v: string) => boolean;
108
+ };
109
+ }>> & Readonly<{}>, {
110
+ required: boolean;
111
+ id: string;
112
+ label: string;
113
+ as: "div" | "fieldset";
114
+ help: string;
115
+ error: string;
116
+ wrapperClass: string | unknown[] | Record<string, any>;
117
+ labelSpacing: "default" | "none";
118
+ width: string;
119
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
120
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
121
+ declare const _default: typeof __VLS_export;
122
+ export default _default;
123
+ type __VLS_WithSlots<T, S> = T & {
124
+ new (): {
125
+ $slots: S;
126
+ };
127
+ };
@@ -102,13 +102,13 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
102
102
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
103
103
  }>, {
104
104
  required: boolean;
105
- modelValue: string | File | null;
106
105
  id: string;
107
106
  label: string;
108
107
  help: string;
109
108
  error: string;
110
- disabled: boolean;
111
109
  width: string;
110
+ modelValue: string | File | null;
111
+ disabled: boolean;
112
112
  accept: string;
113
113
  multiple: boolean;
114
114
  maxSize: number;
@@ -0,0 +1,28 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ modelValue: {
3
+ type: null;
4
+ default: null;
5
+ };
6
+ label: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ "update:model-value": (value: unknown) => any;
12
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
+ modelValue: {
14
+ type: null;
15
+ default: null;
16
+ };
17
+ label: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ }>> & Readonly<{
22
+ "onUpdate:model-value"?: ((value: unknown) => any) | undefined;
23
+ }>, {
24
+ label: string;
25
+ modelValue: any;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
@@ -115,13 +115,13 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
115
115
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
116
116
  }>, {
117
117
  required: boolean;
118
- modelValue: (string | number)[];
119
118
  label: string;
120
- placeholder: string;
121
119
  help: string;
122
120
  error: string;
123
- disabled: boolean;
124
121
  width: string;
122
+ modelValue: (string | number)[];
123
+ placeholder: string;
124
+ disabled: boolean;
125
125
  searchable: boolean;
126
126
  searchUrl: string;
127
127
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -61,11 +61,11 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
61
61
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
62
62
  }>, {
63
63
  required: boolean;
64
- modelValue: string;
65
64
  label: string;
66
65
  help: string;
67
66
  error: string;
68
67
  width: string;
68
+ modelValue: string;
69
69
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
70
70
  declare const _default: typeof __VLS_export;
71
71
  export default _default;
@@ -108,14 +108,14 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
108
108
  required: boolean;
109
109
  min: number;
110
110
  max: number;
111
- modelValue: number;
112
111
  id: string;
113
112
  label: string;
114
113
  help: string;
115
114
  error: string;
115
+ width: string;
116
+ modelValue: number;
116
117
  suffix: string;
117
118
  disabled: boolean;
118
- width: string;
119
119
  step: number;
120
120
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
121
121
  declare const _default: typeof __VLS_export;
@@ -1,21 +1,35 @@
1
- import { PropType } from 'vue';
1
+ import { Component, PropType } from 'vue';
2
2
  import { FieldDef } from './useBlueprint';
3
- declare var __VLS_9: `item-${any}`, __VLS_10: {
4
- item: any;
3
+ /** One row of the repeater; its keys are the consumer's columns or sub-fields. */
4
+ type RepeaterItem = Record<string, unknown>;
5
+ /** A column of the table layout. */
6
+ interface RepeaterColumn {
7
+ /** Key on each row the column reads and writes. */
8
+ name: string;
9
+ label?: string;
10
+ /** CSS width for the header cell. */
11
+ width?: string;
12
+ required?: boolean;
13
+ /** Editor rendered in the cell; the raw value is shown as text when absent. */
14
+ component?: Component | string;
15
+ componentProps?: Record<string, unknown>;
16
+ }
17
+ declare var __VLS_16: `item-${string}`, __VLS_17: {
18
+ item: RepeaterItem;
5
19
  index: number;
6
- update: (value: any) => void;
7
- }, __VLS_19: {
8
- item: any;
20
+ update: (value: unknown) => void;
21
+ }, __VLS_26: {
22
+ item: RepeaterItem;
9
23
  index: number;
10
24
  };
11
25
  type __VLS_Slots = {} & {
12
- [K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
26
+ [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any;
13
27
  } & {
14
- default?: (props: typeof __VLS_19) => any;
28
+ default?: (props: typeof __VLS_26) => any;
15
29
  };
16
30
  declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
17
31
  modelValue: {
18
- type: PropType<any[]>;
32
+ type: PropType<RepeaterItem[]>;
19
33
  default: () => never[];
20
34
  };
21
35
  label: {
@@ -35,7 +49,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
35
49
  default: boolean;
36
50
  };
37
51
  columns: {
38
- type: PropType<any[]>;
52
+ type: PropType<RepeaterColumn[]>;
39
53
  default: () => never[];
40
54
  };
41
55
  layout: {
@@ -82,7 +96,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
82
96
  "update:modelValue": (...args: any[]) => void;
83
97
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
84
98
  modelValue: {
85
- type: PropType<any[]>;
99
+ type: PropType<RepeaterItem[]>;
86
100
  default: () => never[];
87
101
  };
88
102
  label: {
@@ -102,7 +116,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
102
116
  default: boolean;
103
117
  };
104
118
  columns: {
105
- type: PropType<any[]>;
119
+ type: PropType<RepeaterColumn[]>;
106
120
  default: () => never[];
107
121
  };
108
122
  layout: {
@@ -149,14 +163,14 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
149
163
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
150
164
  }>, {
151
165
  required: boolean;
152
- modelValue: any[];
153
166
  label: string;
154
167
  help: string;
155
168
  error: string;
156
- disabled: boolean;
157
169
  width: string;
170
+ modelValue: RepeaterItem[];
171
+ disabled: boolean;
158
172
  layout: string;
159
- columns: any[];
173
+ columns: RepeaterColumn[];
160
174
  defaultItem: Function | Record<string, any>;
161
175
  addButtonLabel: string;
162
176
  emptyMessage: string;
@@ -105,13 +105,13 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
105
105
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
106
106
  }>, {
107
107
  required: boolean;
108
- modelValue: string;
109
108
  label: string;
110
- placeholder: string;
111
109
  help: string;
112
110
  error: string;
113
- disabled: boolean;
114
111
  width: string;
112
+ modelValue: string;
113
+ placeholder: string;
114
+ disabled: boolean;
115
115
  rows: number;
116
116
  maxLength: number;
117
117
  showCharCount: boolean;
@@ -1,4 +1,5 @@
1
1
  import { PropType } from 'vue';
2
+ import { OptionItem } from './useBlueprint';
2
3
  declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
4
  modelValue: {
4
5
  type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
@@ -17,7 +18,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
17
18
  default: string;
18
19
  };
19
20
  options: {
20
- type: PropType<any[]>;
21
+ type: PropType<Array<OptionItem | string | number>>;
21
22
  required: true;
22
23
  };
23
24
  help: {
@@ -61,7 +62,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
61
62
  default: string;
62
63
  };
63
64
  options: {
64
- type: PropType<any[]>;
65
+ type: PropType<Array<OptionItem | string | number>>;
65
66
  required: true;
66
67
  };
67
68
  help: {
@@ -89,14 +90,14 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
89
90
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
90
91
  }>, {
91
92
  required: boolean;
92
- modelValue: string | number | boolean;
93
93
  id: string;
94
94
  label: string;
95
- placeholder: string;
96
95
  help: string;
97
96
  error: string;
98
- disabled: boolean;
99
97
  width: string;
98
+ modelValue: string | number | boolean;
99
+ placeholder: string;
100
+ disabled: boolean;
100
101
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
101
102
  declare const _default: typeof __VLS_export;
102
103
  export default _default;
@@ -0,0 +1,77 @@
1
+ import { PropType } from 'vue';
2
+ import { FieldDef } from './useBlueprint';
3
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ modelValue: {
5
+ type: PropType<Record<string, unknown>>;
6
+ default: () => {};
7
+ };
8
+ label: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ help: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ disabled: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ fields: {
21
+ type: PropType<FieldDef[]>;
22
+ default: () => never[];
23
+ };
24
+ errors: {
25
+ type: PropType<Record<string, string>>;
26
+ default: () => {};
27
+ };
28
+ width: {
29
+ readonly type: StringConstructor;
30
+ readonly default: "full";
31
+ readonly validator: (v: string) => boolean;
32
+ };
33
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
+ "update:model-value": (value: Record<string, unknown>) => any;
35
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
36
+ modelValue: {
37
+ type: PropType<Record<string, unknown>>;
38
+ default: () => {};
39
+ };
40
+ label: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ help: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ disabled: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ fields: {
53
+ type: PropType<FieldDef[]>;
54
+ default: () => never[];
55
+ };
56
+ errors: {
57
+ type: PropType<Record<string, string>>;
58
+ default: () => {};
59
+ };
60
+ width: {
61
+ readonly type: StringConstructor;
62
+ readonly default: "full";
63
+ readonly validator: (v: string) => boolean;
64
+ };
65
+ }>> & Readonly<{
66
+ "onUpdate:model-value"?: ((value: Record<string, unknown>) => any) | undefined;
67
+ }>, {
68
+ label: string;
69
+ help: string;
70
+ width: string;
71
+ modelValue: Record<string, unknown>;
72
+ disabled: boolean;
73
+ fields: FieldDef[];
74
+ errors: Record<string, string>;
75
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
76
+ declare const _default: typeof __VLS_export;
77
+ export default _default;
@@ -88,14 +88,14 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
88
88
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
89
89
  }>, {
90
90
  required: boolean;
91
- modelValue: string;
92
91
  id: string;
93
92
  label: string;
94
- placeholder: string;
95
93
  help: string;
96
94
  error: string;
97
- disabled: boolean;
98
95
  width: string;
96
+ modelValue: string;
97
+ placeholder: string;
98
+ disabled: boolean;
99
99
  separator: string;
100
100
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
101
101
  declare const _default: typeof __VLS_export;