@ozdao/prometheus-framework 0.2.333 → 0.2.335
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Media-Blf4CCU1.js +1 -0
- package/dist/Media-CO6Feikc.mjs +111 -0
- package/dist/main-Bvo-0kgY.mjs +12814 -0
- package/dist/main-bXfbF_QA.js +91 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/qrcode/lib/core/utils.cjs +1 -1
- package/dist/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/qrcode/lib/renderer/utils.cjs +1 -1
- package/dist/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Menu/Menu.vue2.js +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js.map +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.js +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Card.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Card.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- 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.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.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 +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/EventsHot.vue.cjs +1 -2
- package/dist/prometheus-framework/src/modules/events/components/sections/EventsHot.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/EventsHot.vue.js +1 -2
- package/dist/prometheus-framework/src/modules/events/components/sections/EventsHot.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -2
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +1 -2
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js.map +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 +5 -5
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.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/elements/ButtonDate.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.js.map +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/globals/views/components/partials/Header.vue.cjs +1 -5
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -5
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconCalendar.vue2.cjs +37 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconCalendar.vue2.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconCalendar.vue2.js +37 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconCalendar.vue2.js.map +1 -0
- package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +0 -2
- package/dist/prometheus-framework/src/modules/icons/icons.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.js +50 -52
- package/dist/prometheus-framework/src/modules/icons/icons.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +5 -6
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +5 -6
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.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/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +1168 -1178
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +1168 -1178
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +2 -3
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -3
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js.map +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/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +2 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +2 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -3
- 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 +2 -3
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- 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/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/package.json +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +1 -1
- package/src/modules/events/components/sections/HeroEvent.vue +0 -4
- package/src/modules/globals/views/components/elements/ButtonDate.vue +2 -2
- package/src/modules/globals/views/components/partials/Header.vue +1 -1
- package/src/modules/icons/icons.client.js +0 -2
package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs
CHANGED
@@ -4,8 +4,8 @@ const vue = require("vue");
|
|
4
4
|
const IconEdit = require("../../../../icons/navigation/IconEdit.vue.cjs");
|
5
5
|
const IconAdd = require("../../../../icons/navigation/IconAdd.vue.cjs");
|
6
6
|
;/* empty css */
|
7
|
-
;/* empty css
|
8
|
-
;/* empty css
|
7
|
+
;/* empty css */
|
8
|
+
;/* empty css */
|
9
9
|
const vueRouter = require("vue-router");
|
10
10
|
;/* empty css */
|
11
11
|
const _hoisted_1 = { class: "flex flex-nowrap gap-thin card-page-title" };
|
@@ -2,8 +2,8 @@ import { ref, resolveComponent, createElementBlock, openBlock, createElementVNod
|
|
2
2
|
import _sfc_main$1 from "../../../../icons/navigation/IconEdit.vue.js";
|
3
3
|
import _sfc_main$2 from "../../../../icons/navigation/IconAdd.vue.js";
|
4
4
|
/* empty css */
|
5
|
-
/* empty css
|
6
|
-
/* empty css
|
5
|
+
/* empty css */
|
6
|
+
/* empty css */
|
7
7
|
import { useRouter } from "vue-router";
|
8
8
|
/* empty css */
|
9
9
|
const _hoisted_1 = { class: "flex flex-nowrap gap-thin card-page-title" };
|
@@ -4,8 +4,8 @@ const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
5
5
|
const mixins = require("../../../../globals/views/mixins/mixins.cjs");
|
6
6
|
const pages = require("../../store/pages.cjs");
|
7
|
-
const Button = require("../../../../../components/Button/Button.
|
8
|
-
;/* empty css
|
7
|
+
const Button = require("../../../../../components/Button/Button.vue.cjs");
|
8
|
+
;/* empty css */
|
9
9
|
;/* empty css */
|
10
10
|
;/* empty css */
|
11
11
|
const Constructor = require("../../../../constructor/components/sections/Constructor.vue.cjs");
|
@@ -2,8 +2,8 @@ import { ref, onMounted, createElementBlock, createCommentVNode, openBlock, crea
|
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
3
3
|
import { useGlobalMixins } from "../../../../globals/views/mixins/mixins.js";
|
4
4
|
import { actions, state } from "../../store/pages.js";
|
5
|
-
import _sfc_main$2 from "../../../../../components/Button/Button.
|
6
|
-
/* empty css
|
5
|
+
import _sfc_main$2 from "../../../../../components/Button/Button.vue.js";
|
6
|
+
/* empty css */
|
7
7
|
/* empty css */
|
8
8
|
/* empty css */
|
9
9
|
import _sfc_main$1 from "../../../../constructor/components/sections/Constructor.vue.js";
|
package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs
CHANGED
@@ -3,8 +3,8 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
3
3
|
const vue = require("vue");
|
4
4
|
const vueRouter = require("vue-router");
|
5
5
|
const Block = require("../../../../../components/Block/Block.vue.cjs");
|
6
|
-
const Popup = require("../../../../../components/Popup/Popup.
|
7
|
-
const Button = require("../../../../../components/Button/Button.
|
6
|
+
const Popup = require("../../../../../components/Popup/Popup.vue2.cjs");
|
7
|
+
const Button = require("../../../../../components/Button/Button.vue.cjs");
|
8
8
|
const Constructor = require("../../../../constructor/components/sections/Constructor.vue.cjs");
|
9
9
|
const CardPage = require("../blocks/CardPage.vue.cjs");
|
10
10
|
const pages = require("../../store/pages.cjs");
|
package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { computed, ref, onMounted, createBlock, createCommentVNode, openBlock, withCtx, createElementBlock, createVNode, Fragment, renderList, createElementVNode, createTextVNode } from "vue";
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
3
3
|
import _sfc_main$1 from "../../../../../components/Block/Block.vue.js";
|
4
|
-
import _sfc_main$3 from "../../../../../components/Popup/Popup.
|
5
|
-
import _sfc_main$5 from "../../../../../components/Button/Button.
|
4
|
+
import _sfc_main$3 from "../../../../../components/Popup/Popup.vue2.js";
|
5
|
+
import _sfc_main$5 from "../../../../../components/Button/Button.vue.js";
|
6
6
|
import _sfc_main$4 from "../../../../constructor/components/sections/Constructor.vue.js";
|
7
7
|
import _sfc_main$2 from "../blocks/CardPage.vue.js";
|
8
8
|
import { actions } from "../../store/pages.js";
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
|
-
const Field = require("../../../../components/Field/Field.
|
4
|
+
const Field = require("../../../../components/Field/Field.vue.cjs");
|
5
5
|
const Select = require("../../../../components/Select/Select.vue2.cjs");
|
6
|
-
;/* empty css
|
7
|
-
;/* empty css */
|
6
|
+
;/* empty css */
|
8
7
|
const IconAdd = require("../../../icons/navigation/IconAdd.vue.cjs");
|
9
8
|
const IconDelete = require("../../../icons/navigation/IconDelete.vue.cjs");
|
10
9
|
const _hoisted_1 = { class: "gap-thin" };
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CardPosition.vue.cjs","sources":["../../../../../../../src/modules/products/components/blocks/CardPosition.vue"],"sourcesContent":["<template>\n\t<div class=\"gap-thin\">\n\t\t<div class=\"gap-thin mn-b-thin flex-nowrap flex\">\n\t\t\t<div\n\t\t\t\tclass=\"bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t>\n\t\t\t\t{{productSelected.name || productSelected._id.name}}\n\t\t\t</div>\n\t\t\t<!-- <SelectMulti\n\t\t\t\tv-model=\"productSelected\"\n\t\t\t\t:options=\"products\"\n\t\t\t\tlabel=\"name\"\n\t\t\t\t:multiple=\"false\"\n\t\t\t\t:taggable=\"false\"\n\t\t\t\tplaceholder=\"Select a product\"\n\t\t\t\tclass=\"bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t/> -->\n\t\t\t<Field \n\t\t\t\tv-if=\"!showPrice\"\n\t\t\t\tv-model:field=\"productQuantity\" \n\t\t\t\ttype=\"number\" \n\t\t\t\tlabel=\"Qty\" \n\t\t\t\tclass=\"bg-white w-100 w-max-10r br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t>\n\t\t\t<Select \n\t\t\t\tv-model:select=\"productQuantityType\" \n\t\t\t\t:options=\"[\n\t\t\t\t\t'pcs',\n\t\t\t\t\t'g',\n\t\t\t\t\t'ml'\n\t\t\t\t]\"\n\t\t\t\tclass=\"bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin\"\n\t\t\t/>\n\n\t\t\t</Field>\n\t\t\t<button \n\t\t\t\tv-if=\"!product\"\n\t\t\t\t:disabled=\"!isProductValid\" \n\t\t\t\t@click=\"addProduct\" \n\t\t\t\tclass=\"bg-main aspect-1x1 radius-small pd-small\"\n\t\t\t>\n\t\t\t\t<IconAdd class=\"i-semi\"/>\n\t\t\t</button>\n\n\t\t\t<button \n\t\t\t\tv-if=\"product\"\n\t\t\t\t@click=\"deleteProduct\" \n\t\t\t\tclass=\"bg-red aspect-1x1 radius-small pd-small\"\n\t\t\t>\n\t\t\t\t<IconDelete class=\"i-semi\"/>\n\t\t\t</button>\n\t\t</div>\n\t\t<div v-if=\"showPrice\" class=\"gap-thin flex-nowrap flex\">\n\t\t\t<Field \n\t\t\t\tv-model:field=\"productPrice\"\n\t\t\t\ttype=\"number\" \n\t\t\t\tlabel=\"Price\" \n\t\t\t\t:symbol=\"returnCurrency()\"\n\t\t\t\tclass=\"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t/>\n\t\t\t<Field \n\t\t\t\tv-model:field=\"productQuantity\" \n\t\t\t\ttype=\"number\" \n\t\t\t\tlabel=\"Qty\" \n\t\t\t\tclass=\"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t>\n\t\t\t<Select \n\t\t\t\tv-model:select=\"productQuantityType\" \n\t\t\t\t:options=\"[\n\t\t\t\t\t'pcs',\n\t\t\t\t\t'g',\n\t\t\t\t\t'ml'\n\t\t\t\t]\"\n\t\t\t\tclass=\"bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin\"\n\t\t\t/>\n\n\t\t\t</Field>\n\t\t</div>\n\n\t\t\n\t\t\n\t</div>\n</template>\n\n<script setup>\n\timport { ref, computed, watch } from 'vue';\n\n\timport Field from '@pf/src/components/Field/Field.vue';\n import Select from '@pf/src/components/Select/Select.vue';\n import SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue';\n\n import { IconAdd, IconDelete} from '@pf/src/modules/icons/icons.client.js';\n\n\tconst props = defineProps({\n\t product: Object,\n\t products: Array,\n\t array: Array,\n\t showPrice: {\n\t \ttype: Boolean,\n\t\t default: true\n\t }\n\t});\n\n\tconst emits = defineEmits([\n\t\t'add',\n\t\t'delete',\n\t\t'update'\n\t])\n\n\tconst productSelected = ref(null);\n\tconst productQuantity = ref(1);\n\tconst productQuantityType = ref('pcs');\n\tconst productPrice = ref(0);\n\n\tconst isProductValid = computed(() => \n productSelected.value \n && productQuantity.value > 0 \n && productPrice.value >= 0\n\t);\n\n\twatch(props.array, () => {\n\t productSelected.value = props.product\n\t\tproductQuantity.value = props.product.quantity || 1\n\t\tproductPrice.value = props.product.price\n\t\tproductQuantityType.value = props.product.type\n\t});\n\n\tif (props.product) {\n\t\tproductSelected.value = props.product\n\t\tproductQuantity.value = props.product.quantity || 1\n\t\tproductPrice.value = props.product.price\n\t\tproductQuantityType.value = props.product.type\n\t}\n\n\twatch([productSelected, productQuantity, productPrice, productQuantityType], () => {\n\t emits('update', {\n\t ...productSelected.value,\n\t price: productPrice.value,\n\t quantity: productQuantity.value || 1,\n\t type: productQuantityType.value\n\t });\n\t});\n\n\n\tfunction addProduct() {\n\t\temits('add', {\n\t\t\t...productSelected.value,\n\t\t\tprice: productPrice.value,\n\t\t\tquantity: productQuantity.value || 1,\n\t\t\ttype: productQuantityType.value\n\t });\n\t}\n\n\tfunction deleteProduct() {\n\t emits('delete', {\n\t\t\t...productSelected.value,\n\t\t\tprice: productPrice.value,\n\t\t\tquantity: productQuantity.value || 1,\n\t\t\ttype: productQuantityType.value\n\t });\n\t}\n</script>"],"names":["ref","computed","watch"],"mappings":"
|
1
|
+
{"version":3,"file":"CardPosition.vue.cjs","sources":["../../../../../../../src/modules/products/components/blocks/CardPosition.vue"],"sourcesContent":["<template>\n\t<div class=\"gap-thin\">\n\t\t<div class=\"gap-thin mn-b-thin flex-nowrap flex\">\n\t\t\t<div\n\t\t\t\tclass=\"bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t>\n\t\t\t\t{{productSelected.name || productSelected._id.name}}\n\t\t\t</div>\n\t\t\t<!-- <SelectMulti\n\t\t\t\tv-model=\"productSelected\"\n\t\t\t\t:options=\"products\"\n\t\t\t\tlabel=\"name\"\n\t\t\t\t:multiple=\"false\"\n\t\t\t\t:taggable=\"false\"\n\t\t\t\tplaceholder=\"Select a product\"\n\t\t\t\tclass=\"bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t/> -->\n\t\t\t<Field \n\t\t\t\tv-if=\"!showPrice\"\n\t\t\t\tv-model:field=\"productQuantity\" \n\t\t\t\ttype=\"number\" \n\t\t\t\tlabel=\"Qty\" \n\t\t\t\tclass=\"bg-white w-100 w-max-10r br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t>\n\t\t\t<Select \n\t\t\t\tv-model:select=\"productQuantityType\" \n\t\t\t\t:options=\"[\n\t\t\t\t\t'pcs',\n\t\t\t\t\t'g',\n\t\t\t\t\t'ml'\n\t\t\t\t]\"\n\t\t\t\tclass=\"bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin\"\n\t\t\t/>\n\n\t\t\t</Field>\n\t\t\t<button \n\t\t\t\tv-if=\"!product\"\n\t\t\t\t:disabled=\"!isProductValid\" \n\t\t\t\t@click=\"addProduct\" \n\t\t\t\tclass=\"bg-main aspect-1x1 radius-small pd-small\"\n\t\t\t>\n\t\t\t\t<IconAdd class=\"i-semi\"/>\n\t\t\t</button>\n\n\t\t\t<button \n\t\t\t\tv-if=\"product\"\n\t\t\t\t@click=\"deleteProduct\" \n\t\t\t\tclass=\"bg-red aspect-1x1 radius-small pd-small\"\n\t\t\t>\n\t\t\t\t<IconDelete class=\"i-semi\"/>\n\t\t\t</button>\n\t\t</div>\n\t\t<div v-if=\"showPrice\" class=\"gap-thin flex-nowrap flex\">\n\t\t\t<Field \n\t\t\t\tv-model:field=\"productPrice\"\n\t\t\t\ttype=\"number\" \n\t\t\t\tlabel=\"Price\" \n\t\t\t\t:symbol=\"returnCurrency()\"\n\t\t\t\tclass=\"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t/>\n\t\t\t<Field \n\t\t\t\tv-model:field=\"productQuantity\" \n\t\t\t\ttype=\"number\" \n\t\t\t\tlabel=\"Qty\" \n\t\t\t\tclass=\"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t>\n\t\t\t<Select \n\t\t\t\tv-model:select=\"productQuantityType\" \n\t\t\t\t:options=\"[\n\t\t\t\t\t'pcs',\n\t\t\t\t\t'g',\n\t\t\t\t\t'ml'\n\t\t\t\t]\"\n\t\t\t\tclass=\"bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin\"\n\t\t\t/>\n\n\t\t\t</Field>\n\t\t</div>\n\n\t\t\n\t\t\n\t</div>\n</template>\n\n<script setup>\n\timport { ref, computed, watch } from 'vue';\n\n\timport Field from '@pf/src/components/Field/Field.vue';\n import Select from '@pf/src/components/Select/Select.vue';\n import SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue';\n\n import { IconAdd, IconDelete} from '@pf/src/modules/icons/icons.client.js';\n\n\tconst props = defineProps({\n\t product: Object,\n\t products: Array,\n\t array: Array,\n\t showPrice: {\n\t \ttype: Boolean,\n\t\t default: true\n\t }\n\t});\n\n\tconst emits = defineEmits([\n\t\t'add',\n\t\t'delete',\n\t\t'update'\n\t])\n\n\tconst productSelected = ref(null);\n\tconst productQuantity = ref(1);\n\tconst productQuantityType = ref('pcs');\n\tconst productPrice = ref(0);\n\n\tconst isProductValid = computed(() => \n productSelected.value \n && productQuantity.value > 0 \n && productPrice.value >= 0\n\t);\n\n\twatch(props.array, () => {\n\t productSelected.value = props.product\n\t\tproductQuantity.value = props.product.quantity || 1\n\t\tproductPrice.value = props.product.price\n\t\tproductQuantityType.value = props.product.type\n\t});\n\n\tif (props.product) {\n\t\tproductSelected.value = props.product\n\t\tproductQuantity.value = props.product.quantity || 1\n\t\tproductPrice.value = props.product.price\n\t\tproductQuantityType.value = props.product.type\n\t}\n\n\twatch([productSelected, productQuantity, productPrice, productQuantityType], () => {\n\t emits('update', {\n\t ...productSelected.value,\n\t price: productPrice.value,\n\t quantity: productQuantity.value || 1,\n\t type: productQuantityType.value\n\t });\n\t});\n\n\n\tfunction addProduct() {\n\t\temits('add', {\n\t\t\t...productSelected.value,\n\t\t\tprice: productPrice.value,\n\t\t\tquantity: productQuantity.value || 1,\n\t\t\ttype: productQuantityType.value\n\t });\n\t}\n\n\tfunction deleteProduct() {\n\t emits('delete', {\n\t\t\t...productSelected.value,\n\t\t\tprice: productPrice.value,\n\t\t\tquantity: productQuantity.value || 1,\n\t\t\ttype: productQuantityType.value\n\t });\n\t}\n</script>"],"names":["ref","computed","watch"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6FC,UAAM,QAAQ;AAUd,UAAM,QAAQ;AAMd,UAAM,kBAAkBA,IAAG,IAAC,IAAI;AAChC,UAAM,kBAAkBA,IAAG,IAAC,CAAC;AAC7B,UAAM,sBAAsBA,IAAG,IAAC,KAAK;AACrC,UAAM,eAAeA,IAAG,IAAC,CAAC;AAE1B,UAAM,iBAAiBC,IAAAA;AAAAA,MAAS,MAC7B,gBAAgB,SACb,gBAAgB,QAAQ,KACxB,aAAa,SAAS;AAAA,IAC3B;AAEDC,cAAM,MAAM,OAAO,MAAM;AACvB,sBAAgB,QAAQ,MAAM;AAC/B,sBAAgB,QAAQ,MAAM,QAAQ,YAAY;AAClD,mBAAa,QAAQ,MAAM,QAAQ;AACnC,0BAAoB,QAAQ,MAAM,QAAQ;AAAA,IAC5C,CAAE;AAED,QAAI,MAAM,SAAS;AAClB,sBAAgB,QAAQ,MAAM;AAC9B,sBAAgB,QAAQ,MAAM,QAAQ,YAAY;AAClD,mBAAa,QAAQ,MAAM,QAAQ;AACnC,0BAAoB,QAAQ,MAAM,QAAQ;AAAA,IAC5C;AAECA,QAAK,MAAC,CAAC,iBAAiB,iBAAiB,cAAc,mBAAmB,GAAG,MAAM;AACjF,YAAM,UAAU;AAAA,QACd,GAAG,gBAAgB;AAAA,QACnB,OAAO,aAAa;AAAA,QACpB,UAAU,gBAAgB,SAAS;AAAA,QACnC,MAAM,oBAAoB;AAAA,MAC/B,CAAI;AAAA,IACJ,CAAE;AAGD,aAAS,aAAa;AACrB,YAAM,OAAO;AAAA,QACZ,GAAG,gBAAgB;AAAA,QACnB,OAAO,aAAa;AAAA,QACpB,UAAU,gBAAgB,SAAS;AAAA,QACnC,MAAM,oBAAoB;AAAA,MAC7B,CAAI;AAAA,IACJ;AAEC,aAAS,gBAAgB;AACvB,YAAM,UAAU;AAAA,QAChB,GAAG,gBAAgB;AAAA,QACnB,OAAO,aAAa;AAAA,QACpB,UAAU,gBAAgB,SAAS;AAAA,QACnC,MAAM,oBAAoB;AAAA,MAC7B,CAAI;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
import { ref, computed, watch, createElementBlock, openBlock, createElementVNode, createCommentVNode, createBlock, toDisplayString, withCtx, createVNode, unref } from "vue";
|
2
|
-
import Field from "../../../../components/Field/Field.
|
2
|
+
import Field from "../../../../components/Field/Field.vue.js";
|
3
3
|
import Select from "../../../../components/Select/Select.vue2.js";
|
4
|
-
/* empty css
|
5
|
-
/* empty css */
|
4
|
+
/* empty css */
|
6
5
|
import _sfc_main$1 from "../../../icons/navigation/IconAdd.vue.js";
|
7
6
|
import _sfc_main$2 from "../../../icons/navigation/IconDelete.vue.js";
|
8
7
|
const _hoisted_1 = { class: "gap-thin" };
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CardPosition.vue.js","sources":["../../../../../../../src/modules/products/components/blocks/CardPosition.vue"],"sourcesContent":["<template>\n\t<div class=\"gap-thin\">\n\t\t<div class=\"gap-thin mn-b-thin flex-nowrap flex\">\n\t\t\t<div\n\t\t\t\tclass=\"bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t>\n\t\t\t\t{{productSelected.name || productSelected._id.name}}\n\t\t\t</div>\n\t\t\t<!-- <SelectMulti\n\t\t\t\tv-model=\"productSelected\"\n\t\t\t\t:options=\"products\"\n\t\t\t\tlabel=\"name\"\n\t\t\t\t:multiple=\"false\"\n\t\t\t\t:taggable=\"false\"\n\t\t\t\tplaceholder=\"Select a product\"\n\t\t\t\tclass=\"bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t/> -->\n\t\t\t<Field \n\t\t\t\tv-if=\"!showPrice\"\n\t\t\t\tv-model:field=\"productQuantity\" \n\t\t\t\ttype=\"number\" \n\t\t\t\tlabel=\"Qty\" \n\t\t\t\tclass=\"bg-white w-100 w-max-10r br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t>\n\t\t\t<Select \n\t\t\t\tv-model:select=\"productQuantityType\" \n\t\t\t\t:options=\"[\n\t\t\t\t\t'pcs',\n\t\t\t\t\t'g',\n\t\t\t\t\t'ml'\n\t\t\t\t]\"\n\t\t\t\tclass=\"bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin\"\n\t\t\t/>\n\n\t\t\t</Field>\n\t\t\t<button \n\t\t\t\tv-if=\"!product\"\n\t\t\t\t:disabled=\"!isProductValid\" \n\t\t\t\t@click=\"addProduct\" \n\t\t\t\tclass=\"bg-main aspect-1x1 radius-small pd-small\"\n\t\t\t>\n\t\t\t\t<IconAdd class=\"i-semi\"/>\n\t\t\t</button>\n\n\t\t\t<button \n\t\t\t\tv-if=\"product\"\n\t\t\t\t@click=\"deleteProduct\" \n\t\t\t\tclass=\"bg-red aspect-1x1 radius-small pd-small\"\n\t\t\t>\n\t\t\t\t<IconDelete class=\"i-semi\"/>\n\t\t\t</button>\n\t\t</div>\n\t\t<div v-if=\"showPrice\" class=\"gap-thin flex-nowrap flex\">\n\t\t\t<Field \n\t\t\t\tv-model:field=\"productPrice\"\n\t\t\t\ttype=\"number\" \n\t\t\t\tlabel=\"Price\" \n\t\t\t\t:symbol=\"returnCurrency()\"\n\t\t\t\tclass=\"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t/>\n\t\t\t<Field \n\t\t\t\tv-model:field=\"productQuantity\" \n\t\t\t\ttype=\"number\" \n\t\t\t\tlabel=\"Qty\" \n\t\t\t\tclass=\"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t>\n\t\t\t<Select \n\t\t\t\tv-model:select=\"productQuantityType\" \n\t\t\t\t:options=\"[\n\t\t\t\t\t'pcs',\n\t\t\t\t\t'g',\n\t\t\t\t\t'ml'\n\t\t\t\t]\"\n\t\t\t\tclass=\"bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin\"\n\t\t\t/>\n\n\t\t\t</Field>\n\t\t</div>\n\n\t\t\n\t\t\n\t</div>\n</template>\n\n<script setup>\n\timport { ref, computed, watch } from 'vue';\n\n\timport Field from '@pf/src/components/Field/Field.vue';\n import Select from '@pf/src/components/Select/Select.vue';\n import SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue';\n\n import { IconAdd, IconDelete} from '@pf/src/modules/icons/icons.client.js';\n\n\tconst props = defineProps({\n\t product: Object,\n\t products: Array,\n\t array: Array,\n\t showPrice: {\n\t \ttype: Boolean,\n\t\t default: true\n\t }\n\t});\n\n\tconst emits = defineEmits([\n\t\t'add',\n\t\t'delete',\n\t\t'update'\n\t])\n\n\tconst productSelected = ref(null);\n\tconst productQuantity = ref(1);\n\tconst productQuantityType = ref('pcs');\n\tconst productPrice = ref(0);\n\n\tconst isProductValid = computed(() => \n productSelected.value \n && productQuantity.value > 0 \n && productPrice.value >= 0\n\t);\n\n\twatch(props.array, () => {\n\t productSelected.value = props.product\n\t\tproductQuantity.value = props.product.quantity || 1\n\t\tproductPrice.value = props.product.price\n\t\tproductQuantityType.value = props.product.type\n\t});\n\n\tif (props.product) {\n\t\tproductSelected.value = props.product\n\t\tproductQuantity.value = props.product.quantity || 1\n\t\tproductPrice.value = props.product.price\n\t\tproductQuantityType.value = props.product.type\n\t}\n\n\twatch([productSelected, productQuantity, productPrice, productQuantityType], () => {\n\t emits('update', {\n\t ...productSelected.value,\n\t price: productPrice.value,\n\t quantity: productQuantity.value || 1,\n\t type: productQuantityType.value\n\t });\n\t});\n\n\n\tfunction addProduct() {\n\t\temits('add', {\n\t\t\t...productSelected.value,\n\t\t\tprice: productPrice.value,\n\t\t\tquantity: productQuantity.value || 1,\n\t\t\ttype: productQuantityType.value\n\t });\n\t}\n\n\tfunction deleteProduct() {\n\t emits('delete', {\n\t\t\t...productSelected.value,\n\t\t\tprice: productPrice.value,\n\t\t\tquantity: productQuantity.value || 1,\n\t\t\ttype: productQuantityType.value\n\t });\n\t}\n</script>"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"CardPosition.vue.js","sources":["../../../../../../../src/modules/products/components/blocks/CardPosition.vue"],"sourcesContent":["<template>\n\t<div class=\"gap-thin\">\n\t\t<div class=\"gap-thin mn-b-thin flex-nowrap flex\">\n\t\t\t<div\n\t\t\t\tclass=\"bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t>\n\t\t\t\t{{productSelected.name || productSelected._id.name}}\n\t\t\t</div>\n\t\t\t<!-- <SelectMulti\n\t\t\t\tv-model=\"productSelected\"\n\t\t\t\t:options=\"products\"\n\t\t\t\tlabel=\"name\"\n\t\t\t\t:multiple=\"false\"\n\t\t\t\t:taggable=\"false\"\n\t\t\t\tplaceholder=\"Select a product\"\n\t\t\t\tclass=\"bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t/> -->\n\t\t\t<Field \n\t\t\t\tv-if=\"!showPrice\"\n\t\t\t\tv-model:field=\"productQuantity\" \n\t\t\t\ttype=\"number\" \n\t\t\t\tlabel=\"Qty\" \n\t\t\t\tclass=\"bg-white w-100 w-max-10r br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t>\n\t\t\t<Select \n\t\t\t\tv-model:select=\"productQuantityType\" \n\t\t\t\t:options=\"[\n\t\t\t\t\t'pcs',\n\t\t\t\t\t'g',\n\t\t\t\t\t'ml'\n\t\t\t\t]\"\n\t\t\t\tclass=\"bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin\"\n\t\t\t/>\n\n\t\t\t</Field>\n\t\t\t<button \n\t\t\t\tv-if=\"!product\"\n\t\t\t\t:disabled=\"!isProductValid\" \n\t\t\t\t@click=\"addProduct\" \n\t\t\t\tclass=\"bg-main aspect-1x1 radius-small pd-small\"\n\t\t\t>\n\t\t\t\t<IconAdd class=\"i-semi\"/>\n\t\t\t</button>\n\n\t\t\t<button \n\t\t\t\tv-if=\"product\"\n\t\t\t\t@click=\"deleteProduct\" \n\t\t\t\tclass=\"bg-red aspect-1x1 radius-small pd-small\"\n\t\t\t>\n\t\t\t\t<IconDelete class=\"i-semi\"/>\n\t\t\t</button>\n\t\t</div>\n\t\t<div v-if=\"showPrice\" class=\"gap-thin flex-nowrap flex\">\n\t\t\t<Field \n\t\t\t\tv-model:field=\"productPrice\"\n\t\t\t\ttype=\"number\" \n\t\t\t\tlabel=\"Price\" \n\t\t\t\t:symbol=\"returnCurrency()\"\n\t\t\t\tclass=\"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t/>\n\t\t\t<Field \n\t\t\t\tv-model:field=\"productQuantity\" \n\t\t\t\ttype=\"number\" \n\t\t\t\tlabel=\"Qty\" \n\t\t\t\tclass=\"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small\" \n\t\t\t>\n\t\t\t<Select \n\t\t\t\tv-model:select=\"productQuantityType\" \n\t\t\t\t:options=\"[\n\t\t\t\t\t'pcs',\n\t\t\t\t\t'g',\n\t\t\t\t\t'ml'\n\t\t\t\t]\"\n\t\t\t\tclass=\"bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin\"\n\t\t\t/>\n\n\t\t\t</Field>\n\t\t</div>\n\n\t\t\n\t\t\n\t</div>\n</template>\n\n<script setup>\n\timport { ref, computed, watch } from 'vue';\n\n\timport Field from '@pf/src/components/Field/Field.vue';\n import Select from '@pf/src/components/Select/Select.vue';\n import SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue';\n\n import { IconAdd, IconDelete} from '@pf/src/modules/icons/icons.client.js';\n\n\tconst props = defineProps({\n\t product: Object,\n\t products: Array,\n\t array: Array,\n\t showPrice: {\n\t \ttype: Boolean,\n\t\t default: true\n\t }\n\t});\n\n\tconst emits = defineEmits([\n\t\t'add',\n\t\t'delete',\n\t\t'update'\n\t])\n\n\tconst productSelected = ref(null);\n\tconst productQuantity = ref(1);\n\tconst productQuantityType = ref('pcs');\n\tconst productPrice = ref(0);\n\n\tconst isProductValid = computed(() => \n productSelected.value \n && productQuantity.value > 0 \n && productPrice.value >= 0\n\t);\n\n\twatch(props.array, () => {\n\t productSelected.value = props.product\n\t\tproductQuantity.value = props.product.quantity || 1\n\t\tproductPrice.value = props.product.price\n\t\tproductQuantityType.value = props.product.type\n\t});\n\n\tif (props.product) {\n\t\tproductSelected.value = props.product\n\t\tproductQuantity.value = props.product.quantity || 1\n\t\tproductPrice.value = props.product.price\n\t\tproductQuantityType.value = props.product.type\n\t}\n\n\twatch([productSelected, productQuantity, productPrice, productQuantityType], () => {\n\t emits('update', {\n\t ...productSelected.value,\n\t price: productPrice.value,\n\t quantity: productQuantity.value || 1,\n\t type: productQuantityType.value\n\t });\n\t});\n\n\n\tfunction addProduct() {\n\t\temits('add', {\n\t\t\t...productSelected.value,\n\t\t\tprice: productPrice.value,\n\t\t\tquantity: productQuantity.value || 1,\n\t\t\ttype: productQuantityType.value\n\t });\n\t}\n\n\tfunction deleteProduct() {\n\t emits('delete', {\n\t\t\t...productSelected.value,\n\t\t\tprice: productPrice.value,\n\t\t\tquantity: productQuantity.value || 1,\n\t\t\ttype: productQuantityType.value\n\t });\n\t}\n</script>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6FC,UAAM,QAAQ;AAUd,UAAM,QAAQ;AAMd,UAAM,kBAAkB,IAAI,IAAI;AAChC,UAAM,kBAAkB,IAAI,CAAC;AAC7B,UAAM,sBAAsB,IAAI,KAAK;AACrC,UAAM,eAAe,IAAI,CAAC;AAE1B,UAAM,iBAAiB;AAAA,MAAS,MAC7B,gBAAgB,SACb,gBAAgB,QAAQ,KACxB,aAAa,SAAS;AAAA,IAC3B;AAED,UAAM,MAAM,OAAO,MAAM;AACvB,sBAAgB,QAAQ,MAAM;AAC/B,sBAAgB,QAAQ,MAAM,QAAQ,YAAY;AAClD,mBAAa,QAAQ,MAAM,QAAQ;AACnC,0BAAoB,QAAQ,MAAM,QAAQ;AAAA,IAC5C,CAAE;AAED,QAAI,MAAM,SAAS;AAClB,sBAAgB,QAAQ,MAAM;AAC9B,sBAAgB,QAAQ,MAAM,QAAQ,YAAY;AAClD,mBAAa,QAAQ,MAAM,QAAQ;AACnC,0BAAoB,QAAQ,MAAM,QAAQ;AAAA,IAC5C;AAEC,UAAM,CAAC,iBAAiB,iBAAiB,cAAc,mBAAmB,GAAG,MAAM;AACjF,YAAM,UAAU;AAAA,QACd,GAAG,gBAAgB;AAAA,QACnB,OAAO,aAAa;AAAA,QACpB,UAAU,gBAAgB,SAAS;AAAA,QACnC,MAAM,oBAAoB;AAAA,MAC/B,CAAI;AAAA,IACJ,CAAE;AAGD,aAAS,aAAa;AACrB,YAAM,OAAO;AAAA,QACZ,GAAG,gBAAgB;AAAA,QACnB,OAAO,aAAa;AAAA,QACpB,UAAU,gBAAgB,SAAS;AAAA,QACnC,MAAM,oBAAoB;AAAA,MAC7B,CAAI;AAAA,IACJ;AAEC,aAAS,gBAAgB;AACvB,YAAM,UAAU;AAAA,QAChB,GAAG,gBAAgB;AAAA,QACnB,OAAO,aAAa;AAAA,QACpB,UAAU,gBAAgB,SAAS;AAAA,QACnC,MAAM,oBAAoB;AAAA,MAC7B,CAAI;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs
CHANGED
@@ -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 Popup = require("../../../../components/Popup/Popup.
|
4
|
+
const Popup = require("../../../../components/Popup/Popup.vue2.cjs");
|
5
5
|
const PhotoViewer = require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs");
|
6
6
|
;/* empty css */
|
7
7
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref, createElementBlock, openBlock, createElementVNode, createVNode, Fragment, renderList, withCtx } from "vue";
|
2
|
-
import _sfc_main$1 from "../../../../components/Popup/Popup.
|
2
|
+
import _sfc_main$1 from "../../../../components/Popup/Popup.vue2.js";
|
3
3
|
import _sfc_main$2 from "../../../../components/PhotoViewer/PhotoViewer.vue.js";
|
4
4
|
/* empty css */
|
5
5
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.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 vueRouter = require("vue-router");
|
5
|
-
const Field = require("../../../../components/Field/Field.
|
5
|
+
const Field = require("../../../../components/Field/Field.vue.cjs");
|
6
6
|
const leftovers = require("../../store/leftovers.cjs");
|
7
7
|
;/* empty css */
|
8
8
|
const _hoisted_1 = { class: "flex-column flex-wrap block" };
|
package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createElementBlock, openBlock, createElementVNode, createCommentVNode, Fragment, renderList, createVNode, toDisplayString } from "vue";
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
3
|
-
import Field from "../../../../components/Field/Field.
|
3
|
+
import Field from "../../../../components/Field/Field.vue.js";
|
4
4
|
import { actions } from "../../store/leftovers.js";
|
5
5
|
/* empty css */
|
6
6
|
const _hoisted_1 = { class: "flex-column flex-wrap block" };
|
package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.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 vueRouter = require("vue-router");
|
5
|
-
;/* empty css
|
5
|
+
;/* empty css */
|
6
6
|
const CardPosition = require("./CardPosition.vue.cjs");
|
7
7
|
const leftovers = require("../../store/leftovers.cjs");
|
8
8
|
;/* empty css */
|
package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createElementBlock, openBlock, createElementVNode, createCommentVNode, Fragment, renderList, createVNode, toDisplayString } from "vue";
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
3
|
-
/* empty css
|
3
|
+
/* empty css */
|
4
4
|
import _sfc_main$1 from "./CardPosition.vue.js";
|
5
5
|
import { actions } from "../../store/leftovers.js";
|
6
6
|
/* empty css */
|
@@ -5,14 +5,13 @@ const vueRouter = require("vue-router");
|
|
5
5
|
const globals = require("../../../globals/views/store/globals.cjs");
|
6
6
|
const auth = require("../../../auth/views/store/auth.cjs");
|
7
7
|
const categories = require("../../store/categories.cjs");
|
8
|
-
const Button = require("../../../../components/Button/Button.
|
8
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
9
9
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
10
10
|
;/* empty css */
|
11
11
|
;/* empty css */
|
12
12
|
;/* empty css */
|
13
|
-
;/* empty css
|
13
|
+
;/* empty css */
|
14
14
|
;/* empty css */
|
15
|
-
;/* empty css */
|
16
15
|
;/* empty css */
|
17
16
|
;/* empty css */
|
18
17
|
const CategoriesTree = require("../sections/CategoriesTree.vue.cjs");
|
package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Categories.vue.cjs","sources":["../../../../../../../src/modules/products/components/pages/Categories.vue"],"sourcesContent":["<template>\n <div class=\"pd-thin bg-white\">\n <Block v-if=\"!MOBILE_APP\" \n class=\"radius-big mn-b-thin flex-nowrap flex-v-center flex\"\n >\n <h2 class=\"mn-r-auto\">\n Product Categories\n </h2>\n\n <router-link \n :to=\"{\n name: 'Category Add', \n params: { \n _id: $route.params._id\n } \n }\"\n class=\"mn-r-medium uppercase t-medium pd-small radius-big bg-white nav-link\"\n >\n Add category\n </router-link>\n\n <Button \n @click=\"updateCategoriesOrder\" \n class=\"pd-small radius-big bg-black t-white uppercase t-medium\"\n >\n Change Order\n </Button>\n </Block>\n <!-- <Feed\n :states=\"{\n empty: {\n title: 'No Events Found',\n description: 'Currently, there are no events available.'\n }\n }\"\n :store=\"{\n read: (options) => categories.actions.read(options),\n state: categories.state\n }\"\n :options=\"{\n user: auth.state.user._id,\n rootOnly: true,\n limit: 10\n }\"\n v-slot=\"{ \n items \n }\"\n > -->\n <CategoryList \n v-if=\"categories.state.all\" \n :items=\"categories.state.all\" \n :state=\"categories.state.all\" \n @update=\"updateCategoriesOrder\" \n />\n\n <!-- <VueDraggableNext \n class=\"dragArea list-group w-full\" \n :list=\"items\" \n item-key=\"order\" \n @end=\"updateOrder\"\n >\n <CardCategory \n v-for=\"(category,index) in items\"\n :key=\"category.id\"\n :category=\"category\" \n @delete=\"deleteCategory\"\n class=\"pd-medium bg-light radius-medium mn-b-thin\"\n />\n </VueDraggableNext> -->\n <!-- </Feed> -->\n </div>\n</template>\n\n<script setup>\n import { onMounted, onUnmounted, computed } from 'vue';\n import { VueDraggableNext } from 'vue-draggable-next';\n\n import { useRoute, useRouter } from 'vue-router';\n\n import * as globals from '@pf/src/modules/globals/views/store/globals';\n import * as auth from '@pf/src/modules/auth/views/store/auth'; \n import * as categories from '@pf/src/modules/products/store/categories'; \n\n const route = useRoute();\n const router = useRouter();\n\n import Button from \"@pf/src/components/Button/Button.vue\";\n import Block from '@pf/src/components/Block/Block.vue';\n import Feed from '@pf/src/components/Feed/Feed.vue'\n\n import CardCategory from '@pf/src/modules/products/components/blocks/CardCategory.vue';\n import CategoryList from '@pf/src/modules/products/components/sections/CategoriesTree.vue';\n\n import IconPlus from '@pf/src/modules/icons/navigation/IconPlus.vue'\n\n globals.state.navigation_bar.actions = [{\n component: IconPlus,\n props: {\n fill: \"rgb(var(--main))\" \n },\n condition: () => auth.state.user && auth.state.user._id,\n action: () => route.params._id ? router.push({ name: 'Category Add', params: { _id: route.params._id} }) : router.push({ name: 'Category Add' })\n }],\n\n onUnmounted(() => {\n globals.state.navigation_bar.actions = [];\n });\n\ncategories.state.all = await categories.actions.read({\n user: auth.state.user._id,\n rootOnly: true,\n limit: 10\n })\n onMounted(async () => {\n \n });\n\n const mappedCategories = computed(() => {\n const recursiveMap = (data) => {\n return data.map(item => ({\n // id: item._id, \n parent: item.parent,\n _id: item._id,\n order: item.order,\n name: item.name, \n children: item.children ? recursiveMap(item.children) : []\n }));\n };\n \n return recursiveMap(categories.state.all);\n });\n\n function flattenCategoryTree(categories) {\n let flatCategories = [];\n \n function flatten(category) {\n const { children, ...categoryWithoutChildren } = category;\n flatCategories.push(categoryWithoutChildren);\n \n if (children && Array.isArray(children)) {\n children.forEach(child => flatten(child));\n }\n }\n \n categories.forEach(category => flatten(category));\n return flatCategories;\n }\n\n // Обновленная функция для обновления порядка категорий\n async function updateCategoriesOrder(category) {\n try {\n // Получаем все категории и преобразуем их в плоский массив\n const allCategories = categories.state.all;\n const flattenedCategories = flattenCategoryTree(allCategories);\n \n // Обновляем порядок для всех категорий\n console.log('flated', flattenedCategories)\n await categories.actions.update(flattenedCategories);\n \n console.log('Categories order updated successfully');\n } catch (error) {\n console.error('Error updating categories order:', error);\n throw error;\n }\n }\n\n async function deleteCategory(category) {\n // Запрашиваем подтверждение у пользователя\n const isConfirmed = confirm(`Are you sure you want to delete the category \"${category.name}\"?`);\n \n // Если пользователь подтвердил удаление, продолжаем процесс\n if (isConfirmed) {\n await categories.actions.deleteCategory(category.url);\n } else {\n alert('Category deletion cancelled'); \n }\n }\n\n</script>\n\n<style lang=\"scss\">\n</style>\n"],"names":["useRoute","useRouter","globals.state","IconPlus","auth.state","onUnmounted","categories.state","_withAsyncContext","categories.actions","onMounted","computed","categories"],"mappings":"
|
1
|
+
{"version":3,"file":"Categories.vue.cjs","sources":["../../../../../../../src/modules/products/components/pages/Categories.vue"],"sourcesContent":["<template>\n <div class=\"pd-thin bg-white\">\n <Block v-if=\"!MOBILE_APP\" \n class=\"radius-big mn-b-thin flex-nowrap flex-v-center flex\"\n >\n <h2 class=\"mn-r-auto\">\n Product Categories\n </h2>\n\n <router-link \n :to=\"{\n name: 'Category Add', \n params: { \n _id: $route.params._id\n } \n }\"\n class=\"mn-r-medium uppercase t-medium pd-small radius-big bg-white nav-link\"\n >\n Add category\n </router-link>\n\n <Button \n @click=\"updateCategoriesOrder\" \n class=\"pd-small radius-big bg-black t-white uppercase t-medium\"\n >\n Change Order\n </Button>\n </Block>\n <!-- <Feed\n :states=\"{\n empty: {\n title: 'No Events Found',\n description: 'Currently, there are no events available.'\n }\n }\"\n :store=\"{\n read: (options) => categories.actions.read(options),\n state: categories.state\n }\"\n :options=\"{\n user: auth.state.user._id,\n rootOnly: true,\n limit: 10\n }\"\n v-slot=\"{ \n items \n }\"\n > -->\n <CategoryList \n v-if=\"categories.state.all\" \n :items=\"categories.state.all\" \n :state=\"categories.state.all\" \n @update=\"updateCategoriesOrder\" \n />\n\n <!-- <VueDraggableNext \n class=\"dragArea list-group w-full\" \n :list=\"items\" \n item-key=\"order\" \n @end=\"updateOrder\"\n >\n <CardCategory \n v-for=\"(category,index) in items\"\n :key=\"category.id\"\n :category=\"category\" \n @delete=\"deleteCategory\"\n class=\"pd-medium bg-light radius-medium mn-b-thin\"\n />\n </VueDraggableNext> -->\n <!-- </Feed> -->\n </div>\n</template>\n\n<script setup>\n import { onMounted, onUnmounted, computed } from 'vue';\n import { VueDraggableNext } from 'vue-draggable-next';\n\n import { useRoute, useRouter } from 'vue-router';\n\n import * as globals from '@pf/src/modules/globals/views/store/globals';\n import * as auth from '@pf/src/modules/auth/views/store/auth'; \n import * as categories from '@pf/src/modules/products/store/categories'; \n\n const route = useRoute();\n const router = useRouter();\n\n import Button from \"@pf/src/components/Button/Button.vue\";\n import Block from '@pf/src/components/Block/Block.vue';\n import Feed from '@pf/src/components/Feed/Feed.vue'\n\n import CardCategory from '@pf/src/modules/products/components/blocks/CardCategory.vue';\n import CategoryList from '@pf/src/modules/products/components/sections/CategoriesTree.vue';\n\n import IconPlus from '@pf/src/modules/icons/navigation/IconPlus.vue'\n\n globals.state.navigation_bar.actions = [{\n component: IconPlus,\n props: {\n fill: \"rgb(var(--main))\" \n },\n condition: () => auth.state.user && auth.state.user._id,\n action: () => route.params._id ? router.push({ name: 'Category Add', params: { _id: route.params._id} }) : router.push({ name: 'Category Add' })\n }],\n\n onUnmounted(() => {\n globals.state.navigation_bar.actions = [];\n });\n\ncategories.state.all = await categories.actions.read({\n user: auth.state.user._id,\n rootOnly: true,\n limit: 10\n })\n onMounted(async () => {\n \n });\n\n const mappedCategories = computed(() => {\n const recursiveMap = (data) => {\n return data.map(item => ({\n // id: item._id, \n parent: item.parent,\n _id: item._id,\n order: item.order,\n name: item.name, \n children: item.children ? recursiveMap(item.children) : []\n }));\n };\n \n return recursiveMap(categories.state.all);\n });\n\n function flattenCategoryTree(categories) {\n let flatCategories = [];\n \n function flatten(category) {\n const { children, ...categoryWithoutChildren } = category;\n flatCategories.push(categoryWithoutChildren);\n \n if (children && Array.isArray(children)) {\n children.forEach(child => flatten(child));\n }\n }\n \n categories.forEach(category => flatten(category));\n return flatCategories;\n }\n\n // Обновленная функция для обновления порядка категорий\n async function updateCategoriesOrder(category) {\n try {\n // Получаем все категории и преобразуем их в плоский массив\n const allCategories = categories.state.all;\n const flattenedCategories = flattenCategoryTree(allCategories);\n \n // Обновляем порядок для всех категорий\n console.log('flated', flattenedCategories)\n await categories.actions.update(flattenedCategories);\n \n console.log('Categories order updated successfully');\n } catch (error) {\n console.error('Error updating categories order:', error);\n throw error;\n }\n }\n\n async function deleteCategory(category) {\n // Запрашиваем подтверждение у пользователя\n const isConfirmed = confirm(`Are you sure you want to delete the category \"${category.name}\"?`);\n \n // Если пользователь подтвердил удаление, продолжаем процесс\n if (isConfirmed) {\n await categories.actions.deleteCategory(category.url);\n } else {\n alert('Category deletion cancelled'); \n }\n }\n\n</script>\n\n<style lang=\"scss\">\n</style>\n"],"names":["useRoute","useRouter","globals.state","IconPlus","auth.state","onUnmounted","categories.state","_withAsyncContext","categories.actions","onMounted","computed","categories"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAmFE,UAAM,QAAQA,UAAAA,SAAU;AACxB,UAAM,SAASC,UAAAA,UAAW;AAW1BC,kBAAc,eAAe,UAAU,CAAC;AAAA,MACtC,WAAWC,SAAQ;AAAA,MACnB,OAAO;AAAA,QACL,MAAM;AAAA,MACP;AAAA,MACD,WAAW,MAAMC,KAAU,MAAC,QAAQA,KAAU,MAAC,KAAK;AAAA,MACpD,QAAQ,MAAM,MAAM,OAAO,MAAM,OAAO,KAAK,EAAE,MAAM,gBAAgB,QAAQ,EAAE,KAAK,MAAM,OAAO,IAAG,EAAG,CAAA,IAAI,OAAO,KAAK,EAAE,MAAM,eAAgB,CAAA;AAAA,IACnJ,CAAG,GAEFC,IAAAA,YAAY,MAAM;AACfH,oBAAc,eAAe,UAAU,CAAE;AAAA,IAC7C,CAAG;AAEHI,eAAAA,MAAiB,OAAY,CAAA,QAAA,SAAA,IAAAC,IAAAA,iBAAA,MAAAC,WAAkB,QAAC,KAAK;AAAA,MAC/C,MAAMJ,KAAAA,MAAW,KAAK;AAAA,MACtB,UAAU;AAAA,MACV,OAAO;AAAA,IACb,CAAK,CAAA;AACHK,QAAAA,UAAU,YAAY;AAAA,IAExB,CAAG;AAEwBC,QAAAA,SAAS,MAAM;AACvC,YAAM,eAAe,CAAC,SAAS;AAC7B,eAAO,KAAK,IAAI,WAAS;AAAA;AAAA,UAExB,QAAQ,KAAK;AAAA,UACb,KAAK,KAAK;AAAA,UACV,OAAO,KAAK;AAAA,UACZ,MAAM,KAAK;AAAA,UACX,UAAU,KAAK,WAAW,aAAa,KAAK,QAAQ,IAAI,CAAA;AAAA,QAC9D,EAAO;AAAA,MACH;AAED,aAAO,aAAaJ,WAAgB,MAAC,GAAG;AAAA,IACxC,CAAA;AAED,aAAS,oBAAoBK,aAAY;AACvC,UAAI,iBAAiB,CAAE;AAEvB,eAAS,QAAQ,UAAU;AACzB,cAAM,EAAE,UAAU,GAAG,wBAAuB,IAAK;AACjD,uBAAe,KAAK,uBAAuB;AAE3C,YAAI,YAAY,MAAM,QAAQ,QAAQ,GAAG;AACvC,mBAAS,QAAQ,WAAS,QAAQ,KAAK,CAAC;AAAA,QAChD;AAAA,MACA;AAEI,MAAAA,YAAW,QAAQ,cAAY,QAAQ,QAAQ,CAAC;AAChD,aAAO;AAAA,IACX;AAGE,mBAAe,sBAAsB,UAAU;AAC7C,UAAI;AAEF,cAAM,gBAAgBL,WAAAA,MAAiB;AACvC,cAAM,sBAAsB,oBAAoB,aAAa;AAG7D,gBAAQ,IAAI,UAAU,mBAAmB;AACzC,cAAME,WAAkB,QAAC,OAAO,mBAAmB;AAEnD,gBAAQ,IAAI,uCAAuC;AAAA,MACpD,SAAQ,OAAO;AACd,gBAAQ,MAAM,oCAAoC,KAAK;AACvD,cAAM;AAAA,MACZ;AAAA,IACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -3,14 +3,13 @@ import { useRoute, useRouter } from "vue-router";
|
|
3
3
|
import { state as state$1 } from "../../../globals/views/store/globals.js";
|
4
4
|
import { state } from "../../../auth/views/store/auth.js";
|
5
5
|
import { state as state$2, actions } from "../../store/categories.js";
|
6
|
-
import _sfc_main$3 from "../../../../components/Button/Button.
|
6
|
+
import _sfc_main$3 from "../../../../components/Button/Button.vue.js";
|
7
7
|
import _sfc_main$2 from "../../../../components/Block/Block.vue.js";
|
8
8
|
/* empty css */
|
9
9
|
/* empty css */
|
10
10
|
/* empty css */
|
11
|
-
/* empty css
|
11
|
+
/* empty css */
|
12
12
|
/* empty css */
|
13
|
-
/* empty css */
|
14
13
|
/* empty css */
|
15
14
|
/* empty css */
|
16
15
|
import _sfc_main$4 from "../sections/CategoriesTree.vue.js";
|
package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Categories.vue.js","sources":["../../../../../../../src/modules/products/components/pages/Categories.vue"],"sourcesContent":["<template>\n <div class=\"pd-thin bg-white\">\n <Block v-if=\"!MOBILE_APP\" \n class=\"radius-big mn-b-thin flex-nowrap flex-v-center flex\"\n >\n <h2 class=\"mn-r-auto\">\n Product Categories\n </h2>\n\n <router-link \n :to=\"{\n name: 'Category Add', \n params: { \n _id: $route.params._id\n } \n }\"\n class=\"mn-r-medium uppercase t-medium pd-small radius-big bg-white nav-link\"\n >\n Add category\n </router-link>\n\n <Button \n @click=\"updateCategoriesOrder\" \n class=\"pd-small radius-big bg-black t-white uppercase t-medium\"\n >\n Change Order\n </Button>\n </Block>\n <!-- <Feed\n :states=\"{\n empty: {\n title: 'No Events Found',\n description: 'Currently, there are no events available.'\n }\n }\"\n :store=\"{\n read: (options) => categories.actions.read(options),\n state: categories.state\n }\"\n :options=\"{\n user: auth.state.user._id,\n rootOnly: true,\n limit: 10\n }\"\n v-slot=\"{ \n items \n }\"\n > -->\n <CategoryList \n v-if=\"categories.state.all\" \n :items=\"categories.state.all\" \n :state=\"categories.state.all\" \n @update=\"updateCategoriesOrder\" \n />\n\n <!-- <VueDraggableNext \n class=\"dragArea list-group w-full\" \n :list=\"items\" \n item-key=\"order\" \n @end=\"updateOrder\"\n >\n <CardCategory \n v-for=\"(category,index) in items\"\n :key=\"category.id\"\n :category=\"category\" \n @delete=\"deleteCategory\"\n class=\"pd-medium bg-light radius-medium mn-b-thin\"\n />\n </VueDraggableNext> -->\n <!-- </Feed> -->\n </div>\n</template>\n\n<script setup>\n import { onMounted, onUnmounted, computed } from 'vue';\n import { VueDraggableNext } from 'vue-draggable-next';\n\n import { useRoute, useRouter } from 'vue-router';\n\n import * as globals from '@pf/src/modules/globals/views/store/globals';\n import * as auth from '@pf/src/modules/auth/views/store/auth'; \n import * as categories from '@pf/src/modules/products/store/categories'; \n\n const route = useRoute();\n const router = useRouter();\n\n import Button from \"@pf/src/components/Button/Button.vue\";\n import Block from '@pf/src/components/Block/Block.vue';\n import Feed from '@pf/src/components/Feed/Feed.vue'\n\n import CardCategory from '@pf/src/modules/products/components/blocks/CardCategory.vue';\n import CategoryList from '@pf/src/modules/products/components/sections/CategoriesTree.vue';\n\n import IconPlus from '@pf/src/modules/icons/navigation/IconPlus.vue'\n\n globals.state.navigation_bar.actions = [{\n component: IconPlus,\n props: {\n fill: \"rgb(var(--main))\" \n },\n condition: () => auth.state.user && auth.state.user._id,\n action: () => route.params._id ? router.push({ name: 'Category Add', params: { _id: route.params._id} }) : router.push({ name: 'Category Add' })\n }],\n\n onUnmounted(() => {\n globals.state.navigation_bar.actions = [];\n });\n\ncategories.state.all = await categories.actions.read({\n user: auth.state.user._id,\n rootOnly: true,\n limit: 10\n })\n onMounted(async () => {\n \n });\n\n const mappedCategories = computed(() => {\n const recursiveMap = (data) => {\n return data.map(item => ({\n // id: item._id, \n parent: item.parent,\n _id: item._id,\n order: item.order,\n name: item.name, \n children: item.children ? recursiveMap(item.children) : []\n }));\n };\n \n return recursiveMap(categories.state.all);\n });\n\n function flattenCategoryTree(categories) {\n let flatCategories = [];\n \n function flatten(category) {\n const { children, ...categoryWithoutChildren } = category;\n flatCategories.push(categoryWithoutChildren);\n \n if (children && Array.isArray(children)) {\n children.forEach(child => flatten(child));\n }\n }\n \n categories.forEach(category => flatten(category));\n return flatCategories;\n }\n\n // Обновленная функция для обновления порядка категорий\n async function updateCategoriesOrder(category) {\n try {\n // Получаем все категории и преобразуем их в плоский массив\n const allCategories = categories.state.all;\n const flattenedCategories = flattenCategoryTree(allCategories);\n \n // Обновляем порядок для всех категорий\n console.log('flated', flattenedCategories)\n await categories.actions.update(flattenedCategories);\n \n console.log('Categories order updated successfully');\n } catch (error) {\n console.error('Error updating categories order:', error);\n throw error;\n }\n }\n\n async function deleteCategory(category) {\n // Запрашиваем подтверждение у пользователя\n const isConfirmed = confirm(`Are you sure you want to delete the category \"${category.name}\"?`);\n \n // Если пользователь подтвердил удаление, продолжаем процесс\n if (isConfirmed) {\n await categories.actions.deleteCategory(category.url);\n } else {\n alert('Category deletion cancelled'); \n }\n }\n\n</script>\n\n<style lang=\"scss\">\n</style>\n"],"names":["globals.state","IconPlus","auth.state","categories.state","_withAsyncContext","categories.actions"],"mappings":"
|
1
|
+
{"version":3,"file":"Categories.vue.js","sources":["../../../../../../../src/modules/products/components/pages/Categories.vue"],"sourcesContent":["<template>\n <div class=\"pd-thin bg-white\">\n <Block v-if=\"!MOBILE_APP\" \n class=\"radius-big mn-b-thin flex-nowrap flex-v-center flex\"\n >\n <h2 class=\"mn-r-auto\">\n Product Categories\n </h2>\n\n <router-link \n :to=\"{\n name: 'Category Add', \n params: { \n _id: $route.params._id\n } \n }\"\n class=\"mn-r-medium uppercase t-medium pd-small radius-big bg-white nav-link\"\n >\n Add category\n </router-link>\n\n <Button \n @click=\"updateCategoriesOrder\" \n class=\"pd-small radius-big bg-black t-white uppercase t-medium\"\n >\n Change Order\n </Button>\n </Block>\n <!-- <Feed\n :states=\"{\n empty: {\n title: 'No Events Found',\n description: 'Currently, there are no events available.'\n }\n }\"\n :store=\"{\n read: (options) => categories.actions.read(options),\n state: categories.state\n }\"\n :options=\"{\n user: auth.state.user._id,\n rootOnly: true,\n limit: 10\n }\"\n v-slot=\"{ \n items \n }\"\n > -->\n <CategoryList \n v-if=\"categories.state.all\" \n :items=\"categories.state.all\" \n :state=\"categories.state.all\" \n @update=\"updateCategoriesOrder\" \n />\n\n <!-- <VueDraggableNext \n class=\"dragArea list-group w-full\" \n :list=\"items\" \n item-key=\"order\" \n @end=\"updateOrder\"\n >\n <CardCategory \n v-for=\"(category,index) in items\"\n :key=\"category.id\"\n :category=\"category\" \n @delete=\"deleteCategory\"\n class=\"pd-medium bg-light radius-medium mn-b-thin\"\n />\n </VueDraggableNext> -->\n <!-- </Feed> -->\n </div>\n</template>\n\n<script setup>\n import { onMounted, onUnmounted, computed } from 'vue';\n import { VueDraggableNext } from 'vue-draggable-next';\n\n import { useRoute, useRouter } from 'vue-router';\n\n import * as globals from '@pf/src/modules/globals/views/store/globals';\n import * as auth from '@pf/src/modules/auth/views/store/auth'; \n import * as categories from '@pf/src/modules/products/store/categories'; \n\n const route = useRoute();\n const router = useRouter();\n\n import Button from \"@pf/src/components/Button/Button.vue\";\n import Block from '@pf/src/components/Block/Block.vue';\n import Feed from '@pf/src/components/Feed/Feed.vue'\n\n import CardCategory from '@pf/src/modules/products/components/blocks/CardCategory.vue';\n import CategoryList from '@pf/src/modules/products/components/sections/CategoriesTree.vue';\n\n import IconPlus from '@pf/src/modules/icons/navigation/IconPlus.vue'\n\n globals.state.navigation_bar.actions = [{\n component: IconPlus,\n props: {\n fill: \"rgb(var(--main))\" \n },\n condition: () => auth.state.user && auth.state.user._id,\n action: () => route.params._id ? router.push({ name: 'Category Add', params: { _id: route.params._id} }) : router.push({ name: 'Category Add' })\n }],\n\n onUnmounted(() => {\n globals.state.navigation_bar.actions = [];\n });\n\ncategories.state.all = await categories.actions.read({\n user: auth.state.user._id,\n rootOnly: true,\n limit: 10\n })\n onMounted(async () => {\n \n });\n\n const mappedCategories = computed(() => {\n const recursiveMap = (data) => {\n return data.map(item => ({\n // id: item._id, \n parent: item.parent,\n _id: item._id,\n order: item.order,\n name: item.name, \n children: item.children ? recursiveMap(item.children) : []\n }));\n };\n \n return recursiveMap(categories.state.all);\n });\n\n function flattenCategoryTree(categories) {\n let flatCategories = [];\n \n function flatten(category) {\n const { children, ...categoryWithoutChildren } = category;\n flatCategories.push(categoryWithoutChildren);\n \n if (children && Array.isArray(children)) {\n children.forEach(child => flatten(child));\n }\n }\n \n categories.forEach(category => flatten(category));\n return flatCategories;\n }\n\n // Обновленная функция для обновления порядка категорий\n async function updateCategoriesOrder(category) {\n try {\n // Получаем все категории и преобразуем их в плоский массив\n const allCategories = categories.state.all;\n const flattenedCategories = flattenCategoryTree(allCategories);\n \n // Обновляем порядок для всех категорий\n console.log('flated', flattenedCategories)\n await categories.actions.update(flattenedCategories);\n \n console.log('Categories order updated successfully');\n } catch (error) {\n console.error('Error updating categories order:', error);\n throw error;\n }\n }\n\n async function deleteCategory(category) {\n // Запрашиваем подтверждение у пользователя\n const isConfirmed = confirm(`Are you sure you want to delete the category \"${category.name}\"?`);\n \n // Если пользователь подтвердил удаление, продолжаем процесс\n if (isConfirmed) {\n await categories.actions.deleteCategory(category.url);\n } else {\n alert('Category deletion cancelled'); \n }\n }\n\n</script>\n\n<style lang=\"scss\">\n</style>\n"],"names":["globals.state","IconPlus","auth.state","categories.state","_withAsyncContext","categories.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAmFE,UAAM,QAAQ,SAAU;AACxB,UAAM,SAAS,UAAW;AAW1BA,YAAc,eAAe,UAAU,CAAC;AAAA,MACtC,WAAWC;AAAAA,MACX,OAAO;AAAA,QACL,MAAM;AAAA,MACP;AAAA,MACD,WAAW,MAAMC,MAAW,QAAQA,MAAW,KAAK;AAAA,MACpD,QAAQ,MAAM,MAAM,OAAO,MAAM,OAAO,KAAK,EAAE,MAAM,gBAAgB,QAAQ,EAAE,KAAK,MAAM,OAAO,IAAG,EAAG,CAAA,IAAI,OAAO,KAAK,EAAE,MAAM,eAAgB,CAAA;AAAA,IACnJ,CAAG,GAEF,YAAY,MAAM;AACfF,cAAc,eAAe,UAAU,CAAE;AAAA,IAC7C,CAAG;AAEHG,YAAiB,OAAY,CAAA,QAAA,SAAA,IAAAC,iBAAA,MAAAC,QAAmB,KAAK;AAAA,MAC/C,MAAMH,MAAW,KAAK;AAAA,MACtB,UAAU;AAAA,MACV,OAAO;AAAA,IACb,CAAK,CAAA;AACH,cAAU,YAAY;AAAA,IAExB,CAAG;AAEwB,aAAS,MAAM;AACvC,YAAM,eAAe,CAAC,SAAS;AAC7B,eAAO,KAAK,IAAI,WAAS;AAAA;AAAA,UAExB,QAAQ,KAAK;AAAA,UACb,KAAK,KAAK;AAAA,UACV,OAAO,KAAK;AAAA,UACZ,MAAM,KAAK;AAAA,UACX,UAAU,KAAK,WAAW,aAAa,KAAK,QAAQ,IAAI,CAAA;AAAA,QAC9D,EAAO;AAAA,MACH;AAED,aAAO,aAAaC,QAAiB,GAAG;AAAA,IACxC,CAAA;AAED,aAAS,oBAAoB,YAAY;AACvC,UAAI,iBAAiB,CAAE;AAEvB,eAAS,QAAQ,UAAU;AACzB,cAAM,EAAE,UAAU,GAAG,wBAAuB,IAAK;AACjD,uBAAe,KAAK,uBAAuB;AAE3C,YAAI,YAAY,MAAM,QAAQ,QAAQ,GAAG;AACvC,mBAAS,QAAQ,WAAS,QAAQ,KAAK,CAAC;AAAA,QAChD;AAAA,MACA;AAEI,iBAAW,QAAQ,cAAY,QAAQ,QAAQ,CAAC;AAChD,aAAO;AAAA,IACX;AAGE,mBAAe,sBAAsB,UAAU;AAC7C,UAAI;AAEF,cAAM,gBAAgBA,QAAiB;AACvC,cAAM,sBAAsB,oBAAoB,aAAa;AAG7D,gBAAQ,IAAI,UAAU,mBAAmB;AACzC,cAAME,QAAmB,OAAO,mBAAmB;AAEnD,gBAAQ,IAAI,uCAAuC;AAAA,MACpD,SAAQ,OAAO;AACd,gBAAQ,MAAM,oCAAoC,KAAK;AACvD,cAAM;AAAA,MACZ;AAAA,IACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs
CHANGED
@@ -3,15 +3,14 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
3
3
|
const vue = require("vue");
|
4
4
|
const vueRouter = require("vue-router");
|
5
5
|
const IconDelete = require("../../../icons/navigation/IconDelete.vue.cjs");
|
6
|
-
const Button = require("../../../../components/Button/Button.
|
6
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
7
7
|
const Select = require("../../../../components/Select/Select.vue2.cjs");
|
8
8
|
const UploadImage = require("../../../../components/UploadImage/UploadImage.vue.cjs");
|
9
|
-
const Field = require("../../../../components/Field/Field.
|
9
|
+
const Field = require("../../../../components/Field/Field.vue.cjs");
|
10
10
|
;/* empty css */
|
11
11
|
;/* empty css */
|
12
12
|
;/* empty css */
|
13
13
|
;/* empty css */
|
14
|
-
;/* empty css */
|
15
14
|
;/* empty css */
|
16
15
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
17
16
|
const IconCheckmark = require("../../../icons/navigation/IconCheckmark.vue.cjs");
|
package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CategoryEdit.vue.cjs","sources":["../../../../../../../src/modules/products/components/pages/CategoryEdit.vue"],"sourcesContent":["<template>\n <div class=\"pd-thin bg-white for-transition w-100\">\n <Block v-if=\"!MOBILE_APP\" class=\"radius-big mn-b-thin flex-nowrap flex-v-center flex\">\n <h1 class=\"mn-r-auto\">\n {{route.params.category ? 'Edit Category' : 'Add Category'}}\n </h1>\n\n <Button \n :submit=\"onSubmit\"\n :callback=\"redirectTo\"\n class=\"pd-small radius-big bg-main t-black uppercase t-medium\"\n >\n Save Category \n </Button>\n </Block>\n \n <Block \n title=\"Profile\"\n class=\"mn-b-thin\"\n >\n \n\n \n\n <div class=\"mn-b-medium w-100 flex-nowrap gap-thin flex\">\n <UploadImage \n v-model:photo=\"categories.state.current.photo\"\n :uploadPath=\"'categories'\"\n class=\"w-8r aspect-1x1 o-hidden mn-r-small radius-extra\" \n />\n <Field\n v-model:field=\"categories.state.current.name\"\n label=\"Name\"\n placeholder=\"Enter category name\"\n class=\"w-100 mn-b-small bg-white radius-small pd-medium\"\n /> \n </div>\n\n <div class=\"mn-b-medium w-100 flex-nowrap gap-thin flex\">\n\n\n <Field\n v-model:field=\"categories.state.current.order\"\n label=\"Order\"\n :disabled=\"true\"\n class=\"w-40 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"categories.state.current.url\"\n label=\"URL\"\n placeholder=\"Enter category URL\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n \n </div>\n\n <Select \n v-model:select=\"categories.state.current.status\"\n label=\"Status\"\n :options=\"[\n 'draft', \n 'internal',\n 'published',\n 'removed'\n ]\"\n placeholder=\"Display product\"\n class=\"pos-relative w-100 mn-b-small bg-white radius-small pd-medium\"\n />\n\n <div class=\"flex-v-center flex-nowrap flex\">\n <h4 class=\"mn-r-thin t-medium\">Localization</h4>\n \n <button \n @click=\"() => categories.state.current.localization.push({locale: '', text: ''})\" \n class=\"i-small pd-thin button-delete button\"\n >\n +\n </button>\n </div>\n <div \n class=\"gap-thin mn-b-thin flex-nowrap flex\" \n v-for=\"(item, index) in categories.state.current.localization\" \n :key=\"index\"\n > \n <Field\n v-model:field=\"item.locale\"\n placeholder=\"Locale\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"item.text\"\n placeholder=\"Text\"\n class=\"w-100 bg-white radius-small pd-medium\"\n />\n <div\n @click=\"() => categories.state.current.localization.splice(index, 1)\" \n class=\"radius-small pd-small flex-center flex aspect-1x1 bg-red\"\n >\n <IconDelete \n class=\"i-medium\"\n />\n </div>\n </div>\n\n \n </Block>\n <!-- Subcategories -->\n <!-- <Block\n title=\"Subcategories\"\n placeholder=\"No subcategories added yet\"\n :actions=\"[{\n label: '+',\n function: () => categories.state.current.children.push({name: '', url: ''})\n }]\"\n class=\"mn-b-thin\"\n >\n \n <div \n class=\"gap-thin mn-b-thin flex-nowrap flex\" \n v-for=\"(item, index) in categories.state.current.children\" \n :key=\"index\"\n > \n <Field\n v-model:field=\"item.name\"\n placeholder=\"Subcategory name\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"item.url\"\n placeholder=\"Subcategory\"\n class=\"w-100 bg-white radius-small pd-medium\"\n />\n <div\n @click=\"() => categories.state.current.children.splice(index, 1)\" \n class=\"radius-small pd-small flex-center flex aspect-1x1 bg-red\"\n >\n <IconDelete \n class=\"i-medium\"\n />\n </div>\n </div> \n </Block> -->\n <!-- Filters -->\n <Block\n title=\"Filters\"\n placeholder=\"No filters added yet\"\n :actions=\"[{\n label: '+',\n function: () => categories.state.current.filters.push({name: '', url: ''})\n }]\"\n >\n <div \n class=\"gap-thin mn-b-thin flex-nowrap flex\" \n v-for=\"(item, index) in categories.state.current.filters\" \n :key=\"index\"\n > \n <Field\n v-model:field=\"item.name\"\n placeholder=\"Filter name\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"item.options\"\n placeholder=\"Filter options divided by ,\"\n class=\"w-100 bg-white radius-small pd-medium\"\n />\n <div\n @click=\"() => categories.state.current.filters.splice(index, 1)\" \n class=\"radius-small pd-small flex-center flex aspect-1x1 bg-red\"\n >\n <IconDelete \n class=\"i-medium\"\n />\n </div>\n </div> \n </Block>\n </div>\n \n</template>\n\n<script setup>\n // Import libs\n import { computed, onUnmounted } from 'vue'\n import { useRoute,useRouter } from 'vue-router'\n \n import IconDelete from '@pf/src/modules/icons/navigation/IconDelete.vue';\n\n import Button from \"@pf/src/components/Button/Button.vue\";\n import Select from \"@pf/src/components/Select/Select.vue\";\n import UploadImage from '@pf/src/components/UploadImage/UploadImage.vue';\n import Field from \"@pf/src/components/Field/Field.vue\";\n import Feed from '@pf/src/components/Feed/Feed.vue'\n\n\n import Block from '@pf/src/components/Block/Block.vue';\n\n import IconCheckmark from '@pf/src/modules/icons/navigation/IconCheckmark.vue'\n\n // Import the new store structure\n import * as globals from '@pf/src/modules/globals/views/store/globals';\n import * as auth from '@pf/src/modules/auth/views/store/auth'; \n import * as categories from '@pf/src/modules/products/store/categories';\n\n const route = useRoute()\n const router = useRouter()\n\n // Data prefetching\n if (route.params.category) {\n categories.actions.read({url: route.params.category})\n } else {\n categories.actions.clean() // Adjusted based on the new store's method to reset the category state\n }\n\n // Accessing state\n const category = computed(() => categories.state.current)\n const routePath = computed(() => route.name)\n\n // Navigation Bar\n globals.state.navigation_bar.actions = [{\n component: IconCheckmark,\n props: {\n fill: \"rgb(var(--main))\" \n },\n condition: () => auth.state.user && auth.state.user._id,\n action: () => onSubmit()\n }],\n\n onUnmounted(() => {\n globals.state.navigation_bar.actions = [];\n });\n\n\n\n // Functions\n function onSubmit() {\n if (route.params.category) {\n categories.actions.update(categories.state.current)\n } else {\n categories.actions.create(categories.state.current)\n }\n }\n\n function redirectTo () {\n router.push({\n name: 'Categories Organization', \n params: { \n _id: route.params._id\n } \n })\n }\n</script>\n\n<style lang=\"scss\">\n /* Your styles here */\n</style>\n"],"names":["useRoute","useRouter","categories.actions","computed","categories.state","globals.state","IconCheckmark","auth.state","onUnmounted"],"mappings":"
|
1
|
+
{"version":3,"file":"CategoryEdit.vue.cjs","sources":["../../../../../../../src/modules/products/components/pages/CategoryEdit.vue"],"sourcesContent":["<template>\n <div class=\"pd-thin bg-white for-transition w-100\">\n <Block v-if=\"!MOBILE_APP\" class=\"radius-big mn-b-thin flex-nowrap flex-v-center flex\">\n <h1 class=\"mn-r-auto\">\n {{route.params.category ? 'Edit Category' : 'Add Category'}}\n </h1>\n\n <Button \n :submit=\"onSubmit\"\n :callback=\"redirectTo\"\n class=\"pd-small radius-big bg-main t-black uppercase t-medium\"\n >\n Save Category \n </Button>\n </Block>\n \n <Block \n title=\"Profile\"\n class=\"mn-b-thin\"\n >\n \n\n \n\n <div class=\"mn-b-medium w-100 flex-nowrap gap-thin flex\">\n <UploadImage \n v-model:photo=\"categories.state.current.photo\"\n :uploadPath=\"'categories'\"\n class=\"w-8r aspect-1x1 o-hidden mn-r-small radius-extra\" \n />\n <Field\n v-model:field=\"categories.state.current.name\"\n label=\"Name\"\n placeholder=\"Enter category name\"\n class=\"w-100 mn-b-small bg-white radius-small pd-medium\"\n /> \n </div>\n\n <div class=\"mn-b-medium w-100 flex-nowrap gap-thin flex\">\n\n\n <Field\n v-model:field=\"categories.state.current.order\"\n label=\"Order\"\n :disabled=\"true\"\n class=\"w-40 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"categories.state.current.url\"\n label=\"URL\"\n placeholder=\"Enter category URL\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n \n </div>\n\n <Select \n v-model:select=\"categories.state.current.status\"\n label=\"Status\"\n :options=\"[\n 'draft', \n 'internal',\n 'published',\n 'removed'\n ]\"\n placeholder=\"Display product\"\n class=\"pos-relative w-100 mn-b-small bg-white radius-small pd-medium\"\n />\n\n <div class=\"flex-v-center flex-nowrap flex\">\n <h4 class=\"mn-r-thin t-medium\">Localization</h4>\n \n <button \n @click=\"() => categories.state.current.localization.push({locale: '', text: ''})\" \n class=\"i-small pd-thin button-delete button\"\n >\n +\n </button>\n </div>\n <div \n class=\"gap-thin mn-b-thin flex-nowrap flex\" \n v-for=\"(item, index) in categories.state.current.localization\" \n :key=\"index\"\n > \n <Field\n v-model:field=\"item.locale\"\n placeholder=\"Locale\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"item.text\"\n placeholder=\"Text\"\n class=\"w-100 bg-white radius-small pd-medium\"\n />\n <div\n @click=\"() => categories.state.current.localization.splice(index, 1)\" \n class=\"radius-small pd-small flex-center flex aspect-1x1 bg-red\"\n >\n <IconDelete \n class=\"i-medium\"\n />\n </div>\n </div>\n\n \n </Block>\n <!-- Subcategories -->\n <!-- <Block\n title=\"Subcategories\"\n placeholder=\"No subcategories added yet\"\n :actions=\"[{\n label: '+',\n function: () => categories.state.current.children.push({name: '', url: ''})\n }]\"\n class=\"mn-b-thin\"\n >\n \n <div \n class=\"gap-thin mn-b-thin flex-nowrap flex\" \n v-for=\"(item, index) in categories.state.current.children\" \n :key=\"index\"\n > \n <Field\n v-model:field=\"item.name\"\n placeholder=\"Subcategory name\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"item.url\"\n placeholder=\"Subcategory\"\n class=\"w-100 bg-white radius-small pd-medium\"\n />\n <div\n @click=\"() => categories.state.current.children.splice(index, 1)\" \n class=\"radius-small pd-small flex-center flex aspect-1x1 bg-red\"\n >\n <IconDelete \n class=\"i-medium\"\n />\n </div>\n </div> \n </Block> -->\n <!-- Filters -->\n <Block\n title=\"Filters\"\n placeholder=\"No filters added yet\"\n :actions=\"[{\n label: '+',\n function: () => categories.state.current.filters.push({name: '', url: ''})\n }]\"\n >\n <div \n class=\"gap-thin mn-b-thin flex-nowrap flex\" \n v-for=\"(item, index) in categories.state.current.filters\" \n :key=\"index\"\n > \n <Field\n v-model:field=\"item.name\"\n placeholder=\"Filter name\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"item.options\"\n placeholder=\"Filter options divided by ,\"\n class=\"w-100 bg-white radius-small pd-medium\"\n />\n <div\n @click=\"() => categories.state.current.filters.splice(index, 1)\" \n class=\"radius-small pd-small flex-center flex aspect-1x1 bg-red\"\n >\n <IconDelete \n class=\"i-medium\"\n />\n </div>\n </div> \n </Block>\n </div>\n \n</template>\n\n<script setup>\n // Import libs\n import { computed, onUnmounted } from 'vue'\n import { useRoute,useRouter } from 'vue-router'\n \n import IconDelete from '@pf/src/modules/icons/navigation/IconDelete.vue';\n\n import Button from \"@pf/src/components/Button/Button.vue\";\n import Select from \"@pf/src/components/Select/Select.vue\";\n import UploadImage from '@pf/src/components/UploadImage/UploadImage.vue';\n import Field from \"@pf/src/components/Field/Field.vue\";\n import Feed from '@pf/src/components/Feed/Feed.vue'\n\n\n import Block from '@pf/src/components/Block/Block.vue';\n\n import IconCheckmark from '@pf/src/modules/icons/navigation/IconCheckmark.vue'\n\n // Import the new store structure\n import * as globals from '@pf/src/modules/globals/views/store/globals';\n import * as auth from '@pf/src/modules/auth/views/store/auth'; \n import * as categories from '@pf/src/modules/products/store/categories';\n\n const route = useRoute()\n const router = useRouter()\n\n // Data prefetching\n if (route.params.category) {\n categories.actions.read({url: route.params.category})\n } else {\n categories.actions.clean() // Adjusted based on the new store's method to reset the category state\n }\n\n // Accessing state\n const category = computed(() => categories.state.current)\n const routePath = computed(() => route.name)\n\n // Navigation Bar\n globals.state.navigation_bar.actions = [{\n component: IconCheckmark,\n props: {\n fill: \"rgb(var(--main))\" \n },\n condition: () => auth.state.user && auth.state.user._id,\n action: () => onSubmit()\n }],\n\n onUnmounted(() => {\n globals.state.navigation_bar.actions = [];\n });\n\n\n\n // Functions\n function onSubmit() {\n if (route.params.category) {\n categories.actions.update(categories.state.current)\n } else {\n categories.actions.create(categories.state.current)\n }\n }\n\n function redirectTo () {\n router.push({\n name: 'Categories Organization', \n params: { \n _id: route.params._id\n } \n })\n }\n</script>\n\n<style lang=\"scss\">\n /* Your styles here */\n</style>\n"],"names":["useRoute","useRouter","categories.actions","computed","categories.state","globals.state","IconCheckmark","auth.state","onUnmounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2ME,UAAM,QAAQA,UAAQ,SAAA;AACtB,UAAM,SAASC,UAAS,UAAA;AAGxB,QAAI,MAAM,OAAO,UAAU;AACzBC,iBAAkB,QAAC,KAAK,EAAC,KAAK,MAAM,OAAO,SAAQ,CAAC;AAAA,IACxD,OAAS;AACLA,iBAAAA,QAAmB,MAAO;AAAA,IAC9B;AAGmBC,QAAQ,SAAC,MAAMC,WAAAA,MAAiB,OAAO;AACtCD,QAAQ,SAAC,MAAM,MAAM,IAAI;AAG3CE,kBAAc,eAAe,UAAU,CAAC;AAAA,MACtC,WAAWC,cAAa;AAAA,MACxB,OAAO;AAAA,QACL,MAAM;AAAA,MACP;AAAA,MACD,WAAW,MAAMC,KAAU,MAAC,QAAQA,KAAU,MAAC,KAAK;AAAA,MACpD,QAAQ,MAAM,SAAQ;AAAA,IAC1B,CAAG,GAEFC,IAAAA,YAAY,MAAM;AACfH,oBAAc,eAAe,UAAU,CAAE;AAAA,IAC7C,CAAG;AAKD,aAAS,WAAW;AAClB,UAAI,MAAM,OAAO,UAAU;AACzBH,2BAAmB,OAAOE,WAAAA,MAAiB,OAAO;AAAA,MACxD,OAAW;AACLF,2BAAmB,OAAOE,WAAAA,MAAiB,OAAO;AAAA,MACxD;AAAA,IACA;AAEE,aAAS,aAAc;AACrB,aAAO,KAAK;AAAA,QACV,MAAM;AAAA,QACN,QAAQ;AAAA,UACN,KAAK,MAAM,OAAO;AAAA,QACnB;AAAA,MACF,CAAA;AAAA,IACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,15 +1,14 @@
|
|
1
1
|
import { computed, onUnmounted, createElementBlock, openBlock, createBlock, createCommentVNode, createVNode, withCtx, createElementVNode, toDisplayString, unref, createTextVNode, Fragment, renderList } from "vue";
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
3
3
|
import _sfc_main$5 from "../../../icons/navigation/IconDelete.vue.js";
|
4
|
-
import _sfc_main$3 from "../../../../components/Button/Button.
|
4
|
+
import _sfc_main$3 from "../../../../components/Button/Button.vue.js";
|
5
5
|
import Select from "../../../../components/Select/Select.vue2.js";
|
6
6
|
import _sfc_main$4 from "../../../../components/UploadImage/UploadImage.vue.js";
|
7
|
-
import Field from "../../../../components/Field/Field.
|
7
|
+
import Field from "../../../../components/Field/Field.vue.js";
|
8
8
|
/* empty css */
|
9
9
|
/* empty css */
|
10
10
|
/* empty css */
|
11
11
|
/* empty css */
|
12
|
-
/* empty css */
|
13
12
|
/* empty css */
|
14
13
|
import _sfc_main$2 from "../../../../components/Block/Block.vue.js";
|
15
14
|
import _sfc_main$1 from "../../../icons/navigation/IconCheckmark.vue.js";
|
package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CategoryEdit.vue.js","sources":["../../../../../../../src/modules/products/components/pages/CategoryEdit.vue"],"sourcesContent":["<template>\n <div class=\"pd-thin bg-white for-transition w-100\">\n <Block v-if=\"!MOBILE_APP\" class=\"radius-big mn-b-thin flex-nowrap flex-v-center flex\">\n <h1 class=\"mn-r-auto\">\n {{route.params.category ? 'Edit Category' : 'Add Category'}}\n </h1>\n\n <Button \n :submit=\"onSubmit\"\n :callback=\"redirectTo\"\n class=\"pd-small radius-big bg-main t-black uppercase t-medium\"\n >\n Save Category \n </Button>\n </Block>\n \n <Block \n title=\"Profile\"\n class=\"mn-b-thin\"\n >\n \n\n \n\n <div class=\"mn-b-medium w-100 flex-nowrap gap-thin flex\">\n <UploadImage \n v-model:photo=\"categories.state.current.photo\"\n :uploadPath=\"'categories'\"\n class=\"w-8r aspect-1x1 o-hidden mn-r-small radius-extra\" \n />\n <Field\n v-model:field=\"categories.state.current.name\"\n label=\"Name\"\n placeholder=\"Enter category name\"\n class=\"w-100 mn-b-small bg-white radius-small pd-medium\"\n /> \n </div>\n\n <div class=\"mn-b-medium w-100 flex-nowrap gap-thin flex\">\n\n\n <Field\n v-model:field=\"categories.state.current.order\"\n label=\"Order\"\n :disabled=\"true\"\n class=\"w-40 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"categories.state.current.url\"\n label=\"URL\"\n placeholder=\"Enter category URL\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n \n </div>\n\n <Select \n v-model:select=\"categories.state.current.status\"\n label=\"Status\"\n :options=\"[\n 'draft', \n 'internal',\n 'published',\n 'removed'\n ]\"\n placeholder=\"Display product\"\n class=\"pos-relative w-100 mn-b-small bg-white radius-small pd-medium\"\n />\n\n <div class=\"flex-v-center flex-nowrap flex\">\n <h4 class=\"mn-r-thin t-medium\">Localization</h4>\n \n <button \n @click=\"() => categories.state.current.localization.push({locale: '', text: ''})\" \n class=\"i-small pd-thin button-delete button\"\n >\n +\n </button>\n </div>\n <div \n class=\"gap-thin mn-b-thin flex-nowrap flex\" \n v-for=\"(item, index) in categories.state.current.localization\" \n :key=\"index\"\n > \n <Field\n v-model:field=\"item.locale\"\n placeholder=\"Locale\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"item.text\"\n placeholder=\"Text\"\n class=\"w-100 bg-white radius-small pd-medium\"\n />\n <div\n @click=\"() => categories.state.current.localization.splice(index, 1)\" \n class=\"radius-small pd-small flex-center flex aspect-1x1 bg-red\"\n >\n <IconDelete \n class=\"i-medium\"\n />\n </div>\n </div>\n\n \n </Block>\n <!-- Subcategories -->\n <!-- <Block\n title=\"Subcategories\"\n placeholder=\"No subcategories added yet\"\n :actions=\"[{\n label: '+',\n function: () => categories.state.current.children.push({name: '', url: ''})\n }]\"\n class=\"mn-b-thin\"\n >\n \n <div \n class=\"gap-thin mn-b-thin flex-nowrap flex\" \n v-for=\"(item, index) in categories.state.current.children\" \n :key=\"index\"\n > \n <Field\n v-model:field=\"item.name\"\n placeholder=\"Subcategory name\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"item.url\"\n placeholder=\"Subcategory\"\n class=\"w-100 bg-white radius-small pd-medium\"\n />\n <div\n @click=\"() => categories.state.current.children.splice(index, 1)\" \n class=\"radius-small pd-small flex-center flex aspect-1x1 bg-red\"\n >\n <IconDelete \n class=\"i-medium\"\n />\n </div>\n </div> \n </Block> -->\n <!-- Filters -->\n <Block\n title=\"Filters\"\n placeholder=\"No filters added yet\"\n :actions=\"[{\n label: '+',\n function: () => categories.state.current.filters.push({name: '', url: ''})\n }]\"\n >\n <div \n class=\"gap-thin mn-b-thin flex-nowrap flex\" \n v-for=\"(item, index) in categories.state.current.filters\" \n :key=\"index\"\n > \n <Field\n v-model:field=\"item.name\"\n placeholder=\"Filter name\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"item.options\"\n placeholder=\"Filter options divided by ,\"\n class=\"w-100 bg-white radius-small pd-medium\"\n />\n <div\n @click=\"() => categories.state.current.filters.splice(index, 1)\" \n class=\"radius-small pd-small flex-center flex aspect-1x1 bg-red\"\n >\n <IconDelete \n class=\"i-medium\"\n />\n </div>\n </div> \n </Block>\n </div>\n \n</template>\n\n<script setup>\n // Import libs\n import { computed, onUnmounted } from 'vue'\n import { useRoute,useRouter } from 'vue-router'\n \n import IconDelete from '@pf/src/modules/icons/navigation/IconDelete.vue';\n\n import Button from \"@pf/src/components/Button/Button.vue\";\n import Select from \"@pf/src/components/Select/Select.vue\";\n import UploadImage from '@pf/src/components/UploadImage/UploadImage.vue';\n import Field from \"@pf/src/components/Field/Field.vue\";\n import Feed from '@pf/src/components/Feed/Feed.vue'\n\n\n import Block from '@pf/src/components/Block/Block.vue';\n\n import IconCheckmark from '@pf/src/modules/icons/navigation/IconCheckmark.vue'\n\n // Import the new store structure\n import * as globals from '@pf/src/modules/globals/views/store/globals';\n import * as auth from '@pf/src/modules/auth/views/store/auth'; \n import * as categories from '@pf/src/modules/products/store/categories';\n\n const route = useRoute()\n const router = useRouter()\n\n // Data prefetching\n if (route.params.category) {\n categories.actions.read({url: route.params.category})\n } else {\n categories.actions.clean() // Adjusted based on the new store's method to reset the category state\n }\n\n // Accessing state\n const category = computed(() => categories.state.current)\n const routePath = computed(() => route.name)\n\n // Navigation Bar\n globals.state.navigation_bar.actions = [{\n component: IconCheckmark,\n props: {\n fill: \"rgb(var(--main))\" \n },\n condition: () => auth.state.user && auth.state.user._id,\n action: () => onSubmit()\n }],\n\n onUnmounted(() => {\n globals.state.navigation_bar.actions = [];\n });\n\n\n\n // Functions\n function onSubmit() {\n if (route.params.category) {\n categories.actions.update(categories.state.current)\n } else {\n categories.actions.create(categories.state.current)\n }\n }\n\n function redirectTo () {\n router.push({\n name: 'Categories Organization', \n params: { \n _id: route.params._id\n } \n })\n }\n</script>\n\n<style lang=\"scss\">\n /* Your styles here */\n</style>\n"],"names":["categories.actions","categories.state","globals.state","IconCheckmark","auth.state"],"mappings":"
|
1
|
+
{"version":3,"file":"CategoryEdit.vue.js","sources":["../../../../../../../src/modules/products/components/pages/CategoryEdit.vue"],"sourcesContent":["<template>\n <div class=\"pd-thin bg-white for-transition w-100\">\n <Block v-if=\"!MOBILE_APP\" class=\"radius-big mn-b-thin flex-nowrap flex-v-center flex\">\n <h1 class=\"mn-r-auto\">\n {{route.params.category ? 'Edit Category' : 'Add Category'}}\n </h1>\n\n <Button \n :submit=\"onSubmit\"\n :callback=\"redirectTo\"\n class=\"pd-small radius-big bg-main t-black uppercase t-medium\"\n >\n Save Category \n </Button>\n </Block>\n \n <Block \n title=\"Profile\"\n class=\"mn-b-thin\"\n >\n \n\n \n\n <div class=\"mn-b-medium w-100 flex-nowrap gap-thin flex\">\n <UploadImage \n v-model:photo=\"categories.state.current.photo\"\n :uploadPath=\"'categories'\"\n class=\"w-8r aspect-1x1 o-hidden mn-r-small radius-extra\" \n />\n <Field\n v-model:field=\"categories.state.current.name\"\n label=\"Name\"\n placeholder=\"Enter category name\"\n class=\"w-100 mn-b-small bg-white radius-small pd-medium\"\n /> \n </div>\n\n <div class=\"mn-b-medium w-100 flex-nowrap gap-thin flex\">\n\n\n <Field\n v-model:field=\"categories.state.current.order\"\n label=\"Order\"\n :disabled=\"true\"\n class=\"w-40 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"categories.state.current.url\"\n label=\"URL\"\n placeholder=\"Enter category URL\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n \n </div>\n\n <Select \n v-model:select=\"categories.state.current.status\"\n label=\"Status\"\n :options=\"[\n 'draft', \n 'internal',\n 'published',\n 'removed'\n ]\"\n placeholder=\"Display product\"\n class=\"pos-relative w-100 mn-b-small bg-white radius-small pd-medium\"\n />\n\n <div class=\"flex-v-center flex-nowrap flex\">\n <h4 class=\"mn-r-thin t-medium\">Localization</h4>\n \n <button \n @click=\"() => categories.state.current.localization.push({locale: '', text: ''})\" \n class=\"i-small pd-thin button-delete button\"\n >\n +\n </button>\n </div>\n <div \n class=\"gap-thin mn-b-thin flex-nowrap flex\" \n v-for=\"(item, index) in categories.state.current.localization\" \n :key=\"index\"\n > \n <Field\n v-model:field=\"item.locale\"\n placeholder=\"Locale\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"item.text\"\n placeholder=\"Text\"\n class=\"w-100 bg-white radius-small pd-medium\"\n />\n <div\n @click=\"() => categories.state.current.localization.splice(index, 1)\" \n class=\"radius-small pd-small flex-center flex aspect-1x1 bg-red\"\n >\n <IconDelete \n class=\"i-medium\"\n />\n </div>\n </div>\n\n \n </Block>\n <!-- Subcategories -->\n <!-- <Block\n title=\"Subcategories\"\n placeholder=\"No subcategories added yet\"\n :actions=\"[{\n label: '+',\n function: () => categories.state.current.children.push({name: '', url: ''})\n }]\"\n class=\"mn-b-thin\"\n >\n \n <div \n class=\"gap-thin mn-b-thin flex-nowrap flex\" \n v-for=\"(item, index) in categories.state.current.children\" \n :key=\"index\"\n > \n <Field\n v-model:field=\"item.name\"\n placeholder=\"Subcategory name\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"item.url\"\n placeholder=\"Subcategory\"\n class=\"w-100 bg-white radius-small pd-medium\"\n />\n <div\n @click=\"() => categories.state.current.children.splice(index, 1)\" \n class=\"radius-small pd-small flex-center flex aspect-1x1 bg-red\"\n >\n <IconDelete \n class=\"i-medium\"\n />\n </div>\n </div> \n </Block> -->\n <!-- Filters -->\n <Block\n title=\"Filters\"\n placeholder=\"No filters added yet\"\n :actions=\"[{\n label: '+',\n function: () => categories.state.current.filters.push({name: '', url: ''})\n }]\"\n >\n <div \n class=\"gap-thin mn-b-thin flex-nowrap flex\" \n v-for=\"(item, index) in categories.state.current.filters\" \n :key=\"index\"\n > \n <Field\n v-model:field=\"item.name\"\n placeholder=\"Filter name\"\n class=\"w-100 bg-white radius-small pd-medium\"\n /> \n <Field\n v-model:field=\"item.options\"\n placeholder=\"Filter options divided by ,\"\n class=\"w-100 bg-white radius-small pd-medium\"\n />\n <div\n @click=\"() => categories.state.current.filters.splice(index, 1)\" \n class=\"radius-small pd-small flex-center flex aspect-1x1 bg-red\"\n >\n <IconDelete \n class=\"i-medium\"\n />\n </div>\n </div> \n </Block>\n </div>\n \n</template>\n\n<script setup>\n // Import libs\n import { computed, onUnmounted } from 'vue'\n import { useRoute,useRouter } from 'vue-router'\n \n import IconDelete from '@pf/src/modules/icons/navigation/IconDelete.vue';\n\n import Button from \"@pf/src/components/Button/Button.vue\";\n import Select from \"@pf/src/components/Select/Select.vue\";\n import UploadImage from '@pf/src/components/UploadImage/UploadImage.vue';\n import Field from \"@pf/src/components/Field/Field.vue\";\n import Feed from '@pf/src/components/Feed/Feed.vue'\n\n\n import Block from '@pf/src/components/Block/Block.vue';\n\n import IconCheckmark from '@pf/src/modules/icons/navigation/IconCheckmark.vue'\n\n // Import the new store structure\n import * as globals from '@pf/src/modules/globals/views/store/globals';\n import * as auth from '@pf/src/modules/auth/views/store/auth'; \n import * as categories from '@pf/src/modules/products/store/categories';\n\n const route = useRoute()\n const router = useRouter()\n\n // Data prefetching\n if (route.params.category) {\n categories.actions.read({url: route.params.category})\n } else {\n categories.actions.clean() // Adjusted based on the new store's method to reset the category state\n }\n\n // Accessing state\n const category = computed(() => categories.state.current)\n const routePath = computed(() => route.name)\n\n // Navigation Bar\n globals.state.navigation_bar.actions = [{\n component: IconCheckmark,\n props: {\n fill: \"rgb(var(--main))\" \n },\n condition: () => auth.state.user && auth.state.user._id,\n action: () => onSubmit()\n }],\n\n onUnmounted(() => {\n globals.state.navigation_bar.actions = [];\n });\n\n\n\n // Functions\n function onSubmit() {\n if (route.params.category) {\n categories.actions.update(categories.state.current)\n } else {\n categories.actions.create(categories.state.current)\n }\n }\n\n function redirectTo () {\n router.push({\n name: 'Categories Organization', \n params: { \n _id: route.params._id\n } \n })\n }\n</script>\n\n<style lang=\"scss\">\n /* Your styles here */\n</style>\n"],"names":["categories.actions","categories.state","globals.state","IconCheckmark","auth.state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2ME,UAAM,QAAQ,SAAQ;AACtB,UAAM,SAAS,UAAS;AAGxB,QAAI,MAAM,OAAO,UAAU;AACzBA,cAAmB,KAAK,EAAC,KAAK,MAAM,OAAO,SAAQ,CAAC;AAAA,IACxD,OAAS;AACLA,cAAmB,MAAO;AAAA,IAC9B;AAGmB,aAAS,MAAMC,MAAiB,OAAO;AACtC,aAAS,MAAM,MAAM,IAAI;AAG3CC,YAAc,eAAe,UAAU,CAAC;AAAA,MACtC,WAAWC;AAAAA,MACX,OAAO;AAAA,QACL,MAAM;AAAA,MACP;AAAA,MACD,WAAW,MAAMC,QAAW,QAAQA,QAAW,KAAK;AAAA,MACpD,QAAQ,MAAM,SAAQ;AAAA,IAC1B,CAAG,GAEF,YAAY,MAAM;AACfF,cAAc,eAAe,UAAU,CAAE;AAAA,IAC7C,CAAG;AAKD,aAAS,WAAW;AAClB,UAAI,MAAM,OAAO,UAAU;AACzBF,gBAAmB,OAAOC,MAAiB,OAAO;AAAA,MACxD,OAAW;AACLD,gBAAmB,OAAOC,MAAiB,OAAO;AAAA,MACxD;AAAA,IACA;AAEE,aAAS,aAAc;AACrB,aAAO,KAAK;AAAA,QACV,MAAM;AAAA,QACN,QAAQ;AAAA,UACN,KAAK,MAAM,OAAO;AAAA,QACnB;AAAA,MACF,CAAA;AAAA,IACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
5
|
-
const Field = require("../../../../components/Field/Field.
|
5
|
+
const Field = require("../../../../components/Field/Field.vue.cjs");
|
6
6
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
7
7
|
const Select = require("../../../../components/Select/Select.vue2.cjs");
|
8
|
-
const Popup = require("../../../../components/Popup/Popup.
|
9
|
-
;/* empty css
|
8
|
+
const Popup = require("../../../../components/Popup/Popup.vue2.cjs");
|
9
|
+
;/* empty css */
|
10
10
|
const CardPosition = require("../blocks/CardPosition.vue.cjs");
|
11
11
|
const CardOrderItem = require("../../../orders/components/blocks/CardOrderItem.vue.cjs");
|
12
12
|
const vueRouter = require("vue-router");
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { ref, computed, onMounted, createElementBlock, openBlock, createElementVNode, createVNode, toDisplayString, unref, withCtx, Fragment, renderList, createBlock, createCommentVNode } from "vue";
|
2
2
|
import _sfc_main$4 from "../../../../components/Block/Block.vue.js";
|
3
|
-
import Field from "../../../../components/Field/Field.
|
3
|
+
import Field from "../../../../components/Field/Field.vue.js";
|
4
4
|
import _sfc_main$2 from "../../../../components/Feed/Feed.vue.js";
|
5
5
|
import Select from "../../../../components/Select/Select.vue2.js";
|
6
|
-
import _sfc_main$1 from "../../../../components/Popup/Popup.
|
7
|
-
/* empty css
|
6
|
+
import _sfc_main$1 from "../../../../components/Popup/Popup.vue2.js";
|
7
|
+
/* empty css */
|
8
8
|
import _sfc_main$5 from "../blocks/CardPosition.vue.js";
|
9
9
|
import _sfc_main$3 from "../../../orders/components/blocks/CardOrderItem.vue.js";
|
10
10
|
import { useRoute, useRouter } from "vue-router";
|
@@ -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 vueRouter = require("vue-router");
|
5
|
-
const Tab = require("../../../../components/Tab/Tab.
|
5
|
+
const Tab = require("../../../../components/Tab/Tab.vue.cjs");
|
6
6
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
7
7
|
const CardLeftover = require("../blocks/CardLeftover.vue.cjs");
|
8
8
|
const leftovers = require("../../store/leftovers.cjs");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref, computed, createElementBlock, openBlock, createElementVNode, createVNode, toDisplayString, unref, withCtx, Fragment, renderList, createBlock } from "vue";
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
3
|
-
import _sfc_main$1 from "../../../../components/Tab/Tab.
|
3
|
+
import _sfc_main$1 from "../../../../components/Tab/Tab.vue.js";
|
4
4
|
import _sfc_main$2 from "../../../../components/Feed/Feed.vue.js";
|
5
5
|
import CardLeftover from "../blocks/CardLeftover.vue.js";
|
6
6
|
import { state, actions } from "../../store/leftovers.js";
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
|
-
const Button = require("../../../../components/Button/Button.
|
5
|
-
const Popup = require("../../../../components/Popup/Popup.
|
6
|
-
const Tab = require("../../../../components/Tab/Tab.
|
4
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
5
|
+
const Popup = require("../../../../components/Popup/Popup.vue2.cjs");
|
6
|
+
const Tab = require("../../../../components/Tab/Tab.vue.cjs");
|
7
7
|
const Calendar = require("../../../../components/DatePicker/Calendar.vue2.cjs");
|
8
8
|
const IconEdit = require("../../../icons/navigation/IconEdit.vue.cjs");
|
9
9
|
const IconShopcartAdd = require("../../../icons/actions/IconShopcartAdd.vue.cjs");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { computed, ref, onMounted, createElementBlock, openBlock, createElementVNode, createBlock, createCommentVNode, createVNode, unref, toDisplayString, Transition, withCtx, Fragment, renderList } from "vue";
|
2
|
-
import _sfc_main$7 from "../../../../components/Button/Button.
|
3
|
-
import _sfc_main$5 from "../../../../components/Popup/Popup.
|
4
|
-
import _sfc_main$3 from "../../../../components/Tab/Tab.
|
2
|
+
import _sfc_main$7 from "../../../../components/Button/Button.vue.js";
|
3
|
+
import _sfc_main$5 from "../../../../components/Popup/Popup.vue2.js";
|
4
|
+
import _sfc_main$3 from "../../../../components/Tab/Tab.vue.js";
|
5
5
|
import _sfc_main$6 from "../../../../components/DatePicker/Calendar.vue2.js";
|
6
6
|
import _sfc_main$1 from "../../../icons/navigation/IconEdit.vue.js";
|
7
7
|
import _sfc_main$4 from "../../../icons/actions/IconShopcartAdd.vue.js";
|