nmrium 2.2.0 → 2.3.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/lib/component/1d/PredictionErrorsNotations.js +3 -3
- package/lib/component/1d/PredictionErrorsNotations.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/Peaks.js +2 -1
- package/lib/component/1d/peaks/Peaks.js.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.js +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
- package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.d.ts +9 -0
- package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.d.ts.map +1 -0
- package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.js +138 -0
- package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.js.map +1 -0
- package/lib/component/1d/ranges/FloatingRanges.d.ts.map +1 -0
- package/lib/component/1d/ranges/FloatingRanges.js +362 -0
- package/lib/component/1d/ranges/FloatingRanges.js.map +1 -0
- package/lib/component/1d/ranges/Ranges.js +2 -2
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d-2d/FieldEdition.d.ts +2 -2
- package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
- package/lib/component/1d-2d/FieldEdition.js +2 -2
- package/lib/component/1d-2d/FieldEdition.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +7 -7
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/SVGTable.d.ts +5 -3
- package/lib/component/SVGTable.d.ts.map +1 -1
- package/lib/component/SVGTable.js +16 -16
- package/lib/component/SVGTable.js.map +1 -1
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.js.map +1 -1
- package/lib/component/context/LoggerContext.d.ts.map +1 -1
- package/lib/component/context/LoggerContext.js.map +1 -1
- package/lib/component/context/SortSpectraContext.d.ts.map +1 -1
- package/lib/component/context/SortSpectraContext.js.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts +2 -2
- package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +6 -9
- package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
- package/lib/component/elements/Button.d.ts.map +1 -1
- package/lib/component/elements/Button.js.map +1 -1
- package/lib/component/elements/Sections.d.ts.map +1 -1
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/TabTitle.d.ts.map +1 -1
- package/lib/component/elements/TabTitle.js +2 -2
- package/lib/component/elements/TabTitle.js.map +1 -1
- package/lib/component/elements/ToolbarPopoverItem.d.ts +1 -0
- package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
- package/lib/component/elements/ToolbarPopoverItem.js +10 -3
- package/lib/component/elements/ToolbarPopoverItem.js.map +1 -1
- package/lib/component/elements/dropDownButton/DropDownButton.d.ts.map +1 -1
- package/lib/component/elements/dropDownButton/DropDownButton.js +2 -2
- package/lib/component/elements/dropDownButton/DropDownButton.js.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.d.ts +1 -1
- package/lib/component/elements/export/ExportOptionsModal.d.ts.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.js +31 -110
- package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
- package/lib/component/elements/export/units.d.ts +0 -28
- package/lib/component/elements/export/units.d.ts.map +1 -1
- package/lib/component/elements/export/units.js +0 -5
- package/lib/component/elements/export/units.js.map +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.js.map +1 -1
- package/lib/component/elements/print/pageSize.d.ts +1 -1
- package/lib/component/elements/print/pageSize.d.ts.map +1 -1
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts +3 -3
- package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
- package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
- package/lib/component/hooks/useTextMetrics.js +1 -0
- package/lib/component/hooks/useTextMetrics.js.map +1 -1
- package/lib/component/main/NMRiumViewer.js +1 -1
- package/lib/component/main/NMRiumViewer.js.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.js +2 -2
- package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
- package/lib/component/modal/SaveAsModal.d.ts +2 -2
- package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
- package/lib/component/modal/SaveAsModal.js +43 -35
- package/lib/component/modal/SaveAsModal.js.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +4 -3
- package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js +2 -2
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +5 -5
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +3 -3
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +5 -5
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +5 -5
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +5 -5
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +5 -5
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +14 -14
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js +3 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +3 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +30 -3
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +18 -18
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js +11 -11
- package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js +22 -22
- package/lib/component/panels/RangesPanel/RangesPreferences.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +2 -2
- package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.js +5 -4
- package/lib/component/panels/RangesPanel/RangesTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +2 -2
- package/lib/component/panels/RangesPanel/RangesTableRow.js +2 -2
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +5 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js +7 -4
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.js +5 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +2 -2
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/hooks/useMoleculeAnnotationCore.d.ts +3 -2
- package/lib/component/panels/hooks/useMoleculeAnnotationCore.d.ts.map +1 -1
- package/lib/component/panels/hooks/useMoleculeAnnotationCore.js +14 -8
- package/lib/component/panels/hooks/useMoleculeAnnotationCore.js.map +1 -1
- package/lib/component/panels/informationPanel/MixedValuesBadge.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/MixedValuesBadge.js +2 -2
- package/lib/component/panels/informationPanel/MixedValuesBadge.js.map +1 -1
- package/lib/component/panels/informationPanel/SpectraPicker.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/SpectraPicker.js +2 -2
- package/lib/component/panels/informationPanel/SpectraPicker.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadAction.js.map +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.d.ts.map +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.js.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +35 -26
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +2 -2
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +2 -2
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +2 -2
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts +2 -2
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +1 -0
- package/lib/component/utility/export.js.map +1 -1
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/constants/signalsKinds.d.ts +1 -2
- package/lib/data/constants/signalsKinds.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +2 -2
- package/lib/data/matrixGeneration.d.ts.map +1 -1
- package/lib/data/matrixGeneration.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +30 -31
- package/src/component/1d/PredictionErrorsNotations.tsx +5 -4
- package/src/component/1d/peaks/Peaks.tsx +5 -2
- package/src/component/1d/peaks/usePeakShapesPath.ts +0 -1
- package/src/component/1d/ranges/AssignmentLabel.tsx +1 -1
- package/src/component/1d/ranges/FloatingRangeTablePreferencesModal.tsx +238 -0
- package/src/component/1d/ranges/FloatingRanges.tsx +529 -0
- package/src/component/1d/ranges/Ranges.tsx +2 -2
- package/src/component/1d-2d/FieldEdition.tsx +4 -4
- package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +8 -8
- package/src/component/2d/zones/SignalsGuideLines.tsx +1 -1
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +1 -1
- package/src/component/EventsTrackers/BrushTracker.tsx +1 -2
- package/src/component/SVGTable.tsx +35 -33
- package/src/component/context/KeyModifierContext.tsx +1 -2
- package/src/component/context/LoggerContext.tsx +1 -7
- package/src/component/context/SortSpectraContext.tsx +1 -3
- package/src/component/elements/ActionsButtonsPopover.tsx +12 -14
- package/src/component/elements/Button.tsx +1 -6
- package/src/component/elements/Sections.tsx +5 -3
- package/src/component/elements/TabTitle.tsx +7 -5
- package/src/component/elements/ToolbarPopoverItem.tsx +13 -2
- package/src/component/elements/dropDownButton/DropDownButton.tsx +7 -5
- package/src/component/elements/export/ExportOptionsModal.tsx +56 -276
- package/src/component/elements/export/units.ts +0 -6
- package/src/component/elements/export/utilities/getExportOptions.ts +1 -0
- package/src/component/elements/print/pageSize.ts +1 -1
- package/src/component/hooks/useExport.tsx +1 -3
- package/src/component/hooks/usePanelPreferences.ts +4 -4
- package/src/component/hooks/useTextMetrics.ts +1 -0
- package/src/component/main/NMRiumViewer.tsx +1 -1
- package/src/component/modal/EditPeakShapeModal.tsx +2 -2
- package/src/component/modal/SaveAsModal.tsx +89 -82
- package/src/component/modal/editRange/EditRangeModal.tsx +6 -4
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +3 -3
- package/src/component/modal/setting/WorkspaceItem.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +3 -3
- package/src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.tsx +3 -2
- package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +3 -2
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +41 -8
- package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +18 -18
- package/src/component/panels/PeaksPanel/PeaksTable.tsx +11 -11
- package/src/component/panels/RangesPanel/RangesHeader.tsx +1 -2
- package/src/component/panels/RangesPanel/RangesPanel.tsx +2 -2
- package/src/component/panels/RangesPanel/RangesPreferences.tsx +22 -22
- package/src/component/panels/RangesPanel/RangesTable.tsx +19 -17
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +25 -25
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +12 -1
- package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +22 -4
- package/src/component/panels/SpectraPanel/base/SpectrumName.tsx +15 -6
- package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +3 -2
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +1 -5
- package/src/component/panels/hooks/useMoleculeAnnotationCore.ts +17 -9
- package/src/component/panels/informationPanel/MixedValuesBadge.tsx +3 -2
- package/src/component/panels/informationPanel/SpectraPicker.tsx +12 -4
- package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +2 -2
- package/src/component/reducer/actions/DomainActions.ts +1 -4
- package/src/component/reducer/actions/FiltersActions.ts +1 -2
- package/src/component/reducer/actions/LoadAction.ts +1 -3
- package/src/component/reducer/helper/setRangesViewProperty.ts +1 -2
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +32 -19
- package/src/component/reducer/preferences/preferencesReducer.ts +2 -2
- package/src/component/reducer/preferences/utilities/initWorkspace.ts +2 -2
- package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +2 -2
- package/src/component/toolbar/ToolTypes.ts +2 -2
- package/src/component/utility/export.ts +1 -0
- package/src/data/PredictionManager.ts +4 -6
- package/src/data/constants/signalsKinds.ts +1 -1
- package/src/data/data1d/multipleSpectraAnalysis.ts +2 -2
- package/src/data/matrixGeneration.ts +1 -5
- package/src/versionInfo.ts +1 -1
- package/lib/component/1d/FloatingRanges.d.ts.map +0 -1
- package/lib/component/1d/FloatingRanges.js +0 -263
- package/lib/component/1d/FloatingRanges.js.map +0 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +0 -17
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts.map +0 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js +0 -79
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js.map +0 -1
- package/lib/component/elements/export/utilities/getModes.d.ts +0 -4
- package/lib/component/elements/export/utilities/getModes.d.ts.map +0 -1
- package/lib/component/elements/export/utilities/getModes.js +0 -11
- package/lib/component/elements/export/utilities/getModes.js.map +0 -1
- package/src/component/1d/FloatingRanges.tsx +0 -378
- package/src/component/elements/export/utilities/exportOptionValidationSchema.ts +0 -106
- package/src/component/elements/export/utilities/getModes.ts +0 -14
- /package/lib/component/1d/{FloatingRanges.d.ts → ranges/FloatingRanges.d.ts} +0 -0
|
@@ -4,6 +4,6 @@ interface InnerSaveAsModalProps {
|
|
|
4
4
|
interface SaveAsModalProps extends InnerSaveAsModalProps {
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
export
|
|
7
|
+
export default function SaveAsModal(props: SaveAsModalProps): import("react").JSX.Element | undefined;
|
|
8
|
+
export {};
|
|
9
9
|
//# sourceMappingURL=SaveAsModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveAsModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/SaveAsModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SaveAsModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/SaveAsModal.tsx"],"names":[],"mappings":"AAiCA,UAAU,qBAAqB;IAC7B,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,UAAU,gBAAiB,SAAQ,qBAAqB;IACtD,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAK1D"}
|
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { DialogBody, DialogFooter } from '@blueprintjs/core';
|
|
3
|
+
import { revalidateLogic } from '@tanstack/react-form';
|
|
3
4
|
import { useMemo } from 'react';
|
|
4
|
-
import {
|
|
5
|
+
import { Button, Form, useForm } from 'react-science/ui';
|
|
6
|
+
import { z } from 'zod/v4';
|
|
5
7
|
import { DataExportOptions } from '../../data/SpectraManager.js';
|
|
6
8
|
import { useChartData } from '../context/ChartContext.js';
|
|
7
|
-
import ActionButtons from '../elements/ActionButtons.js';
|
|
8
|
-
import { Input2Controller } from '../elements/Input2Controller.js';
|
|
9
|
-
import Label from '../elements/Label.js';
|
|
10
9
|
import { StandardDialog } from "../elements/StandardDialog.js";
|
|
11
|
-
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
12
10
|
import { useExport } from '../hooks/useExport.js';
|
|
11
|
+
const formSchema = z.object({
|
|
12
|
+
name: z.string().min(1, { error: 'Name is required' }),
|
|
13
|
+
include: z.object({
|
|
14
|
+
dataType: z.enum([
|
|
15
|
+
'NO_DATA',
|
|
16
|
+
'SELF_CONTAINED',
|
|
17
|
+
'SELF_CONTAINED_EXTERNAL_DATASOURCE',
|
|
18
|
+
]),
|
|
19
|
+
view: z.boolean(),
|
|
20
|
+
settings: z.boolean(),
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
13
23
|
const INITIAL_VALUE = {
|
|
14
24
|
name: '',
|
|
15
25
|
include: {
|
|
16
|
-
dataType:
|
|
26
|
+
dataType: 'SELF_CONTAINED',
|
|
17
27
|
view: false,
|
|
18
28
|
settings: false,
|
|
19
29
|
},
|
|
20
30
|
};
|
|
21
|
-
|
|
22
|
-
label: {
|
|
23
|
-
flex: 4,
|
|
24
|
-
color: '#232323',
|
|
25
|
-
},
|
|
26
|
-
wrapper: {
|
|
27
|
-
flex: 8,
|
|
28
|
-
display: 'flex',
|
|
29
|
-
justifyContent: 'flex-start',
|
|
30
|
-
},
|
|
31
|
-
container: { padding: '5px 0' },
|
|
32
|
-
};
|
|
33
|
-
function SaveAsModal(props) {
|
|
31
|
+
export default function SaveAsModal(props) {
|
|
34
32
|
const { onCloseDialog, isOpen } = props;
|
|
35
33
|
if (!isOpen)
|
|
36
34
|
return;
|
|
@@ -40,23 +38,33 @@ function InnerSaveAsModal(props) {
|
|
|
40
38
|
const { onCloseDialog } = props;
|
|
41
39
|
const { data, aggregator } = useChartData();
|
|
42
40
|
const { saveHandler } = useExport();
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
const form = useForm({
|
|
42
|
+
defaultValues: { ...INITIAL_VALUE, name: data[0]?.info?.name },
|
|
43
|
+
validators: { onDynamic: formSchema },
|
|
44
|
+
validationLogic: revalidateLogic({ modeAfterSubmission: 'change' }),
|
|
45
|
+
onSubmit: ({ value }) => {
|
|
46
|
+
const parsedValue = formSchema.parse(value);
|
|
47
|
+
saveHandler(parsedValue);
|
|
48
|
+
onCloseDialog();
|
|
49
|
+
},
|
|
50
50
|
});
|
|
51
51
|
const containsLinkedFiles = useMemo(() => {
|
|
52
52
|
return aggregator.sources.some((s) => !s.baseURL?.startsWith('ium:'));
|
|
53
53
|
}, [aggregator]);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
const options = useMemo(() => {
|
|
55
|
+
return [
|
|
56
|
+
{ value: DataExportOptions.SELF_CONTAINED, label: 'Embed data' },
|
|
57
|
+
{
|
|
58
|
+
value: DataExportOptions.SELF_CONTAINED_EXTERNAL_DATASOURCE,
|
|
59
|
+
label: 'Link data',
|
|
60
|
+
disabled: !containsLinkedFiles,
|
|
61
|
+
},
|
|
62
|
+
{ value: DataExportOptions.NO_DATA, label: 'None' },
|
|
63
|
+
];
|
|
64
|
+
}, [containsLinkedFiles]);
|
|
65
|
+
return (_jsx(StandardDialog, { isOpen: true, title: "Save as ... ", onClose: onCloseDialog, style: { width: 600 }, children: _jsx(form.AppForm, { children: _jsxs(Form, { layout: "inline", noValidate: true, onSubmit: (event) => {
|
|
66
|
+
event.preventDefault();
|
|
67
|
+
void form.handleSubmit();
|
|
68
|
+
}, children: [_jsxs(DialogBody, { style: { backgroundColor: 'white' }, children: [_jsx(form.Section, { title: "General information", children: _jsx(form.AppField, { name: "name", children: (field) => _jsx(field.Input, { label: "Name", required: true, autoFocus: true }) }) }), _jsxs(form.Section, { title: "Include", children: [_jsx(form.AppField, { name: "include.view", children: (field) => _jsx(field.Checkbox, { label: "View" }) }), _jsx(form.AppField, { name: "include.settings", children: (field) => _jsx(field.Checkbox, { label: "Workspace" }) }), _jsx(form.AppField, { name: "include.dataType", children: (field) => (_jsx(field.RadioGroup, { inline: true, label: "Data", options: options })) })] })] }), _jsx(DialogFooter, { actions: _jsxs(_Fragment, { children: [_jsx(Button, { variant: "outlined", intent: "danger", onClick: () => onCloseDialog?.(), children: "Cancel" }), _jsx(form.SubmitButton, { intent: "success", children: "Save" })] }) })] }) }) }));
|
|
60
69
|
}
|
|
61
|
-
export default SaveAsModal;
|
|
62
70
|
//# sourceMappingURL=SaveAsModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveAsModal.js","sourceRoot":"","sources":["../../../src/component/modal/SaveAsModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SaveAsModal.js","sourceRoot":"","sources":["../../../src/component/modal/SaveAsModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAAgC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC;IACtD,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB,Q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,KAAK,CAAC,KAAK,IAAC,KAAK,EAAC,MAAM,EAAC,QAAQ,QAAC,SAAS,SAAG,GAC7C,GACH,EACf,MAAC,IAAI,CAAC,OAAO,IAAC,KAAK,EAAC,SAAS,aAC3B,KAAC,IAAI,CAAC,QAAQ,IAAC,IAAI,EAAC,cAAc,YAC/B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,KAAK,CAAC,QAAQ,IAAC,KAAK,EAAC,MAAM,GAAG,GAC7B,EAEhB,KAAC,IAAI,CAAC,QAAQ,IAAC,IAAI,EAAC,kBAAkB,YACnC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,KAAK,CAAC,QAAQ,IAAC,KAAK,EAAC,WAAW,GAAG,GAClC,EAEhB,KAAC,IAAI,CAAC,QAAQ,IAAC,IAAI,EAAC,kBAAkB,YACnC,CAAC,KAAK,EAAE,EAAE,CAAC,CACV,KAAC,KAAK,CAAC,UAAU,IAAC,MAAM,QAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,GAAI,CAC3D,GACa,IACH,IACJ,EAEb,KAAC,YAAY,IACX,OAAO,EACL,8BACE,KAAC,MAAM,IACL,OAAO,EAAC,UAAU,EAClB,MAAM,EAAC,QAAQ,EACf,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,EAAE,EAAE,uBAGzB,EACT,KAAC,IAAI,CAAC,YAAY,IAAC,MAAM,EAAC,SAAS,qBAAyB,IAC3D,GAEL,IACG,GACM,GACA,CAClB,CAAC;AACJ,CAAC"}
|
|
@@ -41,7 +41,7 @@ function InnerEditRangeModal(props) {
|
|
|
41
41
|
const dispatch = useDispatch();
|
|
42
42
|
const range = useRange(rangeID);
|
|
43
43
|
const originalRangeRef = useRef(range);
|
|
44
|
-
const
|
|
44
|
+
const preferences = usePanelPreferences('ranges', activeTab);
|
|
45
45
|
function handleOnZoom() {
|
|
46
46
|
onZoom(range);
|
|
47
47
|
}
|
|
@@ -79,10 +79,11 @@ function InnerEditRangeModal(props) {
|
|
|
79
79
|
});
|
|
80
80
|
},
|
|
81
81
|
});
|
|
82
|
-
if (!
|
|
82
|
+
if (!preferences || !range) {
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
|
-
const
|
|
85
|
+
const { tablePreferences } = preferences;
|
|
86
|
+
const title = ` Range and Signal edition: ${formatNumber(range?.from, tablePreferences.from.format)} ppm to ${formatNumber(range?.to, tablePreferences.to.format)} ppm`;
|
|
86
87
|
return (_jsx(TabsProvider, { defaultSelectedTabId: 0, children: _jsx(FormProvider, { ...methods, children: _jsxs(DraggableDialog, { hasBackdrop: false, canOutsideClickClose: false, style: { width: 700 }, title: title, isOpen: true, headerLeftElement: _jsx(Button, { intent: "success", style: { marginRight: '5px', borderRadius: '5px' }, icon: _jsx(FaSearchPlus, { title: "Set to default view on range in spectrum" }), variant: "minimal", onClick: handleOnZoom }), onClose: handleOnClose, placement: "top-right", children: [_jsx(DialogBody, { children: _jsx(SignalsContent, { range: range }) }), _jsx(DialogFooter, { children: _jsx("div", { style: { display: 'flex', flexDirection: 'row-reverse' }, children: _jsx(Button, { intent: "success", onClick: () => methods.handleSubmit(handleSave)(), children: "Save and Exit" }) }) })] }) }) }));
|
|
87
88
|
}
|
|
88
89
|
function useRange(rangeId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditRangeModal.js","sourceRoot":"","sources":["../../../../src/component/modal/editRange/EditRangeModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,C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= useTabsController();
|
|
32
32
|
const { signals } = useWatch();
|
|
33
33
|
const activeTab = useActiveNucleusTab();
|
|
34
|
-
const
|
|
34
|
+
const { tablePreferences } = usePanelPreferences('ranges', activeTab);
|
|
35
35
|
function saveHandler(val) {
|
|
36
36
|
const newSignal = {
|
|
37
37
|
multiplicity: 'm',
|
|
@@ -69,7 +69,7 @@ export function NewSignalTab(props) {
|
|
|
69
69
|
}, 0);
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
|
-
return (_jsx("div", { style: styles.container, children: _jsxs("div", { style: styles.innerContainer, children: [_jsxs("p", { style: styles.infoText, children: ["Edit or select a delta value of new signal in range [", `${formatNumber(range.from,
|
|
72
|
+
return (_jsx("div", { style: styles.container, children: _jsxs("div", { style: styles.innerContainer, children: [_jsxs("p", { style: styles.infoText, children: ["Edit or select a delta value of new signal in range [", `${formatNumber(range.from, tablePreferences.from.format)} ppm - ${formatNumber(range.to, tablePreferences.to.format)} ppm`, "]:"] }), _jsx(NumberInput2Controller, { control: control, name: "delta", placeholder: `𝛅(ppm)`, autoSelect: true, fill: true }), _jsx(Button, { intent: "success", style: {
|
|
73
73
|
marginTop: '20px',
|
|
74
74
|
}, onClick: () => handleSubmit(saveHandler)(), children: "Add a signal" })] }) }));
|
|
75
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewSignalTab.js","sourceRoot":"","sources":["../../../../../../src/component/modal/editRange/forms/components/NewSignalTab.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,MAAM,MAAM,GAGR;IACF,SAAS,EAAE;QACT,OAAO,EAAE,QAAQ;KAClB;IACD,cAAc,EAAE;QACd,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE,MAAM;KACf;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,QAAQ;QACjB,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,OAAO;KACnB;CACF,CAAC;AAMF,MAAM,UAAU,YAAY,CAAC,KAAwB;IACnD,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IACxB,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,CAAC;IACtC,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,iBAAiB,EAAE,CAAC;IACtE,MAAM,EAAE,OAAO,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC/B,MAAM,SAAS,GAAG,mBAAmB,EAAE,CAAC;IACxC,MAAM,
|
|
1
|
+
{"version":3,"file":"NewSignalTab.js","sourceRoot":"","sources":["../../../../../../src/component/modal/editRange/forms/components/NewSignalTab.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAA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AO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAC7B,uBAAuB,CAAC;YACxB,OAAO,WAAW,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC;QACtD,CAAC,CAAC;aACD,QAAQ,EAAE;KACd,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -281,7 +281,7 @@ export declare const GeneralSettingsErrorsOpenProvider: import("react").Function
|
|
|
281
281
|
};
|
|
282
282
|
};
|
|
283
283
|
} | undefined;
|
|
284
|
-
}, any, any, import("@tanstack/
|
|
284
|
+
}, any, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
285
285
|
display: {
|
|
286
286
|
general?: {
|
|
287
287
|
experimentalFeatures?: {
|
|
@@ -554,7 +554,7 @@ export declare const GeneralSettingsErrorsOpenProvider: import("react").Function
|
|
|
554
554
|
};
|
|
555
555
|
};
|
|
556
556
|
} | undefined;
|
|
557
|
-
}> | undefined, any, import("@tanstack/
|
|
557
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
558
558
|
display: {
|
|
559
559
|
general?: {
|
|
560
560
|
experimentalFeatures?: {
|
|
@@ -827,7 +827,7 @@ export declare const GeneralSettingsErrorsOpenProvider: import("react").Function
|
|
|
827
827
|
};
|
|
828
828
|
};
|
|
829
829
|
} | undefined;
|
|
830
|
-
}> | undefined, any, import("@tanstack/
|
|
830
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
831
831
|
display: {
|
|
832
832
|
general?: {
|
|
833
833
|
experimentalFeatures?: {
|
|
@@ -1748,7 +1748,7 @@ export declare const GeneralSettingsErrorsOpenProvider: import("react").Function
|
|
|
1748
1748
|
}>>;
|
|
1749
1749
|
}, import("zod/v4/core").$strip>>;
|
|
1750
1750
|
}, import("zod/v4/core").$strip>;
|
|
1751
|
-
}, import("zod/v4/core").$strip>, import("@tanstack/
|
|
1751
|
+
}, import("zod/v4/core").$strip>, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
1752
1752
|
display: {
|
|
1753
1753
|
general?: {
|
|
1754
1754
|
experimentalFeatures?: {
|
|
@@ -2021,7 +2021,7 @@ export declare const GeneralSettingsErrorsOpenProvider: import("react").Function
|
|
|
2021
2021
|
};
|
|
2022
2022
|
};
|
|
2023
2023
|
} | undefined;
|
|
2024
|
-
}> | undefined, import("@tanstack/
|
|
2024
|
+
}> | undefined, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
2025
2025
|
display: {
|
|
2026
2026
|
general?: {
|
|
2027
2027
|
experimentalFeatures?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useSelector } from '@tanstack/react-store';
|
|
3
3
|
import { createContext, useContext, useEffect, useMemo, useRef, useState, } from 'react';
|
|
4
4
|
import { assert, withForm } from 'react-science/ui';
|
|
5
5
|
import { defaultGeneralSettingsFormValues, workspaceValidation, } from "../validation.js";
|
|
@@ -13,9 +13,9 @@ export const GeneralSettingsErrorsOpenProvider = withForm({
|
|
|
13
13
|
props: defaultProps,
|
|
14
14
|
render: function GeneralSettingsErrorsOpenProvider({ form, children }) {
|
|
15
15
|
const [isOpen, setIsOpen] = useState(false);
|
|
16
|
-
const submitCount =
|
|
16
|
+
const submitCount = useSelector(form.store, (s) => s.submissionAttempts);
|
|
17
17
|
const previousSubmitCount = useRef(submitCount);
|
|
18
|
-
const errorsCount =
|
|
18
|
+
const errorsCount = useSelector(form.store, (s) => {
|
|
19
19
|
const recordErrors = s.errorMap.onDynamic;
|
|
20
20
|
if (!recordErrors)
|
|
21
21
|
return 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/errors/context.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources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AC,YAAY,CAAC,EAAE,CAAC;gBACjD,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC;YACzB,CAAC;YAED,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;QAEH,mDAAmD;QACnD,SAAS,CAAC,GAAG,EAAE;YACb,IAAI,mBAAmB,CAAC,OAAO,KAAK,WAAW;gBAAE,OAAO;YACxD,mBAAmB,CAAC,OAAO,GAAG,WAAW,CAAC;YAE1C,IAAI,WAAW,KAAK,CAAC;gBAAE,OAAO;YAE9B,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;QAE/B,4BAA4B;QAC5B,SAAS,CAAC,GAAG,EAAE;YACb,IAAI,WAAW,KAAK,CAAC;gBAAE,OAAO;YAE9B,SAAS,CAAC,KAAK,CAAC,CAAC;QACnB,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;QAElB,MAAM,YAAY,GAAG,OAAO,CAC1B,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,EACjD,CAAC,WAAW,EAAE,MAAM,CAAC,CACtB,CAAC;QAEF,OAAO,CACL,KAAC,4BAA4B,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YACvD,QAAQ,GAC6B,CACzC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,UAAU,SAAS;IACvB,MAAM,OAAO,GAAG,UAAU,CAAC,4BAA4B,CAAC,CAAC;IAEzD,MAAM,CACJ,OAAO,EACP,mEAAmE,CACpE,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -272,7 +272,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
272
272
|
};
|
|
273
273
|
};
|
|
274
274
|
} | undefined;
|
|
275
|
-
}, any, any, import("@tanstack/
|
|
275
|
+
}, any, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
276
276
|
display: {
|
|
277
277
|
general?: {
|
|
278
278
|
experimentalFeatures?: {
|
|
@@ -545,7 +545,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
545
545
|
};
|
|
546
546
|
};
|
|
547
547
|
} | undefined;
|
|
548
|
-
}> | undefined, any, import("@tanstack/
|
|
548
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
549
549
|
display: {
|
|
550
550
|
general?: {
|
|
551
551
|
experimentalFeatures?: {
|
|
@@ -818,7 +818,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
818
818
|
};
|
|
819
819
|
};
|
|
820
820
|
} | undefined;
|
|
821
|
-
}> | undefined, any, import("@tanstack/
|
|
821
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
822
822
|
display: {
|
|
823
823
|
general?: {
|
|
824
824
|
experimentalFeatures?: {
|
|
@@ -1739,7 +1739,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
1739
1739
|
}>>;
|
|
1740
1740
|
}, import("zod/v4/core").$strip>>;
|
|
1741
1741
|
}, import("zod/v4/core").$strip>;
|
|
1742
|
-
}, import("zod/v4/core").$strip>, import("@tanstack/
|
|
1742
|
+
}, import("zod/v4/core").$strip>, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
1743
1743
|
display: {
|
|
1744
1744
|
general?: {
|
|
1745
1745
|
experimentalFeatures?: {
|
|
@@ -2012,7 +2012,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
2012
2012
|
};
|
|
2013
2013
|
};
|
|
2014
2014
|
} | undefined;
|
|
2015
|
-
}> | undefined, import("@tanstack/
|
|
2015
|
+
}> | undefined, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
2016
2016
|
display: {
|
|
2017
2017
|
general?: {
|
|
2018
2018
|
experimentalFeatures?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Callout, Collapse } from '@blueprintjs/core';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
import {
|
|
4
|
+
import { useSelector } from '@tanstack/react-store';
|
|
5
5
|
import { Button, withForm } from 'react-science/ui';
|
|
6
6
|
import { defaultGeneralSettingsFormValues, workspaceValidation, } from "../validation.js";
|
|
7
7
|
import { useErrors } from "./context.js";
|
|
@@ -10,7 +10,7 @@ export const GeneralSettingsErrorRenderer = withForm({
|
|
|
10
10
|
validators: { onDynamic: workspaceValidation },
|
|
11
11
|
render: function GeneralSettingsErrorRenderer({ form }) {
|
|
12
12
|
const { isOpen, setIsOpen } = useErrors();
|
|
13
|
-
const errors =
|
|
13
|
+
const errors = useSelector(form.store, (state) => {
|
|
14
14
|
return Object.values(state.errorMap.onDynamic ?? {}).flat();
|
|
15
15
|
});
|
|
16
16
|
return (_jsx(Collapse, { isOpen: isOpen, keepChildrenMounted: true, children: _jsxs(Callout, { title: "Errors in the form", intent: "danger", children: [_jsx(CloseButton, { icon: "cross", variant: "minimal", onClick: () => setIsOpen(false) }), _jsx("ul", { children: errors.map((error, index) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,MAAM,MAAM,i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CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACnD;iCACA,IAAI,CAAC,GAAG,CAAC,CAAC;4BAEb,OAAO,CACL,yBACG,IAAI,QAAI,KAAK,CAAC,OAAO,KADf,GAAG,IAAI,IAAI,KAAK,EAAE,CAEtB,CACN,CAAC;wBACJ,CAAC,CAAC,GACC,IACG,GACD,CACZ,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;;;CAIjC,CAAC"}
|
package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts
CHANGED
|
@@ -274,7 +274,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
274
274
|
};
|
|
275
275
|
};
|
|
276
276
|
} | undefined;
|
|
277
|
-
}, any, any, import("@tanstack/
|
|
277
|
+
}, any, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
278
278
|
display: {
|
|
279
279
|
general?: {
|
|
280
280
|
experimentalFeatures?: {
|
|
@@ -547,7 +547,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
547
547
|
};
|
|
548
548
|
};
|
|
549
549
|
} | undefined;
|
|
550
|
-
}> | undefined, any, import("@tanstack/
|
|
550
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
551
551
|
display: {
|
|
552
552
|
general?: {
|
|
553
553
|
experimentalFeatures?: {
|
|
@@ -820,7 +820,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
820
820
|
};
|
|
821
821
|
};
|
|
822
822
|
} | undefined;
|
|
823
|
-
}> | undefined, any, import("@tanstack/
|
|
823
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
824
824
|
display: {
|
|
825
825
|
general?: {
|
|
826
826
|
experimentalFeatures?: {
|
|
@@ -1741,7 +1741,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
1741
1741
|
}>>;
|
|
1742
1742
|
}, import("zod/v4/core").$strip>>;
|
|
1743
1743
|
}, import("zod/v4/core").$strip>;
|
|
1744
|
-
}, import("zod/v4/core").$strip>, import("@tanstack/
|
|
1744
|
+
}, import("zod/v4/core").$strip>, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
1745
1745
|
display: {
|
|
1746
1746
|
general?: {
|
|
1747
1747
|
experimentalFeatures?: {
|
|
@@ -2014,7 +2014,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
2014
2014
|
};
|
|
2015
2015
|
};
|
|
2016
2016
|
} | undefined;
|
|
2017
|
-
}> | undefined, import("@tanstack/
|
|
2017
|
+
}> | undefined, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
2018
2018
|
display: {
|
|
2019
2019
|
general?: {
|
|
2020
2020
|
experimentalFeatures?: {
|
package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Classes, Tab, Tabs as BPTabs } from '@blueprintjs/core';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
import {
|
|
4
|
+
import { useSelector } from '@tanstack/react-store';
|
|
5
5
|
import { withForm } from 'react-science/ui';
|
|
6
6
|
import { StyledDialogBody } from '../../../elements/StyledDialogBody.js';
|
|
7
7
|
import { GeneralSettingsErrorRenderer } from "./errors/renderer.js";
|
|
@@ -47,7 +47,7 @@ export const GeneralSettingsDialogBody = withForm({
|
|
|
47
47
|
height: undefined,
|
|
48
48
|
},
|
|
49
49
|
render: function GeneralSettingsDialogBody({ height, form }) {
|
|
50
|
-
const isExperimentalEnabled =
|
|
50
|
+
const isExperimentalEnabled = useSelector(form.store, (state) => state.values.display.general?.experimentalFeatures?.display ?? false);
|
|
51
51
|
return (_jsxs(StyledDialogBody, { children: [_jsx(Div, { height: height, children: _jsxs(Tabs, { vertical: true, children: [_jsx(Tab, { title: "General", id: "general", panel: _jsx(GeneralTab, { form: form }) }), _jsx(Tab, { title: "Axes", id: "axis", panel: _jsx(AxisTab, { form: form }) }), _jsx(Tab, { title: "Nuclei", id: "nuclei", panel: _jsx(NucleiTab, { form: form }) }), _jsx(Tab, { id: "panels", title: "Panels", panel: _jsx(PanelsTab, { form: form }) }), _jsx(Tab, { id: "tools", title: "Tools", panel: _jsx(ToolsTab, { form: form }) }), _jsx(Tab, { title: "Databases", id: "databases", panel: _jsx(DatabaseTab, { form: form }) }), _jsx(Tab, { id: "import-filters", title: "Import filters", panel: _jsx(ImportFiltersTab, { form: form }) }), _jsx(Tab, { id: "title-block", title: "Title block", panel: _jsx(TitleBlockTab, { form: form }) }), _jsx(Tab, { title: "Auto processing", id: "on-load-processing", panel: _jsx(AutoProcessingTab, { form: form }) }), _jsx(Tab, { title: "Spectra colors", id: "spectra-colors", panel: _jsx(SpectraColorsTab, { form: form }) }), _jsx(Tab, { title: "Spectra label", id: "spectra-label", panel: _jsx(SpectraLabelTab, { form: form }) }), isExperimentalEnabled && (_jsx(Tab, { id: "external-apis", title: "External APIs", panel: _jsx(ExternalApiTab, { form: form }) })), _jsx(Tab, { id: "export", title: "Export", panel: _jsx(ExportTab, { form: form }) })] }) }), _jsx(GeneralSettingsErrorRenderer, { form: form })] }));
|
|
52
52
|
},
|
|
53
53
|
});
|
package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general_settings_dialog_body.js","sourceRoot":"","sources":["../../../../../src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"general_settings_dialog_body.js","sourceRoot":"","sources":["../../../../../src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAuB,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAAgC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAqB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA+B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA8B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAsB,CAAC;AAChD,OAAO,EACL,gCAAgC,EAChC,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;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ED,KAAC,GAAG,IAAC,EAAE,EAAC,QAAQ,EAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAE,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,GAAI,GAAI,IAC/D,GACH,EAEN,KAAC,4BAA4B,IAAC,IAAI,EAAE,IAAI,GAAI,IAC3B,CACpB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts
CHANGED
|
@@ -272,7 +272,7 @@ export declare const GeneralSettingsDialogHeader: import("react").FunctionCompon
|
|
|
272
272
|
};
|
|
273
273
|
};
|
|
274
274
|
} | undefined;
|
|
275
|
-
}, any, any, import("@tanstack/
|
|
275
|
+
}, any, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
276
276
|
display: {
|
|
277
277
|
general?: {
|
|
278
278
|
experimentalFeatures?: {
|
|
@@ -545,7 +545,7 @@ export declare const GeneralSettingsDialogHeader: import("react").FunctionCompon
|
|
|
545
545
|
};
|
|
546
546
|
};
|
|
547
547
|
} | undefined;
|
|
548
|
-
}> | undefined, any, import("@tanstack/
|
|
548
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
549
549
|
display: {
|
|
550
550
|
general?: {
|
|
551
551
|
experimentalFeatures?: {
|
|
@@ -818,7 +818,7 @@ export declare const GeneralSettingsDialogHeader: import("react").FunctionCompon
|
|
|
818
818
|
};
|
|
819
819
|
};
|
|
820
820
|
} | undefined;
|
|
821
|
-
}> | undefined, any, import("@tanstack/
|
|
821
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
822
822
|
display: {
|
|
823
823
|
general?: {
|
|
824
824
|
experimentalFeatures?: {
|
|
@@ -1091,7 +1091,7 @@ export declare const GeneralSettingsDialogHeader: import("react").FunctionCompon
|
|
|
1091
1091
|
};
|
|
1092
1092
|
};
|
|
1093
1093
|
} | undefined;
|
|
1094
|
-
}> | undefined, any, import("@tanstack/
|
|
1094
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
1095
1095
|
display: {
|
|
1096
1096
|
general?: {
|
|
1097
1097
|
experimentalFeatures?: {
|
|
@@ -1364,7 +1364,7 @@ export declare const GeneralSettingsDialogHeader: import("react").FunctionCompon
|
|
|
1364
1364
|
};
|
|
1365
1365
|
};
|
|
1366
1366
|
} | undefined;
|
|
1367
|
-
}> | undefined, import("@tanstack/
|
|
1367
|
+
}> | undefined, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
1368
1368
|
display: {
|
|
1369
1369
|
general?: {
|
|
1370
1370
|
experimentalFeatures?: {
|
package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Classes } from '@blueprintjs/core';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
import {
|
|
4
|
+
import { useSelector } from '@tanstack/react-store';
|
|
5
5
|
import { Button, withForm } from 'react-science/ui';
|
|
6
6
|
import { useErrors } from "./errors/context.js";
|
|
7
7
|
import { defaultGeneralSettingsFormValues } from "./validation.js";
|
|
@@ -11,7 +11,7 @@ export const GeneralSettingsDialogHeader = withForm({
|
|
|
11
11
|
defaultValues: defaultGeneralSettingsFormValues,
|
|
12
12
|
render: function GeneralSettingsDialogHeader({ form }) {
|
|
13
13
|
const { reset, store } = form;
|
|
14
|
-
const formValues =
|
|
14
|
+
const formValues = useSelector(store, (state) => state.values);
|
|
15
15
|
return (_jsxs(DialogHeader, { className: Classes.DIALOG_HEADER, children: [_jsx(WorkspacePicker, { formValues: formValues, reset: reset }), _jsx(WorkspaceActions, { formValues: formValues, reset: reset }), _jsx(FlexSeparator, {}), _jsx(ErrorsIndicator, {})] }));
|
|
16
16
|
},
|
|
17
17
|
});
|
package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general_settings_dialog_header.js","sourceRoot":"","sources":["../../../../../src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"general_settings_dialog_header.js","sourceRoot":"","sources":["../../../../../src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAsB,CAAC;AACjD,OAAO,EAAE,gCAAgC,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAA0B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAyB,CAAC;AAE1D,MAAM,CAAC,MAAM,2BAA2B,GAAG,QAAQ,CAAC;IAClD,aAAa,EAAE,gCAAgC;IAC/C,MAAM,EAAE,SAAS,2BAA2B,CAAC,EAAE,IAAI,EAAE;QACnD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QAC9B,MAAM,UAAU,GAAG,WAAW,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAE/D,OAAO,CACL,MAAC,YAAY,IAAC,SAAS,EAAE,OAAO,CAAC,aAAa,aAC5C,KAAC,eAAe,IAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,GAAI,EACzD,KAAC,gBAAgB,IAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,GAAI,EAE1D,KAAC,aAAa,KAAG,EAEjB,KAAC,eAAe,KAAG,IACN,CAChB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,eAAe;IACtB,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,CAAC;IAEzC,IAAI,KAAK,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAE7B,OAAO,CACL,KAAC,WAAW,IACV,OAAO,EAAC,UAAU,EAClB,MAAM,EAAC,QAAQ,EACf,IAAI,EAAC,OAAO,EACZ,YAAY,EAAE;YACZ,OAAO,EAAE,YAAY,KAAK,0CAA0C;SACrE,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,YAE7B,KAAK,GACM,CACf,CAAC;AACJ,CAAC;AAED,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAK9B,CAAC;AAEF,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;CAE/B,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;;CAGjC,CAAC"}
|
|
@@ -272,7 +272,7 @@ export declare const AutoProcessingTab: import("react").FunctionComponent<import
|
|
|
272
272
|
};
|
|
273
273
|
};
|
|
274
274
|
} | undefined;
|
|
275
|
-
}, any, any, import("@tanstack/
|
|
275
|
+
}, any, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
276
276
|
display: {
|
|
277
277
|
general?: {
|
|
278
278
|
experimentalFeatures?: {
|
|
@@ -545,7 +545,7 @@ export declare const AutoProcessingTab: import("react").FunctionComponent<import
|
|
|
545
545
|
};
|
|
546
546
|
};
|
|
547
547
|
} | undefined;
|
|
548
|
-
}> | undefined, any, import("@tanstack/
|
|
548
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
549
549
|
display: {
|
|
550
550
|
general?: {
|
|
551
551
|
experimentalFeatures?: {
|
|
@@ -818,7 +818,7 @@ export declare const AutoProcessingTab: import("react").FunctionComponent<import
|
|
|
818
818
|
};
|
|
819
819
|
};
|
|
820
820
|
} | undefined;
|
|
821
|
-
}> | undefined, any, import("@tanstack/
|
|
821
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
822
822
|
display: {
|
|
823
823
|
general?: {
|
|
824
824
|
experimentalFeatures?: {
|
|
@@ -1091,7 +1091,7 @@ export declare const AutoProcessingTab: import("react").FunctionComponent<import
|
|
|
1091
1091
|
};
|
|
1092
1092
|
};
|
|
1093
1093
|
} | undefined;
|
|
1094
|
-
}> | undefined, any, import("@tanstack/
|
|
1094
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
1095
1095
|
display: {
|
|
1096
1096
|
general?: {
|
|
1097
1097
|
experimentalFeatures?: {
|
|
@@ -1364,7 +1364,7 @@ export declare const AutoProcessingTab: import("react").FunctionComponent<import
|
|
|
1364
1364
|
};
|
|
1365
1365
|
};
|
|
1366
1366
|
} | undefined;
|
|
1367
|
-
}> | undefined, import("@tanstack/
|
|
1367
|
+
}> | undefined, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
1368
1368
|
display: {
|
|
1369
1369
|
general?: {
|
|
1370
1370
|
experimentalFeatures?: {
|