@functionalcms/svelte-components 5.9.1 → 5.9.3
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.
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
const handleSubmit = async (event: Event) => {
|
|
82
|
+
console.log('SmartForm submit processing');
|
|
82
83
|
event.preventDefault();
|
|
83
84
|
loading = true;
|
|
84
85
|
debugger;
|
|
@@ -95,6 +96,8 @@
|
|
|
95
96
|
setTimeout(() => {
|
|
96
97
|
showMessage = false;
|
|
97
98
|
}, 3000);
|
|
99
|
+
}else {
|
|
100
|
+
console.warn('Form is invalid or already sending message');
|
|
98
101
|
}
|
|
99
102
|
} catch (error) {
|
|
100
103
|
console.error('Error submitting form:', error);
|
|
@@ -115,10 +115,10 @@ export declare function createSelectField(id: string, label: string, selectOptio
|
|
|
115
115
|
export declare function createTimePickerField(id: string, label: string, value?: any, options?: Partial<Omit<TimePickerField, "id" | "label" | "typeOfField">>): TimePickerField;
|
|
116
116
|
export declare function createPhoneInputField(id: string, label: string, value?: any, options?: Partial<Omit<PhoneInputField, "id" | "label" | "typeOfField">>): PhoneInputField;
|
|
117
117
|
export declare function createHiddenField(id: string, value: string): HiddenField;
|
|
118
|
-
export declare function createEditorField(id: string, label: string, type: "markdown" | "html", value: string): {
|
|
118
|
+
export declare function createEditorField(id: string, label: string, type: "markdown" | "html", value: string | undefined): {
|
|
119
119
|
id: string;
|
|
120
120
|
label: string;
|
|
121
|
-
value: string;
|
|
121
|
+
value: string | undefined;
|
|
122
122
|
typeOfField: "html" | "markdown";
|
|
123
123
|
};
|
|
124
124
|
export type ButtonConfig = {
|