@cxbox-ui/core 1.37.2-alpha.8 → 1.37.2

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 (424) hide show
  1. package/CONTRIBUTING.md +124 -0
  2. package/Provider.d.ts +63 -0
  3. package/actions/actions-utils.d.ts +48 -0
  4. package/actions/actions.d.ts +1144 -0
  5. package/actions/index.d.ts +2 -0
  6. package/api/api.d.ts +148 -0
  7. package/api/index.d.ts +1 -0
  8. package/assets/i18n/__tests__/getTextAssets.d.ts +1 -0
  9. package/assets/i18n/index.d.ts +25 -0
  10. package/components/ColumnTitle/ColumnFilter.d.ts +47 -0
  11. package/components/ColumnTitle/ColumnSort.d.ts +26 -0
  12. package/components/ColumnTitle/ColumnTitle.d.ts +31 -0
  13. package/components/ColumnTitle/__tests__/ColumnFilter.test.d.ts +1 -0
  14. package/components/ColumnTitle/__tests__/ColumnSort.test.d.ts +1 -0
  15. package/components/ColumnTitle/__tests__/ColumnTitle.test.d.ts +1 -0
  16. package/components/DebugPanel/DebugPanel.d.ts +7 -0
  17. package/components/DebugPanel/__tests__/DebugPanel.test.d.ts +1 -0
  18. package/components/DebugPanel/components/FormattedJSON.d.ts +6 -0
  19. package/components/DebugPanel/components/InfoLabel.d.ts +7 -0
  20. package/components/DebugPanel/components/ViewInfoLabel.d.ts +3 -0
  21. package/components/DebugPanel/components/WidgetInfoLabel.d.ts +5 -0
  22. package/components/DebugPanel/components/__tests__/FormattedJSON.test.d.ts +1 -0
  23. package/components/DebugPanel/components/__tests__/InfoLabel.test.d.ts +1 -0
  24. package/components/DebugPanel/components/__tests__/ViewInfoLabel.test.d.ts +1 -0
  25. package/components/DebugPanel/components/__tests__/WidgetInfoLabel.test.d.ts +1 -0
  26. package/components/DevToolsPanel/DevToolsPanel.d.ts +10 -0
  27. package/components/DevToolsPanel/DevToolsPanel.test.d.ts +1 -0
  28. package/components/DevToolsPanel/components/DebugModeButton.d.ts +9 -0
  29. package/components/DevToolsPanel/components/RefreshMetaButton.d.ts +9 -0
  30. package/components/DevToolsPanel/components/__tests__/DebugModeButton.test.d.ts +1 -0
  31. package/components/DevToolsPanel/components/__tests__/RefreshMetaButton.test.d.ts +1 -0
  32. package/components/Field/Field.d.ts +72 -0
  33. package/components/Field/Field.test.d.ts +1 -0
  34. package/components/FileUpload/FileUpload.d.ts +32 -0
  35. package/components/FileUploadPopup/FileUploadPopup.d.ts +10 -0
  36. package/components/FilterPopup/FilterPopup.d.ts +26 -0
  37. package/components/FilterPopup/FilterPopup.test.d.ts +1 -0
  38. package/components/FullHierarchyTable/FullHierarchyTable.d.ts +52 -0
  39. package/components/FullHierarchyTable/FullHierarchyTable.test.d.ts +1 -0
  40. package/components/FullHierarchyTable/utils/hierarchySearchCache.d.ts +37 -0
  41. package/components/FullHierarchyTable/utils/hierarchySearchCache.test.d.ts +1 -0
  42. package/components/FullHierarchyTable/utils/useExpandedKeys.d.ts +19 -0
  43. package/components/FullHierarchyTable/utils/useHierarchyCache.d.ts +12 -0
  44. package/components/HierarchyTable/HierarchyTable.d.ts +48 -0
  45. package/components/HierarchyTable/HierarchyTable.test.d.ts +1 -0
  46. package/components/InlinePickList/InlinePickList.d.ts +23 -0
  47. package/components/ModalInvoke/ModalInvoke.d.ts +18 -0
  48. package/components/ModalInvoke/ModalInvoke.test.d.ts +1 -0
  49. package/components/Multivalue/MultiValueListRecord.d.ts +15 -0
  50. package/components/Multivalue/MultivalueField.d.ts +31 -0
  51. package/components/Multivalue/MultivalueField.test.d.ts +1 -0
  52. package/components/PickListField/PickListField.d.ts +25 -0
  53. package/components/RowOperations/RowOperationsButton.d.ts +42 -0
  54. package/components/RowOperations/RowOperationsMenu.d.ts +29 -0
  55. package/components/RowOperations/__tests__/RowOperationsButton.test.d.ts +1 -0
  56. package/components/RowOperations/__tests__/RowOperationsMenu.test.d.ts +1 -0
  57. package/components/SameBcHierarchyTable/SameBcHierarchyTable.d.ts +41 -0
  58. package/components/TemplatedTitle/TemplatedTitle.d.ts +20 -0
  59. package/components/View/View.d.ts +27 -0
  60. package/components/View/__tests__/View.test.d.ts +1 -0
  61. package/components/Widget/Widget.d.ts +29 -0
  62. package/components/Widget/Widget.test.d.ts +1 -0
  63. package/components/WidgetErrorBoundary/WidgetErrorBoundary.d.ts +20 -0
  64. package/components/WidgetErrorBoundary/WidgetErrorBoundary.test.d.ts +1 -0
  65. package/components/WidgetErrorBoundary/components/RefreshButton.d.ts +4 -0
  66. package/components/WidgetErrorBoundary/components/RefreshButton.test.d.ts +1 -0
  67. package/components/index.d.ts +44 -0
  68. package/components/ui/ActionLink/ActionLink.d.ts +11 -0
  69. package/components/ui/CheckboxFilter/CheckboxFilter.d.ts +21 -0
  70. package/components/ui/CheckboxFilter/CheckboxFilter.test.d.ts +1 -0
  71. package/components/ui/CheckboxPicker/CheckboxPicker.d.ts +21 -0
  72. package/components/ui/CopyableText/CopyableText.d.ts +7 -0
  73. package/components/ui/CopyableText/__tests__/CopyableText.test.d.ts +1 -0
  74. package/components/ui/DashboardLayout/DashboardLayout.d.ts +22 -0
  75. package/components/ui/DashboardLayout/__tests__/DashboardLayout.test.d.ts +1 -0
  76. package/components/ui/DatePickerField/DatePickerField.d.ts +25 -0
  77. package/components/ui/Dictionary/Dictionary.d.ts +30 -0
  78. package/components/ui/Dictionary/Dictionary.test.d.ts +1 -0
  79. package/components/ui/ErrorPopup/ErrorPopup.d.ts +18 -0
  80. package/components/ui/ErrorPopup/ErrorPopup.test.d.ts +1 -0
  81. package/components/ui/FilterField/FilterField.d.ts +25 -0
  82. package/components/ui/FilterField/FilterField.test.d.ts +1 -0
  83. package/components/ui/FilterField/components/RangePicker.d.ts +11 -0
  84. package/components/ui/FilterField/components/RangePicker.test.d.ts +1 -0
  85. package/components/ui/HistoryField/HistoryField.d.ts +15 -0
  86. package/components/ui/InteractiveInput/InteractiveInput.d.ts +28 -0
  87. package/components/ui/Link/Link.d.ts +13 -0
  88. package/components/ui/MultiField/MultiField.d.ts +16 -0
  89. package/components/ui/Multivalue/MultivalueHover.d.ts +15 -0
  90. package/components/ui/Multivalue/MultivalueList.d.ts +17 -0
  91. package/components/ui/Multivalue/MultivalueTag.d.ts +24 -0
  92. package/components/ui/NavigationTabs/NavigationTabs.d.ts +7 -0
  93. package/components/ui/NavigationTabs/NavigationTabs.test.d.ts +1 -0
  94. package/components/ui/NumberInput/NumberInput.d.ts +17 -0
  95. package/components/ui/NumberInput/NumberInput.test.d.ts +1 -0
  96. package/components/ui/NumberInput/formaters.d.ts +31 -0
  97. package/components/ui/Pagination/Pagination.d.ts +51 -0
  98. package/components/ui/Pagination/Pagination.test.d.ts +1 -0
  99. package/components/ui/PickInput/PickInput.d.ts +15 -0
  100. package/components/ui/Popup/Popup.d.ts +29 -0
  101. package/components/ui/Popup/Popup.test.d.ts +1 -0
  102. package/components/ui/Popup/PopupFooter.d.ts +16 -0
  103. package/components/ui/RadioButton/RadioButton.d.ts +16 -0
  104. package/components/ui/RadioButton/RadioButton.test.d.ts +1 -0
  105. package/components/ui/ReadOnlyField/ReadOnlyField.d.ts +22 -0
  106. package/components/ui/SearchHightlight/SearchHightlight.d.ts +20 -0
  107. package/components/ui/Select/Select.d.ts +26 -0
  108. package/components/ui/TextArea/TextArea.d.ts +24 -0
  109. package/components/ui/TextArea/TextArea.test.d.ts +1 -0
  110. package/components/ui/TreeVirtualized/TreeVirtualized.d.ts +63 -0
  111. package/components/ui/TreeVirtualized/TreeVirtualizedNode.d.ts +67 -0
  112. package/components/ui/TreeVirtualized/__tests__/TreeVirtualized.test.d.ts +1 -0
  113. package/components/ui/TreeVirtualized/__tests__/TreeVirtualizedNode.test.d.ts +1 -0
  114. package/components/ui/TreeVirtualized/__tests__/useMatchingNodes.test.d.ts +1 -0
  115. package/components/ui/TreeVirtualized/__tests__/useSearchResult.test.d.ts +1 -0
  116. package/components/ui/TreeVirtualized/useMatchingNodes.d.ts +23 -0
  117. package/components/ui/TreeVirtualized/useSearchResult.d.ts +27 -0
  118. package/components/widgets/AssocListPopup/AssocListPopup.d.ts +58 -0
  119. package/components/widgets/AssocListPopup/AssocListPopup.test.d.ts +1 -0
  120. package/components/widgets/AssocListPopup/AssocTable.d.ts +35 -0
  121. package/components/widgets/AssocListPopup/AssocTable.test.d.ts +1 -0
  122. package/components/widgets/FlatTree/FlatTree.d.ts +53 -0
  123. package/components/widgets/FlatTree/FlatTreePopup.d.ts +31 -0
  124. package/components/widgets/FlatTree/__tests__/FlatTree.test.d.ts +1 -0
  125. package/components/widgets/FlatTree/__tests__/FlatTreePopup.test.d.ts +1 -0
  126. package/components/widgets/FlatTree/useMultipleSelect.d.ts +11 -0
  127. package/components/widgets/FlatTree/useSingleSelect.d.ts +10 -0
  128. package/components/widgets/FormWidget/FormWidget.d.ts +23 -0
  129. package/components/widgets/FormWidget/FormWidget.test.d.ts +1 -0
  130. package/components/widgets/InfoWidget/InfoWidget.d.ts +19 -0
  131. package/components/widgets/InfoWidget/__test__/InfoWidget.test.d.ts +1 -0
  132. package/components/widgets/InfoWidget/components/InfoCell.d.ts +15 -0
  133. package/components/widgets/InfoWidget/components/InfoRow.d.ts +16 -0
  134. package/components/widgets/InfoWidget/components/InfoValueWrapper.d.ts +10 -0
  135. package/components/widgets/InfoWidget/components/__tests__/InfoCell.test.d.ts +1 -0
  136. package/components/widgets/InfoWidget/components/__tests__/InfoRow.test.d.ts +1 -0
  137. package/components/widgets/InfoWidget/components/__tests__/InfoValueWrapper.test.d.ts +1 -0
  138. package/components/widgets/NavigationTabsWidget/NavigationTabsWidget.d.ts +8 -0
  139. package/components/widgets/NavigationTabsWidget/NavigationTabsWidget.test.d.ts +1 -0
  140. package/components/widgets/PickListPopup/PickListPopup.d.ts +43 -0
  141. package/components/widgets/PickListPopup/PickListPopup.test.d.ts +1 -0
  142. package/components/widgets/TableWidget/TableWidget.d.ts +88 -0
  143. package/components/widgets/TableWidget/TableWidget.test.d.ts +1 -0
  144. package/components/widgets/TextWidget/TextWidget.d.ts +15 -0
  145. package/components/widgets/TextWidget/TextWidget.test.d.ts +1 -0
  146. package/components/widgets/ViewNavigationWidget/ViewNavigationWidget.d.ts +6 -0
  147. package/components/widgets/ViewNavigationWidget/ViewNavigationWidget.test.d.ts +1 -0
  148. package/components/widgets/index.d.ts +4 -0
  149. package/cxbox-ui-core.js +148 -0
  150. package/cxbox-ui-core.js.map +1 -0
  151. package/epics/data/__tests__/bcCancelCreateDataEpic.test.d.ts +1 -0
  152. package/epics/data/__tests__/bcFetchData.test.d.ts +1 -0
  153. package/epics/data/__tests__/bcFetchRowMetaRequest.test.d.ts +1 -0
  154. package/epics/data/__tests__/bcNewDataEpic.test.d.ts +1 -0
  155. package/epics/data/__tests__/bcSaveData.test.d.ts +1 -0
  156. package/epics/data/__tests__/bcSelectDepthRecord.test.d.ts +1 -0
  157. package/epics/data/__tests__/removeMultivalueTag.test.d.ts +1 -0
  158. package/epics/data/__tests__/saveAssociationsActive.test.d.ts +1 -0
  159. package/epics/data/__tests__/selectView.test.d.ts +1 -0
  160. package/epics/data/bcCancelCreateDataEpic.d.ts +28 -0
  161. package/epics/data/bcFetchData.d.ts +21 -0
  162. package/epics/data/bcFetchRowMetaRequest.d.ts +50 -0
  163. package/epics/data/bcNewDataEpic.d.ts +37 -0
  164. package/epics/data/bcSaveData.d.ts +58 -0
  165. package/epics/data/bcSelectDepthRecord.d.ts +21 -0
  166. package/epics/data/removeMultivalueTag.d.ts +45 -0
  167. package/{dist/epics/data/saveAssociationsActiveEpic.d.ts → epics/data/saveAssociationsActive.d.ts} +2 -2
  168. package/epics/data/selectView.d.ts +36 -0
  169. package/epics/data.d.ts +105 -0
  170. package/epics/index.d.ts +74 -0
  171. package/epics/router/__tests__/changeLocation.test.d.ts +1 -0
  172. package/epics/router/__tests__/drilldown.test.d.ts +1 -0
  173. package/epics/router/__tests__/handleRouter.test.d.ts +1 -0
  174. package/epics/router/__tests__/loginDone.test.d.ts +1 -0
  175. package/epics/router/__tests__/selectScreen.test.d.ts +1 -0
  176. package/epics/router/__tests__/selectScreenFail.test.d.ts +1 -0
  177. package/epics/router/__tests__/selectView.test.d.ts +1 -0
  178. package/epics/router/__tests__/selectViewFail.test.d.ts +1 -0
  179. package/epics/router/__tests__/userDrillDown.test.d.ts +1 -0
  180. package/{dist/epics/router/changeLocationEpic.d.ts → epics/router/changeLocation.d.ts} +3 -2
  181. package/epics/router/drilldown.d.ts +12 -0
  182. package/epics/router/handleRouter.d.ts +17 -0
  183. package/epics/router/loginDone.d.ts +20 -0
  184. package/epics/router/selectScreen.d.ts +19 -0
  185. package/epics/router/selectScreenFail.d.ts +17 -0
  186. package/epics/router/selectView.d.ts +19 -0
  187. package/epics/router/selectViewFail.d.ts +17 -0
  188. package/epics/router/userDrillDown.d.ts +29 -0
  189. package/epics/router.d.ts +11 -0
  190. package/epics/screen/__tests__/apiError.test.d.ts +1 -0
  191. package/epics/screen/__tests__/httpError401.test.d.ts +1 -0
  192. package/epics/screen/__tests__/httpError409.test.d.ts +1 -0
  193. package/epics/screen/__tests__/httpError418.test.d.ts +1 -0
  194. package/epics/screen/__tests__/httpError500.test.d.ts +1 -0
  195. package/epics/screen/__tests__/httpErrorDefault.test.d.ts +1 -0
  196. package/epics/screen/apiError.d.ts +13 -0
  197. package/epics/screen/httpError401.d.ts +12 -0
  198. package/epics/screen/httpError409.d.ts +12 -0
  199. package/epics/screen/httpError418.d.ts +12 -0
  200. package/epics/screen/httpError500.d.ts +12 -0
  201. package/epics/screen/httpErrorDefault.d.ts +14 -0
  202. package/epics/screen/processPostInvoke.d.ts +12 -0
  203. package/epics/screen.d.ts +35 -0
  204. package/epics/session/__tests__/loginByAnotherRoleEpic.test.d.ts +1 -0
  205. package/epics/session/__tests__/loginDone.test.d.ts +1 -0
  206. package/epics/session/__tests__/refreshMeta.test.d.ts +1 -0
  207. package/epics/session/__tests__/refreshMetaAndReloadPage.test.d.ts +1 -0
  208. package/epics/session/__tests__/switchRole.test.d.ts +1 -0
  209. package/epics/session/loginByAnotherRole.d.ts +27 -0
  210. package/epics/session/loginDone.d.ts +10 -0
  211. package/epics/session/refreshMeta.d.ts +9 -0
  212. package/epics/session/refreshMetaAndReloadPage.d.ts +2 -0
  213. package/epics/session/switchRole.d.ts +9 -0
  214. package/epics/session.d.ts +7 -0
  215. package/epics/utils.d.ts +4 -0
  216. package/epics/view/__tests__/fileUploadConfirm.test.d.ts +1 -0
  217. package/epics/view/__tests__/sendOperation.test.d.ts +1 -0
  218. package/epics/view/__tests__/sendOperationAssociate.test.d.ts +1 -0
  219. package/epics/view/__tests__/showAssocPopup.test.d.ts +1 -0
  220. package/epics/view/__tests__/showFileUploadPopup.test.d.ts +1 -0
  221. package/epics/view/fileUploadConfirm.d.ts +31 -0
  222. package/epics/view/sendOperation.d.ts +24 -0
  223. package/epics/view/sendOperationAssociate.d.ts +34 -0
  224. package/epics/view/showAssocPopup.d.ts +12 -0
  225. package/epics/view/showFileUploadPopup.d.ts +19 -0
  226. package/epics/view.d.ts +57 -0
  227. package/hooks/__tests__/useRowMenu.test.d.ts +1 -0
  228. package/hooks/__tests__/useViewTabs.test.d.ts +1 -0
  229. package/hooks/__tests__/useWidgetOperations.test.d.ts +1 -0
  230. package/hooks/index.d.ts +7 -0
  231. package/hooks/useAssocRecords.d.ts +11 -0
  232. package/hooks/useDebounce.d.ts +8 -0
  233. package/hooks/useDrillDownUrl.d.ts +10 -0
  234. package/hooks/useFlatFormFields.d.ts +9 -0
  235. package/hooks/useRowMenu.d.ts +42 -0
  236. package/hooks/useViewTabs.d.ts +13 -0
  237. package/hooks/useWidgetFilter.d.ts +15 -0
  238. package/hooks/useWidgetOperations.d.ts +34 -0
  239. package/imports/i18n.d.ts +8 -0
  240. package/imports/rxjs.d.ts +19 -0
  241. package/imports/shim.d.ts +6 -0
  242. package/index.d.ts +135 -0
  243. package/{dist/interfaces → interfaces}/bc.d.ts +6 -7
  244. package/interfaces/customEpics.d.ts +55 -0
  245. package/{dist/interfaces → interfaces}/customMiddlewares.d.ts +5 -5
  246. package/{dist/interfaces → interfaces}/data.d.ts +4 -4
  247. package/interfaces/filters.js +2 -0
  248. package/interfaces/filters.js.map +1 -0
  249. package/interfaces/index.d.ts +22 -0
  250. package/{dist/interfaces → interfaces}/navigation.d.ts +2 -2
  251. package/{dist/interfaces → interfaces}/objectMap.d.ts +2 -3
  252. package/interfaces/objectMap.js +2 -0
  253. package/interfaces/objectMap.js.map +1 -0
  254. package/{dist/interfaces → interfaces}/operation.d.ts +6 -7
  255. package/interfaces/operation.js +2 -0
  256. package/interfaces/operation.js.map +1 -0
  257. package/interfaces/router.js +2 -0
  258. package/interfaces/router.js.map +1 -0
  259. package/{dist/interfaces → interfaces}/session.d.ts +0 -19
  260. package/interfaces/store.d.ts +56 -0
  261. package/{dist/interfaces → interfaces}/tree.d.ts +4 -4
  262. package/{dist/interfaces → interfaces}/view.d.ts +5 -5
  263. package/interfaces/view.js +2 -0
  264. package/interfaces/view.js.map +1 -0
  265. package/{dist/interfaces → interfaces}/widget.d.ts +11 -12
  266. package/interfaces/widget.js +2 -0
  267. package/interfaces/widget.js.map +1 -0
  268. package/middlewares/__tests__/autosaveMiddleware.test.d.ts +1 -0
  269. package/middlewares/__tests__/preInvokeMiddleware.test.d.ts +1 -0
  270. package/middlewares/__tests__/requiredFieldsMiddleware.test.d.ts +1 -0
  271. package/middlewares/actionsHistoryMiddleware.d.ts +3 -0
  272. package/middlewares/autosaveMiddleware.d.ts +6 -0
  273. package/middlewares/index.d.ts +6 -0
  274. package/{dist/middlewares → middlewares}/requiredFieldsMiddleware.d.ts +6 -4
  275. package/mocks/data/widgetMeta.d.ts +10 -0
  276. package/package.json +105 -66
  277. package/reducers/__tests__/data.test.d.ts +1 -0
  278. package/reducers/__tests__/forceActiveField.test.d.ts +1 -0
  279. package/reducers/__tests__/screen/bcAddFilter.test.d.ts +1 -0
  280. package/reducers/__tests__/session.test.d.ts +1 -0
  281. package/reducers/__tests__/view.test.d.ts +1 -0
  282. package/reducers/data.d.ts +13 -0
  283. package/reducers/depthData.d.ts +7 -0
  284. package/reducers/index.d.ts +3 -0
  285. package/reducers/router.d.ts +30 -0
  286. package/reducers/screen.d.ts +16 -0
  287. package/reducers/session.d.ts +15 -0
  288. package/reducers/view.d.ts +16 -0
  289. package/tests/mockStore.d.ts +6 -0
  290. package/tests/setup.d.ts +1 -0
  291. package/tests/testEpic.d.ts +14 -0
  292. package/utils/__tests__/autosave.test.d.ts +1 -0
  293. package/utils/__tests__/bc.test.d.ts +1 -0
  294. package/utils/__tests__/breadthFirst.test.d.ts +1 -0
  295. package/utils/__tests__/cancelRequestEpic.test.d.ts +1 -0
  296. package/utils/__tests__/combineEpics.test.d.ts +1 -0
  297. package/utils/__tests__/combineMiddlewares.test.d.ts +1 -0
  298. package/utils/__tests__/configureStore.test.d.ts +1 -0
  299. package/utils/__tests__/extendPopupWidgetTypes.test.d.ts +1 -0
  300. package/utils/__tests__/filters.test.d.ts +1 -0
  301. package/utils/__tests__/history.test.d.ts +1 -0
  302. package/utils/__tests__/notifications.test.d.ts +1 -0
  303. package/utils/__tests__/operations.test.d.ts +1 -0
  304. package/utils/__tests__/tree.test.d.ts +1 -0
  305. package/utils/__tests__/viewTabs.test.d.ts +1 -0
  306. package/utils/actionsHistory.d.ts +2 -0
  307. package/utils/api.d.ts +92 -0
  308. package/{dist/utils → utils}/autosave.d.ts +2 -13
  309. package/{dist/utils → utils}/bc.d.ts +3 -3
  310. package/utils/cancelRequestEpic.d.ts +16 -0
  311. package/utils/combineEpics.d.ts +13 -0
  312. package/utils/combineMiddlewares.d.ts +3 -0
  313. package/utils/configureStore.d.ts +15 -0
  314. package/utils/exportState.d.ts +3 -0
  315. package/{dist/utils → utils}/filters.d.ts +4 -3
  316. package/{dist/utils → utils}/history.d.ts +7 -5
  317. package/utils/index.d.ts +6 -0
  318. package/utils/notifications.d.ts +11 -0
  319. package/{dist/utils → utils}/operations.d.ts +2 -2
  320. package/utils/redux.d.ts +49 -0
  321. package/{dist/utils → utils}/strings.d.ts +2 -3
  322. package/{dist/utils → utils}/tree.d.ts +2 -2
  323. package/dist/actions/index.d.ts +0 -1059
  324. package/dist/api/ObservableApi.d.ts +0 -53
  325. package/dist/api/ObservableApiWrapper.d.ts +0 -11
  326. package/dist/api/index.d.ts +0 -1
  327. package/dist/cxbox-ui-core.cjs.development.js +0 -3374
  328. package/dist/cxbox-ui-core.cjs.production.min.js +0 -2
  329. package/dist/cxbox-ui-core.esm.js +0 -3339
  330. package/dist/cxbox-ui-core.modern.development.js +0 -3273
  331. package/dist/cxbox-ui-core.modern.js +0 -3273
  332. package/dist/cxbox-ui-core.modern.production.min.js +0 -2
  333. package/dist/epics/data/bcCancelCreateDataEpic.d.ts +0 -9
  334. package/dist/epics/data/bcDeleteDataEpic.d.ts +0 -2
  335. package/dist/epics/data/bcFetchDataEpic.d.ts +0 -15
  336. package/dist/epics/data/bcFetchRowMetaRequestEpic.d.ts +0 -17
  337. package/dist/epics/data/bcLoadMoreEpic.d.ts +0 -2
  338. package/dist/epics/data/bcNewDataEpic.d.ts +0 -14
  339. package/dist/epics/data/bcSaveDataEpic.d.ts +0 -24
  340. package/dist/epics/data/bcSelectDepthRecordEpic.d.ts +0 -2
  341. package/dist/epics/data/bcSelectRecordEpic.d.ts +0 -2
  342. package/dist/epics/data/changeAssociationEpic.d.ts +0 -2
  343. package/dist/epics/data/changeAssociationFullEpic.d.ts +0 -5
  344. package/dist/epics/data/changeAssociationSameBcEpic.d.ts +0 -5
  345. package/dist/epics/data/changeChildrenAssociationsEpic.d.ts +0 -2
  346. package/dist/epics/data/changeChildrenAssociationsSameBcEpic.d.ts +0 -2
  347. package/dist/epics/data/changeDescendantsAssociationsFullEpic.d.ts +0 -5
  348. package/dist/epics/data/index.d.ts +0 -20
  349. package/dist/epics/data/inlinePickListFetchDataEpic.d.ts +0 -2
  350. package/dist/epics/data/removeMultivalueTagEpic.d.ts +0 -17
  351. package/dist/epics/data/saveAssociationsPassiveEpic.d.ts +0 -7
  352. package/dist/epics/data/selectViewEpic.d.ts +0 -11
  353. package/dist/epics/index.d.ts +0 -6
  354. package/dist/epics/router/drilldownEpic.d.ts +0 -2
  355. package/dist/epics/router/handleRouterEpic.d.ts +0 -2
  356. package/dist/epics/router/index.d.ts +0 -10
  357. package/dist/epics/router/loginDoneEpic.d.ts +0 -9
  358. package/dist/epics/router/selectScreenEpic.d.ts +0 -7
  359. package/dist/epics/router/selectScreenFailEpic.d.ts +0 -7
  360. package/dist/epics/router/selectViewEpic.d.ts +0 -7
  361. package/dist/epics/router/selectViewFailEpic.d.ts +0 -6
  362. package/dist/epics/router/userDrillDownEpic.d.ts +0 -6
  363. package/dist/epics/router/userDrilldownChangeCursorsEpic.d.ts +0 -2
  364. package/dist/epics/screen/apiErrorEpic.d.ts +0 -2
  365. package/dist/epics/screen/downloadFileByUrlEpic.d.ts +0 -2
  366. package/dist/epics/screen/downloadFileEpic.d.ts +0 -2
  367. package/dist/epics/screen/httpError401Epic.d.ts +0 -2
  368. package/dist/epics/screen/httpError409Epic.d.ts +0 -2
  369. package/dist/epics/screen/httpError418Epic.d.ts +0 -2
  370. package/dist/epics/screen/httpError500Epic.d.ts +0 -2
  371. package/dist/epics/screen/httpErrorDefaultEpic.d.ts +0 -2
  372. package/dist/epics/screen/index.d.ts +0 -10
  373. package/dist/epics/screen/processPostInvokeConfirmEpic.d.ts +0 -2
  374. package/dist/epics/screen/processPostInvokeEpic.d.ts +0 -2
  375. package/dist/epics/session/index.d.ts +0 -5
  376. package/dist/epics/session/loginByAnotherRoleEpic.d.ts +0 -5
  377. package/dist/epics/session/loginDoneEpic.d.ts +0 -6
  378. package/dist/epics/session/refreshMetaAndReloadPageEpic.d.ts +0 -2
  379. package/dist/epics/session/refreshMetaEpic.d.ts +0 -5
  380. package/dist/epics/session/switchRoleEpic.d.ts +0 -5
  381. package/dist/epics/utils/postOperationRoutine.d.ts +0 -13
  382. package/dist/epics/view/clearPendingDataChangesAfterCursorChangeEpic.d.ts +0 -7
  383. package/dist/epics/view/fileUploadConfirmEpic.d.ts +0 -11
  384. package/dist/epics/view/getRowMetaByForceActiveEpic.d.ts +0 -5
  385. package/dist/epics/view/index.d.ts +0 -9
  386. package/dist/epics/view/selectTableCellInitEpic.d.ts +0 -2
  387. package/dist/epics/view/sendOperationAssociateEpic.d.ts +0 -5
  388. package/dist/epics/view/sendOperationEpic.d.ts +0 -10
  389. package/dist/epics/view/showAllTableRecordsInitEpic.d.ts +0 -2
  390. package/dist/epics/view/showAssocPopupEpic.d.ts +0 -2
  391. package/dist/epics/view/showFileUploadPopupEpic.d.ts +0 -5
  392. package/dist/index.d.ts +0 -6
  393. package/dist/index.js +0 -6
  394. package/dist/interfaces/customEpics.d.ts +0 -15
  395. package/dist/interfaces/index.d.ts +0 -27
  396. package/dist/interfaces/store.d.ts +0 -14
  397. package/dist/middlewares/autosaveMiddleware.d.ts +0 -17
  398. package/dist/middlewares/index.d.ts +0 -17
  399. package/dist/middlewares/popupMiddleware.d.ts +0 -5
  400. package/dist/reducers/ReducerBuilderManager.d.ts +0 -19
  401. package/dist/reducers/data.d.ts +0 -4
  402. package/dist/reducers/depthData.d.ts +0 -4
  403. package/dist/reducers/index.d.ts +0 -6
  404. package/dist/reducers/router.d.ts +0 -9
  405. package/dist/reducers/screen.d.ts +0 -10
  406. package/dist/reducers/session.d.ts +0 -10
  407. package/dist/reducers/view.d.ts +0 -10
  408. package/dist/utils/api.d.ts +0 -25
  409. package/dist/utils/cancelRequestEpic.d.ts +0 -17
  410. package/dist/utils/combineMiddlewares.d.ts +0 -14
  411. package/dist/utils/deleteUndefinedFromObject.d.ts +0 -1
  412. package/dist/utils/index.d.ts +0 -9
  413. package/dist/utils/others.d.ts +0 -6
  414. /package/{dist/interfaces → interfaces}/filters.d.ts +0 -0
  415. /package/{dist/interfaces → interfaces}/router.d.ts +0 -0
  416. /package/{dist/interfaces → interfaces}/rowMeta.d.ts +0 -0
  417. /package/{dist/interfaces → interfaces}/screen.d.ts +0 -0
  418. /package/{dist/middlewares → middlewares}/preInvokeMiddleware.d.ts +0 -0
  419. /package/{dist/utils/exportState.d.ts → tests/assetsMock.d.ts} +0 -0
  420. /package/{dist/utils → utils}/breadthFirst.d.ts +0 -0
  421. /package/{dist/utils → utils}/extendPopupWidgetTypes.d.ts +0 -0
  422. /package/{dist/utils → utils}/hierarchy.d.ts +0 -0
  423. /package/{dist/utils → utils}/highlightJson.d.ts +0 -0
  424. /package/{dist/utils → utils}/viewTabs.d.ts +0 -0
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Utilities for urls and browser history
3
3
  */
4
- import { Route } from '../interfaces';
4
+ import { Location } from 'history';
5
+ import { Route } from '../interfaces/router';
5
6
  /**
6
7
  * Appends '/' in front of `absoluteUrl` argument.
7
8
  * If `absoluteUrl` alredy starts with `/` then argument returned without changes.
@@ -33,17 +34,18 @@ export declare function buildUrl(literals: TemplateStringsArray, ...placeholders
33
34
  * - {@link RouteType.router | RouteType.router}, i.e. an url without information about entity that should be handled on server side. Example: `/router/server-entity`
34
35
  * - {@link RouteType.default | RouteType.default}, i.e. an url that leads to default entity of the application. Example: `/`
35
36
  *
36
- * Reverse function is {@link defaultBuildURL}.
37
+ * Reverse function is {@link defaultBuildLocation}.
37
38
  *
39
+ * @param loc Location compatible with `history` module
38
40
  * @category Utils
39
41
  */
40
- export declare function defaultParseURL(url: URL): Route;
42
+ export declare function defaultParseLocation(loc: Location<any>): Route;
41
43
  /**
42
44
  * Transform {@link Route | Cxbox UI route} to string url.
43
45
  *
44
- * Reverse function is {@link defaultParseURL}.
46
+ * Reverse function is {@link defaultParseLocation}.
45
47
  *
46
48
  * @param route Cxbox UI route
47
49
  * @category Utils
48
50
  */
49
- export declare function defaultBuildURL(route: Route): string;
51
+ export declare function defaultBuildLocation(route: Route): string;
@@ -0,0 +1,6 @@
1
+ export * as api from './api';
2
+ export * as redux from './redux';
3
+ export * as strings from './strings';
4
+ export * as history from './history';
5
+ export * as filters from './filters';
6
+ export * as operations from './operations';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Shows antd notification with button
3
+ *
4
+ * @param description Notification message
5
+ * @param buttonText Displayed text on button
6
+ * @param duration How long notification will be shown
7
+ * @param onButtonClick Button callback
8
+ * @param key Used for updating existing notification instead of showing new one.
9
+ * If omitted, following template will be used to generate unique key: `notification_${Date.now}`
10
+ */
11
+ export declare const openButtonWarningNotification: (description: string, buttonText: string, duration?: number, onButtonClick?: () => void, key?: string) => string;
@@ -1,6 +1,6 @@
1
1
  import { Operation, OperationGroup, OperationTypeCrud } from '../interfaces/operation';
2
2
  import { Store } from '../interfaces/store';
3
- import { sendOperation } from '../actions';
3
+ import { ActionPayloadTypes } from '../actions/actions';
4
4
  /**
5
5
  * Extract operations from all operations groups and return them as an array of flat operations
6
6
  *
@@ -18,4 +18,4 @@ export declare function flattenOperations(operations: Array<Operation | Operatio
18
18
  * @param store Store instance
19
19
  * @category Utils
20
20
  */
21
- export declare function matchOperationRole(role: OperationTypeCrud | 'none' | string, payload: ReturnType<typeof sendOperation>['payload'], store: Store): boolean;
21
+ export declare function matchOperationRole(role: OperationTypeCrud | 'none' | string, payload: ActionPayloadTypes['sendOperation'], store: Store): boolean;
@@ -0,0 +1,49 @@
1
+ import { Dispatch, ReducersMapObject, Reducer } from 'redux';
2
+ import { MapDispatchToPropsFactory } from 'react-redux';
3
+ import { CombinedReducersMapObject } from '../interfaces/store';
4
+ import { AnyAction } from '../actions/actions';
5
+ /**
6
+ * Combines a dictionary of reducers for different slices of the store into one
7
+ * root reducer.
8
+ *
9
+ * Effectively works like default redux `combineReducers` but provides access to the store
10
+ * via the third argument to allow reducers read only access to other slices
11
+ * (simplifies callbacks, epics and actions' payloads).
12
+ *
13
+ * @param reducers A dictionary of reducers for different slices of the redux store
14
+ * @category Utils
15
+ */
16
+ export declare function combineReducers<State>(reducers: ReducersMapObject<State, AnyAction> | CombinedReducersMapObject<State, AnyAction>): Reducer<State, AnyAction>;
17
+ /**
18
+ * Shallow compare of two dictionaries by strict comparison.
19
+ * `ignore` argument can be used to forcefully exclude some properties from result set even if their
20
+ * are different.
21
+ *
22
+ * TODO: Check if possible to replace with `shallowEqual` from `react-redux`
23
+ *
24
+ * @param prevProps
25
+ * @param nextProps
26
+ * @param ignore
27
+ */
28
+ export declare function shallowCompare(prevProps: Record<string, any>, nextProps: Record<string, any>, ignore?: string[]): string[];
29
+ /**
30
+ * TODO: JSDoc
31
+ */
32
+ declare class ActionsContext<T> {
33
+ /**
34
+ * TODO
35
+ */
36
+ dispatch: Dispatch<any>;
37
+ /**
38
+ * TODO
39
+ */
40
+ props: T;
41
+ }
42
+ /**
43
+ * TODO: JSDoc
44
+ *
45
+ * @param contextCreator
46
+ * @param actionsCreator
47
+ */
48
+ export declare function createMapDispatchToProps<ContextProps, Actions, OwnProps>(contextCreator: (props: OwnProps) => ContextProps, actionsCreator: (context: ActionsContext<ContextProps>) => Actions): MapDispatchToPropsFactory<Actions, OwnProps>;
49
+ export {};
@@ -13,11 +13,10 @@ export declare function getTemplate(literals: TemplateStringsArray, ...placehold
13
13
  *
14
14
  * @param bcName Business component name
15
15
  * @param includeSelf If result hierarchy should include target bc or only ancestors
16
- * @param state
16
+ * @param store
17
17
  * @category Utils
18
18
  */
19
- export declare function buildBcUrl(bcName: string, includeSelf: boolean, state: Store): string;
20
- export declare function splitBcUrl(bcUrl: string): string[];
19
+ export declare function buildBcUrl(bcName: string, includeSelf?: boolean, store?: Store): string;
21
20
  /**
22
21
  * If there is a template in the field name then returns the formatted string
23
22
  *
@@ -36,8 +36,8 @@ export declare function buildSearchResultTree<T extends TreeNodeBidirectional =
36
36
  * Items with level `1` considered to be root-level items.
37
37
  *
38
38
  * Notice: not very performant and almost always wasted as Cxbox API mostly returns already
39
- * sorted data.ts.
39
+ * sorted data.
40
40
  *
41
- * @param data Unsorted data.ts
41
+ * @param data Unsorted data
42
42
  */
43
43
  export declare function presort(data: TreeNodeBidirectional[]): TreeNodeBidirectional[];