ns-base-module 2.0.39 → 2.0.40
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/Icon/index.js +1 -1
- package/dist/umd/ns-base-module.min.js +1 -1
- package/package.json +1 -1
- package/dist/Button/AntdIconButton.d.ts +0 -10
- package/dist/Button/ConfigButton.d.ts +0 -17
- package/dist/Button/index.d.ts +0 -7
- package/dist/ChooseModal/index.d.ts +0 -20
- package/dist/ClassFilter/index.d.ts +0 -10
- package/dist/ClassFilter/indexVertical.d.ts +0 -10
- package/dist/ClassFilter/util.d.ts +0 -16
- package/dist/CopyCol/index.d.ts +0 -3
- package/dist/Entry/EntryCriteria.d.ts +0 -16
- package/dist/Entry/EntryItem.d.ts +0 -33
- package/dist/Entry/components/Checkbox.d.ts +0 -11
- package/dist/Entry/components/ChooseModalTable.d.ts +0 -14
- package/dist/Entry/components/Condition.d.ts +0 -8
- package/dist/Entry/components/DatePicker.d.ts +0 -11
- package/dist/Entry/components/Etable2Modal.d.ts +0 -3
- package/dist/Entry/components/Express.d.ts +0 -7
- package/dist/Entry/components/GroupInput.d.ts +0 -12
- package/dist/Entry/components/ImageText.d.ts +0 -12
- package/dist/Entry/components/Input.d.ts +0 -26
- package/dist/Entry/components/InputNumber.d.ts +0 -17
- package/dist/Entry/components/InputNumberRange.d.ts +0 -9
- package/dist/Entry/components/ListSelect.d.ts +0 -14
- package/dist/Entry/components/ObjectSelect.d.ts +0 -13
- package/dist/Entry/components/Progress.d.ts +0 -10
- package/dist/Entry/components/Radio.d.ts +0 -14
- package/dist/Entry/components/Select.d.ts +0 -28
- package/dist/Entry/components/Switch.d.ts +0 -5
- package/dist/Entry/components/TagsDatePicker.d.ts +0 -6
- package/dist/Entry/components/TimePicker.d.ts +0 -5
- package/dist/Entry/components/TreeSelect.d.ts +0 -4
- package/dist/Entry/components/utils.d.ts +0 -0
- package/dist/Entry/index.d.ts +0 -53
- package/dist/FilterPopover/Filter.d.ts +0 -31
- package/dist/FilterPopover/FilterClearIcon.d.ts +0 -7
- package/dist/FilterPopover/index.d.ts +0 -20
- package/dist/FilterPopover/vTableFilter.d.ts +0 -24
- package/dist/Icon/IconCreate.d.ts +0 -10
- package/dist/Icon/antdIcon.d.ts +0 -5
- package/dist/Icon/index.d.ts +0 -20
- package/dist/IconTools/index.d.ts +0 -12
- package/dist/IconTools/utils.d.ts +0 -14
- package/dist/SubtotalsModal/Increment.d.ts +0 -17
- package/dist/SubtotalsModal/addSubtotals.d.ts +0 -21
- package/dist/SubtotalsModal/dndQuota.d.ts +0 -26
- package/dist/SubtotalsModal/index.d.ts +0 -21
- package/dist/SubtotalsModal/subtotalTemplate.d.ts +0 -21
- package/dist/SubtotalsModal/util.d.ts +0 -2
- package/dist/SubtotalsModal/viewSubtotals.d.ts +0 -11
- package/dist/TableHeaderConfigPopover/Dustbin.d.ts +0 -4
- package/dist/TableHeaderConfigPopover/index.d.ts +0 -22
- package/dist/TableHeaderConfigPopover/updateColumns.d.ts +0 -9
- package/dist/TableHeaderConfigPopover/utils.d.ts +0 -12
- package/dist/WidgetConfig/index.d.ts +0 -39
- package/dist/index.d.ts +0 -5
- package/dist/scroll/index.d.ts +0 -60
- package/dist/scroll/stories/InfiniteScrollWithHeight.d.ts +0 -9
- package/dist/scroll/stories/PullDownToRefreshInfScroll.d.ts +0 -8
- package/dist/scroll/stories/ScrollableTargetInfScroll.d.ts +0 -8
- package/dist/scroll/stories/ScrolleableTop.d.ts +0 -8
- package/dist/scroll/stories/WindowInfiniteScrollComponent.d.ts +0 -12
- package/dist/scroll/stories/stories.d.ts +0 -1
- package/dist/scroll/utils/threshold.d.ts +0 -8
- package/dist/test/index.d.ts +0 -3
- package/dist/utils/cache.d.ts +0 -16
- package/dist/utils/enum.d.ts +0 -21
- package/dist/utils/errorMsg.d.ts +0 -2
- package/dist/utils/language.d.ts +0 -283
- package/dist/utils/request.d.ts +0 -0
- package/dist/utils/services/global.d.ts +0 -129
- package/dist/utils/utils.d.ts +0 -110
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface IDataSource {
|
|
3
|
-
code: string;
|
|
4
|
-
sumType: string;
|
|
5
|
-
expression: string;
|
|
6
|
-
key: string;
|
|
7
|
-
}
|
|
8
|
-
interface IIncrement {
|
|
9
|
-
options: {
|
|
10
|
-
label: string;
|
|
11
|
-
value: string;
|
|
12
|
-
}[];
|
|
13
|
-
value: IDataSource[];
|
|
14
|
-
onChange: (e: IDataSource[]) => void;
|
|
15
|
-
}
|
|
16
|
-
declare const Increment: React.FC<IIncrement>;
|
|
17
|
-
export default Increment;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "../../style/components/SubtotalsModal.scss";
|
|
3
|
-
import { listType } from "./dndQuota";
|
|
4
|
-
interface Iprops {
|
|
5
|
-
columns: {
|
|
6
|
-
label: string;
|
|
7
|
-
value: string;
|
|
8
|
-
}[];
|
|
9
|
-
onCancel?: () => void;
|
|
10
|
-
menuCode: string;
|
|
11
|
-
formTemplateCode: string | undefined;
|
|
12
|
-
initConfig?: Record<string, any>;
|
|
13
|
-
editItem?: Record<string, any> | null;
|
|
14
|
-
handleView?: (str: string) => void;
|
|
15
|
-
onReset?: () => void;
|
|
16
|
-
commonRequest?: any;
|
|
17
|
-
permsType?: "public" | "private";
|
|
18
|
-
changeRaadio?: (code: listType) => void;
|
|
19
|
-
}
|
|
20
|
-
declare const _default: React.ForwardRefExoticComponent<Iprops & React.RefAttributes<unknown>>;
|
|
21
|
-
export default _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "../../style/components/SubtotalsModal.scss";
|
|
3
|
-
interface IColumns {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
dataType: string;
|
|
7
|
-
entryType?: string;
|
|
8
|
-
sumType?: string;
|
|
9
|
-
bgColor?: string;
|
|
10
|
-
noDelete?: boolean;
|
|
11
|
-
expression?: string;
|
|
12
|
-
isEdit?: boolean;
|
|
13
|
-
}
|
|
14
|
-
interface Iprops {
|
|
15
|
-
columns: IColumns[];
|
|
16
|
-
initConfig: {
|
|
17
|
-
list: IColumns[];
|
|
18
|
-
numberList: IColumns[];
|
|
19
|
-
dimensionList: IColumns[];
|
|
20
|
-
quotaList: IColumns[];
|
|
21
|
-
};
|
|
22
|
-
changeRaadio?: (code: listType) => void;
|
|
23
|
-
}
|
|
24
|
-
export declare type listType = "list" | "cross" | "trans";
|
|
25
|
-
declare const _default: React.ForwardRefExoticComponent<Iprops & React.RefAttributes<{}>>;
|
|
26
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 小计弹窗
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
import "../../style/components/SubtotalsModal.scss";
|
|
6
|
-
export interface SubtotalsModalProps {
|
|
7
|
-
onOk: (values: Record<string, string[]>) => void;
|
|
8
|
-
children: React.ReactElement;
|
|
9
|
-
columns: {
|
|
10
|
-
label: string;
|
|
11
|
-
value: string;
|
|
12
|
-
}[];
|
|
13
|
-
menuCode: string;
|
|
14
|
-
formTemplateCode: string | undefined;
|
|
15
|
-
commonRequest: any;
|
|
16
|
-
variablePara?: Record<string, any>;
|
|
17
|
-
onChangeDuoQim?: Record<string, any>;
|
|
18
|
-
reloadTemplate?: () => void;
|
|
19
|
-
}
|
|
20
|
-
declare const Index: React.FC<SubtotalsModalProps>;
|
|
21
|
-
export default Index;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "../../style/components/SubtotalsModal.scss";
|
|
3
|
-
interface Imode {
|
|
4
|
-
define: string;
|
|
5
|
-
is_default?: string;
|
|
6
|
-
label: string;
|
|
7
|
-
value: string;
|
|
8
|
-
perms_type?: string;
|
|
9
|
-
owner?: "Y" | "N";
|
|
10
|
-
}
|
|
11
|
-
interface Iprops {
|
|
12
|
-
onOk: (values: Record<string, string[]>) => void;
|
|
13
|
-
handleSet: (values: Imode) => void;
|
|
14
|
-
menuCode: string;
|
|
15
|
-
formTemplateCode: string | undefined;
|
|
16
|
-
commonRequest: any;
|
|
17
|
-
onChangeDuoQim?: (values: Record<string, any>) => void;
|
|
18
|
-
templateKey?: string;
|
|
19
|
-
}
|
|
20
|
-
declare const Index: React.FC<Iprops>;
|
|
21
|
-
export default Index;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "../../style/components/SubtotalsModal.scss";
|
|
3
|
-
interface Iprops {
|
|
4
|
-
jsons: string;
|
|
5
|
-
columns: Record<string, any>;
|
|
6
|
-
menuCode: string;
|
|
7
|
-
formTemplateCode: string | undefined;
|
|
8
|
-
variablePara?: Record<string, any>;
|
|
9
|
-
}
|
|
10
|
-
declare const Index: React.FC<Iprops>;
|
|
11
|
-
export default Index;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "../../style/components/TableHeaderConfigPopover.scss";
|
|
3
|
-
interface Icolumns {
|
|
4
|
-
columns: any;
|
|
5
|
-
formTemplateCode: string | undefined;
|
|
6
|
-
menuCode: string;
|
|
7
|
-
editItem?: Record<string, any> | null;
|
|
8
|
-
updateColumns: (columnsTree: Record<string, any>[]) => void;
|
|
9
|
-
handleBack?: () => void;
|
|
10
|
-
handleSaveCallback?: () => void;
|
|
11
|
-
newColumns?: any;
|
|
12
|
-
request: any;
|
|
13
|
-
saveColumn: any;
|
|
14
|
-
crossQuery?: Boolean;
|
|
15
|
-
init: boolean;
|
|
16
|
-
onChange?: (val: any) => void;
|
|
17
|
-
}
|
|
18
|
-
interface IProps extends Icolumns {
|
|
19
|
-
menuCode: string;
|
|
20
|
-
}
|
|
21
|
-
declare const Index: React.FC<IProps>;
|
|
22
|
-
export default Index;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare type IconToolsType = {
|
|
3
|
-
menuCode: string;
|
|
4
|
-
formTemplateCode: string;
|
|
5
|
-
columns: any;
|
|
6
|
-
updateColumns: (tree: Record<string, any>[]) => void;
|
|
7
|
-
};
|
|
8
|
-
declare const Index: (props: IconToolsType) => React.JSX.Element;
|
|
9
|
-
export default Index;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare function sortColums(_columns: Record<string, any>): any;
|
|
2
|
-
export declare const initColumns: (arr: any, parent: any) => any;
|
|
3
|
-
/**
|
|
4
|
-
* customColumns 模板数据
|
|
5
|
-
* columns 新接口数据
|
|
6
|
-
*
|
|
7
|
-
* 匹配旧数据 是否有字段增删,返回新表头
|
|
8
|
-
* */
|
|
9
|
-
export declare function adapterColumns(customColumns: Record<string, any>[] | undefined, columns: Record<string, any>[] | undefined | any): {
|
|
10
|
-
JsonPares: any;
|
|
11
|
-
item: any;
|
|
12
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export declare class BaseConfig {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
config: any;
|
|
4
|
-
isInitRequestParam: boolean;
|
|
5
|
-
constructor();
|
|
6
|
-
componentParam: {
|
|
7
|
-
button: {};
|
|
8
|
-
text: {
|
|
9
|
-
img: {};
|
|
10
|
-
price: {};
|
|
11
|
-
string: {};
|
|
12
|
-
tag: {};
|
|
13
|
-
};
|
|
14
|
-
search: {};
|
|
15
|
-
icon: {};
|
|
16
|
-
map: {
|
|
17
|
-
platform: string;
|
|
18
|
-
params: {
|
|
19
|
-
key: string;
|
|
20
|
-
securityJsCode: string;
|
|
21
|
-
wxkey: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
requestParam: {
|
|
26
|
-
baseUrl: string;
|
|
27
|
-
header: {};
|
|
28
|
-
intercept: (params: any) => any;
|
|
29
|
-
};
|
|
30
|
-
init(config: any): void;
|
|
31
|
-
get: (key?: string) => any;
|
|
32
|
-
set: (obj: {
|
|
33
|
-
[x: string]: any;
|
|
34
|
-
}) => void;
|
|
35
|
-
}
|
|
36
|
-
declare const WidgetConfig: BaseConfig;
|
|
37
|
-
export { WidgetConfig };
|
|
38
|
-
declare const _default: any;
|
|
39
|
-
export default _default;
|
package/dist/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as ClassFilter } from "./ClassFilter/index";
|
|
2
|
-
export { default as IndexVertical } from "./ClassFilter/indexVertical";
|
|
3
|
-
export { default as FilterPopover } from "./FilterPopover/index";
|
|
4
|
-
export { default as IconTools } from "./IconTools/index";
|
|
5
|
-
export { default as TableHeaderConfigPopover } from "./TableHeaderConfigPopover";
|
package/dist/scroll/index.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties, Component, ReactNode } from "react";
|
|
2
|
-
declare type Fn = () => any;
|
|
3
|
-
export interface Props {
|
|
4
|
-
next: Fn;
|
|
5
|
-
hasMore: boolean;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
loader: ReactNode;
|
|
8
|
-
scrollThreshold?: number | string;
|
|
9
|
-
endMessage?: ReactNode;
|
|
10
|
-
style?: CSSProperties;
|
|
11
|
-
height?: number | string;
|
|
12
|
-
scrollableTarget?: ReactNode;
|
|
13
|
-
hasChildren?: boolean;
|
|
14
|
-
inverse?: boolean;
|
|
15
|
-
pullDownToRefresh?: boolean;
|
|
16
|
-
pullDownToRefreshContent?: ReactNode;
|
|
17
|
-
releaseToRefreshContent?: ReactNode;
|
|
18
|
-
pullDownToRefreshThreshold?: number;
|
|
19
|
-
refreshFunction?: Fn;
|
|
20
|
-
onScroll?: (e: MouseEvent) => any;
|
|
21
|
-
dataLength: number;
|
|
22
|
-
initialScrollY?: number;
|
|
23
|
-
className?: string;
|
|
24
|
-
}
|
|
25
|
-
interface State {
|
|
26
|
-
showLoader: boolean;
|
|
27
|
-
pullToRefreshThresholdBreached: boolean;
|
|
28
|
-
prevDataLength: number | undefined;
|
|
29
|
-
}
|
|
30
|
-
export default class InfiniteScroll extends Component<Props, State> {
|
|
31
|
-
constructor(props: Props);
|
|
32
|
-
private throttledOnScrollListener;
|
|
33
|
-
private _scrollableNode;
|
|
34
|
-
private el;
|
|
35
|
-
private _infScroll;
|
|
36
|
-
private lastScrollTop;
|
|
37
|
-
private actionTriggered;
|
|
38
|
-
private _pullDown;
|
|
39
|
-
private startY;
|
|
40
|
-
private currentY;
|
|
41
|
-
private dragging;
|
|
42
|
-
private maxPullDownDistance;
|
|
43
|
-
componentDidMount(): void;
|
|
44
|
-
componentWillUnmount(): void;
|
|
45
|
-
componentDidUpdate(prevProps: Props): void;
|
|
46
|
-
static getDerivedStateFromProps(nextProps: Props, prevState: State): {
|
|
47
|
-
prevDataLength: number;
|
|
48
|
-
showLoader: boolean;
|
|
49
|
-
pullToRefreshThresholdBreached: boolean;
|
|
50
|
-
} | null;
|
|
51
|
-
getScrollableTarget: () => HTMLElement | null;
|
|
52
|
-
onStart: EventListener;
|
|
53
|
-
onMove: EventListener;
|
|
54
|
-
onEnd: EventListener;
|
|
55
|
-
isElementAtTop(target: HTMLElement, scrollThreshold?: string | number): boolean;
|
|
56
|
-
isElementAtBottom(target: HTMLElement, scrollThreshold?: string | number): boolean;
|
|
57
|
-
onScrollListener: (event: MouseEvent) => void;
|
|
58
|
-
render(): React.JSX.Element;
|
|
59
|
-
}
|
|
60
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type State = {
|
|
3
|
-
data: number[];
|
|
4
|
-
};
|
|
5
|
-
export default class WindowInfiniteScrollComponent extends React.Component<{}, State> {
|
|
6
|
-
state: {
|
|
7
|
-
data: any[];
|
|
8
|
-
};
|
|
9
|
-
next: () => void;
|
|
10
|
-
render(): React.JSX.Element;
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/test/index.d.ts
DELETED
package/dist/utils/cache.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare class ListCache {
|
|
2
|
-
getColumns(key: string): any;
|
|
3
|
-
setColumns(key: string, columns: any[]): void;
|
|
4
|
-
getArgument(key: string, defaultValue?: Record<string, any>): any;
|
|
5
|
-
setArgument(key: string, argument: string): void;
|
|
6
|
-
getArgumentUpdate(key: string): any;
|
|
7
|
-
setArgumentUpdate(key: string, timeString: string): void;
|
|
8
|
-
getColumnsUpdate(key: string): any;
|
|
9
|
-
setColumnsUpdate(key: string, timeString: string): void;
|
|
10
|
-
getPagination(defaultValue?: Record<string, any>): string;
|
|
11
|
-
setPagination(argument: string): void;
|
|
12
|
-
clearPagination(): void;
|
|
13
|
-
setTagsStorage(nextActiveKey: string): void;
|
|
14
|
-
clearTagsStorage(): void;
|
|
15
|
-
getTagsStorage(): string;
|
|
16
|
-
}
|
package/dist/utils/enum.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const summaryType: {
|
|
2
|
-
label: string;
|
|
3
|
-
value: string;
|
|
4
|
-
}[];
|
|
5
|
-
export declare enum TagConditionEnum {
|
|
6
|
-
StartWith = "StartWith",
|
|
7
|
-
EndWith = "EndWith",
|
|
8
|
-
Contains = "Contains",
|
|
9
|
-
NotContains = "NotContains",
|
|
10
|
-
Equals = "Equals",
|
|
11
|
-
NotEqual = "NotEqual",
|
|
12
|
-
GreaterThan = "GreaterThan",
|
|
13
|
-
GreaterOrEqual = "GreaterOrEqual",
|
|
14
|
-
LessThan = "LessThan",
|
|
15
|
-
LessOrEqual = "LessOrEqual",
|
|
16
|
-
In = "In",
|
|
17
|
-
Between = "Between",
|
|
18
|
-
BeforeThan = "BeforeThan",
|
|
19
|
-
AfterThan = "AfterThan",
|
|
20
|
-
Default = "Default"
|
|
21
|
-
}
|
package/dist/utils/errorMsg.d.ts
DELETED