@kvaser/canking-api 7.4.0 → 7.4.1
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/hooks/index.d.ts +0 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +159 -152
- package/doc/enums/models.AccessMode.html +2 -2
- package/doc/enums/models.CanChannelCap.html +2 -2
- package/doc/enums/models.CanConfigMode.html +2 -2
- package/doc/enums/models.CanFrameFlag.html +2 -2
- package/doc/enums/models.CanMessageFilterType.html +2 -2
- package/doc/enums/models.CanMode.html +2 -2
- package/doc/enums/models.DecimalChar.html +2 -2
- package/doc/enums/models.FileConflictAction.html +2 -2
- package/doc/enums/models.LinFrameFlag.html +2 -2
- package/doc/enums/models.LogFileFormat.html +2 -2
- package/doc/enums/models.LogLevel.html +2 -2
- package/doc/enums/models.LogReplayState.html +2 -2
- package/doc/enums/models.LoggerState.html +2 -2
- package/doc/enums/models.Separator.html +2 -2
- package/doc/enums/models.SignalEncoding.html +2 -2
- package/doc/enums/models.SignalType.html +2 -2
- package/doc/enums/models.SignalValueTriggerOperator.html +2 -2
- package/doc/enums/models.StatusLevel.html +2 -2
- package/doc/enums/models.TimeReference.html +2 -2
- package/doc/enums/models.TriggerOperator.html +2 -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 +2 -2
- 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 -2
- 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 +2 -2
- package/doc/functions/hooks.useDevices.html +2 -2
- package/doc/functions/hooks.useFixedPositionModeMeasurementData.html +2 -2
- 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 +2 -2
- package/doc/functions/hooks.useMessageLogFileFormats.html +2 -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 +2 -2
- package/doc/functions/hooks.useOverallStatusLevel.html +2 -2
- package/doc/functions/hooks.useProjectData.html +2 -2
- package/doc/functions/hooks.useProjectDataSlice.html +2 -2
- package/doc/functions/hooks.useRecentProjectFiles.html +2 -2
- package/doc/functions/hooks.useRunningPeriodicTransmissions.html +2 -2
- package/doc/functions/hooks.useScrollModeMeasurementData.html +2 -2
- package/doc/functions/hooks.useSessionData.html +2 -2
- package/doc/functions/hooks.useSessionDataSlice.html +2 -2
- package/doc/functions/hooks.useSignalData.html +2 -2
- package/doc/functions/hooks.useSignalDataEnvelopes.html +2 -2
- package/doc/functions/hooks.useSignalLogFileFormats.html +2 -2
- package/doc/functions/hooks.useUndo.html +2 -2
- package/doc/functions/hooks.useUndoRef.html +2 -2
- package/doc/functions/hooks.useUndoSessionDataSlice.html +2 -2
- 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 +2 -2
- package/doc/functions/ipc.getFirstTimestamp.html +2 -2
- package/doc/functions/ipc.getFrameDefinitions.html +2 -2
- package/doc/functions/ipc.getLatestTimestamp.html +2 -2
- package/doc/functions/ipc.getLogger.html +2 -2
- package/doc/functions/ipc.getMessageDataBeforeTimestamp.html +2 -2
- package/doc/functions/ipc.getMessageLogFileFormats.html +2 -2
- package/doc/functions/ipc.getSignalLogFileFormats.html +2 -2
- 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 +2 -2
- package/doc/functions/models.decimalToHex.html +2 -2
- package/doc/functions/models.deep_equal.html +2 -2
- package/doc/functions/models.deserializeFrame.html +2 -2
- package/doc/functions/models.jsonReplacer.html +2 -2
- package/doc/functions/models.jsonReviver.html +2 -2
- package/doc/functions/models.longToNumber.html +2 -2
- package/doc/functions/models.serializeFrame.html +2 -2
- 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 +2 -2
- package/doc/interfaces/controls.CanIdentifierFrameControlProps.html +2 -2
- package/doc/interfaces/controls.CanIdentifierGeneratorControlProps.html +2 -2
- package/doc/interfaces/controls.CanIdentifierGeneratorSettingsControlProps.html +2 -2
- package/doc/interfaces/controls.CheckboxControlProps.html +2 -2
- package/doc/interfaces/controls.ContextMenuProps.html +2 -2
- package/doc/interfaces/controls.DropdownButtonChildrenProps.html +2 -2
- package/doc/interfaces/controls.DropdownButtonProps.html +2 -2
- package/doc/interfaces/controls.DropdownButtonTextItemsProps.html +2 -2
- package/doc/interfaces/controls.DropdownPanelProps.html +2 -2
- package/doc/interfaces/controls.FormControlRowProps.html +2 -2
- package/doc/interfaces/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 +2 -2
- package/doc/interfaces/controls.LinIdentifierFrameControlProps.html +2 -2
- package/doc/interfaces/controls.LinIdentifierGeneratorControlProps.html +2 -2
- package/doc/interfaces/controls.LinIdentifierGeneratorSettingsControlProps.html +2 -2
- 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 +2 -2
- package/doc/interfaces/controls.SelectSignalDialogProps.html +2 -2
- package/doc/interfaces/controls.SelectSignalsControlProps.html +2 -2
- package/doc/interfaces/controls.SelectedSignalInfo.html +2 -2
- package/doc/interfaces/controls.SelectedSignalInfoChangeArgs.html +2 -2
- 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 +2 -2
- package/doc/interfaces/hooks.IEnvelopeView.html +2 -2
- package/doc/interfaces/hooks.ISignalData.html +2 -2
- package/doc/interfaces/hooks.ISignalDataEnvelope.html +2 -2
- package/doc/interfaces/hooks.IUndoObject.html +2 -2
- package/doc/interfaces/hooks.IUndoState.html +2 -2
- package/doc/interfaces/ipc.ILogger.html +2 -2
- package/doc/interfaces/models.BaseNodeProperties.html +2 -2
- package/doc/interfaces/models.BusStatus.html +2 -2
- package/doc/interfaces/models.CanBusParamLimits.html +2 -2
- package/doc/interfaces/models.CanBusParams.html +2 -2
- package/doc/interfaces/models.CanChannelCapacity.html +2 -2
- package/doc/interfaces/models.CanChannelConfiguration.html +2 -2
- package/doc/interfaces/models.CanFrameFlags.html +2 -2
- package/doc/interfaces/models.CanMessageFilterSettings.html +2 -2
- package/doc/interfaces/models.Channel.html +2 -2
- package/doc/interfaces/models.ChannelSettings.html +2 -2
- package/doc/interfaces/models.DataProcessingStatus.html +2 -2
- package/doc/interfaces/models.DataProcessorNodeProperties.html +2 -2
- package/doc/interfaces/models.DatabasesSettings.html +2 -2
- package/doc/interfaces/models.Device.html +2 -2
- package/doc/interfaces/models.Devices.html +2 -2
- package/doc/interfaces/models.Empty.html +2 -2
- package/doc/interfaces/models.ErrorStatus.html +2 -2
- package/doc/interfaces/models.FixedPosFrameIdentifier.html +2 -2
- package/doc/interfaces/models.Frame.html +2 -2
- package/doc/interfaces/models.FrameDefinition.html +2 -2
- package/doc/interfaces/models.FrameDefinitions.html +2 -2
- package/doc/interfaces/models.FramePropertyValue.html +2 -2
- package/doc/interfaces/models.FrameReceivedTrigger.html +2 -2
- package/doc/interfaces/models.Frames.html +2 -2
- 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 +2 -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 +2 -2
- package/doc/interfaces/models.LoggerStatus.html +2 -2
- package/doc/interfaces/models.MeasurementSetup.html +2 -2
- package/doc/interfaces/models.MessageLoggerSettings.html +2 -2
- package/doc/interfaces/models.NodeStatus.html +2 -2
- package/doc/interfaces/models.NodeStatuses.html +2 -2
- package/doc/interfaces/models.OnlineStatus.html +2 -2
- package/doc/interfaces/models.PeriodicTransmissionSettings.html +2 -2
- package/doc/interfaces/models.ServiceExtensionSettings.html +2 -2
- package/doc/interfaces/models.SignalDefinition.html +2 -2
- package/doc/interfaces/models.SignalDefinitions.html +2 -2
- package/doc/interfaces/models.SignalFilterSettings.html +2 -2
- package/doc/interfaces/models.SignalLoggerSettings.html +2 -2
- package/doc/interfaces/models.SignalValue.html +2 -2
- package/doc/interfaces/models.SignalValueTrigger.html +2 -2
- package/doc/interfaces/models.SourceNodeProperties.html +2 -2
- package/doc/interfaces/models.TargetNodeProperties.html +2 -2
- package/doc/interfaces/models.TdcConfiguration.html +2 -2
- 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 +2 -2
- package/doc/types/hooks.OnGoingOnlineCallback.html +2 -2
- package/doc/types/models.SerializableFrame.html +2 -2
- 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 +1 -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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/doc_md/controls/interfaces/CanIdentifierFrameControlProps.md +1 -1
- package/doc_md/controls/interfaces/CanIdentifierGeneratorControlProps.md +1 -1
- package/doc_md/controls/interfaces/CanIdentifierGeneratorSettingsControlProps.md +1 -1
- package/doc_md/controls/interfaces/CheckboxControlProps.md +1 -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 +1 -1
- 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 +1 -1
- package/doc_md/controls/interfaces/LinIdentifierFrameControlProps.md +1 -1
- package/doc_md/controls/interfaces/LinIdentifierGeneratorControlProps.md +1 -1
- package/doc_md/controls/interfaces/LinIdentifierGeneratorSettingsControlProps.md +1 -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 +1 -1
- package/doc_md/controls/interfaces/SelectSignalDialogProps.md +1 -1
- package/doc_md/controls/interfaces/SelectSignalsControlProps.md +1 -1
- package/doc_md/controls/interfaces/SelectedSignalInfo.md +1 -1
- package/doc_md/controls/interfaces/SelectedSignalInfoChangeArgs.md +1 -1
- 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 +1 -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 +1 -1
- package/doc_md/controls/variables/SizedBox.md +1 -1
- package/doc_md/controls/variables/TabsPanel.md +1 -1
- package/doc_md/hooks/README.md +1 -1
- package/doc_md/hooks/functions/useAvailableProtocols.md +1 -1
- package/doc_md/hooks/functions/useDevices.md +1 -1
- package/doc_md/hooks/functions/useFixedPositionModeMeasurementData.md +1 -1
- 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 +1 -1
- package/doc_md/hooks/functions/useMessageLogFileFormats.md +1 -1
- 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 +1 -1
- package/doc_md/hooks/functions/useOverallStatusLevel.md +1 -1
- package/doc_md/hooks/functions/useProjectData.md +1 -1
- package/doc_md/hooks/functions/useProjectDataSlice.md +1 -1
- 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 +1 -1
- package/doc_md/hooks/functions/useSessionData.md +1 -1
- package/doc_md/hooks/functions/useSessionDataSlice.md +1 -1
- package/doc_md/hooks/functions/useSignalData.md +1 -1
- package/doc_md/hooks/functions/useSignalDataEnvelopes.md +1 -1
- package/doc_md/hooks/functions/useSignalLogFileFormats.md +1 -1
- package/doc_md/hooks/functions/useUndo.md +1 -1
- package/doc_md/hooks/functions/useUndoRef.md +1 -1
- package/doc_md/hooks/functions/useUndoSessionDataSlice.md +1 -1
- 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 +1 -1
- package/doc_md/hooks/interfaces/ISignalData.md +1 -1
- package/doc_md/hooks/interfaces/ISignalDataEnvelope.md +1 -1
- package/doc_md/hooks/interfaces/IUndoObject.md +1 -1
- package/doc_md/hooks/interfaces/IUndoState.md +1 -1
- package/doc_md/hooks/type-aliases/OnGoingOfflineCallback.md +1 -1
- package/doc_md/hooks/type-aliases/OnGoingOnlineCallback.md +1 -1
- package/doc_md/ipc/README.md +1 -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 +1 -1
- package/doc_md/ipc/functions/getFirstTimestamp.md +1 -1
- package/doc_md/ipc/functions/getFrameDefinitions.md +1 -1
- package/doc_md/ipc/functions/getLatestTimestamp.md +1 -1
- package/doc_md/ipc/functions/getLogger.md +1 -1
- package/doc_md/ipc/functions/getMessageDataBeforeTimestamp.md +1 -1
- package/doc_md/ipc/functions/getMessageLogFileFormats.md +1 -1
- package/doc_md/ipc/functions/getSignalLogFileFormats.md +1 -1
- 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 +1 -1
- package/doc_md/models/enumerations/AccessMode.md +1 -1
- package/doc_md/models/enumerations/CanChannelCap.md +1 -1
- package/doc_md/models/enumerations/CanConfigMode.md +1 -1
- package/doc_md/models/enumerations/CanFrameFlag.md +1 -1
- package/doc_md/models/enumerations/CanMessageFilterType.md +1 -1
- package/doc_md/models/enumerations/CanMode.md +1 -1
- package/doc_md/models/enumerations/DecimalChar.md +1 -1
- package/doc_md/models/enumerations/FileConflictAction.md +1 -1
- package/doc_md/models/enumerations/LinFrameFlag.md +1 -1
- package/doc_md/models/enumerations/LogFileFormat.md +1 -1
- package/doc_md/models/enumerations/LogLevel.md +1 -1
- package/doc_md/models/enumerations/LogReplayState.md +1 -1
- package/doc_md/models/enumerations/LoggerState.md +1 -1
- package/doc_md/models/enumerations/Separator.md +1 -1
- package/doc_md/models/enumerations/SignalEncoding.md +1 -1
- package/doc_md/models/enumerations/SignalType.md +1 -1
- package/doc_md/models/enumerations/SignalValueTriggerOperator.md +1 -1
- package/doc_md/models/enumerations/StatusLevel.md +1 -1
- package/doc_md/models/enumerations/TimeReference.md +1 -1
- package/doc_md/models/enumerations/TriggerOperator.md +1 -1
- package/doc_md/models/functions/decimalToFixed.md +1 -1
- package/doc_md/models/functions/decimalToHex.md +1 -1
- package/doc_md/models/functions/deep_equal.md +1 -1
- package/doc_md/models/functions/deserializeFrame.md +1 -1
- package/doc_md/models/functions/jsonReplacer.md +1 -1
- package/doc_md/models/functions/jsonReviver.md +1 -1
- package/doc_md/models/functions/longToNumber.md +1 -1
- package/doc_md/models/functions/serializeFrame.md +1 -1
- package/doc_md/models/interfaces/BaseNodeProperties.md +1 -1
- package/doc_md/models/interfaces/BusStatus.md +1 -1
- package/doc_md/models/interfaces/CanBusParamLimits.md +1 -1
- package/doc_md/models/interfaces/CanBusParams.md +1 -1
- package/doc_md/models/interfaces/CanChannelCapacity.md +1 -1
- package/doc_md/models/interfaces/CanChannelConfiguration.md +1 -1
- package/doc_md/models/interfaces/CanFrameFlags.md +1 -1
- package/doc_md/models/interfaces/CanMessageFilterSettings.md +1 -1
- package/doc_md/models/interfaces/Channel.md +1 -1
- package/doc_md/models/interfaces/ChannelSettings.md +1 -1
- package/doc_md/models/interfaces/DataProcessingStatus.md +1 -1
- package/doc_md/models/interfaces/DataProcessorNodeProperties.md +1 -1
- package/doc_md/models/interfaces/DatabasesSettings.md +1 -1
- package/doc_md/models/interfaces/Device.md +1 -1
- package/doc_md/models/interfaces/Devices.md +1 -1
- 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 +1 -1
- package/doc_md/models/interfaces/Frame.md +1 -1
- package/doc_md/models/interfaces/FrameDefinition.md +1 -1
- package/doc_md/models/interfaces/FrameDefinitions.md +1 -1
- package/doc_md/models/interfaces/FramePropertyValue.md +1 -1
- package/doc_md/models/interfaces/FrameReceivedTrigger.md +1 -1
- package/doc_md/models/interfaces/Frames.md +1 -1
- 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 +1 -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 +1 -1
- package/doc_md/models/interfaces/LoggerStatus.md +1 -1
- package/doc_md/models/interfaces/MeasurementSetup.md +1 -1
- package/doc_md/models/interfaces/MessageLoggerSettings.md +1 -1
- package/doc_md/models/interfaces/NodeStatus.md +1 -1
- package/doc_md/models/interfaces/NodeStatuses.md +1 -1
- package/doc_md/models/interfaces/OnlineStatus.md +1 -1
- package/doc_md/models/interfaces/PeriodicTransmissionSettings.md +1 -1
- package/doc_md/models/interfaces/ServiceExtensionSettings.md +1 -1
- package/doc_md/models/interfaces/SignalDefinition.md +1 -1
- package/doc_md/models/interfaces/SignalDefinitions.md +1 -1
- package/doc_md/models/interfaces/SignalFilterSettings.md +1 -1
- package/doc_md/models/interfaces/SignalLoggerSettings.md +1 -1
- package/doc_md/models/interfaces/SignalValue.md +1 -1
- package/doc_md/models/interfaces/SignalValueTrigger.md +1 -1
- package/doc_md/models/interfaces/SourceNodeProperties.md +1 -1
- package/doc_md/models/interfaces/TargetNodeProperties.md +1 -1
- package/doc_md/models/interfaces/TdcConfiguration.md +1 -1
- 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 +1 -1
- package/doc_md/models/variables/defaultUserSettings.md +1 -1
- package/doc_md/modules.md +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -33,12 +33,12 @@ class ot {
|
|
|
33
33
|
return n;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const P = Ae("DataProviders"), A = window.electron ?? Te, te = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ new Map(), se = /* @__PURE__ */ new Map(), ae = /* @__PURE__ */ new Map(), oe = /* @__PURE__ */ new Map(), ce = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), ue = /* @__PURE__ */ new Map(), le = /* @__PURE__ */ new Map();
|
|
37
37
|
async function _(e, n, t, r) {
|
|
38
38
|
switch (n) {
|
|
39
39
|
case "devices-changed": {
|
|
40
40
|
if (te.has(e))
|
|
41
|
-
|
|
41
|
+
P.warn("The callback has already been added as listener to this event!");
|
|
42
42
|
else {
|
|
43
43
|
const s = t, o = (c, i) => s(i), a = A.ipcRenderer.on("dm-devices-changed", o);
|
|
44
44
|
te.set(e, { remover: a, listener: o });
|
|
@@ -47,7 +47,7 @@ async function _(e, n, t, r) {
|
|
|
47
47
|
}
|
|
48
48
|
case "user-settings-changed": {
|
|
49
49
|
if (re.has(e))
|
|
50
|
-
|
|
50
|
+
P.warn("The callback has already been added as listener to this event!");
|
|
51
51
|
else {
|
|
52
52
|
const s = t, o = (c, i) => s(i), a = A.ipcRenderer.on("user-settings-changed", o);
|
|
53
53
|
re.set(e, { remover: a, listener: o });
|
|
@@ -56,7 +56,7 @@ async function _(e, n, t, r) {
|
|
|
56
56
|
}
|
|
57
57
|
case "new-log-messages": {
|
|
58
58
|
if (ne.has(e))
|
|
59
|
-
|
|
59
|
+
P.warn("The callback has already been added as listener to this event!");
|
|
60
60
|
else {
|
|
61
61
|
const s = t, o = (c, i) => s(i), a = A.ipcRenderer.on("new-log-messages", o);
|
|
62
62
|
ne.set(e, { remover: a, listener: o });
|
|
@@ -65,7 +65,7 @@ async function _(e, n, t, r) {
|
|
|
65
65
|
}
|
|
66
66
|
case "online-status-changed": {
|
|
67
67
|
if (se.has(e))
|
|
68
|
-
|
|
68
|
+
P.warn("The callback has already been added as listener to this event!");
|
|
69
69
|
else {
|
|
70
70
|
const s = t, o = (c, i) => s(i), a = A.ipcRenderer.on("mm-is-online-changed", o);
|
|
71
71
|
se.set(e, { remover: a, listener: o });
|
|
@@ -74,7 +74,7 @@ async function _(e, n, t, r) {
|
|
|
74
74
|
}
|
|
75
75
|
case "periodic-trans-started": {
|
|
76
76
|
if (ae.has(e))
|
|
77
|
-
|
|
77
|
+
P.warn("The callback has already been added as listener to this event!");
|
|
78
78
|
else {
|
|
79
79
|
const s = t, o = (c, i) => s(i), a = A.ipcRenderer.on("mm-periodic-trans-started", o);
|
|
80
80
|
ae.set(e, { remover: a, listener: o });
|
|
@@ -83,7 +83,7 @@ async function _(e, n, t, r) {
|
|
|
83
83
|
}
|
|
84
84
|
case "periodic-trans-stopped": {
|
|
85
85
|
if (oe.has(e))
|
|
86
|
-
|
|
86
|
+
P.warn("The callback has already been added as listener to this event!");
|
|
87
87
|
else {
|
|
88
88
|
const s = t, o = (c, i) => s(i), a = A.ipcRenderer.on("mm-periodic-trans-stopped", o);
|
|
89
89
|
oe.set(e, { remover: a, listener: o });
|
|
@@ -92,7 +92,7 @@ async function _(e, n, t, r) {
|
|
|
92
92
|
}
|
|
93
93
|
case "new-measurement-data": {
|
|
94
94
|
if (ce.has(e))
|
|
95
|
-
|
|
95
|
+
P.warn("The callback has already been added as listener to this event!");
|
|
96
96
|
else {
|
|
97
97
|
const s = t, o = (c, i) => s(i), a = A.ipcRenderer.on("mm-new-measurement-data", o);
|
|
98
98
|
ce.set(e, { remover: a, listener: o });
|
|
@@ -105,7 +105,7 @@ async function _(e, n, t, r) {
|
|
|
105
105
|
}
|
|
106
106
|
case "new-measurement-status": {
|
|
107
107
|
if (ie.has(e))
|
|
108
|
-
|
|
108
|
+
P.warn("The callback has already been added as listener to this event!");
|
|
109
109
|
else {
|
|
110
110
|
const s = t, o = (c, i) => s(i), a = A.ipcRenderer.on("mm-new-measurement-status", o);
|
|
111
111
|
ie.set(e, { remover: a, listener: o });
|
|
@@ -114,7 +114,7 @@ async function _(e, n, t, r) {
|
|
|
114
114
|
}
|
|
115
115
|
case "meas-setup-changed": {
|
|
116
116
|
if (ue.has(e))
|
|
117
|
-
|
|
117
|
+
P.warn("The callback has already been added as listener to this event!");
|
|
118
118
|
else {
|
|
119
119
|
const s = t, o = (c, i) => s(i), a = A.ipcRenderer.on("project-meas-setup-changed", o);
|
|
120
120
|
ue.set(e, { remover: a, listener: o });
|
|
@@ -123,7 +123,7 @@ async function _(e, n, t, r) {
|
|
|
123
123
|
}
|
|
124
124
|
case "workspace-panes-changed": {
|
|
125
125
|
if (le.has(e))
|
|
126
|
-
|
|
126
|
+
P.warn("The callback has already been added as listener to this event!");
|
|
127
127
|
else {
|
|
128
128
|
const s = t, o = (c, i) => s(i), a = A.ipcRenderer.on("project-workspace-panes-changed", o);
|
|
129
129
|
le.set(e, { remover: a, listener: o });
|
|
@@ -138,61 +138,61 @@ const O = async (e, n) => {
|
|
|
138
138
|
case "devices-changed":
|
|
139
139
|
{
|
|
140
140
|
const t = te.get(e);
|
|
141
|
-
t ? (t.remover(), te.delete(e)) :
|
|
141
|
+
t ? (t.remover(), te.delete(e)) : P.warn("The callback has not been added as listener to this event!");
|
|
142
142
|
}
|
|
143
143
|
break;
|
|
144
144
|
case "user-settings-changed":
|
|
145
145
|
{
|
|
146
146
|
const t = re.get(e);
|
|
147
|
-
t ? (t.remover(), re.delete(e)) :
|
|
147
|
+
t ? (t.remover(), re.delete(e)) : P.warn("The callback has not been added as listener to this event!");
|
|
148
148
|
}
|
|
149
149
|
break;
|
|
150
150
|
case "new-log-messages":
|
|
151
151
|
{
|
|
152
152
|
const t = ne.get(e);
|
|
153
|
-
t ? (t.remover(), ne.delete(e)) :
|
|
153
|
+
t ? (t.remover(), ne.delete(e)) : P.warn("The callback has not been added as listener to this event!");
|
|
154
154
|
}
|
|
155
155
|
break;
|
|
156
156
|
case "online-status-changed":
|
|
157
157
|
{
|
|
158
158
|
const t = se.get(e);
|
|
159
|
-
t ? (t.remover(), se.delete(e)) :
|
|
159
|
+
t ? (t.remover(), se.delete(e)) : P.warn("The callback has not been added as listener to this event!");
|
|
160
160
|
}
|
|
161
161
|
break;
|
|
162
162
|
case "periodic-trans-started":
|
|
163
163
|
{
|
|
164
164
|
const t = ae.get(e);
|
|
165
|
-
t ? (t.remover(), ae.delete(e)) :
|
|
165
|
+
t ? (t.remover(), ae.delete(e)) : P.warn("The callback has not been added as listener to this event!");
|
|
166
166
|
}
|
|
167
167
|
break;
|
|
168
168
|
case "periodic-trans-stopped":
|
|
169
169
|
{
|
|
170
170
|
const t = oe.get(e);
|
|
171
|
-
t ? (t.remover(), oe.delete(e)) :
|
|
171
|
+
t ? (t.remover(), oe.delete(e)) : P.warn("The callback has not been added as listener to this event!");
|
|
172
172
|
}
|
|
173
173
|
break;
|
|
174
174
|
case "new-measurement-data":
|
|
175
175
|
{
|
|
176
176
|
const t = ce.get(e);
|
|
177
|
-
t ? (t.remover(), ce.delete(e)) :
|
|
177
|
+
t ? (t.remover(), ce.delete(e)) : P.warn("The callback has not been added as listener to this event!");
|
|
178
178
|
}
|
|
179
179
|
break;
|
|
180
180
|
case "new-measurement-status":
|
|
181
181
|
{
|
|
182
182
|
const t = ie.get(e);
|
|
183
|
-
t ? (t.remover(), ie.delete(e)) :
|
|
183
|
+
t ? (t.remover(), ie.delete(e)) : P.warn("The callback has not been added as listener to this event!");
|
|
184
184
|
}
|
|
185
185
|
break;
|
|
186
186
|
case "meas-setup-changed":
|
|
187
187
|
{
|
|
188
188
|
const t = ue.get(e);
|
|
189
|
-
t ? (t.remover(), ue.delete(e)) :
|
|
189
|
+
t ? (t.remover(), ue.delete(e)) : P.warn("The callback has not been added as listener to this event!");
|
|
190
190
|
}
|
|
191
191
|
break;
|
|
192
192
|
case "workspace-panes-changed":
|
|
193
193
|
{
|
|
194
194
|
const t = le.get(e);
|
|
195
|
-
t ? (t.remover(), le.delete(e)) :
|
|
195
|
+
t ? (t.remover(), le.delete(e)) : P.warn("The callback has not been added as listener to this event!");
|
|
196
196
|
}
|
|
197
197
|
break;
|
|
198
198
|
}
|
|
@@ -317,7 +317,7 @@ const it = window != null && window.matchMedia ? window.matchMedia("(prefers-col
|
|
|
317
317
|
return _(o, "user-settings-changed", r).then((a) => {
|
|
318
318
|
s.signal.aborted || r(a);
|
|
319
319
|
}).catch((a) => {
|
|
320
|
-
|
|
320
|
+
P.error("Failed to add user settings listener:", a);
|
|
321
321
|
}), () => {
|
|
322
322
|
s.abort(), O(o, "user-settings-changed");
|
|
323
323
|
};
|
|
@@ -331,11 +331,11 @@ const it = window != null && window.matchMedia ? window.matchMedia("(prefers-col
|
|
|
331
331
|
return;
|
|
332
332
|
t(a);
|
|
333
333
|
} catch (c) {
|
|
334
|
-
|
|
334
|
+
P.error("DevicesProvider", c);
|
|
335
335
|
}
|
|
336
336
|
}, o = N();
|
|
337
337
|
return _(o, "devices-changed", s).then((a) => s(a)).catch((a) => {
|
|
338
|
-
|
|
338
|
+
P.error("Failed to add devices listener:", a);
|
|
339
339
|
}), () => {
|
|
340
340
|
r.abort(), O(o, "devices-changed");
|
|
341
341
|
};
|
|
@@ -349,11 +349,11 @@ const it = window != null && window.matchMedia ? window.matchMedia("(prefers-col
|
|
|
349
349
|
return;
|
|
350
350
|
t(a);
|
|
351
351
|
} catch (c) {
|
|
352
|
-
|
|
352
|
+
P.error("MeasurementStatusProvider", c);
|
|
353
353
|
}
|
|
354
354
|
}, o = N();
|
|
355
355
|
return _(o, "new-measurement-status", s).then((a) => s(a)).catch((a) => {
|
|
356
|
-
|
|
356
|
+
P.error("Failed to add measurement status listener:", a);
|
|
357
357
|
}), () => {
|
|
358
358
|
r.abort(), O(o, "new-measurement-status");
|
|
359
359
|
};
|
|
@@ -379,11 +379,11 @@ const it = window != null && window.matchMedia ? window.matchMedia("(prefers-col
|
|
|
379
379
|
subscribedData: c
|
|
380
380
|
}));
|
|
381
381
|
} catch (c) {
|
|
382
|
-
|
|
382
|
+
P.error("MeasurementDataProvider", c);
|
|
383
383
|
}
|
|
384
384
|
}, o = N();
|
|
385
385
|
return _(o, "new-measurement-data", s).then((a) => s(a)).catch((a) => {
|
|
386
|
-
|
|
386
|
+
P.error("Failed to add measurement data listener:", a);
|
|
387
387
|
}), () => {
|
|
388
388
|
r.abort(), O(o, "new-measurement-data");
|
|
389
389
|
};
|
|
@@ -409,11 +409,11 @@ const it = window != null && window.matchMedia ? window.matchMedia("(prefers-col
|
|
|
409
409
|
fixedPositionData: Array.from(t.current.values())
|
|
410
410
|
}));
|
|
411
411
|
} catch (g) {
|
|
412
|
-
|
|
412
|
+
P.error("MeasurementTraceDataProvider", g);
|
|
413
413
|
}
|
|
414
414
|
}, i = N();
|
|
415
415
|
return _(i, "new-measurement-data", c, { numberOfHistoryFrames: 500 }).then((u) => c(u)).catch((u) => {
|
|
416
|
-
|
|
416
|
+
P.error("Failed to add measurement data listener:", u);
|
|
417
417
|
}), () => {
|
|
418
418
|
a.abort(), O(i, "new-measurement-data");
|
|
419
419
|
};
|
|
@@ -444,11 +444,11 @@ const it = window != null && window.matchMedia ? window.matchMedia("(prefers-col
|
|
|
444
444
|
return;
|
|
445
445
|
t(a);
|
|
446
446
|
} catch (c) {
|
|
447
|
-
|
|
447
|
+
P.error("MeasurementSetupProvider", c);
|
|
448
448
|
}
|
|
449
449
|
}, o = N();
|
|
450
450
|
return _(o, "meas-setup-changed", s).then((a) => s(a)).catch((a) => {
|
|
451
|
-
|
|
451
|
+
P.error("Failed to add measurement setup listener:", a);
|
|
452
452
|
}), () => {
|
|
453
453
|
r.abort(), O(o, "meas-setup-changed");
|
|
454
454
|
};
|
|
@@ -468,11 +468,11 @@ const it = window != null && window.matchMedia ? window.matchMedia("(prefers-col
|
|
|
468
468
|
return;
|
|
469
469
|
t({ onlineStatus: a, isLoaded: !0 });
|
|
470
470
|
} catch (c) {
|
|
471
|
-
|
|
471
|
+
P.error("OnlineStatusProvider", c), t({ onlineStatus: { isOnline: !1, onlineCounter: 0 }, isLoaded: !0 });
|
|
472
472
|
}
|
|
473
473
|
}, o = N();
|
|
474
474
|
return _(o, "online-status-changed", s).then((a) => s(a)).catch((a) => {
|
|
475
|
-
|
|
475
|
+
P.error("Failed to add online status listener:", a), t({ onlineStatus: { isOnline: !1, onlineCounter: 0 }, isLoaded: !0 });
|
|
476
476
|
}), () => {
|
|
477
477
|
r.abort(), O(o, "online-status-changed");
|
|
478
478
|
};
|
|
@@ -487,7 +487,7 @@ const it = window != null && window.matchMedia ? window.matchMedia("(prefers-col
|
|
|
487
487
|
return;
|
|
488
488
|
t((u) => [...u, i]);
|
|
489
489
|
} catch (u) {
|
|
490
|
-
|
|
490
|
+
P.error("RunningPeriodicTransmissionsProvider - started", u);
|
|
491
491
|
}
|
|
492
492
|
}, o = (i) => {
|
|
493
493
|
try {
|
|
@@ -501,7 +501,7 @@ const it = window != null && window.matchMedia ? window.matchMedia("(prefers-col
|
|
|
501
501
|
return l.splice(g, 1), l;
|
|
502
502
|
});
|
|
503
503
|
} catch (u) {
|
|
504
|
-
|
|
504
|
+
P.error("RunningPeriodicTransmissionsProvider - stopped", u);
|
|
505
505
|
}
|
|
506
506
|
}, a = N();
|
|
507
507
|
_(a, "periodic-trans-started", s);
|
|
@@ -519,7 +519,7 @@ const it = window != null && window.matchMedia ? window.matchMedia("(prefers-col
|
|
|
519
519
|
return;
|
|
520
520
|
c === null ? n.current.clear() : n.current.push(...c), r(Array.from(n.current));
|
|
521
521
|
} catch (i) {
|
|
522
|
-
|
|
522
|
+
P.error("LogMessagesProvider", i);
|
|
523
523
|
}
|
|
524
524
|
}, a = N();
|
|
525
525
|
return _(a, "new-log-messages", o), () => {
|
|
@@ -546,11 +546,11 @@ const it = window != null && window.matchMedia ? window.matchMedia("(prefers-col
|
|
|
546
546
|
return;
|
|
547
547
|
t((i) => E(i, c) ? i : c);
|
|
548
548
|
} catch (i) {
|
|
549
|
-
|
|
549
|
+
P.error("WorkspacePanesProvider", i);
|
|
550
550
|
}
|
|
551
551
|
}, a = N();
|
|
552
552
|
return _(a, "workspace-panes-changed", o).then((c) => o(c)).catch((c) => {
|
|
553
|
-
|
|
553
|
+
P.error("Failed to add workspace panes listener:", c);
|
|
554
554
|
}), () => {
|
|
555
555
|
s.abort(), O(a, "workspace-panes-changed");
|
|
556
556
|
};
|
|
@@ -633,8 +633,8 @@ function Dt(e) {
|
|
|
633
633
|
const Jt = () => {
|
|
634
634
|
const e = qe();
|
|
635
635
|
return j(() => Dt(e), [e]);
|
|
636
|
-
},
|
|
637
|
-
const e =
|
|
636
|
+
}, Pt = () => R(W).onlineStatus, Qt = () => {
|
|
637
|
+
const e = Pt();
|
|
638
638
|
return j(() => (e == null ? void 0 : e.isOnline) === !0, [e == null ? void 0 : e.isOnline]);
|
|
639
639
|
}, Yt = () => R(Ke), Gt = (e, n) => {
|
|
640
640
|
const [t, r] = T([]), [s, o] = T([]);
|
|
@@ -691,13 +691,13 @@ const tr = (e, n, t) => {
|
|
|
691
691
|
const g = R(be);
|
|
692
692
|
b(() => {
|
|
693
693
|
const p = new AbortController();
|
|
694
|
-
return z.ipcRenderer.invoke("mm-get-measurement-data-before-timestamp", Number.MAX_SAFE_INTEGER, ze).then((
|
|
695
|
-
p.signal.aborted || (
|
|
694
|
+
return z.ipcRenderer.invoke("mm-get-measurement-data-before-timestamp", Number.MAX_SAFE_INTEGER, ze).then((f) => {
|
|
695
|
+
p.signal.aborted || (f.length > 0 && f.forEach((v) => {
|
|
696
696
|
const S = me(v), h = J(S), D = u.current.get(h);
|
|
697
697
|
D ? u.current.set(h, we(D, [S])) : u.current.set(h, [S]);
|
|
698
698
|
}), i.current = !0);
|
|
699
|
-
}).catch((
|
|
700
|
-
k.error("Failed to get historical data:",
|
|
699
|
+
}).catch((f) => {
|
|
700
|
+
k.error("Failed to get historical data:", f), i.current = !0;
|
|
701
701
|
}), () => {
|
|
702
702
|
p.abort(), i.current = !1;
|
|
703
703
|
};
|
|
@@ -708,21 +708,24 @@ const tr = (e, n, t) => {
|
|
|
708
708
|
}
|
|
709
709
|
const p = new Map(u.current);
|
|
710
710
|
u.current.clear(), de(p, g.subscribedData);
|
|
711
|
-
const
|
|
711
|
+
const f = [];
|
|
712
712
|
c.current.forEach((v, S) => {
|
|
713
|
-
const h = v.sourceId === void 0 || v.sourceId === "", D = v.tx === void 0, m = v.mux === void 0,
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
713
|
+
const h = v.sourceId === void 0 || v.sourceId === "", D = v.tx === void 0, m = v.mux === void 0, d = [];
|
|
714
|
+
for (const w of p.values()) {
|
|
715
|
+
const M = w[0];
|
|
716
|
+
if (!M)
|
|
717
|
+
continue;
|
|
718
|
+
J(M, h, D, m, !0) === S && d.push(...w);
|
|
719
|
+
}
|
|
720
|
+
f.push(...d);
|
|
721
|
+
}), f.sort((v, S) => v.time - S.time), s(f);
|
|
719
722
|
}, [o, g]);
|
|
720
723
|
const l = R(W);
|
|
721
724
|
return b(() => {
|
|
722
725
|
l.isLoaded && l.onlineStatus.isOnline && s([]);
|
|
723
726
|
}, [l]), r;
|
|
724
727
|
};
|
|
725
|
-
var
|
|
728
|
+
var Mt = /* @__PURE__ */ ((e) => (e.PENDING = "pending", e.FRAME_KEYS_READY = "frameKeysReady", e.HISTORICAL_DATA_READY = "historicalDataReady", e.READY = "ready", e))(Mt || {});
|
|
726
729
|
const rr = (e, n, t) => {
|
|
727
730
|
const [r, s] = T([]), [, o] = Y(
|
|
728
731
|
e,
|
|
@@ -734,40 +737,40 @@ const rr = (e, n, t) => {
|
|
|
734
737
|
), u = y(/* @__PURE__ */ new Map());
|
|
735
738
|
b(() => {
|
|
736
739
|
const p = new AbortController();
|
|
737
|
-
return Ie().then((
|
|
740
|
+
return Ie().then((f) => {
|
|
738
741
|
if (p.signal.aborted)
|
|
739
742
|
return;
|
|
740
743
|
const v = [];
|
|
741
744
|
a.current.clear(), c.current.clear();
|
|
742
745
|
for (let S = 0; S < t.length; S++) {
|
|
743
|
-
const { qualifiedName: h, sourceId: D } = t[S], m =
|
|
744
|
-
(
|
|
746
|
+
const { qualifiedName: h, sourceId: D } = t[S], m = f.find(
|
|
747
|
+
(d) => (D === void 0 || D === "" || d.sourceIdentifiers.includes(D)) && d.signals.some((w) => w.qualifiedName === h)
|
|
745
748
|
);
|
|
746
749
|
if (m) {
|
|
747
|
-
const
|
|
748
|
-
if (!
|
|
750
|
+
const d = m.signals.find((F) => F.qualifiedName === h);
|
|
751
|
+
if (!d)
|
|
749
752
|
continue;
|
|
750
753
|
const w = Le.create({
|
|
751
754
|
id: m.id,
|
|
752
755
|
sourceId: D,
|
|
753
|
-
mux:
|
|
756
|
+
mux: d.multiplexValue
|
|
754
757
|
});
|
|
755
758
|
m.canFrameFlags && (w.canFrameFlags = Ee.create(m.canFrameFlags), w.canFrameFlags.flags = w.canFrameFlags.flags.filter(
|
|
756
759
|
(F) => F !== ke.CAN_FRAME_FLAG_FD_BRS
|
|
757
760
|
));
|
|
758
|
-
const
|
|
759
|
-
if (c.current.has(
|
|
760
|
-
const F = c.current.get(
|
|
761
|
-
F && !F.includes(h) && (F.push(h), c.current.set(
|
|
761
|
+
const M = ee(w);
|
|
762
|
+
if (c.current.has(M)) {
|
|
763
|
+
const F = c.current.get(M);
|
|
764
|
+
F && !F.includes(h) && (F.push(h), c.current.set(M, F));
|
|
762
765
|
} else
|
|
763
|
-
c.current.set(
|
|
766
|
+
c.current.set(M, [h]), a.current.set(M, w);
|
|
764
767
|
const x = v.find((F) => E(F.frameId, w));
|
|
765
768
|
x ? x.signalIds.includes(h) || x.signalIds.push(h) : v.push({ frameId: w, signalIds: [h] });
|
|
766
769
|
}
|
|
767
770
|
}
|
|
768
771
|
o(v), i.current === "pending" ? i.current = "frameKeysReady" : i.current === "historicalDataReady" && (i.current = "ready");
|
|
769
|
-
}).catch((
|
|
770
|
-
k.error("Failed to get frame definitions:",
|
|
772
|
+
}).catch((f) => {
|
|
773
|
+
k.error("Failed to get frame definitions:", f), i.current === "pending" ? i.current = "frameKeysReady" : i.current === "historicalDataReady" && (i.current = "ready");
|
|
771
774
|
}), () => {
|
|
772
775
|
p.abort(), i.current === "ready" ? i.current = "historicalDataReady" : i.current = "pending";
|
|
773
776
|
};
|
|
@@ -775,13 +778,13 @@ const rr = (e, n, t) => {
|
|
|
775
778
|
const g = R(be);
|
|
776
779
|
b(() => {
|
|
777
780
|
const p = new AbortController();
|
|
778
|
-
return st(Number.MAX_SAFE_INTEGER, ze).then((
|
|
779
|
-
p.signal.aborted || (
|
|
781
|
+
return st(Number.MAX_SAFE_INTEGER, ze).then((f) => {
|
|
782
|
+
p.signal.aborted || (f.length > 0 && f.forEach((v) => {
|
|
780
783
|
const S = J(v), h = u.current.get(S);
|
|
781
784
|
h ? u.current.set(S, we(h, [v])) : u.current.set(S, [v]);
|
|
782
785
|
}), i.current === "pending" ? i.current = "historicalDataReady" : i.current === "frameKeysReady" && (i.current = "ready"));
|
|
783
|
-
}).catch((
|
|
784
|
-
k.error("Failed to get historical data:",
|
|
786
|
+
}).catch((f) => {
|
|
787
|
+
k.error("Failed to get historical data:", f), i.current === "pending" ? i.current = "historicalDataReady" : i.current === "frameKeysReady" && (i.current = "ready");
|
|
785
788
|
}), () => {
|
|
786
789
|
p.abort(), i.current === "ready" ? i.current = "frameKeysReady" : i.current = "pending";
|
|
787
790
|
};
|
|
@@ -792,29 +795,33 @@ const rr = (e, n, t) => {
|
|
|
792
795
|
}
|
|
793
796
|
const p = new Map(u.current);
|
|
794
797
|
u.current.clear(), de(p, g.subscribedData);
|
|
795
|
-
const
|
|
798
|
+
const f = [];
|
|
796
799
|
a.current.forEach((v, S) => {
|
|
797
|
-
const h = v.sourceId === void 0 || v.sourceId === "", D = v.tx === void 0, m = v.mux === void 0,
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
800
|
+
const h = v.sourceId === void 0 || v.sourceId === "", D = v.tx === void 0, m = v.mux === void 0, d = [];
|
|
801
|
+
for (const M of p.values()) {
|
|
802
|
+
const x = M[0];
|
|
803
|
+
if (!x)
|
|
804
|
+
continue;
|
|
805
|
+
J(x, h, D, m, !0) === S && d.push(...M);
|
|
806
|
+
}
|
|
807
|
+
const w = c.current.get(S) ?? [];
|
|
808
|
+
d.forEach((M) => {
|
|
802
809
|
const x = w.map((F) => {
|
|
803
|
-
const I =
|
|
810
|
+
const I = M.signalValues.find((U) => U.qualifiedName === F);
|
|
804
811
|
return I ? {
|
|
805
812
|
qualifiedName: I.qualifiedName,
|
|
806
|
-
sourceId:
|
|
813
|
+
sourceId: M.sourceId,
|
|
807
814
|
name: I.name,
|
|
808
815
|
unit: I.unit,
|
|
809
|
-
time:
|
|
810
|
-
timeUs:
|
|
816
|
+
time: M.time,
|
|
817
|
+
timeUs: M.timeUs,
|
|
811
818
|
doubleValue: I.doubleValue,
|
|
812
819
|
stringValue: I.stringValue
|
|
813
820
|
} : null;
|
|
814
821
|
});
|
|
815
|
-
|
|
822
|
+
f.push(...x.filter((F) => F !== null));
|
|
816
823
|
});
|
|
817
|
-
}),
|
|
824
|
+
}), f.sort((v, S) => v.time - S.time), s(f);
|
|
818
825
|
}, [g]);
|
|
819
826
|
const l = R(W);
|
|
820
827
|
return b(() => {
|
|
@@ -838,112 +845,112 @@ const rr = (e, n, t) => {
|
|
|
838
845
|
}, [c, r.endTimeUs, r.windowUs, r.startTimeUs, r.width]);
|
|
839
846
|
const i = y(/* @__PURE__ */ new Map()), u = y(/* @__PURE__ */ new Map()), [g, l] = T(!1);
|
|
840
847
|
b(() => {
|
|
841
|
-
const
|
|
848
|
+
const f = new AbortController();
|
|
842
849
|
return l(!1), Ie().then((v) => {
|
|
843
|
-
if (
|
|
850
|
+
if (f.signal.aborted)
|
|
844
851
|
return;
|
|
845
852
|
const S = [], h = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map();
|
|
846
853
|
for (let m = 0; m < t.length; m++) {
|
|
847
|
-
const { qualifiedName:
|
|
848
|
-
(x) => (w === void 0 || w === "" || x.sourceIdentifiers.includes(w)) && x.signals.some((F) => F.qualifiedName ===
|
|
854
|
+
const { qualifiedName: d, sourceId: w } = t[m], M = v.find(
|
|
855
|
+
(x) => (w === void 0 || w === "" || x.sourceIdentifiers.includes(w)) && x.signals.some((F) => F.qualifiedName === d)
|
|
849
856
|
);
|
|
850
|
-
if (
|
|
851
|
-
const x =
|
|
857
|
+
if (M) {
|
|
858
|
+
const x = M.signals.find((L) => L.qualifiedName === d);
|
|
852
859
|
if (!x)
|
|
853
860
|
continue;
|
|
854
861
|
const F = Le.create({
|
|
855
|
-
id:
|
|
862
|
+
id: M.id,
|
|
856
863
|
sourceId: w,
|
|
857
864
|
mux: x.multiplexValue
|
|
858
865
|
});
|
|
859
|
-
|
|
866
|
+
M.canFrameFlags && (F.canFrameFlags = Ee.create(M.canFrameFlags), F.canFrameFlags.flags = F.canFrameFlags.flags.filter(
|
|
860
867
|
(L) => L !== ke.CAN_FRAME_FLAG_FD_BRS
|
|
861
868
|
));
|
|
862
869
|
const I = ee(F);
|
|
863
870
|
if (h.has(I)) {
|
|
864
871
|
const L = h.get(I);
|
|
865
|
-
L && !L.includes(
|
|
872
|
+
L && !L.includes(d) && (L.push(d), h.set(I, L));
|
|
866
873
|
} else
|
|
867
|
-
h.set(I, [
|
|
874
|
+
h.set(I, [d]);
|
|
868
875
|
D.set(I, F);
|
|
869
876
|
const U = S.find((L) => E(L.frameId, F));
|
|
870
|
-
U ? U.signalIds.includes(
|
|
877
|
+
U ? U.signalIds.includes(d) || U.signalIds.push(d) : S.push({ frameId: F, signalIds: [d] });
|
|
871
878
|
}
|
|
872
879
|
}
|
|
873
880
|
a((m) => E(m, S) ? m : S), i.current = h, u.current = D, l(!0);
|
|
874
881
|
}).catch((v) => {
|
|
875
|
-
|
|
882
|
+
f.signal.aborted || (k.error("Failed to get frame definitions:", v), i.current = /* @__PURE__ */ new Map(), u.current = /* @__PURE__ */ new Map(), a([]), l(!0));
|
|
876
883
|
}), () => {
|
|
877
|
-
|
|
884
|
+
f.abort();
|
|
878
885
|
};
|
|
879
886
|
}, [t, a]), b(() => {
|
|
880
887
|
if (!g || r.startTimeUs !== void 0 && r.endTimeUs !== void 0)
|
|
881
888
|
return;
|
|
882
889
|
o([]);
|
|
883
|
-
const
|
|
890
|
+
const f = new AbortController(), v = z.ipcRenderer.on(
|
|
884
891
|
`mm-new-frames-envelopes-for-pane-${e}`,
|
|
885
892
|
(S, h) => {
|
|
886
|
-
if (!
|
|
893
|
+
if (!f.signal.aborted) {
|
|
887
894
|
if (h.length === 0) {
|
|
888
895
|
o([]);
|
|
889
896
|
return;
|
|
890
897
|
}
|
|
891
898
|
o((D) => {
|
|
892
899
|
let m = !1;
|
|
893
|
-
const
|
|
900
|
+
const d = [...D];
|
|
894
901
|
return h.forEach((w) => {
|
|
895
|
-
w.envelopes.size !== 0 && w.envelopes.forEach((
|
|
902
|
+
w.envelopes.size !== 0 && w.envelopes.forEach((M, x) => {
|
|
896
903
|
var L;
|
|
897
904
|
const F = ee(w.frameId);
|
|
898
905
|
if (!((L = i.current.get(F)) == null ? void 0 : L.includes(x)))
|
|
899
906
|
return;
|
|
900
|
-
const U =
|
|
907
|
+
const U = d.findIndex(
|
|
901
908
|
(V) => V.qualifiedName === x && V.sourceId === w.frameId.sourceId
|
|
902
909
|
);
|
|
903
|
-
U !== -1 &&
|
|
910
|
+
U !== -1 && d.splice(U, 1), d.push({
|
|
904
911
|
qualifiedName: x,
|
|
905
912
|
sourceId: w.frameId.sourceId,
|
|
906
|
-
timeUs: Array.from(
|
|
907
|
-
min: Array.from(
|
|
908
|
-
max: Array.from(
|
|
913
|
+
timeUs: Array.from(M.timeUs),
|
|
914
|
+
min: Array.from(M.min),
|
|
915
|
+
max: Array.from(M.max)
|
|
909
916
|
}), m = !0;
|
|
910
917
|
});
|
|
911
|
-
}), m ?
|
|
918
|
+
}), m ? d : D;
|
|
912
919
|
});
|
|
913
920
|
}
|
|
914
921
|
}
|
|
915
922
|
);
|
|
916
923
|
return () => {
|
|
917
|
-
|
|
924
|
+
f.abort(), v();
|
|
918
925
|
};
|
|
919
926
|
}, [g, e, r.endTimeUs, r.startTimeUs]), b(() => {
|
|
920
927
|
if (!g || r.startTimeUs === void 0 || r.endTimeUs === void 0)
|
|
921
928
|
return;
|
|
922
|
-
const
|
|
929
|
+
const f = new AbortController(), v = setTimeout(() => {
|
|
923
930
|
z.ipcRenderer.invoke("mm-get-frames-envelopes-for-pane", e, r.startTimeUs, r.endTimeUs, r.width).then(
|
|
924
931
|
(S) => {
|
|
925
|
-
|
|
932
|
+
f.signal.aborted || o((h) => {
|
|
926
933
|
let D = !1;
|
|
927
934
|
const m = [...h];
|
|
928
|
-
return S.forEach((
|
|
929
|
-
if (
|
|
935
|
+
return S.forEach((d) => {
|
|
936
|
+
if (d.envelopes.size === 0)
|
|
930
937
|
return;
|
|
931
938
|
let w = "";
|
|
932
|
-
u.current.forEach((
|
|
933
|
-
Ze(
|
|
934
|
-
}), w !== "" &&
|
|
939
|
+
u.current.forEach((M, x) => {
|
|
940
|
+
Ze(M, d.frameId) && (w = x);
|
|
941
|
+
}), w !== "" && d.envelopes.forEach((M, x) => {
|
|
935
942
|
var L, V;
|
|
936
943
|
if (!((L = i.current.get(w)) == null ? void 0 : L.includes(x)))
|
|
937
944
|
return;
|
|
938
945
|
const I = (V = u.current.get(w)) == null ? void 0 : V.sourceId, U = m.findIndex(
|
|
939
|
-
(
|
|
946
|
+
(Me) => Me.qualifiedName === x && Me.sourceId === I
|
|
940
947
|
);
|
|
941
948
|
U !== -1 && m.splice(U, 1), m.push({
|
|
942
949
|
qualifiedName: x,
|
|
943
950
|
sourceId: I,
|
|
944
|
-
timeUs: Array.from(
|
|
945
|
-
min: Array.from(
|
|
946
|
-
max: Array.from(
|
|
951
|
+
timeUs: Array.from(M.timeUs),
|
|
952
|
+
min: Array.from(M.min),
|
|
953
|
+
max: Array.from(M.max)
|
|
947
954
|
}), D = !0;
|
|
948
955
|
});
|
|
949
956
|
}), D ? m : h;
|
|
@@ -954,7 +961,7 @@ const rr = (e, n, t) => {
|
|
|
954
961
|
});
|
|
955
962
|
}, 200);
|
|
956
963
|
return () => {
|
|
957
|
-
clearTimeout(v),
|
|
964
|
+
clearTimeout(v), f.abort();
|
|
958
965
|
};
|
|
959
966
|
}, [g, e, r.endTimeUs, r.startTimeUs, r.width, r.forceUpdateCounter]);
|
|
960
967
|
const p = R(W);
|
|
@@ -990,7 +997,7 @@ function De(e) {
|
|
|
990
997
|
}, [n, t, a, c, i, o, u, r, s]);
|
|
991
998
|
}
|
|
992
999
|
const yt = "project-data-internal-v1";
|
|
993
|
-
function
|
|
1000
|
+
function Pe(e, n) {
|
|
994
1001
|
return e == null ? n : Array.isArray(n) && Array.isArray(e) ? e : typeof n == "object" && !Array.isArray(n) && typeof e == "object" && !Array.isArray(e) ? { ...n, ...e } : e;
|
|
995
1002
|
}
|
|
996
1003
|
const B = [];
|
|
@@ -1012,10 +1019,10 @@ function xe(e, n, t, r, s = 200) {
|
|
|
1012
1019
|
const u = [...i];
|
|
1013
1020
|
let g = !1;
|
|
1014
1021
|
for (const l of c) {
|
|
1015
|
-
const p = u.find((
|
|
1022
|
+
const p = u.find((f) => f.id === l.id);
|
|
1016
1023
|
if (p != null && p.componentData) {
|
|
1017
|
-
const
|
|
1018
|
-
E(
|
|
1024
|
+
const f = p.componentData.componentPropSlices[l.slice] ? JSON.parse(p.componentData.componentPropSlices[l.slice], Re) : {};
|
|
1025
|
+
E(f, l.state) || (p.componentData.componentPropSlices[l.slice] = JSON.stringify(l.state, et), g = !0);
|
|
1019
1026
|
}
|
|
1020
1027
|
}
|
|
1021
1028
|
return g ? u : i;
|
|
@@ -1026,24 +1033,24 @@ function xe(e, n, t, r, s = 200) {
|
|
|
1026
1033
|
}, s);
|
|
1027
1034
|
}
|
|
1028
1035
|
const Y = (e, n, t, r) => {
|
|
1029
|
-
const [s, o] = R(Q), a = y(typeof t == "function" ? t() : t), [c, i] = T(() => a.current), [u, g] = T(!1), l = y(c), p = y(),
|
|
1036
|
+
const [s, o] = R(Q), a = y(typeof t == "function" ? t() : t), [c, i] = T(() => a.current), [u, g] = T(!1), l = y(c), p = y(), f = y(!1), v = y(!1);
|
|
1030
1037
|
b(() => {
|
|
1031
1038
|
l.current = c;
|
|
1032
1039
|
}, [c]), b(() => {
|
|
1033
|
-
|
|
1040
|
+
f.current = u;
|
|
1034
1041
|
}, [u]), b(() => {
|
|
1035
1042
|
var D, m;
|
|
1036
|
-
if (!(s === null ||
|
|
1043
|
+
if (!(s === null || f.current)) {
|
|
1037
1044
|
try {
|
|
1038
|
-
const
|
|
1039
|
-
i(
|
|
1040
|
-
} catch (
|
|
1041
|
-
k.error(`Failed to load project data slice ${n}:`,
|
|
1045
|
+
const d = s == null ? void 0 : s.find((x) => x.id === e), w = (D = d == null ? void 0 : d.componentData) != null && D.componentPropSlices[n] && ((m = d == null ? void 0 : d.componentData) == null ? void 0 : m.componentPropSlices[n]) !== "" ? JSON.parse(d.componentData.componentPropSlices[n], Re) : a.current, M = Pe(w, a.current);
|
|
1046
|
+
i(M), l.current = M, r && !v.current && (v.current = !0, r(M));
|
|
1047
|
+
} catch (d) {
|
|
1048
|
+
k.error(`Failed to load project data slice ${n}:`, d), i(a.current), l.current = a.current, r && !v.current && (v.current = !0, r(a.current));
|
|
1042
1049
|
} finally {
|
|
1043
|
-
g(!0),
|
|
1050
|
+
g(!0), f.current = !0;
|
|
1044
1051
|
}
|
|
1045
1052
|
return () => {
|
|
1046
|
-
g(!1),
|
|
1053
|
+
g(!1), f.current = !1;
|
|
1047
1054
|
};
|
|
1048
1055
|
}
|
|
1049
1056
|
}, [e, r, n, s]);
|
|
@@ -1059,13 +1066,13 @@ const Y = (e, n, t, r) => {
|
|
|
1059
1066
|
intervals: Ft,
|
|
1060
1067
|
maxIntervals: xt((s == null ? void 0 : s.length) ?? 0),
|
|
1061
1068
|
warnLabel: "project data",
|
|
1062
|
-
canSave: () =>
|
|
1069
|
+
canSave: () => f.current
|
|
1063
1070
|
});
|
|
1064
1071
|
const h = q(
|
|
1065
1072
|
(D) => {
|
|
1066
|
-
if (!
|
|
1067
|
-
const m = l.current,
|
|
1068
|
-
E(
|
|
1073
|
+
if (!f.current) return;
|
|
1074
|
+
const m = l.current, d = typeof D == "function" ? D(m) : D;
|
|
1075
|
+
E(d, m) || (i(d), l.current = d, E(d, p.current) || (xe(e, n, d, o), p.current = d));
|
|
1069
1076
|
},
|
|
1070
1077
|
[e, o, n]
|
|
1071
1078
|
);
|
|
@@ -1098,22 +1105,22 @@ function fe(e, n, t = 200) {
|
|
|
1098
1105
|
}, t);
|
|
1099
1106
|
}
|
|
1100
1107
|
const ar = (e, n, t) => {
|
|
1101
|
-
const r = y(typeof n == "function" ? n() : n), [s, o] = T(() => r.current), [a, c] = T(!1), [i] = R(Q), u = y(s), g = y(), l = y(!1), p = y(!1),
|
|
1108
|
+
const r = y(typeof n == "function" ? n() : n), [s, o] = T(() => r.current), [a, c] = T(!1), [i] = R(Q), u = y(s), g = y(), l = y(!1), p = y(!1), f = y(!1);
|
|
1102
1109
|
b(() => {
|
|
1103
1110
|
u.current = s;
|
|
1104
1111
|
}, [s]), b(() => (l.current = !0, (async () => {
|
|
1105
1112
|
try {
|
|
1106
1113
|
const h = await z.ipcRenderer.invoke("app-get-workspace-view-session-data-object", e.toString());
|
|
1107
1114
|
if (!l.current) return;
|
|
1108
|
-
const D =
|
|
1115
|
+
const D = Pe(h, r.current);
|
|
1109
1116
|
o(D), u.current = D, t && !p.current && (p.current = !0, t(D));
|
|
1110
1117
|
} catch (h) {
|
|
1111
1118
|
k.error(`Failed to load session data for view ${e}:`, h), o(r.current), u.current = r.current, t && !p.current && (p.current = !0, t(r.current));
|
|
1112
1119
|
} finally {
|
|
1113
|
-
c(!0),
|
|
1120
|
+
c(!0), f.current = !0;
|
|
1114
1121
|
}
|
|
1115
1122
|
})(), () => {
|
|
1116
|
-
l.current = !1,
|
|
1123
|
+
l.current = !1, f.current = !1;
|
|
1117
1124
|
}), [e, t]);
|
|
1118
1125
|
const v = q((h) => fe(e.toString(), h), [e]);
|
|
1119
1126
|
De({
|
|
@@ -1128,7 +1135,7 @@ const ar = (e, n, t) => {
|
|
|
1128
1135
|
});
|
|
1129
1136
|
const S = q(
|
|
1130
1137
|
(h) => {
|
|
1131
|
-
if (!
|
|
1138
|
+
if (!f.current) return;
|
|
1132
1139
|
const D = u.current, m = typeof h == "function" ? h(D) : h;
|
|
1133
1140
|
E(m, D) || (o(m), u.current = m, E(m, g.current) || (fe(e.toString(), m), g.current = m));
|
|
1134
1141
|
},
|
|
@@ -1137,22 +1144,22 @@ const ar = (e, n, t) => {
|
|
|
1137
1144
|
return { sessionDataIsInitialized: a, sessionData: s, setSessionData: S };
|
|
1138
1145
|
};
|
|
1139
1146
|
function Ve(e, n, t, r) {
|
|
1140
|
-
const s = `${e}:${n}`, [o] = R(Q), a = y(typeof t == "function" ? t() : t), [c, i] = T(() => a.current), [u, g] = T(!1), l = y(c), p = y(),
|
|
1147
|
+
const s = `${e}:${n}`, [o] = R(Q), a = y(typeof t == "function" ? t() : t), [c, i] = T(() => a.current), [u, g] = T(!1), l = y(c), p = y(), f = y(!1), v = y(!1), S = y(!1);
|
|
1141
1148
|
b(() => {
|
|
1142
1149
|
l.current = c;
|
|
1143
|
-
}, [c]), b(() => (
|
|
1150
|
+
}, [c]), b(() => (f.current = !0, (async () => {
|
|
1144
1151
|
try {
|
|
1145
1152
|
const m = await z.ipcRenderer.invoke("app-get-workspace-view-session-data-slice", s);
|
|
1146
|
-
if (!
|
|
1147
|
-
const
|
|
1148
|
-
i(
|
|
1153
|
+
if (!f.current) return;
|
|
1154
|
+
const d = Pe(m, a.current);
|
|
1155
|
+
i(d), l.current = d, r && !v.current && (v.current = !0, r(d));
|
|
1149
1156
|
} catch (m) {
|
|
1150
1157
|
k.error(`Failed to load session data slice ${s}:`, m), i(a.current), l.current = a.current, r && !v.current && (v.current = !0, r(a.current));
|
|
1151
1158
|
} finally {
|
|
1152
1159
|
g(!0), S.current = !0;
|
|
1153
1160
|
}
|
|
1154
1161
|
})(), () => {
|
|
1155
|
-
|
|
1162
|
+
f.current = !1, S.current = !1;
|
|
1156
1163
|
}), [s, r]);
|
|
1157
1164
|
const h = q((m) => fe(s, m), [s]);
|
|
1158
1165
|
De({
|
|
@@ -1163,13 +1170,13 @@ function Ve(e, n, t, r) {
|
|
|
1163
1170
|
intervals: We,
|
|
1164
1171
|
maxIntervals: He((o == null ? void 0 : o.length) ?? 0),
|
|
1165
1172
|
warnLabel: "session data",
|
|
1166
|
-
canSave: () =>
|
|
1173
|
+
canSave: () => f.current && S.current
|
|
1167
1174
|
});
|
|
1168
1175
|
const D = q(
|
|
1169
1176
|
(m) => {
|
|
1170
1177
|
if (!S.current) return;
|
|
1171
|
-
const
|
|
1172
|
-
E(w,
|
|
1178
|
+
const d = l.current, w = typeof m == "function" ? m(d) : m;
|
|
1179
|
+
E(w, d) || (i(w), l.current = w, E(w, p.current) || (fe(s, w), p.current = w));
|
|
1173
1180
|
},
|
|
1174
1181
|
[s]
|
|
1175
1182
|
);
|
|
@@ -1296,7 +1303,7 @@ export {
|
|
|
1296
1303
|
tr as H,
|
|
1297
1304
|
rr as I,
|
|
1298
1305
|
nr as J,
|
|
1299
|
-
|
|
1306
|
+
Pe as K,
|
|
1300
1307
|
ot as L,
|
|
1301
1308
|
Ue as M,
|
|
1302
1309
|
xt as N,
|
|
@@ -1304,7 +1311,7 @@ export {
|
|
|
1304
1311
|
Y as P,
|
|
1305
1312
|
sr as Q,
|
|
1306
1313
|
Ke as R,
|
|
1307
|
-
|
|
1314
|
+
Mt as S,
|
|
1308
1315
|
He as T,
|
|
1309
1316
|
_e as U,
|
|
1310
1317
|
ar as V,
|
|
@@ -1341,7 +1348,7 @@ export {
|
|
|
1341
1348
|
$t as u,
|
|
1342
1349
|
Dt as v,
|
|
1343
1350
|
Jt as w,
|
|
1344
|
-
|
|
1351
|
+
Pt as x,
|
|
1345
1352
|
Qt as y,
|
|
1346
1353
|
Yt as z
|
|
1347
1354
|
};
|