@cxbox-ui/core 2.0.0-alpha.7 → 2.0.0-alpha.9
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/README.md +261 -28
- package/dist/core.d.ts +4274 -0
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -0
- package/package.json +19 -30
- package/dist/actions/index.d.ts +0 -1081
- 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 -3674
- package/dist/cxbox-ui-core.cjs.production.min.js +0 -2
- package/dist/cxbox-ui-core.esm.js +0 -3638
- package/dist/cxbox-ui-core.modern.development.js +0 -3568
- package/dist/cxbox-ui-core.modern.js +0 -3568
- 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/saveAssociationsActiveEpic.d.ts +0 -7
- 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/changeLocationEpic.d.ts +0 -10
- package/dist/epics/router/drilldownEpic.d.ts +0 -2
- package/dist/epics/router/handleRouterEpic.d.ts +0 -2
- package/dist/epics/router/index.d.ts +0 -10
- package/dist/epics/router/loginDoneEpic.d.ts +0 -9
- package/dist/epics/router/selectScreenEpic.d.ts +0 -7
- package/dist/epics/router/selectScreenFailEpic.d.ts +0 -7
- package/dist/epics/router/selectViewEpic.d.ts +0 -7
- package/dist/epics/router/selectViewFailEpic.d.ts +0 -6
- package/dist/epics/router/userDrillDownEpic.d.ts +0 -6
- package/dist/epics/router/userDrilldownChangeCursorsEpic.d.ts +0 -2
- package/dist/epics/screen/apiErrorEpic.d.ts +0 -2
- package/dist/epics/screen/downloadFileByUrlEpic.d.ts +0 -2
- package/dist/epics/screen/downloadFileEpic.d.ts +0 -2
- package/dist/epics/screen/httpError401Epic.d.ts +0 -2
- package/dist/epics/screen/httpError409Epic.d.ts +0 -2
- package/dist/epics/screen/httpError418Epic.d.ts +0 -2
- package/dist/epics/screen/httpError500Epic.d.ts +0 -2
- package/dist/epics/screen/httpErrorDefaultEpic.d.ts +0 -2
- package/dist/epics/screen/index.d.ts +0 -10
- package/dist/epics/screen/processPostInvokeConfirmEpic.d.ts +0 -2
- package/dist/epics/screen/processPostInvokeEpic.d.ts +0 -2
- package/dist/epics/session/index.d.ts +0 -5
- package/dist/epics/session/loginByAnotherRoleEpic.d.ts +0 -5
- package/dist/epics/session/loginDoneEpic.d.ts +0 -6
- package/dist/epics/session/refreshMetaAndReloadPageEpic.d.ts +0 -2
- package/dist/epics/session/refreshMetaEpic.d.ts +0 -5
- package/dist/epics/session/switchRoleEpic.d.ts +0 -5
- package/dist/epics/utils/postOperationRoutine.d.ts +0 -13
- package/dist/epics/view/clearPendingDataChangesAfterCursorChangeEpic.d.ts +0 -7
- package/dist/epics/view/fileUploadConfirmEpic.d.ts +0 -11
- package/dist/epics/view/getRowMetaByForceActiveEpic.d.ts +0 -5
- package/dist/epics/view/index.d.ts +0 -9
- package/dist/epics/view/selectTableCellInitEpic.d.ts +0 -2
- package/dist/epics/view/sendOperationAssociateEpic.d.ts +0 -5
- package/dist/epics/view/sendOperationEpic.d.ts +0 -10
- package/dist/epics/view/showAllTableRecordsInitEpic.d.ts +0 -2
- package/dist/epics/view/showAssocPopupEpic.d.ts +0 -2
- package/dist/epics/view/showFileUploadPopupEpic.d.ts +0 -5
- package/dist/index.d.ts +0 -7
- package/dist/interfaces/bc.d.ts +0 -79
- package/dist/interfaces/customEpics.d.ts +0 -15
- package/dist/interfaces/customMiddlewares.d.ts +0 -35
- package/dist/interfaces/data.d.ts +0 -48
- package/dist/interfaces/filters.d.ts +0 -32
- package/dist/interfaces/index.d.ts +0 -27
- package/dist/interfaces/navigation.d.ts +0 -48
- package/dist/interfaces/objectMap.d.ts +0 -36
- package/dist/interfaces/operation.d.ts +0 -336
- package/dist/interfaces/router.d.ts +0 -17
- package/dist/interfaces/rowMeta.d.ts +0 -74
- package/dist/interfaces/screen.d.ts +0 -28
- package/dist/interfaces/session.d.ts +0 -83
- package/dist/interfaces/store.d.ts +0 -14
- package/dist/interfaces/tree.d.ts +0 -66
- package/dist/interfaces/view.d.ts +0 -202
- package/dist/interfaces/widget.d.ts +0 -209
- package/dist/middlewares/autosaveMiddleware.d.ts +0 -2
- package/dist/middlewares/index.d.ts +0 -6
- package/dist/middlewares/popupMiddleware.d.ts +0 -2
- package/dist/middlewares/preInvokeMiddleware.d.ts +0 -5
- package/dist/middlewares/requiredFieldsMiddleware.d.ts +0 -30
- 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/apiError.d.ts +0 -19
- package/dist/utils/autosave.d.ts +0 -37
- package/dist/utils/bc.d.ts +0 -27
- package/dist/utils/breadthFirst.d.ts +0 -21
- package/dist/utils/cancelRequestEpic.d.ts +0 -27
- package/dist/utils/combineMiddlewares.d.ts +0 -3
- package/dist/utils/deleteUndefinedFromObject.d.ts +0 -1
- package/dist/utils/exportState.d.ts +0 -0
- package/dist/utils/extendPopupWidgetTypes.d.ts +0 -8
- package/dist/utils/filters.d.ts +0 -63
- package/dist/utils/hierarchy.d.ts +0 -17
- package/dist/utils/highlightJson.d.ts +0 -12
- package/dist/utils/history.d.ts +0 -50
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/operations.d.ts +0 -21
- package/dist/utils/others.d.ts +0 -6
- package/dist/utils/strings.d.ts +0 -44
- package/dist/utils/tree.d.ts +0 -43
- package/dist/utils/viewTabs.d.ts +0 -20
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ObservableApiWrapper } from './ObservableApiWrapper';
|
|
2
|
-
import { AxiosInstance, CancelToken } from 'axios';
|
|
3
|
-
import { ApiCallContext } from '../utils';
|
|
4
|
-
import { AssociatedItem, BcDataResponse, DataItem, LoginResponse, PendingDataItem } from '../interfaces';
|
|
5
|
-
type GetParamsMap = Record<string, string | number>;
|
|
6
|
-
export declare class Api {
|
|
7
|
-
api$: ObservableApiWrapper;
|
|
8
|
-
constructor(instance: AxiosInstance);
|
|
9
|
-
routerRequest(path: string, params: Record<string, unknown>): import("rxjs").Observable<import("../interfaces").CxboxResponse>;
|
|
10
|
-
fetchBcData(screenName: string, bcUrl: string, params?: GetParamsMap, cancelToken?: CancelToken): import("rxjs").Observable<BcDataResponse>;
|
|
11
|
-
fetchBcDataAll(screenName: string, bcUrl: string, params?: GetParamsMap): import("rxjs").Observable<DataItem[]>;
|
|
12
|
-
fetchRowMeta(screenName: string, bcUrl: string, params?: GetParamsMap, cancelToken?: CancelToken): import("rxjs").Observable<import("../interfaces").RowMeta>;
|
|
13
|
-
newBcData(screenName: string, bcUrl: string, context: ApiCallContext, params?: GetParamsMap): import("rxjs").Observable<{
|
|
14
|
-
row: import("../interfaces").RowMeta;
|
|
15
|
-
postActions?: import("../interfaces").OperationPostInvokeAny[];
|
|
16
|
-
}>;
|
|
17
|
-
saveBcData(screenName: string, bcUrl: string, data: PendingDataItem & {
|
|
18
|
-
vstamp: number;
|
|
19
|
-
}, context: ApiCallContext, params?: GetParamsMap): import("rxjs").Observable<{
|
|
20
|
-
record: DataItem;
|
|
21
|
-
postActions?: import("../interfaces").OperationPostInvokeAny[];
|
|
22
|
-
preInvoke?: import("../interfaces").OperationPreInvoke;
|
|
23
|
-
}>;
|
|
24
|
-
deleteBcData(screenName: string, bcUrl: string, context: ApiCallContext, params?: GetParamsMap): import("rxjs").Observable<{
|
|
25
|
-
record: DataItem;
|
|
26
|
-
postActions?: import("../interfaces").OperationPostInvokeAny[];
|
|
27
|
-
preInvoke?: import("../interfaces").OperationPreInvoke;
|
|
28
|
-
}>;
|
|
29
|
-
customAction(screenName: string, bcUrl: string, data?: Record<string, any>, context?: ApiCallContext, params?: GetParamsMap): import("rxjs").Observable<{
|
|
30
|
-
record: DataItem;
|
|
31
|
-
postActions?: import("../interfaces").OperationPostInvokeAny[];
|
|
32
|
-
preInvoke?: import("../interfaces").OperationPreInvoke;
|
|
33
|
-
}>;
|
|
34
|
-
associate(screenName: string, bcUrl: string, data: AssociatedItem[] | Record<string, AssociatedItem[]>, params?: GetParamsMap): import("rxjs").Observable<any>;
|
|
35
|
-
getRmByForceActive(screenName: string, bcUrl: string | null, data: PendingDataItem & {
|
|
36
|
-
vstamp: number;
|
|
37
|
-
}, params?: GetParamsMap): import("rxjs").Observable<import("../interfaces").RowMeta>;
|
|
38
|
-
/**
|
|
39
|
-
* Get Cxbox API file upload endpoint based on baseURL of axios instance
|
|
40
|
-
*
|
|
41
|
-
* Handles empty baseURL and trailing slash
|
|
42
|
-
*
|
|
43
|
-
* @returns File upload endpoint
|
|
44
|
-
*/
|
|
45
|
-
get fileUploadEndpoint(): string;
|
|
46
|
-
refreshMeta(): import("rxjs").Observable<import("../interfaces").CxboxResponse>;
|
|
47
|
-
loginByRoleRequest(role: string): import("rxjs").Observable<LoginResponse>;
|
|
48
|
-
createCanceler(): {
|
|
49
|
-
cancel: () => void;
|
|
50
|
-
cancelToken: CancelToken;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { CxboxResponse } from '../interfaces';
|
|
3
|
-
import { ApiCallContext } from '../utils';
|
|
4
|
-
export declare class ObservableApiWrapper {
|
|
5
|
-
instance: AxiosInstance;
|
|
6
|
-
constructor(instance: AxiosInstance);
|
|
7
|
-
get<ResponsePayload extends CxboxResponse>(path: string, config?: AxiosRequestConfig, callContext?: ApiCallContext): import("rxjs").Observable<ResponsePayload>;
|
|
8
|
-
put<ResponsePayload extends CxboxResponse>(path: string, data: any, callContext?: ApiCallContext): import("rxjs").Observable<ResponsePayload>;
|
|
9
|
-
post<ResponsePayload extends CxboxResponse>(path: string, data: any, config?: AxiosRequestConfig, callContext?: ApiCallContext): import("rxjs").Observable<ResponsePayload>;
|
|
10
|
-
delete<ResponsePayload extends CxboxResponse>(path: string, data: any, config?: AxiosRequestConfig, callContext?: ApiCallContext): import("rxjs").Observable<ResponsePayload>;
|
|
11
|
-
}
|
package/dist/api/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Api } from './ObservableApi';
|