@das-fed/upf-utils 6.4.0-dev.255 → 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/modules/app-manage/es5.js +1075 -1063
- package/api-services/modules/app-manage/index.js +874 -856
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +1037 -1047
- package/api-services/modules/authentication/index.js +829 -843
- package/api-services/modules/authentication/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/enterpriseright/es5.js +1048 -1039
- package/api-services/modules/enterpriseright/index.js +846 -832
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1066 -1064
- package/api-services/modules/file/es5.js +980 -978
- package/api-services/modules/file/index.js +763 -759
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/index.js +807 -803
- package/api-services/modules/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/portal/es5.js +1075 -1063
- package/api-services/modules/portal/index.js +874 -856
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1048 -1039
- package/api-services/modules/space-manage/index.js +846 -832
- 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/tool/es5.js +1075 -1063
- package/api-services/modules/tool/index.js +874 -856
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1047 -1035
- package/api-services/src/create-service/index.js +846 -828
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/getPermissionMethod/es5.js +1184 -1181
- package/common-info/getPermissionMethod/index.js +945 -941
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/esm-map.json +6 -6
- 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
package/theme/index.js.gz
CHANGED
|
Binary file
|
package/theme/presets/color.d.ts
DELETED
|
@@ -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;
|
package/theme/presets/es5.js
DELETED
|
@@ -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;
|