@jield/solodb-react-components 1.1.3 → 1.1.5
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 +24 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7578 -7096
- package/dist/index.js.map +1 -1
- package/dist/solodb-react-components.css +1 -1
- package/dist/src/index.d.ts +3 -3
- package/dist/src/modules/chemical/components/chemical/registerBarcodeElement.d.ts +2 -16
- package/dist/src/modules/chemical/utils/chemicalContainerUtils.d.ts +7 -0
- package/dist/src/modules/core/config/runtimeConfig.d.ts +1 -0
- package/dist/src/modules/core/contexts/{scanner/ScannerContext.d.ts → scannerContext.d.ts} +2 -2
- package/dist/src/modules/core/utils/parseScannerType.d.ts +8 -0
- package/dist/src/modules/run/components/run/information/elements/runInformationGrid.d.ts +1 -0
- package/dist/src/modules/run/components/run/information/elements/runUploadFiles.d.ts +1 -0
- package/dist/src/modules/run/components/shared/parts/runPartIndicator.d.ts +3 -3
- package/dist/src/modules/run/components/shared/parts/runPartList.d.ts +1 -1
- package/dist/src/utils/keySequenceListener.d.ts +1 -7
- package/package.json +13 -13
- package/dist/src/modules/run/utils/parseScannerForRun.d.ts +0 -6
- /package/dist/src/modules/core/{contexts/scanner/ScannerProvider.d.ts → providers/scannerProvider.d.ts} +0 -0
- /package/dist/src/modules/core/{functions → utils}/getServerUri.d.ts +0 -0
- /package/dist/src/modules/run/components/run/{steps → information}/runInformationElement.d.ts +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.equipment_container{border:5px solid #000;margin:10px;padding:10px}.loading-container{flex-direction:column;justify-content:center;align-items:center;height:100%;min-height:400px;padding:20px;display:flex}.loading-spinner{border:4px solid #0000001a;border-top-color:#0d6efd;border-radius:50%;width:40px;height:40px;margin-bottom:10px;animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tray-grid-group{flex-flow:row;align-items:flex-start;gap:20px;padding-bottom:4px;display:flex;overflow-x:auto}.tray-grid-wrapper{flex-direction:column;flex:none;gap:10px;display:flex}.tray-grid__label{color:#f1f3f5;text-align:center;letter-spacing:.2px;background:#33383e;border-radius:10px;padding:8px 12px;font-size:.85rem}.tray-grid{--tray-columns:1;--tray-rows:1;--tray-gap:10px;--tray-padding:0px;--tray-cell-size:25px;--tray-cell-radius:5px;grid-template-columns:repeat(var(--tray-columns), minmax(var(--tray-cell-size), 1fr));grid-template-rows:repeat(var(--tray-rows), minmax(var(--tray-cell-size), 1fr));gap:var(--tray-gap);padding:var(--tray-padding);background:0 0;border-radius:12px;display:grid}.tray-grid[data-orientation=ttb]{grid-auto-flow:column}.tray-grid__cell{min-height:var(--tray-cell-size);min-width:var(--tray-cell-size);border-radius:var(--tray-cell-radius);color:#f8f9fa;text-align:center;background:0 0;border:none;justify-content:center;align-items:center;padding:0;font-size:.85rem;display:flex}.tray-grid__cell--multi{flex-direction:column;justify-content:center;gap:4px}.tray-grid__cell--empty{background:0 0}.tray-grid__cell--inactive{background:#3b4148}.tray-grid__cell-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tray-grid__badge{width:100%;min-height:var(--tray-cell-size);min-width:var(--tray-cell-size);border-radius:var(--tray-cell-radius);color:#f8f9fa;text-align:center;justify-content:center;align-items:center;padding:0 6px;line-height:1;display:inline-flex}.tray-grid__badge--init{text-transform:none;color:#f8f9fa;background:#3b4148;border-color:#3b4148;font-size:.75rem}.step-part-
|
|
1
|
+
.equipment_container{border:5px solid #000;margin:10px;padding:10px}.loading-container{flex-direction:column;justify-content:center;align-items:center;height:100%;min-height:400px;padding:20px;display:flex}.loading-spinner{border:4px solid #0000001a;border-top-color:#0d6efd;border-radius:50%;width:40px;height:40px;margin-bottom:10px;animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tray-grid-group{flex-flow:row;align-items:flex-start;gap:20px;padding-bottom:4px;display:flex;overflow-x:auto}.tray-grid-wrapper{flex-direction:column;flex:none;gap:10px;display:flex}.tray-grid__label{color:#f1f3f5;text-align:center;letter-spacing:.2px;background:#33383e;border-radius:10px;padding:8px 12px;font-size:.85rem}.tray-grid{--tray-columns:1;--tray-rows:1;--tray-gap:10px;--tray-padding:0px;--tray-cell-size:25px;--tray-cell-radius:5px;grid-template-columns:repeat(var(--tray-columns), minmax(var(--tray-cell-size), 1fr));grid-template-rows:repeat(var(--tray-rows), minmax(var(--tray-cell-size), 1fr));gap:var(--tray-gap);padding:var(--tray-padding);background:0 0;border-radius:12px;display:grid}.tray-grid[data-orientation=ttb]{grid-auto-flow:column}.tray-grid__cell{min-height:var(--tray-cell-size);min-width:var(--tray-cell-size);border-radius:var(--tray-cell-radius);color:#f8f9fa;text-align:center;background:0 0;border:none;justify-content:center;align-items:center;padding:0;font-size:.85rem;display:flex}.tray-grid__cell--multi{flex-direction:column;justify-content:center;gap:4px}.tray-grid__cell--empty{background:0 0}.tray-grid__cell--inactive{background:#3b4148}.tray-grid__cell-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tray-grid__badge{width:100%;min-height:var(--tray-cell-size);min-width:var(--tray-cell-size);border-radius:var(--tray-cell-radius);color:#f8f9fa;text-align:center;justify-content:center;align-items:center;padding:0 6px;line-height:1;display:inline-flex}.tray-grid__badge--init{text-transform:none;color:#f8f9fa;background:#3b4148;border-color:#3b4148;font-size:.75rem}.step-part-selected{box-shadow:0 0 0 2px #0d6efd59}
|
|
2
2
|
/*$vite$:1*/
|
package/dist/src/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export { default as MonitorHeaderElement } from '../modules/monitor/components/m
|
|
|
13
13
|
export { default as MonitorProvider } from '../modules/monitor/providers/monitorProvider';
|
|
14
14
|
export { default as RunHeaderElement } from '../modules/run/components/run/runHeaderElement';
|
|
15
15
|
export { default as RunStepsElement } from '../modules/run/components/run/steps/runStepsElement';
|
|
16
|
-
export { default as RunInformationElement } from '../modules/run/components/run/
|
|
16
|
+
export { default as RunInformationElement } from '../modules/run/components/run/information/runInformationElement';
|
|
17
17
|
export { default as RunStepHeaderElement } from '../modules/run/components/step/runStepHeaderElement';
|
|
18
18
|
export { default as RunStepExecuteElement } from '../modules/run/components/step/view/runStepExecuteElement';
|
|
19
19
|
export { default as StepDetails } from '../modules/run/components/run/steps/element/stepDetails';
|
|
@@ -38,8 +38,8 @@ export { MonitorContext } from '../modules/monitor/contexts/monitorContext';
|
|
|
38
38
|
export { RunContext } from '../modules/run/contexts/runContext';
|
|
39
39
|
export { RunStepContext } from '../modules/run/contexts/runStepContext';
|
|
40
40
|
export { EmphasizedParametersContext } from '../modules/run/contexts/emphasizedParametersContext';
|
|
41
|
-
export { ScannerContext, useScannerContext, } from '../modules/core/contexts/
|
|
42
|
-
export { ScannerProvider } from '../modules/core/
|
|
41
|
+
export { ScannerContext, useScannerContext, } from '../modules/core/contexts/scannerContext';
|
|
42
|
+
export { ScannerProvider } from '../modules/core/providers/scannerProvider';
|
|
43
43
|
export { useAuth } from '../modules/core/hooks/useAuth';
|
|
44
44
|
export { default as useSelectRunWithScanner } from '../modules/run/hooks/useSelectRunWithScanner';
|
|
45
45
|
export { initSolodbComponents } from '../modules/core/config/runtimeConfig';
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
import { Room, Location } from '@jield/solodb-typescript-core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @param {string} url - The URL to check
|
|
5
|
-
* @returns {boolean} - True if the URL ends with "/l/" followed by an integer, false otherwise
|
|
6
|
-
*/
|
|
7
|
-
export declare function scannedCodeIsLocationCode(url: string): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Extracts the label number if the URL ends with "/l/" followed by an integer
|
|
10
|
-
* @param {string} url - The URL to check
|
|
11
|
-
* @returns {number|null} - The extracted number or null if pattern doesn't match
|
|
12
|
-
*/
|
|
13
|
-
export declare function extractLabelNumber(url: string): number | null;
|
|
14
|
-
export declare const AMOUNT_UNITS: {
|
|
15
|
-
value: string;
|
|
16
|
-
label: string;
|
|
17
|
-
}[];
|
|
2
|
+
import { AMOUNT_UNITS, scannedCodeIsLocationCode, extractLabelNumber } from '../../../../../modules/chemical/utils/chemicalContainerUtils';
|
|
3
|
+
export { AMOUNT_UNITS, scannedCodeIsLocationCode, extractLabelNumber };
|
|
18
4
|
export default function RegisterBarcodeElement({ room, barcode, resetForm, location, setLocation, }: {
|
|
19
5
|
room: Room;
|
|
20
6
|
barcode: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function scannedCodeIsLocationCode(url: string): boolean;
|
|
2
|
+
export declare function extractLabelNumber(url: string): number | null;
|
|
3
|
+
export declare const AMOUNT_UNITS: {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare function getDefaultExpireDate(): string;
|
|
@@ -4,5 +4,6 @@ type RuntimeConfig = {
|
|
|
4
4
|
};
|
|
5
5
|
export declare function initSolodbComponents(partial: Partial<RuntimeConfig>): void;
|
|
6
6
|
export declare function getSolodbServerApiUrl(): string;
|
|
7
|
+
export declare function getSolodbServerCleanUrl(): string;
|
|
7
8
|
export declare function getIrisServerUrl(): string;
|
|
8
9
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScannedKeysType } from '
|
|
1
|
+
import { ScannedKeysType } from '../../../../modules/core/utils/parseScannerType';
|
|
2
2
|
export interface ScannerContext {
|
|
3
3
|
lastlyReadedKeys: string;
|
|
4
4
|
addCallbackFn: (type: ScannedKeysType, id: string, fun: (readedKeys: string) => void) => void;
|
|
@@ -6,5 +6,5 @@ export interface ScannerContext {
|
|
|
6
6
|
addReadingCallbackFn: (id: string, fun: (readingKeys: string) => void) => void;
|
|
7
7
|
removeReadingCallbackFn: (id: string) => void;
|
|
8
8
|
}
|
|
9
|
-
export declare const ScannerContext: import('react').Context<ScannerContext>;
|
|
9
|
+
export declare const ScannerContext: import('react').Context<ScannerContext | null>;
|
|
10
10
|
export declare const useScannerContext: () => ScannerContext;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum ScannedKeysType {
|
|
2
|
+
WILD_CARD = 0,
|
|
3
|
+
PERFORM_RUN_ACTION = 1,
|
|
4
|
+
RESET_FORM = 2
|
|
5
|
+
}
|
|
6
|
+
export declare const PERFORM_RUN_ACTION_TRIGER = "_qr";
|
|
7
|
+
export declare const RESET_FORM_TRIGER = "reset-form";
|
|
8
|
+
export default function parseScannerForRun(scannedKeys: string): ScannedKeysType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function RunInformationGrid(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function RunUploadFiles(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RunPart, RunStep } from '@jield/solodb-typescript-core';
|
|
2
|
-
declare const RunPartIndicator: ({ runPart, statusClass, withTrayCell, allowCreate,
|
|
1
|
+
import { RunPart, RunStep, RunStepPart } from '@jield/solodb-typescript-core';
|
|
2
|
+
declare const RunPartIndicator: ({ runPart, stepPart, statusClass, withTrayCell, allowCreate, isSelected, runStep, }: {
|
|
3
3
|
runPart: RunPart | null;
|
|
4
|
+
stepPart?: RunStepPart;
|
|
4
5
|
statusClass?: string;
|
|
5
6
|
withTrayCell?: boolean;
|
|
6
7
|
allowCreate?: boolean;
|
|
7
|
-
hasStepPart?: boolean;
|
|
8
8
|
isSelected?: boolean;
|
|
9
9
|
runStep?: RunStep;
|
|
10
10
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Run, RunPart, RunStep, RunStepPart } from '@jield/solodb-typescript-core';
|
|
2
2
|
export declare const RunPartList: ({ step, parts, stepParts, run, }: {
|
|
3
3
|
step: RunStep;
|
|
4
4
|
parts: RunPart[];
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Represents a book.
|
|
3
|
-
* key sequence supports := ([a-zA-Z0-9-], * , /)
|
|
4
|
-
*/
|
|
5
|
-
export declare function makeKeySequenceListener(keySequence: string, callback: (readKeys: string) => void, currentReadKeys?: (keys: string) => void, options?: {
|
|
6
|
-
requireEndCharacter?: boolean;
|
|
7
|
-
}): (e: KeyboardEvent) => void;
|
|
1
|
+
export declare function makeKeyListener(callback: (readKeys: string) => void, currentReadKeys?: (keys: string) => void): (e: KeyboardEvent) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jield/solodb-react-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": "jield-webdev/solodb-react-components",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"coverage": "vitest run --coverage"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@jield/solodb-typescript-core": "
|
|
30
|
+
"@jield/solodb-typescript-core": "1.1.8",
|
|
31
31
|
"@testing-library/dom": "^10.4.1",
|
|
32
32
|
"moment": "^2.30.1",
|
|
33
33
|
"moment-timezone": "^0.6.1",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"react-bootstrap": "^2.10.10",
|
|
36
36
|
"react-dropzone": "^15.0.0",
|
|
37
37
|
"react-google-charts": "^5.2.1",
|
|
38
|
-
"react-hook-form": "^7.
|
|
38
|
+
"react-hook-form": "^7.73.1",
|
|
39
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.
|
|
42
|
+
"yet-another-react-lightbox": "^3.31.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@tanstack/react-query": "^5.90",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
54
|
-
"@tanstack/react-query": "~5.
|
|
55
|
-
"@tanstack/react-query-devtools": "~5.
|
|
54
|
+
"@tanstack/react-query": "~5.99.2",
|
|
55
|
+
"@tanstack/react-query-devtools": "~5.99.2",
|
|
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",
|
|
@@ -62,18 +62,18 @@
|
|
|
62
62
|
"@types/react-dom": "^19.2.3",
|
|
63
63
|
"@types/react-router-dom": "^5.3.3",
|
|
64
64
|
"@vitejs/plugin-react": "^6.0.1",
|
|
65
|
-
"@vitest/coverage-v8": "^4.1.
|
|
66
|
-
"axios": "^1.15.
|
|
65
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
66
|
+
"axios": "^1.15.2",
|
|
67
67
|
"jsdom": "^29.0.2",
|
|
68
|
-
"prettier": "^3.8.
|
|
68
|
+
"prettier": "^3.8.3",
|
|
69
69
|
"prop-types": "^15.8.1",
|
|
70
70
|
"react": "^19.2.5",
|
|
71
71
|
"react-dom": "^19.2.5",
|
|
72
|
-
"react-router-dom": "^7.14.
|
|
73
|
-
"typescript": "^6.0.
|
|
74
|
-
"vite": "^8.0.
|
|
72
|
+
"react-router-dom": "^7.14.2",
|
|
73
|
+
"typescript": "^6.0.3",
|
|
74
|
+
"vite": "^8.0.9",
|
|
75
75
|
"vite-plugin-dts": "^4.5.4",
|
|
76
|
-
"vitest": "^4.1.
|
|
76
|
+
"vitest": "^4.1.5"
|
|
77
77
|
},
|
|
78
78
|
"packageManager": "yarn@4.13.0"
|
|
79
79
|
}
|
|
File without changes
|
|
File without changes
|
/package/dist/src/modules/run/components/run/{steps → information}/runInformationElement.d.ts
RENAMED
|
File without changes
|