@tekkare/auriga 0.2.116 → 0.2.118
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
|
@@ -186,6 +186,7 @@ export default defineComponent({
|
|
|
186
186
|
closeSugg();
|
|
187
187
|
}
|
|
188
188
|
} else {
|
|
189
|
+
emit("update:Value", searchValue.value);
|
|
189
190
|
closeSugg();
|
|
190
191
|
}
|
|
191
192
|
optionIndex.value = 1;
|
|
@@ -254,6 +255,7 @@ export default defineComponent({
|
|
|
254
255
|
openSugg();
|
|
255
256
|
searchValue.value = event?.target?.value;
|
|
256
257
|
emit("update:Value", searchValue.value);
|
|
258
|
+
console.log(searchValue.value);
|
|
257
259
|
}
|
|
258
260
|
onMounted(() => {
|
|
259
261
|
searchBar.value = document.getElementById("search_input_simple");
|
|
@@ -272,7 +274,9 @@ export default defineComponent({
|
|
|
272
274
|
function submitSearch() {
|
|
273
275
|
if (optionIndex.value > 0) {
|
|
274
276
|
closeOnEnter.value = true;
|
|
275
|
-
|
|
277
|
+
if (props.suggestions) {
|
|
278
|
+
searchValue.value = filterSuggestions.value[optionIndex.value - 1]?.text;
|
|
279
|
+
}
|
|
276
280
|
emit("update:Value", searchValue.value);
|
|
277
281
|
emit("selectSuggestion", searchValue.value);
|
|
278
282
|
setTimeout(() => {
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
:placeHolderValue="getPlaceHolder"
|
|
8
8
|
class="table_input"
|
|
9
9
|
@submitSearch="sendSearch"
|
|
10
|
+
:search-bar-id="tableId ? tableId : generateTableId"
|
|
10
11
|
/>
|
|
11
12
|
<div :class="fullTableScroll ? 'full scroll_table' : 'full'">
|
|
12
13
|
<div
|
|
@@ -389,7 +390,7 @@ export default defineComponent({
|
|
|
389
390
|
},
|
|
390
391
|
tableId: {
|
|
391
392
|
type: String,
|
|
392
|
-
default:
|
|
393
|
+
default: null
|
|
393
394
|
},
|
|
394
395
|
whiteLines: {
|
|
395
396
|
type: Array,
|
|
@@ -469,7 +470,7 @@ export default defineComponent({
|
|
|
469
470
|
getColumnTypes();
|
|
470
471
|
}
|
|
471
472
|
);
|
|
472
|
-
watch(searchKey, (newSearchKey) => {
|
|
473
|
+
watch(searchKey.value, (newSearchKey) => {
|
|
473
474
|
setPage(1);
|
|
474
475
|
if (!props.searchFullWord || props.searchFullWord && newSearchKey.length === 0) {
|
|
475
476
|
emit("changeInputValue", newSearchKey);
|
|
@@ -780,6 +781,9 @@ export default defineComponent({
|
|
|
780
781
|
savePageSize.value = props.pageSize;
|
|
781
782
|
showToggle.value = props.toggleDisplay;
|
|
782
783
|
}
|
|
784
|
+
const generateTableId = computed(() => {
|
|
785
|
+
return props.heads.join("_");
|
|
786
|
+
});
|
|
783
787
|
return {
|
|
784
788
|
sortCol,
|
|
785
789
|
sortDir,
|
|
@@ -824,7 +828,8 @@ export default defineComponent({
|
|
|
824
828
|
tableKey,
|
|
825
829
|
alternateColor,
|
|
826
830
|
cropKey,
|
|
827
|
-
langData
|
|
831
|
+
langData,
|
|
832
|
+
generateTableId
|
|
828
833
|
};
|
|
829
834
|
}
|
|
830
835
|
});
|
|
@@ -158,7 +158,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
158
158
|
};
|
|
159
159
|
tableId: {
|
|
160
160
|
type: StringConstructor;
|
|
161
|
-
default:
|
|
161
|
+
default: null;
|
|
162
162
|
};
|
|
163
163
|
whiteLines: {
|
|
164
164
|
type: ArrayConstructor;
|
|
@@ -222,6 +222,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
222
222
|
alternateColor: import("vue").ComputedRef<boolean>;
|
|
223
223
|
cropKey: import("vue").Ref<number, number>;
|
|
224
224
|
langData: import("vue").Ref<any, any>;
|
|
225
|
+
generateTableId: import("vue").ComputedRef<string>;
|
|
225
226
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "changeInputValue"[], "changeInputValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
226
227
|
heads: {
|
|
227
228
|
type: {
|
|
@@ -382,7 +383,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
382
383
|
};
|
|
383
384
|
tableId: {
|
|
384
385
|
type: StringConstructor;
|
|
385
|
-
default:
|
|
386
|
+
default: null;
|
|
386
387
|
};
|
|
387
388
|
whiteLines: {
|
|
388
389
|
type: ArrayConstructor;
|