@das-fed/upf-utils 6.4.0-dev.262 → 6.4.0-dev.263
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 +2093 -2511
- package/api-services/index.js +1568 -1846
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +1418 -1859
- package/api-services/modules/app-manage/index.js +1122 -1435
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +1372 -1801
- package/api-services/modules/authentication/index.js +1057 -1352
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1421 -1862
- package/api-services/modules/bems/index.js +1125 -1438
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +1509 -1938
- package/api-services/modules/contract/index.js +1202 -1497
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1376 -1805
- package/api-services/modules/duty-manage/index.js +1061 -1356
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1372 -1801
- package/api-services/modules/enterpriseright/index.js +1057 -1352
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +2207 -2637
- package/api-services/modules/file/es5.js +2127 -2569
- package/api-services/modules/file/index.js +1627 -1941
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +1372 -1801
- package/api-services/modules/gateway-edge/index.js +1057 -1352
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1661 -1957
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1588 -2029
- package/api-services/modules/iot/index.js +1266 -1579
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1374 -1803
- package/api-services/modules/justauth/index.js +1058 -1353
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1570 -1990
- package/api-services/modules/knowledge/index.js +1266 -1547
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +1372 -1801
- package/api-services/modules/link/index.js +1057 -1352
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1509 -1938
- package/api-services/modules/permission/index.js +1202 -1497
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +1525 -1954
- package/api-services/modules/platformManage/index.js +1192 -1487
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1574 -1991
- package/api-services/modules/portal/index.js +1269 -1546
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1372 -1801
- package/api-services/modules/space-manage/index.js +1057 -1352
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1581 -1998
- package/api-services/modules/super-admin/index.js +1272 -1549
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +1574 -1991
- package/api-services/modules/supplier/index.js +1265 -1542
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1509 -1938
- package/api-services/modules/supplychain-manage/index.js +1202 -1497
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +1570 -1987
- package/api-services/modules/systemConfiguration/index.js +1263 -1540
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1509 -1938
- package/api-services/modules/tool/index.js +1202 -1497
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1421 -1862
- package/api-services/src/create-service/index.js +1127 -1440
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +1722 -2149
- package/common-info/getPermissionMethod/es5.js +1851 -2268
- package/common-info/getPermissionMethod/index.js +1489 -1766
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +1303 -1594
- 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 +78 -4
- package/common-tools/timezone-format/es5.js +418 -393
- package/common-tools/timezone-format/index.d.ts +78 -4
- package/common-tools/timezone-format/index.js +298 -296
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/create-api-service/es5.js +1373 -1802
- package/create-api-service/index.js +1060 -1355
- package/create-api-service/index.js.gz +0 -0
- package/esm-map.json +18 -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
- package/common-tools/timezone-format/get-iana-data/dayjs-timezone-iana-plugin.d.ts +0 -72
- package/common-tools/timezone-format/get-iana-data/es5.d.ts +0 -3
- package/common-tools/timezone-format/get-iana-data/es5.js +0 -353
- package/common-tools/timezone-format/get-iana-data/iana-api-fetch.d.ts +0 -21
- package/common-tools/timezone-format/get-iana-data/index.d.ts +0 -3
- package/common-tools/timezone-format/get-iana-data/index.js +0 -213
- package/common-tools/timezone-format/get-iana-data/index.js.gz +0 -0
- package/common-tools/timezone-format/get-iana-data/moment-iana-loader.d.ts +0 -30
|
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,7 @@
|
|
|
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
262
|
"resolvePrimaryBgColor": "/theme/index",
|
|
265
263
|
"UPF_IANA_TIMEZONE_DATA_KEY": "/common-tools/timezone-format/index",
|
|
@@ -269,5 +267,18 @@
|
|
|
269
267
|
"readInjectedParentIanaTimeZoneDataSnapshot": "/common-tools/timezone-format/index",
|
|
270
268
|
"ensureInjectedIanaTimeZoneData": "/common-tools/timezone-format/index",
|
|
271
269
|
"getBrowserTimeZone": "/common-tools/timezone-format/index",
|
|
272
|
-
"formatLocalDateTimeIntl": "/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"
|
|
273
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.263",
|
|
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.263",
|
|
26
|
+
"@das-fed/upf-web": "6.4.0-dev.263",
|
|
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
|
+
};
|