react-semaphor 0.1.239 → 0.1.241
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/chunks/{dashboard-controls-DIFPVHkq.js → dashboard-controls-Bbjg39W1.js} +1 -1
- package/dist/chunks/{dashboard-controls-m-rn9O15.js → dashboard-controls-CydTgB8b.js} +5 -5
- package/dist/chunks/{dashboard-json-CJ1HKDT6.js → dashboard-json-BqhlPxCk.js} +1 -1
- package/dist/chunks/{dashboard-json-HWBQuWn2.js → dashboard-json-Dh0BCAEU.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-DlwLS77e.js → dashboard-summary-settings-dialog-DMGeFM9N.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-DvLyjGhq.js → dashboard-summary-settings-dialog-DXEx7VYT.js} +1 -1
- package/dist/chunks/date-formatter-BeFtqSQ2.js +1978 -0
- package/dist/chunks/date-formatter-CZ8p6ngp.js +1 -0
- package/dist/chunks/{edit-dashboard-visual-BVlA_vRb.js → edit-dashboard-visual-BSHC5QiP.js} +3332 -3316
- package/dist/chunks/{edit-dashboard-visual-B5jatJ2M.js → edit-dashboard-visual-DcLZThas.js} +12 -12
- package/dist/chunks/{editor-action-buttons-Bq-ENC_B.js → editor-action-buttons-C_zLw3Aj.js} +1 -1
- package/dist/chunks/{editor-action-buttons-d64iA8wP.js → editor-action-buttons-lDMI1SQ2.js} +2 -2
- package/dist/chunks/{index-0u2X3G_x.js → index-C1qXov_Z.js} +29107 -28684
- package/dist/chunks/index-CYQV2kbT.js +1103 -0
- package/dist/chunks/{notification-bell-Cu4JA2Rs.js → notification-bell-CfYK7Cx6.js} +1 -1
- package/dist/chunks/{notification-bell-DpxVIL-E.js → notification-bell-CuEbhFaL.js} +18 -18
- package/dist/chunks/{resource-management-panel-CJXupZdG.js → resource-management-panel-G3XJbfPx.js} +2 -2
- package/dist/chunks/{resource-management-panel-JiF_3jpj.js → resource-management-panel-xwPhr6Lm.js} +1 -1
- package/dist/chunks/{use-visual-utils-yUJHf_h7.js → use-visual-utils-Cdm8jbGc.js} +1 -1
- package/dist/chunks/{use-visual-utils-C8_xz-xH.js → use-visual-utils-Du-m-SYb.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/format-utils/index.cjs +5 -5
- package/dist/format-utils/index.js +171 -305
- package/dist/index.cjs +1 -1
- package/dist/index.js +5 -5
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/dashboard.d.ts +54 -0
- package/dist/types/format-utils.d.ts +5 -0
- package/dist/types/main.d.ts +50 -4
- package/dist/types/shared.d.ts +49 -0
- package/dist/types/surfboard.d.ts +54 -0
- package/dist/types/types.d.ts +54 -0
- package/package.json +1 -1
- package/dist/chunks/date-formatter-Sz6QDaM8.js +0 -1
- package/dist/chunks/date-formatter-Y8Za1ib3.js +0 -1813
- package/dist/chunks/index-CyHBRhlz.js +0 -1103
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { V as D, W as _, Y as I, Z as M, _ as w, $ as F, a0 as R, u as C, a1 as y, a2 as k, P as L, k as B, B as E, c as f, a3 as O, l as Q, m as U, n as z, a4 as N, a5 as q, o as V, p as H, q as j, r as W, s as G, a6 as K, a7 as Y, a8 as $ } from "./chunks/index-
|
|
2
|
-
import { aS as pe, aR as he, bA as be, aU as fe, aT as Ae, ar as Ce, aV as xe, D as ge, ap as ye, aj as De, bG as Ee, aZ as Ne, ab as Se, ae as ve, ae as Te, af as Pe, aq as _e, a as Ie, bs as Me, bF as we, am as Fe, bj as Re, bg as ke, bB as Le, b4 as Be, bl as Oe, ao as Qe, ak as Ue, al as ze, a_ as qe, bJ as Ve, bi as He, bu as je, bp as We, by as Ge, bq as Ke, br as Ye, bo as $e, bn as Xe, b6 as Je, bE as Ze, bD as ea, bC as aa, b5 as sa, b9 as ta, ba as ra, b3 as oa, bt as na, an as la, b2 as ia, aX as da, aY as ca, aW as ua, b7 as ma, b1 as pa, bI as ha, bH as ba, b0 as fa, a$ as Aa, bx as Ca, bh as xa, bw as ga, bb as ya, b8 as Da, bm as Ea, bk as Na, bv as Sa, bz as va, ay as Ta, av as Pa, aK as _a, aI as Ia, aH as Ma, aG as wa, aC as Fa, aQ as Ra, aP as ka, aF as La, aE as Ba, aD as Oa, aJ as Qa, aA as Ua, aB as za, aL as qa, aN as Va, ai as Ha, aM as ja, at as Wa, bd as Ga, bf as Ka, be as Ya, N as $a, ah as Xa, aa as Ja, as as Za, au as es, ac as as, M as ss, bc as ts, U as rs, ax as os, aw as ns, az as ls, a9 as is, ag as ds, aO as cs, ad as us } from "./chunks/index-
|
|
1
|
+
import { V as D, W as _, Y as I, Z as M, _ as w, $ as F, a0 as R, u as C, a1 as y, a2 as k, P as L, k as B, B as E, c as f, a3 as O, l as Q, m as U, n as z, a4 as N, a5 as q, o as V, p as H, q as j, r as W, s as G, a6 as K, a7 as Y, a8 as $ } from "./chunks/index-C1qXov_Z.js";
|
|
2
|
+
import { aS as pe, aR as he, bA as be, aU as fe, aT as Ae, ar as Ce, aV as xe, D as ge, ap as ye, aj as De, bG as Ee, aZ as Ne, ab as Se, ae as ve, ae as Te, af as Pe, aq as _e, a as Ie, bs as Me, bF as we, am as Fe, bj as Re, bg as ke, bB as Le, b4 as Be, bl as Oe, ao as Qe, ak as Ue, al as ze, a_ as qe, bJ as Ve, bi as He, bu as je, bp as We, by as Ge, bq as Ke, br as Ye, bo as $e, bn as Xe, b6 as Je, bE as Ze, bD as ea, bC as aa, b5 as sa, b9 as ta, ba as ra, b3 as oa, bt as na, an as la, b2 as ia, aX as da, aY as ca, aW as ua, b7 as ma, b1 as pa, bI as ha, bH as ba, b0 as fa, a$ as Aa, bx as Ca, bh as xa, bw as ga, bb as ya, b8 as Da, bm as Ea, bk as Na, bv as Sa, bz as va, ay as Ta, av as Pa, aK as _a, aI as Ia, aH as Ma, aG as wa, aC as Fa, aQ as Ra, aP as ka, aF as La, aE as Ba, aD as Oa, aJ as Qa, aA as Ua, aB as za, aL as qa, aN as Va, ai as Ha, aM as ja, at as Wa, bd as Ga, bf as Ka, be as Ya, N as $a, ah as Xa, aa as Ja, as as Za, au as es, ac as as, M as ss, bc as ts, U as rs, ax as os, aw as ns, az as ls, a9 as is, ag as ds, aO as cs, ad as us } from "./chunks/index-C1qXov_Z.js";
|
|
3
3
|
import { DEFAULT_CALENDAR_CONTEXT as ps, DEFAULT_SEMANTIC_DOMAIN_ACCESS as hs, EMPTY_SELECTION as bs } from "./types/index.js";
|
|
4
|
-
import { C as As, D as Cs } from "./chunks/dashboard-summary-settings-dialog-
|
|
4
|
+
import { C as As, D as Cs } from "./chunks/dashboard-summary-settings-dialog-DMGeFM9N.js";
|
|
5
5
|
import { jsx as e, jsxs as n, Fragment as X } from "react/jsx-runtime";
|
|
6
6
|
import * as b from "react";
|
|
7
7
|
import { useMemo as J, useState as Z, useEffect as ee } from "react";
|
|
8
|
-
import { ResourceManagementPanel as gs } from "./chunks/resource-management-panel-
|
|
8
|
+
import { ResourceManagementPanel as gs } from "./chunks/resource-management-panel-G3XJbfPx.js";
|
|
9
9
|
import { u as Ds } from "./chunks/use-debounced-dirty-check-BwAbnX_5.js";
|
|
10
10
|
import "react-dom";
|
|
11
|
-
import { A as Ns, a as Ss, E as vs, N as Ts, U as Ps, V as _s, u as Is, b as Ms, c as ws } from "./chunks/notification-bell-
|
|
11
|
+
import { A as Ns, a as Ss, E as vs, N as Ts, U as Ps, V as _s, u as Is, b as Ms, c as ws } from "./chunks/notification-bell-CuEbhFaL.js";
|
|
12
12
|
import { n as Rs, s as ks } from "./chunks/normalize-dashboard-for-dirty-check-Bn27S0PN.js";
|
|
13
13
|
function ne(a) {
|
|
14
14
|
const { displayPreferences: s, ...i } = a, d = {
|
package/dist/surfboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-CYQV2kbT.js"),a=require("../types/index.cjs"),e=require("../chunks/dashboard-summary-settings-dialog-DXEx7VYT.js");exports.Surfboard=r.DashboardPlus;exports.EMPTY_SELECTION=a.EMPTY_SELECTION;exports.CalendarPreferencesDialog=e.CalendarPreferencesDialog;exports.DashboardSummarySettingsDialog=e.DashboardSummarySettingsDialog;
|
package/dist/surfboard/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as o } from "../chunks/index-
|
|
1
|
+
import { a as o } from "../chunks/index-C1qXov_Z.js";
|
|
2
2
|
import { EMPTY_SELECTION as s } from "../types/index.js";
|
|
3
|
-
import { C as m, D as t } from "../chunks/dashboard-summary-settings-dialog-
|
|
3
|
+
import { C as m, D as t } from "../chunks/dashboard-summary-settings-dialog-DMGeFM9N.js";
|
|
4
4
|
export {
|
|
5
5
|
m as CalendarPreferencesDialog,
|
|
6
6
|
t as DashboardSummarySettingsDialog,
|
|
@@ -276,6 +276,8 @@ declare interface ColumnSettings {
|
|
|
276
276
|
locale: string;
|
|
277
277
|
minimumFractionDigits: number;
|
|
278
278
|
maximumFractionDigits: number;
|
|
279
|
+
useGrouping?: boolean;
|
|
280
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
279
281
|
showDataBar: boolean;
|
|
280
282
|
dataBarColor: string;
|
|
281
283
|
dataBarMinValue?: number;
|
|
@@ -662,6 +664,9 @@ declare interface Field {
|
|
|
662
664
|
entityName: string;
|
|
663
665
|
entityType: EntityType;
|
|
664
666
|
role?: 'groupby' | 'metric' | 'sortby' | 'pivotby' | 'detail';
|
|
667
|
+
expression?: string;
|
|
668
|
+
calculatedFormula?: CalculatedFieldFormula;
|
|
669
|
+
format?: FormatSpec;
|
|
665
670
|
fieldScope?: FieldScope;
|
|
666
671
|
}
|
|
667
672
|
|
|
@@ -815,6 +820,34 @@ declare type FixedMonthDefaultDateFilter = {
|
|
|
815
820
|
month: number;
|
|
816
821
|
};
|
|
817
822
|
|
|
823
|
+
declare type FormatSpec = {
|
|
824
|
+
type: 'number' | 'currency' | 'percent' | 'percentage' | 'scientific';
|
|
825
|
+
locale?: string;
|
|
826
|
+
minimumFractionDigits?: number;
|
|
827
|
+
maximumFractionDigits?: number;
|
|
828
|
+
useGrouping?: boolean;
|
|
829
|
+
prefix?: string;
|
|
830
|
+
suffix?: string;
|
|
831
|
+
negativeStyle?: 'minus' | 'parentheses';
|
|
832
|
+
compact?: boolean;
|
|
833
|
+
scale?: number;
|
|
834
|
+
currency?: string;
|
|
835
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
836
|
+
} | {
|
|
837
|
+
type: 'date';
|
|
838
|
+
locale?: string;
|
|
839
|
+
pattern?: string;
|
|
840
|
+
relative?: boolean;
|
|
841
|
+
timezone?: string;
|
|
842
|
+
sourceTimezone?: string;
|
|
843
|
+
prefix?: string;
|
|
844
|
+
suffix?: string;
|
|
845
|
+
} | {
|
|
846
|
+
type: 'string';
|
|
847
|
+
prefix?: string;
|
|
848
|
+
suffix?: string;
|
|
849
|
+
};
|
|
850
|
+
|
|
818
851
|
export declare type GetDashboardResponse = {
|
|
819
852
|
dashboard: TDashboard;
|
|
820
853
|
lenses: TLens[];
|
|
@@ -1034,9 +1067,13 @@ declare type NoneOptions = {};
|
|
|
1034
1067
|
|
|
1035
1068
|
export declare type NumberAxisFormat = {
|
|
1036
1069
|
decimalPlaces?: number;
|
|
1070
|
+
minimumFractionDigits?: number;
|
|
1071
|
+
maximumFractionDigits?: number;
|
|
1037
1072
|
suffix?: string;
|
|
1038
1073
|
currency?: string;
|
|
1039
1074
|
locale?: string;
|
|
1075
|
+
useGrouping?: boolean;
|
|
1076
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
1040
1077
|
};
|
|
1041
1078
|
|
|
1042
1079
|
export declare type NumberOptions = {
|
|
@@ -1400,9 +1437,14 @@ export declare type TCardPreferences = {
|
|
|
1400
1437
|
sortChart?: 'asc' | 'desc' | 'none';
|
|
1401
1438
|
formatNumber?: {
|
|
1402
1439
|
decimalPlaces?: number;
|
|
1440
|
+
minimumFractionDigits?: number;
|
|
1441
|
+
maximumFractionDigits?: number;
|
|
1403
1442
|
currency?: string;
|
|
1404
1443
|
locale?: string;
|
|
1405
1444
|
suffix?: string;
|
|
1445
|
+
prefix?: string;
|
|
1446
|
+
useGrouping?: boolean;
|
|
1447
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
1406
1448
|
enabled?: boolean | string;
|
|
1407
1449
|
colorRanges?: ColorRange[];
|
|
1408
1450
|
};
|
|
@@ -1603,6 +1645,11 @@ export declare type TDataColumn = {
|
|
|
1603
1645
|
label?: string;
|
|
1604
1646
|
description?: string;
|
|
1605
1647
|
qualifiedFieldName?: string;
|
|
1648
|
+
role?: 'metric';
|
|
1649
|
+
expression?: string;
|
|
1650
|
+
calculatedFormula?: CalculatedFieldFormula;
|
|
1651
|
+
format?: FormatSpec;
|
|
1652
|
+
sourceField?: string;
|
|
1606
1653
|
};
|
|
1607
1654
|
|
|
1608
1655
|
export declare type TDataLabelsConfig = {
|
|
@@ -1727,14 +1774,21 @@ declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare
|
|
|
1727
1774
|
export declare type TFormatOptions = {
|
|
1728
1775
|
type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date';
|
|
1729
1776
|
decimalPlaces?: number;
|
|
1777
|
+
minimumFractionDigits?: number;
|
|
1778
|
+
maximumFractionDigits?: number;
|
|
1730
1779
|
currency?: string;
|
|
1731
1780
|
locale?: string;
|
|
1732
1781
|
prefix?: string;
|
|
1733
1782
|
suffix?: string;
|
|
1734
1783
|
useSuffix?: boolean;
|
|
1784
|
+
useGrouping?: boolean;
|
|
1735
1785
|
negativeInParentheses?: boolean;
|
|
1736
1786
|
multiplyBy?: number;
|
|
1787
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
1737
1788
|
dateFormat?: string;
|
|
1789
|
+
timezone?: string;
|
|
1790
|
+
sourceTimezone?: string;
|
|
1791
|
+
relative?: boolean;
|
|
1738
1792
|
};
|
|
1739
1793
|
|
|
1740
1794
|
export declare type TFrame = {
|
|
@@ -51,6 +51,8 @@ export declare interface ColumnSettings {
|
|
|
51
51
|
locale: string;
|
|
52
52
|
minimumFractionDigits: number;
|
|
53
53
|
maximumFractionDigits: number;
|
|
54
|
+
useGrouping?: boolean;
|
|
55
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
54
56
|
showDataBar?: boolean;
|
|
55
57
|
dataBarColor?: string;
|
|
56
58
|
dataBarMinValue?: number;
|
|
@@ -200,6 +202,8 @@ export declare function formatNumberWithColumnSettings(value: number | null | un
|
|
|
200
202
|
locale?: string;
|
|
201
203
|
minimumFractionDigits?: number;
|
|
202
204
|
maximumFractionDigits?: number;
|
|
205
|
+
useGrouping?: boolean;
|
|
206
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
203
207
|
} | undefined, defaultLocale?: string): string;
|
|
204
208
|
|
|
205
209
|
export declare interface FormatOptions {
|
|
@@ -304,6 +308,7 @@ export declare interface NumberFormatOptions {
|
|
|
304
308
|
minimumFractionDigits?: number;
|
|
305
309
|
maximumFractionDigits?: number;
|
|
306
310
|
useGrouping?: boolean;
|
|
311
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
307
312
|
/** Multiply value before formatting (e.g., 100 for percent) */
|
|
308
313
|
multiplyBy?: number;
|
|
309
314
|
/** Add prefix string (e.g., "$") */
|
package/dist/types/main.d.ts
CHANGED
|
@@ -957,6 +957,8 @@ declare interface ColumnSettings {
|
|
|
957
957
|
locale: string;
|
|
958
958
|
minimumFractionDigits: number;
|
|
959
959
|
maximumFractionDigits: number;
|
|
960
|
+
useGrouping?: boolean;
|
|
961
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
960
962
|
showDataBar: boolean;
|
|
961
963
|
dataBarColor: string;
|
|
962
964
|
dataBarMinValue?: number;
|
|
@@ -1976,6 +1978,9 @@ export declare interface Field {
|
|
|
1976
1978
|
entityName: string;
|
|
1977
1979
|
entityType: EntityType;
|
|
1978
1980
|
role?: 'groupby' | 'metric' | 'sortby' | 'pivotby' | 'detail';
|
|
1981
|
+
expression?: string;
|
|
1982
|
+
calculatedFormula?: CalculatedFieldFormula;
|
|
1983
|
+
format?: FormatSpec;
|
|
1979
1984
|
fieldScope?: FieldScope;
|
|
1980
1985
|
}
|
|
1981
1986
|
|
|
@@ -2136,13 +2141,33 @@ export declare function fmt(str: string): string;
|
|
|
2136
2141
|
*/
|
|
2137
2142
|
export declare function formatFileSize(bytes?: number): string;
|
|
2138
2143
|
|
|
2139
|
-
export declare
|
|
2140
|
-
type: 'number' | 'currency' | '
|
|
2141
|
-
|
|
2144
|
+
export declare type FormatSpec = {
|
|
2145
|
+
type: 'number' | 'currency' | 'percent' | 'percentage' | 'scientific';
|
|
2146
|
+
locale?: string;
|
|
2147
|
+
minimumFractionDigits?: number;
|
|
2148
|
+
maximumFractionDigits?: number;
|
|
2149
|
+
useGrouping?: boolean;
|
|
2150
|
+
prefix?: string;
|
|
2151
|
+
suffix?: string;
|
|
2152
|
+
negativeStyle?: 'minus' | 'parentheses';
|
|
2153
|
+
compact?: boolean;
|
|
2154
|
+
scale?: number;
|
|
2142
2155
|
currency?: string;
|
|
2156
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
2157
|
+
} | {
|
|
2158
|
+
type: 'date';
|
|
2159
|
+
locale?: string;
|
|
2160
|
+
pattern?: string;
|
|
2161
|
+
relative?: boolean;
|
|
2162
|
+
timezone?: string;
|
|
2163
|
+
sourceTimezone?: string;
|
|
2143
2164
|
prefix?: string;
|
|
2144
2165
|
suffix?: string;
|
|
2145
|
-
}
|
|
2166
|
+
} | {
|
|
2167
|
+
type: 'string';
|
|
2168
|
+
prefix?: string;
|
|
2169
|
+
suffix?: string;
|
|
2170
|
+
};
|
|
2146
2171
|
|
|
2147
2172
|
export declare function getAlert(apiServiceUrl: string, token: string, id: string): Promise<{
|
|
2148
2173
|
alert: Alert;
|
|
@@ -2641,9 +2666,13 @@ export declare function NotificationBell({ variant, }: {
|
|
|
2641
2666
|
|
|
2642
2667
|
export declare type NumberAxisFormat = {
|
|
2643
2668
|
decimalPlaces?: number;
|
|
2669
|
+
minimumFractionDigits?: number;
|
|
2670
|
+
maximumFractionDigits?: number;
|
|
2644
2671
|
suffix?: string;
|
|
2645
2672
|
currency?: string;
|
|
2646
2673
|
locale?: string;
|
|
2674
|
+
useGrouping?: boolean;
|
|
2675
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
2647
2676
|
};
|
|
2648
2677
|
|
|
2649
2678
|
export declare type NumberOptions = {
|
|
@@ -3325,9 +3354,14 @@ export declare type TCardPreferences = {
|
|
|
3325
3354
|
sortChart?: 'asc' | 'desc' | 'none';
|
|
3326
3355
|
formatNumber?: {
|
|
3327
3356
|
decimalPlaces?: number;
|
|
3357
|
+
minimumFractionDigits?: number;
|
|
3358
|
+
maximumFractionDigits?: number;
|
|
3328
3359
|
currency?: string;
|
|
3329
3360
|
locale?: string;
|
|
3330
3361
|
suffix?: string;
|
|
3362
|
+
prefix?: string;
|
|
3363
|
+
useGrouping?: boolean;
|
|
3364
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
3331
3365
|
enabled?: boolean | string;
|
|
3332
3366
|
colorRanges?: ColorRange[];
|
|
3333
3367
|
};
|
|
@@ -3530,6 +3564,11 @@ export declare type TDataColumn = {
|
|
|
3530
3564
|
label?: string;
|
|
3531
3565
|
description?: string;
|
|
3532
3566
|
qualifiedFieldName?: string;
|
|
3567
|
+
role?: 'metric';
|
|
3568
|
+
expression?: string;
|
|
3569
|
+
calculatedFormula?: CalculatedFieldFormula;
|
|
3570
|
+
format?: FormatSpec;
|
|
3571
|
+
sourceField?: string;
|
|
3533
3572
|
};
|
|
3534
3573
|
|
|
3535
3574
|
export declare type TDataLabelsConfig = {
|
|
@@ -3656,14 +3695,21 @@ export declare type TFilterValue = FilterForString | FilterForEqual | FilterForC
|
|
|
3656
3695
|
export declare type TFormatOptions = {
|
|
3657
3696
|
type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date';
|
|
3658
3697
|
decimalPlaces?: number;
|
|
3698
|
+
minimumFractionDigits?: number;
|
|
3699
|
+
maximumFractionDigits?: number;
|
|
3659
3700
|
currency?: string;
|
|
3660
3701
|
locale?: string;
|
|
3661
3702
|
prefix?: string;
|
|
3662
3703
|
suffix?: string;
|
|
3663
3704
|
useSuffix?: boolean;
|
|
3705
|
+
useGrouping?: boolean;
|
|
3664
3706
|
negativeInParentheses?: boolean;
|
|
3665
3707
|
multiplyBy?: number;
|
|
3708
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
3666
3709
|
dateFormat?: string;
|
|
3710
|
+
timezone?: string;
|
|
3711
|
+
sourceTimezone?: string;
|
|
3712
|
+
relative?: boolean;
|
|
3667
3713
|
};
|
|
3668
3714
|
|
|
3669
3715
|
export declare type TFrame = {
|
package/dist/types/shared.d.ts
CHANGED
|
@@ -263,6 +263,8 @@ declare interface ColumnSettings {
|
|
|
263
263
|
locale: string;
|
|
264
264
|
minimumFractionDigits: number;
|
|
265
265
|
maximumFractionDigits: number;
|
|
266
|
+
useGrouping?: boolean;
|
|
267
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
266
268
|
showDataBar: boolean;
|
|
267
269
|
dataBarColor: string;
|
|
268
270
|
dataBarMinValue?: number;
|
|
@@ -558,6 +560,9 @@ declare interface Field {
|
|
|
558
560
|
entityName: string;
|
|
559
561
|
entityType: EntityType;
|
|
560
562
|
role?: 'groupby' | 'metric' | 'sortby' | 'pivotby' | 'detail';
|
|
563
|
+
expression?: string;
|
|
564
|
+
calculatedFormula?: CalculatedFieldFormula;
|
|
565
|
+
format?: FormatSpec;
|
|
561
566
|
fieldScope?: FieldScope;
|
|
562
567
|
}
|
|
563
568
|
|
|
@@ -711,6 +716,34 @@ declare type FixedMonthDefaultDateFilter = {
|
|
|
711
716
|
month: number;
|
|
712
717
|
};
|
|
713
718
|
|
|
719
|
+
declare type FormatSpec = {
|
|
720
|
+
type: 'number' | 'currency' | 'percent' | 'percentage' | 'scientific';
|
|
721
|
+
locale?: string;
|
|
722
|
+
minimumFractionDigits?: number;
|
|
723
|
+
maximumFractionDigits?: number;
|
|
724
|
+
useGrouping?: boolean;
|
|
725
|
+
prefix?: string;
|
|
726
|
+
suffix?: string;
|
|
727
|
+
negativeStyle?: 'minus' | 'parentheses';
|
|
728
|
+
compact?: boolean;
|
|
729
|
+
scale?: number;
|
|
730
|
+
currency?: string;
|
|
731
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
732
|
+
} | {
|
|
733
|
+
type: 'date';
|
|
734
|
+
locale?: string;
|
|
735
|
+
pattern?: string;
|
|
736
|
+
relative?: boolean;
|
|
737
|
+
timezone?: string;
|
|
738
|
+
sourceTimezone?: string;
|
|
739
|
+
prefix?: string;
|
|
740
|
+
suffix?: string;
|
|
741
|
+
} | {
|
|
742
|
+
type: 'string';
|
|
743
|
+
prefix?: string;
|
|
744
|
+
suffix?: string;
|
|
745
|
+
};
|
|
746
|
+
|
|
714
747
|
declare type Granularity = 'day' | 'week' | 'month' | 'quarter' | 'year' | 'hour' | 'minute' | 'second';
|
|
715
748
|
|
|
716
749
|
declare interface GroupByColumn extends BaseColumn {
|
|
@@ -910,9 +943,13 @@ export declare function normalizeDashboardForDirtyCheck(dashboard: TDashboard |
|
|
|
910
943
|
|
|
911
944
|
declare type NumberAxisFormat = {
|
|
912
945
|
decimalPlaces?: number;
|
|
946
|
+
minimumFractionDigits?: number;
|
|
947
|
+
maximumFractionDigits?: number;
|
|
913
948
|
suffix?: string;
|
|
914
949
|
currency?: string;
|
|
915
950
|
locale?: string;
|
|
951
|
+
useGrouping?: boolean;
|
|
952
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
916
953
|
};
|
|
917
954
|
|
|
918
955
|
declare type NumberOptions = {
|
|
@@ -1251,9 +1288,14 @@ declare type TCardPreferences = {
|
|
|
1251
1288
|
sortChart?: 'asc' | 'desc' | 'none';
|
|
1252
1289
|
formatNumber?: {
|
|
1253
1290
|
decimalPlaces?: number;
|
|
1291
|
+
minimumFractionDigits?: number;
|
|
1292
|
+
maximumFractionDigits?: number;
|
|
1254
1293
|
currency?: string;
|
|
1255
1294
|
locale?: string;
|
|
1256
1295
|
suffix?: string;
|
|
1296
|
+
prefix?: string;
|
|
1297
|
+
useGrouping?: boolean;
|
|
1298
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
1257
1299
|
enabled?: boolean | string;
|
|
1258
1300
|
colorRanges?: ColorRange[];
|
|
1259
1301
|
};
|
|
@@ -1556,14 +1598,21 @@ declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare
|
|
|
1556
1598
|
declare type TFormatOptions = {
|
|
1557
1599
|
type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date';
|
|
1558
1600
|
decimalPlaces?: number;
|
|
1601
|
+
minimumFractionDigits?: number;
|
|
1602
|
+
maximumFractionDigits?: number;
|
|
1559
1603
|
currency?: string;
|
|
1560
1604
|
locale?: string;
|
|
1561
1605
|
prefix?: string;
|
|
1562
1606
|
suffix?: string;
|
|
1563
1607
|
useSuffix?: boolean;
|
|
1608
|
+
useGrouping?: boolean;
|
|
1564
1609
|
negativeInParentheses?: boolean;
|
|
1565
1610
|
multiplyBy?: number;
|
|
1611
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
1566
1612
|
dateFormat?: string;
|
|
1613
|
+
timezone?: string;
|
|
1614
|
+
sourceTimezone?: string;
|
|
1615
|
+
relative?: boolean;
|
|
1567
1616
|
};
|
|
1568
1617
|
|
|
1569
1618
|
declare type TFrame = {
|
|
@@ -283,6 +283,8 @@ declare interface ColumnSettings {
|
|
|
283
283
|
locale: string;
|
|
284
284
|
minimumFractionDigits: number;
|
|
285
285
|
maximumFractionDigits: number;
|
|
286
|
+
useGrouping?: boolean;
|
|
287
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
286
288
|
showDataBar: boolean;
|
|
287
289
|
dataBarColor: string;
|
|
288
290
|
dataBarMinValue?: number;
|
|
@@ -682,6 +684,9 @@ declare interface Field {
|
|
|
682
684
|
entityName: string;
|
|
683
685
|
entityType: EntityType;
|
|
684
686
|
role?: 'groupby' | 'metric' | 'sortby' | 'pivotby' | 'detail';
|
|
687
|
+
expression?: string;
|
|
688
|
+
calculatedFormula?: CalculatedFieldFormula;
|
|
689
|
+
format?: FormatSpec;
|
|
685
690
|
fieldScope?: FieldScope;
|
|
686
691
|
}
|
|
687
692
|
|
|
@@ -835,6 +840,34 @@ declare type FixedMonthDefaultDateFilter = {
|
|
|
835
840
|
month: number;
|
|
836
841
|
};
|
|
837
842
|
|
|
843
|
+
declare type FormatSpec = {
|
|
844
|
+
type: 'number' | 'currency' | 'percent' | 'percentage' | 'scientific';
|
|
845
|
+
locale?: string;
|
|
846
|
+
minimumFractionDigits?: number;
|
|
847
|
+
maximumFractionDigits?: number;
|
|
848
|
+
useGrouping?: boolean;
|
|
849
|
+
prefix?: string;
|
|
850
|
+
suffix?: string;
|
|
851
|
+
negativeStyle?: 'minus' | 'parentheses';
|
|
852
|
+
compact?: boolean;
|
|
853
|
+
scale?: number;
|
|
854
|
+
currency?: string;
|
|
855
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
856
|
+
} | {
|
|
857
|
+
type: 'date';
|
|
858
|
+
locale?: string;
|
|
859
|
+
pattern?: string;
|
|
860
|
+
relative?: boolean;
|
|
861
|
+
timezone?: string;
|
|
862
|
+
sourceTimezone?: string;
|
|
863
|
+
prefix?: string;
|
|
864
|
+
suffix?: string;
|
|
865
|
+
} | {
|
|
866
|
+
type: 'string';
|
|
867
|
+
prefix?: string;
|
|
868
|
+
suffix?: string;
|
|
869
|
+
};
|
|
870
|
+
|
|
838
871
|
export declare type GetDashboardResponse = {
|
|
839
872
|
dashboard: TDashboard;
|
|
840
873
|
lenses: TLens[];
|
|
@@ -1054,9 +1087,13 @@ declare type NoneOptions = {};
|
|
|
1054
1087
|
|
|
1055
1088
|
export declare type NumberAxisFormat = {
|
|
1056
1089
|
decimalPlaces?: number;
|
|
1090
|
+
minimumFractionDigits?: number;
|
|
1091
|
+
maximumFractionDigits?: number;
|
|
1057
1092
|
suffix?: string;
|
|
1058
1093
|
currency?: string;
|
|
1059
1094
|
locale?: string;
|
|
1095
|
+
useGrouping?: boolean;
|
|
1096
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
1060
1097
|
};
|
|
1061
1098
|
|
|
1062
1099
|
export declare type NumberOptions = {
|
|
@@ -1422,9 +1459,14 @@ export declare type TCardPreferences = {
|
|
|
1422
1459
|
sortChart?: 'asc' | 'desc' | 'none';
|
|
1423
1460
|
formatNumber?: {
|
|
1424
1461
|
decimalPlaces?: number;
|
|
1462
|
+
minimumFractionDigits?: number;
|
|
1463
|
+
maximumFractionDigits?: number;
|
|
1425
1464
|
currency?: string;
|
|
1426
1465
|
locale?: string;
|
|
1427
1466
|
suffix?: string;
|
|
1467
|
+
prefix?: string;
|
|
1468
|
+
useGrouping?: boolean;
|
|
1469
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
1428
1470
|
enabled?: boolean | string;
|
|
1429
1471
|
colorRanges?: ColorRange[];
|
|
1430
1472
|
};
|
|
@@ -1625,6 +1667,11 @@ export declare type TDataColumn = {
|
|
|
1625
1667
|
label?: string;
|
|
1626
1668
|
description?: string;
|
|
1627
1669
|
qualifiedFieldName?: string;
|
|
1670
|
+
role?: 'metric';
|
|
1671
|
+
expression?: string;
|
|
1672
|
+
calculatedFormula?: CalculatedFieldFormula;
|
|
1673
|
+
format?: FormatSpec;
|
|
1674
|
+
sourceField?: string;
|
|
1628
1675
|
};
|
|
1629
1676
|
|
|
1630
1677
|
export declare type TDataLabelsConfig = {
|
|
@@ -1749,14 +1796,21 @@ declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare
|
|
|
1749
1796
|
export declare type TFormatOptions = {
|
|
1750
1797
|
type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date';
|
|
1751
1798
|
decimalPlaces?: number;
|
|
1799
|
+
minimumFractionDigits?: number;
|
|
1800
|
+
maximumFractionDigits?: number;
|
|
1752
1801
|
currency?: string;
|
|
1753
1802
|
locale?: string;
|
|
1754
1803
|
prefix?: string;
|
|
1755
1804
|
suffix?: string;
|
|
1756
1805
|
useSuffix?: boolean;
|
|
1806
|
+
useGrouping?: boolean;
|
|
1757
1807
|
negativeInParentheses?: boolean;
|
|
1758
1808
|
multiplyBy?: number;
|
|
1809
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
1759
1810
|
dateFormat?: string;
|
|
1811
|
+
timezone?: string;
|
|
1812
|
+
sourceTimezone?: string;
|
|
1813
|
+
relative?: boolean;
|
|
1760
1814
|
};
|
|
1761
1815
|
|
|
1762
1816
|
export declare type TFrame = {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -482,6 +482,8 @@ declare interface ColumnSettings {
|
|
|
482
482
|
locale: string;
|
|
483
483
|
minimumFractionDigits: number;
|
|
484
484
|
maximumFractionDigits: number;
|
|
485
|
+
useGrouping?: boolean;
|
|
486
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
485
487
|
showDataBar: boolean;
|
|
486
488
|
dataBarColor: string;
|
|
487
489
|
dataBarMinValue?: number;
|
|
@@ -899,6 +901,9 @@ declare interface Field {
|
|
|
899
901
|
entityName: string;
|
|
900
902
|
entityType: EntityType;
|
|
901
903
|
role?: 'groupby' | 'metric' | 'sortby' | 'pivotby' | 'detail';
|
|
904
|
+
expression?: string;
|
|
905
|
+
calculatedFormula?: CalculatedFieldFormula;
|
|
906
|
+
format?: FormatSpec;
|
|
902
907
|
fieldScope?: FieldScope;
|
|
903
908
|
}
|
|
904
909
|
|
|
@@ -1052,6 +1057,34 @@ declare type FixedMonthDefaultDateFilter = {
|
|
|
1052
1057
|
month: number;
|
|
1053
1058
|
};
|
|
1054
1059
|
|
|
1060
|
+
declare type FormatSpec = {
|
|
1061
|
+
type: 'number' | 'currency' | 'percent' | 'percentage' | 'scientific';
|
|
1062
|
+
locale?: string;
|
|
1063
|
+
minimumFractionDigits?: number;
|
|
1064
|
+
maximumFractionDigits?: number;
|
|
1065
|
+
useGrouping?: boolean;
|
|
1066
|
+
prefix?: string;
|
|
1067
|
+
suffix?: string;
|
|
1068
|
+
negativeStyle?: 'minus' | 'parentheses';
|
|
1069
|
+
compact?: boolean;
|
|
1070
|
+
scale?: number;
|
|
1071
|
+
currency?: string;
|
|
1072
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
1073
|
+
} | {
|
|
1074
|
+
type: 'date';
|
|
1075
|
+
locale?: string;
|
|
1076
|
+
pattern?: string;
|
|
1077
|
+
relative?: boolean;
|
|
1078
|
+
timezone?: string;
|
|
1079
|
+
sourceTimezone?: string;
|
|
1080
|
+
prefix?: string;
|
|
1081
|
+
suffix?: string;
|
|
1082
|
+
} | {
|
|
1083
|
+
type: 'string';
|
|
1084
|
+
prefix?: string;
|
|
1085
|
+
suffix?: string;
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1055
1088
|
export declare type GetDashboardResponse = {
|
|
1056
1089
|
dashboard: TDashboard;
|
|
1057
1090
|
lenses: TLens[];
|
|
@@ -1271,9 +1304,13 @@ declare type NoneOptions = {};
|
|
|
1271
1304
|
|
|
1272
1305
|
export declare type NumberAxisFormat = {
|
|
1273
1306
|
decimalPlaces?: number;
|
|
1307
|
+
minimumFractionDigits?: number;
|
|
1308
|
+
maximumFractionDigits?: number;
|
|
1274
1309
|
suffix?: string;
|
|
1275
1310
|
currency?: string;
|
|
1276
1311
|
locale?: string;
|
|
1312
|
+
useGrouping?: boolean;
|
|
1313
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
1277
1314
|
};
|
|
1278
1315
|
|
|
1279
1316
|
export declare type NumberOptions = {
|
|
@@ -1673,9 +1710,14 @@ export declare type TCardPreferences = {
|
|
|
1673
1710
|
sortChart?: 'asc' | 'desc' | 'none';
|
|
1674
1711
|
formatNumber?: {
|
|
1675
1712
|
decimalPlaces?: number;
|
|
1713
|
+
minimumFractionDigits?: number;
|
|
1714
|
+
maximumFractionDigits?: number;
|
|
1676
1715
|
currency?: string;
|
|
1677
1716
|
locale?: string;
|
|
1678
1717
|
suffix?: string;
|
|
1718
|
+
prefix?: string;
|
|
1719
|
+
useGrouping?: boolean;
|
|
1720
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
1679
1721
|
enabled?: boolean | string;
|
|
1680
1722
|
colorRanges?: ColorRange[];
|
|
1681
1723
|
};
|
|
@@ -1876,6 +1918,11 @@ export declare type TDataColumn = {
|
|
|
1876
1918
|
label?: string;
|
|
1877
1919
|
description?: string;
|
|
1878
1920
|
qualifiedFieldName?: string;
|
|
1921
|
+
role?: 'metric';
|
|
1922
|
+
expression?: string;
|
|
1923
|
+
calculatedFormula?: CalculatedFieldFormula;
|
|
1924
|
+
format?: FormatSpec;
|
|
1925
|
+
sourceField?: string;
|
|
1879
1926
|
};
|
|
1880
1927
|
|
|
1881
1928
|
export declare type TDataLabelsConfig = {
|
|
@@ -2000,14 +2047,21 @@ declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare
|
|
|
2000
2047
|
export declare type TFormatOptions = {
|
|
2001
2048
|
type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date';
|
|
2002
2049
|
decimalPlaces?: number;
|
|
2050
|
+
minimumFractionDigits?: number;
|
|
2051
|
+
maximumFractionDigits?: number;
|
|
2003
2052
|
currency?: string;
|
|
2004
2053
|
locale?: string;
|
|
2005
2054
|
prefix?: string;
|
|
2006
2055
|
suffix?: string;
|
|
2007
2056
|
useSuffix?: boolean;
|
|
2057
|
+
useGrouping?: boolean;
|
|
2008
2058
|
negativeInParentheses?: boolean;
|
|
2009
2059
|
multiplyBy?: number;
|
|
2060
|
+
percentValueMode?: 'fraction' | 'whole';
|
|
2010
2061
|
dateFormat?: string;
|
|
2062
|
+
timezone?: string;
|
|
2063
|
+
sourceTimezone?: string;
|
|
2064
|
+
relative?: boolean;
|
|
2011
2065
|
};
|
|
2012
2066
|
|
|
2013
2067
|
export declare type TFrame = {
|