quasar 2.12.4 → 2.12.5

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 (119) hide show
  1. package/dist/api/Loading.json +2 -1
  2. package/dist/api/Notify.json +23 -3
  3. package/dist/api/QLayout.json +1 -1
  4. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  5. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  6. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  7. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  8. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
  9. package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
  10. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  11. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  12. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  13. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  14. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  15. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  16. package/dist/icon-set/material-symbols-outlined.umd.prod.js +1 -1
  17. package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
  18. package/dist/icon-set/material-symbols-sharp.umd.prod.js +1 -1
  19. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  20. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  21. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  22. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  23. package/dist/icon-set/mdi-v7.umd.prod.js +1 -1
  24. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  25. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  26. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  27. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
  28. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  29. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  32. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  34. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  35. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  36. package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +1 -1
  37. package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +1 -1
  38. package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +1 -1
  39. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  40. package/dist/icon-set/svg-mdi-v7.umd.prod.js +1 -1
  41. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  42. package/dist/icon-set/themify.umd.prod.js +1 -1
  43. package/dist/lang/ar-TN.umd.prod.js +1 -1
  44. package/dist/lang/ar.umd.prod.js +1 -1
  45. package/dist/lang/az-Latn.umd.prod.js +1 -1
  46. package/dist/lang/bg.umd.prod.js +1 -1
  47. package/dist/lang/bn.umd.prod.js +1 -1
  48. package/dist/lang/ca.umd.prod.js +1 -1
  49. package/dist/lang/cs.umd.prod.js +1 -1
  50. package/dist/lang/da.umd.prod.js +1 -1
  51. package/dist/lang/de.umd.prod.js +1 -1
  52. package/dist/lang/el.umd.prod.js +1 -1
  53. package/dist/lang/en-GB.umd.prod.js +1 -1
  54. package/dist/lang/en-US.umd.prod.js +1 -1
  55. package/dist/lang/eo.umd.prod.js +1 -1
  56. package/dist/lang/es.umd.prod.js +1 -1
  57. package/dist/lang/et.umd.prod.js +1 -1
  58. package/dist/lang/eu.umd.prod.js +1 -1
  59. package/dist/lang/fa-IR.umd.prod.js +1 -1
  60. package/dist/lang/fa.umd.prod.js +1 -1
  61. package/dist/lang/fi.umd.prod.js +1 -1
  62. package/dist/lang/fr.umd.prod.js +1 -1
  63. package/dist/lang/gn.umd.prod.js +1 -1
  64. package/dist/lang/he.umd.prod.js +1 -1
  65. package/dist/lang/hi.umd.prod.js +1 -1
  66. package/dist/lang/hr.umd.prod.js +1 -1
  67. package/dist/lang/hu.umd.prod.js +1 -1
  68. package/dist/lang/id.umd.prod.js +1 -1
  69. package/dist/lang/is.umd.prod.js +1 -1
  70. package/dist/lang/it.umd.prod.js +1 -1
  71. package/dist/lang/ja.umd.prod.js +1 -1
  72. package/dist/lang/kk.umd.prod.js +1 -1
  73. package/dist/lang/km.umd.prod.js +1 -1
  74. package/dist/lang/ko-KR.umd.prod.js +1 -1
  75. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  76. package/dist/lang/lt.umd.prod.js +1 -1
  77. package/dist/lang/lu.umd.prod.js +1 -1
  78. package/dist/lang/lv.umd.prod.js +1 -1
  79. package/dist/lang/mk.umd.prod.js +1 -1
  80. package/dist/lang/ml.umd.prod.js +1 -1
  81. package/dist/lang/mm.umd.prod.js +1 -1
  82. package/dist/lang/ms.umd.prod.js +1 -1
  83. package/dist/lang/my.umd.prod.js +1 -1
  84. package/dist/lang/nb-NO.umd.prod.js +1 -1
  85. package/dist/lang/nl.umd.prod.js +1 -1
  86. package/dist/lang/pl.umd.prod.js +1 -1
  87. package/dist/lang/pt-BR.umd.prod.js +1 -1
  88. package/dist/lang/pt.umd.prod.js +1 -1
  89. package/dist/lang/ro.umd.prod.js +1 -1
  90. package/dist/lang/ru.umd.prod.js +1 -1
  91. package/dist/lang/sk.umd.prod.js +1 -1
  92. package/dist/lang/sl.umd.prod.js +1 -1
  93. package/dist/lang/sm.umd.prod.js +1 -1
  94. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  95. package/dist/lang/sr.umd.prod.js +1 -1
  96. package/dist/lang/sv.umd.prod.js +1 -1
  97. package/dist/lang/ta.umd.prod.js +1 -1
  98. package/dist/lang/th.umd.prod.js +1 -1
  99. package/dist/lang/tr.umd.prod.js +1 -1
  100. package/dist/lang/ug.umd.prod.js +1 -1
  101. package/dist/lang/uk.umd.prod.js +1 -1
  102. package/dist/lang/uz-Cyrl.umd.prod.js +1 -1
  103. package/dist/lang/uz-Latn.umd.prod.js +1 -1
  104. package/dist/lang/vi.umd.prod.js +1 -1
  105. package/dist/lang/zh-CN.umd.prod.js +1 -1
  106. package/dist/lang/zh-TW.umd.prod.js +1 -1
  107. package/dist/quasar.cjs.prod.js +2 -2
  108. package/dist/quasar.esm.js +5 -5
  109. package/dist/quasar.esm.prod.js +2 -2
  110. package/dist/quasar.sass +1 -1
  111. package/dist/quasar.umd.js +5 -5
  112. package/dist/quasar.umd.prod.js +2 -2
  113. package/dist/types/index.d.ts +22 -7
  114. package/dist/web-types/web-types.json +1 -1
  115. package/package.json +1 -1
  116. package/src/components/layout/QLayout.json +1 -1
  117. package/src/plugins/Loading.json +2 -1
  118. package/src/plugins/Notify.json +24 -3
  119. package/src/utils/EventBus.js +2 -2
@@ -414,13 +414,13 @@ export interface Notify {
414
414
  ) => (props?: QNotifyUpdateOptions) => void;
415
415
  /**
416
416
  * Merge options into the default ones
417
- * @param opts Notification options (See 'opts' param of 'create()' for object properties)
417
+ * @param opts Notification options except 'ignoreDefaults' (See 'opts' param of 'create()' for object properties)
418
418
  */
419
419
  setDefaults: (opts: QNotifyOptions) => void;
420
420
  /**
421
421
  * Register a new type of notification (or override an existing one)
422
422
  * @param typeName Name of the type (to be used as 'type' prop later on)
423
- * @param typeOpts Notification options (See 'opts' param of 'create()' for object properties)
423
+ * @param typeOpts Notification options except 'ignoreDefaults' (See 'opts' param of 'create()' for object properties)
424
424
  */
425
425
  registerType: (typeName: string, typeOpts: QNotifyOptions) => void;
426
426
  }
@@ -6768,7 +6768,7 @@ export interface QLayoutProps {
6768
6768
  */
6769
6769
  height: number;
6770
6770
  /**
6771
- * Layout height
6771
+ * Layout width
6772
6772
  */
6773
6773
  width: number;
6774
6774
  }) => void;
@@ -8348,15 +8348,15 @@ export interface QRatingProps {
8348
8348
  /**
8349
8349
  * Color name for component from the Quasar Color Palette; v1.5.0+: If an array is provided each rating value will use the corresponding color in the array (0 based)
8350
8350
  */
8351
- color?: NamedColor | undefined;
8351
+ color?: NamedColor | NamedColor[] | undefined;
8352
8352
  /**
8353
8353
  * Color name from the Quasar Palette for selected icons
8354
8354
  */
8355
- colorSelected?: NamedColor | undefined;
8355
+ colorSelected?: NamedColor | NamedColor[] | undefined;
8356
8356
  /**
8357
8357
  * Color name from the Quasar Palette for half selected icons
8358
8358
  */
8359
- colorHalf?: NamedColor | undefined;
8359
+ colorHalf?: NamedColor | NamedColor[] | undefined;
8360
8360
  /**
8361
8361
  * Does not lower opacity for unselected icons
8362
8362
  */
@@ -15390,7 +15390,7 @@ declare module "./config.d.ts" {
15390
15390
  /**
15391
15391
  * One of the QSpinners
15392
15392
  */
15393
- spinner?: string;
15393
+ spinner?: Component;
15394
15394
  /**
15395
15395
  * Add a CSS class to the container element to easily customize the component
15396
15396
  */
@@ -15518,6 +15518,10 @@ declare module "./config.d.ts" {
15518
15518
  * Notification actions (buttons); Unless 'noDismiss' is true, clicking/tapping on the button will close the notification; Also check 'closeBtn' convenience prop
15519
15519
  */
15520
15520
  actions?: QNotifyAction[];
15521
+ /**
15522
+ * Function to call when notification gets dismissed
15523
+ */
15524
+ onDismiss?: () => void;
15521
15525
  /**
15522
15526
  * Convenient way to add a dismiss button with a specific label, without using the 'actions' prop; If set to true, it uses a label according to the current Quasar language
15523
15527
  */
@@ -15656,6 +15660,17 @@ export const Notify: Notify;
15656
15660
  export const Platform: Platform;
15657
15661
  export const Screen: Screen;
15658
15662
  export const SessionStorage: SessionStorage;
15663
+ export const ClosePopup: ClosePopup;
15664
+ export const Intersection: Intersection;
15665
+ export const Morph: Morph;
15666
+ export const Mutation: Mutation;
15667
+ export const Ripple: Ripple;
15668
+ export const Scroll: Scroll;
15669
+ export const ScrollFire: ScrollFire;
15670
+ export const TouchHold: TouchHold;
15671
+ export const TouchPan: TouchPan;
15672
+ export const TouchRepeat: TouchRepeat;
15673
+ export const TouchSwipe: TouchSwipe;
15659
15674
  export const QAjaxBar: ComponentConstructor<QAjaxBar>;
15660
15675
  export const QAvatar: ComponentConstructor<QAvatar>;
15661
15676
  export const QBadge: ComponentConstructor<QBadge>;
@@ -2,7 +2,7 @@
2
2
  "$schema": "",
3
3
  "framework": "vue",
4
4
  "name": "quasar",
5
- "version": "2.12.4",
5
+ "version": "2.12.5",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "types-syntax": "typescript",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar",
3
- "version": "2.12.4",
3
+ "version": "2.12.5",
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",
@@ -43,7 +43,7 @@
43
43
  "width": {
44
44
  "type": "Number",
45
45
  "required": true,
46
- "desc": "Layout height"
46
+ "desc": "Layout width"
47
47
  }
48
48
  }
49
49
  }
@@ -52,7 +52,8 @@
52
52
  "desc": "Color name for background from the Quasar Color Palette"
53
53
  },
54
54
  "spinner": {
55
- "type": "String",
55
+ "type": "Component",
56
+ "configFileType": "String",
56
57
  "desc": "One of the QSpinners",
57
58
  "examples": [ "QSpinnerAudio" ]
58
59
  },
@@ -174,13 +174,23 @@
174
174
  "tsType": "QNotifyAction",
175
175
  "desc": "Notification actions (buttons); Unless 'noDismiss' is true, clicking/tapping on the button will close the notification; Also check 'closeBtn' convenience prop",
176
176
  "definition": {
177
+ "handler": {
178
+ "type": "Function",
179
+ "configFileType": null,
180
+ "desc": "Function to be executed when the button is clicked/tapped",
181
+ "params": null,
182
+ "returns": null,
183
+ "examples": [
184
+ "() => { console.log('button clicked') }"
185
+ ]
186
+ },
177
187
  "noDismiss": {
178
188
  "type": "Boolean",
179
189
  "desc": "Do not dismiss the notification when the button is clicked/tapped"
180
190
  },
181
191
  "...": {
182
192
  "type": "Any",
183
- "desc": "Any other QBtn prop expect 'onClick' (use 'handler' instead)",
193
+ "desc": "Any other QBtn prop expect 'onClick' (use 'handler' instead, only possible with UI config)",
184
194
  "examples": [ "label: 'Learn more'", "color: 'primary'" ]
185
195
  }
186
196
  },
@@ -189,6 +199,17 @@
189
199
  ]
190
200
  },
191
201
 
202
+ "onDismiss": {
203
+ "type": "Function",
204
+ "configFileType": null,
205
+ "desc": "Function to call when notification gets dismissed",
206
+ "params": null,
207
+ "returns": null,
208
+ "examples": [
209
+ "() => { console.log('Dismissed') }"
210
+ ]
211
+ },
212
+
192
213
  "closeBtn": {
193
214
  "type": [ "Boolean", "String" ],
194
215
  "desc": "Convenient way to add a dismiss button with a specific label, without using the 'actions' prop; If set to true, it uses a label according to the current Quasar language",
@@ -455,7 +476,7 @@
455
476
  "type": "Object",
456
477
  "tsType": "QNotifyOptions",
457
478
  "required": true,
458
- "desc": "Notification options (See 'opts' param of 'create()' for object properties)",
479
+ "desc": "Notification options except 'ignoreDefaults' (See 'opts' param of 'create()' for object properties)",
459
480
  "__exemption": [ "definition" ]
460
481
  }
461
482
  }
@@ -475,7 +496,7 @@
475
496
  "type": "Object",
476
497
  "tsType": "QNotifyOptions",
477
498
  "required": true,
478
- "desc": "Notification options (See 'opts' param of 'create()' for object properties)",
499
+ "desc": "Notification options except 'ignoreDefaults' (See 'opts' param of 'create()' for object properties)",
479
500
  "__exemption": [ "definition" ]
480
501
  }
481
502
  }
@@ -18,9 +18,9 @@ export default class EventBus {
18
18
  }
19
19
 
20
20
  once (name, callback, ctx) {
21
- const listener = () => {
21
+ const listener = (...args) => {
22
22
  this.off(name, listener)
23
- callback.apply(ctx, arguments)
23
+ callback.apply(ctx, args)
24
24
  }
25
25
 
26
26
  listener.__callback = callback