@zohodesk/library-platform 1.0.1 → 1.0.2-exp.4
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/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/{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/zhttp/Properties.js +11 -1
- package/es/bc/zhttp/index.js +2 -0
- package/es/bc/zlist/EventHandlers.js +1 -1
- package/es/bc/zlist/Properties.js +26 -30
- package/es/bc/zrecord/Constants.js +3 -1
- package/es/cc/action-icon/Model.js +6 -2
- package/es/cc/action-icon/Properties.js +49 -0
- package/es/cc/action-location/Properties.js +39 -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/Constants.js +4 -0
- package/es/cc/table-connected/Properties.js +18 -57
- package/es/cc/table-list/Properties.js +110 -325
- package/es/cc/table-list/data-types/Header.js +14 -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/ListSdkFactory.js +88 -1
- package/es/desk-frameworks/table-connected/frameworks/TableConnectedFactory.js +23 -6
- package/es/desk-frameworks/table-connected/frameworks/TableConnectedView.js +17 -13
- 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 +7 -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 +22 -9
- 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 +10 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +18 -7
- package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/ActionIcon.js +27 -0
- package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/ActionIconView.js +110 -0
- 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 +31 -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 +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/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 +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/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/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/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 → data-source}/http-template/deleteRecord.js +1 -1
- package/es/platform/{data-broker → data-source}/http-template/deleteRecords.js +1 -1
- package/es/platform/{data-broker → data-source}/http-template/getAvailableFields.js +5 -5
- package/es/platform/data-source/http-template/getClientActions.js +23 -0
- package/es/platform/{data-broker → data-source}/http-template/getRecords.js +1 -1
- package/es/platform/{data-broker → data-source}/http-template/getSelectedFields.js +5 -5
- package/es/platform/{data-broker → data-source}/http-template/updateRecord.js +1 -1
- package/es/platform/{data-broker → data-source}/index.js +5 -5
- package/es/platform/{data-broker → data-source}/utils/transformer/CreateCf.js +1 -1
- package/es/platform/zdata-source/adapters/controllers/AbstractController.js +8 -0
- package/es/platform/{zdata-broker/adapters/controllers/ActionExecutorController.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/gateways/Service.js +5 -5
- package/es/platform/{zdata-broker → zdata-source}/adapters/gateways/TemplateHelpers.js +21 -0
- package/es/platform/{zdata-broker → zdata-source}/adapters/presenters/Presenter.js +4 -4
- package/es/platform/{zdata-broker/usecases → zdata-source/applications}/entities-factory/APITemplatesFactory.js +2 -2
- package/es/platform/{zdata-broker/usecases/entities-factory/DataBrokerFactory.js → zdata-source/applications/entities-factory/DataSourceFactory.js} +3 -4
- package/es/platform/zdata-source/applications/interfaces/gateways/IService.js +0 -0
- package/es/platform/zdata-source/applications/interfaces/gateways/ITemplateHelpers.js +1 -0
- package/es/platform/{zdata-broker/usecases/interactors → zdata-source/applications/usecases}/ExecuteActionUseCase.js +3 -3
- package/es/platform/{zdata-broker/usecases/interactors → zdata-source/applications/usecases}/FailureUseCase.js +3 -3
- package/es/platform/{zdata-broker/usecases/interactors → zdata-source/applications/usecases}/NoContentUseCase.js +3 -3
- package/es/platform/{zdata-broker/usecases/interactors → zdata-source/applications/usecases}/SuccessUseCase.js +4 -4
- package/es/platform/{zdata-broker/entities/DataBroker.js → zdata-source/domain/entities/DataSource.js} +13 -13
- package/es/platform/zdata-source/domain/entities/interfaces/IDataSource.js +0 -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/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/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +1 -1
- package/es/platform/zfield/{usecases/interactors → applications/usecases}/InitializeUseCase.js +2 -2
- package/es/platform/zfield/{usecases/interactors → applications/usecases}/RefetchUseCase.js +1 -1
- package/es/platform/zfield/{entities → domain/entities}/fields-manager/AvailableFieldsManager.js +2 -2
- package/es/platform/zfield/{entities → domain/entities}/fields-manager/FieldsManager.js +6 -6
- package/es/platform/zfield/{entities → domain/entities}/fields-manager/SelectedFieldsManager.js +2 -2
- 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/zfield/frameworks/ActionHandlerFactory.js +4 -4
- 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/controllers/DeleteSuccessController.js +25 -0
- package/es/platform/zlist/adapters/controllers/UpdateSuccessController.js +25 -0
- package/es/platform/zlist/adapters/gateways/Repository.js +10 -9
- package/es/platform/zlist/adapters/gateways/Service.js +18 -10
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +54 -12
- 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/ColumnTranslator.js +16 -8
- package/es/platform/zlist/adapters/presenters/translators/Header.js +10 -4
- package/es/platform/zlist/adapters/presenters/translators/HeadersTranslator.js +4 -2
- package/es/platform/zlist/adapters/presenters/translators/Row.js +13 -5
- package/es/platform/zlist/adapters/presenters/translators/RowActionTranslator.js +20 -13
- package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +9 -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 +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/applications/usecases/DeleteSuccessUseCase.js +19 -0
- package/es/platform/zlist/applications/usecases/UpdateSuccessUseCase.js +19 -0
- package/es/platform/zlist/{entities → domain/entities}/List.js +61 -30
- 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/zlist/frameworks/EventHandlersFactory.js +17 -23
- 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/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +1 -1
- package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FetchMoreUseCase.js +1 -1
- package/es/platform/zrecord/{usecases/interactors → applications/usecases}/InitializeUseCase.js +2 -2
- package/es/platform/zrecord/{usecases/interactors → applications/usecases}/RefetchUseCase.js +1 -1
- 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 +11 -11
- 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 +31 -23
- package/es/bc/zdata-broker/EventHandlers.js +0 -2
- package/es/bc/zdata-broker/Symbols.js +0 -5
- 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/library/dot/legacy-to-new-arch/action-icon/ActionIcon.js +0 -11
- package/es/library/dot/legacy-to-new-arch/action-icon/ActionIconView.js +0 -30
- package/es/platform/data-broker/http-template/getUIActions.js +0 -22
- package/es/platform/zdata-broker/entities/interfaces/MetaData.js +0 -1
- 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/bc/{zdata-broker → zdata-source}/Properties.js +0 -0
- /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 → client-actions/behaviour/zclient-actions}/adapters/controllers/AbstractController.js +0 -0
- /package/es/platform/{data-broker/dbc/index.js → client-actions/behaviour/zclient-actions/applications/interfaces/ClientActionModel.js} +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/APIDetailsModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/ComponentPropertiesModel.js} +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/APITemplateModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/ConditionFieldModel.js} +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/APITemplatesModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/ConditionModel.js} +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/BehaviourState.js → client-actions/behaviour/zclient-actions/applications/interfaces/EventMappingModel.js} +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/EventModel.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/IAPITemplate.js → client-actions/behaviour/zclient-actions/applications/interfaces/PayloadValueMappingModel.js} +0 -0
- /package/es/platform/{zdata-broker/entities/interfaces/IAPITemplates.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/entities/interfaces/ITemplateHelpers.js → client-actions/behaviour/zclient-actions/applications/interfaces/UIComponentMappingModel.js} +0 -0
- /package/es/platform/{zdata-broker/usecases/interfaces/gateways/State.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/ExecuteActionInputModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/input/ExecuteActionBehaviourInputModel.js} +0 -0
- /package/es/platform/{zdata-broker/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/adapters/presenters/translators/interfaces/FieldUiMapping.js → client-actions/components/action-event-mediator/applications/interfaces/input/PropertiesChangeUseCaseInputModel.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/{zlist/entities/interfaces/ActionModel.js → client-actions/components/action-event-mediator/domain/entities/interfaces/IState.js} +0 -0
- /package/es/platform/{zlist/entities/interfaces/ApiPropsModel.js → client-actions/components/dynamic-component/domain/entities/interfaces/IState.js} +0 -0
- /package/es/platform/{zlist/entities/interfaces/IList.js → client-actions/components/row-actions-renderer/domain/entities/interfaces/IState.js} +0 -0
- /package/es/platform/{zlist/entities/interfaces/Properties.js → client-actions/template-resolver/interfaces/ITemplate.js} +0 -0
- /package/es/platform/{zlist/entities/interfaces/RecordExecuteAfterMetaData.js → client-actions/translators/interfaces/IContext.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/gateways/IRepository.js → client-actions/translators/interfaces/IState.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/gateways/IService.js → data-source/dbc/index.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/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/{zrecord/usecases → zdata-source/applications}/interfaces/InputDependencies.js +0 -0
- /package/es/platform/{zrecord/usecases → zdata-source/applications}/interfaces/gateways/IRepository.js +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/DeleteMultipleRecordUseCaseInput.js → zdata-source/applications/interfaces/gateways/State.js} +0 -0
- /package/es/platform/{zrecord/usecases → zdata-source/applications}/interfaces/input/ExecuteActionInputModel.js +0 -0
- /package/es/platform/{zrecord/usecases → zdata-source/applications}/interfaces/input/FailureInputModel.js +0 -0
- /package/es/platform/{zrecord/usecases → zdata-source/applications}/interfaces/input/NoContentInputModel.js +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/DeleteSingleRecordUseCaseInput.js → zdata-source/applications/interfaces/input/RegisterInputModel.js} +0 -0
- /package/es/platform/{zrecord/usecases → zdata-source/applications}/interfaces/input/SuccessInputModel.js +0 -0
- /package/es/platform/{zrecord/usecases → zdata-source/applications}/interfaces/output/IPresenter.js +0 -0
- /package/es/platform/{zrecord/usecases/interactors → zdata-source/applications/usecases}/AbstractUseCase.js +0 -0
- /package/es/platform/{zdata-broker/usecases/interactors → 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/{zlist/usecases/interfaces/input/FetchMoreInput.js → zdata-source/domain/entities/interfaces/APIDetailsModel.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/FieldChangeUseCaseInput.js → zdata-source/domain/entities/interfaces/APITemplateModel.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/InitializeInput.js → zdata-source/domain/entities/interfaces/APITemplatesModel.js} +0 -0
- /package/es/platform/{zdata-broker → zdata-source/domain}/entities/interfaces/ApiEnum.js +0 -0
- /package/es/platform/{zrecord → zdata-source/domain}/entities/interfaces/BehaviourState.js +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/PropertiesChangeUseCaseInput.js → zdata-source/domain/entities/interfaces/EventModel.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/RecordExecuteFailedUseCaseInput.js → zdata-source/domain/entities/interfaces/IAPITemplate.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/RecordExecuteSucceededUseCaseInput.js → zdata-source/domain/entities/interfaces/IAPITemplates.js} +0 -0
- /package/es/platform/{zlist/usecases/interfaces/input/RecordUpdateUseCaseInput.js → zdata-source/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/{zlist/usecases/interfaces/input/SortingInputModel.js → zfield/applications/interfaces/UsecaseDependencies.js} +0 -0
- /package/es/platform/{zrecord/entities/interfaces/ICustomFieldValues.js → zfield/applications/interfaces/gateways/IRepository.js} +0 -0
- /package/es/platform/{zrecord/entities/interfaces/IRecordName.js → zfield/applications/interfaces/gateways/IRestApi.js} +0 -0
- /package/es/platform/{zrecord/entities/interfaces/RecordModel.js → zfield/applications/interfaces/gateways/IService.js} +0 -0
- /package/es/platform/{zrecord/entities/interfaces/RecordsModel.js → zfield/applications/interfaces/input/ExecuteActionInputModel.js} +0 -0
- /package/es/platform/{zrecord/usecases/interfaces/input/AppendRecordsInputModel.js → zfield/applications/interfaces/input/InitialInputModel.js} +0 -0
- /package/es/platform/{zrecord/usecases/interfaces/input/DeleteMultipleRecordInputModel.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/FetchMoreInputModel.js → zfield/applications/interfaces/input/SetValueInputModel.js} +0 -0
- /package/es/platform/{zrecord/usecases/interfaces/input/FieldChangeUseCaseInput.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}/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/{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/{zrecord/usecases/interfaces/input/RecordUpdateLocalUseCaseInputModel.js → zfield/domain/entities/interfaces/ActionModel.js} +0 -0
- /package/es/platform/{zrecord/usecases/interfaces/input/SetRecordsInputModel.js → zfield/domain/entities/interfaces/BehaviourState.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}/FailureUseCase.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}/NoContentUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/RecordUpdateLocalUseCase.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,106 @@
|
|
|
1
|
+
/* eslint-disable react/prop-types */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import createCustomComponent from "../createCustomComponent";
|
|
4
|
+
import { render, screen } from '@testing-library/react';
|
|
5
|
+
import '@testing-library/jest-dom';
|
|
6
|
+
|
|
7
|
+
let View = (_ref, ref) => {
|
|
8
|
+
let {
|
|
9
|
+
state
|
|
10
|
+
} = _ref;
|
|
11
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12
|
+
ref: ref,
|
|
13
|
+
"data-testid": "custom-component",
|
|
14
|
+
"data-title": state.properties.title
|
|
15
|
+
}, "Hey");
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
let mockComponentCC = {
|
|
19
|
+
name: 'mockComponent',
|
|
20
|
+
View: View,
|
|
21
|
+
properties: {},
|
|
22
|
+
eventHandlers: {
|
|
23
|
+
"mockComponent#MOUNT": jest.fn(),
|
|
24
|
+
"mockComponent#UN_MOUNT": jest.fn(),
|
|
25
|
+
"mockComponent#UPDATE_PROPERTIES": jest.fn()
|
|
26
|
+
},
|
|
27
|
+
properties: {
|
|
28
|
+
title: {
|
|
29
|
+
name: 'titile',
|
|
30
|
+
defaultValue: 'default',
|
|
31
|
+
typeMetadata: {
|
|
32
|
+
schema: {
|
|
33
|
+
type: 'string'
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
behaviour: [{
|
|
39
|
+
name: 'test',
|
|
40
|
+
properties: {},
|
|
41
|
+
setInitialState: () => ({}),
|
|
42
|
+
eventHandlers: {}
|
|
43
|
+
}]
|
|
44
|
+
};
|
|
45
|
+
describe('createCustomComponent integration test', () => {
|
|
46
|
+
// basic rendering test
|
|
47
|
+
it('should mount the component and check the rendering', () => {
|
|
48
|
+
const CustomComponent = createCustomComponent(mockComponentCC);
|
|
49
|
+
let {
|
|
50
|
+
container
|
|
51
|
+
} = render( /*#__PURE__*/React.createElement(CustomComponent, null));
|
|
52
|
+
expect(container).toBeInTheDocument();
|
|
53
|
+
}); // test if the ref is passed to the component
|
|
54
|
+
|
|
55
|
+
it('should pass the ref to the component', () => {
|
|
56
|
+
const CustomComponent = createCustomComponent(mockComponentCC);
|
|
57
|
+
let ref = /*#__PURE__*/React.createRef();
|
|
58
|
+
render( /*#__PURE__*/React.createElement(CustomComponent, {
|
|
59
|
+
ref: ref
|
|
60
|
+
}));
|
|
61
|
+
expect(typeof ref.current).toBe('object');
|
|
62
|
+
});
|
|
63
|
+
it('should pass props to the custom component', () => {
|
|
64
|
+
const CustomComponent = createCustomComponent(mockComponentCC);
|
|
65
|
+
render( /*#__PURE__*/React.createElement(CustomComponent, null));
|
|
66
|
+
const component = screen.getByTestId('custom-component');
|
|
67
|
+
expect(component).toHaveAttribute('data-testid', 'custom-component');
|
|
68
|
+
});
|
|
69
|
+
it('should initialize custom behavior state', () => {
|
|
70
|
+
const CustomComponent = createCustomComponent(mockComponentCC);
|
|
71
|
+
render( /*#__PURE__*/React.createElement(CustomComponent, null));
|
|
72
|
+
const {
|
|
73
|
+
behaviour
|
|
74
|
+
} = mockComponentCC;
|
|
75
|
+
expect(behaviour[0].setInitialState()).toEqual({});
|
|
76
|
+
});
|
|
77
|
+
it('should call the MOUNT event handler on mounting', () => {
|
|
78
|
+
const CustomComponent = createCustomComponent(mockComponentCC);
|
|
79
|
+
render( /*#__PURE__*/React.createElement(CustomComponent, null));
|
|
80
|
+
expect(mockComponentCC.eventHandlers['mockComponent#MOUNT']).toHaveBeenCalled();
|
|
81
|
+
});
|
|
82
|
+
it('should update component when props change and update property event', () => {
|
|
83
|
+
const CustomComponent = createCustomComponent(mockComponentCC);
|
|
84
|
+
const {
|
|
85
|
+
rerender
|
|
86
|
+
} = render( /*#__PURE__*/React.createElement(CustomComponent, {
|
|
87
|
+
title: "Initial Title"
|
|
88
|
+
}));
|
|
89
|
+
let component = screen.getByTestId('custom-component');
|
|
90
|
+
expect(component).toHaveAttribute('data-title', 'Initial Title');
|
|
91
|
+
rerender( /*#__PURE__*/React.createElement(CustomComponent, {
|
|
92
|
+
title: "Updated Title"
|
|
93
|
+
}));
|
|
94
|
+
component = screen.getByTestId('custom-component');
|
|
95
|
+
expect(component).toHaveAttribute('data-title', 'Updated Title');
|
|
96
|
+
expect(mockComponentCC.eventHandlers['mockComponent#UPDATE_PROPERTIES']).toHaveBeenCalled();
|
|
97
|
+
});
|
|
98
|
+
it('should clean up properly on unmount', () => {
|
|
99
|
+
const CustomComponent = createCustomComponent(mockComponentCC);
|
|
100
|
+
const {
|
|
101
|
+
unmount
|
|
102
|
+
} = render( /*#__PURE__*/React.createElement(CustomComponent, null));
|
|
103
|
+
unmount();
|
|
104
|
+
expect(mockComponentCC.eventHandlers['mockComponent#UN_MOUNT']).toHaveBeenCalled();
|
|
105
|
+
});
|
|
106
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import ActionIcon, { Button, FilterDropdown } from "../../../../legacy-to-new-arch/action-icon/frameworks/ui/ActionIcon";
|
|
2
|
+
const ActionComponentMapping = {
|
|
3
|
+
'ActionIcon': ActionIcon,
|
|
4
|
+
'Button': Button,
|
|
5
|
+
'TableFilterDropdown': FilterDropdown
|
|
6
|
+
};
|
|
7
|
+
export default ActionComponentMapping;
|
|
@@ -1,38 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Flex from '@zohodesk/layout/es/Flex/Flex';
|
|
3
2
|
import ComponentRegistry from "../../../../../custom-component/frameworks/ui/ComponentRegistry";
|
|
4
|
-
import
|
|
5
|
-
const defaultUiMapping = {
|
|
6
|
-
ActionIcon: ActionIcon
|
|
7
|
-
};
|
|
3
|
+
import ActionsRenderer from "../../../actions-renderer/frameworks/ui/ActionsRenderer";
|
|
8
4
|
export default function ActionLocationView(_ref, ref) {
|
|
9
5
|
let {
|
|
10
6
|
state
|
|
11
7
|
} = _ref;
|
|
12
8
|
const {
|
|
13
|
-
actions
|
|
9
|
+
actions,
|
|
10
|
+
type
|
|
14
11
|
} = state.properties;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
$ui_justifyContent: "end"
|
|
21
|
-
}, actions.map((action, index) => {
|
|
22
|
-
const {
|
|
23
|
-
type,
|
|
24
|
-
properties,
|
|
25
|
-
eventMappings
|
|
26
|
-
} = action;
|
|
27
|
-
/* eslint-disable-next-line @zohodesk/architecturerules/no-defaultProps-rule */
|
|
28
|
-
|
|
29
|
-
const ActionUiType = defaultUiMapping[type] || ComponentRegistry.get(type);
|
|
30
|
-
return /*#__PURE__*/React.createElement(ActionUiType, {
|
|
31
|
-
key: index,
|
|
32
|
-
...properties,
|
|
33
|
-
appendToActionPayload: {
|
|
34
|
-
eventMappings
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}));
|
|
12
|
+
const ActionsRendererComponent = ComponentRegistry.get(type) || ActionsRenderer;
|
|
13
|
+
return /*#__PURE__*/React.createElement(ActionsRendererComponent, {
|
|
14
|
+
actions: actions,
|
|
15
|
+
getRef: ref
|
|
16
|
+
});
|
|
38
17
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createCustomComponent } from "../../../../../custom-component";
|
|
2
|
+
import ActionLocationProperties from "../../../../../../cc/action-location/Properties";
|
|
3
|
+
import ActionsRendererView from "./ActionsRendererView";
|
|
4
|
+
export default createCustomComponent({
|
|
5
|
+
name: 'ActionsRenderer',
|
|
6
|
+
properties: ActionLocationProperties,
|
|
7
|
+
eventHandlers: {},
|
|
8
|
+
View: ActionsRendererView
|
|
9
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ComponentRegistry from "../../../../../custom-component/frameworks/ui/ComponentRegistry";
|
|
3
|
+
import ActionComponentMapping from "../../../action-location/frameworks/ui/ActionComponentMapping";
|
|
4
|
+
import Flex from '@zohodesk/layout/es/Flex/Flex';
|
|
5
|
+
|
|
6
|
+
function ActionsRendererView(_ref, ref) {
|
|
7
|
+
let {
|
|
8
|
+
state
|
|
9
|
+
} = _ref;
|
|
10
|
+
const {
|
|
11
|
+
actions
|
|
12
|
+
} = state.properties;
|
|
13
|
+
return /*#__PURE__*/React.createElement(Flex, {
|
|
14
|
+
ref: ref,
|
|
15
|
+
$ui_displayMode: "inline",
|
|
16
|
+
$ui_alignItems: "center"
|
|
17
|
+
}, actions.map((action, index) => {
|
|
18
|
+
const {
|
|
19
|
+
type,
|
|
20
|
+
properties,
|
|
21
|
+
eventMappings
|
|
22
|
+
} = action;
|
|
23
|
+
/* eslint-disable-next-line @zohodesk/architecturerules/no-defaultProps-rule */
|
|
24
|
+
|
|
25
|
+
const ActionUiType = ActionComponentMapping[type] || ComponentRegistry.get(type);
|
|
26
|
+
return /*#__PURE__*/React.createElement(ActionUiType, {
|
|
27
|
+
key: index,
|
|
28
|
+
...properties,
|
|
29
|
+
appendToActionPayload: {
|
|
30
|
+
eventMappings
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
;
|
|
37
|
+
export default ActionsRendererView;
|
|
@@ -24,7 +24,8 @@ function TableListView(_ref2, _ref) {
|
|
|
24
24
|
resizerConfig,
|
|
25
25
|
selectionConfig,
|
|
26
26
|
isFlexibleColumns,
|
|
27
|
-
|
|
27
|
+
rowCursor,
|
|
28
|
+
rowActionsConfig,
|
|
28
29
|
emptyStateUiType
|
|
29
30
|
} = state.properties;
|
|
30
31
|
const {
|
|
@@ -35,6 +36,10 @@ function TableListView(_ref2, _ref) {
|
|
|
35
36
|
headers,
|
|
36
37
|
rows
|
|
37
38
|
} = data;
|
|
39
|
+
const {
|
|
40
|
+
hasActions: hasRowActions,
|
|
41
|
+
columnWidth: rowActionsColumnWidth
|
|
42
|
+
} = rowActionsConfig;
|
|
38
43
|
const hasRows = rows.length > 0; // TODO: derive from state.properties
|
|
39
44
|
|
|
40
45
|
const isDataEmpty = !hasRows && !isLoading; // TODO: derive from state.properties
|
|
@@ -54,14 +59,16 @@ function TableListView(_ref2, _ref) {
|
|
|
54
59
|
selection,
|
|
55
60
|
isFlexibleColumns,
|
|
56
61
|
hasRowActions,
|
|
62
|
+
rowActionsColumnWidth,
|
|
57
63
|
dispatch
|
|
58
64
|
}), renderBody({
|
|
59
65
|
headers,
|
|
60
66
|
rows,
|
|
61
67
|
isFlexibleColumns,
|
|
62
68
|
selectionConfig,
|
|
63
|
-
|
|
69
|
+
rowCursor,
|
|
64
70
|
hasRowActions,
|
|
71
|
+
rowActionsColumnWidth,
|
|
65
72
|
hasRows
|
|
66
73
|
}), /*#__PURE__*/React.createElement(NoData, {
|
|
67
74
|
isDataEmpty: isDataEmpty,
|
|
@@ -81,18 +88,19 @@ function renderHeader(_ref3) {
|
|
|
81
88
|
selection,
|
|
82
89
|
isFlexibleColumns,
|
|
83
90
|
hasRowActions,
|
|
91
|
+
rowActionsColumnWidth,
|
|
84
92
|
dispatch
|
|
85
93
|
} = _ref3;
|
|
86
94
|
return /*#__PURE__*/React.createElement(Header, {
|
|
87
95
|
isSelectionEnabled: selectionConfig.isEnabled,
|
|
88
96
|
hasAllSelected: selection.hasAllSelected,
|
|
89
97
|
isResizerEnabled: resizerConfig.isEnabled,
|
|
90
|
-
resizedColumnsWidth: resizerState.resizedColumnsWidth,
|
|
91
98
|
currentlyResizingColumn: resizerState.currentlyResizingColumn,
|
|
92
99
|
isCurrentlyResizing: resizerState.isCurrentlyResizing,
|
|
93
100
|
resizerExtraWidth: resizerState.extraWidth,
|
|
94
101
|
isFlexibleColumns: isFlexibleColumns,
|
|
95
102
|
hasRowActions: hasRowActions,
|
|
103
|
+
rowActionsColumnWidth: rowActionsColumnWidth,
|
|
96
104
|
headers: headers,
|
|
97
105
|
dispatch: dispatch
|
|
98
106
|
});
|
|
@@ -104,8 +112,9 @@ function renderBody(_ref4) {
|
|
|
104
112
|
rows,
|
|
105
113
|
isFlexibleColumns,
|
|
106
114
|
selectionConfig,
|
|
107
|
-
|
|
115
|
+
rowCursor,
|
|
108
116
|
hasRowActions,
|
|
117
|
+
rowActionsColumnWidth,
|
|
109
118
|
hasRows
|
|
110
119
|
} = _ref4;
|
|
111
120
|
return /*#__PURE__*/React.createElement(Body, {
|
|
@@ -116,8 +125,9 @@ function renderBody(_ref4) {
|
|
|
116
125
|
rows: rows,
|
|
117
126
|
isFlexibleColumns: isFlexibleColumns,
|
|
118
127
|
isSelectionEnabled: selectionConfig.isEnabled,
|
|
119
|
-
|
|
120
|
-
hasRowActions: hasRowActions
|
|
128
|
+
rowCursor: rowCursor,
|
|
129
|
+
hasRowActions: hasRowActions,
|
|
130
|
+
rowActionsColumnWidth: rowActionsColumnWidth
|
|
121
131
|
}));
|
|
122
132
|
}
|
|
123
133
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import TableHeader from '@zohodesk-private/desk-components/es/table/TableHeader/TableHeader';
|
|
3
|
+
import TableHeaderRow from '@zohodesk-private/desk-components/es/table/TableHeader/TableHeaderRow';
|
|
3
4
|
import SelectAll from "./header/SelectAll";
|
|
4
5
|
import Headers from "./header/Headers";
|
|
5
6
|
import ActionColumn from "./header/ActionColumn";
|
|
@@ -10,12 +11,12 @@ function Header(_ref) {
|
|
|
10
11
|
isSelectionEnabled,
|
|
11
12
|
hasAllSelected,
|
|
12
13
|
isResizerEnabled,
|
|
13
|
-
resizedColumnsWidth,
|
|
14
14
|
currentlyResizingColumn,
|
|
15
15
|
isCurrentlyResizing,
|
|
16
16
|
resizerExtraWidth,
|
|
17
17
|
isFlexibleColumns,
|
|
18
18
|
hasRowActions,
|
|
19
|
+
rowActionsColumnWidth,
|
|
19
20
|
headers,
|
|
20
21
|
dispatch
|
|
21
22
|
} = _ref;
|
|
@@ -25,8 +26,9 @@ function Header(_ref) {
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
return /*#__PURE__*/React.createElement(TableHeader, {
|
|
29
|
+
$flag_isColumnsFlexible: isFlexibleColumns,
|
|
28
30
|
$flag_padding: !isSelectionEnabled
|
|
29
|
-
}, renderSelectAll(isSelectionEnabled, hasAllSelected, dispatch), renderHeaders(headers,
|
|
31
|
+
}, /*#__PURE__*/React.createElement(TableHeaderRow, null, renderSelectAll(isSelectionEnabled, hasAllSelected, dispatch), renderHeaders(headers, currentlyResizingColumn, isResizerEnabled, isFlexibleColumns, dispatch), renderActionColumn(hasRowActions, rowActionsColumnWidth), renderResizerExtraSpace(isCurrentlyResizing, resizerExtraWidth)));
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
function renderSelectAll(isSelectionEnabled, hasAllSelected, dispatch) {
|
|
@@ -37,10 +39,9 @@ function renderSelectAll(isSelectionEnabled, hasAllSelected, dispatch) {
|
|
|
37
39
|
});
|
|
38
40
|
}
|
|
39
41
|
|
|
40
|
-
function renderHeaders(headers,
|
|
42
|
+
function renderHeaders(headers, currentlyResizingColumn, isResizerEnabled, isFlexibleColumns, dispatch) {
|
|
41
43
|
return /*#__PURE__*/React.createElement(Headers, {
|
|
42
44
|
headers: headers,
|
|
43
|
-
resizedColumnsWidth: resizedColumnsWidth,
|
|
44
45
|
currentlyResizingColumn: currentlyResizingColumn,
|
|
45
46
|
isResizerEnabled: isResizerEnabled,
|
|
46
47
|
isFlexibleColumns: isFlexibleColumns,
|
|
@@ -48,9 +49,10 @@ function renderHeaders(headers, resizedColumnsWidth, currentlyResizingColumn, is
|
|
|
48
49
|
});
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
function renderActionColumn(hasRowActions) {
|
|
52
|
+
function renderActionColumn(hasRowActions, columnWidth) {
|
|
52
53
|
return /*#__PURE__*/React.createElement(ActionColumn, {
|
|
53
|
-
hasRowActions: hasRowActions
|
|
54
|
+
hasRowActions: hasRowActions,
|
|
55
|
+
columnWidth: columnWidth
|
|
54
56
|
});
|
|
55
57
|
}
|
|
56
58
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Row from "./row/Row";
|
|
3
|
-
const emptyArray = Object.freeze([]);
|
|
4
|
-
const emptyObject = {};
|
|
5
3
|
|
|
6
4
|
function Rows(_ref) {
|
|
7
5
|
let {
|
|
@@ -9,44 +7,44 @@ function Rows(_ref) {
|
|
|
9
7
|
rows,
|
|
10
8
|
isFlexibleColumns,
|
|
11
9
|
isSelectionEnabled,
|
|
12
|
-
|
|
13
|
-
hasRowActions
|
|
10
|
+
rowCursor,
|
|
11
|
+
hasRowActions,
|
|
12
|
+
rowActionsColumnWidth
|
|
14
13
|
} = _ref;
|
|
15
14
|
return rows.map((row, index) => /*#__PURE__*/React.createElement(Row, {
|
|
16
15
|
key: index,
|
|
17
|
-
...getRowProps(row, headers, isFlexibleColumns, isSelectionEnabled,
|
|
16
|
+
...getRowProps(row, headers, isFlexibleColumns, isSelectionEnabled, rowCursor, hasRowActions, rowActionsColumnWidth)
|
|
18
17
|
}));
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
function getRowProps(row, headers, isFlexibleColumns, isSelectionEnabled,
|
|
20
|
+
function getRowProps(row, headers, isFlexibleColumns, isSelectionEnabled, rowCursor, hasRowActions, rowActionsColumnWidth) {
|
|
22
21
|
const {
|
|
23
22
|
id,
|
|
24
23
|
columns,
|
|
25
24
|
isSelected,
|
|
26
25
|
isSelectable,
|
|
27
26
|
selectionTooltip,
|
|
28
|
-
|
|
29
|
-
rowActions
|
|
27
|
+
rowActionLocation
|
|
30
28
|
} = row;
|
|
31
29
|
const updatedColumns = getUpdatedColumns(columns, headers);
|
|
32
30
|
return {
|
|
33
31
|
id,
|
|
34
|
-
columns: updatedColumns
|
|
35
|
-
|
|
36
|
-
rowActions: rowActions || emptyArray,
|
|
32
|
+
columns: updatedColumns,
|
|
33
|
+
rowActionLocation,
|
|
37
34
|
isSelected,
|
|
38
35
|
isSelectable,
|
|
39
36
|
selectionTooltip,
|
|
40
37
|
isFlexibleColumns,
|
|
41
38
|
isSelectionEnabled,
|
|
42
|
-
|
|
43
|
-
hasActions: hasRowActions
|
|
39
|
+
cursor: rowCursor,
|
|
40
|
+
hasActions: hasRowActions,
|
|
41
|
+
rowActionsColumnWidth
|
|
44
42
|
};
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
function getUpdatedColumns(columns, headers) {
|
|
48
46
|
return columns.map((column, index) => ({
|
|
49
|
-
|
|
47
|
+
width: headers[index].width,
|
|
50
48
|
field: column,
|
|
51
49
|
alignment: headers[index].alignment
|
|
52
50
|
}));
|
package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/ActionColumn.js
CHANGED
|
@@ -2,12 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import TableHead from '@zohodesk-private/desk-components/es/table/TableHead/TableHead';
|
|
3
3
|
export default function ActionColumn(_ref) {
|
|
4
4
|
let {
|
|
5
|
-
hasRowActions
|
|
5
|
+
hasRowActions,
|
|
6
|
+
columnWidth
|
|
6
7
|
} = _ref;
|
|
7
8
|
|
|
8
9
|
if (hasRowActions) {
|
|
9
10
|
return /*#__PURE__*/React.createElement(TableHead, {
|
|
10
|
-
$
|
|
11
|
+
$data_width: columnWidth
|
|
11
12
|
}, /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
12
13
|
}
|
|
13
14
|
|
package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import TableHead from '@zohodesk-private/desk-components/es/table/TableHead/TableHead';
|
|
3
|
+
import { AlignmentOfFlex } from "../../../../../../../../cc/table-list/data-types/Header";
|
|
4
|
+
import ActionEventMediator from "../../../../../../../../platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator";
|
|
5
|
+
import { ActionViewGap } from "../../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
3
6
|
import HeaderText from "./HeaderText";
|
|
4
7
|
import ColumnResizer from "./ColumnResizer";
|
|
5
8
|
|
|
@@ -10,7 +13,6 @@ function HeaderData(_ref) {
|
|
|
10
13
|
sortTooltip,
|
|
11
14
|
isResizing,
|
|
12
15
|
isResizerEnabled,
|
|
13
|
-
resizedWidth,
|
|
14
16
|
isFlexibleColumns,
|
|
15
17
|
dispatch
|
|
16
18
|
} = _ref;
|
|
@@ -19,27 +21,38 @@ function HeaderData(_ref) {
|
|
|
19
21
|
name,
|
|
20
22
|
text,
|
|
21
23
|
sortable,
|
|
22
|
-
|
|
23
|
-
alignment
|
|
24
|
+
width,
|
|
25
|
+
alignment,
|
|
26
|
+
actions
|
|
24
27
|
} = header;
|
|
28
|
+
const hasActions = Boolean(actions === null || actions === void 0 ? void 0 : actions.length);
|
|
25
29
|
return (
|
|
26
30
|
/*#__PURE__*/
|
|
27
31
|
// @ts-ignore
|
|
28
32
|
React.createElement(TableHead, {
|
|
29
|
-
$ui_size: size,
|
|
30
33
|
$ui_align: alignment,
|
|
31
|
-
$data_width:
|
|
32
|
-
$flag_flexible: isFlexibleColumns
|
|
34
|
+
$data_width: width,
|
|
35
|
+
$flag_flexible: isFlexibleColumns,
|
|
36
|
+
$a11yAttributes_container: {
|
|
37
|
+
'aria-sort': sortable ? sortedBy : 'none'
|
|
38
|
+
},
|
|
39
|
+
$customProps_container: hasActions ? {
|
|
40
|
+
$ui_displayMode: 'flex',
|
|
41
|
+
$ui_alignItems: 'center',
|
|
42
|
+
$ui_justifyContent: AlignmentOfFlex[alignment]
|
|
43
|
+
} : null
|
|
33
44
|
}, /*#__PURE__*/React.createElement(HeaderText, {
|
|
34
45
|
id: id,
|
|
35
46
|
name: name,
|
|
36
47
|
text: text,
|
|
37
48
|
sortable: sortable,
|
|
38
49
|
sortedBy: sortedBy,
|
|
39
|
-
sortTooltip: sortTooltip
|
|
40
|
-
,
|
|
50
|
+
sortTooltip: sortTooltip,
|
|
41
51
|
dispatch: dispatch
|
|
42
|
-
}), /*#__PURE__*/React.createElement(
|
|
52
|
+
}), hasActions ? /*#__PURE__*/React.createElement(ActionEventMediator, {
|
|
53
|
+
actions: actions,
|
|
54
|
+
gap: ActionViewGap.SMALL
|
|
55
|
+
}) : null, /*#__PURE__*/React.createElement(ColumnResizer, {
|
|
43
56
|
isResizerEnabled: isResizerEnabled,
|
|
44
57
|
isResizing: isResizing
|
|
45
58
|
}))
|
|
@@ -4,7 +4,6 @@ import HeaderData from "./HeaderData";
|
|
|
4
4
|
function Headers(_ref) {
|
|
5
5
|
let {
|
|
6
6
|
headers,
|
|
7
|
-
resizedColumnsWidth,
|
|
8
7
|
currentlyResizingColumn,
|
|
9
8
|
isResizerEnabled,
|
|
10
9
|
isFlexibleColumns,
|
|
@@ -17,12 +16,9 @@ function Headers(_ref) {
|
|
|
17
16
|
} = header;
|
|
18
17
|
let isResizing = currentlyResizingColumn === header.id; // TODO: To be adopted with properties
|
|
19
18
|
|
|
20
|
-
let resizedWidth = resizedColumnsWidth[header.id]; // TODO: To be adopted with properties
|
|
21
|
-
|
|
22
19
|
return /*#__PURE__*/React.createElement(HeaderData, {
|
|
23
20
|
key: index,
|
|
24
21
|
header: header,
|
|
25
|
-
resizedWidth: resizedWidth,
|
|
26
22
|
sortedBy: sortOrder,
|
|
27
23
|
sortTooltip: sortTooltip,
|
|
28
24
|
isResizing: isResizing,
|
package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/SelectAll.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import CheckBox from '@zohodesk/components/es/CheckBox/CheckBox';
|
|
2
3
|
import TableHeadFirstNode from '@zohodesk-private/desk-components/es/table/TableHeadFirstNode/TableHeadFirstNode';
|
|
3
|
-
import TableCheckBox from '@zohodesk-private/desk-components/es/table/TableCheckBox/TableCheckBox';
|
|
4
4
|
import { TableListConstants } from "../../../../../../../../cc/table-list";
|
|
5
5
|
|
|
6
6
|
function SelectAll(_ref) {
|
|
@@ -14,9 +14,9 @@ function SelectAll(_ref) {
|
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
return /*#__PURE__*/React.createElement(TableHeadFirstNode, null, /*#__PURE__*/React.createElement(
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
return /*#__PURE__*/React.createElement(TableHeadFirstNode, null, /*#__PURE__*/React.createElement(CheckBox, {
|
|
18
|
+
checked: hasAllSelected,
|
|
19
|
+
onChange: () => dispatch({
|
|
20
20
|
type: TableListConstants.TABLE_LIST_TOGGLE_ALL_SELECTION
|
|
21
21
|
})
|
|
22
22
|
}));
|
|
@@ -3,23 +3,19 @@ import RowData from "./RowData";
|
|
|
3
3
|
|
|
4
4
|
function Columns(_ref) {
|
|
5
5
|
let {
|
|
6
|
-
resizedColumnsWidth,
|
|
7
6
|
data,
|
|
8
7
|
isFlexibleColumns
|
|
9
8
|
} = _ref;
|
|
10
9
|
return data.map((column, index) => {
|
|
11
10
|
const {
|
|
12
|
-
|
|
11
|
+
width,
|
|
13
12
|
alignment,
|
|
14
13
|
field
|
|
15
14
|
} = column;
|
|
16
|
-
const resizedWidth = resizedColumnsWidth[field.id]; // Will be adopted with properties
|
|
17
|
-
|
|
18
15
|
return /*#__PURE__*/React.createElement(RowData, {
|
|
19
16
|
key: index,
|
|
20
17
|
field: field,
|
|
21
|
-
|
|
22
|
-
size: size,
|
|
18
|
+
width: width,
|
|
23
19
|
alignment: alignment,
|
|
24
20
|
isFlexibleColumns: isFlexibleColumns
|
|
25
21
|
});
|
|
@@ -6,7 +6,9 @@ import RowActions from "./RowActions";
|
|
|
6
6
|
import { createCustomComponent } from "../../../../../../../custom-component";
|
|
7
7
|
import { RowEventHandlersFactory } from "./RowEventHandlersFactory";
|
|
8
8
|
import TableRowProperties from "../../../../../../../../cc/table-list/row/Properties";
|
|
9
|
-
import TableRowConstants from "../../../../../../../../cc/table-list/row/Constants";
|
|
9
|
+
import TableRowConstants from "../../../../../../../../cc/table-list/row/Constants"; // @ts-ignore
|
|
10
|
+
|
|
11
|
+
import style from "../../css/TableList.module.css";
|
|
10
12
|
|
|
11
13
|
function RowView(_ref, ref) {
|
|
12
14
|
let {
|
|
@@ -25,11 +27,16 @@ function RowView(_ref, ref) {
|
|
|
25
27
|
const {
|
|
26
28
|
id,
|
|
27
29
|
columns,
|
|
28
|
-
|
|
30
|
+
rowActionLocation,
|
|
29
31
|
isFlexibleColumns,
|
|
30
|
-
|
|
31
|
-
hasActions
|
|
32
|
+
cursor,
|
|
33
|
+
hasActions,
|
|
34
|
+
rowActionsColumnWidth
|
|
32
35
|
} = state.properties;
|
|
36
|
+
const {
|
|
37
|
+
type,
|
|
38
|
+
actions
|
|
39
|
+
} = rowActionLocation;
|
|
33
40
|
return /*#__PURE__*/React.createElement(TableRow, {
|
|
34
41
|
key: id,
|
|
35
42
|
ref: ref,
|
|
@@ -40,7 +47,10 @@ function RowView(_ref, ref) {
|
|
|
40
47
|
payload: {
|
|
41
48
|
id
|
|
42
49
|
}
|
|
43
|
-
})
|
|
50
|
+
}),
|
|
51
|
+
customStyle: {
|
|
52
|
+
$pointer: style[`rowCursor_${cursor}`]
|
|
53
|
+
}
|
|
44
54
|
}, renderRowSelection({
|
|
45
55
|
isSelectionEnabled,
|
|
46
56
|
id,
|
|
@@ -50,12 +60,12 @@ function RowView(_ref, ref) {
|
|
|
50
60
|
dispatch
|
|
51
61
|
}), renderColumns({
|
|
52
62
|
columns,
|
|
53
|
-
resizedColumnsWidth,
|
|
54
63
|
isFlexibleColumns
|
|
55
64
|
}), renderRowActions({
|
|
56
65
|
hasActions,
|
|
57
|
-
|
|
58
|
-
|
|
66
|
+
columnWidth: rowActionsColumnWidth,
|
|
67
|
+
type,
|
|
68
|
+
actions
|
|
59
69
|
}));
|
|
60
70
|
}
|
|
61
71
|
|
|
@@ -81,12 +91,10 @@ function renderRowSelection(_ref2) {
|
|
|
81
91
|
function renderColumns(_ref3) {
|
|
82
92
|
let {
|
|
83
93
|
columns,
|
|
84
|
-
resizedColumnsWidth,
|
|
85
94
|
isFlexibleColumns
|
|
86
95
|
} = _ref3;
|
|
87
96
|
return /*#__PURE__*/React.createElement(Columns, {
|
|
88
97
|
data: columns,
|
|
89
|
-
resizedColumnsWidth: resizedColumnsWidth,
|
|
90
98
|
isFlexibleColumns: isFlexibleColumns
|
|
91
99
|
});
|
|
92
100
|
}
|
|
@@ -94,13 +102,15 @@ function renderColumns(_ref3) {
|
|
|
94
102
|
function renderRowActions(_ref4) {
|
|
95
103
|
let {
|
|
96
104
|
hasActions,
|
|
97
|
-
|
|
98
|
-
|
|
105
|
+
columnWidth,
|
|
106
|
+
actions,
|
|
107
|
+
type
|
|
99
108
|
} = _ref4;
|
|
100
109
|
return /*#__PURE__*/React.createElement(RowActions, {
|
|
101
110
|
hasActions: hasActions,
|
|
102
|
-
|
|
103
|
-
|
|
111
|
+
columnWidth: columnWidth,
|
|
112
|
+
type: type,
|
|
113
|
+
actions: actions
|
|
104
114
|
});
|
|
105
115
|
}
|
|
106
116
|
|