nxd-plugin 1.7.82 → 1.7.84

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.
Files changed (100) hide show
  1. package/dist/chunks/{component-AiChat-BU0rzEqA.mjs → component-AiChat-BXNBLM1G.mjs} +382 -342
  2. package/dist/chunks/{component-AqiMonitor-B0X5SmQB.mjs → component-AqiMonitor-C_V1Nuf_.mjs} +1 -1
  3. package/dist/chunks/{component-ChartCumulativePre-D50ZlxtD.mjs → component-ChartCumulativePre-Bo28Bgaa.mjs} +2 -2
  4. package/dist/chunks/{component-ChartServiceMaterial-D35UWUD8.mjs → component-ChartServiceMaterial-DELVCsKj.mjs} +2 -2
  5. package/dist/chunks/{component-Duty-CuVSfL6B.mjs → component-Duty-dyZZ4vHt.mjs} +2 -2
  6. package/dist/chunks/{component-EarlyWarningStatistic-DBLY754e.mjs → component-EarlyWarningStatistic-CBJfrRsV.mjs} +2 -2
  7. package/dist/chunks/component-Forecast72h-BkVZSGhE.mjs +427 -0
  8. package/dist/chunks/{component-GeologyLiveAlarm-BGqrl_n2.mjs → component-GeologyLiveAlarm-B9jBWXf0.mjs} +2 -2
  9. package/dist/chunks/component-HdForecastProducts-D4x_Y0OB.mjs +211 -0
  10. package/dist/chunks/component-HdHeatService-Bf9XH3DP.mjs +412 -0
  11. package/dist/chunks/component-HdObservation-CM6HUrQ3.mjs +606 -0
  12. package/dist/chunks/component-HdPreSituation-CJ8-wiRO.mjs +639 -0
  13. package/dist/chunks/component-HdRadarTime-C4ZArOUM.mjs +461 -0
  14. package/dist/chunks/component-HdSeaCase-3-YFxSuM.mjs +219 -0
  15. package/dist/chunks/component-HdServiceMarterial-pSFQUH2x.mjs +316 -0
  16. package/dist/chunks/component-HdServiceRequirements-BjuiyyC5.mjs +142 -0
  17. package/dist/chunks/component-HdStationTem-Dit7Y8lu.mjs +573 -0
  18. package/dist/chunks/component-HdSuggestion-B_abfzRO.mjs +161 -0
  19. package/dist/chunks/component-HdThreeWeatherTrend-B2qzvOzb.mjs +372 -0
  20. package/dist/chunks/component-HdWaveForcast-D8UZrHzF.mjs +269 -0
  21. package/dist/chunks/{component-HighQuality-B-DNdjF7.mjs → component-HighQuality-1iqLOQAF.mjs} +3 -3
  22. package/dist/chunks/{component-HighWayEarlyWarningRed-DM_NXOxS.mjs → component-HighWayEarlyWarningRed-DlgG9rTx.mjs} +907 -759
  23. package/dist/chunks/{component-HighWayFreeze-Dldul9ds.mjs → component-HighWayFreeze-CCp1Rxpz.mjs} +2 -2
  24. package/dist/chunks/{component-HighwayLiveAlarm-7T0XNRUb.mjs → component-HighwayLiveAlarm-D7PKi5rG.mjs} +2 -2
  25. package/dist/chunks/{component-HighwayLiveAlarmNew-ClsfDywn.mjs → component-HighwayLiveAlarmNew-rH59lsj8.mjs} +3 -3
  26. package/dist/chunks/{component-HighwayStations-u3R83AXH.mjs → component-HighwayStations-DGt6Gsr9.mjs} +2 -2
  27. package/dist/chunks/{component-HighwayWeatherForecast-CHJuEi1V.mjs → component-HighwayWeatherForecast-BQrNGF7m.mjs} +73 -130
  28. package/dist/chunks/{component-IframeWeb-B_RCXBBe.mjs → component-IframeWeb-vLIWvbJY.mjs} +1 -1
  29. package/dist/chunks/{component-ImageGeneration-5zGtULQL.mjs → component-ImageGeneration-BtM7MHcE.mjs} +1 -1
  30. package/dist/chunks/{component-IntroducePic-DPf4yYOb.mjs → component-IntroducePic-D3FSEuKX.mjs} +1 -1
  31. package/dist/chunks/{component-LithiumBatteryMiningArea-D7EdisGO.mjs → component-LithiumBatteryMiningArea-B5aUe7T0.mjs} +2 -2
  32. package/dist/chunks/{component-MapPopup-pePSM1pe.mjs → component-MapPopup-UmWWAPBE.mjs} +1 -1
  33. package/dist/chunks/{component-MaterialPreview-CvHyZKau.mjs → component-MaterialPreview-1Hyl4bjM.mjs} +2 -2
  34. package/dist/chunks/{component-PieLegend-C_KQgtb2.mjs → component-PieLegend-C0Acehix.mjs} +1 -1
  35. package/dist/chunks/component-PrecipitationRanking-C63n87WI.mjs +658 -0
  36. package/dist/chunks/{component-RadarChart-Dkkpc2ex.mjs → component-RadarChart-BXfMyPPi.mjs} +2 -2
  37. package/dist/chunks/{component-RadarLegend-Bmyx7Z82.mjs → component-RadarLegend-B2ajP_0M.mjs} +1 -1
  38. package/dist/chunks/{component-RadarShortTerm-DNpfS5yC.mjs → component-RadarShortTerm-BeGEjbHr.mjs} +4 -4
  39. package/dist/chunks/{component-RadarTime-CBk6AMiD.mjs → component-RadarTime-DGRztCiR.mjs} +2 -2
  40. package/dist/chunks/{component-RenderMarkdown-DFiXNere.mjs → component-RenderMarkdown-Dv-UVGrS.mjs} +2 -2
  41. package/dist/chunks/{component-ReservoirLiveAlarm-DCzzEJ4U.mjs → component-ReservoirLiveAlarm-CRgl_ztt.mjs} +3 -3
  42. package/dist/chunks/{component-ServiceMaterial-CXBQpfHK.mjs → component-ServiceMaterial-BTWYke8W.mjs} +2 -2
  43. package/dist/chunks/{component-ServiceMaterialsBtn-CPZzLZl_.mjs → component-ServiceMaterialsBtn-CTWGd-Is.mjs} +1 -1
  44. package/dist/chunks/component-StationDialog-Ck8zd52d.mjs +956 -0
  45. package/dist/chunks/component-StationList-BvoVJwAU.mjs +337 -0
  46. package/dist/chunks/{component-TimeBasedForecast-WVO8WY-h.mjs → component-TimeBasedForecast-BaPiit4s.mjs} +36 -36
  47. package/dist/chunks/{component-WarningLine-BCPm8Eve.mjs → component-WarningLine-CcFfVzar.mjs} +2 -2
  48. package/dist/chunks/{component-WarningSignal-C2RJ8N64.mjs → component-WarningSignal-C0CnTLVH.mjs} +3 -3
  49. package/dist/chunks/component-WeatherForecast-DWdNramU.mjs +229 -0
  50. package/dist/chunks/{component-YCDataMonitor-Dx7ASmGD.mjs → component-YCDataMonitor-DPMFqIFB.mjs} +108 -110
  51. package/dist/chunks/{component-YCDataService-mj2SUWBC.mjs → component-YCDataService-CD042ss7.mjs} +4 -4
  52. package/dist/chunks/{component-YCHome-CUcEZHuo.mjs → component-YCHome-DjpIzt-5.mjs} +4 -4
  53. package/dist/chunks/{component-YCHomeLegend-DK6WU8YQ.mjs → component-YCHomeLegend-B-nlePS2.mjs} +1 -1
  54. package/dist/chunks/{component-YCLoginNew-D2RInKrk.mjs → component-YCLoginNew-Bx2LoLJz.mjs} +3 -3
  55. package/dist/components/AiChat/AiChat.vue.d.ts +0 -2
  56. package/dist/components/Forecast72h/Forecast72h.vue.d.ts +50 -0
  57. package/dist/components/HdForecastProducts/HdForecastProducts.vue.d.ts +49 -0
  58. package/dist/components/HdHeatService/HdHeatService.vue.d.ts +56 -0
  59. package/dist/components/HdObservation/HdObservation.vue.d.ts +43 -0
  60. package/dist/components/HdPreSituation/HdPreSituation.vue.d.ts +61 -0
  61. package/dist/components/HdQxServiceEffects/HdQxServiceEffects.vue.d.ts +59 -0
  62. package/dist/components/HdRadarTime/HdRadarTime.vue.d.ts +71 -0
  63. package/dist/components/HdSeaCase/HdSeaCase.vue.d.ts +46 -0
  64. package/dist/components/HdServiceMarterial/HdServiceMarterial.vue.d.ts +54 -0
  65. package/dist/components/HdServiceRequirements/HdServiceRequirements.vue.d.ts +51 -0
  66. package/dist/components/HdStationTem/HdStationTem.vue.d.ts +69 -0
  67. package/dist/components/HdSuggestion/HdSuggestion.vue.d.ts +49 -0
  68. package/dist/components/HdThreeWeatherTrend/HdThreeWeatherTrend.vue.d.ts +71 -0
  69. package/dist/components/HdWaveForcast/HdWaveForcast.vue.d.ts +70 -0
  70. package/dist/components/HighWayEarlyWarningRed/Call.vue.d.ts +18 -0
  71. package/dist/components/HighWayEarlyWarningRed/HighWayEarlyWarningRed.vue.d.ts +5 -0
  72. package/dist/components/PrecipitationRanking/PrecipitationRanking.vue.d.ts +62 -0
  73. package/dist/components/StationDialog/StationDialog.vue.d.ts +90 -0
  74. package/dist/components/StationList/StationList.vue.d.ts +64 -0
  75. package/dist/components/WeatherForecast/WeatherForecast.vue.d.ts +9 -0
  76. package/dist/index.d.ts +18 -1
  77. package/dist/nxd-plugin.mjs +56 -40
  78. package/dist/styles/component-Forecast72h.css +1 -0
  79. package/dist/styles/component-HdForecastProducts.css +1 -0
  80. package/dist/styles/component-HdHeatService.css +1 -0
  81. package/dist/styles/component-HdObservation.css +1 -0
  82. package/dist/styles/component-HdPreSituation.css +1 -0
  83. package/dist/styles/component-HdRadarTime.css +1 -0
  84. package/dist/styles/component-HdSeaCase.css +1 -0
  85. package/dist/styles/component-HdServiceMarterial.css +1 -0
  86. package/dist/styles/component-HdServiceRequirements.css +1 -0
  87. package/dist/styles/component-HdStationTem.css +1 -0
  88. package/dist/styles/component-HdSuggestion.css +1 -0
  89. package/dist/styles/component-HdThreeWeatherTrend.css +1 -0
  90. package/dist/styles/component-HdWaveForcast.css +1 -0
  91. package/dist/styles/component-HighQuality.css +1 -1
  92. package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
  93. package/dist/styles/component-PrecipitationRanking.css +1 -0
  94. package/dist/styles/component-StationDialog.css +1 -0
  95. package/dist/styles/component-StationList.css +1 -0
  96. package/dist/styles/component-WeatherForecast.css +1 -1
  97. package/dist/styles/component-YCDataMonitor.css +1 -1
  98. package/dist/styles/component-YCLoginNew.css +1 -1
  99. package/package.json +2 -1
  100. package/dist/chunks/component-WeatherForecast-CaLYtE37.mjs +0 -210
@@ -0,0 +1,229 @@
1
+ import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
2
+ import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
3
+ import { A as n, C as r, D as i, E as a, M as o, N as s, O as c, P as l, S as ee, T as te, _ as u, a as d, b as f, c as p, d as m, f as h, g, h as _, i as ne, j as re, k as ie, l as ae, m as oe, n as se, o as v, p as y, r as b, s as x, u as S, v as C, w, x as T, y as E } from "./component-HighwayWeatherForecast-BQrNGF7m.mjs";
4
+ import { n as D } from "./component-LithiumBatteryMiningArea-B5aUe7T0.mjs";
5
+ import { ElLoadingDirective as O } from "element-plus/es";
6
+ import { Fragment as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, defineComponent as N, getCurrentInstance as P, normalizeClass as F, onMounted as I, openBlock as L, ref as R, renderList as z, toDisplayString as B, vShow as ce, withDirectives as V } from "vue";
7
+ //#region src/components/WeatherForecast/WeatherForecast.vue?vue&type=script&setup=true&lang.ts
8
+ var H = {
9
+ class: "WeatherForecast",
10
+ "element-loading-background": "rgba(0, 0, 0, 0.4)"
11
+ }, U = { class: "WeatherForecast__head" }, W = { class: "WeatherForecast__head-top" }, G = { class: "WeatherForecast__body" }, le = {
12
+ key: 0,
13
+ class: "WeatherForecast__area-select"
14
+ }, ue = { style: {
15
+ display: "flex",
16
+ "align-items": "center"
17
+ } }, de = { class: "WeatherForecast__dropdown-wrapper" }, fe = { class: "WeatherForecast__area-panel" }, pe = ["onClick"], me = { class: "WeatherForecast__wrap" }, he = ["src", "alt"], K = /* @__PURE__ */ e(/* @__PURE__ */ N({
18
+ __name: "WeatherForecast",
19
+ props: {
20
+ appKey: {
21
+ type: String,
22
+ default: ""
23
+ },
24
+ appSalt: {
25
+ type: String,
26
+ default: ""
27
+ },
28
+ baseHttp: {
29
+ type: String,
30
+ default: ""
31
+ },
32
+ ids: {
33
+ type: Object,
34
+ default: () => ({})
35
+ },
36
+ title: {
37
+ type: String,
38
+ default: "天气预报"
39
+ },
40
+ showAreaBtn: {
41
+ type: Boolean,
42
+ default: !1
43
+ }
44
+ },
45
+ emits: ["close"],
46
+ setup(e, { emit: N }) {
47
+ let K = P()?.appContext.config.globalProperties.$bus, q = e, ge = N, J = R(!1), Y = R([]), X = R({}), _e = R([
48
+ {
49
+ name: "黄岛区",
50
+ value: "aksu",
51
+ longitude: "80.2651",
52
+ latitude: "41.1707"
53
+ },
54
+ {
55
+ name: "黄岛区2",
56
+ value: "kuche",
57
+ longitude: "82.9989",
58
+ latitude: "41.7160"
59
+ },
60
+ {
61
+ name: "黄岛区3",
62
+ value: "baicheng",
63
+ longitude: "81.8670",
64
+ latitude: "41.7860"
65
+ },
66
+ {
67
+ name: "黄岛区4",
68
+ value: "xinhe",
69
+ longitude: "82.6100",
70
+ latitude: "41.5490"
71
+ },
72
+ {
73
+ name: "黄岛区5",
74
+ value: "shaya",
75
+ longitude: "82.7800",
76
+ latitude: "41.2200"
77
+ },
78
+ {
79
+ name: "黄岛区6",
80
+ value: "wensu",
81
+ longitude: "80.3000",
82
+ latitude: "41.1600"
83
+ },
84
+ {
85
+ name: "黄岛区7",
86
+ value: "wushi",
87
+ longitude: "79.2300",
88
+ latitude: "41.2100"
89
+ },
90
+ {
91
+ name: "黄岛区8",
92
+ value: "keping",
93
+ longitude: "79.0200",
94
+ latitude: "40.5000"
95
+ }
96
+ ]), Z = R({}), Q = R(!1);
97
+ I(() => {
98
+ K?.on("toComponent", (e) => {
99
+ e.componentName === "WeatherForecast" && (X.value = e.data, ve());
100
+ });
101
+ }), document.addEventListener("click", (e) => {
102
+ e.target.closest(".WeatherForecast__area-select") || (Q.value = !1);
103
+ });
104
+ let ve = async () => {
105
+ await xe();
106
+ }, ye = () => {
107
+ ge("close", "WeatherForecast");
108
+ }, be = () => {
109
+ Q.value = !Q.value;
110
+ }, $ = async (e) => {
111
+ Q.value = !1, Z.value?.value !== e.value && (Z.value = e);
112
+ }, xe = async () => {
113
+ J.value = !0;
114
+ let e = {
115
+ lon: X.value.longitude,
116
+ lat: X.value.latitude,
117
+ hours: 168
118
+ }, O = await t({
119
+ appKey: q.appKey,
120
+ appSalt: q.appSalt,
121
+ id: q.ids.data.id,
122
+ variables: { str: D.encode(JSON.stringify(e)) },
123
+ baseHttp: q.baseHttp,
124
+ reqType: q.ids.data.reqType,
125
+ isFormData: q.ids.data.isFormData
126
+ });
127
+ J.value = !1;
128
+ let k = O.data?.result?.output;
129
+ if (!k) {
130
+ console.warn("天气预报接口返回为空", O), Y.value = [];
131
+ return;
132
+ }
133
+ let A = (typeof k == "string" ? JSON.parse(k) : k).ds;
134
+ if (!Array.isArray(A) || A.length === 0) {
135
+ Y.value = [];
136
+ return;
137
+ }
138
+ let j = [
139
+ "日",
140
+ "一",
141
+ "二",
142
+ "三",
143
+ "四",
144
+ "五",
145
+ "六"
146
+ ];
147
+ Y.value = A.map((e, t) => {
148
+ let D = new Date(e.observation_time.replace(/\//g, "-"));
149
+ D.setDate(D.getDate() + t);
150
+ let O = `${D.getMonth() + 1}`.padStart(2, "0"), k = `${D.getDate()}`.padStart(2, "0");
151
+ return {
152
+ ...e,
153
+ _date: `${O}-${k}`,
154
+ _week: `周${j[D.getDay()]}`,
155
+ _icon: new URL((/* @__PURE__ */ Object.assign({
156
+ "../../assets/img/weatherIcon/0.gif": l,
157
+ "../../assets/img/weatherIcon/1.gif": s,
158
+ "../../assets/img/weatherIcon/10.gif": o,
159
+ "../../assets/img/weatherIcon/11.gif": re,
160
+ "../../assets/img/weatherIcon/12.gif": n,
161
+ "../../assets/img/weatherIcon/13.gif": ie,
162
+ "../../assets/img/weatherIcon/14.gif": c,
163
+ "../../assets/img/weatherIcon/15.gif": i,
164
+ "../../assets/img/weatherIcon/16.gif": a,
165
+ "../../assets/img/weatherIcon/17.gif": te,
166
+ "../../assets/img/weatherIcon/18.gif": w,
167
+ "../../assets/img/weatherIcon/19.gif": r,
168
+ "../../assets/img/weatherIcon/2.gif": ee,
169
+ "../../assets/img/weatherIcon/20.gif": T,
170
+ "../../assets/img/weatherIcon/21.gif": f,
171
+ "../../assets/img/weatherIcon/22.gif": E,
172
+ "../../assets/img/weatherIcon/23.gif": C,
173
+ "../../assets/img/weatherIcon/24.gif": u,
174
+ "../../assets/img/weatherIcon/25.gif": g,
175
+ "../../assets/img/weatherIcon/26.gif": _,
176
+ "../../assets/img/weatherIcon/27.gif": oe,
177
+ "../../assets/img/weatherIcon/28.gif": y,
178
+ "../../assets/img/weatherIcon/29.gif": h,
179
+ "../../assets/img/weatherIcon/3.gif": m,
180
+ "../../assets/img/weatherIcon/30.gif": S,
181
+ "../../assets/img/weatherIcon/31.gif": ae,
182
+ "../../assets/img/weatherIcon/4.gif": p,
183
+ "../../assets/img/weatherIcon/5.gif": x,
184
+ "../../assets/img/weatherIcon/53.gif": v,
185
+ "../../assets/img/weatherIcon/6.gif": d,
186
+ "../../assets/img/weatherIcon/7.gif": ne,
187
+ "../../assets/img/weatherIcon/8.gif": b,
188
+ "../../assets/img/weatherIcon/9.gif": se
189
+ }))[`../../assets/img/weatherIcon/${e.weatherPhenomenon}.gif`], import.meta.url).href
190
+ };
191
+ });
192
+ };
193
+ return (t, n) => {
194
+ let r = O;
195
+ return V((L(), j("div", H, [M("div", U, [M("div", W, [M("div", null, B(e.title), 1), M("div", {
196
+ class: "closeBtn",
197
+ onClick: ye,
198
+ title: "关闭"
199
+ })]), n[0] ||= M("img", {
200
+ class: "WeatherForecast__head-line",
201
+ src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbsAAAASBAMAAAAwI22/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAwUExURQAAAAem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/5bu5GYAAAAPdFJOUwAFwAwc2M8ULQYDn/hGXGnV2UoAAAGZSURBVEjH7ZM/S8NAGId/JYGmmeLspptThurk0CHWRXGo0Nk/S50y6CYSHMRF7Efo4uQXEIpbwUnM6OhnEIeChXjv5ZLLXdLtLCX68vDCe0eGJ7/3AJN1VcL+UImB/SruVJwYTqSAW5V3LLyaPR1c+IIdH12OPZiLcyTAjccZEdccZ0Nn4bXpC3KpCuFu5tkdziX3FJxBSBZZdFk9HempCduMk4xSitJTpOgJSSIPrx10YAUB0tYOwrQ1g12k7ZyODIYXZmQpppLV26rtbDFOXVhua2Fn7WTWwUEyAe5Zc2hiLWTTC3jjk8Hw+jrSM9/Z8raKOAtZVmyr9jbpee4lU9hvSUStw6YvOpqwiXlK9d8IL0Oq5tuqvc3KLMs7q9uyCC0y22aKvDVp4u2SjnJ1c+Wecg7h9gV4CFV8NHpEaw7yF2wVGcIa6OBx/Ax3PI6pRWx6Am98alBbpSODNVTxgAbQUpF3KeVv0s80xMUow8N//YVaqWEV9BJDdby2PBUZ1/te0uU0YzeLa623jjrrvaLOep/+str9ACyAtv25BhHcAAAAAElFTkSuQmCC",
202
+ alt: ""
203
+ }, null, -1)]), M("div", G, [q.showAreaBtn ? (L(), j("div", le, [M("div", ue, [n[1] ||= M("label", { style: { "font-size": "12px" } }, "区域选择:", -1), M("div", de, [M("div", {
204
+ class: "WeatherForecast__area-trigger",
205
+ onClick: be
206
+ }, [M("span", null, B(Z.value?.name || "选择区域"), 1), M("span", { class: F(["WeatherForecast__arrow", { "is-open": Q.value }]) }, "▼", 2)]), V(M("div", fe, [(L(!0), j(k, null, z(_e.value, (e, t) => (L(), j("div", {
207
+ key: t,
208
+ class: F(["WeatherForecast__area-item", { "is-selected": Z.value?.value === e.value }]),
209
+ onClick: (t) => $(e)
210
+ }, B(e.name), 11, pe))), 128))], 512), [[ce, Q.value]])])])])) : A("", !0), M("div", me, [(L(!0), j(k, null, z(Y.value, (e) => (L(), j("div", {
211
+ class: "WeatherForecast__item",
212
+ key: `${e.observation_time}-${e.hour}`
213
+ }, [
214
+ M("div", null, B(e._date), 1),
215
+ M("div", null, B(e._week), 1),
216
+ M("img", {
217
+ src: e._icon,
218
+ alt: e.weather
219
+ }, null, 8, he),
220
+ M("div", null, B(e.weather), 1),
221
+ M("div", null, B(e.temp_low) + "~" + B(e.temp_high) + "℃", 1),
222
+ M("div", null, B(e.wind_directinfo), 1),
223
+ M("div", null, B(e.wind_speedinfo === null || Number(e.wind_speedinfo) < 3 ? "<3级" : `${e.wind_speedinfo}级`), 1)
224
+ ]))), 128))])])])), [[r, J.value]]);
225
+ };
226
+ }
227
+ }), [["__scopeId", "data-v-b6dbf561"]]);
228
+ //#endregion
229
+ export { K as t };