@databrainhq/plugin 0.8.4 → 0.8.6
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/FloatingDropDown/index.d.ts +2 -1
- package/dist/components/MetricList/components/ArchiveMetricModal.d.ts +9 -0
- package/dist/components/MetricList/components/MetricCard.d.ts +1 -1
- package/dist/components/MetricList/index.d.ts +1 -1
- package/dist/index.es.js +155 -145
- package/dist/index.umd.js +51 -51
- package/dist/style.css +1 -1
- package/dist/utils/generated/graphql.d.ts +195 -19
- package/package.json +1 -1
- package/dist/components/MetricList/components/DeleteMetricModal.d.ts +0 -8
|
@@ -14,8 +14,9 @@ export declare type FloatingDropDownProps = {
|
|
|
14
14
|
closeControl?: {
|
|
15
15
|
close: boolean;
|
|
16
16
|
};
|
|
17
|
+
labelDesign?: string;
|
|
17
18
|
};
|
|
18
|
-
export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, className, options, isDisabled, children, icon, isSearchEnabled, closeControl, }: FloatingDropDownProps) => JSX.Element;
|
|
19
|
+
export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, className, options, isDisabled, children, icon, isSearchEnabled, closeControl, labelDesign, }: FloatingDropDownProps) => JSX.Element;
|
|
19
20
|
export declare type MultiFloatingDropDownProps = Omit<FloatingDropDownProps, 'selectedOption' | 'onChange'> & {
|
|
20
21
|
selectedOptions: FloatingDropDownOption[];
|
|
21
22
|
onChange: (options: FloatingDropDownOption[]) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ModalProps } from '@/components/Modal';
|
|
3
|
+
export interface ArchiveMetricModalProps extends Omit<ModalProps, 'headerTitle'> {
|
|
4
|
+
onSuccess: () => void;
|
|
5
|
+
metricId: string;
|
|
6
|
+
dashboardId: string;
|
|
7
|
+
clientId: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ArchiveMetricModal: React.FC<ArchiveMetricModalProps>;
|
|
@@ -14,6 +14,6 @@ export declare type MetricCardProps = {
|
|
|
14
14
|
param?: any;
|
|
15
15
|
companyTenancyType: string;
|
|
16
16
|
renderHeaderName?: (name: string) => JSX.Element;
|
|
17
|
-
|
|
17
|
+
onArchive?: (metricId: string) => void;
|
|
18
18
|
};
|
|
19
19
|
export declare const MetricCard: React.FC<MetricCardProps>;
|
package/dist/index.es.js
CHANGED
|
@@ -6329,17 +6329,17 @@ var styles$x = {
|
|
|
6329
6329
|
cancel,
|
|
6330
6330
|
error: error$2
|
|
6331
6331
|
};
|
|
6332
|
-
const label$6 = "
|
|
6333
|
-
const floatingLabel$1 = "
|
|
6334
|
-
const checkboxLabel = "
|
|
6335
|
-
const input$2 = "
|
|
6336
|
-
const floatingInput = "
|
|
6337
|
-
const checkboxField = "
|
|
6338
|
-
const inputWrapper$1 = "
|
|
6332
|
+
const label$6 = "_label_15bnc_1";
|
|
6333
|
+
const floatingLabel$1 = "_floatingLabel_15bnc_7";
|
|
6334
|
+
const checkboxLabel = "_checkboxLabel_15bnc_19";
|
|
6335
|
+
const input$2 = "_input_15bnc_13";
|
|
6336
|
+
const floatingInput = "_floatingInput_15bnc_31";
|
|
6337
|
+
const checkboxField = "_checkboxField_15bnc_37";
|
|
6338
|
+
const inputWrapper$1 = "_inputWrapper_15bnc_43";
|
|
6339
6339
|
var styles$w = {
|
|
6340
6340
|
label: label$6,
|
|
6341
6341
|
floatingLabel: floatingLabel$1,
|
|
6342
|
-
"inputField-container": "_inputField-
|
|
6342
|
+
"inputField-container": "_inputField-container_15bnc_13",
|
|
6343
6343
|
checkboxLabel,
|
|
6344
6344
|
input: input$2,
|
|
6345
6345
|
floatingInput,
|
|
@@ -6395,9 +6395,9 @@ const InputField = ({
|
|
|
6395
6395
|
})]
|
|
6396
6396
|
});
|
|
6397
6397
|
};
|
|
6398
|
-
const label$5 = "
|
|
6399
|
-
const textarea = "
|
|
6400
|
-
const resizable = "
|
|
6398
|
+
const label$5 = "_label_1hsdg_1";
|
|
6399
|
+
const textarea = "_textarea_1hsdg_9";
|
|
6400
|
+
const resizable = "_resizable_1hsdg_17";
|
|
6401
6401
|
var styles$v = {
|
|
6402
6402
|
label: label$5,
|
|
6403
6403
|
textarea,
|
|
@@ -6703,9 +6703,9 @@ const useCompanySubsetTableDataMutation = (options2) => useMutation(
|
|
|
6703
6703
|
options2
|
|
6704
6704
|
);
|
|
6705
6705
|
const EmbeddedDashboardMetricsDocument = `
|
|
6706
|
-
query EmbeddedDashboardMetrics($externalDashboardId: String! = "") {
|
|
6706
|
+
query EmbeddedDashboardMetrics($externalDashboardId: String! = "", $clientId: String! = "") {
|
|
6707
6707
|
externalDashboardMetrics(
|
|
6708
|
-
where: {externalDashboard: {externalDashboardId: {_eq: $externalDashboardId}}, externalMetric: {
|
|
6708
|
+
where: {externalDashboard: {externalDashboardId: {_eq: $externalDashboardId}}, _not: {externalMetric: {clientDeletedMetrics: {clientId: {_eq: $clientId}}}}}
|
|
6709
6709
|
) {
|
|
6710
6710
|
externalMetricId
|
|
6711
6711
|
externalDashboardId
|
|
@@ -6835,6 +6835,21 @@ const useUnderlyingDataMutation = (options2) => useMutation(
|
|
|
6835
6835
|
(variables) => fetcher(UnderlyingDataDocument, variables)(),
|
|
6836
6836
|
options2
|
|
6837
6837
|
);
|
|
6838
|
+
const MarkArchiveMetricDocument = `
|
|
6839
|
+
mutation MarkArchiveMetric($id: uuid! = "", $clientId: String! = "") {
|
|
6840
|
+
insert_clientDeletedMetrics_one(
|
|
6841
|
+
object: {externalMetricId: $id, clientId: $clientId}
|
|
6842
|
+
) {
|
|
6843
|
+
clientId
|
|
6844
|
+
externalMetricId
|
|
6845
|
+
}
|
|
6846
|
+
}
|
|
6847
|
+
`;
|
|
6848
|
+
const useMarkArchiveMetricMutation = (options2) => useMutation(
|
|
6849
|
+
["MarkArchiveMetric"],
|
|
6850
|
+
(variables) => fetcher(MarkArchiveMetricDocument, variables)(),
|
|
6851
|
+
options2
|
|
6852
|
+
);
|
|
6838
6853
|
const MarkClientDashboardLayoutChangeDocument = `
|
|
6839
6854
|
mutation MarkClientDashboardLayoutChange($clientId: String!, $externalDashboardId: uuid!) {
|
|
6840
6855
|
insert_clientDashboardMetrics_one(
|
|
@@ -6850,21 +6865,6 @@ const useMarkClientDashboardLayoutChangeMutation = (options2) => useMutation(
|
|
|
6850
6865
|
(variables) => fetcher(MarkClientDashboardLayoutChangeDocument, variables)(),
|
|
6851
6866
|
options2
|
|
6852
6867
|
);
|
|
6853
|
-
const MarkDeleteMetricDocument = `
|
|
6854
|
-
mutation MarkDeleteMetric($id: uuid! = "") {
|
|
6855
|
-
update_externalMetrics_by_pk(
|
|
6856
|
-
pk_columns: {id: $id}
|
|
6857
|
-
_set: {isMarkedDeleted: true}
|
|
6858
|
-
) {
|
|
6859
|
-
id
|
|
6860
|
-
}
|
|
6861
|
-
}
|
|
6862
|
-
`;
|
|
6863
|
-
const useMarkDeleteMetricMutation = (options2) => useMutation(
|
|
6864
|
-
["MarkDeleteMetric"],
|
|
6865
|
-
(variables) => fetcher(MarkDeleteMetricDocument, variables)(),
|
|
6866
|
-
options2
|
|
6867
|
-
);
|
|
6868
6868
|
const PreviewTableDocument = `
|
|
6869
6869
|
mutation PreviewTable($companyId: String = "", $tableName: String = "", $limit: Int = 10) {
|
|
6870
6870
|
previewTable(
|
|
@@ -7093,9 +7093,10 @@ const useEmbeddedDashboard = (token) => {
|
|
|
7093
7093
|
isLoading: isExternalDashboardMetricsDataLoading
|
|
7094
7094
|
} = useEmbeddedDashboardMetricsQuery(
|
|
7095
7095
|
{
|
|
7096
|
-
externalDashboardId
|
|
7096
|
+
externalDashboardId,
|
|
7097
|
+
clientId
|
|
7097
7098
|
},
|
|
7098
|
-
{ enabled: !!externalDashboardId }
|
|
7099
|
+
{ enabled: !!externalDashboardId && !!clientId }
|
|
7099
7100
|
);
|
|
7100
7101
|
const { data: idData, isLoading: isLoadingId } = useGetExternalDashboardIdQuery(
|
|
7101
7102
|
{ externalDashboardId },
|
|
@@ -7581,7 +7582,8 @@ const FloatingDropDown = ({
|
|
|
7581
7582
|
children: children2,
|
|
7582
7583
|
icon: icon2,
|
|
7583
7584
|
isSearchEnabled,
|
|
7584
|
-
closeControl
|
|
7585
|
+
closeControl,
|
|
7586
|
+
labelDesign
|
|
7585
7587
|
}) => {
|
|
7586
7588
|
const [isShow, setIsShow] = useState(false);
|
|
7587
7589
|
const wrapperRef = useRef(null);
|
|
@@ -7602,7 +7604,7 @@ const FloatingDropDown = ({
|
|
|
7602
7604
|
children: [label2 ? /* @__PURE__ */ jsx(Text, {
|
|
7603
7605
|
variant: "span",
|
|
7604
7606
|
styleClass: labelVariant === "floating" ? "custom" : "font-14",
|
|
7605
|
-
className: `${styles$s.label} ${labelVariant === "floating" ? styles$s.floatingLabel : ""} ${
|
|
7607
|
+
className: `${styles$s.label} ${labelVariant === "floating" ? styles$s.floatingLabel : ""} ${labelDesign === "client" ? styles$s.clientText : styles$s.normalText} `,
|
|
7606
7608
|
children: label2
|
|
7607
7609
|
}) : null, /* @__PURE__ */ jsxs(Button, {
|
|
7608
7610
|
type: "button",
|
|
@@ -85373,29 +85375,31 @@ function getAccessorAttributes(accessor) {
|
|
|
85373
85375
|
...accessor
|
|
85374
85376
|
};
|
|
85375
85377
|
}
|
|
85376
|
-
const tableData = "
|
|
85377
|
-
const tableHeadCol$1 = "
|
|
85378
|
-
const tableRow$1 = "
|
|
85379
|
-
const tableRowCol$1 = "
|
|
85380
|
-
const row = "
|
|
85381
|
-
const container$b = "
|
|
85382
|
-
const table$3 = "
|
|
85383
|
-
const previewTable = "
|
|
85384
|
-
const preview = "
|
|
85385
|
-
const previewText = "
|
|
85386
|
-
const noData$1 = "
|
|
85387
|
-
const error$1 = "
|
|
85388
|
-
const errorMsg = "
|
|
85389
|
-
const tableIcon = "
|
|
85390
|
-
const stripedRow = "
|
|
85391
|
-
const rowHover = "
|
|
85392
|
-
const rightBorder = "
|
|
85393
|
-
const searchContainer = "
|
|
85394
|
-
const sortButton = "
|
|
85395
|
-
const debounceInput = "
|
|
85396
|
-
const searchTab = "
|
|
85378
|
+
const tableData = "_tableData_6bmol_7";
|
|
85379
|
+
const tableHeadCol$1 = "_tableHeadCol_6bmol_13";
|
|
85380
|
+
const tableRow$1 = "_tableRow_6bmol_19";
|
|
85381
|
+
const tableRowCol$1 = "_tableRowCol_6bmol_25";
|
|
85382
|
+
const row = "_row_6bmol_31";
|
|
85383
|
+
const container$b = "_container_6bmol_37";
|
|
85384
|
+
const table$3 = "_table_6bmol_1";
|
|
85385
|
+
const previewTable = "_previewTable_6bmol_49";
|
|
85386
|
+
const preview = "_preview_6bmol_49";
|
|
85387
|
+
const previewText = "_previewText_6bmol_61";
|
|
85388
|
+
const noData$1 = "_noData_6bmol_67";
|
|
85389
|
+
const error$1 = "_error_6bmol_73";
|
|
85390
|
+
const errorMsg = "_errorMsg_6bmol_79";
|
|
85391
|
+
const tableIcon = "_tableIcon_6bmol_85";
|
|
85392
|
+
const stripedRow = "_stripedRow_6bmol_91";
|
|
85393
|
+
const rowHover = "_rowHover_6bmol_97";
|
|
85394
|
+
const rightBorder = "_rightBorder_6bmol_103";
|
|
85395
|
+
const searchContainer = "_searchContainer_6bmol_109";
|
|
85396
|
+
const sortButton = "_sortButton_6bmol_115";
|
|
85397
|
+
const debounceInput = "_debounceInput_6bmol_121";
|
|
85398
|
+
const searchTab = "_searchTab_6bmol_127";
|
|
85399
|
+
const noDataHead = "_noDataHead_6bmol_133";
|
|
85400
|
+
const noDataBody = "_noDataBody_6bmol_139";
|
|
85397
85401
|
var styles$o = {
|
|
85398
|
-
"table-loader-container": "_table-loader-
|
|
85402
|
+
"table-loader-container": "_table-loader-container_6bmol_1",
|
|
85399
85403
|
tableData,
|
|
85400
85404
|
tableHeadCol: tableHeadCol$1,
|
|
85401
85405
|
tableRow: tableRow$1,
|
|
@@ -85416,7 +85420,9 @@ var styles$o = {
|
|
|
85416
85420
|
searchContainer,
|
|
85417
85421
|
sortButton,
|
|
85418
85422
|
debounceInput,
|
|
85419
|
-
searchTab
|
|
85423
|
+
searchTab,
|
|
85424
|
+
noDataHead,
|
|
85425
|
+
noDataBody
|
|
85420
85426
|
};
|
|
85421
85427
|
const DebouncedInput = ({
|
|
85422
85428
|
value: initialValue,
|
|
@@ -85441,6 +85447,7 @@ const DebouncedInput = ({
|
|
|
85441
85447
|
className: styles$o.searchTab
|
|
85442
85448
|
});
|
|
85443
85449
|
};
|
|
85450
|
+
var TableIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MDAgNTAwIj48ZGVmcz48c3R5bGU+LmNscy0xe3N0cm9rZTojMTgyYzYwO30uY2xzLTEsLmNscy0ye2ZpbGw6bm9uZTtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7fS5jbHMtM3tmaWxsOiM1ODY1ZjY7b3BhY2l0eTouMTt9LmNscy00e2ZpbGw6I2YyZjNmNDt9LmNscy01e2ZpbGw6I2MxYzdjOTt9LmNscy02e2ZpbGw6IzE4MmM2MDt9LmNscy0ye3N0cm9rZTojNTg2NWY2O3N0cm9rZS13aWR0aDo0cHg7fTwvc3R5bGU+PC9kZWZzPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0ibTI3MS4xMSwxNzkuNzJsLS4wOSwyMC4zM3MuMTksNC4wNS4zOCw0LjUyLjc1LDEuODgsMS40MSwyLjM1LDEuMjcuOTksMi4yMSwxLjMyLDEuMTguNjEsMi42NC42MSwyMi42OC4wNSwyMi42OC4wNWwtMjkuMjItMjkuMThaIi8+PGxpbmUgY2xhc3M9ImNscy0xIiB4MT0iMjAzLjcxIiB5MT0iMjA4LjAxIiB4Mj0iMjM0LjkyIiB5Mj0iMjA4LjAxIi8+PGxpbmUgY2xhc3M9ImN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c3Ljk2IiB3aWR0aD0iOC40NyIgaGVpZ2h0PSI0Ii8+PHJlY3QgY2xhc3M9ImNscy00IiB4PSIyMjQuMjMiIHk9IjI3Ny45NiIgd2lkdGg9IjguNDciIGhlaWdodD0iNCIvPjxyZWN0IGNsYXNzPSJjbHMtNCIgeD0iMjQyLjY5IiB5PSIyNzcuOTYiIHdpZHRoPSI4LjQ3IiBoZWlnaHQ9IjQiLz48cmVjdCBjbGFzcz0iY2xzLTQiIHg9IjI2MC42MiIgeT0iMjc3Ljk2IiB3aWR0aD0iOC40NyIgaGVpZ2h0PSI0Ii8+PHJlY3QgY2xhc3M9ImNscy00IiB4PSIyNzguODMiIHk9IjI3Ny45NiIgd2lkdGg9IjguNDciIGhlaWdodD0iNCIvPjwvZz48Zz48cmVjdCBjbGFzcz0iY2xzLTQiIHg9IjIwNi4xNyIgeT0iMjg2LjQzIiB3aWR0aD0iOC40NyIgaGVpZ2h0PSI0Ii8+PHJlY3QgY2xhc3M9ImNscy00IiB4PSIyMjQuMjMiIHk9IjI4Ni40MyIgd2lkdGg9IjguNDciIGhlaWdodD0iNCIvPjxyZWN0IGNsYXNzPSJjbHMtNCIgeD0iMjQyLjY5IiB5PSIyODYuNDMiIHdpZHRoPSI4LjQ3IiBoZWlnaHQ9IjQiLz48cmVjdCBjbGFzcz0iY2xzLTQiIHg9IjI2MC42MiIgeT0iMjg2LjQzIiB3aWR0aD0iOC40NyIgaGVpZ2h0PSI0Ii8+PHJlY3QgY2xhc3M9ImNscy00IiB4PSIyNzguODMiIHk9IjI4Ni40MyIgd2lkdGg9IjguNDciIGhlaWdodD0iNCIvPjwvZz48L3N2Zz4=";
|
|
85444
85451
|
const eosIconsLoading = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
85445
85452
|
viewBox: "0 0 24 24",
|
|
85446
85453
|
width: "1.2em",
|
|
@@ -85463,17 +85470,6 @@ const eosIconsLoading = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
|
85463
85470
|
})
|
|
85464
85471
|
})]
|
|
85465
85472
|
});
|
|
85466
|
-
const teenyiconsTableOutline = (props) => /* @__PURE__ */ jsx("svg", {
|
|
85467
|
-
viewBox: "0 0 15 15",
|
|
85468
|
-
width: "1.2em",
|
|
85469
|
-
height: "1.2em",
|
|
85470
|
-
...props,
|
|
85471
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
85472
|
-
fill: "none",
|
|
85473
|
-
stroke: "currentColor",
|
|
85474
|
-
d: "M.5 4.5h14m-10-4v14m-3-14h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-12a1 1 0 0 1-1-1v-12a1 1 0 0 1 1-1Z"
|
|
85475
|
-
})
|
|
85476
|
-
});
|
|
85477
85473
|
const Table = ({
|
|
85478
85474
|
data,
|
|
85479
85475
|
isLoading,
|
|
@@ -85535,14 +85531,14 @@ const Table = ({
|
|
|
85535
85531
|
className: styles$o.container,
|
|
85536
85532
|
children: /* @__PURE__ */ jsxs("div", {
|
|
85537
85533
|
className: styles$o.previewTable,
|
|
85538
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
85534
|
+
children: [(tableSettings == null ? void 0 : tableSettings.showTableTitle) && /* @__PURE__ */ jsxs("div", {
|
|
85539
85535
|
className: styles$o.preview,
|
|
85540
85536
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
85541
85537
|
styleClass: "font-14c",
|
|
85542
85538
|
variant: "h1",
|
|
85543
85539
|
className: styles$o.previewText,
|
|
85544
|
-
children:
|
|
85545
|
-
}),
|
|
85540
|
+
children: tableName
|
|
85541
|
+
}), tableSettings.enableTableSearch && /* @__PURE__ */ jsx("div", {
|
|
85546
85542
|
children: /* @__PURE__ */ jsx(DebouncedInput, {
|
|
85547
85543
|
value: globalFilter,
|
|
85548
85544
|
onChange: (value) => setGlobalFilter(String(value)),
|
|
@@ -85614,18 +85610,21 @@ const Table = ({
|
|
|
85614
85610
|
})]
|
|
85615
85611
|
}), !(data == null ? void 0 : data.length) && !isLoading && !error2.length && /* @__PURE__ */ jsxs("div", {
|
|
85616
85612
|
className: styles$o.noData,
|
|
85617
|
-
children: [/* @__PURE__ */ jsx(
|
|
85618
|
-
|
|
85619
|
-
|
|
85620
|
-
|
|
85613
|
+
children: [/* @__PURE__ */ jsx("img", {
|
|
85614
|
+
src: TableIcon,
|
|
85615
|
+
alt: "no-data",
|
|
85616
|
+
width: "400px",
|
|
85617
|
+
height: "400px"
|
|
85621
85618
|
}), /* @__PURE__ */ jsx(Text, {
|
|
85622
|
-
styleClass: "font-
|
|
85623
|
-
variant: "
|
|
85624
|
-
|
|
85619
|
+
styleClass: "font-14c",
|
|
85620
|
+
variant: "h1",
|
|
85621
|
+
className: styles$o.noDataHead,
|
|
85622
|
+
children: "No data tables queried"
|
|
85625
85623
|
}), /* @__PURE__ */ jsx(Text, {
|
|
85626
|
-
styleClass: "font-
|
|
85624
|
+
styleClass: "font-14",
|
|
85627
85625
|
variant: "p",
|
|
85628
|
-
|
|
85626
|
+
className: styles$o.noDataBody,
|
|
85627
|
+
children: "Type your query and input fields beside to generate results and explore data"
|
|
85629
85628
|
})]
|
|
85630
85629
|
}), error2 && /* @__PURE__ */ jsx("div", {
|
|
85631
85630
|
className: styles$o.error,
|
|
@@ -87994,6 +87993,10 @@ const TableTab = ({
|
|
|
87994
87993
|
alignItems: "center",
|
|
87995
87994
|
justifyContent: "center"
|
|
87996
87995
|
};
|
|
87996
|
+
useEffect(() => {
|
|
87997
|
+
if (selectedTab2 !== INPUT_TABLE)
|
|
87998
|
+
setSelectedTab(INPUT_TABLE);
|
|
87999
|
+
}, [previewTableDataList]);
|
|
87997
88000
|
return /* @__PURE__ */ jsxs("div", {
|
|
87998
88001
|
className: styles$b.container,
|
|
87999
88002
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
@@ -95046,38 +95049,38 @@ var styles$5 = {
|
|
|
95046
95049
|
"noMetric-wrapper": "_noMetric-wrapper_1jw09_25",
|
|
95047
95050
|
"alt-container": "_alt-container_1jw09_33"
|
|
95048
95051
|
};
|
|
95049
|
-
const cardContainer = "
|
|
95050
|
-
const listHeader = "
|
|
95051
|
-
const metricName = "
|
|
95052
|
-
const metricTitle = "
|
|
95053
|
-
const metricDescription = "
|
|
95054
|
-
const popup = "
|
|
95055
|
-
const metricFilter$1 = "
|
|
95056
|
-
const popupIcon = "
|
|
95057
|
-
const popupMenu = "
|
|
95058
|
-
const popupItem = "
|
|
95059
|
-
const popupItemIcon = "
|
|
95060
|
-
const csvBtn = "
|
|
95061
|
-
const deleteBtn = "
|
|
95062
|
-
const metricData = "
|
|
95063
|
-
const singleValueData = "
|
|
95064
|
-
const singleValue = "
|
|
95065
|
-
const noData = "
|
|
95066
|
-
const noDataContent = "
|
|
95067
|
-
const noDataText = "
|
|
95068
|
-
const loading$1 = "
|
|
95069
|
-
const features = "
|
|
95070
|
-
const fullscreen$1 = "
|
|
95071
|
-
const deleteModal = "
|
|
95072
|
-
const cancelBtn = "
|
|
95073
|
-
const warningIcon = "
|
|
95074
|
-
const downloadCsv = "
|
|
95075
|
-
const downloadCsvWrapper = "
|
|
95076
|
-
const downloadCsvHeader = "
|
|
95077
|
-
const downloadCsvFooter = "
|
|
95078
|
-
const downloadCsvCancelBtn = "
|
|
95079
|
-
const downloadCsvNote = "
|
|
95080
|
-
const downloadCsvNoteText = "
|
|
95052
|
+
const cardContainer = "_cardContainer_1e5h2_1";
|
|
95053
|
+
const listHeader = "_listHeader_1e5h2_9";
|
|
95054
|
+
const metricName = "_metricName_1e5h2_17";
|
|
95055
|
+
const metricTitle = "_metricTitle_1e5h2_25";
|
|
95056
|
+
const metricDescription = "_metricDescription_1e5h2_33";
|
|
95057
|
+
const popup = "_popup_1e5h2_41";
|
|
95058
|
+
const metricFilter$1 = "_metricFilter_1e5h2_49";
|
|
95059
|
+
const popupIcon = "_popupIcon_1e5h2_57";
|
|
95060
|
+
const popupMenu = "_popupMenu_1e5h2_65";
|
|
95061
|
+
const popupItem = "_popupItem_1e5h2_73";
|
|
95062
|
+
const popupItemIcon = "_popupItemIcon_1e5h2_81";
|
|
95063
|
+
const csvBtn = "_csvBtn_1e5h2_89";
|
|
95064
|
+
const deleteBtn = "_deleteBtn_1e5h2_97";
|
|
95065
|
+
const metricData = "_metricData_1e5h2_105";
|
|
95066
|
+
const singleValueData = "_singleValueData_1e5h2_113";
|
|
95067
|
+
const singleValue = "_singleValue_1e5h2_113";
|
|
95068
|
+
const noData = "_noData_1e5h2_129";
|
|
95069
|
+
const noDataContent = "_noDataContent_1e5h2_137";
|
|
95070
|
+
const noDataText = "_noDataText_1e5h2_145";
|
|
95071
|
+
const loading$1 = "_loading_1e5h2_153";
|
|
95072
|
+
const features = "_features_1e5h2_161";
|
|
95073
|
+
const fullscreen$1 = "_fullscreen_1e5h2_169";
|
|
95074
|
+
const deleteModal = "_deleteModal_1e5h2_177";
|
|
95075
|
+
const cancelBtn = "_cancelBtn_1e5h2_185";
|
|
95076
|
+
const warningIcon = "_warningIcon_1e5h2_193";
|
|
95077
|
+
const downloadCsv = "_downloadCsv_1e5h2_201";
|
|
95078
|
+
const downloadCsvWrapper = "_downloadCsvWrapper_1e5h2_209";
|
|
95079
|
+
const downloadCsvHeader = "_downloadCsvHeader_1e5h2_215";
|
|
95080
|
+
const downloadCsvFooter = "_downloadCsvFooter_1e5h2_221";
|
|
95081
|
+
const downloadCsvCancelBtn = "_downloadCsvCancelBtn_1e5h2_229";
|
|
95082
|
+
const downloadCsvNote = "_downloadCsvNote_1e5h2_237";
|
|
95083
|
+
const downloadCsvNoteText = "_downloadCsvNoteText_1e5h2_245";
|
|
95081
95084
|
var styles$4 = {
|
|
95082
95085
|
cardContainer,
|
|
95083
95086
|
listHeader,
|
|
@@ -95113,14 +95116,14 @@ var styles$4 = {
|
|
|
95113
95116
|
downloadCsvNoteText
|
|
95114
95117
|
};
|
|
95115
95118
|
var NoData = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJMYXllcl8xI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
95117
95120
|
viewBox: "0 0 24 24",
|
|
95118
95121
|
width: "1.2em",
|
|
95119
95122
|
height: "1.2em",
|
|
95120
95123
|
...props,
|
|
95121
95124
|
children: /* @__PURE__ */ jsx("path", {
|
|
95122
95125
|
fill: "currentColor",
|
|
95123
|
-
d: "
|
|
95126
|
+
d: "M5 21q-.825 0-1.413-.587Q3 19.825 3 19V6.5q0-.375.125-.675q.125-.3.325-.575l1.4-1.7q.2-.275.5-.413Q5.65 3 6 3h12q.35 0 .65.137q.3.138.5.413l1.4 1.7q.2.275.325.575q.125.3.125.675V19q0 .825-.587 1.413Q19.825 21 19 21Zm.4-15h13.2l-.85-1H6.25ZM5 8v11h14V8Zm7 10l4-4l-1.4-1.4l-1.6 1.6V10h-2v4.2l-1.6-1.6L8 14Zm-7 1h14H5Z"
|
|
95124
95127
|
})
|
|
95125
95128
|
});
|
|
95126
95129
|
const handleSaveChartImage = (chartRef) => {
|
|
@@ -95190,7 +95193,8 @@ const MetricFilterDropDown = ({
|
|
|
95190
95193
|
value: o2,
|
|
95191
95194
|
label: o2
|
|
95192
95195
|
})),
|
|
95193
|
-
onChange: (option2) => onChangeFilterValue(rlsConditions[0].name, option2.value)
|
|
95196
|
+
onChange: (option2) => onChangeFilterValue(rlsConditions[0].name, option2.value),
|
|
95197
|
+
labelDesign: "client"
|
|
95194
95198
|
})
|
|
95195
95199
|
}) : /* @__PURE__ */ jsx("div", {
|
|
95196
95200
|
className: styles$3.metricFilter,
|
|
@@ -95205,6 +95209,7 @@ const MetricFilterDropDown = ({
|
|
|
95205
95209
|
label: o2.name
|
|
95206
95210
|
})),
|
|
95207
95211
|
onChange: (option2) => onChangeFilterValue(rlsConditions[0].name, option2.value),
|
|
95212
|
+
labelDesign: "client",
|
|
95208
95213
|
children: rlsConditions[0].value === "Custom" ? /* @__PURE__ */ jsxs("div", {
|
|
95209
95214
|
className: styles$3.customContainer,
|
|
95210
95215
|
children: [/* @__PURE__ */ jsx(InputField, {
|
|
@@ -95631,7 +95636,7 @@ const MetricCard = ({
|
|
|
95631
95636
|
param,
|
|
95632
95637
|
companyTenancyType,
|
|
95633
95638
|
renderHeaderName,
|
|
95634
|
-
|
|
95639
|
+
onArchive
|
|
95635
95640
|
}) => {
|
|
95636
95641
|
var _a2;
|
|
95637
95642
|
const chartRef = useRef(null);
|
|
@@ -96024,14 +96029,14 @@ const MetricCard = ({
|
|
|
96024
96029
|
className: styles$4.popupItemIcon
|
|
96025
96030
|
}), "Download Raw CSV"]
|
|
96026
96031
|
})]
|
|
96027
|
-
}),
|
|
96032
|
+
}), onArchive && /* @__PURE__ */ jsxs(Button, {
|
|
96028
96033
|
variant: "custom",
|
|
96029
96034
|
type: "button",
|
|
96030
96035
|
className: `${styles$4.popupItem} ${styles$4.csvBtn} ${styles$4.deleteBtn}`,
|
|
96031
|
-
onClick: () =>
|
|
96032
|
-
children: [/* @__PURE__ */ jsx(
|
|
96036
|
+
onClick: () => onArchive(metricItem.id),
|
|
96037
|
+
children: [/* @__PURE__ */ jsx(materialSymbolsArchiveOutline, {
|
|
96033
96038
|
className: styles$4.popupItemIcon
|
|
96034
|
-
}), "
|
|
96039
|
+
}), "Archive Metric"]
|
|
96035
96040
|
})]
|
|
96036
96041
|
})]
|
|
96037
96042
|
})]
|
|
@@ -96178,7 +96183,7 @@ const SingleValueCard = ({
|
|
|
96178
96183
|
param,
|
|
96179
96184
|
companyTenancyType,
|
|
96180
96185
|
renderHeaderName,
|
|
96181
|
-
|
|
96186
|
+
onArchive
|
|
96182
96187
|
}) => {
|
|
96183
96188
|
var _a2;
|
|
96184
96189
|
const filterValues2 = {};
|
|
@@ -96377,7 +96382,7 @@ const SingleValueCard = ({
|
|
|
96377
96382
|
})]
|
|
96378
96383
|
}) : null
|
|
96379
96384
|
})
|
|
96380
|
-
})),
|
|
96385
|
+
})), onArchive && /* @__PURE__ */ jsx(PopoverMenu, {
|
|
96381
96386
|
buttonClass: styles$4.popup,
|
|
96382
96387
|
button: /* @__PURE__ */ jsx(Icons, {
|
|
96383
96388
|
name: "more-icon",
|
|
@@ -96389,10 +96394,10 @@ const SingleValueCard = ({
|
|
|
96389
96394
|
variant: "custom",
|
|
96390
96395
|
type: "button",
|
|
96391
96396
|
className: `${styles$4.popupItem} ${styles$4.csvBtn} ${styles$4.deleteBtn}`,
|
|
96392
|
-
onClick: () =>
|
|
96393
|
-
children: [/* @__PURE__ */ jsx(
|
|
96397
|
+
onClick: () => onArchive(metricItem.id),
|
|
96398
|
+
children: [/* @__PURE__ */ jsx(materialSymbolsArchiveOutline, {
|
|
96394
96399
|
className: styles$4.popupItemIcon
|
|
96395
|
-
}), "
|
|
96400
|
+
}), "Archive Metric"]
|
|
96396
96401
|
})
|
|
96397
96402
|
})]
|
|
96398
96403
|
})]
|
|
@@ -96454,25 +96459,29 @@ const ionWarningOutline = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
|
96454
96459
|
d: "M256 397.25a20 20 0 1 1 20-20a20 20 0 0 1-20 20Z"
|
|
96455
96460
|
})]
|
|
96456
96461
|
});
|
|
96457
|
-
const
|
|
96462
|
+
const ArchiveMetricModal = ({
|
|
96458
96463
|
isOpen,
|
|
96459
96464
|
onClose,
|
|
96460
96465
|
onSuccess,
|
|
96461
96466
|
metricId,
|
|
96462
|
-
dashboardId
|
|
96467
|
+
dashboardId,
|
|
96468
|
+
clientId
|
|
96463
96469
|
}) => {
|
|
96464
96470
|
const queryClient2 = useQueryClient();
|
|
96465
96471
|
const {
|
|
96466
|
-
mutateAsync:
|
|
96472
|
+
mutateAsync: archiveMetric,
|
|
96467
96473
|
isLoading
|
|
96468
|
-
} =
|
|
96469
|
-
const
|
|
96470
|
-
if (!metricId || !dashboardId)
|
|
96474
|
+
} = useMarkArchiveMetricMutation();
|
|
96475
|
+
const handleArchiveMetric = async () => {
|
|
96476
|
+
if (!metricId || !dashboardId || !clientId)
|
|
96471
96477
|
return;
|
|
96472
|
-
await
|
|
96473
|
-
id: metricId
|
|
96478
|
+
await archiveMetric({
|
|
96479
|
+
id: metricId,
|
|
96480
|
+
clientId
|
|
96474
96481
|
}, {
|
|
96475
|
-
onSuccess: () => {
|
|
96482
|
+
onSuccess: (res) => {
|
|
96483
|
+
if (!res.insert_clientDeletedMetrics_one)
|
|
96484
|
+
return;
|
|
96476
96485
|
queryClient2.setQueryData(["EmbeddedDashboardMetrics", {
|
|
96477
96486
|
externalDashboardId: dashboardId
|
|
96478
96487
|
}], (prev) => {
|
|
@@ -96488,7 +96497,7 @@ const DeleteMetricModal = ({
|
|
|
96488
96497
|
});
|
|
96489
96498
|
};
|
|
96490
96499
|
return /* @__PURE__ */ jsxs(Modal, {
|
|
96491
|
-
headerTitle: "
|
|
96500
|
+
headerTitle: "Archive Metric",
|
|
96492
96501
|
isOpen,
|
|
96493
96502
|
onClose,
|
|
96494
96503
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
@@ -96498,7 +96507,7 @@ const DeleteMetricModal = ({
|
|
|
96498
96507
|
}), /* @__PURE__ */ jsx(Text, {
|
|
96499
96508
|
variant: "p",
|
|
96500
96509
|
styleClass: "font-14",
|
|
96501
|
-
children: "Are you sure you want to
|
|
96510
|
+
children: "Are you sure you want to archive the metric?"
|
|
96502
96511
|
})]
|
|
96503
96512
|
}), /* @__PURE__ */ jsxs(ModalFooter, {
|
|
96504
96513
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
@@ -96513,8 +96522,8 @@ const DeleteMetricModal = ({
|
|
|
96513
96522
|
type: "button",
|
|
96514
96523
|
size: "default",
|
|
96515
96524
|
isDisabled: isLoading,
|
|
96516
|
-
onClick:
|
|
96517
|
-
children: isLoading ? "
|
|
96525
|
+
onClick: handleArchiveMetric,
|
|
96526
|
+
children: isLoading ? "Archiving..." : "Archive"
|
|
96518
96527
|
})]
|
|
96519
96528
|
})]
|
|
96520
96529
|
});
|
|
@@ -96536,7 +96545,7 @@ const ExternalMetricList = ({
|
|
|
96536
96545
|
externalDashboardPk
|
|
96537
96546
|
}) => {
|
|
96538
96547
|
const [isFullScreen, setFullScreen] = useState(false);
|
|
96539
|
-
const [
|
|
96548
|
+
const [archiveModal, setArchiveModal] = useState({
|
|
96540
96549
|
id: "",
|
|
96541
96550
|
show: false
|
|
96542
96551
|
});
|
|
@@ -96602,7 +96611,7 @@ const ExternalMetricList = ({
|
|
|
96602
96611
|
globalFilters,
|
|
96603
96612
|
param: params == null ? void 0 : params.find((obj) => obj.metricId === metricItem.metricId),
|
|
96604
96613
|
companyTenancyType,
|
|
96605
|
-
|
|
96614
|
+
onArchive: isAllowedToDeleteMetrics ? (id2) => setArchiveModal({
|
|
96606
96615
|
id: id2,
|
|
96607
96616
|
show: true
|
|
96608
96617
|
}) : void 0
|
|
@@ -96617,7 +96626,7 @@ const ExternalMetricList = ({
|
|
|
96617
96626
|
globalFilters,
|
|
96618
96627
|
param: params == null ? void 0 : params.find((obj) => obj.metricId === metricItem.metricId),
|
|
96619
96628
|
companyTenancyType,
|
|
96620
|
-
|
|
96629
|
+
onArchive: isAllowedToDeleteMetrics ? (id2) => setArchiveModal({
|
|
96621
96630
|
id: id2,
|
|
96622
96631
|
show: true
|
|
96623
96632
|
}) : void 0
|
|
@@ -96628,14 +96637,15 @@ const ExternalMetricList = ({
|
|
|
96628
96637
|
onCancel: () => setFullScreen(false),
|
|
96629
96638
|
isShow: isFullScreen,
|
|
96630
96639
|
chart: fullScreenChart
|
|
96631
|
-
}), isAllowedToDeleteMetrics ? /* @__PURE__ */ jsx(
|
|
96632
|
-
metricId:
|
|
96633
|
-
isOpen:
|
|
96634
|
-
|
|
96640
|
+
}), isAllowedToDeleteMetrics ? /* @__PURE__ */ jsx(ArchiveMetricModal, {
|
|
96641
|
+
metricId: archiveModal.id,
|
|
96642
|
+
isOpen: archiveModal.show,
|
|
96643
|
+
clientId: client,
|
|
96644
|
+
onSuccess: () => setArchiveModal({
|
|
96635
96645
|
id: "",
|
|
96636
96646
|
show: false
|
|
96637
96647
|
}),
|
|
96638
|
-
onClose: () =>
|
|
96648
|
+
onClose: () => setArchiveModal({
|
|
96639
96649
|
id: "",
|
|
96640
96650
|
show: false
|
|
96641
96651
|
}),
|
|
@@ -96770,7 +96780,7 @@ var index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
96770
96780
|
ExternalMetricList,
|
|
96771
96781
|
MetricCard,
|
|
96772
96782
|
SingleValueCard,
|
|
96773
|
-
|
|
96783
|
+
ArchiveMetricModal,
|
|
96774
96784
|
MetricTable,
|
|
96775
96785
|
Modal,
|
|
96776
96786
|
ModalFooter,
|