@das-fed/upf-utils 6.4.0-dev.238 → 6.4.0-dev.239
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.d.ts +2 -0
- package/api-services/es5.js +823 -820
- package/api-services/i18n/es5.d.ts +63 -0
- package/api-services/index.js +642 -644
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.d.ts +2 -0
- package/api-services/modules/app-manage/es5.js +25 -19
- package/api-services/modules/app-manage/index.js +17 -15
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.d.ts +2 -0
- package/api-services/modules/authentication/es5.js +1100 -1082
- package/api-services/modules/authentication/index.js +911 -891
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.d.ts +6 -0
- package/api-services/modules/bems/es5.js +96 -90
- package/api-services/modules/bems/index.js +75 -73
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.d.ts +2 -0
- package/api-services/modules/contract/es5.js +1343 -1325
- package/api-services/modules/contract/index.js +1140 -1120
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.d.ts +7 -0
- package/api-services/modules/duty-manage/es5.js +1338 -1344
- package/api-services/modules/duty-manage/index.js +1122 -1138
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.d.ts +2 -0
- package/api-services/modules/enterpriseright/es5.js +1086 -1071
- package/api-services/modules/enterpriseright/index.js +892 -876
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.d.ts +21 -0
- package/api-services/modules/es5.js +1351 -1357
- package/api-services/modules/file/es5.d.ts +37 -0
- package/api-services/modules/file/es5.js +131 -125
- package/api-services/modules/file/index.js +108 -106
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.d.ts +2 -0
- package/api-services/modules/gateway-edge/es5.js +1343 -1325
- package/api-services/modules/gateway-edge/index.js +1140 -1120
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1060 -1076
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.d.ts +16 -0
- package/api-services/modules/iot/es5.js +33 -27
- package/api-services/modules/iot/index.js +23 -21
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.d.ts +3 -0
- package/api-services/modules/justauth/es5.js +25 -19
- package/api-services/modules/justauth/index.js +17 -15
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.d.ts +2 -0
- package/api-services/modules/knowledge/es5.js +1337 -1321
- package/api-services/modules/knowledge/index.js +1124 -1108
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.d.ts +2 -0
- package/api-services/modules/link/es5.js +1343 -1325
- package/api-services/modules/link/index.js +1140 -1120
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.d.ts +2 -0
- package/api-services/modules/permission/es5.js +1100 -1106
- package/api-services/modules/permission/index.js +897 -913
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.d.ts +14 -0
- package/api-services/modules/platformManage/es5.js +104 -98
- package/api-services/modules/platformManage/index.js +83 -81
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.d.ts +2 -0
- package/api-services/modules/portal/es5.js +1343 -1349
- package/api-services/modules/portal/index.js +1126 -1142
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.d.ts +2 -0
- package/api-services/modules/space-manage/es5.js +1343 -1349
- package/api-services/modules/space-manage/index.js +1126 -1142
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.d.ts +8 -0
- package/api-services/modules/super-admin/es5.js +1081 -1084
- package/api-services/modules/super-admin/index.js +880 -892
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.d.ts +6 -0
- package/api-services/modules/supplier/es5.js +1081 -1084
- package/api-services/modules/supplier/index.js +880 -892
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.d.ts +2 -0
- package/api-services/modules/supplychain-manage/es5.js +1343 -1325
- package/api-services/modules/supplychain-manage/index.js +1140 -1120
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.d.ts +2 -0
- package/api-services/modules/systemConfiguration/es5.js +1100 -1106
- package/api-services/modules/systemConfiguration/index.js +897 -913
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.d.ts +2 -0
- package/api-services/modules/tool/es5.js +845 -836
- package/api-services/modules/tool/index.js +660 -654
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.d.ts +1 -0
- package/api-services/src/create-service/es5.js +1326 -1332
- package/api-services/src/create-service/index.js +1110 -1126
- package/api-services/src/create-service/index.js.gz +0 -0
- package/atob/es5.d.ts +2 -0
- package/common-info/es5.d.ts +48 -0
- package/common-info/es5.js +1269 -1331
- package/common-info/getIframeUrl/es5.d.ts +9 -0
- package/common-info/getInfoFromUrl/es5.d.ts +8 -0
- package/common-info/getPermissionMethod/es5.d.ts +77 -0
- package/common-info/getPermissionMethod/es5.js +1371 -1355
- package/common-info/getPermissionMethod/index.d.ts +27 -9
- package/common-info/getPermissionMethod/index.js +1141 -1125
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +1 -29
- package/common-info/index.js +1046 -1096
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.d.ts +5 -0
- package/common-info/type.d.ts +2 -2
- package/common-tools/arr-tools/es5.d.ts +15 -0
- package/common-tools/calc-text-width/es5.d.ts +1 -0
- package/common-tools/date-format/es5.d.ts +7 -0
- package/common-tools/es5.d.ts +15 -0
- package/common-tools/es5.js +9 -0
- package/common-tools/extract-file-name/es5.d.ts +1 -0
- package/common-tools/get-file-extension/es5.d.ts +6 -0
- package/common-tools/get-url-params/es5.d.ts +46 -0
- package/common-tools/handle-data/es5.d.ts +34 -0
- package/common-tools/handle-data/es5.js +44 -6
- package/common-tools/handle-data/index.d.ts +16 -1
- package/common-tools/handle-data/index.js +1 -1
- package/common-tools/handle-data/index.js.gz +0 -0
- package/common-tools/index.d.ts +1 -0
- package/common-tools/index.js +1 -0
- package/common-tools/nest-tree-format/es5.d.ts +30 -0
- package/common-tools/obj-tools/es5.d.ts +7 -0
- package/common-tools/platform-tools/es5.d.ts +19 -0
- package/common-tools/queue-promise/es5.d.ts +6 -0
- package/common-tools/setHtmlMinWH/es5.d.ts +5 -0
- package/common-tools/timezone-format/es5.d.ts +28 -0
- package/common-tools/timezone-format/es5.js +140 -0
- package/common-tools/timezone-format/index.d.ts +28 -0
- package/common-tools/timezone-format/index.js +81 -0
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/common-tools/update-browser-title/es5.d.ts +1 -0
- package/common-tools/update-fav-icon/es5.d.ts +11 -0
- package/config/es5.d.ts +2 -0
- package/create-api-service/access-token-auto-refresh/es5.d.ts +20 -0
- package/create-api-service/access-token-auto-refresh/es5.js +27 -26
- package/create-api-service/access-token-auto-refresh/index.js +27 -26
- package/create-api-service/access-token-auto-refresh/index.js.gz +0 -0
- package/create-api-service/check-token/es5.d.ts +12 -0
- package/create-api-service/es5.d.ts +8 -0
- package/create-api-service/es5.js +24 -18
- package/create-api-service/i18n/es5.d.ts +39 -0
- package/create-api-service/index.js +17 -15
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/proxy-sso/es5.d.ts +3 -0
- package/create-api-service/sso/es5.d.ts +21 -0
- package/create-api-service/token-refresh-shared/es5.d.ts +30 -0
- package/curring-http/es5.d.ts +12 -0
- package/dimple-canvas/es5.d.ts +3 -0
- package/directive/auth/es5.d.ts +8 -0
- package/directive/clickOutside/es5.d.ts +6 -0
- package/directive/es5.d.ts +3 -0
- package/directive/hoverInside/es5.d.ts +6 -0
- package/directive/utils/es5.d.ts +7 -0
- package/dom-check-in/es5.d.ts +6 -0
- package/dom-watcher/es5.d.ts +25 -0
- package/esm-map.json +32 -7
- package/hooks/popup-manager/use-zindex/es5.d.ts +3 -0
- package/i18n-bridge/es5.d.ts +10 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/load-js/es5.d.ts +3 -0
- package/nextTiken/es5.d.ts +12 -0
- package/oss/es5.d.ts +2 -0
- package/package.json +4 -3
- package/pinyin-first-character/es5.d.ts +2 -0
- package/process-engine-info/es5.d.ts +13 -0
- package/pure-image-src/es5.d.ts +2 -0
- package/size-watcher/es5.d.ts +6 -0
- package/style/es5.d.ts +2 -0
- package/theme/es5.d.ts +92 -0
- package/theme/es5.js +1365 -0
- package/theme/index.d.ts +92 -0
- package/theme/index.js +871 -0
- package/theme/index.js.gz +0 -0
- package/token-tools/es5.d.ts +21 -0
- package/use-low-code/es5.d.ts +1 -0
- package/vue/es5.d.ts +1 -0
- package/vue/hooks/use-model-value/es5.d.ts +9 -0
- package/webSocket-service/es5.d.ts +41 -0
- package/with-install/es5.d.ts +11 -0
- package/hooks/use-get-auth/es5.js +0 -67
- package/hooks/use-get-auth/index.d.ts +0 -4
- package/hooks/use-get-auth/index.js +0 -19
package/theme/index.js
ADDED
|
@@ -0,0 +1,871 @@
|
|
|
1
|
+
import { bus as L } from "@das-fed/mframe";
|
|
2
|
+
const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars", _ = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakSet(), y = /* @__PURE__ */ new WeakMap(), b = (e) => e ? Object.entries(h(e)).reduce((r, [o, a]) => (r[o] = String(a ?? ""), r), {}) : null, h = (e) => e, t = (e, r) => {
|
|
3
|
+
const o = h(e);
|
|
4
|
+
return String((r ? o[r] : "") ?? "");
|
|
5
|
+
}, i = (e, r) => r.map((o) => ({ target: o, from: e })), M = (e) => {
|
|
6
|
+
const r = String(e || "").trim();
|
|
7
|
+
return /^#([\da-f]{3}|[\da-f]{6})$/i.test(r) ? r.length === 4 ? `#${r.slice(1).split("").map((o) => `${o}${o}`).join("")}` : r : "";
|
|
8
|
+
}, T = (e) => {
|
|
9
|
+
const r = M(e);
|
|
10
|
+
if (!r)
|
|
11
|
+
return null;
|
|
12
|
+
const o = r.slice(1);
|
|
13
|
+
return {
|
|
14
|
+
red: Number.parseInt(o.slice(0, 2), 16),
|
|
15
|
+
green: Number.parseInt(o.slice(2, 4), 16),
|
|
16
|
+
blue: Number.parseInt(o.slice(4, 6), 16)
|
|
17
|
+
};
|
|
18
|
+
}, F = (e) => Math.min(255, Math.max(0, Math.round(e))), $ = (e, r, o, a) => {
|
|
19
|
+
const u = T(e), l = T(r);
|
|
20
|
+
if (!u || !l)
|
|
21
|
+
return a;
|
|
22
|
+
const n = Math.min(1, Math.max(0, o)), c = F(u.red * n + l.red * (1 - n)), s = F(u.green * n + l.green * (1 - n)), p = F(u.blue * n + l.blue * (1 - n));
|
|
23
|
+
return `#${[c, s, p].map((m) => m.toString(16).padStart(2, "0")).join("")}`;
|
|
24
|
+
}, P = (e, r, o) => {
|
|
25
|
+
const a = T(e);
|
|
26
|
+
if (!a)
|
|
27
|
+
return o;
|
|
28
|
+
const u = Math.min(1, Math.max(0, r));
|
|
29
|
+
return `rgba(${a.red}, ${a.green}, ${a.blue}, ${u})`;
|
|
30
|
+
}, j = {
|
|
31
|
+
"#5582f3": "#3761CA",
|
|
32
|
+
"#e63946": "#C9303C"
|
|
33
|
+
}, A = (e, r) => {
|
|
34
|
+
const o = e || "#5582F3";
|
|
35
|
+
return j[M(o).toLowerCase()] || r(o, g, 0.84, "#3761CA");
|
|
36
|
+
}, x = (e, r) => r.reduce((o, a) => {
|
|
37
|
+
const u = a.resolve ? a.resolve({ variables: e, result: o, mixHexColor: $, toRgbaColor: P }) : a.from ? t(e, String(a.from)) : String(a.value ?? "");
|
|
38
|
+
return o[a.target] = String(u ?? ""), o;
|
|
39
|
+
}, {}), W = [
|
|
40
|
+
{ target: "--upf-primary", from: "--upf-color-primary" },
|
|
41
|
+
{ target: "--upf-text", from: "--upf-text-primary" },
|
|
42
|
+
{ target: "--upf-surface", from: "--upf-bg-primary" },
|
|
43
|
+
{ target: "--upf-divider", from: "--upf-divider-color" },
|
|
44
|
+
{ target: "--upf-nav-item-hover-bg", from: "--upf-nav-hover-bg" },
|
|
45
|
+
{ target: "--upf-nav-item-active-bg", from: "--upf-nav-active-bg" },
|
|
46
|
+
{ target: "--upf-menu-item-hover-bg", from: "--upf-menu-hover-bg" },
|
|
47
|
+
{ target: "--upf-menu-item-active-bg", from: "--upf-menu-active-bg" },
|
|
48
|
+
{ target: "--upf-menu-item-active-text", from: "--upf-menu-active-text" }
|
|
49
|
+
], G = [
|
|
50
|
+
{ target: "--el-color-primary", from: "--upf-color-primary" },
|
|
51
|
+
{ target: "--el-color-success", from: "--upf-color-success" },
|
|
52
|
+
{ target: "--el-color-warning", from: "--upf-color-warning" },
|
|
53
|
+
{ target: "--el-color-danger", from: "--upf-color-error" },
|
|
54
|
+
{ target: "--el-color-error", from: "--upf-color-error" },
|
|
55
|
+
{ target: "--el-color-info", from: "--upf-color-info" },
|
|
56
|
+
{ target: "--el-text-color-primary", from: "--upf-text-primary" },
|
|
57
|
+
{ target: "--el-text-color-regular", from: "--upf-text-primary" },
|
|
58
|
+
{ target: "--el-text-color-secondary", from: "--upf-text-secondary" },
|
|
59
|
+
{ target: "--el-text-color-placeholder", from: "--upf-text-placeholder" },
|
|
60
|
+
{ target: "--el-text-color-disabled", from: "--upf-text-disabled" },
|
|
61
|
+
{ target: "--el-border-color", from: "--upf-border-color" },
|
|
62
|
+
{ target: "--el-border-color-light", from: "--upf-divider-color" },
|
|
63
|
+
{ target: "--el-border-color-lighter", from: "--upf-divider-color" },
|
|
64
|
+
{ target: "--el-fill-color-blank", from: "--upf-bg-primary" },
|
|
65
|
+
{ target: "--el-bg-color", from: "--upf-bg-primary" },
|
|
66
|
+
{ target: "--el-bg-color-page", from: "--upf-bg-secondary" },
|
|
67
|
+
{ target: "--el-bg-color-overlay", from: "--upf-bg-elevated" },
|
|
68
|
+
{ target: "--el-dialog-bg-color", from: "--upf-bg-elevated" },
|
|
69
|
+
{ target: "--el-mask-color", from: "--upf-bg-mask" },
|
|
70
|
+
{ target: "--el-tree-text-color", from: "--upf-text-secondary" },
|
|
71
|
+
{ target: "--el-checkbox-disabled-checked-icon-color", from: "--upf-text-disabled" },
|
|
72
|
+
{ target: "--el-dialog-content-font-size", value: "14px" },
|
|
73
|
+
{ target: "--el-transition-duration-fast", value: "0.2s" },
|
|
74
|
+
{ target: "--el-checkbox-font-weight", value: "400" },
|
|
75
|
+
{ target: "--el-checkbox-input-width", value: "14px" },
|
|
76
|
+
{ target: "--el-checkbox-input-height", value: "14px" },
|
|
77
|
+
{ target: "--el-checkbox-checked-icon-color", value: f },
|
|
78
|
+
{
|
|
79
|
+
target: "--el-checkbox-input-border",
|
|
80
|
+
resolve: ({ variables: e }) => `1px solid ${t(e, "--upf-border-color")}`
|
|
81
|
+
}
|
|
82
|
+
], q = [
|
|
83
|
+
{ target: "--das-ui-color-primary-level1", from: "--upf-color-primary-bg" },
|
|
84
|
+
...i("--upf-color-primary-bg", [
|
|
85
|
+
"--das-ui-color-primary-level1",
|
|
86
|
+
"--das-ui-upload-bgcolor-hover"
|
|
87
|
+
]),
|
|
88
|
+
...i("--upf-bg-primary", [
|
|
89
|
+
"--das-black-list-mange-color-white"
|
|
90
|
+
]),
|
|
91
|
+
{ target: "--das-ui-color-primary", from: "--upf-color-primary" },
|
|
92
|
+
{ target: "--das-ui-color-danger", from: "--upf-color-error" },
|
|
93
|
+
{ target: "--das-ui-color-warning", from: "--upf-color-warning" },
|
|
94
|
+
{ target: "--das-ui-color-success", from: "--upf-color-success" },
|
|
95
|
+
{ target: "--das-ui-color-link", from: "--upf-color-primary" },
|
|
96
|
+
{ target: "--das-ui-color-normal", from: "--upf-text-primary" },
|
|
97
|
+
{ target: "--das-ui-color-secondary", from: "--upf-text-secondary" },
|
|
98
|
+
{ target: "--das-ui-color-help", from: "--upf-text-disabled" },
|
|
99
|
+
{ target: "--das-ui-color-disabled", from: "--upf-text-disabled" },
|
|
100
|
+
{ target: "--das-ui-color-overlay-error", from: "--upf-color-error" },
|
|
101
|
+
{ target: "--das-ui-button-primary", from: "--upf-color-primary" },
|
|
102
|
+
{ target: "--das-ui-input-full-border-color", from: "--upf-border-color" },
|
|
103
|
+
{ target: "--das-ui-tag-list-border-active-color", from: "--upf-color-primary" },
|
|
104
|
+
{ target: "--das-ui-tag-dark-temporary-color", from: "--upf-text-secondary" },
|
|
105
|
+
// 共享桥接先兜底旧加载态、下拉态和范围选择器变量,保证首批迁移组件样式稳定。
|
|
106
|
+
{ target: "--das-ui-split-panel-color-primary", from: "--upf-color-primary" },
|
|
107
|
+
{ target: "--das-ui-split-panel-color-line", from: "--upf-divider-color" },
|
|
108
|
+
{ target: "--das-ui-split-panel-color-btn", from: "--upf-text-secondary" },
|
|
109
|
+
{ target: "--das-ui-tree-table-highlight-color", from: "--upf-color-primary" },
|
|
110
|
+
{ target: "--das-ui-tree-table-header-color", from: "--upf-text-primary" },
|
|
111
|
+
{ target: "--das-ui-tree-table-header-bg-color", from: "--upf-bg-secondary" },
|
|
112
|
+
{ target: "--das-ui-tree-table-border-color", from: "--upf-border-color" },
|
|
113
|
+
{ target: "--das-ui-rich-editor-active-font-color", from: "--upf-color-primary" },
|
|
114
|
+
{
|
|
115
|
+
target: "--das-ui-dropdown-bgff-color",
|
|
116
|
+
resolve: ({ variables: e }) => t(e, "--upf-bg-elevated") || t(e, "--upf-bg-primary")
|
|
117
|
+
},
|
|
118
|
+
{ target: "--das-ui-dropdown-divided-color", from: "--upf-border-color" },
|
|
119
|
+
{ target: "--das-ui-dropdown-active-color", from: "--upf-color-primary" },
|
|
120
|
+
{ target: "--das-ui-dropdown-hover-color", from: "--upf-bg-secondary" },
|
|
121
|
+
{ target: "--das-ui-spin-logo-1-color", from: "--upf-loading-color-1" },
|
|
122
|
+
{ target: "--das-ui-spin-logo-2-color", from: "--upf-loading-color-2" },
|
|
123
|
+
{ target: "--das-ui-spin-logo-3-color", from: "--upf-loading-color-3" },
|
|
124
|
+
{ target: "--das-ui-spin-logo-4-color", from: "--upf-loading-color-4" },
|
|
125
|
+
{ target: "--das-ui-spin-logo-5-color", from: "--upf-loading-color-5" },
|
|
126
|
+
{ target: "--das-ui-spin-logo-6-color", from: "--upf-loading-color-6" },
|
|
127
|
+
{ target: "--das-ui-special-range-picker-close-btn", from: "--upf-text-disabled" },
|
|
128
|
+
{ target: "--das-ui-special-range-picker-close-btn-hover", from: "--upf-text-secondary" },
|
|
129
|
+
{ target: "--das-ui-special-range-picker-color-primary", from: "--upf-color-primary" },
|
|
130
|
+
{ target: "--das-ui-special-range-picker-color-white", from: "--upf-bg-primary" },
|
|
131
|
+
{ target: "--das-ui-special-range-picker-hover-color", from: "--upf-bg-secondary" },
|
|
132
|
+
{ target: "--das-ui-special-range-picker-border-color", from: "--upf-border-color" },
|
|
133
|
+
{ target: "--das-ui-special-range-picker-header-bgcolor", from: "--upf-bg-secondary" },
|
|
134
|
+
{
|
|
135
|
+
target: "--das-ui-special-range-picker-in-range",
|
|
136
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
137
|
+
t(e, "--upf-color-primary"),
|
|
138
|
+
t(e, "--upf-bg-primary"),
|
|
139
|
+
0.08,
|
|
140
|
+
"#F2F6FF"
|
|
141
|
+
)
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
target: "--das-ui-special-range-picker-new-range",
|
|
145
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
146
|
+
t(e, "--upf-color-primary"),
|
|
147
|
+
t(e, "--upf-bg-primary"),
|
|
148
|
+
0.14,
|
|
149
|
+
"#E3EBFF"
|
|
150
|
+
)
|
|
151
|
+
},
|
|
152
|
+
{ target: "--das-ui-special-range-picker-disabled", from: "--upf-divider-color" },
|
|
153
|
+
{ target: "--das-ui-special-range-picker-error", from: "--upf-color-error" },
|
|
154
|
+
{ target: "--das-ui-special-range-picker-overlay-error-bg-color", from: "--upf-message-error-bg" },
|
|
155
|
+
{ target: "--das-ui-special-range-picker-box-shadow-5", value: "rgb(0 0 0 / 5%)" },
|
|
156
|
+
{ target: "--das-ui-special-range-picker-box-shadow-8", value: "rgb(0 0 0 / 8%)" },
|
|
157
|
+
{ target: "--das-ui-special-range-picker-box-shadow-12", value: "rgb(0 0 0 / 12%)" },
|
|
158
|
+
{ target: "--das-ui-table-checkbox-bg", from: "--upf-color-primary" },
|
|
159
|
+
{ target: "--das-ui-table-checkbox-border-color", from: "--upf-color-primary" },
|
|
160
|
+
{ target: "--das-ui-table-sortable-color", from: "--upf-color-primary" },
|
|
161
|
+
{ target: "--das-ui-table-required-color", from: "--upf-color-error" },
|
|
162
|
+
{ target: "--das-ui-form-error-label-color", from: "--upf-color-error" },
|
|
163
|
+
{ target: "--das-ui-scrollbar-thumb-color", from: "--upf-text-disabled" },
|
|
164
|
+
{ target: "--das-ui-scrollbar-thumb-hover-color", from: "--upf-text-secondary" },
|
|
165
|
+
{ target: "--das-ui-scrollbar-padding", value: "1px" },
|
|
166
|
+
{ target: "--das-ui-scrollbar-thumb-size", value: "8px" },
|
|
167
|
+
{ target: "--das-user-manage-white", value: f },
|
|
168
|
+
{ target: "--das-user-manage-shadow-color", value: "rgba(38, 38, 38, 0.1)" },
|
|
169
|
+
{ target: "--das-user-manage-border-color", value: "rgba(38, 38, 38, 0.1)" },
|
|
170
|
+
{ target: "--das-ui-font-size-sm", value: "12px" },
|
|
171
|
+
{ target: "--das-ui-font-size-md", value: "14px" },
|
|
172
|
+
{ target: "--das-ui-font-size-lg", value: "16px" },
|
|
173
|
+
{ target: "--das-upf-ui-font-size-sm", value: "14px" },
|
|
174
|
+
{ target: "--das-upf-ui-line-height", value: "32px" },
|
|
175
|
+
{ target: "--das-ui-text-tooltip-shadow", value: "rgba(0, 0, 0, 0.2)" },
|
|
176
|
+
{ target: "--das-ui-text-tooltip-bgcolor", value: f },
|
|
177
|
+
{ target: "--das-ui-search-form-font-color", from: "--upf-text-primary" },
|
|
178
|
+
{ target: "--das-ui-search-form-filter-font-color", from: "--upf-text-secondary" },
|
|
179
|
+
{ target: "--das-ui-search-form-filter-bgcolor", from: "--upf-bg-secondary" },
|
|
180
|
+
{ target: "--das-ui-search-form-filter-border-color", from: "--upf-border-color" },
|
|
181
|
+
{ target: "--das-ui-select-list-hover-bg", from: "--upf-bg-secondary" },
|
|
182
|
+
{ target: "--das-ui-select-list-close-btn-hover", from: "--upf-color-primary" },
|
|
183
|
+
{ target: "--das-ui-select-list-active-bg-color", from: "--upf-color-primary-bg" },
|
|
184
|
+
{ target: "--das-ui-select-list-active-font-color", from: "--upf-color-primary" },
|
|
185
|
+
{ target: "--das-ui-steps-color", from: "--upf-color-primary" },
|
|
186
|
+
{ target: "--das-ui-steps-dashed-color", from: "--upf-text-disabled" },
|
|
187
|
+
{ target: "--das-ui-steps-wait-color", from: "--upf-text-secondary" },
|
|
188
|
+
{ target: "--das-ui-steps-finish-color", from: "--upf-color-success" },
|
|
189
|
+
{ target: "--das-ui-steps-error-color", from: "--upf-color-error" },
|
|
190
|
+
{ target: "--das-ui-steps-title-font-size", value: "12px" },
|
|
191
|
+
{
|
|
192
|
+
target: "--das-ui-collaspe-bgcolor",
|
|
193
|
+
resolve: ({ variables: e }) => t(e, "--upf-bg-elevated") || t(e, "--upf-bg-primary")
|
|
194
|
+
},
|
|
195
|
+
{ target: "--das-ui-calendar-color-text", value: "#212121" },
|
|
196
|
+
{ target: "--das-ui-calendar-color-border", value: "#D9D9D9" },
|
|
197
|
+
{ target: "--das-ui-calendar-size-text", value: "14px" },
|
|
198
|
+
{ target: "--das-ui-calendar-color-head-tip", value: "#999999" },
|
|
199
|
+
{ target: "--das-ui-calendar-size-head-tip", value: "12px" },
|
|
200
|
+
{ target: "--das-ui-calendar-span-size", value: "28px" },
|
|
201
|
+
{ target: "--das-ui-calendar-color-pre-next", value: "#B2B2B2" },
|
|
202
|
+
{
|
|
203
|
+
target: "--das-ui-color-primary-level2",
|
|
204
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
205
|
+
t(e, "--upf-color-primary"),
|
|
206
|
+
t(e, "--upf-bg-primary"),
|
|
207
|
+
0.16,
|
|
208
|
+
"#E0EFFE"
|
|
209
|
+
)
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
target: "--das-ui-color-primary-level3",
|
|
213
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
214
|
+
t(e, "--upf-color-primary"),
|
|
215
|
+
t(e, "--upf-bg-primary"),
|
|
216
|
+
0.32,
|
|
217
|
+
"#B3D5FF"
|
|
218
|
+
)
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
target: "--das-ui-color-primary-level4",
|
|
222
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
223
|
+
t(e, "--upf-color-primary"),
|
|
224
|
+
t(e, "--upf-bg-primary"),
|
|
225
|
+
0.48,
|
|
226
|
+
"#85B8FE"
|
|
227
|
+
)
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
target: "--das-ui-color-primary-level5",
|
|
231
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
232
|
+
t(e, "--upf-color-primary"),
|
|
233
|
+
t(e, "--upf-bg-primary"),
|
|
234
|
+
0.68,
|
|
235
|
+
"#5797FF"
|
|
236
|
+
)
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
target: "--das-ui-color-primary-level7",
|
|
240
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(t(e, "--upf-color-primary"), g, 0.82, "#104CCC")
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
target: "--das-ui-color-primary-level8",
|
|
244
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(t(e, "--upf-color-primary"), g, 0.68, "#002EA3")
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
target: "--das-ui-color-primary-level9",
|
|
248
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(t(e, "--upf-color-primary"), g, 0.5, "#001F7A")
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
target: "--das-ui-color-danger-level1",
|
|
252
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
253
|
+
t(e, "--upf-color-error"),
|
|
254
|
+
t(e, "--upf-bg-primary"),
|
|
255
|
+
0.14,
|
|
256
|
+
"#FFDBE0"
|
|
257
|
+
)
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
target: "--das-ui-color-danger-level2",
|
|
261
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
262
|
+
t(e, "--upf-color-error"),
|
|
263
|
+
t(e, "--upf-bg-primary"),
|
|
264
|
+
0.08,
|
|
265
|
+
"#FFF2F4"
|
|
266
|
+
)
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
target: "--das-ui-color-warning-level1",
|
|
270
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
271
|
+
t(e, "--upf-color-warning"),
|
|
272
|
+
t(e, "--upf-bg-primary"),
|
|
273
|
+
0.08,
|
|
274
|
+
"#FFFBF2"
|
|
275
|
+
)
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
target: "--das-ui-color-warning-level2",
|
|
279
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
280
|
+
t(e, "--upf-color-warning"),
|
|
281
|
+
t(e, "--upf-bg-primary"),
|
|
282
|
+
0.16,
|
|
283
|
+
"#FFF1D4"
|
|
284
|
+
)
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
target: "--das-ui-color-success-level1",
|
|
288
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
289
|
+
t(e, "--upf-color-success"),
|
|
290
|
+
t(e, "--upf-bg-primary"),
|
|
291
|
+
0.08,
|
|
292
|
+
"#F2FFF5"
|
|
293
|
+
)
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
target: "--das-ui-color-success-level2",
|
|
297
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
298
|
+
t(e, "--upf-color-success"),
|
|
299
|
+
t(e, "--upf-bg-primary"),
|
|
300
|
+
0.16,
|
|
301
|
+
"#DCFAE4"
|
|
302
|
+
)
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
target: "--das-ui-color-amount",
|
|
306
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
307
|
+
t(e, "--upf-color-warning"),
|
|
308
|
+
t(e, "--upf-color-error"),
|
|
309
|
+
0.55,
|
|
310
|
+
"#FF5F1F"
|
|
311
|
+
)
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
target: "--das-ui-button-primary-hover",
|
|
315
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(t(e, "--upf-color-primary"), g, 0.82, "#104CCC")
|
|
316
|
+
},
|
|
317
|
+
...i("--upf-color-primary", [
|
|
318
|
+
"--das-ui-search-form-primary-color"
|
|
319
|
+
]),
|
|
320
|
+
...i("--upf-text-primary", [
|
|
321
|
+
"--das-ui-tag-list-text-color"
|
|
322
|
+
]),
|
|
323
|
+
...i("--upf-border-color", [
|
|
324
|
+
"--das-ui-tag-list-border-color",
|
|
325
|
+
"--das-ui-upload-border-color"
|
|
326
|
+
]),
|
|
327
|
+
...i("--upf-bg-secondary", [
|
|
328
|
+
"--das-ui-upload-bgcolor"
|
|
329
|
+
]),
|
|
330
|
+
...i("--upf-text-secondary", [
|
|
331
|
+
"--das-ui-search-form-tip-color"
|
|
332
|
+
]),
|
|
333
|
+
{ target: "--das-ui-layout-header-menu-border-color", from: "--upf-border-color" },
|
|
334
|
+
{ target: "--das-ui-layout-header-menu-background-color", from: "--upf-nav-bg" },
|
|
335
|
+
{ target: "--das-ui-layout-header-menu-color", from: "--upf-nav-text" },
|
|
336
|
+
{ target: "--das-ui-layout-header-menu-hover-background-color", from: "--upf-nav-hover-bg" },
|
|
337
|
+
{ target: "--das-ui-layout-header-menu-hover-color", from: "--upf-nav-active-text" },
|
|
338
|
+
{ target: "--das-ui-layout-header-menu-active-background-color", from: "--upf-nav-active-bg" },
|
|
339
|
+
{ target: "--das-ui-layout-header-menu-active-color", from: "--upf-nav-active-text" },
|
|
340
|
+
{
|
|
341
|
+
target: "--das-ui-layout-header-menu-remove-btn-color",
|
|
342
|
+
resolve: ({ variables: e, toRgbaColor: r }) => r(t(e, "--upf-nav-text"), 0.72, "rgba(170, 170, 172, 0.72)")
|
|
343
|
+
},
|
|
344
|
+
{ target: "--das-ui-layout-header-menu-remove-btn-hover-color", from: "--upf-nav-active-text" },
|
|
345
|
+
{
|
|
346
|
+
target: "--das-ui-layout-header-icon-color",
|
|
347
|
+
resolve: ({ variables: e }) => t(e, "--upf-nav-text") || t(e, "--upf-text-secondary")
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
target: "--das-ui-layout-header-left-box-line",
|
|
351
|
+
resolve: ({ variables: e, toRgbaColor: r }) => r(
|
|
352
|
+
t(e, "--upf-nav-text") || t(e, "--upf-text-secondary"),
|
|
353
|
+
0.28,
|
|
354
|
+
"#CCCCCC"
|
|
355
|
+
)
|
|
356
|
+
},
|
|
357
|
+
{ target: "--das-ui-layout-aside-menu-width", value: "214px" },
|
|
358
|
+
{ target: "--das-ui-layout-aside-collapse-menu-width", value: "50px" },
|
|
359
|
+
{ target: "--das-ui-layout-aside-menu-item-height", value: "50px" },
|
|
360
|
+
{ target: "--das-ui-layout-aside-border-color", from: "--upf-border-color" },
|
|
361
|
+
{ target: "--das-ui-layout-aside-background-color", from: "--upf-menu-bg" },
|
|
362
|
+
{ target: "--das-ui-layout-aside--item-color", from: "--upf-menu-text" },
|
|
363
|
+
{ target: "--das-ui-layout-aside--item-arrow-color", from: "--upf-text-disabled" },
|
|
364
|
+
{ target: "--das-ui-layout-aside--item-active-color", from: "--upf-menu-active-text" },
|
|
365
|
+
{ target: "--das-ui-layout-aside--item-active-background-color", from: "--upf-menu-active-bg" },
|
|
366
|
+
{ target: "--das-ui-layout-aside-item-hover-color", from: "--upf-menu-active-text" },
|
|
367
|
+
{ target: "--das-ui-layout-aside-item-hover-background-color", from: "--upf-menu-hover-bg" },
|
|
368
|
+
{ target: "--das-ui-layout-aside-submenu-title-border-color", from: "--upf-divider-color" },
|
|
369
|
+
{ target: "--das-ui-layout-aside-submenu-vertical-background-color", from: "--upf-menu-submenu-bg" },
|
|
370
|
+
{ target: "--das-ui-layout-aside-submenu-vertical-item-hover-background-color", from: "--upf-menu-hover-bg" },
|
|
371
|
+
{ target: "--das-ui-layout-aside-submenu-background-color", from: "--upf-menu-submenu-bg" },
|
|
372
|
+
{ target: "--das-ui-layout-aside-submenu-item-affix-color", from: "--upf-color-primary" },
|
|
373
|
+
{ target: "--das-ui-layout-aside-submenu-item-color", from: "--upf-menu-text" },
|
|
374
|
+
{ target: "--das-ui-layout-aside-submenu-item-hover-color", from: "--upf-menu-active-text" },
|
|
375
|
+
{ target: "--das-ui-layout-aside-submenu-item-hover-background-color", from: "--upf-menu-hover-bg" },
|
|
376
|
+
{ target: "--das-ui-layout-aside-submenu-item-active-background-color", from: "--upf-menu-active-bg" },
|
|
377
|
+
{ target: "--das-ui-layout-aside-collapse-icon-bg-color", from: "--upf-text-disabled" },
|
|
378
|
+
{ target: "--das-ui-layout-aside-collapse-icon-hover-bg-color", from: "--upf-menu-active-text" },
|
|
379
|
+
{ target: "--das-ui-layout-aside-divise-border-color", from: "--upf-divider-color" },
|
|
380
|
+
{ target: "--das-ui-layout-aside-menu-expired-color", from: "--upf-text-disabled" },
|
|
381
|
+
{ target: "--das-ui-layout-aside-menu-top-left-icon-color", from: "--upf-color-primary" },
|
|
382
|
+
{ target: "--das-ui-layout-aside-menu-top-right-icon-color", from: "--upf-text-secondary" }
|
|
383
|
+
], K = [
|
|
384
|
+
// 同源变量集中维护,新增 target 时优先追加到对应 source 分组。
|
|
385
|
+
...i("--upf-color-primary", [
|
|
386
|
+
"--upf-button-primary",
|
|
387
|
+
"--upf-notification-primary-bg"
|
|
388
|
+
]),
|
|
389
|
+
...i("--upf-text-primary", [
|
|
390
|
+
"--upf-button-default-text",
|
|
391
|
+
"--upf-notification-title-text",
|
|
392
|
+
"--upf-text-tooltip-text"
|
|
393
|
+
]),
|
|
394
|
+
...i("--upf-border-color", [
|
|
395
|
+
"--upf-button-default-border",
|
|
396
|
+
"--upf-text-tooltip-border"
|
|
397
|
+
]),
|
|
398
|
+
...i("--upf-text-disabled", [
|
|
399
|
+
"--upf-button-default-disabled",
|
|
400
|
+
"--upf-switch-off-color",
|
|
401
|
+
"--upf-message-thumb",
|
|
402
|
+
"--upf-text-tooltip-scrollbar-thumb"
|
|
403
|
+
]),
|
|
404
|
+
...i("--upf-bg-secondary", [
|
|
405
|
+
"--upf-button-default-disabled-bg",
|
|
406
|
+
"--upf-table-header-bg"
|
|
407
|
+
]),
|
|
408
|
+
...i("--upf-bg-primary", ["--upf-checkbox-filter-bg"]),
|
|
409
|
+
...i("--upf-color-info", ["--upf-loading-color-1"]),
|
|
410
|
+
...i("--upf-brand-secondary", ["--upf-loading-color-2"]),
|
|
411
|
+
...i("--upf-color-success", ["--upf-loading-color-3"]),
|
|
412
|
+
...i("--upf-divider-color", ["--upf-loading-color-6"]),
|
|
413
|
+
...i("--upf-text-secondary", [
|
|
414
|
+
"--upf-message-close",
|
|
415
|
+
"--upf-notification-description-text",
|
|
416
|
+
"--upf-notification-close",
|
|
417
|
+
"--upf-text-tooltip-scrollbar-thumb-hover"
|
|
418
|
+
]),
|
|
419
|
+
{ target: "--upf-button-primary-text", value: f },
|
|
420
|
+
{ target: "--upf-button-primary-text-disabled", value: "rgba(255, 255, 255, 1)" },
|
|
421
|
+
{ target: "--upf-dialog-basic-header-height", value: "50px" },
|
|
422
|
+
{ target: "--upf-dialog-basic-content-padding", value: "30px" },
|
|
423
|
+
{ target: "--upf-dialog-feedback-header-height", value: "60px" },
|
|
424
|
+
{ target: "--upf-dialog-feedback-icon-width", value: "168px" },
|
|
425
|
+
{ target: "--upf-dialog-feedback-icon-height", value: "96px" },
|
|
426
|
+
{ target: "--upf-dialog-feedback-content-font-size", value: "16px" },
|
|
427
|
+
{ target: "--upf-dialog-feedback-content-padding", value: "48px" },
|
|
428
|
+
{ target: "--upf-dialog-notice-content-font-size", value: "14px" },
|
|
429
|
+
{ target: "--upf-dialog-notice-content-padding", value: "24px" },
|
|
430
|
+
{ target: "--upf-table-header-padding-top", value: "4px" },
|
|
431
|
+
{ target: "--upf-table-header-padding-bottom", value: "4px" },
|
|
432
|
+
{ target: "--upf-message-font-size-sm", value: "12px" },
|
|
433
|
+
{ target: "--upf-message-font-size-md", value: "14px" },
|
|
434
|
+
{ target: "--upf-message-font-size-lg", value: "16px" },
|
|
435
|
+
{ target: "--upf-notification-font-size-sm", value: "12px" },
|
|
436
|
+
{ target: "--upf-notification-font-size-md", value: "14px" },
|
|
437
|
+
{ target: "--upf-notification-font-size-lg", value: "16px" },
|
|
438
|
+
{ target: "--upf-notification-primary-text", value: f },
|
|
439
|
+
{ target: "--upf-text-tooltip-scrollbar-padding", value: "1px" },
|
|
440
|
+
{
|
|
441
|
+
target: "--upf-button-primary-hover",
|
|
442
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(t(e, "--upf-color-primary") || "#5582F3", f, 0.82, "#87A9FF")
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
target: "--upf-button-active",
|
|
446
|
+
resolve: ({ variables: e, mixHexColor: r }) => A(t(e, "--upf-color-primary"), r)
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
target: "--upf-button-disabled",
|
|
450
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(t(e, "--upf-color-primary") || "#5582F3", f, 0.3, "#B5CAFF")
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
target: "--upf-button-set",
|
|
454
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(t(e, "--upf-color-primary") || "#5582F3", g, 0.78, "#4367C1")
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
target: "--upf-button-set-hover",
|
|
458
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(t(e, "--upf-color-primary") || "#5582F3", g, 0.86, "#4C74DA")
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
target: "--upf-button-set-active",
|
|
462
|
+
resolve: ({ variables: e, mixHexColor: r }) => A(t(e, "--upf-color-primary"), r)
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
target: "--upf-button-set-disabled",
|
|
466
|
+
resolve: ({ variables: e, mixHexColor: r, result: o }) => r(
|
|
467
|
+
o["--upf-button-set"] || t(e, "--upf-color-primary") || "#5582F3",
|
|
468
|
+
t(e, "--upf-bg-primary"),
|
|
469
|
+
0.55,
|
|
470
|
+
"#95A4C8"
|
|
471
|
+
)
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
target: "--upf-switch-on-color-disabled",
|
|
475
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(t(e, "--upf-color-primary"), f, 0.32, "#B5CAFF")
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
target: "--upf-checkbox-focus-shadow",
|
|
479
|
+
resolve: ({ variables: e, toRgbaColor: r }) => r(
|
|
480
|
+
t(e, "--upf-color-primary") || "#5582F3",
|
|
481
|
+
0.1,
|
|
482
|
+
"rgba(85, 130, 243, 0.1)"
|
|
483
|
+
)
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
target: "--upf-checkbox-overlay-error-bg",
|
|
487
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
488
|
+
t(e, "--upf-color-error"),
|
|
489
|
+
t(e, "--upf-bg-primary"),
|
|
490
|
+
0.14,
|
|
491
|
+
"#FFDBE0"
|
|
492
|
+
)
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
target: "--upf-loading-color-4",
|
|
496
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
497
|
+
t(e, "--upf-brand-secondary"),
|
|
498
|
+
t(e, "--upf-color-primary"),
|
|
499
|
+
0.45,
|
|
500
|
+
"#A06EFF"
|
|
501
|
+
)
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
target: "--upf-loading-color-5",
|
|
505
|
+
resolve: ({ variables: e }) => t(e, "--upf-color-primary") || "#5582F3"
|
|
506
|
+
},
|
|
507
|
+
{ target: "--upf-table-row-hover-bg", from: "--upf-bg-secondary" },
|
|
508
|
+
{
|
|
509
|
+
target: "--upf-table-row-active-bg",
|
|
510
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
511
|
+
t(e, "--upf-color-primary"),
|
|
512
|
+
t(e, "--upf-bg-primary"),
|
|
513
|
+
0.08,
|
|
514
|
+
"#F2F6FF"
|
|
515
|
+
)
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
target: "--upf-table-row-active-hover-bg",
|
|
519
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
520
|
+
t(e, "--upf-color-primary"),
|
|
521
|
+
t(e, "--upf-bg-primary"),
|
|
522
|
+
0.14,
|
|
523
|
+
"#E3EBFF"
|
|
524
|
+
)
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
target: "--upf-table-summary-row-color",
|
|
528
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
529
|
+
t(e, "--upf-color-warning"),
|
|
530
|
+
t(e, "--upf-color-error"),
|
|
531
|
+
0.55,
|
|
532
|
+
"#FF5F1F"
|
|
533
|
+
)
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
target: "--upf-table-summary-row-bg",
|
|
537
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
538
|
+
t(e, "--upf-color-warning"),
|
|
539
|
+
t(e, "--upf-bg-primary"),
|
|
540
|
+
0.18,
|
|
541
|
+
"#FFF1D4"
|
|
542
|
+
)
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
target: "--upf-message-bg",
|
|
546
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
547
|
+
t(e, "--upf-color-info"),
|
|
548
|
+
t(e, "--upf-bg-primary"),
|
|
549
|
+
0.14,
|
|
550
|
+
"#E0EFFF"
|
|
551
|
+
)
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
target: "--upf-message-text",
|
|
555
|
+
resolve: ({ variables: e }) => t(e, "--upf-color-info") || t(e, "--upf-color-primary") || "#0E5FD8"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
target: "--upf-message-border",
|
|
559
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
560
|
+
t(e, "--upf-color-info"),
|
|
561
|
+
t(e, "--upf-bg-primary"),
|
|
562
|
+
0.32,
|
|
563
|
+
"#B3D5FF"
|
|
564
|
+
)
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
target: "--upf-message-close-hover",
|
|
568
|
+
resolve: ({ variables: e }) => t(e, "--upf-color-primary") || "#5582F3"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
target: "--upf-message-success-bg",
|
|
572
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
573
|
+
t(e, "--upf-color-success"),
|
|
574
|
+
t(e, "--upf-bg-primary"),
|
|
575
|
+
0.16,
|
|
576
|
+
"#DCFAE4"
|
|
577
|
+
)
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
target: "--upf-message-success-text",
|
|
581
|
+
resolve: ({ variables: e }) => t(e, "--upf-color-success") || "#1BA854"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
target: "--upf-message-success-border",
|
|
585
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
586
|
+
t(e, "--upf-color-success"),
|
|
587
|
+
t(e, "--upf-bg-primary"),
|
|
588
|
+
0.32,
|
|
589
|
+
"#A1E6B5"
|
|
590
|
+
)
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
target: "--upf-message-info-bg",
|
|
594
|
+
resolve: ({ result: e }) => e["--upf-message-bg"] || "#E0EFFF"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
target: "--upf-message-info-text",
|
|
598
|
+
resolve: ({ result: e }) => e["--upf-message-text"] || "#0E5FD8"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
target: "--upf-message-info-border",
|
|
602
|
+
resolve: ({ result: e }) => e["--upf-message-border"] || "#B3D5FF"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
target: "--upf-message-warning-bg",
|
|
606
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
607
|
+
t(e, "--upf-color-warning"),
|
|
608
|
+
t(e, "--upf-bg-primary"),
|
|
609
|
+
0.16,
|
|
610
|
+
"#FFF1D4"
|
|
611
|
+
)
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
target: "--upf-message-warning-text",
|
|
615
|
+
resolve: ({ variables: e }) => t(e, "--upf-color-warning") || "#FF991C"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
target: "--upf-message-warning-border",
|
|
619
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
620
|
+
t(e, "--upf-color-warning"),
|
|
621
|
+
t(e, "--upf-bg-primary"),
|
|
622
|
+
0.32,
|
|
623
|
+
"#FFE0A6"
|
|
624
|
+
)
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
target: "--upf-message-error-bg",
|
|
628
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
629
|
+
t(e, "--upf-color-error"),
|
|
630
|
+
t(e, "--upf-bg-primary"),
|
|
631
|
+
0.14,
|
|
632
|
+
"#FFDBE0"
|
|
633
|
+
)
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
target: "--upf-message-error-text",
|
|
637
|
+
resolve: ({ variables: e }) => t(e, "--upf-color-error") || "#FB2323"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
target: "--upf-message-error-border",
|
|
641
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
642
|
+
t(e, "--upf-color-error"),
|
|
643
|
+
t(e, "--upf-bg-primary"),
|
|
644
|
+
0.32,
|
|
645
|
+
"#FFADB6"
|
|
646
|
+
)
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
target: "--upf-notification-bg",
|
|
650
|
+
resolve: ({ variables: e }) => t(e, "--upf-bg-elevated") || t(e, "--upf-bg-primary")
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
target: "--upf-notification-close-hover",
|
|
654
|
+
resolve: ({ variables: e }) => t(e, "--upf-color-primary") || "#5582F3"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
target: "--upf-text-tooltip-bg",
|
|
658
|
+
resolve: ({ variables: e }) => t(e, "--upf-bg-elevated") || t(e, "--upf-bg-primary")
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
target: "--upf-text-tooltip-shadow-color",
|
|
662
|
+
resolve: ({ toRgbaColor: e }) => e("#262626", 0.16, "rgba(38, 38, 38, 0.16)")
|
|
663
|
+
},
|
|
664
|
+
{ target: "--upf-app-container-app-bg-override", from: "--upf-nav-bg" },
|
|
665
|
+
{ target: "--upf-app-container-app-text-override", from: "--upf-nav-text" }
|
|
666
|
+
], Y = (e) => x(e, W), J = (e) => x(e, G), Q = (e) => x(e, q), X = (e) => x(e, K), Z = (e, r = {}) => {
|
|
667
|
+
const o = h(e), { includeElementAndDasUiBridges: a = !0 } = r;
|
|
668
|
+
return {
|
|
669
|
+
...o,
|
|
670
|
+
...X(e),
|
|
671
|
+
...a ? J(e) : {},
|
|
672
|
+
...a ? Q(e) : {},
|
|
673
|
+
...Y(e)
|
|
674
|
+
};
|
|
675
|
+
}, k = (e) => e || (typeof document > "u" ? null : document.documentElement), N = (e) => !!(e && String(e.tagName || "").toLowerCase() === "style"), H = (e) => e.head || e.documentElement, R = (e, r) => {
|
|
676
|
+
const o = H(e);
|
|
677
|
+
o && (r.parentNode !== o || o.lastElementChild !== r) && o.appendChild(r);
|
|
678
|
+
}, D = (e) => {
|
|
679
|
+
var u;
|
|
680
|
+
if (B.has(e))
|
|
681
|
+
return;
|
|
682
|
+
const r = H(e), o = ((u = e.defaultView) == null ? void 0 : u.MutationObserver) || (typeof MutationObserver < "u" ? MutationObserver : void 0);
|
|
683
|
+
if (!r || !o)
|
|
684
|
+
return;
|
|
685
|
+
new o(() => {
|
|
686
|
+
const l = e.getElementById(E);
|
|
687
|
+
N(l) && R(e, l);
|
|
688
|
+
}).observe(r, { childList: !0 }), B.add(e);
|
|
689
|
+
}, ee = (e) => {
|
|
690
|
+
const r = e.getElementById(E);
|
|
691
|
+
if (N(r))
|
|
692
|
+
return R(e, r), D(e), r;
|
|
693
|
+
const o = e.createElement("style");
|
|
694
|
+
return o.id = E, H(e).appendChild(o), D(e), o;
|
|
695
|
+
}, re = (e) => {
|
|
696
|
+
const r = Object.entries(e).map(([o, a]) => ` ${o}: ${String(a ?? "")};`).join(`
|
|
697
|
+
`);
|
|
698
|
+
return r ? `:root {
|
|
699
|
+
${r}
|
|
700
|
+
}` : ":root {}";
|
|
701
|
+
}, V = (e, r) => {
|
|
702
|
+
if (!e.length || !r.length)
|
|
703
|
+
return;
|
|
704
|
+
const o = new Set(r);
|
|
705
|
+
for (let a = e.length - 1; a >= 0; a--) {
|
|
706
|
+
const u = e[a];
|
|
707
|
+
o.has(u) && e.removeProperty(u);
|
|
708
|
+
}
|
|
709
|
+
}, oe = (e, r) => {
|
|
710
|
+
const o = ee(e), a = re(r);
|
|
711
|
+
(_.get(e) !== a || o.textContent !== a) && (o.textContent = a, _.set(e, a));
|
|
712
|
+
const u = Object.keys(r);
|
|
713
|
+
V(e.documentElement.style, u), e.body && V(e.body.style, u);
|
|
714
|
+
}, te = (e) => {
|
|
715
|
+
typeof window > "u" || (window.__UPF_THEME_SNAPSHOT__ = e);
|
|
716
|
+
}, ae = (e, r) => {
|
|
717
|
+
const o = b(r) || {}, a = e.ownerDocument || document;
|
|
718
|
+
y.set(e, o);
|
|
719
|
+
const u = e === a.documentElement || e === a.body;
|
|
720
|
+
u && y.set(a, o), u && typeof window < "u" && a === document && (window.__UPF_THEME_RUNTIME_VARIABLES__ = o);
|
|
721
|
+
}, ue = (e) => {
|
|
722
|
+
const r = k(e), o = (r == null ? void 0 : r.ownerDocument) || (typeof document < "u" ? document : null), a = typeof window < "u" && o === document && window.__UPF_THEME_RUNTIME_VARIABLES__ || null;
|
|
723
|
+
return (r ? y.get(r) : null) || (o ? y.get(o) : null) || a;
|
|
724
|
+
}, le = (e = !0) => {
|
|
725
|
+
var r;
|
|
726
|
+
if (typeof window > "u" || !window.name)
|
|
727
|
+
return null;
|
|
728
|
+
try {
|
|
729
|
+
const o = JSON.parse(window.name), a = (r = o == null ? void 0 : o.parentData) == null ? void 0 : r.theme;
|
|
730
|
+
return !(a != null && a.variables) || typeof a.variables != "object" ? null : {
|
|
731
|
+
themeName: String(a.themeName || ""),
|
|
732
|
+
config: a.config || null,
|
|
733
|
+
variables: a.variables,
|
|
734
|
+
timestamp: Number(a.timestamp) || Date.now()
|
|
735
|
+
};
|
|
736
|
+
} catch {
|
|
737
|
+
return null;
|
|
738
|
+
}
|
|
739
|
+
}, ie = (e, r) => {
|
|
740
|
+
if (r !== void 0)
|
|
741
|
+
return r;
|
|
742
|
+
const o = e.config || {};
|
|
743
|
+
return String(o.basePresetName || o.name || e.themeName || "").trim() || null;
|
|
744
|
+
}, ne = (e, r = {}) => {
|
|
745
|
+
const o = k(r.root);
|
|
746
|
+
if (!o)
|
|
747
|
+
return {};
|
|
748
|
+
const a = h(e), u = r.includeBridges === !1 ? Object.entries(a).reduce((n, [c, s]) => (n[c] = String(s ?? ""), n), {}) : Z(a, {
|
|
749
|
+
includeElementAndDasUiBridges: r.includeElementAndDasUiBridges
|
|
750
|
+
}), l = o.ownerDocument || document;
|
|
751
|
+
return o === l.documentElement || o === l.body ? oe(l, u) : Object.entries(u).forEach(([n, c]) => {
|
|
752
|
+
o.style.getPropertyValue(n) !== c && o.style.setProperty(n, c);
|
|
753
|
+
}), ae(o, u), r.themeName && o.setAttribute("data-theme", r.themeName), r.skinName === null ? o.removeAttribute("data-skin") : r.skinName && o.setAttribute("data-skin", r.skinName), u;
|
|
754
|
+
}, O = (e, r = {}) => {
|
|
755
|
+
const o = ne(e.variables || {}, {
|
|
756
|
+
...r,
|
|
757
|
+
themeName: r.themeName || e.themeName,
|
|
758
|
+
skinName: ie(e, r.skinName)
|
|
759
|
+
});
|
|
760
|
+
return te(e), o;
|
|
761
|
+
}, w = (e, r, o = !0) => {
|
|
762
|
+
try {
|
|
763
|
+
return e && e.__THEME_API__ || null;
|
|
764
|
+
} catch {
|
|
765
|
+
return null;
|
|
766
|
+
}
|
|
767
|
+
}, v = (e = !0) => typeof window > "u" ? null : w(window, "current", e) || w(window.parent, "parent", e) || w(window.top, "top", e), I = (e = {}) => {
|
|
768
|
+
const r = v(e.debug), o = r != null && r.getCurrentTheme ? r.getCurrentTheme() : null;
|
|
769
|
+
if (o)
|
|
770
|
+
return o;
|
|
771
|
+
const a = (typeof window < "u" ? window.__UPF_THEME_SNAPSHOT__ : null) || null;
|
|
772
|
+
return a || le(e.debug);
|
|
773
|
+
}, se = (e = {}) => {
|
|
774
|
+
const r = ue(e.root);
|
|
775
|
+
if (r)
|
|
776
|
+
return b(r);
|
|
777
|
+
const o = I(e);
|
|
778
|
+
if (o != null && o.variables)
|
|
779
|
+
return b(o.variables);
|
|
780
|
+
const a = v(e.debug);
|
|
781
|
+
if (!a)
|
|
782
|
+
return null;
|
|
783
|
+
const u = a.getVariables ? a.getVariables() : null;
|
|
784
|
+
return b(u);
|
|
785
|
+
}, xe = (e, r = !0) => {
|
|
786
|
+
const o = v(r);
|
|
787
|
+
return o != null && o.changeTheme ? (o.changeTheme(e), !0) : !1;
|
|
788
|
+
}, z = (e = {}) => {
|
|
789
|
+
const r = I(e);
|
|
790
|
+
return r ? (O(r, e), r) : (e.debug, null);
|
|
791
|
+
}, ve = (e = {}) => z({
|
|
792
|
+
includeBridges: !1,
|
|
793
|
+
includeElementAndDasUiBridges: !1,
|
|
794
|
+
...e
|
|
795
|
+
}), ce = (e, r = !0) => {
|
|
796
|
+
try {
|
|
797
|
+
const o = L("microApp");
|
|
798
|
+
return o.event.on(S, e), () => {
|
|
799
|
+
o.event.off(S, e);
|
|
800
|
+
};
|
|
801
|
+
} catch {
|
|
802
|
+
return null;
|
|
803
|
+
}
|
|
804
|
+
}, pe = (e, r) => e != null && e.onThemeChange ? e.onThemeChange(r) : null, fe = (e) => e ? [String(e.themeName || ""), String(e.source || ""), String(Number(e.timestamp) || 0)].join("|") : "", ge = (e) => {
|
|
805
|
+
let r = "";
|
|
806
|
+
return (o) => {
|
|
807
|
+
const a = fe(o);
|
|
808
|
+
a && a === r || (r = a, e(o));
|
|
809
|
+
};
|
|
810
|
+
}, me = (e, r, o = !1, a = !0) => {
|
|
811
|
+
const u = ge(r), l = pe(e, u), n = ce(u, a), s = (o ? [l, n] : [n, l]).filter(Boolean);
|
|
812
|
+
return s.length ? () => {
|
|
813
|
+
s.forEach((p) => p());
|
|
814
|
+
} : null;
|
|
815
|
+
}, de = (e = {}) => {
|
|
816
|
+
const { syncOnInit: r = !0, preferWindowSubscription: o = !1, onThemeChange: a, debug: u = !0, ...l } = e, n = v(u);
|
|
817
|
+
let c = !1, s = null, p = null;
|
|
818
|
+
const m = () => {
|
|
819
|
+
c || z({ ...l, debug: u });
|
|
820
|
+
}, C = me(n, (d) => {
|
|
821
|
+
O(d, l), a && (d == null ? void 0 : d.source) !== "mountSync" && a(d);
|
|
822
|
+
}, o, u);
|
|
823
|
+
return r && (m(), (typeof queueMicrotask == "function" ? queueMicrotask : (U) => Promise.resolve().then(U))(m), typeof requestAnimationFrame == "function" ? s = requestAnimationFrame(() => {
|
|
824
|
+
s = null, m();
|
|
825
|
+
}) : p = setTimeout(() => {
|
|
826
|
+
p = null, m();
|
|
827
|
+
}, 16)), () => {
|
|
828
|
+
c = !0, s !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(s), s = null), p !== null && (clearTimeout(p), p = null), C == null || C();
|
|
829
|
+
};
|
|
830
|
+
}, Ce = (e = {}) => de({
|
|
831
|
+
includeBridges: !1,
|
|
832
|
+
includeElementAndDasUiBridges: !1,
|
|
833
|
+
...e
|
|
834
|
+
}), be = (e, r) => {
|
|
835
|
+
var l;
|
|
836
|
+
const o = k(r), a = String(e || "").trim();
|
|
837
|
+
if (!o || !a)
|
|
838
|
+
return "";
|
|
839
|
+
const u = typeof getComputedStyle > "u" ? "" : getComputedStyle(o).getPropertyValue(a).trim();
|
|
840
|
+
return u || String(((l = se({ root: o, debug: !1 })) == null ? void 0 : l[a]) ?? "");
|
|
841
|
+
}, Fe = (e) => `var(${String(e || "").trim()})`, we = (e, r) => ({
|
|
842
|
+
value: be(String(e || "").trim(), r)
|
|
843
|
+
});
|
|
844
|
+
export {
|
|
845
|
+
q as DAS_UI_THEME_BRIDGE_ITEMS,
|
|
846
|
+
G as ELEMENT_THEME_BRIDGE_ITEMS,
|
|
847
|
+
W as LEGACY_THEME_BRIDGE_ITEMS,
|
|
848
|
+
K as UPF_COMPONENT_THEME_BRIDGE_ITEMS,
|
|
849
|
+
O as applyThemeEventToDocument,
|
|
850
|
+
ne as applyThemeVariablesToDocument,
|
|
851
|
+
Z as buildRuntimeThemeVariables,
|
|
852
|
+
xe as changeTheme,
|
|
853
|
+
I as getCurrentTheme,
|
|
854
|
+
le as getHostThemeSnapshotFromWindowName,
|
|
855
|
+
v as getThemeAPI,
|
|
856
|
+
be as getThemeVariable,
|
|
857
|
+
se as getThemeVariables,
|
|
858
|
+
Fe as getVar,
|
|
859
|
+
we as getVarValue,
|
|
860
|
+
Ce as initHostThemeRootSync,
|
|
861
|
+
de as initSubAppThemeSync,
|
|
862
|
+
$ as mixHexColor,
|
|
863
|
+
x as resolveThemeBridgeVariables,
|
|
864
|
+
ve as syncHostThemeRoot,
|
|
865
|
+
z as syncThemeFromHost,
|
|
866
|
+
Q as toDasUiColorOverrides,
|
|
867
|
+
J as toElementThemeVariables,
|
|
868
|
+
Y as toLegacyThemeVariables,
|
|
869
|
+
P as toRgbaColor,
|
|
870
|
+
X as toUpfComponentThemeVariables
|
|
871
|
+
};
|