quasar 2.3.2 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/AppFullscreen.json +15 -8
- package/dist/api/BottomSheet.json +6 -0
- package/dist/api/Cookies.json +4 -3
- package/dist/api/Dialog.json +23 -9
- package/dist/api/Loading.json +4 -2
- package/dist/api/LoadingBar.json +8 -3
- package/dist/api/Morph.json +14 -7
- package/dist/api/Mutation.json +1 -1
- package/dist/api/Notify.json +41 -27
- package/dist/api/QAjaxBar.json +6 -3
- package/dist/api/QBreadcrumbs.json +8 -4
- package/dist/api/QBreadcrumbsEl.json +4 -2
- package/dist/api/QBtn.json +6 -3
- package/dist/api/QBtnDropdown.json +10 -5
- package/dist/api/QBtnToggle.json +4 -2
- package/dist/api/QCard.json +2 -1
- package/dist/api/QCardActions.json +2 -1
- package/dist/api/QCardSection.json +2 -1
- package/dist/api/QCarousel.json +10 -5
- package/dist/api/QCarouselControl.json +4 -2
- package/dist/api/QChatMessage.json +8 -4
- package/dist/api/QCheckbox.json +8 -4
- package/dist/api/QChip.json +2 -1
- package/dist/api/QCircularProgress.json +14 -7
- package/dist/api/QColor.json +6 -3
- package/dist/api/QDate.json +33 -5
- package/dist/api/QDialog.json +8 -4
- package/dist/api/QDrawer.json +10 -5
- package/dist/api/QEditor.json +10 -5
- package/dist/api/QExpansionItem.json +2 -1
- package/dist/api/QFab.json +8 -4
- package/dist/api/QFabAction.json +4 -2
- package/dist/api/QField.json +2 -1
- package/dist/api/QFile.json +3 -0
- package/dist/api/QFooter.json +2 -1
- package/dist/api/QHeader.json +4 -2
- package/dist/api/QIcon.json +2 -1
- package/dist/api/QImg.json +8 -4
- package/dist/api/QInfiniteScroll.json +6 -3
- package/dist/api/QInnerLoading.json +8 -4
- package/dist/api/QInput.json +2 -1
- package/dist/api/QIntersection.json +4 -2
- package/dist/api/QItem.json +2 -1
- package/dist/api/QKnob.json +8 -4
- package/dist/api/QLayout.json +9 -1
- package/dist/api/QLinearProgress.json +4 -2
- package/dist/api/QMarkupTable.json +2 -1
- package/dist/api/QMenu.json +8 -4
- package/dist/api/QNoSsr.json +2 -1
- package/dist/api/QOptionGroup.json +2 -1
- package/dist/api/QPage.json +2 -1
- package/dist/api/QPageScroller.json +8 -4
- package/dist/api/QPageSticky.json +2 -1
- package/dist/api/QPagination.json +10 -6
- package/dist/api/QParallax.json +2 -1
- package/dist/api/QPopupEdit.json +5 -2
- package/dist/api/QPopupProxy.json +4 -2
- package/dist/api/QRange.json +8 -4
- package/dist/api/QRating.json +2 -1
- package/dist/api/QResizeObserver.json +4 -1
- package/dist/api/QRouteTab.json +4 -2
- package/dist/api/QScrollArea.json +26 -4
- package/dist/api/QScrollObserver.json +13 -1
- package/dist/api/QSelect.json +73 -37
- package/dist/api/QSeparator.json +2 -1
- package/dist/api/QSkeleton.json +8 -4
- package/dist/api/QSlideItem.json +9 -0
- package/dist/api/QSlideTransition.json +2 -1
- package/dist/api/QSlider.json +8 -4
- package/dist/api/QSpinner.json +2 -1
- package/dist/api/QSplitter.json +4 -2
- package/dist/api/QStep.json +2 -1
- package/dist/api/QStepper.json +6 -3
- package/dist/api/QTab.json +4 -2
- package/dist/api/QTabPanels.json +6 -3
- package/dist/api/QTable.json +154 -88
- package/dist/api/QTabs.json +4 -2
- package/dist/api/QTime.json +16 -4
- package/dist/api/QTimeline.json +4 -2
- package/dist/api/QTimelineEntry.json +4 -2
- package/dist/api/QToggle.json +8 -4
- package/dist/api/QTooltip.json +18 -9
- package/dist/api/QTree.json +26 -15
- package/dist/api/QUploader.json +12 -4
- package/dist/api/QVirtualScroll.json +23 -9
- package/dist/api/ScrollFire.json +1 -1
- package/dist/api/TouchHold.json +2 -1
- package/dist/api/TouchRepeat.json +2 -1
- package/dist/api/TouchSwipe.json +2 -1
- 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-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-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 +1 -1
- package/dist/quasar.esm.prod.js +2 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +1 -1
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +2 -2
- package/dist/quasar.umd.js +18 -21
- package/dist/quasar.umd.prod.js +2 -2
- package/dist/ssr-directives/Morph.js +1 -1
- package/dist/types/api/cookies.d.ts +1 -1
- package/dist/types/index.d.ts +149 -38
- package/dist/web-types/web-types.json +10 -6
- package/package.json +1 -1
- package/src/components/btn/QBtn.js +1 -0
- package/src/components/date/QDate.json +25 -1
- package/src/components/field/QField.json +3 -3
- package/src/components/file/QFile.json +3 -0
- package/src/components/layout/QLayout.json +8 -1
- package/src/components/linear-progress/QLinearProgress.sass +1 -1
- package/src/components/pagination/QPagination.json +0 -1
- package/src/components/popup-edit/QPopupEdit.json +1 -0
- package/src/components/resize-observer/QResizeObserver.json +2 -0
- package/src/components/scroll-area/QScrollArea.js +7 -12
- package/src/components/scroll-area/QScrollArea.json +24 -3
- package/src/components/scroll-observer/QScrollObserver.json +11 -0
- package/src/components/select/QSelect.json +24 -11
- package/src/components/slide-item/QSlideItem.json +9 -0
- package/src/components/table/QTable.json +104 -55
- package/src/components/table/table-pagination.js +4 -0
- package/src/components/time/QTime.json +8 -0
- package/src/components/tree/QTree.json +14 -9
- package/src/components/uploader/xhr-uploader-plugin.json +8 -3
- package/src/components/virtual-scroll/use-virtual-scroll.json +5 -0
- package/src/composables/private/use-split-attrs.js +3 -6
- package/src/directives/Mutation.json +2 -3
- package/src/directives/ScrollFire.json +2 -3
- package/src/plugins/AppFullscreen.json +8 -8
- package/src/plugins/Cookies.json +2 -2
- package/src/plugins/Dialog.json +4 -2
- package/src/plugins/LoadingBar.json +4 -3
- package/src/plugins/Notify.json +13 -19
- package/src/utils/private/global-dialog.json +6 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -27,24 +27,24 @@ export interface AppFullscreen {
|
|
|
27
27
|
/**
|
|
28
28
|
* The DOM element used as root for fullscreen, otherwise 'null'
|
|
29
29
|
*/
|
|
30
|
-
activeEl:
|
|
30
|
+
activeEl: Element | null;
|
|
31
31
|
/**
|
|
32
32
|
* Request going into Fullscreen (with optional target)
|
|
33
33
|
* @param target Optional Element of target to request Fullscreen on
|
|
34
|
-
* @returns A Promise with
|
|
34
|
+
* @returns A Promise which is resolved when transitioned to fullscreen mode. It gets rejected with 'Not capable' if the browser is not capable, and with an Error object if something else went wrong.
|
|
35
35
|
*/
|
|
36
|
-
request: (target?: Element) => Promise<
|
|
36
|
+
request: (target?: Element) => Promise<void>;
|
|
37
37
|
/**
|
|
38
38
|
* Request exiting out of Fullscreen mode
|
|
39
|
-
* @returns A Promise with
|
|
39
|
+
* @returns A Promise which is resolved when exited out of fullscreen mode. It gets rejected with 'Not capable' if the browser is not capable, and with an Error object if something else went wrong.
|
|
40
40
|
*/
|
|
41
|
-
exit: () => Promise<
|
|
41
|
+
exit: () => Promise<void>;
|
|
42
42
|
/**
|
|
43
43
|
* Request toggling Fullscreen mode (with optional target if requesting going into Fullscreen only)
|
|
44
44
|
* @param target Optional Element of target to request Fullscreen on
|
|
45
|
-
* @returns A Promise with
|
|
45
|
+
* @returns A Promise which is resolved when transitioned to / exited out of fullscreen mode. It gets rejected with 'Not capable' if the browser is not capable, and with an Error object if something else went wrong.
|
|
46
46
|
*/
|
|
47
|
-
toggle: (target?: Element) => Promise<
|
|
47
|
+
toggle: (target?: Element) => Promise<void>;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export interface AppVisibility {
|
|
@@ -156,9 +156,9 @@ export interface Cookies {
|
|
|
156
156
|
*/
|
|
157
157
|
domain?: string;
|
|
158
158
|
/**
|
|
159
|
-
* SameSite cookie option
|
|
159
|
+
* SameSite cookie option
|
|
160
160
|
*/
|
|
161
|
-
sameSite?:
|
|
161
|
+
sameSite?: "Lax" | "Strict" | "None";
|
|
162
162
|
/**
|
|
163
163
|
* Is cookie Http Only?
|
|
164
164
|
*/
|
|
@@ -351,9 +351,9 @@ export interface LoadingBar {
|
|
|
351
351
|
increment: (amount?: number) => void;
|
|
352
352
|
/**
|
|
353
353
|
* Set the inner QAjaxBar's props
|
|
354
|
-
* @param
|
|
354
|
+
* @param props QAjaxBar component props
|
|
355
355
|
*/
|
|
356
|
-
setDefaults: (
|
|
356
|
+
setDefaults: (props: LooseDictionary) => void;
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
export interface LocalStorage {
|
|
@@ -2344,6 +2344,7 @@ export interface QCarouselSlots {
|
|
|
2344
2344
|
btnProps: LooseDictionary;
|
|
2345
2345
|
/**
|
|
2346
2346
|
* Default trigger when clicked/tapped on
|
|
2347
|
+
* @param evt JS event object
|
|
2347
2348
|
*/
|
|
2348
2349
|
onClick: (evt: LooseDictionary) => void;
|
|
2349
2350
|
}) => VNode[];
|
|
@@ -2975,14 +2976,20 @@ export interface QDateProps {
|
|
|
2975
2976
|
yearsInMonthView?: boolean | undefined;
|
|
2976
2977
|
/**
|
|
2977
2978
|
* 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
|
|
2979
|
+
* @param date The current date being processed.
|
|
2980
|
+
* @returns If true, the current date will be highlighted
|
|
2978
2981
|
*/
|
|
2979
2982
|
events?: any[] | ((date: string) => boolean) | undefined;
|
|
2980
2983
|
/**
|
|
2981
2984
|
* 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
|
|
2985
|
+
* @param date The current date being processed.
|
|
2986
|
+
* @returns Color for the current date.
|
|
2982
2987
|
*/
|
|
2983
2988
|
eventColor?: string | ((date: string) => string) | undefined;
|
|
2984
2989
|
/**
|
|
2985
2990
|
* 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
|
|
2991
|
+
* @param date The current date being processed.
|
|
2992
|
+
* @returns If true, the current date will be made available for selection
|
|
2986
2993
|
*/
|
|
2987
2994
|
options?: any[] | ((date: string) => boolean) | undefined;
|
|
2988
2995
|
/**
|
|
@@ -3055,7 +3062,7 @@ export interface QDateProps {
|
|
|
3055
3062
|
/**
|
|
3056
3063
|
* Object of properties of the range starting point (only if range)
|
|
3057
3064
|
*/
|
|
3058
|
-
from
|
|
3065
|
+
from?: {
|
|
3059
3066
|
/**
|
|
3060
3067
|
* The year
|
|
3061
3068
|
*/
|
|
@@ -3072,7 +3079,7 @@ export interface QDateProps {
|
|
|
3072
3079
|
/**
|
|
3073
3080
|
* Object of properties of the range ending point (only if range)
|
|
3074
3081
|
*/
|
|
3075
|
-
to
|
|
3082
|
+
to?: {
|
|
3076
3083
|
/**
|
|
3077
3084
|
* The year
|
|
3078
3085
|
*/
|
|
@@ -3617,6 +3624,7 @@ export interface QEditorProps {
|
|
|
3617
3624
|
param?: string;
|
|
3618
3625
|
/**
|
|
3619
3626
|
* Is button disabled?
|
|
3627
|
+
* @returns If true, the button will be disabled
|
|
3620
3628
|
*/
|
|
3621
3629
|
disable?: boolean | (() => boolean);
|
|
3622
3630
|
/**
|
|
@@ -4419,7 +4427,7 @@ export interface QFieldSlots {
|
|
|
4419
4427
|
/**
|
|
4420
4428
|
* DOM element of the field
|
|
4421
4429
|
*/
|
|
4422
|
-
field:
|
|
4430
|
+
field: Element;
|
|
4423
4431
|
/**
|
|
4424
4432
|
* Field is editable
|
|
4425
4433
|
*/
|
|
@@ -4438,6 +4446,7 @@ export interface QFieldSlots {
|
|
|
4438
4446
|
modelValue: any;
|
|
4439
4447
|
/**
|
|
4440
4448
|
* Function that emits an @input event in the context of the field
|
|
4449
|
+
* @param value Value to be emitted
|
|
4441
4450
|
*/
|
|
4442
4451
|
emitValue: (value: any) => void;
|
|
4443
4452
|
}) => VNode[];
|
|
@@ -4499,6 +4508,8 @@ export interface QFileProps {
|
|
|
4499
4508
|
maxFiles?: number | string | undefined;
|
|
4500
4509
|
/**
|
|
4501
4510
|
* 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
|
|
4511
|
+
* @param files Candidate files to be added to queue
|
|
4512
|
+
* @returns Filtered files to be added to queue
|
|
4502
4513
|
*/
|
|
4503
4514
|
filter?: ((files: FileList | any[]) => any[]) | undefined;
|
|
4504
4515
|
/**
|
|
@@ -4659,6 +4670,8 @@ export interface QFileProps {
|
|
|
4659
4670
|
useChips?: boolean | undefined;
|
|
4660
4671
|
/**
|
|
4661
4672
|
* Label for the counter; The 'counter' prop is necessary to enable this one
|
|
4673
|
+
* @param props Object containing counter label information
|
|
4674
|
+
* @returns String to display for the counter label
|
|
4662
4675
|
*/
|
|
4663
4676
|
counterLabel?:
|
|
4664
4677
|
| ((props: {
|
|
@@ -5196,7 +5209,7 @@ export interface QInfiniteScrollProps {
|
|
|
5196
5209
|
* @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
|
|
5197
5210
|
* @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
|
|
5198
5211
|
*/
|
|
5199
|
-
onLoad?: (index: number, done: (stop
|
|
5212
|
+
onLoad?: (index: number, done: (stop?: boolean) => void) => void;
|
|
5200
5213
|
}
|
|
5201
5214
|
|
|
5202
5215
|
export interface QInfiniteScrollSlots {
|
|
@@ -6503,6 +6516,9 @@ export interface QPageProps {
|
|
|
6503
6516
|
/**
|
|
6504
6517
|
* 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
|
|
6505
6518
|
* Default value: (see source code)
|
|
6519
|
+
* @param offset Header + Footer height (in pixels)
|
|
6520
|
+
* @param height Value in pixels of container height (if containerized) or window height otherwise
|
|
6521
|
+
* @returns Object with CSS properties to apply to Page DOM element
|
|
6506
6522
|
*/
|
|
6507
6523
|
styleFn?: ((offset: number, height: number) => LooseDictionary) | undefined;
|
|
6508
6524
|
}
|
|
@@ -6540,7 +6556,6 @@ export interface QPaginationProps {
|
|
|
6540
6556
|
min?: number | undefined;
|
|
6541
6557
|
/**
|
|
6542
6558
|
* Number of last page (must be higher than 'min')
|
|
6543
|
-
* Default value: 100
|
|
6544
6559
|
*/
|
|
6545
6560
|
max: number;
|
|
6546
6561
|
/**
|
|
@@ -6603,6 +6618,8 @@ export interface QPaginationProps {
|
|
|
6603
6618
|
iconLast?: string | undefined;
|
|
6604
6619
|
/**
|
|
6605
6620
|
* Generate link for page buttons; For best performance, reference it from your scope and do not define it inline
|
|
6621
|
+
* @param page Page number to navigate to
|
|
6622
|
+
* @returns Object or String that can be passed to a <router-link> as `to` parameter
|
|
6606
6623
|
*/
|
|
6607
6624
|
toFn?: ((page: number) => LooseDictionary | string) | undefined;
|
|
6608
6625
|
/**
|
|
@@ -6768,6 +6785,8 @@ export interface QPopupEditProps {
|
|
|
6768
6785
|
color?: string | undefined;
|
|
6769
6786
|
/**
|
|
6770
6787
|
* 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
|
|
6788
|
+
* @param value Model to validate
|
|
6789
|
+
* @returns Is the model valid or not?
|
|
6771
6790
|
*/
|
|
6772
6791
|
validate?: ((value: any) => boolean) | undefined;
|
|
6773
6792
|
/**
|
|
@@ -6902,6 +6921,8 @@ export interface QPopupEditSlots {
|
|
|
6902
6921
|
value: any;
|
|
6903
6922
|
/**
|
|
6904
6923
|
* Function that checks if the value is valid
|
|
6924
|
+
* @param value Value to be checked
|
|
6925
|
+
* @returns Checked value is valid or not
|
|
6905
6926
|
*/
|
|
6906
6927
|
validate: (value: any) => boolean;
|
|
6907
6928
|
/**
|
|
@@ -7903,6 +7924,8 @@ export interface QSelectProps {
|
|
|
7903
7924
|
/**
|
|
7904
7925
|
* 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
|
|
7905
7926
|
* Default value: value
|
|
7927
|
+
* @param option The current option being processed
|
|
7928
|
+
* @returns Value of the current option
|
|
7906
7929
|
*/
|
|
7907
7930
|
optionValue?:
|
|
7908
7931
|
| ((option: string | LooseDictionary) => any)
|
|
@@ -7911,6 +7934,8 @@ export interface QSelectProps {
|
|
|
7911
7934
|
/**
|
|
7912
7935
|
* 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
|
|
7913
7936
|
* Default value: label
|
|
7937
|
+
* @param option The current option being processed
|
|
7938
|
+
* @returns Label of the current option
|
|
7914
7939
|
*/
|
|
7915
7940
|
optionLabel?:
|
|
7916
7941
|
| ((option: string | LooseDictionary) => string)
|
|
@@ -7919,6 +7944,8 @@ export interface QSelectProps {
|
|
|
7919
7944
|
/**
|
|
7920
7945
|
* 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
|
|
7921
7946
|
* Default value: disable
|
|
7947
|
+
* @param option The current option being processed
|
|
7948
|
+
* @returns If true, the current option will be disabled
|
|
7922
7949
|
*/
|
|
7923
7950
|
optionDisable?:
|
|
7924
7951
|
| ((option: string | LooseDictionary) => boolean)
|
|
@@ -8158,7 +8185,7 @@ export interface QSelectProps {
|
|
|
8158
8185
|
*/
|
|
8159
8186
|
onNewValue?: (
|
|
8160
8187
|
inputValue: string,
|
|
8161
|
-
doneFn: (item
|
|
8188
|
+
doneFn: (item?: any, mode?: "add" | "add-unique" | "toggle") => void
|
|
8162
8189
|
) => void;
|
|
8163
8190
|
/**
|
|
8164
8191
|
* Emitted when user wants to filter a value
|
|
@@ -8170,7 +8197,7 @@ export interface QSelectProps {
|
|
|
8170
8197
|
inputValue: string,
|
|
8171
8198
|
doneFn: (
|
|
8172
8199
|
callbackFn: () => void,
|
|
8173
|
-
afterFn
|
|
8200
|
+
afterFn?: (ref: LooseDictionary) => void
|
|
8174
8201
|
) => void,
|
|
8175
8202
|
abortFn: () => void
|
|
8176
8203
|
) => void;
|
|
@@ -8272,10 +8299,12 @@ export interface QSelectSlots {
|
|
|
8272
8299
|
selected: boolean;
|
|
8273
8300
|
/**
|
|
8274
8301
|
* Remove selected option located at specific index
|
|
8302
|
+
* @param index Index at which to remove selection
|
|
8275
8303
|
*/
|
|
8276
8304
|
removeAtIndex: (index: number) => void;
|
|
8277
8305
|
/**
|
|
8278
8306
|
* Add/remove option from model
|
|
8307
|
+
* @param opt Option to add to model
|
|
8279
8308
|
*/
|
|
8280
8309
|
toggleOption: (opt: any) => void;
|
|
8281
8310
|
/**
|
|
@@ -8306,10 +8335,12 @@ export interface QSelectSlots {
|
|
|
8306
8335
|
focused: boolean;
|
|
8307
8336
|
/**
|
|
8308
8337
|
* Add/remove option from model
|
|
8338
|
+
* @param opt Option to add to model
|
|
8309
8339
|
*/
|
|
8310
8340
|
toggleOption: (opt: any) => void;
|
|
8311
8341
|
/**
|
|
8312
8342
|
* Sets option from menu as 'focused'
|
|
8343
|
+
* @param index Index of option from menu
|
|
8313
8344
|
*/
|
|
8314
8345
|
setOptionIndex: (index: number) => void;
|
|
8315
8346
|
/**
|
|
@@ -8412,7 +8443,7 @@ export interface QSelect extends ComponentPublicInstance<QSelectProps> {
|
|
|
8412
8443
|
* @param value String to set the input value to
|
|
8413
8444
|
* @param noFilter Set to true if you don't want the filter (if any) to be also triggered
|
|
8414
8445
|
*/
|
|
8415
|
-
updateInputValue: (value
|
|
8446
|
+
updateInputValue: (value: string, noFilter?: boolean) => void;
|
|
8416
8447
|
/**
|
|
8417
8448
|
* Tells if an option is selected
|
|
8418
8449
|
* @param opt Option entry
|
|
@@ -9668,6 +9699,8 @@ export interface QTableProps {
|
|
|
9668
9699
|
/**
|
|
9669
9700
|
* 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
|
|
9670
9701
|
* Default value: id
|
|
9702
|
+
* @param row The current row being processed
|
|
9703
|
+
* @returns Current row's key
|
|
9671
9704
|
*/
|
|
9672
9705
|
rowKey?: string | ((row: LooseDictionary) => any) | undefined;
|
|
9673
9706
|
/**
|
|
@@ -9756,6 +9789,8 @@ export interface QTableProps {
|
|
|
9756
9789
|
label: string;
|
|
9757
9790
|
/**
|
|
9758
9791
|
* Row Object property to determine value for this column or function which maps to the required property
|
|
9792
|
+
* @param row The current row being processed
|
|
9793
|
+
* @returns Value for this column
|
|
9759
9794
|
*/
|
|
9760
9795
|
field: string | ((row: LooseDictionary) => any);
|
|
9761
9796
|
/**
|
|
@@ -9773,6 +9808,11 @@ export interface QTableProps {
|
|
|
9773
9808
|
sortable?: boolean;
|
|
9774
9809
|
/**
|
|
9775
9810
|
* Compare function if you have some custom data or want a specific way to compare two rows
|
|
9811
|
+
* @param a Value of the first comparison term
|
|
9812
|
+
* @param b Value of the second comparison term
|
|
9813
|
+
* @param rowA Full Row object in which is contained the first term
|
|
9814
|
+
* @param rowB Full Row object in which is contained the second term
|
|
9815
|
+
* @returns Comparison result of term 'a' with term 'b'. Less than 0 when 'a' should come first; greater than 0 if 'b' should come first; equal to 0 if their position must not be changed with respect to each other
|
|
9776
9816
|
*/
|
|
9777
9817
|
sort?: (
|
|
9778
9818
|
a: any,
|
|
@@ -9787,14 +9827,19 @@ export interface QTableProps {
|
|
|
9787
9827
|
sortOrder?: "ad" | "da";
|
|
9788
9828
|
/**
|
|
9789
9829
|
* Function you can apply to format your data
|
|
9830
|
+
* @param val Value of the cell
|
|
9831
|
+
* @param row Full Row object in which the cell is contained
|
|
9832
|
+
* @returns The resulting formatted value
|
|
9790
9833
|
*/
|
|
9791
9834
|
format?: (val: any, row: LooseDictionary) => any;
|
|
9792
9835
|
/**
|
|
9793
9836
|
* Style to apply on normal cells of the column
|
|
9837
|
+
* @param row The current row being processed
|
|
9794
9838
|
*/
|
|
9795
9839
|
style?: string | ((row: LooseDictionary) => string);
|
|
9796
9840
|
/**
|
|
9797
9841
|
* Classes to add on normal cells of the column
|
|
9842
|
+
* @param row The current row being processed
|
|
9798
9843
|
*/
|
|
9799
9844
|
classes?: string | ((row: LooseDictionary) => string);
|
|
9800
9845
|
/**
|
|
@@ -9887,6 +9932,8 @@ export interface QTableProps {
|
|
|
9887
9932
|
loadingLabel?: string | undefined;
|
|
9888
9933
|
/**
|
|
9889
9934
|
* Text to display when user selected at least one row; For best performance, reference it from your scope and do not define it inline
|
|
9935
|
+
* @param numberOfRows Number of rows available
|
|
9936
|
+
* @returns Label to display
|
|
9890
9937
|
*/
|
|
9891
9938
|
selectedRowsLabel?: ((numberOfRows: number) => string) | undefined;
|
|
9892
9939
|
/**
|
|
@@ -9895,6 +9942,10 @@ export interface QTableProps {
|
|
|
9895
9942
|
rowsPerPageLabel?: string | undefined;
|
|
9896
9943
|
/**
|
|
9897
9944
|
* 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
|
|
9945
|
+
* @param firstRowIndex Index of first displayed row
|
|
9946
|
+
* @param endRowIndex Index of last displayed row
|
|
9947
|
+
* @param totalRowsNumber Number of total rows available in data
|
|
9948
|
+
* @returns Label to display
|
|
9898
9949
|
*/
|
|
9899
9950
|
paginationLabel?:
|
|
9900
9951
|
| ((
|
|
@@ -9946,6 +9997,11 @@ export interface QTableProps {
|
|
|
9946
9997
|
/**
|
|
9947
9998
|
* The actual filtering mechanism; For best performance, reference it from your scope and do not define it inline
|
|
9948
9999
|
* Default value: (see source code)
|
|
10000
|
+
* @param rows Array of rows
|
|
10001
|
+
* @param terms Terms to filter with (is essentially the 'filter' prop value)
|
|
10002
|
+
* @param cols Column definitions
|
|
10003
|
+
* @param getCellValue Optional function to get a cell value
|
|
10004
|
+
* @returns Filtered rows
|
|
9949
10005
|
*/
|
|
9950
10006
|
filterMethod?:
|
|
9951
10007
|
| ((
|
|
@@ -10005,6 +10061,10 @@ export interface QTableProps {
|
|
|
10005
10061
|
/**
|
|
10006
10062
|
* The actual sort mechanism. Function (rows, sortBy, descending) => sorted rows; For best performance, reference it from your scope and do not define it inline
|
|
10007
10063
|
* Default value: (see source code)
|
|
10064
|
+
* @param rows Array with rows
|
|
10065
|
+
* @param sortBy Column name (from column definition)
|
|
10066
|
+
* @param descending Is sorting in descending order?
|
|
10067
|
+
* @returns Sorted rows
|
|
10008
10068
|
*/
|
|
10009
10069
|
sortMethod?:
|
|
10010
10070
|
| ((rows: any[], sortBy: string, descending: boolean) => any[])
|
|
@@ -10070,15 +10130,23 @@ export interface QTableProps {
|
|
|
10070
10130
|
};
|
|
10071
10131
|
/**
|
|
10072
10132
|
* Filter method (the 'filter-method' prop)
|
|
10133
|
+
* @param rows Array of rows
|
|
10134
|
+
* @param terms Terms to filter with (is essentially the 'filter' prop value)
|
|
10135
|
+
* @param cols Optional column definitions
|
|
10136
|
+
* @param getCellValue Optional function to get a cell value
|
|
10137
|
+
* @returns Filtered rows
|
|
10073
10138
|
*/
|
|
10074
10139
|
filter: (
|
|
10075
10140
|
rows: any[],
|
|
10076
10141
|
terms: string | LooseDictionary,
|
|
10077
|
-
cols
|
|
10078
|
-
getCellValue
|
|
10142
|
+
cols?: any[],
|
|
10143
|
+
getCellValue?: (col: LooseDictionary, row: LooseDictionary) => any
|
|
10079
10144
|
) => any[];
|
|
10080
10145
|
/**
|
|
10081
|
-
*
|
|
10146
|
+
* Function to get a cell value
|
|
10147
|
+
* @param col Column name from column definitions
|
|
10148
|
+
* @param row The row object
|
|
10149
|
+
* @returns Parsed/Processed cell value
|
|
10082
10150
|
*/
|
|
10083
10151
|
getCellValue: (col: LooseDictionary, row: LooseDictionary) => any;
|
|
10084
10152
|
}) => void;
|
|
@@ -10125,6 +10193,10 @@ export interface QTableProps {
|
|
|
10125
10193
|
* How many rows per page? 0 means Infinite
|
|
10126
10194
|
*/
|
|
10127
10195
|
rowsPerPage: number;
|
|
10196
|
+
/**
|
|
10197
|
+
* For server-side fetching only. How many total database rows are there to be added to the table.
|
|
10198
|
+
*/
|
|
10199
|
+
rowsNumber?: number;
|
|
10128
10200
|
}) => void;
|
|
10129
10201
|
/**
|
|
10130
10202
|
* Used by Vue on 'v-model:selected' prop for updating its value
|
|
@@ -10196,6 +10268,7 @@ export interface QTableSlots {
|
|
|
10196
10268
|
colsMap: LooseDictionary;
|
|
10197
10269
|
/**
|
|
10198
10270
|
* Trigger a table sort
|
|
10271
|
+
* @param col Column name or column definition object
|
|
10199
10272
|
*/
|
|
10200
10273
|
sort: (col: string | LooseDictionary) => void;
|
|
10201
10274
|
/**
|
|
@@ -10208,7 +10281,6 @@ export interface QTableSlots {
|
|
|
10208
10281
|
expand: boolean;
|
|
10209
10282
|
/**
|
|
10210
10283
|
* Color name for component from the Quasar Color Palette
|
|
10211
|
-
* Default value: grey-8
|
|
10212
10284
|
*/
|
|
10213
10285
|
color: string;
|
|
10214
10286
|
/**
|
|
@@ -10251,6 +10323,7 @@ export interface QTableSlots {
|
|
|
10251
10323
|
colsMap: LooseDictionary;
|
|
10252
10324
|
/**
|
|
10253
10325
|
* Trigger a table sort
|
|
10326
|
+
* @param col Column name or column definition object
|
|
10254
10327
|
*/
|
|
10255
10328
|
sort: (col: string | LooseDictionary) => void;
|
|
10256
10329
|
/**
|
|
@@ -10263,7 +10336,6 @@ export interface QTableSlots {
|
|
|
10263
10336
|
expand: boolean;
|
|
10264
10337
|
/**
|
|
10265
10338
|
* Color name for component from the Quasar Color Palette
|
|
10266
|
-
* Default value: grey-8
|
|
10267
10339
|
*/
|
|
10268
10340
|
color: string;
|
|
10269
10341
|
/**
|
|
@@ -10318,6 +10390,7 @@ export interface QTableSlots {
|
|
|
10318
10390
|
colsMap: LooseDictionary;
|
|
10319
10391
|
/**
|
|
10320
10392
|
* Trigger a table sort
|
|
10393
|
+
* @param col Column name or column definition object
|
|
10321
10394
|
*/
|
|
10322
10395
|
sort: (col: string | LooseDictionary) => void;
|
|
10323
10396
|
/**
|
|
@@ -10330,7 +10403,6 @@ export interface QTableSlots {
|
|
|
10330
10403
|
expand: boolean;
|
|
10331
10404
|
/**
|
|
10332
10405
|
* Color name for component from the Quasar Color Palette
|
|
10333
|
-
* Default value: grey-8
|
|
10334
10406
|
*/
|
|
10335
10407
|
color: string;
|
|
10336
10408
|
/**
|
|
@@ -10381,6 +10453,7 @@ export interface QTableSlots {
|
|
|
10381
10453
|
colsMap: LooseDictionary;
|
|
10382
10454
|
/**
|
|
10383
10455
|
* Trigger a table sort
|
|
10456
|
+
* @param col Column name or column definition object
|
|
10384
10457
|
*/
|
|
10385
10458
|
sort: (col: string | LooseDictionary) => void;
|
|
10386
10459
|
/**
|
|
@@ -10393,7 +10466,6 @@ export interface QTableSlots {
|
|
|
10393
10466
|
expand: boolean;
|
|
10394
10467
|
/**
|
|
10395
10468
|
* Color name for component from the Quasar Color Palette
|
|
10396
|
-
* Default value: grey-8
|
|
10397
10469
|
*/
|
|
10398
10470
|
color: string;
|
|
10399
10471
|
/**
|
|
@@ -10420,6 +10492,7 @@ export interface QTableSlots {
|
|
|
10420
10492
|
colsMap: LooseDictionary;
|
|
10421
10493
|
/**
|
|
10422
10494
|
* Trigger a table sort
|
|
10495
|
+
* @param col Column name or column definition object
|
|
10423
10496
|
*/
|
|
10424
10497
|
sort: (col: string | LooseDictionary) => void;
|
|
10425
10498
|
/**
|
|
@@ -10432,7 +10505,6 @@ export interface QTableSlots {
|
|
|
10432
10505
|
expand: boolean;
|
|
10433
10506
|
/**
|
|
10434
10507
|
* Color name for component from the Quasar Color Palette
|
|
10435
|
-
* Default value: grey-8
|
|
10436
10508
|
*/
|
|
10437
10509
|
color: string;
|
|
10438
10510
|
/**
|
|
@@ -10471,6 +10543,7 @@ export interface QTableSlots {
|
|
|
10471
10543
|
colsMap: LooseDictionary;
|
|
10472
10544
|
/**
|
|
10473
10545
|
* Trigger a table sort
|
|
10546
|
+
* @param col Column name or column definition object
|
|
10474
10547
|
*/
|
|
10475
10548
|
sort: (col: string | LooseDictionary) => void;
|
|
10476
10549
|
/**
|
|
@@ -10483,7 +10556,6 @@ export interface QTableSlots {
|
|
|
10483
10556
|
expand: boolean;
|
|
10484
10557
|
/**
|
|
10485
10558
|
* Color name for component from the Quasar Color Palette
|
|
10486
|
-
* Default value: grey-8
|
|
10487
10559
|
*/
|
|
10488
10560
|
color: string;
|
|
10489
10561
|
/**
|
|
@@ -10514,6 +10586,7 @@ export interface QTableSlots {
|
|
|
10514
10586
|
colsMap: LooseDictionary;
|
|
10515
10587
|
/**
|
|
10516
10588
|
* Trigger a table sort
|
|
10589
|
+
* @param col Column name or column definition object
|
|
10517
10590
|
*/
|
|
10518
10591
|
sort: (col: string | LooseDictionary) => void;
|
|
10519
10592
|
/**
|
|
@@ -10526,7 +10599,6 @@ export interface QTableSlots {
|
|
|
10526
10599
|
expand: boolean;
|
|
10527
10600
|
/**
|
|
10528
10601
|
* Color name for component from the Quasar Color Palette
|
|
10529
|
-
* Default value: grey-8
|
|
10530
10602
|
*/
|
|
10531
10603
|
color: string;
|
|
10532
10604
|
/**
|
|
@@ -10569,6 +10641,7 @@ export interface QTableSlots {
|
|
|
10569
10641
|
colsMap: LooseDictionary;
|
|
10570
10642
|
/**
|
|
10571
10643
|
* Trigger a table sort
|
|
10644
|
+
* @param col Column name or column definition object
|
|
10572
10645
|
*/
|
|
10573
10646
|
sort: (col: string | LooseDictionary) => void;
|
|
10574
10647
|
/**
|
|
@@ -10581,7 +10654,6 @@ export interface QTableSlots {
|
|
|
10581
10654
|
expand: boolean;
|
|
10582
10655
|
/**
|
|
10583
10656
|
* Color name for component from the Quasar Color Palette
|
|
10584
|
-
* Default value: grey-8
|
|
10585
10657
|
*/
|
|
10586
10658
|
color: string;
|
|
10587
10659
|
/**
|
|
@@ -10608,6 +10680,7 @@ export interface QTableSlots {
|
|
|
10608
10680
|
colsMap: LooseDictionary;
|
|
10609
10681
|
/**
|
|
10610
10682
|
* Trigger a table sort
|
|
10683
|
+
* @param col Column name or column definition object
|
|
10611
10684
|
*/
|
|
10612
10685
|
sort: (col: string | LooseDictionary) => void;
|
|
10613
10686
|
/**
|
|
@@ -10620,7 +10693,6 @@ export interface QTableSlots {
|
|
|
10620
10693
|
expand: boolean;
|
|
10621
10694
|
/**
|
|
10622
10695
|
* Color name for component from the Quasar Color Palette
|
|
10623
|
-
* Default value: grey-8
|
|
10624
10696
|
*/
|
|
10625
10697
|
color: string;
|
|
10626
10698
|
/**
|
|
@@ -11087,12 +11159,17 @@ export interface QTable extends ComponentPublicInstance<QTableProps> {
|
|
|
11087
11159
|
};
|
|
11088
11160
|
/**
|
|
11089
11161
|
* Filtering method (the 'filter-method' prop)
|
|
11162
|
+
* @param rows Array of rows
|
|
11163
|
+
* @param terms Terms to filter with (is essentially the 'filter' prop value)
|
|
11164
|
+
* @param cols Optional column definitions
|
|
11165
|
+
* @param getCellValue Optional function to get a cell value
|
|
11166
|
+
* @returns Filtered rows
|
|
11090
11167
|
*/
|
|
11091
11168
|
filter?: (
|
|
11092
11169
|
rows: any[],
|
|
11093
11170
|
terms: string | LooseDictionary,
|
|
11094
|
-
cols
|
|
11095
|
-
getCellValue
|
|
11171
|
+
cols?: any[],
|
|
11172
|
+
getCellValue?: (col?: LooseDictionary, row?: LooseDictionary) => any
|
|
11096
11173
|
) => any[];
|
|
11097
11174
|
}) => void;
|
|
11098
11175
|
/**
|
|
@@ -11170,7 +11247,7 @@ export interface QTable extends ComponentPublicInstance<QTableProps> {
|
|
|
11170
11247
|
/**
|
|
11171
11248
|
* Scroll the table to the row with the specified index in page (0 based)
|
|
11172
11249
|
* @param index The index of the row in page (0 based)
|
|
11173
|
-
* @param edge Only for virtual scroll - the edge to align to if the row is not visible already
|
|
11250
|
+
* @param edge Only for virtual scroll - the edge to align to if the row is not visible already; If the '-force' version is used then it always aligns
|
|
11174
11251
|
*/
|
|
11175
11252
|
scrollTo: (
|
|
11176
11253
|
index: string | number,
|
|
@@ -11571,6 +11648,9 @@ export interface QTimeProps {
|
|
|
11571
11648
|
defaultDate?: string | undefined;
|
|
11572
11649
|
/**
|
|
11573
11650
|
* 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
|
|
11651
|
+
* @param hr Hour
|
|
11652
|
+
* @param min Minutes
|
|
11653
|
+
* @param sec Seconds
|
|
11574
11654
|
*/
|
|
11575
11655
|
options?: ((hr: number, min: number, sec: number) => void) | undefined;
|
|
11576
11656
|
/**
|
|
@@ -12121,6 +12201,9 @@ export interface QTreeProps {
|
|
|
12121
12201
|
/**
|
|
12122
12202
|
* The function to use to filter the tree nodes; For best performance, reference it from your scope and do not define it inline
|
|
12123
12203
|
* Default value: (see source code)
|
|
12204
|
+
* @param node Node currently being filtered
|
|
12205
|
+
* @param filter Filter text to match against
|
|
12206
|
+
* @returns Matches or not
|
|
12124
12207
|
*/
|
|
12125
12208
|
filterMethod?:
|
|
12126
12209
|
| ((node: LooseDictionary, filter: string) => boolean)
|
|
@@ -12158,8 +12241,9 @@ export interface QTreeProps {
|
|
|
12158
12241
|
key: string;
|
|
12159
12242
|
/**
|
|
12160
12243
|
* The callback to be carried out when the loading is successful
|
|
12244
|
+
* @param children Array of nodes
|
|
12161
12245
|
*/
|
|
12162
|
-
done: (children
|
|
12246
|
+
done: (children?: any[]) => void;
|
|
12163
12247
|
/**
|
|
12164
12248
|
* The callback to be carried out should the loading fails
|
|
12165
12249
|
*/
|
|
@@ -12378,24 +12462,34 @@ export interface QTree extends ComponentPublicInstance<QTreeProps> {
|
|
|
12378
12462
|
export interface QUploaderProps {
|
|
12379
12463
|
/**
|
|
12380
12464
|
* 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
|
|
12465
|
+
* @param files Uploaded files
|
|
12466
|
+
* @returns Optional configuration for the upload process; You can override QUploader props in this Object (url, method, headers, formFields, fieldName, withCredentials, sendRaw); Props of these Object can also be Functions with the form of (file[s]) => value
|
|
12381
12467
|
*/
|
|
12382
12468
|
factory?: ((files: any[]) => LooseDictionary | Promise<any>) | undefined;
|
|
12383
12469
|
/**
|
|
12384
12470
|
* 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
|
|
12471
|
+
* @param files Uploaded files
|
|
12472
|
+
* @returns URL or path to the server which handles the upload
|
|
12385
12473
|
*/
|
|
12386
12474
|
url?: string | ((files: any[]) => string) | undefined;
|
|
12387
12475
|
/**
|
|
12388
12476
|
* 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
|
|
12389
12477
|
* Default value: POST
|
|
12478
|
+
* @param files Uploaded files
|
|
12479
|
+
* @returns HTTP method to use for upload
|
|
12390
12480
|
*/
|
|
12391
12481
|
method?: "POST" | "PUT" | ((files: any[]) => string) | undefined;
|
|
12392
12482
|
/**
|
|
12393
12483
|
* 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
|
|
12394
12484
|
* Default value: (file) => file.name
|
|
12485
|
+
* @param files The current file being processed
|
|
12486
|
+
* @returns Field name for the current file upload
|
|
12395
12487
|
*/
|
|
12396
12488
|
fieldName?: string | ((files: File) => string) | undefined;
|
|
12397
12489
|
/**
|
|
12398
12490
|
* 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
|
|
12491
|
+
* @param files Uploaded files
|
|
12492
|
+
* @returns An array consists of objects with header definitions
|
|
12399
12493
|
*/
|
|
12400
12494
|
headers?:
|
|
12401
12495
|
| {
|
|
@@ -12412,6 +12506,8 @@ export interface QUploaderProps {
|
|
|
12412
12506
|
| undefined;
|
|
12413
12507
|
/**
|
|
12414
12508
|
* 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
|
|
12509
|
+
* @param files Uploaded files
|
|
12510
|
+
* @returns An array consists of objects with additional fields definitions (used by Form to be uploaded)
|
|
12415
12511
|
*/
|
|
12416
12512
|
formFields?:
|
|
12417
12513
|
| {
|
|
@@ -12428,14 +12524,20 @@ export interface QUploaderProps {
|
|
|
12428
12524
|
| undefined;
|
|
12429
12525
|
/**
|
|
12430
12526
|
* 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
|
|
12527
|
+
* @param files Uploaded files
|
|
12528
|
+
* @returns If true, withCredentials will be set to true on the XHR that manages the upload
|
|
12431
12529
|
*/
|
|
12432
12530
|
withCredentials?: boolean | ((files: any[]) => boolean) | undefined;
|
|
12433
12531
|
/**
|
|
12434
12532
|
* 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
|
|
12533
|
+
* @param files Uploaded files
|
|
12534
|
+
* @returns If true, raw files will get sent without wrapping into a Form()
|
|
12435
12535
|
*/
|
|
12436
12536
|
sendRaw?: boolean | ((files: any[]) => boolean) | undefined;
|
|
12437
12537
|
/**
|
|
12438
12538
|
* 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
|
|
12539
|
+
* @param files Uploaded files
|
|
12540
|
+
* @returns If true, files will be uploaded in a batch (in one XHR request)
|
|
12439
12541
|
*/
|
|
12440
12542
|
batch?: boolean | ((files: any[]) => boolean) | undefined;
|
|
12441
12543
|
/**
|
|
@@ -12464,6 +12566,8 @@ export interface QUploaderProps {
|
|
|
12464
12566
|
maxFiles?: number | string | undefined;
|
|
12465
12567
|
/**
|
|
12466
12568
|
* 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
|
|
12569
|
+
* @param files Candidate files to be added to queue
|
|
12570
|
+
* @returns Filtered files to be added to queue
|
|
12467
12571
|
*/
|
|
12468
12572
|
filter?: ((files: FileList | any[]) => any[]) | undefined;
|
|
12469
12573
|
/**
|
|
@@ -12558,10 +12662,10 @@ export interface QUploaderProps {
|
|
|
12558
12662
|
}) => void;
|
|
12559
12663
|
/**
|
|
12560
12664
|
* Emitted when factory function is supplied with a Promise which is rejected
|
|
12561
|
-
* @param err Error
|
|
12665
|
+
* @param err Error object which is the Promise rejection reason
|
|
12562
12666
|
* @param files Files which were to get uploaded
|
|
12563
12667
|
*/
|
|
12564
|
-
onFactoryFailed?: (err:
|
|
12668
|
+
onFactoryFailed?: (err: Error, files: any[]) => void;
|
|
12565
12669
|
/**
|
|
12566
12670
|
* Emitted after files are picked and some do not pass the validation props (accept, max-file-size, max-total-size, filter, etc)
|
|
12567
12671
|
* @param rejectedEntries Array of { failedPropValidation: string, file: File } Objects for files that do not pass the validation
|
|
@@ -12714,6 +12818,9 @@ export interface QVirtualScrollProps {
|
|
|
12714
12818
|
itemsSize?: number | undefined;
|
|
12715
12819
|
/**
|
|
12716
12820
|
* 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
|
|
12821
|
+
* @param from Index of the first item (0 based)
|
|
12822
|
+
* @param size Number of items to return
|
|
12823
|
+
* @returns List of scope for items to be displayed
|
|
12717
12824
|
*/
|
|
12718
12825
|
itemsFn?: ((from: number, size: number) => any[]) | undefined;
|
|
12719
12826
|
/**
|
|
@@ -12807,7 +12914,7 @@ export interface DialogChainObject {
|
|
|
12807
12914
|
* @param callbackFn Tell what to do
|
|
12808
12915
|
* @returns Chained Object
|
|
12809
12916
|
*/
|
|
12810
|
-
onOk: (callbackFn: (payload
|
|
12917
|
+
onOk: (callbackFn: (payload?: any) => void) => DialogChainObject;
|
|
12811
12918
|
/**
|
|
12812
12919
|
* Receives a Function as param to tell what to do when Cancel is pressed / dialog is dismissed
|
|
12813
12920
|
* @param callbackFn Tell what to do
|
|
@@ -12875,6 +12982,8 @@ export interface QDialogOptions {
|
|
|
12875
12982
|
type?: string;
|
|
12876
12983
|
/**
|
|
12877
12984
|
* Is typed content valid?
|
|
12985
|
+
* @param val The value of the input
|
|
12986
|
+
* @returns The text passed validation or not
|
|
12878
12987
|
*/
|
|
12879
12988
|
isValid?: (val: string) => boolean;
|
|
12880
12989
|
/**
|
|
@@ -12945,6 +13054,8 @@ export interface QDialogOptions {
|
|
|
12945
13054
|
items?: any[];
|
|
12946
13055
|
/**
|
|
12947
13056
|
* Is the model valid?
|
|
13057
|
+
* @param model The current model (String if it's of type radio or Array otherwise)
|
|
13058
|
+
* @returns The selection passed validation or not
|
|
12948
13059
|
*/
|
|
12949
13060
|
isValid?: (model: string | any[]) => boolean;
|
|
12950
13061
|
};
|