labmaker-plugin 0.0.8 → 0.0.9
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/dist/labmaker-plugin.js +31 -86
- package/dist/labmaker-plugin.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/labmaker-plugin.js
CHANGED
|
@@ -1,66 +1,11 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
for (const [
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
}, g = {
|
|
8
|
-
props: ["custom-img"],
|
|
9
|
-
data() {
|
|
10
|
-
return {
|
|
11
|
-
imgSRC: this.customImg
|
|
12
|
-
};
|
|
13
|
-
},
|
|
14
|
-
computed: {},
|
|
15
|
-
methods: {
|
|
16
|
-
fileUpload(e) {
|
|
17
|
-
const t = e.target.files[0];
|
|
18
|
-
this.fileProcess(t);
|
|
19
|
-
},
|
|
20
|
-
fileProcess(e) {
|
|
21
|
-
this.imgSRC = URL.createObjectURL(e);
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
mounted() {
|
|
25
|
-
}
|
|
26
|
-
}, h = /* @__PURE__ */ n("h1", null, "File Uploader", -1), f = { class: "image-uploader" }, y = /* @__PURE__ */ n("h1", null, "File Uploader", -1), v = { class: "your-file" }, L = ["src"];
|
|
27
|
-
function H(e, o, t, i, a, r) {
|
|
28
|
-
return s(), c(u, null, [
|
|
29
|
-
h,
|
|
30
|
-
n("div", f, [
|
|
31
|
-
y,
|
|
32
|
-
n("input", {
|
|
33
|
-
onChange: o[0] || (o[0] = (...d) => r.fileUpload && r.fileUpload(...d)),
|
|
34
|
-
type: "file",
|
|
35
|
-
id: "file-upload",
|
|
36
|
-
name: "fileUpload",
|
|
37
|
-
accept: "image/*"
|
|
38
|
-
}, null, 32),
|
|
39
|
-
n("div", v, [
|
|
40
|
-
n("img", {
|
|
41
|
-
src: a.imgSRC,
|
|
42
|
-
alt: "",
|
|
43
|
-
scrset: ""
|
|
44
|
-
}, null, 8, L)
|
|
45
|
-
])
|
|
46
|
-
])
|
|
47
|
-
], 64);
|
|
48
|
-
}
|
|
49
|
-
const U = /* @__PURE__ */ _(g, [["render", H]]);
|
|
50
|
-
const $ = {
|
|
51
|
-
props: ["title"],
|
|
52
|
-
data() {
|
|
53
|
-
return {};
|
|
54
|
-
},
|
|
55
|
-
computed: {}
|
|
1
|
+
import { openBlock as n, createElementBlock as c, createElementVNode as i, normalizeClass as _, createCommentVNode as o } from "vue";
|
|
2
|
+
const l = (t, a) => {
|
|
3
|
+
const e = t.__vccOpts || t;
|
|
4
|
+
for (const [s, r] of a)
|
|
5
|
+
e[s] = r;
|
|
6
|
+
return e;
|
|
56
7
|
};
|
|
57
|
-
|
|
58
|
-
return s(), c("header", null, [
|
|
59
|
-
n("h1", null, p(t.title), 1)
|
|
60
|
-
]);
|
|
61
|
-
}
|
|
62
|
-
const x = /* @__PURE__ */ _($, [["render", k]]);
|
|
63
|
-
const b = {
|
|
8
|
+
const d = {
|
|
64
9
|
props: ["content"],
|
|
65
10
|
data() {
|
|
66
11
|
return {};
|
|
@@ -71,8 +16,8 @@ const b = {
|
|
|
71
16
|
}
|
|
72
17
|
},
|
|
73
18
|
methods: {
|
|
74
|
-
pixelFormat(
|
|
75
|
-
return typeof
|
|
19
|
+
pixelFormat(t) {
|
|
20
|
+
return typeof t == "number" ? t + "px" : t;
|
|
76
21
|
},
|
|
77
22
|
checkStepper() {
|
|
78
23
|
this.$store.dispatch("lastPageFocus", {});
|
|
@@ -81,38 +26,38 @@ const b = {
|
|
|
81
26
|
mounted() {
|
|
82
27
|
this.checkStepper();
|
|
83
28
|
}
|
|
84
|
-
},
|
|
85
|
-
function
|
|
86
|
-
return
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
src:
|
|
90
|
-
alt:
|
|
91
|
-
class:
|
|
92
|
-
}, null, 10,
|
|
93
|
-
|
|
29
|
+
}, u = { class: "image-container" }, p = { class: "image" }, m = ["src", "alt"], g = ["innerHTML"], h = ["innerHTML"], y = ["innerHTML"];
|
|
30
|
+
function f(t, a, e, s, r, L) {
|
|
31
|
+
return n(), c("div", u, [
|
|
32
|
+
i("div", p, [
|
|
33
|
+
i("img", {
|
|
34
|
+
src: e.content.src,
|
|
35
|
+
alt: e.content.alt,
|
|
36
|
+
class: _(e.content.class)
|
|
37
|
+
}, null, 10, m),
|
|
38
|
+
e.content.captionHeader ? (n(), c("span", {
|
|
94
39
|
key: 0,
|
|
95
40
|
class: "captionHeader",
|
|
96
|
-
innerHTML:
|
|
97
|
-
}, null, 8,
|
|
98
|
-
|
|
41
|
+
innerHTML: e.content.captionHeader
|
|
42
|
+
}, null, 8, g)) : o("", !0),
|
|
43
|
+
e.content.caption ? (n(), c("span", {
|
|
99
44
|
key: 1,
|
|
100
45
|
class: "caption",
|
|
101
|
-
innerHTML:
|
|
102
|
-
}, null, 8,
|
|
103
|
-
|
|
46
|
+
innerHTML: e.content.caption
|
|
47
|
+
}, null, 8, h)) : o("", !0),
|
|
48
|
+
e.content.copyright ? (n(), c("span", {
|
|
104
49
|
key: 2,
|
|
105
|
-
innerHTML:
|
|
50
|
+
innerHTML: e.content.copyright,
|
|
106
51
|
class: "copyright"
|
|
107
|
-
}, null, 8,
|
|
52
|
+
}, null, 8, y)) : o("", !0)
|
|
108
53
|
])
|
|
109
54
|
]);
|
|
110
55
|
}
|
|
111
|
-
const
|
|
112
|
-
install: (
|
|
113
|
-
|
|
56
|
+
const v = /* @__PURE__ */ l(d, [["render", f], ["__scopeId", "data-v-6d545532"]]), H = {
|
|
57
|
+
install: (t, a) => {
|
|
58
|
+
t.component("lab-image", v);
|
|
114
59
|
}
|
|
115
60
|
};
|
|
116
61
|
export {
|
|
117
|
-
|
|
62
|
+
H as default
|
|
118
63
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o):(e=typeof globalThis<"u"?globalThis:e||self,e.LabmakerPlugin=o(e.Vue))})(this,function(e){"use strict";const o="",i=(n,c)=>{const t=n.__vccOpts||n;for(const[a,s]of c)t[a]=s;return t},f="",k="",r={props:["content"],data(){return{}},computed:{getLastPage(){return!!this.$store.getters.getLastPage}},methods:{pixelFormat(n){return typeof n=="number"?n+"px":n},checkStepper(){this.$store.dispatch("lastPageFocus",{})}},mounted(){this.checkStepper()}},l={class:"image-container"},_={class:"image"},d=["src","alt"],m=["innerHTML"],p=["innerHTML"],u=["innerHTML"];function g(n,c,t,a,s,L){return e.openBlock(),e.createElementBlock("div",l,[e.createElementVNode("div",_,[e.createElementVNode("img",{src:t.content.src,alt:t.content.alt,class:e.normalizeClass(t.content.class)},null,10,d),t.content.captionHeader?(e.openBlock(),e.createElementBlock("span",{key:0,class:"captionHeader",innerHTML:t.content.captionHeader},null,8,m)):e.createCommentVNode("",!0),t.content.caption?(e.openBlock(),e.createElementBlock("span",{key:1,class:"caption",innerHTML:t.content.caption},null,8,p)):e.createCommentVNode("",!0),t.content.copyright?(e.openBlock(),e.createElementBlock("span",{key:2,innerHTML:t.content.copyright,class:"copyright"},null,8,u)):e.createCommentVNode("",!0)])])}const h=i(r,[["render",g],["__scopeId","data-v-6d545532"]]);return{install:(n,c)=>{n.component("lab-image",h)}}});
|