@databrainhq/plugin 0.7.9 → 0.7.10
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/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 +210 -147
- 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
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
|
}
|
|
@@ -84006,24 +84007,28 @@ const PopoverMenu = ({
|
|
|
84006
84007
|
});
|
|
84007
84008
|
};
|
|
84008
84009
|
var NoData = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMDAgMzAwIj48ZGVmcz48c3R5bGU+LmNscy0xe3N0cm9rZTojMTgyYzYwO30uY2xzLTEsLmNscy0ye2ZpbGw6bm9uZTtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7fS5jbHMtM3tmaWxsOiM1ODY1ZjY7b3BhY2l0eTouMTt9LmNscy00e2ZpbGw6I2YyZjNmNDt9LmNscy01e2ZpbGw6I2MxYzdjOTt9LmNscy02e2ZpbGw6I2RhZGVkZjt9LmNscy03e2ZpbGw6IzE4MmM2MDt9LmNscy0ye3N0cm9rZTojNTg2NWY2O3N0cm9rZS13aWR0aDo0cHg7fTwvc3R5bGU+PC9kZWZzPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0ibTIxMC41LDIwMC44M2MuNC0uNjYuNjgtMS40LjgyLTIuMiwxLjU4LTguODcsMy4xNS0xNy43NSw0LjczLTI2LjYyLDIuMDMtMTEuNDQsNC4wNi0yMi44OCw2LjA5LTM0LjMyLjcyLTQuMDgsMS43Ny04LjI1LDIuMTYtMTIuMzguNDMtNC41Ni0yLjA5LTkuNjgtNi44Ni0xMC42Ni0uMDEsMC0uMDMsMC0uMDQsMC0yLjQtLjQ5LTUuM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MS4wOS0xLjU5LTIuMDEtMS4zMS0uOTItLjI4WiIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtNyIgcG9pbnRzPSI4NS42OCAyMDMuOTMgMjA0LjU1IDIwMy44NCAyMDkuMzUgMjA4LjczIDE0OC40OCAyMDguODggOTAuOTUgMjA5LjAyIDg5LjUgMjA4LjY2IDg3Ljk4IDIwNy45MiA4Ni44MiAyMDYuNTggODYuMDEgMjA1LjAzIDg1LjY4IDIwMy45MyIvPjwvc3ZnPg==";
|
|
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
|
|
84010
|
+
const container$d = "_container_1w020_1";
|
|
84011
|
+
const wrapper$3 = "_wrapper_1w020_5";
|
|
84012
|
+
const label$5 = "_label_1w020_9";
|
|
84013
|
+
const floatingLabel$1 = "_floatingLabel_1w020_13";
|
|
84014
|
+
const clientText = "_clientText_1w020_17";
|
|
84015
|
+
const normalText = "_normalText_1w020_21";
|
|
84016
|
+
const dropdown$1 = "_dropdown_1w020_25";
|
|
84017
|
+
const options = "_options_1w020_29";
|
|
84018
|
+
const checkedOption = "_checkedOption_1w020_33";
|
|
84019
|
+
const option$1 = "_option_1w020_29";
|
|
84020
|
+
const icon$1 = "_icon_1w020_41";
|
|
84021
|
+
const text$1 = "_text_1w020_45";
|
|
84022
|
+
const floatingText = "_floatingText_1w020_49";
|
|
84023
|
+
const search$1 = "_search_1w020_53";
|
|
84024
|
+
const loadMore$1 = "_loadMore_1w020_57";
|
|
84022
84025
|
var styles$s = {
|
|
84023
84026
|
container: container$d,
|
|
84024
84027
|
wrapper: wrapper$3,
|
|
84025
84028
|
label: label$5,
|
|
84026
84029
|
floatingLabel: floatingLabel$1,
|
|
84030
|
+
clientText,
|
|
84031
|
+
normalText,
|
|
84027
84032
|
dropdown: dropdown$1,
|
|
84028
84033
|
options,
|
|
84029
84034
|
checkedOption,
|
|
@@ -84031,7 +84036,7 @@ var styles$s = {
|
|
|
84031
84036
|
icon: icon$1,
|
|
84032
84037
|
text: text$1,
|
|
84033
84038
|
floatingText,
|
|
84034
|
-
search,
|
|
84039
|
+
search: search$1,
|
|
84035
84040
|
loadMore: loadMore$1
|
|
84036
84041
|
};
|
|
84037
84042
|
var isCheckBoxInput = (element) => element.type === "checkbox";
|
|
@@ -85465,10 +85470,26 @@ function useForm(props = {}) {
|
|
|
85465
85470
|
_formControl.current.formState = getProxyFormState(formState, control._proxyFormState);
|
|
85466
85471
|
return _formControl.current;
|
|
85467
85472
|
}
|
|
85473
|
+
const search = "_search_1klck_1";
|
|
85468
85474
|
var styles$r = {
|
|
85469
|
-
"searchTab-container": "_searchTab-
|
|
85470
|
-
"searchTab-input": "_searchTab-
|
|
85475
|
+
"searchTab-container": "_searchTab-container_1klck_1",
|
|
85476
|
+
"searchTab-input": "_searchTab-input_1klck_5",
|
|
85477
|
+
search
|
|
85471
85478
|
};
|
|
85479
|
+
const iconoirSearch = (props) => /* @__PURE__ */ jsx("svg", {
|
|
85480
|
+
viewBox: "0 0 24 24",
|
|
85481
|
+
width: "1.2em",
|
|
85482
|
+
height: "1.2em",
|
|
85483
|
+
...props,
|
|
85484
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
85485
|
+
fill: "none",
|
|
85486
|
+
stroke: "currentColor",
|
|
85487
|
+
strokeLinecap: "round",
|
|
85488
|
+
strokeLinejoin: "round",
|
|
85489
|
+
strokeWidth: 1.5,
|
|
85490
|
+
d: "M15.5 15.5L19 19M5 11a6 6 0 1 0 12 0a6 6 0 0 0-12 0Z"
|
|
85491
|
+
})
|
|
85492
|
+
});
|
|
85472
85493
|
const SearchTab = ({
|
|
85473
85494
|
setSearchKeyword,
|
|
85474
85495
|
className = ""
|
|
@@ -85481,13 +85502,20 @@ const SearchTab = ({
|
|
|
85481
85502
|
useEffect(() => {
|
|
85482
85503
|
setSearchKeyword(keyword == null ? void 0 : keyword.toLowerCase());
|
|
85483
85504
|
}, [setSearchKeyword, watch, keyword]);
|
|
85484
|
-
return /* @__PURE__ */
|
|
85505
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
85485
85506
|
className: `${styles$r["searchTab-container"]} ${className}`,
|
|
85486
|
-
children: /* @__PURE__ */ jsx("input", {
|
|
85487
|
-
placeholder: "Search
|
|
85507
|
+
children: [/* @__PURE__ */ jsx("input", {
|
|
85508
|
+
placeholder: "Search",
|
|
85488
85509
|
...register2("searchKeyword"),
|
|
85489
85510
|
className: styles$r["searchTab-input"]
|
|
85490
|
-
})
|
|
85511
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
85512
|
+
className: styles$r.search,
|
|
85513
|
+
children: /* @__PURE__ */ jsx(iconoirSearch, {
|
|
85514
|
+
color: "#C7C7C7",
|
|
85515
|
+
width: "30px",
|
|
85516
|
+
height: "30px"
|
|
85517
|
+
})
|
|
85518
|
+
})]
|
|
85491
85519
|
});
|
|
85492
85520
|
};
|
|
85493
85521
|
const materialSymbolsKeyboardArrowDown = (props) => /* @__PURE__ */ jsx("svg", {
|
|
@@ -85552,7 +85580,7 @@ const FloatingDropDown = ({
|
|
|
85552
85580
|
children: [label2 ? /* @__PURE__ */ jsx(Text, {
|
|
85553
85581
|
variant: "span",
|
|
85554
85582
|
styleClass: labelVariant === "floating" ? "custom" : "font-14",
|
|
85555
|
-
className: `${styles$s.label} ${labelVariant === "floating" ? styles$s.floatingLabel : ""}`,
|
|
85583
|
+
className: `${styles$s.label} ${labelVariant === "floating" ? styles$s.floatingLabel : ""} ${label2 === "client" ? styles$s.clientText : styles$s.normalText} `,
|
|
85556
85584
|
children: label2
|
|
85557
85585
|
}) : null, /* @__PURE__ */ jsxs(Button, {
|
|
85558
85586
|
type: "button",
|
|
@@ -86734,9 +86762,9 @@ var styles$l = {
|
|
|
86734
86762
|
valueLabelWrapper,
|
|
86735
86763
|
singleCheckBox
|
|
86736
86764
|
};
|
|
86737
|
-
const tab$1 = "
|
|
86738
|
-
const button$4 = "
|
|
86739
|
-
const activeTab = "
|
|
86765
|
+
const tab$1 = "_tab_1imil_1";
|
|
86766
|
+
const button$4 = "_button_1imil_7";
|
|
86767
|
+
const activeTab = "_activeTab_1imil_15";
|
|
86740
86768
|
var styles$k = {
|
|
86741
86769
|
tab: tab$1,
|
|
86742
86770
|
button: button$4,
|
|
@@ -86837,37 +86865,37 @@ const InputField = ({
|
|
|
86837
86865
|
})]
|
|
86838
86866
|
});
|
|
86839
86867
|
};
|
|
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 = "
|
|
86868
|
+
const listBoxButton = "_listBoxButton_1mdwz_5";
|
|
86869
|
+
const selectedOptionText = "_selectedOptionText_1mdwz_17";
|
|
86870
|
+
const transitionDiv = "_transitionDiv_1mdwz_21";
|
|
86871
|
+
const listboxButtonWrapper = "_listboxButtonWrapper_1mdwz_25";
|
|
86872
|
+
const arrowicon = "_arrowicon_1mdwz_28";
|
|
86873
|
+
const leave = "_leave_1mdwz_31";
|
|
86874
|
+
const leaveFrom = "_leaveFrom_1mdwz_34";
|
|
86875
|
+
const leaveTo = "_leaveTo_1mdwz_37";
|
|
86876
|
+
const notAvailable = "_notAvailable_1mdwz_40";
|
|
86877
|
+
const option = "_option_1mdwz_43";
|
|
86878
|
+
const activeOption = "_activeOption_1mdwz_46";
|
|
86879
|
+
const optionSelected = "_optionSelected_1mdwz_49";
|
|
86880
|
+
const inactiveOption = "_inactiveOption_1mdwz_52";
|
|
86881
|
+
const optionLabel = "_optionLabel_1mdwz_55";
|
|
86882
|
+
const optionSubLabel = "_optionSubLabel_1mdwz_58";
|
|
86883
|
+
const selectedLabel = "_selectedLabel_1mdwz_61";
|
|
86884
|
+
const nonselectedLabel = "_nonselectedLabel_1mdwz_64";
|
|
86885
|
+
const check = "_check_1mdwz_67";
|
|
86886
|
+
const checkActive = "_checkActive_1mdwz_70";
|
|
86887
|
+
const checkInactive = "_checkInactive_1mdwz_73";
|
|
86888
|
+
const checkIcon$1 = "_checkIcon_1mdwz_76";
|
|
86889
|
+
const checkIconSelected = "_checkIconSelected_1mdwz_79";
|
|
86890
|
+
const checkIconUnselected = "_checkIconUnselected_1mdwz_82";
|
|
86891
|
+
const loadMore = "_loadMore_1mdwz_85";
|
|
86892
|
+
const selectedList = "_selectedList_1mdwz_88";
|
|
86893
|
+
const selectedListItem = "_selectedListItem_1mdwz_91";
|
|
86866
86894
|
var style = {
|
|
86867
|
-
"listBox-label": "_listBox-
|
|
86868
|
-
"listBoxButton-container": "_listBoxButton-
|
|
86895
|
+
"listBox-label": "_listBox-label_1mdwz_1",
|
|
86896
|
+
"listBoxButton-container": "_listBoxButton-container_1mdwz_5",
|
|
86869
86897
|
listBoxButton,
|
|
86870
|
-
"listBox-option": "_listBox-
|
|
86898
|
+
"listBox-option": "_listBox-option_1mdwz_13",
|
|
86871
86899
|
selectedOptionText,
|
|
86872
86900
|
transitionDiv,
|
|
86873
86901
|
listboxButtonWrapper,
|
|
@@ -87272,8 +87300,8 @@ const HookMultiSelect = ({
|
|
|
87272
87300
|
})
|
|
87273
87301
|
});
|
|
87274
87302
|
};
|
|
87275
|
-
const container$a = "
|
|
87276
|
-
const tooltip$1 = "
|
|
87303
|
+
const container$a = "_container_1m5jj_1";
|
|
87304
|
+
const tooltip$1 = "_tooltip_1m5jj_7";
|
|
87277
87305
|
var styles$h = {
|
|
87278
87306
|
container: container$a,
|
|
87279
87307
|
tooltip: tooltip$1
|
|
@@ -87343,8 +87371,8 @@ const ChartConfigure = ({
|
|
|
87343
87371
|
setBackGroundColor
|
|
87344
87372
|
}) => {
|
|
87345
87373
|
const TabList = ["Margins", "Legend", "Custom"];
|
|
87346
|
-
const singleValueTabs = ["
|
|
87347
|
-
const [activeTab2, setActiveTab] = useState("
|
|
87374
|
+
const singleValueTabs = ["Custom"];
|
|
87375
|
+
const [activeTab2, setActiveTab] = useState("Custom");
|
|
87348
87376
|
return /* @__PURE__ */ jsxs("div", {
|
|
87349
87377
|
className: styles$l.container,
|
|
87350
87378
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -87504,7 +87532,7 @@ const ChartConfigure = ({
|
|
|
87504
87532
|
className: styles$l.seriesWrapper,
|
|
87505
87533
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
87506
87534
|
variant: "h1",
|
|
87507
|
-
styleClass: "
|
|
87535
|
+
styleClass: "font-14",
|
|
87508
87536
|
children: "Value labels"
|
|
87509
87537
|
}), /* @__PURE__ */ jsx("div", {
|
|
87510
87538
|
className: styles$l.valueLabelWrapper,
|
|
@@ -89003,31 +89031,35 @@ const ChartTab = ({
|
|
|
89003
89031
|
})]
|
|
89004
89032
|
});
|
|
89005
89033
|
};
|
|
89006
|
-
const container$8 = "
|
|
89007
|
-
const wrapper$1 = "
|
|
89008
|
-
const text = "
|
|
89009
|
-
const table$3 = "
|
|
89034
|
+
const container$8 = "_container_yjeiv_1";
|
|
89035
|
+
const wrapper$1 = "_wrapper_yjeiv_5";
|
|
89036
|
+
const text = "_text_yjeiv_9";
|
|
89037
|
+
const table$3 = "_table_yjeiv_12";
|
|
89010
89038
|
var styles$d = {
|
|
89011
89039
|
container: container$8,
|
|
89012
89040
|
wrapper: wrapper$1,
|
|
89013
89041
|
text,
|
|
89014
89042
|
table: table$3
|
|
89015
89043
|
};
|
|
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
|
|
89044
|
+
const container$7 = "_container_1jkce_1";
|
|
89045
|
+
const table$2 = "_table_1jkce_9";
|
|
89046
|
+
const tableHead = "_tableHead_1jkce_17";
|
|
89047
|
+
const tableRow$1 = "_tableRow_1jkce_25";
|
|
89048
|
+
const tableHeadCol$1 = "_tableHeadCol_1jkce_33";
|
|
89049
|
+
const tableHeadColText = "_tableHeadColText_1jkce_41";
|
|
89050
|
+
const tableRowCol$1 = "_tableRowCol_1jkce_49";
|
|
89051
|
+
const tableColText = "_tableColText_1jkce_57";
|
|
89052
|
+
const empty = "_empty_1jkce_65";
|
|
89053
|
+
const error$2 = "_error_1jkce_73";
|
|
89024
89054
|
var styles$c = {
|
|
89025
89055
|
container: container$7,
|
|
89026
89056
|
table: table$2,
|
|
89027
89057
|
tableHead,
|
|
89028
89058
|
tableRow: tableRow$1,
|
|
89029
89059
|
tableHeadCol: tableHeadCol$1,
|
|
89060
|
+
tableHeadColText,
|
|
89030
89061
|
tableRowCol: tableRowCol$1,
|
|
89062
|
+
tableColText,
|
|
89031
89063
|
empty,
|
|
89032
89064
|
error: error$2
|
|
89033
89065
|
};
|
|
@@ -89050,6 +89082,7 @@ const MetricTable = ({
|
|
|
89050
89082
|
children: /* @__PURE__ */ jsx(Text, {
|
|
89051
89083
|
styleClass: "font-14c",
|
|
89052
89084
|
variant: "h1",
|
|
89085
|
+
className: styles$c.tableHeadColText,
|
|
89053
89086
|
children: item
|
|
89054
89087
|
})
|
|
89055
89088
|
}, item);
|
|
@@ -89062,6 +89095,7 @@ const MetricTable = ({
|
|
|
89062
89095
|
children: /* @__PURE__ */ jsx(Text, {
|
|
89063
89096
|
styleClass: "font-14",
|
|
89064
89097
|
variant: "p",
|
|
89098
|
+
className: styles$c.tableColText,
|
|
89065
89099
|
children: JSON.stringify(item[d2])
|
|
89066
89100
|
})
|
|
89067
89101
|
}, index2))
|
|
@@ -89101,36 +89135,36 @@ const InputTables = ({
|
|
|
89101
89135
|
})
|
|
89102
89136
|
});
|
|
89103
89137
|
};
|
|
89104
|
-
const container$6 = "
|
|
89105
|
-
const header$1 = "
|
|
89106
|
-
const tabButton$1 = "
|
|
89107
|
-
const selectedTab = "
|
|
89108
|
-
const table$1 = "
|
|
89138
|
+
const container$6 = "_container_38zl3_1";
|
|
89139
|
+
const header$1 = "_header_38zl3_5";
|
|
89140
|
+
const tabButton$1 = "_tabButton_38zl3_16";
|
|
89141
|
+
const selectedTab = "_selectedTab_38zl3_19";
|
|
89142
|
+
const table$1 = "_table_38zl3_22";
|
|
89109
89143
|
var styles$b = {
|
|
89110
89144
|
container: container$6,
|
|
89111
89145
|
header: header$1,
|
|
89112
|
-
"text-container": "_text-
|
|
89113
|
-
"btn-container": "_btn-
|
|
89146
|
+
"text-container": "_text-container_38zl3_9",
|
|
89147
|
+
"btn-container": "_btn-container_38zl3_13",
|
|
89114
89148
|
tabButton: tabButton$1,
|
|
89115
89149
|
selectedTab,
|
|
89116
89150
|
table: table$1
|
|
89117
89151
|
};
|
|
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 = "
|
|
89152
|
+
const tableData = "_tableData_o6rhd_7";
|
|
89153
|
+
const tableHeadCol = "_tableHeadCol_o6rhd_13";
|
|
89154
|
+
const tableRow = "_tableRow_o6rhd_19";
|
|
89155
|
+
const tableRowCol = "_tableRowCol_o6rhd_25";
|
|
89156
|
+
const row = "_row_o6rhd_31";
|
|
89157
|
+
const container$5 = "_container_o6rhd_37";
|
|
89158
|
+
const table = "_table_o6rhd_1";
|
|
89159
|
+
const previewTable = "_previewTable_o6rhd_49";
|
|
89160
|
+
const preview = "_preview_o6rhd_49";
|
|
89161
|
+
const previewText = "_previewText_o6rhd_61";
|
|
89162
|
+
const noData = "_noData_o6rhd_67";
|
|
89163
|
+
const error$1 = "_error_o6rhd_73";
|
|
89164
|
+
const errorMsg = "_errorMsg_o6rhd_79";
|
|
89165
|
+
const tableIcon = "_tableIcon_o6rhd_85";
|
|
89132
89166
|
var styles$a = {
|
|
89133
|
-
"table-loader-container": "_table-loader-
|
|
89167
|
+
"table-loader-container": "_table-loader-container_o6rhd_1",
|
|
89134
89168
|
tableData,
|
|
89135
89169
|
tableHeadCol,
|
|
89136
89170
|
tableRow,
|
|
@@ -89250,6 +89284,16 @@ const TableTab = ({
|
|
|
89250
89284
|
previewTableDataList
|
|
89251
89285
|
}) => {
|
|
89252
89286
|
const [selectedTab2, setSelectedTab] = useState(OUTPUT_TABLE);
|
|
89287
|
+
const buttonColor = {
|
|
89288
|
+
background: "#e5e7eb",
|
|
89289
|
+
width: "100%",
|
|
89290
|
+
height: "100%",
|
|
89291
|
+
paddingTop: "4px",
|
|
89292
|
+
paddingBottom: "4px",
|
|
89293
|
+
display: "flex",
|
|
89294
|
+
alignItems: "center",
|
|
89295
|
+
justifyContent: "center"
|
|
89296
|
+
};
|
|
89253
89297
|
return /* @__PURE__ */ jsxs("div", {
|
|
89254
89298
|
className: styles$b.container,
|
|
89255
89299
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
@@ -89267,18 +89311,24 @@ const TableTab = ({
|
|
|
89267
89311
|
})]
|
|
89268
89312
|
}), /* @__PURE__ */ jsxs("div", {
|
|
89269
89313
|
className: styles$b["btn-container"],
|
|
89270
|
-
children: [/* @__PURE__ */
|
|
89314
|
+
children: [/* @__PURE__ */ jsxs(Button, {
|
|
89271
89315
|
type: "button",
|
|
89272
89316
|
variant: "custom",
|
|
89273
|
-
className:
|
|
89317
|
+
className: styles$b.tabButton,
|
|
89274
89318
|
onClick: () => setSelectedTab(INPUT_TABLE),
|
|
89275
|
-
children: "
|
|
89276
|
-
|
|
89319
|
+
children: [selectedTab2 === INPUT_TABLE && /* @__PURE__ */ jsx("div", {
|
|
89320
|
+
style: buttonColor,
|
|
89321
|
+
children: "Input Table"
|
|
89322
|
+
}), selectedTab2 !== INPUT_TABLE && "Input Table"]
|
|
89323
|
+
}), /* @__PURE__ */ jsxs(Button, {
|
|
89277
89324
|
type: "button",
|
|
89278
89325
|
variant: "custom",
|
|
89279
|
-
className:
|
|
89326
|
+
className: styles$b.tabButton,
|
|
89280
89327
|
onClick: () => setSelectedTab(OUTPUT_TABLE),
|
|
89281
|
-
children: "
|
|
89328
|
+
children: [selectedTab2 === OUTPUT_TABLE && /* @__PURE__ */ jsx("div", {
|
|
89329
|
+
style: buttonColor,
|
|
89330
|
+
children: "Output Table"
|
|
89331
|
+
}), selectedTab2 !== OUTPUT_TABLE && "Output Table"]
|
|
89282
89332
|
})]
|
|
89283
89333
|
})]
|
|
89284
89334
|
}), selectedTab2 === INPUT_TABLE && /* @__PURE__ */ jsx(InputTables, {
|
|
@@ -89940,7 +89990,9 @@ const MetricForm = ({
|
|
|
89940
89990
|
setLoading,
|
|
89941
89991
|
setQuery,
|
|
89942
89992
|
isEnableGroupBy,
|
|
89943
|
-
setSelectedGroupBy
|
|
89993
|
+
setSelectedGroupBy,
|
|
89994
|
+
clientId,
|
|
89995
|
+
clientColumn
|
|
89944
89996
|
}) => {
|
|
89945
89997
|
const [metrics, setMetrics] = useState([]);
|
|
89946
89998
|
const [timeGrainValue, setTimeGrainValue] = useState("");
|
|
@@ -90536,7 +90588,11 @@ const MetricForm = ({
|
|
|
90536
90588
|
as: (_c2 = columnList.find((c2) => c2.value === timeColumn.value)) == null ? void 0 : _c2.label
|
|
90537
90589
|
},
|
|
90538
90590
|
isInclude: isIncludeTime
|
|
90539
|
-
}
|
|
90591
|
+
},
|
|
90592
|
+
clientColumnFilter: clientColumn ? {
|
|
90593
|
+
value: Number(clientId) || clientId,
|
|
90594
|
+
column: isBigQuery || isMySql ? `${clientColumn}` : isMongoDb ? `\`${clientColumn}\`` : `"${clientColumn}"`
|
|
90595
|
+
} : void 0
|
|
90540
90596
|
}
|
|
90541
90597
|
}, {
|
|
90542
90598
|
onSuccess(data2) {
|
|
@@ -90643,7 +90699,9 @@ const ConstructMetric = ({
|
|
|
90643
90699
|
setQuery,
|
|
90644
90700
|
isEnableGroupBy,
|
|
90645
90701
|
setEnableGroupBy,
|
|
90646
|
-
setSelectedGroupBy
|
|
90702
|
+
setSelectedGroupBy,
|
|
90703
|
+
clientId,
|
|
90704
|
+
clientColumn
|
|
90647
90705
|
}) => {
|
|
90648
90706
|
return /* @__PURE__ */ jsxs("div", {
|
|
90649
90707
|
className: styles$6.container,
|
|
@@ -90665,7 +90723,9 @@ const ConstructMetric = ({
|
|
|
90665
90723
|
setQuery,
|
|
90666
90724
|
setLoading,
|
|
90667
90725
|
isEnableGroupBy,
|
|
90668
|
-
setSelectedGroupBy
|
|
90726
|
+
setSelectedGroupBy,
|
|
90727
|
+
clientId,
|
|
90728
|
+
clientColumn
|
|
90669
90729
|
})]
|
|
90670
90730
|
});
|
|
90671
90731
|
};
|
|
@@ -90888,6 +90948,7 @@ const EmbeddedMetricCreation = ({
|
|
|
90888
90948
|
label: table2.tableName
|
|
90889
90949
|
})), [companySubsetTableList]);
|
|
90890
90950
|
const selectedTableData = useMemo(() => companySubsetTableList.find((table2) => table2.tableName === selectTable.value), [selectTable.value, companySubsetTableList]);
|
|
90951
|
+
const clientColumn = useMemo(() => selectedTableData == null ? void 0 : selectedTableData.clientColumn, [selectedTableData]);
|
|
90891
90952
|
const columnList = useMemo(() => (selectedTableData == null ? void 0 : selectedTableData.columns.map(({
|
|
90892
90953
|
name,
|
|
90893
90954
|
as
|
|
@@ -91142,7 +91203,9 @@ const EmbeddedMetricCreation = ({
|
|
|
91142
91203
|
setLoading,
|
|
91143
91204
|
isEnableGroupBy,
|
|
91144
91205
|
setEnableGroupBy,
|
|
91145
|
-
setSelectedGroupBy
|
|
91206
|
+
setSelectedGroupBy,
|
|
91207
|
+
clientId,
|
|
91208
|
+
clientColumn
|
|
91146
91209
|
}), /* @__PURE__ */ jsx(MetricOutput, {
|
|
91147
91210
|
data: isEnableGroupBy ? groupedData : data2,
|
|
91148
91211
|
error: error2,
|