@jield/solodb-react-components 1.0.0
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/README.md +115 -0
- package/dist/favicon-196x196.png +0 -0
- package/dist/index.cjs +49 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +40684 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/admin/api/goldstein/wsHelper.d.ts +35 -0
- package/dist/modules/admin/components/goldsteinClientsDashboard/cardReadedValue.d.ts +5 -0
- package/dist/modules/admin/components/goldsteinClientsDashboard/equipmentConnected.d.ts +1 -0
- package/dist/modules/admin/components/goldsteinClientsDashboard/userAuthenticated.d.ts +3 -0
- package/dist/modules/admin/components/goldsteinClientsDashboard.d.ts +2 -0
- package/dist/modules/admin/context/goldstein/DataContext.d.ts +18 -0
- package/dist/modules/admin/functions/goldstein/listAssociation.d.ts +7 -0
- package/dist/modules/admin/functions/goldstein/listModules.d.ts +38 -0
- package/dist/modules/admin/functions/goldstein/listStatusOptions.d.ts +7 -0
- package/dist/modules/admin/functions/goldstein/notifications.d.ts +43 -0
- package/dist/modules/admin/functions/goldstein/parseAssociation.d.ts +1 -0
- package/dist/modules/admin/functions/goldstein/registerBadge.d.ts +1 -0
- package/dist/modules/admin/functions/goldstein/wsHelper.d.ts +35 -0
- package/dist/modules/chemical/components/chemical/barcodeScanElement.d.ts +3 -0
- package/dist/modules/chemical/components/chemical/chemicalIntakeElement.d.ts +1 -0
- package/dist/modules/chemical/components/chemical/registerBarcodeElement.d.ts +24 -0
- package/dist/modules/chemical/components/chemical/registerContainerElement.d.ts +7 -0
- package/dist/modules/chemical/components/chemicalHeaderElement.d.ts +1 -0
- package/dist/modules/chemical/components/modal/createChemicalModal.d.ts +7 -0
- package/dist/modules/chemical/form/chemicalContainerMethodOfUseSelectFormElement.d.ts +4 -0
- package/dist/modules/chemical/form/chemicalContainerPurposeSelectFormElement.d.ts +4 -0
- package/dist/modules/chemical/form/chemicalContainerTypeSelectFormElement.d.ts +4 -0
- package/dist/modules/chemical/form/chemicalSelectFormElement.d.ts +6 -0
- package/dist/modules/chemical/form/locationSelectFormElement.d.ts +8 -0
- package/dist/modules/chemical/form/roomSelectElement.d.ts +6 -0
- package/dist/modules/core/config/runtimeConfig.d.ts +6 -0
- package/dist/modules/core/contexts/authContext.d.ts +8 -0
- package/dist/modules/core/form/element/userFormElement.d.ts +7 -0
- package/dist/modules/core/functions/getServerUri.d.ts +1 -0
- package/dist/modules/core/hooks/useAuth.d.ts +6 -0
- package/dist/modules/core/interfaces/modalProperties.d.ts +7 -0
- package/dist/modules/core/providers/authProvider.d.ts +4 -0
- package/dist/modules/equipment/components/dashboard/ecnCard.d.ts +7 -0
- package/dist/modules/equipment/components/dashboard/equipmentDashboard.d.ts +1 -0
- package/dist/modules/equipment/components/dashboard/issueCard.d.ts +7 -0
- package/dist/modules/equipment/components/equipmentHeaderElement.d.ts +1 -0
- package/dist/modules/equipment/components/goldsteinEquipmentDashboard/actionModules/updateStatus.d.ts +4 -0
- package/dist/modules/equipment/components/goldsteinEquipmentDashboard/states/equipmentUsable.d.ts +9 -0
- package/dist/modules/equipment/components/goldsteinEquipmentDashboard/states/noUserInCard.d.ts +5 -0
- package/dist/modules/equipment/components/goldsteinEquipmentDashboard/states/nullNotifications.d.ts +1 -0
- package/dist/modules/equipment/components/goldsteinEquipmentDashboard/states/serverError.d.ts +1 -0
- package/dist/modules/equipment/components/goldsteinEquipmentDashboard/states/userNotAuthorized.d.ts +6 -0
- package/dist/modules/equipment/components/goldsteinEquipmentDashboard/states/waitingCardDetection.d.ts +1 -0
- package/dist/modules/equipment/components/goldsteinEquipmentDashboard.d.ts +1 -0
- package/dist/modules/equipment/components/partial/ecnElement.d.ts +8 -0
- package/dist/modules/equipment/components/partial/ecnModalForm.d.ts +11 -0
- package/dist/modules/equipment/components/partial/equipmentHeader.d.ts +1 -0
- package/dist/modules/equipment/components/partial/issueElement.d.ts +8 -0
- package/dist/modules/equipment/components/partial/issueModalForm.d.ts +11 -0
- package/dist/modules/equipment/components/partial/issueTable.d.ts +9 -0
- package/dist/modules/equipment/components/partial/messageElement.d.ts +4 -0
- package/dist/modules/equipment/components/partial/messageModalForm.d.ts +9 -0
- package/dist/modules/equipment/components/partial/moduleStatusElement.d.ts +5 -0
- package/dist/modules/equipment/components/partial/reservationElement.d.ts +4 -0
- package/dist/modules/equipment/components/partial/sendStatusMail.d.ts +4 -0
- package/dist/modules/equipment/components/setup/editSortingPropertiesModal.d.ts +12 -0
- package/dist/modules/equipment/components/setup/equipmentModuleStatusWrapper.d.ts +4 -0
- package/dist/modules/equipment/components/setup/equipmentTable.d.ts +11 -0
- package/dist/modules/equipment/components/setup/filterBadges.d.ts +8 -0
- package/dist/modules/equipment/components/setup/filterFormBar.d.ts +7 -0
- package/dist/modules/equipment/components/setup/filterFormColum.d.ts +6 -0
- package/dist/modules/equipment/components/setup/searchBox.d.ts +4 -0
- package/dist/modules/equipment/components/setup/selectedEquipmentTable.d.ts +8 -0
- package/dist/modules/equipment/components/setupUpdateEquipment.d.ts +3 -0
- package/dist/modules/equipment/components/status-mail/statusMailEquipmentElement.d.ts +12 -0
- package/dist/modules/equipment/components/status-mail/statusMailMessageElement.d.ts +5 -0
- package/dist/modules/equipment/components/statusMailComponent.d.ts +1 -0
- package/dist/modules/equipment/contexts/equipmentContext.d.ts +7 -0
- package/dist/modules/equipment/contexts/statusMailContext.d.ts +6 -0
- package/dist/modules/equipment/hooks/useEquipment.d.ts +6 -0
- package/dist/modules/equipment/providers/equipmentProvider.d.ts +4 -0
- package/dist/modules/equipment/providers/statusMailProvider.d.ts +4 -0
- package/dist/modules/monitor/components/monitor/monitorCard.d.ts +4 -0
- package/dist/modules/monitor/components/monitor/monitorHeaderElement.d.ts +1 -0
- package/dist/modules/monitor/components/monitor/monitorPage.d.ts +1 -0
- package/dist/modules/monitor/components/monitor/requirement/addResultModal.d.ts +7 -0
- package/dist/modules/monitor/components/monitor/requirement/addStepParameterValueModal.d.ts +7 -0
- package/dist/modules/monitor/components/monitor/requirement/editStepParameterValueModal.d.ts +6 -0
- package/dist/modules/monitor/components/monitor/requirement/requirementChart.d.ts +5 -0
- package/dist/modules/monitor/components/monitor/requirement/requirementResults.d.ts +4 -0
- package/dist/modules/monitor/contexts/monitorContext.d.ts +7 -0
- package/dist/modules/monitor/hooks/useMonitor.d.ts +6 -0
- package/dist/modules/monitor/providers/monitorProvider.d.ts +4 -0
- package/dist/modules/partial/dateFormat.d.ts +5 -0
- package/dist/modules/partial/modal.d.ts +2 -0
- package/dist/modules/partial/paginationLinks.d.ts +9 -0
- package/dist/modules/run/components/run/partial/runHeader.d.ts +1 -0
- package/dist/modules/run/components/run/partial/runPartStepPart.d.ts +6 -0
- package/dist/modules/run/components/run/partial/runTabs.d.ts +3 -0
- package/dist/modules/run/components/run/runHeaderElement.d.ts +1 -0
- package/dist/modules/run/components/run/steps/element/requirementDetails.d.ts +9 -0
- package/dist/modules/run/components/run/steps/element/requirementStepInList.d.ts +8 -0
- package/dist/modules/run/components/run/steps/element/stepDetails.d.ts +7 -0
- package/dist/modules/run/components/run/steps/element/stepInList.d.ts +9 -0
- package/dist/modules/run/components/run/steps/runInformationElement.d.ts +1 -0
- package/dist/modules/run/components/run/steps/runStepsElement.d.ts +1 -0
- package/dist/modules/run/components/shared/files/uploadFilesToStep.d.ts +5 -0
- package/dist/modules/run/components/shared/parameters/runStepParameterEditButton.d.ts +6 -0
- package/dist/modules/run/components/shared/parameters/runStepParametersTable.d.ts +7 -0
- package/dist/modules/run/components/shared/parts/partsBadgesProductionRun.d.ts +7 -0
- package/dist/modules/run/components/shared/parts/partsBadgesResearchRun.d.ts +6 -0
- package/dist/modules/run/components/shared/parts/runStepPartTableRow.d.ts +7 -0
- package/dist/modules/run/components/shared/requirement/fillValueModal.d.ts +10 -0
- package/dist/modules/run/components/shared/requirement/measurementResultsBadge.d.ts +8 -0
- package/dist/modules/run/components/shared/requirement/requirementValuesByStep.d.ts +7 -0
- package/dist/modules/run/components/shared/requirement/requirementValuesWithPartTable.d.ts +10 -0
- package/dist/modules/run/components/step/runStepHeaderElement.d.ts +1 -0
- package/dist/modules/run/components/step/view/element/batchCardElement.d.ts +5 -0
- package/dist/modules/run/components/step/view/element/checklist/checklistItemElement.d.ts +6 -0
- package/dist/modules/run/components/step/view/element/checklist/checklistModal.d.ts +8 -0
- package/dist/modules/run/components/step/view/element/hold-code/holdCodeModal.d.ts +9 -0
- package/dist/modules/run/components/step/view/element/holdCodeBadge.d.ts +2 -0
- package/dist/modules/run/components/step/view/element/logAssistElement.d.ts +5 -0
- package/dist/modules/run/components/step/view/element/parts/element/runPartProductionBadge.d.ts +8 -0
- package/dist/modules/run/components/step/view/element/parts/element/runPartProductionTableRow.d.ts +8 -0
- package/dist/modules/run/components/step/view/element/parts/element/runStepPartComment.d.ts +7 -0
- package/dist/modules/run/components/step/view/element/parts/runPartsProductionRun.d.ts +9 -0
- package/dist/modules/run/components/step/view/element/parts/runPartsResearchRun.d.ts +9 -0
- package/dist/modules/run/components/step/view/element/priorityBadge.d.ts +2 -0
- package/dist/modules/run/components/step/view/element/process.d.ts +5 -0
- package/dist/modules/run/components/step/view/element/rework.d.ts +2 -0
- package/dist/modules/run/components/step/view/element/run-changelog/runChangelogButton.d.ts +4 -0
- package/dist/modules/run/components/step/view/element/run-changelog/runChangelogModal.d.ts +5 -0
- package/dist/modules/run/components/step/view/element/runStepChecklist.d.ts +2 -0
- package/dist/modules/run/components/step/view/element/runStepSimpleList.d.ts +5 -0
- package/dist/modules/run/components/step/view/element/step-overview/requirementDetails.d.ts +8 -0
- package/dist/modules/run/components/step/view/element/step-overview/requirementElement.d.ts +8 -0
- package/dist/modules/run/components/step/view/element/step-overview/stepDetails.d.ts +7 -0
- package/dist/modules/run/components/step/view/element/step-overview/stepElement.d.ts +11 -0
- package/dist/modules/run/components/step/view/element/step-overview/stepOverviewButton.d.ts +4 -0
- package/dist/modules/run/components/step/view/element/step-overview/stepOverviewModal.d.ts +5 -0
- package/dist/modules/run/components/step/view/element/stepDashboard.d.ts +2 -0
- package/dist/modules/run/components/step/view/element/stepLabel.d.ts +5 -0
- package/dist/modules/run/components/step/view/element/stepRemark.d.ts +2 -0
- package/dist/modules/run/components/step/view/runStepExecuteElement.d.ts +1 -0
- package/dist/modules/run/contexts/emphasizedParametersContext.d.ts +7 -0
- package/dist/modules/run/contexts/runContext.d.ts +7 -0
- package/dist/modules/run/contexts/runStepContext.d.ts +12 -0
- package/dist/modules/run/hooks/useRun.d.ts +5 -0
- package/dist/modules/run/hooks/useRunStep.d.ts +7 -0
- package/dist/modules/run/providers/emphasizedParametersProvider.d.ts +4 -0
- package/dist/modules/run/providers/runProvider.d.ts +4 -0
- package/dist/modules/run/providers/runStepProvider.d.ts +4 -0
- package/dist/modules/service/components/ReportResult.d.ts +1 -0
- package/dist/modules/service/components/equipmentReports/EquipmentServiceReports.d.ts +1 -0
- package/dist/modules/service/components/equipmentReports/ListEquipmentReport.d.ts +1 -0
- package/dist/modules/service/components/report/Category.d.ts +6 -0
- package/dist/modules/service/components/report/Criterion.d.ts +9 -0
- package/dist/setupTests.d.ts +0 -0
- package/dist/solodb-react-components.css +1 -0
- package/dist/utils/__tests__/datetime.test.d.ts +1 -0
- package/dist/utils/datetime.d.ts +28 -0
- package/dist/utils/text.d.ts +8 -0
- package/package.json +76 -0
package/README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# SoloDB React Components
|
|
2
|
+
|
|
3
|
+
Reusable React components, providers, and hooks for building SoloDB-powered applications. This package extracts common UI and state-management pieces (dashboards, headers, flows, and contexts) into a shareable library.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Ready-to-use dashboards and UI elements for Equipment, Monitor, Run, Chemical, Admin, and Service modules
|
|
8
|
+
- Context providers and hooks for authentication and domain state
|
|
9
|
+
- Lightweight runtime configuration via `initSolodbComponents`
|
|
10
|
+
- TypeScript types exported for key domain entities
|
|
11
|
+
- Example app included for local development and integration testing
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
yarn add solodb-react-components
|
|
17
|
+
# or
|
|
18
|
+
npm install solodb-react-components
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Peer dependencies
|
|
22
|
+
|
|
23
|
+
This library relies on the following peer dependencies in your app:
|
|
24
|
+
|
|
25
|
+
- react (18 or 19) and react-dom (18 or 19)
|
|
26
|
+
- @tanstack/react-query ~5.90
|
|
27
|
+
- @tanstack/react-table ^8
|
|
28
|
+
- axios ^1.13
|
|
29
|
+
- moment ^2.30 and moment-timezone ^0.6
|
|
30
|
+
- react-router-dom ^7
|
|
31
|
+
- react-bootstrap ^2
|
|
32
|
+
- react-hook-form ^7
|
|
33
|
+
- qrcode.react ^4
|
|
34
|
+
- react-google-charts ^5
|
|
35
|
+
- react-intersection-observer ^10
|
|
36
|
+
- react-markdown ^10
|
|
37
|
+
- react-dropzone ^14
|
|
38
|
+
- react-select ^5
|
|
39
|
+
- yet-another-react-lightbox ^3
|
|
40
|
+
|
|
41
|
+
Ensure these are installed in your application. Refer to `package.json` for the full list and exact versions.
|
|
42
|
+
|
|
43
|
+
## Quick start
|
|
44
|
+
|
|
45
|
+
1) Configure the library at app startup (optional but recommended):
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
import { initSolodbComponents } from "solodb-react-components";
|
|
49
|
+
|
|
50
|
+
initSolodbComponents({
|
|
51
|
+
// example: baseUrl, feature flags, timezone, etc.
|
|
52
|
+
});
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
2) Wrap your app with the required providers (e.g., `AuthProvider`). Use additional domain providers as needed:
|
|
56
|
+
|
|
57
|
+
```tsx
|
|
58
|
+
import React from "react";
|
|
59
|
+
import ReactDOM from "react-dom/client";
|
|
60
|
+
import { BrowserRouter } from "react-router-dom";
|
|
61
|
+
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
62
|
+
import { AuthProvider, EquipmentProvider } from "solodb-react-components";
|
|
63
|
+
|
|
64
|
+
const qc = new QueryClient();
|
|
65
|
+
|
|
66
|
+
ReactDOM.createRoot(document.getElementById("root")!).render(
|
|
67
|
+
<React.StrictMode>
|
|
68
|
+
<QueryClientProvider client={qc}>
|
|
69
|
+
<AuthProvider>
|
|
70
|
+
<EquipmentProvider>
|
|
71
|
+
<BrowserRouter>
|
|
72
|
+
{/* your routes/components */}
|
|
73
|
+
</BrowserRouter>
|
|
74
|
+
</EquipmentProvider>
|
|
75
|
+
</AuthProvider>
|
|
76
|
+
</QueryClientProvider>
|
|
77
|
+
</React.StrictMode>
|
|
78
|
+
);
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Exports overview
|
|
82
|
+
|
|
83
|
+
All exports are available from the package root (`solodb-react-components`):
|
|
84
|
+
|
|
85
|
+
- Providers: `AuthProvider`, `EquipmentProvider`, `StatusMailProvider`, `MonitorProvider`, `RunProvider`, `RunStepProvider`, `EmphasizedParametersProvider`
|
|
86
|
+
- Components (selection):
|
|
87
|
+
- Equipment: `SetupUpdateEquipment`, `GoldsteinEquipmentDashboard`, `StatusMailComponent`, `EquipmentDashboard`, `EquipmentHeaderElement`
|
|
88
|
+
- Monitor: `MonitorCard`, `MonitorPage`, `MonitorHeaderElement`
|
|
89
|
+
- Run: `RunHeaderElement`, `RunStepsElement`, `RunInformationElement`, `RunStepHeaderElement`, `RunStepExecuteElement`
|
|
90
|
+
- Chemical: `ChemicalHeaderElement`, `ChemicalIntakeElement`
|
|
91
|
+
- Admin: `GoldsteinClientsDashboard`
|
|
92
|
+
- Service: `ReportResults`
|
|
93
|
+
- Partials: `PaginationLinks`, `InputModal`, `DateFormat`
|
|
94
|
+
- Contexts: `AuthContext`, `EquipmentContext`, `StatusMailContext`, `MonitorContext`, `RunContext`, `RunStepContext`, `EmphasizedParametersContext`
|
|
95
|
+
- Hooks: `useAuth`
|
|
96
|
+
- Runtime: `initSolodbComponents`
|
|
97
|
+
- Types: `User`, `Equipment`, `Monitor`, `Run`, `RunStep`
|
|
98
|
+
|
|
99
|
+
For the complete and up‑to‑date list, see `src/index.ts`.
|
|
100
|
+
|
|
101
|
+
## Example application
|
|
102
|
+
|
|
103
|
+
This repository includes an example app showing typical integration.
|
|
104
|
+
|
|
105
|
+
Run it locally:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# 1) Install and build the library
|
|
109
|
+
yarn install
|
|
110
|
+
yarn build
|
|
111
|
+
|
|
112
|
+
# 2) Install and run the example
|
|
113
|
+
yarn run example:install
|
|
114
|
+
yarn dev
|
|
115
|
+
```
|
|
Binary file
|