@vc-shell/framework 1.0.98 → 1.0.100
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/CHANGELOG.md +13 -0
- package/dist/framework.mjs +2 -2
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/package.json +3 -3
- package/ui/components/atoms/vc-image/vc-image.vue +1 -1
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## [1.0.100](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.99...v1.0.100) (2023-09-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## [1.0.99](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.98...v1.0.99) (2023-09-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* encode/decode image url ([d0b32b1](https://github.com/VirtoCommerce/vc-shell/commit/d0b32b1d46a58eb3814ce0086244375df90c5f24))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
## [1.0.98](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.97...v1.0.98) (2023-09-21)
|
|
2
15
|
|
|
3
16
|
|
package/dist/framework.mjs
CHANGED
|
@@ -379,7 +379,7 @@ const bo = Rb, Mb = { class: "tw-mb-[11px] last-of-type:tw-mb-0" }, Nb = {
|
|
|
379
379
|
setup(n, { emit: e }) {
|
|
380
380
|
const t = n, r = we(() => {
|
|
381
381
|
if (t.src)
|
|
382
|
-
return `background: url(${
|
|
382
|
+
return `background: url(${encodeURI(decodeURI(t.src))}) center / ${t.background} no-repeat`;
|
|
383
383
|
});
|
|
384
384
|
function i() {
|
|
385
385
|
t.clickable && e("click");
|
|
@@ -36212,7 +36212,7 @@ const FC = /* @__PURE__ */ ml(PC, [["render", DC]]), dh = FC, BC = { class: "tw-
|
|
|
36212
36212
|
), l = le(), s = async (m) => {
|
|
36213
36213
|
if (await u(m.target), (await p()).valid) {
|
|
36214
36214
|
const _ = m.target.files;
|
|
36215
|
-
_ && _.length && e("upload", _);
|
|
36215
|
+
console.log(_), _ && _.length && e("upload", _);
|
|
36216
36216
|
}
|
|
36217
36217
|
};
|
|
36218
36218
|
function a() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-file-upload.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-file-upload/vc-file-upload.vue.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,KAAK;IACpB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,KAAK;IACpB,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;CAC1C;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"vc-file-upload.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-file-upload/vc-file-upload.vue.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,KAAK;IACpB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WA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@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.100",
|
|
4
4
|
"main": "./dist/framework.mjs",
|
|
5
5
|
"module": "./dist/framework.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"whatwg-fetch": "^3.6.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
59
|
-
"@vc-shell/config-generator": "^1.0.
|
|
58
|
+
"@vc-shell/api-client-generator": "^1.0.100",
|
|
59
|
+
"@vc-shell/config-generator": "^1.0.100",
|
|
60
60
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
61
61
|
"sass": "^1.62.1",
|
|
62
62
|
"typescript": "~5.0.4",
|
|
@@ -57,7 +57,7 @@ const emit = defineEmits<Emits>();
|
|
|
57
57
|
|
|
58
58
|
const imageHandler = computed(() => {
|
|
59
59
|
if (props.src) {
|
|
60
|
-
return `background: url(${
|
|
60
|
+
return `background: url(${encodeURI(decodeURI(props.src))}) center / ${props.background} no-repeat`;
|
|
61
61
|
}
|
|
62
62
|
return undefined;
|
|
63
63
|
});
|