@kong-ui-public/analytics-chart 0.22.1 → 0.23.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.
@@ -7,4 +7,5 @@ export * from './types';
7
7
  export * from './enums';
8
8
  export * from './utils/colors';
9
9
  export * from './utils/customColors';
10
+ export * from './utils/constants';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iCAAiC,CAAA;AAC5D,OAAO,WAAW,MAAM,8BAA8B,CAAA;AACtD,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,cAAc,MAAM,iCAAiC,CAAA;AAE5D,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,CAAA;AAEjE,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iCAAiC,CAAA;AAC5D,OAAO,WAAW,MAAM,8BAA8B,CAAA;AACtD,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,cAAc,MAAM,iCAAiC,CAAA;AAE5D,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,CAAA;AAEjE,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA"}
@@ -1,6 +1,11 @@
1
1
  export interface CsvKeyValuePair {
2
2
  [key: string]: string;
3
3
  }
4
+ export interface TimeFormatOptions {
5
+ includeTZ?: boolean;
6
+ tz?: string;
7
+ short?: boolean;
8
+ }
4
9
  export declare enum ValidType {
5
10
  String = "string",
6
11
  Number = "number",
@@ -1 +1 @@
1
- {"version":3,"file":"chart-export.d.ts","sourceRoot":"","sources":["../../../src/types/chart-export.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB;AAED,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,OAAO,GAAG,eAAe,EAAE,CAAA"}
1
+ {"version":3,"file":"chart-export.d.ts","sourceRoot":"","sources":["../../../src/types/chart-export.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,OAAO,GAAG,eAAe,EAAE,CAAA"}
@@ -1,11 +1,7 @@
1
+ import type { TimeFormatOptions } from '../types';
1
2
  export declare const DECIMAL_DISPLAY = 2;
2
3
  declare const numberFormatter: Intl.NumberFormat;
3
4
  export { numberFormatter };
4
- export interface TimeFormatOptions {
5
- includeTZ?: boolean;
6
- tz?: string;
7
- short?: boolean;
8
- }
9
5
  export declare function formatTime(ts: number, options?: TimeFormatOptions): string | number;
10
6
  export declare const MAX_LABEL_LENGTH = 10;
11
7
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,IAAI,CAAA;AAEhC,QAAA,MAAM,eAAe,mBAAoE,CAAA;AAEzF,OAAO,EAAE,eAAe,EAAE,CAAA;AAE1B,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,iBAAsB,mBA6BrE;AAED,eAAO,MAAM,gBAAgB,KAAK,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEjD,eAAO,MAAM,eAAe,IAAI,CAAA;AAEhC,QAAA,MAAM,eAAe,mBAAoE,CAAA;AAEzF,OAAO,EAAE,eAAe,EAAE,CAAA;AAE1B,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,iBAAsB,mBA6BrE;AAED,eAAO,MAAM,gBAAgB,KAAK,CAAA"}
@@ -21291,6 +21291,8 @@ export {
21291
21291
  he as ChartTypes,
21292
21292
  wl as ChartTypesSimple,
21293
21293
  hC as CsvExportModal,
21294
+ G1 as DECIMAL_DISPLAY,
21295
+ Lo as MAX_LABEL_LENGTH,
21294
21296
  QC as SimpleChart,
21295
21297
  JC as TopNTable,
21296
21298
  pi as ValidType,
@@ -21298,8 +21300,10 @@ export {
21298
21300
  BC as codesInSpec,
21299
21301
  Ma as darkenColor,
21300
21302
  Ve as datavisPalette,
21303
+ Ro as formatTime,
21301
21304
  Rd as lightGrey,
21302
21305
  rr as lookupDatavisColor,
21303
21306
  tk as lookupStatusCodeCategoryColor,
21304
- jC as lookupStatusCodeColor
21307
+ jC as lookupStatusCodeColor,
21308
+ Ao as numberFormatter
21305
21309
  };