@das-fed/upf-utils 6.4.0-dev.245 → 6.4.0-dev.247
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/api-services/modules/contract/es5.js +849 -852
- package/api-services/modules/contract/index.js +661 -665
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1075 -1087
- package/api-services/modules/duty-manage/index.js +880 -898
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1102 -1114
- package/api-services/modules/enterpriseright/index.js +902 -920
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1361 -1349
- package/api-services/modules/gateway-edge/es5.js +1079 -1088
- package/api-services/modules/gateway-edge/index.js +883 -897
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1073 -1055
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1090 -1081
- package/api-services/modules/justauth/index.js +898 -884
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1114 -1102
- package/api-services/modules/portal/index.js +920 -902
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1093 -1081
- package/api-services/modules/super-admin/index.js +901 -883
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1114 -1102
- package/api-services/modules/supplychain-manage/index.js +920 -902
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +1074 -1067
- package/api-services/modules/systemConfiguration/index.js +886 -876
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1114 -1102
- package/api-services/modules/tool/index.js +920 -902
- package/api-services/modules/tool/index.js.gz +0 -0
- package/common-info/es5.js +1248 -1257
- package/common-info/getPermissionMethod/es5.js +1332 -1344
- package/common-info/getPermissionMethod/index.js +1104 -1122
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +1026 -1040
- package/common-info/index.js.gz +0 -0
- package/create-api-service/es5.js +1090 -1078
- package/create-api-service/index.js +905 -887
- package/create-api-service/index.js.gz +0 -0
- package/esm-map.json +3 -1
- package/package.json +3 -3
- package/theme/color.d.ts +7 -0
- package/theme/es5.d.ts +20 -8
- package/theme/es5.js +491 -431
- package/theme/index.d.ts +20 -8
- package/theme/index.js +249 -222
- package/theme/index.js.gz +0 -0
package/theme/index.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { BUILTIN_PRESET_THEME_NAMES, PRESET_THEMES, BuiltinPresetThemeConfig, BuiltinPresetThemeName } from './presets';
|
|
2
|
+
import { mixHexColor, toRgbaColor } from './color';
|
|
2
3
|
|
|
4
|
+
export { mixHexColor, normalizeHexColor, resolvePrimaryBgColor, toRgbaColor } from './color';
|
|
3
5
|
export type ThemeVariables = Record<string, string>;
|
|
4
6
|
type ThemeVariableSource = Record<string, string | undefined>;
|
|
7
|
+
export interface ThemeBridgeVariableResolveOptions {
|
|
8
|
+
themeName?: string;
|
|
9
|
+
basePresetName?: string;
|
|
10
|
+
}
|
|
5
11
|
export interface ThemeConfig {
|
|
6
12
|
name?: string;
|
|
7
13
|
basePresetName?: string;
|
|
@@ -34,9 +40,11 @@ export interface DefaultThemeStyleOptions extends ApplyThemeVariablesOptions {
|
|
|
34
40
|
export interface ThemeBridgeResolveContext<TVariables extends object = ThemeVariables> {
|
|
35
41
|
variables: TVariables;
|
|
36
42
|
result: Record<string, string>;
|
|
43
|
+
themeName?: string;
|
|
44
|
+
basePresetName?: string;
|
|
37
45
|
}
|
|
38
46
|
export interface ThemeBridgeVariableItem<TVariables extends object = ThemeVariables> {
|
|
39
|
-
target: string;
|
|
47
|
+
target: string | readonly string[];
|
|
40
48
|
from?: keyof TVariables | string;
|
|
41
49
|
value?: string;
|
|
42
50
|
resolve?: (context: ThemeBridgeResolveContext<TVariables> & {
|
|
@@ -53,6 +61,8 @@ export interface ApplyThemeVariablesOptions {
|
|
|
53
61
|
includeElementAndDasUiBridges?: boolean;
|
|
54
62
|
/** 写入 data-theme 的主题名。 */
|
|
55
63
|
themeName?: string;
|
|
64
|
+
/** 当前主题基础预设名,用于自定义主题继承预设差异化 token。 */
|
|
65
|
+
basePresetName?: string;
|
|
56
66
|
/** 写入 data-skin 的皮肤名;传 null 时移除。 */
|
|
57
67
|
skinName?: string | null;
|
|
58
68
|
}
|
|
@@ -72,18 +82,20 @@ export type HostThemeRootSyncOptions = SubAppThemeSyncOptions;
|
|
|
72
82
|
export interface RuntimeThemeVariableBuildOptions {
|
|
73
83
|
/** 是否写入 Element Plus 与 das-ui/das 历史兼容变量;默认 true。 */
|
|
74
84
|
includeElementAndDasUiBridges?: boolean;
|
|
85
|
+
/** 当前主题名,用于按预设差异化桥接局部组件 token。 */
|
|
86
|
+
themeName?: string;
|
|
87
|
+
/** 当前主题基础预设名,自定义主题可通过该字段继承预设差异。 */
|
|
88
|
+
basePresetName?: string;
|
|
75
89
|
}
|
|
76
|
-
export declare const
|
|
77
|
-
export declare const toRgbaColor: (color: string, alpha: number, fallback: string) => string;
|
|
78
|
-
export declare const resolveThemeBridgeVariables: <TVariables extends object = ThemeVariables>(variables: TVariables, items: readonly ThemeBridgeVariableItem<TVariables>[]) => any;
|
|
90
|
+
export declare const resolveThemeBridgeVariables: <TVariables extends object = ThemeVariables>(variables: TVariables, items: readonly ThemeBridgeVariableItem<TVariables>[], options?: ThemeBridgeVariableResolveOptions) => any;
|
|
79
91
|
export declare const LEGACY_THEME_BRIDGE_ITEMS: ThemeBridgeVariableItem[];
|
|
80
92
|
export declare const ELEMENT_THEME_BRIDGE_ITEMS: ThemeBridgeVariableItem[];
|
|
81
93
|
export declare const DAS_UI_THEME_BRIDGE_ITEMS: ThemeBridgeVariableItem[];
|
|
82
94
|
export declare const UPF_COMPONENT_THEME_BRIDGE_ITEMS: ThemeBridgeVariableItem[];
|
|
83
|
-
export declare const toLegacyThemeVariables: (variables: object) => any;
|
|
84
|
-
export declare const toElementThemeVariables: (variables: object) => any;
|
|
85
|
-
export declare const toDasUiColorOverrides: (variables: object) => any;
|
|
86
|
-
export declare const toUpfComponentThemeVariables: (variables: object) => any;
|
|
95
|
+
export declare const toLegacyThemeVariables: (variables: object, options?: ThemeBridgeVariableResolveOptions) => any;
|
|
96
|
+
export declare const toElementThemeVariables: (variables: object, options?: ThemeBridgeVariableResolveOptions) => any;
|
|
97
|
+
export declare const toDasUiColorOverrides: (variables: object, options?: ThemeBridgeVariableResolveOptions) => any;
|
|
98
|
+
export declare const toUpfComponentThemeVariables: (variables: object, options?: ThemeBridgeVariableResolveOptions) => any;
|
|
87
99
|
export declare const buildRuntimeThemeVariables: (variables: object, options?: RuntimeThemeVariableBuildOptions) => Record<string, string>;
|
|
88
100
|
export { BUILTIN_PRESET_THEME_NAMES, PRESET_THEMES };
|
|
89
101
|
export declare const getPresetTheme: (themeName: string) => any;
|