@tailor-cms/ce-image-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 +67 -0
- package/dist/index.js +67 -0
- package/dist/style.css +9 -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,67 @@
|
|
|
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_IMAGE";
|
|
6
|
+
var name = "Image";
|
|
7
|
+
var initState = () => ({
|
|
8
|
+
url: ""
|
|
9
|
+
});
|
|
10
|
+
var ui = {
|
|
11
|
+
// Display icon, https://pictogrammers.com/library/mdi/
|
|
12
|
+
icon: "mdi-image",
|
|
13
|
+
// Does element support only full width or can be used within layouts
|
|
14
|
+
// (e.g. 50/50 layout)
|
|
15
|
+
forceFullWidth: true
|
|
16
|
+
};
|
|
17
|
+
var mocks = {
|
|
18
|
+
displayContexts: [
|
|
19
|
+
{ name: "Test preset 1", data: { state: "I have a value" } },
|
|
20
|
+
{ name: "Test preset 2", data: { state: "I have a different value" } }
|
|
21
|
+
]
|
|
22
|
+
};
|
|
23
|
+
var manifest$1 = {
|
|
24
|
+
type,
|
|
25
|
+
version: "1.0",
|
|
26
|
+
name,
|
|
27
|
+
ssr: false,
|
|
28
|
+
initState,
|
|
29
|
+
ui,
|
|
30
|
+
mocks
|
|
31
|
+
};
|
|
32
|
+
var src_default = manifest$1;
|
|
33
|
+
const _hoisted_1 = { class: "d-flex align-center justify-center fill-height" };
|
|
34
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
35
|
+
__name: "Display",
|
|
36
|
+
props: {
|
|
37
|
+
id: {},
|
|
38
|
+
data: {},
|
|
39
|
+
userState: {}
|
|
40
|
+
},
|
|
41
|
+
setup(__props) {
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
const _component_VProgressCircular = vue.resolveComponent("VProgressCircular");
|
|
44
|
+
const _component_VImg = vue.resolveComponent("VImg");
|
|
45
|
+
return vue.openBlock(), vue.createBlock(_component_VImg, {
|
|
46
|
+
src: _ctx.data.url,
|
|
47
|
+
class: "mx-auto"
|
|
48
|
+
}, {
|
|
49
|
+
placeholder: vue.withCtx(() => [
|
|
50
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
51
|
+
vue.createVNode(_component_VProgressCircular, {
|
|
52
|
+
color: "blue-grey-darken-3",
|
|
53
|
+
indeterminate: ""
|
|
54
|
+
})
|
|
55
|
+
])
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["src"]);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
const manifest = {
|
|
63
|
+
...src_default,
|
|
64
|
+
Display: _sfc_main
|
|
65
|
+
};
|
|
66
|
+
exports.Display = _sfc_main;
|
|
67
|
+
exports.default = manifest;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import "./style.css";
|
|
2
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode } from "vue";
|
|
3
|
+
var type = "CE_IMAGE";
|
|
4
|
+
var name = "Image";
|
|
5
|
+
var initState = () => ({
|
|
6
|
+
url: ""
|
|
7
|
+
});
|
|
8
|
+
var ui = {
|
|
9
|
+
// Display icon, https://pictogrammers.com/library/mdi/
|
|
10
|
+
icon: "mdi-image",
|
|
11
|
+
// Does element support only full width or can be used within layouts
|
|
12
|
+
// (e.g. 50/50 layout)
|
|
13
|
+
forceFullWidth: true
|
|
14
|
+
};
|
|
15
|
+
var mocks = {
|
|
16
|
+
displayContexts: [
|
|
17
|
+
{ name: "Test preset 1", data: { state: "I have a value" } },
|
|
18
|
+
{ name: "Test preset 2", data: { state: "I have a different value" } }
|
|
19
|
+
]
|
|
20
|
+
};
|
|
21
|
+
var manifest$1 = {
|
|
22
|
+
type,
|
|
23
|
+
version: "1.0",
|
|
24
|
+
name,
|
|
25
|
+
ssr: false,
|
|
26
|
+
initState,
|
|
27
|
+
ui,
|
|
28
|
+
mocks
|
|
29
|
+
};
|
|
30
|
+
var src_default = manifest$1;
|
|
31
|
+
const _hoisted_1 = { class: "d-flex align-center justify-center fill-height" };
|
|
32
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
33
|
+
__name: "Display",
|
|
34
|
+
props: {
|
|
35
|
+
id: {},
|
|
36
|
+
data: {},
|
|
37
|
+
userState: {}
|
|
38
|
+
},
|
|
39
|
+
setup(__props) {
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
const _component_VProgressCircular = resolveComponent("VProgressCircular");
|
|
42
|
+
const _component_VImg = resolveComponent("VImg");
|
|
43
|
+
return openBlock(), createBlock(_component_VImg, {
|
|
44
|
+
src: _ctx.data.url,
|
|
45
|
+
class: "mx-auto"
|
|
46
|
+
}, {
|
|
47
|
+
placeholder: withCtx(() => [
|
|
48
|
+
createElementVNode("div", _hoisted_1, [
|
|
49
|
+
createVNode(_component_VProgressCircular, {
|
|
50
|
+
color: "blue-grey-darken-3",
|
|
51
|
+
indeterminate: ""
|
|
52
|
+
})
|
|
53
|
+
])
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 8, ["src"]);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
const manifest = {
|
|
61
|
+
...src_default,
|
|
62
|
+
Display: _sfc_main
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
_sfc_main as Display,
|
|
66
|
+
manifest as default
|
|
67
|
+
};
|
package/dist/style.css
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tailor-cms/ce-image-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
|
+
"tce-manifest": "npm:@tailor-cms/ce-image-manifest@0.0.1"
|
|
25
|
+
},
|
|
26
|
+
"description": "Tailor image 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
|
+
}
|