@mythpe/quasar-ui-qui 0.0.85 → 0.0.87

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.0.85",
3
+ "version": "0.0.87",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -64,6 +64,9 @@ export const useBindInput = <P extends G = G> (Props: MaybeRefOrGetter<P>, key:
64
64
  })
65
65
  const getLabel = computed<string | undefined>(() => {
66
66
  const k = nameLabel.value
67
+ if (k && k.indexOf('.*.')) {
68
+ return __(k.split('.').pop()) || undefined
69
+ }
67
70
  return k ? (__(k) || undefined) : undefined
68
71
  })
69
72
  const getPlaceholder = computed<string | undefined>(() => {
@@ -82,7 +85,11 @@ export const useBindInput = <P extends G = G> (Props: MaybeRefOrGetter<P>, key:
82
85
  return 'enter'
83
86
  })
84
87
  if (props.placeholder === undefined) {
85
- return __(`replace.${replace.value}`, { name: __(nameLabel.value) })
88
+ let name = nameLabel.value
89
+ if (name && name.indexOf('.*.')) {
90
+ name = name.split('.').pop() || nameLabel.value
91
+ }
92
+ return __(`replace.${replace.value}`, { name: __(name) })
86
93
  }
87
94
  return props.placeholder ? (__(props.placeholder) || undefined) : undefined
88
95
  })
@@ -9,12 +9,12 @@
9
9
  import lodash from 'lodash'
10
10
  import { useI18n } from 'vue-i18n'
11
11
  import type { RouteLocationNormalizedLoaded } from 'vue-router'
12
+ import { useRoute } from 'vue-router'
12
13
  import type { QDialogOptions, QNotifyCreateOptions } from 'quasar'
13
14
  import { copyToClipboard, extend, useQuasar } from 'quasar'
14
15
  import { Helpers, MythKey, type MythType, Str, veeRules } from '../utils'
15
16
  import type { MDtColumn, MDtHeadersParameter, ParseHeaderOptions, Vue3MAlertMessage, Vue3MAlertMessageOptions, Vue3MConfirmMessage } from '../types'
16
17
  import { computed, inject } from 'vue'
17
- import { useRoute } from 'vue-router'
18
18
 
19
19
  export const useMyth = () => {
20
20
  const plugin = inject(MythKey) as MythType
@@ -264,23 +264,21 @@ export const useMyth = () => {
264
264
  message,
265
265
  focus: 'none',
266
266
  cancel: {
267
- color: cancelProps.color || 'positive',
267
+ color: cancelProps.color || undefined,
268
268
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
269
269
  // @ts-ignore
270
- label: t(cancelProps?.label || 'no'),
270
+ label: t(cancelProps?.label || 'labels.cancel'),
271
+ outline: !0,
271
272
  ...buttonsProps as any,
272
- flat: !0,
273
- unelevated: !0,
274
273
  ...cancelProps as any
275
274
  },
276
275
  ok: {
277
- color: okProps.color || 'negative',
276
+ color: okProps.color || 'primary',
278
277
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
279
278
  // @ts-ignore
280
- label: t(okProps?.label || 'yes'),
279
+ label: t(okProps?.label || 'labels.confirm'),
280
+ outline: !1,
281
281
  ...buttonsProps as any,
282
- flat: !0,
283
- unelevated: !0,
284
282
  ...okProps as any
285
283
  },
286
284
  persistent: !0,