@mythpe/quasar-ui-qui 0.1.14 → 0.1.16

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.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -1029,7 +1029,6 @@ const onRowContextmenu = (e: MouseEvent | Event, row: MDtItem, index: number | u
1029
1029
  contextmenu.value = !0
1030
1030
  }
1031
1031
  }
1032
- const contextmenuItemsProp = computed(() => props.contextItems)
1033
1032
  const contextmenuItems = computed<any>(() => ([
1034
1033
  {
1035
1034
  name: 'show',
@@ -1069,7 +1068,7 @@ const contextmenuItems = computed<any>(() => ([
1069
1068
  },
1070
1069
  order: 400
1071
1070
  },
1072
- ...(contextmenuItemsProp.value || [])
1071
+ ...(props.contextItems || [])
1073
1072
  ].sort((a, b) => (a.order ?? 0) - (b.order ?? 0))))
1074
1073
  const onCloneItem = (item: MDtItem) => {
1075
1074
  item = toValue(item)
@@ -1757,7 +1756,7 @@ defineOptions({
1757
1756
  >
1758
1757
  <MDtBtn
1759
1758
  v-if="(typeof contextBtn.showIf === 'function' ? contextBtn.showIf(tableOptions.selected[0],0) : contextBtn.showIf) && ( (contextBtn.click && isSingleSelectedItem) || (contextBtn.multiClick && !isSingleSelectedItem) )"
1760
- :tooltip="__(contextBtn.tooltip || contextBtn.label || contextBtn.name)"
1759
+ :tooltip="contextBtn.tooltip?__(contextBtn.tooltip):(contextBtn.label?__(`labels.${contextBtn.label}`):undefined)"
1761
1760
  v-bind="{...defaultTopBtnProps,...pluginOptions.dt?.topSelection?.btn,...contextBtn,...contextBtn.attr}"
1762
1761
  @click="contextBtn.multiClick && tableOptions.selected.length > 1 ? contextBtn.multiClick(tableOptions.selected) : (
1763
1762
  contextBtn.click ? contextBtn.click(tableOptions.selected[0],0) : undefined
@@ -16,7 +16,7 @@ export interface MAxiosProps extends Omit<MSelectProps, 'options' | 'axiosMode'>
16
16
  /**
17
17
  * Request params.
18
18
  */
19
- params?: Ref<ParamsReq> | ShallowRef<ParamsReq> | WritableComputedRef<ParamsReq> | ComputedRef<ParamsReq> | (() => ParamsReq);
19
+ params?: Ref<ParamsReq> | ShallowRef<ParamsReq> | WritableComputedRef<ParamsReq> | ComputedRef<ParamsReq> | (() => ParamsReq) | MaybeRefOrGetter<ParamsReq>;
20
20
  /**
21
21
  * Request relations.
22
22
  */