fec-dev-designer 1.0.0 → 1.0.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fec-dev-designer",
3
3
  "private": false,
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "type": "module",
6
6
  "module": "es/src/index.js",
7
7
  "author": "enzo Guo",
@@ -22,6 +22,7 @@
22
22
  "@element-plus/icons-vue": "^2.3.1",
23
23
  "@formulajs/formulajs": "^4.5.6",
24
24
  "axios": "^1.6.2",
25
+ "clipboard": "^2.0.11",
25
26
  "codemirror": "^6.0.2",
26
27
  "crypto-js": "^4.2.0",
27
28
  "decimal.js": "^10.4.3",
@@ -33,8 +34,8 @@
33
34
  "vue": "^3.3.8",
34
35
  "vue-codemirror": "^6.1.1",
35
36
  "vue-draggable-plus": "^0.6.1",
36
- "vue-json-viewer": "^3.0.4",
37
37
  "vue-router": "^4.2.5",
38
+ "vue3-json-viewer": "^2.4.1",
38
39
  "vuex": "^4.1.0",
39
40
  "vuex-persistedstate": "^4.1.0",
40
41
  "vxe-table": "^4.17.42"
@@ -1,4 +0,0 @@
1
- var o = { exports: {} };
2
- export {
3
- o as __module
4
- };
@@ -1,4 +0,0 @@
1
- var e = { exports: {} };
2
- export {
3
- e as __module
4
- };
@@ -1,499 +0,0 @@
1
- import { commonjsGlobal as $ } from "../../../_virtual/_commonjsHelpers.js";
2
- import { __module as L } from "../../../_virtual/clipboard.js";
3
- /*!
4
- * clipboard.js v2.0.11
5
- * https://clipboardjs.com/
6
- *
7
- * Licensed MIT © Zeno Rocha
8
- */
9
- var N;
10
- function W() {
11
- return N ? L.exports : (N = 1, function(M, B) {
12
- (function(S, b) {
13
- M.exports = b();
14
- })($, function() {
15
- return (
16
- /******/
17
- function() {
18
- var R = {
19
- /***/
20
- 686: (
21
- /***/
22
- function(l, c, t) {
23
- t.d(c, {
24
- default: function() {
25
- return (
26
- /* binding */
27
- X
28
- );
29
- }
30
- });
31
- var a = t(279), f = /* @__PURE__ */ t.n(a), s = t(370), h = /* @__PURE__ */ t.n(s), y = t(817), g = /* @__PURE__ */ t.n(y);
32
- function d(i) {
33
- try {
34
- return document.execCommand(i);
35
- } catch {
36
- return !1;
37
- }
38
- }
39
- var v = function(n) {
40
- var e = g()(n);
41
- return d("cut"), e;
42
- }, p = v;
43
- function _(i) {
44
- var n = document.documentElement.getAttribute("dir") === "rtl", e = document.createElement("textarea");
45
- e.style.fontSize = "12pt", e.style.border = "0", e.style.padding = "0", e.style.margin = "0", e.style.position = "absolute", e.style[n ? "right" : "left"] = "-9999px";
46
- var r = window.pageYOffset || document.documentElement.scrollTop;
47
- return e.style.top = "".concat(r, "px"), e.setAttribute("readonly", ""), e.value = i, e;
48
- }
49
- var k = function(n, e) {
50
- var r = _(n);
51
- e.container.appendChild(r);
52
- var o = g()(r);
53
- return d("copy"), r.remove(), o;
54
- }, j = function(n) {
55
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
56
- container: document.body
57
- }, r = "";
58
- return typeof n == "string" ? r = k(n, e) : n instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(n == null ? void 0 : n.type) ? r = k(n.value, e) : (r = g()(n), d("copy")), r;
59
- }, A = j;
60
- function x(i) {
61
- "@babel/helpers - typeof";
62
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? x = function(e) {
63
- return typeof e;
64
- } : x = function(e) {
65
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
66
- }, x(i);
67
- }
68
- var D = function() {
69
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = n.action, r = e === void 0 ? "copy" : e, o = n.container, u = n.target, m = n.text;
70
- if (r !== "copy" && r !== "cut")
71
- throw new Error('Invalid "action" value, use either "copy" or "cut"');
72
- if (u !== void 0)
73
- if (u && x(u) === "object" && u.nodeType === 1) {
74
- if (r === "copy" && u.hasAttribute("disabled"))
75
- throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
76
- if (r === "cut" && (u.hasAttribute("readonly") || u.hasAttribute("disabled")))
77
- throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
78
- } else
79
- throw new Error('Invalid "target" value, use a valid Element');
80
- if (m)
81
- return A(m, {
82
- container: o
83
- });
84
- if (u)
85
- return r === "cut" ? p(u) : A(u, {
86
- container: o
87
- });
88
- }, F = D;
89
- function E(i) {
90
- "@babel/helpers - typeof";
91
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? E = function(e) {
92
- return typeof e;
93
- } : E = function(e) {
94
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
95
- }, E(i);
96
- }
97
- function H(i, n) {
98
- if (!(i instanceof n))
99
- throw new TypeError("Cannot call a class as a function");
100
- }
101
- function P(i, n) {
102
- for (var e = 0; e < n.length; e++) {
103
- var r = n[e];
104
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(i, r.key, r);
105
- }
106
- }
107
- function I(i, n, e) {
108
- return n && P(i.prototype, n), e && P(i, e), i;
109
- }
110
- function z(i, n) {
111
- if (typeof n != "function" && n !== null)
112
- throw new TypeError("Super expression must either be null or a function");
113
- i.prototype = Object.create(n && n.prototype, { constructor: { value: i, writable: !0, configurable: !0 } }), n && C(i, n);
114
- }
115
- function C(i, n) {
116
- return C = Object.setPrototypeOf || function(r, o) {
117
- return r.__proto__ = o, r;
118
- }, C(i, n);
119
- }
120
- function U(i) {
121
- var n = G();
122
- return function() {
123
- var r = T(i), o;
124
- if (n) {
125
- var u = T(this).constructor;
126
- o = Reflect.construct(r, arguments, u);
127
- } else
128
- o = r.apply(this, arguments);
129
- return Y(this, o);
130
- };
131
- }
132
- function Y(i, n) {
133
- return n && (E(n) === "object" || typeof n == "function") ? n : q(i);
134
- }
135
- function q(i) {
136
- if (i === void 0)
137
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
138
- return i;
139
- }
140
- function G() {
141
- if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
142
- return !1;
143
- if (typeof Proxy == "function")
144
- return !0;
145
- try {
146
- return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
147
- })), !0;
148
- } catch {
149
- return !1;
150
- }
151
- }
152
- function T(i) {
153
- return T = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
154
- return e.__proto__ || Object.getPrototypeOf(e);
155
- }, T(i);
156
- }
157
- function O(i, n) {
158
- var e = "data-clipboard-".concat(i);
159
- if (n.hasAttribute(e))
160
- return n.getAttribute(e);
161
- }
162
- var V = /* @__PURE__ */ function(i) {
163
- z(e, i);
164
- var n = U(e);
165
- function e(r, o) {
166
- var u;
167
- return H(this, e), u = n.call(this), u.resolveOptions(o), u.listenClick(r), u;
168
- }
169
- return I(e, [{
170
- key: "resolveOptions",
171
- value: function() {
172
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
173
- this.action = typeof o.action == "function" ? o.action : this.defaultAction, this.target = typeof o.target == "function" ? o.target : this.defaultTarget, this.text = typeof o.text == "function" ? o.text : this.defaultText, this.container = E(o.container) === "object" ? o.container : document.body;
174
- }
175
- /**
176
- * Adds a click event listener to the passed trigger.
177
- * @param {String|HTMLElement|HTMLCollection|NodeList} trigger
178
- */
179
- }, {
180
- key: "listenClick",
181
- value: function(o) {
182
- var u = this;
183
- this.listener = h()(o, "click", function(m) {
184
- return u.onClick(m);
185
- });
186
- }
187
- /**
188
- * Defines a new `ClipboardAction` on each click event.
189
- * @param {Event} e
190
- */
191
- }, {
192
- key: "onClick",
193
- value: function(o) {
194
- var u = o.delegateTarget || o.currentTarget, m = this.action(u) || "copy", w = F({
195
- action: m,
196
- container: this.container,
197
- target: this.target(u),
198
- text: this.text(u)
199
- });
200
- this.emit(w ? "success" : "error", {
201
- action: m,
202
- text: w,
203
- trigger: u,
204
- clearSelection: function() {
205
- u && u.focus(), window.getSelection().removeAllRanges();
206
- }
207
- });
208
- }
209
- /**
210
- * Default `action` lookup function.
211
- * @param {Element} trigger
212
- */
213
- }, {
214
- key: "defaultAction",
215
- value: function(o) {
216
- return O("action", o);
217
- }
218
- /**
219
- * Default `target` lookup function.
220
- * @param {Element} trigger
221
- */
222
- }, {
223
- key: "defaultTarget",
224
- value: function(o) {
225
- var u = O("target", o);
226
- if (u)
227
- return document.querySelector(u);
228
- }
229
- /**
230
- * Allow fire programmatically a copy action
231
- * @param {String|HTMLElement} target
232
- * @param {Object} options
233
- * @returns Text copied.
234
- */
235
- }, {
236
- key: "defaultText",
237
- /**
238
- * Default `text` lookup function.
239
- * @param {Element} trigger
240
- */
241
- value: function(o) {
242
- return O("text", o);
243
- }
244
- /**
245
- * Destroy lifecycle.
246
- */
247
- }, {
248
- key: "destroy",
249
- value: function() {
250
- this.listener.destroy();
251
- }
252
- }], [{
253
- key: "copy",
254
- value: function(o) {
255
- var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
256
- container: document.body
257
- };
258
- return A(o, u);
259
- }
260
- /**
261
- * Allow fire programmatically a cut action
262
- * @param {String|HTMLElement} target
263
- * @returns Text cutted.
264
- */
265
- }, {
266
- key: "cut",
267
- value: function(o) {
268
- return p(o);
269
- }
270
- /**
271
- * Returns the support of the given action, or all actions if no action is
272
- * given.
273
- * @param {String} [action]
274
- */
275
- }, {
276
- key: "isSupported",
277
- value: function() {
278
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], u = typeof o == "string" ? [o] : o, m = !!document.queryCommandSupported;
279
- return u.forEach(function(w) {
280
- m = m && !!document.queryCommandSupported(w);
281
- }), m;
282
- }
283
- }]), e;
284
- }(f()), X = V;
285
- }
286
- ),
287
- /***/
288
- 828: (
289
- /***/
290
- function(l) {
291
- var c = 9;
292
- if (typeof Element < "u" && !Element.prototype.matches) {
293
- var t = Element.prototype;
294
- t.matches = t.matchesSelector || t.mozMatchesSelector || t.msMatchesSelector || t.oMatchesSelector || t.webkitMatchesSelector;
295
- }
296
- function a(f, s) {
297
- for (; f && f.nodeType !== c; ) {
298
- if (typeof f.matches == "function" && f.matches(s))
299
- return f;
300
- f = f.parentNode;
301
- }
302
- }
303
- l.exports = a;
304
- }
305
- ),
306
- /***/
307
- 438: (
308
- /***/
309
- function(l, c, t) {
310
- var a = t(828);
311
- function f(y, g, d, v, p) {
312
- var _ = h.apply(this, arguments);
313
- return y.addEventListener(d, _, p), {
314
- destroy: function() {
315
- y.removeEventListener(d, _, p);
316
- }
317
- };
318
- }
319
- function s(y, g, d, v, p) {
320
- return typeof y.addEventListener == "function" ? f.apply(null, arguments) : typeof d == "function" ? f.bind(null, document).apply(null, arguments) : (typeof y == "string" && (y = document.querySelectorAll(y)), Array.prototype.map.call(y, function(_) {
321
- return f(_, g, d, v, p);
322
- }));
323
- }
324
- function h(y, g, d, v) {
325
- return function(p) {
326
- p.delegateTarget = a(p.target, g), p.delegateTarget && v.call(y, p);
327
- };
328
- }
329
- l.exports = s;
330
- }
331
- ),
332
- /***/
333
- 879: (
334
- /***/
335
- function(l, c) {
336
- c.node = function(t) {
337
- return t !== void 0 && t instanceof HTMLElement && t.nodeType === 1;
338
- }, c.nodeList = function(t) {
339
- var a = Object.prototype.toString.call(t);
340
- return t !== void 0 && (a === "[object NodeList]" || a === "[object HTMLCollection]") && "length" in t && (t.length === 0 || c.node(t[0]));
341
- }, c.string = function(t) {
342
- return typeof t == "string" || t instanceof String;
343
- }, c.fn = function(t) {
344
- var a = Object.prototype.toString.call(t);
345
- return a === "[object Function]";
346
- };
347
- }
348
- ),
349
- /***/
350
- 370: (
351
- /***/
352
- function(l, c, t) {
353
- var a = t(879), f = t(438);
354
- function s(d, v, p) {
355
- if (!d && !v && !p)
356
- throw new Error("Missing required arguments");
357
- if (!a.string(v))
358
- throw new TypeError("Second argument must be a String");
359
- if (!a.fn(p))
360
- throw new TypeError("Third argument must be a Function");
361
- if (a.node(d))
362
- return h(d, v, p);
363
- if (a.nodeList(d))
364
- return y(d, v, p);
365
- if (a.string(d))
366
- return g(d, v, p);
367
- throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
368
- }
369
- function h(d, v, p) {
370
- return d.addEventListener(v, p), {
371
- destroy: function() {
372
- d.removeEventListener(v, p);
373
- }
374
- };
375
- }
376
- function y(d, v, p) {
377
- return Array.prototype.forEach.call(d, function(_) {
378
- _.addEventListener(v, p);
379
- }), {
380
- destroy: function() {
381
- Array.prototype.forEach.call(d, function(_) {
382
- _.removeEventListener(v, p);
383
- });
384
- }
385
- };
386
- }
387
- function g(d, v, p) {
388
- return f(document.body, d, v, p);
389
- }
390
- l.exports = s;
391
- }
392
- ),
393
- /***/
394
- 817: (
395
- /***/
396
- function(l) {
397
- function c(t) {
398
- var a;
399
- if (t.nodeName === "SELECT")
400
- t.focus(), a = t.value;
401
- else if (t.nodeName === "INPUT" || t.nodeName === "TEXTAREA") {
402
- var f = t.hasAttribute("readonly");
403
- f || t.setAttribute("readonly", ""), t.select(), t.setSelectionRange(0, t.value.length), f || t.removeAttribute("readonly"), a = t.value;
404
- } else {
405
- t.hasAttribute("contenteditable") && t.focus();
406
- var s = window.getSelection(), h = document.createRange();
407
- h.selectNodeContents(t), s.removeAllRanges(), s.addRange(h), a = s.toString();
408
- }
409
- return a;
410
- }
411
- l.exports = c;
412
- }
413
- ),
414
- /***/
415
- 279: (
416
- /***/
417
- function(l) {
418
- function c() {
419
- }
420
- c.prototype = {
421
- on: function(t, a, f) {
422
- var s = this.e || (this.e = {});
423
- return (s[t] || (s[t] = [])).push({
424
- fn: a,
425
- ctx: f
426
- }), this;
427
- },
428
- once: function(t, a, f) {
429
- var s = this;
430
- function h() {
431
- s.off(t, h), a.apply(f, arguments);
432
- }
433
- return h._ = a, this.on(t, h, f);
434
- },
435
- emit: function(t) {
436
- var a = [].slice.call(arguments, 1), f = ((this.e || (this.e = {}))[t] || []).slice(), s = 0, h = f.length;
437
- for (s; s < h; s++)
438
- f[s].fn.apply(f[s].ctx, a);
439
- return this;
440
- },
441
- off: function(t, a) {
442
- var f = this.e || (this.e = {}), s = f[t], h = [];
443
- if (s && a)
444
- for (var y = 0, g = s.length; y < g; y++)
445
- s[y].fn !== a && s[y].fn._ !== a && h.push(s[y]);
446
- return h.length ? f[t] = h : delete f[t], this;
447
- }
448
- }, l.exports = c, l.exports.TinyEmitter = c;
449
- }
450
- )
451
- /******/
452
- }, S = {};
453
- function b(l) {
454
- if (S[l])
455
- return S[l].exports;
456
- var c = S[l] = {
457
- /******/
458
- // no module.id needed
459
- /******/
460
- // no module.loaded needed
461
- /******/
462
- exports: {}
463
- /******/
464
- };
465
- return R[l](c, c.exports, b), c.exports;
466
- }
467
- return function() {
468
- b.n = function(l) {
469
- var c = l && l.__esModule ? (
470
- /******/
471
- function() {
472
- return l.default;
473
- }
474
- ) : (
475
- /******/
476
- function() {
477
- return l;
478
- }
479
- );
480
- return b.d(c, { a: c }), c;
481
- };
482
- }(), function() {
483
- b.d = function(l, c) {
484
- for (var t in c)
485
- b.o(c, t) && !b.o(l, t) && Object.defineProperty(l, t, { enumerable: !0, get: c[t] });
486
- };
487
- }(), function() {
488
- b.o = function(l, c) {
489
- return Object.prototype.hasOwnProperty.call(l, c);
490
- };
491
- }(), b(686);
492
- }().default
493
- );
494
- });
495
- }(L), L.exports);
496
- }
497
- export {
498
- W as __require
499
- };