@m4l/components 0.0.18 → 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.
@@ -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: "components/grid/assets/icons/move_first_place.svg"
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: "components/grid/assets/icons/move_up_place.svg"
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: "components/grid/assets/icons/move_last_place.svg"
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: "components/grid/assets/icons/move_down_place.svg"
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: "components/grid/assets/icons/check_all.svg"
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: "components/grid/assets/icons/uncheck_all.svg"
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: "components/grid/assets/icons/restore_columns.svg"
1291
+ src: `${host_static_assets}/${environment}/components/grid/assets/icons/restore_columns.svg`
1288
1292
  })]
1289
1293
  })]
1290
1294
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
3
  "private": false,
4
- "version": "0.0.18",
4
+ "version": "0.0.21",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -15,7 +15,8 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "react": "^17.0.0 || 18.x",
18
- "react-dom": "^18.0.0"
18
+ "react-dom": "^18.0.0",
19
+ "react-draggable": "^4.4.5"
19
20
  },
20
21
  "peerDependencies": {
21
22
  "@hookform/resolvers": "^2.9.5",
@@ -33,7 +34,8 @@
33
34
  "react-dnd-html5-backend": "^16.0.1",
34
35
  "react-dom": "^18.0.0",
35
36
  "react-hook-form": "^7.33.1",
36
- "react-router-dom": "^6.3.0"
37
+ "react-router-dom": "^6.3.0",
38
+ "react-draggable": "^4.4.5"
37
39
  },
38
40
  "devDependencies": {
39
41
  "@emotion/styled": "^11.9.3",
@@ -73,7 +75,6 @@
73
75
  "react-data-grid": "^7.0.0-beta.13",
74
76
  "react-dnd": "^16.0.1",
75
77
  "react-dnd-html5-backend": "^16.0.1",
76
- "react-draggable": "^4.4.5",
77
78
  "react-json-view": "^1.21.3",
78
79
  "react-lazy-load-image-component": "^1.5.4",
79
80
  "react-resizable": "^3.0.4",