@mythpe/quasar-ui-qui 0.2.89 → 0.3.0

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.2.89",
3
+ "version": "0.3.0",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -490,6 +490,9 @@ export const useDtHelpers = (options: MaybeRefOrGetter<MDatatableProps>) => {
490
490
  ...data
491
491
  }
492
492
  }
493
+ const setFilterOptions = (data: Record<string, any>) => {
494
+ filterForm.value = { ...data }
495
+ }
493
496
 
494
497
  const openShowDialogNoIndex = async (i: MDtItem) => {
495
498
  const item = toRef(i)
@@ -860,7 +863,13 @@ export const useDtHelpers = (options: MaybeRefOrGetter<MDatatableProps>) => {
860
863
  updateSelectedItems,
861
864
  imageDialog,
862
865
  openImageDialog,
863
- closeImageDialog
866
+ closeImageDialog,
867
+ setFilterOptions,
868
+ updateFilterOptions,
869
+ openFilterDialog,
870
+ closeFilterDialog,
871
+ saveFilterDialog,
872
+ onRemoveFilter
864
873
  })
865
874
  const getShowSelection = computed<boolean | undefined>(() => {
866
875
  if (props.hideSelection) {
@@ -159,6 +159,12 @@ export type MDatatableScope = {
159
159
  imageDialog: UnwrapNestedRefs<{ value: boolean, src?: string, asAttachment?: boolean }>;
160
160
  openImageDialog: (src: string, opts?: { asAttachment?: boolean }) => void;
161
161
  closeImageDialog: () => void;
162
+ setFilterOptions: (data: any) => void;
163
+ updateFilterOptions: (data: any) => void;
164
+ openFilterDialog: () => void;
165
+ closeFilterDialog: () => void;
166
+ saveFilterDialog: () => void;
167
+ onRemoveFilter: (key: string | number) => void;
162
168
  }
163
169
  type E = MDatatableDialogsOptions['item'];
164
170
  export type GenericMDtBtn = Record<string, any> & {