yxuse 1.0.63 → 1.0.65

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/lib/index.cjs2.js CHANGED
@@ -1 +1 @@
1
- "use strict";var i=(r,o,e)=>new Promise((t,a)=>{var n=c=>{try{s(e.next(c))}catch(u){a(u)}},g=c=>{try{s(e.throw(c))}catch(u){a(u)}},s=c=>c.done?t(c.value):Promise.resolve(c.value).then(n,g);s((e=e.apply(r,o)).next())});const _=require("./index.cjs3.js"),D=require("./index.cjs4.js"),m=require("./index.cjs5.js"),w=require("./index.cjs6.js"),C=require("./index.cjs7.js"),v={green:{common:{color:{"main-100":"rgba(80, 165, 122, 1)","main-50":"rgba(80, 165, 122, 0.5)","main-25":"rgba(80, 165, 122, 0.25)","main-15":"rgba(80, 165, 122, 0.15)","main-5":"rgba(80, 165, 122, 0.05)","error-100":"rgba(255, 152, 146, 1)","error-50":"rgba(255, 152, 146, 0.5)","error-25":"rgba(255, 152, 146, 0.25)","error-15":"rgba(255, 152, 146, 0.15)","error-5":"rgba(255, 152, 146, 0.05)","warning-100":"rgba(249, 162, 33, 1)","warning-50":"rgba(249, 162, 33, 0.5)","warning-25":"rgba(249, 162, 33, 0.25)","warning-15":"rgba(249, 162, 33, 0.15)","warning-5":"rgba(249, 162, 33, 0.05)","info-100":"rgba(133, 233, 183, 1)","info-50":"rgba(133, 233, 183, 0.5)","info-25":"rgba(133, 233, 183, 0.25)","info-15":"rgba(133, 233, 183, 0.15)","info-5":"rgba(133, 233, 183, 0.05)","neutral-100":"rgba(85, 221, 221, 1)","neutral-50":"rgba(85, 221, 221, 0.5)","neutral-25":"rgba(85, 221, 221, 0.25)","neutral-15":"rgba(85, 221, 221, 0.15)","neutral-5":"rgba(85, 221, 221, 0.05)"},background:{"error-gradual":"linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)","warning-gradual":"linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)","success-gradual":"linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)","success-gradient":"#D5ECBE 0%, rgba(234,255,233,0.35) 100%","warning-gradient":"#FFE4BC 0%, rgba(255,250,233,0.35) 100%","error-gradient":"#FFCECB 0%, rgba(255,235,233,0.35) 100%",page:"rgba(241, 243, 242, 1)","main-content-special":"rgba(103, 186, 145, 0.10)",section:"rgba(252, 255, 253, 1)",success:"#52F998",warning:"#F9A221",error:"#FF9892"},button:{background:"rgba(103, 186, 145, 0.10)","border-color":"rgba(80, 165, 122, 1)","text-color":"rgba(80, 165, 122, 1)","active-background":"rgba(80, 165, 122, 1)","active-border-color":"rgba(154, 209, 162, 1)","active-text-color":"#fff"},checkbox:{background:"rgba(216, 233, 219, 1)","icon-color":"rgba(80, 165, 122, 0)","border-color":"rgba(154, 209, 162, 1)","text-color":"#9AD1A2","checked-text-color":"#1D4B34","checked-background":"rgba(216, 233, 219, 1)","checked-icon-color":"rgba(80, 165, 122, 1)","checked-border-color":"rgba(154, 209, 162, 1)"},radio:{background:"rgba(191, 225, 209, 1)","icon-border-color":"rgba(191, 225, 209, 1)","icon-checked-background":"rgba(103, 186, 145, 1)","icon-checked-point-background":"rgba(210, 255, 218, 1)"},switch:{background:"#637B6B","icon-point-background":"#fff","icon-checked-point-background":"#90E6BA","checked-background":"#9BE9C2"},input:{color:"#1D4B34",background:"#FFFFFF","border-color":"#A8B6AF","placeholder-color":"rgba(29,75,52,0.5)","hover-background":"#FFFFFF","hover-border-color":"#50A57A","hover-color":"#1D4B34","active-background":"#FFFFFF","active-border-color":"#50A57A","active-color":"#1D4B34","disabled-background":"#FBFBFB","disabled-border-color":"#7B8A83","disabled-color":"#7B8A83","append-background":"transparent","append-color":"#50A57A"},select:{"dropdown-background":"rgba(237, 246, 239, 1)","dropdown-border-color":"rgba(80, 165, 122, 1)","dropdown-item-color":"rgba(80, 165, 122, 1)","dropdown-item-hover-background":"rgba(178, 220, 198, 1)","dropdown-item-hover-color":"rgba(29, 75, 52, 1)","dropdown-item-selected-background":"rgba(178, 220, 198, 1)","dropdown-item-selected-color":"rgba(29, 75, 52, 1)"},tree:{text:"rgba(99,123,107,0.50)"},layout:{"nav-background":"#fff","view-background":"#F1F3F2"},table:{"header-background":"#67BA91","header-text-color":"#fff","row-background":"#F8FFF9","row-odd-background":"#EDFBF1","row-border-bottom-color":"transparent","row-text-color":"#1D4B34","row-success-background":"linear-gradient(82deg, rgba(85,196,39,0.22) 0%, rgba(85,196,39,0) 100%)","row-error-background":"linear-gradient(82deg, rgba(234,111,111,0.22) 0%, rgba(234,111,111,0) 100%)","row-warning-background":"linear-gradient(82deg, rgba(248,184,90,0.22) 0%, rgba(248,184,90,0) 100%)","row-hover-background":"linear-gradient(82deg, #CBF7DD 0%, #EEFFF1 100%)","row-hover-text-color":"rgba(29, 75, 52, 1)"},chart:{pie_color_1:"#50A57A",pie_color_2:"#F8B85A",pie_color_3:"#FF9892",pie_color_4:"#55DDDD",pie_color_5:"#85E9B7",line_color_1:"#50A57A",line_color_2:"#F8B85A",line_color_3:"#FF9892",line_color_4:"#55DDDD",line_color_5:"#85E9B7",line_title_color:"#637B6B",line_xAxis_color:"#50A57A",line_yAxis_color:"#50A57A",line_markLine_color:"#FF9892",line_splitLine_color:"#DBEEE3"},message:{},text:{main:"#50A57A",deep:"#1D4B34",light:"rgba(80, 165, 122, 0.50)",paler:"#637B6B",success:"#52F998",warning:"#F9B652",error:"#FF7A7A",white:"#fff",light_gray:"#B0BDB4"},dialog:{"header-background":"#fff","body-background":"#fff","footer-background":"#fff"},progress:{background:"#CADFD3","active-background":"#67BA91"},icon:{"title-main":"#DAF1E5","title-assist":"#F9A221","title-assist-2":"#50A57A","active-color":"rgba(80,165,122,1)","active-light-color":"#F9A221"}},cloud:{},"station-control-center":{"equipment-line-status-NORMAL-SFED":"#F9A221","equipment-line-status-NORMAL":"#50A57A","equipment-line-status-WARN":"#FF9892","equipment-line-status-OFF_LINE":"#D1D3D2","equipment-status-NORMAL":"#50A57A","equipment-status-WARN":"#FF9892","equipment-status-OFF_LINE":"#D1D3D2","equipment-background-NORMAL":"#F9FCF9","equipment-border-NORMAL":"1px solid #50A57A","equipment-background-WARN":"#F9FBFC","equipment-border-WARN":"1px solid #FF9892","equipment-background-OFF_LINE":"#E9F2EE","equipment-border-OFF_LINE":"1px solid #fff","equipment-color-LHPC-NORMAL":"#fff","equipment-background-LHPC-NORMAL":"linear-gradient(90deg, #50A57A 0%, rgba(80,165,122,0.3) 100%)","equipment-color-LHPC-NORMAL-SFED":"#fff","equipment-background-LHPC-NORMAL-SFED":"linear-gradient(90deg, #F9A221 0%, rgba(255,223,165,0.38) 100%)","equipment-color-LHPC-OFF_LINE":"#637B6B","equipment-background-LHPC-OFF_LINE":"linear-gradient(90deg, #D1D3D2 0%, rgba(209,211,210,0) 100%)","equipment-ball-background":"#9DCBB4","equipment-ball-LINE-NORMAL":"#50A57A","equipment-ball-LINE-OFF_LINE":"#D1D3D2","equipment-ball-background-SFED":"#FBE5B7","equipment-ball-LINE-NORMAL-SFED":"#F9A221","equipment-ball-LINE-OFF_LINE-SFED":"#D1D3D2"}},blue:{common:{color:{"main-100":"#0A2F52","main-50":"#5477CF","main-25":"#3E75CF","main-15":"#E4EDFF","main-5":"#5477CF","error-100":"#FF9892","error-50":"#FFF4F3","error-25":"#F9EACE","error-15":"rgba(255, 152, 146, 0.15)","error-5":"rgba(255, 152, 146, 0.05)","warning-100":"#F9A221","warning-50":"#F8B85A","warning-25":"#F9EACE","warning-15":"rgba(249, 162, 33, 0.15)","warning-5":"rgba(249, 162, 33, 0.05)","info-100":"rgba(133, 233, 183, 1)","info-50":"rgba(133, 233, 183, 0.5)","info-25":"rgba(133, 233, 183, 0.25)","info-15":"rgba(133, 233, 183, 0.15)","info-5":"rgba(133, 233, 183, 0.05)","neutral-100":"rgba(85, 221, 221, 1)","neutral-50":"rgba(85, 221, 221, 0.5)","neutral-25":"rgba(85, 221, 221, 0.25)","neutral-15":"rgba(85, 221, 221, 0.15)","neutral-5":"rgba(85, 221, 221, 0.05)"},background:{"error-gradual":"#FF9892","warning-gradual":"#F8B85A","success-gradual":"linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)","success-gradient":"#D5ECBE 0%, rgba(234,255,233,0.35) 100%","warning-gradient":"#FFE4BC 0%, rgba(255,250,233,0.35) 100%","error-gradient":"#FFCECB 0%, rgba(255,235,233,0.35) 100%",page:"rgba(241, 243, 242, 1)","main-content-special":"rgba(103, 186, 145, 0.10)",section:"rgba(252, 255, 253, 1)",success:"rgba(80, 165, 122, 1)",warning:"#F9A221",error:"#FF9892"},button:{background:"rgba(103, 186, 145, 0.10)","border-color":"rgba(80, 165, 122, 1)","text-color":"rgba(80, 165, 122, 1)","active-background-color":"rgba(80, 165, 122, 1)","active-border-color":"rgba(154, 209, 162, 1)","active-text-color":"#fff"},checkbox:{background:"rgba(216, 233, 219, 1)","icon-color":"rgba(80, 165, 122, 0)","border-color":"rgba(154, 209, 162, 1)","text-color":"#9AD1A2","checked-text-color":"#1D4B34","checked-background":"rgba(216, 233, 219, 1)","checked-icon-color":"rgba(80, 165, 122, 1)","checked-border-color":"rgba(154, 209, 162, 1)"},radio:{background:"rgba(191, 225, 209, 1)","icon-border-color":"rgba(191, 225, 209, 1)","icon-checked-background":"rgba(103, 186, 145, 1)","icon-checked-point-background":"rgba(210, 255, 218, 1)"},switch:{background:"#637B6B","icon-point-background":"#fff","icon-checked-point-background":"#90E6BA","checked-background":"#9BE9C2"},input:{background:"rgba(237, 246, 239, 1)","border-color":"rgba(80, 165, 122, 1)",color:"rgba(29, 75, 52, 1)","placeholder-color":"rgba(80, 165, 122, 1)","hover-background":"rgba(237, 246, 239, 0.30)","hover-border-color":"rgba(80, 165, 122, 1)","hover-color":"rgba(80, 165, 122, 1)","active-background":"rgba(237, 246, 239, 0.30)","active-border-color":"rgba(80, 165, 122, 1)","active-color":"rgba(80, 165, 122, 1)","disabled-background":"rgba(219, 232, 221, 1)","disabled-border-color":"#fff","disabled-color":"rgba(80, 165, 122, 0.5)","append-background":"transparent","append-color":"#50A57A"},select:{"dropdown-background":"rgba(237, 246, 239, 1)","dropdown-border-color":"rgba(80, 165, 122, 1)","dropdown-item-color":"rgba(80, 165, 122, 1)","dropdown-item-hover-background":"rgba(178, 220, 198, 1)","dropdown-item-hover-color":"rgba(29, 75, 52, 1)","dropdown-item-selected-background":"rgba(178, 220, 198, 1)","dropdown-item-selected-color":"rgba(29, 75, 52, 1)"},tree:{text:"rgba(99,123,107,0.50)"},layout:{"nav-background":"#fff","view-background":"#F1F3F2"},table:{"header-background":"#5477CF","header-text-color":"#fff","row-background":"#F9FBFF","row-odd-background":"#F9FBFF","row-border-bottom-color":"#E4EDFF","row-text-color":"#0A2F52","row-error-background":"linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)","row-warning-background":"linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)","row-hover-background":"rgba(62,117,207,0.2)","row-hover-text-color":"rgba(29, 75, 52, 1)"},chart:{pie_color_1:"#50A57A",pie_color_2:"#F8B85A",pie_color_3:"#FF9892",pie_color_4:"#55DDDD",pie_color_5:"#85E9B7",line_color_1:"#50A57A",line_color_2:"#F8B85A",line_color_3:"#FF9892",line_color_4:"#55DDDD",line_color_5:"#85E9B7",line_title_color:"#637B6B",line_xAxis_color:"#50A57A",line_yAxis_color:"#50A57A",line_markLine_color:"#FF9892",line_splitLine_color:"#DBEEE3"},message:{},text:{main:"#50A57A",deep:"#1D4B34",light:"rgba(80, 165, 122, 0.50)",paler:"#637B6B",success:"#8FF59E",warning:"#F8B85A",error:"#FF9892",white:"#fff",light_gray:"#B0BDB4"},dialog:{"header-background":"#fff","body-background":"#fff","footer-background":"#fff"},progress:{background:"#CADFD3","active-background":"#67BA91"},icon:{"title-main":"#DAF1E5","title-assist":"#F9A221","title-assist-2":"#50A57A","active-color":"rgba(80,165,122,1)","active-light-color":"#F9A221"}},cloud:{},"station-control-center":{}}},p=()=>i(exports,null,function*(){let r=l(),o="";const{data:e}=yield m.getUserThemeList();if(r)o=e.find(a=>a.id===r).themeUrl;else{const n=e.find(g=>g.defaultTheme===1)||e[0];o=n.themeUrl,r=n.id}const t=yield F(o);h({themeCssVar:t,themeId:r}),d.onmessage=a=>{const n=a.data;n.type==="theme"&&F(n.data.themeUrl)}}),h=({themeCssVar:r,themeId:o})=>{const e=localStorage.getItem("ttcGlobalState")||"{}",t=JSON.parse(e);t.theme={themeCssVar:r,id:o},localStorage.setItem("ttcGlobalState",JSON.stringify(t))},A=r=>i(exports,null,function*(){const o=yield F(r.themeUrl);h({themeCssVar:o,themeId:r==null?void 0:r.id}),d.postMessage({type:"theme",data:r})}),k=()=>{const r=b(),o=document.documentElement;Object.keys(r).forEach(e=>{Object.keys(r[e]).forEach(t=>{const a=`--${e}-${t}`;o.style.setProperty(a,r[e][t])})})},F=r=>i(exports,null,function*(){const e=yield(yield fetch(r)).json(),t=document.documentElement;return Object.keys(e).forEach(a=>{Object.keys(e[a]).forEach(n=>{const g=`--${a}-${n}`;t.style.setProperty(g,e[a][n])})}),e}),f=()=>i(exports,null,function*(){const{data:r}=yield m.getUserThemeList(),o=r.find(t=>t.defaultTheme===1);return o?o.themeUrl:r[0].themeUrl}),l=()=>{var e;const r=localStorage.getItem("ttcGlobalState"),o=r&&((e=JSON.parse(r))==null?void 0:e.theme);return(o==null?void 0:o.id)||null},b=()=>{var e;const r=localStorage.getItem("ttcGlobalState");return(r&&((e=JSON.parse(r))==null?void 0:e.theme)).themeCssVar},B=r=>b()[r]||{},E=r=>{const o=l(),e=v[o][r],t=document.documentElement;Object.keys(e).forEach(a=>{const n=`--${a}`;t.style.setProperty(n,e[a])})},L=Object.freeze(Object.defineProperty({__proto__:null,changeTheme:A,getCurTheme:l,getCurThemeCssVar:b,getDefaultThemeUrl:f,getGroupColor:B,install:p,installSystemTheme:E,updateTheme:k},Symbol.toStringTag,{value:"Module"})),d=new BroadcastChannel("YXUSE_BC"),q={utils:_.utils,api:m.api,theme:L,icons:D.icons,components:w.components,directives:C.directives,BC:d};exports.BC=d;exports.changeTheme=A;exports.getCurTheme=l;exports.getCurThemeCssVar=b;exports.getDefaultThemeUrl=f;exports.getGroupColor=B;exports.index=q;exports.install=p;exports.installSystemTheme=E;exports.updateTheme=k;
1
+ "use strict";var m=(t,o,e)=>new Promise((c,s)=>{var n=r=>{try{l(e.next(r))}catch(h){s(h)}},a=r=>{try{l(e.throw(r))}catch(h){s(h)}},l=r=>r.done?c(r.value):Promise.resolve(r.value).then(n,a);l((e=e.apply(t,o)).next())});const w=require("./index.cjs3.js"),S=require("./index.cjs4.js"),d=require("./index.cjs5.js"),C=require("./index.cjs6.js"),E=require("./index.cjs7.js"),V="@font-face {font-family: 'YX-TITLE';font-size: 16px; src: url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699612675710_ALIBABAPUHUITI-2-105-HEAVY.TTF') format('woff'), url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699612675710_ALIBABAPUHUITI-2-105-HEAVY.TTF') format('woff2'); font-style: normal;font-display: swap;}",_="@font-face { font-family: 'YX-SP-TITLE'; font-size: 16px; src: url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699844184489_bt.ttf') format('woff'),url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699844184489_bt.ttf') format('woff2');font-style: normal; font-display: swap;}",A="@font-face {font-family: 'YX-TEXT'; font-size: 16px;src: url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699611032932_ALIBABAPUHUITI-2-65-MEDIUM.TTF') format('woff'),url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699611032932_ALIBABAPUHUITI-2-65-MEDIUM.TTF') format('woff2'); font-style: normal; font-display: swap;}",B=V+_+A,p=()=>m(exports,null,function*(){var s;let t=T();const{data:o}=yield d.getUserThemeList();let e=t?(s=o.find(n=>n.id===t))==null?void 0:s.themeUrl:"";if(!t||!e){const a=o.find(l=>l.defaultTheme===1)||o[0];e=a.themeUrl,t=a.id}const c=yield f(e);y({themeCssVar:c,themeId:t}),L(),i.onmessage=n=>{const a=n.data;a.type==="theme"&&f(a.data.themeUrl)},console.log("主题初始化完毕!!!")}),L=()=>{const t=document.createElement("style");t.innerHTML=B,document.head.appendChild(t)},y=({themeCssVar:t,themeId:o})=>{const e=localStorage.getItem("ttcGlobalState")||"{}",c=JSON.parse(e);c.theme={themeCssVar:t,id:o},localStorage.setItem("ttcGlobalState",JSON.stringify(c))},b=t=>m(exports,null,function*(){const o=yield f(t.themeUrl);y({themeCssVar:o,themeId:t==null?void 0:t.id}),i.postMessage({type:"theme",data:t})}),g=()=>{const t=u(),o=document.documentElement;Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(c=>{const s=`--${e}-${c}`;o.style.setProperty(s,t[e][c])})})},f=t=>m(exports,null,function*(){const e=yield(yield fetch(t)).json(),c=document.documentElement;return Object.keys(e).forEach(s=>{Object.keys(e[s]).forEach(n=>{const a=`--${s}-${n}`;c.style.setProperty(a,e[s][n])})}),e}),I=()=>m(exports,null,function*(){const{data:t}=yield d.getUserThemeList(),o=t.find(c=>c.defaultTheme===1);return o?o.themeUrl:t[0].themeUrl}),T=()=>{var e;const t=localStorage.getItem("ttcGlobalState"),o=t&&((e=JSON.parse(t))==null?void 0:e.theme);return(o==null?void 0:o.id)||null},u=()=>{var e;const t=localStorage.getItem("ttcGlobalState");return(t&&((e=JSON.parse(t))==null?void 0:e.theme)).themeCssVar},U=t=>u()[t]||{},k=Object.freeze(Object.defineProperty({__proto__:null,changeTheme:b,getCurTheme:T,getCurThemeCssVar:u,getDefaultThemeUrl:I,getGroupColor:U,install:p,updateTheme:g},Symbol.toStringTag,{value:"Module"})),i=new BroadcastChannel("YXUSE_BC"),O={utils:w.utils,api:d.api,theme:k,icons:S.icons,components:C.components,directives:E.directives,BC:i};exports.BC=i;exports.changeTheme=b;exports.getCurTheme=T;exports.getCurThemeCssVar=u;exports.getDefaultThemeUrl=I;exports.getGroupColor=U;exports.index=O;exports.install=p;exports.updateTheme=g;
package/lib/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./index.es3.js";
2
2
  import "./index.es4.js";
3
3
  import "./index.es5.js";
4
- import { B as s, f as B } from "./index.es2.js";
4
+ import { B as s, e as B } from "./index.es2.js";
5
5
  import "./index.es6.js";
6
6
  import "./index.es7.js";
7
7
  import "./index.es8.js";
package/lib/index.es2.js CHANGED
@@ -1,476 +1,103 @@
1
- var i = (r, e, o) => new Promise((t, a) => {
2
- var n = (c) => {
1
+ var m = (t, o, e) => new Promise((s, a) => {
2
+ var c = (r) => {
3
3
  try {
4
- l(o.next(c));
5
- } catch (b) {
6
- a(b);
4
+ l(e.next(r));
5
+ } catch (f) {
6
+ a(f);
7
7
  }
8
- }, g = (c) => {
8
+ }, n = (r) => {
9
9
  try {
10
- l(o.throw(c));
11
- } catch (b) {
12
- a(b);
10
+ l(e.throw(r));
11
+ } catch (f) {
12
+ a(f);
13
13
  }
14
- }, l = (c) => c.done ? t(c.value) : Promise.resolve(c.value).then(n, g);
15
- l((o = o.apply(r, e)).next());
14
+ }, l = (r) => r.done ? s(r.value) : Promise.resolve(r.value).then(c, n);
15
+ l((e = e.apply(t, o)).next());
16
16
  });
17
- import { u as A } from "./index.es3.js";
18
- import { i as k } from "./index.es4.js";
19
- import { g as m, a as f } from "./index.es5.js";
20
- import { c as h } from "./index.es6.js";
21
- import { d as B } from "./index.es7.js";
22
- const E = {
23
- green: {
24
- common: {
25
- color: {
26
- "main-100": "rgba(80, 165, 122, 1)",
27
- "main-50": "rgba(80, 165, 122, 0.5)",
28
- "main-25": "rgba(80, 165, 122, 0.25)",
29
- "main-15": "rgba(80, 165, 122, 0.15)",
30
- "main-5": "rgba(80, 165, 122, 0.05)",
31
- "error-100": "rgba(255, 152, 146, 1)",
32
- "error-50": "rgba(255, 152, 146, 0.5)",
33
- "error-25": "rgba(255, 152, 146, 0.25)",
34
- "error-15": "rgba(255, 152, 146, 0.15)",
35
- "error-5": "rgba(255, 152, 146, 0.05)",
36
- "warning-100": "rgba(249, 162, 33, 1)",
37
- "warning-50": "rgba(249, 162, 33, 0.5)",
38
- "warning-25": "rgba(249, 162, 33, 0.25)",
39
- "warning-15": "rgba(249, 162, 33, 0.15)",
40
- "warning-5": "rgba(249, 162, 33, 0.05)",
41
- "info-100": "rgba(133, 233, 183, 1)",
42
- "info-50": "rgba(133, 233, 183, 0.5)",
43
- "info-25": "rgba(133, 233, 183, 0.25)",
44
- "info-15": "rgba(133, 233, 183, 0.15)",
45
- "info-5": "rgba(133, 233, 183, 0.05)",
46
- "neutral-100": "rgba(85, 221, 221, 1)",
47
- "neutral-50": "rgba(85, 221, 221, 0.5)",
48
- "neutral-25": "rgba(85, 221, 221, 0.25)",
49
- "neutral-15": "rgba(85, 221, 221, 0.15)",
50
- "neutral-5": "rgba(85, 221, 221, 0.05)"
51
- },
52
- background: {
53
- "error-gradual": "linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)",
54
- "warning-gradual": "linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)",
55
- "success-gradual": "linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)",
56
- "success-gradient": "#D5ECBE 0%, rgba(234,255,233,0.35) 100%",
57
- "warning-gradient": "#FFE4BC 0%, rgba(255,250,233,0.35) 100%",
58
- "error-gradient": "#FFCECB 0%, rgba(255,235,233,0.35) 100%",
59
- page: "rgba(241, 243, 242, 1)",
60
- "main-content-special": "rgba(103, 186, 145, 0.10)",
61
- section: "rgba(252, 255, 253, 1)",
62
- success: "#52F998",
63
- warning: "#F9A221",
64
- error: "#FF9892"
65
- },
66
- button: {
67
- background: "rgba(103, 186, 145, 0.10)",
68
- "border-color": "rgba(80, 165, 122, 1)",
69
- "text-color": "rgba(80, 165, 122, 1)",
70
- "active-background": "rgba(80, 165, 122, 1)",
71
- "active-border-color": "rgba(154, 209, 162, 1)",
72
- "active-text-color": "#fff"
73
- },
74
- checkbox: {
75
- background: "rgba(216, 233, 219, 1)",
76
- "icon-color": "rgba(80, 165, 122, 0)",
77
- "border-color": "rgba(154, 209, 162, 1)",
78
- "text-color": "#9AD1A2",
79
- "checked-text-color": "#1D4B34",
80
- "checked-background": "rgba(216, 233, 219, 1)",
81
- "checked-icon-color": "rgba(80, 165, 122, 1)",
82
- "checked-border-color": "rgba(154, 209, 162, 1)"
83
- },
84
- radio: {
85
- background: "rgba(191, 225, 209, 1)",
86
- "icon-border-color": "rgba(191, 225, 209, 1)",
87
- "icon-checked-background": "rgba(103, 186, 145, 1)",
88
- "icon-checked-point-background": "rgba(210, 255, 218, 1)"
89
- },
90
- switch: {
91
- background: "#637B6B",
92
- "icon-point-background": "#fff",
93
- "icon-checked-point-background": "#90E6BA",
94
- "checked-background": "#9BE9C2"
95
- },
96
- input: {
97
- color: "#1D4B34",
98
- background: "#FFFFFF",
99
- "border-color": "#A8B6AF",
100
- "placeholder-color": "rgba(29,75,52,0.5)",
101
- "hover-background": "#FFFFFF",
102
- "hover-border-color": "#50A57A",
103
- "hover-color": "#1D4B34",
104
- "active-background": "#FFFFFF",
105
- "active-border-color": "#50A57A",
106
- "active-color": "#1D4B34",
107
- "disabled-background": "#FBFBFB",
108
- "disabled-border-color": "#7B8A83",
109
- "disabled-color": "#7B8A83",
110
- "append-background": "transparent",
111
- "append-color": "#50A57A"
112
- },
113
- select: {
114
- "dropdown-background": "rgba(237, 246, 239, 1)",
115
- "dropdown-border-color": "rgba(80, 165, 122, 1)",
116
- "dropdown-item-color": "rgba(80, 165, 122, 1)",
117
- "dropdown-item-hover-background": "rgba(178, 220, 198, 1)",
118
- "dropdown-item-hover-color": "rgba(29, 75, 52, 1)",
119
- "dropdown-item-selected-background": "rgba(178, 220, 198, 1)",
120
- "dropdown-item-selected-color": "rgba(29, 75, 52, 1)"
121
- },
122
- tree: {
123
- text: "rgba(99,123,107,0.50)"
124
- },
125
- layout: {
126
- "nav-background": "#fff",
127
- "view-background": "#F1F3F2"
128
- },
129
- table: {
130
- "header-background": "#67BA91",
131
- "header-text-color": "#fff",
132
- "row-background": "#F8FFF9",
133
- "row-odd-background": "#EDFBF1",
134
- //奇数行色值
135
- "row-border-bottom-color": "transparent",
136
- "row-text-color": "#1D4B34",
137
- "row-success-background": "linear-gradient(82deg, rgba(85,196,39,0.22) 0%, rgba(85,196,39,0) 100%)",
138
- "row-error-background": "linear-gradient(82deg, rgba(234,111,111,0.22) 0%, rgba(234,111,111,0) 100%)",
139
- "row-warning-background": "linear-gradient(82deg, rgba(248,184,90,0.22) 0%, rgba(248,184,90,0) 100%)",
140
- "row-hover-background": "linear-gradient(82deg, #CBF7DD 0%, #EEFFF1 100%)",
141
- "row-hover-text-color": "rgba(29, 75, 52, 1)"
142
- },
143
- chart: {
144
- pie_color_1: "#50A57A",
145
- pie_color_2: "#F8B85A",
146
- pie_color_3: "#FF9892",
147
- pie_color_4: "#55DDDD",
148
- pie_color_5: "#85E9B7",
149
- line_color_1: "#50A57A",
150
- line_color_2: "#F8B85A",
151
- line_color_3: "#FF9892",
152
- line_color_4: "#55DDDD",
153
- line_color_5: "#85E9B7",
154
- line_title_color: "#637B6B",
155
- line_xAxis_color: "#50A57A",
156
- line_yAxis_color: "#50A57A",
157
- line_markLine_color: "#FF9892",
158
- line_splitLine_color: "#DBEEE3"
159
- },
160
- message: {},
161
- text: {
162
- main: "#50A57A",
163
- deep: "#1D4B34",
164
- light: "rgba(80, 165, 122, 0.50)",
165
- paler: "#637B6B",
166
- success: "#52F998",
167
- warning: "#F9B652",
168
- error: "#FF7A7A",
169
- white: "#fff",
170
- light_gray: "#B0BDB4"
171
- },
172
- //弹窗
173
- dialog: {
174
- "header-background": "#fff",
175
- "body-background": "#fff",
176
- "footer-background": "#fff"
177
- },
178
- //进度条
179
- progress: {
180
- background: "#CADFD3",
181
- "active-background": "#67BA91"
182
- },
183
- icon: {
184
- "title-main": "#DAF1E5",
185
- "title-assist": "#F9A221",
186
- "title-assist-2": "#50A57A",
187
- "active-color": "rgba(80,165,122,1)",
188
- "active-light-color": "#F9A221"
189
- }
190
- },
191
- cloud: {},
192
- "station-control-center": {
193
- "equipment-line-status-NORMAL-SFED": "#F9A221",
194
- "equipment-line-status-NORMAL": "#50A57A",
195
- "equipment-line-status-WARN": "#FF9892",
196
- "equipment-line-status-OFF_LINE": "#D1D3D2",
197
- "equipment-status-NORMAL": "#50A57A",
198
- "equipment-status-WARN": "#FF9892",
199
- "equipment-status-OFF_LINE": "#D1D3D2",
200
- "equipment-background-NORMAL": "#F9FCF9",
201
- "equipment-border-NORMAL": "1px solid #50A57A",
202
- "equipment-background-WARN": "#F9FBFC",
203
- "equipment-border-WARN": "1px solid #FF9892",
204
- "equipment-background-OFF_LINE": "#E9F2EE",
205
- "equipment-border-OFF_LINE": "1px solid #fff",
206
- "equipment-color-LHPC-NORMAL": "#fff",
207
- "equipment-background-LHPC-NORMAL": "linear-gradient(90deg, #50A57A 0%, rgba(80,165,122,0.3) 100%)",
208
- "equipment-color-LHPC-NORMAL-SFED": "#fff",
209
- "equipment-background-LHPC-NORMAL-SFED": "linear-gradient(90deg, #F9A221 0%, rgba(255,223,165,0.38) 100%)",
210
- "equipment-color-LHPC-OFF_LINE": "#637B6B",
211
- "equipment-background-LHPC-OFF_LINE": "linear-gradient(90deg, #D1D3D2 0%, rgba(209,211,210,0) 100%)",
212
- "equipment-ball-background": "#9DCBB4",
213
- "equipment-ball-LINE-NORMAL": "#50A57A",
214
- "equipment-ball-LINE-OFF_LINE": "#D1D3D2",
215
- "equipment-ball-background-SFED": "#FBE5B7",
216
- "equipment-ball-LINE-NORMAL-SFED": "#F9A221",
217
- "equipment-ball-LINE-OFF_LINE-SFED": "#D1D3D2"
218
- }
219
- },
220
- blue: {
221
- common: {
222
- color: {
223
- "main-100": "#0A2F52",
224
- "main-50": "#5477CF",
225
- "main-25": "#3E75CF",
226
- "main-15": "#E4EDFF",
227
- "main-5": "#5477CF",
228
- "error-100": "#FF9892",
229
- "error-50": "#FFF4F3",
230
- "error-25": "#F9EACE",
231
- "error-15": "rgba(255, 152, 146, 0.15)",
232
- "error-5": "rgba(255, 152, 146, 0.05)",
233
- "warning-100": "#F9A221",
234
- "warning-50": "#F8B85A",
235
- "warning-25": "#F9EACE",
236
- "warning-15": "rgba(249, 162, 33, 0.15)",
237
- "warning-5": "rgba(249, 162, 33, 0.05)",
238
- "info-100": "rgba(133, 233, 183, 1)",
239
- "info-50": "rgba(133, 233, 183, 0.5)",
240
- "info-25": "rgba(133, 233, 183, 0.25)",
241
- "info-15": "rgba(133, 233, 183, 0.15)",
242
- "info-5": "rgba(133, 233, 183, 0.05)",
243
- "neutral-100": "rgba(85, 221, 221, 1)",
244
- "neutral-50": "rgba(85, 221, 221, 0.5)",
245
- "neutral-25": "rgba(85, 221, 221, 0.25)",
246
- "neutral-15": "rgba(85, 221, 221, 0.15)",
247
- "neutral-5": "rgba(85, 221, 221, 0.05)"
248
- },
249
- background: {
250
- "error-gradual": "#FF9892",
251
- "warning-gradual": "#F8B85A",
252
- "success-gradual": "linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)",
253
- "success-gradient": "#D5ECBE 0%, rgba(234,255,233,0.35) 100%",
254
- "warning-gradient": "#FFE4BC 0%, rgba(255,250,233,0.35) 100%",
255
- "error-gradient": "#FFCECB 0%, rgba(255,235,233,0.35) 100%",
256
- page: "rgba(241, 243, 242, 1)",
257
- "main-content-special": "rgba(103, 186, 145, 0.10)",
258
- section: "rgba(252, 255, 253, 1)",
259
- success: "rgba(80, 165, 122, 1)",
260
- warning: "#F9A221",
261
- error: "#FF9892"
262
- },
263
- button: {
264
- background: "rgba(103, 186, 145, 0.10)",
265
- "border-color": "rgba(80, 165, 122, 1)",
266
- "text-color": "rgba(80, 165, 122, 1)",
267
- "active-background-color": "rgba(80, 165, 122, 1)",
268
- "active-border-color": "rgba(154, 209, 162, 1)",
269
- "active-text-color": "#fff"
270
- },
271
- checkbox: {
272
- background: "rgba(216, 233, 219, 1)",
273
- "icon-color": "rgba(80, 165, 122, 0)",
274
- "border-color": "rgba(154, 209, 162, 1)",
275
- "text-color": "#9AD1A2",
276
- "checked-text-color": "#1D4B34",
277
- "checked-background": "rgba(216, 233, 219, 1)",
278
- "checked-icon-color": "rgba(80, 165, 122, 1)",
279
- "checked-border-color": "rgba(154, 209, 162, 1)"
280
- },
281
- radio: {
282
- background: "rgba(191, 225, 209, 1)",
283
- "icon-border-color": "rgba(191, 225, 209, 1)",
284
- "icon-checked-background": "rgba(103, 186, 145, 1)",
285
- "icon-checked-point-background": "rgba(210, 255, 218, 1)"
286
- },
287
- switch: {
288
- background: "#637B6B",
289
- "icon-point-background": "#fff",
290
- "icon-checked-point-background": "#90E6BA",
291
- "checked-background": "#9BE9C2"
292
- },
293
- input: {
294
- background: "rgba(237, 246, 239, 1)",
295
- "border-color": "rgba(80, 165, 122, 1)",
296
- color: "rgba(29, 75, 52, 1)",
297
- "placeholder-color": "rgba(80, 165, 122, 1)",
298
- "hover-background": "rgba(237, 246, 239, 0.30)",
299
- "hover-border-color": "rgba(80, 165, 122, 1)",
300
- "hover-color": "rgba(80, 165, 122, 1)",
301
- "active-background": "rgba(237, 246, 239, 0.30)",
302
- "active-border-color": "rgba(80, 165, 122, 1)",
303
- "active-color": "rgba(80, 165, 122, 1)",
304
- "disabled-background": "rgba(219, 232, 221, 1)",
305
- "disabled-border-color": "#fff",
306
- "disabled-color": "rgba(80, 165, 122, 0.5)",
307
- "append-background": "transparent",
308
- "append-color": "#50A57A"
309
- },
310
- select: {
311
- "dropdown-background": "rgba(237, 246, 239, 1)",
312
- "dropdown-border-color": "rgba(80, 165, 122, 1)",
313
- "dropdown-item-color": "rgba(80, 165, 122, 1)",
314
- "dropdown-item-hover-background": "rgba(178, 220, 198, 1)",
315
- "dropdown-item-hover-color": "rgba(29, 75, 52, 1)",
316
- "dropdown-item-selected-background": "rgba(178, 220, 198, 1)",
317
- "dropdown-item-selected-color": "rgba(29, 75, 52, 1)"
318
- },
319
- tree: {
320
- text: "rgba(99,123,107,0.50)"
321
- },
322
- layout: {
323
- "nav-background": "#fff",
324
- "view-background": "#F1F3F2"
325
- },
326
- table: {
327
- "header-background": "#5477CF",
328
- "header-text-color": "#fff",
329
- "row-background": "#F9FBFF",
330
- "row-odd-background": "#F9FBFF",
331
- //奇数行色值
332
- "row-border-bottom-color": "#E4EDFF",
333
- "row-text-color": "#0A2F52",
334
- "row-error-background": "linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)",
335
- "row-warning-background": "linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)",
336
- "row-hover-background": "rgba(62,117,207,0.2)",
337
- "row-hover-text-color": "rgba(29, 75, 52, 1)"
338
- },
339
- chart: {
340
- pie_color_1: "#50A57A",
341
- pie_color_2: "#F8B85A",
342
- pie_color_3: "#FF9892",
343
- pie_color_4: "#55DDDD",
344
- pie_color_5: "#85E9B7",
345
- line_color_1: "#50A57A",
346
- line_color_2: "#F8B85A",
347
- line_color_3: "#FF9892",
348
- line_color_4: "#55DDDD",
349
- line_color_5: "#85E9B7",
350
- line_title_color: "#637B6B",
351
- line_xAxis_color: "#50A57A",
352
- line_yAxis_color: "#50A57A",
353
- line_markLine_color: "#FF9892",
354
- line_splitLine_color: "#DBEEE3"
355
- },
356
- message: {},
357
- text: {
358
- main: "#50A57A",
359
- deep: "#1D4B34",
360
- light: "rgba(80, 165, 122, 0.50)",
361
- paler: "#637B6B",
362
- success: "#8FF59E",
363
- warning: "#F8B85A",
364
- error: "#FF9892",
365
- white: "#fff",
366
- light_gray: "#B0BDB4"
367
- },
368
- //弹窗
369
- dialog: {
370
- "header-background": "#fff",
371
- "body-background": "#fff",
372
- "footer-background": "#fff"
373
- },
374
- //进度条
375
- progress: {
376
- background: "#CADFD3",
377
- "active-background": "#67BA91"
378
- },
379
- icon: {
380
- "title-main": "#DAF1E5",
381
- "title-assist": "#F9A221",
382
- "title-assist-2": "#50A57A",
383
- "active-color": "rgba(80,165,122,1)",
384
- "active-light-color": "#F9A221"
385
- }
386
- },
387
- cloud: {},
388
- "station-control-center": {}
389
- }
390
- }, _ = () => i(void 0, null, function* () {
391
- let r = s(), e = "";
392
- const { data: o } = yield m();
393
- if (r)
394
- e = o.find((a) => a.id === r).themeUrl;
395
- else {
396
- const n = o.find((g) => g.defaultTheme === 1) || o[0];
397
- e = n.themeUrl, r = n.id;
17
+ import { u as y } from "./index.es3.js";
18
+ import { i as b } from "./index.es4.js";
19
+ import { g as d, a as I } from "./index.es5.js";
20
+ import { c as g } from "./index.es6.js";
21
+ import { d as w } from "./index.es7.js";
22
+ const U = "@font-face {font-family: 'YX-TITLE';font-size: 16px; src: url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699612675710_ALIBABAPUHUITI-2-105-HEAVY.TTF') format('woff'), url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699612675710_ALIBABAPUHUITI-2-105-HEAVY.TTF') format('woff2'); font-style: normal;font-display: swap;}", S = "@font-face { font-family: 'YX-SP-TITLE'; font-size: 16px; src: url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699844184489_bt.ttf') format('woff'),url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699844184489_bt.ttf') format('woff2');font-style: normal; font-display: swap;}", E = "@font-face {font-family: 'YX-TEXT'; font-size: 16px;src: url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699611032932_ALIBABAPUHUITI-2-65-MEDIUM.TTF') format('woff'),url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699611032932_ALIBABAPUHUITI-2-65-MEDIUM.TTF') format('woff2'); font-style: normal; font-display: swap;}", C = U + S + E, _ = () => m(void 0, null, function* () {
23
+ var a;
24
+ let t = T();
25
+ const { data: o } = yield d();
26
+ let e = t ? (a = o.find((c) => c.id === t)) == null ? void 0 : a.themeUrl : "";
27
+ if (!t || !e) {
28
+ const n = o.find((l) => l.defaultTheme === 1) || o[0];
29
+ e = n.themeUrl, t = n.id;
398
30
  }
399
- const t = yield d(e);
400
- p({ themeCssVar: t, themeId: r }), F.onmessage = (a) => {
401
- const n = a.data;
402
- n.type === "theme" && d(n.data.themeUrl);
403
- };
404
- }), p = ({ themeCssVar: r, themeId: e }) => {
405
- const o = localStorage.getItem("ttcGlobalState") || "{}", t = JSON.parse(o);
406
- t.theme = {
407
- themeCssVar: r,
408
- id: e
409
- }, localStorage.setItem("ttcGlobalState", JSON.stringify(t));
410
- }, D = (r) => i(void 0, null, function* () {
411
- const e = yield d(r.themeUrl);
412
- p({ themeCssVar: e, themeId: r == null ? void 0 : r.id }), F.postMessage({ type: "theme", data: r });
413
- }), w = () => {
414
- const r = u(), e = document.documentElement;
415
- Object.keys(r).forEach((o) => {
416
- Object.keys(r[o]).forEach((t) => {
417
- const a = `--${o}-${t}`;
418
- e.style.setProperty(a, r[o][t]);
31
+ const s = yield u(e);
32
+ p({ themeCssVar: s, themeId: t }), A(), i.onmessage = (c) => {
33
+ const n = c.data;
34
+ n.type === "theme" && u(n.data.themeUrl);
35
+ }, console.log("主题初始化完毕!!!");
36
+ }), A = () => {
37
+ const t = document.createElement("style");
38
+ t.innerHTML = C, document.head.appendChild(t);
39
+ }, p = ({ themeCssVar: t, themeId: o }) => {
40
+ const e = localStorage.getItem("ttcGlobalState") || "{}", s = JSON.parse(e);
41
+ s.theme = {
42
+ themeCssVar: t,
43
+ id: o
44
+ }, localStorage.setItem("ttcGlobalState", JSON.stringify(s));
45
+ }, V = (t) => m(void 0, null, function* () {
46
+ const o = yield u(t.themeUrl);
47
+ p({ themeCssVar: o, themeId: t == null ? void 0 : t.id }), i.postMessage({ type: "theme", data: t });
48
+ }), B = () => {
49
+ const t = h(), o = document.documentElement;
50
+ Object.keys(t).forEach((e) => {
51
+ Object.keys(t[e]).forEach((s) => {
52
+ const a = `--${e}-${s}`;
53
+ o.style.setProperty(a, t[e][s]);
419
54
  });
420
55
  });
421
- }, d = (r) => i(void 0, null, function* () {
422
- const o = yield (yield fetch(r)).json(), t = document.documentElement;
423
- return Object.keys(o).forEach((a) => {
424
- Object.keys(o[a]).forEach((n) => {
425
- const g = `--${a}-${n}`;
426
- t.style.setProperty(g, o[a][n]);
56
+ }, u = (t) => m(void 0, null, function* () {
57
+ const e = yield (yield fetch(t)).json(), s = document.documentElement;
58
+ return Object.keys(e).forEach((a) => {
59
+ Object.keys(e[a]).forEach((c) => {
60
+ const n = `--${a}-${c}`;
61
+ s.style.setProperty(n, e[a][c]);
427
62
  });
428
- }), o;
429
- }), C = () => i(void 0, null, function* () {
430
- const { data: r } = yield m(), e = r.find((t) => t.defaultTheme === 1);
431
- return e ? e.themeUrl : r[0].themeUrl;
432
- }), s = () => {
433
- var o;
434
- const r = localStorage.getItem("ttcGlobalState"), e = r && ((o = JSON.parse(r)) == null ? void 0 : o.theme);
435
- return (e == null ? void 0 : e.id) || null;
436
- }, u = () => {
437
- var o;
438
- const r = localStorage.getItem("ttcGlobalState");
439
- return (r && ((o = JSON.parse(r)) == null ? void 0 : o.theme)).themeCssVar;
440
- }, v = (r) => u()[r] || {}, L = (r) => {
441
- const e = s(), o = E[e][r], t = document.documentElement;
442
- Object.keys(o).forEach((a) => {
443
- const n = `--${a}`;
444
- t.style.setProperty(n, o[a]);
445
- });
446
- }, x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
63
+ }), e;
64
+ }), x = () => m(void 0, null, function* () {
65
+ const { data: t } = yield d(), o = t.find((s) => s.defaultTheme === 1);
66
+ return o ? o.themeUrl : t[0].themeUrl;
67
+ }), T = () => {
68
+ var e;
69
+ const t = localStorage.getItem("ttcGlobalState"), o = t && ((e = JSON.parse(t)) == null ? void 0 : e.theme);
70
+ return (o == null ? void 0 : o.id) || null;
71
+ }, h = () => {
72
+ var e;
73
+ const t = localStorage.getItem("ttcGlobalState");
74
+ return (t && ((e = JSON.parse(t)) == null ? void 0 : e.theme)).themeCssVar;
75
+ }, k = (t) => h()[t] || {}, L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
447
76
  __proto__: null,
448
- changeTheme: D,
449
- getCurTheme: s,
450
- getCurThemeCssVar: u,
451
- getDefaultThemeUrl: C,
452
- getGroupColor: v,
77
+ changeTheme: V,
78
+ getCurTheme: T,
79
+ getCurThemeCssVar: h,
80
+ getDefaultThemeUrl: x,
81
+ getGroupColor: k,
453
82
  install: _,
454
- installSystemTheme: L,
455
- updateTheme: w
456
- }, Symbol.toStringTag, { value: "Module" })), F = new BroadcastChannel("YXUSE_BC"), T = {
457
- utils: A,
458
- api: f,
459
- theme: x,
460
- icons: k,
461
- components: h,
462
- directives: B,
463
- BC: F
83
+ updateTheme: B
84
+ }, Symbol.toStringTag, { value: "Module" })), i = new BroadcastChannel("YXUSE_BC"), F = {
85
+ utils: y,
86
+ api: I,
87
+ theme: L,
88
+ icons: b,
89
+ components: g,
90
+ directives: w,
91
+ BC: i
464
92
  };
465
93
  export {
466
- F as B,
467
- s as a,
468
- u as b,
469
- D as c,
470
- v as d,
471
- L as e,
472
- T as f,
473
- C as g,
94
+ i as B,
95
+ T as a,
96
+ h as b,
97
+ V as c,
98
+ k as d,
99
+ F as e,
100
+ x as g,
474
101
  _ as i,
475
- w as u
102
+ B as u
476
103
  };
package/lib/theme.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js");require("./index.cjs5.js");require("./index.cjs3.js");require("./index.cjs8.js");require("./index.cjs9.js");require("./index.cjs4.js");require("./index.cjs6.js");require("./index.cjs7.js");exports.changeTheme=e.changeTheme;exports.getCurTheme=e.getCurTheme;exports.getCurThemeCssVar=e.getCurThemeCssVar;exports.getDefaultThemeUrl=e.getDefaultThemeUrl;exports.getGroupColor=e.getGroupColor;exports.install=e.install;exports.installSystemTheme=e.installSystemTheme;exports.updateTheme=e.updateTheme;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js");require("./index.cjs5.js");require("./index.cjs3.js");require("./index.cjs8.js");require("./index.cjs9.js");require("./index.cjs4.js");require("./index.cjs6.js");require("./index.cjs7.js");exports.changeTheme=e.changeTheme;exports.getCurTheme=e.getCurTheme;exports.getCurThemeCssVar=e.getCurThemeCssVar;exports.getDefaultThemeUrl=e.getDefaultThemeUrl;exports.getGroupColor=e.getGroupColor;exports.install=e.install;exports.updateTheme=e.updateTheme;
package/lib/theme.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as h, a as l, b as g, g as u, d as T, i as C, e as n, u as c } from "./index.es2.js";
1
+ import { c as g, a as h, b as u, g as l, d as T, i as C, u as c } from "./index.es2.js";
2
2
  import "./index.es5.js";
3
3
  import "./index.es3.js";
4
4
  import "./index.es8.js";
@@ -7,12 +7,11 @@ import "./index.es4.js";
7
7
  import "./index.es6.js";
8
8
  import "./index.es7.js";
9
9
  export {
10
- h as changeTheme,
11
- l as getCurTheme,
12
- g as getCurThemeCssVar,
13
- u as getDefaultThemeUrl,
10
+ g as changeTheme,
11
+ h as getCurTheme,
12
+ u as getCurThemeCssVar,
13
+ l as getDefaultThemeUrl,
14
14
  T as getGroupColor,
15
15
  C as install,
16
- n as installSystemTheme,
17
16
  c as updateTheme
18
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yxuse",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "yx"
Binary file
Binary file