@kvaser/canking-api 7.3.0 → 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controls/CanIdentifierControl.d.ts +32 -6
- package/dist/controls/CanKingDataProvider.d.ts +14 -19
- package/dist/controls/CheckboxControl.d.ts +11 -2
- package/dist/controls/ColorControl.d.ts +26 -0
- package/dist/controls/ExtensionWorkspaceViewProps.d.ts +8 -0
- package/dist/controls/InlineEditor.d.ts +2 -2
- package/dist/controls/LinIdentifierControl.d.ts +24 -4
- package/dist/controls/SelectMessageDialog.d.ts +32 -3
- package/dist/controls/SelectSignalDialog.d.ts +102 -1
- package/dist/controls/SelectSignalsControl.d.ts +37 -4
- package/dist/controls/SizedBox.d.ts +1 -0
- package/dist/controls/TableControl.d.ts +2 -3
- package/dist/controls/ToolbarControl.d.ts +4 -2
- package/dist/controls/index.d.ts +3 -0
- package/dist/controls.js +1 -1
- package/dist/controls.mjs +2257 -1769
- package/dist/grpc.js +1 -1
- package/dist/grpc.mjs +196 -168
- package/dist/hooks/index.d.ts +388 -27
- package/dist/hooks.js +1 -1
- package/dist/hooks.mjs +48 -30
- package/dist/icons/index.d.ts +36 -0
- package/dist/icons.js +1 -1
- package/dist/icons.mjs +927 -755
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1160 -600
- package/dist/ipc/index.d.ts +31 -3
- package/dist/ipc.js +1 -1
- package/dist/ipc.mjs +132 -104
- package/dist/models/Point.d.ts +4 -0
- package/dist/models/deep_equal.d.ts +7 -0
- package/dist/models/index.d.ts +85 -12
- package/dist/models/json_utilities.d.ts +16 -0
- package/dist/models.js +1 -1
- package/dist/models.mjs +762 -289
- package/dist/protos/app_params.d.ts +109 -62
- package/dist/protos/app_service.d.ts +81 -50
- package/dist/protos/common_params.d.ts +4 -1
- package/dist/protos/device_params.d.ts +82 -27
- package/dist/protos/frame_params.d.ts +92 -9
- package/dist/protos/measurement_params.d.ts +229 -47
- package/dist/protos/measurement_service.d.ts +84 -58
- package/dist/protos/measurement_settings.d.ts +156 -6
- package/dist/protos/signal_params.d.ts +20 -0
- package/dist/protos/status_params.d.ts +30 -0
- package/dist/status_params.js +1 -1
- package/dist/status_params.mjs +8709 -1825
- package/doc/assets/hierarchy.js +1 -1
- package/doc/assets/navigation.js +1 -1
- package/doc/assets/search.js +1 -1
- package/doc/enums/models.AccessMode.html +5 -3
- package/doc/enums/models.CanChannelCap.html +2 -2
- package/doc/enums/models.CanConfigMode.html +16 -0
- package/doc/enums/models.CanFrameFlag.html +33 -2
- package/doc/enums/models.CanMessageFilterType.html +4 -2
- package/doc/enums/models.CanMode.html +7 -2
- package/doc/enums/{models.DeviceEvent.html → models.DecimalChar.html} +7 -5
- package/doc/enums/models.FileConflictAction.html +5 -2
- package/doc/enums/models.LinFrameFlag.html +11 -2
- package/doc/enums/models.LogFileFormat.html +4 -2
- package/doc/enums/models.LogLevel.html +2 -2
- package/doc/enums/models.LogReplayState.html +4 -2
- package/doc/enums/models.LoggerState.html +5 -2
- package/doc/enums/models.Separator.html +8 -0
- package/doc/enums/models.SignalEncoding.html +4 -2
- package/doc/enums/models.SignalType.html +2 -2
- package/doc/enums/models.SignalValueTriggerOperator.html +11 -2
- package/doc/enums/models.StatusLevel.html +5 -2
- package/doc/enums/models.TimeReference.html +8 -0
- package/doc/enums/models.TriggerOperator.html +4 -2
- package/doc/functions/controls.CanChannelSelectControl.html +2 -2
- package/doc/functions/controls.CanIdentifierControl.html +2 -2
- package/doc/functions/controls.CanIdentifierFrameControl.html +2 -2
- package/doc/functions/controls.CanIdentifierGeneratorControl.html +2 -2
- package/doc/functions/controls.CanIdentifierGeneratorSettingsControl.html +2 -2
- package/doc/functions/controls.CanKingDataProvider.html +2 -2
- package/doc/functions/controls.CheckboxControl.html +2 -2
- package/doc/functions/controls.ColorControl.html +4 -0
- package/doc/functions/controls.ColumnItemControl.html +2 -2
- package/doc/functions/controls.ContextMenu.html +2 -2
- package/doc/functions/controls.DropdownButton.html +2 -2
- package/doc/functions/controls.DropdownButtonTextItems.html +2 -2
- package/doc/functions/controls.DropdownPanel.html +2 -2
- package/doc/functions/controls.FormControlRow.html +2 -2
- package/doc/functions/controls.InlineEditor.html +2 -2
- package/doc/functions/controls.LinChannelSelectControl.html +2 -2
- package/doc/functions/controls.LinIdentifierControl.html +2 -2
- package/doc/functions/controls.LinIdentifierFrameControl.html +2 -2
- package/doc/functions/controls.LinIdentifierGeneratorControl.html +2 -2
- package/doc/functions/controls.LinIdentifierGeneratorSettingsControl.html +2 -2
- package/doc/functions/controls.NumberRangeControl.html +2 -2
- package/doc/functions/controls.RadioControl.html +2 -2
- package/doc/functions/controls.RadioGroupControl.html +2 -2
- package/doc/functions/controls.SectionControl.html +2 -2
- package/doc/functions/controls.SelectControl.html +2 -2
- package/doc/functions/controls.SelectMessageDialog.html +2 -2
- package/doc/functions/controls.SelectSignalDialog.html +2 -2
- package/doc/functions/controls.SelectSignalsControl.html +2 -0
- package/doc/functions/controls.TableControl.html +2 -2
- package/doc/functions/controls.TextControl.html +2 -2
- package/doc/functions/controls.ToolbarControl.html +2 -2
- package/doc/functions/controls.ValidateableTextControl.html +2 -2
- package/doc/functions/controls.useColumnItem.html +2 -2
- package/doc/functions/controls.useColumnItems.html +2 -2
- package/doc/functions/controls.useMessageDatabases.html +2 -2
- package/doc/functions/hooks.useAvailableProtocols.html +3 -0
- package/doc/functions/hooks.useDevices.html +2 -2
- package/doc/functions/hooks.useFixedPositionModeMeasurementData.html +3 -3
- package/doc/functions/hooks.useIsOnline.html +2 -2
- package/doc/functions/hooks.useLanguage.html +2 -2
- package/doc/functions/hooks.useLocalizedStrings.html +2 -2
- package/doc/functions/hooks.useLogMessages.html +2 -2
- package/doc/functions/hooks.useMaxDataBytes.html +2 -2
- package/doc/functions/hooks.useMeasurementSetup.html +2 -2
- package/doc/functions/hooks.useMeasurementStatus.html +2 -2
- package/doc/functions/hooks.useMessageData.html +8 -4
- package/doc/functions/hooks.useMessageLogFileFormats.html +3 -2
- package/doc/functions/hooks.useNewMeasurementData.html +2 -2
- package/doc/functions/hooks.useNodeStatus.html +2 -2
- package/doc/functions/hooks.useNumericRadix.html +2 -2
- package/doc/functions/hooks.useOnlineStatus.html +2 -2
- package/doc/functions/hooks.useOnlineStatusSync.html +7 -0
- package/doc/functions/hooks.useOverallStatusLevel.html +2 -2
- package/doc/functions/hooks.useProjectData.html +11 -4
- package/doc/functions/hooks.useProjectDataSlice.html +13 -0
- package/doc/functions/hooks.useRecentProjectFiles.html +2 -2
- package/doc/functions/hooks.useRunningPeriodicTransmissions.html +2 -2
- package/doc/functions/hooks.useScrollModeMeasurementData.html +3 -3
- package/doc/functions/hooks.useSessionData.html +13 -4
- package/doc/functions/hooks.useSessionDataSlice.html +14 -0
- package/doc/functions/hooks.useSignalData.html +8 -4
- package/doc/functions/hooks.useSignalDataEnvelopes.html +11 -0
- package/doc/functions/hooks.useSignalLogFileFormats.html +3 -2
- package/doc/functions/hooks.useUndo.html +7 -0
- package/doc/functions/hooks.useUndoRef.html +7 -0
- package/doc/functions/hooks.useUndoSessionDataSlice.html +9 -0
- package/doc/functions/hooks.useUserSettings.html +2 -2
- package/doc/functions/hooks.useWorkspacePaneWithId.html +2 -2
- package/doc/functions/ipc.addDataProcessor.html +2 -2
- package/doc/functions/ipc.addSource.html +2 -2
- package/doc/functions/ipc.addTarget.html +2 -2
- package/doc/functions/ipc.clearLinMessage.html +2 -2
- package/doc/functions/ipc.connectNodes.html +2 -2
- package/doc/functions/ipc.deleteDataProcessor.html +2 -2
- package/doc/functions/ipc.deleteSource.html +2 -2
- package/doc/functions/ipc.deleteTarget.html +2 -2
- package/doc/functions/ipc.disableNode.html +2 -2
- package/doc/functions/ipc.disconnectNodes.html +2 -2
- package/doc/functions/ipc.enableNode.html +2 -2
- package/doc/functions/ipc.getFirstAndLatestTimestamp.html +4 -0
- package/doc/functions/ipc.getFirstTimestamp.html +3 -0
- package/doc/functions/ipc.getFrameDefinitions.html +2 -2
- package/doc/functions/ipc.getLatestTimestamp.html +3 -0
- package/doc/functions/ipc.getLogger.html +2 -2
- package/doc/functions/ipc.getMessageDataBeforeTimestamp.html +7 -0
- package/doc/functions/ipc.getMessageLogFileFormats.html +3 -3
- package/doc/functions/ipc.getSignalLogFileFormats.html +3 -3
- package/doc/functions/ipc.requestLinMessage.html +2 -2
- package/doc/functions/ipc.sendCanMessage.html +2 -2
- package/doc/functions/ipc.sendMessage.html +2 -2
- package/doc/functions/ipc.showMessageBox.html +2 -2
- package/doc/functions/ipc.showQuestionBox.html +2 -2
- package/doc/functions/ipc.startLogReplay.html +2 -2
- package/doc/functions/ipc.startMeasurement.html +2 -2
- package/doc/functions/ipc.startPeriodicTransmission.html +2 -2
- package/doc/functions/ipc.stopLogReplay.html +2 -2
- package/doc/functions/ipc.stopMeasurement.html +2 -2
- package/doc/functions/ipc.stopPeriodicTransmission.html +2 -2
- package/doc/functions/ipc.updateDataProcessor.html +2 -2
- package/doc/functions/ipc.updateLinMessage.html +2 -2
- package/doc/functions/ipc.updatePeriodicTransmission.html +2 -2
- package/doc/functions/ipc.updateSource.html +2 -2
- package/doc/functions/ipc.updateTarget.html +2 -2
- package/doc/functions/models.decimalToFixed.html +5 -0
- package/doc/functions/models.decimalToHex.html +6 -0
- package/doc/functions/models.deep_equal.html +5 -0
- package/doc/functions/models.deserializeFrame.html +4 -0
- package/doc/functions/models.jsonReplacer.html +6 -0
- package/doc/functions/models.jsonReviver.html +6 -0
- package/doc/functions/models.longToNumber.html +4 -0
- package/doc/functions/models.serializeFrame.html +4 -0
- package/doc/hierarchy.html +1 -1
- package/doc/index.html +2 -2
- package/doc/interfaces/controls.ButtonGroupProps.html +2 -2
- package/doc/interfaces/controls.ButtonProps.html +2 -2
- package/doc/interfaces/controls.CanChannelSelectControlProps.html +2 -2
- package/doc/interfaces/controls.CanIdentifierControlProps.html +16 -7
- package/doc/interfaces/controls.CanIdentifierFrameControlProps.html +6 -3
- package/doc/interfaces/controls.CanIdentifierGeneratorControlProps.html +6 -3
- package/doc/interfaces/controls.CanIdentifierGeneratorSettingsControlProps.html +6 -3
- package/doc/interfaces/controls.CheckboxControlProps.html +8 -3
- package/doc/interfaces/controls.ContextMenuProps.html +2 -2
- package/doc/interfaces/controls.DropdownButtonChildrenProps.html +3 -3
- package/doc/interfaces/controls.DropdownButtonProps.html +2 -2
- package/doc/interfaces/controls.DropdownButtonTextItemsProps.html +3 -3
- package/doc/interfaces/controls.DropdownPanelProps.html +2 -2
- package/doc/interfaces/controls.FormControlRowProps.html +2 -2
- package/doc/interfaces/{models.IProject.html → controls.IExtensionWorkspaceViewProps.html} +2 -2
- package/doc/interfaces/controls.ILocalizedStrings.html +2 -2
- package/doc/interfaces/controls.IMessageDatabase.html +2 -2
- package/doc/interfaces/controls.InlineEditorProps.html +2 -2
- package/doc/interfaces/controls.LabelProps.html +2 -2
- package/doc/interfaces/controls.LinChannelSelectControlProps.html +2 -2
- package/doc/interfaces/controls.LinIdentifierControlProps.html +6 -3
- package/doc/interfaces/controls.LinIdentifierFrameControlProps.html +6 -3
- package/doc/interfaces/controls.LinIdentifierGeneratorControlProps.html +6 -3
- package/doc/interfaces/controls.LinIdentifierGeneratorSettingsControlProps.html +6 -3
- package/doc/interfaces/controls.NumberRangeControlProps.html +2 -2
- package/doc/interfaces/controls.RadioControlProps.html +2 -2
- package/doc/interfaces/controls.RadioGroupControlProps.html +2 -2
- package/doc/interfaces/controls.SectionControlProps.html +2 -2
- package/doc/interfaces/controls.SelectControlProps.html +2 -2
- package/doc/interfaces/controls.SelectMessageDialogProps.html +19 -2
- package/doc/interfaces/controls.SelectSignalDialogProps.html +71 -2
- package/doc/interfaces/controls.SelectSignalsControlProps.html +22 -0
- package/doc/interfaces/{models.SetLogLevelRequest.html → controls.SelectedSignalInfo.html} +6 -6
- package/doc/interfaces/controls.SelectedSignalInfoChangeArgs.html +9 -0
- package/doc/interfaces/controls.TableColumn.html +2 -2
- package/doc/interfaces/controls.TableControlProps.html +2 -2
- package/doc/interfaces/controls.TextControlProps.html +2 -2
- package/doc/interfaces/controls.ToggleButtonGroupProps.html +2 -2
- package/doc/interfaces/controls.ToggleButtonProps.html +2 -2
- package/doc/interfaces/controls.ToolbarControlProps.html +2 -2
- package/doc/interfaces/controls.ValidateableTextControlProps.html +2 -2
- package/doc/interfaces/controls.toolbarItem.html +5 -3
- package/doc/interfaces/hooks.IEnvelopeView.html +12 -0
- package/doc/interfaces/hooks.ISignalData.html +19 -2
- package/doc/interfaces/hooks.ISignalDataEnvelope.html +14 -0
- package/doc/interfaces/hooks.IUndoObject.html +27 -0
- package/doc/interfaces/hooks.IUndoState.html +9 -0
- package/doc/interfaces/ipc.ILogger.html +2 -2
- package/doc/interfaces/models.BaseNodeProperties.html +14 -2
- package/doc/interfaces/models.BusStatus.html +32 -2
- package/doc/interfaces/models.CanBusParamLimits.html +12 -2
- package/doc/interfaces/models.CanBusParams.html +14 -2
- package/doc/interfaces/models.CanChannelCapacity.html +10 -4
- package/doc/interfaces/models.CanChannelConfiguration.html +39 -9
- package/doc/interfaces/models.CanFrameFlags.html +4 -2
- package/doc/interfaces/models.CanMessageFilterSettings.html +8 -2
- package/doc/interfaces/models.Channel.html +12 -2
- package/doc/interfaces/models.ChannelSettings.html +5 -3
- package/doc/interfaces/models.DataProcessingStatus.html +10 -2
- package/doc/interfaces/models.DataProcessorNodeProperties.html +14 -2
- package/doc/interfaces/models.DatabasesSettings.html +4 -2
- package/doc/interfaces/models.Device.html +16 -2
- package/doc/interfaces/{models.Licenses.html → models.Devices.html} +4 -4
- package/doc/interfaces/models.Empty.html +2 -2
- package/doc/interfaces/models.ErrorStatus.html +2 -2
- package/doc/interfaces/models.FixedPosFrameIdentifier.html +8 -8
- package/doc/interfaces/models.Frame.html +16 -5
- package/doc/interfaces/models.FrameDefinition.html +5 -3
- package/doc/interfaces/{models.AboutInformation.html → models.FrameDefinitions.html} +4 -8
- package/doc/interfaces/models.FramePropertyValue.html +6 -2
- package/doc/interfaces/models.FrameReceivedTrigger.html +5 -3
- package/doc/interfaces/{models.GetFrameDefinitionsFromDatabaseFilesRequest.html → models.Frames.html} +4 -4
- package/doc/interfaces/models.IUserSettings.html +2 -2
- package/doc/interfaces/models.IWorkspaceComponentPaneData.html +2 -2
- package/doc/interfaces/models.IWorkspaceContainerPaneData.html +2 -2
- package/doc/interfaces/models.IWorkspacePaneData.html +2 -2
- package/doc/interfaces/models.InterpreterSettings.html +2 -2
- package/doc/interfaces/models.J1939InterpreterSettings.html +2 -2
- package/doc/interfaces/models.LinChannelConfiguration.html +2 -2
- package/doc/interfaces/models.LinFrameFlags.html +4 -2
- package/doc/interfaces/models.LogMessage.html +2 -2
- package/doc/interfaces/models.LogMessages.html +2 -2
- package/doc/interfaces/models.LogReplaySettings.html +2 -2
- package/doc/interfaces/models.LogReplayStatus.html +4 -2
- package/doc/interfaces/models.LoggerStatus.html +4 -2
- package/doc/interfaces/models.MeasurementSetup.html +10 -2
- package/doc/interfaces/models.MessageLoggerSettings.html +6 -6
- package/doc/interfaces/models.NodeStatus.html +2 -2
- package/doc/interfaces/models.NodeStatuses.html +4 -2
- package/doc/interfaces/models.OnlineStatus.html +6 -2
- package/doc/interfaces/models.PeriodicTransmissionSettings.html +2 -2
- package/doc/interfaces/models.ServiceExtensionSettings.html +6 -2
- package/doc/interfaces/models.SignalDefinition.html +34 -2
- package/doc/interfaces/models.SignalDefinitions.html +4 -0
- package/doc/interfaces/models.SignalFilterSettings.html +6 -4
- package/doc/interfaces/models.SignalLoggerSettings.html +6 -6
- package/doc/interfaces/models.SignalValue.html +12 -2
- package/doc/interfaces/models.SignalValueTrigger.html +5 -3
- package/doc/interfaces/models.SourceNodeProperties.html +12 -2
- package/doc/interfaces/models.TargetNodeProperties.html +12 -2
- package/doc/interfaces/models.TdcConfiguration.html +17 -0
- package/doc/interfaces/models.TriggerSettings.html +2 -2
- package/doc/interfaces/models.WriteFrame.html +2 -2
- package/doc/modules/controls.html +2 -2
- package/doc/modules/hooks.html +2 -2
- package/doc/modules/ipc.html +2 -2
- package/doc/modules/models.html +2 -2
- package/doc/modules.html +1 -1
- package/doc/types/controls.ContextMenuOption.html +2 -2
- package/doc/types/controls.SelectOption.html +2 -2
- package/doc/types/controls.StringsMap.html +2 -2
- package/doc/types/controls.canIdentifierGeneratorType.html +2 -2
- package/doc/types/controls.canIdentifierType.html +2 -2
- package/doc/types/controls.linIdentifierGeneratorType.html +2 -2
- package/doc/types/hooks.OnGoingOfflineCallback.html +6 -0
- package/doc/types/hooks.OnGoingOnlineCallback.html +6 -0
- package/doc/types/models.SerializableFrame.html +2 -0
- package/doc/variables/controls.FillBox.html +2 -2
- package/doc/variables/controls.OneLineButton.html +2 -2
- package/doc/variables/controls.SizedBox.html +2 -2
- package/doc/variables/controls.TabsPanel.html +2 -2
- package/doc/variables/models.defaultUserSettings.html +2 -2
- package/doc_md/README.md +1 -1
- package/doc_md/controls/README.md +7 -1
- package/doc_md/controls/functions/CanChannelSelectControl.md +1 -1
- package/doc_md/controls/functions/CanIdentifierControl.md +1 -1
- package/doc_md/controls/functions/CanIdentifierFrameControl.md +1 -1
- package/doc_md/controls/functions/CanIdentifierGeneratorControl.md +1 -1
- package/doc_md/controls/functions/CanIdentifierGeneratorSettingsControl.md +1 -1
- package/doc_md/controls/functions/CanKingDataProvider.md +1 -1
- package/doc_md/controls/functions/CheckboxControl.md +1 -1
- package/doc_md/controls/functions/ColorControl.md +25 -0
- package/doc_md/controls/functions/ColumnItemControl.md +1 -1
- package/doc_md/controls/functions/ContextMenu.md +1 -1
- package/doc_md/controls/functions/DropdownButton.md +1 -1
- package/doc_md/controls/functions/DropdownButtonTextItems.md +1 -1
- package/doc_md/controls/functions/DropdownPanel.md +1 -1
- package/doc_md/controls/functions/FormControlRow.md +1 -1
- package/doc_md/controls/functions/InlineEditor.md +1 -1
- package/doc_md/controls/functions/LinChannelSelectControl.md +1 -1
- package/doc_md/controls/functions/LinIdentifierControl.md +1 -1
- package/doc_md/controls/functions/LinIdentifierFrameControl.md +1 -1
- package/doc_md/controls/functions/LinIdentifierGeneratorControl.md +1 -1
- package/doc_md/controls/functions/LinIdentifierGeneratorSettingsControl.md +1 -1
- package/doc_md/controls/functions/NumberRangeControl.md +1 -1
- package/doc_md/controls/functions/RadioControl.md +1 -1
- package/doc_md/controls/functions/RadioGroupControl.md +1 -1
- package/doc_md/controls/functions/SectionControl.md +1 -1
- package/doc_md/controls/functions/SelectControl.md +1 -1
- package/doc_md/controls/functions/SelectMessageDialog.md +1 -1
- package/doc_md/controls/functions/SelectSignalDialog.md +1 -1
- package/doc_md/controls/functions/SelectSignalsControl.md +21 -0
- package/doc_md/controls/functions/TableControl.md +1 -1
- package/doc_md/controls/functions/TextControl.md +1 -1
- package/doc_md/controls/functions/ToolbarControl.md +1 -1
- package/doc_md/controls/functions/ValidateableTextControl.md +1 -1
- package/doc_md/controls/functions/useColumnItem.md +1 -1
- package/doc_md/controls/functions/useColumnItems.md +1 -1
- package/doc_md/controls/functions/useMessageDatabases.md +1 -1
- package/doc_md/controls/interfaces/ButtonGroupProps.md +1 -1
- package/doc_md/controls/interfaces/ButtonProps.md +1 -1
- package/doc_md/controls/interfaces/CanChannelSelectControlProps.md +1 -1
- package/doc_md/controls/interfaces/CanIdentifierControlProps.md +40 -3
- package/doc_md/controls/interfaces/CanIdentifierFrameControlProps.md +10 -1
- package/doc_md/controls/interfaces/CanIdentifierGeneratorControlProps.md +10 -1
- package/doc_md/controls/interfaces/CanIdentifierGeneratorSettingsControlProps.md +10 -1
- package/doc_md/controls/interfaces/CheckboxControlProps.md +18 -1
- package/doc_md/controls/interfaces/ContextMenuProps.md +1 -1
- package/doc_md/controls/interfaces/DropdownButtonChildrenProps.md +1 -1
- package/doc_md/controls/interfaces/DropdownButtonProps.md +1 -1
- package/doc_md/controls/interfaces/DropdownButtonTextItemsProps.md +1 -1
- package/doc_md/controls/interfaces/DropdownPanelProps.md +1 -1
- package/doc_md/controls/interfaces/FormControlRowProps.md +1 -1
- package/doc_md/controls/interfaces/IExtensionWorkspaceViewProps.md +9 -0
- package/doc_md/controls/interfaces/ILocalizedStrings.md +1 -1
- package/doc_md/controls/interfaces/IMessageDatabase.md +1 -1
- package/doc_md/controls/interfaces/InlineEditorProps.md +1 -1
- package/doc_md/controls/interfaces/LabelProps.md +1 -1
- package/doc_md/controls/interfaces/LinChannelSelectControlProps.md +1 -1
- package/doc_md/controls/interfaces/LinIdentifierControlProps.md +10 -1
- package/doc_md/controls/interfaces/LinIdentifierFrameControlProps.md +10 -1
- package/doc_md/controls/interfaces/LinIdentifierGeneratorControlProps.md +10 -1
- package/doc_md/controls/interfaces/LinIdentifierGeneratorSettingsControlProps.md +10 -1
- package/doc_md/controls/interfaces/NumberRangeControlProps.md +1 -1
- package/doc_md/controls/interfaces/RadioControlProps.md +1 -1
- package/doc_md/controls/interfaces/RadioGroupControlProps.md +1 -1
- package/doc_md/controls/interfaces/SectionControlProps.md +1 -1
- package/doc_md/controls/interfaces/SelectControlProps.md +1 -1
- package/doc_md/controls/interfaces/SelectMessageDialogProps.md +78 -1
- package/doc_md/controls/interfaces/SelectSignalDialogProps.md +224 -1
- package/doc_md/controls/interfaces/SelectSignalsControlProps.md +119 -0
- package/doc_md/controls/interfaces/SelectedSignalInfo.md +29 -0
- package/doc_md/controls/interfaces/SelectedSignalInfoChangeArgs.md +46 -0
- package/doc_md/controls/interfaces/TableColumn.md +1 -1
- package/doc_md/controls/interfaces/TableControlProps.md +1 -1
- package/doc_md/controls/interfaces/TextControlProps.md +1 -1
- package/doc_md/controls/interfaces/ToggleButtonGroupProps.md +1 -1
- package/doc_md/controls/interfaces/ToggleButtonProps.md +1 -1
- package/doc_md/controls/interfaces/ToolbarControlProps.md +1 -1
- package/doc_md/controls/interfaces/ValidateableTextControlProps.md +1 -1
- package/doc_md/controls/interfaces/toolbarItem.md +9 -1
- package/doc_md/controls/type-aliases/ContextMenuOption.md +1 -1
- package/doc_md/controls/type-aliases/SelectOption.md +1 -1
- package/doc_md/controls/type-aliases/StringsMap.md +1 -1
- package/doc_md/controls/type-aliases/canIdentifierGeneratorType.md +1 -1
- package/doc_md/controls/type-aliases/canIdentifierType.md +1 -1
- package/doc_md/controls/type-aliases/linIdentifierGeneratorType.md +1 -1
- package/doc_md/controls/variables/FillBox.md +1 -1
- package/doc_md/controls/variables/OneLineButton.md +2 -2
- package/doc_md/controls/variables/SizedBox.md +1 -1
- package/doc_md/controls/variables/TabsPanel.md +1 -1
- package/doc_md/hooks/README.md +18 -1
- package/doc_md/hooks/functions/useAvailableProtocols.md +17 -0
- package/doc_md/hooks/functions/useDevices.md +1 -1
- package/doc_md/hooks/functions/useFixedPositionModeMeasurementData.md +4 -4
- package/doc_md/hooks/functions/useIsOnline.md +1 -1
- package/doc_md/hooks/functions/useLanguage.md +1 -1
- package/doc_md/hooks/functions/useLocalizedStrings.md +1 -1
- package/doc_md/hooks/functions/useLogMessages.md +1 -1
- package/doc_md/hooks/functions/useMaxDataBytes.md +1 -1
- package/doc_md/hooks/functions/useMeasurementSetup.md +1 -1
- package/doc_md/hooks/functions/useMeasurementStatus.md +1 -1
- package/doc_md/hooks/functions/useMessageData.md +21 -4
- package/doc_md/hooks/functions/useMessageLogFileFormats.md +5 -3
- package/doc_md/hooks/functions/useNewMeasurementData.md +1 -1
- package/doc_md/hooks/functions/useNodeStatus.md +1 -1
- package/doc_md/hooks/functions/useNumericRadix.md +1 -1
- package/doc_md/hooks/functions/useOnlineStatus.md +1 -1
- package/doc_md/hooks/functions/useOnlineStatusSync.md +43 -0
- package/doc_md/hooks/functions/useOverallStatusLevel.md +1 -1
- package/doc_md/hooks/functions/useProjectData.md +16 -6
- package/doc_md/hooks/functions/useProjectDataSlice.md +58 -0
- package/doc_md/hooks/functions/useRecentProjectFiles.md +1 -1
- package/doc_md/hooks/functions/useRunningPeriodicTransmissions.md +1 -1
- package/doc_md/hooks/functions/useScrollModeMeasurementData.md +4 -4
- package/doc_md/hooks/functions/useSessionData.md +24 -6
- package/doc_md/hooks/functions/useSessionDataSlice.md +60 -0
- package/doc_md/hooks/functions/useSignalData.md +23 -6
- package/doc_md/hooks/functions/useSignalDataEnvelopes.md +50 -0
- package/doc_md/hooks/functions/useSignalLogFileFormats.md +5 -3
- package/doc_md/hooks/functions/useUndo.md +38 -0
- package/doc_md/hooks/functions/useUndoRef.md +38 -0
- package/doc_md/hooks/functions/useUndoSessionDataSlice.md +50 -0
- package/doc_md/hooks/functions/useUserSettings.md +1 -1
- package/doc_md/hooks/functions/useWorkspacePaneWithId.md +1 -1
- package/doc_md/hooks/interfaces/IEnvelopeView.md +49 -0
- package/doc_md/hooks/interfaces/ISignalData.md +69 -1
- package/doc_md/hooks/interfaces/ISignalDataEnvelope.md +51 -0
- package/doc_md/hooks/interfaces/IUndoObject.md +155 -0
- package/doc_md/hooks/interfaces/IUndoState.md +41 -0
- package/doc_md/hooks/type-aliases/OnGoingOfflineCallback.md +36 -0
- package/doc_md/hooks/type-aliases/OnGoingOnlineCallback.md +36 -0
- package/doc_md/ipc/README.md +5 -1
- package/doc_md/ipc/functions/addDataProcessor.md +1 -1
- package/doc_md/ipc/functions/addSource.md +1 -1
- package/doc_md/ipc/functions/addTarget.md +1 -1
- package/doc_md/ipc/functions/clearLinMessage.md +1 -1
- package/doc_md/ipc/functions/connectNodes.md +1 -1
- package/doc_md/ipc/functions/deleteDataProcessor.md +1 -1
- package/doc_md/ipc/functions/deleteSource.md +1 -1
- package/doc_md/ipc/functions/deleteTarget.md +1 -1
- package/doc_md/ipc/functions/disableNode.md +1 -1
- package/doc_md/ipc/functions/disconnectNodes.md +1 -1
- package/doc_md/ipc/functions/enableNode.md +1 -1
- package/doc_md/ipc/functions/getFirstAndLatestTimestamp.md +18 -0
- package/doc_md/ipc/functions/getFirstTimestamp.md +17 -0
- package/doc_md/ipc/functions/getFrameDefinitions.md +1 -1
- package/doc_md/ipc/functions/getLatestTimestamp.md +17 -0
- package/doc_md/ipc/functions/getLogger.md +1 -1
- package/doc_md/ipc/functions/getMessageDataBeforeTimestamp.md +38 -0
- package/doc_md/ipc/functions/getMessageLogFileFormats.md +3 -3
- package/doc_md/ipc/functions/getSignalLogFileFormats.md +3 -3
- package/doc_md/ipc/functions/requestLinMessage.md +1 -1
- package/doc_md/ipc/functions/sendCanMessage.md +1 -1
- package/doc_md/ipc/functions/sendMessage.md +1 -1
- package/doc_md/ipc/functions/showMessageBox.md +1 -1
- package/doc_md/ipc/functions/showQuestionBox.md +1 -1
- package/doc_md/ipc/functions/startLogReplay.md +1 -1
- package/doc_md/ipc/functions/startMeasurement.md +1 -1
- package/doc_md/ipc/functions/startPeriodicTransmission.md +1 -1
- package/doc_md/ipc/functions/stopLogReplay.md +1 -1
- package/doc_md/ipc/functions/stopMeasurement.md +1 -1
- package/doc_md/ipc/functions/stopPeriodicTransmission.md +1 -1
- package/doc_md/ipc/functions/updateDataProcessor.md +1 -1
- package/doc_md/ipc/functions/updateLinMessage.md +1 -1
- package/doc_md/ipc/functions/updatePeriodicTransmission.md +1 -1
- package/doc_md/ipc/functions/updateSource.md +1 -1
- package/doc_md/ipc/functions/updateTarget.md +1 -1
- package/doc_md/ipc/interfaces/ILogger.md +1 -1
- package/doc_md/models/README.md +25 -73
- package/doc_md/models/enumerations/AccessMode.md +4 -1
- package/doc_md/models/enumerations/CanChannelCap.md +1 -1
- package/doc_md/models/enumerations/CanConfigMode.md +69 -0
- package/doc_md/models/enumerations/CanFrameFlag.md +68 -1
- package/doc_md/models/enumerations/CanMessageFilterType.md +5 -1
- package/doc_md/models/enumerations/CanMode.md +15 -1
- package/doc_md/models/enumerations/DecimalChar.md +37 -0
- package/doc_md/models/enumerations/FileConflictAction.md +7 -1
- package/doc_md/models/enumerations/LinFrameFlag.md +19 -1
- package/doc_md/models/enumerations/LogFileFormat.md +9 -1
- package/doc_md/models/enumerations/LogLevel.md +1 -1
- package/doc_md/models/enumerations/LogReplayState.md +5 -1
- package/doc_md/models/enumerations/LoggerState.md +7 -1
- package/doc_md/models/enumerations/Separator.md +37 -0
- package/doc_md/models/enumerations/SignalEncoding.md +5 -1
- package/doc_md/models/enumerations/SignalType.md +1 -1
- package/doc_md/models/enumerations/SignalValueTriggerOperator.md +19 -1
- package/doc_md/models/enumerations/StatusLevel.md +7 -1
- package/doc_md/models/enumerations/TimeReference.md +37 -0
- package/doc_md/models/enumerations/TriggerOperator.md +5 -1
- package/doc_md/models/functions/decimalToFixed.md +31 -0
- package/doc_md/models/functions/decimalToHex.md +37 -0
- package/doc_md/models/functions/deep_equal.md +37 -0
- package/doc_md/models/functions/deserializeFrame.md +25 -0
- package/doc_md/models/functions/jsonReplacer.md +32 -0
- package/doc_md/models/functions/jsonReviver.md +32 -0
- package/doc_md/models/functions/longToNumber.md +25 -0
- package/doc_md/models/functions/serializeFrame.md +25 -0
- package/doc_md/models/interfaces/BaseNodeProperties.md +49 -1
- package/doc_md/models/interfaces/BusStatus.md +121 -1
- package/doc_md/models/interfaces/CanBusParamLimits.md +41 -1
- package/doc_md/models/interfaces/CanBusParams.md +49 -1
- package/doc_md/models/interfaces/CanChannelCapacity.md +25 -1
- package/doc_md/models/interfaces/CanChannelConfiguration.md +107 -8
- package/doc_md/models/interfaces/CanFrameFlags.md +9 -1
- package/doc_md/models/interfaces/CanMessageFilterSettings.md +25 -1
- package/doc_md/models/interfaces/Channel.md +41 -1
- package/doc_md/models/interfaces/ChannelSettings.md +9 -1
- package/doc_md/models/interfaces/DataProcessingStatus.md +33 -1
- package/doc_md/models/interfaces/DataProcessorNodeProperties.md +49 -1
- package/doc_md/models/interfaces/DatabasesSettings.md +9 -1
- package/doc_md/models/interfaces/Device.md +57 -1
- package/doc_md/models/interfaces/Devices.md +17 -0
- package/doc_md/models/interfaces/Empty.md +1 -1
- package/doc_md/models/interfaces/ErrorStatus.md +1 -1
- package/doc_md/models/interfaces/FixedPosFrameIdentifier.md +8 -8
- package/doc_md/models/interfaces/Frame.md +46 -2
- package/doc_md/models/interfaces/FrameDefinition.md +9 -1
- package/doc_md/models/interfaces/FrameDefinitions.md +17 -0
- package/doc_md/models/interfaces/FramePropertyValue.md +17 -1
- package/doc_md/models/interfaces/FrameReceivedTrigger.md +9 -1
- package/doc_md/models/interfaces/Frames.md +17 -0
- package/doc_md/models/interfaces/IUserSettings.md +1 -1
- package/doc_md/models/interfaces/IWorkspaceComponentPaneData.md +1 -1
- package/doc_md/models/interfaces/IWorkspaceContainerPaneData.md +1 -1
- package/doc_md/models/interfaces/IWorkspacePaneData.md +1 -1
- package/doc_md/models/interfaces/InterpreterSettings.md +1 -1
- package/doc_md/models/interfaces/J1939InterpreterSettings.md +1 -1
- package/doc_md/models/interfaces/LinChannelConfiguration.md +1 -1
- package/doc_md/models/interfaces/LinFrameFlags.md +9 -1
- package/doc_md/models/interfaces/LogMessage.md +1 -1
- package/doc_md/models/interfaces/LogMessages.md +1 -1
- package/doc_md/models/interfaces/LogReplaySettings.md +1 -1
- package/doc_md/models/interfaces/LogReplayStatus.md +9 -1
- package/doc_md/models/interfaces/LoggerStatus.md +9 -1
- package/doc_md/models/interfaces/MeasurementSetup.md +33 -1
- package/doc_md/models/interfaces/MessageLoggerSettings.md +4 -4
- package/doc_md/models/interfaces/NodeStatus.md +1 -1
- package/doc_md/models/interfaces/NodeStatuses.md +9 -1
- package/doc_md/models/interfaces/OnlineStatus.md +17 -1
- package/doc_md/models/interfaces/PeriodicTransmissionSettings.md +1 -1
- package/doc_md/models/interfaces/ServiceExtensionSettings.md +17 -1
- package/doc_md/models/interfaces/SignalDefinition.md +133 -1
- package/doc_md/models/interfaces/SignalDefinitions.md +17 -0
- package/doc_md/models/interfaces/SignalFilterSettings.md +10 -2
- package/doc_md/models/interfaces/SignalLoggerSettings.md +4 -4
- package/doc_md/models/interfaces/SignalValue.md +41 -1
- package/doc_md/models/interfaces/SignalValueTrigger.md +9 -1
- package/doc_md/models/interfaces/SourceNodeProperties.md +41 -1
- package/doc_md/models/interfaces/TargetNodeProperties.md +41 -1
- package/doc_md/models/interfaces/TdcConfiguration.md +33 -0
- package/doc_md/models/interfaces/TriggerSettings.md +1 -1
- package/doc_md/models/interfaces/WriteFrame.md +1 -1
- package/doc_md/models/type-aliases/SerializableFrame.md +33 -0
- package/doc_md/models/variables/defaultUserSettings.md +1 -1
- package/doc_md/modules.md +2 -3
- package/package.json +16 -4
- package/dist/ElectronAPIFake.js +0 -1
- package/dist/ElectronAPIFake.mjs +0 -273
- package/dist/measurement_settings.js +0 -1
- package/dist/measurement_settings.mjs +0 -6121
- package/doc/enums/models.AppEvent.html +0 -6
- package/doc/enums/models.FileType.html +0 -7
- package/doc/enums/models.MeasurementEvent.html +0 -12
- package/doc/enums/models.Protocols.html +0 -9
- package/doc/enums/models.ServiceExtensionType.html +0 -8
- package/doc/interfaces/models.ActivateLicenseRequest.html +0 -8
- package/doc/interfaces/models.AddAllConnectedCanChannelsRequest.html +0 -2
- package/doc/interfaces/models.AddAllConnectedLinChannelsRequest.html +0 -2
- package/doc/interfaces/models.AddOrUpdateDataProcessorRequest.html +0 -10
- package/doc/interfaces/models.AddOrUpdateSourceRequest.html +0 -6
- package/doc/interfaces/models.AddOrUpdateTargetRequest.html +0 -6
- package/doc/interfaces/models.ApiPreferences.html +0 -10
- package/doc/interfaces/models.AppEventArgs.html +0 -6
- package/doc/interfaces/models.CanBusSpeedInfo.html +0 -14
- package/doc/interfaces/models.CanFDBusSpeedCombination.html +0 -2
- package/doc/interfaces/models.CanFDBusSpeedInfo.html +0 -10
- package/doc/interfaces/models.ClearLinMessageRequest.html +0 -6
- package/doc/interfaces/models.ConnectNodesRequest.html +0 -2
- package/doc/interfaces/models.DatabaseFiles.html +0 -6
- package/doc/interfaces/models.DeviceEventArgs.html +0 -2
- package/doc/interfaces/models.DisconnectNodesRequest.html +0 -2
- package/doc/interfaces/models.GetCanChannelBusSpeedsRequest.html +0 -2
- package/doc/interfaces/models.GetCanChannelBusSpeedsResponse.html +0 -6
- package/doc/interfaces/models.GetCanFdBusSpeedsRequest.html +0 -2
- package/doc/interfaces/models.GetCanFdBusSpeedsResponse.html +0 -4
- package/doc/interfaces/models.GetChannelsFromLogFileRequest.html +0 -4
- package/doc/interfaces/models.GetChannelsFromLogFileResponse.html +0 -4
- package/doc/interfaces/models.GetClassicCanBusSpeedsRequest.html +0 -2
- package/doc/interfaces/models.GetClassicCanBusSpeedsResponse.html +0 -4
- package/doc/interfaces/models.GetDataFramesBeforeTimestampRequest.html +0 -6
- package/doc/interfaces/models.GetDataProcessorResponse.html +0 -2
- package/doc/interfaces/models.GetDevicesRequest.html +0 -2
- package/doc/interfaces/models.GetDevicesResponse.html +0 -2
- package/doc/interfaces/models.GetLicensesResponse.html +0 -4
- package/doc/interfaces/models.GetLogFileFormatsRequest.html +0 -8
- package/doc/interfaces/models.GetLogFileFormatsResponse.html +0 -10
- package/doc/interfaces/models.GetLogLevelResponse.html +0 -4
- package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesRequest.html +0 -4
- package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesResponse.html +0 -4
- package/doc/interfaces/models.GetServiceExtensionInfoRequest.html +0 -8
- package/doc/interfaces/models.GetServiceExtensionInfoResponse.html +0 -16
- package/doc/interfaces/models.GetSignalDataFromMessageDataRequest.html +0 -6
- package/doc/interfaces/models.GetSignalDataFromMessageDataResponse.html +0 -4
- package/doc/interfaces/models.GetSourceResponse.html +0 -2
- package/doc/interfaces/models.GetTargetResponse.html +0 -2
- package/doc/interfaces/models.ILogFileFormat.html +0 -2
- package/doc/interfaces/models.IWorkspaceData.html +0 -2
- package/doc/interfaces/models.IdentifierRequest.html +0 -3
- package/doc/interfaces/models.IdentifiersRequest.html +0 -3
- package/doc/interfaces/models.InstallServiceExtensionRequest.html +0 -8
- package/doc/interfaces/models.LicenseInformation.html +0 -18
- package/doc/interfaces/models.MeasurementEventArgs.html +0 -2
- package/doc/interfaces/models.RequestLinMessageRequest.html +0 -6
- package/doc/interfaces/models.ScheduleTable.html +0 -8
- package/doc/interfaces/models.ScheduleTableEntry.html +0 -6
- package/doc/interfaces/models.SendLinWakeupFrameRequest.html +0 -8
- package/doc/interfaces/models.SendMessageRequest.html +0 -2
- package/doc/interfaces/models.SetMeasurementSetupRequest.html +0 -2
- package/doc/interfaces/models.SetSignalDataToMessageDataRequest.html +0 -8
- package/doc/interfaces/models.SetSignalDataToMessageDataResponse.html +0 -7
- package/doc/interfaces/models.StartPeriodicTransmissionRequest.html +0 -4
- package/doc/interfaces/models.StartPeriodicTransmissionResponse.html +0 -2
- package/doc/interfaces/models.SubscribeForDataRequest.html +0 -4
- package/doc/interfaces/models.UninstallServiceExtensionRequest.html +0 -6
- package/doc/interfaces/models.UpdateLinMessageRequest.html +0 -7
- package/doc/interfaces/models.UpdatePeriodicTransmissionRequest.html +0 -6
- package/doc/modules/icons.html +0 -2
- package/doc_md/icons/README.md +0 -9
- package/doc_md/models/enumerations/AppEvent.md +0 -29
- package/doc_md/models/enumerations/DeviceEvent.md +0 -29
- package/doc_md/models/enumerations/FileType.md +0 -39
- package/doc_md/models/enumerations/MeasurementEvent.md +0 -53
- package/doc_md/models/enumerations/Protocols.md +0 -39
- package/doc_md/models/enumerations/ServiceExtensionType.md +0 -37
- package/doc_md/models/interfaces/AboutInformation.md +0 -33
- package/doc_md/models/interfaces/ActivateLicenseRequest.md +0 -33
- package/doc_md/models/interfaces/AddAllConnectedCanChannelsRequest.md +0 -9
- package/doc_md/models/interfaces/AddAllConnectedLinChannelsRequest.md +0 -9
- package/doc_md/models/interfaces/AddOrUpdateDataProcessorRequest.md +0 -35
- package/doc_md/models/interfaces/AddOrUpdateSourceRequest.md +0 -19
- package/doc_md/models/interfaces/AddOrUpdateTargetRequest.md +0 -19
- package/doc_md/models/interfaces/ApiPreferences.md +0 -41
- package/doc_md/models/interfaces/AppEventArgs.md +0 -25
- package/doc_md/models/interfaces/CanBusSpeedInfo.md +0 -57
- package/doc_md/models/interfaces/CanFDBusSpeedCombination.md +0 -9
- package/doc_md/models/interfaces/CanFDBusSpeedInfo.md +0 -41
- package/doc_md/models/interfaces/ClearLinMessageRequest.md +0 -25
- package/doc_md/models/interfaces/ConnectNodesRequest.md +0 -9
- package/doc_md/models/interfaces/DatabaseFiles.md +0 -25
- package/doc_md/models/interfaces/DeviceEventArgs.md +0 -9
- package/doc_md/models/interfaces/DisconnectNodesRequest.md +0 -9
- package/doc_md/models/interfaces/GetCanChannelBusSpeedsRequest.md +0 -9
- package/doc_md/models/interfaces/GetCanChannelBusSpeedsResponse.md +0 -25
- package/doc_md/models/interfaces/GetCanFdBusSpeedsRequest.md +0 -9
- package/doc_md/models/interfaces/GetCanFdBusSpeedsResponse.md +0 -17
- package/doc_md/models/interfaces/GetChannelsFromLogFileRequest.md +0 -17
- package/doc_md/models/interfaces/GetChannelsFromLogFileResponse.md +0 -17
- package/doc_md/models/interfaces/GetClassicCanBusSpeedsRequest.md +0 -9
- package/doc_md/models/interfaces/GetClassicCanBusSpeedsResponse.md +0 -17
- package/doc_md/models/interfaces/GetDataFramesBeforeTimestampRequest.md +0 -25
- package/doc_md/models/interfaces/GetDataProcessorResponse.md +0 -9
- package/doc_md/models/interfaces/GetDevicesRequest.md +0 -9
- package/doc_md/models/interfaces/GetDevicesResponse.md +0 -9
- package/doc_md/models/interfaces/GetFrameDefinitionsFromDatabaseFilesRequest.md +0 -17
- package/doc_md/models/interfaces/GetLicensesResponse.md +0 -17
- package/doc_md/models/interfaces/GetLogFileFormatsRequest.md +0 -33
- package/doc_md/models/interfaces/GetLogFileFormatsResponse.md +0 -41
- package/doc_md/models/interfaces/GetLogLevelResponse.md +0 -17
- package/doc_md/models/interfaces/GetScheduleTablesFromDatabaseFilesRequest.md +0 -17
- package/doc_md/models/interfaces/GetScheduleTablesFromDatabaseFilesResponse.md +0 -17
- package/doc_md/models/interfaces/GetServiceExtensionInfoRequest.md +0 -27
- package/doc_md/models/interfaces/GetServiceExtensionInfoResponse.md +0 -65
- package/doc_md/models/interfaces/GetSignalDataFromMessageDataRequest.md +0 -25
- package/doc_md/models/interfaces/GetSignalDataFromMessageDataResponse.md +0 -17
- package/doc_md/models/interfaces/GetSourceResponse.md +0 -9
- package/doc_md/models/interfaces/GetTargetResponse.md +0 -9
- package/doc_md/models/interfaces/ILogFileFormat.md +0 -9
- package/doc_md/models/interfaces/IProject.md +0 -9
- package/doc_md/models/interfaces/IWorkspaceData.md +0 -9
- package/doc_md/models/interfaces/IdentifierRequest.md +0 -10
- package/doc_md/models/interfaces/IdentifiersRequest.md +0 -10
- package/doc_md/models/interfaces/InstallServiceExtensionRequest.md +0 -33
- package/doc_md/models/interfaces/LicenseInformation.md +0 -73
- package/doc_md/models/interfaces/Licenses.md +0 -17
- package/doc_md/models/interfaces/MeasurementEventArgs.md +0 -9
- package/doc_md/models/interfaces/RequestLinMessageRequest.md +0 -25
- package/doc_md/models/interfaces/ScheduleTable.md +0 -33
- package/doc_md/models/interfaces/ScheduleTableEntry.md +0 -25
- package/doc_md/models/interfaces/SendLinWakeupFrameRequest.md +0 -33
- package/doc_md/models/interfaces/SendMessageRequest.md +0 -9
- package/doc_md/models/interfaces/SetLogLevelRequest.md +0 -25
- package/doc_md/models/interfaces/SetMeasurementSetupRequest.md +0 -9
- package/doc_md/models/interfaces/SetSignalDataToMessageDataRequest.md +0 -33
- package/doc_md/models/interfaces/SetSignalDataToMessageDataResponse.md +0 -26
- package/doc_md/models/interfaces/StartPeriodicTransmissionRequest.md +0 -17
- package/doc_md/models/interfaces/StartPeriodicTransmissionResponse.md +0 -9
- package/doc_md/models/interfaces/SubscribeForDataRequest.md +0 -17
- package/doc_md/models/interfaces/UninstallServiceExtensionRequest.md +0 -25
- package/doc_md/models/interfaces/UpdateLinMessageRequest.md +0 -26
- package/doc_md/models/interfaces/UpdatePeriodicTransmissionRequest.md +0 -25
- package/licenses/ELECTRON-TOOLKIT-PRELOAD_MIT.TXT +0 -21
- package/licenses/FAST-DEEP-EQUAL_MIT.TXT +0 -21
- package/licenses/GOOGLE-PROTOBUF_(BSD-3-CLAUSE AND APACHE-2.0).TXT +0 -29
- package/licenses/REACT-DOM_MIT.TXT +0 -21
- package/licenses/REACT_MIT.TXT +0 -21
- package/licenses/UUID_MIT.TXT +0 -9
- package/licenses/licenses.css +0 -22
- package/licenses/licenses.html +0 -67
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ILocalizedStrings } from '../controls/LocalizedStrings';
|
|
2
|
-
import { Device, Frame, NodeStatus, LogMessage, MeasurementSetup, OnlineStatus, StatusLevel,
|
|
2
|
+
import { Device, Frame, NodeStatus, LogMessage, MeasurementSetup, OnlineStatus, StatusLevel, LogFileFormatInfo, IUserSettings, IWorkspacePaneData, FixedPosFrameIdentifier } from '../models';
|
|
3
|
+
import Long from 'long';
|
|
3
4
|
/**
|
|
4
5
|
* A hook for user settings.
|
|
5
6
|
* @returns The user settings.
|
|
@@ -28,6 +29,22 @@ export declare const useLocalizedStrings: () => ILocalizedStrings;
|
|
|
28
29
|
* Hook keeping track of recent project files.
|
|
29
30
|
*/
|
|
30
31
|
export declare const useRecentProjectFiles: () => string[];
|
|
32
|
+
/**
|
|
33
|
+
* A hook for log messages.
|
|
34
|
+
* @returns The log messages.
|
|
35
|
+
*/
|
|
36
|
+
export declare const useLogMessages: () => LogMessage[];
|
|
37
|
+
/**
|
|
38
|
+
* Hook keeping track of message log file formats.
|
|
39
|
+
* @param read_support - Optional flag to indicate if read support is required.
|
|
40
|
+
* @returns The message log file formats.
|
|
41
|
+
*/
|
|
42
|
+
export declare const useMessageLogFileFormats: (read_support?: boolean) => LogFileFormatInfo[];
|
|
43
|
+
/**
|
|
44
|
+
* Hook keeping track of signal log file formats.
|
|
45
|
+
* @returns The signal log file formats.
|
|
46
|
+
*/
|
|
47
|
+
export declare const useSignalLogFileFormats: () => LogFileFormatInfo[];
|
|
31
48
|
/**
|
|
32
49
|
* A hook for hardware devices.
|
|
33
50
|
* @returns The hardware devices.
|
|
@@ -38,6 +55,11 @@ export declare const useDevices: () => Device[] | null;
|
|
|
38
55
|
* @returns The measurement setup.
|
|
39
56
|
*/
|
|
40
57
|
export declare const useMeasurementSetup: () => MeasurementSetup;
|
|
58
|
+
/**
|
|
59
|
+
* Hook to get all available protocols from the measurement setup.
|
|
60
|
+
* @returns The available protocols.
|
|
61
|
+
*/
|
|
62
|
+
export declare const useAvailableProtocols: () => string[];
|
|
41
63
|
/**
|
|
42
64
|
* A hook for measurement status.
|
|
43
65
|
* @returns The measurement status.
|
|
@@ -48,6 +70,20 @@ export declare const useMeasurementStatus: () => NodeStatus[];
|
|
|
48
70
|
* @returns The node status.
|
|
49
71
|
*/
|
|
50
72
|
export declare const useNodeStatus: (id: string) => NodeStatus | null;
|
|
73
|
+
/**
|
|
74
|
+
* Calculates the overall status level from a bus status.
|
|
75
|
+
* @param busStatus - The bus status to calculate from.
|
|
76
|
+
* @returns The overall status level.
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
export declare function calculateOverallStatusLevelFromBusStatus(busStatus: NodeStatus['busStatus']): StatusLevel;
|
|
80
|
+
/**
|
|
81
|
+
* Calculates the overall status level from multiple node statuses.
|
|
82
|
+
* @param statuses - Array of node statuses.
|
|
83
|
+
* @returns The highest overall status level.
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
export declare function calculateOverallStatusLevel(statuses: NodeStatus[]): StatusLevel;
|
|
51
87
|
/**
|
|
52
88
|
* Hook to get the measurement's highest overall status level.
|
|
53
89
|
* @returns The measurement's highest overall status.
|
|
@@ -68,11 +104,6 @@ export declare const useIsOnline: () => boolean;
|
|
|
68
104
|
* @returns The running periodic transmissions.
|
|
69
105
|
*/
|
|
70
106
|
export declare const useRunningPeriodicTransmissions: () => string[];
|
|
71
|
-
/**
|
|
72
|
-
* A hook for log messages.
|
|
73
|
-
* @returns The log messages.
|
|
74
|
-
*/
|
|
75
|
-
export declare const useLogMessages: () => LogMessage[];
|
|
76
107
|
/**
|
|
77
108
|
* A hook for new measurement data.
|
|
78
109
|
* @param numberOfHistoryFrames - Optional number of history frames to read from data buffer when this hook initializes.
|
|
@@ -83,71 +114,401 @@ export declare const useLogMessages: () => LogMessage[];
|
|
|
83
114
|
export declare const useNewMeasurementData: (numberOfHistoryFrames?: number, predicate?: (frame: Frame) => boolean) => Frame[];
|
|
84
115
|
/**
|
|
85
116
|
* A hook for scroll mode measurement data. Will return the latest measurement data. Will include at most 500 frames.
|
|
86
|
-
* @param
|
|
117
|
+
* @param startUs - Optional start time (in microseconds) to read from the scroll data buffer. Any frame with a timestamp less than this will be excluded.
|
|
87
118
|
* @returns The measurement data.
|
|
88
119
|
*/
|
|
89
|
-
export declare const useScrollModeMeasurementData: (
|
|
120
|
+
export declare const useScrollModeMeasurementData: (startUs?: number) => Frame[];
|
|
90
121
|
/**
|
|
91
122
|
* A hook for fixed position mode measurement data. Will return the latest measurement data for each unique frame id and type.
|
|
92
|
-
* @param
|
|
123
|
+
* @param startUs - Optional start time (in microseconds) to read from the fixed position data buffer. Any frame with a timestamp less than this will be excluded.
|
|
93
124
|
* @returns The measurement data.
|
|
94
125
|
*/
|
|
95
|
-
export declare const useFixedPositionModeMeasurementData: (
|
|
126
|
+
export declare const useFixedPositionModeMeasurementData: (startUs?: number) => Frame[];
|
|
127
|
+
/**
|
|
128
|
+
* Merges frame arrays and removes duplicates based on frame timestamp.
|
|
129
|
+
* @param existing - Existing frames to merge into.
|
|
130
|
+
* @param incoming - New frames to add.
|
|
131
|
+
* @returns Merged and deduplicated frames.
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
export declare function mergeAndDeduplicateFrames(existing: Frame[], incoming: Frame[]): Frame[];
|
|
135
|
+
/**
|
|
136
|
+
* Merges multiple frame data maps, deduplicating frames within each key.
|
|
137
|
+
* @param base - Base map to merge into (will be modified).
|
|
138
|
+
* @param additional - Additional map to merge from.
|
|
139
|
+
* @returns The merged map (same reference as base).
|
|
140
|
+
* @internal
|
|
141
|
+
*/
|
|
142
|
+
export declare function mergeFrameDataMaps(base: Map<string, Frame[]>, additional: Map<string, Frame[]>): Map<string, Frame[]>;
|
|
96
143
|
/**
|
|
97
144
|
* A hook for extracting message data from the measurement context. Will return the latest measurement data for the specified identifier.
|
|
98
|
-
*
|
|
99
|
-
* @
|
|
145
|
+
*
|
|
146
|
+
* @remarks
|
|
147
|
+
* This hook buffers incoming frame data during initialization (before historical data is ready)
|
|
148
|
+
* and merges it with historical data once available. This ensures no data is lost during the startup phase.
|
|
149
|
+
*
|
|
150
|
+
* @param id - The unique id of the view. This is passed to the view component as the `id` prop.
|
|
151
|
+
* @param subscriptionName - The subscription name for the data. Must be unique per view. To avoid conflicts, use a descriptive name.
|
|
152
|
+
* @param identifiers - The fixed position frame identifiers to get data for. To avoid unnecessary re-renders, make sure to memoize this object.
|
|
153
|
+
* @returns The measurement data for the specified identifiers. If an empty array is returned, then all previously received data is invalid and should be discarded.
|
|
100
154
|
*/
|
|
101
|
-
export declare const useMessageData: (identifiers: FixedPosFrameIdentifier[]) => Frame[];
|
|
155
|
+
export declare const useMessageData: (id: number, subscriptionName: string, identifiers: FixedPosFrameIdentifier[]) => Frame[];
|
|
102
156
|
/**
|
|
103
157
|
* Interface for signal data.
|
|
104
158
|
*/
|
|
105
159
|
export interface ISignalData {
|
|
160
|
+
/** The qualified name of the signal. */
|
|
106
161
|
qualifiedName: string;
|
|
162
|
+
/** The source identifier of the signal. */
|
|
163
|
+
sourceId?: string;
|
|
164
|
+
/** The name of the signal. */
|
|
107
165
|
name: string;
|
|
166
|
+
/** The unit of the signal. */
|
|
108
167
|
unit: string;
|
|
168
|
+
/**
|
|
169
|
+
* The timestamp of the signal data.
|
|
170
|
+
* @deprecated Use `timeUs` for higher precision timestamps in microseconds. This field is kept for backward compatibility but may be removed in the future.
|
|
171
|
+
*/
|
|
109
172
|
time: number;
|
|
173
|
+
/** The timestamp of the signal data in microseconds. */
|
|
174
|
+
timeUs: Long;
|
|
175
|
+
/** The double value of the signal. */
|
|
110
176
|
doubleValue: number;
|
|
177
|
+
/** Optional string value of the signal. */
|
|
111
178
|
stringValue?: string;
|
|
112
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* Initialization state for signal data hook.
|
|
182
|
+
* @internal
|
|
183
|
+
*/
|
|
184
|
+
export declare enum SignalDataInitState {
|
|
185
|
+
/** Not yet initialized */
|
|
186
|
+
PENDING = "pending",
|
|
187
|
+
/** Frame keys loaded, waiting for historical data */
|
|
188
|
+
FRAME_KEYS_READY = "frameKeysReady",
|
|
189
|
+
/** Historical data loaded, waiting for frame keys */
|
|
190
|
+
HISTORICAL_DATA_READY = "historicalDataReady",
|
|
191
|
+
/** Fully initialized and ready to process data */
|
|
192
|
+
READY = "ready"
|
|
193
|
+
}
|
|
113
194
|
/**
|
|
114
195
|
* A hook for extracting signal data from the measurement context. Will return the latest measurement data for the specified signal names.
|
|
115
|
-
*
|
|
116
|
-
* @
|
|
196
|
+
*
|
|
197
|
+
* @remarks
|
|
198
|
+
* This hook buffers incoming frame data during initialization (before frame keys and historical data are ready)
|
|
199
|
+
* and merges it with historical data once available. This ensures no data is lost during the startup phase.
|
|
200
|
+
*
|
|
201
|
+
* @privateRemarks
|
|
202
|
+
* Initialization follows a state machine:
|
|
203
|
+
* - PENDING: Initial state, waiting for both frame keys and historical data
|
|
204
|
+
* - FRAME_KEYS_READY/HISTORICAL_DATA_READY: One component is ready
|
|
205
|
+
* - READY: Both components ready, processing live data
|
|
206
|
+
*
|
|
207
|
+
* @param id - The unique id of the view. This is passed to the view component as the `id` prop.
|
|
208
|
+
* @param subscriptionName - The subscription name for the data. Must be unique per view. To avoid conflicts, use a descriptive name.
|
|
209
|
+
* @param subscribedSignals - The signals to extract data for, including optional source identifiers. To avoid unnecessary re-renders, make sure to memoize this object.
|
|
210
|
+
* @returns The extracted signal data. If an empty array is returned, then all previously received data is invalid and should be discarded.
|
|
211
|
+
*/
|
|
212
|
+
export declare const useSignalData: (id: number, subscriptionName: string, subscribedSignals: {
|
|
213
|
+
qualifiedName: string;
|
|
214
|
+
sourceId?: string;
|
|
215
|
+
}[]) => ISignalData[];
|
|
216
|
+
/**
|
|
217
|
+
* Interface for signal data envelope.
|
|
218
|
+
* Each envelope contains arrays of time, min, and max values for a signal.
|
|
219
|
+
* All arrays are aligned by index.
|
|
220
|
+
*/
|
|
221
|
+
export interface ISignalDataEnvelope {
|
|
222
|
+
/** The qualified name of the signal. */
|
|
223
|
+
qualifiedName: string;
|
|
224
|
+
/** The source identifier of the signal. */
|
|
225
|
+
sourceId?: string;
|
|
226
|
+
/** The timestamps of the signal data in microseconds. */
|
|
227
|
+
timeUs: number[];
|
|
228
|
+
/** The minimum values of the signal data. */
|
|
229
|
+
min: number[];
|
|
230
|
+
/** The maximum values of the signal data. */
|
|
231
|
+
max: number[];
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Interface for envelope view parameters.
|
|
235
|
+
*/
|
|
236
|
+
export interface IEnvelopeView {
|
|
237
|
+
/** The start time of the view in microseconds. */
|
|
238
|
+
startTimeUs?: number;
|
|
239
|
+
/** The end time of the view in microseconds. */
|
|
240
|
+
endTimeUs?: number;
|
|
241
|
+
/** The time window of the view in microseconds. If start and end is not set then this defines the window. */
|
|
242
|
+
windowUs?: number;
|
|
243
|
+
/** The width of the view in pixels. */
|
|
244
|
+
width?: number;
|
|
245
|
+
/** Optional counter to force update the envelopes. Change it to trigger a refresh even if other parameters have not changed. */
|
|
246
|
+
forceUpdateCounter?: number;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* A hook for extracting signal data envelopes to be used for graphical visualization.
|
|
250
|
+
* The envelopes contain min/max values for signals over time ranges, suitable for plotting.
|
|
251
|
+
*
|
|
252
|
+
* @remarks
|
|
253
|
+
* This hook subscribes to live envelope data when no view time range is provided.
|
|
254
|
+
* If a view with startTime and endTime is given, it fetches envelopes from historical/cached data instead.
|
|
255
|
+
*
|
|
256
|
+
* @param id - The unique id of the view. This is passed to the view component as the `id` prop.
|
|
257
|
+
* @param subscriptionName - The subscription name for the data. Must be unique per view. To avoid conflicts, use a descriptive name.
|
|
258
|
+
* @param subscribedSignals - The subscribed signals with their qualified names and optional source identifiers. To avoid unnecessary re-renders, make sure to memoize this object.
|
|
259
|
+
* @param view - Optional view parameters to define the time range and width for the envelopes. If startTime and endTime are set then the envelopes
|
|
260
|
+
* will be fetched from history/cached data, otherwise only new/live envelope data will be provided.
|
|
261
|
+
* @returns The extracted signal data. If an empty array is returned, then all previously received data is invalid and should be discarded.
|
|
262
|
+
*/
|
|
263
|
+
export declare const useSignalDataEnvelopes: (id: number, subscriptionName: string, subscribedSignals: {
|
|
264
|
+
qualifiedName: string;
|
|
265
|
+
sourceId?: string;
|
|
266
|
+
}[], view: IEnvelopeView) => ISignalDataEnvelope[];
|
|
267
|
+
/**
|
|
268
|
+
* Merges saved session/project data with default values.
|
|
269
|
+
* @param saved - Saved session/project data (will be null/undefined if not present).
|
|
270
|
+
* @param defaultValue - Default value to use as base.
|
|
271
|
+
* @returns Merged data combining default and saved values.
|
|
272
|
+
* @internal
|
|
273
|
+
*/
|
|
274
|
+
export declare function mergeData<T>(saved: any, defaultValue: T): T;
|
|
275
|
+
/**
|
|
276
|
+
* Calculate the maximum number of active intervals allowed based on workspace panes.
|
|
277
|
+
* Assumes each pane might have 3-6 project data hooks on average (useProjectData + multiple useProjectDataSlice).
|
|
278
|
+
* @param numPanes - Number of active workspace panes
|
|
279
|
+
* @returns Maximum allowed active intervals
|
|
280
|
+
* @internal
|
|
281
|
+
*/
|
|
282
|
+
export declare function calculateMaxActiveProjectDataIntervals(numPanes: number): number;
|
|
283
|
+
/**
|
|
284
|
+
* A hook for data that should be saved to the current project.
|
|
285
|
+
* The state is automatically saved to and restored from the main process.
|
|
286
|
+
* @remarks
|
|
287
|
+
* Use this hook to split your workspace view's project data into multiple named slices.
|
|
288
|
+
* This can improve performance and reduce memory usage and it also allows
|
|
289
|
+
* different parts of the component tree to independently load and save their project data.
|
|
290
|
+
* Make sure to use the workspace view component's `id` prop and to use unique slice names
|
|
291
|
+
* for each slice within the component tree.
|
|
292
|
+
* @param id - The unique id of the view. This is passed to the view component as the `id` prop.
|
|
293
|
+
* @param slice - The slice name for the project data.
|
|
294
|
+
* @param defaultValue - The default value or a function that returns the default value.
|
|
295
|
+
* @param loadedCallback - Optional callback invoked once after data is loaded.
|
|
296
|
+
* @returns An object with a flag indicating if the project data has been initialized, the current project data and a setter callback.
|
|
117
297
|
*/
|
|
118
|
-
export declare const
|
|
298
|
+
export declare const useProjectDataSlice: <T>(id: number, slice: string, defaultValue: T | (() => T), loadedCallback?: (value: T) => void) => [T, React.Dispatch<React.SetStateAction<T>>, boolean];
|
|
119
299
|
/**
|
|
120
300
|
* A hook for data that should be saved to the current project.
|
|
121
|
-
*
|
|
122
|
-
* @
|
|
301
|
+
* The state is automatically saved to and restored from the main process.
|
|
302
|
+
* @remarks
|
|
303
|
+
* It's only possible to use this hook once per workspace view component tree.
|
|
304
|
+
* Use this hook if your view component only needs to store a small amount of project data.
|
|
305
|
+
* For larger amounts of data, consider using `useProjectDataSlice` instead, which allows
|
|
306
|
+
* splitting the project data into multiple named slices.
|
|
307
|
+
* Using multiple slices can improve performance and reduce memory usage and it also allows
|
|
308
|
+
* different parts of the component tree to independently load and save their project data.
|
|
309
|
+
* @param id - The unique id of the view. This is passed to the view component as the `id` prop.
|
|
310
|
+
* @param defaultValue - The default value or a function that returns the default value.
|
|
123
311
|
* @returns An object with a flag indicating if the project data has been initialized, the current project data and a setter callback.
|
|
124
312
|
*/
|
|
125
|
-
export declare const useProjectData: <T>(id: number, defaultValue
|
|
313
|
+
export declare const useProjectData: <T>(id: number, defaultValue: T | (() => T)) => {
|
|
126
314
|
projectDataIsInitialized: boolean;
|
|
127
315
|
projectData: T;
|
|
128
316
|
setProjectData: React.Dispatch<React.SetStateAction<T>>;
|
|
129
317
|
};
|
|
318
|
+
/**
|
|
319
|
+
* Calculate the maximum number of active intervals allowed based on workspace panes.
|
|
320
|
+
* Assumes each pane might have 3-6 session data hooks on average (useSessionData + multiple useSessionDataSlice).
|
|
321
|
+
* @param numPanes - Number of active workspace panes
|
|
322
|
+
* @returns Maximum allowed active intervals
|
|
323
|
+
* @internal
|
|
324
|
+
*/
|
|
325
|
+
export declare function calculateMaxActiveSessionDataIntervals(numPanes: number): number;
|
|
130
326
|
/**
|
|
131
327
|
* A hook for data that should be saved to the session data.
|
|
132
|
-
*
|
|
133
|
-
* @
|
|
328
|
+
* The state is automatically saved to and restored from the main process.
|
|
329
|
+
* @remarks
|
|
330
|
+
* It's only possible to use this hook once per workspace view component tree.
|
|
331
|
+
* Use this hook if your view component only needs to store a small amount of session data.
|
|
332
|
+
* For larger amounts of data, consider using `useSessionDataSlice` instead, which allows
|
|
333
|
+
* splitting the session data into multiple named slices.
|
|
334
|
+
* Using multiple slices can improve performance and reduce memory usage and it also allows
|
|
335
|
+
* different parts of the component tree to independently load and save their session data.
|
|
336
|
+
* @typeParam T - The type of the session data. Must be JSON serializable.
|
|
337
|
+
* @param id - The unique id of the view. This is passed to the view component as the `id` prop.
|
|
338
|
+
* @param defaultValue - The default value or a function that returns the default value.
|
|
339
|
+
* @param loadedCallback - Optional callback invoked once after data is loaded.
|
|
134
340
|
* @returns An object with a flag indicating if the session data has been initialized, the current session data and a setter callback.
|
|
135
341
|
*/
|
|
136
|
-
export declare const useSessionData: <T>(id: number, defaultValue?: T) => {
|
|
342
|
+
export declare const useSessionData: <T>(id: number, defaultValue: T | (() => T), loadedCallback?: (value: T) => void) => {
|
|
137
343
|
sessionDataIsInitialized: boolean;
|
|
138
344
|
sessionData: T;
|
|
139
345
|
setSessionData: React.Dispatch<React.SetStateAction<T>>;
|
|
140
346
|
};
|
|
347
|
+
/**
|
|
348
|
+
* A hook for persistent (session) data tied to a specific view slice.
|
|
349
|
+
* The state is automatically saved to and restored from the main process.
|
|
350
|
+
* @remarks
|
|
351
|
+
* Use this hook to split your workspace view's session data into multiple named slices.
|
|
352
|
+
* This can improve performance and reduce memory usage and it also allows
|
|
353
|
+
* different parts of the component tree to independently load and save their session data.
|
|
354
|
+
* Make sure to use the workspace view component's `id` prop and to use unique slice names
|
|
355
|
+
* for each slice within the component tree.
|
|
356
|
+
* @typeParam T - The type of the session data. Must be JSON serializable.
|
|
357
|
+
* @param id - The unique id of the view. This is passed to the view component as the `id` prop.
|
|
358
|
+
* @param slice - The slice name for the session data.
|
|
359
|
+
* @param defaultValue - The default value or a function that returns the default value.
|
|
360
|
+
* @param loadedCallback - Optional callback invoked once after data is loaded.
|
|
361
|
+
* @returns [state, setState, loaded] — the current data, setter, and loaded flag.
|
|
362
|
+
*/
|
|
363
|
+
export declare function useSessionDataSlice<T>(id: number, slice: string, defaultValue: T | (() => T), loadedCallback?: (value: T) => void): [T, React.Dispatch<React.SetStateAction<T>>, boolean];
|
|
364
|
+
/**
|
|
365
|
+
* Custom hook to manage undo/redo state using session data storage.
|
|
366
|
+
* @remarks
|
|
367
|
+
* This hook triggers component re-renders whenever the state changes.
|
|
368
|
+
* This is useful for persisting undo/redo state across sessions.
|
|
369
|
+
* @typeParam T - The type of the state being managed, must be serializable to JSON.
|
|
370
|
+
* @param id - The unique id of the view. This is passed to the view component as the `id` prop.
|
|
371
|
+
* @param slice - The slice name for the session data.
|
|
372
|
+
* @param initialState - The initial undo state. Will be used if there is no existing session data.
|
|
373
|
+
* @returns [undoObject, loaded] - An undo object for managing state history and loaded flag.
|
|
374
|
+
*/
|
|
375
|
+
export declare function useUndoSessionDataSlice<T>(id: number, slice: string, initialState?: IUndoState<T>): [IUndoObject<T>, boolean];
|
|
141
376
|
/**
|
|
142
377
|
* Hook to get/set a workspace pane by id.
|
|
143
378
|
*/
|
|
144
379
|
export declare const useWorkspacePaneWithId: (id: number) => IWorkspacePaneData | null;
|
|
145
380
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
381
|
+
* Callback type for when the view goes online.
|
|
382
|
+
* The online counter can be used to determine if CanKing has been offline and come back online while the view was unmounted.
|
|
383
|
+
* @param isNewView - Whether the view is newly created.
|
|
384
|
+
* @param isMounting - Whether the view is mounting.
|
|
385
|
+
* @param onlineCounter - The number of times CanKing has gone online (including the current one).
|
|
148
386
|
*/
|
|
149
|
-
export
|
|
387
|
+
export type OnGoingOnlineCallback = (isNewView: boolean, isMounting: boolean, onlineCounter: number) => void;
|
|
150
388
|
/**
|
|
151
|
-
*
|
|
389
|
+
* Callback type for when the view goes offline.
|
|
390
|
+
* The online counter can be used to determine if CanKing has been online and come back offline while the view was unmounted.
|
|
391
|
+
* @param isNewView - Whether the view is newly created.
|
|
392
|
+
* @param isMounting - Whether the view is mounting.
|
|
393
|
+
* @param onlineCounter - The number of times CanKing has gone online (including the current one).
|
|
394
|
+
*/
|
|
395
|
+
export type OnGoingOfflineCallback = (isNewView: boolean, isMounting: boolean, onlineCounter: number) => void;
|
|
396
|
+
/**
|
|
397
|
+
* Custom hook to synchronize session state with online/offline status changes.
|
|
398
|
+
* @param parentIsInitialized - Whether the parent component is initialized and has loaded all project and session data needed before receiving online updates.
|
|
399
|
+
* @param id - The unique id of the view. This is passed to the view component as the `id` prop.
|
|
400
|
+
* @param onGoingOnline - Callback function to handle going online. Called when the CanKing starts a measurement or when the view is mounted while online.
|
|
401
|
+
* @param onGoingOffline - Callback function to handle going offline. Called when the CanKing stops a measurement or when the view is mounted while offline.
|
|
402
|
+
* @returns The current online status.
|
|
403
|
+
*/
|
|
404
|
+
export declare function useOnlineStatusSync(parentIsInitialized: boolean, id: number, onGoingOnline: OnGoingOnlineCallback, onGoingOffline: OnGoingOfflineCallback): boolean;
|
|
405
|
+
/**
|
|
406
|
+
* The undo/redo state.
|
|
407
|
+
* @typeParam T - The type of the undo/redo data.
|
|
408
|
+
*/
|
|
409
|
+
export interface IUndoState<T> {
|
|
410
|
+
/** The previous values */
|
|
411
|
+
previous: T[];
|
|
412
|
+
/** The current value */
|
|
413
|
+
current?: T;
|
|
414
|
+
/** The next values */
|
|
415
|
+
next: T[];
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* The undo/redo object. Includes the current state and methods to manipulate it.
|
|
419
|
+
* @typeParam T - The type of the undo/redo data.
|
|
420
|
+
*/
|
|
421
|
+
export interface IUndoObject<T> {
|
|
422
|
+
/** The current undo/redo state */
|
|
423
|
+
state: IUndoState<T>;
|
|
424
|
+
/**
|
|
425
|
+
* Set a new current state
|
|
426
|
+
* @param updater - The new value or a function that receives the current value and returns the new value
|
|
427
|
+
*/
|
|
428
|
+
set: (updater: T | ((curr?: T) => T)) => void;
|
|
429
|
+
/**
|
|
430
|
+
* Reset the undo/redo history with a new initial value
|
|
431
|
+
* @param current - The new initial value. If undefined, current will be unset.
|
|
432
|
+
* @param previous - The previous values (optional)
|
|
433
|
+
* @param next - The next values (optional)
|
|
434
|
+
*/
|
|
435
|
+
reset: (current?: T, previous?: T[], next?: T[]) => void;
|
|
436
|
+
/**
|
|
437
|
+
* Undo to the previous state
|
|
438
|
+
*/
|
|
439
|
+
undo: () => void;
|
|
440
|
+
/**
|
|
441
|
+
* Redo to the next state
|
|
442
|
+
*/
|
|
443
|
+
redo: () => void;
|
|
444
|
+
/**
|
|
445
|
+
* Check if undo is possible
|
|
446
|
+
* @returns true if there are states to undo to
|
|
447
|
+
*/
|
|
448
|
+
canUndo: () => boolean;
|
|
449
|
+
/**
|
|
450
|
+
* Check if redo is possible
|
|
451
|
+
* @returns true if there are states to redo to
|
|
452
|
+
*/
|
|
453
|
+
canRedo: () => boolean;
|
|
454
|
+
/**
|
|
455
|
+
* Subscribe to state changes (optional, for triggering re-renders)
|
|
456
|
+
* @param listener - Callback function that will be called whenever state changes
|
|
457
|
+
* @returns Unsubscribe function
|
|
458
|
+
*/
|
|
459
|
+
subscribe?: (listener: () => void) => () => void;
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Helper function to limit buffer size by keeping only the most recent entries.
|
|
463
|
+
* @param buffer - The buffer to limit.
|
|
464
|
+
* @param maxLength - Maximum allowed length.
|
|
465
|
+
* @returns Limited buffer.
|
|
466
|
+
* @internal
|
|
467
|
+
*/
|
|
468
|
+
export declare function limitBuffer<T>(buffer: T[], maxLength: number): T[];
|
|
469
|
+
/**
|
|
470
|
+
* Performs an undo operation on the undo/redo state.
|
|
471
|
+
* @param state - Current undo/redo state.
|
|
472
|
+
* @param maxBufferLength - Maximum buffer length for history.
|
|
473
|
+
* @returns New undo/redo state after undo.
|
|
474
|
+
* @internal
|
|
475
|
+
*/
|
|
476
|
+
export declare function performUndo<T>(state: IUndoState<T>, maxBufferLength: number): IUndoState<T>;
|
|
477
|
+
/**
|
|
478
|
+
* Performs a redo operation on the undo/redo state.
|
|
479
|
+
* @param state - Current undo/redo state.
|
|
480
|
+
* @param maxBufferLength - Maximum buffer length for history.
|
|
481
|
+
* @returns New undo/redo state after redo.
|
|
482
|
+
* @internal
|
|
483
|
+
*/
|
|
484
|
+
export declare function performRedo<T>(state: IUndoState<T>, maxBufferLength: number): IUndoState<T>;
|
|
485
|
+
/**
|
|
486
|
+
* Performs a set operation on the undo/redo state.
|
|
487
|
+
* @param state - Current undo/redo state.
|
|
488
|
+
* @param newValue - New value to set.
|
|
489
|
+
* @param maxBufferLength - Maximum buffer length for history.
|
|
490
|
+
* @param equalityFn - Optional equality function to check if value changed.
|
|
491
|
+
* @returns New undo/redo state after set, or null if value didn't change.
|
|
492
|
+
* @internal
|
|
493
|
+
*/
|
|
494
|
+
export declare function performSet<T>(state: IUndoState<T>, newValue: T, maxBufferLength: number, equalityFn?: (a: T | undefined, b: T) => boolean): IUndoState<T> | null;
|
|
495
|
+
/**
|
|
496
|
+
* Custom hook to manage undo/redo state using a ref (does not trigger re-renders by default).
|
|
497
|
+
* @remarks
|
|
498
|
+
* This hook uses useRef and does not automatically trigger component re-renders.
|
|
499
|
+
* Use the subscribe method if you need to trigger re-renders on state changes, or use useUndo instead.
|
|
500
|
+
* @typeParam T - The type of the undo/redo data.
|
|
501
|
+
* @param initialState - The initial undo state.
|
|
502
|
+
* @returns An undo object for managing state history.
|
|
503
|
+
*/
|
|
504
|
+
export declare function useUndoRef<T>(initialState?: IUndoState<T>): IUndoObject<T>;
|
|
505
|
+
/**
|
|
506
|
+
* Custom hook to manage undo/redo state with automatic re-renders.
|
|
507
|
+
* @remarks
|
|
508
|
+
* This hook triggers component re-renders whenever the state changes.
|
|
509
|
+
* If you don't need re-renders, use useUndoRef instead for better performance.
|
|
510
|
+
* @typeParam T - The type of the state being managed.
|
|
511
|
+
* @param initialState - The initial undo state.
|
|
512
|
+
* @returns An undo object for managing state history with automatic re-renders.
|
|
152
513
|
*/
|
|
153
|
-
export declare
|
|
514
|
+
export declare function useUndo<T>(initialState?: IUndoState<T>): IUndoObject<T>;
|
package/dist/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");require("uuid");const e=require("./index.js");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");require("uuid");const e=require("./index.js");require("./models.js");require("./ipc.js");require("./status_params.js");exports.SignalDataInitState=e.SignalDataInitState;exports.calculateMaxActiveProjectDataIntervals=e.calculateMaxActiveProjectDataIntervals;exports.calculateMaxActiveSessionDataIntervals=e.calculateMaxActiveSessionDataIntervals;exports.calculateOverallStatusLevel=e.calculateOverallStatusLevel;exports.calculateOverallStatusLevelFromBusStatus=e.calculateOverallStatusLevelFromBusStatus;exports.limitBuffer=e.limitBuffer;exports.mergeAndDeduplicateFrames=e.mergeAndDeduplicateFrames;exports.mergeData=e.mergeData;exports.mergeFrameDataMaps=e.mergeFrameDataMaps;exports.performRedo=e.performRedo;exports.performSet=e.performSet;exports.performUndo=e.performUndo;exports.useAvailableProtocols=e.useAvailableProtocols;exports.useDevices=e.useDevices;exports.useFixedPositionModeMeasurementData=e.useFixedPositionModeMeasurementData;exports.useIsOnline=e.useIsOnline;exports.useLanguage=e.useLanguage;exports.useLocalizedStrings=e.useLocalizedStrings;exports.useLogMessages=e.useLogMessages;exports.useMaxDataBytes=e.useMaxDataBytes;exports.useMeasurementSetup=e.useMeasurementSetup;exports.useMeasurementStatus=e.useMeasurementStatus;exports.useMessageData=e.useMessageData;exports.useMessageLogFileFormats=e.useMessageLogFileFormats;exports.useNewMeasurementData=e.useNewMeasurementData;exports.useNodeStatus=e.useNodeStatus;exports.useNumericRadix=e.useNumericRadix;exports.useOnlineStatus=e.useOnlineStatus;exports.useOnlineStatusSync=e.useOnlineStatusSync;exports.useOverallStatusLevel=e.useOverallStatusLevel;exports.useProjectData=e.useProjectData;exports.useProjectDataSlice=e.useProjectDataSlice;exports.useRecentProjectFiles=e.useRecentProjectFiles;exports.useRunningPeriodicTransmissions=e.useRunningPeriodicTransmissions;exports.useScrollModeMeasurementData=e.useScrollModeMeasurementData;exports.useSessionData=e.useSessionData;exports.useSessionDataSlice=e.useSessionDataSlice;exports.useSignalData=e.useSignalData;exports.useSignalDataEnvelopes=e.useSignalDataEnvelopes;exports.useSignalLogFileFormats=e.useSignalLogFileFormats;exports.useUndo=e.useUndo;exports.useUndoRef=e.useUndoRef;exports.useUndoSessionDataSlice=e.useUndoSessionDataSlice;exports.useUserSettings=e.useUserSettings;exports.useWorkspacePaneWithId=e.useWorkspacePaneWithId;
|
package/dist/hooks.mjs
CHANGED
|
@@ -1,35 +1,53 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "uuid";
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import "./ElectronAPIFake.mjs";
|
|
6
|
-
import "./measurement_settings.mjs";
|
|
7
|
-
import "./status_params.mjs";
|
|
3
|
+
import { S as r, N as l, T as n, v as c, t as S, $ as m, F as D, K as g, G as d, a1 as p, a2 as v, a0 as M, q as F, p as P, E as L, y as f, a as x, u as I, m as O, k as j, d as A, e as R, H as U, n as B, A as N, s as y, c as k, x as w, _ as z, w as E, Q as T, P as W, l as b, z as h, B as q, V as G, X as H, I as J, J as K, o as Q, a4 as V, a3 as X, Y, j as Z, Z as _ } from "./index.mjs";
|
|
4
|
+
import "./models.mjs";
|
|
8
5
|
import "./ipc.mjs";
|
|
6
|
+
import "./status_params.mjs";
|
|
9
7
|
export {
|
|
10
|
-
|
|
11
|
-
l as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
B as
|
|
34
|
-
|
|
8
|
+
r as SignalDataInitState,
|
|
9
|
+
l as calculateMaxActiveProjectDataIntervals,
|
|
10
|
+
n as calculateMaxActiveSessionDataIntervals,
|
|
11
|
+
c as calculateOverallStatusLevel,
|
|
12
|
+
S as calculateOverallStatusLevelFromBusStatus,
|
|
13
|
+
m as limitBuffer,
|
|
14
|
+
D as mergeAndDeduplicateFrames,
|
|
15
|
+
g as mergeData,
|
|
16
|
+
d as mergeFrameDataMaps,
|
|
17
|
+
p as performRedo,
|
|
18
|
+
v as performSet,
|
|
19
|
+
M as performUndo,
|
|
20
|
+
F as useAvailableProtocols,
|
|
21
|
+
P as useDevices,
|
|
22
|
+
L as useFixedPositionModeMeasurementData,
|
|
23
|
+
f as useIsOnline,
|
|
24
|
+
x as useLanguage,
|
|
25
|
+
I as useLocalizedStrings,
|
|
26
|
+
O as useLogMessages,
|
|
27
|
+
j as useMaxDataBytes,
|
|
28
|
+
A as useMeasurementSetup,
|
|
29
|
+
R as useMeasurementStatus,
|
|
30
|
+
U as useMessageData,
|
|
31
|
+
B as useMessageLogFileFormats,
|
|
32
|
+
N as useNewMeasurementData,
|
|
33
|
+
y as useNodeStatus,
|
|
34
|
+
k as useNumericRadix,
|
|
35
|
+
w as useOnlineStatus,
|
|
36
|
+
z as useOnlineStatusSync,
|
|
37
|
+
E as useOverallStatusLevel,
|
|
38
|
+
T as useProjectData,
|
|
39
|
+
W as useProjectDataSlice,
|
|
40
|
+
b as useRecentProjectFiles,
|
|
41
|
+
h as useRunningPeriodicTransmissions,
|
|
42
|
+
q as useScrollModeMeasurementData,
|
|
43
|
+
G as useSessionData,
|
|
44
|
+
H as useSessionDataSlice,
|
|
45
|
+
J as useSignalData,
|
|
46
|
+
K as useSignalDataEnvelopes,
|
|
47
|
+
Q as useSignalLogFileFormats,
|
|
48
|
+
V as useUndo,
|
|
49
|
+
X as useUndoRef,
|
|
50
|
+
Y as useUndoSessionDataSlice,
|
|
51
|
+
Z as useUserSettings,
|
|
52
|
+
_ as useWorkspacePaneWithId
|
|
35
53
|
};
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -127,4 +127,40 @@ export declare const ColumnSettingsIcon: import("@mui/material/OverridableCompon
|
|
|
127
127
|
export declare const SearchIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
128
128
|
muiName: string;
|
|
129
129
|
};
|
|
130
|
+
export declare const UndoIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
131
|
+
muiName: string;
|
|
132
|
+
};
|
|
133
|
+
export declare const RedoIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
134
|
+
muiName: string;
|
|
135
|
+
};
|
|
136
|
+
export declare const Cursor1Icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
137
|
+
muiName: string;
|
|
138
|
+
};
|
|
139
|
+
export declare const Cursor2Icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
140
|
+
muiName: string;
|
|
141
|
+
};
|
|
142
|
+
export declare const VisibleIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
143
|
+
muiName: string;
|
|
144
|
+
};
|
|
145
|
+
export declare const InvisibleIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
146
|
+
muiName: string;
|
|
147
|
+
};
|
|
148
|
+
export declare const BoldTextIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
149
|
+
muiName: string;
|
|
150
|
+
};
|
|
151
|
+
export declare const LineThicknessIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
152
|
+
muiName: string;
|
|
153
|
+
};
|
|
154
|
+
export declare const PlotMarkersIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
155
|
+
muiName: string;
|
|
156
|
+
};
|
|
157
|
+
export declare const ExpandAllIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
158
|
+
muiName: string;
|
|
159
|
+
};
|
|
160
|
+
export declare const LeftAxisIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
161
|
+
muiName: string;
|
|
162
|
+
};
|
|
163
|
+
export declare const RightAxisIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
164
|
+
muiName: string;
|
|
165
|
+
};
|
|
130
166
|
export { CloseIcon as ClearIcon };
|