@das-fed/upf-utils 6.4.0-dev.243 → 6.4.0-dev.244

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 (98) hide show
  1. package/api-services/es5.js +1333 -1307
  2. package/api-services/index.js +1066 -1039
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +1116 -1111
  5. package/api-services/modules/app-manage/index.js +917 -922
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +1158 -1156
  8. package/api-services/modules/authentication/index.js +948 -957
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +1162 -1160
  11. package/api-services/modules/bems/index.js +951 -960
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +1091 -1065
  14. package/api-services/modules/contract/index.js +919 -892
  15. package/api-services/modules/contract/index.js.gz +0 -0
  16. package/api-services/modules/duty-manage/es5.js +1133 -1131
  17. package/api-services/modules/duty-manage/index.js +927 -936
  18. package/api-services/modules/duty-manage/index.js.gz +0 -0
  19. package/api-services/modules/enterpriseright/es5.js +1160 -1137
  20. package/api-services/modules/enterpriseright/index.js +969 -946
  21. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  22. package/api-services/modules/es5.js +762 -750
  23. package/api-services/modules/file/es5.js +1349 -1347
  24. package/api-services/modules/file/index.js +1101 -1110
  25. package/api-services/modules/file/index.js.gz +0 -0
  26. package/api-services/modules/gateway-edge/es5.js +690 -676
  27. package/api-services/modules/gateway-edge/index.js +540 -531
  28. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  29. package/api-services/modules/index.js +584 -579
  30. package/api-services/modules/index.js.gz +0 -0
  31. package/api-services/modules/iot/es5.js +752 -738
  32. package/api-services/modules/iot/index.js +604 -595
  33. package/api-services/modules/iot/index.js.gz +0 -0
  34. package/api-services/modules/justauth/es5.js +1160 -1158
  35. package/api-services/modules/justauth/index.js +949 -958
  36. package/api-services/modules/justauth/index.js.gz +0 -0
  37. package/api-services/modules/knowledge/es5.js +737 -723
  38. package/api-services/modules/knowledge/index.js +581 -572
  39. package/api-services/modules/knowledge/index.js.gz +0 -0
  40. package/api-services/modules/link/es5.js +1158 -1156
  41. package/api-services/modules/link/index.js +948 -957
  42. package/api-services/modules/link/index.js.gz +0 -0
  43. package/api-services/modules/permission/es5.js +737 -723
  44. package/api-services/modules/permission/index.js +581 -572
  45. package/api-services/modules/permission/index.js.gz +0 -0
  46. package/api-services/modules/platformManage/es5.js +755 -741
  47. package/api-services/modules/platformManage/index.js +590 -581
  48. package/api-services/modules/platformManage/index.js.gz +0 -0
  49. package/api-services/modules/portal/es5.js +1091 -1065
  50. package/api-services/modules/portal/index.js +919 -892
  51. package/api-services/modules/portal/index.js.gz +0 -0
  52. package/api-services/modules/space-manage/es5.js +737 -723
  53. package/api-services/modules/space-manage/index.js +581 -572
  54. package/api-services/modules/space-manage/index.js.gz +0 -0
  55. package/api-services/modules/super-admin/es5.js +1146 -1123
  56. package/api-services/modules/super-admin/index.js +955 -932
  57. package/api-services/modules/super-admin/index.js.gz +0 -0
  58. package/api-services/modules/supplier/es5.js +755 -741
  59. package/api-services/modules/supplier/index.js +598 -589
  60. package/api-services/modules/supplier/index.js.gz +0 -0
  61. package/api-services/modules/supplychain-manage/es5.js +737 -723
  62. package/api-services/modules/supplychain-manage/index.js +581 -572
  63. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  64. package/api-services/modules/systemConfiguration/es5.js +690 -676
  65. package/api-services/modules/systemConfiguration/index.js +540 -531
  66. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  67. package/api-services/modules/tool/es5.js +579 -568
  68. package/api-services/modules/tool/index.js +475 -470
  69. package/api-services/modules/tool/index.js.gz +0 -0
  70. package/api-services/src/create-service/es5.js +533 -522
  71. package/api-services/src/create-service/index.js +441 -436
  72. package/api-services/src/create-service/index.js.gz +0 -0
  73. package/common-info/es5.js +1270 -1265
  74. package/common-info/getPermissionMethod/es5.js +1371 -1369
  75. package/common-info/getPermissionMethod/index.js +1131 -1140
  76. package/common-info/getPermissionMethod/index.js.gz +0 -0
  77. package/common-info/index.js +1039 -1044
  78. package/common-info/index.js.gz +0 -0
  79. package/common-tools/timezone-format/es5.d.ts +107 -3
  80. package/common-tools/timezone-format/es5.js +751 -101
  81. package/common-tools/timezone-format/get-iana-data/dayjs-timezone-iana-plugin.d.ts +72 -0
  82. package/common-tools/timezone-format/get-iana-data/iana-api-fetch.d.ts +21 -0
  83. package/common-tools/timezone-format/get-iana-data/moment-iana-loader.d.ts +29 -0
  84. package/common-tools/timezone-format/index.d.ts +107 -3
  85. package/common-tools/timezone-format/index.js +392 -62
  86. package/common-tools/timezone-format/index.js.gz +0 -0
  87. package/create-api-service/es5.js +736 -722
  88. package/create-api-service/index.js +581 -572
  89. package/create-api-service/index.js.gz +0 -0
  90. package/esm-map.json +33 -1
  91. package/index.d.ts +1 -0
  92. package/index.js +1 -0
  93. package/package.json +3 -3
  94. package/theme/es5.d.ts +20 -1
  95. package/theme/es5.js +614 -303
  96. package/theme/index.d.ts +20 -1
  97. package/theme/index.js +523 -276
  98. package/theme/index.js.gz +0 -0
Binary file
package/esm-map.json CHANGED
@@ -59,6 +59,28 @@
59
59
  "normalizeLocaleCode": "/common-tools/timezone-format/index",
60
60
  "isDaylightSavingTime": "/common-tools/timezone-format/index",
61
61
  "getTimeZoneDisplayInfo": "/common-tools/timezone-format/index",
62
+ "dayjsTimezoneIanaPlugin": "/common-tools/timezone-format/index",
63
+ "loadDayjsIanaTimeZoneData": "/common-tools/timezone-format/index",
64
+ "applyDayjsIanaTimeZoneData": "/common-tools/timezone-format/index",
65
+ "loadMomentIanaTimeZoneData": "/common-tools/timezone-format/index",
66
+ "applyMomentIanaTimeZoneData": "/common-tools/timezone-format/index",
67
+ "loadMomentIanaData": "/common-tools/timezone-format/index",
68
+ "loadMomentIanaFromApi": "/common-tools/timezone-format/index",
69
+ "setDefaultTimeZone": "/common-tools/timezone-format/index",
70
+ "resolveTimeZone": "/common-tools/timezone-format/index",
71
+ "formatInTimeZone": "/common-tools/timezone-format/index",
72
+ "formatLocalDateTime": "/common-tools/timezone-format/index",
73
+ "toLocalDate": "/common-tools/timezone-format/index",
74
+ "getZoneUtcOffset": "/common-tools/timezone-format/index",
75
+ "formatTimeZoneOffsetLabel": "/common-tools/timezone-format/index",
76
+ "resolveUtcOffsetFallback": "/common-tools/timezone-format/index",
77
+ "buildTimeZoneDisplayOptions": "/common-tools/timezone-format/index",
78
+ "formatClientLocalDateTimeLine": "/common-tools/timezone-format/index",
79
+ "timeZoneHasDST": "/common-tools/timezone-format/index",
80
+ "timeZoneIsDST": "/common-tools/timezone-format/index",
81
+ "isKnownTimeZone": "/common-tools/timezone-format/index",
82
+ "rebuildKnownTimeZoneIds": "/common-tools/timezone-format/index",
83
+ "getKnownTimeZoneIds": "/common-tools/timezone-format/index",
62
84
  "mixHexColor": "/theme/index",
63
85
  "toRgbaColor": "/theme/index",
64
86
  "resolveThemeBridgeVariables": "/theme/index",
@@ -67,6 +89,15 @@
67
89
  "toDasUiColorOverrides": "/theme/index",
68
90
  "toUpfComponentThemeVariables": "/theme/index",
69
91
  "buildRuntimeThemeVariables": "/theme/index",
92
+ "BUILTIN_PRESET_THEME_NAMES": "/theme/index",
93
+ "PRESET_THEMES": "/theme/index",
94
+ "getPresetTheme": "/theme/index",
95
+ "getAllPresetThemes": "/theme/index",
96
+ "getDefaultPresetTheme": "/theme/index",
97
+ "getDefaultThemeVariables": "/theme/index",
98
+ "buildPresetThemeCssText": "/theme/index",
99
+ "buildDefaultThemeCssText": "/theme/index",
100
+ "ensureDefaultThemeStyle": "/theme/index",
70
101
  "applyThemeVariablesToDocument": "/theme/index",
71
102
  "applyThemeEventToDocument": "/theme/index",
72
103
  "getThemeAPI": "/theme/index",
@@ -207,5 +238,6 @@
207
238
  "ELEMENT_THEME_BRIDGE_ITEMS": "/theme/index",
208
239
  "DAS_UI_THEME_BRIDGE_ITEMS": "/theme/index",
209
240
  "UPF_COMPONENT_THEME_BRIDGE_ITEMS": "/theme/index",
210
- "getHostThemeSnapshotFromWindowName": "/theme/index"
241
+ "getHostThemeSnapshotFromWindowName": "/theme/index",
242
+ "clonePresetTheme": "/theme/presets/index"
211
243
  }
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from '@das-fed/upf-utils/directive';
2
2
  export * from '@das-fed/upf-utils/with-install';
3
3
  export * from '@das-fed/upf-utils/theme';
4
+ export * from '@das-fed/upf-utils/common-tools/timezone-format';
package/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "@das-fed/upf-utils/directive";
2
2
  export * from "@das-fed/upf-utils/with-install";
3
3
  export * from "@das-fed/upf-utils/theme";
4
+ export * from "@das-fed/upf-utils/common-tools/timezone-format";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/upf-utils",
3
- "version": "6.4.0-dev.243",
3
+ "version": "6.4.0-dev.244",
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.243",
26
- "@das-fed/upf-web": "6.4.0-dev.243",
25
+ "@das-fed/upf-cli": "6.4.0-dev.244",
26
+ "@das-fed/upf-web": "6.4.0-dev.244",
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,3 +1,5 @@
1
+ import { BUILTIN_PRESET_THEME_NAMES, PRESET_THEMES, BuiltinPresetThemeConfig, BuiltinPresetThemeName } from './presets';
2
+
1
3
  export type ThemeVariables = Record<string, string>;
2
4
  type ThemeVariableSource = Record<string, string | undefined>;
3
5
  export interface ThemeConfig {
@@ -19,6 +21,16 @@ export interface ThemeBridgeAPI<TThemeName extends string = string, TVariables e
19
21
  changeTheme?: (themeName: TThemeName) => void;
20
22
  onThemeChange?: (callback: (event: ThemeChangeEvent<TThemeName, TVariables>) => void) => () => void;
21
23
  }
24
+ export interface DefaultThemeStyleOptions extends ApplyThemeVariablesOptions {
25
+ /** 默认注入的预设主题名称。 */
26
+ presetName?: BuiltinPresetThemeName | string;
27
+ /** 默认主题 style 标签 id;用于手动注入时避免重复插入。 */
28
+ styleId?: string;
29
+ /** 已存在运行时主题变量时是否强制覆盖;默认 false。 */
30
+ force?: boolean;
31
+ /** 是否写入 data-theme/data-skin;默认 true,mframe 自动兜底可关闭避免误标记。 */
32
+ setThemeAttributes?: boolean;
33
+ }
22
34
  export interface ThemeBridgeResolveContext<TVariables extends object = ThemeVariables> {
23
35
  variables: TVariables;
24
36
  result: Record<string, string>;
@@ -73,6 +85,14 @@ export declare const toElementThemeVariables: (variables: object) => any;
73
85
  export declare const toDasUiColorOverrides: (variables: object) => any;
74
86
  export declare const toUpfComponentThemeVariables: (variables: object) => any;
75
87
  export declare const buildRuntimeThemeVariables: (variables: object, options?: RuntimeThemeVariableBuildOptions) => Record<string, string>;
88
+ export { BUILTIN_PRESET_THEME_NAMES, PRESET_THEMES };
89
+ export declare const getPresetTheme: (themeName: string) => any;
90
+ export declare const getAllPresetThemes: () => any;
91
+ export declare const getDefaultPresetTheme: () => BuiltinPresetThemeConfig;
92
+ export declare const getDefaultThemeVariables: () => any;
93
+ export declare const buildPresetThemeCssText: (presetName?: string, options?: RuntimeThemeVariableBuildOptions) => string;
94
+ export declare const buildDefaultThemeCssText: (options?: RuntimeThemeVariableBuildOptions) => string;
95
+ export declare const ensureDefaultThemeStyle: (options?: DefaultThemeStyleOptions) => any;
76
96
  export declare const getHostThemeSnapshotFromWindowName: (debug?: boolean) => ThemeChangeEvent | null;
77
97
  export declare const applyThemeVariablesToDocument: (variables: object, options?: ApplyThemeVariablesOptions) => any;
78
98
  export declare const applyThemeEventToDocument: (event: ThemeChangeEvent, options?: ApplyThemeVariablesOptions) => any;
@@ -89,4 +109,3 @@ export declare const getVar: (key?: string) => string;
89
109
  export declare const getVarValue: (key?: string, root?: HTMLElement | null) => {
90
110
  value: any;
91
111
  };
92
- export {};