@zohodesk/library-platform 1.0.1 → 1.0.2-exp.1.0
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.ts +3 -0
- package/es/bc/list-selection/ActionHandlers.ts +10 -0
- package/es/bc/list-selection/Actions.ts +45 -0
- package/es/bc/list-selection/Constants.ts +3 -0
- package/es/bc/list-selection/Properties.ts +26 -0
- package/es/bc/local-storage/ActionHandlers.ts +7 -0
- package/es/bc/local-storage/Constants.ts +1 -0
- package/es/bc/local-storage/Properties.ts +10 -0
- package/es/bc/sort-by/ActionHandlers.ts +8 -0
- package/es/bc/sort-by/Constants.ts +2 -0
- package/es/bc/sort-by/Properties.ts +27 -0
- package/es/bc/sort-by/SortOrderEnum.ts +7 -0
- package/es/bc/sort-by/index.ts +1 -0
- package/es/bc/table-column-resizer/ActionHandlers.ts +12 -0
- package/es/bc/table-column-resizer/Constants.ts +9 -0
- package/es/bc/table-column-resizer/Properties.ts +18 -0
- package/es/bc/zdata-source/Actions.ts +72 -0
- package/es/bc/zdata-source/Constants.ts +13 -0
- package/es/bc/zdata-source/EventHandlers.ts +12 -0
- package/es/bc/zdata-source/Properties.ts +1 -0
- package/es/bc/zdata-source/Symbols.ts +5 -0
- package/es/bc/zfield/ActionHandlers.ts +12 -0
- package/es/bc/zfield/Actions.ts +36 -0
- package/es/bc/zfield/Constants.ts +6 -0
- package/es/bc/zfield/Properties.ts +5 -0
- package/es/bc/zhttp/ActionHandlers.ts +6 -0
- package/es/bc/zhttp/Actions.ts +88 -0
- package/es/bc/zhttp/Constants.ts +6 -0
- package/es/bc/zhttp/Properties.ts +11 -0
- package/es/bc/zhttp/index.ts +1 -0
- package/es/bc/zlist/Actions.ts +6 -0
- package/es/bc/zlist/Constants.ts +9 -0
- package/es/bc/zlist/EventHandlers.ts +8 -0
- package/es/bc/zlist/Properties.ts +55 -0
- package/es/bc/zlist/index.ts +1 -0
- package/es/bc/zrecord/Actions.ts +149 -0
- package/es/bc/zrecord/Constants.ts +22 -0
- package/es/bc/zrecord/EventHandlers.ts +26 -0
- package/es/bc/zrecord/Properties.ts +1 -0
- package/es/bc/zrecord/Symbols.ts +4 -0
- package/es/cc/action-icon/Constants.ts +5 -0
- package/es/cc/action-icon/Model.ts +24 -0
- package/es/cc/action-icon/Properties.ts +78 -0
- package/es/cc/action-location/Action.ts +18 -0
- package/es/cc/action-location/ActionLocation.ts +8 -0
- package/es/cc/action-location/Constants.ts +7 -0
- package/es/cc/action-location/Properties.ts +47 -0
- package/es/cc/architecture/IController.ts +5 -0
- package/es/cc/architecture/IUseCase.ts +4 -0
- package/es/cc/architecture/LifeCycleActionEnum.ts +7 -0
- package/es/cc/avatar/ActionHandlers.ts +1 -0
- package/es/cc/avatar/Actions.ts +7 -0
- package/es/cc/avatar/Constants.ts +5 -0
- package/es/cc/avatar/Data.ts +17 -0
- package/es/cc/avatar/Model.ts +16 -0
- package/es/cc/avatar/Properties.ts +50 -0
- package/es/cc/avatar/index.ts +5 -0
- package/es/cc/checkbox/ActionHandlers.ts +1 -0
- package/es/cc/checkbox/Actions.ts +7 -0
- package/es/cc/checkbox/Constants.ts +5 -0
- package/es/cc/checkbox/Data.ts +9 -0
- package/es/cc/checkbox/Model.ts +16 -0
- package/es/cc/checkbox/Properties.ts +44 -0
- package/es/cc/component/Action.ts +3 -0
- package/es/cc/component/ActionHandlers.ts +6 -0
- package/es/cc/component/Behaviour.ts +14 -0
- package/es/cc/component/DeclarativeAction.ts +14 -0
- package/es/cc/component/Event.ts +10 -0
- package/es/cc/component/EventHandlers.ts +12 -0
- package/es/cc/component/Helpers.ts +9 -0
- package/es/cc/component/LifeCycleAction.ts +19 -0
- package/es/cc/component/Payload.ts +13 -0
- package/es/cc/component/Slot.ts +8 -0
- package/es/cc/component/SlotComponent.ts +30 -0
- package/es/cc/component/Styles.ts +13 -0
- package/es/cc/component/View.ts +8 -0
- package/es/cc/component/component.ts +30 -0
- package/es/cc/component/properties/AppendToActionPayloadProperty.ts +44 -0
- package/es/cc/component/properties/PropertiesConverter.ts +24 -0
- package/es/cc/component/properties/Property.ts +11 -0
- package/es/cc/component/properties/Schema.ts +4 -0
- package/es/cc/component/properties/appendToActionPayload.ts +37 -0
- package/es/cc/component/properties/getRef.ts +10 -0
- package/es/cc/component/properties/getRefPropertySchema.ts +10 -0
- package/es/cc/component/properties/index.ts +9 -0
- package/es/cc/component/setInitialState.ts +2 -0
- package/es/cc/component/transferState.ts +2 -0
- package/es/cc/email/ActionHandlers.ts +1 -0
- package/es/cc/email/Actions.ts +7 -0
- package/es/cc/email/Constants.ts +5 -0
- package/es/cc/email/Data.ts +5 -0
- package/es/cc/email/Model.ts +6 -0
- package/es/cc/email/Properties.ts +10 -0
- package/es/cc/empty-state/Properties.ts +1 -0
- package/es/cc/empty-state/index.ts +1 -0
- package/es/cc/fields/boolean/Events.ts +6 -0
- package/es/cc/fields/boolean/Model.ts +15 -0
- package/es/cc/fields/boolean/Properties.ts +14 -0
- package/es/cc/fields/currency/Events.ts +6 -0
- package/es/cc/fields/currency/Model.ts +15 -0
- package/es/cc/fields/currency/Properties.ts +13 -0
- package/es/cc/fields/date/Events.ts +6 -0
- package/es/cc/fields/date/Model.ts +15 -0
- package/es/cc/fields/date/Properties.ts +13 -0
- package/es/cc/fields/datetime/Events.ts +6 -0
- package/es/cc/fields/datetime/Model.ts +15 -0
- package/es/cc/fields/datetime/Properties.ts +13 -0
- package/es/cc/fields/decimal/Events.ts +6 -0
- package/es/cc/fields/decimal/Model.ts +15 -0
- package/es/cc/fields/decimal/Properties.ts +13 -0
- package/es/cc/fields/email/Events.ts +6 -0
- package/es/cc/fields/email/Model.ts +15 -0
- package/es/cc/fields/email/Properties.ts +13 -0
- package/es/cc/fields/field/Constants.ts +6 -0
- package/es/cc/fields/field/Events.ts +41 -0
- package/es/cc/fields/field/Properties.ts +37 -0
- package/es/cc/fields/field/Types.ts +19 -0
- package/es/cc/fields/index.ts +18 -0
- package/es/cc/fields/lookup/Events.ts +6 -0
- package/es/cc/fields/lookup/Model.ts +15 -0
- package/es/cc/fields/lookup/Properties.ts +13 -0
- package/es/cc/fields/multi-line/Events.ts +6 -0
- package/es/cc/fields/multi-line/Model.ts +15 -0
- package/es/cc/fields/multi-line/Properties.ts +42 -0
- package/es/cc/fields/multi-select/Events.ts +6 -0
- package/es/cc/fields/multi-select/Model.ts +19 -0
- package/es/cc/fields/multi-select/Properties.ts +42 -0
- package/es/cc/fields/number/Events.ts +6 -0
- package/es/cc/fields/number/Model.ts +15 -0
- package/es/cc/fields/number/Properties.ts +13 -0
- package/es/cc/fields/percent/Events.ts +6 -0
- package/es/cc/fields/percent/Model.ts +15 -0
- package/es/cc/fields/percent/Properties.ts +13 -0
- package/es/cc/fields/phone/Events.ts +6 -0
- package/es/cc/fields/phone/Model.ts +15 -0
- package/es/cc/fields/phone/Properties.ts +13 -0
- package/es/cc/fields/pick-list/Events.ts +6 -0
- package/es/cc/fields/pick-list/Model.ts +19 -0
- package/es/cc/fields/pick-list/Properties.ts +42 -0
- package/es/cc/fields/text/Events.ts +6 -0
- package/es/cc/fields/text/Model.ts +15 -0
- package/es/cc/fields/text/Properties.ts +12 -0
- package/es/cc/fields/url/Events.ts +6 -0
- package/es/cc/fields/url/Model.ts +15 -0
- package/es/cc/fields/url/Properties.ts +14 -0
- package/es/cc/highlighted-value/ActionHandlers.ts +1 -0
- package/es/cc/highlighted-value/Actions.ts +7 -0
- package/es/cc/highlighted-value/Constants.ts +5 -0
- package/es/cc/highlighted-value/Data.ts +15 -0
- package/es/cc/highlighted-value/Model.ts +8 -0
- package/es/cc/highlighted-value/Properties.ts +34 -0
- package/es/cc/index.ts +13 -0
- package/es/cc/link/ActionHandlers.ts +1 -0
- package/es/cc/link/Actions.ts +7 -0
- package/es/cc/link/Constants.ts +5 -0
- package/es/cc/link/Data.ts +13 -0
- package/es/cc/link/Model.ts +9 -0
- package/es/cc/link/Properties.ts +41 -0
- package/es/cc/switch/ActionHandlers.ts +1 -0
- package/es/cc/switch/Actions.ts +20 -0
- package/es/cc/switch/Constants.ts +5 -0
- package/es/cc/switch/Data.ts +13 -0
- package/es/cc/switch/Model.ts +9 -0
- package/es/cc/switch/Properties.ts +41 -0
- package/es/cc/table-connected/Constants.ts +4 -0
- package/es/cc/table-connected/Properties.ts +52 -0
- package/es/cc/table-list/ActionHandlers.ts +6 -0
- package/es/cc/table-list/Actions.ts +19 -0
- package/es/cc/table-list/Constants.ts +11 -0
- package/es/cc/table-list/Data.ts +20 -0
- package/es/cc/table-list/Events.ts +69 -0
- package/es/cc/table-list/Properties.ts +222 -0
- package/es/cc/table-list/data-types/Column.ts +7 -0
- package/es/cc/table-list/data-types/Data.ts +9 -0
- package/es/cc/table-list/data-types/Header.ts +42 -0
- package/es/cc/table-list/data-types/ResizerConfig.ts +7 -0
- package/es/cc/table-list/data-types/Row.ts +10 -0
- package/es/cc/table-list/data-types/RowAction.ts +8 -0
- package/es/cc/table-list/data-types/RowActionsConfig.ts +8 -0
- package/es/cc/table-list/data-types/RowCursor.ts +7 -0
- package/es/cc/table-list/data-types/RowSelection.ts +7 -0
- package/es/cc/table-list/data-types/SelectionConfig.ts +7 -0
- package/es/cc/table-list/data-types/fields/AvatarField.ts +7 -0
- package/es/cc/table-list/data-types/fields/CheckboxField.ts +7 -0
- package/es/cc/table-list/data-types/fields/EmailField.ts +7 -0
- package/es/cc/table-list/data-types/fields/HighlightedValueField.ts +7 -0
- package/es/cc/table-list/data-types/fields/LinkField.ts +7 -0
- package/es/cc/table-list/data-types/fields/SwitchField.ts +7 -0
- package/es/cc/table-list/data-types/fields/TagsField.ts +7 -0
- package/es/cc/table-list/data-types/fields/TextField.ts +7 -0
- package/es/cc/table-list/data-types/fields/index.ts +8 -0
- package/es/cc/table-list/model/HeaderModel.ts +15 -0
- package/es/cc/table-list/model/RowModel.ts +11 -0
- package/es/cc/table-list/model/TableModel.ts +28 -0
- package/es/cc/table-list/model/index.ts +9 -0
- package/es/cc/table-list/row/Constants.ts +7 -0
- package/es/cc/table-list/row/Properties.ts +109 -0
- package/es/cc/tags/ActionHandlers.ts +1 -0
- package/es/cc/tags/Actions.ts +7 -0
- package/es/cc/tags/Constants.ts +5 -0
- package/es/cc/tags/Data.ts +23 -0
- package/es/cc/tags/Properties.ts +69 -0
- package/es/cc/tags/model/TagModel.ts +14 -0
- package/es/cc/tags/model/TagsDataModel.ts +10 -0
- package/es/cc/tags/model/index.ts +7 -0
- package/es/cc/text/ActionHandlers.ts +1 -0
- package/es/cc/text/Actions.ts +7 -0
- package/es/cc/text/Constants.ts +5 -0
- package/es/cc/text/Data.ts +14 -0
- package/es/cc/text/Model.ts +8 -0
- package/es/cc/text/Properties.ts +32 -0
- package/es/desk-frameworks/index.ts +1 -0
- package/es/desk-frameworks/table-connected/frameworks/EventHandlersFactory.ts +30 -0
- package/es/desk-frameworks/table-connected/frameworks/ListSdkFactory.ts +124 -0
- package/es/desk-frameworks/table-connected/frameworks/TableConnected.ts +5 -0
- package/es/desk-frameworks/table-connected/frameworks/TableConnectedFactory.ts +49 -0
- package/es/desk-frameworks/table-connected/frameworks/TableConnectedView.tsx +28 -0
- package/es/index.ts +8 -0
- package/es/library/behaviours/list-selection/adapters/controllers/AbstractController.ts +11 -0
- package/es/library/behaviours/list-selection/adapters/controllers/AllSelectionController.ts +13 -0
- package/es/library/behaviours/list-selection/adapters/controllers/DestructController.ts +13 -0
- package/es/library/behaviours/list-selection/adapters/controllers/InitializeController.ts +13 -0
- package/es/library/behaviours/list-selection/adapters/controllers/RangeSelectionController.ts +14 -0
- package/es/library/behaviours/list-selection/adapters/controllers/SelectionController.ts +14 -0
- package/es/library/behaviours/list-selection/adapters/controllers/UpdateController.ts +14 -0
- package/es/library/behaviours/list-selection/adapters/gateways/Repository.ts +26 -0
- package/es/library/behaviours/list-selection/adapters/gateways/Service.ts +25 -0
- package/es/library/behaviours/list-selection/adapters/presenters/Presenter.ts +24 -0
- package/es/library/behaviours/list-selection/applications/interfaces/UseCase.ts +5 -0
- package/es/library/behaviours/list-selection/applications/interfaces/UseCaseDependencies.ts +9 -0
- package/es/library/behaviours/list-selection/applications/interfaces/gateways/IRepository.ts +8 -0
- package/es/library/behaviours/list-selection/applications/interfaces/gateways/IService.ts +15 -0
- package/es/library/behaviours/list-selection/applications/interfaces/input/AllSelectionInputModel.ts +3 -0
- package/es/library/behaviours/list-selection/applications/interfaces/input/DestructInputModel.ts +3 -0
- package/es/library/behaviours/list-selection/applications/interfaces/input/InitializeInputModel.ts +5 -0
- package/es/library/behaviours/list-selection/applications/interfaces/input/RangeSelectionInputModel.ts +5 -0
- package/es/library/behaviours/list-selection/applications/interfaces/input/SelectionInputModel.ts +5 -0
- package/es/library/behaviours/list-selection/applications/interfaces/output/BehaviourStateModel.ts +6 -0
- package/es/library/behaviours/list-selection/applications/interfaces/output/IPresenter.ts +8 -0
- package/es/library/behaviours/list-selection/applications/usecases/AbstractUseCase.ts +17 -0
- package/es/library/behaviours/list-selection/applications/usecases/AllItemSelection.ts +14 -0
- package/es/library/behaviours/list-selection/applications/usecases/Destruct.ts +8 -0
- package/es/library/behaviours/list-selection/applications/usecases/Initialize.ts +13 -0
- package/es/library/behaviours/list-selection/applications/usecases/ItemsSelection.ts +16 -0
- package/es/library/behaviours/list-selection/applications/usecases/RangeSelection.ts +15 -0
- package/es/library/behaviours/list-selection/domain/entities/ListItemSelection.ts +114 -0
- package/es/library/behaviours/list-selection/domain/entities/interfaces/IListItemSelection.ts +10 -0
- package/es/library/behaviours/list-selection/domain/entities/interfaces/ListSelectionModel.ts +6 -0
- package/es/library/behaviours/list-selection/frameworks/ActionHandlerFactory.ts +38 -0
- package/es/library/behaviours/list-selection/frameworks/ListItemSelectionBehaviourFactory.ts +23 -0
- package/es/library/behaviours/sort-by/adapters/controllers/AbstractController.ts +11 -0
- package/es/library/behaviours/sort-by/adapters/controllers/SortBy.ts +14 -0
- package/es/library/behaviours/sort-by/adapters/gateway/Repository.ts +17 -0
- package/es/library/behaviours/sort-by/adapters/gateway/Service.ts +13 -0
- package/es/library/behaviours/sort-by/adapters/presenter/Presenter.ts +23 -0
- package/es/library/behaviours/sort-by/applications/interfaces/UseCaseDependencies.ts +10 -0
- package/es/library/behaviours/sort-by/applications/interfaces/gateways/IRepository.ts +8 -0
- package/es/library/behaviours/sort-by/applications/interfaces/gateways/IService.ts +7 -0
- package/es/library/behaviours/sort-by/applications/interfaces/input/SortByInputModel.ts +6 -0
- package/es/library/behaviours/sort-by/applications/interfaces/output/IPresenter.ts +6 -0
- package/es/library/behaviours/sort-by/applications/interfaces/output/SortByOutputModel.ts +9 -0
- package/es/library/behaviours/sort-by/applications/usecases/AbstractUseCase.ts +17 -0
- package/es/library/behaviours/sort-by/applications/usecases/SortBy.ts +22 -0
- package/es/library/behaviours/sort-by/domain/entities/SortBy.ts +38 -0
- package/es/library/behaviours/sort-by/domain/entities/interfaces/ISortBy.ts +8 -0
- package/es/library/behaviours/sort-by/frameworks/ui/ActionsHandlerFactory.ts +21 -0
- package/es/library/behaviours/sort-by/frameworks/ui/DemoBehaviour.ts +18 -0
- package/es/library/behaviours/sort-by/frameworks/ui/SortByBehaviourFactory.ts +19 -0
- package/es/library/behaviours/text-to-field-click/adapters/controllers/ClickController.ts +17 -0
- package/es/library/behaviours/text-to-field-click/adapters/gateway/Repository.ts +16 -0
- package/es/library/behaviours/text-to-field-click/applications/interfaces/UseCaseDependencies.ts +7 -0
- package/es/library/behaviours/text-to-field-click/applications/interfaces/gateways/IRepository.ts +8 -0
- package/es/library/behaviours/text-to-field-click/applications/interfaces/input/ClickUseCaseInputModel.ts +4 -0
- package/es/library/behaviours/text-to-field-click/applications/usecases/AbstractUseCase.ts +15 -0
- package/es/library/behaviours/text-to-field-click/applications/usecases/ClickUseCase.ts +14 -0
- package/es/library/behaviours/text-to-field-click/domain/entities/FieldEventConverter.ts +16 -0
- package/es/library/behaviours/text-to-field-click/domain/entities/interfaces/IFieldEventConverter.ts +12 -0
- package/es/library/behaviours/text-to-field-click/frameworks/ui/EventHandlersFactory.ts +17 -0
- package/es/library/behaviours/text-to-field-click/frameworks/ui/TextToFieldClickBehaviourFactory.ts +15 -0
- package/es/library/custom-component/adapters/controllers/Controller.ts +30 -0
- package/es/library/custom-component/adapters/controllers/interface/IController.ts +20 -0
- package/es/library/custom-component/adapters/gateways/event-manager/EventManager.ts +75 -0
- package/es/library/custom-component/adapters/gateways/repository/Repository.ts +17 -0
- package/es/library/custom-component/adapters/gateways/service/Service.ts +29 -0
- package/es/library/custom-component/adapters/presenters/Presenter.ts +15 -0
- package/es/library/custom-component/applications/entities-factory/BehavioursFactory.ts +39 -0
- package/es/library/custom-component/applications/entities-factory/ComponentFactory.ts +49 -0
- package/es/library/custom-component/applications/entities-factory/EventHandlersFactory.ts +10 -0
- package/es/library/custom-component/applications/entities-factory/PropertiesFactory.ts +17 -0
- package/es/library/custom-component/applications/interfaces/InputDependencies.ts +13 -0
- package/es/library/custom-component/applications/interfaces/OutputDependencies.ts +6 -0
- package/es/library/custom-component/applications/interfaces/UseCase.ts +5 -0
- package/es/library/custom-component/applications/interfaces/gateways/IEventManager.ts +12 -0
- package/es/library/custom-component/applications/interfaces/gateways/IJSONValidator.ts +2 -0
- package/es/library/custom-component/applications/interfaces/gateways/IRepository.ts +9 -0
- package/es/library/custom-component/applications/interfaces/gateways/IService.ts +16 -0
- package/es/library/custom-component/applications/interfaces/input/DispatchInputModel.ts +4 -0
- package/es/library/custom-component/applications/interfaces/input/InitailizeInputModel.ts +6 -0
- package/es/library/custom-component/applications/interfaces/input/UpdatePropertiesInputModel.ts +3 -0
- package/es/library/custom-component/applications/interfaces/input/UpdateStateInputModel.ts +3 -0
- package/es/library/custom-component/applications/interfaces/output/OutputBoundary.ts +6 -0
- package/es/library/custom-component/applications/usecases/AbstractUseCase.ts +9 -0
- package/es/library/custom-component/applications/usecases/DispatchUseCase.ts +18 -0
- package/es/library/custom-component/applications/usecases/InitializeUseCase.ts +21 -0
- package/es/library/custom-component/applications/usecases/MountUseCase.ts +18 -0
- package/es/library/custom-component/applications/usecases/UnmountUseCase.ts +18 -0
- package/es/library/custom-component/applications/usecases/UpdatePropertyUseCase.ts +22 -0
- package/es/library/custom-component/applications/usecases/UpdateStateUseCase.ts +13 -0
- package/es/library/custom-component/domain/entities/Behaviour.ts +39 -0
- package/es/library/custom-component/domain/entities/Component.ts +209 -0
- package/es/library/custom-component/domain/entities/DefaultAppendToActionPayload.ts +10 -0
- package/es/library/custom-component/domain/entities/EventHandler.ts +13 -0
- package/es/library/custom-component/domain/entities/EventHandlers.ts +9 -0
- package/es/library/custom-component/domain/entities/Events.ts +18 -0
- package/es/library/custom-component/domain/entities/LifeCycleAction.ts +31 -0
- package/es/library/custom-component/domain/entities/Payload.ts +17 -0
- package/es/library/custom-component/domain/entities/Properties.ts +135 -0
- package/es/library/custom-component/domain/entities/Property.ts +42 -0
- package/es/library/custom-component/domain/entities/Schema.ts +10 -0
- package/es/library/custom-component/domain/entities/State.ts +15 -0
- package/es/library/custom-component/domain/entities/Style.ts +25 -0
- package/es/library/custom-component/domain/entities/interfaces/IBehaviour.ts +10 -0
- package/es/library/custom-component/domain/entities/interfaces/IComponent.ts +33 -0
- package/es/library/custom-component/domain/entities/interfaces/IEvent.ts +7 -0
- package/es/library/custom-component/domain/entities/interfaces/IEventHandler.ts +5 -0
- package/es/library/custom-component/domain/entities/interfaces/IEventHandlerHelpers.ts +7 -0
- package/es/library/custom-component/domain/entities/interfaces/IEventHandlers.ts +4 -0
- package/es/library/custom-component/domain/entities/interfaces/IEventWrapper.ts +4 -0
- package/es/library/custom-component/domain/entities/interfaces/ILifeCycleAction.ts +19 -0
- package/es/library/custom-component/domain/entities/interfaces/IPayload.ts +6 -0
- package/es/library/custom-component/domain/entities/interfaces/IProperties.ts +11 -0
- package/es/library/custom-component/domain/entities/interfaces/IProperty.ts +9 -0
- package/es/library/custom-component/domain/entities/interfaces/ISchema.ts +4 -0
- package/es/library/custom-component/domain/entities/interfaces/IState.ts +5 -0
- package/es/library/custom-component/domain/entities/interfaces/IStyle.ts +8 -0
- package/es/library/custom-component/domain/entities/interfaces/IValidator.ts +3 -0
- package/es/library/custom-component/frameworks/json-schema-validator/Validator.ts +13 -0
- package/es/library/custom-component/frameworks/object-path-immutable/ImmutableHelper.ts +5 -0
- package/es/library/custom-component/frameworks/ui/Compare.ts +41 -0
- package/es/library/custom-component/frameworks/ui/ComponentRegistry.ts +25 -0
- package/es/library/custom-component/frameworks/ui/CreateCustomComponent.tsx +93 -0
- package/es/library/custom-component/frameworks/ui/CreateSlotComponent.tsx +25 -0
- package/es/library/custom-component/frameworks/ui/CustomComponentFactory.tsx +59 -0
- package/es/library/custom-component/frameworks/ui/DependencyFactory.ts +25 -0
- package/es/library/custom-component/frameworks/ui/__testcases__/CreateCustomComponent.spec.js +106 -0
- package/es/library/dot/components/action-location/adapters/controllers/MountController.ts +15 -0
- package/es/library/dot/components/action-location/adapters/controllers/PropertiesChangeController.ts +20 -0
- package/es/library/dot/components/action-location/adapters/controllers/UnmountController.ts +15 -0
- package/es/library/dot/components/action-location/adapters/gateway/Repository.ts +26 -0
- package/es/library/dot/components/action-location/adapters/presenters/Presenter.ts +19 -0
- package/es/library/dot/components/action-location/entities/ActionLocationEntity.ts +99 -0
- package/es/library/dot/components/action-location/entities/interfaces/ActionViewModel.ts +9 -0
- package/es/library/dot/components/action-location/entities/interfaces/EventMappingViewModel.ts +10 -0
- package/es/library/dot/components/action-location/entities/interfaces/IActionLocation.ts +8 -0
- package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.ts +9 -0
- package/es/library/dot/components/action-location/frameworks/ui/ActionLocation.tsx +13 -0
- package/es/library/dot/components/action-location/frameworks/ui/ActionLocationView.tsx +14 -0
- package/es/library/dot/components/action-location/frameworks/ui/EventHandlersFactory.ts +35 -0
- package/es/library/dot/components/action-location/usecases/interactors/AbstractUseCase.ts +14 -0
- package/es/library/dot/components/action-location/usecases/interactors/DestroyUseCase.ts +12 -0
- package/es/library/dot/components/action-location/usecases/interactors/InitializeUseCase.ts +12 -0
- package/es/library/dot/components/action-location/usecases/interactors/PropertiesChangeUseCase.ts +14 -0
- package/es/library/dot/components/action-location/usecases/interfaces/UseCaseDependencies.ts +4 -0
- package/es/library/dot/components/action-location/usecases/interfaces/gateways/IRepository.ts +6 -0
- package/es/library/dot/components/action-location/usecases/interfaces/input/PropertiesChangeUseCaseInputModel.ts +8 -0
- package/es/library/dot/components/action-location/usecases/interfaces/output/IPresenter.ts +4 -0
- package/es/library/dot/components/actions-renderer/frameworks/ui/ActionsRenderer.tsx +10 -0
- package/es/library/dot/components/actions-renderer/frameworks/ui/ActionsRendererView.tsx +23 -0
- package/es/library/dot/components/table-list/adapters/controllers/AbstractController.ts +9 -0
- package/es/library/dot/components/table-list/adapters/controllers/FieldChangeController.ts +22 -0
- package/es/library/dot/components/table-list/adapters/controllers/FieldClickController.ts +21 -0
- package/es/library/dot/components/table-list/adapters/controllers/RowClickController.ts +18 -0
- package/es/library/dot/components/table-list/adapters/controllers/ScrollController.ts +24 -0
- package/es/library/dot/components/table-list/adapters/controllers/SelectAllController.ts +14 -0
- package/es/library/dot/components/table-list/adapters/controllers/SelectItemController.ts +23 -0
- package/es/library/dot/components/table-list/adapters/controllers/SortByController.ts +16 -0
- package/es/library/dot/components/table-list/adapters/controllers/SortedController.ts +15 -0
- package/es/library/dot/components/table-list/adapters/controllers/index.ts +7 -0
- package/es/library/dot/components/table-list/adapters/presenters/TableTranslator.ts +44 -0
- package/es/library/dot/components/table-list/frameworks/ui/EventHandlersFactory.ts +22 -0
- package/es/library/dot/components/table-list/frameworks/ui/TableList.tsx +36 -0
- package/es/library/dot/components/table-list/frameworks/ui/TableListView.tsx +82 -0
- package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +10 -0
- package/es/library/dot/components/table-list/frameworks/ui/handlers/HandleAllSelect.ts +7 -0
- package/es/library/dot/components/table-list/frameworks/ui/handlers/HandleRowSelect.ts +8 -0
- package/es/library/dot/components/table-list/frameworks/ui/handlers/HandleScroll.ts +10 -0
- package/es/library/dot/components/table-list/frameworks/ui/handlers/HandleSortClick.ts +8 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Body.tsx +15 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/ColumnResizingLine.tsx +20 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.tsx +53 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Loading.tsx +19 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/NoData.tsx +25 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.tsx +40 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/field/FieldComponent.tsx +20 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/ActionColumn.tsx +9 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/ColumnResizer.tsx +12 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.tsx +34 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderText.tsx +23 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/Headers.tsx +23 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/ResizerExtraSpace.tsx +19 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/SelectAll.tsx +24 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Columns.tsx +19 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.tsx +67 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.tsx +16 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.tsx +31 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowEventHandlersFactory.ts +18 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowSelection.tsx +26 -0
- package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/ActionIcon.ts +31 -0
- package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/ActionIconView.tsx +78 -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/avatar/frameworks/ui/Avatar.tsx +12 -0
- package/es/library/dot/legacy-to-new-arch/avatar/frameworks/ui/AvatarView.tsx +38 -0
- package/es/library/dot/legacy-to-new-arch/checkbox/frameworks/ui/Checkbox.tsx +12 -0
- package/es/library/dot/legacy-to-new-arch/checkbox/frameworks/ui/CheckboxView.tsx +25 -0
- package/es/library/dot/legacy-to-new-arch/common-empty-state/CommonEmptyState.ts +13 -0
- package/es/library/dot/legacy-to-new-arch/common-empty-state/CommonEmptyStateView.tsx +11 -0
- package/es/library/dot/legacy-to-new-arch/email/frameworks/ui/Email.tsx +12 -0
- package/es/library/dot/legacy-to-new-arch/email/frameworks/ui/EmailView.tsx +23 -0
- package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValue.tsx +12 -0
- package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValueView.tsx +24 -0
- package/es/library/dot/legacy-to-new-arch/index.ts +10 -0
- package/es/library/dot/legacy-to-new-arch/link/frameworks/ui/Link.tsx +12 -0
- package/es/library/dot/legacy-to-new-arch/link/frameworks/ui/LinkView.tsx +21 -0
- package/es/library/dot/legacy-to-new-arch/switch/frameworks/ui/Switch.tsx +12 -0
- package/es/library/dot/legacy-to-new-arch/switch/frameworks/ui/SwitchView.tsx +25 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/CheckboxField.tsx +15 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/CheckboxFieldView.tsx +8 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/EventHandlersFactory.ts +24 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/currency-field/frameworks/ui/CurrencyField.tsx +16 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/currency-field/frameworks/ui/CurrencyFieldView.tsx +8 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/date-field/frameworks/ui/DateField.tsx +16 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/date-field/frameworks/ui/DateFieldView.tsx +8 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/datetime-field/frameworks/ui/DateTimeField.tsx +16 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/datetime-field/frameworks/ui/DateTimeFieldView.tsx +8 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/decimal-field/frameworks/ui/DecimalField.tsx +16 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/decimal-field/frameworks/ui/DecimalFieldView.tsx +8 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/email-field/frameworks/ui/EmailField.tsx +14 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/email-field/frameworks/ui/EmailFieldView.tsx +8 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/index.ts +37 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/lookup-field/frameworks/ui/LookupField.tsx +14 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/lookup-field/frameworks/ui/LookupFieldView.tsx +8 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/multiselect-field/frameworks/ui/MultiSelectField.tsx +14 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/multiselect-field/frameworks/ui/MultiSelectFieldView.tsx +10 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/number-field/frameworks/ui/NumberField.tsx +16 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/number-field/frameworks/ui/NumberFieldView.tsx +8 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/percentage-field/frameworks/ui/PercentageField.tsx +16 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/percentage-field/frameworks/ui/PercentageFieldView.tsx +8 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/phone-field/frameworks/ui/PhoneField.tsx +14 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/phone-field/frameworks/ui/PhoneFieldView.tsx +11 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/picklist-field/frameworks/ui/PickListField.tsx +16 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/picklist-field/frameworks/ui/PickListFieldView.tsx +8 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/singleline-field/frameworks/ui/SingleLineField.tsx +16 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/singleline-field/frameworks/ui/SingleLineFieldView.tsx +8 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/EventHandlersFactory.ts +25 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/SwitchField.tsx +15 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/SwitchFieldView.tsx +8 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/url-field/frameworks/ui/EventHandlersFactory.ts +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/url-field/frameworks/ui/UrlField.tsx +15 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/url-field/frameworks/ui/UrlFieldView.tsx +8 -0
- package/es/library/dot/legacy-to-new-arch/tags/frameworks/ui/TagContractAdapter.ts +16 -0
- package/es/library/dot/legacy-to-new-arch/tags/frameworks/ui/Tags.tsx +12 -0
- package/es/library/dot/legacy-to-new-arch/tags/frameworks/ui/TagsView.tsx +24 -0
- package/es/library/dot/legacy-to-new-arch/text/frameworks/ui/Text.tsx +12 -0
- package/es/library/dot/legacy-to-new-arch/text/frameworks/ui/TextView.tsx +21 -0
- package/es/library/index.ts +3 -0
- package/es/platform/client-actions/Readme.md +31 -0
- package/es/platform/client-actions/bc/zclient-actions/Constants.ts +13 -0
- package/es/platform/client-actions/bc/zclient-actions/EventHandlers.ts +22 -0
- package/es/platform/client-actions/behaviour/zclient-actions/Readme.md +31 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/AbstractController.ts +14 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/ClientActionBehaviourExecutorController.ts +20 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/FailureController.ts +25 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/FetchStateStopController.ts +17 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/MountController.ts +22 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/NoContentController.ts +22 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/SetClientActionsController.ts +19 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/SuccessController.ts +22 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/gateways/Repository.ts +22 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/gateways/Service.ts +33 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/presenters/Presenter.ts +22 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/entities-factory/ClientActionFactory.ts +15 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/entities-factory/ClientActionManagerFactory.ts +13 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/ClientActionModel.ts +19 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/ComponentPropertiesModel.ts +3 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/ConditionFieldModel.ts +5 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/ConditionModel.ts +6 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/EventMappingModel.ts +9 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/IError.ts +1 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/InputDependencies.ts +9 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/PayloadValueMappingModel.ts +3 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/PropsMeta.ts +3 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/StrategyMeta.ts +5 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/UIComponentMappingModel.ts +11 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/UserDetailsModel.ts +6 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/gateways/IRepository.ts +9 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/gateways/IService.ts +17 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/gateways/State.ts +9 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/input/ExecuteActionBehaviourInputModel.ts +10 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/input/FailureInputModel.ts +10 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/input/FetchStateStopInputModel.ts +7 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/input/InitializeInputModel.ts +4 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/input/NoContentInputModel.ts +8 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/input/SetClientActionsInputModel.ts +9 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/input/SuccessInputModel.ts +10 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/output/IPresenter.ts +10 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/AbstractUseCase.ts +17 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/ExecuteActionBehaviourUseCase.ts +27 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/FailureUseCase.ts +21 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/FetchStateStopUseCase.ts +21 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/InitializeUseCase.ts +11 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/NoContentUseCase.ts +27 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/SetClientActionsUseCase.ts +21 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/SuccessUseCase.ts +22 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientAction.ts +56 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientActionManager.ts +134 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientActions.ts +41 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/EventMapping.ts +34 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/EventMappings.ts +17 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/GetClientActionsStrategy.ts +47 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/UIComponentMapping.ts +37 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/BehaviourState.ts +7 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionModel.ts +17 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionsModel.ts +8 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/ComponentPropertiesModel.ts +3 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/ConditionFieldModel.ts +5 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/ConditionModel.ts +6 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/EventMappingModel.ts +9 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/EventModel.ts +6 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IAction.ts +7 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientAction.ts +7 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActionExecuteStrategy.ts +11 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActionManager.ts +32 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActions.ts +13 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IError.ts +3 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IEvent.ts +11 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IEventMapping.ts +7 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IEventMappings.ts +6 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IPayload.ts +5 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IUIComponentMapping.ts +6 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/PayloadValueMappingModel.ts +3 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/PropsMeta.ts +3 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/State.ts +7 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/StrategyMeta.ts +5 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/SubMeta.ts +3 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/UIComponentMappingModel.ts +11 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/UserDetailsModel.ts +6 -0
- package/es/platform/client-actions/behaviour/zclient-actions/frameworks/ActionsHandlersFactory.ts +57 -0
- package/es/platform/client-actions/behaviour/zclient-actions/frameworks/ClientActionsBehaviourFactory.ts +14 -0
- package/es/platform/client-actions/cc/action-event-mediator/Properties.ts +36 -0
- package/es/platform/client-actions/cc/dynamic-action-component/Properties.ts +52 -0
- package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/MountController.ts +15 -0
- package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/PropertiesChangeController.ts +20 -0
- package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/UnmountController.ts +15 -0
- package/es/platform/client-actions/components/action-event-mediator/adapters/gateway/Repository.ts +32 -0
- package/es/platform/client-actions/components/action-event-mediator/adapters/presenters/Presenter.ts +20 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/interfaces/UseCaseDependencies.ts +4 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/interfaces/gateways/IRepository.ts +6 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/interfaces/input/PropertiesChangeUseCaseInputModel.ts +8 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/interfaces/output/IPresenter.ts +4 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/usecases/AbstractUseCase.ts +14 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/usecases/DestroyUseCase.ts +12 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/usecases/InitializeUseCase.ts +12 -0
- package/es/platform/client-actions/components/action-event-mediator/applications/usecases/PropertiesChangeUseCase.ts +14 -0
- package/es/platform/client-actions/components/action-event-mediator/domain/entities/ActionEventMediatorEntity.ts +104 -0
- package/es/platform/client-actions/components/action-event-mediator/domain/entities/interfaces/IActionLocation.ts +8 -0
- package/es/platform/client-actions/components/action-event-mediator/domain/entities/interfaces/IState.ts +4 -0
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator.ts +13 -0
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediatorView.tsx +17 -0
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/EventHandlersFactory.ts +36 -0
- package/es/platform/client-actions/components/dynamic-component/domain/entities/interfaces/IState.ts +5 -0
- package/es/platform/client-actions/components/dynamic-component/frameworks/ui/DynamicActionComponent.ts +10 -0
- package/es/platform/client-actions/components/dynamic-component/frameworks/ui/DynamicActionComponentView.tsx +19 -0
- package/es/platform/client-actions/components/interfaces/ActionViewModel.ts +17 -0
- package/es/platform/client-actions/components/interfaces/EventMappingViewModel.ts +7 -0
- package/es/platform/client-actions/components/row-actions-renderer/domain/entities/interfaces/IState.ts +5 -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/RowActionsRenderer.ts +17 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRendererView.tsx +21 -0
- package/es/platform/client-actions/template-resolver/index.ts +43 -0
- package/es/platform/client-actions/template-resolver/interfaces/ITemplate.ts +1 -0
- package/es/platform/client-actions/translators/client-actions-translator/index.ts +39 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalEmptyString.ts +5 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalEndsWith.ts +5 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalEquals.ts +5 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalGreaterThan.ts +5 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalGreaterThanOrEquals.ts +5 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalIn.ts +7 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalIsEmpty.ts +5 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalIsNotEmpty.ts +5 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalLessThan.ts +5 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalLessThanOrEquals.ts +5 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalLike.ts +5 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalNotEquals.ts +5 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalNotLike.ts +5 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalStartsWith.ts +5 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/GetResolvedContextFieldValue.ts +8 -0
- package/es/platform/client-actions/translators/condition-resolver/field-evaluators/index.ts +59 -0
- package/es/platform/client-actions/translators/condition-resolver/index.ts +24 -0
- package/es/platform/client-actions/translators/condition-resolver/pattern-evaluator/PatternValidator.ts +84 -0
- package/es/platform/client-actions/translators/condition-resolver/pattern-evaluator/index.ts +78 -0
- package/es/platform/client-actions/translators/context-resolver/index.ts +66 -0
- package/es/platform/client-actions/translators/interfaces/IContext.ts +1 -0
- package/es/platform/client-actions/translators/interfaces/IState.ts +1 -0
- package/es/platform/data-source/dbc/index.ts +83 -0
- package/es/platform/data-source/http-template/deleteRecord.ts +29 -0
- package/es/platform/data-source/http-template/deleteRecords.ts +29 -0
- package/es/platform/data-source/http-template/getAvailableFields.ts +31 -0
- package/es/platform/data-source/http-template/getClientActions.ts +25 -0
- package/es/platform/data-source/http-template/getRecords.ts +51 -0
- package/es/platform/data-source/http-template/getSelectedFields.ts +31 -0
- package/es/platform/data-source/http-template/updateRecord.ts +37 -0
- package/es/platform/data-source/index.ts +25 -0
- package/es/platform/data-source/utils/transformer/CreateCf.ts +12 -0
- package/es/platform/data-source/utils/transformer/Transformer.ts +22 -0
- package/es/platform/zdata-source/adapters/controllers/AbstractController.ts +11 -0
- package/es/platform/zdata-source/adapters/controllers/DataSourceExecutorController.ts +19 -0
- package/es/platform/zdata-source/adapters/controllers/FailureController.ts +23 -0
- package/es/platform/zdata-source/adapters/controllers/NoContentController.ts +20 -0
- package/es/platform/zdata-source/adapters/controllers/RegisterController.ts +15 -0
- package/es/platform/zdata-source/adapters/controllers/SuccessController.ts +21 -0
- package/es/platform/zdata-source/adapters/gateways/Repository.ts +20 -0
- package/es/platform/zdata-source/adapters/gateways/Service.ts +24 -0
- package/es/platform/zdata-source/adapters/gateways/TemplateHelpers.ts +50 -0
- package/es/platform/zdata-source/adapters/presenters/Presenter.ts +29 -0
- package/es/platform/zdata-source/applications/entities-factory/APITemplatesFactory.ts +21 -0
- package/es/platform/zdata-source/applications/entities-factory/DataSourceFactory.ts +11 -0
- package/es/platform/zdata-source/applications/interfaces/InputDependencies.ts +11 -0
- package/es/platform/zdata-source/applications/interfaces/gateways/IRepository.ts +10 -0
- package/es/platform/zdata-source/applications/interfaces/gateways/IService.ts +13 -0
- package/es/platform/zdata-source/applications/interfaces/gateways/ITemplateHelpers.ts +1 -0
- package/es/platform/zdata-source/applications/interfaces/gateways/State.ts +7 -0
- package/es/platform/zdata-source/applications/interfaces/input/ExecuteActionInputModel.ts +9 -0
- package/es/platform/zdata-source/applications/interfaces/input/FailureInputModel.ts +8 -0
- package/es/platform/zdata-source/applications/interfaces/input/NoContentInputModel.ts +7 -0
- package/es/platform/zdata-source/applications/interfaces/input/RegisterInputModel.ts +4 -0
- package/es/platform/zdata-source/applications/interfaces/input/SuccessInputModel.ts +8 -0
- package/es/platform/zdata-source/applications/interfaces/output/IPresenter.ts +7 -0
- package/es/platform/zdata-source/applications/usecases/AbstractUseCase.ts +15 -0
- package/es/platform/zdata-source/applications/usecases/ExecuteActionUseCase.ts +16 -0
- package/es/platform/zdata-source/applications/usecases/FailureUseCase.ts +17 -0
- package/es/platform/zdata-source/applications/usecases/NoContentUseCase.ts +19 -0
- package/es/platform/zdata-source/applications/usecases/RegisterUseCase.ts +10 -0
- package/es/platform/zdata-source/applications/usecases/SuccessUseCase.ts +22 -0
- package/es/platform/zdata-source/domain/entities/APITemplate.ts +83 -0
- package/es/platform/zdata-source/domain/entities/APITemplates.ts +22 -0
- package/es/platform/zdata-source/domain/entities/DataSource.ts +89 -0
- package/es/platform/zdata-source/domain/entities/interfaces/APIDetailsModel.ts +10 -0
- package/es/platform/zdata-source/domain/entities/interfaces/APITemplateModel.ts +3 -0
- package/es/platform/zdata-source/domain/entities/interfaces/APITemplatesModel.ts +3 -0
- package/es/platform/zdata-source/domain/entities/interfaces/ApiEnum.ts +9 -0
- package/es/platform/zdata-source/domain/entities/interfaces/BehaviourState.ts +5 -0
- package/es/platform/zdata-source/domain/entities/interfaces/EventModel.ts +8 -0
- package/es/platform/zdata-source/domain/entities/interfaces/IAPITemplate.ts +10 -0
- package/es/platform/zdata-source/domain/entities/interfaces/IAPITemplates.ts +10 -0
- package/es/platform/zdata-source/domain/entities/interfaces/IDataSource.ts +16 -0
- package/es/platform/zdata-source/domain/entities/interfaces/ITemplateHelpers.ts +6 -0
- package/es/platform/zdata-source/domain/entities/interfaces/MetaData.ts +21 -0
- package/es/platform/zdata-source/frameworks/DataBrokerBehaviourFactory.ts +12 -0
- package/es/platform/zdata-source/frameworks/EventHandlersFactory.ts +35 -0
- package/es/platform/zfield/adapters/controllers/AbstractController.ts +12 -0
- package/es/platform/zfield/adapters/controllers/ExeucteActionController.ts +20 -0
- package/es/platform/zfield/adapters/controllers/FetchFailureController.ts +16 -0
- package/es/platform/zfield/adapters/controllers/FetchNoContentController.ts +15 -0
- package/es/platform/zfield/adapters/controllers/FetchSuccessController.ts +16 -0
- package/es/platform/zfield/adapters/controllers/InitializeController.ts +23 -0
- package/es/platform/zfield/adapters/controllers/RefetchController.ts +16 -0
- package/es/platform/zfield/adapters/gateways/Repository.ts +27 -0
- package/es/platform/zfield/adapters/gateways/Service.ts +28 -0
- package/es/platform/zfield/adapters/presenters/Presenter.ts +24 -0
- package/es/platform/zfield/applications/entities-factory/FieldBuilder.ts +106 -0
- package/es/platform/zfield/applications/entities-factory/FieldFactory.ts +24 -0
- package/es/platform/zfield/applications/entities-factory/FieldsManagerBuilder.ts +36 -0
- package/es/platform/zfield/applications/interfaces/UsecaseDependencies.ts +8 -0
- package/es/platform/zfield/applications/interfaces/gateways/IRepository.ts +8 -0
- package/es/platform/zfield/applications/interfaces/gateways/IRestApi.ts +7 -0
- package/es/platform/zfield/applications/interfaces/gateways/IService.ts +17 -0
- package/es/platform/zfield/applications/interfaces/input/ExecuteActionInputModel.ts +10 -0
- package/es/platform/zfield/applications/interfaces/input/FetchInputModel.ts +13 -0
- package/es/platform/zfield/applications/interfaces/input/InitialInputModel.ts +6 -0
- package/es/platform/zfield/applications/interfaces/input/InputModel.ts +17 -0
- package/es/platform/zfield/applications/interfaces/input/RefetchInputModel.ts +12 -0
- package/es/platform/zfield/applications/interfaces/input/SetValueInputModel.ts +6 -0
- package/es/platform/zfield/applications/interfaces/output/IPresenter.ts +8 -0
- package/es/platform/zfield/applications/usecases/AbstractUseCase.ts +16 -0
- package/es/platform/zfield/applications/usecases/ExecuteActionUseCase.ts +14 -0
- package/es/platform/zfield/applications/usecases/FetchFailureUseCase.ts +22 -0
- package/es/platform/zfield/applications/usecases/FetchNoContentUseCase.ts +22 -0
- package/es/platform/zfield/applications/usecases/FetchSuccessUseCase.ts +23 -0
- package/es/platform/zfield/applications/usecases/InitializeUseCase.ts +13 -0
- package/es/platform/zfield/applications/usecases/RefetchUseCase.ts +15 -0
- package/es/platform/zfield/domain/entities/BooleanField.ts +4 -0
- package/es/platform/zfield/domain/entities/CurrencyField.ts +4 -0
- package/es/platform/zfield/domain/entities/DateField.ts +4 -0
- package/es/platform/zfield/domain/entities/DateTimeField.ts +4 -0
- package/es/platform/zfield/domain/entities/EmailField.ts +6 -0
- package/es/platform/zfield/domain/entities/Field.ts +44 -0
- package/es/platform/zfield/domain/entities/LookupField.ts +12 -0
- package/es/platform/zfield/domain/entities/MultiLineField.ts +4 -0
- package/es/platform/zfield/domain/entities/MultiSelectField.ts +4 -0
- package/es/platform/zfield/domain/entities/PercentageField.ts +4 -0
- package/es/platform/zfield/domain/entities/PhoneField.ts +4 -0
- package/es/platform/zfield/domain/entities/PickListField.ts +4 -0
- package/es/platform/zfield/domain/entities/SingleLineField.ts +4 -0
- package/es/platform/zfield/domain/entities/URLField.ts +4 -0
- package/es/platform/zfield/domain/entities/fields-manager/AvailableFieldsManager.ts +86 -0
- package/es/platform/zfield/domain/entities/fields-manager/FieldsManager.ts +92 -0
- package/es/platform/zfield/domain/entities/fields-manager/SelectedFieldsManager.ts +87 -0
- package/es/platform/zfield/domain/entities/index.ts +15 -0
- package/es/platform/zfield/domain/entities/interfaces/ActionModel.ts +7 -0
- package/es/platform/zfield/domain/entities/interfaces/BehaviourState.ts +18 -0
- package/es/platform/zfield/domain/entities/interfaces/FieldApiName.ts +6 -0
- package/es/platform/zfield/domain/entities/interfaces/FieldModel.ts +18 -0
- package/es/platform/zfield/domain/entities/interfaces/IField.ts +6 -0
- package/es/platform/zfield/domain/entities/interfaces/IFieldManger.ts +19 -0
- package/es/platform/zfield/domain/entities/interfaces/MetaData.ts +21 -0
- package/es/platform/zfield/frameworks/ActionHandlerFactory.ts +40 -0
- package/es/platform/zfield/frameworks/ZFieldBehaviourFactory.ts +16 -0
- package/es/platform/zhttp/adapters/controllers/FetchController.ts +19 -0
- package/es/platform/zhttp/adapters/gateway/FetchGateWay.ts +15 -0
- package/es/platform/zhttp/applications/interfaces/InputDependencies.ts +6 -0
- package/es/platform/zhttp/applications/interfaces/UseCase.ts +4 -0
- package/es/platform/zhttp/applications/interfaces/gateway/IFetchGateWay.ts +15 -0
- package/es/platform/zhttp/applications/interfaces/input/FetchInputModel.ts +10 -0
- package/es/platform/zhttp/applications/usecases/AbstractUseCase.ts +8 -0
- package/es/platform/zhttp/applications/usecases/FetchUseCase.ts +63 -0
- package/es/platform/zhttp/frameworks/ActionsHandlerFactory.ts +19 -0
- package/es/platform/zhttp/frameworks/ZHttpBehaviourFactory.ts +16 -0
- package/es/platform/zlist/adapters/controllers/AbstractController.ts +12 -0
- package/es/platform/zlist/adapters/controllers/DeleteMultipleRecordController.ts +12 -0
- package/es/platform/zlist/adapters/controllers/DeleteSingleRecordController.ts +12 -0
- package/es/platform/zlist/adapters/controllers/DeleteSuccessController.ts +14 -0
- package/es/platform/zlist/adapters/controllers/FetchMoreController.ts +11 -0
- package/es/platform/zlist/adapters/controllers/FieldChangeController.ts +12 -0
- package/es/platform/zlist/adapters/controllers/MountController.ts +12 -0
- package/es/platform/zlist/adapters/controllers/PropertiesChangeController.ts +14 -0
- package/es/platform/zlist/adapters/controllers/RecordExecuteFailedController.ts +12 -0
- package/es/platform/zlist/adapters/controllers/RecordExecuteSucceededController.ts +12 -0
- package/es/platform/zlist/adapters/controllers/RecordUpdateController.ts +12 -0
- package/es/platform/zlist/adapters/controllers/SortController.ts +14 -0
- package/es/platform/zlist/adapters/controllers/UpdateSuccessController.ts +14 -0
- package/es/platform/zlist/adapters/gateways/Repository.ts +28 -0
- package/es/platform/zlist/adapters/gateways/Service.ts +46 -0
- package/es/platform/zlist/adapters/gateways/SortBy.ts +27 -0
- package/es/platform/zlist/adapters/presenters/TableTranslator.ts +80 -0
- package/es/platform/zlist/adapters/presenters/translators/ColumnAlignmentTranslator.ts +11 -0
- package/es/platform/zlist/adapters/presenters/translators/ColumnSizeTranslator.ts +22 -0
- package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.ts +32 -0
- package/es/platform/zlist/adapters/presenters/translators/EmptyViewModel.ts +10 -0
- package/es/platform/zlist/adapters/presenters/translators/Header.ts +22 -0
- package/es/platform/zlist/adapters/presenters/translators/HeadersTranslator.ts +32 -0
- package/es/platform/zlist/adapters/presenters/translators/Row.ts +29 -0
- package/es/platform/zlist/adapters/presenters/translators/RowActionTranslator.ts +39 -0
- package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.ts +42 -0
- package/es/platform/zlist/adapters/presenters/translators/actions/ActionsTranslator.ts +81 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/BooleanFieldTranslator.ts +21 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/CurrencyFieldTranslator.ts +16 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.ts +15 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.ts +15 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/DecimalFieldTranslator.ts +16 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/EmailFieldTranslator.ts +15 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/LookUpFieldTranslator.ts +17 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/MultiLineFieldTranslator.ts +16 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/MultiSelectFieldTranslator.ts +21 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/NumberFieldTranslator.ts +16 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/PercentageFieldTranslator.ts +15 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/PhoneFieldTranslator.ts +15 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/PickListFieldTranslator.ts +15 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/SingleLineFieldTranslator.ts +16 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/URLFieldTranslator.ts +16 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/index.ts +27 -0
- package/es/platform/zlist/adapters/presenters/translators/interfaces/Context.ts +6 -0
- package/es/platform/zlist/adapters/presenters/translators/interfaces/FieldComponentMapping.ts +13 -0
- package/es/platform/zlist/adapters/presenters/translators/interfaces/FieldModel.ts +19 -0
- package/es/platform/zlist/adapters/presenters/translators/interfaces/FieldTranslator.ts +6 -0
- package/es/platform/zlist/adapters/presenters/translators/interfaces/RowActionModel.ts +18 -0
- package/es/platform/zlist/adapters/presenters/translators/interfaces/SelectedField.ts +2 -0
- package/es/platform/zlist/adapters/presenters/translators/interfaces/State.ts +17 -0
- package/es/platform/zlist/adapters/presenters/translators/interfaces/ZFieldsBehaviourState.ts +9 -0
- package/es/platform/zlist/adapters/presenters/utils/Pipeline.ts +19 -0
- package/es/platform/zlist/applications/entities-factory/ListFactory.ts +12 -0
- package/es/platform/zlist/applications/interfaces/State.ts +5 -0
- package/es/platform/zlist/applications/interfaces/UseCaseDependencies.ts +9 -0
- package/es/platform/zlist/applications/interfaces/gateways/IRepository.ts +9 -0
- package/es/platform/zlist/applications/interfaces/gateways/IService.ts +30 -0
- package/es/platform/zlist/applications/interfaces/gateways/ISortBy.ts +9 -0
- package/es/platform/zlist/applications/interfaces/input/DeleteMultipleRecordUseCaseInput.ts +6 -0
- package/es/platform/zlist/applications/interfaces/input/DeleteSingleRecordUseCaseInput.ts +6 -0
- package/es/platform/zlist/applications/interfaces/input/FetchMoreInput.ts +5 -0
- package/es/platform/zlist/applications/interfaces/input/FieldChangeUseCaseInput.ts +8 -0
- package/es/platform/zlist/applications/interfaces/input/InitializeInput.ts +4 -0
- package/es/platform/zlist/applications/interfaces/input/PropertiesChangeUseCaseInput.ts +8 -0
- package/es/platform/zlist/applications/interfaces/input/RecordExecuteFailedUseCaseInput.ts +10 -0
- package/es/platform/zlist/applications/interfaces/input/RecordExecuteSucceededUseCaseInput.ts +9 -0
- package/es/platform/zlist/applications/interfaces/input/RecordUpdateUseCaseInput.ts +6 -0
- package/es/platform/zlist/applications/interfaces/input/SortingInputModel.ts +12 -0
- package/es/platform/zlist/applications/usecases/AbstractUseCase.ts +18 -0
- package/es/platform/zlist/applications/usecases/DeleteMultipleRecordUseCase.ts +14 -0
- package/es/platform/zlist/applications/usecases/DeleteSingleRecordUseCase.ts +14 -0
- package/es/platform/zlist/applications/usecases/DeleteSuccessUseCase.ts +13 -0
- package/es/platform/zlist/applications/usecases/FetchMoreUseCase.ts +13 -0
- package/es/platform/zlist/applications/usecases/FieldChangeUseCase.ts +14 -0
- package/es/platform/zlist/applications/usecases/InitializeUseCase.ts +13 -0
- package/es/platform/zlist/applications/usecases/PropertiesChangeUseCase.ts +14 -0
- package/es/platform/zlist/applications/usecases/RecordExecuteFailedUseCase.ts +16 -0
- package/es/platform/zlist/applications/usecases/RecordExecuteSucceededUseCase.ts +16 -0
- package/es/platform/zlist/applications/usecases/RecordUpdateUseCase.ts +14 -0
- package/es/platform/zlist/applications/usecases/SortUseCase.ts +15 -0
- package/es/platform/zlist/applications/usecases/UpdateSuccessUseCase.ts +13 -0
- package/es/platform/zlist/domain/entities/List.ts +298 -0
- package/es/platform/zlist/domain/entities/interfaces/ActionModel.ts +11 -0
- package/es/platform/zlist/domain/entities/interfaces/ApiPropsModel.ts +9 -0
- package/es/platform/zlist/domain/entities/interfaces/IList.ts +19 -0
- package/es/platform/zlist/domain/entities/interfaces/Properties.ts +18 -0
- package/es/platform/zlist/domain/entities/interfaces/RecordExecuteAfterMetaData.ts +4 -0
- package/es/platform/zlist/frameworks/EventHandlersFactory.ts +53 -0
- package/es/platform/zlist/frameworks/ZListBehaviourFactory.ts +14 -0
- package/es/platform/zrecord/adapters/controllers/AbstractController.ts +11 -0
- package/es/platform/zrecord/adapters/controllers/ActionExecutorController.ts +18 -0
- package/es/platform/zrecord/adapters/controllers/AppendRecordsController.ts +16 -0
- package/es/platform/zrecord/adapters/controllers/DeleteMultipleRecordLocalController.ts +16 -0
- package/es/platform/zrecord/adapters/controllers/FailureController.ts +23 -0
- package/es/platform/zrecord/adapters/controllers/FetchMoreController.ts +14 -0
- package/es/platform/zrecord/adapters/controllers/FetchStateStopController.ts +16 -0
- package/es/platform/zrecord/adapters/controllers/FieldChangeController.ts +12 -0
- package/es/platform/zrecord/adapters/controllers/MountController.ts +21 -0
- package/es/platform/zrecord/adapters/controllers/NoContentController.ts +20 -0
- package/es/platform/zrecord/adapters/controllers/RecordUpdateLocalController.ts +14 -0
- package/es/platform/zrecord/adapters/controllers/RefetchController.ts +22 -0
- package/es/platform/zrecord/adapters/controllers/SetRecordsController.ts +16 -0
- package/es/platform/zrecord/adapters/controllers/SuccessController.ts +21 -0
- package/es/platform/zrecord/adapters/gateways/Repository.ts +18 -0
- package/es/platform/zrecord/adapters/gateways/Service.ts +48 -0
- package/es/platform/zrecord/adapters/presenters/Presenter.ts +23 -0
- package/es/platform/zrecord/applications/entities-factory/RecordFactory.ts +12 -0
- package/es/platform/zrecord/applications/entities-factory/RecordsManagerFactory.ts +11 -0
- package/es/platform/zrecord/applications/interfaces/InputDependencies.ts +9 -0
- package/es/platform/zrecord/applications/interfaces/gateways/IRepository.ts +9 -0
- package/es/platform/zrecord/applications/interfaces/gateways/IService.ts +29 -0
- package/es/platform/zrecord/applications/interfaces/gateways/State.ts +7 -0
- package/es/platform/zrecord/applications/interfaces/input/AppendRecordsInputModel.ts +7 -0
- package/es/platform/zrecord/applications/interfaces/input/DeleteMultipleRecordInputModel.ts +6 -0
- package/es/platform/zrecord/applications/interfaces/input/ExecuteActionInputModel.ts +7 -0
- package/es/platform/zrecord/applications/interfaces/input/FailureInputModel.ts +8 -0
- package/es/platform/zrecord/applications/interfaces/input/FetchMoreInputModel.ts +7 -0
- package/es/platform/zrecord/applications/interfaces/input/FetchStateStopInputModel.ts +6 -0
- package/es/platform/zrecord/applications/interfaces/input/FieldChangeUseCaseInput.ts +6 -0
- package/es/platform/zrecord/applications/interfaces/input/InitializeInputModel.ts +4 -0
- package/es/platform/zrecord/applications/interfaces/input/NoContentInputModel.ts +7 -0
- package/es/platform/zrecord/applications/interfaces/input/RecordUpdateLocalUseCaseInputModel.ts +7 -0
- package/es/platform/zrecord/applications/interfaces/input/RefetchInputModel.ts +7 -0
- package/es/platform/zrecord/applications/interfaces/input/SetRecordsInputModel.ts +7 -0
- package/es/platform/zrecord/applications/interfaces/input/SuccessInputModel.ts +8 -0
- package/es/platform/zrecord/applications/interfaces/output/IPresenter.ts +7 -0
- package/es/platform/zrecord/applications/usecases/AbstractUseCase.ts +15 -0
- package/es/platform/zrecord/applications/usecases/AppendRecordsUseCase.ts +18 -0
- package/es/platform/zrecord/applications/usecases/DeleteMultipleRecordUseCase.ts +16 -0
- package/es/platform/zrecord/applications/usecases/ExecuteActionUseCase.ts +24 -0
- package/es/platform/zrecord/applications/usecases/FailureUseCase.ts +16 -0
- package/es/platform/zrecord/applications/usecases/FetchMoreUseCase.ts +22 -0
- package/es/platform/zrecord/applications/usecases/FetchStateStopUseCase.ts +18 -0
- package/es/platform/zrecord/applications/usecases/FieldChangeUseCase.ts +16 -0
- package/es/platform/zrecord/applications/usecases/InitializeUseCase.ts +11 -0
- package/es/platform/zrecord/applications/usecases/NoContentUseCase.ts +23 -0
- package/es/platform/zrecord/applications/usecases/RecordUpdateLocalUseCase.ts +16 -0
- package/es/platform/zrecord/applications/usecases/RefetchUseCase.ts +23 -0
- package/es/platform/zrecord/applications/usecases/SetRecordsUseCase.ts +18 -0
- package/es/platform/zrecord/applications/usecases/SuccessUseCase.ts +17 -0
- package/es/platform/zrecord/domain/entities/CustomFieldValues.ts +30 -0
- package/es/platform/zrecord/domain/entities/DeleteMultipleRecordStrategy.ts +61 -0
- package/es/platform/zrecord/domain/entities/DeleteRecordStrategy.ts +62 -0
- package/es/platform/zrecord/domain/entities/GetRecordsStrategy.ts +55 -0
- package/es/platform/zrecord/domain/entities/Record.ts +47 -0
- package/es/platform/zrecord/domain/entities/Records.ts +83 -0
- package/es/platform/zrecord/domain/entities/RecordsManager.ts +188 -0
- package/es/platform/zrecord/domain/entities/UpdateRecordStrategy.ts +52 -0
- package/es/platform/zrecord/domain/entities/interfaces/ApiEnum.ts +9 -0
- package/es/platform/zrecord/domain/entities/interfaces/BehaviourState.ts +7 -0
- package/es/platform/zrecord/domain/entities/interfaces/EventModel.ts +6 -0
- package/es/platform/zrecord/domain/entities/interfaces/ICustomFieldValues.ts +9 -0
- package/es/platform/zrecord/domain/entities/interfaces/IRecord.ts +6 -0
- package/es/platform/zrecord/domain/entities/interfaces/IRecordExecuteStrategy.ts +8 -0
- package/es/platform/zrecord/domain/entities/interfaces/IRecordName.ts +5 -0
- package/es/platform/zrecord/domain/entities/interfaces/IRecords.ts +20 -0
- package/es/platform/zrecord/domain/entities/interfaces/IRecordsManager.ts +32 -0
- package/es/platform/zrecord/domain/entities/interfaces/RecordModel.ts +21 -0
- package/es/platform/zrecord/domain/entities/interfaces/RecordsModel.ts +7 -0
- package/es/platform/zrecord/domain/entities/interfaces/StrategyMeta.ts +3 -0
- package/es/platform/zrecord/frameworks/ActionsHandlersFactory.ts +76 -0
- package/es/platform/zrecord/frameworks/RecordBehaviourFactory.ts +14 -0
- package/package.json +31 -23
- package/es/bc/index.js +0 -1
- package/es/bc/list-selection/ActionHandlers.js +0 -1
- package/es/bc/list-selection/Actions.js +0 -38
- package/es/bc/list-selection/Constants.js +0 -3
- package/es/bc/list-selection/Properties.js +0 -17
- package/es/bc/local-storage/Constants.js +0 -1
- package/es/bc/local-storage/Properties.js +0 -10
- package/es/bc/sort-by/ActionHandlers.js +0 -1
- package/es/bc/sort-by/Constants.js +0 -2
- package/es/bc/sort-by/Properties.js +0 -21
- package/es/bc/sort-by/SortOrderEnum.js +0 -8
- package/es/bc/table-column-resizer/Constants.js +0 -5
- package/es/bc/table-column-resizer/Properties.js +0 -18
- package/es/bc/zdata-broker/Actions.js +0 -67
- package/es/bc/zdata-broker/Constants.js +0 -16
- package/es/bc/zdata-broker/EventHandlers.js +0 -2
- package/es/bc/zdata-broker/Properties.js +0 -1
- package/es/bc/zdata-broker/Symbols.js +0 -5
- package/es/bc/zfield/ActionHandlers.js +0 -2
- package/es/bc/zfield/Actions.js +0 -31
- package/es/bc/zfield/Constants.js +0 -6
- package/es/bc/zfield/Properties.js +0 -2
- package/es/bc/zhttp/ActionHandlers.js +0 -1
- package/es/bc/zhttp/Actions.js +0 -80
- package/es/bc/zhttp/Constants.js +0 -5
- package/es/bc/zhttp/Properties.js +0 -1
- package/es/bc/zlist/Actions.js +0 -5
- package/es/bc/zlist/Constants.js +0 -9
- package/es/bc/zlist/EventHandlers.js +0 -1
- package/es/bc/zlist/Properties.js +0 -70
- package/es/bc/zlist/index.js +0 -2
- package/es/bc/zrecord/Actions.js +0 -142
- package/es/bc/zrecord/Constants.js +0 -25
- package/es/bc/zrecord/EventHandlers.js +0 -1
- package/es/bc/zrecord/Properties.js +0 -1
- package/es/bc/zrecord/Symbols.js +0 -4
- package/es/cc/action-icon/Constants.js +0 -7
- package/es/cc/action-icon/Model.js +0 -20
- package/es/cc/action-icon/Properties.js +0 -28
- package/es/cc/action-location/Constants.js +0 -11
- package/es/cc/action-location/Properties.js +0 -10
- package/es/cc/architecture/IController.js +0 -1
- package/es/cc/architecture/IUseCase.js +0 -1
- package/es/cc/architecture/LifeCycleActionEnum.js +0 -8
- package/es/cc/avatar/ActionHandlers.js +0 -1
- package/es/cc/avatar/Actions.js +0 -4
- package/es/cc/avatar/Constants.js +0 -7
- package/es/cc/avatar/Data.js +0 -10
- package/es/cc/avatar/Model.js +0 -18
- package/es/cc/avatar/Properties.js +0 -44
- package/es/cc/avatar/index.js +0 -5
- package/es/cc/checkbox/ActionHandlers.js +0 -1
- package/es/cc/checkbox/Actions.js +0 -4
- package/es/cc/checkbox/Constants.js +0 -7
- package/es/cc/checkbox/Data.js +0 -1
- package/es/cc/checkbox/Model.js +0 -18
- package/es/cc/checkbox/Properties.js +0 -44
- package/es/cc/component/Action.js +0 -2
- package/es/cc/component/ActionHandlers.js +0 -2
- package/es/cc/component/Behaviour.js +0 -1
- package/es/cc/component/DeclarativeAction.js +0 -1
- package/es/cc/component/Event.js +0 -1
- package/es/cc/component/EventHandlers.js +0 -1
- package/es/cc/component/Helpers.js +0 -1
- package/es/cc/component/LifeCycleAction.js +0 -1
- package/es/cc/component/Payload.js +0 -1
- package/es/cc/component/Styles.js +0 -1
- package/es/cc/component/View.js +0 -1
- package/es/cc/component/component.js +0 -1
- package/es/cc/component/properties/AppendToActionPayloadProperty.js +0 -1
- package/es/cc/component/properties/Property.js +0 -1
- package/es/cc/component/properties/Schema.js +0 -1
- package/es/cc/component/properties/appendToActionPayload.js +0 -37
- package/es/cc/component/properties/getRef.js +0 -1
- package/es/cc/component/properties/getRefPropertySchema.js +0 -10
- package/es/cc/component/properties/index.js +0 -1
- package/es/cc/component/setInitialState.js +0 -1
- package/es/cc/component/transferState.js +0 -1
- package/es/cc/email/ActionHandlers.js +0 -1
- package/es/cc/email/Actions.js +0 -4
- package/es/cc/email/Constants.js +0 -7
- package/es/cc/email/Data.js +0 -1
- package/es/cc/email/Model.js +0 -10
- package/es/cc/email/Properties.js +0 -10
- package/es/cc/empty-state/Properties.js +0 -1
- package/es/cc/fields/boolean/Events.js +0 -3
- package/es/cc/fields/boolean/Model.js +0 -14
- package/es/cc/fields/boolean/Properties.js +0 -12
- package/es/cc/fields/currency/Events.js +0 -3
- package/es/cc/fields/currency/Model.js +0 -14
- package/es/cc/fields/currency/Properties.js +0 -11
- package/es/cc/fields/date/Events.js +0 -3
- package/es/cc/fields/date/Model.js +0 -14
- package/es/cc/fields/date/Properties.js +0 -11
- package/es/cc/fields/datetime/Events.js +0 -3
- package/es/cc/fields/datetime/Model.js +0 -14
- package/es/cc/fields/datetime/Properties.js +0 -11
- package/es/cc/fields/decimal/Events.js +0 -3
- package/es/cc/fields/decimal/Model.js +0 -14
- package/es/cc/fields/decimal/Properties.js +0 -11
- package/es/cc/fields/email/Events.js +0 -3
- package/es/cc/fields/email/Model.js +0 -14
- package/es/cc/fields/email/Properties.js +0 -11
- package/es/cc/fields/field/Constants.js +0 -9
- package/es/cc/fields/field/Events.js +0 -35
- package/es/cc/fields/field/Properties.js +0 -29
- package/es/cc/fields/field/Types.js +0 -21
- package/es/cc/fields/index.js +0 -17
- package/es/cc/fields/lookup/Events.js +0 -3
- package/es/cc/fields/lookup/Model.js +0 -14
- package/es/cc/fields/lookup/Properties.js +0 -11
- package/es/cc/fields/multi-line/Events.js +0 -3
- package/es/cc/fields/multi-line/Model.js +0 -14
- package/es/cc/fields/multi-line/Properties.js +0 -40
- package/es/cc/fields/multi-select/Events.js +0 -3
- package/es/cc/fields/multi-select/Model.js +0 -16
- package/es/cc/fields/multi-select/Properties.js +0 -40
- package/es/cc/fields/number/Events.js +0 -3
- package/es/cc/fields/number/Model.js +0 -14
- package/es/cc/fields/number/Properties.js +0 -11
- package/es/cc/fields/percent/Events.js +0 -3
- package/es/cc/fields/percent/Model.js +0 -14
- package/es/cc/fields/percent/Properties.js +0 -11
- package/es/cc/fields/phone/Events.js +0 -3
- package/es/cc/fields/phone/Model.js +0 -14
- package/es/cc/fields/phone/Properties.js +0 -11
- package/es/cc/fields/pick-list/Events.js +0 -3
- package/es/cc/fields/pick-list/Model.js +0 -18
- package/es/cc/fields/pick-list/Properties.js +0 -40
- package/es/cc/fields/text/Events.js +0 -3
- package/es/cc/fields/text/Model.js +0 -14
- package/es/cc/fields/text/Properties.js +0 -11
- package/es/cc/fields/url/Events.js +0 -3
- package/es/cc/fields/url/Model.js +0 -14
- package/es/cc/fields/url/Properties.js +0 -12
- package/es/cc/highlighted-value/ActionHandlers.js +0 -1
- package/es/cc/highlighted-value/Actions.js +0 -4
- package/es/cc/highlighted-value/Constants.js +0 -7
- package/es/cc/highlighted-value/Data.js +0 -10
- package/es/cc/highlighted-value/Model.js +0 -14
- package/es/cc/highlighted-value/Properties.js +0 -28
- package/es/cc/index.js +0 -11
- package/es/cc/link/ActionHandlers.js +0 -1
- package/es/cc/link/Actions.js +0 -4
- package/es/cc/link/Constants.js +0 -7
- package/es/cc/link/Data.js +0 -7
- package/es/cc/link/Model.js +0 -16
- package/es/cc/link/Properties.js +0 -38
- package/es/cc/switch/ActionHandlers.js +0 -1
- package/es/cc/switch/Actions.js +0 -15
- package/es/cc/switch/Constants.js +0 -7
- package/es/cc/switch/Data.js +0 -7
- package/es/cc/switch/Model.js +0 -16
- package/es/cc/switch/Properties.js +0 -38
- package/es/cc/table-connected/Properties.js +0 -90
- package/es/cc/table-list/ActionHandlers.js +0 -0
- package/es/cc/table-list/Actions.js +0 -11
- package/es/cc/table-list/Constants.js +0 -19
- package/es/cc/table-list/Data.js +0 -1
- package/es/cc/table-list/Events.js +0 -59
- package/es/cc/table-list/Properties.js +0 -421
- 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/cc/table-list/data-types/Column.js +0 -1
- package/es/cc/table-list/data-types/Data.js +0 -1
- package/es/cc/table-list/data-types/Header.js +0 -20
- package/es/cc/table-list/data-types/ResizerConfig.js +0 -1
- package/es/cc/table-list/data-types/Row.js +0 -1
- package/es/cc/table-list/data-types/RowSelection.js +0 -1
- package/es/cc/table-list/data-types/SelectionConfig.js +0 -1
- package/es/cc/table-list/data-types/fields/AvatarField.js +0 -1
- package/es/cc/table-list/data-types/fields/CheckboxField.js +0 -1
- package/es/cc/table-list/data-types/fields/EmailField.js +0 -1
- package/es/cc/table-list/data-types/fields/HighlightedValueField.js +0 -1
- package/es/cc/table-list/data-types/fields/LinkField.js +0 -1
- package/es/cc/table-list/data-types/fields/SwitchField.js +0 -1
- package/es/cc/table-list/data-types/fields/TagsField.js +0 -1
- package/es/cc/table-list/data-types/fields/TextField.js +0 -1
- package/es/cc/table-list/data-types/fields/index.js +0 -8
- package/es/cc/table-list/model/HeaderModel.js +0 -16
- package/es/cc/table-list/model/RowModel.js +0 -14
- package/es/cc/table-list/model/TableModel.js +0 -20
- package/es/cc/table-list/model/index.js +0 -12
- package/es/cc/table-list/row/Constants.js +0 -11
- package/es/cc/table-list/row/Properties.js +0 -101
- package/es/cc/tags/ActionHandlers.js +0 -1
- package/es/cc/tags/Actions.js +0 -4
- package/es/cc/tags/Constants.js +0 -7
- package/es/cc/tags/Data.js +0 -7
- package/es/cc/tags/Properties.js +0 -66
- package/es/cc/tags/model/TagModel.js +0 -26
- package/es/cc/tags/model/TagsDataModel.js +0 -12
- package/es/cc/tags/model/index.js +0 -9
- package/es/cc/text/ActionHandlers.js +0 -1
- package/es/cc/text/Actions.js +0 -4
- package/es/cc/text/Constants.js +0 -7
- package/es/cc/text/Data.js +0 -9
- package/es/cc/text/Model.js +0 -14
- package/es/cc/text/Properties.js +0 -27
- package/es/desk-frameworks/index.js +0 -1
- package/es/desk-frameworks/table-connected/frameworks/EventHandlersFactory.js +0 -34
- package/es/desk-frameworks/table-connected/frameworks/ListSdkFactory.js +0 -56
- package/es/desk-frameworks/table-connected/frameworks/TableConnected.js +0 -5
- package/es/desk-frameworks/table-connected/frameworks/TableConnectedFactory.js +0 -33
- package/es/desk-frameworks/table-connected/frameworks/TableConnectedView.js +0 -35
- package/es/index.js +0 -10
- package/es/library/behaviours/list-selection/adapters/controllers/AbstractController.js +0 -9
- package/es/library/behaviours/list-selection/adapters/controllers/AllSelectionController.js +0 -18
- package/es/library/behaviours/list-selection/adapters/controllers/DestructController.js +0 -18
- package/es/library/behaviours/list-selection/adapters/controllers/InitializeController.js +0 -18
- package/es/library/behaviours/list-selection/adapters/controllers/RangeSelectionController.js +0 -24
- package/es/library/behaviours/list-selection/adapters/controllers/SelectionController.js +0 -24
- package/es/library/behaviours/list-selection/adapters/controllers/UpdateController.js +0 -23
- package/es/library/behaviours/list-selection/adapters/gateways/Repository.js +0 -37
- package/es/library/behaviours/list-selection/adapters/gateways/Service.js +0 -30
- package/es/library/behaviours/list-selection/adapters/presenters/Presenter.js +0 -25
- package/es/library/behaviours/list-selection/entities/ListItemSelection.js +0 -93
- package/es/library/behaviours/list-selection/entities/interfaces/IListItemSelection.js +0 -1
- package/es/library/behaviours/list-selection/entities/interfaces/ListSelectionModel.js +0 -1
- package/es/library/behaviours/list-selection/frameworks/ActionHandlerFactory.js +0 -40
- package/es/library/behaviours/list-selection/frameworks/ListItemSelectionBehaviourFactory.js +0 -23
- package/es/library/behaviours/list-selection/usecases/interactors/AbstractUseCase.js +0 -17
- package/es/library/behaviours/list-selection/usecases/interactors/AllItemSelection.js +0 -16
- package/es/library/behaviours/list-selection/usecases/interactors/Destruct.js +0 -8
- package/es/library/behaviours/list-selection/usecases/interactors/Initialize.js +0 -15
- package/es/library/behaviours/list-selection/usecases/interactors/ItemsSelection.js +0 -19
- package/es/library/behaviours/list-selection/usecases/interactors/RangeSelection.js +0 -19
- package/es/library/behaviours/list-selection/usecases/interfaces/UseCase.js +0 -1
- package/es/library/behaviours/list-selection/usecases/interfaces/UseCaseDependencies.js +0 -1
- package/es/library/behaviours/list-selection/usecases/interfaces/gateways/IRepository.js +0 -1
- package/es/library/behaviours/list-selection/usecases/interfaces/gateways/IService.js +0 -1
- package/es/library/behaviours/list-selection/usecases/interfaces/input/AllSelectionInputModel.js +0 -1
- package/es/library/behaviours/list-selection/usecases/interfaces/input/DestructInputModel.js +0 -1
- package/es/library/behaviours/list-selection/usecases/interfaces/input/InitializeInputModel.js +0 -1
- package/es/library/behaviours/list-selection/usecases/interfaces/input/RangeSelectionInputModel.js +0 -1
- package/es/library/behaviours/list-selection/usecases/interfaces/input/SelectionInputModel.js +0 -1
- package/es/library/behaviours/list-selection/usecases/interfaces/output/BehaviourStateModel.js +0 -1
- package/es/library/behaviours/list-selection/usecases/interfaces/output/IPresenter.js +0 -1
- package/es/library/behaviours/sort-by/adapters/controllers/AbstractController.js +0 -9
- package/es/library/behaviours/sort-by/adapters/controllers/SortBy.js +0 -28
- package/es/library/behaviours/sort-by/adapters/gateway/Repository.js +0 -25
- package/es/library/behaviours/sort-by/adapters/gateway/Service.js +0 -14
- package/es/library/behaviours/sort-by/adapters/presenter/Presenter.js +0 -24
- package/es/library/behaviours/sort-by/entities/SortBy.js +0 -42
- package/es/library/behaviours/sort-by/entities/interfaces/ISortBy.js +0 -1
- package/es/library/behaviours/sort-by/frameworks/ui/ActionsHandlerFactory.js +0 -23
- package/es/library/behaviours/sort-by/frameworks/ui/DemoBehaviour.js +0 -20
- package/es/library/behaviours/sort-by/frameworks/ui/SortByBehaviourFactory.js +0 -24
- package/es/library/behaviours/sort-by/usecases/interactors/AbstractUseCase.js +0 -17
- package/es/library/behaviours/sort-by/usecases/interactors/SortBy.js +0 -28
- package/es/library/behaviours/sort-by/usecases/interfaces/UseCaseDependencies.js +0 -1
- package/es/library/behaviours/sort-by/usecases/interfaces/gateways/IRepository.js +0 -1
- package/es/library/behaviours/sort-by/usecases/interfaces/gateways/IService.js +0 -1
- package/es/library/behaviours/sort-by/usecases/interfaces/input/SortByInputModel.js +0 -1
- package/es/library/behaviours/sort-by/usecases/interfaces/output/IPresenter.js +0 -1
- package/es/library/behaviours/sort-by/usecases/interfaces/output/SortByOutputModel.js +0 -1
- package/es/library/behaviours/text-to-field-click/adapters/controllers/ClickController.js +0 -23
- package/es/library/behaviours/text-to-field-click/adapters/gateway/Repository.js +0 -20
- package/es/library/behaviours/text-to-field-click/entities/FieldEventConverter.js +0 -19
- package/es/library/behaviours/text-to-field-click/entities/interfaces/IFieldEventConverter.js +0 -1
- package/es/library/behaviours/text-to-field-click/frameworks/ui/EventHandlersFactory.js +0 -17
- package/es/library/behaviours/text-to-field-click/frameworks/ui/TextToFieldClickBehaviourFactory.js +0 -15
- package/es/library/behaviours/text-to-field-click/usecases/interactors/AbstractUseCase.js +0 -15
- package/es/library/behaviours/text-to-field-click/usecases/interactors/ClickUseCase.js +0 -17
- package/es/library/behaviours/text-to-field-click/usecases/interfaces/UseCaseDependencies.js +0 -1
- package/es/library/behaviours/text-to-field-click/usecases/interfaces/gateways/IRepository.js +0 -1
- package/es/library/behaviours/text-to-field-click/usecases/interfaces/input/ClickUseCaseInputModel.js +0 -1
- package/es/library/custom-component/adapters/controllers/Controller.js +0 -50
- package/es/library/custom-component/adapters/controllers/interface/IController.js +0 -1
- package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +0 -89
- package/es/library/custom-component/adapters/gateways/repository/Repository.js +0 -22
- package/es/library/custom-component/adapters/gateways/service/Service.js +0 -34
- package/es/library/custom-component/adapters/presenters/Presenter.js +0 -26
- package/es/library/custom-component/entities/Behaviour.js +0 -54
- package/es/library/custom-component/entities/Component.js +0 -218
- package/es/library/custom-component/entities/DefaultAppendToActionPayload.js +0 -10
- package/es/library/custom-component/entities/EventHandler.js +0 -17
- package/es/library/custom-component/entities/EventHandlers.js +0 -12
- package/es/library/custom-component/entities/Events.js +0 -23
- package/es/library/custom-component/entities/LifeCycleAction.js +0 -38
- package/es/library/custom-component/entities/Payload.js +0 -21
- package/es/library/custom-component/entities/Properties.js +0 -152
- package/es/library/custom-component/entities/Property.js +0 -63
- package/es/library/custom-component/entities/Schema.js +0 -14
- package/es/library/custom-component/entities/State.js +0 -22
- package/es/library/custom-component/entities/Style.js +0 -36
- 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/custom-component/entities/interfaces/IBehaviour.js +0 -1
- package/es/library/custom-component/entities/interfaces/IComponent.js +0 -1
- package/es/library/custom-component/entities/interfaces/IEvent.js +0 -1
- package/es/library/custom-component/entities/interfaces/IEventHandler.js +0 -1
- package/es/library/custom-component/entities/interfaces/IEventHandlerHelpers.js +0 -1
- package/es/library/custom-component/entities/interfaces/IEventHandlers.js +0 -1
- package/es/library/custom-component/entities/interfaces/IEventWrapper.js +0 -1
- package/es/library/custom-component/entities/interfaces/ILifeCycleAction.js +0 -1
- package/es/library/custom-component/entities/interfaces/IPayload.js +0 -1
- package/es/library/custom-component/entities/interfaces/IProperties.js +0 -1
- package/es/library/custom-component/entities/interfaces/IProperty.js +0 -1
- package/es/library/custom-component/entities/interfaces/ISchema.js +0 -1
- package/es/library/custom-component/entities/interfaces/IState.js +0 -1
- package/es/library/custom-component/entities/interfaces/IStyle.js +0 -1
- package/es/library/custom-component/entities/interfaces/IUpdateHelper.js +0 -0
- package/es/library/custom-component/entities/interfaces/IValidator.js +0 -1
- package/es/library/custom-component/frameworks/json-schema-validator/Validator.js +0 -15
- package/es/library/custom-component/frameworks/object-path-immutable/ImmutableHelper.js +0 -5
- package/es/library/custom-component/frameworks/ui/Compare.js +0 -47
- package/es/library/custom-component/frameworks/ui/ComponentRegistry.js +0 -28
- package/es/library/custom-component/frameworks/ui/CreateCustomComponent.js +0 -110
- package/es/library/custom-component/frameworks/ui/CustomComponentFactory.js +0 -56
- package/es/library/custom-component/frameworks/ui/DependencyFactory.js +0 -34
- package/es/library/custom-component/usecases/entities-factory/BehavioursFactory.js +0 -42
- package/es/library/custom-component/usecases/entities-factory/ComponentFactory.js +0 -47
- package/es/library/custom-component/usecases/entities-factory/EventHandlersFactory.js +0 -8
- package/es/library/custom-component/usecases/entities-factory/PropertiesFactory.js +0 -15
- package/es/library/custom-component/usecases/interactors/AbstractUseCase.js +0 -8
- package/es/library/custom-component/usecases/interactors/DispatchUseCase.js +0 -22
- package/es/library/custom-component/usecases/interactors/InitializeUseCase.js +0 -26
- package/es/library/custom-component/usecases/interactors/MountUseCase.js +0 -24
- package/es/library/custom-component/usecases/interactors/UnmountUseCase.js +0 -25
- package/es/library/custom-component/usecases/interactors/UpdatePropertyUseCase.js +0 -29
- package/es/library/custom-component/usecases/interactors/UpdateStateUseCase.js +0 -17
- package/es/library/custom-component/usecases/interfaces/InputDependencies.js +0 -1
- package/es/library/custom-component/usecases/interfaces/OutputDependencies.js +0 -1
- package/es/library/custom-component/usecases/interfaces/UseCase.js +0 -1
- package/es/library/custom-component/usecases/interfaces/gateways/IEventManager.js +0 -1
- package/es/library/custom-component/usecases/interfaces/gateways/IJSONValidator.js +0 -1
- package/es/library/custom-component/usecases/interfaces/gateways/IRepository.js +0 -1
- package/es/library/custom-component/usecases/interfaces/gateways/IService.js +0 -1
- package/es/library/custom-component/usecases/interfaces/input/DispatchInputModel.js +0 -1
- package/es/library/custom-component/usecases/interfaces/input/InitailizeInputModel.js +0 -1
- package/es/library/custom-component/usecases/interfaces/input/UpdatePropertiesInputModel.js +0 -1
- package/es/library/custom-component/usecases/interfaces/input/UpdateStateInputModel.js +0 -1
- package/es/library/custom-component/usecases/interfaces/output/OutputBoundary.js +0 -1
- package/es/library/dot/components/action-location/adapters/controllers/MountController.js +0 -18
- package/es/library/dot/components/action-location/adapters/controllers/PropertiesChangeController.js +0 -26
- package/es/library/dot/components/action-location/adapters/controllers/UnmountController.js +0 -18
- package/es/library/dot/components/action-location/adapters/gateway/Repository.js +0 -32
- package/es/library/dot/components/action-location/adapters/presenters/Presenter.js +0 -22
- package/es/library/dot/components/action-location/entities/ActionLocationEntity.js +0 -98
- package/es/library/dot/components/action-location/entities/interfaces/ActionViewModel.js +0 -0
- package/es/library/dot/components/action-location/entities/interfaces/EventMappingViewModel.js +0 -0
- package/es/library/dot/components/action-location/entities/interfaces/IActionLocation.js +0 -1
- package/es/library/dot/components/action-location/frameworks/ui/ActionLocation.js +0 -13
- package/es/library/dot/components/action-location/frameworks/ui/ActionLocationView.js +0 -38
- package/es/library/dot/components/action-location/frameworks/ui/EventHandlersFactory.js +0 -31
- package/es/library/dot/components/action-location/usecases/interactors/AbstractUseCase.js +0 -15
- package/es/library/dot/components/action-location/usecases/interactors/DestroyUseCase.js +0 -13
- package/es/library/dot/components/action-location/usecases/interactors/InitializeUseCase.js +0 -13
- package/es/library/dot/components/action-location/usecases/interactors/PropertiesChangeUseCase.js +0 -17
- package/es/library/dot/components/action-location/usecases/interfaces/UseCaseDependencies.js +0 -1
- package/es/library/dot/components/action-location/usecases/interfaces/gateways/IRepository.js +0 -0
- package/es/library/dot/components/action-location/usecases/interfaces/input/PropertiesChangeUseCaseInputModel.js +0 -1
- package/es/library/dot/components/action-location/usecases/interfaces/output/IPresenter.js +0 -0
- package/es/library/dot/components/table-list/adapters/controllers/AbstractController.js +0 -8
- package/es/library/dot/components/table-list/adapters/controllers/FieldChangeController.js +0 -33
- package/es/library/dot/components/table-list/adapters/controllers/FieldClickController.js +0 -31
- package/es/library/dot/components/table-list/adapters/controllers/RowClickController.js +0 -23
- package/es/library/dot/components/table-list/adapters/controllers/ScrollController.js +0 -32
- package/es/library/dot/components/table-list/adapters/controllers/SelectAllController.js +0 -16
- package/es/library/dot/components/table-list/adapters/controllers/SelectItemController.js +0 -34
- package/es/library/dot/components/table-list/adapters/controllers/SortByController.js +0 -25
- package/es/library/dot/components/table-list/adapters/controllers/SortedController.js +0 -18
- package/es/library/dot/components/table-list/adapters/controllers/index.js +0 -7
- package/es/library/dot/components/table-list/adapters/presenters/TableTranslator.js +0 -52
- package/es/library/dot/components/table-list/frameworks/ui/EventHandlersFactory.js +0 -23
- package/es/library/dot/components/table-list/frameworks/ui/TableList.js +0 -30
- package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +0 -133
- package/es/library/dot/components/table-list/frameworks/ui/handlers/HandleAllSelect.js +0 -6
- package/es/library/dot/components/table-list/frameworks/ui/handlers/HandleRowSelect.js +0 -12
- package/es/library/dot/components/table-list/frameworks/ui/handlers/HandleScroll.js +0 -12
- package/es/library/dot/components/table-list/frameworks/ui/handlers/HandleSortClick.js +0 -12
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Body.js +0 -17
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/ColumnResizingLine.js +0 -20
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +0 -64
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Loading.js +0 -22
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/NoData.js +0 -26
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.js +0 -55
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/field/FieldComponent.js +0 -23
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/ActionColumn.js +0 -15
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/ColumnResizer.js +0 -16
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +0 -49
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderText.js +0 -34
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/Headers.js +0 -36
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/ResizerExtraSpace.js +0 -21
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/SelectAll.js +0 -25
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Columns.js +0 -29
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +0 -113
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +0 -19
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +0 -25
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowEventHandlersFactory.js +0 -16
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowSelection.js +0 -34
- 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/library/dot/legacy-to-new-arch/avatar/frameworks/ui/Avatar.js +0 -11
- package/es/library/dot/legacy-to-new-arch/avatar/frameworks/ui/AvatarView.js +0 -61
- package/es/library/dot/legacy-to-new-arch/checkbox/frameworks/ui/Checkbox.js +0 -11
- package/es/library/dot/legacy-to-new-arch/checkbox/frameworks/ui/CheckboxView.js +0 -36
- package/es/library/dot/legacy-to-new-arch/common-empty-state/CommonEmptyState.js +0 -11
- package/es/library/dot/legacy-to-new-arch/common-empty-state/CommonEmptyStateView.js +0 -13
- package/es/library/dot/legacy-to-new-arch/email/frameworks/ui/Email.js +0 -11
- package/es/library/dot/legacy-to-new-arch/email/frameworks/ui/EmailView.js +0 -30
- package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValue.js +0 -11
- package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValueView.js +0 -33
- package/es/library/dot/legacy-to-new-arch/index.js +0 -9
- package/es/library/dot/legacy-to-new-arch/link/frameworks/ui/Link.js +0 -11
- package/es/library/dot/legacy-to-new-arch/link/frameworks/ui/LinkView.js +0 -37
- package/es/library/dot/legacy-to-new-arch/switch/frameworks/ui/Switch.js +0 -11
- package/es/library/dot/legacy-to-new-arch/switch/frameworks/ui/SwitchView.js +0 -41
- package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/CheckboxField.js +0 -13
- package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/CheckboxFieldView.js +0 -18
- package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/EventHandlersFactory.js +0 -29
- package/es/library/dot/legacy-to-new-arch/table-field-components/currency-field/frameworks/ui/CurrencyField.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/currency-field/frameworks/ui/CurrencyFieldView.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/date-field/frameworks/ui/DateField.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/date-field/frameworks/ui/DateFieldView.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/datetime-field/frameworks/ui/DateTimeField.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/datetime-field/frameworks/ui/DateTimeFieldView.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/decimal-field/frameworks/ui/DecimalField.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/decimal-field/frameworks/ui/DecimalFieldView.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/email-field/frameworks/ui/EmailField.js +0 -12
- package/es/library/dot/legacy-to-new-arch/table-field-components/email-field/frameworks/ui/EmailFieldView.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/index.js +0 -34
- package/es/library/dot/legacy-to-new-arch/table-field-components/lookup-field/frameworks/ui/LookupField.js +0 -12
- package/es/library/dot/legacy-to-new-arch/table-field-components/lookup-field/frameworks/ui/LookupFieldView.js +0 -18
- package/es/library/dot/legacy-to-new-arch/table-field-components/multiselect-field/frameworks/ui/MultiSelectField.js +0 -12
- package/es/library/dot/legacy-to-new-arch/table-field-components/multiselect-field/frameworks/ui/MultiSelectFieldView.js +0 -18
- package/es/library/dot/legacy-to-new-arch/table-field-components/number-field/frameworks/ui/NumberField.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/number-field/frameworks/ui/NumberFieldView.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/percentage-field/frameworks/ui/PercentageField.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/percentage-field/frameworks/ui/PercentageFieldView.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/phone-field/frameworks/ui/PhoneField.js +0 -12
- package/es/library/dot/legacy-to-new-arch/table-field-components/phone-field/frameworks/ui/PhoneFieldView.js +0 -21
- package/es/library/dot/legacy-to-new-arch/table-field-components/picklist-field/frameworks/ui/PickListField.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/picklist-field/frameworks/ui/PickListFieldView.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/singleline-field/frameworks/ui/SingleLineField.js +0 -14
- package/es/library/dot/legacy-to-new-arch/table-field-components/singleline-field/frameworks/ui/SingleLineFieldView.js +0 -15
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/EventHandlersFactory.js +0 -29
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/SwitchField.js +0 -13
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/SwitchFieldView.js +0 -17
- package/es/library/dot/legacy-to-new-arch/table-field-components/url-field/frameworks/ui/EventHandlersFactory.js +0 -26
- package/es/library/dot/legacy-to-new-arch/table-field-components/url-field/frameworks/ui/UrlField.js +0 -13
- package/es/library/dot/legacy-to-new-arch/table-field-components/url-field/frameworks/ui/UrlFieldView.js +0 -17
- package/es/library/dot/legacy-to-new-arch/tags/frameworks/ui/TagContractAdapter.js +0 -26
- package/es/library/dot/legacy-to-new-arch/tags/frameworks/ui/Tags.js +0 -11
- package/es/library/dot/legacy-to-new-arch/tags/frameworks/ui/TagsView.js +0 -35
- package/es/library/dot/legacy-to-new-arch/text/frameworks/ui/Text.js +0 -11
- package/es/library/dot/legacy-to-new-arch/text/frameworks/ui/TextView.js +0 -36
- package/es/library/index.js +0 -3
- package/es/platform/data-broker/dbc/index.js +0 -1
- package/es/platform/data-broker/http-template/deleteRecord.js +0 -27
- package/es/platform/data-broker/http-template/deleteRecords.js +0 -28
- package/es/platform/data-broker/http-template/getAvailableFields.js +0 -29
- package/es/platform/data-broker/http-template/getRecords.js +0 -49
- package/es/platform/data-broker/http-template/getSelectedFields.js +0 -29
- package/es/platform/data-broker/http-template/getUIActions.js +0 -22
- package/es/platform/data-broker/http-template/updateRecord.js +0 -35
- package/es/platform/data-broker/index.js +0 -22
- package/es/platform/data-broker/utils/transformer/CreateCf.js +0 -13
- package/es/platform/data-broker/utils/transformer/Transformer.js +0 -28
- package/es/platform/zdata-broker/adapters/controllers/AbstractController.js +0 -8
- package/es/platform/zdata-broker/adapters/controllers/ActionExecutorController.js +0 -31
- package/es/platform/zdata-broker/adapters/controllers/FailureController.js +0 -35
- package/es/platform/zdata-broker/adapters/controllers/NoContentController.js +0 -30
- package/es/platform/zdata-broker/adapters/controllers/RegisterController.js +0 -26
- package/es/platform/zdata-broker/adapters/controllers/SuccessController.js +0 -35
- package/es/platform/zdata-broker/adapters/gateways/Repository.js +0 -24
- package/es/platform/zdata-broker/adapters/gateways/Service.js +0 -27
- package/es/platform/zdata-broker/adapters/gateways/TemplateHelpers.js +0 -30
- package/es/platform/zdata-broker/adapters/presenters/Presenter.js +0 -35
- package/es/platform/zdata-broker/entities/APITemplate.js +0 -93
- package/es/platform/zdata-broker/entities/APITemplates.js +0 -24
- package/es/platform/zdata-broker/entities/DataBroker.js +0 -116
- package/es/platform/zdata-broker/entities/interfaces/APIDetailsModel.js +0 -1
- package/es/platform/zdata-broker/entities/interfaces/APITemplateModel.js +0 -1
- package/es/platform/zdata-broker/entities/interfaces/APITemplatesModel.js +0 -1
- package/es/platform/zdata-broker/entities/interfaces/ApiEnum.js +0 -10
- package/es/platform/zdata-broker/entities/interfaces/BehaviourState.js +0 -1
- package/es/platform/zdata-broker/entities/interfaces/EventModel.js +0 -1
- package/es/platform/zdata-broker/entities/interfaces/IAPITemplate.js +0 -1
- package/es/platform/zdata-broker/entities/interfaces/IAPITemplates.js +0 -1
- package/es/platform/zdata-broker/entities/interfaces/IDataBroker.js +0 -0
- package/es/platform/zdata-broker/entities/interfaces/ITemplateHelpers.js +0 -1
- package/es/platform/zdata-broker/entities/interfaces/MetaData.js +0 -1
- package/es/platform/zdata-broker/frameworks/DataBrokerBehaviourFactory.js +0 -12
- package/es/platform/zdata-broker/frameworks/EventHandlersFactory.js +0 -42
- package/es/platform/zdata-broker/usecases/entities-factory/APITemplatesFactory.js +0 -14
- package/es/platform/zdata-broker/usecases/entities-factory/DataBrokerFactory.js +0 -10
- package/es/platform/zdata-broker/usecases/interactors/AbstractUseCase.js +0 -17
- package/es/platform/zdata-broker/usecases/interactors/ExecuteActionUseCase.js +0 -22
- package/es/platform/zdata-broker/usecases/interactors/FailureUseCase.js +0 -26
- package/es/platform/zdata-broker/usecases/interactors/NoContentUseCase.js +0 -25
- package/es/platform/zdata-broker/usecases/interactors/RegisterUseCase.js +0 -13
- package/es/platform/zdata-broker/usecases/interactors/SuccessUseCase.js +0 -31
- package/es/platform/zdata-broker/usecases/interfaces/InputDependencies.js +0 -1
- package/es/platform/zdata-broker/usecases/interfaces/gateways/IRepository.js +0 -1
- package/es/platform/zdata-broker/usecases/interfaces/gateways/IService.js +0 -0
- package/es/platform/zdata-broker/usecases/interfaces/gateways/ITemplateHelpers.js +0 -1
- package/es/platform/zdata-broker/usecases/interfaces/gateways/State.js +0 -1
- package/es/platform/zdata-broker/usecases/interfaces/input/ExecuteActionInputModel.js +0 -1
- package/es/platform/zdata-broker/usecases/interfaces/input/FailureInputModel.js +0 -1
- package/es/platform/zdata-broker/usecases/interfaces/input/NoContentInputModel.js +0 -1
- package/es/platform/zdata-broker/usecases/interfaces/input/RegisterInputModel.js +0 -1
- package/es/platform/zdata-broker/usecases/interfaces/input/SuccessInputModel.js +0 -1
- package/es/platform/zdata-broker/usecases/interfaces/output/IPresenter.js +0 -1
- package/es/platform/zfield/adapters/controllers/AbstractController.js +0 -10
- package/es/platform/zfield/adapters/controllers/ExeucteActionController.js +0 -30
- package/es/platform/zfield/adapters/controllers/FetchFailureController.js +0 -32
- package/es/platform/zfield/adapters/controllers/FetchNoContentController.js +0 -27
- package/es/platform/zfield/adapters/controllers/FetchSuccessController.js +0 -32
- package/es/platform/zfield/adapters/controllers/InitializeController.js +0 -28
- package/es/platform/zfield/adapters/controllers/RefetchController.js +0 -32
- package/es/platform/zfield/adapters/gateways/Repository.js +0 -29
- package/es/platform/zfield/adapters/gateways/Service.js +0 -34
- package/es/platform/zfield/adapters/presenters/Presenter.js +0 -25
- package/es/platform/zfield/entities/BooleanField.js +0 -5
- package/es/platform/zfield/entities/CurrencyField.js +0 -5
- package/es/platform/zfield/entities/DateField.js +0 -5
- package/es/platform/zfield/entities/DateTimeField.js +0 -5
- package/es/platform/zfield/entities/EmailField.js +0 -5
- package/es/platform/zfield/entities/Field.js +0 -44
- package/es/platform/zfield/entities/LookupField.js +0 -5
- package/es/platform/zfield/entities/MultiLineField.js +0 -5
- package/es/platform/zfield/entities/MultiSelectField.js +0 -5
- package/es/platform/zfield/entities/PercentageField.js +0 -5
- package/es/platform/zfield/entities/PhoneField.js +0 -5
- package/es/platform/zfield/entities/PickListField.js +0 -5
- package/es/platform/zfield/entities/SingleLineField.js +0 -5
- package/es/platform/zfield/entities/URLField.js +0 -5
- package/es/platform/zfield/entities/fields-manager/AvailableFieldsManager.js +0 -105
- package/es/platform/zfield/entities/fields-manager/FieldsManager.js +0 -102
- package/es/platform/zfield/entities/fields-manager/SelectedFieldsManager.js +0 -105
- package/es/platform/zfield/entities/index.js +0 -14
- package/es/platform/zfield/entities/interfaces/ActionModel.js +0 -1
- package/es/platform/zfield/entities/interfaces/BehaviourState.js +0 -1
- package/es/platform/zfield/entities/interfaces/FieldApiName.js +0 -7
- package/es/platform/zfield/entities/interfaces/FieldModel.js +0 -1
- package/es/platform/zfield/entities/interfaces/IField.js +0 -1
- package/es/platform/zfield/entities/interfaces/IFieldManger.js +0 -1
- package/es/platform/zfield/entities/interfaces/MetaData.js +0 -1
- package/es/platform/zfield/frameworks/ActionHandlerFactory.js +0 -43
- package/es/platform/zfield/frameworks/ZFieldBehaviourFactory.js +0 -15
- package/es/platform/zfield/usecases/entities-factory/FieldBuilder.js +0 -109
- package/es/platform/zfield/usecases/entities-factory/FieldFactory.js +0 -10
- package/es/platform/zfield/usecases/entities-factory/FieldsManagerBuilder.js +0 -42
- package/es/platform/zfield/usecases/interactors/AbstractUseCase.js +0 -18
- package/es/platform/zfield/usecases/interactors/ExecuteActionUseCase.js +0 -20
- package/es/platform/zfield/usecases/interactors/FetchFailureUseCase.js +0 -30
- package/es/platform/zfield/usecases/interactors/FetchNoContentUseCase.js +0 -29
- package/es/platform/zfield/usecases/interactors/FetchSuccessUseCase.js +0 -31
- package/es/platform/zfield/usecases/interactors/InitializeUseCase.js +0 -20
- package/es/platform/zfield/usecases/interactors/RefetchUseCase.js +0 -20
- package/es/platform/zfield/usecases/interfaces/UsecaseDependencies.js +0 -1
- package/es/platform/zfield/usecases/interfaces/gateways/IRepository.js +0 -1
- package/es/platform/zfield/usecases/interfaces/gateways/IRestApi.js +0 -1
- package/es/platform/zfield/usecases/interfaces/gateways/IService.js +0 -1
- package/es/platform/zfield/usecases/interfaces/gateways/ITemplateHelpers.js +0 -1
- package/es/platform/zfield/usecases/interfaces/input/ExecuteActionInputModel.js +0 -1
- package/es/platform/zfield/usecases/interfaces/input/FetchInputModel.js +0 -2
- package/es/platform/zfield/usecases/interfaces/input/InitialInputModel.js +0 -1
- package/es/platform/zfield/usecases/interfaces/input/InputModel.js +0 -1
- package/es/platform/zfield/usecases/interfaces/input/RefetchInputModel.js +0 -1
- package/es/platform/zfield/usecases/interfaces/input/SetValueInputModel.js +0 -1
- package/es/platform/zfield/usecases/interfaces/output/IPresenter.js +0 -1
- package/es/platform/zhttp/adapters/controllers/FetchController.js +0 -39
- package/es/platform/zhttp/adapters/gateway/FetchGateWay.js +0 -13
- package/es/platform/zhttp/frameworks/ActionsHandlerFactory.js +0 -20
- package/es/platform/zhttp/frameworks/ZHttpBehaviourFactory.js +0 -13
- package/es/platform/zhttp/usecases/interactors/AbstractUseCase.js +0 -8
- package/es/platform/zhttp/usecases/interactors/FetchUseCase.js +0 -107
- package/es/platform/zhttp/usecases/interfaces/InputDependencies.js +0 -1
- package/es/platform/zhttp/usecases/interfaces/UseCase.js +0 -1
- package/es/platform/zhttp/usecases/interfaces/gateway/IFetchGateWay.js +0 -1
- package/es/platform/zhttp/usecases/interfaces/input/FetchInputModel.js +0 -1
- package/es/platform/zlist/adapters/controllers/AbstractController.js +0 -10
- package/es/platform/zlist/adapters/controllers/DeleteMultipleRecordController.js +0 -23
- package/es/platform/zlist/adapters/controllers/DeleteSingleRecordController.js +0 -23
- package/es/platform/zlist/adapters/controllers/FetchMoreController.js +0 -18
- package/es/platform/zlist/adapters/controllers/FieldChangeController.js +0 -27
- package/es/platform/zlist/adapters/controllers/MountController.js +0 -21
- package/es/platform/zlist/adapters/controllers/PropertiesChangeController.js +0 -28
- package/es/platform/zlist/adapters/controllers/RecordExecuteFailedController.js +0 -25
- package/es/platform/zlist/adapters/controllers/RecordExecuteSucceededController.js +0 -25
- package/es/platform/zlist/adapters/controllers/RecordUpdateController.js +0 -25
- package/es/platform/zlist/adapters/controllers/SortController.js +0 -26
- package/es/platform/zlist/adapters/gateways/Repository.js +0 -36
- package/es/platform/zlist/adapters/gateways/Service.js +0 -52
- package/es/platform/zlist/adapters/gateways/SortBy.js +0 -38
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +0 -53
- package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +0 -34
- package/es/platform/zlist/adapters/presenters/translators/EmptyViewModel.js +0 -10
- package/es/platform/zlist/adapters/presenters/translators/Header.js +0 -21
- package/es/platform/zlist/adapters/presenters/translators/HeadersTranslator.js +0 -29
- package/es/platform/zlist/adapters/presenters/translators/Row.js +0 -16
- package/es/platform/zlist/adapters/presenters/translators/RowActionTranslator.js +0 -25
- package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +0 -39
- package/es/platform/zlist/adapters/presenters/translators/fields/BooleanFieldTranslator.js +0 -24
- package/es/platform/zlist/adapters/presenters/translators/fields/CurrencyFieldTranslator.js +0 -17
- package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.js +0 -17
- package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.js +0 -17
- package/es/platform/zlist/adapters/presenters/translators/fields/DecimalFieldTranslator.js +0 -17
- package/es/platform/zlist/adapters/presenters/translators/fields/EmailFieldTranslator.js +0 -17
- package/es/platform/zlist/adapters/presenters/translators/fields/LookUpFieldTranslator.js +0 -28
- package/es/platform/zlist/adapters/presenters/translators/fields/MultiLineFieldTranslator.js +0 -17
- package/es/platform/zlist/adapters/presenters/translators/fields/MultiSelectFieldTranslator.js +0 -24
- package/es/platform/zlist/adapters/presenters/translators/fields/NumberFieldTranslator.js +0 -17
- package/es/platform/zlist/adapters/presenters/translators/fields/PercentageFieldTranslator.js +0 -17
- package/es/platform/zlist/adapters/presenters/translators/fields/PhoneFieldTranslator.js +0 -17
- package/es/platform/zlist/adapters/presenters/translators/fields/PickListFieldTranslator.js +0 -17
- package/es/platform/zlist/adapters/presenters/translators/fields/SingleLineFieldTranslator.js +0 -17
- package/es/platform/zlist/adapters/presenters/translators/fields/URLFieldTranslator.js +0 -17
- package/es/platform/zlist/adapters/presenters/translators/fields/index.js +0 -24
- package/es/platform/zlist/adapters/presenters/translators/interfaces/FieldModel.js +0 -1
- package/es/platform/zlist/adapters/presenters/translators/interfaces/FieldTranslator.js +0 -1
- package/es/platform/zlist/adapters/presenters/translators/interfaces/FieldUiMapping.js +0 -1
- package/es/platform/zlist/adapters/presenters/translators/interfaces/PageContext.js +0 -1
- package/es/platform/zlist/adapters/presenters/translators/interfaces/RowActionModel.js +0 -0
- package/es/platform/zlist/adapters/presenters/translators/interfaces/SelectedField.js +0 -1
- package/es/platform/zlist/adapters/presenters/translators/interfaces/State.js +0 -1
- package/es/platform/zlist/adapters/presenters/translators/interfaces/ZFieldsBehaviourState.js +0 -1
- package/es/platform/zlist/adapters/presenters/utils/Pipeline.js +0 -28
- package/es/platform/zlist/entities/List.js +0 -299
- package/es/platform/zlist/entities/interfaces/ActionModel.js +0 -1
- package/es/platform/zlist/entities/interfaces/ApiPropsModel.js +0 -1
- package/es/platform/zlist/entities/interfaces/IList.js +0 -1
- package/es/platform/zlist/entities/interfaces/Properties.js +0 -1
- package/es/platform/zlist/entities/interfaces/RecordExecuteAfterMetaData.js +0 -1
- package/es/platform/zlist/frameworks/EventHandlersFactory.js +0 -53
- package/es/platform/zlist/frameworks/ZListBehaviourFactory.js +0 -13
- package/es/platform/zlist/usecases/entities-factory/ListFactory.js +0 -15
- package/es/platform/zlist/usecases/interactors/AbstractUseCase.js +0 -16
- package/es/platform/zlist/usecases/interactors/DeleteMultipleRecordUseCase.js +0 -19
- package/es/platform/zlist/usecases/interactors/DeleteSingleRecordUseCase.js +0 -19
- package/es/platform/zlist/usecases/interactors/FetchMoreUseCase.js +0 -17
- package/es/platform/zlist/usecases/interactors/FieldChangeUseCase.js +0 -25
- package/es/platform/zlist/usecases/interactors/InitializeUseCase.js +0 -20
- package/es/platform/zlist/usecases/interactors/PropertiesChangeUseCase.js +0 -22
- package/es/platform/zlist/usecases/interactors/RecordExecuteFailedUseCase.js +0 -22
- package/es/platform/zlist/usecases/interactors/RecordExecuteSucceededUseCase.js +0 -22
- package/es/platform/zlist/usecases/interactors/RecordUpdateUseCase.js +0 -20
- package/es/platform/zlist/usecases/interactors/SortUseCase.js +0 -20
- package/es/platform/zlist/usecases/interfaces/State.js +0 -1
- package/es/platform/zlist/usecases/interfaces/UseCaseDependencies.js +0 -1
- package/es/platform/zlist/usecases/interfaces/gateways/IRepository.js +0 -1
- package/es/platform/zlist/usecases/interfaces/gateways/IService.js +0 -1
- package/es/platform/zlist/usecases/interfaces/gateways/ISortBy.js +0 -1
- package/es/platform/zlist/usecases/interfaces/gateways/ITransformState.js +0 -0
- package/es/platform/zlist/usecases/interfaces/input/DeleteMultipleRecordUseCaseInput.js +0 -1
- package/es/platform/zlist/usecases/interfaces/input/DeleteSingleRecordUseCaseInput.js +0 -1
- package/es/platform/zlist/usecases/interfaces/input/FetchMoreInput.js +0 -1
- package/es/platform/zlist/usecases/interfaces/input/FieldChangeUseCaseInput.js +0 -1
- package/es/platform/zlist/usecases/interfaces/input/InitializeInput.js +0 -1
- package/es/platform/zlist/usecases/interfaces/input/PropertiesChangeUseCaseInput.js +0 -1
- package/es/platform/zlist/usecases/interfaces/input/RecordExecuteFailedUseCaseInput.js +0 -1
- package/es/platform/zlist/usecases/interfaces/input/RecordExecuteSucceededUseCaseInput.js +0 -1
- package/es/platform/zlist/usecases/interfaces/input/RecordUpdateUseCaseInput.js +0 -1
- package/es/platform/zlist/usecases/interfaces/input/SortingInputModel.js +0 -1
- package/es/platform/zrecord/adapters/controllers/AbstractController.js +0 -8
- package/es/platform/zrecord/adapters/controllers/ActionExecutorController.js +0 -29
- package/es/platform/zrecord/adapters/controllers/AppendRecordsController.js +0 -29
- package/es/platform/zrecord/adapters/controllers/DeleteMultipleRecordLocalController.js +0 -29
- package/es/platform/zrecord/adapters/controllers/FailureController.js +0 -35
- package/es/platform/zrecord/adapters/controllers/FetchMoreController.js +0 -32
- package/es/platform/zrecord/adapters/controllers/FetchStateStopController.js +0 -26
- package/es/platform/zrecord/adapters/controllers/FieldChangeController.js +0 -25
- package/es/platform/zrecord/adapters/controllers/MountController.js +0 -25
- package/es/platform/zrecord/adapters/controllers/NoContentController.js +0 -30
- package/es/platform/zrecord/adapters/controllers/RecordUpdateLocalController.js +0 -23
- package/es/platform/zrecord/adapters/controllers/RefetchController.js +0 -34
- package/es/platform/zrecord/adapters/controllers/SetRecordsController.js +0 -29
- package/es/platform/zrecord/adapters/controllers/SuccessController.js +0 -35
- package/es/platform/zrecord/adapters/gateways/Repository.js +0 -30
- package/es/platform/zrecord/adapters/gateways/Service.js +0 -59
- package/es/platform/zrecord/adapters/presenters/Presenter.js +0 -30
- package/es/platform/zrecord/entities/CustomFieldValues.js +0 -30
- package/es/platform/zrecord/entities/DeleteMultipleRecordStrategy.js +0 -61
- package/es/platform/zrecord/entities/DeleteRecordStrategy.js +0 -63
- package/es/platform/zrecord/entities/GetRecordsStrategy.js +0 -58
- package/es/platform/zrecord/entities/Record.js +0 -58
- package/es/platform/zrecord/entities/Records.js +0 -98
- package/es/platform/zrecord/entities/RecordsManager.js +0 -220
- package/es/platform/zrecord/entities/UpdateRecordStrategy.js +0 -56
- package/es/platform/zrecord/entities/interfaces/ApiEnum.js +0 -10
- package/es/platform/zrecord/entities/interfaces/BehaviourState.js +0 -1
- package/es/platform/zrecord/entities/interfaces/EventModel.js +0 -1
- package/es/platform/zrecord/entities/interfaces/ICustomFieldValues.js +0 -1
- package/es/platform/zrecord/entities/interfaces/IRecord.js +0 -0
- package/es/platform/zrecord/entities/interfaces/IRecordExecuteStrategy.js +0 -0
- package/es/platform/zrecord/entities/interfaces/IRecordName.js +0 -1
- package/es/platform/zrecord/entities/interfaces/IRecords.js +0 -0
- package/es/platform/zrecord/entities/interfaces/IRecordsManager.js +0 -0
- package/es/platform/zrecord/entities/interfaces/RecordModel.js +0 -1
- package/es/platform/zrecord/entities/interfaces/RecordsModel.js +0 -1
- package/es/platform/zrecord/entities/interfaces/StrategyMeta.js +0 -1
- package/es/platform/zrecord/frameworks/ActionsHandlersFactory.js +0 -60
- package/es/platform/zrecord/frameworks/RecordBehaviourFactory.js +0 -12
- package/es/platform/zrecord/usecases/entities-factory/RecordFactory.js +0 -12
- package/es/platform/zrecord/usecases/entities-factory/RecordsManagerFactory.js +0 -10
- package/es/platform/zrecord/usecases/interactors/AbstractUseCase.js +0 -17
- package/es/platform/zrecord/usecases/interactors/AppendRecordsUseCase.js +0 -21
- package/es/platform/zrecord/usecases/interactors/DeleteMultipleRecordUseCase.js +0 -19
- package/es/platform/zrecord/usecases/interactors/ExecuteActionUseCase.js +0 -33
- package/es/platform/zrecord/usecases/interactors/FailureUseCase.js +0 -22
- package/es/platform/zrecord/usecases/interactors/FetchMoreUseCase.js +0 -29
- package/es/platform/zrecord/usecases/interactors/FetchStateStopUseCase.js +0 -25
- package/es/platform/zrecord/usecases/interactors/FieldChangeUseCase.js +0 -25
- package/es/platform/zrecord/usecases/interactors/InitializeUseCase.js +0 -17
- package/es/platform/zrecord/usecases/interactors/NoContentUseCase.js +0 -28
- package/es/platform/zrecord/usecases/interactors/RecordUpdateLocalUseCase.js +0 -22
- package/es/platform/zrecord/usecases/interactors/RefetchUseCase.js +0 -27
- package/es/platform/zrecord/usecases/interactors/SetRecordsUseCase.js +0 -21
- package/es/platform/zrecord/usecases/interactors/SuccessUseCase.js +0 -22
- package/es/platform/zrecord/usecases/interfaces/InputDependencies.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/gateways/IRepository.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/gateways/IService.js +0 -0
- package/es/platform/zrecord/usecases/interfaces/gateways/State.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/input/AppendRecordsInputModel.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/input/DeleteMultipleRecordInputModel.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/input/ExecuteActionInputModel.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/input/FailureInputModel.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/input/FetchMoreInputModel.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/input/FetchStateStopInputModel.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/input/FieldChangeUseCaseInput.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/input/InitializeInputModel.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/input/NoContentInputModel.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/input/RecordUpdateLocalUseCaseInputModel.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/input/RefetchInputModel.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/input/SetRecordsInputModel.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/input/SuccessInputModel.js +0 -1
- package/es/platform/zrecord/usecases/interfaces/output/IPresenter.js +0 -1
- /package/es/cc/action-icon/{index.js → index.ts} +0 -0
- /package/es/cc/checkbox/{index.js → index.ts} +0 -0
- /package/es/cc/email/{index.js → index.ts} +0 -0
- /package/es/cc/highlighted-value/{index.js → index.ts} +0 -0
- /package/es/cc/link/{index.js → index.ts} +0 -0
- /package/es/cc/switch/{index.js → index.ts} +0 -0
- /package/es/cc/table-list/{index.js → index.ts} +0 -0
- /package/es/cc/tags/{index.js → index.ts} +0 -0
- /package/es/cc/text/{index.js → index.ts} +0 -0
- /package/es/{bc/local-storage/ActionHandlers.js → library/custom-component/domain/entities/interfaces/IUpdateHelper.ts} +0 -0
- /package/es/library/custom-component/{index.js → index.ts} +0 -0
- /package/es/{bc/table-column-resizer/ActionHandlers.js → platform/zlist/applications/interfaces/gateways/ITransformState.ts} +0 -0
|
@@ -1,218 +0,0 @@
|
|
|
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
|
-
|
|
3
|
-
import EventHandler from "./EventHandler";
|
|
4
|
-
export default class Component {
|
|
5
|
-
constructor() {
|
|
6
|
-
_defineProperty(this, "_name", void 0);
|
|
7
|
-
|
|
8
|
-
_defineProperty(this, "_events", void 0);
|
|
9
|
-
|
|
10
|
-
_defineProperty(this, "_properties", void 0);
|
|
11
|
-
|
|
12
|
-
_defineProperty(this, "_lifeCycleAction", void 0);
|
|
13
|
-
|
|
14
|
-
_defineProperty(this, "_eventHandlers", void 0);
|
|
15
|
-
|
|
16
|
-
_defineProperty(this, "_tranformer", void 0);
|
|
17
|
-
|
|
18
|
-
_defineProperty(this, "_stateInitializer", void 0);
|
|
19
|
-
|
|
20
|
-
_defineProperty(this, "_state", void 0);
|
|
21
|
-
|
|
22
|
-
_defineProperty(this, "_eventHandlersWrapper", void 0);
|
|
23
|
-
|
|
24
|
-
_defineProperty(this, "_behaviours", void 0);
|
|
25
|
-
|
|
26
|
-
_defineProperty(this, "_behavioursProperties", void 0);
|
|
27
|
-
|
|
28
|
-
this._behavioursProperties = {};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
mergeStateAndProps() {
|
|
32
|
-
return { ...this._state.getState(),
|
|
33
|
-
properties: this._properties.getAllPropertiesValue()
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
getEventHandlers() {
|
|
38
|
-
return this._eventHandlers.getEventHandlers();
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
getMountAction() {
|
|
42
|
-
return this._lifeCycleAction.getMountAction();
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
getUnmountAction() {
|
|
46
|
-
return this._lifeCycleAction.getUnmountAction();
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
getPropertyUpdateAction(payload) {
|
|
50
|
-
return this._lifeCycleAction.getUpdatePropertiesAction(payload);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
getState() {
|
|
54
|
-
let state = this._tranformer(this.mergeStateAndProps());
|
|
55
|
-
|
|
56
|
-
return state;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
setProperties(properties) {
|
|
60
|
-
this._properties = properties;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
setEvents(_events) {
|
|
64
|
-
this._events = _events;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
setLifeCycleAction(lifeCycleAction) {
|
|
68
|
-
this._lifeCycleAction = lifeCycleAction;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
setEventHandlers(eventHandlers) {
|
|
72
|
-
this._eventHandlers = eventHandlers;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
setName(name) {
|
|
76
|
-
this._name = name;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
setTransformer(transformer) {
|
|
80
|
-
this._tranformer = transformer;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
setState(state) {
|
|
84
|
-
this._state = state;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
setStateInitializer(_stateInitializer) {
|
|
88
|
-
this._stateInitializer = typeof _stateInitializer !== 'function' ? input => input : _stateInitializer;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
setBehaviours(behaviours) {
|
|
92
|
-
this._behaviours = behaviours; //store behaviour properties
|
|
93
|
-
|
|
94
|
-
this._behaviours.forEach(behaviour => {
|
|
95
|
-
behaviour.getProperties().data && behaviour.getProperties().data.forEach(obj => {
|
|
96
|
-
this._behavioursProperties[obj.getName()] = obj.clone();
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
updateProperties(jsonValidator, newProps) {
|
|
102
|
-
Object.keys(newProps).forEach(key => {
|
|
103
|
-
if (this._behavioursProperties[key]) {
|
|
104
|
-
let property = this._behavioursProperties[key];
|
|
105
|
-
let optionalSchema = property.getTypeMetadata().schema;
|
|
106
|
-
return this._properties.validateSingleProperty(jsonValidator, key, newProps[key], optionalSchema);
|
|
107
|
-
} else if (this._properties.findProperty(key)) {
|
|
108
|
-
let property = this._properties.findProperty(key);
|
|
109
|
-
|
|
110
|
-
let schema = property.getTypeMetadata().schema;
|
|
111
|
-
return this._properties.validateSingleProperty(jsonValidator, key, newProps[key], schema);
|
|
112
|
-
} else {
|
|
113
|
-
throw new Error(`props '${key}' not exist `);
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
return this._properties.updateAllPropertiesValue(jsonValidator, newProps);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
updateState(state) {
|
|
120
|
-
this._state.updateState(state);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
getAllBehavioursInitialState() {
|
|
124
|
-
let allBehavioursInitialState = {};
|
|
125
|
-
|
|
126
|
-
this._behaviours.map(behaviour => {
|
|
127
|
-
allBehavioursInitialState = { ...allBehavioursInitialState,
|
|
128
|
-
...behaviour.getInitialState()
|
|
129
|
-
};
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
return allBehavioursInitialState;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
init(jsonValidator, newProps) {
|
|
136
|
-
this.updateProperties(jsonValidator, newProps);
|
|
137
|
-
|
|
138
|
-
const properties = this._properties.getAllPropertiesValue();
|
|
139
|
-
|
|
140
|
-
const behaviours = this.getAllBehavioursInitialState();
|
|
141
|
-
|
|
142
|
-
const initialState = this._stateInitializer({
|
|
143
|
-
properties
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
this.updateState({ ...initialState,
|
|
147
|
-
behaviours
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
getProperties() {
|
|
152
|
-
return this._properties.getAllPropertiesValue();
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
getEventHandlersWrapper() {
|
|
156
|
-
let boundEventHandlers = new Map();
|
|
157
|
-
|
|
158
|
-
this._eventHandlersWrapper.forEach((handlers, key) => {
|
|
159
|
-
let handlersFunction = handlers.map(handler => {
|
|
160
|
-
return handler.getEventHandler();
|
|
161
|
-
});
|
|
162
|
-
boundEventHandlers.set(key, handlersFunction);
|
|
163
|
-
});
|
|
164
|
-
|
|
165
|
-
return boundEventHandlers;
|
|
166
|
-
}
|
|
167
|
-
/* eslint-disable max-lines-per-function */
|
|
168
|
-
// TODO: Refactor this function to reduce the number of lines
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
createEventHandlers(helpers) {
|
|
172
|
-
let eventHandlers = this._eventHandlers.getEventHandlers();
|
|
173
|
-
|
|
174
|
-
this._eventHandlersWrapper = new Map();
|
|
175
|
-
|
|
176
|
-
let createActionToEventHandler = (eventHandlers, eventHandlerMap) => {
|
|
177
|
-
eventHandlers.forEach((actionHandler, key) => {
|
|
178
|
-
let eventHandler = new EventHandler(key, event => {
|
|
179
|
-
let state = this.getState();
|
|
180
|
-
let action = event.detail;
|
|
181
|
-
actionHandler({
|
|
182
|
-
action,
|
|
183
|
-
host: event.currentTarget,
|
|
184
|
-
state,
|
|
185
|
-
...helpers
|
|
186
|
-
});
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
if (!eventHandlerMap.has(key)) {
|
|
190
|
-
let newHandlersArray = [];
|
|
191
|
-
newHandlersArray.push(eventHandler);
|
|
192
|
-
eventHandlerMap.set(key, newHandlersArray);
|
|
193
|
-
} else {
|
|
194
|
-
let existingHandlers = eventHandlerMap.get(key);
|
|
195
|
-
existingHandlers.push(eventHandler);
|
|
196
|
-
eventHandlerMap.set(key, existingHandlers);
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
createActionToEventHandler(eventHandlers, this._eventHandlersWrapper);
|
|
202
|
-
|
|
203
|
-
this._behaviours.forEach(behaviour => {
|
|
204
|
-
let eventHandlers = behaviour.getEventHandlers().getEventHandlers();
|
|
205
|
-
createActionToEventHandler(eventHandlers, this._eventHandlersWrapper);
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
constructAction(input) {
|
|
210
|
-
let action = { ...input,
|
|
211
|
-
payload: { ...input.payload,
|
|
212
|
-
...this._properties.getAppendToActionPayloadProperty()
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
return action;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
|
|
3
|
-
export default class EventHandler {
|
|
4
|
-
constructor(key, handler) {
|
|
5
|
-
_defineProperty(this, "handler", void 0);
|
|
6
|
-
|
|
7
|
-
_defineProperty(this, "key", void 0);
|
|
8
|
-
|
|
9
|
-
this.key = key;
|
|
10
|
-
this.handler = handler;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
getEventHandler() {
|
|
14
|
-
return this.handler;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
|
|
3
|
-
class Action {
|
|
4
|
-
constructor(type, payload) {
|
|
5
|
-
_defineProperty(this, "type", void 0);
|
|
6
|
-
|
|
7
|
-
_defineProperty(this, "payload", void 0);
|
|
8
|
-
|
|
9
|
-
this.type = type;
|
|
10
|
-
this.payload = payload;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
getType() {
|
|
14
|
-
return this.type;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
getPayload() {
|
|
18
|
-
return this.payload;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export default Action;
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
|
|
3
|
-
export default class LifeCycleAction {
|
|
4
|
-
constructor(name) {
|
|
5
|
-
_defineProperty(this, "mount", void 0);
|
|
6
|
-
|
|
7
|
-
_defineProperty(this, "unmount", void 0);
|
|
8
|
-
|
|
9
|
-
_defineProperty(this, "contructUpdatePropertiesAction", void 0);
|
|
10
|
-
|
|
11
|
-
this.mount = {
|
|
12
|
-
type: `${name}#MOUNT`
|
|
13
|
-
};
|
|
14
|
-
this.unmount = {
|
|
15
|
-
type: `${name}#UN_MOUNT`
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
this.contructUpdatePropertiesAction = payload => {
|
|
19
|
-
return {
|
|
20
|
-
type: `${name}#UPDATE_PROPERTIES`,
|
|
21
|
-
payload
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
getMountAction() {
|
|
27
|
-
return this.mount;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
getUnmountAction() {
|
|
31
|
-
return this.unmount;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
getUpdatePropertiesAction(payload) {
|
|
35
|
-
return this.contructUpdatePropertiesAction(payload);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
|
|
3
|
-
export default class Payload {
|
|
4
|
-
constructor(name, typeMetadata) {
|
|
5
|
-
_defineProperty(this, "name", void 0);
|
|
6
|
-
|
|
7
|
-
_defineProperty(this, "typeMetadata", void 0);
|
|
8
|
-
|
|
9
|
-
this.name = name;
|
|
10
|
-
this.typeMetadata = typeMetadata;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
getName() {
|
|
14
|
-
return this.name;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
getTypeMetadata() {
|
|
18
|
-
return this.typeMetadata;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
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
|
-
|
|
3
|
-
import Property from "./Property";
|
|
4
|
-
import defaultAppendToActionPayload from "./DefaultAppendToActionPayload";
|
|
5
|
-
import getRefPropertySchema from "../../../cc/component/properties/getRefPropertySchema";
|
|
6
|
-
export default class Properties {
|
|
7
|
-
constructor(properties, componentName) {
|
|
8
|
-
this.componentName = componentName;
|
|
9
|
-
|
|
10
|
-
_defineProperty(this, "data", void 0);
|
|
11
|
-
|
|
12
|
-
this.data = properties;
|
|
13
|
-
this.data.set('appendToActionPayload', new Property(defaultAppendToActionPayload));
|
|
14
|
-
this.data.set('getRef', new Property(getRefPropertySchema));
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
getAllPropertiesValue() {
|
|
18
|
-
const convertedObject = {};
|
|
19
|
-
|
|
20
|
-
for (const [key, value] of this.data.entries()) {
|
|
21
|
-
convertedObject[key] = value.getValue();
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return convertedObject;
|
|
25
|
-
}
|
|
26
|
-
/* break value object*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
updateAllPropertiesValue(validator, propertyValue) {
|
|
30
|
-
this.validateProperties(validator, propertyValue);
|
|
31
|
-
|
|
32
|
-
if (!this.isEqual(propertyValue)) {
|
|
33
|
-
let isChanged = false;
|
|
34
|
-
Object.keys(propertyValue).forEach(key => {
|
|
35
|
-
let property = this.findProperty(key);
|
|
36
|
-
|
|
37
|
-
if (property.getValue() == null || property.getValue() == undefined) {
|
|
38
|
-
property.updateValue(propertyValue[key]);
|
|
39
|
-
isChanged = true;
|
|
40
|
-
} else if (property.getValue() != propertyValue[key]) {
|
|
41
|
-
property.updateValue(propertyValue[key]);
|
|
42
|
-
isChanged = true;
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
return isChanged;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
isEqual(newProps) {
|
|
52
|
-
let isShallow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
53
|
-
|
|
54
|
-
if (isShallow) {
|
|
55
|
-
return this.shallowCompareWithNewObject(newProps);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
validateProperties(validator, newProps) {
|
|
62
|
-
let errors = [];
|
|
63
|
-
Object.keys(newProps).forEach(key => {
|
|
64
|
-
this.validate(validator, key, newProps[key], errors);
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
if (errors.length > 0) {
|
|
68
|
-
this.handleValidationErrors(errors);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return true;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
validate(validator, key, value, errors) {
|
|
75
|
-
if (!this.data.has(key)) {
|
|
76
|
-
throw new Error(`props '${key}' not exist `);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
let property = this.data.get(key);
|
|
80
|
-
let schema = property.getTypeMetadata().schema;
|
|
81
|
-
let isValid;
|
|
82
|
-
|
|
83
|
-
try {
|
|
84
|
-
isValid = validator(schema, value);
|
|
85
|
-
} catch (error) {
|
|
86
|
-
isValid = false;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
if (!isValid) {
|
|
90
|
-
const error = {
|
|
91
|
-
key: key,
|
|
92
|
-
componentName: this.componentName,
|
|
93
|
-
value: value,
|
|
94
|
-
schema: schema
|
|
95
|
-
};
|
|
96
|
-
errors.push(error);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
handleValidationErrors(errors) {
|
|
101
|
-
console.log('Property validation failed', this.componentName, errors);
|
|
102
|
-
throw new Error('Property validation failed');
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
getSchema(key, optionalSchema) {
|
|
106
|
-
if (optionalSchema) {
|
|
107
|
-
return optionalSchema;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return this.data.get(key).getTypeMetadata().schema;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
validateSingleProperty(validator, onePropKey, onePropValue, optionalSchema) {
|
|
114
|
-
let schema = this.getSchema(onePropKey, optionalSchema); // INFO: Validate the property adheres to its schema
|
|
115
|
-
|
|
116
|
-
let isValid = validator(schema, onePropValue);
|
|
117
|
-
|
|
118
|
-
if (!isValid) {
|
|
119
|
-
const error = {
|
|
120
|
-
key: onePropKey,
|
|
121
|
-
componentName: this.componentName,
|
|
122
|
-
value: onePropValue,
|
|
123
|
-
schema: schema
|
|
124
|
-
};
|
|
125
|
-
console.log('Property validation failed', this.componentName, error);
|
|
126
|
-
throw new Error('Property validation failed');
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
return true;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
findProperty(key) {
|
|
133
|
-
return this.data.get(key);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
getAppendToActionPayloadProperty() {
|
|
137
|
-
return this.data.get('appendToActionPayload').getValue();
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
shallowCompareWithNewObject(obj1) {
|
|
141
|
-
const keys1 = Object.keys(obj1);
|
|
142
|
-
|
|
143
|
-
for (let key of keys1) {
|
|
144
|
-
if (!this.data.has(key) || obj1[key] !== this.data.get(key).getValue()) {
|
|
145
|
-
return false;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
return true;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
|
|
3
|
-
export default class Property {
|
|
4
|
-
constructor(_ref) {
|
|
5
|
-
let {
|
|
6
|
-
name,
|
|
7
|
-
defaultValue,
|
|
8
|
-
required,
|
|
9
|
-
typeMetadata
|
|
10
|
-
} = _ref;
|
|
11
|
-
|
|
12
|
-
_defineProperty(this, "name", void 0);
|
|
13
|
-
|
|
14
|
-
_defineProperty(this, "required", void 0);
|
|
15
|
-
|
|
16
|
-
_defineProperty(this, "defaultValue", void 0);
|
|
17
|
-
|
|
18
|
-
_defineProperty(this, "typeMetadata", void 0);
|
|
19
|
-
|
|
20
|
-
_defineProperty(this, "value", void 0);
|
|
21
|
-
|
|
22
|
-
this.name = name;
|
|
23
|
-
this.defaultValue = defaultValue;
|
|
24
|
-
this.required = required;
|
|
25
|
-
this.typeMetadata = typeMetadata;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
getRequired() {
|
|
29
|
-
return this.required;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
getName() {
|
|
33
|
-
return this.name;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
getDefaultValue() {
|
|
37
|
-
return this.defaultValue;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
getTypeMetadata() {
|
|
41
|
-
return this.typeMetadata;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
getValue() {
|
|
45
|
-
return this.value == undefined ? this.defaultValue : this.value;
|
|
46
|
-
}
|
|
47
|
-
/* break value object*/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
updateValue(value) {
|
|
51
|
-
this.value = value;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
clone() {
|
|
55
|
-
return new Property({
|
|
56
|
-
name: this.name,
|
|
57
|
-
defaultValue: this.defaultValue,
|
|
58
|
-
required: this.required,
|
|
59
|
-
typeMetadata: this.typeMetadata
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
|
|
3
|
-
class Schema {
|
|
4
|
-
constructor() {
|
|
5
|
-
_defineProperty(this, "_type", void 0);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
getType() {
|
|
9
|
-
return this._type;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export default Schema;
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
|
|
3
|
-
export default class State {
|
|
4
|
-
constructor() {
|
|
5
|
-
_defineProperty(this, "state", void 0);
|
|
6
|
-
|
|
7
|
-
this.state = {};
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
getState() {
|
|
11
|
-
return this.state;
|
|
12
|
-
}
|
|
13
|
-
/* break value object*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
updateState(state) {
|
|
17
|
-
this.state = { ...this.state,
|
|
18
|
-
...state
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
|
|
3
|
-
export default class Style {
|
|
4
|
-
constructor() {
|
|
5
|
-
_defineProperty(this, "name", void 0);
|
|
6
|
-
|
|
7
|
-
_defineProperty(this, "label", void 0);
|
|
8
|
-
|
|
9
|
-
_defineProperty(this, "required", void 0);
|
|
10
|
-
|
|
11
|
-
_defineProperty(this, "defaultValue", void 0);
|
|
12
|
-
|
|
13
|
-
_defineProperty(this, "typeMetadata", void 0);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
getLabel() {
|
|
17
|
-
return this.label;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
getRequired() {
|
|
21
|
-
return this.required;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
getName() {
|
|
25
|
-
return this.name;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
getDefaultValue() {
|
|
29
|
-
return this.defaultValue;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
getTypeMetadata() {
|
|
33
|
-
return this.typeMetadata;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
}
|
|
@@ -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
|
-
});
|