@das-fed/upf-utils 6.4.0-dev.248 → 6.4.0-dev.250
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/es5.js +2421 -2278
- package/api-services/index.js +2041 -1924
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +1335 -1207
- package/api-services/modules/app-manage/index.js +1093 -998
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +1335 -1207
- package/api-services/modules/authentication/index.js +1093 -998
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1485 -1342
- package/api-services/modules/bems/index.js +1235 -1118
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +1335 -1207
- package/api-services/modules/contract/index.js +1093 -998
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1362 -1229
- package/api-services/modules/duty-manage/index.js +1125 -1022
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1417 -1298
- package/api-services/modules/enterpriseright/index.js +1168 -1087
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +2191 -2060
- package/api-services/modules/file/es5.js +2374 -2231
- package/api-services/modules/file/index.js +2049 -1932
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +1334 -1203
- package/api-services/modules/gateway-edge/index.js +1104 -1005
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1833 -1734
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1522 -1391
- package/api-services/modules/iot/index.js +1261 -1162
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1415 -1296
- package/api-services/modules/justauth/index.js +1168 -1087
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1480 -1337
- package/api-services/modules/knowledge/index.js +1226 -1109
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +1334 -1203
- package/api-services/modules/link/index.js +1104 -1005
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1481 -1341
- package/api-services/modules/permission/index.js +1234 -1121
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +1485 -1366
- package/api-services/modules/platformManage/index.js +1221 -1140
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1351 -1220
- package/api-services/modules/portal/index.js +1100 -1001
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1417 -1298
- package/api-services/modules/space-manage/index.js +1168 -1087
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1358 -1227
- package/api-services/modules/super-admin/index.js +1121 -1022
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +1355 -1224
- package/api-services/modules/supplier/index.js +1106 -1007
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1482 -1339
- package/api-services/modules/supplychain-manage/index.js +1232 -1115
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +1334 -1203
- package/api-services/modules/systemConfiguration/index.js +1104 -1005
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1334 -1203
- package/api-services/modules/tool/index.js +1104 -1005
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1341 -1210
- package/api-services/src/create-service/index.js +1108 -1009
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +1752 -1621
- package/common-info/getPermissionMethod/es5.js +1326 -1198
- package/common-info/getPermissionMethod/index.js +1066 -971
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +1460 -1361
- package/common-info/index.js.gz +0 -0
- package/common-tools/timezone-format/es5.d.ts +31 -1
- package/common-tools/timezone-format/es5.js +640 -462
- package/common-tools/timezone-format/index.d.ts +31 -1
- package/common-tools/timezone-format/index.js +467 -304
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/create-api-service/es5.js +1342 -1211
- package/create-api-service/index.js +1109 -1010
- package/create-api-service/index.js.gz +0 -0
- package/esm-map.json +20 -0
- package/package.json +3 -3
- package/theme/bridge.d.ts +42 -0
- package/theme/es5.d.ts +8 -41
- package/theme/es5.js +800 -490
- package/theme/index.d.ts +8 -41
- package/theme/index.js +538 -391
- package/theme/index.js.gz +0 -0
- package/theme/source-variables.d.ts +35 -0
package/theme/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BUILTIN_PRESET_THEME_NAMES, PRESET_THEMES, BuiltinPresetThemeConfig, BuiltinPresetThemeName } from './presets';
|
|
2
|
-
import {
|
|
2
|
+
import { RuntimeThemeVariableBuildOptions } from './bridge';
|
|
3
|
+
import { ThemeVariables } from './source-variables';
|
|
3
4
|
|
|
4
5
|
export { mixHexColor, normalizeHexColor, resolvePrimaryBgColor, toRgbaColor } from './color';
|
|
5
|
-
export
|
|
6
|
+
export { DAS_UI_THEME_BRIDGE_ITEMS, ELEMENT_THEME_BRIDGE_ITEMS, LEGACY_THEME_BRIDGE_ITEMS, UPF_COMPONENT_THEME_BRIDGE_ITEMS, buildRuntimeThemeVariables, resolveThemeBridgeVariables, toDasUiColorOverrides, toElementThemeVariables, toLegacyThemeVariables, toUpfComponentThemeVariables, } from './bridge';
|
|
7
|
+
export { PRESET_THEME_VARIABLES, THEME_SOURCE_VARIABLE_CATEGORIES, THEME_SOURCE_VARIABLE_HINTS, THEME_SOURCE_VARIABLE_LABELS, THEME_SOURCE_VARIABLE_META, THEME_SOURCE_VARIABLE_NAMES, THEME_SOURCE_VARIABLE_RELATIONS, getThemeSourceVariableCategories, getThemeSourceVariableHints, getThemeSourceVariableLabels, getThemeSourceVariableNames, getThemeSourceVariableRelations, normalizeThemeSourceVariables, } from './source-variables';
|
|
8
|
+
export type { RuntimeThemeVariableBuildOptions, ThemeBridgeResolveContext, ThemeBridgeVariableItem, ThemeBridgeVariableResolveOptions, } from './bridge';
|
|
9
|
+
export type { BuiltinPresetThemeName, PartialThemeVariables, ThemeMode, ThemeSourceVariableMeta, ThemeSourceVariableName, ThemeVariableCategory, ThemeVariableCategoryGroupKey, ThemeVariables, } from './source-variables';
|
|
6
10
|
type ThemeVariableSource = Record<string, string | undefined>;
|
|
7
|
-
export interface ThemeBridgeVariableResolveOptions {
|
|
8
|
-
themeName?: string;
|
|
9
|
-
basePresetName?: string;
|
|
10
|
-
}
|
|
11
11
|
export interface ThemeConfig {
|
|
12
12
|
name?: string;
|
|
13
13
|
basePresetName?: string;
|
|
@@ -41,21 +41,6 @@ export interface DefaultThemeStyleOptions extends ApplyThemeVariablesOptions {
|
|
|
41
41
|
/** 是否写入 data-theme/data-skin;默认 true,mframe 自动兜底可关闭避免误标记。 */
|
|
42
42
|
setThemeAttributes?: boolean;
|
|
43
43
|
}
|
|
44
|
-
export interface ThemeBridgeResolveContext<TVariables extends object = ThemeVariables> {
|
|
45
|
-
variables: TVariables;
|
|
46
|
-
result: Record<string, string>;
|
|
47
|
-
themeName?: string;
|
|
48
|
-
basePresetName?: string;
|
|
49
|
-
}
|
|
50
|
-
export interface ThemeBridgeVariableItem<TVariables extends object = ThemeVariables> {
|
|
51
|
-
target: string | readonly string[];
|
|
52
|
-
from?: keyof TVariables | string;
|
|
53
|
-
value?: string;
|
|
54
|
-
resolve?: (context: ThemeBridgeResolveContext<TVariables> & {
|
|
55
|
-
mixHexColor: typeof mixHexColor;
|
|
56
|
-
toRgbaColor: typeof toRgbaColor;
|
|
57
|
-
}) => string;
|
|
58
|
-
}
|
|
59
44
|
export interface ApplyThemeVariablesOptions {
|
|
60
45
|
/** 写入目标节点;默认当前文档 html。 */
|
|
61
46
|
root?: HTMLElement | null;
|
|
@@ -83,24 +68,6 @@ export interface SubAppThemeSyncOptions extends ThemePullOptions {
|
|
|
83
68
|
onThemeChange?: (event: ThemeChangeEvent) => void;
|
|
84
69
|
}
|
|
85
70
|
export type HostThemeRootSyncOptions = SubAppThemeSyncOptions;
|
|
86
|
-
export interface RuntimeThemeVariableBuildOptions {
|
|
87
|
-
/** 是否写入 Element Plus 与 das-ui/das 历史兼容变量;默认 true。 */
|
|
88
|
-
includeElementAndDasUiBridges?: boolean;
|
|
89
|
-
/** 当前主题名,用于按预设差异化桥接局部组件 token。 */
|
|
90
|
-
themeName?: string;
|
|
91
|
-
/** 当前主题基础预设名,自定义主题可通过该字段继承预设差异。 */
|
|
92
|
-
basePresetName?: string;
|
|
93
|
-
}
|
|
94
|
-
export declare const resolveThemeBridgeVariables: <TVariables extends object = ThemeVariables>(variables: TVariables, items: readonly ThemeBridgeVariableItem<TVariables>[], options?: ThemeBridgeVariableResolveOptions) => any;
|
|
95
|
-
export declare const LEGACY_THEME_BRIDGE_ITEMS: ThemeBridgeVariableItem[];
|
|
96
|
-
export declare const ELEMENT_THEME_BRIDGE_ITEMS: ThemeBridgeVariableItem[];
|
|
97
|
-
export declare const DAS_UI_THEME_BRIDGE_ITEMS: ThemeBridgeVariableItem[];
|
|
98
|
-
export declare const UPF_COMPONENT_THEME_BRIDGE_ITEMS: ThemeBridgeVariableItem[];
|
|
99
|
-
export declare const toLegacyThemeVariables: (variables: object, options?: ThemeBridgeVariableResolveOptions) => any;
|
|
100
|
-
export declare const toElementThemeVariables: (variables: object, options?: ThemeBridgeVariableResolveOptions) => any;
|
|
101
|
-
export declare const toDasUiColorOverrides: (variables: object, options?: ThemeBridgeVariableResolveOptions) => any;
|
|
102
|
-
export declare const toUpfComponentThemeVariables: (variables: object, options?: ThemeBridgeVariableResolveOptions) => any;
|
|
103
|
-
export declare const buildRuntimeThemeVariables: (variables: object, options?: RuntimeThemeVariableBuildOptions) => Record<string, string>;
|
|
104
71
|
export { BUILTIN_PRESET_THEME_NAMES, PRESET_THEMES };
|
|
105
72
|
export declare const getPresetTheme: (themeName: string) => any;
|
|
106
73
|
export declare const getAllPresetThemes: () => any;
|
|
@@ -113,10 +80,10 @@ export declare const getHostThemeSnapshotFromWindowName: (debug?: boolean) => Th
|
|
|
113
80
|
export declare const applyThemeVariablesToDocument: (variables: object, options?: ApplyThemeVariablesOptions) => any;
|
|
114
81
|
export declare const applyThemeEventToDocument: (event: ThemeChangeEvent, options?: ApplyThemeVariablesOptions) => any;
|
|
115
82
|
export declare const getThemeAPI: (debug?: boolean) => ThemeBridgeAPI | null;
|
|
116
|
-
export declare const getCurrentTheme: (options?: ThemePullOptions) => ThemeChangeEvent<string, Record<
|
|
83
|
+
export declare const getCurrentTheme: (options?: ThemePullOptions) => ThemeChangeEvent<string, Record<import('./source-variables').ThemeSourceVariableName, string>>;
|
|
117
84
|
export declare const getThemeVariables: (options?: ThemePullOptions) => any;
|
|
118
85
|
export declare const changeTheme: (themeName: string, debug?: boolean) => boolean;
|
|
119
|
-
export declare const syncThemeFromHost: (options?: ThemePullOptions) => ThemeChangeEvent<string, Record<
|
|
86
|
+
export declare const syncThemeFromHost: (options?: ThemePullOptions) => ThemeChangeEvent<string, Record<import('./source-variables').ThemeSourceVariableName, string>>;
|
|
120
87
|
export declare const syncHostThemeRoot: (options?: ThemePullOptions) => ThemeChangeEvent | null;
|
|
121
88
|
export declare const initSubAppThemeSync: (options?: SubAppThemeSyncOptions) => () => void;
|
|
122
89
|
export declare const initHostThemeRootSync: (options?: HostThemeRootSyncOptions) => () => void;
|