ez-react-antd 0.2.4 → 0.2.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/ConfigProvider/ConfigProvider.d.ts +2 -2
- package/dist/ConfigProvider/index.d.ts +2 -2
- package/dist/ConfigProvider/index.d.ts.map +1 -1
- package/dist/ConfigProvider/types.d.ts +14 -14
- package/dist/ConfigProvider/types.d.ts.map +1 -1
- package/dist/ConfigProvider/utils.d.ts +19 -19
- package/dist/ConfigProvider/utils.d.ts.map +1 -1
- package/dist/{ButtonAuth/ButtonAuth.d.ts → FeaturePoint/FeaturePoint.d.ts} +17 -17
- package/dist/FeaturePoint/FeaturePoint.d.ts.map +1 -0
- package/dist/FeaturePoint/index.d.ts +3 -0
- package/dist/FeaturePoint/index.d.ts.map +1 -0
- package/dist/RemoteTree/RemoteTree.d.ts +3 -3
- package/dist/RemoteTree/RemoteTree.d.ts.map +1 -1
- package/dist/SearchBar/SearchBar.d.ts +2 -2
- package/dist/SearchBar/SearchBar.d.ts.map +1 -1
- package/dist/TableActions/ActionButton/ActionButton.d.ts +4 -4
- package/dist/TableActions/ActionButton/ActionButton.d.ts.map +1 -1
- package/dist/TableActions/TableActions.d.ts +3 -3
- package/dist/ez-react-antd.es.js +8 -8
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/ButtonAuth/ButtonAuth.d.ts.map +0 -1
- package/dist/ButtonAuth/index.d.ts +0 -3
- package/dist/ButtonAuth/index.d.ts.map +0 -1
|
@@ -52,8 +52,8 @@ export declare const useUpdateConfig: () => UpdateConfigFunction;
|
|
|
52
52
|
* const cached = sessionStorage.getItem('routePermissions');
|
|
53
53
|
* return cached ? JSON.parse(cached) : {};
|
|
54
54
|
* },
|
|
55
|
-
*
|
|
56
|
-
* const cached = sessionStorage.getItem('
|
|
55
|
+
* getFeaturePermissions: () => {
|
|
56
|
+
* const cached = sessionStorage.getItem('featurePermissions');
|
|
57
57
|
* return cached ? JSON.parse(cached) : {};
|
|
58
58
|
* },
|
|
59
59
|
* }}>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { RequestConfig, RequestParam, AxiosResponse, Request, EzAntdConfig, RoutePermissionMap,
|
|
1
|
+
export type { RequestConfig, RequestParam, AxiosResponse, Request, EzAntdConfig, RoutePermissionMap, FeaturePointPermissionMap, } from './types';
|
|
2
2
|
export { defaultConfig } from './defaults';
|
|
3
3
|
export { ConfigProvider, ConfigContext, useConfig, useUpdateConfig, type UpdateConfigFunction } from './ConfigProvider';
|
|
4
|
-
export { getRoutePermission,
|
|
4
|
+
export { getRoutePermission, getFeaturePointPermission, getFirstAccessibleRoute, hasFeaturePointPermission, hasRoutePermission } from './utils';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ConfigProvider/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,aAAa,EACb,YAAY,EACZ,aAAa,EACb,OAAO,EACP,YAAY,EACZ,kBAAkB,EAClB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ConfigProvider/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,aAAa,EACb,YAAY,EACZ,aAAa,EACb,OAAO,EACP,YAAY,EACZ,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,EACL,cAAc,EACd,aAAa,EACb,SAAS,EACT,eAAe,EACf,KAAK,oBAAoB,EAC1B,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,kBAAkB,EAClB,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,EACzB,kBAAkB,EACnB,MAAM,SAAS,CAAC"}
|
|
@@ -122,9 +122,9 @@ export interface RoutePermissionMap {
|
|
|
122
122
|
[path: string]: undefined | RoutePermissionConfig;
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
125
|
+
* 功能点权限配置对象
|
|
126
126
|
*/
|
|
127
|
-
export interface
|
|
127
|
+
export interface FeaturePointPermissionConfig {
|
|
128
128
|
/**
|
|
129
129
|
* 是否需要登录
|
|
130
130
|
* - true: 需要登录才能显示(默认值)
|
|
@@ -140,12 +140,12 @@ export interface ButtonPermissionConfig {
|
|
|
140
140
|
permissionIds?: string | string[];
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
144
|
-
*
|
|
143
|
+
* 功能点权限映射配置
|
|
144
|
+
* 用于配置功能点编码与所需权限的映射关系
|
|
145
145
|
*/
|
|
146
|
-
export interface
|
|
146
|
+
export interface FeaturePointPermissionMap {
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* 功能点编码到权限配置的映射
|
|
149
149
|
*
|
|
150
150
|
* @example
|
|
151
151
|
* {
|
|
@@ -163,10 +163,10 @@ export interface ButtonPermissionMap {
|
|
|
163
163
|
* 'public.view': {
|
|
164
164
|
* requiresAuthentication: false // 公开显示
|
|
165
165
|
* }
|
|
166
|
-
* //
|
|
166
|
+
* // 未配置的功能点默认需要登录但不需要权限
|
|
167
167
|
* }
|
|
168
168
|
*/
|
|
169
|
-
[code: string]: undefined |
|
|
169
|
+
[code: string]: undefined | FeaturePointPermissionConfig;
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
172
|
* EzAntd 全局配置接口
|
|
@@ -219,18 +219,18 @@ export interface EzAntdConfig {
|
|
|
219
219
|
*/
|
|
220
220
|
getRoutePermissions?: () => RoutePermissionMap;
|
|
221
221
|
/**
|
|
222
|
-
*
|
|
223
|
-
*
|
|
222
|
+
* 获取功能点权限映射配置(函数形式)
|
|
223
|
+
* 动态获取功能点编码与所需权限的映射关系
|
|
224
224
|
* 使用函数形式可以避免页面刷新后配置丢失
|
|
225
225
|
*
|
|
226
|
-
* @returns
|
|
226
|
+
* @returns 功能点权限映射对象
|
|
227
227
|
* @example
|
|
228
|
-
*
|
|
229
|
-
* const cached = sessionStorage.getItem('
|
|
228
|
+
* getFeaturePointPermissions: () => {
|
|
229
|
+
* const cached = sessionStorage.getItem('featurePointPermissions');
|
|
230
230
|
* return cached ? JSON.parse(cached) : {};
|
|
231
231
|
* }
|
|
232
232
|
*/
|
|
233
|
-
|
|
233
|
+
getFeaturePointPermissions?: () => FeaturePointPermissionMap;
|
|
234
234
|
/**
|
|
235
235
|
* 登录页面路径
|
|
236
236
|
* 未登录时重定向到此路径
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ConfigProvider/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,UAAU;IACV,OAAO,CAAC,EAAE;QACR,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;KACxB,CAAC;IACF,YAAY;IACZ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,GAAG;IACpC,WAAW;IACX,IAAI,EAAE,CAAC,CAAC;IACR,eAAe;IACf,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa;IACb,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,WAAW;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB;;;;;;OAMG;IACH,UAAU,EAAE,CACV,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,YAAY,EACrB,MAAM,CAAC,EAAE,aAAa,KACnB,OAAO,CAAC,aAA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AAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RoutePermissionMap, RoutePermissionConfig,
|
|
1
|
+
import { RoutePermissionMap, RoutePermissionConfig, FeaturePointPermissionMap, FeaturePointPermissionConfig, EzAntdConfig } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* 根据路由路径获取权限配置
|
|
4
4
|
* 支持精确匹配和前缀匹配
|
|
@@ -16,20 +16,20 @@ import { RoutePermissionMap, RoutePermissionConfig, ButtonPermissionMap, ButtonP
|
|
|
16
16
|
*/
|
|
17
17
|
export declare function getRoutePermission(path: string, routePermissions?: RoutePermissionMap): RoutePermissionConfig | undefined;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* 根据功能点编码获取权限配置
|
|
20
20
|
*
|
|
21
|
-
* @param code
|
|
22
|
-
* @param
|
|
23
|
-
* @returns
|
|
21
|
+
* @param code 功能点编码
|
|
22
|
+
* @param featurePointPermissions 功能点权限映射配置
|
|
23
|
+
* @returns 功能点权限配置对象
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
|
-
* const config =
|
|
26
|
+
* const config = getFeaturePointPermission('user.create', {
|
|
27
27
|
* 'user.create': { requiresAuthentication: true, permissionIds: 'user.create' },
|
|
28
28
|
* 'user.delete': { requiresAuthentication: true, permissionIds: ['user.delete', 'user.manage'] }
|
|
29
29
|
* });
|
|
30
30
|
* // 返回: { requiresAuthentication: true, permissionIds: 'user.create' }
|
|
31
31
|
*/
|
|
32
|
-
export declare function
|
|
32
|
+
export declare function getFeaturePointPermission(code: string, featurePointPermissions?: FeaturePointPermissionMap): FeaturePointPermissionConfig | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* 获取用户有权限访问的第一个路由
|
|
35
35
|
*
|
|
@@ -53,39 +53,39 @@ export declare function getFirstAccessibleRoute(routePaths: string[], config: Ez
|
|
|
53
53
|
fallback?: string;
|
|
54
54
|
}): string;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* 判断用户是否有权限展示某个功能点
|
|
57
57
|
*
|
|
58
|
-
* @param code
|
|
58
|
+
* @param code 功能点编码
|
|
59
59
|
* @param config 全局配置对象
|
|
60
|
-
* @returns
|
|
60
|
+
* @returns 是否有权限展示该功能点
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
|
-
* //
|
|
64
|
-
* const canShow =
|
|
63
|
+
* // 未配置的功能点(默认需要登录但不需要权限)
|
|
64
|
+
* const canShow = hasFeaturePointPermission('some.featurePoint', config);
|
|
65
65
|
* // 返回: true(如果已登录)
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* //
|
|
69
|
-
* const canShow =
|
|
68
|
+
* // 公开功能点(不需要登录)
|
|
69
|
+
* const canShow = hasFeaturePointPermission('public.view', config);
|
|
70
70
|
* // 返回: true
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
73
|
* // 需要登录但不需要权限
|
|
74
|
-
* const canShow =
|
|
74
|
+
* const canShow = hasFeaturePointPermission('user.profile', config);
|
|
75
75
|
* // 返回: true(如果已登录)
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
78
|
* // 需要登录且需要权限
|
|
79
|
-
* const canShow =
|
|
79
|
+
* const canShow = hasFeaturePointPermission('user.create', config);
|
|
80
80
|
* // 返回: true(如果已登录且拥有所需权限)
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
83
|
* // 配置了多个权限(满足任一即可)
|
|
84
|
-
* //
|
|
85
|
-
* const canDelete =
|
|
84
|
+
* // featurePointPermissions: { 'user.delete': { permissionIds: ['user.delete', 'user.manage'] } }
|
|
85
|
+
* const canDelete = hasFeaturePointPermission('user.delete', config);
|
|
86
86
|
* // 返回: true(如果用户拥有 'user.delete' 或 'user.manage' 任一权限)
|
|
87
87
|
*/
|
|
88
|
-
export declare function
|
|
88
|
+
export declare function hasFeaturePointPermission(code: string, config: EzAntdConfig): boolean;
|
|
89
89
|
/**
|
|
90
90
|
* 判断用户是否有权限访问某个路由
|
|
91
91
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/ConfigProvider/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/ConfigProvider/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhJ;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,gBAAgB,CAAC,EAAE,kBAAkB,GACpC,qBAAqB,GAAG,SAAS,CA8BnC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EACZ,uBAAuB,CAAC,EAAE,yBAAyB,GAClD,4BAA4B,GAAG,SAAS,CAO1C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,EAAE,EACpB,MAAM,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE;IACR,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GACA,MAAM,CAiBR;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,YAAY,GACnB,OAAO,CA2CT;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,YAAY,GACnB,OAAO,CA2CT"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* 功能点权限控制组件属性接口
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
6
|
-
/**
|
|
5
|
+
export interface FeaturePointProps {
|
|
6
|
+
/** 功能点编码,用于查询所需权限 */
|
|
7
7
|
code: string;
|
|
8
8
|
/** 子组件 */
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* 功能点权限控制组件
|
|
13
|
+
* 根据功能点编码从配置中查询所需权限,并验证用户是否拥有该权限
|
|
14
14
|
*
|
|
15
15
|
* 权限验证规则:
|
|
16
16
|
* - 未配置 - 默认不需要登录和授权,可以公开显示
|
|
@@ -20,28 +20,28 @@ export interface ButtonAuthProps {
|
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* // 基本用法 - 需要权限
|
|
23
|
-
* <
|
|
23
|
+
* <FeaturePoint code="user.create">
|
|
24
24
|
* <Button>创建用户</Button>
|
|
25
|
-
* </
|
|
25
|
+
* </FeaturePoint>
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* // 多个权限(满足任一即可)
|
|
29
|
-
* // 配置:
|
|
29
|
+
* // 配置: getFeaturePointPermissions: () => ({
|
|
30
30
|
* // 'user.delete': {
|
|
31
31
|
* // requiresAuthentication: true,
|
|
32
32
|
* // permissionIds: ['user.delete', 'user.manage']
|
|
33
33
|
* // }
|
|
34
34
|
* // })
|
|
35
|
-
* <
|
|
35
|
+
* <FeaturePoint code="user.delete">
|
|
36
36
|
* <Button>删除用户</Button>
|
|
37
|
-
* </
|
|
37
|
+
* </FeaturePoint>
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* // 配合 ConfigProvider 使用(函数形式)
|
|
41
41
|
* <ConfigProvider value={{
|
|
42
|
-
*
|
|
42
|
+
* getFeaturePointPermissions: () => {
|
|
43
43
|
* // 从 sessionStorage 动态获取
|
|
44
|
-
* const cached = sessionStorage.getItem('
|
|
44
|
+
* const cached = sessionStorage.getItem('featurePointPermissions');
|
|
45
45
|
* return cached ? JSON.parse(cached) : {
|
|
46
46
|
* 'user.create': {
|
|
47
47
|
* requiresAuthentication: true,
|
|
@@ -62,11 +62,11 @@ export interface ButtonAuthProps {
|
|
|
62
62
|
* hasPermission: (permission) => checkPermission(permission),
|
|
63
63
|
* isAuthenticated: () => !!sessionStorage.getItem('token')
|
|
64
64
|
* }}>
|
|
65
|
-
* <
|
|
65
|
+
* <FeaturePoint code="user.create">
|
|
66
66
|
* <Button>创建用户</Button>
|
|
67
|
-
* </
|
|
67
|
+
* </FeaturePoint>
|
|
68
68
|
* </ConfigProvider>
|
|
69
69
|
*/
|
|
70
|
-
declare const
|
|
71
|
-
export default
|
|
72
|
-
//# sourceMappingURL=
|
|
70
|
+
declare const FeaturePoint: React.FC<FeaturePointProps>;
|
|
71
|
+
export default FeaturePoint;
|
|
72
|
+
//# sourceMappingURL=FeaturePoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeaturePoint.d.ts","sourceRoot":"","sources":["../../src/FeaturePoint/FeaturePoint.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU;IACV,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAgB7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FeaturePoint/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -25,15 +25,15 @@ export interface RemoteTreeProp {
|
|
|
25
25
|
showSearch?: boolean;
|
|
26
26
|
/** 是否显示节点的添加子级按钮(主开关,为 true 时才渲染按钮) */
|
|
27
27
|
showAddSon?: boolean;
|
|
28
|
-
/** 添加子级按钮权限编码(可选,有值时使用
|
|
28
|
+
/** 添加子级按钮权限编码(可选,有值时使用 FeaturePoint 进行权限验证) */
|
|
29
29
|
addSonMenuCode?: string;
|
|
30
30
|
/** 是否显示节点的编辑按钮(主开关,为 true 时才渲染按钮) */
|
|
31
31
|
showEdit?: boolean;
|
|
32
|
-
/** 编辑按钮权限编码(可选,有值时使用
|
|
32
|
+
/** 编辑按钮权限编码(可选,有值时使用 FeaturePoint 进行权限验证) */
|
|
33
33
|
editMenuCode?: string;
|
|
34
34
|
/** 是否显示节点的删除按钮(主开关,为 true 时才渲染按钮) */
|
|
35
35
|
showDelete?: boolean;
|
|
36
|
-
/** 删除按钮权限编码(可选,有值时使用
|
|
36
|
+
/** 删除按钮权限编码(可选,有值时使用 FeaturePoint 进行权限验证) */
|
|
37
37
|
deleteMenuCode?: string;
|
|
38
38
|
/**
|
|
39
39
|
* 组件就绪事件
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteTree.d.ts","sourceRoot":"","sources":["../../src/RemoteTree/RemoteTree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAiB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,cAAc,CAAC;AAItB;;;GAGG;AACH,MAAM,WAAW,cAAc;IAE7B,wBAAwB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACz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};
|
|
69
69
|
/** 是否显示"新增"按钮(主开关,为 true 时才渲染按钮) */
|
|
70
70
|
showAddMenu?: boolean;
|
|
71
|
-
/** 新增按钮权限编码(可选,有值时使用
|
|
71
|
+
/** 新增按钮权限编码(可选,有值时使用 FeaturePoint 进行权限验证) */
|
|
72
72
|
addMenuCode?: string;
|
|
73
73
|
/** 是否显示"删除"按钮(主开关,为 true 时才渲染按钮) */
|
|
74
74
|
showDeleteMenu?: boolean;
|
|
75
|
-
/** 删除按钮权限编码(可选,有值时使用
|
|
75
|
+
/** 删除按钮权限编码(可选,有值时使用 FeaturePoint 进行权限验证) */
|
|
76
76
|
deleteMenuCode?: string;
|
|
77
77
|
/** "新增"按钮的文本,默认为"新增" */
|
|
78
78
|
addMenuName?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../src/SearchBar/SearchBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAgB,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAE,MAAM,MAAM,CAAC;AAGtE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,cAAc,CAAC;AAKtB;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,cAAc;IACd,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;IAC/C,mBAAmB;IACnB,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,uBAAuB;IACvB,KAAK,CA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OAGG;IACH,aAAa,CAAC,MAAM,EAAE,GAAG;IAIzB;;;OAGG;IACH,YAAY,CAAC,MAAM,EAAE,GAAG;IAkBxB;;OAEG;IACH,SAAS;IAIT;;OAEG;IACH,kBAAkB,CAAC,SAAS,EAAE,cAAc;IAW5C;;OAEG;IACH,iBAAiB,IAAI,IAAI;IAIzB,MAAM;CAoFP;AAoBD,0CAA0C;AAC1C,QAAA,MAAM,YAAY;;;eA7PL,OAAO;;gBAQP,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG;eAZnB,MAAM;kBAsCH,MAAM;gBAhCR,MAAM;gBAEN,MAAM;;sBAED,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI;kBAUvB,OAAO;kBAEP,MAAM;qBAEH,OAAO;qBAEP,MAAM;kBAET,MAAM;qBAEH,MAAM;kBAIV,MAAM,IAAI;qBAEP,MAAM,IAAI;eAtBf,QAAQ,CAAC,aAAa,CAAC;iBAErB;QACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB;;;EA+OmD,CAAC;AACvD,eAAe,YAAY,CAAC"}
|
|
@@ -8,8 +8,8 @@ export interface ActionButtonProps {
|
|
|
8
8
|
onClick: (record: any) => void | Promise<void>;
|
|
9
9
|
/** 是否显示(优先级最高,默认为 true) */
|
|
10
10
|
isShow?: boolean;
|
|
11
|
-
/** 按钮权限编码(可选,用于
|
|
12
|
-
|
|
11
|
+
/** 按钮权限编码(可选,用于 FeaturePoint 方式的权限验证,优先级高于 permission) */
|
|
12
|
+
featurePointCode?: string;
|
|
13
13
|
/** 权限码(可选,不传则不进行权限控制) */
|
|
14
14
|
permission?: string | string[];
|
|
15
15
|
/** 角色码(可选,不传则不进行角色控制) */
|
|
@@ -39,11 +39,11 @@ export interface ActionButtonProps {
|
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```tsx
|
|
42
|
-
* // 方式 1:使用
|
|
42
|
+
* // 方式 1:使用 featurePointCode(推荐)
|
|
43
43
|
* <ActionButton
|
|
44
44
|
* icon={<EditOutlined />}
|
|
45
45
|
* tooltip="编辑"
|
|
46
|
-
*
|
|
46
|
+
* featurePointCode="user.edit"
|
|
47
47
|
* onClick={(record: any) => handleEdit()}
|
|
48
48
|
* />
|
|
49
49
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../src/TableActions/ActionButton/ActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,qBAAqB,CAAC;AAE7B,MAAM,WAAW,iBAAiB;IAChC,WAAW;IACX,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,mBAAmB;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW;IACX,OAAO,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,2BAA2B;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,
|
|
1
|
+
{"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../src/TableActions/ActionButton/ActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,qBAAqB,CAAC;AAE7B,MAAM,WAAW,iBAAiB;IAChC,WAAW;IACX,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,mBAAmB;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW;IACX,OAAO,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,2BAA2B;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,0DAA0D;IAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yBAAyB;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe;IACf,OAAO,CAAC,EAAE,OAAO,GAAG;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;KAC/B,CAAC;IACF,cAAc;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB;IACjB,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IAChD,oBAAoB;IACpB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA0F7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -34,12 +34,12 @@ export interface TableActionsProps {
|
|
|
34
34
|
* actions={[
|
|
35
35
|
* {
|
|
36
36
|
* type: 'edit',
|
|
37
|
-
*
|
|
37
|
+
* featurePointCode: 'user.edit', // 从 buttonPermissions 配置中查询权限
|
|
38
38
|
* onClick: () => handleEdit()
|
|
39
39
|
* },
|
|
40
40
|
* {
|
|
41
41
|
* type: 'delete',
|
|
42
|
-
*
|
|
42
|
+
* featurePointCode: 'user.delete',
|
|
43
43
|
* confirm: {
|
|
44
44
|
* title: '确认删除?',
|
|
45
45
|
* content: '删除后无法恢复'
|
|
@@ -73,7 +73,7 @@ export interface TableActionsProps {
|
|
|
73
73
|
* actions={[
|
|
74
74
|
* {
|
|
75
75
|
* type: 'edit',
|
|
76
|
-
*
|
|
76
|
+
* featurePointCode: 'user.edit', // 优先使用 buttonCode
|
|
77
77
|
* onClick: () => handleEdit()
|
|
78
78
|
* },
|
|
79
79
|
* {
|
package/dist/ez-react-antd.es.js
CHANGED
|
@@ -8926,7 +8926,7 @@ function yk(c, e, t) {
|
|
|
8926
8926
|
return i;
|
|
8927
8927
|
}
|
|
8928
8928
|
function G_(c, e) {
|
|
8929
|
-
const t = e.
|
|
8929
|
+
const t = e.getFeaturePointPermissions?.() || {}, l = W_(c, t);
|
|
8930
8930
|
if (l === void 0)
|
|
8931
8931
|
return e.isAuthenticated?.() ?? !1;
|
|
8932
8932
|
if (l.requiresAuthentication === !1)
|
|
@@ -9825,7 +9825,7 @@ class Dk extends B.Component {
|
|
|
9825
9825
|
className: "remote_tree_box",
|
|
9826
9826
|
titleRender: (t) => /* @__PURE__ */ s.jsxs("div", { className: "remote_tree_title_box", children: [
|
|
9827
9827
|
/* @__PURE__ */ s.jsx("div", { className: "remote_tree_title", children: this.getTitle(t) }),
|
|
9828
|
-
/* 当 showAddSon 为 true 时才渲染添加子级按钮,如果 addSonMenuCode 有值则使用
|
|
9828
|
+
/* 当 showAddSon 为 true 时才渲染添加子级按钮,如果 addSonMenuCode 有值则使用 FeaturePoint 嵌套 */
|
|
9829
9829
|
this.props.showAddSon ? /* @__PURE__ */ s.jsx("div", { className: "remote_tree_menu_add", children: this.props.addSonMenuCode ? /* @__PURE__ */ s.jsx(f1, { code: this.props.addSonMenuCode, children: /* @__PURE__ */ s.jsx(Z, { placement: "top", title: "添加子级", children: /* @__PURE__ */ s.jsx(
|
|
9830
9830
|
J1,
|
|
9831
9831
|
{
|
|
@@ -9839,7 +9839,7 @@ class Dk extends B.Component {
|
|
|
9839
9839
|
onClick: (l) => this.handleAddSon(l, t)
|
|
9840
9840
|
}
|
|
9841
9841
|
) }) }) : null,
|
|
9842
|
-
/* 当 showEdit 为 true 时才渲染编辑按钮,如果 editMenuCode 有值则使用
|
|
9842
|
+
/* 当 showEdit 为 true 时才渲染编辑按钮,如果 editMenuCode 有值则使用 FeaturePoint 嵌套 */
|
|
9843
9843
|
this.props.showEdit ? /* @__PURE__ */ s.jsx("div", { className: "remote_tree_menu_edit", children: this.props.editMenuCode ? /* @__PURE__ */ s.jsx(f1, { code: this.props.editMenuCode, children: /* @__PURE__ */ s.jsx(Z, { placement: "top", title: "修改", children: /* @__PURE__ */ s.jsx(
|
|
9844
9844
|
A1,
|
|
9845
9845
|
{
|
|
@@ -9853,7 +9853,7 @@ class Dk extends B.Component {
|
|
|
9853
9853
|
onClick: (l) => this.handleEdit(l, t)
|
|
9854
9854
|
}
|
|
9855
9855
|
) }) }) : null,
|
|
9856
|
-
/* 当 showDelete 为 true 时才渲染删除按钮,如果 deleteMenuCode 有值则使用
|
|
9856
|
+
/* 当 showDelete 为 true 时才渲染删除按钮,如果 deleteMenuCode 有值则使用 FeaturePoint 嵌套 */
|
|
9857
9857
|
this.props.showDelete ? /* @__PURE__ */ s.jsx("div", { className: "remote_tree_menu_delete", children: this.props.deleteMenuCode ? /* @__PURE__ */ s.jsx(f1, { code: this.props.deleteMenuCode, children: /* @__PURE__ */ s.jsx(Z, { placement: "top", title: "删除", children: /* @__PURE__ */ s.jsx(
|
|
9858
9858
|
n1,
|
|
9859
9859
|
{
|
|
@@ -11223,7 +11223,7 @@ const gk = ({
|
|
|
11223
11223
|
tooltip: e,
|
|
11224
11224
|
onClick: t,
|
|
11225
11225
|
isShow: l = !0,
|
|
11226
|
-
|
|
11226
|
+
featurePointCode: i,
|
|
11227
11227
|
permission: o,
|
|
11228
11228
|
role: f,
|
|
11229
11229
|
requireAuth: u = !0,
|
|
@@ -11344,13 +11344,13 @@ const gk = ({
|
|
|
11344
11344
|
export {
|
|
11345
11345
|
kk as AdminLayout,
|
|
11346
11346
|
gk as Auth,
|
|
11347
|
-
f1 as ButtonAuth,
|
|
11348
11347
|
v1 as ConfigContext,
|
|
11349
11348
|
Tk as ConfigProvider,
|
|
11350
11349
|
Q_ as Drawer,
|
|
11351
11350
|
Yk as DrawerRemoteTableSelect,
|
|
11352
11351
|
Ik as ErrorNotification,
|
|
11353
11352
|
Pk as ErrorPage,
|
|
11353
|
+
f1 as FeaturePoint,
|
|
11354
11354
|
F4 as Grid,
|
|
11355
11355
|
_k as IconSelect,
|
|
11356
11356
|
vo as IconShow,
|
|
@@ -11369,10 +11369,10 @@ export {
|
|
|
11369
11369
|
Dk as RemoteTree,
|
|
11370
11370
|
ek as SearchBar,
|
|
11371
11371
|
Zk as TableActions,
|
|
11372
|
-
W_ as
|
|
11372
|
+
W_ as getFeaturePointPermission,
|
|
11373
11373
|
yk as getFirstAccessibleRoute,
|
|
11374
11374
|
oo as getRoutePermission,
|
|
11375
|
-
G_ as
|
|
11375
|
+
G_ as hasFeaturePointPermission,
|
|
11376
11376
|
so as hasRoutePermission,
|
|
11377
11377
|
h1 as useConfig,
|
|
11378
11378
|
q2 as useResponsive,
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.loading_layout_box{height:100%;width:100%}.loading_layout_box .loading_box{position:relative;top:0;height:100%;width:100%;z-index:999;display:flex;align-items:center;justify-content:center;background-color:#f2f3f552}.loading_layout_box .loading_content_box{top:0;z-index:1;width:100%}.loading_layout_box .loading_box_none{display:none}.drawer_box .drawer_title{margin-left:20px}.drawer_box .ant-drawer-body{padding-bottom:0!important}.romote_table_menu_box{margin-bottom:16px;display:flex;justify-content:space-between;align-items:center;padding:0 8px}.romote_table_title{color:#000000d9;font-size:18px;font-weight:600;line-height:28px}.romote_table_menu{display:flex;align-items:center;gap:8px}.remote_table_box{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000000d;padding:8px;transition:all .3s ease;min-height:200px;border:1px solid #f0f0f0}.remote_table_box .ant-table-wrapper .ant-table{background:transparent}.remote_table_box .ant-table-wrapper .ant-table .ant-table-thead>tr>th{background:#fafafa;border-bottom:1px solid #f0f0f0;color:#000000d9;font-weight:600;font-size:14px;transition:background .3s}.remote_table_box .ant-table-wrapper .ant-table .ant-table-thead>tr>th:before{display:none}.remote_table_box .ant-table-wrapper .ant-table .ant-table-tbody>tr{transition:all .3s}.remote_table_box .ant-table-wrapper .ant-table .ant-table-tbody>tr>td{border-bottom:1px solid #f0f0f0;color:#333;font-size:14px;background:#fff}.remote_table_box .ant-table-wrapper .ant-table .ant-table-tbody>tr:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000014;z-index:2;position:relative}.remote_table_box .ant-table-wrapper .ant-table .ant-table-tbody>tr:hover>td{background:#fff!important}.remote_table_box .ant-table-wrapper .ant-pagination{margin-top:24px}.remote_table_box .ant-table-wrapper .ant-pagination .ant-pagination-item{border-radius:6px}.remote_table_box .ant-table-wrapper .ant-pagination .ant-pagination-item.ant-pagination-item-active{background:#1890ff;border-color:#1890ff}.remote_table_box .ant-table-wrapper .ant-pagination .ant-pagination-item.ant-pagination-item-active a{color:#fff}.remote_table_box .ant-table-wrapper .ant-empty-normal{margin:32px 0;color:#00000073}.remote_table_box .ant-table-expand-icon-col,.remote_table_box .ant-table-row-expand-icon-cell{width:32px!important}.remote-table-mobile .remote-table-card{margin-bottom:16px;background:#fff;border-radius:12px;border:1px solid #f0f0f0;box-shadow:0 2px 8px #0000000a;overflow:hidden}.remote-table-mobile .remote-table-card :global .ant-card-head{border-bottom:1px solid #f0f0f0;min-height:40px;padding:0 16px;background:#fafafa}.remote-table-mobile .remote-table-card :global .ant-card-head .ant-card-head-title{font-size:14px;padding:12px 0;color:#000000d9}.remote-table-mobile .remote-table-card :global .ant-card-body{padding:16px}.remote-table-mobile .remote-table-card .card-row{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px;line-height:1.5}.remote-table-mobile .remote-table-card .card-row .label{color:#999;font-size:13px;white-space:nowrap;margin-right:12px;min-width:80px}.remote-table-mobile .remote-table-card .card-row .value{flex:1;text-align:right;word-break:break-all;font-size:14px;color:#333;font-weight:500}.remote-table-mobile .remote-table-card .card-actions{display:flex;justify-content:flex-end;gap:16px;margin-top:16px;padding-top:16px;border-top:1px solid #f0f0f0}.remote-table-mobile .remote-table-card .card-actions .action-wrapper .role_action{display:flex;gap:16px}.remote-table-mobile .remote-table-card .card-actions .action-wrapper .role_action .anticon{font-size:20px;cursor:pointer;padding:8px;border-radius:8px;background:#f5f5f5;color:#000000a6;transition:all .3s}.remote-table-mobile .remote-table-card .card-actions .action-wrapper .role_action .anticon:active,.remote-table-mobile .remote-table-card .card-actions .action-wrapper .role_action .anticon:hover{background:#e6f7ff;color:#1890ff}.remote-table-mobile .mobile-pagination{padding:16px;background:#fff;border-radius:12px;margin-bottom:24px;box-shadow:0 2px 8px #0000000d;display:flex;justify-content:space-between;align-items:center}.remote-table-mobile .action_preview{color:#1890ff}.remote-table-mobile .action_download{color:#52c41a}.remote-table-mobile .action_his_task{color:#faad14}.remote-table-mobile .action_prediction{color:#722ed1}.remote-table-mobile .action_delete{color:#ff4d4f}.table_search_bar{min-height:60px;background:#fff;padding:4px 8px;border-radius:12px;box-shadow:0 2px 8px #0000000d;margin-bottom:24px;display:flex;flex-wrap:wrap}.table_search_bar .table_search_item{margin:5px;display:flex;align-items:center}.table_search_bar .table_search_item .ant-form-item{margin-bottom:0!important}.table_search_bar .table_search_menu_box{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;margin:5px 5px 5px auto}.table_search_bar .table_search_menu_box .table_search_menu_item{margin:0 5px;flex-shrink:0;white-space:nowrap}@keyframes gradientAnimation{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary{background:linear-gradient(-45deg,#3a7fe8,#4b8fef,#00c6ff,#0072ff);background-size:400% 400%;animation:gradientAnimation 15s ease infinite;border:none;border-radius:12px;padding:4px 20px;height:36px;font-weight:500;box-shadow:0 4px 15px #4a90ff66;transition:all .3s ease}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #4a90ff99}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary:active{transform:translateY(0)}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary[disabled],.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary.ant-btn-disabled{background:#f5f5f5;border-color:#d9d9d9;color:#00000040;box-shadow:none;cursor:not-allowed;animation:none}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary[disabled]:hover,.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary.ant-btn-disabled:hover{background:#f5f5f5;color:#00000040;transform:none;box-shadow:none}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary.ant-btn-dangerous{background:linear-gradient(-45deg,#ff6b6b,#ff8787,#ff9a9e,#fad0c4);background-size:400% 400%;animation:gradientAnimation 15s ease infinite;box-shadow:0 4px 15px #ff6b6b66}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary.ant-btn-dangerous:hover{box-shadow:0 6px 20px #ff6b6b99}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary.ant-btn-dangerous[disabled],.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary.ant-btn-dangerous.ant-btn-disabled{background:#f5f5f5;color:#00000040;box-shadow:none;animation:none}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary[type=submit]{background:linear-gradient(-45deg,#7b68ee,#9b7fff,#a18cd1,#fbc2eb);background-size:400% 400%;animation:gradientAnimation 15s ease infinite;box-shadow:0 4px 15px #7b68ee66}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary[type=submit]:hover{box-shadow:0 6px 20px #7b68ee99}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary[type=submit][disabled],.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary[type=submit].ant-btn-disabled{background:#f5f5f5;border-color:#d9d9d9;color:#00000040;box-shadow:none;cursor:not-allowed;animation:none}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn:not(.ant-btn-primary){background:#e8eaed;color:#5f6368;border:none;border-radius:8px;padding:4px 20px;height:36px;font-weight:500;transition:all .3s ease}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn:not(.ant-btn-primary):hover{background:#d8dadd;color:#4f5358;transform:translateY(-1px)}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn:not(.ant-btn-primary):active{transform:translateY(0)}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn:not(.ant-btn-primary)[disabled],.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn:not(.ant-btn-primary).ant-btn-disabled{background:#f5f5f5;color:#00000040;cursor:not-allowed}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn:not(.ant-btn-primary)[disabled]:hover,.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn:not(.ant-btn-primary).ant-btn-disabled:hover{background:#f5f5f5;color:#00000040;transform:none}@media(max-width:768px){.table_search_bar{padding:4px 8px}.table_search_bar .table_search_item{width:100%;margin:6px 0}.table_search_bar .table_search_item .ant-form-item .ant-form-item-label label{font-size:15px}.table_search_bar .table_search_item .ant-form-item .ant-form-item-control-input{min-height:40px}.table_search_bar .table_search_item .ant-form-item .ant-form-item-control-input .ant-input,.table_search_bar .table_search_item .ant-form-item .ant-form-item-control-input .ant-select{font-size:15px}.table_search_bar .table_search_menu_box{width:100%;justify-content:flex-end;flex-wrap:wrap;margin:12px 0 0}.table_search_bar .table_search_menu_box .table_search_menu_item{margin:6px 6px 6px 0}.table_search_bar .table_search_menu_box .table_search_menu_item button{height:40px;font-size:16px;padding:0 20px}.table_search_bar .table_search_menu_box .table_search_menu_item button .anticon{font-size:18px}}.remote_tree_box .ant-tree-treenode{width:100%!important;height:40px!important}.remote_tree_box .ant-tree-treenode-motion{width:100%!important}.remote_tree_box .ant-tree-switcher{height:40px!important;line-height:40px!important;font-size:18px;display:flex!important;align-items:center;justify-content:center;position:relative}.remote_tree_box .ant-tree-switcher:before,.remote_tree_box .ant-tree-switcher_open:before{position:absolute!important;top:50%;left:50%;transform:translate(-50%,-50%);height:30px!important;width:30px!important;line-height:30px!important;font-size:18px;border-radius:4px;z-index:0}.remote_tree_box .ant-tree-switcher .anticon,.remote_tree_box .ant-tree-switcher svg{position:relative;z-index:1;vertical-align:0}.remote_tree_box .ant-tree-node-content-wrapper{width:100%!important;line-height:40px!important;font-size:16px}.remote_tree_box .ant-tree-title{width:100%!important}.remote_tree_box .remote_tree_title_box{width:100%!important;display:flex;align-items:center}.remote_tree_box .remote_tree_title_box:hover .remote_tree_menu_add,.remote_tree_box .remote_tree_title_box:hover .remote_tree_menu_edit,.remote_tree_box .remote_tree_title_box:hover .remote_tree_menu_delete{opacity:1;pointer-events:auto}.remote_tree_box .remote_tree_title{flex:1}.remote_tree_box .remote_tree_menu_add{margin:0 10px 0 0;font-size:16px;opacity:0;pointer-events:none;transition:opacity .2s ease}.remote_tree_box .remote_tree_menu_edit{margin:0 10px 0 0;opacity:0;pointer-events:none;transition:opacity .2s ease}.remote_tree_box .remote_tree_menu_delete{margin:0;opacity:0;pointer-events:none;transition:opacity .2s ease}.remote_tree_box .tree-icon{font-size:16px;cursor:pointer;transition:all .3s ease}.remote_tree_box .tree-icon:hover{transform:scale(1.2)}.remote_tree_box .tree-icon-add{color:#52c41a}.remote_tree_box .tree-icon-add:hover{color:#73d13d}.remote_tree_box .tree-icon-edit{color:#1890ff}.remote_tree_box .tree-icon-edit:hover{color:#40a9ff}.remote_tree_box .tree-icon-delete{color:#ff4d4f}.remote_tree_box .tree-icon-delete:hover{color:#ff7875}.remote_tree_top_menu_box{display:flex;width:100%;margin-bottom:5px}.remote_tree_top_menu_box .remote_tree_top_search{flex:1}.remote_tree_top_menu_box .remote_tree_top_search .ant-input-group-addon{display:none}.remote_tree_top_menu_box .ant-input-affix-wrapper{border-radius:5px!important}.remote_tree_top_menu_box .remote_tree_top_add{width:100%}.davinyu_RemoteTableSelect_box{display:inline-grid;width:100%}.davinyu_RemoteTableSelect_wrap{width:100%;height:auto;outline:0;padding:2px 7px;min-height:32px;height:auto!important;line-height:1;border:1px solid #d9d9d9;border-radius:2px;box-sizing:border-box;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.davinyu_RemoteTableSelect_wrap:after{content:"";display:block;height:0;clear:both}.davinyu_RemoteTableSelect_placeholder{font-size:13px;color:#b9bdd4;line-height:28px;text-align:left}.davinyu_RemoteTableSelect_add_menu{margin-top:5px;text-align:left}.davinyu_RemoteTableSelect_add_modal{height:100%;padding:0;margin:0}.davinyu_RemoteTableSelect_add_modal .ant-modal{padding-bottom:0;margin:0}.davinyu_RemoteTableSelect_add_modal .ant-modal-content{height:100%}.davinyu_RemoteTableSelect_add_modal .ant-modal-body{background-color:#fff;padding:5px 20px!important}.davinyu_RemoteTableSelect_add_modal .ant-modal-footer{background-color:#fff}.lochlan_RemoteTableSelect_option{position:relative;width:100%;color:#fff;line-height:28px;margin:2px 0;padding:0 22px 0 10px;border-radius:4px;display:flex}.lochlan_RemoteTableSelect_option .lochlan_RemoteTableSelect_option_content{line-height:24px}.lochlan_RemoteTableSelect_option .lochlan_RemoteTableSelect_option_action{width:60px;height:24px;text-align:right;cursor:pointer;position:absolute;right:0}.lochlan_RemoteTableSelect_option .lochlan_RemoteTableSelect_option_action .lochlan_RemoteTableSelect_option_action_item{font-size:18px;line-height:100%;margin-right:10px}.icon_select__control{padding:0 8px!important;min-width:unset!important;min-height:32px!important}.icon_select__value-container{padding:1px 8px!important}.icon_select__indicators{height:32px!important}.icon_select__control:hover{border-color:#4096ff!important;background-color:#fff!important}.icon_select__control:focus{border-color:#1677ff!important;box-shadow:0 0 0 2px #0591ff1a!important;background-color:#fff!important}.icon_select__single-value{grid-area:1 / 1 / 2 / 3;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#333;margin-left:2px;margin-right:2px;box-sizing:border-box}.icon_select_option_container{display:flex;gap:4px;padding:4px 0 0 4px}.icon_select_option_container .option_item{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:1px solid #ccc;border-radius:5px;transition:background-color .2s}.icon_select_option_container .option_item:hover{background-color:#eee}.icon_select_option_container .option_item_selected{background-color:#e6f4ff}.admin_layout_header_menu_dropdown_xs{width:100%!important}.admin_layout_header_box{padding:0 20px;display:flex;color:#000;width:100%}.admin_layout_header_box .admin_layout_header_menu{flex:1}.admin_layout_header_box .admin_layout_header_userinfo .admin_layout_header_userinfo_name{margin:0 10px;display:inline}.admin_dark_sider_menu .ant-menu-item-selected{background-color:#183044!important}.admin_dark_sider_menu .ant-menu-item-active{background-color:#162633!important}.admin_layout_box .admin_layout_logo_txt{margin-left:10px;vertical-align:text-bottom;font-size:16px;text-transform:uppercase;display:inline-block;font-weight:700;white-space:nowrap;margin-bottom:0;animation:fadeRightIn___2_LaH .3s cubic-bezier(.645,.045,.355,1);animation-fill-mode:both;background:linear-gradient(to right,#06bed8,#f305a4);background-clip:text;-webkit-background-clip:text;color:transparent}.admin_layout_box .admin_layout_sider_normal{box-shadow:0 0 28px #1890ff1a;z-index:10}.admin_layout_box .admin_layout_sider_open{flex:0 0 256px!important;max-width:256px!important;min-width:256px!important;width:256px!important}.admin_layout_box .admin_layout_sider_open_broken{position:fixed!important;top:0;left:0;height:100vh;z-index:88}.admin_layout_box .admin_layout_sider_open_broken+.admin_layout_container{transition:none!important}.admin_layout_box .admin_layout_sider_open_broken+.admin_layout_container .admin_layout_container_header_normal{transition:none!important}.admin_layout_box .admin_layout_sider_collapsed_broken{position:fixed!important;top:0;left:-100%;height:100vh;z-index:-1}.admin_layout_box .admin_layout_logo{z-index:1;height:64px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0 24px;box-shadow:0 1px 9px -3px #0003}.admin_layout_box .admin_layout_menu_container{height:calc(100vh - 112px);overflow-x:hidden;-ms-flex:1 1;flex:1 1;padding:24px 0}.admin_layout_box .admin_layout_menu_container .admin_layout_scrollbar_container{position:relative;height:100%;overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.admin_layout_box .admin_layout_switch_theme{width:100%;height:48px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding:0 16px;overflow:hidden;transition:all .3s}.admin_layout_box .admin_layout_switch_theme .admin_layout_action_bulb{min-width:14px;margin-right:4px;font-size:14px}.admin_layout_box .admin_layout_container_drawer_open{position:fixed;left:0;width:100%}.admin_layout_box .admin_layout_container{padding-top:64px;height:100vh;-ms-flex:1 1;flex:1 1;overflow-y:scroll;overflow-x:hidden}.admin_layout_box .admin_layout_container .ant-layout-content{height:calc(100vh - 69px)!important;position:relative}.admin_layout_box .admin_layout_container .ant-layout-content .admin_layout_content_children{position:relative;height:100%;width:100%;background-color:#f8fafc;padding:10px 15px 0}.admin_layout_box .admin_layout_container .admin_layout_container_header_normal{position:fixed;top:0;right:0;z-index:9;transition:width .2s;padding:0;box-shadow:4px 4px 40px #0000000d;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;height:64px;-ms-flex-align:center;align-items:center;background-color:#fff}.admin_layout_box .admin_layout_container .admin_layout_container_header_open{width:calc(100% - 256px)}.admin_layout_box .admin_layout_container .admin_layout_container_header_close{width:calc(100% - 80px)}.admin_layout_box .admin_layout_container .admin_layout_container_header_broken{width:calc(100% + -0px)}.admin_layout_box .admin_layout_container .admin_layout_sider_switch_button{width:64px;height:64px;line-height:64px;text-align:center;font-size:18px;cursor:pointer;transition:all .3s ease-out}.admin_layout_box .admin_layout_content_drawer{width:200px!important}.admin_layout_box .admin_layout_container::-webkit-scrollbar{width:10px;height:5px}.admin_layout_box .admin_layout_container::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#c5c5c5}.admin_layout_box .admin_layout_container::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);border-radius:10px;background:#fff}.admin_layout_box.admin_layout_mobile .admin_layout_container,.admin_layout_box.admin_layout_mobile .admin_layout_container_header_normal{transition:none!important}.action-button{display:inline-flex;align-items:center;justify-content:center;margin:0 6px;font-size:16px;transition:all .3s ease}.action-button:hover:not(.action-button-disabled){transform:scale(1.15)}.action-button:active:not(.action-button-disabled){transform:scale(.95)}.action-button-disabled{opacity:.4;cursor:not-allowed!important}.action-edit{color:#1890ff}.action-edit:hover{color:#40a9ff}.action-delete{color:#ff4d4f}.action-delete:hover{color:#ff7875}.action-view{color:#52c41a}.action-view:hover{color:#73d13d}.action-permission{color:#faad14}.action-permission:hover{color:#ffc53d}.action-authorisation{color:#722ed1}.action-authorisation:hover{color:#9254de}.action-session{color:#13c2c2}.action-session:hover{color:#36cfc9}.action-reset{color:#eb2f96}.action-reset:hover{color:#f759ab}.action-setting{color:#595959}.action-setting:hover{color:#8c8c8c}.action-see-secret{color:#52c41a}.action-see-secret:hover{color:#73d13d}.action-user{color:#1890ff}.action-user:hover{color:#40a9ff}.action-app{color:#722ed1}.action-app:hover{color:#9254de}.action-third-info{color:#13c2c2}.action-third-info:hover{color:#36cfc9}.table-actions{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}
|
|
1
|
+
.loading_layout_box{height:100%;width:100%}.loading_layout_box .loading_box{position:relative;top:0;height:100%;width:100%;z-index:999;display:flex;align-items:center;justify-content:center;background-color:#f2f3f552}.loading_layout_box .loading_content_box{top:0;z-index:1;width:100%}.loading_layout_box .loading_box_none{display:none}.drawer_box .drawer_title{margin-left:20px}.drawer_box .ant-drawer-body{padding-bottom:0!important}.romote_table_menu_box{margin-bottom:16px;display:flex;justify-content:space-between;align-items:center;padding:0 8px}.romote_table_title{color:#000000d9;font-size:18px;font-weight:600;line-height:28px}.romote_table_menu{display:flex;align-items:center;gap:8px}.remote_table_box{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000000d;padding:8px;transition:all .3s ease;border:1px solid #f0f0f0}.remote_table_box .ant-table-wrapper .ant-table{background:transparent}.remote_table_box .ant-table-wrapper .ant-table .ant-table-thead>tr>th{background:#fafafa;border-bottom:1px solid #f0f0f0;color:#000000d9;font-weight:600;font-size:14px;transition:background .3s}.remote_table_box .ant-table-wrapper .ant-table .ant-table-thead>tr>th:before{display:none}.remote_table_box .ant-table-wrapper .ant-table .ant-table-tbody>tr{transition:all .3s}.remote_table_box .ant-table-wrapper .ant-table .ant-table-tbody>tr>td{border-bottom:1px solid #f0f0f0;color:#333;font-size:14px;background:#fff}.remote_table_box .ant-table-wrapper .ant-table .ant-table-tbody>tr:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000014;z-index:2;position:relative}.remote_table_box .ant-table-wrapper .ant-table .ant-table-tbody>tr:hover>td{background:#fff!important}.remote_table_box .ant-table-wrapper .ant-pagination{margin-top:24px}.remote_table_box .ant-table-wrapper .ant-pagination .ant-pagination-item{border-radius:6px}.remote_table_box .ant-table-wrapper .ant-pagination .ant-pagination-item.ant-pagination-item-active{background:#1890ff;border-color:#1890ff}.remote_table_box .ant-table-wrapper .ant-pagination .ant-pagination-item.ant-pagination-item-active a{color:#fff}.remote_table_box .ant-table-wrapper .ant-empty-normal{margin:32px 0;color:#00000073}.remote_table_box .ant-table-expand-icon-col,.remote_table_box .ant-table-row-expand-icon-cell{width:32px!important}.remote-table-mobile .remote-table-card{margin-bottom:16px;background:#fff;border-radius:12px;border:1px solid #f0f0f0;box-shadow:0 2px 8px #0000000a;overflow:hidden}.remote-table-mobile .remote-table-card :global .ant-card-head{border-bottom:1px solid #f0f0f0;min-height:40px;padding:0 16px;background:#fafafa}.remote-table-mobile .remote-table-card :global .ant-card-head .ant-card-head-title{font-size:14px;padding:12px 0;color:#000000d9}.remote-table-mobile .remote-table-card :global .ant-card-body{padding:16px}.remote-table-mobile .remote-table-card .card-row{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px;line-height:1.5}.remote-table-mobile .remote-table-card .card-row .label{color:#999;font-size:13px;white-space:nowrap;margin-right:12px;min-width:80px}.remote-table-mobile .remote-table-card .card-row .value{flex:1;text-align:right;word-break:break-all;font-size:14px;color:#333;font-weight:500}.remote-table-mobile .remote-table-card .card-actions{display:flex;justify-content:flex-end;gap:16px;margin-top:16px;padding-top:16px;border-top:1px solid #f0f0f0}.remote-table-mobile .remote-table-card .card-actions .action-wrapper .role_action{display:flex;gap:16px}.remote-table-mobile .remote-table-card .card-actions .action-wrapper .role_action .anticon{font-size:20px;cursor:pointer;padding:8px;border-radius:8px;background:#f5f5f5;color:#000000a6;transition:all .3s}.remote-table-mobile .remote-table-card .card-actions .action-wrapper .role_action .anticon:active,.remote-table-mobile .remote-table-card .card-actions .action-wrapper .role_action .anticon:hover{background:#e6f7ff;color:#1890ff}.remote-table-mobile .mobile-pagination{padding:16px;background:#fff;border-radius:12px;margin-bottom:24px;box-shadow:0 2px 8px #0000000d;display:flex;justify-content:space-between;align-items:center}.remote-table-mobile .action_preview{color:#1890ff}.remote-table-mobile .action_download{color:#52c41a}.remote-table-mobile .action_his_task{color:#faad14}.remote-table-mobile .action_prediction{color:#722ed1}.remote-table-mobile .action_delete{color:#ff4d4f}.table_search_bar{min-height:60px;background:#fff;padding:4px 8px;border-radius:12px;box-shadow:0 2px 8px #0000000d;margin-bottom:24px;display:flex;flex-wrap:wrap}.table_search_bar .table_search_item{margin:5px;display:flex;align-items:center}.table_search_bar .table_search_item .ant-form-item{margin-bottom:0!important}.table_search_bar .table_search_menu_box{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;margin:5px 5px 5px auto}.table_search_bar .table_search_menu_box .table_search_menu_item{margin:0 5px;flex-shrink:0;white-space:nowrap}@keyframes gradientAnimation{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary{background:linear-gradient(-45deg,#3a7fe8,#4b8fef,#00c6ff,#0072ff);background-size:400% 400%;animation:gradientAnimation 15s ease infinite;border:none;border-radius:12px;padding:4px 20px;height:36px;font-weight:500;box-shadow:0 4px 15px #4a90ff66;transition:all .3s ease}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #4a90ff99}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary:active{transform:translateY(0)}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary[disabled],.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary.ant-btn-disabled{background:#f5f5f5;border-color:#d9d9d9;color:#00000040;box-shadow:none;cursor:not-allowed;animation:none}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary[disabled]:hover,.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary.ant-btn-disabled:hover{background:#f5f5f5;color:#00000040;transform:none;box-shadow:none}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary.ant-btn-dangerous{background:linear-gradient(-45deg,#ff6b6b,#ff8787,#ff9a9e,#fad0c4);background-size:400% 400%;animation:gradientAnimation 15s ease infinite;box-shadow:0 4px 15px #ff6b6b66}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary.ant-btn-dangerous:hover{box-shadow:0 6px 20px #ff6b6b99}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary.ant-btn-dangerous[disabled],.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary.ant-btn-dangerous.ant-btn-disabled{background:#f5f5f5;color:#00000040;box-shadow:none;animation:none}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary[type=submit]{background:linear-gradient(-45deg,#7b68ee,#9b7fff,#a18cd1,#fbc2eb);background-size:400% 400%;animation:gradientAnimation 15s ease infinite;box-shadow:0 4px 15px #7b68ee66}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary[type=submit]:hover{box-shadow:0 6px 20px #7b68ee99}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary[type=submit][disabled],.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn-primary[type=submit].ant-btn-disabled{background:#f5f5f5;border-color:#d9d9d9;color:#00000040;box-shadow:none;cursor:not-allowed;animation:none}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn:not(.ant-btn-primary){background:#e8eaed;color:#5f6368;border:none;border-radius:8px;padding:4px 20px;height:36px;font-weight:500;transition:all .3s ease}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn:not(.ant-btn-primary):hover{background:#d8dadd;color:#4f5358;transform:translateY(-1px)}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn:not(.ant-btn-primary):active{transform:translateY(0)}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn:not(.ant-btn-primary)[disabled],.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn:not(.ant-btn-primary).ant-btn-disabled{background:#f5f5f5;color:#00000040;cursor:not-allowed}.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn:not(.ant-btn-primary)[disabled]:hover,.table_search_bar .table_search_menu_box .table_search_menu_item .ant-btn:not(.ant-btn-primary).ant-btn-disabled:hover{background:#f5f5f5;color:#00000040;transform:none}@media(max-width:768px){.table_search_bar{padding:4px 8px}.table_search_bar .table_search_item{width:100%;margin:6px 0}.table_search_bar .table_search_item .ant-form-item .ant-form-item-label label{font-size:15px}.table_search_bar .table_search_item .ant-form-item .ant-form-item-control-input{min-height:40px}.table_search_bar .table_search_item .ant-form-item .ant-form-item-control-input .ant-input,.table_search_bar .table_search_item .ant-form-item .ant-form-item-control-input .ant-select{font-size:15px}.table_search_bar .table_search_menu_box{width:100%;justify-content:flex-end;flex-wrap:wrap;margin:12px 0 0}.table_search_bar .table_search_menu_box .table_search_menu_item{margin:6px 6px 6px 0}.table_search_bar .table_search_menu_box .table_search_menu_item button{height:40px;font-size:16px;padding:0 20px}.table_search_bar .table_search_menu_box .table_search_menu_item button .anticon{font-size:18px}}.remote_tree_box .ant-tree-treenode{width:100%!important;height:40px!important}.remote_tree_box .ant-tree-treenode-motion{width:100%!important}.remote_tree_box .ant-tree-switcher{height:40px!important;line-height:40px!important;font-size:18px;display:flex!important;align-items:center;justify-content:center;position:relative}.remote_tree_box .ant-tree-switcher:before,.remote_tree_box .ant-tree-switcher_open:before{position:absolute!important;top:50%;left:50%;transform:translate(-50%,-50%);height:30px!important;width:30px!important;line-height:30px!important;font-size:18px;border-radius:4px;z-index:0}.remote_tree_box .ant-tree-switcher .anticon,.remote_tree_box .ant-tree-switcher svg{position:relative;z-index:1;vertical-align:0}.remote_tree_box .ant-tree-node-content-wrapper{width:100%!important;line-height:40px!important;font-size:16px}.remote_tree_box .ant-tree-title{width:100%!important}.remote_tree_box .remote_tree_title_box{width:100%!important;display:flex;align-items:center}.remote_tree_box .remote_tree_title_box:hover .remote_tree_menu_add,.remote_tree_box .remote_tree_title_box:hover .remote_tree_menu_edit,.remote_tree_box .remote_tree_title_box:hover .remote_tree_menu_delete{opacity:1;pointer-events:auto}.remote_tree_box .remote_tree_title{flex:1}.remote_tree_box .remote_tree_menu_add{margin:0 10px 0 0;font-size:16px;opacity:0;pointer-events:none;transition:opacity .2s ease}.remote_tree_box .remote_tree_menu_edit{margin:0 10px 0 0;opacity:0;pointer-events:none;transition:opacity .2s ease}.remote_tree_box .remote_tree_menu_delete{margin:0;opacity:0;pointer-events:none;transition:opacity .2s ease}.remote_tree_box .tree-icon{font-size:16px;cursor:pointer;transition:all .3s ease}.remote_tree_box .tree-icon:hover{transform:scale(1.2)}.remote_tree_box .tree-icon-add{color:#52c41a}.remote_tree_box .tree-icon-add:hover{color:#73d13d}.remote_tree_box .tree-icon-edit{color:#1890ff}.remote_tree_box .tree-icon-edit:hover{color:#40a9ff}.remote_tree_box .tree-icon-delete{color:#ff4d4f}.remote_tree_box .tree-icon-delete:hover{color:#ff7875}.remote_tree_top_menu_box{display:flex;width:100%;margin-bottom:5px}.remote_tree_top_menu_box .remote_tree_top_search{flex:1}.remote_tree_top_menu_box .remote_tree_top_search .ant-input-group-addon{display:none}.remote_tree_top_menu_box .ant-input-affix-wrapper{border-radius:5px!important}.remote_tree_top_menu_box .remote_tree_top_add{width:100%}.davinyu_RemoteTableSelect_box{display:inline-grid;width:100%}.davinyu_RemoteTableSelect_wrap{width:100%;height:auto;outline:0;padding:2px 7px;min-height:32px;height:auto!important;line-height:1;border:1px solid #d9d9d9;border-radius:2px;box-sizing:border-box;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.davinyu_RemoteTableSelect_wrap:after{content:"";display:block;height:0;clear:both}.davinyu_RemoteTableSelect_placeholder{font-size:13px;color:#b9bdd4;line-height:28px;text-align:left}.davinyu_RemoteTableSelect_add_menu{margin-top:5px;text-align:left}.davinyu_RemoteTableSelect_add_modal{height:100%;padding:0;margin:0}.davinyu_RemoteTableSelect_add_modal .ant-modal{padding-bottom:0;margin:0}.davinyu_RemoteTableSelect_add_modal .ant-modal-content{height:100%}.davinyu_RemoteTableSelect_add_modal .ant-modal-body{background-color:#fff;padding:5px 20px!important}.davinyu_RemoteTableSelect_add_modal .ant-modal-footer{background-color:#fff}.lochlan_RemoteTableSelect_option{position:relative;width:100%;color:#fff;line-height:28px;margin:2px 0;padding:0 22px 0 10px;border-radius:4px;display:flex}.lochlan_RemoteTableSelect_option .lochlan_RemoteTableSelect_option_content{line-height:24px}.lochlan_RemoteTableSelect_option .lochlan_RemoteTableSelect_option_action{width:60px;height:24px;text-align:right;cursor:pointer;position:absolute;right:0}.lochlan_RemoteTableSelect_option .lochlan_RemoteTableSelect_option_action .lochlan_RemoteTableSelect_option_action_item{font-size:18px;line-height:100%;margin-right:10px}.icon_select__control{padding:0 8px!important;min-width:unset!important;min-height:32px!important}.icon_select__value-container{padding:1px 8px!important}.icon_select__indicators{height:32px!important}.icon_select__control:hover{border-color:#4096ff!important;background-color:#fff!important}.icon_select__control:focus{border-color:#1677ff!important;box-shadow:0 0 0 2px #0591ff1a!important;background-color:#fff!important}.icon_select__single-value{grid-area:1 / 1 / 2 / 3;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#333;margin-left:2px;margin-right:2px;box-sizing:border-box}.icon_select_option_container{display:flex;gap:4px;padding:4px 0 0 4px}.icon_select_option_container .option_item{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:1px solid #ccc;border-radius:5px;transition:background-color .2s}.icon_select_option_container .option_item:hover{background-color:#eee}.icon_select_option_container .option_item_selected{background-color:#e6f4ff}.admin_layout_header_menu_dropdown_xs{width:100%!important}.admin_layout_header_box{padding:0 20px;display:flex;color:#000;width:100%}.admin_layout_header_box .admin_layout_header_menu{flex:1}.admin_layout_header_box .admin_layout_header_userinfo .admin_layout_header_userinfo_name{margin:0 10px;display:inline}.admin_dark_sider_menu .ant-menu-item-selected{background-color:#183044!important}.admin_dark_sider_menu .ant-menu-item-active{background-color:#162633!important}.admin_layout_box .admin_layout_logo_txt{margin-left:10px;vertical-align:text-bottom;font-size:16px;text-transform:uppercase;display:inline-block;font-weight:700;white-space:nowrap;margin-bottom:0;animation:fadeRightIn___2_LaH .3s cubic-bezier(.645,.045,.355,1);animation-fill-mode:both;background:linear-gradient(to right,#06bed8,#f305a4);background-clip:text;-webkit-background-clip:text;color:transparent}.admin_layout_box .admin_layout_sider_normal{box-shadow:0 0 28px #1890ff1a;z-index:10}.admin_layout_box .admin_layout_sider_open{flex:0 0 256px!important;max-width:256px!important;min-width:256px!important;width:256px!important}.admin_layout_box .admin_layout_sider_open_broken{position:fixed!important;top:0;left:0;height:100vh;z-index:88}.admin_layout_box .admin_layout_sider_open_broken+.admin_layout_container{transition:none!important}.admin_layout_box .admin_layout_sider_open_broken+.admin_layout_container .admin_layout_container_header_normal{transition:none!important}.admin_layout_box .admin_layout_sider_collapsed_broken{position:fixed!important;top:0;left:-100%;height:100vh;z-index:-1}.admin_layout_box .admin_layout_logo{z-index:1;height:64px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0 24px;box-shadow:0 1px 9px -3px #0003}.admin_layout_box .admin_layout_menu_container{height:calc(100vh - 112px);overflow-x:hidden;-ms-flex:1 1;flex:1 1;padding:24px 0}.admin_layout_box .admin_layout_menu_container .admin_layout_scrollbar_container{position:relative;height:100%;overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.admin_layout_box .admin_layout_switch_theme{width:100%;height:48px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding:0 16px;overflow:hidden;transition:all .3s}.admin_layout_box .admin_layout_switch_theme .admin_layout_action_bulb{min-width:14px;margin-right:4px;font-size:14px}.admin_layout_box .admin_layout_container_drawer_open{position:fixed;left:0;width:100%}.admin_layout_box .admin_layout_container{padding-top:64px;height:100vh;-ms-flex:1 1;flex:1 1;overflow-y:scroll;overflow-x:hidden}.admin_layout_box .admin_layout_container .ant-layout-content{height:calc(100vh - 69px)!important;position:relative}.admin_layout_box .admin_layout_container .ant-layout-content .admin_layout_content_children{position:relative;height:100%;width:100%;background-color:#f8fafc;padding:10px 15px 0}.admin_layout_box .admin_layout_container .admin_layout_container_header_normal{position:fixed;top:0;right:0;z-index:9;transition:width .2s;padding:0;box-shadow:4px 4px 40px #0000000d;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;height:64px;-ms-flex-align:center;align-items:center;background-color:#fff}.admin_layout_box .admin_layout_container .admin_layout_container_header_open{width:calc(100% - 256px)}.admin_layout_box .admin_layout_container .admin_layout_container_header_close{width:calc(100% - 80px)}.admin_layout_box .admin_layout_container .admin_layout_container_header_broken{width:calc(100% + -0px)}.admin_layout_box .admin_layout_container .admin_layout_sider_switch_button{width:64px;height:64px;line-height:64px;text-align:center;font-size:18px;cursor:pointer;transition:all .3s ease-out}.admin_layout_box .admin_layout_content_drawer{width:200px!important}.admin_layout_box .admin_layout_container::-webkit-scrollbar{width:10px;height:5px}.admin_layout_box .admin_layout_container::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#c5c5c5}.admin_layout_box .admin_layout_container::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);border-radius:10px;background:#fff}.admin_layout_box.admin_layout_mobile .admin_layout_container,.admin_layout_box.admin_layout_mobile .admin_layout_container_header_normal{transition:none!important}.action-button{display:inline-flex;align-items:center;justify-content:center;margin:0 6px;font-size:16px;transition:all .3s ease}.action-button:hover:not(.action-button-disabled){transform:scale(1.15)}.action-button:active:not(.action-button-disabled){transform:scale(.95)}.action-button-disabled{opacity:.4;cursor:not-allowed!important}.action-edit{color:#1890ff}.action-edit:hover{color:#40a9ff}.action-delete{color:#ff4d4f}.action-delete:hover{color:#ff7875}.action-view{color:#52c41a}.action-view:hover{color:#73d13d}.action-permission{color:#faad14}.action-permission:hover{color:#ffc53d}.action-authorisation{color:#722ed1}.action-authorisation:hover{color:#9254de}.action-session{color:#13c2c2}.action-session:hover{color:#36cfc9}.action-reset{color:#eb2f96}.action-reset:hover{color:#f759ab}.action-setting{color:#595959}.action-setting:hover{color:#8c8c8c}.action-see-secret{color:#52c41a}.action-see-secret:hover{color:#73d13d}.action-user{color:#1890ff}.action-user:hover{color:#40a9ff}.action-app{color:#722ed1}.action-app:hover{color:#9254de}.action-third-info{color:#13c2c2}.action-third-info:hover{color:#36cfc9}.table-actions{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}
|
package/dist/index.d.ts
CHANGED
|
@@ -23,12 +23,12 @@ export { default as withAuth } from './hoc/withAuth';
|
|
|
23
23
|
export { default as withRouteAuth } from './hoc/withRouteAuth';
|
|
24
24
|
export { default as withRedux } from './hoc/withRedux';
|
|
25
25
|
export { default as withEzAntdConfig } from './hoc/withEzAntdConfig';
|
|
26
|
-
export { ConfigProvider, useConfig, useUpdateConfig, ConfigContext, getFirstAccessibleRoute, getRoutePermission,
|
|
26
|
+
export { ConfigProvider, useConfig, useUpdateConfig, ConfigContext, getFirstAccessibleRoute, getRoutePermission, getFeaturePointPermission, hasFeaturePointPermission, hasRoutePermission } from './ConfigProvider';
|
|
27
27
|
export { default as DrawerRemoteTableSelect } from './DrawerRemoteTableSelect';
|
|
28
28
|
export { default as ModalAvatar } from './ModalAvatar';
|
|
29
29
|
export { default as TableActions } from './TableActions';
|
|
30
30
|
export { default as Auth } from './Auth';
|
|
31
|
-
export { default as
|
|
31
|
+
export { default as FeaturePoint } from './FeaturePoint';
|
|
32
32
|
export type { WidthType, GridProp, UseResponsiveResult } from './Grid';
|
|
33
33
|
export type { LoadingProp } from './Loading';
|
|
34
34
|
export type { DrawerClassProps } from './Drawer';
|
|
@@ -43,10 +43,10 @@ export type { RemoteModalSelectProp } from './RemoteModalSelect';
|
|
|
43
43
|
export type { IconSelectProps } from './IconSelect';
|
|
44
44
|
export type { IconShowProps } from './IconSelect/IconShow';
|
|
45
45
|
export type { AdminLayoutProp, MenuDef } from './AdminLayout';
|
|
46
|
-
export type { EzAntdConfig, RoutePermissionMap,
|
|
46
|
+
export type { EzAntdConfig, RoutePermissionMap, FeaturePointPermissionMap } from './ConfigProvider';
|
|
47
47
|
export type { ActionConfig, ActionType, TableActionsProps } from './TableActions';
|
|
48
48
|
export type { AuthProps } from './Auth';
|
|
49
|
-
export type {
|
|
49
|
+
export type { FeaturePointProps } from './FeaturePoint';
|
|
50
50
|
export type { WithRouteProps } from './hoc/withRoute';
|
|
51
51
|
export type { WithAuthProps } from './hoc/withAuth';
|
|
52
52
|
export type { WithReduxProps } from './hoc/withRedux';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,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-
{"version":3,"file":"ButtonAuth.d.ts","sourceRoot":"","sources":["../../src/ButtonAuth/ButtonAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU;IACV,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgBzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ButtonAuth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|