@das-fed/upf-utils 6.4.0-dev.243 → 6.4.0-dev.245
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-services/es5.js +952 -938
- package/api-services/index.js +732 -723
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +690 -676
- package/api-services/modules/app-manage/index.js +540 -531
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +690 -676
- package/api-services/modules/authentication/index.js +540 -531
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +705 -691
- package/api-services/modules/bems/index.js +555 -546
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +926 -909
- package/api-services/modules/contract/index.js +732 -719
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +708 -694
- package/api-services/modules/duty-manage/index.js +559 -550
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1160 -1137
- package/api-services/modules/enterpriseright/index.js +969 -946
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1453 -1451
- package/api-services/modules/file/es5.js +1349 -1347
- package/api-services/modules/file/index.js +1101 -1110
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +690 -676
- package/api-services/modules/gateway-edge/index.js +540 -531
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1137 -1146
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1155 -1153
- package/api-services/modules/iot/index.js +947 -956
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1115 -1110
- package/api-services/modules/justauth/index.js +917 -922
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1091 -1065
- package/api-services/modules/knowledge/index.js +919 -892
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +690 -676
- package/api-services/modules/link/index.js +540 -531
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +737 -723
- package/api-services/modules/permission/index.js +581 -572
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +755 -741
- package/api-services/modules/platformManage/index.js +590 -581
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +737 -723
- package/api-services/modules/portal/index.js +581 -572
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1091 -1065
- package/api-services/modules/space-manage/index.js +919 -892
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +614 -603
- package/api-services/modules/super-admin/index.js +490 -485
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +1058 -1032
- package/api-services/modules/supplier/index.js +898 -871
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +737 -723
- package/api-services/modules/supplychain-manage/index.js +581 -572
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +1116 -1111
- package/api-services/modules/systemConfiguration/index.js +917 -922
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +579 -568
- package/api-services/modules/tool/index.js +475 -470
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1160 -1137
- package/api-services/src/create-service/index.js +969 -946
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +734 -720
- package/common-info/getPermissionMethod/es5.js +705 -691
- package/common-info/getPermissionMethod/index.js +544 -535
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +569 -560
- package/common-info/index.js.gz +0 -0
- package/common-tools/timezone-format/es5.d.ts +107 -3
- package/common-tools/timezone-format/es5.js +751 -101
- 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 +107 -3
- package/common-tools/timezone-format/index.js +392 -62
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/create-api-service/es5.js +736 -722
- package/create-api-service/index.js +581 -572
- package/create-api-service/index.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.d.ts +29 -0
- package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.js +19868 -0
- package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/index.d.ts +55 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/index.js +116 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/index.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-event-listener.d.ts +104 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-event-listener.js +17 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.d.ts +8 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.js +51 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/create-canvas.d.ts +5 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/create-canvas.js +14 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.d.ts +7 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.js +5 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.d.ts +5 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.js +180 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.d.ts +4 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.js +7535 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/load-json.d.ts +6 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/load-json.js +13 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.d.ts +6 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.js +7 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.d.ts +8 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.js +193 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.d.ts +11 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.js +20 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.d.ts +5 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.js +52 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/wheel-zoom.d.ts +4 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/wheel-zoom.js +14 -0
- package/dimple-canvas/use-dimple-canvas/es5.d.ts +9 -0
- package/dimple-canvas/use-dimple-canvas/es5.js +20 -0
- package/dimple-canvas/use-dimple-canvas/index.d.ts +9 -0
- package/dimple-canvas/use-dimple-canvas/index.js +10 -0
- package/esm-map.json +33 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +3 -3
- package/theme/es5.d.ts +20 -1
- package/theme/es5.js +614 -303
- package/theme/index.d.ts +20 -1
- package/theme/index.js +523 -276
- package/theme/index.js.gz +0 -0
package/theme/index.js
CHANGED
|
@@ -1,42 +1,233 @@
|
|
|
1
|
-
import { bus as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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) => {
|
|
6
191
|
const r = String(e || "").trim();
|
|
7
|
-
return
|
|
8
|
-
},
|
|
9
|
-
const
|
|
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);
|
|
10
201
|
if (!r)
|
|
11
202
|
return null;
|
|
12
|
-
const
|
|
203
|
+
const t = r.slice(1);
|
|
13
204
|
return {
|
|
14
|
-
red: Number.parseInt(
|
|
15
|
-
green: Number.parseInt(
|
|
16
|
-
blue: Number.parseInt(
|
|
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)
|
|
17
208
|
};
|
|
18
|
-
},
|
|
19
|
-
const u =
|
|
20
|
-
if (!u || !
|
|
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)
|
|
21
212
|
return a;
|
|
22
|
-
const
|
|
23
|
-
return `#${[
|
|
24
|
-
},
|
|
25
|
-
const 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);
|
|
26
217
|
if (!a)
|
|
27
|
-
return
|
|
218
|
+
return t;
|
|
28
219
|
const u = Math.min(1, Math.max(0, r));
|
|
29
220
|
return `rgba(${a.red}, ${a.green}, ${a.blue}, ${u})`;
|
|
30
|
-
},
|
|
221
|
+
}, se = {
|
|
31
222
|
"#5582f3": "#3761CA",
|
|
32
223
|
"#e63946": "#C9303C"
|
|
33
|
-
},
|
|
34
|
-
const
|
|
35
|
-
return
|
|
36
|
-
},
|
|
37
|
-
const u = a.resolve ? a.resolve({ variables: e, result:
|
|
38
|
-
return
|
|
39
|
-
}, {}),
|
|
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 = [
|
|
40
231
|
{ target: "--upf-primary", from: "--upf-color-primary" },
|
|
41
232
|
{ target: "--upf-text", from: "--upf-text-primary" },
|
|
42
233
|
{ target: "--upf-surface", from: "--upf-bg-primary" },
|
|
@@ -46,7 +237,7 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
46
237
|
{ target: "--upf-menu-item-hover-bg", from: "--upf-menu-hover-bg" },
|
|
47
238
|
{ target: "--upf-menu-item-active-bg", from: "--upf-menu-active-bg" },
|
|
48
239
|
{ target: "--upf-menu-item-active-text", from: "--upf-menu-active-text" }
|
|
49
|
-
],
|
|
240
|
+
], pe = [
|
|
50
241
|
{ target: "--el-color-primary", from: "--upf-color-primary" },
|
|
51
242
|
{ target: "--el-color-success", from: "--upf-color-success" },
|
|
52
243
|
{ target: "--el-color-warning", from: "--upf-color-warning" },
|
|
@@ -74,18 +265,18 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
74
265
|
{ target: "--el-checkbox-font-weight", value: "400" },
|
|
75
266
|
{ target: "--el-checkbox-input-width", value: "14px" },
|
|
76
267
|
{ target: "--el-checkbox-input-height", value: "14px" },
|
|
77
|
-
{ target: "--el-checkbox-checked-icon-color", value:
|
|
268
|
+
{ target: "--el-checkbox-checked-icon-color", value: p },
|
|
78
269
|
{
|
|
79
270
|
target: "--el-checkbox-input-border",
|
|
80
|
-
resolve: ({ variables: e }) => `1px solid ${
|
|
271
|
+
resolve: ({ variables: e }) => `1px solid ${o(e, "--upf-border-color")}`
|
|
81
272
|
}
|
|
82
|
-
],
|
|
273
|
+
], de = [
|
|
83
274
|
{ target: "--das-ui-color-primary-level1", from: "--upf-color-primary-bg" },
|
|
84
|
-
...
|
|
275
|
+
...n("--upf-color-primary-bg", [
|
|
85
276
|
"--das-ui-color-primary-level1",
|
|
86
277
|
"--das-ui-upload-bgcolor-hover"
|
|
87
278
|
]),
|
|
88
|
-
...
|
|
279
|
+
...n("--upf-bg-primary", [
|
|
89
280
|
"--das-black-list-mange-color-white"
|
|
90
281
|
]),
|
|
91
282
|
{ target: "--das-ui-color-primary", from: "--upf-color-primary" },
|
|
@@ -113,7 +304,7 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
113
304
|
{ target: "--das-ui-rich-editor-active-font-color", from: "--upf-color-primary" },
|
|
114
305
|
{
|
|
115
306
|
target: "--das-ui-dropdown-bgff-color",
|
|
116
|
-
resolve: ({ variables: e }) =>
|
|
307
|
+
resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
|
|
117
308
|
},
|
|
118
309
|
{ target: "--das-ui-dropdown-divided-color", from: "--upf-border-color" },
|
|
119
310
|
{ target: "--das-ui-dropdown-active-color", from: "--upf-color-primary" },
|
|
@@ -134,8 +325,8 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
134
325
|
{
|
|
135
326
|
target: "--das-ui-special-range-picker-in-range",
|
|
136
327
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
137
|
-
|
|
138
|
-
|
|
328
|
+
o(e, "--upf-color-primary"),
|
|
329
|
+
o(e, "--upf-bg-primary"),
|
|
139
330
|
0.08,
|
|
140
331
|
"#F2F6FF"
|
|
141
332
|
)
|
|
@@ -143,8 +334,8 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
143
334
|
{
|
|
144
335
|
target: "--das-ui-special-range-picker-new-range",
|
|
145
336
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
146
|
-
|
|
147
|
-
|
|
337
|
+
o(e, "--upf-color-primary"),
|
|
338
|
+
o(e, "--upf-bg-primary"),
|
|
148
339
|
0.14,
|
|
149
340
|
"#E3EBFF"
|
|
150
341
|
)
|
|
@@ -160,11 +351,18 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
160
351
|
{ target: "--das-ui-table-sortable-color", from: "--upf-color-primary" },
|
|
161
352
|
{ target: "--das-ui-table-required-color", from: "--upf-color-error" },
|
|
162
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" },
|
|
163
361
|
{ target: "--das-ui-scrollbar-thumb-color", from: "--upf-text-disabled" },
|
|
164
362
|
{ target: "--das-ui-scrollbar-thumb-hover-color", from: "--upf-text-secondary" },
|
|
165
363
|
{ target: "--das-ui-scrollbar-padding", value: "1px" },
|
|
166
364
|
{ target: "--das-ui-scrollbar-thumb-size", value: "8px" },
|
|
167
|
-
{ target: "--das-user-manage-white", value:
|
|
365
|
+
{ target: "--das-user-manage-white", value: p },
|
|
168
366
|
{ target: "--das-user-manage-shadow-color", value: "rgba(38, 38, 38, 0.1)" },
|
|
169
367
|
{ target: "--das-user-manage-border-color", value: "rgba(38, 38, 38, 0.1)" },
|
|
170
368
|
{ target: "--das-ui-font-size-sm", value: "12px" },
|
|
@@ -173,7 +371,7 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
173
371
|
{ target: "--das-upf-ui-font-size-sm", value: "14px" },
|
|
174
372
|
{ target: "--das-upf-ui-line-height", value: "32px" },
|
|
175
373
|
{ target: "--das-ui-text-tooltip-shadow", value: "rgba(0, 0, 0, 0.2)" },
|
|
176
|
-
{ target: "--das-ui-text-tooltip-bgcolor", value:
|
|
374
|
+
{ target: "--das-ui-text-tooltip-bgcolor", value: p },
|
|
177
375
|
{ target: "--das-ui-search-form-font-color", from: "--upf-text-primary" },
|
|
178
376
|
{ target: "--das-ui-search-form-filter-font-color", from: "--upf-text-secondary" },
|
|
179
377
|
{ target: "--das-ui-search-form-filter-bgcolor", from: "--upf-bg-secondary" },
|
|
@@ -190,7 +388,7 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
190
388
|
{ target: "--das-ui-steps-title-font-size", value: "12px" },
|
|
191
389
|
{
|
|
192
390
|
target: "--das-ui-collaspe-bgcolor",
|
|
193
|
-
resolve: ({ variables: e }) =>
|
|
391
|
+
resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
|
|
194
392
|
},
|
|
195
393
|
{ target: "--das-ui-calendar-color-text", value: "#212121" },
|
|
196
394
|
{ target: "--das-ui-calendar-color-border", value: "#D9D9D9" },
|
|
@@ -202,8 +400,8 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
202
400
|
{
|
|
203
401
|
target: "--das-ui-color-primary-level2",
|
|
204
402
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
205
|
-
|
|
206
|
-
|
|
403
|
+
o(e, "--upf-color-primary"),
|
|
404
|
+
o(e, "--upf-bg-primary"),
|
|
207
405
|
0.16,
|
|
208
406
|
"#E0EFFE"
|
|
209
407
|
)
|
|
@@ -211,8 +409,8 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
211
409
|
{
|
|
212
410
|
target: "--das-ui-color-primary-level3",
|
|
213
411
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
214
|
-
|
|
215
|
-
|
|
412
|
+
o(e, "--upf-color-primary"),
|
|
413
|
+
o(e, "--upf-bg-primary"),
|
|
216
414
|
0.32,
|
|
217
415
|
"#B3D5FF"
|
|
218
416
|
)
|
|
@@ -220,8 +418,8 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
220
418
|
{
|
|
221
419
|
target: "--das-ui-color-primary-level4",
|
|
222
420
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
223
|
-
|
|
224
|
-
|
|
421
|
+
o(e, "--upf-color-primary"),
|
|
422
|
+
o(e, "--upf-bg-primary"),
|
|
225
423
|
0.48,
|
|
226
424
|
"#85B8FE"
|
|
227
425
|
)
|
|
@@ -229,29 +427,29 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
229
427
|
{
|
|
230
428
|
target: "--das-ui-color-primary-level5",
|
|
231
429
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
232
|
-
|
|
233
|
-
|
|
430
|
+
o(e, "--upf-color-primary"),
|
|
431
|
+
o(e, "--upf-bg-primary"),
|
|
234
432
|
0.68,
|
|
235
433
|
"#5797FF"
|
|
236
434
|
)
|
|
237
435
|
},
|
|
238
436
|
{
|
|
239
437
|
target: "--das-ui-color-primary-level7",
|
|
240
|
-
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
438
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.82, "#104CCC")
|
|
241
439
|
},
|
|
242
440
|
{
|
|
243
441
|
target: "--das-ui-color-primary-level8",
|
|
244
|
-
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
442
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.68, "#002EA3")
|
|
245
443
|
},
|
|
246
444
|
{
|
|
247
445
|
target: "--das-ui-color-primary-level9",
|
|
248
|
-
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
446
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.5, "#001F7A")
|
|
249
447
|
},
|
|
250
448
|
{
|
|
251
449
|
target: "--das-ui-color-danger-level1",
|
|
252
450
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
253
|
-
|
|
254
|
-
|
|
451
|
+
o(e, "--upf-color-error"),
|
|
452
|
+
o(e, "--upf-bg-primary"),
|
|
255
453
|
0.14,
|
|
256
454
|
"#FFDBE0"
|
|
257
455
|
)
|
|
@@ -259,8 +457,8 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
259
457
|
{
|
|
260
458
|
target: "--das-ui-color-danger-level2",
|
|
261
459
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
262
|
-
|
|
263
|
-
|
|
460
|
+
o(e, "--upf-color-error"),
|
|
461
|
+
o(e, "--upf-bg-primary"),
|
|
264
462
|
0.08,
|
|
265
463
|
"#FFF2F4"
|
|
266
464
|
)
|
|
@@ -268,8 +466,8 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
268
466
|
{
|
|
269
467
|
target: "--das-ui-color-warning-level1",
|
|
270
468
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
271
|
-
|
|
272
|
-
|
|
469
|
+
o(e, "--upf-color-warning"),
|
|
470
|
+
o(e, "--upf-bg-primary"),
|
|
273
471
|
0.08,
|
|
274
472
|
"#FFFBF2"
|
|
275
473
|
)
|
|
@@ -277,8 +475,8 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
277
475
|
{
|
|
278
476
|
target: "--das-ui-color-warning-level2",
|
|
279
477
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
280
|
-
|
|
281
|
-
|
|
478
|
+
o(e, "--upf-color-warning"),
|
|
479
|
+
o(e, "--upf-bg-primary"),
|
|
282
480
|
0.16,
|
|
283
481
|
"#FFF1D4"
|
|
284
482
|
)
|
|
@@ -286,8 +484,8 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
286
484
|
{
|
|
287
485
|
target: "--das-ui-color-success-level1",
|
|
288
486
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
289
|
-
|
|
290
|
-
|
|
487
|
+
o(e, "--upf-color-success"),
|
|
488
|
+
o(e, "--upf-bg-primary"),
|
|
291
489
|
0.08,
|
|
292
490
|
"#F2FFF5"
|
|
293
491
|
)
|
|
@@ -295,8 +493,8 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
295
493
|
{
|
|
296
494
|
target: "--das-ui-color-success-level2",
|
|
297
495
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
298
|
-
|
|
299
|
-
|
|
496
|
+
o(e, "--upf-color-success"),
|
|
497
|
+
o(e, "--upf-bg-primary"),
|
|
300
498
|
0.16,
|
|
301
499
|
"#DCFAE4"
|
|
302
500
|
)
|
|
@@ -304,30 +502,30 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
304
502
|
{
|
|
305
503
|
target: "--das-ui-color-amount",
|
|
306
504
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
307
|
-
|
|
308
|
-
|
|
505
|
+
o(e, "--upf-color-warning"),
|
|
506
|
+
o(e, "--upf-color-error"),
|
|
309
507
|
0.55,
|
|
310
508
|
"#FF5F1F"
|
|
311
509
|
)
|
|
312
510
|
},
|
|
313
511
|
{
|
|
314
512
|
target: "--das-ui-button-primary-hover",
|
|
315
|
-
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
513
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.82, "#104CCC")
|
|
316
514
|
},
|
|
317
|
-
...
|
|
515
|
+
...n("--upf-color-primary", [
|
|
318
516
|
"--das-ui-search-form-primary-color"
|
|
319
517
|
]),
|
|
320
|
-
...
|
|
518
|
+
...n("--upf-text-primary", [
|
|
321
519
|
"--das-ui-tag-list-text-color"
|
|
322
520
|
]),
|
|
323
|
-
...
|
|
521
|
+
...n("--upf-border-color", [
|
|
324
522
|
"--das-ui-tag-list-border-color",
|
|
325
523
|
"--das-ui-upload-border-color"
|
|
326
524
|
]),
|
|
327
|
-
...
|
|
525
|
+
...n("--upf-bg-secondary", [
|
|
328
526
|
"--das-ui-upload-bgcolor"
|
|
329
527
|
]),
|
|
330
|
-
...
|
|
528
|
+
...n("--upf-text-secondary", [
|
|
331
529
|
"--das-ui-search-form-tip-color"
|
|
332
530
|
]),
|
|
333
531
|
{ target: "--das-ui-layout-header-menu-border-color", from: "--upf-border-color" },
|
|
@@ -339,17 +537,17 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
339
537
|
{ target: "--das-ui-layout-header-menu-active-color", from: "--upf-nav-active-text" },
|
|
340
538
|
{
|
|
341
539
|
target: "--das-ui-layout-header-menu-remove-btn-color",
|
|
342
|
-
resolve: ({ variables: e, toRgbaColor: r }) => r(
|
|
540
|
+
resolve: ({ variables: e, toRgbaColor: r }) => r(o(e, "--upf-nav-text"), 0.72, "rgba(170, 170, 172, 0.72)")
|
|
343
541
|
},
|
|
344
542
|
{ target: "--das-ui-layout-header-menu-remove-btn-hover-color", from: "--upf-nav-active-text" },
|
|
345
543
|
{
|
|
346
544
|
target: "--das-ui-layout-header-icon-color",
|
|
347
|
-
resolve: ({ variables: e }) =>
|
|
545
|
+
resolve: ({ variables: e }) => o(e, "--upf-nav-text") || o(e, "--upf-text-secondary")
|
|
348
546
|
},
|
|
349
547
|
{
|
|
350
548
|
target: "--das-ui-layout-header-left-box-line",
|
|
351
549
|
resolve: ({ variables: e, toRgbaColor: r }) => r(
|
|
352
|
-
|
|
550
|
+
o(e, "--upf-nav-text") || o(e, "--upf-text-secondary"),
|
|
353
551
|
0.28,
|
|
354
552
|
"#CCCCCC"
|
|
355
553
|
)
|
|
@@ -380,43 +578,43 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
380
578
|
{ target: "--das-ui-layout-aside-menu-expired-color", from: "--upf-text-disabled" },
|
|
381
579
|
{ target: "--das-ui-layout-aside-menu-top-left-icon-color", from: "--upf-color-primary" },
|
|
382
580
|
{ target: "--das-ui-layout-aside-menu-top-right-icon-color", from: "--upf-text-secondary" }
|
|
383
|
-
],
|
|
581
|
+
], me = [
|
|
384
582
|
// 同源变量集中维护,新增 target 时优先追加到对应 source 分组。
|
|
385
|
-
...
|
|
583
|
+
...n("--upf-color-primary", [
|
|
386
584
|
"--upf-button-primary",
|
|
387
585
|
"--upf-notification-primary-bg"
|
|
388
586
|
]),
|
|
389
|
-
...
|
|
587
|
+
...n("--upf-text-primary", [
|
|
390
588
|
"--upf-button-default-text",
|
|
391
589
|
"--upf-notification-title-text",
|
|
392
590
|
"--upf-text-tooltip-text"
|
|
393
591
|
]),
|
|
394
|
-
...
|
|
592
|
+
...n("--upf-border-color", [
|
|
395
593
|
"--upf-button-default-border",
|
|
396
594
|
"--upf-text-tooltip-border"
|
|
397
595
|
]),
|
|
398
|
-
...
|
|
596
|
+
...n("--upf-text-disabled", [
|
|
399
597
|
"--upf-button-default-disabled",
|
|
400
598
|
"--upf-switch-off-color",
|
|
401
599
|
"--upf-message-thumb",
|
|
402
600
|
"--upf-text-tooltip-scrollbar-thumb"
|
|
403
601
|
]),
|
|
404
|
-
...
|
|
602
|
+
...n("--upf-bg-secondary", [
|
|
405
603
|
"--upf-button-default-disabled-bg",
|
|
406
604
|
"--upf-table-header-bg"
|
|
407
605
|
]),
|
|
408
|
-
...
|
|
409
|
-
...
|
|
410
|
-
...
|
|
411
|
-
...
|
|
412
|
-
...
|
|
413
|
-
...
|
|
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", [
|
|
414
612
|
"--upf-message-close",
|
|
415
613
|
"--upf-notification-description-text",
|
|
416
614
|
"--upf-notification-close",
|
|
417
615
|
"--upf-text-tooltip-scrollbar-thumb-hover"
|
|
418
616
|
]),
|
|
419
|
-
{ target: "--upf-button-primary-text", value:
|
|
617
|
+
{ target: "--upf-button-primary-text", value: p },
|
|
420
618
|
{ target: "--upf-button-primary-text-disabled", value: "rgba(255, 255, 255, 1)" },
|
|
421
619
|
{ target: "--upf-dialog-basic-header-height", value: "50px" },
|
|
422
620
|
{ target: "--upf-dialog-basic-content-padding", value: "30px" },
|
|
@@ -435,49 +633,49 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
435
633
|
{ target: "--upf-notification-font-size-sm", value: "12px" },
|
|
436
634
|
{ target: "--upf-notification-font-size-md", value: "14px" },
|
|
437
635
|
{ target: "--upf-notification-font-size-lg", value: "16px" },
|
|
438
|
-
{ target: "--upf-notification-primary-text", value:
|
|
636
|
+
{ target: "--upf-notification-primary-text", value: p },
|
|
439
637
|
{ target: "--upf-text-tooltip-scrollbar-padding", value: "1px" },
|
|
440
638
|
{
|
|
441
639
|
target: "--upf-button-primary-hover",
|
|
442
|
-
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
640
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", p, 0.82, "#87A9FF")
|
|
443
641
|
},
|
|
444
642
|
{
|
|
445
643
|
target: "--upf-button-active",
|
|
446
|
-
resolve: ({ variables: e, mixHexColor: r }) =>
|
|
644
|
+
resolve: ({ variables: e, mixHexColor: r }) => V(o(e, "--upf-color-primary"), r)
|
|
447
645
|
},
|
|
448
646
|
{
|
|
449
647
|
target: "--upf-button-disabled",
|
|
450
|
-
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
648
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", p, 0.3, "#B5CAFF")
|
|
451
649
|
},
|
|
452
650
|
{
|
|
453
651
|
target: "--upf-button-set",
|
|
454
|
-
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
652
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", d, 0.78, "#4367C1")
|
|
455
653
|
},
|
|
456
654
|
{
|
|
457
655
|
target: "--upf-button-set-hover",
|
|
458
|
-
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
656
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", d, 0.86, "#4C74DA")
|
|
459
657
|
},
|
|
460
658
|
{
|
|
461
659
|
target: "--upf-button-set-active",
|
|
462
|
-
resolve: ({ variables: e, mixHexColor: r }) =>
|
|
660
|
+
resolve: ({ variables: e, mixHexColor: r }) => V(o(e, "--upf-color-primary"), r)
|
|
463
661
|
},
|
|
464
662
|
{
|
|
465
663
|
target: "--upf-button-set-disabled",
|
|
466
|
-
resolve: ({ variables: e, mixHexColor: r, result:
|
|
467
|
-
|
|
468
|
-
|
|
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"),
|
|
469
667
|
0.55,
|
|
470
668
|
"#95A4C8"
|
|
471
669
|
)
|
|
472
670
|
},
|
|
473
671
|
{
|
|
474
672
|
target: "--upf-switch-on-color-disabled",
|
|
475
|
-
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
673
|
+
resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), p, 0.32, "#B5CAFF")
|
|
476
674
|
},
|
|
477
675
|
{
|
|
478
676
|
target: "--upf-checkbox-focus-shadow",
|
|
479
677
|
resolve: ({ variables: e, toRgbaColor: r }) => r(
|
|
480
|
-
|
|
678
|
+
o(e, "--upf-color-primary") || "#5582F3",
|
|
481
679
|
0.1,
|
|
482
680
|
"rgba(85, 130, 243, 0.1)"
|
|
483
681
|
)
|
|
@@ -485,8 +683,8 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
485
683
|
{
|
|
486
684
|
target: "--upf-checkbox-overlay-error-bg",
|
|
487
685
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
488
|
-
|
|
489
|
-
|
|
686
|
+
o(e, "--upf-color-error"),
|
|
687
|
+
o(e, "--upf-bg-primary"),
|
|
490
688
|
0.14,
|
|
491
689
|
"#FFDBE0"
|
|
492
690
|
)
|
|
@@ -494,22 +692,22 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
494
692
|
{
|
|
495
693
|
target: "--upf-loading-color-4",
|
|
496
694
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
497
|
-
|
|
498
|
-
|
|
695
|
+
o(e, "--upf-brand-secondary"),
|
|
696
|
+
o(e, "--upf-color-primary"),
|
|
499
697
|
0.45,
|
|
500
698
|
"#A06EFF"
|
|
501
699
|
)
|
|
502
700
|
},
|
|
503
701
|
{
|
|
504
702
|
target: "--upf-loading-color-5",
|
|
505
|
-
resolve: ({ variables: e }) =>
|
|
703
|
+
resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
|
|
506
704
|
},
|
|
507
705
|
{ target: "--upf-table-row-hover-bg", from: "--upf-bg-secondary" },
|
|
508
706
|
{
|
|
509
707
|
target: "--upf-table-row-active-bg",
|
|
510
708
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
511
|
-
|
|
512
|
-
|
|
709
|
+
o(e, "--upf-color-primary"),
|
|
710
|
+
o(e, "--upf-bg-primary"),
|
|
513
711
|
0.08,
|
|
514
712
|
"#F2F6FF"
|
|
515
713
|
)
|
|
@@ -517,8 +715,8 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
517
715
|
{
|
|
518
716
|
target: "--upf-table-row-active-hover-bg",
|
|
519
717
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
520
|
-
|
|
521
|
-
|
|
718
|
+
o(e, "--upf-color-primary"),
|
|
719
|
+
o(e, "--upf-bg-primary"),
|
|
522
720
|
0.14,
|
|
523
721
|
"#E3EBFF"
|
|
524
722
|
)
|
|
@@ -526,8 +724,8 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
526
724
|
{
|
|
527
725
|
target: "--upf-table-summary-row-color",
|
|
528
726
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
529
|
-
|
|
530
|
-
|
|
727
|
+
o(e, "--upf-color-warning"),
|
|
728
|
+
o(e, "--upf-color-error"),
|
|
531
729
|
0.55,
|
|
532
730
|
"#FF5F1F"
|
|
533
731
|
)
|
|
@@ -535,8 +733,8 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
535
733
|
{
|
|
536
734
|
target: "--upf-table-summary-row-bg",
|
|
537
735
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
538
|
-
|
|
539
|
-
|
|
736
|
+
o(e, "--upf-color-warning"),
|
|
737
|
+
o(e, "--upf-bg-primary"),
|
|
540
738
|
0.18,
|
|
541
739
|
"#FFF1D4"
|
|
542
740
|
)
|
|
@@ -544,47 +742,47 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
544
742
|
{
|
|
545
743
|
target: "--upf-message-bg",
|
|
546
744
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
547
|
-
|
|
548
|
-
|
|
745
|
+
o(e, "--upf-color-info"),
|
|
746
|
+
o(e, "--upf-bg-primary"),
|
|
549
747
|
0.14,
|
|
550
748
|
"#E0EFFF"
|
|
551
749
|
)
|
|
552
750
|
},
|
|
553
751
|
{
|
|
554
752
|
target: "--upf-message-text",
|
|
555
|
-
resolve: ({ variables: e }) =>
|
|
753
|
+
resolve: ({ variables: e }) => o(e, "--upf-color-info") || o(e, "--upf-color-primary") || "#0E5FD8"
|
|
556
754
|
},
|
|
557
755
|
{
|
|
558
756
|
target: "--upf-message-border",
|
|
559
757
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
560
|
-
|
|
561
|
-
|
|
758
|
+
o(e, "--upf-color-info"),
|
|
759
|
+
o(e, "--upf-bg-primary"),
|
|
562
760
|
0.32,
|
|
563
761
|
"#B3D5FF"
|
|
564
762
|
)
|
|
565
763
|
},
|
|
566
764
|
{
|
|
567
765
|
target: "--upf-message-close-hover",
|
|
568
|
-
resolve: ({ variables: e }) =>
|
|
766
|
+
resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
|
|
569
767
|
},
|
|
570
768
|
{
|
|
571
769
|
target: "--upf-message-success-bg",
|
|
572
770
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
573
|
-
|
|
574
|
-
|
|
771
|
+
o(e, "--upf-color-success"),
|
|
772
|
+
o(e, "--upf-bg-primary"),
|
|
575
773
|
0.16,
|
|
576
774
|
"#DCFAE4"
|
|
577
775
|
)
|
|
578
776
|
},
|
|
579
777
|
{
|
|
580
778
|
target: "--upf-message-success-text",
|
|
581
|
-
resolve: ({ variables: e }) =>
|
|
779
|
+
resolve: ({ variables: e }) => o(e, "--upf-color-success") || "#1BA854"
|
|
582
780
|
},
|
|
583
781
|
{
|
|
584
782
|
target: "--upf-message-success-border",
|
|
585
783
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
586
|
-
|
|
587
|
-
|
|
784
|
+
o(e, "--upf-color-success"),
|
|
785
|
+
o(e, "--upf-bg-primary"),
|
|
588
786
|
0.32,
|
|
589
787
|
"#A1E6B5"
|
|
590
788
|
)
|
|
@@ -604,21 +802,21 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
604
802
|
{
|
|
605
803
|
target: "--upf-message-warning-bg",
|
|
606
804
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
607
|
-
|
|
608
|
-
|
|
805
|
+
o(e, "--upf-color-warning"),
|
|
806
|
+
o(e, "--upf-bg-primary"),
|
|
609
807
|
0.16,
|
|
610
808
|
"#FFF1D4"
|
|
611
809
|
)
|
|
612
810
|
},
|
|
613
811
|
{
|
|
614
812
|
target: "--upf-message-warning-text",
|
|
615
|
-
resolve: ({ variables: e }) =>
|
|
813
|
+
resolve: ({ variables: e }) => o(e, "--upf-color-warning") || "#FF991C"
|
|
616
814
|
},
|
|
617
815
|
{
|
|
618
816
|
target: "--upf-message-warning-border",
|
|
619
817
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
620
|
-
|
|
621
|
-
|
|
818
|
+
o(e, "--upf-color-warning"),
|
|
819
|
+
o(e, "--upf-bg-primary"),
|
|
622
820
|
0.32,
|
|
623
821
|
"#FFE0A6"
|
|
624
822
|
)
|
|
@@ -626,36 +824,36 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
626
824
|
{
|
|
627
825
|
target: "--upf-message-error-bg",
|
|
628
826
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
629
|
-
|
|
630
|
-
|
|
827
|
+
o(e, "--upf-color-error"),
|
|
828
|
+
o(e, "--upf-bg-primary"),
|
|
631
829
|
0.14,
|
|
632
830
|
"#FFDBE0"
|
|
633
831
|
)
|
|
634
832
|
},
|
|
635
833
|
{
|
|
636
834
|
target: "--upf-message-error-text",
|
|
637
|
-
resolve: ({ variables: e }) =>
|
|
835
|
+
resolve: ({ variables: e }) => o(e, "--upf-color-error") || "#FB2323"
|
|
638
836
|
},
|
|
639
837
|
{
|
|
640
838
|
target: "--upf-message-error-border",
|
|
641
839
|
resolve: ({ variables: e, mixHexColor: r }) => r(
|
|
642
|
-
|
|
643
|
-
|
|
840
|
+
o(e, "--upf-color-error"),
|
|
841
|
+
o(e, "--upf-bg-primary"),
|
|
644
842
|
0.32,
|
|
645
843
|
"#FFADB6"
|
|
646
844
|
)
|
|
647
845
|
},
|
|
648
846
|
{
|
|
649
847
|
target: "--upf-notification-bg",
|
|
650
|
-
resolve: ({ variables: e }) =>
|
|
848
|
+
resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
|
|
651
849
|
},
|
|
652
850
|
{
|
|
653
851
|
target: "--upf-notification-close-hover",
|
|
654
|
-
resolve: ({ variables: e }) =>
|
|
852
|
+
resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
|
|
655
853
|
},
|
|
656
854
|
{
|
|
657
855
|
target: "--upf-text-tooltip-bg",
|
|
658
|
-
resolve: ({ variables: e }) =>
|
|
856
|
+
resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
|
|
659
857
|
},
|
|
660
858
|
{
|
|
661
859
|
target: "--upf-text-tooltip-shadow-color",
|
|
@@ -663,70 +861,110 @@ const S = "themeChange", f = "#ffffff", g = "#000000", E = "upf-theme-root-vars"
|
|
|
663
861
|
},
|
|
664
862
|
{ target: "--upf-app-container-app-bg-override", from: "--upf-nav-bg" },
|
|
665
863
|
{ target: "--upf-app-container-app-text-override", from: "--upf-nav-text" }
|
|
666
|
-
],
|
|
667
|
-
const
|
|
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
|
+
};
|
|
668
869
|
return {
|
|
669
|
-
...
|
|
670
|
-
...
|
|
671
|
-
...a ?
|
|
672
|
-
...a ?
|
|
673
|
-
...
|
|
870
|
+
...t,
|
|
871
|
+
...u,
|
|
872
|
+
...a ? be(f) : {},
|
|
873
|
+
...a ? xe(f) : {},
|
|
874
|
+
...ge(f)
|
|
674
875
|
};
|
|
675
|
-
},
|
|
676
|
-
const
|
|
677
|
-
|
|
678
|
-
},
|
|
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) => {
|
|
679
880
|
var u;
|
|
680
|
-
if (
|
|
881
|
+
if (N.has(e))
|
|
681
882
|
return;
|
|
682
|
-
const r =
|
|
683
|
-
if (!r || !
|
|
883
|
+
const r = C(e), t = ((u = e.defaultView) == null ? void 0 : u.MutationObserver) || (typeof MutationObserver < "u" ? MutationObserver : void 0);
|
|
884
|
+
if (!r || !t)
|
|
684
885
|
return;
|
|
685
|
-
new
|
|
686
|
-
const
|
|
687
|
-
|
|
688
|
-
}).observe(r, { childList: !0 }),
|
|
689
|
-
},
|
|
690
|
-
const r = e.getElementById(
|
|
691
|
-
if (
|
|
692
|
-
return
|
|
693
|
-
const
|
|
694
|
-
return
|
|
695
|
-
},
|
|
696
|
-
const r = Object.entries(e).map(([
|
|
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(`
|
|
697
898
|
`);
|
|
698
899
|
return r ? `:root {
|
|
699
900
|
${r}
|
|
700
901
|
}` : ":root {}";
|
|
701
|
-
},
|
|
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) => {
|
|
702
940
|
if (!e.length || !r.length)
|
|
703
941
|
return;
|
|
704
|
-
const
|
|
942
|
+
const t = new Set(r);
|
|
705
943
|
for (let a = e.length - 1; a >= 0; a--) {
|
|
706
944
|
const u = e[a];
|
|
707
|
-
|
|
945
|
+
t.has(u) && e.removeProperty(u);
|
|
708
946
|
}
|
|
709
|
-
},
|
|
710
|
-
const
|
|
711
|
-
(
|
|
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));
|
|
712
950
|
const u = Object.keys(r);
|
|
713
|
-
|
|
714
|
-
},
|
|
951
|
+
R(e.documentElement.style, u), e.body && R(e.body.style, u);
|
|
952
|
+
}, Fe = (e) => {
|
|
715
953
|
typeof window > "u" || (window.__UPF_THEME_SNAPSHOT__ = e);
|
|
716
|
-
},
|
|
717
|
-
const
|
|
718
|
-
|
|
954
|
+
}, we = (e, r) => {
|
|
955
|
+
const t = x(r) || {}, a = e.ownerDocument || document;
|
|
956
|
+
b.set(e, t);
|
|
719
957
|
const u = e === a.documentElement || e === a.body;
|
|
720
|
-
u &&
|
|
721
|
-
},
|
|
722
|
-
const r =
|
|
723
|
-
return (r ?
|
|
724
|
-
},
|
|
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) => {
|
|
725
963
|
var r;
|
|
726
964
|
if (typeof window > "u" || !window.name)
|
|
727
965
|
return null;
|
|
728
966
|
try {
|
|
729
|
-
const
|
|
967
|
+
const t = JSON.parse(window.name), a = (r = t == null ? void 0 : t.parentData) == null ? void 0 : r.theme;
|
|
730
968
|
return !(a != null && a.variables) || typeof a.variables != "object" ? null : {
|
|
731
969
|
themeName: String(a.themeName || ""),
|
|
732
970
|
config: a.config || null,
|
|
@@ -736,136 +974,145 @@ ${r}
|
|
|
736
974
|
} catch {
|
|
737
975
|
return null;
|
|
738
976
|
}
|
|
739
|
-
},
|
|
977
|
+
}, ke = (e, r) => {
|
|
740
978
|
if (r !== void 0)
|
|
741
979
|
return r;
|
|
742
|
-
const
|
|
743
|
-
return String(
|
|
744
|
-
},
|
|
745
|
-
const
|
|
746
|
-
if (!
|
|
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)
|
|
747
985
|
return {};
|
|
748
|
-
const a = h(e), u = r.includeBridges === !1 ? Object.entries(a).reduce((
|
|
986
|
+
const a = h(e), u = r.includeBridges === !1 ? Object.entries(a).reduce((l, [s, i]) => (l[s] = String(i ?? ""), l), {}) : O(a, {
|
|
749
987
|
includeElementAndDasUiBridges: r.includeElementAndDasUiBridges
|
|
750
|
-
}),
|
|
751
|
-
return
|
|
752
|
-
|
|
753
|
-
}),
|
|
754
|
-
},
|
|
755
|
-
const
|
|
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 || {}, {
|
|
756
994
|
...r,
|
|
757
995
|
themeName: r.themeName || e.themeName,
|
|
758
|
-
skinName:
|
|
996
|
+
skinName: ke(e, r.skinName)
|
|
759
997
|
});
|
|
760
|
-
return
|
|
761
|
-
},
|
|
998
|
+
return Fe(e), t;
|
|
999
|
+
}, S = (e, r, t = !0) => {
|
|
762
1000
|
try {
|
|
763
1001
|
return e && e.__THEME_API__ || null;
|
|
764
1002
|
} catch {
|
|
765
1003
|
return null;
|
|
766
1004
|
}
|
|
767
|
-
},
|
|
768
|
-
const r =
|
|
769
|
-
if (
|
|
770
|
-
return
|
|
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;
|
|
771
1009
|
const a = (typeof window < "u" ? window.__UPF_THEME_SNAPSHOT__ : null) || null;
|
|
772
|
-
return a ||
|
|
773
|
-
},
|
|
774
|
-
const r =
|
|
1010
|
+
return a || _e(e.debug);
|
|
1011
|
+
}, Be = (e = {}) => {
|
|
1012
|
+
const r = Se(e.root);
|
|
775
1013
|
if (r)
|
|
776
|
-
return
|
|
777
|
-
const
|
|
778
|
-
if (
|
|
779
|
-
return
|
|
780
|
-
const a =
|
|
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);
|
|
781
1019
|
if (!a)
|
|
782
1020
|
return null;
|
|
783
1021
|
const u = a.getVariables ? a.getVariables() : null;
|
|
784
|
-
return
|
|
785
|
-
},
|
|
786
|
-
const
|
|
787
|
-
return
|
|
788
|
-
},
|
|
789
|
-
const r =
|
|
790
|
-
return r ? (
|
|
791
|
-
},
|
|
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({
|
|
792
1030
|
includeBridges: !1,
|
|
793
1031
|
includeElementAndDasUiBridges: !1,
|
|
794
1032
|
...e
|
|
795
|
-
}),
|
|
1033
|
+
}), Ae = (e, r = !0) => {
|
|
796
1034
|
try {
|
|
797
|
-
const
|
|
798
|
-
return
|
|
799
|
-
|
|
1035
|
+
const t = q("microApp");
|
|
1036
|
+
return t.event.on(A, e), () => {
|
|
1037
|
+
t.event.off(A, e);
|
|
800
1038
|
};
|
|
801
1039
|
} catch {
|
|
802
1040
|
return null;
|
|
803
1041
|
}
|
|
804
|
-
},
|
|
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) => {
|
|
805
1043
|
let r = "";
|
|
806
|
-
return (
|
|
807
|
-
const a =
|
|
808
|
-
a && a === r || (r = a, e(
|
|
1044
|
+
return (t) => {
|
|
1045
|
+
const a = Ne(t);
|
|
1046
|
+
a && a === r || (r = a, e(t));
|
|
809
1047
|
};
|
|
810
|
-
},
|
|
811
|
-
const u =
|
|
812
|
-
return
|
|
813
|
-
|
|
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());
|
|
814
1052
|
} : null;
|
|
815
|
-
},
|
|
816
|
-
const { syncOnInit: r = !0, preferWindowSubscription:
|
|
817
|
-
let
|
|
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;
|
|
818
1056
|
const m = () => {
|
|
819
|
-
|
|
820
|
-
},
|
|
821
|
-
|
|
822
|
-
},
|
|
823
|
-
return r && (m(), (typeof queueMicrotask == "function" ? queueMicrotask : (
|
|
824
|
-
|
|
825
|
-
}) :
|
|
826
|
-
|
|
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();
|
|
827
1065
|
}, 16)), () => {
|
|
828
|
-
|
|
1066
|
+
s = !0, i !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(i), i = null), c !== null && (clearTimeout(c), c = null), F == null || F();
|
|
829
1067
|
};
|
|
830
|
-
},
|
|
1068
|
+
}, Ke = (e = {}) => Re({
|
|
831
1069
|
includeBridges: !1,
|
|
832
1070
|
includeElementAndDasUiBridges: !1,
|
|
833
1071
|
...e
|
|
834
|
-
}),
|
|
835
|
-
var
|
|
836
|
-
const
|
|
837
|
-
if (!
|
|
1072
|
+
}), Ie = (e, r) => {
|
|
1073
|
+
var f;
|
|
1074
|
+
const t = B(r), a = String(e || "").trim();
|
|
1075
|
+
if (!t || !a)
|
|
838
1076
|
return "";
|
|
839
|
-
const u = typeof getComputedStyle > "u" ? "" : getComputedStyle(
|
|
840
|
-
return u || String(((
|
|
841
|
-
},
|
|
842
|
-
value:
|
|
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)
|
|
843
1081
|
});
|
|
844
1082
|
export {
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
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
|
|
871
1118
|
};
|