@d-mok/quasar-app-extension-quasar-axe 3.1.44 → 3.1.46

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": "@d-mok/quasar-app-extension-quasar-axe",
3
- "version": "3.1.44",
3
+ "version": "3.1.46",
4
4
  "description": "A Quasar App Extension",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@ async function base(component: QDialogOptions['component'], props: any) {
25
25
 
26
26
  export async function custom(
27
27
  component: QDialogOptions['component'],
28
- props: any
28
+ props: any = {}
29
29
  ) {
30
30
  return await base(component, props)
31
31
  }
@@ -9,7 +9,7 @@ type onfulfilled<T, U> = ((value: T) => Promisable<U>) | undefined | null
9
9
  type onrejected<U> = ((reason: any) => Promisable<U>) | undefined | null
10
10
 
11
11
  abstract class BuilderUI {
12
- private isSlience: boolean = false
12
+ private isSilence: boolean = false
13
13
  private isConfirm: boolean = false
14
14
  private confirmContent: { title: string; msg: string } = {
15
15
  title: '',
@@ -21,7 +21,7 @@ abstract class BuilderUI {
21
21
  protected abstract dataLogic(): Promise<void>
22
22
 
23
23
  protected async run() {
24
- if (this.isSlience) ui.loadingOff()
24
+ if (this.isSilence) ui.loadingOff()
25
25
 
26
26
  if (this.isConfirm) {
27
27
  let { title, msg } = this.confirmContent
@@ -32,7 +32,7 @@ abstract class BuilderUI {
32
32
 
33
33
  if (this.isNotify) ui.onNotify(this.notifyContent)
34
34
 
35
- if (this.isSlience) ui.loadingOn()
35
+ if (this.isSilence) ui.loadingOn()
36
36
  }
37
37
 
38
38
  confirm(title: string, ...msgs: string[]): this {
@@ -52,8 +52,17 @@ abstract class BuilderUI {
52
52
  return this
53
53
  }
54
54
 
55
+ /**
56
+ * @deprecated
57
+ */
55
58
  slience(): this {
56
- this.isSlience = true
59
+ this.isSilence = true
60
+ this.isNotify = false
61
+ return this
62
+ }
63
+
64
+ silence(): this {
65
+ this.isSilence = true
57
66
  this.isNotify = false
58
67
  return this
59
68
  }