@das-fed/web 7.1.0-qatar.2 → 7.1.0-qatar.3

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.
Binary file
@@ -6,7 +6,7 @@ import { DasSpin as E } from "@das-fed/ui/packages/components/spin/index";
6
6
  import { getTabInfo as L } from "@das-fed/utils/common-info";
7
7
  import { setShowLayout as P } from "@das-fed/utils/common-tools";
8
8
  import { createService as q } from "@das-fed/utils/create-api-service";
9
- import { u as B, p as K, a as l, c as d, b as M, l as N, g as O, d as V } from "./index-BaX9zH-6.js";
9
+ import { u as B, p as K, a as l, c as d, b as M, l as N, g as O, d as V } from "./index-BiA-PGky.js";
10
10
  const F = "v1", G = q(`/api/justauth/client/${F}`), H = G.get("/visitor/kingdee/auth/user/auth_code"), oe = /* @__PURE__ */ U({
11
11
  __name: "index",
12
12
  setup(J) {
Binary file
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as r } from "vue";
2
- import { _ as c } from "./index-BaX9zH-6.js";
2
+ import { _ as c } from "./index-BiA-PGky.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return r(), e("div");
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { L as s, C as t, E as n, D as i, F as r, e as u, m as o, x as m, q as l, n as p, f as g, k as D, w as L, z as b, A as h, h as T, i as c, I as A, J as R, r as y, G as M, H as W, M as I, K as F, B as V, s as d, j as f, o as k, v, y as w, t as x } from "./index-BaX9zH-6.js";
1
+ import { M as s, D as t, F as n, E as i, G as r, e as u, m, y as o, q as g, n as l, f as p, k as D, w as h, x as L, A as T, B as b, h as c, i as A, J as R, K as y, r as M, H as W, I, N as F, L as V, C as d, s as f, j as k, o as v, v as w, z as x, t as G } from "./index-BiA-PGky.js";
2
2
  export {
3
3
  s as DasMainAppLayout,
4
4
  t as DasWebLayout,
@@ -6,29 +6,30 @@ export {
6
6
  i as DasWebNav,
7
7
  r as DasWebTabs,
8
8
  u as createDasWebApp,
9
- o as currentLang,
10
- m as currentTheme,
11
- l as customLangeData,
12
- p as dir,
13
- g as getI18nRule,
9
+ m as currentLang,
10
+ o as currentTheme,
11
+ g as customLangeData,
12
+ l as dir,
13
+ p as getI18nRule,
14
14
  D as getLang,
15
+ h as getTheme,
15
16
  L as getThemeRule,
16
- b as getVar,
17
- h as getVarValue,
18
- T as i18n,
19
- c as initI18n,
20
- A as initMainApp,
21
- R as initMicroApp,
22
- y as initTheme,
23
- M as layout,
24
- W as layoutData,
25
- I as mainAppFramework,
26
- F as microFrontend,
27
- V as setGlobalThemeRule,
28
- d as setI18nRule,
29
- f as setLang,
30
- k as setLangRule,
31
- v as setTheme,
32
- w as setThemeRule,
33
- x as t
17
+ T as getVar,
18
+ b as getVarValue,
19
+ c as i18n,
20
+ A as initI18n,
21
+ R as initMainApp,
22
+ y as initMicroApp,
23
+ M as initTheme,
24
+ W as layout,
25
+ I as layoutData,
26
+ F as mainAppFramework,
27
+ V as microFrontend,
28
+ d as setGlobalThemeRule,
29
+ f as setI18nRule,
30
+ k as setLang,
31
+ v as setLangRule,
32
+ w as setTheme,
33
+ x as setThemeRule,
34
+ G as t
34
35
  };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@das-fed/web",
3
- "version": "7.1.0-qatar.2",
3
+ "version": "7.1.0-qatar.3",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "7.1.0-qatar.2",
8
- "@das-fed/utils": "7.1.0-qatar.2",
9
- "@das-fed/web": "7.1.0-qatar.2",
10
- "@das-fed/web-components": "7.1.0-qatar.2",
7
+ "@das-fed/ui": "7.1.0-qatar.3",
8
+ "@das-fed/utils": "7.1.0-qatar.3",
9
+ "@das-fed/web": "7.1.0-qatar.3",
10
+ "@das-fed/web-components": "7.1.0-qatar.3",
11
11
  "@microsoft/signalr": "^8.0.7",
12
12
  "@vueuse/core": "^9.13.0",
13
13
  "animate.css": "^4.1.1",
@@ -19,7 +19,7 @@
19
19
  "vue-router": "^4.4.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@das-fed/cli": "7.1.0-qatar.2",
22
+ "@das-fed/cli": "7.1.0-qatar.3",
23
23
  "@types/crypto-js": "^4.2.2",
24
24
  "@types/lodash": "^4.14.194",
25
25
  "@types/lodash-es": "^4.17.12",
@@ -1,61 +1,63 @@
1
- import { ref as u, computed as b } from "vue";
2
- import { setThemeRule as p } from "@das-fed/web/packages/theme/index";
3
- const f = {
4
- "--das-color-brand-primary": "#348CAB",
1
+ import { ref as u, computed as F } from "vue";
2
+ import { setThemeRule as b } from "@das-fed/web/packages/theme/index";
3
+ const p = {
4
+ "--das-color-brand-primary": { light: "#276ff5", qatar: "#348CAB" },
5
5
  // 品牌主色-默认
6
- "--das-color-brand-primary-light": "#EBFAFF",
6
+ "--das-color-brand-primary-light": { light: "#F2F9FF", qatar: "#EBFAFF" },
7
7
  // 品牌主色-浅色背景
8
- "--das-color-brand-primary-hover": "#53A2BE",
8
+ "--das-color-brand-primary-hover": { light: "#5582F3", qatar: "#53A2BE" },
9
9
  // 品牌主色-悬停
10
- "--das-color-brand-primary-active": "#24718C",
10
+ "--das-color-brand-primary-active": { light: "#3761CA", qatar: "#24718C" },
11
11
  // 品牌主色-激活
12
- "--das-color-brand-primary-disabled": "#BEE4F1",
12
+ "--das-color-brand-primary-disabled": { light: "#B5CAFF", qatar: "#BEE4F1" },
13
13
  // 品牌主色-禁用
14
- "--das-color-brand-primary-shadow": "rgba(52, 140, 171, 0.1)",
14
+ "--das-color-brand-primary-shadow": { light: "rgba(85, 130, 243, 0.1)", qatar: "rgba(52, 140, 171, 0.1)" },
15
15
  // 品牌主色-焦点阴影
16
- "--das-color-brand-secondary": "#495CA6",
16
+ "--das-color-brand-secondary": { light: "#4367C1", qatar: "#495CA6" },
17
17
  // 品牌辅助色-默认
18
- "--das-color-brand-secondary-hover": "#6578C2",
18
+ "--das-color-brand-secondary-hover": { light: "#4C74DA", qatar: "#6578C2" },
19
19
  // 品牌辅助色-悬停
20
- "--das-color-brand-secondary-active": "#405192",
20
+ "--das-color-brand-secondary-active": { light: "#3B5AA9", qatar: "#405192" },
21
21
  // 品牌辅助色-激活
22
- "--das-color-brand-secondary-disabled": "#C8D2F1",
22
+ "--das-color-brand-secondary-disabled": { light: "#95A4C8", qatar: "#C8D2F1" },
23
23
  // 品牌辅助色-禁用
24
- "--das-color-success": "#1BA854",
24
+ "--das-color-success": { light: "#1BA854", qatar: "#1BA854" },
25
25
  // 功能色-成功
26
- "--das-color-info": "#276FF5",
26
+ "--das-color-info": { light: "#276FF5", qatar: "#276FF5" },
27
27
  // 功能色-信息
28
- "--das-color-warning": "#FF991C",
28
+ "--das-color-warning": { light: "#FF991C", qatar: "#FF991C" },
29
29
  // 功能色-警告
30
- "--das-color-danger": "#FB2323",
30
+ "--das-color-danger": { light: "#FB2323", qatar: "#FB2323" },
31
31
  // 功能色-危险
32
- "--das-color-danger-light": "#FFDBE0",
32
+ "--das-color-danger-light": { light: "#FFDBE0", qatar: "#FFDBE0" },
33
33
  // 功能色-危险浅色背景
34
- "--das-color-text-title": "#212121",
34
+ "--das-color-link": { light: "#0E5FD8", qatar: "#348CAB" },
35
+ // 链接色
36
+ "--das-color-text-title": { light: "#212121", qatar: "#212121" },
35
37
  // 文字色-标题
36
- "--das-color-text-body": "#666666",
38
+ "--das-color-text-body": { light: "#666666", qatar: "#666666" },
37
39
  // 文字色-正文
38
- "--das-color-text-subtle": "#999999",
40
+ "--das-color-text-subtle": { light: "#999999", qatar: "#999999" },
39
41
  // 文字色-辅助
40
- "--das-color-text-caption": "#B2B2B2",
42
+ "--das-color-text-caption": { light: "#B2B2B2", qatar: "#B2B2B2" },
41
43
  // 文字色-说明
42
- "--das-color-bg-page": "#F2F7FF",
44
+ "--das-color-bg-page": { light: "#F2F7FF", qatar: "#F2F7FF" },
43
45
  // 背景色-页面
44
- "--das-color-bg-container": "#FFFFFF",
46
+ "--das-color-bg-container": { light: "#FFFFFF", qatar: "#FFFFFF" },
45
47
  // 背景色-容器
46
- "--das-color-bg-disabled": "#F5F5F5",
48
+ "--das-color-bg-disabled": { light: "#F5F5F5", qatar: "#F5F5F5" },
47
49
  // 背景色-禁用
48
- "--das-color-mask-dark": "#000000",
50
+ "--das-color-mask-dark": { light: "#000000", qatar: "#000000" },
49
51
  // 遮罩色-深色
50
- "--das-color-mask-dark-opacity": "rgba(0, 0, 0, 0.5)",
52
+ "--das-color-mask-dark-opacity": { light: "rgba(0, 0, 0, 0.5)", qatar: "rgba(0, 0, 0, 0.5)" },
51
53
  // 遮罩色-深色半透明
52
- "--das-color-border-light": "#FFFFFF",
54
+ "--das-color-border-light": { light: "#FFFFFF", qatar: "#FFFFFF" },
53
55
  // 描边色-弱
54
- "--das-color-border-base": "#E5E5E5",
56
+ "--das-color-border-base": { light: "#E5E5E5", qatar: "#E5E5E5" },
55
57
  // 描边色-常规
56
- "--das-color-border-strong": "#D9D9D9"
58
+ "--das-color-border-strong": { light: "#D9D9D9", qatar: "#D9D9D9" }
57
59
  // 描边色-强调
58
- }, y = {
60
+ }, f = {
59
61
  "--das-font-size-xxs": "10px",
60
62
  // 极小字号,用于角标、辅助标识、弱提示等低层级信息
61
63
  "--das-font-size-xs": "12px",
@@ -104,95 +106,112 @@ const f = {
104
106
  // 48px 字号对应行高
105
107
  "--das-line-height-7xl": "84px"
106
108
  // 56px 字号对应行高
107
- }, F = {
108
- "--das-radius-none": "0px",
109
+ }, q = {
110
+ "--das-menu-color-fog-blue-1": "#EBEFFF",
111
+ "--das-menu-color-fog-blue-2": "#CBD2F1",
112
+ "--das-menu-color-fog-blue-3": "#9EB0FA",
113
+ "--das-menu-color-fog-blue-4": "#8294DE",
114
+ "--das-menu-color-fog-blue-5": "#6578C2",
115
+ "--das-menu-color-fog-blue-6": "#495CA6",
116
+ "--das-menu-color-fog-blue-7": "#405192",
117
+ "--das-menu-color-fog-blue-8": "#38467E",
118
+ "--das-menu-color-fog-blue-9": "#2F3A6B",
119
+ "--das-menu-color-fog-blue-10": "#262F57"
120
+ }, v = {
121
+ "--das-radius-none": { light: "0px", qatar: "0px" },
109
122
  // 无圆角
110
- "--das-radius-xs": "3px",
123
+ "--das-radius-2xs": { light: "1px", qatar: "2px" },
124
+ // 极极小圆角,覆盖层错误边框等
125
+ "--das-radius-xs": { light: "0px", qatar: "3px" },
111
126
  // 极小圆角,多选框表格、下拉多选、多选树、多选列表等
112
- "--das-radius-sm": "4px",
127
+ "--das-radius-sm": { light: "2px", qatar: "4px" },
113
128
  // 小尺寸圆角,按钮、输入框、标签等
114
- "--das-radius-md": "6px",
129
+ "--das-radius-md": { light: "2px", qatar: "6px" },
115
130
  // 中尺寸圆角,搜索框、下拉面板等
116
- "--das-radius-lg": "8px",
131
+ "--das-radius-lg": { light: "4px", qatar: "8px" },
117
132
  // 大尺寸圆角,卡片、弹窗、通知等
118
- "--das-radius-xl": "12px",
133
+ "--das-radius-xl": { light: "4px", qatar: "12px" },
119
134
  // 超大尺寸圆角,强调容器或特殊面板
120
- "--das-radius-pill": "999px"
135
+ "--das-radius-pill": { light: "999px", qatar: "999px" }
121
136
  // 胶囊圆角
122
- }, z = () => {
123
- const s = /* @__PURE__ */ Object.assign({ "./module/color.ts": f, "./module/fontSize.ts": y, "./module/radius.ts": F });
124
- Object.keys(s).map((e) => p(s[e]));
125
- }, r = u("light"), c = u({
137
+ }, y = {
138
+ "--das-scrollbar-padding": "1px",
139
+ "--das-scrollbar-thumb-size": "8px"
140
+ }, T = () => {
141
+ const a = /* @__PURE__ */ Object.assign({ "./module/color.ts": p, "./module/fontSize.ts": f, "./module/menu.ts": q, "./module/radius.ts": v, "./module/scrollbar.ts": y });
142
+ Object.keys(a).map((e) => b(a[e]));
143
+ }, c = u("light"), g = u({
126
144
  light: {},
127
145
  dark: {}
128
- }), m = u({
146
+ }), h = u({
129
147
  light: {},
130
148
  dark: {}
131
- }), v = "dasTheme", h = "das-theme", T = (s) => {
149
+ }), B = "dasTheme", m = "das-theme", _ = (a) => {
132
150
  let e = {
133
151
  light: {},
134
152
  dark: {}
135
153
  };
136
- if (!s) return e;
137
- const { light: o = {}, dark: d = {}, base: a = {}, ...t } = s || {};
138
- e.light = { ...o, ...a }, e.dark = d || {};
139
- for (const l in t) {
140
- const n = t[l];
141
- if (typeof n == "string" && (e.light[l] = n), typeof n == "object")
142
- for (const i in n)
143
- e[i] || (e[i] = {}), e[i][l] || (e[i][l] = {}), e[i][l] = n[i];
154
+ if (!a) return e;
155
+ const { light: s = {}, dark: o = {}, qatar: l = {}, base: t = {}, ...r } = a || {};
156
+ e.light = { ...s, ...t }, e.dark = o || {};
157
+ for (const d in r) {
158
+ const i = r[d];
159
+ if (typeof i == "string" && (e.light[d] = i), typeof i == "object")
160
+ for (const n in i)
161
+ e[n] || (e[n] = {}), e[n][d] || (e[n][d] = {}), e[n][d] = i[n];
144
162
  }
145
163
  return e;
146
164
  };
147
- function _(s) {
148
- const e = "das-global-theme", o = "das-custom-theme";
149
- if (!document.getElementById(o)) {
150
- const a = document.createElement("style");
151
- a.appendChild(document.createTextNode("")), a.setAttribute("id", o), document.head.appendChild(a);
165
+ function E(a) {
166
+ const e = "das-global-theme", s = "das-custom-theme";
167
+ if (!document.getElementById(s)) {
168
+ const l = document.createElement("style");
169
+ l.appendChild(document.createTextNode("")), l.setAttribute("id", s), document.head.appendChild(l);
152
170
  }
153
171
  if (!document.getElementById(e)) {
154
- const a = document.createElement("style");
155
- a.appendChild(document.createTextNode("")), a.setAttribute("id", e), document.head.appendChild(a);
172
+ const l = document.createElement("style");
173
+ l.appendChild(document.createTextNode("")), l.setAttribute("id", e), document.head.appendChild(l);
156
174
  }
157
- s || (s = "custom");
158
- let d = document.getElementById(o);
159
- return s === "global" && (d = document.getElementById(e)), d.sheet;
175
+ a || (a = "custom");
176
+ let o = document.getElementById(s);
177
+ return a === "global" && (o = document.getElementById(e)), o.sheet;
160
178
  }
161
- const g = (s, e) => {
179
+ const x = (a, e) => {
162
180
  e || (e = "custom");
163
- const o = _(e), d = T(s);
164
- for (const t in d) {
165
- const l = d[t];
166
- for (const n in l) {
167
- const i = l[n], x = `${h}-${t}`;
168
- o.insertRule(`.${x} { ${n}:${i} } `, o.cssRules.length);
181
+ const s = E(e), o = _(a);
182
+ for (const t in o) {
183
+ const r = o[t];
184
+ for (const d in r) {
185
+ const i = r[d], n = `${m}-${t}`;
186
+ s.insertRule(`.${n} { ${d}:${i} } `, s.cssRules.length);
169
187
  }
170
- e === "global" && (m.value[t] || (m.value[t] = {}), m.value[t] = { ...m.value[t], ...l }), e === "custom" && (c.value[t] || (c.value[t] = {}), c.value[t] = { ...c.value[t], ...l });
188
+ e === "global" && (h.value[t] || (h.value[t] = {}), h.value[t] = { ...h.value[t], ...r }), e === "custom" && (g.value[t] || (g.value[t] = {}), g.value[t] = { ...g.value[t], ...r });
171
189
  }
172
- const a = `${h}-${r.value}`;
173
- document.body.classList.contains(a) || document.body.classList.add(a);
174
- }, C = async (s) => {
175
- var d, a;
176
- const e = window[v];
177
- e && g(e, "global");
178
- let o = Object.assign(((d = s == null ? void 0 : s.theme) == null ? void 0 : d.glob) || {});
179
- (a = s == null ? void 0 : s.microApps) == null || a.map((t) => {
180
- var l;
181
- o = Object.assign(o, ((l = t.theme) == null ? void 0 : l.glob) || {});
182
- }), Object.values(o).filter((t) => !!t).flat().map((t) => g(t));
183
- }, D = (s) => {
184
- document.body.classList.add(`${h}-light`), s === "light" && document.body.classList.remove(`${h}-${r.value}`), r.value = s, document.body.classList.add(`${h}-${r.value}`);
185
- }, B = (s) => b(() => {
186
- var e, o, d, a;
187
- return ((o = (e = m.value) == null ? void 0 : e[r.value]) == null ? void 0 : o[s]) || ((a = (d = c.value) == null ? void 0 : d[r.value]) == null ? void 0 : a[s]) || s;
188
- }), k = (s) => `var(${s})`, R = B;
190
+ const l = `${m}-${c.value}`;
191
+ document.body.classList.contains(l) || document.body.classList.add(l);
192
+ }, z = async (a) => {
193
+ var o, l;
194
+ const e = window[B];
195
+ e && x(e, "global");
196
+ let s = Object.assign(((o = a == null ? void 0 : a.theme) == null ? void 0 : o.glob) || {});
197
+ (l = a == null ? void 0 : a.microApps) == null || l.map((t) => {
198
+ var r;
199
+ s = Object.assign(s, ((r = t.theme) == null ? void 0 : r.glob) || {});
200
+ }), Object.values(s).filter((t) => !!t).flat().map((t) => x(t));
201
+ }, $ = (a) => {
202
+ document.body.classList.add(`${m}-light`), a === "light" && document.body.classList.remove(`${m}-${c.value}`), c.value = a, document.body.classList.add(`${m}-${c.value}`);
203
+ }, R = () => c.value, C = (a) => F(() => {
204
+ var e, s, o, l, t, r, d, i;
205
+ return ((s = (e = h.value) == null ? void 0 : e[c.value]) == null ? void 0 : s[a]) || ((l = (o = g.value) == null ? void 0 : o[c.value]) == null ? void 0 : l[a]) || ((r = (t = h.value) == null ? void 0 : t.light) == null ? void 0 : r[a]) || ((i = (d = g.value) == null ? void 0 : d.light) == null ? void 0 : i[a]) || a;
206
+ }), k = (a) => `var(${a})`, I = C;
189
207
  export {
190
- r as currentTheme,
191
- B as getThemeRule,
208
+ c as currentTheme,
209
+ R as getTheme,
210
+ C as getThemeRule,
192
211
  k as getVar,
193
- R as getVarValue,
194
- C as initTheme,
195
- z as setGlobalThemeRule,
196
- D as setTheme,
197
- g as setThemeRule
212
+ I as getVarValue,
213
+ z as initTheme,
214
+ T as setGlobalThemeRule,
215
+ $ as setTheme,
216
+ x as setThemeRule
198
217
  };
Binary file
@@ -2,7 +2,7 @@
2
2
  export declare const getPersonalConfig: () => unknown;
3
3
  /** 获取租户详情 */
4
4
  export declare const getTenantConfig: () => unknown;
5
- /** 获取当前登录用户租户信息 == 用来获取语言类型判断是否需要显示语言切换栏目,为2则需要显示语言切换栏目 */
5
+ /** 获取当前登录用户租户信息 == 用来获取语言类型判断是否需要显示语言切换栏目,小于2则不显示语言切换栏目 */
6
6
  export declare const getCurrentTenatConfig: () => unknown;
7
7
  /** 获取租户列表 */
8
8
  export declare const getTenantList: () => unknown;
@@ -4,10 +4,11 @@ declare const currentTheme: import('vue').Ref<any, any>;
4
4
  declare const setThemeRule: (data: any, type?: "global" | "custom") => void;
5
5
  declare const initTheme: (opt?: any) => any;
6
6
  declare const setTheme: (value: string) => void;
7
+ declare const getTheme: () => any;
7
8
  /** 获取css var实际值 */
8
9
  declare const getThemeRule: (key: string) => import('vue').ComputedRef<any>;
9
10
  /** 获取css var字符串 */
10
11
  declare const getVar: (key: string) => string;
11
12
  /** 获取css var实际值 */
12
13
  declare const getVarValue: (key: string) => import('vue').ComputedRef<any>;
13
- export { initTheme, setTheme, getThemeRule, currentTheme, setThemeRule, getVar, getVarValue, setGlobalThemeRule };
14
+ export { initTheme, setTheme, getTheme, getThemeRule, currentTheme, setThemeRule, getVar, getVarValue, setGlobalThemeRule, };
Binary file
Binary file