@zohodesk/library-platform 1.1.0-exp.2 → 1.1.1
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/README.md +2 -2
- package/es/bc/list-selection/Constants.js +8 -1
- package/es/bc/list-selection/Properties.js +6 -2
- package/es/bc/{zdata-broker → zdata-source}/Actions.js +6 -6
- package/es/bc/{zdata-broker → zdata-source}/Constants.js +6 -5
- package/es/bc/zdata-source/EventHandlers.js +2 -0
- package/es/bc/zdata-source/Symbols.js +5 -0
- package/es/bc/zfield/ActionHandlers.js +1 -1
- package/es/bc/zlist/EventHandlers.js +1 -1
- package/es/bc/zlist/Properties.js +25 -32
- package/es/cc/action-icon/Properties.js +31 -0
- package/es/cc/action-location/Properties.js +9 -24
- package/es/cc/table-connected/Properties.js +11 -57
- package/es/cc/table-connected/constants/Events.js +7 -0
- package/es/cc/table-connected/constants/index.js +1 -0
- package/es/cc/table-connected/index.js +4 -0
- package/es/cc/table-list/Properties.js +44 -2
- package/es/cc/table-list/data-types/Header.js +6 -0
- package/es/desk-frameworks/table-connected/frameworks/EventHandlersFactory.js +33 -1
- package/es/desk-frameworks/table-connected/frameworks/ListSdkFactory.js +118 -2
- package/es/desk-frameworks/table-connected/frameworks/TableConnectedFactory.js +24 -9
- package/es/desk-frameworks/table-connected/frameworks/TableConnectedView.js +7 -2
- package/es/library/behaviours/list-selection/adapters/controllers/AllSelectionController.js +5 -2
- package/es/library/behaviours/list-selection/adapters/controllers/DeselectController.js +26 -0
- package/es/library/behaviours/list-selection/adapters/controllers/RangeSelectionController.js +4 -2
- package/es/library/behaviours/list-selection/adapters/controllers/SelectController.js +26 -0
- package/es/library/behaviours/list-selection/adapters/controllers/SelectionController.js +4 -2
- package/es/library/behaviours/list-selection/adapters/gateways/Repository.js +3 -3
- package/es/library/behaviours/list-selection/adapters/gateways/Service.js +8 -0
- package/es/library/behaviours/list-selection/applications/usecases/AllItemSelection.js +5 -1
- package/es/library/behaviours/list-selection/applications/usecases/Deselect.js +21 -0
- package/es/library/behaviours/list-selection/applications/usecases/ItemsSelection.js +3 -1
- package/es/library/behaviours/list-selection/applications/usecases/RangeSelection.js +3 -1
- package/es/library/behaviours/list-selection/applications/usecases/Select.js +21 -0
- package/es/library/behaviours/list-selection/domain/entities/ListItemSelection.js +86 -28
- package/es/library/behaviours/list-selection/frameworks/ActionHandlerFactory.js +5 -1
- package/es/library/custom-component/domain/entities/{Events.js → Event.js} +12 -3
- package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +4 -2
- package/es/library/dot/components/table-list/adapters/presenters/TableTranslator.js +9 -4
- package/es/library/dot/components/table-list/frameworks/ui/TableList.js +1 -2
- package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +3 -2
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +5 -2
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +16 -3
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/SelectAll.js +2 -1
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +6 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +16 -3
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowSelection.js +1 -2
- package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/ActionIcon.js +18 -2
- package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/ActionIconView.js +75 -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/{zclient-actions → client-actions/behaviour/zclient-actions}/Readme.md +14 -21
- package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/usecases/ExecuteActionBehaviourUseCase.js +1 -1
- package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/usecases/InitializeUseCase.js +2 -2
- package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/ClientAction.js +12 -4
- package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/ClientActionManager.js +9 -9
- package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/ClientActions.js +0 -4
- package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/EventMapping.js +5 -1
- package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/UIComponentMapping.js +7 -3
- package/es/platform/{zclient-actions/frameworks/ClientActionBehaviourFactory.js → client-actions/behaviour/zclient-actions/frameworks/ClientActionsBehaviourFactory.js} +1 -1
- package/es/platform/client-actions/cc/action-event-mediator/Properties.js +34 -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/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/domain/entities/interfaces/IState.js +1 -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 +19 -0
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/EventHandlersFactory.js +30 -0
- package/es/platform/client-actions/components/dynamic-component/domain/entities/interfaces/IState.js +1 -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 +7 -0
- package/es/platform/client-actions/components/interfaces/EventMappingViewModel.js +0 -0
- package/es/platform/client-actions/components/row-actions-renderer/domain/entities/interfaces/IState.js +1 -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/RowActionsRenderer.module.css +17 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRendererView.js +30 -0
- package/es/platform/client-actions/template-resolver/index.js +44 -0
- package/es/platform/client-actions/template-resolver/interfaces/ITemplate.js +1 -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/client-actions/translators/interfaces/IContext.js +1 -0
- package/es/platform/client-actions/translators/interfaces/IState.js +1 -0
- package/es/platform/data-source/dbc/index.js +1 -0
- package/es/platform/{data-broker → data-source}/http-template/getAvailableFields.js +5 -5
- package/es/platform/{data-broker → data-source}/http-template/getClientActions.js +4 -4
- package/es/platform/{data-broker → data-source}/http-template/getSelectedFields.js +5 -5
- package/es/platform/{data-broker → data-source}/index.js +2 -2
- package/es/platform/{data-broker → data-source}/utils/transformer/CreateCf.js +1 -1
- package/es/platform/{zdata-broker/adapters/controllers/DataBrokerExecutorController.js → zdata-source/adapters/controllers/DataSourceExecutorController.js} +1 -1
- package/es/platform/{zdata-broker → zdata-source}/adapters/gateways/Repository.js +5 -5
- package/es/platform/{zdata-broker → zdata-source}/adapters/presenters/Presenter.js +4 -4
- package/es/platform/{zdata-broker/applications/entities-factory/DataBrokerFactory.js → zdata-source/applications/entities-factory/DataSourceFactory.js} +3 -4
- package/es/platform/zdata-source/applications/interfaces/InputDependencies.js +1 -0
- package/es/platform/zdata-source/applications/interfaces/gateways/IRepository.js +1 -0
- package/es/platform/zdata-source/applications/interfaces/gateways/IService.js +0 -0
- package/es/platform/zdata-source/applications/interfaces/gateways/State.js +1 -0
- package/es/platform/zdata-source/applications/interfaces/input/ExecuteActionInputModel.js +1 -0
- package/es/platform/zdata-source/applications/interfaces/input/FailureInputModel.js +1 -0
- package/es/platform/zdata-source/applications/interfaces/input/NoContentInputModel.js +1 -0
- package/es/platform/zdata-source/applications/interfaces/input/RegisterInputModel.js +1 -0
- package/es/platform/zdata-source/applications/interfaces/input/SuccessInputModel.js +1 -0
- package/es/platform/zdata-source/applications/interfaces/output/IPresenter.js +1 -0
- package/es/platform/{zdata-broker → zdata-source}/applications/usecases/ExecuteActionUseCase.js +3 -3
- package/es/platform/{zdata-broker → zdata-source}/applications/usecases/FailureUseCase.js +3 -3
- package/es/platform/{zdata-broker → zdata-source}/applications/usecases/NoContentUseCase.js +3 -3
- package/es/platform/{zdata-broker → zdata-source}/applications/usecases/SuccessUseCase.js +4 -4
- package/es/platform/{zdata-broker/domain/entities/DataBroker.js → zdata-source/domain/entities/DataSource.js} +12 -12
- package/es/platform/zdata-source/domain/entities/interfaces/APIDetailsModel.js +1 -0
- package/es/platform/zdata-source/domain/entities/interfaces/APITemplateModel.js +1 -0
- package/es/platform/zdata-source/domain/entities/interfaces/APITemplatesModel.js +1 -0
- package/es/platform/zdata-source/domain/entities/interfaces/BehaviourState.js +1 -0
- package/es/platform/zdata-source/domain/entities/interfaces/EventModel.js +1 -0
- package/es/platform/zdata-source/domain/entities/interfaces/IAPITemplate.js +1 -0
- package/es/platform/zdata-source/domain/entities/interfaces/IAPITemplates.js +1 -0
- package/es/platform/zdata-source/domain/entities/interfaces/IDataSource.js +0 -0
- package/es/platform/zdata-source/domain/entities/interfaces/ITemplateHelpers.js +1 -0
- package/es/platform/zdata-source/domain/entities/interfaces/MetaData.js +1 -0
- package/es/platform/{zdata-broker → zdata-source}/frameworks/DataBrokerBehaviourFactory.js +2 -2
- package/es/platform/{zdata-broker → zdata-source}/frameworks/EventHandlersFactory.js +7 -12
- package/es/platform/zfield/applications/usecases/ExecuteActionUseCase.js +1 -1
- package/es/platform/zfield/applications/usecases/InitializeUseCase.js +2 -2
- package/es/platform/zfield/applications/usecases/RefetchUseCase.js +1 -1
- package/es/platform/zfield/domain/entities/fields-manager/FieldsManager.js +5 -5
- package/es/platform/zfield/frameworks/ActionHandlerFactory.js +4 -4
- package/es/platform/zlist/adapters/controllers/DeleteSuccessController.js +25 -0
- package/es/platform/zlist/adapters/controllers/UpdateSuccessController.js +25 -0
- package/es/platform/zlist/adapters/gateways/Repository.js +11 -10
- package/es/platform/zlist/adapters/gateways/Service.js +8 -0
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +47 -34
- package/es/platform/zlist/adapters/presenters/translators/ColumnSizeTranslator.js +2 -2
- package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +16 -8
- package/es/platform/zlist/adapters/presenters/translators/Header.js +7 -2
- package/es/platform/zlist/adapters/presenters/translators/HeadersTranslator.js +4 -2
- package/es/platform/zlist/adapters/presenters/translators/Row.js +10 -6
- package/es/platform/zlist/adapters/presenters/translators/RowActionTranslator.js +6 -6
- package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +7 -5
- package/es/platform/zlist/adapters/presenters/translators/actions/ActionsTranslator.js +89 -0
- package/es/platform/zlist/adapters/presenters/translators/interfaces/Context.js +1 -0
- package/es/platform/zlist/adapters/presenters/translators/interfaces/FieldComponentMapping.js +1 -0
- package/es/platform/zlist/applications/entities-factory/ListFactory.js +3 -3
- package/es/platform/zlist/applications/usecases/DeleteSuccessUseCase.js +19 -0
- package/es/platform/zlist/applications/usecases/UpdateSuccessUseCase.js +19 -0
- package/es/platform/zlist/domain/entities/List.js +50 -11
- package/es/platform/zlist/frameworks/EventHandlersFactory.js +17 -23
- package/es/platform/zrecord/applications/usecases/ExecuteActionUseCase.js +1 -1
- package/es/platform/zrecord/applications/usecases/FetchMoreUseCase.js +1 -1
- package/es/platform/zrecord/applications/usecases/InitializeUseCase.js +2 -2
- package/es/platform/zrecord/applications/usecases/RefetchUseCase.js +1 -1
- package/es/platform/zrecord/domain/entities/RecordsManager.js +10 -10
- package/package.json +4 -3
- package/es/bc/zdata-broker/EventHandlers.js +0 -2
- package/es/bc/zdata-broker/Symbols.js +0 -5
- package/es/desk-frameworks/table-connected/frameworks/__tests__/TableConnectedFactory.spec.js +0 -453
- package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/http-template/getAvailableFields.js +0 -86
- package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/http-template/getRecords.js +0 -81
- package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/http-template/getSelectedFields.js +0 -32
- package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/index.js +0 -11
- package/es/platform/zdata-broker/domain/entities/interfaces/MetaData.js +0 -1
- /package/es/bc/{zdata-broker → zdata-source}/Properties.js +0 -0
- /package/es/{platform/data-broker/dbc/index.js → library/behaviours/list-selection/applications/interfaces/input/DeselectInputModel.js} +0 -0
- /package/es/{platform/zclient-actions/applications/interfaces/InputDependencies.js → library/behaviours/list-selection/applications/interfaces/input/SelectInputModel.js} +0 -0
- /package/es/{platform/zclient-actions → library/custom-component}/domain/entities/interfaces/EventModel.js +0 -0
- /package/es/{bc → platform/client-actions/bc}/zclient-actions/Constants.js +0 -0
- /package/es/{bc → platform/client-actions/bc}/zclient-actions/EventHandlers.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/adapters/controllers/AbstractController.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/adapters/controllers/ClientActionBehaviourExecutorController.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/adapters/controllers/FailureController.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/adapters/controllers/FetchStateStopController.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/adapters/controllers/MountController.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/adapters/controllers/NoContentController.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/adapters/controllers/SetClientActionsController.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/adapters/controllers/SuccessController.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/adapters/gateways/Repository.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/adapters/gateways/Service.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/adapters/presenters/Presenter.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/entities-factory/ClientActionFactory.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/entities-factory/ClientActionManagerFactory.js +0 -0
- /package/es/platform/{zclient-actions/domain/entities → client-actions/behaviour/zclient-actions/applications}/interfaces/ClientActionModel.js +0 -0
- /package/es/platform/{zclient-actions/domain/entities → client-actions/behaviour/zclient-actions/applications}/interfaces/ComponentPropertiesModel.js +0 -0
- /package/es/platform/{zclient-actions/applications/interfaces/gateways/IRepository.js → client-actions/behaviour/zclient-actions/applications/interfaces/ConditionFieldModel.js} +0 -0
- /package/es/platform/{zclient-actions/applications/interfaces/gateways/State.js → client-actions/behaviour/zclient-actions/applications/interfaces/ConditionModel.js} +0 -0
- /package/es/platform/{zclient-actions/domain/entities → client-actions/behaviour/zclient-actions/applications}/interfaces/EventMappingModel.js +0 -0
- /package/es/platform/{zclient-actions/domain/entities → client-actions/behaviour/zclient-actions/applications}/interfaces/IError.js +0 -0
- /package/es/platform/{zdata-broker → client-actions/behaviour/zclient-actions}/applications/interfaces/InputDependencies.js +0 -0
- /package/es/platform/{zclient-actions/domain/entities → client-actions/behaviour/zclient-actions/applications}/interfaces/PayloadValueMappingModel.js +0 -0
- /package/es/platform/{zclient-actions/domain/entities → client-actions/behaviour/zclient-actions/applications}/interfaces/PropsMeta.js +0 -0
- /package/es/platform/{zclient-actions/domain/entities → client-actions/behaviour/zclient-actions/applications}/interfaces/StrategyMeta.js +0 -0
- /package/es/platform/{zclient-actions/domain/entities → client-actions/behaviour/zclient-actions/applications}/interfaces/UIComponentMappingModel.js +0 -0
- /package/es/platform/{zclient-actions/domain/entities → client-actions/behaviour/zclient-actions/applications}/interfaces/UserDetailsModel.js +0 -0
- /package/es/platform/{zdata-broker → client-actions/behaviour/zclient-actions}/applications/interfaces/gateways/IRepository.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/interfaces/gateways/IService.js +0 -0
- /package/es/platform/{zdata-broker → client-actions/behaviour/zclient-actions}/applications/interfaces/gateways/State.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/interfaces/input/ExecuteActionBehaviourInputModel.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/interfaces/input/FailureInputModel.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/interfaces/input/FetchStateStopInputModel.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/interfaces/input/InitializeInputModel.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/interfaces/input/NoContentInputModel.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/interfaces/input/SetClientActionsInputModel.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/interfaces/input/SuccessInputModel.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/interfaces/output/IPresenter.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/usecases/AbstractUseCase.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/usecases/FailureUseCase.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/usecases/FetchStateStopUseCase.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/usecases/NoContentUseCase.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/usecases/SetClientActionsUseCase.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/applications/usecases/SuccessUseCase.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/EventMappings.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/GetClientActionsStrategy.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/interfaces/BehaviourState.js +0 -0
- /package/es/platform/{zclient-actions/domain/entities/interfaces/ClientActionsModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionModel.js} +0 -0
- /package/es/platform/{zclient-actions/domain/entities/interfaces/IAction.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionsModel.js} +0 -0
- /package/es/platform/{zclient-actions/domain/entities/interfaces/IEvent.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ComponentPropertiesModel.js} +0 -0
- /package/es/platform/{zclient-actions/domain/entities/interfaces/SubMeta.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ConditionFieldModel.js} +0 -0
- /package/es/platform/{zdata-broker/applications/interfaces/input/ExecuteActionInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ConditionModel.js} +0 -0
- /package/es/platform/{zdata-broker/applications/interfaces/input/FailureInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/EventMappingModel.js} +0 -0
- /package/es/platform/{zdata-broker → client-actions/behaviour/zclient-actions}/domain/entities/interfaces/EventModel.js +0 -0
- /package/es/platform/{zdata-broker/applications/interfaces/input/NoContentInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IAction.js} +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/interfaces/IClientAction.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/interfaces/IClientActionExecuteStrategy.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/interfaces/IClientActionManager.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/interfaces/IClientActions.js +0 -0
- /package/es/platform/{zdata-broker/applications/interfaces/input/RegisterInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IError.js} +0 -0
- /package/es/platform/{zdata-broker/applications/interfaces/input/SuccessInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IEvent.js} +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/interfaces/IEventMapping.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/interfaces/IEventMappings.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/interfaces/IPayload.js +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/domain/entities/interfaces/IUIComponentMapping.js +0 -0
- /package/es/platform/{zdata-broker/applications/interfaces/output/IPresenter.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/PayloadValueMappingModel.js} +0 -0
- /package/es/platform/{zdata-broker/domain/entities/interfaces/APIDetailsModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/PropsMeta.js} +0 -0
- /package/es/platform/{zdata-broker/domain/entities/interfaces/APITemplateModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/State.js} +0 -0
- /package/es/platform/{zdata-broker/domain/entities/interfaces/APITemplatesModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/StrategyMeta.js} +0 -0
- /package/es/platform/{zdata-broker/domain/entities/interfaces/BehaviourState.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/SubMeta.js} +0 -0
- /package/es/platform/{zdata-broker/domain/entities/interfaces/IAPITemplate.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/UIComponentMappingModel.js} +0 -0
- /package/es/platform/{zdata-broker/domain/entities/interfaces/IAPITemplates.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/UserDetailsModel.js} +0 -0
- /package/es/platform/{zclient-actions → client-actions/behaviour/zclient-actions}/frameworks/ActionsHandlersFactory.js +0 -0
- /package/es/platform/{zdata-broker/domain/entities/interfaces/ITemplateHelpers.js → client-actions/components/action-event-mediator/applications/interfaces/UseCaseDependencies.js} +0 -0
- /package/es/platform/{zdata-broker/applications/interfaces/gateways/IService.js → client-actions/components/action-event-mediator/applications/interfaces/gateways/IRepository.js} +0 -0
- /package/es/platform/{zlist/adapters/presenters/translators/interfaces/FieldUiMapping.js → client-actions/components/action-event-mediator/applications/interfaces/input/PropertiesChangeUseCaseInputModel.js} +0 -0
- /package/es/platform/{zdata-broker/domain/entities/interfaces/IDataBroker.js → client-actions/components/action-event-mediator/applications/interfaces/output/IPresenter.js} +0 -0
- /package/es/platform/{zlist/adapters/presenters/translators/interfaces/PageContext.js → client-actions/components/action-event-mediator/domain/entities/interfaces/IActionLocation.js} +0 -0
- /package/es/platform/{data-broker → data-source}/http-template/deleteRecord.js +0 -0
- /package/es/platform/{data-broker → data-source}/http-template/deleteRecords.js +0 -0
- /package/es/platform/{data-broker → data-source}/http-template/getRecords.js +0 -0
- /package/es/platform/{data-broker → data-source}/http-template/updateRecord.js +0 -0
- /package/es/platform/{data-broker → data-source}/utils/transformer/Transformer.js +0 -0
- /package/es/platform/{zdata-broker → zdata-source}/adapters/controllers/AbstractController.js +0 -0
- /package/es/platform/{zdata-broker → zdata-source}/adapters/controllers/FailureController.js +0 -0
- /package/es/platform/{zdata-broker → zdata-source}/adapters/controllers/NoContentController.js +0 -0
- /package/es/platform/{zdata-broker → zdata-source}/adapters/controllers/RegisterController.js +0 -0
- /package/es/platform/{zdata-broker → zdata-source}/adapters/controllers/SuccessController.js +0 -0
- /package/es/platform/{zdata-broker → zdata-source}/adapters/gateways/Service.js +0 -0
- /package/es/platform/{zdata-broker → zdata-source}/adapters/gateways/TemplateHelpers.js +0 -0
- /package/es/platform/{zdata-broker → zdata-source}/applications/entities-factory/APITemplatesFactory.js +0 -0
- /package/es/platform/{zdata-broker → zdata-source}/applications/interfaces/gateways/ITemplateHelpers.js +0 -0
- /package/es/platform/{zdata-broker → zdata-source}/applications/usecases/AbstractUseCase.js +0 -0
- /package/es/platform/{zdata-broker → zdata-source}/applications/usecases/RegisterUseCase.js +0 -0
- /package/es/platform/{zdata-broker → zdata-source}/domain/entities/APITemplate.js +0 -0
- /package/es/platform/{zdata-broker → zdata-source}/domain/entities/APITemplates.js +0 -0
- /package/es/platform/{zdata-broker → zdata-source}/domain/entities/interfaces/ApiEnum.js +0 -0
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ import TableConnectedFactory from '@zohodesk/library-platform/TableConnectedFact
|
|
|
21
21
|
|
|
22
22
|
const myTableComponent = TableConnectedFactory.create({
|
|
23
23
|
name: 'MyTableComponent',
|
|
24
|
-
|
|
24
|
+
dataSource: myDataSource,
|
|
25
25
|
eventHandlers: {
|
|
26
26
|
onRowSelect: row => {
|
|
27
27
|
console.log('Selected row:', row);
|
|
@@ -69,7 +69,7 @@ const myComponent = ComponentRegistry.get('MyComponent');
|
|
|
69
69
|
The `TableConnectedFactory.create` method accepts the following parameters:
|
|
70
70
|
|
|
71
71
|
- **name**: `string` - The name of the component.
|
|
72
|
-
- **
|
|
72
|
+
- **dataSource**: `object` - The data broker instance to manage data fetching and manipulation.
|
|
73
73
|
- **eventHandlers**: `object` - An object containing event handler functions.
|
|
74
74
|
- **View**: `React.Component` - Custom view component to render the table.
|
|
75
75
|
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
export const LIST_SELECTION_TOGGLE_ITEMS = 'LIST_SELECTION#TOGGLE_ITEMS';
|
|
2
2
|
export const LIST_SELECTION_TOGGLE_ALL = 'LIST_SELECTION#TOGGLE_ALL';
|
|
3
|
-
export const LIST_SELECTION_TOGGLE_ITEMS_IN_RANGE = 'LIST_SELECTION#TOGGLE_ITEMS_IN_RANGE';
|
|
3
|
+
export const LIST_SELECTION_TOGGLE_ITEMS_IN_RANGE = 'LIST_SELECTION#TOGGLE_ITEMS_IN_RANGE';
|
|
4
|
+
export const LIST_SELECTION_SELECT_ITEM = 'LIST_SELECTION#SELECT_ITEM';
|
|
5
|
+
export const LIST_SELECTION_DESELECT_ITEM = 'LIST_SELECTION#DESELECT_ITEM';
|
|
6
|
+
export const LIST_SELECTION_SELECT_ALL = 'LIST_SELECTION#SELECT_ALL';
|
|
7
|
+
export const LIST_SELECTION_DESELECT_ALL = 'LIST_SELECTION#DESELECT_ALL';
|
|
8
|
+
export const LIST_SELECTION_RECORDS_SELECTED = 'LIST_SELECTION#RECORDS_SELECTED';
|
|
9
|
+
export const LIST_SELECTION_RECORDS_DESELECTED = 'LIST_SELECTION#RECORDS_DESELECTED';
|
|
10
|
+
export const LIST_SELECTION_SELECTION_LIMIT_EXCEEDED = 'LIST_SELECTION#SELECTION_LIMIT_EXCEEDED';
|
|
@@ -2,9 +2,10 @@ export default {
|
|
|
2
2
|
selectionConfig: {
|
|
3
3
|
required: false,
|
|
4
4
|
defaultValue: {
|
|
5
|
-
isEnabled: false,
|
|
6
5
|
maxSelectionCount: 50,
|
|
7
|
-
limitExceedAlertMessage: 'Max records selected'
|
|
6
|
+
limitExceedAlertMessage: 'Max records selected',
|
|
7
|
+
isEnabled: false,
|
|
8
|
+
isSelectAllEnabled: false
|
|
8
9
|
},
|
|
9
10
|
typeMetadata: {
|
|
10
11
|
schema: {
|
|
@@ -18,6 +19,9 @@ export default {
|
|
|
18
19
|
},
|
|
19
20
|
limitExceedAlertMessage: {
|
|
20
21
|
type: 'string'
|
|
22
|
+
},
|
|
23
|
+
isSelectAllEnabled: {
|
|
24
|
+
type: 'boolean'
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
27
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DATA_SOURCE_EXECUTE } from "./Constants";
|
|
2
|
+
import { DATA_SOURCE_FAILURE, DATA_SOURCE_SUCCESS } from "./Symbols";
|
|
3
3
|
const Actions = [{
|
|
4
|
-
type:
|
|
4
|
+
type: DATA_SOURCE_EXECUTE,
|
|
5
5
|
payload: {
|
|
6
6
|
apiName: {
|
|
7
7
|
name: 'apiName',
|
|
@@ -34,7 +34,7 @@ const Actions = [{
|
|
|
34
34
|
schema: {
|
|
35
35
|
type: 'object',
|
|
36
36
|
properties: {
|
|
37
|
-
[
|
|
37
|
+
[DATA_SOURCE_SUCCESS]: {
|
|
38
38
|
type: 'object',
|
|
39
39
|
properties: {
|
|
40
40
|
type: {
|
|
@@ -46,7 +46,7 @@ const Actions = [{
|
|
|
46
46
|
},
|
|
47
47
|
required: ['type', 'payload']
|
|
48
48
|
},
|
|
49
|
-
[
|
|
49
|
+
[DATA_SOURCE_FAILURE]: {
|
|
50
50
|
type: 'object',
|
|
51
51
|
properties: {
|
|
52
52
|
type: {
|
|
@@ -59,7 +59,7 @@ const Actions = [{
|
|
|
59
59
|
required: ['type', 'payload']
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
required: [
|
|
62
|
+
required: [DATA_SOURCE_SUCCESS, DATA_SOURCE_FAILURE]
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
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
|
-
export const
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
3
|
+
export const DATA_SOURCE_REGISTER = 'DATA_SOURCE#REGISTER';
|
|
4
|
+
export const DATA_SOURCE_EXECUTE = 'DATA_SOURCE#EXECUTE';
|
|
5
|
+
export const DATA_SOURCE_EXECUTE_SUCCEEDED = 'DATA_SOURCE#EXECUTE_SUCCEEDED';
|
|
6
|
+
export const DATA_SOURCE_EXECUTE_NO_CONTENT_SUCCEEDED = 'DATA_SOURCE#EXECUTE_NO_CONTENT_SUCCEEDED';
|
|
7
|
+
export const DATA_SOURCE_EXECUTE_FAILED = 'DATA_SOURCE#EXECUTE_FAILED'; // REVIEW: This class is not used anywhere in the codebase.
|
|
8
|
+
|
|
8
9
|
export class DataBrokerActionName {}
|
|
9
10
|
|
|
10
11
|
_defineProperty(DataBrokerActionName, "GET_RECORDS", 'getRecords');
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Note: We need to properly handle uniqueness, because it is not api response
|
|
2
|
+
export const DATA_SOURCE_SIGNATURE = 'DATA_SOURCE#SIGNATURE';
|
|
3
|
+
export const DATA_SOURCE_FAILURE = 'DATA_SOURCE#FAILURE';
|
|
4
|
+
export const DATA_SOURCE_SUCCESS = 'DATA_SOURCE#SUCCESS';
|
|
5
|
+
export const DATA_SOURCE_NO_CONTENT = 'DATA_SOURCE#NO_CONTENT';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FIELD_EXECUTE, FIELD_REFETCH } from "./Constants";
|
|
2
|
-
import {
|
|
2
|
+
import { DATA_SOURCE_EXECUTE_FAILED, DATA_SOURCE_EXECUTE_NO_CONTENT_SUCCEEDED, DATA_SOURCE_EXECUTE_SUCCEEDED } from "../zdata-source/Constants";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { ZLIST_FETCH_MORE } from "./Constants";
|
|
1
|
+
import { ZLIST_FETCH_MORE, ZLIST_RECORD_DELETE_SUCCEEDED, ZLIST_RECORD_UPDATE_SUCCEEDED } from "./Constants";
|
|
@@ -7,50 +7,52 @@ export default {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
departmentId: {
|
|
11
11
|
required: true,
|
|
12
12
|
typeMetadata: {
|
|
13
13
|
schema: {
|
|
14
|
-
type: '
|
|
15
|
-
properties: {
|
|
16
|
-
viewId: {
|
|
17
|
-
type: 'string'
|
|
18
|
-
},
|
|
19
|
-
orgId: {
|
|
20
|
-
type: 'string'
|
|
21
|
-
},
|
|
22
|
-
departmentId: {
|
|
23
|
-
type: 'string'
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
additionalProperties: {
|
|
27
|
-
type: 'string'
|
|
28
|
-
}
|
|
14
|
+
type: 'string'
|
|
29
15
|
}
|
|
30
16
|
}
|
|
31
17
|
},
|
|
32
|
-
|
|
18
|
+
viewId: {
|
|
19
|
+
required: true,
|
|
20
|
+
typeMetadata: {
|
|
21
|
+
schema: {
|
|
22
|
+
type: 'string'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
query: {
|
|
27
|
+
required: false,
|
|
28
|
+
defaultValue: {},
|
|
29
|
+
typeMetadata: {
|
|
30
|
+
schema: {
|
|
31
|
+
type: 'object'
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
context: {
|
|
33
36
|
required: true,
|
|
34
37
|
typeMetadata: {
|
|
35
38
|
schema: {
|
|
36
39
|
type: 'object',
|
|
37
40
|
properties: {
|
|
38
|
-
|
|
41
|
+
orgId: {
|
|
39
42
|
type: 'string'
|
|
40
43
|
},
|
|
41
|
-
|
|
44
|
+
orgName: {
|
|
42
45
|
type: 'string'
|
|
43
46
|
},
|
|
44
47
|
departmentName: {
|
|
45
48
|
type: 'string'
|
|
46
49
|
},
|
|
47
|
-
|
|
50
|
+
servicePrefix: {
|
|
48
51
|
type: 'string'
|
|
49
52
|
}
|
|
50
53
|
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
+
required: ['orgId', 'orgName', 'departmentName'],
|
|
55
|
+
additionalProperties: false
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
},
|
|
@@ -69,14 +71,5 @@ export default {
|
|
|
69
71
|
}]
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
|
-
},
|
|
73
|
-
limit: {
|
|
74
|
-
required: false,
|
|
75
|
-
defaultValue: 50,
|
|
76
|
-
typeMetadata: {
|
|
77
|
-
schema: {
|
|
78
|
-
type: 'number'
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
74
|
}
|
|
82
75
|
};
|
|
@@ -34,6 +34,37 @@ export default {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
+
options: {
|
|
38
|
+
// NOTE: This is only a sample for FilterDropdown action component
|
|
39
|
+
required: false,
|
|
40
|
+
defaultValue: [],
|
|
41
|
+
typeMetadata: {
|
|
42
|
+
schema: {
|
|
43
|
+
type: "array",
|
|
44
|
+
items: {
|
|
45
|
+
type: "object",
|
|
46
|
+
properties: {
|
|
47
|
+
label: {
|
|
48
|
+
type: "string"
|
|
49
|
+
},
|
|
50
|
+
value: {
|
|
51
|
+
type: "string"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
isMultiselectable: {
|
|
59
|
+
// NOTE: This is only a sample for FilterDropdown action component
|
|
60
|
+
required: false,
|
|
61
|
+
defaultValue: false,
|
|
62
|
+
typeMetadata: {
|
|
63
|
+
schema: {
|
|
64
|
+
type: "boolean"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
37
68
|
isVisible: {
|
|
38
69
|
required: false,
|
|
39
70
|
defaultValue: true,
|
|
@@ -4,7 +4,10 @@ export const actionsSchema = {
|
|
|
4
4
|
items: {
|
|
5
5
|
type: 'object',
|
|
6
6
|
properties: {
|
|
7
|
-
|
|
7
|
+
component: {
|
|
8
|
+
type: 'string'
|
|
9
|
+
},
|
|
10
|
+
id: {
|
|
8
11
|
type: 'string'
|
|
9
12
|
},
|
|
10
13
|
properties: {
|
|
@@ -16,42 +19,24 @@ export const actionsSchema = {
|
|
|
16
19
|
items: {
|
|
17
20
|
type: 'object',
|
|
18
21
|
properties: {
|
|
19
|
-
|
|
20
|
-
type: '
|
|
21
|
-
properties: {
|
|
22
|
-
id: {
|
|
23
|
-
type: 'string'
|
|
24
|
-
},
|
|
25
|
-
dispatchType: {
|
|
26
|
-
type: 'string'
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
required: ['id', 'dispatchType']
|
|
22
|
+
id: {
|
|
23
|
+
type: 'string'
|
|
30
24
|
},
|
|
31
|
-
|
|
25
|
+
sourceEvent: {
|
|
32
26
|
type: 'string'
|
|
33
27
|
},
|
|
34
28
|
payload: {
|
|
35
29
|
type: 'object'
|
|
36
30
|
}
|
|
37
31
|
},
|
|
38
|
-
required: ['
|
|
32
|
+
required: ['sourceEvent', 'id']
|
|
39
33
|
}
|
|
40
34
|
}
|
|
41
35
|
},
|
|
42
|
-
required: ['
|
|
36
|
+
required: ['component', 'properties']
|
|
43
37
|
}
|
|
44
38
|
};
|
|
45
39
|
export default {
|
|
46
|
-
type: {
|
|
47
|
-
required: false,
|
|
48
|
-
typeMetadata: {
|
|
49
|
-
schema: {
|
|
50
|
-
type: 'string'
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
defaultValue: ''
|
|
54
|
-
},
|
|
55
40
|
actions: {
|
|
56
41
|
required: true,
|
|
57
42
|
typeMetadata: {
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import SelectionConfigSchema from "../../bc/list-selection/Properties";
|
|
2
2
|
export default {
|
|
3
|
-
|
|
3
|
+
preferences: {
|
|
4
4
|
required: false,
|
|
5
|
-
defaultValue:
|
|
5
|
+
defaultValue: {
|
|
6
|
+
autoColumnSizing: false
|
|
7
|
+
},
|
|
6
8
|
typeMetadata: {
|
|
7
9
|
schema: {
|
|
8
|
-
type: '
|
|
10
|
+
type: 'object',
|
|
11
|
+
properties: {
|
|
12
|
+
autoColumnSizing: {
|
|
13
|
+
type: 'boolean'
|
|
14
|
+
}
|
|
15
|
+
}
|
|
9
16
|
}
|
|
10
17
|
}
|
|
11
18
|
},
|
|
12
19
|
...SelectionConfigSchema,
|
|
13
|
-
|
|
20
|
+
componentMapping: {
|
|
14
21
|
required: false,
|
|
15
22
|
defaultValue: {
|
|
16
23
|
fields: {},
|
|
@@ -40,58 +47,5 @@ export default {
|
|
|
40
47
|
type: 'string'
|
|
41
48
|
}
|
|
42
49
|
}
|
|
43
|
-
},
|
|
44
|
-
rowActions: {
|
|
45
|
-
required: false,
|
|
46
|
-
defaultValue: [],
|
|
47
|
-
typeMetadata: {
|
|
48
|
-
schema: {
|
|
49
|
-
type: 'array',
|
|
50
|
-
minItems: 0,
|
|
51
|
-
items: {
|
|
52
|
-
type: 'object',
|
|
53
|
-
properties: {
|
|
54
|
-
uiType: {
|
|
55
|
-
type: 'string'
|
|
56
|
-
},
|
|
57
|
-
properties: {
|
|
58
|
-
type: 'object'
|
|
59
|
-
},
|
|
60
|
-
eventMappings: {
|
|
61
|
-
type: 'array',
|
|
62
|
-
minItems: 0,
|
|
63
|
-
items: {
|
|
64
|
-
type: 'object',
|
|
65
|
-
properties: {
|
|
66
|
-
id: {
|
|
67
|
-
type: 'string'
|
|
68
|
-
},
|
|
69
|
-
action: {
|
|
70
|
-
type: 'object',
|
|
71
|
-
properties: {
|
|
72
|
-
id: {
|
|
73
|
-
type: 'string'
|
|
74
|
-
},
|
|
75
|
-
dispatchType: {
|
|
76
|
-
type: 'string'
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
required: ['id', 'dispatchType']
|
|
80
|
-
},
|
|
81
|
-
eventType: {
|
|
82
|
-
type: 'string'
|
|
83
|
-
},
|
|
84
|
-
payloadMapping: {
|
|
85
|
-
type: 'string'
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
required: ['id', 'action', 'payloadMapping', 'eventType']
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
required: ['uiType', 'properties']
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
50
|
}
|
|
97
51
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
DELETE_RECORDS_SUCCESS: 'SMART_TABLE#RECORD_DELETED',
|
|
3
|
+
UPDATE_RECORDS_SUCCESS: 'SMART_TABLE#RECORD_UPDATED',
|
|
4
|
+
RECORDS_SELECTED: 'SMART_TABLE#RECORDS_SELECTED',
|
|
5
|
+
RECORDS_DESELECTED: 'SMART_TABLE#RECORDS_DESELECTED',
|
|
6
|
+
SELECTION_LIMIT_EXCEEDED: 'SMART_TABLE#SELECTION_LIMIT_EXCEEDED'
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Events } from "./Events";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Alignment, SortedBy, Width } from "./data-types/Header";
|
|
2
2
|
import RowCursor from "./data-types/RowCursor";
|
|
3
3
|
import ResizerConfigSchema from "../../bc/table-column-resizer/Properties";
|
|
4
|
-
import { actionsSchema } from "
|
|
4
|
+
import { actionsSchema } from "../../platform/client-actions/cc/action-event-mediator/Properties";
|
|
5
5
|
import PropertiesConverter from "../component/properties/PropertiesConverter";
|
|
6
6
|
import BooleanProperties from "../fields/boolean/Properties";
|
|
7
7
|
import CurrencyProperties from "../fields/currency/Properties";
|
|
@@ -147,7 +147,7 @@ const TableListProperties = {
|
|
|
147
147
|
}]
|
|
148
148
|
},
|
|
149
149
|
ActionLocation: {
|
|
150
|
-
|
|
150
|
+
renderComponentType: 'object',
|
|
151
151
|
properties: {
|
|
152
152
|
type: {
|
|
153
153
|
type: 'string'
|
|
@@ -192,6 +192,9 @@ const TableListProperties = {
|
|
|
192
192
|
},
|
|
193
193
|
selectionTooltip: {
|
|
194
194
|
type: 'string'
|
|
195
|
+
},
|
|
196
|
+
isSelectAllEnabled: {
|
|
197
|
+
type: 'boolean'
|
|
195
198
|
}
|
|
196
199
|
},
|
|
197
200
|
required: ['id', 'columns']
|
|
@@ -201,6 +204,45 @@ const TableListProperties = {
|
|
|
201
204
|
required: ['headers', 'rows']
|
|
202
205
|
}
|
|
203
206
|
}
|
|
207
|
+
},
|
|
208
|
+
selection: {
|
|
209
|
+
required: true,
|
|
210
|
+
typeMetadata: {
|
|
211
|
+
schema: {
|
|
212
|
+
type: 'object',
|
|
213
|
+
properties: {
|
|
214
|
+
selected: {
|
|
215
|
+
type: 'array',
|
|
216
|
+
items: {
|
|
217
|
+
type: 'string'
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
hasAllSelected: {
|
|
221
|
+
type: 'boolean'
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
required: ['selected', 'hasAllSelected']
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
selectionConfig: {
|
|
229
|
+
required: true,
|
|
230
|
+
typeMetadata: {
|
|
231
|
+
schema: {
|
|
232
|
+
type: 'object',
|
|
233
|
+
properties: {
|
|
234
|
+
maxSelectionCount: {
|
|
235
|
+
type: 'number'
|
|
236
|
+
},
|
|
237
|
+
isEnabled: {
|
|
238
|
+
type: 'boolean'
|
|
239
|
+
},
|
|
240
|
+
isSelectAllEnabled: {
|
|
241
|
+
type: 'boolean'
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
204
246
|
}
|
|
205
247
|
};
|
|
206
248
|
export default TableListProperties;
|
|
@@ -18,4 +18,10 @@ export let Alignment = /*#__PURE__*/function (Alignment) {
|
|
|
18
18
|
Alignment["Center"] = "center";
|
|
19
19
|
Alignment["Right"] = "right";
|
|
20
20
|
return Alignment;
|
|
21
|
+
}({});
|
|
22
|
+
export let AlignmentOfFlex = /*#__PURE__*/function (AlignmentOfFlex) {
|
|
23
|
+
AlignmentOfFlex["left"] = "start";
|
|
24
|
+
AlignmentOfFlex["center"] = "center";
|
|
25
|
+
AlignmentOfFlex["right"] = "end";
|
|
26
|
+
return AlignmentOfFlex;
|
|
21
27
|
}({});
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { LIST_SELECTION_RECORDS_DESELECTED, LIST_SELECTION_RECORDS_SELECTED, LIST_SELECTION_SELECTION_LIMIT_EXCEEDED } from "../../../bc/list-selection/Constants";
|
|
1
2
|
import ListSdkFactory from "./ListSdkFactory";
|
|
3
|
+
import { SmartTableConstants } from "../../../cc/table-connected";
|
|
2
4
|
|
|
3
5
|
function createHandlerWithSdk(handler) {
|
|
4
6
|
return input => {
|
|
@@ -20,7 +22,37 @@ export default class EventHandlersFactory {
|
|
|
20
22
|
return [eventName, handler];
|
|
21
23
|
}));
|
|
22
24
|
return { ...wrapped,
|
|
23
|
-
NAVIGATION: NavigationHandler
|
|
25
|
+
NAVIGATION: NavigationHandler,
|
|
26
|
+
[LIST_SELECTION_RECORDS_SELECTED]: _ref => {
|
|
27
|
+
let {
|
|
28
|
+
action,
|
|
29
|
+
dispatch
|
|
30
|
+
} = _ref;
|
|
31
|
+
return dispatch({
|
|
32
|
+
type: SmartTableConstants.Events.RECORDS_SELECTED,
|
|
33
|
+
payload: action.payload
|
|
34
|
+
});
|
|
35
|
+
},
|
|
36
|
+
[LIST_SELECTION_RECORDS_DESELECTED]: _ref2 => {
|
|
37
|
+
let {
|
|
38
|
+
action,
|
|
39
|
+
dispatch
|
|
40
|
+
} = _ref2;
|
|
41
|
+
return dispatch({
|
|
42
|
+
type: SmartTableConstants.Events.RECORDS_DESELECTED,
|
|
43
|
+
payload: action.payload
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
[LIST_SELECTION_SELECTION_LIMIT_EXCEEDED]: _ref3 => {
|
|
47
|
+
let {
|
|
48
|
+
action,
|
|
49
|
+
dispatch
|
|
50
|
+
} = _ref3;
|
|
51
|
+
return dispatch({
|
|
52
|
+
type: SmartTableConstants.Events.SELECTION_LIMIT_EXCEEDED,
|
|
53
|
+
payload: action.payload
|
|
54
|
+
});
|
|
55
|
+
}
|
|
24
56
|
};
|
|
25
57
|
}
|
|
26
58
|
|