@jield/solodb-react-components 1.0.17 → 1.0.19

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.
@@ -5,4 +5,4 @@ export default function StepDetails({ run, step, stepParts, parts, refetchFn, }:
5
5
  stepParts: RunStepPart[];
6
6
  parts: RunPart[];
7
7
  refetchFn?: (keys: any[]) => void;
8
- }): import("react/jsx-runtime").JSX.Element;
8
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,7 @@
1
+ import { RunStep, RunPart, RunStepPart, Run } from '@jield/solodb-typescript-core';
2
+ export declare const PartsBadgesTrayed: ({ step, parts, stepParts, run, }: {
3
+ step: RunStep;
4
+ parts: RunPart[];
5
+ stepParts: RunStepPart[];
6
+ run: Run;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,11 @@
1
1
  import { RunPart, RunStepPart, RunStep } from '@jield/solodb-typescript-core';
2
- declare const RunStepPartProductionTableRow: ({ runPart, runStepParts, runStep, refetchFn, partIsSelected, setPartAsSelected, }: {
2
+ declare const RunStepPartProductionTableRow: ({ runPart, runStepParts, runStep, refetchFn, partIsSelected, setPartAsSelected, dropdown, }: {
3
3
  runPart: RunPart;
4
4
  runStepParts: RunStepPart[];
5
5
  runStep: RunStep;
6
6
  refetchFn?: () => void;
7
7
  partIsSelected?: boolean;
8
8
  setPartAsSelected?: (partID: number) => void;
9
+ dropdown?: boolean;
9
10
  }) => import("react/jsx-runtime").JSX.Element;
10
11
  export default RunStepPartProductionTableRow;
@@ -8,7 +8,8 @@ type Props = {
8
8
  refetchFn?: () => void;
9
9
  toggleRunPartRef?: React.RefObject<{
10
10
  setPart: (part: number) => void;
11
+ setPartByLabel: (label: string) => void;
11
12
  } | null>;
12
13
  };
13
- declare const RunPartsQrFlow: ({ run, runStep, runStepParts, runParts, refetchFn, toggleRunPartRef, }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ declare const RunPartsQrFlow: ({ run, runStep, runStepParts, runParts, refetchFn, toggleRunPartRef }: Props) => import("react/jsx-runtime").JSX.Element;
14
15
  export default RunPartsQrFlow;
@@ -1,7 +1,8 @@
1
1
  import { Run } from '@jield/solodb-typescript-core';
2
- export default function NavigateInRunWithQrScanner({ runsList, setRun, setRunStepPartId, setRunPartId, }: {
2
+ export default function NavigateInRunWithQrScanner({ runsList, setRun, setRunStepPartId, setRunPartId, setRunPartLabel, }: {
3
3
  runsList: Run[];
4
4
  setRun: (run: Run) => void;
5
5
  setRunStepPartId?: (stepPart: number) => void;
6
6
  setRunPartId?: (part: number) => void;
7
+ setRunPartLabel?: (label: string) => void;
7
8
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,12 @@
1
1
  import { Run, RunStep } from '@jield/solodb-typescript-core';
2
2
  import { default as React } from 'react';
3
- export default function RunStepExecuteMinimal({ run, runStep, showOnlyEmphasizedParameters, reloadRunStepFn, toggleRunStepPartRef, toggleRunPartRef, }: {
3
+ export default function RunStepExecuteMinimal({ run, runStep, showOnlyEmphasizedParameters, reloadRunStepFn, toggleRunPartRef, }: {
4
4
  run: Run;
5
5
  runStep: RunStep;
6
6
  showOnlyEmphasizedParameters: boolean;
7
7
  reloadRunStepFn: () => void;
8
- toggleRunStepPartRef?: React.RefObject<{
9
- setPart: (part: number) => void;
10
- } | null>;
11
8
  toggleRunPartRef?: React.RefObject<{
12
9
  setPart: (part: number) => void;
10
+ setPartByLabel: (label: string) => void;
13
11
  } | null>;
14
12
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,9 @@
1
1
  export interface UsePartSelectionOptions<T> {
2
2
  parts: T[];
3
3
  getPartId: (part: T) => number;
4
- toggleRef?: React.RefObject<{
4
+ toggleRef?: React.Ref<{
5
5
  setPart: (part: number) => void;
6
+ setPartByLabel?: (label: string) => void;
6
7
  } | null>;
7
8
  }
8
9
  export interface UsePartSelectionResult {
@@ -1 +1 @@
1
- .equipment_container{padding:10px;border:5px solid black;margin:10px}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:400px;padding:20px}.loading-spinner{width:40px;height:40px;border:4px solid rgba(0,0,0,.1);border-radius:50%;border-top:4px solid #0d6efd;animation:spin 1s linear infinite;margin-bottom:10px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
1
+ .equipment_container{padding:10px;border:5px solid black;margin:10px}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:400px;padding:20px}.loading-spinner{width:40px;height:40px;border:4px solid rgba(0,0,0,.1);border-radius:50%;border-top:4px solid #0d6efd;animation:spin 1s linear infinite;margin-bottom:10px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tray-grid-group{display:flex;flex-wrap:wrap;gap:12px}.tray-grid-wrapper{display:flex;flex-direction:column;gap:6px}.tray-grid__label{font-size:.85rem;font-weight:600;color:#6c757d}.tray-grid{--tray-columns: 1;--tray-rows: 1;--tray-gap: 6px;--tray-padding: 8px;--tray-cell-min-height: 30px;--tray-border-color: #dee2e6;--tray-bg: #f8f9fa;--tray-cell-radius: 6px;display:grid;grid-template-columns:repeat(var(--tray-columns),minmax(0,1fr));grid-template-rows:repeat(var(--tray-rows),minmax(var(--tray-cell-min-height),auto));gap:var(--tray-gap);padding:var(--tray-padding);background:var(--tray-bg);border-radius:8px}.tray-grid[data-orientation=ttb]{grid-auto-flow:column}.tray-grid__cell{display:flex;align-items:center;justify-content:center;min-height:var(--tray-cell-min-height);background:transparent;border:none;border-radius:var(--tray-cell-radius);font-size:.75rem;color:#212529;text-align:center;padding:2px 4px}.tray-grid__cell--empty{background:transparent}.tray-grid__cell--inactive{background:#e9ecef}.tray-grid__cell--idle{background:#adb5bd}.tray-grid__cell--started{background:#90ffea}.tray-grid__cell--processed{background:#9be7b3}.tray-grid__cell--failed{background:#f4a1a1}.tray-grid__cell-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jield/solodb-react-components",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "type": "module",
5
5
  "repository": "jield-webdev/solodb-react-components",
6
6
  "main": "./dist/index.cjs",
@@ -27,19 +27,19 @@
27
27
  "coverage": "vitest run --coverage"
28
28
  },
29
29
  "dependencies": {
30
- "@jield/solodb-typescript-core": "^1.0.8",
30
+ "@jield/solodb-typescript-core": "^1.0.15",
31
31
  "@testing-library/dom": "^10.4.1",
32
32
  "moment": "^2.30.1",
33
33
  "moment-timezone": "^0.6.0",
34
34
  "qrcode.react": "^4.2.0",
35
35
  "react-bootstrap": "^2.10.10",
36
- "react-dropzone": "^14.3.8",
36
+ "react-dropzone": "^14.4.1",
37
37
  "react-google-charts": "^5.2.1",
38
- "react-hook-form": "^7.71.1",
39
- "react-intersection-observer": "^10.0.2",
38
+ "react-hook-form": "^7.71.2",
39
+ "react-intersection-observer": "^10.0.3",
40
40
  "react-markdown": "^10.1.0",
41
41
  "react-select": "^5.10.2",
42
- "yet-another-react-lightbox": "^3.28.0"
42
+ "yet-another-react-lightbox": "^3.29.1"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@tanstack/react-query": "^5.90",
@@ -51,29 +51,29 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@originjs/vite-plugin-commonjs": "^1.0.3",
54
- "@tanstack/react-query": "~5.90.19",
55
- "@tanstack/react-query-devtools": "~5.91.2",
54
+ "@tanstack/react-query": "~5.90.21",
55
+ "@tanstack/react-query-devtools": "~5.91.3",
56
56
  "@tanstack/react-table": "^8.21.3",
57
57
  "@testing-library/jest-dom": "^6.9.1",
58
58
  "@testing-library/react": "^16.3.2",
59
59
  "@testing-library/user-event": "^14.6.1",
60
- "@types/node": "^25.0.9",
61
- "@types/react": "^19.2.8",
60
+ "@types/node": "^25.4.0",
61
+ "@types/react": "^19.2.14",
62
62
  "@types/react-dom": "^19.2.3",
63
63
  "@types/react-router-dom": "^5.3.3",
64
- "@vitejs/plugin-react": "^5.1.2",
65
- "@vitest/coverage-v8": "^4.0.17",
66
- "axios": "^1.13.2",
67
- "jsdom": "^27.4.0",
68
- "prettier": "^3.8.0",
64
+ "@vitejs/plugin-react": "^5.1.4",
65
+ "@vitest/coverage-v8": "^4.0.18",
66
+ "axios": "^1.13.6",
67
+ "jsdom": "^28.1.0",
68
+ "prettier": "^3.8.1",
69
69
  "prop-types": "^15.8.1",
70
- "react": "^19.2.3",
71
- "react-dom": "^19.2.3",
72
- "react-router-dom": "^7.12.0",
70
+ "react": "^19.2.4",
71
+ "react-dom": "^19.2.4",
72
+ "react-router-dom": "^7.13.1",
73
73
  "typescript": "^5.9.3",
74
74
  "vite": "^7.3.1",
75
75
  "vite-plugin-dts": "^4.5.4",
76
- "vitest": "^4.0.17"
76
+ "vitest": "^4.0.18"
77
77
  },
78
- "packageManager": "yarn@4.12.0"
78
+ "packageManager": "yarn@4.13.0"
79
79
  }