@zakodium/nmrium-core-plugins-ui 0.1.22 → 0.1.23

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.
Files changed (23) hide show
  1. package/lib/plugins/spectrum_1d_processings_ui/operators/apodization.js +1 -1
  2. package/lib/plugins/spectrum_1d_processings_ui/operators/apodization.js.map +1 -1
  3. package/lib/plugins/spectrum_1d_processings_ui/operators/{apodization_expand.d.ts → apodization_expanded.d.ts} +1 -1
  4. package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_expanded.d.ts.map +1 -0
  5. package/lib/plugins/spectrum_1d_processings_ui/operators/{apodization_expand.js → apodization_expanded.js} +1 -1
  6. package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_expanded.js.map +1 -0
  7. package/lib/plugins/spectrum_1d_processings_ui/operators/index.js.map +1 -1
  8. package/lib/plugins/spectrum_1d_processings_ui/operators/phase_correction.d.ts.map +1 -1
  9. package/lib/plugins/spectrum_1d_processings_ui/operators/phase_correction.js +4 -6
  10. package/lib/plugins/spectrum_1d_processings_ui/operators/phase_correction.js.map +1 -1
  11. package/lib/plugins/spectrum_1d_processings_ui/operators/phase_correction_expanded.d.ts +3 -0
  12. package/lib/plugins/spectrum_1d_processings_ui/operators/phase_correction_expanded.d.ts.map +1 -0
  13. package/lib/plugins/spectrum_1d_processings_ui/operators/phase_correction_expanded.js +50 -0
  14. package/lib/plugins/spectrum_1d_processings_ui/operators/phase_correction_expanded.js.map +1 -0
  15. package/package.json +4 -4
  16. package/src/plugins/spectrum_1d_processings_ui/operators/apodization.ts +1 -1
  17. package/src/plugins/spectrum_1d_processings_ui/operators/index.ts +1 -1
  18. package/src/plugins/spectrum_1d_processings_ui/operators/phase_correction.ts +12 -0
  19. package/src/plugins/spectrum_1d_processings_ui/operators/phase_correction_expanded.tsx +116 -0
  20. package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_expand.d.ts.map +0 -1
  21. package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_expand.js.map +0 -1
  22. package/src/plugins/spectrum_1d_processings_ui/operators/phase_correction.tsx +0 -33
  23. /package/src/plugins/spectrum_1d_processings_ui/operators/{apodization_expand.tsx → apodization_expanded.tsx} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { defineProcessingOperatorUI } from '@zakodium/nmrium-core';
2
- import { ApodizationExpanded } from "./apodization_expand.js";
2
+ import { ApodizationExpanded } from "./apodization_expanded.js";
3
3
  export const apodization1D = defineProcessingOperatorUI({
4
4
  id: '@zakodium/nmrium-core-plugins#apodization1D',
5
5
  name: 'Apodization / Window',
@@ -1 +1 @@
1
- {"version":3,"file":"apodization.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAA0B,CAAC;AAE/D,MAAM,CAAC,MAAM,aAAa,GAAG,0BAA0B,CAAC;IACtD,EAAE,EAAE,6CAA6C;IACjD,IAAI,EAAE,sBAAsB;IAC5B,UAAU,EAAE,IAAI;IAChB,cAAc,EAAE,IAAI;IACpB,uBAAuB,EAAE,KAAK;IAC9B,QAAQ,EAAE,mBAAmB;CAC9B,CAAC,CAAC"}
1
+ {"version":3,"file":"apodization.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA4B,CAAC;AAEjE,MAAM,CAAC,MAAM,aAAa,GAAG,0BAA0B,CAAC;IACtD,EAAE,EAAE,6CAA6C;IACjD,IAAI,EAAE,sBAAsB;IAC5B,UAAU,EAAE,IAAI;IAChB,cAAc,EAAE,IAAI;IACpB,uBAAuB,EAAE,KAAK;IAC9B,QAAQ,EAAE,mBAAmB;CAC9B,CAAC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ProcessingOperatorUIExpandedProps } from '@zakodium/nmrium-core';
2
2
  export declare function ApodizationExpanded(props: ProcessingOperatorUIExpandedProps<'@zakodium/nmrium-core-plugins#apodization1D'>): import("react").JSX.Element;
3
- //# sourceMappingURL=apodization_expand.d.ts.map
3
+ //# sourceMappingURL=apodization_expanded.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apodization_expanded.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization_expanded.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAG/E,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,iCAAiC,CAAC,6CAA6C,CAAC,+BAoOxF"}
@@ -89,4 +89,4 @@ export function ApodizationExpanded(props) {
89
89
  },
90
90
  }, children: ({ Checkbox, state }) => (_jsxs(_Fragment, { children: [_jsx(Checkbox, { label: "Traf" }), state.value && (_jsx(AppField, { name: "traf.options.lineBroadening", children: ({ NumericInput }) => (_jsx(NumericInput, { label: "Line broadening", minorStepSize: 0.01, step: 0.1, majorStepSize: 1 })) }))] })) })] }));
91
91
  }
92
- //# sourceMappingURL=apodization_expand.js.map
92
+ //# sourceMappingURL=apodization_expanded.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apodization_expanded.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization_expanded.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,UAAU,mBAAmB,CACjC,KAAuF;IAEvF,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;I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,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAsB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAW,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAwB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAe,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAoB,CAAC;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAqC;IAC3D,eAAe;IACf,aAAa;IACb,aAAa;IACb,KAAK;IACL,QAAQ;IACR,iBAAiB;CAClB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAsB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAW,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAe,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAoB,CAAC;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAqC;IAC3D,eAAe;IACf,aAAa;IACb,aAAa;IACb,KAAK;IACL,QAAQ;IACR,iBAAiB;CAClB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"phase_correction.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/phase_correction.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,yGA8B5B,CAAC"}
1
+ {"version":3,"file":"phase_correction.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/phase_correction.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,yGAO5B,CAAC"}
@@ -1,13 +1,11 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
1
  import { defineProcessingOperatorUI } from '@zakodium/nmrium-core';
2
+ import { PhaseCorrectionExpanded } from "./phase_correction_expanded.js";
3
3
  export const phaseCorrection1D = defineProcessingOperatorUI({
4
4
  id: '@zakodium/nmrium-core-plugins#phaseCorrection1D',
5
5
  name: 'Phase correction',
6
6
  isEditable: true,
7
- Expanded: (props) => {
8
- const { operation } = props;
9
- const { settings } = operation;
10
- return (_jsxs(_Fragment, { children: [_jsxs("label", { children: ["Algorithm:", _jsxs("select", { children: [_jsx("option", { value: "automatic", children: "Automatic" }), _jsx("option", { value: "manual", selected: true, children: "Manual" })] })] }), _jsxs("label", { children: ["PH0:", _jsx("input", { type: "number", value: settings.ph0 })] }), _jsxs("label", { children: ["PH1:", _jsx("input", { type: "number", value: settings.ph1 })] })] }));
11
- },
7
+ isLiveEditable: true,
8
+ Expanded: PhaseCorrectionExpanded,
9
+ defaultShouldProcessAll: false,
12
10
  });
13
11
  //# sourceMappingURL=phase_correction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"phase_correction.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/phase_correction.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE,MAAM,CAAC,MAAM,iBAAiB,GAAG,0BAA0B,CAAC;IAC1D,EAAE,EAAE,iDAAiD;IACrD,IAAI,EAAE,kBAAkB;IACxB,UAAU,EAAE,IAAI;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;QAClB,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;QAC5B,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;QAE/B,OAAO,CACL,8BACE,0CAEE,6BACE,iBAAQ,KAAK,EAAC,WAAW,0BAAmB,EAC5C,iBAAQ,KAAK,EAAC,QAAQ,EAAC,QAAQ,6BAEtB,IACF,IACH,EACR,oCAEE,gBAAO,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,GAAI,IACtC,EACR,oCAEE,gBAAO,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,GAAI,IACtC,IACP,CACJ,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"phase_correction.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/phase_correction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAiC,CAAC;AAE1E,MAAM,CAAC,MAAM,iBAAiB,GAAG,0BAA0B,CAAC;IAC1D,EAAE,EAAE,iDAAiD;IACrD,IAAI,EAAE,kBAAkB;IACxB,UAAU,EAAE,IAAI;IAChB,cAAc,EAAE,IAAI;IACpB,QAAQ,EAAE,uBAAuB;IACjC,uBAAuB,EAAE,KAAK;CAC/B,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ProcessingOperatorUIExpandedProps } from '@zakodium/nmrium-core';
2
+ export declare function PhaseCorrectionExpanded(props: ProcessingOperatorUIExpandedProps<'@zakodium/nmrium-core-plugins#phaseCorrection1D'>): import("react").JSX.Element;
3
+ //# sourceMappingURL=phase_correction_expanded.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phase_correction_expanded.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/phase_correction_expanded.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAK/E,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,iCAAiC,CAAC,iDAAiD,CAAC,+BA4G5F"}
@@ -0,0 +1,50 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { revalidateLogic } from '@tanstack/react-form';
3
+ import { castSpectrum1D } from '@zakodium/nmrium-core';
4
+ import { autoPhaseCorrection } from 'nmr-processing';
5
+ import { AppForm, useForm } from 'react-science/ui';
6
+ export function PhaseCorrectionExpanded(props) {
7
+ const { operation, core, children, onChange, onLiveChange, onMount, spectrum, } = props;
8
+ castSpectrum1D(spectrum);
9
+ const { settings } = operation;
10
+ const operator = core.getOperationOperator('@zakodium/nmrium-core-plugins#phaseCorrection1D', operation);
11
+ const { schemaSettings } = operator;
12
+ const form = useForm({
13
+ defaultValues: settings,
14
+ validators: { onDynamic: schemaSettings },
15
+ validationLogic: revalidateLogic(),
16
+ onSubmit: ({ value }) => {
17
+ if (!onChange)
18
+ return;
19
+ const newOperation = {
20
+ ...operation,
21
+ settings: schemaSettings.parse(value),
22
+ };
23
+ onChange(newOperation);
24
+ },
25
+ listeners: {
26
+ onMount: () => onMount(),
27
+ onChange: ({ formApi }) => {
28
+ const result = schemaSettings.safeParse(formApi.state.values);
29
+ if (!result.success)
30
+ return;
31
+ const liveOperation = { ...operation, settings: result.data };
32
+ onLiveChange(liveOperation);
33
+ },
34
+ },
35
+ });
36
+ return (_jsxs(AppForm, { form: form, layout: "stacked", children: [children?.(_jsx(form.SubmitButton, { variant: "outlined", size: "small", intent: "success", children: "Apply" })), _jsx(form.AppField, { name: "mode", listeners: {
37
+ onChange: ({ value, fieldApi }) => {
38
+ if (value === 'manual') {
39
+ const { ph0, ph1 } = autoPhaseCorrection(spectrum);
40
+ fieldApi.form.setFieldValue('ph0', ph0);
41
+ fieldApi.form.setFieldValue('ph1', ph1);
42
+ }
43
+ },
44
+ }, children: (field) => (_jsxs(_Fragment, { children: [_jsx(field.Select, { label: "Mode", layout: "inline", items: [
45
+ { value: 'automatic', label: 'Automatic' },
46
+ { value: 'manual', label: 'Manual' },
47
+ { value: 'absolute', label: 'Absolute' },
48
+ ] }), field.state.value === 'manual' && (_jsxs(_Fragment, { children: [_jsx(form.AppField, { name: "ph0", children: (field) => (_jsx(field.DraggableNumericInput, { label: "PH0", draggableLabel: "Change PH0 (click and drag)", draggableIntent: "success" })) }), _jsx(form.AppField, { name: "ph1", children: (field) => (_jsx(field.DraggableNumericInput, { label: "PH1", draggableLabel: "Change PH1 (click and drag)", draggableIntent: "success" })) })] }))] })) })] }));
49
+ }
50
+ //# sourceMappingURL=phase_correction_expanded.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phase_correction_expanded.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/phase_correction_expanded.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,UAAU,uBAAuB,CACrC,KAA2F;IAE3F,MAAM,EACJ,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,QAAQ,GACT,GAAG,KAAK,CAAC;IAEV,cAAc,CAAC,QAAQ,CAAC,CAAC;IAEzB,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAI,CAAC,oBAAoB,CACxC,iDAAiD,EACjD,SAAS,CACV,CAAC;IAEF,MAAM,EAAE,cAAc,EAAE,GAAG,QAAQ,CAAC;IACpC,MAAM,IAAI,GAAG,OAAO,CAAC;QACnB,aAAa,EAAE,QAAQ;QACvB,UAAU,EAAE,EAAE,SAAS,EAAE,cAAc,E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,aAAa,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;4BACxC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;wBAC1C,CAAC;oBACH,CAAC;iBACF,YAEA,CAAC,KAAK,EAAE,EAAE,CAAC,CACV,8BACE,KAAC,KAAK,CAAC,MAAM,IACX,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,QAAQ,EACf,KAAK,EAAE;gCACL,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;gCAC1C,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;gCACpC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;6BACzC,GACD,EAED,KAAK,CAAC,KAAK,CAAC,KAAK,KAAK,QAAQ,IAAI,CACjC,8BACE,KAAC,IAAI,CAAC,QAAQ,IAAC,IAAI,EAAC,KAAK,YACtB,CAAC,KAAK,EAAE,EAAE,CAAC,CACV,KAAC,KAAK,CAAC,qBAAqB,IAC1B,KAAK,EAAC,KAAK,EACX,cAAc,EAAC,6BAA6B,EAC5C,eAAe,EAAC,SAAS,GACzB,CACH,GACa,EAEhB,KAAC,IAAI,CAAC,QAAQ,IAAC,IAAI,EAAC,KAAK,YACtB,CAAC,KAAK,EAAE,EAAE,CAAC,CACV,KAAC,KAAK,CAAC,qBAAqB,IAC1B,KAAK,EAAC,KAAK,EACX,cAAc,EAAC,6BAA6B,EAC5C,eAAe,EAAC,SAAS,GACzB,CACH,GACa,IACf,CACJ,IACA,CACJ,GACa,IACR,CACX,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zakodium/nmrium-core-plugins-ui",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "license": "CC-BY-NC-SA-4.0",
5
5
  "description": "UI related plugins needed for cheminfo/nmrium",
6
6
  "keywords": [],
@@ -27,8 +27,8 @@
27
27
  "@blueprintjs/icons": "^6.13.0",
28
28
  "@blueprintjs/select": "^6.3.3",
29
29
  "@tanstack/react-form": "^1.33.2",
30
- "@zakodium/nmrium-core": "^0.7.48",
31
- "@zakodium/nmrium-core-plugins": "^0.7.64",
30
+ "@zakodium/nmrium-core": "^0.7.49",
31
+ "@zakodium/nmrium-core-plugins": "^0.7.65",
32
32
  "fifo-logger": "^2.0.1",
33
33
  "react": "^18.3.1",
34
34
  "react-dom": "^18.3.1",
@@ -42,5 +42,5 @@
42
42
  "typescript": "~6.0.3",
43
43
  "vitest": "^4.1.10"
44
44
  },
45
- "gitHead": "70cef3cf175a8ed98e2b015f3fcf85ebb162b59b"
45
+ "gitHead": "b11e2640ef3a8c479d8fa8e90dce341a767757bc"
46
46
  }
@@ -1,6 +1,6 @@
1
1
  import { defineProcessingOperatorUI } from '@zakodium/nmrium-core';
2
2
 
3
- import { ApodizationExpanded } from './apodization_expand.tsx';
3
+ import { ApodizationExpanded } from './apodization_expanded.tsx';
4
4
 
5
5
  export const apodization1D = defineProcessingOperatorUI({
6
6
  id: '@zakodium/nmrium-core-plugins#apodization1D',
@@ -3,7 +3,7 @@ import type { ProcessingOperatorUI } from '@zakodium/nmrium-core';
3
3
  import { apodization1D } from './apodization.ts';
4
4
  import { digitalFilter1D } from './digital_filter.tsx';
5
5
  import { fft1D } from './fft.tsx';
6
- import { phaseCorrection1D } from './phase_correction.tsx';
6
+ import { phaseCorrection1D } from './phase_correction.ts';
7
7
  import { shiftX1D } from './shift_x.tsx';
8
8
  import { zeroFilling1D } from './zero_filling.tsx';
9
9
 
@@ -0,0 +1,12 @@
1
+ import { defineProcessingOperatorUI } from '@zakodium/nmrium-core';
2
+
3
+ import { PhaseCorrectionExpanded } from './phase_correction_expanded.tsx';
4
+
5
+ export const phaseCorrection1D = defineProcessingOperatorUI({
6
+ id: '@zakodium/nmrium-core-plugins#phaseCorrection1D',
7
+ name: 'Phase correction',
8
+ isEditable: true,
9
+ isLiveEditable: true,
10
+ Expanded: PhaseCorrectionExpanded,
11
+ defaultShouldProcessAll: false,
12
+ });
@@ -0,0 +1,116 @@
1
+ import { revalidateLogic } from '@tanstack/react-form';
2
+ import type { ProcessingOperatorUIExpandedProps } from '@zakodium/nmrium-core';
3
+ import { castSpectrum1D } from '@zakodium/nmrium-core';
4
+ import { autoPhaseCorrection } from 'nmr-processing';
5
+ import { AppForm, useForm } from 'react-science/ui';
6
+
7
+ export function PhaseCorrectionExpanded(
8
+ props: ProcessingOperatorUIExpandedProps<'@zakodium/nmrium-core-plugins#phaseCorrection1D'>,
9
+ ) {
10
+ const {
11
+ operation,
12
+ core,
13
+ children,
14
+ onChange,
15
+ onLiveChange,
16
+ onMount,
17
+ spectrum,
18
+ } = props;
19
+
20
+ castSpectrum1D(spectrum);
21
+
22
+ const { settings } = operation;
23
+ const operator = core.getOperationOperator(
24
+ '@zakodium/nmrium-core-plugins#phaseCorrection1D',
25
+ operation,
26
+ );
27
+
28
+ const { schemaSettings } = operator;
29
+ const form = useForm({
30
+ defaultValues: settings,
31
+ validators: { onDynamic: schemaSettings },
32
+ validationLogic: revalidateLogic(),
33
+ onSubmit: ({ value }) => {
34
+ if (!onChange) return;
35
+
36
+ const newOperation = {
37
+ ...operation,
38
+ settings: schemaSettings.parse(value),
39
+ };
40
+
41
+ onChange(newOperation);
42
+ },
43
+ listeners: {
44
+ onMount: () => onMount(),
45
+ onChange: ({ formApi }) => {
46
+ const result = schemaSettings.safeParse(formApi.state.values);
47
+ if (!result.success) return;
48
+
49
+ const liveOperation = { ...operation, settings: result.data };
50
+ onLiveChange(liveOperation);
51
+ },
52
+ },
53
+ });
54
+
55
+ return (
56
+ <AppForm form={form} layout="stacked">
57
+ {children?.(
58
+ <form.SubmitButton variant="outlined" size="small" intent="success">
59
+ Apply
60
+ </form.SubmitButton>,
61
+ )}
62
+
63
+ <form.AppField
64
+ name="mode"
65
+ listeners={{
66
+ onChange: ({ value, fieldApi }) => {
67
+ if (value === 'manual') {
68
+ const { ph0, ph1 } = autoPhaseCorrection(spectrum);
69
+
70
+ fieldApi.form.setFieldValue('ph0', ph0);
71
+ fieldApi.form.setFieldValue('ph1', ph1);
72
+ }
73
+ },
74
+ }}
75
+ >
76
+ {(field) => (
77
+ <>
78
+ <field.Select
79
+ label="Mode"
80
+ layout="inline"
81
+ items={[
82
+ { value: 'automatic', label: 'Automatic' },
83
+ { value: 'manual', label: 'Manual' },
84
+ { value: 'absolute', label: 'Absolute' },
85
+ ]}
86
+ />
87
+
88
+ {field.state.value === 'manual' && (
89
+ <>
90
+ <form.AppField name="ph0">
91
+ {(field) => (
92
+ <field.DraggableNumericInput
93
+ label="PH0"
94
+ draggableLabel="Change PH0 (click and drag)"
95
+ draggableIntent="success"
96
+ />
97
+ )}
98
+ </form.AppField>
99
+
100
+ <form.AppField name="ph1">
101
+ {(field) => (
102
+ <field.DraggableNumericInput
103
+ label="PH1"
104
+ draggableLabel="Change PH1 (click and drag)"
105
+ draggableIntent="success"
106
+ />
107
+ )}
108
+ </form.AppField>
109
+ </>
110
+ )}
111
+ </>
112
+ )}
113
+ </form.AppField>
114
+ </AppForm>
115
+ );
116
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"apodization_expand.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization_expand.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAG/E,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,iCAAiC,CAAC,6CAA6C,CAAC,+BAoOxF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"apodization_expand.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization_expand.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,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,iBAAiB,EACvB,aAAa,EAAE,IAAI,EACnB,IAAI,EAAE,GAAG,EACT,aAAa,EAAE,CAAC,GAChB,CACH,GACQ,CACZ,IACA,CACJ,GACQ,IACH,CACX,CAAC;AACJ,CAAC"}
@@ -1,33 +0,0 @@
1
- import { defineProcessingOperatorUI } from '@zakodium/nmrium-core';
2
-
3
- export const phaseCorrection1D = defineProcessingOperatorUI({
4
- id: '@zakodium/nmrium-core-plugins#phaseCorrection1D',
5
- name: 'Phase correction',
6
- isEditable: true,
7
- Expanded: (props) => {
8
- const { operation } = props;
9
- const { settings } = operation;
10
-
11
- return (
12
- <>
13
- <label>
14
- Algorithm:
15
- <select>
16
- <option value="automatic">Automatic</option>
17
- <option value="manual" selected>
18
- Manual
19
- </option>
20
- </select>
21
- </label>
22
- <label>
23
- PH0:
24
- <input type="number" value={settings.ph0} />
25
- </label>
26
- <label>
27
- PH1:
28
- <input type="number" value={settings.ph1} />
29
- </label>
30
- </>
31
- );
32
- },
33
- });