@web-utils/component 3.0.6 → 3.1.0

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 (172) hide show
  1. package/address-input/index.mjs +20 -57
  2. package/affix/index.mjs +26 -47
  3. package/aside-menu/index.mjs +18 -43
  4. package/avatar/index.mjs +27 -49
  5. package/awesome-button/index.mjs +35 -43
  6. package/capsule-tab/index.mjs +16 -34
  7. package/card/index.mjs +21 -76
  8. package/carousel/index.mjs +14 -49
  9. package/chat/index.mjs +104 -414
  10. package/chunk-file-uploader/index.mjs +21 -38
  11. package/chunks/FormTemp.aa57efb4.mjs +125 -0
  12. package/code-mirror-editor/index.mjs +69 -79
  13. package/color-picker/index.mjs +29 -60
  14. package/comment/index.mjs +17 -48
  15. package/confirm-button/index.mjs +11 -19
  16. package/confirmable/index.mjs +12 -20
  17. package/context-menu/index.mjs +42 -144
  18. package/count-up/index.mjs +18 -25
  19. package/custom-scrollbar/index.mjs +13 -22
  20. package/data-box/index.mjs +15 -66
  21. package/data-card/index.mjs +16 -65
  22. package/data-cardtext/index.mjs +16 -52
  23. package/data-display/index.mjs +18 -62
  24. package/data-icons/index.mjs +16 -68
  25. package/data-imgtext/index.mjs +18 -79
  26. package/data-operatext/index.mjs +18 -75
  27. package/data-panel/index.mjs +16 -63
  28. package/data-pay/index.mjs +20 -122
  29. package/data-price/index.mjs +18 -60
  30. package/data-progress/index.mjs +16 -67
  31. package/data-rotate/index.mjs +16 -66
  32. package/data-table-picker/index.mjs +25 -88
  33. package/data-tabs/index.mjs +16 -64
  34. package/dialog-form/index.mjs +48 -94
  35. package/dynamic-table/index.mjs +43 -127
  36. package/e-charts/index.mjs +21 -34
  37. package/easy-popup/index.mjs +35 -61
  38. package/editable-progress/index.mjs +22 -77
  39. package/editable-tree/index.mjs +235 -546
  40. package/egd-collapse/index.mjs +13 -26
  41. package/egd-collapse-item/index.mjs +27 -87
  42. package/element-dialog/index.mjs +69 -133
  43. package/empty-view/index.mjs +13 -33
  44. package/error-view/index.mjs +14 -34
  45. package/flex-column/index.mjs +15 -23
  46. package/flex-item/index.mjs +18 -26
  47. package/flex-row/index.mjs +23 -31
  48. package/flex-scroller/index.mjs +16 -27
  49. package/flow/index.mjs +70 -110
  50. package/flow-designer/index.mjs +1215 -4804
  51. package/flow-node/index.mjs +15 -51
  52. package/flow-viewer/index.mjs +64 -89
  53. package/form-block/index.mjs +43 -62
  54. package/form-button/index.mjs +10 -18
  55. package/form-cascader/index.mjs +49 -100
  56. package/form-checkbox-group/index.mjs +43 -110
  57. package/form-date-picker/index.mjs +51 -97
  58. package/form-holder/index.mjs +25 -42
  59. package/form-input/index.mjs +40 -90
  60. package/form-input-email/index.mjs +35 -79
  61. package/form-input-id-card/index.mjs +40 -87
  62. package/form-input-number/index.mjs +42 -102
  63. package/form-input-phone-number/index.mjs +34 -75
  64. package/form-input-tag/index.mjs +31 -73
  65. package/form-input-time/index.mjs +42 -87
  66. package/form-item/index.mjs +70 -89
  67. package/form-item-config-provider/index.mjs +12 -20
  68. package/form-item-group/index.mjs +46 -65
  69. package/form-radio-group/index.mjs +50 -108
  70. package/form-select/index.mjs +44 -95
  71. package/form-switch/index.mjs +38 -85
  72. package/form-textarea/index.mjs +31 -75
  73. package/form-view/index.mjs +112 -260
  74. package/fy-array/index.mjs +35 -121
  75. package/fy-article/index.mjs +12 -43
  76. package/fy-cascader/index.mjs +26 -67
  77. package/fy-checkbox/index.mjs +27 -77
  78. package/fy-code/index.mjs +19 -33
  79. package/fy-curd/index.mjs +810 -2017
  80. package/fy-date/index.mjs +18 -59
  81. package/fy-draggable/index.mjs +81 -140
  82. package/fy-dynamic/index.mjs +85 -204
  83. package/fy-empty/index.mjs +14 -35
  84. package/fy-form/index.mjs +254 -571
  85. package/fy-form-design/index.mjs +1489 -6084
  86. package/fy-form-design/style.css +1 -1
  87. package/fy-input/index.mjs +34 -104
  88. package/fy-input-color/index.mjs +22 -67
  89. package/fy-input-icon/index.mjs +37 -122
  90. package/fy-input-map/index.mjs +57 -149
  91. package/fy-input-number/index.mjs +18 -53
  92. package/fy-input-table/index.mjs +36 -102
  93. package/fy-input-tree/index.mjs +51 -138
  94. package/fy-progress/index.mjs +12 -31
  95. package/fy-radio/index.mjs +20 -51
  96. package/fy-rate/index.mjs +18 -51
  97. package/fy-select/index.mjs +49 -134
  98. package/fy-slider/index.mjs +19 -52
  99. package/fy-switch/index.mjs +18 -48
  100. package/fy-tabs/index.mjs +19 -51
  101. package/fy-time/index.mjs +22 -62
  102. package/fy-title/index.mjs +14 -25
  103. package/fy-tree/index.mjs +74 -216
  104. package/fy-u-editor/index.mjs +50 -64
  105. package/fy-upload/index.mjs +167 -338
  106. package/guide-steps/index.mjs +33 -53
  107. package/highlight-j-s/index.mjs +13 -27
  108. package/icon-card/index.mjs +12 -36
  109. package/icon-temp/index.mjs +12 -34
  110. package/iframe-window/index.mjs +13 -40
  111. package/image-cropper/index.mjs +46 -171
  112. package/image-preview/index.mjs +54 -168
  113. package/image-viewer/index.mjs +24 -50
  114. package/index.css +1 -0
  115. package/index.mjs +3973 -501
  116. package/input-number/index.mjs +84 -173
  117. package/input-number-range/index.mjs +20 -70
  118. package/j-s-x-component/index.mjs +3 -3
  119. package/keep-view-alive/index.mjs +47 -55
  120. package/keyboard/index.mjs +100 -113
  121. package/license/index.mjs +34 -51
  122. package/loading-view/index.mjs +14 -34
  123. package/login/index.mjs +33 -161
  124. package/monaco-editor/index.mjs +13 -21
  125. package/name-avatar/index.mjs +13 -32
  126. package/nav-bar/index.mjs +12 -31
  127. package/not-implement/index.mjs +14 -25
  128. package/notice/index.mjs +32 -80
  129. package/package.json +1 -1
  130. package/page/index.mjs +11 -23
  131. package/page-header/index.mjs +16 -37
  132. package/page-index/index.mjs +42 -93
  133. package/page-index-top/index.mjs +42 -84
  134. package/page-skeleton/index.mjs +24 -39
  135. package/page-skeleton-new/index.mjs +21 -68
  136. package/pageable-table/index.mjs +105 -227
  137. package/pageable-view/index.mjs +30 -83
  138. package/photo-swipe/index.mjs +62 -87
  139. package/present-view/index.mjs +114 -267
  140. package/queue/index.mjs +14 -29
  141. package/record-video/index.mjs +29 -66
  142. package/resize-observer/index.mjs +18 -30
  143. package/search/index.mjs +47 -81
  144. package/search-popover/index.mjs +57 -329
  145. package/sign/index.mjs +43 -60
  146. package/sign-panel/index.mjs +40 -151
  147. package/skeleton/index.mjs +18 -44
  148. package/split-pane/index.mjs +45 -129
  149. package/stateful/index.mjs +18 -26
  150. package/static-pageable-table/index.mjs +18 -44
  151. package/swiper/index.mjs +53 -94
  152. package/tab/index.mjs +13 -39
  153. package/tab-item/index.mjs +23 -37
  154. package/table-column/index.mjs +27 -35
  155. package/table-view/index.mjs +89 -209
  156. package/tag-render/index.mjs +34 -69
  157. package/text-ellipsis/index.mjs +22 -47
  158. package/tinymce-editor/index.mjs +174 -285
  159. package/toolbar/index.mjs +21 -42
  160. package/toolbar-button/index.mjs +25 -54
  161. package/verify/index.mjs +16 -29
  162. package/vue-cron/index.mjs +272 -1089
  163. package/vue-qr-code/index.mjs +19 -27
  164. package/vue-quill-editor/index.mjs +15 -27
  165. package/vue-tags-input/index.mjs +104 -224
  166. package/vue-tree-select/index.mjs +595 -742
  167. package/vue-video-player/index.mjs +42 -57
  168. package/watermark/index.mjs +27 -35
  169. package/web-types.json +1 -1
  170. package/x-input-tag/index.mjs +50 -112
  171. package/chunks/FormTemp.7f91629d.mjs +0 -165
  172. /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
@@ -1,25 +1,9 @@
1
- import a from "simple-uploader.js";
2
- import { n } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
1
+ import d from "simple-uploader.js";
2
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
3
  function r(e) {
4
4
  return e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`);
5
5
  }
6
- var u = function() {
7
- var e = this, t = e.$createElement, i = e._self._c || t;
8
- return i("div", {
9
- staticClass: "uploader"
10
- }, [e._t("default", function() {
11
- return [i("ChunkFileUploaderUnSupport"), i("ChunkFileUploaderDrop", [i("p", [e._v("Drop files here to upload or")]), i("ChunkFileUploaderButton", [e._v("select files")]), i("ChunkFileUploaderButton", {
12
- attrs: {
13
- directory: !0
14
- }
15
- }, [e._v(" select folder ")])], 1), i("ChunkFileUploaderList")];
16
- }, {
17
- files: e.files,
18
- fileList: e.fileList,
19
- started: e.started
20
- })], 2);
21
- }, f = [];
22
- const s = "fileAdded", l = "filesAdded", p = "uploadStart", h = {
6
+ const l = "fileAdded", s = "filesAdded", n = "uploadStart", u = {
23
7
  name: "ChunkFileUploader",
24
8
  provide() {
25
9
  return {
@@ -59,23 +43,23 @@ const s = "fileAdded", l = "filesAdded", p = "uploadStart", h = {
59
43
  },
60
44
  created() {
61
45
  this.options.initialPaused = !this.autoStart;
62
- const e = new a(this.options);
63
- this.uploader = e, this.uploader.fileStatusText = this.fileStatusText, e.on("catchAll", this.allEvent), e.on(s, this.fileAdded), e.on(l, this.filesAdded), e.on("fileRemoved", this.fileRemoved), e.on("filesSubmitted", this.filesSubmitted);
46
+ const e = new d(this.options);
47
+ this.uploader = e, this.uploader.fileStatusText = this.fileStatusText, e.on("catchAll", this.allEvent), e.on(l, this.fileAdded), e.on(s, this.filesAdded), e.on("fileRemoved", this.fileRemoved), e.on("filesSubmitted", this.filesSubmitted);
64
48
  },
65
49
  destroyed() {
66
50
  const e = this.uploader;
67
- e.off("catchAll", this.allEvent), e.off(s, this.fileAdded), e.off(l, this.filesAdded), e.off("fileRemoved", this.fileRemoved), e.off("filesSubmitted", this.filesSubmitted), this.uploader = null;
51
+ e.off("catchAll", this.allEvent), e.off(l, this.fileAdded), e.off(s, this.filesAdded), e.off("fileRemoved", this.fileRemoved), e.off("filesSubmitted", this.filesSubmitted), this.uploader = null;
68
52
  },
69
53
  methods: {
70
54
  uploadStart() {
71
55
  this.started = !0;
72
56
  },
73
57
  fileAdded(e) {
74
- if (this.$emit(r(s), e), e.ignored)
58
+ if (this.$emit(r(l), e), e.ignored)
75
59
  return !1;
76
60
  },
77
61
  filesAdded(e, t) {
78
- if (this.$emit(r(l), e, t), e.ignored || t.ignored)
62
+ if (this.$emit(r(s), e, t), e.ignored || t.ignored)
79
63
  return !1;
80
64
  },
81
65
  fileRemoved(e) {
@@ -86,9 +70,9 @@ const s = "fileAdded", l = "filesAdded", p = "uploadStart", h = {
86
70
  },
87
71
  allEvent(...e) {
88
72
  const t = e[0], o = {
89
- [s]: !0,
90
73
  [l]: !0,
91
- [p]: "uploadStart"
74
+ [s]: !0,
75
+ [n]: "uploadStart"
92
76
  }[t];
93
77
  if (o) {
94
78
  if (o === !0)
@@ -98,24 +82,23 @@ const s = "fileAdded", l = "filesAdded", p = "uploadStart", h = {
98
82
  e[0] = r(t), this.$emit.apply(this, e);
99
83
  }
100
84
  }
101
- }, d = {};
102
- var c = /* @__PURE__ */ n(
103
- h,
85
+ };
86
+ var f = function() {
87
+ var t = this, i = t._self._c;
88
+ return i("div", { staticClass: "uploader" }, [t._t("default", function() {
89
+ return [i("ChunkFileUploaderUnSupport"), i("ChunkFileUploaderDrop", [i("p", [t._v("Drop files here to upload or")]), i("ChunkFileUploaderButton", [t._v("select files")]), i("ChunkFileUploaderButton", { attrs: { directory: !0 } }, [t._v(" select folder ")])], 1), i("ChunkFileUploaderList")];
90
+ }, { files: t.files, fileList: t.fileList, started: t.started })], 2);
91
+ }, p = [], h = /* @__PURE__ */ a(
104
92
  u,
105
93
  f,
94
+ p,
106
95
  !1,
107
- _,
96
+ null,
108
97
  null,
109
98
  null,
110
99
  null
111
100
  );
112
- function _(e) {
113
- for (let t in d)
114
- this[t] = d[t];
115
- }
116
- const S = /* @__PURE__ */ function() {
117
- return c.exports;
118
- }();
101
+ const m = h.exports;
119
102
  export {
120
- S as default
103
+ m as default
121
104
  };
@@ -0,0 +1,125 @@
1
+ import { isBlank as _ } from "@web-utils/core";
2
+ import { formatDate as i } from "@web-utils/integrations/dayjs";
3
+ import { p as h, M as g, A as b, b as c, q as A, e as S, k as d, t as T, h as C, v, u as x } from "./util.ae730cde.mjs";
4
+ import "@web-utils/component/fy-u-editor/style.css";
5
+ import { a as D, b as O } from "./dataformat.f995e2f9.mjs";
6
+ import { s as j } from "./slot.4b391395.mjs";
7
+ import { n as L } from "./_plugin-vue2_normalizer.446f5dc4.mjs";
8
+ const R = (n = {}, e = {}, s = {}, r = []) => {
9
+ let t = n[e.prop];
10
+ const a = e.type, o = e.separator;
11
+ if (e.bind && (t = h(n, e.bind)), _(t))
12
+ t = "";
13
+ else {
14
+ const f = g.includes(e.type) && e.multiple, y = b.includes(e.type);
15
+ if ((["string", "number"].includes(e.dataType) || f || y) && !Array.isArray(t) && (t = `${t}`.split(o || c), e.dataType === "number" && (t = A(t))), S.includes(a))
16
+ Array.isArray(t) ? t = t.join(o || d) : t = t.split(o || c).join(o || d);
17
+ else if (a === "password")
18
+ t = T(t, "*");
19
+ else if (C.includes(a) && e.format) {
20
+ const u = e.format.replace("dd", "DD").replace("yyyy", "YYYY"), m = i(Date.now(), "YYYY-MM-DD");
21
+ if (a.indexOf("range") !== -1) {
22
+ let l = t[0] || "", p = t[1] || "";
23
+ a === "timerange" && l.length <= 8 && p.length < 8 && (l = `${m} ${l}`, p = `${m} ${p}`), t = [i(l, u), i(p, u)].join(e.separator || "~");
24
+ } else
25
+ a === "time" && t.length <= 8 && (t = `${m} ${t}`), t = i(t, u);
26
+ }
27
+ t = v(r, t, e.props || s.props);
28
+ }
29
+ return e.formatter && typeof e.formatter == "function" && (t = e.formatter(n, n[e.prop], t, e)), t;
30
+ }, Y = {
31
+ name: "FormTemp",
32
+ components: { FyUEditor: () => import("@web-utils/component/fy-u-editor") },
33
+ mixins: [j],
34
+ props: {
35
+ value: [String, Object, Number, Boolean, Array],
36
+ columnSlot: {
37
+ type: Array,
38
+ default: () => []
39
+ },
40
+ tableData: {
41
+ type: Object,
42
+ default: () => ({})
43
+ },
44
+ enter: {
45
+ type: Boolean,
46
+ default: !1
47
+ },
48
+ type: {
49
+ type: String
50
+ },
51
+ propsHttp: {
52
+ type: Object,
53
+ default: () => ({})
54
+ },
55
+ props: {
56
+ type: Object
57
+ },
58
+ dic: {
59
+ type: Array
60
+ },
61
+ size: {
62
+ type: String
63
+ },
64
+ disabled: {
65
+ type: Boolean
66
+ },
67
+ readonly: {
68
+ type: Boolean
69
+ },
70
+ column: {
71
+ type: Object,
72
+ default: () => ({})
73
+ }
74
+ },
75
+ computed: {
76
+ params() {
77
+ return this.column.params || {};
78
+ },
79
+ event() {
80
+ return this.column.event || {};
81
+ },
82
+ text: {
83
+ get() {
84
+ return this.value;
85
+ },
86
+ set(n) {
87
+ this.$emit("input", n), this.$emit("change", n);
88
+ }
89
+ }
90
+ },
91
+ methods: {
92
+ uploadFun: x,
93
+ getComponent: D,
94
+ getPlaceholder: O,
95
+ enterChange() {
96
+ typeof this.column.enter == "function" ? this.column.enter({ value: this.text, column: this.column }) : this.enter && this.$emit("enter");
97
+ }
98
+ }
99
+ };
100
+ var k = function() {
101
+ var e = this, s = e._self._c;
102
+ return s(e.getComponent(e.column.type, e.column.component), e._g(e._b({ ref: "temp", tag: "Component", attrs: { column: Object.assign(e.column, e.params), dic: e.dic, disabled: e.column.disabled || e.disabled, readonly: e.column.readonly || e.readonly, placeholder: e.getPlaceholder(e.column), props: e.column.props || e.props, "props-http": e.column.propsHttp || e.propsHttp, size: e.column.size || e.size, "table-data": e.tableData, type: e.type || e.column.type, "column-slot": e.columnSlot }, nativeOn: { keyup: function(r) {
103
+ return !r.type.indexOf("key") && e._k(r.keyCode, "enter", 13, r.key, "Enter") ? null : e.enterChange.apply(null, arguments);
104
+ } }, scopedSlots: e._u([e._l(e.columnSlot, function(r) {
105
+ return { key: r, fn: function(t) {
106
+ return [e._t(r, null, null, t)];
107
+ } };
108
+ })], null, !0), model: { value: e.text, callback: function(r) {
109
+ e.text = r;
110
+ }, expression: "text" } }, "Component", Object.assign(e.column, e.uploadFun(e.column)), !1), e.event), [e.params.html ? s("span", { domProps: { innerHTML: e._s(e.params.html) } }) : e._e()]);
111
+ }, F = [], I = /* @__PURE__ */ L(
112
+ Y,
113
+ k,
114
+ F,
115
+ !1,
116
+ null,
117
+ null,
118
+ null,
119
+ null
120
+ );
121
+ const V = I.exports;
122
+ export {
123
+ V as F,
124
+ R as d
125
+ };
@@ -1,4 +1,4 @@
1
- import F from "codemirror";
1
+ import L from "codemirror";
2
2
  import "codemirror/lib/codemirror.css";
3
3
  import "codemirror/theme/idea.css";
4
4
  import "codemirror/mode/javascript/javascript";
@@ -12,9 +12,9 @@ import "codemirror/addon/fold/foldgutter";
12
12
  import "codemirror/addon/fold/foldgutter.css";
13
13
  import "codemirror/addon/fold/brace-fold";
14
14
  import "codemirror/addon/fold/comment-fold";
15
- import { n as j } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
16
- var M = function() {
17
- var i = {}, l = function() {
15
+ import { n as F } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
16
+ var P = function() {
17
+ var r = {}, h = function() {
18
18
  var m = {
19
19
  trace: function() {
20
20
  },
@@ -87,7 +87,7 @@ var M = function() {
87
87
  [25, 3]
88
88
  ],
89
89
  performAction: function(u, t, n, p, s, e, o) {
90
- var r = e.length - 1;
90
+ var i = e.length - 1;
91
91
  switch (s) {
92
92
  case 1:
93
93
  this.$ = u.replace(/\\(\\|")/g, "$1").replace(/\\n/g, `
@@ -106,33 +106,33 @@ var M = function() {
106
106
  this.$ = !1;
107
107
  break;
108
108
  case 6:
109
- return this.$ = e[r - 1];
109
+ return this.$ = e[i - 1];
110
110
  case 13:
111
111
  this.$ = {};
112
112
  break;
113
113
  case 14:
114
- this.$ = e[r - 1];
114
+ this.$ = e[i - 1];
115
115
  break;
116
116
  case 15:
117
- this.$ = [e[r - 2], e[r]];
117
+ this.$ = [e[i - 2], e[i]];
118
118
  break;
119
119
  case 16:
120
- this.$ = {}, this.$[e[r][0]] = e[r][1];
120
+ this.$ = {}, this.$[e[i][0]] = e[i][1];
121
121
  break;
122
122
  case 17:
123
- this.$ = e[r - 2], e[r - 2][e[r][0]] = e[r][1];
123
+ this.$ = e[i - 2], e[i - 2][e[i][0]] = e[i][1];
124
124
  break;
125
125
  case 18:
126
126
  this.$ = [];
127
127
  break;
128
128
  case 19:
129
- this.$ = e[r - 1];
129
+ this.$ = e[i - 1];
130
130
  break;
131
131
  case 20:
132
- this.$ = [e[r]];
132
+ this.$ = [e[i]];
133
133
  break;
134
134
  case 21:
135
- this.$ = e[r - 2], e[r - 2].push(e[r]);
135
+ this.$ = e[i - 2], e[i - 2].push(e[i]);
136
136
  }
137
137
  },
138
138
  table: [
@@ -244,44 +244,44 @@ var M = function() {
244
244
  var y;
245
245
  return y = p.lexer.lex() || 1, typeof y != "number" && (y = p.symbols_[y] || y), y;
246
246
  }
247
- var p = this, s = [0], e = [null], o = [], r = this.table, k = "", d = 0, N = 0, _ = 0, $ = 2, L = 1;
247
+ var p = this, s = [0], e = [null], o = [], i = this.table, v = "", d = 0, N = 0, _ = 0, $ = 2, J = 1;
248
248
  this.lexer.setInput(u), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, typeof this.lexer.yylloc == "undefined" && (this.lexer.yylloc = {});
249
249
  var b = this.lexer.yylloc;
250
250
  o.push(b), typeof this.yy.parseError == "function" && (this.parseError = this.yy.parseError);
251
- for (var h, S, a, c, w, g = {}, v, f, A, E; ; ) {
252
- if (a = s[s.length - 1], this.defaultActions[a] ? c = this.defaultActions[a] : (h == null && (h = n()), c = r[a] && r[a][h]), typeof c == "undefined" || !c.length || !c[0]) {
251
+ for (var l, S, a, c, w, g = {}, k, f, A, E; ; ) {
252
+ if (a = s[s.length - 1], this.defaultActions[a] ? c = this.defaultActions[a] : (l == null && (l = n()), c = i[a] && i[a][l]), typeof c == "undefined" || !c.length || !c[0]) {
253
253
  if (!_) {
254
254
  E = [];
255
- for (v in r[a])
256
- this.terminals_[v] && v > 2 && E.push("'" + this.terminals_[v] + "'");
255
+ for (k in i[a])
256
+ this.terminals_[k] && k > 2 && E.push("'" + this.terminals_[k] + "'");
257
257
  var x = "";
258
258
  this.lexer.showPosition ? x = "Parse error on line " + (d + 1) + `:
259
259
  ` + this.lexer.showPosition() + `
260
- Expecting ` + E.join(", ") + ", got '" + this.terminals_[h] + "'" : x = "Parse error on line " + (d + 1) + ": Unexpected " + (h == 1 ? "end of input" : "'" + (this.terminals_[h] || h) + "'"), this.parseError(x, {
260
+ Expecting ` + E.join(", ") + ", got '" + this.terminals_[l] + "'" : x = "Parse error on line " + (d + 1) + ": Unexpected " + (l == 1 ? "end of input" : "'" + (this.terminals_[l] || l) + "'"), this.parseError(x, {
261
261
  text: this.lexer.match,
262
- token: this.terminals_[h] || h,
262
+ token: this.terminals_[l] || l,
263
263
  line: this.lexer.yylineno,
264
264
  loc: b,
265
265
  expected: E
266
266
  });
267
267
  }
268
268
  if (_ == 3) {
269
- if (h == L)
269
+ if (l == J)
270
270
  throw new Error(x || "Parsing halted.");
271
- N = this.lexer.yyleng, k = this.lexer.yytext, d = this.lexer.yylineno, b = this.lexer.yylloc, h = n();
271
+ N = this.lexer.yyleng, v = this.lexer.yytext, d = this.lexer.yylineno, b = this.lexer.yylloc, l = n();
272
272
  }
273
- for (; !($.toString() in r[a]); ) {
273
+ for (; !($.toString() in i[a]); ) {
274
274
  if (a == 0)
275
275
  throw new Error(x || "Parsing halted.");
276
276
  t(1), a = s[s.length - 1];
277
277
  }
278
- S = h, h = $, a = s[s.length - 1], c = r[a] && r[a][$], _ = 3;
278
+ S = l, l = $, a = s[s.length - 1], c = i[a] && i[a][$], _ = 3;
279
279
  }
280
280
  if (c[0] instanceof Array && c.length > 1)
281
- throw new Error("Parse Error: multiple actions possible at state: " + a + ", token: " + h);
281
+ throw new Error("Parse Error: multiple actions possible at state: " + a + ", token: " + l);
282
282
  switch (c[0]) {
283
283
  case 1:
284
- s.push(h), e.push(this.lexer.yytext), o.push(this.lexer.yylloc), s.push(c[1]), h = null, S ? (h = S, S = null) : (N = this.lexer.yyleng, k = this.lexer.yytext, d = this.lexer.yylineno, b = this.lexer.yylloc, _ > 0 && _--);
284
+ s.push(l), e.push(this.lexer.yytext), o.push(this.lexer.yylloc), s.push(c[1]), l = null, S ? (l = S, S = null) : (N = this.lexer.yyleng, v = this.lexer.yytext, d = this.lexer.yylineno, b = this.lexer.yylloc, _ > 0 && _--);
285
285
  break;
286
286
  case 2:
287
287
  if (f = this.productions_[c[1]][1], g.$ = e[e.length - f], g._$ = {
@@ -289,9 +289,9 @@ Expecting ` + E.join(", ") + ", got '" + this.terminals_[h] + "'" : x = "Parse e
289
289
  last_line: o[o.length - 1].last_line,
290
290
  first_column: o[o.length - (f || 1)].first_column,
291
291
  last_column: o[o.length - 1].last_column
292
- }, w = this.performAction.call(g, k, N, d, this.yy, c[1], e, o), typeof w != "undefined")
292
+ }, w = this.performAction.call(g, v, N, d, this.yy, c[1], e, o), typeof w != "undefined")
293
293
  return w;
294
- f && (s = s.slice(0, -1 * f * 2), e = e.slice(0, -1 * f), o = o.slice(0, -1 * f)), s.push(this.productions_[c[1]][0]), e.push(g.$), o.push(g._$), A = r[s[s.length - 2]][s[s.length - 1]], s.push(A);
294
+ f && (s = s.slice(0, -1 * f * 2), e = e.slice(0, -1 * f), o = o.slice(0, -1 * f)), s.push(this.productions_[c[1]][0]), e.push(g.$), o.push(g._$), A = i[s[s.length - 2]][s[s.length - 1]], s.push(A);
295
295
  break;
296
296
  case 3:
297
297
  return !0;
@@ -299,7 +299,7 @@ Expecting ` + E.join(", ") + ", got '" + this.terminals_[h] + "'" : x = "Parse e
299
299
  }
300
300
  return !0;
301
301
  }
302
- }, J = function() {
302
+ }, I = function() {
303
303
  var u = {
304
304
  EOF: 1,
305
305
  parseError: function(t, n) {
@@ -344,7 +344,7 @@ Expecting ` + E.join(", ") + ", got '" + this.terminals_[h] + "'" : x = "Parse e
344
344
  this._input || (this.done = !0);
345
345
  var t, n, p, s, e;
346
346
  this._more || (this.yytext = "", this.match = "");
347
- for (var o = this._currentRules(), r = 0; r < o.length && (p = this._input.match(this.rules[o[r]]), !(p && (!n || p[0].length > n[0].length) && (n = p, s = r, !this.options.flex))); r++)
347
+ for (var o = this._currentRules(), i = 0; i < o.length && (p = this._input.match(this.rules[o[i]]), !(p && (!n || p[0].length > n[0].length) && (n = p, s = i, !this.options.flex))); i++)
348
348
  ;
349
349
  if (n)
350
350
  return e = n[0].match(/\n.*/g), e && (this.yylineno += e.length), this.yylloc = {
@@ -435,35 +435,28 @@ Expecting ` + E.join(", ") + ", got '" + this.terminals_[h] + "'" : x = "Parse e
435
435
  /^(?:.)/
436
436
  ], u.conditions = { INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], inclusive: !0 } }, u;
437
437
  }();
438
- return m.lexer = J, m;
438
+ return m.lexer = I, m;
439
439
  }();
440
- return i.parser = l, i.parse = function() {
441
- return l.parse.apply(l, arguments);
442
- }, i;
443
- }(), P = function() {
444
- var i = this, l = i.$createElement, m = i._self._c || l;
445
- return m("div", {
446
- staticClass: "code-mirror-editor"
447
- }, [m("textarea", {
448
- ref: "editor"
449
- })]);
450
- }, R = [];
451
- window.jsonlint = M;
452
- const O = (i) => {
453
- if (i)
440
+ return r.parser = h, r.parse = function() {
441
+ return h.parse.apply(h, arguments);
442
+ }, r;
443
+ }();
444
+ window.jsonlint = P;
445
+ const O = (r) => {
446
+ if (r)
454
447
  try {
455
- return JSON.stringify(JSON.parse(i), null, 1);
456
- } catch (l) {
448
+ return JSON.stringify(JSON.parse(r), null, 1);
449
+ } catch (h) {
457
450
  }
458
- return i;
459
- }, T = (i) => {
460
- if (i)
451
+ return r;
452
+ }, R = (r) => {
453
+ if (r)
461
454
  try {
462
- return JSON.stringify(JSON.parse(i));
463
- } catch (l) {
455
+ return JSON.stringify(JSON.parse(r));
456
+ } catch (h) {
464
457
  }
465
- return i;
466
- }, U = {
458
+ return r;
459
+ }, T = {
467
460
  name: "CodeMirrorEditor",
468
461
  inject: {
469
462
  elForm: {
@@ -480,13 +473,13 @@ const O = (i) => {
480
473
  }
481
474
  },
482
475
  watch: {
483
- value(i) {
484
- var l;
485
- (l = this.editor) == null || l.setValue(O(i));
476
+ value(r) {
477
+ var h;
478
+ (h = this.editor) == null || h.setValue(O(r));
486
479
  }
487
480
  },
488
481
  mounted() {
489
- this.editor = F.fromTextArea(this.$refs.editor, {
482
+ this.editor = L.fromTextArea(this.$refs.editor, {
490
483
  mode: "application/json",
491
484
  theme: "idea",
492
485
  tabSize: 2,
@@ -500,43 +493,40 @@ const O = (i) => {
500
493
  // styleActiveLine: true,
501
494
  // gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter', 'CodeMirror-lint-markers']
502
495
  }), this.editor.setValue(O(this.value)), this.editor.on("blur", this.change), this.editor.on("focus", this.focus), this.editor.setOption("extraKeys", {
503
- "Ctrl-Alt-L"(i) {
504
- i.setValue(O(i.getValue()), null, 1);
496
+ "Ctrl-Alt-L"(r) {
497
+ r.setValue(O(r.getValue()), null, 1);
505
498
  }
506
499
  });
507
500
  },
508
501
  beforeDestroy() {
509
- var i, l;
510
- (i = this.editor) == null || i.off("blur", this.change), (l = this.editor) == null || l.toTextArea();
502
+ var r, h;
503
+ (r = this.editor) == null || r.off("blur", this.change), (h = this.editor) == null || h.toTextArea();
511
504
  },
512
505
  methods: {
513
506
  focus() {
514
- var i, l;
515
- (l = (i = this.elFormItem).clearValidate) == null || l.call(i);
507
+ var r, h;
508
+ (h = (r = this.elFormItem).clearValidate) == null || h.call(r);
516
509
  },
517
510
  change() {
518
- var i;
519
- this.$emit("input", T((i = this.editor) == null ? void 0 : i.getValue()));
511
+ var r;
512
+ this.$emit("input", R((r = this.editor) == null ? void 0 : r.getValue()));
520
513
  }
521
514
  }
522
- }, I = {};
523
- var V = /* @__PURE__ */ j(
515
+ };
516
+ var U = function() {
517
+ var h = this, m = h._self._c;
518
+ return m("div", { staticClass: "code-mirror-editor" }, [m("textarea", { ref: "editor" })]);
519
+ }, j = [], M = /* @__PURE__ */ F(
520
+ T,
524
521
  U,
525
- P,
526
- R,
522
+ j,
527
523
  !1,
528
- C,
524
+ null,
529
525
  null,
530
526
  null,
531
527
  null
532
528
  );
533
- function C(i) {
534
- for (let l in I)
535
- this[l] = I[l];
536
- }
537
- const rt = /* @__PURE__ */ function() {
538
- return V.exports;
539
- }();
529
+ const et = M.exports;
540
530
  export {
541
- rt as default
531
+ et as default
542
532
  };
@@ -1,55 +1,25 @@
1
- var c = (e, o, t) => new Promise((r, n) => {
2
- var d = (i) => {
1
+ var a = (i, e, r) => new Promise((t, n) => {
2
+ var c = (o) => {
3
3
  try {
4
- s(t.next(i));
4
+ s(r.next(o));
5
5
  } catch (l) {
6
6
  n(l);
7
7
  }
8
- }, u = (i) => {
8
+ }, d = (o) => {
9
9
  try {
10
- s(t.throw(i));
10
+ s(r.throw(o));
11
11
  } catch (l) {
12
12
  n(l);
13
13
  }
14
- }, s = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(d, u);
15
- s((t = t.apply(e, o)).next());
14
+ }, s = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(c, d);
15
+ s((r = r.apply(i, e)).next());
16
16
  });
17
17
  import p from "element-ui/packages/color-picker/src/color";
18
- import h from "element-ui/src/utils/clickoutside";
19
- import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
20
- var m = function() {
21
- var e = this, o = e.$createElement, t = e._self._c || o;
22
- return t("ElColorPickerDropdown", {
23
- directives: [{
24
- name: "clickoutside",
25
- rawName: "v-clickoutside",
26
- value: e.onClickOutside,
27
- expression: "onClickOutside"
28
- }],
29
- ref: "dropdown",
30
- class: ["el-color-picker__panel", e.popperClass || ""],
31
- attrs: {
32
- offset: e.offset,
33
- "append-to-body": e.appendToBody,
34
- color: e.color,
35
- predefine: e.predefine
36
- },
37
- on: {
38
- pick: e.confirmValue,
39
- clear: e.clearValue
40
- },
41
- model: {
42
- value: e.showPicker,
43
- callback: function(r) {
44
- e.showPicker = r;
45
- },
46
- expression: "showPicker"
47
- }
48
- });
49
- }, k = [];
50
- const v = {
18
+ import u from "element-ui/src/utils/clickoutside";
19
+ import { n as h } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
20
+ const f = {
51
21
  name: "ColorPicker",
52
- directives: { Clickoutside: h },
22
+ directives: { Clickoutside: u },
53
23
  props: {
54
24
  popperClass: String,
55
25
  predefine: Array,
@@ -75,15 +45,15 @@ const v = {
75
45
  watch: {
76
46
  value: {
77
47
  immediate: !0,
78
- handler(e) {
79
- e && e !== this.color.value && this.color.fromString(e);
48
+ handler(i) {
49
+ i && i !== this.color.value && this.color.fromString(i);
80
50
  }
81
51
  },
82
52
  visible: {
83
53
  immediate: !0,
84
- handler(e) {
85
- return c(this, null, function* () {
86
- e ? (yield this.$nextTick(), this.$refs.dropdown.referenceElm = this.anchor) : this.$refs.dropdown && this.$refs.dropdown.doDestroy(!0), this.showPicker = e;
54
+ handler(i) {
55
+ return a(this, null, function* () {
56
+ i ? (yield this.$nextTick(), this.$refs.dropdown.referenceElm = this.anchor) : this.$refs.dropdown && this.$refs.dropdown.doDestroy(!0), this.showPicker = i;
87
57
  });
88
58
  }
89
59
  }
@@ -95,8 +65,8 @@ const v = {
95
65
  clearValue() {
96
66
  this.$emit("clear"), this.hide();
97
67
  },
98
- emitInput(e) {
99
- this.$emit("input", e.value);
68
+ emitInput(i) {
69
+ this.$emit("input", i.value);
100
70
  },
101
71
  onClickOutside() {
102
72
  this.hideOnClickOutside && this.hide();
@@ -105,24 +75,23 @@ const v = {
105
75
  this.$emit("update:visible", !1);
106
76
  }
107
77
  }
108
- }, a = {};
109
- var _ = /* @__PURE__ */ f(
110
- v,
78
+ };
79
+ var m = function() {
80
+ var e = this, r = e._self._c;
81
+ return r("ElColorPickerDropdown", { directives: [{ name: "clickoutside", rawName: "v-clickoutside", value: e.onClickOutside, expression: "onClickOutside" }], ref: "dropdown", class: ["el-color-picker__panel", e.popperClass || ""], attrs: { offset: e.offset, "append-to-body": e.appendToBody, color: e.color, predefine: e.predefine }, on: { pick: e.confirmValue, clear: e.clearValue }, model: { value: e.showPicker, callback: function(t) {
82
+ e.showPicker = t;
83
+ }, expression: "showPicker" } });
84
+ }, k = [], v = /* @__PURE__ */ h(
85
+ f,
111
86
  m,
112
87
  k,
113
88
  !1,
114
- w,
89
+ null,
115
90
  null,
116
91
  null,
117
92
  null
118
93
  );
119
- function w(e) {
120
- for (let o in a)
121
- this[o] = a[o];
122
- }
123
- const b = /* @__PURE__ */ function() {
124
- return _.exports;
125
- }();
94
+ const P = v.exports;
126
95
  export {
127
- b as default
96
+ P as default
128
97
  };