@kvaser/canking-api 7.1.0-beta.231

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.
Files changed (554) hide show
  1. package/EULA.pdf +0 -0
  2. package/README.md +87 -0
  3. package/REDISTRIBUTABLES.txt +5 -0
  4. package/dist/ElectronAPIFake.js +1 -0
  5. package/dist/ElectronAPIFake.mjs +266 -0
  6. package/dist/controls/CanChannelSelectControl.d.ts +35 -0
  7. package/dist/controls/CanIdentifierControl.d.ts +176 -0
  8. package/dist/controls/CanKingDataProvider.d.ts +116 -0
  9. package/dist/controls/CheckboxControl.d.ts +30 -0
  10. package/dist/controls/ContextMenu.d.ts +44 -0
  11. package/dist/controls/DropdownButton.d.ts +73 -0
  12. package/dist/controls/DropdownPanel.d.ts +41 -0
  13. package/dist/controls/FillBox.d.ts +8 -0
  14. package/dist/controls/FormControlRow.d.ts +30 -0
  15. package/dist/controls/InlineEditor.d.ts +26 -0
  16. package/dist/controls/LocalizedStrings.d.ts +21 -0
  17. package/dist/controls/NumberRangeControl.d.ts +80 -0
  18. package/dist/controls/OneLineButton.d.ts +9 -0
  19. package/dist/controls/RadioControl.d.ts +25 -0
  20. package/dist/controls/RadioGroupControl.d.ts +31 -0
  21. package/dist/controls/SectionControl.d.ts +40 -0
  22. package/dist/controls/SelectControl.d.ts +55 -0
  23. package/dist/controls/SizedBox.d.ts +11 -0
  24. package/dist/controls/TableControl.d.ts +61 -0
  25. package/dist/controls/TabsPanel.d.ts +5 -0
  26. package/dist/controls/TextControl.d.ts +56 -0
  27. package/dist/controls/ToolbarControl.d.ts +143 -0
  28. package/dist/controls/ValidateableTextControl.d.ts +82 -0
  29. package/dist/controls/index.d.ts +103 -0
  30. package/dist/controls.js +1 -0
  31. package/dist/controls.mjs +1714 -0
  32. package/dist/grpc/index.d.ts +7 -0
  33. package/dist/grpc.js +1 -0
  34. package/dist/grpc.mjs +917 -0
  35. package/dist/hooks/index.d.ts +112 -0
  36. package/dist/hooks.js +1 -0
  37. package/dist/hooks.mjs +28 -0
  38. package/dist/icons/index.d.ts +121 -0
  39. package/dist/icons.js +1 -0
  40. package/dist/icons.mjs +1237 -0
  41. package/dist/index.d.ts +6 -0
  42. package/dist/index.js +1 -0
  43. package/dist/index.mjs +596 -0
  44. package/dist/ipc/index.d.ts +160 -0
  45. package/dist/ipc.js +1 -0
  46. package/dist/ipc.mjs +123 -0
  47. package/dist/measurement_settings.js +1 -0
  48. package/dist/measurement_settings.mjs +4132 -0
  49. package/dist/models/DataBuffer.d.ts +100 -0
  50. package/dist/models/ElectronAPIFake.d.ts +13 -0
  51. package/dist/models/Point.d.ts +30 -0
  52. package/dist/models/index.d.ts +95 -0
  53. package/dist/models.js +1 -0
  54. package/dist/models.mjs +448 -0
  55. package/dist/protos/app_params.d.ts +208 -0
  56. package/dist/protos/app_service.d.ts +354 -0
  57. package/dist/protos/common_params.d.ts +33 -0
  58. package/dist/protos/device_params.d.ts +271 -0
  59. package/dist/protos/device_service.d.ts +154 -0
  60. package/dist/protos/frame_params.d.ts +189 -0
  61. package/dist/protos/google/protobuf/empty.d.ts +35 -0
  62. package/dist/protos/measurement_params.d.ts +308 -0
  63. package/dist/protos/measurement_service.d.ts +1333 -0
  64. package/dist/protos/measurement_settings.d.ts +453 -0
  65. package/dist/protos/signal_params.d.ts +72 -0
  66. package/dist/protos/status_params.d.ts +118 -0
  67. package/dist/status_params.js +1 -0
  68. package/dist/status_params.mjs +5045 -0
  69. package/doc/.nojekyll +1 -0
  70. package/doc/assets/highlight.css +120 -0
  71. package/doc/assets/icons.js +18 -0
  72. package/doc/assets/icons.svg +1 -0
  73. package/doc/assets/main.js +60 -0
  74. package/doc/assets/material-style.css +247 -0
  75. package/doc/assets/navigation.js +1 -0
  76. package/doc/assets/search.js +1 -0
  77. package/doc/assets/style.css +1493 -0
  78. package/doc/classes/controls.LocalizedStrings.html +177 -0
  79. package/doc/classes/models.DataBuffer.html +205 -0
  80. package/doc/classes/models.DataBufferView.html +193 -0
  81. package/doc/classes/models.Point.html +187 -0
  82. package/doc/enums/models.AccessMode.html +188 -0
  83. package/doc/enums/models.AppEvent.html +179 -0
  84. package/doc/enums/models.CanChannelCap.html +217 -0
  85. package/doc/enums/models.CanFrameFlag.html +200 -0
  86. package/doc/enums/models.CanMode.html +180 -0
  87. package/doc/enums/models.DecimalChar.html +178 -0
  88. package/doc/enums/models.DeviceEvent.html +179 -0
  89. package/doc/enums/models.FileConflictAction.html +180 -0
  90. package/doc/enums/models.LinFrameFlag.html +185 -0
  91. package/doc/enums/models.LogFileFormat.html +221 -0
  92. package/doc/enums/models.LogLevel.html +195 -0
  93. package/doc/enums/models.LogReplayState.html +179 -0
  94. package/doc/enums/models.MeasurementEvent.html +185 -0
  95. package/doc/enums/models.MessageLoggerState.html +180 -0
  96. package/doc/enums/models.Protocols.html +182 -0
  97. package/doc/enums/models.Separator.html +178 -0
  98. package/doc/enums/models.SignalEncoding.html +178 -0
  99. package/doc/enums/models.SignalType.html +185 -0
  100. package/doc/enums/models.SignalValueTriggerOperator.html +186 -0
  101. package/doc/enums/models.StatusLevel.html +180 -0
  102. package/doc/enums/models.TimeReference.html +178 -0
  103. package/doc/enums/models.TriggerOperator.html +179 -0
  104. package/doc/functions/controls.CanChannelSelectControl.html +177 -0
  105. package/doc/functions/controls.CanIdentifierControl.html +177 -0
  106. package/doc/functions/controls.CanIdentifierFrameControl.html +177 -0
  107. package/doc/functions/controls.CanIdentifierGeneratorControl.html +177 -0
  108. package/doc/functions/controls.CanIdentifierGeneratorSettingsControl.html +178 -0
  109. package/doc/functions/controls.CanKingDataProvider.html +182 -0
  110. package/doc/functions/controls.CheckboxControl.html +177 -0
  111. package/doc/functions/controls.ContextMenu.html +177 -0
  112. package/doc/functions/controls.DropdownButton.html +177 -0
  113. package/doc/functions/controls.DropdownButtonTextItems.html +177 -0
  114. package/doc/functions/controls.DropdownPanel.html +177 -0
  115. package/doc/functions/controls.FillBox.html +206 -0
  116. package/doc/functions/controls.FormControlRow.html +177 -0
  117. package/doc/functions/controls.InlineEditor.html +177 -0
  118. package/doc/functions/controls.NumberRangeControl.html +177 -0
  119. package/doc/functions/controls.OneLineButton.html +205 -0
  120. package/doc/functions/controls.RadioControl.html +177 -0
  121. package/doc/functions/controls.RadioGroupControl.html +177 -0
  122. package/doc/functions/controls.SectionControl.html +177 -0
  123. package/doc/functions/controls.SelectControl.html +177 -0
  124. package/doc/functions/controls.SizedBox.html +206 -0
  125. package/doc/functions/controls.TableControl.html +177 -0
  126. package/doc/functions/controls.TabsPanel.html +205 -0
  127. package/doc/functions/controls.TextControl.html +177 -0
  128. package/doc/functions/controls.ToolbarControl.html +177 -0
  129. package/doc/functions/controls.ValidateableTextControl.html +177 -0
  130. package/doc/functions/hooks.useDevices.html +176 -0
  131. package/doc/functions/hooks.useIsOnline.html +176 -0
  132. package/doc/functions/hooks.useLanguage.html +176 -0
  133. package/doc/functions/hooks.useLocalizedStrings.html +176 -0
  134. package/doc/functions/hooks.useLogMessages.html +176 -0
  135. package/doc/functions/hooks.useMaxDataBytes.html +175 -0
  136. package/doc/functions/hooks.useMeasurementSetup.html +176 -0
  137. package/doc/functions/hooks.useMeasurementStatus.html +176 -0
  138. package/doc/functions/hooks.useMessageLogFileFormats.html +175 -0
  139. package/doc/functions/hooks.useNewMeasurementData.html +178 -0
  140. package/doc/functions/hooks.useNodeStatus.html +176 -0
  141. package/doc/functions/hooks.useNumericRadix.html +176 -0
  142. package/doc/functions/hooks.useOnlineStatus.html +176 -0
  143. package/doc/functions/hooks.useOverallStatusLevel.html +176 -0
  144. package/doc/functions/hooks.useProjectData.html +178 -0
  145. package/doc/functions/hooks.useRecentProjectFiles.html +175 -0
  146. package/doc/functions/hooks.useRunningPeriodicTransmissions.html +176 -0
  147. package/doc/functions/hooks.useSessionData.html +178 -0
  148. package/doc/functions/hooks.useUserSettings.html +176 -0
  149. package/doc/functions/hooks.useWorkspacePaneWithId.html +175 -0
  150. package/doc/functions/icons.AddIcon.html +175 -0
  151. package/doc/functions/icons.ArrowDownIcon.html +175 -0
  152. package/doc/functions/icons.ArrowLeftIcon.html +175 -0
  153. package/doc/functions/icons.ArrowRightIcon.html +175 -0
  154. package/doc/functions/icons.ArrowUpIcon.html +175 -0
  155. package/doc/functions/icons.BusIsOffIcon.html +175 -0
  156. package/doc/functions/icons.BusIsOnIcon.html +175 -0
  157. package/doc/functions/icons.CloseIcon.html +175 -0
  158. package/doc/functions/icons.CopyIcon.html +175 -0
  159. package/doc/functions/icons.DarkModeIcon.html +175 -0
  160. package/doc/functions/icons.DeleteIcon.html +175 -0
  161. package/doc/functions/icons.DisableIcon.html +175 -0
  162. package/doc/functions/icons.EditIcon.html +175 -0
  163. package/doc/functions/icons.FilterIcon.html +175 -0
  164. package/doc/functions/icons.FixedPositionIcon.html +175 -0
  165. package/doc/functions/icons.LeaveFullScreenIcon.html +175 -0
  166. package/doc/functions/icons.LightModeIcon.html +175 -0
  167. package/doc/functions/icons.LineArrowDownIcon.html +175 -0
  168. package/doc/functions/icons.LineArrowUpIcon.html +175 -0
  169. package/doc/functions/icons.MaximizeWindowIcon.html +175 -0
  170. package/doc/functions/icons.MeasurementSetupIcon.html +175 -0
  171. package/doc/functions/icons.MoreHorizIcon.html +175 -0
  172. package/doc/functions/icons.MoreVertIcon.html +175 -0
  173. package/doc/functions/icons.NewIcon.html +175 -0
  174. package/doc/functions/icons.OpenExternallyIcon.html +175 -0
  175. package/doc/functions/icons.OpenIcon.html +175 -0
  176. package/doc/functions/icons.PauseIcon.html +175 -0
  177. package/doc/functions/icons.PlayIcon.html +175 -0
  178. package/doc/functions/icons.PlaySolidIcon.html +175 -0
  179. package/doc/functions/icons.SaveIcon.html +175 -0
  180. package/doc/functions/icons.SelectAllIcon.html +175 -0
  181. package/doc/functions/icons.ServiceIconActive.html +175 -0
  182. package/doc/functions/icons.ServiceIconInactive.html +175 -0
  183. package/doc/functions/icons.SettingsIcon.html +175 -0
  184. package/doc/functions/icons.StopIcon.html +175 -0
  185. package/doc/functions/icons.StopSolidIcon.html +175 -0
  186. package/doc/functions/icons.ToolsPanelHiddenIcon.html +175 -0
  187. package/doc/functions/icons.ToolsPanelVisibleIcon.html +175 -0
  188. package/doc/functions/icons.UnmaximizeWindowIcon.html +175 -0
  189. package/doc/functions/icons.WorkspacesIcon.html +175 -0
  190. package/doc/functions/ipc.addDataProcessor.html +178 -0
  191. package/doc/functions/ipc.addSource.html +176 -0
  192. package/doc/functions/ipc.addTarget.html +176 -0
  193. package/doc/functions/ipc.connectNodes.html +177 -0
  194. package/doc/functions/ipc.deleteDataProcessor.html +176 -0
  195. package/doc/functions/ipc.deleteSource.html +176 -0
  196. package/doc/functions/ipc.deleteTarget.html +176 -0
  197. package/doc/functions/ipc.disableNode.html +176 -0
  198. package/doc/functions/ipc.disconnectNodes.html +177 -0
  199. package/doc/functions/ipc.enableNode.html +176 -0
  200. package/doc/functions/ipc.getFrameDefinitions.html +178 -0
  201. package/doc/functions/ipc.getLogger.html +177 -0
  202. package/doc/functions/ipc.getMessageLogFileFormats.html +176 -0
  203. package/doc/functions/ipc.sendCanMessage.html +179 -0
  204. package/doc/functions/ipc.sendMessage.html +177 -0
  205. package/doc/functions/ipc.showMessageBox.html +177 -0
  206. package/doc/functions/ipc.showQuestionBox.html +183 -0
  207. package/doc/functions/ipc.startLogReplay.html +176 -0
  208. package/doc/functions/ipc.startMeasurement.html +175 -0
  209. package/doc/functions/ipc.startPeriodicTransmission.html +177 -0
  210. package/doc/functions/ipc.stopLogReplay.html +176 -0
  211. package/doc/functions/ipc.stopMeasurement.html +175 -0
  212. package/doc/functions/ipc.stopPeriodicTransmission.html +176 -0
  213. package/doc/functions/ipc.updateDataProcessor.html +176 -0
  214. package/doc/functions/ipc.updateSource.html +176 -0
  215. package/doc/functions/ipc.updateTarget.html +176 -0
  216. package/doc/functions/models.accessModeFromJSON.html +174 -0
  217. package/doc/functions/models.accessModeToJSON.html +174 -0
  218. package/doc/functions/models.appEventFromJSON.html +174 -0
  219. package/doc/functions/models.appEventToJSON.html +174 -0
  220. package/doc/functions/models.canChannelCapFromJSON.html +174 -0
  221. package/doc/functions/models.canChannelCapToJSON.html +174 -0
  222. package/doc/functions/models.canFrameFlagFromJSON.html +174 -0
  223. package/doc/functions/models.canFrameFlagToJSON.html +174 -0
  224. package/doc/functions/models.canModeFromJSON.html +174 -0
  225. package/doc/functions/models.canModeToJSON.html +174 -0
  226. package/doc/functions/models.createElectronApiFake.html +177 -0
  227. package/doc/functions/models.decimalCharFromJSON.html +174 -0
  228. package/doc/functions/models.decimalCharToJSON.html +174 -0
  229. package/doc/functions/models.decimalToFixed.html +174 -0
  230. package/doc/functions/models.decimalToHex.html +174 -0
  231. package/doc/functions/models.deviceEventFromJSON.html +174 -0
  232. package/doc/functions/models.deviceEventToJSON.html +174 -0
  233. package/doc/functions/models.fileConflictActionFromJSON.html +174 -0
  234. package/doc/functions/models.fileConflictActionToJSON.html +174 -0
  235. package/doc/functions/models.linFrameFlagFromJSON.html +174 -0
  236. package/doc/functions/models.linFrameFlagToJSON.html +174 -0
  237. package/doc/functions/models.logFileFormatFromJSON.html +174 -0
  238. package/doc/functions/models.logFileFormatToJSON.html +174 -0
  239. package/doc/functions/models.logLevelFromJSON.html +174 -0
  240. package/doc/functions/models.logLevelToJSON.html +174 -0
  241. package/doc/functions/models.logReplayStateFromJSON.html +174 -0
  242. package/doc/functions/models.logReplayStateToJSON.html +174 -0
  243. package/doc/functions/models.longToNumber.html +174 -0
  244. package/doc/functions/models.measurementEventFromJSON.html +174 -0
  245. package/doc/functions/models.measurementEventToJSON.html +174 -0
  246. package/doc/functions/models.messageLoggerStateFromJSON.html +174 -0
  247. package/doc/functions/models.messageLoggerStateToJSON.html +174 -0
  248. package/doc/functions/models.protocolsFromJSON.html +174 -0
  249. package/doc/functions/models.protocolsToJSON.html +174 -0
  250. package/doc/functions/models.separatorFromJSON.html +174 -0
  251. package/doc/functions/models.separatorToJSON.html +174 -0
  252. package/doc/functions/models.signalEncodingFromJSON.html +174 -0
  253. package/doc/functions/models.signalEncodingToJSON.html +174 -0
  254. package/doc/functions/models.signalTypeFromJSON.html +174 -0
  255. package/doc/functions/models.signalTypeToJSON.html +174 -0
  256. package/doc/functions/models.signalValueTriggerOperatorFromJSON.html +174 -0
  257. package/doc/functions/models.signalValueTriggerOperatorToJSON.html +174 -0
  258. package/doc/functions/models.statusLevelFromJSON.html +174 -0
  259. package/doc/functions/models.statusLevelToJSON.html +174 -0
  260. package/doc/functions/models.timeReferenceFromJSON.html +174 -0
  261. package/doc/functions/models.timeReferenceToJSON.html +174 -0
  262. package/doc/functions/models.triggerOperatorFromJSON.html +174 -0
  263. package/doc/functions/models.triggerOperatorToJSON.html +174 -0
  264. package/doc/hierarchy.html +174 -0
  265. package/doc/index.html +244 -0
  266. package/doc/interfaces/controls.ButtonGroupProps.html +183 -0
  267. package/doc/interfaces/controls.ButtonProps.html +195 -0
  268. package/doc/interfaces/controls.CanChannelSelectControlProps.html +194 -0
  269. package/doc/interfaces/controls.CanIdentifierControlProps.html +195 -0
  270. package/doc/interfaces/controls.CanIdentifierFrameControlProps.html +190 -0
  271. package/doc/interfaces/controls.CanIdentifierGeneratorControlProps.html +208 -0
  272. package/doc/interfaces/controls.CanIdentifierGeneratorSettingsControlProps.html +194 -0
  273. package/doc/interfaces/controls.CheckboxControlProps.html +190 -0
  274. package/doc/interfaces/controls.ContextMenuProps.html +182 -0
  275. package/doc/interfaces/controls.DropdownButtonChildrenProps.html +177 -0
  276. package/doc/interfaces/controls.DropdownButtonProps.html +193 -0
  277. package/doc/interfaces/controls.DropdownButtonTextItemsProps.html +183 -0
  278. package/doc/interfaces/controls.DropdownPanelProps.html +193 -0
  279. package/doc/interfaces/controls.FormControlRowProps.html +181 -0
  280. package/doc/interfaces/controls.ILocalizedStrings.html +176 -0
  281. package/doc/interfaces/controls.InlineEditorProps.html +186 -0
  282. package/doc/interfaces/controls.LabelProps.html +179 -0
  283. package/doc/interfaces/controls.NumberRangeControlProps.html +225 -0
  284. package/doc/interfaces/controls.RadioControlProps.html +187 -0
  285. package/doc/interfaces/controls.RadioGroupControlProps.html +182 -0
  286. package/doc/interfaces/controls.SectionControlProps.html +190 -0
  287. package/doc/interfaces/controls.SelectControlProps.html +205 -0
  288. package/doc/interfaces/controls.TableColumn.html +185 -0
  289. package/doc/interfaces/controls.TableControlProps.html +197 -0
  290. package/doc/interfaces/controls.TextControlProps.html +214 -0
  291. package/doc/interfaces/controls.ToggleButtonGroupProps.html +190 -0
  292. package/doc/interfaces/controls.ToggleButtonProps.html +187 -0
  293. package/doc/interfaces/controls.ToolbarControlProps.html +191 -0
  294. package/doc/interfaces/controls.ValidateableTextControlProps.html +233 -0
  295. package/doc/interfaces/controls.toolbarItem.html +185 -0
  296. package/doc/interfaces/ipc.ILogger.html +181 -0
  297. package/doc/interfaces/models.AboutInformation.html +181 -0
  298. package/doc/interfaces/models.ActivateLicenseRequest.html +181 -0
  299. package/doc/interfaces/models.AddAllConnectedCanChannelsRequest.html +177 -0
  300. package/doc/interfaces/models.AddAllConnectedLinChannelsRequest.html +177 -0
  301. package/doc/interfaces/models.AddOrUpdateDataProcessorRequest.html +185 -0
  302. package/doc/interfaces/models.AddOrUpdateSourceRequest.html +181 -0
  303. package/doc/interfaces/models.AddOrUpdateTargetRequest.html +181 -0
  304. package/doc/interfaces/models.ApiPreferences.html +183 -0
  305. package/doc/interfaces/models.AppEventArgs.html +179 -0
  306. package/doc/interfaces/models.BaseNodeProperties.html +181 -0
  307. package/doc/interfaces/models.BusStatus.html +190 -0
  308. package/doc/interfaces/models.CanBusParamLimits.html +180 -0
  309. package/doc/interfaces/models.CanBusParams.html +197 -0
  310. package/doc/interfaces/models.CanBusSpeed.html +187 -0
  311. package/doc/interfaces/models.CanBusSpeedInfo.html +193 -0
  312. package/doc/interfaces/models.CanChannelCapacity.html +180 -0
  313. package/doc/interfaces/models.CanChannelConfiguration.html +185 -0
  314. package/doc/interfaces/models.CanFDBusSpeedCombination.html +177 -0
  315. package/doc/interfaces/models.CanFDBusSpeedInfo.html +191 -0
  316. package/doc/interfaces/models.CanFrameFlags.html +177 -0
  317. package/doc/interfaces/models.CanMessageFilterSettings.html +178 -0
  318. package/doc/interfaces/models.Channel.html +180 -0
  319. package/doc/interfaces/models.ChannelSettings.html +193 -0
  320. package/doc/interfaces/models.ClearLinMessageRequest.html +180 -0
  321. package/doc/interfaces/models.ConnectNodesRequest.html +178 -0
  322. package/doc/interfaces/models.DataProcessingStatus.html +179 -0
  323. package/doc/interfaces/models.DataProcessorNodeProperties.html +181 -0
  324. package/doc/interfaces/models.DatabasesSettings.html +176 -0
  325. package/doc/interfaces/models.Device.html +182 -0
  326. package/doc/interfaces/models.DeviceEventArgs.html +177 -0
  327. package/doc/interfaces/models.Devices.html +175 -0
  328. package/doc/interfaces/models.DisconnectNodesRequest.html +178 -0
  329. package/doc/interfaces/models.Empty.html +182 -0
  330. package/doc/interfaces/models.ErrorStatus.html +177 -0
  331. package/doc/interfaces/models.Frame.html +203 -0
  332. package/doc/interfaces/models.FrameDefinition.html +185 -0
  333. package/doc/interfaces/models.FrameDefinitions.html +175 -0
  334. package/doc/interfaces/models.FramePropertyValue.html +177 -0
  335. package/doc/interfaces/models.FrameReceivedTrigger.html +179 -0
  336. package/doc/interfaces/models.Frame_PropertiesEntry.html +176 -0
  337. package/doc/interfaces/models.Frames.html +175 -0
  338. package/doc/interfaces/models.GetCanChannelBusSpeedsRequest.html +177 -0
  339. package/doc/interfaces/models.GetCanChannelBusSpeedsResponse.html +179 -0
  340. package/doc/interfaces/models.GetCanFdBusSpeedsRequest.html +179 -0
  341. package/doc/interfaces/models.GetCanFdBusSpeedsResponse.html +177 -0
  342. package/doc/interfaces/models.GetChannelsFromLogFileRequest.html +178 -0
  343. package/doc/interfaces/models.GetChannelsFromLogFileResponse.html +177 -0
  344. package/doc/interfaces/models.GetClassicCanBusSpeedsRequest.html +178 -0
  345. package/doc/interfaces/models.GetClassicCanBusSpeedsResponse.html +177 -0
  346. package/doc/interfaces/models.GetDataProcessorResponse.html +176 -0
  347. package/doc/interfaces/models.GetDevicesRequest.html +177 -0
  348. package/doc/interfaces/models.GetDevicesResponse.html +176 -0
  349. package/doc/interfaces/models.GetFrameDefinitionsFromDatabaseFilesRequest.html +178 -0
  350. package/doc/interfaces/models.GetLicensesResponse.html +177 -0
  351. package/doc/interfaces/models.GetLogFileFormatsRequest.html +180 -0
  352. package/doc/interfaces/models.GetLogFileFormatsResponse.html +183 -0
  353. package/doc/interfaces/models.GetLogLevelResponse.html +177 -0
  354. package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesRequest.html +178 -0
  355. package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesResponse.html +177 -0
  356. package/doc/interfaces/models.GetServiceExtensionInfoRequest.html +181 -0
  357. package/doc/interfaces/models.GetServiceExtensionInfoResponse.html +187 -0
  358. package/doc/interfaces/models.GetSignalDataFromMessageDataRequest.html +180 -0
  359. package/doc/interfaces/models.GetSignalDataFromMessageDataResponse.html +177 -0
  360. package/doc/interfaces/models.GetSourceResponse.html +176 -0
  361. package/doc/interfaces/models.GetTargetResponse.html +176 -0
  362. package/doc/interfaces/models.ILogFileFormat.html +179 -0
  363. package/doc/interfaces/models.IProject.html +179 -0
  364. package/doc/interfaces/models.IUserSettings.html +187 -0
  365. package/doc/interfaces/models.IWorkspaceComponentPaneData.html +177 -0
  366. package/doc/interfaces/models.IWorkspaceContainerPaneData.html +178 -0
  367. package/doc/interfaces/models.IWorkspaceData.html +178 -0
  368. package/doc/interfaces/models.IWorkspacePaneData.html +178 -0
  369. package/doc/interfaces/models.IdentifierRequest.html +178 -0
  370. package/doc/interfaces/models.IdentifiersRequest.html +178 -0
  371. package/doc/interfaces/models.InstallServiceExtensionRequest.html +181 -0
  372. package/doc/interfaces/models.InterpreterSettings.html +177 -0
  373. package/doc/interfaces/models.J1939InterpreterSettings.html +175 -0
  374. package/doc/interfaces/models.LicenseInformation.html +191 -0
  375. package/doc/interfaces/models.Licenses.html +177 -0
  376. package/doc/interfaces/models.LinChannelConfiguration.html +185 -0
  377. package/doc/interfaces/models.LinFrameFlags.html +177 -0
  378. package/doc/interfaces/models.LogMessage.html +185 -0
  379. package/doc/interfaces/models.LogMessages.html +177 -0
  380. package/doc/interfaces/models.LogReplaySettings.html +199 -0
  381. package/doc/interfaces/models.LogReplaySettings_ChannelIdentifiersEntry.html +176 -0
  382. package/doc/interfaces/models.LogReplayStatus.html +176 -0
  383. package/doc/interfaces/models.MeasurementEventArgs.html +179 -0
  384. package/doc/interfaces/models.MeasurementSetup.html +179 -0
  385. package/doc/interfaces/models.MessageLoggerSettings.html +213 -0
  386. package/doc/interfaces/models.MessageLoggerStatus.html +176 -0
  387. package/doc/interfaces/models.NodeStatus.html +191 -0
  388. package/doc/interfaces/models.NodeStatuses.html +176 -0
  389. package/doc/interfaces/models.OnlineStatus.html +176 -0
  390. package/doc/interfaces/models.PeriodicTransmissionSettings.html +209 -0
  391. package/doc/interfaces/models.RequestLinMessageRequest.html +180 -0
  392. package/doc/interfaces/models.ScheduleTable.html +181 -0
  393. package/doc/interfaces/models.ScheduleTableEntry.html +179 -0
  394. package/doc/interfaces/models.SendLinWakeupFrameRequest.html +182 -0
  395. package/doc/interfaces/models.SendMessageRequest.html +178 -0
  396. package/doc/interfaces/models.ServiceExtensionSettings.html +177 -0
  397. package/doc/interfaces/models.SetLogLevelRequest.html +179 -0
  398. package/doc/interfaces/models.SetMeasurementSetupRequest.html +177 -0
  399. package/doc/interfaces/models.SetSignalDataToMessageDataRequest.html +182 -0
  400. package/doc/interfaces/models.SetSignalDataToMessageDataResponse.html +180 -0
  401. package/doc/interfaces/models.SignalDefinition.html +188 -0
  402. package/doc/interfaces/models.SignalDefinition_EnumValuesEntry.html +176 -0
  403. package/doc/interfaces/models.SignalDefinitions.html +175 -0
  404. package/doc/interfaces/models.SignalValue.html +180 -0
  405. package/doc/interfaces/models.SignalValueTrigger.html +189 -0
  406. package/doc/interfaces/models.SourceNodeProperties.html +180 -0
  407. package/doc/interfaces/models.StartPeriodicTransmissionRequest.html +178 -0
  408. package/doc/interfaces/models.StartPeriodicTransmissionResponse.html +176 -0
  409. package/doc/interfaces/models.TargetNodeProperties.html +178 -0
  410. package/doc/interfaces/models.TriggerSettings.html +181 -0
  411. package/doc/interfaces/models.UninstallServiceExtensionRequest.html +179 -0
  412. package/doc/interfaces/models.UpdateLinMessageRequest.html +181 -0
  413. package/doc/interfaces/models.WriteFrame.html +183 -0
  414. package/doc/modules/controls.html +242 -0
  415. package/doc/modules/hooks.html +201 -0
  416. package/doc/modules/icons.html +216 -0
  417. package/doc/modules/ipc.html +202 -0
  418. package/doc/modules/models.html +478 -0
  419. package/doc/modules.html +179 -0
  420. package/doc/types/controls.ContextMenuOption.html +179 -0
  421. package/doc/types/controls.SelectOption.html +177 -0
  422. package/doc/types/controls.StringsMap.html +175 -0
  423. package/doc/types/controls.canIdentifierType.html +175 -0
  424. package/doc/types/models.IReadOnlyDataBuffer.html +174 -0
  425. package/doc/types/models.themes.html +174 -0
  426. package/doc/variables/models.AboutInformation-1.html +174 -0
  427. package/doc/variables/models.ActivateLicenseRequest-1.html +174 -0
  428. package/doc/variables/models.AddAllConnectedCanChannelsRequest-1.html +174 -0
  429. package/doc/variables/models.AddAllConnectedLinChannelsRequest-1.html +174 -0
  430. package/doc/variables/models.AddOrUpdateDataProcessorRequest-1.html +174 -0
  431. package/doc/variables/models.AddOrUpdateSourceRequest-1.html +174 -0
  432. package/doc/variables/models.AddOrUpdateTargetRequest-1.html +174 -0
  433. package/doc/variables/models.ApiPreferences-1.html +174 -0
  434. package/doc/variables/models.AppEventArgs-1.html +174 -0
  435. package/doc/variables/models.BaseNodeProperties-1.html +174 -0
  436. package/doc/variables/models.BusStatus-1.html +174 -0
  437. package/doc/variables/models.CanBusParamLimits-1.html +174 -0
  438. package/doc/variables/models.CanBusParams-1.html +174 -0
  439. package/doc/variables/models.CanBusSpeed-1.html +174 -0
  440. package/doc/variables/models.CanBusSpeedInfo-1.html +174 -0
  441. package/doc/variables/models.CanChannelCapacity-1.html +174 -0
  442. package/doc/variables/models.CanChannelConfiguration-1.html +174 -0
  443. package/doc/variables/models.CanFDBusSpeedCombination-1.html +174 -0
  444. package/doc/variables/models.CanFDBusSpeedInfo-1.html +174 -0
  445. package/doc/variables/models.CanFrameFlags-1.html +174 -0
  446. package/doc/variables/models.CanMessageFilterSettings-1.html +174 -0
  447. package/doc/variables/models.Channel-1.html +174 -0
  448. package/doc/variables/models.ChannelSettings-1.html +174 -0
  449. package/doc/variables/models.ClearLinMessageRequest-1.html +174 -0
  450. package/doc/variables/models.ConnectNodesRequest-1.html +174 -0
  451. package/doc/variables/models.DataProcessingStatus-1.html +174 -0
  452. package/doc/variables/models.DataProcessorNodeProperties-1.html +174 -0
  453. package/doc/variables/models.DatabasesSettings-1.html +174 -0
  454. package/doc/variables/models.Device-1.html +174 -0
  455. package/doc/variables/models.DeviceEventArgs-1.html +174 -0
  456. package/doc/variables/models.Devices-1.html +174 -0
  457. package/doc/variables/models.DisconnectNodesRequest-1.html +174 -0
  458. package/doc/variables/models.Empty-1.html +174 -0
  459. package/doc/variables/models.ErrorStatus-1.html +174 -0
  460. package/doc/variables/models.Frame-1.html +174 -0
  461. package/doc/variables/models.FrameDefinition-1.html +174 -0
  462. package/doc/variables/models.FrameDefinitions-1.html +174 -0
  463. package/doc/variables/models.FramePropertyValue-1.html +174 -0
  464. package/doc/variables/models.FrameReceivedTrigger-1.html +174 -0
  465. package/doc/variables/models.Frame_PropertiesEntry-1.html +174 -0
  466. package/doc/variables/models.Frames-1.html +174 -0
  467. package/doc/variables/models.GetCanChannelBusSpeedsRequest-1.html +174 -0
  468. package/doc/variables/models.GetCanChannelBusSpeedsResponse-1.html +174 -0
  469. package/doc/variables/models.GetCanFdBusSpeedsRequest-1.html +174 -0
  470. package/doc/variables/models.GetCanFdBusSpeedsResponse-1.html +174 -0
  471. package/doc/variables/models.GetChannelsFromLogFileRequest-1.html +174 -0
  472. package/doc/variables/models.GetChannelsFromLogFileResponse-1.html +174 -0
  473. package/doc/variables/models.GetClassicCanBusSpeedsRequest-1.html +174 -0
  474. package/doc/variables/models.GetClassicCanBusSpeedsResponse-1.html +174 -0
  475. package/doc/variables/models.GetDataProcessorResponse-1.html +174 -0
  476. package/doc/variables/models.GetDevicesRequest-1.html +174 -0
  477. package/doc/variables/models.GetDevicesResponse-1.html +174 -0
  478. package/doc/variables/models.GetFrameDefinitionsFromDatabaseFilesRequest-1.html +174 -0
  479. package/doc/variables/models.GetLicensesResponse-1.html +174 -0
  480. package/doc/variables/models.GetLogFileFormatsRequest-1.html +174 -0
  481. package/doc/variables/models.GetLogFileFormatsResponse-1.html +174 -0
  482. package/doc/variables/models.GetLogLevelResponse-1.html +174 -0
  483. package/doc/variables/models.GetScheduleTablesFromDatabaseFilesRequest-1.html +174 -0
  484. package/doc/variables/models.GetScheduleTablesFromDatabaseFilesResponse-1.html +174 -0
  485. package/doc/variables/models.GetServiceExtensionInfoRequest-1.html +174 -0
  486. package/doc/variables/models.GetServiceExtensionInfoResponse-1.html +174 -0
  487. package/doc/variables/models.GetSignalDataFromMessageDataRequest-1.html +174 -0
  488. package/doc/variables/models.GetSignalDataFromMessageDataResponse-1.html +174 -0
  489. package/doc/variables/models.GetSourceResponse-1.html +174 -0
  490. package/doc/variables/models.GetTargetResponse-1.html +174 -0
  491. package/doc/variables/models.IdentifierRequest-1.html +174 -0
  492. package/doc/variables/models.IdentifiersRequest-1.html +174 -0
  493. package/doc/variables/models.InstallServiceExtensionRequest-1.html +174 -0
  494. package/doc/variables/models.InterpreterSettings-1.html +174 -0
  495. package/doc/variables/models.J1939InterpreterSettings-1.html +174 -0
  496. package/doc/variables/models.LicenseInformation-1.html +174 -0
  497. package/doc/variables/models.Licenses-1.html +174 -0
  498. package/doc/variables/models.LinChannelConfiguration-1.html +174 -0
  499. package/doc/variables/models.LinFrameFlags-1.html +174 -0
  500. package/doc/variables/models.LogMessage-1.html +174 -0
  501. package/doc/variables/models.LogMessages-1.html +174 -0
  502. package/doc/variables/models.LogReplaySettings-1.html +174 -0
  503. package/doc/variables/models.LogReplaySettings_ChannelIdentifiersEntry-1.html +174 -0
  504. package/doc/variables/models.LogReplayStatus-1.html +174 -0
  505. package/doc/variables/models.MeasurementEventArgs-1.html +174 -0
  506. package/doc/variables/models.MeasurementSetup-1.html +174 -0
  507. package/doc/variables/models.MessageLoggerSettings-1.html +174 -0
  508. package/doc/variables/models.MessageLoggerStatus-1.html +174 -0
  509. package/doc/variables/models.NodeStatus-1.html +174 -0
  510. package/doc/variables/models.NodeStatuses-1.html +174 -0
  511. package/doc/variables/models.OnlineStatus-1.html +174 -0
  512. package/doc/variables/models.PeriodicTransmissionSettings-1.html +174 -0
  513. package/doc/variables/models.RequestLinMessageRequest-1.html +174 -0
  514. package/doc/variables/models.ScheduleTable-1.html +174 -0
  515. package/doc/variables/models.ScheduleTableEntry-1.html +174 -0
  516. package/doc/variables/models.SendLinWakeupFrameRequest-1.html +174 -0
  517. package/doc/variables/models.SendMessageRequest-1.html +174 -0
  518. package/doc/variables/models.ServiceExtensionSettings-1.html +174 -0
  519. package/doc/variables/models.SetLogLevelRequest-1.html +174 -0
  520. package/doc/variables/models.SetMeasurementSetupRequest-1.html +174 -0
  521. package/doc/variables/models.SetSignalDataToMessageDataRequest-1.html +174 -0
  522. package/doc/variables/models.SetSignalDataToMessageDataResponse-1.html +174 -0
  523. package/doc/variables/models.SignalDefinition-1.html +174 -0
  524. package/doc/variables/models.SignalDefinition_EnumValuesEntry-1.html +174 -0
  525. package/doc/variables/models.SignalDefinitions-1.html +174 -0
  526. package/doc/variables/models.SignalValue-1.html +174 -0
  527. package/doc/variables/models.SignalValueTrigger-1.html +174 -0
  528. package/doc/variables/models.SourceNodeProperties-1.html +174 -0
  529. package/doc/variables/models.StartPeriodicTransmissionRequest-1.html +174 -0
  530. package/doc/variables/models.StartPeriodicTransmissionResponse-1.html +174 -0
  531. package/doc/variables/models.TargetNodeProperties-1.html +174 -0
  532. package/doc/variables/models.TriggerSettings-1.html +174 -0
  533. package/doc/variables/models.UninstallServiceExtensionRequest-1.html +174 -0
  534. package/doc/variables/models.UpdateLinMessageRequest-1.html +174 -0
  535. package/doc/variables/models.WriteFrame-1.html +174 -0
  536. package/doc/variables/models.defaultUserSettings.html +175 -0
  537. package/package.json +129 -0
  538. package/scripts/createCanKingExtension.js +403 -0
  539. package/scripts/index.js +39 -0
  540. package/scripts/template/_.eslintrc.cjs +38 -0
  541. package/scripts/template/_.gitignore +24 -0
  542. package/scripts/template/_.npmrc +2 -0
  543. package/scripts/template/_.prettierrc +8 -0
  544. package/scripts/template/_.vscode/_launch.json +28 -0
  545. package/scripts/template/_index.html +15 -0
  546. package/scripts/template/_tsconfig.app.json +27 -0
  547. package/scripts/template/_tsconfig.json +11 -0
  548. package/scripts/template/_tsconfig.node.json +13 -0
  549. package/scripts/template/_vite.config.ts +7 -0
  550. package/scripts/template/src/App.tsx +12 -0
  551. package/scripts/template/src/WorkspaceView/index.tsx +47 -0
  552. package/scripts/template/src/main.css +9 -0
  553. package/scripts/template/src/main.tsx +19 -0
  554. package/scripts/template/src/vite-env.d.ts +1 -0
package/EULA.pdf ADDED
Binary file
package/README.md ADDED
@@ -0,0 +1,87 @@
1
+ # Kvaser CanKing GUI Extensions SDK
2
+
3
+ ## Prerequisites
4
+
5
+ Before creating a new CanKing GUI Extension project there are some softwares that need to be installed.
6
+
7
+ ### Must have
8
+
9
+ - Node.js: <https://nodejs.org/>
10
+ - Kvaser CanKing: <https://kvaser.com/canking/>
11
+ - Kvaser Drivers: <https://resources.kvaser.com/7330130980013/latest/kvaser_drivers_setup.exe>
12
+
13
+ ### Preferred
14
+
15
+ - nvm: <https://github.com/coreybutler/nvm-windows/releases>
16
+ - download latest version from assets
17
+ - install and do ```nvm list``` to display node.js versions
18
+ - install node.js version 22.9: ```nvm install 22.9```
19
+ - change node.js version to 22.9: ```nvm use 22.9```
20
+ - **NOTE:**
21
+ - If nvm keyword can't be found make sure environment path for nvm.exe is set.
22
+ - CanKing is coded with node version 22.9, so version 22.9 is recommended.
23
+
24
+ ## Generate a new CanKing GUI Extension project
25
+
26
+ To create a new CanKing GUI Extension project the @kvaser/canking-api package is needed. The @kvaser/canking-api
27
+ package is published to <http://artifact.kvaser.se/artifactory/api/npm/libs-npm>.
28
+
29
+ The @kvaser/canking-api package includes a script that can be used for creating a new CanKing GUI Extension package.
30
+ The script is used like this:
31
+
32
+ npx @kvaser/canking-api <project-name> [options]
33
+
34
+ Arguments:
35
+ project-name The project name. A new project folder with this name will be created in the current folder.
36
+
37
+ Options:
38
+ -V, --version output the version number
39
+ --view-name <string> workspace view name (default: "")
40
+ --desc <string> project description (default: "A CanKing GUI extension.")
41
+ --author <string> project author (default: "")
42
+ --verbose print additional logs
43
+ --force use installed script even if a newer version exists
44
+ --show-doc opens the documentation
45
+ -h, --help display help for command
46
+
47
+ To create a new CanKing workspace view extension run these commands:
48
+
49
+ npm config set '@kvaser:registry' http://artifact.kvaser.se/artifactory/api/npm/libs-npm
50
+ npx @kvaser/canking-api <project-name> --view-name <view-name> --desc <description> --author <author>
51
+
52
+ The first command will point out the correct registry to be used for @kvaser packages and the second command will run the
53
+ script to create the project.
54
+
55
+ ## Develop a CanKing GUI Extension
56
+
57
+ To match the CanKing look and feel, it's recommended to use Material UI components when applicable,
58
+ <https://mui.com/material-ui/all-components/>.
59
+
60
+ The WorkspaceView React component (src/WorkspaceVew/index.tsx) will be displayed when the extension is loaded into CanKing,
61
+ so this is the component that should be implemented to implement the extension.
62
+
63
+ To run the extension from command line enter:
64
+
65
+ npm run start
66
+
67
+ To run the extension using VS Code debugger:
68
+
69
+ - Select 'Run and Debug' or press Ctrl+Shift+D
70
+ - Select the configuration named 'Debug'
71
+ - Click on 'Start Debugging' or press F5
72
+
73
+ To run a production build of the extension you can enter this command:
74
+
75
+ npm run startpreview
76
+
77
+ ## Package and Install a CanKing GUI Extension
78
+
79
+ To package your extension for distribution you should run this command from the command line:
80
+
81
+ npm pack
82
+
83
+ This command will create a tarball file in the root folder of your project called:
84
+
85
+ <project-name>-<version>.tgz
86
+
87
+ This tarball can then be installed in CanKing using the head menu 'More'->'Extensions'->'Install'.
@@ -0,0 +1,5 @@
1
+ Redistributable files in Kvaser CanKing GUI Extensions SDK
2
+ ===================================================================================================
3
+
4
+ All files in the dist folder and in its sub-folders may be redistributed with your application,
5
+ provided they are only used together with genuine Kvaser hardware.
@@ -0,0 +1 @@
1
+ "use strict";var p=Object.defineProperty;var g=(r,e,s)=>e in r?p(r,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[e]=s;var t=(r,e,s)=>g(r,typeof e!="symbol"?e+"":e,s);require("long");const v=require("./measurement_settings.js");class d{constructor(e){t(this,"userSettings");this.userSettings=e}on(e,s){return()=>{}}once(e,s){return()=>{}}removeAllListeners(e){}removeListener(e,s){return this}send(e,...s){}invoke(e,...s){switch(e){case"rpc-get-devices":const n=[];return Promise.resolve(n);case"app-get-session-data":return Promise.resolve(null);case"app-get-user-settings":return Promise.resolve(this.userSettings);case"rpc-get-online-status":const o={isOnline:!1};return Promise.resolve(o);case"rpc-get-node-statuses":const c=[];return Promise.resolve(c);case"prj-get-meas-setup":return Promise.resolve(v.MeasurementSetup.create());case"prj-get-workspaces":const i=[];return Promise.resolve(i);case"prj-get-workspace-panes":const l=[];return Promise.resolve(l);case"app-get-workspace-view-session-data":case"rpc-start-periodic-transmission":return Promise.resolve("");case"rpc-get-message-log-file-formats":const u=[];return Promise.resolve(u);case"rpc-get-frame-definitions":const m=[];return Promise.resolve(m);case"mm-get-measurement-data-buffer":case"mm-get-latest-measurement-data":return Promise.resolve(frames);default:return Promise.resolve()}}postMessage(e,s,n){}sendSync(e,...s){}sendTo(e,s,...n){}sendToHost(e,...s){}}class P{insertCSS(e){return""}setZoomFactor(e){}setZoomLevel(e){}}class F{constructor(){t(this,"platform");t(this,"versions");t(this,"env")}}const a=r=>{const e={version:"1.0.0",theme:"light",language:"en",strings:{},showToolsPanel:!0,useHexNumericBase:!0,maxDataBytes:16,defaultProjectFolder:"",currentProjectFile:"",currentProjectFileName:"",recentProjectFiles:[],closeAppServiceAction:"prompt"};return{ipcRenderer:new d(r??e),webFrame:new P,process:new F}},f=a();exports.createElectronApiFake=a;exports.electronApiFake=f;
@@ -0,0 +1,266 @@
1
+ var u = Object.defineProperty;
2
+ var p = (r, e, s) => e in r ? u(r, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : r[e] = s;
3
+ var t = (r, e, s) => p(r, typeof e != "symbol" ? e + "" : e, s);
4
+ import "long";
5
+ import { ab as g } from "./measurement_settings.mjs";
6
+ class v {
7
+ /**
8
+ * Creates a new IpcRendererFake.
9
+ */
10
+ constructor(e) {
11
+ t(this, "userSettings");
12
+ this.userSettings = e;
13
+ }
14
+ /**
15
+ * Listens to `channel`, when a new message arrives `listener` would be called with
16
+ * `listener(event, args...)`.
17
+ */
18
+ on(e, s) {
19
+ return () => {
20
+ };
21
+ }
22
+ /**
23
+ * Adds a one time `listener` function for the event. This `listener` is invoked
24
+ * only the next time a message is sent to `channel`, after which it is removed.
25
+ */
26
+ once(e, s) {
27
+ return () => {
28
+ };
29
+ }
30
+ /**
31
+ * Removes all listeners, or those of the specified `channel`.
32
+ */
33
+ removeAllListeners(e) {
34
+ }
35
+ /**
36
+ * Removes the specified `listener` from the listener array for the specified
37
+ * `channel`.
38
+ *
39
+ * @deprecated Use `on` listen return instead
40
+ *
41
+ */
42
+ removeListener(e, s) {
43
+ return this;
44
+ }
45
+ /**
46
+ * Send an asynchronous message to the main process via `channel`, along with
47
+ * arguments. Arguments will be serialized with the Structured Clone Algorithm,
48
+ * just like `window.postMessage`, so prototype chains will not be included.
49
+ * Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will throw an
50
+ * exception.
51
+ *
52
+ * **NOTE:** Sending non-standard JavaScript types such as DOM objects or special
53
+ * Electron objects will throw an exception.
54
+ *
55
+ * Since the main process does not have support for DOM objects such as
56
+ * `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over
57
+ * Electron's IPC to the main process, as the main process would have no way to
58
+ * decode them. Attempting to send such objects over IPC will result in an error.
59
+ *
60
+ * The main process handles it by listening for `channel` with the `ipcMain`
61
+ * module.
62
+ *
63
+ * If you need to transfer a `MessagePort` to the main process, use
64
+ * `ipcRenderer.postMessage`.
65
+ *
66
+ * If you want to receive a single response from the main process, like the result
67
+ * of a method call, consider using `ipcRenderer.invoke`.
68
+ */
69
+ send(e, ...s) {
70
+ }
71
+ /**
72
+ * Resolves with the response from the main process.
73
+ *
74
+ * Send a message to the main process via `channel` and expect a result
75
+ * asynchronously. Arguments will be serialized with the Structured Clone
76
+ * Algorithm, just like `window.postMessage`, so prototype chains will not be
77
+ * included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will throw
78
+ * an exception.
79
+ *
80
+ * **NOTE:** Sending non-standard JavaScript types such as DOM objects or special
81
+ * Electron objects will throw an exception.
82
+ *
83
+ * Since the main process does not have support for DOM objects such as
84
+ * `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over
85
+ * Electron's IPC to the main process, as the main process would have no way to
86
+ * decode them. Attempting to send such objects over IPC will result in an error.
87
+ *
88
+ * The main process should listen for `channel` with `ipcMain.handle()`.
89
+ *
90
+ * For example:
91
+ *
92
+ * If you need to transfer a `MessagePort` to the main process, use
93
+ * `ipcRenderer.postMessage`.
94
+ *
95
+ * If you do not need a response to the message, consider using `ipcRenderer.send`.
96
+ */
97
+ invoke(e, ...s) {
98
+ switch (e) {
99
+ case "rpc-get-devices":
100
+ const n = [];
101
+ return Promise.resolve(n);
102
+ case "app-get-session-data":
103
+ return Promise.resolve(null);
104
+ case "app-get-user-settings":
105
+ return Promise.resolve(this.userSettings);
106
+ case "rpc-get-online-status":
107
+ const a = { isOnline: !1 };
108
+ return Promise.resolve(a);
109
+ case "rpc-get-node-statuses":
110
+ const o = [];
111
+ return Promise.resolve(o);
112
+ case "prj-get-meas-setup":
113
+ return Promise.resolve(g.create());
114
+ case "prj-get-workspaces":
115
+ const c = [];
116
+ return Promise.resolve(c);
117
+ case "prj-get-workspace-panes":
118
+ const i = [];
119
+ return Promise.resolve(i);
120
+ case "app-get-workspace-view-session-data":
121
+ case "rpc-start-periodic-transmission":
122
+ return Promise.resolve("");
123
+ case "rpc-get-message-log-file-formats":
124
+ const l = [];
125
+ return Promise.resolve(l);
126
+ case "rpc-get-frame-definitions":
127
+ const m = [];
128
+ return Promise.resolve(m);
129
+ case "mm-get-measurement-data-buffer":
130
+ case "mm-get-latest-measurement-data":
131
+ return Promise.resolve(frames);
132
+ default:
133
+ return Promise.resolve();
134
+ }
135
+ }
136
+ /**
137
+ * Send a message to the main process, optionally transferring ownership of zero or
138
+ * more `MessagePort` objects.
139
+ *
140
+ * The transferred `MessagePort` objects will be available in the main process as
141
+ * `MessagePortMain` objects by accessing the `ports` property of the emitted
142
+ * event.
143
+ *
144
+ * **NOTE:** Cannot transfer these when `contextIsolation: true`.
145
+ *
146
+ * For example:
147
+ *
148
+ * For more information on using `MessagePort` and `MessageChannel`, see the MDN
149
+ * documentation.
150
+ */
151
+ postMessage(e, s, n) {
152
+ }
153
+ /**
154
+ * The value sent back by the `ipcMain` handler.
155
+ *
156
+ * Send a message to the main process via `channel` and expect a result
157
+ * synchronously. Arguments will be serialized with the Structured Clone Algorithm,
158
+ * just like `window.postMessage`, so prototype chains will not be included.
159
+ * Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will throw an
160
+ * exception.
161
+ *
162
+ * **NOTE:** Sending non-standard JavaScript types such as DOM objects or special
163
+ * Electron objects will throw an exception.
164
+ *
165
+ * Since the main process does not have support for DOM objects such as
166
+ * `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over
167
+ * Electron's IPC to the main process, as the main process would have no way to
168
+ * decode them. Attempting to send such objects over IPC will result in an error.
169
+ *
170
+ * The main process handles it by listening for `channel` with `ipcMain` module,
171
+ * and replies by setting `event.returnValue`.
172
+ *
173
+ * warning: **WARNING**: Sending a synchronous message will block the whole
174
+ * renderer process until the reply is received, so use this method only as a last
175
+ * resort. It's much better to use the asynchronous version, `invoke()`.
176
+ */
177
+ sendSync(e, ...s) {
178
+ }
179
+ /**
180
+ * Sends a message to a window with `webContentsId` via `channel`.
181
+ *
182
+ * @deprecated This methond has been removed since Electron 28.
183
+ */
184
+ sendTo(e, s, ...n) {
185
+ }
186
+ /**
187
+ * Like `ipcRenderer.send` but the event will be sent to the `<webview>` element in
188
+ * the host page instead of the main process.
189
+ */
190
+ sendToHost(e, ...s) {
191
+ }
192
+ }
193
+ class d {
194
+ /**
195
+ * A key for the inserted CSS that can later be used to remove the CSS via
196
+ * `webFrame.removeInsertedCSS(key)`.
197
+ *
198
+ * Injects CSS into the current web page and returns a unique key for the inserted
199
+ * stylesheet.
200
+ */
201
+ insertCSS(e) {
202
+ return "";
203
+ }
204
+ /**
205
+ * Changes the zoom factor to the specified factor. Zoom factor is zoom percent
206
+ * divided by 100, so 300% = 3.0.
207
+ *
208
+ * The factor must be greater than 0.0.
209
+ */
210
+ setZoomFactor(e) {
211
+ }
212
+ /**
213
+ * Changes the zoom level to the specified level. The original size is 0 and each
214
+ * increment above or below represents zooming 20% larger or smaller to default
215
+ * limits of 300% and 50% of original size, respectively.
216
+ *
217
+ * **NOTE**: The zoom policy at the Chromium level is same-origin, meaning that
218
+ * the zoom level for a specific domain propagates across all instances of windows
219
+ * with the same domain. Differentiating the window URLs will make zoom work
220
+ * per-window.
221
+ */
222
+ setZoomLevel(e) {
223
+ }
224
+ }
225
+ class P {
226
+ constructor() {
227
+ /**
228
+ * The process.platform property returns a string identifying the operating system platform
229
+ * on which the Node.js process is running.
230
+ */
231
+ t(this, "platform");
232
+ /**
233
+ * A list of versions for the current node.js/electron configuration.
234
+ */
235
+ t(this, "versions");
236
+ /**
237
+ * The process.env property returns an object containing the user environment.
238
+ */
239
+ t(this, "env");
240
+ }
241
+ }
242
+ const f = (r) => {
243
+ const e = {
244
+ version: "1.0.0",
245
+ theme: "light",
246
+ language: "en",
247
+ strings: {},
248
+ showToolsPanel: !0,
249
+ useHexNumericBase: !0,
250
+ maxDataBytes: 16,
251
+ defaultProjectFolder: "",
252
+ currentProjectFile: "",
253
+ currentProjectFileName: "",
254
+ recentProjectFiles: [],
255
+ closeAppServiceAction: "prompt"
256
+ };
257
+ return {
258
+ ipcRenderer: new v(r ?? e),
259
+ webFrame: new d(),
260
+ process: new P()
261
+ };
262
+ }, w = f();
263
+ export {
264
+ f as c,
265
+ w as e
266
+ };
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Properties of the CanChannelSelectControl React component.
3
+ */
4
+ export interface CanChannelSelectControlProps {
5
+ /** Identifier of the selected channel. */
6
+ channelIdentifier: string;
7
+ /**
8
+ * Callback that will be called when a new channel has been selected.
9
+ * @param identifier The new channel identifier.
10
+ * @param canFdSupport True if the new CAN channel supports CAN-FD.
11
+ */
12
+ onChannelIdentifierChange: (identifier: string, canFdSupport: boolean) => void;
13
+ /** Set to true to hide all silent channels e.g., when the control is used for selecting output channel. */
14
+ hideSilentChannels?: boolean;
15
+ /** Set to true if this control shouldn't be encapsulated inside a SectionControl. */
16
+ hideSectionControl?: boolean;
17
+ /** Set to true to disable this control. */
18
+ disabled?: boolean;
19
+ /** Set to true if the SectionControl should be collapsible, ignored if hideSectionControl is true. */
20
+ collapsible?: boolean;
21
+ /** Current collapse state of the SectionControl. */
22
+ collapsed?: boolean;
23
+ /**
24
+ * Callback that will be called when collapse state has changed.
25
+ * @param value The new collapse state.
26
+ */
27
+ collapsedChange?: (value: boolean) => void;
28
+ }
29
+ /**
30
+ * Creates an UI control for selecting a CAN channel from the current measurement setup.
31
+ * @param props Component properties.
32
+ * @returns The CanChannelSelectControl React component.
33
+ */
34
+ declare function CanChannelSelectControl({ channelIdentifier, onChannelIdentifierChange, hideSilentChannels, hideSectionControl, disabled, collapsible, collapsed, collapsedChange, }: CanChannelSelectControlProps): import("react/jsx-runtime").JSX.Element;
35
+ export default CanChannelSelectControl;
@@ -0,0 +1,176 @@
1
+ /**
2
+ * This module includes UI controls for editing CAN identifiers.
3
+ *
4
+ * To be able to use these controls the CanKingDataProvider component must be present in the
5
+ * component tree above your component. Normally the CanKingDataProvider is added
6
+ * at the root of the component tree.
7
+ *
8
+ * @packageDocumentation
9
+ */
10
+ import React from 'react';
11
+ import { PeriodicTransmissionSettings, WriteFrame } from '../models';
12
+ /** Possible CAN identifier types, standard (11-bits) or extended (29-bits). */
13
+ export type canIdentifierType = 'standard' | 'extended';
14
+ /** Possible CAN identifier generator types. */
15
+ type identifierGeneratorType = 'constant' | 'random' | 'scan';
16
+ /**
17
+ * Properties of the CanIdentifierControl React component.
18
+ */
19
+ interface CanIdentifierControlProps {
20
+ /** The current CAN identifier. */
21
+ canIdentifier: string;
22
+ /** The current CAN identifier type, 'extended or 'standard'. */
23
+ canIdentifierType: canIdentifierType;
24
+ /**
25
+ * Callback that will be called when the CAN identifier has changed.
26
+ * @param value The new CAN identifier.
27
+ */
28
+ onCanIdentifierChange: (identifier: string, idType: canIdentifierType) => void;
29
+ /**
30
+ * Callback that will be called when the errors state has changed.
31
+ * @param errors The new errors state.
32
+ */
33
+ onErrorsChange?: (errors: boolean) => void;
34
+ /** Set to true if this control shouldn't be encapsulated inside a SectionControl. */
35
+ hideSection?: boolean;
36
+ /** Set to true to disable this control. */
37
+ disabled?: boolean;
38
+ /** Set to true if the SectionControl should be collapsible, ignored if hideSectionControl is true. */
39
+ collapsible?: boolean;
40
+ /** Current collapse state of the SectionControl. */
41
+ collapsed?: boolean;
42
+ /**
43
+ * Callback that will be called when collapse state has changed.
44
+ * @param value The new collapse state.
45
+ */
46
+ collapsedChange?: (value: boolean) => void;
47
+ }
48
+ /**
49
+ * Creates an UI control for editing a CAN identifier.
50
+ * @param props Component properties.
51
+ * @returns The CanIdentifierControl React component.
52
+ */
53
+ declare function CanIdentifierControl({ canIdentifier, canIdentifierType, onCanIdentifierChange, onErrorsChange, hideSection, disabled, collapsible, collapsed, collapsedChange, }: CanIdentifierControlProps): import("react/jsx-runtime").JSX.Element;
54
+ /**
55
+ * Properties of the CanIdentifierFrameControl React component.
56
+ */
57
+ interface CanIdentifierFrameControlProps {
58
+ /** The frame object that holds the CAN identifier. */
59
+ frame: WriteFrame;
60
+ /**
61
+ * Callback that will be called when the frame is updated after the CAN identifier has changed.
62
+ * @param value The new frame object.
63
+ */
64
+ onFrameChange: (value: WriteFrame) => void;
65
+ /**
66
+ * Callback that will be called when the errors state has changed.
67
+ * @param errors The new errors state.
68
+ */
69
+ onErrorsChange?: (errors: boolean) => void;
70
+ /** Set to true if the SectionControl should be collapsible. */
71
+ collapsible?: boolean;
72
+ /** Current collapse state of the SectionControl. */
73
+ collapsed?: boolean;
74
+ /**
75
+ * Callback that will be called when collapse state has changed.
76
+ * @param value The new collapse state.
77
+ */
78
+ collapsedChange?: (value: boolean) => void;
79
+ }
80
+ /**
81
+ * Creates an UI control for editing a CAN identifier using a Frame as source.
82
+ * @param props Component properties.
83
+ * @returns The CanIdentifierFrameControl React component.
84
+ */
85
+ declare function CanIdentifierFrameControl({ frame, onFrameChange, onErrorsChange, collapsible, collapsed, collapsedChange, }: CanIdentifierFrameControlProps): import("react/jsx-runtime").JSX.Element;
86
+ /**
87
+ * Properties of the CanIdentifierGeneratorControl React component.
88
+ */
89
+ interface CanIdentifierGeneratorControlProps {
90
+ /** The CAN identifier. */
91
+ canIdentifier: string;
92
+ /**
93
+ * The generator type: 'constant' | 'random' | 'scan'
94
+ * 'constant': The CAN identifier set to canIdentifier will be used for all generated messages.
95
+ * 'random': A random CAN identifier between minCanIdentifier and maxCanIdentifier will be used.
96
+ * 'scan': A CAN identifier will be picked from minCanIdentifier to maxCanIdentifier.
97
+ */
98
+ identifierGeneratorType: identifierGeneratorType;
99
+ /** The min CAN identifier that will be used if identifierGeneratorType is 'random' or 'scan'. */
100
+ minCanIdentifier: string;
101
+ /** The max CAN identifier that will be used if identifierGeneratorType is 'random' or 'scan'. */
102
+ maxCanIdentifier: string;
103
+ /** The CAN identifier type that will be used, 'extended' or 'standard'. */
104
+ canIdentifierType: canIdentifierType;
105
+ /**
106
+ * Callback that will be called when the CAN identifier(s) has changed.
107
+ * @param newCanIdentifier The new constant CAN identifier.
108
+ * @param newIdentifierGeneratorType The new generator type.
109
+ * @param newMinCanIdentifier The new min CAN identifier.
110
+ * @param newMaxCanIdentifier The new max CAN identifier.
111
+ */
112
+ onChange: (newCanIdentifier: string, newIdentifierGeneratorType: identifierGeneratorType, newMinCanIdentifier: string, newMaxCanIdentifier: string, newIdentifierType: canIdentifierType) => void;
113
+ /**
114
+ * Callback that will be called when the errors state has changed.
115
+ * @param errors The new errors state.
116
+ */
117
+ onErrorsChange?: (errors: boolean) => void;
118
+ /** The current error state. */
119
+ canIdentifierGeneratorSettingsError?: React.MutableRefObject<boolean>;
120
+ /** Set to true to disable this control. */
121
+ disabled?: boolean;
122
+ /** Set to true if the SectionControl should be collapsible. */
123
+ collapsible?: boolean;
124
+ /** Current collapse state of the SectionControl. */
125
+ collapsed?: boolean;
126
+ /**
127
+ * Callback that will be called when collapse state has changed.
128
+ * @param value The new collapse state.
129
+ */
130
+ collapsedChange?: (value: boolean) => void;
131
+ }
132
+ /**
133
+ * Creates an UI control for editing CAN identifier(s) used by a message generator.
134
+ * @param props Component properties.
135
+ * @returns The CanIdentifierGeneratorControl React component.
136
+ */
137
+ declare function CanIdentifierGeneratorControl({ canIdentifier, identifierGeneratorType, minCanIdentifier, maxCanIdentifier, canIdentifierType, onChange, onErrorsChange, canIdentifierGeneratorSettingsError, disabled, collapsible, collapsed, collapsedChange, }: CanIdentifierGeneratorControlProps): import("react/jsx-runtime").JSX.Element;
138
+ /**
139
+ * Properties of the CanIdentifierGeneratorSettingsControl React component.
140
+ */
141
+ interface CanIdentifierGeneratorSettingsControlProps {
142
+ /** The settings object that holds the CAN identifier(s) generator settings. */
143
+ settings: PeriodicTransmissionSettings;
144
+ /**
145
+ * Callback that will be called when the settings are updated after the CAN identifiers have changed.
146
+ * @param value The new settings object.
147
+ */
148
+ onSettingsChange: (value: PeriodicTransmissionSettings) => void;
149
+ /**
150
+ * Callback that will be called when the errors state has changed.
151
+ * @param errors The new errors state.
152
+ */
153
+ onErrorsChange?: (errors: boolean) => void;
154
+ /** The current error state. */
155
+ canIdentifierGeneratorSettingsError?: React.MutableRefObject<boolean>;
156
+ /** Set to true to disable this control. */
157
+ disabled?: boolean;
158
+ /** Set to true if the SectionControl should be collapsible. */
159
+ collapsible?: boolean;
160
+ /** Current collapse state of the SectionControl. */
161
+ collapsed?: boolean;
162
+ /**
163
+ * Callback that will be called when collapse state has changed.
164
+ * @param value The new collapse state.
165
+ */
166
+ collapsedChange?: (value: boolean) => void;
167
+ }
168
+ /**
169
+ * Creates an UI control for editing CAN identifier(s) used by a message generator
170
+ * using a PeriodicTransmissionSettings as source.
171
+ * @param props Component properties.
172
+ * @returns The CanIdentifierGeneratorSettingsControl React component.
173
+ */
174
+ declare function CanIdentifierGeneratorSettingsControl({ settings, onSettingsChange, onErrorsChange, canIdentifierGeneratorSettingsError, disabled, collapsible, collapsed, collapsedChange, }: CanIdentifierGeneratorSettingsControlProps): import("react/jsx-runtime").JSX.Element;
175
+ export default CanIdentifierControl;
176
+ export { type CanIdentifierControlProps, CanIdentifierControl, type CanIdentifierFrameControlProps, CanIdentifierFrameControl, type CanIdentifierGeneratorControlProps, CanIdentifierGeneratorControl, type CanIdentifierGeneratorSettingsControlProps, CanIdentifierGeneratorSettingsControl, };