quasar 2.2.4 → 2.3.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 (253) hide show
  1. package/dist/api/AppFullscreen.json +15 -8
  2. package/dist/api/BottomSheet.json +23 -2
  3. package/dist/api/Cookies.json +4 -3
  4. package/dist/api/Dialog.json +40 -11
  5. package/dist/api/Loading.json +4 -2
  6. package/dist/api/LoadingBar.json +8 -3
  7. package/dist/api/LocalStorage.json +8 -0
  8. package/dist/api/Morph.json +14 -7
  9. package/dist/api/Mutation.json +1 -1
  10. package/dist/api/Notify.json +41 -27
  11. package/dist/api/QAjaxBar.json +6 -3
  12. package/dist/api/QBreadcrumbs.json +8 -4
  13. package/dist/api/QBreadcrumbsEl.json +4 -2
  14. package/dist/api/QBtn.json +6 -3
  15. package/dist/api/QBtnDropdown.json +10 -5
  16. package/dist/api/QBtnToggle.json +4 -2
  17. package/dist/api/QCard.json +2 -1
  18. package/dist/api/QCardActions.json +2 -1
  19. package/dist/api/QCardSection.json +2 -1
  20. package/dist/api/QCarousel.json +10 -5
  21. package/dist/api/QCarouselControl.json +4 -2
  22. package/dist/api/QChatMessage.json +8 -4
  23. package/dist/api/QCheckbox.json +8 -4
  24. package/dist/api/QChip.json +2 -1
  25. package/dist/api/QCircularProgress.json +27 -6
  26. package/dist/api/QColor.json +6 -3
  27. package/dist/api/QDate.json +79 -5
  28. package/dist/api/QDialog.json +8 -4
  29. package/dist/api/QDrawer.json +10 -5
  30. package/dist/api/QEditor.json +17 -7
  31. package/dist/api/QExpansionItem.json +2 -1
  32. package/dist/api/QFab.json +8 -4
  33. package/dist/api/QFabAction.json +4 -2
  34. package/dist/api/QField.json +2 -1
  35. package/dist/api/QFile.json +3 -0
  36. package/dist/api/QFooter.json +3 -2
  37. package/dist/api/QHeader.json +5 -3
  38. package/dist/api/QIcon.json +2 -1
  39. package/dist/api/QImg.json +8 -4
  40. package/dist/api/QInfiniteScroll.json +6 -3
  41. package/dist/api/QInnerLoading.json +8 -4
  42. package/dist/api/QInput.json +2 -1
  43. package/dist/api/QIntersection.json +17 -1
  44. package/dist/api/QItem.json +2 -1
  45. package/dist/api/QKnob.json +8 -4
  46. package/dist/api/QLayout.json +9 -1
  47. package/dist/api/QLinearProgress.json +17 -1
  48. package/dist/api/QMarkupTable.json +2 -1
  49. package/dist/api/QMenu.json +8 -4
  50. package/dist/api/QNoSsr.json +2 -1
  51. package/dist/api/QOptionGroup.json +2 -1
  52. package/dist/api/QPage.json +2 -1
  53. package/dist/api/QPageScroller.json +8 -4
  54. package/dist/api/QPageSticky.json +2 -1
  55. package/dist/api/QPagination.json +10 -6
  56. package/dist/api/QParallax.json +2 -1
  57. package/dist/api/QPopupEdit.json +5 -2
  58. package/dist/api/QPopupProxy.json +4 -2
  59. package/dist/api/QRange.json +8 -4
  60. package/dist/api/QRating.json +2 -1
  61. package/dist/api/QResizeObserver.json +4 -1
  62. package/dist/api/QRouteTab.json +5 -26
  63. package/dist/api/QScrollArea.json +29 -4
  64. package/dist/api/QScrollObserver.json +13 -1
  65. package/dist/api/QSelect.json +135 -37
  66. package/dist/api/QSeparator.json +2 -1
  67. package/dist/api/QSkeleton.json +9 -5
  68. package/dist/api/QSlideItem.json +9 -0
  69. package/dist/api/QSlideTransition.json +2 -1
  70. package/dist/api/QSlider.json +8 -4
  71. package/dist/api/QSpinner.json +2 -1
  72. package/dist/api/QSplitter.json +4 -2
  73. package/dist/api/QStep.json +2 -1
  74. package/dist/api/QStepper.json +6 -3
  75. package/dist/api/QTab.json +4 -2
  76. package/dist/api/QTabPanels.json +6 -3
  77. package/dist/api/QTable.json +216 -93
  78. package/dist/api/QTabs.json +4 -2
  79. package/dist/api/QTime.json +16 -4
  80. package/dist/api/QTimeline.json +4 -2
  81. package/dist/api/QTimelineEntry.json +4 -2
  82. package/dist/api/QToggle.json +8 -4
  83. package/dist/api/QTooltip.json +18 -9
  84. package/dist/api/QTree.json +26 -15
  85. package/dist/api/QUploader.json +93 -5
  86. package/dist/api/QVirtualScroll.json +23 -9
  87. package/dist/api/ScrollFire.json +1 -1
  88. package/dist/api/SessionStorage.json +8 -0
  89. package/dist/api/TouchHold.json +2 -1
  90. package/dist/api/TouchRepeat.json +2 -1
  91. package/dist/api/TouchSwipe.json +2 -1
  92. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  93. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  94. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  95. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  96. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  97. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  98. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  99. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  100. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  101. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  102. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  103. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  104. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  105. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  106. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  107. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  108. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  109. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  110. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  111. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +6 -0
  112. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  113. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  114. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  115. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  116. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  117. package/dist/icon-set/svg-mdi-v4.umd.prod.js +1 -1
  118. package/dist/icon-set/svg-mdi-v5.umd.prod.js +1 -1
  119. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  120. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  121. package/dist/icon-set/themify.umd.prod.js +1 -1
  122. package/dist/lang/ar.umd.prod.js +1 -1
  123. package/dist/lang/az-Latn.umd.prod.js +1 -1
  124. package/dist/lang/bg.umd.prod.js +1 -1
  125. package/dist/lang/bn.umd.prod.js +1 -1
  126. package/dist/lang/ca.umd.prod.js +1 -1
  127. package/dist/lang/cs.umd.prod.js +1 -1
  128. package/dist/lang/da.umd.prod.js +1 -1
  129. package/dist/lang/de.umd.prod.js +1 -1
  130. package/dist/lang/el.umd.prod.js +1 -1
  131. package/dist/lang/en-GB.umd.prod.js +1 -1
  132. package/dist/lang/en-US.umd.prod.js +1 -1
  133. package/dist/lang/eo.umd.prod.js +1 -1
  134. package/dist/lang/es.umd.prod.js +1 -1
  135. package/dist/lang/et.umd.prod.js +1 -1
  136. package/dist/lang/fa-IR.umd.prod.js +1 -1
  137. package/dist/lang/fa.umd.prod.js +1 -1
  138. package/dist/lang/fi.umd.prod.js +1 -1
  139. package/dist/lang/fr.umd.prod.js +1 -1
  140. package/dist/lang/gn.umd.prod.js +1 -1
  141. package/dist/lang/he.umd.prod.js +1 -1
  142. package/dist/lang/hr.umd.prod.js +1 -1
  143. package/dist/lang/hu.umd.prod.js +1 -1
  144. package/dist/lang/id.umd.prod.js +1 -1
  145. package/dist/lang/is.umd.prod.js +1 -1
  146. package/dist/lang/it.umd.prod.js +1 -1
  147. package/dist/lang/ja.umd.prod.js +1 -1
  148. package/dist/lang/km.umd.prod.js +1 -1
  149. package/dist/lang/ko-KR.umd.prod.js +1 -1
  150. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  151. package/dist/lang/lt.umd.prod.js +1 -1
  152. package/dist/lang/lu.umd.prod.js +1 -1
  153. package/dist/lang/lv.umd.prod.js +1 -1
  154. package/dist/lang/ml.umd.prod.js +1 -1
  155. package/dist/lang/ms.umd.prod.js +1 -1
  156. package/dist/lang/nb-NO.umd.prod.js +1 -1
  157. package/dist/lang/nl.umd.prod.js +1 -1
  158. package/dist/lang/pl.umd.prod.js +1 -1
  159. package/dist/lang/pt-BR.umd.prod.js +1 -1
  160. package/dist/lang/pt.umd.prod.js +1 -1
  161. package/dist/lang/ro.umd.prod.js +1 -1
  162. package/dist/lang/ru.umd.prod.js +1 -1
  163. package/dist/lang/sk.umd.prod.js +1 -1
  164. package/dist/lang/sl.umd.prod.js +1 -1
  165. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  166. package/dist/lang/sr.umd.prod.js +1 -1
  167. package/dist/lang/sv.umd.prod.js +1 -1
  168. package/dist/lang/ta.umd.prod.js +1 -1
  169. package/dist/lang/th.umd.prod.js +1 -1
  170. package/dist/lang/tr.umd.prod.js +1 -1
  171. package/dist/lang/ug.umd.prod.js +1 -1
  172. package/dist/lang/uk.umd.prod.js +1 -1
  173. package/dist/lang/vi.umd.prod.js +1 -1
  174. package/dist/lang/zh-CN.umd.prod.js +1 -1
  175. package/dist/lang/zh-TW.umd.prod.js +1 -1
  176. package/dist/quasar.cjs.prod.js +2 -2
  177. package/dist/quasar.css +7 -2
  178. package/dist/quasar.esm.prod.js +2 -2
  179. package/dist/quasar.prod.css +1 -1
  180. package/dist/quasar.rtl.css +7 -2
  181. package/dist/quasar.rtl.prod.css +1 -1
  182. package/dist/quasar.sass +6 -3
  183. package/dist/quasar.umd.js +185 -105
  184. package/dist/quasar.umd.prod.js +2 -2
  185. package/dist/ssr-directives/Morph.js +1 -1
  186. package/dist/types/api/cookies.d.ts +1 -1
  187. package/dist/types/composables.d.ts +5 -1
  188. package/dist/types/extras/icon-set.d.ts +1 -0
  189. package/dist/types/index.d.ts +516 -176
  190. package/dist/vetur/quasar-attributes.json +14 -2
  191. package/dist/vetur/quasar-tags.json +5 -2
  192. package/dist/web-types/web-types.json +43 -8
  193. package/icon-set/svg-ionicons-v6.js +225 -0
  194. package/package.json +5 -2
  195. package/src/api.extends.json +7 -0
  196. package/src/body.js +14 -4
  197. package/src/components/btn/QBtn.js +1 -0
  198. package/src/components/circular-progress/QCircularProgress.js +6 -1
  199. package/src/components/circular-progress/QCircularProgress.json +6 -0
  200. package/src/components/date/QDate.json +59 -1
  201. package/src/components/editor/QEditor.js +2 -2
  202. package/src/components/editor/QEditor.json +6 -2
  203. package/src/components/field/QField.json +3 -3
  204. package/src/components/file/QFile.json +3 -0
  205. package/src/components/footer/QFooter.json +1 -1
  206. package/src/components/header/QHeader.json +1 -1
  207. package/src/components/icon/QIcon.js +1 -1
  208. package/src/components/infinite-scroll/QInfiniteScroll.js +48 -31
  209. package/src/components/intersection/QIntersection.js +9 -1
  210. package/src/components/intersection/QIntersection.json +9 -0
  211. package/src/components/layout/QLayout.json +8 -1
  212. package/src/components/linear-progress/QLinearProgress.js +10 -1
  213. package/src/components/linear-progress/QLinearProgress.json +6 -0
  214. package/src/components/linear-progress/QLinearProgress.sass +3 -2
  215. package/src/components/pagination/QPagination.json +0 -1
  216. package/src/components/popup-edit/QPopupEdit.json +1 -0
  217. package/src/components/popup-proxy/QPopupProxy.js +6 -15
  218. package/src/components/resize-observer/QResizeObserver.json +2 -0
  219. package/src/components/scroll-area/QScrollArea.js +8 -13
  220. package/src/components/scroll-area/QScrollArea.json +28 -4
  221. package/src/components/scroll-observer/QScrollObserver.json +11 -0
  222. package/src/components/select/QSelect.js +7 -3
  223. package/src/components/select/QSelect.json +71 -11
  224. package/src/components/skeleton/QSkeleton.json +1 -4
  225. package/src/components/slide-item/QSlideItem.json +9 -0
  226. package/src/components/slider/use-slider.js +3 -3
  227. package/src/components/table/QTable.json +155 -60
  228. package/src/components/table/table-pagination.js +6 -2
  229. package/src/components/tabs/QRouteTab.json +1 -23
  230. package/src/components/time/QTime.json +8 -0
  231. package/src/components/tree/QTree.json +14 -9
  232. package/src/components/uploader/xhr-uploader-plugin.json +105 -4
  233. package/src/components/virtual-scroll/use-virtual-scroll.js +17 -1
  234. package/src/components/virtual-scroll/use-virtual-scroll.json +5 -0
  235. package/src/composables/private/use-field.js +4 -4
  236. package/src/composables/private/use-refocus-target.js +12 -3
  237. package/src/composables/private/use-split-attrs.js +10 -7
  238. package/src/composables/use-dialog-plugin-component.js +7 -1
  239. package/src/css/core/transitions.sass +3 -1
  240. package/src/directives/Mutation.json +2 -3
  241. package/src/directives/ScrollFire.json +2 -3
  242. package/src/install-quasar.js +1 -0
  243. package/src/plugins/AppFullscreen.json +8 -8
  244. package/src/plugins/Cookies.json +2 -2
  245. package/src/plugins/Dialog.json +4 -2
  246. package/src/plugins/LoadingBar.json +4 -3
  247. package/src/plugins/Notify.json +13 -19
  248. package/src/utils/create-uploader-component.js +6 -4
  249. package/src/utils/private/get-emits-object.js +11 -0
  250. package/src/utils/private/global-dialog.json +16 -2
  251. package/src/utils/private/vm.js +3 -3
  252. package/src/utils/private/web-storage.json +10 -0
  253. package/wrappers/index.js +4 -0
@@ -17,9 +17,9 @@
17
17
  },
18
18
 
19
19
  "activeEl": {
20
- "type": "Object",
20
+ "type": [ "Element", "null" ],
21
21
  "desc": "The DOM element used as root for fullscreen, otherwise 'null'",
22
- "__exemption": [ "examples" ]
22
+ "examples": [ "document.fullscreenElement", "null" ]
23
23
  }
24
24
  },
25
25
 
@@ -34,8 +34,8 @@
34
34
  }
35
35
  },
36
36
  "returns": {
37
- "type": "Promise<any>",
38
- "desc": "A Promise with the outcome (true -> validation was a success, false -> invalid models detected)",
37
+ "type": "Promise<void>",
38
+ "desc": "A Promise which is resolved when transitioned to fullscreen mode. It gets rejected with 'Not capable' if the browser is not capable, and with an Error object if something else went wrong.",
39
39
  "examples": [
40
40
  "request().then(response => { ... }).catch(err => { ... })"
41
41
  ]
@@ -45,8 +45,8 @@
45
45
  "exit": {
46
46
  "desc": "Request exiting out of Fullscreen mode",
47
47
  "returns": {
48
- "type": "Promise<any>",
49
- "desc": "A Promise with the outcome (true -> validation was a success, false -> invalid models detected)",
48
+ "type": "Promise<void>",
49
+ "desc": "A Promise which is resolved when exited out of fullscreen mode. It gets rejected with 'Not capable' if the browser is not capable, and with an Error object if something else went wrong.",
50
50
  "examples": [
51
51
  "exit().then(response => { ... }).catch(err => { ... })"
52
52
  ]
@@ -63,8 +63,8 @@
63
63
  }
64
64
  },
65
65
  "returns": {
66
- "type": "Promise<any>",
67
- "desc": "A Promise with the outcome (true -> validation was a success, false -> invalid models detected)",
66
+ "type": "Promise<void>",
67
+ "desc": "A Promise which is resolved when transitioned to / exited out of fullscreen mode. It gets rejected with 'Not capable' if the browser is not capable, and with an Error object if something else went wrong.",
68
68
  "examples": [
69
69
  "toggle().then(response => { ... }).catch(err => { ... })"
70
70
  ]
@@ -73,8 +73,8 @@
73
73
  },
74
74
  "sameSite": {
75
75
  "type": "String",
76
- "desc": "SameSite cookie option (not supported by IE11)",
77
- "examples": [ "Strict", "Lax" ]
76
+ "desc": "SameSite cookie option",
77
+ "values": [ "Lax", "Strict", "None" ]
78
78
  },
79
79
  "httpOnly": {
80
80
  "type": "Boolean",
@@ -46,8 +46,8 @@
46
46
  "definition": {
47
47
  "model": {
48
48
  "type": "String",
49
- "desc": "The initial value of the input",
50
49
  "required": true,
50
+ "desc": "The initial value of the input",
51
51
  "__exemption": [ "examples" ]
52
52
  },
53
53
 
@@ -64,6 +64,7 @@
64
64
  "params": {
65
65
  "val": {
66
66
  "type": "String",
67
+ "required": true,
67
68
  "desc": "The value of the input",
68
69
  "__exemption": [ "examples" ]
69
70
  }
@@ -151,8 +152,8 @@
151
152
  "definition": {
152
153
  "model": {
153
154
  "type": [ "String", "Array" ],
154
- "desc": "The value of the selection (String if it's of type radio or Array otherwise)",
155
155
  "required": true,
156
+ "desc": "The value of the selection (String if it's of type radio or Array otherwise)",
156
157
  "examples": [ "[]" ]
157
158
  },
158
159
 
@@ -177,6 +178,7 @@
177
178
  "params": {
178
179
  "model": {
179
180
  "type": [ "String", "Array" ],
181
+ "required": true,
180
182
  "desc": "The current model (String if it's of type radio or Array otherwise)",
181
183
  "examples": [
182
184
  "opt2",
@@ -23,6 +23,7 @@
23
23
  "speed": {
24
24
  "type": "Number",
25
25
  "desc": "Delay (in milliseconds) between bar progress increments",
26
+ "default": 300,
26
27
  "examples": [ 150 ]
27
28
  }
28
29
  }
@@ -46,11 +47,11 @@
46
47
  "setDefaults": {
47
48
  "desc": "Set the inner QAjaxBar's props",
48
49
  "params": {
49
- "...props": {
50
+ "props": {
50
51
  "type": "Object",
51
- "desc": "QAjaxBar component props",
52
52
  "required": true,
53
- "__exemption": [ "examples" ]
53
+ "desc": "QAjaxBar component props",
54
+ "examples": [ "{ position: 'bottom', reverse: true }" ]
54
55
  }
55
56
  }
56
57
  }
@@ -164,6 +164,7 @@
164
164
  "params": {
165
165
  "opts": {
166
166
  "type": [ "Object", "String" ],
167
+ "required": true,
167
168
  "desc": "Notification options",
168
169
  "definition": {
169
170
  "type": {
@@ -214,7 +215,7 @@
214
215
  "spinner": {
215
216
  "type": [ "Boolean", "Component" ],
216
217
  "desc": "Useful for notifications that are updated; Displays a Quasar spinner instead of an avatar or icon; If value is Boolean 'true' then the default QSpinner is shown",
217
- "__exemption": [ "examples" ]
218
+ "examples": [ true, "QSpinnerBars" ]
218
219
  },
219
220
 
220
221
  "position": {
@@ -225,8 +226,7 @@
225
226
  "top-left", "top-right",
226
227
  "bottom-left", "bottom-right",
227
228
  "top", "bottom", "left", "right", "center"
228
- ],
229
- "examples": [ "top-right" ]
229
+ ]
230
230
  },
231
231
 
232
232
  "group": {
@@ -251,8 +251,7 @@
251
251
  "values": [
252
252
  "top-left", "top-right",
253
253
  "bottom-left", "bottom-right"
254
- ],
255
- "examples": [ "bottom-right" ]
254
+ ]
256
255
  },
257
256
  "badgeStyle": {
258
257
  "type": [ "Array", "String", "Object" ],
@@ -339,9 +338,7 @@
339
338
  "type": "Boolean",
340
339
  "desc": "Ignore the default configuration (set by setDefaults()) for this instance only"
341
340
  }
342
- },
343
- "required": true,
344
- "__exemption": [ "examples" ]
341
+ }
345
342
  }
346
343
  },
347
344
  "returns": {
@@ -350,6 +347,7 @@
350
347
  "params": {
351
348
  "props": {
352
349
  "type": "Object",
350
+ "required": false,
353
351
  "desc": "Notification properties that will be shallow merged to previous ones in order to update the non-grouped notification",
354
352
  "definition": {
355
353
  "type": {
@@ -483,6 +481,7 @@
483
481
  "params": {
484
482
  "opts": {
485
483
  "type": "Object",
484
+ "required": true,
486
485
  "desc": "Notification options",
487
486
  "definition": {
488
487
  "type": {
@@ -607,8 +606,7 @@
607
606
  "attrs": {
608
607
  "type": "Object",
609
608
  "desc": "Key-value for attributes to be set on the notification",
610
- "examples": [ "{ role: 'alertdialog' }" ],
611
- "__exemption": [ "definition" ]
609
+ "examples": [ "{ role: 'alertdialog' }" ]
612
610
  },
613
611
 
614
612
  "timeout": {
@@ -646,9 +644,7 @@
646
644
  "type": "Boolean",
647
645
  "desc": "Put notification into multi-line mode; If this prop isn't used and more than one 'action' is specified then notification goes into multi-line mode by default"
648
646
  }
649
- },
650
- "required": true,
651
- "__exemption": [ "examples" ]
647
+ }
652
648
  }
653
649
  }
654
650
  },
@@ -658,13 +654,14 @@
658
654
  "params": {
659
655
  "typeName": {
660
656
  "type": "String",
661
- "desc": "Name of the type (to be used as 'type' prop later on)",
662
657
  "required": true,
658
+ "desc": "Name of the type (to be used as 'type' prop later on)",
663
659
  "examples": [ "my-type" ]
664
660
  },
665
661
 
666
662
  "typeOpts": {
667
663
  "type": "Object",
664
+ "required": true,
668
665
  "desc": "Notification options",
669
666
  "definition": {
670
667
  "type": {
@@ -789,8 +786,7 @@
789
786
  "attrs": {
790
787
  "type": "Object",
791
788
  "desc": "Key-value for attributes to be set on the notification",
792
- "examples": [ "{ role: 'alertdialog' }" ],
793
- "__exemption": [ "definition" ]
789
+ "examples": [ "{ role: 'alertdialog' }" ]
794
790
  },
795
791
 
796
792
  "timeout": {
@@ -828,9 +824,7 @@
828
824
  "type": "Boolean",
829
825
  "desc": "Put notification into multi-line mode; If this prop isn't used and more than one 'action' is specified then notification goes into multi-line mode by default"
830
826
  }
831
- },
832
- "required": true,
833
- "__exemption": [ "examples" ]
827
+ }
834
828
  }
835
829
  }
836
830
  }
@@ -1,6 +1,9 @@
1
1
  import { coreProps, coreEmits, getRenderer } from '../components/uploader/uploader-core.js'
2
2
 
3
3
  import { createComponent } from './private/create.js'
4
+ import getEmitsObject from './private/get-emits-object.js'
5
+
6
+ const coreEmitsObject = getEmitsObject(coreEmits)
4
7
 
5
8
  export default ({ name, props, emits, injectPlugin }) => createComponent({
6
9
  name,
@@ -10,10 +13,9 @@ export default ({ name, props, emits, injectPlugin }) => createComponent({
10
13
  ...props
11
14
  },
12
15
 
13
- emits: [
14
- ...coreEmits,
15
- ...emits
16
- ],
16
+ emits: Object(emits) === emits
17
+ ? { ...coreEmitsObject, ...emits }
18
+ : [ ...coreEmits, ...emits ],
17
19
 
18
20
  setup () {
19
21
  return getRenderer(injectPlugin)
@@ -0,0 +1,11 @@
1
+ const trueFn = () => true
2
+
3
+ export default function (emitsArray) {
4
+ const emitsObject = {}
5
+
6
+ emitsArray.forEach(val => {
7
+ emitsObject[ val ] = trueFn
8
+ })
9
+
10
+ return emitsObject
11
+ }
@@ -29,14 +29,23 @@
29
29
  "definition": {
30
30
  "onOk": {
31
31
  "type": "Function",
32
+ "required": true,
32
33
  "desc": "Receives a Function param to tell what to do when OK is pressed / option is selected",
33
34
  "params": {
34
35
  "callbackFn": {
35
36
  "type": "Function",
36
37
  "desc": "Tell what to do",
37
38
  "required": true,
38
- "params": null,
39
- "returns": null
39
+ "params": {
40
+ "payload": {
41
+ "type": "Any",
42
+ "desc": "The payload if called onDialogOK with the parameter or emitted one with the 'ok' event",
43
+ "required": false,
44
+ "examples": [ "'Quasar Framework'", "[ 1, 2, 6, 3 ]", "{ book: { id: 1, name: 'Lorem Ipsum' }, user: { name: 'Lorem J. Ipsum', role: 'admin' } }" ]
45
+ }
46
+ },
47
+ "returns": null,
48
+ "examples": [ "() => console.log('OK!')", "(payload) => Notify.create({ type: 'positive', message: `Successfully saved '${payload.book.name}' book!` })" ]
40
49
  }
41
50
  },
42
51
  "returns": {
@@ -49,6 +58,7 @@
49
58
 
50
59
  "onCancel": {
51
60
  "type": "Function",
61
+ "required": true,
52
62
  "desc": "Receives a Function as param to tell what to do when Cancel is pressed / dialog is dismissed",
53
63
  "params": {
54
64
  "callbackFn": {
@@ -69,6 +79,7 @@
69
79
 
70
80
  "onDismiss": {
71
81
  "type": "Function",
82
+ "required": true,
72
83
  "desc": "Receives a Function param to tell what to do when the dialog is closed",
73
84
  "params": {
74
85
  "callbackFn": {
@@ -89,6 +100,7 @@
89
100
 
90
101
  "hide": {
91
102
  "type": "Function",
103
+ "required": true,
92
104
  "desc": "Hides the dialog when called",
93
105
  "params": null,
94
106
  "returns": {
@@ -101,10 +113,12 @@
101
113
 
102
114
  "update": {
103
115
  "type": "Function",
116
+ "required": true,
104
117
  "desc": "Updates the initial properties (given as create() param) except for 'component'",
105
118
  "params": {
106
119
  "opts": {
107
120
  "type": "Object",
121
+ "required": true,
108
122
  "desc": "Props (except 'component') which will overwrite the initial create() params; If create() was invoked with a custom dialog component then this param should contain the new componentProps",
109
123
  "__exemption": [ "examples" ]
110
124
  }
@@ -1,13 +1,13 @@
1
1
  // used directly by docs too
2
2
  export function getParentVm (vm) {
3
- if (vm.$parent !== void 0 && vm.$parent !== null) {
3
+ if (Object(vm.$parent) === vm.$parent) {
4
4
  return vm.$parent
5
5
  }
6
6
 
7
7
  vm = vm.$.parent
8
8
 
9
- while (vm !== void 0 && vm !== null) {
10
- if (vm.proxy !== void 0 && vm.proxy !== null) {
9
+ while (Object(vm) === vm) {
10
+ if (Object(vm.proxy) === vm.proxy) {
11
11
  return vm.proxy
12
12
  }
13
13
 
@@ -118,6 +118,16 @@
118
118
  "type": [ "Date", "RegExp", "Number", "Boolean", "Function", "Object", "Array", "String", "null" ],
119
119
  "desc": "Entry value",
120
120
  "required": true,
121
+ "params": {
122
+ "...params": {
123
+ "type": "Any",
124
+ "__exemption": [ "desc", "examples" ]
125
+ }
126
+ },
127
+ "returns": {
128
+ "type": "Any",
129
+ "__exemption": [ "desc", "examples" ]
130
+ },
121
131
  "examples": [ "john12" ]
122
132
  }
123
133
  }
package/wrappers/index.js CHANGED
@@ -14,6 +14,10 @@ module.exports.ssrMiddleware = function (callback) {
14
14
  return callback
15
15
  }
16
16
 
17
+ module.exports.ssrProductionExport = function (callback) {
18
+ return callback
19
+ }
20
+
17
21
  module.exports.configure = function (callback) {
18
22
  return callback
19
23
  }