@das-fed/upf-utils 6.4.0-hot.11 → 6.4.0-hot.13
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 +1125 -1074
- package/api-services/i18n/es5.d.ts +63 -0
- package/api-services/index.js +852 -813
- 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 +957 -909
- package/api-services/modules/app-manage/index.js +746 -711
- 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 +1650 -1587
- package/api-services/modules/authentication/index.js +1410 -1353
- 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 +1645 -1582
- package/api-services/modules/bems/index.js +1404 -1347
- 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 +1250 -1199
- package/api-services/modules/contract/index.js +1035 -996
- 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 +963 -912
- package/api-services/modules/duty-manage/index.js +755 -716
- 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 +1250 -1199
- package/api-services/modules/enterpriseright/index.js +1035 -996
- 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 +1113 -1062
- package/api-services/modules/file/es5.d.ts +37 -0
- package/api-services/modules/file/es5.js +1005 -954
- package/api-services/modules/file/index.js +786 -747
- 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 +1250 -1199
- package/api-services/modules/gateway-edge/index.js +1035 -996
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +856 -817
- 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 +1389 -1350
- package/api-services/modules/iot/index.js +1153 -1132
- 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 +1327 -1285
- package/api-services/modules/justauth/index.js +1111 -1086
- 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 +1052 -998
- package/api-services/modules/knowledge/index.js +822 -779
- 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 +1250 -1199
- package/api-services/modules/link/index.js +1035 -996
- 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 +1250 -1199
- package/api-services/modules/permission/index.js +1035 -996
- 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 +1334 -1274
- package/api-services/modules/platformManage/index.js +1123 -1070
- 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 +1250 -1199
- package/api-services/modules/portal/index.js +1035 -996
- 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 +968 -917
- package/api-services/modules/space-manage/index.js +763 -724
- 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 +1260 -1209
- package/api-services/modules/super-admin/index.js +1038 -999
- 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 +1249 -1198
- package/api-services/modules/supplier/index.js +1032 -993
- 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 +983 -932
- package/api-services/modules/supplychain-manage/index.js +775 -736
- 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 +1250 -1199
- package/api-services/modules/systemConfiguration/index.js +1035 -996
- 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 +971 -920
- package/api-services/modules/tool/index.js +764 -725
- 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 +1396 -1357
- package/api-services/src/create-service/index.js +1170 -1149
- package/api-services/src/create-service/index.js.gz +0 -0
- package/atob/es5.d.ts +2 -0
- package/common-info/es5.d.ts +73 -0
- package/common-info/es5.js +2155 -2063
- 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 +1414 -1313
- package/common-info/getPermissionMethod/index.d.ts +57 -6
- package/common-info/getPermissionMethod/index.js +1155 -1073
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +5 -8
- package/common-info/index.js +1818 -1751
- 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 +132 -0
- package/common-tools/timezone-format/es5.js +822 -0
- package/common-tools/timezone-format/get-iana-data/dayjs-timezone-iana-plugin.d.ts +72 -0
- package/common-tools/timezone-format/get-iana-data/iana-api-fetch.d.ts +21 -0
- package/common-tools/timezone-format/get-iana-data/moment-iana-loader.d.ts +29 -0
- package/common-tools/timezone-format/index.d.ts +132 -0
- package/common-tools/timezone-format/index.js +439 -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 +1397 -1358
- package/create-api-service/i18n/es5.d.ts +39 -0
- package/create-api-service/index.js +1171 -1150
- 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/auth/es5.js +50 -42
- package/directive/auth/index.d.ts +1 -1
- package/directive/auth/index.js +42 -34
- package/directive/auth/index.js.gz +0 -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 +66 -3
- package/hooks/popup-manager/use-zindex/es5.d.ts +3 -0
- package/hooks/use-get-auth/apis.d.ts +4 -0
- package/hooks/use-get-auth/es5.d.ts +8 -0
- package/hooks/use-get-auth/es5.js +325 -57
- package/hooks/use-get-auth/index.d.ts +8 -4
- package/hooks/use-get-auth/index.js +71 -16
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/i18n-bridge/es5.d.ts +10 -0
- package/index.d.ts +2 -0
- package/index.js +2 -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 +111 -0
- package/theme/es5.js +1676 -0
- package/theme/index.d.ts +111 -0
- package/theme/index.js +1118 -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/use-low-code/es5.js +37 -53
- package/use-low-code/index.js +36 -31
- package/use-low-code/index.js.gz +0 -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/use-low-code/style.css +0 -1
package/theme/index.js
ADDED
|
@@ -0,0 +1,1118 @@
|
|
|
1
|
+
import { bus as q } from "@das-fed/mframe";
|
|
2
|
+
const J = {
|
|
3
|
+
"--upf-brand-primary": "#ffffff",
|
|
4
|
+
"--upf-brand-secondary": "#f2f6ff",
|
|
5
|
+
"--upf-color-primary": "#5582f3",
|
|
6
|
+
"--upf-color-success": "#52c41a",
|
|
7
|
+
"--upf-color-warning": "#faad14",
|
|
8
|
+
"--upf-color-error": "#ff4d4f",
|
|
9
|
+
"--upf-color-info": "#1890ff",
|
|
10
|
+
"--upf-text-primary": "#212121",
|
|
11
|
+
"--upf-text-secondary": "#666666",
|
|
12
|
+
"--upf-text-disabled": "#B2B2B2",
|
|
13
|
+
"--upf-text-placeholder": "#bfbfbf",
|
|
14
|
+
"--upf-bg-primary": "#ffffff",
|
|
15
|
+
"--upf-bg-secondary": "#F2F2F2",
|
|
16
|
+
"--upf-bg-elevated": "#ffffff",
|
|
17
|
+
"--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
|
|
18
|
+
"--upf-border-color": "#D9D9D9",
|
|
19
|
+
"--upf-divider-color": "#ebeff5",
|
|
20
|
+
"--upf-nav-bg": "#ffffff",
|
|
21
|
+
"--upf-nav-text": "#212121",
|
|
22
|
+
"--upf-nav-hover-bg": "#f2f6ff",
|
|
23
|
+
"--upf-nav-active-bg": "#f2f6ff",
|
|
24
|
+
"--upf-nav-active-text": "#5582f3",
|
|
25
|
+
"--upf-menu-bg": "#ffffff",
|
|
26
|
+
"--upf-menu-text": "#212121",
|
|
27
|
+
"--upf-menu-hover-bg": "#f2f2f2",
|
|
28
|
+
"--upf-menu-active-bg": "#f2f6ff",
|
|
29
|
+
"--upf-menu-active-text": "#5582f3",
|
|
30
|
+
"--upf-menu-submenu-bg": "#ffffff",
|
|
31
|
+
"--upf-tab-bg": "#ffffff",
|
|
32
|
+
"--upf-tab-text": "#666666",
|
|
33
|
+
"--upf-tab-hover-bg": "#f2f6ff",
|
|
34
|
+
"--upf-tab-active-bg": "#ffffff",
|
|
35
|
+
"--upf-tab-active-text": "#5582f3",
|
|
36
|
+
"--upf-border-radius": "4px",
|
|
37
|
+
"--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
|
|
38
|
+
"--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
|
|
39
|
+
}, Y = {
|
|
40
|
+
name: "cjb",
|
|
41
|
+
displayName: "纯净白",
|
|
42
|
+
description: "白底壳层主题,内容区沿用浅蓝高亮交互色",
|
|
43
|
+
mode: "light",
|
|
44
|
+
source: "preset",
|
|
45
|
+
basePresetName: "cjb",
|
|
46
|
+
variables: J
|
|
47
|
+
}, X = {
|
|
48
|
+
"--upf-brand-primary": "#0e5fd8",
|
|
49
|
+
"--upf-brand-secondary": "#3579de",
|
|
50
|
+
"--upf-color-primary": "#5582f3",
|
|
51
|
+
"--upf-color-success": "#52c41a",
|
|
52
|
+
"--upf-color-warning": "#faad14",
|
|
53
|
+
"--upf-color-error": "#ff4d4f",
|
|
54
|
+
"--upf-color-info": "#1890ff",
|
|
55
|
+
"--upf-text-primary": "#231815",
|
|
56
|
+
"--upf-text-secondary": "#666666",
|
|
57
|
+
"--upf-text-disabled": "#B2B2B2",
|
|
58
|
+
"--upf-text-placeholder": "#bfbfbf",
|
|
59
|
+
"--upf-bg-primary": "#ffffff",
|
|
60
|
+
"--upf-bg-secondary": "#F2F2F2",
|
|
61
|
+
"--upf-bg-elevated": "#ffffff",
|
|
62
|
+
"--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
|
|
63
|
+
"--upf-border-color": "#D9D9D9",
|
|
64
|
+
"--upf-divider-color": "#ebeff5",
|
|
65
|
+
"--upf-nav-bg": "#0e5fd8",
|
|
66
|
+
"--upf-nav-text": "#ffffff",
|
|
67
|
+
"--upf-nav-hover-bg": "#3579de",
|
|
68
|
+
"--upf-nav-active-bg": "#3579de",
|
|
69
|
+
"--upf-nav-active-text": "#ffffff",
|
|
70
|
+
"--upf-menu-bg": "#ffffff",
|
|
71
|
+
"--upf-menu-text": "#231815",
|
|
72
|
+
"--upf-menu-hover-bg": "#f2f2f2",
|
|
73
|
+
"--upf-menu-active-bg": "#eef3fe",
|
|
74
|
+
"--upf-menu-active-text": "#5582f3",
|
|
75
|
+
"--upf-menu-submenu-bg": "#ffffff",
|
|
76
|
+
"--upf-tab-bg": "#ffffff",
|
|
77
|
+
"--upf-tab-text": "#666666",
|
|
78
|
+
"--upf-tab-hover-bg": "#eef3fe",
|
|
79
|
+
"--upf-tab-active-bg": "#ffffff",
|
|
80
|
+
"--upf-tab-active-text": "#5582f3",
|
|
81
|
+
"--upf-border-radius": "4px",
|
|
82
|
+
"--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.1)",
|
|
83
|
+
"--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.15)"
|
|
84
|
+
}, Q = {
|
|
85
|
+
name: "default",
|
|
86
|
+
displayName: "经典蓝",
|
|
87
|
+
description: "经典蓝导航主题,内容区沿用浅底与高亮蓝交互色",
|
|
88
|
+
mode: "light",
|
|
89
|
+
source: "preset",
|
|
90
|
+
basePresetName: "default",
|
|
91
|
+
variables: X
|
|
92
|
+
}, Z = {
|
|
93
|
+
"--upf-brand-primary": "#eb0e1b",
|
|
94
|
+
"--upf-brand-secondary": "#f15760",
|
|
95
|
+
"--upf-color-primary": "#e63946",
|
|
96
|
+
"--upf-color-success": "#52c41a",
|
|
97
|
+
"--upf-color-warning": "#faad14",
|
|
98
|
+
"--upf-color-error": "#ff4d4f",
|
|
99
|
+
"--upf-color-info": "#1890ff",
|
|
100
|
+
"--upf-text-primary": "#231815",
|
|
101
|
+
"--upf-text-secondary": "#666666",
|
|
102
|
+
"--upf-text-disabled": "#B2B2B2",
|
|
103
|
+
"--upf-text-placeholder": "#bfbfbf",
|
|
104
|
+
"--upf-bg-primary": "#ffffff",
|
|
105
|
+
"--upf-bg-secondary": "#F2F2F2",
|
|
106
|
+
"--upf-bg-elevated": "#ffffff",
|
|
107
|
+
"--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
|
|
108
|
+
"--upf-border-color": "#D9D9D9",
|
|
109
|
+
"--upf-divider-color": "#ebeff5",
|
|
110
|
+
"--upf-nav-bg": "#eb0e1b",
|
|
111
|
+
"--upf-nav-text": "#ffffff",
|
|
112
|
+
"--upf-nav-hover-bg": "rgba(255, 255, 255, 0.3)",
|
|
113
|
+
"--upf-nav-active-bg": "rgba(255, 255, 255, 0.3)",
|
|
114
|
+
"--upf-nav-active-text": "#ffffff",
|
|
115
|
+
"--upf-menu-bg": "#ffffff",
|
|
116
|
+
"--upf-menu-text": "#231815",
|
|
117
|
+
"--upf-menu-hover-bg": "#f5f5f5",
|
|
118
|
+
"--upf-menu-active-bg": "#fce8ea",
|
|
119
|
+
"--upf-menu-active-text": "#e63946",
|
|
120
|
+
"--upf-menu-submenu-bg": "#ffffff",
|
|
121
|
+
"--upf-tab-bg": "#ffffff",
|
|
122
|
+
"--upf-tab-text": "#666666",
|
|
123
|
+
"--upf-tab-hover-bg": "#fce8ea",
|
|
124
|
+
"--upf-tab-active-bg": "#ffffff",
|
|
125
|
+
"--upf-tab-active-text": "#e63946",
|
|
126
|
+
"--upf-border-radius": "4px",
|
|
127
|
+
"--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
|
|
128
|
+
"--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
|
|
129
|
+
}, ee = {
|
|
130
|
+
name: "dkh",
|
|
131
|
+
displayName: "大咖红",
|
|
132
|
+
description: "大咖红主题,壳层与内容交互色保持同系红色",
|
|
133
|
+
mode: "light",
|
|
134
|
+
source: "preset",
|
|
135
|
+
basePresetName: "dkh",
|
|
136
|
+
variables: Z
|
|
137
|
+
}, re = {
|
|
138
|
+
"--upf-brand-primary": "#1f2346",
|
|
139
|
+
"--upf-brand-secondary": "#2d3158",
|
|
140
|
+
"--upf-color-primary": "#5582f3",
|
|
141
|
+
"--upf-color-success": "#52c41a",
|
|
142
|
+
"--upf-color-warning": "#faad14",
|
|
143
|
+
"--upf-color-error": "#ff4d4f",
|
|
144
|
+
"--upf-color-info": "#1890ff",
|
|
145
|
+
"--upf-text-primary": "#231815",
|
|
146
|
+
"--upf-text-secondary": "#666666",
|
|
147
|
+
"--upf-text-disabled": "#B2B2B2",
|
|
148
|
+
"--upf-text-placeholder": "#b8c0cc",
|
|
149
|
+
"--upf-bg-primary": "#ffffff",
|
|
150
|
+
"--upf-bg-secondary": "#F2F2F2",
|
|
151
|
+
"--upf-bg-elevated": "#ffffff",
|
|
152
|
+
"--upf-bg-mask": "rgba(15, 23, 42, 0.45)",
|
|
153
|
+
"--upf-border-color": "#D9D9D9",
|
|
154
|
+
"--upf-divider-color": "#ebeff5",
|
|
155
|
+
"--upf-nav-bg": "#1f2346",
|
|
156
|
+
"--upf-nav-text": "#ffffff",
|
|
157
|
+
"--upf-nav-hover-bg": "rgba(255, 255, 255, 0.16)",
|
|
158
|
+
"--upf-nav-active-bg": "#5582f3",
|
|
159
|
+
"--upf-nav-active-text": "#ffffff",
|
|
160
|
+
"--upf-menu-bg": "#1f2346",
|
|
161
|
+
"--upf-menu-text": "#ffffff",
|
|
162
|
+
"--upf-menu-hover-bg": "#2d3158",
|
|
163
|
+
"--upf-menu-active-bg": "#2d3158",
|
|
164
|
+
"--upf-menu-active-text": "#ffffff",
|
|
165
|
+
"--upf-menu-submenu-bg": "#171b36",
|
|
166
|
+
"--upf-tab-bg": "#ffffff",
|
|
167
|
+
"--upf-tab-text": "#666666",
|
|
168
|
+
"--upf-tab-hover-bg": "#f2f6ff",
|
|
169
|
+
"--upf-tab-active-bg": "#ffffff",
|
|
170
|
+
"--upf-tab-active-text": "#5582f3",
|
|
171
|
+
"--upf-border-radius": "4px",
|
|
172
|
+
"--upf-box-shadow": "0 6px 18px rgba(15, 23, 42, 0.08)",
|
|
173
|
+
"--upf-box-shadow-elevated": "0 10px 28px rgba(35, 41, 75, 0.12)"
|
|
174
|
+
}, te = {
|
|
175
|
+
name: "ssl",
|
|
176
|
+
displayName: "深邃蓝",
|
|
177
|
+
description: "深邃蓝壳层主题,内容区沿用浅底与高亮蓝交互色",
|
|
178
|
+
mode: "dark",
|
|
179
|
+
source: "preset",
|
|
180
|
+
basePresetName: "ssl",
|
|
181
|
+
variables: re
|
|
182
|
+
}, oe = ["default", "cjb", "ssl", "dkh"], _ = {
|
|
183
|
+
default: Q,
|
|
184
|
+
cjb: Y,
|
|
185
|
+
ssl: te,
|
|
186
|
+
dkh: ee
|
|
187
|
+
}, ae = (e) => ({ ...e }), I = (e) => ({
|
|
188
|
+
...e,
|
|
189
|
+
variables: ae(e.variables)
|
|
190
|
+
}), y = (e) => {
|
|
191
|
+
const r = String(e || "").trim();
|
|
192
|
+
return _[r] ? I(_[r]) : void 0;
|
|
193
|
+
}, ue = () => oe.map((e) => I(_[e])), A = "themeChange", p = "#ffffff", d = "#000000", v = "upf-theme-root-vars", fe = "upf-default-theme-vars", le = ["--upf-color-primary", "--upf-brand-primary"], D = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakSet(), b = /* @__PURE__ */ new WeakMap(), x = (e) => e ? Object.entries(h(e)).reduce((r, [t, a]) => (r[t] = String(a ?? ""), r), {}) : null, h = (e) => e, o = (e, r) => {
|
|
194
|
+
const t = h(e);
|
|
195
|
+
return String((r ? t[r] : "") ?? "");
|
|
196
|
+
}, n = (e, r) => r.map((t) => ({ target: t, from: e })), P = (e) => {
|
|
197
|
+
const r = String(e || "").trim();
|
|
198
|
+
return /^#([\da-f]{3}|[\da-f]{6})$/i.test(r) ? r.length === 4 ? `#${r.slice(1).split("").map((t) => `${t}${t}`).join("")}` : r : "";
|
|
199
|
+
}, k = (e) => {
|
|
200
|
+
const r = P(e);
|
|
201
|
+
if (!r)
|
|
202
|
+
return null;
|
|
203
|
+
const t = r.slice(1);
|
|
204
|
+
return {
|
|
205
|
+
red: Number.parseInt(t.slice(0, 2), 16),
|
|
206
|
+
green: Number.parseInt(t.slice(2, 4), 16),
|
|
207
|
+
blue: Number.parseInt(t.slice(4, 6), 16)
|
|
208
|
+
};
|
|
209
|
+
}, w = (e) => Math.min(255, Math.max(0, Math.round(e))), ne = (e, r, t, a) => {
|
|
210
|
+
const u = k(e), f = k(r);
|
|
211
|
+
if (!u || !f)
|
|
212
|
+
return a;
|
|
213
|
+
const l = Math.min(1, Math.max(0, t)), s = w(u.red * l + f.red * (1 - l)), i = w(u.green * l + f.green * (1 - l)), c = w(u.blue * l + f.blue * (1 - l));
|
|
214
|
+
return `#${[s, i, c].map((m) => m.toString(16).padStart(2, "0")).join("")}`;
|
|
215
|
+
}, ie = (e, r, t) => {
|
|
216
|
+
const a = k(e);
|
|
217
|
+
if (!a)
|
|
218
|
+
return t;
|
|
219
|
+
const u = Math.min(1, Math.max(0, r));
|
|
220
|
+
return `rgba(${a.red}, ${a.green}, ${a.blue}, ${u})`;
|
|
221
|
+
}, se = {
|
|
222
|
+
"#5582f3": "#3761CA",
|
|
223
|
+
"#e63946": "#C9303C"
|
|
224
|
+
}, V = (e, r) => {
|
|
225
|
+
const t = e || "#5582F3";
|
|
226
|
+
return se[P(t).toLowerCase()] || r(t, d, 0.84, "#3761CA");
|
|
227
|
+
}, E = (e, r) => r.reduce((t, a) => {
|
|
228
|
+
const u = a.resolve ? a.resolve({ variables: e, result: t, mixHexColor: ne, toRgbaColor: ie }) : a.from ? o(e, String(a.from)) : String(a.value ?? "");
|
|
229
|
+
return t[a.target] = String(u ?? ""), t;
|
|
230
|
+
}, {}), ce = [
|
|
231
|
+
{ target: "--upf-primary", from: "--upf-color-primary" },
|
|
232
|
+
{ target: "--upf-text", from: "--upf-text-primary" },
|
|
233
|
+
{ target: "--upf-surface", from: "--upf-bg-primary" },
|
|
234
|
+
{ target: "--upf-divider", from: "--upf-divider-color" },
|
|
235
|
+
{ target: "--upf-nav-item-hover-bg", from: "--upf-nav-hover-bg" },
|
|
236
|
+
{ target: "--upf-nav-item-active-bg", from: "--upf-nav-active-bg" },
|
|
237
|
+
{ target: "--upf-menu-item-hover-bg", from: "--upf-menu-hover-bg" },
|
|
238
|
+
{ target: "--upf-menu-item-active-bg", from: "--upf-menu-active-bg" },
|
|
239
|
+
{ target: "--upf-menu-item-active-text", from: "--upf-menu-active-text" }
|
|
240
|
+
], pe = [
|
|
241
|
+
{ target: "--el-color-primary", from: "--upf-color-primary" },
|
|
242
|
+
{ target: "--el-color-success", from: "--upf-color-success" },
|
|
243
|
+
{ target: "--el-color-warning", from: "--upf-color-warning" },
|
|
244
|
+
{ target: "--el-color-danger", from: "--upf-color-error" },
|
|
245
|
+
{ target: "--el-color-error", from: "--upf-color-error" },
|
|
246
|
+
{ target: "--el-color-info", from: "--upf-color-info" },
|
|
247
|
+
{ target: "--el-text-color-primary", from: "--upf-text-primary" },
|
|
248
|
+
{ target: "--el-text-color-regular", from: "--upf-text-primary" },
|
|
249
|
+
{ target: "--el-text-color-secondary", from: "--upf-text-secondary" },
|
|
250
|
+
{ target: "--el-text-color-placeholder", from: "--upf-text-placeholder" },
|
|
251
|
+
{ target: "--el-text-color-disabled", from: "--upf-text-disabled" },
|
|
252
|
+
{ target: "--el-border-color", from: "--upf-border-color" },
|
|
253
|
+
{ target: "--el-border-color-light", from: "--upf-divider-color" },
|
|
254
|
+
{ target: "--el-border-color-lighter", from: "--upf-divider-color" },
|
|
255
|
+
{ target: "--el-fill-color-blank", from: "--upf-bg-primary" },
|
|
256
|
+
{ target: "--el-bg-color", from: "--upf-bg-primary" },
|
|
257
|
+
{ target: "--el-bg-color-page", from: "--upf-bg-secondary" },
|
|
258
|
+
{ target: "--el-bg-color-overlay", from: "--upf-bg-elevated" },
|
|
259
|
+
{ target: "--el-dialog-bg-color", from: "--upf-bg-elevated" },
|
|
260
|
+
{ target: "--el-mask-color", from: "--upf-bg-mask" },
|
|
261
|
+
{ target: "--el-tree-text-color", from: "--upf-text-secondary" },
|
|
262
|
+
{ target: "--el-checkbox-disabled-checked-icon-color", from: "--upf-text-disabled" },
|
|
263
|
+
{ target: "--el-dialog-content-font-size", value: "14px" },
|
|
264
|
+
{ target: "--el-transition-duration-fast", value: "0.2s" },
|
|
265
|
+
{ target: "--el-checkbox-font-weight", value: "400" },
|
|
266
|
+
{ target: "--el-checkbox-input-width", value: "14px" },
|
|
267
|
+
{ target: "--el-checkbox-input-height", value: "14px" },
|
|
268
|
+
{ target: "--el-checkbox-checked-icon-color", value: p },
|
|
269
|
+
{
|
|
270
|
+
target: "--el-checkbox-input-border",
|
|
271
|
+
resolve: ({ variables: e }) => `1px solid ${o(e, "--upf-border-color")}`
|
|
272
|
+
}
|
|
273
|
+
], de = [
|
|
274
|
+
{ target: "--das-ui-color-primary-level1", from: "--upf-color-primary-bg" },
|
|
275
|
+
...n("--upf-color-primary-bg", [
|
|
276
|
+
"--das-ui-color-primary-level1",
|
|
277
|
+
"--das-ui-upload-bgcolor-hover"
|
|
278
|
+
]),
|
|
279
|
+
...n("--upf-bg-primary", [
|
|
280
|
+
"--das-black-list-mange-color-white"
|
|
281
|
+
]),
|
|
282
|
+
{ target: "--das-ui-color-primary", from: "--upf-color-primary" },
|
|
283
|
+
{ target: "--das-ui-color-danger", from: "--upf-color-error" },
|
|
284
|
+
{ target: "--das-ui-color-warning", from: "--upf-color-warning" },
|
|
285
|
+
{ target: "--das-ui-color-success", from: "--upf-color-success" },
|
|
286
|
+
{ target: "--das-ui-color-link", from: "--upf-color-primary" },
|
|
287
|
+
{ target: "--das-ui-color-normal", from: "--upf-text-primary" },
|
|
288
|
+
{ target: "--das-ui-color-secondary", from: "--upf-text-secondary" },
|
|
289
|
+
{ target: "--das-ui-color-help", from: "--upf-text-disabled" },
|
|
290
|
+
{ target: "--das-ui-color-disabled", from: "--upf-text-disabled" },
|
|
291
|
+
{ target: "--das-ui-color-overlay-error", from: "--upf-color-error" },
|
|
292
|
+
{ target: "--das-ui-button-primary", from: "--upf-color-primary" },
|
|
293
|
+
{ target: "--das-ui-input-full-border-color", from: "--upf-border-color" },
|
|
294
|
+
{ target: "--das-ui-tag-list-border-active-color", from: "--upf-color-primary" },
|
|
295
|
+
{ target: "--das-ui-tag-dark-temporary-color", from: "--upf-text-secondary" },
|
|
296
|
+
// 共享桥接先兜底旧加载态、下拉态和范围选择器变量,保证首批迁移组件样式稳定。
|
|
297
|
+
{ target: "--das-ui-split-panel-color-primary", from: "--upf-color-primary" },
|
|
298
|
+
{ target: "--das-ui-split-panel-color-line", from: "--upf-divider-color" },
|
|
299
|
+
{ target: "--das-ui-split-panel-color-btn", from: "--upf-text-secondary" },
|
|
300
|
+
{ target: "--das-ui-tree-table-highlight-color", from: "--upf-color-primary" },
|
|
301
|
+
{ target: "--das-ui-tree-table-header-color", from: "--upf-text-primary" },
|
|
302
|
+
{ target: "--das-ui-tree-table-header-bg-color", from: "--upf-bg-secondary" },
|
|
303
|
+
{ target: "--das-ui-tree-table-border-color", from: "--upf-border-color" },
|
|
304
|
+
{ target: "--das-ui-rich-editor-active-font-color", from: "--upf-color-primary" },
|
|
305
|
+
{
|
|
306
|
+
target: "--das-ui-dropdown-bgff-color",
|
|
307
|
+
resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
|
|
308
|
+
},
|
|
309
|
+
{ target: "--das-ui-dropdown-divided-color", from: "--upf-border-color" },
|
|
310
|
+
{ target: "--das-ui-dropdown-active-color", from: "--upf-color-primary" },
|
|
311
|
+
{ target: "--das-ui-dropdown-hover-color", from: "--upf-bg-secondary" },
|
|
312
|
+
{ target: "--das-ui-spin-logo-1-color", from: "--upf-loading-color-1" },
|
|
313
|
+
{ target: "--das-ui-spin-logo-2-color", from: "--upf-loading-color-2" },
|
|
314
|
+
{ target: "--das-ui-spin-logo-3-color", from: "--upf-loading-color-3" },
|
|
315
|
+
{ target: "--das-ui-spin-logo-4-color", from: "--upf-loading-color-4" },
|
|
316
|
+
{ target: "--das-ui-spin-logo-5-color", from: "--upf-loading-color-5" },
|
|
317
|
+
{ target: "--das-ui-spin-logo-6-color", from: "--upf-loading-color-6" },
|
|
318
|
+
{ target: "--das-ui-special-range-picker-close-btn", from: "--upf-text-disabled" },
|
|
319
|
+
{ target: "--das-ui-special-range-picker-close-btn-hover", from: "--upf-text-secondary" },
|
|
320
|
+
{ target: "--das-ui-special-range-picker-color-primary", from: "--upf-color-primary" },
|
|
321
|
+
{ target: "--das-ui-special-range-picker-color-white", from: "--upf-bg-primary" },
|
|
322
|
+
{ target: "--das-ui-special-range-picker-hover-color", from: "--upf-bg-secondary" },
|
|
323
|
+
{ target: "--das-ui-special-range-picker-border-color", from: "--upf-border-color" },
|
|
324
|
+
{ target: "--das-ui-special-range-picker-header-bgcolor", from: "--upf-bg-secondary" },
|
|
325
|
+
{
|
|
326
|
+
target: "--das-ui-special-range-picker-in-range",
|
|
327
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
328
|
+
o(e, "--upf-color-primary"),
|
|
329
|
+
o(e, "--upf-bg-primary"),
|
|
330
|
+
0.08,
|
|
331
|
+
"#F2F6FF"
|
|
332
|
+
)
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
target: "--das-ui-special-range-picker-new-range",
|
|
336
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
337
|
+
o(e, "--upf-color-primary"),
|
|
338
|
+
o(e, "--upf-bg-primary"),
|
|
339
|
+
0.14,
|
|
340
|
+
"#E3EBFF"
|
|
341
|
+
)
|
|
342
|
+
},
|
|
343
|
+
{ target: "--das-ui-special-range-picker-disabled", from: "--upf-divider-color" },
|
|
344
|
+
{ target: "--das-ui-special-range-picker-error", from: "--upf-color-error" },
|
|
345
|
+
{ target: "--das-ui-special-range-picker-overlay-error-bg-color", from: "--upf-message-error-bg" },
|
|
346
|
+
{ target: "--das-ui-special-range-picker-box-shadow-5", value: "rgb(0 0 0 / 5%)" },
|
|
347
|
+
{ target: "--das-ui-special-range-picker-box-shadow-8", value: "rgb(0 0 0 / 8%)" },
|
|
348
|
+
{ target: "--das-ui-special-range-picker-box-shadow-12", value: "rgb(0 0 0 / 12%)" },
|
|
349
|
+
{ target: "--das-ui-table-checkbox-bg", from: "--upf-color-primary" },
|
|
350
|
+
{ target: "--das-ui-table-checkbox-border-color", from: "--upf-color-primary" },
|
|
351
|
+
{ target: "--das-ui-table-sortable-color", from: "--upf-color-primary" },
|
|
352
|
+
{ target: "--das-ui-table-required-color", from: "--upf-color-error" },
|
|
353
|
+
{ target: "--das-ui-form-error-label-color", from: "--upf-color-error" },
|
|
354
|
+
{ target: "--das-input-base-border-color", from: "--upf-border-color" },
|
|
355
|
+
{ target: "--das-input-active-border-color", from: "--upf-color-primary" },
|
|
356
|
+
{ target: "--das-input-font-color", from: "--upf-text-primary" },
|
|
357
|
+
{ target: "--das-input-sub-font-color", from: "--upf-text-placeholder" },
|
|
358
|
+
{ target: "--das-input-disabled-bg-color", from: "--upf-bg-secondary" },
|
|
359
|
+
{ target: "--das-input-count-color", from: "--upf-text-disabled" },
|
|
360
|
+
{ target: "--das-input-message-font-size", value: "12px" },
|
|
361
|
+
{ target: "--das-ui-scrollbar-thumb-color", from: "--upf-text-disabled" },
|
|
362
|
+
{ target: "--das-ui-scrollbar-thumb-hover-color", from: "--upf-text-secondary" },
|
|
363
|
+
{ target: "--das-ui-scrollbar-padding", value: "1px" },
|
|
364
|
+
{ target: "--das-ui-scrollbar-thumb-size", value: "8px" },
|
|
365
|
+
{ target: "--das-user-manage-white", value: p },
|
|
366
|
+
{ target: "--das-user-manage-shadow-color", value: "rgba(38, 38, 38, 0.1)" },
|
|
367
|
+
{ target: "--das-user-manage-border-color", value: "rgba(38, 38, 38, 0.1)" },
|
|
368
|
+
{ target: "--das-ui-font-size-sm", value: "12px" },
|
|
369
|
+
{ target: "--das-ui-font-size-md", value: "14px" },
|
|
370
|
+
{ target: "--das-ui-font-size-lg", value: "16px" },
|
|
371
|
+
{ target: "--das-upf-ui-font-size-sm", value: "14px" },
|
|
372
|
+
{ target: "--das-upf-ui-line-height", value: "32px" },
|
|
373
|
+
{ target: "--das-ui-text-tooltip-shadow", value: "rgba(0, 0, 0, 0.2)" },
|
|
374
|
+
{ target: "--das-ui-text-tooltip-bgcolor", value: p },
|
|
375
|
+
{ target: "--das-ui-search-form-font-color", from: "--upf-text-primary" },
|
|
376
|
+
{ target: "--das-ui-search-form-filter-font-color", from: "--upf-text-secondary" },
|
|
377
|
+
{ target: "--das-ui-search-form-filter-bgcolor", from: "--upf-bg-secondary" },
|
|
378
|
+
{ target: "--das-ui-search-form-filter-border-color", from: "--upf-border-color" },
|
|
379
|
+
{ target: "--das-ui-select-list-hover-bg", from: "--upf-bg-secondary" },
|
|
380
|
+
{ target: "--das-ui-select-list-close-btn-hover", from: "--upf-color-primary" },
|
|
381
|
+
{ target: "--das-ui-select-list-active-bg-color", from: "--upf-color-primary-bg" },
|
|
382
|
+
{ target: "--das-ui-select-list-active-font-color", from: "--upf-color-primary" },
|
|
383
|
+
{ target: "--das-ui-steps-color", from: "--upf-color-primary" },
|
|
384
|
+
{ target: "--das-ui-steps-dashed-color", from: "--upf-text-disabled" },
|
|
385
|
+
{ target: "--das-ui-steps-wait-color", from: "--upf-text-secondary" },
|
|
386
|
+
{ target: "--das-ui-steps-finish-color", from: "--upf-color-success" },
|
|
387
|
+
{ target: "--das-ui-steps-error-color", from: "--upf-color-error" },
|
|
388
|
+
{ target: "--das-ui-steps-title-font-size", value: "12px" },
|
|
389
|
+
{
|
|
390
|
+
target: "--das-ui-collaspe-bgcolor",
|
|
391
|
+
resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
|
|
392
|
+
},
|
|
393
|
+
{ target: "--das-ui-calendar-color-text", value: "#212121" },
|
|
394
|
+
{ target: "--das-ui-calendar-color-border", value: "#D9D9D9" },
|
|
395
|
+
{ target: "--das-ui-calendar-size-text", value: "14px" },
|
|
396
|
+
{ target: "--das-ui-calendar-color-head-tip", value: "#999999" },
|
|
397
|
+
{ target: "--das-ui-calendar-size-head-tip", value: "12px" },
|
|
398
|
+
{ target: "--das-ui-calendar-span-size", value: "28px" },
|
|
399
|
+
{ target: "--das-ui-calendar-color-pre-next", value: "#B2B2B2" },
|
|
400
|
+
{
|
|
401
|
+
target: "--das-ui-color-primary-level2",
|
|
402
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
403
|
+
o(e, "--upf-color-primary"),
|
|
404
|
+
o(e, "--upf-bg-primary"),
|
|
405
|
+
0.16,
|
|
406
|
+
"#E0EFFE"
|
|
407
|
+
)
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
target: "--das-ui-color-primary-level3",
|
|
411
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
412
|
+
o(e, "--upf-color-primary"),
|
|
413
|
+
o(e, "--upf-bg-primary"),
|
|
414
|
+
0.32,
|
|
415
|
+
"#B3D5FF"
|
|
416
|
+
)
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
target: "--das-ui-color-primary-level4",
|
|
420
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
421
|
+
o(e, "--upf-color-primary"),
|
|
422
|
+
o(e, "--upf-bg-primary"),
|
|
423
|
+
0.48,
|
|
424
|
+
"#85B8FE"
|
|
425
|
+
)
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
target: "--das-ui-color-primary-level5",
|
|
429
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
430
|
+
o(e, "--upf-color-primary"),
|
|
431
|
+
o(e, "--upf-bg-primary"),
|
|
432
|
+
0.68,
|
|
433
|
+
"#5797FF"
|
|
434
|
+
)
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
target: "--das-ui-color-primary-level7",
|
|
438
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.82, "#104CCC")
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
target: "--das-ui-color-primary-level8",
|
|
442
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.68, "#002EA3")
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
target: "--das-ui-color-primary-level9",
|
|
446
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.5, "#001F7A")
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
target: "--das-ui-color-danger-level1",
|
|
450
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
451
|
+
o(e, "--upf-color-error"),
|
|
452
|
+
o(e, "--upf-bg-primary"),
|
|
453
|
+
0.14,
|
|
454
|
+
"#FFDBE0"
|
|
455
|
+
)
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
target: "--das-ui-color-danger-level2",
|
|
459
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
460
|
+
o(e, "--upf-color-error"),
|
|
461
|
+
o(e, "--upf-bg-primary"),
|
|
462
|
+
0.08,
|
|
463
|
+
"#FFF2F4"
|
|
464
|
+
)
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
target: "--das-ui-color-warning-level1",
|
|
468
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
469
|
+
o(e, "--upf-color-warning"),
|
|
470
|
+
o(e, "--upf-bg-primary"),
|
|
471
|
+
0.08,
|
|
472
|
+
"#FFFBF2"
|
|
473
|
+
)
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
target: "--das-ui-color-warning-level2",
|
|
477
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
478
|
+
o(e, "--upf-color-warning"),
|
|
479
|
+
o(e, "--upf-bg-primary"),
|
|
480
|
+
0.16,
|
|
481
|
+
"#FFF1D4"
|
|
482
|
+
)
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
target: "--das-ui-color-success-level1",
|
|
486
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
487
|
+
o(e, "--upf-color-success"),
|
|
488
|
+
o(e, "--upf-bg-primary"),
|
|
489
|
+
0.08,
|
|
490
|
+
"#F2FFF5"
|
|
491
|
+
)
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
target: "--das-ui-color-success-level2",
|
|
495
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
496
|
+
o(e, "--upf-color-success"),
|
|
497
|
+
o(e, "--upf-bg-primary"),
|
|
498
|
+
0.16,
|
|
499
|
+
"#DCFAE4"
|
|
500
|
+
)
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
target: "--das-ui-color-amount",
|
|
504
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
505
|
+
o(e, "--upf-color-warning"),
|
|
506
|
+
o(e, "--upf-color-error"),
|
|
507
|
+
0.55,
|
|
508
|
+
"#FF5F1F"
|
|
509
|
+
)
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
target: "--das-ui-button-primary-hover",
|
|
513
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.82, "#104CCC")
|
|
514
|
+
},
|
|
515
|
+
...n("--upf-color-primary", [
|
|
516
|
+
"--das-ui-search-form-primary-color"
|
|
517
|
+
]),
|
|
518
|
+
...n("--upf-text-primary", [
|
|
519
|
+
"--das-ui-tag-list-text-color"
|
|
520
|
+
]),
|
|
521
|
+
...n("--upf-border-color", [
|
|
522
|
+
"--das-ui-tag-list-border-color",
|
|
523
|
+
"--das-ui-upload-border-color"
|
|
524
|
+
]),
|
|
525
|
+
...n("--upf-bg-secondary", [
|
|
526
|
+
"--das-ui-upload-bgcolor"
|
|
527
|
+
]),
|
|
528
|
+
...n("--upf-text-secondary", [
|
|
529
|
+
"--das-ui-search-form-tip-color"
|
|
530
|
+
]),
|
|
531
|
+
{ target: "--das-ui-layout-header-menu-border-color", from: "--upf-border-color" },
|
|
532
|
+
{ target: "--das-ui-layout-header-menu-background-color", from: "--upf-nav-bg" },
|
|
533
|
+
{ target: "--das-ui-layout-header-menu-color", from: "--upf-nav-text" },
|
|
534
|
+
{ target: "--das-ui-layout-header-menu-hover-background-color", from: "--upf-nav-hover-bg" },
|
|
535
|
+
{ target: "--das-ui-layout-header-menu-hover-color", from: "--upf-nav-active-text" },
|
|
536
|
+
{ target: "--das-ui-layout-header-menu-active-background-color", from: "--upf-nav-active-bg" },
|
|
537
|
+
{ target: "--das-ui-layout-header-menu-active-color", from: "--upf-nav-active-text" },
|
|
538
|
+
{
|
|
539
|
+
target: "--das-ui-layout-header-menu-remove-btn-color",
|
|
540
|
+
resolve: ({ variables: e, toRgbaColor: r }) => r(o(e, "--upf-nav-text"), 0.72, "rgba(170, 170, 172, 0.72)")
|
|
541
|
+
},
|
|
542
|
+
{ target: "--das-ui-layout-header-menu-remove-btn-hover-color", from: "--upf-nav-active-text" },
|
|
543
|
+
{
|
|
544
|
+
target: "--das-ui-layout-header-icon-color",
|
|
545
|
+
resolve: ({ variables: e }) => o(e, "--upf-nav-text") || o(e, "--upf-text-secondary")
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
target: "--das-ui-layout-header-left-box-line",
|
|
549
|
+
resolve: ({ variables: e, toRgbaColor: r }) => r(
|
|
550
|
+
o(e, "--upf-nav-text") || o(e, "--upf-text-secondary"),
|
|
551
|
+
0.28,
|
|
552
|
+
"#CCCCCC"
|
|
553
|
+
)
|
|
554
|
+
},
|
|
555
|
+
{ target: "--das-ui-layout-aside-menu-width", value: "214px" },
|
|
556
|
+
{ target: "--das-ui-layout-aside-collapse-menu-width", value: "50px" },
|
|
557
|
+
{ target: "--das-ui-layout-aside-menu-item-height", value: "50px" },
|
|
558
|
+
{ target: "--das-ui-layout-aside-border-color", from: "--upf-border-color" },
|
|
559
|
+
{ target: "--das-ui-layout-aside-background-color", from: "--upf-menu-bg" },
|
|
560
|
+
{ target: "--das-ui-layout-aside--item-color", from: "--upf-menu-text" },
|
|
561
|
+
{ target: "--das-ui-layout-aside--item-arrow-color", from: "--upf-text-disabled" },
|
|
562
|
+
{ target: "--das-ui-layout-aside--item-active-color", from: "--upf-menu-active-text" },
|
|
563
|
+
{ target: "--das-ui-layout-aside--item-active-background-color", from: "--upf-menu-active-bg" },
|
|
564
|
+
{ target: "--das-ui-layout-aside-item-hover-color", from: "--upf-menu-active-text" },
|
|
565
|
+
{ target: "--das-ui-layout-aside-item-hover-background-color", from: "--upf-menu-hover-bg" },
|
|
566
|
+
{ target: "--das-ui-layout-aside-submenu-title-border-color", from: "--upf-divider-color" },
|
|
567
|
+
{ target: "--das-ui-layout-aside-submenu-vertical-background-color", from: "--upf-menu-submenu-bg" },
|
|
568
|
+
{ target: "--das-ui-layout-aside-submenu-vertical-item-hover-background-color", from: "--upf-menu-hover-bg" },
|
|
569
|
+
{ target: "--das-ui-layout-aside-submenu-background-color", from: "--upf-menu-submenu-bg" },
|
|
570
|
+
{ target: "--das-ui-layout-aside-submenu-item-affix-color", from: "--upf-color-primary" },
|
|
571
|
+
{ target: "--das-ui-layout-aside-submenu-item-color", from: "--upf-menu-text" },
|
|
572
|
+
{ target: "--das-ui-layout-aside-submenu-item-hover-color", from: "--upf-menu-active-text" },
|
|
573
|
+
{ target: "--das-ui-layout-aside-submenu-item-hover-background-color", from: "--upf-menu-hover-bg" },
|
|
574
|
+
{ target: "--das-ui-layout-aside-submenu-item-active-background-color", from: "--upf-menu-active-bg" },
|
|
575
|
+
{ target: "--das-ui-layout-aside-collapse-icon-bg-color", from: "--upf-text-disabled" },
|
|
576
|
+
{ target: "--das-ui-layout-aside-collapse-icon-hover-bg-color", from: "--upf-menu-active-text" },
|
|
577
|
+
{ target: "--das-ui-layout-aside-divise-border-color", from: "--upf-divider-color" },
|
|
578
|
+
{ target: "--das-ui-layout-aside-menu-expired-color", from: "--upf-text-disabled" },
|
|
579
|
+
{ target: "--das-ui-layout-aside-menu-top-left-icon-color", from: "--upf-color-primary" },
|
|
580
|
+
{ target: "--das-ui-layout-aside-menu-top-right-icon-color", from: "--upf-text-secondary" }
|
|
581
|
+
], me = [
|
|
582
|
+
// 同源变量集中维护,新增 target 时优先追加到对应 source 分组。
|
|
583
|
+
...n("--upf-color-primary", [
|
|
584
|
+
"--upf-button-primary",
|
|
585
|
+
"--upf-notification-primary-bg"
|
|
586
|
+
]),
|
|
587
|
+
...n("--upf-text-primary", [
|
|
588
|
+
"--upf-button-default-text",
|
|
589
|
+
"--upf-notification-title-text",
|
|
590
|
+
"--upf-text-tooltip-text"
|
|
591
|
+
]),
|
|
592
|
+
...n("--upf-border-color", [
|
|
593
|
+
"--upf-button-default-border",
|
|
594
|
+
"--upf-text-tooltip-border"
|
|
595
|
+
]),
|
|
596
|
+
...n("--upf-text-disabled", [
|
|
597
|
+
"--upf-button-default-disabled",
|
|
598
|
+
"--upf-switch-off-color",
|
|
599
|
+
"--upf-message-thumb",
|
|
600
|
+
"--upf-text-tooltip-scrollbar-thumb"
|
|
601
|
+
]),
|
|
602
|
+
...n("--upf-bg-secondary", [
|
|
603
|
+
"--upf-button-default-disabled-bg",
|
|
604
|
+
"--upf-table-header-bg"
|
|
605
|
+
]),
|
|
606
|
+
...n("--upf-bg-primary", ["--upf-checkbox-filter-bg"]),
|
|
607
|
+
...n("--upf-color-info", ["--upf-loading-color-1"]),
|
|
608
|
+
...n("--upf-brand-secondary", ["--upf-loading-color-2"]),
|
|
609
|
+
...n("--upf-color-success", ["--upf-loading-color-3"]),
|
|
610
|
+
...n("--upf-divider-color", ["--upf-loading-color-6"]),
|
|
611
|
+
...n("--upf-text-secondary", [
|
|
612
|
+
"--upf-message-close",
|
|
613
|
+
"--upf-notification-description-text",
|
|
614
|
+
"--upf-notification-close",
|
|
615
|
+
"--upf-text-tooltip-scrollbar-thumb-hover"
|
|
616
|
+
]),
|
|
617
|
+
{ target: "--upf-button-primary-text", value: p },
|
|
618
|
+
{ target: "--upf-button-primary-text-disabled", value: "rgba(255, 255, 255, 1)" },
|
|
619
|
+
{ target: "--upf-dialog-basic-header-height", value: "50px" },
|
|
620
|
+
{ target: "--upf-dialog-basic-content-padding", value: "30px" },
|
|
621
|
+
{ target: "--upf-dialog-feedback-header-height", value: "60px" },
|
|
622
|
+
{ target: "--upf-dialog-feedback-icon-width", value: "168px" },
|
|
623
|
+
{ target: "--upf-dialog-feedback-icon-height", value: "96px" },
|
|
624
|
+
{ target: "--upf-dialog-feedback-content-font-size", value: "16px" },
|
|
625
|
+
{ target: "--upf-dialog-feedback-content-padding", value: "48px" },
|
|
626
|
+
{ target: "--upf-dialog-notice-content-font-size", value: "14px" },
|
|
627
|
+
{ target: "--upf-dialog-notice-content-padding", value: "24px" },
|
|
628
|
+
{ target: "--upf-table-header-padding-top", value: "4px" },
|
|
629
|
+
{ target: "--upf-table-header-padding-bottom", value: "4px" },
|
|
630
|
+
{ target: "--upf-message-font-size-sm", value: "12px" },
|
|
631
|
+
{ target: "--upf-message-font-size-md", value: "14px" },
|
|
632
|
+
{ target: "--upf-message-font-size-lg", value: "16px" },
|
|
633
|
+
{ target: "--upf-notification-font-size-sm", value: "12px" },
|
|
634
|
+
{ target: "--upf-notification-font-size-md", value: "14px" },
|
|
635
|
+
{ target: "--upf-notification-font-size-lg", value: "16px" },
|
|
636
|
+
{ target: "--upf-notification-primary-text", value: p },
|
|
637
|
+
{ target: "--upf-text-tooltip-scrollbar-padding", value: "1px" },
|
|
638
|
+
{
|
|
639
|
+
target: "--upf-button-primary-hover",
|
|
640
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", p, 0.82, "#87A9FF")
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
target: "--upf-button-active",
|
|
644
|
+
resolve: ({ variables: e, mixHexColor: r }) => V(o(e, "--upf-color-primary"), r)
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
target: "--upf-button-disabled",
|
|
648
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", p, 0.3, "#B5CAFF")
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
target: "--upf-button-set",
|
|
652
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", d, 0.78, "#4367C1")
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
target: "--upf-button-set-hover",
|
|
656
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", d, 0.86, "#4C74DA")
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
target: "--upf-button-set-active",
|
|
660
|
+
resolve: ({ variables: e, mixHexColor: r }) => V(o(e, "--upf-color-primary"), r)
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
target: "--upf-button-set-disabled",
|
|
664
|
+
resolve: ({ variables: e, mixHexColor: r, result: t }) => r(
|
|
665
|
+
t["--upf-button-set"] || o(e, "--upf-color-primary") || "#5582F3",
|
|
666
|
+
o(e, "--upf-bg-primary"),
|
|
667
|
+
0.55,
|
|
668
|
+
"#95A4C8"
|
|
669
|
+
)
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
target: "--upf-switch-on-color-disabled",
|
|
673
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), p, 0.32, "#B5CAFF")
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
target: "--upf-checkbox-focus-shadow",
|
|
677
|
+
resolve: ({ variables: e, toRgbaColor: r }) => r(
|
|
678
|
+
o(e, "--upf-color-primary") || "#5582F3",
|
|
679
|
+
0.1,
|
|
680
|
+
"rgba(85, 130, 243, 0.1)"
|
|
681
|
+
)
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
target: "--upf-checkbox-overlay-error-bg",
|
|
685
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
686
|
+
o(e, "--upf-color-error"),
|
|
687
|
+
o(e, "--upf-bg-primary"),
|
|
688
|
+
0.14,
|
|
689
|
+
"#FFDBE0"
|
|
690
|
+
)
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
target: "--upf-loading-color-4",
|
|
694
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
695
|
+
o(e, "--upf-brand-secondary"),
|
|
696
|
+
o(e, "--upf-color-primary"),
|
|
697
|
+
0.45,
|
|
698
|
+
"#A06EFF"
|
|
699
|
+
)
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
target: "--upf-loading-color-5",
|
|
703
|
+
resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
|
|
704
|
+
},
|
|
705
|
+
{ target: "--upf-table-row-hover-bg", from: "--upf-bg-secondary" },
|
|
706
|
+
{
|
|
707
|
+
target: "--upf-table-row-active-bg",
|
|
708
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
709
|
+
o(e, "--upf-color-primary"),
|
|
710
|
+
o(e, "--upf-bg-primary"),
|
|
711
|
+
0.08,
|
|
712
|
+
"#F2F6FF"
|
|
713
|
+
)
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
target: "--upf-table-row-active-hover-bg",
|
|
717
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
718
|
+
o(e, "--upf-color-primary"),
|
|
719
|
+
o(e, "--upf-bg-primary"),
|
|
720
|
+
0.14,
|
|
721
|
+
"#E3EBFF"
|
|
722
|
+
)
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
target: "--upf-table-summary-row-color",
|
|
726
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
727
|
+
o(e, "--upf-color-warning"),
|
|
728
|
+
o(e, "--upf-color-error"),
|
|
729
|
+
0.55,
|
|
730
|
+
"#FF5F1F"
|
|
731
|
+
)
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
target: "--upf-table-summary-row-bg",
|
|
735
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
736
|
+
o(e, "--upf-color-warning"),
|
|
737
|
+
o(e, "--upf-bg-primary"),
|
|
738
|
+
0.18,
|
|
739
|
+
"#FFF1D4"
|
|
740
|
+
)
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
target: "--upf-message-bg",
|
|
744
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
745
|
+
o(e, "--upf-color-info"),
|
|
746
|
+
o(e, "--upf-bg-primary"),
|
|
747
|
+
0.14,
|
|
748
|
+
"#E0EFFF"
|
|
749
|
+
)
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
target: "--upf-message-text",
|
|
753
|
+
resolve: ({ variables: e }) => o(e, "--upf-color-info") || o(e, "--upf-color-primary") || "#0E5FD8"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
target: "--upf-message-border",
|
|
757
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
758
|
+
o(e, "--upf-color-info"),
|
|
759
|
+
o(e, "--upf-bg-primary"),
|
|
760
|
+
0.32,
|
|
761
|
+
"#B3D5FF"
|
|
762
|
+
)
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
target: "--upf-message-close-hover",
|
|
766
|
+
resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
target: "--upf-message-success-bg",
|
|
770
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
771
|
+
o(e, "--upf-color-success"),
|
|
772
|
+
o(e, "--upf-bg-primary"),
|
|
773
|
+
0.16,
|
|
774
|
+
"#DCFAE4"
|
|
775
|
+
)
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
target: "--upf-message-success-text",
|
|
779
|
+
resolve: ({ variables: e }) => o(e, "--upf-color-success") || "#1BA854"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
target: "--upf-message-success-border",
|
|
783
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
784
|
+
o(e, "--upf-color-success"),
|
|
785
|
+
o(e, "--upf-bg-primary"),
|
|
786
|
+
0.32,
|
|
787
|
+
"#A1E6B5"
|
|
788
|
+
)
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
target: "--upf-message-info-bg",
|
|
792
|
+
resolve: ({ result: e }) => e["--upf-message-bg"] || "#E0EFFF"
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
target: "--upf-message-info-text",
|
|
796
|
+
resolve: ({ result: e }) => e["--upf-message-text"] || "#0E5FD8"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
target: "--upf-message-info-border",
|
|
800
|
+
resolve: ({ result: e }) => e["--upf-message-border"] || "#B3D5FF"
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
target: "--upf-message-warning-bg",
|
|
804
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
805
|
+
o(e, "--upf-color-warning"),
|
|
806
|
+
o(e, "--upf-bg-primary"),
|
|
807
|
+
0.16,
|
|
808
|
+
"#FFF1D4"
|
|
809
|
+
)
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
target: "--upf-message-warning-text",
|
|
813
|
+
resolve: ({ variables: e }) => o(e, "--upf-color-warning") || "#FF991C"
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
target: "--upf-message-warning-border",
|
|
817
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
818
|
+
o(e, "--upf-color-warning"),
|
|
819
|
+
o(e, "--upf-bg-primary"),
|
|
820
|
+
0.32,
|
|
821
|
+
"#FFE0A6"
|
|
822
|
+
)
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
target: "--upf-message-error-bg",
|
|
826
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
827
|
+
o(e, "--upf-color-error"),
|
|
828
|
+
o(e, "--upf-bg-primary"),
|
|
829
|
+
0.14,
|
|
830
|
+
"#FFDBE0"
|
|
831
|
+
)
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
target: "--upf-message-error-text",
|
|
835
|
+
resolve: ({ variables: e }) => o(e, "--upf-color-error") || "#FB2323"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
target: "--upf-message-error-border",
|
|
839
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
840
|
+
o(e, "--upf-color-error"),
|
|
841
|
+
o(e, "--upf-bg-primary"),
|
|
842
|
+
0.32,
|
|
843
|
+
"#FFADB6"
|
|
844
|
+
)
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
target: "--upf-notification-bg",
|
|
848
|
+
resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
target: "--upf-notification-close-hover",
|
|
852
|
+
resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
target: "--upf-text-tooltip-bg",
|
|
856
|
+
resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
target: "--upf-text-tooltip-shadow-color",
|
|
860
|
+
resolve: ({ toRgbaColor: e }) => e("#262626", 0.16, "rgba(38, 38, 38, 0.16)")
|
|
861
|
+
},
|
|
862
|
+
{ target: "--upf-app-container-app-bg-override", from: "--upf-nav-bg" },
|
|
863
|
+
{ target: "--upf-app-container-app-text-override", from: "--upf-nav-text" }
|
|
864
|
+
], ge = (e) => E(e, ce), be = (e) => E(e, pe), xe = (e) => E(e, de), ve = (e) => E(e, me), O = (e, r = {}) => {
|
|
865
|
+
const t = h(e), { includeElementAndDasUiBridges: a = !0 } = r, u = ve(t), f = {
|
|
866
|
+
...t,
|
|
867
|
+
...u
|
|
868
|
+
};
|
|
869
|
+
return {
|
|
870
|
+
...t,
|
|
871
|
+
...u,
|
|
872
|
+
...a ? be(f) : {},
|
|
873
|
+
...a ? xe(f) : {},
|
|
874
|
+
...ge(f)
|
|
875
|
+
};
|
|
876
|
+
}, Le = (e) => y(e), Ue = () => ue(), H = () => y("default"), ze = () => ({ ...H().variables }), B = (e) => e || (typeof document > "u" ? null : document.documentElement), L = (e) => !!(e && String(e.tagName || "").toLowerCase() === "style"), C = (e) => e.head || e.documentElement, U = (e, r) => {
|
|
877
|
+
const t = C(e);
|
|
878
|
+
t && (r.parentNode !== t || t.lastElementChild !== r) && t.appendChild(r);
|
|
879
|
+
}, M = (e) => {
|
|
880
|
+
var u;
|
|
881
|
+
if (N.has(e))
|
|
882
|
+
return;
|
|
883
|
+
const r = C(e), t = ((u = e.defaultView) == null ? void 0 : u.MutationObserver) || (typeof MutationObserver < "u" ? MutationObserver : void 0);
|
|
884
|
+
if (!r || !t)
|
|
885
|
+
return;
|
|
886
|
+
new t(() => {
|
|
887
|
+
const f = e.getElementById(v);
|
|
888
|
+
L(f) && U(e, f);
|
|
889
|
+
}).observe(r, { childList: !0 }), N.add(e);
|
|
890
|
+
}, ye = (e) => {
|
|
891
|
+
const r = e.getElementById(v);
|
|
892
|
+
if (L(r))
|
|
893
|
+
return U(e, r), M(e), r;
|
|
894
|
+
const t = e.createElement("style");
|
|
895
|
+
return t.id = v, C(e).appendChild(t), M(e), t;
|
|
896
|
+
}, z = (e) => {
|
|
897
|
+
const r = Object.entries(e).filter(([, t]) => String(t ?? "").trim()).map(([t, a]) => ` ${t}: ${String(a ?? "")};`).join(`
|
|
898
|
+
`);
|
|
899
|
+
return r ? `:root {
|
|
900
|
+
${r}
|
|
901
|
+
}` : ":root {}";
|
|
902
|
+
}, $ = (e = "default", r = {}) => {
|
|
903
|
+
const t = y(e) || H();
|
|
904
|
+
return z(O(t.variables, r));
|
|
905
|
+
}, $e = (e = {}) => $("default", e), he = (e) => {
|
|
906
|
+
const r = e.getElementById(v);
|
|
907
|
+
if (r != null && r.textContent)
|
|
908
|
+
return !0;
|
|
909
|
+
const t = b.get(e) || b.get(e.documentElement);
|
|
910
|
+
return !!(t && Object.keys(t).length);
|
|
911
|
+
}, Ee = (e) => {
|
|
912
|
+
var a;
|
|
913
|
+
const r = ((a = e.defaultView) == null ? void 0 : a.getComputedStyle) || (typeof getComputedStyle == "function" ? getComputedStyle : void 0);
|
|
914
|
+
if (!r || !e.documentElement)
|
|
915
|
+
return !1;
|
|
916
|
+
const t = r(e.documentElement);
|
|
917
|
+
return le.some((u) => t.getPropertyValue(u).trim());
|
|
918
|
+
}, Ce = (e, r) => {
|
|
919
|
+
const t = C(e);
|
|
920
|
+
(r.parentNode !== t || t.firstChild !== r) && t.insertBefore(r, t.firstChild);
|
|
921
|
+
}, je = (e = {}) => {
|
|
922
|
+
var i;
|
|
923
|
+
if (typeof document > "u")
|
|
924
|
+
return null;
|
|
925
|
+
const r = ((i = e.root) == null ? void 0 : i.ownerDocument) || document, t = y(e.presetName || "default") || H(), a = e.styleId || fe;
|
|
926
|
+
if (!e.force && he(r))
|
|
927
|
+
return null;
|
|
928
|
+
const u = r.getElementById(a);
|
|
929
|
+
if (!e.force && !u && Ee(r))
|
|
930
|
+
return null;
|
|
931
|
+
const f = u || r.createElement("style");
|
|
932
|
+
f.id || (f.id = a);
|
|
933
|
+
const l = $(t.name, {
|
|
934
|
+
includeElementAndDasUiBridges: e.includeElementAndDasUiBridges
|
|
935
|
+
});
|
|
936
|
+
f.textContent !== l && (f.textContent = l), Ce(r, f);
|
|
937
|
+
const { setThemeAttributes: s = !0 } = e;
|
|
938
|
+
return s && ((e.themeName || !r.documentElement.getAttribute("data-theme")) && r.documentElement.setAttribute("data-theme", e.themeName || t.name), e.skinName !== null && !r.documentElement.getAttribute("data-skin") && r.documentElement.setAttribute("data-skin", e.skinName || t.basePresetName)), f;
|
|
939
|
+
}, R = (e, r) => {
|
|
940
|
+
if (!e.length || !r.length)
|
|
941
|
+
return;
|
|
942
|
+
const t = new Set(r);
|
|
943
|
+
for (let a = e.length - 1; a >= 0; a--) {
|
|
944
|
+
const u = e[a];
|
|
945
|
+
t.has(u) && e.removeProperty(u);
|
|
946
|
+
}
|
|
947
|
+
}, Te = (e, r) => {
|
|
948
|
+
const t = ye(e), a = z(r);
|
|
949
|
+
(D.get(e) !== a || t.textContent !== a) && (t.textContent = a, D.set(e, a));
|
|
950
|
+
const u = Object.keys(r);
|
|
951
|
+
R(e.documentElement.style, u), e.body && R(e.body.style, u);
|
|
952
|
+
}, Fe = (e) => {
|
|
953
|
+
typeof window > "u" || (window.__UPF_THEME_SNAPSHOT__ = e);
|
|
954
|
+
}, we = (e, r) => {
|
|
955
|
+
const t = x(r) || {}, a = e.ownerDocument || document;
|
|
956
|
+
b.set(e, t);
|
|
957
|
+
const u = e === a.documentElement || e === a.body;
|
|
958
|
+
u && b.set(a, t), u && typeof window < "u" && a === document && (window.__UPF_THEME_RUNTIME_VARIABLES__ = t);
|
|
959
|
+
}, Se = (e) => {
|
|
960
|
+
const r = B(e), t = (r == null ? void 0 : r.ownerDocument) || (typeof document < "u" ? document : null), a = typeof window < "u" && t === document && window.__UPF_THEME_RUNTIME_VARIABLES__ || null;
|
|
961
|
+
return (r ? b.get(r) : null) || (t ? b.get(t) : null) || a;
|
|
962
|
+
}, _e = (e = !0) => {
|
|
963
|
+
var r;
|
|
964
|
+
if (typeof window > "u" || !window.name)
|
|
965
|
+
return null;
|
|
966
|
+
try {
|
|
967
|
+
const t = JSON.parse(window.name), a = (r = t == null ? void 0 : t.parentData) == null ? void 0 : r.theme;
|
|
968
|
+
return !(a != null && a.variables) || typeof a.variables != "object" ? null : {
|
|
969
|
+
themeName: String(a.themeName || ""),
|
|
970
|
+
config: a.config || null,
|
|
971
|
+
variables: a.variables,
|
|
972
|
+
timestamp: Number(a.timestamp) || Date.now()
|
|
973
|
+
};
|
|
974
|
+
} catch {
|
|
975
|
+
return null;
|
|
976
|
+
}
|
|
977
|
+
}, ke = (e, r) => {
|
|
978
|
+
if (r !== void 0)
|
|
979
|
+
return r;
|
|
980
|
+
const t = e.config || {};
|
|
981
|
+
return String(t.basePresetName || t.name || e.themeName || "").trim() || null;
|
|
982
|
+
}, He = (e, r = {}) => {
|
|
983
|
+
const t = B(r.root);
|
|
984
|
+
if (!t)
|
|
985
|
+
return {};
|
|
986
|
+
const a = h(e), u = r.includeBridges === !1 ? Object.entries(a).reduce((l, [s, i]) => (l[s] = String(i ?? ""), l), {}) : O(a, {
|
|
987
|
+
includeElementAndDasUiBridges: r.includeElementAndDasUiBridges
|
|
988
|
+
}), f = t.ownerDocument || document;
|
|
989
|
+
return t === f.documentElement || t === f.body ? Te(f, u) : Object.entries(u).forEach(([l, s]) => {
|
|
990
|
+
t.style.getPropertyValue(l) !== s && t.style.setProperty(l, s);
|
|
991
|
+
}), we(t, u), r.themeName && t.setAttribute("data-theme", r.themeName), r.skinName === null ? t.removeAttribute("data-skin") : r.skinName && t.setAttribute("data-skin", r.skinName), u;
|
|
992
|
+
}, j = (e, r = {}) => {
|
|
993
|
+
const t = He(e.variables || {}, {
|
|
994
|
+
...r,
|
|
995
|
+
themeName: r.themeName || e.themeName,
|
|
996
|
+
skinName: ke(e, r.skinName)
|
|
997
|
+
});
|
|
998
|
+
return Fe(e), t;
|
|
999
|
+
}, S = (e, r, t = !0) => {
|
|
1000
|
+
try {
|
|
1001
|
+
return e && e.__THEME_API__ || null;
|
|
1002
|
+
} catch {
|
|
1003
|
+
return null;
|
|
1004
|
+
}
|
|
1005
|
+
}, T = (e = !0) => typeof window > "u" ? null : S(window, "current", e) || S(window.parent, "parent", e) || S(window.top, "top", e), W = (e = {}) => {
|
|
1006
|
+
const r = T(e.debug), t = r != null && r.getCurrentTheme ? r.getCurrentTheme() : null;
|
|
1007
|
+
if (t)
|
|
1008
|
+
return t;
|
|
1009
|
+
const a = (typeof window < "u" ? window.__UPF_THEME_SNAPSHOT__ : null) || null;
|
|
1010
|
+
return a || _e(e.debug);
|
|
1011
|
+
}, Be = (e = {}) => {
|
|
1012
|
+
const r = Se(e.root);
|
|
1013
|
+
if (r)
|
|
1014
|
+
return x(r);
|
|
1015
|
+
const t = W(e);
|
|
1016
|
+
if (t != null && t.variables)
|
|
1017
|
+
return x(t.variables);
|
|
1018
|
+
const a = T(e.debug);
|
|
1019
|
+
if (!a)
|
|
1020
|
+
return null;
|
|
1021
|
+
const u = a.getVariables ? a.getVariables() : null;
|
|
1022
|
+
return x(u);
|
|
1023
|
+
}, We = (e, r = !0) => {
|
|
1024
|
+
const t = T(r);
|
|
1025
|
+
return t != null && t.changeTheme ? (t.changeTheme(e), !0) : !1;
|
|
1026
|
+
}, G = (e = {}) => {
|
|
1027
|
+
const r = W(e);
|
|
1028
|
+
return r ? (j(r, e), r) : (e.debug, null);
|
|
1029
|
+
}, Ge = (e = {}) => G({
|
|
1030
|
+
includeBridges: !1,
|
|
1031
|
+
includeElementAndDasUiBridges: !1,
|
|
1032
|
+
...e
|
|
1033
|
+
}), Ae = (e, r = !0) => {
|
|
1034
|
+
try {
|
|
1035
|
+
const t = q("microApp");
|
|
1036
|
+
return t.event.on(A, e), () => {
|
|
1037
|
+
t.event.off(A, e);
|
|
1038
|
+
};
|
|
1039
|
+
} catch {
|
|
1040
|
+
return null;
|
|
1041
|
+
}
|
|
1042
|
+
}, De = (e, r) => e != null && e.onThemeChange ? e.onThemeChange(r) : null, Ne = (e) => e ? [String(e.themeName || ""), String(e.source || ""), String(Number(e.timestamp) || 0)].join("|") : "", Ve = (e) => {
|
|
1043
|
+
let r = "";
|
|
1044
|
+
return (t) => {
|
|
1045
|
+
const a = Ne(t);
|
|
1046
|
+
a && a === r || (r = a, e(t));
|
|
1047
|
+
};
|
|
1048
|
+
}, Me = (e, r, t = !1, a = !0) => {
|
|
1049
|
+
const u = Ve(r), f = De(e, u), l = Ae(u, a), i = (t ? [f, l] : [l, f]).filter(Boolean);
|
|
1050
|
+
return i.length ? () => {
|
|
1051
|
+
i.forEach((c) => c());
|
|
1052
|
+
} : null;
|
|
1053
|
+
}, Re = (e = {}) => {
|
|
1054
|
+
const { syncOnInit: r = !0, preferWindowSubscription: t = !1, onThemeChange: a, debug: u = !0, ...f } = e, l = T(u);
|
|
1055
|
+
let s = !1, i = null, c = null;
|
|
1056
|
+
const m = () => {
|
|
1057
|
+
s || G({ ...f, debug: u });
|
|
1058
|
+
}, F = Me(l, (g) => {
|
|
1059
|
+
j(g, f), a && (g == null ? void 0 : g.source) !== "mountSync" && a(g);
|
|
1060
|
+
}, t, u);
|
|
1061
|
+
return r && (m(), (typeof queueMicrotask == "function" ? queueMicrotask : (K) => Promise.resolve().then(K))(m), typeof requestAnimationFrame == "function" ? i = requestAnimationFrame(() => {
|
|
1062
|
+
i = null, m();
|
|
1063
|
+
}) : c = setTimeout(() => {
|
|
1064
|
+
c = null, m();
|
|
1065
|
+
}, 16)), () => {
|
|
1066
|
+
s = !0, i !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(i), i = null), c !== null && (clearTimeout(c), c = null), F == null || F();
|
|
1067
|
+
};
|
|
1068
|
+
}, Ke = (e = {}) => Re({
|
|
1069
|
+
includeBridges: !1,
|
|
1070
|
+
includeElementAndDasUiBridges: !1,
|
|
1071
|
+
...e
|
|
1072
|
+
}), Ie = (e, r) => {
|
|
1073
|
+
var f;
|
|
1074
|
+
const t = B(r), a = String(e || "").trim();
|
|
1075
|
+
if (!t || !a)
|
|
1076
|
+
return "";
|
|
1077
|
+
const u = typeof getComputedStyle > "u" ? "" : getComputedStyle(t).getPropertyValue(a).trim();
|
|
1078
|
+
return u || String(((f = Be({ root: t, debug: !1 })) == null ? void 0 : f[a]) ?? "");
|
|
1079
|
+
}, qe = (e) => `var(${String(e || "").trim()})`, Je = (e, r) => ({
|
|
1080
|
+
value: Ie(String(e || "").trim(), r)
|
|
1081
|
+
});
|
|
1082
|
+
export {
|
|
1083
|
+
oe as BUILTIN_PRESET_THEME_NAMES,
|
|
1084
|
+
de as DAS_UI_THEME_BRIDGE_ITEMS,
|
|
1085
|
+
pe as ELEMENT_THEME_BRIDGE_ITEMS,
|
|
1086
|
+
ce as LEGACY_THEME_BRIDGE_ITEMS,
|
|
1087
|
+
_ as PRESET_THEMES,
|
|
1088
|
+
me as UPF_COMPONENT_THEME_BRIDGE_ITEMS,
|
|
1089
|
+
j as applyThemeEventToDocument,
|
|
1090
|
+
He as applyThemeVariablesToDocument,
|
|
1091
|
+
$e as buildDefaultThemeCssText,
|
|
1092
|
+
$ as buildPresetThemeCssText,
|
|
1093
|
+
O as buildRuntimeThemeVariables,
|
|
1094
|
+
We as changeTheme,
|
|
1095
|
+
je as ensureDefaultThemeStyle,
|
|
1096
|
+
Ue as getAllPresetThemes,
|
|
1097
|
+
W as getCurrentTheme,
|
|
1098
|
+
H as getDefaultPresetTheme,
|
|
1099
|
+
ze as getDefaultThemeVariables,
|
|
1100
|
+
_e as getHostThemeSnapshotFromWindowName,
|
|
1101
|
+
Le as getPresetTheme,
|
|
1102
|
+
T as getThemeAPI,
|
|
1103
|
+
Ie as getThemeVariable,
|
|
1104
|
+
Be as getThemeVariables,
|
|
1105
|
+
qe as getVar,
|
|
1106
|
+
Je as getVarValue,
|
|
1107
|
+
Ke as initHostThemeRootSync,
|
|
1108
|
+
Re as initSubAppThemeSync,
|
|
1109
|
+
ne as mixHexColor,
|
|
1110
|
+
E as resolveThemeBridgeVariables,
|
|
1111
|
+
Ge as syncHostThemeRoot,
|
|
1112
|
+
G as syncThemeFromHost,
|
|
1113
|
+
xe as toDasUiColorOverrides,
|
|
1114
|
+
be as toElementThemeVariables,
|
|
1115
|
+
ge as toLegacyThemeVariables,
|
|
1116
|
+
ie as toRgbaColor,
|
|
1117
|
+
ve as toUpfComponentThemeVariables
|
|
1118
|
+
};
|