@tailor-cms/ce-embed-display 0.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/README.md +1 -0
- package/dist/index.cjs +69 -0
- package/dist/index.js +69 -0
- package/dist/style.css +4 -0
- package/package.json +37 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Content element `Display` component
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var import_style = require("./style.css");
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
+
const vue = require("vue");
|
|
5
|
+
var type = "CE_EMBED";
|
|
6
|
+
var name = "Embed";
|
|
7
|
+
var initState = () => ({ height: 260 });
|
|
8
|
+
var ui = {
|
|
9
|
+
// Display icon, https://pictogrammers.com/library/mdi/
|
|
10
|
+
icon: "mdi-application-brackets",
|
|
11
|
+
// Does element support only full width or can be used within layouts
|
|
12
|
+
// (e.g. 50/50 layout)
|
|
13
|
+
forceFullWidth: false
|
|
14
|
+
};
|
|
15
|
+
var mocks = {
|
|
16
|
+
displayContexts: [{ name: "No selection", data: {} }]
|
|
17
|
+
};
|
|
18
|
+
var manifest$1 = {
|
|
19
|
+
type,
|
|
20
|
+
version: "1.0",
|
|
21
|
+
name,
|
|
22
|
+
ssr: false,
|
|
23
|
+
initState,
|
|
24
|
+
ui,
|
|
25
|
+
mocks
|
|
26
|
+
};
|
|
27
|
+
var src_default = manifest$1;
|
|
28
|
+
const _hoisted_1 = { class: "tce-root" };
|
|
29
|
+
const _hoisted_2 = ["height", "src"];
|
|
30
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
31
|
+
__name: "Display",
|
|
32
|
+
props: {
|
|
33
|
+
id: {},
|
|
34
|
+
data: {},
|
|
35
|
+
userState: {}
|
|
36
|
+
},
|
|
37
|
+
emits: ["interaction"],
|
|
38
|
+
setup(__props, { emit }) {
|
|
39
|
+
const props = __props;
|
|
40
|
+
const submit = () => emit("interaction", { id: props.id });
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
43
|
+
vue.createElementVNode("iframe", {
|
|
44
|
+
height: _ctx.data.height,
|
|
45
|
+
src: _ctx.data.url,
|
|
46
|
+
class: "d-block w-100",
|
|
47
|
+
frameborder: "0",
|
|
48
|
+
title: "PDF Viewer",
|
|
49
|
+
onLoad: submit
|
|
50
|
+
}, null, 40, _hoisted_2)
|
|
51
|
+
]);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
const Display_vue_vue_type_style_index_0_scoped_78779c51_lang = "";
|
|
56
|
+
const _export_sfc = (sfc, props) => {
|
|
57
|
+
const target = sfc.__vccOpts || sfc;
|
|
58
|
+
for (const [key, val] of props) {
|
|
59
|
+
target[key] = val;
|
|
60
|
+
}
|
|
61
|
+
return target;
|
|
62
|
+
};
|
|
63
|
+
const Display = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-78779c51"]]);
|
|
64
|
+
const manifest = {
|
|
65
|
+
...src_default,
|
|
66
|
+
Display
|
|
67
|
+
};
|
|
68
|
+
exports.Display = Display;
|
|
69
|
+
exports.default = manifest;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import "./style.css";
|
|
2
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode } from "vue";
|
|
3
|
+
var type = "CE_EMBED";
|
|
4
|
+
var name = "Embed";
|
|
5
|
+
var initState = () => ({ height: 260 });
|
|
6
|
+
var ui = {
|
|
7
|
+
// Display icon, https://pictogrammers.com/library/mdi/
|
|
8
|
+
icon: "mdi-application-brackets",
|
|
9
|
+
// Does element support only full width or can be used within layouts
|
|
10
|
+
// (e.g. 50/50 layout)
|
|
11
|
+
forceFullWidth: false
|
|
12
|
+
};
|
|
13
|
+
var mocks = {
|
|
14
|
+
displayContexts: [{ name: "No selection", data: {} }]
|
|
15
|
+
};
|
|
16
|
+
var manifest$1 = {
|
|
17
|
+
type,
|
|
18
|
+
version: "1.0",
|
|
19
|
+
name,
|
|
20
|
+
ssr: false,
|
|
21
|
+
initState,
|
|
22
|
+
ui,
|
|
23
|
+
mocks
|
|
24
|
+
};
|
|
25
|
+
var src_default = manifest$1;
|
|
26
|
+
const _hoisted_1 = { class: "tce-root" };
|
|
27
|
+
const _hoisted_2 = ["height", "src"];
|
|
28
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29
|
+
__name: "Display",
|
|
30
|
+
props: {
|
|
31
|
+
id: {},
|
|
32
|
+
data: {},
|
|
33
|
+
userState: {}
|
|
34
|
+
},
|
|
35
|
+
emits: ["interaction"],
|
|
36
|
+
setup(__props, { emit }) {
|
|
37
|
+
const props = __props;
|
|
38
|
+
const submit = () => emit("interaction", { id: props.id });
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
41
|
+
createElementVNode("iframe", {
|
|
42
|
+
height: _ctx.data.height,
|
|
43
|
+
src: _ctx.data.url,
|
|
44
|
+
class: "d-block w-100",
|
|
45
|
+
frameborder: "0",
|
|
46
|
+
title: "PDF Viewer",
|
|
47
|
+
onLoad: submit
|
|
48
|
+
}, null, 40, _hoisted_2)
|
|
49
|
+
]);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
const Display_vue_vue_type_style_index_0_scoped_78779c51_lang = "";
|
|
54
|
+
const _export_sfc = (sfc, props) => {
|
|
55
|
+
const target = sfc.__vccOpts || sfc;
|
|
56
|
+
for (const [key, val] of props) {
|
|
57
|
+
target[key] = val;
|
|
58
|
+
}
|
|
59
|
+
return target;
|
|
60
|
+
};
|
|
61
|
+
const Display = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-78779c51"]]);
|
|
62
|
+
const manifest = {
|
|
63
|
+
...src_default,
|
|
64
|
+
Display
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
Display,
|
|
68
|
+
manifest as default
|
|
69
|
+
};
|
package/dist/style.css
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tailor-cms/ce-embed-display",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"import": "./dist/index.js",
|
|
8
|
+
"require": "./dist/index.cjs"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"main": "./dist/index.cjs",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"vue": "^3.3.4"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@tailor-cms/eslint-config": "0.0.2",
|
|
20
|
+
"@vitejs/plugin-vue": "^4.2.3",
|
|
21
|
+
"typescript": "^5.1.6",
|
|
22
|
+
"vite": "^4.4.5",
|
|
23
|
+
"vue-tsc": "^1.8.5",
|
|
24
|
+
"@tailor-cms/ce-embed-manifest": "0.0.1"
|
|
25
|
+
},
|
|
26
|
+
"description": "Tailor CMS embed element",
|
|
27
|
+
"author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"dev": "vite build --watch",
|
|
33
|
+
"build": "vue-tsc --noEmit && vite build",
|
|
34
|
+
"lint": "eslint --ext .js,.ts,.vue ./src",
|
|
35
|
+
"lint:fix": "pnpm lint --fix"
|
|
36
|
+
}
|
|
37
|
+
}
|