@cxbox-ui/core 1.34.1

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