@das-fed/upf-utils 6.4.0-dev.260 → 6.4.0-dev.261
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 +833 -807
- package/api-services/index.js +642 -622
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +999 -973
- package/api-services/modules/app-manage/index.js +787 -768
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +769 -741
- package/api-services/modules/authentication/index.js +600 -577
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1237 -1197
- package/api-services/modules/bems/index.js +1015 -974
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +763 -735
- package/api-services/modules/contract/index.js +604 -581
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +756 -728
- package/api-services/modules/duty-manage/index.js +605 -582
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +763 -735
- package/api-services/modules/enterpriseright/index.js +604 -581
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1419 -1378
- package/api-services/modules/file/es5.js +1460 -1443
- package/api-services/modules/file/index.js +1174 -1168
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +1297 -1281
- package/api-services/modules/gateway-edge/index.js +1068 -1063
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1133 -1091
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +988 -960
- package/api-services/modules/iot/index.js +795 -772
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1312 -1275
- package/api-services/modules/justauth/index.js +1081 -1044
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1272 -1232
- package/api-services/modules/knowledge/index.js +1060 -1019
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +1276 -1236
- package/api-services/modules/link/index.js +1059 -1018
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +989 -963
- package/api-services/modules/permission/index.js +782 -763
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +989 -963
- package/api-services/modules/platformManage/index.js +771 -752
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1298 -1279
- package/api-services/modules/portal/index.js +1070 -1061
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +749 -721
- package/api-services/modules/space-manage/index.js +588 -565
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1281 -1241
- package/api-services/modules/super-admin/index.js +1061 -1020
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +754 -726
- package/api-services/modules/supplier/index.js +600 -577
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1297 -1281
- package/api-services/modules/supplychain-manage/index.js +1068 -1063
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +989 -963
- package/api-services/modules/systemConfiguration/index.js +782 -763
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1297 -1281
- package/api-services/modules/tool/index.js +1068 -1063
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +761 -733
- package/api-services/src/create-service/index.js +603 -580
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +1139 -1108
- package/common-info/getPermissionMethod/es5.js +1533 -1517
- package/common-info/getPermissionMethod/index.js +1262 -1257
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +899 -872
- package/common-info/index.js.gz +0 -0
- package/common-tools/es5.d.ts +0 -1
- package/common-tools/es5.js +0 -9
- package/common-tools/index.d.ts +0 -1
- package/common-tools/index.js +0 -1
- package/common-tools/timezone-format/es5.d.ts +110 -5
- package/common-tools/timezone-format/es5.js +662 -473
- package/common-tools/timezone-format/get-iana-data/iana-api-fetch.d.ts +0 -3
- package/common-tools/timezone-format/get-iana-data/moment-iana-loader.d.ts +4 -3
- package/common-tools/timezone-format/index.d.ts +110 -5
- package/common-tools/timezone-format/index.js +446 -328
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/create-api-service/es5.js +1309 -1272
- package/create-api-service/index.js +1080 -1043
- package/create-api-service/index.js.gz +0 -0
- package/esm-map.json +26 -7
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/package.json +3 -3
- package/theme/es5.d.ts +22 -8
- package/theme/es5.js +367 -354
- package/theme/index.d.ts +22 -8
- package/theme/index.js +276 -255
- package/theme/index.js.gz +0 -0
|
Binary file
|
package/esm-map.json
CHANGED
|
@@ -113,8 +113,6 @@
|
|
|
113
113
|
"PRESET_THEMES": "/theme/index",
|
|
114
114
|
"getPresetTheme": "/theme/index",
|
|
115
115
|
"getAllPresetThemes": "/theme/index",
|
|
116
|
-
"getDefaultPresetTheme": "/theme/index",
|
|
117
|
-
"getDefaultThemeVariables": "/theme/index",
|
|
118
116
|
"buildPresetThemeCssText": "/theme/index",
|
|
119
117
|
"buildDefaultThemeCssText": "/theme/index",
|
|
120
118
|
"ensureDefaultThemeStyle": "/theme/index",
|
|
@@ -131,7 +129,7 @@
|
|
|
131
129
|
"getThemeVariable": "/theme/index",
|
|
132
130
|
"getVar": "/theme/index",
|
|
133
131
|
"getVarValue": "/theme/index",
|
|
134
|
-
"useSubAppTheme": "/theme/
|
|
132
|
+
"useSubAppTheme": "/theme/index",
|
|
135
133
|
"getOriginFromUrl": "/common-tools/get-url-params/index",
|
|
136
134
|
"getUrlParams": "/common-tools/get-url-params/index",
|
|
137
135
|
"getFullPath": "/common-tools/get-url-params/index",
|
|
@@ -228,8 +226,8 @@
|
|
|
228
226
|
"getMenuListnfo": "/common-info/index",
|
|
229
227
|
"setI18nBridge": "/i18n-bridge/index",
|
|
230
228
|
"getI18nBridge": "/i18n-bridge/index",
|
|
231
|
-
"groupPermissionListByModuleAndCode": "/common-info/index",
|
|
232
|
-
"getGroupedCurrentUserPermissionList": "/common-info/index",
|
|
229
|
+
"groupPermissionListByModuleAndCode": "/common-info/getPermissionMethod/index",
|
|
230
|
+
"getGroupedCurrentUserPermissionList": "/common-info/getPermissionMethod/index",
|
|
233
231
|
"getCurrentModulePermissionData": "/common-info/getPermissionMethod/index",
|
|
234
232
|
"getCurrentUserPermissionList": "/common-info/getPermissionMethod/index",
|
|
235
233
|
"hasMenuPermissionByRouteCode": "/common-info/getPermissionMethod/index",
|
|
@@ -259,7 +257,28 @@
|
|
|
259
257
|
"DAS_UI_THEME_BRIDGE_ITEMS": "/theme/index",
|
|
260
258
|
"UPF_COMPONENT_THEME_BRIDGE_ITEMS": "/theme/index",
|
|
261
259
|
"getHostThemeSnapshotFromWindowName": "/theme/index",
|
|
262
|
-
"clonePresetTheme": "/theme/
|
|
260
|
+
"clonePresetTheme": "/theme/index",
|
|
263
261
|
"normalizeHexColor": "/theme/index",
|
|
264
|
-
"resolvePrimaryBgColor": "/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"
|
|
265
284
|
}
|
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.261",
|
|
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.261",
|
|
26
|
+
"@das-fed/upf-web": "6.4.0-dev.261",
|
|
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,13 +1,26 @@
|
|
|
1
|
-
import { BUILTIN_PRESET_THEME_NAMES, PRESET_THEMES, BuiltinPresetThemeConfig, BuiltinPresetThemeName } from './presets';
|
|
2
1
|
import { RuntimeThemeVariableBuildOptions } from './bridge';
|
|
3
|
-
import { ThemeVariables } from './source-variables';
|
|
2
|
+
import { BuiltinPresetThemeName, ThemeMode, ThemeVariables } from './source-variables';
|
|
4
3
|
|
|
5
4
|
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;
|
|
6
20
|
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
21
|
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
22
|
export type { RuntimeThemeVariableBuildOptions, ThemeBridgeResolveContext, ThemeBridgeVariableItem, ThemeBridgeVariableResolveOptions, } from './bridge';
|
|
9
23
|
export type { BuiltinPresetThemeName, PartialThemeVariables, ThemeMode, ThemeSourceVariableMeta, ThemeSourceVariableName, ThemeVariableCategory, ThemeVariableCategoryGroupKey, ThemeVariables, } from './source-variables';
|
|
10
|
-
type ThemeVariableSource = Record<string, string | undefined>;
|
|
11
24
|
export interface ThemeConfig {
|
|
12
25
|
name?: string;
|
|
13
26
|
basePresetName?: string;
|
|
@@ -68,11 +81,6 @@ export interface SubAppThemeSyncOptions extends ThemePullOptions {
|
|
|
68
81
|
onThemeChange?: (event: ThemeChangeEvent) => void;
|
|
69
82
|
}
|
|
70
83
|
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;
|
|
76
84
|
export declare const buildPresetThemeCssText: (presetName?: string, options?: RuntimeThemeVariableBuildOptions) => string;
|
|
77
85
|
export declare const buildDefaultThemeCssText: (options?: RuntimeThemeVariableBuildOptions) => string;
|
|
78
86
|
export declare const ensureDefaultThemeStyle: (options?: DefaultThemeStyleOptions) => any;
|
|
@@ -92,3 +100,9 @@ export declare const getVar: (key?: string) => string;
|
|
|
92
100
|
export declare const getVarValue: (key?: string, root?: HTMLElement | null) => {
|
|
93
101
|
value: any;
|
|
94
102
|
};
|
|
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
|
+
};
|