bitz-react-admin-ui 2.1.3 → 2.1.6
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/assets/iconfont/IconColumnCancelFixed.d.ts +7 -0
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +35 -0
- package/dist/assets/iconfont/IconColumnFixedLeft.d.ts +7 -0
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +35 -0
- package/dist/assets/iconfont/IconColumnFixedRight.d.ts +7 -0
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +35 -0
- package/dist/assets/iconfont/IconDragOrder.d.ts +7 -0
- package/dist/assets/iconfont/IconDragOrder.mjs +35 -0
- package/dist/assets/iconfont/index.d.ts +5 -1
- package/dist/assets/iconfont/index.mjs +105 -89
- package/dist/components/BitzFluentInput/index.d.ts +2 -5
- package/dist/components/BitzFluentInput/index.mjs +4 -58
- package/dist/components/BitzFluentSelect/index.d.ts +4 -5
- package/dist/components/BitzFluentSelect/index.mjs +4 -58
- package/dist/components/BitzFluentTreeSelect/index.mjs +6 -0
- package/dist/components/BitzTable/Dropdown/index.mjs +16 -15
- package/dist/components/BitzTable/Select/index.d.ts +4 -0
- package/dist/components/BitzTable/Select/index.mjs +11 -0
- package/dist/components/BitzTable/Select/style.d.ts +4 -0
- package/dist/components/BitzTable/Select/style.mjs +66 -0
- package/dist/components/BitzTable/Store/index.d.ts +52 -9
- package/dist/components/BitzTable/Store/index.mjs +276 -156
- package/dist/components/BitzTable/Store/utils/index.mjs +26 -25
- package/dist/components/BitzTable/Table/index.mjs +226 -229
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +82 -67
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +118 -61
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +4 -3
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +48 -47
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +5 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +84 -15
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +59 -50
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.d.ts +1 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +47 -21
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +11 -0
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +97 -0
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.d.ts +1 -6
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +63 -32
- package/dist/components/BitzTable/ToolBar/index.d.ts +9 -3
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +148 -123
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +21 -18
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +94 -92
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.d.ts +9 -0
- package/dist/utils/WithFluent.mjs +58 -0
- package/package.json +2 -1
- package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/PicRightOutlined.mjs +0 -5
- package/dist/node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/PicRightOutlined.mjs +0 -15
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { j as r } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { Select as s } from "antd";
|
|
3
|
+
import { forwardRef as m } from "react";
|
|
4
|
+
import p from "./style.mjs";
|
|
5
|
+
const i = m((e, t) => {
|
|
6
|
+
const { popupClassName: o } = p();
|
|
7
|
+
return /* @__PURE__ */ r.jsx(s, { ...e, ref: t, popupClassName: o });
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
i as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { useContext as u, useMemo as $ } from "react";
|
|
2
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/extractStyle.mjs";
|
|
3
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
|
|
4
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/StyleContext.mjs";
|
|
5
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/theme/createTheme.mjs";
|
|
6
|
+
import "../../../node_modules/.store/rc-util@5.39.1/node_modules/rc-util/es/warning.mjs";
|
|
7
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.mjs";
|
|
8
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
|
|
9
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
|
|
10
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
|
|
11
|
+
import d from "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
|
|
12
|
+
import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
13
|
+
import { BitzTableContext as g } from "../Store/index.mjs";
|
|
14
|
+
import h from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
15
|
+
import x from "../../BitzTheme/index.mjs";
|
|
16
|
+
const H = () => {
|
|
17
|
+
const { tableSize: i } = u(g), S = $(() => i ?? "lg", [i]), { theme: z, hashId: m, token: l } = x.useToken(), s = "EditableSelect", o = "editableSelect", b = (f, e, t) => {
|
|
18
|
+
var a, n, p, r, c;
|
|
19
|
+
return [
|
|
20
|
+
{
|
|
21
|
+
[`.${f}`]: {}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
[`.xl${e} .ant-select-item`]: {
|
|
25
|
+
fontSize: (a = t.Table.xlTable) == null ? void 0 : a.fontSize
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
[`.lg${e} .ant-select-item`]: {
|
|
30
|
+
fontSize: (n = t.Table.lgTable) == null ? void 0 : n.fontSize
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
[`.md${e} .ant-select-item`]: {
|
|
35
|
+
fontSize: (p = t.Table.mdTable) == null ? void 0 : p.fontSize
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
[`.sm${e} .ant-select-item`]: {
|
|
40
|
+
fontSize: (r = t.Table.smTable) == null ? void 0 : r.fontSize
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
[`.xs${e} .ant-select-item`]: {
|
|
45
|
+
fontSize: (c = t.Table.xsTable) == null ? void 0 : c.fontSize
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
];
|
|
49
|
+
};
|
|
50
|
+
d(
|
|
51
|
+
{
|
|
52
|
+
theme: z,
|
|
53
|
+
token: l,
|
|
54
|
+
hashId: m,
|
|
55
|
+
path: [o]
|
|
56
|
+
},
|
|
57
|
+
() => [b(o, s, l)]
|
|
58
|
+
);
|
|
59
|
+
const T = `${S}${s}`;
|
|
60
|
+
return {
|
|
61
|
+
popupClassName: h(o, T, m)
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
H as default
|
|
66
|
+
};
|
|
@@ -36,10 +36,25 @@ export interface StylesStateType<TableKey = any> {
|
|
|
36
36
|
defaultValue?: StylesConfigProps;
|
|
37
37
|
value?: StylesConfigProps;
|
|
38
38
|
onChange?: (val: StylesConfigOnChangeValue) => void;
|
|
39
|
-
onlineChange?: (key: TableKey,
|
|
39
|
+
onlineChange?: (key: TableKey, state: StylesConfigOnChangeValue) => void;
|
|
40
40
|
onlineGet?: (key: TableKey) => Promise<StylesConfigProps | null | undefined>;
|
|
41
41
|
}
|
|
42
|
+
export interface ExportConfigProps {
|
|
43
|
+
field: string;
|
|
44
|
+
title: string;
|
|
45
|
+
show: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface ExportConfigState<TableKey = any> {
|
|
48
|
+
persistenceType?: 'localStorage' | 'sessionStorage' | 'online';
|
|
49
|
+
persistenceKey?: TableKey;
|
|
50
|
+
defaultValue?: ExportConfigProps[];
|
|
51
|
+
value?: ExportConfigProps[];
|
|
52
|
+
onChange?: (val: ExportConfigProps[]) => void;
|
|
53
|
+
onlineChange?: (key: TableKey, state: ExportConfigProps[]) => void;
|
|
54
|
+
onlineGet?: (key: TableKey) => Promise<ExportConfigProps[] | null | undefined>;
|
|
55
|
+
}
|
|
42
56
|
export type UseContainerProps<T = any> = {
|
|
57
|
+
/** 列配置 */
|
|
43
58
|
columnsStateMap?: Record<string, ColumnsConfigProps>;
|
|
44
59
|
onColumnsStateChange?: (map: Record<string, ColumnsConfigProps>) => void;
|
|
45
60
|
columns?: BitzTableColumnsType<T>;
|
|
@@ -55,9 +70,16 @@ export type UseContainerProps<T = any> = {
|
|
|
55
70
|
defaultZebra?: StylesConfigProps['zebra'];
|
|
56
71
|
bordered?: BitzTableBorderedType;
|
|
57
72
|
defaultBordered?: BitzTableBorderedType;
|
|
73
|
+
/** 导出配置 */
|
|
74
|
+
exportConfigState?: ExportConfigState;
|
|
75
|
+
defaultExportConfig?: ExportConfigProps[];
|
|
76
|
+
exportConfig?: ExportConfigProps[];
|
|
77
|
+
onExportConfigChange?: (value: ExportConfigProps[]) => void;
|
|
78
|
+
rowHoverable?: boolean;
|
|
58
79
|
};
|
|
59
80
|
declare function useContainer(props: UseContainerProps): {
|
|
60
81
|
uuid: string;
|
|
82
|
+
columns: BitzTableColumnsType<any> | undefined;
|
|
61
83
|
persistenceType: "online" | "localStorage" | "sessionStorage" | undefined;
|
|
62
84
|
persistenceKey: any;
|
|
63
85
|
onlineChange: ((key: any, ColumnsState: Record<string, ColumnsConfigProps>) => void) | undefined;
|
|
@@ -65,21 +87,32 @@ declare function useContainer(props: UseContainerProps): {
|
|
|
65
87
|
setSortKeyColumns: (keys: string[]) => void;
|
|
66
88
|
columnsMap: Record<string, ColumnsConfigProps>;
|
|
67
89
|
setColumnsMap: (updater: Record<string, ColumnsConfigProps> | ((origin: Record<string, ColumnsConfigProps>) => Record<string, ColumnsConfigProps>), ignoreDestroy?: boolean | undefined) => void;
|
|
90
|
+
defaultColumnKeyMap: Record<string, ColumnsConfigProps>;
|
|
91
|
+
clearPersistenceStorage: () => void;
|
|
68
92
|
stylesConfig: StylesConfigProps;
|
|
69
93
|
setTableStylesConfig: (updater: StylesConfigProps | ((origin: StylesConfigProps) => StylesConfigProps), ignoreDestroy?: boolean | undefined) => void;
|
|
70
94
|
defaultTableSize: "xl" | "lg" | "md" | "sm" | "xs";
|
|
71
95
|
tableSize: DensitySize;
|
|
72
96
|
stylesStorageType: "online" | "localStorage" | "sessionStorage" | undefined;
|
|
73
97
|
stylesStorageKey: any;
|
|
74
|
-
onlineStylesConfigChange: ((key: any,
|
|
75
|
-
columns: BitzTableColumnsType<any> | undefined;
|
|
76
|
-
clearPersistenceStorage: () => void;
|
|
98
|
+
onlineStylesConfigChange: ((key: any, state: StylesConfigOnChangeValue) => void) | undefined;
|
|
77
99
|
clearStylesConfigCache: () => void;
|
|
78
100
|
defaultTableStylesConfig: StylesConfigProps;
|
|
79
|
-
|
|
101
|
+
exportConfig: ExportConfigProps[];
|
|
102
|
+
setTableExportConfig: (updater: ExportConfigProps[] | ((origin: ExportConfigProps[]) => ExportConfigProps[]), ignoreDestroy?: boolean | undefined) => void;
|
|
103
|
+
defaultTableExportConfig: ExportConfigProps[];
|
|
104
|
+
exportStorageType: "online" | "localStorage" | "sessionStorage" | undefined;
|
|
105
|
+
exportStorageKey: any;
|
|
106
|
+
onlineExportConfigChange: ((key: any, state: ExportConfigProps[]) => void) | undefined;
|
|
107
|
+
clearExportConfigCache: () => void;
|
|
108
|
+
zebra: boolean | undefined;
|
|
109
|
+
rowHoverable: boolean;
|
|
110
|
+
showColumnBorder: boolean;
|
|
111
|
+
hideRowBorder: boolean;
|
|
80
112
|
};
|
|
81
113
|
declare const BitzTableContext: import("react").Context<{
|
|
82
114
|
uuid: string;
|
|
115
|
+
columns: BitzTableColumnsType<any> | undefined;
|
|
83
116
|
persistenceType: "online" | "localStorage" | "sessionStorage" | undefined;
|
|
84
117
|
persistenceKey: any;
|
|
85
118
|
onlineChange: ((key: any, ColumnsState: Record<string, ColumnsConfigProps>) => void) | undefined;
|
|
@@ -87,18 +120,28 @@ declare const BitzTableContext: import("react").Context<{
|
|
|
87
120
|
setSortKeyColumns: (keys: string[]) => void;
|
|
88
121
|
columnsMap: Record<string, ColumnsConfigProps>;
|
|
89
122
|
setColumnsMap: (updater: Record<string, ColumnsConfigProps> | ((origin: Record<string, ColumnsConfigProps>) => Record<string, ColumnsConfigProps>), ignoreDestroy?: boolean | undefined) => void;
|
|
123
|
+
defaultColumnKeyMap: Record<string, ColumnsConfigProps>;
|
|
124
|
+
clearPersistenceStorage: () => void;
|
|
90
125
|
stylesConfig: StylesConfigProps;
|
|
91
126
|
setTableStylesConfig: (updater: StylesConfigProps | ((origin: StylesConfigProps) => StylesConfigProps), ignoreDestroy?: boolean | undefined) => void;
|
|
92
127
|
defaultTableSize: "xl" | "lg" | "md" | "sm" | "xs";
|
|
93
128
|
tableSize: DensitySize;
|
|
94
129
|
stylesStorageType: "online" | "localStorage" | "sessionStorage" | undefined;
|
|
95
130
|
stylesStorageKey: any;
|
|
96
|
-
onlineStylesConfigChange: ((key: any,
|
|
97
|
-
columns: BitzTableColumnsType<any> | undefined;
|
|
98
|
-
clearPersistenceStorage: () => void;
|
|
131
|
+
onlineStylesConfigChange: ((key: any, state: StylesConfigOnChangeValue) => void) | undefined;
|
|
99
132
|
clearStylesConfigCache: () => void;
|
|
100
133
|
defaultTableStylesConfig: StylesConfigProps;
|
|
101
|
-
|
|
134
|
+
exportConfig: ExportConfigProps[];
|
|
135
|
+
setTableExportConfig: (updater: ExportConfigProps[] | ((origin: ExportConfigProps[]) => ExportConfigProps[]), ignoreDestroy?: boolean | undefined) => void;
|
|
136
|
+
defaultTableExportConfig: ExportConfigProps[];
|
|
137
|
+
exportStorageType: "online" | "localStorage" | "sessionStorage" | undefined;
|
|
138
|
+
exportStorageKey: any;
|
|
139
|
+
onlineExportConfigChange: ((key: any, state: ExportConfigProps[]) => void) | undefined;
|
|
140
|
+
clearExportConfigCache: () => void;
|
|
141
|
+
zebra: boolean | undefined;
|
|
142
|
+
rowHoverable: boolean;
|
|
143
|
+
showColumnBorder: boolean;
|
|
144
|
+
hideRowBorder: boolean;
|
|
102
145
|
}>;
|
|
103
146
|
export type ContainerType = typeof useContainer;
|
|
104
147
|
declare const Container: React.FC<{
|