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