@zohodesk/library-platform 1.0.1 → 1.1.0-exp.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/es/bc/index.js +2 -0
- package/es/bc/list-selection/Properties.js +21 -12
- package/es/bc/sort-by/Properties.js +20 -15
- package/es/bc/sort-by/index.js +2 -0
- package/es/bc/table-column-resizer/Properties.js +1 -1
- package/es/bc/zhttp/Properties.js +11 -1
- package/es/bc/zhttp/index.js +2 -0
- package/es/bc/zlist/Properties.js +12 -3
- package/es/cc/action-icon/Model.js +6 -2
- package/es/cc/action-icon/Properties.js +18 -0
- package/es/cc/action-location/Properties.js +54 -3
- package/es/cc/component/properties/PropertiesConverter.js +23 -0
- package/es/cc/empty-state/index.js +1 -0
- package/es/cc/fields/field/Properties.js +9 -1
- package/es/cc/fields/field/Types.js +16 -16
- package/es/cc/fields/multi-select/Properties.js +1 -1
- package/es/cc/fields/pick-list/Properties.js +1 -1
- package/es/cc/index.js +1 -0
- package/es/cc/table-connected/Properties.js +49 -45
- package/es/cc/table-list/Properties.js +79 -318
- package/es/cc/table-list/model/RowModel.js +2 -4
- package/es/cc/table-list/row/Properties.js +3 -11
- package/es/desk-frameworks/table-connected/frameworks/TableConnectedView.js +10 -11
- 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/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 +36 -7
- package/es/library/custom-component/{entities → domain/entities}/DefaultAppendToActionPayload.js +2 -2
- package/es/library/custom-component/{entities → domain/entities}/Properties.js +4 -5
- package/es/library/custom-component/frameworks/ui/__testcases__/CreateCustomComponent.spec.js +106 -0
- package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +5 -0
- package/es/library/dot/components/action-location/frameworks/ui/ActionLocationView.js +8 -29
- package/es/library/dot/components/actions-renderer/frameworks/ui/ActionsRenderer.js +9 -0
- package/es/library/dot/components/actions-renderer/frameworks/ui/ActionsRendererView.js +37 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.js +3 -7
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +5 -3
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +11 -7
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +3 -0
- package/es/library/dot/legacy-to-new-arch/action-icon/{ActionIcon.js → frameworks/ui/ActionIcon.js} +2 -2
- package/es/library/dot/legacy-to-new-arch/action-icon/{ActionIconView.js → frameworks/ui/ActionIconView.js} +11 -5
- package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/css/ActionIcon.module.css +3 -0
- package/es/library/dot/legacy-to-new-arch/index.js +1 -1
- package/es/platform/zdata-broker/adapters/gateways/Repository.js +1 -1
- package/es/platform/zdata-broker/adapters/gateways/Service.js +5 -5
- package/es/platform/zdata-broker/adapters/gateways/TemplateHelpers.js +21 -0
- package/es/platform/zdata-broker/{usecases → applications}/entities-factory/APITemplatesFactory.js +2 -2
- package/es/platform/zdata-broker/{usecases → applications}/entities-factory/DataBrokerFactory.js +1 -1
- package/es/platform/zdata-broker/applications/interfaces/gateways/ITemplateHelpers.js +1 -0
- package/es/platform/zdata-broker/{entities → domain/entities}/DataBroker.js +3 -3
- package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/MetaData.js +1 -1
- package/es/platform/zfield/adapters/gateways/Repository.js +1 -1
- package/es/platform/zfield/adapters/gateways/Service.js +6 -6
- package/es/platform/zfield/{usecases → applications}/entities-factory/FieldsManagerBuilder.js +1 -1
- package/es/platform/zfield/applications/interfaces/input/FetchInputModel.js +2 -0
- package/es/platform/zfield/{entities → domain/entities}/fields-manager/AvailableFieldsManager.js +2 -2
- package/es/platform/zfield/{entities → domain/entities}/fields-manager/FieldsManager.js +3 -3
- package/es/platform/zfield/{entities → domain/entities}/fields-manager/SelectedFieldsManager.js +2 -2
- package/es/platform/zfield/{entities → domain/entities}/interfaces/MetaData.js +1 -1
- package/es/platform/zhttp/frameworks/ActionsHandlerFactory.js +1 -1
- package/es/platform/zhttp/frameworks/ZHttpBehaviourFactory.js +2 -1
- package/es/platform/zlist/adapters/gateways/Repository.js +1 -1
- package/es/platform/zlist/adapters/gateways/Service.js +10 -10
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +2 -1
- package/es/platform/zlist/adapters/presenters/translators/Row.js +5 -1
- package/es/platform/zlist/adapters/presenters/translators/RowActionTranslator.js +18 -11
- package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +3 -1
- package/es/platform/zlist/{usecases → applications}/entities-factory/ListFactory.js +1 -1
- package/es/platform/zlist/{entities → domain/entities}/List.js +3 -3
- 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/{entities → domain/entities}/DeleteMultipleRecordStrategy.js +1 -1
- package/es/platform/zrecord/{entities → domain/entities}/DeleteRecordStrategy.js +1 -1
- package/es/platform/zrecord/{entities → domain/entities}/GetRecordsStrategy.js +1 -1
- package/es/platform/zrecord/{entities → domain/entities}/RecordsManager.js +3 -3
- package/es/platform/zrecord/{entities → domain/entities}/UpdateRecordStrategy.js +1 -1
- package/es/platform/zrecord/domain/entities/interfaces/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 +10 -4
- package/es/cc/table-list/behaviour-properties/ResizerConfig.js +0 -18
- package/es/cc/table-list/behaviour-properties/SelectionConfig.js +0 -17
- package/es/cc/table-list/behaviour-properties/SortByConfig.js +0 -14
- package/es/cc/table-list/behaviour-properties/index.js +0 -3
- package/es/library/custom-component/entities/__tests__/Action.spec.js +0 -19
- package/es/library/custom-component/entities/__tests__/ActionHandlers.spec.js +0 -15
- package/es/library/custom-component/entities/__tests__/Behaviour.spec.js +0 -52
- package/es/library/custom-component/entities/__tests__/Component.spec.js +0 -109
- package/es/platform/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/{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/{custom-component/usecases → behaviours/list-selection/applications}/interfaces/UseCase.js +0 -0
- /package/es/library/behaviours/list-selection/{usecases → 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/list-selection/{entities → domain/entities}/ListItemSelection.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/UseCaseDependencies.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/sort-by/{usecases → 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/behaviours/text-to-field-click/{usecases → 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/library/custom-component/{usecases → 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/{usecases → applications}/interfaces/InputDependencies.js +0 -0
- /package/es/platform/zdata-broker/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
- /package/es/platform/zdata-broker/{usecases → applications}/interfaces/gateways/IService.js +0 -0
- /package/es/platform/zdata-broker/{usecases → applications}/interfaces/gateways/State.js +0 -0
- /package/es/platform/zdata-broker/{usecases → applications}/interfaces/input/ExecuteActionInputModel.js +0 -0
- /package/es/platform/zdata-broker/{usecases → applications}/interfaces/input/FailureInputModel.js +0 -0
- /package/es/platform/zdata-broker/{usecases → applications}/interfaces/input/NoContentInputModel.js +0 -0
- /package/es/platform/zdata-broker/{usecases → applications}/interfaces/input/RegisterInputModel.js +0 -0
- /package/es/platform/zdata-broker/{usecases → applications}/interfaces/input/SuccessInputModel.js +0 -0
- /package/es/platform/zdata-broker/{usecases → applications}/interfaces/output/IPresenter.js +0 -0
- /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
- /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +0 -0
- /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/FailureUseCase.js +0 -0
- /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/NoContentUseCase.js +0 -0
- /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/RegisterUseCase.js +0 -0
- /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/SuccessUseCase.js +0 -0
- /package/es/platform/zdata-broker/{entities → domain/entities}/APITemplate.js +0 -0
- /package/es/platform/zdata-broker/{entities → domain/entities}/APITemplates.js +0 -0
- /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/APIDetailsModel.js +0 -0
- /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/APITemplateModel.js +0 -0
- /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/APITemplatesModel.js +0 -0
- /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/ApiEnum.js +0 -0
- /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/BehaviourState.js +0 -0
- /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/EventModel.js +0 -0
- /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/IAPITemplate.js +0 -0
- /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/IAPITemplates.js +0 -0
- /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/IDataBroker.js +0 -0
- /package/es/platform/zdata-broker/{entities → 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/zfield/{usecases → applications}/interfaces/UsecaseDependencies.js +0 -0
- /package/es/platform/zfield/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
- /package/es/platform/zfield/{usecases → applications}/interfaces/gateways/IRestApi.js +0 -0
- /package/es/platform/zfield/{usecases → applications}/interfaces/gateways/IService.js +0 -0
- /package/es/platform/zfield/{usecases → applications}/interfaces/input/ExecuteActionInputModel.js +0 -0
- /package/es/platform/zfield/{usecases → applications}/interfaces/input/InitialInputModel.js +0 -0
- /package/es/platform/zfield/{usecases → applications}/interfaces/input/InputModel.js +0 -0
- /package/es/platform/zfield/{usecases → applications}/interfaces/input/RefetchInputModel.js +0 -0
- /package/es/platform/zfield/{usecases → applications}/interfaces/input/SetValueInputModel.js +0 -0
- /package/es/platform/zfield/{usecases → applications}/interfaces/output/IPresenter.js +0 -0
- /package/es/platform/zfield/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
- /package/es/platform/zfield/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +0 -0
- /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchFailureUseCase.js +0 -0
- /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchNoContentUseCase.js +0 -0
- /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchSuccessUseCase.js +0 -0
- /package/es/platform/zfield/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
- /package/es/platform/zfield/{usecases/interactors → applications/usecases}/RefetchUseCase.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/BooleanField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/CurrencyField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/DateField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/DateTimeField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/EmailField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/Field.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/LookupField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/MultiLineField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/MultiSelectField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/PercentageField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/PhoneField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/PickListField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/SingleLineField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/URLField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/index.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/interfaces/ActionModel.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/interfaces/BehaviourState.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/interfaces/FieldApiName.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/interfaces/FieldModel.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/interfaces/IField.js +0 -0
- /package/es/platform/zfield/{entities → domain/entities}/interfaces/IFieldManger.js +0 -0
- /package/es/platform/zhttp/{usecases → applications}/interfaces/InputDependencies.js +0 -0
- /package/es/platform/zhttp/{usecases/interfaces/gateway/IFetchGateWay.js → applications/interfaces/UseCase.js} +0 -0
- /package/es/platform/zhttp/{usecases/interfaces/input/FetchInputModel.js → applications/interfaces/gateway/IFetchGateWay.js} +0 -0
- /package/es/platform/{zlist/entities/interfaces/ActionModel.js → zhttp/applications/interfaces/input/FetchInputModel.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 → applications}/interfaces/State.js +0 -0
- /package/es/platform/zlist/{entities/interfaces/ApiPropsModel.js → applications/interfaces/UseCaseDependencies.js} +0 -0
- /package/es/platform/zlist/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
- /package/es/platform/zlist/{usecases → applications}/interfaces/gateways/IService.js +0 -0
- /package/es/platform/zlist/{entities/interfaces/IList.js → applications/interfaces/gateways/ISortBy.js} +0 -0
- /package/es/platform/zlist/{usecases → applications}/interfaces/gateways/ITransformState.js +0 -0
- /package/es/platform/zlist/{usecases → applications}/interfaces/input/DeleteMultipleRecordUseCaseInput.js +0 -0
- /package/es/platform/zlist/{usecases → applications}/interfaces/input/DeleteSingleRecordUseCaseInput.js +0 -0
- /package/es/platform/zlist/{usecases → applications}/interfaces/input/FetchMoreInput.js +0 -0
- /package/es/platform/zlist/{usecases → applications}/interfaces/input/FieldChangeUseCaseInput.js +0 -0
- /package/es/platform/zlist/{usecases → applications}/interfaces/input/InitializeInput.js +0 -0
- /package/es/platform/zlist/{usecases → applications}/interfaces/input/PropertiesChangeUseCaseInput.js +0 -0
- /package/es/platform/zlist/{usecases → applications}/interfaces/input/RecordExecuteFailedUseCaseInput.js +0 -0
- /package/es/platform/zlist/{usecases → applications}/interfaces/input/RecordExecuteSucceededUseCaseInput.js +0 -0
- /package/es/platform/zlist/{usecases → applications}/interfaces/input/RecordUpdateUseCaseInput.js +0 -0
- /package/es/platform/zlist/{usecases → applications}/interfaces/input/SortingInputModel.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/zlist/{entities/interfaces/Properties.js → domain/entities/interfaces/ActionModel.js} +0 -0
- /package/es/platform/zlist/{entities/interfaces/RecordExecuteAfterMetaData.js → domain/entities/interfaces/ApiPropsModel.js} +0 -0
- /package/es/platform/{zrecord/entities/interfaces/BehaviourState.js → zlist/domain/entities/interfaces/IList.js} +0 -0
- /package/es/platform/{zrecord/entities/interfaces/EventModel.js → zlist/domain/entities/interfaces/Properties.js} +0 -0
- /package/es/platform/{zrecord/entities/interfaces/ICustomFieldValues.js → zlist/domain/entities/interfaces/RecordExecuteAfterMetaData.js} +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/InputDependencies.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/gateways/IService.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/gateways/State.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/input/AppendRecordsInputModel.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/input/DeleteMultipleRecordInputModel.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/input/ExecuteActionInputModel.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/input/FailureInputModel.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/input/FetchMoreInputModel.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/input/FetchStateStopInputModel.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/input/FieldChangeUseCaseInput.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/input/InitializeInputModel.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/input/NoContentInputModel.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/input/RecordUpdateLocalUseCaseInputModel.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/input/RefetchInputModel.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/input/SetRecordsInputModel.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/input/SuccessInputModel.js +0 -0
- /package/es/platform/zrecord/{usecases → applications}/interfaces/output/IPresenter.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/AppendRecordsUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/DeleteMultipleRecordUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FailureUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FetchMoreUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FetchStateStopUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FieldChangeUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/NoContentUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/RecordUpdateLocalUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/RefetchUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/SetRecordsUseCase.js +0 -0
- /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/SuccessUseCase.js +0 -0
- /package/es/platform/zrecord/{entities → domain/entities}/CustomFieldValues.js +0 -0
- /package/es/platform/zrecord/{entities → domain/entities}/Record.js +0 -0
- /package/es/platform/zrecord/{entities → domain/entities}/Records.js +0 -0
- /package/es/platform/zrecord/{entities → domain/entities}/interfaces/ApiEnum.js +0 -0
- /package/es/platform/zrecord/{entities/interfaces/IRecordName.js → domain/entities/interfaces/BehaviourState.js} +0 -0
- /package/es/platform/zrecord/{entities/interfaces/RecordModel.js → domain/entities/interfaces/EventModel.js} +0 -0
- /package/es/platform/zrecord/{entities/interfaces/RecordsModel.js → domain/entities/interfaces/ICustomFieldValues.js} +0 -0
- /package/es/platform/zrecord/{entities → domain/entities}/interfaces/IRecord.js +0 -0
- /package/es/platform/zrecord/{entities → domain/entities}/interfaces/IRecordExecuteStrategy.js +0 -0
- /package/es/platform/zrecord/{entities/interfaces/StrategyMeta.js → domain/entities/interfaces/IRecordName.js} +0 -0
- /package/es/platform/zrecord/{entities → domain/entities}/interfaces/IRecords.js +0 -0
- /package/es/platform/zrecord/{entities → domain/entities}/interfaces/IRecordsManager.js +0 -0
package/es/platform/zdata-broker/{usecases → applications}/entities-factory/DataBrokerFactory.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import APITemplatesFactory from "./APITemplatesFactory";
|
|
2
|
-
import DataBroker from "../../entities/DataBroker";
|
|
2
|
+
import DataBroker from "../../domain/entities/DataBroker";
|
|
3
3
|
export default class DataBrokerFactory {
|
|
4
4
|
static create(httpTemplates, templateHelpers) {
|
|
5
5
|
const apiTemplates = APITemplatesFactory.create(httpTemplates, templateHelpers);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ITemplateHelpers } from "../../../domain/entities/interfaces/ITemplateHelpers";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FETCH } from "
|
|
2
|
-
import { DATA_BROKER_EXECUTE_FAILED, DATA_BROKER_EXECUTE_NO_CONTENT_SUCCEEDED, DATA_BROKER_EXECUTE_SUCCEEDED } from "
|
|
3
|
-
import { DATA_BROKER_FAILURE, DATA_BROKER_NO_CONTENT, DATA_BROKER_SIGNATURE, DATA_BROKER_SUCCESS } from "
|
|
1
|
+
import { FETCH } from "../../../../bc/zhttp/Constants";
|
|
2
|
+
import { DATA_BROKER_EXECUTE_FAILED, DATA_BROKER_EXECUTE_NO_CONTENT_SUCCEEDED, DATA_BROKER_EXECUTE_SUCCEEDED } from "../../../../bc/zdata-broker/Constants";
|
|
3
|
+
import { DATA_BROKER_FAILURE, DATA_BROKER_NO_CONTENT, DATA_BROKER_SIGNATURE, DATA_BROKER_SUCCESS } from "../../../../bc/zdata-broker/Symbols";
|
|
4
4
|
export default class DataBroker {
|
|
5
5
|
constructor(apiTemplates) {
|
|
6
6
|
this.apiTemplates = apiTemplates;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { DATA_BROKER_FAILURE, DATA_BROKER_NO_CONTENT, DATA_BROKER_SUCCESS } from "
|
|
1
|
+
import { DATA_BROKER_FAILURE, DATA_BROKER_NO_CONTENT, DATA_BROKER_SUCCESS } from "../../../../../bc/zdata-broker/Symbols";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
2
|
|
|
3
|
-
import FieldsManagerBuilder from "../../
|
|
3
|
+
import FieldsManagerBuilder from "../../applications/entities-factory/FieldsManagerBuilder";
|
|
4
4
|
|
|
5
5
|
class Repository {
|
|
6
6
|
constructor() {
|
|
@@ -1,11 +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
|
-
import ExecuteActionUseCase from "../../usecases/
|
|
4
|
-
import FetchNoContentUseCase from "../../usecases/
|
|
5
|
-
import FetchSuccessUseCase from "../../usecases/
|
|
6
|
-
import RefetchUseCase from "../../usecases/
|
|
7
|
-
import InitializeUseCase from "../../usecases/
|
|
8
|
-
import FetchFailureUseCase from "../../usecases/
|
|
3
|
+
import ExecuteActionUseCase from "../../applications/usecases/ExecuteActionUseCase";
|
|
4
|
+
import FetchNoContentUseCase from "../../applications/usecases/FetchNoContentUseCase";
|
|
5
|
+
import FetchSuccessUseCase from "../../applications/usecases/FetchSuccessUseCase";
|
|
6
|
+
import RefetchUseCase from "../../applications/usecases/RefetchUseCase";
|
|
7
|
+
import InitializeUseCase from "../../applications/usecases/InitializeUseCase";
|
|
8
|
+
import FetchFailureUseCase from "../../applications/usecases/FetchFailureUseCase";
|
|
9
9
|
|
|
10
10
|
class Service {
|
|
11
11
|
constructor(dependencies) {
|
package/es/platform/zfield/{usecases → applications}/entities-factory/FieldsManagerBuilder.js
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
2
|
|
|
3
|
-
import FieldsManager from "../../entities/fields-manager/FieldsManager";
|
|
3
|
+
import FieldsManager from "../../domain/entities/fields-manager/FieldsManager";
|
|
4
4
|
|
|
5
5
|
class FieldsManagerBuilder {
|
|
6
6
|
constructor() {
|
package/es/platform/zfield/{entities → domain/entities}/fields-manager/AvailableFieldsManager.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FETCH } from "
|
|
2
|
-
import { FIELD_FETCH, FIELD_FETCH_FAILURE, FIELD_FETCH_NO_CONTENT, FIELD_FETCH_SUCCESS, FIELD_REFETCH } from "
|
|
1
|
+
import { FETCH } from "../../../../../bc/zhttp/Constants";
|
|
2
|
+
import { FIELD_FETCH, FIELD_FETCH_FAILURE, FIELD_FETCH_NO_CONTENT, FIELD_FETCH_SUCCESS, FIELD_REFETCH } from "../../../../../bc/zfield/Constants";
|
|
3
3
|
|
|
4
4
|
class AvailableFieldsManager {
|
|
5
5
|
constructor(availableFields, isAvailableFieldsFetching) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FIELD_FETCH_FAILURE, FIELD_FETCH_NO_CONTENT, FIELD_FETCH_SUCCESS } from "
|
|
1
|
+
import { FIELD_FETCH_FAILURE, FIELD_FETCH_NO_CONTENT, FIELD_FETCH_SUCCESS } from "../../../../../bc/zfield/Constants";
|
|
2
2
|
import FieldApiName from "../interfaces/FieldApiName";
|
|
3
|
-
import { DATA_BROKER_EXECUTE } from "
|
|
4
|
-
import { DATA_BROKER_SUCCESS } from "
|
|
3
|
+
import { DATA_BROKER_EXECUTE } from "../../../../../bc/zdata-broker/Constants";
|
|
4
|
+
import { DATA_BROKER_SUCCESS } from "../../../../../bc/zdata-broker/Symbols";
|
|
5
5
|
|
|
6
6
|
class FieldManager {
|
|
7
7
|
constructor(fields, selectedFields, isFieldsFetching, isSelectedFieldsFetching) {
|
package/es/platform/zfield/{entities → domain/entities}/fields-manager/SelectedFieldsManager.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FIELD_FETCH, FIELD_FETCH_FAILURE, FIELD_FETCH_NO_CONTENT, FIELD_FETCH_SUCCESS, FIELD_REFETCH } from "
|
|
2
|
-
import { FETCH } from "
|
|
1
|
+
import { FIELD_FETCH, FIELD_FETCH_FAILURE, FIELD_FETCH_NO_CONTENT, FIELD_FETCH_SUCCESS, FIELD_REFETCH } from "../../../../../bc/zfield/Constants";
|
|
2
|
+
import { FETCH } from "../../../../../bc/zhttp/Constants";
|
|
3
3
|
|
|
4
4
|
class SelectedFieldsManager {
|
|
5
5
|
constructor(selectedFields, isSelectedFieldsFetching) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { FIELD_FETCH_FAILURE, FIELD_FETCH_NO_CONTENT, FIELD_FETCH_SUCCESS } from "
|
|
1
|
+
import { FIELD_FETCH_FAILURE, FIELD_FETCH_NO_CONTENT, FIELD_FETCH_SUCCESS } from "../../../../../bc/zfield/Constants";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FETCH } from "../../../bc/zhttp/Constants";
|
|
2
2
|
import FetchController from "../adapters/controllers/FetchController";
|
|
3
|
-
import FetchUseCase from "../usecases/
|
|
3
|
+
import FetchUseCase from "../applications/usecases/FetchUseCase";
|
|
4
4
|
import FetchGateWay from "../adapters/gateway/FetchGateWay";
|
|
5
5
|
|
|
6
6
|
class ActionsHandlersFactory {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import Properties from "../../../bc/zhttp/Properties";
|
|
1
2
|
import ActionsHandlersFactory from "./ActionsHandlerFactory";
|
|
2
3
|
export default class ZHttpBehaviourFactory {
|
|
3
4
|
static create() {
|
|
4
5
|
const behaviour = {
|
|
5
6
|
name: 'zhttp',
|
|
6
|
-
properties:
|
|
7
|
+
properties: Properties,
|
|
7
8
|
setInitialState: () => ({}),
|
|
8
9
|
eventHandlers: ActionsHandlersFactory.create(window.fetch.bind(window))
|
|
9
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
2
|
|
|
3
|
-
import ListFactory from "../../
|
|
3
|
+
import ListFactory from "../../applications/entities-factory/ListFactory";
|
|
4
4
|
|
|
5
5
|
class Repository {
|
|
6
6
|
constructor() {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
2
|
|
|
3
|
-
import InitializeUseCase from "../../usecases/
|
|
4
|
-
import PropertiesChangeUseCase from "../../usecases/
|
|
5
|
-
import FetchMoreUseCase from "../../usecases/
|
|
6
|
-
import FieldChangeUseCase from "../../usecases/
|
|
7
|
-
import DeleteMultipleRecordUseCase from "../../usecases/
|
|
8
|
-
import SortUseCase from "../../usecases/
|
|
9
|
-
import RecordUpdateUseCase from "../../usecases/
|
|
10
|
-
import DeleteSingleRecordUseCase from "../../usecases/
|
|
11
|
-
import RecordExecuteSucceededUseCase from "../../usecases/
|
|
12
|
-
import RecordExecuteFailedUseCase from "../../usecases/
|
|
3
|
+
import InitializeUseCase from "../../applications/usecases/InitializeUseCase";
|
|
4
|
+
import PropertiesChangeUseCase from "../../applications/usecases/PropertiesChangeUseCase";
|
|
5
|
+
import FetchMoreUseCase from "../../applications/usecases/FetchMoreUseCase";
|
|
6
|
+
import FieldChangeUseCase from "../../applications/usecases/FieldChangeUseCase";
|
|
7
|
+
import DeleteMultipleRecordUseCase from "../../applications/usecases/DeleteMultipleRecordUseCase";
|
|
8
|
+
import SortUseCase from "../../applications/usecases/SortUseCase";
|
|
9
|
+
import RecordUpdateUseCase from "../../applications/usecases/RecordUpdateUseCase";
|
|
10
|
+
import DeleteSingleRecordUseCase from "../../applications/usecases/DeleteSingleRecordUseCase";
|
|
11
|
+
import RecordExecuteSucceededUseCase from "../../applications/usecases/RecordExecuteSucceededUseCase";
|
|
12
|
+
import RecordExecuteFailedUseCase from "../../applications/usecases/RecordExecuteFailedUseCase";
|
|
13
13
|
|
|
14
14
|
class Service {
|
|
15
15
|
constructor(dependencies) {
|
|
@@ -27,6 +27,7 @@ export default class TableTranslator {
|
|
|
27
27
|
} = fallbackToDefault(zrecord, {}); // FIX: zrecord should be available by default
|
|
28
28
|
|
|
29
29
|
const fieldUiMapping = uiMapping.fields;
|
|
30
|
+
const rowActionsUiType = uiMapping.rowActionsComponentName;
|
|
30
31
|
const {
|
|
31
32
|
fields: availableFields,
|
|
32
33
|
selectedFields,
|
|
@@ -37,7 +38,7 @@ export default class TableTranslator {
|
|
|
37
38
|
const isLoading = !!(isRecordsFetching || isAvailableFieldsFetching || isSelectedFieldsFetching);
|
|
38
39
|
const fields = selectedFields === null || selectedFields === void 0 ? void 0 : selectedFields.map(selectedField => availableFields === null || availableFields === void 0 ? void 0 : availableFields.find(availableField => availableField.name === selectedField)).filter(f => f != undefined);
|
|
39
40
|
const headersTranslator = new HeadersTranslator(fields);
|
|
40
|
-
const rowsTranslator = new RowsTranslator(records, fields, rowActions, pageContext, fieldUiMapping);
|
|
41
|
+
const rowsTranslator = new RowsTranslator(records, fields, rowActions, pageContext, fieldUiMapping, rowActionsUiType);
|
|
41
42
|
const translators = [headersTranslator.getTranslator(), rowsTranslator.getTranslator()]; // TODO: Implement ModuleTableModel, and move data and isLoading to tableViewModel Object
|
|
42
43
|
|
|
43
44
|
return {
|
|
@@ -5,12 +5,16 @@ export default function RowTranslator(_ref) {
|
|
|
5
5
|
record,
|
|
6
6
|
fields,
|
|
7
7
|
fieldUiMapping,
|
|
8
|
+
rowActionsUiType,
|
|
8
9
|
rowActions,
|
|
9
10
|
pageContext
|
|
10
11
|
} = _ref;
|
|
11
12
|
return {
|
|
12
13
|
id: record.id,
|
|
13
14
|
columns: fields.map(field => ColumnTranslator(field, record, fieldUiMapping)),
|
|
14
|
-
|
|
15
|
+
rowActionLocation: {
|
|
16
|
+
type: rowActionsUiType || '',
|
|
17
|
+
actions: rowActions.map(rowAction => RowActionTranslator(rowAction, record, pageContext))
|
|
18
|
+
}
|
|
15
19
|
};
|
|
16
20
|
}
|
|
@@ -1,25 +1,32 @@
|
|
|
1
1
|
import TemplateHelpers from "../../../../zdata-broker/adapters/gateways/TemplateHelpers";
|
|
2
|
+
const templateHelpers = new TemplateHelpers();
|
|
2
3
|
export default function RowActionTranslator(rowAction, record, pageContext) {
|
|
4
|
+
const templateContext = {
|
|
5
|
+
orgName: pageContext.orgName,
|
|
6
|
+
departmentName: pageContext.departmentName,
|
|
7
|
+
moduleSanitatedName: pageContext.moduleSanitatedName,
|
|
8
|
+
record,
|
|
9
|
+
moduleName: pageContext.moduleName,
|
|
10
|
+
recordId: record.id
|
|
11
|
+
};
|
|
12
|
+
const properties = PropertiesTranslator(rowAction.properties, templateContext);
|
|
3
13
|
return {
|
|
4
14
|
type: rowAction.uiType,
|
|
5
|
-
eventMappings: EventMappingTranslator(rowAction.eventMapping,
|
|
6
|
-
properties
|
|
15
|
+
eventMappings: EventMappingTranslator(rowAction.eventMapping, templateContext),
|
|
16
|
+
properties
|
|
7
17
|
};
|
|
8
18
|
}
|
|
9
|
-
const templateHelpers = new TemplateHelpers();
|
|
10
19
|
|
|
11
|
-
function
|
|
20
|
+
function PropertiesTranslator(properties, templateContext) {
|
|
21
|
+
return templateHelpers.replaceTemplateVariablesInObject(properties, templateContext);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function EventMappingTranslator(eventMapping, templateContext) {
|
|
12
25
|
return eventMapping.map(eventMapping => {
|
|
13
26
|
return {
|
|
14
27
|
action: eventMapping.action,
|
|
15
28
|
eventType: eventMapping.eventType,
|
|
16
|
-
payload: JSON.parse(templateHelpers.replaceTemplateVariables(eventMapping.payloadMapping,
|
|
17
|
-
orgName: pageContext.orgName,
|
|
18
|
-
departmentName: pageContext.departmentName,
|
|
19
|
-
moduleSanitatedName: pageContext.moduleSanitatedName,
|
|
20
|
-
moduleName: pageContext.moduleName,
|
|
21
|
-
recordId: record.id
|
|
22
|
-
}))
|
|
29
|
+
payload: JSON.parse(templateHelpers.replaceTemplateVariables(eventMapping.payloadMapping, templateContext))
|
|
23
30
|
};
|
|
24
31
|
});
|
|
25
32
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import RowTranslator from "./Row";
|
|
2
2
|
export default class RowsTranslator {
|
|
3
|
-
constructor(records, fields, rowActions, pageContext, fieldUiMapping) {
|
|
3
|
+
constructor(records, fields, rowActions, pageContext, fieldUiMapping, rowActionsUiType) {
|
|
4
4
|
this.records = records;
|
|
5
5
|
this.fields = fields;
|
|
6
6
|
this.rowActions = rowActions;
|
|
7
7
|
this.pageContext = pageContext;
|
|
8
8
|
this.fieldUiMapping = fieldUiMapping;
|
|
9
|
+
this.rowActionsUiType = rowActionsUiType;
|
|
9
10
|
this.pipe = this.pipe.bind(this);
|
|
10
11
|
}
|
|
11
12
|
|
|
@@ -18,6 +19,7 @@ export default class RowsTranslator {
|
|
|
18
19
|
record,
|
|
19
20
|
fields: this.fields,
|
|
20
21
|
fieldUiMapping: this.fieldUiMapping,
|
|
22
|
+
rowActionsUiType: this.rowActionsUiType,
|
|
21
23
|
rowActions: this.rowActions,
|
|
22
24
|
pageContext: this.pageContext
|
|
23
25
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RECORD_EXECUTE, RECORD_FETCH_MORE, RECORD_REFETCH, RecordApiActionName } from "
|
|
2
|
-
import { FIELD_EXECUTE, FIELD_REFETCH } from "
|
|
3
|
-
import { ZLIST_RECORD_DELETE_FAILED, ZLIST_RECORD_DELETE_SUCCEEDED, ZLIST_RECORD_UPDATE_FAILED, ZLIST_RECORD_UPDATE_SUCCEEDED } from "
|
|
1
|
+
import { RECORD_EXECUTE, RECORD_FETCH_MORE, RECORD_REFETCH, RecordApiActionName } from "../../../../bc/zrecord/Constants";
|
|
2
|
+
import { FIELD_EXECUTE, FIELD_REFETCH } from "../../../../bc/zfield/Constants";
|
|
3
|
+
import { ZLIST_RECORD_DELETE_FAILED, ZLIST_RECORD_DELETE_SUCCEEDED, ZLIST_RECORD_UPDATE_FAILED, ZLIST_RECORD_UPDATE_SUCCEEDED } from "../../../../bc/zlist/Constants";
|
|
4
4
|
|
|
5
5
|
class List {
|
|
6
6
|
constructor(limit, sortBy, filter) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
2
|
|
|
3
|
-
import RecordsManagerFactory from "../../
|
|
3
|
+
import RecordsManagerFactory from "../../applications/entities-factory/RecordsManagerFactory";
|
|
4
4
|
export default class Repository {
|
|
5
5
|
constructor() {
|
|
6
6
|
_defineProperty(this, "state", void 0);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
2
|
|
|
3
|
-
import InitializeUseCase from "../../usecases/
|
|
4
|
-
import ExecuteActionUseCase from "../../usecases/
|
|
5
|
-
import FailureUseCase from "../../usecases/
|
|
6
|
-
import SuccessUseCase from "../../usecases/
|
|
7
|
-
import RefetchUseCase from "../../usecases/
|
|
8
|
-
import NoContentUseCase from "../../usecases/
|
|
9
|
-
import FetchMoreUseCase from "../../usecases/
|
|
10
|
-
import RecordUpdateLocalUseCase from "../../usecases/
|
|
11
|
-
import DeleteMultipleRecordUseCase from "../../usecases/
|
|
12
|
-
import AppendRecordsUseCase from "../../usecases/
|
|
13
|
-
import FieldChangeUseCase from "../../usecases/
|
|
14
|
-
import SetRecordsUseCase from "../../usecases/
|
|
15
|
-
import FetchStateStopUseCase from "../../usecases/
|
|
3
|
+
import InitializeUseCase from "../../applications/usecases/InitializeUseCase";
|
|
4
|
+
import ExecuteActionUseCase from "../../applications/usecases/ExecuteActionUseCase";
|
|
5
|
+
import FailureUseCase from "../../applications/usecases/FailureUseCase";
|
|
6
|
+
import SuccessUseCase from "../../applications/usecases/SuccessUseCase";
|
|
7
|
+
import RefetchUseCase from "../../applications/usecases/RefetchUseCase";
|
|
8
|
+
import NoContentUseCase from "../../applications/usecases/NoContentUseCase";
|
|
9
|
+
import FetchMoreUseCase from "../../applications/usecases/FetchMoreUseCase";
|
|
10
|
+
import RecordUpdateLocalUseCase from "../../applications/usecases/RecordUpdateLocalUseCase";
|
|
11
|
+
import DeleteMultipleRecordUseCase from "../../applications/usecases/DeleteMultipleRecordUseCase";
|
|
12
|
+
import AppendRecordsUseCase from "../../applications/usecases/AppendRecordsUseCase";
|
|
13
|
+
import FieldChangeUseCase from "../../applications/usecases/FieldChangeUseCase";
|
|
14
|
+
import SetRecordsUseCase from "../../applications/usecases/SetRecordsUseCase";
|
|
15
|
+
import FetchStateStopUseCase from "../../applications/usecases/FetchStateStopUseCase";
|
|
16
16
|
export default class Service {
|
|
17
17
|
constructor(dependencies) {
|
|
18
18
|
_defineProperty(this, "initializeUseCase", void 0);
|
package/es/platform/zrecord/{usecases → applications}/entities-factory/RecordsManagerFactory.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import RecordsManager from "../../entities/RecordsManager";
|
|
2
|
-
import Records from "../../entities/Records";
|
|
1
|
+
import RecordsManager from "../../domain/entities/RecordsManager";
|
|
2
|
+
import Records from "../../domain/entities/Records";
|
|
3
3
|
export default class RecordsManagerFactory {
|
|
4
4
|
static create(recordsModel) {
|
|
5
5
|
const records = new Records(recordsModel);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RECORD_EXECUTE_FAILED, RECORD_EXECUTE_SUCCEEDED, RECORD_EXECUTE_SUCCEEDED_NO_CONTENT, RECORD_LOCAL_MULTIPLE_DELETE } from "
|
|
1
|
+
import { RECORD_EXECUTE_FAILED, RECORD_EXECUTE_SUCCEEDED, RECORD_EXECUTE_SUCCEEDED_NO_CONTENT, RECORD_LOCAL_MULTIPLE_DELETE } from "../../../../bc/zrecord/Constants";
|
|
2
2
|
export default class DeleteMultipleRecordStrategy {
|
|
3
3
|
createSuccessEvents(response, metaData) {
|
|
4
4
|
const events = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RECORD_EXECUTE_FAILED, RECORD_EXECUTE_SUCCEEDED, RECORD_EXECUTE_SUCCEEDED_NO_CONTENT, RECORD_LOCAL_MULTIPLE_DELETE } from "
|
|
1
|
+
import { RECORD_EXECUTE_FAILED, RECORD_EXECUTE_SUCCEEDED, RECORD_EXECUTE_SUCCEEDED_NO_CONTENT, RECORD_LOCAL_MULTIPLE_DELETE } from "../../../../bc/zrecord/Constants";
|
|
2
2
|
export default class DeleteRecordStrategy {
|
|
3
3
|
createSuccessEvents(response, metaData) {
|
|
4
4
|
const events = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { APPEND_RECORDS, RECORD_EXECUTE_FAILED, RECORD_EXECUTE_SUCCEEDED, RECORD_EXECUTE_SUCCEEDED_NO_CONTENT, SET_RECORDS } from "
|
|
1
|
+
import { APPEND_RECORDS, RECORD_EXECUTE_FAILED, RECORD_EXECUTE_SUCCEEDED, RECORD_EXECUTE_SUCCEEDED_NO_CONTENT, SET_RECORDS } from "../../../../bc/zrecord/Constants";
|
|
2
2
|
export default class GetRecordsStrategy {
|
|
3
3
|
createSuccessEvents(response, metaData) {
|
|
4
4
|
const events = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RecordApiActionName, RECORD_EXECUTE_SUCCESS_CALLBACK, RECORD_EXECUTE_SUCCESS_NO_CONTENT_CALLBACK, RECORD_EXECUTE_FAIL_CALLBACK } from "
|
|
2
|
-
import { DATA_BROKER_FAILURE, DATA_BROKER_NO_CONTENT, DATA_BROKER_SUCCESS } from "
|
|
3
|
-
import { DATA_BROKER_EXECUTE } from "
|
|
1
|
+
import { RecordApiActionName, RECORD_EXECUTE_SUCCESS_CALLBACK, RECORD_EXECUTE_SUCCESS_NO_CONTENT_CALLBACK, RECORD_EXECUTE_FAIL_CALLBACK } from "../../../../bc/zrecord/Constants";
|
|
2
|
+
import { DATA_BROKER_FAILURE, DATA_BROKER_NO_CONTENT, DATA_BROKER_SUCCESS } from "../../../../bc/zdata-broker/Symbols";
|
|
3
|
+
import { DATA_BROKER_EXECUTE } from "../../../../bc/zdata-broker/Constants";
|
|
4
4
|
import UpdateRecordStrategy from "./UpdateRecordStrategy";
|
|
5
5
|
import DeleteRecordStrategy from "./DeleteRecordStrategy";
|
|
6
6
|
import DeleteMultipleRecordStrategy from "./DeleteMultipleRecordStrategy";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RECORD_EXECUTE_FAILED, RECORD_EXECUTE_SUCCEEDED, RECORD_EXECUTE_SUCCEEDED_NO_CONTENT, RECORD_LOCAL_UPDATE } from "
|
|
1
|
+
import { RECORD_EXECUTE_FAILED, RECORD_EXECUTE_SUCCEEDED, RECORD_EXECUTE_SUCCEEDED_NO_CONTENT, RECORD_LOCAL_UPDATE } from "../../../../bc/zrecord/Constants";
|
|
2
2
|
export default class UpdateRecordStrategy {
|
|
3
3
|
createSuccessEvents(response, metaData) {
|
|
4
4
|
const events = [];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/library-platform",
|
|
3
|
-
"version": "1.0.1",
|
|
3
|
+
"version": "1.1.0-exp.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "es/index.js",
|
|
6
6
|
"files": [
|
|
@@ -24,11 +24,17 @@
|
|
|
24
24
|
"lint:setup": "ZDPrecommit setupPlugins",
|
|
25
25
|
"lint": "eslint -c .eslintrc.js --ext .ts,.js,.tsx",
|
|
26
26
|
"lint:analytics": "ZDLintingFramework lint",
|
|
27
|
+
"lint:exemption":"ZDLintingFramework exemption-report",
|
|
28
|
+
"lint:ci":"ZDLintingFramework lint-ci",
|
|
27
29
|
"prettify": "node prettify.js staged"
|
|
28
30
|
},
|
|
29
31
|
"author": "",
|
|
30
32
|
"license": "ISC",
|
|
31
33
|
"devDependencies": {
|
|
34
|
+
"@testing-library/jest-dom": "5.11.9",
|
|
35
|
+
"@testing-library/react": "11.2.5",
|
|
36
|
+
"@testing-library/react-hooks": "7.0.2",
|
|
37
|
+
"@testing-library/user-event": "13.0.10",
|
|
32
38
|
"@types/react": "18.2.55",
|
|
33
39
|
"@typescript-eslint/parser": "^7.11.0",
|
|
34
40
|
"@zoho/SecurityJS": "5.0.2",
|
|
@@ -36,8 +42,8 @@
|
|
|
36
42
|
"@zohodesk-private/desk-components": "1.2.0",
|
|
37
43
|
"@zohodesk-private/node-plugins": "1.1.7",
|
|
38
44
|
"@zohodesk/a11y": "2.2.3",
|
|
39
|
-
"@zohodesk/codestandard-analytics": "0.0.
|
|
40
|
-
"@zohodesk/codestandard-validator": "0.0.
|
|
45
|
+
"@zohodesk/codestandard-analytics": "0.0.2",
|
|
46
|
+
"@zohodesk/codestandard-validator": "0.0.4",
|
|
41
47
|
"@zohodesk/components": "1.2.39",
|
|
42
48
|
"@zohodesk/dot": "1.4.18",
|
|
43
49
|
"@zohodesk/eslint-plugin-architecturerules": "0.0.4",
|
|
@@ -47,6 +53,7 @@
|
|
|
47
53
|
"@zohodesk/layout": "3.1.0",
|
|
48
54
|
"@zohodesk/svg": "1.1.15",
|
|
49
55
|
"@zohodesk/utils": "1.3.13",
|
|
56
|
+
"@zohodesk/variables": "1.0.0",
|
|
50
57
|
"@zohodesk/virtualizer": "1.0.13",
|
|
51
58
|
"color": "4.2.3",
|
|
52
59
|
"dependency-cruiser": "12.0.1",
|
|
@@ -68,7 +75,6 @@
|
|
|
68
75
|
"color": "4.2.3"
|
|
69
76
|
},
|
|
70
77
|
"dependencies": {
|
|
71
|
-
"@zohodesk/redux-modules": "1.2.1",
|
|
72
78
|
"ajv": "6.12.6",
|
|
73
79
|
"object-path-immutable": "4.1.2"
|
|
74
80
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
type: "object",
|
|
3
|
-
properties: {
|
|
4
|
-
isEnabled: {
|
|
5
|
-
type: "boolean",
|
|
6
|
-
defaultValue: false
|
|
7
|
-
},
|
|
8
|
-
minWidth: {
|
|
9
|
-
type: "number",
|
|
10
|
-
defaultValue: 120
|
|
11
|
-
},
|
|
12
|
-
maxWidth: {
|
|
13
|
-
type: "number",
|
|
14
|
-
defaultValue: 1000
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
required: ["isEnabled"]
|
|
18
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
type: "object",
|
|
3
|
-
properties: {
|
|
4
|
-
isEnabled: {
|
|
5
|
-
type: "boolean",
|
|
6
|
-
defaultValue: false
|
|
7
|
-
},
|
|
8
|
-
maxSelectionCount: {
|
|
9
|
-
type: "number",
|
|
10
|
-
defaultValue: 50
|
|
11
|
-
},
|
|
12
|
-
limitExceedAlertMessage: {
|
|
13
|
-
type: "string",
|
|
14
|
-
defaultValue: "Max records selected"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import Action from "../../../../../es/library/custom-component/entities/Action";
|
|
2
|
-
describe("Action", () => {
|
|
3
|
-
const type = "TEST_ACTION";
|
|
4
|
-
const payload = {
|
|
5
|
-
data: "test"
|
|
6
|
-
};
|
|
7
|
-
it("should create an Action instance", () => {
|
|
8
|
-
const action = new Action(type, payload);
|
|
9
|
-
expect(action).toBeInstanceOf(Action);
|
|
10
|
-
});
|
|
11
|
-
it("should have the correct type", () => {
|
|
12
|
-
const action = new Action(type, payload);
|
|
13
|
-
expect(action.getType()).toBe(type);
|
|
14
|
-
});
|
|
15
|
-
it("should have the correct payload", () => {
|
|
16
|
-
const action = new Action(type, payload);
|
|
17
|
-
expect(action.getPayload()).toEqual(payload);
|
|
18
|
-
});
|
|
19
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import ActionHandlers from "../../../../../es/library/custom-component/entities/ActionHandlers";
|
|
2
|
-
describe('ActionHandlers', () => {
|
|
3
|
-
it('should create an ActionHandlers instance with provided handlers', () => {
|
|
4
|
-
// Define sample handlers
|
|
5
|
-
const handlers = new Map();
|
|
6
|
-
handlers.set('ACTION_1', jest.fn());
|
|
7
|
-
handlers.set('ACTION_2', jest.fn()); // Create an instance of ActionHandlers
|
|
8
|
-
|
|
9
|
-
const actionHandlers = new ActionHandlers(handlers); // Verify that the instance is created successfully
|
|
10
|
-
|
|
11
|
-
expect(actionHandlers).toBeInstanceOf(ActionHandlers); // Verify that the provided handlers are stored correctly
|
|
12
|
-
|
|
13
|
-
expect(actionHandlers.getEventHandlers()).toEqual(handlers);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import Behaviour from "../../../../../es/library/custom-component/entities/Behaviour";
|
|
2
|
-
describe("Behaviour", () => {
|
|
3
|
-
const name = "TestBehaviour";
|
|
4
|
-
const properties = {
|
|
5
|
-
getAllPropertiesValue: jest.fn().mockReturnValue({})
|
|
6
|
-
};
|
|
7
|
-
const setInitialState = jest.fn();
|
|
8
|
-
const actionHandlers = {
|
|
9
|
-
getEventHandlers: jest.fn().mockReturnValue(new Map())
|
|
10
|
-
};
|
|
11
|
-
it("should create a Behaviour instance with provided parameters", () => {
|
|
12
|
-
const behaviour = new Behaviour({
|
|
13
|
-
name,
|
|
14
|
-
properties,
|
|
15
|
-
setIntialState: setInitialState,
|
|
16
|
-
actionHandlers
|
|
17
|
-
});
|
|
18
|
-
expect(behaviour).toBeInstanceOf(Behaviour);
|
|
19
|
-
expect(behaviour.getName()).toBe(name);
|
|
20
|
-
expect(behaviour.getProperties()).toBe(properties);
|
|
21
|
-
expect(behaviour.getEventHandlers()).toBe(actionHandlers);
|
|
22
|
-
});
|
|
23
|
-
it("should return initial state with setInitialState function", () => {
|
|
24
|
-
const initialState = {
|
|
25
|
-
test: "initialState"
|
|
26
|
-
};
|
|
27
|
-
setInitialState.mockReturnValue(initialState);
|
|
28
|
-
const behaviour = new Behaviour({
|
|
29
|
-
name,
|
|
30
|
-
properties,
|
|
31
|
-
setIntialState: setInitialState,
|
|
32
|
-
actionHandlers
|
|
33
|
-
});
|
|
34
|
-
expect(behaviour.getInitialState()).toEqual({
|
|
35
|
-
[name]: initialState
|
|
36
|
-
});
|
|
37
|
-
expect(setInitialState).toHaveBeenCalledWith({
|
|
38
|
-
properties: properties.getAllPropertiesValue()
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
it("should return empty initial state if setInitialState function is not provided", () => {
|
|
42
|
-
const behaviour = new Behaviour({
|
|
43
|
-
name,
|
|
44
|
-
properties,
|
|
45
|
-
setIntialState: undefined,
|
|
46
|
-
actionHandlers
|
|
47
|
-
});
|
|
48
|
-
expect(behaviour.getInitialState()).toEqual({
|
|
49
|
-
[name]: {}
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
});
|