@7365admin1/layer-common 1.11.7 → 1.11.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 1.11.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 5f05262: Update Changeset version
8
+
3
9
  ## 1.11.7
4
10
 
5
11
  ### Patch Changes
@@ -510,6 +510,7 @@ async function _addStock() {
510
510
  const payload: TStockCreate = {
511
511
  qty: stockActionQuantity.value,
512
512
  remarks: stockActionRemarks.value,
513
+ serviceType: props.serviceType,
513
514
  };
514
515
 
515
516
  const response = await createStock(props.site, id, payload);
@@ -0,0 +1,144 @@
1
+ <template>
2
+ <v-col cols="12" class="pa-0 ma-0">
3
+ <div class="a4-size">
4
+ <v-row class="d-flex" no-gutters>
5
+ <!-- Iterate through each page -->
6
+
7
+ <v-col
8
+ v-for="(page, pageIndex) in paginatedCardData"
9
+ :key="pageIndex"
10
+ cols="12"
11
+ class="d-flex justify-center position-relative print-page"
12
+ >
13
+ <v-row no-gutters>
14
+ <!-- Iterate through each card in the page -->
15
+ <v-col
16
+ v-for="(card, cardIndex) in page"
17
+ :key="cardIndex"
18
+ cols="6"
19
+ class="pa-0"
20
+ >
21
+ <!-- Front of the Credit Card (F) -->
22
+ <v-card
23
+ v-if="card.type === 'F'"
24
+ border="dashed lg"
25
+ class="ma-0 pa-0 credit-card-size-landscape"
26
+ >
27
+ <VuetifyViewer
28
+ class="credit-card-size-landscape"
29
+ :maxWidth="'8.27in'"
30
+ :value="templateQrCode.CCFrontWysiwyg"
31
+ markdown-theme="github"
32
+ />
33
+
34
+ <qrcode-vue
35
+ v-if="templateQrCode.CCFrontQREnabled"
36
+ :value="`${prefix}0${+printRangeStart + +card.number - 1}`"
37
+ :size="templateQrCode.CCFrontQRCodeSize"
38
+ level="H"
39
+ :style="{
40
+ top: `${templateQrCode.CCFrontQRCodeTop - 45}%`,
41
+ left: `${templateQrCode.CCFrontQRCodeLeft}%`,
42
+ }"
43
+ class="position-absolute"
44
+ />
45
+
46
+ <div
47
+ v-if="templateQrCode.CCFrontQREnabled"
48
+ :style="{
49
+ top: `${templateQrCode.CCFrontPassTop - 45}%`,
50
+ left: `${templateQrCode.CCFrontPassLeft}%`,
51
+ fontSize: templateQrCode.CCFrontPassSize + 'px',
52
+ textWrap: 'nowrap',
53
+ }"
54
+ class="position-absolute text-center"
55
+ >
56
+ Pass Number: {{ prefix }}0{{
57
+ +printRangeStart + +card.number - 1
58
+ }}
59
+ </div>
60
+ </v-card>
61
+
62
+ <!-- Back of the Credit Card (B) -->
63
+ <v-card
64
+ v-if="card.type === 'B'"
65
+ border="dashed lg"
66
+ class="ma-0 pa-0 credit-card-size-landscape"
67
+ >
68
+ <VuetifyViewer
69
+ class="credit-card-size-landscape"
70
+ :maxWidth="'8.27in'"
71
+ :value="templateQrCode.CCBackWysiwyg"
72
+ markdown-theme="github"
73
+ />
74
+
75
+ <qrcode-vue
76
+ v-if="templateQrCode.CCBackQREnabled"
77
+ :value="`${prefix}0${+printRangeStart + +card.number - 1}`"
78
+ :size="templateQrCode.CCBackQRCodeSize"
79
+ level="H"
80
+ :style="{
81
+ top: `${templateQrCode.CCBackQRCodeTop - 45}%`,
82
+ left: `${templateQrCode.CCBackQRCodeLeft}%`,
83
+ }"
84
+ class="position-absolute"
85
+ />
86
+ <div
87
+ v-if="templateQrCode.CCBackQREnabled"
88
+ :style="{
89
+ top: `${templateQrCode.CCBackPassTop - 45}%`,
90
+ left: `${templateQrCode.CCBackPassLeft}%`,
91
+ fontSize: templateQrCode.CCBackPassSize + 'px',
92
+ textWrap: 'nowrap',
93
+ }"
94
+ class="position-absolute text-center"
95
+ >
96
+ Pass Number: {{ prefix }}0{{
97
+ +printRangeStart + +card.number - 1
98
+ }}
99
+ </div>
100
+ </v-card>
101
+ </v-col>
102
+ </v-row>
103
+ </v-col>
104
+ </v-row>
105
+ </div>
106
+ </v-col>
107
+ </template>
108
+
109
+ <script setup>
110
+ import QrcodeVue from "qrcode.vue";
111
+
112
+ const props = defineProps({
113
+ paginatedCardData: Array,
114
+ templateQrCode: Object,
115
+ prefix: String,
116
+ printRangeStart: Number,
117
+ });
118
+ onMounted(() => {
119
+ console.log("templateQrCode 11", props.templateQrCode.CCOrientation);
120
+ });
121
+ </script>
122
+
123
+ <style scoped>
124
+ .a4-size {
125
+ width: 21cm;
126
+ height: 29.7cm;
127
+ margin: 0;
128
+ padding: 0;
129
+ }
130
+
131
+ @media print {
132
+ .print-page {
133
+ page-break-before: always;
134
+ page-break-inside: avoid;
135
+ break-inside: avoid;
136
+ }
137
+ }
138
+
139
+ /* Credit Card Size */
140
+ .credit-card-size-landscape {
141
+ width: 10.5cm;
142
+ height: 6.8cm;
143
+ }
144
+ </style>