@tekkare/auriga 0.1.172 → 0.1.174

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.1.172"
7
+ "version": "0.1.174"
8
8
  }
@@ -16,7 +16,7 @@
16
16
  import { onMounted, ref, computed, defineComponent } from "vue";
17
17
  import argTextBtn from "./argTextBtn.vue";
18
18
  export default defineComponent({
19
- name: "argtTextHighlight",
19
+ name: "argHighlightText",
20
20
  components: { argTextBtn },
21
21
  props: {
22
22
  text: {
@@ -64,7 +64,7 @@ export default defineComponent({
64
64
  return showMore.value ? props.customReadMore.less : props.customReadMore.more;
65
65
  } else {
66
66
  const texts = {
67
- more: { en: "Read more", fr: "Voir plus", es: "Ver m\xE0s" },
67
+ more: { en: "Read more", fr: "Voir plus", es: "Ver m\xE1s" },
68
68
  less: { en: "Read less", fr: "Voir moins", es: "Ver menos" }
69
69
  };
70
70
  return showMore.value ? texts.less[props.lang] : texts.more[props.lang];
@@ -74,8 +74,9 @@ export default defineComponent({
74
74
  showMore.value = !showMore.value;
75
75
  if (showMore.value) {
76
76
  emit("onShowMore");
77
- } else
77
+ } else {
78
78
  emit("onShowLess");
79
+ }
79
80
  }
80
81
  function escapeRegExp(str) {
81
82
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\<script lang="ts">
@@ -83,7 +84,7 @@ import { onMounted, ref, computed, defineComponent } from "vue";
83
84
  import argTextBtn from "./argTextBtn.vue";
84
85
 
85
86
  export default defineComponent({
86
- name: "argtTextHighlight",
87
+ name: "argHighlightText",
87
88
  components: { argTextBtn },
88
89
  props: {
89
90
  text: {
@@ -91,7 +92,7 @@ export default defineComponent({
91
92
  required: true,
92
93
  },
93
94
  queries: {
94
- type: Array<string>,
95
+ type: Array as () => string[],
95
96
  default: null,
96
97
  },
97
98
  crop: {
@@ -118,7 +119,6 @@ export default defineComponent({
118
119
  type: String as () => "en" | "fr" | "es",
119
120
  default: "en",
120
121
  validator: (value: string) => {
121
- // Check if the value is either 'en' or 'fr'
122
122
  return ["en", "fr", "es"].includes(value);
123
123
  },
124
124
  },
@@ -126,7 +126,7 @@ export default defineComponent({
126
126
  emits: ["onShowMore", "onShowLess"],
127
127
  setup(props, { emit }) {
128
128
  const showMore = ref(false);
129
- const indic = ref(null as any);
129
+ const indic = ref<HTMLElement | null>(null);
130
130
 
131
131
  const getReadMore = computed(() => {
132
132
  if (props.customReadMore !== null) {
@@ -135,7 +135,7 @@ export default defineComponent({
135
135
  : props.customReadMore.more;
136
136
  } else {
137
137
  const texts = {
138
- more: { en: "Read more", fr: "Voir plus", es: "Ver màs" },
138
+ more: { en: "Read more", fr: "Voir plus", es: "Ver más" },
139
139
  less: { en: "Read less", fr: "Voir moins", es: "Ver menos" },
140
140
  };
141
141
  return showMore.value ? texts.less[props.lang] : texts.more[props.lang];
@@ -147,18 +147,19 @@ export default defineComponent({
147
147
 
148
148
  if (showMore.value) {
149
149
  emit("onShowMore");
150
- } else emit("onShowLess");
150
+ } else {
151
+ emit("onShowLess");
152
+ }
151
153
  }
152
154
 
153
155
  function escapeRegExp(str: string) {
154
- return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string
156
+ return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
155
157
  }
156
158
 
157
159
  const needsMore = computed(() => {
158
160
  const fullHeight = ref(0);
159
161
  const originalHeight = ref(0);
160
162
 
161
- // const indic = document.getElementById(props.id);
162
163
  if (indic.value !== null) {
163
164
  indic.value.classList.remove("crop");
164
165
 
@@ -4,20 +4,7 @@ declare const _default: import("vue").DefineComponent<{
4
4
  required: true;
5
5
  };
6
6
  queries: {
7
- type: {
8
- (arrayLength: number): string[];
9
- (...items: string[]): string[];
10
- new (arrayLength: number): string[];
11
- new (...items: string[]): string[];
12
- isArray(arg: any): arg is any[];
13
- readonly prototype: any[];
14
- from<T>(arrayLike: ArrayLike<T>): T[];
15
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
16
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
17
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
18
- of<T_4>(...items: T_4[]): T_4[];
19
- readonly [Symbol.species]: ArrayConstructor;
20
- };
7
+ type: () => string[];
21
8
  default: null;
22
9
  };
23
10
  crop: {
@@ -60,20 +47,7 @@ declare const _default: import("vue").DefineComponent<{
60
47
  required: true;
61
48
  };
62
49
  queries: {
63
- type: {
64
- (arrayLength: number): string[];
65
- (...items: string[]): string[];
66
- new (arrayLength: number): string[];
67
- new (...items: string[]): string[];
68
- isArray(arg: any): arg is any[];
69
- readonly prototype: any[];
70
- from<T>(arrayLike: ArrayLike<T>): T[];
71
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
72
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
73
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
74
- of<T_4>(...items: T_4[]): T_4[];
75
- readonly [Symbol.species]: ArrayConstructor;
76
- };
50
+ type: () => string[];
77
51
  default: null;
78
52
  };
79
53
  crop: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.172",
3
+ "version": "0.1.174",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",