@mythpe/quasar-ui-qui 0.0.88 → 0.0.89

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.88",
3
+ "version": "0.0.89",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -10,7 +10,7 @@ import lodash from 'lodash'
10
10
  import { useI18n } from 'vue-i18n'
11
11
  import type { RouteLocationNormalizedLoaded } from 'vue-router'
12
12
  import { useRoute } from 'vue-router'
13
- import type { QDialogOptions, QNotifyCreateOptions } from 'quasar'
13
+ import type { QDialogOptions, QDialogProps, QNotifyCreateOptions } from 'quasar'
14
14
  import { copyToClipboard, extend, useQuasar } from 'quasar'
15
15
  import { Helpers, MythKey, type MythType, Str, veeRules } from '../utils'
16
16
  import type { MDtColumn, MDtHeadersParameter, ParseHeaderOptions, Vue3MAlertMessage, Vue3MAlertMessageOptions, Vue3MConfirmMessage } from '../types'
@@ -243,7 +243,8 @@ export const useMyth = () => {
243
243
  const alertError = (message: string) => {
244
244
  return alertMessage({ type: 'negative', message })
245
245
  }
246
- const confirmMessage = (message?: string, title?: string, opts?: QDialogOptions): Vue3MConfirmMessage => {
246
+ const confirmMessage = (message?: string, title?: string, opts?:
247
+ Partial<QDialogOptions> & Partial<QDialogProps>): Vue3MConfirmMessage => {
247
248
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
248
249
  // @ts-ignore
249
250
  title = title || t('messages.are_you_sure') || ''
@@ -263,6 +264,9 @@ export const useMyth = () => {
263
264
  title,
264
265
  message,
265
266
  focus: 'none',
267
+ persistent: !0,
268
+ transitionShow: 'jump-down',
269
+ transitionHide: 'jump-up',
266
270
  cancel: {
267
271
  color: cancelProps.color || undefined,
268
272
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -281,9 +285,6 @@ export const useMyth = () => {
281
285
  ...buttonsProps as any,
282
286
  ...okProps as any
283
287
  },
284
- persistent: !0,
285
- transitionShow: 'jump-down',
286
- transitionHide: 'jump-up',
287
288
  ...dialogProps as any,
288
289
  ...opts as any
289
290
  })