classcard-ui 0.2.774 → 0.2.776

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.774",
3
+ "version": "0.2.776",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -2,12 +2,20 @@
2
2
  <div>
3
3
  <div class="flex items-center">
4
4
  <!-- label of phone field -->
5
- <label class="text-sm text-gray-900">{{ label }}</label>
5
+ <label
6
+ class="text-sm text-gray-900"
7
+ :class="[isBlock ? ' font-medium' : '']"
8
+ >{{ label }}</label
9
+ >
6
10
  <!-- asterisk sign to render if field is required -->
7
11
  <p v-if="isRequired" class="ml-1 text-red-600">*</p>
8
12
  </div>
9
13
  <div class="mt-1 w-full shadow-sm">
10
- <vue-tel-input v-bind="bindProps" :autoFormat="false" v-model="value"></vue-tel-input>
14
+ <vue-tel-input
15
+ v-bind="bindProps"
16
+ :autoFormat="false"
17
+ v-model="value"
18
+ ></vue-tel-input>
11
19
  </div>
12
20
  <p v-if="!isValidate" class="mt-1 text-sm text-red-600">
13
21
  {{ errorMessage }}
@@ -46,6 +54,11 @@ export default {
46
54
  helpText: {
47
55
  type: String,
48
56
  },
57
+ //label font-weight medium
58
+ isBlock: {
59
+ type: Boolean,
60
+ default: false,
61
+ },
49
62
  },
50
63
  data() {
51
64
  return {
@@ -286,6 +286,10 @@ export default {
286
286
  searchPlaceholder: {
287
287
  type: String,
288
288
  },
289
+ // Existing text for search
290
+ searchQuery: {
291
+ type: String,
292
+ },
289
293
  // Total number of rows in a table to calculate page numbers
290
294
  totalRecords: {
291
295
  type: String,
@@ -370,7 +374,7 @@ export default {
370
374
  return {
371
375
  toggleDropdown: false,
372
376
  showLoader: this.isLoading,
373
- searchTerm: "",
377
+ searchTerm: this.searchQuery ? this.searchQuery : "",
374
378
  paginationRecords: this.paginationData,
375
379
  reorderedArray: [...this.rows],
376
380
  controlClick: false,