@m4l/components 0.0.20 → 0.0.21
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/commonjs.js +1 -0
- package/dist/components/DataGrid/index.js +11 -7
- package/dist/components/ModalDialog/index.js +2 -2
- package/dist/index.js +2 -2
- package/dist/react-draggable.js +1435 -1
- package/dist/react-lazy-load-image-component.js +2 -2
- package/dist/react-resizable.js +2 -2
- package/package.json +3 -2
package/dist/commonjs.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "prop-types";
|
|
4
|
+
import "clsx";
|
|
4
5
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
5
6
|
function getDefaultExportFromCjs(x) {
|
|
6
7
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -1070,6 +1070,10 @@ const ColumnsConfig = forwardRef((props, ref) => {
|
|
|
1070
1070
|
const [rows, setRows] = useState(getRowsFromColumnsConfig(columnsConfig));
|
|
1071
1071
|
const [selRows, setSelRows] = useState(() => /* @__PURE__ */ new Set());
|
|
1072
1072
|
const divRef = useRef(null);
|
|
1073
|
+
const {
|
|
1074
|
+
host_static_assets,
|
|
1075
|
+
environment
|
|
1076
|
+
} = useEnvironment();
|
|
1073
1077
|
useImperativeHandle(ref, () => ({
|
|
1074
1078
|
onClickIntro: handleIntro,
|
|
1075
1079
|
current: divRef.current
|
|
@@ -1251,40 +1255,40 @@ const ColumnsConfig = forwardRef((props, ref) => {
|
|
|
1251
1255
|
onClick: handleMoveFirst,
|
|
1252
1256
|
"aria-label": "move first place",
|
|
1253
1257
|
disabled: rowSelectedIndex < 1,
|
|
1254
|
-
src:
|
|
1258
|
+
src: `${host_static_assets}/${environment}/components/grid/assets/icons/move_first_place.svg`
|
|
1255
1259
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
1256
1260
|
dictionaryTooltip: "grid.settings_move_up",
|
|
1257
1261
|
onClick: () => handleMoveUpDownd(-1),
|
|
1258
1262
|
"aria-label": "move up place",
|
|
1259
1263
|
disabled: rowSelectedIndex < 1,
|
|
1260
|
-
src:
|
|
1264
|
+
src: `${host_static_assets}/${environment}/components/grid/assets/icons/move_up_place.svg`
|
|
1261
1265
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
1262
1266
|
dictionaryTooltip: "grid.settings_move_last",
|
|
1263
1267
|
onClick: handleMoveLast,
|
|
1264
1268
|
"aria-label": "move last place",
|
|
1265
1269
|
disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
|
|
1266
|
-
src:
|
|
1270
|
+
src: `${host_static_assets}/${environment}/components/grid/assets/icons/move_last_place.svg`
|
|
1267
1271
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
1268
1272
|
dictionaryTooltip: "grid.settings_move_down",
|
|
1269
1273
|
onClick: () => handleMoveUpDownd(1),
|
|
1270
1274
|
"aria-label": "move down place",
|
|
1271
1275
|
disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
|
|
1272
|
-
src:
|
|
1276
|
+
src: `${host_static_assets}/${environment}/components/grid/assets/icons/move_down_place.svg`
|
|
1273
1277
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
1274
1278
|
dictionaryTooltip: "grid.settings_visible_all",
|
|
1275
1279
|
onClick: checkAll,
|
|
1276
1280
|
"aria-label": "check visible all",
|
|
1277
|
-
src:
|
|
1281
|
+
src: `${host_static_assets}/${environment}/components/grid/assets/icons/check_all.svg`
|
|
1278
1282
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
1279
1283
|
dictionaryTooltip: "grid.settings_no_visible_all",
|
|
1280
1284
|
onClick: unCheckAll,
|
|
1281
1285
|
"aria-label": "un check all",
|
|
1282
|
-
src:
|
|
1286
|
+
src: `${host_static_assets}/${environment}/components/grid/assets/icons/uncheck_all.svg`
|
|
1283
1287
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
1284
1288
|
dictionaryTooltip: "grid.settings_restore",
|
|
1285
1289
|
onClick: restoreAll,
|
|
1286
1290
|
"aria-label": "Restore columns",
|
|
1287
|
-
src:
|
|
1291
|
+
src: `${host_static_assets}/${environment}/components/grid/assets/icons/restore_columns.svg`
|
|
1288
1292
|
})]
|
|
1289
1293
|
})]
|
|
1290
1294
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dialog, IconButton, Paper } from "@mui/material";
|
|
2
|
-
import
|
|
2
|
+
import { D as Draggable } from "../../react-draggable.js";
|
|
3
3
|
import { u as useModal } from "../../hooks/useModal/index.js";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
5
|
import { R as Resizeable } from "../Resizeable/index.js";
|
|
@@ -89,7 +89,7 @@ const Header = (props) => {
|
|
|
89
89
|
});
|
|
90
90
|
};
|
|
91
91
|
const DragabblePaperComponent = (props) => {
|
|
92
|
-
return /* @__PURE__ */ jsx(
|
|
92
|
+
return /* @__PURE__ */ jsx(Draggable, {
|
|
93
93
|
handle: ".draggable-dialog-title",
|
|
94
94
|
cancel: '[class*="MuiDialogContent-root"]',
|
|
95
95
|
children: /* @__PURE__ */ jsx(Paper, {
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import "react-dnd";
|
|
|
24
24
|
import "react-dnd-html5-backend";
|
|
25
25
|
import "date-fns";
|
|
26
26
|
export { F as FormActions, d as defaultActionsDictionary, g as getActionnsComponentsDictionary } from "./components/FormActions/index.js";
|
|
27
|
-
import "react-draggable";
|
|
27
|
+
import "./react-draggable.js";
|
|
28
28
|
export { M as ModalDialog, d as defaultModalDialogDictionary, g as getModalDialogComponentsDictionary } from "./components/ModalDialog/index.js";
|
|
29
29
|
export { R as Resizeable } from "./components/Resizeable/index.js";
|
|
30
30
|
export { N as NoItemSelected, d as defaultNoItemSelectedDictionary, g as getNoItemSelectedComponentsDictionary } from "./components/NoItemSelected/index.js";
|
|
@@ -55,8 +55,8 @@ import "./node_modules.js";
|
|
|
55
55
|
import "react-dom";
|
|
56
56
|
import "./react-data-grid.js";
|
|
57
57
|
import "clsx";
|
|
58
|
-
import "./react-resizable.js";
|
|
59
58
|
import "prop-types";
|
|
59
|
+
import "./react-resizable.js";
|
|
60
60
|
import "./commonjs.js";
|
|
61
61
|
import "./simplebar.js";
|
|
62
62
|
import "./core-js.js";
|