@zohodesk/library-platform 1.0.2 → 1.1.0-exp.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/es/bc/list-selection/Properties.js +21 -12
  2. package/es/bc/sort-by/Properties.js +20 -15
  3. package/es/bc/table-column-resizer/Properties.js +1 -1
  4. package/es/bc/zhttp/Properties.js +11 -1
  5. package/es/bc/zlist/Properties.js +12 -3
  6. package/es/cc/action-icon/Model.js +6 -2
  7. package/es/cc/action-icon/Properties.js +18 -0
  8. package/es/cc/action-location/Properties.js +54 -3
  9. package/es/cc/component/properties/PropertiesConverter.js +23 -0
  10. package/es/cc/fields/field/Properties.js +9 -1
  11. package/es/cc/fields/field/Types.js +16 -16
  12. package/es/cc/fields/multi-select/Properties.js +1 -1
  13. package/es/cc/fields/pick-list/Properties.js +1 -1
  14. package/es/cc/table-connected/Properties.js +49 -45
  15. package/es/cc/table-list/Properties.js +79 -318
  16. package/es/cc/table-list/model/RowModel.js +2 -4
  17. package/es/cc/table-list/row/Properties.js +3 -11
  18. package/es/desk-frameworks/table-connected/frameworks/TableConnectedView.js +10 -11
  19. package/es/library/behaviours/list-selection/adapters/gateways/Repository.js +1 -1
  20. package/es/library/behaviours/list-selection/adapters/gateways/Service.js +5 -5
  21. package/es/library/behaviours/sort-by/adapters/gateway/Repository.js +1 -1
  22. package/es/library/behaviours/sort-by/adapters/gateway/Service.js +1 -1
  23. package/es/library/behaviours/sort-by/{entities → domain/entities}/SortBy.js +1 -1
  24. package/es/library/behaviours/sort-by/frameworks/ui/SortByBehaviourFactory.js +2 -2
  25. package/es/library/behaviours/text-to-field-click/adapters/gateway/Repository.js +1 -1
  26. package/es/library/behaviours/text-to-field-click/{entities → domain/entities}/FieldEventConverter.js +1 -1
  27. package/es/library/behaviours/text-to-field-click/frameworks/ui/EventHandlersFactory.js +1 -1
  28. package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +1 -1
  29. package/es/library/custom-component/adapters/gateways/service/Service.js +6 -6
  30. package/es/library/custom-component/{usecases → applications}/entities-factory/BehavioursFactory.js +1 -1
  31. package/es/library/custom-component/{usecases → applications}/entities-factory/ComponentFactory.js +3 -3
  32. package/es/library/custom-component/{usecases → applications}/entities-factory/EventHandlersFactory.js +1 -1
  33. package/es/library/custom-component/{usecases → applications}/entities-factory/PropertiesFactory.js +9 -3
  34. package/es/library/custom-component/{usecases/interactors → applications/usecases}/UnmountUseCase.js +1 -1
  35. package/es/library/custom-component/{entities → domain/entities}/Component.js +36 -7
  36. package/es/library/custom-component/{entities → domain/entities}/DefaultAppendToActionPayload.js +2 -2
  37. package/es/library/custom-component/{entities → domain/entities}/Properties.js +4 -5
  38. package/es/library/custom-component/frameworks/ui/__testcases__/CreateCustomComponent.spec.js +106 -0
  39. package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +5 -0
  40. package/es/library/dot/components/action-location/frameworks/ui/ActionLocationView.js +8 -29
  41. package/es/library/dot/components/actions-renderer/frameworks/ui/ActionsRenderer.js +9 -0
  42. package/es/library/dot/components/actions-renderer/frameworks/ui/ActionsRendererView.js +37 -0
  43. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.js +3 -7
  44. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +5 -3
  45. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +11 -7
  46. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +3 -0
  47. package/es/library/dot/legacy-to-new-arch/action-icon/{ActionIcon.js → frameworks/ui/ActionIcon.js} +2 -2
  48. package/es/library/dot/legacy-to-new-arch/action-icon/{ActionIconView.js → frameworks/ui/ActionIconView.js} +11 -5
  49. package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/css/ActionIcon.module.css +3 -0
  50. package/es/library/dot/legacy-to-new-arch/index.js +1 -1
  51. package/es/platform/zdata-broker/adapters/gateways/Repository.js +1 -1
  52. package/es/platform/zdata-broker/adapters/gateways/Service.js +5 -5
  53. package/es/platform/zdata-broker/adapters/gateways/TemplateHelpers.js +21 -0
  54. package/es/platform/zdata-broker/{usecases → applications}/entities-factory/APITemplatesFactory.js +2 -2
  55. package/es/platform/zdata-broker/{usecases → applications}/entities-factory/DataBrokerFactory.js +1 -1
  56. package/es/platform/zdata-broker/applications/interfaces/gateways/ITemplateHelpers.js +1 -0
  57. package/es/platform/zdata-broker/{entities → domain/entities}/DataBroker.js +3 -3
  58. package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/MetaData.js +1 -1
  59. package/es/platform/zfield/adapters/gateways/Repository.js +1 -1
  60. package/es/platform/zfield/adapters/gateways/Service.js +6 -6
  61. package/es/platform/zfield/{usecases → applications}/entities-factory/FieldsManagerBuilder.js +1 -1
  62. package/es/platform/zfield/applications/interfaces/input/FetchInputModel.js +2 -0
  63. package/es/platform/zfield/{entities → domain/entities}/fields-manager/AvailableFieldsManager.js +2 -2
  64. package/es/platform/zfield/{entities → domain/entities}/fields-manager/FieldsManager.js +3 -3
  65. package/es/platform/zfield/{entities → domain/entities}/fields-manager/SelectedFieldsManager.js +2 -2
  66. package/es/platform/zfield/{entities → domain/entities}/interfaces/MetaData.js +1 -1
  67. package/es/platform/zhttp/frameworks/ActionsHandlerFactory.js +1 -1
  68. package/es/platform/zhttp/frameworks/ZHttpBehaviourFactory.js +2 -1
  69. package/es/platform/zlist/adapters/gateways/Repository.js +1 -1
  70. package/es/platform/zlist/adapters/gateways/Service.js +10 -10
  71. package/es/platform/zlist/adapters/presenters/TableTranslator.js +2 -1
  72. package/es/platform/zlist/adapters/presenters/translators/Row.js +5 -1
  73. package/es/platform/zlist/adapters/presenters/translators/RowActionTranslator.js +18 -11
  74. package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +3 -1
  75. package/es/platform/zlist/{usecases → applications}/entities-factory/ListFactory.js +1 -1
  76. package/es/platform/zlist/{entities → domain/entities}/List.js +3 -3
  77. package/es/platform/zrecord/adapters/gateways/Repository.js +1 -1
  78. package/es/platform/zrecord/adapters/gateways/Service.js +13 -13
  79. package/es/platform/zrecord/{usecases → applications}/entities-factory/RecordFactory.js +1 -1
  80. package/es/platform/zrecord/{usecases → applications}/entities-factory/RecordsManagerFactory.js +2 -2
  81. package/es/platform/zrecord/{entities → domain/entities}/DeleteMultipleRecordStrategy.js +1 -1
  82. package/es/platform/zrecord/{entities → domain/entities}/DeleteRecordStrategy.js +1 -1
  83. package/es/platform/zrecord/{entities → domain/entities}/GetRecordsStrategy.js +1 -1
  84. package/es/platform/zrecord/{entities → domain/entities}/RecordsManager.js +3 -3
  85. package/es/platform/zrecord/{entities → domain/entities}/UpdateRecordStrategy.js +1 -1
  86. package/es/platform/zrecord/domain/entities/interfaces/RecordModel.js +1 -0
  87. package/es/platform/zrecord/domain/entities/interfaces/RecordsModel.js +1 -0
  88. package/es/platform/zrecord/domain/entities/interfaces/StrategyMeta.js +1 -0
  89. package/package.json +10 -4
  90. package/es/cc/table-list/behaviour-properties/ResizerConfig.js +0 -18
  91. package/es/cc/table-list/behaviour-properties/SelectionConfig.js +0 -17
  92. package/es/cc/table-list/behaviour-properties/SortByConfig.js +0 -14
  93. package/es/cc/table-list/behaviour-properties/index.js +0 -3
  94. package/es/library/custom-component/entities/__tests__/Action.spec.js +0 -19
  95. package/es/library/custom-component/entities/__tests__/ActionHandlers.spec.js +0 -15
  96. package/es/library/custom-component/entities/__tests__/Behaviour.spec.js +0 -52
  97. package/es/library/custom-component/entities/__tests__/Component.spec.js +0 -109
  98. package/es/platform/zdata-broker/usecases/interfaces/gateways/ITemplateHelpers.js +0 -1
  99. package/es/platform/zfield/usecases/interfaces/gateways/ITemplateHelpers.js +0 -1
  100. package/es/platform/zfield/usecases/interfaces/input/FetchInputModel.js +0 -2
  101. /package/es/{library/behaviours/list-selection/entities/interfaces/IListItemSelection.js → cc/action-location/Action.js} +0 -0
  102. /package/es/{library/behaviours/list-selection/entities/interfaces/ListSelectionModel.js → cc/action-location/ActionLocation.js} +0 -0
  103. /package/es/{library/behaviours/list-selection/usecases/interfaces/UseCase.js → cc/table-list/data-types/RowAction.js} +0 -0
  104. /package/es/library/{custom-component/usecases → behaviours/list-selection/applications}/interfaces/UseCase.js +0 -0
  105. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/UseCaseDependencies.js +0 -0
  106. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
  107. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/gateways/IService.js +0 -0
  108. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/AllSelectionInputModel.js +0 -0
  109. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/DestructInputModel.js +0 -0
  110. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/InitializeInputModel.js +0 -0
  111. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/RangeSelectionInputModel.js +0 -0
  112. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/input/SelectionInputModel.js +0 -0
  113. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/output/BehaviourStateModel.js +0 -0
  114. /package/es/library/behaviours/list-selection/{usecases → applications}/interfaces/output/IPresenter.js +0 -0
  115. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  116. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/AllItemSelection.js +0 -0
  117. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/Destruct.js +0 -0
  118. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/Initialize.js +0 -0
  119. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/ItemsSelection.js +0 -0
  120. /package/es/library/behaviours/list-selection/{usecases/interactors → applications/usecases}/RangeSelection.js +0 -0
  121. /package/es/library/behaviours/list-selection/{entities → domain/entities}/ListItemSelection.js +0 -0
  122. /package/es/library/behaviours/{sort-by/entities/interfaces/ISortBy.js → list-selection/domain/entities/interfaces/IListItemSelection.js} +0 -0
  123. /package/es/library/behaviours/{sort-by/usecases/interfaces/UseCaseDependencies.js → list-selection/domain/entities/interfaces/ListSelectionModel.js} +0 -0
  124. /package/es/library/behaviours/{text-to-field-click/usecases → sort-by/applications}/interfaces/UseCaseDependencies.js +0 -0
  125. /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
  126. /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/gateways/IService.js +0 -0
  127. /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/input/SortByInputModel.js +0 -0
  128. /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/output/IPresenter.js +0 -0
  129. /package/es/library/behaviours/sort-by/{usecases → applications}/interfaces/output/SortByOutputModel.js +0 -0
  130. /package/es/library/behaviours/sort-by/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  131. /package/es/library/behaviours/sort-by/{usecases/interactors → applications/usecases}/SortBy.js +0 -0
  132. /package/es/{platform/zlist/usecases/interfaces/gateways → library/behaviours/sort-by/domain/entities/interfaces}/ISortBy.js +0 -0
  133. /package/es/{platform/zlist/usecases → library/behaviours/text-to-field-click/applications}/interfaces/UseCaseDependencies.js +0 -0
  134. /package/es/library/behaviours/text-to-field-click/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
  135. /package/es/library/behaviours/text-to-field-click/{usecases → applications}/interfaces/input/ClickUseCaseInputModel.js +0 -0
  136. /package/es/library/behaviours/text-to-field-click/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  137. /package/es/library/behaviours/text-to-field-click/{usecases/interactors → applications/usecases}/ClickUseCase.js +0 -0
  138. /package/es/library/behaviours/text-to-field-click/{entities → domain/entities}/interfaces/IFieldEventConverter.js +0 -0
  139. /package/es/library/custom-component/{usecases → applications}/interfaces/InputDependencies.js +0 -0
  140. /package/es/library/custom-component/{usecases → applications}/interfaces/OutputDependencies.js +0 -0
  141. /package/es/{platform/zhttp/usecases → library/custom-component/applications}/interfaces/UseCase.js +0 -0
  142. /package/es/library/custom-component/{usecases → applications}/interfaces/gateways/IEventManager.js +0 -0
  143. /package/es/library/custom-component/{usecases → applications}/interfaces/gateways/IJSONValidator.js +0 -0
  144. /package/es/library/custom-component/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
  145. /package/es/library/custom-component/{usecases → applications}/interfaces/gateways/IService.js +0 -0
  146. /package/es/library/custom-component/{usecases → applications}/interfaces/input/DispatchInputModel.js +0 -0
  147. /package/es/library/custom-component/{usecases → applications}/interfaces/input/InitailizeInputModel.js +0 -0
  148. /package/es/library/custom-component/{usecases → applications}/interfaces/input/UpdatePropertiesInputModel.js +0 -0
  149. /package/es/library/custom-component/{usecases → applications}/interfaces/input/UpdateStateInputModel.js +0 -0
  150. /package/es/library/custom-component/{usecases → applications}/interfaces/output/OutputBoundary.js +0 -0
  151. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  152. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/DispatchUseCase.js +0 -0
  153. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
  154. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/MountUseCase.js +0 -0
  155. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/UpdatePropertyUseCase.js +0 -0
  156. /package/es/library/custom-component/{usecases/interactors → applications/usecases}/UpdateStateUseCase.js +0 -0
  157. /package/es/library/custom-component/{entities → domain/entities}/Behaviour.js +0 -0
  158. /package/es/library/custom-component/{entities → domain/entities}/EventHandler.js +0 -0
  159. /package/es/library/custom-component/{entities → domain/entities}/EventHandlers.js +0 -0
  160. /package/es/library/custom-component/{entities → domain/entities}/Events.js +0 -0
  161. /package/es/library/custom-component/{entities → domain/entities}/LifeCycleAction.js +0 -0
  162. /package/es/library/custom-component/{entities → domain/entities}/Payload.js +0 -0
  163. /package/es/library/custom-component/{entities → domain/entities}/Property.js +0 -0
  164. /package/es/library/custom-component/{entities → domain/entities}/Schema.js +0 -0
  165. /package/es/library/custom-component/{entities → domain/entities}/State.js +0 -0
  166. /package/es/library/custom-component/{entities → domain/entities}/Style.js +0 -0
  167. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IBehaviour.js +0 -0
  168. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IComponent.js +0 -0
  169. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEvent.js +0 -0
  170. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventHandler.js +0 -0
  171. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventHandlerHelpers.js +0 -0
  172. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventHandlers.js +0 -0
  173. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IEventWrapper.js +0 -0
  174. /package/es/library/custom-component/{entities → domain/entities}/interfaces/ILifeCycleAction.js +0 -0
  175. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IPayload.js +0 -0
  176. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IProperties.js +0 -0
  177. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IProperty.js +0 -0
  178. /package/es/library/custom-component/{entities → domain/entities}/interfaces/ISchema.js +0 -0
  179. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IState.js +0 -0
  180. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IStyle.js +0 -0
  181. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IUpdateHelper.js +0 -0
  182. /package/es/library/custom-component/{entities → domain/entities}/interfaces/IValidator.js +0 -0
  183. /package/es/platform/zdata-broker/{usecases → applications}/interfaces/InputDependencies.js +0 -0
  184. /package/es/platform/zdata-broker/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
  185. /package/es/platform/zdata-broker/{usecases → applications}/interfaces/gateways/IService.js +0 -0
  186. /package/es/platform/zdata-broker/{usecases → applications}/interfaces/gateways/State.js +0 -0
  187. /package/es/platform/zdata-broker/{usecases → applications}/interfaces/input/ExecuteActionInputModel.js +0 -0
  188. /package/es/platform/zdata-broker/{usecases → applications}/interfaces/input/FailureInputModel.js +0 -0
  189. /package/es/platform/zdata-broker/{usecases → applications}/interfaces/input/NoContentInputModel.js +0 -0
  190. /package/es/platform/zdata-broker/{usecases → applications}/interfaces/input/RegisterInputModel.js +0 -0
  191. /package/es/platform/zdata-broker/{usecases → applications}/interfaces/input/SuccessInputModel.js +0 -0
  192. /package/es/platform/zdata-broker/{usecases → applications}/interfaces/output/IPresenter.js +0 -0
  193. /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  194. /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +0 -0
  195. /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/FailureUseCase.js +0 -0
  196. /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/NoContentUseCase.js +0 -0
  197. /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/RegisterUseCase.js +0 -0
  198. /package/es/platform/zdata-broker/{usecases/interactors → applications/usecases}/SuccessUseCase.js +0 -0
  199. /package/es/platform/zdata-broker/{entities → domain/entities}/APITemplate.js +0 -0
  200. /package/es/platform/zdata-broker/{entities → domain/entities}/APITemplates.js +0 -0
  201. /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/APIDetailsModel.js +0 -0
  202. /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/APITemplateModel.js +0 -0
  203. /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/APITemplatesModel.js +0 -0
  204. /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/ApiEnum.js +0 -0
  205. /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/BehaviourState.js +0 -0
  206. /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/EventModel.js +0 -0
  207. /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/IAPITemplate.js +0 -0
  208. /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/IAPITemplates.js +0 -0
  209. /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/IDataBroker.js +0 -0
  210. /package/es/platform/zdata-broker/{entities → domain/entities}/interfaces/ITemplateHelpers.js +0 -0
  211. /package/es/platform/zfield/{usecases → applications}/entities-factory/FieldBuilder.js +0 -0
  212. /package/es/platform/zfield/{usecases → applications}/entities-factory/FieldFactory.js +0 -0
  213. /package/es/platform/zfield/{usecases → applications}/interfaces/UsecaseDependencies.js +0 -0
  214. /package/es/platform/zfield/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
  215. /package/es/platform/zfield/{usecases → applications}/interfaces/gateways/IRestApi.js +0 -0
  216. /package/es/platform/zfield/{usecases → applications}/interfaces/gateways/IService.js +0 -0
  217. /package/es/platform/zfield/{usecases → applications}/interfaces/input/ExecuteActionInputModel.js +0 -0
  218. /package/es/platform/zfield/{usecases → applications}/interfaces/input/InitialInputModel.js +0 -0
  219. /package/es/platform/zfield/{usecases → applications}/interfaces/input/InputModel.js +0 -0
  220. /package/es/platform/zfield/{usecases → applications}/interfaces/input/RefetchInputModel.js +0 -0
  221. /package/es/platform/zfield/{usecases → applications}/interfaces/input/SetValueInputModel.js +0 -0
  222. /package/es/platform/zfield/{usecases → applications}/interfaces/output/IPresenter.js +0 -0
  223. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  224. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +0 -0
  225. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchFailureUseCase.js +0 -0
  226. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchNoContentUseCase.js +0 -0
  227. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/FetchSuccessUseCase.js +0 -0
  228. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
  229. /package/es/platform/zfield/{usecases/interactors → applications/usecases}/RefetchUseCase.js +0 -0
  230. /package/es/platform/zfield/{entities → domain/entities}/BooleanField.js +0 -0
  231. /package/es/platform/zfield/{entities → domain/entities}/CurrencyField.js +0 -0
  232. /package/es/platform/zfield/{entities → domain/entities}/DateField.js +0 -0
  233. /package/es/platform/zfield/{entities → domain/entities}/DateTimeField.js +0 -0
  234. /package/es/platform/zfield/{entities → domain/entities}/EmailField.js +0 -0
  235. /package/es/platform/zfield/{entities → domain/entities}/Field.js +0 -0
  236. /package/es/platform/zfield/{entities → domain/entities}/LookupField.js +0 -0
  237. /package/es/platform/zfield/{entities → domain/entities}/MultiLineField.js +0 -0
  238. /package/es/platform/zfield/{entities → domain/entities}/MultiSelectField.js +0 -0
  239. /package/es/platform/zfield/{entities → domain/entities}/PercentageField.js +0 -0
  240. /package/es/platform/zfield/{entities → domain/entities}/PhoneField.js +0 -0
  241. /package/es/platform/zfield/{entities → domain/entities}/PickListField.js +0 -0
  242. /package/es/platform/zfield/{entities → domain/entities}/SingleLineField.js +0 -0
  243. /package/es/platform/zfield/{entities → domain/entities}/URLField.js +0 -0
  244. /package/es/platform/zfield/{entities → domain/entities}/index.js +0 -0
  245. /package/es/platform/zfield/{entities → domain/entities}/interfaces/ActionModel.js +0 -0
  246. /package/es/platform/zfield/{entities → domain/entities}/interfaces/BehaviourState.js +0 -0
  247. /package/es/platform/zfield/{entities → domain/entities}/interfaces/FieldApiName.js +0 -0
  248. /package/es/platform/zfield/{entities → domain/entities}/interfaces/FieldModel.js +0 -0
  249. /package/es/platform/zfield/{entities → domain/entities}/interfaces/IField.js +0 -0
  250. /package/es/platform/zfield/{entities → domain/entities}/interfaces/IFieldManger.js +0 -0
  251. /package/es/platform/zhttp/{usecases → applications}/interfaces/InputDependencies.js +0 -0
  252. /package/es/platform/zhttp/{usecases/interfaces/gateway/IFetchGateWay.js → applications/interfaces/UseCase.js} +0 -0
  253. /package/es/platform/zhttp/{usecases/interfaces/input/FetchInputModel.js → applications/interfaces/gateway/IFetchGateWay.js} +0 -0
  254. /package/es/platform/{zlist/entities/interfaces/ActionModel.js → zhttp/applications/interfaces/input/FetchInputModel.js} +0 -0
  255. /package/es/platform/zhttp/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  256. /package/es/platform/zhttp/{usecases/interactors → applications/usecases}/FetchUseCase.js +0 -0
  257. /package/es/platform/zlist/{usecases → applications}/interfaces/State.js +0 -0
  258. /package/es/platform/zlist/{entities/interfaces/ApiPropsModel.js → applications/interfaces/UseCaseDependencies.js} +0 -0
  259. /package/es/platform/zlist/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
  260. /package/es/platform/zlist/{usecases → applications}/interfaces/gateways/IService.js +0 -0
  261. /package/es/platform/zlist/{entities/interfaces/IList.js → applications/interfaces/gateways/ISortBy.js} +0 -0
  262. /package/es/platform/zlist/{usecases → applications}/interfaces/gateways/ITransformState.js +0 -0
  263. /package/es/platform/zlist/{usecases → applications}/interfaces/input/DeleteMultipleRecordUseCaseInput.js +0 -0
  264. /package/es/platform/zlist/{usecases → applications}/interfaces/input/DeleteSingleRecordUseCaseInput.js +0 -0
  265. /package/es/platform/zlist/{usecases → applications}/interfaces/input/FetchMoreInput.js +0 -0
  266. /package/es/platform/zlist/{usecases → applications}/interfaces/input/FieldChangeUseCaseInput.js +0 -0
  267. /package/es/platform/zlist/{usecases → applications}/interfaces/input/InitializeInput.js +0 -0
  268. /package/es/platform/zlist/{usecases → applications}/interfaces/input/PropertiesChangeUseCaseInput.js +0 -0
  269. /package/es/platform/zlist/{usecases → applications}/interfaces/input/RecordExecuteFailedUseCaseInput.js +0 -0
  270. /package/es/platform/zlist/{usecases → applications}/interfaces/input/RecordExecuteSucceededUseCaseInput.js +0 -0
  271. /package/es/platform/zlist/{usecases → applications}/interfaces/input/RecordUpdateUseCaseInput.js +0 -0
  272. /package/es/platform/zlist/{usecases → applications}/interfaces/input/SortingInputModel.js +0 -0
  273. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  274. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/DeleteMultipleRecordUseCase.js +0 -0
  275. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/DeleteSingleRecordUseCase.js +0 -0
  276. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/FetchMoreUseCase.js +0 -0
  277. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/FieldChangeUseCase.js +0 -0
  278. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
  279. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/PropertiesChangeUseCase.js +0 -0
  280. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/RecordExecuteFailedUseCase.js +0 -0
  281. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/RecordExecuteSucceededUseCase.js +0 -0
  282. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/RecordUpdateUseCase.js +0 -0
  283. /package/es/platform/zlist/{usecases/interactors → applications/usecases}/SortUseCase.js +0 -0
  284. /package/es/platform/zlist/{entities/interfaces/Properties.js → domain/entities/interfaces/ActionModel.js} +0 -0
  285. /package/es/platform/zlist/{entities/interfaces/RecordExecuteAfterMetaData.js → domain/entities/interfaces/ApiPropsModel.js} +0 -0
  286. /package/es/platform/{zrecord/entities/interfaces/BehaviourState.js → zlist/domain/entities/interfaces/IList.js} +0 -0
  287. /package/es/platform/{zrecord/entities/interfaces/EventModel.js → zlist/domain/entities/interfaces/Properties.js} +0 -0
  288. /package/es/platform/{zrecord/entities/interfaces/ICustomFieldValues.js → zlist/domain/entities/interfaces/RecordExecuteAfterMetaData.js} +0 -0
  289. /package/es/platform/zrecord/{usecases → applications}/interfaces/InputDependencies.js +0 -0
  290. /package/es/platform/zrecord/{usecases → applications}/interfaces/gateways/IRepository.js +0 -0
  291. /package/es/platform/zrecord/{usecases → applications}/interfaces/gateways/IService.js +0 -0
  292. /package/es/platform/zrecord/{usecases → applications}/interfaces/gateways/State.js +0 -0
  293. /package/es/platform/zrecord/{usecases → applications}/interfaces/input/AppendRecordsInputModel.js +0 -0
  294. /package/es/platform/zrecord/{usecases → applications}/interfaces/input/DeleteMultipleRecordInputModel.js +0 -0
  295. /package/es/platform/zrecord/{usecases → applications}/interfaces/input/ExecuteActionInputModel.js +0 -0
  296. /package/es/platform/zrecord/{usecases → applications}/interfaces/input/FailureInputModel.js +0 -0
  297. /package/es/platform/zrecord/{usecases → applications}/interfaces/input/FetchMoreInputModel.js +0 -0
  298. /package/es/platform/zrecord/{usecases → applications}/interfaces/input/FetchStateStopInputModel.js +0 -0
  299. /package/es/platform/zrecord/{usecases → applications}/interfaces/input/FieldChangeUseCaseInput.js +0 -0
  300. /package/es/platform/zrecord/{usecases → applications}/interfaces/input/InitializeInputModel.js +0 -0
  301. /package/es/platform/zrecord/{usecases → applications}/interfaces/input/NoContentInputModel.js +0 -0
  302. /package/es/platform/zrecord/{usecases → applications}/interfaces/input/RecordUpdateLocalUseCaseInputModel.js +0 -0
  303. /package/es/platform/zrecord/{usecases → applications}/interfaces/input/RefetchInputModel.js +0 -0
  304. /package/es/platform/zrecord/{usecases → applications}/interfaces/input/SetRecordsInputModel.js +0 -0
  305. /package/es/platform/zrecord/{usecases → applications}/interfaces/input/SuccessInputModel.js +0 -0
  306. /package/es/platform/zrecord/{usecases → applications}/interfaces/output/IPresenter.js +0 -0
  307. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/AbstractUseCase.js +0 -0
  308. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/AppendRecordsUseCase.js +0 -0
  309. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/DeleteMultipleRecordUseCase.js +0 -0
  310. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/ExecuteActionUseCase.js +0 -0
  311. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FailureUseCase.js +0 -0
  312. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FetchMoreUseCase.js +0 -0
  313. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FetchStateStopUseCase.js +0 -0
  314. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/FieldChangeUseCase.js +0 -0
  315. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/InitializeUseCase.js +0 -0
  316. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/NoContentUseCase.js +0 -0
  317. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/RecordUpdateLocalUseCase.js +0 -0
  318. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/RefetchUseCase.js +0 -0
  319. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/SetRecordsUseCase.js +0 -0
  320. /package/es/platform/zrecord/{usecases/interactors → applications/usecases}/SuccessUseCase.js +0 -0
  321. /package/es/platform/zrecord/{entities → domain/entities}/CustomFieldValues.js +0 -0
  322. /package/es/platform/zrecord/{entities → domain/entities}/Record.js +0 -0
  323. /package/es/platform/zrecord/{entities → domain/entities}/Records.js +0 -0
  324. /package/es/platform/zrecord/{entities → domain/entities}/interfaces/ApiEnum.js +0 -0
  325. /package/es/platform/zrecord/{entities/interfaces/IRecordName.js → domain/entities/interfaces/BehaviourState.js} +0 -0
  326. /package/es/platform/zrecord/{entities/interfaces/RecordModel.js → domain/entities/interfaces/EventModel.js} +0 -0
  327. /package/es/platform/zrecord/{entities/interfaces/RecordsModel.js → domain/entities/interfaces/ICustomFieldValues.js} +0 -0
  328. /package/es/platform/zrecord/{entities → domain/entities}/interfaces/IRecord.js +0 -0
  329. /package/es/platform/zrecord/{entities → domain/entities}/interfaces/IRecordExecuteStrategy.js +0 -0
  330. /package/es/platform/zrecord/{entities/interfaces/StrategyMeta.js → domain/entities/interfaces/IRecordName.js} +0 -0
  331. /package/es/platform/zrecord/{entities → domain/entities}/interfaces/IRecords.js +0 -0
  332. /package/es/platform/zrecord/{entities → domain/entities}/interfaces/IRecordsManager.js +0 -0
@@ -1,9 +1,23 @@
1
- import SelectionConfigSchema from "../../bc/list-selection/Properties";
2
1
  import ResizerConfigSchema from "../../bc/table-column-resizer/Properties";
3
- import SortOrder from "../../bc/sort-by/SortOrderEnum";
2
+ import { actionsSchema } from "../action-location/Properties";
3
+ import PropertiesConverter from "../component/properties/PropertiesConverter";
4
+ import BooleanProperties from "../fields/boolean/Properties";
5
+ import CurrencyProperties from "../fields/currency/Properties";
6
+ import DateProperties from "../fields/date/Properties";
7
+ import DatetimeProperties from "../fields/datetime/Properties";
8
+ import DecimalProperties from "../fields/decimal/Properties";
9
+ import EmailProperties from "../fields/email/Properties";
10
+ import LookupProperties from "../fields/lookup/Properties";
11
+ import MultiSelectProperties from "../fields/multi-select/Properties";
12
+ import NumberProperties from "../fields/number/Properties";
13
+ import PercentProperties from "../fields/percent/Properties";
14
+ import PhoneProperties from "../fields/phone/Properties";
15
+ import PickListProperties from "../fields/pick-list/Properties";
16
+ import TextProperties from "../fields/text/Properties";
17
+ import UrlProperties from "../fields/url/Properties";
4
18
  const TableListProperties = {
5
19
  isLoading: {
6
- required: true,
20
+ required: false,
7
21
  typeMetadata: {
8
22
  schema: {
9
23
  type: 'boolean'
@@ -42,26 +56,16 @@ const TableListProperties = {
42
56
  required: false,
43
57
  defaultValue: {
44
58
  isEnabled: false,
45
- minWidth: 120,
59
+ minWidth: 100,
46
60
  maxWidth: 1000
47
61
  },
48
62
  typeMetadata: {
49
63
  schema: ResizerConfigSchema
50
64
  }
51
65
  },
52
- selectionConfig: {
53
- required: false,
54
- defaultValue: {
55
- isEnabled: false,
56
- maxSelectionCount: 50,
57
- limitExceedAlertMessage: 'Max records selected'
58
- },
59
- typeMetadata: {
60
- schema: SelectionConfigSchema
61
- }
62
- },
63
66
  data: {
64
- required: true,
67
+ name: 'data',
68
+ required: false,
65
69
  defaultValue: {
66
70
  headers: [],
67
71
  rows: []
@@ -70,350 +74,107 @@ const TableListProperties = {
70
74
  schema: {
71
75
  $schema: 'http://json-schema.org/draft-07/schema#',
72
76
  definitions: {
73
- Schema: {
74
- type: 'object',
75
- properties: {
76
- type: {}
77
- }
78
- },
79
- PayloadProperties: {
77
+ HeaderMeta: {
80
78
  type: 'object',
81
79
  properties: {
82
- name: {
83
- type: 'string'
84
- },
85
- label: {
80
+ id: {
86
81
  type: 'string'
87
82
  },
88
- typeMetadata: {
89
- type: 'object',
90
- properties: {
91
- schema: {
92
- $ref: '#/definitions/Schema'
93
- }
94
- }
95
- }
96
- },
97
- required: ['name', 'typeMetadata']
98
- },
99
- Payload: {
100
- type: 'object',
101
- additionalProperties: {
102
- $ref: '#/definitions/PayloadProperties'
103
- }
104
- },
105
- DeclarativeAction: {
106
- type: 'object',
107
- properties: {
108
83
  name: {
109
84
  type: 'string'
110
85
  },
111
- label: {
112
- type: 'string'
113
- },
114
- buttonType: {
115
- defaultValue: 'primary',
116
- type: 'string',
117
- enum: ['primary', 'danger']
118
- },
119
- icon: {
120
- type: 'string'
121
- },
122
- actionName: {
123
- type: 'string'
124
- },
125
- actionPayload: {
126
- $ref: '#/definitions/Payload'
127
- },
128
- metaData: {},
129
- description: {
130
- type: 'string'
131
- }
132
- },
133
- required: ['name', 'label', 'buttonType', 'icon']
134
- },
135
- HeaderMeta: {
136
- type: 'object',
137
- properties: {
138
- id: {
139
- type: 'string'
140
- },
141
86
  text: {
142
87
  type: 'string'
143
88
  },
144
- sortable: {
145
- defaultValue: false,
146
- type: 'boolean'
147
- },
148
89
  size: {
149
- defaultValue: 'medium',
150
90
  type: 'string',
151
91
  enum: ['xsmall', 'small', 'medium', 'large', 'xlarge']
152
92
  },
153
93
  alignment: {
154
- defaultValue: 'left',
155
94
  type: 'string',
156
95
  enum: ['left', 'center', 'right']
157
- }
158
- },
159
- required: ['id', 'text', 'sortable', 'size', 'alignment']
160
- },
161
- Text: {
162
- type: 'object',
163
- properties: {
164
- type: {
165
- type: 'string',
166
- const: 'Text'
167
- },
168
- text: {
169
- type: 'string'
170
96
  },
171
- weight: {
172
- type: 'string',
173
- enum: ['light', 'regular', 'semibold', 'bold']
174
- },
175
- tooltip: {
176
- type: 'string'
177
- }
178
- },
179
- required: ['type', 'text']
180
- },
181
- Link: {
182
- type: 'object',
183
- properties: {
184
- type: {
185
- type: 'string',
186
- const: 'Link'
187
- },
188
- href: {
189
- type: 'string'
190
- },
191
- opensNewTab: {
192
- type: 'boolean',
193
- defaultValue: false
194
- },
195
- label: {
196
- type: 'string'
197
- },
198
- variant: {
199
- type: 'string',
200
- enum: ['primary', 'secondary']
201
- }
202
- },
203
- required: ['type', 'href', 'variant', 'opensNewTab', 'label']
204
- },
205
- CheckBox: {
206
- type: 'object',
207
- properties: {
208
- type: {
209
- type: 'string',
210
- const: 'CheckBox'
211
- },
212
- checked: {
213
- defaultValue: false,
214
- type: 'boolean'
215
- },
216
- disabled: {
217
- defaultValue: false,
218
- type: 'boolean'
219
- },
220
- readonly: {
221
- defaultValue: false,
222
- type: 'boolean'
223
- },
224
- label: {
225
- type: 'string'
226
- },
227
- tooltip: {
228
- type: 'string'
229
- }
230
- },
231
- required: ['type', 'checked', 'label']
232
- },
233
- Switch: {
234
- type: 'object',
235
- properties: {
236
- type: {
237
- type: 'string',
238
- const: 'Switch'
239
- },
240
- checked: {
241
- defaultValue: false,
97
+ sortable: {
242
98
  type: 'boolean'
243
99
  },
244
- size: {
100
+ sortOrder: {
245
101
  type: 'string',
246
- enum: ['small', 'medium']
247
- },
248
- disabled: {
249
- defaultValue: false,
250
- type: 'boolean'
102
+ enum: ['none', 'ascending', 'descending']
251
103
  },
252
- tooltip: {
104
+ sortTooltip: {
253
105
  type: 'string'
254
106
  }
255
107
  },
256
- required: ['type', 'checked', 'size']
108
+ required: ['id', 'name', 'text']
257
109
  },
258
- Email: {
259
- type: 'object',
260
- properties: {
261
- type: {
262
- type: 'string',
263
- const: 'Email'
264
- },
265
- email: {
266
- type: 'string'
267
- }
268
- },
269
- required: ['type', 'email']
270
- },
271
- Avatar: {
272
- type: 'object',
273
- properties: {
274
- type: {
275
- type: 'string',
276
- const: 'Avatar'
277
- },
278
- imageSrc: {
279
- type: 'string'
280
- },
281
- name: {
282
- type: 'string'
283
- },
284
- label: {
285
- type: 'string'
286
- },
287
- size: {
288
- type: 'string',
289
- enum: ['xsmall', 'small', 'medium', 'large', 'xlarge']
290
- },
291
- tooltip: {
292
- type: 'string'
293
- }
294
- },
295
- required: ['type', 'name', 'size']
296
- },
297
- HighlightedValue: {
298
- type: 'object',
299
- properties: {
300
- type: {
301
- type: 'string',
302
- const: 'StatusBox'
303
- },
304
- text: {
305
- type: 'string'
306
- },
307
- color: {
308
- defaultValue: 'grey',
309
- type: 'string',
310
- enum: ['grey', 'red', 'orange', 'green', 'blue']
110
+ Column: {
111
+ anyOf: [PropertiesConverter.toJsonSchema(BooleanProperties), PropertiesConverter.toJsonSchema(CurrencyProperties), PropertiesConverter.toJsonSchema(DateProperties), PropertiesConverter.toJsonSchema(DatetimeProperties), PropertiesConverter.toJsonSchema(DecimalProperties), PropertiesConverter.toJsonSchema(EmailProperties), PropertiesConverter.toJsonSchema(LookupProperties), PropertiesConverter.toJsonSchema(MultiSelectProperties), PropertiesConverter.toJsonSchema(NumberProperties), PropertiesConverter.toJsonSchema(PercentProperties), PropertiesConverter.toJsonSchema(PhoneProperties), PropertiesConverter.toJsonSchema(PickListProperties), PropertiesConverter.toJsonSchema(TextProperties), PropertiesConverter.toJsonSchema(UrlProperties), // Below field is for the empty cell
112
+ {
113
+ type: 'object',
114
+ properties: {
115
+ type: {
116
+ type: 'string'
117
+ },
118
+ value: {
119
+ type: 'string'
120
+ }
311
121
  },
312
- tooltip: {
313
- type: 'string'
314
- }
315
- },
316
- required: ['type', 'text', 'color']
122
+ required: ['type', 'value']
123
+ }]
317
124
  },
318
- Tags: {
125
+ ActionLocation: {
319
126
  type: 'object',
320
127
  properties: {
321
128
  type: {
322
- type: 'string',
323
- const: 'Tags'
324
- },
325
- title: {
326
129
  type: 'string'
327
130
  },
328
- tags: {
329
- type: 'array'
330
- }
131
+ actions: actionsSchema
331
132
  },
332
- required: ['type', 'tags']
333
- },
334
- Cell: {
335
- anyOf: [{
336
- $ref: '#/definitions/Text'
337
- }, {
338
- $ref: '#/definitions/Link'
339
- }, {
340
- $ref: '#/definitions/CheckBox'
341
- }, {
342
- $ref: '#/definitions/Switch'
343
- }, {
344
- $ref: '#/definitions/Email'
345
- }, {
346
- $ref: '#/definitions/Avatar'
347
- }, {
348
- $ref: '#/definitions/Tags'
349
- }, {
350
- $ref: '#/definitions/HighlightedValue'
351
- }]
133
+ required: ['actions']
352
134
  }
353
135
  },
354
136
  type: 'object',
355
137
  properties: {
356
- data: {
357
- type: 'object',
358
- properties: {
359
- headers: {
360
- type: 'array',
361
- items: {
362
- $ref: '#/definitions/HeaderMeta'
138
+ headers: {
139
+ type: 'array',
140
+ minIems: 0,
141
+ items: {
142
+ $ref: '#/definitions/HeaderMeta'
143
+ }
144
+ },
145
+ rows: {
146
+ type: 'array',
147
+ minIems: 0,
148
+ items: {
149
+ type: 'object',
150
+ properties: {
151
+ id: {
152
+ type: 'string'
153
+ },
154
+ columns: {
155
+ type: 'array',
156
+ items: {
157
+ $ref: '#/definitions/Column'
158
+ }
159
+ },
160
+ rowActionLocation: {
161
+ $ref: '#/definitions/ActionLocation'
162
+ },
163
+ isSelectable: {
164
+ type: 'boolean'
165
+ },
166
+ isSelected: {
167
+ type: 'boolean'
168
+ },
169
+ selectionTooltip: {
170
+ type: 'string'
363
171
  }
364
172
  },
365
- rows: {
366
- type: 'array',
367
- items: {
368
- type: 'object',
369
- properties: {
370
- id: {
371
- type: 'string'
372
- },
373
- columns: {
374
- type: 'array',
375
- items: {
376
- $ref: '#/definitions/Cell'
377
- }
378
- },
379
- rowActions: {
380
- defaultValue: [],
381
- type: 'array',
382
- items: {
383
- $ref: '#/definitions/DeclarativeAction'
384
- }
385
- },
386
- clickAction: {
387
- $ref: '#/definitions/DeclarativeAction'
388
- }
389
- },
390
- required: ['id', 'columns', 'rowActions', 'clickAction']
391
- }
392
- }
393
- },
394
- required: ['headers', 'rows']
173
+ required: ['id', 'columns']
174
+ }
395
175
  }
396
- }
397
- }
398
- }
399
- },
400
- sortBy: {
401
- required: false,
402
- defaultValue: {
403
- id: '',
404
- type: 'none'
405
- },
406
- typeMetadata: {
407
- schema: {
408
- id: {
409
- required: true,
410
- type: 'string'
411
176
  },
412
- order: {
413
- type: 'string',
414
- enum: Object.values(SortOrder),
415
- defaultValue: 'none'
416
- }
177
+ required: ['headers', 'rows']
417
178
  }
418
179
  }
419
180
  }
@@ -2,13 +2,11 @@ export default function RowModel(_ref) {
2
2
  let {
3
3
  id,
4
4
  columns,
5
- rowActions,
6
- clickAction
5
+ rowActionLocation
7
6
  } = _ref;
8
7
  return {
9
8
  id,
10
9
  columns,
11
- rowActions,
12
- clickAction
10
+ rowActionLocation
13
11
  };
14
12
  }
@@ -44,7 +44,8 @@ const TableRowProperties = {
44
44
  }
45
45
  },
46
46
  columns: {
47
- required: true,
47
+ required: false,
48
+ defaultValue: [],
48
49
  typeMetadata: {
49
50
  schema: {
50
51
  type: 'array' // TODO: Add Field Properties
@@ -52,7 +53,7 @@ const TableRowProperties = {
52
53
  }
53
54
  }
54
55
  },
55
- clickAction: {
56
+ rowActionLocation: {
56
57
  required: false,
57
58
  defaultValue: {},
58
59
  typeMetadata: {
@@ -61,15 +62,6 @@ const TableRowProperties = {
61
62
  }
62
63
  }
63
64
  },
64
- rowActions: {
65
- required: false,
66
- defaultValue: [],
67
- typeMetadata: {
68
- schema: {
69
- type: 'array'
70
- }
71
- }
72
- },
73
65
  isFlexibleColumns: {
74
66
  required: false,
75
67
  defaultValue: false,
@@ -13,23 +13,22 @@ function View(_ref, ref) {
13
13
  properties,
14
14
  emptyStateUiType
15
15
  } = state;
16
- return /*#__PURE__*/React.createElement("div", {
17
- style: {
18
- height: '100%',
19
- width: '100%'
20
- },
21
- ref: ref
22
- }, /*#__PURE__*/React.createElement(TableList, {
16
+ const {
17
+ isFlexibleColumns,
18
+ selectionConfig
19
+ } = properties;
20
+ return /*#__PURE__*/React.createElement(TableList, {
23
21
  data: data,
22
+ getRef: ref,
23
+ isFlexibleColumns: isFlexibleColumns,
24
24
  hasRowActions: hasRowActions,
25
- isFlexibleColumns: properties.isFlexibleColumns,
26
25
  isLoading: isLoading,
27
26
  emptyStateUiType: emptyStateUiType,
28
- selectionConfig: properties.selectionConfig
29
- }));
27
+ selectionConfig: selectionConfig
28
+ });
30
29
  }
31
30
 
32
31
  export default View;
33
32
  View.propTypes = {
34
- state: PropTypes.string
33
+ state: PropTypes.object
35
34
  };
@@ -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) {
@@ -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) {