@cxbox-ui/core 1.37.1 → 1.37.2-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 +1072 -0
- package/dist/api/ObservableApi.d.ts +45 -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 +3189 -0
- package/dist/cxbox-ui-core.cjs.production.min.js +2 -0
- package/dist/cxbox-ui-core.esm.js +3145 -0
- package/dist/cxbox-ui-core.modern.development.js +3085 -0
- package/dist/cxbox-ui-core.modern.js +3085 -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 +3 -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 +6 -0
- package/dist/index.js +6 -0
- package/{interfaces → dist/interfaces}/bc.d.ts +2 -2
- 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 +19 -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 +11 -11
- package/dist/middlewares/autosaveMiddleware.d.ts +17 -0
- package/dist/middlewares/index.d.ts +16 -0
- package/{middlewares → dist/middlewares}/requiredFieldsMiddleware.d.ts +3 -5
- 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 +34 -0
- package/{utils → dist/utils}/autosave.d.ts +13 -2
- package/{utils → dist/utils}/bc.d.ts +2 -2
- package/dist/utils/cancelRequestEpic.d.ts +17 -0
- package/dist/utils/combineMiddlewares.d.ts +14 -0
- package/dist/utils/deleteUndefinedFromObject.d.ts +1 -0
- package/{utils → dist/utils}/filters.d.ts +1 -2
- package/{utils → dist/utils}/history.d.ts +5 -7
- package/dist/utils/index.d.ts +9 -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 +1 -0
- 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/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/{middlewares → dist/middlewares}/preInvokeMiddleware.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
package/actions/index.d.ts
DELETED
package/api/api.d.ts
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { ApiCallContext } from '../utils/api';
|
|
2
|
-
import { BcDataResponse, DataItem, PendingDataItem } from '../interfaces/data';
|
|
3
|
-
import { AssociatedItem } from '../interfaces/operation';
|
|
4
|
-
import { Observable } from 'rxjs/Observable';
|
|
5
|
-
import { CancelToken } from 'axios';
|
|
6
|
-
declare type GetParamsMap = Record<string, string | number>;
|
|
7
|
-
/**
|
|
8
|
-
* TODO
|
|
9
|
-
*
|
|
10
|
-
* @param path
|
|
11
|
-
* @param params
|
|
12
|
-
* @category Cxbox API Endpoints
|
|
13
|
-
*/
|
|
14
|
-
export declare function routerRequest(path: string, params: Record<string, unknown>): Observable<unknown>;
|
|
15
|
-
/**
|
|
16
|
-
* Send request for BC data
|
|
17
|
-
*
|
|
18
|
-
* @param screenName
|
|
19
|
-
* @param bcUrl
|
|
20
|
-
* @param params
|
|
21
|
-
* @param cancelToken
|
|
22
|
-
* @category Cxbox API Endpoints
|
|
23
|
-
*/
|
|
24
|
-
export declare function fetchBcData(screenName: string, bcUrl: string, params?: GetParamsMap, cancelToken?: CancelToken): Observable<BcDataResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* TODO
|
|
27
|
-
*
|
|
28
|
-
* @param screenName
|
|
29
|
-
* @param bcUrl
|
|
30
|
-
* @param params
|
|
31
|
-
* @category Cxbox API Endpoints
|
|
32
|
-
*/
|
|
33
|
-
export declare function fetchBcDataAll(screenName: string, bcUrl: string, params?: GetParamsMap): Observable<DataItem[]>;
|
|
34
|
-
/**
|
|
35
|
-
* Send request for `row-meta`
|
|
36
|
-
*
|
|
37
|
-
* @param screenName
|
|
38
|
-
* @param bcUrl
|
|
39
|
-
* @param params
|
|
40
|
-
* @param cancelToken
|
|
41
|
-
* @category Cxbox API Endpoints
|
|
42
|
-
*/
|
|
43
|
-
export declare function fetchRowMeta(screenName: string, bcUrl: string, params?: GetParamsMap, cancelToken?: CancelToken): Observable<import("../interfaces/rowMeta").RowMeta>;
|
|
44
|
-
/**
|
|
45
|
-
* Request to create a new data record
|
|
46
|
-
*
|
|
47
|
-
* @param screenName Screen name
|
|
48
|
-
* @param bcUrl Business component cursors hierarchy
|
|
49
|
-
* @param params
|
|
50
|
-
* @category Cxbox API Endpoints
|
|
51
|
-
*/
|
|
52
|
-
export declare function newBcData(screenName: string, bcUrl: string, context: ApiCallContext, params?: GetParamsMap): Observable<{
|
|
53
|
-
row: import("../interfaces/rowMeta").RowMeta;
|
|
54
|
-
postActions?: import("../interfaces/operation").OperationPostInvokeAny[];
|
|
55
|
-
}>;
|
|
56
|
-
/**
|
|
57
|
-
* Request to save a data record
|
|
58
|
-
*
|
|
59
|
-
* @param screenName Screen name
|
|
60
|
-
* @param bcUrl Business component cursors hierarchy
|
|
61
|
-
* @param data Changed fields
|
|
62
|
-
* @param context Call context
|
|
63
|
-
* @param params
|
|
64
|
-
* @category Cxbox API Endpoints
|
|
65
|
-
*/
|
|
66
|
-
export declare function saveBcData(screenName: string, bcUrl: string, data: PendingDataItem & {
|
|
67
|
-
vstamp: number;
|
|
68
|
-
}, context: ApiCallContext, params?: GetParamsMap): Observable<{
|
|
69
|
-
record: DataItem;
|
|
70
|
-
postActions?: import("../interfaces/operation").OperationPostInvokeAny[];
|
|
71
|
-
preInvoke?: import("../interfaces/operation").OperationPreInvoke;
|
|
72
|
-
}>;
|
|
73
|
-
/**
|
|
74
|
-
* Request to delete a data record
|
|
75
|
-
*
|
|
76
|
-
* @param screenName Screen name
|
|
77
|
-
* @param bcUrl Business component cursors hierarchy
|
|
78
|
-
* @param context Call context
|
|
79
|
-
* @param params
|
|
80
|
-
* @category Cxbox API Endpoints
|
|
81
|
-
*/
|
|
82
|
-
export declare function deleteBcData(screenName: string, bcUrl: string, context: ApiCallContext, params?: GetParamsMap): Observable<{
|
|
83
|
-
record: DataItem;
|
|
84
|
-
postActions?: import("../interfaces/operation").OperationPostInvokeAny[];
|
|
85
|
-
preInvoke?: import("../interfaces/operation").OperationPreInvoke;
|
|
86
|
-
}>;
|
|
87
|
-
/**
|
|
88
|
-
* Request for a custom operation
|
|
89
|
-
*
|
|
90
|
-
* @param screenName Screen name
|
|
91
|
-
* @param bcUrl Business component cursors hierarchy
|
|
92
|
-
* @param data Changed fields
|
|
93
|
-
* @param context Call context
|
|
94
|
-
* @param params
|
|
95
|
-
* @category Cxbox API Endpoints
|
|
96
|
-
*/
|
|
97
|
-
export declare function customAction(screenName: string, bcUrl: string, data: Record<string, any>, context: ApiCallContext, params?: GetParamsMap): Observable<{
|
|
98
|
-
record: DataItem;
|
|
99
|
-
postActions?: import("../interfaces/operation").OperationPostInvokeAny[];
|
|
100
|
-
preInvoke?: import("../interfaces/operation").OperationPreInvoke;
|
|
101
|
-
}>;
|
|
102
|
-
/**
|
|
103
|
-
* Request to save an association (many-to-many relation)
|
|
104
|
-
* - When request doest specify `bcUrl`, request body should have an array of records with a flag
|
|
105
|
-
* to set or drop an association.
|
|
106
|
-
* - When request does not specify `bcUrl`, request body should have a dictionary where key is `bcUrl`
|
|
107
|
-
* for business component and value is an array of records with associate flag
|
|
108
|
-
*
|
|
109
|
-
* @param screenName Screen name
|
|
110
|
-
* @param bcUrl Business component cursors hierarchy
|
|
111
|
-
* @param data An array of records or a dictionary
|
|
112
|
-
* @param params
|
|
113
|
-
* @category Cxbox API Endpoints
|
|
114
|
-
*/
|
|
115
|
-
export declare function associate(screenName: string, bcUrl: string, data: AssociatedItem[] | Record<string, AssociatedItem[]>, params?: GetParamsMap): Observable<any>;
|
|
116
|
-
/**
|
|
117
|
-
* Request row meta with preview of force-active changes
|
|
118
|
-
*
|
|
119
|
-
* @param screenName Screen name
|
|
120
|
-
* @param bcUrl Business component cursors hierarchy
|
|
121
|
-
* @param data Changed fields
|
|
122
|
-
* @param params
|
|
123
|
-
* @category Cxbox API Endpoints
|
|
124
|
-
*/
|
|
125
|
-
export declare function getRmByForceActive(screenName: string, bcUrl: string, data: PendingDataItem & {
|
|
126
|
-
vstamp: number;
|
|
127
|
-
}, params?: GetParamsMap): Observable<import("../interfaces/rowMeta").RowMeta>;
|
|
128
|
-
/**
|
|
129
|
-
* Request for refresh screens, views and widgets meta
|
|
130
|
-
*
|
|
131
|
-
* @category Cxbox API Endpoints
|
|
132
|
-
*/
|
|
133
|
-
export declare function refreshMeta(): Observable<unknown>;
|
|
134
|
-
/**
|
|
135
|
-
* Request for role switching
|
|
136
|
-
*
|
|
137
|
-
* @param role Code of new role
|
|
138
|
-
* @category Cxbox API Endpoints
|
|
139
|
-
*/
|
|
140
|
-
export declare function loginByRoleRequest(role: string): Observable<unknown>;
|
|
141
|
-
/**
|
|
142
|
-
* Returns new cancel token and cancel callback
|
|
143
|
-
*/
|
|
144
|
-
export declare function createCanceler(): {
|
|
145
|
-
cancel: () => void;
|
|
146
|
-
cancelToken: CancelToken;
|
|
147
|
-
};
|
|
148
|
-
export {};
|
package/api/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { loginByRoleRequest, refreshMeta, fetchBcData, fetchBcDataAll, fetchRowMeta, newBcData, saveBcData, deleteBcData, customAction, associate, getRmByForceActive } from './api';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/assets/i18n/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Resource } from 'i18next';
|
|
2
|
-
/**
|
|
3
|
-
* i18next text assets by language code
|
|
4
|
-
*/
|
|
5
|
-
declare type TextAssets = {
|
|
6
|
-
[languageCode: string]: LanguageTextAssets;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* i18next text asset
|
|
10
|
-
*/
|
|
11
|
-
declare type LanguageTextAssets = {
|
|
12
|
-
translation: Record<string, string>;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Get text assets for all supported languages: built-in and custom resources are merged
|
|
16
|
-
* with custom tokens having priority.
|
|
17
|
-
*
|
|
18
|
-
* Assets are i18next-compatible; all built-in tokens go to `translation` namespace, but client application
|
|
19
|
-
* can also use other namespaces.
|
|
20
|
-
*
|
|
21
|
-
* @param customDictionary Dictionary with new languages or new tokens/overrides for existing ones
|
|
22
|
-
* @returns Record<languageCode, textAssets>
|
|
23
|
-
*/
|
|
24
|
-
export declare function getTextAssets(customDictionary: Resource): TextAssets;
|
|
25
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RowMetaField } from '../../interfaces/rowMeta';
|
|
3
|
-
import { WidgetListField, WidgetMeta } from '../../interfaces/widget';
|
|
4
|
-
import { BcFilter } from '../../interfaces/filters';
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated TODO: Remove in 2.0.0 by merging with ColumnFilterProps
|
|
7
|
-
*/
|
|
8
|
-
export interface ColumnFilterOwnProps {
|
|
9
|
-
widgetName: string;
|
|
10
|
-
widgetMeta: WidgetListField;
|
|
11
|
-
rowMeta: RowMetaField;
|
|
12
|
-
}
|
|
13
|
-
export interface ColumnFilterProps extends ColumnFilterOwnProps {
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated TODO: Remove in 2.0.0 in favor of widget
|
|
16
|
-
*/
|
|
17
|
-
bcName?: string;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated TODO: Remove in 2.0.0, handled internally
|
|
20
|
-
*/
|
|
21
|
-
filter?: BcFilter;
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated TODO: Remove in 2.0.0, handled internaly
|
|
24
|
-
*/
|
|
25
|
-
widget?: WidgetMeta;
|
|
26
|
-
components?: {
|
|
27
|
-
popup: React.ReactNode;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated TODO: Remove in 2.0.0, handled by ColumnFilterPopup now
|
|
31
|
-
*/
|
|
32
|
-
onApply?: (bcName: string, filter: BcFilter) => void;
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated TODO: Remove in 2.0.0, handled by ColumnFilterPopup now
|
|
35
|
-
*/
|
|
36
|
-
onCancel?: (bcName: string, filter: BcFilter) => void;
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated TODO: Remove in 2.0.0, handled internally
|
|
39
|
-
*/
|
|
40
|
-
onMultivalueAssocOpen?: (bcName: string, calleeBCName: string, assocValueKey: string, associateFieldKey: string) => void;
|
|
41
|
-
}
|
|
42
|
-
export declare function ColumnFilter({ widgetName, widgetMeta, rowMeta, components }: ColumnFilterProps): JSX.Element;
|
|
43
|
-
declare const _default: React.MemoExoticComponent<typeof ColumnFilter>;
|
|
44
|
-
/**
|
|
45
|
-
* @category Components
|
|
46
|
-
*/
|
|
47
|
-
export default _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { BcSorter } from '../../interfaces/filters';
|
|
3
|
-
export interface ColumnSortOwnProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
widgetName: string;
|
|
6
|
-
fieldKey: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ColumnSortProps extends ColumnSortOwnProps {
|
|
9
|
-
sorter: BcSorter;
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated TODO: Remove in 2.0.0 in favor of widget name
|
|
12
|
-
*/
|
|
13
|
-
bcName: string;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated TODO: Remove in 2.0.0, get page directly from the store
|
|
16
|
-
*/
|
|
17
|
-
page: number;
|
|
18
|
-
infinitePagination: boolean;
|
|
19
|
-
onSort: (bcName: string, sorter: BcSorter, page: number, widgetName: string, infinitePagination: boolean) => void;
|
|
20
|
-
}
|
|
21
|
-
export declare const ColumnSort: FunctionComponent<ColumnSortProps>;
|
|
22
|
-
declare const _default: import("react-redux").ConnectedComponent<React.FunctionComponent<ColumnSortProps>, Pick<ColumnSortProps, "className" | "widgetName" | "fieldKey"> & ColumnSortOwnProps>;
|
|
23
|
-
/**
|
|
24
|
-
* @category Components
|
|
25
|
-
*/
|
|
26
|
-
export default _default;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, ComponentType } from 'react';
|
|
2
|
-
import { RowMetaField } from '../../interfaces/rowMeta';
|
|
3
|
-
import { WidgetListField } from '../../interfaces/widget';
|
|
4
|
-
import { ColumnFilterOwnProps } from './ColumnFilter';
|
|
5
|
-
import { FieldType } from '../../interfaces/view';
|
|
6
|
-
/**
|
|
7
|
-
* TODO: Rename to ColumnTitleProps in 2.0.0
|
|
8
|
-
*/
|
|
9
|
-
export interface ColumnTitle {
|
|
10
|
-
widgetName: string;
|
|
11
|
-
/**
|
|
12
|
-
* Field meta actually
|
|
13
|
-
*/
|
|
14
|
-
widgetMeta: WidgetListField;
|
|
15
|
-
/**
|
|
16
|
-
* Field row meta
|
|
17
|
-
*/
|
|
18
|
-
rowMeta: RowMetaField;
|
|
19
|
-
components?: {
|
|
20
|
-
filter?: ComponentType<ColumnFilterOwnProps>;
|
|
21
|
-
};
|
|
22
|
-
className?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare const notSortableFields: readonly FieldType[];
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @param props
|
|
28
|
-
* @category Components
|
|
29
|
-
*/
|
|
30
|
-
export declare const ColumnTitle: FunctionComponent<ColumnTitle>;
|
|
31
|
-
export default ColumnTitle;
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface DevToolsPanelProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* @category Components
|
|
8
|
-
*/
|
|
9
|
-
export declare const MemoizedDevToolsPanel: React.NamedExoticComponent<DevToolsPanelProps>;
|
|
10
|
-
export default MemoizedDevToolsPanel;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface RefreshMetaButtonProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* @category Components
|
|
7
|
-
*/
|
|
8
|
-
export declare const MemoizedRefreshMetaButton: React.NamedExoticComponent<RefreshMetaButtonProps>;
|
|
9
|
-
export default MemoizedRefreshMetaButton;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { DataItem, DataValue, MultivalueSingleValue, PendingDataItem } from '../../interfaces/data';
|
|
3
|
-
import { RowMetaField } from '../../interfaces/rowMeta';
|
|
4
|
-
import { WidgetField, WidgetFieldBase } from '../../interfaces/widget';
|
|
5
|
-
import { TooltipPlacement } from 'antd/es/tooltip';
|
|
6
|
-
interface FieldOwnProps {
|
|
7
|
-
widgetFieldMeta: WidgetField;
|
|
8
|
-
widgetName: string;
|
|
9
|
-
bcName: string;
|
|
10
|
-
cursor: string;
|
|
11
|
-
data?: DataItem;
|
|
12
|
-
className?: string;
|
|
13
|
-
suffixClassName?: string;
|
|
14
|
-
readonly?: boolean;
|
|
15
|
-
disableDrillDown?: boolean;
|
|
16
|
-
forceFocus?: boolean;
|
|
17
|
-
forcedValue?: DataValue;
|
|
18
|
-
historyMode?: boolean;
|
|
19
|
-
tooltipPlacement?: TooltipPlacement;
|
|
20
|
-
customProps?: Record<string, any>;
|
|
21
|
-
disableHoverError?: boolean;
|
|
22
|
-
}
|
|
23
|
-
interface FieldProps extends FieldOwnProps {
|
|
24
|
-
data: DataItem;
|
|
25
|
-
pendingValue: DataValue;
|
|
26
|
-
rowFieldMeta: RowMetaField;
|
|
27
|
-
metaError: string;
|
|
28
|
-
showErrorPopup: boolean;
|
|
29
|
-
onChange: (payload: ChangeDataItemPayload) => void;
|
|
30
|
-
onDrillDown: (widgetName: string, cursor: string, bcName: string, fieldKey: string) => void;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Basic set of properties passed to every field type, including custom fields
|
|
34
|
-
*/
|
|
35
|
-
export interface BaseFieldProps {
|
|
36
|
-
/**
|
|
37
|
-
* Id of currently selected data record
|
|
38
|
-
*/
|
|
39
|
-
cursor?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Widget name
|
|
42
|
-
*/
|
|
43
|
-
widgetName?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Field description in widget meta
|
|
46
|
-
*/
|
|
47
|
-
meta?: WidgetFieldBase;
|
|
48
|
-
className?: string;
|
|
49
|
-
metaError?: string;
|
|
50
|
-
disabled?: boolean;
|
|
51
|
-
placeholder?: string;
|
|
52
|
-
readOnly?: boolean;
|
|
53
|
-
backgroundColor?: string;
|
|
54
|
-
onDrillDown?: () => void;
|
|
55
|
-
}
|
|
56
|
-
export interface ChangeDataItemPayload {
|
|
57
|
-
bcName: string;
|
|
58
|
-
cursor: string;
|
|
59
|
-
dataItem: PendingDataItem;
|
|
60
|
-
}
|
|
61
|
-
export declare const emptyMultivalue: MultivalueSingleValue[];
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @param props
|
|
65
|
-
* @category Components
|
|
66
|
-
*/
|
|
67
|
-
export declare const Field: FunctionComponent<FieldProps>;
|
|
68
|
-
/**
|
|
69
|
-
* @category Components
|
|
70
|
-
*/
|
|
71
|
-
declare const ConnectedField: import("react-redux").ConnectedComponent<React.FunctionComponent<FieldProps>, Pick<FieldProps, "className" | "widgetName" | "bcName" | "cursor" | "widgetFieldMeta" | "suffixClassName" | "readonly" | "disableDrillDown" | "forceFocus" | "forcedValue" | "historyMode" | "tooltipPlacement" | "customProps" | "disableHoverError"> & FieldOwnProps>;
|
|
72
|
-
export default ConnectedField;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataItem } from '../../interfaces/data';
|
|
3
|
-
import { ChangeDataItemPayload } from '../Field/Field';
|
|
4
|
-
export interface FileUploadOwnProps {
|
|
5
|
-
fieldName: string;
|
|
6
|
-
bcName: string;
|
|
7
|
-
cursor: string;
|
|
8
|
-
fieldDataItem: DataItem;
|
|
9
|
-
fieldValue: string;
|
|
10
|
-
fileIdKey: string;
|
|
11
|
-
fileSource: string;
|
|
12
|
-
readOnly?: boolean;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
metaError?: string;
|
|
15
|
-
snapshotKey?: string;
|
|
16
|
-
snapshotFileIdKey?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface FileUploadProps {
|
|
19
|
-
fileIdDelta: string;
|
|
20
|
-
fileNameDelta: string;
|
|
21
|
-
}
|
|
22
|
-
export interface FileUploadActions {
|
|
23
|
-
onDeleteFile: (payload: ChangeDataItemPayload) => void;
|
|
24
|
-
onStartUpload: () => void;
|
|
25
|
-
onUploadFileDone: (payload: ChangeDataItemPayload) => void;
|
|
26
|
-
onUploadFileFailed: () => void;
|
|
27
|
-
}
|
|
28
|
-
declare const _default: import("react-redux").ConnectedComponent<React.FunctionComponent<FileUploadOwnProps & FileUploadProps & FileUploadActions>, Pick<FileUploadOwnProps & FileUploadProps & FileUploadActions, "disabled" | "readOnly" | "bcName" | "cursor" | "metaError" | "fieldName" | "fieldDataItem" | "fileIdKey" | "fileSource" | "fieldValue" | "snapshotKey" | "snapshotFileIdKey"> & FileUploadOwnProps>;
|
|
29
|
-
/**
|
|
30
|
-
* @category Components
|
|
31
|
-
*/
|
|
32
|
-
export default _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Opens when column filter requested
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { DataValue } from '../../interfaces/data';
|
|
6
|
-
import { FieldType } from '@cxbox-ui/schema';
|
|
7
|
-
export interface FilterPopupProps {
|
|
8
|
-
widgetName: string;
|
|
9
|
-
fieldKey: string;
|
|
10
|
-
value: DataValue | DataValue[];
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
fieldType?: FieldType;
|
|
13
|
-
onApply?: () => void;
|
|
14
|
-
onCancel?: () => void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @param props
|
|
19
|
-
* @category Components
|
|
20
|
-
*/
|
|
21
|
-
export declare const FilterPopup: React.FC<FilterPopupProps>;
|
|
22
|
-
declare const _default: React.NamedExoticComponent<FilterPopupProps>;
|
|
23
|
-
/**
|
|
24
|
-
* @category Components
|
|
25
|
-
*/
|
|
26
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { WidgetTableMeta } from '../../interfaces/widget';
|
|
3
|
-
import { AssociatedItem } from '../../interfaces/operation';
|
|
4
|
-
import { TableEventListeners } from 'antd/lib/table';
|
|
5
|
-
import { DataItem, PendingDataItem } from '../../interfaces/data';
|
|
6
|
-
import { BcFilter } from '../../interfaces/filters';
|
|
7
|
-
import { RowMetaField } from '../../interfaces/rowMeta';
|
|
8
|
-
export interface FullHierarchyTableOwnProps {
|
|
9
|
-
meta: WidgetTableMeta;
|
|
10
|
-
nestedData?: FullHierarchyDataItem[];
|
|
11
|
-
assocValueKey?: string;
|
|
12
|
-
depth?: number;
|
|
13
|
-
parentId?: string;
|
|
14
|
-
selectable?: boolean;
|
|
15
|
-
expandedRowKeys?: string[];
|
|
16
|
-
onRow?: (record: DataItem, index: number) => TableEventListeners;
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated TODO: No longer in use, remove in 2.0.0,
|
|
19
|
-
*/
|
|
20
|
-
searchPlaceholder?: string;
|
|
21
|
-
}
|
|
22
|
-
interface FullHierarchyTableProps {
|
|
23
|
-
data: FullHierarchyDataItem[];
|
|
24
|
-
loading: boolean;
|
|
25
|
-
pendingChanges: Record<string, PendingDataItem>;
|
|
26
|
-
bcFilters: BcFilter[];
|
|
27
|
-
rowMetaFields: RowMetaField[];
|
|
28
|
-
}
|
|
29
|
-
interface FullHierarchyTableDispatchProps {
|
|
30
|
-
onSelect: (bcName: string, depth: number, dataItem: AssociatedItem, widgetName: string, assocValueKey: string) => void;
|
|
31
|
-
onDeselectAll: (bcName: string, depthFrom: number) => void;
|
|
32
|
-
onSelectAll: (bcName: string, parentId: string, depth: number, assocValueKey: string, selected: boolean) => void;
|
|
33
|
-
onSelectFullTable?: (bcName: string, dataItems: AssociatedItem[], assocValueKey: string, selected: boolean) => void;
|
|
34
|
-
addFilter?: (bcName: string, filter: BcFilter) => void;
|
|
35
|
-
removeFilter?: (bcName: string, filter: BcFilter) => void;
|
|
36
|
-
}
|
|
37
|
-
export interface FullHierarchyDataItem extends AssociatedItem {
|
|
38
|
-
parentId: string;
|
|
39
|
-
level: number;
|
|
40
|
-
}
|
|
41
|
-
export declare type FullHierarchyTableAllProps = FullHierarchyTableOwnProps & FullHierarchyTableProps & FullHierarchyTableDispatchProps;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @param props
|
|
45
|
-
* @category Components
|
|
46
|
-
*/
|
|
47
|
-
export declare const FullHierarchyTable: React.FunctionComponent<FullHierarchyTableAllProps>;
|
|
48
|
-
declare const ConnectedFullHierarchyTable: import("react-redux").ConnectedComponent<React.FunctionComponent<FullHierarchyTableAllProps>, Pick<FullHierarchyTableAllProps, "meta" | "assocValueKey" | "expandedRowKeys" | "onRow" | "parentId" | "depth" | "nestedData" | "selectable" | "searchPlaceholder"> & FullHierarchyTableOwnProps>;
|
|
49
|
-
/**
|
|
50
|
-
* @category Components
|
|
51
|
-
*/
|
|
52
|
-
export default ConnectedFullHierarchyTable;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { AssociatedItem } from '../../../interfaces/operation';
|
|
2
|
-
import { BcFilter } from '../../../interfaces/filters';
|
|
3
|
-
/**
|
|
4
|
-
* Function to memoize
|
|
5
|
-
*/
|
|
6
|
-
declare type SearchFunction = (...args: any[]) => Set<string>;
|
|
7
|
-
/**
|
|
8
|
-
* Hierarchy component helper for memoizing search results shared between all instances of component
|
|
9
|
-
* (React hooks are instance-based and not applicable for recursion-based hierarchy)
|
|
10
|
-
*/
|
|
11
|
-
export declare class HierarchySearchCache {
|
|
12
|
-
/**
|
|
13
|
-
* Stores memoized Set<string> results based on widget name, data and filters
|
|
14
|
-
*/
|
|
15
|
-
private cache;
|
|
16
|
-
/**
|
|
17
|
-
* Empty `data` or `filters` arguments don't fire a function at all
|
|
18
|
-
*/
|
|
19
|
-
private readonly emptyResult;
|
|
20
|
-
/**
|
|
21
|
-
* Search for a value through the instance cache based on widgetName, data and filters references.
|
|
22
|
-
* If the value found return it, otherwise run the function and store result in cache.
|
|
23
|
-
*
|
|
24
|
-
* @param func Function to memoize
|
|
25
|
-
* @param widgetName Widget name
|
|
26
|
-
* @param data Data array (should keep persistant reference)
|
|
27
|
-
* @param filters Filters array (should keep persistant reference)
|
|
28
|
-
*/
|
|
29
|
-
getValue(func: SearchFunction, widgetName: string, data: AssociatedItem[], filters: BcFilter[]): Set<string>;
|
|
30
|
-
/**
|
|
31
|
-
* Clear the cache for the specified widget name
|
|
32
|
-
*
|
|
33
|
-
* @param widgetName Widget name
|
|
34
|
-
*/
|
|
35
|
-
clear(widgetName: string): void;
|
|
36
|
-
}
|
|
37
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|