@ozdao/martyrs 0.2.487 → 0.2.489
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index.cjs +4 -4
- package/dist/_virtual/index.js +4 -4
- package/dist/_virtual/index2.cjs +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/auth.server.cjs +1 -1
- package/dist/auth.server.js +1 -1
- package/dist/{authJwt-D35KyJlE.cjs → authJwt-BIZ2GIfT.cjs} +0 -27
- package/dist/{authJwt-DqxhUym0.js → authJwt-J1csaMWA.js} +0 -27
- package/dist/builder.cjs +10 -0
- package/dist/builder.js +10 -0
- package/dist/chats.server.cjs +1 -1
- package/dist/chats.server.js +1 -1
- package/dist/community.server.cjs +3 -3
- package/dist/community.server.js +3 -3
- package/dist/{crud-BDIArc5A.cjs → crud-B-kQw3Z5.cjs} +5 -4
- package/dist/{crud-DJvpe0aZ.js → crud-Cwx5VlSm.js} +5 -4
- package/dist/events.server.cjs +3 -3
- package/dist/events.server.js +3 -3
- package/dist/files.server.cjs +31 -14
- package/dist/files.server.js +31 -14
- package/dist/gallery.server.cjs +2 -2
- package/dist/gallery.server.js +2 -2
- package/dist/{globals.abac-Cm9e8Jdk.cjs → globals.abac-CPXLas7N.cjs} +1 -1
- package/dist/{globals.abac-DBV_kaOq.js → globals.abac-DNdtSYop.js} +1 -1
- package/dist/{index-DiSKVCaA.cjs → index-BFxqqmgh.cjs} +1 -1
- package/dist/{index-CVuQC4k1.js → index-_Edcmck_.js} +1 -1
- package/dist/main-CmuUC0tl.cjs +11 -0
- package/dist/{main-nQmkbWsW.js → main-IVRL6IjM.js} +2949 -2666
- package/dist/martyrs/src/components/Button/{Button.vue.cjs → Button.vue2.cjs} +3 -3
- package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Button/{Button.vue.js → Button.vue2.js} +3 -3
- package/dist/martyrs/src/components/Button/{Button.vue.cjs.map → Button.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/Calendar/Calendar.vue.cjs +31 -5
- package/dist/martyrs/src/components/Calendar/Calendar.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Calendar/Calendar.vue.js +32 -6
- package/dist/martyrs/src/components/Calendar/Calendar.vue.js.map +1 -1
- package/dist/martyrs/src/components/Chips/{Chips.vue.cjs → Chips.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Chips/{Chips.vue.js → Chips.vue2.js} +2 -2
- package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Countdown/Countdown.vue.cjs +4 -4
- package/dist/martyrs/src/components/Countdown/Countdown.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Countdown/Countdown.vue.js +4 -4
- package/dist/martyrs/src/components/Countdown/Countdown.vue.js.map +1 -1
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.cjs +28 -19
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js +29 -20
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js.map +1 -1
- package/dist/martyrs/src/components/Feed/Carousel.vue.cjs +20 -9
- package/dist/martyrs/src/components/Feed/Carousel.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Carousel.vue.js +22 -11
- package/dist/martyrs/src/components/Feed/Carousel.vue.js.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +29 -26
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +45 -42
- package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/martyrs/src/components/Field/{Field.vue2.cjs → Field.vue.cjs} +15 -9
- package/dist/martyrs/src/components/Field/Field.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Field/{Field.vue2.js → Field.vue.js} +16 -10
- package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -0
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs +25 -24
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +27 -26
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js.map +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.js +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.cjs +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.js +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Menu/MenuItem.vue.cjs +1 -1
- package/dist/martyrs/src/components/Menu/MenuItem.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Menu/MenuItem.vue.js +1 -1
- package/dist/martyrs/src/components/Menu/MenuItem.vue.js.map +1 -1
- package/dist/martyrs/src/components/Select/Select.vue.cjs +27 -15
- package/dist/martyrs/src/components/Select/Select.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Select/Select.vue.js +28 -16
- package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -1
- package/dist/martyrs/src/components/Status/Snack.vue.cjs +63 -0
- package/dist/martyrs/src/components/Status/Snack.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Status/Snack.vue.js +63 -0
- package/dist/martyrs/src/components/Status/Snack.vue.js.map +1 -0
- package/dist/martyrs/src/components/Tab/Tab.vue2.cjs +2 -2
- package/dist/martyrs/src/components/Tab/Tab.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/Tab/Tab.vue2.js +2 -2
- package/dist/martyrs/src/components/Tab/Tab.vue2.js.map +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +3 -2
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +3 -2
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.cjs +0 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.js +0 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +5 -5
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +5 -5
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +1 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +1 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +10 -10
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +5 -5
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +6 -6
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +5 -5
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +23 -23
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.cjs +3 -3
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js +3 -3
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs +2 -2
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs +4 -4
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +4 -4
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Blog.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Blog.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Blog.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Blog.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +2 -4
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +2 -4
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +3 -3
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +12 -12
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js.map +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Card.vue.cjs +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Card.vue.js +3 -3
- package/dist/martyrs/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Embed.vue.js +2 -2
- package/dist/martyrs/src/modules/constructor/components/sections/Viewer.vue.cjs +1 -1
- package/dist/martyrs/src/modules/constructor/components/sections/Viewer.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/constructor/components/sections/Viewer.vue.js +1 -1
- package/dist/martyrs/src/modules/constructor/components/sections/Viewer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs +33 -30
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +36 -33
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +3 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +26 -25
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +15 -15
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +8 -8
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +8 -8
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +3 -3
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +3 -3
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.cjs +9 -5
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.js +9 -5
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs +18 -24
- package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js +19 -25
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.cjs +3 -3
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js +3 -3
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -3
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -3
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/locales/en.cjs +9 -1
- package/dist/martyrs/src/modules/globals/locales/en.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/locales/en.js +9 -1
- package/dist/martyrs/src/modules/globals/locales/en.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.store.cjs +5 -2
- package/dist/martyrs/src/modules/globals/views/classes/globals.store.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.store.js +5 -2
- package/dist/martyrs/src/modules/globals/views/classes/globals.store.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +16 -15
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue.js +17 -16
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +16 -20
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +16 -20
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +14 -7
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +14 -7
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +11 -3
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +11 -3
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/CitySelection.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/CitySelection.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/CitySelection.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/CitySelection.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/plugins/date-picker.plugin.cjs +17 -7
- package/dist/martyrs/src/modules/globals/views/plugins/date-picker.plugin.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/plugins/date-picker.plugin.js +18 -8
- package/dist/martyrs/src/modules/globals/views/plugins/date-picker.plugin.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/router/addRoutes.cjs +4 -1
- package/dist/martyrs/src/modules/globals/views/router/addRoutes.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/router/addRoutes.js +4 -1
- package/dist/martyrs/src/modules/globals/views/router/addRoutes.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/store/globals.cjs +30 -0
- package/dist/martyrs/src/modules/globals/views/store/globals.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/store/globals.js +30 -0
- package/dist/martyrs/src/modules/globals/views/store/globals.js.map +1 -1
- package/dist/martyrs/src/modules/icons/actions/IconOpenLink.vue.cjs +32 -0
- package/dist/martyrs/src/modules/icons/actions/IconOpenLink.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/icons/actions/IconOpenLink.vue.js +32 -0
- package/dist/martyrs/src/modules/icons/actions/IconOpenLink.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconInfo.vue.cjs +4 -2
- package/dist/martyrs/src/modules/icons/entities/IconInfo.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/entities/IconInfo.vue.js +5 -3
- package/dist/martyrs/src/modules/icons/entities/IconInfo.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/icons.client.cjs +4 -0
- package/dist/martyrs/src/modules/icons/icons.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/icons.client.js +108 -104
- package/dist/martyrs/src/modules/icons/icons.client.js.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +3 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js +138 -136
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs +1 -1
- package/dist/martyrs/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/skeletons/SkeletonEventShort.vue.js +1 -1
- package/dist/martyrs/src/modules/icons/skeletons/SkeletonEventShort.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/socials/telegram.vue.cjs +11 -7
- package/dist/martyrs/src/modules/icons/socials/telegram.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/socials/telegram.vue.js +11 -7
- package/dist/martyrs/src/modules/icons/socials/telegram.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.cjs +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.cjs +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.cjs +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.cjs +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionJoinUs.vue.cjs +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionJoinUs.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionJoinUs.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionJoinUs.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.cjs +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs +0 -13
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js +0 -13
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +14 -14
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +19 -19
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +13 -13
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +22 -22
- package/dist/martyrs/src/modules/music/components/layouts/MusicLayout.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/layouts/MusicLayout.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +11 -11
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +1 -1
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs +2 -2
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +2 -2
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.cjs +8 -8
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js +8 -8
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +98 -73
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js +99 -74
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +82 -57
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +82 -57
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +22 -14
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +22 -14
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +205 -36
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +208 -39
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.cjs +20 -11
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js +20 -11
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.js +5 -5
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/Succes.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/Succes.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.cjs +6 -0
- package/dist/martyrs/src/modules/orders/orders.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.js +6 -0
- package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
- package/dist/martyrs/src/modules/orders/store/shopcart.cjs +75 -94
- package/dist/martyrs/src/modules/orders/store/shopcart.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/store/shopcart.js +75 -94
- package/dist/martyrs/src/modules/orders/store/shopcart.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +11 -3
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +11 -3
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -3
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +16 -17
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +3 -3
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +16 -16
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +8 -8
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +3 -3
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +3 -3
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/organizations.client.cjs +0 -3
- package/dist/martyrs/src/modules/organizations/organizations.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/organizations.client.js +18 -21
- package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.cjs +0 -2
- package/dist/martyrs/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.js +0 -2
- package/dist/martyrs/src/modules/organizations/router/organizations.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -2
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -2
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -2
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -2
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.cjs +7 -4
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js +7 -4
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.cjs +18 -21
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js +19 -22
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +48 -45
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +49 -46
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +13 -21
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +23 -31
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +29 -18
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +29 -18
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +5 -7
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +21 -23
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +3 -2
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +3 -2
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +6 -6
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +12 -12
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.cjs +11 -3
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.js +11 -3
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs +8 -16
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js +8 -16
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +80 -61
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +100 -81
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.cjs +3 -3
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/HeroRecommendation.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/HeroRecommendation.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/HeroRecommendation.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs +8 -14
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +9 -15
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +3 -3
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/products.client.cjs +1 -13
- package/dist/martyrs/src/modules/products/products.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/products.client.js +36 -48
- package/dist/martyrs/src/modules/products/products.client.js.map +1 -1
- package/dist/martyrs/src/modules/products/store/products.cjs +4 -4
- package/dist/martyrs/src/modules/products/store/products.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/store/products.js +4 -4
- package/dist/martyrs/src/modules/products/store/products.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.cjs +3 -3
- package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.js +3 -3
- package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.cjs +12 -4
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +15 -7
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +41 -33
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +42 -34
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +0 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js +0 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +0 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +0 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +13 -13
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +8 -8
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +4 -4
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js.map +1 -1
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +20 -20
- package/dist/music.server.cjs +3 -3
- package/dist/music.server.js +3 -3
- package/dist/notifications.server.cjs +1 -1
- package/dist/notifications.server.js +1 -1
- package/dist/orders.server.cjs +155 -64
- package/dist/orders.server.js +155 -64
- package/dist/organizations.server.cjs +25 -4
- package/dist/organizations.server.js +25 -4
- package/dist/{ownership.schema-CCZX5vfw.js → ownership.schema-BqH4v5vH.js} +2 -2
- package/dist/{ownership.schema-DCosqOc1.cjs → ownership.schema-D1p5XSpt.cjs} +2 -2
- package/dist/products.server.cjs +64 -288
- package/dist/products.server.js +64 -288
- package/dist/rents.server.cjs +35 -13
- package/dist/rents.server.js +35 -13
- package/dist/style.css +198 -201
- package/dist/wallet.server.cjs +1 -1
- package/dist/wallet.server.js +1 -1
- package/dist/web-BXhlxo6M.cjs +1 -0
- package/dist/web-Czi05iGG.js +54 -0
- package/package.json +1 -1
- package/src/builder/rspack/rspack.config.base.js +14 -0
- package/src/components/Breadcrumbs/Breadcrumbs.vue +200 -62
- package/src/components/Button/Button.vue +1 -1
- package/src/components/Calendar/Calendar.vue +53 -3
- package/src/components/Countdown/Countdown.vue +4 -4
- package/src/components/DatePicker/DatePicker.vue +32 -22
- package/src/components/Feed/Carousel.vue +18 -3
- package/src/components/Feed/Feed.vue +24 -31
- package/src/components/Field/Field.vue +9 -31
- package/src/components/FieldBig/FieldBig.vue +17 -18
- package/src/components/Loader/Loader.vue +1 -8
- package/src/components/Menu/MenuItem.vue +1 -1
- package/src/components/Select/Select.vue +19 -27
- package/src/components/Status/Snack.vue +4 -2
- package/src/components/Tab/Tab.vue +2 -2
- package/src/components/UploadImageMultiple/UploadImageMultiple.vue +9 -14
- package/src/main.js +2 -0
- package/src/modules/auth/controllers/middlewares/authJwt.js +0 -29
- package/src/modules/auth/views/components/pages/ResetPassword.vue +1 -1
- package/src/modules/auth/views/components/pages/SignIn.vue +1 -1
- package/src/modules/auth/views/components/pages/SignUp.vue +1 -1
- package/src/modules/auth/views/components/sections/FeaturedUsers.vue +1 -1
- package/src/modules/backoffice/components/admin/Users.vue +1 -1
- package/src/modules/backoffice/components/partials/Sidebar.vue +3 -3
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/layouts/Community.vue +5 -5
- package/src/modules/community/components/pages/Blog.vue +1 -1
- package/src/modules/community/components/sections/Comments.vue +1 -1
- package/src/modules/constructor/components/sections/Viewer.vue +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +35 -29
- package/src/modules/events/components/pages/Event.vue +4 -3
- package/src/modules/events/components/pages/Events.vue +3 -3
- package/src/modules/events/components/pages/EventsBackoffice.vue +1 -1
- package/src/modules/events/components/sections/FeaturedEvents.vue +8 -4
- package/src/modules/events/components/sections/List.vue +17 -18
- package/src/modules/events/components/sections/SelectDate.vue +2 -2
- package/src/modules/files/controllers/files.controller.js +14 -3
- package/src/modules/files/middlewares/server/middlewareBusboy.js +46 -17
- package/src/modules/globals/controllers/classes/crud/crud.controller.js +5 -2
- package/src/modules/globals/controllers/classes/crud/crud.js +1 -1
- package/src/modules/globals/controllers/classes/crud/crud.service.js +0 -1
- package/src/modules/globals/controllers/classes/globals.abac.js +1 -1
- package/src/modules/globals/locales/en.js +8 -0
- package/src/modules/globals/models/schemas/ownership.schema.js +2 -2
- package/src/modules/globals/views/classes/globals.store.js +8 -2
- package/src/modules/globals/views/components/blocks/BlockSearch.vue +12 -17
- package/src/modules/globals/views/components/blocks/CardHeader.vue +9 -11
- package/src/modules/globals/views/components/blocks/PopupDateSelector.vue +19 -9
- package/src/modules/globals/views/components/layouts/Client.vue +15 -9
- package/src/modules/globals/views/components/partials/CitySelection.vue +1 -1
- package/src/modules/globals/views/components/partials/FooterAlt.vue +1 -1
- package/src/modules/globals/views/components/partials/Sidebar.vue +1 -1
- package/src/modules/globals/views/components/sections/Walkthrough.vue +2 -2
- package/src/modules/globals/views/plugins/date-picker.plugin.js +17 -7
- package/src/modules/globals/views/router/addRoutes.js +4 -1
- package/src/modules/globals/views/store/globals.js +1 -1
- package/src/modules/icons/actions/IconOpenLink.vue +14 -0
- package/src/modules/icons/entities/IconInfo.vue +2 -2
- package/src/modules/icons/icons.client.js +8 -0
- package/src/modules/icons/pages/IconsPage.vue +2 -0
- package/src/modules/icons/skeletons/SkeletonEventShort.vue +2 -2
- package/src/modules/icons/socials/telegram.vue +2 -2
- package/src/modules/inventory/components/forms/AdjustmentForm.vue +225 -0
- package/src/modules/inventory/components/forms/ColumnSettingsMenu.vue +80 -0
- package/src/modules/inventory/components/forms/HistoryView.vue +134 -0
- package/src/modules/inventory/components/forms/StockAlertsForm.vue +181 -0
- package/src/modules/{products/components/pages/Leftovers.vue → inventory/components/pages/Inventory.vue} +60 -41
- package/src/modules/{products/components/pages/LeftoverEdit.vue → inventory/components/pages/InventoryEdit.vue} +131 -86
- package/src/modules/inventory/docs/README.md +291 -0
- package/src/modules/inventory/inventory.client.js +65 -0
- package/src/modules/inventory/inventory.server.js +8 -5
- package/src/modules/inventory/middlewares/stock.alerts.verifier.js +194 -0
- package/src/modules/inventory/models/stock.alerts.model.js +45 -0
- package/src/modules/inventory/models/stock.audit.model.js +60 -0
- package/src/modules/inventory/models/stock.availability.model.js +6 -6
- package/src/modules/inventory/policies/inventory.policies.js +28 -28
- package/src/modules/inventory/router/inventory.router.js +28 -0
- package/src/modules/inventory/routes/inventory.routes.js +8 -4
- package/src/modules/inventory/routes/stock.alerts.routes.js +43 -0
- package/src/modules/inventory/services/inventory.crud.js +204 -21
- package/src/modules/inventory/services/inventory.verifier.js +67 -11
- package/src/modules/inventory/store/ inventory.store.js +4 -2
- package/src/modules/inventory/store/stock.alerts.store.js +5 -0
- package/src/modules/inventory/tests/inventory.test.js +281 -0
- package/src/modules/landing/components/sections/SectionEarn.vue +1 -1
- package/src/modules/landing/components/sections/SectionFeature.vue +1 -1
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +1 -1
- package/src/modules/landing/components/sections/SectionFocus.vue +1 -1
- package/src/modules/landing/components/sections/SectionGuide.vue +1 -1
- package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
- package/src/modules/landing/components/sections/SectionHeroVideo.vue +2 -2
- package/src/modules/landing/components/sections/SectionJoinUs.vue +1 -1
- package/src/modules/landing/components/sections/SectionMobileApp.vue +1 -1
- package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
- package/src/modules/marketplace/views/components/layouts/Marketplace.vue +14 -14
- package/src/modules/notifications/components/elements/NotificationBadge.vue +1 -1
- package/src/modules/orders/components/blocks/CardOrder.vue +7 -7
- package/src/modules/orders/components/blocks/CardOrderItem.vue +96 -91
- package/src/modules/orders/components/blocks/CardOrderUser.vue +1 -1
- package/src/modules/orders/components/elements/PriceTotal.vue +1 -1
- package/src/modules/orders/components/pages/Favorites.vue +1 -1
- package/src/modules/orders/components/pages/OrderBackoffice.vue +59 -29
- package/src/modules/orders/components/pages/OrderCreate.vue +15 -7
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +201 -16
- package/src/modules/orders/components/pages/Orders_refact.vue +3 -3
- package/src/modules/orders/components/partials/ShopCart.vue +17 -8
- package/src/modules/orders/components/sections/Succes.vue +1 -1
- package/src/modules/orders/controllers/orders.controller.js +175 -77
- package/src/modules/orders/orders.client.js +6 -0
- package/src/modules/orders/routes/orders.routes.js +15 -10
- package/src/modules/orders/store/shopcart.js +54 -131
- package/src/modules/organizations/components/blocks/CardOrganization.vue +9 -1
- package/src/modules/organizations/components/blocks/Rating.vue +1 -1
- package/src/modules/organizations/components/pages/Department.vue +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +0 -1
- package/src/modules/organizations/components/pages/Organization.vue +2 -2
- package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +3 -3
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- package/src/modules/organizations/components/sections/DetailsTabSection.vue +1 -1
- package/src/modules/organizations/configs/navigation.organization.config.js +3 -3
- package/src/modules/organizations/controllers/utils/lookupConfigs.js +22 -1
- package/src/modules/organizations/models/schemas/accesses.schema.js +1 -1
- package/src/modules/organizations/organizations.client.js +0 -3
- package/src/modules/organizations/router/organizations.js +0 -2
- package/src/modules/products/components/blocks/CardProduct.vue +1 -1
- package/src/modules/products/components/blocks/ProductVariants.vue +5 -5
- package/src/modules/products/components/elements/Price.vue +1 -1
- package/src/modules/products/components/forms/StockHistoryView.vue +4 -4
- package/src/modules/products/components/pages/Categories.vue +4 -2
- package/src/modules/products/components/pages/CategoryEdit.vue +23 -10
- package/src/modules/products/components/pages/Product.vue +28 -78
- package/src/modules/products/components/pages/ProductEdit.vue +3 -12
- package/src/modules/products/components/pages/Products.vue +3 -2
- package/src/modules/products/components/sections/EditIngredients.vue +11 -2
- package/src/modules/products/components/sections/EditRecommended.vue +3 -14
- package/src/modules/products/components/sections/EditVariants.vue +52 -25
- package/src/modules/products/components/sections/FilterProducts.vue +3 -3
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
- package/src/modules/products/components/sections/ProductConfigurator.vue +5 -11
- package/src/modules/products/components/sections/SectionProduct.vue +2 -2
- package/src/modules/products/controllers/configs/products.lookup.config.js +52 -80
- package/src/modules/products/controllers/products.controller.js +2 -2
- package/src/modules/products/middlewares/variants.verifier.js +1 -1
- package/src/modules/products/products.client.js +0 -12
- package/src/modules/products/products.server.js +0 -8
- package/src/modules/products/routes/variants.routes.js +0 -59
- package/src/modules/products/store/products.js +4 -4
- package/src/modules/rents/controllers/services/rents.services.js +41 -11
- package/src/modules/rents/models/rent.model.js +1 -0
- package/src/modules/rents/views/components/pages/GanttChart.vue +1 -1
- package/src/modules/rents/views/components/pages/RentsEdit.vue +10 -2
- package/src/modules/spots/components/blocks/CardSpot.vue +14 -11
- package/src/modules/spots/components/pages/Spot.vue +1 -1
- package/src/modules/wallet/views/components/pages/Wallet.vue +2 -2
- package/src/styles/base/all.scss +10 -1
- package/src/styles/base/borders.scss +234 -155
- package/src/styles/layout.scss +36 -0
- package/src/styles/typography.scss +12 -4
- package/dist/Media-B2jWzwLB.cjs +0 -1
- package/dist/Media-DZ5_ItXQ.js +0 -111
- package/dist/main-C6_DPWGX.cjs +0 -11
- package/dist/martyrs/src/components/Button/Button.vue.js.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.js.map +0 -1
- package/dist/martyrs/src/components/Field/Field.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Field/Field.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs +0 -184
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js +0 -184
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterOptions.vue.cjs +0 -67
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterOptions.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterOptions.vue.js +0 -67
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterOptions.vue.js.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterPrice.vue.cjs +0 -91
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterPrice.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterPrice.vue.js +0 -91
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterPrice.vue.js.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterRange.vue2.cjs +0 -64
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterRange.vue2.cjs.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterRange.vue2.js +0 -64
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterRange.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/EditArray.vue.cjs +0 -80
- package/dist/martyrs/src/modules/organizations/components/blocks/EditArray.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/EditArray.vue.js +0 -80
- package/dist/martyrs/src/modules/organizations/components/blocks/EditArray.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardLeftover.vue.cjs +0 -118
- package/dist/martyrs/src/modules/products/components/blocks/CardLeftover.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardLeftover.vue.js +0 -118
- package/dist/martyrs/src/modules/products/components/blocks/CardLeftover.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/ColumnSettingsMenu.vue.cjs +0 -73
- package/dist/martyrs/src/modules/products/components/forms/ColumnSettingsMenu.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/ColumnSettingsMenu.vue.js +0 -73
- package/dist/martyrs/src/modules/products/components/forms/ColumnSettingsMenu.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/ReorderSettingsForm.vue.cjs +0 -101
- package/dist/martyrs/src/modules/products/components/forms/ReorderSettingsForm.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/ReorderSettingsForm.vue.js +0 -101
- package/dist/martyrs/src/modules/products/components/forms/ReorderSettingsForm.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/StockAuditForm.vue.cjs +0 -135
- package/dist/martyrs/src/modules/products/components/forms/StockAuditForm.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/StockAuditForm.vue.js +0 -135
- package/dist/martyrs/src/modules/products/components/forms/StockAuditForm.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/StockHistoryView.vue.cjs +0 -148
- package/dist/martyrs/src/modules/products/components/forms/StockHistoryView.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/StockHistoryView.vue.js +0 -148
- package/dist/martyrs/src/modules/products/components/forms/StockHistoryView.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.cjs +0 -345
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.js +0 -345
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs +0 -316
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js +0 -316
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/router/leftovers.router.cjs +0 -51
- package/dist/martyrs/src/modules/products/router/leftovers.router.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/router/leftovers.router.js +0 -51
- package/dist/martyrs/src/modules/products/router/leftovers.router.js.map +0 -1
- package/dist/martyrs/src/modules/products/store/leftovers.cjs +0 -111
- package/dist/martyrs/src/modules/products/store/leftovers.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/store/leftovers.js +0 -111
- package/dist/martyrs/src/modules/products/store/leftovers.js.map +0 -1
- package/src/modules/inventory/models/stock.inventory.model.js +0 -38
- package/src/modules/organizations/components/blocks/EditArray.vue +0 -147
- package/src/modules/products/components/blocks/CardLeftover.vue +0 -117
- package/src/modules/products/controllers/leftovers.controller.js +0 -117
- package/src/modules/products/models/leftover.model.js +0 -105
- package/src/modules/products/router/leftovers.router.js +0 -40
- package/src/modules/products/routes/leftovers.routes.js +0 -15
- package/src/modules/products/store/leftovers.js +0 -121
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const vueRouter = require("vue-router");
|
|
5
|
-
const Table = require("../../../../components/Table/Table.vue.cjs");
|
|
6
|
-
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
|
7
|
-
const PlaceholderImage = require("../../../icons/placeholders/PlaceholderImage.vue.cjs");
|
|
8
|
-
const Dropdown = require("../../../../components/Dropdown/Dropdown.vue.cjs");
|
|
9
|
-
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
|
10
|
-
const IconSettings = require("../../../icons/entities/IconSettings.vue.cjs");
|
|
11
|
-
const IconEllipsis = require("../../../icons/navigation/IconEllipsis.vue.cjs");
|
|
12
|
-
const StockAuditForm = require("../forms/StockAuditForm.vue.cjs");
|
|
13
|
-
const ReorderSettingsForm = require("../forms/ReorderSettingsForm.vue.cjs");
|
|
14
|
-
const StockHistoryView = require("../forms/StockHistoryView.vue.cjs");
|
|
15
|
-
const ColumnSettingsMenu = require("../forms/ColumnSettingsMenu.vue.cjs");
|
|
16
|
-
const products = require("../../store/products.cjs");
|
|
17
|
-
const leftovers = require("../../store/leftovers.cjs");
|
|
18
|
-
;/* empty css */
|
|
19
|
-
const _hoisted_1 = { class: "pd-thin" };
|
|
20
|
-
const _hoisted_2 = { class: "mn-b-medium flex-v-center flex-nowrap flex" };
|
|
21
|
-
const _hoisted_3 = { class: "flex gap-small flex-nowrap flex-v-center" };
|
|
22
|
-
const _hoisted_4 = ["src"];
|
|
23
|
-
const _hoisted_5 = { class: "t-nowrap" };
|
|
24
|
-
const _hoisted_6 = { key: 1 };
|
|
25
|
-
const _hoisted_7 = { class: "flex-column flex" };
|
|
26
|
-
const _hoisted_8 = { class: "d-block mn-b-thin" };
|
|
27
|
-
const _hoisted_9 = { class: "w-100 h-micro radius-thin bg-light" };
|
|
28
|
-
const _hoisted_10 = { class: "bg-white radius-small" };
|
|
29
|
-
const _hoisted_11 = ["onClick"];
|
|
30
|
-
const _hoisted_12 = ["onClick"];
|
|
31
|
-
const _hoisted_13 = ["onClick"];
|
|
32
|
-
const _sfc_main = {
|
|
33
|
-
__name: "Leftovers",
|
|
34
|
-
setup(__props) {
|
|
35
|
-
const route = vueRouter.useRoute();
|
|
36
|
-
const router = vueRouter.useRouter();
|
|
37
|
-
const sort = vue.ref({
|
|
38
|
-
param: "available",
|
|
39
|
-
order: "asc",
|
|
40
|
-
options: [
|
|
41
|
-
{ label: "Available", value: "available" },
|
|
42
|
-
{ label: "Name", value: "name" },
|
|
43
|
-
{ label: "Price", value: "price" },
|
|
44
|
-
{ label: "Created", value: "createdAt" }
|
|
45
|
-
]
|
|
46
|
-
});
|
|
47
|
-
const filter = vue.reactive({
|
|
48
|
-
active: false,
|
|
49
|
-
class: "",
|
|
50
|
-
selected: { category: [], stockLevel: [] },
|
|
51
|
-
options: [
|
|
52
|
-
{ title: "Categories", value: "category", options: [] },
|
|
53
|
-
{
|
|
54
|
-
title: "Stock Level",
|
|
55
|
-
value: "stockLevel",
|
|
56
|
-
options: [
|
|
57
|
-
{ label: "Low", value: "low" },
|
|
58
|
-
{ label: "Medium", value: "medium" },
|
|
59
|
-
{ label: "High", value: "high" }
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
});
|
|
64
|
-
const columns = vue.reactive([
|
|
65
|
-
{ key: "name", label: "Product Name", component: true, visible: true },
|
|
66
|
-
{ key: "category", label: "Categories", component: true, visible: true },
|
|
67
|
-
{ key: "supplier", label: "Supplier", visible: true },
|
|
68
|
-
{ key: "available", label: "Available", component: true, visible: true },
|
|
69
|
-
{ key: "price", label: "Unit Price", component: true, visible: true },
|
|
70
|
-
{ key: "actions", label: "", component: true, visible: true }
|
|
71
|
-
]);
|
|
72
|
-
const showAuditModal = vue.ref(false);
|
|
73
|
-
const showReorderModal = vue.ref(false);
|
|
74
|
-
const showHistoryModal = vue.ref(false);
|
|
75
|
-
const showSettingsModal = vue.ref(false);
|
|
76
|
-
const selectedProduct = vue.ref(null);
|
|
77
|
-
function openStockAudit(row) {
|
|
78
|
-
selectedProduct.value = row;
|
|
79
|
-
showAuditModal.value = true;
|
|
80
|
-
}
|
|
81
|
-
function openReorderSettings(row = null) {
|
|
82
|
-
selectedProduct.value = row;
|
|
83
|
-
showReorderModal.value = true;
|
|
84
|
-
}
|
|
85
|
-
function openStockHistory(row) {
|
|
86
|
-
selectedProduct.value = row;
|
|
87
|
-
showHistoryModal.value = true;
|
|
88
|
-
}
|
|
89
|
-
function openViewSettings() {
|
|
90
|
-
showSettingsModal.value = true;
|
|
91
|
-
}
|
|
92
|
-
async function handleAuditSave(audit) {
|
|
93
|
-
var _a, _b, _c;
|
|
94
|
-
try {
|
|
95
|
-
await leftovers.actions.create({
|
|
96
|
-
organization: route.params._id,
|
|
97
|
-
type: audit.discrepancy > 0 ? "stock-in" : "stock-out",
|
|
98
|
-
comment: audit.note,
|
|
99
|
-
positions: [{
|
|
100
|
-
_id: selectedProduct.value._id,
|
|
101
|
-
name: selectedProduct.value.name,
|
|
102
|
-
quantity: Math.abs(audit.discrepancy),
|
|
103
|
-
price: selectedProduct.value.price || 0,
|
|
104
|
-
type: "pcs"
|
|
105
|
-
}],
|
|
106
|
-
creator: {
|
|
107
|
-
type: "user",
|
|
108
|
-
target: (_c = (_b = (_a = window.auth) == null ? void 0 : _a.state) == null ? void 0 : _b.user) == null ? void 0 : _c._id
|
|
109
|
-
},
|
|
110
|
-
owner: {
|
|
111
|
-
type: "organization",
|
|
112
|
-
target: route.params._id
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
showAuditModal.value = false;
|
|
116
|
-
} catch (err) {
|
|
117
|
-
console.error(err);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
async function handleReorderSave(settings) {
|
|
121
|
-
var _a;
|
|
122
|
-
alert(`Reorder threshold set to ${settings.threshold} for ${((_a = selectedProduct.value) == null ? void 0 : _a.name) || "all products"}`);
|
|
123
|
-
showReorderModal.value = false;
|
|
124
|
-
}
|
|
125
|
-
function handleColumnsUpdate(updated) {
|
|
126
|
-
leftovers.mutations.updateColumnSettings(updated);
|
|
127
|
-
showSettingsModal.value = false;
|
|
128
|
-
}
|
|
129
|
-
return (_ctx, _cache) => {
|
|
130
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
131
|
-
vue.createElementVNode("header", _hoisted_2, [
|
|
132
|
-
_cache[11] || (_cache[11] = vue.createElementVNode("h2", null, "Leftovers", -1)),
|
|
133
|
-
vue.createElementVNode("button", {
|
|
134
|
-
onClick: _cache[0] || (_cache[0] = ($event) => vue.unref(router).push({ name: "LeftoverAdd" })),
|
|
135
|
-
class: "mn-l-small radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second",
|
|
136
|
-
innerHTML: "+"
|
|
137
|
-
})
|
|
138
|
-
]),
|
|
139
|
-
vue.createVNode(Feed.default, {
|
|
140
|
-
search: true,
|
|
141
|
-
filter,
|
|
142
|
-
"onUpdate:filter": _cache[1] || (_cache[1] = ($event) => filter = $event),
|
|
143
|
-
sort: sort.value,
|
|
144
|
-
"onUpdate:sort": _cache[2] || (_cache[2] = ($event) => sort.value = $event),
|
|
145
|
-
store: {
|
|
146
|
-
read: (options) => products.actions.read(options),
|
|
147
|
-
state: products.state
|
|
148
|
-
},
|
|
149
|
-
actions: [{
|
|
150
|
-
key: "settings",
|
|
151
|
-
component: IconSettings.default,
|
|
152
|
-
props: {
|
|
153
|
-
class: "h-3r pd-r-small pd-l-small flex-center flex bg-light t-black radius-small hover-scale-1 cursor-pointer"
|
|
154
|
-
},
|
|
155
|
-
handler: openViewSettings
|
|
156
|
-
}],
|
|
157
|
-
options: {
|
|
158
|
-
limit: 15,
|
|
159
|
-
lookup: ["leftovers", "categories"],
|
|
160
|
-
owner: vue.unref(route).params._id,
|
|
161
|
-
sortParam: sort.value.param,
|
|
162
|
-
sortOrder: sort.value.order
|
|
163
|
-
}
|
|
164
|
-
}, {
|
|
165
|
-
default: vue.withCtx(({ items }) => [
|
|
166
|
-
vue.createVNode(Table.default, {
|
|
167
|
-
columns: columns.filter((col) => col.visible),
|
|
168
|
-
items,
|
|
169
|
-
class: "bg-white z-index-1 br-solid br-1px br-light radius-medium"
|
|
170
|
-
}, {
|
|
171
|
-
"cell-name": vue.withCtx(({ row }) => {
|
|
172
|
-
var _a;
|
|
173
|
-
return [
|
|
174
|
-
vue.createElementVNode("div", _hoisted_3, [
|
|
175
|
-
((_a = row.images) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
176
|
-
key: 0,
|
|
177
|
-
src: (_ctx.FILE_SERVER_URL || "") + row.images[0],
|
|
178
|
-
alt: "Product",
|
|
179
|
-
class: "w-3r h-3r radius-small bg-light object-fit-cover"
|
|
180
|
-
}, null, 8, _hoisted_4)) : (vue.openBlock(), vue.createBlock(PlaceholderImage.default, {
|
|
181
|
-
key: 1,
|
|
182
|
-
class: "w-3r h-3r radius-small"
|
|
183
|
-
})),
|
|
184
|
-
vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(row.name), 1)
|
|
185
|
-
])
|
|
186
|
-
];
|
|
187
|
-
}),
|
|
188
|
-
"cell-category": vue.withCtx(({ row }) => [
|
|
189
|
-
row.category ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(row.category, (cat) => {
|
|
190
|
-
return vue.openBlock(), vue.createElementBlock("span", {
|
|
191
|
-
key: cat._id,
|
|
192
|
-
class: "pd-nano mn-r-micro pd-r-small pd-l-small radius-small bg-light t-small"
|
|
193
|
-
}, vue.toDisplayString(cat.name), 1);
|
|
194
|
-
}), 128)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_6, "="))
|
|
195
|
-
]),
|
|
196
|
-
"cell-supplier": vue.withCtx(({ row }) => {
|
|
197
|
-
var _a, _b, _c;
|
|
198
|
-
return [
|
|
199
|
-
vue.createTextVNode(vue.toDisplayString(((_c = (_b = (_a = row.owner) == null ? void 0 : _a.target) == null ? void 0 : _b.profile) == null ? void 0 : _c.name) || "-"), 1)
|
|
200
|
-
];
|
|
201
|
-
}),
|
|
202
|
-
"cell-available": vue.withCtx(({ row }) => [
|
|
203
|
-
vue.createElementVNode("div", _hoisted_7, [
|
|
204
|
-
vue.createElementVNode("span", _hoisted_8, vue.toDisplayString(row.available) + " · " + vue.toDisplayString(row.available <= 5 ? "Low" : row.available <= 10 ? "Medium" : "High"), 1),
|
|
205
|
-
vue.createElementVNode("div", _hoisted_9, [
|
|
206
|
-
vue.createElementVNode("div", {
|
|
207
|
-
class: vue.normalizeClass([
|
|
208
|
-
"h-100 radius-thin",
|
|
209
|
-
row.available <= 1 ? "bg-red t-white" : row.available <= 2 ? "bg-orange t-white" : "bg-green t-white"
|
|
210
|
-
]),
|
|
211
|
-
style: vue.normalizeStyle(`width: ${Math.min(
|
|
212
|
-
row.available / (row.alert !== void 0 ? row.alert : 50) * 100,
|
|
213
|
-
100
|
|
214
|
-
)}%`)
|
|
215
|
-
}, null, 6)
|
|
216
|
-
])
|
|
217
|
-
])
|
|
218
|
-
]),
|
|
219
|
-
"cell-price": vue.withCtx(({ row }) => [
|
|
220
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.formatPrice(row.price)), 1)
|
|
221
|
-
]),
|
|
222
|
-
"cell-actions": vue.withCtx(({ row }) => [
|
|
223
|
-
vue.createVNode(Dropdown.default, {
|
|
224
|
-
label: { component: IconEllipsis.default, class: "t-transp i-medium" },
|
|
225
|
-
class: "cursor-pointer aspect-1x1 pd-nano radius-small hover-bg-light",
|
|
226
|
-
align: "right"
|
|
227
|
-
}, {
|
|
228
|
-
default: vue.withCtx(() => [
|
|
229
|
-
vue.createElementVNode("div", _hoisted_10, [
|
|
230
|
-
vue.createElementVNode("button", {
|
|
231
|
-
onClick: ($event) => openStockAudit(row),
|
|
232
|
-
class: "cursor-pointer t-left t-nowrap w-100 pd-small"
|
|
233
|
-
}, " Audit Stock ", 8, _hoisted_11),
|
|
234
|
-
vue.createElementVNode("button", {
|
|
235
|
-
onClick: ($event) => openStockHistory(row),
|
|
236
|
-
class: "cursor-pointer t-left t-nowrap w-100 pd-small"
|
|
237
|
-
}, " Stock History ", 8, _hoisted_12),
|
|
238
|
-
vue.createElementVNode("button", {
|
|
239
|
-
onClick: ($event) => openReorderSettings(row),
|
|
240
|
-
class: "cursor-pointer t-left t-nowrap w-100 pd-small"
|
|
241
|
-
}, " Set Alerts ", 8, _hoisted_13)
|
|
242
|
-
])
|
|
243
|
-
]),
|
|
244
|
-
_: 2
|
|
245
|
-
}, 1032, ["label"])
|
|
246
|
-
]),
|
|
247
|
-
_: 2
|
|
248
|
-
}, 1032, ["columns", "items"])
|
|
249
|
-
]),
|
|
250
|
-
_: 1
|
|
251
|
-
}, 8, ["filter", "sort", "store", "actions", "options"]),
|
|
252
|
-
vue.createVNode(Popup.default, {
|
|
253
|
-
isPopupOpen: showAuditModal.value,
|
|
254
|
-
onClosePopup: _cache[4] || (_cache[4] = ($event) => showAuditModal.value = false),
|
|
255
|
-
title: "Audit Stock",
|
|
256
|
-
class: "bg-white radius-medium pd-medium w-min-40r"
|
|
257
|
-
}, {
|
|
258
|
-
default: vue.withCtx(() => [
|
|
259
|
-
vue.createVNode(StockAuditForm.default, {
|
|
260
|
-
product: selectedProduct.value,
|
|
261
|
-
onClose: _cache[3] || (_cache[3] = ($event) => showAuditModal.value = false),
|
|
262
|
-
onSave: handleAuditSave
|
|
263
|
-
}, null, 8, ["product"])
|
|
264
|
-
]),
|
|
265
|
-
_: 1
|
|
266
|
-
}, 8, ["isPopupOpen"]),
|
|
267
|
-
vue.createVNode(Popup.default, {
|
|
268
|
-
isPopupOpen: showReorderModal.value,
|
|
269
|
-
onClosePopup: _cache[6] || (_cache[6] = ($event) => showReorderModal.value = false),
|
|
270
|
-
title: "Set Automatic Reorder",
|
|
271
|
-
class: "bg-white radius-medium pd-medium w-min-30r"
|
|
272
|
-
}, {
|
|
273
|
-
default: vue.withCtx(() => [
|
|
274
|
-
vue.createVNode(ReorderSettingsForm.default, {
|
|
275
|
-
product: selectedProduct.value,
|
|
276
|
-
onClose: _cache[5] || (_cache[5] = ($event) => showReorderModal.value = false),
|
|
277
|
-
onSave: handleReorderSave
|
|
278
|
-
}, null, 8, ["product"])
|
|
279
|
-
]),
|
|
280
|
-
_: 1
|
|
281
|
-
}, 8, ["isPopupOpen"]),
|
|
282
|
-
vue.createVNode(Popup.default, {
|
|
283
|
-
isPopupOpen: showHistoryModal.value,
|
|
284
|
-
onClosePopup: _cache[8] || (_cache[8] = ($event) => showHistoryModal.value = false),
|
|
285
|
-
title: "Stock History",
|
|
286
|
-
class: "bg-white radius-medium pd-medium w-min-50r"
|
|
287
|
-
}, {
|
|
288
|
-
default: vue.withCtx(() => [
|
|
289
|
-
vue.createVNode(StockHistoryView.default, {
|
|
290
|
-
product: selectedProduct.value,
|
|
291
|
-
onClose: _cache[7] || (_cache[7] = ($event) => showHistoryModal.value = false)
|
|
292
|
-
}, null, 8, ["product"])
|
|
293
|
-
]),
|
|
294
|
-
_: 1
|
|
295
|
-
}, 8, ["isPopupOpen"]),
|
|
296
|
-
vue.createVNode(Popup.default, {
|
|
297
|
-
isPopupOpen: showSettingsModal.value,
|
|
298
|
-
onClosePopup: _cache[10] || (_cache[10] = ($event) => showSettingsModal.value = false),
|
|
299
|
-
title: "View Settings",
|
|
300
|
-
class: "bg-white radius-medium pd-medium w-min-30r"
|
|
301
|
-
}, {
|
|
302
|
-
default: vue.withCtx(() => [
|
|
303
|
-
vue.createVNode(ColumnSettingsMenu.default, {
|
|
304
|
-
columns,
|
|
305
|
-
onSave: handleColumnsUpdate,
|
|
306
|
-
onClose: _cache[9] || (_cache[9] = ($event) => showSettingsModal.value = false)
|
|
307
|
-
}, null, 8, ["columns"])
|
|
308
|
-
]),
|
|
309
|
-
_: 1
|
|
310
|
-
}, 8, ["isPopupOpen"])
|
|
311
|
-
]);
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
exports.default = _sfc_main;
|
|
316
|
-
//# sourceMappingURL=Leftovers.vue.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Leftovers.vue.cjs","sources":["../../../../../../../src/modules/products/components/pages/Leftovers.vue"],"sourcesContent":["<template>\n <div class=\"pd-thin\">\n <!-- Header -->\n <header class=\"mn-b-medium flex-v-center flex-nowrap flex\">\n <h2>Leftovers</h2>\n <button\n @click=\"router.push({ name: 'LeftoverAdd' })\"\n class=\"mn-l-small radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second\"\n v-html=\"'+'\"\n />\n </header>\n\n <!-- Products Feed -->\n <Feed\n :search=\"true\"\n v-model:filter=\"filter\"\n v-model:sort=\"sort\"\n :store=\"{\n read: (options) => products.actions.read(options),\n state: products.state\n }\"\n :actions=\"[{\n key: 'settings',\n component: IconSettings,\n props: {\n class: 'h-3r pd-r-small pd-l-small flex-center flex bg-light t-black radius-small hover-scale-1 cursor-pointer'\n },\n handler: openViewSettings\n }]\"\n :options=\"{\n limit: 15,\n lookup: ['leftovers','categories'],\n owner: route.params._id,\n sortParam: sort.param,\n sortOrder: sort.order\n }\"\n v-slot=\"{ items }\"\n >\n <Table\n :columns=\"columns.filter(col => col.visible)\"\n :items=\"items\"\n class=\"bg-white z-index-1 br-solid br-1px br-light radius-medium\"\n >\n <!-- Name column (was \"product\") -->\n <template #cell-name=\"{ row }\">\n <div class=\"flex gap-small flex-nowrap flex-v-center\">\n <img\n v-if=\"row.images?.length\"\n :src=\"(FILE_SERVER_URL || '') + row.images[0]\"\n alt=\"Product\"\n class=\"w-3r h-3r radius-small bg-light object-fit-cover\"\n />\n <PlaceholderImage v-else class=\"w-3r h-3r radius-small\" />\n <span class=\"t-nowrap\">{{ row.name }}</span>\n </div>\n </template>\n\n <!-- Categories -->\n <template #cell-category=\"{ row }\">\n <span\n v-if=\"row.category\"\n v-for=\"cat in row.category\"\n :key=\"cat._id\"\n class=\"pd-nano mn-r-micro pd-r-small pd-l-small radius-small bg-light t-small\"\n >\n {{ cat.name }}\n </span>\n <span v-else>=</span>\n </template>\n\n <!-- Supplier -->\n <template #cell-supplier=\"{ row }\">\n {{ row.owner?.target?.profile?.name || '-' }}\n </template>\n\n <!-- Available (replaces stock) -->\n <template #cell-available=\"{ row }\">\n <div class=\"flex-column flex\">\n <span class=\"d-block mn-b-thin\">\n {{ row.available }} ·\n {{ row.available <= 5 ? 'Low' : row.available <= 10 ? 'Medium' : 'High' }}\n </span>\n <div class=\"w-100 h-micro radius-thin bg-light\">\n <div\n class=\"h-100 radius-thin\"\n :class=\"\n row.available <= 1\n ? 'bg-red t-white'\n : row.available <= 2\n ? 'bg-orange t-white'\n : 'bg-green t-white'\n \"\n :style=\"`width: ${\n Math.min(\n (row.available / (row.alert !== undefined ? row.alert : 50)) * 100,\n 100\n )\n }%`\"\n />\n </div>\n </div>\n </template>\n <!-- Price -->\n <template #cell-price=\"{ row }\">\n {{ formatPrice(row.price) }}\n </template>\n\n <!-- Actions -->\n <template #cell-actions=\"{ row }\">\n <Dropdown\n :label=\"{ component: IconEllipsis, class: 't-transp i-medium' }\"\n class=\"cursor-pointer aspect-1x1 pd-nano radius-small hover-bg-light\"\n align=\"right\"\n >\n <div class=\"bg-white radius-small\">\n <button @click=\"openStockAudit(row)\" class=\"cursor-pointer t-left t-nowrap w-100 pd-small\">\n Audit Stock\n </button>\n <button @click=\"openStockHistory(row)\" class=\"cursor-pointer t-left t-nowrap w-100 pd-small\">\n Stock History\n </button>\n <button @click=\"openReorderSettings(row)\" class=\"cursor-pointer t-left t-nowrap w-100 pd-small\">\n Set Alerts\n </button>\n </div>\n </Dropdown>\n </template>\n </Table>\n </Feed>\n\n <!-- Modals -->\n <Popup\n :isPopupOpen=\"showAuditModal\"\n @close-popup=\"showAuditModal = false\"\n title=\"Audit Stock\"\n class=\"bg-white radius-medium pd-medium w-min-40r\"\n >\n <StockAuditForm\n :product=\"selectedProduct\"\n @close=\"showAuditModal = false\"\n @save=\"handleAuditSave\"\n />\n </Popup>\n\n <Popup\n :isPopupOpen=\"showReorderModal\"\n @close-popup=\"showReorderModal = false\"\n title=\"Set Automatic Reorder\"\n class=\"bg-white radius-medium pd-medium w-min-30r\"\n >\n <ReorderSettingsForm\n :product=\"selectedProduct\"\n @close=\"showReorderModal = false\"\n @save=\"handleReorderSave\"\n />\n </Popup>\n\n <Popup\n :isPopupOpen=\"showHistoryModal\"\n @close-popup=\"showHistoryModal = false\"\n title=\"Stock History\"\n class=\"bg-white radius-medium pd-medium w-min-50r\"\n >\n <StockHistoryView\n :product=\"selectedProduct\"\n @close=\"showHistoryModal = false\"\n />\n </Popup>\n\n <Popup\n :isPopupOpen=\"showSettingsModal\"\n @close-popup=\"showSettingsModal = false\"\n title=\"View Settings\"\n class=\"bg-white radius-medium pd-medium w-min-30r\"\n >\n <ColumnSettingsMenu\n :columns=\"columns\"\n @save=\"handleColumnsUpdate\"\n @close=\"showSettingsModal = false\"\n />\n </Popup>\n </div>\n</template>\n\n<script setup>\nimport { ref, reactive } from 'vue'\nimport { useRoute, useRouter } from 'vue-router'\n\n// Components\nimport Table from '@martyrs/src/components/Table/Table.vue'\nimport Feed from '@martyrs/src/components/Feed/Feed.vue'\nimport PlaceholderImage from '@martyrs/src/modules/icons/placeholders/PlaceholderImage.vue'\nimport Dropdown from '@martyrs/src/components/Dropdown/Dropdown.vue'\nimport Popup from '@martyrs/src/components/Popup/Popup.vue'\n\n// Icons\nimport IconSettings from '@martyrs/src/modules/icons/entities/IconSettings.vue'\nimport IconEllipsis from '@martyrs/src/modules/icons/navigation/IconEllipsis.vue'\n\n// Forms\nimport StockAuditForm from '../forms/StockAuditForm.vue'\nimport ReorderSettingsForm from '../forms/ReorderSettingsForm.vue'\nimport StockHistoryView from '../forms/StockHistoryView.vue'\nimport ColumnSettingsMenu from '../forms/ColumnSettingsMenu.vue'\n\n// Stores\nimport * as products from '@martyrs/src/modules/products/store/products.js'\nimport * as leftovers from '@martyrs/src/modules/products/store/leftovers.js'\n\n// Router\nconst route = useRoute()\nconst router = useRouter()\n\n// Feed controls\nconst sort = ref({\n param: 'available',\n order: 'asc',\n options: [\n { label: 'Available', value: 'available' },\n { label: 'Name', value: 'name' },\n { label: 'Price', value: 'price' },\n { label: 'Created', value: 'createdAt' }\n ]\n})\n\nconst filter = reactive({\n active: false,\n class: '',\n selected: { category: [], stockLevel: [] },\n options: [\n { title: 'Categories', value: 'category', options: [] },\n {\n title: 'Stock Level',\n value: 'stockLevel',\n options: [\n { label: 'Low', value: 'low' },\n { label: 'Medium', value: 'medium' },\n { label: 'High', value: 'high' }\n ]\n }\n ]\n})\n\n// Column definitions + visibility, combined into one\nconst columns = reactive([\n { key: 'name', label: 'Product Name', component: true, visible: true },\n { key: 'category', label: 'Categories', component: true, visible: true },\n { key: 'supplier', label: 'Supplier', visible: true },\n { key: 'available',label: 'Available', component: true, visible: true },\n { key: 'price', label: 'Unit Price', component: true, visible: true },\n { key: 'actions', label: '', component: true, visible: true }\n])\n\n// Modal & selection state\nconst showAuditModal = ref(false)\nconst showReorderModal = ref(false)\nconst showHistoryModal = ref(false)\nconst showSettingsModal = ref(false)\nconst selectedProduct = ref(null)\n\n// Handlers\nfunction openStockAudit(row) {\n selectedProduct.value = row\n showAuditModal.value = true\n}\nfunction openReorderSettings(row = null) {\n selectedProduct.value = row\n showReorderModal.value = true\n}\nfunction openStockHistory(row) {\n selectedProduct.value = row\n showHistoryModal.value = true\n}\nfunction openViewSettings() {\n showSettingsModal.value = true\n}\nasync function handleAuditSave(audit) {\n try {\n await leftovers.actions.create({\n organization: route.params._id,\n type: audit.discrepancy > 0 ? 'stock-in' : 'stock-out',\n comment: audit.note,\n positions: [{\n _id: selectedProduct.value._id,\n name: selectedProduct.value.name,\n quantity: Math.abs(audit.discrepancy),\n price: selectedProduct.value.price || 0,\n type: 'pcs'\n }],\n creator: {\n type: 'user',\n target: window.auth?.state?.user?._id\n },\n owner: {\n type: 'organization',\n target: route.params._id\n }\n })\n showAuditModal.value = false\n } catch (err) {\n console.error(err)\n }\n}\nasync function handleReorderSave(settings) {\n alert(`Reorder threshold set to ${settings.threshold} for ${selectedProduct.value?.name || 'all products'}`)\n showReorderModal.value = false\n}\nfunction handleColumnsUpdate(updated) {\n leftovers.mutations.updateColumnSettings(updated)\n showSettingsModal.value = false\n}\n</script>\n\n<style>\n.bg-orange {\n background-color: rgb(var(--orange));\n}\n</style>\n"],"names":["useRoute","useRouter","ref","reactive","leftovers.actions","leftovers.mutations"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkNA,UAAM,QAAQA,UAAQ,SAAA;AACtB,UAAM,SAASC,UAAS,UAAA;AAGxB,UAAM,OAAOC,IAAAA,IAAI;AAAA,MACf,OAAO;AAAA,MACP,OAAO;AAAA,MACP,SAAS;AAAA,QACP,EAAE,OAAO,aAAa,OAAO,YAAa;AAAA,QAC1C,EAAE,OAAO,QAAQ,OAAO,OAAQ;AAAA,QAChC,EAAE,OAAO,SAAS,OAAO,QAAS;AAAA,QAClC,EAAE,OAAO,WAAW,OAAO,YAAW;AAAA,MAC1C;AAAA,IACA,CAAC;AAED,UAAM,SAASC,IAAAA,SAAS;AAAA,MACtB,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,UAAU,EAAE,UAAU,IAAI,YAAY,CAAA,EAAI;AAAA,MAC1C,SAAS;AAAA,QACP,EAAE,OAAO,cAAc,OAAO,YAAY,SAAS,CAAA,EAAI;AAAA,QACvD;AAAA,UACE,OAAO;AAAA,UACP,OAAO;AAAA,UACP,SAAS;AAAA,YACP,EAAE,OAAO,OAAO,OAAO,MAAO;AAAA,YAC9B,EAAE,OAAO,UAAU,OAAO,SAAU;AAAA,YACpC,EAAE,OAAO,QAAQ,OAAO,OAAM;AAAA,UACtC;AAAA,QACA;AAAA,MACA;AAAA,IACA,CAAC;AAGD,UAAM,UAAUA,IAAAA,SAAS;AAAA,MACvB,EAAE,KAAK,QAAY,OAAO,gBAAgB,WAAW,MAAM,SAAS,KAAM;AAAA,MAC1E,EAAE,KAAK,YAAY,OAAO,cAAgB,WAAW,MAAM,SAAS,KAAM;AAAA,MAC1E,EAAE,KAAK,YAAY,OAAO,YAAgB,SAAS,KAAM;AAAA,MACzD,EAAE,KAAK,aAAY,OAAO,aAAgB,WAAW,MAAM,SAAS,KAAM;AAAA,MAC1E,EAAE,KAAK,SAAY,OAAO,cAAgB,WAAW,MAAM,SAAS,KAAM;AAAA,MAC1E,EAAE,KAAK,WAAY,OAAO,IAAgB,WAAW,MAAM,SAAS,KAAI;AAAA,IAC1E,CAAC;AAGD,UAAM,iBAAoBD,IAAG,IAAC,KAAK;AACnC,UAAM,mBAAoBA,IAAG,IAAC,KAAK;AACnC,UAAM,mBAAoBA,IAAG,IAAC,KAAK;AACnC,UAAM,oBAAoBA,IAAG,IAAC,KAAK;AACnC,UAAM,kBAAoBA,IAAG,IAAC,IAAI;AAGlC,aAAS,eAAe,KAAK;AAC3B,sBAAgB,QAAQ;AACxB,qBAAe,QAAQ;AAAA,IACzB;AACA,aAAS,oBAAoB,MAAM,MAAM;AACvC,sBAAgB,QAAQ;AACxB,uBAAiB,QAAQ;AAAA,IAC3B;AACA,aAAS,iBAAiB,KAAK;AAC7B,sBAAgB,QAAQ;AACxB,uBAAiB,QAAQ;AAAA,IAC3B;AACA,aAAS,mBAAmB;AAC1B,wBAAkB,QAAQ;AAAA,IAC5B;AACA,mBAAe,gBAAgB,OAAO;;AACpC,UAAI;AACF,cAAME,UAAAA,QAAkB,OAAO;AAAA,UAC7B,cAAc,MAAM,OAAO;AAAA,UAC3B,MAAM,MAAM,cAAc,IAAI,aAAa;AAAA,UAC3C,SAAS,MAAM;AAAA,UACf,WAAW,CAAC;AAAA,YACV,KAAK,gBAAgB,MAAM;AAAA,YAC3B,MAAM,gBAAgB,MAAM;AAAA,YAC5B,UAAU,KAAK,IAAI,MAAM,WAAW;AAAA,YACpC,OAAO,gBAAgB,MAAM,SAAS;AAAA,YACtC,MAAM;AAAA,UACd,CAAO;AAAA,UACD,SAAS;AAAA,YACP,MAAM;AAAA,YACN,SAAQ,wBAAO,SAAP,mBAAa,UAAb,mBAAoB,SAApB,mBAA0B;AAAA,UACnC;AAAA,UACD,OAAO;AAAA,YACL,MAAM;AAAA,YACN,QAAQ,MAAM,OAAO;AAAA,UAC7B;AAAA,QACK,CAAA;AACD,uBAAe,QAAQ;AAAA,MACxB,SAAQ,KAAK;AACZ,gBAAQ,MAAM,GAAG;AAAA,MACrB;AAAA,IACA;AACA,mBAAe,kBAAkB,UAAU;;AACzC,YAAM,4BAA4B,SAAS,SAAS,UAAQ,qBAAgB,UAAhB,mBAAuB,SAAQ,cAAc,EAAE;AAC3G,uBAAiB,QAAQ;AAAA,IAC3B;AACA,aAAS,oBAAoB,SAAS;AACpCC,gBAAmB,UAAC,qBAAqB,OAAO;AAChD,wBAAkB,QAAQ;AAAA,IAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
import { ref, reactive, createElementBlock, openBlock, createElementVNode, createVNode, unref, withCtx, createTextVNode, toDisplayString, normalizeStyle, normalizeClass, Fragment, renderList, createBlock } from "vue";
|
|
2
|
-
import { useRoute, useRouter } from "vue-router";
|
|
3
|
-
import Table from "../../../../components/Table/Table.vue.js";
|
|
4
|
-
import _sfc_main$1 from "../../../../components/Feed/Feed.vue.js";
|
|
5
|
-
import PlaceholderImage from "../../../icons/placeholders/PlaceholderImage.vue.js";
|
|
6
|
-
import _sfc_main$3 from "../../../../components/Dropdown/Dropdown.vue.js";
|
|
7
|
-
import _sfc_main$5 from "../../../../components/Popup/Popup.vue.js";
|
|
8
|
-
import _sfc_main$2 from "../../../icons/entities/IconSettings.vue.js";
|
|
9
|
-
import _sfc_main$4 from "../../../icons/navigation/IconEllipsis.vue.js";
|
|
10
|
-
import _sfc_main$6 from "../forms/StockAuditForm.vue.js";
|
|
11
|
-
import _sfc_main$7 from "../forms/ReorderSettingsForm.vue.js";
|
|
12
|
-
import StockHistoryView from "../forms/StockHistoryView.vue.js";
|
|
13
|
-
import _sfc_main$8 from "../forms/ColumnSettingsMenu.vue.js";
|
|
14
|
-
import { state, actions } from "../../store/products.js";
|
|
15
|
-
import { actions as actions$1, mutations } from "../../store/leftovers.js";
|
|
16
|
-
/* empty css */
|
|
17
|
-
const _hoisted_1 = { class: "pd-thin" };
|
|
18
|
-
const _hoisted_2 = { class: "mn-b-medium flex-v-center flex-nowrap flex" };
|
|
19
|
-
const _hoisted_3 = { class: "flex gap-small flex-nowrap flex-v-center" };
|
|
20
|
-
const _hoisted_4 = ["src"];
|
|
21
|
-
const _hoisted_5 = { class: "t-nowrap" };
|
|
22
|
-
const _hoisted_6 = { key: 1 };
|
|
23
|
-
const _hoisted_7 = { class: "flex-column flex" };
|
|
24
|
-
const _hoisted_8 = { class: "d-block mn-b-thin" };
|
|
25
|
-
const _hoisted_9 = { class: "w-100 h-micro radius-thin bg-light" };
|
|
26
|
-
const _hoisted_10 = { class: "bg-white radius-small" };
|
|
27
|
-
const _hoisted_11 = ["onClick"];
|
|
28
|
-
const _hoisted_12 = ["onClick"];
|
|
29
|
-
const _hoisted_13 = ["onClick"];
|
|
30
|
-
const _sfc_main = {
|
|
31
|
-
__name: "Leftovers",
|
|
32
|
-
setup(__props) {
|
|
33
|
-
const route = useRoute();
|
|
34
|
-
const router = useRouter();
|
|
35
|
-
const sort = ref({
|
|
36
|
-
param: "available",
|
|
37
|
-
order: "asc",
|
|
38
|
-
options: [
|
|
39
|
-
{ label: "Available", value: "available" },
|
|
40
|
-
{ label: "Name", value: "name" },
|
|
41
|
-
{ label: "Price", value: "price" },
|
|
42
|
-
{ label: "Created", value: "createdAt" }
|
|
43
|
-
]
|
|
44
|
-
});
|
|
45
|
-
const filter = reactive({
|
|
46
|
-
active: false,
|
|
47
|
-
class: "",
|
|
48
|
-
selected: { category: [], stockLevel: [] },
|
|
49
|
-
options: [
|
|
50
|
-
{ title: "Categories", value: "category", options: [] },
|
|
51
|
-
{
|
|
52
|
-
title: "Stock Level",
|
|
53
|
-
value: "stockLevel",
|
|
54
|
-
options: [
|
|
55
|
-
{ label: "Low", value: "low" },
|
|
56
|
-
{ label: "Medium", value: "medium" },
|
|
57
|
-
{ label: "High", value: "high" }
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
});
|
|
62
|
-
const columns = reactive([
|
|
63
|
-
{ key: "name", label: "Product Name", component: true, visible: true },
|
|
64
|
-
{ key: "category", label: "Categories", component: true, visible: true },
|
|
65
|
-
{ key: "supplier", label: "Supplier", visible: true },
|
|
66
|
-
{ key: "available", label: "Available", component: true, visible: true },
|
|
67
|
-
{ key: "price", label: "Unit Price", component: true, visible: true },
|
|
68
|
-
{ key: "actions", label: "", component: true, visible: true }
|
|
69
|
-
]);
|
|
70
|
-
const showAuditModal = ref(false);
|
|
71
|
-
const showReorderModal = ref(false);
|
|
72
|
-
const showHistoryModal = ref(false);
|
|
73
|
-
const showSettingsModal = ref(false);
|
|
74
|
-
const selectedProduct = ref(null);
|
|
75
|
-
function openStockAudit(row) {
|
|
76
|
-
selectedProduct.value = row;
|
|
77
|
-
showAuditModal.value = true;
|
|
78
|
-
}
|
|
79
|
-
function openReorderSettings(row = null) {
|
|
80
|
-
selectedProduct.value = row;
|
|
81
|
-
showReorderModal.value = true;
|
|
82
|
-
}
|
|
83
|
-
function openStockHistory(row) {
|
|
84
|
-
selectedProduct.value = row;
|
|
85
|
-
showHistoryModal.value = true;
|
|
86
|
-
}
|
|
87
|
-
function openViewSettings() {
|
|
88
|
-
showSettingsModal.value = true;
|
|
89
|
-
}
|
|
90
|
-
async function handleAuditSave(audit) {
|
|
91
|
-
var _a, _b, _c;
|
|
92
|
-
try {
|
|
93
|
-
await actions$1.create({
|
|
94
|
-
organization: route.params._id,
|
|
95
|
-
type: audit.discrepancy > 0 ? "stock-in" : "stock-out",
|
|
96
|
-
comment: audit.note,
|
|
97
|
-
positions: [{
|
|
98
|
-
_id: selectedProduct.value._id,
|
|
99
|
-
name: selectedProduct.value.name,
|
|
100
|
-
quantity: Math.abs(audit.discrepancy),
|
|
101
|
-
price: selectedProduct.value.price || 0,
|
|
102
|
-
type: "pcs"
|
|
103
|
-
}],
|
|
104
|
-
creator: {
|
|
105
|
-
type: "user",
|
|
106
|
-
target: (_c = (_b = (_a = window.auth) == null ? void 0 : _a.state) == null ? void 0 : _b.user) == null ? void 0 : _c._id
|
|
107
|
-
},
|
|
108
|
-
owner: {
|
|
109
|
-
type: "organization",
|
|
110
|
-
target: route.params._id
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
showAuditModal.value = false;
|
|
114
|
-
} catch (err) {
|
|
115
|
-
console.error(err);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
async function handleReorderSave(settings) {
|
|
119
|
-
var _a;
|
|
120
|
-
alert(`Reorder threshold set to ${settings.threshold} for ${((_a = selectedProduct.value) == null ? void 0 : _a.name) || "all products"}`);
|
|
121
|
-
showReorderModal.value = false;
|
|
122
|
-
}
|
|
123
|
-
function handleColumnsUpdate(updated) {
|
|
124
|
-
mutations.updateColumnSettings(updated);
|
|
125
|
-
showSettingsModal.value = false;
|
|
126
|
-
}
|
|
127
|
-
return (_ctx, _cache) => {
|
|
128
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
129
|
-
createElementVNode("header", _hoisted_2, [
|
|
130
|
-
_cache[11] || (_cache[11] = createElementVNode("h2", null, "Leftovers", -1)),
|
|
131
|
-
createElementVNode("button", {
|
|
132
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(router).push({ name: "LeftoverAdd" })),
|
|
133
|
-
class: "mn-l-small radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second",
|
|
134
|
-
innerHTML: "+"
|
|
135
|
-
})
|
|
136
|
-
]),
|
|
137
|
-
createVNode(_sfc_main$1, {
|
|
138
|
-
search: true,
|
|
139
|
-
filter,
|
|
140
|
-
"onUpdate:filter": _cache[1] || (_cache[1] = ($event) => filter = $event),
|
|
141
|
-
sort: sort.value,
|
|
142
|
-
"onUpdate:sort": _cache[2] || (_cache[2] = ($event) => sort.value = $event),
|
|
143
|
-
store: {
|
|
144
|
-
read: (options) => actions.read(options),
|
|
145
|
-
state
|
|
146
|
-
},
|
|
147
|
-
actions: [{
|
|
148
|
-
key: "settings",
|
|
149
|
-
component: _sfc_main$2,
|
|
150
|
-
props: {
|
|
151
|
-
class: "h-3r pd-r-small pd-l-small flex-center flex bg-light t-black radius-small hover-scale-1 cursor-pointer"
|
|
152
|
-
},
|
|
153
|
-
handler: openViewSettings
|
|
154
|
-
}],
|
|
155
|
-
options: {
|
|
156
|
-
limit: 15,
|
|
157
|
-
lookup: ["leftovers", "categories"],
|
|
158
|
-
owner: unref(route).params._id,
|
|
159
|
-
sortParam: sort.value.param,
|
|
160
|
-
sortOrder: sort.value.order
|
|
161
|
-
}
|
|
162
|
-
}, {
|
|
163
|
-
default: withCtx(({ items }) => [
|
|
164
|
-
createVNode(Table, {
|
|
165
|
-
columns: columns.filter((col) => col.visible),
|
|
166
|
-
items,
|
|
167
|
-
class: "bg-white z-index-1 br-solid br-1px br-light radius-medium"
|
|
168
|
-
}, {
|
|
169
|
-
"cell-name": withCtx(({ row }) => {
|
|
170
|
-
var _a;
|
|
171
|
-
return [
|
|
172
|
-
createElementVNode("div", _hoisted_3, [
|
|
173
|
-
((_a = row.images) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("img", {
|
|
174
|
-
key: 0,
|
|
175
|
-
src: (_ctx.FILE_SERVER_URL || "") + row.images[0],
|
|
176
|
-
alt: "Product",
|
|
177
|
-
class: "w-3r h-3r radius-small bg-light object-fit-cover"
|
|
178
|
-
}, null, 8, _hoisted_4)) : (openBlock(), createBlock(PlaceholderImage, {
|
|
179
|
-
key: 1,
|
|
180
|
-
class: "w-3r h-3r radius-small"
|
|
181
|
-
})),
|
|
182
|
-
createElementVNode("span", _hoisted_5, toDisplayString(row.name), 1)
|
|
183
|
-
])
|
|
184
|
-
];
|
|
185
|
-
}),
|
|
186
|
-
"cell-category": withCtx(({ row }) => [
|
|
187
|
-
row.category ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(row.category, (cat) => {
|
|
188
|
-
return openBlock(), createElementBlock("span", {
|
|
189
|
-
key: cat._id,
|
|
190
|
-
class: "pd-nano mn-r-micro pd-r-small pd-l-small radius-small bg-light t-small"
|
|
191
|
-
}, toDisplayString(cat.name), 1);
|
|
192
|
-
}), 128)) : (openBlock(), createElementBlock("span", _hoisted_6, "="))
|
|
193
|
-
]),
|
|
194
|
-
"cell-supplier": withCtx(({ row }) => {
|
|
195
|
-
var _a, _b, _c;
|
|
196
|
-
return [
|
|
197
|
-
createTextVNode(toDisplayString(((_c = (_b = (_a = row.owner) == null ? void 0 : _a.target) == null ? void 0 : _b.profile) == null ? void 0 : _c.name) || "-"), 1)
|
|
198
|
-
];
|
|
199
|
-
}),
|
|
200
|
-
"cell-available": withCtx(({ row }) => [
|
|
201
|
-
createElementVNode("div", _hoisted_7, [
|
|
202
|
-
createElementVNode("span", _hoisted_8, toDisplayString(row.available) + " · " + toDisplayString(row.available <= 5 ? "Low" : row.available <= 10 ? "Medium" : "High"), 1),
|
|
203
|
-
createElementVNode("div", _hoisted_9, [
|
|
204
|
-
createElementVNode("div", {
|
|
205
|
-
class: normalizeClass([
|
|
206
|
-
"h-100 radius-thin",
|
|
207
|
-
row.available <= 1 ? "bg-red t-white" : row.available <= 2 ? "bg-orange t-white" : "bg-green t-white"
|
|
208
|
-
]),
|
|
209
|
-
style: normalizeStyle(`width: ${Math.min(
|
|
210
|
-
row.available / (row.alert !== void 0 ? row.alert : 50) * 100,
|
|
211
|
-
100
|
|
212
|
-
)}%`)
|
|
213
|
-
}, null, 6)
|
|
214
|
-
])
|
|
215
|
-
])
|
|
216
|
-
]),
|
|
217
|
-
"cell-price": withCtx(({ row }) => [
|
|
218
|
-
createTextVNode(toDisplayString(_ctx.formatPrice(row.price)), 1)
|
|
219
|
-
]),
|
|
220
|
-
"cell-actions": withCtx(({ row }) => [
|
|
221
|
-
createVNode(_sfc_main$3, {
|
|
222
|
-
label: { component: _sfc_main$4, class: "t-transp i-medium" },
|
|
223
|
-
class: "cursor-pointer aspect-1x1 pd-nano radius-small hover-bg-light",
|
|
224
|
-
align: "right"
|
|
225
|
-
}, {
|
|
226
|
-
default: withCtx(() => [
|
|
227
|
-
createElementVNode("div", _hoisted_10, [
|
|
228
|
-
createElementVNode("button", {
|
|
229
|
-
onClick: ($event) => openStockAudit(row),
|
|
230
|
-
class: "cursor-pointer t-left t-nowrap w-100 pd-small"
|
|
231
|
-
}, " Audit Stock ", 8, _hoisted_11),
|
|
232
|
-
createElementVNode("button", {
|
|
233
|
-
onClick: ($event) => openStockHistory(row),
|
|
234
|
-
class: "cursor-pointer t-left t-nowrap w-100 pd-small"
|
|
235
|
-
}, " Stock History ", 8, _hoisted_12),
|
|
236
|
-
createElementVNode("button", {
|
|
237
|
-
onClick: ($event) => openReorderSettings(row),
|
|
238
|
-
class: "cursor-pointer t-left t-nowrap w-100 pd-small"
|
|
239
|
-
}, " Set Alerts ", 8, _hoisted_13)
|
|
240
|
-
])
|
|
241
|
-
]),
|
|
242
|
-
_: 2
|
|
243
|
-
}, 1032, ["label"])
|
|
244
|
-
]),
|
|
245
|
-
_: 2
|
|
246
|
-
}, 1032, ["columns", "items"])
|
|
247
|
-
]),
|
|
248
|
-
_: 1
|
|
249
|
-
}, 8, ["filter", "sort", "store", "actions", "options"]),
|
|
250
|
-
createVNode(_sfc_main$5, {
|
|
251
|
-
isPopupOpen: showAuditModal.value,
|
|
252
|
-
onClosePopup: _cache[4] || (_cache[4] = ($event) => showAuditModal.value = false),
|
|
253
|
-
title: "Audit Stock",
|
|
254
|
-
class: "bg-white radius-medium pd-medium w-min-40r"
|
|
255
|
-
}, {
|
|
256
|
-
default: withCtx(() => [
|
|
257
|
-
createVNode(_sfc_main$6, {
|
|
258
|
-
product: selectedProduct.value,
|
|
259
|
-
onClose: _cache[3] || (_cache[3] = ($event) => showAuditModal.value = false),
|
|
260
|
-
onSave: handleAuditSave
|
|
261
|
-
}, null, 8, ["product"])
|
|
262
|
-
]),
|
|
263
|
-
_: 1
|
|
264
|
-
}, 8, ["isPopupOpen"]),
|
|
265
|
-
createVNode(_sfc_main$5, {
|
|
266
|
-
isPopupOpen: showReorderModal.value,
|
|
267
|
-
onClosePopup: _cache[6] || (_cache[6] = ($event) => showReorderModal.value = false),
|
|
268
|
-
title: "Set Automatic Reorder",
|
|
269
|
-
class: "bg-white radius-medium pd-medium w-min-30r"
|
|
270
|
-
}, {
|
|
271
|
-
default: withCtx(() => [
|
|
272
|
-
createVNode(_sfc_main$7, {
|
|
273
|
-
product: selectedProduct.value,
|
|
274
|
-
onClose: _cache[5] || (_cache[5] = ($event) => showReorderModal.value = false),
|
|
275
|
-
onSave: handleReorderSave
|
|
276
|
-
}, null, 8, ["product"])
|
|
277
|
-
]),
|
|
278
|
-
_: 1
|
|
279
|
-
}, 8, ["isPopupOpen"]),
|
|
280
|
-
createVNode(_sfc_main$5, {
|
|
281
|
-
isPopupOpen: showHistoryModal.value,
|
|
282
|
-
onClosePopup: _cache[8] || (_cache[8] = ($event) => showHistoryModal.value = false),
|
|
283
|
-
title: "Stock History",
|
|
284
|
-
class: "bg-white radius-medium pd-medium w-min-50r"
|
|
285
|
-
}, {
|
|
286
|
-
default: withCtx(() => [
|
|
287
|
-
createVNode(StockHistoryView, {
|
|
288
|
-
product: selectedProduct.value,
|
|
289
|
-
onClose: _cache[7] || (_cache[7] = ($event) => showHistoryModal.value = false)
|
|
290
|
-
}, null, 8, ["product"])
|
|
291
|
-
]),
|
|
292
|
-
_: 1
|
|
293
|
-
}, 8, ["isPopupOpen"]),
|
|
294
|
-
createVNode(_sfc_main$5, {
|
|
295
|
-
isPopupOpen: showSettingsModal.value,
|
|
296
|
-
onClosePopup: _cache[10] || (_cache[10] = ($event) => showSettingsModal.value = false),
|
|
297
|
-
title: "View Settings",
|
|
298
|
-
class: "bg-white radius-medium pd-medium w-min-30r"
|
|
299
|
-
}, {
|
|
300
|
-
default: withCtx(() => [
|
|
301
|
-
createVNode(_sfc_main$8, {
|
|
302
|
-
columns,
|
|
303
|
-
onSave: handleColumnsUpdate,
|
|
304
|
-
onClose: _cache[9] || (_cache[9] = ($event) => showSettingsModal.value = false)
|
|
305
|
-
}, null, 8, ["columns"])
|
|
306
|
-
]),
|
|
307
|
-
_: 1
|
|
308
|
-
}, 8, ["isPopupOpen"])
|
|
309
|
-
]);
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
export {
|
|
314
|
-
_sfc_main as default
|
|
315
|
-
};
|
|
316
|
-
//# sourceMappingURL=Leftovers.vue.js.map
|