@das-fed/upf-utils 6.4.0-dev.254 → 6.4.0-dev.256
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 +1440 -1452
- package/api-services/index.js +1132 -1150
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +979 -981
- package/api-services/modules/bems/index.js +773 -777
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +1063 -1075
- package/api-services/modules/contract/index.js +856 -874
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +979 -982
- package/api-services/modules/duty-manage/index.js +771 -775
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/es5.js +1452 -1440
- package/api-services/modules/gateway-edge/es5.js +1048 -1039
- package/api-services/modules/gateway-edge/index.js +846 -832
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1150 -1132
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1077 -1065
- package/api-services/modules/justauth/index.js +875 -857
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +975 -978
- package/api-services/modules/link/index.js +769 -773
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1075 -1063
- package/api-services/modules/permission/index.js +874 -856
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +1043 -1053
- package/api-services/modules/platformManage/index.js +832 -846
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1075 -1063
- package/api-services/modules/space-manage/index.js +874 -856
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1046 -1055
- package/api-services/modules/super-admin/index.js +834 -848
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +972 -970
- package/api-services/modules/supplychain-manage/index.js +773 -769
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +1037 -1049
- package/api-services/modules/systemConfiguration/index.js +829 -847
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/esm-map.json +19 -95
- package/package.json +3 -3
- package/theme/es5.d.ts +22 -2
- package/theme/es5.js +390 -310
- package/theme/index.d.ts +22 -2
- package/theme/index.js +309 -250
- package/theme/index.js.gz +0 -0
- package/theme/presets/color.d.ts +0 -7
- package/theme/presets/default.d.ts +0 -13
- package/theme/presets/es5.js +0 -440
- package/theme/presets/index.js +0 -249
- package/theme/presets/index.js.gz +0 -0
- package/theme/presets/presets/cjb.d.ts +0 -4
- package/theme/presets/presets/default.d.ts +0 -13
- package/theme/presets/presets/dkh.d.ts +0 -4
- package/theme/presets/presets/index.d.ts +0 -8
- package/theme/presets/presets/ssl.d.ts +0 -4
- package/theme/presets/source-variables.d.ts +0 -35
- package/theme/vue/es5.d.ts +0 -8
- package/theme/vue/es5.js +0 -1794
- package/theme/vue.d.ts +0 -8
- package/theme/vue.js +0 -1083
- package/theme/vue.js.gz +0 -0
|
Binary file
|
package/esm-map.json
CHANGED
|
@@ -109,10 +109,10 @@
|
|
|
109
109
|
"getThemeSourceVariableNames": "/theme/index",
|
|
110
110
|
"getThemeSourceVariableRelations": "/theme/index",
|
|
111
111
|
"normalizeThemeSourceVariables": "/theme/index",
|
|
112
|
-
"BUILTIN_PRESET_THEME_NAMES": "/theme/
|
|
113
|
-
"PRESET_THEMES": "/theme/
|
|
114
|
-
"getPresetTheme": "/theme/
|
|
115
|
-
"getAllPresetThemes": "/theme/
|
|
112
|
+
"BUILTIN_PRESET_THEME_NAMES": "/theme/index",
|
|
113
|
+
"PRESET_THEMES": "/theme/index",
|
|
114
|
+
"getPresetTheme": "/theme/index",
|
|
115
|
+
"getAllPresetThemes": "/theme/index",
|
|
116
116
|
"buildPresetThemeCssText": "/theme/index",
|
|
117
117
|
"buildDefaultThemeCssText": "/theme/index",
|
|
118
118
|
"ensureDefaultThemeStyle": "/theme/index",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"getThemeVariable": "/theme/index",
|
|
130
130
|
"getVar": "/theme/index",
|
|
131
131
|
"getVarValue": "/theme/index",
|
|
132
|
-
"useSubAppTheme": "/theme/
|
|
132
|
+
"useSubAppTheme": "/theme/index",
|
|
133
133
|
"getOriginFromUrl": "/common-tools/get-url-params/index",
|
|
134
134
|
"getUrlParams": "/common-tools/get-url-params/index",
|
|
135
135
|
"getFullPath": "/common-tools/get-url-params/index",
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
"DAS_UI_THEME_BRIDGE_ITEMS": "/theme/index",
|
|
258
258
|
"UPF_COMPONENT_THEME_BRIDGE_ITEMS": "/theme/index",
|
|
259
259
|
"getHostThemeSnapshotFromWindowName": "/theme/index",
|
|
260
|
-
"clonePresetTheme": "/theme/
|
|
260
|
+
"clonePresetTheme": "/theme/index",
|
|
261
261
|
"normalizeHexColor": "/theme/index",
|
|
262
262
|
"resolvePrimaryBgColor": "/theme/index",
|
|
263
263
|
"UPF_IANA_TIMEZONE_DATA_KEY": "/common-tools/timezone-format/index",
|
|
@@ -268,93 +268,17 @@
|
|
|
268
268
|
"ensureInjectedIanaTimeZoneData": "/common-tools/timezone-format/index",
|
|
269
269
|
"getBrowserTimeZone": "/common-tools/timezone-format/index",
|
|
270
270
|
"formatLocalDateTimeIntl": "/common-tools/timezone-format/index",
|
|
271
|
-
"assertPackedIanaData": "/common-tools/index",
|
|
272
|
-
"preloadDayjsIanaFromData": "/common-tools/index",
|
|
273
|
-
"getCachedDayjsPackedIanaData": "/common-tools/index",
|
|
274
|
-
"preloadDayjsIanaFromApi": "/common-tools/index",
|
|
275
|
-
"clearDayjsIanaCache": "/common-tools/index",
|
|
276
|
-
"createIanaDbFromPackedData": "/common-tools/index",
|
|
277
|
-
"TIME_ZONE_PACKED_DATA_URL": "/common-tools/index",
|
|
278
|
-
"getAccessTokenFromLocalStorage": "/common-tools/index",
|
|
279
|
-
"getDefaultIanaAuthorization": "/common-tools/index",
|
|
280
|
-
"buildIanaFetchInit": "/common-tools/index",
|
|
281
|
-
"assertPackedIanaTzData": "/common-tools/index",
|
|
282
|
-
"loadIanaData": "/common-tools/index",
|
|
283
|
-
"loadIanaFromApi": "/common-tools/index"
|
|
284
|
-
"I18nResourceMap": "/common-tools/handle-data/index",
|
|
285
|
-
"HandleI18nDataResult": "/common-tools/handle-data/index",
|
|
286
|
-
"HandleI18nDataOptions": "/common-tools/handle-data/index",
|
|
287
|
-
"TimeValue": "/common-tools/timezone-format/index",
|
|
288
|
-
"TimeZoneFlag": "/common-tools/timezone-format/index",
|
|
289
|
-
"TimeZoneDateLibrary": "/common-tools/timezone-format/index",
|
|
290
|
-
"TimeZoneInputMode": "/common-tools/timezone-format/index",
|
|
291
|
-
"MomentTimezoneFormatInstance": "/common-tools/timezone-format/index",
|
|
292
|
-
"TimeZoneOption": "/common-tools/timezone-format/index",
|
|
293
|
-
"TimeZoneDisplayOption": "/common-tools/timezone-format/index",
|
|
294
|
-
"TimeZoneDisplayOptions": "/common-tools/timezone-format/index",
|
|
295
|
-
"TimeZoneDisplayResult": "/common-tools/timezone-format/index",
|
|
296
|
-
"FormatClientLocalDateTimeLineOptions": "/common-tools/timezone-format/index",
|
|
297
|
-
"FormatLocalDateTimeOptions": "/common-tools/timezone-format/index",
|
|
298
|
-
"FormatLocalDateTimeIntlOptions": "/common-tools/timezone-format/index",
|
|
299
|
-
"ApplyIanaTimeZoneOptions": "/common-tools/timezone-format/index",
|
|
300
|
-
"LoadIanaTimeZoneOptions": "/common-tools/timezone-format/index",
|
|
301
|
-
"ApplyIanaTimeZoneResult": "/common-tools/timezone-format/index",
|
|
302
|
-
"IanaTimeZoneDataSource": "/common-tools/timezone-format/index",
|
|
303
|
-
"RuntimeIanaTimeZoneDataSnapshot": "/common-tools/timezone-format/index",
|
|
304
|
-
"LoadMomentIanaTimeZoneOptions": "/common-tools/timezone-format/index",
|
|
305
|
-
"ClientTimeZoneChangeDetail": "/common-tools/timezone-format/index",
|
|
306
|
-
"SetClientTimeZoneOptions": "/common-tools/timezone-format/index",
|
|
307
|
-
"ClientTimeZoneChangeHandler": "/common-tools/timezone-format/index",
|
|
308
|
-
"ClientTimeZoneRef": "/common-tools/timezone-format/index",
|
|
309
|
-
"TimeZoneRule": "/common-tools/index",
|
|
310
|
-
"IanaDb": "/common-tools/index",
|
|
311
|
-
"DayjsTimezoneIanaOption": "/common-tools/index",
|
|
312
|
-
"PackedIanaData": "/common-tools/index",
|
|
313
|
-
"ParsePackedIanaResponse": "/common-tools/index",
|
|
314
|
-
"IanaFetchJson": "/common-tools/index",
|
|
315
|
-
"PreloadDayjsIanaOptions": "/common-tools/index",
|
|
316
|
-
"DayjsTimezoneIanaPlugin": "/common-tools/index",
|
|
317
|
-
"PackedIanaTzData": "/common-tools/index",
|
|
318
|
-
"MomentTimezoneApi": "/common-tools/index",
|
|
319
|
-
"MomentWithTimezone": "/common-tools/index",
|
|
320
|
-
"ParseIanaResponse": "/common-tools/index",
|
|
321
|
-
"IanaMomentFetchJson": "/common-tools/index",
|
|
322
|
-
"LoadIanaFromApiOptions": "/common-tools/index",
|
|
323
|
-
"ActionSuffixReturnType": "/common-info/index",
|
|
324
|
-
"BuildActionSuffixSetOptions": "/common-info/index",
|
|
325
|
-
"SFCWithInstall": "/with-install/index",
|
|
326
|
-
"RuntimeThemeVariableBuildOptions": "/theme/index",
|
|
327
|
-
"ThemeBridgeResolveContext": "/theme/index",
|
|
328
|
-
"ThemeBridgeVariableItem": "/theme/index",
|
|
329
|
-
"ThemeBridgeVariableResolveOptions": "/theme/index",
|
|
330
|
-
"BuiltinPresetThemeName": "/theme/presets/index",
|
|
331
|
-
"PartialThemeVariables": "/theme/index",
|
|
332
|
-
"ThemeMode": "/theme/presets/index",
|
|
333
|
-
"ThemeSourceVariableMeta": "/theme/index",
|
|
334
|
-
"ThemeSourceVariableName": "/theme/index",
|
|
335
|
-
"ThemeVariableCategory": "/theme/index",
|
|
336
|
-
"ThemeVariableCategoryGroupKey": "/theme/index",
|
|
337
|
-
"ThemeVariables": "/theme/presets/index",
|
|
338
|
-
"ThemeConfig": "/theme/index",
|
|
339
|
-
"ThemeChangeEvent": "/theme/index",
|
|
340
|
-
"ThemeBridgeAPI": "/theme/index",
|
|
341
|
-
"DefaultThemeStyleOptions": "/theme/index",
|
|
342
|
-
"ApplyThemeVariablesOptions": "/theme/index",
|
|
343
|
-
"ThemePullOptions": "/theme/index",
|
|
344
|
-
"SubAppThemeSyncOptions": "/theme/index",
|
|
345
|
-
"HostThemeRootSyncOptions": "/theme/index",
|
|
346
|
-
"I18nBridgeLangRef": "/i18n-bridge/index",
|
|
347
|
-
"I18nBridgeT": "/i18n-bridge/index",
|
|
348
|
-
"I18nBridgeState": "/i18n-bridge/index",
|
|
349
|
-
"PermissionId": "/common-info/getPermissionMethod/index",
|
|
350
|
-
"PermissionQueryType": "/common-info/getPermissionMethod/index",
|
|
351
|
-
"PermissionQuery": "/common-info/getPermissionMethod/index",
|
|
352
|
-
"CurrentUserPermissionRequest": "/common-info/getPermissionMethod/index",
|
|
353
|
-
"PermissionCallback": "/common-info/getPermissionMethod/index",
|
|
354
|
-
"RefreshDataType": "/create-api-service/token-refresh-shared/index",
|
|
355
|
-
"TokenLifecycleData": "/create-api-service/token-refresh-shared/index",
|
|
356
|
-
"RefreshPrecheckResult": "/create-api-service/token-refresh-shared/index",
|
|
357
|
-
"AccessTokenAutoRefreshOptions": "/create-api-service/access-token-auto-refresh/index",
|
|
358
|
-
"BuiltinPresetThemeConfig": "/theme/presets/index",
|
|
359
|
-
"UseGetAuthAPI": "/hooks/use-get-auth/index"
|
|
271
|
+
"assertPackedIanaData": "/common-tools/timezone-format/get-iana-data/index",
|
|
272
|
+
"preloadDayjsIanaFromData": "/common-tools/timezone-format/get-iana-data/index",
|
|
273
|
+
"getCachedDayjsPackedIanaData": "/common-tools/timezone-format/get-iana-data/index",
|
|
274
|
+
"preloadDayjsIanaFromApi": "/common-tools/timezone-format/get-iana-data/index",
|
|
275
|
+
"clearDayjsIanaCache": "/common-tools/timezone-format/get-iana-data/index",
|
|
276
|
+
"createIanaDbFromPackedData": "/common-tools/timezone-format/get-iana-data/index",
|
|
277
|
+
"TIME_ZONE_PACKED_DATA_URL": "/common-tools/timezone-format/get-iana-data/index",
|
|
278
|
+
"getAccessTokenFromLocalStorage": "/common-tools/timezone-format/get-iana-data/index",
|
|
279
|
+
"getDefaultIanaAuthorization": "/common-tools/timezone-format/get-iana-data/index",
|
|
280
|
+
"buildIanaFetchInit": "/common-tools/timezone-format/get-iana-data/index",
|
|
281
|
+
"assertPackedIanaTzData": "/common-tools/timezone-format/get-iana-data/index",
|
|
282
|
+
"loadIanaData": "/common-tools/timezone-format/get-iana-data/index",
|
|
283
|
+
"loadIanaFromApi": "/common-tools/timezone-format/get-iana-data/index"
|
|
360
284
|
}
|
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.256",
|
|
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.256",
|
|
26
|
+
"@das-fed/upf-web": "6.4.0-dev.256",
|
|
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,12 +1,26 @@
|
|
|
1
1
|
import { RuntimeThemeVariableBuildOptions } from './bridge';
|
|
2
|
-
import { ThemeVariables } from './source-variables';
|
|
2
|
+
import { BuiltinPresetThemeName, ThemeMode, ThemeVariables } from './source-variables';
|
|
3
3
|
|
|
4
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;
|
|
5
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';
|
|
6
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';
|
|
7
22
|
export type { RuntimeThemeVariableBuildOptions, ThemeBridgeResolveContext, ThemeBridgeVariableItem, ThemeBridgeVariableResolveOptions, } from './bridge';
|
|
8
23
|
export type { BuiltinPresetThemeName, PartialThemeVariables, ThemeMode, ThemeSourceVariableMeta, ThemeSourceVariableName, ThemeVariableCategory, ThemeVariableCategoryGroupKey, ThemeVariables, } from './source-variables';
|
|
9
|
-
type ThemeVariableSource = Record<string, string | undefined>;
|
|
10
24
|
export interface ThemeConfig {
|
|
11
25
|
name?: string;
|
|
12
26
|
basePresetName?: string;
|
|
@@ -86,3 +100,9 @@ export declare const getVar: (key?: string) => string;
|
|
|
86
100
|
export declare const getVarValue: (key?: string, root?: HTMLElement | null) => {
|
|
87
101
|
value: any;
|
|
88
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
|
+
};
|