quasar 2.12.1 → 2.12.3

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.
Files changed (132) hide show
  1. package/dist/api/LoadingBar.json +2 -2
  2. package/dist/api/Morph.json +1 -1
  3. package/dist/api/QEditor.json +5 -0
  4. package/dist/api/Scroll.json +6 -3
  5. package/dist/api/ScrollFire.json +6 -3
  6. package/dist/api/TouchHold.json +6 -3
  7. package/dist/api/TouchPan.json +6 -3
  8. package/dist/api/TouchRepeat.json +6 -3
  9. package/dist/api/TouchSwipe.json +6 -3
  10. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  11. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  12. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  13. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  14. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
  15. package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
  16. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  17. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  18. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  19. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  20. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  21. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  22. package/dist/icon-set/material-symbols-outlined.umd.prod.js +1 -1
  23. package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
  24. package/dist/icon-set/material-symbols-sharp.umd.prod.js +1 -1
  25. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  26. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  27. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  28. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  29. package/dist/icon-set/mdi-v7.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  32. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
  34. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  35. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  36. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
  37. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  38. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  39. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  40. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  41. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  42. package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +1 -1
  43. package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +1 -1
  44. package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +1 -1
  45. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  46. package/dist/icon-set/svg-mdi-v7.umd.prod.js +1 -1
  47. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  48. package/dist/icon-set/themify.umd.prod.js +1 -1
  49. package/dist/lang/ar-TN.umd.prod.js +1 -1
  50. package/dist/lang/ar.umd.prod.js +1 -1
  51. package/dist/lang/az-Latn.umd.prod.js +1 -1
  52. package/dist/lang/bg.umd.prod.js +1 -1
  53. package/dist/lang/bn.umd.prod.js +1 -1
  54. package/dist/lang/ca.umd.prod.js +1 -1
  55. package/dist/lang/cs.umd.prod.js +1 -1
  56. package/dist/lang/da.umd.prod.js +1 -1
  57. package/dist/lang/de.umd.prod.js +1 -1
  58. package/dist/lang/el.umd.prod.js +1 -1
  59. package/dist/lang/en-GB.umd.prod.js +1 -1
  60. package/dist/lang/en-US.umd.prod.js +1 -1
  61. package/dist/lang/eo.umd.prod.js +1 -1
  62. package/dist/lang/es.umd.prod.js +1 -1
  63. package/dist/lang/et.umd.prod.js +1 -1
  64. package/dist/lang/eu.umd.prod.js +1 -1
  65. package/dist/lang/fa-IR.umd.prod.js +1 -1
  66. package/dist/lang/fa.umd.prod.js +1 -1
  67. package/dist/lang/fi.umd.prod.js +1 -1
  68. package/dist/lang/fr.umd.prod.js +1 -1
  69. package/dist/lang/gn.umd.prod.js +1 -1
  70. package/dist/lang/he.umd.prod.js +1 -1
  71. package/dist/lang/hr.umd.prod.js +1 -1
  72. package/dist/lang/hu.umd.prod.js +1 -1
  73. package/dist/lang/id.umd.prod.js +1 -1
  74. package/dist/lang/is.umd.prod.js +1 -1
  75. package/dist/lang/it.umd.prod.js +1 -1
  76. package/dist/lang/ja.umd.prod.js +1 -1
  77. package/dist/lang/kk.umd.prod.js +1 -1
  78. package/dist/lang/km.umd.prod.js +1 -1
  79. package/dist/lang/ko-KR.umd.prod.js +1 -1
  80. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  81. package/dist/lang/lt.umd.prod.js +1 -1
  82. package/dist/lang/lu.umd.prod.js +1 -1
  83. package/dist/lang/lv.umd.prod.js +1 -1
  84. package/dist/lang/mk.umd.prod.js +1 -1
  85. package/dist/lang/ml.umd.prod.js +1 -1
  86. package/dist/lang/mm.umd.prod.js +1 -1
  87. package/dist/lang/ms.umd.prod.js +1 -1
  88. package/dist/lang/my.umd.prod.js +1 -1
  89. package/dist/lang/nb-NO.umd.prod.js +1 -1
  90. package/dist/lang/nl.umd.prod.js +1 -1
  91. package/dist/lang/pl.umd.prod.js +1 -1
  92. package/dist/lang/pt-BR.umd.prod.js +1 -1
  93. package/dist/lang/pt.umd.prod.js +1 -1
  94. package/dist/lang/ro.umd.prod.js +1 -1
  95. package/dist/lang/ru.umd.prod.js +1 -1
  96. package/dist/lang/sk.umd.prod.js +1 -1
  97. package/dist/lang/sl.umd.prod.js +1 -1
  98. package/dist/lang/sm.umd.prod.js +1 -1
  99. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  100. package/dist/lang/sr.umd.prod.js +1 -1
  101. package/dist/lang/sv.umd.prod.js +1 -1
  102. package/dist/lang/ta.umd.prod.js +1 -1
  103. package/dist/lang/th.umd.prod.js +1 -1
  104. package/dist/lang/tr.umd.prod.js +1 -1
  105. package/dist/lang/ug.umd.prod.js +1 -1
  106. package/dist/lang/uk.umd.prod.js +1 -1
  107. package/dist/lang/uz-Cyrl.umd.prod.js +1 -1
  108. package/dist/lang/uz-Latn.umd.prod.js +1 -1
  109. package/dist/lang/vi.umd.prod.js +1 -1
  110. package/dist/lang/zh-CN.umd.prod.js +1 -1
  111. package/dist/lang/zh-TW.umd.prod.js +1 -1
  112. package/dist/quasar.cjs.prod.js +2 -2
  113. package/dist/quasar.esm.js +10 -4
  114. package/dist/quasar.esm.prod.js +2 -2
  115. package/dist/quasar.sass +1 -1
  116. package/dist/quasar.umd.js +10 -4
  117. package/dist/quasar.umd.prod.js +2 -2
  118. package/dist/types/api/qloadingbar.d.ts +1 -1
  119. package/dist/types/index.d.ts +1524 -49
  120. package/dist/web-types/web-types.json +14 -8
  121. package/package.json +1 -1
  122. package/src/components/editor/QEditor.json +6 -0
  123. package/src/directives/Morph.json +1 -1
  124. package/src/directives/Scroll.json +3 -3
  125. package/src/directives/ScrollFire.json +3 -3
  126. package/src/directives/TouchHold.json +3 -3
  127. package/src/directives/TouchPan.json +3 -3
  128. package/src/directives/TouchRepeat.json +3 -3
  129. package/src/directives/TouchSwipe.json +3 -3
  130. package/src/plugins/LoadingBar.json +2 -2
  131. package/src/utils/private/click-outside.js +6 -0
  132. package/src/utils/private/position-engine.js +1 -1
@@ -2,7 +2,7 @@
2
2
  "$schema": "",
3
3
  "framework": "vue",
4
4
  "name": "quasar",
5
- "version": "2.12.1",
5
+ "version": "2.12.3",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "types-syntax": "typescript",
@@ -4906,7 +4906,13 @@
4906
4906
  "doc-url": "https://v2.quasar.dev/vue-components/editor"
4907
4907
  }
4908
4908
  ],
4909
- "slots": [],
4909
+ "slots": [
4910
+ {
4911
+ "name": "[command]",
4912
+ "description": "Content for the given command in the toolbar",
4913
+ "doc-url": "https://v2.quasar.dev/vue-components/editor"
4914
+ }
4915
+ ],
4910
4916
  "description": "QEditor - Quasar component",
4911
4917
  "doc-url": "https://v2.quasar.dev/vue-components/editor"
4912
4918
  },
@@ -19357,7 +19363,7 @@
19357
19363
  "doc-url": "https://v2.quasar.dev/vue-directives/scroll",
19358
19364
  "value": {
19359
19365
  "kind": "expression",
19360
- "type": "Function"
19366
+ "type": "Function|undefined"
19361
19367
  }
19362
19368
  },
19363
19369
  {
@@ -19371,7 +19377,7 @@
19371
19377
  "doc-url": "https://v2.quasar.dev/vue-directives/scroll-fire",
19372
19378
  "value": {
19373
19379
  "kind": "expression",
19374
- "type": "Function"
19380
+ "type": "Function|undefined"
19375
19381
  }
19376
19382
  },
19377
19383
  {
@@ -19402,7 +19408,7 @@
19402
19408
  ],
19403
19409
  "value": {
19404
19410
  "kind": "expression",
19405
- "type": "Function"
19411
+ "type": "Function|undefined"
19406
19412
  }
19407
19413
  },
19408
19414
  {
@@ -19483,7 +19489,7 @@
19483
19489
  ],
19484
19490
  "value": {
19485
19491
  "kind": "expression",
19486
- "type": "Function"
19492
+ "type": "Function|undefined"
19487
19493
  }
19488
19494
  },
19489
19495
  {
@@ -19569,7 +19575,7 @@
19569
19575
  ],
19570
19576
  "value": {
19571
19577
  "kind": "expression",
19572
- "type": "Function"
19578
+ "type": "Function|undefined"
19573
19579
  }
19574
19580
  },
19575
19581
  {
@@ -19630,7 +19636,7 @@
19630
19636
  ],
19631
19637
  "value": {
19632
19638
  "kind": "expression",
19633
- "type": "Function"
19639
+ "type": "Function|undefined"
19634
19640
  }
19635
19641
  }
19636
19642
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar",
3
- "version": "2.12.1",
3
+ "version": "2.12.3",
4
4
  "description": "Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time",
5
5
  "main": "dist/quasar.cjs.prod.js",
6
6
  "module": "dist/quasar.esm.prod.js",
@@ -368,5 +368,11 @@
368
368
  "tsType": "QEditorCaret",
369
369
  "desc": "The current caret state"
370
370
  }
371
+ },
372
+
373
+ "slots": {
374
+ "[command]": {
375
+ "desc": "Content for the given command in the toolbar"
376
+ }
371
377
  }
372
378
  }
@@ -101,7 +101,7 @@
101
101
  },
102
102
 
103
103
  "waitFor": {
104
- "type": [ "Number", "String", "Promise" ],
104
+ "type": [ "Number", "String", "Promise<void>" ],
105
105
  "desc": "Delay animation start for that number of milliseconds, or until a 'transitionend' event is emitted by the destination element, or until the promise is resolved (if the promise is rejected the morphing will abort, but the `toggle function` was already called)",
106
106
  "default": "0",
107
107
  "examples": [ "300", "transitionend" ]
@@ -4,8 +4,8 @@
4
4
  },
5
5
 
6
6
  "value": {
7
- "type": "Function",
8
- "desc": "Function to call when scrolling occurs (use a non-function to disable)",
7
+ "type": ["Function", "undefined"],
8
+ "desc": "Function to call when scrolling occurs (use undefined to disable)",
9
9
  "params": {
10
10
  "verticalScrollPosition": {
11
11
  "type": "Number",
@@ -17,6 +17,6 @@
17
17
  }
18
18
  },
19
19
  "returns": null,
20
- "examples": [ "v-scroll=\"fnToCall\"", "v-scroll=\"void 0\"" ]
20
+ "examples": [ "v-scroll=\"fnToCall\"", "v-scroll=\"undefined\"" ]
21
21
  }
22
22
  }
@@ -4,8 +4,8 @@
4
4
  },
5
5
 
6
6
  "value": {
7
- "type": "Function",
8
- "desc": "Function to call when scrolling and element comes into the viewport (use a non-function to disable)",
7
+ "type": ["Function", "undefined"],
8
+ "desc": "Function to call when scrolling and element comes into the viewport (use undefined to disable)",
9
9
  "params": {
10
10
  "el": {
11
11
  "type": "Element",
@@ -13,6 +13,6 @@
13
13
  }
14
14
  },
15
15
  "returns": null,
16
- "examples": [ "v-scroll-fire=\"fnToCall\"", "v-scroll-fire=\"void 0\"" ]
16
+ "examples": [ "v-scroll-fire=\"fnToCall\"", "v-scroll-fire=\"undefined\"" ]
17
17
  }
18
18
  }
@@ -4,8 +4,8 @@
4
4
  },
5
5
 
6
6
  "value": {
7
- "type": "Function",
8
- "desc": "Function to call after user has hold touch/click for the specified amount of time (use a non-function to disable)",
7
+ "type": ["Function", "undefined"],
8
+ "desc": "Function to call after user has hold touch/click for the specified amount of time (use undefined to disable)",
9
9
  "params": {
10
10
  "details": {
11
11
  "type": "Object",
@@ -45,7 +45,7 @@
45
45
  }
46
46
  },
47
47
  "returns": null,
48
- "examples": [ "v-touch-hold=\"fnToCall\"", "v-touch-hold=\"void 0\"" ]
48
+ "examples": [ "v-touch-hold=\"fnToCall\"", "v-touch-hold=\"undefined\"" ]
49
49
  },
50
50
 
51
51
  "arg": {
@@ -4,8 +4,8 @@
4
4
  },
5
5
 
6
6
  "value": {
7
- "type": "Function",
8
- "desc": "Handler for panning (use a non-function to disable)",
7
+ "type": ["Function", "undefined"],
8
+ "desc": "Handler for panning (use undefined to disable)",
9
9
  "params": {
10
10
  "details": {
11
11
  "type": "Object",
@@ -102,7 +102,7 @@
102
102
  }
103
103
  },
104
104
  "returns": null,
105
- "examples": [ "v-touch-pan=\"fnToCall\"", "v-touch-pan=\"void 0\"" ]
105
+ "examples": [ "v-touch-pan=\"fnToCall\"", "v-touch-pan=\"undefined\"" ]
106
106
  },
107
107
 
108
108
  "modifiers": {
@@ -4,8 +4,8 @@
4
4
  },
5
5
 
6
6
  "value": {
7
- "type": "Function",
8
- "desc": "Handler for touch-repeat (use a non-function to disable)",
7
+ "type": ["Function", "undefined"],
8
+ "desc": "Handler for touch-repeat (use undefined to disable)",
9
9
  "params": {
10
10
  "details": {
11
11
  "type": "Object",
@@ -61,7 +61,7 @@
61
61
  }
62
62
  },
63
63
  "returns": null,
64
- "examples": [ "v-touch-repeat=\"fnToCall\"", "v-touch-repeat=\"void 0\"" ]
64
+ "examples": [ "v-touch-repeat=\"fnToCall\"", "v-touch-repeat=\"undefined\"" ]
65
65
  },
66
66
 
67
67
  "arg": {
@@ -4,8 +4,8 @@
4
4
  },
5
5
 
6
6
  "value": {
7
- "type": "Function",
8
- "desc": "Handler for swipe (use a non-function to disable)",
7
+ "type": ["Function", "undefined"],
8
+ "desc": "Handler for swipe (use undefined to disable)",
9
9
  "params": {
10
10
  "details": {
11
11
  "type": "Object",
@@ -50,7 +50,7 @@
50
50
  }
51
51
  },
52
52
  "returns": null,
53
- "examples": [ "v-touch-swipe=\"fnToCall\"", "v-touch-swipe=\"void 0\"" ]
53
+ "examples": [ "v-touch-swipe=\"fnToCall\"", "v-touch-swipe=\"undefined\"" ]
54
54
  },
55
55
 
56
56
  "arg": {
@@ -9,7 +9,7 @@
9
9
  "propName": "loadingBar",
10
10
  "type": "Object",
11
11
  "tsType": "QLoadingBarOptions",
12
- "desc": "QAjaxBar component props, EXCEPT for 'hijack-filter'",
12
+ "desc": "QAjaxBar component props, EXCEPT for 'hijack-filter' in quasar.config file (if using Quasar CLI)",
13
13
  "examples": [ "{ position: 'bottom', reverse: true }" ]
14
14
  },
15
15
 
@@ -54,7 +54,7 @@
54
54
  "type": "Object",
55
55
  "tsType": "QLoadingBarOptions",
56
56
  "required": true,
57
- "desc": "QAjaxBar component props, EXCEPT for 'hijack-filter'",
57
+ "desc": "QAjaxBar component props",
58
58
  "examples": [ "{ position: 'bottom', reverse: true }" ]
59
59
  }
60
60
  }
@@ -30,6 +30,12 @@ function globalHandler (evt) {
30
30
  while (portalIndex >= 0) {
31
31
  const proxy = portalProxyList[ portalIndex ].$
32
32
 
33
+ // skip QTooltip portals
34
+ if (proxy.type.name === 'QTooltip') {
35
+ portalIndex--
36
+ continue
37
+ }
38
+
33
39
  if (proxy.type.name !== 'QDialog') {
34
40
  break
35
41
  }
@@ -175,7 +175,7 @@ export function setPosition (cfg, retryNumber = 0) {
175
175
  visibility: 'visible'
176
176
  })
177
177
 
178
- const { width: origElWidth, height: origElHeight } = targetEl.getBoundingClientRect()
178
+ const { offsetWidth: origElWidth, offsetHeight: origElHeight } = targetEl
179
179
  const { elWidth, elHeight } = fit === true || cover === true
180
180
  ? { elWidth: Math.max(anchorProps.width, origElWidth), elHeight: cover === true ? Math.max(anchorProps.height, origElHeight) : origElHeight }
181
181
  : { elWidth: origElWidth, elHeight: origElHeight }