udp-react-enterprise-component-library 25.1.0-beta.4 → 25.1.0-beta.9
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/{AmbientGridTemplate-BLwgiqwK.js → AmbientGridTemplate-BqlMt5Su.js} +152 -137
- package/dist/AmbientGridTemplate-BqlMt5Su.js.map +1 -0
- package/dist/{EnvironmentRibbon-BMvQEZPZ.js → EnvironmentRibbon-DaDmKAPO.js} +2 -2
- package/dist/{EnvironmentRibbon-BMvQEZPZ.js.map → EnvironmentRibbon-DaDmKAPO.js.map} +1 -1
- package/dist/{MenuPage-DLsNc-P8.js → MenuPage-CO6_GWwB.js} +97 -27
- package/dist/MenuPage-CO6_GWwB.js.map +1 -0
- package/dist/{MyExportsPage-BYH2Wl9k.js → MyExportsPage-CX9tzqHk.js} +5 -5
- package/dist/{MyExportsPage-BYH2Wl9k.js.map → MyExportsPage-CX9tzqHk.js.map} +1 -1
- package/dist/MyExportsPage-CkzQ0MRq.js +8 -0
- package/dist/{PageContainer-B65gsUfF.js → PageContainer-k8KCfGsM.js} +2 -2
- package/dist/{PageContainer-B65gsUfF.js.map → PageContainer-k8KCfGsM.js.map} +1 -1
- package/dist/{SearchUtilities-dbXvMYoa.js → SearchUtilities-Bor3HbfB.js} +2 -2
- package/dist/{SearchUtilities-dbXvMYoa.js.map → SearchUtilities-Bor3HbfB.js.map} +1 -1
- package/dist/{SideSheet-CPHhyWLB.js → SideSheet-DUsxG1FN.js} +3 -3
- package/dist/{SideSheet-CPHhyWLB.js.map → SideSheet-DUsxG1FN.js.map} +1 -1
- package/dist/{UdpPublicForm-DFCL1GzD.js → UdpPublicForm-Caa1tH6z.js} +2 -2
- package/dist/{UdpPublicForm-DFCL1GzD.js.map → UdpPublicForm-Caa1tH6z.js.map} +1 -1
- package/dist/UdpPublicForm-Cvw5tOHe.js +4 -0
- package/dist/{UtilitySideBar-B4r2IAv5.js → UtilitySideBar-D4CXGtW2.js} +12 -9
- package/dist/UtilitySideBar-D4CXGtW2.js.map +1 -0
- package/dist/{VirtualBrowser-C_IJ0I6f.js → VirtualBrowser-BXL0hdy0.js} +7 -7
- package/dist/{VirtualBrowser-C_IJ0I6f.js.map → VirtualBrowser-BXL0hdy0.js.map} +1 -1
- package/dist/{WorkflowContainer-DKwRWi1i.js → WorkflowContainer-DrqzuQtU.js} +35 -7
- package/dist/WorkflowContainer-DrqzuQtU.js.map +1 -0
- package/dist/WorkflowContainer-Q8gtuaB7.js +9 -0
- package/dist/{apiHelpers-t3rfkjFZ.js → apiHelpers-DZots3og.js} +2 -2
- package/dist/apiHelpers-DZots3og.js.map +1 -0
- package/dist/index.js +2718 -2466
- package/dist/index.js.map +1 -1
- package/dist/{propertyTypeEnums-DTGsK5-s.js → propertyTypeEnums-Civy7RJv.js} +2 -2
- package/dist/{propertyTypeEnums-DTGsK5-s.js.map → propertyTypeEnums-Civy7RJv.js.map} +1 -1
- package/dist/types/AGLicense.d.ts +1 -1
- package/dist/types/UI/maps/UdpMap.d.ts +2 -0
- package/dist/types/UI/maps/UdpMapComponent.d.ts +2 -0
- package/dist/types/UI/utilityDisplay/ChipSection.d.ts +2 -1
- package/dist/types/UI/utilityDisplay/GridPrimaryBar.d.ts +2 -1
- package/dist/types/hooks/usePromotedMethodEntities.d.ts +6 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/shell/ui/ShellDropdown.d.ts +15 -0
- package/dist/types/shell/ui/SiteHeader.d.ts +1 -0
- package/dist/types/stores/catalogStore.d.ts +2 -0
- package/dist/types/stores/inquiryStore.d.ts +3 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/utilities/catalog/CatalogUtilities.d.ts +1 -0
- package/dist/types/utilities/tree/TreeUtilities.d.ts +1 -1
- package/package.json +2 -2
- package/dist/AmbientGridTemplate-BLwgiqwK.js.map +0 -1
- package/dist/MenuPage-DLsNc-P8.js.map +0 -1
- package/dist/MyExportsPage-CVUIXWTf.js +0 -8
- package/dist/UdpPublicForm-BrVSSMCN.js +0 -4
- package/dist/UtilitySideBar-B4r2IAv5.js.map +0 -1
- package/dist/WorkflowContainer-8-mmebY0.js +0 -9
- package/dist/WorkflowContainer-DKwRWi1i.js.map +0 -1
- package/dist/apiHelpers-t3rfkjFZ.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Field, Form, SideSheet, apiMutate as apiMutate$1 } from "./SideSheet-
|
|
2
|
-
import { FluentButton, FluentIcon, GridStateTypeEnums, LayoutUnit, NodeActionEnums, PrimaryActionButton, PrimaryActionButton_default, SplitScreenTypeEnums, UnityFluentIcon, VisibilityTypeEnums, toTitleCase, useAxiosGet, useId, useShellStore } from "./EnvironmentRibbon-
|
|
3
|
-
import { ClickOpenEnums, useHandleAxiosSnackbar } from "./apiHelpers-
|
|
4
|
-
import React
|
|
1
|
+
import { Field, Form, SideSheet, apiMutate as apiMutate$1 } from "./SideSheet-DUsxG1FN.js";
|
|
2
|
+
import { FluentButton, FluentIcon, GridStateTypeEnums, LayoutUnit, NodeActionEnums, PrimaryActionButton, PrimaryActionButton_default, SplitScreenTypeEnums, UnityFluentIcon, VisibilityTypeEnums, toTitleCase, useAxiosGet, useId, useShellStore } from "./EnvironmentRibbon-DaDmKAPO.js";
|
|
3
|
+
import { ClickOpenEnums, useHandleAxiosSnackbar } from "./apiHelpers-DZots3og.js";
|
|
4
|
+
import React, { Children, cloneElement, createContext, forwardRef, isValidElement, memo, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
5
5
|
import { Badge, Box, Button, ButtonGroup, Chip, ClickAwayListener, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, FormControlLabel, Grid, Grow, IconButton, InputAdornment, LinearProgress, MenuItem, MenuList, Paper, Popover, Popper, Switch, Tab, Tabs, TextField, Tooltip, Typography, lighten, makeStyles, useTheme } from "@material-ui/core";
|
|
6
6
|
import { ConfigService } from "udp-react-stencil-component-library";
|
|
7
7
|
import { useSnackbar } from "notistack";
|
|
@@ -36,7 +36,7 @@ import Typography$1 from "@material-ui/core/Typography";
|
|
|
36
36
|
import StarIcon from "@material-ui/icons/Star";
|
|
37
37
|
|
|
38
38
|
//#region src/AGLicense.js
|
|
39
|
-
const LicenseKey = "Using_this_{AG_Grid}_Enterprise_key_{AG-
|
|
39
|
+
const LicenseKey = "Using_this_{AG_Grid}_Enterprise_key_{AG-080613}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Univerus_Software_Inc}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{MAIS_eRec}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{MAIS_eRec}_need_to_be_licensed___{MAIS_eRec}_has_not_been_granted_a_Deployment_License_Add-on___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{28_June_2026}____[v3]_[01]_MTc4MjYwMTIwMDAwMA==5c7d1487ecb13b28e75415d34b7cf694";
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/utilities/maintenanceEngine/CrudBrowserUtilities.js
|
|
@@ -144,7 +144,7 @@ const ActionContext = createContext(null);
|
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region src/UI/SuccessAction.jsx
|
|
146
146
|
const getSuccessAction = (closeSnackbar) => {
|
|
147
|
-
const successAction = (key) => /* @__PURE__ */ React
|
|
147
|
+
const successAction = (key) => /* @__PURE__ */ React.createElement(Button, {
|
|
148
148
|
color: "secondary",
|
|
149
149
|
size: "small",
|
|
150
150
|
onClick: () => {
|
|
@@ -174,8 +174,18 @@ const useInquiryStore = create()(devtools((set) => ({
|
|
|
174
174
|
...workflowMap
|
|
175
175
|
} })),
|
|
176
176
|
workflowStarting: false,
|
|
177
|
-
setWorkflowStarting: (workflowStarting) => set((state) => ({ workflowStarting }))
|
|
177
|
+
setWorkflowStarting: (workflowStarting) => set((state) => ({ workflowStarting })),
|
|
178
|
+
inquiryMenuHidden: false,
|
|
179
|
+
setInquiryMenuHidden: (inquiryMenuHidden) => set((state) => ({ inquiryMenuHidden }))
|
|
178
180
|
})));
|
|
181
|
+
const useSetInitialInquiryMenuVisibility = () => {
|
|
182
|
+
const searchParams = new URLSearchParams(window.location.search);
|
|
183
|
+
const inquiryMenuHidden = searchParams.has("inquiryMenuHidden") === true ? searchParams.get("inquiryMenuHidden") === "true" ? true : false : false;
|
|
184
|
+
const setInquiryMenuHidden = useInquiryStore((state) => state.setInquiryMenuHidden);
|
|
185
|
+
useEffect(() => {
|
|
186
|
+
if (inquiryMenuHidden) setInquiryMenuHidden(true);
|
|
187
|
+
}, [setInquiryMenuHidden, inquiryMenuHidden]);
|
|
188
|
+
};
|
|
179
189
|
|
|
180
190
|
//#endregion
|
|
181
191
|
//#region src/actions/utils/actionUtils.js
|
|
@@ -394,6 +404,11 @@ const useCatalogStore = create()(devtools((set) => ({
|
|
|
394
404
|
setPromotedEntityMap: (promotedEntityMap) => set((state) => ({ promotedEntityMap: {
|
|
395
405
|
...state.promotedEntityMap,
|
|
396
406
|
...promotedEntityMap
|
|
407
|
+
} })),
|
|
408
|
+
promotedMethodEntitiesMap: {},
|
|
409
|
+
setPromotedMethodEntitiesMap: (promotedMethodEntitiesMap) => set((state) => ({ promotedMethodEntitiesMap: {
|
|
410
|
+
...state.promotedMethodEntitiesMap,
|
|
411
|
+
...promotedMethodEntitiesMap
|
|
397
412
|
} }))
|
|
398
413
|
})));
|
|
399
414
|
|
|
@@ -625,7 +640,7 @@ const useStyles$21 = makeStyles((theme) => ({
|
|
|
625
640
|
const AmbientTextField = (props) => {
|
|
626
641
|
const classes = useStyles$21(props);
|
|
627
642
|
const { id, label, startAdornment, endAdornment, title = "noTitle",...InputProps } = props;
|
|
628
|
-
return /* @__PURE__ */ React
|
|
643
|
+
return /* @__PURE__ */ React.createElement("div", { className: label ? classes.root : classes.noLabel }, /* @__PURE__ */ React.createElement(TextField, {
|
|
629
644
|
...InputProps,
|
|
630
645
|
id,
|
|
631
646
|
udprecordid: `udpRecord-FluentAmbientTextField-${title.replace(/\s/g, "")}-${props?.InputProps?.type}`,
|
|
@@ -759,7 +774,7 @@ const useStyles$20 = makeStyles((theme) => ({ root: {
|
|
|
759
774
|
const Ellipse = (props) => {
|
|
760
775
|
const { children } = props;
|
|
761
776
|
const classes = useStyles$20(props);
|
|
762
|
-
return /* @__PURE__ */ React
|
|
777
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes.root }, children);
|
|
763
778
|
};
|
|
764
779
|
Ellipse.propTypes = {
|
|
765
780
|
color: PropTypes.string,
|
|
@@ -780,11 +795,11 @@ const useStyles$19 = makeStyles((theme) => ({
|
|
|
780
795
|
const GridSidebarContainer = (props) => {
|
|
781
796
|
const { children, color } = props;
|
|
782
797
|
const classes = useStyles$19(props);
|
|
783
|
-
return /* @__PURE__ */ React
|
|
798
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes.root }, /* @__PURE__ */ React.createElement(Paper, {
|
|
784
799
|
elevation: "0",
|
|
785
800
|
square: true,
|
|
786
801
|
style: { background: color }
|
|
787
|
-
}, /* @__PURE__ */ React
|
|
802
|
+
}, /* @__PURE__ */ React.createElement("div", { className: classes.groupWrapper }, children)));
|
|
788
803
|
};
|
|
789
804
|
GridSidebarContainer.propTypes = {
|
|
790
805
|
children: PropTypes.node,
|
|
@@ -808,7 +823,7 @@ const useStyles$18 = makeStyles((theme) => ({
|
|
|
808
823
|
const AmbientTokenButton = forwardRef(function AmbientTokenButton$1(props, ref) {
|
|
809
824
|
const { tooltip, ariaLabel, onClick, size, icon = ChevronDownIcon, iconClassName, otherProps, id = "token-button", udprecordid } = props;
|
|
810
825
|
const classes = useStyles$18(props);
|
|
811
|
-
return /* @__PURE__ */ React
|
|
826
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes.root }, /* @__PURE__ */ React.createElement(Tooltip, { title: tooltip }, /* @__PURE__ */ React.createElement(IconButton, {
|
|
812
827
|
id,
|
|
813
828
|
udprecordid,
|
|
814
829
|
ref,
|
|
@@ -817,7 +832,7 @@ const AmbientTokenButton = forwardRef(function AmbientTokenButton$1(props, ref)
|
|
|
817
832
|
size: size ?? "small",
|
|
818
833
|
onClick,
|
|
819
834
|
...otherProps
|
|
820
|
-
}, /* @__PURE__ */ React
|
|
835
|
+
}, /* @__PURE__ */ React.createElement(FluentIcon, {
|
|
821
836
|
className: classes.iconButtonStyle,
|
|
822
837
|
component: icon
|
|
823
838
|
}))));
|
|
@@ -846,17 +861,17 @@ const useStyles$17 = makeStyles((theme) => ({
|
|
|
846
861
|
}));
|
|
847
862
|
const GridGroupingHeader = ({ expandClick, collapseClick }) => {
|
|
848
863
|
const classes = useStyles$17();
|
|
849
|
-
return /* @__PURE__ */ React
|
|
864
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes.root }, /* @__PURE__ */ React.createElement("div", { className: classes.actionHeader }, /* @__PURE__ */ React.createElement(AmbientTokenButton, {
|
|
850
865
|
icon: ChevronFold10Icon,
|
|
851
866
|
tooltip: "Collapse All",
|
|
852
867
|
ariaLabel: "Collapse All",
|
|
853
868
|
onClick: collapseClick
|
|
854
|
-
}), /* @__PURE__ */ React
|
|
869
|
+
}), /* @__PURE__ */ React.createElement(AmbientTokenButton, {
|
|
855
870
|
icon: ChevronUnfold10Icon,
|
|
856
871
|
tooltip: "Expand All",
|
|
857
872
|
ariaLabel: "Expand All",
|
|
858
873
|
onClick: expandClick
|
|
859
|
-
})), /* @__PURE__ */ React
|
|
874
|
+
})), /* @__PURE__ */ React.createElement(LayoutUnit, { unit: "nudge" }), /* @__PURE__ */ React.createElement("div", { className: classes.label }, /* @__PURE__ */ React.createElement(Typography, { variant: "caption" }, "Group By:")), /* @__PURE__ */ React.createElement(LayoutUnit, { unit: "nudge" }));
|
|
860
875
|
};
|
|
861
876
|
GridGroupingHeader.propTypes = {
|
|
862
877
|
expandClick: PropTypes.func.isRequired,
|
|
@@ -887,25 +902,25 @@ const Token = (props) => {
|
|
|
887
902
|
const iconColor = useMemo(() => {
|
|
888
903
|
return getEllipseColor(theme, color);
|
|
889
904
|
}, [color, theme]);
|
|
890
|
-
const tokenComponent = /* @__PURE__ */ React
|
|
905
|
+
const tokenComponent = /* @__PURE__ */ React.createElement("div", { className: classes.root }, /* @__PURE__ */ React.createElement(Ellipse, {
|
|
891
906
|
variant,
|
|
892
907
|
size,
|
|
893
908
|
color,
|
|
894
909
|
...IconEllipseProps
|
|
895
|
-
}, type === "letter" ? /* @__PURE__ */ React
|
|
910
|
+
}, type === "letter" ? /* @__PURE__ */ React.createElement(Typography, {
|
|
896
911
|
variant: "body1",
|
|
897
912
|
className: classes.letter
|
|
898
|
-
}, letter.toUpperCase()) : /* @__PURE__ */ React
|
|
913
|
+
}, letter.toUpperCase()) : /* @__PURE__ */ React.createElement(UnityFluentIcon, {
|
|
899
914
|
size: size === "small" ? size : "medium",
|
|
900
915
|
color: iconColor,
|
|
901
916
|
type: iconType,
|
|
902
917
|
icon,
|
|
903
918
|
style: { color: iconColor }
|
|
904
919
|
})));
|
|
905
|
-
if (type === "action") return /* @__PURE__ */ React
|
|
920
|
+
if (type === "action") return /* @__PURE__ */ React.createElement(IconButton, {
|
|
906
921
|
classes: { root: classes.buttonRoot },
|
|
907
922
|
onClick
|
|
908
|
-
}, /* @__PURE__ */ React
|
|
923
|
+
}, /* @__PURE__ */ React.createElement(UnityFluentIcon, {
|
|
909
924
|
size: size === "small" ? size : "medium",
|
|
910
925
|
color: iconColor,
|
|
911
926
|
type: iconType,
|
|
@@ -970,7 +985,7 @@ const useStyles$15 = makeStyles((theme) => ({
|
|
|
970
985
|
}));
|
|
971
986
|
const AmbientToggleButton = ({ children, value, ariaLabel, onClick,...otherProps }) => {
|
|
972
987
|
const classes = useStyles$15();
|
|
973
|
-
return /* @__PURE__ */ React
|
|
988
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes.root }, /* @__PURE__ */ React.createElement(ToggleButton, {
|
|
974
989
|
classes: { root: classes.buttonRoot },
|
|
975
990
|
value,
|
|
976
991
|
"aria-label": ariaLabel,
|
|
@@ -1051,7 +1066,7 @@ const AmbientToggleButtonGroupDefault = forwardRef(function AmbientToggleButton$
|
|
|
1051
1066
|
if (!onChange) return;
|
|
1052
1067
|
onChange(event, value === buttonValue ? null : buttonValue);
|
|
1053
1068
|
};
|
|
1054
|
-
return /* @__PURE__ */ React
|
|
1069
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
1055
1070
|
role: "group",
|
|
1056
1071
|
className: clsx(classes.root, { [classes.vertical]: orientation === "vertical" }, className),
|
|
1057
1072
|
ref,
|
|
@@ -1114,41 +1129,41 @@ const GridGroupingSidebar = ({ groupItem, expandClick, collapseClick, closeClick
|
|
|
1114
1129
|
setView(nextView);
|
|
1115
1130
|
};
|
|
1116
1131
|
const GroupItem = ({ label, clear }) => {
|
|
1117
|
-
return /* @__PURE__ */ React
|
|
1132
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Token, {
|
|
1118
1133
|
icon: clear ? ChromeCloseIcon : AssessmentGroupIcon,
|
|
1119
1134
|
color: "trigger",
|
|
1120
1135
|
size: "small",
|
|
1121
1136
|
variant: "filled",
|
|
1122
1137
|
type: "icon"
|
|
1123
|
-
}), /* @__PURE__ */ React
|
|
1138
|
+
}), /* @__PURE__ */ React.createElement(Typography, {
|
|
1124
1139
|
variant: "caption",
|
|
1125
1140
|
style: { color: "black" }
|
|
1126
1141
|
}, " ", label, " "));
|
|
1127
1142
|
};
|
|
1128
|
-
return /* @__PURE__ */ React
|
|
1143
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes.root }, /* @__PURE__ */ React.createElement(GridSidebarContainer, {
|
|
1129
1144
|
color,
|
|
1130
1145
|
height
|
|
1131
|
-
}, /* @__PURE__ */ React
|
|
1146
|
+
}, /* @__PURE__ */ React.createElement(GridGroupingHeader, {
|
|
1132
1147
|
expandClick,
|
|
1133
1148
|
collapseClick,
|
|
1134
1149
|
closeClick
|
|
1135
|
-
}), /* @__PURE__ */ React
|
|
1150
|
+
}), /* @__PURE__ */ React.createElement("div", { className: classes.groupActionContainer }, /* @__PURE__ */ React.createElement(AmbientToggleButtonGroupDefault_default, {
|
|
1136
1151
|
orientation: "vertical",
|
|
1137
1152
|
value: view,
|
|
1138
1153
|
exclusive: true,
|
|
1139
1154
|
onChange: handleChange,
|
|
1140
1155
|
className: classes.buttonGroupWrapper
|
|
1141
1156
|
}, groupingData.map((item) => {
|
|
1142
|
-
return /* @__PURE__ */ React
|
|
1157
|
+
return /* @__PURE__ */ React.createElement(AmbientToggleButton, {
|
|
1143
1158
|
value: item.value,
|
|
1144
1159
|
"aria-label": item.label,
|
|
1145
1160
|
onClick: () => groupItem(item.groupItem)
|
|
1146
|
-
}, /* @__PURE__ */ React
|
|
1147
|
-
}), /* @__PURE__ */ React
|
|
1161
|
+
}, /* @__PURE__ */ React.createElement(GroupItem, { label: item.label }));
|
|
1162
|
+
}), /* @__PURE__ */ React.createElement(AmbientToggleButton, {
|
|
1148
1163
|
value: "noGroups",
|
|
1149
1164
|
"aria-label": "noGroups",
|
|
1150
1165
|
onClick: closeClick
|
|
1151
|
-
}, /* @__PURE__ */ React
|
|
1166
|
+
}, /* @__PURE__ */ React.createElement(GroupItem, {
|
|
1152
1167
|
label: "No Groups",
|
|
1153
1168
|
clear: true
|
|
1154
1169
|
}))))));
|
|
@@ -1184,28 +1199,28 @@ const SplitButton = (props) => {
|
|
|
1184
1199
|
const setAnchorEl = useCallback((ref) => {
|
|
1185
1200
|
if (ref) popupState.setAnchorEl(ref);
|
|
1186
1201
|
}, []);
|
|
1187
|
-
return /* @__PURE__ */ React
|
|
1202
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(ButtonGroup, {
|
|
1188
1203
|
variant,
|
|
1189
1204
|
color,
|
|
1190
1205
|
size,
|
|
1191
1206
|
ref: setAnchorEl,
|
|
1192
1207
|
"aria-label": ariaLabel
|
|
1193
|
-
}, /* @__PURE__ */ React
|
|
1208
|
+
}, /* @__PURE__ */ React.createElement(Button, { onClick: firstItem?.props?.onClick }, label || firstItem?.props?.children), /* @__PURE__ */ React.createElement(Button, {
|
|
1194
1209
|
...bindTrigger(popupState),
|
|
1195
1210
|
className: classes.arrowButtonRoot,
|
|
1196
1211
|
color,
|
|
1197
1212
|
size: "small",
|
|
1198
1213
|
"aria-expanded": popupState.isOpen ? true : void 0
|
|
1199
|
-
}, /* @__PURE__ */ React
|
|
1214
|
+
}, /* @__PURE__ */ React.createElement(ArrowDropDown, null))), /* @__PURE__ */ React.createElement(Popper, {
|
|
1200
1215
|
...bindPopper(popupState),
|
|
1201
1216
|
role: void 0,
|
|
1202
1217
|
transition: true,
|
|
1203
1218
|
disablePortal: true,
|
|
1204
1219
|
className: classes.menu
|
|
1205
|
-
}, ({ TransitionProps, placement }) => /* @__PURE__ */ React
|
|
1220
|
+
}, ({ TransitionProps, placement }) => /* @__PURE__ */ React.createElement(Grow, {
|
|
1206
1221
|
...TransitionProps,
|
|
1207
1222
|
style: { transformOrigin: placement === "bottom" ? "center top" : "center bottom" }
|
|
1208
|
-
}, /* @__PURE__ */ React
|
|
1223
|
+
}, /* @__PURE__ */ React.createElement(Paper, { className: classes.paper }, /* @__PURE__ */ React.createElement(ClickAwayListener, { onClickAway: popupState.close }, /* @__PURE__ */ React.createElement(MenuList, null, children))))));
|
|
1209
1224
|
};
|
|
1210
1225
|
|
|
1211
1226
|
//#endregion
|
|
@@ -1275,26 +1290,26 @@ const AgTableButtons = (props) => {
|
|
|
1275
1290
|
}, [gridColumnApi]);
|
|
1276
1291
|
const autoSizeAllWithHeader = useCallback(() => autoSizeAll(false), [autoSizeAll]);
|
|
1277
1292
|
const autoSizeAllWithoutHeader = useCallback(() => autoSizeAll(false), [autoSizeAll]);
|
|
1278
|
-
return /* @__PURE__ */ React
|
|
1293
|
+
return /* @__PURE__ */ React.createElement(Box, { mb: 1 }, /* @__PURE__ */ React.createElement(Grid, {
|
|
1279
1294
|
container: true,
|
|
1280
1295
|
direction: "row",
|
|
1281
1296
|
spacing: 1,
|
|
1282
1297
|
justify: "flex-end"
|
|
1283
|
-
}, /* @__PURE__ */ React
|
|
1298
|
+
}, /* @__PURE__ */ React.createElement(Grid, { item: true }, /* @__PURE__ */ React.createElement(Button, {
|
|
1284
1299
|
variant: "outlined",
|
|
1285
1300
|
size: "small",
|
|
1286
1301
|
onClick: sizeToFit
|
|
1287
|
-
}, "Size to Fit")), /* @__PURE__ */ React
|
|
1302
|
+
}, "Size to Fit")), /* @__PURE__ */ React.createElement(Grid, { item: true }, /* @__PURE__ */ React.createElement(SplitButton, {
|
|
1288
1303
|
popupName: "auto-size",
|
|
1289
1304
|
variant: "outlined",
|
|
1290
1305
|
size: "small",
|
|
1291
1306
|
label: "Auto-Size"
|
|
1292
|
-
}, /* @__PURE__ */ React
|
|
1307
|
+
}, /* @__PURE__ */ React.createElement(MenuItem, { onClick: autoSizeAllWithHeader }, "All"), /* @__PURE__ */ React.createElement(MenuItem, { onClick: autoSizeAllWithoutHeader }, "Skip Header"))), /* @__PURE__ */ React.createElement(Grid, { item: true }, /* @__PURE__ */ React.createElement(SplitButton, {
|
|
1293
1308
|
popupName: "export",
|
|
1294
1309
|
variant: "outlined",
|
|
1295
1310
|
size: "small",
|
|
1296
1311
|
label: "Export"
|
|
1297
|
-
}, /* @__PURE__ */ React
|
|
1312
|
+
}, /* @__PURE__ */ React.createElement(MenuItem, { onClick: exportToExcel }, "Excel"), /* @__PURE__ */ React.createElement(MenuItem, { onClick: exportToCSV }, "CSV")))));
|
|
1298
1313
|
};
|
|
1299
1314
|
/**
|
|
1300
1315
|
* AgGrid with tweaks
|
|
@@ -1318,7 +1333,7 @@ const AgTable = (props) => {
|
|
|
1318
1333
|
const onGridSizeChanged = () => {
|
|
1319
1334
|
if (props.dynamicSizing) props.api?.sizeColumnsToFit();
|
|
1320
1335
|
};
|
|
1321
|
-
return /* @__PURE__ */ React
|
|
1336
|
+
return /* @__PURE__ */ React.createElement("div", { className: clsx("ag-theme-material", classes.root, className) }, /* @__PURE__ */ React.createElement(AgGridReact, {
|
|
1322
1337
|
...props,
|
|
1323
1338
|
modules,
|
|
1324
1339
|
onGridSizeChanged,
|
|
@@ -1367,79 +1382,79 @@ const useStyles$11 = makeStyles((theme) => ({
|
|
|
1367
1382
|
const GridActionBar = (props) => {
|
|
1368
1383
|
const classes = useStyles$11(props);
|
|
1369
1384
|
const { children, onChange, handleChange, value, exportCSV, exportExcel, exportPDF, fitClick, expandClick, clearClick, exportClick, saveGridConfig, deleteGridConfig, clearGridConfig, title, hideFitGrid = false, hideExpandGrid = false, hideExportGrid = false, hideRemoveFilters = false, hideFilterTab = false, hideGroupTab = false, hideColumnTab = false, hideSearchBar = false } = props;
|
|
1370
|
-
const gridControlsExport = /* @__PURE__ */ React
|
|
1371
|
-
return /* @__PURE__ */ React
|
|
1385
|
+
const gridControlsExport = /* @__PURE__ */ React.createElement("div", null);
|
|
1386
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes.root }, /* @__PURE__ */ React.createElement("div", { className: classes.title }, title && /* @__PURE__ */ React.createElement(Typography, {
|
|
1372
1387
|
variant: "h6",
|
|
1373
1388
|
style: {
|
|
1374
1389
|
overflow: "hidden",
|
|
1375
1390
|
whiteSpace: "nowrap",
|
|
1376
1391
|
textOverflow: "ellipsis"
|
|
1377
1392
|
}
|
|
1378
|
-
}, " ", title, " "), !hideSearchBar && /* @__PURE__ */ React
|
|
1393
|
+
}, " ", title, " "), !hideSearchBar && /* @__PURE__ */ React.createElement("div", { style: {
|
|
1379
1394
|
flex: 1,
|
|
1380
1395
|
marginLeft: 16,
|
|
1381
1396
|
marginRight: 16,
|
|
1382
1397
|
marginTop: -16
|
|
1383
|
-
} }, /* @__PURE__ */ React
|
|
1398
|
+
} }, /* @__PURE__ */ React.createElement(AmbientTextField, {
|
|
1384
1399
|
title,
|
|
1385
1400
|
onChange,
|
|
1386
1401
|
InputProps: {
|
|
1387
1402
|
type: "search",
|
|
1388
|
-
startAdornment: /* @__PURE__ */ React
|
|
1403
|
+
startAdornment: /* @__PURE__ */ React.createElement(InputAdornment, { position: "start" }, /* @__PURE__ */ React.createElement(SearchIcon, null))
|
|
1389
1404
|
}
|
|
1390
|
-
}))), /* @__PURE__ */ React
|
|
1405
|
+
}))), /* @__PURE__ */ React.createElement("div", null, " ", gridControlsExport), /* @__PURE__ */ React.createElement("div", { className: classes.controls }, saveGridConfig && /* @__PURE__ */ React.createElement(AmbientTokenButton, {
|
|
1391
1406
|
iconClassName: classes.icon,
|
|
1392
1407
|
icon: SaveIcon,
|
|
1393
1408
|
tooltip: "Save Grid Configuration",
|
|
1394
1409
|
ariaLabel: "Save Grid Configuration",
|
|
1395
1410
|
onClick: saveGridConfig
|
|
1396
|
-
}), deleteGridConfig && /* @__PURE__ */ React
|
|
1411
|
+
}), deleteGridConfig && /* @__PURE__ */ React.createElement(AmbientTokenButton, {
|
|
1397
1412
|
iconClassName: classes.icon,
|
|
1398
1413
|
icon: DeleteIcon,
|
|
1399
1414
|
tooltip: "Delete Grid Configuration",
|
|
1400
1415
|
ariaLabel: "Delete Grid Configuration",
|
|
1401
1416
|
onClick: deleteGridConfig
|
|
1402
|
-
}), clearGridConfig && /* @__PURE__ */ React
|
|
1417
|
+
}), clearGridConfig && /* @__PURE__ */ React.createElement(AmbientTokenButton, {
|
|
1403
1418
|
iconClassName: classes.icon,
|
|
1404
1419
|
icon: ClearIcon,
|
|
1405
1420
|
tooltip: "Clear Grid Configuration",
|
|
1406
1421
|
ariaLabel: "Clear Grid Configuration",
|
|
1407
1422
|
onClick: clearGridConfig
|
|
1408
|
-
}), !hideFitGrid && /* @__PURE__ */ React
|
|
1423
|
+
}), !hideFitGrid && /* @__PURE__ */ React.createElement(AmbientTokenButton, {
|
|
1409
1424
|
iconClassName: classes.icon,
|
|
1410
1425
|
icon: CombineIcon,
|
|
1411
1426
|
tooltip: "Fit Grid",
|
|
1412
1427
|
ariaLabel: "Fit Grid",
|
|
1413
1428
|
onClick: fitClick
|
|
1414
|
-
}), !hideExpandGrid && /* @__PURE__ */ React
|
|
1429
|
+
}), !hideExpandGrid && /* @__PURE__ */ React.createElement(AmbientTokenButton, {
|
|
1415
1430
|
iconClassName: classes.icon,
|
|
1416
1431
|
icon: ExportIcon,
|
|
1417
1432
|
tooltip: "Expand Grid",
|
|
1418
1433
|
ariaLabel: "Expand Grid",
|
|
1419
1434
|
onClick: expandClick
|
|
1420
|
-
}), !hideExportGrid && /* @__PURE__ */ React
|
|
1435
|
+
}), !hideExportGrid && /* @__PURE__ */ React.createElement(AmbientTokenButton, {
|
|
1421
1436
|
iconClassName: classes.icon,
|
|
1422
1437
|
icon: DownloadIcon,
|
|
1423
1438
|
tooltip: "Export Grid",
|
|
1424
1439
|
ariaLabel: "Export Grid",
|
|
1425
1440
|
onClick: exportClick
|
|
1426
|
-
}), !hideRemoveFilters && /* @__PURE__ */ React
|
|
1441
|
+
}), !hideRemoveFilters && /* @__PURE__ */ React.createElement(AmbientTokenButton, {
|
|
1427
1442
|
iconClassName: classes.icon,
|
|
1428
1443
|
icon: BlockedIcon,
|
|
1429
1444
|
tooltip: "Remove Filters",
|
|
1430
1445
|
ariaLabel: "Remove Filters",
|
|
1431
1446
|
onClick: clearClick
|
|
1432
|
-
})), /* @__PURE__ */ React
|
|
1447
|
+
})), /* @__PURE__ */ React.createElement(Tabs, {
|
|
1433
1448
|
value,
|
|
1434
1449
|
onChange: handleChange,
|
|
1435
1450
|
"aria-label": "basic tabs example"
|
|
1436
|
-
}, !hideFilterTab && /* @__PURE__ */ React
|
|
1451
|
+
}, !hideFilterTab && /* @__PURE__ */ React.createElement(Tab, {
|
|
1437
1452
|
label: "Filter",
|
|
1438
1453
|
classes: { root: classes.tabRoot }
|
|
1439
|
-
}), !hideGroupTab && /* @__PURE__ */ React
|
|
1454
|
+
}), !hideGroupTab && /* @__PURE__ */ React.createElement(Tab, {
|
|
1440
1455
|
label: "Group",
|
|
1441
1456
|
classes: { root: classes.tabRoot }
|
|
1442
|
-
}), !hideColumnTab && /* @__PURE__ */ React
|
|
1457
|
+
}), !hideColumnTab && /* @__PURE__ */ React.createElement(Tab, {
|
|
1443
1458
|
label: "Column",
|
|
1444
1459
|
classes: { root: classes.tabRoot }
|
|
1445
1460
|
})), children);
|
|
@@ -1477,14 +1492,14 @@ const useStyles$10 = makeStyles((theme) => ({
|
|
|
1477
1492
|
const AmbientChipButton = forwardRef(function AmbientChipButton$1(props, ref) {
|
|
1478
1493
|
const { tooltip, label, onClick, icon, iconClassName, className, labelClassName, otherProps, id = "chip-button", udprecordid } = props;
|
|
1479
1494
|
const classes = useStyles$10(props);
|
|
1480
|
-
return /* @__PURE__ */ React
|
|
1495
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes.root }, /* @__PURE__ */ React.createElement(Tooltip, { title: tooltip }, /* @__PURE__ */ React.createElement(Chip, {
|
|
1481
1496
|
id,
|
|
1482
1497
|
udprecordid,
|
|
1483
1498
|
ref,
|
|
1484
1499
|
className: className ?? classes.chipRoot,
|
|
1485
|
-
label: /* @__PURE__ */ React
|
|
1500
|
+
label: /* @__PURE__ */ React.createElement(Typography, { className: labelClassName ?? classes.label }, label),
|
|
1486
1501
|
onClick,
|
|
1487
|
-
icon: icon && /* @__PURE__ */ React
|
|
1502
|
+
icon: icon && /* @__PURE__ */ React.createElement(FluentIcon, {
|
|
1488
1503
|
className: iconClassName ?? classes.icon,
|
|
1489
1504
|
component: icon
|
|
1490
1505
|
}),
|
|
@@ -1729,28 +1744,28 @@ const GridPrimaryBar = (props) => {
|
|
|
1729
1744
|
if (event.key === "Enter") onSearchKeyDown();
|
|
1730
1745
|
}
|
|
1731
1746
|
};
|
|
1732
|
-
return /* @__PURE__ */ React
|
|
1747
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes.root }, /* @__PURE__ */ React.createElement("div", { className: classes.title }, title && /* @__PURE__ */ React.createElement(Typography, {
|
|
1733
1748
|
variant: "h6",
|
|
1734
1749
|
style: {
|
|
1735
1750
|
overflow: "hidden",
|
|
1736
1751
|
whiteSpace: "nowrap",
|
|
1737
1752
|
textOverflow: "ellipsis"
|
|
1738
1753
|
}
|
|
1739
|
-
}, " ", title, " "), !hideSearchBar && /* @__PURE__ */ React
|
|
1754
|
+
}, " ", title, " "), !hideSearchBar && /* @__PURE__ */ React.createElement("div", { style: {
|
|
1740
1755
|
flex: 1,
|
|
1741
1756
|
marginLeft: 16,
|
|
1742
1757
|
marginRight: 16,
|
|
1743
1758
|
marginTop: -16,
|
|
1744
1759
|
maxWidth: 300
|
|
1745
|
-
} }, /* @__PURE__ */ React
|
|
1760
|
+
} }, /* @__PURE__ */ React.createElement(AmbientTextField, {
|
|
1746
1761
|
title,
|
|
1747
1762
|
onChange,
|
|
1748
1763
|
onKeyDown: handleCustomKeyDown,
|
|
1749
1764
|
InputProps: {
|
|
1750
1765
|
type: "search",
|
|
1751
|
-
startAdornment: /* @__PURE__ */ React
|
|
1766
|
+
startAdornment: /* @__PURE__ */ React.createElement(InputAdornment, { position: "start" }, /* @__PURE__ */ React.createElement(SearchIcon, null))
|
|
1752
1767
|
}
|
|
1753
|
-
}))), /* @__PURE__ */ React
|
|
1768
|
+
}))), /* @__PURE__ */ React.createElement("div", { className: classes.controls }, actionButtons.map((button) => button.visible && (button.hideLabel ? /* @__PURE__ */ React.createElement(AmbientTokenButton, {
|
|
1754
1769
|
id: "udpRecord-GridPrimaryBar-Token-" + button.label.replace(/ /g, "-"),
|
|
1755
1770
|
udprecordid: "udpRecord-GridPrimaryBar-Token-" + button.label.replace(/ /g, "-"),
|
|
1756
1771
|
icon: button.icon ?? AppIconDefaultIcon,
|
|
@@ -1758,7 +1773,7 @@ const GridPrimaryBar = (props) => {
|
|
|
1758
1773
|
onClick: button.onClick,
|
|
1759
1774
|
ariaLabel: button.label,
|
|
1760
1775
|
iconClassName: button.iconClassName
|
|
1761
|
-
}) : /* @__PURE__ */ React
|
|
1776
|
+
}) : /* @__PURE__ */ React.createElement(AmbientChipButton, {
|
|
1762
1777
|
id: "udpRecord-GridPrimaryBar-Chip-" + button.label.replace(/ /g, "-"),
|
|
1763
1778
|
udprecordid: "udpRecord-GridPrimaryBar-Chip-" + button.label.replace(/ /g, "-"),
|
|
1764
1779
|
icon: button.icon ?? AppIconDefaultIcon,
|
|
@@ -1766,14 +1781,14 @@ const GridPrimaryBar = (props) => {
|
|
|
1766
1781
|
label: button.label,
|
|
1767
1782
|
onClick: button.onClick,
|
|
1768
1783
|
background: button.background
|
|
1769
|
-
}))), !!menuActionButtons.length && /* @__PURE__ */ React
|
|
1784
|
+
}))), !!menuActionButtons.length && /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(AmbientTokenButton, {
|
|
1770
1785
|
id,
|
|
1771
1786
|
icon: MoreVerticalIcon,
|
|
1772
1787
|
tooltip: "More Actions",
|
|
1773
1788
|
ariaLabel: "More Actions",
|
|
1774
1789
|
onClick: handlePopoverClick,
|
|
1775
1790
|
iconClassName: classes.icon
|
|
1776
|
-
}), /* @__PURE__ */ React
|
|
1791
|
+
}), /* @__PURE__ */ React.createElement(Popover, {
|
|
1777
1792
|
id,
|
|
1778
1793
|
open,
|
|
1779
1794
|
anchorEl,
|
|
@@ -1788,7 +1803,7 @@ const GridPrimaryBar = (props) => {
|
|
|
1788
1803
|
}
|
|
1789
1804
|
}, menuActionButtons.slice(0).reverse().map((button) => {
|
|
1790
1805
|
if (!button.visible) return null;
|
|
1791
|
-
return /* @__PURE__ */ React
|
|
1806
|
+
return /* @__PURE__ */ React.createElement(MenuItem, {
|
|
1792
1807
|
id: "udpRecord-GridPrimaryBar-MenuItem-" + button.label.replace(/ /g, "-"),
|
|
1793
1808
|
udprecordid: "udpRecord-GridPrimaryBar-MenuItem-" + button.label.replace(/ /g, "-"),
|
|
1794
1809
|
onClick: button.onClick,
|
|
@@ -1796,16 +1811,16 @@ const GridPrimaryBar = (props) => {
|
|
|
1796
1811
|
display: "flex",
|
|
1797
1812
|
justifyContent: "space-between"
|
|
1798
1813
|
}
|
|
1799
|
-
}, /* @__PURE__ */ React
|
|
1814
|
+
}, /* @__PURE__ */ React.createElement(Typography, null, button.label), /* @__PURE__ */ React.createElement(FluentIcon, {
|
|
1800
1815
|
component: button.icon ?? AppIconDefaultIcon,
|
|
1801
1816
|
style: { marginLeft: 7 }
|
|
1802
1817
|
}));
|
|
1803
|
-
})))), onPrimaryActionClick && /* @__PURE__ */ React
|
|
1818
|
+
})))), onPrimaryActionClick && /* @__PURE__ */ React.createElement(PrimaryActionButton_default, {
|
|
1804
1819
|
onClick: onPrimaryActionClick,
|
|
1805
1820
|
id: "udpRecord-GridPrimaryBar-Add",
|
|
1806
1821
|
udprecordid: "udpRecord-GridPrimaryBar-Add",
|
|
1807
1822
|
disabled: primaryActionDisabled
|
|
1808
|
-
}, /* @__PURE__ */ React
|
|
1823
|
+
}, /* @__PURE__ */ React.createElement(Typography, { style: { marginLeft: 4 } }, primaryActionLabel ?? "Button"), /* @__PURE__ */ React.createElement(FluentIcon, {
|
|
1809
1824
|
style: { marginLeft: 7 },
|
|
1810
1825
|
component: primaryActionIcon ?? AppIconDefaultIcon
|
|
1811
1826
|
})));
|
|
@@ -1888,39 +1903,39 @@ const useStyles$8 = makeStyles((theme) => ({
|
|
|
1888
1903
|
const FluentDialog = (props) => {
|
|
1889
1904
|
const classes = useStyles$8(props);
|
|
1890
1905
|
const { title, message, actionOne, actionTwo, actionThree, labelOne, labelTwo, labelThree, open, handleClose, ariaLabelledby, ariaDescribedby, titleId, descriptionId, children, buttonOneHidden = false, buttonTwoHidden = false, buttonThreeHidden = true, disableOne, disableTwo, disableThree, progress, enableLeftBorderStyling = false,...otherProps } = props;
|
|
1891
|
-
return /* @__PURE__ */ React
|
|
1906
|
+
return /* @__PURE__ */ React.createElement(Dialog, {
|
|
1892
1907
|
open,
|
|
1893
1908
|
onClose: handleClose,
|
|
1894
1909
|
"aria-labelledby": ariaLabelledby,
|
|
1895
1910
|
"aria-describedby": ariaDescribedby,
|
|
1896
1911
|
...otherProps,
|
|
1897
1912
|
classes: { paper: classes.paper }
|
|
1898
|
-
}, /* @__PURE__ */ React
|
|
1913
|
+
}, /* @__PURE__ */ React.createElement("div", { className: enableLeftBorderStyling ? classes.dialogLeftBorder : "" }), /* @__PURE__ */ React.createElement(DialogTitle, {
|
|
1899
1914
|
className: classes.title,
|
|
1900
1915
|
id: titleId
|
|
1901
|
-
}, title), /* @__PURE__ */ React
|
|
1916
|
+
}, title), /* @__PURE__ */ React.createElement(DialogContent, { className: classes.dialogContent }, /* @__PURE__ */ React.createElement(DialogContentText, { id: descriptionId }, message), children), /* @__PURE__ */ React.createElement(DialogActions, {
|
|
1902
1917
|
className: classes.actions,
|
|
1903
1918
|
disableSpacing: true
|
|
1904
|
-
}, !buttonThreeHidden && /* @__PURE__ */ React
|
|
1919
|
+
}, !buttonThreeHidden && /* @__PURE__ */ React.createElement(Button, {
|
|
1905
1920
|
id: "udpRecord-FluentDialog-Confirm",
|
|
1906
1921
|
udprecordid: "udpRecord-FluentDialog-Confirm",
|
|
1907
1922
|
onClick: actionThree,
|
|
1908
1923
|
color: "secondary",
|
|
1909
1924
|
disabled: disableThree,
|
|
1910
1925
|
className: classes.button
|
|
1911
|
-
}, labelThree), !buttonTwoHidden && /* @__PURE__ */ React
|
|
1926
|
+
}, labelThree), !buttonTwoHidden && /* @__PURE__ */ React.createElement(Button, {
|
|
1912
1927
|
id: "udpRecord-FluentDialog-Confirm",
|
|
1913
1928
|
udprecordid: "udpRecord-FluentDialog-Confirm",
|
|
1914
1929
|
onClick: actionTwo,
|
|
1915
1930
|
color: "secondary",
|
|
1916
1931
|
disabled: disableTwo,
|
|
1917
1932
|
className: classes.button
|
|
1918
|
-
}, labelTwo), !buttonOneHidden && /* @__PURE__ */ React
|
|
1933
|
+
}, labelTwo), !buttonOneHidden && /* @__PURE__ */ React.createElement(PrimaryActionButton, {
|
|
1919
1934
|
id: "udpRecord-FluentDialog-Cancel",
|
|
1920
1935
|
udprecordid: "udpRecord-FluentDialog-Cancel",
|
|
1921
1936
|
disabled: disableOne,
|
|
1922
1937
|
onClick: actionOne
|
|
1923
|
-
}, labelOne)), progress && /* @__PURE__ */ React
|
|
1938
|
+
}, labelOne)), progress && /* @__PURE__ */ React.createElement(LinearProgress, {
|
|
1924
1939
|
color: "secondary",
|
|
1925
1940
|
value: progress,
|
|
1926
1941
|
...otherProps
|
|
@@ -2332,13 +2347,13 @@ const DynamicContainerWithMenu = forwardRef((props, ref) => {
|
|
|
2332
2347
|
resizeObserver.disconnect();
|
|
2333
2348
|
};
|
|
2334
2349
|
}, [handleSizeChange, outerContainerRef]);
|
|
2335
|
-
return /* @__PURE__ */ React
|
|
2350
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
2336
2351
|
ref: outerContainerRef,
|
|
2337
2352
|
style: {
|
|
2338
2353
|
width: "100%",
|
|
2339
2354
|
overflow: "hidden"
|
|
2340
2355
|
}
|
|
2341
|
-
}, /* @__PURE__ */ React
|
|
2356
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
2342
2357
|
className,
|
|
2343
2358
|
ref: containerRef,
|
|
2344
2359
|
style: {
|
|
@@ -2352,14 +2367,14 @@ const DynamicContainerWithMenu = forwardRef((props, ref) => {
|
|
|
2352
2367
|
ref: (ref$1) => childrenRefs.current[index] = ref$1,
|
|
2353
2368
|
...child.props
|
|
2354
2369
|
}, child.props.children);
|
|
2355
|
-
}), menuChildren && menuChildren.length > 0 && /* @__PURE__ */ React
|
|
2370
|
+
}), menuChildren && menuChildren.length > 0 && /* @__PURE__ */ React.createElement("div", null, modifiedMenuButton ?? /* @__PURE__ */ React.createElement(AmbientTokenButton, {
|
|
2356
2371
|
id,
|
|
2357
2372
|
icon: MoreVerticalIcon,
|
|
2358
2373
|
tooltip: "Additional Filter Values",
|
|
2359
2374
|
ariaLabel: "Additional Filter Values",
|
|
2360
2375
|
onClick: handlePopoverClick,
|
|
2361
2376
|
iconClassName: menuIconClassName ?? classes.filterChipMenuIcon
|
|
2362
|
-
}), /* @__PURE__ */ React
|
|
2377
|
+
}), /* @__PURE__ */ React.createElement(Popover, {
|
|
2363
2378
|
id,
|
|
2364
2379
|
open,
|
|
2365
2380
|
anchorEl,
|
|
@@ -2373,7 +2388,7 @@ const DynamicContainerWithMenu = forwardRef((props, ref) => {
|
|
|
2373
2388
|
horizontal: "right"
|
|
2374
2389
|
}
|
|
2375
2390
|
}, Children.map(menuChildren, (child, index) => {
|
|
2376
|
-
return /* @__PURE__ */ React
|
|
2391
|
+
return /* @__PURE__ */ React.createElement(MenuItem, { onClick: () => handleMenuItemClick(child) }, cloneElement(child, { ...child.props }, child.props.children));
|
|
2377
2392
|
})))));
|
|
2378
2393
|
});
|
|
2379
2394
|
DynamicContainerWithMenu.displayName = "DynamicContainerWithMenu";
|
|
@@ -2509,7 +2524,7 @@ const ChipSection = (props) => {
|
|
|
2509
2524
|
setSelectedFilterChip(null);
|
|
2510
2525
|
}
|
|
2511
2526
|
};
|
|
2512
|
-
return /* @__PURE__ */ React
|
|
2527
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
2513
2528
|
ref: chipSectionContainerRef,
|
|
2514
2529
|
className: classes.wrapper,
|
|
2515
2530
|
style: { display: [
|
|
@@ -2518,35 +2533,35 @@ const ChipSection = (props) => {
|
|
|
2518
2533
|
viewChips,
|
|
2519
2534
|
filterChips
|
|
2520
2535
|
].every((arr) => arr.length === 0) ? "none" : "flex" }
|
|
2521
|
-
}, /* @__PURE__ */ React
|
|
2536
|
+
}, /* @__PURE__ */ React.createElement("div", { className: classes.chipHolder }, /* @__PURE__ */ React.createElement("div", { ref: viewChipsContainerRef }, viewChips.map((chip, index) => /* @__PURE__ */ React.createElement(Chip$1, {
|
|
2522
2537
|
onDelete: () => handleDelete("view", index),
|
|
2523
2538
|
key: index,
|
|
2524
2539
|
label: chip.label,
|
|
2525
2540
|
className: classes.viewChip,
|
|
2526
|
-
icon: /* @__PURE__ */ React
|
|
2541
|
+
icon: /* @__PURE__ */ React.createElement(StarIcon, null),
|
|
2527
2542
|
size: "small"
|
|
2528
|
-
}))), !isEmpty(viewChips) && !isEmpty(filterChips) && /* @__PURE__ */ React
|
|
2543
|
+
}))), !isEmpty(viewChips) && !isEmpty(filterChips) && /* @__PURE__ */ React.createElement(Divider$1, {
|
|
2529
2544
|
orientation: "vertical",
|
|
2530
2545
|
flexItem: true
|
|
2531
|
-
}), !isEmpty(filterChips) && /* @__PURE__ */ React
|
|
2546
|
+
}), !isEmpty(filterChips) && /* @__PURE__ */ React.createElement(DynamicContainerWithMenu, {
|
|
2532
2547
|
className: classes.chipHolder,
|
|
2533
2548
|
ref: filterChipsContainerRef
|
|
2534
|
-
}, selectedFilterChip && /* @__PURE__ */ React
|
|
2549
|
+
}, selectedFilterChip && /* @__PURE__ */ React.createElement(Chip$1, {
|
|
2535
2550
|
onDelete: handleFilterChipUntoggle,
|
|
2536
2551
|
label: selectedFilterChip.label,
|
|
2537
2552
|
className: classes.viewChip,
|
|
2538
2553
|
size: "small"
|
|
2539
2554
|
}), filterChips.map((chip, index) => {
|
|
2540
2555
|
if (selectedFilterChip && chip.id === selectedFilterChip.id) return null;
|
|
2541
|
-
return /* @__PURE__ */ React
|
|
2556
|
+
return /* @__PURE__ */ React.createElement(Tooltip$1, { title: chip.label }, /* @__PURE__ */ React.createElement(Chip$1, {
|
|
2542
2557
|
key: index,
|
|
2543
|
-
label: /* @__PURE__ */ React
|
|
2558
|
+
label: /* @__PURE__ */ React.createElement("div", { style: {
|
|
2544
2559
|
display: "flex",
|
|
2545
2560
|
flexWrap: "noWrap"
|
|
2546
|
-
} }, /* @__PURE__ */ React
|
|
2561
|
+
} }, /* @__PURE__ */ React.createElement(Typography$1, {
|
|
2547
2562
|
noWrap: true,
|
|
2548
2563
|
className: chip.value ? classes.filterChipLabel : ""
|
|
2549
|
-
}, chip.label), /* @__PURE__ */ React
|
|
2564
|
+
}, chip.label), /* @__PURE__ */ React.createElement(Typography$1, {
|
|
2550
2565
|
noWrap: true,
|
|
2551
2566
|
className: classes.filterChipValue
|
|
2552
2567
|
}, chip.value)),
|
|
@@ -2555,32 +2570,32 @@ const ChipSection = (props) => {
|
|
|
2555
2570
|
onClick: () => handleFilterChipToggle(chip),
|
|
2556
2571
|
ref: (el) => chipRefs.current[index] = el
|
|
2557
2572
|
}));
|
|
2558
|
-
})), !isEmpty(additionalFilterChips) && !isEmpty(filterChips) && /* @__PURE__ */ React
|
|
2573
|
+
})), !isEmpty(additionalFilterChips) && !isEmpty(filterChips) && /* @__PURE__ */ React.createElement(Divider$1, {
|
|
2559
2574
|
orientation: "vertical",
|
|
2560
2575
|
flexItem: true
|
|
2561
|
-
}), /* @__PURE__ */ React
|
|
2576
|
+
}), /* @__PURE__ */ React.createElement("div", {
|
|
2562
2577
|
ref: additionalFilterChipsContainerRef,
|
|
2563
2578
|
style: { display: "flex" }
|
|
2564
|
-
}, additionalFilterChips.map((chip, index) => /* @__PURE__ */ React
|
|
2579
|
+
}, additionalFilterChips.map((chip, index) => /* @__PURE__ */ React.createElement(Chip$1, {
|
|
2565
2580
|
variant: "outlined",
|
|
2566
2581
|
onDelete: () => handleDelete("additionalFilter", index),
|
|
2567
2582
|
key: index,
|
|
2568
2583
|
label: chip.label,
|
|
2569
2584
|
className: classes.additionalFilterChip,
|
|
2570
2585
|
size: "small"
|
|
2571
|
-
})))), !hideKpiSection && /* @__PURE__ */ React
|
|
2586
|
+
})))), !hideKpiSection && /* @__PURE__ */ React.createElement("div", {
|
|
2572
2587
|
className: classes.KPI,
|
|
2573
2588
|
ref: kpiContainerRef
|
|
2574
|
-
}, kpiValues.slice(0, 4).map((kpi, index) => /* @__PURE__ */ React
|
|
2589
|
+
}, kpiValues.slice(0, 4).map((kpi, index) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
|
|
2575
2590
|
className: classes.kpiItem,
|
|
2576
2591
|
id: index
|
|
2577
|
-
}, /* @__PURE__ */ React
|
|
2592
|
+
}, /* @__PURE__ */ React.createElement("span", { className: classes.kpiLabel }, abbreviateLabel(kpi.label) && /* @__PURE__ */ React.createElement(Tooltip$1, {
|
|
2578
2593
|
title: kpi.label,
|
|
2579
2594
|
arrow: true
|
|
2580
|
-
}, /* @__PURE__ */ React
|
|
2595
|
+
}, /* @__PURE__ */ React.createElement(Typography$1, { noWrap: true }, /* @__PURE__ */ React.createElement("span", null, kpi.label, ":"))) || /* @__PURE__ */ React.createElement(React.Fragment, null, kpi.label)), /* @__PURE__ */ React.createElement("span", { className: classes.kpiValue }, /* @__PURE__ */ React.createElement(Tooltip$1, {
|
|
2581
2596
|
title: kpi.value,
|
|
2582
2597
|
arrow: true
|
|
2583
|
-
}, /* @__PURE__ */ React
|
|
2598
|
+
}, /* @__PURE__ */ React.createElement("span", null, abbrNum(kpi.value, 1))))), index !== maxKPIsDisplayed - 1 && /* @__PURE__ */ React.createElement(Divider$1, {
|
|
2584
2599
|
orientation: "vertical",
|
|
2585
2600
|
flexItem: true
|
|
2586
2601
|
})))));
|
|
@@ -2613,13 +2628,13 @@ const IconButtonWithTooltip = ({ icon, title, disabled, onClick, className, flue
|
|
|
2613
2628
|
onClick: disabled ? void 0 : onClick
|
|
2614
2629
|
};
|
|
2615
2630
|
const classes = useStyles$4();
|
|
2616
|
-
return /* @__PURE__ */ React
|
|
2631
|
+
return /* @__PURE__ */ React.createElement(Tooltip, { title }, /* @__PURE__ */ React.createElement(IconButton, {
|
|
2617
2632
|
id,
|
|
2618
2633
|
udprecordid,
|
|
2619
2634
|
className: `${className} ${classes.root}`,
|
|
2620
2635
|
...other,
|
|
2621
2636
|
...adjustedButtonProps
|
|
2622
|
-
}, /* @__PURE__ */ React
|
|
2637
|
+
}, /* @__PURE__ */ React.createElement(FluentIcon, {
|
|
2623
2638
|
className: fluentIconClassName,
|
|
2624
2639
|
component: icon
|
|
2625
2640
|
})));
|
|
@@ -2641,7 +2656,7 @@ const useStyles$3 = makeStyles((theme) => ({
|
|
|
2641
2656
|
const ActionItem = memo((props) => {
|
|
2642
2657
|
const { icon, title, onClick, disabled, businessObjectKey = "" } = props;
|
|
2643
2658
|
const classes = useStyles$3();
|
|
2644
|
-
return /* @__PURE__ */ React
|
|
2659
|
+
return /* @__PURE__ */ React.createElement(IconButtonWithTooltip, {
|
|
2645
2660
|
title,
|
|
2646
2661
|
className: classes.icon,
|
|
2647
2662
|
size: "small",
|
|
@@ -2733,14 +2748,14 @@ const ActionsRenderer = memo((props) => {
|
|
|
2733
2748
|
}
|
|
2734
2749
|
if (item.getTitle) title = item.getTitle(value);
|
|
2735
2750
|
if (item.checkDisabled) disabled = item.checkDisabled(value);
|
|
2736
|
-
return /* @__PURE__ */ React
|
|
2751
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, item.loading && /* @__PURE__ */ React.createElement("div", { style: {
|
|
2737
2752
|
display: "inline-flex",
|
|
2738
2753
|
marginRight: 10
|
|
2739
|
-
} }, /* @__PURE__ */ React
|
|
2754
|
+
} }, /* @__PURE__ */ React.createElement(Skeleton, {
|
|
2740
2755
|
className: classes.circularSkeleton,
|
|
2741
2756
|
width: 24,
|
|
2742
2757
|
height: 40
|
|
2743
|
-
})), !item.loading && /* @__PURE__ */ React
|
|
2758
|
+
})), !item.loading && /* @__PURE__ */ React.createElement(ActionItem, {
|
|
2744
2759
|
key: `${item.id}-${index}`,
|
|
2745
2760
|
title,
|
|
2746
2761
|
icon: item.icon,
|
|
@@ -2749,14 +2764,14 @@ const ActionsRenderer = memo((props) => {
|
|
|
2749
2764
|
businessObjectKey: value?.businessObjectKey
|
|
2750
2765
|
}));
|
|
2751
2766
|
});
|
|
2752
|
-
return /* @__PURE__ */ React
|
|
2767
|
+
return /* @__PURE__ */ React.createElement("div", null, displayActions, /* @__PURE__ */ React.createElement(SideSheet, {
|
|
2753
2768
|
open: sheetOpen,
|
|
2754
2769
|
onClose: closeSheet,
|
|
2755
2770
|
title: sheetItem?.title,
|
|
2756
2771
|
width: sheetItem?.width || 600,
|
|
2757
2772
|
buttonLabel: sideSheetButtonLabel,
|
|
2758
2773
|
onSubmit: sideSheetOnSubmit
|
|
2759
|
-
}, /* @__PURE__ */ React
|
|
2774
|
+
}, /* @__PURE__ */ React.createElement("div", null, sheetItem?.children)), /* @__PURE__ */ React.createElement(FluentDialog, {
|
|
2760
2775
|
open: dialogOpen,
|
|
2761
2776
|
handleClose: closeDialog,
|
|
2762
2777
|
title: dialogItem?.title,
|
|
@@ -2800,7 +2815,7 @@ const HintPanel = ({ hint, hideHintText }) => {
|
|
|
2800
2815
|
const handleHideHint = () => {
|
|
2801
2816
|
setShowHint(false);
|
|
2802
2817
|
};
|
|
2803
|
-
return /* @__PURE__ */ React
|
|
2818
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes.hintContainer }, showHint && /* @__PURE__ */ React.createElement("div", { className: classes.hintContent }, /* @__PURE__ */ React.createElement("div", null, hint), /* @__PURE__ */ React.createElement("div", { className: classes.hidehelp }, /* @__PURE__ */ React.createElement("button", {
|
|
2804
2819
|
className: classes.hideHintButton,
|
|
2805
2820
|
onClick: handleHideHint
|
|
2806
2821
|
}, hideHintText))));
|
|
@@ -2834,7 +2849,7 @@ const GridViewsSideSheet = (props) => {
|
|
|
2834
2849
|
const handleChipClick = () => {
|
|
2835
2850
|
onChange(id);
|
|
2836
2851
|
};
|
|
2837
|
-
return /* @__PURE__ */ React
|
|
2852
|
+
return /* @__PURE__ */ React.createElement(Chip$1, {
|
|
2838
2853
|
label: value === VisibilityTypeEnums.Public ? t("Public") : t("Private"),
|
|
2839
2854
|
onClick: handleChipClick,
|
|
2840
2855
|
className: value === VisibilityTypeEnums.Public ? classes.publicChip : classes.privateChip,
|
|
@@ -2887,7 +2902,7 @@ const GridViewsSideSheet = (props) => {
|
|
|
2887
2902
|
}
|
|
2888
2903
|
]
|
|
2889
2904
|
};
|
|
2890
|
-
return /* @__PURE__ */ React
|
|
2905
|
+
return /* @__PURE__ */ React.createElement(SideSheet, {
|
|
2891
2906
|
id: "udpRecord-GridViewsSideSheet",
|
|
2892
2907
|
udprecordid: "udpRecord-GridViewsSideSheet",
|
|
2893
2908
|
open,
|
|
@@ -2896,10 +2911,10 @@ const GridViewsSideSheet = (props) => {
|
|
|
2896
2911
|
title: "Select a View",
|
|
2897
2912
|
buttonLabel: "Create View",
|
|
2898
2913
|
onSubmit: openSaveView
|
|
2899
|
-
}, /* @__PURE__ */ React
|
|
2914
|
+
}, /* @__PURE__ */ React.createElement("div", { style: { marginBottom: 10 } }, /* @__PURE__ */ React.createElement(HintPanel, {
|
|
2900
2915
|
hint: "Quickly access and manage your pre-configured table/grid views. These views are designed to help you focus on specific sets of data and streamline your workflow.",
|
|
2901
2916
|
hideHintText: "Hide Help"
|
|
2902
|
-
})), /* @__PURE__ */ React
|
|
2917
|
+
})), /* @__PURE__ */ React.createElement(AmbientGridTemplate, {
|
|
2903
2918
|
gridOptions,
|
|
2904
2919
|
title: "Saved Views",
|
|
2905
2920
|
rowData: rowData || [],
|
|
@@ -2956,22 +2971,22 @@ const BulkActionsGridButton = (props) => {
|
|
|
2956
2971
|
const filterAction = (action) => {
|
|
2957
2972
|
return !!domain ? JSON.parse(action?.parameters)?.entityName === domain : true;
|
|
2958
2973
|
};
|
|
2959
|
-
return /* @__PURE__ */ React
|
|
2974
|
+
return /* @__PURE__ */ React.createElement("div", { style: {
|
|
2960
2975
|
marginTop: 5,
|
|
2961
2976
|
marginLeft: 20
|
|
2962
|
-
} }, /* @__PURE__ */ React
|
|
2977
|
+
} }, /* @__PURE__ */ React.createElement(Badge, {
|
|
2963
2978
|
badgeContent: numSelectedRows,
|
|
2964
2979
|
color: "secondary"
|
|
2965
|
-
}, /* @__PURE__ */ React
|
|
2980
|
+
}, /* @__PURE__ */ React.createElement(FluentButton, {
|
|
2966
2981
|
type: "button",
|
|
2967
2982
|
onClick: handleBulkActionsClick,
|
|
2968
2983
|
variant: "outlined",
|
|
2969
2984
|
color: "primary",
|
|
2970
|
-
endIcon: /* @__PURE__ */ React
|
|
2985
|
+
endIcon: /* @__PURE__ */ React.createElement(FluentIcon, {
|
|
2971
2986
|
component: ChevronDownIcon,
|
|
2972
2987
|
size: "small"
|
|
2973
2988
|
})
|
|
2974
|
-
}, "With Selected")), /* @__PURE__ */ React
|
|
2989
|
+
}, "With Selected")), /* @__PURE__ */ React.createElement(Popover, {
|
|
2975
2990
|
id: "actions",
|
|
2976
2991
|
open: Boolean(actionsAnchorEl),
|
|
2977
2992
|
anchorEl: actionsAnchorEl,
|
|
@@ -2986,17 +3001,17 @@ const BulkActionsGridButton = (props) => {
|
|
|
2986
3001
|
}
|
|
2987
3002
|
}, bulkActions && bulkActions.map((action) => {
|
|
2988
3003
|
const valid = filterAction(action);
|
|
2989
|
-
return /* @__PURE__ */ React
|
|
3004
|
+
return /* @__PURE__ */ React.createElement(Tooltip, {
|
|
2990
3005
|
placement: "right",
|
|
2991
3006
|
title: !valid ? "Action entity does not match data grid entity" : ""
|
|
2992
|
-
}, /* @__PURE__ */ React
|
|
3007
|
+
}, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(MenuItem, {
|
|
2993
3008
|
onClick: () => triggerBulkAction(action.actionId),
|
|
2994
3009
|
style: {
|
|
2995
3010
|
display: "flex",
|
|
2996
3011
|
justifyContent: "space-between"
|
|
2997
3012
|
},
|
|
2998
3013
|
disabled: !valid
|
|
2999
|
-
}, /* @__PURE__ */ React
|
|
3014
|
+
}, /* @__PURE__ */ React.createElement(Typography, null, action.name), /* @__PURE__ */ React.createElement(FluentIcon, {
|
|
3000
3015
|
component: valid ? action.icon ?? AppIconDefaultIcon : ErrorIcon,
|
|
3001
3016
|
style: { marginLeft: 7 },
|
|
3002
3017
|
color: !valid && "red"
|
|
@@ -3321,7 +3336,7 @@ const AmbientGridTemplate = (props) => {
|
|
|
3321
3336
|
useEffect(() => {
|
|
3322
3337
|
if (additionalFilters) setAdditionalFilterChips(additionalFilters);
|
|
3323
3338
|
}, [additionalFilters]);
|
|
3324
|
-
return /* @__PURE__ */ React
|
|
3339
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, !hideHeader && useNewHeader && gApi && /* @__PURE__ */ React.createElement(GridPrimaryBar, {
|
|
3325
3340
|
title,
|
|
3326
3341
|
showFilter: setSideBarInvisible,
|
|
3327
3342
|
selected: isVisible,
|
|
@@ -3348,19 +3363,19 @@ const AmbientGridTemplate = (props) => {
|
|
|
3348
3363
|
hiddenLabels: hiddenLabels || [],
|
|
3349
3364
|
background: headerBackgroundColor,
|
|
3350
3365
|
onSearchKeyDown
|
|
3351
|
-
}), useNewHeader && (kpiValues?.length > 0 || filterChips?.length > 0 || filters?.length > 0 || viewChips?.length > 0 || additionalFilterChips?.length > 0) && /* @__PURE__ */ React
|
|
3366
|
+
}), useNewHeader && (kpiValues?.length > 0 || filterChips?.length > 0 || filters?.length > 0 || viewChips?.length > 0 || additionalFilterChips?.length > 0) && /* @__PURE__ */ React.createElement("div", { style: {
|
|
3352
3367
|
display: "flex",
|
|
3353
3368
|
flexDirection: "row",
|
|
3354
3369
|
height: 40
|
|
3355
|
-
} }, /* @__PURE__ */ React
|
|
3370
|
+
} }, /* @__PURE__ */ React.createElement(Grow, {
|
|
3356
3371
|
in: bulkActions && numSelectedRows > 0,
|
|
3357
3372
|
unmountOnExit: true
|
|
3358
|
-
}, /* @__PURE__ */ React
|
|
3373
|
+
}, /* @__PURE__ */ React.createElement(BulkActionsGridButton, {
|
|
3359
3374
|
bulkActions,
|
|
3360
3375
|
numSelectedRows,
|
|
3361
3376
|
triggerAction: handleTriggerAction,
|
|
3362
3377
|
domain
|
|
3363
|
-
})), /* @__PURE__ */ React
|
|
3378
|
+
})), /* @__PURE__ */ React.createElement(ChipSection, {
|
|
3364
3379
|
filterChips,
|
|
3365
3380
|
viewChips,
|
|
3366
3381
|
additionalFilterChips,
|
|
@@ -3369,7 +3384,7 @@ const AmbientGridTemplate = (props) => {
|
|
|
3369
3384
|
setAdditionalFilterChips,
|
|
3370
3385
|
setViewChips,
|
|
3371
3386
|
setFilter
|
|
3372
|
-
})), useNewHeader && gApi && gcApi && /* @__PURE__ */ React
|
|
3387
|
+
})), useNewHeader && gApi && gcApi && /* @__PURE__ */ React.createElement(GridViewsSideSheet_default, {
|
|
3373
3388
|
open: viewsOpen,
|
|
3374
3389
|
onClose: closeViews,
|
|
3375
3390
|
openSaveView,
|
|
@@ -3377,7 +3392,7 @@ const AmbientGridTemplate = (props) => {
|
|
|
3377
3392
|
setFilter: setView,
|
|
3378
3393
|
rowData: views,
|
|
3379
3394
|
setSelectedView
|
|
3380
|
-
}), !hideHeader && !useNewHeader && /* @__PURE__ */ React
|
|
3395
|
+
}), !hideHeader && !useNewHeader && /* @__PURE__ */ React.createElement(GridActionBar, {
|
|
3381
3396
|
title,
|
|
3382
3397
|
showFilter: setSideBarInvisible,
|
|
3383
3398
|
selected: isVisible,
|
|
@@ -3400,7 +3415,7 @@ const AmbientGridTemplate = (props) => {
|
|
|
3400
3415
|
hideGroupTab,
|
|
3401
3416
|
hideColumnTab,
|
|
3402
3417
|
hideSearchBar
|
|
3403
|
-
}, primaryActionButton && /* @__PURE__ */ React
|
|
3418
|
+
}, primaryActionButton && /* @__PURE__ */ React.createElement("div", { className: classes.pab }, primaryActionButton)), loading && /* @__PURE__ */ React.createElement(LinearProgress, null), /* @__PURE__ */ React.createElement("div", { style: { display: "flex" } }, /* @__PURE__ */ React.createElement("div", { style: { width: "100%" } }, /* @__PURE__ */ React.createElement(AgTable, {
|
|
3404
3419
|
...agGridOptions,
|
|
3405
3420
|
columnDefs,
|
|
3406
3421
|
dynamicSizing: !disableDynamicSizing,
|
|
@@ -3430,14 +3445,14 @@ const AmbientGridTemplate = (props) => {
|
|
|
3430
3445
|
rowSelection: !disableRowSelection && (bulkActions ? "multiple" : "single"),
|
|
3431
3446
|
hideHeader,
|
|
3432
3447
|
...otherGridProps
|
|
3433
|
-
})), showGroupOptions && /* @__PURE__ */ React
|
|
3448
|
+
})), showGroupOptions && /* @__PURE__ */ React.createElement("div", { className: classes.groupSideBar }, /* @__PURE__ */ React.createElement(GridGroupingSidebar, {
|
|
3434
3449
|
groupItem: (item) => groupGridItems(item),
|
|
3435
3450
|
closeClick: () => groupGridItems(""),
|
|
3436
3451
|
expandClick: expandGroupedGrid,
|
|
3437
3452
|
collapseClick: collapseGroupedGrid,
|
|
3438
3453
|
groupingData,
|
|
3439
3454
|
height
|
|
3440
|
-
})), !hiddenActionButtons?.includes("saveView") && /* @__PURE__ */ React
|
|
3455
|
+
})), !hiddenActionButtons?.includes("saveView") && /* @__PURE__ */ React.createElement(SaveViewFormDialog, {
|
|
3441
3456
|
open: saveViewOpen,
|
|
3442
3457
|
handleClose: closeSaveView,
|
|
3443
3458
|
application: applicationName,
|
|
@@ -3514,5 +3529,5 @@ AmbientGridTemplate.propTypes = {
|
|
|
3514
3529
|
};
|
|
3515
3530
|
|
|
3516
3531
|
//#endregion
|
|
3517
|
-
export { ActionContext, ActionDispatchContext, ActionLoadingDispatchContext, ActionsRenderer, AgTable, AgTableButtons, AmbientGridTemplate, AmbientTextField, AmbientToggleButton, AmbientTokenButton, DynamicContainerWithMenu, Ellipse, FilterOperators, FluentDialog, GridActionBar, GridGroupingHeader, GridGroupingSidebar, GridSidebarContainer, IconButtonWithTooltip, LicenseKey, SearchOperators, Token, clearGridState, deleteGridState, findTermByType, getCommonEntityName, getEllipseColor, getEntityAttributes, getFullyQualifiedName, getGridState, getPathObject, getPathParametersObj, getPrimaryKeyValues, getSanitizedName, getSuccessAction, isValueSelected, onFirstDataRendered, saveGridState, useActionState, useActionStore, useActions, useAgGridApi, useCatalogStore, useDynamicListCalculation, useExport, useGridClear, useGridFormat, useHandleAction, useInquiryStore, useQuickFilter };
|
|
3518
|
-
//# sourceMappingURL=AmbientGridTemplate-
|
|
3532
|
+
export { ActionContext, ActionDispatchContext, ActionLoadingDispatchContext, ActionsRenderer, AgTable, AgTableButtons, AmbientGridTemplate, AmbientTextField, AmbientToggleButton, AmbientTokenButton, DynamicContainerWithMenu, Ellipse, FilterOperators, FluentDialog, GridActionBar, GridGroupingHeader, GridGroupingSidebar, GridSidebarContainer, IconButtonWithTooltip, LicenseKey, SearchOperators, Token, clearGridState, deleteGridState, findTermByType, getCommonEntityName, getEllipseColor, getEntityAttributes, getFullyQualifiedName, getGridState, getPathObject, getPathParametersObj, getPrimaryKeyValues, getSanitizedName, getSuccessAction, isValueSelected, onFirstDataRendered, saveGridState, useActionState, useActionStore, useActions, useAgGridApi, useCatalogStore, useDynamicListCalculation, useExport, useGridClear, useGridFormat, useHandleAction, useInquiryStore, useQuickFilter, useSetInitialInquiryMenuVisibility };
|
|
3533
|
+
//# sourceMappingURL=AmbientGridTemplate-BqlMt5Su.js.map
|