@databrainhq/plugin 0.4.6 → 0.5.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.
- package/dist/components/MetricCreation/index.d.ts +1 -1
- package/dist/components/MetricList/index.d.ts +4 -1
- package/dist/containers/Dashboard/index.d.ts +7 -0
- package/dist/index.es.js +1145 -1020
- package/dist/index.umd.js +124 -135
- package/dist/style.css +1 -1
- package/dist/types/metricCreate.d.ts +2 -0
- package/dist/utils/theme.d.ts +87 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$6 from "react";
|
|
2
|
-
import React__default, { PureComponent, forwardRef, useRef, useEffect, useState,
|
|
2
|
+
import React__default, { PureComponent, forwardRef, useRef, useEffect, useState, useLayoutEffect, Fragment as Fragment$1, isValidElement, cloneElement as cloneElement$1, createElement as createElement$1, createContext as createContext$1, useContext, useMemo, useReducer, createRef, useCallback, memo } from "react";
|
|
3
3
|
import require$$2$1 from "react-dom";
|
|
4
4
|
function _setPrototypeOf$7(o2, p2) {
|
|
5
5
|
_setPrototypeOf$7 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
|
|
@@ -2512,87 +2512,75 @@ function useQuery(arg1, arg2, arg3) {
|
|
|
2512
2512
|
var parsedOptions = parseQueryArgs(arg1, arg2, arg3);
|
|
2513
2513
|
return useBaseQuery(parsedOptions, QueryObserver);
|
|
2514
2514
|
}
|
|
2515
|
-
const container$e = "
|
|
2516
|
-
const fixed = "
|
|
2517
|
-
const absolute = "
|
|
2518
|
-
const
|
|
2519
|
-
const
|
|
2520
|
-
const
|
|
2521
|
-
const
|
|
2522
|
-
const
|
|
2523
|
-
const
|
|
2524
|
-
const
|
|
2525
|
-
const
|
|
2526
|
-
const
|
|
2527
|
-
const
|
|
2528
|
-
const
|
|
2529
|
-
|
|
2515
|
+
const container$e = "_container_gr5gv_1";
|
|
2516
|
+
const fixed = "_fixed_gr5gv_1";
|
|
2517
|
+
const absolute = "_absolute_gr5gv_1";
|
|
2518
|
+
const flex = "_flex_gr5gv_1";
|
|
2519
|
+
const table$4 = "_table_gr5gv_1";
|
|
2520
|
+
const grid = "_grid_gr5gv_1";
|
|
2521
|
+
const hidden = "_hidden_gr5gv_1";
|
|
2522
|
+
const transform = "_transform_gr5gv_1";
|
|
2523
|
+
const border = "_border_gr5gv_1";
|
|
2524
|
+
const shadow = "_shadow_gr5gv_1";
|
|
2525
|
+
const filter$1 = "_filter_gr5gv_347";
|
|
2526
|
+
const floatingFilterButton = "_floatingFilterButton_gr5gv_355";
|
|
2527
|
+
const floatingFilterButtonIcon = "_floatingFilterButtonIcon_gr5gv_363";
|
|
2528
|
+
const floatingButton = "_floatingButton_gr5gv_371";
|
|
2529
|
+
const floatingButtonIcon = "_floatingButtonIcon_gr5gv_379";
|
|
2530
|
+
const staticContainer = "_staticContainer_gr5gv_387";
|
|
2531
|
+
const floatingContainer = "_floatingContainer_gr5gv_395";
|
|
2532
|
+
var styles$A = {
|
|
2530
2533
|
container: container$e,
|
|
2531
|
-
"static": "
|
|
2534
|
+
"static": "_static_gr5gv_387",
|
|
2532
2535
|
fixed,
|
|
2533
2536
|
absolute,
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
"
|
|
2537
|
-
"
|
|
2538
|
-
"
|
|
2539
|
-
"mb-
|
|
2540
|
-
"mt-2": "_mt-2_11uys_1",
|
|
2541
|
-
"mb-3": "_mb-3_11uys_1",
|
|
2542
|
-
"mt-3": "_mt-3_11uys_1",
|
|
2543
|
-
"mt-2.5": "_mt-2.5_11uys_1",
|
|
2537
|
+
"left-2": "_left-2_gr5gv_1",
|
|
2538
|
+
"top-1": "_top-1_gr5gv_1",
|
|
2539
|
+
"mb-2": "_mb-2_gr5gv_1",
|
|
2540
|
+
"mt-2": "_mt-2_gr5gv_1",
|
|
2541
|
+
"mt-2.5": "_mt-2.5_gr5gv_1",
|
|
2542
|
+
"mb-3": "_mb-3_gr5gv_1",
|
|
2544
2543
|
flex,
|
|
2545
2544
|
table: table$4,
|
|
2546
2545
|
grid,
|
|
2547
2546
|
hidden,
|
|
2548
|
-
"h-screen": "_h-
|
|
2549
|
-
"h-full": "_h-
|
|
2550
|
-
"h-
|
|
2551
|
-
"
|
|
2552
|
-
"
|
|
2553
|
-
"h-80": "_h-80_11uys_1",
|
|
2554
|
-
"w-screen": "_w-screen_11uys_1",
|
|
2555
|
-
"w-full": "_w-full_11uys_1",
|
|
2556
|
-
"w-64": "_w-64_11uys_1",
|
|
2557
|
-
"w-44": "_w-44_11uys_1",
|
|
2558
|
-
"w-60": "_w-60_11uys_1",
|
|
2547
|
+
"h-screen": "_h-screen_gr5gv_1",
|
|
2548
|
+
"h-full": "_h-full_gr5gv_1",
|
|
2549
|
+
"h-80": "_h-80_gr5gv_1",
|
|
2550
|
+
"w-screen": "_w-screen_gr5gv_1",
|
|
2551
|
+
"w-full": "_w-full_gr5gv_1",
|
|
2559
2552
|
transform,
|
|
2560
|
-
"flex-col": "_flex-
|
|
2561
|
-
"items-center": "_items-
|
|
2562
|
-
"justify-center": "_justify-
|
|
2563
|
-
"
|
|
2564
|
-
"
|
|
2565
|
-
"
|
|
2566
|
-
"overflow-
|
|
2567
|
-
"overflow-x-hidden": "_overflow-x-hidden_11uys_1",
|
|
2568
|
-
truncate,
|
|
2569
|
-
"rounded-md": "_rounded-md_11uys_1",
|
|
2570
|
-
"border-2": "_border-2_11uys_1",
|
|
2553
|
+
"flex-col": "_flex-col_gr5gv_1",
|
|
2554
|
+
"items-center": "_items-center_gr5gv_1",
|
|
2555
|
+
"justify-center": "_justify-center_gr5gv_1",
|
|
2556
|
+
"gap-5": "_gap-5_gr5gv_1",
|
|
2557
|
+
"divide-solid": "_divide-solid_gr5gv_1",
|
|
2558
|
+
"overflow-y-auto": "_overflow-y-auto_gr5gv_1",
|
|
2559
|
+
"overflow-x-hidden": "_overflow-x-hidden_gr5gv_1",
|
|
2571
2560
|
border,
|
|
2572
|
-
"border-
|
|
2573
|
-
"
|
|
2574
|
-
"p-
|
|
2575
|
-
"
|
|
2576
|
-
"
|
|
2577
|
-
"
|
|
2578
|
-
"
|
|
2579
|
-
"
|
|
2580
|
-
"
|
|
2581
|
-
"pl-1": "_pl-1_11uys_1",
|
|
2582
|
-
"text-center": "_text-center_11uys_1",
|
|
2583
|
-
"text-lg": "_text-lg_11uys_1",
|
|
2584
|
-
"text-6xl": "_text-6xl_11uys_1",
|
|
2585
|
-
"text-sm": "_text-sm_11uys_1",
|
|
2586
|
-
"text-xs": "_text-xs_11uys_1",
|
|
2587
|
-
"text-gray-400": "_text-gray-400_11uys_1",
|
|
2588
|
-
"text-blue-700": "_text-blue-700_11uys_1",
|
|
2561
|
+
"border-2": "_border-2_gr5gv_1",
|
|
2562
|
+
"p-4": "_p-4_gr5gv_1",
|
|
2563
|
+
"p-2": "_p-2_gr5gv_1",
|
|
2564
|
+
"text-center": "_text-center_gr5gv_1",
|
|
2565
|
+
"text-lg": "_text-lg_gr5gv_1",
|
|
2566
|
+
"text-6xl": "_text-6xl_gr5gv_1",
|
|
2567
|
+
"text-sm": "_text-sm_gr5gv_1",
|
|
2568
|
+
"text-xs": "_text-xs_gr5gv_1",
|
|
2569
|
+
"text-blue-700": "_text-blue-700_gr5gv_1",
|
|
2589
2570
|
shadow,
|
|
2590
2571
|
filter: filter$1,
|
|
2591
|
-
"!filter": "_!
|
|
2592
|
-
"embedDashboard-container": "_embedDashboard-
|
|
2593
|
-
"embedDashboard-header": "_embedDashboard-
|
|
2594
|
-
"embedDashboard-
|
|
2595
|
-
"
|
|
2572
|
+
"!filter": "_!filter_gr5gv_1",
|
|
2573
|
+
"embedDashboard-container": "_embedDashboard-container_gr5gv_307",
|
|
2574
|
+
"embedDashboard-header-static": "_embedDashboard-header-static_gr5gv_315",
|
|
2575
|
+
"embedDashboard-header-floating": "_embedDashboard-header-floating_gr5gv_323",
|
|
2576
|
+
"embedDashboard-wrapper": "_embedDashboard-wrapper_gr5gv_331",
|
|
2577
|
+
"alt-container": "_alt-container_gr5gv_339",
|
|
2578
|
+
floatingFilterButton,
|
|
2579
|
+
floatingFilterButtonIcon,
|
|
2580
|
+
floatingButton,
|
|
2581
|
+
floatingButtonIcon,
|
|
2582
|
+
staticContainer,
|
|
2583
|
+
floatingContainer
|
|
2596
2584
|
};
|
|
2597
2585
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2598
2586
|
function getAugmentedNamespace(n2) {
|
|
@@ -7855,271 +7843,14 @@ function WidthProvideRGL(ComposedComponent) {
|
|
|
7855
7843
|
module.exports.Responsive.utils = responsiveUtils;
|
|
7856
7844
|
module.exports.WidthProvider = WidthProvider.default;
|
|
7857
7845
|
})(reactGridLayout);
|
|
7858
|
-
var styles$
|
|
7859
|
-
var styles$
|
|
7860
|
-
"MetricList-container": "_MetricList-
|
|
7861
|
-
"MetricList-wrapper": "_MetricList-
|
|
7862
|
-
"noMetric-container": "_noMetric-
|
|
7863
|
-
"noMetric-wrapper": "_noMetric-
|
|
7864
|
-
"alt-container": "_alt-
|
|
7865
|
-
};
|
|
7866
|
-
const fetcher = (query, variables, options2) => {
|
|
7867
|
-
return async () => {
|
|
7868
|
-
const res = await fetch("https://backend.usedatabrain.com/v1/graphql", {
|
|
7869
|
-
method: "POST",
|
|
7870
|
-
headers: {
|
|
7871
|
-
"Content-Type": "application/json",
|
|
7872
|
-
"X-Hasura-Role": "anonymous",
|
|
7873
|
-
...options2
|
|
7874
|
-
},
|
|
7875
|
-
body: JSON.stringify({
|
|
7876
|
-
query,
|
|
7877
|
-
variables
|
|
7878
|
-
})
|
|
7879
|
-
});
|
|
7880
|
-
const json = await res.json();
|
|
7881
|
-
if (json.errors) {
|
|
7882
|
-
const { message } = json.errors[0];
|
|
7883
|
-
throw new Error(message);
|
|
7884
|
-
}
|
|
7885
|
-
return json.data;
|
|
7886
|
-
};
|
|
7846
|
+
var styles$z = "";
|
|
7847
|
+
var styles$y = {
|
|
7848
|
+
"MetricList-container": "_MetricList-container_1b506_1",
|
|
7849
|
+
"MetricList-wrapper": "_MetricList-wrapper_1b506_9",
|
|
7850
|
+
"noMetric-container": "_noMetric-container_1b506_17",
|
|
7851
|
+
"noMetric-wrapper": "_noMetric-wrapper_1b506_25",
|
|
7852
|
+
"alt-container": "_alt-container_1b506_33"
|
|
7887
7853
|
};
|
|
7888
|
-
const CreateExternalMetricDocument = `
|
|
7889
|
-
mutation CreateExternalMetric($chartOptions: jsonb = "", $companyId: uuid = "", $companyIntegrationId: uuid = "", $description: String = "", $inputFields: jsonb = "", $integrationName: String = "", $metricId: String = "", $metricQuery: String = "", $name: String = "", $outputColumns: String = "", $query: String = "", $isLive: Boolean, $clientId: String = "", $isCreatedByClient: Boolean = false, $createdBy: String = "", $timeGrain: String = "", $externalDashboardIds: [externalDashboardMetrics_insert_input!] = {}, $selectedGroupBy: jsonb = [], $isEnableGroupBy: Boolean = false, $groupBy: jsonb = {}) {
|
|
7890
|
-
insert_externalMetrics_one(
|
|
7891
|
-
object: {chartOptions: $chartOptions, companyId: $companyId, companyIntegrationId: $companyIntegrationId, description: $description, inputFields: $inputFields, integrationName: $integrationName, metricId: $metricId, metricQuery: $metricQuery, name: $name, outputColumns: $outputColumns, query: $query, isLive: $isLive, clientId: $clientId, isCreatedByClient: $isCreatedByClient, createdBy: $createdBy, timeGrain: $timeGrain, externalDashboardMetrics: {data: $externalDashboardIds}, selectedGroupBy: $selectedGroupBy, isEnableGroupBy: $isEnableGroupBy, groupBy: $groupBy}
|
|
7892
|
-
) {
|
|
7893
|
-
id
|
|
7894
|
-
externalDashboardMetrics {
|
|
7895
|
-
externalDashboardId
|
|
7896
|
-
}
|
|
7897
|
-
}
|
|
7898
|
-
}
|
|
7899
|
-
`;
|
|
7900
|
-
const useCreateExternalMetricMutation = (options2) => useMutation(
|
|
7901
|
-
["CreateExternalMetric"],
|
|
7902
|
-
(variables) => fetcher(CreateExternalMetricDocument, variables)(),
|
|
7903
|
-
options2
|
|
7904
|
-
);
|
|
7905
|
-
const FetchColumnDataDocument = `
|
|
7906
|
-
mutation FetchColumnData($companyId: String = "", $tableName: String = "", $columnName: String = "") {
|
|
7907
|
-
fetchColumnData(
|
|
7908
|
-
input: {columnName: $columnName, companyId: $companyId, tableName: $tableName}
|
|
7909
|
-
) {
|
|
7910
|
-
data {
|
|
7911
|
-
label
|
|
7912
|
-
value
|
|
7913
|
-
}
|
|
7914
|
-
error {
|
|
7915
|
-
message
|
|
7916
|
-
}
|
|
7917
|
-
}
|
|
7918
|
-
}
|
|
7919
|
-
`;
|
|
7920
|
-
const useFetchColumnDataMutation = (options2) => useMutation(
|
|
7921
|
-
["FetchColumnData"],
|
|
7922
|
-
(variables) => fetcher(
|
|
7923
|
-
FetchColumnDataDocument,
|
|
7924
|
-
variables
|
|
7925
|
-
)(),
|
|
7926
|
-
options2
|
|
7927
|
-
);
|
|
7928
|
-
const GenerateDatasetMetricsDocument = `
|
|
7929
|
-
mutation GenerateDatasetMetrics($companyId: String = "", $userInputs: json = "") {
|
|
7930
|
-
generateDatasetMetrics(input: {companyId: $companyId, userInputs: $userInputs}) {
|
|
7931
|
-
error
|
|
7932
|
-
query
|
|
7933
|
-
result
|
|
7934
|
-
}
|
|
7935
|
-
}
|
|
7936
|
-
`;
|
|
7937
|
-
const useGenerateDatasetMetricsMutation = (options2) => useMutation(
|
|
7938
|
-
["GenerateDatasetMetrics"],
|
|
7939
|
-
(variables) => fetcher(GenerateDatasetMetricsDocument, variables)(),
|
|
7940
|
-
options2
|
|
7941
|
-
);
|
|
7942
|
-
const CompanyIntegrationDocument = `
|
|
7943
|
-
query CompanyIntegration($companyId: uuid = "") {
|
|
7944
|
-
companyIntegrations(where: {companyId: {_eq: $companyId}}) {
|
|
7945
|
-
companyId
|
|
7946
|
-
id
|
|
7947
|
-
integrationId
|
|
7948
|
-
name
|
|
7949
|
-
}
|
|
7950
|
-
}
|
|
7951
|
-
`;
|
|
7952
|
-
const useCompanyIntegrationQuery = (variables, options2) => useQuery(
|
|
7953
|
-
variables === void 0 ? ["CompanyIntegration"] : ["CompanyIntegration", variables],
|
|
7954
|
-
fetcher(
|
|
7955
|
-
CompanyIntegrationDocument,
|
|
7956
|
-
variables
|
|
7957
|
-
),
|
|
7958
|
-
options2
|
|
7959
|
-
);
|
|
7960
|
-
const CompanySubsetTableListDocument = `
|
|
7961
|
-
query CompanySubsetTableList($companyId: uuid = "") {
|
|
7962
|
-
companySubsetTables(where: {companyId: {_eq: $companyId}}) {
|
|
7963
|
-
tableList
|
|
7964
|
-
}
|
|
7965
|
-
}
|
|
7966
|
-
`;
|
|
7967
|
-
const useCompanySubsetTableListQuery = (variables, options2) => useQuery(
|
|
7968
|
-
variables === void 0 ? ["CompanySubsetTableList"] : ["CompanySubsetTableList", variables],
|
|
7969
|
-
fetcher(
|
|
7970
|
-
CompanySubsetTableListDocument,
|
|
7971
|
-
variables
|
|
7972
|
-
),
|
|
7973
|
-
options2
|
|
7974
|
-
);
|
|
7975
|
-
const EmbeddedDashboardMetricsDocument = `
|
|
7976
|
-
query EmbeddedDashboardMetrics($where: externalDashboardMetrics_bool_exp) {
|
|
7977
|
-
externalDashboardMetrics(where: $where) {
|
|
7978
|
-
externalMetricId
|
|
7979
|
-
externalDashboardId
|
|
7980
|
-
externalMetric {
|
|
7981
|
-
chartOptions
|
|
7982
|
-
clientId
|
|
7983
|
-
companyId
|
|
7984
|
-
companyIntegrationId
|
|
7985
|
-
createdAt
|
|
7986
|
-
createdBy
|
|
7987
|
-
description
|
|
7988
|
-
id
|
|
7989
|
-
inputFields
|
|
7990
|
-
integrationName
|
|
7991
|
-
isCreatedByClient
|
|
7992
|
-
isLive
|
|
7993
|
-
metricId
|
|
7994
|
-
metricQuery
|
|
7995
|
-
name
|
|
7996
|
-
outputColumns
|
|
7997
|
-
query
|
|
7998
|
-
resizeAttributes
|
|
7999
|
-
timeGrain
|
|
8000
|
-
updatedAt
|
|
8001
|
-
selectedGroupBy
|
|
8002
|
-
isEnableGroupBy
|
|
8003
|
-
groupBy
|
|
8004
|
-
}
|
|
8005
|
-
}
|
|
8006
|
-
}
|
|
8007
|
-
`;
|
|
8008
|
-
const useEmbeddedDashboardMetricsQuery = (variables, options2) => useQuery(
|
|
8009
|
-
variables === void 0 ? ["EmbeddedDashboardMetrics"] : ["EmbeddedDashboardMetrics", variables],
|
|
8010
|
-
fetcher(EmbeddedDashboardMetricsDocument, variables),
|
|
8011
|
-
options2
|
|
8012
|
-
);
|
|
8013
|
-
const GetExternalDashboardClientThemeDocument = `
|
|
8014
|
-
query GetExternalDashboardClientTheme($companyId: uuid!, $clientId: String!) {
|
|
8015
|
-
externalDashboardThemes(
|
|
8016
|
-
where: {companyId: {_eq: $companyId}, externalDashboardThemeClients: {clientId: {_eq: $clientId}}}
|
|
8017
|
-
limit: 1
|
|
8018
|
-
) {
|
|
8019
|
-
colors
|
|
8020
|
-
createdAt
|
|
8021
|
-
id
|
|
8022
|
-
name
|
|
8023
|
-
}
|
|
8024
|
-
}
|
|
8025
|
-
`;
|
|
8026
|
-
const useGetExternalDashboardClientThemeQuery = (variables, options2) => useQuery(
|
|
8027
|
-
["GetExternalDashboardClientTheme", variables],
|
|
8028
|
-
fetcher(GetExternalDashboardClientThemeDocument, variables),
|
|
8029
|
-
options2
|
|
8030
|
-
);
|
|
8031
|
-
const GetExternalDashboardIdDocument = `
|
|
8032
|
-
query GetExternalDashboardId($externalDashboardId: String = "") {
|
|
8033
|
-
externalDashboards(where: {externalDashboardId: {_eq: $externalDashboardId}}) {
|
|
8034
|
-
id
|
|
8035
|
-
filters
|
|
8036
|
-
}
|
|
8037
|
-
}
|
|
8038
|
-
`;
|
|
8039
|
-
const useGetExternalDashboardIdQuery = (variables, options2) => useQuery(
|
|
8040
|
-
variables === void 0 ? ["GetExternalDashboardId"] : ["GetExternalDashboardId", variables],
|
|
8041
|
-
fetcher(
|
|
8042
|
-
GetExternalDashboardIdDocument,
|
|
8043
|
-
variables
|
|
8044
|
-
),
|
|
8045
|
-
options2
|
|
8046
|
-
);
|
|
8047
|
-
const ExternalDashboardListDocument = `
|
|
8048
|
-
query ExternalDashboardList($companyId: uuid = "") {
|
|
8049
|
-
externalDashboards(where: {companyId: {_eq: $companyId}}) {
|
|
8050
|
-
externalDashboardId
|
|
8051
|
-
name
|
|
8052
|
-
id
|
|
8053
|
-
}
|
|
8054
|
-
}
|
|
8055
|
-
`;
|
|
8056
|
-
const useExternalDashboardListQuery = (variables, options2) => useQuery(
|
|
8057
|
-
variables === void 0 ? ["ExternalDashboardList"] : ["ExternalDashboardList", variables],
|
|
8058
|
-
fetcher(
|
|
8059
|
-
ExternalDashboardListDocument,
|
|
8060
|
-
variables
|
|
8061
|
-
),
|
|
8062
|
-
options2
|
|
8063
|
-
);
|
|
8064
|
-
const GuestTokenParamsDocument = `
|
|
8065
|
-
query GuestTokenParams($id: uuid = "") {
|
|
8066
|
-
guestTokens_by_pk(id: $id) {
|
|
8067
|
-
clientId
|
|
8068
|
-
companyId
|
|
8069
|
-
id
|
|
8070
|
-
params
|
|
8071
|
-
}
|
|
8072
|
-
}
|
|
8073
|
-
`;
|
|
8074
|
-
const useGuestTokenParamsQuery = (variables, options2) => useQuery(
|
|
8075
|
-
variables === void 0 ? ["GuestTokenParams"] : ["GuestTokenParams", variables],
|
|
8076
|
-
fetcher(
|
|
8077
|
-
GuestTokenParamsDocument,
|
|
8078
|
-
variables
|
|
8079
|
-
),
|
|
8080
|
-
options2
|
|
8081
|
-
);
|
|
8082
|
-
const PreviewTableDocument = `
|
|
8083
|
-
mutation PreviewTable($companyId: String = "", $tableName: String = "", $limit: Int = 10) {
|
|
8084
|
-
previewTable(
|
|
8085
|
-
input: {companyId: $companyId, tableName: $tableName, limit: $limit}
|
|
8086
|
-
) {
|
|
8087
|
-
data {
|
|
8088
|
-
data
|
|
8089
|
-
isError
|
|
8090
|
-
name
|
|
8091
|
-
}
|
|
8092
|
-
error {
|
|
8093
|
-
message
|
|
8094
|
-
}
|
|
8095
|
-
}
|
|
8096
|
-
}
|
|
8097
|
-
`;
|
|
8098
|
-
const usePreviewTableMutation = (options2) => useMutation(
|
|
8099
|
-
["PreviewTable"],
|
|
8100
|
-
(variables) => fetcher(
|
|
8101
|
-
PreviewTableDocument,
|
|
8102
|
-
variables
|
|
8103
|
-
)(),
|
|
8104
|
-
options2
|
|
8105
|
-
);
|
|
8106
|
-
const QueryExternalMetricDocument = `
|
|
8107
|
-
query QueryExternalMetric($id: String = "", $clientId: String = "", $filterValues: json = "", $globalFilters: json = []) {
|
|
8108
|
-
externalMetricQuery(
|
|
8109
|
-
input: {externalMetricId: $id, clientId: $clientId, filterValues: $filterValues, globalFilters: $globalFilters}
|
|
8110
|
-
) {
|
|
8111
|
-
data
|
|
8112
|
-
}
|
|
8113
|
-
}
|
|
8114
|
-
`;
|
|
8115
|
-
const useQueryExternalMetricQuery = (variables, options2) => useQuery(
|
|
8116
|
-
variables === void 0 ? ["QueryExternalMetric"] : ["QueryExternalMetric", variables],
|
|
8117
|
-
fetcher(
|
|
8118
|
-
QueryExternalMetricDocument,
|
|
8119
|
-
variables
|
|
8120
|
-
),
|
|
8121
|
-
options2
|
|
8122
|
-
);
|
|
8123
7854
|
var classnames = { exports: {} };
|
|
8124
7855
|
/*!
|
|
8125
7856
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -8168,21 +7899,21 @@ var classnames = { exports: {} };
|
|
|
8168
7899
|
})();
|
|
8169
7900
|
})(classnames);
|
|
8170
7901
|
var classNames = classnames.exports;
|
|
8171
|
-
const primary = "
|
|
8172
|
-
const secondary = "
|
|
8173
|
-
const tertiary = "
|
|
8174
|
-
var styles$
|
|
7902
|
+
const primary = "_primary_xtxvk_1";
|
|
7903
|
+
const secondary = "_secondary_xtxvk_5";
|
|
7904
|
+
const tertiary = "_tertiary_xtxvk_10";
|
|
7905
|
+
var styles$x = {
|
|
8175
7906
|
primary,
|
|
8176
7907
|
secondary,
|
|
8177
7908
|
tertiary,
|
|
8178
|
-
"font-18": "_font-
|
|
8179
|
-
"font-20": "_font-
|
|
8180
|
-
"font-14": "_font-
|
|
8181
|
-
"font-14a": "_font-
|
|
8182
|
-
"font-14b": "_font-
|
|
8183
|
-
"font-14c": "_font-
|
|
8184
|
-
"font-15": "_font-
|
|
8185
|
-
"font-34": "_font-
|
|
7909
|
+
"font-18": "_font-18_xtxvk_14",
|
|
7910
|
+
"font-20": "_font-20_xtxvk_18",
|
|
7911
|
+
"font-14": "_font-14_xtxvk_22",
|
|
7912
|
+
"font-14a": "_font-14a_xtxvk_26",
|
|
7913
|
+
"font-14b": "_font-14b_xtxvk_30",
|
|
7914
|
+
"font-14c": "_font-14c_xtxvk_34",
|
|
7915
|
+
"font-15": "_font-15_xtxvk_38",
|
|
7916
|
+
"font-34": "_font-34_xtxvk_41"
|
|
8186
7917
|
};
|
|
8187
7918
|
var jsxRuntime = { exports: {} };
|
|
8188
7919
|
var reactJsxRuntime_production_min = {};
|
|
@@ -8236,13 +7967,13 @@ const Text = ({
|
|
|
8236
7967
|
}) => {
|
|
8237
7968
|
const Tag = variants[variant];
|
|
8238
7969
|
return /* @__PURE__ */ jsx(Tag, {
|
|
8239
|
-
className: classNames(styleClass === "custom" ? null : `${styles$
|
|
7970
|
+
className: classNames(styleClass === "custom" ? null : `${styles$x[styleClass]}`, className),
|
|
8240
7971
|
onClick,
|
|
8241
7972
|
children: children2
|
|
8242
7973
|
});
|
|
8243
7974
|
};
|
|
8244
7975
|
const fullscreen = "_fullscreen_1wo1t_1";
|
|
8245
|
-
var styles$
|
|
7976
|
+
var styles$w = {
|
|
8246
7977
|
fullscreen
|
|
8247
7978
|
};
|
|
8248
7979
|
const SOMETHING_WENT_WRONG = "something went wrong, please try again";
|
|
@@ -16340,7 +16071,7 @@ function parsePlainText(text2, style2) {
|
|
|
16340
16071
|
var overflow = style2.overflow;
|
|
16341
16072
|
var padding = style2.padding;
|
|
16342
16073
|
var font = style2.font;
|
|
16343
|
-
var
|
|
16074
|
+
var truncate = overflow === "truncate";
|
|
16344
16075
|
var calculatedLineHeight = getLineHeight(font);
|
|
16345
16076
|
var lineHeight = retrieve2(style2.lineHeight, calculatedLineHeight);
|
|
16346
16077
|
var bgColorDrawn = !!style2.backgroundColor;
|
|
@@ -16358,7 +16089,7 @@ function parsePlainText(text2, style2) {
|
|
|
16358
16089
|
var lineCount = Math.floor(height / lineHeight);
|
|
16359
16090
|
lines = lines.slice(0, lineCount);
|
|
16360
16091
|
}
|
|
16361
|
-
if (text2 &&
|
|
16092
|
+
if (text2 && truncate && width != null) {
|
|
16362
16093
|
var options2 = prepareTruncateOptions(width, font, style2.ellipsis, {
|
|
16363
16094
|
minChar: style2.truncateMinChar,
|
|
16364
16095
|
placeholder: style2.placeholder
|
|
@@ -16449,7 +16180,7 @@ function parseRichText(text2, style2) {
|
|
|
16449
16180
|
var calculatedHeight = 0;
|
|
16450
16181
|
var calculatedWidth = 0;
|
|
16451
16182
|
var stlPadding = style2.padding;
|
|
16452
|
-
var
|
|
16183
|
+
var truncate = overflow === "truncate";
|
|
16453
16184
|
var truncateLine = style2.lineOverflow === "truncate";
|
|
16454
16185
|
function finishLine(line2, lineWidth2, lineHeight2) {
|
|
16455
16186
|
line2.width = lineWidth2;
|
|
@@ -16503,7 +16234,7 @@ function parseRichText(text2, style2) {
|
|
|
16503
16234
|
}
|
|
16504
16235
|
}
|
|
16505
16236
|
}
|
|
16506
|
-
var remainTruncWidth =
|
|
16237
|
+
var remainTruncWidth = truncate && topWidth != null ? topWidth - lineWidth : null;
|
|
16507
16238
|
if (remainTruncWidth != null && remainTruncWidth < token.width) {
|
|
16508
16239
|
if (!tokenWidthNotSpecified || remainTruncWidth < paddingH) {
|
|
16509
16240
|
token.text = "";
|
|
@@ -22870,7 +22601,7 @@ function secondsSetterName(isUTC) {
|
|
|
22870
22601
|
function millisecondsSetterName(isUTC) {
|
|
22871
22602
|
return isUTC ? "setUTCMilliseconds" : "setMilliseconds";
|
|
22872
22603
|
}
|
|
22873
|
-
function getTextRect(text2, font, align, verticalAlign, padding, rich,
|
|
22604
|
+
function getTextRect(text2, font, align, verticalAlign, padding, rich, truncate, lineHeight) {
|
|
22874
22605
|
var textEl = new ZRText$1({
|
|
22875
22606
|
style: {
|
|
22876
22607
|
text: text2,
|
|
@@ -22879,7 +22610,7 @@ function getTextRect(text2, font, align, verticalAlign, padding, rich, truncate2
|
|
|
22879
22610
|
verticalAlign,
|
|
22880
22611
|
padding,
|
|
22881
22612
|
rich,
|
|
22882
|
-
overflow:
|
|
22613
|
+
overflow: truncate ? "truncate" : null,
|
|
22883
22614
|
lineHeight
|
|
22884
22615
|
}
|
|
22885
22616
|
});
|
|
@@ -93678,6 +93409,7 @@ const BoxPlot = ({
|
|
|
93678
93409
|
option: option2
|
|
93679
93410
|
});
|
|
93680
93411
|
};
|
|
93412
|
+
var styles$v = ".tableContainer{position:relative;max-height:24rem;max-width:56rem;overflow:scroll;border-radius:var(--databrainhq-plugin-border-radiusMd);border-width:1px;border-style:solid;border-color:var(--databrainhq-plugin-color-gray300)}.heatMap{position:relative;border-collapse:separate;--tw-border-spacing-x: 0px;--tw-border-spacing-y: 0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.label{white-space:nowrap}.heatMap td,.heatMap th{border-right-width:1px;border-bottom-width:1px;border-style:solid;border-color:var(--databrainhq-plugin-color-gray300);padding:.25rem;text-align:center}.heatMap thead th{position:sticky;top:0px}.heatMap thead th:first-child{left:0px;z-index:10;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.heatMap tbody th{position:sticky;left:0px;z-index:10;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tablechart{position:relative;display:flex;height:100%;padding:1rem}.tablechartWrapper{display:flex;height:100%;width:100%;flex-direction:column}.tablechartContainer{position:sticky;height:4%;width:100%;padding-left:.25rem}.tablechartTable{width:100%}.tablechartHeaderRow{position:sticky;top:0px;height:2.5rem;background-color:var(--databrainhq-plugin-color-primaryLight)}.tablechartHeaderCol{width:16rem}.tablechartHeaderCol>:not([hidden])~:not([hidden]){border-style:solid}.tablechartHeaderCol{border-left-width:1px;padding-left:1rem;padding-right:1rem}.tablechartBodyRow{height:3.5rem}.tablechartBodyCol>:not([hidden])~:not([hidden]){border-style:solid}.tablechartBodyCol{border-left-width:1px;padding-left:1rem;padding-right:1rem;text-align:center}\n";
|
|
93681
93413
|
const TableChart = ({
|
|
93682
93414
|
data
|
|
93683
93415
|
}) => {
|
|
@@ -93697,18 +93429,18 @@ const TableChart = ({
|
|
|
93697
93429
|
}
|
|
93698
93430
|
}
|
|
93699
93431
|
return /* @__PURE__ */ jsx("div", {
|
|
93700
|
-
className:
|
|
93432
|
+
className: styles$v.tablechart,
|
|
93701
93433
|
children: /* @__PURE__ */ jsx("div", {
|
|
93702
|
-
className:
|
|
93434
|
+
className: styles$v.tablechartWrapper,
|
|
93703
93435
|
children: /* @__PURE__ */ jsx("div", {
|
|
93704
|
-
className:
|
|
93436
|
+
className: styles$v.tablechartContainer,
|
|
93705
93437
|
children: /* @__PURE__ */ jsxs("table", {
|
|
93706
|
-
className:
|
|
93438
|
+
className: styles$v.tablechartTable,
|
|
93707
93439
|
children: [/* @__PURE__ */ jsx("thead", {
|
|
93708
93440
|
children: /* @__PURE__ */ jsxs("tr", {
|
|
93709
|
-
className:
|
|
93441
|
+
className: styles$v.tablechartHeaderRow,
|
|
93710
93442
|
children: [/* @__PURE__ */ jsx("th", {
|
|
93711
|
-
className:
|
|
93443
|
+
className: styles$v.tableChartHeaderCol,
|
|
93712
93444
|
scope: "col",
|
|
93713
93445
|
children: /* @__PURE__ */ jsx(Text, {
|
|
93714
93446
|
styleClass: "font-14c",
|
|
@@ -93717,7 +93449,7 @@ const TableChart = ({
|
|
|
93717
93449
|
})
|
|
93718
93450
|
}, "num"), data == null ? void 0 : data.datasets.map((item) => {
|
|
93719
93451
|
return /* @__PURE__ */ jsx("th", {
|
|
93720
|
-
className:
|
|
93452
|
+
className: styles$v.tablechartHeaderCol,
|
|
93721
93453
|
scope: "col",
|
|
93722
93454
|
children: /* @__PURE__ */ jsx(Text, {
|
|
93723
93455
|
styleClass: "font-14c",
|
|
@@ -93729,9 +93461,9 @@ const TableChart = ({
|
|
|
93729
93461
|
})
|
|
93730
93462
|
}), /* @__PURE__ */ jsx("tbody", {
|
|
93731
93463
|
children: modifiedData.map((item, i2) => /* @__PURE__ */ jsx("tr", {
|
|
93732
|
-
className:
|
|
93464
|
+
className: styles$v.tablechartBodyRow,
|
|
93733
93465
|
children: item.map((d2, index) => /* @__PURE__ */ jsx("td", {
|
|
93734
|
-
className:
|
|
93466
|
+
className: styles$v.tablechartBodyCol,
|
|
93735
93467
|
children: /* @__PURE__ */ jsx(Text, {
|
|
93736
93468
|
styleClass: "font-14",
|
|
93737
93469
|
variant: "p",
|
|
@@ -94005,13 +93737,13 @@ const MetricChart = ({
|
|
|
94005
93737
|
children: "No chart selected"
|
|
94006
93738
|
});
|
|
94007
93739
|
};
|
|
94008
|
-
const modal = "
|
|
94009
|
-
const popup = "
|
|
94010
|
-
const header$4 = "
|
|
94011
|
-
const headerTitle = "
|
|
94012
|
-
const content = "
|
|
94013
|
-
const footer = "
|
|
94014
|
-
var styles$
|
|
93740
|
+
const modal = "_modal_ul4ir_1";
|
|
93741
|
+
const popup = "_popup_ul4ir_9";
|
|
93742
|
+
const header$4 = "_header_ul4ir_17";
|
|
93743
|
+
const headerTitle = "_headerTitle_ul4ir_25";
|
|
93744
|
+
const content = "_content_ul4ir_33";
|
|
93745
|
+
const footer = "_footer_ul4ir_41";
|
|
93746
|
+
var styles$u = {
|
|
94015
93747
|
modal,
|
|
94016
93748
|
popup,
|
|
94017
93749
|
header: header$4,
|
|
@@ -94019,18 +93751,18 @@ var styles$t = {
|
|
|
94019
93751
|
content,
|
|
94020
93752
|
footer
|
|
94021
93753
|
};
|
|
94022
|
-
var styles$
|
|
94023
|
-
"btn-primary": "_btn-
|
|
94024
|
-
"btn-secondary": "_btn-
|
|
94025
|
-
"btn-reject": "_btn-
|
|
94026
|
-
"btn-outlined": "_btn-
|
|
94027
|
-
"btn-tertiary": "_btn-
|
|
94028
|
-
"btn-default": "_btn-
|
|
94029
|
-
"btn-large": "_btn-
|
|
94030
|
-
"btn-small": "_btn-
|
|
94031
|
-
"btn-xs": "_btn-
|
|
94032
|
-
"btn-medium": "_btn-
|
|
94033
|
-
"btn-11rem": "_btn-
|
|
93754
|
+
var styles$t = {
|
|
93755
|
+
"btn-primary": "_btn-primary_1h5ze_1",
|
|
93756
|
+
"btn-secondary": "_btn-secondary_1h5ze_5",
|
|
93757
|
+
"btn-reject": "_btn-reject_1h5ze_9",
|
|
93758
|
+
"btn-outlined": "_btn-outlined_1h5ze_14",
|
|
93759
|
+
"btn-tertiary": "_btn-tertiary_1h5ze_18",
|
|
93760
|
+
"btn-default": "_btn-default_1h5ze_22",
|
|
93761
|
+
"btn-large": "_btn-large_1h5ze_25",
|
|
93762
|
+
"btn-small": "_btn-small_1h5ze_28",
|
|
93763
|
+
"btn-xs": "_btn-xs_1h5ze_31",
|
|
93764
|
+
"btn-medium": "_btn-medium_1h5ze_34",
|
|
93765
|
+
"btn-11rem": "_btn-11rem_1h5ze_38"
|
|
94034
93766
|
};
|
|
94035
93767
|
const Button = ({
|
|
94036
93768
|
isDisabled = false,
|
|
@@ -94042,7 +93774,7 @@ const Button = ({
|
|
|
94042
93774
|
onClick,
|
|
94043
93775
|
title: title2
|
|
94044
93776
|
}) => {
|
|
94045
|
-
const btnClasses = classNames(className, styles$
|
|
93777
|
+
const btnClasses = classNames(className, styles$t[`btn-${variant}`], size === "none" ? null : styles$t[`btn-${size}`]);
|
|
94046
93778
|
return /* @__PURE__ */ jsx("button", {
|
|
94047
93779
|
type: type3,
|
|
94048
93780
|
className: variant === "custom" ? className : btnClasses,
|
|
@@ -94080,18 +93812,18 @@ const Modal = ({
|
|
|
94080
93812
|
if (!isOpen)
|
|
94081
93813
|
return null;
|
|
94082
93814
|
return require$$2$1.createPortal(/* @__PURE__ */ jsx("div", {
|
|
94083
|
-
className: styles$
|
|
93815
|
+
className: styles$u.modal,
|
|
94084
93816
|
onClick: onClose,
|
|
94085
93817
|
children: /* @__PURE__ */ jsxs("div", {
|
|
94086
|
-
className: styles$
|
|
93818
|
+
className: styles$u.popup,
|
|
94087
93819
|
onClick: (e2) => {
|
|
94088
93820
|
e2.stopPropagation();
|
|
94089
93821
|
},
|
|
94090
93822
|
children: [/* @__PURE__ */ jsx("section", {
|
|
94091
|
-
className: styles$
|
|
93823
|
+
className: styles$u.header,
|
|
94092
93824
|
children: customHeader || /* @__PURE__ */ jsxs(Fragment, {
|
|
94093
93825
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
94094
|
-
className: styles$
|
|
93826
|
+
className: styles$u.headerTitle,
|
|
94095
93827
|
children: [icon2, headerTitle2]
|
|
94096
93828
|
}), /* @__PURE__ */ jsx(Button, {
|
|
94097
93829
|
variant: "custom",
|
|
@@ -94101,7 +93833,7 @@ const Modal = ({
|
|
|
94101
93833
|
})]
|
|
94102
93834
|
})
|
|
94103
93835
|
}), /* @__PURE__ */ jsx("section", {
|
|
94104
|
-
className: styles$
|
|
93836
|
+
className: styles$u.content,
|
|
94105
93837
|
children: children2
|
|
94106
93838
|
})]
|
|
94107
93839
|
})
|
|
@@ -94118,7 +93850,7 @@ const FullScreenChart = ({
|
|
|
94118
93850
|
onClose: onCancel,
|
|
94119
93851
|
headerTitle: "Chart Preview",
|
|
94120
93852
|
children: /* @__PURE__ */ jsx("div", {
|
|
94121
|
-
className: styles$
|
|
93853
|
+
className: styles$w.fullscreen,
|
|
94122
93854
|
children: chart && /* @__PURE__ */ jsx(MetricChart, {
|
|
94123
93855
|
labels: chart.labels,
|
|
94124
93856
|
data: chart.data,
|
|
@@ -94157,19 +93889,19 @@ const eosIconsLoading = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
|
94157
93889
|
})
|
|
94158
93890
|
})]
|
|
94159
93891
|
});
|
|
94160
|
-
const cardContainer = "
|
|
94161
|
-
const listHeader = "
|
|
94162
|
-
const metricName = "
|
|
94163
|
-
const info = "
|
|
94164
|
-
const csvBtn = "
|
|
94165
|
-
const infoTooltip = "
|
|
94166
|
-
const metricData = "
|
|
94167
|
-
const singleValueData = "
|
|
94168
|
-
const singleValue = "
|
|
94169
|
-
const noData$1 = "
|
|
94170
|
-
const loading = "
|
|
94171
|
-
const fullScreen = "
|
|
94172
|
-
var styles$
|
|
93892
|
+
const cardContainer = "_cardContainer_33mfg_1";
|
|
93893
|
+
const listHeader = "_listHeader_33mfg_9";
|
|
93894
|
+
const metricName = "_metricName_33mfg_17";
|
|
93895
|
+
const info = "_info_33mfg_25";
|
|
93896
|
+
const csvBtn = "_csvBtn_33mfg_33";
|
|
93897
|
+
const infoTooltip = "_infoTooltip_33mfg_41";
|
|
93898
|
+
const metricData = "_metricData_33mfg_57";
|
|
93899
|
+
const singleValueData = "_singleValueData_33mfg_65";
|
|
93900
|
+
const singleValue = "_singleValue_33mfg_65";
|
|
93901
|
+
const noData$1 = "_noData_33mfg_81";
|
|
93902
|
+
const loading = "_loading_33mfg_89";
|
|
93903
|
+
const fullScreen = "_fullScreen_33mfg_97";
|
|
93904
|
+
var styles$s = {
|
|
94173
93905
|
cardContainer,
|
|
94174
93906
|
listHeader,
|
|
94175
93907
|
metricName,
|
|
@@ -94183,8 +93915,247 @@ var styles$r = {
|
|
|
94183
93915
|
loading,
|
|
94184
93916
|
fullScreen
|
|
94185
93917
|
};
|
|
94186
|
-
const
|
|
94187
|
-
|
|
93918
|
+
const fetcher = (query, variables, options2) => {
|
|
93919
|
+
return async () => {
|
|
93920
|
+
const res = await fetch("https://backend.usedatabrain.com/v1/graphql", {
|
|
93921
|
+
method: "POST",
|
|
93922
|
+
headers: {
|
|
93923
|
+
"Content-Type": "application/json",
|
|
93924
|
+
"X-Hasura-Role": "anonymous",
|
|
93925
|
+
...options2
|
|
93926
|
+
},
|
|
93927
|
+
body: JSON.stringify({
|
|
93928
|
+
query,
|
|
93929
|
+
variables
|
|
93930
|
+
})
|
|
93931
|
+
});
|
|
93932
|
+
const json = await res.json();
|
|
93933
|
+
if (json.errors) {
|
|
93934
|
+
const { message } = json.errors[0];
|
|
93935
|
+
throw new Error(message);
|
|
93936
|
+
}
|
|
93937
|
+
return json.data;
|
|
93938
|
+
};
|
|
93939
|
+
};
|
|
93940
|
+
const CreateExternalMetricDocument = `
|
|
93941
|
+
mutation CreateExternalMetric($chartOptions: jsonb = "", $companyId: uuid = "", $companyIntegrationId: uuid = "", $description: String = "", $inputFields: jsonb = "", $integrationName: String = "", $metricId: String = "", $metricQuery: String = "", $name: String = "", $outputColumns: String = "", $query: String = "", $isLive: Boolean, $clientId: String = "", $isCreatedByClient: Boolean = false, $createdBy: String = "", $timeGrain: String = "", $externalDashboardIds: [externalDashboardMetrics_insert_input!] = {}, $selectedGroupBy: jsonb = [], $isEnableGroupBy: Boolean = false, $groupBy: jsonb = {}) {
|
|
93942
|
+
insert_externalMetrics_one(
|
|
93943
|
+
object: {chartOptions: $chartOptions, companyId: $companyId, companyIntegrationId: $companyIntegrationId, description: $description, inputFields: $inputFields, integrationName: $integrationName, metricId: $metricId, metricQuery: $metricQuery, name: $name, outputColumns: $outputColumns, query: $query, isLive: $isLive, clientId: $clientId, isCreatedByClient: $isCreatedByClient, createdBy: $createdBy, timeGrain: $timeGrain, externalDashboardMetrics: {data: $externalDashboardIds}, selectedGroupBy: $selectedGroupBy, isEnableGroupBy: $isEnableGroupBy, groupBy: $groupBy}
|
|
93944
|
+
) {
|
|
93945
|
+
id
|
|
93946
|
+
externalDashboardMetrics {
|
|
93947
|
+
externalDashboardId
|
|
93948
|
+
}
|
|
93949
|
+
}
|
|
93950
|
+
}
|
|
93951
|
+
`;
|
|
93952
|
+
const useCreateExternalMetricMutation = (options2) => useMutation(
|
|
93953
|
+
["CreateExternalMetric"],
|
|
93954
|
+
(variables) => fetcher(CreateExternalMetricDocument, variables)(),
|
|
93955
|
+
options2
|
|
93956
|
+
);
|
|
93957
|
+
const FetchColumnDataDocument = `
|
|
93958
|
+
mutation FetchColumnData($companyId: String = "", $tableName: String = "", $columnName: String = "") {
|
|
93959
|
+
fetchColumnData(
|
|
93960
|
+
input: {columnName: $columnName, companyId: $companyId, tableName: $tableName}
|
|
93961
|
+
) {
|
|
93962
|
+
data {
|
|
93963
|
+
label
|
|
93964
|
+
value
|
|
93965
|
+
}
|
|
93966
|
+
error {
|
|
93967
|
+
message
|
|
93968
|
+
}
|
|
93969
|
+
}
|
|
93970
|
+
}
|
|
93971
|
+
`;
|
|
93972
|
+
const useFetchColumnDataMutation = (options2) => useMutation(
|
|
93973
|
+
["FetchColumnData"],
|
|
93974
|
+
(variables) => fetcher(
|
|
93975
|
+
FetchColumnDataDocument,
|
|
93976
|
+
variables
|
|
93977
|
+
)(),
|
|
93978
|
+
options2
|
|
93979
|
+
);
|
|
93980
|
+
const GenerateDatasetMetricsDocument = `
|
|
93981
|
+
mutation GenerateDatasetMetrics($companyId: String = "", $userInputs: json = "") {
|
|
93982
|
+
generateDatasetMetrics(input: {companyId: $companyId, userInputs: $userInputs}) {
|
|
93983
|
+
error
|
|
93984
|
+
query
|
|
93985
|
+
result
|
|
93986
|
+
}
|
|
93987
|
+
}
|
|
93988
|
+
`;
|
|
93989
|
+
const useGenerateDatasetMetricsMutation = (options2) => useMutation(
|
|
93990
|
+
["GenerateDatasetMetrics"],
|
|
93991
|
+
(variables) => fetcher(GenerateDatasetMetricsDocument, variables)(),
|
|
93992
|
+
options2
|
|
93993
|
+
);
|
|
93994
|
+
const CompanyIntegrationDocument = `
|
|
93995
|
+
query CompanyIntegration($companyId: uuid = "") {
|
|
93996
|
+
companyIntegrations(where: {companyId: {_eq: $companyId}}) {
|
|
93997
|
+
companyId
|
|
93998
|
+
id
|
|
93999
|
+
integrationId
|
|
94000
|
+
name
|
|
94001
|
+
}
|
|
94002
|
+
}
|
|
94003
|
+
`;
|
|
94004
|
+
const useCompanyIntegrationQuery = (variables, options2) => useQuery(
|
|
94005
|
+
variables === void 0 ? ["CompanyIntegration"] : ["CompanyIntegration", variables],
|
|
94006
|
+
fetcher(
|
|
94007
|
+
CompanyIntegrationDocument,
|
|
94008
|
+
variables
|
|
94009
|
+
),
|
|
94010
|
+
options2
|
|
94011
|
+
);
|
|
94012
|
+
const CompanySubsetTableListDocument = `
|
|
94013
|
+
query CompanySubsetTableList($companyId: uuid = "") {
|
|
94014
|
+
companySubsetTables(where: {companyId: {_eq: $companyId}}) {
|
|
94015
|
+
tableList
|
|
94016
|
+
}
|
|
94017
|
+
}
|
|
94018
|
+
`;
|
|
94019
|
+
const useCompanySubsetTableListQuery = (variables, options2) => useQuery(
|
|
94020
|
+
variables === void 0 ? ["CompanySubsetTableList"] : ["CompanySubsetTableList", variables],
|
|
94021
|
+
fetcher(
|
|
94022
|
+
CompanySubsetTableListDocument,
|
|
94023
|
+
variables
|
|
94024
|
+
),
|
|
94025
|
+
options2
|
|
94026
|
+
);
|
|
94027
|
+
const EmbeddedDashboardMetricsDocument = `
|
|
94028
|
+
query EmbeddedDashboardMetrics($where: externalDashboardMetrics_bool_exp) {
|
|
94029
|
+
externalDashboardMetrics(where: $where) {
|
|
94030
|
+
externalMetricId
|
|
94031
|
+
externalDashboardId
|
|
94032
|
+
externalMetric {
|
|
94033
|
+
chartOptions
|
|
94034
|
+
clientId
|
|
94035
|
+
companyId
|
|
94036
|
+
companyIntegrationId
|
|
94037
|
+
createdAt
|
|
94038
|
+
createdBy
|
|
94039
|
+
description
|
|
94040
|
+
id
|
|
94041
|
+
inputFields
|
|
94042
|
+
integrationName
|
|
94043
|
+
isCreatedByClient
|
|
94044
|
+
isLive
|
|
94045
|
+
metricId
|
|
94046
|
+
metricQuery
|
|
94047
|
+
name
|
|
94048
|
+
outputColumns
|
|
94049
|
+
query
|
|
94050
|
+
resizeAttributes
|
|
94051
|
+
timeGrain
|
|
94052
|
+
updatedAt
|
|
94053
|
+
selectedGroupBy
|
|
94054
|
+
isEnableGroupBy
|
|
94055
|
+
groupBy
|
|
94056
|
+
}
|
|
94057
|
+
}
|
|
94058
|
+
}
|
|
94059
|
+
`;
|
|
94060
|
+
const useEmbeddedDashboardMetricsQuery = (variables, options2) => useQuery(
|
|
94061
|
+
variables === void 0 ? ["EmbeddedDashboardMetrics"] : ["EmbeddedDashboardMetrics", variables],
|
|
94062
|
+
fetcher(EmbeddedDashboardMetricsDocument, variables),
|
|
94063
|
+
options2
|
|
94064
|
+
);
|
|
94065
|
+
const GetExternalDashboardIdDocument = `
|
|
94066
|
+
query GetExternalDashboardId($externalDashboardId: String = "") {
|
|
94067
|
+
externalDashboards(where: {externalDashboardId: {_eq: $externalDashboardId}}) {
|
|
94068
|
+
id
|
|
94069
|
+
filters
|
|
94070
|
+
}
|
|
94071
|
+
}
|
|
94072
|
+
`;
|
|
94073
|
+
const useGetExternalDashboardIdQuery = (variables, options2) => useQuery(
|
|
94074
|
+
variables === void 0 ? ["GetExternalDashboardId"] : ["GetExternalDashboardId", variables],
|
|
94075
|
+
fetcher(
|
|
94076
|
+
GetExternalDashboardIdDocument,
|
|
94077
|
+
variables
|
|
94078
|
+
),
|
|
94079
|
+
options2
|
|
94080
|
+
);
|
|
94081
|
+
const ExternalDashboardListDocument = `
|
|
94082
|
+
query ExternalDashboardList($companyId: uuid = "") {
|
|
94083
|
+
externalDashboards(where: {companyId: {_eq: $companyId}}) {
|
|
94084
|
+
externalDashboardId
|
|
94085
|
+
name
|
|
94086
|
+
id
|
|
94087
|
+
}
|
|
94088
|
+
}
|
|
94089
|
+
`;
|
|
94090
|
+
const useExternalDashboardListQuery = (variables, options2) => useQuery(
|
|
94091
|
+
variables === void 0 ? ["ExternalDashboardList"] : ["ExternalDashboardList", variables],
|
|
94092
|
+
fetcher(
|
|
94093
|
+
ExternalDashboardListDocument,
|
|
94094
|
+
variables
|
|
94095
|
+
),
|
|
94096
|
+
options2
|
|
94097
|
+
);
|
|
94098
|
+
const GuestTokenParamsDocument = `
|
|
94099
|
+
query GuestTokenParams($id: uuid = "") {
|
|
94100
|
+
guestTokens_by_pk(id: $id) {
|
|
94101
|
+
clientId
|
|
94102
|
+
companyId
|
|
94103
|
+
id
|
|
94104
|
+
params
|
|
94105
|
+
}
|
|
94106
|
+
}
|
|
94107
|
+
`;
|
|
94108
|
+
const useGuestTokenParamsQuery = (variables, options2) => useQuery(
|
|
94109
|
+
variables === void 0 ? ["GuestTokenParams"] : ["GuestTokenParams", variables],
|
|
94110
|
+
fetcher(
|
|
94111
|
+
GuestTokenParamsDocument,
|
|
94112
|
+
variables
|
|
94113
|
+
),
|
|
94114
|
+
options2
|
|
94115
|
+
);
|
|
94116
|
+
const PreviewTableDocument = `
|
|
94117
|
+
mutation PreviewTable($companyId: String = "", $tableName: String = "", $limit: Int = 10) {
|
|
94118
|
+
previewTable(
|
|
94119
|
+
input: {companyId: $companyId, tableName: $tableName, limit: $limit}
|
|
94120
|
+
) {
|
|
94121
|
+
data {
|
|
94122
|
+
data
|
|
94123
|
+
isError
|
|
94124
|
+
name
|
|
94125
|
+
}
|
|
94126
|
+
error {
|
|
94127
|
+
message
|
|
94128
|
+
}
|
|
94129
|
+
}
|
|
94130
|
+
}
|
|
94131
|
+
`;
|
|
94132
|
+
const usePreviewTableMutation = (options2) => useMutation(
|
|
94133
|
+
["PreviewTable"],
|
|
94134
|
+
(variables) => fetcher(
|
|
94135
|
+
PreviewTableDocument,
|
|
94136
|
+
variables
|
|
94137
|
+
)(),
|
|
94138
|
+
options2
|
|
94139
|
+
);
|
|
94140
|
+
const QueryExternalMetricDocument = `
|
|
94141
|
+
query QueryExternalMetric($id: String = "", $clientId: String = "", $filterValues: json = "", $globalFilters: json = []) {
|
|
94142
|
+
externalMetricQuery(
|
|
94143
|
+
input: {externalMetricId: $id, clientId: $clientId, filterValues: $filterValues, globalFilters: $globalFilters}
|
|
94144
|
+
) {
|
|
94145
|
+
data
|
|
94146
|
+
}
|
|
94147
|
+
}
|
|
94148
|
+
`;
|
|
94149
|
+
const useQueryExternalMetricQuery = (variables, options2) => useQuery(
|
|
94150
|
+
variables === void 0 ? ["QueryExternalMetric"] : ["QueryExternalMetric", variables],
|
|
94151
|
+
fetcher(
|
|
94152
|
+
QueryExternalMetricDocument,
|
|
94153
|
+
variables
|
|
94154
|
+
),
|
|
94155
|
+
options2
|
|
94156
|
+
);
|
|
94157
|
+
const csvlink = "_csvlink_kxdgj_1";
|
|
94158
|
+
var styles$r = {
|
|
94188
94159
|
csvlink
|
|
94189
94160
|
};
|
|
94190
94161
|
const objectArrayToCsvString = (array) => {
|
|
@@ -94221,7 +94192,7 @@ const CsvDownloadButton = ({
|
|
|
94221
94192
|
return /* @__PURE__ */ jsx("a", {
|
|
94222
94193
|
href: objectArrayToCsvString(data),
|
|
94223
94194
|
download: `${fileName}.csv`,
|
|
94224
|
-
className: classNames(styles$
|
|
94195
|
+
className: classNames(styles$r.csvlink, className),
|
|
94225
94196
|
target: "_self",
|
|
94226
94197
|
children: /* @__PURE__ */ jsx(laFileDownload, {})
|
|
94227
94198
|
});
|
|
@@ -94484,22 +94455,22 @@ const MetricCard = ({
|
|
|
94484
94455
|
};
|
|
94485
94456
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
94486
94457
|
children: /* @__PURE__ */ jsxs("div", {
|
|
94487
|
-
className: styles$
|
|
94458
|
+
className: styles$s.cardContainer,
|
|
94488
94459
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
94489
|
-
className: styles$
|
|
94460
|
+
className: styles$s.listHeader,
|
|
94490
94461
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
94491
94462
|
variant: "h1",
|
|
94492
94463
|
styleClass: "primary",
|
|
94493
|
-
className: styles$
|
|
94464
|
+
className: styles$s.metricName,
|
|
94494
94465
|
children: metricItem.name
|
|
94495
94466
|
}), /* @__PURE__ */ jsxs("span", {
|
|
94496
|
-
className: styles$
|
|
94467
|
+
className: styles$s.info,
|
|
94497
94468
|
children: [/* @__PURE__ */ jsx(akarIconsInfo, {}), /* @__PURE__ */ jsx("span", {
|
|
94498
|
-
className: styles$
|
|
94469
|
+
className: styles$s.infoTooltip,
|
|
94499
94470
|
children: metricItem.description || metricItem.name
|
|
94500
94471
|
})]
|
|
94501
94472
|
}), /* @__PURE__ */ jsx(Button, {
|
|
94502
|
-
className: styles$
|
|
94473
|
+
className: styles$s.fullScreen,
|
|
94503
94474
|
type: "button",
|
|
94504
94475
|
variant: "secondary",
|
|
94505
94476
|
onClick: () => onMaximize({
|
|
@@ -94521,12 +94492,12 @@ const MetricCard = ({
|
|
|
94521
94492
|
children: /* @__PURE__ */ jsx(ggMinimize, {})
|
|
94522
94493
|
})]
|
|
94523
94494
|
}), chartType2 && /* @__PURE__ */ jsxs("div", {
|
|
94524
|
-
className: styles$
|
|
94495
|
+
className: styles$s.metricData,
|
|
94525
94496
|
children: [!isQueryLoading && !dataDb.length ? /* @__PURE__ */ jsx("div", {
|
|
94526
|
-
className: styles$
|
|
94497
|
+
className: styles$s.noData,
|
|
94527
94498
|
children: "No Data Available"
|
|
94528
94499
|
}) : null, isQueryLoading && /* @__PURE__ */ jsx("div", {
|
|
94529
|
-
className: styles$
|
|
94500
|
+
className: styles$s.loading,
|
|
94530
94501
|
children: /* @__PURE__ */ jsx(eosIconsLoading, {
|
|
94531
94502
|
style: {
|
|
94532
94503
|
width: "50px",
|
|
@@ -94538,7 +94509,7 @@ const MetricCard = ({
|
|
|
94538
94509
|
children: [/* @__PURE__ */ jsx(CsvDownloadButton$1, {
|
|
94539
94510
|
data: dataDb,
|
|
94540
94511
|
fileName: metricItem.name,
|
|
94541
|
-
className: styles$
|
|
94512
|
+
className: styles$s.csvBtn
|
|
94542
94513
|
}), /* @__PURE__ */ jsx(MetricChart, {
|
|
94543
94514
|
labels: labels2,
|
|
94544
94515
|
data: {
|
|
@@ -94628,23 +94599,23 @@ const SingleValueCard = ({
|
|
|
94628
94599
|
}, [singleValueData2, valueLength]);
|
|
94629
94600
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
94630
94601
|
children: /* @__PURE__ */ jsxs("div", {
|
|
94631
|
-
className: styles$
|
|
94602
|
+
className: styles$s.cardContainer,
|
|
94632
94603
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
94633
|
-
className: styles$
|
|
94604
|
+
className: styles$s.listHeader,
|
|
94634
94605
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
94635
94606
|
variant: "h1",
|
|
94636
94607
|
styleClass: "primary",
|
|
94637
|
-
className: styles$
|
|
94608
|
+
className: styles$s.metricName,
|
|
94638
94609
|
children: metricItem.name
|
|
94639
94610
|
}), /* @__PURE__ */ jsxs("span", {
|
|
94640
|
-
className: styles$
|
|
94611
|
+
className: styles$s.info,
|
|
94641
94612
|
children: [/* @__PURE__ */ jsx(akarIconsInfo, {}), /* @__PURE__ */ jsx("span", {
|
|
94642
|
-
className: styles$
|
|
94613
|
+
className: styles$s.infoTooltip,
|
|
94643
94614
|
children: metricItem.description || metricItem.name
|
|
94644
94615
|
})]
|
|
94645
94616
|
})]
|
|
94646
94617
|
}), chartType2 && /* @__PURE__ */ jsx("div", {
|
|
94647
|
-
className: `${styles$
|
|
94618
|
+
className: `${styles$s.metricData} ${styles$s.singleValueData}`,
|
|
94648
94619
|
children: isQueryLoading ? /* @__PURE__ */ jsx(eosIconsLoading, {
|
|
94649
94620
|
style: {
|
|
94650
94621
|
width: "50px",
|
|
@@ -94655,7 +94626,7 @@ const SingleValueCard = ({
|
|
|
94655
94626
|
children: singleValueData2.length ? /* @__PURE__ */ jsx(Text, {
|
|
94656
94627
|
styleClass: "font-14c",
|
|
94657
94628
|
variant: "p",
|
|
94658
|
-
className: styles$
|
|
94629
|
+
className: styles$s.singleValue,
|
|
94659
94630
|
children: valueLength > 3 ? convertedValue : singleValueData2[0]
|
|
94660
94631
|
}) : "No Data Available"
|
|
94661
94632
|
})
|
|
@@ -94665,23 +94636,18 @@ const SingleValueCard = ({
|
|
|
94665
94636
|
};
|
|
94666
94637
|
const GridLayout = reactGridLayout.exports.WidthProvider(reactGridLayout.exports.Responsive);
|
|
94667
94638
|
const ExternalMetricList = ({
|
|
94639
|
+
chartColors,
|
|
94668
94640
|
globalFilters,
|
|
94669
94641
|
client,
|
|
94670
|
-
company,
|
|
94671
94642
|
isLiveMode,
|
|
94672
94643
|
params,
|
|
94673
94644
|
externalDashboardMetrics,
|
|
94674
|
-
isMetricListLoading
|
|
94645
|
+
isMetricListLoading,
|
|
94646
|
+
breakpoint,
|
|
94647
|
+
layoutCols
|
|
94675
94648
|
}) => {
|
|
94676
94649
|
const [isFullScreen, setFullScreen] = useState(false);
|
|
94677
94650
|
const [fullScreenChart, setFullScreenChart] = useState();
|
|
94678
|
-
const {
|
|
94679
|
-
data: themeData
|
|
94680
|
-
} = useGetExternalDashboardClientThemeQuery({
|
|
94681
|
-
companyId: company,
|
|
94682
|
-
clientId: client
|
|
94683
|
-
});
|
|
94684
|
-
const theme2 = useMemo(() => themeData == null ? void 0 : themeData.externalDashboardThemes[0], [themeData == null ? void 0 : themeData.externalDashboardThemes[0]]);
|
|
94685
94651
|
const metricListData = externalDashboardMetrics == null ? void 0 : externalDashboardMetrics.map((data) => data.externalMetric);
|
|
94686
94652
|
const adminMetrics = metricListData == null ? void 0 : metricListData.filter((data) => !data.isCreatedByClient);
|
|
94687
94653
|
const clientMetrics = metricListData == null ? void 0 : metricListData.filter((data) => data.isCreatedByClient && data.clientId === client);
|
|
@@ -94693,7 +94659,7 @@ const ExternalMetricList = ({
|
|
|
94693
94659
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
94694
94660
|
children: metricsList.length ? /* @__PURE__ */ jsxs(Fragment, {
|
|
94695
94661
|
children: [/* @__PURE__ */ jsx("div", {
|
|
94696
|
-
className: styles$
|
|
94662
|
+
className: styles$y["MetricList-container"],
|
|
94697
94663
|
children: /* @__PURE__ */ jsx(GridLayout, {
|
|
94698
94664
|
layouts: {
|
|
94699
94665
|
lg: metricsList.map(({
|
|
@@ -94715,14 +94681,14 @@ const ExternalMetricList = ({
|
|
|
94715
94681
|
isDroppable: false,
|
|
94716
94682
|
rowHeight: 30,
|
|
94717
94683
|
width: 1200,
|
|
94718
|
-
breakpoints: {
|
|
94684
|
+
breakpoints: breakpoint != null ? breakpoint : {
|
|
94719
94685
|
lg: 1200,
|
|
94720
94686
|
md: 996,
|
|
94721
94687
|
sm: 768,
|
|
94722
94688
|
xs: 480,
|
|
94723
94689
|
xxs: 0
|
|
94724
94690
|
},
|
|
94725
|
-
cols: {
|
|
94691
|
+
cols: layoutCols != null ? layoutCols : {
|
|
94726
94692
|
lg: 12,
|
|
94727
94693
|
md: 10,
|
|
94728
94694
|
sm: 6,
|
|
@@ -94730,7 +94696,7 @@ const ExternalMetricList = ({
|
|
|
94730
94696
|
xxs: 2
|
|
94731
94697
|
},
|
|
94732
94698
|
children: metricsList.map((metricItem) => /* @__PURE__ */ jsx("div", {
|
|
94733
|
-
className: styles$
|
|
94699
|
+
className: styles$y["MetricList-wrapper"],
|
|
94734
94700
|
children: metricItem.chartOptions.chartType === "single value" ? /* @__PURE__ */ jsx(SingleValueCard, {
|
|
94735
94701
|
metricItem,
|
|
94736
94702
|
client,
|
|
@@ -94744,7 +94710,7 @@ const ExternalMetricList = ({
|
|
|
94744
94710
|
},
|
|
94745
94711
|
client,
|
|
94746
94712
|
param: params == null ? void 0 : params.find((obj) => obj.metricId === metricItem.metricId),
|
|
94747
|
-
colors:
|
|
94713
|
+
colors: chartColors,
|
|
94748
94714
|
globalFilters
|
|
94749
94715
|
})
|
|
94750
94716
|
}, metricItem.id))
|
|
@@ -94756,9 +94722,9 @@ const ExternalMetricList = ({
|
|
|
94756
94722
|
})]
|
|
94757
94723
|
}) : /* @__PURE__ */ jsx(Fragment, {
|
|
94758
94724
|
children: !isMetricListLoading ? /* @__PURE__ */ jsx("div", {
|
|
94759
|
-
className: styles$
|
|
94725
|
+
className: styles$y["noMetric-container"],
|
|
94760
94726
|
children: /* @__PURE__ */ jsx("div", {
|
|
94761
|
-
className: styles$
|
|
94727
|
+
className: styles$y["noMetric-wrapper"],
|
|
94762
94728
|
children: /* @__PURE__ */ jsx(Text, {
|
|
94763
94729
|
variant: "h2",
|
|
94764
94730
|
styleClass: "primary",
|
|
@@ -94766,7 +94732,7 @@ const ExternalMetricList = ({
|
|
|
94766
94732
|
})
|
|
94767
94733
|
})
|
|
94768
94734
|
}) : /* @__PURE__ */ jsx("div", {
|
|
94769
|
-
className: styles$
|
|
94735
|
+
className: styles$y["alt-container"],
|
|
94770
94736
|
children: /* @__PURE__ */ jsx(eosIconsLoading, {
|
|
94771
94737
|
style: {
|
|
94772
94738
|
width: "50px",
|
|
@@ -94779,12 +94745,12 @@ const ExternalMetricList = ({
|
|
|
94779
94745
|
});
|
|
94780
94746
|
};
|
|
94781
94747
|
var ExternalMetricList$1 = React__default.memo(ExternalMetricList);
|
|
94782
|
-
var styles$
|
|
94783
|
-
"header-container": "_header-
|
|
94784
|
-
"btn-container": "_btn-
|
|
94785
|
-
"back-btn": "_back-
|
|
94786
|
-
"sql-btn": "_sql-
|
|
94787
|
-
"save-btn": "_save-
|
|
94748
|
+
var styles$q = {
|
|
94749
|
+
"header-container": "_header-container_pimqu_1",
|
|
94750
|
+
"btn-container": "_btn-container_pimqu_5",
|
|
94751
|
+
"back-btn": "_back-btn_pimqu_9",
|
|
94752
|
+
"sql-btn": "_sql-btn_pimqu_13",
|
|
94753
|
+
"save-btn": "_save-btn_pimqu_17"
|
|
94788
94754
|
};
|
|
94789
94755
|
const akarIconsArrowLeft = (props) => /* @__PURE__ */ jsx("svg", {
|
|
94790
94756
|
viewBox: "0 0 24 24",
|
|
@@ -94837,15 +94803,15 @@ const Header = ({
|
|
|
94837
94803
|
setShowSqlModal
|
|
94838
94804
|
}) => {
|
|
94839
94805
|
return /* @__PURE__ */ jsxs("div", {
|
|
94840
|
-
className: styles$
|
|
94806
|
+
className: styles$q["header-container"],
|
|
94841
94807
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
94842
|
-
className: styles$
|
|
94808
|
+
className: styles$q["btn-container"],
|
|
94843
94809
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
94844
94810
|
type: "button",
|
|
94845
94811
|
variant: "custom",
|
|
94846
94812
|
size: "default",
|
|
94847
94813
|
onClick: () => setShowMetricCreateModal(false),
|
|
94848
|
-
className: styles$
|
|
94814
|
+
className: styles$q["back-btn"],
|
|
94849
94815
|
children: /* @__PURE__ */ jsx(akarIconsArrowLeft, {})
|
|
94850
94816
|
}), /* @__PURE__ */ jsx(Text, {
|
|
94851
94817
|
variant: "h1",
|
|
@@ -94853,18 +94819,18 @@ const Header = ({
|
|
|
94853
94819
|
children: Heading
|
|
94854
94820
|
})]
|
|
94855
94821
|
}), /* @__PURE__ */ jsxs("div", {
|
|
94856
|
-
className: styles$
|
|
94822
|
+
className: styles$q["btn-container"],
|
|
94857
94823
|
children: [/* @__PURE__ */ jsxs(Button, {
|
|
94858
94824
|
type: "button",
|
|
94859
94825
|
variant: "custom",
|
|
94860
|
-
className: styles$
|
|
94826
|
+
className: styles$q["sql-btn"],
|
|
94861
94827
|
onClick: () => setShowSqlModal(true),
|
|
94862
94828
|
isDisabled: isDisableSqlBtn,
|
|
94863
94829
|
children: [/* @__PURE__ */ jsx(materialSymbolsCode, {}), "SQL"]
|
|
94864
94830
|
}), /* @__PURE__ */ jsxs(Button, {
|
|
94865
94831
|
type: "submit",
|
|
94866
94832
|
variant: "primary",
|
|
94867
|
-
className: styles$
|
|
94833
|
+
className: styles$q["save-btn"],
|
|
94868
94834
|
isDisabled: isDisableSaveBtn,
|
|
94869
94835
|
onClick: () => setShowSaveMetricModal(true),
|
|
94870
94836
|
children: [/* @__PURE__ */ jsx(lucideSave, {}), "Save to Dashboard"]
|
|
@@ -94872,36 +94838,40 @@ const Header = ({
|
|
|
94872
94838
|
})]
|
|
94873
94839
|
});
|
|
94874
94840
|
};
|
|
94875
|
-
|
|
94876
|
-
|
|
94877
|
-
|
|
94878
|
-
"
|
|
94841
|
+
const floatingCreateButton = "_floatingCreateButton_6ovk2_13";
|
|
94842
|
+
const floatingCreateButtonIcon = "_floatingCreateButtonIcon_6ovk2_17";
|
|
94843
|
+
var styles$p = {
|
|
94844
|
+
"create-btn": "_create-btn_6ovk2_1",
|
|
94845
|
+
"modal-container": "_modal-container_6ovk2_5",
|
|
94846
|
+
"query-modal": "_query-modal_6ovk2_9",
|
|
94847
|
+
floatingCreateButton,
|
|
94848
|
+
floatingCreateButtonIcon
|
|
94879
94849
|
};
|
|
94880
94850
|
const container$d = "_container_hveoi_1";
|
|
94881
94851
|
const header$3 = "_header_hveoi_5";
|
|
94882
94852
|
const wrapper$3 = "_wrapper_hveoi_9";
|
|
94883
94853
|
const column = "_column_hveoi_17";
|
|
94884
|
-
var styles$
|
|
94854
|
+
var styles$o = {
|
|
94885
94855
|
container: container$d,
|
|
94886
94856
|
header: header$3,
|
|
94887
94857
|
wrapper: wrapper$3,
|
|
94888
94858
|
"col-container": "_col-container_hveoi_13",
|
|
94889
94859
|
column
|
|
94890
94860
|
};
|
|
94891
|
-
const container$c = "
|
|
94892
|
-
const wrapper$2 = "
|
|
94893
|
-
const label$3 = "
|
|
94894
|
-
const floatingLabel = "
|
|
94895
|
-
const dropdown$1 = "
|
|
94896
|
-
const options = "
|
|
94897
|
-
const checkedOption = "
|
|
94898
|
-
const option$1 = "
|
|
94899
|
-
const icon$1 = "
|
|
94900
|
-
const text$1 = "
|
|
94901
|
-
const floatingText = "
|
|
94902
|
-
const search = "
|
|
94903
|
-
const loadMore$1 = "
|
|
94904
|
-
var styles$
|
|
94861
|
+
const container$c = "_container_np4zl_1";
|
|
94862
|
+
const wrapper$2 = "_wrapper_np4zl_5";
|
|
94863
|
+
const label$3 = "_label_np4zl_9";
|
|
94864
|
+
const floatingLabel = "_floatingLabel_np4zl_13";
|
|
94865
|
+
const dropdown$1 = "_dropdown_np4zl_17";
|
|
94866
|
+
const options = "_options_np4zl_21";
|
|
94867
|
+
const checkedOption = "_checkedOption_np4zl_25";
|
|
94868
|
+
const option$1 = "_option_np4zl_21";
|
|
94869
|
+
const icon$1 = "_icon_np4zl_33";
|
|
94870
|
+
const text$1 = "_text_np4zl_37";
|
|
94871
|
+
const floatingText = "_floatingText_np4zl_41";
|
|
94872
|
+
const search = "_search_np4zl_45";
|
|
94873
|
+
const loadMore$1 = "_loadMore_np4zl_49";
|
|
94874
|
+
var styles$n = {
|
|
94905
94875
|
container: container$c,
|
|
94906
94876
|
wrapper: wrapper$2,
|
|
94907
94877
|
label: label$3,
|
|
@@ -96381,9 +96351,9 @@ function useForm(props = {}) {
|
|
|
96381
96351
|
_formControl.current.formState = getProxyFormState(formState, control);
|
|
96382
96352
|
return _formControl.current;
|
|
96383
96353
|
}
|
|
96384
|
-
var styles$
|
|
96385
|
-
"searchTab-container": "_searchTab-
|
|
96386
|
-
"searchTab-input": "_searchTab-
|
|
96354
|
+
var styles$m = {
|
|
96355
|
+
"searchTab-container": "_searchTab-container_1peao_1",
|
|
96356
|
+
"searchTab-input": "_searchTab-input_1peao_5"
|
|
96387
96357
|
};
|
|
96388
96358
|
const SearchTab = ({
|
|
96389
96359
|
setSearchKeyword,
|
|
@@ -96398,13 +96368,13 @@ const SearchTab = ({
|
|
|
96398
96368
|
setSearchKeyword(keyword == null ? void 0 : keyword.toLowerCase());
|
|
96399
96369
|
}, [setSearchKeyword, watch, keyword]);
|
|
96400
96370
|
return /* @__PURE__ */ jsx("div", {
|
|
96401
|
-
className: `${styles$
|
|
96371
|
+
className: `${styles$m["searchTab-container"]} ${className}`,
|
|
96402
96372
|
children: /* @__PURE__ */ jsx("form", {
|
|
96403
|
-
className: styles$
|
|
96373
|
+
className: styles$m["searchTab-wrapper"],
|
|
96404
96374
|
children: /* @__PURE__ */ jsx("input", {
|
|
96405
96375
|
placeholder: "Search here...",
|
|
96406
96376
|
...register2("searchKeyword"),
|
|
96407
|
-
className: styles$
|
|
96377
|
+
className: styles$m["searchTab-input"]
|
|
96408
96378
|
})
|
|
96409
96379
|
})
|
|
96410
96380
|
});
|
|
@@ -96476,40 +96446,40 @@ const FloatingDropDown = ({
|
|
|
96476
96446
|
onOutsideClick: () => setIsShow(false)
|
|
96477
96447
|
});
|
|
96478
96448
|
return /* @__PURE__ */ jsxs("div", {
|
|
96479
|
-
className: classNames(styles$
|
|
96449
|
+
className: classNames(styles$n.container, className),
|
|
96480
96450
|
ref: wrapperRef,
|
|
96481
96451
|
children: [label2 ? /* @__PURE__ */ jsx(Text, {
|
|
96482
96452
|
variant: "span",
|
|
96483
96453
|
styleClass: labelVariant === "floating" ? "custom" : "font-14",
|
|
96484
|
-
className: `${styles$
|
|
96454
|
+
className: `${styles$n.label} ${labelVariant === "floating" ? styles$n.floatingLabel : ""}`,
|
|
96485
96455
|
children: label2
|
|
96486
96456
|
}) : null, /* @__PURE__ */ jsxs(Button, {
|
|
96487
96457
|
type: "button",
|
|
96488
96458
|
variant: "custom",
|
|
96489
96459
|
isDisabled,
|
|
96490
|
-
className: styles$
|
|
96460
|
+
className: styles$n.wrapper,
|
|
96491
96461
|
onClick: () => setIsShow(!isShow),
|
|
96492
96462
|
children: [/* @__PURE__ */ jsxs(Text, {
|
|
96493
96463
|
variant: "p",
|
|
96494
96464
|
styleClass: "font-14",
|
|
96495
|
-
className: `${styles$
|
|
96465
|
+
className: `${styles$n.text} ${labelVariant === "floating" ? styles$n.floatingText : ""}`,
|
|
96496
96466
|
children: [Icon && /* @__PURE__ */ jsx(Icon, {
|
|
96497
|
-
className: styles$
|
|
96467
|
+
className: styles$n.icon
|
|
96498
96468
|
}), selectedOption.label || "Select An Option"]
|
|
96499
96469
|
}), /* @__PURE__ */ jsx(materialSymbolsKeyboardArrowDown, {})]
|
|
96500
96470
|
}), isShow && !isDisabled && /* @__PURE__ */ jsxs("div", {
|
|
96501
|
-
className: styles$
|
|
96471
|
+
className: styles$n.dropdown,
|
|
96502
96472
|
children: [isSearchEnabled && /* @__PURE__ */ jsx(SearchTab, {
|
|
96503
|
-
className: styles$
|
|
96473
|
+
className: styles$n.search,
|
|
96504
96474
|
setSearchKeyword
|
|
96505
96475
|
}), /* @__PURE__ */ jsxs("div", {
|
|
96506
|
-
className: styles$
|
|
96476
|
+
className: styles$n.options,
|
|
96507
96477
|
children: [(searchKeyword ? options2.filter((opt) => opt.label.toLowerCase().includes(searchKeyword)) : options2.slice(0, limit)).map((option2) => {
|
|
96508
96478
|
const isSelected = option2.value === selectedOption.value;
|
|
96509
96479
|
return /* @__PURE__ */ jsx(Button, {
|
|
96510
96480
|
type: "button",
|
|
96511
96481
|
variant: "custom",
|
|
96512
|
-
className: isSelected ? styles$
|
|
96482
|
+
className: isSelected ? styles$n.checkedOption : styles$n.option,
|
|
96513
96483
|
onClick: () => {
|
|
96514
96484
|
onChange(option2);
|
|
96515
96485
|
setIsShow(false);
|
|
@@ -96520,7 +96490,7 @@ const FloatingDropDown = ({
|
|
|
96520
96490
|
variant: "secondary",
|
|
96521
96491
|
type: "button",
|
|
96522
96492
|
onClick: () => setLimit((prev) => prev + 20),
|
|
96523
|
-
className: styles$
|
|
96493
|
+
className: styles$n.loadMore,
|
|
96524
96494
|
children: "Load More"
|
|
96525
96495
|
})]
|
|
96526
96496
|
}), children2]
|
|
@@ -96547,18 +96517,18 @@ const MultiFloatingDropDown = React__default.memo(({
|
|
|
96547
96517
|
onOutsideClick: () => setIsShow(false)
|
|
96548
96518
|
});
|
|
96549
96519
|
return /* @__PURE__ */ jsxs("div", {
|
|
96550
|
-
className: classNames(styles$
|
|
96520
|
+
className: classNames(styles$n.container, className),
|
|
96551
96521
|
ref: wrapperRef,
|
|
96552
96522
|
children: [label2 ? /* @__PURE__ */ jsx(Text, {
|
|
96553
96523
|
variant: "span",
|
|
96554
96524
|
styleClass: labelVariant === "floating" ? "custom" : "font-14",
|
|
96555
|
-
className: `${styles$
|
|
96525
|
+
className: `${styles$n.label} ${labelVariant === "floating" ? "absolute left-2 top-1 text-xs" : ""}`,
|
|
96556
96526
|
children: label2
|
|
96557
96527
|
}) : null, /* @__PURE__ */ jsxs(Button, {
|
|
96558
96528
|
type: "button",
|
|
96559
96529
|
variant: "custom",
|
|
96560
96530
|
isDisabled,
|
|
96561
|
-
className: styles$
|
|
96531
|
+
className: styles$n.wrapper,
|
|
96562
96532
|
onClick: () => setIsShow(!isShow),
|
|
96563
96533
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
96564
96534
|
variant: "p",
|
|
@@ -96567,18 +96537,18 @@ const MultiFloatingDropDown = React__default.memo(({
|
|
|
96567
96537
|
children: "Select 1 or more option"
|
|
96568
96538
|
}), /* @__PURE__ */ jsx(materialSymbolsKeyboardArrowDown, {})]
|
|
96569
96539
|
}), isShow && !isDisabled && /* @__PURE__ */ jsxs("div", {
|
|
96570
|
-
className: styles$
|
|
96540
|
+
className: styles$n.dropdown,
|
|
96571
96541
|
children: [isSearchEnabled && /* @__PURE__ */ jsx(SearchTab, {
|
|
96572
96542
|
className: "p-2 mb-3",
|
|
96573
96543
|
setSearchKeyword
|
|
96574
96544
|
}), /* @__PURE__ */ jsxs("div", {
|
|
96575
|
-
className: styles$
|
|
96545
|
+
className: styles$n.options,
|
|
96576
96546
|
children: [(searchKeyword ? options2.filter((opt) => opt.label.toLowerCase().includes(searchKeyword)) : options2.slice(0, limit)).map((option2) => {
|
|
96577
96547
|
const isSelected = !!selectedOptions.find((opt) => opt.value === option2.value);
|
|
96578
96548
|
return /* @__PURE__ */ jsxs(Button, {
|
|
96579
96549
|
type: "button",
|
|
96580
96550
|
variant: "custom",
|
|
96581
|
-
className: isSelected ? styles$
|
|
96551
|
+
className: isSelected ? styles$n.checkedOption : styles$n.option,
|
|
96582
96552
|
onClick: () => {
|
|
96583
96553
|
const updatedOptions = isSelected ? selectedOptions.filter((opt) => opt.value !== option2.value) : [...selectedOptions, option2];
|
|
96584
96554
|
onChange(updatedOptions);
|
|
@@ -96829,9 +96799,9 @@ const Dataset = ({
|
|
|
96829
96799
|
columnList
|
|
96830
96800
|
}) => {
|
|
96831
96801
|
return /* @__PURE__ */ jsxs("div", {
|
|
96832
|
-
className: styles$
|
|
96802
|
+
className: styles$o.container,
|
|
96833
96803
|
children: [/* @__PURE__ */ jsx("div", {
|
|
96834
|
-
className: styles$
|
|
96804
|
+
className: styles$o.header,
|
|
96835
96805
|
children: /* @__PURE__ */ jsx(FloatingDropDown$1, {
|
|
96836
96806
|
onChange: setselectTable,
|
|
96837
96807
|
selectedOption: selectTable,
|
|
@@ -96840,44 +96810,44 @@ const Dataset = ({
|
|
|
96840
96810
|
labelVariant: "static"
|
|
96841
96811
|
})
|
|
96842
96812
|
}), /* @__PURE__ */ jsxs("div", {
|
|
96843
|
-
className: styles$
|
|
96813
|
+
className: styles$o.wrapper,
|
|
96844
96814
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
96845
96815
|
variant: "h1",
|
|
96846
96816
|
styleClass: "primary",
|
|
96847
96817
|
children: "Columns"
|
|
96848
96818
|
}), /* @__PURE__ */ jsx("div", {
|
|
96849
|
-
className: styles$
|
|
96819
|
+
className: styles$o["col-container"],
|
|
96850
96820
|
children: columnList.map(({
|
|
96851
|
-
|
|
96821
|
+
as,
|
|
96852
96822
|
datatype
|
|
96853
96823
|
}) => /* @__PURE__ */ jsxs("div", {
|
|
96854
|
-
className: styles$
|
|
96824
|
+
className: styles$o.column,
|
|
96855
96825
|
children: [/* @__PURE__ */ jsx(DataType$1, {
|
|
96856
96826
|
datatype
|
|
96857
96827
|
}), /* @__PURE__ */ jsx(Text, {
|
|
96858
96828
|
variant: "p",
|
|
96859
96829
|
styleClass: "font-14",
|
|
96860
|
-
children:
|
|
96830
|
+
children: as
|
|
96861
96831
|
})]
|
|
96862
|
-
},
|
|
96832
|
+
}, as))
|
|
96863
96833
|
})]
|
|
96864
96834
|
})]
|
|
96865
96835
|
});
|
|
96866
96836
|
};
|
|
96867
96837
|
var Dataset$1 = React__default.memo(Dataset);
|
|
96868
|
-
const container$b = "
|
|
96869
|
-
const header$2 = "
|
|
96870
|
-
const headerText = "
|
|
96871
|
-
const crossIcon$1 = "
|
|
96872
|
-
const form$3 = "
|
|
96873
|
-
const inputWrapper = "
|
|
96874
|
-
const input$2 = "
|
|
96875
|
-
const selectWrapper = "
|
|
96876
|
-
const select = "
|
|
96877
|
-
const series = "
|
|
96878
|
-
const seriesWrapper = "
|
|
96879
|
-
const valueLabelWrapper = "
|
|
96880
|
-
var styles$
|
|
96838
|
+
const container$b = "_container_13mal_1";
|
|
96839
|
+
const header$2 = "_header_13mal_7";
|
|
96840
|
+
const headerText = "_headerText_13mal_13";
|
|
96841
|
+
const crossIcon$1 = "_crossIcon_13mal_19";
|
|
96842
|
+
const form$3 = "_form_13mal_25";
|
|
96843
|
+
const inputWrapper = "_inputWrapper_13mal_31";
|
|
96844
|
+
const input$2 = "_input_13mal_31";
|
|
96845
|
+
const selectWrapper = "_selectWrapper_13mal_43";
|
|
96846
|
+
const select = "_select_13mal_43";
|
|
96847
|
+
const series = "_series_13mal_55";
|
|
96848
|
+
const seriesWrapper = "_seriesWrapper_13mal_61";
|
|
96849
|
+
const valueLabelWrapper = "_valueLabelWrapper_13mal_67";
|
|
96850
|
+
var styles$l = {
|
|
96881
96851
|
container: container$b,
|
|
96882
96852
|
header: header$2,
|
|
96883
96853
|
headerText,
|
|
@@ -96891,12 +96861,12 @@ var styles$k = {
|
|
|
96891
96861
|
seriesWrapper,
|
|
96892
96862
|
valueLabelWrapper
|
|
96893
96863
|
};
|
|
96894
|
-
const tab = "
|
|
96895
|
-
const button$
|
|
96896
|
-
const activeTab = "
|
|
96897
|
-
var styles$
|
|
96864
|
+
const tab = "_tab_ksqsk_1";
|
|
96865
|
+
const button$5 = "_button_ksqsk_7";
|
|
96866
|
+
const activeTab = "_activeTab_ksqsk_15";
|
|
96867
|
+
var styles$k = {
|
|
96898
96868
|
tab,
|
|
96899
|
-
button: button$
|
|
96869
|
+
button: button$5,
|
|
96900
96870
|
activeTab
|
|
96901
96871
|
};
|
|
96902
96872
|
const Tab = ({
|
|
@@ -96905,29 +96875,29 @@ const Tab = ({
|
|
|
96905
96875
|
setActiveTab
|
|
96906
96876
|
}) => {
|
|
96907
96877
|
return /* @__PURE__ */ jsx("div", {
|
|
96908
|
-
className: styles$
|
|
96878
|
+
className: styles$k.tab,
|
|
96909
96879
|
children: options2.map((option2) => /* @__PURE__ */ jsx(Button, {
|
|
96910
96880
|
variant: "custom",
|
|
96911
96881
|
type: "button",
|
|
96912
|
-
className: `${styles$
|
|
96882
|
+
className: `${styles$k.button} ${activeTab2 === option2 && styles$k.activeTab}`,
|
|
96913
96883
|
onClick: () => setActiveTab(option2),
|
|
96914
96884
|
children: option2
|
|
96915
96885
|
}))
|
|
96916
96886
|
});
|
|
96917
96887
|
};
|
|
96918
|
-
const label$2 = "
|
|
96919
|
-
const checkboxLabel = "
|
|
96920
|
-
const input$1 = "
|
|
96921
|
-
const checkboxField = "
|
|
96922
|
-
var styles$
|
|
96888
|
+
const label$2 = "_label_1xzvi_1";
|
|
96889
|
+
const checkboxLabel = "_checkboxLabel_1xzvi_13";
|
|
96890
|
+
const input$1 = "_input_1xzvi_7";
|
|
96891
|
+
const checkboxField = "_checkboxField_1xzvi_25";
|
|
96892
|
+
var styles$j = {
|
|
96923
96893
|
label: label$2,
|
|
96924
|
-
"inputField-container": "_inputField-
|
|
96894
|
+
"inputField-container": "_inputField-container_1xzvi_7",
|
|
96925
96895
|
checkboxLabel,
|
|
96926
96896
|
input: input$1,
|
|
96927
96897
|
checkboxField
|
|
96928
96898
|
};
|
|
96929
|
-
const error$3 = "
|
|
96930
|
-
var styles$
|
|
96899
|
+
const error$3 = "_error_1csa7_1";
|
|
96900
|
+
var styles$i = {
|
|
96931
96901
|
error: error$3
|
|
96932
96902
|
};
|
|
96933
96903
|
const Error$1 = ({
|
|
@@ -96936,7 +96906,7 @@ const Error$1 = ({
|
|
|
96936
96906
|
return /* @__PURE__ */ jsx(Text, {
|
|
96937
96907
|
variant: "p",
|
|
96938
96908
|
styleClass: "custom",
|
|
96939
|
-
className: styles$
|
|
96909
|
+
className: styles$i.error,
|
|
96940
96910
|
children: message
|
|
96941
96911
|
});
|
|
96942
96912
|
};
|
|
@@ -96962,7 +96932,7 @@ const InputField = ({
|
|
|
96962
96932
|
className
|
|
96963
96933
|
}) => {
|
|
96964
96934
|
return type3 === "checkbox" ? /* @__PURE__ */ jsxs("div", {
|
|
96965
|
-
className: `${styles$
|
|
96935
|
+
className: `${styles$j.checkboxField} ${className != null ? className : ""}`,
|
|
96966
96936
|
children: [/* @__PURE__ */ jsx("input", {
|
|
96967
96937
|
type: "checkbox",
|
|
96968
96938
|
name,
|
|
@@ -96974,17 +96944,17 @@ const InputField = ({
|
|
|
96974
96944
|
disabled: isDisabled
|
|
96975
96945
|
}), label2 ? /* @__PURE__ */ jsxs("label", {
|
|
96976
96946
|
htmlFor: label2,
|
|
96977
|
-
className: `${styles$
|
|
96947
|
+
className: `${styles$j.checkboxLabel} ${labelClass}`,
|
|
96978
96948
|
children: [icon2, " ", label2]
|
|
96979
96949
|
}) : null]
|
|
96980
96950
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
96981
|
-
className: `${styles$
|
|
96951
|
+
className: `${styles$j["inputField-container"]} ${className != null ? className : ""}`,
|
|
96982
96952
|
children: [label2 ? /* @__PURE__ */ jsx("label", {
|
|
96983
96953
|
htmlFor: label2,
|
|
96984
|
-
className: `${styles$
|
|
96954
|
+
className: `${styles$j.label} ${labelClass}`,
|
|
96985
96955
|
children: label2
|
|
96986
96956
|
}) : null, /* @__PURE__ */ jsxs("div", {
|
|
96987
|
-
className: styles$
|
|
96957
|
+
className: styles$j.inputWrapper,
|
|
96988
96958
|
children: [/* @__PURE__ */ jsx("input", {
|
|
96989
96959
|
id: id2,
|
|
96990
96960
|
value,
|
|
@@ -96994,7 +96964,7 @@ const InputField = ({
|
|
|
96994
96964
|
onBlur,
|
|
96995
96965
|
onChange,
|
|
96996
96966
|
onKeyDown,
|
|
96997
|
-
className: `${styles$
|
|
96967
|
+
className: `${styles$j.input} ${inputClass}`,
|
|
96998
96968
|
placeholder,
|
|
96999
96969
|
defaultValue,
|
|
97000
96970
|
...register2,
|
|
@@ -97869,37 +97839,37 @@ let Pe = "div", ie = S$1.RenderStrategy, oe = C$1(function(e$12, s2) {
|
|
|
97869
97839
|
let n2 = useContext(A) !== null, m2 = s() !== null;
|
|
97870
97840
|
return React__default.createElement(React__default.Fragment, null, !n2 && m2 ? React__default.createElement(J, { ref: s$12, ...e2 }) : React__default.createElement(oe, { ref: s$12, ...e2 }));
|
|
97871
97841
|
}), Je = Object.assign(J, { Child: ye, Root: J });
|
|
97872
|
-
const listBoxButton = "
|
|
97873
|
-
const selectedOptionText = "
|
|
97874
|
-
const transitionDiv = "
|
|
97875
|
-
const listboxButtonWrapper = "
|
|
97876
|
-
const arrowicon = "
|
|
97877
|
-
const leave$1 = "
|
|
97878
|
-
const leaveFrom$1 = "
|
|
97879
|
-
const leaveTo$1 = "
|
|
97880
|
-
const notAvailable = "
|
|
97881
|
-
const option = "
|
|
97882
|
-
const activeOption = "
|
|
97883
|
-
const optionSelected = "
|
|
97884
|
-
const inactiveOption = "
|
|
97885
|
-
const optionLabel = "
|
|
97886
|
-
const optionSubLabel = "
|
|
97887
|
-
const selectedLabel = "
|
|
97888
|
-
const nonselectedLabel = "
|
|
97889
|
-
const check = "
|
|
97890
|
-
const checkActive = "
|
|
97891
|
-
const checkInactive = "
|
|
97892
|
-
const checkIcon$1 = "
|
|
97893
|
-
const checkIconSelected = "
|
|
97894
|
-
const checkIconUnselected = "
|
|
97895
|
-
const loadMore = "
|
|
97896
|
-
const selectedList = "
|
|
97897
|
-
const selectedListItem = "
|
|
97842
|
+
const listBoxButton = "_listBoxButton_syk7m_5";
|
|
97843
|
+
const selectedOptionText = "_selectedOptionText_syk7m_17";
|
|
97844
|
+
const transitionDiv = "_transitionDiv_syk7m_21";
|
|
97845
|
+
const listboxButtonWrapper = "_listboxButtonWrapper_syk7m_25";
|
|
97846
|
+
const arrowicon = "_arrowicon_syk7m_28";
|
|
97847
|
+
const leave$1 = "_leave_syk7m_31";
|
|
97848
|
+
const leaveFrom$1 = "_leaveFrom_syk7m_34";
|
|
97849
|
+
const leaveTo$1 = "_leaveTo_syk7m_37";
|
|
97850
|
+
const notAvailable = "_notAvailable_syk7m_40";
|
|
97851
|
+
const option = "_option_syk7m_43";
|
|
97852
|
+
const activeOption = "_activeOption_syk7m_46";
|
|
97853
|
+
const optionSelected = "_optionSelected_syk7m_49";
|
|
97854
|
+
const inactiveOption = "_inactiveOption_syk7m_52";
|
|
97855
|
+
const optionLabel = "_optionLabel_syk7m_55";
|
|
97856
|
+
const optionSubLabel = "_optionSubLabel_syk7m_58";
|
|
97857
|
+
const selectedLabel = "_selectedLabel_syk7m_61";
|
|
97858
|
+
const nonselectedLabel = "_nonselectedLabel_syk7m_64";
|
|
97859
|
+
const check = "_check_syk7m_67";
|
|
97860
|
+
const checkActive = "_checkActive_syk7m_70";
|
|
97861
|
+
const checkInactive = "_checkInactive_syk7m_73";
|
|
97862
|
+
const checkIcon$1 = "_checkIcon_syk7m_76";
|
|
97863
|
+
const checkIconSelected = "_checkIconSelected_syk7m_79";
|
|
97864
|
+
const checkIconUnselected = "_checkIconUnselected_syk7m_82";
|
|
97865
|
+
const loadMore = "_loadMore_syk7m_85";
|
|
97866
|
+
const selectedList = "_selectedList_syk7m_88";
|
|
97867
|
+
const selectedListItem = "_selectedListItem_syk7m_91";
|
|
97898
97868
|
var style = {
|
|
97899
|
-
"listBox-label": "_listBox-
|
|
97900
|
-
"listBoxButton-container": "_listBoxButton-
|
|
97869
|
+
"listBox-label": "_listBox-label_syk7m_1",
|
|
97870
|
+
"listBoxButton-container": "_listBoxButton-container_syk7m_5",
|
|
97901
97871
|
listBoxButton,
|
|
97902
|
-
"listBox-option": "_listBox-
|
|
97872
|
+
"listBox-option": "_listBox-option_syk7m_13",
|
|
97903
97873
|
selectedOptionText,
|
|
97904
97874
|
transitionDiv,
|
|
97905
97875
|
listboxButtonWrapper,
|
|
@@ -98209,16 +98179,16 @@ const ChartConfigure = ({
|
|
|
98209
98179
|
const TabList = ["margins", "legend", "series"];
|
|
98210
98180
|
const [activeTab2, setActiveTab] = useState("margins");
|
|
98211
98181
|
return /* @__PURE__ */ jsxs("div", {
|
|
98212
|
-
className: styles$
|
|
98182
|
+
className: styles$l.container,
|
|
98213
98183
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
98214
|
-
className: styles$
|
|
98184
|
+
className: styles$l.header,
|
|
98215
98185
|
children: [/* @__PURE__ */ jsxs(Text, {
|
|
98216
98186
|
styleClass: "font-14c",
|
|
98217
98187
|
variant: "h1",
|
|
98218
|
-
className: styles$
|
|
98188
|
+
className: styles$l.headerText,
|
|
98219
98189
|
children: [/* @__PURE__ */ jsx(grommetIconsConfigure, {}), "Chart Configure"]
|
|
98220
98190
|
}), /* @__PURE__ */ jsx("div", {
|
|
98221
|
-
className: styles$
|
|
98191
|
+
className: styles$l.crossIcon,
|
|
98222
98192
|
children: /* @__PURE__ */ jsx(akarIconsCross, {
|
|
98223
98193
|
onClick: () => setConfigureShow(false)
|
|
98224
98194
|
})
|
|
@@ -98228,11 +98198,11 @@ const ChartConfigure = ({
|
|
|
98228
98198
|
activeTab: activeTab2,
|
|
98229
98199
|
setActiveTab
|
|
98230
98200
|
}), /* @__PURE__ */ jsxs("form", {
|
|
98231
|
-
className: styles$
|
|
98201
|
+
className: styles$l.form,
|
|
98232
98202
|
children: [activeTab2 === "margins" && /* @__PURE__ */ jsxs("div", {
|
|
98233
|
-
className: styles$
|
|
98203
|
+
className: styles$l.inputWrapper,
|
|
98234
98204
|
children: [/* @__PURE__ */ jsx("div", {
|
|
98235
|
-
className: styles$
|
|
98205
|
+
className: styles$l.input,
|
|
98236
98206
|
children: /* @__PURE__ */ jsx(InputField, {
|
|
98237
98207
|
type: "number",
|
|
98238
98208
|
label: "Top",
|
|
@@ -98243,7 +98213,7 @@ const ChartConfigure = ({
|
|
|
98243
98213
|
defaultValue: margins.marginTop
|
|
98244
98214
|
})
|
|
98245
98215
|
}), /* @__PURE__ */ jsx("div", {
|
|
98246
|
-
className: styles$
|
|
98216
|
+
className: styles$l.input,
|
|
98247
98217
|
children: /* @__PURE__ */ jsx(InputField, {
|
|
98248
98218
|
type: "number",
|
|
98249
98219
|
label: "Bottom",
|
|
@@ -98254,7 +98224,7 @@ const ChartConfigure = ({
|
|
|
98254
98224
|
defaultValue: margins.marginBottom
|
|
98255
98225
|
})
|
|
98256
98226
|
}), /* @__PURE__ */ jsx("div", {
|
|
98257
|
-
className: styles$
|
|
98227
|
+
className: styles$l.input,
|
|
98258
98228
|
children: /* @__PURE__ */ jsx(InputField, {
|
|
98259
98229
|
type: "number",
|
|
98260
98230
|
label: "Left",
|
|
@@ -98265,7 +98235,7 @@ const ChartConfigure = ({
|
|
|
98265
98235
|
}))
|
|
98266
98236
|
})
|
|
98267
98237
|
}), /* @__PURE__ */ jsx("div", {
|
|
98268
|
-
className: styles$
|
|
98238
|
+
className: styles$l.input,
|
|
98269
98239
|
children: /* @__PURE__ */ jsx(InputField, {
|
|
98270
98240
|
type: "number",
|
|
98271
98241
|
label: "Right",
|
|
@@ -98292,9 +98262,9 @@ const ChartConfigure = ({
|
|
|
98292
98262
|
styleClass: "primary",
|
|
98293
98263
|
children: "Position"
|
|
98294
98264
|
}), /* @__PURE__ */ jsxs("div", {
|
|
98295
|
-
className: styles$
|
|
98265
|
+
className: styles$l.inputWrapper,
|
|
98296
98266
|
children: [/* @__PURE__ */ jsx("div", {
|
|
98297
|
-
className: styles$
|
|
98267
|
+
className: styles$l.input,
|
|
98298
98268
|
children: /* @__PURE__ */ jsx(InputField, {
|
|
98299
98269
|
type: "number",
|
|
98300
98270
|
label: "Top",
|
|
@@ -98305,7 +98275,7 @@ const ChartConfigure = ({
|
|
|
98305
98275
|
}))
|
|
98306
98276
|
})
|
|
98307
98277
|
}), /* @__PURE__ */ jsx("div", {
|
|
98308
|
-
className: styles$
|
|
98278
|
+
className: styles$l.input,
|
|
98309
98279
|
children: /* @__PURE__ */ jsx(InputField, {
|
|
98310
98280
|
type: "number",
|
|
98311
98281
|
label: "Bottom",
|
|
@@ -98316,7 +98286,7 @@ const ChartConfigure = ({
|
|
|
98316
98286
|
}))
|
|
98317
98287
|
})
|
|
98318
98288
|
}), /* @__PURE__ */ jsx("div", {
|
|
98319
|
-
className: styles$
|
|
98289
|
+
className: styles$l.input,
|
|
98320
98290
|
children: /* @__PURE__ */ jsx(InputField, {
|
|
98321
98291
|
type: "number",
|
|
98322
98292
|
label: "Left",
|
|
@@ -98327,7 +98297,7 @@ const ChartConfigure = ({
|
|
|
98327
98297
|
}))
|
|
98328
98298
|
})
|
|
98329
98299
|
}), /* @__PURE__ */ jsx("div", {
|
|
98330
|
-
className: styles$
|
|
98300
|
+
className: styles$l.input,
|
|
98331
98301
|
children: /* @__PURE__ */ jsx(InputField, {
|
|
98332
98302
|
type: "number",
|
|
98333
98303
|
label: "Right",
|
|
@@ -98340,13 +98310,13 @@ const ChartConfigure = ({
|
|
|
98340
98310
|
})]
|
|
98341
98311
|
})]
|
|
98342
98312
|
}), /* @__PURE__ */ jsxs("div", {
|
|
98343
|
-
className: styles$
|
|
98313
|
+
className: styles$l.selectWrapper,
|
|
98344
98314
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
98345
98315
|
variant: "h1",
|
|
98346
98316
|
styleClass: "primary",
|
|
98347
98317
|
children: "Appearance"
|
|
98348
98318
|
}), /* @__PURE__ */ jsx("div", {
|
|
98349
|
-
className: styles$
|
|
98319
|
+
className: styles$l.select,
|
|
98350
98320
|
children: /* @__PURE__ */ jsx(Select, {
|
|
98351
98321
|
value: legendSettings.position,
|
|
98352
98322
|
options: [{
|
|
@@ -98364,15 +98334,15 @@ const ChartConfigure = ({
|
|
|
98364
98334
|
})]
|
|
98365
98335
|
})]
|
|
98366
98336
|
}), activeTab2 === "series" && /* @__PURE__ */ jsxs("div", {
|
|
98367
|
-
className: styles$
|
|
98337
|
+
className: styles$l.series,
|
|
98368
98338
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
98369
|
-
className: styles$
|
|
98339
|
+
className: styles$l.seriesWrapper,
|
|
98370
98340
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
98371
98341
|
variant: "h1",
|
|
98372
98342
|
styleClass: "primary",
|
|
98373
98343
|
children: "Chart Type"
|
|
98374
98344
|
}), /* @__PURE__ */ jsx("div", {
|
|
98375
|
-
className: styles$
|
|
98345
|
+
className: styles$l.select,
|
|
98376
98346
|
children: /* @__PURE__ */ jsx(Select, {
|
|
98377
98347
|
value: chartType2 === "bar" || chartType2 === "line" || chartType2 === "area" ? chartType2 : "",
|
|
98378
98348
|
options: [{
|
|
@@ -98389,13 +98359,13 @@ const ChartConfigure = ({
|
|
|
98389
98359
|
})
|
|
98390
98360
|
})]
|
|
98391
98361
|
}), /* @__PURE__ */ jsxs("div", {
|
|
98392
|
-
className: styles$
|
|
98362
|
+
className: styles$l.seriesWrapper,
|
|
98393
98363
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
98394
98364
|
variant: "h1",
|
|
98395
98365
|
styleClass: "primary",
|
|
98396
98366
|
children: "Value labels"
|
|
98397
98367
|
}), /* @__PURE__ */ jsx("div", {
|
|
98398
|
-
className: styles$
|
|
98368
|
+
className: styles$l.valueLabelWrapper,
|
|
98399
98369
|
children: /* @__PURE__ */ jsx(Select, {
|
|
98400
98370
|
value: labelSettings.position,
|
|
98401
98371
|
options: [{
|
|
@@ -98429,13 +98399,13 @@ const ChartConfigure = ({
|
|
|
98429
98399
|
})
|
|
98430
98400
|
})]
|
|
98431
98401
|
}), /* @__PURE__ */ jsxs("div", {
|
|
98432
|
-
className: styles$
|
|
98402
|
+
className: styles$l.seriesWrapper,
|
|
98433
98403
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
98434
98404
|
variant: "h1",
|
|
98435
98405
|
styleClass: "primary",
|
|
98436
98406
|
children: "Axis"
|
|
98437
98407
|
}), /* @__PURE__ */ jsx("div", {
|
|
98438
|
-
className: styles$
|
|
98408
|
+
className: styles$l.select,
|
|
98439
98409
|
children: /* @__PURE__ */ jsx(Select, {
|
|
98440
98410
|
value: axisSettings.axis,
|
|
98441
98411
|
options: [{
|
|
@@ -98456,19 +98426,19 @@ const ChartConfigure = ({
|
|
|
98456
98426
|
})]
|
|
98457
98427
|
});
|
|
98458
98428
|
};
|
|
98459
|
-
const chartButtonContainer$1 = "
|
|
98460
|
-
const chartButtons$1 = "
|
|
98461
|
-
const chartTypesButton = "
|
|
98462
|
-
const button$
|
|
98463
|
-
const propertyButton = "
|
|
98464
|
-
const settings = "
|
|
98465
|
-
const crossIcon = "
|
|
98466
|
-
var styles$
|
|
98467
|
-
"chartButton-header": "_chartButton-
|
|
98429
|
+
const chartButtonContainer$1 = "_chartButtonContainer_1lfk7_9";
|
|
98430
|
+
const chartButtons$1 = "_chartButtons_1lfk7_17";
|
|
98431
|
+
const chartTypesButton = "_chartTypesButton_1lfk7_25";
|
|
98432
|
+
const button$4 = "_button_1lfk7_33";
|
|
98433
|
+
const propertyButton = "_propertyButton_1lfk7_41";
|
|
98434
|
+
const settings = "_settings_1lfk7_49";
|
|
98435
|
+
const crossIcon = "_crossIcon_1lfk7_57";
|
|
98436
|
+
var styles$h = {
|
|
98437
|
+
"chartButton-header": "_chartButton-header_1lfk7_1",
|
|
98468
98438
|
chartButtonContainer: chartButtonContainer$1,
|
|
98469
98439
|
chartButtons: chartButtons$1,
|
|
98470
98440
|
chartTypesButton,
|
|
98471
|
-
button: button$
|
|
98441
|
+
button: button$4,
|
|
98472
98442
|
propertyButton,
|
|
98473
98443
|
settings,
|
|
98474
98444
|
crossIcon
|
|
@@ -98501,7 +98471,7 @@ const plus = "_plus_jdb8o_61";
|
|
|
98501
98471
|
const plusIcon = "_plusIcon_jdb8o_67";
|
|
98502
98472
|
const form$2 = "_form_jdb8o_73";
|
|
98503
98473
|
const chartType = "_chartType_jdb8o_79";
|
|
98504
|
-
var styles$
|
|
98474
|
+
var styles$g = {
|
|
98505
98475
|
chartOptions,
|
|
98506
98476
|
chartOption,
|
|
98507
98477
|
chartOptionBtn,
|
|
@@ -98589,12 +98559,12 @@ const ChartConfig = ({
|
|
|
98589
98559
|
};
|
|
98590
98560
|
if (chartType2 === SANKEY) {
|
|
98591
98561
|
return /* @__PURE__ */ jsxs("div", {
|
|
98592
|
-
className: styles$
|
|
98562
|
+
className: styles$g.container,
|
|
98593
98563
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
98594
|
-
className: styles$
|
|
98564
|
+
className: styles$g.field,
|
|
98595
98565
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
98596
98566
|
styleClass: "font-14",
|
|
98597
|
-
className: styles$
|
|
98567
|
+
className: styles$g.fieldText,
|
|
98598
98568
|
variant: "h4",
|
|
98599
98569
|
children: "Source"
|
|
98600
98570
|
}), /* @__PURE__ */ jsx(Select, {
|
|
@@ -98604,10 +98574,10 @@ const ChartConfig = ({
|
|
|
98604
98574
|
value: source
|
|
98605
98575
|
})]
|
|
98606
98576
|
}), /* @__PURE__ */ jsxs("div", {
|
|
98607
|
-
className: styles$
|
|
98577
|
+
className: styles$g.field,
|
|
98608
98578
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
98609
98579
|
styleClass: "font-14",
|
|
98610
|
-
className: styles$
|
|
98580
|
+
className: styles$g.fieldText,
|
|
98611
98581
|
variant: "h4",
|
|
98612
98582
|
children: "Target"
|
|
98613
98583
|
}), /* @__PURE__ */ jsx(Select, {
|
|
@@ -98619,7 +98589,7 @@ const ChartConfig = ({
|
|
|
98619
98589
|
}), /* @__PURE__ */ jsxs("div", {
|
|
98620
98590
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
98621
98591
|
styleClass: "font-14",
|
|
98622
|
-
className: styles$
|
|
98592
|
+
className: styles$g.fieldText,
|
|
98623
98593
|
variant: "h4",
|
|
98624
98594
|
children: "Value"
|
|
98625
98595
|
}), /* @__PURE__ */ jsx(Select, {
|
|
@@ -98632,7 +98602,7 @@ const ChartConfig = ({
|
|
|
98632
98602
|
type: "submit",
|
|
98633
98603
|
variant: "primary",
|
|
98634
98604
|
size: "default",
|
|
98635
|
-
className: styles$
|
|
98605
|
+
className: styles$g.doneBtn,
|
|
98636
98606
|
onClick: () => {
|
|
98637
98607
|
onSubmitSnakeyValues();
|
|
98638
98608
|
setSettingsShow(false);
|
|
@@ -98644,10 +98614,10 @@ const ChartConfig = ({
|
|
|
98644
98614
|
if (chartType2 === DOUGHNUT) {
|
|
98645
98615
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
98646
98616
|
children: !!(chartType2 === DOUGHNUT || PIE) && /* @__PURE__ */ jsxs("div", {
|
|
98647
|
-
className: styles$
|
|
98617
|
+
className: styles$g.container,
|
|
98648
98618
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
98649
98619
|
styleClass: "font-14",
|
|
98650
|
-
className: styles$
|
|
98620
|
+
className: styles$g.field,
|
|
98651
98621
|
variant: "h4",
|
|
98652
98622
|
children: "Dimension"
|
|
98653
98623
|
}), /* @__PURE__ */ jsx(Select, {
|
|
@@ -98657,18 +98627,18 @@ const ChartConfig = ({
|
|
|
98657
98627
|
value: xAxis
|
|
98658
98628
|
}), /* @__PURE__ */ jsx(Text, {
|
|
98659
98629
|
styleClass: "font-14",
|
|
98660
|
-
className: styles$
|
|
98630
|
+
className: styles$g.measureText,
|
|
98661
98631
|
variant: "h4",
|
|
98662
98632
|
children: "Measure"
|
|
98663
98633
|
}), /* @__PURE__ */ jsx("div", {
|
|
98664
|
-
className: styles$
|
|
98634
|
+
className: styles$g.plus,
|
|
98665
98635
|
children: /* @__PURE__ */ jsx(akarIconsCirclePlus, {
|
|
98666
|
-
className: `${styles$
|
|
98636
|
+
className: `${styles$g.plusIcon} ${showAddButton}`,
|
|
98667
98637
|
onClick: () => addSelectField()
|
|
98668
98638
|
})
|
|
98669
98639
|
}), /* @__PURE__ */ jsxs("form", {
|
|
98670
98640
|
onSubmit: handleSubmit(onSubmitOptions),
|
|
98671
|
-
className: styles$
|
|
98641
|
+
className: styles$g.form,
|
|
98672
98642
|
children: [selectField.map((field2) => /* @__PURE__ */ jsx(SelectField, {
|
|
98673
98643
|
value: field2.value,
|
|
98674
98644
|
options: options2,
|
|
@@ -98677,7 +98647,7 @@ const ChartConfig = ({
|
|
|
98677
98647
|
type: "submit",
|
|
98678
98648
|
variant: "primary",
|
|
98679
98649
|
size: "default",
|
|
98680
|
-
className: styles$
|
|
98650
|
+
className: styles$g.doneBtn,
|
|
98681
98651
|
children: "Done"
|
|
98682
98652
|
})]
|
|
98683
98653
|
})]
|
|
@@ -98687,10 +98657,10 @@ const ChartConfig = ({
|
|
|
98687
98657
|
if (chartType2 === PIE) {
|
|
98688
98658
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
98689
98659
|
children: ["(", /* @__PURE__ */ jsxs("div", {
|
|
98690
|
-
className: styles$
|
|
98660
|
+
className: styles$g.container,
|
|
98691
98661
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
98692
98662
|
styleClass: "font-14",
|
|
98693
|
-
className: styles$
|
|
98663
|
+
className: styles$g.field,
|
|
98694
98664
|
variant: "h4",
|
|
98695
98665
|
children: "Dimension"
|
|
98696
98666
|
}), /* @__PURE__ */ jsx(Select, {
|
|
@@ -98700,18 +98670,18 @@ const ChartConfig = ({
|
|
|
98700
98670
|
value: xAxis
|
|
98701
98671
|
}), /* @__PURE__ */ jsx(Text, {
|
|
98702
98672
|
styleClass: "font-14",
|
|
98703
|
-
className: styles$
|
|
98673
|
+
className: styles$g.measureText,
|
|
98704
98674
|
variant: "h4",
|
|
98705
98675
|
children: "Measure"
|
|
98706
98676
|
}), /* @__PURE__ */ jsx("div", {
|
|
98707
|
-
className: styles$
|
|
98677
|
+
className: styles$g.plus,
|
|
98708
98678
|
children: /* @__PURE__ */ jsx(akarIconsCirclePlus, {
|
|
98709
|
-
className: `${styles$
|
|
98679
|
+
className: `${styles$g.plusIcon} ${showAddButton}`,
|
|
98710
98680
|
onClick: () => addSelectField()
|
|
98711
98681
|
})
|
|
98712
98682
|
}), /* @__PURE__ */ jsxs("form", {
|
|
98713
98683
|
onSubmit: handleSubmit(onSubmitOptions),
|
|
98714
|
-
className: styles$
|
|
98684
|
+
className: styles$g.form,
|
|
98715
98685
|
children: [selectField.map((field2) => /* @__PURE__ */ jsx(SelectField, {
|
|
98716
98686
|
value: field2.value,
|
|
98717
98687
|
options: options2,
|
|
@@ -98720,7 +98690,7 @@ const ChartConfig = ({
|
|
|
98720
98690
|
type: "submit",
|
|
98721
98691
|
variant: "primary",
|
|
98722
98692
|
size: "default",
|
|
98723
|
-
className: styles$
|
|
98693
|
+
className: styles$g.doneBtn,
|
|
98724
98694
|
children: "Done"
|
|
98725
98695
|
})]
|
|
98726
98696
|
})]
|
|
@@ -98731,7 +98701,7 @@ const ChartConfig = ({
|
|
|
98731
98701
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
98732
98702
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
98733
98703
|
styleClass: "font-14",
|
|
98734
|
-
className: `${styles$
|
|
98704
|
+
className: `${styles$g.singleValueMeasure}`,
|
|
98735
98705
|
variant: "h4",
|
|
98736
98706
|
children: "Measure"
|
|
98737
98707
|
}), /* @__PURE__ */ jsx(Select, {
|
|
@@ -98743,7 +98713,7 @@ const ChartConfig = ({
|
|
|
98743
98713
|
type: "button",
|
|
98744
98714
|
variant: "primary",
|
|
98745
98715
|
size: "default",
|
|
98746
|
-
className: styles$
|
|
98716
|
+
className: styles$g.doneBtn,
|
|
98747
98717
|
onClick: () => setSettingsShow(false),
|
|
98748
98718
|
children: "Done"
|
|
98749
98719
|
})]
|
|
@@ -98751,11 +98721,11 @@ const ChartConfig = ({
|
|
|
98751
98721
|
}
|
|
98752
98722
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
98753
98723
|
children: /* @__PURE__ */ jsxs("div", {
|
|
98754
|
-
className: styles$
|
|
98724
|
+
className: styles$g.container,
|
|
98755
98725
|
children: [chartType2 !== "gauge" && chartType2 !== BOXPLOT && chartType2 !== "table" && /* @__PURE__ */ jsxs(Fragment, {
|
|
98756
98726
|
children: [/* @__PURE__ */ jsxs(Text, {
|
|
98757
98727
|
styleClass: "font-14",
|
|
98758
|
-
className: styles$
|
|
98728
|
+
className: styles$g.field,
|
|
98759
98729
|
variant: "h4",
|
|
98760
98730
|
children: [chartType2 !== "funnel" && chartType2 !== "row" && "X-axis", chartType2 === "funnel" && "Step", chartType2 === "row" && "Y-axis"]
|
|
98761
98731
|
}), chartType2 === "funnel" ? /* @__PURE__ */ jsx(Select, {
|
|
@@ -98770,20 +98740,20 @@ const ChartConfig = ({
|
|
|
98770
98740
|
value: xAxis
|
|
98771
98741
|
})]
|
|
98772
98742
|
}), /* @__PURE__ */ jsxs("div", {
|
|
98773
|
-
className: `${styles$
|
|
98774
|
-
${chartType2 !== "gauge" ? styles$
|
|
98743
|
+
className: `${styles$g.chartType}
|
|
98744
|
+
${chartType2 !== "gauge" ? styles$g.measureText : ""}`,
|
|
98775
98745
|
children: [/* @__PURE__ */ jsxs(Text, {
|
|
98776
98746
|
styleClass: "font-14",
|
|
98777
98747
|
variant: "h1",
|
|
98778
|
-
className: styles$
|
|
98748
|
+
className: styles$g.field,
|
|
98779
98749
|
children: [chartType2 !== "funnel" && chartType2 !== "gauge" && chartType2 !== "row" && chartType2 !== "boxplot" && chartType2 !== "table" && "Y-axis", (chartType2 === "funnel" || chartType2 === "gauge" || chartType2 === "boxplot" || chartType2 === "table") && "Measure", chartType2 === "row" && "X-axis"]
|
|
98780
98750
|
}), chartType2 !== "funnel" && chartType2 !== "gauge" && /* @__PURE__ */ jsx(akarIconsCirclePlus, {
|
|
98781
|
-
className: `${styles$
|
|
98751
|
+
className: `${styles$g.plusIcon} ${showAddButton}`,
|
|
98782
98752
|
onClick: () => addSelectField()
|
|
98783
98753
|
})]
|
|
98784
98754
|
}), /* @__PURE__ */ jsxs("form", {
|
|
98785
98755
|
onSubmit: handleSubmit(onSubmitOptions),
|
|
98786
|
-
className: styles$
|
|
98756
|
+
className: styles$g.form,
|
|
98787
98757
|
children: [chartType2 === "funnel" || chartType2 === "gauge" ? /* @__PURE__ */ jsx(Select, {
|
|
98788
98758
|
label: "",
|
|
98789
98759
|
options: options2,
|
|
@@ -98797,7 +98767,7 @@ const ChartConfig = ({
|
|
|
98797
98767
|
type: "submit",
|
|
98798
98768
|
variant: "primary",
|
|
98799
98769
|
size: "default",
|
|
98800
|
-
className: styles$
|
|
98770
|
+
className: styles$g.doneBtn,
|
|
98801
98771
|
children: "Done"
|
|
98802
98772
|
})]
|
|
98803
98773
|
})]
|
|
@@ -99089,13 +99059,13 @@ const ChartModalOptions = ({
|
|
|
99089
99059
|
icon: materialSymbolsBackupTable
|
|
99090
99060
|
}];
|
|
99091
99061
|
return /* @__PURE__ */ jsx("div", {
|
|
99092
|
-
className: styles$
|
|
99062
|
+
className: styles$g.chartOptions,
|
|
99093
99063
|
children: chartOptions2.map((option2) => /* @__PURE__ */ jsxs("div", {
|
|
99094
|
-
className: styles$
|
|
99064
|
+
className: styles$g.chartOption,
|
|
99095
99065
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
99096
99066
|
type: "button",
|
|
99097
99067
|
variant: "custom",
|
|
99098
|
-
className: styles$
|
|
99068
|
+
className: styles$g.chartOptionBtn,
|
|
99099
99069
|
onClick: () => {
|
|
99100
99070
|
setChartType(option2.name.toLowerCase());
|
|
99101
99071
|
},
|
|
@@ -99109,7 +99079,7 @@ const ChartModalOptions = ({
|
|
|
99109
99079
|
}, option2.name), /* @__PURE__ */ jsx(Text, {
|
|
99110
99080
|
variant: "p",
|
|
99111
99081
|
styleClass: "tertiary",
|
|
99112
|
-
className: styles$
|
|
99082
|
+
className: styles$g.chartOptionText,
|
|
99113
99083
|
children: option2.name
|
|
99114
99084
|
})]
|
|
99115
99085
|
}, option2.name))
|
|
@@ -99144,27 +99114,27 @@ const ChartSettings = ({
|
|
|
99144
99114
|
const [isShowChartOptions, setShowChartOptions] = useState(true);
|
|
99145
99115
|
const [isShowChartProperties, setShowChartProperties] = useState(true);
|
|
99146
99116
|
return /* @__PURE__ */ jsxs("div", {
|
|
99147
|
-
className: styles$
|
|
99117
|
+
className: styles$h.chartButtonContainer,
|
|
99148
99118
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
99149
|
-
className: styles$
|
|
99119
|
+
className: styles$h["chartButton-header"],
|
|
99150
99120
|
children: [/* @__PURE__ */ jsxs(Text, {
|
|
99151
99121
|
styleClass: "font-14c",
|
|
99152
99122
|
variant: "h1",
|
|
99153
|
-
className: styles$
|
|
99123
|
+
className: styles$h.settings,
|
|
99154
99124
|
children: [/* @__PURE__ */ jsx(mdiMixerSettingsVertical, {}), "Chart Settings"]
|
|
99155
99125
|
}), /* @__PURE__ */ jsx("div", {
|
|
99156
|
-
className: styles$
|
|
99126
|
+
className: styles$h.crossIcon,
|
|
99157
99127
|
children: /* @__PURE__ */ jsx(akarIconsCross, {
|
|
99158
99128
|
onClick: () => setSettingsShow(false)
|
|
99159
99129
|
})
|
|
99160
99130
|
})]
|
|
99161
99131
|
}), /* @__PURE__ */ jsxs("div", {
|
|
99162
|
-
className: styles$
|
|
99132
|
+
className: styles$h.chartButtons,
|
|
99163
99133
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
99164
|
-
className: `${styles$
|
|
99134
|
+
className: `${styles$h.button} ${styles$h.chartTypesButton}`,
|
|
99165
99135
|
children: [/* @__PURE__ */ jsxs(Button, {
|
|
99166
99136
|
type: "button",
|
|
99167
|
-
className: styles$
|
|
99137
|
+
className: styles$h.propertyButton,
|
|
99168
99138
|
variant: "secondary",
|
|
99169
99139
|
onClick: () => setShowChartOptions((p2) => !p2),
|
|
99170
99140
|
children: ["Chart Types", /* @__PURE__ */ jsx(mdiChevronDown, {})]
|
|
@@ -99172,11 +99142,11 @@ const ChartSettings = ({
|
|
|
99172
99142
|
setChartType
|
|
99173
99143
|
})]
|
|
99174
99144
|
}), chartType2 && /* @__PURE__ */ jsxs("div", {
|
|
99175
|
-
className: styles$
|
|
99145
|
+
className: styles$h.button,
|
|
99176
99146
|
children: [/* @__PURE__ */ jsxs(Button, {
|
|
99177
99147
|
type: "button",
|
|
99178
99148
|
variant: "secondary",
|
|
99179
|
-
className: styles$
|
|
99149
|
+
className: styles$h.propertyButton,
|
|
99180
99150
|
onClick: () => setShowChartProperties((p2) => !p2),
|
|
99181
99151
|
children: ["Chart Properties", /* @__PURE__ */ jsx(mdiChevronDown, {})]
|
|
99182
99152
|
}), isShowChartProperties && /* @__PURE__ */ jsx(ChartConfig$1, {
|
|
@@ -99198,35 +99168,35 @@ const ChartSettings = ({
|
|
|
99198
99168
|
})]
|
|
99199
99169
|
});
|
|
99200
99170
|
};
|
|
99201
|
-
const searchCommand$1 = "
|
|
99202
|
-
const chartText = "
|
|
99203
|
-
const charts = "
|
|
99204
|
-
const metricChart = "
|
|
99205
|
-
const metricChartEmpty = "
|
|
99206
|
-
const fullQuery = "
|
|
99207
|
-
const noQuery = "
|
|
99208
|
-
const chartButtonContainer = "
|
|
99209
|
-
const searchWrapper = "
|
|
99210
|
-
const searchIcon = "
|
|
99211
|
-
const chartConfigure = "
|
|
99212
|
-
const chartSettings = "
|
|
99213
|
-
const labels = "
|
|
99214
|
-
const chartButtons = "
|
|
99215
|
-
const chartButton = "
|
|
99216
|
-
var styles$
|
|
99217
|
-
"outputTab-header": "_outputTab-
|
|
99171
|
+
const searchCommand$1 = "_searchCommand_jk2ki_9";
|
|
99172
|
+
const chartText = "_chartText_jk2ki_25";
|
|
99173
|
+
const charts = "_charts_jk2ki_33";
|
|
99174
|
+
const metricChart = "_metricChart_jk2ki_41";
|
|
99175
|
+
const metricChartEmpty = "_metricChartEmpty_jk2ki_49";
|
|
99176
|
+
const fullQuery = "_fullQuery_jk2ki_73";
|
|
99177
|
+
const noQuery = "_noQuery_jk2ki_81";
|
|
99178
|
+
const chartButtonContainer = "_chartButtonContainer_jk2ki_105";
|
|
99179
|
+
const searchWrapper = "_searchWrapper_jk2ki_113";
|
|
99180
|
+
const searchIcon = "_searchIcon_jk2ki_121";
|
|
99181
|
+
const chartConfigure = "_chartConfigure_jk2ki_129";
|
|
99182
|
+
const chartSettings = "_chartSettings_jk2ki_137";
|
|
99183
|
+
const labels = "_labels_jk2ki_145";
|
|
99184
|
+
const chartButtons = "_chartButtons_jk2ki_153";
|
|
99185
|
+
const chartButton = "_chartButton_jk2ki_97";
|
|
99186
|
+
var styles$f = {
|
|
99187
|
+
"outputTab-header": "_outputTab-header_jk2ki_1",
|
|
99218
99188
|
searchCommand: searchCommand$1,
|
|
99219
|
-
"chartTab-container": "_chartTab-
|
|
99189
|
+
"chartTab-container": "_chartTab-container_jk2ki_17",
|
|
99220
99190
|
chartText,
|
|
99221
99191
|
charts,
|
|
99222
99192
|
metricChart,
|
|
99223
99193
|
metricChartEmpty,
|
|
99224
|
-
"chartTab-wrapper": "_chartTab-
|
|
99225
|
-
"chartTab-wrapper-head": "_chartTab-wrapper-
|
|
99194
|
+
"chartTab-wrapper": "_chartTab-wrapper_jk2ki_57",
|
|
99195
|
+
"chartTab-wrapper-head": "_chartTab-wrapper-head_jk2ki_65",
|
|
99226
99196
|
fullQuery,
|
|
99227
99197
|
noQuery,
|
|
99228
|
-
"tableTab-header": "_tableTab-
|
|
99229
|
-
"chartButton-header": "_chartButton-
|
|
99198
|
+
"tableTab-header": "_tableTab-header_jk2ki_89",
|
|
99199
|
+
"chartButton-header": "_chartButton-header_jk2ki_97",
|
|
99230
99200
|
chartButtonContainer,
|
|
99231
99201
|
searchWrapper,
|
|
99232
99202
|
searchIcon,
|
|
@@ -99294,9 +99264,9 @@ const ChartTab = ({
|
|
|
99294
99264
|
const [isConfigureShow, setConfigureShow] = useState(false);
|
|
99295
99265
|
const [isShowFullScreen, setShowFullScreen] = useState(false);
|
|
99296
99266
|
return /* @__PURE__ */ jsxs("div", {
|
|
99297
|
-
className: styles$
|
|
99267
|
+
className: styles$f["chartTab-container"],
|
|
99298
99268
|
children: [!(data == null ? void 0 : data.length) && isLoading && /* @__PURE__ */ jsx("div", {
|
|
99299
|
-
className: styles$
|
|
99269
|
+
className: styles$f["loader-container"],
|
|
99300
99270
|
children: /* @__PURE__ */ jsx(eosIconsLoading, {
|
|
99301
99271
|
style: {
|
|
99302
99272
|
width: "50px",
|
|
@@ -99305,21 +99275,21 @@ const ChartTab = ({
|
|
|
99305
99275
|
}
|
|
99306
99276
|
})
|
|
99307
99277
|
}), !(data == null ? void 0 : data.length) && !isLoading && /* @__PURE__ */ jsxs("div", {
|
|
99308
|
-
className: styles$
|
|
99278
|
+
className: styles$f.metricChartEmpty,
|
|
99309
99279
|
children: [/* @__PURE__ */ jsx("div", {
|
|
99310
|
-
className: styles$
|
|
99280
|
+
className: styles$f.searchWrapper,
|
|
99311
99281
|
children: /* @__PURE__ */ jsx(akarIconsSearch, {
|
|
99312
|
-
className: styles$
|
|
99282
|
+
className: styles$f.searchIcon
|
|
99313
99283
|
})
|
|
99314
99284
|
}), /* @__PURE__ */ jsx("div", {
|
|
99315
|
-
className: styles$
|
|
99285
|
+
className: styles$f.message,
|
|
99316
99286
|
children: /* @__PURE__ */ jsx(Text, {
|
|
99317
99287
|
styleClass: "font-14b",
|
|
99318
99288
|
variant: "p",
|
|
99319
99289
|
children: "Uh-oh, Nothing to display"
|
|
99320
99290
|
})
|
|
99321
99291
|
}), /* @__PURE__ */ jsx("div", {
|
|
99322
|
-
className: styles$
|
|
99292
|
+
className: styles$f.chartButton,
|
|
99323
99293
|
children: /* @__PURE__ */ jsx(Text, {
|
|
99324
99294
|
styleClass: "font-14a",
|
|
99325
99295
|
variant: "p",
|
|
@@ -99327,33 +99297,33 @@ const ChartTab = ({
|
|
|
99327
99297
|
})
|
|
99328
99298
|
})]
|
|
99329
99299
|
}), !!(data == null ? void 0 : data.length) && !isLoading && /* @__PURE__ */ jsxs("div", {
|
|
99330
|
-
className: styles$
|
|
99300
|
+
className: styles$f.metricChart,
|
|
99331
99301
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
99332
99302
|
styleClass: "primary",
|
|
99333
99303
|
variant: "p",
|
|
99334
99304
|
className: "",
|
|
99335
99305
|
children: "Preview"
|
|
99336
99306
|
}), /* @__PURE__ */ jsxs("div", {
|
|
99337
|
-
className: styles$
|
|
99307
|
+
className: styles$f["chartTab-wrapper"],
|
|
99338
99308
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
99339
|
-
className: styles$
|
|
99309
|
+
className: styles$f["chartTab-wrapper-head"],
|
|
99340
99310
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
99341
99311
|
styleClass: "primary",
|
|
99342
99312
|
variant: "p",
|
|
99343
99313
|
className: "",
|
|
99344
99314
|
children: "Charts"
|
|
99345
99315
|
}), /* @__PURE__ */ jsxs("div", {
|
|
99346
|
-
className: styles$
|
|
99316
|
+
className: styles$f.chartButtons,
|
|
99347
99317
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
99348
99318
|
type: "button",
|
|
99349
99319
|
variant: "custom",
|
|
99350
|
-
className: (labels2 == null ? void 0 : labels2.length) ? styles$
|
|
99320
|
+
className: (labels2 == null ? void 0 : labels2.length) ? styles$f.sqlfullQuery : styles$f.noQuery,
|
|
99351
99321
|
onClick: (labels2 == null ? void 0 : labels2.length) ? () => setShowFullScreen(true) : void 0,
|
|
99352
99322
|
children: /* @__PURE__ */ jsx(fluentFullScreenMinimize16Filled, {})
|
|
99353
99323
|
}), /* @__PURE__ */ jsx(Button, {
|
|
99354
99324
|
type: "button",
|
|
99355
99325
|
variant: "custom",
|
|
99356
|
-
className: styles$
|
|
99326
|
+
className: styles$f.chartButton,
|
|
99357
99327
|
onClick: () => {
|
|
99358
99328
|
setConfigureShow(false);
|
|
99359
99329
|
setSettingsShow(!isSettingsShow);
|
|
@@ -99362,7 +99332,7 @@ const ChartTab = ({
|
|
|
99362
99332
|
}), /* @__PURE__ */ jsx(Button, {
|
|
99363
99333
|
type: "button",
|
|
99364
99334
|
variant: "custom",
|
|
99365
|
-
className: styles$
|
|
99335
|
+
className: styles$f.chartButton,
|
|
99366
99336
|
onClick: () => {
|
|
99367
99337
|
setSettingsShow(false);
|
|
99368
99338
|
setConfigureShow(!isConfigureShow);
|
|
@@ -99371,9 +99341,9 @@ const ChartTab = ({
|
|
|
99371
99341
|
})]
|
|
99372
99342
|
})]
|
|
99373
99343
|
}), (labels2 == null ? void 0 : labels2.length) ? /* @__PURE__ */ jsxs("div", {
|
|
99374
|
-
className: styles$
|
|
99344
|
+
className: styles$f.labels,
|
|
99375
99345
|
children: [isSettingsShow && /* @__PURE__ */ jsx("div", {
|
|
99376
|
-
className: styles$
|
|
99346
|
+
className: styles$f.chartSettings,
|
|
99377
99347
|
children: /* @__PURE__ */ jsx(ChartSettings, {
|
|
99378
99348
|
chartType: chartType2,
|
|
99379
99349
|
setChartType,
|
|
@@ -99391,7 +99361,7 @@ const ChartTab = ({
|
|
|
99391
99361
|
setSettingsShow
|
|
99392
99362
|
})
|
|
99393
99363
|
}), isConfigureShow && /* @__PURE__ */ jsx("div", {
|
|
99394
|
-
className: styles$
|
|
99364
|
+
className: styles$f.chartConfigure,
|
|
99395
99365
|
children: /* @__PURE__ */ jsx(ChartConfigure, {
|
|
99396
99366
|
setMargins,
|
|
99397
99367
|
margins,
|
|
@@ -99424,21 +99394,21 @@ const ChartTab = ({
|
|
|
99424
99394
|
enableSaveAs: true
|
|
99425
99395
|
})]
|
|
99426
99396
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
99427
|
-
className: styles$
|
|
99397
|
+
className: styles$f.metricChartEmpty,
|
|
99428
99398
|
children: [/* @__PURE__ */ jsx("div", {
|
|
99429
|
-
className: styles$
|
|
99399
|
+
className: styles$f.searchWrapper,
|
|
99430
99400
|
children: /* @__PURE__ */ jsx(akarIconsSearch, {
|
|
99431
|
-
className: styles$
|
|
99401
|
+
className: styles$f.searchIcon
|
|
99432
99402
|
})
|
|
99433
99403
|
}), /* @__PURE__ */ jsx("div", {
|
|
99434
|
-
className: styles$
|
|
99404
|
+
className: styles$f.message,
|
|
99435
99405
|
children: /* @__PURE__ */ jsx(Text, {
|
|
99436
99406
|
styleClass: "font-14b",
|
|
99437
99407
|
variant: "p",
|
|
99438
99408
|
children: "Uh-oh, Nothing to display"
|
|
99439
99409
|
})
|
|
99440
99410
|
}), /* @__PURE__ */ jsx("div", {
|
|
99441
|
-
className: styles$
|
|
99411
|
+
className: styles$f.chartButton,
|
|
99442
99412
|
children: /* @__PURE__ */ jsx(Text, {
|
|
99443
99413
|
styleClass: "font-14a",
|
|
99444
99414
|
variant: "p",
|
|
@@ -99473,23 +99443,25 @@ const container$9 = "_container_1jc0r_1";
|
|
|
99473
99443
|
const wrapper$1 = "_wrapper_1jc0r_5";
|
|
99474
99444
|
const text = "_text_1jc0r_9";
|
|
99475
99445
|
const table$3 = "_table_1jc0r_12";
|
|
99476
|
-
var styles$
|
|
99446
|
+
var styles$e = {
|
|
99477
99447
|
container: container$9,
|
|
99478
99448
|
wrapper: wrapper$1,
|
|
99479
99449
|
text,
|
|
99480
99450
|
table: table$3
|
|
99481
99451
|
};
|
|
99482
|
-
const container$8 = "
|
|
99483
|
-
const table$2 = "
|
|
99484
|
-
const tableHead = "
|
|
99485
|
-
const
|
|
99486
|
-
const
|
|
99487
|
-
const
|
|
99488
|
-
const
|
|
99489
|
-
|
|
99452
|
+
const container$8 = "_container_1uho5_1";
|
|
99453
|
+
const table$2 = "_table_1uho5_9";
|
|
99454
|
+
const tableHead = "_tableHead_1uho5_17";
|
|
99455
|
+
const tableRow$1 = "_tableRow_1uho5_25";
|
|
99456
|
+
const tableHeadCol$1 = "_tableHeadCol_1uho5_33";
|
|
99457
|
+
const tableRowCol$1 = "_tableRowCol_1uho5_41";
|
|
99458
|
+
const empty = "_empty_1uho5_49";
|
|
99459
|
+
const error$2 = "_error_1uho5_57";
|
|
99460
|
+
var styles$d = {
|
|
99490
99461
|
container: container$8,
|
|
99491
99462
|
table: table$2,
|
|
99492
99463
|
tableHead,
|
|
99464
|
+
tableRow: tableRow$1,
|
|
99493
99465
|
tableHeadCol: tableHeadCol$1,
|
|
99494
99466
|
tableRowCol: tableRowCol$1,
|
|
99495
99467
|
empty,
|
|
@@ -99500,15 +99472,16 @@ const MetricTable = ({
|
|
|
99500
99472
|
isError
|
|
99501
99473
|
}) => {
|
|
99502
99474
|
return /* @__PURE__ */ jsxs("div", {
|
|
99503
|
-
className: styles$
|
|
99475
|
+
className: styles$d.container,
|
|
99504
99476
|
children: [!!(data == null ? void 0 : data.length) && !isError && /* @__PURE__ */ jsxs("table", {
|
|
99505
|
-
className: styles$
|
|
99477
|
+
className: styles$d.table,
|
|
99506
99478
|
children: [/* @__PURE__ */ jsx("thead", {
|
|
99507
|
-
className: styles$
|
|
99479
|
+
className: styles$d.tableHead,
|
|
99508
99480
|
children: /* @__PURE__ */ jsx("tr", {
|
|
99481
|
+
className: styles$d.tableRow,
|
|
99509
99482
|
children: Object.keys(data[0]).map((item) => {
|
|
99510
99483
|
return /* @__PURE__ */ jsx("th", {
|
|
99511
|
-
className: styles$
|
|
99484
|
+
className: styles$d.tableHeadCol,
|
|
99512
99485
|
scope: "col",
|
|
99513
99486
|
children: /* @__PURE__ */ jsx(Text, {
|
|
99514
99487
|
styleClass: "font-14c",
|
|
@@ -99521,7 +99494,7 @@ const MetricTable = ({
|
|
|
99521
99494
|
}), /* @__PURE__ */ jsx("tbody", {
|
|
99522
99495
|
children: data == null ? void 0 : data.map((item, i2) => /* @__PURE__ */ jsx("tr", {
|
|
99523
99496
|
children: Object.keys(data[0]).map((d2, index) => /* @__PURE__ */ jsx("td", {
|
|
99524
|
-
className: styles$
|
|
99497
|
+
className: styles$d.tableRowCol,
|
|
99525
99498
|
children: /* @__PURE__ */ jsx(Text, {
|
|
99526
99499
|
styleClass: "font-14",
|
|
99527
99500
|
variant: "p",
|
|
@@ -99531,10 +99504,10 @@ const MetricTable = ({
|
|
|
99531
99504
|
}, i2))
|
|
99532
99505
|
})]
|
|
99533
99506
|
}), !(data == null ? void 0 : data.length) && !isError && /* @__PURE__ */ jsx("div", {
|
|
99534
|
-
className: styles$
|
|
99507
|
+
className: styles$d.empty,
|
|
99535
99508
|
children: "Table is empty"
|
|
99536
99509
|
}), isError && /* @__PURE__ */ jsx("div", {
|
|
99537
|
-
className: styles$
|
|
99510
|
+
className: styles$d.error,
|
|
99538
99511
|
children: data.message
|
|
99539
99512
|
})]
|
|
99540
99513
|
});
|
|
@@ -99543,18 +99516,18 @@ const InputTables = ({
|
|
|
99543
99516
|
previewTableDataList
|
|
99544
99517
|
}) => {
|
|
99545
99518
|
return /* @__PURE__ */ jsx("div", {
|
|
99546
|
-
className: styles$
|
|
99519
|
+
className: styles$e.container,
|
|
99547
99520
|
children: /* @__PURE__ */ jsx("div", {
|
|
99548
|
-
className: styles$
|
|
99521
|
+
className: styles$e.wrapper,
|
|
99549
99522
|
children: previewTableDataList == null ? void 0 : previewTableDataList.map((table2) => /* @__PURE__ */ jsxs("div", {
|
|
99550
|
-
className: styles$
|
|
99523
|
+
className: styles$e.text,
|
|
99551
99524
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
99552
99525
|
variant: "h1",
|
|
99553
99526
|
styleClass: "primary",
|
|
99554
99527
|
className: "",
|
|
99555
99528
|
children: table2.name
|
|
99556
99529
|
}), /* @__PURE__ */ jsx("div", {
|
|
99557
|
-
className: styles$
|
|
99530
|
+
className: styles$e.table,
|
|
99558
99531
|
children: /* @__PURE__ */ jsx(MetricTable, {
|
|
99559
99532
|
data: table2.data,
|
|
99560
99533
|
isError: table2.isError
|
|
@@ -99564,36 +99537,36 @@ const InputTables = ({
|
|
|
99564
99537
|
})
|
|
99565
99538
|
});
|
|
99566
99539
|
};
|
|
99567
|
-
const container$7 = "
|
|
99568
|
-
const header$1 = "
|
|
99569
|
-
const tabButton$1 = "
|
|
99570
|
-
const selectedTab = "
|
|
99571
|
-
const table$1 = "
|
|
99572
|
-
var styles$
|
|
99540
|
+
const container$7 = "_container_12jmm_1";
|
|
99541
|
+
const header$1 = "_header_12jmm_5";
|
|
99542
|
+
const tabButton$1 = "_tabButton_12jmm_16";
|
|
99543
|
+
const selectedTab = "_selectedTab_12jmm_19";
|
|
99544
|
+
const table$1 = "_table_12jmm_22";
|
|
99545
|
+
var styles$c = {
|
|
99573
99546
|
container: container$7,
|
|
99574
99547
|
header: header$1,
|
|
99575
|
-
"text-container": "_text-
|
|
99576
|
-
"btn-container": "_btn-
|
|
99548
|
+
"text-container": "_text-container_12jmm_9",
|
|
99549
|
+
"btn-container": "_btn-container_12jmm_13",
|
|
99577
99550
|
tabButton: tabButton$1,
|
|
99578
99551
|
selectedTab,
|
|
99579
99552
|
table: table$1
|
|
99580
99553
|
};
|
|
99581
|
-
const tableData = "
|
|
99582
|
-
const tableHeadCol = "
|
|
99583
|
-
const tableRow = "
|
|
99584
|
-
const tableRowCol = "
|
|
99585
|
-
const row = "
|
|
99586
|
-
const container$6 = "
|
|
99587
|
-
const table = "
|
|
99588
|
-
const previewTable = "
|
|
99589
|
-
const preview = "
|
|
99590
|
-
const previewText = "
|
|
99591
|
-
const noData = "
|
|
99592
|
-
const error$1 = "
|
|
99593
|
-
const errorMsg = "
|
|
99594
|
-
const tableIcon = "
|
|
99595
|
-
var styles$
|
|
99596
|
-
"table-loader-container": "_table-loader-
|
|
99554
|
+
const tableData = "_tableData_1j4gc_7";
|
|
99555
|
+
const tableHeadCol = "_tableHeadCol_1j4gc_13";
|
|
99556
|
+
const tableRow = "_tableRow_1j4gc_19";
|
|
99557
|
+
const tableRowCol = "_tableRowCol_1j4gc_25";
|
|
99558
|
+
const row = "_row_1j4gc_31";
|
|
99559
|
+
const container$6 = "_container_1j4gc_37";
|
|
99560
|
+
const table = "_table_1j4gc_1";
|
|
99561
|
+
const previewTable = "_previewTable_1j4gc_49";
|
|
99562
|
+
const preview = "_preview_1j4gc_49";
|
|
99563
|
+
const previewText = "_previewText_1j4gc_61";
|
|
99564
|
+
const noData = "_noData_1j4gc_67";
|
|
99565
|
+
const error$1 = "_error_1j4gc_73";
|
|
99566
|
+
const errorMsg = "_errorMsg_1j4gc_79";
|
|
99567
|
+
const tableIcon = "_tableIcon_1j4gc_85";
|
|
99568
|
+
var styles$b = {
|
|
99569
|
+
"table-loader-container": "_table-loader-container_1j4gc_1",
|
|
99597
99570
|
tableData,
|
|
99598
99571
|
tableHeadCol,
|
|
99599
99572
|
tableRow,
|
|
@@ -99626,21 +99599,21 @@ const Table = ({
|
|
|
99626
99599
|
error: error2
|
|
99627
99600
|
}) => {
|
|
99628
99601
|
return /* @__PURE__ */ jsx("div", {
|
|
99629
|
-
className: styles$
|
|
99602
|
+
className: styles$b.container,
|
|
99630
99603
|
children: /* @__PURE__ */ jsxs("div", {
|
|
99631
|
-
className: styles$
|
|
99604
|
+
className: styles$b.previewTable,
|
|
99632
99605
|
children: [/* @__PURE__ */ jsx("div", {
|
|
99633
|
-
className: styles$
|
|
99606
|
+
className: styles$b.preview,
|
|
99634
99607
|
children: /* @__PURE__ */ jsx(Text, {
|
|
99635
99608
|
styleClass: "font-14c",
|
|
99636
99609
|
variant: "h1",
|
|
99637
|
-
className: styles$
|
|
99610
|
+
className: styles$b.previewText,
|
|
99638
99611
|
children: "Preview"
|
|
99639
99612
|
})
|
|
99640
99613
|
}), /* @__PURE__ */ jsxs("div", {
|
|
99641
|
-
className: styles$
|
|
99614
|
+
className: styles$b.tableData,
|
|
99642
99615
|
children: [isLoading && !(data == null ? void 0 : data.length) && /* @__PURE__ */ jsx("div", {
|
|
99643
|
-
className: styles$
|
|
99616
|
+
className: styles$b["table-loader-container"],
|
|
99644
99617
|
children: /* @__PURE__ */ jsx(eosIconsLoading, {
|
|
99645
99618
|
style: {
|
|
99646
99619
|
width: "50px",
|
|
@@ -99649,13 +99622,13 @@ const Table = ({
|
|
|
99649
99622
|
}
|
|
99650
99623
|
})
|
|
99651
99624
|
}), !!(data == null ? void 0 : data.length) && !isLoading && /* @__PURE__ */ jsxs("table", {
|
|
99652
|
-
className: styles$
|
|
99625
|
+
className: styles$b.table,
|
|
99653
99626
|
children: [/* @__PURE__ */ jsx("thead", {
|
|
99654
99627
|
children: /* @__PURE__ */ jsx("tr", {
|
|
99655
|
-
className: styles$
|
|
99628
|
+
className: styles$b.row,
|
|
99656
99629
|
children: Object.keys(data[0]).map((item) => {
|
|
99657
99630
|
return /* @__PURE__ */ jsx("th", {
|
|
99658
|
-
className: styles$
|
|
99631
|
+
className: styles$b.tableHeadCol,
|
|
99659
99632
|
scope: "col",
|
|
99660
99633
|
children: /* @__PURE__ */ jsx(Text, {
|
|
99661
99634
|
styleClass: "font-14c",
|
|
@@ -99667,9 +99640,9 @@ const Table = ({
|
|
|
99667
99640
|
})
|
|
99668
99641
|
}), /* @__PURE__ */ jsx("tbody", {
|
|
99669
99642
|
children: data.map((item, i2) => /* @__PURE__ */ jsx("tr", {
|
|
99670
|
-
className: styles$
|
|
99643
|
+
className: styles$b.tableRow,
|
|
99671
99644
|
children: Object.keys(data[0]).map((d2, index) => /* @__PURE__ */ jsx("td", {
|
|
99672
|
-
className: styles$
|
|
99645
|
+
className: styles$b.tableRowCol,
|
|
99673
99646
|
children: /* @__PURE__ */ jsx(Text, {
|
|
99674
99647
|
styleClass: "font-14",
|
|
99675
99648
|
variant: "p",
|
|
@@ -99679,9 +99652,9 @@ const Table = ({
|
|
|
99679
99652
|
}, i2))
|
|
99680
99653
|
})]
|
|
99681
99654
|
}), !(data == null ? void 0 : data.length) && !isLoading && !error2.length && /* @__PURE__ */ jsxs("div", {
|
|
99682
|
-
className: styles$
|
|
99655
|
+
className: styles$b.noData,
|
|
99683
99656
|
children: [/* @__PURE__ */ jsx(teenyiconsTableOutline, {
|
|
99684
|
-
className: styles$
|
|
99657
|
+
className: styles$b.tableIcon,
|
|
99685
99658
|
width: "60px",
|
|
99686
99659
|
height: "60px"
|
|
99687
99660
|
}), /* @__PURE__ */ jsx(Text, {
|
|
@@ -99694,10 +99667,10 @@ const Table = ({
|
|
|
99694
99667
|
children: "Run your query to preview data"
|
|
99695
99668
|
})]
|
|
99696
99669
|
}), error2 && /* @__PURE__ */ jsx("div", {
|
|
99697
|
-
className: styles$
|
|
99670
|
+
className: styles$b.error,
|
|
99698
99671
|
children: /* @__PURE__ */ jsx(Text, {
|
|
99699
99672
|
styleClass: "primary",
|
|
99700
|
-
className: styles$
|
|
99673
|
+
className: styles$b.errorMsg,
|
|
99701
99674
|
variant: "p",
|
|
99702
99675
|
children: error2
|
|
99703
99676
|
})
|
|
@@ -99714,11 +99687,11 @@ const TableTab = ({
|
|
|
99714
99687
|
}) => {
|
|
99715
99688
|
const [selectedTab2, setSelectedTab] = useState(OUTPUT_TABLE);
|
|
99716
99689
|
return /* @__PURE__ */ jsxs("div", {
|
|
99717
|
-
className: styles$
|
|
99690
|
+
className: styles$c.container,
|
|
99718
99691
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
99719
|
-
className: styles$
|
|
99692
|
+
className: styles$c.header,
|
|
99720
99693
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
99721
|
-
className: styles$
|
|
99694
|
+
className: styles$c["text-container"],
|
|
99722
99695
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
99723
99696
|
styleClass: "font-14c",
|
|
99724
99697
|
variant: "h1",
|
|
@@ -99729,17 +99702,17 @@ const TableTab = ({
|
|
|
99729
99702
|
children: "Preview your selected table & output table values"
|
|
99730
99703
|
})]
|
|
99731
99704
|
}), /* @__PURE__ */ jsxs("div", {
|
|
99732
|
-
className: styles$
|
|
99705
|
+
className: styles$c["btn-container"],
|
|
99733
99706
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
99734
99707
|
type: "button",
|
|
99735
99708
|
variant: "custom",
|
|
99736
|
-
className: `${styles$
|
|
99709
|
+
className: `${styles$c.tabButton} ${selectedTab2 === INPUT_TABLE && styles$c.selectedTab}`,
|
|
99737
99710
|
onClick: () => setSelectedTab(INPUT_TABLE),
|
|
99738
99711
|
children: "Input Table"
|
|
99739
99712
|
}), /* @__PURE__ */ jsx(Button, {
|
|
99740
99713
|
type: "button",
|
|
99741
99714
|
variant: "custom",
|
|
99742
|
-
className: `${styles$
|
|
99715
|
+
className: `${styles$c.tabButton} ${selectedTab2 === OUTPUT_TABLE && styles$c.selectedTab}`,
|
|
99743
99716
|
onClick: () => setSelectedTab(OUTPUT_TABLE),
|
|
99744
99717
|
children: "Output Table"
|
|
99745
99718
|
})]
|
|
@@ -99747,7 +99720,7 @@ const TableTab = ({
|
|
|
99747
99720
|
}), selectedTab2 === INPUT_TABLE && /* @__PURE__ */ jsx(InputTables, {
|
|
99748
99721
|
previewTableDataList
|
|
99749
99722
|
}), selectedTab2 === OUTPUT_TABLE && /* @__PURE__ */ jsx("div", {
|
|
99750
|
-
className: styles$
|
|
99723
|
+
className: styles$c.table,
|
|
99751
99724
|
children: /* @__PURE__ */ jsx(Table, {
|
|
99752
99725
|
data: outpuTableData,
|
|
99753
99726
|
isLoading: isOutputLoading,
|
|
@@ -99756,13 +99729,13 @@ const TableTab = ({
|
|
|
99756
99729
|
})]
|
|
99757
99730
|
});
|
|
99758
99731
|
};
|
|
99759
|
-
const wrapper = "
|
|
99760
|
-
const searchCommand = "
|
|
99761
|
-
const tabButton = "
|
|
99762
|
-
const tabActive = "
|
|
99763
|
-
var styles$
|
|
99764
|
-
"main-container": "_main-
|
|
99765
|
-
"outputTab-header": "_outputTab-
|
|
99732
|
+
const wrapper = "_wrapper_8x5tf_9";
|
|
99733
|
+
const searchCommand = "_searchCommand_8x5tf_12";
|
|
99734
|
+
const tabButton = "_tabButton_8x5tf_15";
|
|
99735
|
+
const tabActive = "_tabActive_8x5tf_18";
|
|
99736
|
+
var styles$a = {
|
|
99737
|
+
"main-container": "_main-container_8x5tf_1",
|
|
99738
|
+
"outputTab-header": "_outputTab-header_8x5tf_5",
|
|
99766
99739
|
wrapper,
|
|
99767
99740
|
searchCommand,
|
|
99768
99741
|
tabButton,
|
|
@@ -99823,24 +99796,24 @@ const MetricOutput = ({
|
|
|
99823
99796
|
}) => {
|
|
99824
99797
|
const [selectedTab2, setSelectedTab] = useState(TABLE_TAB);
|
|
99825
99798
|
return /* @__PURE__ */ jsxs("div", {
|
|
99826
|
-
className: styles$
|
|
99799
|
+
className: styles$a["main-container"],
|
|
99827
99800
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
99828
|
-
className: styles$
|
|
99801
|
+
className: styles$a["outputTab-header"],
|
|
99829
99802
|
children: [/* @__PURE__ */ jsxs(Button, {
|
|
99830
99803
|
type: "button",
|
|
99831
99804
|
variant: "custom",
|
|
99832
|
-
className: `${styles$
|
|
99805
|
+
className: `${styles$a.tabButton} ${selectedTab2 === TABLE_TAB && styles$a.tabActive}`,
|
|
99833
99806
|
onClick: () => setSelectedTab(TABLE_TAB),
|
|
99834
99807
|
children: [/* @__PURE__ */ jsx(materialSymbolsTableViewSharp, {}), " Tables"]
|
|
99835
99808
|
}), /* @__PURE__ */ jsxs(Button, {
|
|
99836
99809
|
type: "button",
|
|
99837
99810
|
variant: "custom",
|
|
99838
|
-
className: `${styles$
|
|
99811
|
+
className: `${styles$a.tabButton} ${selectedTab2 === CHART_TAB && styles$a.tabActive}`,
|
|
99839
99812
|
onClick: () => setSelectedTab(CHART_TAB),
|
|
99840
99813
|
children: [/* @__PURE__ */ jsx(phChartLineUpDuotone, {}), "Visualizations"]
|
|
99841
99814
|
})]
|
|
99842
99815
|
}), /* @__PURE__ */ jsxs("div", {
|
|
99843
|
-
className: styles$
|
|
99816
|
+
className: styles$a.wrapper,
|
|
99844
99817
|
children: [selectedTab2 === TABLE_TAB && /* @__PURE__ */ jsx(TableTab, {
|
|
99845
99818
|
outpuTableData: data,
|
|
99846
99819
|
isOutputLoading: isLoading,
|
|
@@ -99880,75 +99853,75 @@ const MetricOutput = ({
|
|
|
99880
99853
|
})]
|
|
99881
99854
|
});
|
|
99882
99855
|
};
|
|
99883
|
-
const group$1 = "
|
|
99884
|
-
const tooltipWrapper = "
|
|
99885
|
-
const tooltip = "
|
|
99886
|
-
const dropdown = "
|
|
99887
|
-
const filterDropdown = "
|
|
99888
|
-
const filterValues = "
|
|
99889
|
-
const columnText = "
|
|
99890
|
-
const disabled = "
|
|
99891
|
-
const checkIcon = "
|
|
99892
|
-
const generateButton = "
|
|
99893
|
-
var styles$
|
|
99894
|
-
"form-container": "_form-
|
|
99895
|
-
"field-container": "_field-
|
|
99896
|
-
"field-label": "_field-
|
|
99897
|
-
"field-wrapper": "_field-
|
|
99898
|
-
"field-inner-container": "_field-inner-
|
|
99899
|
-
"field-value": "_field-
|
|
99900
|
-
"field-add-btn": "_field-add-
|
|
99901
|
-
"field-value-container": "_field-value-
|
|
99902
|
-
"field-prompt": "_field-
|
|
99856
|
+
const group$1 = "_group_vmreb_1";
|
|
99857
|
+
const tooltipWrapper = "_tooltipWrapper_vmreb_37";
|
|
99858
|
+
const tooltip = "_tooltip_vmreb_37";
|
|
99859
|
+
const dropdown = "_dropdown_vmreb_49";
|
|
99860
|
+
const filterDropdown$1 = "_filterDropdown_vmreb_53";
|
|
99861
|
+
const filterValues = "_filterValues_vmreb_57";
|
|
99862
|
+
const columnText = "_columnText_vmreb_61";
|
|
99863
|
+
const disabled = "_disabled_vmreb_65";
|
|
99864
|
+
const checkIcon = "_checkIcon_vmreb_69";
|
|
99865
|
+
const generateButton = "_generateButton_vmreb_73";
|
|
99866
|
+
var styles$9 = {
|
|
99867
|
+
"form-container": "_form-container_vmreb_1",
|
|
99868
|
+
"field-container": "_field-container_vmreb_5",
|
|
99869
|
+
"field-label": "_field-label_vmreb_9",
|
|
99870
|
+
"field-wrapper": "_field-wrapper_vmreb_13",
|
|
99871
|
+
"field-inner-container": "_field-inner-container_vmreb_17",
|
|
99872
|
+
"field-value": "_field-value_vmreb_21",
|
|
99873
|
+
"field-add-btn": "_field-add-btn_vmreb_25",
|
|
99874
|
+
"field-value-container": "_field-value-container_vmreb_29",
|
|
99875
|
+
"field-prompt": "_field-prompt_vmreb_33",
|
|
99903
99876
|
group: group$1,
|
|
99904
99877
|
tooltipWrapper,
|
|
99905
99878
|
tooltip,
|
|
99906
99879
|
dropdown,
|
|
99907
|
-
filterDropdown,
|
|
99880
|
+
filterDropdown: filterDropdown$1,
|
|
99908
99881
|
filterValues,
|
|
99909
99882
|
columnText,
|
|
99910
99883
|
disabled,
|
|
99911
99884
|
checkIcon,
|
|
99912
99885
|
generateButton
|
|
99913
99886
|
};
|
|
99914
|
-
const button$
|
|
99915
|
-
const menu$
|
|
99916
|
-
const inputLabel = "
|
|
99917
|
-
const input = "
|
|
99918
|
-
const menuContainer = "
|
|
99919
|
-
const icon = "
|
|
99920
|
-
const container$5 = "
|
|
99921
|
-
var styles$
|
|
99922
|
-
button: button$
|
|
99923
|
-
menu: menu$
|
|
99887
|
+
const button$3 = "_button_1qzqi_1";
|
|
99888
|
+
const menu$2 = "_menu_1qzqi_7";
|
|
99889
|
+
const inputLabel = "_inputLabel_1qzqi_13";
|
|
99890
|
+
const input = "_input_1qzqi_13";
|
|
99891
|
+
const menuContainer$1 = "_menuContainer_1qzqi_25";
|
|
99892
|
+
const icon = "_icon_1qzqi_31";
|
|
99893
|
+
const container$5 = "_container_1qzqi_37";
|
|
99894
|
+
var styles$8 = {
|
|
99895
|
+
button: button$3,
|
|
99896
|
+
menu: menu$2,
|
|
99924
99897
|
inputLabel,
|
|
99925
99898
|
input,
|
|
99926
|
-
menuContainer,
|
|
99899
|
+
menuContainer: menuContainer$1,
|
|
99927
99900
|
icon,
|
|
99928
99901
|
container: container$5
|
|
99929
99902
|
};
|
|
99930
|
-
const container$4 = "
|
|
99931
|
-
const popover = "
|
|
99932
|
-
const button$
|
|
99933
|
-
const buttonOpen = "
|
|
99934
|
-
const menu = "
|
|
99935
|
-
const enter = "
|
|
99936
|
-
const enterFrom = "
|
|
99937
|
-
const enterTo = "
|
|
99938
|
-
const leave = "
|
|
99939
|
-
const leaveFrom = "
|
|
99940
|
-
const leaveTo = "
|
|
99941
|
-
const center = "
|
|
99942
|
-
const top = "
|
|
99943
|
-
const bottom = "
|
|
99944
|
-
const left = "
|
|
99945
|
-
const right = "
|
|
99946
|
-
var styles$
|
|
99903
|
+
const container$4 = "_container_1qflp_1";
|
|
99904
|
+
const popover = "_popover_1qflp_9";
|
|
99905
|
+
const button$2 = "_button_1qflp_17";
|
|
99906
|
+
const buttonOpen = "_buttonOpen_1qflp_25";
|
|
99907
|
+
const menu$1 = "_menu_1qflp_33";
|
|
99908
|
+
const enter = "_enter_1qflp_41";
|
|
99909
|
+
const enterFrom = "_enterFrom_1qflp_49";
|
|
99910
|
+
const enterTo = "_enterTo_1qflp_57";
|
|
99911
|
+
const leave = "_leave_1qflp_65";
|
|
99912
|
+
const leaveFrom = "_leaveFrom_1qflp_73";
|
|
99913
|
+
const leaveTo = "_leaveTo_1qflp_81";
|
|
99914
|
+
const center = "_center_1qflp_89";
|
|
99915
|
+
const top = "_top_1qflp_97";
|
|
99916
|
+
const bottom = "_bottom_1qflp_105";
|
|
99917
|
+
const left = "_left_1qflp_113";
|
|
99918
|
+
const right = "_right_1qflp_121";
|
|
99919
|
+
var styles$7 = {
|
|
99947
99920
|
container: container$4,
|
|
99948
99921
|
popover,
|
|
99949
|
-
button: button$
|
|
99922
|
+
button: button$2,
|
|
99950
99923
|
buttonOpen,
|
|
99951
|
-
menu,
|
|
99924
|
+
menu: menu$1,
|
|
99952
99925
|
enter,
|
|
99953
99926
|
enterFrom,
|
|
99954
99927
|
enterTo,
|
|
@@ -99960,18 +99933,18 @@ var styles$6 = {
|
|
|
99960
99933
|
bottom,
|
|
99961
99934
|
left,
|
|
99962
99935
|
right,
|
|
99963
|
-
"left-top-end": "_left-top-
|
|
99964
|
-
"right-top-end": "_right-top-
|
|
99965
|
-
"left-bottom-end": "_left-bottom-
|
|
99966
|
-
"right-bottom-end": "_right-bottom-
|
|
99967
|
-
"top-left": "_top-
|
|
99968
|
-
"top-right": "_top-
|
|
99969
|
-
"bottom-left": "_bottom-
|
|
99970
|
-
"bottom-right": "_bottom-
|
|
99971
|
-
"left-top": "_left-
|
|
99972
|
-
"left-bottom": "_left-
|
|
99973
|
-
"right-top": "_right-
|
|
99974
|
-
"right-bottom": "_right-
|
|
99936
|
+
"left-top-end": "_left-top-end_1qflp_129",
|
|
99937
|
+
"right-top-end": "_right-top-end_1qflp_137",
|
|
99938
|
+
"left-bottom-end": "_left-bottom-end_1qflp_145",
|
|
99939
|
+
"right-bottom-end": "_right-bottom-end_1qflp_153",
|
|
99940
|
+
"top-left": "_top-left_1qflp_161",
|
|
99941
|
+
"top-right": "_top-right_1qflp_169",
|
|
99942
|
+
"bottom-left": "_bottom-left_1qflp_177",
|
|
99943
|
+
"bottom-right": "_bottom-right_1qflp_185",
|
|
99944
|
+
"left-top": "_left-top_1qflp_129",
|
|
99945
|
+
"left-bottom": "_left-bottom_1qflp_145",
|
|
99946
|
+
"right-top": "_right-top_1qflp_137",
|
|
99947
|
+
"right-bottom": "_right-bottom_1qflp_153"
|
|
99975
99948
|
};
|
|
99976
99949
|
const PopoverMenu = ({
|
|
99977
99950
|
className = "",
|
|
@@ -99991,26 +99964,26 @@ const PopoverMenu = ({
|
|
|
99991
99964
|
});
|
|
99992
99965
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
99993
99966
|
children: /* @__PURE__ */ jsxs("div", {
|
|
99994
|
-
className: `${styles$
|
|
99967
|
+
className: `${styles$7.container} ${className}`,
|
|
99995
99968
|
ref: wrapperRef,
|
|
99996
99969
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
99997
|
-
className: `${buttonClass} ${isOpen ? styles$
|
|
99970
|
+
className: `${buttonClass} ${isOpen ? styles$7.buttonOpen : ""} ${styles$7.button}`,
|
|
99998
99971
|
type: "button",
|
|
99999
99972
|
variant: "custom",
|
|
100000
99973
|
onClick: () => !isDisabled && setOpen((prev) => !prev),
|
|
100001
99974
|
children: button2
|
|
100002
99975
|
}), !isDisabled ? /* @__PURE__ */ jsx("div", {
|
|
100003
|
-
className: `${styles$
|
|
99976
|
+
className: `${styles$7.popover} ${styles$7[position2]} ${menuContainerClass}`,
|
|
100004
99977
|
children: /* @__PURE__ */ jsx(Je, {
|
|
100005
99978
|
as: "div",
|
|
100006
|
-
className: `${styles$
|
|
99979
|
+
className: `${styles$7.menu} ${menuClass}`,
|
|
100007
99980
|
show: isOpen,
|
|
100008
|
-
enter: styles$
|
|
100009
|
-
enterFrom: styles$
|
|
100010
|
-
enterTo: styles$
|
|
100011
|
-
leave: styles$
|
|
100012
|
-
leaveFrom: styles$
|
|
100013
|
-
leaveTo: styles$
|
|
99981
|
+
enter: styles$7.enter,
|
|
99982
|
+
enterFrom: styles$7.enterFrom,
|
|
99983
|
+
enterTo: styles$7.enterTo,
|
|
99984
|
+
leave: styles$7.leave,
|
|
99985
|
+
leaveFrom: styles$7.leaveFrom,
|
|
99986
|
+
leaveTo: styles$7.leaveTo,
|
|
100014
99987
|
children: children2
|
|
100015
99988
|
})
|
|
100016
99989
|
}) : null]
|
|
@@ -100068,14 +100041,14 @@ const TimeGrainField = ({
|
|
|
100068
100041
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
100069
100042
|
children: /* @__PURE__ */ jsx(PopoverMenu$1, {
|
|
100070
100043
|
className,
|
|
100071
|
-
buttonClass: styles$
|
|
100044
|
+
buttonClass: styles$8.button,
|
|
100072
100045
|
isDisabled,
|
|
100073
|
-
menuClass: styles$
|
|
100074
|
-
menuContainerClass: styles$
|
|
100046
|
+
menuClass: styles$8.menu,
|
|
100047
|
+
menuContainerClass: styles$8.menuContainer,
|
|
100075
100048
|
button: /* @__PURE__ */ jsx(InputField, {
|
|
100076
100049
|
label: isShowlabel ? "Time Grain" : "",
|
|
100077
|
-
labelClass: styles$
|
|
100078
|
-
inputClass: styles$
|
|
100050
|
+
labelClass: styles$8.inputLabel,
|
|
100051
|
+
inputClass: styles$8.input,
|
|
100079
100052
|
type: "text",
|
|
100080
100053
|
defaultValue: timeGrainValue,
|
|
100081
100054
|
placeholder: "time range",
|
|
@@ -100091,12 +100064,12 @@ const TimeGrainField = ({
|
|
|
100091
100064
|
})),
|
|
100092
100065
|
isDisabled: true,
|
|
100093
100066
|
icon: /* @__PURE__ */ jsx("span", {
|
|
100094
|
-
className: styles$
|
|
100067
|
+
className: styles$8.icon,
|
|
100095
100068
|
children: /* @__PURE__ */ jsx(materialSymbolsKeyboardArrowDown, {})
|
|
100096
100069
|
})
|
|
100097
100070
|
}),
|
|
100098
100071
|
children: /* @__PURE__ */ jsxs("div", {
|
|
100099
|
-
className: styles$
|
|
100072
|
+
className: styles$8.container,
|
|
100100
100073
|
children: [/* @__PURE__ */ jsx(Select, {
|
|
100101
100074
|
options: timeGrainOptions,
|
|
100102
100075
|
defaultValue: state.value,
|
|
@@ -100360,7 +100333,7 @@ const ModalFooter = ({
|
|
|
100360
100333
|
className
|
|
100361
100334
|
}) => {
|
|
100362
100335
|
return /* @__PURE__ */ jsx("section", {
|
|
100363
|
-
className: `${styles$
|
|
100336
|
+
className: `${styles$u.footer} ${className}`,
|
|
100364
100337
|
children: children2
|
|
100365
100338
|
});
|
|
100366
100339
|
};
|
|
@@ -100455,7 +100428,7 @@ const MetricForm = ({
|
|
|
100455
100428
|
if (dateTimeColumnList.length) {
|
|
100456
100429
|
setTimeColumn({
|
|
100457
100430
|
value: dateTimeColumnList[0].name,
|
|
100458
|
-
label: dateTimeColumnList[0].
|
|
100431
|
+
label: dateTimeColumnList[0].as
|
|
100459
100432
|
});
|
|
100460
100433
|
} else {
|
|
100461
100434
|
setTimeColumn({
|
|
@@ -100542,26 +100515,27 @@ const MetricForm = ({
|
|
|
100542
100515
|
setSelectedGroupBy(selectedDimensions);
|
|
100543
100516
|
}, [selectedDimensions, isEnableGroupBy]);
|
|
100544
100517
|
return /* @__PURE__ */ jsxs("div", {
|
|
100545
|
-
className: styles$
|
|
100518
|
+
className: styles$9["form-container"],
|
|
100546
100519
|
children: [!isDisableTimeColumn && /* @__PURE__ */ jsxs("div", {
|
|
100547
|
-
className: styles$
|
|
100520
|
+
className: styles$9["field-container"],
|
|
100548
100521
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
100549
100522
|
variant: "h1",
|
|
100550
100523
|
styleClass: "custom",
|
|
100551
|
-
className: styles$
|
|
100524
|
+
className: styles$9["field-label"],
|
|
100552
100525
|
children: "Time Filter"
|
|
100553
100526
|
}), /* @__PURE__ */ jsx("div", {
|
|
100554
|
-
className: styles$
|
|
100527
|
+
className: styles$9["field-wrapper"],
|
|
100555
100528
|
children: /* @__PURE__ */ jsxs("div", {
|
|
100556
|
-
className: styles$
|
|
100529
|
+
className: styles$9["field-inner-container"],
|
|
100557
100530
|
children: [/* @__PURE__ */ jsx(FloatingDropDown$1, {
|
|
100558
100531
|
onChange: setTimeColumn,
|
|
100559
100532
|
selectedOption: timeColumn,
|
|
100560
100533
|
options: dateTimeColumnList.map(({
|
|
100561
|
-
name
|
|
100534
|
+
name,
|
|
100535
|
+
as
|
|
100562
100536
|
}) => ({
|
|
100563
100537
|
value: name,
|
|
100564
|
-
label:
|
|
100538
|
+
label: as
|
|
100565
100539
|
})),
|
|
100566
100540
|
isDisabled: isDisableTimeColumn,
|
|
100567
100541
|
labelVariant: "static",
|
|
@@ -100574,29 +100548,29 @@ const MetricForm = ({
|
|
|
100574
100548
|
}), timeGrainValue && /* @__PURE__ */ jsxs(Button, {
|
|
100575
100549
|
type: "button",
|
|
100576
100550
|
variant: "custom",
|
|
100577
|
-
className: styles$
|
|
100551
|
+
className: styles$9["field-value"],
|
|
100578
100552
|
onClick: () => setTimeGrainValue(""),
|
|
100579
100553
|
children: [timeGrainValue, " ", /* @__PURE__ */ jsx(radixIconsCross2, {})]
|
|
100580
100554
|
})]
|
|
100581
100555
|
})
|
|
100582
100556
|
})]
|
|
100583
100557
|
}), !isDisableAddMetric && /* @__PURE__ */ jsxs("div", {
|
|
100584
|
-
className: styles$
|
|
100558
|
+
className: styles$9["field-container"],
|
|
100585
100559
|
children: [/* @__PURE__ */ jsxs(Text, {
|
|
100586
100560
|
variant: "h1",
|
|
100587
100561
|
styleClass: "custom",
|
|
100588
|
-
className: styles$
|
|
100562
|
+
className: styles$9["field-label"],
|
|
100589
100563
|
children: ["Metric Creation", /* @__PURE__ */ jsxs("span", {
|
|
100590
|
-
className: styles$
|
|
100564
|
+
className: styles$9.tooltipWrapper,
|
|
100591
100565
|
children: [/* @__PURE__ */ jsx(akarIconsInfo, {}), /* @__PURE__ */ jsx("span", {
|
|
100592
|
-
className: styles$
|
|
100566
|
+
className: styles$9.tooltip,
|
|
100593
100567
|
children: "configure metric columns"
|
|
100594
100568
|
})]
|
|
100595
100569
|
})]
|
|
100596
100570
|
}), /* @__PURE__ */ jsx("div", {
|
|
100597
|
-
className: styles$
|
|
100571
|
+
className: styles$9["field-wrapper"],
|
|
100598
100572
|
children: /* @__PURE__ */ jsxs("div", {
|
|
100599
|
-
className: styles$
|
|
100573
|
+
className: styles$9["field-inner-container"],
|
|
100600
100574
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
100601
100575
|
variant: "p",
|
|
100602
100576
|
styleClass: "font-14",
|
|
@@ -100604,7 +100578,7 @@ const MetricForm = ({
|
|
|
100604
100578
|
}), /* @__PURE__ */ jsxs(Button, {
|
|
100605
100579
|
type: "button",
|
|
100606
100580
|
variant: "secondary",
|
|
100607
|
-
className: styles$
|
|
100581
|
+
className: styles$9["field-add-btn"],
|
|
100608
100582
|
onClick: () => {
|
|
100609
100583
|
setOpenMetric(true);
|
|
100610
100584
|
setAliasValue("");
|
|
@@ -100612,11 +100586,11 @@ const MetricForm = ({
|
|
|
100612
100586
|
isDisabled: isDisableAddMetric,
|
|
100613
100587
|
children: [/* @__PURE__ */ jsx(lucidePlusCircle, {}), " Add Aggregate Column"]
|
|
100614
100588
|
}), /* @__PURE__ */ jsx("div", {
|
|
100615
|
-
className: styles$
|
|
100589
|
+
className: styles$9["field-value-container"],
|
|
100616
100590
|
children: metrics.map((metric) => /* @__PURE__ */ jsxs(Button, {
|
|
100617
100591
|
type: "button",
|
|
100618
100592
|
variant: "custom",
|
|
100619
|
-
className: styles$
|
|
100593
|
+
className: styles$9["field-value"],
|
|
100620
100594
|
onClick: () => setMetrics((prev) => prev.filter((m2) => m2.as !== metric.as)),
|
|
100621
100595
|
children: [metric.as, " ", /* @__PURE__ */ jsx(radixIconsCross2, {})]
|
|
100622
100596
|
}, metric.as))
|
|
@@ -100625,7 +100599,7 @@ const MetricForm = ({
|
|
|
100625
100599
|
isOpen: isOpenMetric,
|
|
100626
100600
|
onClose: () => setOpenMetric(false),
|
|
100627
100601
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
100628
|
-
className: styles$
|
|
100602
|
+
className: styles$9.dropdown,
|
|
100629
100603
|
children: [/* @__PURE__ */ jsx(FloatingDropDown$1, {
|
|
100630
100604
|
onChange: setMetricColumn,
|
|
100631
100605
|
selectedOption: metricColumn,
|
|
@@ -100650,12 +100624,12 @@ const MetricForm = ({
|
|
|
100650
100624
|
type: "button",
|
|
100651
100625
|
variant: "primary",
|
|
100652
100626
|
size: "small",
|
|
100653
|
-
className: styles$
|
|
100627
|
+
className: styles$9.disabled,
|
|
100654
100628
|
isDisabled: !metricAggregate.value || !metricColumn.value,
|
|
100655
100629
|
onClick: () => {
|
|
100656
100630
|
setMetrics((prev) => [...prev, {
|
|
100657
|
-
value: `${metricAggregate.value}(${isBigQuery ? `${metricColumn.value}` : isMongoDb ? `\`${metricColumn.value}\`` : `"${metricColumn.value}"`})`,
|
|
100658
|
-
as: isBigQuery ? aliasValue || `_result` : aliasValue || `${metricAggregate.value}(${metricColumn.
|
|
100631
|
+
value: `${metricAggregate.value}(${isBigQuery || isMySql ? `${metricColumn.value}` : isMongoDb ? `\`${metricColumn.value}\`` : `"${metricColumn.value}"`})`,
|
|
100632
|
+
as: isBigQuery ? aliasValue || `_result` : aliasValue || `${metricAggregate.value}(${metricColumn.label})`
|
|
100659
100633
|
}]);
|
|
100660
100634
|
setOpenMetric(false);
|
|
100661
100635
|
},
|
|
@@ -100676,22 +100650,22 @@ const MetricForm = ({
|
|
|
100676
100650
|
})
|
|
100677
100651
|
})]
|
|
100678
100652
|
}), !isDisableAddColumn && /* @__PURE__ */ jsxs("div", {
|
|
100679
|
-
className: styles$
|
|
100653
|
+
className: styles$9["field-container"],
|
|
100680
100654
|
children: [/* @__PURE__ */ jsxs(Text, {
|
|
100681
100655
|
variant: "h1",
|
|
100682
100656
|
styleClass: "custom",
|
|
100683
|
-
className: styles$
|
|
100657
|
+
className: styles$9["field-label"],
|
|
100684
100658
|
children: ["Columns", /* @__PURE__ */ jsxs("span", {
|
|
100685
|
-
className: styles$
|
|
100659
|
+
className: styles$9.tooltipWrapper,
|
|
100686
100660
|
children: [/* @__PURE__ */ jsx(akarIconsInfo, {}), /* @__PURE__ */ jsx("span", {
|
|
100687
|
-
className: styles$
|
|
100661
|
+
className: styles$9.tooltip,
|
|
100688
100662
|
children: "select columns for raw records query"
|
|
100689
100663
|
})]
|
|
100690
100664
|
})]
|
|
100691
100665
|
}), /* @__PURE__ */ jsx("div", {
|
|
100692
|
-
className: styles$
|
|
100666
|
+
className: styles$9["field-wrapper"],
|
|
100693
100667
|
children: /* @__PURE__ */ jsxs("div", {
|
|
100694
|
-
className: styles$
|
|
100668
|
+
className: styles$9["field-inner-container"],
|
|
100695
100669
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
100696
100670
|
variant: "p",
|
|
100697
100671
|
styleClass: "font-14",
|
|
@@ -100699,7 +100673,7 @@ const MetricForm = ({
|
|
|
100699
100673
|
}), /* @__PURE__ */ jsxs(Button, {
|
|
100700
100674
|
type: "button",
|
|
100701
100675
|
variant: "secondary",
|
|
100702
|
-
className: styles$
|
|
100676
|
+
className: styles$9["field-add-btn"],
|
|
100703
100677
|
onClick: () => {
|
|
100704
100678
|
setOpenColumn(true);
|
|
100705
100679
|
setAliasValue("");
|
|
@@ -100707,11 +100681,11 @@ const MetricForm = ({
|
|
|
100707
100681
|
isDisabled: isDisableAddColumn,
|
|
100708
100682
|
children: [/* @__PURE__ */ jsx(lucidePlusCircle, {}), " Add Column"]
|
|
100709
100683
|
}), /* @__PURE__ */ jsx("div", {
|
|
100710
|
-
className: styles$
|
|
100684
|
+
className: styles$9["field-value-container"],
|
|
100711
100685
|
children: columns.map((c2) => /* @__PURE__ */ jsxs(Button, {
|
|
100712
100686
|
type: "button",
|
|
100713
100687
|
variant: "custom",
|
|
100714
|
-
className: styles$
|
|
100688
|
+
className: styles$9["field-value"],
|
|
100715
100689
|
onClick: () => setColumns((prev) => prev.filter((m2) => m2.as !== c2.as)),
|
|
100716
100690
|
children: [c2.as, " ", /* @__PURE__ */ jsx(radixIconsCross2, {})]
|
|
100717
100691
|
}, c2.as))
|
|
@@ -100720,7 +100694,7 @@ const MetricForm = ({
|
|
|
100720
100694
|
isOpen: isOpenColumn,
|
|
100721
100695
|
onClose: () => setOpenColumn(false),
|
|
100722
100696
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
100723
|
-
className: styles$
|
|
100697
|
+
className: styles$9.dropdown,
|
|
100724
100698
|
children: [/* @__PURE__ */ jsx(FloatingDropDown$1, {
|
|
100725
100699
|
onChange: setColumn,
|
|
100726
100700
|
selectedOption: column2,
|
|
@@ -100739,13 +100713,13 @@ const MetricForm = ({
|
|
|
100739
100713
|
type: "button",
|
|
100740
100714
|
variant: "primary",
|
|
100741
100715
|
size: "small",
|
|
100742
|
-
className: styles$
|
|
100716
|
+
className: styles$9.disabled,
|
|
100743
100717
|
isDisabled: !column2.value,
|
|
100744
100718
|
onClick: () => {
|
|
100745
100719
|
if (!columns.find((c2) => c2.as === aliasValue))
|
|
100746
100720
|
setColumns((prev) => [...prev, {
|
|
100747
100721
|
value: `${column2.value}`,
|
|
100748
|
-
as: aliasValue || `${column2.
|
|
100722
|
+
as: aliasValue || `${column2.label}`
|
|
100749
100723
|
}]);
|
|
100750
100724
|
setOpenColumn(false);
|
|
100751
100725
|
},
|
|
@@ -100756,16 +100730,16 @@ const MetricForm = ({
|
|
|
100756
100730
|
})
|
|
100757
100731
|
})]
|
|
100758
100732
|
}), /* @__PURE__ */ jsxs("div", {
|
|
100759
|
-
className: styles$
|
|
100733
|
+
className: styles$9["field-container"],
|
|
100760
100734
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
100761
100735
|
variant: "h1",
|
|
100762
100736
|
styleClass: "custom",
|
|
100763
|
-
className: styles$
|
|
100737
|
+
className: styles$9["field-label"],
|
|
100764
100738
|
children: "category filters"
|
|
100765
100739
|
}), /* @__PURE__ */ jsx("div", {
|
|
100766
|
-
className: styles$
|
|
100740
|
+
className: styles$9["field-wrapper"],
|
|
100767
100741
|
children: /* @__PURE__ */ jsxs("div", {
|
|
100768
|
-
className: styles$
|
|
100742
|
+
className: styles$9["field-inner-container"],
|
|
100769
100743
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
100770
100744
|
variant: "p",
|
|
100771
100745
|
styleClass: "font-14",
|
|
@@ -100773,15 +100747,15 @@ const MetricForm = ({
|
|
|
100773
100747
|
}), /* @__PURE__ */ jsxs(Button, {
|
|
100774
100748
|
type: "button",
|
|
100775
100749
|
variant: "secondary",
|
|
100776
|
-
className: styles$
|
|
100750
|
+
className: styles$9["field-add-btn"],
|
|
100777
100751
|
onClick: () => setOpenFilter(true),
|
|
100778
100752
|
children: [/* @__PURE__ */ jsx(lucidePlusCircle, {}), " Add Filter Category"]
|
|
100779
100753
|
}), /* @__PURE__ */ jsx("div", {
|
|
100780
|
-
className: styles$
|
|
100754
|
+
className: styles$9["field-value-container"],
|
|
100781
100755
|
children: filters2.map((filter2) => /* @__PURE__ */ jsxs(Button, {
|
|
100782
100756
|
type: "button",
|
|
100783
100757
|
variant: "custom",
|
|
100784
|
-
className: styles$
|
|
100758
|
+
className: styles$9["field-value"],
|
|
100785
100759
|
onClick: () => setFilters((prev) => prev.filter((m2) => m2 !== filter2)),
|
|
100786
100760
|
children: [filter2, " ", /* @__PURE__ */ jsx(radixIconsCross2, {})]
|
|
100787
100761
|
}, filter2))
|
|
@@ -100790,7 +100764,7 @@ const MetricForm = ({
|
|
|
100790
100764
|
isOpen: isOpenFilter,
|
|
100791
100765
|
onClose: () => setOpenFilter(false),
|
|
100792
100766
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
100793
|
-
className: styles$
|
|
100767
|
+
className: styles$9.filterDropdown,
|
|
100794
100768
|
children: [/* @__PURE__ */ jsx(FloatingDropDown$1, {
|
|
100795
100769
|
onChange: setFilterColumn,
|
|
100796
100770
|
selectedOption: filterColumn,
|
|
@@ -100804,7 +100778,7 @@ const MetricForm = ({
|
|
|
100804
100778
|
labelVariant: "static",
|
|
100805
100779
|
label: "Operator"
|
|
100806
100780
|
}), isInFilter ? /* @__PURE__ */ jsxs("div", {
|
|
100807
|
-
className: styles$
|
|
100781
|
+
className: styles$9.filterValue,
|
|
100808
100782
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
100809
100783
|
variant: "p",
|
|
100810
100784
|
styleClass: "font-14",
|
|
@@ -100830,7 +100804,7 @@ const MetricForm = ({
|
|
|
100830
100804
|
variant: "primary",
|
|
100831
100805
|
size: "small",
|
|
100832
100806
|
isDisabled: !filterColumn.value || !operator.value || !isFilterValue,
|
|
100833
|
-
className: styles$
|
|
100807
|
+
className: styles$9.disabled,
|
|
100834
100808
|
onClick: () => {
|
|
100835
100809
|
setFilters((prev) => [...prev, `${isBigQuery || isMySql ? `${filterColumn.value}` : isMongoDb ? `\`${filterColumn.value}\`` : `"${filterColumn.value}"`} ${operator.value} ${isInFilter ? `(${selectedFilterValues.map((f2) => `'${f2}'`).join(", ")})` : `${filterValue.value ? `'${filterValue.value}'` : ""}`}`]);
|
|
100836
100810
|
setOpenFilter(false);
|
|
@@ -100845,13 +100819,13 @@ const MetricForm = ({
|
|
|
100845
100819
|
}), /* @__PURE__ */ jsxs(Button, {
|
|
100846
100820
|
type: "button",
|
|
100847
100821
|
variant: "secondary",
|
|
100848
|
-
className: styles$
|
|
100822
|
+
className: styles$9["field-add-btn"],
|
|
100849
100823
|
onClick: () => setOpenSort(true),
|
|
100850
100824
|
children: [sort2 ? /* @__PURE__ */ jsx(mdiCircleEditOutline, {}) : /* @__PURE__ */ jsx(lucidePlusCircle, {}), " ", sort2 ? "Edit" : "Add", " Sort Category"]
|
|
100851
100825
|
}), sort2 && /* @__PURE__ */ jsxs(Button, {
|
|
100852
100826
|
type: "button",
|
|
100853
100827
|
variant: "custom",
|
|
100854
|
-
className: styles$
|
|
100828
|
+
className: styles$9["field-value"],
|
|
100855
100829
|
onClick: () => setSort(""),
|
|
100856
100830
|
children: [sort2, " ", /* @__PURE__ */ jsx(radixIconsCross2, {})]
|
|
100857
100831
|
}), /* @__PURE__ */ jsxs(Modal$1, {
|
|
@@ -100859,7 +100833,7 @@ const MetricForm = ({
|
|
|
100859
100833
|
isOpen: isOpenSort,
|
|
100860
100834
|
onClose: () => setOpenSort(false),
|
|
100861
100835
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
100862
|
-
className: styles$
|
|
100836
|
+
className: styles$9.dropdown,
|
|
100863
100837
|
children: [/* @__PURE__ */ jsx(FloatingDropDown$1, {
|
|
100864
100838
|
onChange: setSortColumn,
|
|
100865
100839
|
selectedOption: sortColumn,
|
|
@@ -100879,7 +100853,7 @@ const MetricForm = ({
|
|
|
100879
100853
|
variant: "primary",
|
|
100880
100854
|
size: "small",
|
|
100881
100855
|
isDisabled: !sortColumn.value || isDisableSorting,
|
|
100882
|
-
className: styles$
|
|
100856
|
+
className: styles$9.disabled,
|
|
100883
100857
|
onClick: () => {
|
|
100884
100858
|
if (!columns.length) {
|
|
100885
100859
|
setSort(`${sortAggregate.value}(${isBigQuery || isMySql ? `${sortColumn.value}` : isMongoDb ? `\`${sortColumn.value}\`` : `"${sortColumn.value}"`})`);
|
|
@@ -100903,34 +100877,35 @@ const MetricForm = ({
|
|
|
100903
100877
|
}), !columns.length && !!dateTimeColumnList.length && /* @__PURE__ */ jsxs(Text, {
|
|
100904
100878
|
styleClass: "font-14",
|
|
100905
100879
|
variant: "p",
|
|
100906
|
-
className: styles$
|
|
100880
|
+
className: styles$9.columnText,
|
|
100907
100881
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
100908
100882
|
type: "button",
|
|
100909
100883
|
variant: "custom",
|
|
100910
100884
|
onClick: () => setIncludeTime((s2) => !s2),
|
|
100911
100885
|
isDisabled: !timeColumn.value || !!columns.length,
|
|
100912
100886
|
children: isIncludeTime ? /* @__PURE__ */ jsx(materialSymbolsCheckBoxRounded, {
|
|
100913
|
-
className: styles$
|
|
100887
|
+
className: styles$9.checkIcon
|
|
100914
100888
|
}) : /* @__PURE__ */ jsx(materialSymbolsCheckBoxOutlineBlank, {})
|
|
100915
100889
|
}), "Include Time"]
|
|
100916
100890
|
}), /* @__PURE__ */ jsxs(Text, {
|
|
100917
100891
|
styleClass: "font-14",
|
|
100918
100892
|
variant: "p",
|
|
100919
|
-
className: styles$
|
|
100893
|
+
className: styles$9.columnText,
|
|
100920
100894
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
100921
100895
|
type: "button",
|
|
100922
100896
|
variant: "custom",
|
|
100923
100897
|
onClick: () => setSortDescending((s2) => !s2),
|
|
100924
100898
|
children: isSortDescending ? /* @__PURE__ */ jsx(materialSymbolsCheckBoxRounded, {
|
|
100925
|
-
className: styles$
|
|
100899
|
+
className: styles$9.checkIcon
|
|
100926
100900
|
}) : /* @__PURE__ */ jsx(materialSymbolsCheckBoxOutlineBlank, {})
|
|
100927
100901
|
}), "Sort Descending"]
|
|
100928
100902
|
}), /* @__PURE__ */ jsx(Button, {
|
|
100929
100903
|
type: "button",
|
|
100930
100904
|
variant: "primary",
|
|
100931
|
-
className: styles$
|
|
100905
|
+
className: styles$9.generateButton,
|
|
100932
100906
|
isDisabled: isGeneratingDataset || isDisableGenerate,
|
|
100933
100907
|
onClick: () => {
|
|
100908
|
+
var _a2, _b2, _c2;
|
|
100934
100909
|
setError("");
|
|
100935
100910
|
setLoading(true);
|
|
100936
100911
|
setData([]);
|
|
@@ -100942,8 +100917,26 @@ const MetricForm = ({
|
|
|
100942
100917
|
companyId,
|
|
100943
100918
|
userInputs: {
|
|
100944
100919
|
columns: columns.map((c2) => isBigQuery || isMySql ? `${c2.value} AS ${c2.as} ` : isMongoDb ? `\`${c2.value}\` AS "${c2.as}"` : `"${c2.value}" AS "${c2.as}"`),
|
|
100945
|
-
dimensions: isBigQuery || isMySql ? selectedDimensions
|
|
100946
|
-
|
|
100920
|
+
dimensions: isBigQuery || isMySql ? selectedDimensions.map((d2) => {
|
|
100921
|
+
var _a3, _b3;
|
|
100922
|
+
return {
|
|
100923
|
+
name: (_a3 = columnList.find((c2) => c2.value === d2)) == null ? void 0 : _a3.value,
|
|
100924
|
+
as: (_b3 = columnList.find((c2) => c2.value === d2)) == null ? void 0 : _b3.label
|
|
100925
|
+
};
|
|
100926
|
+
}) : isMongoDb ? selectedDimensions.map((d2) => {
|
|
100927
|
+
var _a3, _b3;
|
|
100928
|
+
return {
|
|
100929
|
+
name: `\`${(_a3 = columnList.find((c2) => c2.value === d2)) == null ? void 0 : _a3.value}\``,
|
|
100930
|
+
as: (_b3 = columnList.find((c2) => c2.value === d2)) == null ? void 0 : _b3.label
|
|
100931
|
+
};
|
|
100932
|
+
}) : selectedDimensions.map((d2) => {
|
|
100933
|
+
var _a3, _b3;
|
|
100934
|
+
return {
|
|
100935
|
+
name: `"${(_a3 = columnList.find((c2) => c2.value === d2)) == null ? void 0 : _a3.value}"`,
|
|
100936
|
+
as: (_b3 = columnList.find((c2) => c2.value === d2)) == null ? void 0 : _b3.label
|
|
100937
|
+
};
|
|
100938
|
+
}),
|
|
100939
|
+
metrics: metrics.map((m2) => isBigQuery ? `${m2.value} AS ${m2.as}` : `${m2.value} AS "${m2.as}"`),
|
|
100947
100940
|
sort: sort2,
|
|
100948
100941
|
isSortDescending,
|
|
100949
100942
|
filters: filters2,
|
|
@@ -100951,16 +100944,25 @@ const MetricForm = ({
|
|
|
100951
100944
|
rowLimit: rowLimit.value,
|
|
100952
100945
|
timeFilter: {
|
|
100953
100946
|
filter: timeGrain,
|
|
100954
|
-
column: isBigQuery || isMySql ?
|
|
100947
|
+
column: isBigQuery || isMySql ? {
|
|
100948
|
+
name: timeColumn.value,
|
|
100949
|
+
as: (_a2 = columnList.find((c2) => c2.value === timeColumn.value)) == null ? void 0 : _a2.label
|
|
100950
|
+
} : isMongoDb ? {
|
|
100951
|
+
name: `\`${timeColumn.value}\``,
|
|
100952
|
+
as: (_b2 = columnList.find((c2) => c2.value === timeColumn.value)) == null ? void 0 : _b2.label
|
|
100953
|
+
} : {
|
|
100954
|
+
name: `"${timeColumn.value}"`,
|
|
100955
|
+
as: (_c2 = columnList.find((c2) => c2.value === timeColumn.value)) == null ? void 0 : _c2.label
|
|
100956
|
+
},
|
|
100955
100957
|
isInclude: isIncludeTime
|
|
100956
100958
|
}
|
|
100957
100959
|
}
|
|
100958
100960
|
}, {
|
|
100959
100961
|
onSuccess(data) {
|
|
100960
|
-
var
|
|
100961
|
-
const error2 = (
|
|
100962
|
-
const result = (
|
|
100963
|
-
const outputQuery = (
|
|
100962
|
+
var _a3, _b3, _c3;
|
|
100963
|
+
const error2 = (_a3 = data.generateDatasetMetrics) == null ? void 0 : _a3.error;
|
|
100964
|
+
const result = (_b3 = data.generateDatasetMetrics) == null ? void 0 : _b3.result;
|
|
100965
|
+
const outputQuery = (_c3 = data.generateDatasetMetrics) == null ? void 0 : _c3.query;
|
|
100964
100966
|
if (error2 || generateError) {
|
|
100965
100967
|
setError(error2.message || SOMETHING_WENT_WRONG);
|
|
100966
100968
|
setLoading(false);
|
|
@@ -100981,11 +100983,11 @@ const MetricForm = ({
|
|
|
100981
100983
|
});
|
|
100982
100984
|
};
|
|
100983
100985
|
var MetricForm$1 = React__default.memo(MetricForm);
|
|
100984
|
-
const container$3 = "
|
|
100985
|
-
const header = "
|
|
100986
|
-
const enableGroupBy = "
|
|
100987
|
-
const enableGroupButton = "
|
|
100988
|
-
var styles$
|
|
100986
|
+
const container$3 = "_container_7zhjn_1";
|
|
100987
|
+
const header = "_header_7zhjn_5";
|
|
100988
|
+
const enableGroupBy = "_enableGroupBy_7zhjn_8";
|
|
100989
|
+
const enableGroupButton = "_enableGroupButton_7zhjn_11";
|
|
100990
|
+
var styles$6 = {
|
|
100989
100991
|
container: container$3,
|
|
100990
100992
|
header,
|
|
100991
100993
|
enableGroupBy,
|
|
@@ -101006,14 +101008,14 @@ const ConstructMetric = ({
|
|
|
101006
101008
|
setSelectedGroupBy
|
|
101007
101009
|
}) => {
|
|
101008
101010
|
return /* @__PURE__ */ jsxs("div", {
|
|
101009
|
-
className: styles$
|
|
101011
|
+
className: styles$6.container,
|
|
101010
101012
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
101011
|
-
className: styles$
|
|
101013
|
+
className: styles$6.header,
|
|
101012
101014
|
children: ["Data", setEnableGroupBy && /* @__PURE__ */ jsxs(Button, {
|
|
101013
101015
|
type: "button",
|
|
101014
101016
|
variant: "custom",
|
|
101015
101017
|
onClick: () => setEnableGroupBy(!isEnableGroupBy),
|
|
101016
|
-
className: `${isEnableGroupBy && styles$
|
|
101018
|
+
className: `${isEnableGroupBy && styles$6.enableGroupBy} ${styles$6.enableGroupButton}`,
|
|
101017
101019
|
children: [isEnableGroupBy ? "Disable" : "Enable", " Drill down"]
|
|
101018
101020
|
})]
|
|
101019
101021
|
}), /* @__PURE__ */ jsx(MetricForm$1, {
|
|
@@ -101032,14 +101034,14 @@ const ConstructMetric = ({
|
|
|
101032
101034
|
});
|
|
101033
101035
|
};
|
|
101034
101036
|
var ConstructMetric$1 = React__default.memo(ConstructMetric);
|
|
101035
|
-
const form$1 = "
|
|
101036
|
-
const container$2 = "
|
|
101037
|
-
const field = "
|
|
101038
|
-
const fieldLabel = "
|
|
101039
|
-
const save = "
|
|
101040
|
-
const cancel = "
|
|
101041
|
-
const error = "
|
|
101042
|
-
var styles$
|
|
101037
|
+
const form$1 = "_form_qtwuf_1";
|
|
101038
|
+
const container$2 = "_container_qtwuf_7";
|
|
101039
|
+
const field = "_field_qtwuf_13";
|
|
101040
|
+
const fieldLabel = "_fieldLabel_qtwuf_19";
|
|
101041
|
+
const save = "_save_qtwuf_25";
|
|
101042
|
+
const cancel = "_cancel_qtwuf_31";
|
|
101043
|
+
const error = "_error_qtwuf_37";
|
|
101044
|
+
var styles$5 = {
|
|
101043
101045
|
form: form$1,
|
|
101044
101046
|
container: container$2,
|
|
101045
101047
|
field,
|
|
@@ -101048,10 +101050,10 @@ var styles$4 = {
|
|
|
101048
101050
|
cancel,
|
|
101049
101051
|
error
|
|
101050
101052
|
};
|
|
101051
|
-
const label$1 = "
|
|
101052
|
-
const textarea = "
|
|
101053
|
-
const resizable = "
|
|
101054
|
-
var styles$
|
|
101053
|
+
const label$1 = "_label_1vo1x_1";
|
|
101054
|
+
const textarea = "_textarea_1vo1x_9";
|
|
101055
|
+
const resizable = "_resizable_1vo1x_17";
|
|
101056
|
+
var styles$4 = {
|
|
101055
101057
|
label: label$1,
|
|
101056
101058
|
textarea,
|
|
101057
101059
|
resizable
|
|
@@ -101075,7 +101077,7 @@ const TextAreaField = ({
|
|
|
101075
101077
|
className,
|
|
101076
101078
|
children: [/* @__PURE__ */ jsx("label", {
|
|
101077
101079
|
htmlFor: id2,
|
|
101078
|
-
className: styles$
|
|
101080
|
+
className: styles$4.label,
|
|
101079
101081
|
children: label2
|
|
101080
101082
|
}), /* @__PURE__ */ jsx("textarea", {
|
|
101081
101083
|
id: id2,
|
|
@@ -101083,7 +101085,7 @@ const TextAreaField = ({
|
|
|
101083
101085
|
rows,
|
|
101084
101086
|
cols,
|
|
101085
101087
|
placeholder,
|
|
101086
|
-
className: classNames(styles$
|
|
101088
|
+
className: classNames(styles$4.textarea, `${resizable2 ? null : styles$4.resizable}`),
|
|
101087
101089
|
defaultValue,
|
|
101088
101090
|
...register2,
|
|
101089
101091
|
value,
|
|
@@ -101094,20 +101096,20 @@ const TextAreaField = ({
|
|
|
101094
101096
|
})]
|
|
101095
101097
|
});
|
|
101096
101098
|
};
|
|
101097
|
-
const group = "
|
|
101098
|
-
const button = "
|
|
101099
|
-
const enabled = "
|
|
101100
|
-
const notenabled = "
|
|
101101
|
-
const switchIcon = "
|
|
101102
|
-
const switchActive = "
|
|
101103
|
-
const switchInactive = "
|
|
101104
|
-
const label = "
|
|
101105
|
-
const labelActive = "
|
|
101106
|
-
const labelInactive = "
|
|
101107
|
-
var styles$
|
|
101099
|
+
const group = "_group_3fgum_1";
|
|
101100
|
+
const button$1 = "_button_3fgum_7";
|
|
101101
|
+
const enabled = "_enabled_3fgum_19";
|
|
101102
|
+
const notenabled = "_notenabled_3fgum_25";
|
|
101103
|
+
const switchIcon = "_switchIcon_3fgum_31";
|
|
101104
|
+
const switchActive = "_switchActive_3fgum_37";
|
|
101105
|
+
const switchInactive = "_switchInactive_3fgum_43";
|
|
101106
|
+
const label = "_label_3fgum_49";
|
|
101107
|
+
const labelActive = "_labelActive_3fgum_55";
|
|
101108
|
+
const labelInactive = "_labelInactive_3fgum_61";
|
|
101109
|
+
var styles$3 = {
|
|
101108
101110
|
group,
|
|
101109
|
-
button,
|
|
101110
|
-
"switch": "
|
|
101111
|
+
button: button$1,
|
|
101112
|
+
"switch": "_switch_3fgum_13",
|
|
101111
101113
|
enabled,
|
|
101112
101114
|
notenabled,
|
|
101113
101115
|
switchIcon,
|
|
@@ -101128,22 +101130,22 @@ const SwitchButton = ({
|
|
|
101128
101130
|
}) => {
|
|
101129
101131
|
return /* @__PURE__ */ jsxs(Pe$1.Group, {
|
|
101130
101132
|
as: "span",
|
|
101131
|
-
className: `${styles$
|
|
101133
|
+
className: `${styles$3.group} ${className}`,
|
|
101132
101134
|
children: [label2 ? /* @__PURE__ */ jsx(Pe$1.Description, {
|
|
101133
101135
|
className: labelClassName,
|
|
101134
101136
|
children: label2
|
|
101135
101137
|
}) : null, /* @__PURE__ */ jsxs("div", {
|
|
101136
|
-
className: styles$
|
|
101138
|
+
className: styles$3.button,
|
|
101137
101139
|
children: [/* @__PURE__ */ jsx(Pe$1, {
|
|
101138
101140
|
checked: enabled2,
|
|
101139
101141
|
onChange,
|
|
101140
|
-
className: `${enabled2 ? styles$
|
|
101142
|
+
className: `${enabled2 ? styles$3.enabled : styles$3.notenabled} ${styles$3.switch}`,
|
|
101141
101143
|
defaultChecked: defaultEnabled,
|
|
101142
101144
|
children: /* @__PURE__ */ jsx("span", {
|
|
101143
|
-
className: `${enabled2 ? styles$
|
|
101145
|
+
className: `${enabled2 ? styles$3.switchActive : styles$3.switchInactive} ${styles$3.switchIcon}`
|
|
101144
101146
|
})
|
|
101145
101147
|
}), /* @__PURE__ */ jsx(Pe$1.Label, {
|
|
101146
|
-
className: `${styles$
|
|
101148
|
+
className: `${styles$3.label} ${enabled2 ? styles$3.labelActive : styles$3.labelInactive}`,
|
|
101147
101149
|
children: placeholder
|
|
101148
101150
|
})]
|
|
101149
101151
|
})]
|
|
@@ -101183,12 +101185,12 @@ const ExternalMetric = ({
|
|
|
101183
101185
|
label: dash.name
|
|
101184
101186
|
}))) != null ? _b2 : [];
|
|
101185
101187
|
return /* @__PURE__ */ jsxs("form", {
|
|
101186
|
-
className: styles$
|
|
101188
|
+
className: styles$5.form,
|
|
101187
101189
|
onSubmit: submitMetric,
|
|
101188
101190
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
101189
|
-
className: styles$
|
|
101191
|
+
className: styles$5.container,
|
|
101190
101192
|
children: [/* @__PURE__ */ jsx("div", {
|
|
101191
|
-
className: styles$
|
|
101193
|
+
className: styles$5.field,
|
|
101192
101194
|
children: /* @__PURE__ */ jsx(MultiSelect, {
|
|
101193
101195
|
label: "Dashboards",
|
|
101194
101196
|
options: options2,
|
|
@@ -101216,7 +101218,7 @@ const ExternalMetric = ({
|
|
|
101216
101218
|
}),
|
|
101217
101219
|
defaultValue: defaultValues == null ? void 0 : defaultValues.metricId
|
|
101218
101220
|
}), /* @__PURE__ */ jsx(TextAreaField, {
|
|
101219
|
-
className: styles$
|
|
101221
|
+
className: styles$5.field,
|
|
101220
101222
|
id: "desc",
|
|
101221
101223
|
placeholder: "What is the name of metric?",
|
|
101222
101224
|
label: "Description",
|
|
@@ -101224,8 +101226,8 @@ const ExternalMetric = ({
|
|
|
101224
101226
|
register: register2("description"),
|
|
101225
101227
|
defaultValue: defaultValues == null ? void 0 : defaultValues.description
|
|
101226
101228
|
}), !isEmbedded && /* @__PURE__ */ jsx(ToggleButton, {
|
|
101227
|
-
className: styles$
|
|
101228
|
-
labelClassName: styles$
|
|
101229
|
+
className: styles$5.field,
|
|
101230
|
+
labelClassName: styles$5.fieldLabel,
|
|
101229
101231
|
enabled: isLiveMode,
|
|
101230
101232
|
onChange: setLiveMode,
|
|
101231
101233
|
label: "Publish Type",
|
|
@@ -101235,13 +101237,13 @@ const ExternalMetric = ({
|
|
|
101235
101237
|
}), !!error2 && /* @__PURE__ */ jsx(Text, {
|
|
101236
101238
|
variant: "p",
|
|
101237
101239
|
styleClass: "font-14",
|
|
101238
|
-
className: styles$
|
|
101240
|
+
className: styles$5.error,
|
|
101239
101241
|
children: error2
|
|
101240
101242
|
}), /* @__PURE__ */ jsxs(ModalFooter$1, {
|
|
101241
101243
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
101242
101244
|
type: "reset",
|
|
101243
101245
|
variant: "secondary",
|
|
101244
|
-
className: styles$
|
|
101246
|
+
className: styles$5.cancel,
|
|
101245
101247
|
onClick: onCancel,
|
|
101246
101248
|
size: "default",
|
|
101247
101249
|
children: "Cancel"
|
|
@@ -101249,7 +101251,7 @@ const ExternalMetric = ({
|
|
|
101249
101251
|
type: "submit",
|
|
101250
101252
|
variant: "primary",
|
|
101251
101253
|
size: "small",
|
|
101252
|
-
className: styles$
|
|
101254
|
+
className: styles$5.save,
|
|
101253
101255
|
isDisabled: !options2.length || !dashboardIds.length,
|
|
101254
101256
|
children: "Save"
|
|
101255
101257
|
})]
|
|
@@ -101429,11 +101431,22 @@ const useExternalMetric = ({
|
|
|
101429
101431
|
};
|
|
101430
101432
|
return { createExternalMetric, error: error2 };
|
|
101431
101433
|
};
|
|
101434
|
+
const mdiPlus = (props) => /* @__PURE__ */ jsx("svg", {
|
|
101435
|
+
viewBox: "0 0 24 24",
|
|
101436
|
+
width: "1.2em",
|
|
101437
|
+
height: "1.2em",
|
|
101438
|
+
...props,
|
|
101439
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
101440
|
+
fill: "currentColor",
|
|
101441
|
+
d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2Z"
|
|
101442
|
+
})
|
|
101443
|
+
});
|
|
101432
101444
|
const EmbeddedMetricCreation = ({
|
|
101433
101445
|
clientId,
|
|
101434
101446
|
companyId,
|
|
101435
101447
|
mode,
|
|
101436
|
-
externalDashboardId
|
|
101448
|
+
externalDashboardId,
|
|
101449
|
+
variant = "static"
|
|
101437
101450
|
}) => {
|
|
101438
101451
|
var _a2;
|
|
101439
101452
|
const [isLoading, setLoading] = useState(false);
|
|
@@ -101476,10 +101489,11 @@ const EmbeddedMetricCreation = ({
|
|
|
101476
101489
|
const columnList = useMemo(() => {
|
|
101477
101490
|
var _a3;
|
|
101478
101491
|
return ((_a3 = selectedTableData == null ? void 0 : selectedTableData.columns) == null ? void 0 : _a3.map(({
|
|
101479
|
-
name
|
|
101492
|
+
name,
|
|
101493
|
+
as
|
|
101480
101494
|
}) => ({
|
|
101481
101495
|
value: name,
|
|
101482
|
-
label:
|
|
101496
|
+
label: as
|
|
101483
101497
|
}))) || [];
|
|
101484
101498
|
}, [selectedTableData]);
|
|
101485
101499
|
useEffect(() => {
|
|
@@ -101666,10 +101680,13 @@ const EmbeddedMetricCreation = ({
|
|
|
101666
101680
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
101667
101681
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
101668
101682
|
type: "button",
|
|
101669
|
-
variant: "primary",
|
|
101683
|
+
variant: variant === "floating" ? "custom" : "primary",
|
|
101670
101684
|
size: "large",
|
|
101685
|
+
className: variant === "floating" ? styles$p.floatingCreateButton : "",
|
|
101671
101686
|
onClick: () => setShowMetricCreateModal(true),
|
|
101672
|
-
children: "
|
|
101687
|
+
children: variant === "floating" ? /* @__PURE__ */ jsx(mdiPlus, {
|
|
101688
|
+
className: styles$p.floatingCreateButtonIcon
|
|
101689
|
+
}) : "Create Metric"
|
|
101673
101690
|
}), /* @__PURE__ */ jsx(Modal$1, {
|
|
101674
101691
|
headerTitle: "Create Metric",
|
|
101675
101692
|
isOpen: isShowMetricCreateModal,
|
|
@@ -101683,7 +101700,7 @@ const EmbeddedMetricCreation = ({
|
|
|
101683
101700
|
setShowSaveMetricModal
|
|
101684
101701
|
}),
|
|
101685
101702
|
children: /* @__PURE__ */ jsxs("div", {
|
|
101686
|
-
className: styles$
|
|
101703
|
+
className: styles$p["modal-container"],
|
|
101687
101704
|
children: [/* @__PURE__ */ jsx(Dataset$1, {
|
|
101688
101705
|
setselectTable: setSelectTable,
|
|
101689
101706
|
selectTable,
|
|
@@ -101741,7 +101758,7 @@ const EmbeddedMetricCreation = ({
|
|
|
101741
101758
|
isOpen: isShowSqlModal,
|
|
101742
101759
|
onClose: () => setShowSqlModal(false),
|
|
101743
101760
|
children: /* @__PURE__ */ jsx("div", {
|
|
101744
|
-
className: styles$
|
|
101761
|
+
className: styles$p["query-modal"],
|
|
101745
101762
|
children: query
|
|
101746
101763
|
})
|
|
101747
101764
|
}), /* @__PURE__ */ jsx(Modal$1, {
|
|
@@ -101798,16 +101815,16 @@ const useEmbeddedDashboard = (token) => {
|
|
|
101798
101815
|
}
|
|
101799
101816
|
};
|
|
101800
101817
|
};
|
|
101801
|
-
const container$1 = "
|
|
101802
|
-
const form = "
|
|
101803
|
-
const title = "
|
|
101804
|
-
const apply = "
|
|
101805
|
-
const reset = "
|
|
101806
|
-
const filters = "
|
|
101807
|
-
const filterItem = "
|
|
101808
|
-
const filterItemOperator = "
|
|
101809
|
-
const remove = "
|
|
101810
|
-
var styles$
|
|
101818
|
+
const container$1 = "_container_lfh6d_1";
|
|
101819
|
+
const form = "_form_lfh6d_7";
|
|
101820
|
+
const title = "_title_lfh6d_13";
|
|
101821
|
+
const apply = "_apply_lfh6d_19";
|
|
101822
|
+
const reset = "_reset_lfh6d_25";
|
|
101823
|
+
const filters = "_filters_lfh6d_31";
|
|
101824
|
+
const filterItem = "_filterItem_lfh6d_37";
|
|
101825
|
+
const filterItemOperator = "_filterItemOperator_lfh6d_43";
|
|
101826
|
+
const remove = "_remove_lfh6d_49";
|
|
101827
|
+
var styles$2 = {
|
|
101811
101828
|
container: container$1,
|
|
101812
101829
|
form,
|
|
101813
101830
|
title,
|
|
@@ -101818,6 +101835,22 @@ var styles$1 = {
|
|
|
101818
101835
|
filterItemOperator,
|
|
101819
101836
|
remove
|
|
101820
101837
|
};
|
|
101838
|
+
const button = "_button_wt9rw_1";
|
|
101839
|
+
const menu = "_menu_wt9rw_7";
|
|
101840
|
+
const menuContainer = "_menuContainer_wt9rw_13";
|
|
101841
|
+
const buttonText = "_buttonText_wt9rw_19";
|
|
101842
|
+
const buttonIcon = "_buttonIcon_wt9rw_25";
|
|
101843
|
+
const filterName = "_filterName_wt9rw_31";
|
|
101844
|
+
const filterDropdown = "_filterDropdown_wt9rw_37";
|
|
101845
|
+
var styles$1 = {
|
|
101846
|
+
button,
|
|
101847
|
+
menu,
|
|
101848
|
+
menuContainer,
|
|
101849
|
+
buttonText,
|
|
101850
|
+
buttonIcon,
|
|
101851
|
+
filterName,
|
|
101852
|
+
filterDropdown
|
|
101853
|
+
};
|
|
101821
101854
|
const getFormattedDataType = (datatype) => {
|
|
101822
101855
|
if (NUMBER_TYPES.includes(datatype.toLowerCase()))
|
|
101823
101856
|
return "number";
|
|
@@ -101977,23 +102010,23 @@ const FilterField = ({
|
|
|
101977
102010
|
}, [isResetted]);
|
|
101978
102011
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
101979
102012
|
children: /* @__PURE__ */ jsxs(PopoverMenu$1, {
|
|
101980
|
-
buttonClass:
|
|
101981
|
-
menuClass:
|
|
102013
|
+
buttonClass: styles$1.button,
|
|
102014
|
+
menuClass: styles$1.menu,
|
|
101982
102015
|
position: "bottom-left",
|
|
101983
|
-
menuContainerClass:
|
|
102016
|
+
menuContainerClass: styles$1.menuContainer,
|
|
101984
102017
|
button: /* @__PURE__ */ jsxs(Fragment, {
|
|
101985
102018
|
children: [/* @__PURE__ */ jsx("span", {
|
|
101986
|
-
className:
|
|
102019
|
+
className: styles$1.buttonText,
|
|
101987
102020
|
children: filter2.name
|
|
101988
102021
|
}), /* @__PURE__ */ jsx("span", {
|
|
101989
|
-
className:
|
|
102022
|
+
className: styles$1.buttonIcon,
|
|
101990
102023
|
children: /* @__PURE__ */ jsx(materialSymbolsKeyboardArrowDown, {})
|
|
101991
102024
|
})]
|
|
101992
102025
|
}),
|
|
101993
102026
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
101994
102027
|
variant: "p",
|
|
101995
102028
|
styleClass: "font-14",
|
|
101996
|
-
className:
|
|
102029
|
+
className: styles$1.filterName,
|
|
101997
102030
|
children: filter2.name
|
|
101998
102031
|
}), /* @__PURE__ */ jsx(FloatingDropDown$1, {
|
|
101999
102032
|
label: "Operator",
|
|
@@ -102014,7 +102047,7 @@ const FilterField = ({
|
|
|
102014
102047
|
onChange: setOption,
|
|
102015
102048
|
label: "Filter Value",
|
|
102016
102049
|
labelVariant: "static",
|
|
102017
|
-
className:
|
|
102050
|
+
className: styles$1.filterDropdown
|
|
102018
102051
|
}) : /* @__PURE__ */ jsx(Fragment, {
|
|
102019
102052
|
children: isInFilterOperator(operator.value) ? /* @__PURE__ */ jsx(MultiFilterDropdown, {
|
|
102020
102053
|
selectedOptions: multiOptions,
|
|
@@ -102027,7 +102060,7 @@ const FilterField = ({
|
|
|
102027
102060
|
isSearchEnabled: true,
|
|
102028
102061
|
label: "Filter Value",
|
|
102029
102062
|
labelVariant: "static",
|
|
102030
|
-
className:
|
|
102063
|
+
className: styles$1.filterDropdown,
|
|
102031
102064
|
autoSelected: false
|
|
102032
102065
|
}) : /* @__PURE__ */ jsx(FilterDropDown$1, {
|
|
102033
102066
|
selectedOption: option2,
|
|
@@ -102040,7 +102073,7 @@ const FilterField = ({
|
|
|
102040
102073
|
isSearchEnabled: true,
|
|
102041
102074
|
label: "Filter Value",
|
|
102042
102075
|
labelVariant: "static",
|
|
102043
|
-
className:
|
|
102076
|
+
className: styles$1.filterDropdown,
|
|
102044
102077
|
autoSelected: false
|
|
102045
102078
|
})
|
|
102046
102079
|
})
|
|
@@ -102137,15 +102170,15 @@ const MetricFilters = ({
|
|
|
102137
102170
|
};
|
|
102138
102171
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
102139
102172
|
children: /* @__PURE__ */ jsxs("div", {
|
|
102140
|
-
className: styles$
|
|
102173
|
+
className: styles$2.container,
|
|
102141
102174
|
children: [/* @__PURE__ */ jsxs("form", {
|
|
102142
|
-
className: styles$
|
|
102175
|
+
className: styles$2.form,
|
|
102143
102176
|
onSubmit: handleSubmit,
|
|
102144
102177
|
onReset: resetFilters,
|
|
102145
102178
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
102146
102179
|
variant: "p",
|
|
102147
102180
|
styleClass: "font-18",
|
|
102148
|
-
className: styles$
|
|
102181
|
+
className: styles$2.title,
|
|
102149
102182
|
children: "Filters:"
|
|
102150
102183
|
}), filters2[0].columns.map((col) => /* @__PURE__ */ jsx(FilterField$1, {
|
|
102151
102184
|
tableName: filters2[0].tableName,
|
|
@@ -102163,29 +102196,29 @@ const MetricFilters = ({
|
|
|
102163
102196
|
}, col.name)), /* @__PURE__ */ jsxs(Button, {
|
|
102164
102197
|
type: "submit",
|
|
102165
102198
|
variant: "outlined",
|
|
102166
|
-
className: styles$
|
|
102199
|
+
className: styles$2.apply,
|
|
102167
102200
|
children: [/* @__PURE__ */ jsx(icOutlineFilterAlt, {}), " Apply Filters"]
|
|
102168
102201
|
}), /* @__PURE__ */ jsxs(Button, {
|
|
102169
102202
|
type: "reset",
|
|
102170
102203
|
variant: "secondary",
|
|
102171
|
-
className: styles$
|
|
102204
|
+
className: styles$2.reset,
|
|
102172
102205
|
children: [/* @__PURE__ */ jsx(grommetIconsPowerReset, {}), " Reset Filters"]
|
|
102173
102206
|
})]
|
|
102174
102207
|
}), appliedfilters.length ? /* @__PURE__ */ jsx("ul", {
|
|
102175
|
-
className: styles$
|
|
102208
|
+
className: styles$2.filters,
|
|
102176
102209
|
children: appliedfilters.map((filter2) => {
|
|
102177
102210
|
var _a2;
|
|
102178
102211
|
return /* @__PURE__ */ jsxs("li", {
|
|
102179
|
-
className: styles$
|
|
102212
|
+
className: styles$2.filterItem,
|
|
102180
102213
|
children: [filter2.column, /* @__PURE__ */ jsx("span", {
|
|
102181
|
-
className: styles$
|
|
102214
|
+
className: styles$2.filterItemOperator,
|
|
102182
102215
|
children: ((_a2 = operatorList.find((op) => op.value === filter2.operator)) == null ? void 0 : _a2.label) || ""
|
|
102183
102216
|
}), !isNullFilterOperator(filter2.operator) ? /* @__PURE__ */ jsx(Fragment, {
|
|
102184
102217
|
children: Array.isArray(filter2.value) ? `[${filter2.value.map((v4) => v4).join(",")}]` : filter2.value
|
|
102185
102218
|
}) : null, /* @__PURE__ */ jsx(Button, {
|
|
102186
102219
|
type: "button",
|
|
102187
102220
|
variant: "custom",
|
|
102188
|
-
className: styles$
|
|
102221
|
+
className: styles$2.remove,
|
|
102189
102222
|
onClick: () => setAppliedFilters((prev) => prev.filter((a2) => a2.column !== filter2.column)),
|
|
102190
102223
|
children: /* @__PURE__ */ jsx(carbonClose, {})
|
|
102191
102224
|
})]
|
|
@@ -102196,6 +102229,16 @@ const MetricFilters = ({
|
|
|
102196
102229
|
});
|
|
102197
102230
|
};
|
|
102198
102231
|
var MetricFilters$1 = React__default.memo(MetricFilters);
|
|
102232
|
+
const icOutlineFilterAltOff = (props) => /* @__PURE__ */ jsx("svg", {
|
|
102233
|
+
viewBox: "0 0 24 24",
|
|
102234
|
+
width: "1.2em",
|
|
102235
|
+
height: "1.2em",
|
|
102236
|
+
...props,
|
|
102237
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
102238
|
+
fill: "currentColor",
|
|
102239
|
+
d: "m16.95 6l-3.57 4.55l1.43 1.43c1.03-1.31 4.98-6.37 4.98-6.37A.998.998 0 0 0 19 4H6.83l2 2h8.12zM2.81 2.81L1.39 4.22L10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-2.17l5.78 5.78l1.41-1.41L2.81 2.81z"
|
|
102240
|
+
})
|
|
102241
|
+
});
|
|
102199
102242
|
const container = "_container_7vfcn_1";
|
|
102200
102243
|
const windowIcon = "_windowIcon_7vfcn_7";
|
|
102201
102244
|
var styles = {
|
|
@@ -102240,9 +102283,67 @@ const ErrorFallback = () => {
|
|
|
102240
102283
|
});
|
|
102241
102284
|
};
|
|
102242
102285
|
var ErrorFallback$1 = React__default.memo(ErrorFallback);
|
|
102286
|
+
const applyTheme = (theme2) => {
|
|
102287
|
+
const root = document.documentElement;
|
|
102288
|
+
if (theme2.colors)
|
|
102289
|
+
Object.entries(theme2.colors).forEach(([key, value]) => {
|
|
102290
|
+
root.style.setProperty(`--databrainhq-plugin-color-${key}`, `${value}`);
|
|
102291
|
+
});
|
|
102292
|
+
if (theme2.border)
|
|
102293
|
+
Object.entries(theme2.border).forEach(([key, value]) => {
|
|
102294
|
+
root.style.setProperty(`--databrainhq-plugin-border-${key}`, `${value}`);
|
|
102295
|
+
});
|
|
102296
|
+
if (theme2.shadow)
|
|
102297
|
+
Object.entries(theme2.shadow).forEach(([key, value]) => {
|
|
102298
|
+
root.style.setProperty(`--databrainhq-plugin-shadow-${key}`, `${value}`);
|
|
102299
|
+
});
|
|
102300
|
+
if (theme2.typography)
|
|
102301
|
+
Object.entries(theme2.typography).forEach(([key, value]) => {
|
|
102302
|
+
root.style.setProperty(
|
|
102303
|
+
`--databrainhq-plugin-typography-${key}`,
|
|
102304
|
+
`${value}`
|
|
102305
|
+
);
|
|
102306
|
+
});
|
|
102307
|
+
if (theme2.breakpoint)
|
|
102308
|
+
Object.entries(theme2.breakpoint).forEach(([key, value]) => {
|
|
102309
|
+
root.style.setProperty(
|
|
102310
|
+
`--databrainhq-plugin-breakpoint-${key}`,
|
|
102311
|
+
`${value}`
|
|
102312
|
+
);
|
|
102313
|
+
});
|
|
102314
|
+
};
|
|
102315
|
+
const akarIconsSettingsHorizontal = (props) => /* @__PURE__ */ jsx("svg", {
|
|
102316
|
+
viewBox: "0 0 24 24",
|
|
102317
|
+
width: "1.2em",
|
|
102318
|
+
height: "1.2em",
|
|
102319
|
+
...props,
|
|
102320
|
+
children: /* @__PURE__ */ jsxs("g", {
|
|
102321
|
+
fill: "none",
|
|
102322
|
+
stroke: "currentColor",
|
|
102323
|
+
strokeLinecap: "round",
|
|
102324
|
+
strokeWidth: 2,
|
|
102325
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
102326
|
+
d: "M3 5h4m14 0H11m-8 7h12m6 0h-2M3 19h2m16 0H9"
|
|
102327
|
+
}), /* @__PURE__ */ jsx("circle", {
|
|
102328
|
+
cx: 9,
|
|
102329
|
+
cy: 5,
|
|
102330
|
+
r: 2
|
|
102331
|
+
}), /* @__PURE__ */ jsx("circle", {
|
|
102332
|
+
cx: 17,
|
|
102333
|
+
cy: 12,
|
|
102334
|
+
r: 2
|
|
102335
|
+
}), /* @__PURE__ */ jsx("circle", {
|
|
102336
|
+
cx: 7,
|
|
102337
|
+
cy: 19,
|
|
102338
|
+
r: 2
|
|
102339
|
+
})]
|
|
102340
|
+
})
|
|
102341
|
+
});
|
|
102243
102342
|
const queryClient = new QueryClient();
|
|
102244
102343
|
const EmbeddedDashboard = React__default.memo(({
|
|
102245
|
-
token
|
|
102344
|
+
token,
|
|
102345
|
+
options: options2,
|
|
102346
|
+
theme: theme2
|
|
102246
102347
|
}) => {
|
|
102247
102348
|
var _a2, _b2;
|
|
102248
102349
|
const {
|
|
@@ -102256,42 +102357,56 @@ const EmbeddedDashboard = React__default.memo(({
|
|
|
102256
102357
|
});
|
|
102257
102358
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
102258
102359
|
children: /* @__PURE__ */ jsxs("div", {
|
|
102259
|
-
className: styles$
|
|
102360
|
+
className: styles$A["embedDashboard-container"],
|
|
102260
102361
|
children: [((_a2 = data.externalDashboard) == null ? void 0 : _a2.id) && !isLoading && /* @__PURE__ */ jsxs(Fragment, {
|
|
102261
102362
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
102262
|
-
className: styles$
|
|
102263
|
-
children: [
|
|
102264
|
-
|
|
102265
|
-
|
|
102266
|
-
|
|
102267
|
-
onClick: () => setShowFilters((s2) => !s2),
|
|
102268
|
-
children: /* @__PURE__ */ jsx(icOutlineFilterAlt, {
|
|
102269
|
-
color: "#182C60"
|
|
102363
|
+
className: (options2 == null ? void 0 : options2.headerVariant) === "floating" ? styles$A["embedDashboard-header-floating"] : styles$A["embedDashboard-header-static"],
|
|
102364
|
+
children: [(options2 == null ? void 0 : options2.headerVariant) === "floating" && /* @__PURE__ */ jsx("span", {
|
|
102365
|
+
className: styles$A.floatingButton,
|
|
102366
|
+
children: /* @__PURE__ */ jsx(akarIconsSettingsHorizontal, {
|
|
102367
|
+
className: styles$A.floatingButtonIcon
|
|
102270
102368
|
})
|
|
102271
|
-
})
|
|
102272
|
-
|
|
102273
|
-
|
|
102274
|
-
|
|
102275
|
-
|
|
102369
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
102370
|
+
className: (options2 == null ? void 0 : options2.headerVariant) === "floating" ? styles$A.floatingContainer : styles$A.staticContainer,
|
|
102371
|
+
children: [data.externalDashboard.filters.length ? /* @__PURE__ */ jsx(Button, {
|
|
102372
|
+
type: "button",
|
|
102373
|
+
variant: "custom",
|
|
102374
|
+
size: "large",
|
|
102375
|
+
className: (options2 == null ? void 0 : options2.headerVariant) === "floating" ? styles$A.floatingFilterButton : styles$A.filter,
|
|
102376
|
+
onClick: () => setShowFilters((s2) => !s2),
|
|
102377
|
+
children: isShowFilters ? /* @__PURE__ */ jsx(icOutlineFilterAltOff, {
|
|
102378
|
+
className: styles$A.floatingFilterButtonIcon
|
|
102379
|
+
}) : /* @__PURE__ */ jsx(icOutlineFilterAlt, {
|
|
102380
|
+
className: styles$A.floatingFilterButtonIcon
|
|
102381
|
+
})
|
|
102382
|
+
}) : null, !(options2 == null ? void 0 : options2.disableMetricCreation) && /* @__PURE__ */ jsx(EmbeddedMetricCreation, {
|
|
102383
|
+
clientId: data.clientId,
|
|
102384
|
+
companyId: data.companyId,
|
|
102385
|
+
mode: data.mode,
|
|
102386
|
+
externalDashboardId: data.externalDashboard.id,
|
|
102387
|
+
variant: options2 == null ? void 0 : options2.headerVariant
|
|
102388
|
+
})]
|
|
102276
102389
|
})]
|
|
102277
102390
|
}), /* @__PURE__ */ jsxs("div", {
|
|
102278
|
-
className: styles$
|
|
102391
|
+
className: styles$A["embedDashboard-wrapper"],
|
|
102279
102392
|
children: [data.externalDashboard.filters.length && isShowFilters ? /* @__PURE__ */ jsx(MetricFilters$1, {
|
|
102280
102393
|
companyId: data.companyId,
|
|
102281
102394
|
filters: data.externalDashboard.filters,
|
|
102282
102395
|
onApply: (values) => setGlobalFilters(values)
|
|
102283
102396
|
}) : null, /* @__PURE__ */ jsx(ExternalMetricList$1, {
|
|
102284
102397
|
client: data.clientId,
|
|
102285
|
-
company: data.companyId,
|
|
102286
102398
|
isLiveMode: data.mode,
|
|
102287
102399
|
params: Array.isArray(data.rlsSettings) ? data.rlsSettings : [],
|
|
102288
102400
|
externalDashboardMetrics: data.externalDashboardMetrics,
|
|
102289
102401
|
isMetricListLoading: isLoading,
|
|
102290
|
-
globalFilters
|
|
102402
|
+
globalFilters,
|
|
102403
|
+
breakpoint: theme2 == null ? void 0 : theme2.breakpoint,
|
|
102404
|
+
layoutCols: theme2 == null ? void 0 : theme2.metricLayoutCols,
|
|
102405
|
+
chartColors: options2 == null ? void 0 : options2.chartColors
|
|
102291
102406
|
})]
|
|
102292
102407
|
})]
|
|
102293
102408
|
}), isLoading && /* @__PURE__ */ jsx("div", {
|
|
102294
|
-
className: styles$
|
|
102409
|
+
className: styles$A["alt-container"],
|
|
102295
102410
|
children: /* @__PURE__ */ jsx(eosIconsLoading, {
|
|
102296
102411
|
style: {
|
|
102297
102412
|
width: "50px",
|
|
@@ -102300,21 +102415,31 @@ const EmbeddedDashboard = React__default.memo(({
|
|
|
102300
102415
|
}
|
|
102301
102416
|
})
|
|
102302
102417
|
}), !isLoading && !((_b2 = data.externalDashboard) == null ? void 0 : _b2.id) && /* @__PURE__ */ jsx("div", {
|
|
102303
|
-
className: styles$
|
|
102418
|
+
className: styles$A["alt-container"],
|
|
102304
102419
|
children: "Invalid token or Dashboard id"
|
|
102305
102420
|
})]
|
|
102306
102421
|
})
|
|
102307
102422
|
});
|
|
102308
102423
|
});
|
|
102309
102424
|
const Dashboard = React__default.memo(({
|
|
102310
|
-
token
|
|
102311
|
-
|
|
102312
|
-
|
|
102313
|
-
|
|
102314
|
-
|
|
102315
|
-
|
|
102316
|
-
|
|
102425
|
+
token,
|
|
102426
|
+
options: options2,
|
|
102427
|
+
theme: theme2
|
|
102428
|
+
}) => {
|
|
102429
|
+
useEffect(() => {
|
|
102430
|
+
if (!theme2 || !Object.keys(theme2).length)
|
|
102431
|
+
return;
|
|
102432
|
+
applyTheme(theme2);
|
|
102433
|
+
}, [theme2]);
|
|
102434
|
+
return /* @__PURE__ */ jsx(ErrorBoundary, {
|
|
102435
|
+
FallbackComponent: ErrorFallback$1,
|
|
102436
|
+
children: /* @__PURE__ */ jsx(QueryClientProvider, {
|
|
102437
|
+
client: queryClient,
|
|
102438
|
+
children: /* @__PURE__ */ jsx(EmbeddedDashboard, {
|
|
102439
|
+
token,
|
|
102440
|
+
options: options2
|
|
102441
|
+
})
|
|
102317
102442
|
})
|
|
102318
|
-
})
|
|
102319
|
-
})
|
|
102443
|
+
});
|
|
102444
|
+
});
|
|
102320
102445
|
export { Dashboard };
|