@das-fed/upf-utils 6.4.0-dev.258 → 6.4.0-dev.260
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 +1752 -1788
- package/api-services/index.js +1407 -1441
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +721 -749
- package/api-services/modules/app-manage/index.js +565 -588
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +980 -1005
- package/api-services/modules/authentication/index.js +773 -792
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +798 -826
- package/api-services/modules/bems/index.js +644 -667
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +963 -989
- package/api-services/modules/contract/index.js +763 -782
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1288 -1304
- package/api-services/modules/duty-manage/index.js +1065 -1070
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +735 -763
- package/api-services/modules/enterpriseright/index.js +581 -604
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1378 -1419
- package/api-services/modules/file/es5.js +797 -826
- package/api-services/modules/file/index.js +625 -649
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +1281 -1297
- package/api-services/modules/gateway-edge/index.js +1063 -1068
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1091 -1133
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1366 -1406
- package/api-services/modules/iot/index.js +1121 -1162
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1253 -1288
- package/api-services/modules/justauth/index.js +1032 -1065
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1232 -1272
- package/api-services/modules/knowledge/index.js +1019 -1060
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +1236 -1276
- package/api-services/modules/link/index.js +1018 -1059
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1281 -1297
- package/api-services/modules/permission/index.js +1063 -1068
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +718 -746
- package/api-services/modules/platformManage/index.js +568 -591
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1279 -1298
- package/api-services/modules/portal/index.js +1061 -1070
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +721 -749
- package/api-services/modules/space-manage/index.js +565 -588
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +743 -771
- package/api-services/modules/super-admin/index.js +581 -604
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +726 -754
- package/api-services/modules/supplier/index.js +577 -600
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1279 -1298
- package/api-services/modules/supplychain-manage/index.js +1061 -1070
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +735 -763
- package/api-services/modules/systemConfiguration/index.js +581 -604
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +735 -763
- package/api-services/modules/tool/index.js +581 -604
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +733 -761
- package/api-services/src/create-service/index.js +580 -603
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +1333 -1373
- package/common-info/getPermissionMethod/es5.js +767 -795
- package/common-info/getPermissionMethod/index.js +608 -631
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +1096 -1137
- package/common-info/index.js.gz +0 -0
- package/common-tools/es5.d.ts +1 -0
- package/common-tools/es5.js +9 -0
- package/common-tools/index.d.ts +1 -0
- package/common-tools/index.js +1 -0
- package/common-tools/timezone-format/es5.d.ts +5 -110
- package/common-tools/timezone-format/es5.js +473 -662
- package/common-tools/timezone-format/get-iana-data/dayjs-timezone-iana-plugin.d.ts +72 -0
- package/common-tools/timezone-format/get-iana-data/iana-api-fetch.d.ts +21 -0
- package/common-tools/timezone-format/get-iana-data/moment-iana-loader.d.ts +29 -0
- package/common-tools/timezone-format/index.d.ts +5 -110
- package/common-tools/timezone-format/index.js +328 -446
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/create-api-service/es5.js +1250 -1285
- package/create-api-service/index.js +1031 -1064
- package/create-api-service/index.js.gz +0 -0
- package/esm-map.json +7 -26
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +3 -3
- package/theme/es5.d.ts +8 -22
- package/theme/es5.js +354 -367
- package/theme/index.d.ts +8 -22
- package/theme/index.js +255 -276
- package/theme/index.js.gz +0 -0
|
Binary file
|
package/esm-map.json
CHANGED
|
@@ -113,6 +113,8 @@
|
|
|
113
113
|
"PRESET_THEMES": "/theme/index",
|
|
114
114
|
"getPresetTheme": "/theme/index",
|
|
115
115
|
"getAllPresetThemes": "/theme/index",
|
|
116
|
+
"getDefaultPresetTheme": "/theme/index",
|
|
117
|
+
"getDefaultThemeVariables": "/theme/index",
|
|
116
118
|
"buildPresetThemeCssText": "/theme/index",
|
|
117
119
|
"buildDefaultThemeCssText": "/theme/index",
|
|
118
120
|
"ensureDefaultThemeStyle": "/theme/index",
|
|
@@ -129,7 +131,7 @@
|
|
|
129
131
|
"getThemeVariable": "/theme/index",
|
|
130
132
|
"getVar": "/theme/index",
|
|
131
133
|
"getVarValue": "/theme/index",
|
|
132
|
-
"useSubAppTheme": "/theme/
|
|
134
|
+
"useSubAppTheme": "/theme/vue",
|
|
133
135
|
"getOriginFromUrl": "/common-tools/get-url-params/index",
|
|
134
136
|
"getUrlParams": "/common-tools/get-url-params/index",
|
|
135
137
|
"getFullPath": "/common-tools/get-url-params/index",
|
|
@@ -226,8 +228,8 @@
|
|
|
226
228
|
"getMenuListnfo": "/common-info/index",
|
|
227
229
|
"setI18nBridge": "/i18n-bridge/index",
|
|
228
230
|
"getI18nBridge": "/i18n-bridge/index",
|
|
229
|
-
"groupPermissionListByModuleAndCode": "/common-info/
|
|
230
|
-
"getGroupedCurrentUserPermissionList": "/common-info/
|
|
231
|
+
"groupPermissionListByModuleAndCode": "/common-info/index",
|
|
232
|
+
"getGroupedCurrentUserPermissionList": "/common-info/index",
|
|
231
233
|
"getCurrentModulePermissionData": "/common-info/getPermissionMethod/index",
|
|
232
234
|
"getCurrentUserPermissionList": "/common-info/getPermissionMethod/index",
|
|
233
235
|
"hasMenuPermissionByRouteCode": "/common-info/getPermissionMethod/index",
|
|
@@ -257,28 +259,7 @@
|
|
|
257
259
|
"DAS_UI_THEME_BRIDGE_ITEMS": "/theme/index",
|
|
258
260
|
"UPF_COMPONENT_THEME_BRIDGE_ITEMS": "/theme/index",
|
|
259
261
|
"getHostThemeSnapshotFromWindowName": "/theme/index",
|
|
260
|
-
"clonePresetTheme": "/theme/index",
|
|
262
|
+
"clonePresetTheme": "/theme/presets/index",
|
|
261
263
|
"normalizeHexColor": "/theme/index",
|
|
262
|
-
"resolvePrimaryBgColor": "/theme/index"
|
|
263
|
-
"UPF_IANA_TIMEZONE_DATA_KEY": "/common-tools/timezone-format/index",
|
|
264
|
-
"IANA_TIMEZONE_DATA_CHANGE_EVENT": "/common-tools/timezone-format/index",
|
|
265
|
-
"setRuntimeIanaTimeZoneDataSnapshot": "/common-tools/timezone-format/index",
|
|
266
|
-
"getRuntimeIanaTimeZoneDataSnapshot": "/common-tools/timezone-format/index",
|
|
267
|
-
"readInjectedParentIanaTimeZoneDataSnapshot": "/common-tools/timezone-format/index",
|
|
268
|
-
"ensureInjectedIanaTimeZoneData": "/common-tools/timezone-format/index",
|
|
269
|
-
"getBrowserTimeZone": "/common-tools/timezone-format/index",
|
|
270
|
-
"formatLocalDateTimeIntl": "/common-tools/timezone-format/index",
|
|
271
|
-
"assertPackedIanaData": "/common-tools/timezone-format/index",
|
|
272
|
-
"preloadDayjsIanaFromData": "/common-tools/timezone-format/index",
|
|
273
|
-
"getCachedDayjsPackedIanaData": "/common-tools/timezone-format/index",
|
|
274
|
-
"preloadDayjsIanaFromApi": "/common-tools/timezone-format/index",
|
|
275
|
-
"clearDayjsIanaCache": "/common-tools/timezone-format/index",
|
|
276
|
-
"createIanaDbFromPackedData": "/common-tools/timezone-format/index",
|
|
277
|
-
"TIME_ZONE_PACKED_DATA_URL": "/common-tools/timezone-format/index",
|
|
278
|
-
"getAccessTokenFromLocalStorage": "/common-tools/timezone-format/index",
|
|
279
|
-
"getDefaultIanaAuthorization": "/common-tools/timezone-format/index",
|
|
280
|
-
"buildIanaFetchInit": "/common-tools/timezone-format/index",
|
|
281
|
-
"assertPackedIanaTzData": "/common-tools/timezone-format/index",
|
|
282
|
-
"loadIanaData": "/common-tools/timezone-format/index",
|
|
283
|
-
"loadIanaFromApi": "/common-tools/timezone-format/index"
|
|
264
|
+
"resolvePrimaryBgColor": "/theme/index"
|
|
284
265
|
}
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/upf-utils",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.260",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@babel/preset-env": "7.26.0",
|
|
25
|
-
"@das-fed/upf-cli": "6.4.0-dev.
|
|
26
|
-
"@das-fed/upf-web": "6.4.0-dev.
|
|
25
|
+
"@das-fed/upf-cli": "6.4.0-dev.260",
|
|
26
|
+
"@das-fed/upf-web": "6.4.0-dev.260",
|
|
27
27
|
"@rollup/plugin-babel": "6.0.4",
|
|
28
28
|
"@types/js-cookie": "^3.0.6",
|
|
29
29
|
"@types/lodash-es": "^4.17.12",
|
package/theme/es5.d.ts
CHANGED
|
@@ -1,26 +1,13 @@
|
|
|
1
|
+
import { BUILTIN_PRESET_THEME_NAMES, PRESET_THEMES, BuiltinPresetThemeConfig, BuiltinPresetThemeName } from './presets';
|
|
1
2
|
import { RuntimeThemeVariableBuildOptions } from './bridge';
|
|
2
|
-
import {
|
|
3
|
+
import { ThemeVariables } from './source-variables';
|
|
3
4
|
|
|
4
5
|
export { mixHexColor, normalizeHexColor, resolvePrimaryBgColor, toRgbaColor } from './color';
|
|
5
|
-
type ThemeVariableSource = Record<string, string | undefined>;
|
|
6
|
-
export interface BuiltinPresetThemeConfig {
|
|
7
|
-
name: BuiltinPresetThemeName;
|
|
8
|
-
displayName: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
mode?: ThemeMode;
|
|
11
|
-
source: 'preset';
|
|
12
|
-
basePresetName: BuiltinPresetThemeName;
|
|
13
|
-
variables: ThemeVariables;
|
|
14
|
-
}
|
|
15
|
-
export declare const BUILTIN_PRESET_THEME_NAMES: BuiltinPresetThemeName[];
|
|
16
|
-
export declare const PRESET_THEMES: Record<BuiltinPresetThemeName, BuiltinPresetThemeConfig>;
|
|
17
|
-
export declare const clonePresetTheme: (theme: BuiltinPresetThemeConfig) => BuiltinPresetThemeConfig;
|
|
18
|
-
export declare const getPresetTheme: (themeName: string) => BuiltinPresetThemeConfig;
|
|
19
|
-
export declare const getAllPresetThemes: () => any;
|
|
20
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';
|
|
21
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';
|
|
22
8
|
export type { RuntimeThemeVariableBuildOptions, ThemeBridgeResolveContext, ThemeBridgeVariableItem, ThemeBridgeVariableResolveOptions, } from './bridge';
|
|
23
9
|
export type { BuiltinPresetThemeName, PartialThemeVariables, ThemeMode, ThemeSourceVariableMeta, ThemeSourceVariableName, ThemeVariableCategory, ThemeVariableCategoryGroupKey, ThemeVariables, } from './source-variables';
|
|
10
|
+
type ThemeVariableSource = Record<string, string | undefined>;
|
|
24
11
|
export interface ThemeConfig {
|
|
25
12
|
name?: string;
|
|
26
13
|
basePresetName?: string;
|
|
@@ -81,6 +68,11 @@ export interface SubAppThemeSyncOptions extends ThemePullOptions {
|
|
|
81
68
|
onThemeChange?: (event: ThemeChangeEvent) => void;
|
|
82
69
|
}
|
|
83
70
|
export type HostThemeRootSyncOptions = SubAppThemeSyncOptions;
|
|
71
|
+
export { BUILTIN_PRESET_THEME_NAMES, PRESET_THEMES };
|
|
72
|
+
export declare const getPresetTheme: (themeName: string) => any;
|
|
73
|
+
export declare const getAllPresetThemes: () => any;
|
|
74
|
+
export declare const getDefaultPresetTheme: () => BuiltinPresetThemeConfig;
|
|
75
|
+
export declare const getDefaultThemeVariables: () => any;
|
|
84
76
|
export declare const buildPresetThemeCssText: (presetName?: string, options?: RuntimeThemeVariableBuildOptions) => string;
|
|
85
77
|
export declare const buildDefaultThemeCssText: (options?: RuntimeThemeVariableBuildOptions) => string;
|
|
86
78
|
export declare const ensureDefaultThemeStyle: (options?: DefaultThemeStyleOptions) => any;
|
|
@@ -100,9 +92,3 @@ export declare const getVar: (key?: string) => string;
|
|
|
100
92
|
export declare const getVarValue: (key?: string, root?: HTMLElement | null) => {
|
|
101
93
|
value: any;
|
|
102
94
|
};
|
|
103
|
-
export declare const useSubAppTheme: (options?: SubAppThemeSyncOptions) => {
|
|
104
|
-
currentTheme: any;
|
|
105
|
-
getVariable: (varName: string) => any;
|
|
106
|
-
syncTheme: () => ThemeChangeEvent<string, Record<import('./source-variables').ThemeSourceVariableName, string>>;
|
|
107
|
-
changeTheme: (themeName: string) => boolean;
|
|
108
|
-
};
|