@kvaser/canking-api 7.1.0 → 7.2.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/REDISTRIBUTABLES.txt +2 -0
- package/dist/ElectronAPIFake.js +1 -1
- package/dist/ElectronAPIFake.mjs +18 -15
- package/dist/controls/CanIdentifierControl.d.ts +45 -8
- package/dist/controls/ColumnItemControl.d.ts +1 -1
- package/dist/controls/DropdownButton.d.ts +1 -1
- package/dist/controls/LinChannelSelectControl.d.ts +34 -0
- package/dist/controls/LinIdentifierControl.d.ts +224 -0
- package/dist/controls/SelectMessageDialog.d.ts +28 -0
- package/dist/controls/SelectSignalControl.d.ts +11 -0
- package/dist/controls/SelectSignalDialog.d.ts +21 -0
- package/dist/controls/TableControl.d.ts +7 -1
- package/dist/controls/index.d.ts +10 -0
- package/dist/controls.js +1 -1
- package/dist/controls.mjs +1761 -949
- package/dist/grpc.js +1 -1
- package/dist/grpc.mjs +111 -97
- package/dist/hooks/index.d.ts +6 -1
- package/dist/hooks.js +1 -1
- package/dist/hooks.mjs +17 -16
- package/dist/icons/index.d.ts +6 -0
- package/dist/icons.js +1 -1
- package/dist/icons.mjs +87 -75
- package/dist/index.js +1 -1
- package/dist/index.mjs +48 -42
- package/dist/ipc/index.d.ts +24 -0
- package/dist/ipc.js +1 -1
- package/dist/ipc.mjs +68 -58
- package/dist/measurement_settings.js +1 -1
- package/dist/measurement_settings.mjs +3178 -1320
- package/dist/models.js +1 -1
- package/dist/models.mjs +202 -197
- package/dist/protos/device_params.d.ts +14 -25
- package/dist/protos/frame_params.d.ts +8 -0
- package/dist/protos/measurement_params.d.ts +2 -0
- package/dist/protos/measurement_service.d.ts +29 -1
- package/dist/protos/measurement_settings.d.ts +103 -32
- package/dist/protos/status_params.d.ts +9 -9
- package/dist/status_params.js +1 -1
- package/dist/status_params.mjs +655 -2169
- package/doc/assets/hierarchy.js +1 -1
- package/doc/assets/navigation.js +1 -1
- package/doc/assets/search.js +1 -1
- package/doc/classes/controls.LocalizedStrings.html +2 -2
- package/doc/classes/models.DataBuffer.html +2 -2
- package/doc/classes/models.DataBufferView.html +2 -2
- package/doc/classes/models.Point.html +2 -2
- package/doc/enums/models.AccessMode.html +2 -2
- package/doc/enums/models.AppEvent.html +2 -2
- package/doc/enums/models.CanChannelCap.html +2 -2
- package/doc/enums/models.CanFrameFlag.html +2 -2
- package/doc/enums/models.CanMessageFilterType.html +6 -0
- package/doc/enums/models.CanMode.html +2 -2
- package/doc/enums/models.DecimalChar.html +2 -2
- package/doc/enums/models.DeviceEvent.html +2 -2
- package/doc/enums/models.FileConflictAction.html +2 -2
- package/doc/enums/models.FileType.html +2 -2
- package/doc/enums/models.LinFrameFlag.html +2 -2
- package/doc/enums/models.LogFileFormat.html +5 -5
- package/doc/enums/models.LogLevel.html +2 -2
- package/doc/enums/models.LogReplayState.html +2 -2
- package/doc/enums/{models.MessageLoggerState.html → models.LoggerState.html} +7 -7
- package/doc/enums/models.MeasurementEvent.html +2 -2
- package/doc/enums/models.Protocols.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.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.FillBox.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 +4 -0
- package/doc/functions/controls.LinIdentifierControl.html +4 -0
- package/doc/functions/controls.LinIdentifierFrameControl.html +4 -0
- package/doc/functions/controls.LinIdentifierGeneratorControl.html +4 -0
- package/doc/functions/controls.LinIdentifierGeneratorSettingsControl.html +5 -0
- package/doc/functions/controls.NumberRangeControl.html +2 -2
- package/doc/functions/controls.OneLineButton.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 -0
- package/doc/functions/controls.SelectSignalControl.html +1 -0
- package/doc/functions/controls.SelectSignalDialog.html +2 -0
- package/doc/functions/controls.SizedBox.html +2 -2
- package/doc/functions/controls.TableControl.html +2 -2
- package/doc/functions/controls.TabsPanel.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 +3 -3
- package/doc/functions/controls.useColumnItems.html +3 -3
- package/doc/functions/controls.useMessageDatabases.html +2 -0
- package/doc/functions/hooks.useDevices.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.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.useOverallStatusLevel.html +2 -2
- package/doc/functions/hooks.useProjectData.html +2 -2
- package/doc/functions/hooks.useRecentProjectFiles.html +2 -2
- package/doc/functions/hooks.useRunningPeriodicTransmissions.html +2 -2
- package/doc/functions/hooks.useSessionData.html +2 -2
- package/doc/functions/hooks.useSignalLogFileFormats.html +2 -0
- package/doc/functions/hooks.useUserSettings.html +2 -2
- package/doc/functions/hooks.useWorkspacePaneWithId.html +2 -2
- package/doc/functions/icons.AddIcon.html +2 -2
- package/doc/functions/icons.ArrowDownIcon.html +2 -2
- package/doc/functions/icons.ArrowLeftIcon.html +2 -2
- package/doc/functions/icons.ArrowRightIcon.html +2 -2
- package/doc/functions/icons.ArrowUpIcon.html +2 -2
- package/doc/functions/icons.BusIsOffIcon.html +2 -2
- package/doc/functions/icons.BusIsOnIcon.html +2 -2
- package/doc/functions/icons.CloseIcon.html +2 -2
- package/doc/functions/icons.ColumnSettingsIcon.html +4 -0
- package/doc/functions/icons.CopyIcon.html +2 -2
- package/doc/functions/icons.DarkModeIcon.html +2 -2
- package/doc/functions/icons.DeleteIcon.html +2 -2
- package/doc/functions/icons.DisableIcon.html +2 -2
- package/doc/functions/icons.EditIcon.html +2 -2
- package/doc/functions/icons.EnableIcon.html +4 -0
- package/doc/functions/icons.FilterIcon.html +2 -2
- package/doc/functions/icons.FixedPositionIcon.html +2 -2
- package/doc/functions/icons.LeaveFullScreenIcon.html +2 -2
- package/doc/functions/icons.LightModeIcon.html +2 -2
- package/doc/functions/icons.LineArrowDownIcon.html +2 -2
- package/doc/functions/icons.LineArrowUpIcon.html +2 -2
- package/doc/functions/icons.MaximizeWindowIcon.html +2 -2
- package/doc/functions/icons.MeasurementSetupIcon.html +2 -2
- package/doc/functions/icons.MoreHorizIcon.html +2 -2
- package/doc/functions/icons.MoreVertIcon.html +2 -2
- package/doc/functions/icons.NewIcon.html +2 -2
- package/doc/functions/icons.OpenExternallyIcon.html +2 -2
- package/doc/functions/icons.OpenIcon.html +2 -2
- package/doc/functions/icons.PauseIcon.html +2 -2
- package/doc/functions/icons.PlayIcon.html +2 -2
- package/doc/functions/icons.PlaySolidIcon.html +2 -2
- package/doc/functions/icons.SaveIcon.html +2 -2
- package/doc/functions/icons.SelectAllIcon.html +2 -2
- package/doc/functions/icons.ServiceIconActive.html +2 -2
- package/doc/functions/icons.ServiceIconInactive.html +2 -2
- package/doc/functions/icons.SettingsIcon.html +2 -2
- package/doc/functions/icons.StopIcon.html +2 -2
- package/doc/functions/icons.StopSolidIcon.html +2 -2
- package/doc/functions/icons.ToolsPanelHiddenIcon.html +2 -2
- package/doc/functions/icons.ToolsPanelVisibleIcon.html +2 -2
- package/doc/functions/icons.UnmaximizeWindowIcon.html +2 -2
- package/doc/functions/icons.WorkspacesIcon.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 +4 -0
- 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.getFrameDefinitions.html +2 -2
- package/doc/functions/ipc.getLogger.html +2 -2
- package/doc/functions/ipc.getMessageLogFileFormats.html +2 -2
- package/doc/functions/ipc.getSignalLogFileFormats.html +3 -0
- package/doc/functions/ipc.requestLinMessage.html +5 -0
- 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 +4 -0
- 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.accessModeFromJSON.html +1 -1
- package/doc/functions/models.accessModeToJSON.html +1 -1
- package/doc/functions/models.appEventFromJSON.html +1 -1
- package/doc/functions/models.appEventToJSON.html +1 -1
- package/doc/functions/models.canChannelCapFromJSON.html +1 -1
- package/doc/functions/models.canChannelCapToJSON.html +1 -1
- package/doc/functions/models.canFrameFlagFromJSON.html +1 -1
- package/doc/functions/models.canFrameFlagToJSON.html +1 -1
- package/doc/functions/models.canMessageFilterTypeFromJSON.html +1 -0
- package/doc/functions/models.canMessageFilterTypeToJSON.html +1 -0
- package/doc/functions/models.canModeFromJSON.html +1 -1
- package/doc/functions/models.canModeToJSON.html +1 -1
- package/doc/functions/models.createElectronApiFake.html +2 -2
- package/doc/functions/models.decimalCharFromJSON.html +1 -1
- package/doc/functions/models.decimalCharToJSON.html +1 -1
- package/doc/functions/models.decimalToFixed.html +1 -1
- package/doc/functions/models.decimalToHex.html +1 -1
- package/doc/functions/models.deviceEventFromJSON.html +1 -1
- package/doc/functions/models.deviceEventToJSON.html +1 -1
- package/doc/functions/models.fileConflictActionFromJSON.html +1 -1
- package/doc/functions/models.fileConflictActionToJSON.html +1 -1
- package/doc/functions/models.fileTypeFromJSON.html +1 -1
- package/doc/functions/models.fileTypeToJSON.html +1 -1
- package/doc/functions/models.linFrameFlagFromJSON.html +1 -1
- package/doc/functions/models.linFrameFlagToJSON.html +1 -1
- package/doc/functions/models.logFileFormatFromJSON.html +1 -1
- package/doc/functions/models.logFileFormatToJSON.html +1 -1
- package/doc/functions/models.logLevelFromJSON.html +1 -1
- package/doc/functions/models.logLevelToJSON.html +1 -1
- package/doc/functions/models.logReplayStateFromJSON.html +1 -1
- package/doc/functions/models.logReplayStateToJSON.html +1 -1
- package/doc/functions/models.loggerStateFromJSON.html +1 -0
- package/doc/functions/models.loggerStateToJSON.html +1 -0
- package/doc/functions/models.longToNumber.html +1 -1
- package/doc/functions/models.measurementEventFromJSON.html +1 -1
- package/doc/functions/models.measurementEventToJSON.html +1 -1
- package/doc/functions/models.protocolsFromJSON.html +1 -1
- package/doc/functions/models.protocolsToJSON.html +1 -1
- package/doc/functions/models.separatorFromJSON.html +1 -1
- package/doc/functions/models.separatorToJSON.html +1 -1
- package/doc/functions/models.signalEncodingFromJSON.html +1 -1
- package/doc/functions/models.signalEncodingToJSON.html +1 -1
- package/doc/functions/models.signalTypeFromJSON.html +1 -1
- package/doc/functions/models.signalTypeToJSON.html +1 -1
- package/doc/functions/models.signalValueTriggerOperatorFromJSON.html +1 -1
- package/doc/functions/models.signalValueTriggerOperatorToJSON.html +1 -1
- package/doc/functions/models.statusLevelFromJSON.html +1 -1
- package/doc/functions/models.statusLevelToJSON.html +1 -1
- package/doc/functions/models.timeReferenceFromJSON.html +1 -1
- package/doc/functions/models.timeReferenceToJSON.html +1 -1
- package/doc/functions/models.triggerOperatorFromJSON.html +1 -1
- package/doc/functions/models.triggerOperatorToJSON.html +1 -1
- 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 +20 -4
- package/doc/interfaces/controls.CanIdentifierFrameControlProps.html +17 -3
- package/doc/interfaces/controls.CanIdentifierGeneratorControlProps.html +7 -7
- package/doc/interfaces/controls.CanIdentifierGeneratorSettingsControlProps.html +2 -2
- package/doc/interfaces/controls.CheckboxControlProps.html +2 -2
- package/doc/interfaces/controls.ColumnItem.html +3 -0
- package/doc/interfaces/controls.ColumnItemControlProps.html +2 -2
- 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 +5 -5
- package/doc/interfaces/controls.DropdownPanelProps.html +2 -2
- package/doc/interfaces/controls.FormControlRowProps.html +2 -2
- package/doc/interfaces/controls.ILocalizedStrings.html +2 -2
- package/doc/interfaces/controls.IMessageDatabase.html +4 -0
- package/doc/interfaces/controls.InlineEditorProps.html +2 -2
- package/doc/interfaces/controls.LabelProps.html +2 -2
- package/doc/interfaces/controls.LinChannelSelectControlProps.html +20 -0
- package/doc/interfaces/controls.LinIdentifierControlProps.html +35 -0
- package/doc/interfaces/controls.LinIdentifierFrameControlProps.html +33 -0
- package/doc/interfaces/controls.LinIdentifierGeneratorControlProps.html +37 -0
- package/doc/interfaces/controls.LinIdentifierGeneratorSettingsControlProps.html +25 -0
- 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 +8 -0
- package/doc/interfaces/controls.SelectSignalDialogProps.html +12 -0
- package/doc/interfaces/controls.TableColumn.html +2 -2
- package/doc/interfaces/controls.TableControlProps.html +9 -3
- 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/ipc.ILogger.html +2 -2
- package/doc/interfaces/models.AboutInformation.html +2 -2
- package/doc/interfaces/models.ActivateLicenseRequest.html +2 -2
- package/doc/interfaces/models.AddAllConnectedCanChannelsRequest.html +2 -2
- package/doc/interfaces/models.AddAllConnectedLinChannelsRequest.html +2 -2
- package/doc/interfaces/models.AddOrUpdateDataProcessorRequest.html +2 -2
- package/doc/interfaces/models.AddOrUpdateSourceRequest.html +2 -2
- package/doc/interfaces/models.AddOrUpdateTargetRequest.html +2 -2
- package/doc/interfaces/models.ApiPreferences.html +2 -2
- package/doc/interfaces/models.AppEventArgs.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.CanBusSpeedInfo.html +7 -13
- package/doc/interfaces/models.CanChannelCapacity.html +2 -2
- package/doc/interfaces/models.CanChannelConfiguration.html +11 -7
- package/doc/interfaces/models.CanFDBusSpeedCombination.html +4 -4
- package/doc/interfaces/models.CanFDBusSpeedInfo.html +8 -16
- package/doc/interfaces/models.CanFrameFlags.html +2 -2
- package/doc/interfaces/models.CanMessageFilterSettings.html +3 -3
- package/doc/interfaces/models.Channel.html +2 -2
- package/doc/interfaces/models.ChannelSettings.html +2 -2
- package/doc/interfaces/models.ClearLinMessageRequest.html +2 -2
- package/doc/interfaces/models.ConnectNodesRequest.html +2 -2
- package/doc/interfaces/models.DataProcessingStatus.html +2 -2
- package/doc/interfaces/models.DataProcessorNodeProperties.html +2 -2
- package/doc/interfaces/models.DatabaseFiles.html +6 -0
- package/doc/interfaces/models.DatabasesSettings.html +2 -2
- package/doc/interfaces/models.Device.html +2 -2
- package/doc/interfaces/models.DeviceEventArgs.html +2 -2
- package/doc/interfaces/models.Devices.html +2 -2
- package/doc/interfaces/models.DisconnectNodesRequest.html +2 -2
- package/doc/interfaces/models.Empty.html +2 -2
- package/doc/interfaces/models.ErrorStatus.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.Frame_PropertiesEntry.html +2 -2
- package/doc/interfaces/models.Frames.html +2 -2
- package/doc/interfaces/models.GetCanChannelBusSpeedsRequest.html +6 -3
- package/doc/interfaces/models.GetCanChannelBusSpeedsResponse.html +2 -2
- package/doc/interfaces/models.GetCanFdBusSpeedsRequest.html +2 -2
- package/doc/interfaces/models.GetCanFdBusSpeedsResponse.html +2 -2
- package/doc/interfaces/models.GetChannelsFromLogFileRequest.html +2 -2
- package/doc/interfaces/models.GetChannelsFromLogFileResponse.html +2 -2
- package/doc/interfaces/models.GetClassicCanBusSpeedsRequest.html +2 -2
- package/doc/interfaces/models.GetClassicCanBusSpeedsResponse.html +2 -2
- package/doc/interfaces/models.GetDataProcessorResponse.html +2 -2
- package/doc/interfaces/models.GetDevicesRequest.html +2 -2
- package/doc/interfaces/models.GetDevicesResponse.html +2 -2
- package/doc/interfaces/models.GetFrameDefinitionsFromDatabaseFilesRequest.html +2 -2
- package/doc/interfaces/models.GetLicensesResponse.html +2 -2
- package/doc/interfaces/models.GetLogFileFormatsRequest.html +6 -4
- package/doc/interfaces/models.GetLogFileFormatsResponse.html +2 -2
- package/doc/interfaces/models.GetLogLevelResponse.html +2 -2
- package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesRequest.html +2 -2
- package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesResponse.html +2 -2
- package/doc/interfaces/models.GetServiceExtensionInfoRequest.html +2 -2
- package/doc/interfaces/models.GetServiceExtensionInfoResponse.html +2 -2
- package/doc/interfaces/models.GetSignalDataFromMessageDataRequest.html +2 -2
- package/doc/interfaces/models.GetSignalDataFromMessageDataResponse.html +2 -2
- package/doc/interfaces/models.GetSourceResponse.html +2 -2
- package/doc/interfaces/models.GetTargetResponse.html +2 -2
- package/doc/interfaces/models.ILogFileFormat.html +2 -2
- package/doc/interfaces/models.IProject.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.IWorkspaceData.html +2 -2
- package/doc/interfaces/models.IWorkspacePaneData.html +2 -2
- package/doc/interfaces/models.IdentifierRequest.html +2 -2
- package/doc/interfaces/models.IdentifiersRequest.html +2 -2
- package/doc/interfaces/models.InstallServiceExtensionRequest.html +2 -2
- package/doc/interfaces/models.InterpreterSettings.html +2 -2
- package/doc/interfaces/models.J1939InterpreterSettings.html +2 -2
- package/doc/interfaces/models.LicenseInformation.html +2 -2
- package/doc/interfaces/models.Licenses.html +2 -2
- package/doc/interfaces/models.LinChannelConfiguration.html +5 -3
- 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.LogReplaySettings_ChannelIdentifiersEntry.html +2 -2
- package/doc/interfaces/models.LogReplayStatus.html +2 -2
- package/doc/interfaces/models.LoggerStatus.html +3 -0
- package/doc/interfaces/models.MeasurementEventArgs.html +2 -2
- package/doc/interfaces/models.MeasurementSetup.html +2 -2
- package/doc/interfaces/models.MessageLoggerSettings.html +18 -14
- package/doc/interfaces/models.NodeStatus.html +5 -5
- 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.RequestLinMessageRequest.html +2 -2
- package/doc/interfaces/models.ScheduleTable.html +2 -2
- package/doc/interfaces/models.ScheduleTableEntry.html +2 -2
- package/doc/interfaces/models.SendLinWakeupFrameRequest.html +2 -2
- package/doc/interfaces/models.SendMessageRequest.html +2 -2
- package/doc/interfaces/models.ServiceExtensionSettings.html +2 -2
- package/doc/interfaces/models.SetLogLevelRequest.html +2 -2
- package/doc/interfaces/models.SetMeasurementSetupRequest.html +2 -2
- package/doc/interfaces/models.SetSignalDataToMessageDataRequest.html +2 -2
- package/doc/interfaces/models.SetSignalDataToMessageDataResponse.html +2 -2
- package/doc/interfaces/models.SignalDefinition.html +2 -2
- package/doc/interfaces/models.SignalDefinition_EnumValuesEntry.html +2 -2
- package/doc/interfaces/models.SignalDefinitions.html +2 -2
- package/doc/interfaces/models.SignalFilterSettings.html +4 -0
- package/doc/interfaces/models.SignalLoggerSettings.html +56 -0
- 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.StartPeriodicTransmissionRequest.html +2 -2
- package/doc/interfaces/models.StartPeriodicTransmissionResponse.html +2 -2
- package/doc/interfaces/models.TargetNodeProperties.html +4 -3
- package/doc/interfaces/models.TriggerSettings.html +2 -2
- package/doc/interfaces/models.UninstallServiceExtensionRequest.html +2 -2
- package/doc/interfaces/models.UpdateLinMessageRequest.html +2 -2
- package/doc/interfaces/models.UpdatePeriodicTransmissionRequest.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/icons.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 -0
- package/doc/types/controls.canIdentifierType.html +2 -2
- package/doc/types/controls.linIdentifierGeneratorType.html +2 -0
- package/doc/types/models.IReadOnlyDataBuffer.html +1 -1
- package/doc/types/models.themes.html +1 -1
- package/doc/variables/models.AboutInformation-1.html +1 -1
- package/doc/variables/models.ActivateLicenseRequest-1.html +1 -1
- package/doc/variables/models.AddAllConnectedCanChannelsRequest-1.html +1 -1
- package/doc/variables/models.AddAllConnectedLinChannelsRequest-1.html +1 -1
- package/doc/variables/models.AddOrUpdateDataProcessorRequest-1.html +1 -1
- package/doc/variables/models.AddOrUpdateSourceRequest-1.html +1 -1
- package/doc/variables/models.AddOrUpdateTargetRequest-1.html +1 -1
- package/doc/variables/models.ApiPreferences-1.html +1 -1
- package/doc/variables/models.AppEventArgs-1.html +1 -1
- package/doc/variables/models.BaseNodeProperties-1.html +1 -1
- package/doc/variables/models.BusStatus-1.html +1 -1
- package/doc/variables/models.CanBusParamLimits-1.html +1 -1
- package/doc/variables/models.CanBusParams-1.html +1 -1
- package/doc/variables/models.CanBusSpeedInfo-1.html +1 -1
- package/doc/variables/models.CanChannelCapacity-1.html +1 -1
- package/doc/variables/models.CanChannelConfiguration-1.html +1 -1
- package/doc/variables/models.CanFDBusSpeedCombination-1.html +1 -1
- package/doc/variables/models.CanFDBusSpeedInfo-1.html +1 -1
- package/doc/variables/models.CanFrameFlags-1.html +1 -1
- package/doc/variables/models.CanMessageFilterSettings-1.html +1 -1
- package/doc/variables/models.Channel-1.html +1 -1
- package/doc/variables/models.ChannelSettings-1.html +1 -1
- package/doc/variables/models.ClearLinMessageRequest-1.html +1 -1
- package/doc/variables/models.ConnectNodesRequest-1.html +1 -1
- package/doc/variables/models.DataProcessingStatus-1.html +1 -1
- package/doc/variables/models.DataProcessorNodeProperties-1.html +1 -1
- package/doc/variables/models.DatabaseFiles-1.html +1 -0
- package/doc/variables/models.DatabasesSettings-1.html +1 -1
- package/doc/variables/models.Device-1.html +1 -1
- package/doc/variables/models.DeviceEventArgs-1.html +1 -1
- package/doc/variables/models.Devices-1.html +1 -1
- package/doc/variables/models.DisconnectNodesRequest-1.html +1 -1
- package/doc/variables/models.Empty-1.html +1 -1
- package/doc/variables/models.ErrorStatus-1.html +1 -1
- package/doc/variables/models.Frame-1.html +1 -1
- package/doc/variables/models.FrameDefinition-1.html +1 -1
- package/doc/variables/models.FrameDefinitions-1.html +1 -1
- package/doc/variables/models.FramePropertyValue-1.html +1 -1
- package/doc/variables/models.FrameReceivedTrigger-1.html +1 -1
- package/doc/variables/models.Frame_PropertiesEntry-1.html +1 -1
- package/doc/variables/models.Frames-1.html +1 -1
- package/doc/variables/models.GetCanChannelBusSpeedsRequest-1.html +1 -1
- package/doc/variables/models.GetCanChannelBusSpeedsResponse-1.html +1 -1
- package/doc/variables/models.GetCanFdBusSpeedsRequest-1.html +1 -1
- package/doc/variables/models.GetCanFdBusSpeedsResponse-1.html +1 -1
- package/doc/variables/models.GetChannelsFromLogFileRequest-1.html +1 -1
- package/doc/variables/models.GetChannelsFromLogFileResponse-1.html +1 -1
- package/doc/variables/models.GetClassicCanBusSpeedsRequest-1.html +1 -1
- package/doc/variables/models.GetClassicCanBusSpeedsResponse-1.html +1 -1
- package/doc/variables/models.GetDataProcessorResponse-1.html +1 -1
- package/doc/variables/models.GetDevicesRequest-1.html +1 -1
- package/doc/variables/models.GetDevicesResponse-1.html +1 -1
- package/doc/variables/models.GetFrameDefinitionsFromDatabaseFilesRequest-1.html +1 -1
- package/doc/variables/models.GetLicensesResponse-1.html +1 -1
- package/doc/variables/models.GetLogFileFormatsRequest-1.html +1 -1
- package/doc/variables/models.GetLogFileFormatsResponse-1.html +1 -1
- package/doc/variables/models.GetLogLevelResponse-1.html +1 -1
- package/doc/variables/models.GetScheduleTablesFromDatabaseFilesRequest-1.html +1 -1
- package/doc/variables/models.GetScheduleTablesFromDatabaseFilesResponse-1.html +1 -1
- package/doc/variables/models.GetServiceExtensionInfoRequest-1.html +1 -1
- package/doc/variables/models.GetServiceExtensionInfoResponse-1.html +1 -1
- package/doc/variables/models.GetSignalDataFromMessageDataRequest-1.html +1 -1
- package/doc/variables/models.GetSignalDataFromMessageDataResponse-1.html +1 -1
- package/doc/variables/models.GetSourceResponse-1.html +1 -1
- package/doc/variables/models.GetTargetResponse-1.html +1 -1
- package/doc/variables/models.IdentifierRequest-1.html +1 -1
- package/doc/variables/models.IdentifiersRequest-1.html +1 -1
- package/doc/variables/models.InstallServiceExtensionRequest-1.html +1 -1
- package/doc/variables/models.InterpreterSettings-1.html +1 -1
- package/doc/variables/models.J1939InterpreterSettings-1.html +1 -1
- package/doc/variables/models.LicenseInformation-1.html +1 -1
- package/doc/variables/models.Licenses-1.html +1 -1
- package/doc/variables/models.LinChannelConfiguration-1.html +1 -1
- package/doc/variables/models.LinFrameFlags-1.html +1 -1
- package/doc/variables/models.LogMessage-1.html +1 -1
- package/doc/variables/models.LogMessages-1.html +1 -1
- package/doc/variables/models.LogReplaySettings-1.html +1 -1
- package/doc/variables/models.LogReplaySettings_ChannelIdentifiersEntry-1.html +1 -1
- package/doc/variables/models.LogReplayStatus-1.html +1 -1
- package/doc/variables/models.LoggerStatus-1.html +1 -0
- package/doc/variables/models.MeasurementEventArgs-1.html +1 -1
- package/doc/variables/models.MeasurementSetup-1.html +1 -1
- package/doc/variables/models.MessageLoggerSettings-1.html +1 -1
- package/doc/variables/models.NodeStatus-1.html +1 -1
- package/doc/variables/models.NodeStatuses-1.html +1 -1
- package/doc/variables/models.OnlineStatus-1.html +1 -1
- package/doc/variables/models.PeriodicTransmissionSettings-1.html +1 -1
- package/doc/variables/models.RequestLinMessageRequest-1.html +1 -1
- package/doc/variables/models.ScheduleTable-1.html +1 -1
- package/doc/variables/models.ScheduleTableEntry-1.html +1 -1
- package/doc/variables/models.SendLinWakeupFrameRequest-1.html +1 -1
- package/doc/variables/models.SendMessageRequest-1.html +1 -1
- package/doc/variables/models.ServiceExtensionSettings-1.html +1 -1
- package/doc/variables/models.SetLogLevelRequest-1.html +1 -1
- package/doc/variables/models.SetMeasurementSetupRequest-1.html +1 -1
- package/doc/variables/models.SetSignalDataToMessageDataRequest-1.html +1 -1
- package/doc/variables/models.SetSignalDataToMessageDataResponse-1.html +1 -1
- package/doc/variables/models.SignalDefinition-1.html +1 -1
- package/doc/variables/models.SignalDefinition_EnumValuesEntry-1.html +1 -1
- package/doc/variables/models.SignalDefinitions-1.html +1 -1
- package/doc/variables/models.SignalFilterSettings-1.html +1 -0
- package/doc/variables/models.SignalLoggerSettings-1.html +1 -0
- package/doc/variables/models.SignalValue-1.html +1 -1
- package/doc/variables/models.SignalValueTrigger-1.html +1 -1
- package/doc/variables/models.SourceNodeProperties-1.html +1 -1
- package/doc/variables/models.StartPeriodicTransmissionRequest-1.html +1 -1
- package/doc/variables/models.StartPeriodicTransmissionResponse-1.html +1 -1
- package/doc/variables/models.TargetNodeProperties-1.html +1 -1
- package/doc/variables/models.TriggerSettings-1.html +1 -1
- package/doc/variables/models.UninstallServiceExtensionRequest-1.html +1 -1
- package/doc/variables/models.UpdateLinMessageRequest-1.html +1 -1
- package/doc/variables/models.UpdatePeriodicTransmissionRequest-1.html +1 -1
- package/doc/variables/models.WriteFrame-1.html +1 -1
- package/doc/variables/models.defaultUserSettings.html +2 -2
- package/package.json +14 -1
- package/doc/functions/models.messageLoggerStateFromJSON.html +0 -1
- package/doc/functions/models.messageLoggerStateToJSON.html +0 -1
- package/doc/interfaces/models.CanBusSpeed.html +0 -14
- package/doc/interfaces/models.MessageLoggerStatus.html +0 -3
- package/doc/variables/models.CanBusSpeed-1.html +0 -1
- package/doc/variables/models.MessageLoggerStatus-1.html +0 -1
package/dist/controls.mjs
CHANGED
|
@@ -1,205 +1,208 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { C as
|
|
3
|
-
import { jsx as
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import { FormControlLabel as
|
|
7
|
-
import { LineArrowDownIcon as
|
|
8
|
-
import
|
|
1
|
+
import { u as ne, a as hn, b as bn, r as pn, c as le, d as qe, e as He } from "./index.mjs";
|
|
2
|
+
import { C as ea, D as na, L as ta, g as ra, f as aa, M as ia, O as sa, R as la, U as da, W as oa } from "./index.mjs";
|
|
3
|
+
import { jsx as s, jsxs as T, Fragment as ce } from "react/jsx-runtime";
|
|
4
|
+
import * as be from "react";
|
|
5
|
+
import we, { useCallback as w, useRef as Ke, useState as U, useEffect as z, useMemo as O, Fragment as Sn } from "react";
|
|
6
|
+
import { FormControlLabel as Qe, Checkbox as xn, Box as xe, styled as V, Button as Nn, IconButton as Xe, Popover as vn, MenuItem as We, FormControl as Ye, Stack as Je, TextField as Ze, InputAdornment as Ee, Radio as Cn, RadioGroup as In, Divider as $n, Tooltip as Se, InputLabel as Mn, Select as Fn, FormHelperText as Ln, ListSubheader as wn, Dialog as Ve, DialogTitle as Ge, DialogContent as en, DialogActions as Re, Autocomplete as Rn, TableContainer as Wn, Table as An, TableHead as _n, TableRow as Be, TableCell as Fe, TableBody as kn, Toolbar as En, Typography as nn, ToggleButtonGroup as Bn, toggleButtonGroupClasses as Ue, ButtonGroup as Un, buttonGroupClasses as Ce, Paper as yn, ToggleButton as On, Menu as Pn, ListItemIcon as jn, ListItemText as ye } from "@mui/material";
|
|
7
|
+
import { LineArrowDownIcon as tn, LineArrowUpIcon as Dn, CloseIcon as zn } from "./icons.mjs";
|
|
8
|
+
import { v4 as Tn } from "uuid";
|
|
9
|
+
import { SimpleTreeView as rn, TreeItem as pe } from "@mui/x-tree-view";
|
|
10
|
+
import { getFrameDefinitions as qn } from "./ipc.mjs";
|
|
11
|
+
import ge from "fast-deep-equal";
|
|
9
12
|
import "long";
|
|
10
|
-
import { C as
|
|
11
|
-
function
|
|
13
|
+
import { C as ee, W as an } from "./measurement_settings.mjs";
|
|
14
|
+
function sn({
|
|
12
15
|
id: e = void 0,
|
|
13
16
|
label: n,
|
|
14
17
|
checked: t,
|
|
15
18
|
onChange: r,
|
|
16
19
|
disabled: a = !1,
|
|
17
|
-
size:
|
|
20
|
+
size: l = "small",
|
|
18
21
|
sx: u = void 0
|
|
19
22
|
}) {
|
|
20
|
-
const
|
|
23
|
+
const d = w((i) => {
|
|
21
24
|
if (i.key === "Enter" && !i.ctrlKey && !i.altKey && !i.shiftKey) {
|
|
22
25
|
i.preventDefault();
|
|
23
26
|
return;
|
|
24
27
|
}
|
|
25
28
|
}, []);
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
|
|
29
|
+
return /* @__PURE__ */ s(
|
|
30
|
+
Qe,
|
|
28
31
|
{
|
|
29
32
|
id: e,
|
|
30
33
|
"aria-label": e,
|
|
31
34
|
disabled: a,
|
|
32
35
|
"aria-disabled": a,
|
|
33
|
-
control: /* @__PURE__ */
|
|
36
|
+
control: /* @__PURE__ */ s(xn, { size: l, checked: t, onChange: (i, o) => r(o), onKeyDown: d }),
|
|
34
37
|
label: n,
|
|
35
38
|
slotProps: { typography: { noWrap: !0 } },
|
|
36
39
|
sx: u
|
|
37
40
|
}
|
|
38
41
|
);
|
|
39
42
|
}
|
|
40
|
-
var
|
|
41
|
-
function
|
|
43
|
+
var Ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
44
|
+
function ln(e) {
|
|
42
45
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
43
46
|
}
|
|
44
|
-
function
|
|
47
|
+
function Hn(e) {
|
|
45
48
|
var n = typeof e;
|
|
46
49
|
return e != null && (n == "object" || n == "function");
|
|
47
50
|
}
|
|
48
|
-
var
|
|
49
|
-
return
|
|
50
|
-
},
|
|
51
|
-
function
|
|
52
|
-
for (var n = e.length; n-- &&
|
|
51
|
+
var Ae = Hn, Kn = typeof Ie == "object" && Ie && Ie.Object === Object && Ie, Qn = Kn, Xn = Qn, Yn = typeof self == "object" && self && self.Object === Object && self, Jn = Xn || Yn || Function("return this")(), dn = Jn, Zn = dn, Vn = function() {
|
|
52
|
+
return Zn.Date.now();
|
|
53
|
+
}, Gn = Vn, et = /\s/;
|
|
54
|
+
function nt(e) {
|
|
55
|
+
for (var n = e.length; n-- && et.test(e.charAt(n)); )
|
|
53
56
|
;
|
|
54
57
|
return n;
|
|
55
58
|
}
|
|
56
|
-
var
|
|
57
|
-
function
|
|
58
|
-
return e && e.slice(0,
|
|
59
|
+
var tt = nt, rt = tt, at = /^\s+/;
|
|
60
|
+
function it(e) {
|
|
61
|
+
return e && e.slice(0, rt(e) + 1).replace(at, "");
|
|
59
62
|
}
|
|
60
|
-
var
|
|
61
|
-
function
|
|
62
|
-
var n =
|
|
63
|
+
var st = it, lt = dn, dt = lt.Symbol, on = dt, Oe = on, un = Object.prototype, ot = un.hasOwnProperty, ut = un.toString, he = Oe ? Oe.toStringTag : void 0;
|
|
64
|
+
function ct(e) {
|
|
65
|
+
var n = ot.call(e, he), t = e[he];
|
|
63
66
|
try {
|
|
64
|
-
e[
|
|
67
|
+
e[he] = void 0;
|
|
65
68
|
var r = !0;
|
|
66
69
|
} catch {
|
|
67
70
|
}
|
|
68
|
-
var a =
|
|
69
|
-
return r && (n ? e[
|
|
71
|
+
var a = ut.call(e);
|
|
72
|
+
return r && (n ? e[he] = t : delete e[he]), a;
|
|
70
73
|
}
|
|
71
|
-
var
|
|
72
|
-
function
|
|
73
|
-
return
|
|
74
|
+
var ft = ct, gt = Object.prototype, mt = gt.toString;
|
|
75
|
+
function ht(e) {
|
|
76
|
+
return mt.call(e);
|
|
74
77
|
}
|
|
75
|
-
var
|
|
76
|
-
function
|
|
77
|
-
return e == null ? e === void 0 ?
|
|
78
|
+
var bt = ht, Pe = on, pt = ft, St = bt, xt = "[object Null]", Nt = "[object Undefined]", je = Pe ? Pe.toStringTag : void 0;
|
|
79
|
+
function vt(e) {
|
|
80
|
+
return e == null ? e === void 0 ? Nt : xt : je && je in Object(e) ? pt(e) : St(e);
|
|
78
81
|
}
|
|
79
|
-
var
|
|
80
|
-
function
|
|
82
|
+
var Ct = vt;
|
|
83
|
+
function It(e) {
|
|
81
84
|
return e != null && typeof e == "object";
|
|
82
85
|
}
|
|
83
|
-
var
|
|
84
|
-
function
|
|
85
|
-
return typeof e == "symbol" ||
|
|
86
|
+
var $t = It, Mt = Ct, Ft = $t, Lt = "[object Symbol]";
|
|
87
|
+
function wt(e) {
|
|
88
|
+
return typeof e == "symbol" || Ft(e) && Mt(e) == Lt;
|
|
86
89
|
}
|
|
87
|
-
var
|
|
88
|
-
function
|
|
90
|
+
var Rt = wt, Wt = st, De = Ae, At = Rt, ze = NaN, _t = /^[-+]0x[0-9a-f]+$/i, kt = /^0b[01]+$/i, Et = /^0o[0-7]+$/i, Bt = parseInt;
|
|
91
|
+
function Ut(e) {
|
|
89
92
|
if (typeof e == "number")
|
|
90
93
|
return e;
|
|
91
|
-
if (
|
|
92
|
-
return
|
|
93
|
-
if (
|
|
94
|
+
if (At(e))
|
|
95
|
+
return ze;
|
|
96
|
+
if (De(e)) {
|
|
94
97
|
var n = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
95
|
-
e =
|
|
98
|
+
e = De(n) ? n + "" : n;
|
|
96
99
|
}
|
|
97
100
|
if (typeof e != "string")
|
|
98
101
|
return e === 0 ? e : +e;
|
|
99
|
-
e =
|
|
100
|
-
var t =
|
|
101
|
-
return t ||
|
|
102
|
+
e = Wt(e);
|
|
103
|
+
var t = kt.test(e);
|
|
104
|
+
return t || Et.test(e) ? Bt(e.slice(2), t ? 2 : 8) : _t.test(e) ? ze : +e;
|
|
102
105
|
}
|
|
103
|
-
var
|
|
104
|
-
function
|
|
105
|
-
var r, a,
|
|
106
|
+
var yt = Ut, Ot = Ae, Le = Gn, Te = yt, Pt = "Expected a function", jt = Math.max, Dt = Math.min;
|
|
107
|
+
function zt(e, n, t) {
|
|
108
|
+
var r, a, l, u, d, i, o = 0, g = !1, c = !1, I = !0;
|
|
106
109
|
if (typeof e != "function")
|
|
107
|
-
throw new TypeError(
|
|
108
|
-
n = Te(n) || 0,
|
|
109
|
-
function N(
|
|
110
|
-
var
|
|
111
|
-
return r = a = void 0, o =
|
|
110
|
+
throw new TypeError(Pt);
|
|
111
|
+
n = Te(n) || 0, Ot(t) && (g = !!t.leading, c = "maxWait" in t, l = c ? jt(Te(t.maxWait) || 0, n) : l, I = "trailing" in t ? !!t.trailing : I);
|
|
112
|
+
function N(M) {
|
|
113
|
+
var b = r, $ = a;
|
|
114
|
+
return r = a = void 0, o = M, u = e.apply($, b), u;
|
|
112
115
|
}
|
|
113
|
-
function
|
|
114
|
-
return o =
|
|
116
|
+
function m(M) {
|
|
117
|
+
return o = M, d = setTimeout(F, n), g ? N(M) : u;
|
|
115
118
|
}
|
|
116
|
-
function f(
|
|
117
|
-
var
|
|
118
|
-
return
|
|
119
|
+
function f(M) {
|
|
120
|
+
var b = M - i, $ = M - o, R = n - b;
|
|
121
|
+
return c ? Dt(R, l - $) : R;
|
|
119
122
|
}
|
|
120
|
-
function
|
|
121
|
-
var
|
|
122
|
-
return i === void 0 ||
|
|
123
|
+
function h(M) {
|
|
124
|
+
var b = M - i, $ = M - o;
|
|
125
|
+
return i === void 0 || b >= n || b < 0 || c && $ >= l;
|
|
123
126
|
}
|
|
124
|
-
function
|
|
125
|
-
var
|
|
126
|
-
if (
|
|
127
|
-
return
|
|
128
|
-
|
|
127
|
+
function F() {
|
|
128
|
+
var M = Le();
|
|
129
|
+
if (h(M))
|
|
130
|
+
return p(M);
|
|
131
|
+
d = setTimeout(F, f(M));
|
|
129
132
|
}
|
|
130
|
-
function
|
|
131
|
-
return
|
|
133
|
+
function p(M) {
|
|
134
|
+
return d = void 0, I && r ? N(M) : (r = a = void 0, u);
|
|
132
135
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
136
|
+
function L() {
|
|
137
|
+
d !== void 0 && clearTimeout(d), o = 0, r = i = a = d = void 0;
|
|
135
138
|
}
|
|
136
|
-
function
|
|
137
|
-
return
|
|
139
|
+
function S() {
|
|
140
|
+
return d === void 0 ? u : p(Le());
|
|
138
141
|
}
|
|
139
|
-
function
|
|
140
|
-
var
|
|
141
|
-
if (r = arguments, a = this, i =
|
|
142
|
-
if (
|
|
143
|
-
return
|
|
144
|
-
if (
|
|
145
|
-
return clearTimeout(
|
|
142
|
+
function v() {
|
|
143
|
+
var M = Le(), b = h(M);
|
|
144
|
+
if (r = arguments, a = this, i = M, b) {
|
|
145
|
+
if (d === void 0)
|
|
146
|
+
return m(i);
|
|
147
|
+
if (c)
|
|
148
|
+
return clearTimeout(d), d = setTimeout(F, n), N(i);
|
|
146
149
|
}
|
|
147
|
-
return
|
|
150
|
+
return d === void 0 && (d = setTimeout(F, n)), u;
|
|
148
151
|
}
|
|
149
|
-
return
|
|
152
|
+
return v.cancel = L, v.flush = S, v;
|
|
150
153
|
}
|
|
151
|
-
var
|
|
152
|
-
const
|
|
153
|
-
var
|
|
154
|
-
function
|
|
154
|
+
var cn = zt;
|
|
155
|
+
const Tt = /* @__PURE__ */ ln(cn);
|
|
156
|
+
var qt = cn, Ht = Ae, Kt = "Expected a function";
|
|
157
|
+
function Qt(e, n, t) {
|
|
155
158
|
var r = !0, a = !0;
|
|
156
159
|
if (typeof e != "function")
|
|
157
|
-
throw new TypeError(
|
|
158
|
-
return
|
|
160
|
+
throw new TypeError(Kt);
|
|
161
|
+
return Ht(t) && (r = "leading" in t ? !!t.leading : r, a = "trailing" in t ? !!t.trailing : a), qt(e, n, {
|
|
159
162
|
leading: r,
|
|
160
163
|
maxWait: n,
|
|
161
164
|
trailing: a
|
|
162
165
|
});
|
|
163
166
|
}
|
|
164
|
-
var
|
|
165
|
-
const
|
|
167
|
+
var Xt = Qt;
|
|
168
|
+
const Yt = /* @__PURE__ */ ln(Xt), Jt = (e, n, t, r) => {
|
|
166
169
|
switch (n) {
|
|
167
170
|
case "debounce":
|
|
168
|
-
return
|
|
171
|
+
return Tt(e, t, r);
|
|
169
172
|
case "throttle":
|
|
170
|
-
return
|
|
173
|
+
return Yt(e, t, r);
|
|
171
174
|
default:
|
|
172
175
|
return e;
|
|
173
176
|
}
|
|
174
|
-
},
|
|
177
|
+
}, Zt = (
|
|
175
178
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
176
179
|
(e) => {
|
|
177
|
-
const n =
|
|
178
|
-
return
|
|
180
|
+
const n = be.useRef(e);
|
|
181
|
+
return be.useEffect(() => {
|
|
179
182
|
n.current = e;
|
|
180
|
-
}),
|
|
183
|
+
}), be.useMemo(() => (...t) => {
|
|
181
184
|
var r;
|
|
182
185
|
return (r = n.current) === null || r === void 0 ? void 0 : r.call(n, ...t);
|
|
183
186
|
}, []);
|
|
184
187
|
}
|
|
185
|
-
),
|
|
188
|
+
), Vt = (
|
|
186
189
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
187
190
|
(e) => {
|
|
188
|
-
const [n, t] =
|
|
191
|
+
const [n, t] = be.useState((e == null ? void 0 : e.current) || null);
|
|
189
192
|
return e && setTimeout(() => {
|
|
190
193
|
e.current !== n && t(e.current);
|
|
191
|
-
}, 0), { refProxy:
|
|
194
|
+
}, 0), { refProxy: be.useMemo(() => new Proxy((a) => {
|
|
192
195
|
a !== n && t(a);
|
|
193
196
|
}, {
|
|
194
|
-
get(a,
|
|
195
|
-
return
|
|
197
|
+
get(a, l) {
|
|
198
|
+
return l === "current" ? n : a[l];
|
|
196
199
|
},
|
|
197
|
-
set(a,
|
|
198
|
-
return
|
|
200
|
+
set(a, l, u) {
|
|
201
|
+
return l === "current" ? t(u) : a[l] = u, !0;
|
|
199
202
|
}
|
|
200
203
|
}), [n]), refElement: n, setRefElement: t };
|
|
201
204
|
}
|
|
202
|
-
),
|
|
205
|
+
), Gt = (e, n) => n === "border-box" ? {
|
|
203
206
|
width: e.borderBoxSize[0].inlineSize,
|
|
204
207
|
height: e.borderBoxSize[0].blockSize
|
|
205
208
|
} : n === "content-box" ? {
|
|
@@ -209,136 +212,136 @@ const At = /* @__PURE__ */ De(Rt), Tt = (e, n, t, r) => {
|
|
|
209
212
|
width: e.contentRect.width,
|
|
210
213
|
height: e.contentRect.height
|
|
211
214
|
};
|
|
212
|
-
function
|
|
213
|
-
const o =
|
|
215
|
+
function er({ skipOnMount: e = !1, refreshMode: n, refreshRate: t = 1e3, refreshOptions: r, handleWidth: a = !0, handleHeight: l = !0, targetRef: u, observerOptions: d, onResize: i } = {}) {
|
|
216
|
+
const o = Ke(e), g = Zt(i), [c, I] = U({
|
|
214
217
|
width: void 0,
|
|
215
218
|
height: void 0
|
|
216
|
-
}), { refProxy: N, refElement:
|
|
217
|
-
if (!a && !
|
|
219
|
+
}), { refProxy: N, refElement: m } = Vt(u), { box: f } = d || {}, h = w((p) => {
|
|
220
|
+
if (!a && !l)
|
|
218
221
|
return;
|
|
219
222
|
if (o.current) {
|
|
220
223
|
o.current = !1;
|
|
221
224
|
return;
|
|
222
225
|
}
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
const
|
|
226
|
-
|
|
227
|
-
width:
|
|
228
|
-
height:
|
|
229
|
-
entry:
|
|
230
|
-
}),
|
|
226
|
+
const L = (S, v) => a && S.width !== v.width || l && S.height !== v.height;
|
|
227
|
+
p.forEach((S) => {
|
|
228
|
+
const v = Gt(S, f);
|
|
229
|
+
I((M) => L(M, v) ? (g == null || g({
|
|
230
|
+
width: v.width,
|
|
231
|
+
height: v.height,
|
|
232
|
+
entry: S
|
|
233
|
+
}), v) : M);
|
|
231
234
|
});
|
|
232
|
-
}, [a,
|
|
233
|
-
|
|
235
|
+
}, [a, l, o, f]), F = w(Jt(h, n, t, r), [
|
|
236
|
+
h,
|
|
234
237
|
n,
|
|
235
238
|
t,
|
|
236
239
|
r
|
|
237
240
|
]);
|
|
238
|
-
return
|
|
239
|
-
let
|
|
240
|
-
return
|
|
241
|
+
return z(() => {
|
|
242
|
+
let p;
|
|
243
|
+
return m ? (p = new window.ResizeObserver(F), p.observe(m, d)) : (c.width || c.height) && (g == null || g({
|
|
241
244
|
width: null,
|
|
242
245
|
height: null,
|
|
243
246
|
entry: null
|
|
244
|
-
}),
|
|
245
|
-
var
|
|
246
|
-
(
|
|
247
|
+
}), I({ width: void 0, height: void 0 })), () => {
|
|
248
|
+
var L, S, v;
|
|
249
|
+
(L = p == null ? void 0 : p.disconnect) === null || L === void 0 || L.call(p), (v = (S = F).cancel) === null || v === void 0 || v.call(S);
|
|
247
250
|
};
|
|
248
|
-
}, [
|
|
251
|
+
}, [F, m]), Object.assign({ ref: N }, c);
|
|
249
252
|
}
|
|
250
|
-
const
|
|
251
|
-
const { ref: e, width: n } =
|
|
253
|
+
const de = () => {
|
|
254
|
+
const { ref: e, width: n } = er();
|
|
252
255
|
return {
|
|
253
256
|
ref: e,
|
|
254
257
|
width: n
|
|
255
258
|
};
|
|
256
|
-
},
|
|
257
|
-
const [n, t] =
|
|
258
|
-
return
|
|
259
|
+
}, Ne = (...e) => {
|
|
260
|
+
const [n, t] = U();
|
|
261
|
+
return z(() => {
|
|
259
262
|
const r = e.filter((a) => a.width !== void 0).map((a) => Number(a.width.toFixed(1)));
|
|
260
263
|
if (r.length === e.length) {
|
|
261
264
|
const a = Math.max(...r);
|
|
262
|
-
t((
|
|
265
|
+
t((l) => l === void 0 ? a : l);
|
|
263
266
|
}
|
|
264
267
|
}, [e]), n;
|
|
265
268
|
};
|
|
266
|
-
function
|
|
267
|
-
return /* @__PURE__ */
|
|
269
|
+
function oe({ columnItem: e, width: n = void 0, children: t = void 0 }) {
|
|
270
|
+
return /* @__PURE__ */ s("div", { ref: e.ref, children: /* @__PURE__ */ s(xe, { sx: { width: n }, children: t }) });
|
|
268
271
|
}
|
|
269
|
-
const
|
|
272
|
+
const Z = V(Nn)(() => ({
|
|
270
273
|
whiteSpace: "nowrap",
|
|
271
274
|
minWidth: "max-content"
|
|
272
275
|
}));
|
|
273
|
-
function
|
|
274
|
-
const r =
|
|
275
|
-
(a) => {
|
|
276
|
-
n(a), t && t();
|
|
276
|
+
function Er({ items: e, onSelect: n, onClose: t = void 0 }) {
|
|
277
|
+
const r = w(
|
|
278
|
+
(a, l) => {
|
|
279
|
+
n(a, l), t && t();
|
|
277
280
|
},
|
|
278
281
|
[t, n]
|
|
279
282
|
);
|
|
280
|
-
return /* @__PURE__ */
|
|
283
|
+
return /* @__PURE__ */ s(ce, { children: e.map((a) => /* @__PURE__ */ s(We, { onClick: () => r(a.key, a.text), children: a.text }, a.key)) });
|
|
281
284
|
}
|
|
282
|
-
function
|
|
285
|
+
function nr({
|
|
283
286
|
id: e = "dropdown-button",
|
|
284
287
|
startIcon: n = void 0,
|
|
285
288
|
endIcon: t = void 0,
|
|
286
289
|
text: r = void 0,
|
|
287
290
|
variant: a = "outlined",
|
|
288
|
-
color:
|
|
291
|
+
color: l = void 0,
|
|
289
292
|
size: u = "medium",
|
|
290
|
-
disabled:
|
|
293
|
+
disabled: d = !1,
|
|
291
294
|
children: i
|
|
292
295
|
}) {
|
|
293
|
-
const [o,
|
|
294
|
-
|
|
295
|
-
}, []), N =
|
|
296
|
-
|
|
297
|
-
}, []),
|
|
296
|
+
const [o, g] = U(null), c = !!o, I = w((f) => {
|
|
297
|
+
g(f.currentTarget);
|
|
298
|
+
}, []), N = w(() => {
|
|
299
|
+
g(null);
|
|
300
|
+
}, []), m = we.cloneElement(we.Children.only(i), {
|
|
298
301
|
onClose: N
|
|
299
302
|
});
|
|
300
|
-
return /* @__PURE__ */
|
|
301
|
-
!r && /* @__PURE__ */
|
|
302
|
-
|
|
303
|
+
return /* @__PURE__ */ T(ce, { children: [
|
|
304
|
+
!r && /* @__PURE__ */ s(
|
|
305
|
+
Xe,
|
|
303
306
|
{
|
|
304
307
|
id: e,
|
|
305
308
|
"data-testid": e,
|
|
306
|
-
"aria-controls":
|
|
309
|
+
"aria-controls": c ? `${e}-popover` : void 0,
|
|
307
310
|
"aria-haspopup": "true",
|
|
308
|
-
"aria-expanded":
|
|
309
|
-
onClick:
|
|
311
|
+
"aria-expanded": c ? "true" : void 0,
|
|
312
|
+
onClick: I,
|
|
310
313
|
size: u,
|
|
311
|
-
color:
|
|
312
|
-
disabled:
|
|
314
|
+
color: l,
|
|
315
|
+
disabled: d,
|
|
313
316
|
children: n
|
|
314
317
|
}
|
|
315
318
|
),
|
|
316
|
-
r && /* @__PURE__ */
|
|
317
|
-
|
|
319
|
+
r && /* @__PURE__ */ s(
|
|
320
|
+
Z,
|
|
318
321
|
{
|
|
319
322
|
id: e,
|
|
320
323
|
"data-testid": e,
|
|
321
|
-
"aria-controls":
|
|
324
|
+
"aria-controls": c ? `${e}-popover` : void 0,
|
|
322
325
|
"aria-haspopup": "true",
|
|
323
|
-
"aria-expanded":
|
|
326
|
+
"aria-expanded": c ? "true" : void 0,
|
|
324
327
|
variant: a,
|
|
325
328
|
disableElevation: !0,
|
|
326
|
-
onClick:
|
|
329
|
+
onClick: I,
|
|
327
330
|
startIcon: n,
|
|
328
|
-
endIcon: t ?? /* @__PURE__ */
|
|
331
|
+
endIcon: t ?? /* @__PURE__ */ s(tn, {}),
|
|
329
332
|
size: u,
|
|
330
|
-
color:
|
|
331
|
-
disabled:
|
|
333
|
+
color: l,
|
|
334
|
+
disabled: d,
|
|
332
335
|
children: r
|
|
333
336
|
}
|
|
334
337
|
),
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
-
|
|
338
|
+
/* @__PURE__ */ s(
|
|
339
|
+
vn,
|
|
337
340
|
{
|
|
338
341
|
id: `${e}-popover`,
|
|
339
342
|
"aria-labelledby": e,
|
|
340
343
|
anchorEl: o,
|
|
341
|
-
open:
|
|
344
|
+
open: c,
|
|
342
345
|
onClose: N,
|
|
343
346
|
anchorOrigin: {
|
|
344
347
|
vertical: "bottom",
|
|
@@ -348,46 +351,46 @@ function jt({
|
|
|
348
351
|
vertical: "top",
|
|
349
352
|
horizontal: "left"
|
|
350
353
|
},
|
|
351
|
-
children:
|
|
354
|
+
children: m
|
|
352
355
|
}
|
|
353
356
|
)
|
|
354
357
|
] });
|
|
355
358
|
}
|
|
356
|
-
const
|
|
359
|
+
const tr = V("div")(({ top: e, left: n, width: t, height: r }) => ({
|
|
357
360
|
top: e,
|
|
358
361
|
left: n,
|
|
359
362
|
width: t,
|
|
360
363
|
height: r,
|
|
361
364
|
position: "absolute",
|
|
362
365
|
zIndex: 1
|
|
363
|
-
})),
|
|
366
|
+
})), rr = V("div")(({ top: e, left: n, width: t, height: r, position: a, theme: l }) => ({
|
|
364
367
|
top: e,
|
|
365
368
|
left: n,
|
|
366
369
|
width: t,
|
|
367
370
|
height: r,
|
|
368
371
|
position: "absolute",
|
|
369
372
|
zIndex: 2,
|
|
370
|
-
color:
|
|
371
|
-
backgroundColor:
|
|
373
|
+
color: l.palette.primary.contrastText,
|
|
374
|
+
backgroundColor: l.palette.primary.main,
|
|
372
375
|
display: "flex",
|
|
373
376
|
flexDirection: a === "left" || a === "right" ? "column" : "row",
|
|
374
377
|
borderTopLeftRadius: a === "top" || a === "left" ? 0 : 8,
|
|
375
378
|
borderTopRightRadius: a === "top" || a === "right" ? 0 : 8,
|
|
376
379
|
borderBottomRightRadius: a === "bottom" || a === "right" ? 0 : 8,
|
|
377
380
|
borderBottomLeftRadius: a === "bottom" || a === "left" ? 0 : 8
|
|
378
|
-
})),
|
|
379
|
-
function
|
|
381
|
+
})), $e = 8;
|
|
382
|
+
function Br({
|
|
380
383
|
id: e = void 0,
|
|
381
384
|
position: n,
|
|
382
385
|
parentWidth: t,
|
|
383
386
|
parentHeight: r,
|
|
384
387
|
maxLength: a,
|
|
385
|
-
dropDownSize:
|
|
388
|
+
dropDownSize: l,
|
|
386
389
|
autoHideTimeout: u = 0,
|
|
387
|
-
forceShow:
|
|
390
|
+
forceShow: d = !1,
|
|
388
391
|
children: i = null
|
|
389
392
|
}) {
|
|
390
|
-
const o =
|
|
393
|
+
const o = O(() => {
|
|
391
394
|
switch (n) {
|
|
392
395
|
case "left":
|
|
393
396
|
case "right":
|
|
@@ -398,7 +401,7 @@ function gr({
|
|
|
398
401
|
default:
|
|
399
402
|
return a;
|
|
400
403
|
}
|
|
401
|
-
}, [a, r, t, n]),
|
|
404
|
+
}, [a, r, t, n]), g = O(() => {
|
|
402
405
|
switch (n) {
|
|
403
406
|
case "left":
|
|
404
407
|
case "right":
|
|
@@ -406,45 +409,45 @@ function gr({
|
|
|
406
409
|
case "top":
|
|
407
410
|
return 0;
|
|
408
411
|
case "bottom":
|
|
409
|
-
return r -
|
|
412
|
+
return r - $e;
|
|
410
413
|
default:
|
|
411
414
|
return 0;
|
|
412
415
|
}
|
|
413
|
-
}, [o, r, n]),
|
|
416
|
+
}, [o, r, n]), c = O(() => {
|
|
414
417
|
switch (n) {
|
|
415
418
|
case "left":
|
|
416
419
|
return 0;
|
|
417
420
|
case "right":
|
|
418
|
-
return t -
|
|
421
|
+
return t - $e;
|
|
419
422
|
case "top":
|
|
420
423
|
case "bottom":
|
|
421
424
|
return (t - o) / 2;
|
|
422
425
|
default:
|
|
423
426
|
return 0;
|
|
424
427
|
}
|
|
425
|
-
}, [o, t, n]),
|
|
428
|
+
}, [o, t, n]), I = O(() => {
|
|
426
429
|
switch (n) {
|
|
427
430
|
case "left":
|
|
428
431
|
case "right":
|
|
429
|
-
return
|
|
432
|
+
return $e;
|
|
430
433
|
case "top":
|
|
431
434
|
case "bottom":
|
|
432
435
|
return o;
|
|
433
436
|
default:
|
|
434
437
|
return 0;
|
|
435
438
|
}
|
|
436
|
-
}, [o, n]), N =
|
|
439
|
+
}, [o, n]), N = O(() => {
|
|
437
440
|
switch (n) {
|
|
438
441
|
case "left":
|
|
439
442
|
case "right":
|
|
440
443
|
return o;
|
|
441
444
|
case "top":
|
|
442
445
|
case "bottom":
|
|
443
|
-
return
|
|
446
|
+
return $e;
|
|
444
447
|
default:
|
|
445
448
|
return 0;
|
|
446
449
|
}
|
|
447
|
-
}, [o, n]),
|
|
450
|
+
}, [o, n]), m = O(() => {
|
|
448
451
|
switch (n) {
|
|
449
452
|
case "left":
|
|
450
453
|
case "right":
|
|
@@ -452,169 +455,169 @@ function gr({
|
|
|
452
455
|
case "top":
|
|
453
456
|
return 0;
|
|
454
457
|
case "bottom":
|
|
455
|
-
return r -
|
|
458
|
+
return r - l;
|
|
456
459
|
default:
|
|
457
460
|
return 0;
|
|
458
461
|
}
|
|
459
|
-
}, [
|
|
462
|
+
}, [l, o, r, n]), f = O(() => {
|
|
460
463
|
switch (n) {
|
|
461
464
|
case "left":
|
|
462
465
|
return 0;
|
|
463
466
|
case "right":
|
|
464
|
-
return t -
|
|
467
|
+
return t - l;
|
|
465
468
|
case "top":
|
|
466
469
|
case "bottom":
|
|
467
470
|
return (t - o) / 2;
|
|
468
471
|
default:
|
|
469
472
|
return 0;
|
|
470
473
|
}
|
|
471
|
-
}, [
|
|
474
|
+
}, [l, o, t, n]), h = O(() => {
|
|
472
475
|
switch (n) {
|
|
473
476
|
case "left":
|
|
474
477
|
case "right":
|
|
475
|
-
return
|
|
478
|
+
return l;
|
|
476
479
|
case "top":
|
|
477
480
|
case "bottom":
|
|
478
481
|
return o;
|
|
479
482
|
default:
|
|
480
483
|
return 0;
|
|
481
484
|
}
|
|
482
|
-
}, [
|
|
485
|
+
}, [l, o, n]), F = O(() => {
|
|
483
486
|
switch (n) {
|
|
484
487
|
case "left":
|
|
485
488
|
case "right":
|
|
486
489
|
return o;
|
|
487
490
|
case "top":
|
|
488
491
|
case "bottom":
|
|
489
|
-
return
|
|
492
|
+
return l;
|
|
490
493
|
default:
|
|
491
494
|
return 0;
|
|
492
495
|
}
|
|
493
|
-
}, [
|
|
494
|
-
(
|
|
495
|
-
|
|
496
|
+
}, [l, o, n]), [p, L] = U(!1), S = w(
|
|
497
|
+
(M) => {
|
|
498
|
+
M.buttons === 0 && u && L(!0);
|
|
496
499
|
},
|
|
497
500
|
[u]
|
|
498
|
-
),
|
|
499
|
-
|
|
501
|
+
), v = w(() => {
|
|
502
|
+
L(!1);
|
|
500
503
|
}, []);
|
|
501
|
-
return
|
|
502
|
-
let
|
|
503
|
-
return
|
|
504
|
-
|
|
504
|
+
return z(() => {
|
|
505
|
+
let M;
|
|
506
|
+
return p && u && (M = setTimeout(() => L(!1), u)), () => {
|
|
507
|
+
M && clearTimeout(M);
|
|
505
508
|
};
|
|
506
|
-
}, [u,
|
|
507
|
-
/* @__PURE__ */
|
|
508
|
-
|
|
509
|
+
}, [u, p]), /* @__PURE__ */ T(ce, { children: [
|
|
510
|
+
/* @__PURE__ */ s(
|
|
511
|
+
tr,
|
|
509
512
|
{
|
|
510
513
|
id: e,
|
|
511
|
-
top:
|
|
512
|
-
left:
|
|
513
|
-
width:
|
|
514
|
+
top: g,
|
|
515
|
+
left: c,
|
|
516
|
+
width: I,
|
|
514
517
|
height: N,
|
|
515
518
|
"aria-haspopup": "true",
|
|
516
|
-
onMouseEnter:
|
|
519
|
+
onMouseEnter: S
|
|
517
520
|
}
|
|
518
521
|
),
|
|
519
|
-
(
|
|
520
|
-
|
|
522
|
+
(p || d === !0) && /* @__PURE__ */ s(
|
|
523
|
+
rr,
|
|
521
524
|
{
|
|
522
|
-
top:
|
|
525
|
+
top: m,
|
|
523
526
|
left: f,
|
|
524
|
-
width:
|
|
525
|
-
height:
|
|
527
|
+
width: h,
|
|
528
|
+
height: F,
|
|
526
529
|
position: n,
|
|
527
|
-
onMouseLeave:
|
|
530
|
+
onMouseLeave: v,
|
|
528
531
|
children: i
|
|
529
532
|
}
|
|
530
533
|
)
|
|
531
534
|
] });
|
|
532
535
|
}
|
|
533
|
-
function
|
|
536
|
+
function ue({
|
|
534
537
|
children: e,
|
|
535
538
|
fullWidth: n = !0,
|
|
536
539
|
spacing: t = "4px",
|
|
537
540
|
alignItems: r = "center"
|
|
538
541
|
}) {
|
|
539
|
-
return /* @__PURE__ */
|
|
542
|
+
return /* @__PURE__ */ s(Ye, { margin: "dense", fullWidth: n, variant: "standard", children: /* @__PURE__ */ s(Je, { direction: "row", spacing: t, alignItems: r, children: e }) });
|
|
540
543
|
}
|
|
541
|
-
const
|
|
544
|
+
const ar = V("input")(({ variant: e, theme: n }) => ({
|
|
542
545
|
...n.typography[e]
|
|
543
|
-
})),
|
|
546
|
+
})), ir = V("span")(({ variant: e, theme: n }) => ({
|
|
544
547
|
...n.typography[e]
|
|
545
548
|
}));
|
|
546
|
-
function
|
|
547
|
-
const a =
|
|
548
|
-
(
|
|
549
|
+
function sr({ value: e, onChange: n, ariaLabel: t = void 0, variant: r = "body1" }) {
|
|
550
|
+
const a = Ke(null), [l, u] = U(e), d = w(
|
|
551
|
+
(g) => u(g.target.value),
|
|
549
552
|
[]
|
|
550
|
-
), i =
|
|
551
|
-
(
|
|
552
|
-
(
|
|
553
|
+
), i = w(
|
|
554
|
+
(g) => {
|
|
555
|
+
(g.key === "Enter" || g.key === "Escape") && (g.key === "Escape" && (u(e), g.currentTarget.value = e), g.currentTarget.blur());
|
|
553
556
|
},
|
|
554
557
|
[e]
|
|
555
|
-
), o =
|
|
556
|
-
(
|
|
557
|
-
n(
|
|
558
|
+
), o = w(
|
|
559
|
+
(g) => {
|
|
560
|
+
n(g.target.value);
|
|
558
561
|
},
|
|
559
562
|
[n]
|
|
560
563
|
);
|
|
561
|
-
return
|
|
562
|
-
var
|
|
563
|
-
(
|
|
564
|
-
}, []), /* @__PURE__ */
|
|
565
|
-
|
|
564
|
+
return z(() => {
|
|
565
|
+
var g;
|
|
566
|
+
(g = a.current) == null || g.focus();
|
|
567
|
+
}, []), /* @__PURE__ */ s(
|
|
568
|
+
ar,
|
|
566
569
|
{
|
|
567
570
|
ref: a,
|
|
568
571
|
variant: r ?? "body1",
|
|
569
572
|
type: "text",
|
|
570
573
|
"aria-label": t,
|
|
571
|
-
value:
|
|
572
|
-
onChange:
|
|
574
|
+
value: l,
|
|
575
|
+
onChange: d,
|
|
573
576
|
onKeyDown: i,
|
|
574
577
|
onBlur: o
|
|
575
578
|
}
|
|
576
579
|
);
|
|
577
580
|
}
|
|
578
|
-
function
|
|
579
|
-
return /* @__PURE__ */
|
|
580
|
-
e && /* @__PURE__ */
|
|
581
|
-
!e && /* @__PURE__ */
|
|
581
|
+
function Ur({ editMode: e, value: n, onValueChange: t, ariaLabel: r = void 0, variant: a = "body1" }) {
|
|
582
|
+
return /* @__PURE__ */ T(ce, { children: [
|
|
583
|
+
e && /* @__PURE__ */ s(sr, { ariaLabel: r, value: n, onChange: t, variant: a }),
|
|
584
|
+
!e && /* @__PURE__ */ s(ir, { variant: a ?? "body1", children: n })
|
|
582
585
|
] });
|
|
583
586
|
}
|
|
584
|
-
function
|
|
587
|
+
function lr({
|
|
585
588
|
id: e = void 0,
|
|
586
589
|
label: n = void 0,
|
|
587
590
|
helperText: t = "",
|
|
588
591
|
value: r,
|
|
589
592
|
onChange: a = void 0,
|
|
590
|
-
onBlur:
|
|
593
|
+
onBlur: l = void 0,
|
|
591
594
|
disabled: u = !1,
|
|
592
|
-
error:
|
|
595
|
+
error: d = !1,
|
|
593
596
|
required: i = !1,
|
|
594
597
|
margin: o = "dense",
|
|
595
|
-
size:
|
|
596
|
-
fullWidth:
|
|
597
|
-
inputMode:
|
|
598
|
+
size: g = "small",
|
|
599
|
+
fullWidth: c = !1,
|
|
600
|
+
inputMode: I = void 0,
|
|
598
601
|
pattern: N = void 0,
|
|
599
|
-
startAdornment:
|
|
602
|
+
startAdornment: m = void 0,
|
|
600
603
|
endAdornment: f = void 0,
|
|
601
|
-
sx:
|
|
602
|
-
sxStartAdornment:
|
|
603
|
-
sxEndAdornment:
|
|
604
|
+
sx: h = void 0,
|
|
605
|
+
sxStartAdornment: F = void 0,
|
|
606
|
+
sxEndAdornment: p = void 0
|
|
604
607
|
}) {
|
|
605
|
-
const
|
|
606
|
-
(
|
|
607
|
-
a && a(
|
|
608
|
+
const L = w(
|
|
609
|
+
(b) => {
|
|
610
|
+
a && a(b.target.value);
|
|
608
611
|
},
|
|
609
612
|
[a]
|
|
610
|
-
),
|
|
611
|
-
if (
|
|
612
|
-
|
|
613
|
+
), S = w((b) => {
|
|
614
|
+
if (b.key === "Enter" && !b.ctrlKey && !b.altKey && !b.shiftKey) {
|
|
615
|
+
b.preventDefault(), b.stopPropagation(), document.activeElement instanceof HTMLElement && document.activeElement.blur();
|
|
613
616
|
return;
|
|
614
617
|
}
|
|
615
|
-
}, []),
|
|
616
|
-
return /* @__PURE__ */
|
|
617
|
-
|
|
618
|
+
}, []), v = F ?? { marginBottom: 1 }, M = p ?? { marginBottom: 1 };
|
|
619
|
+
return /* @__PURE__ */ s(
|
|
620
|
+
Ze,
|
|
618
621
|
{
|
|
619
622
|
id: e,
|
|
620
623
|
"aria-label": e,
|
|
@@ -622,277 +625,277 @@ function Ht({
|
|
|
622
625
|
label: n,
|
|
623
626
|
helperText: t,
|
|
624
627
|
margin: o,
|
|
625
|
-
size:
|
|
626
|
-
fullWidth:
|
|
628
|
+
size: g,
|
|
629
|
+
fullWidth: c,
|
|
627
630
|
variant: "standard",
|
|
628
631
|
value: r,
|
|
629
|
-
onChange:
|
|
630
|
-
onBlur:
|
|
632
|
+
onChange: L,
|
|
633
|
+
onBlur: l,
|
|
631
634
|
disabled: u,
|
|
632
635
|
"aria-disabled": u,
|
|
633
|
-
error:
|
|
636
|
+
error: d,
|
|
634
637
|
required: i,
|
|
635
638
|
slotProps: {
|
|
636
639
|
input: {
|
|
637
|
-
startAdornment:
|
|
638
|
-
endAdornment: f ? /* @__PURE__ */
|
|
640
|
+
startAdornment: m ? /* @__PURE__ */ s(Ee, { position: "start", sx: { ...v }, children: m }) : null,
|
|
641
|
+
endAdornment: f ? /* @__PURE__ */ s(Ee, { position: "end", sx: { ...M }, children: f }) : null
|
|
639
642
|
},
|
|
640
643
|
htmlInput: {
|
|
641
|
-
inputMode:
|
|
644
|
+
inputMode: I,
|
|
642
645
|
pattern: N
|
|
643
646
|
}
|
|
644
647
|
},
|
|
645
|
-
sx:
|
|
646
|
-
onKeyDown:
|
|
648
|
+
sx: h,
|
|
649
|
+
onKeyDown: S
|
|
647
650
|
}
|
|
648
651
|
);
|
|
649
652
|
}
|
|
650
|
-
function
|
|
653
|
+
function re({
|
|
651
654
|
id: e,
|
|
652
655
|
label: n = void 0,
|
|
653
656
|
helperText: t = "",
|
|
654
657
|
value: r,
|
|
655
658
|
onChange: a = void 0,
|
|
656
|
-
onBlur:
|
|
659
|
+
onBlur: l = void 0,
|
|
657
660
|
disabled: u = !1,
|
|
658
|
-
required:
|
|
661
|
+
required: d = !1,
|
|
659
662
|
margin: i = "dense",
|
|
660
663
|
size: o = "small",
|
|
661
|
-
fullWidth:
|
|
662
|
-
inputMode:
|
|
663
|
-
pattern:
|
|
664
|
+
fullWidth: g = !1,
|
|
665
|
+
inputMode: c = void 0,
|
|
666
|
+
pattern: I = void 0,
|
|
664
667
|
startAdornment: N = void 0,
|
|
665
|
-
endAdornment:
|
|
668
|
+
endAdornment: m = void 0,
|
|
666
669
|
sx: f = void 0,
|
|
667
|
-
sxStartAdornment:
|
|
668
|
-
sxEndAdornment:
|
|
669
|
-
error:
|
|
670
|
-
onErrorChange:
|
|
671
|
-
onValidate:
|
|
672
|
-
numberType:
|
|
673
|
-
minValue:
|
|
674
|
-
maxValue:
|
|
670
|
+
sxStartAdornment: h = void 0,
|
|
671
|
+
sxEndAdornment: F = void 0,
|
|
672
|
+
error: p = void 0,
|
|
673
|
+
onErrorChange: L = void 0,
|
|
674
|
+
onValidate: S = void 0,
|
|
675
|
+
numberType: v = void 0,
|
|
676
|
+
minValue: M = void 0,
|
|
677
|
+
maxValue: b = void 0
|
|
675
678
|
}) {
|
|
676
|
-
const [
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}, [r]),
|
|
680
|
-
|
|
681
|
-
}, [
|
|
682
|
-
const
|
|
683
|
-
(
|
|
684
|
-
const
|
|
685
|
-
let
|
|
686
|
-
return
|
|
679
|
+
const [$, R] = U(r), [k, _] = U(p !== void 0 ? p : !1);
|
|
680
|
+
z(() => {
|
|
681
|
+
R((x) => r !== x ? r : x);
|
|
682
|
+
}, [r]), z(() => {
|
|
683
|
+
_((x) => p !== void 0 && p !== x ? p : x);
|
|
684
|
+
}, [p]);
|
|
685
|
+
const W = w(
|
|
686
|
+
(x) => {
|
|
687
|
+
const B = Number.parseInt(x, x.startsWith("0x") ? 16 : 10);
|
|
688
|
+
let y = Number.isNaN(B);
|
|
689
|
+
return y || (y = M !== void 0 && B < M), y || (y = b !== void 0 && B > b), { val: x, err: y };
|
|
687
690
|
},
|
|
688
|
-
[
|
|
689
|
-
),
|
|
690
|
-
(
|
|
691
|
-
let
|
|
692
|
-
if (
|
|
693
|
-
return
|
|
694
|
-
const
|
|
695
|
-
return
|
|
691
|
+
[b, M]
|
|
692
|
+
), j = w(
|
|
693
|
+
(x) => {
|
|
694
|
+
let B = !1;
|
|
695
|
+
if (x.endsWith(",") || x.endsWith("."))
|
|
696
|
+
return B = !0, { val: x, err: B };
|
|
697
|
+
const y = Number.parseFloat(x.replace(",", "."));
|
|
698
|
+
return B = Number.isNaN(y), B || (B = M !== void 0 && y < M), B || (B = b !== void 0 && y > b), { val: y.toString(), err: B };
|
|
696
699
|
},
|
|
697
|
-
[
|
|
698
|
-
),
|
|
699
|
-
(
|
|
700
|
-
[
|
|
701
|
-
),
|
|
702
|
-
(
|
|
703
|
-
let
|
|
704
|
-
return !
|
|
700
|
+
[b, M]
|
|
701
|
+
), X = w(
|
|
702
|
+
(x) => v === "int" ? W(x) : j(x),
|
|
703
|
+
[v, j, W]
|
|
704
|
+
), P = w(
|
|
705
|
+
(x, B) => {
|
|
706
|
+
let y = x, D = !1;
|
|
707
|
+
return !d && (y === void 0 || y === "") ? { val: y, err: D } : (v !== void 0 && ({ val: y, err: D } = X(x)), !D && S && ({ val: y, err: D } = S(y, B)), { val: y, err: D });
|
|
705
708
|
},
|
|
706
|
-
[
|
|
707
|
-
),
|
|
708
|
-
(
|
|
709
|
-
const { val:
|
|
710
|
-
|
|
709
|
+
[S, X]
|
|
710
|
+
), A = w(
|
|
711
|
+
(x) => {
|
|
712
|
+
const { val: B, err: y } = P(x, "change");
|
|
713
|
+
_(y), R(y ? x : B), !y && a && a(B);
|
|
711
714
|
},
|
|
712
|
-
[a,
|
|
713
|
-
),
|
|
714
|
-
const { val:
|
|
715
|
-
|
|
716
|
-
}, [
|
|
717
|
-
return
|
|
718
|
-
|
|
719
|
-
}, [
|
|
720
|
-
let
|
|
721
|
-
u || (
|
|
722
|
-
}, [u]), /* @__PURE__ */
|
|
723
|
-
|
|
715
|
+
[a, P]
|
|
716
|
+
), C = w(() => {
|
|
717
|
+
const { val: x, err: B } = P($, "blur");
|
|
718
|
+
_(B), !B && l && l(x);
|
|
719
|
+
}, [l, P, $]);
|
|
720
|
+
return z(() => {
|
|
721
|
+
L && L(k);
|
|
722
|
+
}, [k, L]), z(() => {
|
|
723
|
+
let x = !1;
|
|
724
|
+
u || (x = P($, "blur").err), _(x);
|
|
725
|
+
}, [u]), /* @__PURE__ */ s(
|
|
726
|
+
lr,
|
|
724
727
|
{
|
|
725
728
|
id: e,
|
|
726
729
|
label: n,
|
|
727
730
|
helperText: t,
|
|
728
|
-
value:
|
|
729
|
-
onChange:
|
|
730
|
-
onBlur:
|
|
731
|
+
value: $,
|
|
732
|
+
onChange: A,
|
|
733
|
+
onBlur: C,
|
|
731
734
|
disabled: u,
|
|
732
|
-
error:
|
|
733
|
-
required:
|
|
735
|
+
error: k,
|
|
736
|
+
required: d,
|
|
734
737
|
margin: i,
|
|
735
738
|
size: o,
|
|
736
|
-
fullWidth:
|
|
737
|
-
inputMode:
|
|
738
|
-
pattern:
|
|
739
|
+
fullWidth: g,
|
|
740
|
+
inputMode: c,
|
|
741
|
+
pattern: I,
|
|
739
742
|
startAdornment: N,
|
|
740
|
-
endAdornment:
|
|
743
|
+
endAdornment: m,
|
|
741
744
|
sx: f,
|
|
742
|
-
sxStartAdornment:
|
|
743
|
-
sxEndAdornment:
|
|
745
|
+
sxStartAdornment: h,
|
|
746
|
+
sxEndAdornment: F
|
|
744
747
|
}
|
|
745
748
|
);
|
|
746
749
|
}
|
|
747
|
-
function
|
|
750
|
+
function yr({
|
|
748
751
|
minValue: e,
|
|
749
752
|
maxValue: n,
|
|
750
753
|
onChange: t = void 0,
|
|
751
754
|
onBlur: r = void 0,
|
|
752
755
|
minError: a = void 0,
|
|
753
|
-
onMinErrorChange:
|
|
756
|
+
onMinErrorChange: l = void 0,
|
|
754
757
|
maxError: u = void 0,
|
|
755
|
-
onMaxErrorChange:
|
|
758
|
+
onMaxErrorChange: d = void 0,
|
|
756
759
|
onMinValidate: i = void 0,
|
|
757
760
|
onMaxValidate: o = void 0,
|
|
758
|
-
minDisabled:
|
|
759
|
-
maxDisabled:
|
|
760
|
-
unit:
|
|
761
|
+
minDisabled: g = !1,
|
|
762
|
+
maxDisabled: c = !1,
|
|
763
|
+
unit: I = void 0,
|
|
761
764
|
lowerLimit: N = void 0,
|
|
762
|
-
upperLimit:
|
|
765
|
+
upperLimit: m = void 0
|
|
763
766
|
}) {
|
|
764
|
-
const f =
|
|
765
|
-
a === !0 || Number.isNaN(
|
|
766
|
-
), [
|
|
767
|
-
u === !0 || Number.isNaN(
|
|
767
|
+
const f = ne(), h = Number.parseInt(e), F = Number.parseInt(n), [p, L] = U(e.toString()), [S, v] = U(n.toString()), [M, b] = U(
|
|
768
|
+
a === !0 || Number.isNaN(h) || h < (N ?? 0) || m && h > m || !Number.isNaN(F) && h >= F
|
|
769
|
+
), [$, R] = U(
|
|
770
|
+
u === !0 || Number.isNaN(F) || F < (N ?? 0) || m && F > m || !Number.isNaN(h) && h >= F
|
|
768
771
|
);
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
}, [e]),
|
|
772
|
-
|
|
773
|
-
}, [a]),
|
|
774
|
-
|
|
775
|
-
}, [n]),
|
|
776
|
-
|
|
772
|
+
z(() => {
|
|
773
|
+
L((A) => e.toString() !== A ? e.toString() : A);
|
|
774
|
+
}, [e]), z(() => {
|
|
775
|
+
b((A) => a !== void 0 && a !== A ? a : A);
|
|
776
|
+
}, [a]), z(() => {
|
|
777
|
+
v((A) => n.toString() !== A ? n.toString() : A);
|
|
778
|
+
}, [n]), z(() => {
|
|
779
|
+
R((A) => u !== void 0 && u !== A ? u : A);
|
|
777
780
|
}, [u]);
|
|
778
|
-
const
|
|
779
|
-
(
|
|
780
|
-
const
|
|
781
|
-
return { val:
|
|
781
|
+
const k = w(
|
|
782
|
+
(A) => {
|
|
783
|
+
const C = Number.parseInt(A, A.startsWith("0x") ? 16 : 10), x = Number.parseInt(S), B = Number.isNaN(C) || C < (N ?? 0) || m && C > m || !Number.isNaN(x) && C >= x;
|
|
784
|
+
return { val: A, err: B };
|
|
782
785
|
},
|
|
783
|
-
[
|
|
784
|
-
),
|
|
785
|
-
(
|
|
786
|
-
const
|
|
787
|
-
return { val:
|
|
786
|
+
[S, N, m]
|
|
787
|
+
), _ = w(
|
|
788
|
+
(A) => {
|
|
789
|
+
const C = Number.parseInt(A, A.startsWith("0x") ? 16 : 10), x = Number.parseInt(p), B = Number.isNaN(C) || C < (N ?? 0) || m && C > m || !Number.isNaN(x) && x >= C;
|
|
790
|
+
return { val: A, err: B };
|
|
788
791
|
},
|
|
789
|
-
[
|
|
790
|
-
),
|
|
791
|
-
(
|
|
792
|
-
let { val:
|
|
793
|
-
if (!
|
|
794
|
-
t && t(
|
|
792
|
+
[p, N, m]
|
|
793
|
+
), W = w(
|
|
794
|
+
(A) => {
|
|
795
|
+
let { val: C, err: x } = k(A);
|
|
796
|
+
if (!x && i && ({ val: C, err: x } = i(A, "change")), (a === void 0 || a === !1) && b(x), x)
|
|
797
|
+
t && t(A, S);
|
|
795
798
|
else {
|
|
796
|
-
const
|
|
797
|
-
|
|
799
|
+
const B = Number.parseInt(C, C.startsWith("0x") ? 16 : 10).toString();
|
|
800
|
+
L(B), t && t(B, S);
|
|
798
801
|
}
|
|
799
802
|
},
|
|
800
|
-
[
|
|
801
|
-
),
|
|
802
|
-
(
|
|
803
|
-
let { val:
|
|
804
|
-
!
|
|
803
|
+
[k, i, a, t, S]
|
|
804
|
+
), j = w(
|
|
805
|
+
(A) => {
|
|
806
|
+
let { val: C, err: x } = k(A);
|
|
807
|
+
!x && i && ({ val: C, err: x } = i(C, "blur")), b(x), !x && r && r(C, S);
|
|
805
808
|
},
|
|
806
|
-
[
|
|
807
|
-
),
|
|
808
|
-
(
|
|
809
|
-
let { val:
|
|
810
|
-
if (!
|
|
811
|
-
t && t(
|
|
809
|
+
[k, i, r, S]
|
|
810
|
+
), X = w(
|
|
811
|
+
(A) => {
|
|
812
|
+
let { val: C, err: x } = _(A);
|
|
813
|
+
if (!x && o && ({ val: C, err: x } = o(A, "change")), (u === void 0 || u === !1) && R(x), x)
|
|
814
|
+
t && t(p, A);
|
|
812
815
|
else {
|
|
813
|
-
const
|
|
814
|
-
|
|
816
|
+
const B = Number.parseInt(C, C.startsWith("0x") ? 16 : 10).toString();
|
|
817
|
+
v(B), t && t(p, B);
|
|
815
818
|
}
|
|
816
819
|
},
|
|
817
|
-
[
|
|
818
|
-
),
|
|
819
|
-
(
|
|
820
|
-
let { val:
|
|
821
|
-
!
|
|
820
|
+
[_, o, u, t, p]
|
|
821
|
+
), P = w(
|
|
822
|
+
(A) => {
|
|
823
|
+
let { val: C, err: x } = _(A);
|
|
824
|
+
!x && o && ({ val: C, err: x } = o(C, "blur")), R(x), !x && r && r(p, C);
|
|
822
825
|
},
|
|
823
|
-
[
|
|
826
|
+
[_, o, r, p]
|
|
824
827
|
);
|
|
825
|
-
return
|
|
826
|
-
|
|
827
|
-
}, [
|
|
828
|
-
/* @__PURE__ */
|
|
829
|
-
|
|
828
|
+
return z(() => {
|
|
829
|
+
l && l(M), d && d($);
|
|
830
|
+
}, [$, M, d, l]), /* @__PURE__ */ T(ce, { children: [
|
|
831
|
+
/* @__PURE__ */ s(
|
|
832
|
+
re,
|
|
830
833
|
{
|
|
831
834
|
id: "min-value",
|
|
832
|
-
disabled:
|
|
835
|
+
disabled: g,
|
|
833
836
|
inputMode: "numeric",
|
|
834
837
|
fullWidth: !0,
|
|
835
|
-
value:
|
|
836
|
-
onChange:
|
|
837
|
-
onBlur:
|
|
838
|
+
value: p,
|
|
839
|
+
onChange: W,
|
|
840
|
+
onBlur: j,
|
|
838
841
|
startAdornment: f.getString("LabelFrom"),
|
|
839
|
-
endAdornment:
|
|
842
|
+
endAdornment: I,
|
|
840
843
|
numberType: "int",
|
|
841
|
-
error:
|
|
842
|
-
onErrorChange:
|
|
844
|
+
error: M,
|
|
845
|
+
onErrorChange: b
|
|
843
846
|
}
|
|
844
847
|
),
|
|
845
|
-
/* @__PURE__ */
|
|
846
|
-
|
|
848
|
+
/* @__PURE__ */ s(
|
|
849
|
+
re,
|
|
847
850
|
{
|
|
848
851
|
id: "max-value",
|
|
849
|
-
disabled:
|
|
852
|
+
disabled: c,
|
|
850
853
|
inputMode: "numeric",
|
|
851
854
|
fullWidth: !0,
|
|
852
|
-
value:
|
|
853
|
-
onChange:
|
|
854
|
-
onBlur:
|
|
855
|
+
value: S,
|
|
856
|
+
onChange: X,
|
|
857
|
+
onBlur: P,
|
|
855
858
|
startAdornment: f.getString("LabelTo"),
|
|
856
|
-
endAdornment:
|
|
859
|
+
endAdornment: I,
|
|
857
860
|
numberType: "int",
|
|
858
|
-
error:
|
|
859
|
-
onErrorChange:
|
|
861
|
+
error: $,
|
|
862
|
+
onErrorChange: R
|
|
860
863
|
}
|
|
861
864
|
)
|
|
862
865
|
] });
|
|
863
866
|
}
|
|
864
|
-
function
|
|
867
|
+
function fe({
|
|
865
868
|
id: e = void 0,
|
|
866
869
|
label: n,
|
|
867
870
|
value: t,
|
|
868
871
|
disabled: r = !1,
|
|
869
872
|
size: a = "small",
|
|
870
|
-
sx:
|
|
873
|
+
sx: l = void 0
|
|
871
874
|
}) {
|
|
872
|
-
return /* @__PURE__ */
|
|
873
|
-
|
|
875
|
+
return /* @__PURE__ */ s(
|
|
876
|
+
Qe,
|
|
874
877
|
{
|
|
875
878
|
id: e,
|
|
876
879
|
"aria-label": e,
|
|
877
880
|
value: t,
|
|
878
881
|
disabled: r,
|
|
879
882
|
"aria-disabled": r,
|
|
880
|
-
control: /* @__PURE__ */
|
|
883
|
+
control: /* @__PURE__ */ s(Cn, { size: a }),
|
|
881
884
|
label: n,
|
|
882
885
|
componentsProps: { typography: { noWrap: !0 } },
|
|
883
|
-
sx:
|
|
886
|
+
sx: l
|
|
884
887
|
}
|
|
885
888
|
);
|
|
886
889
|
}
|
|
887
|
-
function
|
|
890
|
+
function fn({
|
|
888
891
|
children: e,
|
|
889
892
|
id: n = void 0,
|
|
890
893
|
value: t,
|
|
891
894
|
onChange: r
|
|
892
895
|
}) {
|
|
893
|
-
return /* @__PURE__ */
|
|
896
|
+
return /* @__PURE__ */ s(In, { id: n, "aria-label": n, value: t, onChange: (a, l) => r(l), children: e });
|
|
894
897
|
}
|
|
895
|
-
const
|
|
898
|
+
const dr = V(xe, {
|
|
896
899
|
shouldForwardProp: (e) => e !== "collapsed"
|
|
897
900
|
})(({ collapsed: e, theme: n }) => ({
|
|
898
901
|
paddingTop: e ? "4px" : "8px",
|
|
@@ -903,192 +906,483 @@ const qt = X(ie, {
|
|
|
903
906
|
"&:hover, &:focus-within": {
|
|
904
907
|
background: n.palette.action.hover
|
|
905
908
|
}
|
|
906
|
-
})),
|
|
909
|
+
})), gn = V("span")(({ theme: e }) => ({
|
|
907
910
|
color: e.palette.divider
|
|
908
|
-
})),
|
|
911
|
+
})), or = V(gn)(() => ({
|
|
909
912
|
"&:hover": {
|
|
910
913
|
cursor: "pointer"
|
|
911
914
|
}
|
|
912
|
-
})),
|
|
915
|
+
})), ur = V(Xe)(({ theme: e }) => ({
|
|
913
916
|
color: e.palette.divider,
|
|
914
917
|
padding: "0px"
|
|
915
918
|
}));
|
|
916
|
-
function
|
|
919
|
+
function me({
|
|
917
920
|
textAlign: e = "left",
|
|
918
921
|
text: n = void 0,
|
|
919
922
|
summary: t = void 0,
|
|
920
923
|
children: r = void 0,
|
|
921
924
|
collapsible: a = !1,
|
|
922
|
-
collapsed:
|
|
925
|
+
collapsed: l = !1,
|
|
923
926
|
collapsedChange: u = void 0
|
|
924
927
|
}) {
|
|
925
|
-
const
|
|
926
|
-
|
|
927
|
-
const
|
|
928
|
-
(
|
|
929
|
-
u ? u(
|
|
928
|
+
const d = hn(), i = ne(), [o, g] = U(l);
|
|
929
|
+
z(() => g(l), [l]);
|
|
930
|
+
const c = w(
|
|
931
|
+
(I) => {
|
|
932
|
+
u ? u(I) : g(I);
|
|
930
933
|
},
|
|
931
934
|
[u]
|
|
932
935
|
);
|
|
933
|
-
return /* @__PURE__ */
|
|
934
|
-
n && /* @__PURE__ */
|
|
935
|
-
/* @__PURE__ */
|
|
936
|
-
n.toLocaleUpperCase(
|
|
936
|
+
return /* @__PURE__ */ T(dr, { collapsed: o, children: [
|
|
937
|
+
n && /* @__PURE__ */ s($n, { textAlign: e, variant: "fullWidth", children: a ? /* @__PURE__ */ T(Je, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
938
|
+
/* @__PURE__ */ T(or, { onClick: () => c(!o), children: [
|
|
939
|
+
n.toLocaleUpperCase(d),
|
|
937
940
|
o && t ? ` (${t})` : ""
|
|
938
941
|
] }),
|
|
939
|
-
/* @__PURE__ */
|
|
940
|
-
|
|
942
|
+
/* @__PURE__ */ s(
|
|
943
|
+
Se,
|
|
941
944
|
{
|
|
942
945
|
title: o ? i == null ? void 0 : i.getString("TooltipExpandSection", n) : i == null ? void 0 : i.getString("TooltipCollapseSection", n),
|
|
943
|
-
children: /* @__PURE__ */
|
|
946
|
+
children: /* @__PURE__ */ s(ur, { onClick: () => c(!o), children: o ? /* @__PURE__ */ s(tn, {}) : /* @__PURE__ */ s(Dn, {}) })
|
|
944
947
|
}
|
|
945
948
|
)
|
|
946
|
-
] }) : /* @__PURE__ */
|
|
949
|
+
] }) : /* @__PURE__ */ s(gn, { children: n.toLocaleUpperCase(d) }) }),
|
|
947
950
|
!o && r
|
|
948
951
|
] });
|
|
949
952
|
}
|
|
950
|
-
function
|
|
953
|
+
function Me({
|
|
951
954
|
id: e,
|
|
952
955
|
label: n,
|
|
953
956
|
showLabel: t = !1,
|
|
954
957
|
helperText: r = "",
|
|
955
958
|
options: a,
|
|
956
|
-
value:
|
|
959
|
+
value: l,
|
|
957
960
|
onChange: u,
|
|
958
|
-
disabled:
|
|
961
|
+
disabled: d = !1,
|
|
959
962
|
required: i = !1,
|
|
960
963
|
margin: o = "dense",
|
|
961
|
-
size:
|
|
962
|
-
fullWidth:
|
|
963
|
-
minWidth:
|
|
964
|
+
size: g = "small",
|
|
965
|
+
fullWidth: c = !1,
|
|
966
|
+
minWidth: I = void 0,
|
|
964
967
|
prefixTextWithValue: N = !1
|
|
965
968
|
}) {
|
|
966
|
-
const
|
|
967
|
-
(
|
|
968
|
-
typeof
|
|
969
|
+
const m = w(
|
|
970
|
+
(L) => {
|
|
971
|
+
typeof L.target.value == "string" ? u("") : u(L.target.value);
|
|
969
972
|
},
|
|
970
973
|
[u]
|
|
971
|
-
), f =
|
|
972
|
-
(
|
|
974
|
+
), f = w(
|
|
975
|
+
(L) => L.map((S) => /* @__PURE__ */ s(We, { "aria-label": `menu-item-${S.value}`, value: S.value, children: N ? `${S.value} - ${S.displayText}` : S.displayText }, S.value)),
|
|
973
976
|
[N]
|
|
974
|
-
),
|
|
975
|
-
(
|
|
976
|
-
const
|
|
977
|
-
/* @__PURE__ */
|
|
977
|
+
), h = w(
|
|
978
|
+
(L, S) => {
|
|
979
|
+
const v = [
|
|
980
|
+
/* @__PURE__ */ s(wn, { color: "primary", children: L }, L)
|
|
978
981
|
];
|
|
979
|
-
return
|
|
982
|
+
return v.push(...f(S)), v;
|
|
980
983
|
},
|
|
981
984
|
[f]
|
|
982
|
-
),
|
|
983
|
-
(
|
|
984
|
-
const
|
|
985
|
-
return
|
|
986
|
-
|
|
987
|
-
}),
|
|
985
|
+
), F = w(
|
|
986
|
+
(L) => {
|
|
987
|
+
const S = [];
|
|
988
|
+
return L.forEach((v, M) => {
|
|
989
|
+
S.push(...h(M, v));
|
|
990
|
+
}), S;
|
|
988
991
|
},
|
|
989
|
-
[
|
|
990
|
-
),
|
|
991
|
-
(
|
|
992
|
-
let
|
|
992
|
+
[h]
|
|
993
|
+
), p = w(
|
|
994
|
+
(L) => {
|
|
995
|
+
let S = "";
|
|
993
996
|
if (a instanceof Map)
|
|
994
|
-
a.forEach((
|
|
995
|
-
if (
|
|
996
|
-
const
|
|
997
|
-
|
|
997
|
+
a.forEach((v, M) => {
|
|
998
|
+
if (S === "") {
|
|
999
|
+
const b = v.find(($) => $.value === L);
|
|
1000
|
+
b && (S = N ? `${b.value} - ${M} - ${b.displayText}` : `${M} - ${b.displayText}`);
|
|
998
1001
|
}
|
|
999
1002
|
});
|
|
1000
1003
|
else {
|
|
1001
|
-
const
|
|
1002
|
-
|
|
1004
|
+
const v = a.find((M) => M.value === L);
|
|
1005
|
+
v && (S = N ? `${v.value} - ${v.displayText}` : v.displayText);
|
|
1003
1006
|
}
|
|
1004
|
-
return
|
|
1007
|
+
return S === "" && (S = i ? `${n} *` : n), S;
|
|
1005
1008
|
},
|
|
1006
1009
|
[n, a, N, i]
|
|
1007
1010
|
);
|
|
1008
|
-
return /* @__PURE__ */
|
|
1009
|
-
t && /* @__PURE__ */
|
|
1010
|
-
/* @__PURE__ */
|
|
1011
|
-
|
|
1011
|
+
return /* @__PURE__ */ T(Ye, { fullWidth: c, variant: "standard", sx: { minWidth: I }, margin: o, size: g, children: [
|
|
1012
|
+
t && /* @__PURE__ */ s(Mn, { id: `${e}-label`, children: i ? `${n} *` : n }),
|
|
1013
|
+
/* @__PURE__ */ T(
|
|
1014
|
+
Fn,
|
|
1012
1015
|
{
|
|
1013
1016
|
labelId: `${e}-label`,
|
|
1014
1017
|
"aria-label": e,
|
|
1015
1018
|
id: e,
|
|
1016
|
-
value:
|
|
1017
|
-
renderValue:
|
|
1018
|
-
onChange:
|
|
1019
|
+
value: l,
|
|
1020
|
+
renderValue: p,
|
|
1021
|
+
onChange: m,
|
|
1019
1022
|
displayEmpty: !t,
|
|
1020
|
-
disabled:
|
|
1021
|
-
"aria-disabled":
|
|
1023
|
+
disabled: d,
|
|
1024
|
+
"aria-disabled": d,
|
|
1022
1025
|
children: [
|
|
1023
|
-
a instanceof Map &&
|
|
1026
|
+
a instanceof Map && F(a),
|
|
1024
1027
|
a instanceof Array && f(a)
|
|
1025
1028
|
]
|
|
1026
1029
|
}
|
|
1027
1030
|
),
|
|
1028
|
-
r && /* @__PURE__ */
|
|
1031
|
+
r && /* @__PURE__ */ s(Ln, { children: r })
|
|
1029
1032
|
] });
|
|
1030
1033
|
}
|
|
1031
|
-
const
|
|
1034
|
+
const _e = (e) => {
|
|
1035
|
+
const [n, t] = U([]);
|
|
1036
|
+
return z(() => {
|
|
1037
|
+
const r = () => {
|
|
1038
|
+
qn(e).then((l) => {
|
|
1039
|
+
const u = [];
|
|
1040
|
+
for (let d = 0; d < l.length; d += 1) {
|
|
1041
|
+
let i;
|
|
1042
|
+
const o = l[d];
|
|
1043
|
+
if (o.messageQualifiedName !== void 0) {
|
|
1044
|
+
const g = o.messageQualifiedName.indexOf(".");
|
|
1045
|
+
if (g !== -1) {
|
|
1046
|
+
const c = o.messageQualifiedName.substring(0, g);
|
|
1047
|
+
i = u.find((I) => I.name === c), i || (i = { name: c, messages: [] }, u.push(i));
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
i && i.messages.push(o);
|
|
1051
|
+
}
|
|
1052
|
+
return t(u), u;
|
|
1053
|
+
});
|
|
1054
|
+
}, a = Tn();
|
|
1055
|
+
return bn(a, "meas-setup-changed", r), r(), () => {
|
|
1056
|
+
pn(a, "meas-setup-changed");
|
|
1057
|
+
};
|
|
1058
|
+
}, [e]), n;
|
|
1059
|
+
};
|
|
1060
|
+
function Or({
|
|
1061
|
+
parentDialogTitle: e = void 0,
|
|
1062
|
+
open: n,
|
|
1063
|
+
onSelect: t,
|
|
1064
|
+
nodeIdentifier: r = void 0,
|
|
1065
|
+
onClose: a,
|
|
1066
|
+
modal: l = !1
|
|
1067
|
+
}) {
|
|
1068
|
+
const u = ne(), d = _e(r), i = O(
|
|
1069
|
+
() => e ? `${e} > ${u.getString("DialogHeaderSelectMessage")}` : u.getString("DialogHeaderSelectMessage"),
|
|
1070
|
+
[u, e]
|
|
1071
|
+
), o = w(
|
|
1072
|
+
(c) => {
|
|
1073
|
+
if (c !== null)
|
|
1074
|
+
for (let I = 0; I < d.length; I += 1) {
|
|
1075
|
+
const m = d[I].messages.find((f) => f.messageQualifiedName === c);
|
|
1076
|
+
m && (t(m), a && a());
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
[d, a, t]
|
|
1080
|
+
), g = O(() => d.map((c) => c.name), [d]);
|
|
1081
|
+
return /* @__PURE__ */ T(
|
|
1082
|
+
Ve,
|
|
1083
|
+
{
|
|
1084
|
+
open: n,
|
|
1085
|
+
fullScreen: l !== !0,
|
|
1086
|
+
fullWidth: l === !0,
|
|
1087
|
+
maxWidth: l === !0 ? "md" : void 0,
|
|
1088
|
+
children: [
|
|
1089
|
+
/* @__PURE__ */ s(Ge, { className: "draggable", children: i }),
|
|
1090
|
+
/* @__PURE__ */ s(en, { dividers: !0, children: /* @__PURE__ */ s(
|
|
1091
|
+
rn,
|
|
1092
|
+
{
|
|
1093
|
+
"aria-label": "frame-selector",
|
|
1094
|
+
onSelectedItemsChange: (c, I) => o(I),
|
|
1095
|
+
multiSelect: !1,
|
|
1096
|
+
defaultExpandedItems: g,
|
|
1097
|
+
sx: { height: 400 },
|
|
1098
|
+
children: d.map((c) => /* @__PURE__ */ s(pe, { itemId: c.name, label: c.name, children: c.messages.map((I) => /* @__PURE__ */ s(pe, { itemId: I.messageQualifiedName, label: I.messageName }, I.messageQualifiedName)) }, c.name))
|
|
1099
|
+
}
|
|
1100
|
+
) }),
|
|
1101
|
+
/* @__PURE__ */ s(Re, { children: /* @__PURE__ */ s(Z, { onClick: a, variant: "outlined", size: "large", children: u.getString("ButtonBack") }) })
|
|
1102
|
+
]
|
|
1103
|
+
}
|
|
1104
|
+
);
|
|
1105
|
+
}
|
|
1106
|
+
function cr({
|
|
1107
|
+
parentDialogTitle: e = void 0,
|
|
1108
|
+
nodeIdentifier: n = void 0,
|
|
1109
|
+
open: t,
|
|
1110
|
+
multiSelect: r = !1,
|
|
1111
|
+
checkboxSelection: a = !1,
|
|
1112
|
+
onSelect: l = void 0,
|
|
1113
|
+
onMultiSelect: u = void 0,
|
|
1114
|
+
onClose: d,
|
|
1115
|
+
selectedMessages: i = void 0,
|
|
1116
|
+
selectedSignals: o = void 0
|
|
1117
|
+
}) {
|
|
1118
|
+
const g = ne(), c = _e(n), I = O(
|
|
1119
|
+
() => e ? `${e} > ${g.getString("DialogHeaderSelectSignal")}` : g.getString("DialogHeaderSelectSignal"),
|
|
1120
|
+
[g, e]
|
|
1121
|
+
), [N, m] = U(() => i ? c.map((b) => b.messages.filter(($) => i.includes($.messageQualifiedName))).flat() : []);
|
|
1122
|
+
z(() => {
|
|
1123
|
+
if (i) {
|
|
1124
|
+
const b = c.map(($) => $.messages.filter((R) => i.includes(R.messageQualifiedName))).flat();
|
|
1125
|
+
m(b);
|
|
1126
|
+
}
|
|
1127
|
+
}, [i, c]);
|
|
1128
|
+
const [f, h] = U(() => o ? c.map(
|
|
1129
|
+
(b) => b.messages.filter(
|
|
1130
|
+
($) => $.signals && $.signals.find((R) => o.includes(R.qualifiedName))
|
|
1131
|
+
)
|
|
1132
|
+
).flat().map((b) => b.signals.filter(($) => o.includes($.qualifiedName))).flat() : []);
|
|
1133
|
+
z(() => {
|
|
1134
|
+
if (o) {
|
|
1135
|
+
const b = c.map(
|
|
1136
|
+
($) => $.messages.filter(
|
|
1137
|
+
(R) => R.signals && R.signals.find((k) => o.includes(k.qualifiedName))
|
|
1138
|
+
)
|
|
1139
|
+
).flat().map(($) => $.signals.filter((R) => o.includes(R.qualifiedName))).flat();
|
|
1140
|
+
h(b);
|
|
1141
|
+
}
|
|
1142
|
+
}, [o, c]);
|
|
1143
|
+
const [F, p] = U(!1), L = O(() => {
|
|
1144
|
+
if (r)
|
|
1145
|
+
return [
|
|
1146
|
+
...N.map((b) => b.messageQualifiedName),
|
|
1147
|
+
...f.map((b) => b.qualifiedName)
|
|
1148
|
+
];
|
|
1149
|
+
}, [r, N, f]), S = w(
|
|
1150
|
+
(b) => {
|
|
1151
|
+
if (b === null)
|
|
1152
|
+
return;
|
|
1153
|
+
if (!r)
|
|
1154
|
+
for (let R = 0; R < c.length; R += 1) {
|
|
1155
|
+
const _ = c[R].messages.find(
|
|
1156
|
+
(W) => W.signals && W.signals.findIndex((j) => j.qualifiedName === b) !== -1
|
|
1157
|
+
);
|
|
1158
|
+
if (_ != null && _.signals) {
|
|
1159
|
+
const W = _.signals.find((j) => j.qualifiedName === b);
|
|
1160
|
+
if (W && l && (l(_, W), d)) {
|
|
1161
|
+
d();
|
|
1162
|
+
return;
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
let $ = [];
|
|
1167
|
+
m((R) => {
|
|
1168
|
+
let k = [];
|
|
1169
|
+
for (let _ = 0; _ < c.length; _ += 1) {
|
|
1170
|
+
const W = c[_], j = W.messages.filter(
|
|
1171
|
+
(C) => C.signals && C.signals.length > 0 && C.signals.every((x) => b.includes(x.qualifiedName))
|
|
1172
|
+
), X = W.messages.filter(
|
|
1173
|
+
(C) => C.signals && C.signals.some((x) => b.includes(x.qualifiedName))
|
|
1174
|
+
);
|
|
1175
|
+
if (X) {
|
|
1176
|
+
const C = X.map((x) => x.signals).flat().filter((x) => b.includes(x.qualifiedName));
|
|
1177
|
+
C && (k = [...new Set(k.concat(j))], $ = [...new Set($.concat(C))]);
|
|
1178
|
+
}
|
|
1179
|
+
const P = W.messages.filter(
|
|
1180
|
+
(C) => C.signals.length > 0 && b.includes(C.messageQualifiedName) && !R.some((x) => x.messageQualifiedName === C.messageQualifiedName)
|
|
1181
|
+
);
|
|
1182
|
+
if (P.length > 0) {
|
|
1183
|
+
const C = P.map((x) => x.signals).flat();
|
|
1184
|
+
C && (k = [...new Set(k.concat(P))], $ = [...new Set($.concat(C))]);
|
|
1185
|
+
}
|
|
1186
|
+
const A = W.messages.filter(
|
|
1187
|
+
(C) => !b.includes(C.messageQualifiedName) && R.some((x) => x.messageQualifiedName === C.messageQualifiedName)
|
|
1188
|
+
);
|
|
1189
|
+
if (A.length > 0) {
|
|
1190
|
+
const C = A.map((x) => x.signals).flat();
|
|
1191
|
+
C && (k = k.filter(
|
|
1192
|
+
(x) => !A.some((B) => B.messageQualifiedName === x.messageQualifiedName)
|
|
1193
|
+
), $ = $.filter(
|
|
1194
|
+
(x) => !C.some((B) => B.qualifiedName === x.qualifiedName)
|
|
1195
|
+
));
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
return k;
|
|
1199
|
+
}), h($);
|
|
1200
|
+
},
|
|
1201
|
+
[c, r, d, l]
|
|
1202
|
+
), v = w(() => {
|
|
1203
|
+
u && (u(N, f), m([]), h([])), d && d();
|
|
1204
|
+
}, [d, u, N, f]);
|
|
1205
|
+
z(() => {
|
|
1206
|
+
p(f.length === 0);
|
|
1207
|
+
}, [f.length]);
|
|
1208
|
+
const M = O(() => {
|
|
1209
|
+
const b = c.map((R) => R.name), $ = c.map((R) => R.messages).flat().filter(
|
|
1210
|
+
(R) => R.signals && R.signals.some((k) => f.some((_) => _.qualifiedName === k.qualifiedName))
|
|
1211
|
+
).map((R) => R.messageQualifiedName);
|
|
1212
|
+
return [...b, ...$];
|
|
1213
|
+
}, [c, f]);
|
|
1214
|
+
return /* @__PURE__ */ T(Ve, { open: t, fullScreen: !0, children: [
|
|
1215
|
+
/* @__PURE__ */ s(Ge, { className: "draggable", children: I }),
|
|
1216
|
+
/* @__PURE__ */ s(en, { dividers: !0, children: /* @__PURE__ */ s(
|
|
1217
|
+
rn,
|
|
1218
|
+
{
|
|
1219
|
+
"aria-label": "signal-selector",
|
|
1220
|
+
multiSelect: r,
|
|
1221
|
+
checkboxSelection: a,
|
|
1222
|
+
selectedItems: L,
|
|
1223
|
+
onSelectedItemsChange: (b, $) => S($),
|
|
1224
|
+
defaultExpandedItems: M,
|
|
1225
|
+
children: c.map((b) => /* @__PURE__ */ s(pe, { itemId: b.name, label: b.name, children: b.messages.map(($) => /* @__PURE__ */ s(pe, { itemId: $.messageQualifiedName, label: $.messageName, children: $.signals && $.signals.map((R) => /* @__PURE__ */ s(pe, { itemId: R.qualifiedName, label: R.name }, R.qualifiedName)) }, $.messageQualifiedName)) }, b.name))
|
|
1226
|
+
}
|
|
1227
|
+
) }),
|
|
1228
|
+
r && /* @__PURE__ */ T(Re, { children: [
|
|
1229
|
+
/* @__PURE__ */ s(
|
|
1230
|
+
Z,
|
|
1231
|
+
{
|
|
1232
|
+
onClick: v,
|
|
1233
|
+
variant: "contained",
|
|
1234
|
+
size: "large",
|
|
1235
|
+
disabled: F,
|
|
1236
|
+
children: g.getString("ButtonSave")
|
|
1237
|
+
}
|
|
1238
|
+
),
|
|
1239
|
+
/* @__PURE__ */ s(Z, { onClick: d, variant: "outlined", size: "large", children: g.getString("ButtonCancel") })
|
|
1240
|
+
] }),
|
|
1241
|
+
!r && /* @__PURE__ */ s(Re, { children: /* @__PURE__ */ s(Z, { onClick: d, variant: "outlined", size: "large", children: g.getString("ButtonBack") }) })
|
|
1242
|
+
] });
|
|
1243
|
+
}
|
|
1244
|
+
function Pr({
|
|
1245
|
+
selectedSignals: e,
|
|
1246
|
+
onSelectedSignalseChange: n,
|
|
1247
|
+
onErrorsChange: t = void 0,
|
|
1248
|
+
signalFilterError: r = void 0,
|
|
1249
|
+
parentDialogTitle: a = void 0,
|
|
1250
|
+
nodeIdentifier: l = void 0,
|
|
1251
|
+
disabled: u = !1
|
|
1252
|
+
}) {
|
|
1253
|
+
const d = ne(), i = de(), o = Ne(i), g = _e(l), c = O(() => {
|
|
1254
|
+
const h = /* @__PURE__ */ new Set();
|
|
1255
|
+
return g.forEach((F) => {
|
|
1256
|
+
F.messages.forEach((p) => {
|
|
1257
|
+
p.signals.length > 0 && p.signals.every((L) => e.includes(L.qualifiedName)) && h.add(p.messageQualifiedName);
|
|
1258
|
+
});
|
|
1259
|
+
}), Array.from(h);
|
|
1260
|
+
}, [g, e]), I = w(
|
|
1261
|
+
(h, F) => {
|
|
1262
|
+
n(F.map((p) => p.qualifiedName));
|
|
1263
|
+
},
|
|
1264
|
+
[n]
|
|
1265
|
+
), N = w(
|
|
1266
|
+
(h, F) => {
|
|
1267
|
+
n(F);
|
|
1268
|
+
},
|
|
1269
|
+
[n]
|
|
1270
|
+
);
|
|
1271
|
+
z(() => {
|
|
1272
|
+
r && (r.current = e.length === 0), t && t(e.length === 0);
|
|
1273
|
+
}, [t, e, r]);
|
|
1274
|
+
const [m, f] = U(!1);
|
|
1275
|
+
return /* @__PURE__ */ s(ce, { children: /* @__PURE__ */ T(ue, { children: [
|
|
1276
|
+
/* @__PURE__ */ s(
|
|
1277
|
+
Rn,
|
|
1278
|
+
{
|
|
1279
|
+
id: "selected-signals",
|
|
1280
|
+
multiple: !0,
|
|
1281
|
+
limitTags: 3,
|
|
1282
|
+
freeSolo: !0,
|
|
1283
|
+
options: [],
|
|
1284
|
+
value: e,
|
|
1285
|
+
renderInput: (h) => /* @__PURE__ */ s(Ze, { ...h, label: d.getString("LabelSelectedSignals") }),
|
|
1286
|
+
size: "small",
|
|
1287
|
+
fullWidth: !0,
|
|
1288
|
+
onChange: N,
|
|
1289
|
+
inputValue: ""
|
|
1290
|
+
}
|
|
1291
|
+
),
|
|
1292
|
+
/* @__PURE__ */ s(oe, { columnItem: i, width: o, children: /* @__PURE__ */ s(Se, { title: d.getString("TooltipSelectSignals"), children: /* @__PURE__ */ s(
|
|
1293
|
+
Z,
|
|
1294
|
+
{
|
|
1295
|
+
disabled: u,
|
|
1296
|
+
onClick: () => f(!0),
|
|
1297
|
+
variant: "outlined",
|
|
1298
|
+
size: "large",
|
|
1299
|
+
children: d.getString("ButtonSelectSignals")
|
|
1300
|
+
}
|
|
1301
|
+
) }) }),
|
|
1302
|
+
/* @__PURE__ */ s(
|
|
1303
|
+
cr,
|
|
1304
|
+
{
|
|
1305
|
+
parentDialogTitle: a,
|
|
1306
|
+
open: m,
|
|
1307
|
+
onClose: () => f(!1),
|
|
1308
|
+
nodeIdentifier: l,
|
|
1309
|
+
onMultiSelect: I,
|
|
1310
|
+
multiSelect: !0,
|
|
1311
|
+
selectedMessages: c,
|
|
1312
|
+
selectedSignals: e,
|
|
1313
|
+
checkboxSelection: !0
|
|
1314
|
+
}
|
|
1315
|
+
)
|
|
1316
|
+
] }) });
|
|
1317
|
+
}
|
|
1318
|
+
const jr = V(xe)(({ height: e, width: n }) => ({
|
|
1032
1319
|
height: e,
|
|
1033
1320
|
width: n,
|
|
1034
1321
|
padding: "4px",
|
|
1035
1322
|
overflow: "auto"
|
|
1036
1323
|
}));
|
|
1037
|
-
function
|
|
1038
|
-
return /* @__PURE__ */
|
|
1324
|
+
function fr({ label: e, variant: n = "h6" }) {
|
|
1325
|
+
return /* @__PURE__ */ s(En, { children: /* @__PURE__ */ s(nn, { sx: { flex: "1 1 100%" }, variant: n, id: "tableTitle", component: "div", children: e }) });
|
|
1039
1326
|
}
|
|
1040
|
-
function
|
|
1327
|
+
function Dr({
|
|
1041
1328
|
data: e,
|
|
1042
1329
|
dataKey: n,
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1330
|
+
hasRemoveButton: t = !1,
|
|
1331
|
+
removeButtonTitle: r = void 0,
|
|
1332
|
+
onRemoveRow: a = void 0,
|
|
1333
|
+
selectedKey: l = void 0,
|
|
1334
|
+
onClickRow: u = void 0,
|
|
1335
|
+
columns: d,
|
|
1336
|
+
label: i = void 0,
|
|
1337
|
+
labelVariant: o = "h6",
|
|
1338
|
+
maxHeight: g = void 0,
|
|
1339
|
+
size: c = "medium",
|
|
1340
|
+
stickyHeader: I = !1,
|
|
1341
|
+
hover: N = !1
|
|
1052
1342
|
}) {
|
|
1053
|
-
const
|
|
1054
|
-
(
|
|
1055
|
-
|
|
1343
|
+
const m = w(
|
|
1344
|
+
(f) => {
|
|
1345
|
+
u && u(f);
|
|
1056
1346
|
},
|
|
1057
|
-
[
|
|
1347
|
+
[u]
|
|
1058
1348
|
);
|
|
1059
|
-
return /* @__PURE__ */
|
|
1060
|
-
|
|
1061
|
-
/* @__PURE__ */
|
|
1062
|
-
/* @__PURE__ */
|
|
1349
|
+
return /* @__PURE__ */ T(xe, { children: [
|
|
1350
|
+
i && /* @__PURE__ */ s(fr, { label: i, variant: o }),
|
|
1351
|
+
/* @__PURE__ */ s(Wn, { children: /* @__PURE__ */ T(An, { "aria-labelledby": "tableTitle", size: c, stickyHeader: I, sx: { maxHeight: g }, padding: "none", children: [
|
|
1352
|
+
/* @__PURE__ */ s(_n, { children: /* @__PURE__ */ s(Be, { children: d.map((f) => (
|
|
1063
1353
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
1064
|
-
/* @__PURE__ */
|
|
1354
|
+
/* @__PURE__ */ s(Fe, { ...f.headProps, children: f.headCell }, f.key)
|
|
1065
1355
|
)) }) }),
|
|
1066
|
-
/* @__PURE__ */
|
|
1067
|
-
const
|
|
1068
|
-
return /* @__PURE__ */
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1356
|
+
/* @__PURE__ */ s(kn, { children: e.map((f) => {
|
|
1357
|
+
const h = n(f);
|
|
1358
|
+
return /* @__PURE__ */ s(Be, { hover: N, selected: h === l, children: d.map((F) => /* @__PURE__ */ T(Sn, { children: [
|
|
1359
|
+
/* @__PURE__ */ s(
|
|
1360
|
+
Fe,
|
|
1361
|
+
{
|
|
1362
|
+
onClick: () => m(f),
|
|
1363
|
+
...F.dataProps,
|
|
1364
|
+
children: F.dataCell(f)
|
|
1365
|
+
},
|
|
1366
|
+
`${h}-${F.key}-project-file`
|
|
1367
|
+
),
|
|
1368
|
+
t && /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ s(Z, { size: "small", title: r, onClick: () => a(f), children: /* @__PURE__ */ s(zn, { fontSize: "small" }) }) }, `${h}-${F.key}-remove-button`)
|
|
1369
|
+
] }, `${h}-${F.key}`)) }, h);
|
|
1076
1370
|
}) })
|
|
1077
1371
|
] }) })
|
|
1078
1372
|
] });
|
|
1079
1373
|
}
|
|
1080
|
-
const
|
|
1374
|
+
const zr = V("div")(({ theme: e }) => ({
|
|
1081
1375
|
borderBottom: "1px solid",
|
|
1082
1376
|
borderColor: e.palette.divider
|
|
1083
|
-
})),
|
|
1084
|
-
[`& .${
|
|
1377
|
+
})), gr = V(Bn)(({ theme: e }) => ({
|
|
1378
|
+
[`& .${Ue.grouped}`]: {
|
|
1085
1379
|
margin: e.spacing(0.5),
|
|
1086
1380
|
padding: e.spacing(1.25),
|
|
1087
1381
|
minWidth: 24,
|
|
1088
1382
|
color: e.palette.action.active,
|
|
1089
1383
|
border: 0,
|
|
1090
1384
|
borderRadius: e.shape.borderRadius,
|
|
1091
|
-
[`&.${
|
|
1385
|
+
[`&.${Ue.disabled}`]: {
|
|
1092
1386
|
border: 0
|
|
1093
1387
|
}
|
|
1094
1388
|
}
|
|
@@ -1096,68 +1390,68 @@ const vr = X("div")(({ theme: e }) => ({
|
|
|
1096
1390
|
// marginLeft: -1,
|
|
1097
1391
|
// borderLeft: '1px solid transparent',
|
|
1098
1392
|
// },
|
|
1099
|
-
})),
|
|
1100
|
-
[`& .${
|
|
1393
|
+
})), mr = V(Un)(({ theme: e }) => ({
|
|
1394
|
+
[`& .${Ce.grouped}`]: {
|
|
1101
1395
|
margin: e.spacing(0.5),
|
|
1102
1396
|
padding: e.spacing(1.25),
|
|
1103
1397
|
minWidth: 24,
|
|
1104
1398
|
color: e.palette.action.active,
|
|
1105
1399
|
border: 0,
|
|
1106
1400
|
borderRadius: e.shape.borderRadius,
|
|
1107
|
-
[`&.${
|
|
1401
|
+
[`&.${Ce.disabled}`]: {
|
|
1108
1402
|
border: 0
|
|
1109
1403
|
}
|
|
1110
1404
|
},
|
|
1111
|
-
[`& .${
|
|
1405
|
+
[`& .${Ce.middleButton},& .${Ce.lastButton}`]: {
|
|
1112
1406
|
marginLeft: -1,
|
|
1113
1407
|
borderLeft: "1px solid transparent"
|
|
1114
1408
|
}
|
|
1115
1409
|
}));
|
|
1116
|
-
function
|
|
1410
|
+
function mn({
|
|
1117
1411
|
onClick: e,
|
|
1118
1412
|
icon: n = void 0,
|
|
1119
1413
|
text: t = void 0,
|
|
1120
1414
|
size: r = "small",
|
|
1121
1415
|
variant: a = void 0,
|
|
1122
|
-
color:
|
|
1416
|
+
color: l = "inherit",
|
|
1123
1417
|
tooltip: u = void 0,
|
|
1124
|
-
ariaLabel:
|
|
1418
|
+
ariaLabel: d = void 0,
|
|
1125
1419
|
children: i = void 0,
|
|
1126
1420
|
disabled: o = !1
|
|
1127
1421
|
}) {
|
|
1128
|
-
return i ? /* @__PURE__ */
|
|
1129
|
-
|
|
1422
|
+
return i ? /* @__PURE__ */ s(
|
|
1423
|
+
nr,
|
|
1130
1424
|
{
|
|
1131
1425
|
size: typeof r == "string" ? r : "small",
|
|
1132
1426
|
variant: a,
|
|
1133
|
-
color:
|
|
1427
|
+
color: l,
|
|
1134
1428
|
startIcon: n,
|
|
1135
1429
|
text: t,
|
|
1136
1430
|
disabled: o,
|
|
1137
1431
|
children: i
|
|
1138
1432
|
}
|
|
1139
|
-
) : t ? /* @__PURE__ */
|
|
1140
|
-
|
|
1433
|
+
) : t ? /* @__PURE__ */ T(
|
|
1434
|
+
Z,
|
|
1141
1435
|
{
|
|
1142
1436
|
size: typeof r == "string" ? r : "small",
|
|
1143
1437
|
variant: a,
|
|
1144
|
-
color:
|
|
1145
|
-
"aria-label":
|
|
1438
|
+
color: l,
|
|
1439
|
+
"aria-label": d,
|
|
1146
1440
|
onClick: e,
|
|
1147
1441
|
startIcon: n,
|
|
1148
1442
|
disabled: o,
|
|
1149
1443
|
children: [
|
|
1150
|
-
u && /* @__PURE__ */
|
|
1444
|
+
u && /* @__PURE__ */ s(Se, { placement: "bottom-start", title: u, children: /* @__PURE__ */ s("span", { children: t }) }),
|
|
1151
1445
|
!u && t
|
|
1152
1446
|
]
|
|
1153
1447
|
}
|
|
1154
|
-
) : /* @__PURE__ */
|
|
1155
|
-
|
|
1448
|
+
) : /* @__PURE__ */ T(
|
|
1449
|
+
Z,
|
|
1156
1450
|
{
|
|
1157
1451
|
size: typeof r == "string" ? r : "small",
|
|
1158
1452
|
variant: a,
|
|
1159
|
-
color:
|
|
1160
|
-
"aria-label":
|
|
1453
|
+
color: l,
|
|
1454
|
+
"aria-label": d,
|
|
1161
1455
|
onClick: e,
|
|
1162
1456
|
disabled: o,
|
|
1163
1457
|
sx: {
|
|
@@ -1165,20 +1459,20 @@ function qe({
|
|
|
1165
1459
|
width: typeof r == "number" ? `${r}px` : void 0
|
|
1166
1460
|
},
|
|
1167
1461
|
children: [
|
|
1168
|
-
u && /* @__PURE__ */
|
|
1462
|
+
u && /* @__PURE__ */ s(Se, { placement: "bottom-start", title: u, children: /* @__PURE__ */ s("span", { children: n }) }),
|
|
1169
1463
|
!u && n
|
|
1170
1464
|
]
|
|
1171
1465
|
}
|
|
1172
1466
|
);
|
|
1173
1467
|
}
|
|
1174
|
-
function
|
|
1468
|
+
function hr({
|
|
1175
1469
|
buttons: e,
|
|
1176
1470
|
size: n = "small",
|
|
1177
1471
|
ariaLabel: t = void 0,
|
|
1178
1472
|
orientation: r = "horizontal"
|
|
1179
1473
|
}) {
|
|
1180
|
-
return /* @__PURE__ */
|
|
1181
|
-
|
|
1474
|
+
return /* @__PURE__ */ s(mr, { size: n, "aria-label": t, orientation: r, children: e.map((a, l) => /* @__PURE__ */ s(
|
|
1475
|
+
mn,
|
|
1182
1476
|
{
|
|
1183
1477
|
onClick: a.onClick,
|
|
1184
1478
|
icon: a.icon,
|
|
@@ -1191,43 +1485,43 @@ function er({
|
|
|
1191
1485
|
disabled: a.disabled,
|
|
1192
1486
|
children: a.children
|
|
1193
1487
|
},
|
|
1194
|
-
|
|
1488
|
+
l
|
|
1195
1489
|
)) });
|
|
1196
1490
|
}
|
|
1197
|
-
function
|
|
1491
|
+
function br({
|
|
1198
1492
|
value: e,
|
|
1199
1493
|
onChange: n,
|
|
1200
1494
|
size: t = "small",
|
|
1201
1495
|
ariaLabel: r = void 0,
|
|
1202
1496
|
exclusive: a = void 0,
|
|
1203
|
-
buttons:
|
|
1497
|
+
buttons: l,
|
|
1204
1498
|
orientation: u = "horizontal"
|
|
1205
1499
|
}) {
|
|
1206
|
-
return /* @__PURE__ */
|
|
1207
|
-
|
|
1500
|
+
return /* @__PURE__ */ s(
|
|
1501
|
+
gr,
|
|
1208
1502
|
{
|
|
1209
1503
|
size: t,
|
|
1210
1504
|
value: e,
|
|
1211
|
-
onChange: (
|
|
1505
|
+
onChange: (d, i) => n(i),
|
|
1212
1506
|
"aria-label": r,
|
|
1213
1507
|
exclusive: a,
|
|
1214
1508
|
orientation: u,
|
|
1215
|
-
children:
|
|
1216
|
-
|
|
1509
|
+
children: l.map((d, i) => /* @__PURE__ */ T(
|
|
1510
|
+
On,
|
|
1217
1511
|
{
|
|
1218
1512
|
size: typeof t == "string" ? t : "small",
|
|
1219
|
-
value:
|
|
1220
|
-
"aria-label":
|
|
1513
|
+
value: d.value,
|
|
1514
|
+
"aria-label": d.ariaLabel,
|
|
1221
1515
|
sx: {
|
|
1222
1516
|
height: typeof t == "number" ? `${t}px` : void 0,
|
|
1223
1517
|
width: typeof t == "number" ? `${t}px` : void 0,
|
|
1224
|
-
padding:
|
|
1225
|
-
margin:
|
|
1518
|
+
padding: d.size === "small" || typeof t == "number" ? 1 : void 0,
|
|
1519
|
+
margin: d.size === "small" || typeof t == "number" ? 0 : void 0
|
|
1226
1520
|
},
|
|
1227
|
-
disabled:
|
|
1521
|
+
disabled: d.disabled,
|
|
1228
1522
|
children: [
|
|
1229
|
-
|
|
1230
|
-
!
|
|
1523
|
+
d.tooltip && /* @__PURE__ */ s(Se, { placement: "bottom-start", title: d.tooltip, children: /* @__PURE__ */ s("span", { children: d.icon }) }),
|
|
1524
|
+
!d.tooltip && d.icon
|
|
1231
1525
|
]
|
|
1232
1526
|
},
|
|
1233
1527
|
i
|
|
@@ -1235,18 +1529,18 @@ function nr({
|
|
|
1235
1529
|
}
|
|
1236
1530
|
);
|
|
1237
1531
|
}
|
|
1238
|
-
function
|
|
1532
|
+
function Tr({
|
|
1239
1533
|
items: e,
|
|
1240
1534
|
height: n = 34,
|
|
1241
1535
|
width: t = 34,
|
|
1242
1536
|
justifyContent: r = "left",
|
|
1243
1537
|
borderSize: a = 1,
|
|
1244
|
-
padding:
|
|
1538
|
+
padding: l = 1,
|
|
1245
1539
|
backgroundColor: u = void 0,
|
|
1246
|
-
orientation:
|
|
1540
|
+
orientation: d = "horizontal"
|
|
1247
1541
|
}) {
|
|
1248
|
-
return /* @__PURE__ */
|
|
1249
|
-
|
|
1542
|
+
return /* @__PURE__ */ s(
|
|
1543
|
+
yn,
|
|
1250
1544
|
{
|
|
1251
1545
|
elevation: 0,
|
|
1252
1546
|
sx: {
|
|
@@ -1255,33 +1549,33 @@ function Nr({
|
|
|
1255
1549
|
justifyContent: r,
|
|
1256
1550
|
border: (i) => `${a}px solid ${i.palette.divider}`,
|
|
1257
1551
|
flexWrap: "wrap",
|
|
1258
|
-
height:
|
|
1259
|
-
minHeight:
|
|
1260
|
-
width:
|
|
1261
|
-
minWidth:
|
|
1262
|
-
paddingLeft:
|
|
1263
|
-
paddingRight:
|
|
1264
|
-
paddingTop:
|
|
1265
|
-
paddingBottom:
|
|
1552
|
+
height: d === "horizontal" ? `${n}px` : "100%",
|
|
1553
|
+
minHeight: d === "horizontal" ? `${n}px` : void 0,
|
|
1554
|
+
width: d === "vertical" ? `${t}px` : "100%",
|
|
1555
|
+
minWidth: d === "vertical" ? `${t}px` : void 0,
|
|
1556
|
+
paddingLeft: d === "horizontal" ? l : 0,
|
|
1557
|
+
paddingRight: d === "horizontal" ? l : 0,
|
|
1558
|
+
paddingTop: d === "vertical" ? l : 0,
|
|
1559
|
+
paddingBottom: d === "vertical" ? l : 0,
|
|
1266
1560
|
borderRadius: "0px",
|
|
1267
1561
|
backgroundColor: u
|
|
1268
1562
|
},
|
|
1269
1563
|
children: e.map((i, o) => i.label ? (
|
|
1270
1564
|
// eslint-disable-next-line react/no-array-index-key
|
|
1271
|
-
/* @__PURE__ */
|
|
1272
|
-
) : i.toggleButtonGroup ? /* @__PURE__ */
|
|
1273
|
-
|
|
1565
|
+
/* @__PURE__ */ s(nn, { variant: i.label.variant, component: "div", children: i.label.text }, o)
|
|
1566
|
+
) : i.toggleButtonGroup ? /* @__PURE__ */ s(
|
|
1567
|
+
br,
|
|
1274
1568
|
{
|
|
1275
1569
|
value: i.toggleButtonGroup.value,
|
|
1276
1570
|
onChange: i.toggleButtonGroup.onChange,
|
|
1277
1571
|
ariaLabel: i.toggleButtonGroup.ariaLabel,
|
|
1278
1572
|
exclusive: i.toggleButtonGroup.exclusive,
|
|
1279
1573
|
buttons: i.toggleButtonGroup.buttons,
|
|
1280
|
-
orientation:
|
|
1574
|
+
orientation: d
|
|
1281
1575
|
},
|
|
1282
1576
|
o
|
|
1283
|
-
) : i.button ? /* @__PURE__ */
|
|
1284
|
-
|
|
1577
|
+
) : i.button ? /* @__PURE__ */ s(
|
|
1578
|
+
mn,
|
|
1285
1579
|
{
|
|
1286
1580
|
onClick: i.button.onClick,
|
|
1287
1581
|
icon: i.button.icon,
|
|
@@ -1295,12 +1589,12 @@ function Nr({
|
|
|
1295
1589
|
o
|
|
1296
1590
|
) : i.buttonGroup ? (
|
|
1297
1591
|
// eslint-disable-next-line react/no-array-index-key
|
|
1298
|
-
/* @__PURE__ */
|
|
1299
|
-
|
|
1592
|
+
/* @__PURE__ */ s(
|
|
1593
|
+
hr,
|
|
1300
1594
|
{
|
|
1301
1595
|
ariaLabel: i.buttonGroup.ariaLabel,
|
|
1302
1596
|
buttons: i.buttonGroup.buttons,
|
|
1303
|
-
orientation:
|
|
1597
|
+
orientation: d
|
|
1304
1598
|
},
|
|
1305
1599
|
o
|
|
1306
1600
|
)
|
|
@@ -1308,8 +1602,8 @@ function Nr({
|
|
|
1308
1602
|
}
|
|
1309
1603
|
);
|
|
1310
1604
|
}
|
|
1311
|
-
function
|
|
1312
|
-
const [r, a] =
|
|
1605
|
+
function qr({ options: e, onSelect: n, children: t = void 0 }) {
|
|
1606
|
+
const [r, a] = we.useState(null), l = w(
|
|
1313
1607
|
(i) => {
|
|
1314
1608
|
e.length !== 0 && (i.preventDefault(), a(
|
|
1315
1609
|
r === null ? {
|
|
@@ -1324,235 +1618,277 @@ function Cr({ options: e, onSelect: n, children: t = void 0 }) {
|
|
|
1324
1618
|
));
|
|
1325
1619
|
},
|
|
1326
1620
|
[r, e.length]
|
|
1327
|
-
), u =
|
|
1621
|
+
), u = w(() => {
|
|
1328
1622
|
a(null);
|
|
1329
|
-
}, []),
|
|
1623
|
+
}, []), d = w(
|
|
1330
1624
|
(i) => {
|
|
1331
1625
|
n(i), u();
|
|
1332
1626
|
},
|
|
1333
1627
|
[u, n]
|
|
1334
1628
|
);
|
|
1335
|
-
return /* @__PURE__ */
|
|
1629
|
+
return /* @__PURE__ */ T("div", { onContextMenu: l, style: { cursor: "context-menu" }, children: [
|
|
1336
1630
|
t,
|
|
1337
|
-
/* @__PURE__ */
|
|
1338
|
-
|
|
1631
|
+
/* @__PURE__ */ s(
|
|
1632
|
+
Pn,
|
|
1339
1633
|
{
|
|
1340
1634
|
open: r !== null,
|
|
1341
1635
|
onClose: u,
|
|
1342
1636
|
anchorReference: "anchorPosition",
|
|
1343
1637
|
anchorPosition: r !== null ? { top: r.mouseY, left: r.mouseX } : void 0,
|
|
1344
|
-
children: e.map((i) => /* @__PURE__ */
|
|
1345
|
-
i.icon && /* @__PURE__ */
|
|
1346
|
-
/* @__PURE__ */
|
|
1347
|
-
i.shortcut && /* @__PURE__ */
|
|
1638
|
+
children: e.map((i) => /* @__PURE__ */ T(We, { onClick: () => d(i.value), children: [
|
|
1639
|
+
i.icon && /* @__PURE__ */ s(jn, { children: i.icon }),
|
|
1640
|
+
/* @__PURE__ */ s(ye, { children: i.displayText }),
|
|
1641
|
+
i.shortcut && /* @__PURE__ */ s(ye, { sx: { pl: 2, textAlign: "right" }, children: i.shortcut })
|
|
1348
1642
|
] }, i.value))
|
|
1349
1643
|
}
|
|
1350
1644
|
)
|
|
1351
1645
|
] });
|
|
1352
1646
|
}
|
|
1353
|
-
function
|
|
1647
|
+
function pr({
|
|
1354
1648
|
canIdentifier: e,
|
|
1355
1649
|
canIdentifierType: n,
|
|
1356
1650
|
onCanIdentifierChange: t,
|
|
1357
1651
|
onErrorsChange: r = void 0,
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1652
|
+
showSelectMessageDialogChange: a = void 0,
|
|
1653
|
+
showSelectSignalDialogChange: l = void 0,
|
|
1654
|
+
disabled: u = !1,
|
|
1655
|
+
disableSelectMessageButton: d = !1,
|
|
1656
|
+
disableSelectSignalButton: i = !1,
|
|
1657
|
+
hideSection: o = !1,
|
|
1658
|
+
hideSelectMessageButton: g = !1,
|
|
1659
|
+
showSelectSignalButton: c = !1,
|
|
1660
|
+
collapsible: I = !1,
|
|
1661
|
+
collapsed: N = !1,
|
|
1662
|
+
collapsedChange: m = void 0
|
|
1363
1663
|
}) {
|
|
1364
|
-
const
|
|
1365
|
-
|
|
1366
|
-
r && r(
|
|
1367
|
-
}, [
|
|
1368
|
-
const [
|
|
1369
|
-
|
|
1370
|
-
|
|
1664
|
+
const f = ne(), h = le(), F = de(), p = de(), L = Ne(F, p), [S, v] = U(!1);
|
|
1665
|
+
z(() => {
|
|
1666
|
+
r && r(S);
|
|
1667
|
+
}, [S, r]);
|
|
1668
|
+
const [M, b] = U(!1), [$, R] = U(n);
|
|
1669
|
+
z(() => {
|
|
1670
|
+
R(n);
|
|
1371
1671
|
}, [n]);
|
|
1372
|
-
const
|
|
1373
|
-
|
|
1374
|
-
}, []),
|
|
1375
|
-
(
|
|
1376
|
-
let
|
|
1377
|
-
const
|
|
1378
|
-
if (
|
|
1379
|
-
if (Number.isNaN(
|
|
1380
|
-
return Number.isNaN(
|
|
1381
|
-
} else if (
|
|
1382
|
-
return Number.isNaN(
|
|
1383
|
-
return t(`${
|
|
1672
|
+
const k = w((P) => {
|
|
1673
|
+
R(P ? "extended" : "standard");
|
|
1674
|
+
}, []), _ = w(
|
|
1675
|
+
(P) => {
|
|
1676
|
+
let A = P;
|
|
1677
|
+
const C = parseInt(A, A.startsWith("0x") ? 16 : h);
|
|
1678
|
+
if ($ === "extended") {
|
|
1679
|
+
if (Number.isNaN(C) || C < 0 || C > 536870911)
|
|
1680
|
+
return Number.isNaN(C) || t(`${C.toString(h).toUpperCase()}`, $), { val: P, err: !0 };
|
|
1681
|
+
} else if ($ === "standard" && (Number.isNaN(C) || C < 0 || C > 2047))
|
|
1682
|
+
return Number.isNaN(C) || t(`${C.toString(h).toUpperCase()}`, $), { val: P, err: !0 };
|
|
1683
|
+
return t(`${C.toString(h).toUpperCase()}`, $), b(A.startsWith("0x")), { val: P, err: !1 };
|
|
1384
1684
|
},
|
|
1385
|
-
[
|
|
1386
|
-
),
|
|
1387
|
-
(
|
|
1388
|
-
if (
|
|
1389
|
-
let
|
|
1390
|
-
const
|
|
1391
|
-
|
|
1685
|
+
[$, h, t]
|
|
1686
|
+
), W = w(
|
|
1687
|
+
(P) => {
|
|
1688
|
+
if (P !== $) {
|
|
1689
|
+
let A = !1;
|
|
1690
|
+
const C = parseInt(e, e.startsWith("0x") ? 16 : h);
|
|
1691
|
+
P === "standard" ? (Number.isNaN(C) || C < 0 || C > 2047) && (A = !0) : P === "extended" && (Number.isNaN(C) || C < 0 || C > 536870911) && (A = !0), t(e, P), v(A);
|
|
1392
1692
|
}
|
|
1393
1693
|
},
|
|
1394
|
-
[
|
|
1395
|
-
),
|
|
1396
|
-
const
|
|
1397
|
-
return
|
|
1398
|
-
}, [
|
|
1399
|
-
() => /* @__PURE__ */
|
|
1400
|
-
/* @__PURE__ */
|
|
1401
|
-
|
|
1694
|
+
[$, e, t, h]
|
|
1695
|
+
), j = O(() => {
|
|
1696
|
+
const P = parseInt(e, e.startsWith("0x") ? 16 : h);
|
|
1697
|
+
return M ? `0x${P.toString(16).toUpperCase()}` : P.toString(h).toUpperCase();
|
|
1698
|
+
}, [M, e, h]), X = O(
|
|
1699
|
+
() => /* @__PURE__ */ T(ue, { spacing: 4, children: [
|
|
1700
|
+
/* @__PURE__ */ s(
|
|
1701
|
+
re,
|
|
1402
1702
|
{
|
|
1403
1703
|
id: "constant-id",
|
|
1404
1704
|
fullWidth: !0,
|
|
1405
|
-
value:
|
|
1406
|
-
error:
|
|
1407
|
-
onValidate:
|
|
1408
|
-
onErrorChange:
|
|
1409
|
-
disabled:
|
|
1705
|
+
value: j,
|
|
1706
|
+
error: S,
|
|
1707
|
+
onValidate: _,
|
|
1708
|
+
onErrorChange: v,
|
|
1709
|
+
disabled: u
|
|
1410
1710
|
}
|
|
1411
1711
|
),
|
|
1412
|
-
/* @__PURE__ */
|
|
1413
|
-
|
|
1712
|
+
/* @__PURE__ */ s(
|
|
1713
|
+
sn,
|
|
1414
1714
|
{
|
|
1415
1715
|
id: "id-type",
|
|
1416
|
-
label:
|
|
1417
|
-
checked:
|
|
1418
|
-
onChange: (
|
|
1419
|
-
|
|
1716
|
+
label: f.getString("LabelUseExtendedIdentifier"),
|
|
1717
|
+
checked: $ === "extended",
|
|
1718
|
+
onChange: (P) => {
|
|
1719
|
+
k(P), W(P ? "extended" : "standard");
|
|
1420
1720
|
},
|
|
1421
|
-
disabled:
|
|
1721
|
+
disabled: u
|
|
1422
1722
|
}
|
|
1423
|
-
)
|
|
1723
|
+
),
|
|
1724
|
+
!g && /* @__PURE__ */ s(oe, { columnItem: F, width: L, children: /* @__PURE__ */ s(
|
|
1725
|
+
Z,
|
|
1726
|
+
{
|
|
1727
|
+
disabled: d,
|
|
1728
|
+
onClick: () => {
|
|
1729
|
+
a && a(!0);
|
|
1730
|
+
},
|
|
1731
|
+
variant: "outlined",
|
|
1732
|
+
size: "large",
|
|
1733
|
+
children: f.getString("ButtonSelectMessage")
|
|
1734
|
+
}
|
|
1735
|
+
) }),
|
|
1736
|
+
c && /* @__PURE__ */ s(oe, { columnItem: p, width: L, children: /* @__PURE__ */ s(
|
|
1737
|
+
Z,
|
|
1738
|
+
{
|
|
1739
|
+
disabled: i,
|
|
1740
|
+
onClick: () => {
|
|
1741
|
+
l && l(!0);
|
|
1742
|
+
},
|
|
1743
|
+
variant: "outlined",
|
|
1744
|
+
size: "large",
|
|
1745
|
+
children: f.getString("ButtonSelectSignal")
|
|
1746
|
+
}
|
|
1747
|
+
) })
|
|
1424
1748
|
] }),
|
|
1425
|
-
[
|
|
1749
|
+
[j, $, u, S, f, W, _]
|
|
1426
1750
|
);
|
|
1427
|
-
return
|
|
1428
|
-
|
|
1751
|
+
return o ? X : /* @__PURE__ */ s(
|
|
1752
|
+
me,
|
|
1429
1753
|
{
|
|
1430
|
-
text:
|
|
1754
|
+
text: f.getString("LabelCanIdentifier"),
|
|
1431
1755
|
summary: e,
|
|
1432
|
-
collapsible:
|
|
1433
|
-
collapsed:
|
|
1434
|
-
collapsedChange:
|
|
1435
|
-
children:
|
|
1756
|
+
collapsible: I,
|
|
1757
|
+
collapsed: N,
|
|
1758
|
+
collapsedChange: m,
|
|
1759
|
+
children: X
|
|
1436
1760
|
}
|
|
1437
1761
|
);
|
|
1438
1762
|
}
|
|
1439
|
-
function
|
|
1763
|
+
function Hr({
|
|
1440
1764
|
frame: e,
|
|
1441
1765
|
onFrameChange: n,
|
|
1442
1766
|
onErrorsChange: t = void 0,
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1767
|
+
showSelectMessageDialogChange: r = void 0,
|
|
1768
|
+
showSelectSignalDialogChange: a = void 0,
|
|
1769
|
+
disableSelectMessageButton: l = !1,
|
|
1770
|
+
disableSelectSignalButton: u = !1,
|
|
1771
|
+
hideSection: d = !1,
|
|
1772
|
+
hideSelectMessageButton: i = !1,
|
|
1773
|
+
showSelectSignalButton: o = !1,
|
|
1774
|
+
collapsible: g = !1,
|
|
1775
|
+
collapsed: c = !1,
|
|
1776
|
+
collapsedChange: I = void 0
|
|
1447
1777
|
}) {
|
|
1448
|
-
var
|
|
1449
|
-
const
|
|
1778
|
+
var F;
|
|
1779
|
+
const N = le(), m = O(
|
|
1450
1780
|
() => {
|
|
1451
|
-
var
|
|
1452
|
-
return ((
|
|
1781
|
+
var p, L;
|
|
1782
|
+
return ((L = (p = e.canFrameFlags) == null ? void 0 : p.flags) == null ? void 0 : L.includes(ee.CAN_FRAME_FLAG_EXT)) === !0 ? "extended" : "standard";
|
|
1453
1783
|
},
|
|
1454
|
-
[(
|
|
1455
|
-
),
|
|
1456
|
-
(
|
|
1457
|
-
var
|
|
1458
|
-
const
|
|
1459
|
-
|
|
1460
|
-
const
|
|
1461
|
-
if (
|
|
1462
|
-
const
|
|
1463
|
-
|
|
1784
|
+
[(F = e.canFrameFlags) == null ? void 0 : F.flags]
|
|
1785
|
+
), f = O(() => `${(e.id ?? 0).toString(N).toUpperCase()}`, [m, e.id, N]), h = w(
|
|
1786
|
+
(p, L) => {
|
|
1787
|
+
var $;
|
|
1788
|
+
const S = parseInt(p, p.startsWith("0x") ? 16 : N), v = ($ = e.canFrameFlags) != null && $.flags ? { flags: [...e.canFrameFlags.flags] } : { flags: [] }, M = v.flags.indexOf(ee.CAN_FRAME_FLAG_STD);
|
|
1789
|
+
M !== -1 && v.flags.splice(M, 1);
|
|
1790
|
+
const b = v.flags.indexOf(ee.CAN_FRAME_FLAG_EXT);
|
|
1791
|
+
if (b !== -1 && v.flags.splice(b, 1), L === "extended" ? v.flags.push(ee.CAN_FRAME_FLAG_EXT) : L === "standard" && v.flags.push(ee.CAN_FRAME_FLAG_STD), S !== e.id || !ge(v, e.canFrameFlags)) {
|
|
1792
|
+
const R = { ...e };
|
|
1793
|
+
R.id = S, R.canFrameFlags = v, n(R);
|
|
1464
1794
|
}
|
|
1465
1795
|
},
|
|
1466
|
-
[e,
|
|
1796
|
+
[e, N, n]
|
|
1467
1797
|
);
|
|
1468
|
-
return /* @__PURE__ */
|
|
1469
|
-
|
|
1798
|
+
return /* @__PURE__ */ s(
|
|
1799
|
+
pr,
|
|
1470
1800
|
{
|
|
1471
|
-
canIdentifier:
|
|
1472
|
-
canIdentifierType:
|
|
1801
|
+
canIdentifier: f,
|
|
1802
|
+
canIdentifierType: m,
|
|
1473
1803
|
onCanIdentifierChange: h,
|
|
1474
1804
|
onErrorsChange: t,
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1805
|
+
showSelectMessageDialogChange: r,
|
|
1806
|
+
showSelectSignalDialogChange: a,
|
|
1807
|
+
disableSelectMessageButton: l,
|
|
1808
|
+
disableSelectSignalButton: u,
|
|
1809
|
+
hideSection: d,
|
|
1810
|
+
hideSelectMessageButton: i,
|
|
1811
|
+
showSelectSignalButton: o,
|
|
1812
|
+
collapsible: g,
|
|
1813
|
+
collapsed: c,
|
|
1814
|
+
collapsedChange: I
|
|
1479
1815
|
}
|
|
1480
1816
|
);
|
|
1481
1817
|
}
|
|
1482
|
-
function
|
|
1818
|
+
function Sr({
|
|
1483
1819
|
canIdentifier: e,
|
|
1484
1820
|
identifierGeneratorType: n,
|
|
1485
1821
|
minCanIdentifier: t,
|
|
1486
1822
|
maxCanIdentifier: r,
|
|
1487
1823
|
canIdentifierType: a,
|
|
1488
|
-
onChange:
|
|
1824
|
+
onChange: l,
|
|
1489
1825
|
onErrorsChange: u = void 0,
|
|
1490
|
-
canIdentifierGeneratorSettingsError:
|
|
1826
|
+
canIdentifierGeneratorSettingsError: d = void 0,
|
|
1491
1827
|
disabled: i = !1,
|
|
1492
1828
|
collapsible: o = !1,
|
|
1493
|
-
collapsed:
|
|
1494
|
-
collapsedChange:
|
|
1495
|
-
showSelectMessageDialogChange:
|
|
1829
|
+
collapsed: g = !1,
|
|
1830
|
+
collapsedChange: c = void 0,
|
|
1831
|
+
showSelectMessageDialogChange: I,
|
|
1496
1832
|
showSignalValuesTable: N
|
|
1497
1833
|
}) {
|
|
1498
|
-
const
|
|
1499
|
-
|
|
1500
|
-
|
|
1834
|
+
const m = ne(), f = le(), [h, F] = U(!1), [p, L] = U(!1), [S, v] = U(!1), [M, b] = U(!1), [$, R] = U(!1), [k, _] = U(!1), [W, j] = U(a);
|
|
1835
|
+
z(() => {
|
|
1836
|
+
j(a);
|
|
1501
1837
|
}, [a]);
|
|
1502
|
-
const
|
|
1503
|
-
|
|
1504
|
-
}, []),
|
|
1505
|
-
(
|
|
1506
|
-
let
|
|
1507
|
-
const
|
|
1508
|
-
if (
|
|
1509
|
-
if (Number.isNaN(
|
|
1510
|
-
return Number.isNaN(
|
|
1511
|
-
`${
|
|
1838
|
+
const X = w((E) => {
|
|
1839
|
+
j(E ? "extended" : "standard");
|
|
1840
|
+
}, []), P = w(
|
|
1841
|
+
(E) => {
|
|
1842
|
+
let H = E;
|
|
1843
|
+
const q = parseInt(H, H.startsWith("0x") ? 16 : f);
|
|
1844
|
+
if (W === "extended") {
|
|
1845
|
+
if (Number.isNaN(q) || q < 0 || q > 536870911)
|
|
1846
|
+
return Number.isNaN(q) || l(
|
|
1847
|
+
`${q.toString(f).toUpperCase()}`,
|
|
1512
1848
|
n,
|
|
1513
1849
|
t,
|
|
1514
1850
|
r,
|
|
1515
|
-
|
|
1516
|
-
), { val:
|
|
1517
|
-
} else if (
|
|
1518
|
-
return Number.isNaN(
|
|
1519
|
-
`${
|
|
1851
|
+
W
|
|
1852
|
+
), { val: E, err: !0 };
|
|
1853
|
+
} else if (W === "standard" && (Number.isNaN(q) || q < 0 || q > 2047))
|
|
1854
|
+
return Number.isNaN(q) || l(
|
|
1855
|
+
`${q.toString(f).toUpperCase()}`,
|
|
1520
1856
|
n,
|
|
1521
1857
|
t,
|
|
1522
1858
|
r,
|
|
1523
|
-
|
|
1524
|
-
), { val:
|
|
1525
|
-
return
|
|
1526
|
-
`${
|
|
1859
|
+
W
|
|
1860
|
+
), { val: E, err: !0 };
|
|
1861
|
+
return l(
|
|
1862
|
+
`${q.toString(f).toUpperCase()}`,
|
|
1527
1863
|
n,
|
|
1528
1864
|
t,
|
|
1529
1865
|
r,
|
|
1530
|
-
|
|
1531
|
-
),
|
|
1866
|
+
W
|
|
1867
|
+
), b(H.startsWith("0x")), { val: E, err: !1 };
|
|
1532
1868
|
},
|
|
1533
|
-
[
|
|
1534
|
-
),
|
|
1535
|
-
(
|
|
1536
|
-
let
|
|
1537
|
-
const
|
|
1538
|
-
if (
|
|
1539
|
-
if (Number.isNaN(
|
|
1540
|
-
return Number.isNaN(
|
|
1541
|
-
} else if (
|
|
1542
|
-
return Number.isNaN(
|
|
1543
|
-
return
|
|
1869
|
+
[W, n, r, t, f, l]
|
|
1870
|
+
), A = w(
|
|
1871
|
+
(E, H, q, J) => {
|
|
1872
|
+
let ae = E;
|
|
1873
|
+
const Y = parseInt(ae, ae.startsWith("0x") ? 16 : f);
|
|
1874
|
+
if (H === "extended") {
|
|
1875
|
+
if (Number.isNaN(Y) || Y < 0 || Y > 536870911)
|
|
1876
|
+
return Number.isNaN(Y) || q(`${Y.toString(f).toUpperCase()}`), { val: E, err: !0, id: Y };
|
|
1877
|
+
} else if (H === "standard" && (Number.isNaN(Y) || Y < 0 || Y > 2047))
|
|
1878
|
+
return Number.isNaN(Y) || q(`${Y.toString(f).toUpperCase()}`), { val: E, err: !0, id: Y };
|
|
1879
|
+
return q(`${Y.toString(f).toUpperCase()}`), J(ae.startsWith("0x")), { val: E, err: !1, id: Y };
|
|
1544
1880
|
},
|
|
1545
1881
|
[f]
|
|
1546
|
-
),
|
|
1547
|
-
(
|
|
1548
|
-
const
|
|
1549
|
-
M,
|
|
1882
|
+
), C = w(
|
|
1883
|
+
(E) => {
|
|
1884
|
+
const H = A(
|
|
1550
1885
|
E,
|
|
1551
|
-
|
|
1552
|
-
(
|
|
1553
|
-
|
|
1886
|
+
W,
|
|
1887
|
+
(J) => l(e, n, J, r, W),
|
|
1888
|
+
(J) => R(J)
|
|
1889
|
+
), q = A(
|
|
1554
1890
|
r,
|
|
1555
|
-
|
|
1891
|
+
W,
|
|
1556
1892
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1557
1893
|
() => {
|
|
1558
1894
|
},
|
|
@@ -1560,26 +1896,26 @@ function rr({
|
|
|
1560
1896
|
() => {
|
|
1561
1897
|
}
|
|
1562
1898
|
);
|
|
1563
|
-
return
|
|
1899
|
+
return H.id >= q.id ? H.err = !0 : q.err && v(q.err), { val: H.val, err: H.err };
|
|
1564
1900
|
},
|
|
1565
1901
|
[
|
|
1566
1902
|
e,
|
|
1567
|
-
|
|
1903
|
+
W,
|
|
1568
1904
|
n,
|
|
1569
1905
|
r,
|
|
1570
|
-
|
|
1571
|
-
|
|
1906
|
+
l,
|
|
1907
|
+
A
|
|
1572
1908
|
]
|
|
1573
|
-
),
|
|
1574
|
-
(
|
|
1575
|
-
const
|
|
1576
|
-
M,
|
|
1909
|
+
), x = w(
|
|
1910
|
+
(E) => {
|
|
1911
|
+
const H = A(
|
|
1577
1912
|
E,
|
|
1578
|
-
|
|
1579
|
-
(
|
|
1580
|
-
|
|
1913
|
+
W,
|
|
1914
|
+
(J) => l(e, n, t, J, W),
|
|
1915
|
+
(J) => _(J)
|
|
1916
|
+
), q = A(
|
|
1581
1917
|
t,
|
|
1582
|
-
|
|
1918
|
+
W,
|
|
1583
1919
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1584
1920
|
() => {
|
|
1585
1921
|
},
|
|
@@ -1587,169 +1923,169 @@ function rr({
|
|
|
1587
1923
|
() => {
|
|
1588
1924
|
}
|
|
1589
1925
|
);
|
|
1590
|
-
return
|
|
1926
|
+
return q.id >= H.id ? H.err = !0 : q.err && L(q.err), { val: H.val, err: H.err };
|
|
1591
1927
|
},
|
|
1592
1928
|
[
|
|
1593
1929
|
e,
|
|
1594
|
-
|
|
1930
|
+
W,
|
|
1595
1931
|
n,
|
|
1596
1932
|
t,
|
|
1597
|
-
|
|
1598
|
-
|
|
1933
|
+
l,
|
|
1934
|
+
A
|
|
1599
1935
|
]
|
|
1600
|
-
),
|
|
1601
|
-
(
|
|
1602
|
-
if (
|
|
1603
|
-
let
|
|
1604
|
-
const
|
|
1605
|
-
|
|
1606
|
-
let
|
|
1607
|
-
const
|
|
1608
|
-
|
|
1609
|
-
let
|
|
1610
|
-
const
|
|
1611
|
-
|
|
1936
|
+
), B = w(
|
|
1937
|
+
(E) => {
|
|
1938
|
+
if (E !== W) {
|
|
1939
|
+
let H = !1, q = e;
|
|
1940
|
+
const J = parseInt(q, q.startsWith("0x") ? 16 : f);
|
|
1941
|
+
E === "standard" ? ((Number.isNaN(J) || J < 0 || J > 2047) && (H = !0), F(H)) : E === "extended" && ((Number.isNaN(J) || J < 0 || J > 536870911) && (H = !0), F(H));
|
|
1942
|
+
let ae = !1, Y = t;
|
|
1943
|
+
const ie = parseInt(Y, Y.startsWith("0x") ? 16 : f);
|
|
1944
|
+
E === "standard" ? (Number.isNaN(ie) || ie < 0 || ie > 2047) && (ae = !0) : E === "extended" && (Number.isNaN(ie) || ie < 0 || ie > 536870911) && (ae = !0);
|
|
1945
|
+
let ve = !1, ke = r;
|
|
1946
|
+
const se = parseInt(ke, ke.startsWith("0x") ? 16 : f);
|
|
1947
|
+
E === "standard" ? (Number.isNaN(se) || se < 0 || se > 2047) && (ve = !0) : E === "extended" && (Number.isNaN(se) || se < 0 || se > 536870911) && (ve = !0), !Number.isNaN(ie) && !Number.isNaN(se) && ie >= se && (ae = !0, ve = !0), L(ae), v(ve), l(e, n, t, r, E);
|
|
1612
1948
|
}
|
|
1613
1949
|
},
|
|
1614
1950
|
[
|
|
1615
|
-
|
|
1951
|
+
W,
|
|
1616
1952
|
e,
|
|
1617
1953
|
t,
|
|
1618
1954
|
r,
|
|
1619
|
-
|
|
1955
|
+
l,
|
|
1620
1956
|
n,
|
|
1621
1957
|
f
|
|
1622
1958
|
]
|
|
1623
|
-
),
|
|
1624
|
-
(
|
|
1625
|
-
N(
|
|
1959
|
+
), y = w(
|
|
1960
|
+
(E) => {
|
|
1961
|
+
N(E === "constant"), l(e, E, t, r, W);
|
|
1626
1962
|
},
|
|
1627
|
-
[
|
|
1963
|
+
[W, e, t, r, l]
|
|
1628
1964
|
);
|
|
1629
|
-
|
|
1965
|
+
z(() => {
|
|
1630
1966
|
u && u(
|
|
1631
|
-
n === "constant" &&
|
|
1632
|
-
),
|
|
1967
|
+
n === "constant" && h || (n === "random" || n === "scan") && (p || S)
|
|
1968
|
+
), d && (d.current = n === "constant" && h || (n === "random" || n === "scan") && (p || S));
|
|
1633
1969
|
}, [
|
|
1634
|
-
|
|
1635
|
-
|
|
1970
|
+
h,
|
|
1971
|
+
d,
|
|
1636
1972
|
n,
|
|
1637
|
-
|
|
1638
|
-
|
|
1973
|
+
S,
|
|
1974
|
+
p,
|
|
1639
1975
|
u
|
|
1640
1976
|
]);
|
|
1641
|
-
const
|
|
1642
|
-
const
|
|
1643
|
-
return
|
|
1644
|
-
}, [
|
|
1645
|
-
const
|
|
1646
|
-
return
|
|
1647
|
-
}, [
|
|
1648
|
-
const
|
|
1649
|
-
return
|
|
1650
|
-
}, [
|
|
1651
|
-
return /* @__PURE__ */
|
|
1652
|
-
|
|
1977
|
+
const D = de(), K = Ne(D), Q = O(() => {
|
|
1978
|
+
const E = parseInt(e, e.startsWith("0x") ? 16 : f);
|
|
1979
|
+
return M ? `0x${E.toString(16).toUpperCase()}` : E.toString(f).toUpperCase();
|
|
1980
|
+
}, [M, e, f]), G = O(() => {
|
|
1981
|
+
const E = parseInt(t, t.startsWith("0x") ? 16 : f);
|
|
1982
|
+
return $ ? `0x${E.toString(16).toUpperCase()}` : E.toString(f).toUpperCase();
|
|
1983
|
+
}, [$, t, f]), te = O(() => {
|
|
1984
|
+
const E = parseInt(r, r.startsWith("0x") ? 16 : f);
|
|
1985
|
+
return k ? `0x${E.toString(16).toUpperCase()}` : E.toString(f).toUpperCase();
|
|
1986
|
+
}, [k, r, f]);
|
|
1987
|
+
return /* @__PURE__ */ s(
|
|
1988
|
+
me,
|
|
1653
1989
|
{
|
|
1654
|
-
text:
|
|
1655
|
-
summary: n === "constant" ? e : n === "random" ? `${
|
|
1990
|
+
text: m.getString("LabelCanIdentifier"),
|
|
1991
|
+
summary: n === "constant" ? e : n === "random" ? `${m.getString("LabelRandom")} ${t}-${r}` : `${m.getString("LabelScan")} ${t}-${r}`,
|
|
1656
1992
|
collapsible: o,
|
|
1657
|
-
collapsed:
|
|
1658
|
-
collapsedChange:
|
|
1659
|
-
children: /* @__PURE__ */
|
|
1660
|
-
|
|
1993
|
+
collapsed: g,
|
|
1994
|
+
collapsedChange: c,
|
|
1995
|
+
children: /* @__PURE__ */ T(
|
|
1996
|
+
fn,
|
|
1661
1997
|
{
|
|
1662
1998
|
id: "identifier-radio-group",
|
|
1663
1999
|
value: n,
|
|
1664
|
-
onChange: (
|
|
1665
|
-
|
|
2000
|
+
onChange: (E) => {
|
|
2001
|
+
y(E);
|
|
1666
2002
|
},
|
|
1667
2003
|
children: [
|
|
1668
|
-
/* @__PURE__ */
|
|
1669
|
-
/* @__PURE__ */
|
|
1670
|
-
|
|
2004
|
+
/* @__PURE__ */ T(ue, { spacing: 4, children: [
|
|
2005
|
+
/* @__PURE__ */ s(
|
|
2006
|
+
fe,
|
|
1671
2007
|
{
|
|
1672
2008
|
id: "constant-id-radio",
|
|
1673
2009
|
value: "constant",
|
|
1674
|
-
label:
|
|
2010
|
+
label: m.getString("LabelConstantIdentifier"),
|
|
1675
2011
|
sx: { marginLeft: "-11px !important" },
|
|
1676
2012
|
disabled: i
|
|
1677
2013
|
}
|
|
1678
2014
|
),
|
|
1679
|
-
/* @__PURE__ */
|
|
1680
|
-
|
|
2015
|
+
/* @__PURE__ */ s(
|
|
2016
|
+
re,
|
|
1681
2017
|
{
|
|
1682
2018
|
id: "constant-id",
|
|
1683
2019
|
fullWidth: !0,
|
|
1684
|
-
value:
|
|
1685
|
-
error: !i && n === "constant" &&
|
|
1686
|
-
onErrorChange:
|
|
1687
|
-
onValidate:
|
|
2020
|
+
value: Q,
|
|
2021
|
+
error: !i && n === "constant" && h,
|
|
2022
|
+
onErrorChange: F,
|
|
2023
|
+
onValidate: P,
|
|
1688
2024
|
disabled: i || n !== "constant",
|
|
1689
2025
|
required: n === "constant"
|
|
1690
2026
|
}
|
|
1691
2027
|
),
|
|
1692
|
-
/* @__PURE__ */
|
|
1693
|
-
|
|
2028
|
+
/* @__PURE__ */ s(
|
|
2029
|
+
sn,
|
|
1694
2030
|
{
|
|
1695
2031
|
id: "id-type",
|
|
1696
|
-
label:
|
|
1697
|
-
checked:
|
|
1698
|
-
onChange: (
|
|
1699
|
-
|
|
2032
|
+
label: m.getString("LabelUseExtendedIdentifier"),
|
|
2033
|
+
checked: W === "extended",
|
|
2034
|
+
onChange: (E) => {
|
|
2035
|
+
X(E), B(E ? "extended" : "standard");
|
|
1700
2036
|
},
|
|
1701
2037
|
disabled: i
|
|
1702
2038
|
}
|
|
1703
2039
|
),
|
|
1704
|
-
/* @__PURE__ */
|
|
2040
|
+
/* @__PURE__ */ s(oe, { columnItem: D, width: K, children: /* @__PURE__ */ s(Z, { onClick: () => I(!0), variant: "outlined", size: "large", children: m.getString("ButtonSelectMessage") }) })
|
|
1705
2041
|
] }),
|
|
1706
|
-
/* @__PURE__ */
|
|
1707
|
-
/* @__PURE__ */
|
|
1708
|
-
|
|
2042
|
+
/* @__PURE__ */ T(ue, { spacing: 4, children: [
|
|
2043
|
+
/* @__PURE__ */ s(
|
|
2044
|
+
fe,
|
|
1709
2045
|
{
|
|
1710
2046
|
id: "random-identifier-radio",
|
|
1711
2047
|
value: "random",
|
|
1712
|
-
label:
|
|
2048
|
+
label: m.getString("LabelRandomIdentifier"),
|
|
1713
2049
|
sx: { marginLeft: "-11px !important" },
|
|
1714
2050
|
disabled: i
|
|
1715
2051
|
}
|
|
1716
2052
|
),
|
|
1717
|
-
/* @__PURE__ */
|
|
1718
|
-
|
|
2053
|
+
/* @__PURE__ */ s(
|
|
2054
|
+
fe,
|
|
1719
2055
|
{
|
|
1720
2056
|
id: "scan-identifier-radio",
|
|
1721
2057
|
value: "scan",
|
|
1722
|
-
label:
|
|
2058
|
+
label: m.getString("LabelScanIdentifier"),
|
|
1723
2059
|
disabled: i
|
|
1724
2060
|
}
|
|
1725
2061
|
),
|
|
1726
|
-
/* @__PURE__ */
|
|
1727
|
-
|
|
2062
|
+
/* @__PURE__ */ s(
|
|
2063
|
+
re,
|
|
1728
2064
|
{
|
|
1729
2065
|
id: "identifier-min",
|
|
1730
2066
|
disabled: i || n !== "random" && n !== "scan",
|
|
1731
2067
|
required: n === "random" || n === "scan",
|
|
1732
2068
|
fullWidth: !0,
|
|
1733
|
-
value:
|
|
1734
|
-
error: !i && (n === "random" || n === "scan") &&
|
|
1735
|
-
onErrorChange:
|
|
1736
|
-
onValidate:
|
|
1737
|
-
startAdornment:
|
|
2069
|
+
value: G,
|
|
2070
|
+
error: !i && (n === "random" || n === "scan") && p,
|
|
2071
|
+
onErrorChange: L,
|
|
2072
|
+
onValidate: C,
|
|
2073
|
+
startAdornment: m.getString("LabelFrom"),
|
|
1738
2074
|
sxStartAdornment: { marginBottom: 0.8 }
|
|
1739
2075
|
}
|
|
1740
2076
|
),
|
|
1741
|
-
/* @__PURE__ */
|
|
1742
|
-
|
|
2077
|
+
/* @__PURE__ */ s(
|
|
2078
|
+
re,
|
|
1743
2079
|
{
|
|
1744
2080
|
id: "identifier-max",
|
|
1745
2081
|
disabled: i || n !== "random" && n !== "scan",
|
|
1746
2082
|
required: n === "random" || n === "scan",
|
|
1747
2083
|
fullWidth: !0,
|
|
1748
|
-
value:
|
|
1749
|
-
error: !i && (n === "random" || n === "scan") &&
|
|
1750
|
-
onErrorChange:
|
|
1751
|
-
onValidate:
|
|
1752
|
-
startAdornment:
|
|
2084
|
+
value: te,
|
|
2085
|
+
error: !i && (n === "random" || n === "scan") && S,
|
|
2086
|
+
onErrorChange: v,
|
|
2087
|
+
onValidate: x,
|
|
2088
|
+
startAdornment: m.getString("LabelTo"),
|
|
1753
2089
|
sxStartAdornment: { marginBottom: 0.8 }
|
|
1754
2090
|
}
|
|
1755
2091
|
)
|
|
@@ -1760,143 +2096,229 @@ function rr({
|
|
|
1760
2096
|
}
|
|
1761
2097
|
);
|
|
1762
2098
|
}
|
|
1763
|
-
function
|
|
2099
|
+
function Kr({
|
|
1764
2100
|
settings: e,
|
|
1765
2101
|
onSettingsChange: n,
|
|
1766
2102
|
onErrorsChange: t = void 0,
|
|
1767
2103
|
canIdentifierGeneratorSettingsError: r = void 0,
|
|
1768
2104
|
disabled: a = !1,
|
|
1769
|
-
collapsible:
|
|
2105
|
+
collapsible: l = !1,
|
|
1770
2106
|
collapsed: u = !1,
|
|
1771
|
-
collapsedChange:
|
|
2107
|
+
collapsedChange: d = void 0,
|
|
1772
2108
|
showSelectMessageDialogChange: i,
|
|
1773
2109
|
showSignalValuesTable: o
|
|
1774
2110
|
}) {
|
|
1775
|
-
var
|
|
1776
|
-
const
|
|
2111
|
+
var F, p, L;
|
|
2112
|
+
const g = le(), c = O(
|
|
1777
2113
|
() => {
|
|
1778
|
-
var
|
|
1779
|
-
return ((
|
|
2114
|
+
var S, v, M;
|
|
2115
|
+
return ((M = (v = (S = e.frame) == null ? void 0 : S.canFrameFlags) == null ? void 0 : v.flags) == null ? void 0 : M.includes(ee.CAN_FRAME_FLAG_EXT)) === !0 ? "extended" : "standard";
|
|
1780
2116
|
},
|
|
1781
|
-
[(
|
|
1782
|
-
),
|
|
1783
|
-
var
|
|
1784
|
-
return `${(((
|
|
1785
|
-
}, [
|
|
1786
|
-
(
|
|
1787
|
-
var
|
|
1788
|
-
const
|
|
1789
|
-
if (
|
|
1790
|
-
const
|
|
1791
|
-
|
|
2117
|
+
[(p = (F = e.frame) == null ? void 0 : F.canFrameFlags) == null ? void 0 : p.flags]
|
|
2118
|
+
), I = O(() => {
|
|
2119
|
+
var v;
|
|
2120
|
+
return `${(((v = e.frame) == null ? void 0 : v.id) ?? 0).toString(g).toUpperCase()}`;
|
|
2121
|
+
}, [g, (L = e.frame) == null ? void 0 : L.id]), N = O(() => `${(e.identifierMin ?? 0).toString(g).toUpperCase()}`, [g, e.identifierMin]), m = O(() => `${(e.identifierMax ?? 0).toString(g).toUpperCase()}`, [g, e.identifierMax]), f = O(() => e.randomIdentifier === !0 ? "random" : e.scanIdentifier === !0 ? "scan" : "constant", [e.randomIdentifier, e.scanIdentifier]), h = w(
|
|
2122
|
+
(S, v, M, b, $) => {
|
|
2123
|
+
var A, C, x, B;
|
|
2124
|
+
const R = $, k = parseInt(S, S.startsWith("0x") ? 16 : g), _ = (C = (A = e.frame) == null ? void 0 : A.canFrameFlags) != null && C.flags ? { flags: [...e.frame.canFrameFlags.flags] } : { flags: [] }, W = _.flags.indexOf(ee.CAN_FRAME_FLAG_STD), j = parseInt(M, M.startsWith("0x") ? 16 : g), X = parseInt(b, b.startsWith("0x") ? 16 : g), P = _.flags.indexOf(ee.CAN_FRAME_FLAG_EXT);
|
|
2125
|
+
if (W !== -1 && _.flags.splice(W, 1), P !== -1 && _.flags.splice(P, 1), R === "extended" ? _.flags.push(ee.CAN_FRAME_FLAG_EXT) : R === "standard" && _.flags.push(ee.CAN_FRAME_FLAG_STD), k !== ((x = e.frame) == null ? void 0 : x.id) || !ge(_, (B = e.frame) == null ? void 0 : B.canFrameFlags) || v !== f || j !== e.identifierMin || X !== e.identifierMax) {
|
|
2126
|
+
const y = { ...e };
|
|
2127
|
+
y.frame = e.frame ? { ...e.frame } : an.fromPartial({
|
|
1792
2128
|
id: 0,
|
|
1793
|
-
canFrameFlags: { flags: [
|
|
2129
|
+
canFrameFlags: { flags: [ee.CAN_FRAME_FLAG_STD] },
|
|
1794
2130
|
data: Array.from({ length: 8 }, () => 0)
|
|
1795
|
-
}),
|
|
2131
|
+
}), y.frame.id = k, y.frame.canFrameFlags = _, v === "constant" ? (y.randomIdentifier = !1, y.scanIdentifier = !1) : v === "random" ? (y.randomIdentifier = !0, y.scanIdentifier = !1) : v === "scan" && (y.randomIdentifier = !1, y.scanIdentifier = !0), y.identifierMin = j, y.identifierMax = X, n(y);
|
|
1796
2132
|
}
|
|
1797
2133
|
},
|
|
1798
|
-
[f,
|
|
2134
|
+
[f, g, n, e]
|
|
1799
2135
|
);
|
|
1800
|
-
return /* @__PURE__ */
|
|
1801
|
-
|
|
2136
|
+
return /* @__PURE__ */ s(
|
|
2137
|
+
Sr,
|
|
1802
2138
|
{
|
|
1803
|
-
canIdentifier:
|
|
2139
|
+
canIdentifier: I,
|
|
1804
2140
|
identifierGeneratorType: f,
|
|
1805
2141
|
minCanIdentifier: N,
|
|
1806
|
-
maxCanIdentifier:
|
|
1807
|
-
canIdentifierType:
|
|
1808
|
-
onChange:
|
|
2142
|
+
maxCanIdentifier: m,
|
|
2143
|
+
canIdentifierType: c,
|
|
2144
|
+
onChange: h,
|
|
1809
2145
|
onErrorsChange: t,
|
|
1810
2146
|
canIdentifierGeneratorSettingsError: r,
|
|
1811
2147
|
disabled: a,
|
|
1812
|
-
collapsible:
|
|
2148
|
+
collapsible: l,
|
|
1813
2149
|
collapsed: u,
|
|
1814
|
-
collapsedChange:
|
|
2150
|
+
collapsedChange: d,
|
|
1815
2151
|
showSelectMessageDialogChange: i,
|
|
1816
2152
|
showSignalValuesTable: o
|
|
1817
2153
|
}
|
|
1818
2154
|
);
|
|
1819
2155
|
}
|
|
1820
|
-
function
|
|
1821
|
-
const [a,
|
|
1822
|
-
return
|
|
1823
|
-
|
|
1824
|
-
var
|
|
1825
|
-
const o = (
|
|
1826
|
-
var N,
|
|
1827
|
-
const
|
|
1828
|
-
var
|
|
1829
|
-
return f.nodeId === ((
|
|
1830
|
-
})) == null ? void 0 : N.errorStatus) == null ? void 0 :
|
|
1831
|
-
return
|
|
1832
|
-
}).map((
|
|
1833
|
-
value:
|
|
1834
|
-
displayText:
|
|
1835
|
-
canFdMode:
|
|
1836
|
-
identifier:
|
|
2156
|
+
function xr(e, n, t, r) {
|
|
2157
|
+
const [a, l] = U(""), [u, d] = U([]);
|
|
2158
|
+
return z(() => {
|
|
2159
|
+
d((i) => {
|
|
2160
|
+
var g;
|
|
2161
|
+
const o = (g = t == null ? void 0 : t.sources) == null ? void 0 : g.filter((c) => {
|
|
2162
|
+
var N, m;
|
|
2163
|
+
const I = (m = (N = r == null ? void 0 : r.find((f) => {
|
|
2164
|
+
var h;
|
|
2165
|
+
return f.nodeId === ((h = c.baseNode) == null ? void 0 : h.identifier);
|
|
2166
|
+
})) == null ? void 0 : N.errorStatus) == null ? void 0 : m.errors;
|
|
2167
|
+
return I === void 0 || I === "" ? c.baseNode && c.channelSettings && c.channelSettings.canConfiguration && (!n || c.channelSettings.canConfiguration.silentMode !== !0) : !1;
|
|
2168
|
+
}).map((c) => ({
|
|
2169
|
+
value: c.channelSettings.channelNumber,
|
|
2170
|
+
displayText: c.baseNode.name,
|
|
2171
|
+
canFdMode: c.channelSettings.canConfiguration.canMode > 0,
|
|
2172
|
+
identifier: c.baseNode.identifier
|
|
1837
2173
|
}));
|
|
1838
|
-
return !o ||
|
|
2174
|
+
return !o || ge(i, o) ? i : o;
|
|
1839
2175
|
});
|
|
1840
|
-
}, [n, t == null ? void 0 : t.sources, r]),
|
|
2176
|
+
}, [n, t == null ? void 0 : t.sources, r]), z(() => {
|
|
1841
2177
|
const i = u.find((o) => o.identifier === e);
|
|
1842
|
-
|
|
2178
|
+
l(i ? (o) => i.value === o ? o : i.value : "");
|
|
1843
2179
|
}, [e, u]), {
|
|
1844
2180
|
channelOptions: u,
|
|
1845
2181
|
selectedChannelOption: a
|
|
1846
2182
|
};
|
|
1847
2183
|
}
|
|
1848
|
-
function
|
|
2184
|
+
function Qr({
|
|
1849
2185
|
channelIdentifier: e,
|
|
1850
2186
|
onChannelIdentifierChange: n,
|
|
1851
2187
|
hideSilentChannels: t = !1,
|
|
1852
2188
|
hideSectionControl: r = !1,
|
|
1853
2189
|
disabled: a = !1,
|
|
1854
|
-
collapsible:
|
|
2190
|
+
collapsible: l = !1,
|
|
1855
2191
|
collapsed: u = !1,
|
|
1856
|
-
collapsedChange:
|
|
2192
|
+
collapsedChange: d = void 0
|
|
1857
2193
|
}) {
|
|
1858
|
-
var
|
|
1859
|
-
const i =
|
|
2194
|
+
var m;
|
|
2195
|
+
const i = qe(), o = He(), g = ne(), { channelOptions: c, selectedChannelOption: I } = xr(
|
|
1860
2196
|
e,
|
|
1861
2197
|
t === !0,
|
|
1862
2198
|
i,
|
|
1863
2199
|
o
|
|
1864
|
-
), N =
|
|
2200
|
+
), N = w(
|
|
2201
|
+
(f) => {
|
|
2202
|
+
const h = c.find((L) => L.value === f), F = (h == null ? void 0 : h.identifier) ?? "", p = (h == null ? void 0 : h.canFdMode) === !0;
|
|
2203
|
+
n(F, p);
|
|
2204
|
+
},
|
|
2205
|
+
[c, n]
|
|
2206
|
+
);
|
|
2207
|
+
return r === !0 ? /* @__PURE__ */ s(
|
|
2208
|
+
Me,
|
|
2209
|
+
{
|
|
2210
|
+
id: "channel",
|
|
2211
|
+
label: g.getString("LabelChannel"),
|
|
2212
|
+
fullWidth: !0,
|
|
2213
|
+
value: I,
|
|
2214
|
+
onChange: N,
|
|
2215
|
+
options: c,
|
|
2216
|
+
required: !0,
|
|
2217
|
+
disabled: a
|
|
2218
|
+
}
|
|
2219
|
+
) : /* @__PURE__ */ s(
|
|
2220
|
+
me,
|
|
2221
|
+
{
|
|
2222
|
+
text: g.getString("LabelChannel"),
|
|
2223
|
+
summary: I === "" || (m = c.find((f) => f.value === I)) == null ? void 0 : m.displayText,
|
|
2224
|
+
collapsible: l,
|
|
2225
|
+
collapsed: u,
|
|
2226
|
+
collapsedChange: d,
|
|
2227
|
+
children: /* @__PURE__ */ s(
|
|
2228
|
+
Me,
|
|
2229
|
+
{
|
|
2230
|
+
id: "channel",
|
|
2231
|
+
label: g.getString("LabelChannel"),
|
|
2232
|
+
fullWidth: !0,
|
|
2233
|
+
value: I,
|
|
2234
|
+
onChange: N,
|
|
2235
|
+
options: c,
|
|
2236
|
+
required: !0,
|
|
2237
|
+
disabled: a
|
|
2238
|
+
}
|
|
2239
|
+
)
|
|
2240
|
+
}
|
|
2241
|
+
);
|
|
2242
|
+
}
|
|
2243
|
+
function Nr(e, n, t, r) {
|
|
2244
|
+
const [a, l] = U(""), [u, d] = U([]);
|
|
2245
|
+
return z(() => {
|
|
2246
|
+
d((i) => {
|
|
2247
|
+
var g;
|
|
2248
|
+
const o = (g = t == null ? void 0 : t.sources) == null ? void 0 : g.filter((c) => {
|
|
2249
|
+
var N, m;
|
|
2250
|
+
const I = (m = (N = r == null ? void 0 : r.find((f) => {
|
|
2251
|
+
var h;
|
|
2252
|
+
return f.nodeId === ((h = c.baseNode) == null ? void 0 : h.identifier);
|
|
2253
|
+
})) == null ? void 0 : N.errorStatus) == null ? void 0 : m.errors;
|
|
2254
|
+
return (I === void 0 || I === "") && c.channelSettings !== void 0 && c.channelSettings.linConfiguration !== void 0 && c.channelSettings.linConfiguration.masterMode === n ? c.baseNode && c.channelSettings && c.channelSettings.linConfiguration : !1;
|
|
2255
|
+
}).map((c) => ({
|
|
2256
|
+
value: c.channelSettings.channelNumber,
|
|
2257
|
+
displayText: c.baseNode.name,
|
|
2258
|
+
identifier: c.baseNode.identifier
|
|
2259
|
+
}));
|
|
2260
|
+
return !o || ge(i, o) ? i : o;
|
|
2261
|
+
});
|
|
2262
|
+
}, [t == null ? void 0 : t.sources, r]), z(() => {
|
|
2263
|
+
const i = u.find((o) => o.identifier === e);
|
|
2264
|
+
l(i ? (o) => i.value === o ? o : i.value : "");
|
|
2265
|
+
}, [e, u]), {
|
|
2266
|
+
channelOptions: u,
|
|
2267
|
+
selectedChannelOption: a
|
|
2268
|
+
};
|
|
2269
|
+
}
|
|
2270
|
+
function Xr({
|
|
2271
|
+
channelIdentifier: e,
|
|
2272
|
+
selectMasterChannels: n,
|
|
2273
|
+
onChannelIdentifierChange: t,
|
|
2274
|
+
hideSectionControl: r = !1,
|
|
2275
|
+
disabled: a = !1,
|
|
2276
|
+
collapsible: l = !1,
|
|
2277
|
+
collapsed: u = !1,
|
|
2278
|
+
collapsedChange: d = void 0
|
|
2279
|
+
}) {
|
|
2280
|
+
var m;
|
|
2281
|
+
const i = qe(), o = He(), g = ne(), { channelOptions: c, selectedChannelOption: I } = Nr(
|
|
2282
|
+
e,
|
|
2283
|
+
n,
|
|
2284
|
+
i,
|
|
2285
|
+
o
|
|
2286
|
+
), N = w(
|
|
1865
2287
|
(f) => {
|
|
1866
|
-
const
|
|
1867
|
-
|
|
2288
|
+
const h = c.find((p) => p.value === f), F = (h == null ? void 0 : h.identifier) ?? "";
|
|
2289
|
+
t(F);
|
|
1868
2290
|
},
|
|
1869
|
-
[
|
|
2291
|
+
[c, t]
|
|
1870
2292
|
);
|
|
1871
|
-
return r === !0 ? /* @__PURE__ */
|
|
1872
|
-
|
|
2293
|
+
return r === !0 ? /* @__PURE__ */ s(
|
|
2294
|
+
Me,
|
|
1873
2295
|
{
|
|
1874
2296
|
id: "channel",
|
|
1875
|
-
label:
|
|
2297
|
+
label: n ? g.getString("LabelChannelLinModeMaster") : g.getString("LabelChannelLinModeSlave"),
|
|
1876
2298
|
fullWidth: !0,
|
|
1877
|
-
value:
|
|
2299
|
+
value: I,
|
|
1878
2300
|
onChange: N,
|
|
1879
|
-
options:
|
|
2301
|
+
options: c,
|
|
1880
2302
|
required: !0,
|
|
1881
2303
|
disabled: a
|
|
1882
2304
|
}
|
|
1883
|
-
) : /* @__PURE__ */
|
|
1884
|
-
|
|
2305
|
+
) : /* @__PURE__ */ s(
|
|
2306
|
+
me,
|
|
1885
2307
|
{
|
|
1886
|
-
text:
|
|
1887
|
-
summary:
|
|
1888
|
-
collapsible:
|
|
2308
|
+
text: n ? g.getString("LabelChannelLinModeMaster") : g.getString("LabelChannelLinModeSlave"),
|
|
2309
|
+
summary: I === "" || (m = c.find((f) => f.value === I)) == null ? void 0 : m.displayText,
|
|
2310
|
+
collapsible: l,
|
|
1889
2311
|
collapsed: u,
|
|
1890
|
-
collapsedChange:
|
|
1891
|
-
children: /* @__PURE__ */
|
|
1892
|
-
|
|
2312
|
+
collapsedChange: d,
|
|
2313
|
+
children: /* @__PURE__ */ s(
|
|
2314
|
+
Me,
|
|
1893
2315
|
{
|
|
1894
2316
|
id: "channel",
|
|
1895
|
-
label:
|
|
2317
|
+
label: n ? g.getString("LabelChannelLinModeMaster") : g.getString("LabelChannelLinModeSlave"),
|
|
1896
2318
|
fullWidth: !0,
|
|
1897
|
-
value:
|
|
2319
|
+
value: I,
|
|
1898
2320
|
onChange: N,
|
|
1899
|
-
options:
|
|
2321
|
+
options: c,
|
|
1900
2322
|
required: !0,
|
|
1901
2323
|
disabled: a
|
|
1902
2324
|
}
|
|
@@ -1904,51 +2326,441 @@ function Fr({
|
|
|
1904
2326
|
}
|
|
1905
2327
|
);
|
|
1906
2328
|
}
|
|
1907
|
-
|
|
2329
|
+
function vr({
|
|
2330
|
+
linIdentifier: e,
|
|
2331
|
+
onLinIdentifierChange: n,
|
|
2332
|
+
onErrorsChange: t = void 0,
|
|
2333
|
+
showSelectMessageDialogChange: r = void 0,
|
|
2334
|
+
showSelectSignalDialogChange: a = void 0,
|
|
2335
|
+
disabled: l = !1,
|
|
2336
|
+
disableSelectMessageButton: u = !1,
|
|
2337
|
+
disableSelectSignalButton: d = !1,
|
|
2338
|
+
hideSection: i = !1,
|
|
2339
|
+
hideSelectMessageButton: o = !1,
|
|
2340
|
+
showSelectSignalButton: g = !1,
|
|
2341
|
+
collapsible: c = !1,
|
|
2342
|
+
collapsed: I = !1,
|
|
2343
|
+
collapsedChange: N = void 0
|
|
2344
|
+
}) {
|
|
2345
|
+
const m = ne(), f = le(), h = de(), F = de(), p = Ne(h, F), [L, S] = U(!1);
|
|
2346
|
+
z(() => {
|
|
2347
|
+
t && t(L);
|
|
2348
|
+
}, [L, t]);
|
|
2349
|
+
const [v, M] = U(!1), b = w(
|
|
2350
|
+
(k) => {
|
|
2351
|
+
let _ = k;
|
|
2352
|
+
const W = parseInt(_, _.startsWith("0x") ? 16 : f);
|
|
2353
|
+
return Number.isNaN(W) || W < 0 || W > 63 ? (Number.isNaN(W) || n(`${W.toString(f).toUpperCase()}`), { val: k, err: !0 }) : (n(`${W.toString(f).toUpperCase()}`), M(_.startsWith("0x")), { val: k, err: !1 });
|
|
2354
|
+
},
|
|
2355
|
+
[f, n]
|
|
2356
|
+
), $ = O(() => {
|
|
2357
|
+
const k = parseInt(e, e.startsWith("0x") ? 16 : f);
|
|
2358
|
+
return v ? `0x${k.toString(16).toUpperCase()}` : k.toString(f).toUpperCase();
|
|
2359
|
+
}, [v, e, f]), R = O(
|
|
2360
|
+
() => /* @__PURE__ */ T(ue, { spacing: 4, children: [
|
|
2361
|
+
/* @__PURE__ */ s(
|
|
2362
|
+
re,
|
|
2363
|
+
{
|
|
2364
|
+
id: "constant-id",
|
|
2365
|
+
fullWidth: !0,
|
|
2366
|
+
value: $,
|
|
2367
|
+
error: L,
|
|
2368
|
+
onValidate: b,
|
|
2369
|
+
onErrorChange: S,
|
|
2370
|
+
disabled: l
|
|
2371
|
+
}
|
|
2372
|
+
),
|
|
2373
|
+
!o && /* @__PURE__ */ s(oe, { columnItem: h, width: p, children: /* @__PURE__ */ s(
|
|
2374
|
+
Z,
|
|
2375
|
+
{
|
|
2376
|
+
disabled: u,
|
|
2377
|
+
onClick: () => {
|
|
2378
|
+
r && r(!0);
|
|
2379
|
+
},
|
|
2380
|
+
variant: "outlined",
|
|
2381
|
+
size: "large",
|
|
2382
|
+
children: m.getString("ButtonSelectMessage")
|
|
2383
|
+
}
|
|
2384
|
+
) }),
|
|
2385
|
+
g && /* @__PURE__ */ s(oe, { columnItem: F, width: p, children: /* @__PURE__ */ s(
|
|
2386
|
+
Z,
|
|
2387
|
+
{
|
|
2388
|
+
disabled: d,
|
|
2389
|
+
onClick: () => {
|
|
2390
|
+
a && a(!0);
|
|
2391
|
+
},
|
|
2392
|
+
variant: "outlined",
|
|
2393
|
+
size: "large",
|
|
2394
|
+
children: m.getString("ButtonSelectSignal")
|
|
2395
|
+
}
|
|
2396
|
+
) })
|
|
2397
|
+
] }),
|
|
2398
|
+
[$, l, L, m, b]
|
|
2399
|
+
);
|
|
2400
|
+
return i ? R : /* @__PURE__ */ s(
|
|
2401
|
+
me,
|
|
2402
|
+
{
|
|
2403
|
+
text: m.getString("LabelLinIdentifier"),
|
|
2404
|
+
summary: e,
|
|
2405
|
+
collapsible: c,
|
|
2406
|
+
collapsed: I,
|
|
2407
|
+
collapsedChange: N,
|
|
2408
|
+
children: R
|
|
2409
|
+
}
|
|
2410
|
+
);
|
|
2411
|
+
}
|
|
2412
|
+
function Yr({
|
|
2413
|
+
frame: e,
|
|
2414
|
+
onFrameChange: n,
|
|
2415
|
+
onErrorsChange: t = void 0,
|
|
2416
|
+
showSelectMessageDialogChange: r = void 0,
|
|
2417
|
+
showSelectSignalDialogChange: a = void 0,
|
|
2418
|
+
disableSelectMessageButton: l = !1,
|
|
2419
|
+
disableSelectSignalButton: u = !1,
|
|
2420
|
+
hideSection: d = !1,
|
|
2421
|
+
hideSelectMessageButton: i = !1,
|
|
2422
|
+
showSelectSignalButton: o = !1,
|
|
2423
|
+
collapsible: g = !1,
|
|
2424
|
+
collapsed: c = !1,
|
|
2425
|
+
collapsedChange: I = void 0
|
|
2426
|
+
}) {
|
|
2427
|
+
const N = le(), m = O(() => `${(e.id ?? 0).toString(N).toUpperCase()}`, [e.id, N]), f = w(
|
|
2428
|
+
(h) => {
|
|
2429
|
+
var L;
|
|
2430
|
+
const F = parseInt(h, h.startsWith("0x") ? 16 : N), p = (L = e.linFrameFlags) != null && L.flags ? { flags: [...e.linFrameFlags.flags] } : { flags: [] };
|
|
2431
|
+
if (F !== e.id || !ge(p, e.linFrameFlags)) {
|
|
2432
|
+
const S = { ...e };
|
|
2433
|
+
S.id = F, S.linFrameFlags = p, n(S);
|
|
2434
|
+
}
|
|
2435
|
+
},
|
|
2436
|
+
[e, N, n]
|
|
2437
|
+
);
|
|
2438
|
+
return /* @__PURE__ */ s(ce, { children: /* @__PURE__ */ s(
|
|
2439
|
+
vr,
|
|
2440
|
+
{
|
|
2441
|
+
linIdentifier: m,
|
|
2442
|
+
onLinIdentifierChange: f,
|
|
2443
|
+
onErrorsChange: t,
|
|
2444
|
+
showSelectMessageDialogChange: r,
|
|
2445
|
+
showSelectSignalDialogChange: a,
|
|
2446
|
+
disableSelectMessageButton: l,
|
|
2447
|
+
disableSelectSignalButton: u,
|
|
2448
|
+
hideSection: d,
|
|
2449
|
+
hideSelectMessageButton: i,
|
|
2450
|
+
showSelectSignalButton: o,
|
|
2451
|
+
collapsible: g,
|
|
2452
|
+
collapsed: c,
|
|
2453
|
+
collapsedChange: I
|
|
2454
|
+
}
|
|
2455
|
+
) });
|
|
2456
|
+
}
|
|
2457
|
+
function Cr({
|
|
2458
|
+
linIdentifier: e,
|
|
2459
|
+
identifierGeneratorType: n,
|
|
2460
|
+
minLinIdentifier: t,
|
|
2461
|
+
maxLinIdentifier: r,
|
|
2462
|
+
onChange: a,
|
|
2463
|
+
onErrorsChange: l = void 0,
|
|
2464
|
+
linIdentifierGeneratorSettingsError: u = void 0,
|
|
2465
|
+
disabled: d = !1,
|
|
2466
|
+
collapsible: i = !1,
|
|
2467
|
+
collapsed: o = !1,
|
|
2468
|
+
collapsedChange: g = void 0,
|
|
2469
|
+
showSelectMessageDialogChange: c,
|
|
2470
|
+
showSignalValuesTable: I
|
|
2471
|
+
}) {
|
|
2472
|
+
const N = ne(), m = le(), [f, h] = U(!1), [F, p] = U(!1), [L, S] = U(!1), [v, M] = U(!1), [b, $] = U(!1), [R, k] = U(!1), _ = w(
|
|
2473
|
+
(D) => {
|
|
2474
|
+
let K = D;
|
|
2475
|
+
const Q = parseInt(K, K.startsWith("0x") ? 16 : m);
|
|
2476
|
+
return Number.isNaN(Q) || Q < 0 || Q > 63 ? (Number.isNaN(Q) || a(
|
|
2477
|
+
`${Q.toString(m).toUpperCase()}`,
|
|
2478
|
+
n,
|
|
2479
|
+
t,
|
|
2480
|
+
r
|
|
2481
|
+
), { val: D, err: !0 }) : (a(
|
|
2482
|
+
`${Q.toString(m).toUpperCase()}`,
|
|
2483
|
+
n,
|
|
2484
|
+
t,
|
|
2485
|
+
r
|
|
2486
|
+
), M(K.startsWith("0x")), { val: D, err: !1 });
|
|
2487
|
+
},
|
|
2488
|
+
[n, r, t, m, a]
|
|
2489
|
+
), W = w(
|
|
2490
|
+
(D, K, Q) => {
|
|
2491
|
+
let G = D;
|
|
2492
|
+
const te = parseInt(G, G.startsWith("0x") ? 16 : m);
|
|
2493
|
+
return Number.isNaN(te) || te < 0 || te > 63 ? (Number.isNaN(te) || K(`${te.toString(m).toUpperCase()}`), { val: D, err: !0, id: te }) : (K(`${te.toString(m).toUpperCase()}`), Q(G.startsWith("0x")), { val: D, err: !1, id: te });
|
|
2494
|
+
},
|
|
2495
|
+
[m]
|
|
2496
|
+
), j = w(
|
|
2497
|
+
(D) => {
|
|
2498
|
+
const K = W(
|
|
2499
|
+
D,
|
|
2500
|
+
(G) => a(e, n, G, r),
|
|
2501
|
+
(G) => $(G)
|
|
2502
|
+
), Q = W(
|
|
2503
|
+
r,
|
|
2504
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2505
|
+
() => {
|
|
2506
|
+
},
|
|
2507
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2508
|
+
() => {
|
|
2509
|
+
}
|
|
2510
|
+
);
|
|
2511
|
+
return K.id >= Q.id ? K.err = !0 : Q.err && S(Q.err), { val: K.val, err: K.err };
|
|
2512
|
+
},
|
|
2513
|
+
[e, n, r, a, W]
|
|
2514
|
+
), X = w(
|
|
2515
|
+
(D) => {
|
|
2516
|
+
const K = W(
|
|
2517
|
+
D,
|
|
2518
|
+
(G) => a(e, n, t, G),
|
|
2519
|
+
(G) => k(G)
|
|
2520
|
+
), Q = W(
|
|
2521
|
+
t,
|
|
2522
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2523
|
+
() => {
|
|
2524
|
+
},
|
|
2525
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2526
|
+
() => {
|
|
2527
|
+
}
|
|
2528
|
+
);
|
|
2529
|
+
return Q.id >= K.id ? K.err = !0 : Q.err && p(Q.err), { val: K.val, err: K.err };
|
|
2530
|
+
},
|
|
2531
|
+
[e, n, t, a, W]
|
|
2532
|
+
), P = w(
|
|
2533
|
+
(D) => {
|
|
2534
|
+
I(D === "constant"), a(e, D, t, r);
|
|
2535
|
+
},
|
|
2536
|
+
[e, t, r, a]
|
|
2537
|
+
);
|
|
2538
|
+
z(() => {
|
|
2539
|
+
l && l(
|
|
2540
|
+
n === "constant" && f || (n === "random" || n === "scan") && (F || L)
|
|
2541
|
+
), u && (u.current = n === "constant" && f || (n === "random" || n === "scan") && (F || L));
|
|
2542
|
+
}, [
|
|
2543
|
+
f,
|
|
2544
|
+
u,
|
|
2545
|
+
n,
|
|
2546
|
+
L,
|
|
2547
|
+
F,
|
|
2548
|
+
l
|
|
2549
|
+
]);
|
|
2550
|
+
const A = de(), C = Ne(A), x = O(() => {
|
|
2551
|
+
const D = parseInt(e, e.startsWith("0x") ? 16 : m);
|
|
2552
|
+
return v ? `0x${D.toString(16).toUpperCase()}` : D.toString(m).toUpperCase();
|
|
2553
|
+
}, [v, e, m]), B = O(() => {
|
|
2554
|
+
const D = parseInt(t, t.startsWith("0x") ? 16 : m);
|
|
2555
|
+
return b ? `0x${D.toString(16).toUpperCase()}` : D.toString(m).toUpperCase();
|
|
2556
|
+
}, [b, t, m]), y = O(() => {
|
|
2557
|
+
const D = parseInt(r, r.startsWith("0x") ? 16 : m);
|
|
2558
|
+
return R ? `0x${D.toString(16).toUpperCase()}` : D.toString(m).toUpperCase();
|
|
2559
|
+
}, [R, r, m]);
|
|
2560
|
+
return /* @__PURE__ */ s(
|
|
2561
|
+
me,
|
|
2562
|
+
{
|
|
2563
|
+
text: N.getString("LabelLinIdentifier"),
|
|
2564
|
+
summary: n === "constant" ? e : n === "random" ? `${N.getString("LabelRandom")} ${t}-${r}` : `${N.getString("LabelScan")} ${t}-${r}`,
|
|
2565
|
+
collapsible: i,
|
|
2566
|
+
collapsed: o,
|
|
2567
|
+
collapsedChange: g,
|
|
2568
|
+
children: /* @__PURE__ */ T(
|
|
2569
|
+
fn,
|
|
2570
|
+
{
|
|
2571
|
+
id: "identifier-radio-group",
|
|
2572
|
+
value: n,
|
|
2573
|
+
onChange: (D) => {
|
|
2574
|
+
P(D);
|
|
2575
|
+
},
|
|
2576
|
+
children: [
|
|
2577
|
+
/* @__PURE__ */ T(ue, { spacing: 4, children: [
|
|
2578
|
+
/* @__PURE__ */ s(
|
|
2579
|
+
fe,
|
|
2580
|
+
{
|
|
2581
|
+
id: "constant-id-radio",
|
|
2582
|
+
value: "constant",
|
|
2583
|
+
label: N.getString("LabelConstantIdentifier"),
|
|
2584
|
+
sx: { marginLeft: "-11px !important" },
|
|
2585
|
+
disabled: d
|
|
2586
|
+
}
|
|
2587
|
+
),
|
|
2588
|
+
/* @__PURE__ */ s(
|
|
2589
|
+
re,
|
|
2590
|
+
{
|
|
2591
|
+
id: "constant-id",
|
|
2592
|
+
fullWidth: !0,
|
|
2593
|
+
value: x,
|
|
2594
|
+
error: !d && n === "constant" && f,
|
|
2595
|
+
onErrorChange: h,
|
|
2596
|
+
onValidate: _,
|
|
2597
|
+
disabled: d || n !== "constant",
|
|
2598
|
+
required: n === "constant"
|
|
2599
|
+
}
|
|
2600
|
+
),
|
|
2601
|
+
/* @__PURE__ */ s(oe, { columnItem: A, width: C, children: /* @__PURE__ */ s(Z, { onClick: () => c(!0), variant: "outlined", size: "large", children: N.getString("ButtonSelectMessage") }) })
|
|
2602
|
+
] }),
|
|
2603
|
+
/* @__PURE__ */ T(ue, { spacing: 4, children: [
|
|
2604
|
+
/* @__PURE__ */ s(
|
|
2605
|
+
fe,
|
|
2606
|
+
{
|
|
2607
|
+
id: "random-identifier-radio",
|
|
2608
|
+
value: "random",
|
|
2609
|
+
label: N.getString("LabelRandomIdentifier"),
|
|
2610
|
+
sx: { marginLeft: "-11px !important" },
|
|
2611
|
+
disabled: d
|
|
2612
|
+
}
|
|
2613
|
+
),
|
|
2614
|
+
/* @__PURE__ */ s(
|
|
2615
|
+
fe,
|
|
2616
|
+
{
|
|
2617
|
+
id: "scan-identifier-radio",
|
|
2618
|
+
value: "scan",
|
|
2619
|
+
label: N.getString("LabelScanIdentifier"),
|
|
2620
|
+
disabled: d
|
|
2621
|
+
}
|
|
2622
|
+
),
|
|
2623
|
+
/* @__PURE__ */ s(
|
|
2624
|
+
re,
|
|
2625
|
+
{
|
|
2626
|
+
id: "identifier-min",
|
|
2627
|
+
disabled: d || n !== "random" && n !== "scan",
|
|
2628
|
+
required: n === "random" || n === "scan",
|
|
2629
|
+
fullWidth: !0,
|
|
2630
|
+
value: B,
|
|
2631
|
+
error: !d && (n === "random" || n === "scan") && F,
|
|
2632
|
+
onErrorChange: p,
|
|
2633
|
+
onValidate: j,
|
|
2634
|
+
startAdornment: N.getString("LabelFrom"),
|
|
2635
|
+
sxStartAdornment: { marginBottom: 0.8 }
|
|
2636
|
+
}
|
|
2637
|
+
),
|
|
2638
|
+
/* @__PURE__ */ s(
|
|
2639
|
+
re,
|
|
2640
|
+
{
|
|
2641
|
+
id: "identifier-max",
|
|
2642
|
+
disabled: d || n !== "random" && n !== "scan",
|
|
2643
|
+
required: n === "random" || n === "scan",
|
|
2644
|
+
fullWidth: !0,
|
|
2645
|
+
value: y,
|
|
2646
|
+
error: !d && (n === "random" || n === "scan") && L,
|
|
2647
|
+
onErrorChange: S,
|
|
2648
|
+
onValidate: X,
|
|
2649
|
+
startAdornment: N.getString("LabelTo"),
|
|
2650
|
+
sxStartAdornment: { marginBottom: 0.8 }
|
|
2651
|
+
}
|
|
2652
|
+
)
|
|
2653
|
+
] })
|
|
2654
|
+
]
|
|
2655
|
+
}
|
|
2656
|
+
)
|
|
2657
|
+
}
|
|
2658
|
+
);
|
|
2659
|
+
}
|
|
2660
|
+
function Jr({
|
|
2661
|
+
settings: e,
|
|
2662
|
+
onSettingsChange: n,
|
|
2663
|
+
onErrorsChange: t = void 0,
|
|
2664
|
+
linIdentifierGeneratorSettingsError: r = void 0,
|
|
2665
|
+
disabled: a = !1,
|
|
2666
|
+
collapsible: l = !1,
|
|
2667
|
+
collapsed: u = !1,
|
|
2668
|
+
collapsedChange: d = void 0,
|
|
2669
|
+
showSelectMessageDialogChange: i,
|
|
2670
|
+
showSignalValuesTable: o
|
|
2671
|
+
}) {
|
|
2672
|
+
var h;
|
|
2673
|
+
const g = le(), c = O(() => {
|
|
2674
|
+
var p;
|
|
2675
|
+
return `${(((p = e.frame) == null ? void 0 : p.id) ?? 0).toString(g).toUpperCase()}`;
|
|
2676
|
+
}, [g, (h = e.frame) == null ? void 0 : h.id]), I = O(() => `${(e.identifierMin ?? 0).toString(g).toUpperCase()}`, [g, e.identifierMin]), N = O(() => `${(e.identifierMax ?? 0).toString(g).toUpperCase()}`, [g, e.identifierMax]), m = O(() => e.randomIdentifier === !0 ? "random" : e.scanIdentifier === !0 ? "scan" : "constant", [e.randomIdentifier, e.scanIdentifier]), f = w(
|
|
2677
|
+
(F, p, L, S) => {
|
|
2678
|
+
var R, k, _, W;
|
|
2679
|
+
const v = parseInt(F, F.startsWith("0x") ? 16 : g), M = (k = (R = e.frame) == null ? void 0 : R.linFrameFlags) != null && k.flags ? { flags: [...e.frame.linFrameFlags.flags] } : { flags: [] }, b = parseInt(L, L.startsWith("0x") ? 16 : g), $ = parseInt(S, S.startsWith("0x") ? 16 : g);
|
|
2680
|
+
if (v !== ((_ = e.frame) == null ? void 0 : _.id) || !ge(M, (W = e.frame) == null ? void 0 : W.linFrameFlags) || p !== m || b !== e.identifierMin || $ !== e.identifierMax) {
|
|
2681
|
+
const j = { ...e };
|
|
2682
|
+
j.frame = e.frame ? { ...e.frame } : an.fromPartial({
|
|
2683
|
+
id: 0,
|
|
2684
|
+
linFrameFlags: void 0,
|
|
2685
|
+
data: Array.from({ length: 8 }, () => 0)
|
|
2686
|
+
}), j.frame.id = v, j.frame.linFrameFlags = M, p === "constant" ? (j.randomIdentifier = !1, j.scanIdentifier = !1) : p === "random" ? (j.randomIdentifier = !0, j.scanIdentifier = !1) : p === "scan" && (j.randomIdentifier = !1, j.scanIdentifier = !0), j.identifierMin = b, j.identifierMax = $, n(j);
|
|
2687
|
+
}
|
|
2688
|
+
},
|
|
2689
|
+
[m, g, n, e]
|
|
2690
|
+
);
|
|
2691
|
+
return /* @__PURE__ */ s(
|
|
2692
|
+
Cr,
|
|
2693
|
+
{
|
|
2694
|
+
linIdentifier: c,
|
|
2695
|
+
identifierGeneratorType: m,
|
|
2696
|
+
minLinIdentifier: I,
|
|
2697
|
+
maxLinIdentifier: N,
|
|
2698
|
+
onChange: f,
|
|
2699
|
+
onErrorsChange: t,
|
|
2700
|
+
linIdentifierGeneratorSettingsError: r,
|
|
2701
|
+
disabled: a,
|
|
2702
|
+
collapsible: l,
|
|
2703
|
+
collapsed: u,
|
|
2704
|
+
collapsedChange: d,
|
|
2705
|
+
showSelectMessageDialogChange: i,
|
|
2706
|
+
showSignalValuesTable: o
|
|
2707
|
+
}
|
|
2708
|
+
);
|
|
2709
|
+
}
|
|
2710
|
+
const Zr = V(xe)(() => ({
|
|
1908
2711
|
height: "100%",
|
|
1909
2712
|
width: "100%",
|
|
1910
2713
|
padding: "4px",
|
|
1911
2714
|
overflow: "auto"
|
|
1912
2715
|
}));
|
|
1913
2716
|
export {
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
Or as
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
2717
|
+
Qr as CanChannelSelectControl,
|
|
2718
|
+
pr as CanIdentifierControl,
|
|
2719
|
+
Hr as CanIdentifierFrameControl,
|
|
2720
|
+
Sr as CanIdentifierGeneratorControl,
|
|
2721
|
+
Kr as CanIdentifierGeneratorSettingsControl,
|
|
2722
|
+
ea as CanKingDataProvider,
|
|
2723
|
+
sn as CheckboxControl,
|
|
2724
|
+
oe as ColumnItemControl,
|
|
2725
|
+
qr as ContextMenu,
|
|
2726
|
+
na as DevicesContext,
|
|
2727
|
+
nr as DropdownButton,
|
|
2728
|
+
Er as DropdownButtonTextItems,
|
|
2729
|
+
Br as DropdownPanel,
|
|
2730
|
+
Zr as FillBox,
|
|
2731
|
+
ue as FormControlRow,
|
|
2732
|
+
Ur as InlineEditor,
|
|
2733
|
+
Xr as LinChannelSelectControl,
|
|
2734
|
+
vr as LinIdentifierControl,
|
|
2735
|
+
Yr as LinIdentifierFrameControl,
|
|
2736
|
+
Cr as LinIdentifierGeneratorControl,
|
|
2737
|
+
Jr as LinIdentifierGeneratorSettingsControl,
|
|
2738
|
+
ta as LocalizedStrings,
|
|
2739
|
+
ra as LogMessagesContext,
|
|
2740
|
+
aa as MeasurementSetupContext,
|
|
2741
|
+
ia as MeasurementStatusContext,
|
|
2742
|
+
yr as NumberRangeControl,
|
|
2743
|
+
Z as OneLineButton,
|
|
2744
|
+
sa as OnlineStatusContext,
|
|
2745
|
+
fe as RadioControl,
|
|
2746
|
+
fn as RadioGroupControl,
|
|
2747
|
+
la as RunningPeriodicTransmissionsContext,
|
|
2748
|
+
me as SectionControl,
|
|
2749
|
+
Me as SelectControl,
|
|
2750
|
+
Or as SelectMessageDialog,
|
|
2751
|
+
Pr as SelectSignalControl,
|
|
2752
|
+
cr as SelectSignalDialog,
|
|
2753
|
+
jr as SizedBox,
|
|
2754
|
+
Dr as TableControl,
|
|
2755
|
+
zr as TabsPanel,
|
|
2756
|
+
lr as TextControl,
|
|
2757
|
+
Tr as ToolbarControl,
|
|
2758
|
+
da as UserSettingsContext,
|
|
2759
|
+
re as ValidateableTextControl,
|
|
2760
|
+
oa as WorkspacePanesContext,
|
|
2761
|
+
bn as addEventListener,
|
|
2762
|
+
pn as removeEventListener,
|
|
2763
|
+
de as useColumnItem,
|
|
2764
|
+
Ne as useColumnItems,
|
|
2765
|
+
_e as useMessageDatabases
|
|
1954
2766
|
};
|