@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
@@ -0,0 +1 @@
1
+ export default function ListEquipmentReport(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ServiceEventReportResult } from 'solodb-typescript-core';
2
+ export default function Category({ categoryId, label, results, }: {
3
+ categoryId: string | number;
4
+ label: string;
5
+ results: ServiceEventReportResult[];
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { ServiceEventReportResult } from 'solodb-typescript-core';
2
+ export default function Criterion({ result, value, onChange, error, onSubmit, saving, }: {
3
+ result: ServiceEventReportResult;
4
+ value: any;
5
+ onChange: (cv: ServiceEventReportResult, raw: any) => void;
6
+ error?: string;
7
+ onSubmit: (cv: ServiceEventReportResult) => void;
8
+ saving?: boolean;
9
+ }): import("react/jsx-runtime").JSX.Element;
File without changes
@@ -0,0 +1 @@
1
+ .equipment_container{padding:10px;border:5px solid black;margin:10px}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Date/Time formatting utilities
3
+ * Replaces react-moment with native JavaScript formatting
4
+ */
5
+ type DateInput = Date | string | number | null | undefined;
6
+ /**
7
+ * Safely parse various date inputs to a Date object
8
+ */
9
+ export declare function parseToDate(input: DateInput): Date | null;
10
+ /**
11
+ * Format a date using a custom format string
12
+ * Supports common patterns used in the codebase:
13
+ * - DD: day with leading zero
14
+ * - MM: month with leading zero
15
+ * - YY: 2-digit year
16
+ * - YYYY: 4-digit year
17
+ * - HH: hours (24h) with leading zero
18
+ * - mm: minutes with leading zero
19
+ * - H: hours (24h) without leading zero
20
+ * - m: minutes without leading zero
21
+ */
22
+ export declare function formatDate(input: DateInput, format: string): string;
23
+ /**
24
+ * Format a date and time
25
+ * Common formats: "DD-MM-YY HH:mm", "DD-MM-YY H:m"
26
+ */
27
+ export declare function formatDateTime(input: DateInput, format?: string): string;
28
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Component that renders text with line breaks converted to <br /> elements
4
+ * Safe alternative to react-nl2br without dangerouslySetInnerHTML
5
+ */
6
+ export declare function TextWithLineBreaks({ text }: {
7
+ text: string | null | undefined;
8
+ }): React.ReactElement | null;
package/package.json ADDED
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "@jield/solodb-react-components",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "repository": "jield-webdev/solodb-react-components",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "sideEffects": false,
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs",
15
+ "default": "./dist/index.js"
16
+ }
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "scripts": {
22
+ "build": "tsc && vite build",
23
+ "dev": "cd example && yarn dev",
24
+ "example:install": "cd example && yarn install",
25
+ "test": "vitest",
26
+ "test:watch": "vitest --watch",
27
+ "coverage": "vitest run --coverage"
28
+ },
29
+ "dependencies": {
30
+ "axios": "^1.13.2",
31
+ "moment": "^2.30.1",
32
+ "moment-timezone": "^0.6.0",
33
+ "qrcode.react": "^4.2.0",
34
+ "react-bootstrap": "^2.10.10",
35
+ "react-dropzone": "^14.3.8",
36
+ "react-google-charts": "^5.2.1",
37
+ "react-hook-form": "^7.67.0",
38
+ "react-intersection-observer": "^10.0.0",
39
+ "react-markdown": "^10.1.0",
40
+ "react-select": "^5.10.2",
41
+ "solodb-typescript-core": "https://github.com/jield-webdev/solodb-typescript-core.git",
42
+ "yet-another-react-lightbox": "^3.25.0"
43
+ },
44
+ "peerDependencies": {
45
+ "@tanstack/react-query": "^5.90",
46
+ "@tanstack/react-table": "^8.21",
47
+ "react": "^19",
48
+ "react-dom": "^19",
49
+ "react-router-dom": "^7.9"
50
+ },
51
+ "devDependencies": {
52
+ "@originjs/vite-plugin-commonjs": "^1.0.3",
53
+ "@tanstack/react-query": "~5.90.11",
54
+ "@tanstack/react-query-devtools": "~5.91.1",
55
+ "@tanstack/react-table": "^8.21.3",
56
+ "@testing-library/jest-dom": "^6.6.3",
57
+ "@testing-library/react": "^16.2.0",
58
+ "@testing-library/user-event": "^14.6.1",
59
+ "@types/node": "^22",
60
+ "@types/react": "^19.2.7",
61
+ "@types/react-dom": "^19.2.3",
62
+ "@types/react-router-dom": "^5.3.3",
63
+ "@vitejs/plugin-react": "^5.1.1",
64
+ "@vitest/coverage-v8": "^2.1.8",
65
+ "jsdom": "^26.0.0",
66
+ "prettier": "^3.7.3",
67
+ "prop-types": "^15.8.1",
68
+ "react": "^19.2.3",
69
+ "react-dom": "^19.2.3",
70
+ "react-router-dom": "^7.9.6",
71
+ "typescript": "^5.9.3",
72
+ "vite": "^7.2.4",
73
+ "vite-plugin-dts": "^4.3.0",
74
+ "vitest": "^2.1.8"
75
+ }
76
+ }