impact-ui 5.0.1-chart.1 → 5.0.2
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/Breadcrumbs/Breadcrumbs.types.d.ts +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +8 -4
- package/dist/components/Chart/index.d.ts +1 -4
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Chart/index.js +3 -43
- package/dist/components/TableV36/AdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/TableV36/advanceSearchModal.d.ts.map +1 -1
- package/dist/components/TableV36/filterUtils.d.ts +21 -0
- package/dist/components/TableV36/filterUtils.d.ts.map +1 -1
- package/dist/components/TableV36/filterUtils.js +126 -16
- package/dist/components/TableV36/filterUtils.test.d.ts +2 -0
- package/dist/components/TableV36/filterUtils.test.d.ts.map +1 -0
- package/dist/components/TableV36/index.d.ts.map +1 -1
- package/dist/components/TableV36/index.js +6 -5
- package/dist/components/TableV36/tableFunctions.d.ts.map +1 -1
- package/dist/components/TableV36/tableFunctions.js +73 -17
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/locales/de-DE.json.d.ts +1 -0
- package/dist/locales/de-DE.json.js +1 -0
- package/dist/locales/en-US.json.d.ts +1 -0
- package/dist/locales/en-US.json.js +1 -0
- package/dist/locales/es-ES.json.d.ts +1 -0
- package/dist/locales/es-ES.json.js +1 -0
- package/dist/mcp-component-registry.json +8 -1
- package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +3 -1
- package/dist/utils/helper.d.ts +2 -0
- package/dist/utils/helper.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -17,5 +17,6 @@ export interface BreadcrumbItem {
|
|
|
17
17
|
export interface BreadcrumbsProps extends BaseComponentProps, Omit<MUIBreadcrumbsProps, 'children' | 'className' | 'id'> {
|
|
18
18
|
/** List of breadcrumb items (first and last are always shown; middle items can be collapsed into "…" menu) */
|
|
19
19
|
list: BreadcrumbItem[];
|
|
20
|
+
showAllItems?: boolean;
|
|
20
21
|
}
|
|
21
22
|
//# sourceMappingURL=Breadcrumbs.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.types.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/Breadcrumbs.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,gBACf,SAAQ,kBAAkB,EAAE,IAAI,CAAC,mBAAmB,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI,CAAC;IACtF,8GAA8G;IAC9G,IAAI,EAAE,cAAc,EAAE,CAAC;CACxB"}
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.types.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/Breadcrumbs.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,gBACf,SAAQ,kBAAkB,EAAE,IAAI,CAAC,mBAAmB,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI,CAAC;IACtF,8GAA8G;IAC9G,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -6,7 +6,7 @@ export type { BreadcrumbsProps, BreadcrumbItem } from './Breadcrumbs.types';
|
|
|
6
6
|
* Long paths are collapsed: first item, "…" menu (middle items), then last item.
|
|
7
7
|
* "Home" label renders the Home icon by default.
|
|
8
8
|
*/
|
|
9
|
-
export declare function Breadcrumbs({ list, className, id, 'data-testid': dataTestId, ...rest }: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function Breadcrumbs({ list, showAllItems, className, id, 'data-testid': dataTestId, ...rest }: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export declare namespace Breadcrumbs {
|
|
11
11
|
var displayName: string;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,2BAA2B,CAAC;AAEnC,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE5E;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,SAAc,EACd,EAAE,EACF,aAAa,EAAE,UAAU,EACzB,GAAG,IAAI,EACR,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,2BAA2B,CAAC;AAEnC,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE5E;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,YAAoB,EACpB,SAAc,EACd,EAAE,EACF,aAAa,EAAE,UAAU,EACzB,GAAG,IAAI,EACR,EAAE,gBAAgB,2CA+FlB;yBAtGe,WAAW"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('@keyframes ia-shimmer-horizontal{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ia-shimmer-vertical{0%{background-position:0 100%}to{background-position:0 0}}@property --ia-shimmer-angle{syntax:"<angle>";inherits:false;initial-value:0deg}@keyframes ia-shimmer-circular{0%{--ia-shimmer-angle:0deg}to{--ia-shimmer-angle:360deg}}.ia-shimmer{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ltr{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ltr{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--rtl{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(270deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--rtl{animation:none;background-image:linear-gradient(270deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--btt{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--btt{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ttb{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ttb{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--circular{background-color:#e8edf5;background-repeat:no-repeat;--ia-shimmer-angle:0deg;animation:ia-shimmer-circular 1.6s linear infinite;background-image:conic-gradient(from var(--ia-shimmer-angle),#eceef4 0deg,#e8edf5 80deg,#d5dbe8 160deg,#e8edf5 260deg,#eceef4 1turn);background-size:100% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--circular{animation:none;background-image:conic-gradient(from 0deg,#eceef4,#e8edf5,#d5dbe8,#e8edf5 1turn)}}.ia-styles.ia-breadcrumb{color:#4259ee;cursor:pointer;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;letter-spacing:-.01em;line-height:16.1px;text-align:left}.ia-styles.ia-breadcrumb:not(.ia-breadcrumb-home){border-radius:4px}.ia-styles.ia-breadcrumb:not(.ia-breadcrumb-home):focus-visible{box-shadow:0 0 0 var(--ia-focus-ring-offset,2px) var(--ia-focus-bg,#fff),0 0 0 calc(var(--ia-focus-ring-offset, 2px) + var(--ia-focus-ring-width, 2px)) var(--ia-focus-color,#4259ee);outline:none;transition:box-shadow .15s ease-in-out}.ia-styles.ia-breadcrumb:not(.ia-breadcrumb-home):focus:not(:focus-visible){box-shadow:none;outline:none}.ia-styles.ia-breadcrumb:not(.ia-breadcrumb-home).Mui-disabled:focus-visible,.ia-styles.ia-breadcrumb:not(.ia-breadcrumb-home).ia-btn-disabled:focus-visible,.ia-styles.ia-breadcrumb:not(.ia-breadcrumb-home).ia-switch-disabled:focus-visible,.ia-styles.ia-breadcrumb:not(.ia-breadcrumb-home).impact-select-disabled:focus-visible,.ia-styles.ia-breadcrumb:not(.ia-breadcrumb-home).impact_input_disabled:focus-visible,.ia-styles.ia-breadcrumb:not(.ia-breadcrumb-home).route-disabled:focus-visible,.ia-styles.ia-breadcrumb:not(.ia-breadcrumb-home):disabled:focus-visible,.ia-styles.ia-breadcrumb:not(.ia-breadcrumb-home)[aria-disabled=true]:focus-visible{box-shadow:none;outline:none}.ia-styles.ia-breadcrumb.ia-breadcrumb-disabled{color:#60697d}.ia-styles.ia-breadcrumb.ia-breadcrumb-home svg{display:flex}.ia-styles.ia-breadcrumb.ia-breadcrumb-home svg path{height:11.67px;width:10.67px}.ia-styles.ia-breadcrumb.ia-breadcrumb-extras{margin-left:5px;margin-right:-1px}.ia-styles.ia-breadcrumb:hover:not(.ia-breadcrumb-noLink):not(.ia-breadcrumb-disabled){color:#4259ee}.ia-styles.ia-breadcrumb:hover:not(.ia-breadcrumb-noLink):not(.ia-breadcrumb-disabled) path{fill:#4259ee}.ia-styles.ia-breadcrumb.ia-breadcrumb-noLink{color:#1f2b4d;cursor:default;font-weight:800}.MuiBreadcrumbs-root .MuiBreadcrumbs-separator{font-size:20px;margin-left:0;margin-right:0;margin-top:3px}.MuiBreadcrumbs-root .MuiBreadcrumbs-li:has(>*>.ia-breadcrumb-extras){height:24px}.MuiBreadcrumbs-root .MuiBreadcrumbs-li:has(>*>.ia-breadcrumb-extras) div{align-items:center;display:flex}.ia-breadcrumb-extras svg{fill:#6b7280!important;margin-top:1px}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useState, useMemo } from "react";
|
|
3
|
+
import { useState, useEffect, useMemo } from "react";
|
|
4
4
|
import default_1$1 from "../../node_modules/@mui/icons-material/KeyboardArrowRight.js";
|
|
5
5
|
import default_1 from "../../node_modules/@mui/icons-material/MoreHoriz.js";
|
|
6
6
|
import { Menu } from "../Menu/index.js";
|
|
@@ -11,6 +11,7 @@ import Link from "../../node_modules/@mui/material/Link/Link.js";
|
|
|
11
11
|
import Breadcrumbs$1 from "../../node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js";
|
|
12
12
|
function Breadcrumbs({
|
|
13
13
|
list,
|
|
14
|
+
showAllItems = false,
|
|
14
15
|
className = "",
|
|
15
16
|
id,
|
|
16
17
|
"data-testid": dataTestId,
|
|
@@ -25,8 +26,11 @@ function Breadcrumbs({
|
|
|
25
26
|
const onClose = () => {
|
|
26
27
|
setAnchorEl(null);
|
|
27
28
|
};
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
setAnchorEl(null);
|
|
31
|
+
}, [showAllItems]);
|
|
28
32
|
const breadCrumbList = useMemo(() => {
|
|
29
|
-
const filtered = list.filter((_, idx) => idx < 2 || idx > list.length - 3);
|
|
33
|
+
const filtered = showAllItems ? list : list.filter((_, idx) => idx < 2 || idx > list.length - 3);
|
|
30
34
|
const temp = filtered.map((item, index, arr) => {
|
|
31
35
|
const isLast = index === arr.length - 1;
|
|
32
36
|
if (!isLast) {
|
|
@@ -46,7 +50,7 @@ function Breadcrumbs({
|
|
|
46
50
|
return /* @__PURE__ */ jsx("span", { className: "ia-styles ia-breadcrumb ia-breadcrumb-noLink", children: item.label }, item.label);
|
|
47
51
|
});
|
|
48
52
|
const extras = list.filter((_, idx) => idx >= 2 && idx <= list.length - 3);
|
|
49
|
-
if (extras.length > 0 && temp.length > 1) {
|
|
53
|
+
if (!showAllItems && extras.length > 0 && temp.length > 1) {
|
|
50
54
|
const secondItem = temp[1];
|
|
51
55
|
temp[1] = /* @__PURE__ */ jsxs("div", { style: { display: "inline-flex" }, children: [
|
|
52
56
|
secondItem,
|
|
@@ -69,7 +73,7 @@ function Breadcrumbs({
|
|
|
69
73
|
] }, "extras-wrapper");
|
|
70
74
|
}
|
|
71
75
|
return temp;
|
|
72
|
-
}, [list, isOpen]);
|
|
76
|
+
}, [list, isOpen, showAllItems]);
|
|
73
77
|
return /* @__PURE__ */ jsx(
|
|
74
78
|
Breadcrumbs$1,
|
|
75
79
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
export declare const Chart: ({ graphType, xAxisCategories, xAxisTitle, yAxisTitle, seriesData, graphTitle, stackedColumn, is3D, showSubTitle, onChartDownload, fallbackContent, topRightOptions, showSwitchButton, showChartTypeDropdown, showDownloadButton, chartTypesOptions, selectedChart, chartMenuProps, showScrollX,
|
|
2
|
+
export declare const Chart: ({ graphType, xAxisCategories, xAxisTitle, yAxisTitle, seriesData, graphTitle, stackedColumn, is3D, showSubTitle, onChartDownload, fallbackContent, topRightOptions, showSwitchButton, showChartTypeDropdown, showDownloadButton, chartTypesOptions, selectedChart, chartMenuProps, showScrollX, topLeftOptions, cardContainer, subtitleText, legendXPosition, legendYPosition, xAxisTitlePositionY, customTooltipFormatter, sharedTooltip, showchart, setShowChart, plotOptionsEvents, customSystemButton, handleChartExpand, chartMarginBottom, showHeader, height, width, showExpandButton, showDownloadMenu, showBuiltInDownloadOptions, downloadMenuOptions, customLegend, customLegendStyle, yAxisTitleRight, chartOptions, titleOptions, xAxisOptions, yAxisOptions, yAxisLeftOptions, yAxisRightOptions, zAxisOptions, tooltipOptions, plotOptionsOptions, subtitleOptions, creditsOptions, legendOptions, colorAxisOptions, seriesOptions, additionalOptions, hoveredXAxisIndex, exportingOptions, aboveChartComponent, isEmpty, isLoading, shimmerDirection, topSubHeader, denseSkeleton, }: {
|
|
3
3
|
graphType?: string | undefined;
|
|
4
4
|
xAxisCategories: any;
|
|
5
5
|
xAxisTitle: any;
|
|
@@ -19,7 +19,6 @@ export declare const Chart: ({ graphType, xAxisCategories, xAxisTitle, yAxisTitl
|
|
|
19
19
|
selectedChart: any;
|
|
20
20
|
chartMenuProps: any;
|
|
21
21
|
showScrollX?: boolean | undefined;
|
|
22
|
-
hideScrollXScrollbar?: boolean | undefined;
|
|
23
22
|
topLeftOptions?: null | undefined;
|
|
24
23
|
cardContainer?: boolean | undefined;
|
|
25
24
|
subtitleText?: string | undefined;
|
|
@@ -62,9 +61,7 @@ export declare const Chart: ({ graphType, xAxisCategories, xAxisTitle, yAxisTitl
|
|
|
62
61
|
hoveredXAxisIndex?: null | undefined;
|
|
63
62
|
exportingOptions?: {} | undefined;
|
|
64
63
|
aboveChartComponent?: null | undefined;
|
|
65
|
-
belowChartComponent?: null | undefined;
|
|
66
64
|
isEmpty?: boolean | undefined;
|
|
67
|
-
onChartInfo?: null | undefined;
|
|
68
65
|
isLoading?: boolean | undefined;
|
|
69
66
|
shimmerDirection?: string | undefined;
|
|
70
67
|
topSubHeader?: null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/index.tsx"],"names":[],"mappings":"AAQA,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,iCAAiC,CAAC;AACzC,OAAO,gCAAgC,CAAC;AACxC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,6CAA6C,CAAC;AAUrD,OAAO,qBAAqB,CAAC;AAoC7B,eAAO,MAAM,KAAK,GAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/index.tsx"],"names":[],"mappings":"AAQA,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,iCAAiC,CAAC;AACzC,OAAO,gCAAgC,CAAC;AACxC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,6CAA6C,CAAC;AAUrD,OAAO,qBAAqB,CAAC;AAoC7B,eAAO,MAAM,KAAK,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmErB,4CAypBA,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".chart-container{background:#fff;border-radius:8px;display:flex;flex-direction:column;gap:24px;height:100%;padding:12px 12px 0;position:relative;transform-origin:center center;transition:all .25s ease}.chart-container.chart-slot-component{gap:16px}.chart-container.hide-scroll-x-scrollbar .highcharts-scrolling{scrollbar-width:none}.chart-container.hide-scroll-x-scrollbar .highcharts-scrolling::-webkit-scrollbar{display:none}.chart-container.card-container{box-shadow:0 0 4px #0000001f}.chart-container.fullscreen-animating{animation:expandAnim .2s ease forwards}.chart-container.fullscreen-animating-out{animation:collapseAnim .2s ease forwards}.chart-container.expanded{padding:24px}.chart-container .chart-container-header{align-items:center;display:flex;justify-content:space-between}.chart-container .chart-container-header .chart-container-header-title{align-items:center;display:flex;gap:6px}.chart-container .chart-container-header .chart-container-header-title .chart-container-header-title-text{color:#0d152c;font-size:16px;font-style:normal;font-weight:600;line-height:24px}.chart-container .chart-container-header .chart-container-header-actions{align-items:center;display:flex;flex-wrap:wrap;gap:12px}.chart-container .divider-line{background:#d9dde7;height:16px;width:1px}.chart-custom-actions{align-items:center;display:flex;gap:12px}.highcharts-xaxis-labels text,.highcharts-yaxis-labels text{color:#60697d!important;font-family:Manrope,sans-serif;font-size:12px!important;font-weight:500}.highcharts-xaxis .highcharts-axis-title,.highcharts-yaxis .highcharts-axis-title{color:#60697d!important;font-family:Manrope,sans-serif;font-size:14px!important;font-style:normal;font-weight:500;line-height:20px}.tooltip-key{font-size:12px;font-weight:500;line-height:16px}.tooltip-value{font-size:14px;font-weight:600;line-height:24px}.highcharts-text-outline{stroke-width:0px}.chart-empty-state{align-items:center;display:flex;flex-direction:column;gap:8px;height:100%;justify-content:center}.chart-empty-state span{color:#7a8294;font-size:16px;font-weight:600;line-height:24px;text-align:center}.chart-skeleton{box-sizing:border-box;display:flex;flex-direction:column;height:300px;min-height:160px;padding:8px 4px 16px;width:100%}.chart-skeleton .chart-skeleton-plot{display:flex;flex:1;height:100%;min-height:0;width:100%}.chart-skeleton .chart-skeleton-plot-inner{display:flex;flex:1;flex-direction:column;gap:0;min-height:0;min-width:0;padding:8px 8px 8px 12px;position:relative}.chart-skeleton .chart-skeleton-axis--x{bottom:0;left:-2px;position:absolute;right:8px}.chart-skeleton .chart-skeleton-axis{flex-shrink:0}.chart-skeleton .chart-skeleton-axis--y{align-self:stretch;height:100%;width:2px}.chart-skeleton .chart-skeleton-axis--x{height:2px;width:100%}.chart-skeleton .chart-skeleton-bars{display:flex;flex:1;min-height:0;min-width:0}.chart-skeleton .chart-skeleton-bar{border-radius:999px}.chart-skeleton .chart-skeleton-legend-item{border-radius:999px;height:10px}.chart-skeleton .chart-skeleton-plot--column{align-items:stretch;flex-direction:row;gap:0}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-bars{align-items:flex-end;flex-direction:row;gap:8px;justify-content:space-around;padding:0 8px 4px;position:relative}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-bar--column{flex:1;max-width:36px;min-width:12px}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-dual-line{height:100%;top:0;right:0;bottom:0;left:0;pointer-events:none;position:absolute;width:100%}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-dual-line-path{opacity:.85}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-axis--y-right{margin-left:-2px}.chart-skeleton .chart-skeleton-plot--column-dense{align-items:stretch;flex-direction:row;gap:0}.chart-skeleton .chart-skeleton-plot--column-dense .chart-skeleton-bars{align-items:flex-end;flex-direction:row;gap:3px;justify-content:space-between;padding:0 4px;position:relative}.chart-skeleton .chart-skeleton-plot--column-dense .chart-skeleton-bar--column-dense{border-radius:2px;flex:1;max-width:14px;min-width:4px}.chart-skeleton .chart-skeleton-plot--column-dense .chart-skeleton-dual-line{height:100%;top:0;right:0;bottom:0;left:0;pointer-events:none;position:absolute;width:100%}.chart-skeleton .chart-skeleton-plot--column-dense .chart-skeleton-dual-line-path{opacity:.85}.chart-skeleton .chart-skeleton-plot--column-dense .chart-skeleton-axis--y-right{margin-left:8px}.chart-skeleton .chart-skeleton-area-spline{flex:1;min-height:0;min-width:0;overflow:hidden;position:relative}.chart-skeleton .chart-skeleton-area-spline .chart-skeleton-area-wave{height:100%;top:0;right:0;bottom:0;left:0;position:absolute;width:100%}.chart-skeleton .chart-skeleton-area-spline .chart-skeleton-area-fill{fill:url(#area-shimmer-gradient)}.chart-skeleton .chart-skeleton-area-spline .chart-skeleton-area-fill--1{opacity:.85}.chart-skeleton .chart-skeleton-area-spline .chart-skeleton-area-fill--2{opacity:.65}.chart-skeleton .chart-skeleton-area-spline .chart-skeleton-area-shimmer-defs{height:0;position:absolute;width:0}.chart-skeleton .chart-skeleton-plot--heatmap{align-items:stretch;flex-direction:row}.chart-skeleton .chart-skeleton-plot--heatmap .chart-skeleton-heatmap{display:flex;flex:1;gap:8px;min-height:0;min-width:0;padding:0 8px 4px}.chart-skeleton .chart-skeleton-plot--heatmap .chart-skeleton-heatmap-col{display:flex;flex:1;flex-direction:column;gap:8px;min-width:0}.chart-skeleton .chart-skeleton-plot--heatmap .chart-skeleton-heatmap-cell{flex:1;min-height:0}.chart-skeleton .chart-skeleton-plot--treemap{display:flex;flex-direction:row;gap:4px;padding:0}.chart-skeleton .chart-skeleton-treemap-left{display:flex;flex:0 0 35%}.chart-skeleton .chart-skeleton-treemap-right{display:flex;flex:1;flex-direction:column;gap:4px}.chart-skeleton .chart-skeleton-treemap-top{display:flex;flex:1;flex-direction:row;gap:4px}.chart-skeleton .chart-skeleton-treemap-bottom{display:flex;flex:0 0 22%}.chart-skeleton .chart-skeleton-candles{align-items:stretch;display:flex;flex:1;flex-direction:row;gap:8px;justify-content:space-around;min-height:0;padding:0 16px}.chart-skeleton .chart-skeleton-candle{flex:1;max-width:40px;min-width:20px;position:relative}.chart-skeleton .chart-skeleton-plot--scatter{align-items:stretch;flex-direction:row;gap:0}.chart-skeleton .chart-skeleton-plot--scatter .chart-skeleton-dots{flex:1;min-height:0;min-width:0;overflow:hidden;position:relative}.chart-skeleton .chart-skeleton-plot--scatter .chart-skeleton-dot{animation:shimmer 1.6s linear infinite;background:linear-gradient(90deg,#e8edf5,#d5dbe8 40%,#eceef4 60%,#e8edf5);background-size:200% 100%;height:8px;opacity:.85;position:absolute;transform:translate(-50%,-50%);width:8px}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.chart-skeleton .chart-skeleton-plot--scatter .chart-skeleton-dot--circle{border-radius:50%}.chart-skeleton .chart-skeleton-plot--scatter .chart-skeleton-dot--square{border-radius:0}.chart-skeleton .chart-skeleton-plot--scatter .chart-skeleton-dot--triangle{animation:none;background:#0000;border-bottom:8px solid #e8edf5;border-left:4px solid #e8edf5;border-right:4px solid #e8edf5;height:0;width:0}.chart-skeleton .chart-skeleton-plot--scatter3d{align-items:center;display:flex;justify-content:center;padding:12px}.chart-skeleton .chart-skeleton-plot--scatter3d .chart-skeleton-scatter3d{height:100%;max-height:100%;width:100%}.chart-skeleton .chart-skeleton-bubble-area{flex:1;min-height:0;min-width:0;position:relative}.chart-skeleton .chart-skeleton-bubble-area .chart-skeleton-bubble{border-radius:50%;position:absolute;transform:translate(-50%,-50%)}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-lollipop{align-items:center;display:flex;flex:1;flex-direction:column;justify-content:flex-end;max-width:48px;min-width:16px}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-lollipop .chart-skeleton-lollipop-head{border-radius:50%;flex-shrink:0;height:12px;width:12px}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-lollipop .chart-skeleton-lollipop-stem{flex-shrink:1;min-height:4px;width:2px}.chart-skeleton .chart-skeleton-plot--bar{align-items:stretch;flex-direction:row;gap:0}.chart-skeleton .chart-skeleton-plot--bar .chart-skeleton-bars{flex-direction:column;gap:10px;justify-content:space-around;padding:4px 0 0 4px}.chart-skeleton .chart-skeleton-plot--bar .chart-skeleton-bar--bar{border-radius:999px;height:14px;max-width:100%;min-width:40px}.chart-skeleton .chart-skeleton-plot--line{align-items:stretch;flex-direction:row;gap:0}.chart-skeleton .chart-skeleton-plot--line .chart-skeleton-lines{flex:1;min-height:0;min-width:0;overflow:hidden;position:relative}.chart-skeleton .chart-skeleton-plot--line .chart-skeleton-lines .chart-skeleton-line-wave{height:100%;top:0;right:0;bottom:0;left:0;position:absolute;width:100%}.chart-skeleton .chart-skeleton-plot--line .chart-skeleton-lines .chart-skeleton-line-path--1{opacity:.85}.chart-skeleton .chart-skeleton-plot--line .chart-skeleton-lines .chart-skeleton-line-path--2{opacity:.65}.chart-skeleton .chart-skeleton-plot--line .chart-skeleton-lines .chart-skeleton-line-dots{top:0;right:0;bottom:0;left:0;pointer-events:none;position:absolute}.chart-skeleton .chart-skeleton-plot--line .chart-skeleton-lines .chart-skeleton-line-dot{background:#e8edf5;border-radius:50%;height:8px;opacity:.85;position:absolute;transform:translate(-50%,-50%);width:8px}.chart-skeleton .chart-skeleton-plot--line .chart-skeleton-lines .chart-skeleton-line-shimmer-defs{height:0;position:absolute;width:0}.chart-skeleton .chart-skeleton-plot--circular{align-items:center;flex-direction:column;gap:20px;justify-content:center}.chart-skeleton .chart-skeleton-plot--circular .chart-skeleton-circle{border-radius:50%;flex-shrink:0;height:180px;width:180px}.chart-skeleton .chart-skeleton-plot--circular .chart-skeleton-donut{border-radius:50%;flex-shrink:0;height:180px;-webkit-mask-image:radial-gradient(farthest-side,#0000 calc(58% - .5px),#000 calc(58% + .5px));mask-image:radial-gradient(farthest-side,#0000 calc(58% - .5px),#000 calc(58% + .5px));width:180px}.chart-skeleton .chart-skeleton-plot--circular .chart-skeleton-donut--semi{border-radius:180px 180px 0 0;height:90px;-webkit-mask-image:radial-gradient(farthest-side at 50% 100%,#0000 calc(58% - .5px),#000 calc(58% + .5px));mask-image:radial-gradient(farthest-side at 50% 100%,#0000 calc(58% - .5px),#000 calc(58% + .5px))}.chart-skeleton .chart-skeleton-plot--circular .chart-skeleton-legend{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:center}.chart-skeleton .chart-skeleton-plot--venn{align-items:center;flex-direction:column;gap:20px;justify-content:center}.chart-skeleton .chart-skeleton-plot--venn .chart-skeleton-venn-circles{align-items:center;display:flex;height:160px;justify-content:center;position:relative;width:220px}.chart-skeleton .chart-skeleton-plot--venn .chart-skeleton-venn-circle{border-radius:50%;opacity:.85;position:absolute}.chart-skeleton .chart-skeleton-plot--venn .chart-skeleton-venn-circle--left{left:30px;top:10px}.chart-skeleton .chart-skeleton-plot--venn .chart-skeleton-venn-circle--right{right:-9px;top:9px}.chart-skeleton .chart-skeleton-plot--venn .chart-skeleton-legend{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:center}@keyframes expandAnim{0%{opacity:.6;transform:scale(.98)}to{opacity:1;transform:scale(1)}}@keyframes collapseAnim{0%{opacity:1;transform:scale(1)}to{opacity:.6;transform:scale(.98)}}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".chart-container{background:#fff;border-radius:8px;display:flex;flex-direction:column;gap:24px;height:100%;padding:12px 12px 0;position:relative;transform-origin:center center;transition:all .25s ease}.chart-container.above-chart-component{gap:16px}.chart-container.card-container{box-shadow:0 0 4px #0000001f}.chart-container.fullscreen-animating{animation:expandAnim .2s ease forwards}.chart-container.fullscreen-animating-out{animation:collapseAnim .2s ease forwards}.chart-container.expanded{padding:24px}.chart-container .chart-container-header{align-items:center;display:flex;justify-content:space-between}.chart-container .chart-container-header .chart-container-header-title{align-items:center;display:flex;gap:6px}.chart-container .chart-container-header .chart-container-header-title .chart-container-header-title-text{color:#0d152c;font-size:16px;font-style:normal;font-weight:600;line-height:24px}.chart-container .chart-container-header .chart-container-header-actions{align-items:center;display:flex;flex-wrap:wrap;gap:12px}.chart-container .divider-line{background:#d9dde7;height:16px;width:1px}.chart-custom-actions{align-items:center;display:flex;gap:12px}.highcharts-xaxis-labels text,.highcharts-yaxis-labels text{color:#60697d!important;font-family:Manrope,sans-serif;font-size:12px!important;font-weight:500}.highcharts-xaxis .highcharts-axis-title,.highcharts-yaxis .highcharts-axis-title{color:#60697d!important;font-family:Manrope,sans-serif;font-size:14px!important;font-style:normal;font-weight:500;line-height:20px}.tooltip-key{font-size:12px;font-weight:500;line-height:16px}.tooltip-value{font-size:14px;font-weight:600;line-height:24px}.highcharts-text-outline{stroke-width:0px}.chart-empty-state{align-items:center;display:flex;flex-direction:column;gap:8px;height:100%;justify-content:center}.chart-empty-state span{color:#7a8294;font-size:16px;font-weight:600;line-height:24px;text-align:center}.chart-skeleton{box-sizing:border-box;display:flex;flex-direction:column;height:300px;min-height:160px;padding:8px 4px 16px;width:100%}.chart-skeleton .chart-skeleton-plot{display:flex;flex:1;height:100%;min-height:0;width:100%}.chart-skeleton .chart-skeleton-plot-inner{display:flex;flex:1;flex-direction:column;gap:0;min-height:0;min-width:0;padding:8px 8px 8px 12px;position:relative}.chart-skeleton .chart-skeleton-axis--x{bottom:0;left:-2px;position:absolute;right:8px}.chart-skeleton .chart-skeleton-axis{flex-shrink:0}.chart-skeleton .chart-skeleton-axis--y{align-self:stretch;height:100%;width:2px}.chart-skeleton .chart-skeleton-axis--x{height:2px;width:100%}.chart-skeleton .chart-skeleton-bars{display:flex;flex:1;min-height:0;min-width:0}.chart-skeleton .chart-skeleton-bar{border-radius:999px}.chart-skeleton .chart-skeleton-legend-item{border-radius:999px;height:10px}.chart-skeleton .chart-skeleton-plot--column{align-items:stretch;flex-direction:row;gap:0}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-bars{align-items:flex-end;flex-direction:row;gap:8px;justify-content:space-around;padding:0 8px 4px;position:relative}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-bar--column{flex:1;max-width:36px;min-width:12px}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-dual-line{height:100%;top:0;right:0;bottom:0;left:0;pointer-events:none;position:absolute;width:100%}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-dual-line-path{opacity:.85}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-axis--y-right{margin-left:-2px}.chart-skeleton .chart-skeleton-plot--column-dense{align-items:stretch;flex-direction:row;gap:0}.chart-skeleton .chart-skeleton-plot--column-dense .chart-skeleton-bars{align-items:flex-end;flex-direction:row;gap:3px;justify-content:space-between;padding:0 4px;position:relative}.chart-skeleton .chart-skeleton-plot--column-dense .chart-skeleton-bar--column-dense{border-radius:2px;flex:1;max-width:14px;min-width:4px}.chart-skeleton .chart-skeleton-plot--column-dense .chart-skeleton-dual-line{height:100%;top:0;right:0;bottom:0;left:0;pointer-events:none;position:absolute;width:100%}.chart-skeleton .chart-skeleton-plot--column-dense .chart-skeleton-dual-line-path{opacity:.85}.chart-skeleton .chart-skeleton-plot--column-dense .chart-skeleton-axis--y-right{margin-left:8px}.chart-skeleton .chart-skeleton-area-spline{flex:1;min-height:0;min-width:0;overflow:hidden;position:relative}.chart-skeleton .chart-skeleton-area-spline .chart-skeleton-area-wave{height:100%;top:0;right:0;bottom:0;left:0;position:absolute;width:100%}.chart-skeleton .chart-skeleton-area-spline .chart-skeleton-area-fill{fill:url(#area-shimmer-gradient)}.chart-skeleton .chart-skeleton-area-spline .chart-skeleton-area-fill--1{opacity:.85}.chart-skeleton .chart-skeleton-area-spline .chart-skeleton-area-fill--2{opacity:.65}.chart-skeleton .chart-skeleton-area-spline .chart-skeleton-area-shimmer-defs{height:0;position:absolute;width:0}.chart-skeleton .chart-skeleton-plot--heatmap{align-items:stretch;flex-direction:row}.chart-skeleton .chart-skeleton-plot--heatmap .chart-skeleton-heatmap{display:flex;flex:1;gap:8px;min-height:0;min-width:0;padding:0 8px 4px}.chart-skeleton .chart-skeleton-plot--heatmap .chart-skeleton-heatmap-col{display:flex;flex:1;flex-direction:column;gap:8px;min-width:0}.chart-skeleton .chart-skeleton-plot--heatmap .chart-skeleton-heatmap-cell{flex:1;min-height:0}.chart-skeleton .chart-skeleton-plot--treemap{display:flex;flex-direction:row;gap:4px;padding:0}.chart-skeleton .chart-skeleton-treemap-left{display:flex;flex:0 0 35%}.chart-skeleton .chart-skeleton-treemap-right{display:flex;flex:1;flex-direction:column;gap:4px}.chart-skeleton .chart-skeleton-treemap-top{display:flex;flex:1;flex-direction:row;gap:4px}.chart-skeleton .chart-skeleton-treemap-bottom{display:flex;flex:0 0 22%}.chart-skeleton .chart-skeleton-candles{align-items:stretch;display:flex;flex:1;flex-direction:row;gap:8px;justify-content:space-around;min-height:0;padding:0 16px}.chart-skeleton .chart-skeleton-candle{flex:1;max-width:40px;min-width:20px;position:relative}.chart-skeleton .chart-skeleton-plot--scatter{align-items:stretch;flex-direction:row;gap:0}.chart-skeleton .chart-skeleton-plot--scatter .chart-skeleton-dots{flex:1;min-height:0;min-width:0;overflow:hidden;position:relative}.chart-skeleton .chart-skeleton-plot--scatter .chart-skeleton-dot{animation:shimmer 1.6s linear infinite;background:linear-gradient(90deg,#e8edf5,#d5dbe8 40%,#eceef4 60%,#e8edf5);background-size:200% 100%;height:8px;opacity:.85;position:absolute;transform:translate(-50%,-50%);width:8px}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.chart-skeleton .chart-skeleton-plot--scatter .chart-skeleton-dot--circle{border-radius:50%}.chart-skeleton .chart-skeleton-plot--scatter .chart-skeleton-dot--square{border-radius:0}.chart-skeleton .chart-skeleton-plot--scatter .chart-skeleton-dot--triangle{animation:none;background:#0000;border-bottom:8px solid #e8edf5;border-left:4px solid #e8edf5;border-right:4px solid #e8edf5;height:0;width:0}.chart-skeleton .chart-skeleton-plot--scatter3d{align-items:center;display:flex;justify-content:center;padding:12px}.chart-skeleton .chart-skeleton-plot--scatter3d .chart-skeleton-scatter3d{height:100%;max-height:100%;width:100%}.chart-skeleton .chart-skeleton-bubble-area{flex:1;min-height:0;min-width:0;position:relative}.chart-skeleton .chart-skeleton-bubble-area .chart-skeleton-bubble{border-radius:50%;position:absolute;transform:translate(-50%,-50%)}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-lollipop{align-items:center;display:flex;flex:1;flex-direction:column;justify-content:flex-end;max-width:48px;min-width:16px}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-lollipop .chart-skeleton-lollipop-head{border-radius:50%;flex-shrink:0;height:12px;width:12px}.chart-skeleton .chart-skeleton-plot--column .chart-skeleton-lollipop .chart-skeleton-lollipop-stem{flex-shrink:1;min-height:4px;width:2px}.chart-skeleton .chart-skeleton-plot--bar{align-items:stretch;flex-direction:row;gap:0}.chart-skeleton .chart-skeleton-plot--bar .chart-skeleton-bars{flex-direction:column;gap:10px;justify-content:space-around;padding:4px 0 0 4px}.chart-skeleton .chart-skeleton-plot--bar .chart-skeleton-bar--bar{border-radius:999px;height:14px;max-width:100%;min-width:40px}.chart-skeleton .chart-skeleton-plot--line{align-items:stretch;flex-direction:row;gap:0}.chart-skeleton .chart-skeleton-plot--line .chart-skeleton-lines{flex:1;min-height:0;min-width:0;overflow:hidden;position:relative}.chart-skeleton .chart-skeleton-plot--line .chart-skeleton-lines .chart-skeleton-line-wave{height:100%;top:0;right:0;bottom:0;left:0;position:absolute;width:100%}.chart-skeleton .chart-skeleton-plot--line .chart-skeleton-lines .chart-skeleton-line-path--1{opacity:.85}.chart-skeleton .chart-skeleton-plot--line .chart-skeleton-lines .chart-skeleton-line-path--2{opacity:.65}.chart-skeleton .chart-skeleton-plot--line .chart-skeleton-lines .chart-skeleton-line-dots{top:0;right:0;bottom:0;left:0;pointer-events:none;position:absolute}.chart-skeleton .chart-skeleton-plot--line .chart-skeleton-lines .chart-skeleton-line-dot{background:#e8edf5;border-radius:50%;height:8px;opacity:.85;position:absolute;transform:translate(-50%,-50%);width:8px}.chart-skeleton .chart-skeleton-plot--line .chart-skeleton-lines .chart-skeleton-line-shimmer-defs{height:0;position:absolute;width:0}.chart-skeleton .chart-skeleton-plot--circular{align-items:center;flex-direction:column;gap:20px;justify-content:center}.chart-skeleton .chart-skeleton-plot--circular .chart-skeleton-circle{border-radius:50%;flex-shrink:0;height:180px;width:180px}.chart-skeleton .chart-skeleton-plot--circular .chart-skeleton-donut{border-radius:50%;flex-shrink:0;height:180px;-webkit-mask-image:radial-gradient(farthest-side,#0000 calc(58% - .5px),#000 calc(58% + .5px));mask-image:radial-gradient(farthest-side,#0000 calc(58% - .5px),#000 calc(58% + .5px));width:180px}.chart-skeleton .chart-skeleton-plot--circular .chart-skeleton-donut--semi{border-radius:180px 180px 0 0;height:90px;-webkit-mask-image:radial-gradient(farthest-side at 50% 100%,#0000 calc(58% - .5px),#000 calc(58% + .5px));mask-image:radial-gradient(farthest-side at 50% 100%,#0000 calc(58% - .5px),#000 calc(58% + .5px))}.chart-skeleton .chart-skeleton-plot--circular .chart-skeleton-legend{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:center}.chart-skeleton .chart-skeleton-plot--venn{align-items:center;flex-direction:column;gap:20px;justify-content:center}.chart-skeleton .chart-skeleton-plot--venn .chart-skeleton-venn-circles{align-items:center;display:flex;height:160px;justify-content:center;position:relative;width:220px}.chart-skeleton .chart-skeleton-plot--venn .chart-skeleton-venn-circle{border-radius:50%;opacity:.85;position:absolute}.chart-skeleton .chart-skeleton-plot--venn .chart-skeleton-venn-circle--left{left:30px;top:10px}.chart-skeleton .chart-skeleton-plot--venn .chart-skeleton-venn-circle--right{right:-9px;top:9px}.chart-skeleton .chart-skeleton-plot--venn .chart-skeleton-legend{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:center}@keyframes expandAnim{0%{opacity:.6;transform:scale(.98)}to{opacity:1;transform:scale(1)}}@keyframes collapseAnim{0%{opacity:1;transform:scale(1)}to{opacity:.6;transform:scale(.98)}}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
2
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import React__default, { useState, useRef,
|
|
3
|
+
import React__default, { useState, useRef, useEffect, useMemo } from "react";
|
|
4
4
|
import Highcharts from "highcharts/esm/highcharts.js";
|
|
5
5
|
import "highcharts/esm/highcharts-3d.js";
|
|
6
6
|
import "highcharts/esm/highcharts-more.js";
|
|
@@ -57,7 +57,6 @@ const Chart = ({
|
|
|
57
57
|
selectedChart,
|
|
58
58
|
chartMenuProps,
|
|
59
59
|
showScrollX = false,
|
|
60
|
-
hideScrollXScrollbar = false,
|
|
61
60
|
topLeftOptions = null,
|
|
62
61
|
cardContainer = true,
|
|
63
62
|
subtitleText = "",
|
|
@@ -102,9 +101,7 @@ const Chart = ({
|
|
|
102
101
|
hoveredXAxisIndex = null,
|
|
103
102
|
exportingOptions = {},
|
|
104
103
|
aboveChartComponent = null,
|
|
105
|
-
belowChartComponent = null,
|
|
106
104
|
isEmpty = false,
|
|
107
|
-
onChartInfo = null,
|
|
108
105
|
isLoading = false,
|
|
109
106
|
shimmerDirection = "auto",
|
|
110
107
|
topSubHeader = null,
|
|
@@ -122,29 +119,6 @@ const Chart = ({
|
|
|
122
119
|
const [downloadMenuAnchor, setDownloadMenuAnchor] = useState(null);
|
|
123
120
|
const chartComponentRef = useRef(null);
|
|
124
121
|
const containerRef = useRef(null);
|
|
125
|
-
const emitChartInfo = useCallback(() => {
|
|
126
|
-
var _a2, _b, _c;
|
|
127
|
-
if (!onChartInfo) return;
|
|
128
|
-
const chart = (_a2 = chartComponentRef.current) == null ? void 0 : _a2.chart;
|
|
129
|
-
if (!chart || !((_b = chart.xAxis) == null ? void 0 : _b[0])) return;
|
|
130
|
-
const xAxis = chart.xAxis[0];
|
|
131
|
-
const categories = xAxis.categories || [];
|
|
132
|
-
const pointPositions = categories.map((cat, i) => ({
|
|
133
|
-
category: cat,
|
|
134
|
-
x: xAxis.toPixels(i, false)
|
|
135
|
-
}));
|
|
136
|
-
const scrollingContainer = ((_c = containerRef.current) == null ? void 0 : _c.querySelector(".highcharts-scrolling")) || null;
|
|
137
|
-
onChartInfo({
|
|
138
|
-
plotLeft: chart.plotLeft,
|
|
139
|
-
plotWidth: chart.plotWidth,
|
|
140
|
-
plotTop: chart.plotTop,
|
|
141
|
-
plotHeight: chart.plotHeight,
|
|
142
|
-
chartWidth: chart.chartWidth,
|
|
143
|
-
categories,
|
|
144
|
-
pointPositions,
|
|
145
|
-
scrollingContainer
|
|
146
|
-
});
|
|
147
|
-
}, [onChartInfo]);
|
|
148
122
|
const getBuiltInDownloadOptions = () => {
|
|
149
123
|
var _a2, _b;
|
|
150
124
|
const chart = (_a2 = chartComponentRef.current) == null ? void 0 : _a2.chart;
|
|
@@ -541,24 +515,11 @@ const Chart = ({
|
|
|
541
515
|
additionalOptions
|
|
542
516
|
]
|
|
543
517
|
);
|
|
544
|
-
useEffect(() => {
|
|
545
|
-
var _a2;
|
|
546
|
-
const chart = (_a2 = chartComponentRef.current) == null ? void 0 : _a2.chart;
|
|
547
|
-
if (!chart) return;
|
|
548
|
-
const onEvent = () => emitChartInfo();
|
|
549
|
-
Highcharts.addEvent(chart, "load", onEvent);
|
|
550
|
-
Highcharts.addEvent(chart, "redraw", onEvent);
|
|
551
|
-
emitChartInfo();
|
|
552
|
-
return () => {
|
|
553
|
-
Highcharts.removeEvent(chart, "load", onEvent);
|
|
554
|
-
Highcharts.removeEvent(chart, "redraw", onEvent);
|
|
555
|
-
};
|
|
556
|
-
}, [emitChartInfo, graphData]);
|
|
557
518
|
return /* @__PURE__ */ jsx(Fragment, { children: showchart ? /* @__PURE__ */ jsxs(
|
|
558
519
|
"div",
|
|
559
520
|
{
|
|
560
521
|
ref: containerRef,
|
|
561
|
-
className: `chart-container ${isExpanded ? "expanded" : ""} ${isAnimating ? "animating" : ""} ${cardContainer ? "card-container" : ""} ${aboveChartComponent
|
|
522
|
+
className: `chart-container ${isExpanded ? "expanded" : ""} ${isAnimating ? "animating" : ""} ${cardContainer ? "card-container" : ""} ${aboveChartComponent ? "above-chart-component" : ""}`,
|
|
562
523
|
style: width ? { width } : {},
|
|
563
524
|
children: [
|
|
564
525
|
showHeader && /* @__PURE__ */ jsxs("div", { className: "chart-container-header", children: [
|
|
@@ -680,7 +641,6 @@ const Chart = ({
|
|
|
680
641
|
},
|
|
681
642
|
safeStringify(graphData, "graph") + isExpanded
|
|
682
643
|
),
|
|
683
|
-
belowChartComponent && belowChartComponent,
|
|
684
644
|
!isLoading && customLegend && /* @__PURE__ */ jsx(
|
|
685
645
|
"div",
|
|
686
646
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvanceSearchModalItem.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/AdvanceSearchModalItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AdvanceSearchModalItem.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/AdvanceSearchModalItem.tsx"],"names":[],"mappings":"AAkBA,QAAA,MAAM,sBAAsB,GAAI;;;;;;;;;;;;;;;;;;;;;;;;CAwB/B,4CA6SA,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanceSearchModal.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/advanceSearchModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"advanceSearchModal.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/advanceSearchModal.tsx"],"names":[],"mappings":"AA0BA,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,eAAe,EACf,mBAAmB,EACnB,OAAO,EACP,SAAS,EACT,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,cAA+D,EAC/D,gCAAgC,EAChC,mCAAmC,EACnC,WAAW,EACX,cAAc,EACd,GAAG,IAAI,EACR;;;;;;;;;;;;;;;;;;CAAA,2CAqqBA"}
|
|
@@ -51,6 +51,12 @@ export declare const isColumnDataString: (api: any, columnId: any) => boolean;
|
|
|
51
51
|
* @returns {object|undefined} - Filter model entry or undefined if invalid
|
|
52
52
|
*/
|
|
53
53
|
export declare const buildFilterModelEntry: (parsedValue: any, filterType: any, columnDef: any, operationType?: null) => any;
|
|
54
|
+
/**
|
|
55
|
+
* Resolves an advance-search option value from a filterModel key when
|
|
56
|
+
* `columnFieldsFilterMap` maps advance field → filterModel key.
|
|
57
|
+
* Returns `filterKey` unchanged when no reverse mapping exists.
|
|
58
|
+
*/
|
|
59
|
+
export declare const resolveAdvanceSearchFieldFromFilterKey: (filterKey: any, colDefs: any) => any;
|
|
54
60
|
/**
|
|
55
61
|
* Recursively finds a column definition by field or colId
|
|
56
62
|
* @param {array} colDefs - Array of column definitions
|
|
@@ -135,6 +141,21 @@ export declare const updateOrAddFilter: (existingFilters: any, columnId: any, va
|
|
|
135
141
|
* @param {function} getOptionFromDropdownValue - Function to convert dropdown values
|
|
136
142
|
*/
|
|
137
143
|
export declare const syncFiltersWithModal: (api: any, currentColumnId: any, inputValue: any, columnDef: any, colDefs: any, setValue: any, setInitialFilters: any, getOptionFromDropdownValue: any) => void;
|
|
144
|
+
/**
|
|
145
|
+
* Resolves the AG Grid filterModel key for an advance-search field.
|
|
146
|
+
* Prefers columnFieldsFilterMap, then colId / field / advance field.
|
|
147
|
+
*/
|
|
148
|
+
export declare const resolveFilterModelColumnKey: (columnDef: any, advanceField: any) => any;
|
|
149
|
+
/**
|
|
150
|
+
* Builds hidden AG Grid columns for `columnFieldsFilterMap` values that are not
|
|
151
|
+
* already real columns. Without these, setFilterModel drops the mapped keys.
|
|
152
|
+
* Each virtual column filters against the parent column's row-data field.
|
|
153
|
+
*/
|
|
154
|
+
export declare const createVirtualFilterColumns: (colDefs: any) => any[];
|
|
155
|
+
/**
|
|
156
|
+
* Appends hidden virtual filter columns for columnFieldsFilterMap values.
|
|
157
|
+
*/
|
|
158
|
+
export declare const appendVirtualFilterColumns: (colDefs: any) => any;
|
|
138
159
|
/**
|
|
139
160
|
* Processes advance search filters and builds AG Grid filter model
|
|
140
161
|
* @param {array} formValues - Array of filter objects from form
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterUtils.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/filterUtils.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,wBAAwB,GAAI,cAAS,QAoDjD,CAAC;AAGF,eAAO,MAAM,4BAA4B,GAAI,cAAS,EAAE,aAAa,QAyBpE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAK,QAMtC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,GAClC,iBAAY,MACZ,WAAM,QAMN,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAK,EAAE,cAAS;;;CA4EhD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAG,EAAE,aAAQ,YAQ/C,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,qBAAqB,GAAI,gBAAW,EAAE,eAAU,EAAE,cAAS,EAAE,oBAAoB,QAsI7F,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,YAAO,EAAE,UAAK,
|
|
1
|
+
{"version":3,"file":"filterUtils.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/filterUtils.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,wBAAwB,GAAI,cAAS,QAoDjD,CAAC;AAGF,eAAO,MAAM,4BAA4B,GAAI,cAAS,EAAE,aAAa,QAyBpE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAK,QAMtC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,GAClC,iBAAY,MACZ,WAAM,QAMN,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAK,EAAE,cAAS;;;CA4EhD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAG,EAAE,aAAQ,YAQ/C,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,qBAAqB,GAAI,gBAAW,EAAE,eAAU,EAAE,cAAS,EAAE,oBAAoB,QAsI7F,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,GAAI,cAAS,EAAE,YAAO,QA0BxE,CAAC;AA6BF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,YAAO,EAAE,UAAK,QAmB3C,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,GAAI,UAAK,EAAE,cAAS,EAAE,QAAG,EAAE,aAAQ;;;CA0ErE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,gBAAW,YAwB7C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,aAAQ,EAAE,cAAS,EAAE,YAAO,QAc1D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,WAAM,YAUzC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,GAAI,aAAQ,EAAE,WAAM,EAAE,cAAS,EAAE,YAAO;;;;;;;;;;;CA6C9E,CAAC;AAsGF;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAAI,oBAAe,EAAE,aAAQ,EAAE,UAAK,EAAE,cAAS,EAAE,YAAO,QAUrF,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB,GAC/B,QAAG,EACH,oBAAe,EACf,eAAU,EACV,cAAS,EACT,YAAO,EACP,aAAQ,EACR,sBAAiB,EACjB,+BAA0B,SA2B3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,GAAI,cAAS,EAAE,iBAAY,QAGlE,CAAC;AAgBF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GAAI,YAAO,UAwCjD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,GAAI,YAAO,QAMjD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,GAAI,eAAU,EAAE,YAAO,OAsChE,CAAC"}
|
|
@@ -205,23 +205,63 @@ const buildFilterModelEntry = (parsedValue, filterType, columnDef, operationType
|
|
|
205
205
|
};
|
|
206
206
|
return filterEntry;
|
|
207
207
|
};
|
|
208
|
+
const resolveAdvanceSearchFieldFromFilterKey = (filterKey, colDefs) => {
|
|
209
|
+
if (!colDefs || !filterKey) {
|
|
210
|
+
return filterKey;
|
|
211
|
+
}
|
|
212
|
+
const find = (defs) => {
|
|
213
|
+
for (const col of defs) {
|
|
214
|
+
if (col.children) {
|
|
215
|
+
const nested = find(col.children);
|
|
216
|
+
if (nested != null) {
|
|
217
|
+
return nested;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
if (col.columnFieldsFilterMap) {
|
|
221
|
+
const entry = Object.entries(col.columnFieldsFilterMap).find(
|
|
222
|
+
([, mapped]) => mapped === filterKey
|
|
223
|
+
);
|
|
224
|
+
if (entry) {
|
|
225
|
+
return entry[0];
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return null;
|
|
230
|
+
};
|
|
231
|
+
return find(colDefs) ?? filterKey;
|
|
232
|
+
};
|
|
233
|
+
const resolveDuplicateAdvanceField = (col, field) => {
|
|
234
|
+
if (!col.toShowDuplicateColumnInAdvanceSearch || !col.columnFieldsInAdvanceSearch) {
|
|
235
|
+
return null;
|
|
236
|
+
}
|
|
237
|
+
let advanceField = field;
|
|
238
|
+
let index = col.columnFieldsInAdvanceSearch.indexOf(field);
|
|
239
|
+
if (index === -1 && col.columnFieldsFilterMap) {
|
|
240
|
+
const entry = Object.entries(col.columnFieldsFilterMap).find(([, mapped]) => mapped === field);
|
|
241
|
+
if (entry) {
|
|
242
|
+
advanceField = entry[0];
|
|
243
|
+
index = col.columnFieldsInAdvanceSearch.indexOf(advanceField);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
if (index === -1) {
|
|
247
|
+
return null;
|
|
248
|
+
}
|
|
249
|
+
return { advanceField, index };
|
|
250
|
+
};
|
|
208
251
|
const findColumnDef = (colDefs, field) => {
|
|
209
|
-
var _a;
|
|
210
252
|
for (const col of colDefs) {
|
|
211
253
|
if (col.children) {
|
|
212
254
|
const found = findColumnDef(col.children, field);
|
|
213
255
|
if (found) return found;
|
|
214
256
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
} else if (col.colId && col.colId === field || col.field && col.field === field) {
|
|
257
|
+
const duplicate = resolveDuplicateAdvanceField(col, field);
|
|
258
|
+
if (duplicate) {
|
|
259
|
+
return {
|
|
260
|
+
...col,
|
|
261
|
+
currentColumnField: `${duplicate.advanceField}${duplicate.index + 1}`
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
if (col.colId && col.colId === field || col.field && col.field === field) {
|
|
225
265
|
return col;
|
|
226
266
|
}
|
|
227
267
|
}
|
|
@@ -312,7 +352,8 @@ const hasValidFilterValue = (filter) => {
|
|
|
312
352
|
};
|
|
313
353
|
const convertFilterToModalFormat = (columnId, filter, columnDef, colDefs) => {
|
|
314
354
|
var _a;
|
|
315
|
-
const
|
|
355
|
+
const advanceField = resolveAdvanceSearchFieldFromFilterKey(columnId, colDefs);
|
|
356
|
+
const columnLabel = getColumnLabel(advanceField, columnDef, colDefs);
|
|
316
357
|
let value = (filter == null ? void 0 : filter.filter) || "";
|
|
317
358
|
if (filter == null ? void 0 : filter.dateFrom) {
|
|
318
359
|
if (typeof filter.dateFrom === "string") {
|
|
@@ -335,7 +376,7 @@ const convertFilterToModalFormat = (columnId, filter, columnDef, colDefs) => {
|
|
|
335
376
|
return {
|
|
336
377
|
column: {
|
|
337
378
|
label: columnLabel,
|
|
338
|
-
value:
|
|
379
|
+
value: advanceField,
|
|
339
380
|
type: (filter == null ? void 0 : filter.filterType) || "text"
|
|
340
381
|
},
|
|
341
382
|
operation: {
|
|
@@ -386,10 +427,11 @@ const prepareValueForModal = (inputValue, columnDef, getOptionFromDropdownValue)
|
|
|
386
427
|
}
|
|
387
428
|
};
|
|
388
429
|
const createModalFilterEntry = (columnId, value, columnDef, colDefs) => {
|
|
430
|
+
const advanceField = resolveAdvanceSearchFieldFromFilterKey(columnId, colDefs);
|
|
389
431
|
return {
|
|
390
432
|
column: {
|
|
391
|
-
label: getColumnLabel(
|
|
392
|
-
value:
|
|
433
|
+
label: getColumnLabel(advanceField, columnDef, colDefs),
|
|
434
|
+
value: advanceField,
|
|
393
435
|
type: (columnDef == null ? void 0 : columnDef.type) || "text"
|
|
394
436
|
},
|
|
395
437
|
operation: getDefaultOperationForColumn(columnDef),
|
|
@@ -428,6 +470,69 @@ const syncFiltersWithModal = (api, currentColumnId, inputValue, columnDef, colDe
|
|
|
428
470
|
console.warn("Error syncing modal filters:", err);
|
|
429
471
|
}
|
|
430
472
|
};
|
|
473
|
+
const resolveFilterModelColumnKey = (columnDef, advanceField) => {
|
|
474
|
+
var _a;
|
|
475
|
+
const mappedKey = (_a = columnDef == null ? void 0 : columnDef.columnFieldsFilterMap) == null ? void 0 : _a[advanceField];
|
|
476
|
+
return mappedKey || (columnDef == null ? void 0 : columnDef.colId) || (columnDef == null ? void 0 : columnDef.field) || advanceField;
|
|
477
|
+
};
|
|
478
|
+
const collectExistingColumnIds = (colDefs, ids = /* @__PURE__ */ new Set()) => {
|
|
479
|
+
(colDefs || []).forEach((col) => {
|
|
480
|
+
if (col.children) {
|
|
481
|
+
collectExistingColumnIds(col.children, ids);
|
|
482
|
+
}
|
|
483
|
+
if (col.colId) ids.add(col.colId);
|
|
484
|
+
if (col.field) ids.add(col.field);
|
|
485
|
+
});
|
|
486
|
+
return ids;
|
|
487
|
+
};
|
|
488
|
+
const createVirtualFilterColumns = (colDefs) => {
|
|
489
|
+
const virtualCols = [];
|
|
490
|
+
const existingIds = collectExistingColumnIds(colDefs);
|
|
491
|
+
const walk = (cols) => {
|
|
492
|
+
(cols || []).forEach((col) => {
|
|
493
|
+
if (col.children) {
|
|
494
|
+
walk(col.children);
|
|
495
|
+
}
|
|
496
|
+
if (!col.columnFieldsFilterMap) {
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
const parentField = col.field;
|
|
500
|
+
Object.entries(col.columnFieldsFilterMap).forEach(([advanceField, mappedKey]) => {
|
|
501
|
+
if (!mappedKey || existingIds.has(mappedKey)) {
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
existingIds.add(mappedKey);
|
|
505
|
+
virtualCols.push({
|
|
506
|
+
colId: mappedKey,
|
|
507
|
+
field: mappedKey,
|
|
508
|
+
headerName: advanceField,
|
|
509
|
+
hide: true,
|
|
510
|
+
lockVisible: true,
|
|
511
|
+
suppressColumnsToolPanel: true,
|
|
512
|
+
// Keep out of advance-search option lists
|
|
513
|
+
advanceSearchEnabled: false,
|
|
514
|
+
isSearchable: false,
|
|
515
|
+
filter: col.filter || "agTextColumnFilter",
|
|
516
|
+
type: col.type,
|
|
517
|
+
filterParams: col.filterParams,
|
|
518
|
+
valueGetter: (params) => {
|
|
519
|
+
var _a;
|
|
520
|
+
return parentField != null ? (_a = params.data) == null ? void 0 : _a[parentField] : void 0;
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
});
|
|
524
|
+
});
|
|
525
|
+
};
|
|
526
|
+
walk(colDefs);
|
|
527
|
+
return virtualCols;
|
|
528
|
+
};
|
|
529
|
+
const appendVirtualFilterColumns = (colDefs) => {
|
|
530
|
+
if (!Array.isArray(colDefs) || colDefs.length === 0) {
|
|
531
|
+
return colDefs;
|
|
532
|
+
}
|
|
533
|
+
const virtualCols = createVirtualFilterColumns(colDefs);
|
|
534
|
+
return virtualCols.length > 0 ? [...colDefs, ...virtualCols] : colDefs;
|
|
535
|
+
};
|
|
431
536
|
const buildAdvanceSearchFilterModel = (formValues, colDefs) => {
|
|
432
537
|
const filterModel = {};
|
|
433
538
|
if (!formValues || !Array.isArray(formValues)) {
|
|
@@ -446,7 +551,8 @@ const buildAdvanceSearchFilterModel = (formValues, colDefs) => {
|
|
|
446
551
|
if (!isValidFilterValue(parsedValue)) {
|
|
447
552
|
return;
|
|
448
553
|
}
|
|
449
|
-
const
|
|
554
|
+
const advanceField = value.column.value;
|
|
555
|
+
const columnKey = resolveFilterModelColumnKey(columnDef, advanceField);
|
|
450
556
|
const filterEntry = buildFilterModelEntry(
|
|
451
557
|
parsedValue,
|
|
452
558
|
filterType,
|
|
@@ -460,10 +566,12 @@ const buildAdvanceSearchFilterModel = (formValues, colDefs) => {
|
|
|
460
566
|
return filterModel;
|
|
461
567
|
};
|
|
462
568
|
export {
|
|
569
|
+
appendVirtualFilterColumns,
|
|
463
570
|
buildAdvanceSearchFilterModel,
|
|
464
571
|
buildFilterModelEntry,
|
|
465
572
|
cleanNumericValue,
|
|
466
573
|
convertFilterToModalFormat,
|
|
574
|
+
createVirtualFilterColumns,
|
|
467
575
|
findColumnDef,
|
|
468
576
|
getColumnLabel,
|
|
469
577
|
getDefaultOperationForColumn,
|
|
@@ -473,6 +581,8 @@ export {
|
|
|
473
581
|
isValidFilterValue,
|
|
474
582
|
parseFilterValue,
|
|
475
583
|
parseInlineSearchValue,
|
|
584
|
+
resolveAdvanceSearchFieldFromFilterKey,
|
|
585
|
+
resolveFilterModelColumnKey,
|
|
476
586
|
syncFiltersWithModal,
|
|
477
587
|
updateOrAddFilter
|
|
478
588
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterUtils.test.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/filterUtils.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/index.tsx"],"names":[],"mappings":"AA0BA,OAAO,sCAAsC,CAAC;AAC9C,OAAO,8CAA8C,CAAC;AACtD,OAAO,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/index.tsx"],"names":[],"mappings":"AA0BA,OAAO,sCAAsC,CAAC;AAC9C,OAAO,8CAA8C,CAAC;AACtD,OAAO,qBAAqB,CAAC;AAujE7B,eAAO,MAAM,QAAQ,mFAUnB,CAAC"}
|