@zohodesk/library-platform 1.1.12 → 1.1.13

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 (375) hide show
  1. package/es/bc/action-band/Constants.js +4 -0
  2. package/es/bc/action-band/Properties.js +10 -0
  3. package/es/bc/action-band/index.js +1 -0
  4. package/es/bc/app-context/Properties.js +19 -0
  5. package/es/bc/float-pagination/ActionHandlers.js +1 -0
  6. package/es/bc/float-pagination/Constants.js +4 -0
  7. package/es/bc/float-pagination/Properties.js +18 -0
  8. package/es/bc/float-pagination/index.js +2 -0
  9. package/es/bc/index.js +0 -1
  10. package/es/bc/sdk/ResourceNamesEnum.js +1 -0
  11. package/es/bc/search/Constants.js +3 -0
  12. package/es/bc/search/EventHandlers.js +1 -0
  13. package/es/bc/search/Properties.js +11 -0
  14. package/es/bc/search/index.js +2 -0
  15. package/es/bc/search-box/ActionHandlers.js +1 -0
  16. package/es/bc/search-box/Constants.js +4 -0
  17. package/es/bc/search-box/Properties.js +18 -0
  18. package/es/bc/search-box/index.js +2 -0
  19. package/es/bc/sort-by/ActionHandlers.js +1 -1
  20. package/es/bc/sort-by/Constants.js +2 -2
  21. package/es/bc/sort-by/Properties.js +13 -11
  22. package/es/bc/sort-by/Types.js +10 -0
  23. package/es/bc/sort-by/types/SortByBehaviourState.js +1 -0
  24. package/es/bc/zfield/Constants.js +5 -1
  25. package/es/bc/zlist/Constants.js +0 -1
  26. package/es/bc/zlist/Types.js +27 -0
  27. package/es/bc/zrecord/Constants.js +2 -0
  28. package/es/bc/zrecord/Schemas.js +29 -0
  29. package/es/bc/zrecord/Types.js +45 -0
  30. package/es/cc/action-band/Properties.js +83 -0
  31. package/es/cc/action-band/SdkContract.js +13 -0
  32. package/es/cc/action-band/constants/Events.js +1 -0
  33. package/es/cc/action-band/constants/ExternalConstants.js +7 -0
  34. package/es/cc/action-band/constants/index.js +2 -0
  35. package/es/cc/action-band/index.js +3 -0
  36. package/es/cc/action-icon/Properties.js +20 -1
  37. package/es/cc/checkbox/Properties.js +2 -1
  38. package/es/cc/email/Properties.js +8 -0
  39. package/es/cc/fields/field/Types.js +31 -23
  40. package/es/cc/floating-pagination/Constants.js +6 -0
  41. package/es/cc/floating-pagination/Events.js +8 -0
  42. package/es/cc/floating-pagination/Properties.js +56 -0
  43. package/es/cc/floating-pagination/index.js +3 -0
  44. package/es/cc/highlighted-value/Properties.js +18 -0
  45. package/es/cc/link/Properties.js +13 -3
  46. package/es/cc/list-item/Properties.js +10 -0
  47. package/es/cc/more-dropdown/Properties.js +4 -0
  48. package/es/cc/radio-dropdown/Constants.js +6 -0
  49. package/es/cc/radio-dropdown/Data.js +1 -0
  50. package/es/cc/radio-dropdown/Events.js +42 -0
  51. package/es/cc/radio-dropdown/Properties.js +142 -0
  52. package/es/cc/radio-dropdown/index.js +4 -0
  53. package/es/cc/ribbon/Properties.js +59 -0
  54. package/es/cc/ribbon/index.js +1 -0
  55. package/es/cc/search/Constants.js +6 -0
  56. package/es/cc/search/Events.js +17 -0
  57. package/es/cc/search/Properties.js +11 -0
  58. package/es/cc/search/index.js +3 -0
  59. package/es/cc/sort-dropdown/Constants.js +7 -0
  60. package/es/cc/sort-dropdown/Events.js +46 -0
  61. package/es/cc/sort-dropdown/Properties.js +135 -0
  62. package/es/cc/sort-dropdown/index.js +3 -0
  63. package/es/cc/switch/Properties.js +2 -2
  64. package/es/cc/table-connected/Properties.js +16 -0
  65. package/es/cc/table-connected/SdkContract.js +24 -0
  66. package/es/cc/table-connected/constants/Events.js +2 -0
  67. package/es/cc/table-list/Actions.js +0 -2
  68. package/es/cc/table-list/Constants.js +1 -1
  69. package/es/cc/table-list/Events.js +0 -2
  70. package/es/cc/table-list/Properties.js +35 -38
  71. package/es/cc/table-list/data-types/FloatPaginationConfig.js +1 -0
  72. package/es/cc/tag/Constants.js +6 -0
  73. package/es/cc/tag/Data.js +14 -0
  74. package/es/cc/tag/EventHandlers.js +1 -0
  75. package/es/cc/tag/Events.js +26 -0
  76. package/es/cc/{tags/model/TagModel.js → tag/Model.js} +6 -2
  77. package/es/cc/tag/Properties.js +104 -0
  78. package/es/cc/tag/index.js +6 -0
  79. package/es/cc/tags/Data.js +0 -6
  80. package/es/cc/tags/model/index.js +1 -1
  81. package/es/cc/tags-list-dropdown/Constants.js +5 -0
  82. package/es/cc/tags-list-dropdown/Data.js +1 -0
  83. package/es/cc/tags-list-dropdown/Events.js +14 -0
  84. package/es/cc/tags-list-dropdown/Properties.js +96 -0
  85. package/es/cc/tags-list-dropdown/index.js +4 -0
  86. package/es/index.js +1 -1
  87. package/es/library/behaviours/action-band/adapters/controllers/AbstractController.js +10 -0
  88. package/es/library/behaviours/action-band/adapters/controllers/MountController.js +21 -0
  89. package/es/library/behaviours/action-band/adapters/gateways/Repository.js +24 -0
  90. package/es/library/behaviours/action-band/adapters/gateways/Service.js +11 -0
  91. package/es/library/behaviours/action-band/applications/interfaces/State.js +1 -0
  92. package/es/library/behaviours/action-band/applications/interfaces/UseCaseDependencies.js +1 -0
  93. package/es/library/behaviours/action-band/applications/interfaces/gateways/IRepository.js +1 -0
  94. package/es/library/behaviours/action-band/applications/interfaces/gateways/IService.js +1 -0
  95. package/es/library/behaviours/action-band/applications/interfaces/input/InitializeInput.js +1 -0
  96. package/es/library/behaviours/action-band/applications/usecases/AbstractUseCase.js +17 -0
  97. package/es/library/behaviours/action-band/applications/usecases/InitializeUseCase.js +20 -0
  98. package/es/library/behaviours/action-band/domain/entities/ActionBand.js +95 -0
  99. package/es/library/behaviours/action-band/domain/entities/interfaces/IActionBand.js +1 -0
  100. package/es/library/behaviours/action-band/domain/entities/interfaces/IActionModel.js +1 -0
  101. package/es/library/behaviours/action-band/domain/entities/interfaces/IApiPropsModel.js +1 -0
  102. package/es/library/behaviours/action-band/domain/entities/interfaces/Properties.js +1 -0
  103. package/es/library/behaviours/action-band/frameworks/ActionBandBehaviourFactory.js +21 -0
  104. package/es/library/behaviours/action-band/frameworks/ActionHandlersFactory.js +17 -0
  105. package/es/library/behaviours/clip-wrap/adapters/controllers/DestructController.js +3 -3
  106. package/es/library/behaviours/clip-wrap/adapters/controllers/InitializeController.js +3 -3
  107. package/es/library/behaviours/clip-wrap/adapters/gateway/Service.js +4 -0
  108. package/es/library/behaviours/float-pagination/adapters/controllers/AbstractController.js +9 -0
  109. package/es/library/behaviours/float-pagination/adapters/controllers/DestructController.js +18 -0
  110. package/es/library/behaviours/float-pagination/adapters/controllers/FloatPaginationController.js +25 -0
  111. package/es/library/behaviours/float-pagination/adapters/controllers/InitializeController.js +18 -0
  112. package/es/library/behaviours/float-pagination/adapters/controllers/ScrollBottomController.js +23 -0
  113. package/es/library/behaviours/float-pagination/adapters/controllers/ScrollTopController.js +23 -0
  114. package/es/library/behaviours/float-pagination/adapters/controllers/UpdateIndexController.js +30 -0
  115. package/es/library/behaviours/float-pagination/adapters/gateway/Repository.js +27 -0
  116. package/es/library/behaviours/float-pagination/adapters/gateway/Service.js +20 -0
  117. package/es/library/behaviours/float-pagination/adapters/presenter/Presenter.js +16 -0
  118. package/es/library/behaviours/float-pagination/applications/interfaces/UseCaseDependencies.js +1 -0
  119. package/es/library/behaviours/float-pagination/applications/interfaces/gateways/IRepository.js +1 -0
  120. package/es/library/behaviours/float-pagination/applications/interfaces/gateways/IService.js +1 -0
  121. package/es/library/behaviours/float-pagination/applications/interfaces/input/DestructInputModel.js +1 -0
  122. package/es/library/behaviours/float-pagination/applications/interfaces/input/FloatPaginationInputModel.js +1 -0
  123. package/es/library/behaviours/float-pagination/applications/interfaces/input/InitializeInputModel.js +1 -0
  124. package/es/library/behaviours/float-pagination/applications/interfaces/input/ScrollTopInputModel.js +1 -0
  125. package/es/library/behaviours/float-pagination/applications/interfaces/input/ScrollbottomInputModel.js +1 -0
  126. package/es/library/behaviours/float-pagination/applications/interfaces/input/UpdateIndexInputModel.js +1 -0
  127. package/es/library/behaviours/float-pagination/applications/interfaces/output/FloatPaginationOutputModel.js +1 -0
  128. package/es/library/behaviours/float-pagination/applications/interfaces/output/IPresenter.js +1 -0
  129. package/es/library/behaviours/float-pagination/applications/usecases/AbstractUseCase.js +17 -0
  130. package/es/library/behaviours/float-pagination/applications/usecases/DestructUsecase.js +15 -0
  131. package/es/library/behaviours/float-pagination/applications/usecases/FloatPaginationUseCase.js +31 -0
  132. package/es/library/behaviours/float-pagination/applications/usecases/InitializeUsecase.js +16 -0
  133. package/es/library/behaviours/float-pagination/applications/usecases/ScrollBottomUseCase.js +23 -0
  134. package/es/library/behaviours/float-pagination/applications/usecases/ScrollTopUseCase.js +23 -0
  135. package/es/library/behaviours/float-pagination/applications/usecases/UpdateIndexUseCase.js +28 -0
  136. package/es/library/behaviours/float-pagination/domain/entities/FloatPagination.js +28 -0
  137. package/es/library/behaviours/float-pagination/domain/entities/interfaces/IFloatPagination.js +1 -0
  138. package/es/library/behaviours/float-pagination/frameworks/ui/ActionsHandlerFactory.js +37 -0
  139. package/es/library/behaviours/float-pagination/frameworks/ui/FloatPaginationBehaviourFactory.js +21 -0
  140. package/es/library/behaviours/float-pagination/frameworks/utils.js +70 -0
  141. package/es/library/behaviours/keyboard-controls/adapters/gateways/Repository.js +2 -1
  142. package/es/library/behaviours/keyboard-controls/applications/usecases/SpacePress.js +1 -1
  143. package/es/library/behaviours/keyboard-controls/domain/entities/KeyboardControls.js +6 -1
  144. package/es/library/behaviours/list-selection/domain/entities/ListItemSelection.js +21 -18
  145. package/es/library/behaviours/search/adapters/controllers/AbstractController.js +9 -0
  146. package/es/library/behaviours/search/adapters/controllers/SearchController.js +26 -0
  147. package/es/library/behaviours/search/adapters/controllers/UpdatePropertiesController.js +27 -0
  148. package/es/library/behaviours/search/adapters/gateway/Repository.js +20 -0
  149. package/es/library/behaviours/search/adapters/gateway/Service.js +12 -0
  150. package/es/library/behaviours/search/adapters/presenter/Presenter.js +16 -0
  151. package/es/library/behaviours/search/adapters/presenter/SearchTranslator.js +6 -0
  152. package/es/library/behaviours/search/applications/interfaces/UseCaseDependencies.js +1 -0
  153. package/es/library/behaviours/search/applications/interfaces/gateways/IRepository.js +1 -0
  154. package/es/library/behaviours/search/applications/interfaces/gateways/IService.js +1 -0
  155. package/es/library/behaviours/search/applications/interfaces/input/SearchInputModel.js +1 -0
  156. package/es/library/behaviours/search/applications/interfaces/input/UpdatePropertiesInputModel.js +1 -0
  157. package/es/library/behaviours/search/applications/interfaces/output/IPresenter.js +1 -0
  158. package/es/library/behaviours/search/applications/interfaces/output/SearchOutputModel.js +1 -0
  159. package/es/library/behaviours/search/applications/usecases/AbstractUseCase.js +17 -0
  160. package/es/library/behaviours/search/applications/usecases/SearchUseCase.js +28 -0
  161. package/es/library/behaviours/search/applications/usecases/UpdatePropertiesUsecase.js +25 -0
  162. package/es/library/behaviours/search/domain/entities/Search.js +23 -0
  163. package/es/library/behaviours/search/domain/entities/interfaces/ISearch.js +1 -0
  164. package/es/library/behaviours/search/frameworks/ui/EventHandlerFactory.js +25 -0
  165. package/es/library/behaviours/search/frameworks/ui/SearchStringStoreBehaviourFactory.js +26 -0
  166. package/es/library/behaviours/search-box/adapters/controllers/AbstractController.js +9 -0
  167. package/es/library/behaviours/search-box/adapters/controllers/ClearSearchController.js +21 -0
  168. package/es/library/behaviours/search-box/adapters/controllers/SearchController.js +26 -0
  169. package/es/library/behaviours/search-box/adapters/gateway/Repository.js +28 -0
  170. package/es/library/behaviours/search-box/adapters/gateway/Service.js +12 -0
  171. package/es/library/behaviours/search-box/adapters/presenter/Presenter.js +21 -0
  172. package/es/library/behaviours/search-box/applications/interfaces/UseCaseDependencies.js +1 -0
  173. package/es/library/behaviours/search-box/applications/interfaces/gateways/IRepository.js +1 -0
  174. package/es/library/behaviours/search-box/applications/interfaces/gateways/IService.js +1 -0
  175. package/es/library/behaviours/search-box/applications/interfaces/input/ClearSearchInputModel.js +1 -0
  176. package/es/library/behaviours/search-box/applications/interfaces/input/SearchInputModel.js +1 -0
  177. package/es/library/behaviours/search-box/applications/interfaces/output/IPresenter.js +1 -0
  178. package/es/library/behaviours/search-box/applications/interfaces/output/SearchOutputModel.js +1 -0
  179. package/es/library/behaviours/search-box/applications/usecases/AbstractUseCase.js +17 -0
  180. package/es/library/behaviours/search-box/applications/usecases/ClearSearchUseCase.js +24 -0
  181. package/es/library/behaviours/search-box/applications/usecases/SearchUseCase.js +25 -0
  182. package/es/library/behaviours/search-box/domain/entities/Search.js +22 -0
  183. package/es/library/behaviours/search-box/domain/entities/interfaces/ISearch.js +1 -0
  184. package/es/library/behaviours/search-box/frameworks/ui/ActionsHandlerFactory.js +24 -0
  185. package/es/library/behaviours/search-box/frameworks/ui/SearchBehaviourFactory.js +26 -0
  186. package/es/library/behaviours/sort-by/adapters/controllers/{SortBy.js → SortByController.js} +6 -6
  187. package/es/library/behaviours/sort-by/adapters/gateway/Repository.js +18 -6
  188. package/es/library/behaviours/sort-by/adapters/gateway/Service.js +2 -2
  189. package/es/library/behaviours/sort-by/adapters/presenter/Presenter.js +8 -1
  190. package/es/library/behaviours/sort-by/applications/interfaces/input/UpdateSortByUseCaseInputModel.js +1 -0
  191. package/es/library/behaviours/sort-by/applications/interfaces/output/SearchOutputModel.js +1 -0
  192. package/es/library/behaviours/sort-by/applications/usecases/{SortBy.js → SortByUseCase.js} +12 -13
  193. package/es/library/behaviours/sort-by/applications/usecases/UpdateSortByUseCase.js +25 -0
  194. package/es/library/behaviours/sort-by/domain/entities/SortBy.js +11 -25
  195. package/es/library/behaviours/sort-by/frameworks/ui/ActionsHandlerFactory.js +7 -5
  196. package/es/library/behaviours/sort-by/frameworks/ui/SortByBehaviourFactory.js +17 -7
  197. package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +5 -0
  198. package/es/library/custom-component/domain/entities/ComponentProperties.js +1 -1
  199. package/es/library/custom-component/domain/entities/Logger.js +3 -3
  200. package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +7 -1
  201. package/es/library/dot/components/table-list/adapters/controllers/ScrollController.js +2 -2
  202. package/es/library/dot/components/table-list/adapters/controllers/index.js +0 -2
  203. package/es/library/dot/components/table-list/frameworks/ui/EventHandlersFactory.js +1 -2
  204. package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +24 -1
  205. package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +19 -2
  206. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +4 -6
  207. package/es/library/dot/legacy-to-new-arch/action-band-components/search/frameworks/ui/Search.js +41 -0
  208. package/es/library/dot/legacy-to-new-arch/action-band-components/search/frameworks/ui/SearchTranslator.js +16 -0
  209. package/es/library/dot/legacy-to-new-arch/action-band-components/search/frameworks/ui/SearchView.js +37 -0
  210. package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/ActionIconView.js +5 -1
  211. package/es/library/dot/legacy-to-new-arch/email/frameworks/ui/EmailView.js +4 -2
  212. package/es/library/dot/legacy-to-new-arch/floating-pagination/frameworks/ui/FloatingPagination.js +10 -0
  213. package/es/library/dot/legacy-to-new-arch/floating-pagination/frameworks/ui/FloatingPaginationView.js +47 -0
  214. package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValueView.js +6 -1
  215. package/es/library/dot/legacy-to-new-arch/index.js +3 -1
  216. package/es/library/dot/legacy-to-new-arch/link/frameworks/ui/LinkView.js +4 -2
  217. package/es/library/dot/legacy-to-new-arch/list-item/frameworks/ui/ListItemView.js +4 -0
  218. package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/RadioDropdown.js +12 -0
  219. package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/RadioDropdownView.js +125 -0
  220. package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/css/RadioDropdown.module.css +23 -0
  221. package/es/library/dot/legacy-to-new-arch/ribbon/frameworks/ui/Ribbon.js +10 -0
  222. package/es/library/dot/legacy-to-new-arch/ribbon/frameworks/ui/RibbonView.js +37 -0
  223. package/es/library/dot/legacy-to-new-arch/sort-dropdown/frameworks/ui/SortDropdown.js +31 -0
  224. package/es/library/dot/legacy-to-new-arch/sort-dropdown/frameworks/ui/SortDropdownTranslator.js +33 -0
  225. package/es/library/dot/legacy-to-new-arch/sort-dropdown/frameworks/ui/SortDropdownView.js +83 -0
  226. package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/CheckboxField.js +12 -2
  227. package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/CheckboxFieldView.js +8 -5
  228. package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/EventHandlersFactory.js +3 -3
  229. package/es/library/dot/legacy-to-new-arch/table-field-components/email-field/frameworks/ui/EmailField.js +3 -3
  230. package/es/library/dot/legacy-to-new-arch/table-field-components/email-field/frameworks/ui/EmailFieldView.js +8 -6
  231. package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/EventHandlersFactory.js +26 -0
  232. package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/HighlightedValueField.js +23 -0
  233. package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/HighlightedValueFieldView.js +24 -0
  234. package/es/library/dot/legacy-to-new-arch/table-field-components/index.js +22 -5
  235. package/es/library/dot/legacy-to-new-arch/table-field-components/labeled-avatar-field/frameworks/ui/EventHandlersFactory.js +26 -0
  236. package/es/library/dot/legacy-to-new-arch/table-field-components/labeled-avatar-field/frameworks/ui/LabeledAvatarField.js +23 -0
  237. package/es/library/dot/legacy-to-new-arch/table-field-components/labeled-avatar-field/frameworks/ui/LabeledAvatarFieldView.js +22 -0
  238. package/es/library/dot/legacy-to-new-arch/table-field-components/link-field/frameworks/ui/EventHandlersFactory.js +26 -0
  239. package/es/library/dot/legacy-to-new-arch/table-field-components/link-field/frameworks/ui/LinkField.js +23 -0
  240. package/es/library/dot/legacy-to-new-arch/table-field-components/link-field/frameworks/ui/LinkFieldView.js +26 -0
  241. package/es/library/dot/legacy-to-new-arch/table-field-components/lookup-field/frameworks/ui/LookupFieldView.js +1 -1
  242. package/es/library/dot/legacy-to-new-arch/table-field-components/phone-field/frameworks/ui/PhoneFieldView.js +1 -1
  243. package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/EventHandlersFactory.js +46 -0
  244. package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/RadioDropdownField.js +49 -0
  245. package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/RadioDropdownFieldView.js +43 -0
  246. package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/css/RadioDropdownField.module.css +3 -0
  247. package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/EventHandlersFactory.js +3 -3
  248. package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/SwitchField.js +14 -4
  249. package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/SwitchFieldView.js +8 -4
  250. package/es/library/dot/legacy-to-new-arch/table-field-components/tag-field/frameworks/ui/EventHandlersFactory.js +26 -0
  251. package/es/library/dot/legacy-to-new-arch/table-field-components/tag-field/frameworks/ui/TagField.js +23 -0
  252. package/es/library/dot/legacy-to-new-arch/table-field-components/tag-field/frameworks/ui/TagFieldView.js +34 -0
  253. package/es/library/dot/legacy-to-new-arch/table-field-components/tags-field/frameworks/ui/EventHandlersFactory.js +26 -0
  254. package/es/library/dot/legacy-to-new-arch/table-field-components/tags-field/frameworks/ui/TagsField.js +23 -0
  255. package/es/library/dot/legacy-to-new-arch/table-field-components/tags-field/frameworks/ui/TagsFieldView.js +18 -0
  256. package/es/library/dot/legacy-to-new-arch/table-field-components/tags-list-dropdown-field/frameworks/ui/TagsListDropdownField.js +44 -0
  257. package/es/library/dot/legacy-to-new-arch/table-field-components/tags-list-dropdown-field/frameworks/ui/TagsListDropdownFieldView.js +24 -0
  258. package/es/library/dot/legacy-to-new-arch/table-field-components/text-field/frameworks/ui/EventHandlersFactory.js +26 -0
  259. package/es/library/dot/legacy-to-new-arch/table-field-components/text-field/frameworks/ui/TextField.js +23 -0
  260. package/es/library/dot/legacy-to-new-arch/table-field-components/text-field/frameworks/ui/TextFieldView.js +20 -0
  261. package/es/library/dot/legacy-to-new-arch/table-field-components/url-field/frameworks/ui/UrlFieldView.js +1 -1
  262. package/es/library/dot/legacy-to-new-arch/tag/frameworks/ui/Tag.js +11 -0
  263. package/es/library/dot/legacy-to-new-arch/tag/frameworks/ui/Tag.module.css +8 -0
  264. package/es/library/dot/legacy-to-new-arch/tag/frameworks/ui/TagView.js +96 -0
  265. package/es/library/dot/legacy-to-new-arch/tags-list-dropdown/frameworks/ui/TagContractAdapter.js +24 -0
  266. package/es/library/dot/legacy-to-new-arch/tags-list-dropdown/frameworks/ui/TagsListDropdown.js +12 -0
  267. package/es/library/dot/legacy-to-new-arch/tags-list-dropdown/frameworks/ui/TagsListDropdownView.js +42 -0
  268. package/es/platform/client-actions/components/interfaces/ActionViewModel.js +1 -0
  269. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.module.css +4 -0
  270. package/es/platform/client-scripts/bc/zclient-scripts-execution/Constants.js +2 -4
  271. package/es/platform/client-scripts/behaviour/zclient-scripts-execution/domain/entities/ClientScriptExecutor.js +33 -60
  272. package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/ClientScriptModel.js +5 -1
  273. package/es/platform/components/index.js +2 -1
  274. package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +73 -0
  275. package/es/platform/components/smart-action-band/adapters/presenters/translators/interfaces/ActionBandTranslatorState.js +1 -0
  276. package/es/platform/components/smart-action-band/adapters/presenters/utils/DefaultClientActions.js +147 -0
  277. package/es/platform/components/smart-action-band/adapters/resources/SmartActionBandResource.js +46 -0
  278. package/es/platform/components/smart-action-band/applications/interfaces/ISmartActionBandResource.js +1 -0
  279. package/es/platform/components/smart-action-band/applications/interfaces/State.js +1 -0
  280. package/es/platform/components/smart-action-band/applications/interfaces/UseCaseDependencies.js +1 -0
  281. package/es/platform/components/smart-action-band/applications/interfaces/output/IPresenter.js +1 -0
  282. package/es/platform/components/smart-action-band/applications/usecases/AbstractUseCase.js +18 -0
  283. package/es/platform/components/smart-action-band/domain/entities/interfaces/Properties.js +1 -0
  284. package/es/platform/components/smart-action-band/frameworks/EventHandlersFactory.js +106 -0
  285. package/es/platform/components/smart-action-band/frameworks/SmartActionBand.js +5 -0
  286. package/es/platform/components/smart-action-band/frameworks/SmartActionBandFactory.js +55 -0
  287. package/es/platform/components/smart-action-band/frameworks/SmartActionBandSdkFactory.js +24 -0
  288. package/es/platform/components/smart-action-band/frameworks/SmartActionBandView.js +48 -0
  289. package/es/platform/components/table-connected/adapters/controllers/ScrollController.js +29 -8
  290. package/es/platform/components/table-connected/adapters/controllers/ScrollEndReachedController.js +23 -0
  291. package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +172 -8
  292. package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +39 -6
  293. package/es/platform/components/table-connected/frameworks/TableConnectedFactory.js +7 -1
  294. package/es/platform/components/table-connected/frameworks/TableConnectedView.js +2 -0
  295. package/es/platform/data-source/http-template/getComponentMapping.js +17 -0
  296. package/es/platform/data-source/http-template/getRecords.js +1 -0
  297. package/es/platform/data-source/index.js +3 -1
  298. package/es/platform/sdk/frameworks/Sdk.js +7 -0
  299. package/es/platform/zfield/applications/usecases/FetchSuccessUseCase.js +33 -0
  300. package/es/platform/zfield/domain/entities/fields-manager/FieldsManager.js +5 -0
  301. package/es/platform/zlist/adapters/controllers/RefreshRecordsRequestedController.js +21 -0
  302. package/es/platform/zlist/adapters/controllers/SortController.js +2 -2
  303. package/es/platform/zlist/adapters/gateways/Repository.js +6 -11
  304. package/es/platform/zlist/adapters/gateways/Service.js +2 -0
  305. package/es/platform/zlist/adapters/presenters/TableTranslator.js +57 -13
  306. package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +57 -49
  307. package/es/platform/zlist/adapters/presenters/translators/FieldVariations.js +25 -0
  308. package/es/platform/zlist/adapters/presenters/translators/Header.js +29 -21
  309. package/es/platform/zlist/adapters/presenters/translators/HeadersTranslator.js +3 -3
  310. package/es/platform/zlist/adapters/presenters/translators/Row.js +16 -2
  311. package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +3 -1
  312. package/es/platform/zlist/adapters/presenters/translators/fields/BooleanFieldTranslator.js +87 -12
  313. package/es/platform/zlist/adapters/presenters/translators/fields/CurrencyFieldTranslator.js +66 -11
  314. package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.js +33 -8
  315. package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.js +33 -8
  316. package/es/platform/zlist/adapters/presenters/translators/fields/DecimalFieldTranslator.js +16 -9
  317. package/es/platform/zlist/adapters/presenters/translators/fields/EmailFieldTranslator.js +29 -9
  318. package/es/platform/zlist/adapters/presenters/translators/fields/FormulaFieldTranslator.js +23 -27
  319. package/es/platform/zlist/adapters/presenters/translators/fields/LookUpFieldTranslator.js +106 -17
  320. package/es/platform/zlist/adapters/presenters/translators/fields/MultiLineFieldTranslator.js +16 -9
  321. package/es/platform/zlist/adapters/presenters/translators/fields/MultiSelectFieldTranslator.js +100 -26
  322. package/es/platform/zlist/adapters/presenters/translators/fields/NumberFieldTranslator.js +16 -9
  323. package/es/platform/zlist/adapters/presenters/translators/fields/PercentageFieldTranslator.js +16 -9
  324. package/es/platform/zlist/adapters/presenters/translators/fields/PhoneFieldTranslator.js +32 -9
  325. package/es/platform/zlist/adapters/presenters/translators/fields/PickListFieldTranslator.js +167 -26
  326. package/es/platform/zlist/adapters/presenters/translators/fields/SingleLineFieldTranslator.js +16 -9
  327. package/es/platform/zlist/adapters/presenters/translators/fields/URLFieldTranslator.js +32 -9
  328. package/es/platform/zlist/adapters/presenters/utils/DateAndTimeFormat.js +25 -0
  329. package/es/platform/zlist/adapters/presenters/utils/DefaultClientActions.js +7 -4
  330. package/es/platform/zlist/adapters/presenters/utils/fieldSortLabels.js +38 -0
  331. package/es/platform/zlist/applications/entities-factory/ListFactory.js +2 -2
  332. package/es/platform/zlist/applications/interfaces/input/GetSortConfigUseCaseInputModel.js +1 -0
  333. package/es/platform/zlist/applications/interfaces/input/RefreshRecordsRequestedUseCaseInputModel.js +1 -0
  334. package/es/platform/zlist/applications/interfaces/input/SetSortConfigUseCaseInputModel.js +1 -0
  335. package/es/platform/zlist/applications/usecases/GetSortConfigUseCase.js +17 -0
  336. package/es/platform/zlist/applications/usecases/RecordSuccessCallbackUsecase.js +1 -1
  337. package/es/platform/zlist/applications/usecases/RefreshRecordsRequestedUseCase.js +17 -0
  338. package/es/platform/zlist/applications/usecases/SetSortConfigUseCase.js +26 -0
  339. package/es/platform/zlist/applications/usecases/SortUseCase.js +6 -6
  340. package/es/platform/zlist/domain/entities/List.js +32 -16
  341. package/es/platform/zlist/domain/entities/interfaces/Properties.js +5 -5
  342. package/es/platform/zlist/frameworks/EventHandlersFactory.js +3 -4
  343. package/es/platform/zlist/frameworks/ZListBehaviourFactory.js +15 -13
  344. package/es/platform/zrecord/adapters/controllers/FilterRecordLocalController.js +28 -0
  345. package/es/platform/zrecord/adapters/gateways/Repository.js +5 -2
  346. package/es/platform/zrecord/adapters/gateways/Service.js +2 -0
  347. package/es/platform/zrecord/applications/entities-factory/RecordsManagerFactory.js +2 -2
  348. package/es/platform/zrecord/applications/interfaces/input/ClearAllFiltersUseCaseInputModel.js +1 -0
  349. package/es/platform/zrecord/applications/interfaces/input/FilterRecordInputModel.js +1 -0
  350. package/es/platform/zrecord/applications/interfaces/input/GetFilterConditionUseCaseInputModel.js +1 -0
  351. package/es/platform/zrecord/applications/interfaces/input/GetFilterConfigUseCaseInputModel.js +1 -0
  352. package/es/platform/zrecord/applications/interfaces/input/RefreshRecordsUseCaseInputModel.js +1 -0
  353. package/es/platform/zrecord/applications/interfaces/input/SetFilterUseCaseInputModel.js +1 -0
  354. package/es/platform/zrecord/applications/usecases/ClearAllFiltersUseCase.js +24 -0
  355. package/es/platform/zrecord/applications/usecases/FilterRecordUseCase.js +21 -0
  356. package/es/platform/zrecord/applications/usecases/GetFilterConditionUseCase.js +15 -0
  357. package/es/platform/zrecord/applications/usecases/GetFilterConfigUseCase.js +15 -0
  358. package/es/platform/zrecord/applications/usecases/RefreshRecordsUseCase.js +14 -0
  359. package/es/platform/zrecord/applications/usecases/SetFilterUseCase.js +29 -0
  360. package/es/platform/zrecord/domain/entities/Filter.js +247 -0
  361. package/es/platform/zrecord/domain/entities/RecordsManager.js +43 -1
  362. package/es/platform/zrecord/domain/entities/interfaces/IFilter.js +1 -0
  363. package/es/platform/zrecord/frameworks/ActionsHandlersFactory.js +4 -1
  364. package/es/platform/zrecord/frameworks/RecordBehaviourFactory.js +11 -1
  365. package/package.json +20 -19
  366. package/es/bc/sort-by/SortOrderEnum.js +0 -8
  367. package/es/library/behaviours/sort-by/frameworks/ui/DemoBehaviour.js +0 -20
  368. package/es/library/dot/components/table-list/adapters/controllers/SortByController.js +0 -25
  369. package/es/library/dot/components/table-list/adapters/controllers/SortedController.js +0 -18
  370. package/es/library/dot/components/table-list/frameworks/ui/handlers/HandleSortClick.js +0 -12
  371. package/es/platform/zlist/adapters/gateways/SortBy.js +0 -38
  372. package/es/platform/zlist/domain/entities/SortBy.js +0 -58
  373. /package/es/{library/behaviours/sort-by/applications/interfaces/output/SortByOutputModel.js → bc/float-pagination/types/FloatPaginationBehaviourState.js} +0 -0
  374. /package/es/{platform/zlist/applications/interfaces/gateways/ISortBy.js → bc/list-selection/Types.js} +0 -0
  375. /package/es/{platform/zlist/domain/entities/interfaces/ISortBy.js → bc/search-box/types/SearchBehaviourState.js} +0 -0
@@ -1,3 +1,5 @@
1
+ import { SortOrder } from "../../bc/zlist/Types";
2
+ import { filterConfigSchema } from "../../bc/zrecord/Schemas";
1
3
  export const SdkContracts = {
2
4
  getRecordInputMeta: {
3
5
  type: 'object',
@@ -107,6 +109,16 @@ export const SdkContracts = {
107
109
  },
108
110
  required: ['recordsMap']
109
111
  },
112
+ setFilterInputMeta: {
113
+ type: 'object',
114
+ properties: {
115
+ filterConfig: filterConfigSchema,
116
+ shouldFetch: {
117
+ type: 'boolean'
118
+ }
119
+ },
120
+ required: ['filterConfig']
121
+ },
110
122
  selectRecordsInputMeta: {
111
123
  type: 'object',
112
124
  properties: {
@@ -147,6 +159,18 @@ export const SdkContracts = {
147
159
  },
148
160
  required: ['ids']
149
161
  },
162
+ setSortConfigInputMeta: {
163
+ type: 'object',
164
+ properties: {
165
+ fieldName: {
166
+ type: 'string'
167
+ },
168
+ order: {
169
+ type: 'string',
170
+ enum: [SortOrder.ASC, SortOrder.DES, SortOrder.NONE]
171
+ }
172
+ }
173
+ },
150
174
  sortByInputMeta: {
151
175
  type: 'object',
152
176
  properties: {
@@ -5,5 +5,7 @@ export default {
5
5
  SORTED: 'SMART_TABLE#SORTED',
6
6
  ERROR_OCCURRED
7
7
  };
8
+ export const SMART_TABLE_SORT_BY_REQUESTED = 'SMART_TABLE#SORT_BY_REQUESTED';
9
+ export const SMART_TABLE_SORTED = 'SMART_TABLE#SORTED';
8
10
  export const SMART_TABLE_SELECTION_TOGGLED = 'SMART_TABLE#SELECTION_TOGGLED';
9
11
  export const SMART_TABLE_ACTION_TRIGGERED = 'SMART_TABLE#ACTION_TRIGGERED';
@@ -5,7 +5,5 @@ const Actions = [{
5
5
  type: Constants.TABLE_LIST_TOGGLE_ITEM_SELECTION
6
6
  }, {
7
7
  type: Constants.TABLE_LIST_TOGGLE_ALL_SELECTION
8
- }, {
9
- type: Constants.TABLE_LIST_SORTED
10
8
  }];
11
9
  export default Actions;
@@ -5,9 +5,9 @@ class Constants {
5
5
  static TABLE_LIST_RESIZE_MOVE_REQUESTED = 'TABLE_LIST#RESIZE_MOVE_REQUESTED';
6
6
  static TABLE_LIST_RESIZE_END_REQUESTED = 'TABLE_LIST#RESIZE_END_REQUESTED';
7
7
  static TABLE_LIST_SCROLLED = 'TABLE_LIST#SCROLLED';
8
+ static TABLE_LIST_SCROLL_END_REACHED = 'TABLE_LIST#SCROLL_END_REACHED';
8
9
  static TABLE_LIST_TOGGLE_ITEM_SELECTION = 'TABLE_LIST#ITEM_SELECTED';
9
10
  static TABLE_LIST_TOGGLE_ALL_SELECTION = 'TABLE_LIST#ALL_SELECT_TOGGLED';
10
- static TABLE_LIST_SORTED = 'TABLE_LIST#SORTED';
11
11
  static TABLE_LIST_FIELD_CLICKED = 'TABLE_LIST#FIELD_CLICKED';
12
12
  static TABLE_LIST_FIELD_CHANGED = 'TABLE_LIST#FIELD_CHANGED';
13
13
  static TABLE_LIST_ROW_CLICKED = 'TABLE_LIST#ROW_CLICKED';
@@ -5,8 +5,6 @@ const Events = [{
5
5
  type: Constants.TABLE_LIST_TOGGLE_ITEM_SELECTION
6
6
  }, {
7
7
  type: Constants.TABLE_LIST_TOGGLE_ALL_SELECTION
8
- }, {
9
- type: Constants.TABLE_LIST_SORTED
10
8
  }, {
11
9
  type: Constants.TABLE_LIST_RESOLUTION_BASED_COUNT_CALCULATED,
12
10
  payload: {
@@ -2,22 +2,6 @@ import { Alignment, Width, SortedBy } from "./data-types/Header";
2
2
  import RowCursor from "./data-types/RowCursor";
3
3
  import SelectionConfigProperties from "../../bc/list-selection/Properties";
4
4
  import { actionsSchema } from "../../platform/client-actions/cc/action-event-mediator/Properties";
5
- import PropertiesConverter from "../component/properties/PropertiesConverter";
6
- import BooleanProperties from "../fields/boolean/Properties";
7
- import CurrencyProperties from "../fields/currency/Properties";
8
- import DateProperties from "../fields/date/Properties";
9
- import DatetimeProperties from "../fields/datetime/Properties";
10
- import DecimalProperties from "../fields/decimal/Properties";
11
- import EmailProperties from "../fields/email/Properties";
12
- import LookupProperties from "../fields/lookup/Properties";
13
- import MultiSelectProperties from "../fields/multi-select/Properties";
14
- import NumberProperties from "../fields/number/Properties";
15
- import PercentProperties from "../fields/percent/Properties";
16
- import PhoneProperties from "../fields/phone/Properties";
17
- import PickListProperties from "../fields/pick-list/Properties";
18
- import TextProperties from "../fields/text/Properties";
19
- import UrlProperties from "../fields/url/Properties";
20
- import NameFieldProperties from "../fields/name/Properties";
21
5
  const TableListProperties = {
22
6
  isReOrderLoading: {
23
7
  required: false,
@@ -67,9 +51,6 @@ const TableListProperties = {
67
51
  },
68
52
  name: {
69
53
  type: 'string'
70
- },
71
- id: {
72
- type: 'string'
73
54
  }
74
55
  }
75
56
  }
@@ -203,21 +184,6 @@ const TableListProperties = {
203
184
  },
204
185
  required: ['id', 'name', 'text']
205
186
  },
206
- Column: {
207
- 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), PropertiesConverter.toJsonSchema(NameFieldProperties), // Below field is for the empty cell
208
- {
209
- type: 'object',
210
- properties: {
211
- type: {
212
- type: 'string'
213
- },
214
- value: {
215
- type: 'string'
216
- }
217
- },
218
- required: ['type', 'value']
219
- }]
220
- },
221
187
  ActionLocation: {
222
188
  renderComponentType: 'object',
223
189
  properties: {
@@ -248,10 +214,7 @@ const TableListProperties = {
248
214
  type: 'string'
249
215
  },
250
216
  columns: {
251
- type: 'array',
252
- items: {
253
- $ref: '#/definitions/Column'
254
- }
217
+ type: 'array'
255
218
  },
256
219
  rowActionLocation: {
257
220
  $ref: '#/definitions/ActionLocation'
@@ -323,6 +286,40 @@ const TableListProperties = {
323
286
  }
324
287
  }
325
288
  },
289
+ floatPaginationConfig: {
290
+ required: false,
291
+ defaultValue: {
292
+ isEnabled: false
293
+ },
294
+ typeMetadata: {
295
+ schema: {
296
+ type: 'object',
297
+ properties: {
298
+ isEnabled: {
299
+ type: 'boolean'
300
+ },
301
+ scrollCount: {
302
+ type: 'number'
303
+ },
304
+ totalCount: {
305
+ type: 'number'
306
+ },
307
+ scrollToUpTooltip: {
308
+ type: 'string'
309
+ },
310
+ isTopReached: {
311
+ type: 'boolean'
312
+ },
313
+ isBottomReached: {
314
+ type: 'boolean'
315
+ },
316
+ scrollToDownTooltip: {
317
+ type: 'string'
318
+ }
319
+ }
320
+ }
321
+ }
322
+ },
326
323
  keyboardControlsConfig: {
327
324
  required: false,
328
325
  defaultValue: {
@@ -0,0 +1,6 @@
1
+ class Constants {
2
+ static TAG_CLICKED = "TAG#CLICKED";
3
+ static TAG_REMOVED = "TAG#REMOVED";
4
+ }
5
+
6
+ export default Constants;
@@ -0,0 +1,14 @@
1
+ var Size = /*#__PURE__*/function (Size) {
2
+ Size["Small"] = "small";
3
+ Size["Medium"] = "medium";
4
+ return Size;
5
+ }(Size || {});
6
+
7
+ var Cursor = /*#__PURE__*/function (Cursor) {
8
+ Cursor["Pointer"] = "pointer";
9
+ Cursor["Default"] = "default";
10
+ return Cursor;
11
+ }(Cursor || {});
12
+
13
+ ;
14
+ export {};
@@ -0,0 +1 @@
1
+ export default {};
@@ -0,0 +1,26 @@
1
+ import Constants from "./Constants";
2
+ export default [{
3
+ type: Constants.TAG_CLICKED,
4
+ payload: {
5
+ id: {
6
+ name: 'id',
7
+ typeMetadata: {
8
+ schema: {
9
+ type: 'string'
10
+ }
11
+ }
12
+ }
13
+ }
14
+ }, {
15
+ type: Constants.TAG_REMOVED,
16
+ payload: {
17
+ id: {
18
+ name: 'id',
19
+ typeMetadata: {
20
+ schema: {
21
+ type: 'string'
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }];
@@ -6,7 +6,9 @@ function TagModel(_ref) {
6
6
  imageSrc,
7
7
  imageAltText,
8
8
  iconName,
9
- disabled,
9
+ isRemovable,
10
+ isDisabled,
11
+ cursor,
10
12
  size,
11
13
  tooltip
12
14
  } = _ref;
@@ -17,7 +19,9 @@ function TagModel(_ref) {
17
19
  imageSrc,
18
20
  imageAltText,
19
21
  iconName,
20
- disabled,
22
+ isRemovable,
23
+ isDisabled,
24
+ cursor,
21
25
  size,
22
26
  tooltip
23
27
  };
@@ -0,0 +1,104 @@
1
+ const TagProperties = {
2
+ id: {
3
+ required: false,
4
+ defaultValue: '',
5
+ typeMetadata: {
6
+ schema: {
7
+ type: 'string'
8
+ }
9
+ }
10
+ },
11
+ label: {
12
+ required: true,
13
+ defaultValue: '',
14
+ typeMetadata: {
15
+ schema: {
16
+ type: 'string'
17
+ }
18
+ }
19
+ },
20
+ color: {
21
+ required: false,
22
+ defaultValue: '',
23
+ typeMetadata: {
24
+ schema: {
25
+ type: 'string'
26
+ }
27
+ }
28
+ },
29
+ imageSrc: {
30
+ required: false,
31
+ defaultValue: '',
32
+ typeMetadata: {
33
+ schema: {
34
+ type: 'string'
35
+ }
36
+ }
37
+ },
38
+ imageAltText: {
39
+ required: false,
40
+ defaultValue: '',
41
+ typeMetadata: {
42
+ schema: {
43
+ type: 'string'
44
+ }
45
+ }
46
+ },
47
+ iconName: {
48
+ required: false,
49
+ defaultValue: '',
50
+ typeMetadata: {
51
+ schema: {
52
+ type: 'string'
53
+ }
54
+ }
55
+ },
56
+ isDisabled: {
57
+ required: false,
58
+ defaultValue: false,
59
+ typeMetadata: {
60
+ schema: {
61
+ type: 'boolean'
62
+ }
63
+ }
64
+ },
65
+ isRemovable: {
66
+ required: false,
67
+ defaultValue: false,
68
+ typeMetadata: {
69
+ schema: {
70
+ type: 'boolean'
71
+ }
72
+ }
73
+ },
74
+ cursor: {
75
+ required: false,
76
+ defaultValue: 'default',
77
+ typeMetadata: {
78
+ schema: {
79
+ type: 'string',
80
+ enum: ['pointer', 'default']
81
+ }
82
+ }
83
+ },
84
+ size: {
85
+ required: false,
86
+ defaultValue: 'medium',
87
+ typeMetadata: {
88
+ schema: {
89
+ type: 'string',
90
+ enum: ['small', 'medium']
91
+ }
92
+ }
93
+ },
94
+ tooltip: {
95
+ required: false,
96
+ defaultValue: '',
97
+ typeMetadata: {
98
+ schema: {
99
+ type: 'string'
100
+ }
101
+ }
102
+ }
103
+ };
104
+ export default TagProperties;
@@ -0,0 +1,6 @@
1
+ export { default as TagProperties } from "./Properties";
2
+ export { default as TagModel } from "./Model";
3
+ export { default as TagEvents } from "./Events";
4
+ export { default as TagEventHandlers } from "./EventHandlers";
5
+ export { default as TagConstants } from "./Constants";
6
+ export { default as TagDataType } from "./Data";
@@ -1,7 +1 @@
1
- var Size = /*#__PURE__*/function (Size) {
2
- Size["Small"] = "small";
3
- Size["Medium"] = "medium";
4
- return Size;
5
- }(Size || {});
6
-
7
1
  export {};
@@ -1,5 +1,5 @@
1
1
  import TagsDataModel from "./TagsDataModel";
2
- import TagModel from "./TagModel";
2
+ import TagModel from "../../tag/Model";
3
3
  export default class TagsModel {
4
4
  static TagsDataModel = TagsDataModel;
5
5
  static TagModel = TagModel;
@@ -0,0 +1,5 @@
1
+ class Constants {
2
+ static TAG_LIST_DROPDOWN_SEARCHED = "TAG_LIST_DROPDOWN#SEARCHED";
3
+ }
4
+
5
+ export default Constants;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import Constants from "./Constants";
2
+ export default [{
3
+ type: Constants.TAG_LIST_DROPDOWN_SEARCHED,
4
+ payload: {
5
+ value: {
6
+ name: 'value',
7
+ typeMetadata: {
8
+ schema: {
9
+ type: 'string'
10
+ }
11
+ }
12
+ }
13
+ }
14
+ }];
@@ -0,0 +1,96 @@
1
+ const TagProperties = {
2
+ hasSearch: {
3
+ required: false,
4
+ defaultValue: false,
5
+ typeMetadata: {
6
+ schema: {
7
+ type: 'boolean'
8
+ }
9
+ }
10
+ },
11
+ searchPlaceholder: {
12
+ required: false,
13
+ defaultValue: 'Search',
14
+ typeMetadata: {
15
+ schema: {
16
+ type: 'string'
17
+ }
18
+ }
19
+ },
20
+ text: {
21
+ required: false,
22
+ defaultValue: '',
23
+ typeMetadata: {
24
+ schema: {
25
+ type: 'string'
26
+ }
27
+ }
28
+ },
29
+ dropdownHeading: {
30
+ required: false,
31
+ defaultValue: '',
32
+ typeMetadata: {
33
+ schema: {
34
+ type: 'string'
35
+ }
36
+ }
37
+ },
38
+ emptyMessage: {
39
+ required: false,
40
+ defaultValue: 'No tags found',
41
+ typeMetadata: {
42
+ schema: {
43
+ type: 'string'
44
+ }
45
+ }
46
+ },
47
+ tags: {
48
+ required: false,
49
+ defaultValue: [],
50
+ typeMetadata: {
51
+ schema: {
52
+ $schema: 'http://json-schema.org/draft-07/schema#',
53
+ definitions: {
54
+ TagsProperties: {
55
+ type: 'object',
56
+ properties: {
57
+ id: {
58
+ type: 'string'
59
+ },
60
+ label: {
61
+ type: 'string'
62
+ },
63
+ color: {
64
+ type: 'string'
65
+ },
66
+ imageSrc: {
67
+ type: 'string'
68
+ },
69
+ imageAltText: {
70
+ type: 'string'
71
+ },
72
+ iconName: {
73
+ type: 'string'
74
+ },
75
+ iconSize: {
76
+ type: 'string'
77
+ },
78
+ disabled: {
79
+ type: 'boolean'
80
+ },
81
+ tooltip: {
82
+ type: 'string'
83
+ }
84
+ },
85
+ required: ['label']
86
+ }
87
+ },
88
+ type: 'array',
89
+ items: {
90
+ $ref: '#/definitions/TagsProperties'
91
+ }
92
+ }
93
+ }
94
+ }
95
+ };
96
+ export default TagProperties;
@@ -0,0 +1,4 @@
1
+ export { default as TagsListDropdownProperties } from "./Properties";
2
+ export { default as TagsListDropdownEvents } from "./Events";
3
+ export { default as TagsListDropdownConstants } from "./Constants";
4
+ export { default as TagsListDropdownDataType } from "./Data";
package/es/index.js CHANGED
@@ -17,7 +17,7 @@ export const CC = { ...CCNamespace,
17
17
  import * as _BC from "./bc";
18
18
  export { _BC as BC };
19
19
  export * from "./library/analytics";
20
- export { TableConnectedFactory, FormConnectedFactory } from "./platform/components";
20
+ export { TableConnectedFactory, FormConnectedFactory, SmartActionBandFactory } from "./platform/components";
21
21
  export { ComponentRegistry, createCustomComponent } from "./library";
22
22
  export { default as TableFieldComponents } from "./library/dot/legacy-to-new-arch/table-field-components";
23
23
  import * as _Components from "./library/dot/legacy-to-new-arch";
@@ -0,0 +1,10 @@
1
+ class AbstractController {
2
+ constructor(service) {
3
+ this.service = service;
4
+ this.service = service;
5
+ this.handle = this.handle.bind(this);
6
+ }
7
+
8
+ }
9
+
10
+ export default AbstractController;
@@ -0,0 +1,21 @@
1
+ import AbstractController from "./AbstractController";
2
+
3
+ class MountController extends AbstractController {
4
+ handle(event) {
5
+ const {
6
+ state,
7
+ updateState,
8
+ dispatch
9
+ } = event;
10
+ const {
11
+ initializeUseCase
12
+ } = this.service;
13
+ initializeUseCase.updateDependency(state, updateState);
14
+ initializeUseCase.execute({
15
+ dispatch
16
+ });
17
+ }
18
+
19
+ }
20
+
21
+ export default MountController;
@@ -0,0 +1,24 @@
1
+ import ActionBand from "../../domain/entities/ActionBand";
2
+
3
+ class Repository {
4
+ init(state) {
5
+ this.state = state;
6
+ }
7
+
8
+ getActionBand() {
9
+ const {
10
+ properties,
11
+ behaviours
12
+ } = this.state;
13
+ const {
14
+ moduleName
15
+ } = properties;
16
+ const {
17
+ context
18
+ } = behaviours.appContext;
19
+ return new ActionBand(context, moduleName);
20
+ }
21
+
22
+ }
23
+
24
+ export default Repository;
@@ -0,0 +1,11 @@
1
+ import InitializeUseCase from "../../applications/usecases/InitializeUseCase";
2
+
3
+ class Service {
4
+ constructor(dependencies) {
5
+ this.dependencies = dependencies;
6
+ this.initializeUseCase = new InitializeUseCase(this.dependencies);
7
+ }
8
+
9
+ }
10
+
11
+ export default Service;
@@ -0,0 +1,17 @@
1
+ class AbstractUseCase {
2
+ constructor(dependencies) {
3
+ this.dependencies = dependencies;
4
+ this.execute = this.execute.bind(this);
5
+ }
6
+
7
+ updateDependency(state, updateState) {
8
+ // const { repository, presenter } = this.dependencies;
9
+ const {
10
+ repository
11
+ } = this.dependencies;
12
+ repository.init(state); // presenter.updateDependencies(state, updateState);
13
+ }
14
+
15
+ }
16
+
17
+ export default AbstractUseCase;
@@ -0,0 +1,20 @@
1
+ import AbstractUseCase from "./AbstractUseCase";
2
+
3
+ class InitializeUseCase extends AbstractUseCase {
4
+ execute(input) {
5
+ const {
6
+ dispatch
7
+ } = input;
8
+ const {
9
+ repository
10
+ } = this.dependencies;
11
+ const actionband = repository.getActionBand();
12
+ const actions = actionband.getInitialMountFetchActions();
13
+ actions.forEach(action => {
14
+ dispatch(action);
15
+ });
16
+ }
17
+
18
+ }
19
+
20
+ export default InitializeUseCase;