quasar 2.6.2 → 2.6.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.
- package/dist/api/Notify.json +68 -734
- package/dist/api/QDialog.json +12 -1
- package/dist/api/QTable.json +14 -0
- package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
- package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/material-icons.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-themify.umd.prod.js +1 -1
- package/dist/icon-set/themify.umd.prod.js +1 -1
- package/dist/lang/ar-TN.umd.prod.js +6 -0
- package/dist/lang/ar.umd.prod.js +1 -1
- package/dist/lang/az-Latn.umd.prod.js +1 -1
- package/dist/lang/bg.umd.prod.js +1 -1
- package/dist/lang/bn.umd.prod.js +1 -1
- package/dist/lang/ca.umd.prod.js +1 -1
- package/dist/lang/cs.umd.prod.js +1 -1
- package/dist/lang/da.umd.prod.js +1 -1
- package/dist/lang/de.umd.prod.js +1 -1
- package/dist/lang/el.umd.prod.js +1 -1
- package/dist/lang/en-GB.umd.prod.js +1 -1
- package/dist/lang/en-US.umd.prod.js +1 -1
- package/dist/lang/eo.umd.prod.js +1 -1
- package/dist/lang/es.umd.prod.js +1 -1
- package/dist/lang/et.umd.prod.js +1 -1
- package/dist/lang/eu.umd.prod.js +1 -1
- package/dist/lang/fa-IR.umd.prod.js +1 -1
- package/dist/lang/fa.umd.prod.js +1 -1
- package/dist/lang/fi.umd.prod.js +1 -1
- package/dist/lang/fr.umd.prod.js +1 -1
- package/dist/lang/gn.umd.prod.js +1 -1
- package/dist/lang/he.umd.prod.js +1 -1
- package/dist/lang/hr.umd.prod.js +1 -1
- package/dist/lang/hu.umd.prod.js +1 -1
- package/dist/lang/id.umd.prod.js +1 -1
- package/dist/lang/is.umd.prod.js +1 -1
- package/dist/lang/it.umd.prod.js +1 -1
- package/dist/lang/ja.umd.prod.js +1 -1
- package/dist/lang/km.umd.prod.js +1 -1
- package/dist/lang/ko-KR.umd.prod.js +1 -1
- package/dist/lang/kur-CKB.umd.prod.js +1 -1
- package/dist/lang/kz.umd.prod.js +1 -1
- package/dist/lang/lt.umd.prod.js +1 -1
- package/dist/lang/lu.umd.prod.js +1 -1
- package/dist/lang/lv.umd.prod.js +1 -1
- package/dist/lang/ml.umd.prod.js +1 -1
- package/dist/lang/ms.umd.prod.js +1 -1
- package/dist/lang/my.umd.prod.js +1 -1
- package/dist/lang/nb-NO.umd.prod.js +1 -1
- package/dist/lang/nl.umd.prod.js +1 -1
- package/dist/lang/pl.umd.prod.js +1 -1
- package/dist/lang/pt-BR.umd.prod.js +1 -1
- package/dist/lang/pt.umd.prod.js +1 -1
- package/dist/lang/ro.umd.prod.js +1 -1
- package/dist/lang/ru.umd.prod.js +1 -1
- package/dist/lang/sk.umd.prod.js +1 -1
- package/dist/lang/sl.umd.prod.js +1 -1
- package/dist/lang/sr-CYR.umd.prod.js +1 -1
- package/dist/lang/sr.umd.prod.js +1 -1
- package/dist/lang/sv.umd.prod.js +1 -1
- package/dist/lang/ta.umd.prod.js +1 -1
- package/dist/lang/th.umd.prod.js +1 -1
- package/dist/lang/tr.umd.prod.js +1 -1
- package/dist/lang/ug.umd.prod.js +1 -1
- package/dist/lang/uk.umd.prod.js +1 -1
- package/dist/lang/vi.umd.prod.js +1 -1
- package/dist/lang/zh-CN.umd.prod.js +1 -1
- package/dist/lang/zh-TW.umd.prod.js +1 -1
- package/dist/quasar.cjs.prod.js +2 -2
- package/dist/quasar.css +12 -20
- package/dist/quasar.esm.prod.js +2 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +27 -39
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +9 -15
- package/dist/quasar.umd.js +28 -14
- package/dist/quasar.umd.prod.js +2 -2
- package/dist/types/api/qnotify.d.ts +9 -0
- package/dist/types/api.d.ts +1 -0
- package/dist/types/index.d.ts +154 -730
- package/dist/vetur/quasar-attributes.json +4 -0
- package/dist/vetur/quasar-tags.json +1 -0
- package/dist/web-types/web-types.json +10 -1
- package/lang/ar-TN.js +101 -0
- package/lang/ar-TN.mjs +96 -0
- package/lang/index.json +4 -0
- package/package.json +1 -1
- package/src/components/checkbox/QCheckbox.js +1 -1
- package/src/components/checkbox/QCheckbox.sass +5 -9
- package/src/components/dialog/QDialog.js +3 -3
- package/src/components/dialog/QDialog.json +10 -1
- package/src/components/icon/QIcon.js +3 -4
- package/src/components/radio/QRadio.js +1 -1
- package/src/components/radio/QRadio.sass +5 -9
- package/src/components/table/QTable.js +4 -0
- package/src/components/table/QTable.json +4 -0
- package/src/components/table/QTh.js +5 -2
- package/src/components/virtual-scroll/QVirtualScroll.js +9 -1
- package/src/plugins/Notify.json +55 -533
package/src/plugins/Notify.json
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
"html": {
|
|
38
38
|
"type": "Boolean",
|
|
39
|
-
"desc": "Render the message as HTML; This can lead to XSS attacks so make sure that you sanitize the message first"
|
|
39
|
+
"desc": "Render the message as HTML; This can lead to XSS attacks, so make sure that you sanitize the message first"
|
|
40
40
|
},
|
|
41
41
|
|
|
42
42
|
"icon": {
|
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
|
|
66
66
|
"spinner": {
|
|
67
67
|
"type": "Boolean",
|
|
68
|
-
"desc": "Useful for notifications that are updated; Displays
|
|
68
|
+
"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",
|
|
69
|
+
"examples": [ true, "QSpinnerBars" ]
|
|
69
70
|
},
|
|
70
71
|
|
|
71
72
|
"spinnerColor": {
|
|
@@ -86,8 +87,7 @@
|
|
|
86
87
|
"top-left", "top-right",
|
|
87
88
|
"bottom-left", "bottom-right",
|
|
88
89
|
"top", "bottom", "left", "right", "center"
|
|
89
|
-
]
|
|
90
|
-
"examples": [ "top-right" ]
|
|
90
|
+
]
|
|
91
91
|
},
|
|
92
92
|
|
|
93
93
|
"group": {
|
|
@@ -112,21 +112,24 @@
|
|
|
112
112
|
"values": [
|
|
113
113
|
"top-left", "top-right",
|
|
114
114
|
"bottom-left", "bottom-right"
|
|
115
|
-
]
|
|
116
|
-
"examples": [ "bottom-right" ]
|
|
115
|
+
]
|
|
117
116
|
},
|
|
118
117
|
"badgeStyle": {
|
|
119
|
-
"type": "String",
|
|
118
|
+
"type": [ "String", "Array", "Object" ],
|
|
119
|
+
"tsType": "VueStyleProp",
|
|
120
120
|
"desc": "Style definitions to be attributed to the badge",
|
|
121
121
|
"examples": [
|
|
122
|
-
"background-color: #ff0000"
|
|
122
|
+
"background-color: #ff0000",
|
|
123
|
+
"{ backgroundColor: '#ff0000' }"
|
|
123
124
|
]
|
|
124
125
|
},
|
|
125
126
|
"badgeClass": {
|
|
126
|
-
"type": "String",
|
|
127
|
+
"type": [ "String", "Array", "Object" ],
|
|
128
|
+
"tsType": "VueClassProp",
|
|
127
129
|
"desc": "Class definitions to be attributed to the badge",
|
|
128
130
|
"examples": [
|
|
129
|
-
"my-special-class"
|
|
131
|
+
"my-special-class",
|
|
132
|
+
"{ 'my-special-class': <condition> }"
|
|
130
133
|
]
|
|
131
134
|
},
|
|
132
135
|
|
|
@@ -135,10 +138,12 @@
|
|
|
135
138
|
"desc": "Show progress bar to detail when notification will disappear automatically (unless timeout is 0)"
|
|
136
139
|
},
|
|
137
140
|
"progressClass": {
|
|
138
|
-
"type": "String",
|
|
141
|
+
"type": [ "String", "Array", "Object" ],
|
|
142
|
+
"tsType": "VueClassProp",
|
|
139
143
|
"desc": "Class definitions to be attributed to the progress bar",
|
|
140
144
|
"examples": [
|
|
141
|
-
"my-special-class"
|
|
145
|
+
"my-special-class",
|
|
146
|
+
"{ 'my-special-class': <condition> }"
|
|
142
147
|
]
|
|
143
148
|
},
|
|
144
149
|
|
|
@@ -166,7 +171,7 @@
|
|
|
166
171
|
|
|
167
172
|
"closeBtn": {
|
|
168
173
|
"type": [ "Boolean", "String" ],
|
|
169
|
-
"desc": "Convenient way to add a dismiss button with a specific label, without using the 'actions'
|
|
174
|
+
"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",
|
|
170
175
|
"examples": [ "Close me" ]
|
|
171
176
|
},
|
|
172
177
|
|
|
@@ -184,6 +189,8 @@
|
|
|
184
189
|
"params": {
|
|
185
190
|
"opts": {
|
|
186
191
|
"type": [ "Object", "String" ],
|
|
192
|
+
"tsType": "QNotifyCreateOptions",
|
|
193
|
+
"autoDefineTsType": true,
|
|
187
194
|
"required": true,
|
|
188
195
|
"desc": "Notification options",
|
|
189
196
|
"definition": {
|
|
@@ -215,7 +222,7 @@
|
|
|
215
222
|
|
|
216
223
|
"html": {
|
|
217
224
|
"type": "Boolean",
|
|
218
|
-
"desc": "Render message as HTML; This can lead to XSS attacks, so make sure that you sanitize the message first"
|
|
225
|
+
"desc": "Render the message as HTML; This can lead to XSS attacks, so make sure that you sanitize the message first"
|
|
219
226
|
},
|
|
220
227
|
|
|
221
228
|
"icon": {
|
|
@@ -234,7 +241,7 @@
|
|
|
234
241
|
|
|
235
242
|
"avatar": {
|
|
236
243
|
"type": "String",
|
|
237
|
-
"desc": "URL to an avatar/image; Suggestion: public folder",
|
|
244
|
+
"desc": "URL to an avatar/image; Suggestion: use public folder",
|
|
238
245
|
"examples": [
|
|
239
246
|
"(public folder) img/something.png",
|
|
240
247
|
"(relative path format) require('./my_img.jpg')",
|
|
@@ -350,9 +357,30 @@
|
|
|
350
357
|
|
|
351
358
|
"actions": {
|
|
352
359
|
"type": "Array",
|
|
353
|
-
"
|
|
360
|
+
"tsType": "QNotifyAction",
|
|
361
|
+
"desc": "Notification actions (buttons); Unless 'noDismiss' is true, clicking/tapping on the button will close the notification; Also check 'closeBtn' convenience prop",
|
|
362
|
+
"definition": {
|
|
363
|
+
"handler": {
|
|
364
|
+
"type": "Function",
|
|
365
|
+
"desc": "Function to be executed when the button is clicked/tapped",
|
|
366
|
+
"params": null,
|
|
367
|
+
"returns": null,
|
|
368
|
+
"examples": [
|
|
369
|
+
"() => { console.log('button clicked') }"
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
"noDismiss": {
|
|
373
|
+
"type": "Boolean",
|
|
374
|
+
"desc": "Do not dismiss the notification when the button is clicked/tapped"
|
|
375
|
+
},
|
|
376
|
+
"...": {
|
|
377
|
+
"type": "Any",
|
|
378
|
+
"desc": "Any other QBtn prop expect 'onClick' (use 'handler' instead)",
|
|
379
|
+
"examples": [ "label: 'Learn more'", "color: 'primary'" ]
|
|
380
|
+
}
|
|
381
|
+
},
|
|
354
382
|
"examples": [
|
|
355
|
-
"[ { label: 'Show', handler: (
|
|
383
|
+
"[ { label: 'Show', handler: () => {}, 'aria-label': 'Button label' }, { icon: 'map', handler: () => {}, color: 'yellow' }, { label: 'Learn more', noDismiss: true, handler: () => {} } ]"
|
|
356
384
|
]
|
|
357
385
|
},
|
|
358
386
|
|
|
@@ -368,7 +396,7 @@
|
|
|
368
396
|
|
|
369
397
|
"closeBtn": {
|
|
370
398
|
"type": [ "Boolean", "String" ],
|
|
371
|
-
"desc": "
|
|
399
|
+
"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",
|
|
372
400
|
"examples": [ "Close me" ]
|
|
373
401
|
},
|
|
374
402
|
|
|
@@ -390,150 +418,10 @@
|
|
|
390
418
|
"params": {
|
|
391
419
|
"props": {
|
|
392
420
|
"type": "Object",
|
|
421
|
+
"tsType": "QNotifyUpdateOptions",
|
|
393
422
|
"required": false,
|
|
394
|
-
"desc": "Notification properties that will be shallow merged to previous ones in order to update the non-grouped notification",
|
|
395
|
-
"
|
|
396
|
-
"type": {
|
|
397
|
-
"type": "String",
|
|
398
|
-
"desc": "Optional type (that has been previously registered) or one of the out of the box ones ('positive', 'negative', 'warning', 'info', 'ongoing')",
|
|
399
|
-
"examples": [ "negative", "custom-type" ]
|
|
400
|
-
},
|
|
401
|
-
|
|
402
|
-
"color": {
|
|
403
|
-
"extends": "color"
|
|
404
|
-
},
|
|
405
|
-
|
|
406
|
-
"textColor": {
|
|
407
|
-
"extends": "color"
|
|
408
|
-
},
|
|
409
|
-
|
|
410
|
-
"message": {
|
|
411
|
-
"type": "String",
|
|
412
|
-
"desc": "The content of your message",
|
|
413
|
-
"examples": [ "John Doe pinged you" ]
|
|
414
|
-
},
|
|
415
|
-
|
|
416
|
-
"caption": {
|
|
417
|
-
"type": "String",
|
|
418
|
-
"desc": "The content of your optional caption",
|
|
419
|
-
"examples": [ "5 minutes ago" ]
|
|
420
|
-
},
|
|
421
|
-
|
|
422
|
-
"html": {
|
|
423
|
-
"type": "Boolean",
|
|
424
|
-
"desc": "Render message as HTML; This can lead to XSS attacks, so make sure that you sanitize the message first"
|
|
425
|
-
},
|
|
426
|
-
|
|
427
|
-
"icon": {
|
|
428
|
-
"extends": "icon"
|
|
429
|
-
},
|
|
430
|
-
|
|
431
|
-
"iconColor": {
|
|
432
|
-
"extends": "color",
|
|
433
|
-
"addedIn": "v2.5.5"
|
|
434
|
-
},
|
|
435
|
-
|
|
436
|
-
"iconSize": {
|
|
437
|
-
"extends": "size",
|
|
438
|
-
"addedIn": "v2.5.5"
|
|
439
|
-
},
|
|
440
|
-
|
|
441
|
-
"avatar": {
|
|
442
|
-
"type": "String",
|
|
443
|
-
"desc": "URL to an avatar/image; Suggestion: use public folder",
|
|
444
|
-
"examples": [
|
|
445
|
-
"(public folder) img/something.png",
|
|
446
|
-
"(relative path format) require('./my_img.jpg')",
|
|
447
|
-
"(URL) https://some-site.net/some-img.gif"
|
|
448
|
-
]
|
|
449
|
-
},
|
|
450
|
-
|
|
451
|
-
"spinner": {
|
|
452
|
-
"type": [ "Boolean", "Component" ],
|
|
453
|
-
"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",
|
|
454
|
-
"__exemption": [ "examples" ]
|
|
455
|
-
},
|
|
456
|
-
|
|
457
|
-
"spinnerColor": {
|
|
458
|
-
"extends": "color",
|
|
459
|
-
"addedIn": "v2.5.5"
|
|
460
|
-
},
|
|
461
|
-
|
|
462
|
-
"spinnerSize": {
|
|
463
|
-
"extends": "size",
|
|
464
|
-
"addedIn": "v2.5.5"
|
|
465
|
-
},
|
|
466
|
-
|
|
467
|
-
"progress": {
|
|
468
|
-
"type": "Boolean",
|
|
469
|
-
"desc": "Show progress bar to detail when notification will disappear automatically (unless timeout is 0)"
|
|
470
|
-
},
|
|
471
|
-
"progressClass": {
|
|
472
|
-
"type": [ "String", "Array", "Object" ],
|
|
473
|
-
"tsType": "VueClassProp",
|
|
474
|
-
"desc": "Class definitions to be attributed to the progress bar",
|
|
475
|
-
"examples": [
|
|
476
|
-
"my-special-class",
|
|
477
|
-
"{ 'my-special-class': <condition> }"
|
|
478
|
-
]
|
|
479
|
-
},
|
|
480
|
-
|
|
481
|
-
"classes": {
|
|
482
|
-
"type": "String",
|
|
483
|
-
"desc": "Add CSS class(es) to the notification for easier customization",
|
|
484
|
-
"examples": [
|
|
485
|
-
"my-notif-class"
|
|
486
|
-
]
|
|
487
|
-
},
|
|
488
|
-
|
|
489
|
-
"attrs": {
|
|
490
|
-
"type": "Object",
|
|
491
|
-
"desc": "Key-value for attributes to be set on the notification",
|
|
492
|
-
"examples": [ "{ role: 'alertdialog' }" ],
|
|
493
|
-
"__exemption": [ "definition" ]
|
|
494
|
-
},
|
|
495
|
-
|
|
496
|
-
"timeout": {
|
|
497
|
-
"type": "Number",
|
|
498
|
-
"desc": "Amount of time to display (in milliseconds)",
|
|
499
|
-
"default": 5000,
|
|
500
|
-
"examples": [ 2500 ]
|
|
501
|
-
},
|
|
502
|
-
|
|
503
|
-
"actions": {
|
|
504
|
-
"type": "Array",
|
|
505
|
-
"desc": "Notification actions (buttons); If a 'handler' is specified or not, clicking/tapping on the button will also close the notification; Also check 'closeBtn' convenience prop",
|
|
506
|
-
"examples": [
|
|
507
|
-
"[ { label: 'Show', handler: (Function), attrs: { 'aria-label': 'Button label' } }, { icon: 'map', handler: (Function), color: 'yellow' }, { label: 'Learn more', noDismiss: true, handler: (Function) } ]"
|
|
508
|
-
]
|
|
509
|
-
},
|
|
510
|
-
|
|
511
|
-
"onDismiss": {
|
|
512
|
-
"type": "Function",
|
|
513
|
-
"desc": "Function to call when notification gets dismissed",
|
|
514
|
-
"params": null,
|
|
515
|
-
"returns": null,
|
|
516
|
-
"examples": [
|
|
517
|
-
"() => { console.log('Dismissed') }"
|
|
518
|
-
]
|
|
519
|
-
},
|
|
520
|
-
|
|
521
|
-
"closeBtn": {
|
|
522
|
-
"type": [ "Boolean", "String" ],
|
|
523
|
-
"desc": "Convenience way to add a dismiss button with a specific label, without using the 'actions' prop; If set to true, it uses a label accordding to the current Quasar language",
|
|
524
|
-
"examples": [ "Close me" ]
|
|
525
|
-
},
|
|
526
|
-
|
|
527
|
-
"multiLine": {
|
|
528
|
-
"type": "Boolean",
|
|
529
|
-
"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"
|
|
530
|
-
},
|
|
531
|
-
|
|
532
|
-
"ignoreDefaults": {
|
|
533
|
-
"type": "Boolean",
|
|
534
|
-
"desc": "Ignore the default configuration (set by setDefaults()) for this instance only"
|
|
535
|
-
}
|
|
536
|
-
}
|
|
423
|
+
"desc": "Notification properties that will be shallow merged to previous ones in order to update the non-grouped notification; (See 'opts' param of 'create()' for object properties, except 'group' and 'position')",
|
|
424
|
+
"__exemption": [ "definition", "examples" ]
|
|
537
425
|
}
|
|
538
426
|
},
|
|
539
427
|
"returns": null
|
|
@@ -545,193 +433,10 @@
|
|
|
545
433
|
"params": {
|
|
546
434
|
"opts": {
|
|
547
435
|
"type": "Object",
|
|
436
|
+
"tsType": "QNotifyOptions",
|
|
548
437
|
"required": true,
|
|
549
|
-
"desc": "Notification options",
|
|
550
|
-
"
|
|
551
|
-
"type": {
|
|
552
|
-
"type": "String",
|
|
553
|
-
"desc": "Optional type (that has been previously registered) or one of the out of the box ones ('positive', 'negative', 'warning', 'info', 'ongoing')",
|
|
554
|
-
"examples": [ "negative", "custom-type" ]
|
|
555
|
-
},
|
|
556
|
-
|
|
557
|
-
"color": {
|
|
558
|
-
"extends": "color"
|
|
559
|
-
},
|
|
560
|
-
|
|
561
|
-
"textColor": {
|
|
562
|
-
"extends": "color"
|
|
563
|
-
},
|
|
564
|
-
|
|
565
|
-
"message": {
|
|
566
|
-
"type": "String",
|
|
567
|
-
"desc": "The content of your message",
|
|
568
|
-
"examples": [ "John Doe pinged you" ]
|
|
569
|
-
},
|
|
570
|
-
|
|
571
|
-
"caption": {
|
|
572
|
-
"type": "String",
|
|
573
|
-
"desc": "The content of your optional caption",
|
|
574
|
-
"examples": [ "5 minutes ago" ]
|
|
575
|
-
},
|
|
576
|
-
|
|
577
|
-
"html": {
|
|
578
|
-
"type": "Boolean",
|
|
579
|
-
"desc": "Render message as HTML; This can lead to XSS attacks, so make sure that you sanitize the message first"
|
|
580
|
-
},
|
|
581
|
-
|
|
582
|
-
"icon": {
|
|
583
|
-
"extends": "icon"
|
|
584
|
-
},
|
|
585
|
-
|
|
586
|
-
"iconColor": {
|
|
587
|
-
"extends": "color",
|
|
588
|
-
"addedIn": "v2.5.5"
|
|
589
|
-
},
|
|
590
|
-
|
|
591
|
-
"iconSize": {
|
|
592
|
-
"extends": "size",
|
|
593
|
-
"addedIn": "v2.5.5"
|
|
594
|
-
},
|
|
595
|
-
|
|
596
|
-
"avatar": {
|
|
597
|
-
"type": "String",
|
|
598
|
-
"desc": "URL to an avatar/image; Suggestion: use public folder",
|
|
599
|
-
"examples": [
|
|
600
|
-
"(public folder) img/something.png",
|
|
601
|
-
"(relative path format) require('./my_img.jpg')",
|
|
602
|
-
"(URL) https://some-site.net/some-img.gif"
|
|
603
|
-
]
|
|
604
|
-
},
|
|
605
|
-
|
|
606
|
-
"spinner": {
|
|
607
|
-
"type": [ "Boolean", "Component" ],
|
|
608
|
-
"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",
|
|
609
|
-
"__exemption": [ "examples" ]
|
|
610
|
-
},
|
|
611
|
-
|
|
612
|
-
"spinnerColor": {
|
|
613
|
-
"extends": "color",
|
|
614
|
-
"addedIn": "v2.5.5"
|
|
615
|
-
},
|
|
616
|
-
|
|
617
|
-
"spinnerSize": {
|
|
618
|
-
"extends": "size",
|
|
619
|
-
"addedIn": "v2.5.5"
|
|
620
|
-
},
|
|
621
|
-
|
|
622
|
-
"position": {
|
|
623
|
-
"type": "String",
|
|
624
|
-
"desc": "Window side/corner to stick to",
|
|
625
|
-
"default": "bottom",
|
|
626
|
-
"values": [
|
|
627
|
-
"top-left", "top-right",
|
|
628
|
-
"bottom-left", "bottom-right",
|
|
629
|
-
"top", "bottom", "left", "right", "center"
|
|
630
|
-
],
|
|
631
|
-
"examples": [ "top-right" ]
|
|
632
|
-
},
|
|
633
|
-
|
|
634
|
-
"badgeColor": {
|
|
635
|
-
"extends": "color",
|
|
636
|
-
"desc": "Color name for the badge from the Quasar Color Palette"
|
|
637
|
-
},
|
|
638
|
-
"badgeTextColor": {
|
|
639
|
-
"extends": "color",
|
|
640
|
-
"desc": "Color name for the badge text from the Quasar Color Palette"
|
|
641
|
-
},
|
|
642
|
-
"badgePosition": {
|
|
643
|
-
"type": "String",
|
|
644
|
-
"desc": "Notification corner to stick badge to; If notification is on the left side then default is top-right otherwise it is top-left",
|
|
645
|
-
"default": "(top-left/top-right)",
|
|
646
|
-
"values": [
|
|
647
|
-
"top-left", "top-right",
|
|
648
|
-
"bottom-left", "bottom-right"
|
|
649
|
-
],
|
|
650
|
-
"examples": [ "bottom-right" ]
|
|
651
|
-
},
|
|
652
|
-
"badgeStyle": {
|
|
653
|
-
"type": [ "String", "Array", "Object" ],
|
|
654
|
-
"tsType": "VueStyleProp",
|
|
655
|
-
"desc": "Style definitions to be attributed to the badge",
|
|
656
|
-
"examples": [
|
|
657
|
-
"background-color: #ff0000",
|
|
658
|
-
"{ backgroundColor: '#ff0000' }"
|
|
659
|
-
]
|
|
660
|
-
},
|
|
661
|
-
"badgeClass": {
|
|
662
|
-
"type": [ "String", "Array", "Object" ],
|
|
663
|
-
"tsType": "VueClassProp",
|
|
664
|
-
"desc": "Class definitions to be attributed to the badge",
|
|
665
|
-
"examples": [
|
|
666
|
-
"my-special-class",
|
|
667
|
-
"{ 'my-special-class': <condition> }"
|
|
668
|
-
]
|
|
669
|
-
},
|
|
670
|
-
|
|
671
|
-
"progress": {
|
|
672
|
-
"type": "Boolean",
|
|
673
|
-
"desc": "Show progress bar to detail when notification will disappear automatically (unless timeout is 0)"
|
|
674
|
-
},
|
|
675
|
-
"progressClass": {
|
|
676
|
-
"type": [ "String", "Array", "Object" ],
|
|
677
|
-
"tsType": "VueClassProp",
|
|
678
|
-
"desc": "Class definitions to be attributed to the progress bar",
|
|
679
|
-
"examples": [
|
|
680
|
-
"my-special-class",
|
|
681
|
-
"{ 'my-special-class': <condition> }"
|
|
682
|
-
]
|
|
683
|
-
},
|
|
684
|
-
|
|
685
|
-
"classes": {
|
|
686
|
-
"type": "String",
|
|
687
|
-
"desc": "Add CSS class(es) to the notification for easier customization",
|
|
688
|
-
"examples": [
|
|
689
|
-
"my-notif-class"
|
|
690
|
-
]
|
|
691
|
-
},
|
|
692
|
-
|
|
693
|
-
"attrs": {
|
|
694
|
-
"type": "Object",
|
|
695
|
-
"desc": "Key-value for attributes to be set on the notification",
|
|
696
|
-
"examples": [ "{ role: 'alertdialog' }" ]
|
|
697
|
-
},
|
|
698
|
-
|
|
699
|
-
"timeout": {
|
|
700
|
-
"type": "Number",
|
|
701
|
-
"desc": "Amount of time to display (in milliseconds)",
|
|
702
|
-
"default": 5000,
|
|
703
|
-
"examples": [ 2500 ]
|
|
704
|
-
},
|
|
705
|
-
|
|
706
|
-
"actions": {
|
|
707
|
-
"type": "Array",
|
|
708
|
-
"desc": "Notification actions (buttons); If a 'handler' is specified or not, clicking/tapping on the button will also close the notification; Also check 'closeBtn' convenience prop",
|
|
709
|
-
"examples": [
|
|
710
|
-
"[ { label: 'Show', handler: (Function), attrs: { 'aria-label': 'Button label' } }, { icon: 'map', handler: (Function), color: 'yellow' } ]"
|
|
711
|
-
]
|
|
712
|
-
},
|
|
713
|
-
|
|
714
|
-
"onDismiss": {
|
|
715
|
-
"type": "Function",
|
|
716
|
-
"desc": "Function to call when notification gets dismissed",
|
|
717
|
-
"params": null,
|
|
718
|
-
"returns": null,
|
|
719
|
-
"examples": [
|
|
720
|
-
"() => { console.log('Dismissed') }"
|
|
721
|
-
]
|
|
722
|
-
},
|
|
723
|
-
|
|
724
|
-
"closeBtn": {
|
|
725
|
-
"type": [ "Boolean", "String" ],
|
|
726
|
-
"desc": "Convenience way to add a dismiss button with a specific label, without using the 'actions' prop; If set to true, it uses a label accordding to the current Quasar language",
|
|
727
|
-
"examples": [ "Close me" ]
|
|
728
|
-
},
|
|
729
|
-
|
|
730
|
-
"multiLine": {
|
|
731
|
-
"type": "Boolean",
|
|
732
|
-
"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"
|
|
733
|
-
}
|
|
734
|
-
}
|
|
438
|
+
"desc": "Notification options (See 'opts' param of 'create()' for object properties)",
|
|
439
|
+
"__exemption": [ "definition", "examples" ]
|
|
735
440
|
}
|
|
736
441
|
}
|
|
737
442
|
},
|
|
@@ -748,193 +453,10 @@
|
|
|
748
453
|
|
|
749
454
|
"typeOpts": {
|
|
750
455
|
"type": "Object",
|
|
456
|
+
"tsType": "QNotifyOptions",
|
|
751
457
|
"required": true,
|
|
752
|
-
"desc": "Notification options",
|
|
753
|
-
"
|
|
754
|
-
"type": {
|
|
755
|
-
"type": "String",
|
|
756
|
-
"desc": "Optional type (that has been previously registered) or one of the out of the box ones ('positive', 'negative', 'warning', 'info', 'ongoing')",
|
|
757
|
-
"examples": [ "negative", "custom-type" ]
|
|
758
|
-
},
|
|
759
|
-
|
|
760
|
-
"color": {
|
|
761
|
-
"extends": "color"
|
|
762
|
-
},
|
|
763
|
-
|
|
764
|
-
"textColor": {
|
|
765
|
-
"extends": "color"
|
|
766
|
-
},
|
|
767
|
-
|
|
768
|
-
"message": {
|
|
769
|
-
"type": "String",
|
|
770
|
-
"desc": "The content of your message",
|
|
771
|
-
"examples": [ "John Doe pinged you" ]
|
|
772
|
-
},
|
|
773
|
-
|
|
774
|
-
"caption": {
|
|
775
|
-
"type": "String",
|
|
776
|
-
"desc": "The content of your optional caption",
|
|
777
|
-
"examples": [ "5 minutes ago" ]
|
|
778
|
-
},
|
|
779
|
-
|
|
780
|
-
"html": {
|
|
781
|
-
"type": "Boolean",
|
|
782
|
-
"desc": "Render message as HTML; This can lead to XSS attacks, so make sure that you sanitize the message first"
|
|
783
|
-
},
|
|
784
|
-
|
|
785
|
-
"icon": {
|
|
786
|
-
"extends": "icon"
|
|
787
|
-
},
|
|
788
|
-
|
|
789
|
-
"iconColor": {
|
|
790
|
-
"extends": "color",
|
|
791
|
-
"addedIn": "v2.5.5"
|
|
792
|
-
},
|
|
793
|
-
|
|
794
|
-
"iconSize": {
|
|
795
|
-
"extends": "size",
|
|
796
|
-
"addedIn": "v2.5.5"
|
|
797
|
-
},
|
|
798
|
-
|
|
799
|
-
"avatar": {
|
|
800
|
-
"type": "String",
|
|
801
|
-
"desc": "URL to an avatar/image; Suggestion: use public folder",
|
|
802
|
-
"examples": [
|
|
803
|
-
"(public folder) img/something.png",
|
|
804
|
-
"(relative path format) require('./my_img.jpg')",
|
|
805
|
-
"(URL) https://some-site.net/some-img.gif"
|
|
806
|
-
]
|
|
807
|
-
},
|
|
808
|
-
|
|
809
|
-
"spinner": {
|
|
810
|
-
"type": [ "Boolean", "Component" ],
|
|
811
|
-
"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",
|
|
812
|
-
"__exemption": [ "examples" ]
|
|
813
|
-
},
|
|
814
|
-
|
|
815
|
-
"spinnerColor": {
|
|
816
|
-
"extends": "color",
|
|
817
|
-
"addedIn": "v2.5.5"
|
|
818
|
-
},
|
|
819
|
-
|
|
820
|
-
"spinnerSize": {
|
|
821
|
-
"extends": "size",
|
|
822
|
-
"addedIn": "v2.5.5"
|
|
823
|
-
},
|
|
824
|
-
|
|
825
|
-
"position": {
|
|
826
|
-
"type": "String",
|
|
827
|
-
"desc": "Window side/corner to stick to",
|
|
828
|
-
"default": "bottom",
|
|
829
|
-
"values": [
|
|
830
|
-
"top-left", "top-right",
|
|
831
|
-
"bottom-left", "bottom-right",
|
|
832
|
-
"top", "bottom", "left", "right", "center"
|
|
833
|
-
],
|
|
834
|
-
"examples": [ "top-right" ]
|
|
835
|
-
},
|
|
836
|
-
|
|
837
|
-
"badgeColor": {
|
|
838
|
-
"extends": "color",
|
|
839
|
-
"desc": "Color name for the badge from the Quasar Color Palette"
|
|
840
|
-
},
|
|
841
|
-
"badgeTextColor": {
|
|
842
|
-
"extends": "color",
|
|
843
|
-
"desc": "Color name for the badge text from the Quasar Color Palette"
|
|
844
|
-
},
|
|
845
|
-
"badgePosition": {
|
|
846
|
-
"type": "String",
|
|
847
|
-
"desc": "Notification corner to stick badge to; If notification is on the left side then default is top-right otherwise it is top-left",
|
|
848
|
-
"default": "(top-left/top-right)",
|
|
849
|
-
"values": [
|
|
850
|
-
"top-left", "top-right",
|
|
851
|
-
"bottom-left", "bottom-right"
|
|
852
|
-
],
|
|
853
|
-
"examples": [ "bottom-right" ]
|
|
854
|
-
},
|
|
855
|
-
"badgeStyle": {
|
|
856
|
-
"type": [ "String", "Array", "Object" ],
|
|
857
|
-
"tsType": "VueStyleProp",
|
|
858
|
-
"desc": "Style definitions to be attributed to the badge",
|
|
859
|
-
"examples": [
|
|
860
|
-
"background-color: #ff0000",
|
|
861
|
-
"{ backgroundColor: '#ff0000' }"
|
|
862
|
-
]
|
|
863
|
-
},
|
|
864
|
-
"badgeClass": {
|
|
865
|
-
"type": [ "String", "Array", "Object" ],
|
|
866
|
-
"tsType": "VueClassProp",
|
|
867
|
-
"desc": "Class definitions to be attributed to the badge",
|
|
868
|
-
"examples": [
|
|
869
|
-
"my-special-class",
|
|
870
|
-
"{ 'my-special-class': <condition> }"
|
|
871
|
-
]
|
|
872
|
-
},
|
|
873
|
-
|
|
874
|
-
"progress": {
|
|
875
|
-
"type": "Boolean",
|
|
876
|
-
"desc": "Show progress bar to detail when notification will disappear automatically (unless timeout is 0)"
|
|
877
|
-
},
|
|
878
|
-
"progressClass": {
|
|
879
|
-
"type": [ "String", "Array", "Object" ],
|
|
880
|
-
"tsType": "VueClassProp",
|
|
881
|
-
"desc": "Class definitions to be attributed to the progress bar",
|
|
882
|
-
"examples": [
|
|
883
|
-
"my-special-class",
|
|
884
|
-
"{ 'my-special-class': <condition> }"
|
|
885
|
-
]
|
|
886
|
-
},
|
|
887
|
-
|
|
888
|
-
"classes": {
|
|
889
|
-
"type": "String",
|
|
890
|
-
"desc": "Add CSS class(es) to the notification for easier customization",
|
|
891
|
-
"examples": [
|
|
892
|
-
"my-notif-class"
|
|
893
|
-
]
|
|
894
|
-
},
|
|
895
|
-
|
|
896
|
-
"attrs": {
|
|
897
|
-
"type": "Object",
|
|
898
|
-
"desc": "Key-value for attributes to be set on the notification",
|
|
899
|
-
"examples": [ "{ role: 'alertdialog' }" ]
|
|
900
|
-
},
|
|
901
|
-
|
|
902
|
-
"timeout": {
|
|
903
|
-
"type": "Number",
|
|
904
|
-
"desc": "Amount of time to display (in milliseconds)",
|
|
905
|
-
"default": 5000,
|
|
906
|
-
"examples": [ 2500 ]
|
|
907
|
-
},
|
|
908
|
-
|
|
909
|
-
"actions": {
|
|
910
|
-
"type": "Array",
|
|
911
|
-
"desc": "Notification actions (buttons); If a 'handler' is specified or not, clicking/tapping on the button will also close the notification; Also check 'closeBtn' convenience prop",
|
|
912
|
-
"examples": [
|
|
913
|
-
"[ { label: 'Show', handler: (Function), attrs: { 'aria-label': 'Button label' } }, { icon: 'map', handler: (Function), color: 'yellow' } ]"
|
|
914
|
-
]
|
|
915
|
-
},
|
|
916
|
-
|
|
917
|
-
"onDismiss": {
|
|
918
|
-
"type": "Function",
|
|
919
|
-
"desc": "Function to call when notification gets dismissed",
|
|
920
|
-
"params": null,
|
|
921
|
-
"returns": null,
|
|
922
|
-
"examples": [
|
|
923
|
-
"() => { console.log('Dismissed') }"
|
|
924
|
-
]
|
|
925
|
-
},
|
|
926
|
-
|
|
927
|
-
"closeBtn": {
|
|
928
|
-
"type": [ "Boolean", "String" ],
|
|
929
|
-
"desc": "Convenience way to add a dismiss button with a specific label, without using the 'actions' prop; If set to true, it uses a label accordding to the current Quasar language",
|
|
930
|
-
"examples": [ "Close me" ]
|
|
931
|
-
},
|
|
932
|
-
|
|
933
|
-
"multiLine": {
|
|
934
|
-
"type": "Boolean",
|
|
935
|
-
"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"
|
|
936
|
-
}
|
|
937
|
-
}
|
|
458
|
+
"desc": "Notification options (See 'opts' param of 'create()' for object properties)",
|
|
459
|
+
"__exemption": [ "definition", "examples" ]
|
|
938
460
|
}
|
|
939
461
|
}
|
|
940
462
|
}
|