@mythpe/quasar-ui-qui 0.3.94 → 0.3.96

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mythpe/quasar-ui-qui",
3
- "version": "0.3.94",
3
+ "version": "0.3.96",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -39,6 +39,7 @@ type Props = {
39
39
  excel?: boolean;
40
40
  exportUrl?: MDatatableProps['exportUrl'];
41
41
  hideSearch?: boolean;
42
+ hideSearchColumns?: boolean;
42
43
  hideTitle?: boolean;
43
44
  searchDebounce?: MDatatableProps['searchDebounce'];
44
45
  withIndex?: MDatatableProps['withIndex'];
@@ -119,6 +120,7 @@ const props = withDefaults(defineProps<Props>(), {
119
120
  excel: undefined,
120
121
  exportUrl: undefined,
121
122
  hideSearch: !1,
123
+ hideSearchColumns: !1,
122
124
  hideTitle: undefined,
123
125
  searchDebounce: 600,
124
126
  withIndex: undefined,
@@ -926,7 +928,10 @@ defineExpose({
926
928
  </q-tooltip>
927
929
  </q-icon>
928
930
  </template>
929
- <template #after>
931
+ <template
932
+ v-if="!hideSearchColumns"
933
+ #after
934
+ >
930
935
  <q-btn
931
936
  :aria-label="__('menu')"
932
937
  :icon="pluginOptions.dt?.searchInput?.optionsIcon || 'ion-ios-options'"
@@ -1012,7 +1017,10 @@ defineExpose({
1012
1017
  </MTooltip>
1013
1018
  </q-btn>
1014
1019
  </template>
1015
- <template #append>
1020
+ <template
1021
+ v-if="!hideSearchColumns"
1022
+ #append
1023
+ >
1016
1024
  <q-btn
1017
1025
  :icon="`ion-ios-${lockSearch ? 'magnet' : 'lock'}`"
1018
1026
  fab-mini
@@ -151,6 +151,9 @@ export const useDtHelpers = (options: MaybeRefOrGetter<MDatatableProps>) => {
151
151
  searchColumnsRef.value = isSearchSelectedAll.value ? [getSearchColumnsHeaders.value[0].name] : getSearchColumnsHeaders.value.map(e => e.name)
152
152
  }
153
153
  const searchPlaceholder = computed<string>(() => {
154
+ if (props.hideSearchColumns) {
155
+ return __('labels.search')
156
+ }
154
157
  if (searchColumnsRef.value.length > 0) {
155
158
  return __('myth.datatable.searchInputPlaceholder',
156
159
  {
@@ -246,6 +246,7 @@ export type MDatatableProps<I extends GenericFormValues = GenericFormValues> = O
246
246
  importBtn?: boolean;
247
247
  noExampleBtn?: boolean;
248
248
  hideSearch?: boolean;
249
+ hideSearchColumns?: boolean;
249
250
  hideTitle?: boolean;
250
251
  searchDebounce?: string | number;
251
252
  withIndex?: string | string[];