@maro-tech/form 0.0.4 → 0.0.5
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/package.json
CHANGED
|
@@ -315,6 +315,7 @@ interface MaroFormViewResponse {
|
|
|
315
315
|
declare class UiActionFormModalComponent implements OnChanges {
|
|
316
316
|
readonly formId: i0.InputSignal<string>;
|
|
317
317
|
readonly recordId: i0.InputSignal<string>;
|
|
318
|
+
readonly size: i0.InputSignal<"sm" | "md" | "lg">;
|
|
318
319
|
readonly isOpen: i0.InputSignal<boolean>;
|
|
319
320
|
readonly initialValue: i0.InputSignal<Record<string, unknown>>;
|
|
320
321
|
readonly uploadPhoto: i0.InputSignal<((file: File) => Observable<{
|
|
@@ -324,16 +325,27 @@ declare class UiActionFormModalComponent implements OnChanges {
|
|
|
324
325
|
readonly completed: i0.OutputEmitterRef<unknown>;
|
|
325
326
|
readonly isLoading: i0.WritableSignal<boolean>;
|
|
326
327
|
readonly isSubmitting: i0.WritableSignal<boolean>;
|
|
328
|
+
readonly isUploading: i0.WritableSignal<boolean>;
|
|
327
329
|
readonly formConfig: i0.WritableSignal<MaroFormViewResponse | null>;
|
|
328
330
|
readonly formValue: i0.WritableSignal<UiDynamicFormValue>;
|
|
329
331
|
readonly fields: i0.Signal<UiDynamicFormField[]>;
|
|
330
332
|
readonly submitAction: i0.Signal<MaroFormViewAction | undefined>;
|
|
331
333
|
readonly submitLabel: i0.Signal<string | true>;
|
|
334
|
+
readonly panelClass: i0.Signal<{
|
|
335
|
+
'max-w-xl': boolean;
|
|
336
|
+
'max-w-3xl': boolean;
|
|
337
|
+
'max-w-6xl': boolean;
|
|
338
|
+
}>;
|
|
332
339
|
private readonly http;
|
|
333
340
|
private readonly router;
|
|
334
341
|
ngOnChanges(changes: SimpleChanges): void;
|
|
335
342
|
close(): void;
|
|
336
343
|
onValueChange(value: UiDynamicFormValue): void;
|
|
344
|
+
onLookupCompleted(_event: {
|
|
345
|
+
fieldId: string;
|
|
346
|
+
response: Record<string, unknown>;
|
|
347
|
+
}): void;
|
|
348
|
+
onUploadingChange(uploading: boolean): void;
|
|
337
349
|
onFieldActionTriggered(event: {
|
|
338
350
|
fieldId: string;
|
|
339
351
|
action: UiDynamicFormFieldAction;
|
|
@@ -345,7 +357,7 @@ declare class UiActionFormModalComponent implements OnChanges {
|
|
|
345
357
|
private extractData;
|
|
346
358
|
private navigateAfterSubmit;
|
|
347
359
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiActionFormModalComponent, never>;
|
|
348
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UiActionFormModalComponent, "forms-action-form-modal", never, { "formId": { "alias": "formId"; "required": false; "isSignal": true; }; "recordId": { "alias": "recordId"; "required": false; "isSignal": true; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "initialValue": { "alias": "initialValue"; "required": false; "isSignal": true; }; "uploadPhoto": { "alias": "uploadPhoto"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "completed": "completed"; }, never, never, true, never>;
|
|
360
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiActionFormModalComponent, "forms-action-form-modal", never, { "formId": { "alias": "formId"; "required": false; "isSignal": true; }; "recordId": { "alias": "recordId"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "initialValue": { "alias": "initialValue"; "required": false; "isSignal": true; }; "uploadPhoto": { "alias": "uploadPhoto"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "completed": "completed"; }, never, never, true, never>;
|
|
349
361
|
}
|
|
350
362
|
|
|
351
363
|
declare class UiFormInputHostComponent implements OnChanges {
|