@tekkare/auriga 0.1.24 → 0.1.26

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.24"
7
+ "version": "0.1.26"
8
8
  }
@@ -1,10 +1,11 @@
1
1
  <template>
2
- <div>
2
+ <div :class="fullWidth ? 'full_width' : ''">
3
3
  <span
4
4
  v-if="onlyIcon === false"
5
5
  :class="
6
- `oip_${btnStyle}_button oip_btn ` +
7
- [becomeSmall === true ? 'prmt_button_big' : '']
6
+ `oip_${btnStyle}_button oip_btn oip_btn_${size} ` +
7
+ [becomeSmall === true ? 'prmt_button_big ' : ''] +
8
+ [fullWidth === true ? 'oip_full_btn' : '']
8
9
  "
9
10
  @click="send()"
10
11
  >
@@ -53,7 +54,6 @@
53
54
 
54
55
  <script>
55
56
  import argIcon from "./argIcon.vue";
56
- import argStyle from "./argStyle.vue";
57
57
  import {
58
58
  ref,
59
59
  computed,
@@ -61,7 +61,7 @@ import {
61
61
  } from "vue";
62
62
  export default defineComponent({
63
63
  name: "argBtn",
64
- components: { argIcon, argStyle },
64
+ components: { argIcon },
65
65
  props: {
66
66
  btnStyle: { type: String, default: "primary" },
67
67
  becomeSmall: { type: Boolean, default: true },
@@ -69,7 +69,15 @@ export default defineComponent({
69
69
  onlyIcon: { type: Boolean, default: false },
70
70
  prefixIcon: { type: String, default: null },
71
71
  suffixIcon: { type: String, default: null },
72
- loading: { type: Boolean, default: false }
72
+ loading: { type: Boolean, default: false },
73
+ fullWidth: { type: Boolean, default: false },
74
+ size: {
75
+ type: String,
76
+ default: "s",
77
+ validator: (value) => {
78
+ return ["s", "m"].includes(value);
79
+ }
80
+ }
73
81
  },
74
82
  emits: ["onClick"],
75
83
  setup(props, { emit }) {
@@ -113,4 +121,8 @@ export default defineComponent({
113
121
  display: none !important;
114
122
  }
115
123
  }
124
+
125
+ .full_width {
126
+ width: 100%;
127
+ }
116
128
  </style>
@@ -27,6 +27,15 @@ declare const _default: import("vue").DefineComponent<{
27
27
  type: BooleanConstructor;
28
28
  default: boolean;
29
29
  };
30
+ fullWidth: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ size: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ validator: (value: string) => boolean;
38
+ };
30
39
  }, {
31
40
  getIconColor: import("vue").ComputedRef<string>;
32
41
  send: () => void;
@@ -59,6 +68,15 @@ declare const _default: import("vue").DefineComponent<{
59
68
  type: BooleanConstructor;
60
69
  default: boolean;
61
70
  };
71
+ fullWidth: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ size: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ validator: (value: string) => boolean;
79
+ };
62
80
  }>> & {
63
81
  onOnClick?: ((...args: any[]) => any) | undefined;
64
82
  }, {
@@ -69,5 +87,7 @@ declare const _default: import("vue").DefineComponent<{
69
87
  prefixIcon: string;
70
88
  suffixIcon: string;
71
89
  loading: boolean;
90
+ fullWidth: boolean;
91
+ size: string;
72
92
  }, {}>;
73
93
  export default _default;
@@ -18,7 +18,9 @@
18
18
  ]"
19
19
  >
20
20
  {{
21
- del_table.map((elem) => elem).length > 0 ? getAllSelect : empty_msg
21
+ del_table.map((elem) => elem).length > 0
22
+ ? getAllSelect
23
+ : getEmptyMsg
22
24
  }}
23
25
  </span>
24
26
  </arg-simple-label>
@@ -33,7 +35,13 @@
33
35
  <div class="oip_select_complex_header">
34
36
  <h1 class="oip_select_complex_header_title">
35
37
  {{
36
- !!select_placeholder ? `${select_placeholder} select` : "Select "
38
+ !!select_placeholder
39
+ ? `${select_placeholder} ${
40
+ lang === "fr" ? "sélection" : "select"
41
+ }`
42
+ : lang === "fr"
43
+ ? "Sélection"
44
+ : "Select"
37
45
  }}
38
46
  </h1>
39
47
  </div>
@@ -61,30 +69,36 @@
61
69
  </div>
62
70
  </div>
63
71
  </div>
64
- <p v-if="reachMax" class="warning_text">{{ reach_max_msg }}</p>
72
+ <p v-if="reachMax" class="warning_text">{{ getMaxSelectMsg }}</p>
65
73
  <div class="oip_select_complex_all_selection">
66
74
  <div class="oip_select_complex_add_selection">
67
75
  <div class="oip_select_complex_all_title">
68
- <div class="oip_select_complex_all_tittle_left">Available</div>
76
+ <div class="oip_select_complex_all_tittle_left">
77
+ {{ lang === "fr" ? "Disponible" : "Available" }}
78
+ </div>
69
79
  <div
70
80
  v-if="show_select_all"
71
81
  class="oip_select_complex_all_tittle_right add"
72
82
  @click="add_all_element"
73
83
  >
74
- Select all
84
+ {{ lang === "fr" ? "Tout sélectionner" : "Select all" }}
75
85
  </div>
76
86
  <div
77
87
  v-if="max_amount !== null"
78
88
  class="oip_select_complex_all_tittle_right"
79
89
  >
80
- Maximum selection: {{ max_amount }} items
90
+ {{
91
+ lng === "fr"
92
+ ? `Maximum: ${max_amount} éléments`
93
+ : `Maximum: ${max_amount} items`
94
+ }}
81
95
  </div>
82
96
  </div>
83
97
  <div class="oip_search_container">
84
98
  <arg-icon size="20" name="MagnifyingGlass"></arg-icon>
85
99
  <input
86
100
  class="oip_search_name"
87
- :placeholder="search_placeholder"
101
+ :placeholder="getPlaceholderAdd"
88
102
  v-model="searchNameAdd"
89
103
  @input="changeInput"
90
104
  />
@@ -130,25 +144,36 @@
130
144
  </div>
131
145
  </div>
132
146
  </div>
147
+ <div
148
+ class="oip_empty_dropdown"
149
+ v-else-if="filterNameAdd.length === 0"
150
+ >
151
+ <p>{{ getEmptyContentMsg }}</p>
152
+ </div>
133
153
  <div v-else class="oip_select_complex_selection_container">
134
- <arg-data-loader />
154
+ <arg-data-loader
155
+ :text="getLoaderText[0]"
156
+ :sub-text="getLoaderText[1]"
157
+ />
135
158
  </div>
136
159
  </div>
137
160
  <div class="oip_select_complex_del_selection">
138
161
  <div class="oip_select_complex_all_title">
139
- <div class="oip_select_complex_all_tittle_left">Selected</div>
162
+ <div class="oip_select_complex_all_tittle_left">
163
+ {{ lang === "fr" ? "Sélectionné" : "Selected" }}
164
+ </div>
140
165
  <div
141
166
  class="oip_select_complex_all_tittle_right del"
142
167
  @click="del_all_element"
143
168
  >
144
- Clear all
169
+ {{ lang === "fr" ? "Tout effacer" : "Clear all" }}
145
170
  </div>
146
171
  </div>
147
172
  <div class="oip_search_container">
148
173
  <arg-icon size="20" name="MagnifyingGlass"></arg-icon>
149
174
  <input
150
175
  class="oip_search_name"
151
- :placeholder="search_placeholder"
176
+ :placeholder="getPlaceholderDel"
152
177
  v-model="searchNameDel"
153
178
  />
154
179
  <arg-icon
@@ -185,7 +210,9 @@
185
210
  <arg-btn @click="cancel_function()" btnStyle="secondary"
186
211
  >Cancel</arg-btn
187
212
  >
188
- <arg-btn @click="apply_function()" btnStyle="primary">Apply</arg-btn>
213
+ <arg-btn @click="apply_function()" btnStyle="primary">{{
214
+ lang === "fr" ? "Apply" : "Appliquer"
215
+ }}</arg-btn>
189
216
  </div>
190
217
  </div>
191
218
  </div>
@@ -208,7 +235,8 @@ export default defineComponent({
208
235
  components: { argSimpleLabel, argBtn, argIcon, argDataLoader },
209
236
  props: {
210
237
  element_table: { type: Array, required: true },
211
- search_placeholder: { type: String, default: "Search" },
238
+ search_placeholder_add: { type: String, default: null },
239
+ search_placeholder_del: { type: String, default: null },
212
240
  need_apply: { type: Boolean, default: false },
213
241
  select_placeholder: { type: String, required: false },
214
242
  smart_selection_table: {
@@ -228,11 +256,20 @@ export default defineComponent({
228
256
  max_amount: { type: Number, default: null },
229
257
  reach_max_msg: {
230
258
  type: String,
231
- default: "You've reached the maximum amount of items you can select"
259
+ default: null
232
260
  },
233
261
  loading: { type: Boolean, default: false },
234
- empty_msg: { type: String, default: "No selection" },
235
- complex_label: { type: String, required: true }
262
+ empty_msg: { type: String, default: null },
263
+ complex_label: { type: String, required: true },
264
+ lang: {
265
+ type: String,
266
+ default: "en",
267
+ validator: (value) => {
268
+ return ["en", "fr"].includes(value);
269
+ }
270
+ },
271
+ loader_text: { type: Array, default: null },
272
+ empty_content_msg: { type: String, default: null }
236
273
  },
237
274
  emits: ["changeElement", "changeAddInputValue", "update:Selection"],
238
275
  setup(props, { emit }) {
@@ -307,6 +344,42 @@ export default defineComponent({
307
344
  );
308
345
  }
309
346
  );
347
+ const getEmptyMsg = computed(() => {
348
+ if (props.empty_msg === null) {
349
+ return props.lang === "fr" ? "Aucune S\xE9lection" : "No Selection";
350
+ } else
351
+ return props.empty_msg;
352
+ });
353
+ const getLoaderText = computed(() => {
354
+ if (props.loader_text === null) {
355
+ return props.lang === "fr" ? ["Chargement...", "Veuillez patienter"] : ["Loading...", "Please wait"];
356
+ } else
357
+ return props.loader_text;
358
+ });
359
+ const getPlaceholderAdd = computed(() => {
360
+ if (props.search_placeholder_add === null) {
361
+ return props.lang === "fr" ? "Rechercher une option..." : "Search options...";
362
+ } else
363
+ return props.search_placeholder_add;
364
+ });
365
+ const getPlaceholderDel = computed(() => {
366
+ if (props.search_placeholder_del === null) {
367
+ return props.lang === "fr" ? "Rechercher parmis les options selection\xE9es..." : "Search selected options...";
368
+ } else
369
+ return props.search_placeholder_del;
370
+ });
371
+ const getMaxSelectMsg = computed(() => {
372
+ if (props.reach_max_msg === null) {
373
+ return props.lang === "fr" ? "Vous avez atteint le maximum d'\xE9l\xE9ments que vous pouvez s\xE9lectionner'" : "You've reached the maximum amount of items you can select";
374
+ } else
375
+ return props.reach_max_msg;
376
+ });
377
+ const getEmptyContentMsg = computed(() => {
378
+ if (props.empty_content_msg === null) {
379
+ return props.lang === "fr" ? "Aucun contenu n'a \xE9t\xE9 trouv\xE9" : "No content was found";
380
+ } else
381
+ return props.empty_content_msg;
382
+ });
310
383
  const getAllSelect = computed(() => {
311
384
  const fullSelect = del_table.value.map((elem) => elem);
312
385
  let filterFill = ``;
@@ -500,7 +573,13 @@ export default defineComponent({
500
573
  cancel_function,
501
574
  change_save_table,
502
575
  getAllSelect,
503
- reachMax
576
+ reachMax,
577
+ getEmptyMsg,
578
+ getLoaderText,
579
+ getPlaceholderAdd,
580
+ getPlaceholderDel,
581
+ getMaxSelectMsg,
582
+ getEmptyContentMsg
504
583
  };
505
584
  }
506
585
  });
@@ -16,9 +16,13 @@ declare const _default: import("vue").DefineComponent<{
16
16
  };
17
17
  required: true;
18
18
  };
19
- search_placeholder: {
19
+ search_placeholder_add: {
20
20
  type: StringConstructor;
21
- default: string;
21
+ default: null;
22
+ };
23
+ search_placeholder_del: {
24
+ type: StringConstructor;
25
+ default: null;
22
26
  };
23
27
  need_apply: {
24
28
  type: BooleanConstructor;
@@ -76,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
76
80
  };
77
81
  reach_max_msg: {
78
82
  type: StringConstructor;
79
- default: string;
83
+ default: null;
80
84
  };
81
85
  loading: {
82
86
  type: BooleanConstructor;
@@ -84,12 +88,38 @@ declare const _default: import("vue").DefineComponent<{
84
88
  };
85
89
  empty_msg: {
86
90
  type: StringConstructor;
87
- default: string;
91
+ default: null;
88
92
  };
89
93
  complex_label: {
90
94
  type: StringConstructor;
91
95
  required: true;
92
96
  };
97
+ lang: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ validator: (value: string) => boolean;
101
+ };
102
+ loader_text: {
103
+ type: {
104
+ (arrayLength: number): string[];
105
+ (...items: string[]): string[];
106
+ new (arrayLength: number): string[];
107
+ new (...items: string[]): string[];
108
+ isArray(arg: any): arg is any[];
109
+ readonly prototype: any[];
110
+ from<T>(arrayLike: ArrayLike<T>): T[];
111
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
112
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
113
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
114
+ of<T_4>(...items: T_4[]): T_4[];
115
+ readonly [Symbol.species]: ArrayConstructor;
116
+ };
117
+ default: null;
118
+ };
119
+ empty_content_msg: {
120
+ type: StringConstructor;
121
+ default: null;
122
+ };
93
123
  }, {
94
124
  add_table: import("vue").Ref<string[]>;
95
125
  del_table: import("vue").Ref<string[]>;
@@ -120,6 +150,12 @@ declare const _default: import("vue").DefineComponent<{
120
150
  change_save_table: () => void;
121
151
  getAllSelect: import("vue").ComputedRef<string>;
122
152
  reachMax: import("vue").Ref<boolean>;
153
+ getEmptyMsg: import("vue").ComputedRef<string>;
154
+ getLoaderText: import("vue").ComputedRef<string[]>;
155
+ getPlaceholderAdd: import("vue").ComputedRef<string>;
156
+ getPlaceholderDel: import("vue").ComputedRef<string>;
157
+ getMaxSelectMsg: import("vue").ComputedRef<string>;
158
+ getEmptyContentMsg: import("vue").ComputedRef<string>;
123
159
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeElement" | "changeAddInputValue" | "update:Selection")[], "changeElement" | "changeAddInputValue" | "update:Selection", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
124
160
  element_table: {
125
161
  type: {
@@ -138,9 +174,13 @@ declare const _default: import("vue").DefineComponent<{
138
174
  };
139
175
  required: true;
140
176
  };
141
- search_placeholder: {
177
+ search_placeholder_add: {
142
178
  type: StringConstructor;
143
- default: string;
179
+ default: null;
180
+ };
181
+ search_placeholder_del: {
182
+ type: StringConstructor;
183
+ default: null;
144
184
  };
145
185
  need_apply: {
146
186
  type: BooleanConstructor;
@@ -198,7 +238,7 @@ declare const _default: import("vue").DefineComponent<{
198
238
  };
199
239
  reach_max_msg: {
200
240
  type: StringConstructor;
201
- default: string;
241
+ default: null;
202
242
  };
203
243
  loading: {
204
244
  type: BooleanConstructor;
@@ -206,19 +246,47 @@ declare const _default: import("vue").DefineComponent<{
206
246
  };
207
247
  empty_msg: {
208
248
  type: StringConstructor;
209
- default: string;
249
+ default: null;
210
250
  };
211
251
  complex_label: {
212
252
  type: StringConstructor;
213
253
  required: true;
214
254
  };
255
+ lang: {
256
+ type: StringConstructor;
257
+ default: string;
258
+ validator: (value: string) => boolean;
259
+ };
260
+ loader_text: {
261
+ type: {
262
+ (arrayLength: number): string[];
263
+ (...items: string[]): string[];
264
+ new (arrayLength: number): string[];
265
+ new (...items: string[]): string[];
266
+ isArray(arg: any): arg is any[];
267
+ readonly prototype: any[];
268
+ from<T>(arrayLike: ArrayLike<T>): T[];
269
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
270
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
271
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
272
+ of<T_4>(...items: T_4[]): T_4[];
273
+ readonly [Symbol.species]: ArrayConstructor;
274
+ };
275
+ default: null;
276
+ };
277
+ empty_content_msg: {
278
+ type: StringConstructor;
279
+ default: null;
280
+ };
215
281
  }>> & {
216
282
  onChangeElement?: ((...args: any[]) => any) | undefined;
217
283
  onChangeAddInputValue?: ((...args: any[]) => any) | undefined;
218
284
  "onUpdate:Selection"?: ((...args: any[]) => any) | undefined;
219
285
  }, {
286
+ lang: string;
220
287
  loading: boolean;
221
- search_placeholder: string;
288
+ search_placeholder_add: string;
289
+ search_placeholder_del: string;
222
290
  need_apply: boolean;
223
291
  smart_selection_table: unknown[];
224
292
  return_value: boolean;
@@ -230,5 +298,7 @@ declare const _default: import("vue").DefineComponent<{
230
298
  max_amount: number;
231
299
  reach_max_msg: string;
232
300
  empty_msg: string;
301
+ loader_text: string[];
302
+ empty_content_msg: string;
233
303
  }, {}>;
234
304
  export default _default;
@@ -15,7 +15,10 @@ export default defineComponent({
15
15
  },
16
16
  lang: {
17
17
  type: String,
18
- default: "en"
18
+ default: "en",
19
+ validator: (value) => {
20
+ return ["en", "fr"].includes(value);
21
+ }
19
22
  },
20
23
  compact: {
21
24
  type: Boolean,
@@ -6,6 +6,7 @@ declare const _default: import("vue").DefineComponent<{
6
6
  lang: {
7
7
  type: StringConstructor;
8
8
  default: string;
9
+ validator: (value: string) => boolean;
9
10
  };
10
11
  compact: {
11
12
  type: BooleanConstructor;
@@ -22,6 +23,7 @@ declare const _default: import("vue").DefineComponent<{
22
23
  lang: {
23
24
  type: StringConstructor;
24
25
  default: string;
26
+ validator: (value: string) => boolean;
25
27
  };
26
28
  compact: {
27
29
  type: BooleanConstructor;
@@ -32,7 +32,7 @@
32
32
  :id="`label_${selected_item}`"
33
33
  >{{
34
34
  selected_item === null || selected_item === undefined
35
- ? empty_msg
35
+ ? getEmptyMsg
36
36
  : selected_item
37
37
  }}</span
38
38
  >
@@ -53,14 +53,21 @@
53
53
  class="oip_search_name"
54
54
  v-model="searchName"
55
55
  @input="changeInput()"
56
- :placeholder="filter_placeholder"
56
+ :placeholder="getPlaceholder"
57
57
  />
58
58
  </div>
59
59
  <!-- List -->
60
- <arg-data-loader v-if="loading" />
60
+ <arg-data-loader
61
+ v-if="loading"
62
+ :text="getLoaderText[0]"
63
+ :sub-text="getLoaderText[1]"
64
+ />
65
+ <div class="oip_empty_dropdown" v-else-if="filterName.length === 0">
66
+ <p>{{ getEmptyContentMsg }}</p>
67
+ </div>
61
68
  <div v-else class="oip_select_dropdown_selection_container">
62
69
  <div
63
- v-for="(element, index) of filterName()"
70
+ v-for="(element, index) of filterName"
64
71
  :key="index"
65
72
  class="oip_select_complex_selection_loop"
66
73
  :class="values_disabled.includes(index) ? 'disabled_option' : ''"
@@ -132,6 +139,7 @@ import argDataLoader from "./argDataLoader.vue";
132
139
  import {
133
140
  onMounted,
134
141
  ref,
142
+ computed,
135
143
  watch,
136
144
  defineComponent,
137
145
  onUnmounted,
@@ -145,8 +153,7 @@ export default defineComponent({
145
153
  search: { type: Boolean, default: true },
146
154
  filter_placeholder: {
147
155
  type: String,
148
- required: false,
149
- default: "Search options..."
156
+ default: null
150
157
  },
151
158
  close_on_click: { type: Boolean, default: true },
152
159
  default_select: { type: Number, required: false, default: null },
@@ -154,9 +161,18 @@ export default defineComponent({
154
161
  disabled: { type: Boolean, default: false },
155
162
  return_value: { type: Boolean, default: false },
156
163
  values_disabled: { type: Array, default: () => [] },
157
- empty_msg: { type: String, default: "No selection" },
164
+ empty_msg: { type: String, default: null },
158
165
  dropdown_label: { type: String, required: true },
159
- loading: { type: Boolean, default: false }
166
+ loading: { type: Boolean, default: false },
167
+ lang: {
168
+ type: String,
169
+ default: "en",
170
+ validator: (value) => {
171
+ return ["en", "fr"].includes(value);
172
+ }
173
+ },
174
+ loader_text: { type: Array, default: null },
175
+ empty_content_msg: { type: String, default: null }
160
176
  },
161
177
  emits: ["changeElement", "update:Selection", "changeInputValue"],
162
178
  setup(props, { emit }) {
@@ -175,6 +191,7 @@ export default defineComponent({
175
191
  watch(
176
192
  () => props.element_table,
177
193
  (new_element_table) => {
194
+ table_values.value = new_element_table;
178
195
  if (props.watch_default_change) {
179
196
  selected_item.value = new_element_table[props.default_select];
180
197
  selected_number.value = props.default_select;
@@ -190,6 +207,30 @@ export default defineComponent({
190
207
  }
191
208
  }
192
209
  );
210
+ const getEmptyMsg = computed(() => {
211
+ if (props.empty_msg === null) {
212
+ return props.lang === "fr" ? "Aucune S\xE9lection" : "No Selection";
213
+ } else
214
+ return props.empty_msg;
215
+ });
216
+ const getLoaderText = computed(() => {
217
+ if (props.loader_text === null) {
218
+ return props.lang === "fr" ? ["Chargement...", "Veuillez patienter"] : ["Loading...", "Please wait"];
219
+ } else
220
+ return props.loader_text;
221
+ });
222
+ const getPlaceholder = computed(() => {
223
+ if (props.filter_placeholder === null) {
224
+ return props.lang === "fr" ? "Rechercher une option..." : "Search options...";
225
+ } else
226
+ return props.filter_placeholder;
227
+ });
228
+ const getEmptyContentMsg = computed(() => {
229
+ if (props.empty_content_msg === null) {
230
+ return props.lang === "fr" ? "Aucun contenu n'a \xE9t\xE9 trouv\xE9" : "No content was found";
231
+ } else
232
+ return props.empty_content_msg;
233
+ });
193
234
  function changeInput() {
194
235
  setTimeout(() => {
195
236
  emit("changeInputValue", searchName.value);
@@ -225,14 +266,14 @@ export default defineComponent({
225
266
  isDisplay.value = false;
226
267
  document?.removeEventListener("click", closeDropdown);
227
268
  }
228
- function filterName() {
269
+ const filterName = computed(() => {
229
270
  if (searchName.value !== null) {
230
- return props.element_table.filter(
271
+ return table_values.value.filter(
231
272
  (element) => element.toLowerCase().includes(searchName.value.toLowerCase())
232
273
  );
233
274
  }
234
- return props.element_table;
235
- }
275
+ return table_values.value;
276
+ });
236
277
  function changeDisplay() {
237
278
  if (props.disabled === false) {
238
279
  if (isDisplay.value === true) {
@@ -276,7 +317,11 @@ export default defineComponent({
276
317
  closeDropdown,
277
318
  filterName,
278
319
  changeDisplay,
279
- changeInput
320
+ changeInput,
321
+ getEmptyMsg,
322
+ getLoaderText,
323
+ getPlaceholder,
324
+ getEmptyContentMsg
280
325
  };
281
326
  }
282
327
  });