scb-wc-test 0.1.310 → 0.1.312

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.
@@ -35,6 +35,11 @@ let r = class extends w {
35
35
  !o && !e || (l.scrollLeft += t.deltaY, l.scrollLeft !== s && t.preventDefault());
36
36
  };
37
37
  }
38
+ getScrollStep() {
39
+ var l;
40
+ const t = this.scrollerEl || ((l = this.shadowRoot) == null ? void 0 : l.querySelector(".scb-horizontal-scroller"));
41
+ return t ? Math.max(Math.round(t.clientWidth * 0.8), 120) : 200;
42
+ }
38
43
  doScrollBy(t) {
39
44
  var s;
40
45
  const l = (s = this.shadowRoot) == null ? void 0 : s.querySelector(".scb-horizontal-scroller");
@@ -115,7 +120,7 @@ let r = class extends w {
115
120
  label="${this.leftScrollButtonLabel}"
116
121
  aria-label="Scrolla vänster"
117
122
  icon="chevron_left"
118
- @click="${() => this.doScrollBy(-100)}"
123
+ @click="${() => this.doScrollBy(-this.getScrollStep())}"
119
124
  ></scb-button>
120
125
  ` : ""}
121
126
 
@@ -127,7 +132,7 @@ let r = class extends w {
127
132
  aria-label="Scrolla höger"
128
133
  icon="chevron_right"
129
134
  trailing-icon
130
- @click="${() => this.doScrollBy(100)}"
135
+ @click="${() => this.doScrollBy(this.getScrollStep())}"
131
136
  ></scb-button>
132
137
  ` : ""}
133
138
  </div>
@@ -141,7 +146,7 @@ let r = class extends w {
141
146
  icon="chevron_left"
142
147
  aria-label="Scrolla vänster"
143
148
  variant="filled-tonal"
144
- @click="${() => this.doScrollBy(-100)}"
149
+ @click="${() => this.doScrollBy(-this.getScrollStep())}"
145
150
  ></scb-icon-button>
146
151
  ` : ""}
147
152
  <div class="scroll-shadow-left"></div>
@@ -156,7 +161,7 @@ let r = class extends w {
156
161
  icon="chevron_right"
157
162
  aria-label="Scrolla höger"
158
163
  variant="filled-tonal"
159
- @click="${() => this.doScrollBy(100)}"
164
+ @click="${() => this.doScrollBy(this.getScrollStep())}"
160
165
  ></scb-icon-button>
161
166
  ` : ""}
162
167
  `;
@@ -92,6 +92,7 @@ export declare class ScbViz extends LitElement {
92
92
  private _inferTableAlignments;
93
93
  private _getResolvedContentMaxWidth;
94
94
  private _getResolvedDiagramHeight;
95
+ private _getResolvedDiagramScrollerWidth;
95
96
  private _getResolvedToggleHeightMode;
96
97
  private _getResolvedStandardContentHeight;
97
98
  private _getResolvedTableData;
@@ -108,6 +109,7 @@ export declare class ScbViz extends LitElement {
108
109
  private _formatLocalizedNumber;
109
110
  private _formatValueForDisplay;
110
111
  private _isCategoryAxis;
112
+ private _getTooltipXAxisLabel;
111
113
  private _applyTimeFormatToLiveChart;
112
114
  private _applyValueFormatToLiveChart;
113
115
  private _applyYAxisSettingsToLiveChart;