@ixfx/components 0.4.2 → 0.4.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/bundle/index.d.ts CHANGED
@@ -1052,7 +1052,7 @@ declare class IxfxIconElement extends LitElement {
1052
1052
  rotate: string;
1053
1053
  connectedCallback(): void;
1054
1054
  disconnectedCallback(): void;
1055
- protected render(): typeof nothing | TemplateResult<1>;
1055
+ protected render(): TemplateResult<1> | typeof nothing;
1056
1056
  protected updated(changed: Map<string, unknown>): void;
1057
1057
  static styles: CSSResult[];
1058
1058
  }
@@ -1313,7 +1313,7 @@ declare class ButtonElement extends LitElement {
1313
1313
  icon?: string;
1314
1314
  hideIcon: boolean;
1315
1315
  hideLabel: boolean;
1316
- protected _renderIcon(): typeof nothing | TemplateResult<1>;
1316
+ protected _renderIcon(): TemplateResult<1> | typeof nothing;
1317
1317
  protected render(): TemplateResult<1>;
1318
1318
  static styles: CSSResult[];
1319
1319
  }
@@ -2740,7 +2740,7 @@ declare abstract class LabelledInputBase extends LitElement {
2740
2740
  value: number;
2741
2741
  }>) => void;
2742
2742
  protected _syncValue(v: number): void;
2743
- protected _renderEditableNumber(): typeof nothing | TemplateResult<1>;
2743
+ protected _renderEditableNumber(): TemplateResult<1> | typeof nothing;
2744
2744
  updated(changedProperties: Map<string, unknown>): void;
2745
2745
  }
2746
2746
  //#endregion
@@ -3884,7 +3884,7 @@ declare class GroupedItemListerElement<T = unknown> extends LitElement {
3884
3884
  connectedCallback(): void;
3885
3885
  disconnectedCallback(): void;
3886
3886
  protected updated(changed: PropertyValues): void;
3887
- protected render(): typeof nothing | TemplateResult<1>;
3887
+ protected render(): TemplateResult<1> | typeof nothing;
3888
3888
  }
3889
3889
  declare global {
3890
3890
  interface HTMLElementTagNameMap {
@@ -4734,7 +4734,7 @@ declare class LabelledRadialInput extends LabelledInputBase {
4734
4734
  private _isWide;
4735
4735
  private _getEffectivePrecision;
4736
4736
  protected _handleResize(entries: ResizeObserverEntry[]): void;
4737
- protected _renderEditableNumber(): typeof nothing | TemplateResult<1>;
4737
+ protected _renderEditableNumber(): TemplateResult<1> | typeof nothing;
4738
4738
  render(): TemplateResult<1>;
4739
4739
  private _getTooltipValue;
4740
4740
  static styles: CSSResultGroup;
@@ -5320,6 +5320,10 @@ type PlotDataSeriesOptions = {
5320
5320
  * Default: true
5321
5321
  */
5322
5322
  persistentScaling: boolean;
5323
+ fixedRange: {
5324
+ min: number;
5325
+ max: number;
5326
+ } | null;
5323
5327
  };
5324
5328
  /**
5325
5329
  * A data series
@@ -5327,19 +5331,28 @@ type PlotDataSeriesOptions = {
5327
5331
  declare class PlotDataSeries {
5328
5332
  #private;
5329
5333
  values: number[];
5330
- range: {
5331
- min: number;
5332
- max: number;
5333
- };
5334
5334
  /**
5335
5335
  * Constructor.
5336
5336
  *
5337
5337
  * Default options:
5338
5338
  * - `capacityLimit`: 100
5339
5339
  * - `persistentScaling`: true
5340
+ * - `fixedRange`: null
5340
5341
  * @param options
5341
5342
  */
5342
5343
  constructor(options?: Partial<PlotDataSeriesOptions>);
5344
+ /**
5345
+ * Sets a manual range, this disabled auto-scaling.
5346
+ * Use {@link unsetRange} to re-enable auto-scaling.
5347
+ * @param min
5348
+ * @param max
5349
+ */
5350
+ setRange(min: number, max: number): void;
5351
+ /**
5352
+ * Disable the manual range
5353
+ */
5354
+ unsetRange(): void;
5355
+ get isAutoRange(): boolean;
5343
5356
  /**
5344
5357
  * Adds a single value
5345
5358
  * @param valueOrValues Value to add
@@ -5350,6 +5363,13 @@ declare class PlotDataSeries {
5350
5363
  * @param values
5351
5364
  */
5352
5365
  set(values: number[]): void;
5366
+ /**
5367
+ * Returns the manual range if this is in effect, or the automatic
5368
+ */
5369
+ get range(): {
5370
+ min: number;
5371
+ max: number;
5372
+ };
5353
5373
  /**
5354
5374
  * Clear all data and reset range. If `persistentScaling` is _false_, also resets scaling to initial state.
5355
5375
  * @returns _true_ if there was data to clear
@@ -5375,6 +5395,8 @@ declare class PlotSingleAxis extends LitElement {
5375
5395
  precise: boolean;
5376
5396
  tooltips: boolean;
5377
5397
  capacity: number;
5398
+ rangeMin: number;
5399
+ rangeMax: number;
5378
5400
  persistentScale: boolean;
5379
5401
  paused: boolean;
5380
5402
  clickPauses: boolean;
@@ -5389,24 +5411,6 @@ declare class PlotSingleAxis extends LitElement {
5389
5411
  private _height;
5390
5412
  /** Override to customize tooltip label. */
5391
5413
  valueFormat: (v: number | undefined) => string;
5392
- /**
5393
- * Get all values in the data series as a readonly array.
5394
- */
5395
- get values(): readonly number[];
5396
- /**
5397
- * Get length of data series
5398
- */
5399
- get dataCount(): number;
5400
- /**
5401
- * Get value at specific index of data series
5402
- * @param index
5403
- */
5404
- getValueAt(index: number): number | undefined;
5405
- /**
5406
- * Get value index based on client X position
5407
- * @param clientX
5408
- */
5409
- getIndexFromClientX(clientX: number): number;
5410
5414
  /**
5411
5415
  * Adds a value to the data series.
5412
5416
  *
@@ -5438,6 +5442,25 @@ declare class PlotSingleAxis extends LitElement {
5438
5442
  clear(): boolean;
5439
5443
  protected firstUpdated(_changed: PropertyValues): void;
5440
5444
  protected updated(changed: PropertyValues): void;
5445
+ get series(): PlotDataSeries;
5446
+ /**
5447
+ * Get all values in the data series as a readonly array.
5448
+ */
5449
+ get values(): readonly number[];
5450
+ /**
5451
+ * Get length of data series
5452
+ */
5453
+ get dataLength(): number;
5454
+ /**
5455
+ * Get value at specific index of data series
5456
+ * @param index
5457
+ */
5458
+ getValueAt(index: number): number | undefined;
5459
+ /**
5460
+ * Get value index based on client X position
5461
+ * @param clientX
5462
+ */
5463
+ getIndexFromClientX(clientX: number): number;
5441
5464
  render(): TemplateResult<1>;
5442
5465
  static styles: CSSResult;
5443
5466
  }