@mythpe/quasar-ui-qui 0.4.48 → 0.4.50

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.48",
3
+ "version": "0.4.50",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -11,6 +11,7 @@ import { useI18n } from 'vue-i18n'
11
11
  import { computed } from 'vue'
12
12
  import { useMyth } from '../../composable'
13
13
  import type { MSarStringProps } from '../../types'
14
+ import { useQuasar } from 'quasar'
14
15
 
15
16
  interface Props {
16
17
  text?: MSarStringProps['text'];
@@ -19,7 +20,7 @@ interface Props {
19
20
 
20
21
  const props = defineProps<Props>()
21
22
 
22
- // const $q = useQuasar()
23
+ const $q = useQuasar()
23
24
  const { te } = useI18n({ useScope: 'global' })
24
25
  const { __, formatMoney } = useMyth()
25
26
  const getText = computed<string | undefined>(() => {
@@ -48,7 +49,8 @@ defineOptions({
48
49
  class="m-sar-col"
49
50
  v-bind="$attrs"
50
51
  >
52
+ <span :class="['sar-icon',{hidden: !$q.lang.rtl}]">{{ __('sr') }}</span>
51
53
  <span>{{ getText }}&nbsp;</span>
52
- <span class="sar-icon">{{ __('sr') }}</span>
54
+ <span :class="['sar-icon',{hidden: $q.lang.rtl}]">{{ __('sr') }}</span>
53
55
  </div>
54
56
  </template>
@@ -821,7 +821,7 @@ export const useDtHelpers = (options: MaybeRefOrGetter<MDatatableProps>, emit?:
821
821
  },
822
822
  order: 400
823
823
  }
824
- ], 'name').sort((a, b) => (a.order ?? 0) - (b.order ?? 0))))
824
+ ].filter(e => !!e), 'name').sort((a, b) => (a.order ?? 0) - (b.order ?? 0))))
825
825
  // const activeContextItems = computed(() => contextmenuItems.value.filter((e, i) => typeof e.showIf === 'function' ? e.showIf(e, i) : e.showIf !== !1) as Required<MDatatableProps['contextItems']> || [])
826
826
  const activeContextItems = computed(() => contextmenuItems.value)
827
827
  const onCloneItem = (item: MDtItem) => {
@@ -369,6 +369,7 @@ export const Helpers = {
369
369
  uniqBy<T> (array: T[], key: keyof T): T[] {
370
370
  const seen = new Set()
371
371
  return array.filter(item => {
372
+ if (!item) return false
372
373
  const value = item[key]
373
374
  if (seen.has(value)) {
374
375
  return false