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.
@@ -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,8 @@ interface MomentumConfig {
9
9
  minVelocity?: number;
10
10
  minDuration?: number;
11
11
  minVelocityThreshold?: number;
12
+ /** Stop momentum when clicking on the viewport (default: true) */
13
+ stopOnClick?: boolean;
12
14
  }
13
15
  /**
14
16
  * Adds momentum scrolling to viewport
@@ -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
@@ -8,6 +8,8 @@ export interface ScrollingConfig {
8
8
  sensitivity?: number;
9
9
  smoothing?: boolean;
10
10
  idleTimeout?: number;
11
+ /** Stop scrolling when clicking on the viewport (default: true) */
12
+ stopOnClick?: boolean;
11
13
  }
12
14
  /**
13
15
  * Scrolling 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;