@ozdao/prometheus-framework 0.2.229 → 0.2.231

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. package/dist/builder.js +46 -1
  2. package/dist/builder.mjs +46 -1
  3. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -1
  5. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  7. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  9. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
  11. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  13. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
  14. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
  15. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
  17. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
  25. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
  26. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +2 -2
  27. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +2 -2
  28. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  29. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  31. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  33. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +59 -39
  34. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs.map +1 -1
  35. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +60 -40
  36. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map +1 -1
  37. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  39. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  41. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  43. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  45. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
  47. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  51. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
  52. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
  53. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +1 -1
  55. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
  57. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs.map +1 -1
  59. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js.map +1 -1
  61. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
  62. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  63. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  65. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  69. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
  70. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  71. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
  74. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  75. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
  77. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
  80. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  81. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +470 -457
  82. package/dist/prometheus-framework/src/modules/pages/pages.client.js +470 -457
  83. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
  84. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
  85. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  87. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  89. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  95. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  97. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +2 -2
  100. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  101. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
  112. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  113. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  117. package/package.json +1 -1
  118. package/src/builder/templates/screen.js +38 -0
  119. package/src/builder/webpack/webpack.config.spa.js +1 -1
  120. package/src/modules/events/components/elements/ButtonCheck.vue +65 -37
  121. package/src/modules/events/components/elements/ButtonCheck1.vue +107 -0
  122. package/src/modules/events/components/elements/ButtonCheck2.vue +76 -0
  123. package/src/modules/globals/views/components/partials/NavigationBar.vue +6 -0
@@ -0,0 +1,107 @@
1
+ <template>
2
+ <div>
3
+ <Button @click="startScan" class="bg-main button-small radius-extra button">
4
+ Check Tickets
5
+ </Button>
6
+ <div v-if="isScanning" class="barcode-scanner-modal">
7
+ <!-- Add any UI elements for the scanner here -->
8
+ <Button @click="stopScan" class="stop-scan-button">Stop Scan</Button>
9
+ </div>
10
+ </div>
11
+ </template>
12
+
13
+ <script setup>
14
+ import { ref, onMounted, onUnmounted } from 'vue'
15
+ import { BarcodeScanner } from '@capacitor-mlkit/barcode-scanning'
16
+ import Button from '@pf/src/components/Button/Button.vue'
17
+ import * as tickets from '@pf/src/modules/events/store/tickets'
18
+
19
+ const emits = defineEmits(['qrcodecheck'])
20
+ const error = ref('')
21
+ const isScanning = ref(false)
22
+
23
+ onMounted(async () => {
24
+ const { supported } = await BarcodeScanner.isSupported()
25
+ if (!supported) {
26
+ error.value = 'Barcode scanning is not supported on this device'
27
+ }
28
+ })
29
+
30
+ onUnmounted(async () => {
31
+ await BarcodeScanner.removeAllListeners()
32
+ })
33
+
34
+ async function startScan() {
35
+ try {
36
+ const { camera } = await BarcodeScanner.checkPermissions()
37
+ if (camera !== 'granted') {
38
+ const { camera: newStatus } = await BarcodeScanner.requestPermissions()
39
+ if (newStatus !== 'granted') {
40
+ throw new Error('Camera permission is required to scan barcodes')
41
+ }
42
+ }
43
+
44
+ document.querySelector('body')?.classList.add('barcode-scanner-active')
45
+ isScanning.value = true
46
+
47
+ await BarcodeScanner.addListener('barcodeScanned', async (result) => {
48
+ await processBarcode(result.barcode)
49
+ })
50
+
51
+ await BarcodeScanner.startScan()
52
+ } catch (e) {
53
+ error.value = e.message
54
+ alert(`Error: ${error.value}`)
55
+ }
56
+ }
57
+
58
+ async function stopScan() {
59
+ try {
60
+ document.querySelector('body')?.classList.remove('barcode-scanner-active')
61
+ isScanning.value = false
62
+ await BarcodeScanner.stopScan()
63
+ await BarcodeScanner.removeAllListeners()
64
+ } catch (e) {
65
+ error.value = e.message
66
+ alert(`Error stopping scan: ${error.value}`)
67
+ }
68
+ }
69
+
70
+ async function processBarcode(barcode) {
71
+ try {
72
+ if (!barcode) {
73
+ throw new Error('Troubles with barcode reading')
74
+ }
75
+ const response = await tickets.actions.update({ _id: barcode, status: 'used', check: true })
76
+ alert("Ticket checked. And it's all right!")
77
+ } catch (e) {
78
+ alert(`Ticket is not found, already used or deactivated!`)
79
+ } finally {
80
+ emits('qrcodecheck')
81
+ await stopScan()
82
+ }
83
+ }
84
+ </script>
85
+
86
+ <style scoped>
87
+ .barcode-scanner-modal {
88
+ position: fixed;
89
+ top: 0;
90
+ left: 0;
91
+ right: 0;
92
+ bottom: 0;
93
+ background: rgba(0, 0, 0, 0.8);
94
+ display: flex;
95
+ justify-content: center;
96
+ align-items: center;
97
+ }
98
+
99
+ .stop-scan-button {
100
+ position: absolute;
101
+ bottom: 20px;
102
+ left: 50%;
103
+ transform: translateX(-50%);
104
+ }
105
+
106
+ /* Existing styles can stay unchanged */
107
+ </style>
@@ -0,0 +1,76 @@
1
+ <template>
2
+ <div>
3
+ <Button :submit="startScan" class="bg-main button-small radius-extra button">
4
+ Check Tickets
5
+ </Button>
6
+ <Popup
7
+ title="Scan QR Code"
8
+ @close-popup="closePublicationPopup"
9
+ :isPopupOpen="isPublicationPopup"
10
+ class="w-max-30r h-max-30r t-left pd-big bg-white radius-big"
11
+ >
12
+ <h3 class="mn-b-small">Scan QR Code</h3>
13
+ <div class="h-max">
14
+ <!-- Scanning will be handled by Capacitor, so we don't need a visual component here -->
15
+ </div>
16
+ </Popup>
17
+ </div>
18
+ </template>
19
+
20
+ <script setup>
21
+ import { ref } from 'vue'
22
+ import { BarcodeScanner } from '@capacitor-mlkit/barcode-scanning'
23
+ import Popup from '@pf/src/components/Popup/Popup.vue'
24
+ import Button from '@pf/src/components/Button/Button.vue'
25
+ import * as tickets from '@pf/src/modules/events/store/tickets'
26
+
27
+ const emits = defineEmits(['qrcodecheck'])
28
+ const isPublicationPopup = ref(false)
29
+ const error = ref('')
30
+
31
+ function openPublicationPopup() {
32
+ isPublicationPopup.value = true
33
+ }
34
+
35
+ function closePublicationPopup() {
36
+ isPublicationPopup.value = false
37
+ }
38
+
39
+ async function startScan() {
40
+ openPublicationPopup()
41
+
42
+ try {
43
+ await BarcodeScanner.isSupported()
44
+ const { barcodes } = await BarcodeScanner.scan()
45
+
46
+ if (barcodes.length > 0) {
47
+ await processBarcode(barcodes[0].rawValue)
48
+ } else {
49
+ throw new Error('No barcode detected')
50
+ }
51
+ } catch (e) {
52
+ error.value = e.message
53
+ alert(`Error: ${error.value}`)
54
+ } finally {
55
+ closePublicationPopup()
56
+ }
57
+ }
58
+
59
+ async function processBarcode(qrcode) {
60
+ try {
61
+ if (!qrcode) {
62
+ throw new Error('Troubles with qrcode reading')
63
+ }
64
+ const response = await tickets.actions.update({ _id: qrcode, status: 'used', check: true })
65
+ alert("Ticket checked. And it's all right!")
66
+ } catch (e) {
67
+ alert(`Ticket is not found, already used or deactivated!`)
68
+ } finally {
69
+ emits('qrcodecheck')
70
+ }
71
+ }
72
+ </script>
73
+
74
+ <style scoped>
75
+ /* Existing styles can stay unchanged */
76
+ </style>
@@ -49,6 +49,12 @@
49
49
 
50
50
  <p v-else class="t-semi h-2r h4 d-block" >
51
51
  {{route.meta.title[locale.toLowerCase()]}}
52
+
53
+ <!-- if (route.meta.title) {
54
+ route.meta.title[locale.toLowerCase()]
55
+ } else {
56
+ route.name
57
+ } -->
52
58
  </p>
53
59
  </div>
54
60
  </transition>