@jield/solodb-react-components 1.1.2 → 1.1.4
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +34 -24
- package/dist/index.js.map +1 -1
- package/dist/solodb-react-components.css +1 -1
- package/dist/src/modules/run/components/shared/parts_table/element/partActionsButtons.d.ts +1 -1
- package/dist/src/modules/run/components/shared/parts_table/element/partActionsDropdown.d.ts +1 -1
- package/dist/src/modules/run/hooks/run/parts/usePartActions.d.ts +1 -1
- package/package.json +5 -5
|
@@ -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*/
|
|
@@ -4,6 +4,6 @@ export interface PartActionsButtonsProps {
|
|
|
4
4
|
id: RunStepPartActionEnum;
|
|
5
5
|
name: string;
|
|
6
6
|
}[];
|
|
7
|
-
onActionSelected: (action: RunStepPartActionEnum) => void;
|
|
7
|
+
onActionSelected: (action: RunStepPartActionEnum) => Promise<void> | void;
|
|
8
8
|
}
|
|
9
9
|
export declare const PartActionsButtons: ({ availableActions, onActionSelected }: PartActionsButtonsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -4,7 +4,7 @@ export interface PartActionsDropdownProps {
|
|
|
4
4
|
id: RunStepPartActionEnum;
|
|
5
5
|
name: string;
|
|
6
6
|
}[];
|
|
7
|
-
onActionSelected: (action: RunStepPartActionEnum) => void;
|
|
7
|
+
onActionSelected: (action: RunStepPartActionEnum) => Promise<void> | void;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Dropdown component for bulk part actions.
|
|
@@ -8,7 +8,7 @@ export interface UsePartActionsOptions {
|
|
|
8
8
|
actionsFromScanner?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export interface UsePartActionsResult {
|
|
11
|
-
performActionToSelectedParts: (action: RunStepPartActionEnum) => void
|
|
11
|
+
performActionToSelectedParts: (action: RunStepPartActionEnum) => Promise<void>;
|
|
12
12
|
getAvailableActionsForSelection: () => {
|
|
13
13
|
id: RunStepPartActionEnum;
|
|
14
14
|
name: string;
|
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.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": "jield-webdev/solodb-react-components",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -39,7 +39,7 @@
|
|
|
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.0",
|
|
55
|
+
"@tanstack/react-query-devtools": "~5.99.0",
|
|
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",
|
|
@@ -69,7 +69,7 @@
|
|
|
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.
|
|
72
|
+
"react-router-dom": "^7.14.1",
|
|
73
73
|
"typescript": "^6.0.2",
|
|
74
74
|
"vite": "^8.0.8",
|
|
75
75
|
"vite-plugin-dts": "^4.5.4",
|