@zohodesk/library-platform 1.0.0 → 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 +35 -26
- 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/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/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 -10
- 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/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/Initialize.js +0 -14
- 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/gateways/validator/jsonValidator.js +0 -5
- 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/getRef.js +0 -10
- 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 -8
- 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/data-broker/utils/transformer/createCf.js +0 -12
- package/es/platform/data-broker/utils/transformer/transformer.js +0 -25
- 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/gateways/TemplateHelpers.js +0 -30
- 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/api-template/APITemplate.js +0 -71
- package/es/platform/zfield/entities/api-template/APITemplates.js +0 -24
- 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/entities/interfaces/api-template/APIModels.js +0 -8
- package/es/platform/zfield/entities/interfaces/api-template/IAPITemplate.js +0 -1
- package/es/platform/zfield/entities/interfaces/api-template/IAPITemplates.js +0 -1
- package/es/platform/zfield/entities/interfaces/api-template/ITemplateHelpers.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/entity-factory/FieldBuilder.js +0 -109
- package/es/platform/zfield/usecases/entity-factory/FieldFactory.js +0 -10
- package/es/platform/zfield/usecases/entity-factory/FieldsManagerBuilder.js +0 -49
- 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/gateways/TemplateHelpers.js +0 -30
- package/es/platform/zrecord/adapters/presenters/Presenter.js +0 -30
- package/es/platform/zrecord/entities/APITemplate.js +0 -75
- package/es/platform/zrecord/entities/APITemplates.js +0 -24
- 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/Property.js +0 -40
- 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/APIDetailsModel.js +0 -1
- package/es/platform/zrecord/entities/interfaces/APITemplateModel.js +0 -1
- package/es/platform/zrecord/entities/interfaces/APITemplatesModel.js +0 -1
- package/es/platform/zrecord/entities/interfaces/ActionModel.js +0 -1
- 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/IAPITemplate.js +0 -1
- package/es/platform/zrecord/entities/interfaces/IAPITemplates.js +0 -1
- package/es/platform/zrecord/entities/interfaces/ICustomFieldValues.js +0 -1
- package/es/platform/zrecord/entities/interfaces/IProperties.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/ITemplateHelpers.js +0 -1
- package/es/platform/zrecord/entities/interfaces/MetaData.js +0 -1
- 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/APITemplatesFactory.js +0 -14
- 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/ITemplateHelpers.js +0 -1
- 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,32 +0,0 @@
|
|
|
1
|
-
import { ZLIST_FETCH_MORE } from "../../../../../../bc/zlist/Constants";
|
|
2
|
-
import AbstractController from "./AbstractController";
|
|
3
|
-
|
|
4
|
-
class ScrollController extends AbstractController {
|
|
5
|
-
handle(event) {
|
|
6
|
-
const {
|
|
7
|
-
dispatch
|
|
8
|
-
} = event;
|
|
9
|
-
const {
|
|
10
|
-
scrollEvent
|
|
11
|
-
} = event.action.payload;
|
|
12
|
-
const element = scrollEvent.currentTarget;
|
|
13
|
-
const {
|
|
14
|
-
scrollHeight,
|
|
15
|
-
scrollTop,
|
|
16
|
-
clientHeight
|
|
17
|
-
} = element;
|
|
18
|
-
const DELTA = 10;
|
|
19
|
-
const isScrollingDown = scrollTop !== 0;
|
|
20
|
-
const isEndReached = isScrollingDown && scrollHeight - Math.ceil(scrollTop) < clientHeight + DELTA;
|
|
21
|
-
|
|
22
|
-
if (isEndReached) {
|
|
23
|
-
dispatch({
|
|
24
|
-
type: ZLIST_FETCH_MORE,
|
|
25
|
-
payload: {}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export default ScrollController;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LIST_SELECTION_TOGGLE_ALL } from "../../../../../../bc/list-selection/Constants";
|
|
2
|
-
import AbstractController from "./AbstractController";
|
|
3
|
-
|
|
4
|
-
class SelectAllController extends AbstractController {
|
|
5
|
-
handle(event) {
|
|
6
|
-
const {
|
|
7
|
-
dispatch
|
|
8
|
-
} = event;
|
|
9
|
-
dispatch({
|
|
10
|
-
type: LIST_SELECTION_TOGGLE_ALL
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default SelectAllController;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { LIST_SELECTION_TOGGLE_ITEMS, LIST_SELECTION_TOGGLE_ITEMS_IN_RANGE } from "../../../../../../bc/list-selection/Constants";
|
|
2
|
-
import AbstractController from "./AbstractController";
|
|
3
|
-
|
|
4
|
-
class SelectItemController extends AbstractController {
|
|
5
|
-
handle(event) {
|
|
6
|
-
const {
|
|
7
|
-
dispatch,
|
|
8
|
-
action
|
|
9
|
-
} = event;
|
|
10
|
-
const {
|
|
11
|
-
id,
|
|
12
|
-
event: browser_event
|
|
13
|
-
} = action.payload;
|
|
14
|
-
|
|
15
|
-
if (browser_event.shiftKey) {
|
|
16
|
-
dispatch({
|
|
17
|
-
type: LIST_SELECTION_TOGGLE_ITEMS_IN_RANGE,
|
|
18
|
-
payload: {
|
|
19
|
-
id
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
} else {
|
|
23
|
-
dispatch({
|
|
24
|
-
type: LIST_SELECTION_TOGGLE_ITEMS,
|
|
25
|
-
payload: {
|
|
26
|
-
selected: [id]
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export default SelectItemController;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { SORTBY_SORT } from "../../../../../../bc/sort-by/Constants";
|
|
2
|
-
import AbstractController from "./AbstractController";
|
|
3
|
-
|
|
4
|
-
class SortByController extends AbstractController {
|
|
5
|
-
handle(event) {
|
|
6
|
-
const {
|
|
7
|
-
dispatch,
|
|
8
|
-
action
|
|
9
|
-
} = event;
|
|
10
|
-
const {
|
|
11
|
-
id,
|
|
12
|
-
name
|
|
13
|
-
} = action.payload;
|
|
14
|
-
dispatch({
|
|
15
|
-
type: SORTBY_SORT,
|
|
16
|
-
payload: {
|
|
17
|
-
id,
|
|
18
|
-
name
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export default SortByController;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ZLIST_FETCH_SORTED } from "../../../../../../bc/zlist/Constants";
|
|
2
|
-
import AbstractController from "./AbstractController";
|
|
3
|
-
|
|
4
|
-
class SortedController extends AbstractController {
|
|
5
|
-
handle(event) {
|
|
6
|
-
const {
|
|
7
|
-
action,
|
|
8
|
-
dispatch
|
|
9
|
-
} = event;
|
|
10
|
-
dispatch({
|
|
11
|
-
type: ZLIST_FETCH_SORTED,
|
|
12
|
-
payload: action.payload
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export default SortedController;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as SelectItemController } from "./SelectItemController";
|
|
2
|
-
export { default as SelectAllController } from "./SelectAllController";
|
|
3
|
-
export { default as ScrollController } from "./ScrollController";
|
|
4
|
-
export { default as SortByController } from "./SortByController";
|
|
5
|
-
export { default as SortedController } from "./SortedController";
|
|
6
|
-
export { default as FieldChangeController } from "./FieldChangeController";
|
|
7
|
-
export { default as FieldClickController } from "./FieldClickController";
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
class TableTranslator {
|
|
2
|
-
static translate(state) {
|
|
3
|
-
var _state;
|
|
4
|
-
|
|
5
|
-
const {
|
|
6
|
-
data,
|
|
7
|
-
selectionConfig
|
|
8
|
-
} = state.properties;
|
|
9
|
-
const {
|
|
10
|
-
sortBy,
|
|
11
|
-
selection
|
|
12
|
-
} = (_state = state) === null || _state === void 0 ? void 0 : _state.behaviours;
|
|
13
|
-
const headers = TableTranslator.translateHeaders(data.headers, sortBy);
|
|
14
|
-
const rows = TableTranslator.translateRows(data.rows, selection, selectionConfig);
|
|
15
|
-
state = { ...state,
|
|
16
|
-
properties: { ...state.properties,
|
|
17
|
-
data: { ...data,
|
|
18
|
-
headers,
|
|
19
|
-
rows
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
return state;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
static translateHeaders(headers, sortBy) {
|
|
27
|
-
return headers.map(header => {
|
|
28
|
-
const sortOrder = (sortBy === null || sortBy === void 0 ? void 0 : sortBy.id) === header.id ? sortBy === null || sortBy === void 0 ? void 0 : sortBy.order : 'none';
|
|
29
|
-
return { ...header,
|
|
30
|
-
sortOrder,
|
|
31
|
-
sortTooltip: sortOrder === 'none' ? '' : sortOrder === 'ascending' ? 'Click to Sort Descending' : 'Click to Sort Ascending'
|
|
32
|
-
};
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
static translateRows(rows, selection, selectionConfig) {
|
|
37
|
-
const {
|
|
38
|
-
selected,
|
|
39
|
-
hasAllSelected
|
|
40
|
-
} = selection;
|
|
41
|
-
return rows.map((row, index) => {
|
|
42
|
-
return { ...row,
|
|
43
|
-
isSelected: selected.includes(row.id),
|
|
44
|
-
isSelectable: selected.includes(row.id) || !hasAllSelected,
|
|
45
|
-
selectionTooltip: !selected.includes(row.id) && hasAllSelected ? selectionConfig.limitExceedAlertMessage : `Record ${index + 1}`
|
|
46
|
-
};
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export default TableTranslator;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { TableListConstants } from "../../../../../../cc/table-list";
|
|
2
|
-
import { SelectItemController, SelectAllController, ScrollController, FieldChangeController, FieldClickController, SortByController, SortedController } from "../../adapters/controllers";
|
|
3
|
-
import TableRowConstants from "../../../../../../cc/table-list/row/Constants";
|
|
4
|
-
import { SORTBY_SORTED } from "../../../../../../bc/sort-by/Constants";
|
|
5
|
-
import RowClickController from "../../adapters/controllers/RowClickController";
|
|
6
|
-
|
|
7
|
-
class EventHandlersFactory {
|
|
8
|
-
static create() {
|
|
9
|
-
return {
|
|
10
|
-
[TableRowConstants.TABLE_ROW_CLICKED]: new RowClickController().handle,
|
|
11
|
-
[TableListConstants.TABLE_LIST_TOGGLE_ITEM_SELECTION]: new SelectItemController().handle,
|
|
12
|
-
[TableListConstants.TABLE_LIST_TOGGLE_ALL_SELECTION]: new SelectAllController().handle,
|
|
13
|
-
[TableListConstants.TABLE_LIST_SCROLLED]: new ScrollController().handle,
|
|
14
|
-
[TableListConstants.TABLE_LIST_SORTED]: new SortByController().handle,
|
|
15
|
-
[SORTBY_SORTED]: new SortedController().handle,
|
|
16
|
-
[TableRowConstants.TABLE_ROW_FIELD_CHANGED]: new FieldChangeController().handle,
|
|
17
|
-
[TableRowConstants.TABLE_ROW_FIELD_CLICKED]: new FieldClickController().handle
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export default EventHandlersFactory;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { TableListProperties } from "../../../../../../cc/table-list";
|
|
2
|
-
import { createCustomComponent } from "../../../../../custom-component";
|
|
3
|
-
import ListItemSelectionBehaviourFactory from "../../../../../behaviours/list-selection/frameworks/ListItemSelectionBehaviourFactory";
|
|
4
|
-
import TableTranslator from "../../adapters/presenters/TableTranslator";
|
|
5
|
-
import TableListView from "./TableListView";
|
|
6
|
-
import EventHandlersFactory from "./EventHandlersFactory";
|
|
7
|
-
import SortByBehaviourFactory from "../../../../../behaviours/sort-by/frameworks/ui/SortByBehaviourFactory";
|
|
8
|
-
const TableList = createCustomComponent({
|
|
9
|
-
name: 'TableList',
|
|
10
|
-
View: TableListView,
|
|
11
|
-
properties: TableListProperties,
|
|
12
|
-
setInitialState: () => ({}),
|
|
13
|
-
transformState: TableTranslator.translate,
|
|
14
|
-
eventHandlers: EventHandlersFactory.create(),
|
|
15
|
-
behaviours: [ListItemSelectionBehaviourFactory.create(), SortByBehaviourFactory.create(), {
|
|
16
|
-
name: 'resizerState',
|
|
17
|
-
properties: {},
|
|
18
|
-
eventHandlers: {},
|
|
19
|
-
setInitialState: () => ({
|
|
20
|
-
currentlyResizingColumn: '',
|
|
21
|
-
isCurrentlyResizing: false,
|
|
22
|
-
resizedColumnsWidth: {},
|
|
23
|
-
extraWidth: 0,
|
|
24
|
-
initialPosition: 0,
|
|
25
|
-
resizedPosition: 0,
|
|
26
|
-
tooltip: ''
|
|
27
|
-
})
|
|
28
|
-
}]
|
|
29
|
-
});
|
|
30
|
-
export default TableList;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Table from '@zohodesk-private/desk-components/es/table/Table/Table';
|
|
3
|
-
import Header from "./sub-components/Header";
|
|
4
|
-
import Body from "./sub-components/Body";
|
|
5
|
-
import Rows from "./sub-components/Rows";
|
|
6
|
-
import NoData from "./sub-components/NoData";
|
|
7
|
-
import Loading from "./sub-components/Loading";
|
|
8
|
-
import ColumnResizingLine from "./sub-components/ColumnResizingLine";
|
|
9
|
-
import handleScroll from "./handlers/HandleScroll"; // @ts-ignore
|
|
10
|
-
|
|
11
|
-
import style from "./css/TableList.module.css";
|
|
12
|
-
|
|
13
|
-
function TableListView(_ref2, _ref) {
|
|
14
|
-
let {
|
|
15
|
-
state,
|
|
16
|
-
helpers
|
|
17
|
-
} = _ref2;
|
|
18
|
-
const {
|
|
19
|
-
dispatch
|
|
20
|
-
} = helpers;
|
|
21
|
-
const {
|
|
22
|
-
data,
|
|
23
|
-
isLoading,
|
|
24
|
-
resizerConfig,
|
|
25
|
-
selectionConfig,
|
|
26
|
-
isFlexibleColumns,
|
|
27
|
-
hasRowActions,
|
|
28
|
-
emptyStateUiType
|
|
29
|
-
} = state.properties;
|
|
30
|
-
const {
|
|
31
|
-
resizerState,
|
|
32
|
-
selection
|
|
33
|
-
} = state.behaviours;
|
|
34
|
-
const {
|
|
35
|
-
headers,
|
|
36
|
-
rows
|
|
37
|
-
} = data;
|
|
38
|
-
const hasRows = rows.length > 0; // TODO: derive from state.properties
|
|
39
|
-
|
|
40
|
-
const isDataEmpty = !hasRows && !isLoading; // TODO: derive from state.properties
|
|
41
|
-
|
|
42
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
43
|
-
className: style.wrapper,
|
|
44
|
-
ref: _ref
|
|
45
|
-
}, /*#__PURE__*/React.createElement(Table, {
|
|
46
|
-
$event_onScroll: e => handleScroll(dispatch, {
|
|
47
|
-
scrollEvent: e
|
|
48
|
-
})
|
|
49
|
-
}, renderHeader({
|
|
50
|
-
headers,
|
|
51
|
-
resizerConfig,
|
|
52
|
-
resizerState,
|
|
53
|
-
selectionConfig,
|
|
54
|
-
selection,
|
|
55
|
-
isFlexibleColumns,
|
|
56
|
-
hasRowActions,
|
|
57
|
-
dispatch
|
|
58
|
-
}), renderBody({
|
|
59
|
-
headers,
|
|
60
|
-
rows,
|
|
61
|
-
isFlexibleColumns,
|
|
62
|
-
selectionConfig,
|
|
63
|
-
resizerState,
|
|
64
|
-
hasRowActions,
|
|
65
|
-
hasRows
|
|
66
|
-
}), /*#__PURE__*/React.createElement(NoData, {
|
|
67
|
-
isDataEmpty: isDataEmpty,
|
|
68
|
-
emptyStateUiType: emptyStateUiType
|
|
69
|
-
}), /*#__PURE__*/React.createElement(Loading, {
|
|
70
|
-
isLoading: isLoading,
|
|
71
|
-
hasRows: hasRows
|
|
72
|
-
})), renderColumnResizingLine(resizerState));
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function renderHeader(_ref3) {
|
|
76
|
-
let {
|
|
77
|
-
headers,
|
|
78
|
-
resizerConfig,
|
|
79
|
-
resizerState,
|
|
80
|
-
selectionConfig,
|
|
81
|
-
selection,
|
|
82
|
-
isFlexibleColumns,
|
|
83
|
-
hasRowActions,
|
|
84
|
-
dispatch
|
|
85
|
-
} = _ref3;
|
|
86
|
-
return /*#__PURE__*/React.createElement(Header, {
|
|
87
|
-
isSelectionEnabled: selectionConfig.isEnabled,
|
|
88
|
-
hasAllSelected: selection.hasAllSelected,
|
|
89
|
-
isResizerEnabled: resizerConfig.isEnabled,
|
|
90
|
-
resizedColumnsWidth: resizerState.resizedColumnsWidth,
|
|
91
|
-
currentlyResizingColumn: resizerState.currentlyResizingColumn,
|
|
92
|
-
isCurrentlyResizing: resizerState.isCurrentlyResizing,
|
|
93
|
-
resizerExtraWidth: resizerState.extraWidth,
|
|
94
|
-
isFlexibleColumns: isFlexibleColumns,
|
|
95
|
-
hasRowActions: hasRowActions,
|
|
96
|
-
headers: headers,
|
|
97
|
-
dispatch: dispatch
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function renderBody(_ref4) {
|
|
102
|
-
let {
|
|
103
|
-
headers,
|
|
104
|
-
rows,
|
|
105
|
-
isFlexibleColumns,
|
|
106
|
-
selectionConfig,
|
|
107
|
-
resizerState,
|
|
108
|
-
hasRowActions,
|
|
109
|
-
hasRows
|
|
110
|
-
} = _ref4;
|
|
111
|
-
return /*#__PURE__*/React.createElement(Body, {
|
|
112
|
-
hasRows: hasRows,
|
|
113
|
-
isFlexibleColumns: isFlexibleColumns
|
|
114
|
-
}, /*#__PURE__*/React.createElement(Rows, {
|
|
115
|
-
headers: headers,
|
|
116
|
-
rows: rows,
|
|
117
|
-
isFlexibleColumns: isFlexibleColumns,
|
|
118
|
-
isSelectionEnabled: selectionConfig.isEnabled,
|
|
119
|
-
resizedColumnsWidth: resizerState.resizedColumnsWidth,
|
|
120
|
-
hasRowActions: hasRowActions
|
|
121
|
-
}));
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
function renderColumnResizingLine(resizerState) {
|
|
125
|
-
return /*#__PURE__*/React.createElement(ColumnResizingLine, {
|
|
126
|
-
isCurrentlyResizing: resizerState.isCurrentlyResizing,
|
|
127
|
-
initialPosition: resizerState.initialPosition,
|
|
128
|
-
resizedPosition: resizerState.resizedPosition,
|
|
129
|
-
tooltip: resizerState.tooltip
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export default TableListView;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TableListConstants } from "../../../../../../../cc";
|
|
2
|
-
export default function handleScroll(dispatch, _ref) {
|
|
3
|
-
let {
|
|
4
|
-
scrollEvent
|
|
5
|
-
} = _ref;
|
|
6
|
-
dispatch({
|
|
7
|
-
type: TableListConstants.TABLE_LIST_SCROLLED,
|
|
8
|
-
payload: {
|
|
9
|
-
scrollEvent
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import TableBody from '@zohodesk-private/desk-components/es/table/TableBody/TableBody';
|
|
3
|
-
export default function Body(_ref) {
|
|
4
|
-
let {
|
|
5
|
-
hasRows,
|
|
6
|
-
isFlexibleColumns,
|
|
7
|
-
children
|
|
8
|
-
} = _ref;
|
|
9
|
-
|
|
10
|
-
if (hasRows) {
|
|
11
|
-
return /*#__PURE__*/React.createElement(TableBody, {
|
|
12
|
-
$flag_flexibleColumns: isFlexibleColumns
|
|
13
|
-
}, children);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return null;
|
|
17
|
-
}
|
package/es/library/dot/components/table-list/frameworks/ui/sub-components/ColumnResizingLine.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import TableColumnResizerLine from '@zohodesk-private/desk-components/es/table/TableColumnResizerLine/TableColumnResizerLine';
|
|
3
|
-
export default function ColumnResizingLine(_ref) {
|
|
4
|
-
let {
|
|
5
|
-
isCurrentlyResizing,
|
|
6
|
-
initialPosition,
|
|
7
|
-
resizedPosition,
|
|
8
|
-
tooltip
|
|
9
|
-
} = _ref;
|
|
10
|
-
|
|
11
|
-
if (isCurrentlyResizing) {
|
|
12
|
-
return /*#__PURE__*/React.createElement(TableColumnResizerLine, {
|
|
13
|
-
$data_initialPosition: initialPosition,
|
|
14
|
-
$data_resizingPosition: resizedPosition,
|
|
15
|
-
$data_tooltipText: tooltip
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import TableHeader from '@zohodesk-private/desk-components/es/table/TableHeader/TableHeader';
|
|
3
|
-
import SelectAll from "./header/SelectAll";
|
|
4
|
-
import Headers from "./header/Headers";
|
|
5
|
-
import ActionColumn from "./header/ActionColumn";
|
|
6
|
-
import ResizerExtraSpace from "./header/ResizerExtraSpace";
|
|
7
|
-
|
|
8
|
-
function Header(_ref) {
|
|
9
|
-
let {
|
|
10
|
-
isSelectionEnabled,
|
|
11
|
-
hasAllSelected,
|
|
12
|
-
isResizerEnabled,
|
|
13
|
-
resizedColumnsWidth,
|
|
14
|
-
currentlyResizingColumn,
|
|
15
|
-
isCurrentlyResizing,
|
|
16
|
-
resizerExtraWidth,
|
|
17
|
-
isFlexibleColumns,
|
|
18
|
-
hasRowActions,
|
|
19
|
-
headers,
|
|
20
|
-
dispatch
|
|
21
|
-
} = _ref;
|
|
22
|
-
|
|
23
|
-
if (headers.length <= 0) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return /*#__PURE__*/React.createElement(TableHeader, {
|
|
28
|
-
$flag_padding: !isSelectionEnabled
|
|
29
|
-
}, renderSelectAll(isSelectionEnabled, hasAllSelected, dispatch), renderHeaders(headers, resizedColumnsWidth, currentlyResizingColumn, isResizerEnabled, isFlexibleColumns, dispatch), renderActionColumn(hasRowActions), renderResizerExtraSpace(isCurrentlyResizing, resizerExtraWidth));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function renderSelectAll(isSelectionEnabled, hasAllSelected, dispatch) {
|
|
33
|
-
return /*#__PURE__*/React.createElement(SelectAll, {
|
|
34
|
-
isSelectionEnabled: isSelectionEnabled,
|
|
35
|
-
hasAllSelected: hasAllSelected,
|
|
36
|
-
dispatch: dispatch
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function renderHeaders(headers, resizedColumnsWidth, currentlyResizingColumn, isResizerEnabled, isFlexibleColumns, dispatch) {
|
|
41
|
-
return /*#__PURE__*/React.createElement(Headers, {
|
|
42
|
-
headers: headers,
|
|
43
|
-
resizedColumnsWidth: resizedColumnsWidth,
|
|
44
|
-
currentlyResizingColumn: currentlyResizingColumn,
|
|
45
|
-
isResizerEnabled: isResizerEnabled,
|
|
46
|
-
isFlexibleColumns: isFlexibleColumns,
|
|
47
|
-
dispatch: dispatch
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function renderActionColumn(hasRowActions) {
|
|
52
|
-
return /*#__PURE__*/React.createElement(ActionColumn, {
|
|
53
|
-
hasRowActions: hasRowActions
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function renderResizerExtraSpace(isCurrentlyResizing, resizerExtraWidth) {
|
|
58
|
-
return /*#__PURE__*/React.createElement(ResizerExtraSpace, {
|
|
59
|
-
isCurrentlyResizing: isCurrentlyResizing,
|
|
60
|
-
extraWidth: resizerExtraWidth
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export default Header;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Loader from '@zohodesk/svg/es/v1/Loader/Loader'; // @ts-ignore
|
|
3
|
-
|
|
4
|
-
import style from "../css/TableList.module.css";
|
|
5
|
-
export default function Loading(_ref) {
|
|
6
|
-
let {
|
|
7
|
-
isLoading,
|
|
8
|
-
hasRows
|
|
9
|
-
} = _ref;
|
|
10
|
-
|
|
11
|
-
if (isLoading) {
|
|
12
|
-
let loadingClass = !hasRows ? style.initialLoading : '';
|
|
13
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
-
className: `${style.contentWrapper} ${loadingClass}`
|
|
15
|
-
}, /*#__PURE__*/React.createElement(Loader, {
|
|
16
|
-
isCover: !hasRows,
|
|
17
|
-
className: style.loader
|
|
18
|
-
}));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Flex from '@zohodesk/layout/es/Flex/Flex';
|
|
3
|
-
import CommonEmptyState from "../../../../../legacy-to-new-arch/common-empty-state/CommonEmptyState";
|
|
4
|
-
/* @ts-ignore */
|
|
5
|
-
|
|
6
|
-
import style from "../css/TableList.module.css";
|
|
7
|
-
import ComponentRegistry from "../../../../../../custom-component/frameworks/ui/ComponentRegistry";
|
|
8
|
-
export default function NoData(_ref) {
|
|
9
|
-
let {
|
|
10
|
-
isDataEmpty,
|
|
11
|
-
emptyStateUiType
|
|
12
|
-
} = _ref;
|
|
13
|
-
|
|
14
|
-
if (isDataEmpty) {
|
|
15
|
-
/* eslint-disable-next-line @zohodesk/architecturerules/no-defaultProps-rule */
|
|
16
|
-
const EmptyState = ComponentRegistry.get(emptyStateUiType) || CommonEmptyState;
|
|
17
|
-
return /*#__PURE__*/React.createElement(Flex, {
|
|
18
|
-
$ui_displayMode: "flex",
|
|
19
|
-
$ui_alignItems: "center",
|
|
20
|
-
$ui_justifyContent: "center",
|
|
21
|
-
$ui_className: `${style.contentWrapper} ${style.emptyContent}`
|
|
22
|
-
}, /*#__PURE__*/React.createElement(EmptyState, null));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Row from "./row/Row";
|
|
3
|
-
const emptyArray = Object.freeze([]);
|
|
4
|
-
const emptyObject = {};
|
|
5
|
-
|
|
6
|
-
function Rows(_ref) {
|
|
7
|
-
let {
|
|
8
|
-
headers,
|
|
9
|
-
rows,
|
|
10
|
-
isFlexibleColumns,
|
|
11
|
-
isSelectionEnabled,
|
|
12
|
-
resizedColumnsWidth,
|
|
13
|
-
hasRowActions
|
|
14
|
-
} = _ref;
|
|
15
|
-
return rows.map((row, index) => /*#__PURE__*/React.createElement(Row, {
|
|
16
|
-
key: index,
|
|
17
|
-
...getRowProps(row, headers, isFlexibleColumns, isSelectionEnabled, resizedColumnsWidth, hasRowActions)
|
|
18
|
-
}));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function getRowProps(row, headers, isFlexibleColumns, isSelectionEnabled, resizedColumnsWidth, hasRowActions) {
|
|
22
|
-
const {
|
|
23
|
-
id,
|
|
24
|
-
columns,
|
|
25
|
-
isSelected,
|
|
26
|
-
isSelectable,
|
|
27
|
-
selectionTooltip,
|
|
28
|
-
clickAction,
|
|
29
|
-
rowActions
|
|
30
|
-
} = row;
|
|
31
|
-
const updatedColumns = getUpdatedColumns(columns, headers);
|
|
32
|
-
return {
|
|
33
|
-
id,
|
|
34
|
-
columns: updatedColumns || emptyArray,
|
|
35
|
-
clickAction: clickAction || emptyObject,
|
|
36
|
-
rowActions: rowActions || emptyArray,
|
|
37
|
-
isSelected,
|
|
38
|
-
isSelectable,
|
|
39
|
-
selectionTooltip,
|
|
40
|
-
isFlexibleColumns,
|
|
41
|
-
isSelectionEnabled,
|
|
42
|
-
resizedColumnsWidth,
|
|
43
|
-
hasActions: hasRowActions
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function getUpdatedColumns(columns, headers) {
|
|
48
|
-
return columns.map((column, index) => ({
|
|
49
|
-
size: headers[index].size,
|
|
50
|
-
field: column,
|
|
51
|
-
alignment: headers[index].alignment
|
|
52
|
-
}));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export default Rows;
|
package/es/library/dot/components/table-list/frameworks/ui/sub-components/field/FieldComponent.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import FieldComponents from "../../../../../../legacy-to-new-arch/table-field-components";
|
|
3
|
-
import ComponentRegistry from "../../../../../../../custom-component/frameworks/ui/ComponentRegistry";
|
|
4
|
-
|
|
5
|
-
const FieldComponent = props => {
|
|
6
|
-
const {
|
|
7
|
-
type,
|
|
8
|
-
fieldProps
|
|
9
|
-
} = props;
|
|
10
|
-
/* eslint-disable-next-line @zohodesk/architecturerules/no-defaultProps-rule */
|
|
11
|
-
|
|
12
|
-
const Component = FieldComponents[type] || ComponentRegistry.get(type);
|
|
13
|
-
|
|
14
|
-
if (!Component) {
|
|
15
|
-
console.error(`Field Component type ${type} not found`);
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return /*#__PURE__*/React.createElement(Component, { ...fieldProps
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export default FieldComponent;
|
package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/ActionColumn.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import TableHead from '@zohodesk-private/desk-components/es/table/TableHead/TableHead';
|
|
3
|
-
export default function ActionColumn(_ref) {
|
|
4
|
-
let {
|
|
5
|
-
hasRowActions
|
|
6
|
-
} = _ref;
|
|
7
|
-
|
|
8
|
-
if (hasRowActions) {
|
|
9
|
-
return /*#__PURE__*/React.createElement(TableHead, {
|
|
10
|
-
$ui_size: "medium"
|
|
11
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return null;
|
|
15
|
-
}
|