quasar 2.12.1 → 2.12.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/LoadingBar.json +2 -2
- package/dist/api/Morph.json +1 -1
- package/dist/api/QEditor.json +5 -0
- package/dist/api/Scroll.json +6 -3
- package/dist/api/ScrollFire.json +6 -3
- package/dist/api/TouchHold.json +6 -3
- package/dist/api/TouchPan.json +6 -3
- package/dist/api/TouchRepeat.json +6 -3
- package/dist/api/TouchSwipe.json +6 -3
- package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
- package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/material-icons.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-sharp.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/mdi-v7.umd.prod.js +1 -1
- package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v7.umd.prod.js +1 -1
- package/dist/icon-set/svg-themify.umd.prod.js +1 -1
- package/dist/icon-set/themify.umd.prod.js +1 -1
- package/dist/lang/ar-TN.umd.prod.js +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/eu.umd.prod.js +1 -1
- package/dist/lang/fa-IR.umd.prod.js +1 -1
- package/dist/lang/fa.umd.prod.js +1 -1
- package/dist/lang/fi.umd.prod.js +1 -1
- package/dist/lang/fr.umd.prod.js +1 -1
- package/dist/lang/gn.umd.prod.js +1 -1
- package/dist/lang/he.umd.prod.js +1 -1
- package/dist/lang/hr.umd.prod.js +1 -1
- package/dist/lang/hu.umd.prod.js +1 -1
- package/dist/lang/id.umd.prod.js +1 -1
- package/dist/lang/is.umd.prod.js +1 -1
- package/dist/lang/it.umd.prod.js +1 -1
- package/dist/lang/ja.umd.prod.js +1 -1
- package/dist/lang/kk.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/mk.umd.prod.js +1 -1
- package/dist/lang/ml.umd.prod.js +1 -1
- package/dist/lang/mm.umd.prod.js +1 -1
- package/dist/lang/ms.umd.prod.js +1 -1
- package/dist/lang/my.umd.prod.js +1 -1
- package/dist/lang/nb-NO.umd.prod.js +1 -1
- package/dist/lang/nl.umd.prod.js +1 -1
- package/dist/lang/pl.umd.prod.js +1 -1
- package/dist/lang/pt-BR.umd.prod.js +1 -1
- package/dist/lang/pt.umd.prod.js +1 -1
- package/dist/lang/ro.umd.prod.js +1 -1
- package/dist/lang/ru.umd.prod.js +1 -1
- package/dist/lang/sk.umd.prod.js +1 -1
- package/dist/lang/sl.umd.prod.js +1 -1
- package/dist/lang/sm.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/uz-Cyrl.umd.prod.js +1 -1
- package/dist/lang/uz-Latn.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.esm.js +10 -4
- package/dist/quasar.esm.prod.js +2 -2
- package/dist/quasar.sass +1 -1
- package/dist/quasar.umd.js +10 -4
- package/dist/quasar.umd.prod.js +2 -2
- package/dist/types/api/qloadingbar.d.ts +1 -1
- package/dist/types/index.d.ts +1524 -49
- package/dist/web-types/web-types.json +14 -8
- package/package.json +1 -1
- package/src/components/editor/QEditor.json +6 -0
- package/src/directives/Morph.json +1 -1
- package/src/directives/Scroll.json +3 -3
- package/src/directives/ScrollFire.json +3 -3
- package/src/directives/TouchHold.json +3 -3
- package/src/directives/TouchPan.json +3 -3
- package/src/directives/TouchRepeat.json +3 -3
- package/src/directives/TouchSwipe.json +3 -3
- package/src/plugins/LoadingBar.json +2 -2
- package/src/utils/private/click-outside.js +6 -0
- package/src/utils/private/position-engine.js +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="@quasar/app" />
|
|
3
3
|
/// <reference types="@quasar/app-webpack" />
|
|
4
4
|
/// <reference types="@quasar/app-vite" />
|
|
5
|
-
import { App, Component, ComponentPublicInstance, VNode } from "vue";
|
|
5
|
+
import { App, Component, ComponentPublicInstance, Directive, VNode } from "vue";
|
|
6
6
|
import { ComponentConstructor, GlobalComponentConstructor } from "./ts-helpers";
|
|
7
7
|
|
|
8
8
|
export interface AddressbarColor {
|
|
@@ -322,7 +322,7 @@ export interface LoadingBar {
|
|
|
322
322
|
increment: (amount?: number) => void;
|
|
323
323
|
/**
|
|
324
324
|
* Set the inner QAjaxBar's props
|
|
325
|
-
* @param props QAjaxBar component props
|
|
325
|
+
* @param props QAjaxBar component props
|
|
326
326
|
*/
|
|
327
327
|
setDefaults: (props: QLoadingBarOptions) => void;
|
|
328
328
|
}
|
|
@@ -788,28 +788,881 @@ export interface SessionStorage {
|
|
|
788
788
|
isEmpty: () => boolean;
|
|
789
789
|
}
|
|
790
790
|
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
791
|
+
/**
|
|
792
|
+
* If value is 0 or 'false' then directive is disabled; if value is < 0 then it closes all popups in the chain; if value is 1 or 'true' or undefined then it closes only the parent popup; if value is > 1 it closes the specified number of parent popups in the chain (note that chained QMenus are considered 1 popup only & QPopupProxy separates chained menus)
|
|
793
|
+
*
|
|
794
|
+
* @see https://v2.quasar.dev/vue-directives/close-popup
|
|
795
|
+
*/
|
|
796
|
+
export type ClosePopupValue = boolean | number | string;
|
|
797
|
+
/**
|
|
798
|
+
* If value is 0 or 'false' then directive is disabled; if value is < 0 then it closes all popups in the chain; if value is 1 or 'true' or undefined then it closes only the parent popup; if value is > 1 it closes the specified number of parent popups in the chain (note that chained QMenus are considered 1 popup only & QPopupProxy separates chained menus)
|
|
799
|
+
*
|
|
800
|
+
* @see https://v2.quasar.dev/vue-directives/close-popup
|
|
801
|
+
*/
|
|
802
|
+
export type ClosePopup = Directive<any, ClosePopupValue>;
|
|
803
|
+
/**
|
|
804
|
+
* Function to call when scrolling occurs (identical to description of 'handler' prop of the Object form); If using the Object form, it is HIGHLY recommended to reference it from your vue component scope, otherwise the directive update cycle will continuously recreate the observer which hits performance hard
|
|
805
|
+
*
|
|
806
|
+
* @see https://v2.quasar.dev/vue-directives/intersection
|
|
807
|
+
*/
|
|
808
|
+
export type IntersectionValue =
|
|
809
|
+
| {
|
|
810
|
+
/**
|
|
811
|
+
* The handler function to be called
|
|
812
|
+
* @param entry The IntersectionObserverEntry object
|
|
813
|
+
* @returns If you return Boolean false from the handler, the observer stops
|
|
814
|
+
*/
|
|
815
|
+
handler?: (entry?: {
|
|
816
|
+
/**
|
|
817
|
+
* Object containing the client rect information
|
|
818
|
+
*/
|
|
819
|
+
boundingClientRect?: {
|
|
820
|
+
/**
|
|
821
|
+
* The bottom of the client rect
|
|
822
|
+
*/
|
|
823
|
+
bottom?: number;
|
|
824
|
+
/**
|
|
825
|
+
* The height of the client rect
|
|
826
|
+
*/
|
|
827
|
+
height?: number;
|
|
828
|
+
/**
|
|
829
|
+
* The left of the client rect
|
|
830
|
+
*/
|
|
831
|
+
left?: number;
|
|
832
|
+
/**
|
|
833
|
+
* The right of the client rect
|
|
834
|
+
*/
|
|
835
|
+
right?: number;
|
|
836
|
+
/**
|
|
837
|
+
* The top of the client rect
|
|
838
|
+
*/
|
|
839
|
+
top?: number;
|
|
840
|
+
/**
|
|
841
|
+
* The width of the client rect
|
|
842
|
+
*/
|
|
843
|
+
width?: number;
|
|
844
|
+
/**
|
|
845
|
+
* The x position of the client rect
|
|
846
|
+
*/
|
|
847
|
+
x?: number;
|
|
848
|
+
/**
|
|
849
|
+
* The y position of the client rect
|
|
850
|
+
*/
|
|
851
|
+
y?: number;
|
|
852
|
+
};
|
|
853
|
+
/**
|
|
854
|
+
* The ratio of the observed objects visibility
|
|
855
|
+
*/
|
|
856
|
+
intersectionRatio?: number;
|
|
857
|
+
/**
|
|
858
|
+
* Object containing the client rect information
|
|
859
|
+
*/
|
|
860
|
+
intersectionRect?: {
|
|
861
|
+
/**
|
|
862
|
+
* The bottom of the client rect
|
|
863
|
+
*/
|
|
864
|
+
bottom?: number;
|
|
865
|
+
/**
|
|
866
|
+
* The height of the client rect
|
|
867
|
+
*/
|
|
868
|
+
height?: number;
|
|
869
|
+
/**
|
|
870
|
+
* The left of the client rect
|
|
871
|
+
*/
|
|
872
|
+
left?: number;
|
|
873
|
+
/**
|
|
874
|
+
* The right of the client rect
|
|
875
|
+
*/
|
|
876
|
+
right?: number;
|
|
877
|
+
/**
|
|
878
|
+
* The top of the client rect
|
|
879
|
+
*/
|
|
880
|
+
top?: number;
|
|
881
|
+
/**
|
|
882
|
+
* The width of the client rect
|
|
883
|
+
*/
|
|
884
|
+
width?: number;
|
|
885
|
+
/**
|
|
886
|
+
* The x position of the client rect
|
|
887
|
+
*/
|
|
888
|
+
x?: number;
|
|
889
|
+
/**
|
|
890
|
+
* The y position of the client rect
|
|
891
|
+
*/
|
|
892
|
+
y?: number;
|
|
893
|
+
};
|
|
894
|
+
/**
|
|
895
|
+
* It is Boolean true if intersecting the scrollable area
|
|
896
|
+
*/
|
|
897
|
+
isIntersecting?: boolean;
|
|
898
|
+
/**
|
|
899
|
+
* Object containing the client rect information
|
|
900
|
+
*/
|
|
901
|
+
rootBounds?: {
|
|
902
|
+
/**
|
|
903
|
+
* The bottom of the client rect
|
|
904
|
+
*/
|
|
905
|
+
bottom?: number;
|
|
906
|
+
/**
|
|
907
|
+
* The height of the client rect
|
|
908
|
+
*/
|
|
909
|
+
height?: number;
|
|
910
|
+
/**
|
|
911
|
+
* The left of the client rect
|
|
912
|
+
*/
|
|
913
|
+
left?: number;
|
|
914
|
+
/**
|
|
915
|
+
* The right of the client rect
|
|
916
|
+
*/
|
|
917
|
+
right?: number;
|
|
918
|
+
/**
|
|
919
|
+
* The top of the client rect
|
|
920
|
+
*/
|
|
921
|
+
top?: number;
|
|
922
|
+
/**
|
|
923
|
+
* The width of the client rect
|
|
924
|
+
*/
|
|
925
|
+
width?: number;
|
|
926
|
+
/**
|
|
927
|
+
* The x position of the client rect
|
|
928
|
+
*/
|
|
929
|
+
x?: number;
|
|
930
|
+
/**
|
|
931
|
+
* The y position of the client rect
|
|
932
|
+
*/
|
|
933
|
+
y?: number;
|
|
934
|
+
};
|
|
935
|
+
/**
|
|
936
|
+
* The target element
|
|
937
|
+
*/
|
|
938
|
+
target?: Element;
|
|
939
|
+
/**
|
|
940
|
+
* The timestamp of the event
|
|
941
|
+
*/
|
|
942
|
+
time?: number;
|
|
943
|
+
}) => boolean;
|
|
944
|
+
/**
|
|
945
|
+
* Intersection observer options (can be omitted and all its props are optional)
|
|
946
|
+
*/
|
|
947
|
+
cfg?: {
|
|
948
|
+
/**
|
|
949
|
+
* Lets you define an alternative to the viewport as your root (through its DOM element); It is important to keep in mind that root needs to be an ancestor of the observed element
|
|
950
|
+
*/
|
|
951
|
+
root?: Element;
|
|
952
|
+
/**
|
|
953
|
+
* Allows you to specify the margins for the root, effectively allowing you to either grow or shrink the area used for intersections
|
|
954
|
+
*/
|
|
955
|
+
rootMargin?: string;
|
|
956
|
+
/**
|
|
957
|
+
* Threshold(s) at which to trigger callback, specified as a ratio, or list of ratios, of (visible area / total area) of the observed element
|
|
958
|
+
*/
|
|
959
|
+
threshold?: readonly any[];
|
|
960
|
+
};
|
|
961
|
+
}
|
|
962
|
+
| (() => void);
|
|
963
|
+
/**
|
|
964
|
+
* Function to call when scrolling occurs (identical to description of 'handler' prop of the Object form); If using the Object form, it is HIGHLY recommended to reference it from your vue component scope, otherwise the directive update cycle will continuously recreate the observer which hits performance hard
|
|
965
|
+
*
|
|
966
|
+
* Modifiers:
|
|
967
|
+
* - once:
|
|
968
|
+
* - type: boolean
|
|
969
|
+
* - description: Call handler only once, when the conditions are first met
|
|
970
|
+
* - examples:
|
|
971
|
+
* - v-intersection.once
|
|
972
|
+
*
|
|
973
|
+
* @see https://v2.quasar.dev/vue-directives/intersection
|
|
974
|
+
*/
|
|
975
|
+
export type Intersection = Directive<any, IntersectionValue>;
|
|
976
|
+
/**
|
|
977
|
+
* Configuration object or trigger value
|
|
978
|
+
*
|
|
979
|
+
* @see https://v2.quasar.dev/vue-directives/morph
|
|
980
|
+
*/
|
|
981
|
+
export type MorphValue =
|
|
982
|
+
| {
|
|
983
|
+
/**
|
|
984
|
+
* Name of the morph group the element belongs to
|
|
985
|
+
*/
|
|
986
|
+
group?: string;
|
|
987
|
+
/**
|
|
988
|
+
* Name of the morph inside the group that the element belongs to
|
|
989
|
+
*/
|
|
990
|
+
name?: string;
|
|
991
|
+
/**
|
|
992
|
+
* Current value of the group model; when it becomes the same as the 'name' it triggers the morphing
|
|
993
|
+
*/
|
|
994
|
+
model?: string;
|
|
995
|
+
/**
|
|
996
|
+
* Duration of the animation (in milliseconds)
|
|
997
|
+
* Default value: 300
|
|
998
|
+
*/
|
|
999
|
+
duration?: number;
|
|
1000
|
+
/**
|
|
1001
|
+
* Delay for the animation (in milliseconds)
|
|
1002
|
+
* Default value: 0
|
|
1003
|
+
*/
|
|
1004
|
+
delay?: number;
|
|
1005
|
+
/**
|
|
1006
|
+
* Timing function for the animation (CSS easing format)
|
|
1007
|
+
* Default value: ease-in-out
|
|
1008
|
+
*/
|
|
1009
|
+
easing?: string;
|
|
1010
|
+
/**
|
|
1011
|
+
* Fill mode for the animation
|
|
1012
|
+
* Default value: none
|
|
1013
|
+
*/
|
|
1014
|
+
fill?: string;
|
|
1015
|
+
/**
|
|
1016
|
+
* Class names to be added to the destination element during the animation
|
|
1017
|
+
*/
|
|
1018
|
+
classes?: string;
|
|
1019
|
+
/**
|
|
1020
|
+
* Styles to be added to the destination element during the animation
|
|
1021
|
+
*/
|
|
1022
|
+
style?: string | any;
|
|
1023
|
+
/**
|
|
1024
|
+
* Use resize instead of scaling during animation
|
|
1025
|
+
*/
|
|
1026
|
+
resize?: boolean;
|
|
1027
|
+
/**
|
|
1028
|
+
* Use CSS animations instead of the Animation API
|
|
1029
|
+
*/
|
|
1030
|
+
useCSS?: boolean;
|
|
1031
|
+
/**
|
|
1032
|
+
* Hide the spacer for the initial element during animation; Use it if the initial element is not removed or resizing of the space occupied by the initial element is not desired
|
|
1033
|
+
*/
|
|
1034
|
+
hideFromClone?: boolean;
|
|
1035
|
+
/**
|
|
1036
|
+
* Keep a clone of the final element visible during animation
|
|
1037
|
+
*/
|
|
1038
|
+
keepToClone?: boolean;
|
|
1039
|
+
/**
|
|
1040
|
+
* Use an opacity tween between the initial and final elements
|
|
1041
|
+
*/
|
|
1042
|
+
tween?: boolean;
|
|
1043
|
+
/**
|
|
1044
|
+
* If using tween it is the initial opacity of the initial element (will be animated to 0) - the initial element is placed on top of the final element
|
|
1045
|
+
* Default value: 0.6
|
|
1046
|
+
*/
|
|
1047
|
+
tweenFromOpacity?: number;
|
|
1048
|
+
/**
|
|
1049
|
+
* If using tween it is the initial opacity of the final element (will be animated to 1)
|
|
1050
|
+
* Default value: 0.5
|
|
1051
|
+
*/
|
|
1052
|
+
tweenToOpacity?: number;
|
|
1053
|
+
/**
|
|
1054
|
+
* Delay animation start for that number of milliseconds, or until a 'transitionend' event is emitted by the destination element, or until the promise is resolved (if the promise is rejected the morphing will abort, but the `toggle function` was already called)
|
|
1055
|
+
* Default value: 0
|
|
1056
|
+
*/
|
|
1057
|
+
waitFor?: number | string | Promise<void>;
|
|
1058
|
+
/**
|
|
1059
|
+
* A function that will be called once the morphing is finished; Not called if morphing is aborted
|
|
1060
|
+
* @param direction 'to' if the morphing was finished in the final state or 'from' if it was finished in the initial state
|
|
1061
|
+
* @param aborted Was the morphing aborted?
|
|
1062
|
+
*/
|
|
1063
|
+
onEnd?: (direction?: "to" | "from", aborted?: boolean) => void;
|
|
1064
|
+
}
|
|
1065
|
+
| any;
|
|
1066
|
+
/**
|
|
1067
|
+
* Configuration object or trigger value
|
|
1068
|
+
*
|
|
1069
|
+
* Directive argument:
|
|
1070
|
+
* - type: string
|
|
1071
|
+
* - description: x:x2:y:z, where x is the morph element name, x2 is the morph group, y is the animation duration (in milliseconds) and z is the amount of time to wait (in milliseconds) or the 'transitionend' string
|
|
1072
|
+
* - examples:
|
|
1073
|
+
* - v-morph:name="options"
|
|
1074
|
+
* - v-morph:name:groupName="options"
|
|
1075
|
+
* - v-morph:name:groupName:400="options"
|
|
1076
|
+
* - v-morph:name:groupName:400:100="options"
|
|
1077
|
+
* - v-morph:name:groupName:400:transitionend="options"
|
|
1078
|
+
*
|
|
1079
|
+
* Modifiers:
|
|
1080
|
+
* - resize:
|
|
1081
|
+
* - type: boolean
|
|
1082
|
+
* - description: Use resize instead of scale transform for morph (forceResize option of the morph function)
|
|
1083
|
+
* - useCSS:
|
|
1084
|
+
* - type: boolean
|
|
1085
|
+
* - description: Use CSS animations for morph (forceCssAnimation option of the morph function)
|
|
1086
|
+
* - hideFromClone:
|
|
1087
|
+
* - type: boolean
|
|
1088
|
+
* - description: Hide the spacer for the initial element (hideFromClone option of the morph function)
|
|
1089
|
+
* - keepToClone:
|
|
1090
|
+
* - type: boolean
|
|
1091
|
+
* - description: Keep the final element visible while morphing (keepToClone option of the morph function)
|
|
1092
|
+
* - tween:
|
|
1093
|
+
* - type: boolean
|
|
1094
|
+
* - description: Use opacity tween morphing between initial and final elements (tween option of the morph function)
|
|
1095
|
+
*
|
|
1096
|
+
* @see https://v2.quasar.dev/vue-directives/morph
|
|
1097
|
+
*/
|
|
1098
|
+
export type Morph = Directive<any, MorphValue>;
|
|
1099
|
+
/**
|
|
1100
|
+
* Function to call when mutation occurs; It is HIGHLY recommended to reference it from your vue component scope, otherwise the directive update cycle will continuously recreate the observer which hits performance hard
|
|
1101
|
+
*
|
|
1102
|
+
* @see https://v2.quasar.dev/vue-directives/mutation
|
|
1103
|
+
*/
|
|
1104
|
+
export type MutationValue = (
|
|
1105
|
+
mutationList: {
|
|
1106
|
+
/**
|
|
1107
|
+
* Type of mutation
|
|
1108
|
+
*/
|
|
1109
|
+
type?: "childList" | "attributes" | "characterData";
|
|
1110
|
+
/**
|
|
1111
|
+
* The DOM element that the mutation affected, depending on the mutation type
|
|
1112
|
+
*/
|
|
1113
|
+
target?: Element;
|
|
1114
|
+
/**
|
|
1115
|
+
* The NodeList of the nodes that have been added
|
|
1116
|
+
*/
|
|
1117
|
+
addedNodes?: readonly any[];
|
|
1118
|
+
/**
|
|
1119
|
+
* The NodeList of the nodes that have been removed
|
|
1120
|
+
*/
|
|
1121
|
+
removedNodes?: readonly any[];
|
|
1122
|
+
/**
|
|
1123
|
+
* The previous sibling of the added or removed nodes, or null
|
|
1124
|
+
*/
|
|
1125
|
+
previousSibling?: any;
|
|
1126
|
+
/**
|
|
1127
|
+
* The next sibling of the added or removed nodes, or null
|
|
1128
|
+
*/
|
|
1129
|
+
nextSibling?: any;
|
|
1130
|
+
/**
|
|
1131
|
+
* The local name of the changed attribute, or null
|
|
1132
|
+
*/
|
|
1133
|
+
attributeName?: string;
|
|
1134
|
+
/**
|
|
1135
|
+
* The namespace of the changed attribute, or null
|
|
1136
|
+
*/
|
|
1137
|
+
attributeNamespace?: string;
|
|
1138
|
+
/**
|
|
1139
|
+
* Value depends on the mutation type; For attributes, it is the value of the changed attribute before the change; For characterData it is data of the changed node before the change; For childList it is null; Note that for this to work as expected, attributeOldValue or characterDataOldValue must be set
|
|
1140
|
+
*/
|
|
1141
|
+
oldValue?: string;
|
|
1142
|
+
}[]
|
|
1143
|
+
) => boolean;
|
|
1144
|
+
/**
|
|
1145
|
+
* Function to call when mutation occurs; It is HIGHLY recommended to reference it from your vue component scope, otherwise the directive update cycle will continuously recreate the observer which hits performance hard
|
|
1146
|
+
*
|
|
1147
|
+
* Modifiers:
|
|
1148
|
+
* - once:
|
|
1149
|
+
* - type: boolean
|
|
1150
|
+
* - description: Call handler only once, when the first mutation was triggered, then stop monitoring
|
|
1151
|
+
* - examples:
|
|
1152
|
+
* - v-mutation.once
|
|
1153
|
+
* - childList:
|
|
1154
|
+
* - type: boolean
|
|
1155
|
+
* - description: Monitor the target node (and, if 'subtree' is also set, its descendants) for the addition of new child nodes or removal of existing child nodes
|
|
1156
|
+
* - examples:
|
|
1157
|
+
* - v-mutation.childList
|
|
1158
|
+
* - subtree:
|
|
1159
|
+
* - type: boolean
|
|
1160
|
+
* - description: Extend monitoring to the entire subtree of nodes rooted at target
|
|
1161
|
+
* - examples:
|
|
1162
|
+
* - v-mutation.subtree
|
|
1163
|
+
* - attributes:
|
|
1164
|
+
* - type: boolean
|
|
1165
|
+
* - description: Watch for changes to the value of attributes on the node or nodes being monitored
|
|
1166
|
+
* - examples:
|
|
1167
|
+
* - v-mutation.attributes
|
|
1168
|
+
* - characterData:
|
|
1169
|
+
* - type: boolean
|
|
1170
|
+
* - description: Monitor the specified target node or subtree for changes to the character data contained within the node or nodes
|
|
1171
|
+
* - examples:
|
|
1172
|
+
* - v-mutation.characterData
|
|
1173
|
+
* - attributeOldValue:
|
|
1174
|
+
* - type: boolean
|
|
1175
|
+
* - description: Record the previous value of any attribute that changes when monitoring the node or nodes for attribute changes
|
|
1176
|
+
* - examples:
|
|
1177
|
+
* - v-mutation.attributeOldValue
|
|
1178
|
+
* - characterDataOldValue:
|
|
1179
|
+
* - type: boolean
|
|
1180
|
+
* - description: Record the previous value of a node's text whenever the text changes on nodes being monitored
|
|
1181
|
+
* - examples:
|
|
1182
|
+
* - v-mutation.characterDataOldValue
|
|
1183
|
+
*
|
|
1184
|
+
* @see https://v2.quasar.dev/vue-directives/mutation
|
|
1185
|
+
*/
|
|
1186
|
+
export type Mutation = Directive<any, MutationValue>;
|
|
1187
|
+
/**
|
|
1188
|
+
* Boolean (if just wanting to enable/disable) or Object for configuring more options
|
|
1189
|
+
*
|
|
1190
|
+
* @see https://v2.quasar.dev/vue-directives/material-ripple
|
|
1191
|
+
*/
|
|
1192
|
+
export type RippleValue =
|
|
1193
|
+
| boolean
|
|
1194
|
+
| {
|
|
1195
|
+
/**
|
|
1196
|
+
* Trigger early/immediately on user interaction
|
|
1197
|
+
*/
|
|
1198
|
+
early?: boolean;
|
|
1199
|
+
/**
|
|
1200
|
+
* Stop click/touch event propagation
|
|
1201
|
+
*/
|
|
1202
|
+
stop?: boolean;
|
|
1203
|
+
/**
|
|
1204
|
+
* Ripple starts from the absolute center
|
|
1205
|
+
*/
|
|
1206
|
+
center?: boolean;
|
|
1207
|
+
/**
|
|
1208
|
+
* Color name from Quasar Color Palette; Overrides default dynamic color
|
|
1209
|
+
*/
|
|
1210
|
+
color?: string;
|
|
1211
|
+
/**
|
|
1212
|
+
* List of keyCode that should trigger the ripple
|
|
1213
|
+
*/
|
|
1214
|
+
keyCodes?: readonly any[] | number;
|
|
1215
|
+
};
|
|
1216
|
+
/**
|
|
1217
|
+
* Boolean (if just wanting to enable/disable) or Object for configuring more options
|
|
1218
|
+
*
|
|
1219
|
+
* Directive argument:
|
|
1220
|
+
* - type: string
|
|
1221
|
+
* - description: Color name from Quasar Color Palette; Overrides default dynamic color
|
|
1222
|
+
* - examples:
|
|
1223
|
+
* - v-ripple:orange-5
|
|
1224
|
+
*
|
|
1225
|
+
* Modifiers:
|
|
1226
|
+
* - early:
|
|
1227
|
+
* - type: boolean
|
|
1228
|
+
* - description: Trigger early/immediately on user interaction
|
|
1229
|
+
* - stop:
|
|
1230
|
+
* - type: boolean
|
|
1231
|
+
* - description: Stop click/touch event propagation
|
|
1232
|
+
* - examples:
|
|
1233
|
+
* - v-ripple.stop
|
|
1234
|
+
* - center:
|
|
1235
|
+
* - type: boolean
|
|
1236
|
+
* - description: Ripple starts from the absolute center
|
|
1237
|
+
* - examples:
|
|
1238
|
+
* - v-ripple.center
|
|
1239
|
+
*
|
|
1240
|
+
* @see https://v2.quasar.dev/vue-directives/material-ripple
|
|
1241
|
+
*/
|
|
1242
|
+
export type Ripple = Directive<any, RippleValue>;
|
|
1243
|
+
/**
|
|
1244
|
+
* Function to call when scrolling occurs (use undefined to disable)
|
|
1245
|
+
*
|
|
1246
|
+
* @see https://v2.quasar.dev/vue-directives/scroll
|
|
1247
|
+
*/
|
|
1248
|
+
export type ScrollValue =
|
|
1249
|
+
| ((verticalScrollPosition: number, horizontalScrollPosition: number) => void)
|
|
1250
|
+
| undefined;
|
|
1251
|
+
/**
|
|
1252
|
+
* Function to call when scrolling occurs (use undefined to disable)
|
|
1253
|
+
*
|
|
1254
|
+
* @see https://v2.quasar.dev/vue-directives/scroll
|
|
1255
|
+
*/
|
|
1256
|
+
export type Scroll = Directive<any, ScrollValue>;
|
|
1257
|
+
/**
|
|
1258
|
+
* Function to call when scrolling and element comes into the viewport (use undefined to disable)
|
|
1259
|
+
*
|
|
1260
|
+
* @see https://v2.quasar.dev/vue-directives/scroll-fire
|
|
1261
|
+
*/
|
|
1262
|
+
export type ScrollFireValue = ((el: Element) => void) | undefined;
|
|
1263
|
+
/**
|
|
1264
|
+
* Function to call when scrolling and element comes into the viewport (use undefined to disable)
|
|
1265
|
+
*
|
|
1266
|
+
* @see https://v2.quasar.dev/vue-directives/scroll-fire
|
|
1267
|
+
*/
|
|
1268
|
+
export type ScrollFire = Directive<any, ScrollFireValue>;
|
|
1269
|
+
/**
|
|
1270
|
+
* Function to call after user has hold touch/click for the specified amount of time (use undefined to disable)
|
|
1271
|
+
*
|
|
1272
|
+
* @see https://v2.quasar.dev/vue-directives/touch-hold
|
|
1273
|
+
*/
|
|
1274
|
+
export type TouchHoldValue =
|
|
1275
|
+
| ((details: {
|
|
1276
|
+
/**
|
|
1277
|
+
* Original JS event Object
|
|
1278
|
+
*/
|
|
1279
|
+
evt?: Event;
|
|
1280
|
+
/**
|
|
1281
|
+
* Triggered by a touch event
|
|
1282
|
+
*/
|
|
1283
|
+
touch?: boolean;
|
|
1284
|
+
/**
|
|
1285
|
+
* Triggered by a mouse event
|
|
1286
|
+
*/
|
|
1287
|
+
mouse?: boolean;
|
|
1288
|
+
/**
|
|
1289
|
+
* Event Position Object
|
|
1290
|
+
*/
|
|
1291
|
+
position?: {
|
|
1292
|
+
/**
|
|
1293
|
+
* Vertical offset from top of window
|
|
1294
|
+
*/
|
|
1295
|
+
top?: number;
|
|
1296
|
+
/**
|
|
1297
|
+
* Horizontal offset from left of window
|
|
1298
|
+
*/
|
|
1299
|
+
left?: number;
|
|
1300
|
+
};
|
|
1301
|
+
/**
|
|
1302
|
+
* How long it took to trigger the event (in milliseconds)
|
|
1303
|
+
*/
|
|
1304
|
+
duration?: number;
|
|
1305
|
+
}) => void)
|
|
1306
|
+
| undefined;
|
|
1307
|
+
/**
|
|
1308
|
+
* Function to call after user has hold touch/click for the specified amount of time (use undefined to disable)
|
|
1309
|
+
*
|
|
1310
|
+
* Directive argument:
|
|
1311
|
+
* - type: string
|
|
1312
|
+
* - default: 600:5:7
|
|
1313
|
+
* - description: x:y:z, where x is the amount of time to wait (in milliseconds), y is the touch event sensitivity (in pixels) and z is the mouse event sensitivity (in pixels)
|
|
1314
|
+
* - examples:
|
|
1315
|
+
* - v-touch-hold:400="fnToCall"
|
|
1316
|
+
* - v-touch-hold:400:15="fnToCall"
|
|
1317
|
+
* - v-touch-hold:400:10:10="fnToCall"
|
|
1318
|
+
*
|
|
1319
|
+
* Modifiers:
|
|
1320
|
+
* - capture:
|
|
1321
|
+
* - type: boolean
|
|
1322
|
+
* - description: Use capture for touchstart event
|
|
1323
|
+
* - mouse:
|
|
1324
|
+
* - type: boolean
|
|
1325
|
+
* - description: Listen for mouse events too
|
|
1326
|
+
* - mouseCapture:
|
|
1327
|
+
* - type: boolean
|
|
1328
|
+
* - description: Use capture for mousedown event
|
|
1329
|
+
*
|
|
1330
|
+
* @see https://v2.quasar.dev/vue-directives/touch-hold
|
|
1331
|
+
*/
|
|
1332
|
+
export type TouchHold = Directive<any, TouchHoldValue>;
|
|
1333
|
+
/**
|
|
1334
|
+
* Handler for panning (use undefined to disable)
|
|
1335
|
+
*
|
|
1336
|
+
* @see https://v2.quasar.dev/vue-directives/touch-pan
|
|
1337
|
+
*/
|
|
1338
|
+
export type TouchPanValue =
|
|
1339
|
+
| ((details: {
|
|
1340
|
+
/**
|
|
1341
|
+
* Original JS event Object
|
|
1342
|
+
*/
|
|
1343
|
+
evt?: Event;
|
|
1344
|
+
/**
|
|
1345
|
+
* Triggered by a touch event
|
|
1346
|
+
*/
|
|
1347
|
+
touch?: boolean;
|
|
1348
|
+
/**
|
|
1349
|
+
* Triggered by a mouse event
|
|
1350
|
+
*/
|
|
1351
|
+
mouse?: boolean;
|
|
1352
|
+
/**
|
|
1353
|
+
* Event Position Object
|
|
1354
|
+
*/
|
|
1355
|
+
position?: {
|
|
1356
|
+
/**
|
|
1357
|
+
* Vertical offset from top of window
|
|
1358
|
+
*/
|
|
1359
|
+
top?: number;
|
|
1360
|
+
/**
|
|
1361
|
+
* Horizontal offset from left of window
|
|
1362
|
+
*/
|
|
1363
|
+
left?: number;
|
|
1364
|
+
};
|
|
1365
|
+
/**
|
|
1366
|
+
* Direction of movement
|
|
1367
|
+
*/
|
|
1368
|
+
direction?: "up" | "right" | "down" | "left";
|
|
1369
|
+
/**
|
|
1370
|
+
* Is first time the handler is called since movement started
|
|
1371
|
+
*/
|
|
1372
|
+
isFirst?: boolean;
|
|
1373
|
+
/**
|
|
1374
|
+
* Is last time the handler is called since movement ended
|
|
1375
|
+
*/
|
|
1376
|
+
isFinal?: boolean;
|
|
1377
|
+
/**
|
|
1378
|
+
* How long it took to trigger the event (in milliseconds)
|
|
1379
|
+
*/
|
|
1380
|
+
duration?: number;
|
|
1381
|
+
/**
|
|
1382
|
+
* Absolute distance (in pixels) since movement started from initial point
|
|
1383
|
+
*/
|
|
1384
|
+
distance?: {
|
|
1385
|
+
/**
|
|
1386
|
+
* Absolute distance horizontally
|
|
1387
|
+
*/
|
|
1388
|
+
x?: number;
|
|
1389
|
+
/**
|
|
1390
|
+
* Absolute distance vertically
|
|
1391
|
+
*/
|
|
1392
|
+
y?: number;
|
|
1393
|
+
};
|
|
1394
|
+
/**
|
|
1395
|
+
* Distance (in pixels) since movement started from initial point
|
|
1396
|
+
*/
|
|
1397
|
+
offset?: {
|
|
1398
|
+
/**
|
|
1399
|
+
* Distance horizontally
|
|
1400
|
+
*/
|
|
1401
|
+
x?: number;
|
|
1402
|
+
/**
|
|
1403
|
+
* Distance vertically
|
|
1404
|
+
*/
|
|
1405
|
+
y?: number;
|
|
1406
|
+
};
|
|
1407
|
+
/**
|
|
1408
|
+
* Delta of distance (in pixels) since handler was called last time
|
|
1409
|
+
*/
|
|
1410
|
+
delta?: {
|
|
1411
|
+
/**
|
|
1412
|
+
* Distance horizontally
|
|
1413
|
+
*/
|
|
1414
|
+
x?: number;
|
|
1415
|
+
/**
|
|
1416
|
+
* Distance vertically
|
|
1417
|
+
*/
|
|
1418
|
+
y?: number;
|
|
1419
|
+
};
|
|
1420
|
+
}) => void)
|
|
1421
|
+
| undefined;
|
|
1422
|
+
/**
|
|
1423
|
+
* Handler for panning (use undefined to disable)
|
|
1424
|
+
*
|
|
1425
|
+
* Modifiers:
|
|
1426
|
+
* - stop:
|
|
1427
|
+
* - type: boolean
|
|
1428
|
+
* - description: Stop event propagation for touch events
|
|
1429
|
+
* - prevent:
|
|
1430
|
+
* - type: boolean
|
|
1431
|
+
* - description: Calls event.preventDefault() for touch events
|
|
1432
|
+
* - capture:
|
|
1433
|
+
* - type: boolean
|
|
1434
|
+
* - description: Use capture for touchstart event
|
|
1435
|
+
* - mouse:
|
|
1436
|
+
* - type: boolean
|
|
1437
|
+
* - description: Listen for mouse events too
|
|
1438
|
+
* - mouseCapture:
|
|
1439
|
+
* - type: boolean
|
|
1440
|
+
* - description: Use capture for mousedown event
|
|
1441
|
+
* - mouseAllDir:
|
|
1442
|
+
* - type: boolean
|
|
1443
|
+
* - description: Ignore initial mouse move direction (do not abort if the first mouse move is in an unaccepted direction)
|
|
1444
|
+
* - preserveCursor:
|
|
1445
|
+
* - type: boolean
|
|
1446
|
+
* - description: Prevent the mouse cursor from automatically displaying as grabbing when panning
|
|
1447
|
+
* - horizontal:
|
|
1448
|
+
* - type: boolean
|
|
1449
|
+
* - description: Catch horizontal (left/right) movement
|
|
1450
|
+
* - vertical:
|
|
1451
|
+
* - type: boolean
|
|
1452
|
+
* - description: Catch vertical (up/down) movement
|
|
1453
|
+
* - up:
|
|
1454
|
+
* - type: boolean
|
|
1455
|
+
* - description: Catch panning to up
|
|
1456
|
+
* - right:
|
|
1457
|
+
* - type: boolean
|
|
1458
|
+
* - description: Catch panning to right
|
|
1459
|
+
* - down:
|
|
1460
|
+
* - type: boolean
|
|
1461
|
+
* - description: Catch panning to down
|
|
1462
|
+
* - left:
|
|
1463
|
+
* - type: boolean
|
|
1464
|
+
* - description: Catch panning to left
|
|
1465
|
+
*
|
|
1466
|
+
* @see https://v2.quasar.dev/vue-directives/touch-pan
|
|
1467
|
+
*/
|
|
1468
|
+
export type TouchPan = Directive<any, TouchPanValue>;
|
|
1469
|
+
/**
|
|
1470
|
+
* Handler for touch-repeat (use undefined to disable)
|
|
1471
|
+
*
|
|
1472
|
+
* @see https://v2.quasar.dev/vue-directives/touch-repeat
|
|
1473
|
+
*/
|
|
1474
|
+
export type TouchRepeatValue =
|
|
1475
|
+
| ((details: {
|
|
1476
|
+
/**
|
|
1477
|
+
* Original JS event Object
|
|
1478
|
+
*/
|
|
1479
|
+
evt?: Event;
|
|
1480
|
+
/**
|
|
1481
|
+
* Triggered by a touch event
|
|
1482
|
+
*/
|
|
1483
|
+
touch?: boolean;
|
|
1484
|
+
/**
|
|
1485
|
+
* Triggered by a mouse event
|
|
1486
|
+
*/
|
|
1487
|
+
mouse?: boolean;
|
|
1488
|
+
/**
|
|
1489
|
+
* Triggered by a keyboard event
|
|
1490
|
+
*/
|
|
1491
|
+
keyboard?: boolean;
|
|
1492
|
+
/**
|
|
1493
|
+
* Event Position Object; Supplied ONLY if it's a touch or mouse event
|
|
1494
|
+
*/
|
|
1495
|
+
position?: {
|
|
1496
|
+
/**
|
|
1497
|
+
* Vertical offset from top of window
|
|
1498
|
+
*/
|
|
1499
|
+
top?: number;
|
|
1500
|
+
/**
|
|
1501
|
+
* Horizontal offset from left of window
|
|
1502
|
+
*/
|
|
1503
|
+
left?: number;
|
|
1504
|
+
};
|
|
1505
|
+
/**
|
|
1506
|
+
* Keycode; Supplied ONLY if it's a keyboard event
|
|
1507
|
+
*/
|
|
1508
|
+
keyCode?: number;
|
|
1509
|
+
/**
|
|
1510
|
+
* How long it took to trigger the event (in milliseconds)
|
|
1511
|
+
*/
|
|
1512
|
+
duration?: number;
|
|
1513
|
+
/**
|
|
1514
|
+
* Handler called for nth time
|
|
1515
|
+
*/
|
|
1516
|
+
repeatCount?: number;
|
|
1517
|
+
/**
|
|
1518
|
+
* Unix timestamp of the moment when event started; Equivalent to Date.now()
|
|
1519
|
+
*/
|
|
1520
|
+
startTime?: number;
|
|
1521
|
+
}) => void)
|
|
1522
|
+
| undefined;
|
|
1523
|
+
/**
|
|
1524
|
+
* Handler for touch-repeat (use undefined to disable)
|
|
1525
|
+
*
|
|
1526
|
+
* Directive argument:
|
|
1527
|
+
* - type: string
|
|
1528
|
+
* - default: 0:600:300
|
|
1529
|
+
* - description: String of numbers (at least one number) separated by ':' which defines the amount of time to wait for 1st handler call, 2nd, 3rd and so on; All subsequent calls will use last value as time to wait until triggering
|
|
1530
|
+
* - examples:
|
|
1531
|
+
* - v-touch-repeat:0:400="fnToCall"
|
|
1532
|
+
*
|
|
1533
|
+
* Modifiers:
|
|
1534
|
+
* - capture:
|
|
1535
|
+
* - type: boolean
|
|
1536
|
+
* - description: Use capture for touchstart event
|
|
1537
|
+
* - mouse:
|
|
1538
|
+
* - type: boolean
|
|
1539
|
+
* - description: Listen for mouse events too
|
|
1540
|
+
* - mouseCapture:
|
|
1541
|
+
* - type: boolean
|
|
1542
|
+
* - description: Use capture for mousedown event
|
|
1543
|
+
* - keyCapture:
|
|
1544
|
+
* - type: boolean
|
|
1545
|
+
* - description: Use capture for keydown event
|
|
1546
|
+
* - esc:
|
|
1547
|
+
* - type: boolean
|
|
1548
|
+
* - description: Catch ESC key
|
|
1549
|
+
* - tab:
|
|
1550
|
+
* - type: boolean
|
|
1551
|
+
* - description: Catch TAB key
|
|
1552
|
+
* - enter:
|
|
1553
|
+
* - type: boolean
|
|
1554
|
+
* - description: Catch ENTER key
|
|
1555
|
+
* - space:
|
|
1556
|
+
* - type: boolean
|
|
1557
|
+
* - description: Catch SPACE key
|
|
1558
|
+
* - up:
|
|
1559
|
+
* - type: boolean
|
|
1560
|
+
* - description: Catch UP arrow key
|
|
1561
|
+
* - left:
|
|
1562
|
+
* - type: boolean
|
|
1563
|
+
* - description: Catch LEFT arrow key
|
|
1564
|
+
* - right:
|
|
1565
|
+
* - type: boolean
|
|
1566
|
+
* - description: Catch RIGHT arrow key
|
|
1567
|
+
* - down:
|
|
1568
|
+
* - type: boolean
|
|
1569
|
+
* - description: Catch DOWN key
|
|
1570
|
+
* - delete:
|
|
1571
|
+
* - type: boolean
|
|
1572
|
+
* - description: Catch DELETE key
|
|
1573
|
+
* - [keycode]:
|
|
1574
|
+
* - type: number
|
|
1575
|
+
* - description: Key code to catch
|
|
1576
|
+
* - examples:
|
|
1577
|
+
* - v-touch-repeat.68="fnToCall"
|
|
1578
|
+
*
|
|
1579
|
+
* @see https://v2.quasar.dev/vue-directives/touch-repeat
|
|
1580
|
+
*/
|
|
1581
|
+
export type TouchRepeat = Directive<any, TouchRepeatValue>;
|
|
1582
|
+
/**
|
|
1583
|
+
* Handler for swipe (use undefined to disable)
|
|
1584
|
+
*
|
|
1585
|
+
* @see https://v2.quasar.dev/vue-directives/touch-swipe
|
|
1586
|
+
*/
|
|
1587
|
+
export type TouchSwipeValue =
|
|
1588
|
+
| ((details: {
|
|
1589
|
+
/**
|
|
1590
|
+
* Original JS event Object
|
|
1591
|
+
*/
|
|
1592
|
+
evt?: Event;
|
|
1593
|
+
/**
|
|
1594
|
+
* Triggered by a touch event
|
|
1595
|
+
*/
|
|
1596
|
+
touch?: boolean;
|
|
1597
|
+
/**
|
|
1598
|
+
* Triggered by a mouse event
|
|
1599
|
+
*/
|
|
1600
|
+
mouse?: boolean;
|
|
1601
|
+
/**
|
|
1602
|
+
* Direction of movement
|
|
1603
|
+
*/
|
|
1604
|
+
direction?: "up" | "right" | "down" | "left";
|
|
1605
|
+
/**
|
|
1606
|
+
* How long it took to trigger the event (in milliseconds)
|
|
1607
|
+
*/
|
|
1608
|
+
duration?: number;
|
|
1609
|
+
/**
|
|
1610
|
+
* Absolute distance (in pixels) since movement started from initial point
|
|
1611
|
+
*/
|
|
1612
|
+
distance?: {
|
|
1613
|
+
/**
|
|
1614
|
+
* Absolute distance horizontally
|
|
1615
|
+
*/
|
|
1616
|
+
x?: number;
|
|
1617
|
+
/**
|
|
1618
|
+
* Absolute distance vertically
|
|
1619
|
+
*/
|
|
1620
|
+
y?: number;
|
|
1621
|
+
};
|
|
1622
|
+
}) => void)
|
|
1623
|
+
| undefined;
|
|
1624
|
+
/**
|
|
1625
|
+
* Handler for swipe (use undefined to disable)
|
|
1626
|
+
*
|
|
1627
|
+
* Directive argument:
|
|
1628
|
+
* - type: string
|
|
1629
|
+
* - default: 6e-2:6:50
|
|
1630
|
+
* - description: x:y:z, where x is minimum velocity (dist/time; please use float without a dot, example: 6e-2 which is equivalent to 6 * 10^-2 = 0.06), y is minimum distance on first move on mobile, z is minimum distance on desktop until deciding if it's a swipe indeed
|
|
1631
|
+
* - examples:
|
|
1632
|
+
* - v-touch-swipe:7e-2:10:100="fnToCall"
|
|
1633
|
+
*
|
|
1634
|
+
* Modifiers:
|
|
1635
|
+
* - capture:
|
|
1636
|
+
* - type: boolean
|
|
1637
|
+
* - description: Use capture for touchstart event
|
|
1638
|
+
* - mouse:
|
|
1639
|
+
* - type: boolean
|
|
1640
|
+
* - description: Listen for mouse events too
|
|
1641
|
+
* - mouseCapture:
|
|
1642
|
+
* - type: boolean
|
|
1643
|
+
* - description: Use capture for mousedown event
|
|
1644
|
+
* - horizontal:
|
|
1645
|
+
* - type: boolean
|
|
1646
|
+
* - description: Catch horizontal (left/right) movement
|
|
1647
|
+
* - vertical:
|
|
1648
|
+
* - type: boolean
|
|
1649
|
+
* - description: Catch vertical (up/down) movement
|
|
1650
|
+
* - up:
|
|
1651
|
+
* - type: boolean
|
|
1652
|
+
* - description: Catch swipe to up
|
|
1653
|
+
* - right:
|
|
1654
|
+
* - type: boolean
|
|
1655
|
+
* - description: Catch swipe to right
|
|
1656
|
+
* - down:
|
|
1657
|
+
* - type: boolean
|
|
1658
|
+
* - description: Catch swipe to down
|
|
1659
|
+
* - left:
|
|
1660
|
+
* - type: boolean
|
|
1661
|
+
* - description: Catch swipe to left
|
|
1662
|
+
*
|
|
1663
|
+
* @see https://v2.quasar.dev/vue-directives/touch-swipe
|
|
1664
|
+
*/
|
|
1665
|
+
export type TouchSwipe = Directive<any, TouchSwipeValue>;
|
|
813
1666
|
export interface QAjaxBarProps {
|
|
814
1667
|
/**
|
|
815
1668
|
* Position within window of where QAjaxBar should be displayed
|
|
@@ -3497,7 +4350,12 @@ export interface QEditorProps {
|
|
|
3497
4350
|
onLinkHide?: () => void;
|
|
3498
4351
|
}
|
|
3499
4352
|
|
|
3500
|
-
export interface QEditorSlots {
|
|
4353
|
+
export interface QEditorSlots {
|
|
4354
|
+
/**
|
|
4355
|
+
* Content for the given command in the toolbar
|
|
4356
|
+
*/
|
|
4357
|
+
[key: `${string}`]: () => VNode[];
|
|
4358
|
+
}
|
|
3501
4359
|
|
|
3502
4360
|
export interface QEditor extends ComponentPublicInstance<QEditorProps> {
|
|
3503
4361
|
/**
|
|
@@ -13844,6 +14702,327 @@ declare module "./globals" {
|
|
|
13844
14702
|
declare module "@vue/runtime-core" {
|
|
13845
14703
|
interface ComponentCustomProperties {
|
|
13846
14704
|
$q: QVueGlobals;
|
|
14705
|
+
|
|
14706
|
+
// Directives
|
|
14707
|
+
|
|
14708
|
+
/**
|
|
14709
|
+
* If value is 0 or 'false' then directive is disabled; if value is < 0 then it closes all popups in the chain; if value is 1 or 'true' or undefined then it closes only the parent popup; if value is > 1 it closes the specified number of parent popups in the chain (note that chained QMenus are considered 1 popup only & QPopupProxy separates chained menus)
|
|
14710
|
+
*
|
|
14711
|
+
* @see https://v2.quasar.dev/vue-directives/close-popup
|
|
14712
|
+
*/
|
|
14713
|
+
vClosePopup: ClosePopup;
|
|
14714
|
+
|
|
14715
|
+
/**
|
|
14716
|
+
* Function to call when scrolling occurs (identical to description of 'handler' prop of the Object form); If using the Object form, it is HIGHLY recommended to reference it from your vue component scope, otherwise the directive update cycle will continuously recreate the observer which hits performance hard
|
|
14717
|
+
*
|
|
14718
|
+
* Modifiers:
|
|
14719
|
+
* - once:
|
|
14720
|
+
* - type: boolean
|
|
14721
|
+
* - description: Call handler only once, when the conditions are first met
|
|
14722
|
+
* - examples:
|
|
14723
|
+
* - v-intersection.once
|
|
14724
|
+
*
|
|
14725
|
+
* @see https://v2.quasar.dev/vue-directives/intersection
|
|
14726
|
+
*/
|
|
14727
|
+
vIntersection: Intersection;
|
|
14728
|
+
|
|
14729
|
+
/**
|
|
14730
|
+
* Configuration object or trigger value
|
|
14731
|
+
*
|
|
14732
|
+
* Directive argument:
|
|
14733
|
+
* - type: string
|
|
14734
|
+
* - description: x:x2:y:z, where x is the morph element name, x2 is the morph group, y is the animation duration (in milliseconds) and z is the amount of time to wait (in milliseconds) or the 'transitionend' string
|
|
14735
|
+
* - examples:
|
|
14736
|
+
* - v-morph:name="options"
|
|
14737
|
+
* - v-morph:name:groupName="options"
|
|
14738
|
+
* - v-morph:name:groupName:400="options"
|
|
14739
|
+
* - v-morph:name:groupName:400:100="options"
|
|
14740
|
+
* - v-morph:name:groupName:400:transitionend="options"
|
|
14741
|
+
*
|
|
14742
|
+
* Modifiers:
|
|
14743
|
+
* - resize:
|
|
14744
|
+
* - type: boolean
|
|
14745
|
+
* - description: Use resize instead of scale transform for morph (forceResize option of the morph function)
|
|
14746
|
+
* - useCSS:
|
|
14747
|
+
* - type: boolean
|
|
14748
|
+
* - description: Use CSS animations for morph (forceCssAnimation option of the morph function)
|
|
14749
|
+
* - hideFromClone:
|
|
14750
|
+
* - type: boolean
|
|
14751
|
+
* - description: Hide the spacer for the initial element (hideFromClone option of the morph function)
|
|
14752
|
+
* - keepToClone:
|
|
14753
|
+
* - type: boolean
|
|
14754
|
+
* - description: Keep the final element visible while morphing (keepToClone option of the morph function)
|
|
14755
|
+
* - tween:
|
|
14756
|
+
* - type: boolean
|
|
14757
|
+
* - description: Use opacity tween morphing between initial and final elements (tween option of the morph function)
|
|
14758
|
+
*
|
|
14759
|
+
* @see https://v2.quasar.dev/vue-directives/morph
|
|
14760
|
+
*/
|
|
14761
|
+
vMorph: Morph;
|
|
14762
|
+
|
|
14763
|
+
/**
|
|
14764
|
+
* Function to call when mutation occurs; It is HIGHLY recommended to reference it from your vue component scope, otherwise the directive update cycle will continuously recreate the observer which hits performance hard
|
|
14765
|
+
*
|
|
14766
|
+
* Modifiers:
|
|
14767
|
+
* - once:
|
|
14768
|
+
* - type: boolean
|
|
14769
|
+
* - description: Call handler only once, when the first mutation was triggered, then stop monitoring
|
|
14770
|
+
* - examples:
|
|
14771
|
+
* - v-mutation.once
|
|
14772
|
+
* - childList:
|
|
14773
|
+
* - type: boolean
|
|
14774
|
+
* - description: Monitor the target node (and, if 'subtree' is also set, its descendants) for the addition of new child nodes or removal of existing child nodes
|
|
14775
|
+
* - examples:
|
|
14776
|
+
* - v-mutation.childList
|
|
14777
|
+
* - subtree:
|
|
14778
|
+
* - type: boolean
|
|
14779
|
+
* - description: Extend monitoring to the entire subtree of nodes rooted at target
|
|
14780
|
+
* - examples:
|
|
14781
|
+
* - v-mutation.subtree
|
|
14782
|
+
* - attributes:
|
|
14783
|
+
* - type: boolean
|
|
14784
|
+
* - description: Watch for changes to the value of attributes on the node or nodes being monitored
|
|
14785
|
+
* - examples:
|
|
14786
|
+
* - v-mutation.attributes
|
|
14787
|
+
* - characterData:
|
|
14788
|
+
* - type: boolean
|
|
14789
|
+
* - description: Monitor the specified target node or subtree for changes to the character data contained within the node or nodes
|
|
14790
|
+
* - examples:
|
|
14791
|
+
* - v-mutation.characterData
|
|
14792
|
+
* - attributeOldValue:
|
|
14793
|
+
* - type: boolean
|
|
14794
|
+
* - description: Record the previous value of any attribute that changes when monitoring the node or nodes for attribute changes
|
|
14795
|
+
* - examples:
|
|
14796
|
+
* - v-mutation.attributeOldValue
|
|
14797
|
+
* - characterDataOldValue:
|
|
14798
|
+
* - type: boolean
|
|
14799
|
+
* - description: Record the previous value of a node's text whenever the text changes on nodes being monitored
|
|
14800
|
+
* - examples:
|
|
14801
|
+
* - v-mutation.characterDataOldValue
|
|
14802
|
+
*
|
|
14803
|
+
* @see https://v2.quasar.dev/vue-directives/mutation
|
|
14804
|
+
*/
|
|
14805
|
+
vMutation: Mutation;
|
|
14806
|
+
|
|
14807
|
+
/**
|
|
14808
|
+
* Boolean (if just wanting to enable/disable) or Object for configuring more options
|
|
14809
|
+
*
|
|
14810
|
+
* Directive argument:
|
|
14811
|
+
* - type: string
|
|
14812
|
+
* - description: Color name from Quasar Color Palette; Overrides default dynamic color
|
|
14813
|
+
* - examples:
|
|
14814
|
+
* - v-ripple:orange-5
|
|
14815
|
+
*
|
|
14816
|
+
* Modifiers:
|
|
14817
|
+
* - early:
|
|
14818
|
+
* - type: boolean
|
|
14819
|
+
* - description: Trigger early/immediately on user interaction
|
|
14820
|
+
* - stop:
|
|
14821
|
+
* - type: boolean
|
|
14822
|
+
* - description: Stop click/touch event propagation
|
|
14823
|
+
* - examples:
|
|
14824
|
+
* - v-ripple.stop
|
|
14825
|
+
* - center:
|
|
14826
|
+
* - type: boolean
|
|
14827
|
+
* - description: Ripple starts from the absolute center
|
|
14828
|
+
* - examples:
|
|
14829
|
+
* - v-ripple.center
|
|
14830
|
+
*
|
|
14831
|
+
* @see https://v2.quasar.dev/vue-directives/material-ripple
|
|
14832
|
+
*/
|
|
14833
|
+
vRipple: Ripple;
|
|
14834
|
+
|
|
14835
|
+
/**
|
|
14836
|
+
* Function to call when scrolling occurs (use undefined to disable)
|
|
14837
|
+
*
|
|
14838
|
+
* @see https://v2.quasar.dev/vue-directives/scroll
|
|
14839
|
+
*/
|
|
14840
|
+
vScroll: Scroll;
|
|
14841
|
+
|
|
14842
|
+
/**
|
|
14843
|
+
* Function to call when scrolling and element comes into the viewport (use undefined to disable)
|
|
14844
|
+
*
|
|
14845
|
+
* @see https://v2.quasar.dev/vue-directives/scroll-fire
|
|
14846
|
+
*/
|
|
14847
|
+
vScrollFire: ScrollFire;
|
|
14848
|
+
|
|
14849
|
+
/**
|
|
14850
|
+
* Function to call after user has hold touch/click for the specified amount of time (use undefined to disable)
|
|
14851
|
+
*
|
|
14852
|
+
* Directive argument:
|
|
14853
|
+
* - type: string
|
|
14854
|
+
* - default: 600:5:7
|
|
14855
|
+
* - description: x:y:z, where x is the amount of time to wait (in milliseconds), y is the touch event sensitivity (in pixels) and z is the mouse event sensitivity (in pixels)
|
|
14856
|
+
* - examples:
|
|
14857
|
+
* - v-touch-hold:400="fnToCall"
|
|
14858
|
+
* - v-touch-hold:400:15="fnToCall"
|
|
14859
|
+
* - v-touch-hold:400:10:10="fnToCall"
|
|
14860
|
+
*
|
|
14861
|
+
* Modifiers:
|
|
14862
|
+
* - capture:
|
|
14863
|
+
* - type: boolean
|
|
14864
|
+
* - description: Use capture for touchstart event
|
|
14865
|
+
* - mouse:
|
|
14866
|
+
* - type: boolean
|
|
14867
|
+
* - description: Listen for mouse events too
|
|
14868
|
+
* - mouseCapture:
|
|
14869
|
+
* - type: boolean
|
|
14870
|
+
* - description: Use capture for mousedown event
|
|
14871
|
+
*
|
|
14872
|
+
* @see https://v2.quasar.dev/vue-directives/touch-hold
|
|
14873
|
+
*/
|
|
14874
|
+
vTouchHold: TouchHold;
|
|
14875
|
+
|
|
14876
|
+
/**
|
|
14877
|
+
* Handler for panning (use undefined to disable)
|
|
14878
|
+
*
|
|
14879
|
+
* Modifiers:
|
|
14880
|
+
* - stop:
|
|
14881
|
+
* - type: boolean
|
|
14882
|
+
* - description: Stop event propagation for touch events
|
|
14883
|
+
* - prevent:
|
|
14884
|
+
* - type: boolean
|
|
14885
|
+
* - description: Calls event.preventDefault() for touch events
|
|
14886
|
+
* - capture:
|
|
14887
|
+
* - type: boolean
|
|
14888
|
+
* - description: Use capture for touchstart event
|
|
14889
|
+
* - mouse:
|
|
14890
|
+
* - type: boolean
|
|
14891
|
+
* - description: Listen for mouse events too
|
|
14892
|
+
* - mouseCapture:
|
|
14893
|
+
* - type: boolean
|
|
14894
|
+
* - description: Use capture for mousedown event
|
|
14895
|
+
* - mouseAllDir:
|
|
14896
|
+
* - type: boolean
|
|
14897
|
+
* - description: Ignore initial mouse move direction (do not abort if the first mouse move is in an unaccepted direction)
|
|
14898
|
+
* - preserveCursor:
|
|
14899
|
+
* - type: boolean
|
|
14900
|
+
* - description: Prevent the mouse cursor from automatically displaying as grabbing when panning
|
|
14901
|
+
* - horizontal:
|
|
14902
|
+
* - type: boolean
|
|
14903
|
+
* - description: Catch horizontal (left/right) movement
|
|
14904
|
+
* - vertical:
|
|
14905
|
+
* - type: boolean
|
|
14906
|
+
* - description: Catch vertical (up/down) movement
|
|
14907
|
+
* - up:
|
|
14908
|
+
* - type: boolean
|
|
14909
|
+
* - description: Catch panning to up
|
|
14910
|
+
* - right:
|
|
14911
|
+
* - type: boolean
|
|
14912
|
+
* - description: Catch panning to right
|
|
14913
|
+
* - down:
|
|
14914
|
+
* - type: boolean
|
|
14915
|
+
* - description: Catch panning to down
|
|
14916
|
+
* - left:
|
|
14917
|
+
* - type: boolean
|
|
14918
|
+
* - description: Catch panning to left
|
|
14919
|
+
*
|
|
14920
|
+
* @see https://v2.quasar.dev/vue-directives/touch-pan
|
|
14921
|
+
*/
|
|
14922
|
+
vTouchPan: TouchPan;
|
|
14923
|
+
|
|
14924
|
+
/**
|
|
14925
|
+
* Handler for touch-repeat (use undefined to disable)
|
|
14926
|
+
*
|
|
14927
|
+
* Directive argument:
|
|
14928
|
+
* - type: string
|
|
14929
|
+
* - default: 0:600:300
|
|
14930
|
+
* - description: String of numbers (at least one number) separated by ':' which defines the amount of time to wait for 1st handler call, 2nd, 3rd and so on; All subsequent calls will use last value as time to wait until triggering
|
|
14931
|
+
* - examples:
|
|
14932
|
+
* - v-touch-repeat:0:400="fnToCall"
|
|
14933
|
+
*
|
|
14934
|
+
* Modifiers:
|
|
14935
|
+
* - capture:
|
|
14936
|
+
* - type: boolean
|
|
14937
|
+
* - description: Use capture for touchstart event
|
|
14938
|
+
* - mouse:
|
|
14939
|
+
* - type: boolean
|
|
14940
|
+
* - description: Listen for mouse events too
|
|
14941
|
+
* - mouseCapture:
|
|
14942
|
+
* - type: boolean
|
|
14943
|
+
* - description: Use capture for mousedown event
|
|
14944
|
+
* - keyCapture:
|
|
14945
|
+
* - type: boolean
|
|
14946
|
+
* - description: Use capture for keydown event
|
|
14947
|
+
* - esc:
|
|
14948
|
+
* - type: boolean
|
|
14949
|
+
* - description: Catch ESC key
|
|
14950
|
+
* - tab:
|
|
14951
|
+
* - type: boolean
|
|
14952
|
+
* - description: Catch TAB key
|
|
14953
|
+
* - enter:
|
|
14954
|
+
* - type: boolean
|
|
14955
|
+
* - description: Catch ENTER key
|
|
14956
|
+
* - space:
|
|
14957
|
+
* - type: boolean
|
|
14958
|
+
* - description: Catch SPACE key
|
|
14959
|
+
* - up:
|
|
14960
|
+
* - type: boolean
|
|
14961
|
+
* - description: Catch UP arrow key
|
|
14962
|
+
* - left:
|
|
14963
|
+
* - type: boolean
|
|
14964
|
+
* - description: Catch LEFT arrow key
|
|
14965
|
+
* - right:
|
|
14966
|
+
* - type: boolean
|
|
14967
|
+
* - description: Catch RIGHT arrow key
|
|
14968
|
+
* - down:
|
|
14969
|
+
* - type: boolean
|
|
14970
|
+
* - description: Catch DOWN key
|
|
14971
|
+
* - delete:
|
|
14972
|
+
* - type: boolean
|
|
14973
|
+
* - description: Catch DELETE key
|
|
14974
|
+
* - [keycode]:
|
|
14975
|
+
* - type: number
|
|
14976
|
+
* - description: Key code to catch
|
|
14977
|
+
* - examples:
|
|
14978
|
+
* - v-touch-repeat.68="fnToCall"
|
|
14979
|
+
*
|
|
14980
|
+
* @see https://v2.quasar.dev/vue-directives/touch-repeat
|
|
14981
|
+
*/
|
|
14982
|
+
vTouchRepeat: TouchRepeat;
|
|
14983
|
+
|
|
14984
|
+
/**
|
|
14985
|
+
* Handler for swipe (use undefined to disable)
|
|
14986
|
+
*
|
|
14987
|
+
* Directive argument:
|
|
14988
|
+
* - type: string
|
|
14989
|
+
* - default: 6e-2:6:50
|
|
14990
|
+
* - description: x:y:z, where x is minimum velocity (dist/time; please use float without a dot, example: 6e-2 which is equivalent to 6 * 10^-2 = 0.06), y is minimum distance on first move on mobile, z is minimum distance on desktop until deciding if it's a swipe indeed
|
|
14991
|
+
* - examples:
|
|
14992
|
+
* - v-touch-swipe:7e-2:10:100="fnToCall"
|
|
14993
|
+
*
|
|
14994
|
+
* Modifiers:
|
|
14995
|
+
* - capture:
|
|
14996
|
+
* - type: boolean
|
|
14997
|
+
* - description: Use capture for touchstart event
|
|
14998
|
+
* - mouse:
|
|
14999
|
+
* - type: boolean
|
|
15000
|
+
* - description: Listen for mouse events too
|
|
15001
|
+
* - mouseCapture:
|
|
15002
|
+
* - type: boolean
|
|
15003
|
+
* - description: Use capture for mousedown event
|
|
15004
|
+
* - horizontal:
|
|
15005
|
+
* - type: boolean
|
|
15006
|
+
* - description: Catch horizontal (left/right) movement
|
|
15007
|
+
* - vertical:
|
|
15008
|
+
* - type: boolean
|
|
15009
|
+
* - description: Catch vertical (up/down) movement
|
|
15010
|
+
* - up:
|
|
15011
|
+
* - type: boolean
|
|
15012
|
+
* - description: Catch swipe to up
|
|
15013
|
+
* - right:
|
|
15014
|
+
* - type: boolean
|
|
15015
|
+
* - description: Catch swipe to right
|
|
15016
|
+
* - down:
|
|
15017
|
+
* - type: boolean
|
|
15018
|
+
* - description: Catch swipe to down
|
|
15019
|
+
* - left:
|
|
15020
|
+
* - type: boolean
|
|
15021
|
+
* - description: Catch swipe to left
|
|
15022
|
+
*
|
|
15023
|
+
* @see https://v2.quasar.dev/vue-directives/touch-swipe
|
|
15024
|
+
*/
|
|
15025
|
+
vTouchSwipe: TouchSwipe;
|
|
13847
15026
|
}
|
|
13848
15027
|
}
|
|
13849
15028
|
|
|
@@ -14120,7 +15299,7 @@ declare module "@vue/runtime-core" {
|
|
|
14120
15299
|
}
|
|
14121
15300
|
|
|
14122
15301
|
declare module "./config.d.ts" {
|
|
14123
|
-
interface
|
|
15302
|
+
interface QuasarUIConfiguration {
|
|
14124
15303
|
/**
|
|
14125
15304
|
* "'auto'" uses the OS/browser preference. "true" forces dark mode. "false" forces light mode.
|
|
14126
15305
|
*/
|
|
@@ -14173,7 +15352,7 @@ declare module "./config.d.ts" {
|
|
|
14173
15352
|
customClass?: string;
|
|
14174
15353
|
};
|
|
14175
15354
|
/**
|
|
14176
|
-
* QAjaxBar component props, EXCEPT for 'hijack-filter'
|
|
15355
|
+
* QAjaxBar component props, EXCEPT for 'hijack-filter' in quasar.config file (if using Quasar CLI)
|
|
14177
15356
|
*/
|
|
14178
15357
|
loadingBar?: QLoadingBarOptions;
|
|
14179
15358
|
notify?: {
|
|
@@ -14471,17 +15650,6 @@ export const Notify: Notify;
|
|
|
14471
15650
|
export const Platform: Platform;
|
|
14472
15651
|
export const Screen: Screen;
|
|
14473
15652
|
export const SessionStorage: SessionStorage;
|
|
14474
|
-
export const ClosePopup: ClosePopup;
|
|
14475
|
-
export const Intersection: Intersection;
|
|
14476
|
-
export const Morph: Morph;
|
|
14477
|
-
export const Mutation: Mutation;
|
|
14478
|
-
export const Ripple: Ripple;
|
|
14479
|
-
export const Scroll: Scroll;
|
|
14480
|
-
export const ScrollFire: ScrollFire;
|
|
14481
|
-
export const TouchHold: TouchHold;
|
|
14482
|
-
export const TouchPan: TouchPan;
|
|
14483
|
-
export const TouchRepeat: TouchRepeat;
|
|
14484
|
-
export const TouchSwipe: TouchSwipe;
|
|
14485
15653
|
export const QAjaxBar: ComponentConstructor<QAjaxBar>;
|
|
14486
15654
|
export const QAvatar: ComponentConstructor<QAvatar>;
|
|
14487
15655
|
export const QBadge: ComponentConstructor<QBadge>;
|
|
@@ -14734,17 +15902,324 @@ declare module "./plugin" {
|
|
|
14734
15902
|
}
|
|
14735
15903
|
|
|
14736
15904
|
interface QuasarDirectives {
|
|
14737
|
-
|
|
14738
|
-
|
|
14739
|
-
|
|
14740
|
-
|
|
14741
|
-
|
|
14742
|
-
|
|
14743
|
-
|
|
14744
|
-
|
|
14745
|
-
|
|
14746
|
-
|
|
14747
|
-
|
|
15905
|
+
/**
|
|
15906
|
+
* If value is 0 or 'false' then directive is disabled; if value is < 0 then it closes all popups in the chain; if value is 1 or 'true' or undefined then it closes only the parent popup; if value is > 1 it closes the specified number of parent popups in the chain (note that chained QMenus are considered 1 popup only & QPopupProxy separates chained menus)
|
|
15907
|
+
*
|
|
15908
|
+
* @see https://v2.quasar.dev/vue-directives/close-popup
|
|
15909
|
+
*/
|
|
15910
|
+
vClosePopup: ClosePopup;
|
|
15911
|
+
|
|
15912
|
+
/**
|
|
15913
|
+
* Function to call when scrolling occurs (identical to description of 'handler' prop of the Object form); If using the Object form, it is HIGHLY recommended to reference it from your vue component scope, otherwise the directive update cycle will continuously recreate the observer which hits performance hard
|
|
15914
|
+
*
|
|
15915
|
+
* Modifiers:
|
|
15916
|
+
* - once:
|
|
15917
|
+
* - type: boolean
|
|
15918
|
+
* - description: Call handler only once, when the conditions are first met
|
|
15919
|
+
* - examples:
|
|
15920
|
+
* - v-intersection.once
|
|
15921
|
+
*
|
|
15922
|
+
* @see https://v2.quasar.dev/vue-directives/intersection
|
|
15923
|
+
*/
|
|
15924
|
+
vIntersection: Intersection;
|
|
15925
|
+
|
|
15926
|
+
/**
|
|
15927
|
+
* Configuration object or trigger value
|
|
15928
|
+
*
|
|
15929
|
+
* Directive argument:
|
|
15930
|
+
* - type: string
|
|
15931
|
+
* - description: x:x2:y:z, where x is the morph element name, x2 is the morph group, y is the animation duration (in milliseconds) and z is the amount of time to wait (in milliseconds) or the 'transitionend' string
|
|
15932
|
+
* - examples:
|
|
15933
|
+
* - v-morph:name="options"
|
|
15934
|
+
* - v-morph:name:groupName="options"
|
|
15935
|
+
* - v-morph:name:groupName:400="options"
|
|
15936
|
+
* - v-morph:name:groupName:400:100="options"
|
|
15937
|
+
* - v-morph:name:groupName:400:transitionend="options"
|
|
15938
|
+
*
|
|
15939
|
+
* Modifiers:
|
|
15940
|
+
* - resize:
|
|
15941
|
+
* - type: boolean
|
|
15942
|
+
* - description: Use resize instead of scale transform for morph (forceResize option of the morph function)
|
|
15943
|
+
* - useCSS:
|
|
15944
|
+
* - type: boolean
|
|
15945
|
+
* - description: Use CSS animations for morph (forceCssAnimation option of the morph function)
|
|
15946
|
+
* - hideFromClone:
|
|
15947
|
+
* - type: boolean
|
|
15948
|
+
* - description: Hide the spacer for the initial element (hideFromClone option of the morph function)
|
|
15949
|
+
* - keepToClone:
|
|
15950
|
+
* - type: boolean
|
|
15951
|
+
* - description: Keep the final element visible while morphing (keepToClone option of the morph function)
|
|
15952
|
+
* - tween:
|
|
15953
|
+
* - type: boolean
|
|
15954
|
+
* - description: Use opacity tween morphing between initial and final elements (tween option of the morph function)
|
|
15955
|
+
*
|
|
15956
|
+
* @see https://v2.quasar.dev/vue-directives/morph
|
|
15957
|
+
*/
|
|
15958
|
+
vMorph: Morph;
|
|
15959
|
+
|
|
15960
|
+
/**
|
|
15961
|
+
* Function to call when mutation occurs; It is HIGHLY recommended to reference it from your vue component scope, otherwise the directive update cycle will continuously recreate the observer which hits performance hard
|
|
15962
|
+
*
|
|
15963
|
+
* Modifiers:
|
|
15964
|
+
* - once:
|
|
15965
|
+
* - type: boolean
|
|
15966
|
+
* - description: Call handler only once, when the first mutation was triggered, then stop monitoring
|
|
15967
|
+
* - examples:
|
|
15968
|
+
* - v-mutation.once
|
|
15969
|
+
* - childList:
|
|
15970
|
+
* - type: boolean
|
|
15971
|
+
* - description: Monitor the target node (and, if 'subtree' is also set, its descendants) for the addition of new child nodes or removal of existing child nodes
|
|
15972
|
+
* - examples:
|
|
15973
|
+
* - v-mutation.childList
|
|
15974
|
+
* - subtree:
|
|
15975
|
+
* - type: boolean
|
|
15976
|
+
* - description: Extend monitoring to the entire subtree of nodes rooted at target
|
|
15977
|
+
* - examples:
|
|
15978
|
+
* - v-mutation.subtree
|
|
15979
|
+
* - attributes:
|
|
15980
|
+
* - type: boolean
|
|
15981
|
+
* - description: Watch for changes to the value of attributes on the node or nodes being monitored
|
|
15982
|
+
* - examples:
|
|
15983
|
+
* - v-mutation.attributes
|
|
15984
|
+
* - characterData:
|
|
15985
|
+
* - type: boolean
|
|
15986
|
+
* - description: Monitor the specified target node or subtree for changes to the character data contained within the node or nodes
|
|
15987
|
+
* - examples:
|
|
15988
|
+
* - v-mutation.characterData
|
|
15989
|
+
* - attributeOldValue:
|
|
15990
|
+
* - type: boolean
|
|
15991
|
+
* - description: Record the previous value of any attribute that changes when monitoring the node or nodes for attribute changes
|
|
15992
|
+
* - examples:
|
|
15993
|
+
* - v-mutation.attributeOldValue
|
|
15994
|
+
* - characterDataOldValue:
|
|
15995
|
+
* - type: boolean
|
|
15996
|
+
* - description: Record the previous value of a node's text whenever the text changes on nodes being monitored
|
|
15997
|
+
* - examples:
|
|
15998
|
+
* - v-mutation.characterDataOldValue
|
|
15999
|
+
*
|
|
16000
|
+
* @see https://v2.quasar.dev/vue-directives/mutation
|
|
16001
|
+
*/
|
|
16002
|
+
vMutation: Mutation;
|
|
16003
|
+
|
|
16004
|
+
/**
|
|
16005
|
+
* Boolean (if just wanting to enable/disable) or Object for configuring more options
|
|
16006
|
+
*
|
|
16007
|
+
* Directive argument:
|
|
16008
|
+
* - type: string
|
|
16009
|
+
* - description: Color name from Quasar Color Palette; Overrides default dynamic color
|
|
16010
|
+
* - examples:
|
|
16011
|
+
* - v-ripple:orange-5
|
|
16012
|
+
*
|
|
16013
|
+
* Modifiers:
|
|
16014
|
+
* - early:
|
|
16015
|
+
* - type: boolean
|
|
16016
|
+
* - description: Trigger early/immediately on user interaction
|
|
16017
|
+
* - stop:
|
|
16018
|
+
* - type: boolean
|
|
16019
|
+
* - description: Stop click/touch event propagation
|
|
16020
|
+
* - examples:
|
|
16021
|
+
* - v-ripple.stop
|
|
16022
|
+
* - center:
|
|
16023
|
+
* - type: boolean
|
|
16024
|
+
* - description: Ripple starts from the absolute center
|
|
16025
|
+
* - examples:
|
|
16026
|
+
* - v-ripple.center
|
|
16027
|
+
*
|
|
16028
|
+
* @see https://v2.quasar.dev/vue-directives/material-ripple
|
|
16029
|
+
*/
|
|
16030
|
+
vRipple: Ripple;
|
|
16031
|
+
|
|
16032
|
+
/**
|
|
16033
|
+
* Function to call when scrolling occurs (use undefined to disable)
|
|
16034
|
+
*
|
|
16035
|
+
* @see https://v2.quasar.dev/vue-directives/scroll
|
|
16036
|
+
*/
|
|
16037
|
+
vScroll: Scroll;
|
|
16038
|
+
|
|
16039
|
+
/**
|
|
16040
|
+
* Function to call when scrolling and element comes into the viewport (use undefined to disable)
|
|
16041
|
+
*
|
|
16042
|
+
* @see https://v2.quasar.dev/vue-directives/scroll-fire
|
|
16043
|
+
*/
|
|
16044
|
+
vScrollFire: ScrollFire;
|
|
16045
|
+
|
|
16046
|
+
/**
|
|
16047
|
+
* Function to call after user has hold touch/click for the specified amount of time (use undefined to disable)
|
|
16048
|
+
*
|
|
16049
|
+
* Directive argument:
|
|
16050
|
+
* - type: string
|
|
16051
|
+
* - default: 600:5:7
|
|
16052
|
+
* - description: x:y:z, where x is the amount of time to wait (in milliseconds), y is the touch event sensitivity (in pixels) and z is the mouse event sensitivity (in pixels)
|
|
16053
|
+
* - examples:
|
|
16054
|
+
* - v-touch-hold:400="fnToCall"
|
|
16055
|
+
* - v-touch-hold:400:15="fnToCall"
|
|
16056
|
+
* - v-touch-hold:400:10:10="fnToCall"
|
|
16057
|
+
*
|
|
16058
|
+
* Modifiers:
|
|
16059
|
+
* - capture:
|
|
16060
|
+
* - type: boolean
|
|
16061
|
+
* - description: Use capture for touchstart event
|
|
16062
|
+
* - mouse:
|
|
16063
|
+
* - type: boolean
|
|
16064
|
+
* - description: Listen for mouse events too
|
|
16065
|
+
* - mouseCapture:
|
|
16066
|
+
* - type: boolean
|
|
16067
|
+
* - description: Use capture for mousedown event
|
|
16068
|
+
*
|
|
16069
|
+
* @see https://v2.quasar.dev/vue-directives/touch-hold
|
|
16070
|
+
*/
|
|
16071
|
+
vTouchHold: TouchHold;
|
|
16072
|
+
|
|
16073
|
+
/**
|
|
16074
|
+
* Handler for panning (use undefined to disable)
|
|
16075
|
+
*
|
|
16076
|
+
* Modifiers:
|
|
16077
|
+
* - stop:
|
|
16078
|
+
* - type: boolean
|
|
16079
|
+
* - description: Stop event propagation for touch events
|
|
16080
|
+
* - prevent:
|
|
16081
|
+
* - type: boolean
|
|
16082
|
+
* - description: Calls event.preventDefault() for touch events
|
|
16083
|
+
* - capture:
|
|
16084
|
+
* - type: boolean
|
|
16085
|
+
* - description: Use capture for touchstart event
|
|
16086
|
+
* - mouse:
|
|
16087
|
+
* - type: boolean
|
|
16088
|
+
* - description: Listen for mouse events too
|
|
16089
|
+
* - mouseCapture:
|
|
16090
|
+
* - type: boolean
|
|
16091
|
+
* - description: Use capture for mousedown event
|
|
16092
|
+
* - mouseAllDir:
|
|
16093
|
+
* - type: boolean
|
|
16094
|
+
* - description: Ignore initial mouse move direction (do not abort if the first mouse move is in an unaccepted direction)
|
|
16095
|
+
* - preserveCursor:
|
|
16096
|
+
* - type: boolean
|
|
16097
|
+
* - description: Prevent the mouse cursor from automatically displaying as grabbing when panning
|
|
16098
|
+
* - horizontal:
|
|
16099
|
+
* - type: boolean
|
|
16100
|
+
* - description: Catch horizontal (left/right) movement
|
|
16101
|
+
* - vertical:
|
|
16102
|
+
* - type: boolean
|
|
16103
|
+
* - description: Catch vertical (up/down) movement
|
|
16104
|
+
* - up:
|
|
16105
|
+
* - type: boolean
|
|
16106
|
+
* - description: Catch panning to up
|
|
16107
|
+
* - right:
|
|
16108
|
+
* - type: boolean
|
|
16109
|
+
* - description: Catch panning to right
|
|
16110
|
+
* - down:
|
|
16111
|
+
* - type: boolean
|
|
16112
|
+
* - description: Catch panning to down
|
|
16113
|
+
* - left:
|
|
16114
|
+
* - type: boolean
|
|
16115
|
+
* - description: Catch panning to left
|
|
16116
|
+
*
|
|
16117
|
+
* @see https://v2.quasar.dev/vue-directives/touch-pan
|
|
16118
|
+
*/
|
|
16119
|
+
vTouchPan: TouchPan;
|
|
16120
|
+
|
|
16121
|
+
/**
|
|
16122
|
+
* Handler for touch-repeat (use undefined to disable)
|
|
16123
|
+
*
|
|
16124
|
+
* Directive argument:
|
|
16125
|
+
* - type: string
|
|
16126
|
+
* - default: 0:600:300
|
|
16127
|
+
* - description: String of numbers (at least one number) separated by ':' which defines the amount of time to wait for 1st handler call, 2nd, 3rd and so on; All subsequent calls will use last value as time to wait until triggering
|
|
16128
|
+
* - examples:
|
|
16129
|
+
* - v-touch-repeat:0:400="fnToCall"
|
|
16130
|
+
*
|
|
16131
|
+
* Modifiers:
|
|
16132
|
+
* - capture:
|
|
16133
|
+
* - type: boolean
|
|
16134
|
+
* - description: Use capture for touchstart event
|
|
16135
|
+
* - mouse:
|
|
16136
|
+
* - type: boolean
|
|
16137
|
+
* - description: Listen for mouse events too
|
|
16138
|
+
* - mouseCapture:
|
|
16139
|
+
* - type: boolean
|
|
16140
|
+
* - description: Use capture for mousedown event
|
|
16141
|
+
* - keyCapture:
|
|
16142
|
+
* - type: boolean
|
|
16143
|
+
* - description: Use capture for keydown event
|
|
16144
|
+
* - esc:
|
|
16145
|
+
* - type: boolean
|
|
16146
|
+
* - description: Catch ESC key
|
|
16147
|
+
* - tab:
|
|
16148
|
+
* - type: boolean
|
|
16149
|
+
* - description: Catch TAB key
|
|
16150
|
+
* - enter:
|
|
16151
|
+
* - type: boolean
|
|
16152
|
+
* - description: Catch ENTER key
|
|
16153
|
+
* - space:
|
|
16154
|
+
* - type: boolean
|
|
16155
|
+
* - description: Catch SPACE key
|
|
16156
|
+
* - up:
|
|
16157
|
+
* - type: boolean
|
|
16158
|
+
* - description: Catch UP arrow key
|
|
16159
|
+
* - left:
|
|
16160
|
+
* - type: boolean
|
|
16161
|
+
* - description: Catch LEFT arrow key
|
|
16162
|
+
* - right:
|
|
16163
|
+
* - type: boolean
|
|
16164
|
+
* - description: Catch RIGHT arrow key
|
|
16165
|
+
* - down:
|
|
16166
|
+
* - type: boolean
|
|
16167
|
+
* - description: Catch DOWN key
|
|
16168
|
+
* - delete:
|
|
16169
|
+
* - type: boolean
|
|
16170
|
+
* - description: Catch DELETE key
|
|
16171
|
+
* - [keycode]:
|
|
16172
|
+
* - type: number
|
|
16173
|
+
* - description: Key code to catch
|
|
16174
|
+
* - examples:
|
|
16175
|
+
* - v-touch-repeat.68="fnToCall"
|
|
16176
|
+
*
|
|
16177
|
+
* @see https://v2.quasar.dev/vue-directives/touch-repeat
|
|
16178
|
+
*/
|
|
16179
|
+
vTouchRepeat: TouchRepeat;
|
|
16180
|
+
|
|
16181
|
+
/**
|
|
16182
|
+
* Handler for swipe (use undefined to disable)
|
|
16183
|
+
*
|
|
16184
|
+
* Directive argument:
|
|
16185
|
+
* - type: string
|
|
16186
|
+
* - default: 6e-2:6:50
|
|
16187
|
+
* - description: x:y:z, where x is minimum velocity (dist/time; please use float without a dot, example: 6e-2 which is equivalent to 6 * 10^-2 = 0.06), y is minimum distance on first move on mobile, z is minimum distance on desktop until deciding if it's a swipe indeed
|
|
16188
|
+
* - examples:
|
|
16189
|
+
* - v-touch-swipe:7e-2:10:100="fnToCall"
|
|
16190
|
+
*
|
|
16191
|
+
* Modifiers:
|
|
16192
|
+
* - capture:
|
|
16193
|
+
* - type: boolean
|
|
16194
|
+
* - description: Use capture for touchstart event
|
|
16195
|
+
* - mouse:
|
|
16196
|
+
* - type: boolean
|
|
16197
|
+
* - description: Listen for mouse events too
|
|
16198
|
+
* - mouseCapture:
|
|
16199
|
+
* - type: boolean
|
|
16200
|
+
* - description: Use capture for mousedown event
|
|
16201
|
+
* - horizontal:
|
|
16202
|
+
* - type: boolean
|
|
16203
|
+
* - description: Catch horizontal (left/right) movement
|
|
16204
|
+
* - vertical:
|
|
16205
|
+
* - type: boolean
|
|
16206
|
+
* - description: Catch vertical (up/down) movement
|
|
16207
|
+
* - up:
|
|
16208
|
+
* - type: boolean
|
|
16209
|
+
* - description: Catch swipe to up
|
|
16210
|
+
* - right:
|
|
16211
|
+
* - type: boolean
|
|
16212
|
+
* - description: Catch swipe to right
|
|
16213
|
+
* - down:
|
|
16214
|
+
* - type: boolean
|
|
16215
|
+
* - description: Catch swipe to down
|
|
16216
|
+
* - left:
|
|
16217
|
+
* - type: boolean
|
|
16218
|
+
* - description: Catch swipe to left
|
|
16219
|
+
*
|
|
16220
|
+
* @see https://v2.quasar.dev/vue-directives/touch-swipe
|
|
16221
|
+
*/
|
|
16222
|
+
vTouchSwipe: TouchSwipe;
|
|
14748
16223
|
}
|
|
14749
16224
|
|
|
14750
16225
|
interface QuasarPlugins {
|