@cxbox-ui/core 1.37.2 → 1.37.3-alpha.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.
- package/dist/actions/index.d.ts +1068 -0
- package/dist/api/ObservableApi.d.ts +53 -0
- package/dist/api/ObservableApiWrapper.d.ts +11 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/cxbox-ui-core.cjs.development.js +3643 -0
- package/dist/cxbox-ui-core.cjs.production.min.js +2 -0
- package/dist/cxbox-ui-core.esm.js +3607 -0
- package/dist/cxbox-ui-core.modern.development.js +3540 -0
- package/dist/cxbox-ui-core.modern.js +3540 -0
- package/dist/cxbox-ui-core.modern.production.min.js +2 -0
- package/dist/epics/data/bcCancelCreateDataEpic.d.ts +9 -0
- package/dist/epics/data/bcDeleteDataEpic.d.ts +2 -0
- package/dist/epics/data/bcFetchDataEpic.d.ts +15 -0
- package/dist/epics/data/bcFetchRowMetaRequestEpic.d.ts +17 -0
- package/dist/epics/data/bcLoadMoreEpic.d.ts +2 -0
- package/dist/epics/data/bcNewDataEpic.d.ts +14 -0
- package/dist/epics/data/bcSaveDataEpic.d.ts +24 -0
- package/dist/epics/data/bcSelectDepthRecordEpic.d.ts +2 -0
- package/dist/epics/data/bcSelectRecordEpic.d.ts +2 -0
- package/dist/epics/data/changeAssociationEpic.d.ts +2 -0
- package/dist/epics/data/changeAssociationFullEpic.d.ts +5 -0
- package/dist/epics/data/changeAssociationSameBcEpic.d.ts +5 -0
- package/dist/epics/data/changeChildrenAssociationsEpic.d.ts +2 -0
- package/dist/epics/data/changeChildrenAssociationsSameBcEpic.d.ts +2 -0
- package/dist/epics/data/changeDescendantsAssociationsFullEpic.d.ts +5 -0
- package/dist/epics/data/index.d.ts +20 -0
- package/dist/epics/data/inlinePickListFetchDataEpic.d.ts +2 -0
- package/dist/epics/data/removeMultivalueTagEpic.d.ts +17 -0
- package/{epics/data/saveAssociationsActive.d.ts → dist/epics/data/saveAssociationsActiveEpic.d.ts} +2 -2
- package/dist/epics/data/saveAssociationsPassiveEpic.d.ts +7 -0
- package/dist/epics/data/selectViewEpic.d.ts +11 -0
- package/dist/epics/index.d.ts +6 -0
- package/{epics/router/changeLocation.d.ts → dist/epics/router/changeLocationEpic.d.ts} +2 -3
- package/dist/epics/router/drilldownEpic.d.ts +2 -0
- package/dist/epics/router/handleRouterEpic.d.ts +2 -0
- package/dist/epics/router/index.d.ts +10 -0
- package/dist/epics/router/loginDoneEpic.d.ts +9 -0
- package/dist/epics/router/selectScreenEpic.d.ts +7 -0
- package/dist/epics/router/selectScreenFailEpic.d.ts +7 -0
- package/dist/epics/router/selectViewEpic.d.ts +7 -0
- package/dist/epics/router/selectViewFailEpic.d.ts +6 -0
- package/dist/epics/router/userDrillDownEpic.d.ts +6 -0
- package/dist/epics/router/userDrilldownChangeCursorsEpic.d.ts +2 -0
- package/dist/epics/screen/apiErrorEpic.d.ts +2 -0
- package/dist/epics/screen/downloadFileByUrlEpic.d.ts +2 -0
- package/dist/epics/screen/downloadFileEpic.d.ts +2 -0
- package/dist/epics/screen/httpError401Epic.d.ts +2 -0
- package/dist/epics/screen/httpError409Epic.d.ts +2 -0
- package/dist/epics/screen/httpError418Epic.d.ts +2 -0
- package/dist/epics/screen/httpError500Epic.d.ts +2 -0
- package/dist/epics/screen/httpErrorDefaultEpic.d.ts +2 -0
- package/dist/epics/screen/index.d.ts +10 -0
- package/dist/epics/screen/processPostInvokeConfirmEpic.d.ts +2 -0
- package/dist/epics/screen/processPostInvokeEpic.d.ts +2 -0
- package/dist/epics/session/index.d.ts +5 -0
- package/dist/epics/session/loginByAnotherRoleEpic.d.ts +5 -0
- package/dist/epics/session/loginDoneEpic.d.ts +6 -0
- package/dist/epics/session/refreshMetaAndReloadPageEpic.d.ts +2 -0
- package/dist/epics/session/refreshMetaEpic.d.ts +5 -0
- package/dist/epics/session/switchRoleEpic.d.ts +5 -0
- package/dist/epics/utils/postOperationRoutine.d.ts +13 -0
- package/dist/epics/view/clearPendingDataChangesAfterCursorChangeEpic.d.ts +7 -0
- package/dist/epics/view/fileUploadConfirmEpic.d.ts +11 -0
- package/dist/epics/view/getRowMetaByForceActiveEpic.d.ts +5 -0
- package/dist/epics/view/index.d.ts +9 -0
- package/dist/epics/view/selectTableCellInitEpic.d.ts +2 -0
- package/dist/epics/view/sendOperationAssociateEpic.d.ts +5 -0
- package/dist/epics/view/sendOperationEpic.d.ts +10 -0
- package/dist/epics/view/showAllTableRecordsInitEpic.d.ts +2 -0
- package/dist/epics/view/showAssocPopupEpic.d.ts +2 -0
- package/dist/epics/view/showFileUploadPopupEpic.d.ts +5 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +6 -0
- package/{interfaces → dist/interfaces}/bc.d.ts +7 -6
- package/dist/interfaces/customEpics.d.ts +15 -0
- package/{interfaces → dist/interfaces}/customMiddlewares.d.ts +5 -5
- package/{interfaces → dist/interfaces}/data.d.ts +4 -4
- package/dist/interfaces/index.d.ts +27 -0
- package/{interfaces → dist/interfaces}/navigation.d.ts +2 -2
- package/{interfaces → dist/interfaces}/objectMap.d.ts +3 -2
- package/{interfaces → dist/interfaces}/operation.d.ts +7 -6
- package/{interfaces → dist/interfaces}/session.d.ts +21 -0
- package/dist/interfaces/store.d.ts +14 -0
- package/{interfaces → dist/interfaces}/tree.d.ts +4 -4
- package/{interfaces → dist/interfaces}/view.d.ts +5 -5
- package/{interfaces → dist/interfaces}/widget.d.ts +12 -11
- package/dist/middlewares/autosaveMiddleware.d.ts +2 -0
- package/dist/middlewares/index.d.ts +6 -0
- package/dist/middlewares/popupMiddleware.d.ts +2 -0
- package/dist/middlewares/preInvokeMiddleware.d.ts +5 -0
- package/{middlewares → dist/middlewares}/requiredFieldsMiddleware.d.ts +6 -11
- package/dist/reducers/ReducerBuilderManager.d.ts +19 -0
- package/dist/reducers/data.d.ts +4 -0
- package/dist/reducers/depthData.d.ts +4 -0
- package/dist/reducers/index.d.ts +6 -0
- package/dist/reducers/router.d.ts +9 -0
- package/dist/reducers/screen.d.ts +10 -0
- package/dist/reducers/session.d.ts +10 -0
- package/dist/reducers/view.d.ts +10 -0
- package/dist/utils/api.d.ts +25 -0
- package/dist/utils/apiError.d.ts +19 -0
- package/{utils → dist/utils}/autosave.d.ts +13 -2
- package/{utils → dist/utils}/bc.d.ts +3 -3
- package/dist/utils/cancelRequestEpic.d.ts +17 -0
- package/dist/utils/combineMiddlewares.d.ts +3 -0
- package/dist/utils/deleteUndefinedFromObject.d.ts +1 -0
- package/{utils → dist/utils}/filters.d.ts +3 -4
- package/{utils → dist/utils}/history.d.ts +5 -7
- package/dist/utils/index.d.ts +10 -0
- package/{utils → dist/utils}/operations.d.ts +2 -2
- package/dist/utils/others.d.ts +6 -0
- package/{utils → dist/utils}/strings.d.ts +3 -2
- package/{utils → dist/utils}/tree.d.ts +2 -2
- package/package.json +66 -105
- package/CONTRIBUTING.md +0 -124
- package/Provider.d.ts +0 -63
- package/actions/actions-utils.d.ts +0 -48
- package/actions/actions.d.ts +0 -1144
- package/actions/index.d.ts +0 -2
- package/api/api.d.ts +0 -148
- package/api/index.d.ts +0 -1
- package/assets/i18n/__tests__/getTextAssets.d.ts +0 -1
- package/assets/i18n/index.d.ts +0 -25
- package/components/ColumnTitle/ColumnFilter.d.ts +0 -47
- package/components/ColumnTitle/ColumnSort.d.ts +0 -26
- package/components/ColumnTitle/ColumnTitle.d.ts +0 -31
- package/components/ColumnTitle/__tests__/ColumnFilter.test.d.ts +0 -1
- package/components/ColumnTitle/__tests__/ColumnSort.test.d.ts +0 -1
- package/components/ColumnTitle/__tests__/ColumnTitle.test.d.ts +0 -1
- package/components/DebugPanel/DebugPanel.d.ts +0 -7
- package/components/DebugPanel/__tests__/DebugPanel.test.d.ts +0 -1
- package/components/DebugPanel/components/FormattedJSON.d.ts +0 -6
- package/components/DebugPanel/components/InfoLabel.d.ts +0 -7
- package/components/DebugPanel/components/ViewInfoLabel.d.ts +0 -3
- package/components/DebugPanel/components/WidgetInfoLabel.d.ts +0 -5
- package/components/DebugPanel/components/__tests__/FormattedJSON.test.d.ts +0 -1
- package/components/DebugPanel/components/__tests__/InfoLabel.test.d.ts +0 -1
- package/components/DebugPanel/components/__tests__/ViewInfoLabel.test.d.ts +0 -1
- package/components/DebugPanel/components/__tests__/WidgetInfoLabel.test.d.ts +0 -1
- package/components/DevToolsPanel/DevToolsPanel.d.ts +0 -10
- package/components/DevToolsPanel/DevToolsPanel.test.d.ts +0 -1
- package/components/DevToolsPanel/components/DebugModeButton.d.ts +0 -9
- package/components/DevToolsPanel/components/RefreshMetaButton.d.ts +0 -9
- package/components/DevToolsPanel/components/__tests__/DebugModeButton.test.d.ts +0 -1
- package/components/DevToolsPanel/components/__tests__/RefreshMetaButton.test.d.ts +0 -1
- package/components/Field/Field.d.ts +0 -72
- package/components/Field/Field.test.d.ts +0 -1
- package/components/FileUpload/FileUpload.d.ts +0 -32
- package/components/FileUploadPopup/FileUploadPopup.d.ts +0 -10
- package/components/FilterPopup/FilterPopup.d.ts +0 -26
- package/components/FilterPopup/FilterPopup.test.d.ts +0 -1
- package/components/FullHierarchyTable/FullHierarchyTable.d.ts +0 -52
- package/components/FullHierarchyTable/FullHierarchyTable.test.d.ts +0 -1
- package/components/FullHierarchyTable/utils/hierarchySearchCache.d.ts +0 -37
- package/components/FullHierarchyTable/utils/hierarchySearchCache.test.d.ts +0 -1
- package/components/FullHierarchyTable/utils/useExpandedKeys.d.ts +0 -19
- package/components/FullHierarchyTable/utils/useHierarchyCache.d.ts +0 -12
- package/components/HierarchyTable/HierarchyTable.d.ts +0 -48
- package/components/HierarchyTable/HierarchyTable.test.d.ts +0 -1
- package/components/InlinePickList/InlinePickList.d.ts +0 -23
- package/components/ModalInvoke/ModalInvoke.d.ts +0 -18
- package/components/ModalInvoke/ModalInvoke.test.d.ts +0 -1
- package/components/Multivalue/MultiValueListRecord.d.ts +0 -15
- package/components/Multivalue/MultivalueField.d.ts +0 -31
- package/components/Multivalue/MultivalueField.test.d.ts +0 -1
- package/components/PickListField/PickListField.d.ts +0 -25
- package/components/RowOperations/RowOperationsButton.d.ts +0 -42
- package/components/RowOperations/RowOperationsMenu.d.ts +0 -29
- package/components/RowOperations/__tests__/RowOperationsButton.test.d.ts +0 -1
- package/components/RowOperations/__tests__/RowOperationsMenu.test.d.ts +0 -1
- package/components/SameBcHierarchyTable/SameBcHierarchyTable.d.ts +0 -41
- package/components/TemplatedTitle/TemplatedTitle.d.ts +0 -20
- package/components/View/View.d.ts +0 -27
- package/components/View/__tests__/View.test.d.ts +0 -1
- package/components/Widget/Widget.d.ts +0 -29
- package/components/Widget/Widget.test.d.ts +0 -1
- package/components/WidgetErrorBoundary/WidgetErrorBoundary.d.ts +0 -20
- package/components/WidgetErrorBoundary/WidgetErrorBoundary.test.d.ts +0 -1
- package/components/WidgetErrorBoundary/components/RefreshButton.d.ts +0 -4
- package/components/WidgetErrorBoundary/components/RefreshButton.test.d.ts +0 -1
- package/components/index.d.ts +0 -44
- package/components/ui/ActionLink/ActionLink.d.ts +0 -11
- package/components/ui/CheckboxFilter/CheckboxFilter.d.ts +0 -21
- package/components/ui/CheckboxFilter/CheckboxFilter.test.d.ts +0 -1
- package/components/ui/CheckboxPicker/CheckboxPicker.d.ts +0 -21
- package/components/ui/CopyableText/CopyableText.d.ts +0 -7
- package/components/ui/CopyableText/__tests__/CopyableText.test.d.ts +0 -1
- package/components/ui/DashboardLayout/DashboardLayout.d.ts +0 -22
- package/components/ui/DashboardLayout/__tests__/DashboardLayout.test.d.ts +0 -1
- package/components/ui/DatePickerField/DatePickerField.d.ts +0 -25
- package/components/ui/Dictionary/Dictionary.d.ts +0 -30
- package/components/ui/Dictionary/Dictionary.test.d.ts +0 -1
- package/components/ui/ErrorPopup/ErrorPopup.d.ts +0 -18
- package/components/ui/ErrorPopup/ErrorPopup.test.d.ts +0 -1
- package/components/ui/FilterField/FilterField.d.ts +0 -25
- package/components/ui/FilterField/FilterField.test.d.ts +0 -1
- package/components/ui/FilterField/components/RangePicker.d.ts +0 -11
- package/components/ui/FilterField/components/RangePicker.test.d.ts +0 -1
- package/components/ui/HistoryField/HistoryField.d.ts +0 -15
- package/components/ui/InteractiveInput/InteractiveInput.d.ts +0 -28
- package/components/ui/Link/Link.d.ts +0 -13
- package/components/ui/MultiField/MultiField.d.ts +0 -16
- package/components/ui/Multivalue/MultivalueHover.d.ts +0 -15
- package/components/ui/Multivalue/MultivalueList.d.ts +0 -17
- package/components/ui/Multivalue/MultivalueTag.d.ts +0 -24
- package/components/ui/NavigationTabs/NavigationTabs.d.ts +0 -7
- package/components/ui/NavigationTabs/NavigationTabs.test.d.ts +0 -1
- package/components/ui/NumberInput/NumberInput.d.ts +0 -17
- package/components/ui/NumberInput/NumberInput.test.d.ts +0 -1
- package/components/ui/NumberInput/formaters.d.ts +0 -31
- package/components/ui/Pagination/Pagination.d.ts +0 -51
- package/components/ui/Pagination/Pagination.test.d.ts +0 -1
- package/components/ui/PickInput/PickInput.d.ts +0 -15
- package/components/ui/Popup/Popup.d.ts +0 -29
- package/components/ui/Popup/Popup.test.d.ts +0 -1
- package/components/ui/Popup/PopupFooter.d.ts +0 -16
- package/components/ui/RadioButton/RadioButton.d.ts +0 -16
- package/components/ui/RadioButton/RadioButton.test.d.ts +0 -1
- package/components/ui/ReadOnlyField/ReadOnlyField.d.ts +0 -22
- package/components/ui/SearchHightlight/SearchHightlight.d.ts +0 -20
- package/components/ui/Select/Select.d.ts +0 -26
- package/components/ui/TextArea/TextArea.d.ts +0 -24
- package/components/ui/TextArea/TextArea.test.d.ts +0 -1
- package/components/ui/TreeVirtualized/TreeVirtualized.d.ts +0 -63
- package/components/ui/TreeVirtualized/TreeVirtualizedNode.d.ts +0 -67
- package/components/ui/TreeVirtualized/__tests__/TreeVirtualized.test.d.ts +0 -1
- package/components/ui/TreeVirtualized/__tests__/TreeVirtualizedNode.test.d.ts +0 -1
- package/components/ui/TreeVirtualized/__tests__/useMatchingNodes.test.d.ts +0 -1
- package/components/ui/TreeVirtualized/__tests__/useSearchResult.test.d.ts +0 -1
- package/components/ui/TreeVirtualized/useMatchingNodes.d.ts +0 -23
- package/components/ui/TreeVirtualized/useSearchResult.d.ts +0 -27
- package/components/widgets/AssocListPopup/AssocListPopup.d.ts +0 -58
- package/components/widgets/AssocListPopup/AssocListPopup.test.d.ts +0 -1
- package/components/widgets/AssocListPopup/AssocTable.d.ts +0 -35
- package/components/widgets/AssocListPopup/AssocTable.test.d.ts +0 -1
- package/components/widgets/FlatTree/FlatTree.d.ts +0 -53
- package/components/widgets/FlatTree/FlatTreePopup.d.ts +0 -31
- package/components/widgets/FlatTree/__tests__/FlatTree.test.d.ts +0 -1
- package/components/widgets/FlatTree/__tests__/FlatTreePopup.test.d.ts +0 -1
- package/components/widgets/FlatTree/useMultipleSelect.d.ts +0 -11
- package/components/widgets/FlatTree/useSingleSelect.d.ts +0 -10
- package/components/widgets/FormWidget/FormWidget.d.ts +0 -23
- package/components/widgets/FormWidget/FormWidget.test.d.ts +0 -1
- package/components/widgets/InfoWidget/InfoWidget.d.ts +0 -19
- package/components/widgets/InfoWidget/__test__/InfoWidget.test.d.ts +0 -1
- package/components/widgets/InfoWidget/components/InfoCell.d.ts +0 -15
- package/components/widgets/InfoWidget/components/InfoRow.d.ts +0 -16
- package/components/widgets/InfoWidget/components/InfoValueWrapper.d.ts +0 -10
- package/components/widgets/InfoWidget/components/__tests__/InfoCell.test.d.ts +0 -1
- package/components/widgets/InfoWidget/components/__tests__/InfoRow.test.d.ts +0 -1
- package/components/widgets/InfoWidget/components/__tests__/InfoValueWrapper.test.d.ts +0 -1
- package/components/widgets/NavigationTabsWidget/NavigationTabsWidget.d.ts +0 -8
- package/components/widgets/NavigationTabsWidget/NavigationTabsWidget.test.d.ts +0 -1
- package/components/widgets/PickListPopup/PickListPopup.d.ts +0 -43
- package/components/widgets/PickListPopup/PickListPopup.test.d.ts +0 -1
- package/components/widgets/TableWidget/TableWidget.d.ts +0 -88
- package/components/widgets/TableWidget/TableWidget.test.d.ts +0 -1
- package/components/widgets/TextWidget/TextWidget.d.ts +0 -15
- package/components/widgets/TextWidget/TextWidget.test.d.ts +0 -1
- package/components/widgets/ViewNavigationWidget/ViewNavigationWidget.d.ts +0 -6
- package/components/widgets/ViewNavigationWidget/ViewNavigationWidget.test.d.ts +0 -1
- package/components/widgets/index.d.ts +0 -4
- package/cxbox-ui-core.js +0 -148
- package/cxbox-ui-core.js.map +0 -1
- package/epics/data/__tests__/bcCancelCreateDataEpic.test.d.ts +0 -1
- package/epics/data/__tests__/bcFetchData.test.d.ts +0 -1
- package/epics/data/__tests__/bcFetchRowMetaRequest.test.d.ts +0 -1
- package/epics/data/__tests__/bcNewDataEpic.test.d.ts +0 -1
- package/epics/data/__tests__/bcSaveData.test.d.ts +0 -1
- package/epics/data/__tests__/bcSelectDepthRecord.test.d.ts +0 -1
- package/epics/data/__tests__/removeMultivalueTag.test.d.ts +0 -1
- package/epics/data/__tests__/saveAssociationsActive.test.d.ts +0 -1
- package/epics/data/__tests__/selectView.test.d.ts +0 -1
- package/epics/data/bcCancelCreateDataEpic.d.ts +0 -28
- package/epics/data/bcFetchData.d.ts +0 -21
- package/epics/data/bcFetchRowMetaRequest.d.ts +0 -50
- package/epics/data/bcNewDataEpic.d.ts +0 -37
- package/epics/data/bcSaveData.d.ts +0 -58
- package/epics/data/bcSelectDepthRecord.d.ts +0 -21
- package/epics/data/removeMultivalueTag.d.ts +0 -45
- package/epics/data/selectView.d.ts +0 -36
- package/epics/data.d.ts +0 -105
- package/epics/index.d.ts +0 -74
- package/epics/router/__tests__/changeLocation.test.d.ts +0 -1
- package/epics/router/__tests__/drilldown.test.d.ts +0 -1
- package/epics/router/__tests__/handleRouter.test.d.ts +0 -1
- package/epics/router/__tests__/loginDone.test.d.ts +0 -1
- package/epics/router/__tests__/selectScreen.test.d.ts +0 -1
- package/epics/router/__tests__/selectScreenFail.test.d.ts +0 -1
- package/epics/router/__tests__/selectView.test.d.ts +0 -1
- package/epics/router/__tests__/selectViewFail.test.d.ts +0 -1
- package/epics/router/__tests__/userDrillDown.test.d.ts +0 -1
- package/epics/router/drilldown.d.ts +0 -12
- package/epics/router/handleRouter.d.ts +0 -17
- package/epics/router/loginDone.d.ts +0 -20
- package/epics/router/selectScreen.d.ts +0 -19
- package/epics/router/selectScreenFail.d.ts +0 -17
- package/epics/router/selectView.d.ts +0 -19
- package/epics/router/selectViewFail.d.ts +0 -17
- package/epics/router/userDrillDown.d.ts +0 -29
- package/epics/router.d.ts +0 -11
- package/epics/screen/__tests__/apiError.test.d.ts +0 -1
- package/epics/screen/__tests__/httpError401.test.d.ts +0 -1
- package/epics/screen/__tests__/httpError409.test.d.ts +0 -1
- package/epics/screen/__tests__/httpError418.test.d.ts +0 -1
- package/epics/screen/__tests__/httpError500.test.d.ts +0 -1
- package/epics/screen/__tests__/httpErrorDefault.test.d.ts +0 -1
- package/epics/screen/apiError.d.ts +0 -13
- package/epics/screen/httpError401.d.ts +0 -12
- package/epics/screen/httpError409.d.ts +0 -12
- package/epics/screen/httpError418.d.ts +0 -12
- package/epics/screen/httpError500.d.ts +0 -12
- package/epics/screen/httpErrorDefault.d.ts +0 -14
- package/epics/screen/processPostInvoke.d.ts +0 -12
- package/epics/screen.d.ts +0 -35
- package/epics/session/__tests__/loginByAnotherRoleEpic.test.d.ts +0 -1
- package/epics/session/__tests__/loginDone.test.d.ts +0 -1
- package/epics/session/__tests__/refreshMeta.test.d.ts +0 -1
- package/epics/session/__tests__/refreshMetaAndReloadPage.test.d.ts +0 -1
- package/epics/session/__tests__/switchRole.test.d.ts +0 -1
- package/epics/session/loginByAnotherRole.d.ts +0 -27
- package/epics/session/loginDone.d.ts +0 -10
- package/epics/session/refreshMeta.d.ts +0 -9
- package/epics/session/refreshMetaAndReloadPage.d.ts +0 -2
- package/epics/session/switchRole.d.ts +0 -9
- package/epics/session.d.ts +0 -7
- package/epics/utils.d.ts +0 -4
- package/epics/view/__tests__/fileUploadConfirm.test.d.ts +0 -1
- package/epics/view/__tests__/sendOperation.test.d.ts +0 -1
- package/epics/view/__tests__/sendOperationAssociate.test.d.ts +0 -1
- package/epics/view/__tests__/showAssocPopup.test.d.ts +0 -1
- package/epics/view/__tests__/showFileUploadPopup.test.d.ts +0 -1
- package/epics/view/fileUploadConfirm.d.ts +0 -31
- package/epics/view/sendOperation.d.ts +0 -24
- package/epics/view/sendOperationAssociate.d.ts +0 -34
- package/epics/view/showAssocPopup.d.ts +0 -12
- package/epics/view/showFileUploadPopup.d.ts +0 -19
- package/epics/view.d.ts +0 -57
- package/hooks/__tests__/useRowMenu.test.d.ts +0 -1
- package/hooks/__tests__/useViewTabs.test.d.ts +0 -1
- package/hooks/__tests__/useWidgetOperations.test.d.ts +0 -1
- package/hooks/index.d.ts +0 -7
- package/hooks/useAssocRecords.d.ts +0 -11
- package/hooks/useDebounce.d.ts +0 -8
- package/hooks/useDrillDownUrl.d.ts +0 -10
- package/hooks/useFlatFormFields.d.ts +0 -9
- package/hooks/useRowMenu.d.ts +0 -42
- package/hooks/useViewTabs.d.ts +0 -13
- package/hooks/useWidgetFilter.d.ts +0 -15
- package/hooks/useWidgetOperations.d.ts +0 -34
- package/imports/i18n.d.ts +0 -8
- package/imports/rxjs.d.ts +0 -19
- package/imports/shim.d.ts +0 -6
- package/index.d.ts +0 -135
- package/interfaces/customEpics.d.ts +0 -55
- package/interfaces/filters.js +0 -2
- package/interfaces/filters.js.map +0 -1
- package/interfaces/index.d.ts +0 -22
- package/interfaces/objectMap.js +0 -2
- package/interfaces/objectMap.js.map +0 -1
- package/interfaces/operation.js +0 -2
- package/interfaces/operation.js.map +0 -1
- package/interfaces/router.js +0 -2
- package/interfaces/router.js.map +0 -1
- package/interfaces/store.d.ts +0 -56
- package/interfaces/view.js +0 -2
- package/interfaces/view.js.map +0 -1
- package/interfaces/widget.js +0 -2
- package/interfaces/widget.js.map +0 -1
- package/middlewares/__tests__/autosaveMiddleware.test.d.ts +0 -1
- package/middlewares/__tests__/preInvokeMiddleware.test.d.ts +0 -1
- package/middlewares/__tests__/requiredFieldsMiddleware.test.d.ts +0 -1
- package/middlewares/actionsHistoryMiddleware.d.ts +0 -3
- package/middlewares/autosaveMiddleware.d.ts +0 -6
- package/middlewares/index.d.ts +0 -6
- package/middlewares/preInvokeMiddleware.d.ts +0 -8
- package/mocks/data/widgetMeta.d.ts +0 -10
- package/reducers/__tests__/data.test.d.ts +0 -1
- package/reducers/__tests__/forceActiveField.test.d.ts +0 -1
- package/reducers/__tests__/screen/bcAddFilter.test.d.ts +0 -1
- package/reducers/__tests__/session.test.d.ts +0 -1
- package/reducers/__tests__/view.test.d.ts +0 -1
- package/reducers/data.d.ts +0 -13
- package/reducers/depthData.d.ts +0 -7
- package/reducers/index.d.ts +0 -3
- package/reducers/router.d.ts +0 -30
- package/reducers/screen.d.ts +0 -16
- package/reducers/session.d.ts +0 -15
- package/reducers/view.d.ts +0 -16
- package/tests/mockStore.d.ts +0 -6
- package/tests/setup.d.ts +0 -1
- package/tests/testEpic.d.ts +0 -14
- package/utils/__tests__/autosave.test.d.ts +0 -1
- package/utils/__tests__/bc.test.d.ts +0 -1
- package/utils/__tests__/breadthFirst.test.d.ts +0 -1
- package/utils/__tests__/cancelRequestEpic.test.d.ts +0 -1
- package/utils/__tests__/combineEpics.test.d.ts +0 -1
- package/utils/__tests__/combineMiddlewares.test.d.ts +0 -1
- package/utils/__tests__/configureStore.test.d.ts +0 -1
- package/utils/__tests__/extendPopupWidgetTypes.test.d.ts +0 -1
- package/utils/__tests__/filters.test.d.ts +0 -1
- package/utils/__tests__/history.test.d.ts +0 -1
- package/utils/__tests__/notifications.test.d.ts +0 -1
- package/utils/__tests__/operations.test.d.ts +0 -1
- package/utils/__tests__/tree.test.d.ts +0 -1
- package/utils/__tests__/viewTabs.test.d.ts +0 -1
- package/utils/actionsHistory.d.ts +0 -2
- package/utils/api.d.ts +0 -92
- package/utils/cancelRequestEpic.d.ts +0 -16
- package/utils/combineEpics.d.ts +0 -13
- package/utils/combineMiddlewares.d.ts +0 -3
- package/utils/configureStore.d.ts +0 -15
- package/utils/exportState.d.ts +0 -3
- package/utils/index.d.ts +0 -6
- package/utils/notifications.d.ts +0 -11
- package/utils/redux.d.ts +0 -49
- /package/{interfaces → dist/interfaces}/filters.d.ts +0 -0
- /package/{interfaces → dist/interfaces}/router.d.ts +0 -0
- /package/{interfaces → dist/interfaces}/rowMeta.d.ts +0 -0
- /package/{interfaces → dist/interfaces}/screen.d.ts +0 -0
- /package/{utils → dist/utils}/breadthFirst.d.ts +0 -0
- /package/{tests/assetsMock.d.ts → dist/utils/exportState.d.ts} +0 -0
- /package/{utils → dist/utils}/extendPopupWidgetTypes.d.ts +0 -0
- /package/{utils → dist/utils}/hierarchy.d.ts +0 -0
- /package/{utils → dist/utils}/highlightJson.d.ts +0 -0
- /package/{utils → dist/utils}/viewTabs.d.ts +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OperationPostInvokeAny, OperationPreInvoke } from '../../interfaces';
|
|
2
|
+
import { AnyAction } from '@reduxjs/toolkit';
|
|
3
|
+
/**
|
|
4
|
+
* Returns an array of observables for handling post- and pre-invokes from any epics handling operations
|
|
5
|
+
*
|
|
6
|
+
* @param widgetName Name of the widget that initiated the operation
|
|
7
|
+
* @param postInvoke Response post-invoke
|
|
8
|
+
* @param preInvoke Response pre-invoke
|
|
9
|
+
* @param operationType Which operation was performed
|
|
10
|
+
* @param bcName
|
|
11
|
+
* @category Utils
|
|
12
|
+
*/
|
|
13
|
+
export declare function postOperationRoutine(widgetName: string, postInvoke: OperationPostInvokeAny, preInvoke: OperationPreInvoke, operationType: string, bcName: string): import("rxjs").Observable<AnyAction>[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CXBoxEpic } from '../../interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* Clears descendant business components pending changes on cursor change
|
|
4
|
+
*
|
|
5
|
+
* TODO: Review required as it might be no longer valid due to autosave middleware implementation
|
|
6
|
+
*/
|
|
7
|
+
export declare const clearPendingDataChangesAfterCursorChangeEpic: CXBoxEpic;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CXBoxEpic } from '../../interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* It sends customAction request for `file-upload-save` endpoint with `bulkIds` dataEpics.ts
|
|
4
|
+
* containing ids of uploaded files.
|
|
5
|
+
* On success it fires `sendOperationSuccess`, `bcForceUpdate` and `closeViewPopup` actions
|
|
6
|
+
* to refresh business component and close popup.
|
|
7
|
+
*
|
|
8
|
+
* It also launces postOperationRoutine to handle pre and post invokes.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export declare const fileUploadConfirmEpic: CXBoxEpic;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './sendOperationEpic';
|
|
2
|
+
export * from './showAssocPopupEpic';
|
|
3
|
+
export * from './fileUploadConfirmEpic';
|
|
4
|
+
export * from './selectTableCellInitEpic';
|
|
5
|
+
export * from './showFileUploadPopupEpic';
|
|
6
|
+
export * from './sendOperationAssociateEpic';
|
|
7
|
+
export * from './getRowMetaByForceActiveEpic';
|
|
8
|
+
export * from './showAllTableRecordsInitEpic';
|
|
9
|
+
export * from './clearPendingDataChangesAfterCursorChangeEpic';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CXBoxEpic } from '../../interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* Handle any `sendOperationEpic` action which is not part of built-in operations types
|
|
4
|
+
*
|
|
5
|
+
* Request will be send to `custom-action/${screenName}/${bcUrl}?_action=${action.payload.type}` endpoint,
|
|
6
|
+
* with pending changes of the widget as requst body.
|
|
7
|
+
*
|
|
8
|
+
* Fires sendOperationSuccess, bcForceUpdate and postOperationRoutine
|
|
9
|
+
*/
|
|
10
|
+
export declare const sendOperationEpic: CXBoxEpic;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * as reducers from './reducers';
|
|
2
|
+
export * as actions from './actions';
|
|
3
|
+
export * as epics from './epics';
|
|
4
|
+
export { Api } from './api';
|
|
5
|
+
export * as utils from './utils';
|
|
6
|
+
export * as interfaces from './interfaces';
|
|
7
|
+
export { middlewares } from './middlewares';
|
package/dist/index.js
ADDED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { FilterGroup } from './filters';
|
|
5
5
|
/**
|
|
6
|
-
* Meta data for Business Component
|
|
6
|
+
* Meta data.ts for Business Component
|
|
7
7
|
*/
|
|
8
8
|
export interface BcMeta {
|
|
9
9
|
/**
|
|
@@ -48,6 +48,10 @@ export interface BcMeta {
|
|
|
48
48
|
*/
|
|
49
49
|
defaultFilter?: string;
|
|
50
50
|
}
|
|
51
|
+
export type DepthBcType = Record<number, {
|
|
52
|
+
loading?: boolean;
|
|
53
|
+
cursor?: string;
|
|
54
|
+
}>;
|
|
51
55
|
export interface BcMetaState extends BcMeta {
|
|
52
56
|
/**
|
|
53
57
|
* Data fetch for this business component is in progress
|
|
@@ -62,7 +66,7 @@ export interface BcMetaState extends BcMeta {
|
|
|
62
66
|
*/
|
|
63
67
|
limit?: number;
|
|
64
68
|
/**
|
|
65
|
-
* There is an addional pages of data to fetch
|
|
69
|
+
* There is an addional pages of data.ts to fetch
|
|
66
70
|
*/
|
|
67
71
|
hasNext?: boolean;
|
|
68
72
|
/**
|
|
@@ -71,8 +75,5 @@ export interface BcMetaState extends BcMeta {
|
|
|
71
75
|
* Used by hierarchy widgets builded around single business component:
|
|
72
76
|
* controls which record is expanded and which children should be fetched.
|
|
73
77
|
*/
|
|
74
|
-
depthBc?:
|
|
75
|
-
loading?: boolean;
|
|
76
|
-
cursor?: string;
|
|
77
|
-
}>;
|
|
78
|
+
depthBc?: DepthBcType;
|
|
78
79
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { AnyAction } from '@reduxjs/toolkit';
|
|
7
|
+
import { Store } from './store';
|
|
8
|
+
import { Api } from '../api';
|
|
9
|
+
export interface EpicDependencyInjection<A = Api> {
|
|
10
|
+
api: A;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Default Epic typing with dependency injection
|
|
14
|
+
*/
|
|
15
|
+
export type CXBoxEpic<S = Store, A = Api> = Epic<AnyAction, AnyAction, S, EpicDependencyInjection<A>>;
|
|
@@ -3,7 +3,7 @@ import { middlewares } from '../middlewares';
|
|
|
3
3
|
/**
|
|
4
4
|
* Type of core middlewares
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type CoreMiddlewares = typeof middlewares;
|
|
7
7
|
/**
|
|
8
8
|
* Custom middleware interface
|
|
9
9
|
*/
|
|
@@ -20,16 +20,16 @@ export interface CustomMiddleware {
|
|
|
20
20
|
/**
|
|
21
21
|
* List the names of all core middlewares
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export type CoreMiddlewareType = keyof CoreMiddlewares;
|
|
24
24
|
/**
|
|
25
25
|
* Descriptor of custom middleware not presented in core middlewares
|
|
26
26
|
*/
|
|
27
|
-
export
|
|
27
|
+
export type NewMiddlewareDescriptor<T = Record<string, unknown>> = Record<Exclude<keyof T, keyof CoreMiddlewares>, CustomMiddleware>;
|
|
28
28
|
/**
|
|
29
29
|
* Form a dictionary of override descriptors for those middleware
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
31
|
+
export type CoreMiddlewareOverrideDescriptors = Record<CoreMiddlewareType, Middleware | null>;
|
|
32
32
|
/**
|
|
33
33
|
* Type of custom middlewares
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
35
|
+
export type CustomMiddlewares<T = Record<string, unknown>> = Partial<CoreMiddlewareOverrideDescriptors> | NewMiddlewareDescriptor<T>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OperationPostInvokeAny, OperationPreInvoke } from './operation';
|
|
2
2
|
import { DataValue, DataItem } from '@cxbox-ui/schema';
|
|
3
|
-
export { DataValue, DataItem, MultivalueSingleValue, MultivalueSingleValueOptions, RecordSnapshotState } from '@cxbox-ui/schema';
|
|
3
|
+
export type { DataValue, DataItem, MultivalueSingleValue, MultivalueSingleValueOptions, RecordSnapshotState } from '@cxbox-ui/schema';
|
|
4
4
|
/**
|
|
5
|
-
* API's response on Business Component's data request
|
|
5
|
+
* API's response on Business Component's data.ts request
|
|
6
6
|
*/
|
|
7
7
|
export interface BcDataResponse {
|
|
8
8
|
data: DataItem[];
|
|
@@ -15,7 +15,7 @@ export interface PendingDataItem {
|
|
|
15
15
|
[fieldName: string]: DataValue;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* State of `data` in global store
|
|
18
|
+
* State of `data.ts` in global store
|
|
19
19
|
*/
|
|
20
20
|
export interface DataState {
|
|
21
21
|
[bcName: string]: DataItem[];
|
|
@@ -45,4 +45,4 @@ export interface DataItemResponse {
|
|
|
45
45
|
* `x` is name of field, for which the value will be set up.
|
|
46
46
|
* A value of `x` is name of field, from which the value will be gotten.
|
|
47
47
|
*/
|
|
48
|
-
export
|
|
48
|
+
export type PickMap = Record<string, string>;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 type { BcMeta, BcMetaState } from './bc';
|
|
12
|
+
export type { DataValue, DataItem, MultivalueSingleValue, MultivalueSingleValueOptions, RecordSnapshotState, PendingDataItem, DataItemResponse, BcDataResponse, DataState, DepthDataState, PickMap } from './data';
|
|
13
|
+
export type { SystemNotification, CxboxResponse, ObjectMap } from './objectMap';
|
|
14
|
+
export { AppNotificationType } from './objectMap';
|
|
15
|
+
export * from './router';
|
|
16
|
+
export * from './screen';
|
|
17
|
+
export * from './customMiddlewares';
|
|
18
|
+
export * from './session';
|
|
19
|
+
export * from './store';
|
|
20
|
+
export * from './view';
|
|
21
|
+
export * from './widget';
|
|
22
|
+
export * from './operation';
|
|
23
|
+
export * from './rowMeta';
|
|
24
|
+
export * from './filters';
|
|
25
|
+
export * from './customEpics';
|
|
26
|
+
export * from './navigation';
|
|
27
|
+
export * from './tree';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewNavigationGroup, MenuItem, ViewNavigationCategory, ViewNavigationItem } from '@cxbox-ui/schema';
|
|
2
|
-
export { ViewNavigationGroup, MenuItem, ViewNavigationCategory, ViewNavigationItem } from '@cxbox-ui/schema';
|
|
2
|
+
export type { ViewNavigationGroup, MenuItem, ViewNavigationCategory, ViewNavigationItem } from '@cxbox-ui/schema';
|
|
3
3
|
/**
|
|
4
4
|
* Returns MenuItem if it is ViewNavigationItem
|
|
5
5
|
*
|
|
@@ -26,7 +26,7 @@ export declare function isViewNavigationGroup(item: MenuItem): item is ViewNavig
|
|
|
26
26
|
* 2 - `ThirdLevelMenu` tab widgets
|
|
27
27
|
* 2 - `FourthLevelMenu` tab widgets
|
|
28
28
|
*/
|
|
29
|
-
export
|
|
29
|
+
export type NavigationLevel = 1 | 2 | 3 | 4;
|
|
30
30
|
/**
|
|
31
31
|
* Model for displayed tab item
|
|
32
32
|
*/
|
|
@@ -13,12 +13,13 @@ export interface ObjectMap<T> {
|
|
|
13
13
|
*
|
|
14
14
|
* TODO: Move this to a an appropriate module
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export type CxboxResponse = {
|
|
17
17
|
/**
|
|
18
18
|
* If any response returs with this field, browser should redirect on this address
|
|
19
19
|
*/
|
|
20
20
|
redirectUrl?: string;
|
|
21
|
-
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
};
|
|
22
23
|
/**
|
|
23
24
|
* Types of notification messages
|
|
24
25
|
*/
|
|
@@ -2,7 +2,8 @@ import { DrillDownType } from './router';
|
|
|
2
2
|
import { AppNotificationType } from './objectMap';
|
|
3
3
|
import { DataItem } from './data';
|
|
4
4
|
import { OperationTypeCrud, OperationType } from '@cxbox-ui/schema';
|
|
5
|
-
export {
|
|
5
|
+
export type { OperationType, OperationInclusionDescriptor } from '@cxbox-ui/schema';
|
|
6
|
+
export { OperationTypeCrud };
|
|
6
7
|
export declare const coreOperations: OperationTypeCrud[];
|
|
7
8
|
/**
|
|
8
9
|
*
|
|
@@ -133,7 +134,7 @@ export declare enum OperationPreInvokeType {
|
|
|
133
134
|
*/
|
|
134
135
|
export declare enum OperationPostInvokeType {
|
|
135
136
|
/**
|
|
136
|
-
* BC's refresh. It leads to cursor dropping, data refresh of current BC and its children
|
|
137
|
+
* BC's refresh. It leads to cursor dropping, data.ts refresh of current BC and its children
|
|
137
138
|
*/
|
|
138
139
|
refreshBC = "refreshBC",
|
|
139
140
|
/**
|
|
@@ -234,7 +235,7 @@ export interface OperationPostInvoke {
|
|
|
234
235
|
type: OperationPostInvokeType | string;
|
|
235
236
|
}
|
|
236
237
|
/**
|
|
237
|
-
* BC's refresh. It leads to cursor dropping, data refresh of current BC and its children
|
|
238
|
+
* BC's refresh. It leads to cursor dropping, data.ts refresh of current BC and its children
|
|
238
239
|
*/
|
|
239
240
|
export interface OperationPostInvokeRefreshBc extends OperationPostInvoke {
|
|
240
241
|
/**
|
|
@@ -306,11 +307,11 @@ export interface OperationPostInvokeShowMessage extends OperationPostInvoke {
|
|
|
306
307
|
/**
|
|
307
308
|
* A union of all action types which could be be fired after user's operation
|
|
308
309
|
*/
|
|
309
|
-
export
|
|
310
|
+
export type OperationPostInvokeAny = OperationPostInvokeRefreshBc | OperationPostInvokeDownloadFile | OperationPostInvokeDownloadFileByUrl | OperationPostInvokeDrillDown | OperationPostInvokeOpenPickList | OperationPostInvokeShowMessage | OperationPostInvokeConfirm;
|
|
310
311
|
/**
|
|
311
312
|
* TODO: ???
|
|
312
313
|
*/
|
|
313
|
-
export
|
|
314
|
+
export type OperationScope = 'bc' | 'record' | 'page' | 'associate';
|
|
314
315
|
export interface AssociatedItem extends DataItem {
|
|
315
316
|
_associate: boolean;
|
|
316
317
|
}
|
|
@@ -327,4 +328,4 @@ export interface OperationErrorEntity {
|
|
|
327
328
|
fields: Record<string, string>;
|
|
328
329
|
id: string;
|
|
329
330
|
}
|
|
330
|
-
export
|
|
331
|
+
export type RequestType = 'data' | 'row-meta' | 'force-active';
|
|
@@ -11,6 +11,24 @@ export interface UserRole {
|
|
|
11
11
|
active: boolean;
|
|
12
12
|
cacheLoaderName: string;
|
|
13
13
|
}
|
|
14
|
+
export type DefaultNotificationType = 'success' | 'error' | 'info' | 'warning';
|
|
15
|
+
export interface Notification {
|
|
16
|
+
key: string;
|
|
17
|
+
type: DefaultNotificationType | string;
|
|
18
|
+
message: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
options?: {
|
|
21
|
+
messageOptions?: {
|
|
22
|
+
[key: string]: string | number;
|
|
23
|
+
};
|
|
24
|
+
buttonWarningNotificationOptions?: {
|
|
25
|
+
buttonText: string;
|
|
26
|
+
actionsForClick?: Array<Record<string, any>>;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
duration?: number;
|
|
30
|
+
}
|
|
31
|
+
export type NotificationKeys = string[];
|
|
14
32
|
export interface Session {
|
|
15
33
|
/**
|
|
16
34
|
* Whether dev tools panel is shown
|
|
@@ -31,10 +49,13 @@ export interface Session {
|
|
|
31
49
|
lastName?: string;
|
|
32
50
|
login?: string;
|
|
33
51
|
active: boolean;
|
|
52
|
+
logout: boolean;
|
|
34
53
|
screens: SessionScreen[];
|
|
35
54
|
loginSpin: boolean;
|
|
36
55
|
errorMsg?: string;
|
|
37
56
|
pendingRequests?: PendingRequest[];
|
|
57
|
+
notifications: Notification[];
|
|
58
|
+
isMetaRefreshing: boolean;
|
|
38
59
|
}
|
|
39
60
|
export interface LoginResponse extends CxboxResponse {
|
|
40
61
|
devPanelEnabled?: boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Route } from './router';
|
|
2
|
+
import { Session } from './session';
|
|
3
|
+
import { ScreenState } from './screen';
|
|
4
|
+
import { ViewState } from './view';
|
|
5
|
+
import { DataState, DepthDataState } from './data';
|
|
6
|
+
export interface Store {
|
|
7
|
+
router: Route;
|
|
8
|
+
session: Session;
|
|
9
|
+
screen: ScreenState;
|
|
10
|
+
view: ViewState;
|
|
11
|
+
data: DataState;
|
|
12
|
+
depthData: DepthDataState;
|
|
13
|
+
[reducerName: string]: any;
|
|
14
|
+
}
|
|
@@ -23,9 +23,9 @@ export interface DataNode extends BaseDataNode {
|
|
|
23
23
|
level?: number;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* Cxbox-specific data item that classifies as tree node
|
|
26
|
+
* Cxbox-specific data.ts item that classifies as tree node
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
28
|
+
export type DataItemNode = DataNode & DataItem;
|
|
29
29
|
/**
|
|
30
30
|
* Base type for tree nodes that keep references to parent nodes
|
|
31
31
|
*/
|
|
@@ -57,10 +57,10 @@ export interface TreeNodeBidirectional extends DataNode {
|
|
|
57
57
|
*/
|
|
58
58
|
children?: TreeNodeBidirectional[];
|
|
59
59
|
}
|
|
60
|
-
export
|
|
60
|
+
export type TreeAssociatedRecord = DataNode & AssociatedItem;
|
|
61
61
|
/**
|
|
62
62
|
* Tree node that keeps a status if it is expanded (i.e. children also should be displayed)
|
|
63
63
|
*/
|
|
64
|
-
export
|
|
64
|
+
export type TreeNodeCollapsable<T extends TreeNodeBidirectional = TreeNodeBidirectional> = T & {
|
|
65
65
|
_expanded: boolean;
|
|
66
66
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { WidgetMeta } from '
|
|
2
|
-
import { RowMeta } from '
|
|
3
|
-
import { PendingDataItem, PickMap } from '
|
|
1
|
+
import { WidgetMeta } from './widget';
|
|
2
|
+
import { RowMeta } from './rowMeta';
|
|
3
|
+
import { PendingDataItem, PickMap } from './data';
|
|
4
4
|
import { SystemNotification } from './objectMap';
|
|
5
5
|
import { OperationTypeCrud, OperationPostInvokeConfirm } from './operation';
|
|
6
6
|
import { AxiosError } from 'axios';
|
|
@@ -122,7 +122,7 @@ export interface ViewMetaResponse {
|
|
|
122
122
|
*/
|
|
123
123
|
ignoreHistory?: boolean;
|
|
124
124
|
}
|
|
125
|
-
export
|
|
125
|
+
export type PopupType = 'assoc' | 'file-upload' | null;
|
|
126
126
|
/**
|
|
127
127
|
* Describes currently open popup
|
|
128
128
|
*
|
|
@@ -178,7 +178,7 @@ export interface PopupData {
|
|
|
178
178
|
*/
|
|
179
179
|
isFilter?: boolean;
|
|
180
180
|
}
|
|
181
|
-
export
|
|
181
|
+
export type ApplicationError = BusinessError | SystemError | ApplicationErrorBase;
|
|
182
182
|
export declare enum ApplicationErrorType {
|
|
183
183
|
BusinessError = 0,
|
|
184
184
|
SystemError = 1,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { WidgetShowCondition, WidgetTypes, WidgetOptions, WidgetFormField, WidgetListField, WidgetInfoField } from '@cxbox-ui/schema';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
|
-
export {
|
|
3
|
+
export type { WidgetOptions, WidgetShowCondition, LayoutRow, LayoutCol, WidgetOperations, TableOperations, WidgetTableHierarchy, WidgetFieldBase, WidgetListFieldBase, WidgetFormFieldBase, AllWidgetTypeFieldBase, NumberFieldMeta, DateFieldMeta, CheckboxFieldMeta, DateTimeFieldMeta, DateTimeWithSecondsFieldMeta, DictionaryFieldMeta, TextFieldMeta, InputFieldMeta, MultiFieldMeta, MultivalueFieldMeta, PickListFieldMeta, InlinePickListFieldMeta, FileUploadFieldMeta, WidgetFormField, WidgetListField, HiddenFieldMeta, RadioButtonFieldMeta, WidgetField, WidgetInfoField } from '@cxbox-ui/schema';
|
|
4
|
+
export { WidgetTypes, PositionTypes } from '@cxbox-ui/schema';
|
|
4
5
|
/**
|
|
5
6
|
* Different widget types that are considered `tables` in nature for purposes of applying some shared features.
|
|
6
7
|
* For example, autofocus on missing required field should work for tables but not forms.
|
|
@@ -15,9 +16,9 @@ export declare const TableLikeWidgetTypes: readonly [WidgetTypes.List, WidgetTyp
|
|
|
15
16
|
*/
|
|
16
17
|
export declare const PopupWidgetTypes: string[];
|
|
17
18
|
/**
|
|
18
|
-
* All widget types that display table-like data
|
|
19
|
+
* All widget types that display table-like data.ts
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
+
type TableLikeWidgetType = (typeof TableLikeWidgetTypes)[number];
|
|
21
22
|
export interface WidgetInfoOptions {
|
|
22
23
|
fieldBorderBottom?: boolean;
|
|
23
24
|
footer?: string;
|
|
@@ -71,9 +72,9 @@ export interface WidgetFieldBlock<T> {
|
|
|
71
72
|
*/
|
|
72
73
|
break?: boolean;
|
|
73
74
|
}
|
|
74
|
-
export
|
|
75
|
+
export type WidgetFieldsOrBlocks<T> = Array<T | WidgetFieldBlock<T>>;
|
|
75
76
|
/**
|
|
76
|
-
* Configuration for widgets dislaying form data
|
|
77
|
+
* Configuration for widgets dislaying form data.ts
|
|
77
78
|
*/
|
|
78
79
|
export interface WidgetFormMeta extends WidgetMeta {
|
|
79
80
|
/**
|
|
@@ -86,7 +87,7 @@ export interface WidgetFormMeta extends WidgetMeta {
|
|
|
86
87
|
fields: WidgetFieldsOrBlocks<WidgetFormField>;
|
|
87
88
|
}
|
|
88
89
|
/**
|
|
89
|
-
* Configuration for widgets displaying table-like data
|
|
90
|
+
* Configuration for widgets displaying table-like data.ts
|
|
90
91
|
*/
|
|
91
92
|
export interface WidgetTableMeta extends WidgetMeta {
|
|
92
93
|
/**
|
|
@@ -99,7 +100,7 @@ export interface WidgetTableMeta extends WidgetMeta {
|
|
|
99
100
|
fields: WidgetListField[];
|
|
100
101
|
}
|
|
101
102
|
/**
|
|
102
|
-
* Configuration for widgets displaying read-only table data
|
|
103
|
+
* Configuration for widgets displaying read-only table data.ts
|
|
103
104
|
*/
|
|
104
105
|
export interface WidgetInfoMeta extends WidgetMeta {
|
|
105
106
|
/**
|
|
@@ -157,13 +158,13 @@ export interface NavigationWidgetMeta extends WidgetMeta {
|
|
|
157
158
|
/**
|
|
158
159
|
* A widget configuration of any known type
|
|
159
160
|
*/
|
|
160
|
-
export
|
|
161
|
+
export type WidgetMetaAny = WidgetFormMeta | WidgetTableMeta | WidgetTextMeta | WidgetInfoMeta | NavigationWidgetMeta;
|
|
161
162
|
/**
|
|
162
163
|
* Component of custom widget
|
|
163
164
|
*
|
|
164
165
|
* @deprecated TODO: Remove in 2.0.0
|
|
165
166
|
*/
|
|
166
|
-
export
|
|
167
|
+
export type CustomWidget = ComponentType<any>;
|
|
167
168
|
/**
|
|
168
169
|
* Configuration of custom widget
|
|
169
170
|
*/
|
|
@@ -181,9 +182,9 @@ export interface CustomWidgetConfiguration {
|
|
|
181
182
|
*/
|
|
182
183
|
card?: ComponentType<any> | null;
|
|
183
184
|
}
|
|
184
|
-
export
|
|
185
|
+
export type CustomWidgetDescriptor = CustomWidget | CustomWidgetConfiguration;
|
|
185
186
|
/**
|
|
186
|
-
* Check if descriptor is just a widget, or it has additional data
|
|
187
|
+
* Check if descriptor is just a widget, or it has additional data.ts
|
|
187
188
|
*/
|
|
188
189
|
export declare function isCustomWidget(descriptor: CustomWidgetDescriptor): descriptor is CustomWidget;
|
|
189
190
|
/**
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const middlewares: {
|
|
2
|
+
autosave: import("redux").Middleware<{}, any, import("redux").Dispatch<import("redux").AnyAction>>;
|
|
3
|
+
requiredFields: import("redux").Middleware<{}, any, import("redux").Dispatch<import("redux").AnyAction>>;
|
|
4
|
+
preInvoke: import("redux").Middleware<{}, any, import("redux").Dispatch<import("redux").AnyAction>>;
|
|
5
|
+
popup: import("redux").Middleware<{}, any, import("redux").Dispatch<import("redux").AnyAction>>;
|
|
6
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Handles validation of "required fields" for widget operations
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import { Operation, OperationGroup } from '../interfaces
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import { RowMetaField } from '../interfaces/rowMeta';
|
|
4
|
+
import { Middleware } from 'redux';
|
|
5
|
+
import { Operation, OperationGroup, PendingDataItem, RowMetaField, Store } from '../interfaces';
|
|
6
|
+
import { DataItem } from '@cxbox-ui/schema';
|
|
7
|
+
export declare const requiredFields: Middleware;
|
|
9
8
|
/**
|
|
10
9
|
* Check operations and operation groups for 'autoSaveBefore' flag (i.e. operation is validation-sensetive)
|
|
11
10
|
*
|
|
@@ -19,17 +18,13 @@ export declare function operationRequiresAutosave(operationType: string, actions
|
|
|
19
18
|
*
|
|
20
19
|
* @param record Record to check
|
|
21
20
|
* @param pendingChanges Pending record changes which could override record values
|
|
22
|
-
* @param
|
|
21
|
+
* @param fieldsMeta
|
|
23
22
|
*/
|
|
24
23
|
export declare function getRequiredFieldsMissing(record: DataItem, pendingChanges: PendingDataItem, fieldsMeta: RowMetaField[]): PendingDataItem;
|
|
25
|
-
/**
|
|
26
|
-
* TODO
|
|
27
|
-
*/
|
|
28
|
-
export declare function createRequiredFieldsMiddleware(): Middleware<{}, any, Dispatch<AnyAction>>;
|
|
29
24
|
/**
|
|
30
25
|
* Checks if `pendingValidationFails` is not empty
|
|
31
26
|
*
|
|
32
27
|
* @param store
|
|
33
28
|
* @param bcName
|
|
34
29
|
*/
|
|
35
|
-
export declare function hasPendingValidationFails(store:
|
|
30
|
+
export declare function hasPendingValidationFails(store: Store, bcName: string): boolean;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ActionReducerMapBuilder, CaseReducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { Action, AnyAction } from 'redux';
|
|
3
|
+
interface TypedActionCreator<Type extends string> {
|
|
4
|
+
(...args: any[]): Action<Type>;
|
|
5
|
+
type: Type;
|
|
6
|
+
}
|
|
7
|
+
type TypeGuard<T> = (value: any) => value is T;
|
|
8
|
+
export declare class ReducerBuilderManager<State> {
|
|
9
|
+
private reducers;
|
|
10
|
+
private matchers;
|
|
11
|
+
private defaultCaseReducer;
|
|
12
|
+
addCase<ActionCreator extends TypedActionCreator<string>>(action: ActionCreator, reducer: CaseReducer<State, ReturnType<ActionCreator>>): this;
|
|
13
|
+
removeCase<ActionCreator extends TypedActionCreator<string>>(action: ActionCreator): this;
|
|
14
|
+
replaceCase<ActionCreator extends TypedActionCreator<string>>(action: ActionCreator, reducer: CaseReducer<State, ReturnType<ActionCreator>>): this;
|
|
15
|
+
addMatcher<A>(matcher: TypeGuard<A> | ((action: any) => boolean), reducer: CaseReducer<State, A extends AnyAction ? A : A & AnyAction>): Omit<ReducerBuilderManager<State>, 'addCase'>;
|
|
16
|
+
addDefaultCase(reducer: CaseReducer<State, AnyAction>): Omit<ReducerBuilderManager<State>, 'addCase' | 'addMatcher' | 'addDefaultCase'>;
|
|
17
|
+
get builder(): (builder: ActionReducerMapBuilder<State>) => {};
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DataState } from '../interfaces';
|
|
2
|
+
import { ReducerBuilderManager } from './ReducerBuilderManager';
|
|
3
|
+
export declare const dataInitialState: DataState;
|
|
4
|
+
export declare const createDataReducerBuilderManager: (initialState: DataState) => ReducerBuilderManager<DataState>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DepthDataState } from '../interfaces';
|
|
2
|
+
import { ReducerBuilderManager } from './ReducerBuilderManager';
|
|
3
|
+
export declare const initialDepthDataState: DepthDataState;
|
|
4
|
+
export declare const createDepthDataReducerBuilderManager: (initialState: DepthDataState) => ReducerBuilderManager<DepthDataState>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Route } from '../interfaces';
|
|
2
|
+
import { ReducerBuilderManager } from './ReducerBuilderManager';
|
|
3
|
+
export declare const initialRouterState: Route;
|
|
4
|
+
/**
|
|
5
|
+
* Router reducer
|
|
6
|
+
*
|
|
7
|
+
* Stores information about currently active route
|
|
8
|
+
*/
|
|
9
|
+
export declare const createRouterReducerBuilderManager: <S extends Route>(initialState: S) => ReducerBuilderManager<S>;
|