@jield/solodb-react-components 1.2.0 → 1.2.2
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 +24 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +49 -0
- package/dist/index.js +6863 -5552
- package/dist/index.js.map +1 -1
- package/dist/{src/modules → modules}/admin/api/goldstein/wsHelper.d.ts +1 -1
- package/dist/{src/modules → modules}/chemical/components/chemical/registerBarcodeElement.d.ts +1 -1
- package/dist/{src/modules → modules}/core/contexts/scannerContext.d.ts +1 -1
- package/dist/modules/run/components/run/parent/editRunParents.d.ts +1 -0
- package/dist/modules/run/components/shared/parentRuns/parentRunSelect.d.ts +9 -0
- package/dist/modules/run/components/shared/parentRuns/partGrouping.d.ts +7 -0
- package/dist/modules/run/components/shared/parentRuns/partLevelFieldset.d.ts +10 -0
- package/dist/modules/run/components/shared/parentRuns/runPartPicker.d.ts +18 -0
- package/dist/modules/run/components/shared/parentRuns/selectedRunList.d.ts +7 -0
- package/dist/modules/run/components/wizard/createRunForm/createRunForm.d.ts +24 -0
- package/dist/modules/run/components/wizard/createRunForm/formSection.d.ts +6 -0
- package/dist/modules/run/components/wizard/createRunForm/organisationSelect.d.ts +18 -0
- package/dist/modules/run/components/wizard/createRunForm/selectionOverview.d.ts +9 -0
- package/dist/modules/run/components/wizard/getCreateRunErrorMessage.d.ts +1 -0
- package/dist/modules/run/components/wizard/substrateSelect.d.ts +12 -0
- package/dist/modules/run/components/wizard/wizardElement.d.ts +1 -0
- package/dist/{src/modules → modules}/run/contexts/runStepContext.d.ts +1 -1
- package/dist/modules/run/hooks/useParentRunSelection.d.ts +29 -0
- package/dist/modules/run/utils/buildRunParentPayloads.d.ts +13 -0
- package/dist/{src/modules → modules}/run/utils/runStepPartCache.d.ts +4 -1
- package/package.json +13 -13
- package/dist/src/index.d.ts +0 -1
- /package/dist/{src/modules → modules}/admin/components/goldsteinClientsDashboard/cardReadedValue.d.ts +0 -0
- /package/dist/{src/modules → modules}/admin/components/goldsteinClientsDashboard/equipmentConnected.d.ts +0 -0
- /package/dist/{src/modules → modules}/admin/components/goldsteinClientsDashboard/userAuthenticated.d.ts +0 -0
- /package/dist/{src/modules → modules}/admin/components/goldsteinClientsDashboard.d.ts +0 -0
- /package/dist/{src/modules → modules}/admin/context/goldstein/DataContext.d.ts +0 -0
- /package/dist/{src/modules → modules}/admin/functions/goldstein/listAssociation.d.ts +0 -0
- /package/dist/{src/modules → modules}/admin/functions/goldstein/listModules.d.ts +0 -0
- /package/dist/{src/modules → modules}/admin/functions/goldstein/listStatusOptions.d.ts +0 -0
- /package/dist/{src/modules → modules}/admin/functions/goldstein/notifications.d.ts +0 -0
- /package/dist/{src/modules → modules}/admin/functions/goldstein/parseAssociation.d.ts +0 -0
- /package/dist/{src/modules → modules}/admin/functions/goldstein/registerBadge.d.ts +0 -0
- /package/dist/{src/modules → modules}/admin/functions/goldstein/wsHelper.d.ts +0 -0
- /package/dist/{src/modules → modules}/chemical/components/chemical/barcodeScanElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/chemical/components/chemical/chemicalIntakeElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/chemical/components/chemical/registerContainerElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/chemical/components/chemicalHeaderElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/chemical/components/modal/createChemicalModal.d.ts +0 -0
- /package/dist/{src/modules → modules}/chemical/form/chemicalContainerMethodOfUseSelectFormElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/chemical/form/chemicalContainerPurposeSelectFormElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/chemical/form/chemicalContainerTypeSelectFormElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/chemical/form/chemicalSelectFormElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/chemical/form/locationSelectFormElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/chemical/form/roomSelectElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/chemical/utils/chemicalContainerUtils.d.ts +0 -0
- /package/dist/{src/modules → modules}/core/components/common/ErrorBoundary.d.ts +0 -0
- /package/dist/{src/modules → modules}/core/components/common/LoadingComponent.d.ts +0 -0
- /package/dist/{src/modules → modules}/core/config/runtimeConfig.d.ts +0 -0
- /package/dist/{src/modules → modules}/core/contexts/authContext.d.ts +0 -0
- /package/dist/{src/modules → modules}/core/form/element/userFormElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/core/hooks/useAuth.d.ts +0 -0
- /package/dist/{src/modules → modules}/core/interfaces/modalProperties.d.ts +0 -0
- /package/dist/{src/modules → modules}/core/providers/authProvider.d.ts +0 -0
- /package/dist/{src/modules → modules}/core/providers/scannerProvider.d.ts +0 -0
- /package/dist/{src/modules → modules}/core/utils/getServerUri.d.ts +0 -0
- /package/dist/{src/modules → modules}/core/utils/parseScannerType.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/dashboard/ecnCard.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/dashboard/equipmentDashboard.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/dashboard/issueCard.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/equipmentHeaderElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/goldsteinEquipmentDashboard/actionModules/updateStatus.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/goldsteinEquipmentDashboard/states/equipmentUsable.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/goldsteinEquipmentDashboard/states/noUserInCard.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/goldsteinEquipmentDashboard/states/nullNotifications.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/goldsteinEquipmentDashboard/states/serverError.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/goldsteinEquipmentDashboard/states/userNotAuthorized.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/goldsteinEquipmentDashboard/states/waitingCardDetection.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/goldsteinEquipmentDashboard.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/partial/ecnElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/partial/ecnModalForm.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/partial/equipmentHeader.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/partial/issueElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/partial/issueModalForm.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/partial/issueTable.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/partial/messageElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/partial/messageModalForm.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/partial/moduleStatusElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/partial/reservationElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/partial/sendStatusMail.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/setup/editSortingPropertiesModal.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/setup/equipmentModuleStatusWrapper.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/setup/equipmentTable.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/setup/filterBadges.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/setup/filterFormBar.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/setup/filterFormColum.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/setup/searchBox.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/setup/selectedEquipmentTable.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/setupUpdateEquipment.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/status-mail/statusMailEquipmentElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/status-mail/statusMailMessageElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/components/statusMailComponent.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/contexts/equipmentContext.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/contexts/statusMailContext.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/hooks/useEquipment.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/providers/equipmentProvider.d.ts +0 -0
- /package/dist/{src/modules → modules}/equipment/providers/statusMailProvider.d.ts +0 -0
- /package/dist/{src/modules → modules}/iris/components/IrisOperatorDashboard.d.ts +0 -0
- /package/dist/{src/modules → modules}/iris/components/irisOperatorDashboardUtils.d.ts +0 -0
- /package/dist/{src/modules → modules}/iris/components/operatorDashboard/IrisOperatorEventDetails.d.ts +0 -0
- /package/dist/{src/modules → modules}/iris/components/operatorDashboard/IrisOperatorEventList.d.ts +0 -0
- /package/dist/{src/modules → modules}/iris/components/operatorDashboard/irisOperatorEventDetailsUtils.d.ts +0 -0
- /package/dist/{src/modules → modules}/iris/hooks/useIrisStreamContextEvents.d.ts +0 -0
- /package/dist/{src/modules → modules}/monitor/components/monitor/monitorCard.d.ts +0 -0
- /package/dist/{src/modules → modules}/monitor/components/monitor/monitorHeaderElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/monitor/components/monitor/monitorPage.d.ts +0 -0
- /package/dist/{src/modules → modules}/monitor/components/monitor/requirement/addResultModal.d.ts +0 -0
- /package/dist/{src/modules → modules}/monitor/components/monitor/requirement/addStepParameterValueModal.d.ts +0 -0
- /package/dist/{src/modules → modules}/monitor/components/monitor/requirement/editStepParameterValueModal.d.ts +0 -0
- /package/dist/{src/modules → modules}/monitor/components/monitor/requirement/requirementChart.d.ts +0 -0
- /package/dist/{src/modules → modules}/monitor/components/monitor/requirement/requirementResults.d.ts +0 -0
- /package/dist/{src/modules → modules}/monitor/contexts/monitorContext.d.ts +0 -0
- /package/dist/{src/modules → modules}/monitor/hooks/useMonitor.d.ts +0 -0
- /package/dist/{src/modules → modules}/monitor/providers/monitorProvider.d.ts +0 -0
- /package/dist/{src/modules → modules}/partial/dateFormat.d.ts +0 -0
- /package/dist/{src/modules → modules}/partial/modal.d.ts +0 -0
- /package/dist/{src/modules → modules}/partial/paginationLinks.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/information/elements/runInformationGrid.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/information/elements/runUploadFiles.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/information/runInformationElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/layout/elements/runLayoutPartList.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/layout/elements/runLayoutTrayVisual.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/layout/elements/runStepInLayout.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/layout/runLayoutElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/partial/runHeader.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/partial/runTabs.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/runHeaderElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/steps/element/requirementDetails.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/steps/element/requirementStepInList.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/steps/element/stepDetails.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/steps/element/stepInList.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/run/steps/runStepsElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/files/uploadFilesToStep.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parameters/runStepParameterEditButton.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parameters/runStepParametersTable.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts/runPartIndicator.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts/runPartList/flatGrid.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts/runPartList/partCell.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts/runPartList/trayBulkActions.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts/runPartList/trayGrid.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts/runPartList.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts/runPartSlotDistribution.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts_table/element/partActionVariants.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts_table/element/partActionsButtons.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts_table/element/partActionsDropdown.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts_table/element/partSelectionControls.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts_table/element/runPartProductionActionsButtons.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts_table/element/runPartProductionActionsDropdown.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts_table/element/runPartProductionTableRow.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts_table/element/runStepPartComment.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts_table/runPartsQrFlow.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/parts_table/runPartsRegularFlow.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/requirement/fillValueModal.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/requirement/measurementResultsBadge.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/requirement/requirementValuesByStep.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/shared/requirement/requirementValuesWithPartTable.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/runStepHeaderElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/batchCardElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/checklist/checklistItemElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/checklist/checklistModal.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/hold-code/holdCodeModal.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/holdCodeBadge.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/logAssistElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/priorityBadge.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/process.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/rework.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/run-changelog/runChangelogButton.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/run-changelog/runChangelogModal.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/runStepChecklist.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/runStepChecklistExecute.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/runStepSimpleList.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/step-overview/requirementDetails.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/step-overview/requirementElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/step-overview/stepDetails.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/step-overview/stepElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/step-overview/stepOverviewButton.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/step-overview/stepOverviewModal.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/stepDashboard.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/stepLabel.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/element/stepRemark.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/runStepExecuteElement.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/components/step/view/runStepExecuteMinimal.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/contexts/emphasizedParametersContext.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/contexts/runContext.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/hooks/run/parts/usePartActions.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/hooks/run/parts/usePartSelection.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/hooks/run/parts/useQrPartNotifications.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/hooks/useRun.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/hooks/useRunStep.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/hooks/useSelectRunWithScanner.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/providers/emphasizedParametersProvider.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/providers/runProvider.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/providers/runStepProvider.d.ts +0 -0
- /package/dist/{src/modules → modules}/run/utils/isRunStepReadyForProcessing.d.ts +0 -0
- /package/dist/{src/modules → modules}/service/components/ReportResult.d.ts +0 -0
- /package/dist/{src/modules → modules}/service/components/equipmentReports/EquipmentServiceReports.d.ts +0 -0
- /package/dist/{src/modules → modules}/service/components/equipmentReports/ListEquipmentReport.d.ts +0 -0
- /package/dist/{src/modules → modules}/service/components/report/Category.d.ts +0 -0
- /package/dist/{src/modules → modules}/service/components/report/Criterion.d.ts +0 -0
- /package/dist/{src/setupTests.d.ts → setupTests.d.ts} +0 -0
- /package/dist/{src/utils → utils}/datetime.d.ts +0 -0
- /package/dist/{src/utils → utils}/keySequenceListener.d.ts +0 -0
- /package/dist/{src/utils → utils}/notification.d.ts +0 -0
- /package/dist/{src/utils → utils}/text.d.ts +0 -0
package/dist/{src/modules → modules}/chemical/components/chemical/registerBarcodeElement.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { Room, Location } from '@jield/solodb-typescript-core';
|
|
3
|
-
import { AMOUNT_UNITS, scannedCodeIsLocationCode, extractLabelNumber } from '
|
|
3
|
+
import { AMOUNT_UNITS, scannedCodeIsLocationCode, extractLabelNumber } from '../../utils/chemicalContainerUtils';
|
|
4
4
|
export { AMOUNT_UNITS, scannedCodeIsLocationCode, extractLabelNumber };
|
|
5
5
|
export default function RegisterBarcodeElement({ room, barcode, resetForm, location, setLocation, }: {
|
|
6
6
|
room: Room;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScannedKeysType } from '
|
|
1
|
+
import { ScannedKeysType } from '../utils/parseScannerType';
|
|
2
2
|
export interface ScannerContext {
|
|
3
3
|
lastlyReadedKeys: string;
|
|
4
4
|
addCallbackFn: (type: ScannedKeysType, id: string, fun: (readedKeys: string) => void) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function EditRunParents(): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Run } from '@jield/solodb-typescript-core';
|
|
2
|
+
import { ParentRunSelection } from '../../../hooks/useParentRunSelection';
|
|
3
|
+
type ParentRunSelectProps = {
|
|
4
|
+
selection: ParentRunSelection;
|
|
5
|
+
/** When given, only runs available as parent for this run are offered. */
|
|
6
|
+
run?: Run;
|
|
7
|
+
};
|
|
8
|
+
export default function ParentRunSelect({ selection, run }: ParentRunSelectProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RunPart } from '@jield/solodb-typescript-core';
|
|
2
|
+
export type PartLevelGroup = {
|
|
3
|
+
level: number;
|
|
4
|
+
parts: RunPart[];
|
|
5
|
+
};
|
|
6
|
+
export declare const groupPartsByLevel: (parts: RunPart[]) => PartLevelGroup[];
|
|
7
|
+
export declare const getPartLabel: (part: RunPart) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ParentRunSelection } from '../../../hooks/useParentRunSelection';
|
|
2
|
+
import { PartLevelGroup } from './partGrouping';
|
|
3
|
+
type PartLevelFieldsetProps = {
|
|
4
|
+
runId: number;
|
|
5
|
+
group: PartLevelGroup;
|
|
6
|
+
selection: ParentRunSelection;
|
|
7
|
+
experimentalEdit: boolean;
|
|
8
|
+
};
|
|
9
|
+
export default function PartLevelFieldset({ runId, group, selection, experimentalEdit }: PartLevelFieldsetProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Run } from '@jield/solodb-typescript-core';
|
|
2
|
+
import { ParentRunSelection } from '../../../hooks/useParentRunSelection';
|
|
3
|
+
import { PartLevelGroup } from './partGrouping';
|
|
4
|
+
type RunPartPickerProps = {
|
|
5
|
+
run: Run;
|
|
6
|
+
selection: ParentRunSelection;
|
|
7
|
+
partGroups: PartLevelGroup[];
|
|
8
|
+
isLoadingParts: boolean;
|
|
9
|
+
experimentalEdit: boolean;
|
|
10
|
+
onToggleExperimentalEdit: () => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Description and part selection for a single parent run, grouped by part
|
|
14
|
+
* level. Parts can be picked as plain badges or, in experimental-edit mode,
|
|
15
|
+
* with a split amount per part.
|
|
16
|
+
*/
|
|
17
|
+
export default function RunPartPicker({ run, selection, partGroups, isLoadingParts, experimentalEdit, onToggleExperimentalEdit, }: RunPartPickerProps): import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Run } from '@jield/solodb-typescript-core';
|
|
2
|
+
type SelectedRunListProps = {
|
|
3
|
+
selectedRuns: Run[];
|
|
4
|
+
onDeselect: (runId: number) => void;
|
|
5
|
+
};
|
|
6
|
+
export default function SelectedRunList({ selectedRuns, onDeselect }: SelectedRunListProps): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Run } from '@jield/solodb-typescript-core';
|
|
2
|
+
import { SelectedSubstrate } from '../substrateSelect';
|
|
3
|
+
export type CreateRunFormValues = {
|
|
4
|
+
name: string;
|
|
5
|
+
motivation: string;
|
|
6
|
+
groupId: number;
|
|
7
|
+
teamId: number;
|
|
8
|
+
projectId: number;
|
|
9
|
+
parts: number;
|
|
10
|
+
location: string;
|
|
11
|
+
conclusion: string;
|
|
12
|
+
runType: "research" | "production";
|
|
13
|
+
};
|
|
14
|
+
type CreateRunFormProps = {
|
|
15
|
+
isSubmitting: boolean;
|
|
16
|
+
errorMessage?: string;
|
|
17
|
+
selectedRuns: Run[];
|
|
18
|
+
selectedSubstrates: SelectedSubstrate[];
|
|
19
|
+
partIdsByRunId: Record<number, number[]>;
|
|
20
|
+
onBack: () => void;
|
|
21
|
+
onSubmit: (values: CreateRunFormValues) => void;
|
|
22
|
+
};
|
|
23
|
+
export default function CreateRunForm({ isSubmitting, errorMessage, selectedRuns, selectedSubstrates, partIdsByRunId, onBack, onSubmit, }: CreateRunFormProps): import("react").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type OrganisationOption = {
|
|
2
|
+
id: number;
|
|
3
|
+
label: string;
|
|
4
|
+
};
|
|
5
|
+
type OrganisationSelectProps = {
|
|
6
|
+
controlId: string;
|
|
7
|
+
/** Capitalized singular entity name, e.g. "Group". */
|
|
8
|
+
label: string;
|
|
9
|
+
options: OrganisationOption[];
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
value: number | null;
|
|
12
|
+
onChange: (id: number | null) => void;
|
|
13
|
+
showError: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
helpText: string;
|
|
16
|
+
};
|
|
17
|
+
export default function OrganisationSelect({ controlId, label, options, isLoading, value, onChange, showError, disabled, helpText, }: OrganisationSelectProps): import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Run } from '@jield/solodb-typescript-core';
|
|
2
|
+
import { SelectedSubstrate } from '../substrateSelect';
|
|
3
|
+
type SelectionOverviewProps = {
|
|
4
|
+
selectedRuns: Run[];
|
|
5
|
+
selectedSubstrates: SelectedSubstrate[];
|
|
6
|
+
partIdsByRunId: Record<number, number[]>;
|
|
7
|
+
};
|
|
8
|
+
export default function SelectionOverview({ selectedRuns, selectedSubstrates, partIdsByRunId, }: SelectionOverviewProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCreateRunErrorMessage: (error: unknown) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Substrate } from '@jield/solodb-typescript-core';
|
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
export type SelectedSubstrate = {
|
|
4
|
+
substrate: Substrate;
|
|
5
|
+
amount: number;
|
|
6
|
+
};
|
|
7
|
+
type SubstrateSelectProps = {
|
|
8
|
+
selectedSubstrates: SelectedSubstrate[];
|
|
9
|
+
setSelectedSubstrates: Dispatch<SetStateAction<SelectedSubstrate[]>>;
|
|
10
|
+
};
|
|
11
|
+
export default function SubstrateSelect({ selectedSubstrates, setSelectedSubstrates }: SubstrateSelectProps): import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function NewRunWizard(): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModalProperties } from '
|
|
1
|
+
import { ModalProperties } from '../../core/interfaces/modalProperties';
|
|
2
2
|
import { RunStep, Run } from '@jield/solodb-typescript-core';
|
|
3
3
|
interface RunStepContext {
|
|
4
4
|
runStep: RunStep;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Run } from '@jield/solodb-typescript-core';
|
|
2
|
+
/**
|
|
3
|
+
* The data slices of a parent-run selection. This is the snapshot consumers
|
|
4
|
+
* pass to mutations (see buildRunParentPayloads).
|
|
5
|
+
*/
|
|
6
|
+
export interface ParentRunSelectionState {
|
|
7
|
+
selectedRuns: Run[];
|
|
8
|
+
partIdsByRunId: Record<number, number[]>;
|
|
9
|
+
amountPerPartByRunId: Record<number, Record<number, number>>;
|
|
10
|
+
descriptionsByRunId: Record<number, string>;
|
|
11
|
+
}
|
|
12
|
+
export interface ParentRunSelection extends ParentRunSelectionState {
|
|
13
|
+
selectRun: (run: Run) => void;
|
|
14
|
+
deselectRun: (runId: number) => void;
|
|
15
|
+
getSelectedPartIds: (runId: number) => number[];
|
|
16
|
+
isPartSelected: (runId: number, partId: number) => boolean;
|
|
17
|
+
setRunPartIds: (runId: number, partIds: number[]) => void;
|
|
18
|
+
togglePart: (runId: number, partId: number) => void;
|
|
19
|
+
setPartsSelected: (runId: number, partIds: number[], selected: boolean) => void;
|
|
20
|
+
getPartAmount: (runId: number, partId: number) => number;
|
|
21
|
+
setPartAmount: (runId: number, partId: number, amount: number) => void;
|
|
22
|
+
setDescription: (runId: number, description: string) => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* State for selecting parent runs together with their parts, experimental
|
|
26
|
+
* split amounts and descriptions. Shared by the new-run wizard and the
|
|
27
|
+
* edit-run-parents view.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useParentRunSelection(): ParentRunSelection;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ParentRunSelectionState } from '../hooks/useParentRunSelection';
|
|
2
|
+
export type RunParentPayload = {
|
|
3
|
+
run_id: number;
|
|
4
|
+
parent_run_id: number;
|
|
5
|
+
part_ids: number[];
|
|
6
|
+
amount_per_part: Record<number, number> | null;
|
|
7
|
+
description: string | null;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Builds one createRunParent payload per selected parent run. Parts without an
|
|
11
|
+
* explicit experimental split amount default to 1.
|
|
12
|
+
*/
|
|
13
|
+
export declare function buildRunParentPayloads(runId: number, selection: ParentRunSelectionState): RunParentPayload[];
|
|
@@ -7,7 +7,10 @@ type UpdateRunStepPartCacheOptions = {
|
|
|
7
7
|
type UpdateRunStepPartCacheByRunStepOptions = UpdateRunStepPartCacheOptions | {
|
|
8
8
|
latestActions: RunStepPartState[] | ApiFormattedResponse<RunStepPartState>;
|
|
9
9
|
};
|
|
10
|
+
type UpsertRunStepPartCacheOptions = {
|
|
11
|
+
updateSubsequent?: boolean;
|
|
12
|
+
};
|
|
10
13
|
export declare const updateRunStepPartCache: (queryClient: QueryClient, options: UpdateRunStepPartCacheOptions) => void;
|
|
11
14
|
export declare const updateRunStepPartCacheByRunStep: (queryClient: QueryClient, runStep: RunStep, options: UpdateRunStepPartCacheByRunStepOptions) => void;
|
|
12
|
-
export declare const upsertRunStepPartCache: (queryClient: QueryClient, runStep: RunStep, runStepPart: RunStepPart) => void;
|
|
15
|
+
export declare const upsertRunStepPartCache: (queryClient: QueryClient, runStep: RunStep, runStepPart: RunStepPart, options?: UpsertRunStepPartCacheOptions) => void;
|
|
13
16
|
export {};
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jield/solodb-react-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": "jield-webdev/solodb-react-components",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
|
-
"types": "./dist/
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
9
|
"sideEffects": false,
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
-
"types": "./dist/
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
13
|
"import": "./dist/index.js",
|
|
14
14
|
"require": "./dist/index.cjs",
|
|
15
15
|
"default": "./dist/index.js"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"coverage": "vitest run --coverage"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@jield/solodb-typescript-core": "1.2.
|
|
30
|
+
"@jield/solodb-typescript-core": "1.2.2",
|
|
31
31
|
"@testing-library/dom": "^10.4.1",
|
|
32
32
|
"moment": "^2.30.1",
|
|
33
33
|
"moment-timezone": "^0.6.2",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"react-bootstrap": "^2.10.10",
|
|
36
36
|
"react-dropzone": "^15.0.0",
|
|
37
37
|
"react-google-charts": "^5.2.1",
|
|
38
|
-
"react-hook-form": "^7.
|
|
38
|
+
"react-hook-form": "^7.79.0",
|
|
39
39
|
"react-intersection-observer": "^10.0.3",
|
|
40
40
|
"react-markdown": "^10.1.0",
|
|
41
41
|
"react-select": "^5.10.2",
|
|
@@ -57,23 +57,23 @@
|
|
|
57
57
|
"@testing-library/jest-dom": "^6.9.1",
|
|
58
58
|
"@testing-library/react": "^16.3.2",
|
|
59
59
|
"@testing-library/user-event": "^14.6.1",
|
|
60
|
-
"@types/node": "^25.9.
|
|
61
|
-
"@types/react": "^19.2.
|
|
60
|
+
"@types/node": "^25.9.3",
|
|
61
|
+
"@types/react": "^19.2.17",
|
|
62
62
|
"@types/react-dom": "^19.2.3",
|
|
63
63
|
"@types/react-router-dom": "^5.3.3",
|
|
64
64
|
"@vitejs/plugin-react": "^6.0.2",
|
|
65
|
-
"@vitest/coverage-v8": "^4.1.
|
|
66
|
-
"axios": "^1.
|
|
65
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
66
|
+
"axios": "^1.18.0",
|
|
67
67
|
"jsdom": "^29.1.1",
|
|
68
|
-
"prettier": "^3.8.
|
|
68
|
+
"prettier": "^3.8.4",
|
|
69
69
|
"prop-types": "^15.8.1",
|
|
70
70
|
"react": "^19.2.7",
|
|
71
71
|
"react-dom": "^19.2.7",
|
|
72
|
-
"react-router-dom": "^7.
|
|
72
|
+
"react-router-dom": "^7.18.0",
|
|
73
73
|
"typescript": "^6.0.3",
|
|
74
74
|
"vite": "^8.0.16",
|
|
75
75
|
"vite-plugin-dts": "^5.0.2",
|
|
76
|
-
"vitest": "^4.1.
|
|
76
|
+
"vitest": "^4.1.9"
|
|
77
77
|
},
|
|
78
|
-
"packageManager": "yarn@4.
|
|
78
|
+
"packageManager": "yarn@4.17.0"
|
|
79
79
|
}
|
package/dist/src/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/modules → modules}/chemical/components/chemical/chemicalIntakeElement.d.ts
RENAMED
|
File without changes
|
/package/dist/{src/modules → modules}/chemical/components/chemical/registerContainerElement.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/modules → modules}/chemical/form/chemicalContainerPurposeSelectFormElement.d.ts
RENAMED
|
File without changes
|
/package/dist/{src/modules → modules}/chemical/form/chemicalContainerTypeSelectFormElement.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/modules → modules}/equipment/components/dashboard/equipmentDashboard.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/modules → modules}/equipment/components/setup/editSortingPropertiesModal.d.ts
RENAMED
|
File without changes
|
/package/dist/{src/modules → modules}/equipment/components/setup/equipmentModuleStatusWrapper.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/modules → modules}/equipment/components/setup/selectedEquipmentTable.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/modules → modules}/equipment/components/status-mail/statusMailMessageElement.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/modules → modules}/iris/components/operatorDashboard/IrisOperatorEventList.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/modules → modules}/monitor/components/monitor/requirement/addResultModal.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/modules → modules}/monitor/components/monitor/requirement/requirementChart.d.ts
RENAMED
|
File without changes
|
/package/dist/{src/modules → modules}/monitor/components/monitor/requirement/requirementResults.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/modules → modules}/run/components/run/information/elements/runUploadFiles.d.ts
RENAMED
|
File without changes
|
/package/dist/{src/modules → modules}/run/components/run/information/runInformationElement.d.ts
RENAMED
|
File without changes
|
/package/dist/{src/modules → modules}/run/components/run/layout/elements/runLayoutPartList.d.ts
RENAMED
|
File without changes
|
/package/dist/{src/modules → modules}/run/components/run/layout/elements/runLayoutTrayVisual.d.ts
RENAMED
|
File without changes
|
/package/dist/{src/modules → modules}/run/components/run/layout/elements/runStepInLayout.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/modules → modules}/run/components/run/steps/element/requirementDetails.d.ts
RENAMED
|
File without changes
|
/package/dist/{src/modules → modules}/run/components/run/steps/element/requirementStepInList.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/modules → modules}/run/components/shared/parameters/runStepParametersTable.d.ts
RENAMED
|
File without changes
|