@mythpe/quasar-ui-qui 0.4.65 → 0.4.67

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.4.65",
3
+ "version": "0.4.67",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -28,6 +28,7 @@ type P = {
28
28
  guest?: Props['guest'];
29
29
  requestWith?: Props['requestWith'];
30
30
  params?: Props['params'];
31
+ filter?: Props['filter'];
31
32
  lazy?: Props['lazy'];
32
33
  useChoice?: Props['useChoice'];
33
34
  byId?: Props['byId'];
@@ -46,6 +47,7 @@ const props = withDefaults(defineProps<P>(), {
46
47
  guest: undefined,
47
48
  requestWith: undefined,
48
49
  params: () => () => ({}),
50
+ filter: () => () => ({}),
49
51
  lazy: !1,
50
52
  useChoice: undefined,
51
53
  byId: undefined,
@@ -103,7 +105,8 @@ const prepare = async (fromWatch = !1, merge = {}) => {
103
105
  search: props.byId ? undefined : search.value,
104
106
  itemsPerPage: -1,
105
107
  page: 1,
106
- staticRequest: 1
108
+ staticRequest: 1,
109
+ filter: toValue(props.filter)
107
110
  }
108
111
  if (props.byId) {
109
112
  _params.filter = {
@@ -171,7 +174,7 @@ onMounted(() => {
171
174
  }
172
175
  }
173
176
  })
174
- watch(props.params, () => prepare(!0), { deep: !0 })
177
+ watch([props.params, props.filter], () => prepare(!0), { deep: !0 })
175
178
  const input = useTemplateRef<InstanceType<typeof MSelect>>('input')
176
179
  defineExpose<{ input: typeof input }>({ input })
177
180
  defineOptions({ name: 'MAxios', inheritAttrs: !1 })
@@ -143,7 +143,7 @@ defineOptions({
143
143
  dense,
144
144
  viewModeValue: viewModeValue !== undefined ? viewModeValue : getPlaceholder,
145
145
  placeholder:getPlaceholder,
146
- col: noCountry ? 12 : 8,
146
+ col: (readonly || viewMode || noCountry) ? 12 : 8,
147
147
  viewMode: (readonly || viewMode) ? !0 : !countryValue,
148
148
  readonly: undefined,
149
149
  }"
@@ -17,6 +17,10 @@ export interface MAxiosProps extends Omit<MSelectProps, 'options' | 'axiosMode'>
17
17
  * Request params.
18
18
  */
19
19
  params?: Ref<ParamsReq> | ShallowRef<ParamsReq> | WritableComputedRef<ParamsReq> | ComputedRef<ParamsReq> | (() => ParamsReq) | MaybeRefOrGetter<ParamsReq>;
20
+ /**
21
+ * Request filter.
22
+ */
23
+ filter?: MaybeRefOrGetter<Record<any, any>> | undefined;
20
24
  /**
21
25
  * Request relations.
22
26
  */