@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
|
@@ -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
|
+
}
|