@kvaser/canking-api 7.1.0-beta.231 → 7.1.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/README.md +142 -44
- package/REDISTRIBUTABLES.txt +86 -2
- package/dist/ElectronAPIFake.js +1 -1
- package/dist/ElectronAPIFake.mjs +16 -13
- package/dist/controls/CanIdentifierControl.d.ts +21 -3
- package/dist/controls/ColumnItemControl.d.ts +36 -0
- package/dist/controls/OneLineButton.d.ts +1 -1
- package/dist/controls/index.d.ts +2 -0
- package/dist/controls.js +1 -1
- package/dist/controls.mjs +1359 -1119
- package/dist/grpc.js +1 -1
- package/dist/grpc.mjs +139 -125
- package/dist/index.js +1 -1
- package/dist/ipc/index.d.ts +6 -0
- package/dist/ipc.js +1 -1
- package/dist/ipc.mjs +28 -25
- package/dist/measurement_settings.js +1 -1
- package/dist/measurement_settings.mjs +461 -430
- package/dist/models/index.d.ts +4 -1
- package/dist/models.js +1 -1
- package/dist/models.mjs +193 -186
- package/dist/protos/app_params.d.ts +10 -0
- package/dist/protos/app_service.d.ts +1 -1
- package/dist/protos/device_service.d.ts +1 -1
- package/dist/protos/frame_params.d.ts +2 -0
- package/dist/protos/measurement_params.d.ts +9 -0
- package/dist/protos/measurement_service.d.ts +30 -2
- package/dist/protos/measurement_settings.d.ts +3 -3
- package/dist/protos/signal_params.d.ts +3 -0
- package/dist/status_params.js +1 -1
- package/dist/status_params.mjs +1932 -1834
- package/doc/assets/favicon.png +0 -0
- package/doc/assets/hierarchy.js +1 -0
- package/doc/assets/highlight.css +16 -16
- package/doc/assets/icons.js +1 -1
- package/doc/assets/icons.svg +1 -1
- package/doc/assets/main.js +5 -5
- package/doc/assets/navigation.js +1 -1
- package/doc/assets/search.js +1 -1
- package/doc/assets/style.css +1405 -1288
- package/doc/classes/controls.LocalizedStrings.html +3 -176
- package/doc/classes/models.DataBuffer.html +16 -189
- package/doc/classes/models.DataBufferView.html +11 -184
- package/doc/classes/models.Point.html +7 -180
- package/doc/enums/models.AccessMode.html +9 -182
- package/doc/enums/models.AppEvent.html +6 -179
- package/doc/enums/models.CanChannelCap.html +44 -217
- package/doc/enums/models.CanFrameFlag.html +27 -200
- package/doc/enums/models.CanMode.html +7 -180
- package/doc/enums/models.DecimalChar.html +5 -178
- package/doc/enums/models.DeviceEvent.html +6 -179
- package/doc/enums/models.FileConflictAction.html +7 -180
- package/doc/enums/models.FileType.html +7 -0
- package/doc/enums/models.LinFrameFlag.html +12 -185
- package/doc/enums/models.LogFileFormat.html +48 -221
- package/doc/enums/models.LogLevel.html +17 -190
- package/doc/enums/models.LogReplayState.html +6 -179
- package/doc/enums/models.MeasurementEvent.html +12 -185
- package/doc/enums/models.MessageLoggerState.html +7 -180
- package/doc/enums/models.Protocols.html +9 -182
- package/doc/enums/models.Separator.html +5 -178
- package/doc/enums/models.SignalEncoding.html +5 -178
- package/doc/enums/models.SignalType.html +12 -185
- package/doc/enums/models.SignalValueTriggerOperator.html +13 -186
- package/doc/enums/models.StatusLevel.html +7 -180
- package/doc/enums/models.TimeReference.html +5 -178
- package/doc/enums/models.TriggerOperator.html +6 -179
- package/doc/functions/controls.CanChannelSelectControl.html +2 -175
- package/doc/functions/controls.CanIdentifierControl.html +2 -175
- package/doc/functions/controls.CanIdentifierFrameControl.html +2 -175
- package/doc/functions/controls.CanIdentifierGeneratorControl.html +2 -175
- package/doc/functions/controls.CanIdentifierGeneratorSettingsControl.html +2 -175
- package/doc/functions/controls.CanKingDataProvider.html +5 -178
- package/doc/functions/controls.CheckboxControl.html +2 -175
- package/doc/functions/controls.ColumnItemControl.html +2 -0
- package/doc/functions/controls.ContextMenu.html +2 -175
- package/doc/functions/controls.DropdownButton.html +2 -175
- package/doc/functions/controls.DropdownButtonTextItems.html +2 -175
- package/doc/functions/controls.DropdownPanel.html +2 -175
- package/doc/functions/controls.FillBox.html +19 -192
- package/doc/functions/controls.FormControlRow.html +2 -175
- package/doc/functions/controls.InlineEditor.html +2 -175
- package/doc/functions/controls.NumberRangeControl.html +2 -175
- package/doc/functions/controls.OneLineButton.html +19 -192
- package/doc/functions/controls.RadioControl.html +2 -175
- package/doc/functions/controls.RadioGroupControl.html +2 -175
- package/doc/functions/controls.SectionControl.html +2 -175
- package/doc/functions/controls.SelectControl.html +2 -175
- package/doc/functions/controls.SizedBox.html +19 -192
- package/doc/functions/controls.TableControl.html +3 -176
- package/doc/functions/controls.TabsPanel.html +19 -192
- package/doc/functions/controls.TextControl.html +2 -175
- package/doc/functions/controls.ToolbarControl.html +2 -175
- package/doc/functions/controls.ValidateableTextControl.html +2 -175
- package/doc/functions/controls.useColumnItem.html +3 -0
- package/doc/functions/controls.useColumnItems.html +4 -0
- package/doc/functions/hooks.useDevices.html +3 -176
- package/doc/functions/hooks.useIsOnline.html +3 -176
- package/doc/functions/hooks.useLanguage.html +3 -176
- package/doc/functions/hooks.useLocalizedStrings.html +3 -176
- package/doc/functions/hooks.useLogMessages.html +3 -176
- package/doc/functions/hooks.useMaxDataBytes.html +2 -175
- package/doc/functions/hooks.useMeasurementSetup.html +3 -176
- package/doc/functions/hooks.useMeasurementStatus.html +3 -176
- package/doc/functions/hooks.useMessageLogFileFormats.html +2 -175
- package/doc/functions/hooks.useNewMeasurementData.html +5 -178
- package/doc/functions/hooks.useNodeStatus.html +3 -176
- package/doc/functions/hooks.useNumericRadix.html +3 -176
- package/doc/functions/hooks.useOnlineStatus.html +3 -176
- package/doc/functions/hooks.useOverallStatusLevel.html +3 -176
- package/doc/functions/hooks.useProjectData.html +5 -178
- package/doc/functions/hooks.useRecentProjectFiles.html +2 -175
- package/doc/functions/hooks.useRunningPeriodicTransmissions.html +3 -176
- package/doc/functions/hooks.useSessionData.html +5 -178
- package/doc/functions/hooks.useUserSettings.html +3 -176
- package/doc/functions/hooks.useWorkspacePaneWithId.html +2 -175
- package/doc/functions/icons.AddIcon.html +4 -175
- package/doc/functions/icons.ArrowDownIcon.html +4 -175
- package/doc/functions/icons.ArrowLeftIcon.html +4 -175
- package/doc/functions/icons.ArrowRightIcon.html +4 -175
- package/doc/functions/icons.ArrowUpIcon.html +4 -175
- package/doc/functions/icons.BusIsOffIcon.html +4 -175
- package/doc/functions/icons.BusIsOnIcon.html +4 -175
- package/doc/functions/icons.CloseIcon.html +4 -175
- package/doc/functions/icons.CopyIcon.html +4 -175
- package/doc/functions/icons.DarkModeIcon.html +4 -175
- package/doc/functions/icons.DeleteIcon.html +4 -175
- package/doc/functions/icons.DisableIcon.html +4 -175
- package/doc/functions/icons.EditIcon.html +4 -175
- package/doc/functions/icons.FilterIcon.html +4 -175
- package/doc/functions/icons.FixedPositionIcon.html +4 -175
- package/doc/functions/icons.LeaveFullScreenIcon.html +4 -175
- package/doc/functions/icons.LightModeIcon.html +4 -175
- package/doc/functions/icons.LineArrowDownIcon.html +4 -175
- package/doc/functions/icons.LineArrowUpIcon.html +4 -175
- package/doc/functions/icons.MaximizeWindowIcon.html +4 -175
- package/doc/functions/icons.MeasurementSetupIcon.html +4 -175
- package/doc/functions/icons.MoreHorizIcon.html +4 -175
- package/doc/functions/icons.MoreVertIcon.html +4 -175
- package/doc/functions/icons.NewIcon.html +4 -175
- package/doc/functions/icons.OpenExternallyIcon.html +4 -175
- package/doc/functions/icons.OpenIcon.html +4 -175
- package/doc/functions/icons.PauseIcon.html +4 -175
- package/doc/functions/icons.PlayIcon.html +4 -175
- package/doc/functions/icons.PlaySolidIcon.html +4 -175
- package/doc/functions/icons.SaveIcon.html +4 -175
- package/doc/functions/icons.SelectAllIcon.html +4 -175
- package/doc/functions/icons.ServiceIconActive.html +4 -175
- package/doc/functions/icons.ServiceIconInactive.html +4 -175
- package/doc/functions/icons.SettingsIcon.html +4 -175
- package/doc/functions/icons.StopIcon.html +4 -175
- package/doc/functions/icons.StopSolidIcon.html +4 -175
- package/doc/functions/icons.ToolsPanelHiddenIcon.html +4 -175
- package/doc/functions/icons.ToolsPanelVisibleIcon.html +4 -175
- package/doc/functions/icons.UnmaximizeWindowIcon.html +4 -175
- package/doc/functions/icons.WorkspacesIcon.html +4 -175
- package/doc/functions/ipc.addDataProcessor.html +3 -176
- package/doc/functions/ipc.addSource.html +3 -176
- package/doc/functions/ipc.addTarget.html +3 -176
- package/doc/functions/ipc.connectNodes.html +3 -176
- package/doc/functions/ipc.deleteDataProcessor.html +3 -176
- package/doc/functions/ipc.deleteSource.html +3 -176
- package/doc/functions/ipc.deleteTarget.html +3 -176
- package/doc/functions/ipc.disableNode.html +3 -176
- package/doc/functions/ipc.disconnectNodes.html +3 -176
- package/doc/functions/ipc.enableNode.html +3 -176
- package/doc/functions/ipc.getFrameDefinitions.html +3 -176
- package/doc/functions/ipc.getLogger.html +3 -176
- package/doc/functions/ipc.getMessageLogFileFormats.html +3 -176
- package/doc/functions/ipc.sendCanMessage.html +4 -177
- package/doc/functions/ipc.sendMessage.html +3 -176
- package/doc/functions/ipc.showMessageBox.html +3 -176
- package/doc/functions/ipc.showQuestionBox.html +3 -176
- package/doc/functions/ipc.startLogReplay.html +3 -176
- package/doc/functions/ipc.startMeasurement.html +2 -175
- package/doc/functions/ipc.startPeriodicTransmission.html +3 -176
- package/doc/functions/ipc.stopLogReplay.html +3 -176
- package/doc/functions/ipc.stopMeasurement.html +2 -175
- package/doc/functions/ipc.stopPeriodicTransmission.html +3 -176
- package/doc/functions/ipc.updateDataProcessor.html +3 -176
- package/doc/functions/ipc.updatePeriodicTransmission.html +4 -0
- package/doc/functions/ipc.updateSource.html +3 -176
- package/doc/functions/ipc.updateTarget.html +3 -176
- package/doc/functions/models.accessModeFromJSON.html +1 -174
- package/doc/functions/models.accessModeToJSON.html +1 -174
- package/doc/functions/models.appEventFromJSON.html +1 -174
- package/doc/functions/models.appEventToJSON.html +1 -174
- package/doc/functions/models.canChannelCapFromJSON.html +1 -174
- package/doc/functions/models.canChannelCapToJSON.html +1 -174
- package/doc/functions/models.canFrameFlagFromJSON.html +1 -174
- package/doc/functions/models.canFrameFlagToJSON.html +1 -174
- package/doc/functions/models.canModeFromJSON.html +1 -174
- package/doc/functions/models.canModeToJSON.html +1 -174
- package/doc/functions/models.createElectronApiFake.html +3 -176
- package/doc/functions/models.decimalCharFromJSON.html +1 -174
- package/doc/functions/models.decimalCharToJSON.html +1 -174
- package/doc/functions/models.decimalToFixed.html +1 -174
- package/doc/functions/models.decimalToHex.html +1 -174
- package/doc/functions/models.deviceEventFromJSON.html +1 -174
- package/doc/functions/models.deviceEventToJSON.html +1 -174
- package/doc/functions/models.fileConflictActionFromJSON.html +1 -174
- package/doc/functions/models.fileConflictActionToJSON.html +1 -174
- package/doc/functions/models.fileTypeFromJSON.html +1 -0
- package/doc/functions/models.fileTypeToJSON.html +1 -0
- package/doc/functions/models.linFrameFlagFromJSON.html +1 -174
- package/doc/functions/models.linFrameFlagToJSON.html +1 -174
- package/doc/functions/models.logFileFormatFromJSON.html +1 -174
- package/doc/functions/models.logFileFormatToJSON.html +1 -174
- package/doc/functions/models.logLevelFromJSON.html +1 -174
- package/doc/functions/models.logLevelToJSON.html +1 -174
- package/doc/functions/models.logReplayStateFromJSON.html +1 -174
- package/doc/functions/models.logReplayStateToJSON.html +1 -174
- package/doc/functions/models.longToNumber.html +1 -174
- package/doc/functions/models.measurementEventFromJSON.html +1 -174
- package/doc/functions/models.measurementEventToJSON.html +1 -174
- package/doc/functions/models.messageLoggerStateFromJSON.html +1 -174
- package/doc/functions/models.messageLoggerStateToJSON.html +1 -174
- package/doc/functions/models.protocolsFromJSON.html +1 -174
- package/doc/functions/models.protocolsToJSON.html +1 -174
- package/doc/functions/models.separatorFromJSON.html +1 -174
- package/doc/functions/models.separatorToJSON.html +1 -174
- package/doc/functions/models.signalEncodingFromJSON.html +1 -174
- package/doc/functions/models.signalEncodingToJSON.html +1 -174
- package/doc/functions/models.signalTypeFromJSON.html +1 -174
- package/doc/functions/models.signalTypeToJSON.html +1 -174
- package/doc/functions/models.signalValueTriggerOperatorFromJSON.html +1 -174
- package/doc/functions/models.signalValueTriggerOperatorToJSON.html +1 -174
- package/doc/functions/models.statusLevelFromJSON.html +1 -174
- package/doc/functions/models.statusLevelToJSON.html +1 -174
- package/doc/functions/models.timeReferenceFromJSON.html +1 -174
- package/doc/functions/models.timeReferenceToJSON.html +1 -174
- package/doc/functions/models.triggerOperatorFromJSON.html +1 -174
- package/doc/functions/models.triggerOperatorToJSON.html +1 -174
- package/doc/hierarchy.html +1 -174
- package/doc/index.html +99 -227
- package/doc/interfaces/controls.ButtonGroupProps.html +6 -179
- package/doc/interfaces/controls.ButtonProps.html +10 -183
- package/doc/interfaces/controls.CanChannelSelectControlProps.html +14 -187
- package/doc/interfaces/controls.CanIdentifierControlProps.html +16 -189
- package/doc/interfaces/controls.CanIdentifierFrameControlProps.html +14 -185
- package/doc/interfaces/controls.CanIdentifierGeneratorControlProps.html +27 -196
- package/doc/interfaces/controls.CanIdentifierGeneratorSettingsControlProps.html +17 -186
- package/doc/interfaces/controls.CheckboxControlProps.html +7 -180
- package/doc/interfaces/controls.ColumnItemControlProps.html +4 -0
- package/doc/interfaces/controls.ContextMenuProps.html +6 -179
- package/doc/interfaces/controls.DropdownButtonChildrenProps.html +4 -177
- package/doc/interfaces/controls.DropdownButtonProps.html +11 -184
- package/doc/interfaces/controls.DropdownButtonTextItemsProps.html +9 -182
- package/doc/interfaces/controls.DropdownPanelProps.html +15 -188
- package/doc/interfaces/controls.FormControlRowProps.html +7 -180
- package/doc/interfaces/controls.ILocalizedStrings.html +3 -176
- package/doc/interfaces/controls.InlineEditorProps.html +9 -182
- package/doc/interfaces/controls.LabelProps.html +3 -176
- package/doc/interfaces/controls.NumberRangeControlProps.html +41 -214
- package/doc/interfaces/controls.RadioControlProps.html +4 -177
- package/doc/interfaces/controls.RadioGroupControlProps.html +6 -179
- package/doc/interfaces/controls.SectionControlProps.html +8 -181
- package/doc/interfaces/controls.SelectControlProps.html +20 -193
- package/doc/interfaces/controls.TableColumn.html +10 -183
- package/doc/interfaces/controls.TableControlProps.html +18 -191
- package/doc/interfaces/controls.TextControlProps.html +24 -197
- package/doc/interfaces/controls.ToggleButtonGroupProps.html +9 -182
- package/doc/interfaces/controls.ToggleButtonProps.html +5 -178
- package/doc/interfaces/controls.ToolbarControlProps.html +9 -182
- package/doc/interfaces/controls.ValidateableTextControlProps.html +40 -213
- package/doc/interfaces/controls.toolbarItem.html +7 -180
- package/doc/interfaces/ipc.ILogger.html +3 -176
- package/doc/interfaces/models.AboutInformation.html +8 -181
- package/doc/interfaces/models.ActivateLicenseRequest.html +6 -179
- package/doc/interfaces/models.AddAllConnectedCanChannelsRequest.html +3 -176
- package/doc/interfaces/models.AddAllConnectedLinChannelsRequest.html +3 -176
- package/doc/interfaces/models.AddOrUpdateDataProcessorRequest.html +9 -182
- package/doc/interfaces/models.AddOrUpdateSourceRequest.html +5 -178
- package/doc/interfaces/models.AddOrUpdateTargetRequest.html +5 -178
- package/doc/interfaces/models.ApiPreferences.html +5 -178
- package/doc/interfaces/models.AppEventArgs.html +4 -177
- package/doc/interfaces/models.BaseNodeProperties.html +5 -178
- package/doc/interfaces/models.BusStatus.html +17 -190
- package/doc/interfaces/models.CanBusParamLimits.html +7 -180
- package/doc/interfaces/models.CanBusParams.html +3 -176
- package/doc/interfaces/models.CanBusSpeed.html +12 -185
- package/doc/interfaces/models.CanBusSpeedInfo.html +18 -191
- package/doc/interfaces/models.CanChannelCapacity.html +7 -180
- package/doc/interfaces/models.CanChannelConfiguration.html +12 -185
- package/doc/interfaces/models.CanFDBusSpeedCombination.html +4 -177
- package/doc/interfaces/models.CanFDBusSpeedInfo.html +14 -187
- package/doc/interfaces/models.CanFrameFlags.html +3 -176
- package/doc/interfaces/models.CanMessageFilterSettings.html +5 -178
- package/doc/interfaces/models.Channel.html +5 -178
- package/doc/interfaces/models.ChannelSettings.html +20 -193
- package/doc/interfaces/models.ClearLinMessageRequest.html +6 -179
- package/doc/interfaces/models.ConnectNodesRequest.html +4 -177
- package/doc/interfaces/models.DataProcessingStatus.html +6 -179
- package/doc/interfaces/models.DataProcessorNodeProperties.html +8 -181
- package/doc/interfaces/models.DatabasesSettings.html +3 -176
- package/doc/interfaces/models.Device.html +6 -179
- package/doc/interfaces/models.DeviceEventArgs.html +4 -177
- package/doc/interfaces/models.Devices.html +2 -175
- package/doc/interfaces/models.DisconnectNodesRequest.html +4 -177
- package/doc/interfaces/models.Empty.html +2 -175
- package/doc/interfaces/models.ErrorStatus.html +3 -176
- package/doc/interfaces/models.Frame.html +19 -192
- package/doc/interfaces/models.FrameDefinition.html +10 -181
- package/doc/interfaces/models.FrameDefinitions.html +2 -175
- package/doc/interfaces/models.FramePropertyValue.html +4 -177
- package/doc/interfaces/models.FrameReceivedTrigger.html +6 -179
- package/doc/interfaces/models.Frame_PropertiesEntry.html +2 -175
- package/doc/interfaces/models.Frames.html +2 -175
- package/doc/interfaces/models.GetCanChannelBusSpeedsRequest.html +3 -176
- package/doc/interfaces/models.GetCanChannelBusSpeedsResponse.html +6 -179
- package/doc/interfaces/models.GetCanFdBusSpeedsRequest.html +5 -178
- package/doc/interfaces/models.GetCanFdBusSpeedsResponse.html +4 -177
- package/doc/interfaces/models.GetChannelsFromLogFileRequest.html +4 -177
- package/doc/interfaces/models.GetChannelsFromLogFileResponse.html +3 -176
- package/doc/interfaces/models.GetClassicCanBusSpeedsRequest.html +4 -177
- package/doc/interfaces/models.GetClassicCanBusSpeedsResponse.html +4 -177
- package/doc/interfaces/models.GetDataProcessorResponse.html +3 -176
- package/doc/interfaces/models.GetDevicesRequest.html +3 -176
- package/doc/interfaces/models.GetDevicesResponse.html +3 -176
- package/doc/interfaces/models.GetFrameDefinitionsFromDatabaseFilesRequest.html +3 -176
- package/doc/interfaces/models.GetLicensesResponse.html +3 -176
- package/doc/interfaces/models.GetLogFileFormatsRequest.html +6 -179
- package/doc/interfaces/models.GetLogFileFormatsResponse.html +3 -176
- package/doc/interfaces/models.GetLogLevelResponse.html +4 -177
- package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesRequest.html +3 -176
- package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesResponse.html +3 -176
- package/doc/interfaces/models.GetServiceExtensionInfoRequest.html +4 -177
- package/doc/interfaces/models.GetServiceExtensionInfoResponse.html +7 -180
- package/doc/interfaces/models.GetSignalDataFromMessageDataRequest.html +5 -178
- package/doc/interfaces/models.GetSignalDataFromMessageDataResponse.html +4 -177
- package/doc/interfaces/models.GetSourceResponse.html +3 -176
- package/doc/interfaces/models.GetTargetResponse.html +3 -176
- package/doc/interfaces/models.ILogFileFormat.html +3 -176
- package/doc/interfaces/models.IProject.html +4 -177
- package/doc/interfaces/models.IUserSettings.html +13 -183
- package/doc/interfaces/models.IWorkspaceComponentPaneData.html +4 -177
- package/doc/interfaces/models.IWorkspaceContainerPaneData.html +4 -177
- package/doc/interfaces/models.IWorkspaceData.html +4 -177
- package/doc/interfaces/models.IWorkspacePaneData.html +4 -177
- package/doc/interfaces/models.IdentifierRequest.html +3 -176
- package/doc/interfaces/models.IdentifiersRequest.html +3 -176
- package/doc/interfaces/models.InstallServiceExtensionRequest.html +6 -179
- package/doc/interfaces/models.InterpreterSettings.html +4 -177
- package/doc/interfaces/models.J1939InterpreterSettings.html +2 -175
- package/doc/interfaces/models.LicenseInformation.html +18 -191
- package/doc/interfaces/models.Licenses.html +3 -176
- package/doc/interfaces/models.LinChannelConfiguration.html +12 -185
- package/doc/interfaces/models.LinFrameFlags.html +3 -176
- package/doc/interfaces/models.LogMessage.html +8 -181
- package/doc/interfaces/models.LogMessages.html +3 -176
- package/doc/interfaces/models.LogReplaySettings.html +24 -197
- package/doc/interfaces/models.LogReplaySettings_ChannelIdentifiersEntry.html +2 -175
- package/doc/interfaces/models.LogReplayStatus.html +3 -176
- package/doc/interfaces/models.MeasurementEventArgs.html +5 -178
- package/doc/interfaces/models.MeasurementSetup.html +3 -176
- package/doc/interfaces/models.MessageLoggerSettings.html +40 -213
- package/doc/interfaces/models.MessageLoggerStatus.html +3 -176
- package/doc/interfaces/models.NodeStatus.html +18 -191
- package/doc/interfaces/models.NodeStatuses.html +3 -176
- package/doc/interfaces/models.OnlineStatus.html +3 -176
- package/doc/interfaces/models.PeriodicTransmissionSettings.html +34 -207
- package/doc/interfaces/models.RequestLinMessageRequest.html +6 -179
- package/doc/interfaces/models.ScheduleTable.html +5 -178
- package/doc/interfaces/models.ScheduleTableEntry.html +5 -178
- package/doc/interfaces/models.SendLinWakeupFrameRequest.html +4 -177
- package/doc/interfaces/models.SendMessageRequest.html +3 -176
- package/doc/interfaces/models.ServiceExtensionSettings.html +4 -177
- package/doc/interfaces/models.SetLogLevelRequest.html +4 -177
- package/doc/interfaces/models.SetMeasurementSetupRequest.html +3 -176
- package/doc/interfaces/models.SetSignalDataToMessageDataRequest.html +7 -180
- package/doc/interfaces/models.SetSignalDataToMessageDataResponse.html +5 -178
- package/doc/interfaces/models.SignalDefinition.html +11 -181
- package/doc/interfaces/models.SignalDefinition_EnumValuesEntry.html +2 -175
- package/doc/interfaces/models.SignalDefinitions.html +2 -175
- package/doc/interfaces/models.SignalValue.html +5 -178
- package/doc/interfaces/models.SignalValueTrigger.html +14 -187
- package/doc/interfaces/models.SourceNodeProperties.html +7 -180
- package/doc/interfaces/models.StartPeriodicTransmissionRequest.html +3 -176
- package/doc/interfaces/models.StartPeriodicTransmissionResponse.html +3 -176
- package/doc/interfaces/models.TargetNodeProperties.html +5 -178
- package/doc/interfaces/models.TriggerSettings.html +8 -181
- package/doc/interfaces/models.UninstallServiceExtensionRequest.html +3 -176
- package/doc/interfaces/models.UpdateLinMessageRequest.html +4 -177
- package/doc/interfaces/models.UpdatePeriodicTransmissionRequest.html +7 -0
- package/doc/interfaces/models.WriteFrame.html +6 -179
- package/doc/modules/controls.html +3 -237
- package/doc/modules/hooks.html +3 -196
- package/doc/modules/icons.html +2 -216
- package/doc/modules/ipc.html +2 -202
- package/doc/modules/models.html +2 -478
- package/doc/modules.html +1 -179
- package/doc/types/controls.ContextMenuOption.html +6 -179
- package/doc/types/controls.SelectOption.html +4 -177
- package/doc/types/controls.StringsMap.html +2 -175
- package/doc/types/controls.canIdentifierType.html +2 -175
- package/doc/types/models.IReadOnlyDataBuffer.html +1 -174
- package/doc/types/models.themes.html +1 -174
- package/doc/variables/models.AboutInformation-1.html +1 -174
- package/doc/variables/models.ActivateLicenseRequest-1.html +1 -174
- package/doc/variables/models.AddAllConnectedCanChannelsRequest-1.html +1 -174
- package/doc/variables/models.AddAllConnectedLinChannelsRequest-1.html +1 -174
- package/doc/variables/models.AddOrUpdateDataProcessorRequest-1.html +1 -174
- package/doc/variables/models.AddOrUpdateSourceRequest-1.html +1 -174
- package/doc/variables/models.AddOrUpdateTargetRequest-1.html +1 -174
- package/doc/variables/models.ApiPreferences-1.html +1 -174
- package/doc/variables/models.AppEventArgs-1.html +1 -174
- package/doc/variables/models.BaseNodeProperties-1.html +1 -174
- package/doc/variables/models.BusStatus-1.html +1 -174
- package/doc/variables/models.CanBusParamLimits-1.html +1 -174
- package/doc/variables/models.CanBusParams-1.html +1 -174
- package/doc/variables/models.CanBusSpeed-1.html +1 -174
- package/doc/variables/models.CanBusSpeedInfo-1.html +1 -174
- package/doc/variables/models.CanChannelCapacity-1.html +1 -174
- package/doc/variables/models.CanChannelConfiguration-1.html +1 -174
- package/doc/variables/models.CanFDBusSpeedCombination-1.html +1 -174
- package/doc/variables/models.CanFDBusSpeedInfo-1.html +1 -174
- package/doc/variables/models.CanFrameFlags-1.html +1 -174
- package/doc/variables/models.CanMessageFilterSettings-1.html +1 -174
- package/doc/variables/models.Channel-1.html +1 -174
- package/doc/variables/models.ChannelSettings-1.html +1 -174
- package/doc/variables/models.ClearLinMessageRequest-1.html +1 -174
- package/doc/variables/models.ConnectNodesRequest-1.html +1 -174
- package/doc/variables/models.DataProcessingStatus-1.html +1 -174
- package/doc/variables/models.DataProcessorNodeProperties-1.html +1 -174
- package/doc/variables/models.DatabasesSettings-1.html +1 -174
- package/doc/variables/models.Device-1.html +1 -174
- package/doc/variables/models.DeviceEventArgs-1.html +1 -174
- package/doc/variables/models.Devices-1.html +1 -174
- package/doc/variables/models.DisconnectNodesRequest-1.html +1 -174
- package/doc/variables/models.Empty-1.html +1 -174
- package/doc/variables/models.ErrorStatus-1.html +1 -174
- package/doc/variables/models.Frame-1.html +1 -174
- package/doc/variables/models.FrameDefinition-1.html +1 -174
- package/doc/variables/models.FrameDefinitions-1.html +1 -174
- package/doc/variables/models.FramePropertyValue-1.html +1 -174
- package/doc/variables/models.FrameReceivedTrigger-1.html +1 -174
- package/doc/variables/models.Frame_PropertiesEntry-1.html +1 -174
- package/doc/variables/models.Frames-1.html +1 -174
- package/doc/variables/models.GetCanChannelBusSpeedsRequest-1.html +1 -174
- package/doc/variables/models.GetCanChannelBusSpeedsResponse-1.html +1 -174
- package/doc/variables/models.GetCanFdBusSpeedsRequest-1.html +1 -174
- package/doc/variables/models.GetCanFdBusSpeedsResponse-1.html +1 -174
- package/doc/variables/models.GetChannelsFromLogFileRequest-1.html +1 -174
- package/doc/variables/models.GetChannelsFromLogFileResponse-1.html +1 -174
- package/doc/variables/models.GetClassicCanBusSpeedsRequest-1.html +1 -174
- package/doc/variables/models.GetClassicCanBusSpeedsResponse-1.html +1 -174
- package/doc/variables/models.GetDataProcessorResponse-1.html +1 -174
- package/doc/variables/models.GetDevicesRequest-1.html +1 -174
- package/doc/variables/models.GetDevicesResponse-1.html +1 -174
- package/doc/variables/models.GetFrameDefinitionsFromDatabaseFilesRequest-1.html +1 -174
- package/doc/variables/models.GetLicensesResponse-1.html +1 -174
- package/doc/variables/models.GetLogFileFormatsRequest-1.html +1 -174
- package/doc/variables/models.GetLogFileFormatsResponse-1.html +1 -174
- package/doc/variables/models.GetLogLevelResponse-1.html +1 -174
- package/doc/variables/models.GetScheduleTablesFromDatabaseFilesRequest-1.html +1 -174
- package/doc/variables/models.GetScheduleTablesFromDatabaseFilesResponse-1.html +1 -174
- package/doc/variables/models.GetServiceExtensionInfoRequest-1.html +1 -174
- package/doc/variables/models.GetServiceExtensionInfoResponse-1.html +1 -174
- package/doc/variables/models.GetSignalDataFromMessageDataRequest-1.html +1 -174
- package/doc/variables/models.GetSignalDataFromMessageDataResponse-1.html +1 -174
- package/doc/variables/models.GetSourceResponse-1.html +1 -174
- package/doc/variables/models.GetTargetResponse-1.html +1 -174
- package/doc/variables/models.IdentifierRequest-1.html +1 -174
- package/doc/variables/models.IdentifiersRequest-1.html +1 -174
- package/doc/variables/models.InstallServiceExtensionRequest-1.html +1 -174
- package/doc/variables/models.InterpreterSettings-1.html +1 -174
- package/doc/variables/models.J1939InterpreterSettings-1.html +1 -174
- package/doc/variables/models.LicenseInformation-1.html +1 -174
- package/doc/variables/models.Licenses-1.html +1 -174
- package/doc/variables/models.LinChannelConfiguration-1.html +1 -174
- package/doc/variables/models.LinFrameFlags-1.html +1 -174
- package/doc/variables/models.LogMessage-1.html +1 -174
- package/doc/variables/models.LogMessages-1.html +1 -174
- package/doc/variables/models.LogReplaySettings-1.html +1 -174
- package/doc/variables/models.LogReplaySettings_ChannelIdentifiersEntry-1.html +1 -174
- package/doc/variables/models.LogReplayStatus-1.html +1 -174
- package/doc/variables/models.MeasurementEventArgs-1.html +1 -174
- package/doc/variables/models.MeasurementSetup-1.html +1 -174
- package/doc/variables/models.MessageLoggerSettings-1.html +1 -174
- package/doc/variables/models.MessageLoggerStatus-1.html +1 -174
- package/doc/variables/models.NodeStatus-1.html +1 -174
- package/doc/variables/models.NodeStatuses-1.html +1 -174
- package/doc/variables/models.OnlineStatus-1.html +1 -174
- package/doc/variables/models.PeriodicTransmissionSettings-1.html +1 -174
- package/doc/variables/models.RequestLinMessageRequest-1.html +1 -174
- package/doc/variables/models.ScheduleTable-1.html +1 -174
- package/doc/variables/models.ScheduleTableEntry-1.html +1 -174
- package/doc/variables/models.SendLinWakeupFrameRequest-1.html +1 -174
- package/doc/variables/models.SendMessageRequest-1.html +1 -174
- package/doc/variables/models.ServiceExtensionSettings-1.html +1 -174
- package/doc/variables/models.SetLogLevelRequest-1.html +1 -174
- package/doc/variables/models.SetMeasurementSetupRequest-1.html +1 -174
- package/doc/variables/models.SetSignalDataToMessageDataRequest-1.html +1 -174
- package/doc/variables/models.SetSignalDataToMessageDataResponse-1.html +1 -174
- package/doc/variables/models.SignalDefinition-1.html +1 -174
- package/doc/variables/models.SignalDefinition_EnumValuesEntry-1.html +1 -174
- package/doc/variables/models.SignalDefinitions-1.html +1 -174
- package/doc/variables/models.SignalValue-1.html +1 -174
- package/doc/variables/models.SignalValueTrigger-1.html +1 -174
- package/doc/variables/models.SourceNodeProperties-1.html +1 -174
- package/doc/variables/models.StartPeriodicTransmissionRequest-1.html +1 -174
- package/doc/variables/models.StartPeriodicTransmissionResponse-1.html +1 -174
- package/doc/variables/models.TargetNodeProperties-1.html +1 -174
- package/doc/variables/models.TriggerSettings-1.html +1 -174
- package/doc/variables/models.UninstallServiceExtensionRequest-1.html +1 -174
- package/doc/variables/models.UpdateLinMessageRequest-1.html +1 -174
- package/doc/variables/models.UpdatePeriodicTransmissionRequest-1.html +1 -0
- package/doc/variables/models.WriteFrame-1.html +1 -174
- package/doc/variables/models.defaultUserSettings.html +2 -175
- package/index.js +14 -0
- package/licenses/ELECTRON-TOOLKIT-PRELOAD_MIT.TXT +21 -0
- package/licenses/FAST-DEEP-EQUAL_MIT.TXT +21 -0
- package/licenses/GOOGLE-PROTOBUF_(BSD-3-CLAUSE AND APACHE-2.0).TXT +29 -0
- package/licenses/REACT-DOM_MIT.TXT +21 -0
- package/licenses/REACT_MIT.TXT +21 -0
- package/licenses/UUID_MIT.TXT +9 -0
- package/licenses/licenses.css +22 -0
- package/licenses/licenses.html +67 -0
- package/package.json +11 -18
- package/doc/assets/material-style.css +0 -247
- package/scripts/createCanKingExtension.js +0 -403
- package/scripts/index.js +0 -39
- package/scripts/template/_.eslintrc.cjs +0 -38
- package/scripts/template/_.gitignore +0 -24
- package/scripts/template/_.npmrc +0 -2
- package/scripts/template/_.prettierrc +0 -8
- package/scripts/template/_.vscode/_launch.json +0 -28
- package/scripts/template/_index.html +0 -15
- package/scripts/template/_tsconfig.app.json +0 -27
- package/scripts/template/_tsconfig.json +0 -11
- package/scripts/template/_tsconfig.node.json +0 -13
- package/scripts/template/_vite.config.ts +0 -7
- package/scripts/template/src/App.tsx +0 -12
- package/scripts/template/src/WorkspaceView/index.tsx +0 -47
- package/scripts/template/src/main.css +0 -9
- package/scripts/template/src/main.tsx +0 -19
- package/scripts/template/src/vite-env.d.ts +0 -1
package/dist/controls.mjs
CHANGED
|
@@ -1,115 +1,345 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { C as
|
|
3
|
-
import { jsx as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
1
|
+
import { u as re, a as Ve, b as fe, c as en, d as nn } from "./index.mjs";
|
|
2
|
+
import { C as _r, D as wr, L as Rr, g as Ar, f as Tr, M as Er, O as Lr, R as Br, U as Or, W as kr, e as Wr, r as Pr } from "./index.mjs";
|
|
3
|
+
import { jsx as d, jsxs as j, Fragment as ae } from "react/jsx-runtime";
|
|
4
|
+
import * as te from "react";
|
|
5
|
+
import me, { useCallback as $, useRef as Le, useState as B, useEffect as P, useMemo as W } from "react";
|
|
6
|
+
import { FormControlLabel as Be, Checkbox as tn, Box as ie, styled as X, Button as rn, IconButton as Oe, Popover as an, MenuItem as pe, FormControl as ke, Stack as We, TextField as sn, InputAdornment as Se, Radio as ln, RadioGroup as on, Divider as dn, Tooltip as ue, InputLabel as un, Select as cn, FormHelperText as fn, ListSubheader as hn, TableContainer as gn, Table as mn, TableHead as bn, TableRow as $e, TableCell as Fe, TableBody as pn, Toolbar as xn, Typography as Pe, ToggleButtonGroup as vn, toggleButtonGroupClasses as Ie, ButtonGroup as Nn, buttonGroupClasses as le, Paper as Cn, ToggleButton as Sn, Menu as $n, ListItemIcon as Fn, ListItemText as ye } from "@mui/material";
|
|
7
|
+
import { LineArrowDownIcon as je, LineArrowUpIcon as In } from "./icons.mjs";
|
|
8
|
+
import xe from "fast-deep-equal";
|
|
8
9
|
import "long";
|
|
9
|
-
import { C as
|
|
10
|
-
function
|
|
10
|
+
import { C as G, W as yn } from "./measurement_settings.mjs";
|
|
11
|
+
function Ue({
|
|
11
12
|
id: e = void 0,
|
|
12
|
-
label:
|
|
13
|
-
checked:
|
|
14
|
-
onChange:
|
|
15
|
-
disabled:
|
|
16
|
-
size:
|
|
17
|
-
sx:
|
|
13
|
+
label: n,
|
|
14
|
+
checked: t,
|
|
15
|
+
onChange: r,
|
|
16
|
+
disabled: a = !1,
|
|
17
|
+
size: s = "small",
|
|
18
|
+
sx: u = void 0
|
|
18
19
|
}) {
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
21
|
-
|
|
20
|
+
const l = $((i) => {
|
|
21
|
+
if (i.key === "Enter" && !i.ctrlKey && !i.altKey && !i.shiftKey) {
|
|
22
|
+
i.preventDefault();
|
|
22
23
|
return;
|
|
23
24
|
}
|
|
24
25
|
}, []);
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
|
|
26
|
+
return /* @__PURE__ */ d(
|
|
27
|
+
Be,
|
|
27
28
|
{
|
|
28
29
|
id: e,
|
|
29
30
|
"aria-label": e,
|
|
30
|
-
disabled:
|
|
31
|
-
"aria-disabled":
|
|
32
|
-
control: /* @__PURE__ */
|
|
33
|
-
label:
|
|
31
|
+
disabled: a,
|
|
32
|
+
"aria-disabled": a,
|
|
33
|
+
control: /* @__PURE__ */ d(tn, { size: s, checked: t, onChange: (i, o) => r(o), onKeyDown: l }),
|
|
34
|
+
label: n,
|
|
34
35
|
slotProps: { typography: { noWrap: !0 } },
|
|
35
|
-
sx:
|
|
36
|
+
sx: u
|
|
36
37
|
}
|
|
37
38
|
);
|
|
38
39
|
}
|
|
39
|
-
|
|
40
|
+
var oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
41
|
+
function De(e) {
|
|
42
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
43
|
+
}
|
|
44
|
+
function Mn(e) {
|
|
45
|
+
var n = typeof e;
|
|
46
|
+
return e != null && (n == "object" || n == "function");
|
|
47
|
+
}
|
|
48
|
+
var ve = Mn, _n = typeof oe == "object" && oe && oe.Object === Object && oe, wn = _n, Rn = wn, An = typeof self == "object" && self && self.Object === Object && self, Tn = Rn || An || Function("return this")(), ze = Tn, En = ze, Ln = function() {
|
|
49
|
+
return En.Date.now();
|
|
50
|
+
}, Bn = Ln, On = /\s/;
|
|
51
|
+
function kn(e) {
|
|
52
|
+
for (var n = e.length; n-- && On.test(e.charAt(n)); )
|
|
53
|
+
;
|
|
54
|
+
return n;
|
|
55
|
+
}
|
|
56
|
+
var Wn = kn, Pn = Wn, jn = /^\s+/;
|
|
57
|
+
function Un(e) {
|
|
58
|
+
return e && e.slice(0, Pn(e) + 1).replace(jn, "");
|
|
59
|
+
}
|
|
60
|
+
var Dn = Un, zn = ze, Kn = zn.Symbol, Ke = Kn, Me = Ke, Xe = Object.prototype, Xn = Xe.hasOwnProperty, Hn = Xe.toString, ne = Me ? Me.toStringTag : void 0;
|
|
61
|
+
function Gn(e) {
|
|
62
|
+
var n = Xn.call(e, ne), t = e[ne];
|
|
63
|
+
try {
|
|
64
|
+
e[ne] = void 0;
|
|
65
|
+
var r = !0;
|
|
66
|
+
} catch {
|
|
67
|
+
}
|
|
68
|
+
var a = Hn.call(e);
|
|
69
|
+
return r && (n ? e[ne] = t : delete e[ne]), a;
|
|
70
|
+
}
|
|
71
|
+
var qn = Gn, Yn = Object.prototype, Jn = Yn.toString;
|
|
72
|
+
function Qn(e) {
|
|
73
|
+
return Jn.call(e);
|
|
74
|
+
}
|
|
75
|
+
var Zn = Qn, _e = Ke, Vn = qn, et = Zn, nt = "[object Null]", tt = "[object Undefined]", we = _e ? _e.toStringTag : void 0;
|
|
76
|
+
function rt(e) {
|
|
77
|
+
return e == null ? e === void 0 ? tt : nt : we && we in Object(e) ? Vn(e) : et(e);
|
|
78
|
+
}
|
|
79
|
+
var at = rt;
|
|
80
|
+
function it(e) {
|
|
81
|
+
return e != null && typeof e == "object";
|
|
82
|
+
}
|
|
83
|
+
var st = it, lt = at, ot = st, dt = "[object Symbol]";
|
|
84
|
+
function ut(e) {
|
|
85
|
+
return typeof e == "symbol" || ot(e) && lt(e) == dt;
|
|
86
|
+
}
|
|
87
|
+
var ct = ut, ft = Dn, Re = ve, ht = ct, Ae = NaN, gt = /^[-+]0x[0-9a-f]+$/i, mt = /^0b[01]+$/i, bt = /^0o[0-7]+$/i, pt = parseInt;
|
|
88
|
+
function xt(e) {
|
|
89
|
+
if (typeof e == "number")
|
|
90
|
+
return e;
|
|
91
|
+
if (ht(e))
|
|
92
|
+
return Ae;
|
|
93
|
+
if (Re(e)) {
|
|
94
|
+
var n = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
95
|
+
e = Re(n) ? n + "" : n;
|
|
96
|
+
}
|
|
97
|
+
if (typeof e != "string")
|
|
98
|
+
return e === 0 ? e : +e;
|
|
99
|
+
e = ft(e);
|
|
100
|
+
var t = mt.test(e);
|
|
101
|
+
return t || bt.test(e) ? pt(e.slice(2), t ? 2 : 8) : gt.test(e) ? Ae : +e;
|
|
102
|
+
}
|
|
103
|
+
var vt = xt, Nt = ve, he = Bn, Te = vt, Ct = "Expected a function", St = Math.max, $t = Math.min;
|
|
104
|
+
function Ft(e, n, t) {
|
|
105
|
+
var r, a, s, u, l, i, o = 0, h = !1, b = !1, x = !0;
|
|
106
|
+
if (typeof e != "function")
|
|
107
|
+
throw new TypeError(Ct);
|
|
108
|
+
n = Te(n) || 0, Nt(t) && (h = !!t.leading, b = "maxWait" in t, s = b ? St(Te(t.maxWait) || 0, n) : s, x = "trailing" in t ? !!t.trailing : x);
|
|
109
|
+
function N(c) {
|
|
110
|
+
var F = r, _ = a;
|
|
111
|
+
return r = a = void 0, o = c, u = e.apply(_, F), u;
|
|
112
|
+
}
|
|
113
|
+
function v(c) {
|
|
114
|
+
return o = c, l = setTimeout(w, n), h ? N(c) : u;
|
|
115
|
+
}
|
|
116
|
+
function f(c) {
|
|
117
|
+
var F = c - i, _ = c - o, z = n - F;
|
|
118
|
+
return b ? $t(z, s - _) : z;
|
|
119
|
+
}
|
|
120
|
+
function I(c) {
|
|
121
|
+
var F = c - i, _ = c - o;
|
|
122
|
+
return i === void 0 || F >= n || F < 0 || b && _ >= s;
|
|
123
|
+
}
|
|
124
|
+
function w() {
|
|
125
|
+
var c = he();
|
|
126
|
+
if (I(c))
|
|
127
|
+
return C(c);
|
|
128
|
+
l = setTimeout(w, f(c));
|
|
129
|
+
}
|
|
130
|
+
function C(c) {
|
|
131
|
+
return l = void 0, x && r ? N(c) : (r = a = void 0, u);
|
|
132
|
+
}
|
|
133
|
+
function S() {
|
|
134
|
+
l !== void 0 && clearTimeout(l), o = 0, r = i = a = l = void 0;
|
|
135
|
+
}
|
|
136
|
+
function g() {
|
|
137
|
+
return l === void 0 ? u : C(he());
|
|
138
|
+
}
|
|
139
|
+
function p() {
|
|
140
|
+
var c = he(), F = I(c);
|
|
141
|
+
if (r = arguments, a = this, i = c, F) {
|
|
142
|
+
if (l === void 0)
|
|
143
|
+
return v(i);
|
|
144
|
+
if (b)
|
|
145
|
+
return clearTimeout(l), l = setTimeout(w, n), N(i);
|
|
146
|
+
}
|
|
147
|
+
return l === void 0 && (l = setTimeout(w, n)), u;
|
|
148
|
+
}
|
|
149
|
+
return p.cancel = S, p.flush = g, p;
|
|
150
|
+
}
|
|
151
|
+
var He = Ft;
|
|
152
|
+
const It = /* @__PURE__ */ De(He);
|
|
153
|
+
var yt = He, Mt = ve, _t = "Expected a function";
|
|
154
|
+
function wt(e, n, t) {
|
|
155
|
+
var r = !0, a = !0;
|
|
156
|
+
if (typeof e != "function")
|
|
157
|
+
throw new TypeError(_t);
|
|
158
|
+
return Mt(t) && (r = "leading" in t ? !!t.leading : r, a = "trailing" in t ? !!t.trailing : a), yt(e, n, {
|
|
159
|
+
leading: r,
|
|
160
|
+
maxWait: n,
|
|
161
|
+
trailing: a
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
var Rt = wt;
|
|
165
|
+
const At = /* @__PURE__ */ De(Rt), Tt = (e, n, t, r) => {
|
|
166
|
+
switch (n) {
|
|
167
|
+
case "debounce":
|
|
168
|
+
return It(e, t, r);
|
|
169
|
+
case "throttle":
|
|
170
|
+
return At(e, t, r);
|
|
171
|
+
default:
|
|
172
|
+
return e;
|
|
173
|
+
}
|
|
174
|
+
}, Et = (
|
|
175
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
176
|
+
(e) => {
|
|
177
|
+
const n = te.useRef(e);
|
|
178
|
+
return te.useEffect(() => {
|
|
179
|
+
n.current = e;
|
|
180
|
+
}), te.useMemo(() => (...t) => {
|
|
181
|
+
var r;
|
|
182
|
+
return (r = n.current) === null || r === void 0 ? void 0 : r.call(n, ...t);
|
|
183
|
+
}, []);
|
|
184
|
+
}
|
|
185
|
+
), Lt = (
|
|
186
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
187
|
+
(e) => {
|
|
188
|
+
const [n, t] = te.useState((e == null ? void 0 : e.current) || null);
|
|
189
|
+
return e && setTimeout(() => {
|
|
190
|
+
e.current !== n && t(e.current);
|
|
191
|
+
}, 0), { refProxy: te.useMemo(() => new Proxy((a) => {
|
|
192
|
+
a !== n && t(a);
|
|
193
|
+
}, {
|
|
194
|
+
get(a, s) {
|
|
195
|
+
return s === "current" ? n : a[s];
|
|
196
|
+
},
|
|
197
|
+
set(a, s, u) {
|
|
198
|
+
return s === "current" ? t(u) : a[s] = u, !0;
|
|
199
|
+
}
|
|
200
|
+
}), [n]), refElement: n, setRefElement: t };
|
|
201
|
+
}
|
|
202
|
+
), Bt = (e, n) => n === "border-box" ? {
|
|
203
|
+
width: e.borderBoxSize[0].inlineSize,
|
|
204
|
+
height: e.borderBoxSize[0].blockSize
|
|
205
|
+
} : n === "content-box" ? {
|
|
206
|
+
width: e.contentBoxSize[0].inlineSize,
|
|
207
|
+
height: e.contentBoxSize[0].blockSize
|
|
208
|
+
} : {
|
|
209
|
+
width: e.contentRect.width,
|
|
210
|
+
height: e.contentRect.height
|
|
211
|
+
};
|
|
212
|
+
function Ot({ skipOnMount: e = !1, refreshMode: n, refreshRate: t = 1e3, refreshOptions: r, handleWidth: a = !0, handleHeight: s = !0, targetRef: u, observerOptions: l, onResize: i } = {}) {
|
|
213
|
+
const o = Le(e), h = Et(i), [b, x] = B({
|
|
214
|
+
width: void 0,
|
|
215
|
+
height: void 0
|
|
216
|
+
}), { refProxy: N, refElement: v } = Lt(u), { box: f } = l || {}, I = $((C) => {
|
|
217
|
+
if (!a && !s)
|
|
218
|
+
return;
|
|
219
|
+
if (o.current) {
|
|
220
|
+
o.current = !1;
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
const S = (g, p) => a && g.width !== p.width || s && g.height !== p.height;
|
|
224
|
+
C.forEach((g) => {
|
|
225
|
+
const p = Bt(g, f);
|
|
226
|
+
x((c) => S(c, p) ? (h == null || h({
|
|
227
|
+
width: p.width,
|
|
228
|
+
height: p.height,
|
|
229
|
+
entry: g
|
|
230
|
+
}), p) : c);
|
|
231
|
+
});
|
|
232
|
+
}, [a, s, o, f]), w = $(Tt(I, n, t, r), [
|
|
233
|
+
I,
|
|
234
|
+
n,
|
|
235
|
+
t,
|
|
236
|
+
r
|
|
237
|
+
]);
|
|
238
|
+
return P(() => {
|
|
239
|
+
let C;
|
|
240
|
+
return v ? (C = new window.ResizeObserver(w), C.observe(v, l)) : (b.width || b.height) && (h == null || h({
|
|
241
|
+
width: null,
|
|
242
|
+
height: null,
|
|
243
|
+
entry: null
|
|
244
|
+
}), x({ width: void 0, height: void 0 })), () => {
|
|
245
|
+
var S, g, p;
|
|
246
|
+
(S = C == null ? void 0 : C.disconnect) === null || S === void 0 || S.call(C), (p = (g = w).cancel) === null || p === void 0 || p.call(g);
|
|
247
|
+
};
|
|
248
|
+
}, [w, v]), Object.assign({ ref: N }, b);
|
|
249
|
+
}
|
|
250
|
+
const kt = () => {
|
|
251
|
+
const { ref: e, width: n } = Ot();
|
|
252
|
+
return {
|
|
253
|
+
ref: e,
|
|
254
|
+
width: n
|
|
255
|
+
};
|
|
256
|
+
}, Wt = (...e) => {
|
|
257
|
+
const [n, t] = B();
|
|
258
|
+
return P(() => {
|
|
259
|
+
const r = e.filter((a) => a.width !== void 0).map((a) => Number(a.width.toFixed(1)));
|
|
260
|
+
if (r.length === e.length) {
|
|
261
|
+
const a = Math.max(...r);
|
|
262
|
+
t((s) => s === void 0 ? a : s);
|
|
263
|
+
}
|
|
264
|
+
}, [e]), n;
|
|
265
|
+
};
|
|
266
|
+
function Pt({ columnItem: e, width: n = void 0, children: t = void 0 }) {
|
|
267
|
+
return /* @__PURE__ */ d("div", { ref: e.ref, children: /* @__PURE__ */ d(ie, { sx: { width: n }, children: t }) });
|
|
268
|
+
}
|
|
269
|
+
const ce = X(rn)(() => ({
|
|
40
270
|
whiteSpace: "nowrap",
|
|
41
271
|
minWidth: "max-content"
|
|
42
272
|
}));
|
|
43
|
-
function
|
|
44
|
-
const
|
|
45
|
-
(
|
|
46
|
-
|
|
273
|
+
function hr({ items: e, onSelect: n, onClose: t = void 0 }) {
|
|
274
|
+
const r = $(
|
|
275
|
+
(a) => {
|
|
276
|
+
n(a), t && t();
|
|
47
277
|
},
|
|
48
|
-
[
|
|
278
|
+
[t, n]
|
|
49
279
|
);
|
|
50
|
-
return /* @__PURE__ */
|
|
280
|
+
return /* @__PURE__ */ d(ae, { children: e.map((a) => /* @__PURE__ */ d(pe, { onClick: () => r(a.key), children: a.text }, a.key)) });
|
|
51
281
|
}
|
|
52
|
-
function
|
|
282
|
+
function jt({
|
|
53
283
|
id: e = "dropdown-button",
|
|
54
|
-
startIcon:
|
|
55
|
-
endIcon:
|
|
56
|
-
text:
|
|
57
|
-
variant:
|
|
58
|
-
color:
|
|
59
|
-
size:
|
|
60
|
-
disabled:
|
|
61
|
-
children:
|
|
284
|
+
startIcon: n = void 0,
|
|
285
|
+
endIcon: t = void 0,
|
|
286
|
+
text: r = void 0,
|
|
287
|
+
variant: a = "outlined",
|
|
288
|
+
color: s = void 0,
|
|
289
|
+
size: u = "medium",
|
|
290
|
+
disabled: l = !1,
|
|
291
|
+
children: i
|
|
62
292
|
}) {
|
|
63
|
-
const [
|
|
64
|
-
|
|
65
|
-
}, []),
|
|
66
|
-
|
|
67
|
-
}, []),
|
|
68
|
-
onClose:
|
|
293
|
+
const [o, h] = B(null), b = !!o, x = $((f) => {
|
|
294
|
+
h(f.currentTarget);
|
|
295
|
+
}, []), N = $(() => {
|
|
296
|
+
h(null);
|
|
297
|
+
}, []), v = me.cloneElement(me.Children.only(i), {
|
|
298
|
+
onClose: N
|
|
69
299
|
});
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
!
|
|
72
|
-
|
|
300
|
+
return /* @__PURE__ */ j(ae, { children: [
|
|
301
|
+
!r && /* @__PURE__ */ d(
|
|
302
|
+
Oe,
|
|
73
303
|
{
|
|
74
304
|
id: e,
|
|
75
305
|
"data-testid": e,
|
|
76
306
|
"aria-controls": b ? `${e}-popover` : void 0,
|
|
77
307
|
"aria-haspopup": "true",
|
|
78
308
|
"aria-expanded": b ? "true" : void 0,
|
|
79
|
-
onClick:
|
|
80
|
-
size:
|
|
81
|
-
color:
|
|
82
|
-
disabled:
|
|
83
|
-
children:
|
|
309
|
+
onClick: x,
|
|
310
|
+
size: u,
|
|
311
|
+
color: s,
|
|
312
|
+
disabled: l,
|
|
313
|
+
children: n
|
|
84
314
|
}
|
|
85
315
|
),
|
|
86
|
-
|
|
87
|
-
|
|
316
|
+
r && /* @__PURE__ */ d(
|
|
317
|
+
ce,
|
|
88
318
|
{
|
|
89
319
|
id: e,
|
|
90
320
|
"data-testid": e,
|
|
91
321
|
"aria-controls": b ? `${e}-popover` : void 0,
|
|
92
322
|
"aria-haspopup": "true",
|
|
93
323
|
"aria-expanded": b ? "true" : void 0,
|
|
94
|
-
variant:
|
|
324
|
+
variant: a,
|
|
95
325
|
disableElevation: !0,
|
|
96
|
-
onClick:
|
|
97
|
-
startIcon:
|
|
98
|
-
endIcon:
|
|
99
|
-
size:
|
|
100
|
-
color:
|
|
101
|
-
disabled:
|
|
102
|
-
children:
|
|
326
|
+
onClick: x,
|
|
327
|
+
startIcon: n,
|
|
328
|
+
endIcon: t ?? /* @__PURE__ */ d(je, {}),
|
|
329
|
+
size: u,
|
|
330
|
+
color: s,
|
|
331
|
+
disabled: l,
|
|
332
|
+
children: r
|
|
103
333
|
}
|
|
104
334
|
),
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
|
|
335
|
+
/* @__PURE__ */ d(
|
|
336
|
+
an,
|
|
107
337
|
{
|
|
108
338
|
id: `${e}-popover`,
|
|
109
339
|
"aria-labelledby": e,
|
|
110
|
-
anchorEl:
|
|
340
|
+
anchorEl: o,
|
|
111
341
|
open: b,
|
|
112
|
-
onClose:
|
|
342
|
+
onClose: N,
|
|
113
343
|
anchorOrigin: {
|
|
114
344
|
vertical: "bottom",
|
|
115
345
|
horizontal: "left"
|
|
@@ -118,744 +348,747 @@ function Qe({
|
|
|
118
348
|
vertical: "top",
|
|
119
349
|
horizontal: "left"
|
|
120
350
|
},
|
|
121
|
-
children:
|
|
351
|
+
children: v
|
|
122
352
|
}
|
|
123
353
|
)
|
|
124
354
|
] });
|
|
125
355
|
}
|
|
126
|
-
const
|
|
356
|
+
const Ut = X("div")(({ top: e, left: n, width: t, height: r }) => ({
|
|
127
357
|
top: e,
|
|
128
|
-
left:
|
|
129
|
-
width:
|
|
130
|
-
height:
|
|
358
|
+
left: n,
|
|
359
|
+
width: t,
|
|
360
|
+
height: r,
|
|
131
361
|
position: "absolute",
|
|
132
362
|
zIndex: 1
|
|
133
|
-
})),
|
|
363
|
+
})), Dt = X("div")(({ top: e, left: n, width: t, height: r, position: a, theme: s }) => ({
|
|
134
364
|
top: e,
|
|
135
|
-
left:
|
|
136
|
-
width:
|
|
137
|
-
height:
|
|
365
|
+
left: n,
|
|
366
|
+
width: t,
|
|
367
|
+
height: r,
|
|
138
368
|
position: "absolute",
|
|
139
369
|
zIndex: 2,
|
|
140
|
-
color:
|
|
141
|
-
backgroundColor:
|
|
370
|
+
color: s.palette.primary.contrastText,
|
|
371
|
+
backgroundColor: s.palette.primary.main,
|
|
142
372
|
display: "flex",
|
|
143
|
-
flexDirection:
|
|
144
|
-
borderTopLeftRadius:
|
|
145
|
-
borderTopRightRadius:
|
|
146
|
-
borderBottomRightRadius:
|
|
147
|
-
borderBottomLeftRadius:
|
|
148
|
-
})),
|
|
149
|
-
function
|
|
373
|
+
flexDirection: a === "left" || a === "right" ? "column" : "row",
|
|
374
|
+
borderTopLeftRadius: a === "top" || a === "left" ? 0 : 8,
|
|
375
|
+
borderTopRightRadius: a === "top" || a === "right" ? 0 : 8,
|
|
376
|
+
borderBottomRightRadius: a === "bottom" || a === "right" ? 0 : 8,
|
|
377
|
+
borderBottomLeftRadius: a === "bottom" || a === "left" ? 0 : 8
|
|
378
|
+
})), de = 8;
|
|
379
|
+
function gr({
|
|
150
380
|
id: e = void 0,
|
|
151
|
-
position:
|
|
152
|
-
parentWidth:
|
|
153
|
-
parentHeight:
|
|
154
|
-
maxLength:
|
|
155
|
-
dropDownSize:
|
|
156
|
-
autoHideTimeout:
|
|
157
|
-
forceShow:
|
|
158
|
-
children:
|
|
381
|
+
position: n,
|
|
382
|
+
parentWidth: t,
|
|
383
|
+
parentHeight: r,
|
|
384
|
+
maxLength: a,
|
|
385
|
+
dropDownSize: s,
|
|
386
|
+
autoHideTimeout: u = 0,
|
|
387
|
+
forceShow: l = !1,
|
|
388
|
+
children: i = null
|
|
159
389
|
}) {
|
|
160
|
-
const
|
|
161
|
-
switch (
|
|
390
|
+
const o = W(() => {
|
|
391
|
+
switch (n) {
|
|
162
392
|
case "left":
|
|
163
393
|
case "right":
|
|
164
|
-
return Math.min(
|
|
394
|
+
return Math.min(a, r);
|
|
165
395
|
case "top":
|
|
166
396
|
case "bottom":
|
|
167
|
-
return Math.min(
|
|
397
|
+
return Math.min(a, t);
|
|
168
398
|
default:
|
|
169
|
-
return
|
|
399
|
+
return a;
|
|
170
400
|
}
|
|
171
|
-
}, [
|
|
172
|
-
switch (
|
|
401
|
+
}, [a, r, t, n]), h = W(() => {
|
|
402
|
+
switch (n) {
|
|
173
403
|
case "left":
|
|
174
404
|
case "right":
|
|
175
|
-
return (
|
|
405
|
+
return (r - o) / 2;
|
|
176
406
|
case "top":
|
|
177
407
|
return 0;
|
|
178
408
|
case "bottom":
|
|
179
|
-
return
|
|
409
|
+
return r - de;
|
|
180
410
|
default:
|
|
181
411
|
return 0;
|
|
182
412
|
}
|
|
183
|
-
}, [
|
|
184
|
-
switch (
|
|
413
|
+
}, [o, r, n]), b = W(() => {
|
|
414
|
+
switch (n) {
|
|
185
415
|
case "left":
|
|
186
416
|
return 0;
|
|
187
417
|
case "right":
|
|
188
|
-
return
|
|
418
|
+
return t - de;
|
|
189
419
|
case "top":
|
|
190
420
|
case "bottom":
|
|
191
|
-
return (
|
|
421
|
+
return (t - o) / 2;
|
|
192
422
|
default:
|
|
193
423
|
return 0;
|
|
194
424
|
}
|
|
195
|
-
}, [
|
|
196
|
-
switch (
|
|
425
|
+
}, [o, t, n]), x = W(() => {
|
|
426
|
+
switch (n) {
|
|
197
427
|
case "left":
|
|
198
428
|
case "right":
|
|
199
|
-
return
|
|
429
|
+
return de;
|
|
200
430
|
case "top":
|
|
201
431
|
case "bottom":
|
|
202
|
-
return
|
|
432
|
+
return o;
|
|
203
433
|
default:
|
|
204
434
|
return 0;
|
|
205
435
|
}
|
|
206
|
-
}, [
|
|
207
|
-
switch (
|
|
436
|
+
}, [o, n]), N = W(() => {
|
|
437
|
+
switch (n) {
|
|
208
438
|
case "left":
|
|
209
439
|
case "right":
|
|
210
|
-
return
|
|
440
|
+
return o;
|
|
211
441
|
case "top":
|
|
212
442
|
case "bottom":
|
|
213
|
-
return
|
|
443
|
+
return de;
|
|
214
444
|
default:
|
|
215
445
|
return 0;
|
|
216
446
|
}
|
|
217
|
-
}, [
|
|
218
|
-
switch (
|
|
447
|
+
}, [o, n]), v = W(() => {
|
|
448
|
+
switch (n) {
|
|
219
449
|
case "left":
|
|
220
450
|
case "right":
|
|
221
|
-
return (
|
|
451
|
+
return (r - o) / 2;
|
|
222
452
|
case "top":
|
|
223
453
|
return 0;
|
|
224
454
|
case "bottom":
|
|
225
|
-
return
|
|
455
|
+
return r - s;
|
|
226
456
|
default:
|
|
227
457
|
return 0;
|
|
228
458
|
}
|
|
229
|
-
}, [
|
|
230
|
-
switch (
|
|
459
|
+
}, [s, o, r, n]), f = W(() => {
|
|
460
|
+
switch (n) {
|
|
231
461
|
case "left":
|
|
232
462
|
return 0;
|
|
233
463
|
case "right":
|
|
234
|
-
return
|
|
464
|
+
return t - s;
|
|
235
465
|
case "top":
|
|
236
466
|
case "bottom":
|
|
237
|
-
return (
|
|
467
|
+
return (t - o) / 2;
|
|
238
468
|
default:
|
|
239
469
|
return 0;
|
|
240
470
|
}
|
|
241
|
-
}, [
|
|
242
|
-
switch (
|
|
471
|
+
}, [s, o, t, n]), I = W(() => {
|
|
472
|
+
switch (n) {
|
|
243
473
|
case "left":
|
|
244
474
|
case "right":
|
|
245
|
-
return
|
|
475
|
+
return s;
|
|
246
476
|
case "top":
|
|
247
477
|
case "bottom":
|
|
248
|
-
return
|
|
478
|
+
return o;
|
|
249
479
|
default:
|
|
250
480
|
return 0;
|
|
251
481
|
}
|
|
252
|
-
}, [
|
|
253
|
-
switch (
|
|
482
|
+
}, [s, o, n]), w = W(() => {
|
|
483
|
+
switch (n) {
|
|
254
484
|
case "left":
|
|
255
485
|
case "right":
|
|
256
|
-
return
|
|
486
|
+
return o;
|
|
257
487
|
case "top":
|
|
258
488
|
case "bottom":
|
|
259
|
-
return
|
|
489
|
+
return s;
|
|
260
490
|
default:
|
|
261
491
|
return 0;
|
|
262
492
|
}
|
|
263
|
-
}, [
|
|
264
|
-
(
|
|
265
|
-
|
|
493
|
+
}, [s, o, n]), [C, S] = B(!1), g = $(
|
|
494
|
+
(c) => {
|
|
495
|
+
c.buttons === 0 && u && S(!0);
|
|
266
496
|
},
|
|
267
|
-
[
|
|
268
|
-
),
|
|
269
|
-
|
|
497
|
+
[u]
|
|
498
|
+
), p = $(() => {
|
|
499
|
+
S(!1);
|
|
270
500
|
}, []);
|
|
271
|
-
return
|
|
272
|
-
let
|
|
273
|
-
return
|
|
274
|
-
|
|
501
|
+
return P(() => {
|
|
502
|
+
let c;
|
|
503
|
+
return C && u && (c = setTimeout(() => S(!1), u)), () => {
|
|
504
|
+
c && clearTimeout(c);
|
|
275
505
|
};
|
|
276
|
-
}, [
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
-
|
|
506
|
+
}, [u, C]), /* @__PURE__ */ j(ae, { children: [
|
|
507
|
+
/* @__PURE__ */ d(
|
|
508
|
+
Ut,
|
|
279
509
|
{
|
|
280
510
|
id: e,
|
|
281
|
-
top:
|
|
511
|
+
top: h,
|
|
282
512
|
left: b,
|
|
283
|
-
width:
|
|
284
|
-
height:
|
|
513
|
+
width: x,
|
|
514
|
+
height: N,
|
|
285
515
|
"aria-haspopup": "true",
|
|
286
|
-
onMouseEnter:
|
|
516
|
+
onMouseEnter: g
|
|
287
517
|
}
|
|
288
518
|
),
|
|
289
|
-
(
|
|
290
|
-
|
|
519
|
+
(C || l === !0) && /* @__PURE__ */ d(
|
|
520
|
+
Dt,
|
|
291
521
|
{
|
|
292
|
-
top:
|
|
293
|
-
left:
|
|
522
|
+
top: v,
|
|
523
|
+
left: f,
|
|
294
524
|
width: I,
|
|
295
|
-
height:
|
|
296
|
-
position:
|
|
297
|
-
onMouseLeave:
|
|
298
|
-
children:
|
|
525
|
+
height: w,
|
|
526
|
+
position: n,
|
|
527
|
+
onMouseLeave: p,
|
|
528
|
+
children: i
|
|
299
529
|
}
|
|
300
530
|
)
|
|
301
531
|
] });
|
|
302
532
|
}
|
|
303
|
-
function
|
|
533
|
+
function be({
|
|
304
534
|
children: e,
|
|
305
|
-
fullWidth:
|
|
306
|
-
spacing:
|
|
307
|
-
alignItems:
|
|
535
|
+
fullWidth: n = !0,
|
|
536
|
+
spacing: t = "4px",
|
|
537
|
+
alignItems: r = "center"
|
|
308
538
|
}) {
|
|
309
|
-
return /* @__PURE__ */
|
|
539
|
+
return /* @__PURE__ */ d(ke, { margin: "dense", fullWidth: n, variant: "standard", children: /* @__PURE__ */ d(We, { direction: "row", spacing: t, alignItems: r, children: e }) });
|
|
310
540
|
}
|
|
311
|
-
const
|
|
312
|
-
...
|
|
313
|
-
})),
|
|
314
|
-
...
|
|
541
|
+
const zt = X("input")(({ variant: e, theme: n }) => ({
|
|
542
|
+
...n.typography[e]
|
|
543
|
+
})), Kt = X("span")(({ variant: e, theme: n }) => ({
|
|
544
|
+
...n.typography[e]
|
|
315
545
|
}));
|
|
316
|
-
function
|
|
317
|
-
const
|
|
318
|
-
(
|
|
546
|
+
function Xt({ value: e, onChange: n, ariaLabel: t = void 0, variant: r = "body1" }) {
|
|
547
|
+
const a = Le(null), [s, u] = B(e), l = $(
|
|
548
|
+
(h) => u(h.target.value),
|
|
319
549
|
[]
|
|
320
|
-
),
|
|
321
|
-
(
|
|
322
|
-
(
|
|
550
|
+
), i = $(
|
|
551
|
+
(h) => {
|
|
552
|
+
(h.key === "Enter" || h.key === "Escape") && (h.key === "Escape" && (u(e), h.currentTarget.value = e), h.currentTarget.blur());
|
|
323
553
|
},
|
|
324
554
|
[e]
|
|
325
|
-
),
|
|
326
|
-
(
|
|
327
|
-
|
|
555
|
+
), o = $(
|
|
556
|
+
(h) => {
|
|
557
|
+
n(h.target.value);
|
|
328
558
|
},
|
|
329
|
-
[
|
|
559
|
+
[n]
|
|
330
560
|
);
|
|
331
|
-
return
|
|
332
|
-
var
|
|
333
|
-
(
|
|
334
|
-
}, []), /* @__PURE__ */
|
|
335
|
-
|
|
561
|
+
return P(() => {
|
|
562
|
+
var h;
|
|
563
|
+
(h = a.current) == null || h.focus();
|
|
564
|
+
}, []), /* @__PURE__ */ d(
|
|
565
|
+
zt,
|
|
336
566
|
{
|
|
337
|
-
ref:
|
|
338
|
-
variant:
|
|
567
|
+
ref: a,
|
|
568
|
+
variant: r ?? "body1",
|
|
339
569
|
type: "text",
|
|
340
|
-
"aria-label":
|
|
341
|
-
value:
|
|
342
|
-
onChange:
|
|
343
|
-
onKeyDown:
|
|
344
|
-
onBlur:
|
|
570
|
+
"aria-label": t,
|
|
571
|
+
value: s,
|
|
572
|
+
onChange: l,
|
|
573
|
+
onKeyDown: i,
|
|
574
|
+
onBlur: o
|
|
345
575
|
}
|
|
346
576
|
);
|
|
347
577
|
}
|
|
348
|
-
function
|
|
349
|
-
return /* @__PURE__ */
|
|
350
|
-
e && /* @__PURE__ */
|
|
351
|
-
!e && /* @__PURE__ */
|
|
578
|
+
function mr({ editMode: e, value: n, onValueChange: t, ariaLabel: r = void 0, variant: a = "body1" }) {
|
|
579
|
+
return /* @__PURE__ */ j(ae, { children: [
|
|
580
|
+
e && /* @__PURE__ */ d(Xt, { ariaLabel: r, value: n, onChange: t, variant: a }),
|
|
581
|
+
!e && /* @__PURE__ */ d(Kt, { variant: a ?? "body1", children: n })
|
|
352
582
|
] });
|
|
353
583
|
}
|
|
354
|
-
function
|
|
584
|
+
function Ht({
|
|
355
585
|
id: e = void 0,
|
|
356
|
-
label:
|
|
357
|
-
helperText:
|
|
358
|
-
value:
|
|
359
|
-
onChange:
|
|
360
|
-
onBlur:
|
|
361
|
-
disabled:
|
|
362
|
-
error:
|
|
363
|
-
required:
|
|
364
|
-
margin:
|
|
365
|
-
size:
|
|
586
|
+
label: n = void 0,
|
|
587
|
+
helperText: t = "",
|
|
588
|
+
value: r,
|
|
589
|
+
onChange: a = void 0,
|
|
590
|
+
onBlur: s = void 0,
|
|
591
|
+
disabled: u = !1,
|
|
592
|
+
error: l = !1,
|
|
593
|
+
required: i = !1,
|
|
594
|
+
margin: o = "dense",
|
|
595
|
+
size: h = "small",
|
|
366
596
|
fullWidth: b = !1,
|
|
367
|
-
inputMode:
|
|
368
|
-
pattern:
|
|
369
|
-
startAdornment:
|
|
370
|
-
endAdornment:
|
|
597
|
+
inputMode: x = void 0,
|
|
598
|
+
pattern: N = void 0,
|
|
599
|
+
startAdornment: v = void 0,
|
|
600
|
+
endAdornment: f = void 0,
|
|
371
601
|
sx: I = void 0,
|
|
372
|
-
sxStartAdornment:
|
|
373
|
-
sxEndAdornment:
|
|
602
|
+
sxStartAdornment: w = void 0,
|
|
603
|
+
sxEndAdornment: C = void 0
|
|
374
604
|
}) {
|
|
375
|
-
const
|
|
376
|
-
(
|
|
377
|
-
|
|
605
|
+
const S = $(
|
|
606
|
+
(F) => {
|
|
607
|
+
a && a(F.target.value);
|
|
378
608
|
},
|
|
379
|
-
[
|
|
380
|
-
),
|
|
381
|
-
if (
|
|
382
|
-
|
|
609
|
+
[a]
|
|
610
|
+
), g = $((F) => {
|
|
611
|
+
if (F.key === "Enter" && !F.ctrlKey && !F.altKey && !F.shiftKey) {
|
|
612
|
+
F.preventDefault(), F.stopPropagation(), document.activeElement instanceof HTMLElement && document.activeElement.blur();
|
|
383
613
|
return;
|
|
384
614
|
}
|
|
385
|
-
}, []),
|
|
386
|
-
return /* @__PURE__ */
|
|
387
|
-
|
|
615
|
+
}, []), p = w ?? { marginBottom: 1 }, c = C ?? { marginBottom: 1 };
|
|
616
|
+
return /* @__PURE__ */ d(
|
|
617
|
+
sn,
|
|
388
618
|
{
|
|
389
619
|
id: e,
|
|
390
620
|
"aria-label": e,
|
|
391
621
|
type: "text",
|
|
392
|
-
label:
|
|
393
|
-
helperText:
|
|
394
|
-
margin:
|
|
395
|
-
size:
|
|
622
|
+
label: n,
|
|
623
|
+
helperText: t,
|
|
624
|
+
margin: o,
|
|
625
|
+
size: h,
|
|
396
626
|
fullWidth: b,
|
|
397
627
|
variant: "standard",
|
|
398
|
-
value:
|
|
399
|
-
onChange:
|
|
400
|
-
onBlur:
|
|
401
|
-
disabled:
|
|
402
|
-
"aria-disabled":
|
|
403
|
-
error:
|
|
404
|
-
required:
|
|
628
|
+
value: r,
|
|
629
|
+
onChange: S,
|
|
630
|
+
onBlur: s,
|
|
631
|
+
disabled: u,
|
|
632
|
+
"aria-disabled": u,
|
|
633
|
+
error: l,
|
|
634
|
+
required: i,
|
|
405
635
|
slotProps: {
|
|
406
636
|
input: {
|
|
407
|
-
startAdornment:
|
|
408
|
-
endAdornment:
|
|
637
|
+
startAdornment: v ? /* @__PURE__ */ d(Se, { position: "start", sx: { ...p }, children: v }) : null,
|
|
638
|
+
endAdornment: f ? /* @__PURE__ */ d(Se, { position: "end", sx: { ...c }, children: f }) : null
|
|
409
639
|
},
|
|
410
640
|
htmlInput: {
|
|
411
|
-
inputMode:
|
|
412
|
-
pattern:
|
|
641
|
+
inputMode: x,
|
|
642
|
+
pattern: N
|
|
413
643
|
}
|
|
414
644
|
},
|
|
415
645
|
sx: I,
|
|
416
|
-
onKeyDown:
|
|
646
|
+
onKeyDown: g
|
|
417
647
|
}
|
|
418
648
|
);
|
|
419
649
|
}
|
|
420
|
-
function
|
|
650
|
+
function ee({
|
|
421
651
|
id: e,
|
|
422
|
-
label:
|
|
423
|
-
helperText:
|
|
424
|
-
value:
|
|
425
|
-
onChange:
|
|
426
|
-
onBlur:
|
|
427
|
-
disabled:
|
|
428
|
-
required:
|
|
429
|
-
margin:
|
|
430
|
-
size:
|
|
431
|
-
fullWidth:
|
|
652
|
+
label: n = void 0,
|
|
653
|
+
helperText: t = "",
|
|
654
|
+
value: r,
|
|
655
|
+
onChange: a = void 0,
|
|
656
|
+
onBlur: s = void 0,
|
|
657
|
+
disabled: u = !1,
|
|
658
|
+
required: l = !1,
|
|
659
|
+
margin: i = "dense",
|
|
660
|
+
size: o = "small",
|
|
661
|
+
fullWidth: h = !1,
|
|
432
662
|
inputMode: b = void 0,
|
|
433
|
-
pattern:
|
|
434
|
-
startAdornment:
|
|
435
|
-
endAdornment:
|
|
436
|
-
sx:
|
|
663
|
+
pattern: x = void 0,
|
|
664
|
+
startAdornment: N = void 0,
|
|
665
|
+
endAdornment: v = void 0,
|
|
666
|
+
sx: f = void 0,
|
|
437
667
|
sxStartAdornment: I = void 0,
|
|
438
|
-
sxEndAdornment:
|
|
439
|
-
error:
|
|
440
|
-
onErrorChange:
|
|
441
|
-
onValidate:
|
|
442
|
-
numberType:
|
|
443
|
-
minValue:
|
|
444
|
-
maxValue:
|
|
668
|
+
sxEndAdornment: w = void 0,
|
|
669
|
+
error: C = void 0,
|
|
670
|
+
onErrorChange: S = void 0,
|
|
671
|
+
onValidate: g = void 0,
|
|
672
|
+
numberType: p = void 0,
|
|
673
|
+
minValue: c = void 0,
|
|
674
|
+
maxValue: F = void 0
|
|
445
675
|
}) {
|
|
446
|
-
const [
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}, [
|
|
450
|
-
|
|
451
|
-
}, [
|
|
452
|
-
const
|
|
453
|
-
(
|
|
454
|
-
const
|
|
455
|
-
let
|
|
456
|
-
return
|
|
676
|
+
const [_, z] = B(r), [K, O] = B(C !== void 0 ? C : !1);
|
|
677
|
+
P(() => {
|
|
678
|
+
z((m) => r !== m ? r : m);
|
|
679
|
+
}, [r]), P(() => {
|
|
680
|
+
O((m) => C !== void 0 && C !== m ? C : m);
|
|
681
|
+
}, [C]);
|
|
682
|
+
const E = $(
|
|
683
|
+
(m) => {
|
|
684
|
+
const A = Number.parseInt(m, m.startsWith("0x") ? 16 : 10);
|
|
685
|
+
let R = Number.isNaN(A);
|
|
686
|
+
return R || (R = c !== void 0 && A < c), R || (R = F !== void 0 && A > F), { val: m, err: R };
|
|
457
687
|
},
|
|
458
|
-
[
|
|
459
|
-
),
|
|
460
|
-
(
|
|
461
|
-
let
|
|
462
|
-
if (
|
|
463
|
-
return
|
|
464
|
-
const
|
|
465
|
-
return
|
|
688
|
+
[F, c]
|
|
689
|
+
), q = $(
|
|
690
|
+
(m) => {
|
|
691
|
+
let A = !1;
|
|
692
|
+
if (m.endsWith(",") || m.endsWith("."))
|
|
693
|
+
return A = !0, { val: m, err: A };
|
|
694
|
+
const R = Number.parseFloat(m.replace(",", "."));
|
|
695
|
+
return A = Number.isNaN(R), A || (A = c !== void 0 && R < c), A || (A = F !== void 0 && R > F), { val: R.toString(), err: A };
|
|
466
696
|
},
|
|
467
|
-
[
|
|
468
|
-
),
|
|
469
|
-
(
|
|
470
|
-
[
|
|
471
|
-
),
|
|
472
|
-
(
|
|
473
|
-
let
|
|
474
|
-
return !
|
|
697
|
+
[F, c]
|
|
698
|
+
), Y = $(
|
|
699
|
+
(m) => p === "int" ? E(m) : q(m),
|
|
700
|
+
[p, q, E]
|
|
701
|
+
), H = $(
|
|
702
|
+
(m, A) => {
|
|
703
|
+
let R = m, J = !1;
|
|
704
|
+
return !l && (R === void 0 || R === "") ? { val: R, err: J } : (p !== void 0 && ({ val: R, err: J } = Y(m)), !J && g && ({ val: R, err: J } = g(R, A)), { val: R, err: J });
|
|
475
705
|
},
|
|
476
|
-
[
|
|
477
|
-
),
|
|
478
|
-
(
|
|
479
|
-
const { val:
|
|
480
|
-
(
|
|
706
|
+
[g, Y]
|
|
707
|
+
), y = $(
|
|
708
|
+
(m) => {
|
|
709
|
+
const { val: A, err: R } = H(m, "change");
|
|
710
|
+
O(R), z(R ? m : A), !R && a && a(A);
|
|
481
711
|
},
|
|
482
|
-
[
|
|
483
|
-
),
|
|
484
|
-
const { val:
|
|
485
|
-
(
|
|
486
|
-
}, [
|
|
487
|
-
return
|
|
488
|
-
|
|
489
|
-
}, [
|
|
490
|
-
|
|
712
|
+
[a, H]
|
|
713
|
+
), T = $(() => {
|
|
714
|
+
const { val: m, err: A } = H(_, "blur");
|
|
715
|
+
O(A), !A && s && s(m);
|
|
716
|
+
}, [s, H, _]);
|
|
717
|
+
return P(() => {
|
|
718
|
+
S && S(K);
|
|
719
|
+
}, [K, S]), P(() => {
|
|
720
|
+
let m = !1;
|
|
721
|
+
u || (m = H(_, "blur").err), O(m);
|
|
722
|
+
}, [u]), /* @__PURE__ */ d(
|
|
723
|
+
Ht,
|
|
491
724
|
{
|
|
492
725
|
id: e,
|
|
493
|
-
label:
|
|
494
|
-
helperText:
|
|
495
|
-
value:
|
|
496
|
-
onChange:
|
|
497
|
-
onBlur:
|
|
498
|
-
disabled:
|
|
499
|
-
error:
|
|
500
|
-
required:
|
|
501
|
-
margin:
|
|
502
|
-
size:
|
|
503
|
-
fullWidth:
|
|
726
|
+
label: n,
|
|
727
|
+
helperText: t,
|
|
728
|
+
value: _,
|
|
729
|
+
onChange: y,
|
|
730
|
+
onBlur: T,
|
|
731
|
+
disabled: u,
|
|
732
|
+
error: K,
|
|
733
|
+
required: l,
|
|
734
|
+
margin: i,
|
|
735
|
+
size: o,
|
|
736
|
+
fullWidth: h,
|
|
504
737
|
inputMode: b,
|
|
505
|
-
pattern:
|
|
506
|
-
startAdornment:
|
|
507
|
-
endAdornment:
|
|
508
|
-
sx:
|
|
738
|
+
pattern: x,
|
|
739
|
+
startAdornment: N,
|
|
740
|
+
endAdornment: v,
|
|
741
|
+
sx: f,
|
|
509
742
|
sxStartAdornment: I,
|
|
510
|
-
sxEndAdornment:
|
|
743
|
+
sxEndAdornment: w
|
|
511
744
|
}
|
|
512
745
|
);
|
|
513
746
|
}
|
|
514
|
-
function
|
|
747
|
+
function br({
|
|
515
748
|
minValue: e,
|
|
516
|
-
maxValue:
|
|
517
|
-
onChange:
|
|
518
|
-
onBlur:
|
|
519
|
-
minError:
|
|
520
|
-
onMinErrorChange:
|
|
521
|
-
maxError:
|
|
522
|
-
onMaxErrorChange:
|
|
523
|
-
onMinValidate:
|
|
524
|
-
onMaxValidate:
|
|
525
|
-
minDisabled:
|
|
749
|
+
maxValue: n,
|
|
750
|
+
onChange: t = void 0,
|
|
751
|
+
onBlur: r = void 0,
|
|
752
|
+
minError: a = void 0,
|
|
753
|
+
onMinErrorChange: s = void 0,
|
|
754
|
+
maxError: u = void 0,
|
|
755
|
+
onMaxErrorChange: l = void 0,
|
|
756
|
+
onMinValidate: i = void 0,
|
|
757
|
+
onMaxValidate: o = void 0,
|
|
758
|
+
minDisabled: h = !1,
|
|
526
759
|
maxDisabled: b = !1,
|
|
527
|
-
unit:
|
|
528
|
-
lowerLimit:
|
|
529
|
-
upperLimit:
|
|
760
|
+
unit: x = void 0,
|
|
761
|
+
lowerLimit: N = void 0,
|
|
762
|
+
upperLimit: v = void 0
|
|
530
763
|
}) {
|
|
531
|
-
const
|
|
532
|
-
|
|
533
|
-
), [
|
|
534
|
-
|
|
764
|
+
const f = re(), I = Number.parseInt(e), w = Number.parseInt(n), [C, S] = B(e.toString()), [g, p] = B(n.toString()), [c, F] = B(
|
|
765
|
+
a === !0 || Number.isNaN(I) || I < (N ?? 0) || v && I > v || !Number.isNaN(w) && I >= w
|
|
766
|
+
), [_, z] = B(
|
|
767
|
+
u === !0 || Number.isNaN(w) || w < (N ?? 0) || v && w > v || !Number.isNaN(I) && I >= w
|
|
535
768
|
);
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
}, [e]),
|
|
539
|
-
|
|
540
|
-
}, [
|
|
541
|
-
|
|
542
|
-
}, [
|
|
543
|
-
|
|
544
|
-
}, [
|
|
545
|
-
const
|
|
546
|
-
(
|
|
547
|
-
const
|
|
548
|
-
return { val:
|
|
769
|
+
P(() => {
|
|
770
|
+
S((y) => e.toString() !== y ? e.toString() : y);
|
|
771
|
+
}, [e]), P(() => {
|
|
772
|
+
F((y) => a !== void 0 && a !== y ? a : y);
|
|
773
|
+
}, [a]), P(() => {
|
|
774
|
+
p((y) => n.toString() !== y ? n.toString() : y);
|
|
775
|
+
}, [n]), P(() => {
|
|
776
|
+
z((y) => u !== void 0 && u !== y ? u : y);
|
|
777
|
+
}, [u]);
|
|
778
|
+
const K = $(
|
|
779
|
+
(y) => {
|
|
780
|
+
const T = Number.parseInt(y, y.startsWith("0x") ? 16 : 10), m = Number.parseInt(g), A = Number.isNaN(T) || T < (N ?? 0) || v && T > v || !Number.isNaN(m) && T >= m;
|
|
781
|
+
return { val: y, err: A };
|
|
549
782
|
},
|
|
550
|
-
[
|
|
551
|
-
),
|
|
552
|
-
(
|
|
553
|
-
const
|
|
554
|
-
return { val:
|
|
783
|
+
[g, N, v]
|
|
784
|
+
), O = $(
|
|
785
|
+
(y) => {
|
|
786
|
+
const T = Number.parseInt(y, y.startsWith("0x") ? 16 : 10), m = Number.parseInt(C), A = Number.isNaN(T) || T < (N ?? 0) || v && T > v || !Number.isNaN(m) && m >= T;
|
|
787
|
+
return { val: y, err: A };
|
|
555
788
|
},
|
|
556
|
-
[
|
|
557
|
-
),
|
|
558
|
-
(
|
|
559
|
-
let { val:
|
|
560
|
-
if (!
|
|
561
|
-
|
|
789
|
+
[C, N, v]
|
|
790
|
+
), E = $(
|
|
791
|
+
(y) => {
|
|
792
|
+
let { val: T, err: m } = K(y);
|
|
793
|
+
if (!m && i && ({ val: T, err: m } = i(y, "change")), (a === void 0 || a === !1) && F(m), m)
|
|
794
|
+
t && t(y, g);
|
|
562
795
|
else {
|
|
563
|
-
const
|
|
564
|
-
|
|
796
|
+
const A = Number.parseInt(T, T.startsWith("0x") ? 16 : 10).toString();
|
|
797
|
+
S(A), t && t(A, g);
|
|
565
798
|
}
|
|
566
799
|
},
|
|
567
|
-
[
|
|
568
|
-
),
|
|
569
|
-
(
|
|
570
|
-
let { val:
|
|
571
|
-
!
|
|
800
|
+
[K, i, a, t, g]
|
|
801
|
+
), q = $(
|
|
802
|
+
(y) => {
|
|
803
|
+
let { val: T, err: m } = K(y);
|
|
804
|
+
!m && i && ({ val: T, err: m } = i(T, "blur")), F(m), !m && r && r(T, g);
|
|
572
805
|
},
|
|
573
|
-
[
|
|
574
|
-
),
|
|
575
|
-
(
|
|
576
|
-
let { val:
|
|
577
|
-
if (!
|
|
578
|
-
|
|
806
|
+
[K, i, r, g]
|
|
807
|
+
), Y = $(
|
|
808
|
+
(y) => {
|
|
809
|
+
let { val: T, err: m } = O(y);
|
|
810
|
+
if (!m && o && ({ val: T, err: m } = o(y, "change")), (u === void 0 || u === !1) && z(m), m)
|
|
811
|
+
t && t(C, y);
|
|
579
812
|
else {
|
|
580
|
-
const
|
|
581
|
-
|
|
813
|
+
const A = Number.parseInt(T, T.startsWith("0x") ? 16 : 10).toString();
|
|
814
|
+
p(A), t && t(C, A);
|
|
582
815
|
}
|
|
583
816
|
},
|
|
584
|
-
[
|
|
585
|
-
),
|
|
586
|
-
(
|
|
587
|
-
let { val:
|
|
588
|
-
!
|
|
817
|
+
[O, o, u, t, C]
|
|
818
|
+
), H = $(
|
|
819
|
+
(y) => {
|
|
820
|
+
let { val: T, err: m } = O(y);
|
|
821
|
+
!m && o && ({ val: T, err: m } = o(T, "blur")), z(m), !m && r && r(C, T);
|
|
589
822
|
},
|
|
590
|
-
[
|
|
823
|
+
[O, o, r, C]
|
|
591
824
|
);
|
|
592
|
-
return
|
|
593
|
-
|
|
594
|
-
}, [
|
|
595
|
-
/* @__PURE__ */
|
|
596
|
-
|
|
825
|
+
return P(() => {
|
|
826
|
+
s && s(c), l && l(_);
|
|
827
|
+
}, [_, c, l, s]), /* @__PURE__ */ j(ae, { children: [
|
|
828
|
+
/* @__PURE__ */ d(
|
|
829
|
+
ee,
|
|
597
830
|
{
|
|
598
831
|
id: "min-value",
|
|
599
|
-
disabled:
|
|
832
|
+
disabled: h,
|
|
600
833
|
inputMode: "numeric",
|
|
601
834
|
fullWidth: !0,
|
|
602
|
-
value:
|
|
603
|
-
onChange:
|
|
604
|
-
onBlur:
|
|
605
|
-
startAdornment:
|
|
606
|
-
endAdornment:
|
|
835
|
+
value: C,
|
|
836
|
+
onChange: E,
|
|
837
|
+
onBlur: q,
|
|
838
|
+
startAdornment: f.getString("LabelFrom"),
|
|
839
|
+
endAdornment: x,
|
|
607
840
|
numberType: "int",
|
|
608
|
-
error:
|
|
609
|
-
onErrorChange:
|
|
841
|
+
error: c,
|
|
842
|
+
onErrorChange: F
|
|
610
843
|
}
|
|
611
844
|
),
|
|
612
|
-
/* @__PURE__ */
|
|
613
|
-
|
|
845
|
+
/* @__PURE__ */ d(
|
|
846
|
+
ee,
|
|
614
847
|
{
|
|
615
848
|
id: "max-value",
|
|
616
849
|
disabled: b,
|
|
617
850
|
inputMode: "numeric",
|
|
618
851
|
fullWidth: !0,
|
|
619
|
-
value:
|
|
620
|
-
onChange:
|
|
621
|
-
onBlur:
|
|
622
|
-
startAdornment:
|
|
623
|
-
endAdornment:
|
|
852
|
+
value: g,
|
|
853
|
+
onChange: Y,
|
|
854
|
+
onBlur: H,
|
|
855
|
+
startAdornment: f.getString("LabelTo"),
|
|
856
|
+
endAdornment: x,
|
|
624
857
|
numberType: "int",
|
|
625
|
-
error:
|
|
626
|
-
onErrorChange:
|
|
858
|
+
error: _,
|
|
859
|
+
onErrorChange: z
|
|
627
860
|
}
|
|
628
861
|
)
|
|
629
862
|
] });
|
|
630
863
|
}
|
|
631
|
-
function
|
|
864
|
+
function ge({
|
|
632
865
|
id: e = void 0,
|
|
633
|
-
label:
|
|
634
|
-
value:
|
|
635
|
-
disabled:
|
|
636
|
-
size:
|
|
637
|
-
sx:
|
|
866
|
+
label: n,
|
|
867
|
+
value: t,
|
|
868
|
+
disabled: r = !1,
|
|
869
|
+
size: a = "small",
|
|
870
|
+
sx: s = void 0
|
|
638
871
|
}) {
|
|
639
|
-
return /* @__PURE__ */
|
|
640
|
-
|
|
872
|
+
return /* @__PURE__ */ d(
|
|
873
|
+
Be,
|
|
641
874
|
{
|
|
642
875
|
id: e,
|
|
643
876
|
"aria-label": e,
|
|
644
|
-
value:
|
|
645
|
-
disabled:
|
|
646
|
-
"aria-disabled":
|
|
647
|
-
control: /* @__PURE__ */
|
|
648
|
-
label:
|
|
877
|
+
value: t,
|
|
878
|
+
disabled: r,
|
|
879
|
+
"aria-disabled": r,
|
|
880
|
+
control: /* @__PURE__ */ d(ln, { size: a }),
|
|
881
|
+
label: n,
|
|
649
882
|
componentsProps: { typography: { noWrap: !0 } },
|
|
650
|
-
sx:
|
|
883
|
+
sx: s
|
|
651
884
|
}
|
|
652
885
|
);
|
|
653
886
|
}
|
|
654
|
-
function
|
|
887
|
+
function Gt({
|
|
655
888
|
children: e,
|
|
656
|
-
id:
|
|
657
|
-
value:
|
|
658
|
-
onChange:
|
|
889
|
+
id: n = void 0,
|
|
890
|
+
value: t,
|
|
891
|
+
onChange: r
|
|
659
892
|
}) {
|
|
660
|
-
return /* @__PURE__ */
|
|
893
|
+
return /* @__PURE__ */ d(on, { id: n, "aria-label": n, value: t, onChange: (a, s) => r(s), children: e });
|
|
661
894
|
}
|
|
662
|
-
const
|
|
895
|
+
const qt = X(ie, {
|
|
663
896
|
shouldForwardProp: (e) => e !== "collapsed"
|
|
664
|
-
})(({ collapsed: e, theme:
|
|
897
|
+
})(({ collapsed: e, theme: n }) => ({
|
|
665
898
|
paddingTop: e ? "4px" : "8px",
|
|
666
899
|
paddingLeft: "2px",
|
|
667
900
|
paddingRight: "2px",
|
|
668
901
|
paddingBottom: e ? "0px" : "2px",
|
|
669
902
|
marginTop: "2px",
|
|
670
903
|
"&:hover, &:focus-within": {
|
|
671
|
-
background:
|
|
904
|
+
background: n.palette.action.hover
|
|
672
905
|
}
|
|
673
|
-
})),
|
|
906
|
+
})), Ge = X("span")(({ theme: e }) => ({
|
|
674
907
|
color: e.palette.divider
|
|
675
|
-
})),
|
|
908
|
+
})), Yt = X(Ge)(() => ({
|
|
676
909
|
"&:hover": {
|
|
677
910
|
cursor: "pointer"
|
|
678
911
|
}
|
|
679
|
-
})),
|
|
912
|
+
})), Jt = X(Oe)(({ theme: e }) => ({
|
|
680
913
|
color: e.palette.divider,
|
|
681
914
|
padding: "0px"
|
|
682
915
|
}));
|
|
683
|
-
function
|
|
916
|
+
function Ne({
|
|
684
917
|
textAlign: e = "left",
|
|
685
|
-
text:
|
|
686
|
-
summary:
|
|
687
|
-
children:
|
|
688
|
-
collapsible:
|
|
689
|
-
collapsed:
|
|
690
|
-
collapsedChange:
|
|
918
|
+
text: n = void 0,
|
|
919
|
+
summary: t = void 0,
|
|
920
|
+
children: r = void 0,
|
|
921
|
+
collapsible: a = !1,
|
|
922
|
+
collapsed: s = !1,
|
|
923
|
+
collapsedChange: u = void 0
|
|
691
924
|
}) {
|
|
692
|
-
const
|
|
693
|
-
|
|
694
|
-
const b =
|
|
695
|
-
(
|
|
696
|
-
|
|
925
|
+
const l = Ve(), i = re(), [o, h] = B(s);
|
|
926
|
+
P(() => h(s), [s]);
|
|
927
|
+
const b = $(
|
|
928
|
+
(x) => {
|
|
929
|
+
u ? u(x) : h(x);
|
|
697
930
|
},
|
|
698
|
-
[
|
|
931
|
+
[u]
|
|
699
932
|
);
|
|
700
|
-
return /* @__PURE__ */
|
|
701
|
-
|
|
702
|
-
/* @__PURE__ */
|
|
703
|
-
|
|
704
|
-
|
|
933
|
+
return /* @__PURE__ */ j(qt, { collapsed: o, children: [
|
|
934
|
+
n && /* @__PURE__ */ d(dn, { textAlign: e, variant: "fullWidth", children: a ? /* @__PURE__ */ j(We, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
935
|
+
/* @__PURE__ */ j(Yt, { onClick: () => b(!o), children: [
|
|
936
|
+
n.toLocaleUpperCase(l),
|
|
937
|
+
o && t ? ` (${t})` : ""
|
|
705
938
|
] }),
|
|
706
|
-
/* @__PURE__ */
|
|
707
|
-
|
|
939
|
+
/* @__PURE__ */ d(
|
|
940
|
+
ue,
|
|
708
941
|
{
|
|
709
|
-
title:
|
|
710
|
-
children: /* @__PURE__ */
|
|
942
|
+
title: o ? i == null ? void 0 : i.getString("TooltipExpandSection", n) : i == null ? void 0 : i.getString("TooltipCollapseSection", n),
|
|
943
|
+
children: /* @__PURE__ */ d(Jt, { onClick: () => b(!o), children: o ? /* @__PURE__ */ d(je, {}) : /* @__PURE__ */ d(In, {}) })
|
|
711
944
|
}
|
|
712
945
|
)
|
|
713
|
-
] }) : /* @__PURE__ */
|
|
714
|
-
!
|
|
946
|
+
] }) : /* @__PURE__ */ d(Ge, { children: n.toLocaleUpperCase(l) }) }),
|
|
947
|
+
!o && r
|
|
715
948
|
] });
|
|
716
949
|
}
|
|
717
|
-
function
|
|
950
|
+
function Ee({
|
|
718
951
|
id: e,
|
|
719
|
-
label:
|
|
720
|
-
showLabel:
|
|
721
|
-
helperText:
|
|
722
|
-
options:
|
|
723
|
-
value:
|
|
724
|
-
onChange:
|
|
725
|
-
disabled:
|
|
726
|
-
required:
|
|
727
|
-
margin:
|
|
728
|
-
size:
|
|
952
|
+
label: n,
|
|
953
|
+
showLabel: t = !1,
|
|
954
|
+
helperText: r = "",
|
|
955
|
+
options: a,
|
|
956
|
+
value: s,
|
|
957
|
+
onChange: u,
|
|
958
|
+
disabled: l = !1,
|
|
959
|
+
required: i = !1,
|
|
960
|
+
margin: o = "dense",
|
|
961
|
+
size: h = "small",
|
|
729
962
|
fullWidth: b = !1,
|
|
730
|
-
minWidth:
|
|
731
|
-
prefixTextWithValue:
|
|
963
|
+
minWidth: x = void 0,
|
|
964
|
+
prefixTextWithValue: N = !1
|
|
732
965
|
}) {
|
|
733
|
-
const
|
|
734
|
-
(
|
|
735
|
-
typeof
|
|
966
|
+
const v = $(
|
|
967
|
+
(S) => {
|
|
968
|
+
typeof S.target.value == "string" ? u("") : u(S.target.value);
|
|
736
969
|
},
|
|
737
|
-
[
|
|
738
|
-
),
|
|
739
|
-
(
|
|
740
|
-
[
|
|
741
|
-
), I =
|
|
742
|
-
(
|
|
743
|
-
const
|
|
744
|
-
/* @__PURE__ */
|
|
970
|
+
[u]
|
|
971
|
+
), f = $(
|
|
972
|
+
(S) => S.map((g) => /* @__PURE__ */ d(pe, { "aria-label": `menu-item-${g.value}`, value: g.value, children: N ? `${g.value} - ${g.displayText}` : g.displayText }, g.value)),
|
|
973
|
+
[N]
|
|
974
|
+
), I = $(
|
|
975
|
+
(S, g) => {
|
|
976
|
+
const p = [
|
|
977
|
+
/* @__PURE__ */ d(hn, { color: "primary", children: S }, S)
|
|
745
978
|
];
|
|
746
|
-
return
|
|
979
|
+
return p.push(...f(g)), p;
|
|
747
980
|
},
|
|
748
|
-
[
|
|
749
|
-
),
|
|
750
|
-
(
|
|
751
|
-
const
|
|
752
|
-
return
|
|
753
|
-
|
|
754
|
-
}),
|
|
981
|
+
[f]
|
|
982
|
+
), w = $(
|
|
983
|
+
(S) => {
|
|
984
|
+
const g = [];
|
|
985
|
+
return S.forEach((p, c) => {
|
|
986
|
+
g.push(...I(c, p));
|
|
987
|
+
}), g;
|
|
755
988
|
},
|
|
756
989
|
[I]
|
|
757
|
-
),
|
|
758
|
-
(
|
|
759
|
-
let
|
|
760
|
-
if (
|
|
761
|
-
|
|
762
|
-
if (
|
|
763
|
-
const
|
|
764
|
-
|
|
990
|
+
), C = $(
|
|
991
|
+
(S) => {
|
|
992
|
+
let g = "";
|
|
993
|
+
if (a instanceof Map)
|
|
994
|
+
a.forEach((p, c) => {
|
|
995
|
+
if (g === "") {
|
|
996
|
+
const F = p.find((_) => _.value === S);
|
|
997
|
+
F && (g = N ? `${F.value} - ${c} - ${F.displayText}` : `${c} - ${F.displayText}`);
|
|
765
998
|
}
|
|
766
999
|
});
|
|
767
1000
|
else {
|
|
768
|
-
const
|
|
769
|
-
|
|
1001
|
+
const p = a.find((c) => c.value === S);
|
|
1002
|
+
p && (g = N ? `${p.value} - ${p.displayText}` : p.displayText);
|
|
770
1003
|
}
|
|
771
|
-
return
|
|
1004
|
+
return g === "" && (g = i ? `${n} *` : n), g;
|
|
772
1005
|
},
|
|
773
|
-
[
|
|
1006
|
+
[n, a, N, i]
|
|
774
1007
|
);
|
|
775
|
-
return /* @__PURE__ */
|
|
776
|
-
|
|
777
|
-
/* @__PURE__ */
|
|
778
|
-
|
|
1008
|
+
return /* @__PURE__ */ j(ke, { fullWidth: b, variant: "standard", sx: { minWidth: x }, margin: o, size: h, children: [
|
|
1009
|
+
t && /* @__PURE__ */ d(un, { id: `${e}-label`, children: i ? `${n} *` : n }),
|
|
1010
|
+
/* @__PURE__ */ j(
|
|
1011
|
+
cn,
|
|
779
1012
|
{
|
|
780
1013
|
labelId: `${e}-label`,
|
|
781
1014
|
"aria-label": e,
|
|
782
1015
|
id: e,
|
|
783
|
-
value:
|
|
784
|
-
renderValue:
|
|
785
|
-
onChange:
|
|
786
|
-
displayEmpty: !
|
|
787
|
-
disabled:
|
|
788
|
-
"aria-disabled":
|
|
1016
|
+
value: s,
|
|
1017
|
+
renderValue: C,
|
|
1018
|
+
onChange: v,
|
|
1019
|
+
displayEmpty: !t,
|
|
1020
|
+
disabled: l,
|
|
1021
|
+
"aria-disabled": l,
|
|
789
1022
|
children: [
|
|
790
|
-
|
|
791
|
-
|
|
1023
|
+
a instanceof Map && w(a),
|
|
1024
|
+
a instanceof Array && f(a)
|
|
792
1025
|
]
|
|
793
1026
|
}
|
|
794
1027
|
),
|
|
795
|
-
|
|
1028
|
+
r && /* @__PURE__ */ d(fn, { children: r })
|
|
796
1029
|
] });
|
|
797
1030
|
}
|
|
798
|
-
const
|
|
1031
|
+
const pr = X(ie)(({ height: e, width: n }) => ({
|
|
799
1032
|
height: e,
|
|
800
|
-
width:
|
|
1033
|
+
width: n,
|
|
801
1034
|
padding: "4px",
|
|
802
1035
|
overflow: "auto"
|
|
803
1036
|
}));
|
|
804
|
-
function
|
|
805
|
-
return /* @__PURE__ */
|
|
1037
|
+
function Qt({ label: e, variant: n = "h6" }) {
|
|
1038
|
+
return /* @__PURE__ */ d(xn, { children: /* @__PURE__ */ d(Pe, { sx: { flex: "1 1 100%" }, variant: n, id: "tableTitle", component: "div", children: e }) });
|
|
806
1039
|
}
|
|
807
|
-
function
|
|
1040
|
+
function xr({
|
|
808
1041
|
data: e,
|
|
809
|
-
dataKey:
|
|
810
|
-
selectedKey:
|
|
811
|
-
onClickRow:
|
|
812
|
-
columns:
|
|
813
|
-
label:
|
|
814
|
-
labelVariant:
|
|
815
|
-
maxHeight:
|
|
816
|
-
size:
|
|
817
|
-
stickyHeader:
|
|
818
|
-
hover:
|
|
1042
|
+
dataKey: n,
|
|
1043
|
+
selectedKey: t = void 0,
|
|
1044
|
+
onClickRow: r = void 0,
|
|
1045
|
+
columns: a,
|
|
1046
|
+
label: s = void 0,
|
|
1047
|
+
labelVariant: u = "h6",
|
|
1048
|
+
maxHeight: l = void 0,
|
|
1049
|
+
size: i = "medium",
|
|
1050
|
+
stickyHeader: o = !1,
|
|
1051
|
+
hover: h = !1
|
|
819
1052
|
}) {
|
|
820
|
-
const b =
|
|
821
|
-
(
|
|
822
|
-
|
|
1053
|
+
const b = $(
|
|
1054
|
+
(x) => {
|
|
1055
|
+
r && r(x);
|
|
823
1056
|
},
|
|
824
|
-
[
|
|
1057
|
+
[r]
|
|
825
1058
|
);
|
|
826
|
-
return /* @__PURE__ */
|
|
827
|
-
|
|
828
|
-
/* @__PURE__ */
|
|
829
|
-
/* @__PURE__ */
|
|
1059
|
+
return /* @__PURE__ */ j(ie, { children: [
|
|
1060
|
+
s && /* @__PURE__ */ d(Qt, { label: s, variant: u }),
|
|
1061
|
+
/* @__PURE__ */ d(gn, { children: /* @__PURE__ */ j(mn, { "aria-labelledby": "tableTitle", size: i, stickyHeader: o, sx: { maxHeight: l }, padding: "none", children: [
|
|
1062
|
+
/* @__PURE__ */ d(bn, { children: /* @__PURE__ */ d($e, { children: a.map((x) => (
|
|
830
1063
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
831
|
-
/* @__PURE__ */
|
|
1064
|
+
/* @__PURE__ */ d(Fe, { ...x.headProps, children: x.headCell }, x.key)
|
|
832
1065
|
)) }) }),
|
|
833
|
-
/* @__PURE__ */
|
|
834
|
-
const
|
|
835
|
-
return /* @__PURE__ */
|
|
836
|
-
|
|
1066
|
+
/* @__PURE__ */ d(pn, { children: e.map((x) => {
|
|
1067
|
+
const N = n(x);
|
|
1068
|
+
return /* @__PURE__ */ d($e, { hover: h, selected: N === t, onClick: () => b(x), children: a.map((v) => /* @__PURE__ */ d(
|
|
1069
|
+
Fe,
|
|
837
1070
|
{
|
|
838
|
-
...
|
|
839
|
-
children:
|
|
1071
|
+
...v.dataProps,
|
|
1072
|
+
children: v.dataCell(x)
|
|
840
1073
|
},
|
|
841
|
-
`${
|
|
842
|
-
)) },
|
|
1074
|
+
`${N}-${v.key}`
|
|
1075
|
+
)) }, N);
|
|
843
1076
|
}) })
|
|
844
1077
|
] }) })
|
|
845
1078
|
] });
|
|
846
1079
|
}
|
|
847
|
-
const
|
|
1080
|
+
const vr = X("div")(({ theme: e }) => ({
|
|
848
1081
|
borderBottom: "1px solid",
|
|
849
1082
|
borderColor: e.palette.divider
|
|
850
|
-
})),
|
|
851
|
-
[`& .${
|
|
1083
|
+
})), Zt = X(vn)(({ theme: e }) => ({
|
|
1084
|
+
[`& .${Ie.grouped}`]: {
|
|
852
1085
|
margin: e.spacing(0.5),
|
|
853
1086
|
padding: e.spacing(1.25),
|
|
854
1087
|
minWidth: 24,
|
|
855
1088
|
color: e.palette.action.active,
|
|
856
1089
|
border: 0,
|
|
857
1090
|
borderRadius: e.shape.borderRadius,
|
|
858
|
-
[`&.${
|
|
1091
|
+
[`&.${Ie.disabled}`]: {
|
|
859
1092
|
border: 0
|
|
860
1093
|
}
|
|
861
1094
|
}
|
|
@@ -863,225 +1096,225 @@ const Lt = U("div")(({ theme: e }) => ({
|
|
|
863
1096
|
// marginLeft: -1,
|
|
864
1097
|
// borderLeft: '1px solid transparent',
|
|
865
1098
|
// },
|
|
866
|
-
})),
|
|
867
|
-
[`& .${
|
|
1099
|
+
})), Vt = X(Nn)(({ theme: e }) => ({
|
|
1100
|
+
[`& .${le.grouped}`]: {
|
|
868
1101
|
margin: e.spacing(0.5),
|
|
869
1102
|
padding: e.spacing(1.25),
|
|
870
1103
|
minWidth: 24,
|
|
871
1104
|
color: e.palette.action.active,
|
|
872
1105
|
border: 0,
|
|
873
1106
|
borderRadius: e.shape.borderRadius,
|
|
874
|
-
[`&.${
|
|
1107
|
+
[`&.${le.disabled}`]: {
|
|
875
1108
|
border: 0
|
|
876
1109
|
}
|
|
877
1110
|
},
|
|
878
|
-
[`& .${
|
|
1111
|
+
[`& .${le.middleButton},& .${le.lastButton}`]: {
|
|
879
1112
|
marginLeft: -1,
|
|
880
1113
|
borderLeft: "1px solid transparent"
|
|
881
1114
|
}
|
|
882
1115
|
}));
|
|
883
|
-
function
|
|
1116
|
+
function qe({
|
|
884
1117
|
onClick: e,
|
|
885
|
-
icon:
|
|
886
|
-
text:
|
|
887
|
-
size:
|
|
888
|
-
variant:
|
|
889
|
-
color:
|
|
890
|
-
tooltip:
|
|
891
|
-
ariaLabel:
|
|
892
|
-
children:
|
|
893
|
-
disabled:
|
|
1118
|
+
icon: n = void 0,
|
|
1119
|
+
text: t = void 0,
|
|
1120
|
+
size: r = "small",
|
|
1121
|
+
variant: a = void 0,
|
|
1122
|
+
color: s = "inherit",
|
|
1123
|
+
tooltip: u = void 0,
|
|
1124
|
+
ariaLabel: l = void 0,
|
|
1125
|
+
children: i = void 0,
|
|
1126
|
+
disabled: o = !1
|
|
894
1127
|
}) {
|
|
895
|
-
return
|
|
896
|
-
|
|
1128
|
+
return i ? /* @__PURE__ */ d(
|
|
1129
|
+
jt,
|
|
897
1130
|
{
|
|
898
|
-
size: typeof
|
|
899
|
-
variant:
|
|
900
|
-
color:
|
|
901
|
-
startIcon:
|
|
902
|
-
text:
|
|
903
|
-
disabled:
|
|
904
|
-
children:
|
|
1131
|
+
size: typeof r == "string" ? r : "small",
|
|
1132
|
+
variant: a,
|
|
1133
|
+
color: s,
|
|
1134
|
+
startIcon: n,
|
|
1135
|
+
text: t,
|
|
1136
|
+
disabled: o,
|
|
1137
|
+
children: i
|
|
905
1138
|
}
|
|
906
|
-
) :
|
|
907
|
-
|
|
1139
|
+
) : t ? /* @__PURE__ */ j(
|
|
1140
|
+
ce,
|
|
908
1141
|
{
|
|
909
|
-
size: typeof
|
|
910
|
-
variant:
|
|
911
|
-
color:
|
|
912
|
-
"aria-label":
|
|
1142
|
+
size: typeof r == "string" ? r : "small",
|
|
1143
|
+
variant: a,
|
|
1144
|
+
color: s,
|
|
1145
|
+
"aria-label": l,
|
|
913
1146
|
onClick: e,
|
|
914
|
-
startIcon:
|
|
915
|
-
disabled:
|
|
1147
|
+
startIcon: n,
|
|
1148
|
+
disabled: o,
|
|
916
1149
|
children: [
|
|
917
|
-
|
|
918
|
-
!
|
|
1150
|
+
u && /* @__PURE__ */ d(ue, { placement: "bottom-start", title: u, children: /* @__PURE__ */ d("span", { children: t }) }),
|
|
1151
|
+
!u && t
|
|
919
1152
|
]
|
|
920
1153
|
}
|
|
921
|
-
) : /* @__PURE__ */
|
|
922
|
-
|
|
1154
|
+
) : /* @__PURE__ */ j(
|
|
1155
|
+
ce,
|
|
923
1156
|
{
|
|
924
|
-
size: typeof
|
|
925
|
-
variant:
|
|
926
|
-
color:
|
|
927
|
-
"aria-label":
|
|
1157
|
+
size: typeof r == "string" ? r : "small",
|
|
1158
|
+
variant: a,
|
|
1159
|
+
color: s,
|
|
1160
|
+
"aria-label": l,
|
|
928
1161
|
onClick: e,
|
|
929
|
-
disabled:
|
|
1162
|
+
disabled: o,
|
|
930
1163
|
sx: {
|
|
931
|
-
height: typeof
|
|
932
|
-
width: typeof
|
|
1164
|
+
height: typeof r == "number" ? `${r}px` : void 0,
|
|
1165
|
+
width: typeof r == "number" ? `${r}px` : void 0
|
|
933
1166
|
},
|
|
934
1167
|
children: [
|
|
935
|
-
|
|
936
|
-
!
|
|
1168
|
+
u && /* @__PURE__ */ d(ue, { placement: "bottom-start", title: u, children: /* @__PURE__ */ d("span", { children: n }) }),
|
|
1169
|
+
!u && n
|
|
937
1170
|
]
|
|
938
1171
|
}
|
|
939
1172
|
);
|
|
940
1173
|
}
|
|
941
|
-
function
|
|
1174
|
+
function er({
|
|
942
1175
|
buttons: e,
|
|
943
|
-
size:
|
|
944
|
-
ariaLabel:
|
|
945
|
-
orientation:
|
|
1176
|
+
size: n = "small",
|
|
1177
|
+
ariaLabel: t = void 0,
|
|
1178
|
+
orientation: r = "horizontal"
|
|
946
1179
|
}) {
|
|
947
|
-
return /* @__PURE__ */
|
|
948
|
-
|
|
1180
|
+
return /* @__PURE__ */ d(Vt, { size: n, "aria-label": t, orientation: r, children: e.map((a, s) => /* @__PURE__ */ d(
|
|
1181
|
+
qe,
|
|
949
1182
|
{
|
|
950
|
-
onClick:
|
|
951
|
-
icon:
|
|
952
|
-
text:
|
|
953
|
-
size:
|
|
954
|
-
variant:
|
|
955
|
-
color:
|
|
956
|
-
tooltip:
|
|
957
|
-
ariaLabel:
|
|
958
|
-
disabled:
|
|
959
|
-
children:
|
|
1183
|
+
onClick: a.onClick,
|
|
1184
|
+
icon: a.icon,
|
|
1185
|
+
text: a.text,
|
|
1186
|
+
size: a.size,
|
|
1187
|
+
variant: a.variant,
|
|
1188
|
+
color: a.color,
|
|
1189
|
+
tooltip: a.tooltip,
|
|
1190
|
+
ariaLabel: a.ariaLabel,
|
|
1191
|
+
disabled: a.disabled,
|
|
1192
|
+
children: a.children
|
|
960
1193
|
},
|
|
961
|
-
|
|
1194
|
+
s
|
|
962
1195
|
)) });
|
|
963
1196
|
}
|
|
964
|
-
function
|
|
1197
|
+
function nr({
|
|
965
1198
|
value: e,
|
|
966
|
-
onChange:
|
|
967
|
-
size:
|
|
968
|
-
ariaLabel:
|
|
969
|
-
exclusive:
|
|
970
|
-
buttons:
|
|
971
|
-
orientation:
|
|
1199
|
+
onChange: n,
|
|
1200
|
+
size: t = "small",
|
|
1201
|
+
ariaLabel: r = void 0,
|
|
1202
|
+
exclusive: a = void 0,
|
|
1203
|
+
buttons: s,
|
|
1204
|
+
orientation: u = "horizontal"
|
|
972
1205
|
}) {
|
|
973
|
-
return /* @__PURE__ */
|
|
974
|
-
|
|
1206
|
+
return /* @__PURE__ */ d(
|
|
1207
|
+
Zt,
|
|
975
1208
|
{
|
|
976
|
-
size:
|
|
1209
|
+
size: t,
|
|
977
1210
|
value: e,
|
|
978
|
-
onChange: (
|
|
979
|
-
"aria-label":
|
|
980
|
-
exclusive:
|
|
981
|
-
orientation:
|
|
982
|
-
children:
|
|
983
|
-
|
|
1211
|
+
onChange: (l, i) => n(i),
|
|
1212
|
+
"aria-label": r,
|
|
1213
|
+
exclusive: a,
|
|
1214
|
+
orientation: u,
|
|
1215
|
+
children: s.map((l, i) => /* @__PURE__ */ j(
|
|
1216
|
+
Sn,
|
|
984
1217
|
{
|
|
985
|
-
size: typeof
|
|
986
|
-
value:
|
|
987
|
-
"aria-label":
|
|
1218
|
+
size: typeof t == "string" ? t : "small",
|
|
1219
|
+
value: l.value,
|
|
1220
|
+
"aria-label": l.ariaLabel,
|
|
988
1221
|
sx: {
|
|
989
|
-
height: typeof
|
|
990
|
-
width: typeof
|
|
991
|
-
padding:
|
|
992
|
-
margin:
|
|
1222
|
+
height: typeof t == "number" ? `${t}px` : void 0,
|
|
1223
|
+
width: typeof t == "number" ? `${t}px` : void 0,
|
|
1224
|
+
padding: l.size === "small" || typeof t == "number" ? 1 : void 0,
|
|
1225
|
+
margin: l.size === "small" || typeof t == "number" ? 0 : void 0
|
|
993
1226
|
},
|
|
994
|
-
disabled:
|
|
1227
|
+
disabled: l.disabled,
|
|
995
1228
|
children: [
|
|
996
|
-
|
|
997
|
-
!
|
|
1229
|
+
l.tooltip && /* @__PURE__ */ d(ue, { placement: "bottom-start", title: l.tooltip, children: /* @__PURE__ */ d("span", { children: l.icon }) }),
|
|
1230
|
+
!l.tooltip && l.icon
|
|
998
1231
|
]
|
|
999
1232
|
},
|
|
1000
|
-
|
|
1233
|
+
i
|
|
1001
1234
|
))
|
|
1002
1235
|
}
|
|
1003
1236
|
);
|
|
1004
1237
|
}
|
|
1005
|
-
function
|
|
1238
|
+
function Nr({
|
|
1006
1239
|
items: e,
|
|
1007
|
-
height:
|
|
1008
|
-
width:
|
|
1009
|
-
justifyContent:
|
|
1010
|
-
borderSize:
|
|
1011
|
-
padding:
|
|
1012
|
-
backgroundColor:
|
|
1013
|
-
orientation:
|
|
1240
|
+
height: n = 34,
|
|
1241
|
+
width: t = 34,
|
|
1242
|
+
justifyContent: r = "left",
|
|
1243
|
+
borderSize: a = 1,
|
|
1244
|
+
padding: s = 1,
|
|
1245
|
+
backgroundColor: u = void 0,
|
|
1246
|
+
orientation: l = "horizontal"
|
|
1014
1247
|
}) {
|
|
1015
|
-
return /* @__PURE__ */
|
|
1016
|
-
|
|
1248
|
+
return /* @__PURE__ */ d(
|
|
1249
|
+
Cn,
|
|
1017
1250
|
{
|
|
1018
1251
|
elevation: 0,
|
|
1019
1252
|
sx: {
|
|
1020
1253
|
display: "flex",
|
|
1021
1254
|
alignItems: "center",
|
|
1022
|
-
justifyContent:
|
|
1023
|
-
border: (
|
|
1255
|
+
justifyContent: r,
|
|
1256
|
+
border: (i) => `${a}px solid ${i.palette.divider}`,
|
|
1024
1257
|
flexWrap: "wrap",
|
|
1025
|
-
height:
|
|
1026
|
-
minHeight:
|
|
1027
|
-
width:
|
|
1028
|
-
minWidth:
|
|
1029
|
-
paddingLeft:
|
|
1030
|
-
paddingRight:
|
|
1031
|
-
paddingTop:
|
|
1032
|
-
paddingBottom:
|
|
1258
|
+
height: l === "horizontal" ? `${n}px` : "100%",
|
|
1259
|
+
minHeight: l === "horizontal" ? `${n}px` : void 0,
|
|
1260
|
+
width: l === "vertical" ? `${t}px` : "100%",
|
|
1261
|
+
minWidth: l === "vertical" ? `${t}px` : void 0,
|
|
1262
|
+
paddingLeft: l === "horizontal" ? s : 0,
|
|
1263
|
+
paddingRight: l === "horizontal" ? s : 0,
|
|
1264
|
+
paddingTop: l === "vertical" ? s : 0,
|
|
1265
|
+
paddingBottom: l === "vertical" ? s : 0,
|
|
1033
1266
|
borderRadius: "0px",
|
|
1034
|
-
backgroundColor:
|
|
1267
|
+
backgroundColor: u
|
|
1035
1268
|
},
|
|
1036
|
-
children: e.map((
|
|
1269
|
+
children: e.map((i, o) => i.label ? (
|
|
1037
1270
|
// eslint-disable-next-line react/no-array-index-key
|
|
1038
|
-
/* @__PURE__ */
|
|
1039
|
-
) :
|
|
1040
|
-
|
|
1271
|
+
/* @__PURE__ */ d(Pe, { variant: i.label.variant, component: "div", children: i.label.text }, o)
|
|
1272
|
+
) : i.toggleButtonGroup ? /* @__PURE__ */ d(
|
|
1273
|
+
nr,
|
|
1041
1274
|
{
|
|
1042
|
-
value:
|
|
1043
|
-
onChange:
|
|
1044
|
-
ariaLabel:
|
|
1045
|
-
exclusive:
|
|
1046
|
-
buttons:
|
|
1047
|
-
orientation:
|
|
1275
|
+
value: i.toggleButtonGroup.value,
|
|
1276
|
+
onChange: i.toggleButtonGroup.onChange,
|
|
1277
|
+
ariaLabel: i.toggleButtonGroup.ariaLabel,
|
|
1278
|
+
exclusive: i.toggleButtonGroup.exclusive,
|
|
1279
|
+
buttons: i.toggleButtonGroup.buttons,
|
|
1280
|
+
orientation: l
|
|
1048
1281
|
},
|
|
1049
|
-
|
|
1050
|
-
) :
|
|
1051
|
-
|
|
1282
|
+
o
|
|
1283
|
+
) : i.button ? /* @__PURE__ */ d(
|
|
1284
|
+
qe,
|
|
1052
1285
|
{
|
|
1053
|
-
onClick:
|
|
1054
|
-
icon:
|
|
1055
|
-
text:
|
|
1056
|
-
variant:
|
|
1057
|
-
color:
|
|
1058
|
-
tooltip:
|
|
1059
|
-
ariaLabel:
|
|
1060
|
-
disabled:
|
|
1286
|
+
onClick: i.button.onClick,
|
|
1287
|
+
icon: i.button.icon,
|
|
1288
|
+
text: i.button.text,
|
|
1289
|
+
variant: i.button.variant,
|
|
1290
|
+
color: i.button.color,
|
|
1291
|
+
tooltip: i.button.tooltip,
|
|
1292
|
+
ariaLabel: i.button.ariaLabel,
|
|
1293
|
+
disabled: i.button.disabled
|
|
1061
1294
|
},
|
|
1062
|
-
|
|
1063
|
-
) :
|
|
1295
|
+
o
|
|
1296
|
+
) : i.buttonGroup ? (
|
|
1064
1297
|
// eslint-disable-next-line react/no-array-index-key
|
|
1065
|
-
/* @__PURE__ */
|
|
1066
|
-
|
|
1298
|
+
/* @__PURE__ */ d(
|
|
1299
|
+
er,
|
|
1067
1300
|
{
|
|
1068
|
-
ariaLabel:
|
|
1069
|
-
buttons:
|
|
1070
|
-
orientation:
|
|
1301
|
+
ariaLabel: i.buttonGroup.ariaLabel,
|
|
1302
|
+
buttons: i.buttonGroup.buttons,
|
|
1303
|
+
orientation: l
|
|
1071
1304
|
},
|
|
1072
|
-
|
|
1305
|
+
o
|
|
1073
1306
|
)
|
|
1074
|
-
) :
|
|
1307
|
+
) : i.other)
|
|
1075
1308
|
}
|
|
1076
1309
|
);
|
|
1077
1310
|
}
|
|
1078
|
-
function
|
|
1079
|
-
const [
|
|
1080
|
-
(
|
|
1081
|
-
e.length !== 0 && (
|
|
1082
|
-
|
|
1083
|
-
mouseX:
|
|
1084
|
-
mouseY:
|
|
1311
|
+
function Cr({ options: e, onSelect: n, children: t = void 0 }) {
|
|
1312
|
+
const [r, a] = me.useState(null), s = $(
|
|
1313
|
+
(i) => {
|
|
1314
|
+
e.length !== 0 && (i.preventDefault(), a(
|
|
1315
|
+
r === null ? {
|
|
1316
|
+
mouseX: i.clientX + 2,
|
|
1317
|
+
mouseY: i.clientY - 6
|
|
1085
1318
|
} : (
|
|
1086
1319
|
// repeated contextmenu when it is already open closes it with Chrome 84 on Ubuntu
|
|
1087
1320
|
// Other native context menus might behave different.
|
|
@@ -1090,433 +1323,433 @@ function Bt({ options: e, onSelect: t, children: r = void 0 }) {
|
|
|
1090
1323
|
)
|
|
1091
1324
|
));
|
|
1092
1325
|
},
|
|
1093
|
-
[
|
|
1094
|
-
),
|
|
1095
|
-
|
|
1096
|
-
}, []),
|
|
1097
|
-
(
|
|
1098
|
-
|
|
1326
|
+
[r, e.length]
|
|
1327
|
+
), u = $(() => {
|
|
1328
|
+
a(null);
|
|
1329
|
+
}, []), l = $(
|
|
1330
|
+
(i) => {
|
|
1331
|
+
n(i), u();
|
|
1099
1332
|
},
|
|
1100
|
-
[
|
|
1333
|
+
[u, n]
|
|
1101
1334
|
);
|
|
1102
|
-
return /* @__PURE__ */
|
|
1103
|
-
|
|
1104
|
-
/* @__PURE__ */
|
|
1105
|
-
|
|
1335
|
+
return /* @__PURE__ */ j("div", { onContextMenu: s, style: { cursor: "context-menu" }, children: [
|
|
1336
|
+
t,
|
|
1337
|
+
/* @__PURE__ */ d(
|
|
1338
|
+
$n,
|
|
1106
1339
|
{
|
|
1107
|
-
open:
|
|
1108
|
-
onClose:
|
|
1340
|
+
open: r !== null,
|
|
1341
|
+
onClose: u,
|
|
1109
1342
|
anchorReference: "anchorPosition",
|
|
1110
|
-
anchorPosition:
|
|
1111
|
-
children: e.map((
|
|
1112
|
-
|
|
1113
|
-
/* @__PURE__ */
|
|
1114
|
-
|
|
1115
|
-
] },
|
|
1343
|
+
anchorPosition: r !== null ? { top: r.mouseY, left: r.mouseX } : void 0,
|
|
1344
|
+
children: e.map((i) => /* @__PURE__ */ j(pe, { onClick: () => l(i.value), children: [
|
|
1345
|
+
i.icon && /* @__PURE__ */ d(Fn, { children: i.icon }),
|
|
1346
|
+
/* @__PURE__ */ d(ye, { children: i.displayText }),
|
|
1347
|
+
i.shortcut && /* @__PURE__ */ d(ye, { sx: { pl: 2, textAlign: "right" }, children: i.shortcut })
|
|
1348
|
+
] }, i.value))
|
|
1116
1349
|
}
|
|
1117
1350
|
)
|
|
1118
1351
|
] });
|
|
1119
1352
|
}
|
|
1120
|
-
function
|
|
1353
|
+
function tr({
|
|
1121
1354
|
canIdentifier: e,
|
|
1122
|
-
canIdentifierType:
|
|
1123
|
-
onCanIdentifierChange:
|
|
1124
|
-
onErrorsChange:
|
|
1125
|
-
hideSection:
|
|
1126
|
-
disabled:
|
|
1127
|
-
collapsible:
|
|
1128
|
-
collapsed:
|
|
1129
|
-
collapsedChange:
|
|
1355
|
+
canIdentifierType: n,
|
|
1356
|
+
onCanIdentifierChange: t,
|
|
1357
|
+
onErrorsChange: r = void 0,
|
|
1358
|
+
hideSection: a = !1,
|
|
1359
|
+
disabled: s = !1,
|
|
1360
|
+
collapsible: u = !1,
|
|
1361
|
+
collapsed: l = !1,
|
|
1362
|
+
collapsedChange: i = void 0
|
|
1130
1363
|
}) {
|
|
1131
|
-
const
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
}, [b,
|
|
1135
|
-
const [v,
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
}, [
|
|
1139
|
-
const
|
|
1140
|
-
|
|
1141
|
-
}, []),
|
|
1142
|
-
(
|
|
1143
|
-
let
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
if (Number.isNaN(
|
|
1147
|
-
return
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
if (Number.isNaN(N) || N < 0 || N > 2047)
|
|
1152
|
-
return r(p, v), { val: p, err: !0 };
|
|
1153
|
-
i = `${N.toString(m).toUpperCase()}`;
|
|
1154
|
-
}
|
|
1155
|
-
return r(i, v), { val: p, err: !1 };
|
|
1364
|
+
const o = re(), h = fe(), [b, x] = B(!1);
|
|
1365
|
+
P(() => {
|
|
1366
|
+
r && r(b);
|
|
1367
|
+
}, [b, r]);
|
|
1368
|
+
const [N, v] = B(!1), [f, I] = B(n);
|
|
1369
|
+
P(() => {
|
|
1370
|
+
I(n);
|
|
1371
|
+
}, [n]);
|
|
1372
|
+
const w = $((c) => {
|
|
1373
|
+
I(c ? "extended" : "standard");
|
|
1374
|
+
}, []), C = $(
|
|
1375
|
+
(c) => {
|
|
1376
|
+
let F = c;
|
|
1377
|
+
const _ = parseInt(F, F.startsWith("0x") ? 16 : h);
|
|
1378
|
+
if (f === "extended") {
|
|
1379
|
+
if (Number.isNaN(_) || _ < 0 || _ > 536870911)
|
|
1380
|
+
return Number.isNaN(_) || t(`${_.toString(h).toUpperCase()}`, f), { val: c, err: !0 };
|
|
1381
|
+
} else if (f === "standard" && (Number.isNaN(_) || _ < 0 || _ > 2047))
|
|
1382
|
+
return Number.isNaN(_) || t(`${_.toString(h).toUpperCase()}`, f), { val: c, err: !0 };
|
|
1383
|
+
return t(`${_.toString(h).toUpperCase()}`, f), v(F.startsWith("0x")), { val: c, err: !1 };
|
|
1156
1384
|
},
|
|
1157
|
-
[
|
|
1158
|
-
),
|
|
1159
|
-
(
|
|
1160
|
-
if (
|
|
1161
|
-
let
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
(Number.isNaN(N) || N < 0 || N > 2047) && (i = !0);
|
|
1165
|
-
} else if (p === "extended") {
|
|
1166
|
-
const N = parseInt($, m);
|
|
1167
|
-
(Number.isNaN(N) || N < 0 || N > 536870911) && (i = !0);
|
|
1168
|
-
}
|
|
1169
|
-
r($, p), g(i);
|
|
1385
|
+
[f, h, t]
|
|
1386
|
+
), S = $(
|
|
1387
|
+
(c) => {
|
|
1388
|
+
if (c !== f) {
|
|
1389
|
+
let F = !1;
|
|
1390
|
+
const _ = parseInt(e, e.startsWith("0x") ? 16 : h);
|
|
1391
|
+
c === "standard" ? (Number.isNaN(_) || _ < 0 || _ > 2047) && (F = !0) : c === "extended" && (Number.isNaN(_) || _ < 0 || _ > 536870911) && (F = !0), t(e, c), x(F);
|
|
1170
1392
|
}
|
|
1171
1393
|
},
|
|
1172
|
-
[
|
|
1173
|
-
),
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1394
|
+
[f, e, t, h]
|
|
1395
|
+
), g = W(() => {
|
|
1396
|
+
const c = parseInt(e, e.startsWith("0x") ? 16 : h);
|
|
1397
|
+
return N ? `0x${c.toString(16).toUpperCase()}` : c.toString(h).toUpperCase();
|
|
1398
|
+
}, [N, e, h]), p = W(
|
|
1399
|
+
() => /* @__PURE__ */ j(be, { spacing: 4, children: [
|
|
1400
|
+
/* @__PURE__ */ d(
|
|
1401
|
+
ee,
|
|
1177
1402
|
{
|
|
1178
1403
|
id: "constant-id",
|
|
1179
1404
|
fullWidth: !0,
|
|
1180
|
-
value:
|
|
1181
|
-
onBlur: I,
|
|
1405
|
+
value: g,
|
|
1182
1406
|
error: b,
|
|
1183
|
-
|
|
1184
|
-
|
|
1407
|
+
onValidate: C,
|
|
1408
|
+
onErrorChange: x,
|
|
1409
|
+
disabled: s
|
|
1185
1410
|
}
|
|
1186
1411
|
),
|
|
1187
|
-
/* @__PURE__ */
|
|
1188
|
-
|
|
1412
|
+
/* @__PURE__ */ d(
|
|
1413
|
+
Ue,
|
|
1189
1414
|
{
|
|
1190
1415
|
id: "id-type",
|
|
1191
|
-
label:
|
|
1192
|
-
checked:
|
|
1193
|
-
onChange: (
|
|
1194
|
-
|
|
1416
|
+
label: o.getString("LabelUseExtendedIdentifier"),
|
|
1417
|
+
checked: f === "extended",
|
|
1418
|
+
onChange: (c) => {
|
|
1419
|
+
w(c), S(c ? "extended" : "standard");
|
|
1195
1420
|
},
|
|
1196
|
-
disabled:
|
|
1421
|
+
disabled: s
|
|
1197
1422
|
}
|
|
1198
1423
|
)
|
|
1199
1424
|
] }),
|
|
1200
|
-
[
|
|
1201
|
-
e,
|
|
1202
|
-
v,
|
|
1203
|
-
l,
|
|
1204
|
-
b,
|
|
1205
|
-
d,
|
|
1206
|
-
y,
|
|
1207
|
-
I
|
|
1208
|
-
]
|
|
1425
|
+
[g, f, s, b, o, S, C]
|
|
1209
1426
|
);
|
|
1210
|
-
return
|
|
1211
|
-
|
|
1427
|
+
return a ? p : /* @__PURE__ */ d(
|
|
1428
|
+
Ne,
|
|
1212
1429
|
{
|
|
1213
|
-
text:
|
|
1430
|
+
text: o.getString("LabelCanIdentifier"),
|
|
1214
1431
|
summary: e,
|
|
1215
|
-
collapsible:
|
|
1216
|
-
collapsed:
|
|
1217
|
-
collapsedChange:
|
|
1218
|
-
children:
|
|
1432
|
+
collapsible: u,
|
|
1433
|
+
collapsed: l,
|
|
1434
|
+
collapsedChange: i,
|
|
1435
|
+
children: p
|
|
1219
1436
|
}
|
|
1220
1437
|
);
|
|
1221
1438
|
}
|
|
1222
|
-
function
|
|
1439
|
+
function Sr({
|
|
1223
1440
|
frame: e,
|
|
1224
|
-
onFrameChange:
|
|
1225
|
-
onErrorsChange:
|
|
1441
|
+
onFrameChange: n,
|
|
1442
|
+
onErrorsChange: t = void 0,
|
|
1443
|
+
hideSection: r = !1,
|
|
1226
1444
|
collapsible: a = !1,
|
|
1227
|
-
collapsed:
|
|
1228
|
-
collapsedChange:
|
|
1445
|
+
collapsed: s = !1,
|
|
1446
|
+
collapsedChange: u = void 0
|
|
1229
1447
|
}) {
|
|
1230
|
-
var
|
|
1231
|
-
const
|
|
1448
|
+
var b;
|
|
1449
|
+
const l = fe(), i = W(
|
|
1232
1450
|
() => {
|
|
1233
|
-
var
|
|
1234
|
-
return ((
|
|
1451
|
+
var x, N;
|
|
1452
|
+
return ((N = (x = e.canFrameFlags) == null ? void 0 : x.flags) == null ? void 0 : N.includes(G.CAN_FRAME_FLAG_EXT)) === !0 ? "extended" : "standard";
|
|
1235
1453
|
},
|
|
1236
|
-
[(
|
|
1237
|
-
),
|
|
1238
|
-
(
|
|
1239
|
-
var
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
const
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
const x = { ...e };
|
|
1247
|
-
x.id = v, x.canFrameFlags = C, t(x);
|
|
1454
|
+
[(b = e.canFrameFlags) == null ? void 0 : b.flags]
|
|
1455
|
+
), o = W(() => `${(e.id ?? 0).toString(l).toUpperCase()}`, [i, e.id, l]), h = $(
|
|
1456
|
+
(x, N) => {
|
|
1457
|
+
var C;
|
|
1458
|
+
const v = parseInt(x, x.startsWith("0x") ? 16 : l), f = (C = e.canFrameFlags) != null && C.flags ? { flags: [...e.canFrameFlags.flags] } : { flags: [] }, I = f.flags.indexOf(G.CAN_FRAME_FLAG_STD);
|
|
1459
|
+
I !== -1 && f.flags.splice(I, 1);
|
|
1460
|
+
const w = f.flags.indexOf(G.CAN_FRAME_FLAG_EXT);
|
|
1461
|
+
if (w !== -1 && f.flags.splice(w, 1), N === "extended" ? f.flags.push(G.CAN_FRAME_FLAG_EXT) : N === "standard" && f.flags.push(G.CAN_FRAME_FLAG_STD), v !== e.id || !xe(f, e.canFrameFlags)) {
|
|
1462
|
+
const S = { ...e };
|
|
1463
|
+
S.id = v, S.canFrameFlags = f, n(S);
|
|
1248
1464
|
}
|
|
1249
1465
|
},
|
|
1250
|
-
[e,
|
|
1466
|
+
[e, l, n]
|
|
1251
1467
|
);
|
|
1252
|
-
return /* @__PURE__ */
|
|
1253
|
-
|
|
1468
|
+
return /* @__PURE__ */ d(
|
|
1469
|
+
tr,
|
|
1254
1470
|
{
|
|
1255
|
-
canIdentifier:
|
|
1256
|
-
canIdentifierType:
|
|
1257
|
-
onCanIdentifierChange:
|
|
1258
|
-
onErrorsChange:
|
|
1471
|
+
canIdentifier: o,
|
|
1472
|
+
canIdentifierType: i,
|
|
1473
|
+
onCanIdentifierChange: h,
|
|
1474
|
+
onErrorsChange: t,
|
|
1475
|
+
hideSection: r,
|
|
1259
1476
|
collapsible: a,
|
|
1260
|
-
collapsed:
|
|
1261
|
-
collapsedChange:
|
|
1477
|
+
collapsed: s,
|
|
1478
|
+
collapsedChange: u
|
|
1262
1479
|
}
|
|
1263
1480
|
);
|
|
1264
1481
|
}
|
|
1265
|
-
function
|
|
1482
|
+
function rr({
|
|
1266
1483
|
canIdentifier: e,
|
|
1267
|
-
identifierGeneratorType:
|
|
1268
|
-
minCanIdentifier:
|
|
1269
|
-
maxCanIdentifier:
|
|
1270
|
-
canIdentifierType:
|
|
1271
|
-
onChange:
|
|
1272
|
-
onErrorsChange:
|
|
1273
|
-
canIdentifierGeneratorSettingsError:
|
|
1274
|
-
disabled:
|
|
1275
|
-
collapsible:
|
|
1276
|
-
collapsed:
|
|
1277
|
-
collapsedChange: b = void 0
|
|
1484
|
+
identifierGeneratorType: n,
|
|
1485
|
+
minCanIdentifier: t,
|
|
1486
|
+
maxCanIdentifier: r,
|
|
1487
|
+
canIdentifierType: a,
|
|
1488
|
+
onChange: s,
|
|
1489
|
+
onErrorsChange: u = void 0,
|
|
1490
|
+
canIdentifierGeneratorSettingsError: l = void 0,
|
|
1491
|
+
disabled: i = !1,
|
|
1492
|
+
collapsible: o = !1,
|
|
1493
|
+
collapsed: h = !1,
|
|
1494
|
+
collapsedChange: b = void 0,
|
|
1495
|
+
showSelectMessageDialogChange: x,
|
|
1496
|
+
showSignalValuesTable: N
|
|
1278
1497
|
}) {
|
|
1279
|
-
const
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
}, [
|
|
1283
|
-
const
|
|
1284
|
-
|
|
1285
|
-
}, []),
|
|
1498
|
+
const v = re(), f = fe(), [I, w] = B(!1), [C, S] = B(!1), [g, p] = B(!1), [c, F] = B(!1), [_, z] = B(!1), [K, O] = B(!1), [E, q] = B(a);
|
|
1499
|
+
P(() => {
|
|
1500
|
+
q(a);
|
|
1501
|
+
}, [a]);
|
|
1502
|
+
const Y = $((M) => {
|
|
1503
|
+
q(M ? "extended" : "standard");
|
|
1504
|
+
}, []), H = $(
|
|
1286
1505
|
(M) => {
|
|
1287
|
-
let
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
if (Number.isNaN(
|
|
1291
|
-
return
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
}
|
|
1299
|
-
|
|
1506
|
+
let k = M;
|
|
1507
|
+
const L = parseInt(k, k.startsWith("0x") ? 16 : f);
|
|
1508
|
+
if (E === "extended") {
|
|
1509
|
+
if (Number.isNaN(L) || L < 0 || L > 536870911)
|
|
1510
|
+
return Number.isNaN(L) || s(
|
|
1511
|
+
`${L.toString(f).toUpperCase()}`,
|
|
1512
|
+
n,
|
|
1513
|
+
t,
|
|
1514
|
+
r,
|
|
1515
|
+
E
|
|
1516
|
+
), { val: M, err: !0 };
|
|
1517
|
+
} else if (E === "standard" && (Number.isNaN(L) || L < 0 || L > 2047))
|
|
1518
|
+
return Number.isNaN(L) || s(
|
|
1519
|
+
`${L.toString(f).toUpperCase()}`,
|
|
1520
|
+
n,
|
|
1521
|
+
t,
|
|
1522
|
+
r,
|
|
1523
|
+
E
|
|
1524
|
+
), { val: M, err: !0 };
|
|
1525
|
+
return s(
|
|
1526
|
+
`${L.toString(f).toUpperCase()}`,
|
|
1527
|
+
n,
|
|
1528
|
+
t,
|
|
1529
|
+
r,
|
|
1530
|
+
E
|
|
1531
|
+
), F(k.startsWith("0x")), { val: M, err: !1 };
|
|
1300
1532
|
},
|
|
1301
|
-
[
|
|
1302
|
-
),
|
|
1303
|
-
(M,
|
|
1304
|
-
let
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
} else if (
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
h = `${F.toString(v).toUpperCase()}`;
|
|
1313
|
-
}
|
|
1314
|
-
return w(h), { val: h, err: !1, id: F };
|
|
1533
|
+
[E, n, r, t, f, s]
|
|
1534
|
+
), y = $(
|
|
1535
|
+
(M, k, L, D) => {
|
|
1536
|
+
let Q = M;
|
|
1537
|
+
const U = parseInt(Q, Q.startsWith("0x") ? 16 : f);
|
|
1538
|
+
if (k === "extended") {
|
|
1539
|
+
if (Number.isNaN(U) || U < 0 || U > 536870911)
|
|
1540
|
+
return Number.isNaN(U) || L(`${U.toString(f).toUpperCase()}`), { val: M, err: !0, id: U };
|
|
1541
|
+
} else if (k === "standard" && (Number.isNaN(U) || U < 0 || U > 2047))
|
|
1542
|
+
return Number.isNaN(U) || L(`${U.toString(f).toUpperCase()}`), { val: M, err: !0, id: U };
|
|
1543
|
+
return L(`${U.toString(f).toUpperCase()}`), D(Q.startsWith("0x")), { val: M, err: !1, id: U };
|
|
1315
1544
|
},
|
|
1316
|
-
[
|
|
1317
|
-
), T =
|
|
1545
|
+
[f]
|
|
1546
|
+
), T = $(
|
|
1318
1547
|
(M) => {
|
|
1319
|
-
const
|
|
1548
|
+
const k = y(
|
|
1320
1549
|
M,
|
|
1321
|
-
|
|
1322
|
-
(
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1550
|
+
E,
|
|
1551
|
+
(D) => s(e, n, D, r, E),
|
|
1552
|
+
(D) => z(D)
|
|
1553
|
+
), L = y(
|
|
1554
|
+
r,
|
|
1555
|
+
E,
|
|
1556
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1557
|
+
() => {
|
|
1558
|
+
},
|
|
1326
1559
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1327
1560
|
() => {
|
|
1328
1561
|
}
|
|
1329
1562
|
);
|
|
1330
|
-
return
|
|
1563
|
+
return k.id >= L.id ? k.err = !0 : L.err && p(L.err), { val: k.val, err: k.err };
|
|
1331
1564
|
},
|
|
1332
1565
|
[
|
|
1333
1566
|
e,
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1567
|
+
E,
|
|
1568
|
+
n,
|
|
1569
|
+
r,
|
|
1570
|
+
s,
|
|
1571
|
+
y
|
|
1339
1572
|
]
|
|
1340
|
-
),
|
|
1573
|
+
), m = $(
|
|
1341
1574
|
(M) => {
|
|
1342
|
-
const
|
|
1575
|
+
const k = y(
|
|
1343
1576
|
M,
|
|
1344
|
-
|
|
1345
|
-
(
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1577
|
+
E,
|
|
1578
|
+
(D) => s(e, n, t, D, E),
|
|
1579
|
+
(D) => O(D)
|
|
1580
|
+
), L = y(
|
|
1581
|
+
t,
|
|
1582
|
+
E,
|
|
1583
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1584
|
+
() => {
|
|
1585
|
+
},
|
|
1349
1586
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1350
1587
|
() => {
|
|
1351
1588
|
}
|
|
1352
1589
|
);
|
|
1353
|
-
return
|
|
1590
|
+
return L.id >= k.id ? k.err = !0 : L.err && S(L.err), { val: k.val, err: k.err };
|
|
1354
1591
|
},
|
|
1355
1592
|
[
|
|
1356
1593
|
e,
|
|
1357
|
-
|
|
1594
|
+
E,
|
|
1595
|
+
n,
|
|
1358
1596
|
t,
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
E
|
|
1597
|
+
s,
|
|
1598
|
+
y
|
|
1362
1599
|
]
|
|
1363
|
-
),
|
|
1600
|
+
), A = $(
|
|
1364
1601
|
(M) => {
|
|
1365
|
-
if (M !==
|
|
1366
|
-
let
|
|
1367
|
-
const
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1602
|
+
if (M !== E) {
|
|
1603
|
+
let k = !1, L = e;
|
|
1604
|
+
const D = parseInt(L, L.startsWith("0x") ? 16 : f);
|
|
1605
|
+
M === "standard" ? ((Number.isNaN(D) || D < 0 || D > 2047) && (k = !0), w(k)) : M === "extended" && ((Number.isNaN(D) || D < 0 || D > 536870911) && (k = !0), w(k));
|
|
1606
|
+
let Q = !1, U = t;
|
|
1607
|
+
const Z = parseInt(U, U.startsWith("0x") ? 16 : f);
|
|
1608
|
+
M === "standard" ? (Number.isNaN(Z) || Z < 0 || Z > 2047) && (Q = !0) : M === "extended" && (Number.isNaN(Z) || Z < 0 || Z > 536870911) && (Q = !0);
|
|
1609
|
+
let se = !1, Ce = r;
|
|
1610
|
+
const V = parseInt(Ce, Ce.startsWith("0x") ? 16 : f);
|
|
1611
|
+
M === "standard" ? (Number.isNaN(V) || V < 0 || V > 2047) && (se = !0) : M === "extended" && (Number.isNaN(V) || V < 0 || V > 536870911) && (se = !0), !Number.isNaN(Z) && !Number.isNaN(V) && Z >= V && (Q = !0, se = !0), S(Q), p(se), s(e, n, t, r, M);
|
|
1371
1612
|
}
|
|
1372
1613
|
},
|
|
1373
1614
|
[
|
|
1374
|
-
i,
|
|
1375
|
-
e,
|
|
1376
1615
|
E,
|
|
1377
|
-
|
|
1378
|
-
a,
|
|
1379
|
-
l,
|
|
1616
|
+
e,
|
|
1380
1617
|
t,
|
|
1381
|
-
|
|
1618
|
+
r,
|
|
1619
|
+
s,
|
|
1620
|
+
n,
|
|
1621
|
+
f
|
|
1382
1622
|
]
|
|
1383
|
-
),
|
|
1623
|
+
), R = $(
|
|
1384
1624
|
(M) => {
|
|
1385
|
-
|
|
1386
|
-
const w = E(r, i, () => {
|
|
1387
|
-
}), h = E(a, i, () => {
|
|
1388
|
-
});
|
|
1389
|
-
l(
|
|
1390
|
-
A,
|
|
1391
|
-
M,
|
|
1392
|
-
w.val,
|
|
1393
|
-
h.val,
|
|
1394
|
-
i
|
|
1395
|
-
);
|
|
1625
|
+
N(M === "constant"), s(e, M, t, r, E);
|
|
1396
1626
|
},
|
|
1397
|
-
[
|
|
1398
|
-
i,
|
|
1399
|
-
e,
|
|
1400
|
-
E,
|
|
1401
|
-
r,
|
|
1402
|
-
a,
|
|
1403
|
-
l,
|
|
1404
|
-
t,
|
|
1405
|
-
v
|
|
1406
|
-
]
|
|
1627
|
+
[E, e, t, r, s]
|
|
1407
1628
|
);
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
),
|
|
1629
|
+
P(() => {
|
|
1630
|
+
u && u(
|
|
1631
|
+
n === "constant" && I || (n === "random" || n === "scan") && (C || g)
|
|
1632
|
+
), l && (l.current = n === "constant" && I || (n === "random" || n === "scan") && (C || g));
|
|
1412
1633
|
}, [
|
|
1413
|
-
C,
|
|
1414
|
-
u,
|
|
1415
|
-
t,
|
|
1416
|
-
x,
|
|
1417
1634
|
I,
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1635
|
+
l,
|
|
1636
|
+
n,
|
|
1637
|
+
g,
|
|
1638
|
+
C,
|
|
1639
|
+
u
|
|
1640
|
+
]);
|
|
1641
|
+
const J = kt(), Ye = Wt(J), Je = W(() => {
|
|
1642
|
+
const M = parseInt(e, e.startsWith("0x") ? 16 : f);
|
|
1643
|
+
return c ? `0x${M.toString(16).toUpperCase()}` : M.toString(f).toUpperCase();
|
|
1644
|
+
}, [c, e, f]), Qe = W(() => {
|
|
1645
|
+
const M = parseInt(t, t.startsWith("0x") ? 16 : f);
|
|
1646
|
+
return _ ? `0x${M.toString(16).toUpperCase()}` : M.toString(f).toUpperCase();
|
|
1647
|
+
}, [_, t, f]), Ze = W(() => {
|
|
1648
|
+
const M = parseInt(r, r.startsWith("0x") ? 16 : f);
|
|
1649
|
+
return K ? `0x${M.toString(16).toUpperCase()}` : M.toString(f).toUpperCase();
|
|
1650
|
+
}, [K, r, f]);
|
|
1651
|
+
return /* @__PURE__ */ d(
|
|
1652
|
+
Ne,
|
|
1421
1653
|
{
|
|
1422
|
-
text:
|
|
1423
|
-
summary:
|
|
1424
|
-
collapsible:
|
|
1425
|
-
collapsed:
|
|
1654
|
+
text: v.getString("LabelCanIdentifier"),
|
|
1655
|
+
summary: n === "constant" ? e : n === "random" ? `${v.getString("LabelRandom")} ${t}-${r}` : `${v.getString("LabelScan")} ${t}-${r}`,
|
|
1656
|
+
collapsible: o,
|
|
1657
|
+
collapsed: h,
|
|
1426
1658
|
collapsedChange: b,
|
|
1427
|
-
children: /* @__PURE__ */
|
|
1428
|
-
|
|
1659
|
+
children: /* @__PURE__ */ j(
|
|
1660
|
+
Gt,
|
|
1429
1661
|
{
|
|
1430
1662
|
id: "identifier-radio-group",
|
|
1431
|
-
value:
|
|
1663
|
+
value: n,
|
|
1432
1664
|
onChange: (M) => {
|
|
1433
|
-
|
|
1665
|
+
R(M);
|
|
1434
1666
|
},
|
|
1435
1667
|
children: [
|
|
1436
|
-
/* @__PURE__ */
|
|
1437
|
-
/* @__PURE__ */
|
|
1438
|
-
|
|
1668
|
+
/* @__PURE__ */ j(be, { spacing: 4, children: [
|
|
1669
|
+
/* @__PURE__ */ d(
|
|
1670
|
+
ge,
|
|
1439
1671
|
{
|
|
1440
1672
|
id: "constant-id-radio",
|
|
1441
1673
|
value: "constant",
|
|
1442
|
-
label:
|
|
1674
|
+
label: v.getString("LabelConstantIdentifier"),
|
|
1443
1675
|
sx: { marginLeft: "-11px !important" },
|
|
1444
|
-
disabled:
|
|
1676
|
+
disabled: i
|
|
1445
1677
|
}
|
|
1446
1678
|
),
|
|
1447
|
-
/* @__PURE__ */
|
|
1448
|
-
|
|
1679
|
+
/* @__PURE__ */ d(
|
|
1680
|
+
ee,
|
|
1449
1681
|
{
|
|
1450
1682
|
id: "constant-id",
|
|
1451
1683
|
fullWidth: !0,
|
|
1452
|
-
value:
|
|
1453
|
-
error:
|
|
1454
|
-
onErrorChange:
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1684
|
+
value: Je,
|
|
1685
|
+
error: !i && n === "constant" && I,
|
|
1686
|
+
onErrorChange: w,
|
|
1687
|
+
onValidate: H,
|
|
1688
|
+
disabled: i || n !== "constant",
|
|
1689
|
+
required: n === "constant"
|
|
1458
1690
|
}
|
|
1459
1691
|
),
|
|
1460
|
-
/* @__PURE__ */
|
|
1461
|
-
|
|
1692
|
+
/* @__PURE__ */ d(
|
|
1693
|
+
Ue,
|
|
1462
1694
|
{
|
|
1463
1695
|
id: "id-type",
|
|
1464
|
-
label:
|
|
1465
|
-
checked:
|
|
1696
|
+
label: v.getString("LabelUseExtendedIdentifier"),
|
|
1697
|
+
checked: E === "extended",
|
|
1466
1698
|
onChange: (M) => {
|
|
1467
|
-
|
|
1699
|
+
Y(M), A(M ? "extended" : "standard");
|
|
1468
1700
|
},
|
|
1469
|
-
disabled:
|
|
1701
|
+
disabled: i
|
|
1470
1702
|
}
|
|
1471
|
-
)
|
|
1703
|
+
),
|
|
1704
|
+
/* @__PURE__ */ d(Pt, { columnItem: J, width: Ye, children: /* @__PURE__ */ d(ce, { onClick: () => x(!0), variant: "outlined", size: "large", children: v.getString("ButtonSelectMessage") }) })
|
|
1472
1705
|
] }),
|
|
1473
|
-
/* @__PURE__ */
|
|
1474
|
-
/* @__PURE__ */
|
|
1475
|
-
|
|
1706
|
+
/* @__PURE__ */ j(be, { spacing: 4, children: [
|
|
1707
|
+
/* @__PURE__ */ d(
|
|
1708
|
+
ge,
|
|
1476
1709
|
{
|
|
1477
1710
|
id: "random-identifier-radio",
|
|
1478
1711
|
value: "random",
|
|
1479
|
-
label:
|
|
1712
|
+
label: v.getString("LabelRandomIdentifier"),
|
|
1480
1713
|
sx: { marginLeft: "-11px !important" },
|
|
1481
|
-
disabled:
|
|
1714
|
+
disabled: i
|
|
1482
1715
|
}
|
|
1483
1716
|
),
|
|
1484
|
-
/* @__PURE__ */
|
|
1485
|
-
|
|
1717
|
+
/* @__PURE__ */ d(
|
|
1718
|
+
ge,
|
|
1486
1719
|
{
|
|
1487
1720
|
id: "scan-identifier-radio",
|
|
1488
1721
|
value: "scan",
|
|
1489
|
-
label:
|
|
1490
|
-
disabled:
|
|
1722
|
+
label: v.getString("LabelScanIdentifier"),
|
|
1723
|
+
disabled: i
|
|
1491
1724
|
}
|
|
1492
1725
|
),
|
|
1493
|
-
/* @__PURE__ */
|
|
1494
|
-
|
|
1726
|
+
/* @__PURE__ */ d(
|
|
1727
|
+
ee,
|
|
1495
1728
|
{
|
|
1496
1729
|
id: "identifier-min",
|
|
1497
|
-
disabled:
|
|
1498
|
-
required:
|
|
1730
|
+
disabled: i || n !== "random" && n !== "scan",
|
|
1731
|
+
required: n === "random" || n === "scan",
|
|
1499
1732
|
fullWidth: !0,
|
|
1500
|
-
value:
|
|
1501
|
-
error:
|
|
1502
|
-
onErrorChange:
|
|
1503
|
-
|
|
1504
|
-
|
|
1733
|
+
value: Qe,
|
|
1734
|
+
error: !i && (n === "random" || n === "scan") && C,
|
|
1735
|
+
onErrorChange: S,
|
|
1736
|
+
onValidate: T,
|
|
1737
|
+
startAdornment: v.getString("LabelFrom"),
|
|
1505
1738
|
sxStartAdornment: { marginBottom: 0.8 }
|
|
1506
1739
|
}
|
|
1507
1740
|
),
|
|
1508
|
-
/* @__PURE__ */
|
|
1509
|
-
|
|
1741
|
+
/* @__PURE__ */ d(
|
|
1742
|
+
ee,
|
|
1510
1743
|
{
|
|
1511
1744
|
id: "identifier-max",
|
|
1512
|
-
disabled:
|
|
1513
|
-
required:
|
|
1745
|
+
disabled: i || n !== "random" && n !== "scan",
|
|
1746
|
+
required: n === "random" || n === "scan",
|
|
1514
1747
|
fullWidth: !0,
|
|
1515
|
-
value:
|
|
1516
|
-
error:
|
|
1748
|
+
value: Ze,
|
|
1749
|
+
error: !i && (n === "random" || n === "scan") && g,
|
|
1517
1750
|
onErrorChange: p,
|
|
1518
|
-
|
|
1519
|
-
|
|
1751
|
+
onValidate: m,
|
|
1752
|
+
startAdornment: v.getString("LabelTo"),
|
|
1520
1753
|
sxStartAdornment: { marginBottom: 0.8 }
|
|
1521
1754
|
}
|
|
1522
1755
|
)
|
|
@@ -1527,188 +1760,195 @@ function ht({
|
|
|
1527
1760
|
}
|
|
1528
1761
|
);
|
|
1529
1762
|
}
|
|
1530
|
-
function
|
|
1763
|
+
function $r({
|
|
1531
1764
|
settings: e,
|
|
1532
|
-
onSettingsChange:
|
|
1533
|
-
onErrorsChange:
|
|
1534
|
-
canIdentifierGeneratorSettingsError:
|
|
1535
|
-
disabled:
|
|
1536
|
-
collapsible:
|
|
1537
|
-
collapsed:
|
|
1538
|
-
collapsedChange:
|
|
1765
|
+
onSettingsChange: n,
|
|
1766
|
+
onErrorsChange: t = void 0,
|
|
1767
|
+
canIdentifierGeneratorSettingsError: r = void 0,
|
|
1768
|
+
disabled: a = !1,
|
|
1769
|
+
collapsible: s = !1,
|
|
1770
|
+
collapsed: u = !1,
|
|
1771
|
+
collapsedChange: l = void 0,
|
|
1772
|
+
showSelectMessageDialogChange: i,
|
|
1773
|
+
showSignalValuesTable: o
|
|
1539
1774
|
}) {
|
|
1540
|
-
var
|
|
1541
|
-
const
|
|
1775
|
+
var w, C, S;
|
|
1776
|
+
const h = fe(), b = W(
|
|
1542
1777
|
() => {
|
|
1543
|
-
var
|
|
1544
|
-
return ((
|
|
1778
|
+
var g, p, c;
|
|
1779
|
+
return ((c = (p = (g = e.frame) == null ? void 0 : g.canFrameFlags) == null ? void 0 : p.flags) == null ? void 0 : c.includes(G.CAN_FRAME_FLAG_EXT)) === !0 ? "extended" : "standard";
|
|
1545
1780
|
},
|
|
1546
|
-
[(
|
|
1547
|
-
),
|
|
1781
|
+
[(C = (w = e.frame) == null ? void 0 : w.canFrameFlags) == null ? void 0 : C.flags]
|
|
1782
|
+
), x = W(() => {
|
|
1548
1783
|
var p;
|
|
1549
|
-
return `${(((p = e.frame) == null ? void 0 : p.id) ?? 0).toString(
|
|
1550
|
-
}, [
|
|
1551
|
-
(
|
|
1552
|
-
var
|
|
1553
|
-
const
|
|
1554
|
-
if (
|
|
1555
|
-
const
|
|
1556
|
-
|
|
1784
|
+
return `${(((p = e.frame) == null ? void 0 : p.id) ?? 0).toString(h).toUpperCase()}`;
|
|
1785
|
+
}, [h, (S = e.frame) == null ? void 0 : S.id]), N = W(() => `${(e.identifierMin ?? 0).toString(h).toUpperCase()}`, [h, e.identifierMin]), v = W(() => `${(e.identifierMax ?? 0).toString(h).toUpperCase()}`, [h, e.identifierMax]), f = W(() => e.randomIdentifier === !0 ? "random" : e.scanIdentifier === !0 ? "scan" : "constant", [e.randomIdentifier, e.scanIdentifier]), I = $(
|
|
1786
|
+
(g, p, c, F, _) => {
|
|
1787
|
+
var y, T, m, A;
|
|
1788
|
+
const z = _, K = parseInt(g, g.startsWith("0x") ? 16 : h), O = (T = (y = e.frame) == null ? void 0 : y.canFrameFlags) != null && T.flags ? { flags: [...e.frame.canFrameFlags.flags] } : { flags: [] }, E = O.flags.indexOf(G.CAN_FRAME_FLAG_STD), q = parseInt(c, c.startsWith("0x") ? 16 : h), Y = parseInt(F, F.startsWith("0x") ? 16 : h), H = O.flags.indexOf(G.CAN_FRAME_FLAG_EXT);
|
|
1789
|
+
if (E !== -1 && O.flags.splice(E, 1), H !== -1 && O.flags.splice(H, 1), z === "extended" ? O.flags.push(G.CAN_FRAME_FLAG_EXT) : z === "standard" && O.flags.push(G.CAN_FRAME_FLAG_STD), K !== ((m = e.frame) == null ? void 0 : m.id) || !xe(O, (A = e.frame) == null ? void 0 : A.canFrameFlags) || p !== f || q !== e.identifierMin || Y !== e.identifierMax) {
|
|
1790
|
+
const R = { ...e };
|
|
1791
|
+
R.frame = e.frame ? { ...e.frame } : yn.fromPartial({
|
|
1557
1792
|
id: 0,
|
|
1558
|
-
canFrameFlags: { flags: [
|
|
1793
|
+
canFrameFlags: { flags: [G.CAN_FRAME_FLAG_STD] },
|
|
1559
1794
|
data: Array.from({ length: 8 }, () => 0)
|
|
1560
|
-
}),
|
|
1795
|
+
}), R.frame.id = K, R.frame.canFrameFlags = O, p === "constant" ? (R.randomIdentifier = !1, R.scanIdentifier = !1) : p === "random" ? (R.randomIdentifier = !0, R.scanIdentifier = !1) : p === "scan" && (R.randomIdentifier = !1, R.scanIdentifier = !0), R.identifierMin = q, R.identifierMax = Y, n(R);
|
|
1561
1796
|
}
|
|
1562
1797
|
},
|
|
1563
|
-
[
|
|
1798
|
+
[f, h, n, e]
|
|
1564
1799
|
);
|
|
1565
|
-
return /* @__PURE__ */
|
|
1566
|
-
|
|
1800
|
+
return /* @__PURE__ */ d(
|
|
1801
|
+
rr,
|
|
1567
1802
|
{
|
|
1568
|
-
canIdentifier:
|
|
1569
|
-
identifierGeneratorType:
|
|
1570
|
-
minCanIdentifier:
|
|
1571
|
-
maxCanIdentifier:
|
|
1572
|
-
canIdentifierType:
|
|
1573
|
-
onChange:
|
|
1574
|
-
onErrorsChange:
|
|
1575
|
-
canIdentifierGeneratorSettingsError:
|
|
1576
|
-
disabled:
|
|
1577
|
-
collapsible:
|
|
1578
|
-
collapsed:
|
|
1579
|
-
collapsedChange:
|
|
1803
|
+
canIdentifier: x,
|
|
1804
|
+
identifierGeneratorType: f,
|
|
1805
|
+
minCanIdentifier: N,
|
|
1806
|
+
maxCanIdentifier: v,
|
|
1807
|
+
canIdentifierType: b,
|
|
1808
|
+
onChange: I,
|
|
1809
|
+
onErrorsChange: t,
|
|
1810
|
+
canIdentifierGeneratorSettingsError: r,
|
|
1811
|
+
disabled: a,
|
|
1812
|
+
collapsible: s,
|
|
1813
|
+
collapsed: u,
|
|
1814
|
+
collapsedChange: l,
|
|
1815
|
+
showSelectMessageDialogChange: i,
|
|
1816
|
+
showSignalValuesTable: o
|
|
1580
1817
|
}
|
|
1581
1818
|
);
|
|
1582
1819
|
}
|
|
1583
|
-
function
|
|
1584
|
-
const [
|
|
1585
|
-
return
|
|
1586
|
-
|
|
1587
|
-
var
|
|
1588
|
-
const
|
|
1589
|
-
var
|
|
1590
|
-
const
|
|
1820
|
+
function ar(e, n, t, r) {
|
|
1821
|
+
const [a, s] = B(""), [u, l] = B([]);
|
|
1822
|
+
return P(() => {
|
|
1823
|
+
l((i) => {
|
|
1824
|
+
var h;
|
|
1825
|
+
const o = (h = t == null ? void 0 : t.sources) == null ? void 0 : h.filter((b) => {
|
|
1826
|
+
var N, v;
|
|
1827
|
+
const x = (v = (N = r == null ? void 0 : r.find((f) => {
|
|
1591
1828
|
var I;
|
|
1592
|
-
return
|
|
1593
|
-
})) == null ? void 0 :
|
|
1594
|
-
return
|
|
1829
|
+
return f.nodeId === ((I = b.baseNode) == null ? void 0 : I.identifier);
|
|
1830
|
+
})) == null ? void 0 : N.errorStatus) == null ? void 0 : v.errors;
|
|
1831
|
+
return x === void 0 || x === "" ? b.baseNode && b.channelSettings && b.channelSettings.canConfiguration && (!n || b.channelSettings.canConfiguration.silentMode !== !0) : !1;
|
|
1595
1832
|
}).map((b) => ({
|
|
1596
1833
|
value: b.channelSettings.channelNumber,
|
|
1597
1834
|
displayText: b.baseNode.name,
|
|
1598
1835
|
canFdMode: b.channelSettings.canConfiguration.canMode > 0,
|
|
1599
1836
|
identifier: b.baseNode.identifier
|
|
1600
1837
|
}));
|
|
1601
|
-
return !
|
|
1838
|
+
return !o || xe(i, o) ? i : o;
|
|
1602
1839
|
});
|
|
1603
|
-
}, [
|
|
1604
|
-
const
|
|
1605
|
-
|
|
1606
|
-
}, [e,
|
|
1607
|
-
channelOptions:
|
|
1608
|
-
selectedChannelOption:
|
|
1840
|
+
}, [n, t == null ? void 0 : t.sources, r]), P(() => {
|
|
1841
|
+
const i = u.find((o) => o.identifier === e);
|
|
1842
|
+
s(i ? (o) => i.value === o ? o : i.value : "");
|
|
1843
|
+
}, [e, u]), {
|
|
1844
|
+
channelOptions: u,
|
|
1845
|
+
selectedChannelOption: a
|
|
1609
1846
|
};
|
|
1610
1847
|
}
|
|
1611
|
-
function
|
|
1848
|
+
function Fr({
|
|
1612
1849
|
channelIdentifier: e,
|
|
1613
|
-
onChannelIdentifierChange:
|
|
1614
|
-
hideSilentChannels:
|
|
1615
|
-
hideSectionControl:
|
|
1616
|
-
disabled:
|
|
1617
|
-
collapsible:
|
|
1618
|
-
collapsed:
|
|
1619
|
-
collapsedChange:
|
|
1850
|
+
onChannelIdentifierChange: n,
|
|
1851
|
+
hideSilentChannels: t = !1,
|
|
1852
|
+
hideSectionControl: r = !1,
|
|
1853
|
+
disabled: a = !1,
|
|
1854
|
+
collapsible: s = !1,
|
|
1855
|
+
collapsed: u = !1,
|
|
1856
|
+
collapsedChange: l = void 0
|
|
1620
1857
|
}) {
|
|
1621
|
-
var
|
|
1622
|
-
const
|
|
1858
|
+
var v;
|
|
1859
|
+
const i = en(), o = nn(), h = re(), { channelOptions: b, selectedChannelOption: x } = ar(
|
|
1623
1860
|
e,
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
),
|
|
1628
|
-
(
|
|
1629
|
-
const I = b.find((
|
|
1630
|
-
|
|
1861
|
+
t === !0,
|
|
1862
|
+
i,
|
|
1863
|
+
o
|
|
1864
|
+
), N = $(
|
|
1865
|
+
(f) => {
|
|
1866
|
+
const I = b.find((S) => S.value === f), w = (I == null ? void 0 : I.identifier) ?? "", C = (I == null ? void 0 : I.canFdMode) === !0;
|
|
1867
|
+
n(w, C);
|
|
1631
1868
|
},
|
|
1632
|
-
[b,
|
|
1869
|
+
[b, n]
|
|
1633
1870
|
);
|
|
1634
|
-
return
|
|
1635
|
-
|
|
1871
|
+
return r === !0 ? /* @__PURE__ */ d(
|
|
1872
|
+
Ee,
|
|
1636
1873
|
{
|
|
1637
1874
|
id: "channel",
|
|
1638
|
-
label:
|
|
1875
|
+
label: h.getString("LabelChannel"),
|
|
1639
1876
|
fullWidth: !0,
|
|
1640
|
-
value:
|
|
1641
|
-
onChange:
|
|
1877
|
+
value: x,
|
|
1878
|
+
onChange: N,
|
|
1642
1879
|
options: b,
|
|
1643
1880
|
required: !0,
|
|
1644
|
-
disabled:
|
|
1881
|
+
disabled: a
|
|
1645
1882
|
}
|
|
1646
|
-
) : /* @__PURE__ */
|
|
1647
|
-
|
|
1883
|
+
) : /* @__PURE__ */ d(
|
|
1884
|
+
Ne,
|
|
1648
1885
|
{
|
|
1649
|
-
text:
|
|
1650
|
-
summary:
|
|
1651
|
-
collapsible:
|
|
1652
|
-
collapsed:
|
|
1653
|
-
collapsedChange:
|
|
1654
|
-
children: /* @__PURE__ */
|
|
1655
|
-
|
|
1886
|
+
text: h.getString("LabelChannel"),
|
|
1887
|
+
summary: x === "" || (v = b.find((f) => f.value === x)) == null ? void 0 : v.displayText,
|
|
1888
|
+
collapsible: s,
|
|
1889
|
+
collapsed: u,
|
|
1890
|
+
collapsedChange: l,
|
|
1891
|
+
children: /* @__PURE__ */ d(
|
|
1892
|
+
Ee,
|
|
1656
1893
|
{
|
|
1657
1894
|
id: "channel",
|
|
1658
|
-
label:
|
|
1895
|
+
label: h.getString("LabelChannel"),
|
|
1659
1896
|
fullWidth: !0,
|
|
1660
|
-
value:
|
|
1661
|
-
onChange:
|
|
1897
|
+
value: x,
|
|
1898
|
+
onChange: N,
|
|
1662
1899
|
options: b,
|
|
1663
1900
|
required: !0,
|
|
1664
|
-
disabled:
|
|
1901
|
+
disabled: a
|
|
1665
1902
|
}
|
|
1666
1903
|
)
|
|
1667
1904
|
}
|
|
1668
1905
|
);
|
|
1669
1906
|
}
|
|
1670
|
-
const
|
|
1907
|
+
const Ir = X(ie)(() => ({
|
|
1671
1908
|
height: "100%",
|
|
1672
1909
|
width: "100%",
|
|
1673
1910
|
padding: "4px",
|
|
1674
1911
|
overflow: "auto"
|
|
1675
1912
|
}));
|
|
1676
1913
|
export {
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1914
|
+
Fr as CanChannelSelectControl,
|
|
1915
|
+
tr as CanIdentifierControl,
|
|
1916
|
+
Sr as CanIdentifierFrameControl,
|
|
1917
|
+
rr as CanIdentifierGeneratorControl,
|
|
1918
|
+
$r as CanIdentifierGeneratorSettingsControl,
|
|
1919
|
+
_r as CanKingDataProvider,
|
|
1920
|
+
Ue as CheckboxControl,
|
|
1921
|
+
Pt as ColumnItemControl,
|
|
1922
|
+
Cr as ContextMenu,
|
|
1923
|
+
wr as DevicesContext,
|
|
1924
|
+
jt as DropdownButton,
|
|
1925
|
+
hr as DropdownButtonTextItems,
|
|
1926
|
+
gr as DropdownPanel,
|
|
1927
|
+
Ir as FillBox,
|
|
1928
|
+
be as FormControlRow,
|
|
1929
|
+
mr as InlineEditor,
|
|
1930
|
+
Rr as LocalizedStrings,
|
|
1931
|
+
Ar as LogMessagesContext,
|
|
1932
|
+
Tr as MeasurementSetupContext,
|
|
1933
|
+
Er as MeasurementStatusContext,
|
|
1934
|
+
br as NumberRangeControl,
|
|
1935
|
+
ce as OneLineButton,
|
|
1936
|
+
Lr as OnlineStatusContext,
|
|
1937
|
+
ge as RadioControl,
|
|
1938
|
+
Gt as RadioGroupControl,
|
|
1939
|
+
Br as RunningPeriodicTransmissionsContext,
|
|
1940
|
+
Ne as SectionControl,
|
|
1941
|
+
Ee as SelectControl,
|
|
1942
|
+
pr as SizedBox,
|
|
1943
|
+
xr as TableControl,
|
|
1944
|
+
vr as TabsPanel,
|
|
1945
|
+
Ht as TextControl,
|
|
1946
|
+
Nr as ToolbarControl,
|
|
1947
|
+
Or as UserSettingsContext,
|
|
1948
|
+
ee as ValidateableTextControl,
|
|
1949
|
+
kr as WorkspacePanesContext,
|
|
1950
|
+
Wr as addEventListener,
|
|
1951
|
+
Pr as removeEventListener,
|
|
1952
|
+
kt as useColumnItem,
|
|
1953
|
+
Wt as useColumnItems
|
|
1714
1954
|
};
|