@tailor-cms/ce-image-display 1.0.4 → 1.1.1-beta.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/dist/components/Display.vue.d.ts +4 -4
- package/dist/index.cjs +76 -82
- package/dist/index.css +1 -3
- package/dist/index.js +72 -83
- package/package.json +16 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Element } from '@tailor-cms/ce-image-manifest';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
|
|
4
|
-
data: ElementData;
|
|
3
|
+
element: Element;
|
|
5
4
|
userState: any;
|
|
6
5
|
};
|
|
7
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
8
|
export default _default;
|
package/dist/index.cjs
CHANGED
|
@@ -1,93 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
require('./index.css');let vue = require("vue");
|
|
6
|
+
//#region ../manifest/dist/index.js
|
|
5
7
|
var type = "IMAGE";
|
|
6
8
|
var name = "Image";
|
|
7
9
|
var initState = () => ({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
url: null,
|
|
11
|
+
alt: "",
|
|
12
|
+
assets: {}
|
|
11
13
|
});
|
|
12
|
-
var version = "1.0";
|
|
13
14
|
var ui = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
// Does element support only full width or can be used within layouts
|
|
17
|
-
// (e.g. 50/50 layout)
|
|
18
|
-
forceFullWidth: false
|
|
15
|
+
icon: "mdi-image",
|
|
16
|
+
forceFullWidth: false
|
|
19
17
|
};
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
var isEmpty = (data) => !data.url;
|
|
19
|
+
var index_default = {
|
|
20
|
+
type,
|
|
21
|
+
version: "1.0",
|
|
22
|
+
name,
|
|
23
|
+
ssr: false,
|
|
24
|
+
initState,
|
|
25
|
+
isEmpty,
|
|
26
|
+
ui
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
vue.createTextVNode("mdi-image-outline")
|
|
69
|
-
])),
|
|
70
|
-
_: 1
|
|
71
|
-
}),
|
|
72
|
-
_cache[1] || (_cache[1] = vue.createTextVNode(" Image placeholder "))
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
}))
|
|
76
|
-
]);
|
|
77
|
-
};
|
|
78
|
-
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/components/Display.vue?vue&type=script&setup=true&lang.ts
|
|
30
|
+
var _hoisted_1 = { class: "tce-image-root" };
|
|
31
|
+
var _hoisted_2 = { class: "d-flex align-center justify-center fill-height" };
|
|
32
|
+
var Display_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
33
|
+
__name: "Display",
|
|
34
|
+
props: {
|
|
35
|
+
element: {},
|
|
36
|
+
userState: {}
|
|
37
|
+
},
|
|
38
|
+
setup(__props) {
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
const _component_VProgressCircular = (0, vue.resolveComponent)("VProgressCircular");
|
|
41
|
+
const _component_VImg = (0, vue.resolveComponent)("VImg");
|
|
42
|
+
const _component_VIcon = (0, vue.resolveComponent)("VIcon");
|
|
43
|
+
const _component_VSheet = (0, vue.resolveComponent)("VSheet");
|
|
44
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1, [__props.element.data.url ? ((0, vue.openBlock)(), (0, vue.createBlock)(_component_VImg, {
|
|
45
|
+
key: 0,
|
|
46
|
+
alt: __props.element.data.alt,
|
|
47
|
+
src: __props.element.data.url,
|
|
48
|
+
class: "mx-auto"
|
|
49
|
+
}, {
|
|
50
|
+
placeholder: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", _hoisted_2, [(0, vue.createVNode)(_component_VProgressCircular, {
|
|
51
|
+
color: "blue-grey-darken-3",
|
|
52
|
+
indeterminate: ""
|
|
53
|
+
})])]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 8, ["alt", "src"])) : ((0, vue.openBlock)(), (0, vue.createBlock)(_component_VSheet, {
|
|
56
|
+
key: 1,
|
|
57
|
+
class: "d-flex justify-center align-center my-2 text-title-large",
|
|
58
|
+
height: "15.5rem"
|
|
59
|
+
}, {
|
|
60
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(_component_VIcon, { class: "mr-2" }, {
|
|
61
|
+
default: (0, vue.withCtx)(() => [..._cache[0] || (_cache[0] = [(0, vue.createTextVNode)("mdi-image-outline", -1)])]),
|
|
62
|
+
_: 1
|
|
63
|
+
}), _cache[1] || (_cache[1] = (0, vue.createTextVNode)(" Image placeholder ", -1))]),
|
|
64
|
+
_: 1
|
|
65
|
+
}))]);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
79
68
|
});
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region \0plugin-vue:export-helper
|
|
71
|
+
var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
72
|
+
const target = sfc.__vccOpts || sfc;
|
|
73
|
+
for (const [key, val] of props) target[key] = val;
|
|
74
|
+
return target;
|
|
86
75
|
};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/Display.vue
|
|
78
|
+
var Display_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Display_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-537894d1"]]);
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/index.ts
|
|
81
|
+
var manifest = {
|
|
82
|
+
...index_default,
|
|
83
|
+
Display: Display_default
|
|
91
84
|
};
|
|
92
|
-
|
|
85
|
+
//#endregion
|
|
86
|
+
exports.Display = Display_default;
|
|
93
87
|
exports.default = manifest;
|
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,93 +1,82 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
1
|
+
import { createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, resolveComponent, withCtx } from "vue";
|
|
2
|
+
import './index.css';//#region ../manifest/dist/index.js
|
|
3
3
|
var type = "IMAGE";
|
|
4
4
|
var name = "Image";
|
|
5
5
|
var initState = () => ({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
url: null,
|
|
7
|
+
alt: "",
|
|
8
|
+
assets: {}
|
|
9
9
|
});
|
|
10
|
-
var version = "1.0";
|
|
11
10
|
var ui = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// Does element support only full width or can be used within layouts
|
|
15
|
-
// (e.g. 50/50 layout)
|
|
16
|
-
forceFullWidth: false
|
|
11
|
+
icon: "mdi-image",
|
|
12
|
+
forceFullWidth: false
|
|
17
13
|
};
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
var isEmpty = (data) => !data.url;
|
|
15
|
+
var index_default = {
|
|
16
|
+
type,
|
|
17
|
+
version: "1.0",
|
|
18
|
+
name,
|
|
19
|
+
ssr: false,
|
|
20
|
+
initState,
|
|
21
|
+
isEmpty,
|
|
22
|
+
ui
|
|
25
23
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
createTextVNode("mdi-image-outline")
|
|
67
|
-
])),
|
|
68
|
-
_: 1
|
|
69
|
-
}),
|
|
70
|
-
_cache[1] || (_cache[1] = createTextVNode(" Image placeholder "))
|
|
71
|
-
]),
|
|
72
|
-
_: 1
|
|
73
|
-
}))
|
|
74
|
-
]);
|
|
75
|
-
};
|
|
76
|
-
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/Display.vue?vue&type=script&setup=true&lang.ts
|
|
26
|
+
var _hoisted_1 = { class: "tce-image-root" };
|
|
27
|
+
var _hoisted_2 = { class: "d-flex align-center justify-center fill-height" };
|
|
28
|
+
var Display_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
29
|
+
__name: "Display",
|
|
30
|
+
props: {
|
|
31
|
+
element: {},
|
|
32
|
+
userState: {}
|
|
33
|
+
},
|
|
34
|
+
setup(__props) {
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
const _component_VProgressCircular = resolveComponent("VProgressCircular");
|
|
37
|
+
const _component_VImg = resolveComponent("VImg");
|
|
38
|
+
const _component_VIcon = resolveComponent("VIcon");
|
|
39
|
+
const _component_VSheet = resolveComponent("VSheet");
|
|
40
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [__props.element.data.url ? (openBlock(), createBlock(_component_VImg, {
|
|
41
|
+
key: 0,
|
|
42
|
+
alt: __props.element.data.alt,
|
|
43
|
+
src: __props.element.data.url,
|
|
44
|
+
class: "mx-auto"
|
|
45
|
+
}, {
|
|
46
|
+
placeholder: withCtx(() => [createElementVNode("div", _hoisted_2, [createVNode(_component_VProgressCircular, {
|
|
47
|
+
color: "blue-grey-darken-3",
|
|
48
|
+
indeterminate: ""
|
|
49
|
+
})])]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 8, ["alt", "src"])) : (openBlock(), createBlock(_component_VSheet, {
|
|
52
|
+
key: 1,
|
|
53
|
+
class: "d-flex justify-center align-center my-2 text-title-large",
|
|
54
|
+
height: "15.5rem"
|
|
55
|
+
}, {
|
|
56
|
+
default: withCtx(() => [createVNode(_component_VIcon, { class: "mr-2" }, {
|
|
57
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createTextVNode("mdi-image-outline", -1)])]),
|
|
58
|
+
_: 1
|
|
59
|
+
}), _cache[1] || (_cache[1] = createTextVNode(" Image placeholder ", -1))]),
|
|
60
|
+
_: 1
|
|
61
|
+
}))]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
77
64
|
});
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region \0plugin-vue:export-helper
|
|
67
|
+
var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
68
|
+
const target = sfc.__vccOpts || sfc;
|
|
69
|
+
for (const [key, val] of props) target[key] = val;
|
|
70
|
+
return target;
|
|
84
71
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/components/Display.vue
|
|
74
|
+
var Display_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Display_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-537894d1"]]);
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/index.ts
|
|
77
|
+
var manifest = {
|
|
78
|
+
...index_default,
|
|
79
|
+
Display: Display_default
|
|
93
80
|
};
|
|
81
|
+
//#endregion
|
|
82
|
+
export { Display_default as Display, manifest as default };
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Tailor CMS image element end-user component",
|
|
4
4
|
"author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"version": "1.0
|
|
6
|
+
"version": "1.1.1-beta.0",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"import": "./dist/index.js",
|
|
@@ -16,23 +16,28 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"vue": "^3.5.
|
|
19
|
+
"vue": "^3.5.29"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@tailor-cms/eslint-config": "0.0.
|
|
23
|
-
"@vitejs/plugin-vue": "^
|
|
24
|
-
"typescript": "^5.
|
|
25
|
-
"vite": "^
|
|
26
|
-
"
|
|
27
|
-
"
|
|
22
|
+
"@tailor-cms/eslint-config": "^2.0.0-beta.0",
|
|
23
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
24
|
+
"typescript": "^5.9.3",
|
|
25
|
+
"vite": "^8.0.0",
|
|
26
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
27
|
+
"vue-tsc": "^3.2.5",
|
|
28
|
+
"vuetify": "^4.0.0",
|
|
29
|
+
"@tailor-cms/ce-image-manifest": "1.1.1-beta.0"
|
|
28
30
|
},
|
|
29
31
|
"publishConfig": {
|
|
30
32
|
"access": "public"
|
|
31
33
|
},
|
|
32
34
|
"scripts": {
|
|
33
35
|
"dev": "vite build --watch",
|
|
34
|
-
"build": "vue-tsc && vite build",
|
|
35
|
-
"lint": "eslint
|
|
36
|
-
"lint:fix": "pnpm lint --fix"
|
|
36
|
+
"build": "pnpm nuke:dist && vue-tsc && vite build",
|
|
37
|
+
"lint": "eslint ./src",
|
|
38
|
+
"lint:fix": "pnpm lint --fix",
|
|
39
|
+
"nuke": "pnpm dlx del-cli dist node_modules",
|
|
40
|
+
"nuke:dist": "pnpm dlx del-cli dist",
|
|
41
|
+
"prepublish": "pnpm build"
|
|
37
42
|
}
|
|
38
43
|
}
|