@kong-ui-public/analytics-utilities 12.1.1-pr.2582.06c0bb66d.0 → 12.1.1
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/types/constants.d.ts +4 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/dashboardSchema.v2.d.ts +3243 -0
- package/dist/types/dashboardSchema.v2.d.ts.map +1 -0
- package/dist/types/filters.d.ts +3 -0
- package/dist/types/filters.d.ts.map +1 -0
- package/dist/types/format.d.ts +15 -0
- package/dist/types/format.d.ts.map +1 -0
- package/dist/types/format.spec.tz.d.ts +2 -0
- package/dist/types/format.spec.tz.d.ts.map +1 -0
- package/dist/types/granularity.d.ts +27 -0
- package/dist/types/granularity.d.ts.map +1 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/queryTime.d.ts +36 -0
- package/dist/types/queryTime.d.ts.map +1 -0
- package/dist/types/queryTime.spec.tz.d.ts +2 -0
- package/dist/types/queryTime.spec.tz.d.ts.map +1 -0
- package/dist/types/specUtils.d.ts +3 -0
- package/dist/types/specUtils.d.ts.map +1 -0
- package/dist/types/timeframes.d.ts +33 -0
- package/dist/types/timeframes.d.ts.map +1 -0
- package/dist/types/types/analytics-config.d.ts +23 -0
- package/dist/types/types/analytics-config.d.ts.map +1 -0
- package/dist/types/types/chart-types.d.ts +3 -0
- package/dist/types/types/chart-types.d.ts.map +1 -0
- package/dist/types/types/country-codes.d.ts +745 -0
- package/dist/types/types/country-codes.d.ts.map +1 -0
- package/dist/types/types/datepicker-selection.d.ts +6 -0
- package/dist/types/types/datepicker-selection.d.ts.map +1 -0
- package/dist/types/types/druid-granularity.d.ts +6 -0
- package/dist/types/types/druid-granularity.d.ts.map +1 -0
- package/dist/types/types/explore/advanced.d.ts +20 -0
- package/dist/types/types/explore/advanced.d.ts.map +1 -0
- package/dist/types/types/explore/ai.d.ts +20 -0
- package/dist/types/types/explore/ai.d.ts.map +1 -0
- package/dist/types/types/explore/all.d.ts +18 -0
- package/dist/types/types/explore/all.d.ts.map +1 -0
- package/dist/types/types/explore/basic.d.ts +31 -0
- package/dist/types/types/explore/basic.d.ts.map +1 -0
- package/dist/types/types/explore/common.d.ts +34 -0
- package/dist/types/types/explore/common.d.ts.map +1 -0
- package/dist/types/types/explore/index.d.ts +8 -0
- package/dist/types/types/explore/index.d.ts.map +1 -0
- package/dist/types/types/explore/requests.d.ts +57 -0
- package/dist/types/types/explore/requests.d.ts.map +1 -0
- package/dist/types/types/explore/result.d.ts +48 -0
- package/dist/types/types/explore/result.d.ts.map +1 -0
- package/dist/types/types/explore/util.d.ts +8 -0
- package/dist/types/types/explore/util.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +14 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/query-bridge.d.ts +29 -0
- package/dist/types/types/query-bridge.d.ts.map +1 -0
- package/dist/types/types/query-time.d.ts +13 -0
- package/dist/types/types/query-time.d.ts.map +1 -0
- package/dist/types/types/request-export.d.ts +11 -0
- package/dist/types/types/request-export.d.ts.map +1 -0
- package/dist/types/types/time-period.d.ts +9 -0
- package/dist/types/types/time-period.d.ts.map +1 -0
- package/dist/types/types/timeframe-keys.d.ts +21 -0
- package/dist/types/types/timeframe-keys.d.ts.map +1 -0
- package/dist/types/types/timeframe-options.d.ts +18 -0
- package/dist/types/types/timeframe-options.d.ts.map +1 -0
- package/dist/types/types/timeframe.d.ts +17 -0
- package/dist/types/types/timeframe.d.ts.map +1 -0
- package/dist/types/utils/GeoLookup.d.ts +4 -0
- package/dist/types/utils/GeoLookup.d.ts.map +1 -0
- package/dist/types/utils/SeedRandom.d.ts +6 -0
- package/dist/types/utils/SeedRandom.d.ts.map +1 -0
- package/dist/types/utils/chartDataGenerator.d.ts +9 -0
- package/dist/types/utils/chartDataGenerator.d.ts.map +1 -0
- package/dist/types/utils/formatUnit.d.ts +21 -0
- package/dist/types/utils/formatUnit.d.ts.map +1 -0
- package/dist/types/utils/helpers.d.ts +2 -0
- package/dist/types/utils/helpers.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +6 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/vitals-utilities.cjs +2 -0
- package/dist/vitals-utilities.cjs.map +1 -0
- package/dist/vitals-utilities.es.js +4027 -0
- package/dist/vitals-utilities.es.js.map +1 -0
- package/dist/vitals-utilities.umd.js +2 -0
- package/dist/vitals-utilities.umd.js.map +1 -0
- package/package.json +7 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboardSchema.v2.d.ts","sourceRoot":"","sources":["../../src/dashboardSchema.v2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAkB/D,KAAK,qBAAqB,CAAC,CAAC,SAAS,UAAU,IAAI,UAAU,CAAC,CAAC,EAAE;IAAE,+BAA+B,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA;AAI3G,eAAO,MAAM,kBAAkB,8KAYrB,CAAA;AACV,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAA;AAyBjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAaG,CAAA;AAE/B,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAA;AAE5E,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBI,CAAA;AAE/B,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC,OAAO,cAAc,CAAC,CAAA;AAE1E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;CAoBG,CAAA;AAE/B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBH,CAAA;AAE/B,MAAM,MAAM,sBAAsB,GAAG,qBAAqB,CAAC,O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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBH,CAAA;AAE/B,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../src/filters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAUlF,eAAO,MAAM,mBAAmB,GAC9B,WAAW,iCAAiC,KAC3C,gBAAgB,EAiBlB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface TimeFormatOptions {
|
|
2
|
+
includeTZ?: boolean;
|
|
3
|
+
tz?: string;
|
|
4
|
+
short?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function formatLogTimestamp(ts: number | Date, options?: TimeFormatOptions): string;
|
|
7
|
+
export declare function formatTime(ts: number | string, options?: TimeFormatOptions): string | number;
|
|
8
|
+
/**
|
|
9
|
+
* Formatted display for a start and end time range
|
|
10
|
+
* @param start Date from
|
|
11
|
+
* @param end Date to
|
|
12
|
+
* @returns Human-readable date range string
|
|
13
|
+
*/
|
|
14
|
+
export declare function formatTimeRange(start: Date, end: Date): string;
|
|
15
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/format.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,GAAE,iBAAsB,UAQpF;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,GAAE,iBAAsB,mBA6B9E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,UAErD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.spec.tz.d.ts","sourceRoot":"","sources":["../../src/format.spec.tz.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DruidGranularity, GranularityValues } from './types';
|
|
2
|
+
export declare const Granularities: {
|
|
3
|
+
secondly: number;
|
|
4
|
+
tenSecondly: number;
|
|
5
|
+
thirtySecondly: number;
|
|
6
|
+
minutely: number;
|
|
7
|
+
fiveMinutely: number;
|
|
8
|
+
tenMinutely: number;
|
|
9
|
+
thirtyMinutely: number;
|
|
10
|
+
hourly: number;
|
|
11
|
+
twoHourly: number;
|
|
12
|
+
twelveHourly: number;
|
|
13
|
+
daily: number;
|
|
14
|
+
weekly: number;
|
|
15
|
+
trend: number;
|
|
16
|
+
};
|
|
17
|
+
export declare function granularitiesToOptions(values: GranularityValues[], i18n: {
|
|
18
|
+
t: (v: string) => string;
|
|
19
|
+
}): {
|
|
20
|
+
value: "secondly" | "tenSecondly" | "thirtySecondly" | "minutely" | "fiveMinutely" | "tenMinutely" | "thirtyMinutely" | "hourly" | "twoHourly" | "twelveHourly" | "daily" | "weekly" | "trend";
|
|
21
|
+
label: string;
|
|
22
|
+
}[];
|
|
23
|
+
export declare function granularityMsToQuery(granularity: number, origin: string): DruidGranularity;
|
|
24
|
+
export declare function msToGranularity(ms?: number): GranularityValues | null;
|
|
25
|
+
export declare function floorToNearestTimeGrain(date: Date, granularity: GranularityValues, tz?: string): Date;
|
|
26
|
+
export declare function ceilToNearestTimeGrain(date: Date, granularity: GranularityValues, tz?: string): Date;
|
|
27
|
+
//# sourceMappingURL=granularity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"granularity.d.ts","sourceRoot":"","sources":["../../src/granularity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKlE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;CAczB,CAAA;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,iBAAiB,EAAE,EAC3B,IAAI,EAAE;IAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;CAAE;;;IAMnC;AAED,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,gBAAgB,CAMlB;AAED,wBAAgB,eAAe,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CASrE;AA2BD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAErG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAEpG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './constants';
|
|
2
|
+
export * from './dashboardSchema.v2';
|
|
3
|
+
export * from './types';
|
|
4
|
+
export * from './filters';
|
|
5
|
+
export * from './format';
|
|
6
|
+
export * from './granularity';
|
|
7
|
+
export * from './queryTime';
|
|
8
|
+
export * from './timeframes';
|
|
9
|
+
export * from './utils';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { DruidGranularity, GranularityValues, QueryTime } from './types';
|
|
2
|
+
import type { Timeframe } from './timeframes';
|
|
3
|
+
declare abstract class BaseQueryTime implements QueryTime {
|
|
4
|
+
protected readonly timeframe: Timeframe;
|
|
5
|
+
protected readonly tz?: string;
|
|
6
|
+
protected readonly dataGranularity: GranularityValues;
|
|
7
|
+
constructor(timeframe: Timeframe, tz?: string, dataGranularity?: GranularityValues);
|
|
8
|
+
abstract startDate(): Date;
|
|
9
|
+
abstract endDate(): Date;
|
|
10
|
+
abstract granularityMs(): number;
|
|
11
|
+
protected calculateStartDate(isRelative: boolean, granularity: GranularityValues, periods?: number): Date;
|
|
12
|
+
granularitySeconds(): number;
|
|
13
|
+
granularityDruid(): DruidGranularity;
|
|
14
|
+
startSeconds(): number;
|
|
15
|
+
endSeconds(): number;
|
|
16
|
+
startMs(): number;
|
|
17
|
+
endMs(): number;
|
|
18
|
+
}
|
|
19
|
+
export declare class TimeseriesQueryTime extends BaseQueryTime {
|
|
20
|
+
private readonly granularity;
|
|
21
|
+
constructor(timeframe: Timeframe, granularity?: GranularityValues, tz?: string, dataGranularity?: GranularityValues, fineGrain?: boolean);
|
|
22
|
+
startDate(): Date;
|
|
23
|
+
endDate(): Date;
|
|
24
|
+
granularityMs(): number;
|
|
25
|
+
}
|
|
26
|
+
export declare class UnaryQueryTime extends BaseQueryTime {
|
|
27
|
+
startDate(): Date;
|
|
28
|
+
endDate(): Date;
|
|
29
|
+
granularityMs(): number;
|
|
30
|
+
}
|
|
31
|
+
export declare class DeltaQueryTime extends UnaryQueryTime {
|
|
32
|
+
startDate(): Date;
|
|
33
|
+
granularityMs(): number;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=queryTime.d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CAGxB;AAGD,qBAAa,cAAe,SAAQ,aAAa;IAC/C,SAAS,IAAI,IAAI;IAIjB,OAAO,IAAI,IAAI;IAIf,aAAa,IAAI,MAAM;CAGxB;AAKD,qBAAa,cAAe,SAAQ,cAAc;IAChD,SAAS,IAAI,IAAI;IAIjB,aAAa,IAAI,MAAM;CAOxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryTime.spec.tz.d.ts","sourceRoot":"","sources":["../../src/queryTime.spec.tz.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specUtils.d.ts","sourceRoot":"","sources":["../../src/specUtils.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,EAAE,GAA4C,CAAA;AAErE,eAAO,MAAM,aAAa,EAAE,GAA4C,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ExtendedRelativeTimeRangeValues, TimeframeKeys } from './types';
|
|
2
|
+
import type { DatePickerSelection, TimeframeOptions, TimePeriod, RelativeTimeRangeValuesV4, TimeRangeV4, GranularityValues } from './types';
|
|
3
|
+
import type { ITimeframe } from './types/timeframe';
|
|
4
|
+
export declare class Timeframe implements ITimeframe {
|
|
5
|
+
readonly timeframeText: string;
|
|
6
|
+
readonly key: RelativeTimeRangeValuesV4 | ExtendedRelativeTimeRangeValues | 'custom';
|
|
7
|
+
readonly display: string;
|
|
8
|
+
readonly timeframeLength: () => number;
|
|
9
|
+
readonly allowedTiers: string[];
|
|
10
|
+
readonly defaultResponseGranularity: GranularityValues;
|
|
11
|
+
readonly dataGranularity: GranularityValues;
|
|
12
|
+
readonly isRelative: boolean;
|
|
13
|
+
readonly fineGrainedDefaultGranularity?: GranularityValues;
|
|
14
|
+
private _startCustom?;
|
|
15
|
+
private _endCustom?;
|
|
16
|
+
private _allowedGranularitiesOverride?;
|
|
17
|
+
constructor(opts: TimeframeOptions);
|
|
18
|
+
rawEnd(_tz?: string): Date;
|
|
19
|
+
rawStart(_tz?: string): Date;
|
|
20
|
+
timeframeLengthMs(): number;
|
|
21
|
+
maximumTimeframeLength(): number;
|
|
22
|
+
allowedGranularities(fineGrain?: boolean): Set<"secondly" | "tenSecondly" | "thirtySecondly" | "minutely" | "fiveMinutely" | "tenMinutely" | "thirtyMinutely" | "hourly" | "twoHourly" | "twelveHourly" | "daily" | "weekly" | "trend">;
|
|
23
|
+
cacheKey(): string;
|
|
24
|
+
v4Query(tz?: string): TimeRangeV4;
|
|
25
|
+
protected tzAdjustedDate(tz?: string): Date;
|
|
26
|
+
}
|
|
27
|
+
export declare const TimePeriods: Map<string, Timeframe>;
|
|
28
|
+
export declare function datePickerSelectionToTimeframe(datePickerSelection: DatePickerSelection): Timeframe;
|
|
29
|
+
export declare function timeframeToDatepickerSelection(timeframe: Timeframe): DatePickerSelection;
|
|
30
|
+
export declare function timeframeToDatepickerTimeperiod(timeframe: Timeframe): TimePeriod;
|
|
31
|
+
export declare function dstOffsetHours(d1: Date, d2: Date): number;
|
|
32
|
+
export declare const TIMEFRAME_LOOKUP: Record<string, TimeframeKeys>;
|
|
33
|
+
//# sourceMappingURL=timeframes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeframes.d.ts","sourceRoot":"","sources":["../../src/timeframes.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,+BAA+B,EAEpC,aAAa,EACd,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,yBAAyB,EAAE,WAAW,EACtC,iBAAiB,EAClB,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AASnD,qBAAa,SAAU,YAAW,UAAU;IAC1C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAE9B,QAAQ,CAAC,GAAG,EAAE,yBAAyB,GAAG,+BAA+B,GAAG,QAAQ,CAAA;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,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type AnalyticsRetentionMs = 86400000 | 604800000 | 2592000000 | 7776000000 | 15552000000 | 31536000000 | 36720000000;
|
|
2
|
+
export type RequestsRetentionMs = 86400000 | 604800000 | 1209600000 | 2592000000;
|
|
3
|
+
export interface ControlPlaneConfig {
|
|
4
|
+
analytics: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface ApiAnalyticsV2 {
|
|
7
|
+
percentiles: boolean;
|
|
8
|
+
retention_ms: AnalyticsRetentionMs;
|
|
9
|
+
}
|
|
10
|
+
export interface ApiRequestsV2 {
|
|
11
|
+
retention_ms: RequestsRetentionMs;
|
|
12
|
+
}
|
|
13
|
+
export interface UiOptions {
|
|
14
|
+
maxParallelRequests?: number;
|
|
15
|
+
requestInterval?: number;
|
|
16
|
+
requestIntervalCap?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface AnalyticsConfigV2 {
|
|
19
|
+
analytics: null | ApiAnalyticsV2;
|
|
20
|
+
requests: null | ApiRequestsV2;
|
|
21
|
+
ui?: UiOptions;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=analytics-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics-config.d.ts","sourceRoot":"","sources":["../../../src/types/analytics-config.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAC5B,QAAQ,GACR,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,WAAW,CAAA;AACf,MAAM,MAAM,mBAAmB,GAC3B,QAAQ,GACR,SAAS,GACT,UAAU,GACV,UAAU,CAAA;AAEd,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,oBAAoB,CAAA;CACnC;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,mBAAmB,CAAA;CAClC;AAED,MAAM,WAAW,SAAS;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,IAAI,GAAG,cAAc,CAAA;IAChC,QAAQ,EAAE,IAAI,GAAG,aAAa,CAAA;IAC9B,EAAE,CAAC,EAAE,SAAS,CAAA;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart-types.d.ts","sourceRoot":"","sources":["../../../src/types/chart-types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,6HAQnB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA"}
|