@ozdao/martyrs 0.2.516 → 0.2.518
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/_virtual/index.cjs +4 -4
- package/dist/_virtual/index.js +4 -4
- package/dist/_virtual/index2.cjs +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs +93 -0
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js +94 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs +0 -93
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js +1 -94
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +8 -8
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js +8 -8
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/package.json +1 -1
- package/src/modules/globals/views/components/partials/NavigationBar.vue +8 -8
package/dist/_virtual/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const _commonjsHelpers = require("./_commonjsHelpers.cjs");
|
|
4
|
-
const index = require("../node_modules/
|
|
5
|
-
var
|
|
6
|
-
const
|
|
7
|
-
exports.default =
|
|
4
|
+
const index = require("../node_modules/fast-deep-equal/index.cjs");
|
|
5
|
+
var fastDeepEqualExports = index.__require();
|
|
6
|
+
const equal = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(fastDeepEqualExports);
|
|
7
|
+
exports.default = equal;
|
|
8
8
|
//# sourceMappingURL=index.cjs.map
|
package/dist/_virtual/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as requireFastDeepEqual } from "../node_modules/fast-deep-equal/index.js";
|
|
3
|
+
var fastDeepEqualExports = requireFastDeepEqual();
|
|
4
|
+
const equal = /* @__PURE__ */ getDefaultExportFromCjs(fastDeepEqualExports);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
equal as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/_virtual/index2.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const _commonjsHelpers = require("./_commonjsHelpers.cjs");
|
|
4
|
-
const index = require("../node_modules/
|
|
5
|
-
var
|
|
6
|
-
const
|
|
7
|
-
exports.default =
|
|
4
|
+
const index = require("../node_modules/lodash.merge/index.cjs");
|
|
5
|
+
var lodash_mergeExports = index.__require();
|
|
6
|
+
const merge = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(lodash_mergeExports);
|
|
7
|
+
exports.default = merge;
|
|
8
8
|
//# sourceMappingURL=index2.cjs.map
|
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as requireLodash_merge } from "../node_modules/lodash.merge/index.js";
|
|
3
|
+
var lodash_mergeExports = requireLodash_merge();
|
|
4
|
+
const merge = /* @__PURE__ */ getDefaultExportFromCjs(lodash_mergeExports);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
merge as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index2.js.map
|
|
@@ -1,2 +1,95 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const vueDraggableNext_esmBundler = require("../../../../node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs");
|
|
5
|
+
const UploadImageMultiple = require("../UploadImageMultiple/UploadImageMultiple.vue.cjs");
|
|
6
|
+
const IconCross = require("../../modules/icons/navigation/IconCross.vue.cjs");
|
|
7
|
+
require("./EditImages.vue2.cjs");
|
|
8
|
+
const _hoisted_1 = { class: "flex-nowrap flex gap-small" };
|
|
9
|
+
const _hoisted_2 = { class: "pos-relative" };
|
|
10
|
+
const _hoisted_3 = ["src"];
|
|
11
|
+
const _hoisted_4 = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small"
|
|
14
|
+
};
|
|
15
|
+
const _sfc_main = {
|
|
16
|
+
__name: "EditImages",
|
|
17
|
+
props: {
|
|
18
|
+
images: Array,
|
|
19
|
+
text: Object,
|
|
20
|
+
options: Object,
|
|
21
|
+
uploadPath: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: "unsorted"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:images"],
|
|
27
|
+
setup(__props, { emit: __emit }) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const emit = __emit;
|
|
30
|
+
const localImages = vue.ref([...props.images]);
|
|
31
|
+
vue.watchEffect(() => {
|
|
32
|
+
localImages.value = [...props.images];
|
|
33
|
+
});
|
|
34
|
+
const emitChanges = () => {
|
|
35
|
+
emit("update:images", localImages.value);
|
|
36
|
+
};
|
|
37
|
+
const onImagesUpdate = (newImages) => {
|
|
38
|
+
localImages.value = [...localImages.value, ...newImages];
|
|
39
|
+
emitChanges();
|
|
40
|
+
};
|
|
41
|
+
const deleteImage = (index) => {
|
|
42
|
+
localImages.value.splice(index, 1);
|
|
43
|
+
emitChanges();
|
|
44
|
+
};
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
47
|
+
localImages.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(vueDraggableNext_esmBundler.VueDraggableNext), {
|
|
48
|
+
key: 0,
|
|
49
|
+
class: "gap-small flex dragArea list-group w-full",
|
|
50
|
+
modelValue: localImages.value,
|
|
51
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localImages.value = $event),
|
|
52
|
+
onChange: emitChanges
|
|
53
|
+
}, {
|
|
54
|
+
default: vue.withCtx(() => [
|
|
55
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(localImages.value, (image, index) => {
|
|
56
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
57
|
+
vue.createElementVNode("img", {
|
|
58
|
+
loading: "lazy",
|
|
59
|
+
class: "i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden",
|
|
60
|
+
src: (_ctx.FILE_SERVER_URL || "") + image
|
|
61
|
+
}, null, 8, _hoisted_3),
|
|
62
|
+
vue.createVNode(IconCross.default, {
|
|
63
|
+
onClick: ($event) => deleteImage(index),
|
|
64
|
+
class: "cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro"
|
|
65
|
+
}, null, 8, ["onClick"])
|
|
66
|
+
]);
|
|
67
|
+
}), 256))
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
}, 8, ["modelValue"])) : vue.createCommentVNode("", true),
|
|
71
|
+
localImages.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
72
|
+
vue.createVNode(UploadImageMultiple.default, {
|
|
73
|
+
"onUpdate:images": onImagesUpdate,
|
|
74
|
+
text: "Add",
|
|
75
|
+
options: {
|
|
76
|
+
showText: false
|
|
77
|
+
},
|
|
78
|
+
uploadPath: "photos",
|
|
79
|
+
class: "radius-big"
|
|
80
|
+
})
|
|
81
|
+
])) : vue.createCommentVNode("", true),
|
|
82
|
+
localImages.value.length < 1 ? (vue.openBlock(), vue.createBlock(UploadImageMultiple.default, {
|
|
83
|
+
key: 2,
|
|
84
|
+
"onUpdate:images": onImagesUpdate,
|
|
85
|
+
uploadPath: props.uploadPath,
|
|
86
|
+
text: props.text,
|
|
87
|
+
options: props.options,
|
|
88
|
+
class: "w-100 pd-medium"
|
|
89
|
+
}, null, 8, ["uploadPath", "text", "options"])) : vue.createCommentVNode("", true)
|
|
90
|
+
]);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
exports.default = _sfc_main;
|
|
2
95
|
//# sourceMappingURL=EditImages.vue.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditImages.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"EditImages.vue.cjs","sources":["../../../../../src/components/EditImages/EditImages.vue"],"sourcesContent":["<template>\n\t<div class=\"flex-nowrap flex gap-small\">\n <VueDraggableNext v-if=\"localImages.length > 0\" class=\"gap-small flex dragArea list-group w-full\" v-model=\"localImages\" @change=\"emitChanges\">\n\t\t\t<div v-for=\"(image, index) in localImages\" class=\"pos-relative\">\n\t\t\t\t<img loading=\"lazy\" class=\"i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden\" :src=\"(FILE_SERVER_URL || '') + image\" />\n\t\t\t\t\n <IconCross \n @click=\"deleteImage(index)\" \n class=\"cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro\"\n />\n\t\t\t</div>\n\t\t</VueDraggableNext>\n <div\n v-if=\"localImages.length > 0\" \n class=\"i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small\"\n >\n <UploadImageMultiple \n @update:images=\"onImagesUpdate\"\n text=\"Add\"\n :options=\"{\n showText: false\n }\"\n :uploadPath=\"'photos'\"\n class=\"radius-big\"\n />\n </div>\n\n\n\t\t<UploadImageMultiple \t\n v-if=\"localImages.length < 1\" \n @update:images=\"onImagesUpdate\"\n :uploadPath=\"props.uploadPath\"\n :text=\"props.text\"\n :options=\"props.options\"\n class=\"w-100 pd-medium\"\n />\n\t</div>\t\n</template>\n\n<script setup>\nimport { ref, defineProps, watchEffect } from 'vue';\nimport { VueDraggableNext } from 'vue-draggable-next'\nimport UploadImageMultiple from \"@martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue\";\nimport IconCross from '@martyrs/src/modules/icons/navigation/IconCross.vue';\n\nconst props = defineProps({\n images: Array,\n text: Object,\n options: Object,\n uploadPath: {\n type: Object,\n default: 'unsorted'\n }\n});\n\nconst emit = defineEmits(['update:images'])\n\nconst localImages = ref([...props.images])\n\nwatchEffect(() => {\n localImages.value = [...props.images]; // Обновление localImages при изменении props.images\n});\n\nconst emitChanges = () => {\n emit('update:images', localImages.value)\n}\n\nconst onImagesUpdate = (newImages) => {\n localImages.value = [...localImages.value, ...newImages]\n emitChanges()\n}\n\nconst deleteImage = (index) => {\n localImages.value.splice(index, 1)\n emitChanges()\n}\n</script>\n\n<style lang=\"scss\">\n// Your styles here\n</style>\n"],"names":["ref","watchEffect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,UAAM,QAAQ;AAUd,UAAM,OAAO;AAEb,UAAM,cAAcA,IAAAA,IAAI,CAAC,GAAG,MAAM,MAAM,CAAC;AAEzCC,QAAAA,YAAY,MAAM;AAChB,kBAAY,QAAQ,CAAC,GAAG,MAAM,MAAM;AAAA,IACtC,CAAC;AAED,UAAM,cAAc,MAAM;AACxB,WAAK,iBAAiB,YAAY,KAAK;AAAA,IACzC;AAEA,UAAM,iBAAiB,CAAC,cAAc;AACpC,kBAAY,QAAQ,CAAC,GAAG,YAAY,OAAO,GAAG,SAAS;AACvD,kBAAW;AAAA,IACb;AAEA,UAAM,cAAc,CAAC,UAAU;AAC7B,kBAAY,MAAM,OAAO,OAAO,CAAC;AACjC,kBAAW;AAAA,IACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,95 @@
|
|
|
1
|
-
|
|
1
|
+
import { ref, watchEffect, createElementBlock, openBlock, createBlock, createCommentVNode, unref, withCtx, Fragment, renderList, createElementVNode, createVNode } from "vue";
|
|
2
|
+
import { VueDraggableNext } from "../../../../node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js";
|
|
3
|
+
import _sfc_main$2 from "../UploadImageMultiple/UploadImageMultiple.vue.js";
|
|
4
|
+
import _sfc_main$1 from "../../modules/icons/navigation/IconCross.vue.js";
|
|
5
|
+
import "./EditImages.vue2.js";
|
|
6
|
+
const _hoisted_1 = { class: "flex-nowrap flex gap-small" };
|
|
7
|
+
const _hoisted_2 = { class: "pos-relative" };
|
|
8
|
+
const _hoisted_3 = ["src"];
|
|
9
|
+
const _hoisted_4 = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small"
|
|
12
|
+
};
|
|
13
|
+
const _sfc_main = {
|
|
14
|
+
__name: "EditImages",
|
|
15
|
+
props: {
|
|
16
|
+
images: Array,
|
|
17
|
+
text: Object,
|
|
18
|
+
options: Object,
|
|
19
|
+
uploadPath: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: "unsorted"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
emits: ["update:images"],
|
|
25
|
+
setup(__props, { emit: __emit }) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const emit = __emit;
|
|
28
|
+
const localImages = ref([...props.images]);
|
|
29
|
+
watchEffect(() => {
|
|
30
|
+
localImages.value = [...props.images];
|
|
31
|
+
});
|
|
32
|
+
const emitChanges = () => {
|
|
33
|
+
emit("update:images", localImages.value);
|
|
34
|
+
};
|
|
35
|
+
const onImagesUpdate = (newImages) => {
|
|
36
|
+
localImages.value = [...localImages.value, ...newImages];
|
|
37
|
+
emitChanges();
|
|
38
|
+
};
|
|
39
|
+
const deleteImage = (index) => {
|
|
40
|
+
localImages.value.splice(index, 1);
|
|
41
|
+
emitChanges();
|
|
42
|
+
};
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
45
|
+
localImages.value.length > 0 ? (openBlock(), createBlock(unref(VueDraggableNext), {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "gap-small flex dragArea list-group w-full",
|
|
48
|
+
modelValue: localImages.value,
|
|
49
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localImages.value = $event),
|
|
50
|
+
onChange: emitChanges
|
|
51
|
+
}, {
|
|
52
|
+
default: withCtx(() => [
|
|
53
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(localImages.value, (image, index) => {
|
|
54
|
+
return openBlock(), createElementBlock("div", _hoisted_2, [
|
|
55
|
+
createElementVNode("img", {
|
|
56
|
+
loading: "lazy",
|
|
57
|
+
class: "i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden",
|
|
58
|
+
src: (_ctx.FILE_SERVER_URL || "") + image
|
|
59
|
+
}, null, 8, _hoisted_3),
|
|
60
|
+
createVNode(_sfc_main$1, {
|
|
61
|
+
onClick: ($event) => deleteImage(index),
|
|
62
|
+
class: "cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro"
|
|
63
|
+
}, null, 8, ["onClick"])
|
|
64
|
+
]);
|
|
65
|
+
}), 256))
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
69
|
+
localImages.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
70
|
+
createVNode(_sfc_main$2, {
|
|
71
|
+
"onUpdate:images": onImagesUpdate,
|
|
72
|
+
text: "Add",
|
|
73
|
+
options: {
|
|
74
|
+
showText: false
|
|
75
|
+
},
|
|
76
|
+
uploadPath: "photos",
|
|
77
|
+
class: "radius-big"
|
|
78
|
+
})
|
|
79
|
+
])) : createCommentVNode("", true),
|
|
80
|
+
localImages.value.length < 1 ? (openBlock(), createBlock(_sfc_main$2, {
|
|
81
|
+
key: 2,
|
|
82
|
+
"onUpdate:images": onImagesUpdate,
|
|
83
|
+
uploadPath: props.uploadPath,
|
|
84
|
+
text: props.text,
|
|
85
|
+
options: props.options,
|
|
86
|
+
class: "w-100 pd-medium"
|
|
87
|
+
}, null, 8, ["uploadPath", "text", "options"])) : createCommentVNode("", true)
|
|
88
|
+
]);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
_sfc_main as default
|
|
94
|
+
};
|
|
2
95
|
//# sourceMappingURL=EditImages.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditImages.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"EditImages.vue.js","sources":["../../../../../src/components/EditImages/EditImages.vue"],"sourcesContent":["<template>\n\t<div class=\"flex-nowrap flex gap-small\">\n <VueDraggableNext v-if=\"localImages.length > 0\" class=\"gap-small flex dragArea list-group w-full\" v-model=\"localImages\" @change=\"emitChanges\">\n\t\t\t<div v-for=\"(image, index) in localImages\" class=\"pos-relative\">\n\t\t\t\t<img loading=\"lazy\" class=\"i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden\" :src=\"(FILE_SERVER_URL || '') + image\" />\n\t\t\t\t\n <IconCross \n @click=\"deleteImage(index)\" \n class=\"cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro\"\n />\n\t\t\t</div>\n\t\t</VueDraggableNext>\n <div\n v-if=\"localImages.length > 0\" \n class=\"i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small\"\n >\n <UploadImageMultiple \n @update:images=\"onImagesUpdate\"\n text=\"Add\"\n :options=\"{\n showText: false\n }\"\n :uploadPath=\"'photos'\"\n class=\"radius-big\"\n />\n </div>\n\n\n\t\t<UploadImageMultiple \t\n v-if=\"localImages.length < 1\" \n @update:images=\"onImagesUpdate\"\n :uploadPath=\"props.uploadPath\"\n :text=\"props.text\"\n :options=\"props.options\"\n class=\"w-100 pd-medium\"\n />\n\t</div>\t\n</template>\n\n<script setup>\nimport { ref, defineProps, watchEffect } from 'vue';\nimport { VueDraggableNext } from 'vue-draggable-next'\nimport UploadImageMultiple from \"@martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue\";\nimport IconCross from '@martyrs/src/modules/icons/navigation/IconCross.vue';\n\nconst props = defineProps({\n images: Array,\n text: Object,\n options: Object,\n uploadPath: {\n type: Object,\n default: 'unsorted'\n }\n});\n\nconst emit = defineEmits(['update:images'])\n\nconst localImages = ref([...props.images])\n\nwatchEffect(() => {\n localImages.value = [...props.images]; // Обновление localImages при изменении props.images\n});\n\nconst emitChanges = () => {\n emit('update:images', localImages.value)\n}\n\nconst onImagesUpdate = (newImages) => {\n localImages.value = [...localImages.value, ...newImages]\n emitChanges()\n}\n\nconst deleteImage = (index) => {\n localImages.value.splice(index, 1)\n emitChanges()\n}\n</script>\n\n<style lang=\"scss\">\n// Your styles here\n</style>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,UAAM,QAAQ;AAUd,UAAM,OAAO;AAEb,UAAM,cAAc,IAAI,CAAC,GAAG,MAAM,MAAM,CAAC;AAEzC,gBAAY,MAAM;AAChB,kBAAY,QAAQ,CAAC,GAAG,MAAM,MAAM;AAAA,IACtC,CAAC;AAED,UAAM,cAAc,MAAM;AACxB,WAAK,iBAAiB,YAAY,KAAK;AAAA,IACzC;AAEA,UAAM,iBAAiB,CAAC,cAAc;AACpC,kBAAY,QAAQ,CAAC,GAAG,YAAY,OAAO,GAAG,SAAS;AACvD,kBAAW;AAAA,IACb;AAEA,UAAM,cAAc,CAAC,UAAU;AAC7B,kBAAY,MAAM,OAAO,OAAO,CAAC;AACjC,kBAAW;AAAA,IACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,95 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const vueDraggableNext_esmBundler = require("../../../../node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs");
|
|
5
|
-
const UploadImageMultiple = require("../UploadImageMultiple/UploadImageMultiple.vue.cjs");
|
|
6
|
-
const IconCross = require("../../modules/icons/navigation/IconCross.vue.cjs");
|
|
7
|
-
require("./EditImages.vue.cjs");
|
|
8
|
-
const _hoisted_1 = { class: "flex-nowrap flex gap-small" };
|
|
9
|
-
const _hoisted_2 = { class: "pos-relative" };
|
|
10
|
-
const _hoisted_3 = ["src"];
|
|
11
|
-
const _hoisted_4 = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small"
|
|
14
|
-
};
|
|
15
|
-
const _sfc_main = {
|
|
16
|
-
__name: "EditImages",
|
|
17
|
-
props: {
|
|
18
|
-
images: Array,
|
|
19
|
-
text: Object,
|
|
20
|
-
options: Object,
|
|
21
|
-
uploadPath: {
|
|
22
|
-
type: Object,
|
|
23
|
-
default: "unsorted"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
emits: ["update:images"],
|
|
27
|
-
setup(__props, { emit: __emit }) {
|
|
28
|
-
const props = __props;
|
|
29
|
-
const emit = __emit;
|
|
30
|
-
const localImages = vue.ref([...props.images]);
|
|
31
|
-
vue.watchEffect(() => {
|
|
32
|
-
localImages.value = [...props.images];
|
|
33
|
-
});
|
|
34
|
-
const emitChanges = () => {
|
|
35
|
-
emit("update:images", localImages.value);
|
|
36
|
-
};
|
|
37
|
-
const onImagesUpdate = (newImages) => {
|
|
38
|
-
localImages.value = [...localImages.value, ...newImages];
|
|
39
|
-
emitChanges();
|
|
40
|
-
};
|
|
41
|
-
const deleteImage = (index) => {
|
|
42
|
-
localImages.value.splice(index, 1);
|
|
43
|
-
emitChanges();
|
|
44
|
-
};
|
|
45
|
-
return (_ctx, _cache) => {
|
|
46
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
47
|
-
localImages.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(vueDraggableNext_esmBundler.VueDraggableNext), {
|
|
48
|
-
key: 0,
|
|
49
|
-
class: "gap-small flex dragArea list-group w-full",
|
|
50
|
-
modelValue: localImages.value,
|
|
51
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localImages.value = $event),
|
|
52
|
-
onChange: emitChanges
|
|
53
|
-
}, {
|
|
54
|
-
default: vue.withCtx(() => [
|
|
55
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(localImages.value, (image, index) => {
|
|
56
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
57
|
-
vue.createElementVNode("img", {
|
|
58
|
-
loading: "lazy",
|
|
59
|
-
class: "i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden",
|
|
60
|
-
src: (_ctx.FILE_SERVER_URL || "") + image
|
|
61
|
-
}, null, 8, _hoisted_3),
|
|
62
|
-
vue.createVNode(IconCross.default, {
|
|
63
|
-
onClick: ($event) => deleteImage(index),
|
|
64
|
-
class: "cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro"
|
|
65
|
-
}, null, 8, ["onClick"])
|
|
66
|
-
]);
|
|
67
|
-
}), 256))
|
|
68
|
-
]),
|
|
69
|
-
_: 1
|
|
70
|
-
}, 8, ["modelValue"])) : vue.createCommentVNode("", true),
|
|
71
|
-
localImages.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
72
|
-
vue.createVNode(UploadImageMultiple.default, {
|
|
73
|
-
"onUpdate:images": onImagesUpdate,
|
|
74
|
-
text: "Add",
|
|
75
|
-
options: {
|
|
76
|
-
showText: false
|
|
77
|
-
},
|
|
78
|
-
uploadPath: "photos",
|
|
79
|
-
class: "radius-big"
|
|
80
|
-
})
|
|
81
|
-
])) : vue.createCommentVNode("", true),
|
|
82
|
-
localImages.value.length < 1 ? (vue.openBlock(), vue.createBlock(UploadImageMultiple.default, {
|
|
83
|
-
key: 2,
|
|
84
|
-
"onUpdate:images": onImagesUpdate,
|
|
85
|
-
uploadPath: props.uploadPath,
|
|
86
|
-
text: props.text,
|
|
87
|
-
options: props.options,
|
|
88
|
-
class: "w-100 pd-medium"
|
|
89
|
-
}, null, 8, ["uploadPath", "text", "options"])) : vue.createCommentVNode("", true)
|
|
90
|
-
]);
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
exports.default = _sfc_main;
|
|
95
2
|
//# sourceMappingURL=EditImages.vue2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditImages.vue2.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"EditImages.vue2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,95 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { VueDraggableNext } from "../../../../node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js";
|
|
3
|
-
import _sfc_main$2 from "../UploadImageMultiple/UploadImageMultiple.vue.js";
|
|
4
|
-
import _sfc_main$1 from "../../modules/icons/navigation/IconCross.vue.js";
|
|
5
|
-
import "./EditImages.vue.js";
|
|
6
|
-
const _hoisted_1 = { class: "flex-nowrap flex gap-small" };
|
|
7
|
-
const _hoisted_2 = { class: "pos-relative" };
|
|
8
|
-
const _hoisted_3 = ["src"];
|
|
9
|
-
const _hoisted_4 = {
|
|
10
|
-
key: 1,
|
|
11
|
-
class: "i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small"
|
|
12
|
-
};
|
|
13
|
-
const _sfc_main = {
|
|
14
|
-
__name: "EditImages",
|
|
15
|
-
props: {
|
|
16
|
-
images: Array,
|
|
17
|
-
text: Object,
|
|
18
|
-
options: Object,
|
|
19
|
-
uploadPath: {
|
|
20
|
-
type: Object,
|
|
21
|
-
default: "unsorted"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
emits: ["update:images"],
|
|
25
|
-
setup(__props, { emit: __emit }) {
|
|
26
|
-
const props = __props;
|
|
27
|
-
const emit = __emit;
|
|
28
|
-
const localImages = ref([...props.images]);
|
|
29
|
-
watchEffect(() => {
|
|
30
|
-
localImages.value = [...props.images];
|
|
31
|
-
});
|
|
32
|
-
const emitChanges = () => {
|
|
33
|
-
emit("update:images", localImages.value);
|
|
34
|
-
};
|
|
35
|
-
const onImagesUpdate = (newImages) => {
|
|
36
|
-
localImages.value = [...localImages.value, ...newImages];
|
|
37
|
-
emitChanges();
|
|
38
|
-
};
|
|
39
|
-
const deleteImage = (index) => {
|
|
40
|
-
localImages.value.splice(index, 1);
|
|
41
|
-
emitChanges();
|
|
42
|
-
};
|
|
43
|
-
return (_ctx, _cache) => {
|
|
44
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
45
|
-
localImages.value.length > 0 ? (openBlock(), createBlock(unref(VueDraggableNext), {
|
|
46
|
-
key: 0,
|
|
47
|
-
class: "gap-small flex dragArea list-group w-full",
|
|
48
|
-
modelValue: localImages.value,
|
|
49
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localImages.value = $event),
|
|
50
|
-
onChange: emitChanges
|
|
51
|
-
}, {
|
|
52
|
-
default: withCtx(() => [
|
|
53
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(localImages.value, (image, index) => {
|
|
54
|
-
return openBlock(), createElementBlock("div", _hoisted_2, [
|
|
55
|
-
createElementVNode("img", {
|
|
56
|
-
loading: "lazy",
|
|
57
|
-
class: "i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden",
|
|
58
|
-
src: (_ctx.FILE_SERVER_URL || "") + image
|
|
59
|
-
}, null, 8, _hoisted_3),
|
|
60
|
-
createVNode(_sfc_main$1, {
|
|
61
|
-
onClick: ($event) => deleteImage(index),
|
|
62
|
-
class: "cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro"
|
|
63
|
-
}, null, 8, ["onClick"])
|
|
64
|
-
]);
|
|
65
|
-
}), 256))
|
|
66
|
-
]),
|
|
67
|
-
_: 1
|
|
68
|
-
}, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
69
|
-
localImages.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
70
|
-
createVNode(_sfc_main$2, {
|
|
71
|
-
"onUpdate:images": onImagesUpdate,
|
|
72
|
-
text: "Add",
|
|
73
|
-
options: {
|
|
74
|
-
showText: false
|
|
75
|
-
},
|
|
76
|
-
uploadPath: "photos",
|
|
77
|
-
class: "radius-big"
|
|
78
|
-
})
|
|
79
|
-
])) : createCommentVNode("", true),
|
|
80
|
-
localImages.value.length < 1 ? (openBlock(), createBlock(_sfc_main$2, {
|
|
81
|
-
key: 2,
|
|
82
|
-
"onUpdate:images": onImagesUpdate,
|
|
83
|
-
uploadPath: props.uploadPath,
|
|
84
|
-
text: props.text,
|
|
85
|
-
options: props.options,
|
|
86
|
-
class: "w-100 pd-medium"
|
|
87
|
-
}, null, 8, ["uploadPath", "text", "options"])) : createCommentVNode("", true)
|
|
88
|
-
]);
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
export {
|
|
93
|
-
_sfc_main as default
|
|
94
|
-
};
|
|
1
|
+
|
|
95
2
|
//# sourceMappingURL=EditImages.vue2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditImages.vue2.js","sources":[
|
|
1
|
+
{"version":3,"file":"EditImages.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const index = require("../../../../_virtual/
|
|
4
|
+
const index = require("../../../../_virtual/index.cjs");
|
|
5
5
|
const createTags = require("./create-tags.cjs");
|
|
6
6
|
const tagInput = require("./tag-input.vue2.cjs");
|
|
7
7
|
const vueTagsInput_props = require("./vue-tags-input.props.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, shallowRef, computed, watch, onMounted, onBeforeUnmount, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, renderSlot, createCommentVNode, Fragment, renderList, createBlock, toDisplayString, withDirectives, withModifiers, vShow, withKeys, unref, nextTick } from "vue";
|
|
2
|
-
import equal from "../../../../_virtual/
|
|
2
|
+
import equal from "../../../../_virtual/index.js";
|
|
3
3
|
import { createTag, createClasses, createTags, clone } from "./create-tags.js";
|
|
4
4
|
import TagInput from "./tag-input.vue2.js";
|
|
5
5
|
import props from "./vue-tags-input.props.js";
|
|
@@ -5,7 +5,7 @@ require("isomorphic-dompurify");
|
|
|
5
5
|
;/* empty css */
|
|
6
6
|
const Constructor = require("../../../constructor/components/sections/Constructor.vue.cjs");
|
|
7
7
|
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
|
8
|
-
require("../../../../../../_virtual/
|
|
8
|
+
require("../../../../../../_virtual/index.cjs");
|
|
9
9
|
;/* empty css */
|
|
10
10
|
;/* empty css */
|
|
11
11
|
const BlockTags = require("../../../../components/FieldTags/BlockTags.vue.cjs");
|
|
@@ -3,7 +3,7 @@ import "isomorphic-dompurify";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _sfc_main$1 from "../../../constructor/components/sections/Constructor.vue.js";
|
|
5
5
|
import _sfc_main$2 from "../../../../components/Popup/Popup.vue.js";
|
|
6
|
-
import "../../../../../../_virtual/
|
|
6
|
+
import "../../../../../../_virtual/index.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
import _sfc_main$3 from "../../../../components/FieldTags/BlockTags.vue.js";
|
|
@@ -18,7 +18,7 @@ require("axios");
|
|
|
18
18
|
const UploadImage = require("../../../../components/UploadImage/UploadImage.vue.cjs");
|
|
19
19
|
;/* empty css */
|
|
20
20
|
require("../../../globals/views/store/globals.cjs");
|
|
21
|
-
require("../../../../components/EditImages/EditImages.
|
|
21
|
+
require("../../../../components/EditImages/EditImages.vue2.cjs");
|
|
22
22
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
|
23
23
|
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
24
24
|
const Card = require("../../../globals/views/components/blocks/Card.vue.cjs");
|
|
@@ -16,7 +16,7 @@ import "axios";
|
|
|
16
16
|
import _sfc_main$1 from "../../../../components/UploadImage/UploadImage.vue.js";
|
|
17
17
|
/* empty css */
|
|
18
18
|
import "../../../globals/views/store/globals.js";
|
|
19
|
-
import "../../../../components/EditImages/EditImages.
|
|
19
|
+
import "../../../../components/EditImages/EditImages.vue2.js";
|
|
20
20
|
import _sfc_main$8 from "../../../../components/Feed/Feed.vue.js";
|
|
21
21
|
import _sfc_main$a from "../../../../components/Button/Button.vue.js";
|
|
22
22
|
import _sfc_main$7 from "../../../globals/views/components/blocks/Card.vue.js";
|
|
@@ -15,7 +15,7 @@ require("../../../organizations/store/organizations.cjs");
|
|
|
15
15
|
const gallery = require("../../store/gallery.cjs");
|
|
16
16
|
const CardHeader = require("../../../globals/views/components/blocks/CardHeader.vue.cjs");
|
|
17
17
|
const SectionPageTitle = require("../../../globals/views/components/sections/SectionPageTitle.vue.cjs");
|
|
18
|
-
const EditImages = require("../../../../components/EditImages/EditImages.
|
|
18
|
+
const EditImages = require("../../../../components/EditImages/EditImages.vue.cjs");
|
|
19
19
|
const BlockTags = require("../../../../components/FieldTags/BlockTags.vue.cjs");
|
|
20
20
|
const _hoisted_1 = { class: "cols-1 gap-thin pd-thin" };
|
|
21
21
|
const _hoisted_2 = { class: "pos-relative" };
|
|
@@ -13,7 +13,7 @@ import "../../../organizations/store/organizations.js";
|
|
|
13
13
|
import gallery from "../../store/gallery.js";
|
|
14
14
|
import _sfc_main$3 from "../../../globals/views/components/blocks/CardHeader.vue.js";
|
|
15
15
|
import _sfc_main$1 from "../../../globals/views/components/sections/SectionPageTitle.vue.js";
|
|
16
|
-
import _sfc_main$6 from "../../../../components/EditImages/EditImages.
|
|
16
|
+
import _sfc_main$6 from "../../../../components/EditImages/EditImages.vue.js";
|
|
17
17
|
import _sfc_main$7 from "../../../../components/FieldTags/BlockTags.vue.js";
|
|
18
18
|
const _hoisted_1 = { class: "cols-1 gap-thin pd-thin" };
|
|
19
19
|
const _hoisted_2 = { class: "pos-relative" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const index = require("../../../../../../_virtual/
|
|
3
|
+
const index = require("../../../../../../_virtual/index2.cjs");
|
|
4
4
|
class I18nManager {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.moduleLocales = /* @__PURE__ */ new Map();
|
|
@@ -13,7 +13,7 @@ const auth = require("../../../../auth/views/store/auth.cjs");
|
|
|
13
13
|
const _hoisted_1 = { class: "pos-sticky w-100 z-index-3 flex-center flex t-center pd-medium" };
|
|
14
14
|
const _hoisted_2 = {
|
|
15
15
|
key: 1,
|
|
16
|
-
class: "t-semi
|
|
16
|
+
class: "t-semi lh-semi h5 d-block"
|
|
17
17
|
};
|
|
18
18
|
const _hoisted_3 = { class: "flex-nowrap flex gap-regular pos-absolute pos-r-medium" };
|
|
19
19
|
const _sfc_main = {
|
|
@@ -57,7 +57,7 @@ const _sfc_main = {
|
|
|
57
57
|
!vue.unref(route).meta.title_hide ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
58
58
|
key: 0,
|
|
59
59
|
onClick: _cache[0] || (_cache[0] = ($event) => handleBackNavigation()),
|
|
60
|
-
class: "pos-absolute cursor-pointer i-
|
|
60
|
+
class: "pos-absolute cursor-pointer i-medium pos-l-medium",
|
|
61
61
|
width: "12",
|
|
62
62
|
height: "22",
|
|
63
63
|
viewBox: "0 0 12 22",
|
|
@@ -79,12 +79,12 @@ const _sfc_main = {
|
|
|
79
79
|
default: vue.withCtx(() => [
|
|
80
80
|
(vue.openBlock(), vue.createElementBlock("div", {
|
|
81
81
|
key: vue.unref(route).meta.title,
|
|
82
|
-
class: "header-title"
|
|
82
|
+
class: "h-2r flex flex-center header-title"
|
|
83
83
|
}, [
|
|
84
84
|
props.logotype && vue.unref(route).meta.title_hide ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(props.logotype), {
|
|
85
85
|
key: 0,
|
|
86
86
|
theme: __props.theme
|
|
87
|
-
}, null, 8, ["theme"])) : (vue.openBlock(), vue.createElementBlock("
|
|
87
|
+
}, null, 8, ["theme"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(_ctx.formateText(globals.state.navigation_bar.name || vue.unref(route).meta?.title?.[vue.unref(locale).toLowerCase()] || vue.unref(route).name)), 1))
|
|
88
88
|
]))
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
@@ -105,7 +105,7 @@ const _sfc_main = {
|
|
|
105
105
|
}, {
|
|
106
106
|
default: vue.withCtx(() => [
|
|
107
107
|
vue.createVNode(IconShopcart.default, {
|
|
108
|
-
class: "i-
|
|
108
|
+
class: "i-medium",
|
|
109
109
|
fill: "rgb(var(--main))"
|
|
110
110
|
})
|
|
111
111
|
]),
|
|
@@ -117,7 +117,7 @@ const _sfc_main = {
|
|
|
117
117
|
actions.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.TransitionGroup, {
|
|
118
118
|
key: 0,
|
|
119
119
|
name: "slideIn",
|
|
120
|
-
class: "i-
|
|
120
|
+
class: "i-medium",
|
|
121
121
|
tag: "div"
|
|
122
122
|
}, {
|
|
123
123
|
default: vue.withCtx(() => [
|
|
@@ -128,7 +128,7 @@ const _sfc_main = {
|
|
|
128
128
|
ref_for: true
|
|
129
129
|
}, item.props, {
|
|
130
130
|
onClick: ($event) => item.action(vue.unref(router), vue.unref(route)),
|
|
131
|
-
class: "i-
|
|
131
|
+
class: "i-medium cursor-pointer"
|
|
132
132
|
}), null, 16, ["onClick"])) : vue.createCommentVNode("", true)
|
|
133
133
|
], 64);
|
|
134
134
|
}), 128))
|
|
@@ -143,7 +143,7 @@ const _sfc_main = {
|
|
|
143
143
|
vue.unref(route).meta.title_hide ? (vue.openBlock(), vue.createBlock(IconProfile.default, {
|
|
144
144
|
key: 0,
|
|
145
145
|
onClick: _cache[1] || (_cache[1] = ($event) => handleToggle()),
|
|
146
|
-
class: "cursor-pointer i-
|
|
146
|
+
class: "cursor-pointer i-medium",
|
|
147
147
|
fill: "rgb(var(--main))"
|
|
148
148
|
})) : vue.createCommentVNode("", true)
|
|
149
149
|
]),
|
package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBar.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/partials/NavigationBar.vue"],"sourcesContent":["<template>\n\t<header \n\t\tclass=\"pos-sticky w-100 z-index-3 flex-center flex t-center pd-medium\"\n\t>\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t<svg \n\t\t\t\tv-if=\"!route.meta.title_hide\"\n\t\t\t\t@click=\"handleBackNavigation()\" \n\t\t\t\tclass=\"pos-absolute cursor-pointer i-
|
|
1
|
+
{"version":3,"file":"NavigationBar.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/partials/NavigationBar.vue"],"sourcesContent":["<template>\n\t<header \n\t\tclass=\"pos-sticky w-100 z-index-3 flex-center flex t-center pd-medium\"\n\t>\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t<svg \n\t\t\t\tv-if=\"!route.meta.title_hide\"\n\t\t\t\t@click=\"handleBackNavigation()\" \n\t\t\t\tclass=\"pos-absolute cursor-pointer i-medium pos-l-medium\"\n\t\t\t\twidth=\"12\"\n\t\t\t\theight=\"22\"\n\t\t\t\tviewBox=\"0 0 12 22\"\n\t\t\t\tfill=\"none\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t>\n\t\t\t\t<path fill=\"rgb(var(--main))\" d=\"M9.70312 20.7969C10.125 21.2188 10.8281 21.2188 11.2969 20.7969C11.7188 20.375 11.7188 19.6719 11.2969 19.2031L3.42188 11L11.2969 2.79688C11.7188 2.32813 11.7188 1.625 11.2969 1.20313C10.8281 0.734377 10.125 0.781252 9.70312 1.20313L1.07812 10.2031C0.84375 10.4375 0.75 10.7188 0.75 11C0.75 11.2813 0.84375 11.5625 1.07812 11.7969L9.70312 20.7969Z\" />\n\t\t\t</svg>\n\t\t</transition>\n\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t<div :key=\"route.meta.title\" class=\"h-2r flex flex-center header-title\">\n\t\t\t\t<component\n\t\t\t\t\tv-if=\"props.logotype && route.meta.title_hide\"\n\t\t\t\t :is=\"props.logotype\"\n\t\t\t\t :theme=\"theme\"\n\t\t\t\t/>\n\n\t\t\t\t<span v-else class=\"t-semi lh-semi h5 d-block\" >\n\t\t\t\t\t{{ formateText(globals.state.navigation_bar.name || route.meta?.title?.[locale.toLowerCase()] || route.name) }}\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t</transition>\n\n\t\t<div class=\"flex-nowrap flex gap-regular pos-absolute pos-r-medium\">\n\t\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t\t<Button\n\t\t\t\t\tv-if=\"route.meta.title_hide || route.meta.showShopCart\"\n\t\t\t\t\t:submit=\"a => shopcart.actions.toggleShopcart()\" \n\t\t\t\t\t:counter=\"shopcart.getters.cartTotalAmount\" \n\t\t\t\t\t:showSucces=\"false\"\n\t\t\t\t\t:showLoader=\"false\"\n\t\t\t\t\tclass=\"cursor-pointer pd-zero \"\n\t\t\t\t\t> \n\t\t\t\t\t<IconShopcart class=\"i-medium\" fill=\"rgb(var(--main))\" />\n\t\t\t\t</Button>\n\t\t\t</transition>\n\n\t <transition-group v-if=\"actions.length > 0\" name=\"slideIn\" class=\"i-medium\" tag=\"div\">\n\t <template v-for=\"(item, index) in actions\" :key=\"index\">\n\t <component\n\t\t\t\t\t\tv-if=\"typeof item.condition === 'function' ? item.condition(router, route) : item.condition\"\n\t :is=\"item.component\"\n\t v-bind=\"item.props\"\n\t @click=\"item.action(router, route)\"\n\t class=\"i-medium cursor-pointer \"\n\t />\n\t </template>\n\t </transition-group>\n\n\t\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t\t<IconProfile \n\t\t\t\t\tv-if=\"route.meta.title_hide\"\n\t\t\t\t\t@click=\"handleToggle()\" \n\t\t\t\t\tclass=\"cursor-pointer i-medium\"\n\t\t\t\t\tfill=\"rgb(var(--main))\" \n\t\t\t\t/>\n\t\t\t</transition>\n\t\t</div>\n\t</header>\n</template>\n\n<script setup>\n\timport { ref, onMounted, onUnmounted, computed } from 'vue' \n\timport { useRoute, useRouter } from 'vue-router'\n\timport { useI18n } from 'vue-i18n'\n\t\n import IconShopcart from '@martyrs/src/modules/icons/entities/IconShopcart.vue'\n\timport IconProfile from '@martyrs/src/modules/icons/entities/IconProfile.vue'\n\n\timport Button \t\t\t\tfrom '@martyrs/src/components/Button/Button.vue'\n\n\timport * as globals from '@martyrs/src/modules/globals/views/store/globals.js'\n\timport * as shopcart from '@martyrs/src/modules/orders/store/shopcart.js'\n\timport * as auth from '@martyrs/src/modules/auth/views/store/auth.js'\n\n\t\t// Props\n\tconst props = defineProps({\n theme: {\n \ttype: String,\n\t default: \"light\"\n },\n logotype: {\n\t type: Object\n\t }\n });\n\n\tconst router = useRouter()\n\tconst route = useRoute()\n\n\tconst { t, mergeLocaleMessage, locale } = useI18n();\n\n\tconst actions = computed(() => globals.state.navigation_bar.actions || route.meta?.actions || [])\n\n\tfunction handleBackNavigation() {\n\t if (route.query?.afterAuth) { \n\t \trouter.push({name: 'Home'}) \n\t } else {\n\t \trouter.back();\n\t }\n\t}\n\n\tfunction handleToggle() {\n\t\tif (auth.state.access.status === false) {\n\t\t\trouter.push({name: 'Sign In'}) \n\t\t} else {\n\t\t\trouter.push({ name: 'User Profile', params: { _id: auth.state.user._id }})\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\n\t.header-shopcart {\n\t\tposition: absolute;\n\t\tright: 4.25rem;\n\t}\n\n\t.header-title {\n\t\tpointer-events: none;\n\t}\n\n\t.slideIn-enter-active,\n\t.slideIn-leave-active {\n\t\ttransition: all 0.33s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slideIn-enter-from,\n\t.slideIn-leave-to {\n\t\topacity: 0;\n\t\ttransform: translateX(10px);\n\n\t\tspan {\tposition: absolute; } \n\t}\n\n\t.slideY-enter-active,\n\t.slideY-leave-active {\n\t\ttransition: all 0.33s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slideY-enter-from,\n\t.slideY-leave-to {\n\t\topacity: 0;\n\t\ttransform: translateY(50px);\n\n\t\tspan {\tposition: absolute; } \n\t}\n</style>"],"names":["useRouter","useRoute","useI18n","computed","globals.state","auth.state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFC,UAAM,QAAQ;AAUd,UAAM,SAASA,UAAAA,UAAS;AACxB,UAAM,QAAQC,UAAAA,SAAQ;AAEtB,UAAM,EAAE,GAAG,oBAAoB,OAAM,IAAKC,QAAAA,QAAO;AAEjD,UAAM,UAAUC,aAAS,MAAMC,cAAc,eAAe,WAAW,MAAM,MAAM,WAAW,CAAA,CAAE;AAEhG,aAAS,uBAAuB;AAC5B,UAAI,MAAM,OAAO,WAAY;AAC5B,eAAO,KAAK,EAAC,MAAM,OAAM,CAAC;AAAA,MAC3B,OAAO;AACN,eAAO,KAAI;AAAA,MACZ;AAAA,IACJ;AAEA,aAAS,eAAe;AACvB,UAAIC,WAAW,OAAO,WAAW,OAAO;AACvC,eAAO,KAAK,EAAC,MAAM,UAAS,CAAC;AAAA,MAC9B,OAAO;AACN,eAAO,KAAK,EAAE,MAAM,gBAAgB,QAAQ,EAAE,KAAKA,KAAAA,MAAW,KAAK,MAAK,CAAC;AAAA,MAC1E;AAAA,IACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -11,7 +11,7 @@ import { state as state$1 } from "../../../../auth/views/store/auth.js";
|
|
|
11
11
|
const _hoisted_1 = { class: "pos-sticky w-100 z-index-3 flex-center flex t-center pd-medium" };
|
|
12
12
|
const _hoisted_2 = {
|
|
13
13
|
key: 1,
|
|
14
|
-
class: "t-semi
|
|
14
|
+
class: "t-semi lh-semi h5 d-block"
|
|
15
15
|
};
|
|
16
16
|
const _hoisted_3 = { class: "flex-nowrap flex gap-regular pos-absolute pos-r-medium" };
|
|
17
17
|
const _sfc_main = {
|
|
@@ -55,7 +55,7 @@ const _sfc_main = {
|
|
|
55
55
|
!unref(route).meta.title_hide ? (openBlock(), createElementBlock("svg", {
|
|
56
56
|
key: 0,
|
|
57
57
|
onClick: _cache[0] || (_cache[0] = ($event) => handleBackNavigation()),
|
|
58
|
-
class: "pos-absolute cursor-pointer i-
|
|
58
|
+
class: "pos-absolute cursor-pointer i-medium pos-l-medium",
|
|
59
59
|
width: "12",
|
|
60
60
|
height: "22",
|
|
61
61
|
viewBox: "0 0 12 22",
|
|
@@ -77,12 +77,12 @@ const _sfc_main = {
|
|
|
77
77
|
default: withCtx(() => [
|
|
78
78
|
(openBlock(), createElementBlock("div", {
|
|
79
79
|
key: unref(route).meta.title,
|
|
80
|
-
class: "header-title"
|
|
80
|
+
class: "h-2r flex flex-center header-title"
|
|
81
81
|
}, [
|
|
82
82
|
props.logotype && unref(route).meta.title_hide ? (openBlock(), createBlock(resolveDynamicComponent(props.logotype), {
|
|
83
83
|
key: 0,
|
|
84
84
|
theme: __props.theme
|
|
85
|
-
}, null, 8, ["theme"])) : (openBlock(), createElementBlock("
|
|
85
|
+
}, null, 8, ["theme"])) : (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.formateText(state.navigation_bar.name || unref(route).meta?.title?.[unref(locale).toLowerCase()] || unref(route).name)), 1))
|
|
86
86
|
]))
|
|
87
87
|
]),
|
|
88
88
|
_: 1
|
|
@@ -103,7 +103,7 @@ const _sfc_main = {
|
|
|
103
103
|
}, {
|
|
104
104
|
default: withCtx(() => [
|
|
105
105
|
createVNode(_sfc_main$2, {
|
|
106
|
-
class: "i-
|
|
106
|
+
class: "i-medium",
|
|
107
107
|
fill: "rgb(var(--main))"
|
|
108
108
|
})
|
|
109
109
|
]),
|
|
@@ -115,7 +115,7 @@ const _sfc_main = {
|
|
|
115
115
|
actions$1.value.length > 0 ? (openBlock(), createBlock(TransitionGroup, {
|
|
116
116
|
key: 0,
|
|
117
117
|
name: "slideIn",
|
|
118
|
-
class: "i-
|
|
118
|
+
class: "i-medium",
|
|
119
119
|
tag: "div"
|
|
120
120
|
}, {
|
|
121
121
|
default: withCtx(() => [
|
|
@@ -126,7 +126,7 @@ const _sfc_main = {
|
|
|
126
126
|
ref_for: true
|
|
127
127
|
}, item.props, {
|
|
128
128
|
onClick: ($event) => item.action(unref(router), unref(route)),
|
|
129
|
-
class: "i-
|
|
129
|
+
class: "i-medium cursor-pointer"
|
|
130
130
|
}), null, 16, ["onClick"])) : createCommentVNode("", true)
|
|
131
131
|
], 64);
|
|
132
132
|
}), 128))
|
|
@@ -141,7 +141,7 @@ const _sfc_main = {
|
|
|
141
141
|
unref(route).meta.title_hide ? (openBlock(), createBlock(_sfc_main$3, {
|
|
142
142
|
key: 0,
|
|
143
143
|
onClick: _cache[1] || (_cache[1] = ($event) => handleToggle()),
|
|
144
|
-
class: "cursor-pointer i-
|
|
144
|
+
class: "cursor-pointer i-medium",
|
|
145
145
|
fill: "rgb(var(--main))"
|
|
146
146
|
})) : createCommentVNode("", true)
|
|
147
147
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBar.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/partials/NavigationBar.vue"],"sourcesContent":["<template>\n\t<header \n\t\tclass=\"pos-sticky w-100 z-index-3 flex-center flex t-center pd-medium\"\n\t>\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t<svg \n\t\t\t\tv-if=\"!route.meta.title_hide\"\n\t\t\t\t@click=\"handleBackNavigation()\" \n\t\t\t\tclass=\"pos-absolute cursor-pointer i-
|
|
1
|
+
{"version":3,"file":"NavigationBar.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/partials/NavigationBar.vue"],"sourcesContent":["<template>\n\t<header \n\t\tclass=\"pos-sticky w-100 z-index-3 flex-center flex t-center pd-medium\"\n\t>\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t<svg \n\t\t\t\tv-if=\"!route.meta.title_hide\"\n\t\t\t\t@click=\"handleBackNavigation()\" \n\t\t\t\tclass=\"pos-absolute cursor-pointer i-medium pos-l-medium\"\n\t\t\t\twidth=\"12\"\n\t\t\t\theight=\"22\"\n\t\t\t\tviewBox=\"0 0 12 22\"\n\t\t\t\tfill=\"none\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t>\n\t\t\t\t<path fill=\"rgb(var(--main))\" d=\"M9.70312 20.7969C10.125 21.2188 10.8281 21.2188 11.2969 20.7969C11.7188 20.375 11.7188 19.6719 11.2969 19.2031L3.42188 11L11.2969 2.79688C11.7188 2.32813 11.7188 1.625 11.2969 1.20313C10.8281 0.734377 10.125 0.781252 9.70312 1.20313L1.07812 10.2031C0.84375 10.4375 0.75 10.7188 0.75 11C0.75 11.2813 0.84375 11.5625 1.07812 11.7969L9.70312 20.7969Z\" />\n\t\t\t</svg>\n\t\t</transition>\n\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t<div :key=\"route.meta.title\" class=\"h-2r flex flex-center header-title\">\n\t\t\t\t<component\n\t\t\t\t\tv-if=\"props.logotype && route.meta.title_hide\"\n\t\t\t\t :is=\"props.logotype\"\n\t\t\t\t :theme=\"theme\"\n\t\t\t\t/>\n\n\t\t\t\t<span v-else class=\"t-semi lh-semi h5 d-block\" >\n\t\t\t\t\t{{ formateText(globals.state.navigation_bar.name || route.meta?.title?.[locale.toLowerCase()] || route.name) }}\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t</transition>\n\n\t\t<div class=\"flex-nowrap flex gap-regular pos-absolute pos-r-medium\">\n\t\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t\t<Button\n\t\t\t\t\tv-if=\"route.meta.title_hide || route.meta.showShopCart\"\n\t\t\t\t\t:submit=\"a => shopcart.actions.toggleShopcart()\" \n\t\t\t\t\t:counter=\"shopcart.getters.cartTotalAmount\" \n\t\t\t\t\t:showSucces=\"false\"\n\t\t\t\t\t:showLoader=\"false\"\n\t\t\t\t\tclass=\"cursor-pointer pd-zero \"\n\t\t\t\t\t> \n\t\t\t\t\t<IconShopcart class=\"i-medium\" fill=\"rgb(var(--main))\" />\n\t\t\t\t</Button>\n\t\t\t</transition>\n\n\t <transition-group v-if=\"actions.length > 0\" name=\"slideIn\" class=\"i-medium\" tag=\"div\">\n\t <template v-for=\"(item, index) in actions\" :key=\"index\">\n\t <component\n\t\t\t\t\t\tv-if=\"typeof item.condition === 'function' ? item.condition(router, route) : item.condition\"\n\t :is=\"item.component\"\n\t v-bind=\"item.props\"\n\t @click=\"item.action(router, route)\"\n\t class=\"i-medium cursor-pointer \"\n\t />\n\t </template>\n\t </transition-group>\n\n\t\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t\t<IconProfile \n\t\t\t\t\tv-if=\"route.meta.title_hide\"\n\t\t\t\t\t@click=\"handleToggle()\" \n\t\t\t\t\tclass=\"cursor-pointer i-medium\"\n\t\t\t\t\tfill=\"rgb(var(--main))\" \n\t\t\t\t/>\n\t\t\t</transition>\n\t\t</div>\n\t</header>\n</template>\n\n<script setup>\n\timport { ref, onMounted, onUnmounted, computed } from 'vue' \n\timport { useRoute, useRouter } from 'vue-router'\n\timport { useI18n } from 'vue-i18n'\n\t\n import IconShopcart from '@martyrs/src/modules/icons/entities/IconShopcart.vue'\n\timport IconProfile from '@martyrs/src/modules/icons/entities/IconProfile.vue'\n\n\timport Button \t\t\t\tfrom '@martyrs/src/components/Button/Button.vue'\n\n\timport * as globals from '@martyrs/src/modules/globals/views/store/globals.js'\n\timport * as shopcart from '@martyrs/src/modules/orders/store/shopcart.js'\n\timport * as auth from '@martyrs/src/modules/auth/views/store/auth.js'\n\n\t\t// Props\n\tconst props = defineProps({\n theme: {\n \ttype: String,\n\t default: \"light\"\n },\n logotype: {\n\t type: Object\n\t }\n });\n\n\tconst router = useRouter()\n\tconst route = useRoute()\n\n\tconst { t, mergeLocaleMessage, locale } = useI18n();\n\n\tconst actions = computed(() => globals.state.navigation_bar.actions || route.meta?.actions || [])\n\n\tfunction handleBackNavigation() {\n\t if (route.query?.afterAuth) { \n\t \trouter.push({name: 'Home'}) \n\t } else {\n\t \trouter.back();\n\t }\n\t}\n\n\tfunction handleToggle() {\n\t\tif (auth.state.access.status === false) {\n\t\t\trouter.push({name: 'Sign In'}) \n\t\t} else {\n\t\t\trouter.push({ name: 'User Profile', params: { _id: auth.state.user._id }})\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\n\t.header-shopcart {\n\t\tposition: absolute;\n\t\tright: 4.25rem;\n\t}\n\n\t.header-title {\n\t\tpointer-events: none;\n\t}\n\n\t.slideIn-enter-active,\n\t.slideIn-leave-active {\n\t\ttransition: all 0.33s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slideIn-enter-from,\n\t.slideIn-leave-to {\n\t\topacity: 0;\n\t\ttransform: translateX(10px);\n\n\t\tspan {\tposition: absolute; } \n\t}\n\n\t.slideY-enter-active,\n\t.slideY-leave-active {\n\t\ttransition: all 0.33s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slideY-enter-from,\n\t.slideY-leave-to {\n\t\topacity: 0;\n\t\ttransform: translateY(50px);\n\n\t\tspan {\tposition: absolute; } \n\t}\n</style>"],"names":["actions","globals.state","auth.state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFC,UAAM,QAAQ;AAUd,UAAM,SAAS,UAAS;AACxB,UAAM,QAAQ,SAAQ;AAEtB,UAAM,EAAE,GAAG,oBAAoB,OAAM,IAAK,QAAO;AAEjD,UAAMA,YAAU,SAAS,MAAMC,MAAc,eAAe,WAAW,MAAM,MAAM,WAAW,CAAA,CAAE;AAEhG,aAAS,uBAAuB;AAC5B,UAAI,MAAM,OAAO,WAAY;AAC5B,eAAO,KAAK,EAAC,MAAM,OAAM,CAAC;AAAA,MAC3B,OAAO;AACN,eAAO,KAAI;AAAA,MACZ;AAAA,IACJ;AAEA,aAAS,eAAe;AACvB,UAAIC,QAAW,OAAO,WAAW,OAAO;AACvC,eAAO,KAAK,EAAC,MAAM,UAAS,CAAC;AAAA,MAC9B,OAAO;AACN,eAAO,KAAK,EAAE,MAAM,gBAAgB,QAAQ,EAAE,KAAKA,QAAW,KAAK,MAAK,CAAC;AAAA,MAC1E;AAAA,IACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -7,7 +7,7 @@ const Tab = require("../../../../components/Tab/Tab.vue2.cjs");
|
|
|
7
7
|
const Field = require("../../../../components/Field/Field.vue.cjs");
|
|
8
8
|
const Select = require("../../../../components/Select/Select.vue2.cjs");
|
|
9
9
|
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
10
|
-
const EditImages = require("../../../../components/EditImages/EditImages.
|
|
10
|
+
const EditImages = require("../../../../components/EditImages/EditImages.vue.cjs");
|
|
11
11
|
const BlockMultiselect = require("../../../globals/views/components/blocks/BlockMultiselect.vue.cjs");
|
|
12
12
|
const IconCross = require("../../../icons/navigation/IconCross.vue.cjs");
|
|
13
13
|
const IconDelete = require("../../../icons/navigation/IconDelete.vue.cjs");
|
|
@@ -5,7 +5,7 @@ import _sfc_main$3 from "../../../../components/Tab/Tab.vue2.js";
|
|
|
5
5
|
import Field from "../../../../components/Field/Field.vue.js";
|
|
6
6
|
import Select from "../../../../components/Select/Select.vue2.js";
|
|
7
7
|
import _sfc_main$2 from "../../../../components/Button/Button.vue.js";
|
|
8
|
-
import _sfc_main$4 from "../../../../components/EditImages/EditImages.
|
|
8
|
+
import _sfc_main$4 from "../../../../components/EditImages/EditImages.vue.js";
|
|
9
9
|
import BlockMultiselect from "../../../globals/views/components/blocks/BlockMultiselect.vue.js";
|
|
10
10
|
import _sfc_main$5 from "../../../icons/navigation/IconCross.vue.js";
|
|
11
11
|
import _sfc_main$a from "../../../icons/navigation/IconDelete.vue.js";
|
|
@@ -11,7 +11,7 @@ const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
|
11
11
|
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
|
12
12
|
const Select = require("../../../../components/Select/Select.vue2.cjs");
|
|
13
13
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
|
14
|
-
const EditImages = require("../../../../components/EditImages/EditImages.
|
|
14
|
+
const EditImages = require("../../../../components/EditImages/EditImages.vue.cjs");
|
|
15
15
|
const EditIngredients = require("./EditIngredients.vue.cjs");
|
|
16
16
|
const PlaceholderImage = require("../../../icons/placeholders/PlaceholderImage.vue.cjs");
|
|
17
17
|
const IconEdit = require("../../../icons/navigation/IconEdit.vue.cjs");
|
|
@@ -9,7 +9,7 @@ import _sfc_main$3 from "../../../../components/Button/Button.vue.js";
|
|
|
9
9
|
import _sfc_main$7 from "../../../../components/Popup/Popup.vue.js";
|
|
10
10
|
import Select from "../../../../components/Select/Select.vue2.js";
|
|
11
11
|
import _sfc_main$2 from "../../../../components/Feed/Feed.vue.js";
|
|
12
|
-
import _sfc_main$9 from "../../../../components/EditImages/EditImages.
|
|
12
|
+
import _sfc_main$9 from "../../../../components/EditImages/EditImages.vue.js";
|
|
13
13
|
import _sfc_main$8 from "./EditIngredients.vue.js";
|
|
14
14
|
import PlaceholderImage from "../../../icons/placeholders/PlaceholderImage.vue.js";
|
|
15
15
|
import _sfc_main$5 from "../../../icons/navigation/IconEdit.vue.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const utils = require("../../../../../../../_virtual/
|
|
3
|
+
const utils = require("../../../../../../../_virtual/utils2.cjs");
|
|
4
4
|
var hasRequiredUtils;
|
|
5
5
|
function requireUtils() {
|
|
6
6
|
if (hasRequiredUtils) return utils.__exports;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const utils = require("../../../../../../../_virtual/
|
|
3
|
+
const utils = require("../../../../../../../_virtual/utils.cjs");
|
|
4
4
|
var hasRequiredUtils;
|
|
5
5
|
function requireUtils() {
|
|
6
6
|
if (hasRequiredUtils) return utils.__exports;
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<svg
|
|
7
7
|
v-if="!route.meta.title_hide"
|
|
8
8
|
@click="handleBackNavigation()"
|
|
9
|
-
class="pos-absolute cursor-pointer i-
|
|
9
|
+
class="pos-absolute cursor-pointer i-medium pos-l-medium"
|
|
10
10
|
width="12"
|
|
11
11
|
height="22"
|
|
12
12
|
viewBox="0 0 12 22"
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
</transition>
|
|
19
19
|
|
|
20
20
|
<transition name="slideIn" mode="out-in">
|
|
21
|
-
<div :key="route.meta.title" class="header-title">
|
|
21
|
+
<div :key="route.meta.title" class="h-2r flex flex-center header-title">
|
|
22
22
|
<component
|
|
23
23
|
v-if="props.logotype && route.meta.title_hide"
|
|
24
24
|
:is="props.logotype"
|
|
25
25
|
:theme="theme"
|
|
26
26
|
/>
|
|
27
27
|
|
|
28
|
-
<
|
|
28
|
+
<span v-else class="t-semi lh-semi h5 d-block" >
|
|
29
29
|
{{ formateText(globals.state.navigation_bar.name || route.meta?.title?.[locale.toLowerCase()] || route.name) }}
|
|
30
|
-
</
|
|
30
|
+
</span>
|
|
31
31
|
</div>
|
|
32
32
|
</transition>
|
|
33
33
|
|
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
:showLoader="false"
|
|
42
42
|
class="cursor-pointer pd-zero "
|
|
43
43
|
>
|
|
44
|
-
<IconShopcart class="i-
|
|
44
|
+
<IconShopcart class="i-medium" fill="rgb(var(--main))" />
|
|
45
45
|
</Button>
|
|
46
46
|
</transition>
|
|
47
47
|
|
|
48
|
-
<transition-group v-if="actions.length > 0" name="slideIn" class="i-
|
|
48
|
+
<transition-group v-if="actions.length > 0" name="slideIn" class="i-medium" tag="div">
|
|
49
49
|
<template v-for="(item, index) in actions" :key="index">
|
|
50
50
|
<component
|
|
51
51
|
v-if="typeof item.condition === 'function' ? item.condition(router, route) : item.condition"
|
|
52
52
|
:is="item.component"
|
|
53
53
|
v-bind="item.props"
|
|
54
54
|
@click="item.action(router, route)"
|
|
55
|
-
class="i-
|
|
55
|
+
class="i-medium cursor-pointer "
|
|
56
56
|
/>
|
|
57
57
|
</template>
|
|
58
58
|
</transition-group>
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<IconProfile
|
|
62
62
|
v-if="route.meta.title_hide"
|
|
63
63
|
@click="handleToggle()"
|
|
64
|
-
class="cursor-pointer i-
|
|
64
|
+
class="cursor-pointer i-medium"
|
|
65
65
|
fill="rgb(var(--main))"
|
|
66
66
|
/>
|
|
67
67
|
</transition>
|