@cxbox-ui/core 1.37.1 → 1.37.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/dist/actions/index.d.ts +1072 -0
  2. package/dist/api/ObservableApi.d.ts +45 -0
  3. package/dist/api/ObservableApiWrapper.d.ts +11 -0
  4. package/dist/api/index.d.ts +1 -0
  5. package/dist/cxbox-ui-core.cjs.development.js +3189 -0
  6. package/dist/cxbox-ui-core.cjs.production.min.js +2 -0
  7. package/dist/cxbox-ui-core.esm.js +3145 -0
  8. package/dist/cxbox-ui-core.modern.development.js +3085 -0
  9. package/dist/cxbox-ui-core.modern.js +3085 -0
  10. package/dist/cxbox-ui-core.modern.production.min.js +2 -0
  11. package/dist/epics/data/bcCancelCreateDataEpic.d.ts +9 -0
  12. package/dist/epics/data/bcDeleteDataEpic.d.ts +2 -0
  13. package/dist/epics/data/bcFetchDataEpic.d.ts +15 -0
  14. package/dist/epics/data/bcFetchRowMetaRequestEpic.d.ts +17 -0
  15. package/dist/epics/data/bcLoadMoreEpic.d.ts +2 -0
  16. package/dist/epics/data/bcNewDataEpic.d.ts +14 -0
  17. package/dist/epics/data/bcSaveDataEpic.d.ts +24 -0
  18. package/dist/epics/data/bcSelectDepthRecordEpic.d.ts +2 -0
  19. package/dist/epics/data/bcSelectRecordEpic.d.ts +2 -0
  20. package/dist/epics/data/changeAssociationEpic.d.ts +2 -0
  21. package/dist/epics/data/changeAssociationFullEpic.d.ts +5 -0
  22. package/dist/epics/data/changeAssociationSameBcEpic.d.ts +5 -0
  23. package/dist/epics/data/changeChildrenAssociationsEpic.d.ts +2 -0
  24. package/dist/epics/data/changeChildrenAssociationsSameBcEpic.d.ts +2 -0
  25. package/dist/epics/data/changeDescendantsAssociationsFullEpic.d.ts +5 -0
  26. package/dist/epics/data/index.d.ts +20 -0
  27. package/dist/epics/data/inlinePickListFetchDataEpic.d.ts +2 -0
  28. package/dist/epics/data/removeMultivalueTagEpic.d.ts +17 -0
  29. package/{epics/data/saveAssociationsActive.d.ts → dist/epics/data/saveAssociationsActiveEpic.d.ts} +2 -2
  30. package/dist/epics/data/saveAssociationsPassiveEpic.d.ts +7 -0
  31. package/dist/epics/data/selectViewEpic.d.ts +11 -0
  32. package/dist/epics/index.d.ts +6 -0
  33. package/{epics/router/changeLocation.d.ts → dist/epics/router/changeLocationEpic.d.ts} +2 -3
  34. package/dist/epics/router/drilldownEpic.d.ts +2 -0
  35. package/dist/epics/router/handleRouterEpic.d.ts +2 -0
  36. package/dist/epics/router/index.d.ts +10 -0
  37. package/dist/epics/router/loginDoneEpic.d.ts +9 -0
  38. package/dist/epics/router/selectScreenEpic.d.ts +7 -0
  39. package/dist/epics/router/selectScreenFailEpic.d.ts +7 -0
  40. package/dist/epics/router/selectViewEpic.d.ts +7 -0
  41. package/dist/epics/router/selectViewFailEpic.d.ts +6 -0
  42. package/dist/epics/router/userDrillDownEpic.d.ts +6 -0
  43. package/dist/epics/router/userDrilldownChangeCursorsEpic.d.ts +2 -0
  44. package/dist/epics/screen/apiErrorEpic.d.ts +3 -0
  45. package/dist/epics/screen/downloadFileByUrlEpic.d.ts +2 -0
  46. package/dist/epics/screen/downloadFileEpic.d.ts +2 -0
  47. package/dist/epics/screen/httpError401Epic.d.ts +2 -0
  48. package/dist/epics/screen/httpError409Epic.d.ts +2 -0
  49. package/dist/epics/screen/httpError418Epic.d.ts +2 -0
  50. package/dist/epics/screen/httpError500Epic.d.ts +2 -0
  51. package/dist/epics/screen/httpErrorDefaultEpic.d.ts +2 -0
  52. package/dist/epics/screen/index.d.ts +10 -0
  53. package/dist/epics/screen/processPostInvokeConfirmEpic.d.ts +2 -0
  54. package/dist/epics/screen/processPostInvokeEpic.d.ts +2 -0
  55. package/dist/epics/session/index.d.ts +5 -0
  56. package/dist/epics/session/loginByAnotherRoleEpic.d.ts +5 -0
  57. package/dist/epics/session/loginDoneEpic.d.ts +6 -0
  58. package/dist/epics/session/refreshMetaAndReloadPageEpic.d.ts +2 -0
  59. package/dist/epics/session/refreshMetaEpic.d.ts +5 -0
  60. package/dist/epics/session/switchRoleEpic.d.ts +5 -0
  61. package/dist/epics/utils/postOperationRoutine.d.ts +13 -0
  62. package/dist/epics/view/clearPendingDataChangesAfterCursorChangeEpic.d.ts +7 -0
  63. package/dist/epics/view/fileUploadConfirmEpic.d.ts +11 -0
  64. package/dist/epics/view/getRowMetaByForceActiveEpic.d.ts +5 -0
  65. package/dist/epics/view/index.d.ts +9 -0
  66. package/dist/epics/view/selectTableCellInitEpic.d.ts +2 -0
  67. package/dist/epics/view/sendOperationAssociateEpic.d.ts +5 -0
  68. package/dist/epics/view/sendOperationEpic.d.ts +10 -0
  69. package/dist/epics/view/showAllTableRecordsInitEpic.d.ts +2 -0
  70. package/dist/epics/view/showAssocPopupEpic.d.ts +2 -0
  71. package/dist/epics/view/showFileUploadPopupEpic.d.ts +5 -0
  72. package/dist/index.d.ts +6 -0
  73. package/dist/index.js +6 -0
  74. package/{interfaces → dist/interfaces}/bc.d.ts +2 -2
  75. package/dist/interfaces/customEpics.d.ts +15 -0
  76. package/{interfaces → dist/interfaces}/customMiddlewares.d.ts +5 -5
  77. package/{interfaces → dist/interfaces}/data.d.ts +4 -4
  78. package/dist/interfaces/index.d.ts +27 -0
  79. package/{interfaces → dist/interfaces}/navigation.d.ts +2 -2
  80. package/{interfaces → dist/interfaces}/objectMap.d.ts +3 -2
  81. package/{interfaces → dist/interfaces}/operation.d.ts +7 -6
  82. package/{interfaces → dist/interfaces}/session.d.ts +19 -0
  83. package/dist/interfaces/store.d.ts +14 -0
  84. package/{interfaces → dist/interfaces}/tree.d.ts +4 -4
  85. package/{interfaces → dist/interfaces}/view.d.ts +5 -5
  86. package/{interfaces → dist/interfaces}/widget.d.ts +11 -11
  87. package/dist/middlewares/autosaveMiddleware.d.ts +17 -0
  88. package/dist/middlewares/index.d.ts +16 -0
  89. package/{middlewares → dist/middlewares}/requiredFieldsMiddleware.d.ts +3 -5
  90. package/dist/reducers/ReducerBuilderManager.d.ts +19 -0
  91. package/dist/reducers/data.d.ts +4 -0
  92. package/dist/reducers/depthData.d.ts +4 -0
  93. package/dist/reducers/index.d.ts +6 -0
  94. package/dist/reducers/router.d.ts +9 -0
  95. package/dist/reducers/screen.d.ts +10 -0
  96. package/dist/reducers/session.d.ts +10 -0
  97. package/dist/reducers/view.d.ts +10 -0
  98. package/dist/utils/api.d.ts +34 -0
  99. package/{utils → dist/utils}/autosave.d.ts +13 -2
  100. package/{utils → dist/utils}/bc.d.ts +2 -2
  101. package/dist/utils/cancelRequestEpic.d.ts +17 -0
  102. package/dist/utils/combineMiddlewares.d.ts +14 -0
  103. package/dist/utils/deleteUndefinedFromObject.d.ts +1 -0
  104. package/{utils → dist/utils}/filters.d.ts +1 -2
  105. package/{utils → dist/utils}/history.d.ts +5 -7
  106. package/dist/utils/index.d.ts +9 -0
  107. package/{utils → dist/utils}/operations.d.ts +2 -2
  108. package/dist/utils/others.d.ts +6 -0
  109. package/{utils → dist/utils}/strings.d.ts +1 -0
  110. package/{utils → dist/utils}/tree.d.ts +2 -2
  111. package/package.json +66 -105
  112. package/CONTRIBUTING.md +0 -124
  113. package/Provider.d.ts +0 -63
  114. package/actions/actions-utils.d.ts +0 -48
  115. package/actions/actions.d.ts +0 -1144
  116. package/actions/index.d.ts +0 -2
  117. package/api/api.d.ts +0 -148
  118. package/api/index.d.ts +0 -1
  119. package/assets/i18n/__tests__/getTextAssets.d.ts +0 -1
  120. package/assets/i18n/index.d.ts +0 -25
  121. package/components/ColumnTitle/ColumnFilter.d.ts +0 -47
  122. package/components/ColumnTitle/ColumnSort.d.ts +0 -26
  123. package/components/ColumnTitle/ColumnTitle.d.ts +0 -31
  124. package/components/ColumnTitle/__tests__/ColumnFilter.test.d.ts +0 -1
  125. package/components/ColumnTitle/__tests__/ColumnSort.test.d.ts +0 -1
  126. package/components/ColumnTitle/__tests__/ColumnTitle.test.d.ts +0 -1
  127. package/components/DebugPanel/DebugPanel.d.ts +0 -7
  128. package/components/DebugPanel/__tests__/DebugPanel.test.d.ts +0 -1
  129. package/components/DebugPanel/components/FormattedJSON.d.ts +0 -6
  130. package/components/DebugPanel/components/InfoLabel.d.ts +0 -7
  131. package/components/DebugPanel/components/ViewInfoLabel.d.ts +0 -3
  132. package/components/DebugPanel/components/WidgetInfoLabel.d.ts +0 -5
  133. package/components/DebugPanel/components/__tests__/FormattedJSON.test.d.ts +0 -1
  134. package/components/DebugPanel/components/__tests__/InfoLabel.test.d.ts +0 -1
  135. package/components/DebugPanel/components/__tests__/ViewInfoLabel.test.d.ts +0 -1
  136. package/components/DebugPanel/components/__tests__/WidgetInfoLabel.test.d.ts +0 -1
  137. package/components/DevToolsPanel/DevToolsPanel.d.ts +0 -10
  138. package/components/DevToolsPanel/DevToolsPanel.test.d.ts +0 -1
  139. package/components/DevToolsPanel/components/DebugModeButton.d.ts +0 -9
  140. package/components/DevToolsPanel/components/RefreshMetaButton.d.ts +0 -9
  141. package/components/DevToolsPanel/components/__tests__/DebugModeButton.test.d.ts +0 -1
  142. package/components/DevToolsPanel/components/__tests__/RefreshMetaButton.test.d.ts +0 -1
  143. package/components/Field/Field.d.ts +0 -72
  144. package/components/Field/Field.test.d.ts +0 -1
  145. package/components/FileUpload/FileUpload.d.ts +0 -32
  146. package/components/FileUploadPopup/FileUploadPopup.d.ts +0 -10
  147. package/components/FilterPopup/FilterPopup.d.ts +0 -26
  148. package/components/FilterPopup/FilterPopup.test.d.ts +0 -1
  149. package/components/FullHierarchyTable/FullHierarchyTable.d.ts +0 -52
  150. package/components/FullHierarchyTable/FullHierarchyTable.test.d.ts +0 -1
  151. package/components/FullHierarchyTable/utils/hierarchySearchCache.d.ts +0 -37
  152. package/components/FullHierarchyTable/utils/hierarchySearchCache.test.d.ts +0 -1
  153. package/components/FullHierarchyTable/utils/useExpandedKeys.d.ts +0 -19
  154. package/components/FullHierarchyTable/utils/useHierarchyCache.d.ts +0 -12
  155. package/components/HierarchyTable/HierarchyTable.d.ts +0 -48
  156. package/components/HierarchyTable/HierarchyTable.test.d.ts +0 -1
  157. package/components/InlinePickList/InlinePickList.d.ts +0 -23
  158. package/components/ModalInvoke/ModalInvoke.d.ts +0 -18
  159. package/components/ModalInvoke/ModalInvoke.test.d.ts +0 -1
  160. package/components/Multivalue/MultiValueListRecord.d.ts +0 -15
  161. package/components/Multivalue/MultivalueField.d.ts +0 -31
  162. package/components/Multivalue/MultivalueField.test.d.ts +0 -1
  163. package/components/PickListField/PickListField.d.ts +0 -25
  164. package/components/RowOperations/RowOperationsButton.d.ts +0 -42
  165. package/components/RowOperations/RowOperationsMenu.d.ts +0 -29
  166. package/components/RowOperations/__tests__/RowOperationsButton.test.d.ts +0 -1
  167. package/components/RowOperations/__tests__/RowOperationsMenu.test.d.ts +0 -1
  168. package/components/SameBcHierarchyTable/SameBcHierarchyTable.d.ts +0 -41
  169. package/components/TemplatedTitle/TemplatedTitle.d.ts +0 -20
  170. package/components/View/View.d.ts +0 -27
  171. package/components/View/__tests__/View.test.d.ts +0 -1
  172. package/components/Widget/Widget.d.ts +0 -29
  173. package/components/Widget/Widget.test.d.ts +0 -1
  174. package/components/WidgetErrorBoundary/WidgetErrorBoundary.d.ts +0 -20
  175. package/components/WidgetErrorBoundary/WidgetErrorBoundary.test.d.ts +0 -1
  176. package/components/WidgetErrorBoundary/components/RefreshButton.d.ts +0 -4
  177. package/components/WidgetErrorBoundary/components/RefreshButton.test.d.ts +0 -1
  178. package/components/index.d.ts +0 -44
  179. package/components/ui/ActionLink/ActionLink.d.ts +0 -11
  180. package/components/ui/CheckboxFilter/CheckboxFilter.d.ts +0 -21
  181. package/components/ui/CheckboxFilter/CheckboxFilter.test.d.ts +0 -1
  182. package/components/ui/CheckboxPicker/CheckboxPicker.d.ts +0 -21
  183. package/components/ui/CopyableText/CopyableText.d.ts +0 -7
  184. package/components/ui/CopyableText/__tests__/CopyableText.test.d.ts +0 -1
  185. package/components/ui/DashboardLayout/DashboardLayout.d.ts +0 -22
  186. package/components/ui/DashboardLayout/__tests__/DashboardLayout.test.d.ts +0 -1
  187. package/components/ui/DatePickerField/DatePickerField.d.ts +0 -25
  188. package/components/ui/Dictionary/Dictionary.d.ts +0 -30
  189. package/components/ui/Dictionary/Dictionary.test.d.ts +0 -1
  190. package/components/ui/ErrorPopup/ErrorPopup.d.ts +0 -18
  191. package/components/ui/ErrorPopup/ErrorPopup.test.d.ts +0 -1
  192. package/components/ui/FilterField/FilterField.d.ts +0 -25
  193. package/components/ui/FilterField/FilterField.test.d.ts +0 -1
  194. package/components/ui/FilterField/components/RangePicker.d.ts +0 -11
  195. package/components/ui/FilterField/components/RangePicker.test.d.ts +0 -1
  196. package/components/ui/HistoryField/HistoryField.d.ts +0 -15
  197. package/components/ui/InteractiveInput/InteractiveInput.d.ts +0 -28
  198. package/components/ui/Link/Link.d.ts +0 -13
  199. package/components/ui/MultiField/MultiField.d.ts +0 -16
  200. package/components/ui/Multivalue/MultivalueHover.d.ts +0 -15
  201. package/components/ui/Multivalue/MultivalueList.d.ts +0 -17
  202. package/components/ui/Multivalue/MultivalueTag.d.ts +0 -24
  203. package/components/ui/NavigationTabs/NavigationTabs.d.ts +0 -7
  204. package/components/ui/NavigationTabs/NavigationTabs.test.d.ts +0 -1
  205. package/components/ui/NumberInput/NumberInput.d.ts +0 -17
  206. package/components/ui/NumberInput/NumberInput.test.d.ts +0 -1
  207. package/components/ui/NumberInput/formaters.d.ts +0 -31
  208. package/components/ui/Pagination/Pagination.d.ts +0 -51
  209. package/components/ui/Pagination/Pagination.test.d.ts +0 -1
  210. package/components/ui/PickInput/PickInput.d.ts +0 -15
  211. package/components/ui/Popup/Popup.d.ts +0 -29
  212. package/components/ui/Popup/Popup.test.d.ts +0 -1
  213. package/components/ui/Popup/PopupFooter.d.ts +0 -16
  214. package/components/ui/RadioButton/RadioButton.d.ts +0 -16
  215. package/components/ui/RadioButton/RadioButton.test.d.ts +0 -1
  216. package/components/ui/ReadOnlyField/ReadOnlyField.d.ts +0 -22
  217. package/components/ui/SearchHightlight/SearchHightlight.d.ts +0 -20
  218. package/components/ui/Select/Select.d.ts +0 -26
  219. package/components/ui/TextArea/TextArea.d.ts +0 -24
  220. package/components/ui/TextArea/TextArea.test.d.ts +0 -1
  221. package/components/ui/TreeVirtualized/TreeVirtualized.d.ts +0 -63
  222. package/components/ui/TreeVirtualized/TreeVirtualizedNode.d.ts +0 -67
  223. package/components/ui/TreeVirtualized/__tests__/TreeVirtualized.test.d.ts +0 -1
  224. package/components/ui/TreeVirtualized/__tests__/TreeVirtualizedNode.test.d.ts +0 -1
  225. package/components/ui/TreeVirtualized/__tests__/useMatchingNodes.test.d.ts +0 -1
  226. package/components/ui/TreeVirtualized/__tests__/useSearchResult.test.d.ts +0 -1
  227. package/components/ui/TreeVirtualized/useMatchingNodes.d.ts +0 -23
  228. package/components/ui/TreeVirtualized/useSearchResult.d.ts +0 -27
  229. package/components/widgets/AssocListPopup/AssocListPopup.d.ts +0 -58
  230. package/components/widgets/AssocListPopup/AssocListPopup.test.d.ts +0 -1
  231. package/components/widgets/AssocListPopup/AssocTable.d.ts +0 -35
  232. package/components/widgets/AssocListPopup/AssocTable.test.d.ts +0 -1
  233. package/components/widgets/FlatTree/FlatTree.d.ts +0 -53
  234. package/components/widgets/FlatTree/FlatTreePopup.d.ts +0 -31
  235. package/components/widgets/FlatTree/__tests__/FlatTree.test.d.ts +0 -1
  236. package/components/widgets/FlatTree/__tests__/FlatTreePopup.test.d.ts +0 -1
  237. package/components/widgets/FlatTree/useMultipleSelect.d.ts +0 -11
  238. package/components/widgets/FlatTree/useSingleSelect.d.ts +0 -10
  239. package/components/widgets/FormWidget/FormWidget.d.ts +0 -23
  240. package/components/widgets/FormWidget/FormWidget.test.d.ts +0 -1
  241. package/components/widgets/InfoWidget/InfoWidget.d.ts +0 -19
  242. package/components/widgets/InfoWidget/__test__/InfoWidget.test.d.ts +0 -1
  243. package/components/widgets/InfoWidget/components/InfoCell.d.ts +0 -15
  244. package/components/widgets/InfoWidget/components/InfoRow.d.ts +0 -16
  245. package/components/widgets/InfoWidget/components/InfoValueWrapper.d.ts +0 -10
  246. package/components/widgets/InfoWidget/components/__tests__/InfoCell.test.d.ts +0 -1
  247. package/components/widgets/InfoWidget/components/__tests__/InfoRow.test.d.ts +0 -1
  248. package/components/widgets/InfoWidget/components/__tests__/InfoValueWrapper.test.d.ts +0 -1
  249. package/components/widgets/NavigationTabsWidget/NavigationTabsWidget.d.ts +0 -8
  250. package/components/widgets/NavigationTabsWidget/NavigationTabsWidget.test.d.ts +0 -1
  251. package/components/widgets/PickListPopup/PickListPopup.d.ts +0 -43
  252. package/components/widgets/PickListPopup/PickListPopup.test.d.ts +0 -1
  253. package/components/widgets/TableWidget/TableWidget.d.ts +0 -88
  254. package/components/widgets/TableWidget/TableWidget.test.d.ts +0 -1
  255. package/components/widgets/TextWidget/TextWidget.d.ts +0 -15
  256. package/components/widgets/TextWidget/TextWidget.test.d.ts +0 -1
  257. package/components/widgets/ViewNavigationWidget/ViewNavigationWidget.d.ts +0 -6
  258. package/components/widgets/ViewNavigationWidget/ViewNavigationWidget.test.d.ts +0 -1
  259. package/components/widgets/index.d.ts +0 -4
  260. package/cxbox-ui-core.js +0 -148
  261. package/cxbox-ui-core.js.map +0 -1
  262. package/epics/data/__tests__/bcCancelCreateDataEpic.test.d.ts +0 -1
  263. package/epics/data/__tests__/bcFetchData.test.d.ts +0 -1
  264. package/epics/data/__tests__/bcFetchRowMetaRequest.test.d.ts +0 -1
  265. package/epics/data/__tests__/bcNewDataEpic.test.d.ts +0 -1
  266. package/epics/data/__tests__/bcSaveData.test.d.ts +0 -1
  267. package/epics/data/__tests__/bcSelectDepthRecord.test.d.ts +0 -1
  268. package/epics/data/__tests__/removeMultivalueTag.test.d.ts +0 -1
  269. package/epics/data/__tests__/saveAssociationsActive.test.d.ts +0 -1
  270. package/epics/data/__tests__/selectView.test.d.ts +0 -1
  271. package/epics/data/bcCancelCreateDataEpic.d.ts +0 -28
  272. package/epics/data/bcFetchData.d.ts +0 -21
  273. package/epics/data/bcFetchRowMetaRequest.d.ts +0 -50
  274. package/epics/data/bcNewDataEpic.d.ts +0 -37
  275. package/epics/data/bcSaveData.d.ts +0 -58
  276. package/epics/data/bcSelectDepthRecord.d.ts +0 -21
  277. package/epics/data/removeMultivalueTag.d.ts +0 -45
  278. package/epics/data/selectView.d.ts +0 -36
  279. package/epics/data.d.ts +0 -105
  280. package/epics/index.d.ts +0 -74
  281. package/epics/router/__tests__/changeLocation.test.d.ts +0 -1
  282. package/epics/router/__tests__/drilldown.test.d.ts +0 -1
  283. package/epics/router/__tests__/handleRouter.test.d.ts +0 -1
  284. package/epics/router/__tests__/loginDone.test.d.ts +0 -1
  285. package/epics/router/__tests__/selectScreen.test.d.ts +0 -1
  286. package/epics/router/__tests__/selectScreenFail.test.d.ts +0 -1
  287. package/epics/router/__tests__/selectView.test.d.ts +0 -1
  288. package/epics/router/__tests__/selectViewFail.test.d.ts +0 -1
  289. package/epics/router/__tests__/userDrillDown.test.d.ts +0 -1
  290. package/epics/router/drilldown.d.ts +0 -12
  291. package/epics/router/handleRouter.d.ts +0 -17
  292. package/epics/router/loginDone.d.ts +0 -20
  293. package/epics/router/selectScreen.d.ts +0 -19
  294. package/epics/router/selectScreenFail.d.ts +0 -17
  295. package/epics/router/selectView.d.ts +0 -19
  296. package/epics/router/selectViewFail.d.ts +0 -17
  297. package/epics/router/userDrillDown.d.ts +0 -29
  298. package/epics/router.d.ts +0 -11
  299. package/epics/screen/__tests__/apiError.test.d.ts +0 -1
  300. package/epics/screen/__tests__/httpError401.test.d.ts +0 -1
  301. package/epics/screen/__tests__/httpError409.test.d.ts +0 -1
  302. package/epics/screen/__tests__/httpError418.test.d.ts +0 -1
  303. package/epics/screen/__tests__/httpError500.test.d.ts +0 -1
  304. package/epics/screen/__tests__/httpErrorDefault.test.d.ts +0 -1
  305. package/epics/screen/apiError.d.ts +0 -13
  306. package/epics/screen/httpError401.d.ts +0 -12
  307. package/epics/screen/httpError409.d.ts +0 -12
  308. package/epics/screen/httpError418.d.ts +0 -12
  309. package/epics/screen/httpError500.d.ts +0 -12
  310. package/epics/screen/httpErrorDefault.d.ts +0 -14
  311. package/epics/screen/processPostInvoke.d.ts +0 -12
  312. package/epics/screen.d.ts +0 -35
  313. package/epics/session/__tests__/loginByAnotherRoleEpic.test.d.ts +0 -1
  314. package/epics/session/__tests__/loginDone.test.d.ts +0 -1
  315. package/epics/session/__tests__/refreshMeta.test.d.ts +0 -1
  316. package/epics/session/__tests__/refreshMetaAndReloadPage.test.d.ts +0 -1
  317. package/epics/session/__tests__/switchRole.test.d.ts +0 -1
  318. package/epics/session/loginByAnotherRole.d.ts +0 -27
  319. package/epics/session/loginDone.d.ts +0 -10
  320. package/epics/session/refreshMeta.d.ts +0 -9
  321. package/epics/session/refreshMetaAndReloadPage.d.ts +0 -2
  322. package/epics/session/switchRole.d.ts +0 -9
  323. package/epics/session.d.ts +0 -7
  324. package/epics/utils.d.ts +0 -4
  325. package/epics/view/__tests__/fileUploadConfirm.test.d.ts +0 -1
  326. package/epics/view/__tests__/sendOperation.test.d.ts +0 -1
  327. package/epics/view/__tests__/sendOperationAssociate.test.d.ts +0 -1
  328. package/epics/view/__tests__/showAssocPopup.test.d.ts +0 -1
  329. package/epics/view/__tests__/showFileUploadPopup.test.d.ts +0 -1
  330. package/epics/view/fileUploadConfirm.d.ts +0 -31
  331. package/epics/view/sendOperation.d.ts +0 -24
  332. package/epics/view/sendOperationAssociate.d.ts +0 -34
  333. package/epics/view/showAssocPopup.d.ts +0 -12
  334. package/epics/view/showFileUploadPopup.d.ts +0 -19
  335. package/epics/view.d.ts +0 -57
  336. package/hooks/__tests__/useRowMenu.test.d.ts +0 -1
  337. package/hooks/__tests__/useViewTabs.test.d.ts +0 -1
  338. package/hooks/__tests__/useWidgetOperations.test.d.ts +0 -1
  339. package/hooks/index.d.ts +0 -7
  340. package/hooks/useAssocRecords.d.ts +0 -11
  341. package/hooks/useDebounce.d.ts +0 -8
  342. package/hooks/useDrillDownUrl.d.ts +0 -10
  343. package/hooks/useFlatFormFields.d.ts +0 -9
  344. package/hooks/useRowMenu.d.ts +0 -42
  345. package/hooks/useViewTabs.d.ts +0 -13
  346. package/hooks/useWidgetFilter.d.ts +0 -15
  347. package/hooks/useWidgetOperations.d.ts +0 -34
  348. package/imports/i18n.d.ts +0 -8
  349. package/imports/rxjs.d.ts +0 -19
  350. package/imports/shim.d.ts +0 -6
  351. package/index.d.ts +0 -135
  352. package/interfaces/customEpics.d.ts +0 -55
  353. package/interfaces/filters.js +0 -2
  354. package/interfaces/filters.js.map +0 -1
  355. package/interfaces/index.d.ts +0 -22
  356. package/interfaces/objectMap.js +0 -2
  357. package/interfaces/objectMap.js.map +0 -1
  358. package/interfaces/operation.js +0 -2
  359. package/interfaces/operation.js.map +0 -1
  360. package/interfaces/router.js +0 -2
  361. package/interfaces/router.js.map +0 -1
  362. package/interfaces/store.d.ts +0 -56
  363. package/interfaces/view.js +0 -2
  364. package/interfaces/view.js.map +0 -1
  365. package/interfaces/widget.js +0 -2
  366. package/interfaces/widget.js.map +0 -1
  367. package/middlewares/__tests__/autosaveMiddleware.test.d.ts +0 -1
  368. package/middlewares/__tests__/preInvokeMiddleware.test.d.ts +0 -1
  369. package/middlewares/__tests__/requiredFieldsMiddleware.test.d.ts +0 -1
  370. package/middlewares/actionsHistoryMiddleware.d.ts +0 -3
  371. package/middlewares/autosaveMiddleware.d.ts +0 -6
  372. package/middlewares/index.d.ts +0 -6
  373. package/mocks/data/widgetMeta.d.ts +0 -10
  374. package/reducers/__tests__/data.test.d.ts +0 -1
  375. package/reducers/__tests__/forceActiveField.test.d.ts +0 -1
  376. package/reducers/__tests__/screen/bcAddFilter.test.d.ts +0 -1
  377. package/reducers/__tests__/session.test.d.ts +0 -1
  378. package/reducers/__tests__/view.test.d.ts +0 -1
  379. package/reducers/data.d.ts +0 -13
  380. package/reducers/depthData.d.ts +0 -7
  381. package/reducers/index.d.ts +0 -3
  382. package/reducers/router.d.ts +0 -30
  383. package/reducers/screen.d.ts +0 -16
  384. package/reducers/session.d.ts +0 -15
  385. package/reducers/view.d.ts +0 -16
  386. package/tests/mockStore.d.ts +0 -6
  387. package/tests/setup.d.ts +0 -1
  388. package/tests/testEpic.d.ts +0 -14
  389. package/utils/__tests__/autosave.test.d.ts +0 -1
  390. package/utils/__tests__/bc.test.d.ts +0 -1
  391. package/utils/__tests__/breadthFirst.test.d.ts +0 -1
  392. package/utils/__tests__/cancelRequestEpic.test.d.ts +0 -1
  393. package/utils/__tests__/combineEpics.test.d.ts +0 -1
  394. package/utils/__tests__/combineMiddlewares.test.d.ts +0 -1
  395. package/utils/__tests__/configureStore.test.d.ts +0 -1
  396. package/utils/__tests__/extendPopupWidgetTypes.test.d.ts +0 -1
  397. package/utils/__tests__/filters.test.d.ts +0 -1
  398. package/utils/__tests__/history.test.d.ts +0 -1
  399. package/utils/__tests__/notifications.test.d.ts +0 -1
  400. package/utils/__tests__/operations.test.d.ts +0 -1
  401. package/utils/__tests__/tree.test.d.ts +0 -1
  402. package/utils/__tests__/viewTabs.test.d.ts +0 -1
  403. package/utils/actionsHistory.d.ts +0 -2
  404. package/utils/api.d.ts +0 -92
  405. package/utils/cancelRequestEpic.d.ts +0 -16
  406. package/utils/combineEpics.d.ts +0 -13
  407. package/utils/combineMiddlewares.d.ts +0 -3
  408. package/utils/configureStore.d.ts +0 -15
  409. package/utils/exportState.d.ts +0 -3
  410. package/utils/index.d.ts +0 -6
  411. package/utils/notifications.d.ts +0 -11
  412. package/utils/redux.d.ts +0 -49
  413. /package/{interfaces → dist/interfaces}/filters.d.ts +0 -0
  414. /package/{interfaces → dist/interfaces}/router.d.ts +0 -0
  415. /package/{interfaces → dist/interfaces}/rowMeta.d.ts +0 -0
  416. /package/{interfaces → dist/interfaces}/screen.d.ts +0 -0
  417. /package/{middlewares → dist/middlewares}/preInvokeMiddleware.d.ts +0 -0
  418. /package/{utils → dist/utils}/breadthFirst.d.ts +0 -0
  419. /package/{tests/assetsMock.d.ts → dist/utils/exportState.d.ts} +0 -0
  420. /package/{utils → dist/utils}/extendPopupWidgetTypes.d.ts +0 -0
  421. /package/{utils → dist/utils}/hierarchy.d.ts +0 -0
  422. /package/{utils → dist/utils}/highlightJson.d.ts +0 -0
  423. /package/{utils → dist/utils}/viewTabs.d.ts +0 -0
@@ -1,1144 +0,0 @@
1
- import * as util from './actions-utils';
2
- import { ActionsObservable as rActionsObservable } from 'redux-observable';
3
- import { Observable } from 'rxjs/Observable';
4
- import { Store } from 'redux';
5
- import { LoginResponse, SessionScreen, PendingRequest } from '../interfaces/session';
6
- import { Action as HistoryAction } from 'history';
7
- import { DrillDownType, Route } from '../interfaces/router';
8
- import { ViewMetaResponse, ApplicationError, PopupType } from '../interfaces/view';
9
- import { DataItem, MultivalueSingleValue, PendingDataItem, PickMap } from '../interfaces/data';
10
- import { Store as CoreStore } from '../interfaces/store';
11
- import { RowMeta } from '../interfaces/rowMeta';
12
- import { AppNotificationType } from '../interfaces/objectMap';
13
- import { OperationPostInvokeAny, OperationTypeCrud, AssociatedItem, OperationErrorEntity, OperationPostInvokeConfirm, OperationPreInvoke } from '../interfaces/operation';
14
- import { BcFilter, BcSorter } from '../interfaces/filters';
15
- import { AxiosError } from 'axios';
16
- import { ApiCallContext } from '../utils/api';
17
- /**
18
- * ActionName: PayloadType = z
19
- *
20
- * @param ActionName Name for an action (redux action "type") and corresponding action creater action
21
- * @param PayloadType Typescript description for payload
22
- * @property z Mandatory to prevent typescript from erasing unused class fields (@see https://github.com/microsoft/TypeScript/issues/12437)
23
- * @category Actions
24
- */
25
- export declare class ActionPayloadTypes {
26
- /**
27
- * Browser location change occured (either through history listener or manually)
28
- */
29
- changeLocation: {
30
- /**
31
- * Change was requested to browser url
32
- */
33
- rawLocation?: string;
34
- /**
35
- * Change was requested to precalculated application route
36
- */
37
- location?: Route;
38
- /**
39
- * History API type, usually 'PUSH'
40
- */
41
- action: HistoryAction;
42
- };
43
- /**
44
- * Authentication request
45
- */
46
- login: {
47
- /**
48
- * User-provided login
49
- */
50
- login: string;
51
- /**
52
- * User-provided password
53
- */
54
- password: string;
55
- /**
56
- * Optionally user can choose a role to authentificate with
57
- */
58
- role?: string;
59
- };
60
- /**
61
- * Login was successful
62
- */
63
- loginDone: LoginResponse;
64
- /**
65
- * Login was unsuccesful
66
- */
67
- loginFail: {
68
- /**
69
- * Reason could be provided
70
- */
71
- errorMsg: string;
72
- };
73
- /**
74
- * Logout was requested, manually or through stale session
75
- */
76
- logout: null;
77
- /**
78
- * User succesfully was logged out
79
- */
80
- logoutDone: null;
81
- /**
82
- * Request to change active screen was initiated
83
- *
84
- * TODO: 2.0.0 Should be string (just the screen name) instead;
85
- *
86
- * Initially this was due to `screen` reducer did not having access to `session` part of redux store
87
- */
88
- selectScreen: {
89
- /**
90
- * Request initiated with all the meta from login response
91
- */
92
- screen: SessionScreen;
93
- };
94
- /**
95
- * Request to change active screen was unsuccesful (incorrect path, unknown screen, etc.)
96
- */
97
- selectScreenFail: {
98
- /**
99
- * Which screen was requested originally
100
- */
101
- screenName: string;
102
- };
103
- /**
104
- * Request to change active view was initiated
105
- *
106
- * TODO: 2.0.0 Should be string (just the view name) instead;
107
- * Initially this was due to `screen` and `view` reducers did not having access to `session` part of redux store
108
- */
109
- selectView: ViewMetaResponse;
110
- /**
111
- * Request to change active view was unsuccesful (incorrect path, unknown screen, etc.)
112
- *
113
- * @param selectViewFail Which view was requested originally
114
- */
115
- selectViewFail: {
116
- viewName: string;
117
- };
118
- /**
119
- * Fetch data request for business component was initiated
120
- */
121
- bcFetchDataRequest: {
122
- /**
123
- * The business component to fetch data for
124
- *
125
- * @deprecated TODO: 2.0.0 Should be removed in favor of widgetName
126
- */
127
- bcName?: string;
128
- /**
129
- * The level of hierarchy to fetch data for
130
- *
131
- * @deprecated Do not use; TODO: Will be removed in 2.0.0
132
- */
133
- depth?: number;
134
- /**
135
- * What widget requires data (widget can only request its own data here)
136
- */
137
- widgetName: string;
138
- /**
139
- * Page size should be ignored
140
- *
141
- * Used mostly for hierarchy widgets which does not have controls
142
- * for navigating between pages aside of root level.
143
- */
144
- ignorePageLimit?: boolean;
145
- /**
146
- * Pending changes should not be dropped when performing this request
147
- * (due to hierarchy expanging through cursor change, for same BC hierarchy this leads to data loss)
148
- */
149
- keepDelta?: boolean;
150
- };
151
- /**
152
- * Fetch data request request for specific pages range
153
- */
154
- bcFetchDataPages: {
155
- /**
156
- * The business component to fetch data for
157
- *
158
- * @deprecated TODO: 2.0.0 Should be removed in favor of widgetName
159
- */
160
- bcName: string;
161
- /**
162
- * Fisrt page to fetch (default is 1)
163
- */
164
- widgetName: string;
165
- /**
166
- * What widget requires data (widget can only request its own data here)
167
- */
168
- from?: number;
169
- /**
170
- * Last page to fetch (default is current page)
171
- */
172
- to?: number;
173
- };
174
- /**
175
- * Fetch data request for searchable fields
176
- */
177
- inlinePickListFetchDataRequest: {
178
- /**
179
- * The business component to fetch data for
180
- */
181
- bcName: string;
182
- /**
183
- * Search expression // TODO: Check format
184
- */
185
- searchSpec: string;
186
- /**
187
- * Value to search for
188
- */
189
- searchString: string;
190
- };
191
- /**
192
- * Fetch data request was succesful
193
- */
194
- bcFetchDataSuccess: {
195
- /**
196
- * Business component that requested data
197
- *
198
- * @deprecated TODO: 2.0.0 Remove in favor of widgetName
199
- */
200
- bcName: string;
201
- /**
202
- * Data records from response for this business component
203
- */
204
- data: DataItem[];
205
- /**
206
- * For same BC hierarchies, the level which was requested
207
- *
208
- * @deprecated TODO: 2.0.0 Should be all moved to separate hierarchy-specific action
209
- */
210
- depth?: number;
211
- /**
212
- * BC url with respect of parents cursors
213
- */
214
- bcUrl: string;
215
- /**
216
- * If there are more data to fetch (other pages etc.)
217
- */
218
- hasNext?: boolean;
219
- };
220
- /**
221
- * Fetch data request wac unsuccesful
222
- */
223
- bcFetchDataFail: {
224
- /**
225
- * Business component that initiated data fetch
226
- */
227
- bcName: string;
228
- /**
229
- * BC url with respect of parents cursors
230
- */
231
- bcUrl: string;
232
- /**
233
- * For same BC hierarchies, the level which was requested
234
- *
235
- * @deprecated TODO: 2.0.0 Should be all moved to separate hierarchy-specific action
236
- */
237
- depth?: number;
238
- };
239
- /**
240
- * Fetch next chunk of data for table widgets with infinite scroll
241
- */
242
- bcLoadMore: {
243
- /**
244
- * Business component that initiated data fetch
245
- */
246
- bcName: string;
247
- /**
248
- * Widget that initiated row meta fetch
249
- */
250
- widgetName?: string;
251
- };
252
- /**
253
- * Fetch meta information for active record of business component
254
- */
255
- bcFetchRowMeta: {
256
- /**
257
- *
258
- * Business component that initiated row meta fetch
259
- *
260
- * @deprecated TODO: 2.0.0 Remove in favor of widgetName
261
- */
262
- bcName: string;
263
- /**
264
- * Widget that initiated row meta fetch
265
- */
266
- widgetName: string;
267
- };
268
- /**
269
- * Puts row meta received from Cxbox API to the store.
270
- *
271
- * Updates values in `data` store slice with new values from row meta when possible.
272
- */
273
- bcFetchRowMetaSuccess: {
274
- /**
275
- * Business component that initiated row meta fetch
276
- */
277
- bcName: string;
278
- /**
279
- * Path to BC with respect to ancestors BC and their cursors
280
- */
281
- bcUrl: string;
282
- /**
283
- * Row meta returned by Cxbox API
284
- */
285
- rowMeta: RowMeta;
286
- /**
287
- * Cursor for a record that initiated row meta fetch.
288
- *
289
- * Can be empty (e.g. BC has no records) or will be set to new id for `create` operation.
290
- */
291
- cursor?: string;
292
- };
293
- /**
294
- * Fetch request for row meta was unsuccesful
295
- */
296
- bcFetchRowMetaFail: {
297
- /**
298
- * Business component initiated row meta fetch
299
- */
300
- bcName: string;
301
- };
302
- /**
303
- * @deprecated Not used; `sendOperation` with `create` role is used instead
304
- *
305
- * TODO: Remove in 2.0.0
306
- */
307
- bcNewData: {
308
- /**
309
- * Business component for which to create a new record
310
- */
311
- bcName: string;
312
- };
313
- /**
314
- * Put new record draft to `data` store slice
315
- */
316
- bcNewDataSuccess: {
317
- /**
318
- * Business component for which new record was created
319
- */
320
- bcName: string;
321
- /**
322
- * New record with `id` returned by Cxbox API and vstamp = -1 (denoting a record draft)
323
- */
324
- dataItem: DataItem;
325
- /**
326
- * Path to BC with respect to ancestors BC and their cursors
327
- */
328
- bcUrl: string;
329
- };
330
- /**
331
- * Dispatched when record creation failed
332
- */
333
- bcNewDataFail: {
334
- /**
335
- * Business component for which record creation failed
336
- */
337
- bcName: string;
338
- };
339
- /**
340
- * Delete record request was
341
- */
342
- bcDeleteDataFail: {
343
- /**
344
- * Business component initiated delete record
345
- */
346
- bcName: string;
347
- };
348
- /**
349
- * Request to change Force active field was unsuccesful
350
- */
351
- forceActiveChangeFail: {
352
- /**
353
- * Business component initiated force active change
354
- */
355
- bcName: string;
356
- /**
357
- * Cursors hierarchy at the time of force active change to
358
- */
359
- bcUrl: string;
360
- /**
361
- * Error to show in modal
362
- */
363
- viewError: string;
364
- /**
365
- * Validation errors on fields
366
- */
367
- entityError: OperationErrorEntity;
368
- };
369
- /**
370
- * Perform CustomAction
371
- */
372
- sendOperation: {
373
- /**
374
- * The business component to fetch data for
375
- */
376
- bcName: string;
377
- /**
378
- * Type of operation to be performed
379
- */
380
- operationType: OperationTypeCrud | string;
381
- /**
382
- * What widget requires data
383
- */
384
- widgetName: string;
385
- /**
386
- * Any other action
387
- */
388
- onSuccessAction?: AnyAction;
389
- /**
390
- * params for confirm modal
391
- */
392
- confirm?: string;
393
- /**
394
- * key called bk
395
- *
396
- * @deprecated TODO: Remove in 2.0.0
397
- */
398
- bcKey?: string;
399
- /**
400
- * @deprecated TODO: Remove in 2.0.0 in favor of sendOperationWithConfirm
401
- */
402
- confirmOperation?: OperationPreInvoke;
403
- };
404
- /**
405
- * Send operation request was unsuccessful
406
- */
407
- sendOperationFail: {
408
- /**
409
- * Business component initiated send operation request
410
- */
411
- bcName: string;
412
- /**
413
- * Cursors hierarchy at the time when request was fired
414
- */
415
- bcUrl: string;
416
- /**
417
- * Error to show in modal
418
- */
419
- viewError: string;
420
- /**
421
- * Validation errors on fields
422
- */
423
- entityError: OperationErrorEntity;
424
- };
425
- /**
426
- * Send operation request was successful
427
- */
428
- sendOperationSuccess: {
429
- /**
430
- * Business component initiated the request
431
- */
432
- bcName: string;
433
- /**
434
- * Cursor which initiated the request
435
- */
436
- cursor: string;
437
- /**
438
- * New record with `id` returned by Cxbox API and vstamp = -1 (denoting a record draft)
439
- */
440
- dataItem?: DataItem;
441
- };
442
- /**
443
- * TODO
444
- */
445
- processPostInvoke: {
446
- /**
447
- * @deprecated TODO: Prefer widgetName instead (2.0.0)
448
- */
449
- bcName: string;
450
- postInvoke: OperationPostInvokeAny;
451
- cursor?: string;
452
- /**
453
- * What widget initiated original operation, TODO: mandatory in 2.0.0
454
- */
455
- widgetName?: string;
456
- };
457
- /**
458
- * Operation to perform preInvoke actions
459
- */
460
- processPreInvoke: {
461
- /**
462
- * The business component to fetch data for
463
- */
464
- bcName: string;
465
- /**
466
- * Type of operation to be performed
467
- */
468
- operationType: string;
469
- /**
470
- * What widget requires data
471
- */
472
- widgetName: string;
473
- /**
474
- * Action that will be performed before the main operation
475
- */
476
- preInvoke: OperationPreInvoke;
477
- };
478
- /**
479
- * Operation to perform postInvokeConfirm actions
480
- */
481
- processPostInvokeConfirm: {
482
- /**
483
- * The business component to fetch data for
484
- */
485
- bcName: string;
486
- /**
487
- * Type of operation to be performed
488
- */
489
- operationType: string;
490
- /**
491
- * What widget requires data
492
- */
493
- widgetName: string;
494
- /**
495
- * Action that will be performed after the main operation and confirmation
496
- */
497
- postInvokeConfirm: OperationPostInvokeConfirm;
498
- };
499
- /**
500
- * TODO
501
- */
502
- userDrillDown: {
503
- widgetName: string;
504
- bcName: string;
505
- cursor: string;
506
- fieldKey: string;
507
- };
508
- /**
509
- * TODO
510
- */
511
- userDrillDownSuccess: {
512
- bcUrl: string;
513
- bcName: string;
514
- cursor: string;
515
- };
516
- /**
517
- * TODO
518
- */
519
- drillDown: {
520
- url: string;
521
- drillDownType?: DrillDownType;
522
- urlName?: string;
523
- route: Route;
524
- widgetName?: string;
525
- };
526
- /**
527
- * TODO
528
- */
529
- bcChangeCursors: {
530
- cursorsMap: Record<string, string>;
531
- keepDelta?: boolean;
532
- };
533
- /**
534
- * Sets a cursor for the specified depth level of hierarchy widget
535
- * builded around a single business component.
536
- */
537
- bcChangeDepthCursor: {
538
- /**
539
- * Business component for the hierarchy widget
540
- */
541
- bcName: string;
542
- /**
543
- * Depth level for which cursor is set
544
- */
545
- depth: number;
546
- /**
547
- * Cursor set for specific depth level of the hierarchy widget.
548
- *
549
- * Controls the collapsed state of the record and which data are fetched for the next level of hierarchy
550
- */
551
- cursor: string;
552
- };
553
- /**
554
- * TODO
555
- */
556
- changeDataItem: {
557
- bcName: string;
558
- cursor: string;
559
- dataItem: PendingDataItem;
560
- disableRetry?: boolean;
561
- };
562
- /**
563
- * TODO
564
- */
565
- changeDataItems: {
566
- bcName: string;
567
- cursors: string[];
568
- dataItems: PendingDataItem[];
569
- };
570
- /**
571
- * TODO
572
- */
573
- forceActiveRmUpdate: {
574
- /**
575
- * current data for record that initiated rowMeta fetch
576
- */
577
- currentRecordData: DataItem;
578
- rowMeta: RowMeta;
579
- bcName: string;
580
- bcUrl: string;
581
- cursor: string;
582
- };
583
- /**
584
- * TODO
585
- */
586
- showViewPopup: {
587
- /**
588
- * BC name of popup widget
589
- *
590
- * @deprecated TODO: Remove in 2.0.0 in favor of widget name
591
- */
592
- bcName: string;
593
- /**
594
- * Name of popup widget
595
- */
596
- widgetName?: string;
597
- /**
598
- * It's BC name of `caller` widget actually
599
- *
600
- * @deprecated TODO: Remove in 2.0.0 in favor of widget name
601
- */
602
- calleeBCName?: string;
603
- /**
604
- * Name of `caller` widget actually
605
- *
606
- * TODO: 2.0.0 : Rename to `callerWidgetName`
607
- */
608
- calleeWidgetName?: string;
609
- /**
610
- * Popup widget field key associated to `assocValueKey` of caller widget
611
- */
612
- associateFieldKey?: string;
613
- /**
614
- * Caller widget field key associated to `associateFieldKey` of popup widget
615
- */
616
- assocValueKey?: string;
617
- /**
618
- * If `true` then backend's method of association is used
619
- */
620
- active?: boolean;
621
- /**
622
- * Whether popup is used as filter
623
- */
624
- isFilter?: boolean;
625
- /**
626
- * Type of popup
627
- */
628
- type?: PopupType;
629
- };
630
- /**
631
- * TODO
632
- */
633
- showFileUploadPopup: {
634
- /**
635
- * Name of the widget that initiated popup opening
636
- */
637
- widgetName: string;
638
- };
639
- /**
640
- * Closes currently active popup on view
641
- */
642
- closeViewPopup: {
643
- /**
644
- * Not used
645
- *
646
- * @deprecated TODO: Will be removed in 2.0.0
647
- */
648
- bcName?: string;
649
- };
650
- /**
651
- * TODO
652
- */
653
- viewPutPickMap: {
654
- map: PickMap;
655
- bcName: string;
656
- };
657
- /**
658
- * TODO
659
- */
660
- viewClearPickMap: null;
661
- /**
662
- * TODO
663
- */
664
- saveAssociations: {
665
- bcNames: string[];
666
- /**
667
- * For usage outside of Popup (without opening multivalue)
668
- */
669
- calleeBcName?: string;
670
- associateFieldKey?: string;
671
- };
672
- /**
673
- * Sets intermediate state for association widget by storing associated records in pseudo-business component.
674
- *
675
- * Name for this pseudo-BC is formed as `${bcName}Delta`.
676
- */
677
- changeAssociations: {
678
- /**
679
- * Assoc widget's business component
680
- */
681
- bcName: string;
682
- /**
683
- * Records that marked as `associated` for this widget
684
- *
685
- * TODO: Will be mandatory in 2.0.0
686
- */
687
- records?: DataItem[];
688
- };
689
- /**
690
- * TODO
691
- */
692
- removeMultivalueTag: {
693
- bcName: string;
694
- popupBcName: string;
695
- cursor: string;
696
- associateFieldKey: string;
697
- dataItem: MultivalueSingleValue[];
698
- removedItem: MultivalueSingleValue;
699
- };
700
- /**
701
- * TODO
702
- */
703
- bcSaveDataSuccess: {
704
- bcName: string;
705
- cursor: string;
706
- dataItem: DataItem;
707
- };
708
- /**
709
- * TODO
710
- */
711
- bcSaveDataFail: {
712
- bcName: string;
713
- bcUrl: string;
714
- entityError?: OperationErrorEntity;
715
- viewError?: string;
716
- };
717
- /**
718
- * Save info about current operation for confirm modal
719
- */
720
- operationConfirmation: {
721
- /**
722
- * Current operation
723
- */
724
- operation: {
725
- bcName: string;
726
- operationType: OperationTypeCrud | string;
727
- widgetName: string;
728
- };
729
- /**
730
- * Text for confirm modal
731
- */
732
- confirmOperation: OperationPostInvokeConfirm;
733
- };
734
- /**
735
- * Manually update business component by fetching its data and and row meta
736
- */
737
- bcForceUpdate: {
738
- /**
739
- * @deprecated Will be removed in 2.0.0 in favor of `widgetName`
740
- */
741
- bcName: string;
742
- /**
743
- * What widget requires data (widget can only request its own data here)
744
- *
745
- * TODO: Will be mandatory in 2.0.0
746
- */
747
- widgetName?: string;
748
- };
749
- /**
750
- * TODO
751
- */
752
- uploadFile: null;
753
- /**
754
- * TODO
755
- */
756
- uploadFileDone: null;
757
- /**
758
- * TODO
759
- */
760
- uploadFileFailed: null;
761
- /**
762
- * TODO
763
- */
764
- bcCancelPendingChanges: {
765
- bcNames: string[];
766
- };
767
- /**
768
- * TODO
769
- */
770
- bcSelectRecord: {
771
- bcName: string;
772
- cursor: string;
773
- ignoreChildrenPageLimit?: boolean;
774
- keepDelta?: boolean;
775
- };
776
- /**
777
- * Wrapper action to sets a cursor for the specified depth level of hierarchy widget
778
- * builded around a single business component and fetch children for that record.
779
- *
780
- * @deprecated Do not use. TODO: Will be removed in 2.0.0
781
- */
782
- bcSelectDepthRecord: {
783
- /**
784
- * Business component for the hierarchy widget
785
- */
786
- bcName: string;
787
- /**
788
- * Depth level for which cursor is set
789
- */
790
- depth: number;
791
- /**
792
- * Cursor set for specific depth level of the hierarchy widget.
793
- *
794
- * Controls the collapsed state of the record and which data are fetched for the next level of hierarchy
795
- */
796
- cursor: string;
797
- };
798
- /**
799
- * TODO
800
- */
801
- changeAssociation: {
802
- bcName: string;
803
- widgetName: string;
804
- dataItem: AssociatedItem;
805
- assocValueKey: string;
806
- };
807
- /**
808
- * TODO
809
- */
810
- changeAssociationSameBc: {
811
- bcName: string;
812
- depth: number;
813
- widgetName: string;
814
- dataItem: AssociatedItem;
815
- assocValueKey: string;
816
- };
817
- /**
818
- * TODO
819
- */
820
- changeAssociationFull: {
821
- bcName: string;
822
- depth: number;
823
- widgetName: string;
824
- dataItem: AssociatedItem;
825
- /**
826
- * @deprecated TODO: Remove in 2.0.0 in favor of store.view.popupData.assocValueKey instead
827
- */
828
- assocValueKey?: string;
829
- };
830
- /**
831
- * TODO
832
- */
833
- changeChildrenAssociations: {
834
- bcName: string;
835
- assocValueKey: string;
836
- selected: boolean;
837
- };
838
- /**
839
- * TODO
840
- */
841
- changeChildrenAssociationsSameBc: {
842
- bcName: string;
843
- depth: number;
844
- assocValueKey: string;
845
- selected: boolean;
846
- };
847
- /**
848
- * TODO
849
- */
850
- changeDescendantsAssociationsFull: {
851
- bcName: string;
852
- parentId: string;
853
- depth: number;
854
- assocValueKey: string;
855
- selected: boolean;
856
- };
857
- /**
858
- * TODO
859
- */
860
- dropAllAssociations: {
861
- bcNames: string[];
862
- };
863
- /**
864
- * TODO
865
- */
866
- dropAllAssociationsSameBc: {
867
- bcName: string;
868
- depthFrom: number;
869
- };
870
- /**
871
- * TODO
872
- */
873
- dropAllAssociationsFull: {
874
- bcName: string;
875
- depth: number;
876
- dropDescendants?: boolean;
877
- };
878
- /**
879
- * For server side routing where {@link RouteType.router | routes are handled by Cxbox API endpoint}, this action is dispatched
880
- * to process requested route.
881
- */
882
- handleRouter: {
883
- /**
884
- * An URL that will be passed to Cxbox API router endpoint
885
- */
886
- path: string;
887
- /**
888
- * AJAX request parameters for the requests
889
- */
890
- params: Record<string, unknown>;
891
- };
892
- /**
893
- * TODO
894
- */
895
- selectTableCellInit: {
896
- widgetName: string;
897
- rowId: string;
898
- fieldKey: string;
899
- };
900
- /**
901
- * TODO
902
- */
903
- selectTableCell: {
904
- widgetName: string;
905
- rowId: string;
906
- fieldKey: string;
907
- };
908
- /**
909
- * TODO
910
- */
911
- showAllTableRecordsInit: {
912
- bcName: string;
913
- cursor: string;
914
- /**
915
- * @deprecated Remove in 2.0 (accessible from the store)
916
- */
917
- route?: Route;
918
- };
919
- /**
920
- * TODO
921
- */
922
- showNotification: {
923
- type: AppNotificationType;
924
- message: string;
925
- };
926
- /**
927
- * TODO
928
- */
929
- closeNotification: {
930
- id: number;
931
- };
932
- /**
933
- * TODO
934
- */
935
- bcAddFilter: {
936
- /**
937
- * TODO: Will be mandatory in 2.0.0
938
- */
939
- widgetName?: string;
940
- /**
941
- * @deprecated TODO: Remove in 2.0.0 in favor of widgetName
942
- */
943
- bcName: string;
944
- filter: BcFilter;
945
- };
946
- /**
947
- * TODO
948
- */
949
- bcRemoveFilter: {
950
- bcName: string;
951
- filter: BcFilter;
952
- };
953
- /**
954
- * Remove all filters at once
955
- */
956
- bcRemoveAllFilters: {
957
- bcName: string;
958
- };
959
- /**
960
- * TODO
961
- */
962
- bcAddSorter: {
963
- bcName: string;
964
- sorter: BcSorter | BcSorter[];
965
- };
966
- /**
967
- * TODO
968
- */
969
- bcRemoveSorter: {
970
- bcName: string;
971
- sorter: BcSorter;
972
- };
973
- /**
974
- * Fetches data for the new page of business component, replacing existing data
975
- */
976
- bcChangePage: {
977
- /**
978
- * Business component changing the page
979
- *
980
- * @deprecated TODO: Will be removed in 2.0.0 in favor of `widgetNam`
981
- */
982
- bcName: string;
983
- /**
984
- * Requested page number
985
- */
986
- page: number;
987
- /**
988
- * Widget changing the page
989
- */
990
- widgetName?: string;
991
- };
992
- /**
993
- * TODO
994
- */
995
- showViewError: {
996
- error: ApplicationError;
997
- };
998
- /**
999
- * TODO
1000
- */
1001
- closeViewError: null;
1002
- /**
1003
- * Close confirm modal window
1004
- */
1005
- closeConfirmModal: null;
1006
- /**
1007
- * TODO
1008
- */
1009
- clearValidationFails: null;
1010
- /**
1011
- * TODO
1012
- */
1013
- downloadFile: {
1014
- fileId: string;
1015
- };
1016
- /**
1017
- * TODO
1018
- */
1019
- downloadFileByUrl: {
1020
- url: string;
1021
- };
1022
- /**
1023
- * Save uploaded files to the widget
1024
- */
1025
- bulkUploadFiles: {
1026
- /**
1027
- * Ids of uploaded files
1028
- */
1029
- fileIds: string[];
1030
- };
1031
- /**
1032
- * An error occured during API request
1033
- */
1034
- apiError: {
1035
- /**
1036
- * Axios error object
1037
- */
1038
- error: AxiosError;
1039
- /**
1040
- * Request context
1041
- */
1042
- callContext: ApiCallContext;
1043
- };
1044
- /**
1045
- * Fires for specific HTTP status code
1046
- */
1047
- httpError: {
1048
- /**
1049
- * Status code for failed request caught by `onErrorHook`
1050
- */
1051
- statusCode: number;
1052
- /**
1053
- * Axios error object
1054
- */
1055
- error: AxiosError;
1056
- /**
1057
- * Request context
1058
- */
1059
- callContext: ApiCallContext;
1060
- };
1061
- /**
1062
- * Enable/disable debug mode
1063
- */
1064
- switchDebugMode: boolean;
1065
- /**
1066
- * Download state to device
1067
- */
1068
- exportState: null;
1069
- /**
1070
- * TODO
1071
- */
1072
- emptyAction: null;
1073
- /**
1074
- * refresh screens, views and widgets meta
1075
- */
1076
- refreshMeta: null;
1077
- /**
1078
- * refresh refreshMeta was successful
1079
- */
1080
- refreshMetaDone: null;
1081
- /**
1082
- * refresh refreshMeta was unsuccessful
1083
- */
1084
- refreshMetaFail: null;
1085
- /**
1086
- * Refresh meta data (see action above) and reload page
1087
- */
1088
- refreshMetaAndReloadPage: null;
1089
- /**
1090
- * Switch to another user role
1091
- */
1092
- switchRole: {
1093
- role: string;
1094
- };
1095
- /**
1096
- * Add pending request for tracking and blocking race conditions
1097
- */
1098
- addPendingRequest: {
1099
- request: PendingRequest;
1100
- };
1101
- /**
1102
- * Remove pending request
1103
- */
1104
- removePendingRequest: {
1105
- requestId: string;
1106
- };
1107
- }
1108
- /**
1109
- * @category Actions
1110
- */
1111
- export declare const types: util.uActionTypesMap<ActionPayloadTypes>;
1112
- /**
1113
- * Checks if need to perform autosave on specified action type call
1114
- *
1115
- * @param action
1116
- * @category Actions
1117
- */
1118
- export declare const needSaveAction: (action: string) => boolean;
1119
- /**
1120
- * @category Actions
1121
- */
1122
- export declare const $do: util.uActionCreators<ActionPayloadTypes>;
1123
- export declare type ActionsMap = util.uActionsMap<ActionPayloadTypes>;
1124
- /**
1125
- * Any of the core actions
1126
- *
1127
- * @category Actions
1128
- */
1129
- export declare type AnyAction = util.AnyOfMap<ActionsMap> | {
1130
- type: ' UNKNOWN ACTION ';
1131
- payload?: any;
1132
- };
1133
- export interface ActionsObservable<T extends AnyAction> extends rActionsObservable<T> {
1134
- /**
1135
- * TODO
1136
- *
1137
- * @param key
1138
- */
1139
- ofType<K extends keyof ActionPayloadTypes>(...key: K[]): ActionsObservable<ActionsMap[K]>;
1140
- }
1141
- /**
1142
- * Epic for any of core actions
1143
- */
1144
- export declare type Epic = (action$: ActionsObservable<AnyAction>, store: Store<CoreStore>) => Observable<AnyAction>;