@ikas/popup-renderer 1.0.5 → 1.0.6
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.
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DashboardComponents, Popup, PopupProductDictionary } from "../models";
|
|
3
|
+
import { PopupRendererSaveCustomerInput } from "popup-renderer/models/modal/step/elements/form";
|
|
3
4
|
import "../style.css";
|
|
4
|
-
export type PopupRendererSaveCustomerInput = {
|
|
5
|
-
firstName: string;
|
|
6
|
-
lastName: string;
|
|
7
|
-
email?: string | null;
|
|
8
|
-
phone?: string | null;
|
|
9
|
-
birthday?: string | null;
|
|
10
|
-
gender?: string | null;
|
|
11
|
-
hasPermission?: boolean | null;
|
|
12
|
-
};
|
|
13
5
|
export type SFProps = {
|
|
14
6
|
onModalClose: () => void;
|
|
15
7
|
onCustomerSave: (customer: PopupRendererSaveCustomerInput) => Promise<void>;
|
|
@@ -19,6 +19,15 @@ export declare enum FormItemTypeEnum {
|
|
|
19
19
|
CHECKBOX_FORM_ITEM = "CHECKBOX_FORM_ITEM",
|
|
20
20
|
CUSTOMER_ATTRIBUTE = "CUSTOMER_ATTRIBUTE"
|
|
21
21
|
}
|
|
22
|
+
export type PopupRendererSaveCustomerInput = {
|
|
23
|
+
firstName: string;
|
|
24
|
+
lastName: string;
|
|
25
|
+
email?: string | null;
|
|
26
|
+
phone?: string | null;
|
|
27
|
+
birthday?: string | null;
|
|
28
|
+
gender?: string | null;
|
|
29
|
+
hasPermission?: boolean | null;
|
|
30
|
+
};
|
|
22
31
|
export type FormItem = CustomerNameFormItem | CustomerSurnameFormItem | CustomerEmailFormItem | CustomerPhoneFormItem | CustomerBirthdayFormItem | CustomerGenderFormItem | CheckboxFormItem | CustomerAttributeFormItem;
|
|
23
32
|
export declare class FormElement extends BaseElement {
|
|
24
33
|
type: PopupElementTypeEnum;
|