@databrainhq/plugin 0.7.9 → 0.7.11
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/components/Charts/SingleValueChart/index.d.ts +1 -1
- package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +1 -1
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +1 -1
- package/dist/index.es.js +220 -153
- package/dist/index.umd.js +56 -55
- package/dist/style.css +1 -1
- package/dist/types/metricCreate.d.ts +2 -0
- package/dist/utils/generated/graphql.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const SingleValueChart: ({ data, customSettings, chartClickConfig }: any) => JSX.Element;
|
|
2
|
+
declare const SingleValueChart: ({ data, customSettings, chartClickConfig, hideBorder, }: any) => JSX.Element;
|
|
3
3
|
export default SingleValueChart;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ConstructMetricProps } from '@/types/metricCreate';
|
|
3
|
-
export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setEnableGroupBy, setSelectedGroupBy, }: ConstructMetricProps) => JSX.Element;
|
|
3
|
+
export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setEnableGroupBy, setSelectedGroupBy, clientId, clientColumn, }: ConstructMetricProps) => JSX.Element;
|
package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ConstructMetricProps } from '@/types/metricCreate';
|
|
3
|
-
export declare const MetricForm: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setSelectedGroupBy, }: ConstructMetricProps) => JSX.Element;
|
|
3
|
+
export declare const MetricForm: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setSelectedGroupBy, clientId, clientColumn, }: ConstructMetricProps) => JSX.Element;
|
package/dist/index.es.js
CHANGED
|
@@ -2512,70 +2512,70 @@ function useQuery(arg1, arg2, arg3) {
|
|
|
2512
2512
|
var parsedOptions = parseQueryArgs(arg1, arg2, arg3);
|
|
2513
2513
|
return useBaseQuery(parsedOptions, QueryObserver);
|
|
2514
2514
|
}
|
|
2515
|
-
const container$g = "
|
|
2516
|
-
const fixed = "
|
|
2517
|
-
const absolute = "
|
|
2518
|
-
const flex = "
|
|
2519
|
-
const table$5 = "
|
|
2520
|
-
const grid = "
|
|
2521
|
-
const hidden = "
|
|
2522
|
-
const transform = "
|
|
2523
|
-
const resize = "
|
|
2524
|
-
const truncate = "
|
|
2525
|
-
const border = "
|
|
2526
|
-
const shadow = "
|
|
2527
|
-
const filter$1 = "
|
|
2528
|
-
const floatingFilterButton = "
|
|
2529
|
-
const floatingFilterButtonIcon = "
|
|
2530
|
-
const floatingButton = "
|
|
2531
|
-
const floatingButtonIcon = "
|
|
2532
|
-
const staticContainer = "
|
|
2533
|
-
const floatingContainer = "
|
|
2515
|
+
const container$g = "_container_10z7z_1";
|
|
2516
|
+
const fixed = "_fixed_10z7z_1";
|
|
2517
|
+
const absolute = "_absolute_10z7z_1";
|
|
2518
|
+
const flex = "_flex_10z7z_1";
|
|
2519
|
+
const table$5 = "_table_10z7z_1";
|
|
2520
|
+
const grid = "_grid_10z7z_1";
|
|
2521
|
+
const hidden = "_hidden_10z7z_1";
|
|
2522
|
+
const transform = "_transform_10z7z_1";
|
|
2523
|
+
const resize = "_resize_10z7z_1";
|
|
2524
|
+
const truncate = "_truncate_10z7z_1";
|
|
2525
|
+
const border = "_border_10z7z_1";
|
|
2526
|
+
const shadow = "_shadow_10z7z_1";
|
|
2527
|
+
const filter$1 = "_filter_10z7z_351";
|
|
2528
|
+
const floatingFilterButton = "_floatingFilterButton_10z7z_359";
|
|
2529
|
+
const floatingFilterButtonIcon = "_floatingFilterButtonIcon_10z7z_367";
|
|
2530
|
+
const floatingButton = "_floatingButton_10z7z_375";
|
|
2531
|
+
const floatingButtonIcon = "_floatingButtonIcon_10z7z_383";
|
|
2532
|
+
const staticContainer = "_staticContainer_10z7z_391";
|
|
2533
|
+
const floatingContainer = "_floatingContainer_10z7z_399";
|
|
2534
2534
|
var styles$B = {
|
|
2535
2535
|
container: container$g,
|
|
2536
|
-
"static": "
|
|
2536
|
+
"static": "_static_10z7z_391",
|
|
2537
2537
|
fixed,
|
|
2538
2538
|
absolute,
|
|
2539
|
-
"left-2": "_left-
|
|
2540
|
-
"top-1": "_top-
|
|
2541
|
-
"mt-2.5": "_mt-2.
|
|
2542
|
-
"mt-2": "_mt-
|
|
2543
|
-
"mb-3": "_mb-
|
|
2539
|
+
"left-2": "_left-2_10z7z_1",
|
|
2540
|
+
"top-1": "_top-1_10z7z_1",
|
|
2541
|
+
"mt-2.5": "_mt-2.5_10z7z_1",
|
|
2542
|
+
"mt-2": "_mt-2_10z7z_1",
|
|
2543
|
+
"mb-3": "_mb-3_10z7z_1",
|
|
2544
2544
|
flex,
|
|
2545
2545
|
table: table$5,
|
|
2546
2546
|
grid,
|
|
2547
2547
|
hidden,
|
|
2548
|
-
"h-screen": "_h-
|
|
2549
|
-
"h-[10%]": "_h-[10%]
|
|
2550
|
-
"w-screen": "_w-
|
|
2551
|
-
"w-full": "_w-
|
|
2548
|
+
"h-screen": "_h-screen_10z7z_1",
|
|
2549
|
+
"h-[10%]": "_h-[10%]_10z7z_1",
|
|
2550
|
+
"w-screen": "_w-screen_10z7z_1",
|
|
2551
|
+
"w-full": "_w-full_10z7z_1",
|
|
2552
2552
|
transform,
|
|
2553
2553
|
resize,
|
|
2554
|
-
"overflow-x-hidden": "_overflow-x-
|
|
2554
|
+
"overflow-x-hidden": "_overflow-x-hidden_10z7z_1",
|
|
2555
2555
|
truncate,
|
|
2556
2556
|
border,
|
|
2557
|
-
"p-2": "_p-
|
|
2558
|
-
"text-center": "_text-
|
|
2559
|
-
"text-sm": "_text-
|
|
2560
|
-
"text-xs": "_text-
|
|
2561
|
-
"text-blue-700": "_text-blue-
|
|
2557
|
+
"p-2": "_p-2_10z7z_1",
|
|
2558
|
+
"text-center": "_text-center_10z7z_1",
|
|
2559
|
+
"text-sm": "_text-sm_10z7z_1",
|
|
2560
|
+
"text-xs": "_text-xs_10z7z_1",
|
|
2561
|
+
"text-blue-700": "_text-blue-700_10z7z_1",
|
|
2562
2562
|
shadow,
|
|
2563
2563
|
filter: filter$1,
|
|
2564
|
-
"!filter": "_!
|
|
2565
|
-
"embedDashboard-container": "_embedDashboard-
|
|
2566
|
-
"embedDashboard-header-static": "_embedDashboard-header-
|
|
2567
|
-
"embedDashboard-header-floating": "_embedDashboard-header-
|
|
2568
|
-
"embedDashboard-wrapper": "_embedDashboard-
|
|
2569
|
-
"alt-container": "_alt-
|
|
2564
|
+
"!filter": "_!filter_10z7z_1",
|
|
2565
|
+
"embedDashboard-container": "_embedDashboard-container_10z7z_311",
|
|
2566
|
+
"embedDashboard-header-static": "_embedDashboard-header-static_10z7z_319",
|
|
2567
|
+
"embedDashboard-header-floating": "_embedDashboard-header-floating_10z7z_327",
|
|
2568
|
+
"embedDashboard-wrapper": "_embedDashboard-wrapper_10z7z_335",
|
|
2569
|
+
"alt-container": "_alt-container_10z7z_343",
|
|
2570
2570
|
floatingFilterButton,
|
|
2571
2571
|
floatingFilterButtonIcon,
|
|
2572
2572
|
floatingButton,
|
|
2573
2573
|
floatingButtonIcon,
|
|
2574
2574
|
staticContainer,
|
|
2575
2575
|
floatingContainer,
|
|
2576
|
-
"hover:cursor-pointer": "_hover:cursor-
|
|
2577
|
-
"hover:cursor-text": "_hover:cursor-
|
|
2578
|
-
"disabled:cursor-text": "_disabled:cursor-
|
|
2576
|
+
"hover:cursor-pointer": "_hover:cursor-pointer_10z7z_1",
|
|
2577
|
+
"hover:cursor-text": "_hover:cursor-text_10z7z_1",
|
|
2578
|
+
"disabled:cursor-text": "_disabled:cursor-text_10z7z_1"
|
|
2579
2579
|
};
|
|
2580
2580
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2581
2581
|
function getAugmentedNamespace(n2) {
|
|
@@ -7990,6 +7990,7 @@ const CompanySubsetTableDataDocument = `
|
|
|
7990
7990
|
name
|
|
7991
7991
|
as
|
|
7992
7992
|
}
|
|
7993
|
+
clientColumn
|
|
7993
7994
|
}
|
|
7994
7995
|
}
|
|
7995
7996
|
}
|
|
@@ -81804,18 +81805,21 @@ const StackedBarChart = ({
|
|
|
81804
81805
|
})]
|
|
81805
81806
|
});
|
|
81806
81807
|
};
|
|
81807
|
-
const container$f = "
|
|
81808
|
-
const
|
|
81809
|
-
const
|
|
81808
|
+
const container$f = "_container_qiww4_1";
|
|
81809
|
+
const borderLessContainer = "_borderLessContainer_qiww4_7";
|
|
81810
|
+
const label$6 = "_label_qiww4_13";
|
|
81811
|
+
const sync = "_sync_qiww4_19";
|
|
81810
81812
|
var styles$w = {
|
|
81811
81813
|
container: container$f,
|
|
81814
|
+
borderLessContainer,
|
|
81812
81815
|
label: label$6,
|
|
81813
81816
|
sync
|
|
81814
81817
|
};
|
|
81815
81818
|
const SingleValueChart = ({
|
|
81816
81819
|
data: data2,
|
|
81817
81820
|
customSettings,
|
|
81818
|
-
chartClickConfig
|
|
81821
|
+
chartClickConfig,
|
|
81822
|
+
hideBorder
|
|
81819
81823
|
}) => {
|
|
81820
81824
|
var _a2, _b2, _c2, _d;
|
|
81821
81825
|
const subHeaderFont = {
|
|
@@ -82059,7 +82063,7 @@ const SingleValueChart = ({
|
|
|
82059
82063
|
};
|
|
82060
82064
|
const value = ((_a2 = data2[0]) == null ? void 0 : _a2.value) && ((_b2 = data2[0]) == null ? void 0 : _b2.value.toString().length) > 16 ? dateFormatter((_c2 = data2[0]) == null ? void 0 : _c2.value, customSettings.dateFormatter) : formattedData((_d = data2[0]) == null ? void 0 : _d.value, customSettings.numberFormatter);
|
|
82061
82065
|
return /* @__PURE__ */ jsxs("div", {
|
|
82062
|
-
className: styles$w.container,
|
|
82066
|
+
className: hideBorder ? styles$w.borderLessContainer : styles$w.container,
|
|
82063
82067
|
children: [/* @__PURE__ */ jsx("div", {
|
|
82064
82068
|
style: valueFont,
|
|
82065
82069
|
onClick: () => {
|
|
@@ -84006,24 +84010,28 @@ const PopoverMenu = ({
|
|
|
84006
84010
|
});
|
|
84007
84011
|
};
|
|
84008
84012
|
var NoData = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMDAgMzAwIj48ZGVmcz48c3R5bGU+LmNscy0xe3N0cm9rZTojMTgyYzYwO30uY2xzLTEsLmNscy0ye2ZpbGw6bm9uZTtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7fS5jbHMtM3tmaWxsOiM1ODY1ZjY7b3BhY2l0eTouMTt9LmNscy00e2ZpbGw6I2YyZjNmNDt9LmNscy01e2ZpbGw6I2MxYzdjOTt9LmNscy02e2ZpbGw6I2RhZGVkZjt9LmNscy03e2ZpbGw6IzE4MmM2MDt9LmNscy0ye3N0cm9rZTojNTg2NWY2O3N0cm9rZS13aWR0aDo0cHg7fTwvc3R5bGU+PC9kZWZzPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0ibTIxMC41LDIwMC44M2MuNC0uNjYuNjgtMS40LjgyLTIuMiwxLjU4LTguODcsMy4xNS0xNy43NSw0LjczLTI2LjYyLDIuMDMtMTEuNDQsNC4wNi0yMi44OCw2LjA5LTM0LjMyLjcyLTQu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DIuODItMTUuNzEsMi4xNS0xMi4xMSwxLjk0LTExLjM2LDIuNzUtMTQuNzUuODgtNC42OS4yOC0yLjU4LjA3LTIuMTItLjYtMi43NS0xLjI0LTIuMzYtMS4wOS0xLjU5LTIuMDEtMS4zMS0uOTItLjI4WiIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtNyIgcG9pbnRzPSI4NS42OCAyMDMuOTMgMjA0LjU1IDIwMy44NCAyMDkuMzUgMjA4LjczIDE0OC40OCAyMDguODggOTAuOTUgMjA5LjAyIDg5LjUgMjA4LjY2IDg3Ljk4IDIwNy45MiA4Ni44MiAyMDYuNTggODYuMDEgMjA1LjAzIDg1LjY4IDIwMy45MyIvPjwvc3ZnPg==";
|
|
84009
|
-
const container$d = "
|
|
84010
|
-
const wrapper$3 = "
|
|
84011
|
-
const label$5 = "
|
|
84012
|
-
const floatingLabel$1 = "
|
|
84013
|
-
const
|
|
84014
|
-
const
|
|
84015
|
-
const
|
|
84016
|
-
const
|
|
84017
|
-
const
|
|
84018
|
-
const
|
|
84019
|
-
const
|
|
84020
|
-
const
|
|
84021
|
-
const
|
|
84013
|
+
const container$d = "_container_1w020_1";
|
|
84014
|
+
const wrapper$3 = "_wrapper_1w020_5";
|
|
84015
|
+
const label$5 = "_label_1w020_9";
|
|
84016
|
+
const floatingLabel$1 = "_floatingLabel_1w020_13";
|
|
84017
|
+
const clientText = "_clientText_1w020_17";
|
|
84018
|
+
const normalText = "_normalText_1w020_21";
|
|
84019
|
+
const dropdown$1 = "_dropdown_1w020_25";
|
|
84020
|
+
const options = "_options_1w020_29";
|
|
84021
|
+
const checkedOption = "_checkedOption_1w020_33";
|
|
84022
|
+
const option$1 = "_option_1w020_29";
|
|
84023
|
+
const icon$1 = "_icon_1w020_41";
|
|
84024
|
+
const text$1 = "_text_1w020_45";
|
|
84025
|
+
const floatingText = "_floatingText_1w020_49";
|
|
84026
|
+
const search$1 = "_search_1w020_53";
|
|
84027
|
+
const loadMore$1 = "_loadMore_1w020_57";
|
|
84022
84028
|
var styles$s = {
|
|
84023
84029
|
container: container$d,
|
|
84024
84030
|
wrapper: wrapper$3,
|
|
84025
84031
|
label: label$5,
|
|
84026
84032
|
floatingLabel: floatingLabel$1,
|
|
84033
|
+
clientText,
|
|
84034
|
+
normalText,
|
|
84027
84035
|
dropdown: dropdown$1,
|
|
84028
84036
|
options,
|
|
84029
84037
|
checkedOption,
|
|
@@ -84031,7 +84039,7 @@ var styles$s = {
|
|
|
84031
84039
|
icon: icon$1,
|
|
84032
84040
|
text: text$1,
|
|
84033
84041
|
floatingText,
|
|
84034
|
-
search,
|
|
84042
|
+
search: search$1,
|
|
84035
84043
|
loadMore: loadMore$1
|
|
84036
84044
|
};
|
|
84037
84045
|
var isCheckBoxInput = (element) => element.type === "checkbox";
|
|
@@ -85465,10 +85473,26 @@ function useForm(props = {}) {
|
|
|
85465
85473
|
_formControl.current.formState = getProxyFormState(formState, control._proxyFormState);
|
|
85466
85474
|
return _formControl.current;
|
|
85467
85475
|
}
|
|
85476
|
+
const search = "_search_1klck_1";
|
|
85468
85477
|
var styles$r = {
|
|
85469
|
-
"searchTab-container": "_searchTab-
|
|
85470
|
-
"searchTab-input": "_searchTab-
|
|
85478
|
+
"searchTab-container": "_searchTab-container_1klck_1",
|
|
85479
|
+
"searchTab-input": "_searchTab-input_1klck_5",
|
|
85480
|
+
search
|
|
85471
85481
|
};
|
|
85482
|
+
const iconoirSearch = (props) => /* @__PURE__ */ jsx("svg", {
|
|
85483
|
+
viewBox: "0 0 24 24",
|
|
85484
|
+
width: "1.2em",
|
|
85485
|
+
height: "1.2em",
|
|
85486
|
+
...props,
|
|
85487
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
85488
|
+
fill: "none",
|
|
85489
|
+
stroke: "currentColor",
|
|
85490
|
+
strokeLinecap: "round",
|
|
85491
|
+
strokeLinejoin: "round",
|
|
85492
|
+
strokeWidth: 1.5,
|
|
85493
|
+
d: "M15.5 15.5L19 19M5 11a6 6 0 1 0 12 0a6 6 0 0 0-12 0Z"
|
|
85494
|
+
})
|
|
85495
|
+
});
|
|
85472
85496
|
const SearchTab = ({
|
|
85473
85497
|
setSearchKeyword,
|
|
85474
85498
|
className = ""
|
|
@@ -85481,13 +85505,20 @@ const SearchTab = ({
|
|
|
85481
85505
|
useEffect(() => {
|
|
85482
85506
|
setSearchKeyword(keyword == null ? void 0 : keyword.toLowerCase());
|
|
85483
85507
|
}, [setSearchKeyword, watch, keyword]);
|
|
85484
|
-
return /* @__PURE__ */
|
|
85508
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
85485
85509
|
className: `${styles$r["searchTab-container"]} ${className}`,
|
|
85486
|
-
children: /* @__PURE__ */ jsx("input", {
|
|
85487
|
-
placeholder: "Search
|
|
85510
|
+
children: [/* @__PURE__ */ jsx("input", {
|
|
85511
|
+
placeholder: "Search",
|
|
85488
85512
|
...register2("searchKeyword"),
|
|
85489
85513
|
className: styles$r["searchTab-input"]
|
|
85490
|
-
})
|
|
85514
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
85515
|
+
className: styles$r.search,
|
|
85516
|
+
children: /* @__PURE__ */ jsx(iconoirSearch, {
|
|
85517
|
+
color: "#C7C7C7",
|
|
85518
|
+
width: "30px",
|
|
85519
|
+
height: "30px"
|
|
85520
|
+
})
|
|
85521
|
+
})]
|
|
85491
85522
|
});
|
|
85492
85523
|
};
|
|
85493
85524
|
const materialSymbolsKeyboardArrowDown = (props) => /* @__PURE__ */ jsx("svg", {
|
|
@@ -85552,7 +85583,7 @@ const FloatingDropDown = ({
|
|
|
85552
85583
|
children: [label2 ? /* @__PURE__ */ jsx(Text, {
|
|
85553
85584
|
variant: "span",
|
|
85554
85585
|
styleClass: labelVariant === "floating" ? "custom" : "font-14",
|
|
85555
|
-
className: `${styles$s.label} ${labelVariant === "floating" ? styles$s.floatingLabel : ""}`,
|
|
85586
|
+
className: `${styles$s.label} ${labelVariant === "floating" ? styles$s.floatingLabel : ""} ${label2 === "client" ? styles$s.clientText : styles$s.normalText} `,
|
|
85556
85587
|
children: label2
|
|
85557
85588
|
}) : null, /* @__PURE__ */ jsxs(Button, {
|
|
85558
85589
|
type: "button",
|
|
@@ -86189,7 +86220,8 @@ const SingleValueCard = ({
|
|
|
86189
86220
|
children: singleValueData2.length ? /* @__PURE__ */ jsx(SingleValueChart, {
|
|
86190
86221
|
data: chartData,
|
|
86191
86222
|
customSettings,
|
|
86192
|
-
chartClickConfig: clickBehaviourConfigs.chart
|
|
86223
|
+
chartClickConfig: clickBehaviourConfigs.chart,
|
|
86224
|
+
hideBorder: true
|
|
86193
86225
|
}) : /* @__PURE__ */ jsx("div", {
|
|
86194
86226
|
className: styles$y.noData,
|
|
86195
86227
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -86734,9 +86766,9 @@ var styles$l = {
|
|
|
86734
86766
|
valueLabelWrapper,
|
|
86735
86767
|
singleCheckBox
|
|
86736
86768
|
};
|
|
86737
|
-
const tab$1 = "
|
|
86738
|
-
const button$4 = "
|
|
86739
|
-
const activeTab = "
|
|
86769
|
+
const tab$1 = "_tab_1imil_1";
|
|
86770
|
+
const button$4 = "_button_1imil_7";
|
|
86771
|
+
const activeTab = "_activeTab_1imil_15";
|
|
86740
86772
|
var styles$k = {
|
|
86741
86773
|
tab: tab$1,
|
|
86742
86774
|
button: button$4,
|
|
@@ -86837,37 +86869,37 @@ const InputField = ({
|
|
|
86837
86869
|
})]
|
|
86838
86870
|
});
|
|
86839
86871
|
};
|
|
86840
|
-
const listBoxButton = "
|
|
86841
|
-
const selectedOptionText = "
|
|
86842
|
-
const transitionDiv = "
|
|
86843
|
-
const listboxButtonWrapper = "
|
|
86844
|
-
const arrowicon = "
|
|
86845
|
-
const leave = "
|
|
86846
|
-
const leaveFrom = "
|
|
86847
|
-
const leaveTo = "
|
|
86848
|
-
const notAvailable = "
|
|
86849
|
-
const option = "
|
|
86850
|
-
const activeOption = "
|
|
86851
|
-
const optionSelected = "
|
|
86852
|
-
const inactiveOption = "
|
|
86853
|
-
const optionLabel = "
|
|
86854
|
-
const optionSubLabel = "
|
|
86855
|
-
const selectedLabel = "
|
|
86856
|
-
const nonselectedLabel = "
|
|
86857
|
-
const check = "
|
|
86858
|
-
const checkActive = "
|
|
86859
|
-
const checkInactive = "
|
|
86860
|
-
const checkIcon$1 = "
|
|
86861
|
-
const checkIconSelected = "
|
|
86862
|
-
const checkIconUnselected = "
|
|
86863
|
-
const loadMore = "
|
|
86864
|
-
const selectedList = "
|
|
86865
|
-
const selectedListItem = "
|
|
86872
|
+
const listBoxButton = "_listBoxButton_1mdwz_5";
|
|
86873
|
+
const selectedOptionText = "_selectedOptionText_1mdwz_17";
|
|
86874
|
+
const transitionDiv = "_transitionDiv_1mdwz_21";
|
|
86875
|
+
const listboxButtonWrapper = "_listboxButtonWrapper_1mdwz_25";
|
|
86876
|
+
const arrowicon = "_arrowicon_1mdwz_28";
|
|
86877
|
+
const leave = "_leave_1mdwz_31";
|
|
86878
|
+
const leaveFrom = "_leaveFrom_1mdwz_34";
|
|
86879
|
+
const leaveTo = "_leaveTo_1mdwz_37";
|
|
86880
|
+
const notAvailable = "_notAvailable_1mdwz_40";
|
|
86881
|
+
const option = "_option_1mdwz_43";
|
|
86882
|
+
const activeOption = "_activeOption_1mdwz_46";
|
|
86883
|
+
const optionSelected = "_optionSelected_1mdwz_49";
|
|
86884
|
+
const inactiveOption = "_inactiveOption_1mdwz_52";
|
|
86885
|
+
const optionLabel = "_optionLabel_1mdwz_55";
|
|
86886
|
+
const optionSubLabel = "_optionSubLabel_1mdwz_58";
|
|
86887
|
+
const selectedLabel = "_selectedLabel_1mdwz_61";
|
|
86888
|
+
const nonselectedLabel = "_nonselectedLabel_1mdwz_64";
|
|
86889
|
+
const check = "_check_1mdwz_67";
|
|
86890
|
+
const checkActive = "_checkActive_1mdwz_70";
|
|
86891
|
+
const checkInactive = "_checkInactive_1mdwz_73";
|
|
86892
|
+
const checkIcon$1 = "_checkIcon_1mdwz_76";
|
|
86893
|
+
const checkIconSelected = "_checkIconSelected_1mdwz_79";
|
|
86894
|
+
const checkIconUnselected = "_checkIconUnselected_1mdwz_82";
|
|
86895
|
+
const loadMore = "_loadMore_1mdwz_85";
|
|
86896
|
+
const selectedList = "_selectedList_1mdwz_88";
|
|
86897
|
+
const selectedListItem = "_selectedListItem_1mdwz_91";
|
|
86866
86898
|
var style = {
|
|
86867
|
-
"listBox-label": "_listBox-
|
|
86868
|
-
"listBoxButton-container": "_listBoxButton-
|
|
86899
|
+
"listBox-label": "_listBox-label_1mdwz_1",
|
|
86900
|
+
"listBoxButton-container": "_listBoxButton-container_1mdwz_5",
|
|
86869
86901
|
listBoxButton,
|
|
86870
|
-
"listBox-option": "_listBox-
|
|
86902
|
+
"listBox-option": "_listBox-option_1mdwz_13",
|
|
86871
86903
|
selectedOptionText,
|
|
86872
86904
|
transitionDiv,
|
|
86873
86905
|
listboxButtonWrapper,
|
|
@@ -87272,8 +87304,8 @@ const HookMultiSelect = ({
|
|
|
87272
87304
|
})
|
|
87273
87305
|
});
|
|
87274
87306
|
};
|
|
87275
|
-
const container$a = "
|
|
87276
|
-
const tooltip$1 = "
|
|
87307
|
+
const container$a = "_container_1m5jj_1";
|
|
87308
|
+
const tooltip$1 = "_tooltip_1m5jj_7";
|
|
87277
87309
|
var styles$h = {
|
|
87278
87310
|
container: container$a,
|
|
87279
87311
|
tooltip: tooltip$1
|
|
@@ -87343,8 +87375,8 @@ const ChartConfigure = ({
|
|
|
87343
87375
|
setBackGroundColor
|
|
87344
87376
|
}) => {
|
|
87345
87377
|
const TabList = ["Margins", "Legend", "Custom"];
|
|
87346
|
-
const singleValueTabs = ["
|
|
87347
|
-
const [activeTab2, setActiveTab] = useState("
|
|
87378
|
+
const singleValueTabs = ["Custom"];
|
|
87379
|
+
const [activeTab2, setActiveTab] = useState("Custom");
|
|
87348
87380
|
return /* @__PURE__ */ jsxs("div", {
|
|
87349
87381
|
className: styles$l.container,
|
|
87350
87382
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -87504,7 +87536,7 @@ const ChartConfigure = ({
|
|
|
87504
87536
|
className: styles$l.seriesWrapper,
|
|
87505
87537
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
87506
87538
|
variant: "h1",
|
|
87507
|
-
styleClass: "
|
|
87539
|
+
styleClass: "font-14",
|
|
87508
87540
|
children: "Value labels"
|
|
87509
87541
|
}), /* @__PURE__ */ jsx("div", {
|
|
87510
87542
|
className: styles$l.valueLabelWrapper,
|
|
@@ -89003,31 +89035,35 @@ const ChartTab = ({
|
|
|
89003
89035
|
})]
|
|
89004
89036
|
});
|
|
89005
89037
|
};
|
|
89006
|
-
const container$8 = "
|
|
89007
|
-
const wrapper$1 = "
|
|
89008
|
-
const text = "
|
|
89009
|
-
const table$3 = "
|
|
89038
|
+
const container$8 = "_container_yjeiv_1";
|
|
89039
|
+
const wrapper$1 = "_wrapper_yjeiv_5";
|
|
89040
|
+
const text = "_text_yjeiv_9";
|
|
89041
|
+
const table$3 = "_table_yjeiv_12";
|
|
89010
89042
|
var styles$d = {
|
|
89011
89043
|
container: container$8,
|
|
89012
89044
|
wrapper: wrapper$1,
|
|
89013
89045
|
text,
|
|
89014
89046
|
table: table$3
|
|
89015
89047
|
};
|
|
89016
|
-
const container$7 = "
|
|
89017
|
-
const table$2 = "
|
|
89018
|
-
const tableHead = "
|
|
89019
|
-
const tableRow$1 = "
|
|
89020
|
-
const tableHeadCol$1 = "
|
|
89021
|
-
const
|
|
89022
|
-
const
|
|
89023
|
-
const
|
|
89048
|
+
const container$7 = "_container_1jkce_1";
|
|
89049
|
+
const table$2 = "_table_1jkce_9";
|
|
89050
|
+
const tableHead = "_tableHead_1jkce_17";
|
|
89051
|
+
const tableRow$1 = "_tableRow_1jkce_25";
|
|
89052
|
+
const tableHeadCol$1 = "_tableHeadCol_1jkce_33";
|
|
89053
|
+
const tableHeadColText = "_tableHeadColText_1jkce_41";
|
|
89054
|
+
const tableRowCol$1 = "_tableRowCol_1jkce_49";
|
|
89055
|
+
const tableColText = "_tableColText_1jkce_57";
|
|
89056
|
+
const empty = "_empty_1jkce_65";
|
|
89057
|
+
const error$2 = "_error_1jkce_73";
|
|
89024
89058
|
var styles$c = {
|
|
89025
89059
|
container: container$7,
|
|
89026
89060
|
table: table$2,
|
|
89027
89061
|
tableHead,
|
|
89028
89062
|
tableRow: tableRow$1,
|
|
89029
89063
|
tableHeadCol: tableHeadCol$1,
|
|
89064
|
+
tableHeadColText,
|
|
89030
89065
|
tableRowCol: tableRowCol$1,
|
|
89066
|
+
tableColText,
|
|
89031
89067
|
empty,
|
|
89032
89068
|
error: error$2
|
|
89033
89069
|
};
|
|
@@ -89050,6 +89086,7 @@ const MetricTable = ({
|
|
|
89050
89086
|
children: /* @__PURE__ */ jsx(Text, {
|
|
89051
89087
|
styleClass: "font-14c",
|
|
89052
89088
|
variant: "h1",
|
|
89089
|
+
className: styles$c.tableHeadColText,
|
|
89053
89090
|
children: item
|
|
89054
89091
|
})
|
|
89055
89092
|
}, item);
|
|
@@ -89062,6 +89099,7 @@ const MetricTable = ({
|
|
|
89062
89099
|
children: /* @__PURE__ */ jsx(Text, {
|
|
89063
89100
|
styleClass: "font-14",
|
|
89064
89101
|
variant: "p",
|
|
89102
|
+
className: styles$c.tableColText,
|
|
89065
89103
|
children: JSON.stringify(item[d2])
|
|
89066
89104
|
})
|
|
89067
89105
|
}, index2))
|
|
@@ -89101,36 +89139,36 @@ const InputTables = ({
|
|
|
89101
89139
|
})
|
|
89102
89140
|
});
|
|
89103
89141
|
};
|
|
89104
|
-
const container$6 = "
|
|
89105
|
-
const header$1 = "
|
|
89106
|
-
const tabButton$1 = "
|
|
89107
|
-
const selectedTab = "
|
|
89108
|
-
const table$1 = "
|
|
89142
|
+
const container$6 = "_container_38zl3_1";
|
|
89143
|
+
const header$1 = "_header_38zl3_5";
|
|
89144
|
+
const tabButton$1 = "_tabButton_38zl3_16";
|
|
89145
|
+
const selectedTab = "_selectedTab_38zl3_19";
|
|
89146
|
+
const table$1 = "_table_38zl3_22";
|
|
89109
89147
|
var styles$b = {
|
|
89110
89148
|
container: container$6,
|
|
89111
89149
|
header: header$1,
|
|
89112
|
-
"text-container": "_text-
|
|
89113
|
-
"btn-container": "_btn-
|
|
89150
|
+
"text-container": "_text-container_38zl3_9",
|
|
89151
|
+
"btn-container": "_btn-container_38zl3_13",
|
|
89114
89152
|
tabButton: tabButton$1,
|
|
89115
89153
|
selectedTab,
|
|
89116
89154
|
table: table$1
|
|
89117
89155
|
};
|
|
89118
|
-
const tableData = "
|
|
89119
|
-
const tableHeadCol = "
|
|
89120
|
-
const tableRow = "
|
|
89121
|
-
const tableRowCol = "
|
|
89122
|
-
const row = "
|
|
89123
|
-
const container$5 = "
|
|
89124
|
-
const table = "
|
|
89125
|
-
const previewTable = "
|
|
89126
|
-
const preview = "
|
|
89127
|
-
const previewText = "
|
|
89128
|
-
const noData = "
|
|
89129
|
-
const error$1 = "
|
|
89130
|
-
const errorMsg = "
|
|
89131
|
-
const tableIcon = "
|
|
89156
|
+
const tableData = "_tableData_o6rhd_7";
|
|
89157
|
+
const tableHeadCol = "_tableHeadCol_o6rhd_13";
|
|
89158
|
+
const tableRow = "_tableRow_o6rhd_19";
|
|
89159
|
+
const tableRowCol = "_tableRowCol_o6rhd_25";
|
|
89160
|
+
const row = "_row_o6rhd_31";
|
|
89161
|
+
const container$5 = "_container_o6rhd_37";
|
|
89162
|
+
const table = "_table_o6rhd_1";
|
|
89163
|
+
const previewTable = "_previewTable_o6rhd_49";
|
|
89164
|
+
const preview = "_preview_o6rhd_49";
|
|
89165
|
+
const previewText = "_previewText_o6rhd_61";
|
|
89166
|
+
const noData = "_noData_o6rhd_67";
|
|
89167
|
+
const error$1 = "_error_o6rhd_73";
|
|
89168
|
+
const errorMsg = "_errorMsg_o6rhd_79";
|
|
89169
|
+
const tableIcon = "_tableIcon_o6rhd_85";
|
|
89132
89170
|
var styles$a = {
|
|
89133
|
-
"table-loader-container": "_table-loader-
|
|
89171
|
+
"table-loader-container": "_table-loader-container_o6rhd_1",
|
|
89134
89172
|
tableData,
|
|
89135
89173
|
tableHeadCol,
|
|
89136
89174
|
tableRow,
|
|
@@ -89250,6 +89288,16 @@ const TableTab = ({
|
|
|
89250
89288
|
previewTableDataList
|
|
89251
89289
|
}) => {
|
|
89252
89290
|
const [selectedTab2, setSelectedTab] = useState(OUTPUT_TABLE);
|
|
89291
|
+
const buttonColor = {
|
|
89292
|
+
background: "#e5e7eb",
|
|
89293
|
+
width: "100%",
|
|
89294
|
+
height: "100%",
|
|
89295
|
+
paddingTop: "4px",
|
|
89296
|
+
paddingBottom: "4px",
|
|
89297
|
+
display: "flex",
|
|
89298
|
+
alignItems: "center",
|
|
89299
|
+
justifyContent: "center"
|
|
89300
|
+
};
|
|
89253
89301
|
return /* @__PURE__ */ jsxs("div", {
|
|
89254
89302
|
className: styles$b.container,
|
|
89255
89303
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
@@ -89267,18 +89315,24 @@ const TableTab = ({
|
|
|
89267
89315
|
})]
|
|
89268
89316
|
}), /* @__PURE__ */ jsxs("div", {
|
|
89269
89317
|
className: styles$b["btn-container"],
|
|
89270
|
-
children: [/* @__PURE__ */
|
|
89318
|
+
children: [/* @__PURE__ */ jsxs(Button, {
|
|
89271
89319
|
type: "button",
|
|
89272
89320
|
variant: "custom",
|
|
89273
|
-
className:
|
|
89321
|
+
className: styles$b.tabButton,
|
|
89274
89322
|
onClick: () => setSelectedTab(INPUT_TABLE),
|
|
89275
|
-
children: "
|
|
89276
|
-
|
|
89323
|
+
children: [selectedTab2 === INPUT_TABLE && /* @__PURE__ */ jsx("div", {
|
|
89324
|
+
style: buttonColor,
|
|
89325
|
+
children: "Input Table"
|
|
89326
|
+
}), selectedTab2 !== INPUT_TABLE && "Input Table"]
|
|
89327
|
+
}), /* @__PURE__ */ jsxs(Button, {
|
|
89277
89328
|
type: "button",
|
|
89278
89329
|
variant: "custom",
|
|
89279
|
-
className:
|
|
89330
|
+
className: styles$b.tabButton,
|
|
89280
89331
|
onClick: () => setSelectedTab(OUTPUT_TABLE),
|
|
89281
|
-
children: "
|
|
89332
|
+
children: [selectedTab2 === OUTPUT_TABLE && /* @__PURE__ */ jsx("div", {
|
|
89333
|
+
style: buttonColor,
|
|
89334
|
+
children: "Output Table"
|
|
89335
|
+
}), selectedTab2 !== OUTPUT_TABLE && "Output Table"]
|
|
89282
89336
|
})]
|
|
89283
89337
|
})]
|
|
89284
89338
|
}), selectedTab2 === INPUT_TABLE && /* @__PURE__ */ jsx(InputTables, {
|
|
@@ -89940,7 +89994,9 @@ const MetricForm = ({
|
|
|
89940
89994
|
setLoading,
|
|
89941
89995
|
setQuery,
|
|
89942
89996
|
isEnableGroupBy,
|
|
89943
|
-
setSelectedGroupBy
|
|
89997
|
+
setSelectedGroupBy,
|
|
89998
|
+
clientId,
|
|
89999
|
+
clientColumn
|
|
89944
90000
|
}) => {
|
|
89945
90001
|
const [metrics, setMetrics] = useState([]);
|
|
89946
90002
|
const [timeGrainValue, setTimeGrainValue] = useState("");
|
|
@@ -90536,7 +90592,11 @@ const MetricForm = ({
|
|
|
90536
90592
|
as: (_c2 = columnList.find((c2) => c2.value === timeColumn.value)) == null ? void 0 : _c2.label
|
|
90537
90593
|
},
|
|
90538
90594
|
isInclude: isIncludeTime
|
|
90539
|
-
}
|
|
90595
|
+
},
|
|
90596
|
+
clientColumnFilter: clientColumn ? {
|
|
90597
|
+
value: Number(clientId) || clientId,
|
|
90598
|
+
column: isBigQuery || isMySql ? `${clientColumn}` : isMongoDb ? `\`${clientColumn}\`` : `"${clientColumn}"`
|
|
90599
|
+
} : void 0
|
|
90540
90600
|
}
|
|
90541
90601
|
}, {
|
|
90542
90602
|
onSuccess(data2) {
|
|
@@ -90643,7 +90703,9 @@ const ConstructMetric = ({
|
|
|
90643
90703
|
setQuery,
|
|
90644
90704
|
isEnableGroupBy,
|
|
90645
90705
|
setEnableGroupBy,
|
|
90646
|
-
setSelectedGroupBy
|
|
90706
|
+
setSelectedGroupBy,
|
|
90707
|
+
clientId,
|
|
90708
|
+
clientColumn
|
|
90647
90709
|
}) => {
|
|
90648
90710
|
return /* @__PURE__ */ jsxs("div", {
|
|
90649
90711
|
className: styles$6.container,
|
|
@@ -90665,7 +90727,9 @@ const ConstructMetric = ({
|
|
|
90665
90727
|
setQuery,
|
|
90666
90728
|
setLoading,
|
|
90667
90729
|
isEnableGroupBy,
|
|
90668
|
-
setSelectedGroupBy
|
|
90730
|
+
setSelectedGroupBy,
|
|
90731
|
+
clientId,
|
|
90732
|
+
clientColumn
|
|
90669
90733
|
})]
|
|
90670
90734
|
});
|
|
90671
90735
|
};
|
|
@@ -90888,6 +90952,7 @@ const EmbeddedMetricCreation = ({
|
|
|
90888
90952
|
label: table2.tableName
|
|
90889
90953
|
})), [companySubsetTableList]);
|
|
90890
90954
|
const selectedTableData = useMemo(() => companySubsetTableList.find((table2) => table2.tableName === selectTable.value), [selectTable.value, companySubsetTableList]);
|
|
90955
|
+
const clientColumn = useMemo(() => selectedTableData == null ? void 0 : selectedTableData.clientColumn, [selectedTableData]);
|
|
90891
90956
|
const columnList = useMemo(() => (selectedTableData == null ? void 0 : selectedTableData.columns.map(({
|
|
90892
90957
|
name,
|
|
90893
90958
|
as
|
|
@@ -91142,7 +91207,9 @@ const EmbeddedMetricCreation = ({
|
|
|
91142
91207
|
setLoading,
|
|
91143
91208
|
isEnableGroupBy,
|
|
91144
91209
|
setEnableGroupBy,
|
|
91145
|
-
setSelectedGroupBy
|
|
91210
|
+
setSelectedGroupBy,
|
|
91211
|
+
clientId,
|
|
91212
|
+
clientColumn
|
|
91146
91213
|
}), /* @__PURE__ */ jsx(MetricOutput, {
|
|
91147
91214
|
data: isEnableGroupBy ? groupedData : data2,
|
|
91148
91215
|
error: error2,
|