ss-component-new 1.3.700 → 1.3.702

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 (89) hide show
  1. package/dist/config.js +1 -1
  2. package/dist/{index-ChNfRlIP.js → index-BKoAuSBh.js} +223 -18
  3. package/dist/index-BZ6XZp4O.js +182 -0
  4. package/dist/index-DMqUY4yR.js +27 -0
  5. package/dist/{index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Mr9QL-WU.js → index-DXYV8CAc.js} +112561 -111278
  6. package/dist/index-Dad_IdSm.js +213 -0
  7. package/dist/index-Nxu5ivW5.js +1044 -0
  8. package/dist/index-T_MmKXF1.js +50 -0
  9. package/dist/menu-BYmz2cKN.js +5229 -0
  10. package/dist/platform-C9131Sg-.js +11490 -0
  11. package/dist/ss-component.css +8 -8
  12. package/dist/ss-component.js +28 -64
  13. package/dist/ss-component2.js +15 -75
  14. package/dist/ss-component3.js +1 -1
  15. package/package.json +8 -6
  16. package/public/config.js +1 -1
  17. package/dist/JSEncrypt-B36c1iN5.js +0 -1983
  18. package/dist/MTLLoader-DzQM5Czw.js +0 -657
  19. package/dist/URDFLoader-CPXooEPU.js +0 -2299
  20. package/dist/animationData-DOIhMG9C.js +0 -83
  21. package/dist/array-lig-X3M9.js +0 -1045
  22. package/dist/clone-Dp_gc9ll.js +0 -8
  23. package/dist/eleIcon-qStmsM1q.js +0 -29
  24. package/dist/fileUtil-UOt_otFo.js +0 -20
  25. package/dist/iconfont-DwCBmDct.js +0 -1026
  26. package/dist/icons/svg/functionList.svg +0 -1
  27. package/dist/icons/svg/method.svg +0 -1
  28. package/dist/index-11kpzK0A.js +0 -209
  29. package/dist/index-B-AFi1eL.js +0 -873
  30. package/dist/index-B0H3C7WG.js +0 -103
  31. package/dist/index-BDRDpsgF.js +0 -25297
  32. package/dist/index-BHtNKL1L.js +0 -27
  33. package/dist/index-BJ3RS3n_.js +0 -63004
  34. package/dist/index-BJLCuYEK.js +0 -84
  35. package/dist/index-BbyrFzEO.js +0 -93
  36. package/dist/index-Bn1_Pbpm.js +0 -98
  37. package/dist/index-BniHrGik.js +0 -107
  38. package/dist/index-BooO2Bml.js +0 -78
  39. package/dist/index-Bw3sTXPI.js +0 -8993
  40. package/dist/index-C7sOKXGv.js +0 -48
  41. package/dist/index-CGUz8yrZ.js +0 -20503
  42. package/dist/index-CGi0g-VN.js +0 -627
  43. package/dist/index-CV_jQDcg.js +0 -9
  44. package/dist/index-CWOXvFfD.js +0 -44
  45. package/dist/index-CjlKFGAF.js +0 -470
  46. package/dist/index-CydXQbtX.js +0 -622
  47. package/dist/index-D9XVxZlg.js +0 -411
  48. package/dist/index-DAJxL40d.js +0 -55
  49. package/dist/index-DBsEVMiM.js +0 -201
  50. package/dist/index-DG4hoOWt.js +0 -665
  51. package/dist/index-DUbk5m5P.js +0 -99
  52. package/dist/index-Ds6m_4JJ.js +0 -28500
  53. package/dist/index-DupTchhl.js +0 -1000
  54. package/dist/index-DxduRnLV.js +0 -93
  55. package/dist/index-DyCq_odP.js +0 -331
  56. package/dist/index-TDMzk3L7.js +0 -83
  57. package/dist/index-UB_oCdlo.js +0 -62
  58. package/dist/index-VV2Ao7jZ.js +0 -119
  59. package/dist/index-YjBTGOkO.js +0 -61
  60. package/dist/index-erE4kNF5.js +0 -30
  61. package/dist/index-iY5h1bpA.js +0 -572
  62. package/dist/index-jbOjjV0j.js +0 -447
  63. package/dist/index-rlStojTL.js +0 -52
  64. package/dist/index-uF-ibwG0.js +0 -9
  65. package/dist/isString-0ZglyOfu.js +0 -8
  66. package/dist/localIcon-D5UoFBU5.js +0 -76
  67. package/dist/main-Cepry4zn.js +0 -502
  68. package/dist/menuIndex-BB0uVPRX.js +0 -159
  69. package/dist/obj/model.mtl +0 -42
  70. package/dist/obj/model.obj +0 -26110
  71. package/dist/request-1RPa2bBn.js +0 -9048
  72. package/dist/threeModel-DcUyC6Vh.js +0 -1109
  73. package/dist/threePreview-CbGqCMch.js +0 -2810
  74. package/dist/threeSceneView-BDyFpkq-.js +0 -1290
  75. package/dist/threeSceneViewForCPMPIP-DUSufDRq.js +0 -539
  76. package/dist/threeTrackPathView-yLEUuGXc.js +0 -620
  77. package/dist/threeViewerHost-BXdZ6Wgi.js +0 -233
  78. package/dist/urdfTree-C6mx4T9t.js +0 -254
  79. package/dist/workpieceTreePanel-DjR9f2D1.js +0 -559
  80. package/public/icons/svg/functionList.svg +0 -1
  81. package/public/icons/svg/method.svg +0 -1
  82. package/public/obj/model.mtl +0 -42
  83. package/public/obj/model.obj +0 -26110
  84. /package/dist/icons/svg/{tableClose.svg → table-close.svg} +0 -0
  85. /package/dist/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
  86. /package/dist/icons/svg/{Update.svg → update.svg} +0 -0
  87. /package/public/icons/svg/{tableClose.svg → table-close.svg} +0 -0
  88. /package/public/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
  89. /package/public/icons/svg/{Update.svg → update.svg} +0 -0
@@ -0,0 +1,213 @@
1
+ import { defineComponent as P, ref as R, computed as W, watch as m, nextTick as z, onMounted as I, onUnmounted as U, resolveComponent as N, createElementBlock as S, openBlock as g, createBlock as V } from "vue";
2
+ import { u as G, g as $, v as q } from "./platform-C9131Sg-.js";
3
+ import { p as k, s as _, u as J } from "./menu-BYmz2cKN.js";
4
+ import { l as Q } from "./index-T_MmKXF1.js";
5
+ import { useRouter as X } from "vue-router";
6
+ import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
+ const Z = { key: 0 }, p = /* @__PURE__ */ P({
8
+ __name: "index",
9
+ props: {
10
+ windowConfig: {
11
+ type: Object,
12
+ default: () => {
13
+ }
14
+ },
15
+ systemInfo: {
16
+ type: Object,
17
+ default: () => {
18
+ }
19
+ },
20
+ systemKey: {
21
+ type: String,
22
+ default: ""
23
+ },
24
+ pathContent: {
25
+ type: String,
26
+ default: ""
27
+ },
28
+ mode: {
29
+ type: String,
30
+ default: "view"
31
+ },
32
+ content: {
33
+ type: String,
34
+ default: ""
35
+ },
36
+ jsonContents: {
37
+ type: Array,
38
+ default: () => []
39
+ },
40
+ showButton: {
41
+ type: Boolean,
42
+ default: !1
43
+ },
44
+ nodeDev: {
45
+ type: String,
46
+ default: ""
47
+ },
48
+ pageKey: {
49
+ type: String,
50
+ default: ""
51
+ },
52
+ interfaceContent: {
53
+ type: Array,
54
+ default: () => []
55
+ },
56
+ loginContent: {
57
+ type: Object,
58
+ default: () => {
59
+ }
60
+ },
61
+ menuFiles: {
62
+ type: Array,
63
+ default: () => []
64
+ },
65
+ workspaceHistoryData: {
66
+ type: Array,
67
+ default: () => []
68
+ },
69
+ // 用于打开/拣选工作区
70
+ workspaceInfo: {
71
+ type: Object,
72
+ default: () => []
73
+ }
74
+ },
75
+ emits: [
76
+ "buildContent",
77
+ "openThreeBuild",
78
+ "threeData",
79
+ "setLoginInfo",
80
+ "projectLogin",
81
+ "updateApiUrl",
82
+ "clearFileContent",
83
+ "systemContent",
84
+ "getMenuPathValue",
85
+ "executeWorkspace",
86
+ "updateVersion"
87
+ ],
88
+ setup(d, { emit: L }) {
89
+ const D = X(), u = G(k), { loginUserInfo: s } = _(u), l = J(k), C = R(!0), { activeMenuPath: h } = _(l), e = d, o = L, A = W(() => {
90
+ var t, n;
91
+ return (e == null ? void 0 : e.showButton) || ((n = (t = s.value) == null ? void 0 : t.accounttype) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
92
+ }), F = (t) => {
93
+ o("systemContent", t);
94
+ }, E = () => {
95
+ o("updateVersion");
96
+ }, j = () => {
97
+ o("clearFileContent");
98
+ };
99
+ m(
100
+ () => e == null ? void 0 : e.menuFiles,
101
+ () => {
102
+ var t;
103
+ ((t = e == null ? void 0 : e.menuFiles) == null ? void 0 : t.length) > 0 && l.setLocalFiles(e == null ? void 0 : e.menuFiles);
104
+ },
105
+ { deep: !0, immediate: !0 }
106
+ ), m(
107
+ () => h.value,
108
+ async () => {
109
+ var n, i, c;
110
+ if (!((n = s == null ? void 0 : s.value) != null && n.plat_id)) return;
111
+ let t = await $({
112
+ platId: parseInt((i = s == null ? void 0 : s.value) == null ? void 0 : i.plat_id)
113
+ });
114
+ t = (c = t == null ? void 0 : t.data) == null ? void 0 : c.result, l.setDataFiles(t), o("getMenuPathValue", h.value);
115
+ },
116
+ { deep: !0, immediate: !0 }
117
+ ), m(
118
+ () => e == null ? void 0 : e.loginContent,
119
+ async () => {
120
+ C.value = !0;
121
+ let t = e == null ? void 0 : e.loginContent;
122
+ if (t != null && t.account && (t != null && t.password) && (await Q(t), status)) {
123
+ let n = await q();
124
+ o("systemContent", n == null ? void 0 : n.allMenuContents), D.push("/"), l.setHasClickEditComp(!1);
125
+ }
126
+ C.value = !1, await z();
127
+ },
128
+ { deep: !0, immediate: !0 }
129
+ );
130
+ const B = (t) => {
131
+ o("projectLogin", t);
132
+ }, T = () => {
133
+ o("projectLogin", "");
134
+ };
135
+ m(
136
+ () => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo],
137
+ async ([t, n]) => {
138
+ u.setSystemKey(t), t !== "" && sessionStorage.setItem("systemKey", t);
139
+ },
140
+ { immediate: !0 }
141
+ ), m(
142
+ () => e == null ? void 0 : e.interfaceContent,
143
+ () => {
144
+ var i, c, r, y, f;
145
+ if (!(e != null && e.interfaceContent) || Array.isArray(e == null ? void 0 : e.interfaceContent) && ((i = e == null ? void 0 : e.interfaceContent) == null ? void 0 : i.length) === 0)
146
+ return;
147
+ let t = (c = e == null ? void 0 : e.interfaceContent) == null ? void 0 : c.find((a) => a == null ? void 0 : a.includes("VITE_API_NEW_URL")), n = (r = e == null ? void 0 : e.interfaceContent) == null ? void 0 : r.find((a) => a == null ? void 0 : a.includes("VITE_FACE_RECOGNITION_API_URL"));
148
+ n = (y = n == null ? void 0 : n.split("=")) == null ? void 0 : y[1], n = n == null ? void 0 : n.trim(), t = (f = t == null ? void 0 : t.split("=")) == null ? void 0 : f[1], t = t == null ? void 0 : t.trim(), u.setExtraUrl(n ?? ""), u.setSystemUrl(t ?? "");
149
+ },
150
+ { immediate: !0, deep: !0 }
151
+ ), I(async () => {
152
+ e.systemInfo && u.setSystemInfo(e.systemInfo);
153
+ });
154
+ const x = () => {
155
+ o("buildContent");
156
+ }, K = () => {
157
+ o("setLoginInfo");
158
+ }, M = (t) => {
159
+ o("openThreeBuild", t);
160
+ }, b = (t) => {
161
+ o("threeData", t);
162
+ }, H = (t) => {
163
+ o("updateApiUrl", t);
164
+ }, O = (t) => {
165
+ o("executeWorkspace", t);
166
+ }, w = () => {
167
+ var f, a, v;
168
+ const t = e != null && e.windowConfig ? (f = e == null ? void 0 : e.windowConfig) == null ? void 0 : f.width : window.innerWidth, n = (a = e == null ? void 0 : e.windowConfig) != null && a.height ? (v = e == null ? void 0 : e.windowConfig) == null ? void 0 : v.height : window.innerHeight;
169
+ l.setSystemHeight(n);
170
+ const i = 1920, c = 16, r = t / i, y = c * r;
171
+ document.documentElement.style.fontSize = `${y}px`;
172
+ };
173
+ return I(() => {
174
+ w(), window.addEventListener("resize", w);
175
+ }), U(() => {
176
+ window.removeEventListener("resize", w);
177
+ }), (t, n) => {
178
+ const i = N("router-view");
179
+ return g(), S("div", null, [
180
+ C.value ? (g(), S("div", Z)) : (g(), V(i, {
181
+ key: 1,
182
+ mode: e == null ? void 0 : e.mode,
183
+ content: e == null ? void 0 : e.content,
184
+ jsonContents: e == null ? void 0 : e.jsonContents,
185
+ pathContent: e == null ? void 0 : e.pathContent,
186
+ showButton: A.value,
187
+ nodeDev: e == null ? void 0 : e.nodeDev,
188
+ windowConfig: d.windowConfig,
189
+ systemInfo: d.systemInfo,
190
+ "old-systemKey": d.systemKey,
191
+ onBuildContent: x,
192
+ onProjectLogin: B,
193
+ onClearLogin: T,
194
+ onUpdateApiUrl: H,
195
+ onOpenThreeBuild: M,
196
+ pageKey: d.pageKey,
197
+ onThreeData: b,
198
+ onSetLoginInfo: K,
199
+ loginContent: e == null ? void 0 : e.loginContent,
200
+ onUpdateVersion: E,
201
+ onClearFileContent: j,
202
+ onSystemContent: F,
203
+ onExecuteWorkspace: O,
204
+ workspaceHistoryData: e == null ? void 0 : e.workspaceHistoryData,
205
+ workspaceInfo: e == null ? void 0 : e.workspaceInfo
206
+ }, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey", "loginContent", "workspaceHistoryData", "workspaceInfo"]))
207
+ ]);
208
+ };
209
+ }
210
+ }), se = /* @__PURE__ */ Y(p, [["__scopeId", "data-v-0b0d7544"]]);
211
+ export {
212
+ se as default
213
+ };