@ghentcdh/ui 1.0.2 → 1.0.4
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/alert/alert.model.d.ts +5 -0
- package/alert/alert.vue.d.ts +22 -0
- package/alert/index.d.ts +2 -0
- package/button/Btn.properties.d.ts +45 -0
- package/button/BtnBadge.properties.d.ts +27 -0
- package/button/btn-badge.vue.d.ts +62 -0
- package/button/btn.vue.d.ts +101 -0
- package/button/const.d.ts +9 -0
- package/button/index.d.ts +5 -0
- package/card/card.vue.d.ts +20 -0
- package/collapse/Collapse.properties.d.ts +35 -0
- package/collapse/Collapse.vue.d.ts +75 -0
- package/collapse/CollapseRow.properties.d.ts +17 -0
- package/collapse/CollapseRow.vue.d.ts +49 -0
- package/collapse/index.d.ts +3 -0
- package/composables/index.d.ts +2 -0
- package/composables/useFocusTrap.d.ts +8 -0
- package/const/colors.d.ts +8 -0
- package/const/index.d.ts +2 -0
- package/const/size.d.ts +4 -0
- package/directives/click-outside.directive.d.ts +6 -0
- package/drawer/drawer.properties.d.ts +18 -0
- package/drawer/drawer.vue.d.ts +58 -0
- package/drawer/index.d.ts +1 -0
- package/filter/Filter.properties.d.ts +46 -0
- package/filter/composables/useFilter.d.ts +8 -0
- package/filter/filter.vue.d.ts +84 -0
- package/filter/index.d.ts +3 -0
- package/form/Checkbox.properties.d.ts +83 -0
- package/form/Checkbox.vue.d.ts +216 -0
- package/form/Input.properties.d.ts +87 -0
- package/form/Input.vue.d.ts +225 -0
- package/form/InputNumber.properties.d.ts +87 -0
- package/form/InputNumber.vue.d.ts +225 -0
- package/form/Textarea.properties.d.ts +87 -0
- package/form/Textarea.vue.d.ts +225 -0
- package/form/core/ControlWrapper.properties.d.ts +84 -0
- package/form/core/ControlWrapper.vue.d.ts +221 -0
- package/form/core/emits.d.ts +7 -0
- package/form/core/properties.d.ts +25 -0
- package/form/core/styles.d.ts +36 -0
- package/form/core/utils/style.d.ts +6 -0
- package/form/index.d.ts +12 -0
- package/form/select/AutoComplete.properties.d.ts +139 -0
- package/form/select/AutoComplete.vue.d.ts +328 -0
- package/form/select/ListResults.properties.d.ts +24 -0
- package/form/select/ListResults.vue.d.ts +46 -0
- package/form/select/MultiSelect.vue.d.ts +295 -0
- package/form/select/SelectComponent.vue.d.ts +259 -0
- package/form/select/SelectWrapper.properties.d.ts +222 -0
- package/form/select/SelectWrapper.vue.d.ts +408 -0
- package/form/select/composables/useOptions.d.ts +19 -0
- package/form/select/composables/useSearch.d.ts +6 -0
- package/form/text/Markdown.vue.d.ts +234 -0
- package/form/text/MarkdownComponent.properties.d.ts +101 -0
- package/icons/Icon.properties.d.ts +11 -0
- package/icons/icon-list.d.ts +26 -0
- package/icons/icon.vue.d.ts +16 -0
- package/icons/index.d.ts +3 -0
- package/loading/index.d.ts +1 -0
- package/loading/loading.vue.d.ts +5 -0
- package/menu/dropdown.vue.d.ts +6 -0
- package/menu/index.d.ts +4 -0
- package/menu/menu-item.vue.d.ts +5 -0
- package/menu/menu.type.d.ts +15 -0
- package/menu/menu.vue.d.ts +7 -0
- package/menu/sub-menu.vue.d.ts +7 -0
- package/modal/confirmModal.vue.d.ts +10 -0
- package/modal/index.d.ts +6 -0
- package/modal/modal.model.d.ts +17 -0
- package/modal/modal.properties.d.ts +30 -0
- package/modal/modal.service.d.ts +15 -0
- package/modal/modal.vue.d.ts +82 -0
- package/modal/modalWrapper.vue.d.ts +2 -0
- package/package.json +21 -2
- package/shell/menu.type.d.ts +11 -0
- package/shell/shell.component.vue.d.ts +31 -0
- package/table/cells/boolean.cell.vue.d.ts +26 -0
- package/table/cells/text.cell.properties.d.ts +13 -0
- package/table/cells/text.cell.vue.d.ts +26 -0
- package/table/header/sort.header.properties.d.ts +15 -0
- package/table/header/sort.header.vue.d.ts +24 -0
- package/table/index.d.ts +9 -0
- package/table/pagination-button.component.properties.d.ts +30 -0
- package/table/pagination-button.component.vue.d.ts +47 -0
- package/table/pagination.component.properties.d.ts +15 -0
- package/table/pagination.component.vue.d.ts +32 -0
- package/table/table.component.properties.d.ts +34 -0
- package/table/table.component.vue.d.ts +46 -0
- package/table/table.model.d.ts +10 -0
- package/test-utils/withSetup.d.ts +4 -0
- package/toast/index.d.ts +3 -0
- package/toast/notification-message.d.ts +7 -0
- package/toast/notification-message.vue.d.ts +7 -0
- package/toast/notification.service.d.ts +24 -0
- package/toast/notifications.vue.d.ts +2 -0
- package/tree/TreeItem.vue.d.ts +15 -0
- package/tree/TreeView.vue.d.ts +7 -0
- package/tree/index.d.ts +1 -0
- package/tree/props.d.ts +13 -0
- package/utils/hasCustomEventListener.d.ts +1 -0
- package/utils/index.d.ts +1 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLFieldSetElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
id: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
};
|
|
14
|
+
placeholder: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
};
|
|
17
|
+
description: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
};
|
|
20
|
+
errors: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
};
|
|
23
|
+
label: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
visible: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
required: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
enabled: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
isFocused: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
isTouched: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
hideLabel: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
styles: {
|
|
51
|
+
type: import('vue').PropType<import('./styles').MyStyles>;
|
|
52
|
+
default: () => {
|
|
53
|
+
readonly group: {
|
|
54
|
+
readonly root: "group";
|
|
55
|
+
readonly label: "text-primary text-lg font-bold";
|
|
56
|
+
readonly item: "group-item";
|
|
57
|
+
};
|
|
58
|
+
readonly verticalLayout: {
|
|
59
|
+
readonly root: "flex flex-col gap-x-2";
|
|
60
|
+
readonly item: "w-full";
|
|
61
|
+
};
|
|
62
|
+
readonly horizontalLayout: {
|
|
63
|
+
readonly root: "flex flex-row gap-x-2";
|
|
64
|
+
readonly item: "w-full";
|
|
65
|
+
};
|
|
66
|
+
readonly arrayList: {
|
|
67
|
+
readonly root: "fieldset";
|
|
68
|
+
readonly legend: "fieldset-legend text-xl capitalize";
|
|
69
|
+
};
|
|
70
|
+
readonly control: {
|
|
71
|
+
readonly root: "fieldset";
|
|
72
|
+
readonly wrapper: "fieldset";
|
|
73
|
+
readonly label: "fieldset-legend";
|
|
74
|
+
readonly error: "";
|
|
75
|
+
readonly input: "input";
|
|
76
|
+
readonly textarea: "input h-32";
|
|
77
|
+
readonly checkbox: "checkbox";
|
|
78
|
+
readonly select: "input pr-14";
|
|
79
|
+
readonly description: "form-control--description label text-xs text-gray-500";
|
|
80
|
+
};
|
|
81
|
+
readonly fixedArrayList: {
|
|
82
|
+
readonly root: "flex flex-row gap-x-2";
|
|
83
|
+
readonly item: "w-full";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
width: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
92
|
+
id: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
};
|
|
95
|
+
placeholder: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
};
|
|
98
|
+
description: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
};
|
|
101
|
+
errors: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
};
|
|
104
|
+
label: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
};
|
|
107
|
+
visible: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
required: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
enabled: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
isFocused: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
isTouched: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
hideLabel: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
styles: {
|
|
132
|
+
type: import('vue').PropType<import('./styles').MyStyles>;
|
|
133
|
+
default: () => {
|
|
134
|
+
readonly group: {
|
|
135
|
+
readonly root: "group";
|
|
136
|
+
readonly label: "text-primary text-lg font-bold";
|
|
137
|
+
readonly item: "group-item";
|
|
138
|
+
};
|
|
139
|
+
readonly verticalLayout: {
|
|
140
|
+
readonly root: "flex flex-col gap-x-2";
|
|
141
|
+
readonly item: "w-full";
|
|
142
|
+
};
|
|
143
|
+
readonly horizontalLayout: {
|
|
144
|
+
readonly root: "flex flex-row gap-x-2";
|
|
145
|
+
readonly item: "w-full";
|
|
146
|
+
};
|
|
147
|
+
readonly arrayList: {
|
|
148
|
+
readonly root: "fieldset";
|
|
149
|
+
readonly legend: "fieldset-legend text-xl capitalize";
|
|
150
|
+
};
|
|
151
|
+
readonly control: {
|
|
152
|
+
readonly root: "fieldset";
|
|
153
|
+
readonly wrapper: "fieldset";
|
|
154
|
+
readonly label: "fieldset-legend";
|
|
155
|
+
readonly error: "";
|
|
156
|
+
readonly input: "input";
|
|
157
|
+
readonly textarea: "input h-32";
|
|
158
|
+
readonly checkbox: "checkbox";
|
|
159
|
+
readonly select: "input pr-14";
|
|
160
|
+
readonly description: "form-control--description label text-xs text-gray-500";
|
|
161
|
+
};
|
|
162
|
+
readonly fixedArrayList: {
|
|
163
|
+
readonly root: "flex flex-row gap-x-2";
|
|
164
|
+
readonly item: "w-full";
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
width: {
|
|
169
|
+
type: StringConstructor;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
}>> & Readonly<{}>, {
|
|
173
|
+
required: boolean;
|
|
174
|
+
width: string;
|
|
175
|
+
styles: {
|
|
176
|
+
readonly group: {
|
|
177
|
+
readonly root: "group";
|
|
178
|
+
readonly label: "text-primary text-lg font-bold";
|
|
179
|
+
readonly item: "group-item";
|
|
180
|
+
};
|
|
181
|
+
readonly verticalLayout: {
|
|
182
|
+
readonly root: "flex flex-col gap-x-2";
|
|
183
|
+
readonly item: "w-full";
|
|
184
|
+
};
|
|
185
|
+
readonly horizontalLayout: {
|
|
186
|
+
readonly root: "flex flex-row gap-x-2";
|
|
187
|
+
readonly item: "w-full";
|
|
188
|
+
};
|
|
189
|
+
readonly arrayList: {
|
|
190
|
+
readonly root: "fieldset";
|
|
191
|
+
readonly legend: "fieldset-legend text-xl capitalize";
|
|
192
|
+
};
|
|
193
|
+
readonly control: {
|
|
194
|
+
readonly root: "fieldset";
|
|
195
|
+
readonly wrapper: "fieldset";
|
|
196
|
+
readonly label: "fieldset-legend";
|
|
197
|
+
readonly error: "";
|
|
198
|
+
readonly input: "input";
|
|
199
|
+
readonly textarea: "input h-32";
|
|
200
|
+
readonly checkbox: "checkbox";
|
|
201
|
+
readonly select: "input pr-14";
|
|
202
|
+
readonly description: "form-control--description label text-xs text-gray-500";
|
|
203
|
+
};
|
|
204
|
+
readonly fixedArrayList: {
|
|
205
|
+
readonly root: "flex flex-row gap-x-2";
|
|
206
|
+
readonly item: "w-full";
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
hideLabel: boolean;
|
|
210
|
+
isTouched: boolean;
|
|
211
|
+
visible: boolean;
|
|
212
|
+
enabled: boolean;
|
|
213
|
+
isFocused: boolean;
|
|
214
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLFieldSetElement>;
|
|
215
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
216
|
+
export default _default;
|
|
217
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
218
|
+
new (): {
|
|
219
|
+
$slots: S;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/vue-3';
|
|
2
|
+
import { MyStyles } from './styles';
|
|
3
|
+
export type ControlProperties = {
|
|
4
|
+
id?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
errors?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
isFocused?: boolean;
|
|
13
|
+
isTouched?: boolean;
|
|
14
|
+
hideLabel?: boolean;
|
|
15
|
+
styles?: MyStyles;
|
|
16
|
+
width: string;
|
|
17
|
+
};
|
|
18
|
+
export type ToolbarAction = {
|
|
19
|
+
/** Displayed inside the button (text or HTML, e.g. an icon) */
|
|
20
|
+
label: string;
|
|
21
|
+
/** The Tiptap mark/node name used for isActive() highlighting */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Called with the editor instance when the button is clicked */
|
|
24
|
+
action: (editor: Editor | undefined) => void;
|
|
25
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const myStyles: {
|
|
2
|
+
readonly group: {
|
|
3
|
+
readonly root: "group";
|
|
4
|
+
readonly label: "text-primary text-lg font-bold";
|
|
5
|
+
readonly item: "group-item";
|
|
6
|
+
};
|
|
7
|
+
readonly verticalLayout: {
|
|
8
|
+
readonly root: "flex flex-col gap-x-2";
|
|
9
|
+
readonly item: "w-full";
|
|
10
|
+
};
|
|
11
|
+
readonly horizontalLayout: {
|
|
12
|
+
readonly root: "flex flex-row gap-x-2";
|
|
13
|
+
readonly item: "w-full";
|
|
14
|
+
};
|
|
15
|
+
readonly arrayList: {
|
|
16
|
+
readonly root: "fieldset";
|
|
17
|
+
readonly legend: "fieldset-legend text-xl capitalize";
|
|
18
|
+
};
|
|
19
|
+
readonly control: {
|
|
20
|
+
readonly root: "fieldset";
|
|
21
|
+
readonly wrapper: "fieldset";
|
|
22
|
+
readonly label: "fieldset-legend";
|
|
23
|
+
readonly error: "";
|
|
24
|
+
readonly input: "input";
|
|
25
|
+
readonly textarea: "input h-32";
|
|
26
|
+
readonly checkbox: "checkbox";
|
|
27
|
+
readonly select: "input pr-14";
|
|
28
|
+
readonly description: "form-control--description label text-xs text-gray-500";
|
|
29
|
+
};
|
|
30
|
+
readonly fixedArrayList: {
|
|
31
|
+
readonly root: "flex flex-row gap-x-2";
|
|
32
|
+
readonly item: "w-full";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export type MyStyles = typeof myStyles;
|
|
36
|
+
export declare const mergeStyles: (overrides?: Partial<MyStyles>) => MyStyles;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ControlProperties } from '../properties';
|
|
2
|
+
type ErrorControlProperties = Pick<ControlProperties, 'errors' | 'isTouched'>;
|
|
3
|
+
export declare const showErrors: ({ isTouched, errors }: ErrorControlProperties) => boolean;
|
|
4
|
+
export declare const isDescriptionHidden: (visible: boolean, description: string | undefined, isFocused: boolean, showUnfocusedDescription: boolean) => boolean;
|
|
5
|
+
export declare const buildInputStyle: (styles: string, properties: ErrorControlProperties) => any;
|
|
6
|
+
export {};
|
package/form/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as SelectComponent } from './select/SelectComponent.vue';
|
|
2
|
+
export { default as ControlWrapper } from './core/ControlWrapper.vue';
|
|
3
|
+
export { default as Autocomplete } from './select/AutoComplete.vue';
|
|
4
|
+
export { default as MultiSelect } from './select/MultiSelect.vue';
|
|
5
|
+
export * from './core/styles';
|
|
6
|
+
export * from './core/utils/style';
|
|
7
|
+
export * from './core/properties';
|
|
8
|
+
export { default as Markdown } from './text/Markdown.vue';
|
|
9
|
+
export { default as Checkbox } from './Checkbox.vue';
|
|
10
|
+
export { default as Input } from './Input.vue';
|
|
11
|
+
export { default as InputNumber } from './InputNumber.vue';
|
|
12
|
+
export { default as Textarea } from './Textarea.vue';
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
export declare const AutocompleteProperties: {
|
|
2
|
+
/** v-model binding */
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* HTTP mode: async function that receives the search string and returns
|
|
9
|
+
* an array of strings or { label, value } objects.
|
|
10
|
+
* e.g. :fetchOptions="(q) => fetch(`/api/search?q=${q}`).then(r => r.json())"
|
|
11
|
+
*/
|
|
12
|
+
fetchOptions: {
|
|
13
|
+
type: FunctionConstructor;
|
|
14
|
+
default: null;
|
|
15
|
+
};
|
|
16
|
+
/** Debounce delay in ms for HTTP mode */
|
|
17
|
+
debounceMs: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
/** How many results to show at once */
|
|
22
|
+
maxResults: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
/** Allow free-text (don't clear input if nothing selected) */
|
|
27
|
+
freeText: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
options: {
|
|
32
|
+
type: import('vue').PropType<Array<import('./ListResults.properties').OptionValue>>;
|
|
33
|
+
required: false;
|
|
34
|
+
};
|
|
35
|
+
isLoading: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
query: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: null;
|
|
42
|
+
};
|
|
43
|
+
isActive: {
|
|
44
|
+
type: FunctionConstructor;
|
|
45
|
+
default: (item: any) => boolean;
|
|
46
|
+
};
|
|
47
|
+
labelKey: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
valueKey: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
enableCreate: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
id: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
};
|
|
62
|
+
placeholder: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
};
|
|
65
|
+
description: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
};
|
|
68
|
+
errors: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
};
|
|
71
|
+
label: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
};
|
|
74
|
+
visible: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
required: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
enabled: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
isFocused: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
isTouched: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
hideLabel: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
styles: {
|
|
99
|
+
type: import('vue').PropType<import('..').MyStyles>;
|
|
100
|
+
default: () => {
|
|
101
|
+
readonly group: {
|
|
102
|
+
readonly root: "group";
|
|
103
|
+
readonly label: "text-primary text-lg font-bold";
|
|
104
|
+
readonly item: "group-item";
|
|
105
|
+
};
|
|
106
|
+
readonly verticalLayout: {
|
|
107
|
+
readonly root: "flex flex-col gap-x-2";
|
|
108
|
+
readonly item: "w-full";
|
|
109
|
+
};
|
|
110
|
+
readonly horizontalLayout: {
|
|
111
|
+
readonly root: "flex flex-row gap-x-2";
|
|
112
|
+
readonly item: "w-full";
|
|
113
|
+
};
|
|
114
|
+
readonly arrayList: {
|
|
115
|
+
readonly root: "fieldset";
|
|
116
|
+
readonly legend: "fieldset-legend text-xl capitalize";
|
|
117
|
+
};
|
|
118
|
+
readonly control: {
|
|
119
|
+
readonly root: "fieldset";
|
|
120
|
+
readonly wrapper: "fieldset";
|
|
121
|
+
readonly label: "fieldset-legend";
|
|
122
|
+
readonly error: "";
|
|
123
|
+
readonly input: "input";
|
|
124
|
+
readonly textarea: "input h-32";
|
|
125
|
+
readonly checkbox: "checkbox";
|
|
126
|
+
readonly select: "input pr-14";
|
|
127
|
+
readonly description: "form-control--description label text-xs text-gray-500";
|
|
128
|
+
};
|
|
129
|
+
readonly fixedArrayList: {
|
|
130
|
+
readonly root: "flex flex-row gap-x-2";
|
|
131
|
+
readonly item: "w-full";
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
width: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
};
|