@sports-alliance/sports-lib 7.0.5 → 7.0.6
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/lib/cjs/data/data.array.d.ts +3 -2
- package/lib/cjs/data/data.array.js +1 -1
- package/lib/cjs/data/data.bare.d.ts +1 -2
- package/lib/cjs/data/data.d.ts +5 -5
- package/lib/cjs/data/data.number.d.ts +2 -1
- package/lib/cjs/data/data.position.d.ts +3 -2
- package/lib/cjs/data/data.position.js +1 -1
- package/lib/cjs/data/data.string.d.ts +3 -2
- package/lib/cjs/data/data.string.js +1 -1
- package/lib/esm/data/data.array.d.ts +3 -2
- package/lib/esm/data/data.array.js +1 -1
- package/lib/esm/data/data.bare.d.ts +1 -2
- package/lib/esm/data/data.d.ts +5 -5
- package/lib/esm/data/data.number.d.ts +2 -1
- package/lib/esm/data/data.position.d.ts +3 -2
- package/lib/esm/data/data.position.js +1 -1
- package/lib/esm/data/data.string.d.ts +3 -2
- package/lib/esm/data/data.string.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataBare } from './data.bare';
|
|
2
|
-
export declare abstract class DataArray extends DataBare
|
|
2
|
+
export declare abstract class DataArray extends DataBare {
|
|
3
|
+
protected value: string[];
|
|
3
4
|
constructor(value: string[]);
|
|
4
|
-
getValue(
|
|
5
|
+
getValue(): string[];
|
|
5
6
|
isValueTypeValid(value: any): boolean;
|
|
6
7
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Data } from './data';
|
|
2
|
-
|
|
3
|
-
export declare abstract class DataBare<T extends number | string | boolean | string[] | DataPositionInterface = number | string | boolean | string[] | DataPositionInterface> extends Data<T> {
|
|
2
|
+
export declare abstract class DataBare extends Data {
|
|
4
3
|
static unit: string;
|
|
5
4
|
}
|
package/lib/cjs/data/data.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { DataInterface, UnitSystem } from './data.interface';
|
|
2
2
|
import { DataJSONInterface } from './data.json.interface';
|
|
3
3
|
import { DataPositionInterface } from './data.position.interface';
|
|
4
|
-
export declare abstract class Data
|
|
4
|
+
export declare abstract class Data implements DataInterface {
|
|
5
5
|
static type: string;
|
|
6
6
|
static unit: string;
|
|
7
7
|
static displayType?: string;
|
|
8
8
|
static unitSystem: UnitSystem;
|
|
9
|
-
protected value:
|
|
10
|
-
protected constructor(value:
|
|
11
|
-
setValue(value:
|
|
12
|
-
getValue(formatForDataType?: string):
|
|
9
|
+
protected value: number | string | boolean | string[] | DataPositionInterface;
|
|
10
|
+
protected constructor(value: string | number | boolean | string[] | DataPositionInterface);
|
|
11
|
+
setValue(value: string | number | boolean | string[] | DataPositionInterface): this;
|
|
12
|
+
getValue(formatForDataType?: string): string | number | boolean | string[] | DataPositionInterface;
|
|
13
13
|
getDisplayValue(): number | string | string[];
|
|
14
14
|
getType(): string;
|
|
15
15
|
getUnit(): string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DataBare } from './data.bare';
|
|
2
|
-
export declare abstract class DataNumber extends DataBare
|
|
2
|
+
export declare abstract class DataNumber extends DataBare {
|
|
3
|
+
protected value: number;
|
|
3
4
|
constructor(value: number);
|
|
4
5
|
getValue(formatForDataType?: string): number;
|
|
5
6
|
isValueTypeValid(value: any): boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DataBare } from './data.bare';
|
|
2
2
|
import { DataPositionInterface } from './data.position.interface';
|
|
3
|
-
export declare class DataPosition extends DataBare
|
|
3
|
+
export declare class DataPosition extends DataBare {
|
|
4
4
|
static type: string;
|
|
5
|
+
protected value: DataPositionInterface;
|
|
5
6
|
constructor(value: DataPositionInterface);
|
|
6
|
-
getValue(
|
|
7
|
+
getValue(): DataPositionInterface;
|
|
7
8
|
getDisplayValue(): string;
|
|
8
9
|
isValueTypeValid(value: any): boolean;
|
|
9
10
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataBare } from './data.bare';
|
|
2
|
-
export declare abstract class DataString extends DataBare
|
|
2
|
+
export declare abstract class DataString extends DataBare {
|
|
3
|
+
protected value: string;
|
|
3
4
|
constructor(value: string);
|
|
4
|
-
getValue(
|
|
5
|
+
getValue(): string;
|
|
5
6
|
isValueTypeValid(value: any): boolean;
|
|
6
7
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataBare } from './data.bare';
|
|
2
|
-
export declare abstract class DataArray extends DataBare
|
|
2
|
+
export declare abstract class DataArray extends DataBare {
|
|
3
|
+
protected value: string[];
|
|
3
4
|
constructor(value: string[]);
|
|
4
|
-
getValue(
|
|
5
|
+
getValue(): string[];
|
|
5
6
|
isValueTypeValid(value: any): boolean;
|
|
6
7
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Data } from './data';
|
|
2
|
-
|
|
3
|
-
export declare abstract class DataBare<T extends number | string | boolean | string[] | DataPositionInterface = number | string | boolean | string[] | DataPositionInterface> extends Data<T> {
|
|
2
|
+
export declare abstract class DataBare extends Data {
|
|
4
3
|
static unit: string;
|
|
5
4
|
}
|
package/lib/esm/data/data.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { DataInterface, UnitSystem } from './data.interface';
|
|
2
2
|
import { DataJSONInterface } from './data.json.interface';
|
|
3
3
|
import { DataPositionInterface } from './data.position.interface';
|
|
4
|
-
export declare abstract class Data
|
|
4
|
+
export declare abstract class Data implements DataInterface {
|
|
5
5
|
static type: string;
|
|
6
6
|
static unit: string;
|
|
7
7
|
static displayType?: string;
|
|
8
8
|
static unitSystem: UnitSystem;
|
|
9
|
-
protected value:
|
|
10
|
-
protected constructor(value:
|
|
11
|
-
setValue(value:
|
|
12
|
-
getValue(formatForDataType?: string):
|
|
9
|
+
protected value: number | string | boolean | string[] | DataPositionInterface;
|
|
10
|
+
protected constructor(value: string | number | boolean | string[] | DataPositionInterface);
|
|
11
|
+
setValue(value: string | number | boolean | string[] | DataPositionInterface): this;
|
|
12
|
+
getValue(formatForDataType?: string): string | number | boolean | string[] | DataPositionInterface;
|
|
13
13
|
getDisplayValue(): number | string | string[];
|
|
14
14
|
getType(): string;
|
|
15
15
|
getUnit(): string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DataBare } from './data.bare';
|
|
2
|
-
export declare abstract class DataNumber extends DataBare
|
|
2
|
+
export declare abstract class DataNumber extends DataBare {
|
|
3
|
+
protected value: number;
|
|
3
4
|
constructor(value: number);
|
|
4
5
|
getValue(formatForDataType?: string): number;
|
|
5
6
|
isValueTypeValid(value: any): boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DataBare } from './data.bare';
|
|
2
2
|
import { DataPositionInterface } from './data.position.interface';
|
|
3
|
-
export declare class DataPosition extends DataBare
|
|
3
|
+
export declare class DataPosition extends DataBare {
|
|
4
4
|
static type: string;
|
|
5
|
+
protected value: DataPositionInterface;
|
|
5
6
|
constructor(value: DataPositionInterface);
|
|
6
|
-
getValue(
|
|
7
|
+
getValue(): DataPositionInterface;
|
|
7
8
|
getDisplayValue(): string;
|
|
8
9
|
isValueTypeValid(value: any): boolean;
|
|
9
10
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataBare } from './data.bare';
|
|
2
|
-
export declare abstract class DataString extends DataBare
|
|
2
|
+
export declare abstract class DataString extends DataBare {
|
|
3
|
+
protected value: string;
|
|
3
4
|
constructor(value: string);
|
|
4
|
-
getValue(
|
|
5
|
+
getValue(): string;
|
|
5
6
|
isValueTypeValid(value: any): boolean;
|
|
6
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sports-alliance/sports-lib",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.6",
|
|
4
4
|
"description": "A Library to for importing / exporting and processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gpx",
|