@zohodesk/library-platform 1.0.1 → 1.0.2-exp.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.
- package/es/bc/index.js +2 -0
- package/es/bc/list-selection/Properties.js +21 -12
- package/es/bc/sort-by/Properties.js +20 -15
- package/es/bc/sort-by/index.js +2 -0
- package/es/bc/table-column-resizer/Properties.js +1 -1
- package/es/bc/zhttp/Properties.js +11 -1
- package/es/bc/zhttp/index.js +2 -0
- package/es/bc/zlist/Properties.js +15 -3
- package/es/bc/zrecord/Constants.js +3 -1
- package/es/cc/action-icon/Model.js +6 -2
- package/es/cc/action-icon/Properties.js +18 -0
- package/es/cc/action-location/Properties.js +54 -3
- package/es/cc/component/properties/PropertiesConverter.js +23 -0
- package/es/cc/empty-state/index.js +1 -0
- package/es/cc/fields/field/Properties.js +9 -1
- package/es/cc/fields/field/Types.js +16 -16
- package/es/cc/fields/multi-select/Properties.js +1 -1
- package/es/cc/fields/pick-list/Properties.js +1 -1
- package/es/cc/index.js +1 -0
- package/es/cc/table-connected/Properties.js +52 -45
- package/es/cc/table-list/Properties.js +109 -324
- package/es/cc/table-list/data-types/Header.js +8 -7
- package/es/cc/table-list/data-types/RowCursor.js +8 -0
- package/es/cc/table-list/model/RowModel.js +2 -4
- package/es/cc/table-list/row/Properties.js +15 -10
- package/es/desk-frameworks/table-connected/frameworks/TableConnectedFactory.js +4 -1
- package/es/desk-frameworks/table-connected/frameworks/TableConnectedView.js +14 -13
- package/es/desk-frameworks/table-connected/frameworks/__tests__/TableConnectedFactory.spec.js +453 -0
- package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/http-template/getAvailableFields.js +86 -0
- package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/http-template/getRecords.js +81 -0
- package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/http-template/getSelectedFields.js +32 -0
- package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/index.js +11 -0
- package/es/index.js +1 -2
- package/es/library/behaviours/list-selection/adapters/gateways/Repository.js +1 -1
- package/es/library/behaviours/list-selection/adapters/gateways/Service.js +5 -5
- package/es/library/behaviours/list-selection/{entities → domain/entities}/ListItemSelection.js +29 -9
- package/es/library/behaviours/sort-by/adapters/gateway/Repository.js +1 -1
- package/es/library/behaviours/sort-by/adapters/gateway/Service.js +1 -1
- package/es/library/behaviours/sort-by/{entities → domain/entities}/SortBy.js +1 -1
- package/es/library/behaviours/sort-by/frameworks/ui/SortByBehaviourFactory.js +2 -2
- package/es/library/behaviours/text-to-field-click/adapters/gateway/Repository.js +1 -1
- package/es/library/behaviours/text-to-field-click/{entities → domain/entities}/FieldEventConverter.js +1 -1
- package/es/library/behaviours/text-to-field-click/frameworks/ui/EventHandlersFactory.js +1 -1
- package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +1 -1
- package/es/library/custom-component/adapters/gateways/service/Service.js +6 -6
- package/es/library/custom-component/{usecases → applications}/entities-factory/BehavioursFactory.js +1 -1
- package/es/library/custom-component/{usecases → applications}/entities-factory/ComponentFactory.js +3 -3
- package/es/library/custom-component/{usecases → applications}/entities-factory/EventHandlersFactory.js +1 -1
- package/es/library/custom-component/{usecases → applications}/entities-factory/PropertiesFactory.js +9 -3
- package/es/library/custom-component/{usecases/interactors → applications/usecases}/UnmountUseCase.js +1 -1
- package/es/library/custom-component/{entities → domain/entities}/Component.js +40 -7
- package/es/library/custom-component/{entities → domain/entities}/DefaultAppendToActionPayload.js +2 -2
- package/es/library/custom-component/{entities → domain/entities}/Properties.js +4 -5
- package/es/library/custom-component/frameworks/ui/__testcases__/CreateCustomComponent.spec.js +106 -0
- package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +5 -0
- package/es/library/dot/components/action-location/frameworks/ui/ActionLocationView.js +8 -29
- package/es/library/dot/components/actions-renderer/frameworks/ui/ActionsRenderer.js +9 -0
- package/es/library/dot/components/actions-renderer/frameworks/ui/ActionsRendererView.js +37 -0
- package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +16 -6
- package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +10 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +8 -6
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.js +12 -14
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/ActionColumn.js +3 -2
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +7 -7
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/Headers.js +0 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/SelectAll.js +4 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Columns.js +2 -6
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +24 -14
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +5 -1
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +2 -4
- package/es/library/dot/legacy-to-new-arch/action-icon/{ActionIcon.js → frameworks/ui/ActionIcon.js} +2 -2
- package/es/library/dot/legacy-to-new-arch/action-icon/{ActionIconView.js → frameworks/ui/ActionIconView.js} +11 -5
- package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/css/ActionIcon.module.css +3 -0
- package/es/library/dot/legacy-to-new-arch/index.js +1 -1
- package/es/library/dot/legacy-to-new-arch/table-field-components/lookup-field/frameworks/ui/LookupFieldView.js +7 -6
- package/es/platform/client-actions/Readme.md +31 -0
- package/es/platform/client-actions/bc/zclient-actions/Constants.js +11 -0
- package/es/platform/client-actions/bc/zclient-actions/EventHandlers.js +1 -0
- package/es/platform/client-actions/behaviour/zclient-actions/Readme.md +38 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/AbstractController.js +8 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/ClientActionBehaviourExecutorController.js +27 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/FailureController.js +28 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/FetchStateStopController.js +21 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/MountController.js +25 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/NoContentController.js +23 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/SetClientActionsController.js +24 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/SuccessController.js +28 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/gateways/Repository.js +28 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/gateways/Service.js +35 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/presenters/Presenter.js +24 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/entities-factory/ClientActionFactory.js +12 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/entities-factory/ClientActionManagerFactory.js +10 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/ExecuteActionBehaviourUseCase.js +33 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/FailureUseCase.js +22 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/FetchStateStopUseCase.js +25 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/InitializeUseCase.js +17 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/NoContentUseCase.js +27 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/SetClientActionsUseCase.js +21 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/SuccessUseCase.js +22 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientAction.js +65 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientActionManager.js +141 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientActions.js +50 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/EventMapping.js +36 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/EventMappings.js +15 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/GetClientActionsStrategy.js +44 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/UIComponentMapping.js +41 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IUIComponentMapping.js +0 -0
- package/es/platform/client-actions/behaviour/zclient-actions/frameworks/ActionsHandlersFactory.js +47 -0
- package/es/platform/client-actions/behaviour/zclient-actions/frameworks/ClientActionsBehaviourFactory.js +12 -0
- package/es/platform/client-actions/cc/action-event-mediator/Properties.js +23 -0
- package/es/platform/client-actions/cc/dynamic-action-component/Properties.js +51 -0
- package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/MountController.js +18 -0
- package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/PropertiesChangeController.js +26 -0
- package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/UnmountController.js +18 -0
- package/es/platform/client-actions/components/action-event-mediator/adapters/gateway/Repository.js +36 -0
- package/es/platform/client-actions/components/action-event-mediator/adapters/presenters/Presenter.js +22 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/interfaces/gateways/IRepository.js +0 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/interfaces/output/IPresenter.js +0 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/usecases/AbstractUseCase.js +15 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/usecases/DestroyUseCase.js +13 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/usecases/InitializeUseCase.js +13 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/usecases/PropertiesChangeUseCase.js +17 -0
- package/es/platform/client-actions/components/action-event-mediator/domain/entities/ActionEventMediatorEntity.js +108 -0
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator.js +13 -0
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediatorView.js +17 -0
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/EventHandlersFactory.js +30 -0
- package/es/platform/client-actions/components/dynamic-component/frameworks/ui/DynamicActionComponent.js +9 -0
- package/es/platform/client-actions/components/dynamic-component/frameworks/ui/DynamicActionComponentView.js +34 -0
- package/es/platform/client-actions/components/interfaces/ActionViewModel.js +0 -0
- package/es/platform/client-actions/components/interfaces/EventMappingViewModel.js +0 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRenderer.js +12 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRendererView.js +25 -0
- package/es/platform/client-actions/template-resolver/index.js +44 -0
- package/es/platform/client-actions/translators/client-actions-translator/index.js +29 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalEmptyString.js +4 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalEndsWith.js +4 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalEquals.js +4 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalGreaterThan.js +4 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalGreaterThanOrEquals.js +4 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalIn.js +4 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalIsEmpty.js +4 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalIsNotEmpty.js +4 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalLessThan.js +4 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalLessThanOrEquals.js +4 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalLike.js +4 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalNotEquals.js +4 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalNotLike.js +4 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalStartsWith.js +4 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/GetResolvedContextFieldValue.js +8 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/index.js +58 -0
- package/es/platform/client-actions/translators/condition-resolver/index.js +33 -0
- package/es/platform/client-actions/translators/condition-resolver/pattern-evaluator/PatternValidator.js +86 -0
- package/es/platform/client-actions/translators/condition-resolver/pattern-evaluator/index.js +96 -0
- package/es/platform/client-actions/translators/context-resolver/index.js +54 -0
- package/es/platform/data-broker/http-template/deleteRecord.js +1 -1
- package/es/platform/data-broker/http-template/deleteRecords.js +1 -1
- package/es/platform/data-broker/http-template/getAvailableFields.js +1 -1
- package/es/platform/data-broker/http-template/getClientActions.js +23 -0
- package/es/platform/data-broker/http-template/getRecords.js +1 -1
- package/es/platform/data-broker/http-template/getSelectedFields.js +1 -1
- package/es/platform/data-broker/http-template/updateRecord.js +1 -1
- package/es/platform/data-broker/index.js +3 -3
- package/es/platform/zdata-broker/adapters/controllers/{ActionExecutorController.js → DataBrokerExecutorController.js} +1 -1
- package/es/platform/zdata-broker/adapters/gateways/Repository.js +1 -1
- package/es/platform/zdata-broker/adapters/gateways/Service.js +5 -5
- package/es/platform/zdata-broker/adapters/gateways/TemplateHelpers.js +21 -0
- package/es/platform/zdata-broker/{usecases → applications}/entities-factory/APITemplatesFactory.js +2 -2
- package/es/platform/zdata-broker/{usecases → applications}/entities-factory/DataBrokerFactory.js +1 -1
- package/es/platform/zdata-broker/applications/interfaces/gateways/IService.js +0 -0
- package/es/platform/zdata-broker/applications/interfaces/gateways/ITemplateHelpers.js +1 -0
- package/es/platform/zdata-broker/{entities → domain/entities}/DataBroker.js +3 -3
- package/es/platform/zdata-broker/domain/entities/interfaces/IDataBroker.js +0 -0
- package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/MetaData.js +1 -1
- package/es/platform/zdata-broker/frameworks/EventHandlersFactory.js +3 -3
- package/es/platform/zfield/adapters/gateways/Repository.js +1 -1
- package/es/platform/zfield/adapters/gateways/Service.js +6 -6
- package/es/platform/zfield/{usecases → applications}/entities-factory/FieldsManagerBuilder.js +1 -1
- package/es/platform/zfield/applications/interfaces/input/FetchInputModel.js +2 -0
- package/es/platform/zfield/{entities → domain/entities}/fields-manager/AvailableFieldsManager.js +2 -2
- package/es/platform/zfield/{entities → domain/entities}/fields-manager/FieldsManager.js +3 -3
- package/es/platform/zfield/{entities → domain/entities}/fields-manager/SelectedFieldsManager.js +2 -2
- package/es/platform/zfield/domain/entities/interfaces/ActionModel.js +1 -0
- package/es/platform/zfield/domain/entities/interfaces/BehaviourState.js +1 -0
- package/es/platform/zfield/domain/entities/interfaces/FieldModel.js +1 -0
- package/es/platform/zfield/domain/entities/interfaces/IField.js +1 -0
- package/es/platform/zfield/domain/entities/interfaces/IFieldManger.js +1 -0
- package/es/platform/zfield/{entities → domain/entities}/interfaces/MetaData.js +1 -1
- package/es/platform/zhttp/applications/interfaces/InputDependencies.js +1 -0
- package/es/platform/zhttp/applications/interfaces/UseCase.js +1 -0
- package/es/platform/zhttp/applications/interfaces/gateway/IFetchGateWay.js +1 -0
- package/es/platform/zhttp/applications/interfaces/input/FetchInputModel.js +1 -0
- package/es/platform/zhttp/frameworks/ActionsHandlerFactory.js +1 -1
- package/es/platform/zhttp/frameworks/ZHttpBehaviourFactory.js +2 -1
- package/es/platform/zlist/adapters/gateways/Repository.js +4 -2
- package/es/platform/zlist/adapters/gateways/Service.js +10 -10
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +32 -2
- package/es/platform/zlist/adapters/presenters/translators/ColumnAlignmentTranslator.js +11 -0
- package/es/platform/zlist/adapters/presenters/translators/ColumnSizeTranslator.js +23 -0
- package/es/platform/zlist/adapters/presenters/translators/Header.js +4 -3
- package/es/platform/zlist/adapters/presenters/translators/Row.js +5 -1
- package/es/platform/zlist/adapters/presenters/translators/RowActionTranslator.js +18 -11
- package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +3 -1
- package/es/platform/zlist/applications/entities-factory/ListFactory.js +16 -0
- package/es/platform/zlist/applications/interfaces/State.js +1 -0
- package/es/platform/zlist/applications/interfaces/UseCaseDependencies.js +1 -0
- package/es/platform/zlist/applications/interfaces/gateways/IRepository.js +1 -0
- package/es/platform/zlist/applications/interfaces/gateways/IService.js +1 -0
- package/es/platform/zlist/applications/interfaces/gateways/ISortBy.js +1 -0
- package/es/platform/zlist/applications/interfaces/gateways/ITransformState.js +0 -0
- package/es/platform/zlist/applications/interfaces/input/DeleteMultipleRecordUseCaseInput.js +1 -0
- package/es/platform/zlist/applications/interfaces/input/DeleteSingleRecordUseCaseInput.js +1 -0
- package/es/platform/zlist/applications/interfaces/input/FetchMoreInput.js +1 -0
- package/es/platform/zlist/applications/interfaces/input/FieldChangeUseCaseInput.js +1 -0
- package/es/platform/zlist/applications/interfaces/input/InitializeInput.js +1 -0
- package/es/platform/zlist/applications/interfaces/input/PropertiesChangeUseCaseInput.js +1 -0
- package/es/platform/zlist/applications/interfaces/input/RecordExecuteFailedUseCaseInput.js +1 -0
- package/es/platform/zlist/applications/interfaces/input/RecordExecuteSucceededUseCaseInput.js +1 -0
- package/es/platform/zlist/applications/interfaces/input/RecordUpdateUseCaseInput.js +1 -0
- package/es/platform/zlist/applications/interfaces/input/SortingInputModel.js +1 -0
- package/es/platform/zlist/{entities → domain/entities}/List.js +28 -25
- package/es/platform/zlist/domain/entities/interfaces/ActionModel.js +1 -0
- package/es/platform/zlist/domain/entities/interfaces/ApiPropsModel.js +1 -0
- package/es/platform/zlist/domain/entities/interfaces/IList.js +1 -0
- package/es/platform/zlist/domain/entities/interfaces/Properties.js +1 -0
- package/es/platform/zlist/domain/entities/interfaces/RecordExecuteAfterMetaData.js +1 -0
- package/es/platform/zrecord/adapters/gateways/Repository.js +1 -1
- package/es/platform/zrecord/adapters/gateways/Service.js +13 -13
- package/es/platform/zrecord/{usecases → applications}/entities-factory/RecordFactory.js +1 -1
- package/es/platform/zrecord/{usecases → applications}/entities-factory/RecordsManagerFactory.js +2 -2
- package/es/platform/zrecord/applications/interfaces/InputDependencies.js +1 -0
- package/es/platform/zrecord/applications/interfaces/gateways/IRepository.js +1 -0
- package/es/platform/zrecord/applications/interfaces/gateways/IService.js +0 -0
- package/es/platform/zrecord/applications/interfaces/gateways/State.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/AppendRecordsInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/DeleteMultipleRecordInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/ExecuteActionInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/FailureInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/FetchMoreInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/FetchStateStopInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/FieldChangeUseCaseInput.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/InitializeInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/NoContentInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/RecordUpdateLocalUseCaseInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/RefetchInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/SetRecordsInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/SuccessInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/output/IPresenter.js +1 -0
- package/es/platform/zrecord/applications/usecases/AbstractUseCase.js +17 -0
- package/es/platform/zrecord/{entities → domain/entities}/DeleteMultipleRecordStrategy.js +1 -1
- package/es/platform/zrecord/{entities → domain/entities}/DeleteRecordStrategy.js +1 -1
- package/es/platform/zrecord/{entities → domain/entities}/GetRecordsStrategy.js +1 -1
- package/es/platform/zrecord/{entities → domain/entities}/RecordsManager.js +3 -3
- package/es/platform/zrecord/{entities → domain/entities}/UpdateRecordStrategy.js +1 -1
- package/es/platform/zrecord/domain/entities/interfaces/BehaviourState.js +1 -0
- package/es/platform/zrecord/domain/entities/interfaces/EventModel.js +1 -0
- package/es/platform/zrecord/domain/entities/interfaces/ICustomFieldValues.js +1 -0
- package/es/platform/zrecord/domain/entities/interfaces/IRecord.js +0 -0
- package/es/platform/zrecord/domain/entities/interfaces/IRecordExecuteStrategy.js +0 -0
- package/es/platform/zrecord/domain/entities/interfaces/IRecordName.js +1 -0
- package/es/platform/zrecord/domain/entities/interfaces/IRecords.js +0 -0
- package/es/platform/zrecord/domain/entities/interfaces/IRecordsManager.js +0 -0
- package/es/platform/zrecord/domain/entities/interfaces/RecordModel.js +1 -0
- package/es/platform/zrecord/domain/entities/interfaces/RecordsModel.js +1 -0
- package/es/platform/zrecord/domain/entities/interfaces/StrategyMeta.js +1 -0
- package/package.json +29 -21
- package/es/cc/table-list/behaviour-properties/ResizerConfig.js +0 -18
- package/es/cc/table-list/behaviour-properties/SelectionConfig.js +0 -17
- package/es/cc/table-list/behaviour-properties/SortByConfig.js +0 -14
- package/es/cc/table-list/behaviour-properties/index.js +0 -3
- package/es/library/custom-component/entities/__tests__/Action.spec.js +0 -19
- package/es/library/custom-component/entities/__tests__/ActionHandlers.spec.js +0 -15
- package/es/library/custom-component/entities/__tests__/Behaviour.spec.js +0 -52
- package/es/library/custom-component/entities/__tests__/Component.spec.js +0 -109
- package/es/platform/data-broker/http-template/getUIActions.js +0 -22
- package/es/platform/zdata-broker/usecases/interfaces/gateways/ITemplateHelpers.js +0 -1
- package/es/platform/zfield/usecases/interfaces/gateways/ITemplateHelpers.js +0 -1
- package/es/platform/zfield/usecases/interfaces/input/FetchInputModel.js +0 -2
- package/es/platform/zlist/usecases/entities-factory/ListFactory.js +0 -15
- /package/es/{library/behaviours/list-selection/entities/interfaces/IListItemSelection.js → cc/action-location/Action.js} +0 -0
- /package/es/{library/behaviours/list-selection/entities/interfaces/ListSelectionModel.js → cc/action-location/ActionLocation.js} +0 -0
- /package/es/{library/behaviours/list-selection/usecases/interfaces/UseCase.js → cc/table-list/data-types/RowAction.js} +0 -0
- /package/es/{library/behaviours/list-selection/usecases/interfaces/UseCaseDependencies.js → cc/table-list/data-types/RowActionsConfig.js} +0 -0
- /package/es/library/{custom-component/usecases → behaviours/list-selection/applications}/interfaces/UseCase.js +0 -0
- /package/es/library/behaviours/{sort-by/usecases → list-selection/applications}/interfaces/UseCaseDependencies.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/gateways/IService.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/AllSelectionInputModel.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/DestructInputModel.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/InitializeInputModel.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/RangeSelectionInputModel.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/SelectionInputModel.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/output/BehaviourStateModel.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/output/IPresenter.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/AllItemSelection.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/Destruct.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/Initialize.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/ItemsSelection.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/RangeSelection.js +0 -0
- /package/es/library/behaviours/{sort-by/entities/interfaces/ISortBy.js → list-selection/domain/entities/interfaces/IListItemSelection.js} +0 -0
- /package/es/library/behaviours/{sort-by/usecases/interfaces/gateways/IRepository.js → list-selection/domain/entities/interfaces/ListSelectionModel.js} +0 -0
- /package/es/library/behaviours/{text-to-field-click/usecases → sort-by/applications}/interfaces/UseCaseDependencies.js +0 -0
- /package/es/library/behaviours/{text-to-field-click/usecases → sort-by/applications}/interfaces/gateways/IRepository.js +0 -0
- /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/gateways/IService.js +0 -0
- /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/input/SortByInputModel.js +0 -0
- /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/output/IPresenter.js +0 -0
- /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/output/SortByOutputModel.js +0 -0
- /package/es/library/behaviours/sort-by/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
- /package/es/library/behaviours/sort-by/{usecases/interactors → applications/usecases}/SortBy.js +0 -0
- /package/es/{platform/zlist/usecases/interfaces/gateways → library/behaviours/sort-by/domain/entities/interfaces}/ISortBy.js +0 -0
- /package/es/{platform/zlist/usecases → library/behaviours/text-to-field-click/applications}/interfaces/UseCaseDependencies.js +0 -0
- /package/es/library/{custom-component/usecases → behaviours/text-to-field-click/applications}/interfaces/gateways/IRepository.js +0 -0
- /package/es/library/behaviours/text-to-field-click/{usecases → applications}/interfaces/input/ClickUseCaseInputModel.js +0 -0
- /package/es/library/behaviours/text-to-field-click/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
- /package/es/library/behaviours/text-to-field-click/{usecases/interactors → applications/usecases}/ClickUseCase.js +0 -0
- /package/es/library/behaviours/text-to-field-click/{entities → domain/entities}/interfaces/IFieldEventConverter.js +0 -0
- /package/es/library/custom-component/{usecases → applications}/interfaces/InputDependencies.js +0 -0
- /package/es/library/custom-component/{usecases → applications}/interfaces/OutputDependencies.js +0 -0
- /package/es/{platform/zhttp/usecases → library/custom-component/applications}/interfaces/UseCase.js +0 -0
- /package/es/library/custom-component/{usecases → applications}/interfaces/gateways/IEventManager.js +0 -0
- /package/es/library/custom-component/{usecases → applications}/interfaces/gateways/IJSONValidator.js +0 -0
- /package/es/{platform/zdata-broker/usecases → library/custom-component/applications}/interfaces/gateways/IRepository.js +0 -0
- /package/es/library/custom-component/{usecases → applications}/interfaces/gateways/IService.js +0 -0
- /package/es/library/custom-component/{usecases → applications}/interfaces/input/DispatchInputModel.js +0 -0
- /package/es/library/custom-component/{usecases → applications}/interfaces/input/InitailizeInputModel.js +0 -0
- /package/es/library/custom-component/{usecases → applications}/interfaces/input/UpdatePropertiesInputModel.js +0 -0
- /package/es/library/custom-component/{usecases → applications}/interfaces/input/UpdateStateInputModel.js +0 -0
- /package/es/library/custom-component/{usecases → applications}/interfaces/output/OutputBoundary.js +0 -0
- /package/es/library/custom-component/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
- /package/es/library/custom-component/{usecases/interactors → applications/usecases}/DispatchUseCase.js +0 -0
- /package/es/library/custom-component/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
- /package/es/library/custom-component/{usecases/interactors → applications/usecases}/MountUseCase.js +0 -0
- /package/es/library/custom-component/{usecases/interactors → applications/usecases}/UpdatePropertyUseCase.js +0 -0
- /package/es/library/custom-component/{usecases/interactors → applications/usecases}/UpdateStateUseCase.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/Behaviour.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/EventHandler.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/EventHandlers.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/Events.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/LifeCycleAction.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/Payload.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/Property.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/Schema.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/State.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/Style.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/IBehaviour.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/IComponent.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEvent.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventHandler.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventHandlerHelpers.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventHandlers.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventWrapper.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/ILifeCycleAction.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/IPayload.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/IProperties.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/IProperty.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/ISchema.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/IState.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/IStyle.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/IUpdateHelper.js +0 -0
- /package/es/library/custom-component/{entities → domain/entities}/interfaces/IValidator.js +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/APIDetailsModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/ClientActionModel.js} +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/APITemplateModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/ComponentPropertiesModel.js} +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/APITemplatesModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/ConditionFieldModel.js} +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/BehaviourState.js → client-actions/behaviour/zclient-actions/applications/interfaces/ConditionModel.js} +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/EventModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/EventMappingModel.js} +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/IAPITemplate.js → client-actions/behaviour/zclient-actions/applications/interfaces/IError.js} +0 -0
- /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/InputDependencies.js +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/IAPITemplates.js → client-actions/behaviour/zclient-actions/applications/interfaces/PayloadValueMappingModel.js} +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/ITemplateHelpers.js → client-actions/behaviour/zclient-actions/applications/interfaces/PropsMeta.js} +0 -0
- /package/es/platform/{zrecord/entities → client-actions/behaviour/zclient-actions/applications}/interfaces/StrategyMeta.js +0 -0
- /package/es/platform/{zdata-broker/usecases/interfaces/gateways/State.js → client-actions/behaviour/zclient-actions/applications/interfaces/UIComponentMappingModel.js} +0 -0
- /package/es/platform/{zdata-broker/usecases/interfaces/input/ExecuteActionInputModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/UserDetailsModel.js} +0 -0
- /package/es/platform/{zfield/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/gateways/IRepository.js +0 -0
- /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/gateways/IService.js +0 -0
- /package/es/platform/{zlist/usecases/interfaces → client-actions/behaviour/zclient-actions/applications/interfaces/gateways}/State.js +0 -0
- /package/es/platform/{zdata-broker/usecases/interfaces/input/FailureInputModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/input/ExecuteActionBehaviourInputModel.js} +0 -0
- /package/es/platform/{zrecord/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/FailureInputModel.js +0 -0
- /package/es/platform/{zrecord/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/FetchStateStopInputModel.js +0 -0
- /package/es/platform/{zrecord/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/InitializeInputModel.js +0 -0
- /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/NoContentInputModel.js +0 -0
- /package/es/platform/{zdata-broker/usecases/interfaces/input/RegisterInputModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/input/SetClientActionsInputModel.js} +0 -0
- /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/SuccessInputModel.js +0 -0
- /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/output/IPresenter.js +0 -0
- /package/es/platform/{zdata-broker/usecases/interactors → client-actions/behaviour/zclient-actions/applications/usecases}/AbstractUseCase.js +0 -0
- /package/es/platform/{zfield → client-actions/behaviour/zclient-actions/domain}/entities/interfaces/BehaviourState.js +0 -0
- /package/es/platform/{zfield/entities/interfaces/ActionModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionModel.js} +0 -0
- /package/es/platform/{zfield/entities/interfaces/FieldModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionsModel.js} +0 -0
- /package/es/platform/{zfield/entities/interfaces/IField.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ComponentPropertiesModel.js} +0 -0
- /package/es/platform/{zfield/entities/interfaces/IFieldManger.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ConditionFieldModel.js} +0 -0
- /package/es/platform/{zfield/usecases/interfaces/UsecaseDependencies.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ConditionModel.js} +0 -0
- /package/es/platform/{zfield/usecases/interfaces/gateways/IRestApi.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/EventMappingModel.js} +0 -0
- /package/es/platform/{zrecord → client-actions/behaviour/zclient-actions/domain}/entities/interfaces/EventModel.js +0 -0
- /package/es/platform/{zfield/usecases/interfaces/gateways/IService.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IAction.js} +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/IDataBroker.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientAction.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/gateways/ITransformState.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActionExecuteStrategy.js} +0 -0
- /package/es/platform/{zrecord/entities/interfaces/IRecord.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActionManager.js} +0 -0
- /package/es/platform/{zrecord/entities/interfaces/IRecordExecuteStrategy.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActions.js} +0 -0
- /package/es/platform/{zfield/usecases/interfaces/input/ExecuteActionInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IError.js} +0 -0
- /package/es/platform/{zfield/usecases/interfaces/input/InitialInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IEvent.js} +0 -0
- /package/es/platform/{zrecord/entities/interfaces/IRecords.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IEventMapping.js} +0 -0
- /package/es/platform/{zrecord/entities/interfaces/IRecordsManager.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IEventMappings.js} +0 -0
- /package/es/platform/{zrecord/usecases/interfaces/gateways/IService.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IPayload.js} +0 -0
- /package/es/platform/{zfield/usecases/interfaces/input/InputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/PayloadValueMappingModel.js} +0 -0
- /package/es/platform/{zfield/usecases/interfaces/input/RefetchInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/PropsMeta.js} +0 -0
- /package/es/platform/{zrecord/usecases/interfaces/gateways → client-actions/behaviour/zclient-actions/domain/entities/interfaces}/State.js +0 -0
- /package/es/platform/{zfield/usecases/interfaces/input/SetValueInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/StrategyMeta.js} +0 -0
- /package/es/platform/{zfield/usecases/interfaces/output/IPresenter.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/SubMeta.js} +0 -0
- /package/es/platform/{zhttp/usecases/interfaces/InputDependencies.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/UIComponentMappingModel.js} +0 -0
- /package/es/platform/{zhttp/usecases/interfaces/gateway/IFetchGateWay.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/UserDetailsModel.js} +0 -0
- /package/es/platform/{zhttp/usecases/interfaces/input/FetchInputModel.js → client-actions/components/action-event-mediator/applications/interfaces/UseCaseDependencies.js} +0 -0
- /package/es/platform/{zlist/entities/interfaces/ActionModel.js → client-actions/components/action-event-mediator/applications/interfaces/input/PropertiesChangeUseCaseInputModel.js} +0 -0
- /package/es/platform/{zlist/entities/interfaces/ApiPropsModel.js → client-actions/components/action-event-mediator/domain/entities/interfaces/IActionLocation.js} +0 -0
- /package/es/platform/{zlist/entities/interfaces/IList.js → client-actions/components/action-event-mediator/domain/entities/interfaces/IState.js} +0 -0
- /package/es/platform/{zlist/entities/interfaces/Properties.js → client-actions/components/dynamic-component/domain/entities/interfaces/IState.js} +0 -0
- /package/es/platform/{zlist/entities/interfaces/RecordExecuteAfterMetaData.js → client-actions/components/row-actions-renderer/domain/entities/interfaces/IState.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/gateways/IRepository.js → client-actions/template-resolver/interfaces/ITemplate.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/gateways/IService.js → client-actions/translators/interfaces/IContext.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/DeleteMultipleRecordUseCaseInput.js → client-actions/translators/interfaces/IState.js} +0 -0
- /package/es/platform/{zrecord/usecases → zdata-broker/applications}/interfaces/InputDependencies.js +0 -0
- /package/es/platform/{zrecord/usecases → zdata-broker/applications}/interfaces/gateways/IRepository.js +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/DeleteSingleRecordUseCaseInput.js → zdata-broker/applications/interfaces/gateways/State.js} +0 -0
- /package/es/platform/{zrecord/usecases → zdata-broker/applications}/interfaces/input/ExecuteActionInputModel.js +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/FetchMoreInput.js → zdata-broker/applications/interfaces/input/FailureInputModel.js} +0 -0
- /package/es/platform/{zrecord/usecases → zdata-broker/applications}/interfaces/input/NoContentInputModel.js +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/FieldChangeUseCaseInput.js → zdata-broker/applications/interfaces/input/RegisterInputModel.js} +0 -0
- /package/es/platform/{zrecord/usecases → zdata-broker/applications}/interfaces/input/SuccessInputModel.js +0 -0
- /package/es/platform/{zrecord/usecases → zdata-broker/applications}/interfaces/output/IPresenter.js +0 -0
- /package/es/platform/{zrecord/usecases/interactors → zdata-broker/applications/usecases}/AbstractUseCase.js +0 -0
- /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +0 -0
- /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/FailureUseCase.js +0 -0
- /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/NoContentUseCase.js +0 -0
- /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/RegisterUseCase.js +0 -0
- /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/SuccessUseCase.js +0 -0
- /package/es/platform/zdata-broker/{entities → domain/entities}/APITemplate.js +0 -0
- /package/es/platform/zdata-broker/{entities → domain/entities}/APITemplates.js +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/InitializeInput.js → zdata-broker/domain/entities/interfaces/APIDetailsModel.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/PropertiesChangeUseCaseInput.js → zdata-broker/domain/entities/interfaces/APITemplateModel.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/RecordExecuteFailedUseCaseInput.js → zdata-broker/domain/entities/interfaces/APITemplatesModel.js} +0 -0
- /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/ApiEnum.js +0 -0
- /package/es/platform/{zrecord → zdata-broker/domain}/entities/interfaces/BehaviourState.js +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/RecordExecuteSucceededUseCaseInput.js → zdata-broker/domain/entities/interfaces/EventModel.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/RecordUpdateUseCaseInput.js → zdata-broker/domain/entities/interfaces/IAPITemplate.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/SortingInputModel.js → zdata-broker/domain/entities/interfaces/IAPITemplates.js} +0 -0
- /package/es/platform/{zrecord/entities/interfaces/ICustomFieldValues.js → zdata-broker/domain/entities/interfaces/ITemplateHelpers.js} +0 -0
- /package/es/platform/zfield/{usecases → applications}/entities-factory/FieldBuilder.js +0 -0
- /package/es/platform/zfield/{usecases → applications}/entities-factory/FieldFactory.js +0 -0
- /package/es/platform/{zrecord/entities/interfaces/IRecordName.js → zfield/applications/interfaces/UsecaseDependencies.js} +0 -0
- /package/es/platform/{zrecord/entities/interfaces/RecordModel.js → zfield/applications/interfaces/gateways/IRepository.js} +0 -0
- /package/es/platform/{zrecord/entities/interfaces/RecordsModel.js → zfield/applications/interfaces/gateways/IRestApi.js} +0 -0
- /package/es/platform/{zrecord/usecases/interfaces/input/AppendRecordsInputModel.js → zfield/applications/interfaces/gateways/IService.js} +0 -0
- /package/es/platform/{zrecord/usecases/interfaces/input/DeleteMultipleRecordInputModel.js → zfield/applications/interfaces/input/ExecuteActionInputModel.js} +0 -0
- /package/es/platform/{zrecord/usecases/interfaces/input/FetchMoreInputModel.js → zfield/applications/interfaces/input/InitialInputModel.js} +0 -0
- /package/es/platform/{zrecord/usecases/interfaces/input/FieldChangeUseCaseInput.js → zfield/applications/interfaces/input/InputModel.js} +0 -0
- /package/es/platform/{zrecord/usecases → zfield/applications}/interfaces/input/RefetchInputModel.js +0 -0
- /package/es/platform/{zrecord/usecases/interfaces/input/RecordUpdateLocalUseCaseInputModel.js → zfield/applications/interfaces/input/SetValueInputModel.js} +0 -0
- /package/es/platform/{zrecord/usecases/interfaces/input/SetRecordsInputModel.js → zfield/applications/interfaces/output/IPresenter.js} +0 -0
- /package/es/platform/zfield/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
- /package/es/platform/zfield/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +0 -0
- /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchFailureUseCase.js +0 -0
- /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchNoContentUseCase.js +0 -0
- /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchSuccessUseCase.js +0 -0
- /package/es/platform/zfield/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
- /package/es/platform/zfield/{usecases/interactors → applications/usecases}/RefetchUseCase.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/BooleanField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/CurrencyField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/DateField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/DateTimeField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/EmailField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/Field.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/LookupField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/MultiLineField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/MultiSelectField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/PercentageField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/PhoneField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/PickListField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/SingleLineField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/URLField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/index.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/interfaces/FieldApiName.js +0 -0
- /package/es/platform/zhttp/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
- /package/es/platform/zhttp/{usecases/interactors → applications/usecases}/FetchUseCase.js +0 -0
- /package/es/platform/zlist/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
- /package/es/platform/zlist/{usecases/interactors → applications/usecases}/DeleteMultipleRecordUseCase.js +0 -0
- /package/es/platform/zlist/{usecases/interactors → applications/usecases}/DeleteSingleRecordUseCase.js +0 -0
- /package/es/platform/zlist/{usecases/interactors → applications/usecases}/FetchMoreUseCase.js +0 -0
- /package/es/platform/zlist/{usecases/interactors → applications/usecases}/FieldChangeUseCase.js +0 -0
- /package/es/platform/zlist/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
- /package/es/platform/zlist/{usecases/interactors → applications/usecases}/PropertiesChangeUseCase.js +0 -0
- /package/es/platform/zlist/{usecases/interactors → applications/usecases}/RecordExecuteFailedUseCase.js +0 -0
- /package/es/platform/zlist/{usecases/interactors → applications/usecases}/RecordExecuteSucceededUseCase.js +0 -0
- /package/es/platform/zlist/{usecases/interactors → applications/usecases}/RecordUpdateUseCase.js +0 -0
- /package/es/platform/zlist/{usecases/interactors → applications/usecases}/SortUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/AppendRecordsUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/DeleteMultipleRecordUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FailureUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FetchMoreUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FetchStateStopUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FieldChangeUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/NoContentUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/RecordUpdateLocalUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/RefetchUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/SetRecordsUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/SuccessUseCase.js +0 -0
- /package/es/platform/zrecord/{entities → domain/entities}/CustomFieldValues.js +0 -0
- /package/es/platform/zrecord/{entities → domain/entities}/Record.js +0 -0
- /package/es/platform/zrecord/{entities → domain/entities}/Records.js +0 -0
- /package/es/platform/zrecord/{entities → domain/entities}/interfaces/ApiEnum.js +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Flex from '@zohodesk/layout/es/Flex/Flex';
|
|
3
|
+
import DynamicActionComponent from "../../../dynamic-component/frameworks/ui/DynamicActionComponent";
|
|
4
|
+
|
|
5
|
+
function RowActionsRendererView(_ref, ref) {
|
|
6
|
+
let {
|
|
7
|
+
state
|
|
8
|
+
} = _ref;
|
|
9
|
+
const {
|
|
10
|
+
actions
|
|
11
|
+
} = state.properties;
|
|
12
|
+
return /*#__PURE__*/React.createElement(Flex, {
|
|
13
|
+
ref: ref,
|
|
14
|
+
$ui_displayMode: "inline",
|
|
15
|
+
$ui_alignItems: "center"
|
|
16
|
+
}, actions.map((action, index) => {
|
|
17
|
+
return /*#__PURE__*/React.createElement(DynamicActionComponent, {
|
|
18
|
+
action: action,
|
|
19
|
+
key: index
|
|
20
|
+
});
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
;
|
|
25
|
+
export default RowActionsRendererView;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export default class TemplateResolver {
|
|
2
|
+
static getPathValue(path, obj) {
|
|
3
|
+
return path.split('.').reduce(function (prev, curr) {
|
|
4
|
+
return prev !== undefined ? prev[curr] : undefined;
|
|
5
|
+
}, obj);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
static replaceContextVariables(inputString, replacementObj) {
|
|
9
|
+
return inputString.replace(/{{(.*?)}}/g, (match, key) => {
|
|
10
|
+
let value = this.getPathValue(key.trim(), replacementObj);
|
|
11
|
+
|
|
12
|
+
if (Array.isArray(value) || value instanceof Object) {
|
|
13
|
+
return JSON.stringify(value);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return value !== undefined ? value.toString() : match;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static isOnlyContextVariables(inputString) {
|
|
21
|
+
return /^{{(.*?)}}$/.test(inputString);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
static replaceContextVariablesInObject(properties, replacementObj) {
|
|
25
|
+
const replaced = {};
|
|
26
|
+
Object.entries(properties).forEach(_ref => {
|
|
27
|
+
let [key, value] = _ref;
|
|
28
|
+
|
|
29
|
+
if (typeof value === 'string' && this.isOnlyContextVariables(value)) {
|
|
30
|
+
const path = value.replace(/{{(.*?)}}/g, '$1');
|
|
31
|
+
const pathValue = this.getPathValue(path, replacementObj);
|
|
32
|
+
replaced[key] = pathValue !== undefined ? pathValue : `{{${path}}}`;
|
|
33
|
+
} else if (typeof value === 'string' && value.includes('{{')) {
|
|
34
|
+
replaced[key] = this.replaceContextVariables(value, replacementObj);
|
|
35
|
+
} else if (typeof value === 'object' && value !== null) {
|
|
36
|
+
replaced[key] = this.replaceContextVariablesInObject(value, replacementObj);
|
|
37
|
+
} else {
|
|
38
|
+
replaced[key] = value;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return Array.isArray(properties) ? Object.values(replaced) : replaced;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ActionContextResolver } from "../context-resolver";
|
|
2
|
+
import { ConditionResolver } from "../condition-resolver";
|
|
3
|
+
export default class ClientActionsTranslator {
|
|
4
|
+
constructor() {}
|
|
5
|
+
|
|
6
|
+
static transformToActionViewModel(action) {
|
|
7
|
+
return {
|
|
8
|
+
id: action.id,
|
|
9
|
+
component: action.uiComponentMapping.component,
|
|
10
|
+
properties: action.uiComponentMapping.propertiesValueMapping,
|
|
11
|
+
eventMappings: action.uiComponentMapping.eventMappings.map(eventMapping => {
|
|
12
|
+
return {
|
|
13
|
+
sourceEvent: eventMapping.sourceEvent,
|
|
14
|
+
id: eventMapping.id,
|
|
15
|
+
targetEvent: eventMapping.targetEvent,
|
|
16
|
+
payload: eventMapping.payloadValueMapping
|
|
17
|
+
};
|
|
18
|
+
})
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static transform(actions, context) {
|
|
23
|
+
const resolvedActions = ActionContextResolver.resolveActions(actions, context);
|
|
24
|
+
const evaluatedActions = resolvedActions.filter(action => ConditionResolver.evaluateCondition(action.conditions, context, action.id));
|
|
25
|
+
const finalTransformedActions = evaluatedActions.map(action => this.transformToActionViewModel(action));
|
|
26
|
+
return finalTransformedActions;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { evalIsEmpty } from "./EvalIsEmpty";
|
|
2
|
+
import { evalEmptyString } from "./EvalEmptyString";
|
|
3
|
+
import { evalEndsWith } from "./EvalEndsWith";
|
|
4
|
+
import { evalEquals } from "./EvalEquals";
|
|
5
|
+
import { evalGreaterThan } from "./EvalGreaterThan";
|
|
6
|
+
import { evalGreaterThanOrEquals } from "./EvalGreaterThanOrEquals";
|
|
7
|
+
import { evalIn } from "./EvalIn";
|
|
8
|
+
import { evalLike } from "./EvalLike";
|
|
9
|
+
import { evalLessThan } from "./EvalLessThan";
|
|
10
|
+
import { evalLessThanOrEquals } from "./EvalLessThanOrEquals";
|
|
11
|
+
import { EvalIsNotEmpty } from "./EvalIsNotEmpty";
|
|
12
|
+
import { evalNotEquals } from "./EvalNotEquals";
|
|
13
|
+
import { evalNotLike } from "./EvalNotLike";
|
|
14
|
+
import { evalStartsWith } from "./EvalStartsWith";
|
|
15
|
+
const opers = {
|
|
16
|
+
'ISEMPTY': evalIsEmpty,
|
|
17
|
+
'EMPTYSTRING': evalEmptyString,
|
|
18
|
+
'ENDSWITH': evalEndsWith,
|
|
19
|
+
'=': evalEquals,
|
|
20
|
+
'>': evalGreaterThan,
|
|
21
|
+
'>=': evalGreaterThanOrEquals,
|
|
22
|
+
'IN': evalIn,
|
|
23
|
+
'LIKE': evalLike,
|
|
24
|
+
'<': evalLessThan,
|
|
25
|
+
'<=': evalLessThanOrEquals,
|
|
26
|
+
'ISNOTEMPTY': EvalIsNotEmpty,
|
|
27
|
+
'!=': evalNotEquals,
|
|
28
|
+
'NOT LIKE': evalNotLike,
|
|
29
|
+
'STARTSWITH': evalStartsWith
|
|
30
|
+
};
|
|
31
|
+
const platformOpers = {
|
|
32
|
+
'=': opers['='],
|
|
33
|
+
'is': opers['='],
|
|
34
|
+
'starts with': opers['STARTSWITH'],
|
|
35
|
+
'ends with': opers['ENDSWITH'],
|
|
36
|
+
'contains': opers['LIKE'],
|
|
37
|
+
"doesn't contain": opers['NOT LIKE'],
|
|
38
|
+
"is empty": opers["ISEMPTY"],
|
|
39
|
+
"is not empty": opers["ISNOTEMPTY"],
|
|
40
|
+
'<': opers['<'],
|
|
41
|
+
'>': opers['>'],
|
|
42
|
+
'<=': opers['<='],
|
|
43
|
+
'>=': opers['>='],
|
|
44
|
+
'<>': opers['!='],
|
|
45
|
+
'in': opers["IN"]
|
|
46
|
+
};
|
|
47
|
+
export function evaluateConditionsFields(conditions, context) {
|
|
48
|
+
return conditions.map(_ref => {
|
|
49
|
+
let {
|
|
50
|
+
fieldName,
|
|
51
|
+
condition,
|
|
52
|
+
value
|
|
53
|
+
} = _ref;
|
|
54
|
+
const resolvedValue = value.join(',');
|
|
55
|
+
if (fieldName == null && value == null || value.length == 0) return true;
|
|
56
|
+
return platformOpers[condition](fieldName, resolvedValue, context);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { patternValidate } from "./pattern-evaluator/PatternValidator";
|
|
2
|
+
import { evaluateConditionsFields } from "./field-evaluators";
|
|
3
|
+
import { evaluateExpression, parse } from "./pattern-evaluator";
|
|
4
|
+
export class ConditionResolver {
|
|
5
|
+
static evaluateCondition(condition, context, id) {
|
|
6
|
+
const {
|
|
7
|
+
fields = [],
|
|
8
|
+
pattern = ''
|
|
9
|
+
} = condition;
|
|
10
|
+
|
|
11
|
+
if (fields.length > 0 && pattern.length > 0) {
|
|
12
|
+
const {
|
|
13
|
+
isValid,
|
|
14
|
+
errorMessage,
|
|
15
|
+
pattern: validatedPattern
|
|
16
|
+
} = patternValidate(pattern, fields.length);
|
|
17
|
+
|
|
18
|
+
if (!isValid) {
|
|
19
|
+
console.error(`Error in client action id ${id} - condition pattern`, errorMessage);
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const resolvedFields = evaluateConditionsFields(fields, context);
|
|
24
|
+
const transformedPattern = validatedPattern.replace(/and/g, '&&').replace(/or/g, '||');
|
|
25
|
+
const ast = parse(transformedPattern);
|
|
26
|
+
const isValidCondition = evaluateExpression(ast, resolvedFields);
|
|
27
|
+
return isValidCondition;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* eslint-disable max-lines-per-function */
|
|
2
|
+
export function patternValidate() {
|
|
3
|
+
let patternString = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
4
|
+
let conditionsLength = arguments.length > 1 ? arguments[1] : undefined;
|
|
5
|
+
|
|
6
|
+
if (!patternString.trim()) {
|
|
7
|
+
return {
|
|
8
|
+
errorMessage: 'Pattern cannot be empty',
|
|
9
|
+
isValid: false
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const isValid = true;
|
|
14
|
+
const patternStr = patternString.replace(/\s+/g, '');
|
|
15
|
+
const openBracketsLen = (patternStr.match(/\(/gi) || []).length;
|
|
16
|
+
const closeBractsLen = (patternStr.match(/\)/gi) || []).length;
|
|
17
|
+
|
|
18
|
+
if (openBracketsLen !== closeBractsLen) {
|
|
19
|
+
return {
|
|
20
|
+
errorMessage: 'Pattern brackets do not match',
|
|
21
|
+
isValid: false
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
let brackStr = patternStr.replace(/#/g, '~');
|
|
26
|
+
brackStr = patternStr.replace(/(and|or)/g, '#');
|
|
27
|
+
|
|
28
|
+
if (brackStr.indexOf('(#') !== -1 || brackStr.indexOf('#)') !== -1) {
|
|
29
|
+
return {
|
|
30
|
+
errorMessage: 'Invalid brackets surrounding condition operator(s).',
|
|
31
|
+
isValid: false
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (brackStr.indexOf('()') !== -1) {
|
|
36
|
+
return {
|
|
37
|
+
errorMessage: 'Pattern brackets do not match',
|
|
38
|
+
isValid: false
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const matchedNumbers = patternStr.match(/[0-9]+/g);
|
|
43
|
+
const patternNumbers = matchedNumbers ? matchedNumbers : [];
|
|
44
|
+
const patternNumbersLen = patternNumbers.length;
|
|
45
|
+
|
|
46
|
+
for (let i = 0; i < patternNumbersLen; i++) {
|
|
47
|
+
const currentNumber = parseInt(patternNumbers[i]);
|
|
48
|
+
|
|
49
|
+
if (currentNumber !== i + 1) {
|
|
50
|
+
return {
|
|
51
|
+
errorMessage: 'Please check the conditions number in the pattern.',
|
|
52
|
+
isValid: false
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const patternEmpty = brackStr.replace(/[()]/g, '#').replace(/[0-9]+/g, '#').replace(/#/g, '');
|
|
58
|
+
|
|
59
|
+
if (patternEmpty && patternEmpty.length >= 1) {
|
|
60
|
+
return {
|
|
61
|
+
errorMessage: 'Invalid content in this pattern',
|
|
62
|
+
isValid: false
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const andOrCount = (patternStr.match(/(and|or)/gi) || []).length;
|
|
67
|
+
|
|
68
|
+
if (conditionsLength - 1 !== andOrCount) {
|
|
69
|
+
return {
|
|
70
|
+
errorMessage: 'Number of conditions in this pattern do not match with the conditions entered',
|
|
71
|
+
isValid: false
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (patternNumbersLen !== conditionsLength) {
|
|
76
|
+
return {
|
|
77
|
+
errorMessage: 'Number of conditions in this pattern do not match with the conditions given.',
|
|
78
|
+
isValid: false
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
isValid,
|
|
84
|
+
pattern: patternStr
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* eslint-disable max-lines-per-function */
|
|
2
|
+
import jsep from 'jsep';
|
|
3
|
+
const binops = {
|
|
4
|
+
'||': function (a, b) {
|
|
5
|
+
return a || b;
|
|
6
|
+
},
|
|
7
|
+
'&&': function (a, b) {
|
|
8
|
+
return a && b;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
const unops = {
|
|
12
|
+
'-': function (a) {
|
|
13
|
+
return -a;
|
|
14
|
+
},
|
|
15
|
+
'+': function (a) {
|
|
16
|
+
return +a;
|
|
17
|
+
},
|
|
18
|
+
'~': function (a) {
|
|
19
|
+
return ~a;
|
|
20
|
+
},
|
|
21
|
+
'!': function (a) {
|
|
22
|
+
return !a;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
function evaluateArray(list, context) {
|
|
27
|
+
return list.map(function (v) {
|
|
28
|
+
return evaluate(v, context);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function evaluateMember(node, context) {
|
|
33
|
+
const object = evaluate(node.object, context);
|
|
34
|
+
|
|
35
|
+
if (node.computed) {
|
|
36
|
+
return [object, object[evaluate(node.property, context)]];
|
|
37
|
+
} else {
|
|
38
|
+
return [object, object[node.property.name]];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function evaluate(node, context) {
|
|
43
|
+
switch (node.type) {
|
|
44
|
+
case 'ArrayExpression':
|
|
45
|
+
return evaluateArray(node.elements, context);
|
|
46
|
+
|
|
47
|
+
case 'BinaryExpression':
|
|
48
|
+
return binops[node.operator](evaluate(node.left, context), evaluate(node.right, context));
|
|
49
|
+
|
|
50
|
+
case 'CallExpression':
|
|
51
|
+
let caller, fn, assign;
|
|
52
|
+
|
|
53
|
+
if (node.callee.type === 'MemberExpression') {
|
|
54
|
+
assign = evaluateMember(node.callee, context);
|
|
55
|
+
caller = assign[0];
|
|
56
|
+
fn = assign[1];
|
|
57
|
+
} else {
|
|
58
|
+
fn = evaluate(node.callee, context);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (typeof fn !== 'function') {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return fn.apply(caller, evaluateArray(node.arguments, context));
|
|
66
|
+
|
|
67
|
+
case 'ConditionalExpression':
|
|
68
|
+
return evaluate(node.test, context) ? evaluate(node.consequent, context) : evaluate(node.alternate, context);
|
|
69
|
+
|
|
70
|
+
case 'Literal':
|
|
71
|
+
return context[node.value - 1];
|
|
72
|
+
|
|
73
|
+
case 'LogicalExpression':
|
|
74
|
+
if (node.operator === '||') {
|
|
75
|
+
return evaluate(node.left, context) || evaluate(node.right, context);
|
|
76
|
+
} else if (node.operator === '&&') {
|
|
77
|
+
return evaluate(node.left, context) && evaluate(node.right, context);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return binops[node.operator](evaluate(node.left, context), evaluate(node.right, context));
|
|
81
|
+
|
|
82
|
+
case 'MemberExpression':
|
|
83
|
+
return evaluateMember(node, context)[1];
|
|
84
|
+
|
|
85
|
+
case 'ThisExpression':
|
|
86
|
+
return context;
|
|
87
|
+
|
|
88
|
+
case 'UnaryExpression':
|
|
89
|
+
return unops[node.operator](evaluate(node.argument, context));
|
|
90
|
+
|
|
91
|
+
default:
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export { jsep as parse, evaluate as evaluateExpression };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import TemplateResolver from "../../template-resolver";
|
|
2
|
+
export class ActionContextResolver {
|
|
3
|
+
constructor() {}
|
|
4
|
+
|
|
5
|
+
static resolveContextInEventMappingPayload(eventMapping, context) {
|
|
6
|
+
return { ...eventMapping,
|
|
7
|
+
payloadValueMapping: TemplateResolver.replaceContextVariablesInObject(eventMapping.payloadValueMappingMeta, context)
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
static resolveConditionValueContext(condition, templateContext) {
|
|
12
|
+
const {
|
|
13
|
+
fields = [],
|
|
14
|
+
pattern
|
|
15
|
+
} = condition;
|
|
16
|
+
const resolvedFields = fields.map(field => {
|
|
17
|
+
const resolvedValue = TemplateResolver.replaceContextVariables(field.value.join(","), templateContext);
|
|
18
|
+
return { ...field,
|
|
19
|
+
value: resolvedValue.split(",")
|
|
20
|
+
};
|
|
21
|
+
});
|
|
22
|
+
return { ...condition,
|
|
23
|
+
pattern,
|
|
24
|
+
fields: resolvedFields
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
static resolveContextInProperties(properties, templateContext) {
|
|
29
|
+
return TemplateResolver.replaceContextVariablesInObject(properties, templateContext);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static resolveAction(action, context) {
|
|
33
|
+
const eventMappings = action.uiComponentMapping.eventMappings;
|
|
34
|
+
const conditions = action.conditionsMeta;
|
|
35
|
+
const resolvedEventMappings = eventMappings.map(eventMapping => this.resolveContextInEventMappingPayload(eventMapping, context));
|
|
36
|
+
const resolvedProperty = this.resolveContextInProperties(action.uiComponentMapping.propertiesValueMappingMeta, context);
|
|
37
|
+
const resolveConditionValues = this.resolveConditionValueContext(conditions, context);
|
|
38
|
+
return { ...action,
|
|
39
|
+
conditions: resolveConditionValues,
|
|
40
|
+
uiComponentMapping: { ...action.uiComponentMapping,
|
|
41
|
+
propertiesValueMapping: resolvedProperty,
|
|
42
|
+
eventMappings: resolvedEventMappings
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static resolveActions(actions, context) {
|
|
48
|
+
const replacementContext = {
|
|
49
|
+
"@context": context
|
|
50
|
+
};
|
|
51
|
+
return actions ? actions.map(action => this.resolveAction(action, replacementContext)) : [];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
let getClientActions = {
|
|
2
|
+
name: "uiActions",
|
|
3
|
+
api: "/{{servicePrefix}}/{{orgName}}/api/v1/clientActions",
|
|
4
|
+
parameters: `{
|
|
5
|
+
"from":{{from}},
|
|
6
|
+
"limit":{{limit}},
|
|
7
|
+
"library": "{{library}}",
|
|
8
|
+
"module": "{{moduleName}}"
|
|
9
|
+
}`,
|
|
10
|
+
type: "GET",
|
|
11
|
+
transformer: data => data,
|
|
12
|
+
properties: {
|
|
13
|
+
modelName: {
|
|
14
|
+
required: true,
|
|
15
|
+
typeMetadata: {
|
|
16
|
+
schema: {
|
|
17
|
+
type: "string"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export default getClientActions;
|
|
@@ -4,7 +4,7 @@ import updateRecord from "./http-template/updateRecord";
|
|
|
4
4
|
import deleteRecords from "./http-template/deleteRecords";
|
|
5
5
|
import getAvailableFields from "./http-template/getAvailableFields";
|
|
6
6
|
import getSelectedFields from "./http-template/getSelectedFields";
|
|
7
|
-
import
|
|
7
|
+
import getClientActions from "./http-template/getClientActions";
|
|
8
8
|
import { RecordApiActionName } from "../../bc/zrecord/Constants";
|
|
9
9
|
import deleteRecord from "./http-template/deleteRecord";
|
|
10
10
|
let record = {
|
|
@@ -13,9 +13,9 @@ let record = {
|
|
|
13
13
|
[RecordApiActionName.UPDATE_RECORD]: updateRecord,
|
|
14
14
|
[RecordApiActionName.DELETE_RECORDS]: deleteRecords,
|
|
15
15
|
[RecordApiActionName.DELETE_RECORD]: deleteRecord,
|
|
16
|
+
[RecordApiActionName.GET_CLIENTACTIONS]: getClientActions,
|
|
16
17
|
getAvailableFields,
|
|
17
|
-
getSelectedFields
|
|
18
|
-
getUIActions
|
|
18
|
+
getSelectedFields
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
export default record; // let ticketsRecordSerice = createRecord(tickets, () => {});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
|
|
3
|
-
import DataBrokerFactory from "../../
|
|
3
|
+
import DataBrokerFactory from "../../applications/entities-factory/DataBrokerFactory";
|
|
4
4
|
export default class Repository {
|
|
5
5
|
constructor() {
|
|
6
6
|
_defineProperty(this, "state", void 0);
|