@tekkare/auriga 0.2.13 → 0.2.14

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/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.2.13"
7
+ "version": "0.2.14"
8
8
  }
@@ -86,7 +86,15 @@
86
86
  >
87
87
  <tr
88
88
  :id="`${contIndex}-row`"
89
- :class="isOdd(contIndex) ? 'white_bg' : 'grey_bg'"
89
+ :class="
90
+ !alternateColor
91
+ ? whiteLines.includes(contIndex)
92
+ ? 'white_bg'
93
+ : 'grey_bg'
94
+ : isOdd(contIndex)
95
+ ? 'white_bg'
96
+ : 'grey_bg'
97
+ "
90
98
  >
91
99
  <td
92
100
  v-for="(value, valIndex) in content"
@@ -354,6 +362,10 @@ export default defineComponent({
354
362
  tableId: {
355
363
  type: String,
356
364
  default: "arg"
365
+ },
366
+ whiteLines: {
367
+ type: Array,
368
+ default: null
357
369
  }
358
370
  },
359
371
  emits: ["changeInputValue"],
@@ -376,6 +388,9 @@ export default defineComponent({
376
388
  const toggleCrop = ref(null);
377
389
  const hasReadMore = ref([]);
378
390
  const tableKey = ref(0);
391
+ const alternateColor = computed(() => {
392
+ return props.whiteLines === null ? true : false;
393
+ });
379
394
  watch(
380
395
  () => props.contents,
381
396
  (newContent) => {
@@ -728,7 +743,8 @@ export default defineComponent({
728
743
  toggleCrop,
729
744
  hasReadMore,
730
745
  applyToggleCrop,
731
- tableKey
746
+ tableKey,
747
+ alternateColor
732
748
  };
733
749
  }
734
750
  });
@@ -160,6 +160,10 @@ declare const _default: import("vue").DefineComponent<{
160
160
  type: StringConstructor;
161
161
  default: string;
162
162
  };
163
+ whiteLines: {
164
+ type: ArrayConstructor;
165
+ default: null;
166
+ };
163
167
  }, {
164
168
  sortCol: import("vue").Ref<any>;
165
169
  sortDir: import("vue").Ref<any>;
@@ -203,6 +207,7 @@ declare const _default: import("vue").DefineComponent<{
203
207
  hasReadMore: import("vue").Ref<string[]>;
204
208
  applyToggleCrop: (index: number, value: number) => void;
205
209
  tableKey: import("vue").Ref<number>;
210
+ alternateColor: import("vue").ComputedRef<boolean>;
206
211
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "changeInputValue"[], "changeInputValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
207
212
  heads: {
208
213
  type: {
@@ -365,6 +370,10 @@ declare const _default: import("vue").DefineComponent<{
365
370
  type: StringConstructor;
366
371
  default: string;
367
372
  };
373
+ whiteLines: {
374
+ type: ArrayConstructor;
375
+ default: null;
376
+ };
368
377
  }>> & {
369
378
  onChangeInputValue?: ((...args: any[]) => any) | undefined;
370
379
  }, {
@@ -387,5 +396,6 @@ declare const _default: import("vue").DefineComponent<{
387
396
  maxHeight: string | number;
388
397
  autoCrop: boolean;
389
398
  tableId: string;
399
+ whiteLines: unknown[];
390
400
  }, {}>;
391
401
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",