@gridsuite/commons-ui 0.93.1 → 0.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/checkBoxList/CheckBoxList.d.ts +1 -1
- package/dist/components/checkBoxList/CheckBoxList.js +3 -11
- package/dist/components/checkBoxList/CheckBoxListItem.d.ts +1 -1
- package/dist/components/checkBoxList/CheckBoxListItem.js +47 -14
- package/dist/components/checkBoxList/CheckBoxListItemContent.d.ts +2 -0
- package/dist/components/checkBoxList/CheckBoxListItemContent.js +45 -0
- package/dist/components/checkBoxList/CheckBoxListItems.d.ts +1 -1
- package/dist/components/checkBoxList/CheckBoxListItems.js +24 -20
- package/dist/components/checkBoxList/DraggableCheckBoxListItem.d.ts +1 -1
- package/dist/components/checkBoxList/DraggableCheckBoxListItem.js +46 -17
- package/dist/components/checkBoxList/DraggableCheckBoxListItemContent.d.ts +2 -0
- package/dist/components/checkBoxList/DraggableCheckBoxListItemContent.js +38 -0
- package/dist/components/checkBoxList/checkBoxList.type.d.ts +9 -11
- package/dist/components/customAGGrid/customAggrid.d.ts +11 -8
- package/dist/components/customAGGrid/customAggrid.js +51 -48
- package/dist/components/customAGGrid/customAggrid.style.d.ts +0 -5
- package/dist/components/customAGGrid/customAggrid.style.js +1 -7
- package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +0 -2
- package/dist/components/filter/HeaderFilterForm.js +0 -2
- package/dist/components/inputs/reactHookForm/agGridTable/CustomAgGridTable.d.ts +4 -11
- package/dist/components/inputs/reactHookForm/agGridTable/CustomAgGridTable.js +0 -23
- package/dist/components/topBar/TopBar.d.ts +3 -5
- package/dist/components/topBar/TopBar.js +2 -1
- package/dist/components/treeViewFinder/TreeViewFinder.d.ts +3 -3
- package/dist/components/treeViewFinder/TreeViewFinder.js +46 -32
- package/dist/hooks/useLocalizedCountries.js +1 -1
- package/dist/index.js +2 -2
- package/dist/utils/constants/index.d.ts +0 -1
- package/dist/utils/constants/index.js +0 -6
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +2 -2
- package/dist/utils/langs.d.ts +5 -0
- package/dist/utils/{constants/browserConstants.js → langs.js} +1 -5
- package/dist/utils/styles.d.ts +3 -0
- package/dist/utils/styles.js +4 -0
- package/dist/utils/types/equipmentType.js +1 -1
- package/package.json +3 -2
- package/dist/components/checkBoxList/ClickableCheckBoxItem.d.ts +0 -2
- package/dist/components/checkBoxList/ClickableCheckBoxItem.js +0 -12
- package/dist/components/checkBoxList/ClickableRowItem.d.ts +0 -2
- package/dist/components/checkBoxList/ClickableRowItem.js +0 -51
- package/dist/components/checkBoxList/DraggableClickableCheckBoxItem.d.ts +0 -2
- package/dist/components/checkBoxList/DraggableClickableCheckBoxItem.js +0 -50
- package/dist/components/checkBoxList/DraggableClickableRowItem.d.ts +0 -2
- package/dist/components/checkBoxList/DraggableClickableRowItem.js +0 -77
- package/dist/utils/constants/browserConstants.d.ts +0 -11
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { DragIndicator } from "@mui/icons-material";
|
|
3
|
-
import { ListItemButton, IconButton, ListItemIcon, Checkbox, ListItemText } from "@mui/material";
|
|
4
|
-
import { OverflowableText } from "../overflowableText/OverflowableText.js";
|
|
5
|
-
import "../../utils/conversionUtils.js";
|
|
6
|
-
import { mergeSx } from "../../utils/styles.js";
|
|
7
|
-
import "../../utils/types/equipmentType.js";
|
|
8
|
-
import "../../utils/yupConfig.js";
|
|
9
|
-
const styles = {
|
|
10
|
-
dragIcon: (theme) => ({
|
|
11
|
-
padding: "unset",
|
|
12
|
-
border: theme.spacing(0),
|
|
13
|
-
borderRadius: theme.spacing(0),
|
|
14
|
-
zIndex: 90
|
|
15
|
-
}),
|
|
16
|
-
unclickableItem: {
|
|
17
|
-
"&:hover": {
|
|
18
|
-
backgroundColor: "transparent"
|
|
19
|
-
},
|
|
20
|
-
cursor: "inherit"
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
function DraggableClickableRowItem({
|
|
24
|
-
sx,
|
|
25
|
-
disabled,
|
|
26
|
-
onClick,
|
|
27
|
-
provided,
|
|
28
|
-
isHighlighted,
|
|
29
|
-
label,
|
|
30
|
-
onItemClick,
|
|
31
|
-
isItemClickable = true,
|
|
32
|
-
...props
|
|
33
|
-
}) {
|
|
34
|
-
const onCheckboxClick = (event) => {
|
|
35
|
-
event.stopPropagation();
|
|
36
|
-
onClick();
|
|
37
|
-
};
|
|
38
|
-
const handleItemClick = () => isItemClickable && onItemClick();
|
|
39
|
-
return /* @__PURE__ */ jsxs(
|
|
40
|
-
ListItemButton,
|
|
41
|
-
{
|
|
42
|
-
disableTouchRipple: !isItemClickable,
|
|
43
|
-
sx: mergeSx({ paddingLeft: 0 }, sx == null ? void 0 : sx.checkboxButton, !isItemClickable ? styles.unclickableItem : void 0),
|
|
44
|
-
disabled,
|
|
45
|
-
onClick: handleItemClick,
|
|
46
|
-
children: [
|
|
47
|
-
/* @__PURE__ */ jsx(
|
|
48
|
-
IconButton,
|
|
49
|
-
{
|
|
50
|
-
...provided.dragHandleProps,
|
|
51
|
-
size: "small",
|
|
52
|
-
sx: {
|
|
53
|
-
opacity: isHighlighted ? "1" : "0",
|
|
54
|
-
padding: "unset",
|
|
55
|
-
...styles.dragIcon
|
|
56
|
-
},
|
|
57
|
-
children: /* @__PURE__ */ jsx(DragIndicator, { spacing: 0 })
|
|
58
|
-
}
|
|
59
|
-
),
|
|
60
|
-
/* @__PURE__ */ jsx(ListItemIcon, { sx: { minWidth: 0, ...sx == null ? void 0 : sx.checkBoxIcon }, children: /* @__PURE__ */ jsx(Checkbox, { disableRipple: true, sx: { paddingLeft: 0, ...sx == null ? void 0 : sx.checkbox }, onClick: onCheckboxClick, ...props }) }),
|
|
61
|
-
/* @__PURE__ */ jsx(
|
|
62
|
-
ListItemText,
|
|
63
|
-
{
|
|
64
|
-
sx: {
|
|
65
|
-
display: "flex"
|
|
66
|
-
},
|
|
67
|
-
disableTypography: true,
|
|
68
|
-
children: /* @__PURE__ */ jsx(OverflowableText, { sx: sx == null ? void 0 : sx.label, text: label })
|
|
69
|
-
}
|
|
70
|
-
)
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
export {
|
|
76
|
-
DraggableClickableRowItem
|
|
77
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2024, RTE (http://www.rte-france.com)
|
|
3
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
-
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
-
*/
|
|
7
|
-
export declare const DARK_THEME = "Dark";
|
|
8
|
-
export declare const LIGHT_THEME = "Light";
|
|
9
|
-
export declare const LANG_SYSTEM = "sys";
|
|
10
|
-
export declare const LANG_ENGLISH = "en";
|
|
11
|
-
export declare const LANG_FRENCH = "fr";
|