@adcops/autocore-react 3.3.85 → 3.3.89
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/AxisC.d.ts +4 -0
- package/dist/assets/AxisC.d.ts.map +1 -0
- package/dist/assets/AxisC.js +1 -0
- package/dist/assets/AxisX.js +1 -1
- package/dist/assets/AxisY.js +1 -1
- package/dist/assets/AxisZ.js +1 -1
- package/dist/components/ValueInput.css +9 -12
- package/dist/components/ValueInput.d.ts +45 -154
- package/dist/components/ValueInput.d.ts.map +1 -1
- package/dist/components/ValueInput.js +1 -1
- package/dist/components/ams/AmsProvider.d.ts +10 -0
- package/dist/components/ams/AmsProvider.d.ts.map +1 -1
- package/dist/components/ams/AssetRegistryTable.d.ts.map +1 -1
- package/dist/components/ams/AssetRegistryTable.js +1 -1
- package/dist/components/forms/FormRow.d.ts +20 -0
- package/dist/components/forms/FormRow.d.ts.map +1 -0
- package/dist/components/forms/FormRow.js +1 -0
- package/dist/components/forms/FormSection.d.ts +19 -0
- package/dist/components/forms/FormSection.d.ts.map +1 -0
- package/dist/components/forms/FormSection.js +1 -0
- package/dist/components/forms/forms.css +89 -0
- package/dist/components/forms/index.d.ts +3 -0
- package/dist/components/forms/index.d.ts.map +1 -0
- package/dist/components/forms/index.js +1 -0
- package/dist/components/tis-editor/TisConfigEditor.css +121 -0
- package/dist/components/tis-editor/TisConfigEditor.d.ts +28 -0
- package/dist/components/tis-editor/TisConfigEditor.d.ts.map +1 -0
- package/dist/components/tis-editor/TisConfigEditor.js +1 -0
- package/dist/components/tis-editor/editor/AnalysisEditor.d.ts +7 -0
- package/dist/components/tis-editor/editor/AnalysisEditor.d.ts.map +1 -0
- package/dist/components/tis-editor/editor/AnalysisEditor.js +1 -0
- package/dist/components/tis-editor/editor/AssetRefsEditor.d.ts +10 -0
- package/dist/components/tis-editor/editor/AssetRefsEditor.d.ts.map +1 -0
- package/dist/components/tis-editor/editor/AssetRefsEditor.js +1 -0
- package/dist/components/tis-editor/editor/ChartViewDialog.d.ts +16 -0
- package/dist/components/tis-editor/editor/ChartViewDialog.d.ts.map +1 -0
- package/dist/components/tis-editor/editor/ChartViewDialog.js +1 -0
- package/dist/components/tis-editor/editor/FieldArrayEditor.d.ts +8 -0
- package/dist/components/tis-editor/editor/FieldArrayEditor.d.ts.map +1 -0
- package/dist/components/tis-editor/editor/FieldArrayEditor.js +1 -0
- package/dist/components/tis-editor/editor/IdentitySection.d.ts +7 -0
- package/dist/components/tis-editor/editor/IdentitySection.d.ts.map +1 -0
- package/dist/components/tis-editor/editor/IdentitySection.js +1 -0
- package/dist/components/tis-editor/editor/MethodFormEditor.d.ts +20 -0
- package/dist/components/tis-editor/editor/MethodFormEditor.d.ts.map +1 -0
- package/dist/components/tis-editor/editor/MethodFormEditor.js +1 -0
- package/dist/components/tis-editor/editor/RawDataEditor.d.ts +7 -0
- package/dist/components/tis-editor/editor/RawDataEditor.d.ts.map +1 -0
- package/dist/components/tis-editor/editor/RawDataEditor.js +1 -0
- package/dist/components/tis-editor/editor/SaveDiffDialog.d.ts +22 -0
- package/dist/components/tis-editor/editor/SaveDiffDialog.d.ts.map +1 -0
- package/dist/components/tis-editor/editor/SaveDiffDialog.js +1 -0
- package/dist/components/tis-editor/editor/TestFieldDialog.d.ts +11 -0
- package/dist/components/tis-editor/editor/TestFieldDialog.d.ts.map +1 -0
- package/dist/components/tis-editor/editor/TestFieldDialog.js +1 -0
- package/dist/components/tis-editor/editor/ViewsEditor.d.ts +7 -0
- package/dist/components/tis-editor/editor/ViewsEditor.d.ts.map +1 -0
- package/dist/components/tis-editor/editor/ViewsEditor.js +1 -0
- package/dist/components/tis-editor/types.d.ts +78 -0
- package/dist/components/tis-editor/types.d.ts.map +1 -0
- package/dist/components/tis-editor/types.js +1 -0
- package/dist/components/tis-editor/validation.d.ts +20 -0
- package/dist/components/tis-editor/validation.d.ts.map +1 -0
- package/dist/components/tis-editor/validation.js +1 -0
- package/dist/hooks/useAmsAssetTypes.d.ts +23 -0
- package/dist/hooks/useAmsAssetTypes.d.ts.map +1 -0
- package/dist/hooks/useAmsAssetTypes.js +1 -0
- package/dist/hooks/useTisConfig.d.ts +51 -0
- package/dist/hooks/useTisConfig.d.ts.map +1 -0
- package/dist/hooks/useTisConfig.js +1 -0
- package/package.json +9 -3
- package/src/assets/AxisC.tsx +38 -0
- package/src/assets/AxisX.tsx +32 -32
- package/src/assets/AxisY.tsx +34 -34
- package/src/assets/AxisZ.tsx +31 -31
- package/src/components/ValueInput.css +9 -12
- package/src/components/ValueInput.tsx +132 -317
- package/src/components/ams/AmsProvider.tsx +10 -0
- package/src/components/ams/AssetRegistryTable.tsx +53 -8
- package/src/components/forms/FormRow.tsx +37 -0
- package/src/components/forms/FormSection.tsx +39 -0
- package/src/components/forms/forms.css +89 -0
- package/src/components/forms/index.ts +2 -0
- package/src/components/tis-editor/TisConfigEditor.css +121 -0
- package/src/components/tis-editor/TisConfigEditor.tsx +321 -0
- package/src/components/tis-editor/editor/AnalysisEditor.tsx +54 -0
- package/src/components/tis-editor/editor/AssetRefsEditor.tsx +187 -0
- package/src/components/tis-editor/editor/ChartViewDialog.tsx +170 -0
- package/src/components/tis-editor/editor/FieldArrayEditor.tsx +131 -0
- package/src/components/tis-editor/editor/IdentitySection.tsx +36 -0
- package/src/components/tis-editor/editor/MethodFormEditor.tsx +176 -0
- package/src/components/tis-editor/editor/RawDataEditor.tsx +117 -0
- package/src/components/tis-editor/editor/SaveDiffDialog.tsx +160 -0
- package/src/components/tis-editor/editor/TestFieldDialog.tsx +134 -0
- package/src/components/tis-editor/editor/ViewsEditor.tsx +101 -0
- package/src/components/tis-editor/types.ts +95 -0
- package/src/components/tis-editor/validation.ts +104 -0
- package/src/hooks/useAmsAssetTypes.ts +70 -0
- package/src/hooks/useTisConfig.ts +164 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useTisConfig — load and edit the TIS test_methods schema.
|
|
3
|
+
*
|
|
4
|
+
* Thin wrapper around the `tis.show_config` / `tis.put_method` /
|
|
5
|
+
* `tis.remove_method` / `tis.save_config` / `tis.discard_config_changes`
|
|
6
|
+
* IPC surface. Mirrors the server's staged-then-saved model: edits land in
|
|
7
|
+
* the server's in-memory copy (dirty = true) until `save()` persists them
|
|
8
|
+
* to project.json.
|
|
9
|
+
*
|
|
10
|
+
* Today the server hosts exactly one project (the one configured at
|
|
11
|
+
* startup), so `projectId` is informational; the hook still threads it
|
|
12
|
+
* through every call so the wire contract matches a future multi-project
|
|
13
|
+
* world without a rewrite.
|
|
14
|
+
*
|
|
15
|
+
* Pass an `invoker` override to mock the IPC layer (used by the playground
|
|
16
|
+
* demo and by tests). When omitted, the hook reads `EventEmitterContext`.
|
|
17
|
+
*/
|
|
18
|
+
/** Minimal subset of a TestMethod we model client-side. Treat as opaque —
|
|
19
|
+
* the structural integrity of each method is the server's responsibility. */
|
|
20
|
+
export type TestMethod = Record<string, unknown>;
|
|
21
|
+
export interface TisConfig {
|
|
22
|
+
projectId: string;
|
|
23
|
+
methods: Record<string, TestMethod>;
|
|
24
|
+
dirty: boolean;
|
|
25
|
+
defaultMethodId: string;
|
|
26
|
+
}
|
|
27
|
+
/** IPC invoker contract: `topic` is e.g. "tis.show_config", payload is the
|
|
28
|
+
* request data. Returns an object with at least { success, data?, error_message? }. */
|
|
29
|
+
export interface TisIpcInvoker {
|
|
30
|
+
(topic: string, payload: object): Promise<{
|
|
31
|
+
success: boolean;
|
|
32
|
+
data?: any;
|
|
33
|
+
error_message?: string;
|
|
34
|
+
}>;
|
|
35
|
+
}
|
|
36
|
+
export interface UseTisConfigResult {
|
|
37
|
+
config: TisConfig | null;
|
|
38
|
+
loading: boolean;
|
|
39
|
+
/** Last server-reported error from a mutation. Cleared on next successful call. */
|
|
40
|
+
error: string | null;
|
|
41
|
+
refresh: () => Promise<void>;
|
|
42
|
+
putMethod: (methodId: string, method: TestMethod) => Promise<void>;
|
|
43
|
+
removeMethod: (methodId: string) => Promise<void>;
|
|
44
|
+
save: () => Promise<void>;
|
|
45
|
+
revert: () => Promise<void>;
|
|
46
|
+
}
|
|
47
|
+
export interface UseTisConfigOptions {
|
|
48
|
+
invoker?: TisIpcInvoker;
|
|
49
|
+
}
|
|
50
|
+
export declare function useTisConfig(projectId: string, options?: UseTisConfigOptions): UseTisConfigResult;
|
|
51
|
+
//# sourceMappingURL=useTisConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTisConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useTisConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH;8EAC8E;AAC9E,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEjD,MAAM,WAAW,SAAS;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED;wFACwF;AACxF,MAAM,WAAW,aAAa;IAC1B,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QACtC,OAAO,EAAE,OAAO,CAAC;QACjB,IAAI,CAAC,EAAE,GAAG,CAAC;QACX,aAAa,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC,CAAC;CACN;AAED,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,mFAAmF;IACnF,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAChC,OAAO,CAAC,EAAE,aAAa,CAAC;CAC3B;AAED,wBAAgB,YAAY,CACxB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,mBAAmB,GAC9B,kBAAkB,CAqGpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useCallback,useContext,useEffect,useState}from"react";import{EventEmitterContext}from"../core/EventEmitterContext";import{MessageType}from"../hub/CommandMessage";export function useTisConfig(e,t){const s=useContext(EventEmitterContext),o=t?.invoker??(async(e,t)=>await s.invoke(e,MessageType.Request,t)),[a,r]=useState(null),[i,n]=useState(!0),[c,d]=useState(null),l=useCallback(async()=>{n(!0);try{const t=await o("tis.show_config",{project_id:e});if(!t.success)return d(t.error_message??"tis.show_config failed"),void r(null);const s=t.data??{};r({projectId:e,methods:s.test_methods??{},dirty:!!s.dirty,defaultMethodId:"string"==typeof s.default_method_id?s.default_method_id:""}),d(null)}catch(e){d(String(e?.message??e)),r(null)}finally{n(!1)}},[e,o]);useEffect(()=>{l()},[l]);const u=useCallback(async(t,s)=>{const a=await o("tis.put_method",{project_id:e,method_id:t,method:s});if(!a.success){const e=a.error_message??"tis.put_method failed";throw d(e),new Error(e)}d(null),await l()},[o,e,l]),f=useCallback(async t=>{const s=await o("tis.remove_method",{project_id:e,method_id:t});if(!s.success){const e=s.error_message??"tis.remove_method failed";throw d(e),new Error(e)}d(null),await l()},[o,e,l]),m=useCallback(async()=>{const t=await o("tis.save_config",{project_id:e});if(!t.success){const e=t.error_message??"tis.save_config failed";throw d(e),new Error(e)}d(null),await l()},[o,e,l]),_=useCallback(async()=>{const t=await o("tis.discard_config_changes",{project_id:e});if(!t.success){const e=t.error_message??"tis.discard_config_changes failed";throw d(e),new Error(e)}d(null),await l()},[o,e,l]);return{config:a,loading:i,error:c,refresh:l,putMethod:u,removeMethod:f,save:m,revert:_}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adcops/autocore-react",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.89",
|
|
4
4
|
"description": "A React component library for industrial user interfaces.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
"build-themes": "node ./tools/build-themes.cjs",
|
|
12
12
|
"generate-docs": "typedoc",
|
|
13
13
|
"build": "npm run clean && tsc && node ./tools/copy-distribution-files.cjs && npm run build-themes && npm run minify",
|
|
14
|
-
"dev": "npm run clean && tsc && node ./tools/copy-distribution-files.cjs",
|
|
14
|
+
"build:dev": "npm run clean && tsc && node ./tools/copy-distribution-files.cjs",
|
|
15
|
+
"dev": "vite",
|
|
16
|
+
"playground": "vite",
|
|
17
|
+
"playground:build": "vite build",
|
|
15
18
|
"prestart": "tsc",
|
|
16
19
|
"publish-package": "npm run build && npm version patch && npm publish",
|
|
17
20
|
"prepublishOnly": "npm run build",
|
|
@@ -58,6 +61,7 @@
|
|
|
58
61
|
"numerable": "^0.3.15",
|
|
59
62
|
"react-blockly": "^8.1.2",
|
|
60
63
|
"react-chartjs-2": "^5.3.0",
|
|
64
|
+
"react-number-format": "^5.4.5",
|
|
61
65
|
"react-simple-keyboard": "^3.8.120",
|
|
62
66
|
"react-transition-group": "^4.4.5",
|
|
63
67
|
"sass": "^1.92.1",
|
|
@@ -76,11 +80,13 @@
|
|
|
76
80
|
"@types/react": "^18.2.15",
|
|
77
81
|
"@types/react-dom": "^18.2.7",
|
|
78
82
|
"@types/react-transition-group": "^4.4.12",
|
|
83
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
79
84
|
"primereact": "^10.9.7",
|
|
80
85
|
"rimraf": "^6.0.1",
|
|
81
86
|
"terser": "^5.44.0",
|
|
82
87
|
"typedoc": "^0.28.12",
|
|
83
|
-
"typescript": "^5.9.2"
|
|
88
|
+
"typescript": "^5.9.2",
|
|
89
|
+
"vite": "^8.0.13"
|
|
84
90
|
},
|
|
85
91
|
"exports": {
|
|
86
92
|
"./core/*": {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2025 Automated Design Corp. All Rights Reserved.
|
|
3
|
+
* Created Date: 2025-08-28 11:27:20
|
|
4
|
+
* -----
|
|
5
|
+
* Last Modified: 2025-08-28 11:38:53
|
|
6
|
+
* -----
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import type { SVGProps } from "react";
|
|
12
|
+
|
|
13
|
+
export const SvgAxisC = (props: SVGProps<SVGSVGElement>) => (
|
|
14
|
+
|
|
15
|
+
<svg
|
|
16
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
17
|
+
width="24"
|
|
18
|
+
height="24"
|
|
19
|
+
viewBox="0 0 24 24"
|
|
20
|
+
fill="none"
|
|
21
|
+
stroke="currentColor"
|
|
22
|
+
strokeWidth="2"
|
|
23
|
+
strokeLinecap="round"
|
|
24
|
+
strokeLinejoin="round"
|
|
25
|
+
{...props}
|
|
26
|
+
>
|
|
27
|
+
{/* The Letter C - Centered slightly left */}
|
|
28
|
+
<path d="M15 10a4 4 1 1 0 0 6" />
|
|
29
|
+
|
|
30
|
+
{/* The Circular Arrow - Arc ends at (12, 2.1) */}
|
|
31
|
+
<path d="M12 2a10 10 0 1 0 9.5 7" />
|
|
32
|
+
|
|
33
|
+
{/* The Arrowhead - Pointing specifically to (12, 2) */}
|
|
34
|
+
<path d="m11 5 4-5-4-4" transform="translate(0 2)" />
|
|
35
|
+
</svg>
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
export default SvgAxisC;
|
package/src/assets/AxisX.tsx
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2025 Automated Design Corp. All Rights Reserved.
|
|
3
|
-
* Created Date: 2025-08-28 11:27:20
|
|
4
|
-
* -----
|
|
5
|
-
* Last Modified: 2025-08-28 11:38:53
|
|
6
|
-
* -----
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import type { SVGProps } from "react";
|
|
12
|
-
|
|
13
|
-
export const SvgAxisX = (props: SVGProps<SVGSVGElement>) => (
|
|
14
|
-
<svg
|
|
15
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
-
width="24"
|
|
17
|
-
height="24"
|
|
18
|
-
viewBox="0 0 24 24"
|
|
19
|
-
fill="none"
|
|
20
|
-
stroke="currentColor"
|
|
21
|
-
strokeWidth="2"
|
|
22
|
-
strokeLinecap="round"
|
|
23
|
-
strokeLinejoin="round"
|
|
24
|
-
{...props}
|
|
25
|
-
>
|
|
26
|
-
{/*
|
|
27
|
-
<path d="
|
|
28
|
-
{/*
|
|
29
|
-
<path d="
|
|
30
|
-
</svg>
|
|
31
|
-
);
|
|
32
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2025 Automated Design Corp. All Rights Reserved.
|
|
3
|
+
* Created Date: 2025-08-28 11:27:20
|
|
4
|
+
* -----
|
|
5
|
+
* Last Modified: 2025-08-28 11:38:53
|
|
6
|
+
* -----
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import type { SVGProps } from "react";
|
|
12
|
+
|
|
13
|
+
export const SvgAxisX = (props: SVGProps<SVGSVGElement>) => (
|
|
14
|
+
<svg
|
|
15
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
+
width="24"
|
|
17
|
+
height="24"
|
|
18
|
+
viewBox="0 0 24 24"
|
|
19
|
+
fill="none"
|
|
20
|
+
stroke="currentColor"
|
|
21
|
+
strokeWidth="2"
|
|
22
|
+
strokeLinecap="round"
|
|
23
|
+
strokeLinejoin="round"
|
|
24
|
+
{...props}
|
|
25
|
+
>
|
|
26
|
+
{/* Bi-directional horizontal arrow */}
|
|
27
|
+
<path d="M4 18h16M4 18l4-4M4 18l4 4M20 18l-4-4M20 18l-4 4" />
|
|
28
|
+
{/* Larger Letter X */}
|
|
29
|
+
<path d="M9 2l6 6m0-6l-6 6" />
|
|
30
|
+
</svg>
|
|
31
|
+
);
|
|
32
|
+
|
|
33
33
|
export default SvgAxisX;
|
package/src/assets/AxisY.tsx
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2025 Automated Design Corp. All Rights Reserved.
|
|
3
|
-
* Created Date: 2025-08-28 11:27:59
|
|
4
|
-
* -----
|
|
5
|
-
* Last Modified: 2025-08-28 11:42:59
|
|
6
|
-
* -----
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import type { SVGProps } from "react";
|
|
12
|
-
|
|
13
|
-
export const SvgAxisY = (props: SVGProps<SVGSVGElement>) => (
|
|
14
|
-
<svg
|
|
15
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
-
width="24"
|
|
17
|
-
height="24"
|
|
18
|
-
viewBox="0 0 24 24"
|
|
19
|
-
fill="none"
|
|
20
|
-
stroke="currentColor"
|
|
21
|
-
strokeWidth="2"
|
|
22
|
-
strokeLinecap="round"
|
|
23
|
-
strokeLinejoin="round"
|
|
24
|
-
{...props}
|
|
25
|
-
>
|
|
26
|
-
{/* Bi-directional diagonal arrow (rotated
|
|
27
|
-
<g transform="rotate(-45
|
|
28
|
-
<path d="
|
|
29
|
-
</g>
|
|
30
|
-
{/* Letter Y
|
|
31
|
-
<path d="
|
|
32
|
-
</svg>
|
|
33
|
-
);
|
|
34
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2025 Automated Design Corp. All Rights Reserved.
|
|
3
|
+
* Created Date: 2025-08-28 11:27:59
|
|
4
|
+
* -----
|
|
5
|
+
* Last Modified: 2025-08-28 11:42:59
|
|
6
|
+
* -----
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import type { SVGProps } from "react";
|
|
12
|
+
|
|
13
|
+
export const SvgAxisY = (props: SVGProps<SVGSVGElement>) => (
|
|
14
|
+
<svg
|
|
15
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
+
width="24"
|
|
17
|
+
height="24"
|
|
18
|
+
viewBox="0 0 24 24"
|
|
19
|
+
fill="none"
|
|
20
|
+
stroke="currentColor"
|
|
21
|
+
strokeWidth="2"
|
|
22
|
+
strokeLinecap="round"
|
|
23
|
+
strokeLinejoin="round"
|
|
24
|
+
{...props}
|
|
25
|
+
>
|
|
26
|
+
{/* Bi-directional diagonal arrow (rotated) */}
|
|
27
|
+
<g transform="rotate(-45 6 12)">
|
|
28
|
+
<path d="M4 12h16M4 12l4-4M4 12l4 4M20 12l-4-4M20 12l-4 4" />
|
|
29
|
+
</g>
|
|
30
|
+
{/* Larger Letter Y */}
|
|
31
|
+
<path d="M15 12l3 4v5 M21 12l-3 4" />
|
|
32
|
+
</svg>
|
|
33
|
+
);
|
|
34
|
+
|
|
35
35
|
export default SvgAxisY;
|
package/src/assets/AxisZ.tsx
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2025 Automated Design Corp. All Rights Reserved.
|
|
3
|
-
* Created Date: 2025-08-28 11:28:14
|
|
4
|
-
* -----
|
|
5
|
-
* Last Modified: 2025-08-28 11:39:53
|
|
6
|
-
* -----
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import type { SVGProps } from "react";
|
|
11
|
-
|
|
12
|
-
export const SvgAxisZ = (props: SVGProps<SVGSVGElement>) => (
|
|
13
|
-
<svg
|
|
14
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
-
width="24"
|
|
16
|
-
height="24"
|
|
17
|
-
viewBox="0 0 24 24"
|
|
18
|
-
fill="none"
|
|
19
|
-
stroke="currentColor"
|
|
20
|
-
strokeWidth="2"
|
|
21
|
-
strokeLinecap="round"
|
|
22
|
-
strokeLinejoin="round"
|
|
23
|
-
{...props}
|
|
24
|
-
>
|
|
25
|
-
{/* Bi-directional vertical arrow */}
|
|
26
|
-
<path d="M18
|
|
27
|
-
{/* Letter Z */}
|
|
28
|
-
<path d="
|
|
29
|
-
</svg>
|
|
30
|
-
);
|
|
31
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2025 Automated Design Corp. All Rights Reserved.
|
|
3
|
+
* Created Date: 2025-08-28 11:28:14
|
|
4
|
+
* -----
|
|
5
|
+
* Last Modified: 2025-08-28 11:39:53
|
|
6
|
+
* -----
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import type { SVGProps } from "react";
|
|
11
|
+
|
|
12
|
+
export const SvgAxisZ = (props: SVGProps<SVGSVGElement>) => (
|
|
13
|
+
<svg
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
width="24"
|
|
16
|
+
height="24"
|
|
17
|
+
viewBox="0 0 24 24"
|
|
18
|
+
fill="none"
|
|
19
|
+
stroke="currentColor"
|
|
20
|
+
strokeWidth="2"
|
|
21
|
+
strokeLinecap="round"
|
|
22
|
+
strokeLinejoin="round"
|
|
23
|
+
{...props}
|
|
24
|
+
>
|
|
25
|
+
{/* Bi-directional vertical arrow */}
|
|
26
|
+
<path d="M18 4v16M14 8l4-4 4 4M14 16l4 4 4-4" />
|
|
27
|
+
{/* Larger Letter Z */}
|
|
28
|
+
<path d="M2 10h6l-6 6h6" />
|
|
29
|
+
</svg>
|
|
30
|
+
);
|
|
31
|
+
|
|
32
32
|
export default SvgAxisZ;
|
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ValueInput sizing.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* accept/cancel buttons keep their
|
|
4
|
+
* NumericFormat with customInput=InputText renders a plain <input class="p-inputtext">
|
|
5
|
+
* (no .p-inputwrapper span like PrimeReact's InputNumber). In a .p-inputgroup the
|
|
6
|
+
* input defaults to flex: 1 1 auto; we override that so the field stays at a
|
|
7
|
+
* fixed width while the label addon and accept/cancel buttons keep their
|
|
8
|
+
* natural sizes.
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
|
-
.value-input-field.p-
|
|
11
|
+
.value-input-field.p-inputtext {
|
|
11
12
|
flex: 0 0 auto;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.value-input-field.p-inputwrapper .p-inputtext {
|
|
15
|
-
width: 100%;
|
|
16
13
|
box-sizing: border-box;
|
|
17
14
|
}
|
|
18
15
|
|
|
19
|
-
.value-input-field.size-small.p-
|
|
16
|
+
.value-input-field.size-small.p-inputtext {
|
|
20
17
|
width: 30mm;
|
|
21
18
|
}
|
|
22
19
|
|
|
23
|
-
.value-input-field.size-normal.p-
|
|
20
|
+
.value-input-field.size-normal.p-inputtext {
|
|
24
21
|
width: 55mm;
|
|
25
22
|
}
|
|
26
23
|
|
|
27
|
-
.value-input-field.size-large.p-
|
|
24
|
+
.value-input-field.size-large.p-inputtext {
|
|
28
25
|
width: 70mm;
|
|
29
26
|
}
|