@adcops/autocore-react 3.3.89 → 3.3.90
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/assets/JogXNeg.d.ts +4 -0
- package/dist/assets/JogXNeg.d.ts.map +1 -0
- package/dist/assets/JogXNeg.js +1 -0
- package/dist/assets/JogXPos.d.ts +4 -0
- package/dist/assets/JogXPos.d.ts.map +1 -0
- package/dist/assets/JogXPos.js +1 -0
- package/dist/assets/JogYNeg.d.ts +4 -0
- package/dist/assets/JogYNeg.d.ts.map +1 -0
- package/dist/assets/JogYNeg.js +1 -0
- package/dist/assets/JogYPos.d.ts +4 -0
- package/dist/assets/JogYPos.d.ts.map +1 -0
- package/dist/assets/JogYPos.js +1 -0
- package/dist/assets/JogZNeg.d.ts +4 -0
- package/dist/assets/JogZNeg.d.ts.map +1 -0
- package/dist/assets/JogZNeg.js +1 -0
- package/dist/assets/JogZPos.d.ts +4 -0
- package/dist/assets/JogZPos.d.ts.map +1 -0
- package/dist/assets/JogZPos.js +1 -0
- package/dist/assets/Off.d.ts +4 -0
- package/dist/assets/Off.d.ts.map +1 -0
- package/dist/assets/Off.js +1 -0
- package/dist/assets/On.d.ts +4 -0
- package/dist/assets/On.d.ts.map +1 -0
- package/dist/assets/On.js +1 -0
- package/dist/assets/index.d.ts +6 -0
- package/dist/assets/index.d.ts.map +1 -1
- package/dist/assets/index.js +1 -1
- package/dist/assets/svg/off.svg +2 -0
- package/dist/assets/svg/on.svg +11 -0
- package/dist/components/JogPanel.d.ts +2 -2
- package/dist/components/JogPanel.d.ts.map +1 -1
- package/dist/components/JogPanel.js +1 -1
- package/dist/components/ams/AssetDetailView.js +1 -1
- package/dist/components/ams/AssetEditDialog.d.ts.map +1 -1
- package/dist/components/ams/AssetEditDialog.js +1 -1
- package/dist/components/ams/AssetRegistryTable.css +12 -0
- package/dist/components/ams/AssetRegistryTable.d.ts +1 -0
- package/dist/components/ams/AssetRegistryTable.d.ts.map +1 -1
- package/dist/components/ams/AssetRegistryTable.js +1 -1
- package/dist/components/tis/ConfigurationDialog.d.ts +21 -0
- package/dist/components/tis/ConfigurationDialog.d.ts.map +1 -0
- package/dist/components/tis/ConfigurationDialog.js +1 -0
- package/dist/components/tis/ResultHistoryTable.js +1 -1
- package/dist/components/tis/TestDataView.d.ts +27 -0
- package/dist/components/tis/TestDataView.d.ts.map +1 -1
- package/dist/components/tis/TestDataView.js +1 -1
- package/dist/components/tis/TestSetupForm.d.ts +37 -0
- package/dist/components/tis/TestSetupForm.d.ts.map +1 -1
- package/dist/components/tis/TestSetupForm.js +1 -1
- package/dist/components/tis/TisProvider.d.ts +25 -0
- package/dist/components/tis/TisProvider.d.ts.map +1 -1
- package/dist/components/tis/TisProvider.js +1 -1
- package/dist/components/tis-editor/TisConfigEditor.css +20 -0
- package/dist/components/tis-editor/editor/ConfigurationsEditor.d.ts +19 -0
- package/dist/components/tis-editor/editor/ConfigurationsEditor.d.ts.map +1 -0
- package/dist/components/tis-editor/editor/ConfigurationsEditor.js +1 -0
- package/dist/components/tis-editor/editor/MethodFormEditor.d.ts.map +1 -1
- package/dist/components/tis-editor/editor/MethodFormEditor.js +1 -1
- package/dist/components/tis-editor/types.d.ts +13 -0
- package/dist/components/tis-editor/types.d.ts.map +1 -1
- package/dist/components/tis-editor/validation.d.ts.map +1 -1
- package/dist/components/tis-editor/validation.js +1 -1
- package/dist/themes/adc-dark/blue/theme.css +3 -2
- package/dist/themes/adc-dark/blue/theme.css.map +1 -1
- package/package.json +2 -1
- package/src/assets/JogXNeg.tsx +30 -0
- package/src/assets/JogXPos.tsx +30 -0
- package/src/assets/JogYNeg.tsx +30 -0
- package/src/assets/JogYPos.tsx +30 -0
- package/src/assets/JogZNeg.tsx +30 -0
- package/src/assets/JogZPos.tsx +30 -0
- package/src/assets/Off.tsx +14 -0
- package/src/assets/On.tsx +26 -0
- package/src/assets/index.ts +6 -0
- package/src/assets/svg/off.svg +2 -0
- package/src/assets/svg/on.svg +11 -0
- package/src/components/JogPanel.tsx +18 -28
- package/src/components/ams/AssetDetailView.tsx +1 -1
- package/src/components/ams/AssetEditDialog.tsx +25 -10
- package/src/components/ams/AssetRegistryTable.css +12 -0
- package/src/components/ams/AssetRegistryTable.tsx +15 -4
- package/src/components/tis/ConfigurationDialog.tsx +128 -0
- package/src/components/tis/ResultHistoryTable.tsx +2 -2
- package/src/components/tis/TestDataView.tsx +83 -1
- package/src/components/tis/TestSetupForm.tsx +167 -10
- package/src/components/tis/TisProvider.tsx +53 -0
- package/src/components/tis-editor/TisConfigEditor.css +20 -0
- package/src/components/tis-editor/editor/ConfigurationsEditor.tsx +242 -0
- package/src/components/tis-editor/editor/MethodFormEditor.tsx +4 -0
- package/src/components/tis-editor/types.ts +14 -0
- package/src/components/tis-editor/validation.ts +29 -0
- package/src/themes/adc-dark/_extensions.scss +1 -0
- package/src/themes/theme-base/components/panel/_fieldset.scss +2 -2
|
@@ -78,6 +78,19 @@ export interface AnalysisShape {
|
|
|
78
78
|
function: string;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
/**
|
|
82
|
+
* One named configuration for a method — a sparse set of config_field
|
|
83
|
+
* overrides (e.g. "Plaque" vs "Shoe"). `defaults` only needs to carry the
|
|
84
|
+
* fields whose value is specific to this configuration; everything else
|
|
85
|
+
* falls back to the field's own `default`.
|
|
86
|
+
*/
|
|
87
|
+
export interface TestConfiguration {
|
|
88
|
+
name: string;
|
|
89
|
+
label?: string;
|
|
90
|
+
description?: string;
|
|
91
|
+
defaults?: Record<string, unknown>;
|
|
92
|
+
}
|
|
93
|
+
|
|
81
94
|
export interface TestMethod {
|
|
82
95
|
label?: string;
|
|
83
96
|
description?: string;
|
|
@@ -89,6 +102,7 @@ export interface TestMethod {
|
|
|
89
102
|
views?: Record<string, ChartView>;
|
|
90
103
|
asset_refs?: AssetRef[];
|
|
91
104
|
analysis?: AnalysisShape | null;
|
|
105
|
+
configurations?: TestConfiguration[];
|
|
92
106
|
[key: string]: unknown; // tolerate unknown server-side fields
|
|
93
107
|
}
|
|
94
108
|
|
|
@@ -87,6 +87,35 @@ export function validateMethod(methodId: string, m: TestMethod): ValidationError
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
// Configurations: name non-empty + unique, and every override key
|
|
91
|
+
// must name a real config_field. `knownConfigFields` is the subset of
|
|
92
|
+
// knownFields declared under config_fields specifically — overrides
|
|
93
|
+
// can only target config fields.
|
|
94
|
+
const configFieldNames = new Set<string>(
|
|
95
|
+
((m.config_fields as TestField[] | undefined) ?? []).map(f => f.name).filter(Boolean),
|
|
96
|
+
);
|
|
97
|
+
const configs = (m.configurations as Array<any> | undefined) ?? [];
|
|
98
|
+
const seenConfig = new Set<string>();
|
|
99
|
+
configs.forEach((c, i) => {
|
|
100
|
+
const name = typeof c?.name === 'string' ? c.name.trim() : '';
|
|
101
|
+
if (!name) {
|
|
102
|
+
errs.push({ path: `configurations.${i}.name`, message: `${methodId}.configurations[${i}]: empty configuration name` });
|
|
103
|
+
} else if (seenConfig.has(name)) {
|
|
104
|
+
errs.push({ path: `configurations.${i}.name`, message: `${methodId}.configurations: duplicate configuration name "${name}"` });
|
|
105
|
+
} else {
|
|
106
|
+
seenConfig.add(name);
|
|
107
|
+
}
|
|
108
|
+
const defaults = (c?.defaults ?? {}) as Record<string, unknown>;
|
|
109
|
+
for (const key of Object.keys(defaults)) {
|
|
110
|
+
if (!configFieldNames.has(key)) {
|
|
111
|
+
errs.push({
|
|
112
|
+
path: `configurations.${i}.defaults.${key}`,
|
|
113
|
+
message: `${methodId}.configurations.${name || i}: override "${key}" does not match any config_field`,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
|
|
90
119
|
return errs;
|
|
91
120
|
}
|
|
92
121
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
border-radius: $borderRadius;
|
|
6
6
|
|
|
7
7
|
.p-fieldset-legend {
|
|
8
|
-
padding:
|
|
8
|
+
padding: 0.5mm;
|
|
9
9
|
border: $panelHeaderBorder;
|
|
10
10
|
color: $panelHeaderTextColor;
|
|
11
11
|
background: $panelHeaderBg;
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.p-fieldset-content {
|
|
45
|
-
padding:
|
|
45
|
+
padding: 1mm;
|
|
46
46
|
}
|
|
47
47
|
}
|