@cxbox-ui/core 1.37.2-alpha.8 → 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/{dist/middlewares → middlewares}/requiredFieldsMiddleware.d.ts +6 -4
- 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 -3374
- package/dist/cxbox-ui-core.cjs.production.min.js +0 -2
- package/dist/cxbox-ui-core.esm.js +0 -3339
- package/dist/cxbox-ui-core.modern.development.js +0 -3273
- package/dist/cxbox-ui-core.modern.js +0 -3273
- 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 -6
- 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 -17
- package/dist/middlewares/index.d.ts +0 -17
- package/dist/middlewares/popupMiddleware.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 -14
- 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/middlewares → middlewares}/preInvokeMiddleware.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,42 @@
|
|
|
1
|
+
import React, { MutableRefObject } from 'react';
|
|
2
|
+
import { RowOperationsButtonInstance } from '../components/RowOperations/RowOperationsButton';
|
|
3
|
+
import { DataItem } from '@cxbox-ui/schema';
|
|
4
|
+
/**
|
|
5
|
+
* Handles interactions between `<RowOperationsButton />` and antd `<Table />`
|
|
6
|
+
*
|
|
7
|
+
* Initializes references to both components and prepares a hover configuration for table.
|
|
8
|
+
*
|
|
9
|
+
* @category Hooks
|
|
10
|
+
* @returns A tuple of three values:
|
|
11
|
+
* - operationsRef - assign this reference to `<RowOperationsButton />`
|
|
12
|
+
* - parentRef - assign this reference to common parent of `<RowOperationsButton />` and `<Table />`
|
|
13
|
+
* - handleRowHover - `onMouseEnter`/`onMouseLeave` pair for antd `<Table onRow />` property
|
|
14
|
+
*/
|
|
15
|
+
export declare function useRowMenu(): readonly [React.MutableRefObject<RowOperationsButtonInstance>, React.MutableRefObject<undefined>, (record: DataItem) => {
|
|
16
|
+
onMouseEnter: (e: React.MouseEvent<HTMLTableRowElement>) => void;
|
|
17
|
+
onMouseLeave: (e: React.MouseEvent<HTMLTableRowElement>) => void;
|
|
18
|
+
}];
|
|
19
|
+
/**
|
|
20
|
+
* Extends `ref` instance with `setRow` method which can be used to hover row
|
|
21
|
+
*
|
|
22
|
+
* When hovered, `parent` element is placed in the middle of hovered row.
|
|
23
|
+
*
|
|
24
|
+
* @param ref - Reference to `<RowOperationsButton />` instance
|
|
25
|
+
* @param parent - Common parent for `<RowOperationsButton />` and `<Table />`
|
|
26
|
+
* @param containerRef - Root element of `<RowOperationsButton />`
|
|
27
|
+
* @param skip - Condition to skip hover
|
|
28
|
+
* @param onRowHover - Callback for hovered record id
|
|
29
|
+
* @param onRowLeave - Callback when leaving hovered row
|
|
30
|
+
*/
|
|
31
|
+
export declare function useRowMenuInstance(ref: React.ForwardedRef<RowOperationsButtonInstance>, parent: MutableRefObject<HTMLElement>, containerRef: MutableRefObject<HTMLElement>, skip: boolean, onRowHover: (id: string) => void, onRowLeave: () => void): void;
|
|
32
|
+
/**
|
|
33
|
+
* Checks if mouse event is leaving the `container`
|
|
34
|
+
*
|
|
35
|
+
* Iterates through e.relatedTarget ancestors and returns true if no `container` element found.
|
|
36
|
+
* If there was another `<tr>` ancestor then we moved to another hierarchy level and true will
|
|
37
|
+
* be returned regardless of `container` presence.
|
|
38
|
+
*
|
|
39
|
+
* @param e Mouse event
|
|
40
|
+
* @param container Bounding container
|
|
41
|
+
*/
|
|
42
|
+
export declare function isOutsideMove(e: React.MouseEvent<HTMLElement>, container: HTMLElement): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns an array of tabs for specified level of navigation
|
|
3
|
+
*
|
|
4
|
+
* @param depth 1 for top level navigation; 2, 3, 4 for SecondLevelMenu, ThirdLevelMenu and FourthLevelMenu
|
|
5
|
+
* @category Hooks
|
|
6
|
+
*/
|
|
7
|
+
export declare function useViewTabs(depth: number): {
|
|
8
|
+
title: string;
|
|
9
|
+
url: string;
|
|
10
|
+
selected: boolean;
|
|
11
|
+
viewName: string;
|
|
12
|
+
hidden?: boolean;
|
|
13
|
+
}[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get filters from the store for specific widget and field
|
|
3
|
+
*
|
|
4
|
+
* @param widgetName
|
|
5
|
+
* @param fieldKey
|
|
6
|
+
* @category Hooks
|
|
7
|
+
*/
|
|
8
|
+
export declare function useWidgetFilters(widgetName: string, fieldKey: string): import("../interfaces/filters").BcFilter[];
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param widgetName
|
|
12
|
+
* @param fieldKey
|
|
13
|
+
* @category Hooks
|
|
14
|
+
*/
|
|
15
|
+
export declare function useWidgetHighlightFilter(widgetName: string, fieldKey: string): import("../interfaces/filters").BcFilter;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Operation, OperationGroup, OperationInclusionDescriptor } from '../interfaces/operation';
|
|
2
|
+
import { WidgetMeta } from '../interfaces/widget';
|
|
3
|
+
/**
|
|
4
|
+
* Returns a memoized array of operations with respect to include/exclude list in widget meta configuration
|
|
5
|
+
*
|
|
6
|
+
* @param operations List of operations
|
|
7
|
+
* @param widgetMeta Widget meta configuration
|
|
8
|
+
* @param bcName BC name in case of hierarchy usage
|
|
9
|
+
* @category Hooks
|
|
10
|
+
*/
|
|
11
|
+
export declare function useWidgetOperations(operations: Array<Operation | OperationGroup>, widgetMeta: WidgetMeta, bcName?: string): (Operation | OperationGroup)[];
|
|
12
|
+
/**
|
|
13
|
+
* Returns an array of operations with respect to include/exclude lists.
|
|
14
|
+
*
|
|
15
|
+
* If element is an operation group than its nested operations also checked against inclusion/exclusion lists;
|
|
16
|
+
* noth inclusion/exclusion lists from arguments and from group declarations are checked against.
|
|
17
|
+
*
|
|
18
|
+
* @param operations List of operations
|
|
19
|
+
* @param include List of operations to include
|
|
20
|
+
* @param exclude List of operations to exclude
|
|
21
|
+
* @category Utils
|
|
22
|
+
*/
|
|
23
|
+
export declare function getIncludedOperations(operations: Array<Operation | OperationGroup>, include: OperationInclusionDescriptor[], exclude: OperationInclusionDescriptor[]): (Operation | OperationGroup)[];
|
|
24
|
+
/**
|
|
25
|
+
* Checks operation or operation group against inclusion/exclusion lists:
|
|
26
|
+
* - if inclusion list is specified then operation should be present there and shouldn't be present in exlusion list
|
|
27
|
+
* - if inlusion list is not specified then operation should be absent from exclusion list
|
|
28
|
+
*
|
|
29
|
+
* @param item Operation or operation group to check
|
|
30
|
+
* @param include List of operations to include
|
|
31
|
+
* @param exclude List of operations to exclude
|
|
32
|
+
* @category Utils
|
|
33
|
+
*/
|
|
34
|
+
export declare function shouldPickOperation(item: Operation | OperationGroup, include: OperationInclusionDescriptor[], exclude: OperationInclusionDescriptor[]): boolean;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import 'rxjs/add/observable/empty';
|
|
2
|
+
import 'rxjs/add/observable/of';
|
|
3
|
+
import 'rxjs/add/observable/fromPromise';
|
|
4
|
+
import 'rxjs/add/observable/concat';
|
|
5
|
+
import 'rxjs/add/observable/combineLatest';
|
|
6
|
+
import 'rxjs/add/observable/race';
|
|
7
|
+
import 'rxjs/add/operator/switchMap';
|
|
8
|
+
import 'rxjs/add/operator/map';
|
|
9
|
+
import 'rxjs/add/operator/mergeMap';
|
|
10
|
+
import 'rxjs/add/operator/takeWhile';
|
|
11
|
+
import 'rxjs/add/operator/catch';
|
|
12
|
+
import 'rxjs/add/operator/concat';
|
|
13
|
+
import 'rxjs/add/operator/filter';
|
|
14
|
+
import 'rxjs/add/operator/combineLatest';
|
|
15
|
+
import 'rxjs/add/operator/takeUntil';
|
|
16
|
+
import 'rxjs/add/operator/take';
|
|
17
|
+
import 'rxjs/add/operator/expand';
|
|
18
|
+
import 'rxjs/add/operator/reduce';
|
|
19
|
+
import 'rxjs/observable/merge';
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime exports of Cxbox UI.
|
|
3
|
+
*
|
|
4
|
+
* Can be imported as:
|
|
5
|
+
*
|
|
6
|
+
* `import {entityName} from '@cxbox-ui/core'`
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module Global Exports
|
|
10
|
+
*/
|
|
11
|
+
import './imports/shim';
|
|
12
|
+
import './imports/rxjs';
|
|
13
|
+
import { connect } from 'react-redux';
|
|
14
|
+
import { useTranslation } from 'react-i18next';
|
|
15
|
+
import Provider, { store, getStoreInstance, getParseLocationInstance, getBuildLocationInstance, getLocaleProviderInstance } from './Provider';
|
|
16
|
+
import { $do, types, ActionPayloadTypes, AnyAction, needSaveAction } from './actions/actions';
|
|
17
|
+
import { Action, uActionTypesMap, uActionsMap, AnyOfMap, createActionCreators, createActionTypes } from './actions/actions-utils';
|
|
18
|
+
import { historyObj, changeLocation } from './reducers/router';
|
|
19
|
+
import { axiosForApi, axiosGet, axiosPost, axiosPut, axiosDelete } from './utils/api';
|
|
20
|
+
import { buildBcUrl } from './utils/strings';
|
|
21
|
+
import { combineReducers } from './utils/redux';
|
|
22
|
+
import { buildUrl, parseBcCursors } from './utils/history';
|
|
23
|
+
import { getFilters, getSorters, parseFilters, parseSorters } from './utils/filters';
|
|
24
|
+
import { matchOperationRole, flattenOperations } from './utils/operations';
|
|
25
|
+
import { isViewNavigationItem, isViewNavigationCategory, isViewNavigationGroup } from './interfaces/navigation';
|
|
26
|
+
import { isWidgetFieldBlock, TableLikeWidgetTypes } from './interfaces/widget';
|
|
27
|
+
import { autosaveRoutine } from './utils/autosave';
|
|
28
|
+
/**
|
|
29
|
+
* @category Utils
|
|
30
|
+
*/
|
|
31
|
+
declare const parseLocation: typeof getParseLocationInstance;
|
|
32
|
+
/**
|
|
33
|
+
* @category Utils
|
|
34
|
+
*/
|
|
35
|
+
declare const buildLocation: typeof getBuildLocationInstance;
|
|
36
|
+
/**
|
|
37
|
+
* This is our public API.
|
|
38
|
+
*
|
|
39
|
+
* Any code that should be available to a client application should be exported from here.
|
|
40
|
+
* Then it becomes available for import from client application:
|
|
41
|
+
* import {matchOperationRole} from `@cxbox-ui/core`
|
|
42
|
+
*
|
|
43
|
+
* The only exception is typings (they are imported directly).
|
|
44
|
+
*
|
|
45
|
+
* Keep in mind that every item here MUST BE backward-compatible until the next major release,
|
|
46
|
+
* so be reasonable and responsible when introducing changes or new items.
|
|
47
|
+
*
|
|
48
|
+
* Every block has `Stable` and `Unstable` sections. Items in `Stable` sections have shown themself pretty
|
|
49
|
+
* robust and not likely be subjects of revisions. Items in `Unstable` sections require your attention in the
|
|
50
|
+
* next major release.
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* Cxbox UI `instance`
|
|
54
|
+
*
|
|
55
|
+
* TODO: 2.0.0 should do better job at instantiating utilities (class?)
|
|
56
|
+
*/
|
|
57
|
+
export { Provider, connect, store, getStoreInstance, combineReducers };
|
|
58
|
+
/**
|
|
59
|
+
* Components
|
|
60
|
+
*
|
|
61
|
+
* Make sure every component has backward-compatible props, i.e. no new mandatory props or changing types
|
|
62
|
+
*/
|
|
63
|
+
export * from './components';
|
|
64
|
+
/**
|
|
65
|
+
* Hooks
|
|
66
|
+
*/
|
|
67
|
+
export * from './hooks';
|
|
68
|
+
/**
|
|
69
|
+
* API endpoints
|
|
70
|
+
*/
|
|
71
|
+
export * from './api';
|
|
72
|
+
/**
|
|
73
|
+
* Router
|
|
74
|
+
*
|
|
75
|
+
* Router API is not looking good at the moment
|
|
76
|
+
*/
|
|
77
|
+
export { historyObj, changeLocation, parseLocation, buildLocation, buildUrl, parseBcCursors };
|
|
78
|
+
/**
|
|
79
|
+
* API helpers
|
|
80
|
+
*/
|
|
81
|
+
export { axiosGet, axiosPost, axiosPut, axiosDelete, axiosForApi };
|
|
82
|
+
/**
|
|
83
|
+
* Helpers
|
|
84
|
+
*/
|
|
85
|
+
export { matchOperationRole, getFilters, getSorters, parseFilters, parseSorters, TableLikeWidgetTypes, buildBcUrl, flattenOperations };
|
|
86
|
+
/**
|
|
87
|
+
* Action helpers
|
|
88
|
+
*
|
|
89
|
+
* TODO: Check how much we can remove in 2.0.0 with introduction of @cxbox-ui/cra-template-typescript
|
|
90
|
+
*/
|
|
91
|
+
export { types as coreActions, $do, needSaveAction, ActionPayloadTypes, AnyAction, Action, uActionTypesMap, uActionsMap, AnyOfMap, createActionCreators, createActionTypes };
|
|
92
|
+
/**
|
|
93
|
+
* i18n helpers
|
|
94
|
+
*/
|
|
95
|
+
export { useTranslation, getLocaleProviderInstance };
|
|
96
|
+
/**
|
|
97
|
+
* Type guards
|
|
98
|
+
*/
|
|
99
|
+
export { isViewNavigationItem, isViewNavigationGroup, isWidgetFieldBlock,
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated
|
|
102
|
+
*/
|
|
103
|
+
isViewNavigationCategory };
|
|
104
|
+
/**
|
|
105
|
+
* Epics implementations
|
|
106
|
+
*/
|
|
107
|
+
export { processPostInvokeImpl } from './epics/screen/processPostInvoke';
|
|
108
|
+
export { apiErrorImpl } from './epics/screen/apiError';
|
|
109
|
+
export { httpError401Impl } from './epics/screen/httpError401';
|
|
110
|
+
export { httpError409Impl } from './epics/screen/httpError409';
|
|
111
|
+
export { httpError418Impl } from './epics/screen/httpError418';
|
|
112
|
+
export { httpError500Impl } from './epics/screen/httpError500';
|
|
113
|
+
export { httpErrorDefaultImpl } from './epics/screen/httpErrorDefault';
|
|
114
|
+
export { fileUploadConfirmImpl } from './epics/view/fileUploadConfirm';
|
|
115
|
+
export { showFileUploadPopupImpl } from './epics/view/showFileUploadPopup';
|
|
116
|
+
export { sendOperationEpicImpl } from './epics/view/sendOperation';
|
|
117
|
+
export { showAssocPopupEpicImpl } from './epics/view/showAssocPopup';
|
|
118
|
+
export { sendOperationAssociateImpl } from './epics/view/sendOperationAssociate';
|
|
119
|
+
export { removeMultivalueTagImpl } from './epics/data/removeMultivalueTag';
|
|
120
|
+
export { bcCancelCreateDataEpicImpl } from './epics/data/bcCancelCreateDataEpic';
|
|
121
|
+
export { bcNewDataEpicImpl } from './epics/data/bcNewDataEpic';
|
|
122
|
+
export { bcFetchRowMetaRequestImpl } from './epics/data/bcFetchRowMetaRequest';
|
|
123
|
+
export { bcSelectDepthRecordImpl } from './epics/data/bcSelectDepthRecord';
|
|
124
|
+
export { selectViewImpl } from './epics/data/selectView';
|
|
125
|
+
export { bcSaveDataImpl } from './epics/data/bcSaveData';
|
|
126
|
+
export { drillDownImpl } from './epics/router/drilldown';
|
|
127
|
+
export { selectScreenImpl } from './epics/router/selectScreen';
|
|
128
|
+
export { selectViewFailImpl } from './epics/router/selectViewFail';
|
|
129
|
+
export { loginDoneImpl } from './epics/router/loginDone';
|
|
130
|
+
export { handleRouterImpl } from './epics/router/handleRouter';
|
|
131
|
+
export { userDrillDownImpl } from './epics/router/userDrillDown';
|
|
132
|
+
/**
|
|
133
|
+
* Autosave middleware utils
|
|
134
|
+
*/
|
|
135
|
+
export { autosaveRoutine };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { FilterGroup } from './filters';
|
|
5
5
|
/**
|
|
6
|
-
* Meta data
|
|
6
|
+
* Meta data for Business Component
|
|
7
7
|
*/
|
|
8
8
|
export interface BcMeta {
|
|
9
9
|
/**
|
|
@@ -48,10 +48,6 @@ export interface BcMeta {
|
|
|
48
48
|
*/
|
|
49
49
|
defaultFilter?: string;
|
|
50
50
|
}
|
|
51
|
-
export type DepthBcType = Record<number, {
|
|
52
|
-
loading?: boolean;
|
|
53
|
-
cursor?: string;
|
|
54
|
-
}>;
|
|
55
51
|
export interface BcMetaState extends BcMeta {
|
|
56
52
|
/**
|
|
57
53
|
* Data fetch for this business component is in progress
|
|
@@ -66,7 +62,7 @@ export interface BcMetaState extends BcMeta {
|
|
|
66
62
|
*/
|
|
67
63
|
limit?: number;
|
|
68
64
|
/**
|
|
69
|
-
* There is an addional pages of data
|
|
65
|
+
* There is an addional pages of data to fetch
|
|
70
66
|
*/
|
|
71
67
|
hasNext?: boolean;
|
|
72
68
|
/**
|
|
@@ -75,5 +71,8 @@ export interface BcMetaState extends BcMeta {
|
|
|
75
71
|
* Used by hierarchy widgets builded around single business component:
|
|
76
72
|
* controls which record is expanded and which children should be fetched.
|
|
77
73
|
*/
|
|
78
|
-
depthBc?:
|
|
74
|
+
depthBc?: Record<number, {
|
|
75
|
+
loading?: boolean;
|
|
76
|
+
cursor?: string;
|
|
77
|
+
}>;
|
|
79
78
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module includes types to support overriding redux-observable Epics that we use in Cxbox UI by
|
|
3
|
+
* custom implementations from client application.
|
|
4
|
+
*/
|
|
5
|
+
import { Epic } from 'redux-observable';
|
|
6
|
+
import coreEpics from '../epics';
|
|
7
|
+
/**
|
|
8
|
+
* Very loose definition of epic; comes from the situation that client applications
|
|
9
|
+
* does not inherit generic Epic from 'redux-observable` but define their own.
|
|
10
|
+
* TODO: We can probably type it better for 2.0.0 with UI scaffolding.
|
|
11
|
+
*/
|
|
12
|
+
export declare type AnyEpic = ($action: any, store: any) => any;
|
|
13
|
+
/**
|
|
14
|
+
* A union of core epic slices: usually consistent with root reducer slices
|
|
15
|
+
*/
|
|
16
|
+
export declare type RootEpicSlices = keyof typeof coreEpics;
|
|
17
|
+
/**
|
|
18
|
+
* All epics for particular slice
|
|
19
|
+
*/
|
|
20
|
+
export declare type SliceEpics<Slice> = Slice extends RootEpicSlices ? typeof coreEpics[Slice] : Record<string, NewEpicDescriptor>;
|
|
21
|
+
/**
|
|
22
|
+
* Names for all epics in a specified slice
|
|
23
|
+
*/
|
|
24
|
+
export declare type SliceEpicsNames<Slice> = keyof SliceEpics<Slice>;
|
|
25
|
+
/**
|
|
26
|
+
* Client configuration to override or disable specific core epic
|
|
27
|
+
*/
|
|
28
|
+
export declare type CustomEpicDescriptor = AnyEpic | null;
|
|
29
|
+
/**
|
|
30
|
+
* Describes epics that exists only in client application and do not have a matching core epic
|
|
31
|
+
*/
|
|
32
|
+
export declare type NewEpicDescriptor = {
|
|
33
|
+
[epicName: string]: CustomEpicDescriptor;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Client configuration to specific root epic slice
|
|
37
|
+
*/
|
|
38
|
+
export declare type CustomEpicSlice<Slice extends RootEpicSlices = any> = Partial<Record<SliceEpicsNames<Slice>, CustomEpicDescriptor>> | NewEpicDescriptor;
|
|
39
|
+
/**
|
|
40
|
+
* A configuration for epics overriding and customization by client application.
|
|
41
|
+
*/
|
|
42
|
+
export declare type CustomEpics = {
|
|
43
|
+
[key in RootEpicSlices]?: CustomEpicSlice<key>;
|
|
44
|
+
} & {
|
|
45
|
+
[newSlice: string]: CustomEpicSlice;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated TODO: For backward compatibility; remove in 2.0.0
|
|
49
|
+
*/
|
|
50
|
+
export declare type LegacyCustomEpics = Epic<any, any>;
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated TODO: For backward compatibility; remove in 2.0.0
|
|
53
|
+
*/
|
|
54
|
+
export declare function isLegacyCustomEpics(customEpics: CustomEpics | LegacyCustomEpics): customEpics is LegacyCustomEpics;
|
|
55
|
+
export default CustomEpics;
|
|
@@ -3,7 +3,7 @@ import { middlewares } from '../middlewares';
|
|
|
3
3
|
/**
|
|
4
4
|
* Type of core middlewares
|
|
5
5
|
*/
|
|
6
|
-
export type CoreMiddlewares = typeof middlewares;
|
|
6
|
+
export declare type CoreMiddlewares = typeof middlewares;
|
|
7
7
|
/**
|
|
8
8
|
* Custom middleware interface
|
|
9
9
|
*/
|
|
@@ -20,16 +20,16 @@ export interface CustomMiddleware {
|
|
|
20
20
|
/**
|
|
21
21
|
* List the names of all core middlewares
|
|
22
22
|
*/
|
|
23
|
-
export type CoreMiddlewareType = keyof CoreMiddlewares;
|
|
23
|
+
export declare type CoreMiddlewareType = keyof CoreMiddlewares;
|
|
24
24
|
/**
|
|
25
25
|
* Descriptor of custom middleware not presented in core middlewares
|
|
26
26
|
*/
|
|
27
|
-
export type NewMiddlewareDescriptor<T = Record<string, unknown>> = Record<Exclude<keyof T, keyof CoreMiddlewares>, CustomMiddleware>;
|
|
27
|
+
export declare type NewMiddlewareDescriptor<T = Record<string, unknown>> = Record<Exclude<keyof T, keyof CoreMiddlewares>, CustomMiddleware>;
|
|
28
28
|
/**
|
|
29
29
|
* Form a dictionary of override descriptors for those middleware
|
|
30
30
|
*/
|
|
31
|
-
export type CoreMiddlewareOverrideDescriptors = Record<CoreMiddlewareType, Middleware | null>;
|
|
31
|
+
export declare type CoreMiddlewareOverrideDescriptors = Record<CoreMiddlewareType, Middleware | null>;
|
|
32
32
|
/**
|
|
33
33
|
* Type of custom middlewares
|
|
34
34
|
*/
|
|
35
|
-
export type CustomMiddlewares<T = Record<string, unknown>> = Partial<CoreMiddlewareOverrideDescriptors> | NewMiddlewareDescriptor<T>;
|
|
35
|
+
export declare type CustomMiddlewares<T = Record<string, unknown>> = Partial<CoreMiddlewareOverrideDescriptors> | NewMiddlewareDescriptor<T>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OperationPostInvokeAny, OperationPreInvoke } from './operation';
|
|
2
2
|
import { DataValue, DataItem } from '@cxbox-ui/schema';
|
|
3
|
-
export
|
|
3
|
+
export { DataValue, DataItem, MultivalueSingleValue, MultivalueSingleValueOptions, RecordSnapshotState } from '@cxbox-ui/schema';
|
|
4
4
|
/**
|
|
5
|
-
* API's response on Business Component's data
|
|
5
|
+
* API's response on Business Component's data request
|
|
6
6
|
*/
|
|
7
7
|
export interface BcDataResponse {
|
|
8
8
|
data: DataItem[];
|
|
@@ -15,7 +15,7 @@ export interface PendingDataItem {
|
|
|
15
15
|
[fieldName: string]: DataValue;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* State of `data
|
|
18
|
+
* State of `data` in global store
|
|
19
19
|
*/
|
|
20
20
|
export interface DataState {
|
|
21
21
|
[bcName: string]: DataItem[];
|
|
@@ -45,4 +45,4 @@ export interface DataItemResponse {
|
|
|
45
45
|
* `x` is name of field, for which the value will be set up.
|
|
46
46
|
* A value of `x` is name of field, from which the value will be gotten.
|
|
47
47
|
*/
|
|
48
|
-
export type PickMap = Record<string, string>;
|
|
48
|
+
export declare type PickMap = Record<string, string>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,n){for(var r in n)e[r]=n[r]}(exports,function(e){var n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=n,r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)r.d(t,o,function(n){return e[n]}.bind(null,o));return t},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="",r(r.s=35)}({35:function(e,n,r){"use strict";var t;r.r(n),r.d(n,"FilterType",(function(){return t})),function(e){e.range="range",e.equals="equals",e.greaterThan="greaterThan",e.lessThan="lessThan",e.greaterOrEqualThan="greaterOrEqualThan",e.lessOrEqualThan="lessOrEqualThan",e.contains="contains",e.specified="specified",e.specifiedBooleanSql="specifiedBooleanSql",e.equalsOneOf="equalsOneOf",e.containsOneOf="containsOneOf"}(t||(t={}))}}));
|
|
2
|
+
//# sourceMappingURL=filters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/interfaces/filters.ts"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","FilterType"],"mappings":"6DACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAH,EAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzG/B,EAAoBkC,EAAI,GAIjBlC,EAAoBA,EAAoBmC,EAAI,I,kCChErD,IAAYC,EAlBZ,kDAkBA,SAAYA,GAIR,gBACA,kBACA,4BACA,sBACA,0CACA,oCACA,sBACA,wBACA,4CACA,4BACA,gCAdJ,CAAYA,MAAU","file":"interfaces/filters.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 35);\n","/*\n * © OOO \"SI IKS LAB\", 2022-2023\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { DataValue } from './data'\n\nexport enum FilterType {\n /**\n * Transforms into combination of 'greaterOrEqualThan' and 'lessOrEqualThan' (See src/utils/filters.ts)\n */\n range = 'range',\n equals = 'equals',\n greaterThan = 'greaterThan',\n lessThan = 'lessThan',\n greaterOrEqualThan = 'greaterOrEqualThan',\n lessOrEqualThan = 'lessOrEqualThan',\n contains = 'contains',\n specified = 'specified',\n specifiedBooleanSql = 'specifiedBooleanSql',\n equalsOneOf = 'equalsOneOf',\n containsOneOf = 'containsOneOf'\n}\n\nexport interface BcFilter {\n type: FilterType\n fieldName: string\n value: DataValue | DataValue[]\n viewName?: string\n widgetName?: string\n}\n\nexport interface BcSorter {\n fieldName: string\n direction: 'asc' | 'desc'\n}\n\nexport interface FilterGroup {\n name: string\n filters: string\n}\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types exports of Cxbox UI.
|
|
3
|
+
*
|
|
4
|
+
* Can be imported as:
|
|
5
|
+
*
|
|
6
|
+
* `import {typeName} from '@cxbox-ui/core/interfaces/moduleName'`
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module Types
|
|
10
|
+
*/
|
|
11
|
+
export * as bc from './bc';
|
|
12
|
+
export * as data from './data';
|
|
13
|
+
export * as objectMap from './objectMap';
|
|
14
|
+
export * as router from './router';
|
|
15
|
+
export * as screen from './screen';
|
|
16
|
+
export * as customMiddlewares from './customMiddlewares';
|
|
17
|
+
export * as session from './session';
|
|
18
|
+
export * as store from './store';
|
|
19
|
+
export * as view from './view';
|
|
20
|
+
export * as widget from './widget';
|
|
21
|
+
export * as operation from './operation';
|
|
22
|
+
export * as rowMeta from './rowMeta';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewNavigationGroup, MenuItem, ViewNavigationCategory, ViewNavigationItem } from '@cxbox-ui/schema';
|
|
2
|
-
export
|
|
2
|
+
export { ViewNavigationGroup, MenuItem, ViewNavigationCategory, ViewNavigationItem } from '@cxbox-ui/schema';
|
|
3
3
|
/**
|
|
4
4
|
* Returns MenuItem if it is ViewNavigationItem
|
|
5
5
|
*
|
|
@@ -26,7 +26,7 @@ export declare function isViewNavigationGroup(item: MenuItem): item is ViewNavig
|
|
|
26
26
|
* 2 - `ThirdLevelMenu` tab widgets
|
|
27
27
|
* 2 - `FourthLevelMenu` tab widgets
|
|
28
28
|
*/
|
|
29
|
-
export type NavigationLevel = 1 | 2 | 3 | 4;
|
|
29
|
+
export declare type NavigationLevel = 1 | 2 | 3 | 4;
|
|
30
30
|
/**
|
|
31
31
|
* Model for displayed tab item
|
|
32
32
|
*/
|
|
@@ -13,13 +13,12 @@ export interface ObjectMap<T> {
|
|
|
13
13
|
*
|
|
14
14
|
* TODO: Move this to a an appropriate module
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export interface CxboxResponse {
|
|
17
17
|
/**
|
|
18
18
|
* If any response returs with this field, browser should redirect on this address
|
|
19
19
|
*/
|
|
20
20
|
redirectUrl?: string;
|
|
21
|
-
|
|
22
|
-
};
|
|
21
|
+
}
|
|
23
22
|
/**
|
|
24
23
|
* Types of notification messages
|
|
25
24
|
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,r){for(var n in r)e[n]=r[n]}(exports,function(e){var r={};function n(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)n.d(t,o,function(r){return e[r]}.bind(null,o));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=842)}({842:function(e,r,n){"use strict";var t;n.r(r),n.d(r,"AppNotificationType",(function(){return t})),function(e){e.success="success",e.info="info",e.warning="warning",e.error="error"}(t||(t={}))}}));
|
|
2
|
+
//# sourceMappingURL=objectMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/interfaces/objectMap.ts"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","AppNotificationType"],"mappings":"6DACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAH,EAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzG/B,EAAoBkC,EAAI,GAIjBlC,EAAoBA,EAAoBmC,EAAI,K,mCCxCrD,IAAYC,EA1CZ,2DA0CA,SAAYA,GACR,oBACA,cACA,oBACA,gBAJJ,CAAYA,MAAmB","file":"interfaces/objectMap.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 842);\n","/*\n * © OOO \"SI IKS LAB\", 2022-2023\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * A dictionary for a values of specified type\n *\n * @deprecated TODO: Remove in 2.0.0 in favor of native `Record` type\n *\n * @template T Value type\n */\nexport interface ObjectMap<T> {\n [key: string]: T | undefined\n}\n\n/**\n * Basic type for Cxbox API responses\n *\n * TODO: Move this to a an appropriate module\n */\nexport interface CxboxResponse {\n /**\n * If any response returs with this field, browser should redirect on this address\n */\n redirectUrl?: string\n}\n\n/**\n * Types of notification messages\n */\nexport enum AppNotificationType {\n success = 'success',\n info = 'info',\n warning = 'warning',\n error = 'error'\n}\n\nexport interface SystemNotification {\n id: number\n type: AppNotificationType\n message: string\n}\n"],"sourceRoot":""}
|
|
@@ -2,8 +2,7 @@ import { DrillDownType } from './router';
|
|
|
2
2
|
import { AppNotificationType } from './objectMap';
|
|
3
3
|
import { DataItem } from './data';
|
|
4
4
|
import { OperationTypeCrud, OperationType } from '@cxbox-ui/schema';
|
|
5
|
-
export
|
|
6
|
-
export { OperationTypeCrud };
|
|
5
|
+
export { OperationTypeCrud, OperationType, OperationInclusionDescriptor } from '@cxbox-ui/schema';
|
|
7
6
|
export declare const coreOperations: OperationTypeCrud[];
|
|
8
7
|
/**
|
|
9
8
|
*
|
|
@@ -134,7 +133,7 @@ export declare enum OperationPreInvokeType {
|
|
|
134
133
|
*/
|
|
135
134
|
export declare enum OperationPostInvokeType {
|
|
136
135
|
/**
|
|
137
|
-
* BC's refresh. It leads to cursor dropping, data
|
|
136
|
+
* BC's refresh. It leads to cursor dropping, data refresh of current BC and its children
|
|
138
137
|
*/
|
|
139
138
|
refreshBC = "refreshBC",
|
|
140
139
|
/**
|
|
@@ -235,7 +234,7 @@ export interface OperationPostInvoke {
|
|
|
235
234
|
type: OperationPostInvokeType | string;
|
|
236
235
|
}
|
|
237
236
|
/**
|
|
238
|
-
* BC's refresh. It leads to cursor dropping, data
|
|
237
|
+
* BC's refresh. It leads to cursor dropping, data refresh of current BC and its children
|
|
239
238
|
*/
|
|
240
239
|
export interface OperationPostInvokeRefreshBc extends OperationPostInvoke {
|
|
241
240
|
/**
|
|
@@ -307,11 +306,11 @@ export interface OperationPostInvokeShowMessage extends OperationPostInvoke {
|
|
|
307
306
|
/**
|
|
308
307
|
* A union of all action types which could be be fired after user's operation
|
|
309
308
|
*/
|
|
310
|
-
export type OperationPostInvokeAny = OperationPostInvokeRefreshBc | OperationPostInvokeDownloadFile | OperationPostInvokeDownloadFileByUrl | OperationPostInvokeDrillDown | OperationPostInvokeOpenPickList | OperationPostInvokeShowMessage | OperationPostInvokeConfirm;
|
|
309
|
+
export declare type OperationPostInvokeAny = OperationPostInvokeRefreshBc | OperationPostInvokeDownloadFile | OperationPostInvokeDownloadFileByUrl | OperationPostInvokeDrillDown | OperationPostInvokeOpenPickList | OperationPostInvokeShowMessage | OperationPostInvokeConfirm;
|
|
311
310
|
/**
|
|
312
311
|
* TODO: ???
|
|
313
312
|
*/
|
|
314
|
-
export type OperationScope = 'bc' | 'record' | 'page' | 'associate';
|
|
313
|
+
export declare type OperationScope = 'bc' | 'record' | 'page' | 'associate';
|
|
315
314
|
export interface AssociatedItem extends DataItem {
|
|
316
315
|
_associate: boolean;
|
|
317
316
|
}
|
|
@@ -328,4 +327,4 @@ export interface OperationErrorEntity {
|
|
|
328
327
|
fields: Record<string, string>;
|
|
329
328
|
id: string;
|
|
330
329
|
}
|
|
331
|
-
export type RequestType = 'data' | 'row-meta' | 'force-active';
|
|
330
|
+
export declare type RequestType = 'data' | 'row-meta' | 'force-active';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,t){for(var n in t)e[n]=t[n]}(exports,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}({16:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};t.__esModule=!0,t.run=void 0;var i=n(80);r(t,i,"run"),o(n(88),t),o(n(89),t),o(n(90),t),o(n(91),t),o(n(92),t)},19:function(e,t,n){"use strict";n.r(t),n.d(t,"coreOperations",(function(){return c})),n.d(t,"isOperationGroup",(function(){return a})),n.d(t,"OperationPreInvokeType",(function(){return o})),n.d(t,"OperationPostInvokeType",(function(){return i})),n.d(t,"OperationPostInvokeConfirmType",(function(){return u}));var r=n(16);n.d(t,"OperationTypeCrud",(function(){return r.OperationTypeCrud}));var o,i,u,c=[r.OperationTypeCrud.create,r.OperationTypeCrud.save,r.OperationTypeCrud.delete,r.OperationTypeCrud.associate,r.OperationTypeCrud.cancelCreate,r.OperationTypeCrud.fileUpload];function a(e){return Array.isArray(e.actions)}!function(e){e.confirm="confirm",e.info="info",e.error="error"}(o||(o={})),function(e){e.refreshBC="refreshBC",e.downloadFile="downloadFile",e.downloadFileByUrl="downloadFileByUrl",e.drillDown="drillDown",e.openPickList="openPickList",e.showMessage="showMessage",e.postDelete="postDelete"}(i||(i={})),function(e){e.confirm="confirm",e.confirmText="confirmText"}(u||(u={}))},57:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},80:function(e,t,n){"use strict";(function(e,r){t.__esModule=!0,t.run=void 0;var o=n(81),i=n(82),u=n(83),c=n(87);function a(){var t=["ScreenMeta","ViewMeta","WidgetMeta","SqlBc"];i.existsSync("schemas")||i.mkdirSync("schemas");var n=c.getProgramFromFiles(t.map((function(t){return o.join(e,"../","src/files/"+t+".ts")})),{strictNullChecks:!0}),r=c.buildGenerator(n,{required:!0});t.forEach((function(e){var t=r.getSchemaForSymbol(e+"Json");i.writeFile("schemas/"+e+".json",function(e){return u(e,{space:4})+"\n\n"}(t),(function(e){if(e)throw new Error("Unable to write output file: "+e.message)}))}))}t.run=a,"undefined"==typeof window&&n.c[n.s]===r&&a()}).call(this,"/",n(57)(e))},81:function(e,t){},82:function(e,t){},83:function(e,t,n){var r="undefined"!=typeof JSON?JSON:n(84);e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n=t.space||"";"number"==typeof n&&(n=Array(n+1).join(" "));var u,c="boolean"==typeof t.cycles&&t.cycles,a=t.replacer||function(e,t){return t},f=t.cmp&&(u=t.cmp,function(e){return function(t,n){var r={key:t,value:e[t]},o={key:n,value:e[n]};return u(r,o)}}),l=[];return function e(t,u,s,p){var d=n?"\n"+new Array(p+1).join(n):"",y=n?": ":":";if(s&&s.toJSON&&"function"==typeof s.toJSON&&(s=s.toJSON()),void 0!==(s=a.call(t,u,s))){if("object"!=typeof s||null===s)return r.stringify(s);if(o(s)){for(var v=[],h=0;h<s.length;h++){var b=e(s,h,s[h],p+1)||r.stringify(null);v.push(d+n+b)}return"["+v.join(",")+d+"]"}if(-1!==l.indexOf(s)){if(c)return r.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}l.push(s);var m=i(s).sort(f&&f(s));for(v=[],h=0;h<m.length;h++){var g=e(s,u=m[h],s[u],p+1);if(g){var T=r.stringify(u)+y+g;v.push(d+n+T)}}return l.splice(l.indexOf(s),1),"{"+v.join(",")+d+"}"}}({"":e},"",e,0)};var o=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},i=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},n=[];for(var r in e)t.call(e,r)&&n.push(r);return n}},84:function(e,t,n){t.parse=n(85),t.stringify=n(86)},85:function(e,t){var n,r,o,i,u={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},c=function(e){throw{name:"SyntaxError",message:e,at:n,text:o}},a=function(e){return e&&e!==r&&c("Expected '"+e+"' instead of '"+r+"'"),r=o.charAt(n),n+=1,r},f=function(){var e,t="";for("-"===r&&(t="-",a("-"));r>="0"&&r<="9";)t+=r,a();if("."===r)for(t+=".";a()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,a(),"-"!==r&&"+"!==r||(t+=r,a());r>="0"&&r<="9";)t+=r,a();if(e=+t,isFinite(e))return e;c("Bad number")},l=function(){var e,t,n,o="";if('"'===r)for(;a();){if('"'===r)return a(),o;if("\\"===r)if(a(),"u"===r){for(n=0,t=0;t<4&&(e=parseInt(a(),16),isFinite(e));t+=1)n=16*n+e;o+=String.fromCharCode(n)}else{if("string"!=typeof u[r])break;o+=u[r]}else o+=r}c("Bad string")},s=function(){for(;r&&r<=" ";)a()};i=function(){switch(s(),r){case"{":return function(){var e,t={};if("{"===r){if(a("{"),s(),"}"===r)return a("}"),t;for(;r;){if(e=l(),s(),a(":"),Object.hasOwnProperty.call(t,e)&&c('Duplicate key "'+e+'"'),t[e]=i(),s(),"}"===r)return a("}"),t;a(","),s()}}c("Bad object")}();case"[":return function(){var e=[];if("["===r){if(a("["),s(),"]"===r)return a("]"),e;for(;r;){if(e.push(i()),s(),"]"===r)return a("]"),e;a(","),s()}}c("Bad array")}();case'"':return l();case"-":return f();default:return r>="0"&&r<="9"?f():function(){switch(r){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}c("Unexpected '"+r+"'")}()}},e.exports=function(e,t){var u;return o=e,n=0,r=" ",u=i(),s(),r&&c("Syntax error"),"function"==typeof t?function e(n,r){var o,i,u=n[r];if(u&&"object"==typeof u)for(o in u)Object.prototype.hasOwnProperty.call(u,o)&&(void 0!==(i=e(u,o))?u[o]=i:delete u[o]);return t.call(n,r,u)}({"":u},""):u}},86:function(e,t){var n,r,o,i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,u={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function c(e){return i.lastIndex=0,i.test(e)?'"'+e.replace(i,(function(e){var t=u[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}e.exports=function(e,t,i){var u;if(n="",r="","number"==typeof i)for(u=0;u<i;u+=1)r+=" ";else"string"==typeof i&&(r=i);if(o=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return function e(t,i){var u,a,f,l,s,p=n,d=i[t];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(t)),"function"==typeof o&&(d=o.call(i,t,d)),typeof d){case"string":return c(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(n+=r,s=[],"[object Array]"===Object.prototype.toString.apply(d)){for(l=d.length,u=0;u<l;u+=1)s[u]=e(u,d)||"null";return f=0===s.length?"[]":n?"[\n"+n+s.join(",\n"+n)+"\n"+p+"]":"["+s.join(",")+"]",n=p,f}if(o&&"object"==typeof o)for(l=o.length,u=0;u<l;u+=1)"string"==typeof(a=o[u])&&(f=e(a,d))&&s.push(c(a)+(n?": ":":")+f);else for(a in d)Object.prototype.hasOwnProperty.call(d,a)&&(f=e(a,d))&&s.push(c(a)+(n?": ":":")+f);return f=0===s.length?"{}":n?"{\n"+n+s.join(",\n"+n)+"\n"+p+"}":"{"+s.join(",")+"}",n=p,f}}("",{"":e})}},87:function(e,t){},88:function(e,t,n){"use strict";t.__esModule=!0,t.RecordSnapshotState=void 0,function(e){e.noChange="noChange",e.new="new",e.deleted="deleted"}(t.RecordSnapshotState||(t.RecordSnapshotState={}))},89:function(e,t,n){"use strict";t.__esModule=!0},90:function(e,t,n){"use strict";t.__esModule=!0,t.OperationTypeCrud=void 0,function(e){e.create="create",e.save="save",e.delete="delete",e.associate="associate",e.cancelCreate="cancel-create",e.fileUpload="file-upload"}(t.OperationTypeCrud||(t.OperationTypeCrud={}))},91:function(e,t,n){"use strict";t.__esModule=!0,t.DrillDownType=void 0,function(e){e.inner="inner",e.relative="relative",e.relativeNew="relativeNew",e.external="external",e.externalNew="externalNew"}(t.DrillDownType||(t.DrillDownType={}))},92:function(e,t,n){"use strict";t.__esModule=!0,t.FieldType=t.PositionTypes=t.WidgetTypes=void 0,function(e){e.Info="Info",e.Form="Form",e.List="List",e.DataGrid="DataGrid",e.AssocListPopup="AssocListPopup",e.PickListPopup="PickListPopup",e.HeaderWidget="HeaderWidget",e.SecondLevelMenu="SecondLevelMenu",e.ThirdLevelMenu="ThirdLevelMenu",e.FourthLevelMenu="FourthLevelMenu",e.WidgetCreator="WidgetCreator",e.Pivot="Pivot",e.DimFilter="DimFilter",e.Text="Text",e.FlatTree="FlatTree",e.FlatTreePopup="FlatTreePopup",e.ViewNavigation="ViewNavigation",e.NavigationTabs="NavigationTabs"}(t.WidgetTypes||(t.WidgetTypes={})),function(e){e.Top="Top",e.Bottom="Bottom",e.TopAndBottom="TopAndBottom"}(t.PositionTypes||(t.PositionTypes={})),function(e){e.number="number",e.input="input",e.monthYear="monthYear",e.date="date",e.dateTime="dateTime",e.dateTimeWithSeconds="dateTimeWithSeconds",e.checkbox="checkbox",e.checkboxSql="checkboxSql",e.DMN="DMN",e.pickList="pickList",e.inlinePickList="inline-pickList",e.dictionary="dictionary",e.hidden="hidden",e.text="text",e.percent="percent",e.fileUpload="fileUpload",e.money="money",e.comboCondition="combo-condition",e.richText="richText",e.printForm="printForm",e.multifield="multifield",e.multivalue="multivalue",e.multivalueHover="multivalueHover",e.hint="hint",e.radio="radio"}(t.FieldType||(t.FieldType={}))}}));
|
|
2
|
+
//# sourceMappingURL=operation.js.map
|