@noldova/desktop.electron 0.0.0-stage → 0.0.2

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 (590) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +55 -2
  3. package/api/index.d.ts +11138 -0
  4. package/api/index.js +144 -0
  5. package/api/index.js.map +1 -0
  6. package/enums/file-save-outcome.js +14 -0
  7. package/enums/file-save-outcome.js.map +1 -0
  8. package/enums/main-process-failure-kind.js +13 -0
  9. package/enums/main-process-failure-kind.js.map +1 -0
  10. package/enums/menu-bar-row-type.js +14 -0
  11. package/enums/menu-bar-row-type.js.map +1 -0
  12. package/enums/menu-check.js +14 -0
  13. package/enums/menu-check.js.map +1 -0
  14. package/enums/path-command-outcome.js +16 -0
  15. package/enums/path-command-outcome.js.map +1 -0
  16. package/enums/quit-choice.js +14 -0
  17. package/enums/quit-choice.js.map +1 -0
  18. package/enums/quit-outcome.js +14 -0
  19. package/enums/quit-outcome.js.map +1 -0
  20. package/enums/startup-state-kind.js +19 -0
  21. package/enums/startup-state-kind.js.map +1 -0
  22. package/enums/tray-icon-state.js +16 -0
  23. package/enums/tray-icon-state.js.map +1 -0
  24. package/enums/update-state-kind.js +18 -0
  25. package/enums/update-state-kind.js.map +1 -0
  26. package/enums/web-address-kind.js +16 -0
  27. package/enums/web-address-kind.js.map +1 -0
  28. package/enums/window-error-admission.js +14 -0
  29. package/enums/window-error-admission.js.map +1 -0
  30. package/exceptions/app-image-folder-unwritable.exception.js +18 -0
  31. package/exceptions/app-image-folder-unwritable.exception.js.map +1 -0
  32. package/exceptions/app-image-leftover-not-removed.exception.js +17 -0
  33. package/exceptions/app-image-leftover-not-removed.exception.js.map +1 -0
  34. package/exceptions/app-image-not-replaced.exception.js +18 -0
  35. package/exceptions/app-image-not-replaced.exception.js.map +1 -0
  36. package/exceptions/app-image-unreadable.exception.js +18 -0
  37. package/exceptions/app-image-unreadable.exception.js.map +1 -0
  38. package/exceptions/databases-not-backed-up.exception.js +18 -0
  39. package/exceptions/databases-not-backed-up.exception.js.map +1 -0
  40. package/exceptions/debian-installer-missing.exception.js +15 -0
  41. package/exceptions/debian-installer-missing.exception.js.map +1 -0
  42. package/exceptions/debian-package-not-installed.exception.js +18 -0
  43. package/exceptions/debian-package-not-installed.exception.js.map +1 -0
  44. package/exceptions/device-identity.exception.js +17 -0
  45. package/exceptions/device-identity.exception.js.map +1 -0
  46. package/exceptions/electron.exception.js +14 -0
  47. package/exceptions/electron.exception.js.map +1 -0
  48. package/exceptions/installer-not-copied.exception.js +15 -0
  49. package/exceptions/installer-not-copied.exception.js.map +1 -0
  50. package/exceptions/installer-not-held.exception.js +17 -0
  51. package/exceptions/installer-not-held.exception.js.map +1 -0
  52. package/exceptions/installer-not-started.exception.js +18 -0
  53. package/exceptions/installer-not-started.exception.js.map +1 -0
  54. package/exceptions/installer-unsigned.exception.js +19 -0
  55. package/exceptions/installer-unsigned.exception.js.map +1 -0
  56. package/exceptions/not-an-app-image.exception.js +15 -0
  57. package/exceptions/not-an-app-image.exception.js.map +1 -0
  58. package/exceptions/path-command.exception.js +18 -0
  59. package/exceptions/path-command.exception.js.map +1 -0
  60. package/exceptions/processes-not-exited.exception.js +19 -0
  61. package/exceptions/processes-not-exited.exception.js.map +1 -0
  62. package/exceptions/program.exception.js +18 -0
  63. package/exceptions/program.exception.js.map +1 -0
  64. package/exceptions/restart-arguments-not-written.exception.js +15 -0
  65. package/exceptions/restart-arguments-not-written.exception.js.map +1 -0
  66. package/exceptions/runtime-starter-ended.exception.js +15 -0
  67. package/exceptions/runtime-starter-ended.exception.js.map +1 -0
  68. package/exceptions/runtime-starter-failed.exception.js +17 -0
  69. package/exceptions/runtime-starter-failed.exception.js.map +1 -0
  70. package/exceptions/ship-it-not-found.exception.js +15 -0
  71. package/exceptions/ship-it-not-found.exception.js.map +1 -0
  72. package/exceptions/ship-it-not-removed.exception.js +16 -0
  73. package/exceptions/ship-it-not-removed.exception.js.map +1 -0
  74. package/exceptions/ship-it-unreadable.exception.js +16 -0
  75. package/exceptions/ship-it-unreadable.exception.js.map +1 -0
  76. package/exceptions/stale-update.exception.js +14 -0
  77. package/exceptions/stale-update.exception.js.map +1 -0
  78. package/exceptions/unusable-folder.exception.js +18 -0
  79. package/exceptions/unusable-folder.exception.js.map +1 -0
  80. package/exceptions/update-changed-before-handoff.exception.js +15 -0
  81. package/exceptions/update-changed-before-handoff.exception.js.map +1 -0
  82. package/exceptions/update-checker-unknown.exception.js +15 -0
  83. package/exceptions/update-checker-unknown.exception.js.map +1 -0
  84. package/exceptions/update-download-interrupted.exception.js +15 -0
  85. package/exceptions/update-download-interrupted.exception.js.map +1 -0
  86. package/exceptions/update-download-mismatch.exception.js +15 -0
  87. package/exceptions/update-download-mismatch.exception.js.map +1 -0
  88. package/exceptions/update-failed-unexpectedly.exception.js +15 -0
  89. package/exceptions/update-failed-unexpectedly.exception.js.map +1 -0
  90. package/exceptions/update-feed-redirected.exception.js +15 -0
  91. package/exceptions/update-feed-redirected.exception.js.map +1 -0
  92. package/exceptions/update-feed-refused.exception.js +17 -0
  93. package/exceptions/update-feed-refused.exception.js.map +1 -0
  94. package/exceptions/update-feed-unreachable.exception.js +15 -0
  95. package/exceptions/update-feed-unreachable.exception.js.map +1 -0
  96. package/exceptions/update-handoff.exception.js +14 -0
  97. package/exceptions/update-handoff.exception.js.map +1 -0
  98. package/exceptions/update-holder-not-found.exception.js +15 -0
  99. package/exceptions/update-holder-not-found.exception.js.map +1 -0
  100. package/exceptions/update-info-invalid.exception.js +15 -0
  101. package/exceptions/update-info-invalid.exception.js.map +1 -0
  102. package/exceptions/update-no-longer-offered.exception.js +17 -0
  103. package/exceptions/update-no-longer-offered.exception.js.map +1 -0
  104. package/exceptions/update-not-signed.exception.js +15 -0
  105. package/exceptions/update-not-signed.exception.js.map +1 -0
  106. package/exceptions/update-not-staged-in-time.exception.js +15 -0
  107. package/exceptions/update-not-staged-in-time.exception.js.map +1 -0
  108. package/exceptions/update-not-staged.exception.js +15 -0
  109. package/exceptions/update-not-staged.exception.js.map +1 -0
  110. package/exceptions/update-refused.exception.js +19 -0
  111. package/exceptions/update-refused.exception.js.map +1 -0
  112. package/exceptions/update-runtime-not-found.exception.js +17 -0
  113. package/exceptions/update-runtime-not-found.exception.js.map +1 -0
  114. package/exceptions/update-runtime-not-reached.exception.js +17 -0
  115. package/exceptions/update-runtime-not-reached.exception.js.map +1 -0
  116. package/exceptions/update-runtime-still-starting.exception.js +17 -0
  117. package/exceptions/update-runtime-still-starting.exception.js.map +1 -0
  118. package/exceptions/update-stop-failed-unexpectedly.exception.js +15 -0
  119. package/exceptions/update-stop-failed-unexpectedly.exception.js.map +1 -0
  120. package/exceptions/update-stop.exception.js +14 -0
  121. package/exceptions/update-stop.exception.js.map +1 -0
  122. package/exceptions/update-under-way.exception.js +15 -0
  123. package/exceptions/update-under-way.exception.js.map +1 -0
  124. package/exceptions/update-unsaved.exception.js +19 -0
  125. package/exceptions/update-unsaved.exception.js.map +1 -0
  126. package/exceptions/update.exception.js +14 -0
  127. package/exceptions/update.exception.js.map +1 -0
  128. package/exceptions/window-state-not-connected.exception.js +15 -0
  129. package/exceptions/window-state-not-connected.exception.js.map +1 -0
  130. package/exceptions/window-state-refused.exception.js +19 -0
  131. package/exceptions/window-state-refused.exception.js.map +1 -0
  132. package/exceptions/window-state-runtime-unreachable.exception.js +15 -0
  133. package/exceptions/window-state-runtime-unreachable.exception.js.map +1 -0
  134. package/exceptions/window-state-unavailable.exception.js +14 -0
  135. package/exceptions/window-state-unavailable.exception.js.map +1 -0
  136. package/exceptions/window-state.exception.js +14 -0
  137. package/exceptions/window-state.exception.js.map +1 -0
  138. package/exceptions/work-started-meanwhile.exception.js +17 -0
  139. package/exceptions/work-started-meanwhile.exception.js.map +1 -0
  140. package/interfaces/i-app-updater.js +9 -0
  141. package/interfaces/i-app-updater.js.map +1 -0
  142. package/interfaces/i-application-host.js +9 -0
  143. package/interfaces/i-application-host.js.map +1 -0
  144. package/interfaces/i-checked-path.js +9 -0
  145. package/interfaces/i-checked-path.js.map +1 -0
  146. package/interfaces/i-clipboard-host.js +9 -0
  147. package/interfaces/i-clipboard-host.js.map +1 -0
  148. package/interfaces/i-close-guard.js +9 -0
  149. package/interfaces/i-close-guard.js.map +1 -0
  150. package/interfaces/i-command-line-host.js +9 -0
  151. package/interfaces/i-command-line-host.js.map +1 -0
  152. package/interfaces/i-context-menu-params.js +9 -0
  153. package/interfaces/i-context-menu-params.js.map +1 -0
  154. package/interfaces/i-created-updater.js +9 -0
  155. package/interfaces/i-created-updater.js.map +1 -0
  156. package/interfaces/i-device-file-store.js +9 -0
  157. package/interfaces/i-device-file-store.js.map +1 -0
  158. package/interfaces/i-dialog-host.js +9 -0
  159. package/interfaces/i-dialog-host.js.map +1 -0
  160. package/interfaces/i-display-host.js +9 -0
  161. package/interfaces/i-display-host.js.map +1 -0
  162. package/interfaces/i-dock-host.js +9 -0
  163. package/interfaces/i-dock-host.js.map +1 -0
  164. package/interfaces/i-electron.js +9 -0
  165. package/interfaces/i-electron.js.map +1 -0
  166. package/interfaces/i-feed-net-session.js +9 -0
  167. package/interfaces/i-feed-net-session.js.map +1 -0
  168. package/interfaces/i-feed-response.js +9 -0
  169. package/interfaces/i-feed-response.js.map +1 -0
  170. package/interfaces/i-feed-runtime-options.js +9 -0
  171. package/interfaces/i-feed-runtime-options.js.map +1 -0
  172. package/interfaces/i-feed-web-request.js +9 -0
  173. package/interfaces/i-feed-web-request.js.map +1 -0
  174. package/interfaces/i-ipc-event.js +9 -0
  175. package/interfaces/i-ipc-event.js.map +1 -0
  176. package/interfaces/i-ipc-host.js +9 -0
  177. package/interfaces/i-ipc-host.js.map +1 -0
  178. package/interfaces/i-ipc-owners.js +9 -0
  179. package/interfaces/i-ipc-owners.js.map +1 -0
  180. package/interfaces/i-main-process-environment.js +9 -0
  181. package/interfaces/i-main-process-environment.js.map +1 -0
  182. package/interfaces/i-main-process-log.js +9 -0
  183. package/interfaces/i-main-process-log.js.map +1 -0
  184. package/interfaces/i-main-process-options.js +9 -0
  185. package/interfaces/i-main-process-options.js.map +1 -0
  186. package/interfaces/i-main-process-tray-parts.js +9 -0
  187. package/interfaces/i-main-process-tray-parts.js.map +1 -0
  188. package/interfaces/i-main-process-update-parts.js +9 -0
  189. package/interfaces/i-main-process-update-parts.js.map +1 -0
  190. package/interfaces/i-main-process-window.js +9 -0
  191. package/interfaces/i-main-process-window.js.map +1 -0
  192. package/interfaces/i-menu-host.js +9 -0
  193. package/interfaces/i-menu-host.js.map +1 -0
  194. package/interfaces/i-native-updater.js +9 -0
  195. package/interfaces/i-native-updater.js.map +1 -0
  196. package/interfaces/i-notification-host.js +9 -0
  197. package/interfaces/i-notification-host.js.map +1 -0
  198. package/interfaces/i-parent-port.js +9 -0
  199. package/interfaces/i-parent-port.js.map +1 -0
  200. package/interfaces/i-path-command-files.js +9 -0
  201. package/interfaces/i-path-command-files.js.map +1 -0
  202. package/interfaces/i-permission-host.js +9 -0
  203. package/interfaces/i-permission-host.js.map +1 -0
  204. package/interfaces/i-preload-channels.js +9 -0
  205. package/interfaces/i-preload-channels.js.map +1 -0
  206. package/interfaces/i-preload-settings.js +9 -0
  207. package/interfaces/i-preload-settings.js.map +1 -0
  208. package/interfaces/i-preventable-event.js +9 -0
  209. package/interfaces/i-preventable-event.js.map +1 -0
  210. package/interfaces/i-program-host.js +9 -0
  211. package/interfaces/i-program-host.js.map +1 -0
  212. package/interfaces/i-protocol-host.js +9 -0
  213. package/interfaces/i-protocol-host.js.map +1 -0
  214. package/interfaces/i-quit-control-parts.js +9 -0
  215. package/interfaces/i-quit-control-parts.js.map +1 -0
  216. package/interfaces/i-quit-host.js +9 -0
  217. package/interfaces/i-quit-host.js.map +1 -0
  218. package/interfaces/i-quit-prompt.js +9 -0
  219. package/interfaces/i-quit-prompt.js.map +1 -0
  220. package/interfaces/i-runtime-connection.js +9 -0
  221. package/interfaces/i-runtime-connection.js.map +1 -0
  222. package/interfaces/i-runtime-event-owners.js +9 -0
  223. package/interfaces/i-runtime-event-owners.js.map +1 -0
  224. package/interfaces/i-runtime-launcher.js +9 -0
  225. package/interfaces/i-runtime-launcher.js.map +1 -0
  226. package/interfaces/i-scheme-registry.js +9 -0
  227. package/interfaces/i-scheme-registry.js.map +1 -0
  228. package/interfaces/i-secret-storage-host.js +9 -0
  229. package/interfaces/i-secret-storage-host.js.map +1 -0
  230. package/interfaces/i-sender-frame.js +9 -0
  231. package/interfaces/i-sender-frame.js.map +1 -0
  232. package/interfaces/i-session-host.js +9 -0
  233. package/interfaces/i-session-host.js.map +1 -0
  234. package/interfaces/i-shell-host.js +9 -0
  235. package/interfaces/i-shell-host.js.map +1 -0
  236. package/interfaces/i-ship-it-process.js +9 -0
  237. package/interfaces/i-ship-it-process.js.map +1 -0
  238. package/interfaces/i-shortcut-host.js +9 -0
  239. package/interfaces/i-shortcut-host.js.map +1 -0
  240. package/interfaces/i-shown-path-files.js +9 -0
  241. package/interfaces/i-shown-path-files.js.map +1 -0
  242. package/interfaces/i-shown-path-status.js +9 -0
  243. package/interfaces/i-shown-path-status.js.map +1 -0
  244. package/interfaces/i-spell-check-host.js +9 -0
  245. package/interfaces/i-spell-check-host.js.map +1 -0
  246. package/interfaces/i-split-path.js +9 -0
  247. package/interfaces/i-split-path.js.map +1 -0
  248. package/interfaces/i-system-notification.js +9 -0
  249. package/interfaces/i-system-notification.js.map +1 -0
  250. package/interfaces/i-theme-host.js +9 -0
  251. package/interfaces/i-theme-host.js.map +1 -0
  252. package/interfaces/i-tray-actions.js +9 -0
  253. package/interfaces/i-tray-actions.js.map +1 -0
  254. package/interfaces/i-tray-host.js +9 -0
  255. package/interfaces/i-tray-host.js.map +1 -0
  256. package/interfaces/i-tray.js +9 -0
  257. package/interfaces/i-tray.js.map +1 -0
  258. package/interfaces/i-update-check-lock.js +9 -0
  259. package/interfaces/i-update-check-lock.js.map +1 -0
  260. package/interfaces/i-update-handoff.js +9 -0
  261. package/interfaces/i-update-handoff.js.map +1 -0
  262. package/interfaces/i-update-host.js +9 -0
  263. package/interfaces/i-update-host.js.map +1 -0
  264. package/interfaces/i-update-setup.js +9 -0
  265. package/interfaces/i-update-setup.js.map +1 -0
  266. package/interfaces/i-update-target.js +9 -0
  267. package/interfaces/i-update-target.js.map +1 -0
  268. package/interfaces/i-updater.js +9 -0
  269. package/interfaces/i-updater.js.map +1 -0
  270. package/interfaces/i-utility-process-host.js +9 -0
  271. package/interfaces/i-utility-process-host.js.map +1 -0
  272. package/interfaces/i-utility-process.js +9 -0
  273. package/interfaces/i-utility-process.js.map +1 -0
  274. package/interfaces/i-web-view-attach-params.js +9 -0
  275. package/interfaces/i-web-view-attach-params.js.map +1 -0
  276. package/interfaces/i-web-view-attach-preferences.js +9 -0
  277. package/interfaces/i-web-view-attach-preferences.js.map +1 -0
  278. package/interfaces/i-web-view-contents.js +9 -0
  279. package/interfaces/i-web-view-contents.js.map +1 -0
  280. package/interfaces/i-web-view-debugger.js +9 -0
  281. package/interfaces/i-web-view-debugger.js.map +1 -0
  282. package/interfaces/i-web-view-engine.js +9 -0
  283. package/interfaces/i-web-view-engine.js.map +1 -0
  284. package/interfaces/i-web-view-guest.js +9 -0
  285. package/interfaces/i-web-view-guest.js.map +1 -0
  286. package/interfaces/i-web-view-input-event.js +9 -0
  287. package/interfaces/i-web-view-input-event.js.map +1 -0
  288. package/interfaces/i-web-view-input.js +9 -0
  289. package/interfaces/i-web-view-input.js.map +1 -0
  290. package/interfaces/i-web-view-key-event.js +9 -0
  291. package/interfaces/i-web-view-key-event.js.map +1 -0
  292. package/interfaces/i-web-view-redirect.js +9 -0
  293. package/interfaces/i-web-view-redirect.js.map +1 -0
  294. package/interfaces/i-web-view-request.js +9 -0
  295. package/interfaces/i-web-view-request.js.map +1 -0
  296. package/interfaces/i-web-view-session.js +9 -0
  297. package/interfaces/i-web-view-session.js.map +1 -0
  298. package/interfaces/i-window-contents.js +9 -0
  299. package/interfaces/i-window-contents.js.map +1 -0
  300. package/interfaces/i-window-navigation.js +9 -0
  301. package/interfaces/i-window-navigation.js.map +1 -0
  302. package/interfaces/i-window-open-details.js +9 -0
  303. package/interfaces/i-window-open-details.js.map +1 -0
  304. package/interfaces/i-window-session.js +9 -0
  305. package/interfaces/i-window-session.js.map +1 -0
  306. package/interfaces/i-window-state-store.js +9 -0
  307. package/interfaces/i-window-state-store.js.map +1 -0
  308. package/main.js +160 -0
  309. package/main.js.map +1 -0
  310. package/models/caught-failure.js +15 -0
  311. package/models/caught-failure.js.map +1 -0
  312. package/models/detached-start-reply.js +51 -0
  313. package/models/detached-start-reply.js.map +1 -0
  314. package/models/detached-start-request.js +45 -0
  315. package/models/detached-start-request.js.map +1 -0
  316. package/models/error-code.js +22 -0
  317. package/models/error-code.js.map +1 -0
  318. package/models/feed-source.js +32 -0
  319. package/models/feed-source.js.map +1 -0
  320. package/models/file-grant-request.js +35 -0
  321. package/models/file-grant-request.js.map +1 -0
  322. package/models/file-path-choice.js +38 -0
  323. package/models/file-path-choice.js.map +1 -0
  324. package/models/issued-files.js +21 -0
  325. package/models/issued-files.js.map +1 -0
  326. package/models/known-device.js +32 -0
  327. package/models/known-device.js.map +1 -0
  328. package/models/longest-text.js +35 -0
  329. package/models/longest-text.js.map +1 -0
  330. package/models/main-process-phase.js +13 -0
  331. package/models/main-process-phase.js.map +1 -0
  332. package/models/main-process-settings.js +34 -0
  333. package/models/main-process-settings.js.map +1 -0
  334. package/models/menu-bar-menu.js +25 -0
  335. package/models/menu-bar-menu.js.map +1 -0
  336. package/models/menu-bar-row.js +49 -0
  337. package/models/menu-bar-row.js.map +1 -0
  338. package/models/menu-bar.js +20 -0
  339. package/models/menu-bar.js.map +1 -0
  340. package/models/offered-file.js +50 -0
  341. package/models/offered-file.js.map +1 -0
  342. package/models/pending-quit.js +26 -0
  343. package/models/pending-quit.js.map +1 -0
  344. package/models/preload-settings.js +21 -0
  345. package/models/preload-settings.js.map +1 -0
  346. package/models/quit-question.js +22 -0
  347. package/models/quit-question.js.map +1 -0
  348. package/models/screen-area.js +31 -0
  349. package/models/screen-area.js.map +1 -0
  350. package/models/sender-info.js +18 -0
  351. package/models/sender-info.js.map +1 -0
  352. package/models/started-program.js +17 -0
  353. package/models/started-program.js.map +1 -0
  354. package/models/startup-state.js +45 -0
  355. package/models/startup-state.js.map +1 -0
  356. package/models/taskbar-identity.js +48 -0
  357. package/models/taskbar-identity.js.map +1 -0
  358. package/models/update-ready-record.js +37 -0
  359. package/models/update-ready-record.js.map +1 -0
  360. package/models/update-status.js +40 -0
  361. package/models/update-status.js.map +1 -0
  362. package/models/update-stop-result.js +22 -0
  363. package/models/update-stop-result.js.map +1 -0
  364. package/models/update-version.js +43 -0
  365. package/models/update-version.js.map +1 -0
  366. package/models/web-view-history.js +19 -0
  367. package/models/web-view-history.js.map +1 -0
  368. package/models/window-appearance.js +52 -0
  369. package/models/window-appearance.js.map +1 -0
  370. package/models/window-page.js +23 -0
  371. package/models/window-page.js.map +1 -0
  372. package/models/window-registry.js +85 -0
  373. package/models/window-registry.js.map +1 -0
  374. package/models/window-state.js +93 -0
  375. package/models/window-state.js.map +1 -0
  376. package/package.json +78 -3
  377. package/preload.cjs +186 -0
  378. package/preload.cjs.map +1 -0
  379. package/resources.js +1549 -0
  380. package/resources.js.map +1 -0
  381. package/services/agent-controller.js +61 -0
  382. package/services/agent-controller.js.map +1 -0
  383. package/services/app-icons.js +49 -0
  384. package/services/app-icons.js.map +1 -0
  385. package/services/app-image-environment.js +34 -0
  386. package/services/app-image-environment.js.map +1 -0
  387. package/services/app-image-handoff.js +33 -0
  388. package/services/app-image-handoff.js.map +1 -0
  389. package/services/app-image-replacement.js +82 -0
  390. package/services/app-image-replacement.js.map +1 -0
  391. package/services/app-image-restart.js +71 -0
  392. package/services/app-image-restart.js.map +1 -0
  393. package/services/app-surface-feed.js +114 -0
  394. package/services/app-surface-feed.js.map +1 -0
  395. package/services/appearance-keeper.js +67 -0
  396. package/services/appearance-keeper.js.map +1 -0
  397. package/services/application-menu.js +14 -0
  398. package/services/application-menu.js.map +1 -0
  399. package/services/child-program-host.js +59 -0
  400. package/services/child-program-host.js.map +1 -0
  401. package/services/clipboard-copier.js +82 -0
  402. package/services/clipboard-copier.js.map +1 -0
  403. package/services/close-coordinator.js +47 -0
  404. package/services/close-coordinator.js.map +1 -0
  405. package/services/command-installer.js +58 -0
  406. package/services/command-installer.js.map +1 -0
  407. package/services/daily-check-mark.js +61 -0
  408. package/services/daily-check-mark.js.map +1 -0
  409. package/services/debian-handoff.js +41 -0
  410. package/services/debian-handoff.js.map +1 -0
  411. package/services/debian-package.js +24 -0
  412. package/services/debian-package.js.map +1 -0
  413. package/services/detached-start.js +27 -0
  414. package/services/detached-start.js.map +1 -0
  415. package/services/device-file-store.js +45 -0
  416. package/services/device-file-store.js.map +1 -0
  417. package/services/device-identity.js +39 -0
  418. package/services/device-identity.js.map +1 -0
  419. package/services/device-setting-follower.js +61 -0
  420. package/services/device-setting-follower.js.map +1 -0
  421. package/services/device-state.js +51 -0
  422. package/services/device-state.js.map +1 -0
  423. package/services/electron-web-view-contents.js +96 -0
  424. package/services/electron-web-view-contents.js.map +1 -0
  425. package/services/electron-web-view-engine.js +42 -0
  426. package/services/electron-web-view-engine.js.map +1 -0
  427. package/services/electron-web-view-session.js +47 -0
  428. package/services/electron-web-view-session.js.map +1 -0
  429. package/services/feed-provider.js +84 -0
  430. package/services/feed-provider.js.map +1 -0
  431. package/services/feed-request-guard.js +63 -0
  432. package/services/feed-request-guard.js.map +1 -0
  433. package/services/feed-session.js +30 -0
  434. package/services/feed-session.js.map +1 -0
  435. package/services/feed-updater.js +119 -0
  436. package/services/feed-updater.js.map +1 -0
  437. package/services/file-dialogs.js +180 -0
  438. package/services/file-dialogs.js.map +1 -0
  439. package/services/file-grant-issuer.js +119 -0
  440. package/services/file-grant-issuer.js.map +1 -0
  441. package/services/file-presence.js +14 -0
  442. package/services/file-presence.js.map +1 -0
  443. package/services/installer-handoff.js +75 -0
  444. package/services/installer-handoff.js.map +1 -0
  445. package/services/installer-start.js +35 -0
  446. package/services/installer-start.js.map +1 -0
  447. package/services/ipc-router.js +114 -0
  448. package/services/ipc-router.js.map +1 -0
  449. package/services/layout-keeper.js +52 -0
  450. package/services/layout-keeper.js.map +1 -0
  451. package/services/local-window-state-store.js +38 -0
  452. package/services/local-window-state-store.js.map +1 -0
  453. package/services/main-process-log.js +81 -0
  454. package/services/main-process-log.js.map +1 -0
  455. package/services/main-process-record.js +19 -0
  456. package/services/main-process-record.js.map +1 -0
  457. package/services/main-process-recovery.js +98 -0
  458. package/services/main-process-recovery.js.map +1 -0
  459. package/services/main-process-services.js +34 -0
  460. package/services/main-process-services.js.map +1 -0
  461. package/services/main-process-tray.js +64 -0
  462. package/services/main-process-tray.js.map +1 -0
  463. package/services/main-process-updates.js +69 -0
  464. package/services/main-process-updates.js.map +1 -0
  465. package/services/main-process.js +530 -0
  466. package/services/main-process.js.map +1 -0
  467. package/services/menu-bar-template.js +78 -0
  468. package/services/menu-bar-template.js.map +1 -0
  469. package/services/mirrored-window-state-store.js +26 -0
  470. package/services/mirrored-window-state-store.js.map +1 -0
  471. package/services/open-web-view.js +784 -0
  472. package/services/open-web-view.js.map +1 -0
  473. package/services/open-web-view.resources.js +13 -0
  474. package/services/open-web-view.resources.js.map +1 -0
  475. package/services/open-window.js +155 -0
  476. package/services/open-window.js.map +1 -0
  477. package/services/opened-file-policy.js +46 -0
  478. package/services/opened-file-policy.js.map +1 -0
  479. package/services/path-command.js +78 -0
  480. package/services/path-command.js.map +1 -0
  481. package/services/product-app-adapter.js +30 -0
  482. package/services/product-app-adapter.js.map +1 -0
  483. package/services/publisher-check.js +78 -0
  484. package/services/publisher-check.js.map +1 -0
  485. package/services/quit-control.js +78 -0
  486. package/services/quit-control.js.map +1 -0
  487. package/services/quit-coordinator.js +98 -0
  488. package/services/quit-coordinator.js.map +1 -0
  489. package/services/quit-flow.js +59 -0
  490. package/services/quit-flow.js.map +1 -0
  491. package/services/restart-arguments.js +58 -0
  492. package/services/restart-arguments.js.map +1 -0
  493. package/services/runtime-caller.js +31 -0
  494. package/services/runtime-caller.js.map +1 -0
  495. package/services/runtime-events.js +100 -0
  496. package/services/runtime-events.js.map +1 -0
  497. package/services/runtime-requests.js +92 -0
  498. package/services/runtime-requests.js.map +1 -0
  499. package/services/runtime-startup.js +228 -0
  500. package/services/runtime-startup.js.map +1 -0
  501. package/services/runtime-window-state-store.js +50 -0
  502. package/services/runtime-window-state-store.js.map +1 -0
  503. package/services/secret-answerer.js +57 -0
  504. package/services/secret-answerer.js.map +1 -0
  505. package/services/sender-policy.js +24 -0
  506. package/services/sender-policy.js.map +1 -0
  507. package/services/shared-file-server.js +71 -0
  508. package/services/shared-file-server.js.map +1 -0
  509. package/services/shell-opener.js +88 -0
  510. package/services/shell-opener.js.map +1 -0
  511. package/services/ship-it-process.js +54 -0
  512. package/services/ship-it-process.js.map +1 -0
  513. package/services/shown-file-policy.js +95 -0
  514. package/services/shown-file-policy.js.map +1 -0
  515. package/services/spell-checker.js +62 -0
  516. package/services/spell-checker.js.map +1 -0
  517. package/services/spelling-dictionaries.js +58 -0
  518. package/services/spelling-dictionaries.js.map +1 -0
  519. package/services/squirrel-handoff.js +98 -0
  520. package/services/squirrel-handoff.js.map +1 -0
  521. package/services/stop-key-controller.js +97 -0
  522. package/services/stop-key-controller.js.map +1 -0
  523. package/services/system-notifier.js +103 -0
  524. package/services/system-notifier.js.map +1 -0
  525. package/services/terminal-relaunch.js +52 -0
  526. package/services/terminal-relaunch.js.map +1 -0
  527. package/services/tray-controller.js +164 -0
  528. package/services/tray-controller.js.map +1 -0
  529. package/services/tray-host-watcher.js +86 -0
  530. package/services/tray-host-watcher.js.map +1 -0
  531. package/services/tray-menu-template.js +42 -0
  532. package/services/tray-menu-template.js.map +1 -0
  533. package/services/tray-notices.js +76 -0
  534. package/services/tray-notices.js.map +1 -0
  535. package/services/tray-refresher.js +72 -0
  536. package/services/tray-refresher.js.map +1 -0
  537. package/services/update-barrier-gate.js +78 -0
  538. package/services/update-barrier-gate.js.map +1 -0
  539. package/services/update-barrier-watch.js +83 -0
  540. package/services/update-barrier-watch.js.map +1 -0
  541. package/services/update-bridge.js +86 -0
  542. package/services/update-bridge.js.map +1 -0
  543. package/services/update-check-lock.js +120 -0
  544. package/services/update-check-lock.js.map +1 -0
  545. package/services/update-controller.js +325 -0
  546. package/services/update-controller.js.map +1 -0
  547. package/services/update-restart.js +139 -0
  548. package/services/update-restart.js.map +1 -0
  549. package/services/update-save-coordinator.js +48 -0
  550. package/services/update-save-coordinator.js.map +1 -0
  551. package/services/update-stop.js +222 -0
  552. package/services/update-stop.js.map +1 -0
  553. package/services/update-target-connector.js +84 -0
  554. package/services/update-target-connector.js.map +1 -0
  555. package/services/update-work-question.js +84 -0
  556. package/services/update-work-question.js.map +1 -0
  557. package/services/utility-process-starter.js +47 -0
  558. package/services/utility-process-starter.js.map +1 -0
  559. package/services/web-view-attach-guard.js +41 -0
  560. package/services/web-view-attach-guard.js.map +1 -0
  561. package/services/web-view-bridge.js +55 -0
  562. package/services/web-view-bridge.js.map +1 -0
  563. package/services/web-view-event-backlog.js +38 -0
  564. package/services/web-view-event-backlog.js.map +1 -0
  565. package/services/web-view-event-cut.js +42 -0
  566. package/services/web-view-event-cut.js.map +1 -0
  567. package/services/web-view-host.js +340 -0
  568. package/services/web-view-host.js.map +1 -0
  569. package/services/web-view-key-input.js +37 -0
  570. package/services/web-view-key-input.js.map +1 -0
  571. package/services/web-view-origin-check.js +150 -0
  572. package/services/web-view-origin-check.js.map +1 -0
  573. package/services/web-view-origin-check.resources.js +46 -0
  574. package/services/web-view-origin-check.resources.js.map +1 -0
  575. package/services/window-bounds-keeper.js +145 -0
  576. package/services/window-bounds-keeper.js.map +1 -0
  577. package/services/window-controls.js +97 -0
  578. package/services/window-controls.js.map +1 -0
  579. package/services/window-error-limit.js +32 -0
  580. package/services/window-error-limit.js.map +1 -0
  581. package/services/window-factory.js +87 -0
  582. package/services/window-factory.js.map +1 -0
  583. package/services/window-placement.js +67 -0
  584. package/services/window-placement.js.map +1 -0
  585. package/services/window-recovery.js +138 -0
  586. package/services/window-recovery.js.map +1 -0
  587. package/services/window-text-log.js +37 -0
  588. package/services/window-text-log.js.map +1 -0
  589. package/utility-entry.js +11 -0
  590. package/utility-entry.js.map +1 -0
@@ -0,0 +1,45 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import "@noldova/context.core";
9
+ import { ArgumentException } from "@noldova/context.exceptions";
10
+ import { JsonException, JsonReader } from "@noldova/context.json";
11
+ import { Resources } from "../resources.js";
12
+ export class DetachedStartRequest {
13
+ executable;
14
+ launchArguments;
15
+ errorFile;
16
+ environment;
17
+ constructor(executable, launchArguments, errorFile, environment) {
18
+ ArgumentException.throwIfNullOrWhitespace(executable, Resources.executableField);
19
+ ArgumentException.throwIfNullOrWhitespace(errorFile, Resources.errorFileField);
20
+ this.executable = executable;
21
+ this.launchArguments = [...launchArguments];
22
+ this.errorFile = errorFile;
23
+ this.environment = Object.fromEntries(Object.entries(environment).filter((t) => Object.isString(t[1])));
24
+ }
25
+ static fromJson(value) {
26
+ const json = JsonReader.fromValue(value);
27
+ const environment = json.readObject(Resources.environmentField);
28
+ const variables = {};
29
+ for (const [name, variable] of Object.entries(environment.toJson())) {
30
+ if (!Object.isString(variable))
31
+ throw new JsonException(Resources.environmentNotText, Resources.formatJsonPath(environment.path, name));
32
+ variables[name] = variable;
33
+ }
34
+ return new DetachedStartRequest(json.readNonBlankString(Resources.executableField), json.readStringArray(Resources.argumentsField), json.readNonBlankString(Resources.errorFileField), variables);
35
+ }
36
+ toJson() {
37
+ return {
38
+ [Resources.executableField]: this.executable,
39
+ [Resources.argumentsField]: [...this.launchArguments],
40
+ [Resources.errorFileField]: this.errorFile,
41
+ [Resources.environmentField]: { ...this.environment }
42
+ };
43
+ }
44
+ }
45
+ //# sourceMappingURL=detached-start-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detached-start-request.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/detached-start-request.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAmB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,oBAAoB;IACf,UAAU,CAAS;IACnB,eAAe,CAAoB;IACnC,SAAS,CAAS;IAClB,WAAW,CAAmC;IAE9D,YAAmB,UAAkB,EAAE,eAAkC,EAAE,SAAiB,EAAE,WAA8B;QAC1H,iBAAiB,CAAC,uBAAuB,CAAC,UAAU,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;QACjF,iBAAiB,CAAC,uBAAuB,CAAC,SAAS,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;QAE/E,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,eAAe,GAAG,CAAC,GAAG,eAAe,CAAC,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAyB,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjI,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc;QACnC,MAAM,IAAI,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACzC,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QAChE,MAAM,SAAS,GAA2B,EAAE,CAAC;QAC7C,KAAK,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC;YACpE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;gBAC5B,MAAM,IAAI,aAAa,CAAC,SAAS,CAAC,kBAAkB,EAAE,SAAS,CAAC,cAAc,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;YAC1G,SAAS,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC;QAC7B,CAAC;QACD,OAAO,IAAI,oBAAoB,CAC7B,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,eAAe,CAAC,EAClD,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,cAAc,CAAC,EAC9C,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,cAAc,CAAC,EACjD,SAAS,CAAC,CAAC;IACf,CAAC;IAEM,MAAM;QACX,OAAO;YACL,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,IAAI,CAAC,UAAU;YAC5C,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;YACrD,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,SAAS;YAC1C,CAAC,SAAS,CAAC,gBAAgB,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE;SACtD,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import "@noldova/context.core";
9
+ import { Resources } from "../resources.js";
10
+ export class ErrorCode {
11
+ static of(error) {
12
+ if (!(error instanceof Error) || !(Resources.errorCodeField in error))
13
+ return undefined;
14
+ const code = error[Resources.errorCodeField];
15
+ return Object.isString(code) ? code : undefined;
16
+ }
17
+ static isOneOf(error, codes) {
18
+ const code = ErrorCode.of(error);
19
+ return !Object.isUndefined(code) && codes.includes(code);
20
+ }
21
+ }
22
+ //# sourceMappingURL=error-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-code.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/error-code.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,SAAS;IACb,MAAM,CAAC,EAAE,CAAC,KAAc;QAC7B,IAAI,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,cAAc,IAAI,KAAK,CAAC;YACnE,OAAO,SAAS,CAAC;QACnB,MAAM,IAAI,GAAY,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QACtD,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IAClD,CAAC;IAEM,MAAM,CAAC,OAAO,CAAC,KAAc,EAAE,KAAwB;QAC5D,MAAM,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QACjC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;CACF"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import "@noldova/context.core";
9
+ import { Resources } from "../resources.js";
10
+ export class FeedSource {
11
+ feed;
12
+ channelFile;
13
+ packageFile;
14
+ fetchAsync;
15
+ timeout;
16
+ constructor(feed, channelFile, packageFile, fetchAsync, timeout = t => AbortSignal.timeout(t)) {
17
+ this.feed = feed;
18
+ this.channelFile = channelFile;
19
+ this.packageFile = packageFile;
20
+ this.fetchAsync = fetchAsync;
21
+ this.timeout = timeout;
22
+ }
23
+ static create(feed, productName, platform, architecture, fetchAsync, isDebianPackage = false) {
24
+ const target = Resources.updateTargets.get(platform);
25
+ if (Object.isNull(feed) || Object.isUndefined(target) || !Resources.updateArchitectures.includes(architecture))
26
+ return null;
27
+ const [name, extension] = target;
28
+ const packageExtension = isDebianPackage && platform === Resources.linuxPlatform ? Resources.debianPackageExtension : extension;
29
+ return new FeedSource(feed, Resources.formatChannelFile(name, architecture), Resources.formatPackageFile(productName, name, architecture, packageExtension), fetchAsync);
30
+ }
31
+ }
32
+ //# sourceMappingURL=feed-source.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feed-source.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/feed-source.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAG/B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,UAAU;IACL,IAAI,CAAS;IACb,WAAW,CAAS;IACpB,WAAW,CAAS;IACpB,UAAU,CAA+D;IACzE,OAAO,CAAwC;IAE/D,YAAmB,IAAY,EAAE,WAAmB,EAAE,WAAmB,EAAE,UAAwE,EACjJ,UAAiD,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;QAC5E,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,IAAmB,EAAE,WAAmB,EAAE,QAAgB,EAAE,YAAoB,EAAE,UAAwE,EAC7K,kBAA2B,KAAK;QAChC,MAAM,MAAM,GAAG,SAAS,CAAC,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACrD,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,QAAQ,CAAC,YAAY,CAAC;YAC5G,OAAO,IAAI,CAAC;QACd,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,MAAM,CAAC;QACjC,MAAM,gBAAgB,GAAG,eAAe,IAAI,QAAQ,KAAK,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;QAChI,OAAO,IAAI,UAAU,CAAC,IAAI,EAAE,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,YAAY,CAAC,EAAE,SAAS,CAAC,iBAAiB,CAAC,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,gBAAgB,CAAC,EAAE,UAAU,CAAC,CAAC;IAC3K,CAAC;CACF"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import "@noldova/context.core";
9
+ import { JsonReader } from "@noldova/context.json";
10
+ import { FileGrant } from "@noldova/desktop.protocol";
11
+ import { Resources } from "../resources.js";
12
+ export class FileGrantRequest {
13
+ module;
14
+ lifetime;
15
+ isMultiple;
16
+ constructor(module, lifetime, isMultiple) {
17
+ this.module = module;
18
+ this.lifetime = lifetime;
19
+ this.isMultiple = isMultiple;
20
+ }
21
+ static read(module, options) {
22
+ if (!Object.isString(module) || !Resources.moduleIdPattern.test(module) || module === Resources.shellOwner)
23
+ return null;
24
+ try {
25
+ const reader = JsonReader.fromValue(options);
26
+ const lifetime = reader.hasField(Resources.lifetimeField) ? reader.readInteger(Resources.lifetimeField) : FileGrant.maximumLifetime;
27
+ const isMultiple = reader.hasField(Resources.multipleField) && reader.readBoolean(Resources.multipleField);
28
+ return lifetime > 0 && lifetime <= FileGrant.maximumLifetime ? new FileGrantRequest(module, lifetime, isMultiple) : null;
29
+ }
30
+ catch {
31
+ return null;
32
+ }
33
+ }
34
+ }
35
+ //# sourceMappingURL=file-grant-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-grant-request.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/file-grant-request.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,gBAAgB;IACX,MAAM,CAAS;IACf,QAAQ,CAAS;IACjB,UAAU,CAAU;IAEpC,YAAmB,MAAc,EAAE,QAAgB,EAAE,UAAmB;QACtE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,IAAI,CAAC,MAAe,EAAE,OAAgB;QAClD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,MAAM,KAAK,SAAS,CAAC,UAAU;YACxG,OAAO,IAAI,CAAC;QACd,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAC7C,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC;YACpI,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;YAC3G,OAAO,QAAQ,GAAG,CAAC,IAAI,QAAQ,IAAI,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,gBAAgB,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC3H,CAAC;QACD,MAAM,CAAC;YACL,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import path from "node:path";
9
+ import "@noldova/context.core";
10
+ import { JsonReader } from "@noldova/context.json";
11
+ import { Resources } from "../resources.js";
12
+ export class FilePathChoice {
13
+ extensions;
14
+ folder;
15
+ constructor(extensions, folder) {
16
+ this.extensions = extensions;
17
+ this.folder = folder;
18
+ }
19
+ static read(options) {
20
+ try {
21
+ const reader = JsonReader.fromValue(options);
22
+ const extensions = reader.hasField(Resources.extensionsField) ? FilePathChoice.readExtensions(reader.readStringArray(Resources.extensionsField)) : [];
23
+ const folder = reader.hasField(Resources.folderField) ? reader.readNullableString(Resources.folderField) : null;
24
+ if (Object.isNull(extensions))
25
+ return null;
26
+ if (Object.isNull(folder))
27
+ return new FilePathChoice(extensions, null);
28
+ return !Resources.controlCharacterPattern.test(folder) && path.isAbsolute(folder) ? new FilePathChoice(extensions, folder) : null;
29
+ }
30
+ catch {
31
+ return null;
32
+ }
33
+ }
34
+ static readExtensions(value) {
35
+ return value.length > 0 && value.length <= Resources.maximumFileExtensions && value.every(t => Resources.fileExtensionPattern.test(t)) ? value : null;
36
+ }
37
+ }
38
+ //# sourceMappingURL=file-path-choice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-path-choice.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/file-path-choice.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,cAAc;IACT,UAAU,CAAoB;IAC9B,MAAM,CAAgB;IAEtC,YAAmB,UAA6B,EAAE,MAAqB;QACrE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEM,MAAM,CAAC,IAAI,CAAC,OAAgB;QACjC,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAC7C,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,cAAc,CAAC,MAAM,CAAC,eAAe,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACtJ,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YAChH,IAAI,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;gBAC3B,OAAO,IAAI,CAAC;YACd,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;gBACvB,OAAO,IAAI,cAAc,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;YAC9C,OAAO,CAAC,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACpI,CAAC;QACD,MAAM,CAAC;YACL,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,cAAc,CAAC,KAAwB;QACpD,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,CAAC,qBAAqB,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IACxJ,CAAC;CACF"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Resources } from "../resources.js";
9
+ export class IssuedFiles {
10
+ static none = new IssuedFiles([], []);
11
+ granted;
12
+ refused;
13
+ constructor(granted, refused) {
14
+ this.granted = granted;
15
+ this.refused = refused;
16
+ }
17
+ toJson() {
18
+ return { [Resources.grantedField]: [...this.granted], [Resources.refusedField]: [...this.refused] };
19
+ }
20
+ }
21
+ //# sourceMappingURL=issued-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issued-files.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/issued-files.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,WAAW;IACf,MAAM,CAAU,IAAI,GAAgB,IAAI,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAEnD,OAAO,CAAwB;IAC/B,OAAO,CAAoB;IAE3C,YAAmB,OAA8B,EAAE,OAA0B;QAC3E,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;IACtG,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Resources } from "../resources.js";
9
+ export class KnownDevice {
10
+ identity;
11
+ known;
12
+ constructor() {
13
+ this.identity = Promise.resolve(null);
14
+ this.known = undefined;
15
+ }
16
+ get current() {
17
+ return this.known;
18
+ }
19
+ readAsync() {
20
+ return this.identity;
21
+ }
22
+ begin(read, log) {
23
+ this.identity = read.then(t => {
24
+ this.known = t;
25
+ return t;
26
+ }).catch((error) => {
27
+ log(Resources.formatDeviceUnavailable(String(error)));
28
+ return null;
29
+ });
30
+ }
31
+ }
32
+ //# sourceMappingURL=known-device.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"known-device.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/known-device.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,WAAW;IACd,QAAQ,CAAyB;IACjC,KAAK,CAAqB;IAElC;QACE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;IACzB,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAEM,SAAS;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAEM,KAAK,CAAC,IAAqB,EAAE,GAA2B;QAC7D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;YAC5B,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;YACf,OAAO,CAAC,CAAC;QACX,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;YAC1B,GAAG,CAAC,SAAS,CAAC,uBAAuB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACtD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import "@noldova/context.core";
9
+ export class LongestText {
10
+ path;
11
+ text;
12
+ constructor(path, text) {
13
+ this.path = path;
14
+ this.text = text;
15
+ }
16
+ shorten(params, excess) {
17
+ return this.replaceIn(params, 0, this.text.slice(0, Math.max(0, this.text.length - excess)));
18
+ }
19
+ replaceIn(holder, depth, text) {
20
+ return Object.fromEntries(Object.entries(holder).map(([key, item]) => [key, this.replaceAt(key, item, depth, text)]));
21
+ }
22
+ replaceAt(key, item, depth, text) {
23
+ if (this.path.at(depth) !== key)
24
+ return item;
25
+ if (depth === this.path.length - 1)
26
+ return text;
27
+ if (!Object.isObject(item))
28
+ return item;
29
+ return LongestText.isList(item) ? item.map((t, index) => this.replaceAt(String(index), t, depth + 1, text)) : this.replaceIn(item, depth + 1, text);
30
+ }
31
+ static isList(value) {
32
+ return Array.isArray(value);
33
+ }
34
+ }
35
+ //# sourceMappingURL=longest-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"longest-text.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/longest-text.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAG/B,MAAM,OAAO,WAAW;IACN,IAAI,CAAoB;IACxB,IAAI,CAAS;IAE7B,YAAmB,IAAuB,EAAE,IAAY;QACtD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAEM,OAAO,CAAC,MAAkB,EAAE,MAAc;QAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IAC/F,CAAC;IAEO,SAAS,CAAC,MAAkB,EAAE,KAAa,EAAE,IAAY;QAC/D,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,EAAuB,EAAE,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7I,CAAC;IAEO,SAAS,CAAC,GAAW,EAAE,IAAe,EAAE,KAAa,EAAE,IAAY;QACzE,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG;YAC7B,OAAO,IAAI,CAAC;QACd,IAAI,KAAK,KAAK,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;YAChC,OAAO,IAAI,CAAC;QACd,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;YACxB,OAAO,IAAI,CAAC;QACd,OAAO,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;IACtJ,CAAC;IAEO,MAAM,CAAC,MAAM,CAAC,KAAwC;QAC5D,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export class MainProcessPhase {
9
+ hasPassedBarrier = false;
10
+ isReady = false;
11
+ isExiting = false;
12
+ }
13
+ //# sourceMappingURL=main-process-phase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main-process-phase.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/main-process-phase.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,gBAAgB;IACpB,gBAAgB,GAAY,KAAK,CAAC;IAClC,OAAO,GAAY,KAAK,CAAC;IACzB,SAAS,GAAY,KAAK,CAAC;CACnC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { join } from "node:path";
9
+ import { pathToFileURL } from "node:url";
10
+ import { ArgumentException } from "@noldova/context.exceptions";
11
+ import { Resources } from "../resources.js";
12
+ export class MainProcessSettings {
13
+ platform;
14
+ windowIndexPath;
15
+ preloadPath;
16
+ constructor(platform, windowIndexPath, preloadPath) {
17
+ ArgumentException.throwIfNullOrWhitespace(platform, Resources.platformParameter);
18
+ ArgumentException.throwIfNullOrWhitespace(windowIndexPath, Resources.windowIndexParameter);
19
+ ArgumentException.throwIfNullOrWhitespace(preloadPath, Resources.preloadParameter);
20
+ this.platform = platform;
21
+ this.windowIndexPath = windowIndexPath;
22
+ this.preloadPath = preloadPath;
23
+ }
24
+ static fromModule(moduleDirectory, platform) {
25
+ return new MainProcessSettings(platform, join(moduleDirectory, ...Resources.repositoryRootSegments, ...Resources.windowIndexSegments), join(moduleDirectory, Resources.preloadFileName));
26
+ }
27
+ get windowUrl() {
28
+ return pathToFileURL(this.windowIndexPath).href;
29
+ }
30
+ get isMac() {
31
+ return this.platform === Resources.macPlatform;
32
+ }
33
+ }
34
+ //# sourceMappingURL=main-process-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main-process-settings.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/main-process-settings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,mBAAmB;IACd,QAAQ,CAAS;IACjB,eAAe,CAAS;IACxB,WAAW,CAAS;IAEpC,YAAmB,QAAgB,EAAE,eAAuB,EAAE,WAAmB;QAC/E,iBAAiB,CAAC,uBAAuB,CAAC,QAAQ,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC;QACjF,iBAAiB,CAAC,uBAAuB,CAAC,eAAe,EAAE,SAAS,CAAC,oBAAoB,CAAC,CAAC;QAC3F,iBAAiB,CAAC,uBAAuB,CAAC,WAAW,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;QAEnF,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,eAAuB,EAAE,QAAgB;QAChE,OAAO,IAAI,mBAAmB,CAC5B,QAAQ,EACR,IAAI,CAAC,eAAe,EAAE,GAAG,SAAS,CAAC,sBAAsB,EAAE,GAAG,SAAS,CAAC,mBAAmB,CAAC,EAC5F,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC;IACtD,CAAC;IAED,IAAW,SAAS;QAClB,OAAO,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC;IAClD,CAAC;IAED,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,WAAW,CAAC;IACjD,CAAC;CACF"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { JsonReader } from "@noldova/context.json";
9
+ import { Resources } from "../resources.js";
10
+ import { MenuBarRow } from "./menu-bar-row.js";
11
+ export class MenuBarMenu {
12
+ place;
13
+ title;
14
+ rows;
15
+ constructor(place, title, rows) {
16
+ this.place = place;
17
+ this.title = title;
18
+ this.rows = [...rows];
19
+ }
20
+ static fromJson(value) {
21
+ const json = JsonReader.fromValue(value);
22
+ return new MenuBarMenu(json.readNonBlankString(Resources.placeField), json.readNonBlankString(Resources.titleField), json.readObjectArray(Resources.rowsField).map(t => MenuBarRow.fromJson(t.toJson())));
23
+ }
24
+ }
25
+ //# sourceMappingURL=menu-bar-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-bar-menu.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/menu-bar-menu.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,OAAO,WAAW;IACN,KAAK,CAAS;IACd,KAAK,CAAS;IACd,IAAI,CAAwB;IAE5C,YAAoB,KAAa,EAAE,KAAa,EAAE,IAA2B;QAC3E,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;IACxB,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc;QACnC,MAAM,IAAI,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACzC,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,UAAU,CAAC,EACjH,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;IACzF,CAAC;CACF"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import "@noldova/context.core";
9
+ import { JsonException, JsonReader } from "@noldova/context.json";
10
+ import { KeyChord } from "@noldova/desktop.protocol";
11
+ import { MenuBarRowType } from "../enums/menu-bar-row-type.js";
12
+ import { MenuCheck } from "../enums/menu-check.js";
13
+ import { Resources } from "../resources.js";
14
+ export class MenuBarRow {
15
+ type;
16
+ id;
17
+ label;
18
+ key;
19
+ isEnabled;
20
+ check;
21
+ isChecked;
22
+ rows;
23
+ constructor(type, id, label, key, isEnabled, check, isChecked, rows) {
24
+ this.type = type;
25
+ this.id = id;
26
+ this.label = label;
27
+ this.key = key;
28
+ this.isEnabled = isEnabled;
29
+ this.check = check;
30
+ this.isChecked = isChecked;
31
+ this.rows = [...rows];
32
+ }
33
+ static fromJson(value) {
34
+ const json = JsonReader.fromValue(value);
35
+ const type = json.readString(Resources.typeField);
36
+ if (type === MenuBarRowType.Separator)
37
+ return new MenuBarRow(MenuBarRowType.Separator, null, String.empty, null, false, MenuCheck.None, false, []);
38
+ if (type === MenuBarRowType.Submenu)
39
+ return new MenuBarRow(MenuBarRowType.Submenu, null, json.readNonBlankString(Resources.labelField), null, true, MenuCheck.None, false, json.readObjectArray(Resources.rowsField).map(t => MenuBarRow.fromJson(t.toJson())));
40
+ if (type !== MenuBarRowType.Command)
41
+ throw new JsonException(Resources.invalidMenuBar, json.path);
42
+ const check = Object.values(MenuCheck).find(t => t === json.readString(Resources.checkField));
43
+ const key = json.readNullableString(Resources.keyField);
44
+ if (Object.isUndefined(check))
45
+ throw new JsonException(Resources.invalidMenuBar, json.path);
46
+ return new MenuBarRow(MenuBarRowType.Command, json.readNonBlankString(Resources.idField), json.readNonBlankString(Resources.labelField), Object.isNull(key) ? null : KeyChord.parse(key), json.readBoolean(Resources.enabledField), check, json.readBoolean(Resources.checkedField), []);
47
+ }
48
+ }
49
+ //# sourceMappingURL=menu-bar-row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-bar-row.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/menu-bar-row.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { JsonReader } from "@noldova/context.json";
9
+ import { Resources } from "../resources.js";
10
+ import { MenuBarMenu } from "./menu-bar-menu.js";
11
+ export class MenuBar {
12
+ menus;
13
+ constructor(menus) {
14
+ this.menus = [...menus];
15
+ }
16
+ static fromJson(value) {
17
+ return new MenuBar(JsonReader.fromValue(value).readObjectArray(Resources.menusField).map(t => MenuBarMenu.fromJson(t.toJson())));
18
+ }
19
+ }
20
+ //# sourceMappingURL=menu-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-bar.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/menu-bar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,OAAO,OAAO;IACF,KAAK,CAAyB;IAE9C,YAAoB,KAA6B;QAC/C,IAAI,CAAC,KAAK,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IAC1B,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc;QACnC,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;IACnI,CAAC;CACF"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import path from "node:path";
9
+ import "@noldova/context.core";
10
+ import { Resources } from "../resources.js";
11
+ export class OfferedFile {
12
+ name;
13
+ mediaType;
14
+ path;
15
+ bytes;
16
+ size;
17
+ constructor(name, mediaType, filePath, bytes, size) {
18
+ this.name = name;
19
+ this.mediaType = mediaType;
20
+ this.path = filePath;
21
+ this.bytes = bytes;
22
+ this.size = size;
23
+ }
24
+ static ofPath(filePath) {
25
+ return new OfferedFile(path.basename(filePath), Resources.unknownMediaType, filePath, null, 0);
26
+ }
27
+ static read(value) {
28
+ if (!Object.isObject(value) || Array.isArray(value))
29
+ return null;
30
+ const name = Resources.nameField in value ? value[Resources.nameField] : undefined;
31
+ const type = Resources.typeField in value ? value[Resources.typeField] : undefined;
32
+ const filePath = Resources.pathField in value ? value[Resources.pathField] : undefined;
33
+ const bytes = Resources.bytesField in value ? value[Resources.bytesField] : undefined;
34
+ const size = Resources.sizeField in value ? value[Resources.sizeField] : undefined;
35
+ if (!Object.isString(name) || !Object.isString(type) || !Object.isNumber(size) || !Number.isSafeInteger(size) || size < 0)
36
+ return null;
37
+ const mediaType = Resources.mediaTypePattern.test(type) ? type.toLowerCase() : Resources.unknownMediaType;
38
+ if (Object.isString(filePath) && path.isAbsolute(filePath) && Object.isUndefined(bytes))
39
+ return new OfferedFile(OfferedFile.nameOf(name, path.basename(filePath)), mediaType, filePath, null, size);
40
+ if (bytes instanceof Uint8Array && Object.isUndefined(filePath) && bytes.byteLength === size)
41
+ return new OfferedFile(OfferedFile.nameOf(name, Resources.pastedFileName), mediaType, null, bytes, size);
42
+ if (Object.isUndefined(filePath) && Object.isUndefined(bytes))
43
+ return new OfferedFile(OfferedFile.nameOf(name, Resources.pastedFileName), mediaType, null, null, size);
44
+ return null;
45
+ }
46
+ static nameOf(name, fallback) {
47
+ return String.isNullOrWhitespace(name) || Buffer.byteLength(name) > Resources.fileNameByteLimit ? fallback : name;
48
+ }
49
+ }
50
+ //# sourceMappingURL=offered-file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offered-file.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/offered-file.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { QuitQuestion } from "./quit-question.js";
9
+ export class PendingQuit {
10
+ prompt;
11
+ settle;
12
+ report;
13
+ isWaiting = false;
14
+ constructor(prompt, report, settle) {
15
+ this.prompt = prompt;
16
+ this.report = report;
17
+ this.settle = settle;
18
+ }
19
+ get isAnswered() {
20
+ return this.report.descriptions.length === 0;
21
+ }
22
+ show() {
23
+ return this.prompt.show(new QuitQuestion(this.report.descriptions, this.isWaiting, false));
24
+ }
25
+ }
26
+ //# sourceMappingURL=pending-quit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pending-quit.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/pending-quit.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,OAAO,WAAW;IACN,MAAM,CAAc;IACpB,MAAM,CAAiC;IAChD,MAAM,CAAa;IACnB,SAAS,GAAY,KAAK,CAAC;IAElC,YAAmB,MAAmB,EAAE,MAAkB,EAAE,MAAsC;QAChG,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,CAAC;IAC/C,CAAC;IAEM,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;IAC7F,CAAC;CACF"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Resources } from "../resources.js";
9
+ export class PreloadSettings {
10
+ bridge = Resources.bridgeName;
11
+ pastedByteLimit = Resources.pastedByteLimit;
12
+ appearance;
13
+ channels = Resources.preloadChannels;
14
+ constructor(appearance) {
15
+ this.appearance = appearance;
16
+ }
17
+ toArgument() {
18
+ return `${Resources.preloadArgument}${JSON.stringify(this)}`;
19
+ }
20
+ }
21
+ //# sourceMappingURL=preload-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preload-settings.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/preload-settings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,eAAe;IACV,MAAM,GAAW,SAAS,CAAC,UAAU,CAAC;IACtC,eAAe,GAAW,SAAS,CAAC,eAAe,CAAC;IACpD,UAAU,CAAoB;IAC9B,QAAQ,GAAqB,SAAS,CAAC,eAAe,CAAC;IAEvE,YAAmB,UAA6B;QAC9C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAEM,UAAU;QACf,OAAO,GAAG,SAAS,CAAC,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;IAC/D,CAAC;CACF"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Resources } from "../resources.js";
9
+ export class QuitQuestion {
10
+ descriptions;
11
+ isWaiting;
12
+ isUpdate;
13
+ constructor(descriptions, isWaiting, isUpdate) {
14
+ this.descriptions = [...descriptions];
15
+ this.isWaiting = isWaiting;
16
+ this.isUpdate = isUpdate;
17
+ }
18
+ toJson() {
19
+ return { [Resources.descriptionsField]: [...this.descriptions], [Resources.isWaitingField]: this.isWaiting, [Resources.isUpdateField]: this.isUpdate };
20
+ }
21
+ }
22
+ //# sourceMappingURL=quit-question.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quit-question.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/models/quit-question.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,YAAY;IACP,YAAY,CAAoB;IAChC,SAAS,CAAU;IACnB,QAAQ,CAAU;IAElC,YAAmB,YAA+B,EAAE,SAAkB,EAAE,QAAiB;QACvF,IAAI,CAAC,YAAY,GAAG,CAAC,GAAG,YAAY,CAAC,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;IACzJ,CAAC;CACF"}