@tekkare/auriga 0.2.18 → 0.2.19

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.18"
7
+ "version": "0.2.19"
8
8
  }
@@ -366,6 +366,17 @@ export default defineComponent({
366
366
  whiteLines: {
367
367
  type: Array,
368
368
  default: null
369
+ },
370
+ lang: {
371
+ type: String,
372
+ default: "en",
373
+ validator: (value) => {
374
+ return ["en", "fr"].includes(value);
375
+ }
376
+ },
377
+ customPlaceholder: {
378
+ type: String,
379
+ default: null
369
380
  }
370
381
  },
371
382
  emits: ["changeInputValue"],
@@ -657,17 +668,19 @@ export default defineComponent({
657
668
  return Math.ceil(resultCount.value / savePageSize.value);
658
669
  });
659
670
  const getPlaceHolder = computed(() => {
660
- if (props.searchColumns !== null) {
661
- let columnNames = `Search by ${props.heads[props.searchColumns[0]]}`;
671
+ if (props.customPlaceholder !== null) {
672
+ return props.customPlaceholder;
673
+ } else if (props.searchColumns !== null) {
674
+ let columnNames = `${props.lang === "fr" ? "Rechercher par" : "Search by"} ${props.heads[props.searchColumns[0]]}`;
662
675
  for (let i = 1; i < props.searchColumns.length; i++) {
663
676
  if (i === props.searchColumns.length - 1) {
664
- columnNames += ` or ${props.heads[props.searchColumns[i]]}...`;
677
+ columnNames += ` ${props.lang === "fr" ? "ou" : "or"} ${props.heads[props.searchColumns[i]]}...`;
665
678
  } else
666
679
  columnNames += `, ${props.heads[props.searchColumns[i]]}`;
667
680
  }
668
681
  return columnNames;
669
682
  } else
670
- return "Search all";
683
+ return props.lang === "fr" ? "Rechercher..." : "Search all...";
671
684
  });
672
685
  getColumnTypes();
673
686
  dataValues.value = fillTable.value;
@@ -164,6 +164,15 @@ declare const _default: import("vue").DefineComponent<{
164
164
  type: ArrayConstructor;
165
165
  default: null;
166
166
  };
167
+ lang: {
168
+ type: StringConstructor;
169
+ default: string;
170
+ validator: (value: string) => boolean;
171
+ };
172
+ customPlaceholder: {
173
+ type: StringConstructor;
174
+ default: null;
175
+ };
167
176
  }, {
168
177
  sortCol: import("vue").Ref<any>;
169
178
  sortDir: import("vue").Ref<any>;
@@ -374,10 +383,20 @@ declare const _default: import("vue").DefineComponent<{
374
383
  type: ArrayConstructor;
375
384
  default: null;
376
385
  };
386
+ lang: {
387
+ type: StringConstructor;
388
+ default: string;
389
+ validator: (value: string) => boolean;
390
+ };
391
+ customPlaceholder: {
392
+ type: StringConstructor;
393
+ default: null;
394
+ };
377
395
  }>> & {
378
396
  onChangeInputValue?: ((...args: any[]) => any) | undefined;
379
397
  }, {
380
398
  sort: boolean;
399
+ lang: string;
381
400
  search: boolean;
382
401
  contents: Object[];
383
402
  pageSize: number;
@@ -397,5 +416,6 @@ declare const _default: import("vue").DefineComponent<{
397
416
  autoCrop: boolean;
398
417
  tableId: string;
399
418
  whiteLines: unknown[];
419
+ customPlaceholder: string;
400
420
  }, {}>;
401
421
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",