@ozdao/prometheus-framework 0.2.317 → 0.2.318
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/products.server.js +4 -0
- package/dist/products.server.mjs +4 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +0 -93
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +1 -94
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +93 -0
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +94 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.cjs +48 -48
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.js +48 -48
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionOverview.vue.cjs +57 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionOverview.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionOverview.vue.js +57 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionOverview.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +2 -0
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.js +6 -4
- package/dist/prometheus-framework/src/modules/landing/landing.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/marketplace.client.cjs +13 -0
- package/dist/prometheus-framework/src/modules/marketplace/marketplace.client.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/marketplace/marketplace.client.js +13 -0
- package/dist/prometheus-framework/src/modules/marketplace/marketplace.client.js.map +1 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs +179 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/components/layouts/Marketplace.vue.js +179 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/components/layouts/Marketplace.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/components/pages/Catalog.vue.cjs +67 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/components/pages/Catalog.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/components/pages/Catalog.vue.js +67 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/components/pages/Catalog.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/components/sections/SectionMenu.vue.cjs +121 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/components/sections/SectionMenu.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +121 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/components/sections/SectionMenu.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/store/marketplace.cjs +57 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/store/marketplace.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/store/marketplace.js +57 -0
- package/dist/prometheus-framework/src/modules/marketplace/views/store/marketplace.js.map +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +859 -859
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +859 -859
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +30 -20
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +33 -23
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +3 -19
- package/dist/prometheus-framework/src/modules/products/products.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +26 -42
- package/dist/prometheus-framework/src/modules/products/products.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +3 -0
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +3 -0
- package/dist/prometheus-framework/src/modules/products/store/categories.js.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/package.json +5 -1
- package/src/modules/auth/models/role.model.js +1 -1
- package/src/modules/globals/views/core/event.js +48 -0
- package/src/modules/globals/views/core/module-manager.js +91 -0
- package/src/modules/globals/views/core/module.js +106 -0
- package/src/modules/landing/components/sections/SectionGuide.vue +48 -48
- package/src/modules/landing/components/sections/SectionOverview.vue +40 -0
- package/src/modules/landing/landing.client.js +2 -0
- package/src/modules/marketplace/marketplace.client.js +59 -0
- package/src/modules/{products → marketplace/views}/components/layouts/Marketplace.vue +3 -1
- package/src/modules/{products → marketplace/views}/components/pages/Catalog.vue +4 -3
- package/src/modules/{products/components/sections/MenuSection.vue → marketplace/views/components/sections/SectionMenu.vue} +25 -35
- package/src/modules/{products → marketplace/views}/router/marketplace.router.js +1 -2
- package/src/modules/products/components/pages/CategoryEdit.vue +23 -7
- package/src/modules/products/components/pages/Products.vue +1 -1
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/products/models/category.model.js +5 -0
- package/src/modules/products/products.client.js +0 -16
- package/src/modules/products/store/categories.js +6 -0
- package/src/modules/spots/components/layouts/Spots.vue +1 -4
- package/src/modules/spots/components/pages/Map.vue +1 -1
- package/src/modules/landing/components/sections/SectionsSection.vue +0 -66
- package/src/modules/products/components/sections/Filters.vue +0 -152
- /package/src/modules/{products → marketplace/views}/store/marketplace.js +0 -0
package/dist/products.server.js
CHANGED
@@ -98,6 +98,10 @@ var product_model = (db) => {
|
|
98
98
|
var category_model = (db) => {
|
99
99
|
const CategorySchema = new db.mongoose.Schema({
|
100
100
|
name: { type: String, required: true, trim: true },
|
101
|
+
description: { type: String, trim: true },
|
102
|
+
photo: {
|
103
|
+
type: String
|
104
|
+
},
|
101
105
|
status: {
|
102
106
|
type: String,
|
103
107
|
enum: ["draft", "internal", "published", "removed"],
|
package/dist/products.server.mjs
CHANGED
@@ -97,6 +97,10 @@ var product_model = (db) => {
|
|
97
97
|
var category_model = (db) => {
|
98
98
|
const CategorySchema = new db.mongoose.Schema({
|
99
99
|
name: { type: String, required: true, trim: true },
|
100
|
+
description: { type: String, trim: true },
|
101
|
+
photo: {
|
102
|
+
type: String
|
103
|
+
},
|
100
104
|
status: {
|
101
105
|
type: String,
|
102
106
|
enum: ["draft", "internal", "published", "removed"],
|
@@ -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 Loader = require("../Loader/Loader.
|
4
|
+
const Loader = require("../Loader/Loader.vue.cjs");
|
5
5
|
;/* empty css */
|
6
6
|
const _hoisted_1 = ["disabled"];
|
7
7
|
const _hoisted_2 = { key: 0 };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref, openBlock, createElementBlock, withModifiers, createVNode, Transition, withCtx, renderSlot, toDisplayString, createCommentVNode } from "vue";
|
2
|
-
import Loader from "../Loader/Loader.
|
2
|
+
import Loader from "../Loader/Loader.vue.js";
|
3
3
|
/* empty css */
|
4
4
|
const _hoisted_1 = ["disabled"];
|
5
5
|
const _hoisted_2 = { key: 0 };
|
@@ -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/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;
|
95
2
|
//# sourceMappingURL=EditImages.vue.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EditImages.vue.cjs","sources":[
|
1
|
+
{"version":3,"file":"EditImages.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -1,95 +1,2 @@
|
|
1
|
-
|
2
|
-
import { VueDraggableNext } from "../../../../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
|
-
};
|
1
|
+
|
95
2
|
//# sourceMappingURL=EditImages.vue.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EditImages.vue.js","sources":[
|
1
|
+
{"version":3,"file":"EditImages.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -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/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;
|
2
95
|
//# sourceMappingURL=EditImages.vue2.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EditImages.vue2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
1
|
+
{"version":3,"file":"EditImages.vue2.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 \"@pf/src/components/UploadImageMultiple/UploadImageMultiple.vue\";\nimport IconCross from '@pf/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,kBAAa;AAAA,IACf;AAEA,UAAM,cAAc,CAAC,UAAU;AAC7B,kBAAY,MAAM,OAAO,OAAO,CAAC;AACjC,kBAAa;AAAA,IACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,2 +1,95 @@
|
|
1
|
-
|
1
|
+
import { ref, watchEffect, openBlock, createElementBlock, createBlock, unref, withCtx, Fragment, renderList, createElementVNode, createVNode, createCommentVNode } from "vue";
|
2
|
+
import { VueDraggableNext } from "../../../../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
|
+
};
|
2
95
|
//# sourceMappingURL=EditImages.vue2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EditImages.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
1
|
+
{"version":3,"file":"EditImages.vue2.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 \"@pf/src/components/UploadImageMultiple/UploadImageMultiple.vue\";\nimport IconCross from '@pf/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,kBAAa;AAAA,IACf;AAEA,UAAM,cAAc,CAAC,UAAU;AAC7B,kBAAY,MAAM,OAAO,OAAO,CAAC;AACjC,kBAAa;AAAA,IACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const SkeletonEvent = require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");
|
5
|
-
const Loader = require("../Loader/Loader.
|
5
|
+
const Loader = require("../Loader/Loader.vue.cjs");
|
6
6
|
const EmptyState = require("../EmptyState/EmptyState.vue.cjs");
|
7
7
|
const Dropdown = require("../Dropdown/Dropdown.vue.cjs");
|
8
8
|
const Calendar = require("../DatePicker/Calendar.vue2.cjs");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { mergeModels, useModel, shallowRef, ref, watch, onMounted, onUnmounted, openBlock, createElementBlock, Fragment, createBlock, normalizeClass, createCommentVNode, createElementVNode, createVNode, withCtx, unref, TransitionGroup, renderList, renderSlot } from "vue";
|
2
2
|
import SkeletonEvent from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
|
3
|
-
import Loader from "../Loader/Loader.
|
3
|
+
import Loader from "../Loader/Loader.vue.js";
|
4
4
|
import _sfc_main$a from "../EmptyState/EmptyState.vue.js";
|
5
5
|
import _sfc_main$5 from "../Dropdown/Dropdown.vue.js";
|
6
6
|
import _sfc_main$7 from "../DatePicker/Calendar.vue2.js";
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const index = require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");
|
5
|
-
const Loader = require("../Loader/Loader.
|
5
|
+
const Loader = require("../Loader/Loader.vue.cjs");
|
6
6
|
;/* empty css */
|
7
7
|
const _hoisted_1 = { class: "pos-relative" };
|
8
8
|
const _hoisted_2 = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref, onMounted, watchEffect, openBlock, createElementBlock, createElementVNode, createVNode, Transition, withCtx, createBlock } from "vue";
|
2
2
|
import { Loader } from "../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
|
3
|
-
import Loader$1 from "../Loader/Loader.
|
3
|
+
import Loader$1 from "../Loader/Loader.vue.js";
|
4
4
|
/* empty css */
|
5
5
|
const _hoisted_1 = { class: "pos-relative" };
|
6
6
|
const _hoisted_2 = {
|
@@ -5,7 +5,7 @@ const vueRouter = require("vue-router");
|
|
5
5
|
require("vue-i18n");
|
6
6
|
const emblaCarouselVue_esm = require("../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs");
|
7
7
|
const emblaCarouselAutoplay_esm = require("../../../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs");
|
8
|
-
;/* empty css
|
8
|
+
;/* empty css */
|
9
9
|
const _hoisted_1 = { class: "embla__container" };
|
10
10
|
const _sfc_main = {
|
11
11
|
__name: "Slider",
|
@@ -3,7 +3,7 @@ import { useRouter } from "vue-router";
|
|
3
3
|
import "vue-i18n";
|
4
4
|
import emblaCarouselVue from "../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js";
|
5
5
|
import Autoplay from "../../../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js";
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
7
|
const _hoisted_1 = { class: "embla__container" };
|
8
8
|
const _sfc_main = {
|
9
9
|
__name: "Slider",
|
package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const axios = require("axios");
|
5
|
-
const Loader = require("../Loader/Loader.
|
5
|
+
const Loader = require("../Loader/Loader.vue.cjs");
|
6
6
|
const IconUpload = require("../../modules/icons/navigation/IconUpload.vue.cjs");
|
7
7
|
const _hoisted_1 = {
|
8
8
|
key: 0,
|
package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref, openBlock, createElementBlock, withModifiers, createVNode, Transition, withCtx, toDisplayString, createCommentVNode, createBlock, createElementVNode } from "vue";
|
2
2
|
import axios from "axios";
|
3
|
-
import Loader from "../Loader/Loader.
|
3
|
+
import Loader from "../Loader/Loader.vue.js";
|
4
4
|
import _sfc_main$1 from "../../modules/icons/navigation/IconUpload.vue.js";
|
5
5
|
const _hoisted_1 = {
|
6
6
|
key: 0,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, Transition, createBlock, resolveDynamicComponent, createElementVNode } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
|
-
/* empty css
|
4
|
+
/* empty css */
|
5
5
|
/* empty css */
|
6
6
|
import "vue-i18n";
|
7
7
|
/* empty css */
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
;/* empty css */
|
5
|
-
;/* empty css
|
5
|
+
;/* empty css */
|
6
6
|
;/* empty css */
|
7
7
|
const Dropdown = require("../../../../../components/Dropdown/Dropdown.vue.cjs");
|
8
8
|
const Menu = require("../../../../../components/Menu/Menu.vue.cjs");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref, inject, computed, onMounted, openBlock, createElementBlock, createElementVNode, unref, createBlock, withCtx, createVNode, createCommentVNode, toDisplayString, Fragment, renderList, normalizeClass, resolveDynamicComponent } from "vue";
|
2
2
|
/* empty css */
|
3
|
-
/* empty css
|
3
|
+
/* empty css */
|
4
4
|
/* empty css */
|
5
5
|
import _sfc_main$1 from "../../../../../components/Dropdown/Dropdown.vue.js";
|
6
6
|
import _sfc_main$6 from "../../../../../components/Menu/Menu.vue.js";
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
3
3
|
const vue = require("vue");
|
4
4
|
;/* empty css */
|
5
5
|
require("../../../../components/Menu/MenuItem.vue.cjs");
|
6
|
-
;/* empty css
|
6
|
+
;/* empty css */
|
7
7
|
const vueRouter = require("vue-router");
|
8
8
|
require("../../../auth/views/store/auth.cjs");
|
9
9
|
require("../../../organizations/store/organizations.cjs");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref, onMounted, openBlock, createElementBlock } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
import "../../../../components/Menu/MenuItem.vue.js";
|
4
|
-
/* empty css
|
4
|
+
/* empty css */
|
5
5
|
import { useRoute, useRouter } from "vue-router";
|
6
6
|
import "../../../auth/views/store/auth.js";
|
7
7
|
import "../../../organizations/store/organizations.js";
|
package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
3
3
|
const vue = require("vue");
|
4
4
|
const Menu = require("../../../../components/Menu/Menu.vue.cjs");
|
5
5
|
const MenuItem = require("../../../../components/Menu/MenuItem.vue.cjs");
|
6
|
-
;/* empty css
|
6
|
+
;/* empty css */
|
7
7
|
const IconProducts = require("../../../icons/entities/IconProducts.vue.cjs");
|
8
8
|
const IconEvents = require("../../../icons/entities/IconEvents.vue.cjs");
|
9
9
|
const IconGroups = require("../../../icons/entities/IconGroups.vue.cjs");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref, onMounted, openBlock, createElementBlock, createVNode, withCtx, unref, createElementVNode } from "vue";
|
2
2
|
import _sfc_main$1 from "../../../../components/Menu/Menu.vue.js";
|
3
3
|
import _sfc_main$2 from "../../../../components/Menu/MenuItem.vue.js";
|
4
|
-
/* empty css
|
4
|
+
/* empty css */
|
5
5
|
import _sfc_main$4 from "../../../icons/entities/IconProducts.vue.js";
|
6
6
|
import _sfc_main$8 from "../../../icons/entities/IconEvents.vue.js";
|
7
7
|
import _sfc_main$3 from "../../../icons/entities/IconGroups.vue.js";
|