@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,35 @@
|
|
|
1
|
+
import { NotificationEntry } from '../../functions/goldstein/notifications';
|
|
2
|
+
export type WSPackage = {
|
|
3
|
+
package_type: number;
|
|
4
|
+
payload: string;
|
|
5
|
+
};
|
|
6
|
+
export declare enum ClientToServerMessage {
|
|
7
|
+
CONNECT = 1,
|
|
8
|
+
GET_DATA = 3,
|
|
9
|
+
UPDATE_LISTENING_DATA = 5
|
|
10
|
+
}
|
|
11
|
+
export declare enum ServerToClientMessage {
|
|
12
|
+
CONNECTION_RESPONSE = 2,
|
|
13
|
+
READ_DATA = 4
|
|
14
|
+
}
|
|
15
|
+
export type UpdateListeningData = {
|
|
16
|
+
listening_association: string;
|
|
17
|
+
sql_statement: string;
|
|
18
|
+
};
|
|
19
|
+
export type Connect = {
|
|
20
|
+
key: string;
|
|
21
|
+
};
|
|
22
|
+
export type ConnectionResponse = {
|
|
23
|
+
authorized: boolean;
|
|
24
|
+
};
|
|
25
|
+
export type ReadData = {
|
|
26
|
+
notifications_list: NotificationEntry[];
|
|
27
|
+
};
|
|
28
|
+
export declare function isWSPackage(data: any): data is WSPackage;
|
|
29
|
+
export declare function sendWsMessage(ws: WebSocket | null, msg: WSPackage): void;
|
|
30
|
+
interface HandledReadedDataIface {
|
|
31
|
+
(data: ReadData): void;
|
|
32
|
+
}
|
|
33
|
+
export declare function dataListener(event: any, readDataHandler: HandledReadedDataIface): void;
|
|
34
|
+
export declare function getWebSocket(serverUrl: string, apiKey: string): Promise<WebSocket>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function EquipmentConnected(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
goldsteinFQDN: string;
|
|
4
|
+
associationType: string;
|
|
5
|
+
associationID: number;
|
|
6
|
+
}
|
|
7
|
+
interface GoldsteinDataContextValue {
|
|
8
|
+
goldsteinData: Props;
|
|
9
|
+
setGoldsteinData: React.Dispatch<React.SetStateAction<Props>>;
|
|
10
|
+
}
|
|
11
|
+
export declare const GoldsteinDataContext: React.Context<GoldsteinDataContextValue | undefined>;
|
|
12
|
+
interface GoldsteinDataProviderProps {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
defaultData: Props;
|
|
15
|
+
}
|
|
16
|
+
export declare function GoldsteinDataProvider({ children, defaultData }: GoldsteinDataProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const useGoldsteinClientDataContext: () => GoldsteinDataContextValue;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function listAssociationItems(serverEndpoint: string): Promise<string[]>;
|
|
2
|
+
type AvailableEquipment = {
|
|
3
|
+
id: number;
|
|
4
|
+
mes_name: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function listAvailableEquipment(serverEndpoint: string): Promise<AvailableEquipment[]>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
type Status = {
|
|
2
|
+
id: number;
|
|
3
|
+
status: string;
|
|
4
|
+
front_color: string;
|
|
5
|
+
back_color: string;
|
|
6
|
+
sequence: number;
|
|
7
|
+
};
|
|
8
|
+
type ModuleStatus = {
|
|
9
|
+
id: number;
|
|
10
|
+
status: Status;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
type ModuleType = {
|
|
14
|
+
id: number;
|
|
15
|
+
type: string;
|
|
16
|
+
is_main_tool: boolean;
|
|
17
|
+
};
|
|
18
|
+
type Equipment = {
|
|
19
|
+
id: number;
|
|
20
|
+
name: string;
|
|
21
|
+
number: string;
|
|
22
|
+
mes_name: string;
|
|
23
|
+
active: boolean;
|
|
24
|
+
active_in_mes: boolean;
|
|
25
|
+
main_tool_module_id: number;
|
|
26
|
+
main_tool_latest_status_id: number;
|
|
27
|
+
};
|
|
28
|
+
export type Module = {
|
|
29
|
+
id: number;
|
|
30
|
+
name: string;
|
|
31
|
+
mes_name: string;
|
|
32
|
+
active: boolean;
|
|
33
|
+
equipment: Equipment;
|
|
34
|
+
type: ModuleType;
|
|
35
|
+
latest_module_status: ModuleStatus;
|
|
36
|
+
};
|
|
37
|
+
export declare function listGoldsteinEquipmentModules(serverEndpoint: string, equipmentID: number): Promise<Module[]>;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export type NotificationEntry = {
|
|
2
|
+
id: number;
|
|
3
|
+
association_item: AssociationEnum;
|
|
4
|
+
association_id: number;
|
|
5
|
+
timestamp: string;
|
|
6
|
+
message_type: Status;
|
|
7
|
+
message: string;
|
|
8
|
+
};
|
|
9
|
+
export declare enum AssociationEnum {
|
|
10
|
+
NOT_SET = "not_set",
|
|
11
|
+
EQUIPMENT = "equipment"
|
|
12
|
+
}
|
|
13
|
+
export declare enum Status {
|
|
14
|
+
CLIENT_CONNECTED = 1,
|
|
15
|
+
CARD_READED = 2,
|
|
16
|
+
USER_AUTHENTICATED = 3,
|
|
17
|
+
CLIENT_DISCONNECTED = 4
|
|
18
|
+
}
|
|
19
|
+
export type ClientStatus = {
|
|
20
|
+
status: Status;
|
|
21
|
+
timestamp: Date;
|
|
22
|
+
message: ClientStatusMessage;
|
|
23
|
+
};
|
|
24
|
+
type ClientStatusMessage = {
|
|
25
|
+
badgeUUID: string;
|
|
26
|
+
userID: number;
|
|
27
|
+
usable: boolean;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* With a Notification[] creates a map of the clients' statuses.
|
|
31
|
+
* Returns the latest notification of each client.
|
|
32
|
+
* If there is a notification with status 'Disconnect', delete it.
|
|
33
|
+
* If the notification TTL has expired, create the entry without a status.
|
|
34
|
+
* If there is a user authenticated with `usable = true`, use the loginTTL and overwrite future notifications.
|
|
35
|
+
*
|
|
36
|
+
* @param {NotificationEntry[]} notifications - Array of notifications from clients.
|
|
37
|
+
* @param {Date} currentTime - The current time in format
|
|
38
|
+
* @param {number} notificationsTTL - Time-to-live for notifications, in seconds.
|
|
39
|
+
* @param {number} loginTTL - TTL for login-based notifications, in seconds.
|
|
40
|
+
* @returns {Map<string, ClientStatus>} A map of client identifiers to their latest status.
|
|
41
|
+
*/
|
|
42
|
+
export declare function getClientsStatus(notifications: NotificationEntry[], currentTime: Date, notificationsTTL: number, loginTTL: number): Map<string, ClientStatus>;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseAssociation(assoc: string): [string, number];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function registerBadge(serverURL: string, badgeUID: string): Promise<string>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { NotificationEntry } from './notifications';
|
|
2
|
+
export type WSPackage = {
|
|
3
|
+
package_type: number;
|
|
4
|
+
payload: string;
|
|
5
|
+
};
|
|
6
|
+
export declare enum ClientToServerMessage {
|
|
7
|
+
CONNECT = 1,
|
|
8
|
+
GET_DATA = 3,
|
|
9
|
+
UPDATE_LISENING_DATA = 5
|
|
10
|
+
}
|
|
11
|
+
export declare enum ServerToClientMessage {
|
|
12
|
+
CONNECTION_RESPONSE = 2,
|
|
13
|
+
READED_DATA = 4
|
|
14
|
+
}
|
|
15
|
+
export type UpdateListeningData = {
|
|
16
|
+
listening_association: string;
|
|
17
|
+
sql_statement: string;
|
|
18
|
+
};
|
|
19
|
+
export type Connect = {
|
|
20
|
+
key: string;
|
|
21
|
+
};
|
|
22
|
+
export type ConnectionResponse = {
|
|
23
|
+
authorized: boolean;
|
|
24
|
+
};
|
|
25
|
+
export type ReadedData = {
|
|
26
|
+
notifications_list: NotificationEntry[];
|
|
27
|
+
};
|
|
28
|
+
export declare function isWSPackage(data: any): data is WSPackage;
|
|
29
|
+
export declare function sendWsMessage(ws: WebSocket | null, msg: WSPackage): void;
|
|
30
|
+
interface HandledReadedDataIface {
|
|
31
|
+
(data: ReadedData): void;
|
|
32
|
+
}
|
|
33
|
+
export declare function dataListener(event: any, readDataHandler: HandledReadedDataIface): void;
|
|
34
|
+
export declare function getWebSocket(serverUrl: string, apiKey: string): Promise<WebSocket>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ChemicalIntakeElement(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Room, Location } from 'solodb-typescript-core';
|
|
2
|
+
/**
|
|
3
|
+
* Checks if a string ends with "/l/" followed by an integer
|
|
4
|
+
* @param {string} url - The URL to check
|
|
5
|
+
* @returns {boolean} - True if the URL ends with "/l/" followed by an integer, false otherwise
|
|
6
|
+
*/
|
|
7
|
+
export declare function scannedCodeIsLocationCode(url: string): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Extracts the label number if the URL ends with "/l/" followed by an integer
|
|
10
|
+
* @param {string} url - The URL to check
|
|
11
|
+
* @returns {number|null} - The extracted number or null if pattern doesn't match
|
|
12
|
+
*/
|
|
13
|
+
export declare function extractLabelNumber(url: string): number | null;
|
|
14
|
+
export declare const AMOUNT_UNITS: {
|
|
15
|
+
value: string;
|
|
16
|
+
label: string;
|
|
17
|
+
}[];
|
|
18
|
+
export default function RegisterBarcodeElement({ room, barcode, resetForm, location, setLocation, }: {
|
|
19
|
+
room: Room;
|
|
20
|
+
barcode: string;
|
|
21
|
+
resetForm: () => void;
|
|
22
|
+
location: Location | null;
|
|
23
|
+
setLocation: (location: Location | null) => void;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Room, Location } from 'solodb-typescript-core';
|
|
2
|
+
export default function RegisterContainerElement({ room, resetForm, location, setLocation, }: {
|
|
3
|
+
room: Room;
|
|
4
|
+
resetForm: () => void;
|
|
5
|
+
location: Location | null;
|
|
6
|
+
setLocation: (location: Location | null) => void;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ChemicalHeaderElement(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Chemical } from 'solodb-typescript-core';
|
|
2
|
+
declare const CreateChemicalModal: ({ show, setShow, onChemicalCreate, }: {
|
|
3
|
+
show: boolean;
|
|
4
|
+
setShow: (set: boolean) => void;
|
|
5
|
+
onChemicalCreate: (chemical: Chemical) => void;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default CreateChemicalModal;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Room } from 'solodb-typescript-core';
|
|
2
|
+
interface LocationSelectorWithQRProps {
|
|
3
|
+
control: any;
|
|
4
|
+
name: string;
|
|
5
|
+
room: Room;
|
|
6
|
+
}
|
|
7
|
+
export default function LocationSelectorWithQR({ control, name, room }: LocationSelectorWithQRProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetServerUri: () => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Equipment, EquipmentModuleEcn, EquipmentModuleEcnAttachment } from 'solodb-typescript-core';
|
|
2
|
+
export default function EcnCard({ ecn, equipment, ecnAttachments, reloadQueryFn, }: {
|
|
3
|
+
ecn: EquipmentModuleEcn;
|
|
4
|
+
equipment: Equipment;
|
|
5
|
+
ecnAttachments: EquipmentModuleEcnAttachment[];
|
|
6
|
+
reloadQueryFn: (key: string[]) => void;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function EquipmentDashboard(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Equipment, EquipmentModuleIssue, EquipmentModuleIssueAttachment } from 'solodb-typescript-core';
|
|
2
|
+
export default function IssueCard({ issue, equipment, issueAttachments, reloadQueryFn, }: {
|
|
3
|
+
issue: EquipmentModuleIssue;
|
|
4
|
+
equipment: Equipment;
|
|
5
|
+
issueAttachments: EquipmentModuleIssueAttachment[];
|
|
6
|
+
reloadQueryFn: (key: string[]) => void;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function EquipmentHeaderElement(): import("react/jsx-runtime").JSX.Element;
|
package/dist/modules/equipment/components/goldsteinEquipmentDashboard/states/equipmentUsable.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface EquipmentUsableProps {
|
|
2
|
+
userName: string;
|
|
3
|
+
userID: number;
|
|
4
|
+
badgeUUID: string;
|
|
5
|
+
clientAssociation: string;
|
|
6
|
+
timeLeft: number;
|
|
7
|
+
}
|
|
8
|
+
export default function EquipmentUsable({ userName, userID, badgeUUID, clientAssociation, timeLeft, }: EquipmentUsableProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
package/dist/modules/equipment/components/goldsteinEquipmentDashboard/states/nullNotifications.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function NullNotifications(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ServerError(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function WaitingCardDetection(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function GoldsteinEquipmentDashboardWrapper(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Equipment, EquipmentModuleEcn, EquipmentModuleEcnAttachment } from 'solodb-typescript-core';
|
|
2
|
+
export default function EcnElement({ ecn, equipment, ecnAttachments, reloadQueryFn, expanded, }: {
|
|
3
|
+
ecn: EquipmentModuleEcn;
|
|
4
|
+
equipment: Equipment;
|
|
5
|
+
ecnAttachments: EquipmentModuleEcnAttachment[];
|
|
6
|
+
reloadQueryFn: (key: string[]) => void;
|
|
7
|
+
expanded?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Equipment, EquipmentModuleEcn, EquipmentModuleEcnAttachment } from 'solodb-typescript-core';
|
|
3
|
+
interface EcnModalFormProps {
|
|
4
|
+
equipment: Equipment;
|
|
5
|
+
showModal: boolean;
|
|
6
|
+
onClose: (equipmentModuleEcn?: EquipmentModuleEcn) => void;
|
|
7
|
+
ecn?: EquipmentModuleEcn;
|
|
8
|
+
attachments?: EquipmentModuleEcnAttachment[];
|
|
9
|
+
}
|
|
10
|
+
declare const EcnModalForm: React.FC<EcnModalFormProps>;
|
|
11
|
+
export default EcnModalForm;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function EquipmentHeader(): false | import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Equipment, EquipmentModuleIssue, EquipmentModuleIssueAttachment } from 'solodb-typescript-core';
|
|
2
|
+
export default function IssueElement({ issue, equipment, issueAttachments, reloadQueryFn, expanded, }: {
|
|
3
|
+
issue: EquipmentModuleIssue;
|
|
4
|
+
equipment: Equipment;
|
|
5
|
+
issueAttachments: EquipmentModuleIssueAttachment[];
|
|
6
|
+
reloadQueryFn: (key: string[]) => void;
|
|
7
|
+
expanded?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Equipment, EquipmentModuleIssue, EquipmentModuleIssueAttachment } from 'solodb-typescript-core';
|
|
3
|
+
interface IssueModalFormProps {
|
|
4
|
+
equipment: Equipment;
|
|
5
|
+
showModal: boolean;
|
|
6
|
+
onClose: (equipmentModuleIssue?: EquipmentModuleIssue) => void;
|
|
7
|
+
issue?: EquipmentModuleIssue;
|
|
8
|
+
attachments?: EquipmentModuleIssueAttachment[];
|
|
9
|
+
}
|
|
10
|
+
declare const IssueModalForm: React.FC<IssueModalFormProps>;
|
|
11
|
+
export default IssueModalForm;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EquipmentModule, EquipmentModuleIssue, EquipmentModuleIssueAttachment } from 'solodb-typescript-core';
|
|
2
|
+
interface IssueTableProps {
|
|
3
|
+
issues: EquipmentModuleIssue[];
|
|
4
|
+
modules: EquipmentModule[];
|
|
5
|
+
issueAttachments: EquipmentModuleIssueAttachment[];
|
|
6
|
+
reloadQueryFn: (key: string[]) => void;
|
|
7
|
+
}
|
|
8
|
+
export default function IssueTable({ issues, modules, issueAttachments, reloadQueryFn }: IssueTableProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { LocationMessage } from 'solodb-typescript-core';
|
|
3
|
+
interface MessageModalFormProps {
|
|
4
|
+
showModal: boolean;
|
|
5
|
+
onClose: (message: LocationMessage | undefined) => void;
|
|
6
|
+
message?: LocationMessage | undefined;
|
|
7
|
+
}
|
|
8
|
+
declare const MessageModalForm: React.FC<MessageModalFormProps>;
|
|
9
|
+
export default MessageModalForm;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Property = {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
};
|
|
5
|
+
export default function EditSortingPropertiesModal({ show, onClose, properties, blacklistedEquipmentProperties, setBlacklistedEquipmentProperties, }: {
|
|
6
|
+
show: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
properties: Property[];
|
|
9
|
+
blacklistedEquipmentProperties: string[];
|
|
10
|
+
setBlacklistedEquipmentProperties: React.Dispatch<React.SetStateAction<string[]>>;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { Equipment, FilterData } from 'solodb-typescript-core';
|
|
3
|
+
export default function EquipmentTable({ equipmentList, currentFilter, setEquipmentSort, addEquipment, }: {
|
|
4
|
+
equipmentList: Equipment[];
|
|
5
|
+
currentFilter: FilterData | undefined;
|
|
6
|
+
addEquipment: (equipment: Equipment) => void;
|
|
7
|
+
setEquipmentSort: Dispatch<SetStateAction<{
|
|
8
|
+
order: string;
|
|
9
|
+
direction?: "asc" | "desc";
|
|
10
|
+
}>>;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FilterData, FilterFormData } from 'solodb-typescript-core';
|
|
3
|
+
export declare function FilterBadges({ searchQuery, filter, filterForm, setFilterFn, }: {
|
|
4
|
+
searchQuery: string | undefined;
|
|
5
|
+
filter: FilterData | null;
|
|
6
|
+
filterForm: FilterFormData;
|
|
7
|
+
setFilterFn: React.Dispatch<React.SetStateAction<FilterData | undefined>>;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FilterData, FilterFormData } from 'solodb-typescript-core';
|
|
3
|
+
export default function FilterFormBar({ filterForm, filter, setFilterFn, }: {
|
|
4
|
+
filterForm: FilterFormData;
|
|
5
|
+
filter: FilterData | undefined;
|
|
6
|
+
setFilterFn: React.Dispatch<React.SetStateAction<FilterData | undefined>>;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FilterData, FilterFormData } from 'solodb-typescript-core';
|
|
2
|
+
export default function FilterFormColumn({ filterForm, filter, setFilterFn, }: {
|
|
3
|
+
filterForm: FilterFormData;
|
|
4
|
+
filter: FilterData | undefined;
|
|
5
|
+
setFilterFn: React.Dispatch<React.SetStateAction<FilterData | undefined>>;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Setup } from 'solodb-typescript-core/dist/equipment/interfaces/setup';
|
|
2
|
+
import { Equipment } from 'solodb-typescript-core';
|
|
3
|
+
export default function SelectedEquipmentTable({ setup, equipmentList, removeEquipment, refetchQueries, }: {
|
|
4
|
+
setup: Setup;
|
|
5
|
+
equipmentList: Equipment[];
|
|
6
|
+
removeEquipment: (equipment: Equipment) => void;
|
|
7
|
+
refetchQueries: (key: any[]) => void;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|