@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
@@ -1,30 +0,0 @@
1
- /**
2
- * 将接口返回的 packed IANA 数据(与 moment-timezone 数据格式一致)注册到当前 moment 实例上。
3
- * 业务侧须先:`import moment from 'moment'; import 'moment-timezone';`,再传入同一个 `moment`。
4
- */
5
- export interface PackedIanaTzData {
6
- version?: string;
7
- zones: string[];
8
- links?: string[];
9
- }
10
- export type MomentTimezoneApi = {
11
- load: (data: PackedIanaTzData) => void;
12
- };
13
- export interface MomentWithTimezone {
14
- tz: MomentTimezoneApi | (((...args: any[]) => unknown) & MomentTimezoneApi);
15
- }
16
- export declare function assertPackedIanaTzData(json: unknown): PackedIanaTzData;
17
- export declare function loadIanaData(moment: MomentWithTimezone, data: PackedIanaTzData): void;
18
- export type ParseIanaResponse = (json: unknown) => PackedIanaTzData;
19
- export type IanaMomentFetchJson = (url: string, init?: RequestInit) => Promise<unknown>;
20
- export interface LoadIanaFromApiOptions {
21
- /** 设置请求头 `Authorization`(完整值,如 `Bearer <token>`) */
22
- authorization?: string;
23
- /** 额外请求头;与 `authorization` 合并,同名时以 `authorization` 为准 */
24
- headers?: Record<string, string>;
25
- /** 自定义请求,默认使用全局 fetch */
26
- fetchJson?: IanaMomentFetchJson;
27
- /** 当接口外层有包裹时,在此取出 { version, zones, links } */
28
- parseResponse?: ParseIanaResponse;
29
- }
30
- export declare function loadIanaFromApi(moment: MomentWithTimezone, urlOrOptions?: string | LoadIanaFromApiOptions, maybeOptions?: LoadIanaFromApiOptions): Promise<PackedIanaTzData>;
@@ -1,7 +0,0 @@
1
- declare const WHITE_COLOR = "#ffffff";
2
- declare const BLACK_COLOR = "#000000";
3
- export declare const normalizeHexColor: (color: string) => any;
4
- export declare const mixHexColor: (foreground: string, background: string, foregroundWeight: number, fallback: string) => string;
5
- export declare const toRgbaColor: (color: string, alpha: number, fallback: string) => string;
6
- export declare const resolvePrimaryBgColor: (primaryColor: string, backgroundColor?: string) => string;
7
- export { BLACK_COLOR, WHITE_COLOR };
@@ -1,13 +0,0 @@
1
- import { BuiltinPresetThemeName, ThemeMode, ThemeVariables } from '../source-variables';
2
- export type { BuiltinPresetThemeName, ThemeMode, ThemeVariables } from '../source-variables';
3
- export interface BuiltinPresetThemeConfig {
4
- name: BuiltinPresetThemeName;
5
- displayName: string;
6
- description?: string;
7
- mode?: ThemeMode;
8
- source: 'preset';
9
- basePresetName: BuiltinPresetThemeName;
10
- variables: ThemeVariables;
11
- }
12
- export declare const DEFAULT_THEME_VARIABLES: ThemeVariables;
13
- export declare const DEFAULT_PRESET_THEME: BuiltinPresetThemeConfig;
@@ -1,440 +0,0 @@
1
- 'use strict';
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
7
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
- var i = "#ffffff";
10
- var _ = function _(e) {
11
- var a = String(e || "").trim();
12
- return /^#([\da-f]{3}|[\da-f]{6})$/i.test(a) ? a.length === 4 ? "#".concat(a.slice(1).split("").map(function (f) {
13
- return "".concat(f).concat(f);
14
- }).join("")) : a : "";
15
- },
16
- m = function m(e) {
17
- var a = _(e);
18
- if (!a) return null;
19
- var f = a.slice(1);
20
- return {
21
- red: Number.parseInt(f.slice(0, 2), 16),
22
- green: Number.parseInt(f.slice(2, 4), 16),
23
- blue: Number.parseInt(f.slice(4, 6), 16)
24
- };
25
- },
26
- b = function b(e) {
27
- return Math.min(255, Math.max(0, Math.round(e)));
28
- },
29
- T = function T(e, a, f, v) {
30
- var r = m(e),
31
- n = m(a);
32
- if (!r || !n) return v;
33
- var t = Math.min(1, Math.max(0, f)),
34
- h = b(r.red * t + n.red * (1 - t)),
35
- x = b(r.green * t + n.green * (1 - t)),
36
- y = b(r.blue * t + n.blue * (1 - t));
37
- return "#".concat([h, x, y].map(function (E) {
38
- return E.toString(16).padStart(2, "0");
39
- }).join(""));
40
- },
41
- c = function c(e) {
42
- var a = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : i;
43
- return T(e || "#5582F3", a || i, 0.115, "#ebf1fe");
44
- },
45
- s = "#5582f3",
46
- g = "#e63946",
47
- l = [{
48
- name: "--upf-brand-primary",
49
- label: "品牌主色",
50
- hint: "品牌主色,建议用于导航背景、Logo等品牌识别场景",
51
- category: "brand"
52
- }, {
53
- name: "--upf-brand-secondary",
54
- label: "品牌辅色",
55
- hint: "品牌辅色,用于辅助品牌识别和强调元素",
56
- category: "brand"
57
- }, {
58
- name: "--upf-color-primary",
59
- label: "主色",
60
- hint: "功能主色,用于按钮、交互元素、状态反馈",
61
- category: "basic"
62
- }, {
63
- name: "--upf-color-primary-bg",
64
- label: "主色高亮背景",
65
- hint: "主色配套高亮背景,默认跟随主色自动生成透明背景,也可手动覆盖",
66
- category: "basic",
67
- fallback: function fallback(e) {
68
- return c(e["--upf-color-primary"], e["--upf-bg-primary"]);
69
- },
70
- fallbackDeps: ["--upf-color-primary", "--upf-bg-primary"]
71
- }, {
72
- name: "--upf-color-success",
73
- label: "成功色",
74
- hint: "成功状态色,用于成功提示、成功按钮",
75
- category: "basic"
76
- }, {
77
- name: "--upf-color-warning",
78
- label: "警告色",
79
- hint: "警告状态色,用于警告提示、注意信息",
80
- category: "basic"
81
- }, {
82
- name: "--upf-color-error",
83
- label: "错误色",
84
- hint: "错误状态色,用于错误提示、删除操作",
85
- category: "basic"
86
- }, {
87
- name: "--upf-color-info",
88
- label: "信息色",
89
- hint: "信息状态色,用于信息提示、普通消息",
90
- category: "basic"
91
- }, {
92
- name: "--upf-text-primary",
93
- label: "主要文本",
94
- hint: "主要文本,用于标题、重要内容",
95
- category: "text"
96
- }, {
97
- name: "--upf-text-secondary",
98
- label: "次要文本",
99
- hint: "次要文本,用于辅助说明、描述文字",
100
- category: "text"
101
- }, {
102
- name: "--upf-text-disabled",
103
- label: "禁用文本",
104
- hint: "禁用文本,用于禁用状态下的文字",
105
- category: "text"
106
- }, {
107
- name: "--upf-text-placeholder",
108
- label: "占位文本",
109
- hint: "占位文本,用于输入框占位符",
110
- category: "text"
111
- }, {
112
- name: "--upf-bg-primary",
113
- label: "主背景",
114
- hint: "主背景,用于页面整体背景",
115
- category: "background"
116
- }, {
117
- name: "--upf-bg-secondary",
118
- label: "次背景",
119
- hint: "次背景,用于卡片、容器背景",
120
- category: "background"
121
- }, {
122
- name: "--upf-bg-elevated",
123
- label: "浮层背景",
124
- hint: "浮层背景,用于弹窗、下拉浮层",
125
- category: "background"
126
- }, {
127
- name: "--upf-bg-mask",
128
- label: "遮罩背景",
129
- hint: "遮罩背景,用于全屏遮罩层",
130
- category: "background"
131
- }, {
132
- name: "--upf-border-color",
133
- label: "边框色",
134
- hint: "边框色,用于组件边框、分割线",
135
- category: "border"
136
- }, {
137
- name: "--upf-divider-color",
138
- label: "分割线色",
139
- hint: "分割线色,用于内容分割线",
140
- category: "border"
141
- }, {
142
- name: "--upf-nav-bg",
143
- label: "导航背景",
144
- hint: "导航背景色,建议使用品牌主色",
145
- category: "nav"
146
- }, {
147
- name: "--upf-nav-border-color",
148
- label: "导航边框",
149
- hint: "导航边框色,用于顶部导航底部分割线",
150
- category: "nav",
151
- fallback: ["--upf-divider-color", "--upf-border-color"],
152
- fallbackDeps: ["--upf-divider-color", "--upf-border-color"]
153
- }, {
154
- name: "--upf-nav-text",
155
- label: "导航文本",
156
- hint: "导航文本色,用于导航栏文字",
157
- category: "nav"
158
- }, {
159
- name: "--upf-nav-hover-bg",
160
- label: "导航悬停",
161
- hint: "导航悬停背景,用于导航项悬停状态",
162
- category: "nav"
163
- }, {
164
- name: "--upf-nav-active-bg",
165
- label: "导航激活",
166
- hint: "导航激活背景,用于导航项激活状态",
167
- category: "nav"
168
- }, {
169
- name: "--upf-nav-active-text",
170
- label: "导航激活文本",
171
- hint: "导航激活文本,用于导航项激活状态文字",
172
- category: "nav"
173
- }, {
174
- name: "--upf-menu-bg",
175
- label: "菜单背景",
176
- hint: "菜单背景,用于侧边菜单背景",
177
- category: "menu"
178
- }, {
179
- name: "--upf-menu-text",
180
- label: "菜单文本",
181
- hint: "菜单文本,用于菜单项文字",
182
- category: "menu"
183
- }, {
184
- name: "--upf-menu-hover-bg",
185
- label: "菜单悬停",
186
- hint: "菜单悬停背景,用于菜单项悬停状态",
187
- category: "menu"
188
- }, {
189
- name: "--upf-menu-active-bg",
190
- label: "菜单激活",
191
- hint: "菜单激活背景,用于菜单项激活状态",
192
- category: "menu"
193
- }, {
194
- name: "--upf-menu-active-text",
195
- label: "菜单激活文本",
196
- hint: "菜单激活文本,建议使用功能主色",
197
- category: "menu"
198
- }, {
199
- name: "--upf-menu-submenu-bg",
200
- label: "子菜单背景",
201
- hint: "子菜单背景,用于子菜单展开背景",
202
- category: "menu"
203
- }, {
204
- name: "--upf-tab-bg",
205
- label: "标签背景",
206
- hint: "标签背景,用于标签页背景",
207
- category: "tab"
208
- }, {
209
- name: "--upf-tab-text",
210
- label: "标签文本",
211
- hint: "标签文本,用于标签页文字",
212
- category: "tab"
213
- }, {
214
- name: "--upf-tab-hover-bg",
215
- label: "标签悬停",
216
- hint: "标签悬停背景,用于标签页悬停状态",
217
- category: "tab"
218
- }, {
219
- name: "--upf-tab-active-bg",
220
- label: "标签激活",
221
- hint: "标签激活背景,用于标签页激活状态",
222
- category: "tab"
223
- }, {
224
- name: "--upf-tab-active-text",
225
- label: "标签激活文本",
226
- hint: "标签激活文本,建议使用功能主色",
227
- category: "tab"
228
- }, {
229
- name: "--upf-border-radius",
230
- label: "圆角",
231
- hint: "圆角大小,用于组件圆角",
232
- category: "effect"
233
- }, {
234
- name: "--upf-box-shadow",
235
- label: "阴影",
236
- hint: "阴影效果,用于普通阴影",
237
- category: "effect"
238
- }, {
239
- name: "--upf-box-shadow-elevated",
240
- label: "浮层阴影",
241
- hint: "浮层阴影,用于弹窗、浮层阴影",
242
- category: "effect"
243
- }];
244
- l.map(function (e) {
245
- return e.name;
246
- });
247
- l.reduce(function (e, a) {
248
- return e[a.name] = a.label, e;
249
- }, {});
250
- l.reduce(function (e, a) {
251
- return e[a.name] = a.hint, e;
252
- }, {});
253
- var o = {
254
- "--upf-color-primary": s,
255
- "--upf-color-primary-bg": c(s),
256
- "--upf-color-success": "#52c41a",
257
- "--upf-color-warning": "#faad14",
258
- "--upf-color-error": "#ff4d4f",
259
- "--upf-color-info": "#1890ff",
260
- "--upf-text-disabled": "#B2B2B2",
261
- "--upf-bg-primary": "#ffffff",
262
- "--upf-bg-secondary": "#F2F2F2",
263
- "--upf-bg-elevated": "#ffffff",
264
- "--upf-border-color": "#D9D9D9",
265
- "--upf-nav-border-color": "rgba(235, 239, 245, 1)",
266
- "--upf-tab-bg": "#ffffff",
267
- "--upf-tab-text": "#666666",
268
- "--upf-tab-active-bg": "#ffffff",
269
- "--upf-border-radius": "4px"
270
- },
271
- u = {
272
- "default": _objectSpread(_objectSpread({}, o), {}, {
273
- "--upf-brand-primary": "#0e5fd8",
274
- "--upf-brand-secondary": "#3579de",
275
- "--upf-text-primary": "#231815",
276
- "--upf-text-secondary": "#666666",
277
- "--upf-text-placeholder": "#bfbfbf",
278
- "--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
279
- "--upf-divider-color": "#ebeff5",
280
- "--upf-nav-bg": "#0e5fd8",
281
- "--upf-nav-text": "#ffffff",
282
- "--upf-nav-hover-bg": "#3579de",
283
- "--upf-nav-active-bg": "#3579de",
284
- "--upf-nav-active-text": "#ffffff",
285
- "--upf-menu-bg": "#ffffff",
286
- "--upf-menu-text": "#231815",
287
- "--upf-menu-hover-bg": "#f2f2f2",
288
- "--upf-menu-active-bg": "#eef3fe",
289
- "--upf-menu-active-text": "#5582f3",
290
- "--upf-menu-submenu-bg": "#ffffff",
291
- "--upf-tab-hover-bg": "#eef3fe",
292
- "--upf-tab-active-text": "#5582f3",
293
- "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.1)",
294
- "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.15)"
295
- }),
296
- cjb: _objectSpread(_objectSpread({}, o), {}, {
297
- "--upf-brand-primary": "#ffffff",
298
- "--upf-brand-secondary": "#f2f6ff",
299
- "--upf-text-primary": "#212121",
300
- "--upf-text-secondary": "#666666",
301
- "--upf-text-placeholder": "#bfbfbf",
302
- "--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
303
- "--upf-divider-color": "#ebeff5",
304
- "--upf-nav-bg": "#ffffff",
305
- "--upf-nav-text": "#212121",
306
- "--upf-nav-hover-bg": "#f2f6ff",
307
- "--upf-nav-active-bg": "#f2f6ff",
308
- "--upf-nav-active-text": "#5582f3",
309
- "--upf-menu-bg": "#ffffff",
310
- "--upf-menu-text": "#212121",
311
- "--upf-menu-hover-bg": "#f2f2f2",
312
- "--upf-menu-active-bg": "#f2f6ff",
313
- "--upf-menu-active-text": "#5582f3",
314
- "--upf-menu-submenu-bg": "#ffffff",
315
- "--upf-tab-hover-bg": "#f2f6ff",
316
- "--upf-tab-active-text": "#5582f3",
317
- "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
318
- "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
319
- }),
320
- ssl: _objectSpread(_objectSpread({}, o), {}, {
321
- "--upf-brand-primary": "#1f2346",
322
- "--upf-brand-secondary": "#2d3158",
323
- "--upf-text-primary": "#231815",
324
- "--upf-text-secondary": "#666666",
325
- "--upf-text-placeholder": "#b8c0cc",
326
- "--upf-bg-mask": "rgba(15, 23, 42, 0.45)",
327
- "--upf-divider-color": "rgba(235, 239, 245, 1)",
328
- "--upf-nav-bg": "#1f2346",
329
- "--upf-nav-border-color": "rgba(235, 239, 245, 0.1)",
330
- "--upf-nav-text": "#ffffff",
331
- "--upf-nav-hover-bg": "rgba(255, 255, 255, 0.16)",
332
- "--upf-nav-active-bg": "#5582f3",
333
- "--upf-nav-active-text": "#ffffff",
334
- "--upf-menu-bg": "#1f2346",
335
- "--upf-menu-text": "#ffffff",
336
- "--upf-menu-hover-bg": "#2d3158",
337
- "--upf-menu-active-bg": "#2d3158",
338
- "--upf-menu-active-text": "#ffffff",
339
- "--upf-menu-submenu-bg": "#171b36",
340
- "--upf-tab-hover-bg": "#f2f6ff",
341
- "--upf-tab-active-text": "#5582f3",
342
- "--upf-box-shadow": "0 6px 18px rgba(15, 23, 42, 0.08)",
343
- "--upf-box-shadow-elevated": "0 10px 28px rgba(35, 41, 75, 0.12)"
344
- }),
345
- dkh: _objectSpread(_objectSpread({}, o), {}, {
346
- "--upf-brand-primary": "#eb0e1b",
347
- "--upf-brand-secondary": "#f15760",
348
- "--upf-color-primary": g,
349
- "--upf-color-primary-bg": c(g),
350
- "--upf-text-primary": "#231815",
351
- "--upf-text-secondary": "#666666",
352
- "--upf-text-placeholder": "#bfbfbf",
353
- "--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
354
- "--upf-divider-color": "#ebeff5",
355
- "--upf-nav-bg": "#eb0e1b",
356
- "--upf-nav-text": "#ffffff",
357
- "--upf-nav-hover-bg": "rgba(255, 255, 255, 0.3)",
358
- "--upf-nav-active-bg": "rgba(255, 255, 255, 0.3)",
359
- "--upf-nav-active-text": "#ffffff",
360
- "--upf-menu-bg": "#ffffff",
361
- "--upf-menu-text": "#231815",
362
- "--upf-menu-hover-bg": "#f5f5f5",
363
- "--upf-menu-active-bg": "#fce8ea",
364
- "--upf-menu-active-text": "#e63946",
365
- "--upf-menu-submenu-bg": "#ffffff",
366
- "--upf-tab-hover-bg": "#fce8ea",
367
- "--upf-tab-active-text": "#e63946",
368
- "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
369
- "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
370
- })
371
- },
372
- M = u.cjb,
373
- R = {
374
- name: "cjb",
375
- displayName: "纯净白",
376
- description: "白底壳层主题,内容区沿用浅蓝高亮交互色",
377
- mode: "light",
378
- source: "preset",
379
- basePresetName: "cjb",
380
- variables: M
381
- },
382
- A = u["default"],
383
- S = {
384
- name: "default",
385
- displayName: "经典蓝",
386
- description: "经典蓝导航主题,内容区沿用浅底与高亮蓝交互色",
387
- mode: "light",
388
- source: "preset",
389
- basePresetName: "default",
390
- variables: A
391
- },
392
- H = u.dkh,
393
- k = {
394
- name: "dkh",
395
- displayName: "大咖红",
396
- description: "大咖红主题,壳层与内容交互色保持同系红色",
397
- mode: "light",
398
- source: "preset",
399
- basePresetName: "dkh",
400
- variables: H
401
- },
402
- I = u.ssl,
403
- P = {
404
- name: "ssl",
405
- displayName: "深邃蓝",
406
- description: "深邃蓝壳层主题,内容区沿用浅底与高亮蓝交互色",
407
- mode: "dark",
408
- source: "preset",
409
- basePresetName: "ssl",
410
- variables: I
411
- },
412
- L = ["default", "cjb", "ssl", "dkh"],
413
- p = {
414
- "default": S,
415
- cjb: R,
416
- ssl: P,
417
- dkh: k
418
- },
419
- B = function B(e) {
420
- return _objectSpread({}, e);
421
- },
422
- d = function d(e) {
423
- return _objectSpread(_objectSpread({}, e), {}, {
424
- variables: B(e.variables)
425
- });
426
- },
427
- C = function C(e) {
428
- var a = String(e || "").trim();
429
- return p[a] ? d(p[a]) : undefined;
430
- },
431
- N = function N() {
432
- return L.map(function (e) {
433
- return d(p[e]);
434
- });
435
- };
436
- exports.BUILTIN_PRESET_THEME_NAMES = L;
437
- exports.PRESET_THEMES = p;
438
- exports.clonePresetTheme = d;
439
- exports.getAllPresetThemes = N;
440
- exports.getPresetTheme = C;