@nice2dev/ui-erp 1.1.5 → 1.1.7

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/index.cjs CHANGED
@@ -237,11 +237,23 @@ const NiceResourceAllocation = ({
237
237
  ] }),
238
238
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "allocation__legend", children: [
239
239
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "legend-item", children: [
240
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "legend-color", style: { backgroundColor: "var(--nice-success-tint-20, rgba(34, 197, 94, 0.2))" } }),
240
+ /* @__PURE__ */ jsxRuntime.jsx(
241
+ "span",
242
+ {
243
+ className: "legend-color",
244
+ style: { backgroundColor: "var(--nice-success-tint-20, rgba(34, 197, 94, 0.2))" }
245
+ }
246
+ ),
241
247
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Allocated" })
242
248
  ] }),
243
249
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "legend-item", children: [
244
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "legend-color", style: { backgroundColor: "var(--nice-warning-tint-30, rgba(245, 158, 11, 0.3))" } }),
250
+ /* @__PURE__ */ jsxRuntime.jsx(
251
+ "span",
252
+ {
253
+ className: "legend-color",
254
+ style: { backgroundColor: "var(--nice-warning-tint-30, rgba(245, 158, 11, 0.3))" }
255
+ }
256
+ ),
245
257
  /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
246
258
  "High Utilization (",
247
259
  ">",
@@ -251,7 +263,13 @@ const NiceResourceAllocation = ({
251
263
  ] })
252
264
  ] }),
253
265
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "legend-item", children: [
254
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "legend-color", style: { backgroundColor: "var(--nice-danger-tint-40, rgba(239, 68, 68, 0.4))" } }),
266
+ /* @__PURE__ */ jsxRuntime.jsx(
267
+ "span",
268
+ {
269
+ className: "legend-color",
270
+ style: { backgroundColor: "var(--nice-danger-tint-40, rgba(239, 68, 68, 0.4))" }
271
+ }
272
+ ),
255
273
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Overallocated" })
256
274
  ] })
257
275
  ] }),
@@ -2221,4 +2239,3 @@ exports.NiceVatTable = NiceVatTable;
2221
2239
  exports.NiceWarehouseView = NiceWarehouseView;
2222
2240
  exports.buildJpkXml = defaultBuildXml;
2223
2241
  exports.useMockErpApi = useMockErpApi;
2224
- //# sourceMappingURL=index.cjs.map
package/dist/index.mjs CHANGED
@@ -235,11 +235,23 @@ const NiceResourceAllocation = ({
235
235
  ] }),
236
236
  /* @__PURE__ */ jsxs("div", { className: "allocation__legend", children: [
237
237
  /* @__PURE__ */ jsxs("div", { className: "legend-item", children: [
238
- /* @__PURE__ */ jsx("span", { className: "legend-color", style: { backgroundColor: "var(--nice-success-tint-20, rgba(34, 197, 94, 0.2))" } }),
238
+ /* @__PURE__ */ jsx(
239
+ "span",
240
+ {
241
+ className: "legend-color",
242
+ style: { backgroundColor: "var(--nice-success-tint-20, rgba(34, 197, 94, 0.2))" }
243
+ }
244
+ ),
239
245
  /* @__PURE__ */ jsx("span", { children: "Allocated" })
240
246
  ] }),
241
247
  /* @__PURE__ */ jsxs("div", { className: "legend-item", children: [
242
- /* @__PURE__ */ jsx("span", { className: "legend-color", style: { backgroundColor: "var(--nice-warning-tint-30, rgba(245, 158, 11, 0.3))" } }),
248
+ /* @__PURE__ */ jsx(
249
+ "span",
250
+ {
251
+ className: "legend-color",
252
+ style: { backgroundColor: "var(--nice-warning-tint-30, rgba(245, 158, 11, 0.3))" }
253
+ }
254
+ ),
243
255
  /* @__PURE__ */ jsxs("span", { children: [
244
256
  "High Utilization (",
245
257
  ">",
@@ -249,7 +261,13 @@ const NiceResourceAllocation = ({
249
261
  ] })
250
262
  ] }),
251
263
  /* @__PURE__ */ jsxs("div", { className: "legend-item", children: [
252
- /* @__PURE__ */ jsx("span", { className: "legend-color", style: { backgroundColor: "var(--nice-danger-tint-40, rgba(239, 68, 68, 0.4))" } }),
264
+ /* @__PURE__ */ jsx(
265
+ "span",
266
+ {
267
+ className: "legend-color",
268
+ style: { backgroundColor: "var(--nice-danger-tint-40, rgba(239, 68, 68, 0.4))" }
269
+ }
270
+ ),
253
271
  /* @__PURE__ */ jsx("span", { children: "Overallocated" })
254
272
  ] })
255
273
  ] }),
@@ -2221,4 +2239,3 @@ export {
2221
2239
  defaultBuildXml as buildJpkXml,
2222
2240
  useMockErpApi
2223
2241
  };
2224
- //# sourceMappingURL=index.mjs.map
package/dist/ui-erp.css CHANGED
@@ -38,7 +38,10 @@
38
38
  min-height: 500px;
39
39
  background: var(--erp-bg);
40
40
  color: var(--erp-text);
41
- font-family: system-ui, -apple-system, sans-serif;
41
+ font-family:
42
+ system-ui,
43
+ -apple-system,
44
+ sans-serif;
42
45
  }
43
46
 
44
47
  .gantt__toolbar {
@@ -130,9 +133,17 @@
130
133
  color: var(--erp-text-muted);
131
134
  }
132
135
 
133
- .col-name { flex: 1; }
134
- .col-dates { width: 100px; text-align: center; }
135
- .col-progress { width: 60px; text-align: right; }
136
+ .col-name {
137
+ flex: 1;
138
+ }
139
+ .col-dates {
140
+ width: 100px;
141
+ text-align: center;
142
+ }
143
+ .col-progress {
144
+ width: 60px;
145
+ text-align: right;
146
+ }
136
147
 
137
148
  .task-list__body {
138
149
  flex: 1;
@@ -329,8 +340,12 @@
329
340
  cursor: ew-resize;
330
341
  }
331
342
 
332
- .resize-handle--start { left: 0; }
333
- .resize-handle--end { right: 0; }
343
+ .resize-handle--start {
344
+ left: 0;
345
+ }
346
+ .resize-handle--end {
347
+ right: 0;
348
+ }
334
349
 
335
350
  .task-bar-label {
336
351
  position: absolute;
@@ -386,7 +401,10 @@
386
401
  min-height: 500px;
387
402
  background: var(--erp-bg);
388
403
  color: var(--erp-text);
389
- font-family: system-ui, -apple-system, sans-serif;
404
+ font-family:
405
+ system-ui,
406
+ -apple-system,
407
+ sans-serif;
390
408
  }
391
409
 
392
410
  .allocation__toolbar {
@@ -666,7 +684,10 @@
666
684
  min-height: 500px;
667
685
  background: var(--erp-bg);
668
686
  color: var(--erp-text);
669
- font-family: system-ui, -apple-system, sans-serif;
687
+ font-family:
688
+ system-ui,
689
+ -apple-system,
690
+ sans-serif;
670
691
  }
671
692
 
672
693
  .inventory__toolbar {
@@ -1357,11 +1378,11 @@
1357
1378
  .gantt__task-list {
1358
1379
  width: 280px;
1359
1380
  }
1360
-
1381
+
1361
1382
  .resource-cell {
1362
1383
  width: 220px;
1363
1384
  }
1364
-
1385
+
1365
1386
  .expanded-allocations {
1366
1387
  padding-left: 228px;
1367
1388
  }
@@ -1371,31 +1392,31 @@
1371
1392
  .gantt__container {
1372
1393
  flex-direction: column;
1373
1394
  }
1374
-
1395
+
1375
1396
  .gantt__task-list {
1376
1397
  width: 100%;
1377
1398
  max-height: 200px;
1378
1399
  border-right: none;
1379
1400
  border-bottom: 1px solid var(--erp-border);
1380
1401
  }
1381
-
1402
+
1382
1403
  .resource-row {
1383
1404
  flex-direction: column;
1384
1405
  }
1385
-
1406
+
1386
1407
  .resource-cell {
1387
1408
  width: 100%;
1388
1409
  }
1389
-
1410
+
1390
1411
  .time-cells {
1391
1412
  width: 100%;
1392
1413
  overflow-x: auto;
1393
1414
  }
1394
-
1415
+
1395
1416
  .items-grid {
1396
1417
  grid-template-columns: 1fr;
1397
1418
  }
1398
-
1419
+
1399
1420
  .toolbar__left,
1400
1421
  .toolbar__right {
1401
1422
  width: 100%;
@@ -1449,7 +1470,9 @@
1449
1470
  margin-right: var(--nice-space-1, 4px);
1450
1471
  }
1451
1472
 
1452
- .nice-warehouse-view__legend > span:first-of-type { margin-left: 0; }
1473
+ .nice-warehouse-view__legend > span:first-of-type {
1474
+ margin-left: 0;
1475
+ }
1453
1476
 
1454
1477
  .nice-warehouse-view__grid {
1455
1478
  display: flex;
@@ -1508,4 +1531,4 @@
1508
1531
  .nice-warehouse-view__details ul {
1509
1532
  margin: var(--nice-space-2, 8px) 0 0;
1510
1533
  padding-left: var(--nice-space-4, 16px);
1511
- }
1534
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/ui-erp",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Enterprise Resource Planning components for Nice2Dev",
5
5
  "author": "Nice2Dev Team",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  "import": "./dist/index.mjs",
29
29
  "require": "./dist/index.cjs"
30
30
  },
31
- "./style.css": "./dist/style.css"
31
+ "./style.css": "./dist/ui-erp.css"
32
32
  },
33
33
  "files": [
34
34
  "dist"
@@ -50,7 +50,7 @@
50
50
  "react-dom": ">=17.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@nice2dev/ui-core": "^1.1.5",
53
+ "@nice2dev/ui-core": "^1.1.7",
54
54
  "@testing-library/react": "^16.3.3",
55
55
  "@types/react": "^19.2.18",
56
56
  "@types/react-dom": "^19.2.7",