@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.
Files changed (161) hide show
  1. package/README.md +115 -0
  2. package/dist/favicon-196x196.png +0 -0
  3. package/dist/index.cjs +49 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.ts +37 -0
  6. package/dist/index.js +40684 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/modules/admin/api/goldstein/wsHelper.d.ts +35 -0
  9. package/dist/modules/admin/components/goldsteinClientsDashboard/cardReadedValue.d.ts +5 -0
  10. package/dist/modules/admin/components/goldsteinClientsDashboard/equipmentConnected.d.ts +1 -0
  11. package/dist/modules/admin/components/goldsteinClientsDashboard/userAuthenticated.d.ts +3 -0
  12. package/dist/modules/admin/components/goldsteinClientsDashboard.d.ts +2 -0
  13. package/dist/modules/admin/context/goldstein/DataContext.d.ts +18 -0
  14. package/dist/modules/admin/functions/goldstein/listAssociation.d.ts +7 -0
  15. package/dist/modules/admin/functions/goldstein/listModules.d.ts +38 -0
  16. package/dist/modules/admin/functions/goldstein/listStatusOptions.d.ts +7 -0
  17. package/dist/modules/admin/functions/goldstein/notifications.d.ts +43 -0
  18. package/dist/modules/admin/functions/goldstein/parseAssociation.d.ts +1 -0
  19. package/dist/modules/admin/functions/goldstein/registerBadge.d.ts +1 -0
  20. package/dist/modules/admin/functions/goldstein/wsHelper.d.ts +35 -0
  21. package/dist/modules/chemical/components/chemical/barcodeScanElement.d.ts +3 -0
  22. package/dist/modules/chemical/components/chemical/chemicalIntakeElement.d.ts +1 -0
  23. package/dist/modules/chemical/components/chemical/registerBarcodeElement.d.ts +24 -0
  24. package/dist/modules/chemical/components/chemical/registerContainerElement.d.ts +7 -0
  25. package/dist/modules/chemical/components/chemicalHeaderElement.d.ts +1 -0
  26. package/dist/modules/chemical/components/modal/createChemicalModal.d.ts +7 -0
  27. package/dist/modules/chemical/form/chemicalContainerMethodOfUseSelectFormElement.d.ts +4 -0
  28. package/dist/modules/chemical/form/chemicalContainerPurposeSelectFormElement.d.ts +4 -0
  29. package/dist/modules/chemical/form/chemicalContainerTypeSelectFormElement.d.ts +4 -0
  30. package/dist/modules/chemical/form/chemicalSelectFormElement.d.ts +6 -0
  31. package/dist/modules/chemical/form/locationSelectFormElement.d.ts +8 -0
  32. package/dist/modules/chemical/form/roomSelectElement.d.ts +6 -0
  33. package/dist/modules/core/config/runtimeConfig.d.ts +6 -0
  34. package/dist/modules/core/contexts/authContext.d.ts +8 -0
  35. package/dist/modules/core/form/element/userFormElement.d.ts +7 -0
  36. package/dist/modules/core/functions/getServerUri.d.ts +1 -0
  37. package/dist/modules/core/hooks/useAuth.d.ts +6 -0
  38. package/dist/modules/core/interfaces/modalProperties.d.ts +7 -0
  39. package/dist/modules/core/providers/authProvider.d.ts +4 -0
  40. package/dist/modules/equipment/components/dashboard/ecnCard.d.ts +7 -0
  41. package/dist/modules/equipment/components/dashboard/equipmentDashboard.d.ts +1 -0
  42. package/dist/modules/equipment/components/dashboard/issueCard.d.ts +7 -0
  43. package/dist/modules/equipment/components/equipmentHeaderElement.d.ts +1 -0
  44. package/dist/modules/equipment/components/goldsteinEquipmentDashboard/actionModules/updateStatus.d.ts +4 -0
  45. package/dist/modules/equipment/components/goldsteinEquipmentDashboard/states/equipmentUsable.d.ts +9 -0
  46. package/dist/modules/equipment/components/goldsteinEquipmentDashboard/states/noUserInCard.d.ts +5 -0
  47. package/dist/modules/equipment/components/goldsteinEquipmentDashboard/states/nullNotifications.d.ts +1 -0
  48. package/dist/modules/equipment/components/goldsteinEquipmentDashboard/states/serverError.d.ts +1 -0
  49. package/dist/modules/equipment/components/goldsteinEquipmentDashboard/states/userNotAuthorized.d.ts +6 -0
  50. package/dist/modules/equipment/components/goldsteinEquipmentDashboard/states/waitingCardDetection.d.ts +1 -0
  51. package/dist/modules/equipment/components/goldsteinEquipmentDashboard.d.ts +1 -0
  52. package/dist/modules/equipment/components/partial/ecnElement.d.ts +8 -0
  53. package/dist/modules/equipment/components/partial/ecnModalForm.d.ts +11 -0
  54. package/dist/modules/equipment/components/partial/equipmentHeader.d.ts +1 -0
  55. package/dist/modules/equipment/components/partial/issueElement.d.ts +8 -0
  56. package/dist/modules/equipment/components/partial/issueModalForm.d.ts +11 -0
  57. package/dist/modules/equipment/components/partial/issueTable.d.ts +9 -0
  58. package/dist/modules/equipment/components/partial/messageElement.d.ts +4 -0
  59. package/dist/modules/equipment/components/partial/messageModalForm.d.ts +9 -0
  60. package/dist/modules/equipment/components/partial/moduleStatusElement.d.ts +5 -0
  61. package/dist/modules/equipment/components/partial/reservationElement.d.ts +4 -0
  62. package/dist/modules/equipment/components/partial/sendStatusMail.d.ts +4 -0
  63. package/dist/modules/equipment/components/setup/editSortingPropertiesModal.d.ts +12 -0
  64. package/dist/modules/equipment/components/setup/equipmentModuleStatusWrapper.d.ts +4 -0
  65. package/dist/modules/equipment/components/setup/equipmentTable.d.ts +11 -0
  66. package/dist/modules/equipment/components/setup/filterBadges.d.ts +8 -0
  67. package/dist/modules/equipment/components/setup/filterFormBar.d.ts +7 -0
  68. package/dist/modules/equipment/components/setup/filterFormColum.d.ts +6 -0
  69. package/dist/modules/equipment/components/setup/searchBox.d.ts +4 -0
  70. package/dist/modules/equipment/components/setup/selectedEquipmentTable.d.ts +8 -0
  71. package/dist/modules/equipment/components/setupUpdateEquipment.d.ts +3 -0
  72. package/dist/modules/equipment/components/status-mail/statusMailEquipmentElement.d.ts +12 -0
  73. package/dist/modules/equipment/components/status-mail/statusMailMessageElement.d.ts +5 -0
  74. package/dist/modules/equipment/components/statusMailComponent.d.ts +1 -0
  75. package/dist/modules/equipment/contexts/equipmentContext.d.ts +7 -0
  76. package/dist/modules/equipment/contexts/statusMailContext.d.ts +6 -0
  77. package/dist/modules/equipment/hooks/useEquipment.d.ts +6 -0
  78. package/dist/modules/equipment/providers/equipmentProvider.d.ts +4 -0
  79. package/dist/modules/equipment/providers/statusMailProvider.d.ts +4 -0
  80. package/dist/modules/monitor/components/monitor/monitorCard.d.ts +4 -0
  81. package/dist/modules/monitor/components/monitor/monitorHeaderElement.d.ts +1 -0
  82. package/dist/modules/monitor/components/monitor/monitorPage.d.ts +1 -0
  83. package/dist/modules/monitor/components/monitor/requirement/addResultModal.d.ts +7 -0
  84. package/dist/modules/monitor/components/monitor/requirement/addStepParameterValueModal.d.ts +7 -0
  85. package/dist/modules/monitor/components/monitor/requirement/editStepParameterValueModal.d.ts +6 -0
  86. package/dist/modules/monitor/components/monitor/requirement/requirementChart.d.ts +5 -0
  87. package/dist/modules/monitor/components/monitor/requirement/requirementResults.d.ts +4 -0
  88. package/dist/modules/monitor/contexts/monitorContext.d.ts +7 -0
  89. package/dist/modules/monitor/hooks/useMonitor.d.ts +6 -0
  90. package/dist/modules/monitor/providers/monitorProvider.d.ts +4 -0
  91. package/dist/modules/partial/dateFormat.d.ts +5 -0
  92. package/dist/modules/partial/modal.d.ts +2 -0
  93. package/dist/modules/partial/paginationLinks.d.ts +9 -0
  94. package/dist/modules/run/components/run/partial/runHeader.d.ts +1 -0
  95. package/dist/modules/run/components/run/partial/runPartStepPart.d.ts +6 -0
  96. package/dist/modules/run/components/run/partial/runTabs.d.ts +3 -0
  97. package/dist/modules/run/components/run/runHeaderElement.d.ts +1 -0
  98. package/dist/modules/run/components/run/steps/element/requirementDetails.d.ts +9 -0
  99. package/dist/modules/run/components/run/steps/element/requirementStepInList.d.ts +8 -0
  100. package/dist/modules/run/components/run/steps/element/stepDetails.d.ts +7 -0
  101. package/dist/modules/run/components/run/steps/element/stepInList.d.ts +9 -0
  102. package/dist/modules/run/components/run/steps/runInformationElement.d.ts +1 -0
  103. package/dist/modules/run/components/run/steps/runStepsElement.d.ts +1 -0
  104. package/dist/modules/run/components/shared/files/uploadFilesToStep.d.ts +5 -0
  105. package/dist/modules/run/components/shared/parameters/runStepParameterEditButton.d.ts +6 -0
  106. package/dist/modules/run/components/shared/parameters/runStepParametersTable.d.ts +7 -0
  107. package/dist/modules/run/components/shared/parts/partsBadgesProductionRun.d.ts +7 -0
  108. package/dist/modules/run/components/shared/parts/partsBadgesResearchRun.d.ts +6 -0
  109. package/dist/modules/run/components/shared/parts/runStepPartTableRow.d.ts +7 -0
  110. package/dist/modules/run/components/shared/requirement/fillValueModal.d.ts +10 -0
  111. package/dist/modules/run/components/shared/requirement/measurementResultsBadge.d.ts +8 -0
  112. package/dist/modules/run/components/shared/requirement/requirementValuesByStep.d.ts +7 -0
  113. package/dist/modules/run/components/shared/requirement/requirementValuesWithPartTable.d.ts +10 -0
  114. package/dist/modules/run/components/step/runStepHeaderElement.d.ts +1 -0
  115. package/dist/modules/run/components/step/view/element/batchCardElement.d.ts +5 -0
  116. package/dist/modules/run/components/step/view/element/checklist/checklistItemElement.d.ts +6 -0
  117. package/dist/modules/run/components/step/view/element/checklist/checklistModal.d.ts +8 -0
  118. package/dist/modules/run/components/step/view/element/hold-code/holdCodeModal.d.ts +9 -0
  119. package/dist/modules/run/components/step/view/element/holdCodeBadge.d.ts +2 -0
  120. package/dist/modules/run/components/step/view/element/logAssistElement.d.ts +5 -0
  121. package/dist/modules/run/components/step/view/element/parts/element/runPartProductionBadge.d.ts +8 -0
  122. package/dist/modules/run/components/step/view/element/parts/element/runPartProductionTableRow.d.ts +8 -0
  123. package/dist/modules/run/components/step/view/element/parts/element/runStepPartComment.d.ts +7 -0
  124. package/dist/modules/run/components/step/view/element/parts/runPartsProductionRun.d.ts +9 -0
  125. package/dist/modules/run/components/step/view/element/parts/runPartsResearchRun.d.ts +9 -0
  126. package/dist/modules/run/components/step/view/element/priorityBadge.d.ts +2 -0
  127. package/dist/modules/run/components/step/view/element/process.d.ts +5 -0
  128. package/dist/modules/run/components/step/view/element/rework.d.ts +2 -0
  129. package/dist/modules/run/components/step/view/element/run-changelog/runChangelogButton.d.ts +4 -0
  130. package/dist/modules/run/components/step/view/element/run-changelog/runChangelogModal.d.ts +5 -0
  131. package/dist/modules/run/components/step/view/element/runStepChecklist.d.ts +2 -0
  132. package/dist/modules/run/components/step/view/element/runStepSimpleList.d.ts +5 -0
  133. package/dist/modules/run/components/step/view/element/step-overview/requirementDetails.d.ts +8 -0
  134. package/dist/modules/run/components/step/view/element/step-overview/requirementElement.d.ts +8 -0
  135. package/dist/modules/run/components/step/view/element/step-overview/stepDetails.d.ts +7 -0
  136. package/dist/modules/run/components/step/view/element/step-overview/stepElement.d.ts +11 -0
  137. package/dist/modules/run/components/step/view/element/step-overview/stepOverviewButton.d.ts +4 -0
  138. package/dist/modules/run/components/step/view/element/step-overview/stepOverviewModal.d.ts +5 -0
  139. package/dist/modules/run/components/step/view/element/stepDashboard.d.ts +2 -0
  140. package/dist/modules/run/components/step/view/element/stepLabel.d.ts +5 -0
  141. package/dist/modules/run/components/step/view/element/stepRemark.d.ts +2 -0
  142. package/dist/modules/run/components/step/view/runStepExecuteElement.d.ts +1 -0
  143. package/dist/modules/run/contexts/emphasizedParametersContext.d.ts +7 -0
  144. package/dist/modules/run/contexts/runContext.d.ts +7 -0
  145. package/dist/modules/run/contexts/runStepContext.d.ts +12 -0
  146. package/dist/modules/run/hooks/useRun.d.ts +5 -0
  147. package/dist/modules/run/hooks/useRunStep.d.ts +7 -0
  148. package/dist/modules/run/providers/emphasizedParametersProvider.d.ts +4 -0
  149. package/dist/modules/run/providers/runProvider.d.ts +4 -0
  150. package/dist/modules/run/providers/runStepProvider.d.ts +4 -0
  151. package/dist/modules/service/components/ReportResult.d.ts +1 -0
  152. package/dist/modules/service/components/equipmentReports/EquipmentServiceReports.d.ts +1 -0
  153. package/dist/modules/service/components/equipmentReports/ListEquipmentReport.d.ts +1 -0
  154. package/dist/modules/service/components/report/Category.d.ts +6 -0
  155. package/dist/modules/service/components/report/Criterion.d.ts +9 -0
  156. package/dist/setupTests.d.ts +0 -0
  157. package/dist/solodb-react-components.css +1 -0
  158. package/dist/utils/__tests__/datetime.test.d.ts +1 -0
  159. package/dist/utils/datetime.d.ts +28 -0
  160. package/dist/utils/text.d.ts +8 -0
  161. 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