@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,13 @@
1
+ /**
2
+ * Returns an array of tabs for specified level of navigation
3
+ *
4
+ * @param depth 1 for top level navigation; 2, 3, 4 for SecondLevelMenu, ThirdLevelMenu and FourthLevelMenu
5
+ * @category Hooks
6
+ */
7
+ export declare function useViewTabs(depth: number): {
8
+ title: string;
9
+ url: string;
10
+ selected: boolean;
11
+ viewName: string;
12
+ hidden?: boolean;
13
+ }[];
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Get filters from the store for specific widget and field
3
+ *
4
+ * @param widgetName
5
+ * @param fieldKey
6
+ * @category Hooks
7
+ */
8
+ export declare function useWidgetFilters(widgetName: string, fieldKey: string): import("../interfaces/filters").BcFilter[];
9
+ /**
10
+ *
11
+ * @param widgetName
12
+ * @param fieldKey
13
+ * @category Hooks
14
+ */
15
+ export declare function useWidgetHighlightFilter(widgetName: string, fieldKey: string): import("../interfaces/filters").BcFilter;
@@ -0,0 +1,34 @@
1
+ import { Operation, OperationGroup, OperationInclusionDescriptor } from '../interfaces/operation';
2
+ import { WidgetMeta } from '../interfaces/widget';
3
+ /**
4
+ * Returns a memoized array of operations with respect to include/exclude list in widget meta configuration
5
+ *
6
+ * @param operations List of operations
7
+ * @param widgetMeta Widget meta configuration
8
+ * @param bcName BC name in case of hierarchy usage
9
+ * @category Hooks
10
+ */
11
+ export declare function useWidgetOperations(operations: Array<Operation | OperationGroup>, widgetMeta: WidgetMeta, bcName?: string): (Operation | OperationGroup)[];
12
+ /**
13
+ * Returns an array of operations with respect to include/exclude lists.
14
+ *
15
+ * If element is an operation group than its nested operations also checked against inclusion/exclusion lists;
16
+ * noth inclusion/exclusion lists from arguments and from group declarations are checked against.
17
+ *
18
+ * @param operations List of operations
19
+ * @param include List of operations to include
20
+ * @param exclude List of operations to exclude
21
+ * @category Utils
22
+ */
23
+ export declare function getIncludedOperations(operations: Array<Operation | OperationGroup>, include: OperationInclusionDescriptor[], exclude: OperationInclusionDescriptor[]): (Operation | OperationGroup)[];
24
+ /**
25
+ * Checks operation or operation group against inclusion/exclusion lists:
26
+ * - if inclusion list is specified then operation should be present there and shouldn't be present in exlusion list
27
+ * - if inlusion list is not specified then operation should be absent from exclusion list
28
+ *
29
+ * @param item Operation or operation group to check
30
+ * @param include List of operations to include
31
+ * @param exclude List of operations to exclude
32
+ * @category Utils
33
+ */
34
+ export declare function shouldPickOperation(item: Operation | OperationGroup, include: OperationInclusionDescriptor[], exclude: OperationInclusionDescriptor[]): boolean;
@@ -0,0 +1,8 @@
1
+ import { Resource } from 'i18next';
2
+ /**
3
+ * TODO
4
+ *
5
+ * @param lang
6
+ * @param customDictionary
7
+ */
8
+ export declare function initLocale(lang: string, customDictionary: Resource): import("i18next").i18n;
@@ -0,0 +1,19 @@
1
+ import 'rxjs/add/observable/empty';
2
+ import 'rxjs/add/observable/of';
3
+ import 'rxjs/add/observable/fromPromise';
4
+ import 'rxjs/add/observable/concat';
5
+ import 'rxjs/add/observable/combineLatest';
6
+ import 'rxjs/add/observable/race';
7
+ import 'rxjs/add/operator/switchMap';
8
+ import 'rxjs/add/operator/map';
9
+ import 'rxjs/add/operator/mergeMap';
10
+ import 'rxjs/add/operator/takeWhile';
11
+ import 'rxjs/add/operator/catch';
12
+ import 'rxjs/add/operator/concat';
13
+ import 'rxjs/add/operator/filter';
14
+ import 'rxjs/add/operator/combineLatest';
15
+ import 'rxjs/add/operator/takeUntil';
16
+ import 'rxjs/add/operator/take';
17
+ import 'rxjs/add/operator/expand';
18
+ import 'rxjs/add/operator/reduce';
19
+ import 'rxjs/observable/merge';
@@ -0,0 +1,6 @@
1
+ import 'core-js/es/string';
2
+ import 'core-js/es/number';
3
+ import 'core-js/es/array';
4
+ import 'core-js/es/object';
5
+ import 'core-js/es/promise';
6
+ import 'core-js/es/set';
package/index.d.ts ADDED
@@ -0,0 +1,135 @@
1
+ /**
2
+ * Runtime exports of Cxbox UI.
3
+ *
4
+ * Can be imported as:
5
+ *
6
+ * `import {entityName} from '@cxbox-ui/core'`
7
+ *
8
+ * @packageDocumentation
9
+ * @module Global Exports
10
+ */
11
+ import './imports/shim';
12
+ import './imports/rxjs';
13
+ import { connect } from 'react-redux';
14
+ import { useTranslation } from 'react-i18next';
15
+ import Provider, { store, getStoreInstance, getParseLocationInstance, getBuildLocationInstance, getLocaleProviderInstance } from './Provider';
16
+ import { $do, types, ActionPayloadTypes, AnyAction, needSaveAction } from './actions/actions';
17
+ import { Action, uActionTypesMap, uActionsMap, AnyOfMap, createActionCreators, createActionTypes } from './actions/actions-utils';
18
+ import { historyObj, changeLocation } from './reducers/router';
19
+ import { axiosForApi, axiosGet, axiosPost, axiosPut, axiosDelete } from './utils/api';
20
+ import { buildBcUrl } from './utils/strings';
21
+ import { combineReducers } from './utils/redux';
22
+ import { buildUrl, parseBcCursors } from './utils/history';
23
+ import { getFilters, getSorters, parseFilters, parseSorters } from './utils/filters';
24
+ import { matchOperationRole, flattenOperations } from './utils/operations';
25
+ import { isViewNavigationItem, isViewNavigationCategory, isViewNavigationGroup } from './interfaces/navigation';
26
+ import { isWidgetFieldBlock, TableLikeWidgetTypes } from './interfaces/widget';
27
+ import { autosaveRoutine } from './utils/autosave';
28
+ /**
29
+ * @category Utils
30
+ */
31
+ declare const parseLocation: typeof getParseLocationInstance;
32
+ /**
33
+ * @category Utils
34
+ */
35
+ declare const buildLocation: typeof getBuildLocationInstance;
36
+ /**
37
+ * This is our public API.
38
+ *
39
+ * Any code that should be available to a client application should be exported from here.
40
+ * Then it becomes available for import from client application:
41
+ * import {matchOperationRole} from `@cxbox-ui/core`
42
+ *
43
+ * The only exception is typings (they are imported directly).
44
+ *
45
+ * Keep in mind that every item here MUST BE backward-compatible until the next major release,
46
+ * so be reasonable and responsible when introducing changes or new items.
47
+ *
48
+ * Every block has `Stable` and `Unstable` sections. Items in `Stable` sections have shown themself pretty
49
+ * robust and not likely be subjects of revisions. Items in `Unstable` sections require your attention in the
50
+ * next major release.
51
+ */
52
+ /**
53
+ * Cxbox UI `instance`
54
+ *
55
+ * TODO: 2.0.0 should do better job at instantiating utilities (class?)
56
+ */
57
+ export { Provider, connect, store, getStoreInstance, combineReducers };
58
+ /**
59
+ * Components
60
+ *
61
+ * Make sure every component has backward-compatible props, i.e. no new mandatory props or changing types
62
+ */
63
+ export * from './components';
64
+ /**
65
+ * Hooks
66
+ */
67
+ export * from './hooks';
68
+ /**
69
+ * API endpoints
70
+ */
71
+ export * from './api';
72
+ /**
73
+ * Router
74
+ *
75
+ * Router API is not looking good at the moment
76
+ */
77
+ export { historyObj, changeLocation, parseLocation, buildLocation, buildUrl, parseBcCursors };
78
+ /**
79
+ * API helpers
80
+ */
81
+ export { axiosGet, axiosPost, axiosPut, axiosDelete, axiosForApi };
82
+ /**
83
+ * Helpers
84
+ */
85
+ export { matchOperationRole, getFilters, getSorters, parseFilters, parseSorters, TableLikeWidgetTypes, buildBcUrl, flattenOperations };
86
+ /**
87
+ * Action helpers
88
+ *
89
+ * TODO: Check how much we can remove in 2.0.0 with introduction of @cxbox-ui/cra-template-typescript
90
+ */
91
+ export { types as coreActions, $do, needSaveAction, ActionPayloadTypes, AnyAction, Action, uActionTypesMap, uActionsMap, AnyOfMap, createActionCreators, createActionTypes };
92
+ /**
93
+ * i18n helpers
94
+ */
95
+ export { useTranslation, getLocaleProviderInstance };
96
+ /**
97
+ * Type guards
98
+ */
99
+ export { isViewNavigationItem, isViewNavigationGroup, isWidgetFieldBlock,
100
+ /**
101
+ * @deprecated
102
+ */
103
+ isViewNavigationCategory };
104
+ /**
105
+ * Epics implementations
106
+ */
107
+ export { processPostInvokeImpl } from './epics/screen/processPostInvoke';
108
+ export { apiErrorImpl } from './epics/screen/apiError';
109
+ export { httpError401Impl } from './epics/screen/httpError401';
110
+ export { httpError409Impl } from './epics/screen/httpError409';
111
+ export { httpError418Impl } from './epics/screen/httpError418';
112
+ export { httpError500Impl } from './epics/screen/httpError500';
113
+ export { httpErrorDefaultImpl } from './epics/screen/httpErrorDefault';
114
+ export { fileUploadConfirmImpl } from './epics/view/fileUploadConfirm';
115
+ export { showFileUploadPopupImpl } from './epics/view/showFileUploadPopup';
116
+ export { sendOperationEpicImpl } from './epics/view/sendOperation';
117
+ export { showAssocPopupEpicImpl } from './epics/view/showAssocPopup';
118
+ export { sendOperationAssociateImpl } from './epics/view/sendOperationAssociate';
119
+ export { removeMultivalueTagImpl } from './epics/data/removeMultivalueTag';
120
+ export { bcCancelCreateDataEpicImpl } from './epics/data/bcCancelCreateDataEpic';
121
+ export { bcNewDataEpicImpl } from './epics/data/bcNewDataEpic';
122
+ export { bcFetchRowMetaRequestImpl } from './epics/data/bcFetchRowMetaRequest';
123
+ export { bcSelectDepthRecordImpl } from './epics/data/bcSelectDepthRecord';
124
+ export { selectViewImpl } from './epics/data/selectView';
125
+ export { bcSaveDataImpl } from './epics/data/bcSaveData';
126
+ export { drillDownImpl } from './epics/router/drilldown';
127
+ export { selectScreenImpl } from './epics/router/selectScreen';
128
+ export { selectViewFailImpl } from './epics/router/selectViewFail';
129
+ export { loginDoneImpl } from './epics/router/loginDone';
130
+ export { handleRouterImpl } from './epics/router/handleRouter';
131
+ export { userDrillDownImpl } from './epics/router/userDrillDown';
132
+ /**
133
+ * Autosave middleware utils
134
+ */
135
+ export { autosaveRoutine };
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Interfaces for Business Component
3
+ */
4
+ import { FilterGroup } from './filters';
5
+ /**
6
+ * Meta data for Business Component
7
+ */
8
+ export interface BcMeta {
9
+ /**
10
+ * Name of Business Component
11
+ */
12
+ name: string;
13
+ /**
14
+ * Name of parent Business Component
15
+ */
16
+ parentName: string | null;
17
+ /**
18
+ * TODO: desc, example
19
+ */
20
+ url: string;
21
+ /**
22
+ * Currently active record
23
+ */
24
+ cursor: string | null;
25
+ /**
26
+ * String representation of default bc sorters
27
+ *
28
+ * "_sort.{order}.{direction}={fieldKey}&_sort.{order}.{direction}"
29
+ *
30
+ * @param fieldKey Sort by field
31
+ * @param order Priority of this specific sorter
32
+ * @param direction "asc" or "desc"
33
+ * i.e. "_sort.0.asc=firstName"
34
+ */
35
+ defaultSort?: string;
36
+ /**
37
+ * Predefined filters
38
+ */
39
+ filterGroups?: FilterGroup[];
40
+ /**
41
+ * String representation of default bc filters
42
+ *
43
+ * "{fieldKey}.contains={someValue}"
44
+ *
45
+ * @param fieldKey Filtering field
46
+ * @param someValue Filter value
47
+ * i.e. "someField1.contains=someValue&someField2.equalsOneOf=%5B%22someValue1%22%2C%22someValue2%22%5D"
48
+ */
49
+ defaultFilter?: string;
50
+ }
51
+ export interface BcMetaState extends BcMeta {
52
+ /**
53
+ * Data fetch for this business component is in progress
54
+ */
55
+ loading?: boolean;
56
+ /**
57
+ * Number of the page to fetch
58
+ */
59
+ page?: number;
60
+ /**
61
+ * Page limit to fetch
62
+ */
63
+ limit?: number;
64
+ /**
65
+ * There is an addional pages of data to fetch
66
+ */
67
+ hasNext?: boolean;
68
+ /**
69
+ * Stores a selected cursor and loading state per depth level.
70
+ *
71
+ * Used by hierarchy widgets builded around single business component:
72
+ * controls which record is expanded and which children should be fetched.
73
+ */
74
+ depthBc?: Record<number, {
75
+ loading?: boolean;
76
+ cursor?: string;
77
+ }>;
78
+ }
@@ -0,0 +1,55 @@
1
+ /**
2
+ * This module includes types to support overriding redux-observable Epics that we use in Cxbox UI by
3
+ * custom implementations from client application.
4
+ */
5
+ import { Epic } from 'redux-observable';
6
+ import coreEpics from '../epics';
7
+ /**
8
+ * Very loose definition of epic; comes from the situation that client applications
9
+ * does not inherit generic Epic from 'redux-observable` but define their own.
10
+ * TODO: We can probably type it better for 2.0.0 with UI scaffolding.
11
+ */
12
+ export declare type AnyEpic = ($action: any, store: any) => any;
13
+ /**
14
+ * A union of core epic slices: usually consistent with root reducer slices
15
+ */
16
+ export declare type RootEpicSlices = keyof typeof coreEpics;
17
+ /**
18
+ * All epics for particular slice
19
+ */
20
+ export declare type SliceEpics<Slice> = Slice extends RootEpicSlices ? typeof coreEpics[Slice] : Record<string, NewEpicDescriptor>;
21
+ /**
22
+ * Names for all epics in a specified slice
23
+ */
24
+ export declare type SliceEpicsNames<Slice> = keyof SliceEpics<Slice>;
25
+ /**
26
+ * Client configuration to override or disable specific core epic
27
+ */
28
+ export declare type CustomEpicDescriptor = AnyEpic | null;
29
+ /**
30
+ * Describes epics that exists only in client application and do not have a matching core epic
31
+ */
32
+ export declare type NewEpicDescriptor = {
33
+ [epicName: string]: CustomEpicDescriptor;
34
+ };
35
+ /**
36
+ * Client configuration to specific root epic slice
37
+ */
38
+ export declare type CustomEpicSlice<Slice extends RootEpicSlices = any> = Partial<Record<SliceEpicsNames<Slice>, CustomEpicDescriptor>> | NewEpicDescriptor;
39
+ /**
40
+ * A configuration for epics overriding and customization by client application.
41
+ */
42
+ export declare type CustomEpics = {
43
+ [key in RootEpicSlices]?: CustomEpicSlice<key>;
44
+ } & {
45
+ [newSlice: string]: CustomEpicSlice;
46
+ };
47
+ /**
48
+ * @deprecated TODO: For backward compatibility; remove in 2.0.0
49
+ */
50
+ export declare type LegacyCustomEpics = Epic<any, any>;
51
+ /**
52
+ * @deprecated TODO: For backward compatibility; remove in 2.0.0
53
+ */
54
+ export declare function isLegacyCustomEpics(customEpics: CustomEpics | LegacyCustomEpics): customEpics is LegacyCustomEpics;
55
+ export default CustomEpics;
@@ -0,0 +1,35 @@
1
+ import { Middleware } from 'redux';
2
+ import { middlewares } from '../middlewares';
3
+ /**
4
+ * Type of core middlewares
5
+ */
6
+ export declare type CoreMiddlewares = typeof middlewares;
7
+ /**
8
+ * Custom middleware interface
9
+ */
10
+ export interface CustomMiddleware {
11
+ /**
12
+ * Implementation of custom middleware
13
+ */
14
+ implementation: Middleware;
15
+ /**
16
+ * Priority of custom middleware
17
+ */
18
+ priority: 'BEFORE' | 'AFTER';
19
+ }
20
+ /**
21
+ * List the names of all core middlewares
22
+ */
23
+ export declare type CoreMiddlewareType = keyof CoreMiddlewares;
24
+ /**
25
+ * Descriptor of custom middleware not presented in core middlewares
26
+ */
27
+ export declare type NewMiddlewareDescriptor<T = Record<string, unknown>> = Record<Exclude<keyof T, keyof CoreMiddlewares>, CustomMiddleware>;
28
+ /**
29
+ * Form a dictionary of override descriptors for those middleware
30
+ */
31
+ export declare type CoreMiddlewareOverrideDescriptors = Record<CoreMiddlewareType, Middleware | null>;
32
+ /**
33
+ * Type of custom middlewares
34
+ */
35
+ export declare type CustomMiddlewares<T = Record<string, unknown>> = Partial<CoreMiddlewareOverrideDescriptors> | NewMiddlewareDescriptor<T>;
@@ -0,0 +1,48 @@
1
+ import { OperationPostInvokeAny, OperationPreInvoke } from './operation';
2
+ import { DataValue, DataItem } from '@cxbox-ui/schema';
3
+ export { DataValue, DataItem, MultivalueSingleValue, MultivalueSingleValueOptions, RecordSnapshotState } from '@cxbox-ui/schema';
4
+ /**
5
+ * API's response on Business Component's data request
6
+ */
7
+ export interface BcDataResponse {
8
+ data: DataItem[];
9
+ hasNext: boolean;
10
+ }
11
+ /**
12
+ * Edited changes
13
+ */
14
+ export interface PendingDataItem {
15
+ [fieldName: string]: DataValue;
16
+ }
17
+ /**
18
+ * State of `data` in global store
19
+ */
20
+ export interface DataState {
21
+ [bcName: string]: DataItem[];
22
+ }
23
+ export interface DepthDataState {
24
+ [depth: number]: {
25
+ [bcName: string]: DataItem[];
26
+ };
27
+ }
28
+ /**
29
+ * Result of saving record, which back-end returns
30
+ */
31
+ export interface DataItemResponse {
32
+ data: {
33
+ /**
34
+ * Saved record
35
+ */
36
+ record: DataItem;
37
+ /**
38
+ * Actions which have to do after saving
39
+ */
40
+ postActions?: OperationPostInvokeAny[];
41
+ preInvoke?: OperationPreInvoke;
42
+ };
43
+ }
44
+ /**
45
+ * `x` is name of field, for which the value will be set up.
46
+ * A value of `x` is name of field, from which the value will be gotten.
47
+ */
48
+ export declare type PickMap = Record<string, string>;
@@ -0,0 +1,32 @@
1
+ import { DataValue } from './data';
2
+ export declare enum FilterType {
3
+ /**
4
+ * Transforms into combination of 'greaterOrEqualThan' and 'lessOrEqualThan' (See src/utils/filters.ts)
5
+ */
6
+ range = "range",
7
+ equals = "equals",
8
+ greaterThan = "greaterThan",
9
+ lessThan = "lessThan",
10
+ greaterOrEqualThan = "greaterOrEqualThan",
11
+ lessOrEqualThan = "lessOrEqualThan",
12
+ contains = "contains",
13
+ specified = "specified",
14
+ specifiedBooleanSql = "specifiedBooleanSql",
15
+ equalsOneOf = "equalsOneOf",
16
+ containsOneOf = "containsOneOf"
17
+ }
18
+ export interface BcFilter {
19
+ type: FilterType;
20
+ fieldName: string;
21
+ value: DataValue | DataValue[];
22
+ viewName?: string;
23
+ widgetName?: string;
24
+ }
25
+ export interface BcSorter {
26
+ fieldName: string;
27
+ direction: 'asc' | 'desc';
28
+ }
29
+ export interface FilterGroup {
30
+ name: string;
31
+ filters: string;
32
+ }
@@ -0,0 +1,2 @@
1
+ !function(e,n){for(var r in n)e[r]=n[r]}(exports,function(e){var n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=n,r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)r.d(t,o,function(n){return e[n]}.bind(null,o));return t},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="",r(r.s=35)}({35:function(e,n,r){"use strict";var t;r.r(n),r.d(n,"FilterType",(function(){return t})),function(e){e.range="range",e.equals="equals",e.greaterThan="greaterThan",e.lessThan="lessThan",e.greaterOrEqualThan="greaterOrEqualThan",e.lessOrEqualThan="lessOrEqualThan",e.contains="contains",e.specified="specified",e.specifiedBooleanSql="specifiedBooleanSql",e.equalsOneOf="equalsOneOf",e.containsOneOf="containsOneOf"}(t||(t={}))}}));
2
+ //# sourceMappingURL=filters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/interfaces/filters.ts"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","FilterType"],"mappings":"6DACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAH,EAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzG/B,EAAoBkC,EAAI,GAIjBlC,EAAoBA,EAAoBmC,EAAI,I,kCChFrD,IAAYC,EAAZ,2DAAYA,GAIR,gBACA,kBACA,4BACA,sBACA,0CACA,oCACA,sBACA,wBACA,4CACA,4BACA,gCAdJ,CAAYA,MAAU","file":"interfaces/filters.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 35);\n","import { DataValue } from './data'\n\nexport enum FilterType {\n /**\n * Transforms into combination of 'greaterOrEqualThan' and 'lessOrEqualThan' (See src/utils/filters.ts)\n */\n range = 'range',\n equals = 'equals',\n greaterThan = 'greaterThan',\n lessThan = 'lessThan',\n greaterOrEqualThan = 'greaterOrEqualThan',\n lessOrEqualThan = 'lessOrEqualThan',\n contains = 'contains',\n specified = 'specified',\n specifiedBooleanSql = 'specifiedBooleanSql',\n equalsOneOf = 'equalsOneOf',\n containsOneOf = 'containsOneOf'\n}\n\nexport interface BcFilter {\n type: FilterType\n fieldName: string\n value: DataValue | DataValue[]\n viewName?: string\n widgetName?: string\n}\n\nexport interface BcSorter {\n fieldName: string\n direction: 'asc' | 'desc'\n}\n\nexport interface FilterGroup {\n name: string\n filters: string\n}\n"],"sourceRoot":""}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Types exports of Cxbox UI.
3
+ *
4
+ * Can be imported as:
5
+ *
6
+ * `import {typeName} from '@cxbox-ui/core/interfaces/moduleName'`
7
+ *
8
+ * @packageDocumentation
9
+ * @module Types
10
+ */
11
+ export * as bc from './bc';
12
+ export * as data from './data';
13
+ export * as objectMap from './objectMap';
14
+ export * as router from './router';
15
+ export * as screen from './screen';
16
+ export * as customMiddlewares from './customMiddlewares';
17
+ export * as session from './session';
18
+ export * as store from './store';
19
+ export * as view from './view';
20
+ export * as widget from './widget';
21
+ export * as operation from './operation';
22
+ export * as rowMeta from './rowMeta';
@@ -0,0 +1,48 @@
1
+ import { ViewNavigationGroup, MenuItem, ViewNavigationCategory, ViewNavigationItem } from '@cxbox-ui/schema';
2
+ export { ViewNavigationGroup, MenuItem, ViewNavigationCategory, ViewNavigationItem } from '@cxbox-ui/schema';
3
+ /**
4
+ * Returns MenuItem if it is ViewNavigationItem
5
+ *
6
+ * @param item to be identified as view
7
+ * @category Type Guards
8
+ */
9
+ export declare function isViewNavigationItem(item: MenuItem): item is ViewNavigationItem;
10
+ /**
11
+ * @param item
12
+ * @deprecated ViewNavigationCategory will be deleted in 2.0.0
13
+ * @category Type Guards
14
+ */
15
+ export declare function isViewNavigationCategory(item: any): item is ViewNavigationCategory;
16
+ /**
17
+ * Returns MenuItem if it is ViewNavigationGroup
18
+ *
19
+ * @param item to be identified as group
20
+ * @category Type Guards
21
+ */
22
+ export declare function isViewNavigationGroup(item: MenuItem): item is ViewNavigationGroup;
23
+ /**
24
+ * 1 - for static, top level navigation
25
+ * 2 - `SecondLevelMenu` tab widgets
26
+ * 2 - `ThirdLevelMenu` tab widgets
27
+ * 2 - `FourthLevelMenu` tab widgets
28
+ */
29
+ export declare type NavigationLevel = 1 | 2 | 3 | 4;
30
+ /**
31
+ * Model for displayed tab item
32
+ */
33
+ export interface NavigationTab {
34
+ /**
35
+ * View name where navigation tab will redirect the user
36
+ */
37
+ viewName: string;
38
+ /**
39
+ * Displayed title: either view name or a group name
40
+ */
41
+ title?: string;
42
+ /**
43
+ * When true, menu item will not be visible
44
+ *
45
+ * It's still will be accessible through direct link though
46
+ */
47
+ hidden?: boolean;
48
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * A dictionary for a values of specified type
3
+ *
4
+ * @deprecated TODO: Remove in 2.0.0 in favor of native `Record` type
5
+ *
6
+ * @template T Value type
7
+ */
8
+ export interface ObjectMap<T> {
9
+ [key: string]: T | undefined;
10
+ }
11
+ /**
12
+ * Basic type for Cxbox API responses
13
+ *
14
+ * TODO: Move this to a an appropriate module
15
+ */
16
+ export interface CxboxResponse {
17
+ /**
18
+ * If any response returs with this field, browser should redirect on this address
19
+ */
20
+ redirectUrl?: string;
21
+ }
22
+ /**
23
+ * Types of notification messages
24
+ */
25
+ export declare enum AppNotificationType {
26
+ success = "success",
27
+ info = "info",
28
+ warning = "warning",
29
+ error = "error"
30
+ }
31
+ export interface SystemNotification {
32
+ id: number;
33
+ type: AppNotificationType;
34
+ message: string;
35
+ }
@@ -0,0 +1,2 @@
1
+ !function(e,r){for(var n in r)e[n]=r[n]}(exports,function(e){var r={};function n(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)n.d(t,o,function(r){return e[r]}.bind(null,o));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=842)}({842:function(e,r,n){"use strict";var t;n.r(r),n.d(r,"AppNotificationType",(function(){return t})),function(e){e.success="success",e.info="info",e.warning="warning",e.error="error"}(t||(t={}))}}));
2
+ //# sourceMappingURL=objectMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/interfaces/objectMap.ts"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","AppNotificationType"],"mappings":"6DACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAH,EAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzG/B,EAAoBkC,EAAI,GAIjBlC,EAAoBA,EAAoBmC,EAAI,K,mCCxDrD,IAAYC,EAHZ,2DAGA,SAAYA,GACR,oBACA,cACA,oBACA,gBAJJ,CAAYA,MAAmB","file":"interfaces/objectMap.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 842);\n","/**\n * A dictionary for a values of specified type\n *\n * @deprecated TODO: Remove in 2.0.0 in favor of native `Record` type\n *\n * @template T Value type\n */\nexport interface ObjectMap<T> {\n [key: string]: T | undefined\n}\n\n/**\n * Basic type for Cxbox API responses\n *\n * TODO: Move this to a an appropriate module\n */\nexport interface CxboxResponse {\n /**\n * If any response returs with this field, browser should redirect on this address\n */\n redirectUrl?: string\n}\n\n/**\n * Types of notification messages\n */\nexport enum AppNotificationType {\n success = 'success',\n info = 'info',\n warning = 'warning',\n error = 'error'\n}\n\nexport interface SystemNotification {\n id: number\n type: AppNotificationType\n message: string\n}\n"],"sourceRoot":""}