@olenbetong/synergi-react 4.3.1 → 5.1.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/dist/styles/styles.css +1 -1
- package/dist/styles/styles.css.map +1 -1
- package/es/components/Checkbox/index.js +1 -9
- package/es/components/FilePond.js +3 -12
- package/es/components/ImageEditor/plugins/redactPlugin/useRedactTool.js +18 -14
- package/es/components/ImageEditor/useImageHistory.js +13 -1
- package/es/components/MergeProgressDialog/MergeProgressDialogDs.d.ts +7 -0
- package/es/components/MergeProgressDialog/MergeProgressDialogDs.js +20 -0
- package/es/components/MergeProgressDialog/index.d.ts +3 -8
- package/es/components/MergeProgressDialog/index.js +4 -133
- package/es/components/MergeProgressDialog/useMergeJob.d.ts +36 -0
- package/es/components/MergeProgressDialog/useMergeJob.js +142 -0
- package/es/components/Portal/index.js +20 -20
- package/es/components/ProgressBar/index.css +1 -1
- package/es/components/SplitContainer/index.js +3 -1
- package/es/components/Toolbar/index.js +6 -1
- package/es/elements/ElementLookupDialog/BarcodeScanner/BarcodeScanner.css +81 -0
- package/es/elements/ElementLookupDialog/BarcodeScanner/DeadIcon.d.ts +2 -2
- package/es/elements/ElementLookupDialog/BarcodeScanner/DeadIcon.js +1 -2
- package/es/elements/ElementLookupDialog/BarcodeScanner/Error.js +3 -29
- package/es/elements/ElementLookupDialog/BarcodeScanner/decoders/zxing.js +8 -0
- package/es/elements/ElementLookupDialog/BarcodeScanner/index.d.ts +1 -0
- package/es/elements/ElementLookupDialog/BarcodeScanner/index.js +3 -28
- package/es/elements/ElementLookupDialog/HIDScanner/useHIDScanner.js +3 -1
- package/es/elements-ds/DescriptionInput.d.ts +16 -0
- package/es/elements-ds/DescriptionInput.js +41 -0
- package/es/elements-ds/DuplicateElementDamage.d.ts +40 -0
- package/es/elements-ds/DuplicateElementDamage.js +57 -0
- package/es/elements-ds/ElementLookup.d.ts +23 -0
- package/es/elements-ds/ElementLookup.js +35 -0
- package/es/elements-ds/ElementLookupDialog.d.ts +7 -0
- package/es/elements-ds/ElementLookupDialog.js +84 -0
- package/es/elements-ds/FormFields.d.ts +43 -0
- package/es/elements-ds/FormFields.js +67 -0
- package/es/elements-ds/HIDScanner.d.ts +7 -0
- package/es/elements-ds/HIDScanner.js +36 -0
- package/es/elements-ds/ManualForm.d.ts +7 -0
- package/es/elements-ds/ManualForm.js +70 -0
- package/es/elements-ds/ProjectSelect.d.ts +28 -0
- package/es/elements-ds/ProjectSelect.js +45 -0
- package/es/elements-ds/elements-ds.css +157 -0
- package/es/elements-ds/index.d.ts +12 -0
- package/es/elements-ds/index.js +14 -0
- package/es/index.css +1 -1
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/mui/index.d.ts +1 -0
- package/es/mui/index.js +1 -0
- package/es/useTranslation/index.js +5 -3
- package/package.json +34 -15
- package/src/chrome/AppShell/AppShell.test.tsx +48 -0
- package/src/chrome/openReport.test.ts +50 -0
- package/src/colorScheme.test.ts +188 -0
- package/src/components/Checkbox/Checkbox.browser.test.tsx +116 -0
- package/src/components/Checkbox/index.tsx +1 -10
- package/src/components/ColorCard/ColorCard.test.tsx +34 -0
- package/src/components/DateNavigator/DateNavigator.test.tsx +175 -0
- package/src/components/FilePond.browser.test.tsx +389 -0
- package/src/components/FilePond.tsx +3 -12
- package/src/components/ImageEditor/ImageEditor.browser.test.tsx +286 -0
- package/src/components/ImageEditor/ImageEditor.test.tsx +299 -0
- package/src/components/ImageEditor/plugins/cropPlugin/useCropTool.test.ts +225 -0
- package/src/components/ImageEditor/plugins/plugins.browser.test.ts +252 -0
- package/src/components/ImageEditor/plugins/redactPlugin/useRedactTool.test.ts +89 -0
- package/src/components/ImageEditor/plugins/redactPlugin/useRedactTool.ts +16 -13
- package/src/components/ImageEditor/plugins/zoomPlugin/useZoomPan.test.ts +154 -0
- package/src/components/ImageEditor/useEdgeDetection.test.ts +96 -0
- package/src/components/ImageEditor/useImageHistory.test.ts +409 -0
- package/src/components/ImageEditor/useImageHistory.ts +10 -1
- package/src/components/ImageEditor/useOpenCV.test.ts +208 -0
- package/src/components/MergeProgressDialog/MergeProgressDialogDs.browser.test.tsx +156 -0
- package/src/components/MergeProgressDialog/MergeProgressDialogDs.tsx +92 -0
- package/src/components/MergeProgressDialog/index.tsx +5 -158
- package/src/components/MergeProgressDialog/useMergeJob.test.ts +326 -0
- package/src/components/MergeProgressDialog/useMergeJob.ts +170 -0
- package/src/components/PdfViewer/PdfViewer.browser.test.tsx +78 -0
- package/src/components/Portal/Portal.test.tsx +106 -0
- package/src/components/Portal/index.tsx +22 -25
- package/src/components/ProgressBar/index.scss +23 -54
- package/src/components/Sidebar/Sidebar.browser.test.tsx +57 -0
- package/src/components/Sidebar/Sidebar.test.tsx +123 -0
- package/src/components/SplitContainer/SplitContainer.browser.test.tsx +304 -0
- package/src/components/SplitContainer/index.tsx +3 -1
- package/src/components/Toolbar/Toolbar.test.tsx +216 -0
- package/src/components/Toolbar/ToolbarBreadcrumbs.browser.test.tsx +137 -0
- package/src/components/Toolbar/index.tsx +6 -1
- package/src/components/ValueToggleGroup/ValueToggleGroup.test.tsx +112 -0
- package/src/elements/ElementLookupDialog/BarcodeScanner/BarcodeScanner.browser.test.tsx +175 -0
- package/src/elements/ElementLookupDialog/BarcodeScanner/BarcodeScanner.css +81 -0
- package/src/elements/ElementLookupDialog/BarcodeScanner/DeadIcon.tsx +4 -4
- package/src/elements/ElementLookupDialog/BarcodeScanner/Error.tsx +7 -36
- package/src/elements/ElementLookupDialog/BarcodeScanner/decoders/zxing.ts +8 -0
- package/src/elements/ElementLookupDialog/BarcodeScanner/engines.browser.test.ts +225 -0
- package/src/elements/ElementLookupDialog/BarcodeScanner/index.tsx +20 -49
- package/src/elements/ElementLookupDialog/HIDScanner/useHIDScanner.test.ts +124 -0
- package/src/elements/ElementLookupDialog/HIDScanner/useHIDScanner.ts +2 -1
- package/src/elements/ElementLookupDialog/getElement.test.ts +133 -0
- package/src/elements/ElementLookupDialog/utils/Giai.test.ts +53 -0
- package/src/elements-ds/DamageForm.browser.test.tsx +530 -0
- package/src/elements-ds/DescriptionInput.tsx +114 -0
- package/src/elements-ds/DuplicateElementDamage.tsx +185 -0
- package/src/elements-ds/ElementLookup.tsx +114 -0
- package/src/elements-ds/ElementLookupDialog.browser.test.tsx +207 -0
- package/src/elements-ds/ElementLookupDialog.tsx +196 -0
- package/src/elements-ds/FormFields.tsx +176 -0
- package/src/elements-ds/HIDScanner.tsx +53 -0
- package/src/elements-ds/ManualForm.tsx +129 -0
- package/src/elements-ds/ProjectSelect.tsx +120 -0
- package/src/elements-ds/elements-ds.css +157 -0
- package/src/elements-ds/index.ts +16 -0
- package/src/i18n.test.ts +31 -0
- package/src/index.ts +5 -1
- package/src/mui/index.ts +1 -0
- package/src/test/fakeCamera.ts +98 -0
- package/src/test/fakeDataApi.ts +90 -0
- package/src/test/setup.browser.ts +21 -0
- package/src/test/setup.ts +15 -0
- package/src/useTranslation/index.ts +5 -3
- package/src/useTranslation/useTranslation.test.ts +128 -0
- package/es/elements/ElementLookupDialog/BarcodeScanner/decoders.test.d.ts +0 -1
- package/es/elements/ElementLookupDialog/BarcodeScanner/decoders.test.js +0 -103
- package/es/test/setup.d.ts +0 -1
- package/es/test/setup.js +0 -6
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Alert, Button, Dialog, Tabs } from "@digdir/designsystemet-react";
|
|
3
|
+
import { MobileIcon, PencilIcon, PlusIcon, QrCodeScanningIcon, TrashIcon } from "@navikt/aksel-icons";
|
|
4
|
+
import { ItemList, ResponsiveDialog } from "@olenbetong/appframe-ds";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { BarcodeScanner } from "../elements/ElementLookupDialog/BarcodeScanner/index.js";
|
|
7
|
+
import { getElement } from "../elements/ElementLookupDialog/getElement.js";
|
|
8
|
+
import { useBeeper } from "../elements/ElementLookupDialog/utils/beep.js";
|
|
9
|
+
import Giai from "../elements/ElementLookupDialog/utils/Giai.js";
|
|
10
|
+
import { getLocalizedString, localize } from "../i18n.js";
|
|
11
|
+
import { AddElementHIDScanner } from "./HIDScanner.js";
|
|
12
|
+
import { AddElementManualForm } from "./ManualForm.js";
|
|
13
|
+
/**
|
|
14
|
+
* Picks elements by camera, HID scanner or (outside search mode) manual entry. Designsystemet
|
|
15
|
+
* version of `ElementLookupDialog` in `@olenbetong/synergi-react/elements`, with the same props.
|
|
16
|
+
*/
|
|
17
|
+
export function ElementLookupDialog(props) {
|
|
18
|
+
let { open, onClose, initialTab, decoder, scannerActions } = props;
|
|
19
|
+
let [tab, setTab] = useState(initialTab ?? "camera");
|
|
20
|
+
let [elements, setElements] = useState([]);
|
|
21
|
+
let [recent, setRecent] = useState(null);
|
|
22
|
+
let [adding, setAdding] = useState(false);
|
|
23
|
+
let beeper = useBeeper();
|
|
24
|
+
// Opening the dialog selects the tab the caller asked for (and so does mounting it open, above),
|
|
25
|
+
// adjusted during render.
|
|
26
|
+
let [wasOpen, setWasOpen] = useState(open);
|
|
27
|
+
if (open !== wasOpen) {
|
|
28
|
+
setWasOpen(open);
|
|
29
|
+
if (open && initialTab) {
|
|
30
|
+
setTab(initialTab);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
async function handleElementAdd(element, mode) {
|
|
34
|
+
try {
|
|
35
|
+
let record = typeof element === "string" ? await getElement(element.replace("\u001d", ""), { mode }) : element;
|
|
36
|
+
setElements((current) => {
|
|
37
|
+
let now = Date.now();
|
|
38
|
+
let exists = current.some((e) => e.element.ElementID === record.ElementID);
|
|
39
|
+
let updated;
|
|
40
|
+
if (exists) {
|
|
41
|
+
updated = current.map((e) => (e.element.ElementID === record.ElementID ? { ...e, scanTime: now } : e));
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
beeper();
|
|
45
|
+
updated =
|
|
46
|
+
props.mode === "multi"
|
|
47
|
+
? [{ element: record, mode, scanTime: now }, ...current]
|
|
48
|
+
: [{ element: record, mode, scanTime: now }];
|
|
49
|
+
}
|
|
50
|
+
if (props.mode === "multi") {
|
|
51
|
+
updated.sort((a, b) => (b.scanTime ?? 0) - (a.scanTime ?? 0));
|
|
52
|
+
}
|
|
53
|
+
return updated;
|
|
54
|
+
});
|
|
55
|
+
setRecent(record.ElementID);
|
|
56
|
+
setTimeout(() => setRecent((current) => (current === record.ElementID ? null : current)), 600);
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
alert(error.message);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
let currentTab = tab === "manual" && props.mode === "search" ? "camera" : tab;
|
|
63
|
+
async function handleConfirm() {
|
|
64
|
+
try {
|
|
65
|
+
setAdding(true);
|
|
66
|
+
if (props.mode === "multi") {
|
|
67
|
+
await props.onAdd(elements);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
await props.onAdd(elements[0]);
|
|
71
|
+
}
|
|
72
|
+
setElements([]);
|
|
73
|
+
setAdding(false);
|
|
74
|
+
onClose();
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
setAdding(false);
|
|
78
|
+
alert(error.message);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return (_jsxs(ResponsiveDialog, { open: open, onClose: onClose, closeButton: false, children: [_jsxs(Dialog.Block, { className: "ObElementsLookupDialog-body", children: [_jsx(Tabs, { value: currentTab, onChange: (value) => setTab(value), className: "ObElementsLookupDialog-tabs", children: _jsxs(Tabs.List, { children: [props.mode !== "search" && (_jsxs(Tabs.Tab, { value: "manual", children: [_jsx(PencilIcon, { "aria-hidden": true }), getLocalizedString("Manual")] })), _jsxs(Tabs.Tab, { value: "scanner", children: [_jsx(MobileIcon, { "aria-hidden": true }), getLocalizedString("Scanner")] }), _jsxs(Tabs.Tab, { value: "camera", children: [_jsx(QrCodeScanningIcon, { "aria-hidden": true }), getLocalizedString("Camera")] })] }) }), currentTab === "camera" && (_jsx("div", { className: "ObElementsLookupDialog-source", children: _jsx(BarcodeScanner, { decoder: decoder, actions: scannerActions, onRead: (element) => handleElementAdd(element, "camera-barcode") }) })), currentTab === "manual" && (_jsx("div", { className: "ObElementsLookupDialog-manual", children: _jsx(AddElementManualForm, { mode: props.mode === "multi" ? "multi" : "single", onAdd: (element) => handleElementAdd(element, "manual"), allowEmptyElement: props.allowEmptyElement }) })), currentTab === "scanner" && (_jsx("div", { className: "ObElementsLookupDialog-source", children: _jsx(AddElementHIDScanner, { onScan: (element) => handleElementAdd(element, element.startsWith(Giai.BARCODE_PREFIX) ? "hid-barcode" : "hid-rfid") }) })), _jsxs("div", { className: "ObElementsLookupDialog-list", children: [props.mode === "multi" && (_jsx(Alert, { "data-color": "info", "data-size": "sm", children: localize `${elements.length} elements selected` })), _jsx(ItemList, { children: elements.map(({ element }) => (_jsxs(ItemList.Item, { className: "ObElementsLookupDialog-item", "data-recent": recent === element.ElementID || undefined, children: [_jsx(ItemList.ItemText, { primary: element.DisplayName || element.ProjectName, secondary: element.ElementID || element.ProjectID }), _jsx(Button, { "data-color": "danger", variant: "tertiary", icon: true, "aria-label": getLocalizedString("Remove"), onClick: () => {
|
|
82
|
+
setElements((current) => props.mode === "multi" ? current.filter((e) => e.element.ElementID !== element.ElementID) : []);
|
|
83
|
+
}, children: _jsx(TrashIcon, { "aria-hidden": true }) })] }, element.ElementID || element.ProjectID))) })] })] }), _jsxs(Dialog.Block, { className: "ObElementsLookupDialog-actions", children: [_jsx(Button, { variant: "tertiary", onClick: onClose, children: getLocalizedString("Cancel") }), _jsxs(Button, { variant: "primary", loading: adding, disabled: !elements.length, onClick: handleConfirm, children: [!adding && _jsx(PlusIcon, { "aria-hidden": true }), props.mode === "search" ? getLocalizedString("Search for element") : getLocalizedString("Add element")] })] })] }));
|
|
84
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export { HiddenDamageFields } from "../elements/ElementDamage/HiddenDamageFields.js";
|
|
2
|
+
export type ElementNumberTextFieldProps = {
|
|
3
|
+
value?: string | null;
|
|
4
|
+
defaultValue?: string | null;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
/** Designsystemet version of `ElementNumberTextField` in `@olenbetong/synergi-react/elements`. */
|
|
10
|
+
export declare function ElementNumberTextField({ value, defaultValue, onChange, disabled, className, }: ElementNumberTextFieldProps): import("react").JSX.Element;
|
|
11
|
+
export type RegisterFixType = {
|
|
12
|
+
ID: number;
|
|
13
|
+
RegisteredFixFullName: string | null;
|
|
14
|
+
RegisteredFix: Date | null;
|
|
15
|
+
RegisteredFixBy: string | null;
|
|
16
|
+
};
|
|
17
|
+
export type RegisterFixProps = {
|
|
18
|
+
value?: RegisterFixType | null;
|
|
19
|
+
defaultValue?: RegisterFixType | null;
|
|
20
|
+
onFix?: (ID: number) => void;
|
|
21
|
+
edit?: boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A "register fix" button for an existing damage, or a checkbox posted as `RegisteredFix` for a
|
|
25
|
+
* new one, and who registered the fix when. Designsystemet version of `RegisterFix` in
|
|
26
|
+
* `@olenbetong/synergi-react/elements`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function RegisterFix({ value, defaultValue, onFix, edit }: RegisterFixProps): import("react").JSX.Element;
|
|
29
|
+
export type SubmitButtonsProps = {
|
|
30
|
+
/**
|
|
31
|
+
* Whether the form is in edit mode. If true, the delete button is visible and the submit
|
|
32
|
+
* button's text changes.
|
|
33
|
+
*/
|
|
34
|
+
edit?: boolean;
|
|
35
|
+
/** Loading state for the submit button */
|
|
36
|
+
loading?: boolean;
|
|
37
|
+
className?: string;
|
|
38
|
+
onDelete?: () => void;
|
|
39
|
+
onCancel?: () => void;
|
|
40
|
+
onSubmit?: () => void;
|
|
41
|
+
};
|
|
42
|
+
/** Designsystemet version of `SubmitButtons` in `@olenbetong/synergi-react/elements`. */
|
|
43
|
+
export declare function SubmitButtons({ edit, loading, onDelete, onCancel, onSubmit, className }: SubmitButtonsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Checkbox, Paragraph, Textfield } from "@digdir/designsystemet-react";
|
|
3
|
+
import { CheckmarkIcon, FloppydiskIcon, PlusIcon } from "@navikt/aksel-icons";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
import { procApproveDamage } from "../elements/data/procApproveDamage.js";
|
|
6
|
+
import { getLocalizedString, localize } from "../i18n.js";
|
|
7
|
+
export { HiddenDamageFields } from "../elements/ElementDamage/HiddenDamageFields.js";
|
|
8
|
+
/** Designsystemet version of `ElementNumberTextField` in `@olenbetong/synergi-react/elements`. */
|
|
9
|
+
export function ElementNumberTextField({ value, defaultValue, onChange, disabled, className, }) {
|
|
10
|
+
let [elementNumber, setElementNumber] = useState(defaultValue ?? "");
|
|
11
|
+
let [initialDefault, setInitialDefault] = useState(defaultValue);
|
|
12
|
+
let elementNumberValue = value === undefined ? elementNumber : (value ?? "");
|
|
13
|
+
if (defaultValue && defaultValue !== initialDefault) {
|
|
14
|
+
setInitialDefault(defaultValue);
|
|
15
|
+
if (value === undefined)
|
|
16
|
+
setElementNumber(defaultValue);
|
|
17
|
+
}
|
|
18
|
+
function handleChange(value) {
|
|
19
|
+
onChange?.(value);
|
|
20
|
+
setElementNumber(value);
|
|
21
|
+
}
|
|
22
|
+
return (_jsx(Textfield, { className: className, name: "ElementNumber", id: "NewElementDamage_ElementNr", label: getLocalizedString("Element number"), autoComplete: "off", value: elementNumberValue, onChange: (event) => handleChange(event.currentTarget.value), disabled: disabled ?? false }));
|
|
23
|
+
}
|
|
24
|
+
const formatter = new Intl.DateTimeFormat(af.userSession.culture, {
|
|
25
|
+
day: "numeric",
|
|
26
|
+
month: "long",
|
|
27
|
+
year: "numeric",
|
|
28
|
+
hour: "2-digit",
|
|
29
|
+
minute: "2-digit",
|
|
30
|
+
timeZone: "UTC",
|
|
31
|
+
});
|
|
32
|
+
/**
|
|
33
|
+
* A "register fix" button for an existing damage, or a checkbox posted as `RegisteredFix` for a
|
|
34
|
+
* new one, and who registered the fix when. Designsystemet version of `RegisterFix` in
|
|
35
|
+
* `@olenbetong/synergi-react/elements`.
|
|
36
|
+
*/
|
|
37
|
+
export function RegisterFix({ value, defaultValue, onFix, edit }) {
|
|
38
|
+
let [loading, setLoading] = useState(false);
|
|
39
|
+
let [fix, setFix] = useState(defaultValue ?? null);
|
|
40
|
+
let [initialDefault, setInitialDefault] = useState(defaultValue);
|
|
41
|
+
let fixValue = value === undefined ? fix : value;
|
|
42
|
+
if (defaultValue && !initialDefault) {
|
|
43
|
+
setInitialDefault(defaultValue);
|
|
44
|
+
if (value === undefined)
|
|
45
|
+
setFix(defaultValue);
|
|
46
|
+
}
|
|
47
|
+
async function handleRegisterFix() {
|
|
48
|
+
try {
|
|
49
|
+
if (confirm(getLocalizedString("Are you sure you want to register a fix for this damage?"))) {
|
|
50
|
+
setLoading(true);
|
|
51
|
+
let record = (await procApproveDamage.execute({ ID: fixValue?.ID }));
|
|
52
|
+
setFix({ ...record.Table[0] });
|
|
53
|
+
setLoading(false);
|
|
54
|
+
onFix?.(fixValue?.ID ?? -1);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
setLoading(false);
|
|
59
|
+
alert(error.message);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return (_jsxs(_Fragment, { children: [edit ? (_jsx("div", { children: _jsxs(Button, { variant: "secondary", loading: loading, disabled: !!fixValue?.RegisteredFix, onClick: handleRegisterFix, children: [!loading && _jsx(CheckmarkIcon, { "aria-hidden": true }), getLocalizedString("Register fix")] }) })) : (_jsx(Checkbox, { label: getLocalizedString("Register fixed"), name: "RegisteredFix", id: "NewElementDamage_RegisteredFix", value: "on" })), fixValue?.RegisteredFix && (_jsx(Paragraph, { className: "ObElements-subtle", children: localize `Registered fix by ${fixValue.RegisteredFixFullName ?? fixValue.RegisteredFixBy} on the ${formatter.format(fixValue.RegisteredFix)}` }))] }));
|
|
63
|
+
}
|
|
64
|
+
/** Designsystemet version of `SubmitButtons` in `@olenbetong/synergi-react/elements`. */
|
|
65
|
+
export function SubmitButtons({ edit, loading, onDelete, onCancel, onSubmit, className }) {
|
|
66
|
+
return (_jsxs("div", { className: className ? `ObElements-buttons ${className}` : "ObElements-buttons", children: [edit && (_jsx(Button, { variant: "tertiary", "data-color": "danger", onClick: onDelete, children: getLocalizedString("Delete") })), _jsx(Button, { variant: "tertiary", onClick: onCancel, children: getLocalizedString("Cancel") }), _jsxs(Button, { variant: "primary", type: "submit", loading: loading, onClick: onSubmit, children: [!loading && (edit ? _jsx(FloppydiskIcon, { "aria-hidden": true }) : _jsx(PlusIcon, { "aria-hidden": true })), edit ? getLocalizedString("Save changes") : getLocalizedString("Register damage")] })] }));
|
|
67
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Listens for a keyboard-emulating (HID) scanner while it has focus. Designsystemet version of
|
|
3
|
+
* `AddElementHIDScanner` in `@olenbetong/synergi-react/elements`.
|
|
4
|
+
*/
|
|
5
|
+
export declare function AddElementHIDScanner({ onScan }: {
|
|
6
|
+
onScan: (id: string) => void;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "@digdir/designsystemet-react";
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
|
+
import { useHIDScanner } from "../elements/ElementLookupDialog/HIDScanner/useHIDScanner.js";
|
|
5
|
+
import { getLocalizedString } from "../i18n.js";
|
|
6
|
+
/**
|
|
7
|
+
* Listens for a keyboard-emulating (HID) scanner while it has focus. Designsystemet version of
|
|
8
|
+
* `AddElementHIDScanner` in `@olenbetong/synergi-react/elements`.
|
|
9
|
+
*/
|
|
10
|
+
export function AddElementHIDScanner({ onScan }) {
|
|
11
|
+
let [enabled, setEnabled] = useState(false);
|
|
12
|
+
let root = useRef(null);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (!root.current)
|
|
15
|
+
return;
|
|
16
|
+
let rootElem = root.current;
|
|
17
|
+
function handleFocus() {
|
|
18
|
+
setEnabled(true);
|
|
19
|
+
}
|
|
20
|
+
function handleBlur() {
|
|
21
|
+
setEnabled(false);
|
|
22
|
+
}
|
|
23
|
+
rootElem.addEventListener("focus", handleFocus);
|
|
24
|
+
rootElem.addEventListener("blur", handleBlur);
|
|
25
|
+
// A modal dialog opening around the scanner moves the focus to its `autofocus` element, or
|
|
26
|
+
// else to its first control; mark the scanner so it keeps listening when the dialog opens on it.
|
|
27
|
+
rootElem.setAttribute("autofocus", "");
|
|
28
|
+
rootElem.focus();
|
|
29
|
+
return () => {
|
|
30
|
+
rootElem.removeEventListener("focus", handleFocus);
|
|
31
|
+
rootElem.removeEventListener("blur", handleBlur);
|
|
32
|
+
};
|
|
33
|
+
}, []);
|
|
34
|
+
useHIDScanner(onScan, enabled);
|
|
35
|
+
return (_jsx("div", { tabIndex: 0, ref: root, className: "ObElementsHidScanner-root", "data-enabled": enabled || undefined, children: enabled ? (_jsxs("span", { children: [getLocalizedString("Listening for scanned elements"), "..."] })) : (_jsx(Button, { variant: "primary", onClick: () => root.current?.focus(), children: getLocalizedString("Start listening") })) }));
|
|
36
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AddElementManualFormProps } from "../elements/ElementLookupDialog/Manual/ManualForm.js";
|
|
2
|
+
export type { AddElementManualFormProps };
|
|
3
|
+
/**
|
|
4
|
+
* Manual entry of a project and one or more element IDs. Designsystemet version of
|
|
5
|
+
* `AddElementManualForm` in `@olenbetong/synergi-react/elements`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function AddElementManualForm({ onAdd, mode, defaultProject, allowEmptyElement, }: AddElementManualFormProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Alert, Button, Textfield } from "@digdir/designsystemet-react";
|
|
3
|
+
import { PlusIcon } from "@navikt/aksel-icons";
|
|
4
|
+
import { useId, useState } from "react";
|
|
5
|
+
import { getElement } from "../elements/ElementLookupDialog/getElement.js";
|
|
6
|
+
import { getLocalizedString } from "../i18n.js";
|
|
7
|
+
import { ProjectSelect } from "./ProjectSelect.js";
|
|
8
|
+
const isElementsOnly = /^([a-z]{2,4}[\s]*[0-9]{4,8}[\s,]*)+$/i;
|
|
9
|
+
const matchElements = /([a-z]{2,4}[\s]*[0-9]{4,8})/gi;
|
|
10
|
+
/**
|
|
11
|
+
* Manual entry of a project and one or more element IDs. Designsystemet version of
|
|
12
|
+
* `AddElementManualForm` in `@olenbetong/synergi-react/elements`.
|
|
13
|
+
*/
|
|
14
|
+
export function AddElementManualForm({ onAdd, mode, defaultProject, allowEmptyElement = false, }) {
|
|
15
|
+
let id = useId();
|
|
16
|
+
let [working, setWorking] = useState(false);
|
|
17
|
+
let [elementId, setElementId] = useState("");
|
|
18
|
+
let [project, setProject] = useState(defaultProject ?? null);
|
|
19
|
+
async function handleSubmit(evt) {
|
|
20
|
+
try {
|
|
21
|
+
evt.preventDefault();
|
|
22
|
+
evt.stopPropagation();
|
|
23
|
+
let formData = new FormData(evt.currentTarget);
|
|
24
|
+
let elements = formData.get("ElementID");
|
|
25
|
+
if (!project?.ProjectID) {
|
|
26
|
+
alert(getLocalizedString("Project is required"));
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (!allowEmptyElement && !elements) {
|
|
30
|
+
alert(getLocalizedString(mode === "multi" ? "Project and elements are required" : "Project and element are required"));
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (elements) {
|
|
34
|
+
setWorking(true);
|
|
35
|
+
let records = elements
|
|
36
|
+
.match(matchElements)
|
|
37
|
+
?.map((elementId) => elementId.replace(/\s+/g, ""))
|
|
38
|
+
.map((elementId) => getElement({ projectId: project.ProjectID, elementId }, { mode: "manual" }));
|
|
39
|
+
if (!records) {
|
|
40
|
+
setWorking(false);
|
|
41
|
+
alert(getLocalizedString("Invalid elements"));
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
let loaded = (await Promise.all(records)).map((record) => onAdd(record));
|
|
45
|
+
await Promise.all(loaded);
|
|
46
|
+
setWorking(false);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
onAdd({
|
|
50
|
+
PrimKey: "",
|
|
51
|
+
Domain: project.Domain ?? "",
|
|
52
|
+
Created: project.Created,
|
|
53
|
+
ProjectID: project.ProjectID,
|
|
54
|
+
ProjectName: project.ProjectName ?? "",
|
|
55
|
+
ProjectDomain: project.Domain ?? "",
|
|
56
|
+
ElementID: "",
|
|
57
|
+
DisplayName: "",
|
|
58
|
+
GiaiUri: "",
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
setWorking(false);
|
|
64
|
+
alert(error.message);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return (_jsxs("form", { id: id, onSubmit: handleSubmit, method: "post", className: "ObElements-form", children: [_jsx(Alert, { "data-color": "warning", children: getLocalizedString("Manually entering elements is a major source of errors. Only use this as a last resort. If the camera or scanner is not working, please contact the IT department.") }), _jsx(ProjectSelect, { id: "AddElement_Project", label: getLocalizedString("Project"), value: project, onChange: setProject, names: { domain: `${id}-Domain`, name: `${id}-ProjectName`, projectId: `${id}-ProjectID` } }), _jsx(Textfield, { autoComplete: "off", name: "ElementID", id: "AddElement_ElementID", label: getLocalizedString("Element ID"), description: mode === "multi"
|
|
68
|
+
? getLocalizedString("Multiple IDs can be entered if separated by space or comma")
|
|
69
|
+
: undefined, value: elementId, onChange: (evt) => setElementId(evt.target.value) }), _jsx("div", { children: _jsxs(Button, { type: "submit", variant: "primary", disabled: (!allowEmptyElement && !isElementsOnly.test(elementId)) || working, loading: working, children: [getLocalizedString("Add"), !working && _jsx(PlusIcon, { "aria-hidden": true })] }) })] }));
|
|
70
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ProjectsRecord } from "../elements/data/dsProjects.js";
|
|
2
|
+
export type ProjectSelectProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
id?: string;
|
|
7
|
+
names?: {
|
|
8
|
+
domain?: string;
|
|
9
|
+
projectId?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
};
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
onChange?: (project: Partial<ProjectsRecord> | null) => void;
|
|
15
|
+
defaultValue?: Partial<ProjectsRecord> | null;
|
|
16
|
+
value?: Partial<ProjectsRecord> | null;
|
|
17
|
+
label?: string;
|
|
18
|
+
/** Text shown in the empty input. With `hideLabel`, also the field's accessible name. */
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
/** Leaves out the visible label, for a search field whose placeholder says what it is. */
|
|
21
|
+
hideLabel?: boolean;
|
|
22
|
+
report?: boolean;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Project lookup with the hidden `Domain`, `ProjectName` and `ProjectID` inputs a form posts.
|
|
26
|
+
* Designsystemet version of `ProjectSelect` in `@olenbetong/synergi-react/elements`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function ProjectSelect({ className, style, disabled, id, names, onChange, readOnly, required, defaultValue, value, label, placeholder, hideLabel, report, }: ProjectSelectProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Combobox } from "@olenbetong/appframe-ds";
|
|
3
|
+
import { useDataWithFilter, useDebounce } from "@olenbetong/appframe-react";
|
|
4
|
+
import { useId, useMemo, useState } from "react";
|
|
5
|
+
import { dsProjects } from "../elements/data/dsProjects.js";
|
|
6
|
+
import { dsReportProjects } from "../elements/data/dsReportProjects.js";
|
|
7
|
+
import { getLocalizedString } from "../i18n.js";
|
|
8
|
+
/**
|
|
9
|
+
* Project lookup with the hidden `Domain`, `ProjectName` and `ProjectID` inputs a form posts.
|
|
10
|
+
* Designsystemet version of `ProjectSelect` in `@olenbetong/synergi-react/elements`.
|
|
11
|
+
*/
|
|
12
|
+
export function ProjectSelect({ className, style, disabled, id, names, onChange, readOnly, required, defaultValue, value, label, placeholder, hideLabel, report, }) {
|
|
13
|
+
let generatedId = useId();
|
|
14
|
+
let [selected, setSelected] = useState(defaultValue ?? null);
|
|
15
|
+
let [query, setQuery] = useState("");
|
|
16
|
+
let search = useDebounce(query);
|
|
17
|
+
let projects = useDataWithFilter(report ? dsReportProjects : dsProjects, search ? `[SearchColumn] LIKE '%${search}%'` : "");
|
|
18
|
+
function handleSelect(value) {
|
|
19
|
+
if (!disabled && !readOnly) {
|
|
20
|
+
if (onChange) {
|
|
21
|
+
onChange(value);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
setSelected(value);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
let current = value === undefined ? selected : value;
|
|
29
|
+
const duplicatedNames = useMemo(() => {
|
|
30
|
+
const nameCount = new Map();
|
|
31
|
+
projects.forEach((opt) => {
|
|
32
|
+
nameCount.set(opt.ProjectName, (nameCount.get(opt.ProjectName) || 0) + 1);
|
|
33
|
+
});
|
|
34
|
+
return new Set([...nameCount.entries()].filter(([, count]) => count > 1).map(([name]) => name));
|
|
35
|
+
}, [projects]);
|
|
36
|
+
return (_jsxs(_Fragment, { children: [_jsx(Combobox, { autoHighlight: true, className: className, style: style, options: projects, disabled: disabled, readOnly: readOnly, required: required, id: id ?? generatedId, label: hideLabel ? undefined : (label ?? getLocalizedString("Project ID")), "aria-label": hideLabel ? (label ?? placeholder ?? getLocalizedString("Project ID")) : undefined, placeholder: placeholder, getOptionLabel: (option) => option?.ProjectID !== undefined ? `${option.ProjectID}: ${option.ProjectName}` : "", isOptionEqualToValue: (option, value) => option.Domain === value.Domain && option.ProjectID === value.ProjectID, onChange: (_event, value) => handleSelect(value), onInputChange: (_event, newQuery, reason) => {
|
|
37
|
+
if (reason === "input")
|
|
38
|
+
setQuery(newQuery);
|
|
39
|
+
else if (reason === "clear")
|
|
40
|
+
setQuery("");
|
|
41
|
+
}, value: current, renderOption: (option) => {
|
|
42
|
+
let isDuplicated = option.ProjectName && duplicatedNames.has(option.ProjectName);
|
|
43
|
+
return (_jsxs("span", { className: "ObElements-option", children: [_jsx("span", { children: isDuplicated ? `${option.ProjectName} (${option.Domain})` : option.ProjectName }), _jsx("span", { children: option.ProjectID })] }));
|
|
44
|
+
} }), _jsx("input", { name: names?.domain ?? "Domain", type: "hidden", value: current?.Domain ?? "" }), _jsx("input", { name: names?.name ?? "ProjectName", type: "hidden", value: current?.ProjectName ?? "" }), _jsx("input", { name: names?.projectId ?? "ProjectID", type: "hidden", value: current?.ProjectID ?? "" })] }));
|
|
45
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Styles for the Designsystemet element components. The package is not scanned by the apps'
|
|
3
|
+
* Tailwind, so everything is a plain class here.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@property --ob-hid-angle {
|
|
7
|
+
syntax: "<angle>";
|
|
8
|
+
inherits: false;
|
|
9
|
+
initial-value: 0deg;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@keyframes ObElementsHidScanner-move {
|
|
13
|
+
0% {
|
|
14
|
+
--ob-hid-angle: 0deg;
|
|
15
|
+
}
|
|
16
|
+
50% {
|
|
17
|
+
--ob-hid-angle: 180deg;
|
|
18
|
+
}
|
|
19
|
+
100% {
|
|
20
|
+
--ob-hid-angle: 360deg;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ObElementsHidScanner-root {
|
|
25
|
+
height: 100%;
|
|
26
|
+
min-height: 12rem;
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
background-color: var(--ds-color-neutral-surface-tinted);
|
|
31
|
+
|
|
32
|
+
&[data-enabled] {
|
|
33
|
+
background-image: linear-gradient(
|
|
34
|
+
var(--ob-hid-angle),
|
|
35
|
+
var(--ds-color-neutral-border-default),
|
|
36
|
+
var(--ds-color-neutral-surface-active),
|
|
37
|
+
var(--ds-color-neutral-border-default)
|
|
38
|
+
);
|
|
39
|
+
animation: ObElementsHidScanner-move 8s linear infinite;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ObElementsLookupDialog-body {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
padding: 0;
|
|
47
|
+
min-height: 0;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
|
|
50
|
+
/* One height for every tab, so the dialog does not jump when the tab changes. */
|
|
51
|
+
@media (min-width: 600px) {
|
|
52
|
+
height: min(40rem, 85dvh);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ObElementsLookupDialog-tabs > [role="tablist"] > * {
|
|
57
|
+
flex: 1;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ObElementsLookupDialog-source {
|
|
62
|
+
flex: 1 2 14rem;
|
|
63
|
+
min-height: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* The manual form keeps its full height; the element list below gives way first. */
|
|
67
|
+
.ObElementsLookupDialog-manual {
|
|
68
|
+
flex: 0 1 auto;
|
|
69
|
+
min-height: 0;
|
|
70
|
+
padding: var(--ds-size-4);
|
|
71
|
+
overflow-y: auto;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ObElementsLookupDialog-list {
|
|
75
|
+
flex: 3 1 6rem;
|
|
76
|
+
overflow-y: auto;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ObElementsLookupDialog-item {
|
|
80
|
+
transition: background-color 200ms ease-out;
|
|
81
|
+
|
|
82
|
+
&[data-recent] {
|
|
83
|
+
background-color: var(--ds-color-brand-surface-active);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ObElementsLookupDialog-actions,
|
|
88
|
+
.ObElements-buttons {
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-wrap: wrap;
|
|
91
|
+
justify-content: flex-end;
|
|
92
|
+
gap: var(--ds-size-2);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.ObElements-form {
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
align-items: stretch;
|
|
99
|
+
gap: var(--ds-size-4);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ObElements-subtle {
|
|
103
|
+
color: var(--ds-color-neutral-text-subtle);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ObElements-option {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
|
|
110
|
+
& > :last-child {
|
|
111
|
+
font-size: 0.875em;
|
|
112
|
+
color: var(--ds-color-neutral-text-subtle);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.ObElementsDuplicate-table {
|
|
117
|
+
width: 100%;
|
|
118
|
+
|
|
119
|
+
& td {
|
|
120
|
+
white-space: pre-line;
|
|
121
|
+
vertical-align: top;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.ObElementsDuplicate-cards {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
gap: var(--ds-size-3);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.ObElementsDuplicate-wide {
|
|
132
|
+
@media (max-width: 899.98px) {
|
|
133
|
+
display: none;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ObElementsDuplicate-narrow {
|
|
138
|
+
@media (min-width: 900px) {
|
|
139
|
+
display: none;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ObElementsDuplicate-card dl {
|
|
144
|
+
display: grid;
|
|
145
|
+
grid-template-columns: auto 1fr;
|
|
146
|
+
gap: var(--ds-size-1) var(--ds-size-3);
|
|
147
|
+
margin: 0;
|
|
148
|
+
|
|
149
|
+
& dt {
|
|
150
|
+
font-weight: 500;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
& dd {
|
|
154
|
+
margin: 0;
|
|
155
|
+
white-space: pre-line;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./elements-ds.css";
|
|
2
|
+
export * from "../elements/data/index.js";
|
|
3
|
+
export { dsReportProjects } from "../elements/data/dsReportProjects.js";
|
|
4
|
+
export type { AddElementSource, ElementDetails } from "../elements/ElementLookupDialog/getElement.js";
|
|
5
|
+
export * from "./DescriptionInput.js";
|
|
6
|
+
export * from "./DuplicateElementDamage.js";
|
|
7
|
+
export * from "./ElementLookup.js";
|
|
8
|
+
export * from "./ElementLookupDialog.js";
|
|
9
|
+
export * from "./FormFields.js";
|
|
10
|
+
export * from "./HIDScanner.js";
|
|
11
|
+
export * from "./ManualForm.js";
|
|
12
|
+
export * from "./ProjectSelect.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// The element lookup and element damage components on Designsystemet, for apps on the 2026
|
|
2
|
+
// template. Nothing here imports MUI or appframe-mui; "@olenbetong/synergi-react/elements" keeps
|
|
3
|
+
// the MUI versions for the apps that still use them.
|
|
4
|
+
import "./elements-ds.css";
|
|
5
|
+
export * from "../elements/data/index.js";
|
|
6
|
+
export { dsReportProjects } from "../elements/data/dsReportProjects.js";
|
|
7
|
+
export * from "./DescriptionInput.js";
|
|
8
|
+
export * from "./DuplicateElementDamage.js";
|
|
9
|
+
export * from "./ElementLookup.js";
|
|
10
|
+
export * from "./ElementLookupDialog.js";
|
|
11
|
+
export * from "./FormFields.js";
|
|
12
|
+
export * from "./HIDScanner.js";
|
|
13
|
+
export * from "./ManualForm.js";
|
|
14
|
+
export * from "./ProjectSelect.js";
|