@cxbox-ui/core 1.37.2 → 1.37.3-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +3645 -0
- package/dist/cxbox-ui-core.cjs.production.min.js +2 -0
- package/dist/cxbox-ui-core.esm.js +3609 -0
- package/dist/cxbox-ui-core.modern.development.js +3542 -0
- package/dist/cxbox-ui-core.modern.js +3542 -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 +20 -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
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Store } from 'redux';
|
|
3
|
-
import { Epic, AnyAction, ActionsMap } from '../../actions/actions';
|
|
4
|
-
import { Store as CoreStore } from '../../interfaces/store';
|
|
5
|
-
/**
|
|
6
|
-
* Throws a error popup when attempting to navigate to the view which is missing for current session
|
|
7
|
-
*
|
|
8
|
-
* @param action$ selectViewFail
|
|
9
|
-
*/
|
|
10
|
-
export declare const selectViewFail: Epic;
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @param action
|
|
14
|
-
* @param store
|
|
15
|
-
* @category Epics
|
|
16
|
-
*/
|
|
17
|
-
export declare function selectViewFailImpl(action: ActionsMap['selectViewFail'], store: Store<CoreStore, AnyAction>): Observable<AnyAction>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Store } from 'redux';
|
|
3
|
-
import { Epic, AnyAction, ActionsMap } from '../../actions/actions';
|
|
4
|
-
import { Store as CoreStore } from '../../interfaces/store';
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* @param action$
|
|
8
|
-
* @param store
|
|
9
|
-
* @category Epics
|
|
10
|
-
*/
|
|
11
|
-
export declare const userDrillDown: Epic;
|
|
12
|
-
/**
|
|
13
|
-
* Default implementation for `userDrillDown` epic.
|
|
14
|
-
*
|
|
15
|
-
* Sends a request to fetch row meta; will write a console error if request fails.
|
|
16
|
-
* Otherwise a chain of actions will be dispatched:
|
|
17
|
-
*
|
|
18
|
-
* - {@link ActionPayloadTypes.bcFetchRowMetaSuccess | bcFetchRowMetaSuccess} for drilldowns not of {@link DrillDownType.inner | DrillDownType.inner} type
|
|
19
|
-
* - {@link ActionPayloadTypes.userDrillDownSuccess | userDrillDownSuccess}
|
|
20
|
-
* - {@link ActionPayloadTypes.drillDown | drillDown}
|
|
21
|
-
*
|
|
22
|
-
* Drilldown url is taken from {@link WidgetFieldBase.drillDown | WidgetField.drillDown} property in widget meta configuration or from record
|
|
23
|
-
* directly if record's property specified in {@link WidgetFieldBase.drillDownKey | WidgetField.drillDownKey}
|
|
24
|
-
*
|
|
25
|
-
* @param action This epic will fire on {@link ActionPayloadTypes.userDrillDown | userDrillDown} action
|
|
26
|
-
* @param store Redux store instance
|
|
27
|
-
* @category Epics
|
|
28
|
-
*/
|
|
29
|
-
export declare function userDrillDownImpl(action: ActionsMap['userDrillDown'], store: Store<CoreStore>): Observable<AnyAction>;
|
package/epics/router.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const routerEpics: {
|
|
2
|
-
changeLocation: import("../actions/actions").Epic;
|
|
3
|
-
loginDone: import("../actions/actions").Epic;
|
|
4
|
-
changeScreen: import("../actions/actions").Epic;
|
|
5
|
-
changeView: import("../actions/actions").Epic;
|
|
6
|
-
drillDown: import("../actions/actions").Epic;
|
|
7
|
-
userDrillDown: import("../actions/actions").Epic;
|
|
8
|
-
handleRouter: import("../actions/actions").Epic;
|
|
9
|
-
selectScreenFail: import("../actions/actions").Epic;
|
|
10
|
-
selectViewFail: import("../actions/actions").Epic;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Store } from 'redux';
|
|
3
|
-
import { Epic, AnyAction, ActionsMap } from '../../actions/actions';
|
|
4
|
-
import { Store as CoreStore } from '../../interfaces/store';
|
|
5
|
-
export declare const knownHttpErrors: number[];
|
|
6
|
-
export declare const apiError: Epic;
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
* @param action
|
|
10
|
-
* @param store
|
|
11
|
-
* @category Epics
|
|
12
|
-
*/
|
|
13
|
-
export declare function apiErrorImpl(action: ActionsMap['apiError'], store: Store<CoreStore, AnyAction>): Observable<AnyAction>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Store } from 'redux';
|
|
3
|
-
import { Epic, AnyAction, ActionsMap } from '../../actions/actions';
|
|
4
|
-
import { Store as CoreStore } from '../../interfaces/store';
|
|
5
|
-
export declare const httpError401: Epic;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* @param action
|
|
9
|
-
* @param store
|
|
10
|
-
* @category Epics
|
|
11
|
-
*/
|
|
12
|
-
export declare function httpError401Impl(action: ActionsMap['httpError'], store: Store<CoreStore, AnyAction>): Observable<AnyAction>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Store } from 'redux';
|
|
3
|
-
import { Epic, AnyAction, ActionsMap } from '../../actions/actions';
|
|
4
|
-
import { Store as CoreStore } from '../../interfaces/store';
|
|
5
|
-
export declare const httpError409: Epic;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* @param action
|
|
9
|
-
* @param store
|
|
10
|
-
* @category Epics
|
|
11
|
-
*/
|
|
12
|
-
export declare function httpError409Impl(action: ActionsMap['httpError'], store: Store<CoreStore, AnyAction>): Observable<AnyAction>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Store } from 'redux';
|
|
3
|
-
import { Epic, AnyAction, ActionsMap } from '../../actions/actions';
|
|
4
|
-
import { Store as CoreStore } from '../../interfaces/store';
|
|
5
|
-
export declare const httpError418: Epic;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* @param action
|
|
9
|
-
* @param store
|
|
10
|
-
* @category Epics
|
|
11
|
-
*/
|
|
12
|
-
export declare function httpError418Impl(action: ActionsMap['httpError'], store: Store<CoreStore, AnyAction>): Observable<AnyAction>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Store } from 'redux';
|
|
3
|
-
import { Epic, AnyAction, ActionsMap } from '../../actions/actions';
|
|
4
|
-
import { Store as CoreStore } from '../../interfaces/store';
|
|
5
|
-
export declare const httpError500: Epic;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* @param action
|
|
9
|
-
* @param store
|
|
10
|
-
* @category Epics
|
|
11
|
-
*/
|
|
12
|
-
export declare function httpError500Impl(action: ActionsMap['httpError'], store: Store<CoreStore, AnyAction>): Observable<AnyAction>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Store } from 'redux';
|
|
3
|
-
import { Epic, AnyAction, ActionsMap } from '../../actions/actions';
|
|
4
|
-
import { Store as CoreStore } from '../../interfaces/store';
|
|
5
|
-
export declare const httpErrorDefault: Epic;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* @param action
|
|
9
|
-
* @param store
|
|
10
|
-
* @category Epics
|
|
11
|
-
*/
|
|
12
|
-
export declare function httpErrorDefaultImpl(action: ActionsMap['httpError'], store: Store<CoreStore, AnyAction>): Observable<import("../..").Action<"showViewError", {
|
|
13
|
-
error: import("../../interfaces/view").ApplicationError;
|
|
14
|
-
}>>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Store } from 'redux';
|
|
3
|
-
import { Epic, AnyAction, ActionsMap } from '../../actions/actions';
|
|
4
|
-
import { Store as CoreStore } from '../../interfaces/store';
|
|
5
|
-
export declare const processPostInvoke: Epic;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* @param action
|
|
9
|
-
* @param store
|
|
10
|
-
* @category Epics
|
|
11
|
-
*/
|
|
12
|
-
export declare function processPostInvokeImpl(action: ActionsMap['processPostInvoke'], store: Store<CoreStore, AnyAction>): Observable<AnyAction>;
|
package/epics/screen.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Epic } from '../actions/actions';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @param action$
|
|
5
|
-
* @param store
|
|
6
|
-
* @category Epics
|
|
7
|
-
*/
|
|
8
|
-
export declare const downloadFile: Epic;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @param action$
|
|
12
|
-
* @param store
|
|
13
|
-
* @category Epics
|
|
14
|
-
*/
|
|
15
|
-
export declare const downloadFileByUrl: Epic;
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @param action$
|
|
19
|
-
* @param store
|
|
20
|
-
* @category Epics
|
|
21
|
-
*/
|
|
22
|
-
export declare const processPostInvokeConfirm: Epic;
|
|
23
|
-
export declare const screenEpics: {
|
|
24
|
-
processPostInvoke: Epic;
|
|
25
|
-
downloadFile: Epic;
|
|
26
|
-
downloadFileByUrl: Epic;
|
|
27
|
-
processPostInvokeConfirm: Epic;
|
|
28
|
-
apiError: Epic;
|
|
29
|
-
httpError401: Epic;
|
|
30
|
-
httpError409: Epic;
|
|
31
|
-
httpError418: Epic;
|
|
32
|
-
httpError500: Epic;
|
|
33
|
-
httpErrorDefault: Epic;
|
|
34
|
-
};
|
|
35
|
-
export default screenEpics;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ActionsMap, AnyAction, Epic } from '../../actions/actions';
|
|
2
|
-
import { Store } from 'redux';
|
|
3
|
-
import { Store as CoreStore } from '../../interfaces/store';
|
|
4
|
-
import { LoginResponse } from '../../interfaces/session';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
|
-
/**
|
|
7
|
-
* Performed on role switching
|
|
8
|
-
*
|
|
9
|
-
* @param action$ This epic will fire on {@link ActionPayloadTypes.login | login} action
|
|
10
|
-
* @param store Redux store instance
|
|
11
|
-
* @category Epics
|
|
12
|
-
*/
|
|
13
|
-
export declare const loginByAnotherRoleEpic: Epic;
|
|
14
|
-
/**
|
|
15
|
-
* Default implementation of `loginByAnotherRoleEpic` epic
|
|
16
|
-
*
|
|
17
|
-
* Performs login request with `role` parameter
|
|
18
|
-
*
|
|
19
|
-
* If `role` changed, epic changes location to default view
|
|
20
|
-
*
|
|
21
|
-
* @param action action {@link ActionPayloadTypes.login | login}
|
|
22
|
-
* @param store Store instance
|
|
23
|
-
* @category Epics
|
|
24
|
-
*/
|
|
25
|
-
export declare function loginByAnotherRoleEpicImpl(action: ActionsMap['login'], store: Store<CoreStore, AnyAction>): Observable<import("../..").Action<"loginDone", LoginResponse> | import("../..").Action<"loginFail", {
|
|
26
|
-
errorMsg: string;
|
|
27
|
-
}>>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Epic } from '../../actions/actions';
|
|
2
|
-
/**
|
|
3
|
-
* Fires on successful login; there is no default implementation related to this epic,
|
|
4
|
-
* but it can be used to customize successful login behaivior.
|
|
5
|
-
*
|
|
6
|
-
* @param action$ This epic will fire on {@link ActionPayloadTypes.login | login} action
|
|
7
|
-
* @param store Redux store instance
|
|
8
|
-
* @category Epics
|
|
9
|
-
*/
|
|
10
|
-
export declare const loginEpic: Epic;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Epic } from '../../actions/actions';
|
|
2
|
-
/**
|
|
3
|
-
* Performed on refresh meta data process.
|
|
4
|
-
*
|
|
5
|
-
* @param action$ This epic will fire on {@link ActionPayloadTypes.refreshMeta | refreshMeta} action
|
|
6
|
-
* @param store Redux store instance
|
|
7
|
-
* @category Epics
|
|
8
|
-
*/
|
|
9
|
-
export declare const refreshMetaEpic: Epic;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Epic } from '../../actions/actions';
|
|
2
|
-
/**
|
|
3
|
-
* Activates process of role switching
|
|
4
|
-
*
|
|
5
|
-
* @param action$ This epic will fire on {@link ActionPayloadTypes.switchRole | switchRole} action
|
|
6
|
-
* @param store Redux store instance
|
|
7
|
-
* @category Epics
|
|
8
|
-
*/
|
|
9
|
-
export declare const switchRoleEpic: Epic;
|
package/epics/session.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const sessionEpics: {
|
|
2
|
-
loginByAnotherRoleEpic: import("../actions/actions").Epic;
|
|
3
|
-
refreshMetaEpic: import("../actions/actions").Epic;
|
|
4
|
-
refreshMetaAndReloadPage: import("../actions/actions").Epic;
|
|
5
|
-
switchRoleEpic: import("../actions/actions").Epic;
|
|
6
|
-
loginEpic: import("../actions/actions").Epic;
|
|
7
|
-
};
|
package/epics/utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Store } from 'redux';
|
|
3
|
-
import { Epic, AnyAction, ActionsMap } from '../../actions/actions';
|
|
4
|
-
import { Store as CoreStore } from '../../interfaces/store';
|
|
5
|
-
/**
|
|
6
|
-
* It sends customAction request for `file-upload-save` endpoint with `bulkIds` data
|
|
7
|
-
* containing ids of uploaded files.
|
|
8
|
-
* On success it fires `sendOperationSuccess`, `bcForceUpdate` and `closeViewPopup` actions
|
|
9
|
-
* to refresh business component and close popup.
|
|
10
|
-
*
|
|
11
|
-
* It also launces postOperationRoutine to handle pre and post invokes.
|
|
12
|
-
*
|
|
13
|
-
* @param action removeMultivalueTag
|
|
14
|
-
* @param store Store instance
|
|
15
|
-
*/
|
|
16
|
-
export declare const fileUploadConfirm: Epic;
|
|
17
|
-
/**
|
|
18
|
-
* Default implementation for `fileUploadConfirm` epic
|
|
19
|
-
*
|
|
20
|
-
* It sends customAction request for `file-upload-save` endpoint with `bulkIds` data
|
|
21
|
-
* containing ids of uploaded files.
|
|
22
|
-
* On success it fires `sendOperationSuccess`, `bcForceUpdate` and `closeViewPopup` actions
|
|
23
|
-
* to refresh business component and close popup.
|
|
24
|
-
*
|
|
25
|
-
* It also launces postOperationRoutine to handle pre and post invokes.
|
|
26
|
-
*
|
|
27
|
-
* @param action removeMultivalueTag
|
|
28
|
-
* @param store Store instance
|
|
29
|
-
* @category Epics
|
|
30
|
-
*/
|
|
31
|
-
export declare function fileUploadConfirmImpl(action: ActionsMap['bulkUploadFiles'], store: Store<CoreStore, AnyAction>): Observable<AnyAction>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Store } from 'redux';
|
|
3
|
-
import { Epic, AnyAction, ActionsMap } from '../../actions/actions';
|
|
4
|
-
import { Store as CoreStore } from '../../interfaces/store';
|
|
5
|
-
/**
|
|
6
|
-
* Handle any `sendOperation` action which is not part of built-in operations types
|
|
7
|
-
*
|
|
8
|
-
* Request will be send to `custom-action/${screenName}/${bcUrl}?_action=${action.payload.type}` endpoint,
|
|
9
|
-
* with pending changes of the widget as requst body.
|
|
10
|
-
*
|
|
11
|
-
* Fires sendOperationSuccess, bcForceUpdate and postOperationRoutine
|
|
12
|
-
*
|
|
13
|
-
* @param action$ Payload includes operation type and widget that initiated operation
|
|
14
|
-
* @param store
|
|
15
|
-
*/
|
|
16
|
-
export declare const sendOperation: Epic;
|
|
17
|
-
/**
|
|
18
|
-
* Default implementation of `sendOperation` handler
|
|
19
|
-
*
|
|
20
|
-
* @param action
|
|
21
|
-
* @param store
|
|
22
|
-
* @category Epics
|
|
23
|
-
*/
|
|
24
|
-
export declare function sendOperationEpicImpl(action: ActionsMap['sendOperation'], store: Store<CoreStore, AnyAction>): Observable<AnyAction>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Store } from 'redux';
|
|
2
|
-
import { Epic, ActionsMap } from '../../actions/actions';
|
|
3
|
-
import { Store as CoreStore } from '../../interfaces/store';
|
|
4
|
-
/**
|
|
5
|
-
* Opens a popup with {@link AssocListPopup | associate component}.
|
|
6
|
-
*
|
|
7
|
-
* @param action$ This epic will fire on {@link ActionPayloadTypes.sendOperation | sendOperation} action where
|
|
8
|
-
* sendOperation role is matching {@link OperationTypeCrud.associate}
|
|
9
|
-
* @param store Redux store instance
|
|
10
|
-
* @returns {@link ActionPayloadTypes.showViewPopup | showViewPopup} for `${bcName}Assoc`
|
|
11
|
-
* @category Epics
|
|
12
|
-
*/
|
|
13
|
-
export declare const sendOperationAssociate: Epic;
|
|
14
|
-
/**
|
|
15
|
-
* Default implementation for `sendOperationAssociate` epic.
|
|
16
|
-
*
|
|
17
|
-
* Opens a popup with {@link AssocListPopup | associate component}.
|
|
18
|
-
*
|
|
19
|
-
* @param action This epic will fire on {@link ActionPayloadTypes.sendOperation | userDrillDown} action
|
|
20
|
-
* @param store Redux store instance
|
|
21
|
-
* @returns {@link ActionPayloadTypes.showViewPopup | showViewPopup} for `${bcName}Assoc`
|
|
22
|
-
* @category Epics
|
|
23
|
-
*/
|
|
24
|
-
export declare function sendOperationAssociateImpl(action: ActionsMap['sendOperation'], store: Store<CoreStore>): import("../..").Action<"showViewPopup", {
|
|
25
|
-
bcName: string;
|
|
26
|
-
widgetName?: string;
|
|
27
|
-
calleeBCName?: string;
|
|
28
|
-
calleeWidgetName?: string;
|
|
29
|
-
associateFieldKey?: string;
|
|
30
|
-
assocValueKey?: string;
|
|
31
|
-
active?: boolean;
|
|
32
|
-
isFilter?: boolean;
|
|
33
|
-
type?: import("../../interfaces/view").PopupType;
|
|
34
|
-
}>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Store } from 'redux';
|
|
3
|
-
import { Epic, AnyAction, ActionsMap } from '../../actions/actions';
|
|
4
|
-
import { Store as CoreStore } from '../../interfaces/store';
|
|
5
|
-
export declare const showAssocPopup: Epic;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* @param action
|
|
9
|
-
* @param store
|
|
10
|
-
* @category Epics
|
|
11
|
-
*/
|
|
12
|
-
export declare function showAssocPopupEpicImpl(action: ActionsMap['showViewPopup'], store: Store<CoreStore, AnyAction>): Observable<AnyAction>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Epic, ActionsMap, AnyAction } from '../../actions/actions';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* Fires `bcChangeCursors` and `showFileUploadPopup` to drop the cursors and show file upload popup.
|
|
5
|
-
*
|
|
6
|
-
* @param action sendOperation
|
|
7
|
-
* @param store Store instance
|
|
8
|
-
*/
|
|
9
|
-
export declare const showFileUploadPopup: Epic;
|
|
10
|
-
/**
|
|
11
|
-
* Default implementation for `showFileUploadPopupImpl` epic
|
|
12
|
-
*
|
|
13
|
-
* Fires `bcChangeCursors` and `showFileUploadPopup` to drop the cursors and show file upload popup.
|
|
14
|
-
*
|
|
15
|
-
* @param action sendOperation
|
|
16
|
-
* @param store Store instance
|
|
17
|
-
* @category Epics
|
|
18
|
-
*/
|
|
19
|
-
export declare function showFileUploadPopupImpl(action: ActionsMap['sendOperation']): Observable<AnyAction>;
|
package/epics/view.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Epic, AnyAction } from '../actions/actions';
|
|
2
|
-
import { Observable } from 'rxjs/Observable';
|
|
3
|
-
import { OperationPostInvokeAny, OperationPreInvoke } from '../interfaces/operation';
|
|
4
|
-
/**
|
|
5
|
-
* Sends row meta request when `forceActive` field fires `onChange`
|
|
6
|
-
*
|
|
7
|
-
* @param action$
|
|
8
|
-
* @param store
|
|
9
|
-
* @category Epics
|
|
10
|
-
*/
|
|
11
|
-
export declare const getRowMetaByForceActive: Epic;
|
|
12
|
-
/**
|
|
13
|
-
* Clears descendant business components pending changes on cursor change
|
|
14
|
-
*
|
|
15
|
-
* TODO: Review required as it might be no longer valid due to autosave middleware implementation
|
|
16
|
-
*
|
|
17
|
-
* @param action$
|
|
18
|
-
* @param store
|
|
19
|
-
* @category Epics
|
|
20
|
-
*/
|
|
21
|
-
export declare const clearPendingDataChangesAfterCursorChange: Epic;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @param action$
|
|
25
|
-
* @param store
|
|
26
|
-
* @category Epics
|
|
27
|
-
*/
|
|
28
|
-
export declare const selectTableCellInit: Epic;
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @param action$
|
|
32
|
-
* @param store
|
|
33
|
-
* @category Epics
|
|
34
|
-
*/
|
|
35
|
-
export declare const showAllTableRecordsInit: Epic;
|
|
36
|
-
/**
|
|
37
|
-
* Returns an array of observables for handling post- and pre-invokes from any epics handling operations
|
|
38
|
-
*
|
|
39
|
-
* @param widgetName Name of the widget that initiated the operation
|
|
40
|
-
* @param postInvoke Response post-invoke
|
|
41
|
-
* @param preInvoke Response pre-invoke
|
|
42
|
-
* @param operationType Which operation was performed
|
|
43
|
-
* @param bcName
|
|
44
|
-
* @category Utils
|
|
45
|
-
*/
|
|
46
|
-
export declare function postOperationRoutine(widgetName: string, postInvoke: OperationPostInvokeAny, preInvoke: OperationPreInvoke, operationType: string, bcName: string): Observable<AnyAction>[];
|
|
47
|
-
export declare const viewEpics: {
|
|
48
|
-
sendOperation: Epic;
|
|
49
|
-
getRowMetaByForceActive: Epic;
|
|
50
|
-
sendOperationAssociate: Epic;
|
|
51
|
-
clearPendingDataChangesAfterCursorChange: Epic;
|
|
52
|
-
selectTableCellInit: Epic;
|
|
53
|
-
showAllTableRecordsInit: Epic;
|
|
54
|
-
showAssocPopup: Epic;
|
|
55
|
-
showFileUploadPopup: Epic;
|
|
56
|
-
fileUploadConfirm: Epic;
|
|
57
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/hooks/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { useFlatFormFields } from './useFlatFormFields';
|
|
2
|
-
export { useDebounce } from './useDebounce';
|
|
3
|
-
export { useAssocRecords } from './useAssocRecords';
|
|
4
|
-
export { useWidgetOperations, getIncludedOperations } from './useWidgetOperations';
|
|
5
|
-
export { useViewTabs } from './useViewTabs';
|
|
6
|
-
export { useDrillDownUrl } from './useDrillDownUrl';
|
|
7
|
-
export { useRowMenu } from './useRowMenu';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AssociatedItem } from '../interfaces/operation';
|
|
2
|
-
import { PendingDataItem } from '../interfaces/data';
|
|
3
|
-
/**
|
|
4
|
-
* TODO
|
|
5
|
-
*
|
|
6
|
-
* @param data
|
|
7
|
-
* @param pendingChanges
|
|
8
|
-
* @param isRadio
|
|
9
|
-
* @category Hooks
|
|
10
|
-
*/
|
|
11
|
-
export declare function useAssocRecords<T extends AssociatedItem>(data: T[], pendingChanges: Record<string, PendingDataItem>, isRadio?: boolean): T[];
|
package/hooks/useDebounce.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Allows to ignore frequently changing values by returning only the last one received until specified delay.
|
|
3
|
-
*
|
|
4
|
-
* @param value Frequently changing value
|
|
5
|
-
* @param delay Delay until the next change
|
|
6
|
-
* @category Hooks
|
|
7
|
-
*/
|
|
8
|
-
export declare function useDebounce<T>(value: T, delay: number): T;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { WidgetFieldBase } from '../interfaces/widget';
|
|
2
|
-
/**
|
|
3
|
-
* @param bcName - bcName passed to field
|
|
4
|
-
* @param cursor - field ID
|
|
5
|
-
* @param fieldMeta - widget field meta
|
|
6
|
-
* @description Allows to override drilldown url from field data by drillDownKey. Checking order allows to disable
|
|
7
|
-
* drilldown link, for example if object is removed.
|
|
8
|
-
* @category Hooks
|
|
9
|
-
*/
|
|
10
|
-
export declare function useDrillDownUrl(bcName: string, fieldMeta: WidgetFieldBase, cursor: string): string | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { WidgetFieldsOrBlocks } from '../interfaces/widget';
|
|
2
|
-
/**
|
|
3
|
-
* Receive flat list of fields from array containing fields or field blocks.
|
|
4
|
-
*
|
|
5
|
-
* @template T Field type
|
|
6
|
-
* @param fields Array of fields or field blocks
|
|
7
|
-
* @category Hooks
|
|
8
|
-
*/
|
|
9
|
-
export declare function useFlatFormFields<T>(fields: WidgetFieldsOrBlocks<T>): T[];
|
package/hooks/useRowMenu.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React, { MutableRefObject } from 'react';
|
|
2
|
-
import { RowOperationsButtonInstance } from '../components/RowOperations/RowOperationsButton';
|
|
3
|
-
import { DataItem } from '@cxbox-ui/schema';
|
|
4
|
-
/**
|
|
5
|
-
* Handles interactions between `<RowOperationsButton />` and antd `<Table />`
|
|
6
|
-
*
|
|
7
|
-
* Initializes references to both components and prepares a hover configuration for table.
|
|
8
|
-
*
|
|
9
|
-
* @category Hooks
|
|
10
|
-
* @returns A tuple of three values:
|
|
11
|
-
* - operationsRef - assign this reference to `<RowOperationsButton />`
|
|
12
|
-
* - parentRef - assign this reference to common parent of `<RowOperationsButton />` and `<Table />`
|
|
13
|
-
* - handleRowHover - `onMouseEnter`/`onMouseLeave` pair for antd `<Table onRow />` property
|
|
14
|
-
*/
|
|
15
|
-
export declare function useRowMenu(): readonly [React.MutableRefObject<RowOperationsButtonInstance>, React.MutableRefObject<undefined>, (record: DataItem) => {
|
|
16
|
-
onMouseEnter: (e: React.MouseEvent<HTMLTableRowElement>) => void;
|
|
17
|
-
onMouseLeave: (e: React.MouseEvent<HTMLTableRowElement>) => void;
|
|
18
|
-
}];
|
|
19
|
-
/**
|
|
20
|
-
* Extends `ref` instance with `setRow` method which can be used to hover row
|
|
21
|
-
*
|
|
22
|
-
* When hovered, `parent` element is placed in the middle of hovered row.
|
|
23
|
-
*
|
|
24
|
-
* @param ref - Reference to `<RowOperationsButton />` instance
|
|
25
|
-
* @param parent - Common parent for `<RowOperationsButton />` and `<Table />`
|
|
26
|
-
* @param containerRef - Root element of `<RowOperationsButton />`
|
|
27
|
-
* @param skip - Condition to skip hover
|
|
28
|
-
* @param onRowHover - Callback for hovered record id
|
|
29
|
-
* @param onRowLeave - Callback when leaving hovered row
|
|
30
|
-
*/
|
|
31
|
-
export declare function useRowMenuInstance(ref: React.ForwardedRef<RowOperationsButtonInstance>, parent: MutableRefObject<HTMLElement>, containerRef: MutableRefObject<HTMLElement>, skip: boolean, onRowHover: (id: string) => void, onRowLeave: () => void): void;
|
|
32
|
-
/**
|
|
33
|
-
* Checks if mouse event is leaving the `container`
|
|
34
|
-
*
|
|
35
|
-
* Iterates through e.relatedTarget ancestors and returns true if no `container` element found.
|
|
36
|
-
* If there was another `<tr>` ancestor then we moved to another hierarchy level and true will
|
|
37
|
-
* be returned regardless of `container` presence.
|
|
38
|
-
*
|
|
39
|
-
* @param e Mouse event
|
|
40
|
-
* @param container Bounding container
|
|
41
|
-
*/
|
|
42
|
-
export declare function isOutsideMove(e: React.MouseEvent<HTMLElement>, container: HTMLElement): boolean;
|
package/hooks/useViewTabs.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
}[];
|