quasar 2.12.4 → 2.12.6

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 (121) hide show
  1. package/dist/api/Loading.json +2 -1
  2. package/dist/api/Notify.json +31 -4
  3. package/dist/api/QLayout.json +1 -1
  4. package/dist/api/QTable.json +5 -0
  5. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  6. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  7. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  8. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  9. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
  10. package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
  11. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  12. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  13. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  14. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  15. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  16. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  17. package/dist/icon-set/material-symbols-outlined.umd.prod.js +1 -1
  18. package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
  19. package/dist/icon-set/material-symbols-sharp.umd.prod.js +1 -1
  20. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  21. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  22. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  23. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  24. package/dist/icon-set/mdi-v7.umd.prod.js +1 -1
  25. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  26. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  27. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  28. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
  29. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
  32. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  34. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  35. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  36. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  37. package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +1 -1
  38. package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +1 -1
  39. package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +1 -1
  40. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  41. package/dist/icon-set/svg-mdi-v7.umd.prod.js +1 -1
  42. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  43. package/dist/icon-set/themify.umd.prod.js +1 -1
  44. package/dist/lang/ar-TN.umd.prod.js +1 -1
  45. package/dist/lang/ar.umd.prod.js +1 -1
  46. package/dist/lang/az-Latn.umd.prod.js +1 -1
  47. package/dist/lang/bg.umd.prod.js +1 -1
  48. package/dist/lang/bn.umd.prod.js +1 -1
  49. package/dist/lang/ca.umd.prod.js +1 -1
  50. package/dist/lang/cs.umd.prod.js +1 -1
  51. package/dist/lang/da.umd.prod.js +1 -1
  52. package/dist/lang/de.umd.prod.js +1 -1
  53. package/dist/lang/el.umd.prod.js +1 -1
  54. package/dist/lang/en-GB.umd.prod.js +1 -1
  55. package/dist/lang/en-US.umd.prod.js +1 -1
  56. package/dist/lang/eo.umd.prod.js +1 -1
  57. package/dist/lang/es.umd.prod.js +1 -1
  58. package/dist/lang/et.umd.prod.js +1 -1
  59. package/dist/lang/eu.umd.prod.js +1 -1
  60. package/dist/lang/fa-IR.umd.prod.js +1 -1
  61. package/dist/lang/fa.umd.prod.js +1 -1
  62. package/dist/lang/fi.umd.prod.js +1 -1
  63. package/dist/lang/fr.umd.prod.js +1 -1
  64. package/dist/lang/gn.umd.prod.js +1 -1
  65. package/dist/lang/he.umd.prod.js +1 -1
  66. package/dist/lang/hi.umd.prod.js +1 -1
  67. package/dist/lang/hr.umd.prod.js +1 -1
  68. package/dist/lang/hu.umd.prod.js +1 -1
  69. package/dist/lang/id.umd.prod.js +1 -1
  70. package/dist/lang/is.umd.prod.js +1 -1
  71. package/dist/lang/it.umd.prod.js +1 -1
  72. package/dist/lang/ja.umd.prod.js +1 -1
  73. package/dist/lang/kk.umd.prod.js +1 -1
  74. package/dist/lang/km.umd.prod.js +1 -1
  75. package/dist/lang/ko-KR.umd.prod.js +1 -1
  76. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  77. package/dist/lang/lt.umd.prod.js +1 -1
  78. package/dist/lang/lu.umd.prod.js +1 -1
  79. package/dist/lang/lv.umd.prod.js +1 -1
  80. package/dist/lang/mk.umd.prod.js +1 -1
  81. package/dist/lang/ml.umd.prod.js +1 -1
  82. package/dist/lang/mm.umd.prod.js +1 -1
  83. package/dist/lang/ms.umd.prod.js +1 -1
  84. package/dist/lang/my.umd.prod.js +1 -1
  85. package/dist/lang/nb-NO.umd.prod.js +1 -1
  86. package/dist/lang/nl.umd.prod.js +1 -1
  87. package/dist/lang/pl.umd.prod.js +1 -1
  88. package/dist/lang/pt-BR.umd.prod.js +1 -1
  89. package/dist/lang/pt.umd.prod.js +1 -1
  90. package/dist/lang/ro.umd.prod.js +1 -1
  91. package/dist/lang/ru.umd.prod.js +1 -1
  92. package/dist/lang/sk.umd.prod.js +1 -1
  93. package/dist/lang/sl.umd.prod.js +1 -1
  94. package/dist/lang/sm.umd.prod.js +1 -1
  95. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  96. package/dist/lang/sr.umd.prod.js +1 -1
  97. package/dist/lang/sv.umd.prod.js +1 -1
  98. package/dist/lang/ta.umd.prod.js +1 -1
  99. package/dist/lang/th.umd.prod.js +1 -1
  100. package/dist/lang/tr.umd.prod.js +1 -1
  101. package/dist/lang/ug.umd.prod.js +1 -1
  102. package/dist/lang/uk.umd.prod.js +1 -1
  103. package/dist/lang/uz-Cyrl.umd.prod.js +1 -1
  104. package/dist/lang/uz-Latn.umd.prod.js +1 -1
  105. package/dist/lang/vi.umd.prod.js +1 -1
  106. package/dist/lang/zh-CN.umd.prod.js +1 -1
  107. package/dist/lang/zh-TW.umd.prod.js +1 -1
  108. package/dist/quasar.cjs.prod.js +2 -2
  109. package/dist/quasar.esm.js +5 -5
  110. package/dist/quasar.esm.prod.js +2 -2
  111. package/dist/quasar.sass +1 -1
  112. package/dist/quasar.umd.js +5 -5
  113. package/dist/quasar.umd.prod.js +2 -2
  114. package/dist/types/index.d.ts +27 -8
  115. package/dist/web-types/web-types.json +1 -1
  116. package/package.json +2 -2
  117. package/src/components/layout/QLayout.json +1 -1
  118. package/src/components/table/QTable.json +5 -0
  119. package/src/plugins/Loading.json +2 -1
  120. package/src/plugins/Notify.json +26 -4
  121. 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
  */
@@ -11331,6 +11331,10 @@ export interface QTableProps {
11331
11331
  * Direction of change
11332
11332
  */
11333
11333
  direction: "increase" | "decrease";
11334
+ /**
11335
+ * Vue reference to the underlying QVirtualScroll instance
11336
+ */
11337
+ ref: Component;
11334
11338
  }) => void;
11335
11339
  }
11336
11340
 
@@ -15390,7 +15394,7 @@ declare module "./config.d.ts" {
15390
15394
  /**
15391
15395
  * One of the QSpinners
15392
15396
  */
15393
- spinner?: string;
15397
+ spinner?: Component;
15394
15398
  /**
15395
15399
  * Add a CSS class to the container element to easily customize the component
15396
15400
  */
@@ -15444,7 +15448,7 @@ declare module "./config.d.ts" {
15444
15448
  /**
15445
15449
  * 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
15446
15450
  */
15447
- spinner?: boolean;
15451
+ spinner?: boolean | Component;
15448
15452
  /**
15449
15453
  * Color name for component from the Quasar Color Palette
15450
15454
  */
@@ -15518,6 +15522,10 @@ declare module "./config.d.ts" {
15518
15522
  * Notification actions (buttons); Unless 'noDismiss' is true, clicking/tapping on the button will close the notification; Also check 'closeBtn' convenience prop
15519
15523
  */
15520
15524
  actions?: QNotifyAction[];
15525
+ /**
15526
+ * Function to call when notification gets dismissed
15527
+ */
15528
+ onDismiss?: () => void;
15521
15529
  /**
15522
15530
  * 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
15531
  */
@@ -15656,6 +15664,17 @@ export const Notify: Notify;
15656
15664
  export const Platform: Platform;
15657
15665
  export const Screen: Screen;
15658
15666
  export const SessionStorage: SessionStorage;
15667
+ export const ClosePopup: ClosePopup;
15668
+ export const Intersection: Intersection;
15669
+ export const Morph: Morph;
15670
+ export const Mutation: Mutation;
15671
+ export const Ripple: Ripple;
15672
+ export const Scroll: Scroll;
15673
+ export const ScrollFire: ScrollFire;
15674
+ export const TouchHold: TouchHold;
15675
+ export const TouchPan: TouchPan;
15676
+ export const TouchRepeat: TouchRepeat;
15677
+ export const TouchSwipe: TouchSwipe;
15659
15678
  export const QAjaxBar: ComponentConstructor<QAjaxBar>;
15660
15679
  export const QAvatar: ComponentConstructor<QAvatar>;
15661
15680
  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.6",
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.6",
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",
@@ -31,7 +31,7 @@
31
31
  "lint-fix": "eslint --ext .js,.vue src dev --fix --report-unused-disable-directives",
32
32
  "format:types": "prettier --write \"types/**/*.{d.ts,ts,json}\"",
33
33
  "test:create": "node ./test/cypress/helpers/create-spec.js -c",
34
- "test:build": "node build/script.build.js js api && node build/script.build.js js transforms",
34
+ "test:build": "yarn build",
35
35
  "test:e2e": "yarn test:build && cross-env NODE_ENV=test start-test \"node ./dev/script.dev.js\" http-get://localhost:9000 \"cypress open --project ./dev --e2e\"",
36
36
  "test:e2e:run": "cross-env NODE_ENV=test start-test \"node ./dev/script.dev.js\" http-get://localhost:9000 \"cypress run --project ./dev --e2e\"",
37
37
  "test:e2e:ci": "yarn test:build && yarn test:e2e:run",
@@ -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
  }
@@ -2026,6 +2026,11 @@
2026
2026
  "required": true,
2027
2027
  "desc": "Direction of change",
2028
2028
  "values": [ "increase", "decrease" ]
2029
+ },
2030
+ "ref": {
2031
+ "type": "Component",
2032
+ "required": true,
2033
+ "desc": "Vue reference to the underlying QVirtualScroll instance"
2029
2034
  }
2030
2035
  }
2031
2036
  }
@@ -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
  },
@@ -65,7 +65,8 @@
65
65
  },
66
66
 
67
67
  "spinner": {
68
- "type": "Boolean",
68
+ "type": [ "Boolean", "Component" ],
69
+ "configFileType": [ "Boolean", "String" ],
69
70
  "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",
70
71
  "examples": [ true, "QSpinnerBars" ]
71
72
  },
@@ -174,13 +175,23 @@
174
175
  "tsType": "QNotifyAction",
175
176
  "desc": "Notification actions (buttons); Unless 'noDismiss' is true, clicking/tapping on the button will close the notification; Also check 'closeBtn' convenience prop",
176
177
  "definition": {
178
+ "handler": {
179
+ "type": "Function",
180
+ "configFileType": null,
181
+ "desc": "Function to be executed when the button is clicked/tapped",
182
+ "params": null,
183
+ "returns": null,
184
+ "examples": [
185
+ "() => { console.log('button clicked') }"
186
+ ]
187
+ },
177
188
  "noDismiss": {
178
189
  "type": "Boolean",
179
190
  "desc": "Do not dismiss the notification when the button is clicked/tapped"
180
191
  },
181
192
  "...": {
182
193
  "type": "Any",
183
- "desc": "Any other QBtn prop expect 'onClick' (use 'handler' instead)",
194
+ "desc": "Any other QBtn prop expect 'onClick' (use 'handler' instead, only possible with UI config)",
184
195
  "examples": [ "label: 'Learn more'", "color: 'primary'" ]
185
196
  }
186
197
  },
@@ -189,6 +200,17 @@
189
200
  ]
190
201
  },
191
202
 
203
+ "onDismiss": {
204
+ "type": "Function",
205
+ "configFileType": null,
206
+ "desc": "Function to call when notification gets dismissed",
207
+ "params": null,
208
+ "returns": null,
209
+ "examples": [
210
+ "() => { console.log('Dismissed') }"
211
+ ]
212
+ },
213
+
192
214
  "closeBtn": {
193
215
  "type": [ "Boolean", "String" ],
194
216
  "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 +477,7 @@
455
477
  "type": "Object",
456
478
  "tsType": "QNotifyOptions",
457
479
  "required": true,
458
- "desc": "Notification options (See 'opts' param of 'create()' for object properties)",
480
+ "desc": "Notification options except 'ignoreDefaults' (See 'opts' param of 'create()' for object properties)",
459
481
  "__exemption": [ "definition" ]
460
482
  }
461
483
  }
@@ -475,7 +497,7 @@
475
497
  "type": "Object",
476
498
  "tsType": "QNotifyOptions",
477
499
  "required": true,
478
- "desc": "Notification options (See 'opts' param of 'create()' for object properties)",
500
+ "desc": "Notification options except 'ignoreDefaults' (See 'opts' param of 'create()' for object properties)",
479
501
  "__exemption": [ "definition" ]
480
502
  }
481
503
  }
@@ -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