quasar 2.3.0 → 2.3.1
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/BottomSheet.json +17 -2
- package/dist/api/Dialog.json +17 -2
- package/dist/api/LocalStorage.json +8 -0
- package/dist/api/QCircularProgress.json +1 -1
- package/dist/api/QDate.json +46 -0
- package/dist/api/QEditor.json +7 -2
- package/dist/api/QFooter.json +1 -1
- package/dist/api/QHeader.json +1 -1
- package/dist/api/QIntersection.json +14 -0
- package/dist/api/QLinearProgress.json +1 -1
- package/dist/api/QRouteTab.json +1 -24
- package/dist/api/QScrollArea.json +3 -0
- package/dist/api/QSelect.json +62 -0
- package/dist/api/QTable.json +62 -5
- package/dist/api/QUploader.json +81 -1
- package/dist/api/SessionStorage.json +8 -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/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-ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v5.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-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v5.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.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/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/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/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 +4 -0
- package/dist/quasar.esm.prod.js +2 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +4 -0
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +3 -1
- package/dist/quasar.umd.js +39 -18
- package/dist/quasar.umd.prod.js +2 -2
- package/dist/ssr-directives/Morph.js +1 -1
- package/dist/types/index.d.ts +360 -141
- package/dist/vetur/quasar-attributes.json +6 -2
- package/dist/vetur/quasar-tags.json +1 -0
- package/dist/web-types/web-types.json +14 -3
- package/package.json +4 -1
- package/src/body.js +14 -4
- package/src/components/circular-progress/QCircularProgress.json +1 -1
- package/src/components/date/QDate.json +34 -0
- package/src/components/editor/QEditor.json +6 -2
- package/src/components/footer/QFooter.json +1 -1
- package/src/components/header/QHeader.json +1 -1
- package/src/components/intersection/QIntersection.js +9 -1
- package/src/components/intersection/QIntersection.json +9 -0
- package/src/components/linear-progress/QLinearProgress.json +1 -1
- package/src/components/scroll-area/QScrollArea.json +4 -1
- package/src/components/select/QSelect.js +6 -2
- package/src/components/select/QSelect.json +47 -0
- package/src/components/slider/use-slider.js +3 -3
- package/src/components/table/QTable.json +51 -5
- package/src/components/tabs/QRouteTab.json +1 -23
- package/src/components/uploader/xhr-uploader-plugin.json +97 -1
- package/src/composables/private/use-field.js +2 -2
- package/src/composables/private/use-refocus-target.js +12 -3
- package/src/css/core/transitions.sass +3 -1
- package/src/install-quasar.js +1 -0
- package/src/utils/private/global-dialog.json +10 -2
- package/src/utils/private/web-storage.json +10 -0
- package/wrappers/index.js +4 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -408,7 +408,7 @@ export interface LocalStorage {
|
|
|
408
408
|
| RegExp
|
|
409
409
|
| number
|
|
410
410
|
| boolean
|
|
411
|
-
|
|
|
411
|
+
| ((...params: any[]) => any)
|
|
412
412
|
| LooseDictionary
|
|
413
413
|
| any[]
|
|
414
414
|
| string
|
|
@@ -549,7 +549,7 @@ export interface Notify {
|
|
|
549
549
|
/**
|
|
550
550
|
* Function to call when notification gets dismissed
|
|
551
551
|
*/
|
|
552
|
-
onDismiss?:
|
|
552
|
+
onDismiss?: () => void;
|
|
553
553
|
/**
|
|
554
554
|
* 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
|
|
555
555
|
*/
|
|
@@ -564,7 +564,85 @@ export interface Notify {
|
|
|
564
564
|
ignoreDefaults?: boolean;
|
|
565
565
|
}
|
|
566
566
|
| string
|
|
567
|
-
) =>
|
|
567
|
+
) => (props?: {
|
|
568
|
+
/**
|
|
569
|
+
* Optional type (that has been previously registered) or one of the out of the box ones ('positive', 'negative', 'warning', 'info', 'ongoing')
|
|
570
|
+
*/
|
|
571
|
+
type?: string;
|
|
572
|
+
/**
|
|
573
|
+
* Color name for component from the Quasar Color Palette
|
|
574
|
+
*/
|
|
575
|
+
color?: string;
|
|
576
|
+
/**
|
|
577
|
+
* Color name for component from the Quasar Color Palette
|
|
578
|
+
*/
|
|
579
|
+
textColor?: string;
|
|
580
|
+
/**
|
|
581
|
+
* The content of your message
|
|
582
|
+
*/
|
|
583
|
+
message?: string;
|
|
584
|
+
/**
|
|
585
|
+
* The content of your optional caption
|
|
586
|
+
*/
|
|
587
|
+
caption?: string;
|
|
588
|
+
/**
|
|
589
|
+
* Render message as HTML; This can lead to XSS attacks, so make sure that you sanitize the message first
|
|
590
|
+
*/
|
|
591
|
+
html?: boolean;
|
|
592
|
+
/**
|
|
593
|
+
* Icon name following Quasar convention; Make sure you have the icon library installed unless you are using 'img:' prefix
|
|
594
|
+
*/
|
|
595
|
+
icon?: string;
|
|
596
|
+
/**
|
|
597
|
+
* URL to an avatar/image; Suggestion: use statics folder
|
|
598
|
+
*/
|
|
599
|
+
avatar?: string;
|
|
600
|
+
/**
|
|
601
|
+
* 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
|
|
602
|
+
*/
|
|
603
|
+
spinner?: boolean | Component;
|
|
604
|
+
/**
|
|
605
|
+
* Show progress bar to detail when notification will disappear automatically (unless timeout is 0)
|
|
606
|
+
*/
|
|
607
|
+
progress?: boolean;
|
|
608
|
+
/**
|
|
609
|
+
* Class definitions to be attributed to the progress bar
|
|
610
|
+
*/
|
|
611
|
+
progressClass?: any[] | string | LooseDictionary;
|
|
612
|
+
/**
|
|
613
|
+
* Add CSS class(es) to the notification for easier customization
|
|
614
|
+
*/
|
|
615
|
+
classes?: string;
|
|
616
|
+
/**
|
|
617
|
+
* Key-value for attributes to be set on the notification
|
|
618
|
+
*/
|
|
619
|
+
attrs?: LooseDictionary;
|
|
620
|
+
/**
|
|
621
|
+
* Amount of time to display (in milliseconds)
|
|
622
|
+
* Default value: 5000
|
|
623
|
+
*/
|
|
624
|
+
timeout?: number;
|
|
625
|
+
/**
|
|
626
|
+
* 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
|
|
627
|
+
*/
|
|
628
|
+
actions?: any[];
|
|
629
|
+
/**
|
|
630
|
+
* Function to call when notification gets dismissed
|
|
631
|
+
*/
|
|
632
|
+
onDismiss?: () => void;
|
|
633
|
+
/**
|
|
634
|
+
* 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
|
|
635
|
+
*/
|
|
636
|
+
closeBtn?: boolean | string;
|
|
637
|
+
/**
|
|
638
|
+
* 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
|
|
639
|
+
*/
|
|
640
|
+
multiLine?: boolean;
|
|
641
|
+
/**
|
|
642
|
+
* Ignore the default configuration (set by setDefaults()) for this instance only
|
|
643
|
+
*/
|
|
644
|
+
ignoreDefaults?: boolean;
|
|
645
|
+
}) => void;
|
|
568
646
|
/**
|
|
569
647
|
* Merge options into the default ones
|
|
570
648
|
* @param opts Notification options
|
|
@@ -669,7 +747,7 @@ export interface Notify {
|
|
|
669
747
|
/**
|
|
670
748
|
* Function to call when notification gets dismissed
|
|
671
749
|
*/
|
|
672
|
-
onDismiss?:
|
|
750
|
+
onDismiss?: () => void;
|
|
673
751
|
/**
|
|
674
752
|
* 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
|
|
675
753
|
*/
|
|
@@ -786,7 +864,7 @@ export interface Notify {
|
|
|
786
864
|
/**
|
|
787
865
|
* Function to call when notification gets dismissed
|
|
788
866
|
*/
|
|
789
|
-
onDismiss?:
|
|
867
|
+
onDismiss?: () => void;
|
|
790
868
|
/**
|
|
791
869
|
* 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
|
|
792
870
|
*/
|
|
@@ -1015,7 +1093,7 @@ export interface SessionStorage {
|
|
|
1015
1093
|
| RegExp
|
|
1016
1094
|
| number
|
|
1017
1095
|
| boolean
|
|
1018
|
-
|
|
|
1096
|
+
| ((...params: any[]) => any)
|
|
1019
1097
|
| LooseDictionary
|
|
1020
1098
|
| any[]
|
|
1021
1099
|
| string
|
|
@@ -1974,7 +2052,7 @@ export interface QBtnProps {
|
|
|
1974
2052
|
* @param evt JS event object; If you want to cancel navigation set synchronously 'evt.navigate' to false
|
|
1975
2053
|
* @param navigateFn When you need to control the time at which the button should trigger the route navigation then set 'evt.navigate' to false and call this function; Useful if you have async work to be done before the actual route navigation
|
|
1976
2054
|
*/
|
|
1977
|
-
onClick?: (evt: LooseDictionary, navigateFn:
|
|
2055
|
+
onClick?: (evt: LooseDictionary, navigateFn: () => void) => void;
|
|
1978
2056
|
}
|
|
1979
2057
|
|
|
1980
2058
|
export interface QBtnSlots {
|
|
@@ -2267,7 +2345,7 @@ export interface QCarouselSlots {
|
|
|
2267
2345
|
/**
|
|
2268
2346
|
* Default trigger when clicked/tapped on
|
|
2269
2347
|
*/
|
|
2270
|
-
onClick:
|
|
2348
|
+
onClick: (evt: LooseDictionary) => void;
|
|
2271
2349
|
}) => VNode[];
|
|
2272
2350
|
}
|
|
2273
2351
|
|
|
@@ -2898,15 +2976,15 @@ export interface QDateProps {
|
|
|
2898
2976
|
/**
|
|
2899
2977
|
* A list of events to highlight on the calendar; If using a function, it receives the date as a String and must return a Boolean (matches or not); If using a function then for best performance, reference it from your scope and do not define it inline
|
|
2900
2978
|
*/
|
|
2901
|
-
events?: any[] |
|
|
2979
|
+
events?: any[] | ((date: string) => boolean) | undefined;
|
|
2902
2980
|
/**
|
|
2903
2981
|
* Color name (from the Quasar Color Palette); If using a function, it receives the date as a String and must return a String (color for the received date); If using a function then for best performance, reference it from your scope and do not define it inline
|
|
2904
2982
|
*/
|
|
2905
|
-
eventColor?: string |
|
|
2983
|
+
eventColor?: string | ((date: string) => string) | undefined;
|
|
2906
2984
|
/**
|
|
2907
2985
|
* Optionally configure the days that are selectable; If using a function, it receives the date as a String and must return a Boolean (is date acceptable or not); If using a function then for best performance, reference it from your scope and do not define it inline; Incompatible with 'range' prop
|
|
2908
2986
|
*/
|
|
2909
|
-
options?: any[] |
|
|
2987
|
+
options?: any[] | ((date: string) => boolean) | undefined;
|
|
2910
2988
|
/**
|
|
2911
2989
|
* Lock user from navigating below a specific year+month (in YYYY/MM format); This prop is not used to correct the model; You might want to also use 'default-year-month' prop
|
|
2912
2990
|
*/
|
|
@@ -3528,7 +3606,7 @@ export interface QEditorProps {
|
|
|
3528
3606
|
/**
|
|
3529
3607
|
* Either this or "cmd" is required. Function for when button gets clicked/tapped.
|
|
3530
3608
|
*/
|
|
3531
|
-
handler?:
|
|
3609
|
+
handler?: () => void;
|
|
3532
3610
|
/**
|
|
3533
3611
|
* Either this or "handler" is required. This must be a valid execCommand method according to the designMode API.
|
|
3534
3612
|
*/
|
|
@@ -3538,9 +3616,9 @@ export interface QEditorProps {
|
|
|
3538
3616
|
*/
|
|
3539
3617
|
param?: string;
|
|
3540
3618
|
/**
|
|
3541
|
-
* Is button disabled?
|
|
3619
|
+
* Is button disabled?
|
|
3542
3620
|
*/
|
|
3543
|
-
disable?: boolean |
|
|
3621
|
+
disable?: boolean | (() => boolean);
|
|
3544
3622
|
/**
|
|
3545
3623
|
* Pass the value "no-state" if the button should not have an "active" state
|
|
3546
3624
|
*/
|
|
@@ -4361,7 +4439,7 @@ export interface QFieldSlots {
|
|
|
4361
4439
|
/**
|
|
4362
4440
|
* Function that emits an @input event in the context of the field
|
|
4363
4441
|
*/
|
|
4364
|
-
emitValue:
|
|
4442
|
+
emitValue: (value: any) => void;
|
|
4365
4443
|
}) => VNode[];
|
|
4366
4444
|
/**
|
|
4367
4445
|
* undefined
|
|
@@ -4422,7 +4500,7 @@ export interface QFileProps {
|
|
|
4422
4500
|
/**
|
|
4423
4501
|
* Custom filter for added files; Only files that pass this filter will be added to the queue and uploaded; For best performance, reference it from your scope and do not define it inline
|
|
4424
4502
|
*/
|
|
4425
|
-
filter?:
|
|
4503
|
+
filter?: ((files: FileList | any[]) => any[]) | undefined;
|
|
4426
4504
|
/**
|
|
4427
4505
|
* Model of the component; Must be FileList or Array if using 'multiple' prop; Either use this property (along with a listener for 'update:modelValue' event) OR use v-model directive
|
|
4428
4506
|
*/
|
|
@@ -4582,7 +4660,22 @@ export interface QFileProps {
|
|
|
4582
4660
|
/**
|
|
4583
4661
|
* Label for the counter; The 'counter' prop is necessary to enable this one
|
|
4584
4662
|
*/
|
|
4585
|
-
counterLabel?:
|
|
4663
|
+
counterLabel?:
|
|
4664
|
+
| ((props: {
|
|
4665
|
+
/**
|
|
4666
|
+
* The total size of files in human readable format
|
|
4667
|
+
*/
|
|
4668
|
+
totalSize: string;
|
|
4669
|
+
/**
|
|
4670
|
+
* Number of picked files
|
|
4671
|
+
*/
|
|
4672
|
+
filesNumber: number;
|
|
4673
|
+
/**
|
|
4674
|
+
* Maximum number of files (same as 'max-files' prop, if specified); When 'max-files' is not specified, this has 'void 0' as value
|
|
4675
|
+
*/
|
|
4676
|
+
maxFiles: number | string;
|
|
4677
|
+
}) => string)
|
|
4678
|
+
| undefined;
|
|
4586
4679
|
/**
|
|
4587
4680
|
* Tabindex HTML attribute value
|
|
4588
4681
|
*/
|
|
@@ -5103,7 +5196,7 @@ export interface QInfiniteScrollProps {
|
|
|
5103
5196
|
* @param index The index parameter can be used to make some sort of pagination on the content you load. It takes numeric values starting with 1 and incrementing with each call
|
|
5104
5197
|
* @param done Function to call when you made all necessary updates. DO NOT forget to call it otherwise your loading message will continue to be displayed
|
|
5105
5198
|
*/
|
|
5106
|
-
onLoad?: (index: number, done:
|
|
5199
|
+
onLoad?: (index: number, done: (stop: boolean) => void) => void;
|
|
5107
5200
|
}
|
|
5108
5201
|
|
|
5109
5202
|
export interface QInfiniteScrollSlots {
|
|
@@ -5537,6 +5630,11 @@ export interface QIntersectionProps {
|
|
|
5537
5630
|
* One of Quasar's embedded transitions
|
|
5538
5631
|
*/
|
|
5539
5632
|
transition?: string | undefined;
|
|
5633
|
+
/**
|
|
5634
|
+
* Transition duration (in milliseconds, without unit)
|
|
5635
|
+
* Default value: 300
|
|
5636
|
+
*/
|
|
5637
|
+
transitionDuration?: string | number | undefined;
|
|
5540
5638
|
/**
|
|
5541
5639
|
* Disable visibility observable (content will remain as it was, visible or hidden)
|
|
5542
5640
|
*/
|
|
@@ -6406,7 +6504,7 @@ export interface QPageProps {
|
|
|
6406
6504
|
* Override default CSS style applied to the component (sets minHeight); Function(offset: Number) => CSS props/value: Object; For best performance, reference it from your scope and do not define it inline
|
|
6407
6505
|
* Default value: (see source code)
|
|
6408
6506
|
*/
|
|
6409
|
-
styleFn?:
|
|
6507
|
+
styleFn?: ((offset: number, height: number) => LooseDictionary) | undefined;
|
|
6410
6508
|
}
|
|
6411
6509
|
|
|
6412
6510
|
export interface QPageSlots {
|
|
@@ -6506,7 +6604,7 @@ export interface QPaginationProps {
|
|
|
6506
6604
|
/**
|
|
6507
6605
|
* Generate link for page buttons; For best performance, reference it from your scope and do not define it inline
|
|
6508
6606
|
*/
|
|
6509
|
-
toFn?:
|
|
6607
|
+
toFn?: ((page: number) => LooseDictionary | string) | undefined;
|
|
6510
6608
|
/**
|
|
6511
6609
|
* Show boundary button links
|
|
6512
6610
|
*/
|
|
@@ -6671,7 +6769,7 @@ export interface QPopupEditProps {
|
|
|
6671
6769
|
/**
|
|
6672
6770
|
* Validates model then triggers 'save' and closes Popup; Returns a Boolean ('true' means valid, 'false' means abort); Syntax: validate(value); For best performance, reference it from your scope and do not define it inline
|
|
6673
6771
|
*/
|
|
6674
|
-
validate?:
|
|
6772
|
+
validate?: ((value: any) => boolean) | undefined;
|
|
6675
6773
|
/**
|
|
6676
6774
|
* Put component in disabled mode
|
|
6677
6775
|
*/
|
|
@@ -6805,19 +6903,19 @@ export interface QPopupEditSlots {
|
|
|
6805
6903
|
/**
|
|
6806
6904
|
* Function that checks if the value is valid
|
|
6807
6905
|
*/
|
|
6808
|
-
validate:
|
|
6906
|
+
validate: (value: any) => boolean;
|
|
6809
6907
|
/**
|
|
6810
6908
|
* Function that sets the value and closes the popup
|
|
6811
6909
|
*/
|
|
6812
|
-
set:
|
|
6910
|
+
set: () => void;
|
|
6813
6911
|
/**
|
|
6814
6912
|
* Function that cancels the editing and reverts the value to the initialValue
|
|
6815
6913
|
*/
|
|
6816
|
-
cancel:
|
|
6914
|
+
cancel: () => void;
|
|
6817
6915
|
/**
|
|
6818
6916
|
* There are some custom scenarios for which Quasar cannot automatically reposition the component without significant performance drawbacks so the optimal solution is for you to call this method when you need it
|
|
6819
6917
|
*/
|
|
6820
|
-
updatePosition:
|
|
6918
|
+
updatePosition: () => void;
|
|
6821
6919
|
}) => VNode[];
|
|
6822
6920
|
}
|
|
6823
6921
|
|
|
@@ -6950,7 +7048,7 @@ export interface QPullToRefreshProps {
|
|
|
6950
7048
|
* Called whenever a refresh is triggered; at this time, your function should load more data
|
|
6951
7049
|
* @param done Call the done() function when your data has been refreshed
|
|
6952
7050
|
*/
|
|
6953
|
-
onRefresh?: (done:
|
|
7051
|
+
onRefresh?: (done: () => void) => void;
|
|
6954
7052
|
}
|
|
6955
7053
|
|
|
6956
7054
|
export interface QPullToRefreshSlots {
|
|
@@ -7368,7 +7466,7 @@ export interface QScrollAreaProps {
|
|
|
7368
7466
|
tabindex?: number | string | undefined;
|
|
7369
7467
|
/**
|
|
7370
7468
|
* Emitted when scroll information changes (and listener is configured)
|
|
7371
|
-
* @param info
|
|
7469
|
+
* @param info An object containing scroll information
|
|
7372
7470
|
*/
|
|
7373
7471
|
onScroll?: (info: {
|
|
7374
7472
|
/**
|
|
@@ -7431,61 +7529,63 @@ export interface QScrollArea extends ComponentPublicInstance<QScrollAreaProps> {
|
|
|
7431
7529
|
/**
|
|
7432
7530
|
* Vertical scroll position (in px)
|
|
7433
7531
|
*/
|
|
7434
|
-
verticalPosition
|
|
7532
|
+
verticalPosition: number;
|
|
7435
7533
|
/**
|
|
7436
7534
|
* Vertical scroll percentage (0.0 <= x <= 1.0)
|
|
7437
7535
|
*/
|
|
7438
|
-
verticalPercentage
|
|
7536
|
+
verticalPercentage: number;
|
|
7439
7537
|
/**
|
|
7440
7538
|
* Vertical scroll size (in px)
|
|
7441
7539
|
*/
|
|
7442
|
-
verticalSize
|
|
7540
|
+
verticalSize: number;
|
|
7443
7541
|
/**
|
|
7444
7542
|
* Height of the container (in px)
|
|
7445
7543
|
*/
|
|
7446
|
-
verticalContainerSize
|
|
7544
|
+
verticalContainerSize: number;
|
|
7447
7545
|
/**
|
|
7448
7546
|
* Horizontal scroll position (in px)
|
|
7449
7547
|
*/
|
|
7450
|
-
horizontalPosition
|
|
7548
|
+
horizontalPosition: number;
|
|
7451
7549
|
/**
|
|
7452
7550
|
* Horizontal scroll percentage (0.0 <= x <= 1.0)
|
|
7453
7551
|
*/
|
|
7454
|
-
horizontalPercentage
|
|
7552
|
+
horizontalPercentage: number;
|
|
7455
7553
|
/**
|
|
7456
7554
|
* Horizontal scroll size (in px)
|
|
7457
7555
|
*/
|
|
7458
|
-
horizontalSize
|
|
7556
|
+
horizontalSize: number;
|
|
7459
7557
|
/**
|
|
7460
7558
|
* Width of the container (in px)
|
|
7461
7559
|
*/
|
|
7462
|
-
horizontalContainerSize
|
|
7560
|
+
horizontalContainerSize: number;
|
|
7463
7561
|
};
|
|
7464
7562
|
/**
|
|
7465
7563
|
* Get current scroll position
|
|
7564
|
+
* @returns An object containing scroll position information
|
|
7466
7565
|
*/
|
|
7467
7566
|
getScrollPosition: () => {
|
|
7468
7567
|
/**
|
|
7469
7568
|
* Scroll offset from top (vertical)
|
|
7470
7569
|
*/
|
|
7471
|
-
top
|
|
7570
|
+
top: number;
|
|
7472
7571
|
/**
|
|
7473
7572
|
* Scroll offset from left (horizontal)
|
|
7474
7573
|
*/
|
|
7475
|
-
left
|
|
7574
|
+
left: number;
|
|
7476
7575
|
};
|
|
7477
7576
|
/**
|
|
7478
7577
|
* Get current scroll position in percentage (0.0 <= x <= 1.0)
|
|
7578
|
+
* @returns An object containing scroll position information in percentage
|
|
7479
7579
|
*/
|
|
7480
7580
|
getScrollPercentage: () => {
|
|
7481
7581
|
/**
|
|
7482
7582
|
* Scroll percentage (0.0 <= x <= 1.0) offset from top (vertical)
|
|
7483
7583
|
*/
|
|
7484
|
-
top
|
|
7584
|
+
top: number;
|
|
7485
7585
|
/**
|
|
7486
7586
|
* Scroll percentage (0.0 <= x <= 1.0) offset from left (horizontal)
|
|
7487
7587
|
*/
|
|
7488
|
-
left
|
|
7588
|
+
left: number;
|
|
7489
7589
|
};
|
|
7490
7590
|
/**
|
|
7491
7591
|
* Set scroll position to an offset; If a duration (in milliseconds) is specified then the scroll is animated
|
|
@@ -7804,17 +7904,26 @@ export interface QSelectProps {
|
|
|
7804
7904
|
* Property of option which holds the 'value'; If using a function then for best performance, reference it from your scope and do not define it inline
|
|
7805
7905
|
* Default value: value
|
|
7806
7906
|
*/
|
|
7807
|
-
optionValue?:
|
|
7907
|
+
optionValue?:
|
|
7908
|
+
| ((option: string | LooseDictionary) => any)
|
|
7909
|
+
| string
|
|
7910
|
+
| undefined;
|
|
7808
7911
|
/**
|
|
7809
7912
|
* Property of option which holds the 'label'; If using a function then for best performance, reference it from your scope and do not define it inline
|
|
7810
7913
|
* Default value: label
|
|
7811
7914
|
*/
|
|
7812
|
-
optionLabel?:
|
|
7915
|
+
optionLabel?:
|
|
7916
|
+
| ((option: string | LooseDictionary) => string)
|
|
7917
|
+
| string
|
|
7918
|
+
| undefined;
|
|
7813
7919
|
/**
|
|
7814
7920
|
* Property of option which tells it's disabled; The value of the property must be a Boolean; If using a function then for best performance, reference it from your scope and do not define it inline
|
|
7815
7921
|
* Default value: disable
|
|
7816
7922
|
*/
|
|
7817
|
-
optionDisable?:
|
|
7923
|
+
optionDisable?:
|
|
7924
|
+
| ((option: string | LooseDictionary) => boolean)
|
|
7925
|
+
| string
|
|
7926
|
+
| undefined;
|
|
7818
7927
|
/**
|
|
7819
7928
|
* Hides selection; Use the underlying input tag to hold the label (instead of showing it to the right of the input) of the selected option; Only works for non 'multiple' Selects
|
|
7820
7929
|
*/
|
|
@@ -8047,14 +8156,24 @@ export interface QSelectProps {
|
|
|
8047
8156
|
* @param inputValue What the user typed
|
|
8048
8157
|
* @param doneFn Adds (optional) value to the model; Do not forget to call it after you validate the newly created value; Call it with no parameters if nothing should be added
|
|
8049
8158
|
*/
|
|
8050
|
-
onNewValue?: (
|
|
8159
|
+
onNewValue?: (
|
|
8160
|
+
inputValue: string,
|
|
8161
|
+
doneFn: (item: any, mode: "add" | "add-unique" | "toggle") => void
|
|
8162
|
+
) => void;
|
|
8051
8163
|
/**
|
|
8052
8164
|
* Emitted when user wants to filter a value
|
|
8053
8165
|
* @param inputValue What the user typed
|
|
8054
8166
|
* @param doneFn Supply a function which makes the necessary updates
|
|
8055
8167
|
* @param abortFn Call this function if something went wrong
|
|
8056
8168
|
*/
|
|
8057
|
-
onFilter?: (
|
|
8169
|
+
onFilter?: (
|
|
8170
|
+
inputValue: string,
|
|
8171
|
+
doneFn: (
|
|
8172
|
+
callbackFn: () => void,
|
|
8173
|
+
afterFn: (ref: LooseDictionary) => void
|
|
8174
|
+
) => void,
|
|
8175
|
+
abortFn: () => void
|
|
8176
|
+
) => void;
|
|
8058
8177
|
/**
|
|
8059
8178
|
* Emitted when a filtering was aborted; Probably a new one was requested?
|
|
8060
8179
|
*/
|
|
@@ -8154,11 +8273,11 @@ export interface QSelectSlots {
|
|
|
8154
8273
|
/**
|
|
8155
8274
|
* Remove selected option located at specific index
|
|
8156
8275
|
*/
|
|
8157
|
-
removeAtIndex:
|
|
8276
|
+
removeAtIndex: (index: number) => void;
|
|
8158
8277
|
/**
|
|
8159
8278
|
* Add/remove option from model
|
|
8160
8279
|
*/
|
|
8161
|
-
toggleOption:
|
|
8280
|
+
toggleOption: (opt: any) => void;
|
|
8162
8281
|
/**
|
|
8163
8282
|
* Tabindex HTML attribute value associated with respective option
|
|
8164
8283
|
*/
|
|
@@ -8188,11 +8307,11 @@ export interface QSelectSlots {
|
|
|
8188
8307
|
/**
|
|
8189
8308
|
* Add/remove option from model
|
|
8190
8309
|
*/
|
|
8191
|
-
toggleOption:
|
|
8310
|
+
toggleOption: (opt: any) => void;
|
|
8192
8311
|
/**
|
|
8193
8312
|
* Sets option from menu as 'focused'
|
|
8194
8313
|
*/
|
|
8195
|
-
setOptionIndex:
|
|
8314
|
+
setOptionIndex: (index: number) => void;
|
|
8196
8315
|
/**
|
|
8197
8316
|
* Computed properties passed down to QItem
|
|
8198
8317
|
*/
|
|
@@ -8466,7 +8585,7 @@ export interface QSlideItemProps {
|
|
|
8466
8585
|
/**
|
|
8467
8586
|
* When called, it resets the component to its initial non-slided state
|
|
8468
8587
|
*/
|
|
8469
|
-
reset:
|
|
8588
|
+
reset: () => void;
|
|
8470
8589
|
}) => void;
|
|
8471
8590
|
/**
|
|
8472
8591
|
* Emitted when user finished sliding the item to the right
|
|
@@ -8476,7 +8595,7 @@ export interface QSlideItemProps {
|
|
|
8476
8595
|
/**
|
|
8477
8596
|
* When called, it resets the component to its initial non-slided state
|
|
8478
8597
|
*/
|
|
8479
|
-
reset:
|
|
8598
|
+
reset: () => void;
|
|
8480
8599
|
}) => void;
|
|
8481
8600
|
/**
|
|
8482
8601
|
* Emitted when user finished sliding the item up
|
|
@@ -8486,7 +8605,7 @@ export interface QSlideItemProps {
|
|
|
8486
8605
|
/**
|
|
8487
8606
|
* When called, it resets the component to its initial non-slided state
|
|
8488
8607
|
*/
|
|
8489
|
-
reset:
|
|
8608
|
+
reset: () => void;
|
|
8490
8609
|
}) => void;
|
|
8491
8610
|
/**
|
|
8492
8611
|
* Emitted when user finished sliding the item down
|
|
@@ -8496,7 +8615,7 @@ export interface QSlideItemProps {
|
|
|
8496
8615
|
/**
|
|
8497
8616
|
* When called, it resets the component to its initial non-slided state
|
|
8498
8617
|
*/
|
|
8499
|
-
reset:
|
|
8618
|
+
reset: () => void;
|
|
8500
8619
|
}) => void;
|
|
8501
8620
|
/**
|
|
8502
8621
|
* Emitted while user is sliding the item to one of the available sides
|
|
@@ -8528,7 +8647,7 @@ export interface QSlideItemProps {
|
|
|
8528
8647
|
/**
|
|
8529
8648
|
* When called, it resets the component to its initial non-slided state
|
|
8530
8649
|
*/
|
|
8531
|
-
reset:
|
|
8650
|
+
reset: () => void;
|
|
8532
8651
|
}) => void;
|
|
8533
8652
|
}
|
|
8534
8653
|
|
|
@@ -9550,7 +9669,7 @@ export interface QTableProps {
|
|
|
9550
9669
|
* Property of each row that defines the unique key of each row (the result must be a primitive, not Object, Array, etc); The value of property must be string or a function taking a row and returning the desired (nested) key in the row; If supplying a function then for best performance, reference it from your scope and do not define it inline
|
|
9551
9670
|
* Default value: id
|
|
9552
9671
|
*/
|
|
9553
|
-
rowKey?: string |
|
|
9672
|
+
rowKey?: string | ((row: LooseDictionary) => any) | undefined;
|
|
9554
9673
|
/**
|
|
9555
9674
|
* Display data using QVirtualScroll (for non-grid mode only)
|
|
9556
9675
|
*/
|
|
@@ -9638,7 +9757,7 @@ export interface QTableProps {
|
|
|
9638
9757
|
/**
|
|
9639
9758
|
* Row Object property to determine value for this column or function which maps to the required property
|
|
9640
9759
|
*/
|
|
9641
|
-
field: string |
|
|
9760
|
+
field: string | ((row: LooseDictionary) => any);
|
|
9642
9761
|
/**
|
|
9643
9762
|
* If we use visible-columns, this col will always be visible
|
|
9644
9763
|
*/
|
|
@@ -9655,7 +9774,12 @@ export interface QTableProps {
|
|
|
9655
9774
|
/**
|
|
9656
9775
|
* Compare function if you have some custom data or want a specific way to compare two rows
|
|
9657
9776
|
*/
|
|
9658
|
-
sort?:
|
|
9777
|
+
sort?: (
|
|
9778
|
+
a: any,
|
|
9779
|
+
b: any,
|
|
9780
|
+
rowA: LooseDictionary,
|
|
9781
|
+
rowB: LooseDictionary
|
|
9782
|
+
) => number;
|
|
9659
9783
|
/**
|
|
9660
9784
|
* Set column sort order: 'ad' (ascending-descending) or 'da' (descending-ascending); Overrides the 'column-sort-order' prop
|
|
9661
9785
|
* Default value: ad
|
|
@@ -9664,15 +9788,15 @@ export interface QTableProps {
|
|
|
9664
9788
|
/**
|
|
9665
9789
|
* Function you can apply to format your data
|
|
9666
9790
|
*/
|
|
9667
|
-
format?:
|
|
9791
|
+
format?: (val: any, row: LooseDictionary) => any;
|
|
9668
9792
|
/**
|
|
9669
9793
|
* Style to apply on normal cells of the column
|
|
9670
9794
|
*/
|
|
9671
|
-
style?: string |
|
|
9795
|
+
style?: string | ((row: LooseDictionary) => string);
|
|
9672
9796
|
/**
|
|
9673
9797
|
* Classes to add on normal cells of the column
|
|
9674
9798
|
*/
|
|
9675
|
-
classes?: string |
|
|
9799
|
+
classes?: string | ((row: LooseDictionary) => string);
|
|
9676
9800
|
/**
|
|
9677
9801
|
* Style to apply on header cells of the column
|
|
9678
9802
|
*/
|
|
@@ -9764,7 +9888,7 @@ export interface QTableProps {
|
|
|
9764
9888
|
/**
|
|
9765
9889
|
* Text to display when user selected at least one row; For best performance, reference it from your scope and do not define it inline
|
|
9766
9890
|
*/
|
|
9767
|
-
selectedRowsLabel?:
|
|
9891
|
+
selectedRowsLabel?: ((numberOfRows: number) => string) | undefined;
|
|
9768
9892
|
/**
|
|
9769
9893
|
* Text to override default rows per page label at bottom of table
|
|
9770
9894
|
*/
|
|
@@ -9772,7 +9896,13 @@ export interface QTableProps {
|
|
|
9772
9896
|
/**
|
|
9773
9897
|
* Text to override default pagination label at bottom of table (unless 'pagination' scoped slot is used); For best performance, reference it from your scope and do not define it inline
|
|
9774
9898
|
*/
|
|
9775
|
-
paginationLabel?:
|
|
9899
|
+
paginationLabel?:
|
|
9900
|
+
| ((
|
|
9901
|
+
firstRowIndex: number,
|
|
9902
|
+
endRowIndex: number,
|
|
9903
|
+
totalRowsNumber: number
|
|
9904
|
+
) => string)
|
|
9905
|
+
| undefined;
|
|
9776
9906
|
/**
|
|
9777
9907
|
* CSS style to apply to native HTML <table> element's wrapper (which is a DIV)
|
|
9778
9908
|
*/
|
|
@@ -9817,7 +9947,14 @@ export interface QTableProps {
|
|
|
9817
9947
|
* The actual filtering mechanism; For best performance, reference it from your scope and do not define it inline
|
|
9818
9948
|
* Default value: (see source code)
|
|
9819
9949
|
*/
|
|
9820
|
-
filterMethod?:
|
|
9950
|
+
filterMethod?:
|
|
9951
|
+
| ((
|
|
9952
|
+
rows: any[],
|
|
9953
|
+
terms: string | LooseDictionary,
|
|
9954
|
+
cols: any[],
|
|
9955
|
+
getCellValue: (col: LooseDictionary, row: LooseDictionary) => any
|
|
9956
|
+
) => any[])
|
|
9957
|
+
| undefined;
|
|
9821
9958
|
/**
|
|
9822
9959
|
* Pagination object; You can also use the 'v-model:pagination' for synching; When not synching it simply initializes the pagination on first render
|
|
9823
9960
|
*/
|
|
@@ -9869,7 +10006,9 @@ export interface QTableProps {
|
|
|
9869
10006
|
* The actual sort mechanism. Function (rows, sortBy, descending) => sorted rows; For best performance, reference it from your scope and do not define it inline
|
|
9870
10007
|
* Default value: (see source code)
|
|
9871
10008
|
*/
|
|
9872
|
-
sortMethod?:
|
|
10009
|
+
sortMethod?:
|
|
10010
|
+
| ((rows: any[], sortBy: string, descending: boolean) => any[])
|
|
10011
|
+
| undefined;
|
|
9873
10012
|
/**
|
|
9874
10013
|
* Emitted when user clicks/taps on a row; Is not emitted when using body/row/item scoped slots
|
|
9875
10014
|
* @param evt JS event object
|
|
@@ -9932,11 +10071,16 @@ export interface QTableProps {
|
|
|
9932
10071
|
/**
|
|
9933
10072
|
* Filter method (the 'filter-method' prop)
|
|
9934
10073
|
*/
|
|
9935
|
-
filter:
|
|
10074
|
+
filter: (
|
|
10075
|
+
rows: any[],
|
|
10076
|
+
terms: string | LooseDictionary,
|
|
10077
|
+
cols: any[],
|
|
10078
|
+
getCellValue: (col: LooseDictionary, row: LooseDictionary) => any
|
|
10079
|
+
) => any[];
|
|
9936
10080
|
/**
|
|
9937
10081
|
* Optional function to get a cell value
|
|
9938
10082
|
*/
|
|
9939
|
-
getCellValue:
|
|
10083
|
+
getCellValue: (col: LooseDictionary, row: LooseDictionary) => any;
|
|
9940
10084
|
}) => void;
|
|
9941
10085
|
/**
|
|
9942
10086
|
* Emitted when user selects/unselects row(s)
|
|
@@ -10053,7 +10197,7 @@ export interface QTableSlots {
|
|
|
10053
10197
|
/**
|
|
10054
10198
|
* Trigger a table sort
|
|
10055
10199
|
*/
|
|
10056
|
-
sort:
|
|
10200
|
+
sort: (col: string | LooseDictionary) => void;
|
|
10057
10201
|
/**
|
|
10058
10202
|
* (Only if using selection) Is row/item selected? Can directly be assigned new Boolean value which changes selection state
|
|
10059
10203
|
*/
|
|
@@ -10108,7 +10252,7 @@ export interface QTableSlots {
|
|
|
10108
10252
|
/**
|
|
10109
10253
|
* Trigger a table sort
|
|
10110
10254
|
*/
|
|
10111
|
-
sort:
|
|
10255
|
+
sort: (col: string | LooseDictionary) => void;
|
|
10112
10256
|
/**
|
|
10113
10257
|
* (Only if using selection) Is row selected? Can directly be assigned new Boolean value which changes selection state
|
|
10114
10258
|
*/
|
|
@@ -10175,7 +10319,7 @@ export interface QTableSlots {
|
|
|
10175
10319
|
/**
|
|
10176
10320
|
* Trigger a table sort
|
|
10177
10321
|
*/
|
|
10178
|
-
sort:
|
|
10322
|
+
sort: (col: string | LooseDictionary) => void;
|
|
10179
10323
|
/**
|
|
10180
10324
|
* (Only if using selection) Is row selected? Can directly be assigned new Boolean value which changes selection state
|
|
10181
10325
|
*/
|
|
@@ -10238,7 +10382,7 @@ export interface QTableSlots {
|
|
|
10238
10382
|
/**
|
|
10239
10383
|
* Trigger a table sort
|
|
10240
10384
|
*/
|
|
10241
|
-
sort:
|
|
10385
|
+
sort: (col: string | LooseDictionary) => void;
|
|
10242
10386
|
/**
|
|
10243
10387
|
* (Only if using selection) Is row selected? Can directly be assigned new Boolean value which changes selection state
|
|
10244
10388
|
*/
|
|
@@ -10277,7 +10421,7 @@ export interface QTableSlots {
|
|
|
10277
10421
|
/**
|
|
10278
10422
|
* Trigger a table sort
|
|
10279
10423
|
*/
|
|
10280
|
-
sort:
|
|
10424
|
+
sort: (col: string | LooseDictionary) => void;
|
|
10281
10425
|
/**
|
|
10282
10426
|
* (Only if using selection) Is row selected? Can directly be assigned new Boolean value which changes selection state
|
|
10283
10427
|
*/
|
|
@@ -10328,7 +10472,7 @@ export interface QTableSlots {
|
|
|
10328
10472
|
/**
|
|
10329
10473
|
* Trigger a table sort
|
|
10330
10474
|
*/
|
|
10331
|
-
sort:
|
|
10475
|
+
sort: (col: string | LooseDictionary) => void;
|
|
10332
10476
|
/**
|
|
10333
10477
|
* (Only if using selection) Is row selected? Can directly be assigned new Boolean value which changes selection state
|
|
10334
10478
|
*/
|
|
@@ -10371,7 +10515,7 @@ export interface QTableSlots {
|
|
|
10371
10515
|
/**
|
|
10372
10516
|
* Trigger a table sort
|
|
10373
10517
|
*/
|
|
10374
|
-
sort:
|
|
10518
|
+
sort: (col: string | LooseDictionary) => void;
|
|
10375
10519
|
/**
|
|
10376
10520
|
* (Only if using selection) Is row selected? Can directly be assigned new Boolean value which changes selection state
|
|
10377
10521
|
*/
|
|
@@ -10426,7 +10570,7 @@ export interface QTableSlots {
|
|
|
10426
10570
|
/**
|
|
10427
10571
|
* Trigger a table sort
|
|
10428
10572
|
*/
|
|
10429
|
-
sort:
|
|
10573
|
+
sort: (col: string | LooseDictionary) => void;
|
|
10430
10574
|
/**
|
|
10431
10575
|
* (Only if using selection) Is row selected? Can directly be assigned new Boolean value which changes selection state
|
|
10432
10576
|
*/
|
|
@@ -10465,7 +10609,7 @@ export interface QTableSlots {
|
|
|
10465
10609
|
/**
|
|
10466
10610
|
* Trigger a table sort
|
|
10467
10611
|
*/
|
|
10468
|
-
sort:
|
|
10612
|
+
sort: (col: string | LooseDictionary) => void;
|
|
10469
10613
|
/**
|
|
10470
10614
|
* (Only if using selection) Is row selected? Can directly be assigned new Boolean value which changes selection state
|
|
10471
10615
|
*/
|
|
@@ -10549,19 +10693,19 @@ export interface QTableSlots {
|
|
|
10549
10693
|
/**
|
|
10550
10694
|
* Navigates to first page
|
|
10551
10695
|
*/
|
|
10552
|
-
firstPage:
|
|
10696
|
+
firstPage: () => void;
|
|
10553
10697
|
/**
|
|
10554
10698
|
* Navigates to previous page, if available
|
|
10555
10699
|
*/
|
|
10556
|
-
prevPage:
|
|
10700
|
+
prevPage: () => void;
|
|
10557
10701
|
/**
|
|
10558
10702
|
* Navigates to next page, if available
|
|
10559
10703
|
*/
|
|
10560
|
-
nextPage:
|
|
10704
|
+
nextPage: () => void;
|
|
10561
10705
|
/**
|
|
10562
10706
|
* Navigates to last page
|
|
10563
10707
|
*/
|
|
10564
|
-
lastPage:
|
|
10708
|
+
lastPage: () => void;
|
|
10565
10709
|
/**
|
|
10566
10710
|
* Is table in fullscreen mode?
|
|
10567
10711
|
*/
|
|
@@ -10569,7 +10713,7 @@ export interface QTableSlots {
|
|
|
10569
10713
|
/**
|
|
10570
10714
|
* Toggles fullscreen mode
|
|
10571
10715
|
*/
|
|
10572
|
-
toggleFullscreen:
|
|
10716
|
+
toggleFullscreen: () => void;
|
|
10573
10717
|
}) => VNode[];
|
|
10574
10718
|
/**
|
|
10575
10719
|
* Slot to define how table bottom looks like
|
|
@@ -10612,19 +10756,19 @@ export interface QTableSlots {
|
|
|
10612
10756
|
/**
|
|
10613
10757
|
* Navigates to first page
|
|
10614
10758
|
*/
|
|
10615
|
-
firstPage:
|
|
10759
|
+
firstPage: () => void;
|
|
10616
10760
|
/**
|
|
10617
10761
|
* Navigates to previous page, if available
|
|
10618
10762
|
*/
|
|
10619
|
-
prevPage:
|
|
10763
|
+
prevPage: () => void;
|
|
10620
10764
|
/**
|
|
10621
10765
|
* Navigates to next page, if available
|
|
10622
10766
|
*/
|
|
10623
|
-
nextPage:
|
|
10767
|
+
nextPage: () => void;
|
|
10624
10768
|
/**
|
|
10625
10769
|
* Navigates to last page
|
|
10626
10770
|
*/
|
|
10627
|
-
lastPage:
|
|
10771
|
+
lastPage: () => void;
|
|
10628
10772
|
/**
|
|
10629
10773
|
* Is table in fullscreen mode?
|
|
10630
10774
|
*/
|
|
@@ -10632,7 +10776,7 @@ export interface QTableSlots {
|
|
|
10632
10776
|
/**
|
|
10633
10777
|
* Toggles fullscreen mode
|
|
10634
10778
|
*/
|
|
10635
|
-
toggleFullscreen:
|
|
10779
|
+
toggleFullscreen: () => void;
|
|
10636
10780
|
}) => VNode[];
|
|
10637
10781
|
/**
|
|
10638
10782
|
* Slot to override default pagination label and buttons
|
|
@@ -10675,19 +10819,19 @@ export interface QTableSlots {
|
|
|
10675
10819
|
/**
|
|
10676
10820
|
* Navigates to first page
|
|
10677
10821
|
*/
|
|
10678
|
-
firstPage:
|
|
10822
|
+
firstPage: () => void;
|
|
10679
10823
|
/**
|
|
10680
10824
|
* Navigates to previous page, if available
|
|
10681
10825
|
*/
|
|
10682
|
-
prevPage:
|
|
10826
|
+
prevPage: () => void;
|
|
10683
10827
|
/**
|
|
10684
10828
|
* Navigates to next page, if available
|
|
10685
10829
|
*/
|
|
10686
|
-
nextPage:
|
|
10830
|
+
nextPage: () => void;
|
|
10687
10831
|
/**
|
|
10688
10832
|
* Navigates to last page
|
|
10689
10833
|
*/
|
|
10690
|
-
lastPage:
|
|
10834
|
+
lastPage: () => void;
|
|
10691
10835
|
/**
|
|
10692
10836
|
* Is table in fullscreen mode?
|
|
10693
10837
|
*/
|
|
@@ -10695,7 +10839,7 @@ export interface QTableSlots {
|
|
|
10695
10839
|
/**
|
|
10696
10840
|
* Toggles fullscreen mode
|
|
10697
10841
|
*/
|
|
10698
|
-
toggleFullscreen:
|
|
10842
|
+
toggleFullscreen: () => void;
|
|
10699
10843
|
}) => VNode[];
|
|
10700
10844
|
/**
|
|
10701
10845
|
* Slot to define how left part of the table top looks like
|
|
@@ -10738,19 +10882,19 @@ export interface QTableSlots {
|
|
|
10738
10882
|
/**
|
|
10739
10883
|
* Navigates to first page
|
|
10740
10884
|
*/
|
|
10741
|
-
firstPage:
|
|
10885
|
+
firstPage: () => void;
|
|
10742
10886
|
/**
|
|
10743
10887
|
* Navigates to previous page, if available
|
|
10744
10888
|
*/
|
|
10745
|
-
prevPage:
|
|
10889
|
+
prevPage: () => void;
|
|
10746
10890
|
/**
|
|
10747
10891
|
* Navigates to next page, if available
|
|
10748
10892
|
*/
|
|
10749
|
-
nextPage:
|
|
10893
|
+
nextPage: () => void;
|
|
10750
10894
|
/**
|
|
10751
10895
|
* Navigates to last page
|
|
10752
10896
|
*/
|
|
10753
|
-
lastPage:
|
|
10897
|
+
lastPage: () => void;
|
|
10754
10898
|
/**
|
|
10755
10899
|
* Is table in fullscreen mode?
|
|
10756
10900
|
*/
|
|
@@ -10758,7 +10902,7 @@ export interface QTableSlots {
|
|
|
10758
10902
|
/**
|
|
10759
10903
|
* Toggles fullscreen mode
|
|
10760
10904
|
*/
|
|
10761
|
-
toggleFullscreen:
|
|
10905
|
+
toggleFullscreen: () => void;
|
|
10762
10906
|
}) => VNode[];
|
|
10763
10907
|
/**
|
|
10764
10908
|
* Slot to define how right part of the table top looks like
|
|
@@ -10801,19 +10945,19 @@ export interface QTableSlots {
|
|
|
10801
10945
|
/**
|
|
10802
10946
|
* Navigates to first page
|
|
10803
10947
|
*/
|
|
10804
|
-
firstPage:
|
|
10948
|
+
firstPage: () => void;
|
|
10805
10949
|
/**
|
|
10806
10950
|
* Navigates to previous page, if available
|
|
10807
10951
|
*/
|
|
10808
|
-
prevPage:
|
|
10952
|
+
prevPage: () => void;
|
|
10809
10953
|
/**
|
|
10810
10954
|
* Navigates to next page, if available
|
|
10811
10955
|
*/
|
|
10812
|
-
nextPage:
|
|
10956
|
+
nextPage: () => void;
|
|
10813
10957
|
/**
|
|
10814
10958
|
* Navigates to last page
|
|
10815
10959
|
*/
|
|
10816
|
-
lastPage:
|
|
10960
|
+
lastPage: () => void;
|
|
10817
10961
|
/**
|
|
10818
10962
|
* Is table in fullscreen mode?
|
|
10819
10963
|
*/
|
|
@@ -10821,7 +10965,7 @@ export interface QTableSlots {
|
|
|
10821
10965
|
/**
|
|
10822
10966
|
* Toggles fullscreen mode
|
|
10823
10967
|
*/
|
|
10824
|
-
toggleFullscreen:
|
|
10968
|
+
toggleFullscreen: () => void;
|
|
10825
10969
|
}) => VNode[];
|
|
10826
10970
|
/**
|
|
10827
10971
|
* Slot to define how top table section looks like when user has selected at least one row
|
|
@@ -10864,19 +11008,19 @@ export interface QTableSlots {
|
|
|
10864
11008
|
/**
|
|
10865
11009
|
* Navigates to first page
|
|
10866
11010
|
*/
|
|
10867
|
-
firstPage:
|
|
11011
|
+
firstPage: () => void;
|
|
10868
11012
|
/**
|
|
10869
11013
|
* Navigates to previous page, if available
|
|
10870
11014
|
*/
|
|
10871
|
-
prevPage:
|
|
11015
|
+
prevPage: () => void;
|
|
10872
11016
|
/**
|
|
10873
11017
|
* Navigates to next page, if available
|
|
10874
11018
|
*/
|
|
10875
|
-
nextPage:
|
|
11019
|
+
nextPage: () => void;
|
|
10876
11020
|
/**
|
|
10877
11021
|
* Navigates to last page
|
|
10878
11022
|
*/
|
|
10879
|
-
lastPage:
|
|
11023
|
+
lastPage: () => void;
|
|
10880
11024
|
/**
|
|
10881
11025
|
* Is table in fullscreen mode?
|
|
10882
11026
|
*/
|
|
@@ -10884,7 +11028,7 @@ export interface QTableSlots {
|
|
|
10884
11028
|
/**
|
|
10885
11029
|
* Toggles fullscreen mode
|
|
10886
11030
|
*/
|
|
10887
|
-
toggleFullscreen:
|
|
11031
|
+
toggleFullscreen: () => void;
|
|
10888
11032
|
}) => VNode[];
|
|
10889
11033
|
/**
|
|
10890
11034
|
* Slot to define how the bottom will look like when is nothing to display
|
|
@@ -10944,7 +11088,12 @@ export interface QTable extends ComponentPublicInstance<QTableProps> {
|
|
|
10944
11088
|
/**
|
|
10945
11089
|
* Filtering method (the 'filter-method' prop)
|
|
10946
11090
|
*/
|
|
10947
|
-
filter?:
|
|
11091
|
+
filter?: (
|
|
11092
|
+
rows: any[],
|
|
11093
|
+
terms: string | LooseDictionary,
|
|
11094
|
+
cols: any[],
|
|
11095
|
+
getCellValue: (col: LooseDictionary, row: LooseDictionary) => any
|
|
11096
|
+
) => any[];
|
|
10948
11097
|
}) => void;
|
|
10949
11098
|
/**
|
|
10950
11099
|
* Unless using an external pagination Object (through 'v-model:pagination' prop), you can use this method and force the internal pagination to change
|
|
@@ -11167,7 +11316,7 @@ export interface QRouteTabProps {
|
|
|
11167
11316
|
* @param evt JS event object; If you want to cancel navigation set synchronously 'evt.navigate' to false
|
|
11168
11317
|
* @param navigateFn When you need to control the time at which the tab should trigger the route navigation then set 'evt.navigate' to false and call this function; Useful if you have async work to be done before the actual route navigation
|
|
11169
11318
|
*/
|
|
11170
|
-
onClick?: (evt: LooseDictionary, navigateFn:
|
|
11319
|
+
onClick?: (evt: LooseDictionary, navigateFn: () => void) => void;
|
|
11171
11320
|
}
|
|
11172
11321
|
|
|
11173
11322
|
export interface QRouteTabSlots {
|
|
@@ -11423,7 +11572,7 @@ export interface QTimeProps {
|
|
|
11423
11572
|
/**
|
|
11424
11573
|
* Optionally configure what time is the user allowed to set; Overridden by 'hour-options', 'minute-options' and 'second-options' if those are set; For best performance, reference it from your scope and do not define it inline
|
|
11425
11574
|
*/
|
|
11426
|
-
options?:
|
|
11575
|
+
options?: ((hr: number, min: number, sec: number) => void) | undefined;
|
|
11427
11576
|
/**
|
|
11428
11577
|
* Optionally configure what hours is the user allowed to set; Overrides 'options' prop if that is also set
|
|
11429
11578
|
*/
|
|
@@ -11973,7 +12122,9 @@ export interface QTreeProps {
|
|
|
11973
12122
|
* The function to use to filter the tree nodes; For best performance, reference it from your scope and do not define it inline
|
|
11974
12123
|
* Default value: (see source code)
|
|
11975
12124
|
*/
|
|
11976
|
-
filterMethod?:
|
|
12125
|
+
filterMethod?:
|
|
12126
|
+
| ((node: LooseDictionary, filter: string) => boolean)
|
|
12127
|
+
| undefined;
|
|
11977
12128
|
/**
|
|
11978
12129
|
* Toggle animation duration (in milliseconds)
|
|
11979
12130
|
* Default value: 300
|
|
@@ -12008,11 +12159,11 @@ export interface QTreeProps {
|
|
|
12008
12159
|
/**
|
|
12009
12160
|
* The callback to be carried out when the loading is successful
|
|
12010
12161
|
*/
|
|
12011
|
-
done:
|
|
12162
|
+
done: (children: any[]) => void;
|
|
12012
12163
|
/**
|
|
12013
12164
|
* The callback to be carried out should the loading fails
|
|
12014
12165
|
*/
|
|
12015
|
-
fail:
|
|
12166
|
+
fail: () => void;
|
|
12016
12167
|
}) => void;
|
|
12017
12168
|
/**
|
|
12018
12169
|
* Emitted when nodes are ticked/unticked via the checkbox; Used by Vue on 'v-model:ticked' to update its value
|
|
@@ -12228,21 +12379,21 @@ export interface QUploaderProps {
|
|
|
12228
12379
|
/**
|
|
12229
12380
|
* Function which should return an Object or a Promise resolving with an Object; For best performance, reference it from your scope and do not define it inline
|
|
12230
12381
|
*/
|
|
12231
|
-
factory?:
|
|
12382
|
+
factory?: ((files: any[]) => LooseDictionary | Promise<any>) | undefined;
|
|
12232
12383
|
/**
|
|
12233
12384
|
* URL or path to the server which handles the upload. Takes String or factory function, which returns String. Function is called right before upload; If using a function then for best performance, reference it from your scope and do not define it inline
|
|
12234
12385
|
*/
|
|
12235
|
-
url?: string |
|
|
12386
|
+
url?: string | ((files: any[]) => string) | undefined;
|
|
12236
12387
|
/**
|
|
12237
12388
|
* HTTP method to use for upload; Takes String or factory function which returns a String; Function is called right before upload; If using a function then for best performance, reference it from your scope and do not define it inline
|
|
12238
12389
|
* Default value: POST
|
|
12239
12390
|
*/
|
|
12240
|
-
method?: "POST" | "PUT" |
|
|
12391
|
+
method?: "POST" | "PUT" | ((files: any[]) => string) | undefined;
|
|
12241
12392
|
/**
|
|
12242
12393
|
* Field name for each file upload; This goes into the following header: 'Content-Disposition: form-data; name="__HERE__"; filename="somefile.png"; If using a function then for best performance, reference it from your scope and do not define it inline
|
|
12243
12394
|
* Default value: (file) => file.name
|
|
12244
12395
|
*/
|
|
12245
|
-
fieldName?: string |
|
|
12396
|
+
fieldName?: string | ((files: File) => string) | undefined;
|
|
12246
12397
|
/**
|
|
12247
12398
|
* Array or a factory function which returns an array; Array consists of objects with header definitions; Function is called right before upload; If using a function then for best performance, reference it from your scope and do not define it inline
|
|
12248
12399
|
*/
|
|
@@ -12257,7 +12408,7 @@ export interface QUploaderProps {
|
|
|
12257
12408
|
*/
|
|
12258
12409
|
value: string;
|
|
12259
12410
|
}[]
|
|
12260
|
-
|
|
|
12411
|
+
| ((files: any[]) => string)
|
|
12261
12412
|
| undefined;
|
|
12262
12413
|
/**
|
|
12263
12414
|
* Array or a factory function which returns an array; Array consists of objects with additional fields definitions (used by Form to be uploaded); Function is called right before upload; If using a function then for best performance, reference it from your scope and do not define it inline
|
|
@@ -12273,20 +12424,20 @@ export interface QUploaderProps {
|
|
|
12273
12424
|
*/
|
|
12274
12425
|
value: string;
|
|
12275
12426
|
}[]
|
|
12276
|
-
|
|
|
12427
|
+
| ((files: any[]) => string)
|
|
12277
12428
|
| undefined;
|
|
12278
12429
|
/**
|
|
12279
12430
|
* Sets withCredentials to true on the XHR that manages the upload; Takes boolean or factory function for Boolean; Function is called right before upload; If using a function then for best performance, reference it from your scope and do not define it inline
|
|
12280
12431
|
*/
|
|
12281
|
-
withCredentials?: boolean |
|
|
12432
|
+
withCredentials?: boolean | ((files: any[]) => boolean) | undefined;
|
|
12282
12433
|
/**
|
|
12283
12434
|
* Send raw files without wrapping into a Form(); Takes boolean or factory function for Boolean; Function is called right before upload; If using a function then for best performance, reference it from your scope and do not define it inline
|
|
12284
12435
|
*/
|
|
12285
|
-
sendRaw?: boolean |
|
|
12436
|
+
sendRaw?: boolean | ((files: any[]) => boolean) | undefined;
|
|
12286
12437
|
/**
|
|
12287
12438
|
* Upload files in batch (in one XHR request); Takes boolean or factory function for Boolean; Function is called right before upload; If using a function then for best performance, reference it from your scope and do not define it inline
|
|
12288
12439
|
*/
|
|
12289
|
-
batch?: boolean |
|
|
12440
|
+
batch?: boolean | ((files: any[]) => boolean) | undefined;
|
|
12290
12441
|
/**
|
|
12291
12442
|
* Allow multiple file uploads
|
|
12292
12443
|
*/
|
|
@@ -12314,7 +12465,7 @@ export interface QUploaderProps {
|
|
|
12314
12465
|
/**
|
|
12315
12466
|
* Custom filter for added files; Only files that pass this filter will be added to the queue and uploaded; For best performance, reference it from your scope and do not define it inline
|
|
12316
12467
|
*/
|
|
12317
|
-
filter?:
|
|
12468
|
+
filter?: ((files: FileList | any[]) => any[]) | undefined;
|
|
12318
12469
|
/**
|
|
12319
12470
|
* Label for the uploader
|
|
12320
12471
|
*/
|
|
@@ -12564,7 +12715,7 @@ export interface QVirtualScrollProps {
|
|
|
12564
12715
|
/**
|
|
12565
12716
|
* Function to return the scope for the items to be displayed; Should return an array for items starting from 'from' index for size length; For best performance, reference it from your scope and do not define it inline
|
|
12566
12717
|
*/
|
|
12567
|
-
itemsFn?:
|
|
12718
|
+
itemsFn?: ((from: number, size: number) => any[]) | undefined;
|
|
12568
12719
|
/**
|
|
12569
12720
|
* CSS selector or DOM element to be used as a custom scroll container instead of the auto detected one
|
|
12570
12721
|
*/
|
|
@@ -12656,19 +12807,19 @@ export interface DialogChainObject {
|
|
|
12656
12807
|
* @param callbackFn Tell what to do
|
|
12657
12808
|
* @returns Chained Object
|
|
12658
12809
|
*/
|
|
12659
|
-
onOk: (callbackFn:
|
|
12810
|
+
onOk: (callbackFn: (payload: any) => void) => DialogChainObject;
|
|
12660
12811
|
/**
|
|
12661
12812
|
* Receives a Function as param to tell what to do when Cancel is pressed / dialog is dismissed
|
|
12662
12813
|
* @param callbackFn Tell what to do
|
|
12663
12814
|
* @returns Chained Object
|
|
12664
12815
|
*/
|
|
12665
|
-
onCancel: (callbackFn:
|
|
12816
|
+
onCancel: (callbackFn: () => void) => DialogChainObject;
|
|
12666
12817
|
/**
|
|
12667
12818
|
* Receives a Function param to tell what to do when the dialog is closed
|
|
12668
12819
|
* @param callbackFn Tell what to do
|
|
12669
12820
|
* @returns Chained Object
|
|
12670
12821
|
*/
|
|
12671
|
-
onDismiss: (callbackFn:
|
|
12822
|
+
onDismiss: (callbackFn: () => void) => DialogChainObject;
|
|
12672
12823
|
/**
|
|
12673
12824
|
* Hides the dialog when called
|
|
12674
12825
|
* @returns Chained Object
|
|
@@ -12679,7 +12830,7 @@ export interface DialogChainObject {
|
|
|
12679
12830
|
* @param opts 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
|
|
12680
12831
|
* @returns Chained Object
|
|
12681
12832
|
*/
|
|
12682
|
-
update: (opts
|
|
12833
|
+
update: (opts: LooseDictionary) => DialogChainObject;
|
|
12683
12834
|
}
|
|
12684
12835
|
|
|
12685
12836
|
import { CookiesGetMethodType } from "./api";
|
|
@@ -12725,7 +12876,7 @@ export interface QDialogOptions {
|
|
|
12725
12876
|
/**
|
|
12726
12877
|
* Is typed content valid?
|
|
12727
12878
|
*/
|
|
12728
|
-
isValid?:
|
|
12879
|
+
isValid?: (val: string) => boolean;
|
|
12729
12880
|
/**
|
|
12730
12881
|
* Attributes to pass to prompt control
|
|
12731
12882
|
*/
|
|
@@ -12795,7 +12946,7 @@ export interface QDialogOptions {
|
|
|
12795
12946
|
/**
|
|
12796
12947
|
* Is the model valid?
|
|
12797
12948
|
*/
|
|
12798
|
-
isValid?:
|
|
12949
|
+
isValid?: (model: string | any[]) => boolean;
|
|
12799
12950
|
};
|
|
12800
12951
|
/**
|
|
12801
12952
|
* Display a Quasar spinner (if value is true, then the defaults are used); Useful for conveying the idea that something is happening behind the covers; Tip: use along with persistent, ok: false and update() method
|
|
@@ -12815,21 +12966,11 @@ export interface QDialogOptions {
|
|
|
12815
12966
|
/**
|
|
12816
12967
|
* Props for an 'OK' button
|
|
12817
12968
|
*/
|
|
12818
|
-
ok?:
|
|
12819
|
-
| string
|
|
12820
|
-
| {
|
|
12821
|
-
[index: string]: any;
|
|
12822
|
-
}
|
|
12823
|
-
| boolean;
|
|
12969
|
+
ok?: string | { [index: string]: any } | boolean;
|
|
12824
12970
|
/**
|
|
12825
12971
|
* Props for a 'CANCEL' button
|
|
12826
12972
|
*/
|
|
12827
|
-
cancel?:
|
|
12828
|
-
| string
|
|
12829
|
-
| {
|
|
12830
|
-
[index: string]: any;
|
|
12831
|
-
}
|
|
12832
|
-
| boolean;
|
|
12973
|
+
cancel?: string | { [index: string]: any } | boolean;
|
|
12833
12974
|
/**
|
|
12834
12975
|
* What button to focus, unless you also have 'prompt' or 'options'
|
|
12835
12976
|
* Default value: ok
|
|
@@ -13103,7 +13244,7 @@ declare module "./globals" {
|
|
|
13103
13244
|
/**
|
|
13104
13245
|
* Function to call when notification gets dismissed
|
|
13105
13246
|
*/
|
|
13106
|
-
onDismiss?:
|
|
13247
|
+
onDismiss?: () => void;
|
|
13107
13248
|
/**
|
|
13108
13249
|
* 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
|
|
13109
13250
|
*/
|
|
@@ -13118,7 +13259,85 @@ declare module "./globals" {
|
|
|
13118
13259
|
ignoreDefaults?: boolean;
|
|
13119
13260
|
}
|
|
13120
13261
|
| string
|
|
13121
|
-
) =>
|
|
13262
|
+
) => (props?: {
|
|
13263
|
+
/**
|
|
13264
|
+
* Optional type (that has been previously registered) or one of the out of the box ones ('positive', 'negative', 'warning', 'info', 'ongoing')
|
|
13265
|
+
*/
|
|
13266
|
+
type?: string;
|
|
13267
|
+
/**
|
|
13268
|
+
* Color name for component from the Quasar Color Palette
|
|
13269
|
+
*/
|
|
13270
|
+
color?: string;
|
|
13271
|
+
/**
|
|
13272
|
+
* Color name for component from the Quasar Color Palette
|
|
13273
|
+
*/
|
|
13274
|
+
textColor?: string;
|
|
13275
|
+
/**
|
|
13276
|
+
* The content of your message
|
|
13277
|
+
*/
|
|
13278
|
+
message?: string;
|
|
13279
|
+
/**
|
|
13280
|
+
* The content of your optional caption
|
|
13281
|
+
*/
|
|
13282
|
+
caption?: string;
|
|
13283
|
+
/**
|
|
13284
|
+
* Render message as HTML; This can lead to XSS attacks, so make sure that you sanitize the message first
|
|
13285
|
+
*/
|
|
13286
|
+
html?: boolean;
|
|
13287
|
+
/**
|
|
13288
|
+
* Icon name following Quasar convention; Make sure you have the icon library installed unless you are using 'img:' prefix
|
|
13289
|
+
*/
|
|
13290
|
+
icon?: string;
|
|
13291
|
+
/**
|
|
13292
|
+
* URL to an avatar/image; Suggestion: use statics folder
|
|
13293
|
+
*/
|
|
13294
|
+
avatar?: string;
|
|
13295
|
+
/**
|
|
13296
|
+
* 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
|
|
13297
|
+
*/
|
|
13298
|
+
spinner?: boolean | Component;
|
|
13299
|
+
/**
|
|
13300
|
+
* Show progress bar to detail when notification will disappear automatically (unless timeout is 0)
|
|
13301
|
+
*/
|
|
13302
|
+
progress?: boolean;
|
|
13303
|
+
/**
|
|
13304
|
+
* Class definitions to be attributed to the progress bar
|
|
13305
|
+
*/
|
|
13306
|
+
progressClass?: any[] | string | LooseDictionary;
|
|
13307
|
+
/**
|
|
13308
|
+
* Add CSS class(es) to the notification for easier customization
|
|
13309
|
+
*/
|
|
13310
|
+
classes?: string;
|
|
13311
|
+
/**
|
|
13312
|
+
* Key-value for attributes to be set on the notification
|
|
13313
|
+
*/
|
|
13314
|
+
attrs?: LooseDictionary;
|
|
13315
|
+
/**
|
|
13316
|
+
* Amount of time to display (in milliseconds)
|
|
13317
|
+
* Default value: 5000
|
|
13318
|
+
*/
|
|
13319
|
+
timeout?: number;
|
|
13320
|
+
/**
|
|
13321
|
+
* 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
|
|
13322
|
+
*/
|
|
13323
|
+
actions?: any[];
|
|
13324
|
+
/**
|
|
13325
|
+
* Function to call when notification gets dismissed
|
|
13326
|
+
*/
|
|
13327
|
+
onDismiss?: () => void;
|
|
13328
|
+
/**
|
|
13329
|
+
* 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
|
|
13330
|
+
*/
|
|
13331
|
+
closeBtn?: boolean | string;
|
|
13332
|
+
/**
|
|
13333
|
+
* 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
|
|
13334
|
+
*/
|
|
13335
|
+
multiLine?: boolean;
|
|
13336
|
+
/**
|
|
13337
|
+
* Ignore the default configuration (set by setDefaults()) for this instance only
|
|
13338
|
+
*/
|
|
13339
|
+
ignoreDefaults?: boolean;
|
|
13340
|
+
}) => void;
|
|
13122
13341
|
platform: Platform;
|
|
13123
13342
|
screen: Screen;
|
|
13124
13343
|
sessionStorage: SessionStorage;
|