@das-fed/upf-utils 6.4.0-dev.255 → 6.4.0-dev.257

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.
Files changed (117) hide show
  1. package/api-services/es5.js +1385 -1381
  2. package/api-services/index.js +1071 -1067
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +1219 -1218
  5. package/api-services/modules/app-manage/index.js +973 -973
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +1295 -1304
  8. package/api-services/modules/authentication/index.js +1056 -1070
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +1304 -1312
  11. package/api-services/modules/bems/index.js +1062 -1076
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +1307 -1318
  14. package/api-services/modules/contract/index.js +1069 -1087
  15. package/api-services/modules/contract/index.js.gz +0 -0
  16. package/api-services/modules/duty-manage/es5.js +1320 -1307
  17. package/api-services/modules/duty-manage/index.js +1084 -1066
  18. package/api-services/modules/duty-manage/index.js.gz +0 -0
  19. package/api-services/modules/enterpriseright/es5.js +1311 -1301
  20. package/api-services/modules/enterpriseright/index.js +1076 -1062
  21. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  22. package/api-services/modules/es5.js +1647 -1656
  23. package/api-services/modules/file/es5.js +1236 -1235
  24. package/api-services/modules/file/index.js +981 -981
  25. package/api-services/modules/file/index.js.gz +0 -0
  26. package/api-services/modules/gateway-edge/es5.js +1297 -1305
  27. package/api-services/modules/gateway-edge/index.js +1059 -1073
  28. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  29. package/api-services/modules/index.js +1314 -1328
  30. package/api-services/modules/index.js.gz +0 -0
  31. package/api-services/modules/iot/es5.js +1228 -1227
  32. package/api-services/modules/iot/index.js +979 -979
  33. package/api-services/modules/iot/index.js.gz +0 -0
  34. package/api-services/modules/justauth/es5.js +1309 -1320
  35. package/api-services/modules/justauth/index.js +1070 -1088
  36. package/api-services/modules/justauth/index.js.gz +0 -0
  37. package/api-services/modules/knowledge/es5.js +1319 -1306
  38. package/api-services/modules/knowledge/index.js +1083 -1065
  39. package/api-services/modules/knowledge/index.js.gz +0 -0
  40. package/api-services/modules/link/es5.js +1311 -1301
  41. package/api-services/modules/link/index.js +1076 -1062
  42. package/api-services/modules/link/index.js.gz +0 -0
  43. package/api-services/modules/permission/es5.js +1307 -1318
  44. package/api-services/modules/permission/index.js +1069 -1087
  45. package/api-services/modules/permission/index.js.gz +0 -0
  46. package/api-services/modules/platformManage/es5.js +1230 -1229
  47. package/api-services/modules/platformManage/index.js +980 -980
  48. package/api-services/modules/platformManage/index.js.gz +0 -0
  49. package/api-services/modules/portal/es5.js +1219 -1218
  50. package/api-services/modules/portal/index.js +973 -973
  51. package/api-services/modules/portal/index.js.gz +0 -0
  52. package/api-services/modules/space-manage/es5.js +1311 -1301
  53. package/api-services/modules/space-manage/index.js +1076 -1062
  54. package/api-services/modules/space-manage/index.js.gz +0 -0
  55. package/api-services/modules/super-admin/es5.js +1315 -1326
  56. package/api-services/modules/super-admin/index.js +1069 -1087
  57. package/api-services/modules/super-admin/index.js.gz +0 -0
  58. package/api-services/modules/supplier/es5.js +1223 -1222
  59. package/api-services/modules/supplier/index.js +975 -975
  60. package/api-services/modules/supplier/index.js.gz +0 -0
  61. package/api-services/modules/supplychain-manage/es5.js +1210 -1209
  62. package/api-services/modules/supplychain-manage/index.js +973 -973
  63. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  64. package/api-services/modules/systemConfiguration/es5.js +1311 -1298
  65. package/api-services/modules/systemConfiguration/index.js +1074 -1056
  66. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  67. package/api-services/modules/tool/es5.js +1219 -1218
  68. package/api-services/modules/tool/index.js +973 -973
  69. package/api-services/modules/tool/index.js.gz +0 -0
  70. package/api-services/src/create-service/es5.js +1309 -1296
  71. package/api-services/src/create-service/index.js +1073 -1055
  72. package/api-services/src/create-service/index.js.gz +0 -0
  73. package/common-info/es5.js +1301 -1300
  74. package/common-info/getPermissionMethod/es5.js +1253 -1252
  75. package/common-info/getPermissionMethod/index.js +999 -999
  76. package/common-info/getPermissionMethod/index.js.gz +0 -0
  77. package/common-info/index.js +1051 -1051
  78. package/common-info/index.js.gz +0 -0
  79. package/common-tools/timezone-format/es5.d.ts +76 -4
  80. package/common-tools/timezone-format/es5.js +456 -440
  81. package/common-tools/timezone-format/index.d.ts +76 -4
  82. package/common-tools/timezone-format/index.js +322 -322
  83. package/common-tools/timezone-format/index.js.gz +0 -0
  84. package/create-api-service/es5.js +1296 -1307
  85. package/create-api-service/index.js +1058 -1076
  86. package/create-api-service/index.js.gz +0 -0
  87. package/esm-map.json +19 -19
  88. package/package.json +3 -3
  89. package/theme/es5.d.ts +22 -2
  90. package/theme/es5.js +390 -310
  91. package/theme/index.d.ts +22 -2
  92. package/theme/index.js +309 -250
  93. package/theme/index.js.gz +0 -0
  94. package/common-tools/timezone-format/get-iana-data/dayjs-timezone-iana-plugin.d.ts +0 -72
  95. package/common-tools/timezone-format/get-iana-data/es5.d.ts +0 -3
  96. package/common-tools/timezone-format/get-iana-data/es5.js +0 -353
  97. package/common-tools/timezone-format/get-iana-data/iana-api-fetch.d.ts +0 -21
  98. package/common-tools/timezone-format/get-iana-data/index.d.ts +0 -3
  99. package/common-tools/timezone-format/get-iana-data/index.js +0 -213
  100. package/common-tools/timezone-format/get-iana-data/index.js.gz +0 -0
  101. package/common-tools/timezone-format/get-iana-data/moment-iana-loader.d.ts +0 -30
  102. package/theme/presets/color.d.ts +0 -7
  103. package/theme/presets/default.d.ts +0 -13
  104. package/theme/presets/es5.js +0 -440
  105. package/theme/presets/index.js +0 -249
  106. package/theme/presets/index.js.gz +0 -0
  107. package/theme/presets/presets/cjb.d.ts +0 -4
  108. package/theme/presets/presets/default.d.ts +0 -13
  109. package/theme/presets/presets/dkh.d.ts +0 -4
  110. package/theme/presets/presets/index.d.ts +0 -8
  111. package/theme/presets/presets/ssl.d.ts +0 -4
  112. package/theme/presets/source-variables.d.ts +0 -35
  113. package/theme/vue/es5.d.ts +0 -8
  114. package/theme/vue/es5.js +0 -1794
  115. package/theme/vue.d.ts +0 -8
  116. package/theme/vue.js +0 -1083
  117. 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/presets/index",
113
- "PRESET_THEMES": "/theme/presets/index",
114
- "getPresetTheme": "/theme/presets/index",
115
- "getAllPresetThemes": "/theme/presets/index",
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/vue",
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/presets/index",
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,17 +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/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"
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"
284
284
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/upf-utils",
3
- "version": "6.4.0-dev.255",
3
+ "version": "6.4.0-dev.257",
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.255",
26
- "@das-fed/upf-web": "6.4.0-dev.255",
25
+ "@das-fed/upf-cli": "6.4.0-dev.257",
26
+ "@das-fed/upf-web": "6.4.0-dev.257",
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
+ };