@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.
- package/address-input/index.mjs +20 -57
- package/affix/index.mjs +26 -47
- package/aside-menu/index.mjs +18 -43
- package/avatar/index.mjs +27 -49
- package/awesome-button/index.mjs +35 -43
- package/capsule-tab/index.mjs +16 -34
- package/card/index.mjs +21 -76
- package/carousel/index.mjs +14 -49
- package/chat/index.mjs +104 -414
- package/chunk-file-uploader/index.mjs +21 -38
- package/chunks/FormTemp.aa57efb4.mjs +125 -0
- package/code-mirror-editor/index.mjs +69 -79
- package/color-picker/index.mjs +29 -60
- package/comment/index.mjs +17 -48
- package/confirm-button/index.mjs +11 -19
- package/confirmable/index.mjs +12 -20
- package/context-menu/index.mjs +42 -144
- package/count-up/index.mjs +18 -25
- package/custom-scrollbar/index.mjs +13 -22
- package/data-box/index.mjs +15 -66
- package/data-card/index.mjs +16 -65
- package/data-cardtext/index.mjs +16 -52
- package/data-display/index.mjs +18 -62
- package/data-icons/index.mjs +16 -68
- package/data-imgtext/index.mjs +18 -79
- package/data-operatext/index.mjs +18 -75
- package/data-panel/index.mjs +16 -63
- package/data-pay/index.mjs +20 -122
- package/data-price/index.mjs +18 -60
- package/data-progress/index.mjs +16 -67
- package/data-rotate/index.mjs +16 -66
- package/data-table-picker/index.mjs +25 -88
- package/data-tabs/index.mjs +16 -64
- package/dialog-form/index.mjs +48 -94
- package/dynamic-table/index.mjs +43 -127
- package/e-charts/index.mjs +21 -34
- package/easy-popup/index.mjs +35 -61
- package/editable-progress/index.mjs +22 -77
- package/editable-tree/index.mjs +235 -546
- package/egd-collapse/index.mjs +13 -26
- package/egd-collapse-item/index.mjs +27 -87
- package/element-dialog/index.mjs +69 -133
- package/empty-view/index.mjs +13 -33
- package/error-view/index.mjs +14 -34
- package/flex-column/index.mjs +15 -23
- package/flex-item/index.mjs +18 -26
- package/flex-row/index.mjs +23 -31
- package/flex-scroller/index.mjs +16 -27
- package/flow/index.mjs +70 -110
- package/flow-designer/index.mjs +1215 -4804
- package/flow-node/index.mjs +15 -51
- package/flow-viewer/index.mjs +64 -89
- package/form-block/index.mjs +43 -62
- package/form-button/index.mjs +10 -18
- package/form-cascader/index.mjs +49 -100
- package/form-checkbox-group/index.mjs +43 -110
- package/form-date-picker/index.mjs +51 -97
- package/form-holder/index.mjs +25 -42
- package/form-input/index.mjs +40 -90
- package/form-input-email/index.mjs +35 -79
- package/form-input-id-card/index.mjs +40 -87
- package/form-input-number/index.mjs +42 -102
- package/form-input-phone-number/index.mjs +34 -75
- package/form-input-tag/index.mjs +31 -73
- package/form-input-time/index.mjs +42 -87
- package/form-item/index.mjs +70 -89
- package/form-item-config-provider/index.mjs +12 -20
- package/form-item-group/index.mjs +46 -65
- package/form-radio-group/index.mjs +50 -108
- package/form-select/index.mjs +44 -95
- package/form-switch/index.mjs +38 -85
- package/form-textarea/index.mjs +31 -75
- package/form-view/index.mjs +112 -260
- package/fy-array/index.mjs +35 -121
- package/fy-article/index.mjs +12 -43
- package/fy-cascader/index.mjs +26 -67
- package/fy-checkbox/index.mjs +27 -77
- package/fy-code/index.mjs +19 -33
- package/fy-curd/index.mjs +810 -2017
- package/fy-date/index.mjs +18 -59
- package/fy-draggable/index.mjs +81 -140
- package/fy-dynamic/index.mjs +85 -204
- package/fy-empty/index.mjs +14 -35
- package/fy-form/index.mjs +254 -571
- package/fy-form-design/index.mjs +1489 -6084
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +34 -104
- package/fy-input-color/index.mjs +22 -67
- package/fy-input-icon/index.mjs +37 -122
- package/fy-input-map/index.mjs +57 -149
- package/fy-input-number/index.mjs +18 -53
- package/fy-input-table/index.mjs +36 -102
- package/fy-input-tree/index.mjs +51 -138
- package/fy-progress/index.mjs +12 -31
- package/fy-radio/index.mjs +20 -51
- package/fy-rate/index.mjs +18 -51
- package/fy-select/index.mjs +49 -134
- package/fy-slider/index.mjs +19 -52
- package/fy-switch/index.mjs +18 -48
- package/fy-tabs/index.mjs +19 -51
- package/fy-time/index.mjs +22 -62
- package/fy-title/index.mjs +14 -25
- package/fy-tree/index.mjs +74 -216
- package/fy-u-editor/index.mjs +50 -64
- package/fy-upload/index.mjs +167 -338
- package/guide-steps/index.mjs +33 -53
- package/highlight-j-s/index.mjs +13 -27
- package/icon-card/index.mjs +12 -36
- package/icon-temp/index.mjs +12 -34
- package/iframe-window/index.mjs +13 -40
- package/image-cropper/index.mjs +46 -171
- package/image-preview/index.mjs +54 -168
- package/image-viewer/index.mjs +24 -50
- package/index.css +1 -0
- package/index.mjs +3973 -501
- package/input-number/index.mjs +84 -173
- package/input-number-range/index.mjs +20 -70
- package/j-s-x-component/index.mjs +3 -3
- package/keep-view-alive/index.mjs +47 -55
- package/keyboard/index.mjs +100 -113
- package/license/index.mjs +34 -51
- package/loading-view/index.mjs +14 -34
- package/login/index.mjs +33 -161
- package/monaco-editor/index.mjs +13 -21
- package/name-avatar/index.mjs +13 -32
- package/nav-bar/index.mjs +12 -31
- package/not-implement/index.mjs +14 -25
- package/notice/index.mjs +32 -80
- package/package.json +1 -1
- package/page/index.mjs +11 -23
- package/page-header/index.mjs +16 -37
- package/page-index/index.mjs +42 -93
- package/page-index-top/index.mjs +42 -84
- package/page-skeleton/index.mjs +24 -39
- package/page-skeleton-new/index.mjs +21 -68
- package/pageable-table/index.mjs +105 -227
- package/pageable-view/index.mjs +30 -83
- package/photo-swipe/index.mjs +62 -87
- package/present-view/index.mjs +114 -267
- package/queue/index.mjs +14 -29
- package/record-video/index.mjs +29 -66
- package/resize-observer/index.mjs +18 -30
- package/search/index.mjs +47 -81
- package/search-popover/index.mjs +57 -329
- package/sign/index.mjs +43 -60
- package/sign-panel/index.mjs +40 -151
- package/skeleton/index.mjs +18 -44
- package/split-pane/index.mjs +45 -129
- package/stateful/index.mjs +18 -26
- package/static-pageable-table/index.mjs +18 -44
- package/swiper/index.mjs +53 -94
- package/tab/index.mjs +13 -39
- package/tab-item/index.mjs +23 -37
- package/table-column/index.mjs +27 -35
- package/table-view/index.mjs +89 -209
- package/tag-render/index.mjs +34 -69
- package/text-ellipsis/index.mjs +22 -47
- package/tinymce-editor/index.mjs +174 -285
- package/toolbar/index.mjs +21 -42
- package/toolbar-button/index.mjs +25 -54
- package/verify/index.mjs +16 -29
- package/vue-cron/index.mjs +272 -1089
- package/vue-qr-code/index.mjs +19 -27
- package/vue-quill-editor/index.mjs +15 -27
- package/vue-tags-input/index.mjs +104 -224
- package/vue-tree-select/index.mjs +595 -742
- package/vue-video-player/index.mjs +42 -57
- package/watermark/index.mjs +27 -35
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +50 -112
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { n } from "../chunks/
|
|
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
|
-
|
|
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
|
|
63
|
-
this.uploader = e, this.uploader.fileStatusText = this.fileStatusText, e.on("catchAll", this.allEvent), e.on(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
[
|
|
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
|
-
}
|
|
102
|
-
var
|
|
103
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
16
|
-
var
|
|
17
|
-
var
|
|
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
|
|
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[
|
|
109
|
+
return this.$ = e[i - 1];
|
|
110
110
|
case 13:
|
|
111
111
|
this.$ = {};
|
|
112
112
|
break;
|
|
113
113
|
case 14:
|
|
114
|
-
this.$ = e[
|
|
114
|
+
this.$ = e[i - 1];
|
|
115
115
|
break;
|
|
116
116
|
case 15:
|
|
117
|
-
this.$ = [e[
|
|
117
|
+
this.$ = [e[i - 2], e[i]];
|
|
118
118
|
break;
|
|
119
119
|
case 16:
|
|
120
|
-
this.$ = {}, this.$[e[
|
|
120
|
+
this.$ = {}, this.$[e[i][0]] = e[i][1];
|
|
121
121
|
break;
|
|
122
122
|
case 17:
|
|
123
|
-
this.$ = e[
|
|
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[
|
|
129
|
+
this.$ = e[i - 1];
|
|
130
130
|
break;
|
|
131
131
|
case 20:
|
|
132
|
-
this.$ = [e[
|
|
132
|
+
this.$ = [e[i]];
|
|
133
133
|
break;
|
|
134
134
|
case 21:
|
|
135
|
-
this.$ = e[
|
|
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 = [],
|
|
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
|
|
252
|
-
if (a = s[s.length - 1], this.defaultActions[a] ? c = this.defaultActions[a] : (
|
|
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 (
|
|
256
|
-
this.terminals_[
|
|
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_[
|
|
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_[
|
|
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 (
|
|
269
|
+
if (l == J)
|
|
270
270
|
throw new Error(x || "Parsing halted.");
|
|
271
|
-
N = this.lexer.yyleng,
|
|
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
|
|
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 =
|
|
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: " +
|
|
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(
|
|
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,
|
|
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 =
|
|
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
|
-
},
|
|
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(),
|
|
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 =
|
|
438
|
+
return m.lexer = I, m;
|
|
439
439
|
}();
|
|
440
|
-
return
|
|
441
|
-
return
|
|
442
|
-
},
|
|
443
|
-
}()
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
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(
|
|
456
|
-
} catch (
|
|
448
|
+
return JSON.stringify(JSON.parse(r), null, 1);
|
|
449
|
+
} catch (h) {
|
|
457
450
|
}
|
|
458
|
-
return
|
|
459
|
-
},
|
|
460
|
-
if (
|
|
451
|
+
return r;
|
|
452
|
+
}, R = (r) => {
|
|
453
|
+
if (r)
|
|
461
454
|
try {
|
|
462
|
-
return JSON.stringify(JSON.parse(
|
|
463
|
-
} catch (
|
|
455
|
+
return JSON.stringify(JSON.parse(r));
|
|
456
|
+
} catch (h) {
|
|
464
457
|
}
|
|
465
|
-
return
|
|
466
|
-
},
|
|
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(
|
|
484
|
-
var
|
|
485
|
-
(
|
|
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 =
|
|
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"(
|
|
504
|
-
|
|
496
|
+
"Ctrl-Alt-L"(r) {
|
|
497
|
+
r.setValue(O(r.getValue()), null, 1);
|
|
505
498
|
}
|
|
506
499
|
});
|
|
507
500
|
},
|
|
508
501
|
beforeDestroy() {
|
|
509
|
-
var
|
|
510
|
-
(
|
|
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
|
|
515
|
-
(
|
|
507
|
+
var r, h;
|
|
508
|
+
(h = (r = this.elFormItem).clearValidate) == null || h.call(r);
|
|
516
509
|
},
|
|
517
510
|
change() {
|
|
518
|
-
var
|
|
519
|
-
this.$emit("input",
|
|
511
|
+
var r;
|
|
512
|
+
this.$emit("input", R((r = this.editor) == null ? void 0 : r.getValue()));
|
|
520
513
|
}
|
|
521
514
|
}
|
|
522
|
-
}
|
|
523
|
-
var
|
|
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
|
-
|
|
526
|
-
R,
|
|
522
|
+
j,
|
|
527
523
|
!1,
|
|
528
|
-
|
|
524
|
+
null,
|
|
529
525
|
null,
|
|
530
526
|
null,
|
|
531
527
|
null
|
|
532
528
|
);
|
|
533
|
-
|
|
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
|
-
|
|
531
|
+
et as default
|
|
542
532
|
};
|
package/color-picker/index.mjs
CHANGED
|
@@ -1,55 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var a = (i, e, r) => new Promise((t, n) => {
|
|
2
|
+
var c = (o) => {
|
|
3
3
|
try {
|
|
4
|
-
s(
|
|
4
|
+
s(r.next(o));
|
|
5
5
|
} catch (l) {
|
|
6
6
|
n(l);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, d = (o) => {
|
|
9
9
|
try {
|
|
10
|
-
s(
|
|
10
|
+
s(r.throw(o));
|
|
11
11
|
} catch (l) {
|
|
12
12
|
n(l);
|
|
13
13
|
}
|
|
14
|
-
}, s = (
|
|
15
|
-
s((
|
|
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
|
|
19
|
-
import { n as
|
|
20
|
-
|
|
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:
|
|
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(
|
|
79
|
-
|
|
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(
|
|
85
|
-
return
|
|
86
|
-
|
|
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(
|
|
99
|
-
this.$emit("input",
|
|
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
|
-
}
|
|
109
|
-
var
|
|
110
|
-
|
|
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
|
-
|
|
89
|
+
null,
|
|
115
90
|
null,
|
|
116
91
|
null,
|
|
117
92
|
null
|
|
118
93
|
);
|
|
119
|
-
|
|
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
|
-
|
|
96
|
+
P as default
|
|
128
97
|
};
|