mtrl-addons 0.2.8 → 0.3.0
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/components/vlist/types.d.ts +10 -0
- package/dist/core/viewport/features/momentum.d.ts +2 -0
- package/dist/core/viewport/features/rendering.d.ts +6 -0
- package/dist/core/viewport/features/scrolling.d.ts +2 -0
- package/dist/core/viewport/types.d.ts +10 -0
- package/dist/index.js +120 -10
- package/dist/index.mjs +120 -10
- package/package.json +1 -1
|
@@ -582,6 +582,8 @@ export interface VListConfig<T extends ListItem = ListItem> {
|
|
|
582
582
|
orientation?: "vertical" | "horizontal";
|
|
583
583
|
animation?: boolean;
|
|
584
584
|
measureItems?: boolean;
|
|
585
|
+
/** Stop scrolling when clicking on the viewport (default: true) */
|
|
586
|
+
stopOnClick?: boolean;
|
|
585
587
|
};
|
|
586
588
|
performance?: {
|
|
587
589
|
recycleElements?: boolean;
|
|
@@ -591,6 +593,14 @@ export interface VListConfig<T extends ListItem = ListItem> {
|
|
|
591
593
|
/** Velocity threshold (px/ms) above which data loading is cancelled and placeholders are shown. Default: 2 */
|
|
592
594
|
cancelLoadThreshold?: number;
|
|
593
595
|
};
|
|
596
|
+
rendering?: {
|
|
597
|
+
/**
|
|
598
|
+
* Maintain DOM order to match visual index order.
|
|
599
|
+
* Enables CSS selectors like :first-child, :nth-child() to work correctly.
|
|
600
|
+
* Default: true
|
|
601
|
+
*/
|
|
602
|
+
maintainDomOrder?: boolean;
|
|
603
|
+
};
|
|
594
604
|
selection?: ListSelectionConfig;
|
|
595
605
|
on?: ListEventHandlers<T>;
|
|
596
606
|
}
|
|
@@ -9,6 +9,12 @@ export interface RenderingConfig {
|
|
|
9
9
|
measureItems?: boolean;
|
|
10
10
|
enableRecycling?: boolean;
|
|
11
11
|
maxPoolSize?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Maintain DOM order to match visual index order.
|
|
14
|
+
* Enables CSS selectors like :first-child, :nth-child() to work correctly.
|
|
15
|
+
* Default: true
|
|
16
|
+
*/
|
|
17
|
+
maintainDomOrder?: boolean;
|
|
12
18
|
}
|
|
13
19
|
/**
|
|
14
20
|
* Rendering feature for viewport
|
|
@@ -55,11 +55,21 @@ export interface ViewportConfig {
|
|
|
55
55
|
orientation?: "vertical" | "horizontal";
|
|
56
56
|
animation?: boolean;
|
|
57
57
|
sensitivity?: number;
|
|
58
|
+
/** Stop scrolling when clicking on the viewport (default: true) */
|
|
59
|
+
stopOnClick?: boolean;
|
|
58
60
|
};
|
|
59
61
|
scrollbar?: {
|
|
60
62
|
enabled?: boolean;
|
|
61
63
|
autoHide?: boolean;
|
|
62
64
|
};
|
|
65
|
+
rendering?: {
|
|
66
|
+
/**
|
|
67
|
+
* Maintain DOM order to match visual index order.
|
|
68
|
+
* Enables CSS selectors like :first-child, :nth-child() to work correctly.
|
|
69
|
+
* Default: true
|
|
70
|
+
*/
|
|
71
|
+
maintainDomOrder?: boolean;
|
|
72
|
+
};
|
|
63
73
|
performance?: {
|
|
64
74
|
maxConcurrentRequests?: number;
|
|
65
75
|
cancelLoadThreshold?: number;
|