@zohodesk/library-platform 1.0.1 → 1.0.2-exp.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (541) hide show
  1. package/README.md +2 -2
  2. package/es/bc/index.js +2 -0
  3. package/es/bc/list-selection/Properties.js +21 -12
  4. package/es/bc/sort-by/Properties.js +20 -15
  5. package/es/bc/sort-by/index.js +2 -0
  6. package/es/bc/table-column-resizer/Properties.js +1 -1
  7. package/es/bc/{zdata-broker → zdata-source}/Actions.js +6 -6
  8. package/es/bc/{zdata-broker → zdata-source}/Constants.js +6 -5
  9. package/es/bc/zdata-source/EventHandlers.js +2 -0
  10. package/es/bc/zdata-source/Symbols.js +5 -0
  11. package/es/bc/zfield/ActionHandlers.js +1 -1
  12. package/es/bc/zhttp/Properties.js +11 -1
  13. package/es/bc/zhttp/index.js +2 -0
  14. package/es/bc/zlist/EventHandlers.js +1 -1
  15. package/es/bc/zlist/Properties.js +26 -30
  16. package/es/bc/zrecord/Constants.js +3 -1
  17. package/es/cc/action-icon/Model.js +6 -2
  18. package/es/cc/action-icon/Properties.js +49 -0
  19. package/es/cc/action-location/Properties.js +39 -3
  20. package/es/cc/component/properties/PropertiesConverter.js +23 -0
  21. package/es/cc/empty-state/index.js +1 -0
  22. package/es/cc/fields/field/Properties.js +9 -1
  23. package/es/cc/fields/field/Types.js +16 -16
  24. package/es/cc/fields/multi-select/Properties.js +1 -1
  25. package/es/cc/fields/pick-list/Properties.js +1 -1
  26. package/es/cc/index.js +1 -0
  27. package/es/cc/table-connected/Constants.js +4 -0
  28. package/es/cc/table-connected/Properties.js +18 -57
  29. package/es/cc/table-list/Properties.js +110 -325
  30. package/es/cc/table-list/data-types/Header.js +14 -7
  31. package/es/cc/table-list/data-types/RowCursor.js +8 -0
  32. package/es/cc/table-list/model/RowModel.js +2 -4
  33. package/es/cc/table-list/row/Properties.js +15 -10
  34. package/es/desk-frameworks/table-connected/frameworks/ListSdkFactory.js +88 -1
  35. package/es/desk-frameworks/table-connected/frameworks/TableConnectedFactory.js +23 -6
  36. package/es/desk-frameworks/table-connected/frameworks/TableConnectedView.js +17 -13
  37. package/es/index.js +1 -2
  38. package/es/library/behaviours/list-selection/adapters/gateways/Repository.js +1 -1
  39. package/es/library/behaviours/list-selection/adapters/gateways/Service.js +5 -5
  40. package/es/library/behaviours/list-selection/{entities → domain/entities}/ListItemSelection.js +29 -9
  41. package/es/library/behaviours/sort-by/adapters/gateway/Repository.js +1 -1
  42. package/es/library/behaviours/sort-by/adapters/gateway/Service.js +1 -1
  43. package/es/library/behaviours/sort-by/{entities → domain/entities}/SortBy.js +1 -1
  44. package/es/library/behaviours/sort-by/frameworks/ui/SortByBehaviourFactory.js +2 -2
  45. package/es/library/behaviours/text-to-field-click/adapters/gateway/Repository.js +1 -1
  46. package/es/library/behaviours/text-to-field-click/{entities → domain/entities}/FieldEventConverter.js +1 -1
  47. package/es/library/behaviours/text-to-field-click/frameworks/ui/EventHandlersFactory.js +1 -1
  48. package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +1 -1
  49. package/es/library/custom-component/adapters/gateways/service/Service.js +6 -6
  50. package/es/library/custom-component/{usecases → applications}/entities-factory/BehavioursFactory.js +1 -1
  51. package/es/library/custom-component/{usecases → applications}/entities-factory/ComponentFactory.js +3 -3
  52. package/es/library/custom-component/{usecases → applications}/entities-factory/EventHandlersFactory.js +1 -1
  53. package/es/library/custom-component/{usecases → applications}/entities-factory/PropertiesFactory.js +9 -3
  54. package/es/library/custom-component/{usecases/interactors → applications/usecases}/UnmountUseCase.js +1 -1
  55. package/es/library/custom-component/{entities → domain/entities}/Component.js +40 -7
  56. package/es/library/custom-component/{entities → domain/entities}/DefaultAppendToActionPayload.js +2 -2
  57. package/es/library/custom-component/{entities → domain/entities}/Properties.js +4 -5
  58. package/es/library/custom-component/frameworks/ui/__testcases__/CreateCustomComponent.spec.js +106 -0
  59. package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +7 -0
  60. package/es/library/dot/components/action-location/frameworks/ui/ActionLocationView.js +8 -29
  61. package/es/library/dot/components/actions-renderer/frameworks/ui/ActionsRenderer.js +9 -0
  62. package/es/library/dot/components/actions-renderer/frameworks/ui/ActionsRendererView.js +37 -0
  63. package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +16 -6
  64. package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +10 -0
  65. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +8 -6
  66. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.js +12 -14
  67. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/ActionColumn.js +3 -2
  68. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +22 -9
  69. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/Headers.js +0 -4
  70. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/SelectAll.js +4 -4
  71. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Columns.js +2 -6
  72. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +24 -14
  73. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +10 -4
  74. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +18 -7
  75. package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/ActionIcon.js +27 -0
  76. package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/ActionIconView.js +110 -0
  77. package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/css/ActionIcon.module.css +3 -0
  78. package/es/library/dot/legacy-to-new-arch/index.js +1 -1
  79. package/es/library/dot/legacy-to-new-arch/table-field-components/lookup-field/frameworks/ui/LookupFieldView.js +7 -6
  80. package/es/platform/client-actions/Readme.md +31 -0
  81. package/es/platform/client-actions/bc/zclient-actions/Constants.js +11 -0
  82. package/es/platform/client-actions/bc/zclient-actions/EventHandlers.js +1 -0
  83. package/es/platform/client-actions/behaviour/zclient-actions/Readme.md +31 -0
  84. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/ClientActionBehaviourExecutorController.js +27 -0
  85. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/FailureController.js +28 -0
  86. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/FetchStateStopController.js +21 -0
  87. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/MountController.js +25 -0
  88. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/NoContentController.js +23 -0
  89. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/SetClientActionsController.js +24 -0
  90. package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/SuccessController.js +28 -0
  91. package/es/platform/client-actions/behaviour/zclient-actions/adapters/gateways/Repository.js +28 -0
  92. package/es/platform/client-actions/behaviour/zclient-actions/adapters/gateways/Service.js +35 -0
  93. package/es/platform/client-actions/behaviour/zclient-actions/adapters/presenters/Presenter.js +24 -0
  94. package/es/platform/client-actions/behaviour/zclient-actions/applications/entities-factory/ClientActionFactory.js +12 -0
  95. package/es/platform/client-actions/behaviour/zclient-actions/applications/entities-factory/ClientActionManagerFactory.js +10 -0
  96. package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/ExecuteActionBehaviourUseCase.js +33 -0
  97. package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/FailureUseCase.js +22 -0
  98. package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/FetchStateStopUseCase.js +25 -0
  99. package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/InitializeUseCase.js +17 -0
  100. package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/NoContentUseCase.js +27 -0
  101. package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/SetClientActionsUseCase.js +21 -0
  102. package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/SuccessUseCase.js +22 -0
  103. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientAction.js +65 -0
  104. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientActionManager.js +141 -0
  105. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientActions.js +50 -0
  106. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/EventMapping.js +36 -0
  107. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/EventMappings.js +15 -0
  108. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/GetClientActionsStrategy.js +44 -0
  109. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/UIComponentMapping.js +41 -0
  110. package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IUIComponentMapping.js +0 -0
  111. package/es/platform/client-actions/behaviour/zclient-actions/frameworks/ActionsHandlersFactory.js +47 -0
  112. package/es/platform/client-actions/behaviour/zclient-actions/frameworks/ClientActionsBehaviourFactory.js +12 -0
  113. package/es/platform/client-actions/cc/action-event-mediator/Properties.js +34 -0
  114. package/es/platform/client-actions/cc/dynamic-action-component/Properties.js +51 -0
  115. package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/MountController.js +18 -0
  116. package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/PropertiesChangeController.js +26 -0
  117. package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/UnmountController.js +18 -0
  118. package/es/platform/client-actions/components/action-event-mediator/adapters/gateway/Repository.js +36 -0
  119. package/es/platform/client-actions/components/action-event-mediator/adapters/presenters/Presenter.js +22 -0
  120. package/es/platform/client-actions/components/action-event-mediator/applications/interfaces/gateways/IRepository.js +0 -0
  121. package/es/platform/client-actions/components/action-event-mediator/applications/interfaces/output/IPresenter.js +0 -0
  122. package/es/platform/client-actions/components/action-event-mediator/applications/usecases/AbstractUseCase.js +15 -0
  123. package/es/platform/client-actions/components/action-event-mediator/applications/usecases/DestroyUseCase.js +13 -0
  124. package/es/platform/client-actions/components/action-event-mediator/applications/usecases/InitializeUseCase.js +13 -0
  125. package/es/platform/client-actions/components/action-event-mediator/applications/usecases/PropertiesChangeUseCase.js +17 -0
  126. package/es/platform/client-actions/components/action-event-mediator/domain/entities/ActionEventMediatorEntity.js +108 -0
  127. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator.js +13 -0
  128. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediatorView.js +19 -0
  129. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/EventHandlersFactory.js +30 -0
  130. package/es/platform/client-actions/components/dynamic-component/frameworks/ui/DynamicActionComponent.js +9 -0
  131. package/es/platform/client-actions/components/dynamic-component/frameworks/ui/DynamicActionComponentView.js +34 -0
  132. package/es/platform/client-actions/components/interfaces/ActionViewModel.js +7 -0
  133. package/es/platform/client-actions/components/interfaces/EventMappingViewModel.js +0 -0
  134. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRenderer.js +12 -0
  135. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRenderer.module.css +17 -0
  136. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRendererView.js +30 -0
  137. package/es/platform/client-actions/template-resolver/index.js +44 -0
  138. package/es/platform/client-actions/translators/client-actions-translator/index.js +29 -0
  139. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalEmptyString.js +4 -0
  140. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalEndsWith.js +4 -0
  141. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalEquals.js +4 -0
  142. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalGreaterThan.js +4 -0
  143. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalGreaterThanOrEquals.js +4 -0
  144. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalIn.js +4 -0
  145. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalIsEmpty.js +4 -0
  146. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalIsNotEmpty.js +4 -0
  147. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalLessThan.js +4 -0
  148. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalLessThanOrEquals.js +4 -0
  149. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalLike.js +4 -0
  150. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalNotEquals.js +4 -0
  151. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalNotLike.js +4 -0
  152. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/EvalStartsWith.js +4 -0
  153. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/GetResolvedContextFieldValue.js +8 -0
  154. package/es/platform/client-actions/translators/condition-resolver/field-evaluators/index.js +58 -0
  155. package/es/platform/client-actions/translators/condition-resolver/index.js +33 -0
  156. package/es/platform/client-actions/translators/condition-resolver/pattern-evaluator/PatternValidator.js +86 -0
  157. package/es/platform/client-actions/translators/condition-resolver/pattern-evaluator/index.js +96 -0
  158. package/es/platform/client-actions/translators/context-resolver/index.js +54 -0
  159. package/es/platform/{data-broker → data-source}/http-template/deleteRecord.js +1 -1
  160. package/es/platform/{data-broker → data-source}/http-template/deleteRecords.js +1 -1
  161. package/es/platform/{data-broker → data-source}/http-template/getAvailableFields.js +5 -5
  162. package/es/platform/data-source/http-template/getClientActions.js +23 -0
  163. package/es/platform/{data-broker → data-source}/http-template/getRecords.js +1 -1
  164. package/es/platform/{data-broker → data-source}/http-template/getSelectedFields.js +5 -5
  165. package/es/platform/{data-broker → data-source}/http-template/updateRecord.js +1 -1
  166. package/es/platform/{data-broker → data-source}/index.js +5 -5
  167. package/es/platform/{data-broker → data-source}/utils/transformer/CreateCf.js +1 -1
  168. package/es/platform/zdata-source/adapters/controllers/AbstractController.js +8 -0
  169. package/es/platform/{zdata-broker/adapters/controllers/ActionExecutorController.js → zdata-source/adapters/controllers/DataSourceExecutorController.js} +1 -1
  170. package/es/platform/{zdata-broker → zdata-source}/adapters/gateways/Repository.js +5 -5
  171. package/es/platform/{zdata-broker → zdata-source}/adapters/gateways/Service.js +5 -5
  172. package/es/platform/{zdata-broker → zdata-source}/adapters/gateways/TemplateHelpers.js +21 -0
  173. package/es/platform/{zdata-broker → zdata-source}/adapters/presenters/Presenter.js +4 -4
  174. package/es/platform/{zdata-broker/usecases → zdata-source/applications}/entities-factory/APITemplatesFactory.js +2 -2
  175. package/es/platform/{zdata-broker/usecases/entities-factory/DataBrokerFactory.js → zdata-source/applications/entities-factory/DataSourceFactory.js} +3 -4
  176. package/es/platform/zdata-source/applications/interfaces/gateways/IService.js +0 -0
  177. package/es/platform/zdata-source/applications/interfaces/gateways/ITemplateHelpers.js +1 -0
  178. package/es/platform/{zdata-broker/usecases/interactors → zdata-source/applications/usecases}/ExecuteActionUseCase.js +3 -3
  179. package/es/platform/{zdata-broker/usecases/interactors → zdata-source/applications/usecases}/FailureUseCase.js +3 -3
  180. package/es/platform/{zdata-broker/usecases/interactors → zdata-source/applications/usecases}/NoContentUseCase.js +3 -3
  181. package/es/platform/{zdata-broker/usecases/interactors → zdata-source/applications/usecases}/SuccessUseCase.js +4 -4
  182. package/es/platform/{zdata-broker/entities/DataBroker.js → zdata-source/domain/entities/DataSource.js} +13 -13
  183. package/es/platform/zdata-source/domain/entities/interfaces/IDataSource.js +0 -0
  184. package/es/platform/zdata-source/domain/entities/interfaces/MetaData.js +1 -0
  185. package/es/platform/{zdata-broker → zdata-source}/frameworks/DataBrokerBehaviourFactory.js +2 -2
  186. package/es/platform/{zdata-broker → zdata-source}/frameworks/EventHandlersFactory.js +7 -12
  187. package/es/platform/zfield/adapters/gateways/Repository.js +1 -1
  188. package/es/platform/zfield/adapters/gateways/Service.js +6 -6
  189. package/es/platform/zfield/{usecases → applications}/entities-factory/FieldsManagerBuilder.js +1 -1
  190. package/es/platform/zfield/applications/interfaces/input/FetchInputModel.js +2 -0
  191. package/es/platform/zfield/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +1 -1
  192. package/es/platform/zfield/{usecases/interactors → applications/usecases}/InitializeUseCase.js +2 -2
  193. package/es/platform/zfield/{usecases/interactors → applications/usecases}/RefetchUseCase.js +1 -1
  194. package/es/platform/zfield/{entities → domain/entities}/fields-manager/AvailableFieldsManager.js +2 -2
  195. package/es/platform/zfield/{entities → domain/entities}/fields-manager/FieldsManager.js +6 -6
  196. package/es/platform/zfield/{entities → domain/entities}/fields-manager/SelectedFieldsManager.js +2 -2
  197. package/es/platform/zfield/domain/entities/interfaces/FieldModel.js +1 -0
  198. package/es/platform/zfield/domain/entities/interfaces/IField.js +1 -0
  199. package/es/platform/zfield/domain/entities/interfaces/IFieldManger.js +1 -0
  200. package/es/platform/zfield/{entities → domain/entities}/interfaces/MetaData.js +1 -1
  201. package/es/platform/zfield/frameworks/ActionHandlerFactory.js +4 -4
  202. package/es/platform/zhttp/applications/interfaces/InputDependencies.js +1 -0
  203. package/es/platform/zhttp/applications/interfaces/UseCase.js +1 -0
  204. package/es/platform/zhttp/applications/interfaces/gateway/IFetchGateWay.js +1 -0
  205. package/es/platform/zhttp/applications/interfaces/input/FetchInputModel.js +1 -0
  206. package/es/platform/zhttp/frameworks/ActionsHandlerFactory.js +1 -1
  207. package/es/platform/zhttp/frameworks/ZHttpBehaviourFactory.js +2 -1
  208. package/es/platform/zlist/adapters/controllers/DeleteSuccessController.js +25 -0
  209. package/es/platform/zlist/adapters/controllers/UpdateSuccessController.js +25 -0
  210. package/es/platform/zlist/adapters/gateways/Repository.js +10 -9
  211. package/es/platform/zlist/adapters/gateways/Service.js +18 -10
  212. package/es/platform/zlist/adapters/presenters/TableTranslator.js +54 -12
  213. package/es/platform/zlist/adapters/presenters/translators/ColumnAlignmentTranslator.js +11 -0
  214. package/es/platform/zlist/adapters/presenters/translators/ColumnSizeTranslator.js +23 -0
  215. package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +16 -8
  216. package/es/platform/zlist/adapters/presenters/translators/Header.js +10 -4
  217. package/es/platform/zlist/adapters/presenters/translators/HeadersTranslator.js +4 -2
  218. package/es/platform/zlist/adapters/presenters/translators/Row.js +13 -5
  219. package/es/platform/zlist/adapters/presenters/translators/RowActionTranslator.js +20 -13
  220. package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +9 -5
  221. package/es/platform/zlist/adapters/presenters/translators/actions/ActionsTranslator.js +89 -0
  222. package/es/platform/zlist/adapters/presenters/translators/interfaces/Context.js +1 -0
  223. package/es/platform/zlist/adapters/presenters/translators/interfaces/FieldComponentMapping.js +1 -0
  224. package/es/platform/zlist/applications/entities-factory/ListFactory.js +16 -0
  225. package/es/platform/zlist/applications/interfaces/State.js +1 -0
  226. package/es/platform/zlist/applications/interfaces/UseCaseDependencies.js +1 -0
  227. package/es/platform/zlist/applications/interfaces/gateways/IRepository.js +1 -0
  228. package/es/platform/zlist/applications/interfaces/gateways/IService.js +1 -0
  229. package/es/platform/zlist/applications/interfaces/gateways/ISortBy.js +1 -0
  230. package/es/platform/zlist/applications/interfaces/gateways/ITransformState.js +0 -0
  231. package/es/platform/zlist/applications/interfaces/input/DeleteMultipleRecordUseCaseInput.js +1 -0
  232. package/es/platform/zlist/applications/interfaces/input/DeleteSingleRecordUseCaseInput.js +1 -0
  233. package/es/platform/zlist/applications/interfaces/input/FetchMoreInput.js +1 -0
  234. package/es/platform/zlist/applications/interfaces/input/FieldChangeUseCaseInput.js +1 -0
  235. package/es/platform/zlist/applications/interfaces/input/InitializeInput.js +1 -0
  236. package/es/platform/zlist/applications/interfaces/input/PropertiesChangeUseCaseInput.js +1 -0
  237. package/es/platform/zlist/applications/interfaces/input/RecordExecuteFailedUseCaseInput.js +1 -0
  238. package/es/platform/zlist/applications/interfaces/input/RecordExecuteSucceededUseCaseInput.js +1 -0
  239. package/es/platform/zlist/applications/interfaces/input/RecordUpdateUseCaseInput.js +1 -0
  240. package/es/platform/zlist/applications/interfaces/input/SortingInputModel.js +1 -0
  241. package/es/platform/zlist/applications/usecases/DeleteSuccessUseCase.js +19 -0
  242. package/es/platform/zlist/applications/usecases/UpdateSuccessUseCase.js +19 -0
  243. package/es/platform/zlist/{entities → domain/entities}/List.js +61 -30
  244. package/es/platform/zlist/domain/entities/interfaces/ActionModel.js +1 -0
  245. package/es/platform/zlist/domain/entities/interfaces/ApiPropsModel.js +1 -0
  246. package/es/platform/zlist/domain/entities/interfaces/IList.js +1 -0
  247. package/es/platform/zlist/domain/entities/interfaces/Properties.js +1 -0
  248. package/es/platform/zlist/domain/entities/interfaces/RecordExecuteAfterMetaData.js +1 -0
  249. package/es/platform/zlist/frameworks/EventHandlersFactory.js +17 -23
  250. package/es/platform/zrecord/adapters/gateways/Repository.js +1 -1
  251. package/es/platform/zrecord/adapters/gateways/Service.js +13 -13
  252. package/es/platform/zrecord/{usecases → applications}/entities-factory/RecordFactory.js +1 -1
  253. package/es/platform/zrecord/{usecases → applications}/entities-factory/RecordsManagerFactory.js +2 -2
  254. package/es/platform/zrecord/applications/interfaces/InputDependencies.js +1 -0
  255. package/es/platform/zrecord/applications/interfaces/gateways/IRepository.js +1 -0
  256. package/es/platform/zrecord/applications/interfaces/gateways/IService.js +0 -0
  257. package/es/platform/zrecord/applications/interfaces/gateways/State.js +1 -0
  258. package/es/platform/zrecord/applications/interfaces/input/AppendRecordsInputModel.js +1 -0
  259. package/es/platform/zrecord/applications/interfaces/input/DeleteMultipleRecordInputModel.js +1 -0
  260. package/es/platform/zrecord/applications/interfaces/input/ExecuteActionInputModel.js +1 -0
  261. package/es/platform/zrecord/applications/interfaces/input/FailureInputModel.js +1 -0
  262. package/es/platform/zrecord/applications/interfaces/input/FetchMoreInputModel.js +1 -0
  263. package/es/platform/zrecord/applications/interfaces/input/FetchStateStopInputModel.js +1 -0
  264. package/es/platform/zrecord/applications/interfaces/input/FieldChangeUseCaseInput.js +1 -0
  265. package/es/platform/zrecord/applications/interfaces/input/InitializeInputModel.js +1 -0
  266. package/es/platform/zrecord/applications/interfaces/input/NoContentInputModel.js +1 -0
  267. package/es/platform/zrecord/applications/interfaces/input/RecordUpdateLocalUseCaseInputModel.js +1 -0
  268. package/es/platform/zrecord/applications/interfaces/input/RefetchInputModel.js +1 -0
  269. package/es/platform/zrecord/applications/interfaces/input/SetRecordsInputModel.js +1 -0
  270. package/es/platform/zrecord/applications/interfaces/input/SuccessInputModel.js +1 -0
  271. package/es/platform/zrecord/applications/interfaces/output/IPresenter.js +1 -0
  272. package/es/platform/zrecord/applications/usecases/AbstractUseCase.js +17 -0
  273. package/es/platform/zrecord/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +1 -1
  274. package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FetchMoreUseCase.js +1 -1
  275. package/es/platform/zrecord/{usecases/interactors → applications/usecases}/InitializeUseCase.js +2 -2
  276. package/es/platform/zrecord/{usecases/interactors → applications/usecases}/RefetchUseCase.js +1 -1
  277. package/es/platform/zrecord/{entities → domain/entities}/DeleteMultipleRecordStrategy.js +1 -1
  278. package/es/platform/zrecord/{entities → domain/entities}/DeleteRecordStrategy.js +1 -1
  279. package/es/platform/zrecord/{entities → domain/entities}/GetRecordsStrategy.js +1 -1
  280. package/es/platform/zrecord/{entities → domain/entities}/RecordsManager.js +11 -11
  281. package/es/platform/zrecord/{entities → domain/entities}/UpdateRecordStrategy.js +1 -1
  282. package/es/platform/zrecord/domain/entities/interfaces/BehaviourState.js +1 -0
  283. package/es/platform/zrecord/domain/entities/interfaces/EventModel.js +1 -0
  284. package/es/platform/zrecord/domain/entities/interfaces/ICustomFieldValues.js +1 -0
  285. package/es/platform/zrecord/domain/entities/interfaces/IRecord.js +0 -0
  286. package/es/platform/zrecord/domain/entities/interfaces/IRecordExecuteStrategy.js +0 -0
  287. package/es/platform/zrecord/domain/entities/interfaces/IRecordName.js +1 -0
  288. package/es/platform/zrecord/domain/entities/interfaces/IRecords.js +0 -0
  289. package/es/platform/zrecord/domain/entities/interfaces/IRecordsManager.js +0 -0
  290. package/es/platform/zrecord/domain/entities/interfaces/RecordModel.js +1 -0
  291. package/es/platform/zrecord/domain/entities/interfaces/RecordsModel.js +1 -0
  292. package/es/platform/zrecord/domain/entities/interfaces/StrategyMeta.js +1 -0
  293. package/package.json +31 -23
  294. package/es/bc/zdata-broker/EventHandlers.js +0 -2
  295. package/es/bc/zdata-broker/Symbols.js +0 -5
  296. package/es/cc/table-list/behaviour-properties/ResizerConfig.js +0 -18
  297. package/es/cc/table-list/behaviour-properties/SelectionConfig.js +0 -17
  298. package/es/cc/table-list/behaviour-properties/SortByConfig.js +0 -14
  299. package/es/cc/table-list/behaviour-properties/index.js +0 -3
  300. package/es/library/custom-component/entities/__tests__/Action.spec.js +0 -19
  301. package/es/library/custom-component/entities/__tests__/ActionHandlers.spec.js +0 -15
  302. package/es/library/custom-component/entities/__tests__/Behaviour.spec.js +0 -52
  303. package/es/library/custom-component/entities/__tests__/Component.spec.js +0 -109
  304. package/es/library/dot/legacy-to-new-arch/action-icon/ActionIcon.js +0 -11
  305. package/es/library/dot/legacy-to-new-arch/action-icon/ActionIconView.js +0 -30
  306. package/es/platform/data-broker/http-template/getUIActions.js +0 -22
  307. package/es/platform/zdata-broker/entities/interfaces/MetaData.js +0 -1
  308. package/es/platform/zdata-broker/usecases/interfaces/gateways/ITemplateHelpers.js +0 -1
  309. package/es/platform/zfield/usecases/interfaces/gateways/ITemplateHelpers.js +0 -1
  310. package/es/platform/zfield/usecases/interfaces/input/FetchInputModel.js +0 -2
  311. package/es/platform/zlist/usecases/entities-factory/ListFactory.js +0 -15
  312. /package/es/bc/{zdata-broker → zdata-source}/Properties.js +0 -0
  313. /package/es/{library/behaviours/list-selection/entities/interfaces/IListItemSelection.js → cc/action-location/Action.js} +0 -0
  314. /package/es/{library/behaviours/list-selection/entities/interfaces/ListSelectionModel.js → cc/action-location/ActionLocation.js} +0 -0
  315. /package/es/{library/behaviours/list-selection/usecases/interfaces/UseCase.js → cc/table-list/data-types/RowAction.js} +0 -0
  316. /package/es/{library/behaviours/list-selection/usecases/interfaces/UseCaseDependencies.js → cc/table-list/data-types/RowActionsConfig.js} +0 -0
  317. /package/es/library/{custom-component/usecases → behaviours/list-selection/applications}/interfaces/UseCase.js +0 -0
  318. /package/es/library/behaviours/{sort-by/usecases → list-selection/applications}/interfaces/UseCaseDependencies.js +0 -0
  319. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
  320. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/gateways/IService.js +0 -0
  321. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/AllSelectionInputModel.js +0 -0
  322. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/DestructInputModel.js +0 -0
  323. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/InitializeInputModel.js +0 -0
  324. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/RangeSelectionInputModel.js +0 -0
  325. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/SelectionInputModel.js +0 -0
  326. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/output/BehaviourStateModel.js +0 -0
  327. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/output/IPresenter.js +0 -0
  328. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  329. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/AllItemSelection.js +0 -0
  330. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/Destruct.js +0 -0
  331. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/Initialize.js +0 -0
  332. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/ItemsSelection.js +0 -0
  333. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/RangeSelection.js +0 -0
  334. /package/es/library/behaviours/{sort-by/entities/interfaces/ISortBy.js → list-selection/domain/entities/interfaces/IListItemSelection.js} +0 -0
  335. /package/es/library/behaviours/{sort-by/usecases/interfaces/gateways/IRepository.js → list-selection/domain/entities/interfaces/ListSelectionModel.js} +0 -0
  336. /package/es/library/behaviours/{text-to-field-click/usecases → sort-by/applications}/interfaces/UseCaseDependencies.js +0 -0
  337. /package/es/library/behaviours/{text-to-field-click/usecases → sort-by/applications}/interfaces/gateways/IRepository.js +0 -0
  338. /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/gateways/IService.js +0 -0
  339. /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/input/SortByInputModel.js +0 -0
  340. /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/output/IPresenter.js +0 -0
  341. /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/output/SortByOutputModel.js +0 -0
  342. /package/es/library/behaviours/sort-by/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  343. /package/es/library/behaviours/sort-by/{usecases/interactors → applications/usecases}/SortBy.js +0 -0
  344. /package/es/{platform/zlist/usecases/interfaces/gateways → library/behaviours/sort-by/domain/entities/interfaces}/ISortBy.js +0 -0
  345. /package/es/{platform/zlist/usecases → library/behaviours/text-to-field-click/applications}/interfaces/UseCaseDependencies.js +0 -0
  346. /package/es/library/{custom-component/usecases → behaviours/text-to-field-click/applications}/interfaces/gateways/IRepository.js +0 -0
  347. /package/es/library/behaviours/text-to-field-click/{usecases → applications}/interfaces/input/ClickUseCaseInputModel.js +0 -0
  348. /package/es/library/behaviours/text-to-field-click/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  349. /package/es/library/behaviours/text-to-field-click/{usecases/interactors → applications/usecases}/ClickUseCase.js +0 -0
  350. /package/es/library/behaviours/text-to-field-click/{entities → domain/entities}/interfaces/IFieldEventConverter.js +0 -0
  351. /package/es/library/custom-component/{usecases → applications}/interfaces/InputDependencies.js +0 -0
  352. /package/es/library/custom-component/{usecases → applications}/interfaces/OutputDependencies.js +0 -0
  353. /package/es/{platform/zhttp/usecases → library/custom-component/applications}/interfaces/UseCase.js +0 -0
  354. /package/es/library/custom-component/{usecases → applications}/interfaces/gateways/IEventManager.js +0 -0
  355. /package/es/library/custom-component/{usecases → applications}/interfaces/gateways/IJSONValidator.js +0 -0
  356. /package/es/{platform/zdata-broker/usecases → library/custom-component/applications}/interfaces/gateways/IRepository.js +0 -0
  357. /package/es/library/custom-component/{usecases → applications}/interfaces/gateways/IService.js +0 -0
  358. /package/es/library/custom-component/{usecases → applications}/interfaces/input/DispatchInputModel.js +0 -0
  359. /package/es/library/custom-component/{usecases → applications}/interfaces/input/InitailizeInputModel.js +0 -0
  360. /package/es/library/custom-component/{usecases → applications}/interfaces/input/UpdatePropertiesInputModel.js +0 -0
  361. /package/es/library/custom-component/{usecases → applications}/interfaces/input/UpdateStateInputModel.js +0 -0
  362. /package/es/library/custom-component/{usecases → applications}/interfaces/output/OutputBoundary.js +0 -0
  363. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  364. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/DispatchUseCase.js +0 -0
  365. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
  366. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/MountUseCase.js +0 -0
  367. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/UpdatePropertyUseCase.js +0 -0
  368. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/UpdateStateUseCase.js +0 -0
  369. /package/es/library/custom-component/{entities → domain/entities}/Behaviour.js +0 -0
  370. /package/es/library/custom-component/{entities → domain/entities}/EventHandler.js +0 -0
  371. /package/es/library/custom-component/{entities → domain/entities}/EventHandlers.js +0 -0
  372. /package/es/library/custom-component/{entities → domain/entities}/Events.js +0 -0
  373. /package/es/library/custom-component/{entities → domain/entities}/LifeCycleAction.js +0 -0
  374. /package/es/library/custom-component/{entities → domain/entities}/Payload.js +0 -0
  375. /package/es/library/custom-component/{entities → domain/entities}/Property.js +0 -0
  376. /package/es/library/custom-component/{entities → domain/entities}/Schema.js +0 -0
  377. /package/es/library/custom-component/{entities → domain/entities}/State.js +0 -0
  378. /package/es/library/custom-component/{entities → domain/entities}/Style.js +0 -0
  379. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IBehaviour.js +0 -0
  380. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IComponent.js +0 -0
  381. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEvent.js +0 -0
  382. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventHandler.js +0 -0
  383. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventHandlerHelpers.js +0 -0
  384. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventHandlers.js +0 -0
  385. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventWrapper.js +0 -0
  386. /package/es/library/custom-component/{entities → domain/entities}/interfaces/ILifeCycleAction.js +0 -0
  387. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IPayload.js +0 -0
  388. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IProperties.js +0 -0
  389. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IProperty.js +0 -0
  390. /package/es/library/custom-component/{entities → domain/entities}/interfaces/ISchema.js +0 -0
  391. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IState.js +0 -0
  392. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IStyle.js +0 -0
  393. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IUpdateHelper.js +0 -0
  394. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IValidator.js +0 -0
  395. /package/es/platform/{zdata-broker → client-actions/behaviour/zclient-actions}/adapters/controllers/AbstractController.js +0 -0
  396. /package/es/platform/{data-broker/dbc/index.js → client-actions/behaviour/zclient-actions/applications/interfaces/ClientActionModel.js} +0 -0
  397. /package/es/platform/{zdata-broker/entities/interfaces/APIDetailsModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/ComponentPropertiesModel.js} +0 -0
  398. /package/es/platform/{zdata-broker/entities/interfaces/APITemplateModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/ConditionFieldModel.js} +0 -0
  399. /package/es/platform/{zdata-broker/entities/interfaces/APITemplatesModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/ConditionModel.js} +0 -0
  400. /package/es/platform/{zdata-broker/entities/interfaces/BehaviourState.js → client-actions/behaviour/zclient-actions/applications/interfaces/EventMappingModel.js} +0 -0
  401. /package/es/platform/{zdata-broker/entities/interfaces/EventModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/IError.js} +0 -0
  402. /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/InputDependencies.js +0 -0
  403. /package/es/platform/{zdata-broker/entities/interfaces/IAPITemplate.js → client-actions/behaviour/zclient-actions/applications/interfaces/PayloadValueMappingModel.js} +0 -0
  404. /package/es/platform/{zdata-broker/entities/interfaces/IAPITemplates.js → client-actions/behaviour/zclient-actions/applications/interfaces/PropsMeta.js} +0 -0
  405. /package/es/platform/{zrecord/entities → client-actions/behaviour/zclient-actions/applications}/interfaces/StrategyMeta.js +0 -0
  406. /package/es/platform/{zdata-broker/entities/interfaces/ITemplateHelpers.js → client-actions/behaviour/zclient-actions/applications/interfaces/UIComponentMappingModel.js} +0 -0
  407. /package/es/platform/{zdata-broker/usecases/interfaces/gateways/State.js → client-actions/behaviour/zclient-actions/applications/interfaces/UserDetailsModel.js} +0 -0
  408. /package/es/platform/{zfield/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/gateways/IRepository.js +0 -0
  409. /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/gateways/IService.js +0 -0
  410. /package/es/platform/{zlist/usecases/interfaces → client-actions/behaviour/zclient-actions/applications/interfaces/gateways}/State.js +0 -0
  411. /package/es/platform/{zdata-broker/usecases/interfaces/input/ExecuteActionInputModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/input/ExecuteActionBehaviourInputModel.js} +0 -0
  412. /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/FailureInputModel.js +0 -0
  413. /package/es/platform/{zrecord/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/FetchStateStopInputModel.js +0 -0
  414. /package/es/platform/{zrecord/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/InitializeInputModel.js +0 -0
  415. /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/NoContentInputModel.js +0 -0
  416. /package/es/platform/{zdata-broker/usecases/interfaces/input/RegisterInputModel.js → client-actions/behaviour/zclient-actions/applications/interfaces/input/SetClientActionsInputModel.js} +0 -0
  417. /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/input/SuccessInputModel.js +0 -0
  418. /package/es/platform/{zdata-broker/usecases → client-actions/behaviour/zclient-actions/applications}/interfaces/output/IPresenter.js +0 -0
  419. /package/es/platform/{zdata-broker/usecases/interactors → client-actions/behaviour/zclient-actions/applications/usecases}/AbstractUseCase.js +0 -0
  420. /package/es/platform/{zfield → client-actions/behaviour/zclient-actions/domain}/entities/interfaces/BehaviourState.js +0 -0
  421. /package/es/platform/{zfield/entities/interfaces/ActionModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionModel.js} +0 -0
  422. /package/es/platform/{zfield/entities/interfaces/FieldModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionsModel.js} +0 -0
  423. /package/es/platform/{zfield/entities/interfaces/IField.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ComponentPropertiesModel.js} +0 -0
  424. /package/es/platform/{zfield/entities/interfaces/IFieldManger.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ConditionFieldModel.js} +0 -0
  425. /package/es/platform/{zfield/usecases/interfaces/UsecaseDependencies.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/ConditionModel.js} +0 -0
  426. /package/es/platform/{zfield/usecases/interfaces/gateways/IRestApi.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/EventMappingModel.js} +0 -0
  427. /package/es/platform/{zrecord → client-actions/behaviour/zclient-actions/domain}/entities/interfaces/EventModel.js +0 -0
  428. /package/es/platform/{zfield/usecases/interfaces/gateways/IService.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IAction.js} +0 -0
  429. /package/es/platform/{zdata-broker/entities/interfaces/IDataBroker.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientAction.js} +0 -0
  430. /package/es/platform/{zlist/usecases/interfaces/gateways/ITransformState.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActionExecuteStrategy.js} +0 -0
  431. /package/es/platform/{zrecord/entities/interfaces/IRecord.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActionManager.js} +0 -0
  432. /package/es/platform/{zrecord/entities/interfaces/IRecordExecuteStrategy.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActions.js} +0 -0
  433. /package/es/platform/{zfield/usecases/interfaces/input/ExecuteActionInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IError.js} +0 -0
  434. /package/es/platform/{zfield/usecases/interfaces/input/InitialInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IEvent.js} +0 -0
  435. /package/es/platform/{zrecord/entities/interfaces/IRecords.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IEventMapping.js} +0 -0
  436. /package/es/platform/{zrecord/entities/interfaces/IRecordsManager.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IEventMappings.js} +0 -0
  437. /package/es/platform/{zrecord/usecases/interfaces/gateways/IService.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/IPayload.js} +0 -0
  438. /package/es/platform/{zfield/usecases/interfaces/input/InputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/PayloadValueMappingModel.js} +0 -0
  439. /package/es/platform/{zfield/usecases/interfaces/input/RefetchInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/PropsMeta.js} +0 -0
  440. /package/es/platform/{zrecord/usecases/interfaces/gateways → client-actions/behaviour/zclient-actions/domain/entities/interfaces}/State.js +0 -0
  441. /package/es/platform/{zfield/usecases/interfaces/input/SetValueInputModel.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/StrategyMeta.js} +0 -0
  442. /package/es/platform/{zfield/usecases/interfaces/output/IPresenter.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/SubMeta.js} +0 -0
  443. /package/es/platform/{zhttp/usecases/interfaces/InputDependencies.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/UIComponentMappingModel.js} +0 -0
  444. /package/es/platform/{zhttp/usecases/interfaces/gateway/IFetchGateWay.js → client-actions/behaviour/zclient-actions/domain/entities/interfaces/UserDetailsModel.js} +0 -0
  445. /package/es/platform/{zhttp/usecases/interfaces/input/FetchInputModel.js → client-actions/components/action-event-mediator/applications/interfaces/UseCaseDependencies.js} +0 -0
  446. /package/es/platform/{zlist/adapters/presenters/translators/interfaces/FieldUiMapping.js → client-actions/components/action-event-mediator/applications/interfaces/input/PropertiesChangeUseCaseInputModel.js} +0 -0
  447. /package/es/platform/{zlist/adapters/presenters/translators/interfaces/PageContext.js → client-actions/components/action-event-mediator/domain/entities/interfaces/IActionLocation.js} +0 -0
  448. /package/es/platform/{zlist/entities/interfaces/ActionModel.js → client-actions/components/action-event-mediator/domain/entities/interfaces/IState.js} +0 -0
  449. /package/es/platform/{zlist/entities/interfaces/ApiPropsModel.js → client-actions/components/dynamic-component/domain/entities/interfaces/IState.js} +0 -0
  450. /package/es/platform/{zlist/entities/interfaces/IList.js → client-actions/components/row-actions-renderer/domain/entities/interfaces/IState.js} +0 -0
  451. /package/es/platform/{zlist/entities/interfaces/Properties.js → client-actions/template-resolver/interfaces/ITemplate.js} +0 -0
  452. /package/es/platform/{zlist/entities/interfaces/RecordExecuteAfterMetaData.js → client-actions/translators/interfaces/IContext.js} +0 -0
  453. /package/es/platform/{zlist/usecases/interfaces/gateways/IRepository.js → client-actions/translators/interfaces/IState.js} +0 -0
  454. /package/es/platform/{zlist/usecases/interfaces/gateways/IService.js → data-source/dbc/index.js} +0 -0
  455. /package/es/platform/{data-broker → data-source}/utils/transformer/Transformer.js +0 -0
  456. /package/es/platform/{zdata-broker → zdata-source}/adapters/controllers/FailureController.js +0 -0
  457. /package/es/platform/{zdata-broker → zdata-source}/adapters/controllers/NoContentController.js +0 -0
  458. /package/es/platform/{zdata-broker → zdata-source}/adapters/controllers/RegisterController.js +0 -0
  459. /package/es/platform/{zdata-broker → zdata-source}/adapters/controllers/SuccessController.js +0 -0
  460. /package/es/platform/{zrecord/usecases → zdata-source/applications}/interfaces/InputDependencies.js +0 -0
  461. /package/es/platform/{zrecord/usecases → zdata-source/applications}/interfaces/gateways/IRepository.js +0 -0
  462. /package/es/platform/{zlist/usecases/interfaces/input/DeleteMultipleRecordUseCaseInput.js → zdata-source/applications/interfaces/gateways/State.js} +0 -0
  463. /package/es/platform/{zrecord/usecases → zdata-source/applications}/interfaces/input/ExecuteActionInputModel.js +0 -0
  464. /package/es/platform/{zrecord/usecases → zdata-source/applications}/interfaces/input/FailureInputModel.js +0 -0
  465. /package/es/platform/{zrecord/usecases → zdata-source/applications}/interfaces/input/NoContentInputModel.js +0 -0
  466. /package/es/platform/{zlist/usecases/interfaces/input/DeleteSingleRecordUseCaseInput.js → zdata-source/applications/interfaces/input/RegisterInputModel.js} +0 -0
  467. /package/es/platform/{zrecord/usecases → zdata-source/applications}/interfaces/input/SuccessInputModel.js +0 -0
  468. /package/es/platform/{zrecord/usecases → zdata-source/applications}/interfaces/output/IPresenter.js +0 -0
  469. /package/es/platform/{zrecord/usecases/interactors → zdata-source/applications/usecases}/AbstractUseCase.js +0 -0
  470. /package/es/platform/{zdata-broker/usecases/interactors → zdata-source/applications/usecases}/RegisterUseCase.js +0 -0
  471. /package/es/platform/{zdata-broker → zdata-source/domain}/entities/APITemplate.js +0 -0
  472. /package/es/platform/{zdata-broker → zdata-source/domain}/entities/APITemplates.js +0 -0
  473. /package/es/platform/{zlist/usecases/interfaces/input/FetchMoreInput.js → zdata-source/domain/entities/interfaces/APIDetailsModel.js} +0 -0
  474. /package/es/platform/{zlist/usecases/interfaces/input/FieldChangeUseCaseInput.js → zdata-source/domain/entities/interfaces/APITemplateModel.js} +0 -0
  475. /package/es/platform/{zlist/usecases/interfaces/input/InitializeInput.js → zdata-source/domain/entities/interfaces/APITemplatesModel.js} +0 -0
  476. /package/es/platform/{zdata-broker → zdata-source/domain}/entities/interfaces/ApiEnum.js +0 -0
  477. /package/es/platform/{zrecord → zdata-source/domain}/entities/interfaces/BehaviourState.js +0 -0
  478. /package/es/platform/{zlist/usecases/interfaces/input/PropertiesChangeUseCaseInput.js → zdata-source/domain/entities/interfaces/EventModel.js} +0 -0
  479. /package/es/platform/{zlist/usecases/interfaces/input/RecordExecuteFailedUseCaseInput.js → zdata-source/domain/entities/interfaces/IAPITemplate.js} +0 -0
  480. /package/es/platform/{zlist/usecases/interfaces/input/RecordExecuteSucceededUseCaseInput.js → zdata-source/domain/entities/interfaces/IAPITemplates.js} +0 -0
  481. /package/es/platform/{zlist/usecases/interfaces/input/RecordUpdateUseCaseInput.js → zdata-source/domain/entities/interfaces/ITemplateHelpers.js} +0 -0
  482. /package/es/platform/zfield/{usecases → applications}/entities-factory/FieldBuilder.js +0 -0
  483. /package/es/platform/zfield/{usecases → applications}/entities-factory/FieldFactory.js +0 -0
  484. /package/es/platform/{zlist/usecases/interfaces/input/SortingInputModel.js → zfield/applications/interfaces/UsecaseDependencies.js} +0 -0
  485. /package/es/platform/{zrecord/entities/interfaces/ICustomFieldValues.js → zfield/applications/interfaces/gateways/IRepository.js} +0 -0
  486. /package/es/platform/{zrecord/entities/interfaces/IRecordName.js → zfield/applications/interfaces/gateways/IRestApi.js} +0 -0
  487. /package/es/platform/{zrecord/entities/interfaces/RecordModel.js → zfield/applications/interfaces/gateways/IService.js} +0 -0
  488. /package/es/platform/{zrecord/entities/interfaces/RecordsModel.js → zfield/applications/interfaces/input/ExecuteActionInputModel.js} +0 -0
  489. /package/es/platform/{zrecord/usecases/interfaces/input/AppendRecordsInputModel.js → zfield/applications/interfaces/input/InitialInputModel.js} +0 -0
  490. /package/es/platform/{zrecord/usecases/interfaces/input/DeleteMultipleRecordInputModel.js → zfield/applications/interfaces/input/InputModel.js} +0 -0
  491. /package/es/platform/{zrecord/usecases → zfield/applications}/interfaces/input/RefetchInputModel.js +0 -0
  492. /package/es/platform/{zrecord/usecases/interfaces/input/FetchMoreInputModel.js → zfield/applications/interfaces/input/SetValueInputModel.js} +0 -0
  493. /package/es/platform/{zrecord/usecases/interfaces/input/FieldChangeUseCaseInput.js → zfield/applications/interfaces/output/IPresenter.js} +0 -0
  494. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  495. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchFailureUseCase.js +0 -0
  496. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchNoContentUseCase.js +0 -0
  497. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchSuccessUseCase.js +0 -0
  498. /package/es/platform/zfield/{entities → domain/entities}/BooleanField.js +0 -0
  499. /package/es/platform/zfield/{entities → domain/entities}/CurrencyField.js +0 -0
  500. /package/es/platform/zfield/{entities → domain/entities}/DateField.js +0 -0
  501. /package/es/platform/zfield/{entities → domain/entities}/DateTimeField.js +0 -0
  502. /package/es/platform/zfield/{entities → domain/entities}/EmailField.js +0 -0
  503. /package/es/platform/zfield/{entities → domain/entities}/Field.js +0 -0
  504. /package/es/platform/zfield/{entities → domain/entities}/LookupField.js +0 -0
  505. /package/es/platform/zfield/{entities → domain/entities}/MultiLineField.js +0 -0
  506. /package/es/platform/zfield/{entities → domain/entities}/MultiSelectField.js +0 -0
  507. /package/es/platform/zfield/{entities → domain/entities}/PercentageField.js +0 -0
  508. /package/es/platform/zfield/{entities → domain/entities}/PhoneField.js +0 -0
  509. /package/es/platform/zfield/{entities → domain/entities}/PickListField.js +0 -0
  510. /package/es/platform/zfield/{entities → domain/entities}/SingleLineField.js +0 -0
  511. /package/es/platform/zfield/{entities → domain/entities}/URLField.js +0 -0
  512. /package/es/platform/zfield/{entities → domain/entities}/index.js +0 -0
  513. /package/es/platform/{zrecord/usecases/interfaces/input/RecordUpdateLocalUseCaseInputModel.js → zfield/domain/entities/interfaces/ActionModel.js} +0 -0
  514. /package/es/platform/{zrecord/usecases/interfaces/input/SetRecordsInputModel.js → zfield/domain/entities/interfaces/BehaviourState.js} +0 -0
  515. /package/es/platform/zfield/{entities → domain/entities}/interfaces/FieldApiName.js +0 -0
  516. /package/es/platform/zhttp/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  517. /package/es/platform/zhttp/{usecases/interactors → applications/usecases}/FetchUseCase.js +0 -0
  518. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  519. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/DeleteMultipleRecordUseCase.js +0 -0
  520. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/DeleteSingleRecordUseCase.js +0 -0
  521. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/FetchMoreUseCase.js +0 -0
  522. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/FieldChangeUseCase.js +0 -0
  523. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
  524. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/PropertiesChangeUseCase.js +0 -0
  525. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/RecordExecuteFailedUseCase.js +0 -0
  526. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/RecordExecuteSucceededUseCase.js +0 -0
  527. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/RecordUpdateUseCase.js +0 -0
  528. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/SortUseCase.js +0 -0
  529. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/AppendRecordsUseCase.js +0 -0
  530. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/DeleteMultipleRecordUseCase.js +0 -0
  531. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FailureUseCase.js +0 -0
  532. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FetchStateStopUseCase.js +0 -0
  533. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FieldChangeUseCase.js +0 -0
  534. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/NoContentUseCase.js +0 -0
  535. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/RecordUpdateLocalUseCase.js +0 -0
  536. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/SetRecordsUseCase.js +0 -0
  537. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/SuccessUseCase.js +0 -0
  538. /package/es/platform/zrecord/{entities → domain/entities}/CustomFieldValues.js +0 -0
  539. /package/es/platform/zrecord/{entities → domain/entities}/Record.js +0 -0
  540. /package/es/platform/zrecord/{entities → domain/entities}/Records.js +0 -0
  541. /package/es/platform/zrecord/{entities → domain/entities}/interfaces/ApiEnum.js +0 -0
@@ -1,4 +1,5 @@
1
1
  import { ZLIST_DELETE_RECORD, ZLIST_DELETE_RECORDS, ZLIST_RECORD_UPDATE } from "../../../bc/zlist/Constants";
2
+ import { RECORD_LOCAL_MULTIPLE_DELETE, RECORD_LOCAL_UPDATE } from "../../../bc/zrecord/Constants";
2
3
  /* eslint-disable max-lines-per-function */
3
4
 
4
5
  export default class ListSdkFactory {
@@ -21,25 +22,84 @@ export default class ListSdkFactory {
21
22
  return (_state$behaviours2 = state.behaviours) === null || _state$behaviours2 === void 0 ? void 0 : (_state$behaviours2$zr = _state$behaviours2.zrecord.records) === null || _state$behaviours2$zr === void 0 ? void 0 : _state$behaviours2$zr.find(r => r.id === recordId);
22
23
  },
23
24
 
25
+ getContext(variableName) {
26
+ var _state$properties;
27
+
28
+ const {
29
+ departmentId,
30
+ viewId,
31
+ moduleName
32
+ } = state.properties;
33
+ const {
34
+ servicePrefix,
35
+ ...context
36
+ } = (_state$properties = state.properties) === null || _state$properties === void 0 ? void 0 : _state$properties.context;
37
+ const updatedContext = { ...context,
38
+ departmentId,
39
+ viewId,
40
+ moduleName
41
+ };
42
+ return variableName ? context === null || context === void 0 ? void 0 : context[variableName] : updatedContext;
43
+ },
44
+
24
45
  deleteRecord(recordId) {
46
+ let output = {
47
+ "data": [{
48
+ "id": recordId,
49
+ "Success": true,
50
+ "error": null
51
+ }]
52
+ };
25
53
  dispatch({
26
54
  type: ZLIST_DELETE_RECORD,
27
55
  payload: {
28
56
  recordId
29
57
  }
30
58
  });
59
+ return output;
31
60
  },
32
61
 
62
+ // deleteRecords(recordIds) {
63
+ // dispatch({
64
+ // type: ZLIST_DELETE_RECORDS,
65
+ // payload: {
66
+ // recordIds
67
+ // }
68
+ // });
69
+ // },
33
70
  deleteRecords(recordIds) {
71
+ let shouldFetch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
72
+ let output = {
73
+ "data": []
74
+ };
75
+ let DELETE_ACTION = shouldFetch ? ZLIST_DELETE_RECORDS : RECORD_LOCAL_MULTIPLE_DELETE;
34
76
  dispatch({
35
- type: ZLIST_DELETE_RECORDS,
77
+ type: DELETE_ACTION,
36
78
  payload: {
37
79
  recordIds
38
80
  }
39
81
  });
82
+
83
+ for (let recordId of recordIds) {
84
+ let recordUpdateDetail = {
85
+ "id": recordId,
86
+ "Success": true,
87
+ "error": null
88
+ };
89
+ output.data.push(recordUpdateDetail);
90
+ }
91
+
92
+ return output;
40
93
  },
41
94
 
42
95
  updateRecord(recordId, record) {
96
+ let output = {
97
+ "results": [{
98
+ "id": recordId,
99
+ "Success": true,
100
+ "error": null
101
+ }]
102
+ };
43
103
  dispatch({
44
104
  type: ZLIST_RECORD_UPDATE,
45
105
  payload: {
@@ -47,6 +107,33 @@ export default class ListSdkFactory {
47
107
  record
48
108
  }
49
109
  });
110
+ return output;
111
+ },
112
+
113
+ updateRecords(recordsMap) {
114
+ let shouldFetch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
115
+ let output = {
116
+ "results": []
117
+ };
118
+ let UPDATE_ACTION = shouldFetch ? ZLIST_RECORD_UPDATE : RECORD_LOCAL_UPDATE;
119
+
120
+ for (let record of recordsMap) {
121
+ dispatch({
122
+ type: UPDATE_ACTION,
123
+ payload: {
124
+ recordId: record.id,
125
+ record: record
126
+ }
127
+ });
128
+ let recordUpdateDetail = {
129
+ "id": record.id,
130
+ "Success": true,
131
+ "error": null
132
+ };
133
+ output.results.push(recordUpdateDetail);
134
+ }
135
+
136
+ return output;
50
137
  }
51
138
 
52
139
  }
@@ -7,25 +7,42 @@ import ZListBehaviourFactory from "../../../platform/zlist/frameworks/ZListBehav
7
7
  import RecordBehaviourFactory from "../../../platform/zrecord/frameworks/RecordBehaviourFactory";
8
8
  import EventHandlersFactory from "./EventHandlersFactory";
9
9
  import TableConnectedView from "./TableConnectedView";
10
- import defaultDataBroker from "../../../platform/data-broker";
11
- import DataBrokerBehaviourFactory from "../../../platform/zdata-broker/frameworks/DataBrokerBehaviourFactory";
10
+ import defaultDataSource from "../../../platform/data-source";
11
+ import DataSourceBehaviourFactory from "../../../platform/zdata-source/frameworks/DataBrokerBehaviourFactory";
12
+ import ClientActionsBehaviourFactory from "../../../platform/client-actions/behaviour/zclient-actions/frameworks/ClientActionsBehaviourFactory";
12
13
  export default class TableConnectedFactory {
13
14
  static create(_ref) {
15
+ var _dataSource2;
16
+
14
17
  let {
15
18
  name,
16
- dataBroker = defaultDataBroker,
19
+ dataBroker,
20
+ dataSource,
17
21
  eventHandlers = {},
18
22
  View = TableConnectedView
19
23
  } = _ref;
24
+
25
+ if (!dataSource) {
26
+ console.warn('Desk Platform Warning: dataBroker is deprecated, use dataSource instead');
27
+ dataSource = dataBroker;
28
+ }
29
+
30
+ const _dataSource = { ...dataSource,
31
+ httpTemplates: { ...defaultDataSource.httpTemplates,
32
+ ...((_dataSource2 = dataSource) === null || _dataSource2 === void 0 ? void 0 : _dataSource2.httpTemplates)
33
+ }
34
+ };
20
35
  return createCustomComponent({
21
36
  name: name,
22
37
  View: View,
23
38
  properties: Properties,
24
39
  eventHandlers: EventHandlersFactory.create(eventHandlers),
25
40
  transformState: TableTranslator.transformState,
26
- behaviours: [ZHttpBehaviourFactory.create(), DataBrokerBehaviourFactory.create(), RecordBehaviourFactory.create(dataBroker.httpTemplates), ZFieldBehaviourFactory.create({
27
- availableFields: dataBroker.httpTemplates.getAvailableFields,
28
- selectedFields: dataBroker.httpTemplates.getSelectedFields
41
+ behaviours: [ZHttpBehaviourFactory.create(), DataSourceBehaviourFactory.create(), RecordBehaviourFactory.create(_dataSource.httpTemplates), ClientActionsBehaviourFactory.create({
42
+ getClientActions: _dataSource.httpTemplates.getClientActions
43
+ }), ZFieldBehaviourFactory.create({
44
+ availableFields: _dataSource.httpTemplates.getAvailableFields,
45
+ selectedFields: _dataSource.httpTemplates.getSelectedFields
29
46
  }), ZListBehaviourFactory.create()]
30
47
  });
31
48
  }
@@ -9,27 +9,31 @@ function View(_ref, ref) {
9
9
  const {
10
10
  isLoading,
11
11
  data = [],
12
- hasRowActions,
12
+ rowActionsConfig,
13
+ rowCursor,
13
14
  properties,
14
15
  emptyStateUiType
15
16
  } = state;
16
- return /*#__PURE__*/React.createElement("div", {
17
- style: {
18
- height: '100%',
19
- width: '100%'
20
- },
21
- ref: ref
22
- }, /*#__PURE__*/React.createElement(TableList, {
17
+ const {
18
+ preferences,
19
+ selectionConfig
20
+ } = properties;
21
+ const {
22
+ autoColumnSizing
23
+ } = preferences || {};
24
+ return /*#__PURE__*/React.createElement(TableList, {
23
25
  data: data,
24
- hasRowActions: hasRowActions,
25
- isFlexibleColumns: properties.isFlexibleColumns,
26
+ rowCursor: rowCursor,
27
+ getRef: ref,
28
+ isFlexibleColumns: autoColumnSizing,
29
+ rowActionsConfig: rowActionsConfig,
26
30
  isLoading: isLoading,
27
31
  emptyStateUiType: emptyStateUiType,
28
- selectionConfig: properties.selectionConfig
29
- }));
32
+ selectionConfig: selectionConfig
33
+ });
30
34
  }
31
35
 
32
36
  export default View;
33
37
  View.propTypes = {
34
- state: PropTypes.string
38
+ state: PropTypes.object
35
39
  };
package/es/index.js CHANGED
@@ -4,7 +4,6 @@ import * as _BC from "./bc";
4
4
  export { _BC as BC };
5
5
  export { TableConnectedFactory } from "./desk-frameworks";
6
6
  export { ComponentRegistry, createCustomComponent } from "./library";
7
- import * as _TableFieldComponents from "./library/dot/legacy-to-new-arch/table-field-components";
8
- export { _TableFieldComponents as TableFieldComponents };
7
+ export { default as TableFieldComponents } from "./library/dot/legacy-to-new-arch/table-field-components";
9
8
  import * as _Components from "./library/dot/legacy-to-new-arch";
10
9
  export { _Components as Components };
@@ -1,6 +1,6 @@
1
1
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
2
 
3
- import ListItemSelection from "../../entities/ListItemSelection";
3
+ import ListItemSelection from "../../domain/entities/ListItemSelection";
4
4
 
5
5
  class Repository {
6
6
  constructor() {
@@ -1,10 +1,10 @@
1
1
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
2
 
3
- import Initialize from "../../usecases/interactors/Initialize";
4
- import AllItemsSelection from "../../usecases/interactors/AllItemSelection";
5
- import ItemRangeSelection from "../../usecases/interactors/RangeSelection";
6
- import ItemsSelection from "../../usecases/interactors/ItemsSelection";
7
- import Destruct from "../../usecases/interactors/Destruct";
3
+ import Initialize from "../../applications/usecases/Initialize";
4
+ import AllItemsSelection from "../../applications/usecases/AllItemSelection";
5
+ import ItemRangeSelection from "../../applications/usecases/RangeSelection";
6
+ import ItemsSelection from "../../applications/usecases/ItemsSelection";
7
+ import Destruct from "../../applications/usecases/Destruct";
8
8
 
9
9
  class Service {
10
10
  constructor(dependencies) {
@@ -49,7 +49,9 @@ class ListItemSelection {
49
49
  break;
50
50
  }
51
51
 
52
- this.selectItem(id);
52
+ if (!this.isSelected(id)) {
53
+ this.selectItem(id);
54
+ }
53
55
  }
54
56
  } else {
55
57
  this.selected = [];
@@ -59,23 +61,41 @@ class ListItemSelection {
59
61
  toggleRange(startIndex, endIndex) {
60
62
  const isForward = startIndex < endIndex;
61
63
  const [start, end] = isForward ? [startIndex, endIndex] : [endIndex, startIndex];
62
- let itemsForSelection = this.itemIds.slice(start, end + 1);
63
- itemsForSelection = itemsForSelection.filter(i => !this.isSelected(i));
64
+ const itemsForSelection = this.itemIds.slice(start, end + 1);
65
+ const allSelected = itemsForSelection.every(id => this.isSelected(id));
64
66
  const yetToSelectCount = this.maxSelectionCount - this.selected.length;
67
+ const itemsToSelect = itemsForSelection.filter(id => !this.isSelected(id));
68
+ this.rangeSelection(isForward, itemsForSelection, allSelected, yetToSelectCount, itemsToSelect);
69
+ }
65
70
 
66
- if (itemsForSelection.length > yetToSelectCount) {
71
+ rangeSelection(isForward, itemsForSelection, allSelected, yetToSelectCount, itemsToSelect) {
72
+ if (allSelected) {
67
73
  if (isForward) {
68
- itemsForSelection.splice(yetToSelectCount + 1);
74
+ itemsForSelection.forEach(id => this.deselectItem(id));
69
75
  } else {
70
- itemsForSelection.splice(0, itemsForSelection.length - yetToSelectCount);
76
+ itemsForSelection.reverse().forEach(id => this.deselectItem(id));
77
+ }
78
+ } else {
79
+ if (itemsToSelect.length > yetToSelectCount) {
80
+ if (isForward) {
81
+ itemsToSelect.splice(yetToSelectCount);
82
+ } else {
83
+ itemsToSelect.reverse();
84
+ itemsToSelect.splice(yetToSelectCount);
85
+ itemsToSelect.reverse();
86
+ }
71
87
  }
72
- }
73
88
 
74
- itemsForSelection.forEach(this.getStrategy(this.itemIds.at(endIndex)));
89
+ if (isForward) {
90
+ itemsToSelect.forEach(id => this.selectItem(id));
91
+ } else {
92
+ itemsToSelect.reverse().forEach(id => this.selectItem(id));
93
+ }
94
+ }
75
95
  }
76
96
 
77
97
  toggleUpto(id) {
78
- let lastItem = this.selected.at(-1);
98
+ let lastItem = this.selected.at(-1) || id;
79
99
  let startIndex = this.itemIds.indexOf(lastItem);
80
100
  let endIndex = this.itemIds.indexOf(id);
81
101
  this.toggleRange(startIndex, endIndex);
@@ -1,6 +1,6 @@
1
1
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
2
 
3
- import SortBy from "../../entities/SortBy";
3
+ import SortBy from "../../domain/entities/SortBy";
4
4
  export default class Repository {
5
5
  constructor() {
6
6
  _defineProperty(this, "state", void 0);
@@ -1,6 +1,6 @@
1
1
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
2
 
3
- import SortBy from "../../usecases/interactors/SortBy";
3
+ import SortBy from "../../applications/usecases/SortBy";
4
4
 
5
5
  class Service {
6
6
  constructor(dependencies) {
@@ -1,4 +1,4 @@
1
- import SortOrderEnum from "../../../../bc/sort-by/SortOrderEnum";
1
+ import SortOrderEnum from "../../../../../bc/sort-by/SortOrderEnum";
2
2
 
3
3
  class SortBy {
4
4
  constructor(id, name, order) {
@@ -10,9 +10,9 @@ class SortByBehaviourFactory {
10
10
  properties
11
11
  } = _ref;
12
12
  const {
13
- filter
13
+ sortBy
14
14
  } = properties;
15
- return (filter === null || filter === void 0 ? void 0 : filter.sortBy) || {};
15
+ return sortBy || {};
16
16
  },
17
17
  properties: Properties,
18
18
  eventHandlers: ActionsHandlerFactory.create()
@@ -1,6 +1,6 @@
1
1
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
2
 
3
- import FieldEventConverter from "../../entities/FieldEventConverter";
3
+ import FieldEventConverter from "../../domain/entities/FieldEventConverter";
4
4
  export default class Repository {
5
5
  constructor() {
6
6
  _defineProperty(this, "state", void 0);
@@ -1,4 +1,4 @@
1
- import FieldConstants from "../../../../cc/fields/field/Constants";
1
+ import FieldConstants from "../../../../../cc/fields/field/Constants";
2
2
 
3
3
  class FieldEventConverter {
4
4
  constructor(fieldName) {
@@ -1,7 +1,7 @@
1
1
  import TextConstants from "../../../../../cc/text/Constants";
2
2
  import Repository from "../../adapters/gateway/Repository";
3
3
  import ClickController from "../../adapters/controllers/ClickController";
4
- import ClickUseCase from "../../usecases/interactors/ClickUseCase";
4
+ import ClickUseCase from "../../applications/usecases/ClickUseCase";
5
5
  export class EventHandlersFactory {
6
6
  static create() {
7
7
  const repository = new Repository();
@@ -76,7 +76,7 @@ class EventManager {
76
76
  if (__DEVELOPMENT__) {
77
77
  if (globalThis.enableEventLogging && type) {
78
78
  const index = type.indexOf('#');
79
- console.log('%cEvent %c' + type.slice(0, index) + '%c' + type.slice(index), 'color: cyan;font-weight: bold', 'color: yellow;font-weight: bold', 'color: greenyellow;font-weight: bold', {
79
+ console.log('%cEvent %c' + type.slice(0, index) + '%c' + type.slice(index), 'font-weight: bold', 'color: #FF6F61;font-weight: bold', 'color: #FFA500;font-weight: bold', {
80
80
  payload,
81
81
  metaData
82
82
  });
@@ -1,11 +1,11 @@
1
1
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
2
 
3
- import DispatchUseCase from "../../../usecases/interactors/DispatchUseCase";
4
- import InitializeUseCase from "../../../usecases/interactors/InitializeUseCase";
5
- import MountUsecase from "../../../usecases/interactors/MountUseCase";
6
- import UnmountUsecase from "../../../usecases/interactors/UnmountUseCase";
7
- import UpdatePropertyUseCase from "../../../usecases/interactors/UpdatePropertyUseCase";
8
- import UpdateStateUseCase from "../../../usecases/interactors/UpdateStateUseCase";
3
+ import DispatchUseCase from "../../../applications/usecases/DispatchUseCase";
4
+ import InitializeUseCase from "../../../applications/usecases/InitializeUseCase";
5
+ import MountUsecase from "../../../applications/usecases/MountUseCase";
6
+ import UnmountUsecase from "../../../applications/usecases/UnmountUseCase";
7
+ import UpdatePropertyUseCase from "../../../applications/usecases/UpdatePropertyUseCase";
8
+ import UpdateStateUseCase from "../../../applications/usecases/UpdateStateUseCase";
9
9
 
10
10
  class Service {
11
11
  constructor(dependencies) {
@@ -1,4 +1,4 @@
1
- import Behaviour from "../../entities/Behaviour";
1
+ import Behaviour from "../../domain/entities/Behaviour";
2
2
  import EventHandlersFactory from "./EventHandlersFactory";
3
3
  import PropertiesFactory from "./PropertiesFactory";
4
4
  /* eslint-disable max-lines-per-function, @zohodesk/architecturerules/no-returnStatement-rule */
@@ -1,6 +1,6 @@
1
- import Component from "../../entities/Component";
2
- import LifeCycleAction from "../../entities/LifeCycleAction";
3
- import State from "../../entities/State";
1
+ import Component from "../../domain/entities/Component";
2
+ import LifeCycleAction from "../../domain/entities/LifeCycleAction";
3
+ import State from "../../domain/entities/State";
4
4
  import EventHandlersFactory from "./EventHandlersFactory";
5
5
  import BehavioursFactory from "./BehavioursFactory";
6
6
  import PropertiesFactory from "./PropertiesFactory";
@@ -1,4 +1,4 @@
1
- import EventHandlers from "../../entities/EventHandlers";
1
+ import EventHandlers from "../../domain/entities/EventHandlers";
2
2
  export default function EventHandlersFactory(eventHandlers) {
3
3
  let eventHandlerMap = new Map();
4
4
  Object.keys(eventHandlers).forEach(key => {
@@ -1,5 +1,5 @@
1
- import Properties from "../../entities/Properties";
2
- import Property from "../../entities/Property";
1
+ import Properties from "../../domain/entities/Properties";
2
+ import Property from "../../domain/entities/Property";
3
3
  export default function PropertiesFactory(_ref) {
4
4
  let {
5
5
  properties,
@@ -7,7 +7,13 @@ export default function PropertiesFactory(_ref) {
7
7
  } = _ref;
8
8
  let propertyMap = new Map();
9
9
  Object.keys(properties).forEach(key => {
10
- let property = new Property(properties[key]);
10
+ let propertyData = properties[key];
11
+
12
+ if (propertyData.name === undefined) {
13
+ propertyData.name = key;
14
+ }
15
+
16
+ let property = new Property(propertyData);
11
17
  propertyMap.set(key, property);
12
18
  });
13
19
  let propertiesObject = new Properties(propertyMap, componentName);
@@ -12,8 +12,8 @@ class UnmountUsecase extends AbstractUseCase {
12
12
  let unmountAction = component.getUnmountAction();
13
13
 
14
14
  try {
15
- eventManager.unSubscribe(eventHanlders);
16
15
  eventManager.dispatch(unmountAction);
16
+ eventManager.unSubscribe(eventHanlders);
17
17
  repository.clear();
18
18
  } catch (e) {
19
19
  presenter.setError([]);
@@ -28,9 +28,19 @@ export default class Component {
28
28
  this._behavioursProperties = {};
29
29
  }
30
30
 
31
+ getAllBehavioursPropertiesWithValue() {
32
+ let output = {};
33
+ Object.keys(this._behavioursProperties).forEach((value, key) => {
34
+ output[value] = this._behavioursProperties[value].getValue();
35
+ });
36
+ return output;
37
+ }
38
+
31
39
  mergeStateAndProps() {
32
40
  return { ...this._state.getState(),
33
- properties: this._properties.getAllPropertiesValue()
41
+ properties: { ...this._properties.getAllPropertiesValue(),
42
+ ...this.getAllBehavioursPropertiesWithValue()
43
+ }
34
44
  };
35
45
  }
36
46
 
@@ -89,7 +99,8 @@ export default class Component {
89
99
  }
90
100
 
91
101
  setBehaviours(behaviours) {
92
- this._behaviours = behaviours; //store behaviour properties
102
+ this._behaviours = behaviours;
103
+ /* store behaviour properties */
93
104
 
94
105
  this._behaviours.forEach(behaviour => {
95
106
  behaviour.getProperties().data && behaviour.getProperties().data.forEach(obj => {
@@ -103,17 +114,33 @@ export default class Component {
103
114
  if (this._behavioursProperties[key]) {
104
115
  let property = this._behavioursProperties[key];
105
116
  let optionalSchema = property.getTypeMetadata().schema;
106
- return this._properties.validateSingleProperty(jsonValidator, key, newProps[key], optionalSchema);
117
+
118
+ let isValid = this._properties.validateSingleProperty(jsonValidator, key, newProps[key], optionalSchema);
119
+
120
+ if (isValid) {
121
+ property.updateValue(newProps[key]);
122
+ }
123
+ /* return isValid */
124
+
107
125
  } else if (this._properties.findProperty(key)) {
108
126
  let property = this._properties.findProperty(key);
109
127
 
110
128
  let schema = property.getTypeMetadata().schema;
111
- return this._properties.validateSingleProperty(jsonValidator, key, newProps[key], schema);
129
+
130
+ let isValid = this._properties.validateSingleProperty(jsonValidator, key, newProps[key], schema);
131
+
132
+ if (isValid) {
133
+ property.updateValue(newProps[key]);
134
+ }
135
+ /* return isValid */
136
+
112
137
  } else {
113
138
  throw new Error(`props '${key}' not exist `);
114
139
  }
115
140
  });
116
- return this._properties.updateAllPropertiesValue(jsonValidator, newProps);
141
+ /* return this._properties.updateAllPropertiesValue(jsonValidator, newProps); */
142
+
143
+ return true;
117
144
  }
118
145
 
119
146
  updateState(state) {
@@ -137,10 +164,14 @@ export default class Component {
137
164
 
138
165
  const properties = this._properties.getAllPropertiesValue();
139
166
 
167
+ const behavioursProperties = this.getAllBehavioursPropertiesWithValue();
140
168
  const behaviours = this.getAllBehavioursInitialState();
169
+ let allProperties = { ...properties,
170
+ ...behavioursProperties
171
+ };
141
172
 
142
173
  const initialState = this._stateInitializer({
143
- properties
174
+ properties: allProperties
144
175
  });
145
176
 
146
177
  this.updateState({ ...initialState,
@@ -149,7 +180,9 @@ export default class Component {
149
180
  }
150
181
 
151
182
  getProperties() {
152
- return this._properties.getAllPropertiesValue();
183
+ return { ...this._properties.getAllPropertiesValue(),
184
+ ...this.getAllBehavioursPropertiesWithValue()
185
+ };
153
186
  }
154
187
 
155
188
  getEventHandlersWrapper() {
@@ -1,10 +1,10 @@
1
1
  export default {
2
- name: "appendToActionPayload",
2
+ name: 'appendToActionPayload',
3
3
  required: false,
4
4
  defaultValue: null,
5
5
  typeMetadata: {
6
6
  schema: {
7
- type: "object"
7
+ type: 'object'
8
8
  }
9
9
  }
10
10
  };
@@ -2,7 +2,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
2
2
 
3
3
  import Property from "./Property";
4
4
  import defaultAppendToActionPayload from "./DefaultAppendToActionPayload";
5
- import getRefPropertySchema from "../../../cc/component/properties/getRefPropertySchema";
5
+ import getRefPropertySchema from "../../../../cc/component/properties/getRefPropertySchema";
6
6
  export default class Properties {
7
7
  constructor(properties, componentName) {
8
8
  this.componentName = componentName;
@@ -27,18 +27,17 @@ export default class Properties {
27
27
 
28
28
 
29
29
  updateAllPropertiesValue(validator, propertyValue) {
30
- this.validateProperties(validator, propertyValue);
31
-
30
+ // this.validateProperties(validator, propertyValue);
32
31
  if (!this.isEqual(propertyValue)) {
33
32
  let isChanged = false;
34
33
  Object.keys(propertyValue).forEach(key => {
35
34
  let property = this.findProperty(key);
36
35
 
37
36
  if (property.getValue() == null || property.getValue() == undefined) {
38
- property.updateValue(propertyValue[key]);
37
+ // property.updateValue(propertyValue[key]);
39
38
  isChanged = true;
40
39
  } else if (property.getValue() != propertyValue[key]) {
41
- property.updateValue(propertyValue[key]);
40
+ // property.updateValue(propertyValue[key]);
42
41
  isChanged = true;
43
42
  }
44
43
  });