@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.
- package/api-services/es5.js +1385 -1381
- package/api-services/index.js +1071 -1067
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +1219 -1218
- package/api-services/modules/app-manage/index.js +973 -973
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +1295 -1304
- package/api-services/modules/authentication/index.js +1056 -1070
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1304 -1312
- package/api-services/modules/bems/index.js +1062 -1076
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +1307 -1318
- package/api-services/modules/contract/index.js +1069 -1087
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1320 -1307
- package/api-services/modules/duty-manage/index.js +1084 -1066
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1311 -1301
- package/api-services/modules/enterpriseright/index.js +1076 -1062
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1647 -1656
- package/api-services/modules/file/es5.js +1236 -1235
- package/api-services/modules/file/index.js +981 -981
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +1297 -1305
- package/api-services/modules/gateway-edge/index.js +1059 -1073
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1314 -1328
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1228 -1227
- package/api-services/modules/iot/index.js +979 -979
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1309 -1320
- package/api-services/modules/justauth/index.js +1070 -1088
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1319 -1306
- package/api-services/modules/knowledge/index.js +1083 -1065
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +1311 -1301
- package/api-services/modules/link/index.js +1076 -1062
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1307 -1318
- package/api-services/modules/permission/index.js +1069 -1087
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +1230 -1229
- package/api-services/modules/platformManage/index.js +980 -980
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1219 -1218
- package/api-services/modules/portal/index.js +973 -973
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1311 -1301
- package/api-services/modules/space-manage/index.js +1076 -1062
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1315 -1326
- package/api-services/modules/super-admin/index.js +1069 -1087
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +1223 -1222
- package/api-services/modules/supplier/index.js +975 -975
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1210 -1209
- package/api-services/modules/supplychain-manage/index.js +973 -973
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +1311 -1298
- package/api-services/modules/systemConfiguration/index.js +1074 -1056
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1219 -1218
- package/api-services/modules/tool/index.js +973 -973
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1309 -1296
- package/api-services/src/create-service/index.js +1073 -1055
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +1301 -1300
- package/common-info/getPermissionMethod/es5.js +1253 -1252
- package/common-info/getPermissionMethod/index.js +999 -999
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +1051 -1051
- package/common-info/index.js.gz +0 -0
- package/common-tools/timezone-format/es5.d.ts +76 -4
- package/common-tools/timezone-format/es5.js +456 -440
- package/common-tools/timezone-format/index.d.ts +76 -4
- package/common-tools/timezone-format/index.js +322 -322
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/create-api-service/es5.js +1296 -1307
- package/create-api-service/index.js +1058 -1076
- package/create-api-service/index.js.gz +0 -0
- package/esm-map.json +19 -19
- 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/common-tools/timezone-format/get-iana-data/dayjs-timezone-iana-plugin.d.ts +0 -72
- package/common-tools/timezone-format/get-iana-data/es5.d.ts +0 -3
- package/common-tools/timezone-format/get-iana-data/es5.js +0 -353
- package/common-tools/timezone-format/get-iana-data/iana-api-fetch.d.ts +0 -21
- package/common-tools/timezone-format/get-iana-data/index.d.ts +0 -3
- package/common-tools/timezone-format/get-iana-data/index.js +0 -213
- package/common-tools/timezone-format/get-iana-data/index.js.gz +0 -0
- package/common-tools/timezone-format/get-iana-data/moment-iana-loader.d.ts +0 -30
- 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/presets/index.js
DELETED
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
const i = "#ffffff";
|
|
2
|
-
const _ = (e) => {
|
|
3
|
-
const a = String(e || "").trim();
|
|
4
|
-
return /^#([\da-f]{3}|[\da-f]{6})$/i.test(a) ? a.length === 4 ? `#${a.slice(1).split("").map((f) => `${f}${f}`).join("")}` : a : "";
|
|
5
|
-
}, m = (e) => {
|
|
6
|
-
const a = _(e);
|
|
7
|
-
if (!a)
|
|
8
|
-
return null;
|
|
9
|
-
const f = a.slice(1);
|
|
10
|
-
return {
|
|
11
|
-
red: Number.parseInt(f.slice(0, 2), 16),
|
|
12
|
-
green: Number.parseInt(f.slice(2, 4), 16),
|
|
13
|
-
blue: Number.parseInt(f.slice(4, 6), 16)
|
|
14
|
-
};
|
|
15
|
-
}, b = (e) => Math.min(255, Math.max(0, Math.round(e))), T = (e, a, f, v) => {
|
|
16
|
-
const r = m(e), n = m(a);
|
|
17
|
-
if (!r || !n)
|
|
18
|
-
return v;
|
|
19
|
-
const t = Math.min(1, Math.max(0, f)), h = b(r.red * t + n.red * (1 - t)), x = b(r.green * t + n.green * (1 - t)), y = b(r.blue * t + n.blue * (1 - t));
|
|
20
|
-
return `#${[h, x, y].map((E) => E.toString(16).padStart(2, "0")).join("")}`;
|
|
21
|
-
}, c = (e, a = i) => T(e || "#5582F3", a || i, 0.115, "#ebf1fe"), s = "#5582f3", g = "#e63946", l = [
|
|
22
|
-
{ name: "--upf-brand-primary", label: "品牌主色", hint: "品牌主色,建议用于导航背景、Logo等品牌识别场景", category: "brand" },
|
|
23
|
-
{ name: "--upf-brand-secondary", label: "品牌辅色", hint: "品牌辅色,用于辅助品牌识别和强调元素", category: "brand" },
|
|
24
|
-
{ name: "--upf-color-primary", label: "主色", hint: "功能主色,用于按钮、交互元素、状态反馈", category: "basic" },
|
|
25
|
-
{
|
|
26
|
-
name: "--upf-color-primary-bg",
|
|
27
|
-
label: "主色高亮背景",
|
|
28
|
-
hint: "主色配套高亮背景,默认跟随主色自动生成透明背景,也可手动覆盖",
|
|
29
|
-
category: "basic",
|
|
30
|
-
fallback: (e) => c(e["--upf-color-primary"], e["--upf-bg-primary"]),
|
|
31
|
-
fallbackDeps: ["--upf-color-primary", "--upf-bg-primary"]
|
|
32
|
-
},
|
|
33
|
-
{ name: "--upf-color-success", label: "成功色", hint: "成功状态色,用于成功提示、成功按钮", category: "basic" },
|
|
34
|
-
{ name: "--upf-color-warning", label: "警告色", hint: "警告状态色,用于警告提示、注意信息", category: "basic" },
|
|
35
|
-
{ name: "--upf-color-error", label: "错误色", hint: "错误状态色,用于错误提示、删除操作", category: "basic" },
|
|
36
|
-
{ name: "--upf-color-info", label: "信息色", hint: "信息状态色,用于信息提示、普通消息", category: "basic" },
|
|
37
|
-
{ name: "--upf-text-primary", label: "主要文本", hint: "主要文本,用于标题、重要内容", category: "text" },
|
|
38
|
-
{ name: "--upf-text-secondary", label: "次要文本", hint: "次要文本,用于辅助说明、描述文字", category: "text" },
|
|
39
|
-
{ name: "--upf-text-disabled", label: "禁用文本", hint: "禁用文本,用于禁用状态下的文字", category: "text" },
|
|
40
|
-
{ name: "--upf-text-placeholder", label: "占位文本", hint: "占位文本,用于输入框占位符", category: "text" },
|
|
41
|
-
{ name: "--upf-bg-primary", label: "主背景", hint: "主背景,用于页面整体背景", category: "background" },
|
|
42
|
-
{ name: "--upf-bg-secondary", label: "次背景", hint: "次背景,用于卡片、容器背景", category: "background" },
|
|
43
|
-
{ name: "--upf-bg-elevated", label: "浮层背景", hint: "浮层背景,用于弹窗、下拉浮层", category: "background" },
|
|
44
|
-
{ name: "--upf-bg-mask", label: "遮罩背景", hint: "遮罩背景,用于全屏遮罩层", category: "background" },
|
|
45
|
-
{ name: "--upf-border-color", label: "边框色", hint: "边框色,用于组件边框、分割线", category: "border" },
|
|
46
|
-
{ name: "--upf-divider-color", label: "分割线色", hint: "分割线色,用于内容分割线", category: "border" },
|
|
47
|
-
{ name: "--upf-nav-bg", label: "导航背景", hint: "导航背景色,建议使用品牌主色", category: "nav" },
|
|
48
|
-
{
|
|
49
|
-
name: "--upf-nav-border-color",
|
|
50
|
-
label: "导航边框",
|
|
51
|
-
hint: "导航边框色,用于顶部导航底部分割线",
|
|
52
|
-
category: "nav",
|
|
53
|
-
fallback: ["--upf-divider-color", "--upf-border-color"],
|
|
54
|
-
fallbackDeps: ["--upf-divider-color", "--upf-border-color"]
|
|
55
|
-
},
|
|
56
|
-
{ name: "--upf-nav-text", label: "导航文本", hint: "导航文本色,用于导航栏文字", category: "nav" },
|
|
57
|
-
{ name: "--upf-nav-hover-bg", label: "导航悬停", hint: "导航悬停背景,用于导航项悬停状态", category: "nav" },
|
|
58
|
-
{ name: "--upf-nav-active-bg", label: "导航激活", hint: "导航激活背景,用于导航项激活状态", category: "nav" },
|
|
59
|
-
{ name: "--upf-nav-active-text", label: "导航激活文本", hint: "导航激活文本,用于导航项激活状态文字", category: "nav" },
|
|
60
|
-
{ name: "--upf-menu-bg", label: "菜单背景", hint: "菜单背景,用于侧边菜单背景", category: "menu" },
|
|
61
|
-
{ name: "--upf-menu-text", label: "菜单文本", hint: "菜单文本,用于菜单项文字", category: "menu" },
|
|
62
|
-
{ name: "--upf-menu-hover-bg", label: "菜单悬停", hint: "菜单悬停背景,用于菜单项悬停状态", category: "menu" },
|
|
63
|
-
{ name: "--upf-menu-active-bg", label: "菜单激活", hint: "菜单激活背景,用于菜单项激活状态", category: "menu" },
|
|
64
|
-
{ name: "--upf-menu-active-text", label: "菜单激活文本", hint: "菜单激活文本,建议使用功能主色", category: "menu" },
|
|
65
|
-
{ name: "--upf-menu-submenu-bg", label: "子菜单背景", hint: "子菜单背景,用于子菜单展开背景", category: "menu" },
|
|
66
|
-
{ name: "--upf-tab-bg", label: "标签背景", hint: "标签背景,用于标签页背景", category: "tab" },
|
|
67
|
-
{ name: "--upf-tab-text", label: "标签文本", hint: "标签文本,用于标签页文字", category: "tab" },
|
|
68
|
-
{ name: "--upf-tab-hover-bg", label: "标签悬停", hint: "标签悬停背景,用于标签页悬停状态", category: "tab" },
|
|
69
|
-
{ name: "--upf-tab-active-bg", label: "标签激活", hint: "标签激活背景,用于标签页激活状态", category: "tab" },
|
|
70
|
-
{ name: "--upf-tab-active-text", label: "标签激活文本", hint: "标签激活文本,建议使用功能主色", category: "tab" },
|
|
71
|
-
{ name: "--upf-border-radius", label: "圆角", hint: "圆角大小,用于组件圆角", category: "effect" },
|
|
72
|
-
{ name: "--upf-box-shadow", label: "阴影", hint: "阴影效果,用于普通阴影", category: "effect" },
|
|
73
|
-
{ name: "--upf-box-shadow-elevated", label: "浮层阴影", hint: "浮层阴影,用于弹窗、浮层阴影", category: "effect" }
|
|
74
|
-
];
|
|
75
|
-
l.map((e) => e.name);
|
|
76
|
-
l.reduce((e, a) => (e[a.name] = a.label, e), {});
|
|
77
|
-
l.reduce((e, a) => (e[a.name] = a.hint, e), {});
|
|
78
|
-
const o = {
|
|
79
|
-
"--upf-color-primary": s,
|
|
80
|
-
"--upf-color-primary-bg": c(s),
|
|
81
|
-
"--upf-color-success": "#52c41a",
|
|
82
|
-
"--upf-color-warning": "#faad14",
|
|
83
|
-
"--upf-color-error": "#ff4d4f",
|
|
84
|
-
"--upf-color-info": "#1890ff",
|
|
85
|
-
"--upf-text-disabled": "#B2B2B2",
|
|
86
|
-
"--upf-bg-primary": "#ffffff",
|
|
87
|
-
"--upf-bg-secondary": "#F2F2F2",
|
|
88
|
-
"--upf-bg-elevated": "#ffffff",
|
|
89
|
-
"--upf-border-color": "#D9D9D9",
|
|
90
|
-
"--upf-nav-border-color": "rgba(235, 239, 245, 1)",
|
|
91
|
-
"--upf-tab-bg": "#ffffff",
|
|
92
|
-
"--upf-tab-text": "#666666",
|
|
93
|
-
"--upf-tab-active-bg": "#ffffff",
|
|
94
|
-
"--upf-border-radius": "4px"
|
|
95
|
-
}, u = {
|
|
96
|
-
default: {
|
|
97
|
-
...o,
|
|
98
|
-
"--upf-brand-primary": "#0e5fd8",
|
|
99
|
-
"--upf-brand-secondary": "#3579de",
|
|
100
|
-
"--upf-text-primary": "#231815",
|
|
101
|
-
"--upf-text-secondary": "#666666",
|
|
102
|
-
"--upf-text-placeholder": "#bfbfbf",
|
|
103
|
-
"--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
|
|
104
|
-
"--upf-divider-color": "#ebeff5",
|
|
105
|
-
"--upf-nav-bg": "#0e5fd8",
|
|
106
|
-
"--upf-nav-text": "#ffffff",
|
|
107
|
-
"--upf-nav-hover-bg": "#3579de",
|
|
108
|
-
"--upf-nav-active-bg": "#3579de",
|
|
109
|
-
"--upf-nav-active-text": "#ffffff",
|
|
110
|
-
"--upf-menu-bg": "#ffffff",
|
|
111
|
-
"--upf-menu-text": "#231815",
|
|
112
|
-
"--upf-menu-hover-bg": "#f2f2f2",
|
|
113
|
-
"--upf-menu-active-bg": "#eef3fe",
|
|
114
|
-
"--upf-menu-active-text": "#5582f3",
|
|
115
|
-
"--upf-menu-submenu-bg": "#ffffff",
|
|
116
|
-
"--upf-tab-hover-bg": "#eef3fe",
|
|
117
|
-
"--upf-tab-active-text": "#5582f3",
|
|
118
|
-
"--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.1)",
|
|
119
|
-
"--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.15)"
|
|
120
|
-
},
|
|
121
|
-
cjb: {
|
|
122
|
-
...o,
|
|
123
|
-
"--upf-brand-primary": "#ffffff",
|
|
124
|
-
"--upf-brand-secondary": "#f2f6ff",
|
|
125
|
-
"--upf-text-primary": "#212121",
|
|
126
|
-
"--upf-text-secondary": "#666666",
|
|
127
|
-
"--upf-text-placeholder": "#bfbfbf",
|
|
128
|
-
"--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
|
|
129
|
-
"--upf-divider-color": "#ebeff5",
|
|
130
|
-
"--upf-nav-bg": "#ffffff",
|
|
131
|
-
"--upf-nav-text": "#212121",
|
|
132
|
-
"--upf-nav-hover-bg": "#f2f6ff",
|
|
133
|
-
"--upf-nav-active-bg": "#f2f6ff",
|
|
134
|
-
"--upf-nav-active-text": "#5582f3",
|
|
135
|
-
"--upf-menu-bg": "#ffffff",
|
|
136
|
-
"--upf-menu-text": "#212121",
|
|
137
|
-
"--upf-menu-hover-bg": "#f2f2f2",
|
|
138
|
-
"--upf-menu-active-bg": "#f2f6ff",
|
|
139
|
-
"--upf-menu-active-text": "#5582f3",
|
|
140
|
-
"--upf-menu-submenu-bg": "#ffffff",
|
|
141
|
-
"--upf-tab-hover-bg": "#f2f6ff",
|
|
142
|
-
"--upf-tab-active-text": "#5582f3",
|
|
143
|
-
"--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
|
|
144
|
-
"--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
|
|
145
|
-
},
|
|
146
|
-
ssl: {
|
|
147
|
-
...o,
|
|
148
|
-
"--upf-brand-primary": "#1f2346",
|
|
149
|
-
"--upf-brand-secondary": "#2d3158",
|
|
150
|
-
"--upf-text-primary": "#231815",
|
|
151
|
-
"--upf-text-secondary": "#666666",
|
|
152
|
-
"--upf-text-placeholder": "#b8c0cc",
|
|
153
|
-
"--upf-bg-mask": "rgba(15, 23, 42, 0.45)",
|
|
154
|
-
"--upf-divider-color": "rgba(235, 239, 245, 1)",
|
|
155
|
-
"--upf-nav-bg": "#1f2346",
|
|
156
|
-
"--upf-nav-border-color": "rgba(235, 239, 245, 0.1)",
|
|
157
|
-
"--upf-nav-text": "#ffffff",
|
|
158
|
-
"--upf-nav-hover-bg": "rgba(255, 255, 255, 0.16)",
|
|
159
|
-
"--upf-nav-active-bg": "#5582f3",
|
|
160
|
-
"--upf-nav-active-text": "#ffffff",
|
|
161
|
-
"--upf-menu-bg": "#1f2346",
|
|
162
|
-
"--upf-menu-text": "#ffffff",
|
|
163
|
-
"--upf-menu-hover-bg": "#2d3158",
|
|
164
|
-
"--upf-menu-active-bg": "#2d3158",
|
|
165
|
-
"--upf-menu-active-text": "#ffffff",
|
|
166
|
-
"--upf-menu-submenu-bg": "#171b36",
|
|
167
|
-
"--upf-tab-hover-bg": "#f2f6ff",
|
|
168
|
-
"--upf-tab-active-text": "#5582f3",
|
|
169
|
-
"--upf-box-shadow": "0 6px 18px rgba(15, 23, 42, 0.08)",
|
|
170
|
-
"--upf-box-shadow-elevated": "0 10px 28px rgba(35, 41, 75, 0.12)"
|
|
171
|
-
},
|
|
172
|
-
dkh: {
|
|
173
|
-
...o,
|
|
174
|
-
"--upf-brand-primary": "#eb0e1b",
|
|
175
|
-
"--upf-brand-secondary": "#f15760",
|
|
176
|
-
"--upf-color-primary": g,
|
|
177
|
-
"--upf-color-primary-bg": c(g),
|
|
178
|
-
"--upf-text-primary": "#231815",
|
|
179
|
-
"--upf-text-secondary": "#666666",
|
|
180
|
-
"--upf-text-placeholder": "#bfbfbf",
|
|
181
|
-
"--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
|
|
182
|
-
"--upf-divider-color": "#ebeff5",
|
|
183
|
-
"--upf-nav-bg": "#eb0e1b",
|
|
184
|
-
"--upf-nav-text": "#ffffff",
|
|
185
|
-
"--upf-nav-hover-bg": "rgba(255, 255, 255, 0.3)",
|
|
186
|
-
"--upf-nav-active-bg": "rgba(255, 255, 255, 0.3)",
|
|
187
|
-
"--upf-nav-active-text": "#ffffff",
|
|
188
|
-
"--upf-menu-bg": "#ffffff",
|
|
189
|
-
"--upf-menu-text": "#231815",
|
|
190
|
-
"--upf-menu-hover-bg": "#f5f5f5",
|
|
191
|
-
"--upf-menu-active-bg": "#fce8ea",
|
|
192
|
-
"--upf-menu-active-text": "#e63946",
|
|
193
|
-
"--upf-menu-submenu-bg": "#ffffff",
|
|
194
|
-
"--upf-tab-hover-bg": "#fce8ea",
|
|
195
|
-
"--upf-tab-active-text": "#e63946",
|
|
196
|
-
"--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
|
|
197
|
-
"--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
|
|
198
|
-
}
|
|
199
|
-
}, M = u.cjb, R = {
|
|
200
|
-
name: "cjb",
|
|
201
|
-
displayName: "纯净白",
|
|
202
|
-
description: "白底壳层主题,内容区沿用浅蓝高亮交互色",
|
|
203
|
-
mode: "light",
|
|
204
|
-
source: "preset",
|
|
205
|
-
basePresetName: "cjb",
|
|
206
|
-
variables: M
|
|
207
|
-
}, A = u.default, S = {
|
|
208
|
-
name: "default",
|
|
209
|
-
displayName: "经典蓝",
|
|
210
|
-
description: "经典蓝导航主题,内容区沿用浅底与高亮蓝交互色",
|
|
211
|
-
mode: "light",
|
|
212
|
-
source: "preset",
|
|
213
|
-
basePresetName: "default",
|
|
214
|
-
variables: A
|
|
215
|
-
}, H = u.dkh, k = {
|
|
216
|
-
name: "dkh",
|
|
217
|
-
displayName: "大咖红",
|
|
218
|
-
description: "大咖红主题,壳层与内容交互色保持同系红色",
|
|
219
|
-
mode: "light",
|
|
220
|
-
source: "preset",
|
|
221
|
-
basePresetName: "dkh",
|
|
222
|
-
variables: H
|
|
223
|
-
}, I = u.ssl, P = {
|
|
224
|
-
name: "ssl",
|
|
225
|
-
displayName: "深邃蓝",
|
|
226
|
-
description: "深邃蓝壳层主题,内容区沿用浅底与高亮蓝交互色",
|
|
227
|
-
mode: "dark",
|
|
228
|
-
source: "preset",
|
|
229
|
-
basePresetName: "ssl",
|
|
230
|
-
variables: I
|
|
231
|
-
}, L = ["default", "cjb", "ssl", "dkh"], p = {
|
|
232
|
-
default: S,
|
|
233
|
-
cjb: R,
|
|
234
|
-
ssl: P,
|
|
235
|
-
dkh: k
|
|
236
|
-
}, B = (e) => ({ ...e }), d = (e) => ({
|
|
237
|
-
...e,
|
|
238
|
-
variables: B(e.variables)
|
|
239
|
-
}), C = (e) => {
|
|
240
|
-
const a = String(e || "").trim();
|
|
241
|
-
return p[a] ? d(p[a]) : void 0;
|
|
242
|
-
}, N = () => L.map((e) => d(p[e]));
|
|
243
|
-
export {
|
|
244
|
-
L as BUILTIN_PRESET_THEME_NAMES,
|
|
245
|
-
p as PRESET_THEMES,
|
|
246
|
-
d as clonePresetTheme,
|
|
247
|
-
N as getAllPresetThemes,
|
|
248
|
-
C as getPresetTheme
|
|
249
|
-
};
|
|
Binary file
|
|
@@ -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,8 +0,0 @@
|
|
|
1
|
-
import { BuiltinPresetThemeConfig, BuiltinPresetThemeName } from './default';
|
|
2
|
-
|
|
3
|
-
export type { BuiltinPresetThemeConfig, BuiltinPresetThemeName, ThemeMode, ThemeVariables } from './default';
|
|
4
|
-
export declare const BUILTIN_PRESET_THEME_NAMES: BuiltinPresetThemeName[];
|
|
5
|
-
export declare const PRESET_THEMES: Record<BuiltinPresetThemeName, BuiltinPresetThemeConfig>;
|
|
6
|
-
export declare const clonePresetTheme: (theme: BuiltinPresetThemeConfig) => BuiltinPresetThemeConfig;
|
|
7
|
-
export declare const getPresetTheme: (themeName: string) => BuiltinPresetThemeConfig;
|
|
8
|
-
export declare const getAllPresetThemes: () => any;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export type BuiltinPresetThemeName = 'default' | 'cjb' | 'ssl' | 'dkh';
|
|
2
|
-
export type ThemeMode = 'light' | 'dark';
|
|
3
|
-
export type ThemeSourceVariableName = '--upf-brand-primary' | '--upf-brand-secondary' | '--upf-color-primary' | '--upf-color-primary-bg' | '--upf-color-success' | '--upf-color-warning' | '--upf-color-error' | '--upf-color-info' | '--upf-text-primary' | '--upf-text-secondary' | '--upf-text-disabled' | '--upf-text-placeholder' | '--upf-bg-primary' | '--upf-bg-secondary' | '--upf-bg-elevated' | '--upf-bg-mask' | '--upf-border-color' | '--upf-divider-color' | '--upf-nav-bg' | '--upf-nav-border-color' | '--upf-nav-text' | '--upf-nav-hover-bg' | '--upf-nav-active-bg' | '--upf-nav-active-text' | '--upf-menu-bg' | '--upf-menu-text' | '--upf-menu-hover-bg' | '--upf-menu-active-bg' | '--upf-menu-active-text' | '--upf-menu-submenu-bg' | '--upf-tab-bg' | '--upf-tab-text' | '--upf-tab-hover-bg' | '--upf-tab-active-bg' | '--upf-tab-active-text' | '--upf-border-radius' | '--upf-box-shadow' | '--upf-box-shadow-elevated';
|
|
4
|
-
export type ThemeVariables = Record<ThemeSourceVariableName, string>;
|
|
5
|
-
export type PartialThemeVariables = Partial<Record<ThemeSourceVariableName, string>>;
|
|
6
|
-
export type ThemeVariableCategoryGroupKey = 'foundation' | 'shell';
|
|
7
|
-
export interface ThemeVariableCategory {
|
|
8
|
-
group: ThemeVariableCategoryGroupKey;
|
|
9
|
-
name: string;
|
|
10
|
-
displayName: string;
|
|
11
|
-
shortDisplayName?: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
variables: ThemeSourceVariableName[];
|
|
14
|
-
}
|
|
15
|
-
export interface ThemeSourceVariableMeta {
|
|
16
|
-
name: ThemeSourceVariableName;
|
|
17
|
-
label: string;
|
|
18
|
-
hint: string;
|
|
19
|
-
category: ThemeVariableCategory['name'];
|
|
20
|
-
fallback?: ThemeSourceVariableName | readonly ThemeSourceVariableName[] | ((variables: Record<string, string>) => string);
|
|
21
|
-
fallbackDeps?: readonly ThemeSourceVariableName[];
|
|
22
|
-
}
|
|
23
|
-
export declare const THEME_SOURCE_VARIABLE_CATEGORIES: ThemeVariableCategory[];
|
|
24
|
-
export declare const THEME_SOURCE_VARIABLE_META: readonly ThemeSourceVariableMeta[];
|
|
25
|
-
export declare const THEME_SOURCE_VARIABLE_NAMES: ThemeSourceVariableName[];
|
|
26
|
-
export declare const THEME_SOURCE_VARIABLE_LABELS: Record<ThemeSourceVariableName, string>;
|
|
27
|
-
export declare const THEME_SOURCE_VARIABLE_HINTS: Record<ThemeSourceVariableName, string>;
|
|
28
|
-
export declare const THEME_SOURCE_VARIABLE_RELATIONS: Partial<Record<ThemeSourceVariableName, ThemeSourceVariableName>>;
|
|
29
|
-
export declare const PRESET_THEME_VARIABLES: Record<BuiltinPresetThemeName, ThemeVariables>;
|
|
30
|
-
export declare const getThemeSourceVariableNames: () => ThemeSourceVariableName[];
|
|
31
|
-
export declare const getThemeSourceVariableLabels: () => Record<ThemeSourceVariableName, string>;
|
|
32
|
-
export declare const getThemeSourceVariableHints: () => Record<ThemeSourceVariableName, string>;
|
|
33
|
-
export declare const getThemeSourceVariableCategories: () => ThemeVariableCategory[];
|
|
34
|
-
export declare const getThemeSourceVariableRelations: () => Partial<Record<ThemeSourceVariableName, ThemeSourceVariableName>>;
|
|
35
|
-
export declare const normalizeThemeSourceVariables: (partialVariables: Record<string, string | number | undefined> | undefined, fallbackVariables?: Record<string, string | number | undefined>) => ThemeVariables;
|
package/theme/vue/es5.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SubAppThemeSyncOptions, ThemeChangeEvent } from './index';
|
|
2
|
-
|
|
3
|
-
export declare const useSubAppTheme: (options?: SubAppThemeSyncOptions) => {
|
|
4
|
-
currentTheme: any;
|
|
5
|
-
getVariable: (varName: string) => any;
|
|
6
|
-
syncTheme: () => ThemeChangeEvent<string, Record<import('./source-variables').ThemeSourceVariableName, string>>;
|
|
7
|
-
changeTheme: (themeName: string) => boolean;
|
|
8
|
-
};
|