@zohodesk/library-platform 1.1.10-exp.1 → 1.1.10-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/app-context/Properties.js +12 -2
- package/es/bc/sdk/ResourceNamesEnum.js +1 -0
- package/es/bc/zform/Constants.js +11 -1
- package/es/bc/zform/Properties.js +29 -33
- package/es/bc/zform/Symbol.js +1 -3
- package/es/bc/zlist/Properties.js +0 -51
- package/es/bc/zrecord/Constants.js +1 -0
- package/es/cc/fields/currency/Properties.js +2 -1
- package/es/cc/fields/field/Properties.js +14 -8
- package/es/cc/fields/lookup/Properties.js +34 -1
- package/es/cc/fields/text/Properties.js +0 -9
- package/es/cc/form/Properties.js +8 -0
- package/es/cc/form-connected/ExternalConstants.js +3 -0
- package/es/cc/form-connected/Properties.js +19 -11
- package/es/cc/table-connected/SdkContract.js +14 -0
- package/es/cc/table-connected/constants/Events.js +2 -1
- package/es/cc/table-list/row/Properties.js +8 -0
- package/es/index.js +13 -3
- package/es/library/analytics/Analytics.js +36 -0
- package/es/library/analytics/AnalyticsContract.js +13 -0
- package/es/library/analytics/index.js +2 -0
- package/es/library/custom-component/adapters/controllers/Controller.js +9 -0
- package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +4 -0
- package/es/library/custom-component/adapters/gateways/service/Service.js +2 -0
- package/es/library/custom-component/applications/entities-factory/ComponentFactory.js +12 -9
- package/es/library/custom-component/applications/usecases/DispatchUseCase.js +28 -5
- package/es/library/custom-component/applications/usecases/InitializeUseCase.js +5 -4
- package/es/library/custom-component/applications/usecases/MountUseCase.js +10 -6
- package/es/library/custom-component/applications/usecases/UnmountUseCase.js +6 -5
- package/es/library/custom-component/applications/usecases/UpdatePropertyUseCase.js +23 -18
- package/es/library/custom-component/applications/usecases/UpdateStateUseCase.js +4 -3
- package/es/library/custom-component/domain/entities/Behaviour.js +4 -0
- package/es/library/custom-component/domain/entities/Component.js +89 -83
- package/es/library/custom-component/domain/entities/Properties.js +10 -137
- package/es/library/custom-component/domain/entities/Property.js +29 -0
- package/es/library/custom-component/frameworks/json-schema-validator/Validator.js +65 -28
- package/es/library/custom-component/frameworks/ui/CreateCustomComponent.js +26 -13
- package/es/library/custom-component/frameworks/ui/DependencyFactory.js +1 -2
- package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +2 -1
- package/es/library/dot/components/form/adapters/presenter/TransformState.js +3 -1
- package/es/library/dot/components/form/frameworks/ui/DefaultComponentRegister.js +10 -2
- package/es/library/dot/components/form/frameworks/ui/Form.js +2 -0
- package/es/library/dot/components/form/frameworks/ui/FormView.js +8 -4
- package/es/library/dot/components/form/frameworks/ui/css/Form.module.css +13 -13
- package/es/library/dot/components/form/frameworks/ui/sub-components/Footer.js +7 -4
- package/es/library/dot/components/form/frameworks/ui/sub-components/Header.js +7 -4
- package/es/library/dot/components/form-fields/currency/frameworks/ui/Currency.js +3 -3
- package/es/library/dot/components/form-fields/field/css/FieldItem.module.css +2 -2
- package/es/library/dot/components/form-fields/lookup/frameworks/ui/Lookup.js +1 -1
- package/es/library/dot/components/section/frameworks/ui/SectionView.js +12 -4
- package/es/library/dot/components/section/frameworks/ui/css/Section.module.css +3 -0
- package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +14 -7
- package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +15 -15
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/ErrorState.js +4 -7
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +9 -6
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.js +6 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +6 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/Headers.js +4 -2
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +6 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Columns.js +4 -2
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +14 -7
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +5 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +5 -3
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowSelection.js +32 -7
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css +4 -4
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/sub-components/BreadcrumbItem.js +1 -1
- package/es/library/dot/legacy-to-new-arch/button/frameworks/ui/ButtonView.js +2 -2
- package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/DateView.js +4 -4
- package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/css/DateView.module.css +1 -1
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/LabelView.js +2 -2
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/css/Label.module.css +4 -4
- package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/MultiSelectView.js +2 -2
- package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css +9 -9
- package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +2 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/index.js +1 -0
- package/es/library/dot/legacy-to-new-arch/text/frameworks/ui/TextView.js +1 -1
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +2 -2
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/css/TextAreaView.module.css +9 -9
- package/es/library/dot/legacy-to-new-arch/textbox/frameworks/ui/TextBoxView.js +2 -2
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/SetClientActionsUseCase.js +6 -1
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientActionManager.js +58 -19
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientActions.js +8 -8
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActionFetchResponse.js +0 -0
- package/es/platform/client-actions/cc/action-event-mediator/Properties.js +75 -3
- package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/MountController.js +1 -1
- package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/PropertiesChangeController.js +2 -2
- package/es/platform/client-actions/components/action-event-mediator/adapters/gateway/Repository.js +2 -2
- package/es/platform/client-actions/components/action-event-mediator/applications/usecases/InitializeUseCase.js +15 -1
- package/es/platform/client-actions/components/action-event-mediator/applications/usecases/PropertiesChangeUseCase.js +3 -3
- package/es/platform/client-actions/components/action-event-mediator/domain/entities/ActionEventMediatorEntity.js +41 -24
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator.js +3 -1
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediatorView.js +31 -14
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +2 -48
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/EventHandlersFactory.js +3 -11
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer.js +12 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRendererView.js +42 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/MoreActions/MoreActionsRenderer.js +10 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/MoreActions/MoreActionsRendererView.js +79 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/{RowActionsRenderer.js → RowActions/RowActionsRenderer.js} +3 -3
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.module.css +19 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRendererView.js +37 -0
- package/es/platform/client-actions/translators/client-actions-translator/index.js +14 -2
- package/es/platform/client-actions/translators/condition-resolver/index.js +6 -1
- package/es/platform/client-scripts/bc/zclient-scripts-execution/Constants.js +11 -0
- package/es/platform/client-scripts/bc/zclient-scripts-execution/EventHandlers.js +1 -0
- package/es/platform/client-scripts/bc/zclient-scripts-fetch/Constants.js +11 -0
- package/es/platform/client-scripts/bc/zclient-scripts-fetch/EventHandlers.js +1 -0
- package/es/platform/{app-context-behaviour → client-scripts/behaviour/zclient-scripts-execution}/adapters/controllers/AbstractController.js +2 -1
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/adapters/controllers/ClientScriptExecutionController.js +10 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/adapters/controllers/SetClientScriptsMappingController.js +10 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/adapters/gateways/Repository.js +24 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/adapters/gateways/Service.js +9 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/adapters/presenters/Presenter.js +21 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/applications/interfaces/gateways/IService.js +0 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/applications/usecases/AbstractUseCase.js +15 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/applications/usecases/ExecuteClientScriptsUseCase.js +23 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/applications/usecases/SetClientScriptsMappingUseCase.js +16 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/domain/entities/ClientScriptExecutor.js +142 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/domain/entities/types/ClientScriptExectionTypeDefintions.js +7 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/frameworks/ClientScriptsExecutionBehaviourFactory.js +12 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/frameworks/ClientScriptsExecutionHandlersFactory.js +30 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/frameworks/ClientScriptsUtils.js +25 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/AbstractController.js +8 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/FetchClientScriptsController.js +27 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/FetchClientScriptsFailureController.js +28 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/FetchClientScriptsNoContentController.js +23 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/FetchClientScriptsStopController.js +21 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/FetchClientScriptsSuccessController.js +28 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/MountController.js +22 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/SetClientScriptsController.js +24 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/gateways/Repository.js +22 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/gateways/Service.js +19 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/presenters/Presenter.js +16 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/entities-factory/ClientScriptsFactory.js +11 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/entities-factory/ClientScriptsManagerFactory.js +10 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/gateways/IService.js +0 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/AbstractUseCase.js +17 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/FetchClientScriptUseCase.js +33 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/FetchClientScriptsFailureUseCase.js +22 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/FetchClientScriptsNoContentUseCase.js +27 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/FetchClientScriptsStopUseCase.js +25 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/FetchClientScriptsSuccessUseCase.js +22 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/InitializeUseCase.js +17 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/SetClientScriptsUseCase.js +21 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/ClientScript.js +24 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/ClientScripts.js +41 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/GetClientScriptsStrategy.js +44 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/ClientScriptEventMappingState.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/ClientScriptModel.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/ClientScriptsModel.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/IClientScript.js +0 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/IClientScripts.js +0 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/IEvent.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/frameworks/ClientScriptsBehaviourFactory.js +12 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/frameworks/ClientScriptsHandlersFactory.js +47 -0
- package/es/platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema.js +15 -0
- package/es/platform/components/app/adapters/resources/AppResource.js +13 -3
- package/es/platform/components/form-connected/frameworks/FormConnectedFactory.js +7 -1
- package/es/platform/components/form-connected/frameworks/FormConnectedView.js +4 -2
- package/es/platform/components/table-connected/adapters/controllers/ColumnChooserUpdateController.js +7 -1
- package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +50 -0
- package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +216 -2
- package/es/platform/components/table-connected/frameworks/ListSdkFactory.js +4 -2
- package/es/platform/components/table-connected/frameworks/TableConnectedFactory.js +6 -2
- package/es/platform/data-source/http-template/getClientScripts.js +23 -0
- package/es/platform/data-source/http-template/updateSelectedFields.js +1 -1
- package/es/platform/data-source/index.js +14 -11
- package/es/platform/data-source/utils/validation-rules/TransFormValidationRules.js +1 -0
- package/es/platform/sdk/frameworks/Sdk.js +1 -1
- package/es/platform/zdata-source/domain/entities/APITemplate.js +2 -1
- package/es/platform/zfield/domain/entities/fields-manager/FieldsManager.js +6 -1
- package/es/platform/zform/adapters/controllers/IntializeController.js +4 -2
- package/es/platform/zform/adapters/controllers/MyLayoutSuccessController.js +4 -2
- package/es/platform/zform/adapters/controllers/SubmitValidationCompletedController.js +5 -1
- package/es/platform/zform/adapters/gateway/FormRepository.js +4 -2
- package/es/platform/zform/adapters/gateway/Service.js +2 -0
- package/es/platform/zform/adapters/presenter/FormTranslator.js +21 -15
- package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +5 -3
- package/es/platform/zform/applications/usecases/InitializeUseCase.js +54 -26
- package/es/platform/zform/applications/usecases/MyFormSuccessUseCase.js +7 -7
- package/es/platform/zform/applications/usecases/MyLayoutSuccessUseCase.js +60 -36
- package/es/platform/zform/applications/usecases/SubmitValidationCompletedUseCase.js +12 -8
- package/es/platform/zform/domain/ZForm.js +65 -0
- package/es/platform/zform/frameworks/ui/EventHandlerFactory.js +11 -2
- package/es/platform/zhttp/adapters/controllers/FetchController.js +5 -1
- package/es/platform/zlist/adapters/gateways/Repository.js +4 -2
- package/es/platform/zlist/adapters/presenters/SelectionTranslator.js +6 -3
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +15 -6
- package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +30 -19
- package/es/platform/zlist/adapters/presenters/translators/Header.js +5 -6
- package/es/platform/zlist/adapters/presenters/translators/HeadersTranslator.js +4 -2
- package/es/platform/zlist/adapters/presenters/translators/Row.js +5 -3
- package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/utils/DefaultClientActions.js +1 -1
- package/es/platform/zlist/domain/entities/List.js +17 -2
- package/package.json +3 -3
- package/es/cc/form-connected/Constants.js +0 -12
- package/es/library/custom-component/applications/usecases/MountUseCase copy.js +0 -28
- package/es/platform/app-context-behaviour/adapters/controllers/InitializeController.js +0 -19
- package/es/platform/app-context-behaviour/adapters/gateways/Service.js +0 -7
- package/es/platform/app-context-behaviour/adapters/presenters/Presenter.js +0 -18
- package/es/platform/app-context-behaviour/adapters/resources/AppResource.js +0 -25
- package/es/platform/app-context-behaviour/applications/AbstractUseCase.js +0 -6
- package/es/platform/app-context-behaviour/applications/usecases/InitializeUseCase.js +0 -15
- package/es/platform/app-context-behaviour/frameworks/EventHandlerFactory.js +0 -25
- package/es/platform/client-actions/cc/dynamic-action-component/Properties.js +0 -51
- package/es/platform/client-actions/components/dynamic-component/frameworks/ui/DynamicActionComponent.js +0 -9
- package/es/platform/client-actions/components/dynamic-component/frameworks/ui/DynamicActionComponentView.js +0 -38
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRenderer.module.css +0 -19
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRendererView.js +0 -33
- package/es/platform/components/form-connected/frameworks/FallbackView.js +0 -23
- package/es/platform/components/form-connected/frameworks/FormFallbackView.js +0 -23
- package/es/platform/data-source/http-template/fetchDependencyMappings.js +0 -18
- package/es/platform/data-source/http-template/fetchLayoutRules.js +0 -29
- package/es/platform/data-source/http-template/fetchMyForm.js +0 -19
- package/es/platform/data-source/http-template/fetchMyFormLayout.js +0 -43
- package/es/platform/data-source/http-template/fetchValidationRules.js +0 -30
- package/es/platform/zlist/adapters/presenters/translators/ColumnAlignmentTranslator.js +0 -11
- /package/es/platform/{app-context-behaviour/applications/interfaces/UsecaseDependencies.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionResponse.js} +0 -0
- /package/es/platform/{app-context-behaviour/applications/interfaces/gateways/IService.js → client-scripts/behaviour/zclient-scripts-execution/applications/interfaces/InputDependencies.js} +0 -0
- /package/es/platform/{app-context-behaviour/applications/interfaces/input/InitializeUseCaseInputModel.js → client-scripts/behaviour/zclient-scripts-execution/applications/interfaces/gateways/IRepository.js} +0 -0
- /package/es/platform/{app-context-behaviour → client-scripts/behaviour/zclient-scripts-execution}/applications/interfaces/output/IPresenter.js +0 -0
- /package/es/platform/{app-context-behaviour/applications/interfaces/output/BehaviourState.js → client-scripts/behaviour/zclient-scripts-execution/domain/entities/State.js} +0 -0
- /package/es/platform/{app-context-behaviour/applications/interfaces/resources/ApiHeaderContract.js → client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/InputDependencies.js} +0 -0
- /package/es/platform/{app-context-behaviour/applications/interfaces/resources/ContextContract.js → client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/gateways/IRepository.js} +0 -0
- /package/es/platform/{app-context-behaviour/applications/interfaces/resources/IAppResource.js → client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/output/IPresenter.js} +0 -0
- /package/es/platform/{client-actions/components/dynamic-component/domain/entities/interfaces/IState.js → client-scripts/behaviour/zclient-scripts-fetch/domain/entities/State.js} +0 -0
|
@@ -13,6 +13,14 @@ export default {
|
|
|
13
13
|
type: 'string'
|
|
14
14
|
},
|
|
15
15
|
// zlist, zform
|
|
16
|
+
currencyLocale: {
|
|
17
|
+
type: 'string'
|
|
18
|
+
},
|
|
19
|
+
// zlist, zform
|
|
20
|
+
currencySymbol: {
|
|
21
|
+
type: 'string'
|
|
22
|
+
},
|
|
23
|
+
// zlist, zform
|
|
16
24
|
servicePrefix: {
|
|
17
25
|
type: 'string'
|
|
18
26
|
},
|
|
@@ -29,9 +37,11 @@ export default {
|
|
|
29
37
|
hasRecycleBin: {
|
|
30
38
|
type: 'boolean'
|
|
31
39
|
},
|
|
40
|
+
// zlist (delete record)
|
|
32
41
|
nameField: {
|
|
33
42
|
type: 'string'
|
|
34
|
-
}
|
|
43
|
+
} // zlist, column chooser
|
|
44
|
+
|
|
35
45
|
} // required: ['apiKey', 'nameField']
|
|
36
46
|
// NOTE: making required should handled inside AppContextBehaviourFactory in future if needed
|
|
37
47
|
|
|
@@ -47,7 +57,7 @@ export default {
|
|
|
47
57
|
// zlist
|
|
48
58
|
additionalData: {
|
|
49
59
|
type: 'object'
|
|
50
|
-
} // zform
|
|
60
|
+
} // zform (for now as props.context.additionalData for custom UI)
|
|
51
61
|
|
|
52
62
|
},
|
|
53
63
|
// required: ['orgName'],
|
package/es/bc/zform/Constants.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
export * from "./Symbol";
|
|
1
|
+
export * from "./Symbol";
|
|
2
|
+
export let ZFormApiActionName = /*#__PURE__*/function (ZFormApiActionName) {
|
|
3
|
+
ZFormApiActionName["getMyLayouts"] = "getMyLayouts";
|
|
4
|
+
ZFormApiActionName["getMyForm"] = "getMyForm";
|
|
5
|
+
ZFormApiActionName["getValidationRules"] = "getValidationRules";
|
|
6
|
+
ZFormApiActionName["getLayoutRules"] = "getLayoutRules";
|
|
7
|
+
ZFormApiActionName["createRecord"] = "createRecord";
|
|
8
|
+
ZFormApiActionName["fetchLookupFields"] = "fetchLookupFields";
|
|
9
|
+
ZFormApiActionName["getDependencyMappings"] = "getDependencyMappings";
|
|
10
|
+
return ZFormApiActionName;
|
|
11
|
+
}({});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
moduleName: {
|
|
3
3
|
// NOTE: this is not required in Non Module cases
|
|
4
|
-
required:
|
|
5
|
-
defaultValue: '',
|
|
4
|
+
required: true,
|
|
5
|
+
// defaultValue: '',
|
|
6
6
|
typeMetadata: {
|
|
7
7
|
schema: {
|
|
8
8
|
type: 'string'
|
|
@@ -18,7 +18,7 @@ export default {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
disableGetClientActions: {
|
|
22
22
|
required: false,
|
|
23
23
|
defaultValue: false,
|
|
24
24
|
typeMetadata: {
|
|
@@ -27,7 +27,7 @@ export default {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
disableCreateRecord: {
|
|
31
31
|
required: false,
|
|
32
32
|
defaultValue: false,
|
|
33
33
|
typeMetadata: {
|
|
@@ -36,43 +36,39 @@ export default {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
|
|
39
|
+
disableDependencyMapping: {
|
|
40
40
|
required: false,
|
|
41
|
-
defaultValue:
|
|
41
|
+
defaultValue: false,
|
|
42
42
|
typeMetadata: {
|
|
43
43
|
schema: {
|
|
44
|
-
type: '
|
|
44
|
+
type: 'boolean'
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
|
|
49
|
-
required:
|
|
50
|
-
defaultValue:
|
|
51
|
-
orgName: '',
|
|
52
|
-
servicePrefix: 'supportapi/zd'
|
|
53
|
-
},
|
|
48
|
+
disableValidationRule: {
|
|
49
|
+
required: false,
|
|
50
|
+
defaultValue: false,
|
|
54
51
|
typeMetadata: {
|
|
55
52
|
schema: {
|
|
56
|
-
type: '
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
additionalProperties: false
|
|
53
|
+
type: 'boolean'
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
disableLayoutRule: {
|
|
58
|
+
required: false,
|
|
59
|
+
defaultValue: false,
|
|
60
|
+
typeMetadata: {
|
|
61
|
+
schema: {
|
|
62
|
+
type: 'boolean'
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
customValidators: {
|
|
67
|
+
required: false,
|
|
68
|
+
defaultValue: {},
|
|
69
|
+
typeMetadata: {
|
|
70
|
+
schema: {
|
|
71
|
+
type: 'object'
|
|
76
72
|
}
|
|
77
73
|
}
|
|
78
74
|
}
|
package/es/bc/zform/Symbol.js
CHANGED
|
@@ -18,14 +18,12 @@ export const ZFORM_FIELD_VALUE_CHANGED = 'ZFORM#FIELD_VALUE_CHANGED';
|
|
|
18
18
|
export const ZFORM_FIELD_BLURRED = 'ZFORM#FIELD_BLURRED';
|
|
19
19
|
export const ZFORM_SET_FIELD_ERROR_MESSAGE = 'ZFORM#SET_FIELD_ERROR_MESSAGE';
|
|
20
20
|
export const ZFORM_LOOKUP_FIELD_SUCCESS = 'ZFORM#LOOKUP_FIELD_SUCCESS';
|
|
21
|
-
export const
|
|
21
|
+
export const ZFORM_API_FAILURE = 'ZFORM#API_FAILURE';
|
|
22
22
|
export const ZFORM_VALIDATE_FIELD_REQUEST = 'ZFORM#VALIDATE_FIELD_REQUEST';
|
|
23
23
|
export const ZFORM_SUBMIT = 'ZFORM#SUBMIT_REQUEST';
|
|
24
24
|
export const ZFORM_CANCEL = 'ZFORM#CANCEL_REQUEST';
|
|
25
|
-
export const ZFORM_VALIDATION_ERROR = 'ZFORM#VALIDATION_ERROR';
|
|
26
25
|
export const ZFORM_VALIDATION_RULES_EXECUTION_RESULT = 'ZFORM#VALIDATION_RULES_EXECUTION_RESULT';
|
|
27
26
|
export const ZFORM_VALIDATION_SUCCESS = 'ZFORM#VALIDATION_SUCCESS';
|
|
28
|
-
export const ZFORM_VALIDATE_SUBMIT_FIELD_HAS_ERROR_MESSAGE = 'ZFORM#VALIDATE_SUBMIT_FIELD_HAS_ERROR_MESSAGE';
|
|
29
27
|
export const ZFORM_SUBMIT_VALIDATION_COMPLETED = 'ZFORM#SUBMIT_VALIDATION_COMPLETED';
|
|
30
28
|
export const ZFORM_SUBMIT_SUCCESS = 'ZFORM#SUBMIT_SUCCESS';
|
|
31
29
|
export const ZFORM_SUBMIT_FAILURE = 'ZFORM#SUBMIT_FAILURE';
|
|
@@ -32,57 +32,6 @@ export default {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
context: {
|
|
36
|
-
required: true,
|
|
37
|
-
typeMetadata: {
|
|
38
|
-
schema: {
|
|
39
|
-
type: 'object',
|
|
40
|
-
properties: {
|
|
41
|
-
orgId: {
|
|
42
|
-
type: 'string'
|
|
43
|
-
},
|
|
44
|
-
orgName: {
|
|
45
|
-
type: 'string'
|
|
46
|
-
},
|
|
47
|
-
currencyLocale: {
|
|
48
|
-
type: 'string'
|
|
49
|
-
},
|
|
50
|
-
currencySymbol: {
|
|
51
|
-
type: 'string'
|
|
52
|
-
},
|
|
53
|
-
modules: {
|
|
54
|
-
type: 'array',
|
|
55
|
-
items: {
|
|
56
|
-
type: 'object',
|
|
57
|
-
properties: {
|
|
58
|
-
apiKey: {
|
|
59
|
-
type: 'string'
|
|
60
|
-
},
|
|
61
|
-
hasRecycleBin: {
|
|
62
|
-
type: 'boolean'
|
|
63
|
-
},
|
|
64
|
-
nameField: {
|
|
65
|
-
type: 'string'
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
required: ['apiKey', 'nameField']
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
departmentName: {
|
|
72
|
-
type: 'string'
|
|
73
|
-
},
|
|
74
|
-
routing: {
|
|
75
|
-
type: 'object'
|
|
76
|
-
},
|
|
77
|
-
servicePrefix: {
|
|
78
|
-
type: 'string'
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
required: ['orgId', 'orgName', 'departmentName'],
|
|
82
|
-
additionalProperties: false
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
35
|
sortBy: {
|
|
87
36
|
required: false,
|
|
88
37
|
defaultValue: '',
|
|
@@ -21,6 +21,7 @@ export class RecordApiActionName {
|
|
|
21
21
|
static DELETE_RECORD = 'deleteRecord';
|
|
22
22
|
static UPDATE_RECORD = 'updateRecord';
|
|
23
23
|
static GET_CLIENTACTIONS = 'getClientActions';
|
|
24
|
+
static GET_CLIENTSCRIPTS = 'getClientScripts';
|
|
24
25
|
static CREATE_RECORD = 'createRecord';
|
|
25
26
|
static GET_REORDERRECORD = 'reorderRecord';
|
|
26
27
|
}
|
|
@@ -3,14 +3,20 @@ export default {
|
|
|
3
3
|
required: false,
|
|
4
4
|
typeMetadata: {
|
|
5
5
|
schema: {
|
|
6
|
-
anyOf: [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
anyOf: [{
|
|
7
|
+
type: 'object',
|
|
8
|
+
properties: {
|
|
9
|
+
UIComponentName: {
|
|
10
|
+
type: 'string'
|
|
11
|
+
},
|
|
12
|
+
fieldToUIComponentTranslator: {
|
|
13
|
+
type: 'function'
|
|
14
|
+
},
|
|
15
|
+
translator: {
|
|
16
|
+
type: 'function'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}, {
|
|
14
20
|
type: 'string'
|
|
15
21
|
}]
|
|
16
22
|
}
|
|
@@ -1,10 +1,43 @@
|
|
|
1
1
|
import FieldProperties from "../field/Properties";
|
|
2
2
|
export default { ...FieldProperties,
|
|
3
|
+
lookup: {
|
|
4
|
+
required: false,
|
|
5
|
+
defaultValue: {},
|
|
6
|
+
typeMetadata: {
|
|
7
|
+
schema: {
|
|
8
|
+
type: 'object'
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
3
12
|
value: {
|
|
4
13
|
required: true,
|
|
14
|
+
defaultValue: '',
|
|
5
15
|
typeMetadata: {
|
|
6
16
|
schema: {
|
|
7
|
-
|
|
17
|
+
// Accepts either object or string
|
|
18
|
+
anyOf: [{
|
|
19
|
+
// NOTE: object type is used in Table Lookup field translator
|
|
20
|
+
type: 'object',
|
|
21
|
+
properties: {
|
|
22
|
+
id: {
|
|
23
|
+
type: 'string'
|
|
24
|
+
},
|
|
25
|
+
name: {
|
|
26
|
+
type: 'string'
|
|
27
|
+
},
|
|
28
|
+
photoURL: {
|
|
29
|
+
type: ['string', 'null']
|
|
30
|
+
},
|
|
31
|
+
url: {
|
|
32
|
+
type: ['string', 'null']
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
required: ['id', 'name']
|
|
36
|
+
}, {
|
|
37
|
+
// NOTE: string type is used in Form Lookup field translator
|
|
38
|
+
type: 'string' // Allowing string type for backward compatibility or alternative usage
|
|
39
|
+
|
|
40
|
+
}]
|
|
8
41
|
}
|
|
9
42
|
}
|
|
10
43
|
}
|
package/es/cc/form/Properties.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import PropertiesConverter from "../component/properties/PropertiesConverter";
|
|
2
2
|
import SectionProperties from "../section/Properties";
|
|
3
|
+
import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
3
4
|
export default {
|
|
4
5
|
isHeaderEnabled: {
|
|
5
6
|
required: false,
|
|
@@ -89,5 +90,12 @@ export default {
|
|
|
89
90
|
type: 'boolean'
|
|
90
91
|
}
|
|
91
92
|
}
|
|
93
|
+
},
|
|
94
|
+
clientScripts: {
|
|
95
|
+
required: false,
|
|
96
|
+
defaultValue: [],
|
|
97
|
+
typeMetadata: {
|
|
98
|
+
schema: clientScriptsSchema
|
|
99
|
+
}
|
|
92
100
|
}
|
|
93
101
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ERROR_OCCURRED_SUFFIX } from "../component/ErrorStructure";
|
|
2
|
+
|
|
1
3
|
class SmartFormConstants {
|
|
2
4
|
static SMART_FORM_FIELD_FOCUSED = 'SMART_FORM#FIELD_FOCUSED';
|
|
3
5
|
static SMART_FORM_FIELD_BLURRED = 'SMART_FORM#FIELD_BLURRED';
|
|
@@ -5,6 +7,7 @@ class SmartFormConstants {
|
|
|
5
7
|
static SMART_FORM_SUBMIT_CLICKED = 'SMART_FORM#SUBMIT_CLICKED';
|
|
6
8
|
static SMART_FORM_CANCEL_CLICKED = 'SMART_FORM#CANCEL_CLICKED';
|
|
7
9
|
static SMART_FORM_SUBMIT_SUCCESS = 'SMART_FORM#SUBMIT_SUCCESS';
|
|
10
|
+
static SMART_FORM_ERROR_OCCURRED = `SMART_FORM${ERROR_OCCURRED_SUFFIX}`;
|
|
8
11
|
static SMART_FORM_SUBMIT_FAILURE = 'SMART_FORM#SUBMIT_FAILED';
|
|
9
12
|
}
|
|
10
13
|
|
|
@@ -19,6 +19,9 @@ export default {
|
|
|
19
19
|
},
|
|
20
20
|
submitConfig: {
|
|
21
21
|
required: false,
|
|
22
|
+
defaultValue: {
|
|
23
|
+
isEnabled: true
|
|
24
|
+
},
|
|
22
25
|
typeMetadata: {
|
|
23
26
|
schema: {
|
|
24
27
|
type: 'object',
|
|
@@ -36,6 +39,9 @@ export default {
|
|
|
36
39
|
},
|
|
37
40
|
cancelConfig: {
|
|
38
41
|
required: false,
|
|
42
|
+
defaultValue: {
|
|
43
|
+
isEnabled: true
|
|
44
|
+
},
|
|
39
45
|
typeMetadata: {
|
|
40
46
|
schema: {
|
|
41
47
|
type: 'object',
|
|
@@ -109,17 +115,19 @@ export default {
|
|
|
109
115
|
required: ['UIComponentName']
|
|
110
116
|
}
|
|
111
117
|
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
fields: {
|
|
119
|
+
type: 'object',
|
|
120
|
+
additionalProperties: {
|
|
121
|
+
type: 'object',
|
|
122
|
+
properties: {
|
|
123
|
+
UIComponentName: {
|
|
124
|
+
type: 'string'
|
|
125
|
+
} // translator: { type: 'object' } // Function types are not representable in JSON Schema
|
|
126
|
+
|
|
127
|
+
},
|
|
128
|
+
required: ['UIComponentName']
|
|
129
|
+
}
|
|
130
|
+
},
|
|
123
131
|
loadingState: {
|
|
124
132
|
type: 'string'
|
|
125
133
|
}
|
|
@@ -128,5 +128,19 @@ export const SdkContracts = {
|
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
required: ['ids']
|
|
131
|
+
},
|
|
132
|
+
sortByInputMeta: {
|
|
133
|
+
type: 'object',
|
|
134
|
+
properties: {
|
|
135
|
+
id: {
|
|
136
|
+
type: 'string'
|
|
137
|
+
},
|
|
138
|
+
name: {
|
|
139
|
+
type: 'string'
|
|
140
|
+
},
|
|
141
|
+
order: {
|
|
142
|
+
type: 'string'
|
|
143
|
+
}
|
|
144
|
+
}
|
|
131
145
|
}
|
|
132
146
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ERROR_OCCURRED_SUFFIX } from "../../component/ErrorStructure";
|
|
2
|
+
export const ERROR_OCCURRED = 'SMART_TABLE' + ERROR_OCCURRED_SUFFIX;
|
|
2
3
|
export default {
|
|
3
4
|
SORT: 'SMART_TABLE#SORT',
|
|
4
5
|
SORTED: 'SMART_TABLE#SORTED',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Width } from "../data-types/Header";
|
|
2
2
|
import RowCursor from "../data-types/RowCursor";
|
|
3
|
+
import { clientScriptsSchema } from "../../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
3
4
|
const TableRowProperties = {
|
|
4
5
|
isReorderEnabled: {
|
|
5
6
|
required: false,
|
|
@@ -163,6 +164,13 @@ const TableRowProperties = {
|
|
|
163
164
|
type: 'boolean'
|
|
164
165
|
}
|
|
165
166
|
}
|
|
167
|
+
},
|
|
168
|
+
clientScripts: {
|
|
169
|
+
required: false,
|
|
170
|
+
defaultValue: [],
|
|
171
|
+
typeMetadata: {
|
|
172
|
+
schema: clientScriptsSchema
|
|
173
|
+
}
|
|
166
174
|
}
|
|
167
175
|
};
|
|
168
176
|
export default TableRowProperties;
|
package/es/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// export * as CC from './cc';
|
|
2
2
|
import * as CCNamespace from "./cc"; // Import only the ExternalConstants
|
|
3
3
|
|
|
4
|
-
import ExternalConstants from "./cc/table-connected/constants/ExternalConstants";
|
|
4
|
+
import ExternalConstants from "./cc/table-connected/constants/ExternalConstants";
|
|
5
|
+
import ActionEventMediator from "./platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator";
|
|
6
|
+
import RowActionsRenderer from "./platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
7
|
+
import AdaptiveRowActionsRenderer from "./platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer"; // Rebuild SmartTableConstants without Events
|
|
5
8
|
|
|
6
9
|
const SmartTableConstants = {
|
|
7
10
|
ExternalConstants
|
|
@@ -12,6 +15,7 @@ export const CC = { ...CCNamespace,
|
|
|
12
15
|
};
|
|
13
16
|
import * as _BC from "./bc";
|
|
14
17
|
export { _BC as BC };
|
|
18
|
+
export * from "./library/analytics";
|
|
15
19
|
export { TableConnectedFactory, FormConnectedFactory } from "./platform/components";
|
|
16
20
|
export { ComponentRegistry, createCustomComponent } from "./library";
|
|
17
21
|
export { default as TableFieldComponents } from "./library/dot/legacy-to-new-arch/table-field-components";
|
|
@@ -20,11 +24,17 @@ export { _Components as Components };
|
|
|
20
24
|
export { platformSDK_old, platformSDK } from "./platform/sdk/frameworks/Sdk";
|
|
21
25
|
export { sdkRegistry } from "./platform/sdk/frameworks/SdkRegistry";
|
|
22
26
|
export { AppResource } from "./platform/components/app/adapters/resources/AppResource";
|
|
23
|
-
export {
|
|
27
|
+
export { fetchClientActions } from "./platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter";
|
|
28
|
+
export { ZFormApiActionName } from "./bc/zform/Constants";
|
|
24
29
|
export { transFormValidationRules } from "./platform/data-source/utils/validation-rules/TransFormValidationRules";
|
|
30
|
+
export { AdaptiveRowActionsRenderer };
|
|
31
|
+
export { ActionEventMediator };
|
|
32
|
+
export { RowActionsRenderer };
|
|
25
33
|
export { renderField } from "./library/dot/components/section/frameworks/ui/RenderField";
|
|
34
|
+
export { default as ResourceNamesEnum } from "./bc/sdk/ResourceNamesEnum";
|
|
26
35
|
import { FieldSectionEventMappingBehaviourFactory } from "./library/dot/components/section/frameworks/ui/Section";
|
|
27
36
|
export { ValidationEvents } from "./platform/zform/domain/interfaces/IZForm";
|
|
28
37
|
export const Behaviours = {
|
|
29
38
|
FieldSectionEventMappingBehaviourFactory
|
|
30
|
-
};
|
|
39
|
+
};
|
|
40
|
+
export * from "./library/analytics";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
class Analytics {
|
|
2
|
+
warningShown = false; // ✅ Flag to ensure warning is logged only once
|
|
3
|
+
|
|
4
|
+
constructor() {}
|
|
5
|
+
|
|
6
|
+
init(callback) {
|
|
7
|
+
this.pushCallback = callback;
|
|
8
|
+
this.warningShown = false; // ✅ Reset warning once properly initialized
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
static getInstance() {
|
|
12
|
+
if (!Analytics.instance) {
|
|
13
|
+
Analytics.instance = new Analytics();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return Analytics.instance;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
push(metric) {
|
|
20
|
+
if (typeof this.pushCallback !== 'function') {
|
|
21
|
+
if (!this.warningShown) {
|
|
22
|
+
console.warn('Push callback is not initialized. Please call init() first.');
|
|
23
|
+
this.warningShown = true; // ✅ Set flag after logging once
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
this.pushCallback({
|
|
30
|
+
metric
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export default Analytics.getInstance();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class Metric {
|
|
2
|
+
// Name of the event
|
|
3
|
+
// ISO timestamp when the event occurred
|
|
4
|
+
// Additional context details specific to the event
|
|
5
|
+
// Optional metadata for additional information
|
|
6
|
+
constructor(event, timestamp, contextDetails, metaData) {
|
|
7
|
+
this.event = event;
|
|
8
|
+
this.timestamp = timestamp;
|
|
9
|
+
this.contextDetails = contextDetails;
|
|
10
|
+
this.metaData = metaData;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
}
|
|
@@ -4,12 +4,14 @@ import MountUsecase from "../../../applications/usecases/MountUseCase";
|
|
|
4
4
|
import UnmountUsecase from "../../../applications/usecases/UnmountUseCase";
|
|
5
5
|
import UpdatePropertyUseCase from "../../../applications/usecases/UpdatePropertyUseCase";
|
|
6
6
|
import UpdateStateUseCase from "../../../applications/usecases/UpdateStateUseCase";
|
|
7
|
+
import SetRefUseCase from "../../../applications/usecases/SetRefUseCase";
|
|
7
8
|
|
|
8
9
|
class Service {
|
|
9
10
|
constructor(dependencies) {
|
|
10
11
|
this.initializeUseCase = new InitializeUseCase(dependencies);
|
|
11
12
|
this.mountUseCase = new MountUsecase(dependencies);
|
|
12
13
|
this.unmountUseCase = new UnmountUsecase(dependencies);
|
|
14
|
+
this.setRefUseCase = new SetRefUseCase(dependencies);
|
|
13
15
|
this.updatePropertiesUseCase = new UpdatePropertyUseCase(dependencies);
|
|
14
16
|
this.updateStateUseCase = new UpdateStateUseCase(dependencies);
|
|
15
17
|
this.dispatchUseCase = new DispatchUseCase(dependencies);
|
|
@@ -4,21 +4,24 @@ import State from "../../domain/entities/State";
|
|
|
4
4
|
import EventHandlersFactory from "./EventHandlersFactory";
|
|
5
5
|
import BehavioursFactory from "./BehavioursFactory";
|
|
6
6
|
import PropertiesFactory from "./PropertiesFactory";
|
|
7
|
-
|
|
7
|
+
import ComponentProperties from "../../domain/entities/ComponentProperties";
|
|
8
|
+
import Logger from "../../domain/entities/Logger";
|
|
8
9
|
|
|
9
10
|
let defaultTransformState = state => state;
|
|
10
|
-
/* eslint-disable-next-line @zohodesk/architecturerules/no-returnStatement-rule */
|
|
11
|
-
|
|
12
11
|
|
|
13
12
|
function initializeComponent(input) {
|
|
14
|
-
|
|
15
|
-
component.setName(input.name);
|
|
16
|
-
component.setLifeCycleAction(new LifeCycleAction(input.name));
|
|
17
|
-
component.setBehaviours(BehavioursFactory.create(input));
|
|
18
|
-
component.setProperties(PropertiesFactory({
|
|
13
|
+
const properties = PropertiesFactory({
|
|
19
14
|
properties: input.properties,
|
|
20
15
|
componentName: input.name
|
|
21
|
-
})
|
|
16
|
+
});
|
|
17
|
+
const logger = new Logger(input.name);
|
|
18
|
+
const behaviours = BehavioursFactory.create(input);
|
|
19
|
+
const componentProperties = new ComponentProperties(input.name, properties, behaviours);
|
|
20
|
+
const component = new Component(componentProperties);
|
|
21
|
+
component.setName(input.name);
|
|
22
|
+
component.setLogger(logger);
|
|
23
|
+
component.setLifeCycleAction(new LifeCycleAction(input.name));
|
|
24
|
+
component.setBehaviours(behaviours);
|
|
22
25
|
return component;
|
|
23
26
|
}
|
|
24
27
|
|