@ozdao/prometheus-framework 0.2.53 → 0.2.55

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. package/dist/main-180a9315.js +91 -0
  2. package/dist/main-3b7bd446.mjs +13631 -0
  3. package/dist/main-B7GT1EB5.js +91 -0
  4. package/dist/main-Im8ovDCi.mjs +13609 -0
  5. package/dist/main-MjvO1l5U.js +91 -0
  6. package/dist/main-N_5Jg8Gx.mjs +13693 -0
  7. package/dist/main.css +1 -1
  8. package/dist/organizations.server.js +17 -3
  9. package/dist/organizations.server.mjs +17 -3
  10. package/dist/products.server.js +1 -1
  11. package/dist/products.server.mjs +1 -1
  12. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +20 -20
  14. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +28 -25
  16. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
  18. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -70
  20. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
  22. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -95
  24. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +57 -77
  26. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +1 -1
  28. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  30. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  32. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  33. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
  34. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  35. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -65
  36. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  38. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  40. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +98 -94
  42. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  44. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +59 -52
  46. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +1 -1
  48. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  50. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  52. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +8 -13
  54. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  58. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  60. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +53 -77
  62. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/orders/store/orders.js +42 -32
  64. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  68. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  70. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  74. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  76. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  78. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  80. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +5 -3
  82. package/dist/prometheus-framework/src/modules/organizations/router/organizations.router.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/organizations/router/organizations.router.js +20 -5
  84. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  86. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  88. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  90. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  92. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  96. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  98. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +61 -75
  100. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
  102. package/dist/prometheus-framework.cjs.js +1 -1
  103. package/dist/prometheus-framework.es.js +1 -1
  104. package/dist/style.css +1 -1
  105. package/dist/web-8b404cc2.js +1 -0
  106. package/dist/web-e9b09dc6.mjs +55 -0
  107. package/dist/web-i-suCpLM.mjs +55 -0
  108. package/dist/web-ktBiiov5.js +1 -0
  109. package/dist/web-vB7UhMOt.js +1 -0
  110. package/dist/web-xvjLzsHu.mjs +55 -0
  111. package/package.json +1 -1
  112. package/src/components/EditImages/EditImages.vue +1 -1
  113. package/src/components/Feed/Feed.vue +26 -0
  114. package/src/components/Field/Field.vue +5 -0
  115. package/src/components/LocationSelection/LocationSelection.vue +2 -2
  116. package/src/modules/backoffice/components/pages/Dashboard.vue +4 -25
  117. package/src/modules/backoffice/router/admin.js +0 -14
  118. package/src/modules/backoffice/router/backoffice.js +4 -1
  119. package/src/modules/events/components/pages/EditEvent.vue +10 -6
  120. package/src/modules/events/components/sections/HeroEvent.vue +12 -2
  121. package/src/modules/events/components/sections/SectionPreviousEvents.vue +1 -1
  122. package/src/modules/gallery/models/photo.model.js +5 -1
  123. package/src/modules/globals/components/blocks/BlockSearch.vue +4 -3
  124. package/src/modules/globals/store/globals.js +33 -2
  125. package/src/modules/landing/components/sections/MobileApp.vue +2 -6
  126. package/src/modules/orders/components/blocks/CardOrderItem.vue +24 -3
  127. package/src/modules/orders/components/blocks/StatusHistory.vue +91 -31
  128. package/src/modules/orders/components/pages/EditOrder.vue +114 -125
  129. package/src/modules/orders/components/pages/FormOrder.vue +53 -15
  130. package/src/modules/orders/components/pages/Order.vue +2 -2
  131. package/src/modules/orders/components/sections/FormClientDetails.vue +63 -0
  132. package/src/modules/orders/components/sections/FormDelivery.vue +72 -0
  133. package/src/modules/orders/components/sections/FormPayment.vue +27 -0
  134. package/src/modules/orders/controllers/orders.controller.js +63 -49
  135. package/src/modules/orders/models/order.model.js +9 -13
  136. package/src/modules/orders/routes/orders.routes.js +6 -20
  137. package/src/modules/orders/store/orders.js +24 -12
  138. package/src/modules/organizations/components/pages/Organization.vue +1 -0
  139. package/src/modules/organizations/controllers/organizations.controller.js +28 -9
  140. package/src/modules/organizations/router/organizations.js +4 -1
  141. package/src/modules/organizations/router/organizations.router.js +18 -2
  142. package/src/modules/products/components/blocks/CardPosition.vue +7 -7
  143. package/src/modules/products/controllers/products.controller.js +3 -2
  144. package/src/modules/products/store/products.js +2 -0
  145. package/src/modules/users/components/pages/Profile.vue +2 -2
  146. package/src/modules/orders/components/sections/FormOrderDetails.vue +0 -220
@@ -1,220 +0,0 @@
1
- <template>
2
- <div class="order-form col">
3
- <!-- Client info -->
4
- <Block
5
- title="Personal Data"
6
- class="mn-b-thin"
7
- >
8
- <!-- Name and surname -->
9
- <Field
10
- v-model:field="order.user.name"
11
- label="Name*"
12
- placeholder="Enter your name"
13
- class="
14
- bg-white
15
- pd-medium
16
- radius-small
17
- mn-b-thin
18
- "
19
- />
20
- <!-- Phone -->
21
- <FieldPhone
22
- v-model:modelValue="order.user.phone"
23
- @country="(country) => { order.user.number = country }"
24
- :inputOptions="{
25
- placeholder: 'Enter contact phone number',
26
- type: 'tel',
27
- }"
28
- :defaultCountry="'TH'"
29
- :validCharactersOnly="true"
30
- :dropdownOptions="{
31
- showDialCodeInSelection: true,
32
- showFlags: true,
33
- showDialCodeInList: true
34
- }"
35
- mode="national"
36
- class="bg-white pd-small radius-small mn-b-thin"
37
- />
38
-
39
- <p class="mn-b-small">
40
- Prefer to chat instead of calling? Just drop your messenger info here:
41
- </p>
42
-
43
- <div class="flex-nowrap flex">
44
- <Select
45
- :options="[
46
- {name: 'Telegram', value: 'telegram'},
47
- {name: 'WhatsApp', value: 'whatsapp'},
48
- {name: 'Line', value: 'line'},
49
- ]"
50
- @update:select="(option) => order.user.messenger.type = option.value"
51
- placeholder="Messenger"
52
- size="small"
53
- class="
54
- bg-white
55
- pd-medium
56
- radius-small
57
- mn-r-small
58
- "
59
- />
60
-
61
- <Field
62
- v-model:field="order.user.messenger.value"
63
- placeholder="Enter your contact here"
64
- class="
65
- bg-white
66
- pd-medium
67
- radius-small
68
- w-100
69
- "
70
- />
71
- </div>
72
- </Block>
73
-
74
- <!-- Delivery -->
75
- <Block
76
- title="Delivery"
77
- class="mn-b-thin"
78
- :tooltip="'Delivery by mail takes 3-5 days.'"
79
- >
80
- <!-- Type of delivery -->
81
- <div class="mn-b-small flex-nowrap flex">
82
- <Radio
83
- v-model:radio="order.delivery.type"
84
- label="Courier"
85
- value="courier"
86
- class="
87
- bg-white
88
- pd-medium
89
- radius-small
90
- w-100
91
- mn-r-small
92
- "
93
- />
94
- <Radio
95
- v-model:radio="order.delivery.type"
96
- label="Post"
97
- value="Post"
98
- class="
99
- bg-white
100
- pd-medium
101
- radius-small
102
- w-100
103
- mn-r-small
104
- "
105
- />
106
- </div>
107
- <!-- Adress-->
108
- <Address
109
- label="Address"
110
-
111
- apiKey="AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI"
112
-
113
- :address="order.delivery.address"
114
- :location="order.delivery.location"
115
-
116
- placeholder="Enter your address"
117
-
118
- class="
119
- bg-white radius-tl-medium radius-tr-medium t-black br-grey br-solid br-2px pd-medium
120
- "
121
-
122
- @update:location="newLocation => {
123
- order.delivery.location = newLocation;
124
- }"
125
- @update:address="newAddress => {
126
- order.delivery.address = newAddress;
127
- }"
128
- />
129
-
130
- <LocationMarker
131
- apiKey="AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI"
132
-
133
- :address="order.delivery.address"
134
- :location="order.delivery.location"
135
-
136
- class="mn-b-thin radius-bl-medium radius-br-medium h-15r o-hidden"
137
-
138
- @update:location="newLocation => {
139
- order.delivery.location = newLocation;
140
- }"
141
- @update:address="newAddress => {
142
- order.delivery.address = newAddress;
143
- }"
144
- />
145
- <Field
146
- v-model:field="order.comment"
147
- placeholder="Comments regarding the address (apartment unit, floor level, building section)"
148
- type="textarea"
149
- class="
150
- bg-white
151
- pd-medium
152
- radius-small
153
- "
154
- />
155
- </Block>
156
- <!-- Type of payment -->
157
- <Block
158
- title="Payment"
159
- >
160
- <div class="mn-b-small flex-nowrap flex">
161
- <Select
162
- v-model:select="order.payment.type"
163
- :property="'value'"
164
- :options="[
165
- {name: 'Cash On Delivery', value: 'cash'},
166
- {name: 'Bank Transfer', value: 'bank'},
167
- {name: 'Crypto', value: 'crypto'},
168
- ]"
169
-
170
- placeholder="Select type of payment"
171
- size="small"
172
- class="
173
- bg-white
174
- pd-medium
175
- radius-small
176
- w-100
177
- "
178
- />
179
- </div>
180
- </Block>
181
-
182
-
183
- </div>
184
-
185
- </template>
186
-
187
- <script setup="props">
188
- import { computed, onMounted, watch } from 'vue'
189
-
190
- import * as globals from '@pf/src/modules/globals/store/globals';
191
- import * as orders from '@pf/src/modules/orders/store/orders';
192
- /////////////////////////////
193
- // COMPONENT DEPENDENCIES
194
- /////////////////////////////
195
- import Block from '@pf/src/components/Block/Block.vue'
196
- import Field from '@pf/src/components/Field/Field.vue'
197
- import FieldPhone from '@pf/src/components/FieldPhone/FieldPhone2.vue'
198
- import Select from '@pf/src/components/Select/Select.vue'
199
- import Address from '@pf/src/components/Address/Address.vue'
200
-
201
- import LocationMarker from "@pf/src/components/LocationMarker/LocationMarker.vue";
202
- import Radio from '@pf/src/components/Radio/Radio.vue'
203
- /////////////////////////////
204
- // CREATED
205
- /////////////////////////////
206
- const props = defineProps({
207
- order: Object,
208
- });
209
- /////////////////////////////
210
- // MOUNTED
211
- /////////////////////////////
212
- onMounted(() => {
213
- if (globals.state.position) props.order.delivery.address = globals.state.position.address
214
- if (globals.state.position) props.order.delivery.location = globals.state.position.location
215
- })
216
- </script>
217
-
218
- <style lang="scss">
219
-
220
- </style>