@stachelock/ui 0.6.14 → 0.6.15
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/BaseInformationInput-DmtT4C7P.js +4 -0
- package/dist/BaseInformationInput.vue_vue_type_script_setup_true_lang-B-qW4F69.js +154 -0
- package/dist/{DynamicForm.vue_vue_type_script_setup_true_lang-DMtVUXUN.js → DynamicForm.vue_vue_type_script_setup_true_lang-D8QXRuSo.js} +1 -1
- package/dist/{DynamicFormField.vue_vue_type_script_setup_true_lang-DSq31jjH.js → DynamicFormField.vue_vue_type_script_setup_true_lang-DVoVGq7g.js} +86 -38
- package/dist/NamesInput-DHs3Gie7.js +4 -0
- package/dist/NamesInput.vue_vue_type_script_setup_true_lang-BO54mB4C.js +195 -0
- package/dist/forms/DynamicForm.js +1 -1
- package/dist/forms/DynamicFormField.js +1 -1
- package/dist/index.js +1345 -1677
- package/dist/src/components/inputs/DatepickerInput.d.ts +1 -1
- package/dist/src/types/form.d.ts +24 -1
- package/package.json +1 -1
|
@@ -743,6 +743,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
743
743
|
[x: string]: (...args: never) => any;
|
|
744
744
|
}>;
|
|
745
745
|
range: boolean;
|
|
746
|
+
selectText: string;
|
|
746
747
|
tertiaryLabel: string;
|
|
747
748
|
successMessage: string;
|
|
748
749
|
showErrors: boolean;
|
|
@@ -772,7 +773,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
772
773
|
autoApply: boolean;
|
|
773
774
|
disableMonthYearSelect: boolean;
|
|
774
775
|
disabledDates: Date[] | ((date: Date) => boolean);
|
|
775
|
-
selectText: string;
|
|
776
776
|
autoPosition: boolean;
|
|
777
777
|
monthPicker: boolean;
|
|
778
778
|
timePicker: boolean;
|
package/dist/src/types/form.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface FormValidationState {
|
|
|
20
20
|
}
|
|
21
21
|
export interface DynamicFormField {
|
|
22
22
|
name: string;
|
|
23
|
-
type: 'text' | 'email' | 'phone' | 'password' | 'number' | 'tel' | 'url' | 'textarea' | 'select' | 'combobox' | 'checkbox' | 'switch' | 'file' | 'date' | 'datetime-local' | 'time';
|
|
23
|
+
type: 'text' | 'email' | 'phone' | 'password' | 'number' | 'tel' | 'url' | 'textarea' | 'select' | 'combobox' | 'checkbox' | 'switch' | 'file' | 'date' | 'datetime-local' | 'time' | 'names' | 'baseInfo' | 'address' | 'selectText';
|
|
24
24
|
label?: string;
|
|
25
25
|
placeholder?: string;
|
|
26
26
|
description?: string;
|
|
@@ -58,6 +58,29 @@ export interface DynamicFormField {
|
|
|
58
58
|
autoDetectCountry?: boolean;
|
|
59
59
|
tertiaryLabel?: string;
|
|
60
60
|
successMessage?: string;
|
|
61
|
+
schema?: unknown;
|
|
62
|
+
requiredFields?: string[];
|
|
63
|
+
use?: string;
|
|
64
|
+
enableVerification?: boolean;
|
|
65
|
+
showSuggestionCount?: boolean;
|
|
66
|
+
allowManualEntry?: boolean;
|
|
67
|
+
select?: {
|
|
68
|
+
label?: string;
|
|
69
|
+
options: Array<{
|
|
70
|
+
label: string;
|
|
71
|
+
value: string;
|
|
72
|
+
}>;
|
|
73
|
+
placeholder?: string;
|
|
74
|
+
};
|
|
75
|
+
text?: {
|
|
76
|
+
label?: string;
|
|
77
|
+
placeholder?: string;
|
|
78
|
+
inputMode?: string;
|
|
79
|
+
maxLength?: number;
|
|
80
|
+
};
|
|
81
|
+
delimiter?: string;
|
|
82
|
+
formatter?: (value: FormValue) => string | undefined;
|
|
83
|
+
showValidCheck?: boolean;
|
|
61
84
|
condition?: (formData: FormData, field?: DynamicFormField) => boolean;
|
|
62
85
|
onChange?: (value: FormValue, field: DynamicFormField, formData: FormData) => void;
|
|
63
86
|
onBlur?: (event: FocusEvent) => void;
|