@zohodesk/library-platform 1.1.6 → 1.1.7-exp.2
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/es/bc/sdk/ResourceNamesEnum.js +2 -0
- package/es/bc/zform/Properties.js +3 -26
- package/es/bc/zform/Symbol.js +2 -0
- package/es/bc/zlist/Constants.js +3 -1
- package/es/bc/zrecord/Constants.js +1 -0
- package/es/cc/breadcrumb/Constants.js +7 -0
- package/es/cc/breadcrumb/Events.js +14 -0
- package/es/cc/breadcrumb/Properties.js +35 -0
- package/es/cc/breadcrumb/index.js +3 -0
- package/es/cc/fields/field/FormDefaultUIType.js +37 -0
- package/es/cc/fields/index.js +2 -1
- package/es/cc/form/Properties.js +54 -0
- package/es/cc/form-connected/Constants.js +8 -0
- package/es/cc/form-connected/Properties.js +95 -1
- package/es/cc/form-connected/SdkContract.js +159 -0
- package/es/cc/icon-button/Constants.js +7 -0
- package/es/cc/icon-button/Events.js +5 -0
- package/es/cc/icon-button/Properties.js +86 -0
- package/es/cc/icon-button/index.js +3 -0
- package/es/cc/index.js +1 -0
- package/es/cc/section/Properties.js +25 -0
- package/es/cc/table-connected/Properties.js +8 -0
- package/es/cc/table-connected/constants/Events.js +1 -0
- package/es/index.js +6 -1
- package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +5 -1
- package/es/library/dot/components/action-location/usecases/interactors/PropertiesChangeUseCase.js +1 -1
- package/es/library/dot/components/form/adapters/presenter/TransformState.js +70 -3
- package/es/library/dot/components/form/frameworks/ui/DefaultComponentRegister.js +28 -0
- package/es/library/dot/components/form/frameworks/ui/Form.js +2 -0
- package/es/library/dot/components/form/frameworks/ui/FormView.js +47 -26
- package/es/library/dot/components/form/frameworks/ui/css/Form.module.css +8 -4
- package/es/library/dot/components/form/frameworks/ui/sub-components/Sections.js +9 -9
- package/es/library/dot/components/section/frameworks/ui/RenderField.js +19 -0
- package/es/library/dot/components/section/frameworks/ui/Section.js +13 -4
- package/es/library/dot/components/section/frameworks/ui/SectionView.js +7 -28
- package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +72 -40
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +7 -13
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +2 -2
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/Breadcrumb.js +12 -0
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/BreadcrumbView.js +47 -0
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css +19 -0
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/sub-components/BreadcrumbItem.js +58 -0
- package/es/library/dot/legacy-to-new-arch/icon-button/frameworks/ui/IconButton.js +12 -0
- package/es/library/dot/legacy-to-new-arch/icon-button/frameworks/ui/IconButtonView.js +43 -0
- package/es/platform/client-actions/bc/zclient-actions/SdkContract.js +35 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/resources/ClientActionResource.js +105 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/IClientActionResource.js +1 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/input/GetClientActionLocationInputModel.js +1 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/input/GetClientActionUIComponentPropertiesInputModel.js +1 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/input/GetClientActionsInputModel.js +1 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/input/UpdateClientActionUIComponentPropertiesInputModel.js +1 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/GetClientActionLocationUseCase.js +20 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/GetClientActionUIComponentPropertiesUseCase.js +20 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/GetClientActionsUseCase.js +18 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/UpdateClientActionUIComponentPropertiesUseCase.js +32 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientAction.js +12 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientActionManager.js +45 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/UIComponentMapping.js +10 -0
- package/es/platform/client-actions/behaviour/zclient-actions/frameworks/sdk/ClientActionsSDKFactory.js +29 -0
- package/es/platform/client-actions/cc/action-event-mediator/Properties.js +9 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/usecases/PropertiesChangeUseCase.js +1 -1
- package/es/platform/client-actions/components/action-event-mediator/domain/entities/ActionEventMediatorEntity.js +7 -3
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediatorView.js +3 -1
- package/es/platform/client-actions/components/dynamic-component/frameworks/ui/DynamicActionComponentView.js +4 -2
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRenderer.module.css +4 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRendererView.js +5 -2
- package/es/platform/components/form-connected/adapters/resources/SmartFormResources.js +210 -0
- package/es/platform/components/form-connected/application/interfaces/ISmartFormResources.js +1 -0
- package/es/platform/components/form-connected/frameworks/EventHandlersFactory.js +16 -8
- package/es/platform/components/form-connected/frameworks/FormConnectedFactory.js +27 -3
- package/es/platform/components/form-connected/frameworks/FormConnectedView.js +14 -2
- package/es/platform/components/form-connected/frameworks/FormSdkFactory.js +33 -13
- package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +0 -52
- package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +15 -1
- package/es/platform/components/table-connected/frameworks/TableConnectedFactory.js +6 -1
- package/es/platform/data-source/http-template/getClientActions.js +2 -2
- package/es/platform/sdk/application/interfaces/gateways/AbstractResource.js +52 -1
- package/es/platform/sdk/frameworks/Sdk.js +14 -0
- package/es/platform/zform/adapters/presenter/FormTranslator.js +90 -46
- package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +51 -26
- package/es/platform/zform/adapters/presenter/translators/interfaces/ComponentMapping.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/interfaces/FieldContract.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/interfaces/FormTranslatorState.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/interfaces/SectionContract.js +1 -0
- package/es/platform/zform/adapters/presenter/utils/DefaultClientActions.js +59 -0
- package/es/platform/zform/applications/interfaces/input/DeleteFieldUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/GetFieldValueUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/HideFieldUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/HideSectionUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/InsertFieldUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/SetFieldValueUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/SetFieldsValuesUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/ShowFieldUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/ShowSectionUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/SubmitUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/UpdateFieldUseCaseInput.js +1 -0
- package/es/platform/zform/applications/usecases/DeleteFieldUseCase.js +22 -0
- package/es/platform/zform/applications/usecases/GetFieldValueUseCase.js +23 -0
- package/es/platform/zform/applications/usecases/HideFieldUseCase.js +19 -0
- package/es/platform/zform/applications/usecases/HideSectionUseCase.js +19 -0
- package/es/platform/zform/applications/usecases/InitializeUseCase.js +16 -0
- package/es/platform/zform/applications/usecases/InsertFieldUseCase.js +28 -0
- package/es/platform/zform/applications/usecases/SetFieldValueUseCase.js +44 -0
- package/es/platform/zform/applications/usecases/SetFieldsValuesUseCase.js +51 -0
- package/es/platform/zform/applications/usecases/ShowFieldUseCase.js +19 -0
- package/es/platform/zform/applications/usecases/ShowSectionUseCase.js +19 -0
- package/es/platform/zform/applications/usecases/SubmitUseCase.js +29 -0
- package/es/platform/zform/applications/usecases/UpdateFieldUseCase.js +22 -0
- package/es/platform/zform/domain/ZField.js +14 -0
- package/es/platform/zform/domain/ZForm.js +85 -3
- package/es/platform/zform/domain/ZSection.js +6 -0
- package/es/platform/zform/frameworks/layout-rules/calculateLayoutRulesResult.js +1 -1
- package/es/platform/zform/frameworks/layout-rules/runSingleFieldCondition.js +1 -1
- package/es/platform/zform/frameworks/layout-rules/validator.js +0 -1
- package/es/platform/zform/frameworks/ui/EventHandlerFactory.js +37 -15
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +3 -2
- package/es/platform/zlist/applications/usecases/RecordSuccessCallbackUsecase.js +4 -1
- package/es/platform/zlist/domain/entities/List.js +9 -3
- package/es/platform/zrecord/adapters/controllers/CreateRecordController.js +5 -1
- package/es/platform/zrecord/adapters/controllers/SetRecordsController.js +7 -3
- package/es/platform/zrecord/applications/usecases/CreateRecordUseCase.js +5 -3
- package/es/platform/zrecord/applications/usecases/SetRecordsUseCase.js +11 -1
- package/package.json +8 -6
- package/es/library/dot/components/section/adapters/presenter/TransFormState.js +0 -26
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
var ResourceNamesEnum = /*#__PURE__*/function (ResourceNamesEnum) {
|
|
2
2
|
ResourceNamesEnum["SMART_TABLE"] = "smartTable";
|
|
3
|
+
ResourceNamesEnum["SMART_FORM"] = "smartForm";
|
|
4
|
+
ResourceNamesEnum["CLIENT_ACTION"] = "clientAction";
|
|
3
5
|
return ResourceNamesEnum;
|
|
4
6
|
}(ResourceNamesEnum || {});
|
|
5
7
|
|
|
@@ -51,37 +51,14 @@ export default {
|
|
|
51
51
|
},
|
|
52
52
|
servicePrefix: {
|
|
53
53
|
type: 'string'
|
|
54
|
+
},
|
|
55
|
+
additionalData: {
|
|
56
|
+
type: 'object'
|
|
54
57
|
}
|
|
55
58
|
},
|
|
56
59
|
required: ['orgName'],
|
|
57
60
|
additionalProperties: false
|
|
58
61
|
}
|
|
59
62
|
}
|
|
60
|
-
},
|
|
61
|
-
uiMapping: {
|
|
62
|
-
required: false,
|
|
63
|
-
defaultValue: {
|
|
64
|
-
sections: {},
|
|
65
|
-
fields: {}
|
|
66
|
-
},
|
|
67
|
-
typeMetadata: {
|
|
68
|
-
schema: {
|
|
69
|
-
type: 'object',
|
|
70
|
-
properties: {
|
|
71
|
-
fields: {
|
|
72
|
-
type: 'object',
|
|
73
|
-
additionalProperties: {
|
|
74
|
-
type: 'string'
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
sections: {
|
|
78
|
-
type: 'object',
|
|
79
|
-
additionalProperties: {
|
|
80
|
-
type: 'string'
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
63
|
}
|
|
87
64
|
};
|
package/es/bc/zform/Symbol.js
CHANGED
|
@@ -18,8 +18,10 @@ export const ZFORM_FIELD_VALUE_CHANGED = 'ZFORM#FIELD_VALUE_CHANGED';
|
|
|
18
18
|
export const ZFORM_SET_FIELD_ERROR_MESSAGE = 'ZFORM#SET_FIELD_ERROR_MESSAGE';
|
|
19
19
|
export const ZFORM_VALIDATE_FIELD_REQUEST = 'ZFORM#VALIDATE_FIELD_REQUEST';
|
|
20
20
|
export const ZFORM_SUBMIT = 'ZFORM#SUBMIT_REQUEST';
|
|
21
|
+
export const ZFORM_CANCEL = 'ZFORM#CANCEL_REQUEST';
|
|
21
22
|
export const ZFORM_VALIDATION_ERROR = 'ZFORM#VALIDATION_ERROR';
|
|
22
23
|
export const ZFORM_VALIDATION_SUCCESS = 'ZFORM#VALIDATION_SUCCESS';
|
|
23
24
|
export const ZFORM_VALIDATE_SUBMIT_FIELD_HAS_ERROR_MESSAGE = 'ZFORM#VALIDATE_SUBMIT_FIELD_HAS_ERROR_MESSAGE';
|
|
24
25
|
export const ZFORM_SUBMIT_SUCCESS = 'ZFORM#SUBMIT_SUCCESS';
|
|
26
|
+
export const ZFORM_SUBMIT_FAILURE = 'ZFORM#SUBMIT_FAILURE';
|
|
25
27
|
export const ZFORM_ERROR = 'ZFORM#ERROR';
|
package/es/bc/zlist/Constants.js
CHANGED
|
@@ -14,4 +14,6 @@ export const ZLIST_INITIAL_AVAILABLE_FIELDS_FETCH_FAILED = 'ZLIST#INITIAL_AVAILA
|
|
|
14
14
|
export const ZLIST_INITIAL_SELECTED_FIELDS_FETCH_FAILED = 'ZLIST#INITIAL_SELECTED_FIELDS_FETCH_FAILED';
|
|
15
15
|
export const ZLIST_INITIAL_RECORDS_FETCH_FAILED = 'ZLIST#INITIAL_RECORDS_FETCH_FAILED';
|
|
16
16
|
export const ZLIST_INITIAL_CLIENT_ACTIONS_FETCH_FAILED = 'ZLIST#INITIAL_CLIENT_ACTIONS_FETCH_FAILED';
|
|
17
|
-
export const ZLIST_FETCH_MORE_RECORDS_FAILED = 'ZLIST#FETCH_MORE_RECORDS_FAILED';
|
|
17
|
+
export const ZLIST_FETCH_MORE_RECORDS_FAILED = 'ZLIST#FETCH_MORE_RECORDS_FAILED';
|
|
18
|
+
export const ZLIST_RECORD_REORDER_SUCCEEDED = 'ZLIST#RECORD_REORDER_SUCCEEDED';
|
|
19
|
+
export const CLIENT_ACTION_TABLE_LIST_COMPONENT_NAME = 'TableList';
|
|
@@ -14,6 +14,7 @@ export const RECORD_LOCAL_UPDATE = 'RECORD#LOCAL_UPDATE';
|
|
|
14
14
|
export const RECORD_LOCAL_MULTIPLE_DELETE = 'RECORD#LOCAL_MULTIPLE_DELETE';
|
|
15
15
|
export const APPEND_RECORDS = 'RECORD#APPEND_RECORDS';
|
|
16
16
|
export const SET_RECORDS = 'RECORD#SET_RECORDS';
|
|
17
|
+
export const SET_RECORDS_SUCCESS = 'RECORD#SET_RECORDS_SUCCESS';
|
|
17
18
|
export const CREATE_RECORD = 'RECORD#CREATE_RECORD';
|
|
18
19
|
export class RecordApiActionName {}
|
|
19
20
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
|
|
3
|
+
class BreadcrumbConstants {}
|
|
4
|
+
|
|
5
|
+
_defineProperty(BreadcrumbConstants, "BREADCRUMB_ITEM_CLICKED", 'BREADCRUMB#ITEM_CLICKED');
|
|
6
|
+
|
|
7
|
+
export default BreadcrumbConstants;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
items: {
|
|
3
|
+
defaultValue: [],
|
|
4
|
+
required: true,
|
|
5
|
+
typeMetadata: {
|
|
6
|
+
schema: {
|
|
7
|
+
type: 'array',
|
|
8
|
+
items: {
|
|
9
|
+
type: 'object',
|
|
10
|
+
properties: {
|
|
11
|
+
id: {
|
|
12
|
+
type: 'string'
|
|
13
|
+
},
|
|
14
|
+
text: {
|
|
15
|
+
type: 'string'
|
|
16
|
+
},
|
|
17
|
+
isLink: {
|
|
18
|
+
type: 'boolean'
|
|
19
|
+
},
|
|
20
|
+
iconName: {
|
|
21
|
+
type: 'string'
|
|
22
|
+
},
|
|
23
|
+
iconSize: {
|
|
24
|
+
type: 'string'
|
|
25
|
+
},
|
|
26
|
+
isActive: {
|
|
27
|
+
type: 'boolean'
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
required: ['id', 'text']
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export const DefaultFormSectionUIType = 'DefaultFormSection';
|
|
2
|
+
export const fieldTypeToUIType = {
|
|
3
|
+
Text: 'TextBox',
|
|
4
|
+
Textarea: 'TextArea',
|
|
5
|
+
Boolean: 'Checkbox',
|
|
6
|
+
URL: 'Url',
|
|
7
|
+
Picklist: 'PickList',
|
|
8
|
+
AutoNumber: 'TextBox',
|
|
9
|
+
Number: 'Number',
|
|
10
|
+
Decimal: 'Decimal',
|
|
11
|
+
Email: 'Email',
|
|
12
|
+
Phone: 'Phone',
|
|
13
|
+
Currency: 'Currency',
|
|
14
|
+
Percent: 'Percentage',
|
|
15
|
+
Date: 'Date',
|
|
16
|
+
DateTime: 'DateTime',
|
|
17
|
+
Multiselect: 'MultiSelect',
|
|
18
|
+
LookUp: 'TextBox'
|
|
19
|
+
};
|
|
20
|
+
export const ePHIFields = {
|
|
21
|
+
Text: true,
|
|
22
|
+
Textarea: true,
|
|
23
|
+
URL: true,
|
|
24
|
+
Picklist: true,
|
|
25
|
+
Number: true,
|
|
26
|
+
Decimal: true,
|
|
27
|
+
Email: false,
|
|
28
|
+
Phone: true,
|
|
29
|
+
Currency: false,
|
|
30
|
+
Percent: true,
|
|
31
|
+
AutoNumber: false,
|
|
32
|
+
Date: false,
|
|
33
|
+
DateTime: false,
|
|
34
|
+
Multiselect: false,
|
|
35
|
+
Boolean: false,
|
|
36
|
+
LookUp: false
|
|
37
|
+
};
|
package/es/cc/fields/index.js
CHANGED
|
@@ -17,4 +17,5 @@ export { default as ColouredPickListFieldProperties } from "./coloured-pick-list
|
|
|
17
17
|
export { default as TextFieldProperties } from "./text/Properties";
|
|
18
18
|
export { default as UrlFieldProperties } from "./url/Properties";
|
|
19
19
|
export { default as FormulaFieldProperties } from "./formula/Properties";
|
|
20
|
-
export { default as FieldTypes } from "./field/Types";
|
|
20
|
+
export { default as FieldTypes } from "./field/Types";
|
|
21
|
+
export { default as FieldConstants } from "./field/Constants";
|
package/es/cc/form/Properties.js
CHANGED
|
@@ -1,6 +1,60 @@
|
|
|
1
1
|
import PropertiesConverter from "../component/properties/PropertiesConverter";
|
|
2
2
|
import SectionProperties from "../section/Properties";
|
|
3
3
|
export default {
|
|
4
|
+
isHeaderEnabled: {
|
|
5
|
+
required: false,
|
|
6
|
+
defaultValue: true,
|
|
7
|
+
typeMetadata: {
|
|
8
|
+
schema: {
|
|
9
|
+
type: 'boolean'
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
isFooterEnabled: {
|
|
14
|
+
required: false,
|
|
15
|
+
defaultValue: true,
|
|
16
|
+
typeMetadata: {
|
|
17
|
+
schema: {
|
|
18
|
+
type: 'boolean'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
headerLeftActions: {
|
|
23
|
+
required: false,
|
|
24
|
+
defaultValue: [],
|
|
25
|
+
typeMetadata: {
|
|
26
|
+
schema: {
|
|
27
|
+
type: 'array'
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
headerRightActions: {
|
|
32
|
+
required: false,
|
|
33
|
+
defaultValue: [],
|
|
34
|
+
typeMetadata: {
|
|
35
|
+
schema: {
|
|
36
|
+
type: 'array'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
footerLeftActions: {
|
|
41
|
+
required: false,
|
|
42
|
+
defaultValue: [],
|
|
43
|
+
typeMetadata: {
|
|
44
|
+
schema: {
|
|
45
|
+
type: 'array'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
footerRightActions: {
|
|
50
|
+
required: false,
|
|
51
|
+
defaultValue: [],
|
|
52
|
+
typeMetadata: {
|
|
53
|
+
schema: {
|
|
54
|
+
type: 'array'
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
4
58
|
sections: {
|
|
5
59
|
required: false,
|
|
6
60
|
typeMetadata: {
|
|
@@ -10,4 +10,12 @@ _defineProperty(SmartFormConstants, "SMART_FORM_FIELD_VALUE_CHANGED", 'SMART_FOR
|
|
|
10
10
|
|
|
11
11
|
_defineProperty(SmartFormConstants, "SMART_FORM_SUBMIT", 'SMART_FORM#SUBMIT');
|
|
12
12
|
|
|
13
|
+
_defineProperty(SmartFormConstants, "SMART_FORM_SUBMIT_CLICKED", 'SMART_FORM#SUBMIT_CLICKED');
|
|
14
|
+
|
|
15
|
+
_defineProperty(SmartFormConstants, "SMART_FORM_CANCEL_CLICKED", 'SMART_FORM#CANCEL_CLICKED');
|
|
16
|
+
|
|
17
|
+
_defineProperty(SmartFormConstants, "SMART_FORM_SUBMIT_SUCCESS", 'SMART_FORM#SUBMIT_SUCCESS');
|
|
18
|
+
|
|
19
|
+
_defineProperty(SmartFormConstants, "SMART_FORM_SUBMIT_FAILURE", 'SMART_FORM#SUBMIT_FAILED');
|
|
20
|
+
|
|
13
21
|
export default SmartFormConstants;
|
|
@@ -1 +1,95 @@
|
|
|
1
|
-
export default {
|
|
1
|
+
export default {
|
|
2
|
+
isHeaderEnabled: {
|
|
3
|
+
required: false,
|
|
4
|
+
defaultValue: true,
|
|
5
|
+
typeMetadata: {
|
|
6
|
+
schema: {
|
|
7
|
+
type: 'boolean'
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
isFooterEnabled: {
|
|
12
|
+
required: false,
|
|
13
|
+
defaultValue: true,
|
|
14
|
+
typeMetadata: {
|
|
15
|
+
schema: {
|
|
16
|
+
type: 'boolean'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
submitConfig: {
|
|
21
|
+
required: false,
|
|
22
|
+
typeMetadata: {
|
|
23
|
+
schema: {
|
|
24
|
+
type: 'object',
|
|
25
|
+
properties: {
|
|
26
|
+
text: {
|
|
27
|
+
type: 'string'
|
|
28
|
+
},
|
|
29
|
+
isEnabled: {
|
|
30
|
+
type: 'boolean'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
required: ['text', 'isEnabled']
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
cancelConfig: {
|
|
38
|
+
required: false,
|
|
39
|
+
typeMetadata: {
|
|
40
|
+
schema: {
|
|
41
|
+
type: 'object',
|
|
42
|
+
properties: {
|
|
43
|
+
text: {
|
|
44
|
+
type: 'string'
|
|
45
|
+
},
|
|
46
|
+
isEnabled: {
|
|
47
|
+
type: 'boolean'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
required: ['text', 'isEnabled']
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
componentMapping: {
|
|
55
|
+
required: false,
|
|
56
|
+
defaultValue: {
|
|
57
|
+
sections: {},
|
|
58
|
+
loadingState: ''
|
|
59
|
+
},
|
|
60
|
+
typeMetadata: {
|
|
61
|
+
schema: {
|
|
62
|
+
type: 'object',
|
|
63
|
+
properties: {
|
|
64
|
+
sections: {
|
|
65
|
+
type: 'object',
|
|
66
|
+
additionalProperties: {
|
|
67
|
+
type: 'object',
|
|
68
|
+
properties: {
|
|
69
|
+
UIComponentName: {
|
|
70
|
+
type: 'string'
|
|
71
|
+
} // translator: { type: 'function' } // Function types are not representable in JSON Schema
|
|
72
|
+
|
|
73
|
+
},
|
|
74
|
+
required: ['UIComponentName']
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
// fields: {
|
|
78
|
+
// type: 'object',
|
|
79
|
+
// additionalProperties: {
|
|
80
|
+
// type: 'object',
|
|
81
|
+
// properties: {
|
|
82
|
+
// UIComponentName: { type: 'string' },
|
|
83
|
+
// translator: { type: 'object' } // Function types are not representable in JSON Schema
|
|
84
|
+
// },
|
|
85
|
+
// required: ['UIComponentName']
|
|
86
|
+
// }
|
|
87
|
+
// },
|
|
88
|
+
loadingState: {
|
|
89
|
+
type: 'string'
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
export const SdkContracts = {
|
|
2
|
+
hideSectionInputMeta: {
|
|
3
|
+
type: 'object',
|
|
4
|
+
properties: {
|
|
5
|
+
sectionName: {
|
|
6
|
+
type: 'string',
|
|
7
|
+
minLength: 1
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
required: ['sectionName']
|
|
11
|
+
},
|
|
12
|
+
showSectionInputMeta: {
|
|
13
|
+
type: 'object',
|
|
14
|
+
properties: {
|
|
15
|
+
sectionName: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
minLength: 1
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
required: ['sectionName']
|
|
21
|
+
},
|
|
22
|
+
hideFieldInputMeta: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
properties: {
|
|
25
|
+
fieldName: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
minLength: 1
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
required: ['fieldName']
|
|
31
|
+
},
|
|
32
|
+
showFieldInputMeta: {
|
|
33
|
+
type: 'object',
|
|
34
|
+
properties: {
|
|
35
|
+
fieldName: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
minLength: 1
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
required: ['fieldName']
|
|
41
|
+
},
|
|
42
|
+
setFieldValueInputMeta: {
|
|
43
|
+
type: 'object',
|
|
44
|
+
properties: {
|
|
45
|
+
fieldName: {
|
|
46
|
+
type: 'string',
|
|
47
|
+
minLength: 1
|
|
48
|
+
},
|
|
49
|
+
newValue: {}
|
|
50
|
+
},
|
|
51
|
+
required: ['fieldName', 'newValue']
|
|
52
|
+
},
|
|
53
|
+
setFieldsValueInputMeta: {
|
|
54
|
+
type: 'object',
|
|
55
|
+
properties: {
|
|
56
|
+
fieldsValuesObj: {
|
|
57
|
+
type: 'object'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
required: ['fieldsValuesObj']
|
|
61
|
+
},
|
|
62
|
+
insertFieldInputMeta: {
|
|
63
|
+
type: 'object',
|
|
64
|
+
properties: {
|
|
65
|
+
sectionName: {
|
|
66
|
+
type: 'string',
|
|
67
|
+
minLength: 1
|
|
68
|
+
},
|
|
69
|
+
fieldsObj: {
|
|
70
|
+
type: 'object'
|
|
71
|
+
},
|
|
72
|
+
fieldIndex: {
|
|
73
|
+
type: 'number'
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
required: ['sectionName', 'fieldsObj', 'fieldIndex']
|
|
77
|
+
},
|
|
78
|
+
deleteFieldInputMeta: {
|
|
79
|
+
type: 'object',
|
|
80
|
+
properties: {
|
|
81
|
+
fieldName: {
|
|
82
|
+
type: 'string',
|
|
83
|
+
minLength: 1
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
required: ['fieldName']
|
|
87
|
+
},
|
|
88
|
+
updateFieldInputMeta: {
|
|
89
|
+
properties: {
|
|
90
|
+
fieldName: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
minLength: 1
|
|
93
|
+
},
|
|
94
|
+
fieldProperties: {
|
|
95
|
+
type: 'object',
|
|
96
|
+
properties: {
|
|
97
|
+
displayLabel: {
|
|
98
|
+
type: 'string'
|
|
99
|
+
},
|
|
100
|
+
i18NLabel: {
|
|
101
|
+
type: 'string'
|
|
102
|
+
},
|
|
103
|
+
isReadOnly: {
|
|
104
|
+
type: 'boolean'
|
|
105
|
+
},
|
|
106
|
+
maxLength: {
|
|
107
|
+
type: 'number'
|
|
108
|
+
},
|
|
109
|
+
isMandatory: {
|
|
110
|
+
type: 'boolean'
|
|
111
|
+
},
|
|
112
|
+
value: {},
|
|
113
|
+
// You can specify a more detailed type if known
|
|
114
|
+
errorMessage: {
|
|
115
|
+
type: 'string'
|
|
116
|
+
},
|
|
117
|
+
isVisible: {
|
|
118
|
+
type: 'boolean'
|
|
119
|
+
},
|
|
120
|
+
pickListValues: {
|
|
121
|
+
type: 'array',
|
|
122
|
+
items: {
|
|
123
|
+
type: 'object',
|
|
124
|
+
properties: {
|
|
125
|
+
value: {
|
|
126
|
+
type: 'string'
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
defaultPickListValues: {
|
|
132
|
+
type: 'array',
|
|
133
|
+
items: {
|
|
134
|
+
type: 'object',
|
|
135
|
+
properties: {
|
|
136
|
+
value: {
|
|
137
|
+
type: 'string'
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
toolTip: {
|
|
143
|
+
type: 'string'
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
getFieldValueInputMeta: {
|
|
150
|
+
type: 'object',
|
|
151
|
+
properties: {
|
|
152
|
+
fieldName: {
|
|
153
|
+
type: 'string',
|
|
154
|
+
minLength: 1
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
required: ['fieldName']
|
|
158
|
+
}
|
|
159
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
|
|
3
|
+
class IconButtonConstants {}
|
|
4
|
+
|
|
5
|
+
_defineProperty(IconButtonConstants, "ICON_BUTTON_CLICKED", 'ICON_BUTTON#CLICKED');
|
|
6
|
+
|
|
7
|
+
export default IconButtonConstants;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
palette: {
|
|
3
|
+
defaultValue: 'default',
|
|
4
|
+
required: false,
|
|
5
|
+
typeMetadata: {
|
|
6
|
+
schema: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
enum: ['primary', 'primaryFilled', 'default']
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
iconSize: {
|
|
13
|
+
defaultValue: '14',
|
|
14
|
+
required: false,
|
|
15
|
+
typeMetadata: {
|
|
16
|
+
schema: {
|
|
17
|
+
type: 'string'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
size: {
|
|
22
|
+
defaultValue: 'large',
|
|
23
|
+
required: false,
|
|
24
|
+
typeMetadata: {
|
|
25
|
+
schema: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
enum: ['xsmall', 'small', 'medium', 'large', 'xlarge']
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
iconName: {
|
|
32
|
+
defaultValue: '',
|
|
33
|
+
required: false,
|
|
34
|
+
typeMetadata: {
|
|
35
|
+
schema: {
|
|
36
|
+
type: 'string'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
isActive: {
|
|
41
|
+
defaultValue: false,
|
|
42
|
+
required: false,
|
|
43
|
+
typeMetadata: {
|
|
44
|
+
schema: {
|
|
45
|
+
type: 'boolean'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
isDisabled: {
|
|
50
|
+
defaultValue: false,
|
|
51
|
+
required: false,
|
|
52
|
+
typeMetadata: {
|
|
53
|
+
schema: {
|
|
54
|
+
type: 'boolean'
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
hoverType: {
|
|
59
|
+
defaultValue: 'default',
|
|
60
|
+
required: false,
|
|
61
|
+
typeMetadata: {
|
|
62
|
+
schema: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
enum: ['default', 'border', 'bg']
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
title: {
|
|
69
|
+
defaultValue: '',
|
|
70
|
+
required: false,
|
|
71
|
+
typeMetadata: {
|
|
72
|
+
schema: {
|
|
73
|
+
type: 'string'
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
isBold: {
|
|
78
|
+
defaultValue: false,
|
|
79
|
+
required: false,
|
|
80
|
+
typeMetadata: {
|
|
81
|
+
schema: {
|
|
82
|
+
type: 'boolean'
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
package/es/cc/index.js
CHANGED
|
@@ -33,6 +33,14 @@ export default {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
+
name: {
|
|
37
|
+
required: false,
|
|
38
|
+
typeMetadata: {
|
|
39
|
+
schema: {
|
|
40
|
+
type: 'string'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
36
44
|
description: {
|
|
37
45
|
required: false,
|
|
38
46
|
typeMetadata: {
|
|
@@ -42,6 +50,14 @@ export default {
|
|
|
42
50
|
}
|
|
43
51
|
}
|
|
44
52
|
},
|
|
53
|
+
isCollapsed: {
|
|
54
|
+
required: false,
|
|
55
|
+
typeMetadata: {
|
|
56
|
+
schema: {
|
|
57
|
+
type: 'boolean'
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
45
61
|
isVisible: {
|
|
46
62
|
required: false,
|
|
47
63
|
typeMetadata: {
|
|
@@ -58,6 +74,15 @@ export default {
|
|
|
58
74
|
}
|
|
59
75
|
}
|
|
60
76
|
},
|
|
77
|
+
additionalDetails: {
|
|
78
|
+
required: false,
|
|
79
|
+
defaultValue: {},
|
|
80
|
+
typeMetadata: {
|
|
81
|
+
schema: {
|
|
82
|
+
type: 'object'
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
61
86
|
fields: {
|
|
62
87
|
required: false,
|
|
63
88
|
typeMetadata: {
|