@noldova/desktop.window 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 (1020) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +80 -2
  3. package/api/build.d.ts +13 -0
  4. package/api/build.js +10 -0
  5. package/api/build.js.map +1 -0
  6. package/api/index.d.ts +68 -0
  7. package/api/index.js +42 -0
  8. package/api/index.js.map +1 -0
  9. package/api/testing.d.ts +10 -0
  10. package/api/testing.js +11 -0
  11. package/api/testing.js.map +1 -0
  12. package/app/components/about/about.component.d.ts +50 -0
  13. package/app/components/about/about.component.js +125 -0
  14. package/app/components/about/about.component.js.map +1 -0
  15. package/app/components/dock/dock.component.d.ts +56 -0
  16. package/app/components/dock/dock.component.js +117 -0
  17. package/app/components/dock/dock.component.js.map +1 -0
  18. package/app/components/docking-guides/docking-guides.component.d.ts +35 -0
  19. package/app/components/docking-guides/docking-guides.component.js +61 -0
  20. package/app/components/docking-guides/docking-guides.component.js.map +1 -0
  21. package/app/components/empty-window/empty-window.component.d.ts +8 -0
  22. package/app/components/empty-window/empty-window.component.js +22 -0
  23. package/app/components/empty-window/empty-window.component.js.map +1 -0
  24. package/app/components/field-menu/field-menu.component.d.ts +30 -0
  25. package/app/components/field-menu/field-menu.component.js +92 -0
  26. package/app/components/field-menu/field-menu.component.js.map +1 -0
  27. package/app/components/highlighted-text/highlighted-text.component.d.ts +19 -0
  28. package/app/components/highlighted-text/highlighted-text.component.js +33 -0
  29. package/app/components/highlighted-text/highlighted-text.component.js.map +1 -0
  30. package/app/components/link-menu/link-menu.component.d.ts +22 -0
  31. package/app/components/link-menu/link-menu.component.js +46 -0
  32. package/app/components/link-menu/link-menu.component.js.map +1 -0
  33. package/app/components/module-actions/module-actions.component.d.ts +31 -0
  34. package/app/components/module-actions/module-actions.component.js +64 -0
  35. package/app/components/module-actions/module-actions.component.js.map +1 -0
  36. package/app/components/module-failure-card/module-failure-card.component.d.ts +17 -0
  37. package/app/components/module-failure-card/module-failure-card.component.js +24 -0
  38. package/app/components/module-failure-card/module-failure-card.component.js.map +1 -0
  39. package/app/components/module-failures/module-failures.component.d.ts +20 -0
  40. package/app/components/module-failures/module-failures.component.js +28 -0
  41. package/app/components/module-failures/module-failures.component.js.map +1 -0
  42. package/app/components/module-switch/module-switch.component.d.ts +22 -0
  43. package/app/components/module-switch/module-switch.component.js +40 -0
  44. package/app/components/module-switch/module-switch.component.js.map +1 -0
  45. package/app/components/modules/modules.component.d.ts +48 -0
  46. package/app/components/modules/modules.component.js +132 -0
  47. package/app/components/modules/modules.component.js.map +1 -0
  48. package/app/components/notifications/notifications.component.d.ts +23 -0
  49. package/app/components/notifications/notifications.component.js +35 -0
  50. package/app/components/notifications/notifications.component.js.map +1 -0
  51. package/app/components/notifications-popover/notifications-popover.component.d.ts +40 -0
  52. package/app/components/notifications-popover/notifications-popover.component.js +78 -0
  53. package/app/components/notifications-popover/notifications-popover.component.js.map +1 -0
  54. package/app/components/place-menu/place-menu.component.d.ts +27 -0
  55. package/app/components/place-menu/place-menu.component.js +40 -0
  56. package/app/components/place-menu/place-menu.component.js.map +1 -0
  57. package/app/components/placeholder-content/placeholder-content.component.d.ts +16 -0
  58. package/app/components/placeholder-content/placeholder-content.component.js +54 -0
  59. package/app/components/placeholder-content/placeholder-content.component.js.map +1 -0
  60. package/app/components/quit-dialog/quit-dialog.component.d.ts +17 -0
  61. package/app/components/quit-dialog/quit-dialog.component.js +38 -0
  62. package/app/components/quit-dialog/quit-dialog.component.js.map +1 -0
  63. package/app/components/runtime-status/runtime-status.component.d.ts +18 -0
  64. package/app/components/runtime-status/runtime-status.component.js +49 -0
  65. package/app/components/runtime-status/runtime-status.component.js.map +1 -0
  66. package/app/components/search-palette/search-palette.component.d.ts +35 -0
  67. package/app/components/search-palette/search-palette.component.js +66 -0
  68. package/app/components/search-palette/search-palette.component.js.map +1 -0
  69. package/app/components/setting-row/setting-row.component.d.ts +62 -0
  70. package/app/components/setting-row/setting-row.component.js +176 -0
  71. package/app/components/setting-row/setting-row.component.js.map +1 -0
  72. package/app/components/settings/settings.component.d.ts +84 -0
  73. package/app/components/settings/settings.component.js +273 -0
  74. package/app/components/settings/settings.component.js.map +1 -0
  75. package/app/components/settings-page-host/settings-page-host.component.d.ts +19 -0
  76. package/app/components/settings-page-host/settings-page-host.component.js +54 -0
  77. package/app/components/settings-page-host/settings-page-host.component.js.map +1 -0
  78. package/app/components/shortcuts/shortcuts.component.d.ts +59 -0
  79. package/app/components/shortcuts/shortcuts.component.js +175 -0
  80. package/app/components/shortcuts/shortcuts.component.js.map +1 -0
  81. package/app/components/split-sash/split-sash.component.d.ts +24 -0
  82. package/app/components/split-sash/split-sash.component.js +44 -0
  83. package/app/components/split-sash/split-sash.component.js.map +1 -0
  84. package/app/components/startup/startup.component.d.ts +25 -0
  85. package/app/components/startup/startup.component.js +33 -0
  86. package/app/components/startup/startup.component.js.map +1 -0
  87. package/app/components/status-bar/status-bar.component.d.ts +9 -0
  88. package/app/components/status-bar/status-bar.component.js +28 -0
  89. package/app/components/status-bar/status-bar.component.js.map +1 -0
  90. package/app/components/status-bar-item/status-bar-item.component.d.ts +23 -0
  91. package/app/components/status-bar-item/status-bar-item.component.js +39 -0
  92. package/app/components/status-bar-item/status-bar-item.component.js.map +1 -0
  93. package/app/components/tab-content/tab-content.component.d.ts +35 -0
  94. package/app/components/tab-content/tab-content.component.js +139 -0
  95. package/app/components/tab-content/tab-content.component.js.map +1 -0
  96. package/app/components/tab-group/tab-group.component.d.ts +54 -0
  97. package/app/components/tab-group/tab-group.component.js +176 -0
  98. package/app/components/tab-group/tab-group.component.js.map +1 -0
  99. package/app/components/tab-row-actions/tab-row-actions.component.d.ts +27 -0
  100. package/app/components/tab-row-actions/tab-row-actions.component.js +37 -0
  101. package/app/components/tab-row-actions/tab-row-actions.component.js.map +1 -0
  102. package/app/components/tab-slot/tab-slot.component.d.ts +35 -0
  103. package/app/components/tab-slot/tab-slot.component.js +70 -0
  104. package/app/components/tab-slot/tab-slot.component.js.map +1 -0
  105. package/app/components/toasts/toasts.component.d.ts +36 -0
  106. package/app/components/toasts/toasts.component.js +68 -0
  107. package/app/components/toasts/toasts.component.js.map +1 -0
  108. package/app/components/toolbar/toolbar.component.d.ts +49 -0
  109. package/app/components/toolbar/toolbar.component.js +129 -0
  110. package/app/components/toolbar/toolbar.component.js.map +1 -0
  111. package/app/components/toolbar-band/toolbar-band.component.d.ts +14 -0
  112. package/app/components/toolbar-band/toolbar-band.component.js +32 -0
  113. package/app/components/toolbar-band/toolbar-band.component.js.map +1 -0
  114. package/app/components/update-item/update-item.component.d.ts +22 -0
  115. package/app/components/update-item/update-item.component.js +32 -0
  116. package/app/components/update-item/update-item.component.js.map +1 -0
  117. package/app/components/view-dialog/view-dialog.component.d.ts +17 -0
  118. package/app/components/view-dialog/view-dialog.component.js +46 -0
  119. package/app/components/view-dialog/view-dialog.component.js.map +1 -0
  120. package/app/components/window/window.component.d.ts +30 -0
  121. package/app/components/window/window.component.js +107 -0
  122. package/app/components/window/window.component.js.map +1 -0
  123. package/app/components/window-controls/window-controls.component.d.ts +27 -0
  124. package/app/components/window-controls/window-controls.component.js +55 -0
  125. package/app/components/window-controls/window-controls.component.js.map +1 -0
  126. package/app/components/window-row/window-row.component.d.ts +78 -0
  127. package/app/components/window-row/window-row.component.js +260 -0
  128. package/app/components/window-row/window-row.component.js.map +1 -0
  129. package/app/components/workspace/workspace.component.d.ts +32 -0
  130. package/app/components/workspace/workspace.component.js +134 -0
  131. package/app/components/workspace/workspace.component.js.map +1 -0
  132. package/app/directives/keeps-ctrl-keys.directive.d.ts +31 -0
  133. package/app/directives/keeps-ctrl-keys.directive.js +21 -0
  134. package/app/directives/keeps-ctrl-keys.directive.js.map +1 -0
  135. package/app/directives/tab-scroller.directive.d.ts +29 -0
  136. package/app/directives/tab-scroller.directive.js +88 -0
  137. package/app/directives/tab-scroller.directive.js.map +1 -0
  138. package/app/enums/bottom-dock-span.d.ts +11 -0
  139. package/app/enums/bottom-dock-span.js +13 -0
  140. package/app/enums/bottom-dock-span.js.map +1 -0
  141. package/app/enums/clock-choice.d.ts +11 -0
  142. package/app/enums/clock-choice.js +13 -0
  143. package/app/enums/clock-choice.js.map +1 -0
  144. package/app/enums/content-padding.d.ts +28 -0
  145. package/app/enums/content-padding.js +13 -0
  146. package/app/enums/content-padding.js.map +1 -0
  147. package/app/enums/dock-side.d.ts +24 -0
  148. package/app/enums/dock-side.js +14 -0
  149. package/app/enums/dock-side.js.map +1 -0
  150. package/app/enums/dock-style.d.ts +11 -0
  151. package/app/enums/dock-style.js +13 -0
  152. package/app/enums/dock-style.js.map +1 -0
  153. package/app/enums/document-tone.d.ts +24 -0
  154. package/app/enums/document-tone.js +14 -0
  155. package/app/enums/document-tone.js.map +1 -0
  156. package/app/enums/file-save-outcome.d.ts +26 -0
  157. package/app/enums/file-save-outcome.js +14 -0
  158. package/app/enums/file-save-outcome.js.map +1 -0
  159. package/app/enums/link-place.d.ts +23 -0
  160. package/app/enums/link-place.js +13 -0
  161. package/app/enums/link-place.js.map +1 -0
  162. package/app/enums/menu-bar-style.d.ts +12 -0
  163. package/app/enums/menu-bar-style.js +14 -0
  164. package/app/enums/menu-bar-style.js.map +1 -0
  165. package/app/enums/menu-check.d.ts +12 -0
  166. package/app/enums/menu-check.js +14 -0
  167. package/app/enums/menu-check.js.map +1 -0
  168. package/app/enums/panel-edge.d.ts +13 -0
  169. package/app/enums/panel-edge.js +15 -0
  170. package/app/enums/panel-edge.js.map +1 -0
  171. package/app/enums/part-save-outcome.d.ts +12 -0
  172. package/app/enums/part-save-outcome.js +14 -0
  173. package/app/enums/part-save-outcome.js.map +1 -0
  174. package/app/enums/quit-choice.d.ts +12 -0
  175. package/app/enums/quit-choice.js +14 -0
  176. package/app/enums/quit-choice.js.map +1 -0
  177. package/app/enums/split-axis.d.ts +11 -0
  178. package/app/enums/split-axis.js +13 -0
  179. package/app/enums/split-axis.js.map +1 -0
  180. package/app/enums/startup-state-kind.d.ts +17 -0
  181. package/app/enums/startup-state-kind.js +19 -0
  182. package/app/enums/startup-state-kind.js.map +1 -0
  183. package/app/enums/status-bar-item-tone.d.ts +21 -0
  184. package/app/enums/status-bar-item-tone.js +13 -0
  185. package/app/enums/status-bar-item-tone.js.map +1 -0
  186. package/app/enums/status-bar-side.d.ts +20 -0
  187. package/app/enums/status-bar-side.js +13 -0
  188. package/app/enums/status-bar-side.js.map +1 -0
  189. package/app/enums/toolbar-move.d.ts +13 -0
  190. package/app/enums/toolbar-move.js +15 -0
  191. package/app/enums/toolbar-move.js.map +1 -0
  192. package/app/enums/top-bar-side.d.ts +21 -0
  193. package/app/enums/top-bar-side.js +13 -0
  194. package/app/enums/top-bar-side.js.map +1 -0
  195. package/app/enums/unconfirmed-action.d.ts +12 -0
  196. package/app/enums/unconfirmed-action.js +14 -0
  197. package/app/enums/unconfirmed-action.js.map +1 -0
  198. package/app/enums/update-action.d.ts +11 -0
  199. package/app/enums/update-action.js +13 -0
  200. package/app/enums/update-action.js.map +1 -0
  201. package/app/enums/update-state-kind.d.ts +16 -0
  202. package/app/enums/update-state-kind.js +18 -0
  203. package/app/enums/update-state-kind.js.map +1 -0
  204. package/app/enums/view-dialog-refusal.d.ts +11 -0
  205. package/app/enums/view-dialog-refusal.js +13 -0
  206. package/app/enums/view-dialog-refusal.js.map +1 -0
  207. package/app/enums/web-view-input-kind.d.ts +12 -0
  208. package/app/enums/web-view-input-kind.js +14 -0
  209. package/app/enums/web-view-input-kind.js.map +1 -0
  210. package/app/exceptions/action-not-confirmed.exception.d.ts +17 -0
  211. package/app/exceptions/action-not-confirmed.exception.js +36 -0
  212. package/app/exceptions/action-not-confirmed.exception.js.map +1 -0
  213. package/app/exceptions/command-already-registered.exception.d.ts +13 -0
  214. package/app/exceptions/command-already-registered.exception.js +18 -0
  215. package/app/exceptions/command-already-registered.exception.js.map +1 -0
  216. package/app/exceptions/command-not-declared.exception.d.ts +13 -0
  217. package/app/exceptions/command-not-declared.exception.js +18 -0
  218. package/app/exceptions/command-not-declared.exception.js.map +1 -0
  219. package/app/exceptions/command-not-found.exception.d.ts +13 -0
  220. package/app/exceptions/command-not-found.exception.js +18 -0
  221. package/app/exceptions/command-not-found.exception.js.map +1 -0
  222. package/app/exceptions/contribution-not-declared.exception.d.ts +14 -0
  223. package/app/exceptions/contribution-not-declared.exception.js +20 -0
  224. package/app/exceptions/contribution-not-declared.exception.js.map +1 -0
  225. package/app/exceptions/contribution-registered.exception.d.ts +14 -0
  226. package/app/exceptions/contribution-registered.exception.js +20 -0
  227. package/app/exceptions/contribution-registered.exception.js.map +1 -0
  228. package/app/exceptions/dependency-not-followed.exception.d.ts +12 -0
  229. package/app/exceptions/dependency-not-followed.exception.js +17 -0
  230. package/app/exceptions/dependency-not-followed.exception.js.map +1 -0
  231. package/app/exceptions/file-not-opened.exception.d.ts +13 -0
  232. package/app/exceptions/file-not-opened.exception.js +18 -0
  233. package/app/exceptions/file-not-opened.exception.js.map +1 -0
  234. package/app/exceptions/file-not-shown.exception.d.ts +13 -0
  235. package/app/exceptions/file-not-shown.exception.js +18 -0
  236. package/app/exceptions/file-not-shown.exception.js.map +1 -0
  237. package/app/exceptions/foreign-contribution.exception.d.ts +13 -0
  238. package/app/exceptions/foreign-contribution.exception.js +18 -0
  239. package/app/exceptions/foreign-contribution.exception.js.map +1 -0
  240. package/app/exceptions/foreign-name.exception.d.ts +13 -0
  241. package/app/exceptions/foreign-name.exception.js +18 -0
  242. package/app/exceptions/foreign-name.exception.js.map +1 -0
  243. package/app/exceptions/foreign-secret.exception.d.ts +13 -0
  244. package/app/exceptions/foreign-secret.exception.js +18 -0
  245. package/app/exceptions/foreign-secret.exception.js.map +1 -0
  246. package/app/exceptions/in-app-browser-taken.exception.d.ts +12 -0
  247. package/app/exceptions/in-app-browser-taken.exception.js +16 -0
  248. package/app/exceptions/in-app-browser-taken.exception.js.map +1 -0
  249. package/app/exceptions/link-not-opened.exception.d.ts +12 -0
  250. package/app/exceptions/link-not-opened.exception.js +16 -0
  251. package/app/exceptions/link-not-opened.exception.js.map +1 -0
  252. package/app/exceptions/placeholder-shown.exception.d.ts +14 -0
  253. package/app/exceptions/placeholder-shown.exception.js +20 -0
  254. package/app/exceptions/placeholder-shown.exception.js.map +1 -0
  255. package/app/exceptions/preload-bridge.exception.d.ts +12 -0
  256. package/app/exceptions/preload-bridge.exception.js +16 -0
  257. package/app/exceptions/preload-bridge.exception.js.map +1 -0
  258. package/app/exceptions/product-name.exception.d.ts +12 -0
  259. package/app/exceptions/product-name.exception.js +16 -0
  260. package/app/exceptions/product-name.exception.js.map +1 -0
  261. package/app/exceptions/runtime-disconnected.exception.d.ts +13 -0
  262. package/app/exceptions/runtime-disconnected.exception.js +25 -0
  263. package/app/exceptions/runtime-disconnected.exception.js.map +1 -0
  264. package/app/exceptions/runtime-request.exception.d.ts +15 -0
  265. package/app/exceptions/runtime-request.exception.js +19 -0
  266. package/app/exceptions/runtime-request.exception.js.map +1 -0
  267. package/app/exceptions/search-source-registered.exception.d.ts +13 -0
  268. package/app/exceptions/search-source-registered.exception.js +18 -0
  269. package/app/exceptions/search-source-registered.exception.js.map +1 -0
  270. package/app/exceptions/setting-options-failed.exception.d.ts +13 -0
  271. package/app/exceptions/setting-options-failed.exception.js +19 -0
  272. package/app/exceptions/setting-options-failed.exception.js.map +1 -0
  273. package/app/exceptions/setting-options-repeated.exception.d.ts +13 -0
  274. package/app/exceptions/setting-options-repeated.exception.js +18 -0
  275. package/app/exceptions/setting-options-repeated.exception.js.map +1 -0
  276. package/app/exceptions/settings-page-not-loaded.exception.d.ts +12 -0
  277. package/app/exceptions/settings-page-not-loaded.exception.js +17 -0
  278. package/app/exceptions/settings-page-not-loaded.exception.js.map +1 -0
  279. package/app/exceptions/view-dialog.exception.d.ts +15 -0
  280. package/app/exceptions/view-dialog.exception.js +27 -0
  281. package/app/exceptions/view-dialog.exception.js.map +1 -0
  282. package/app/exceptions/web-view-closed.exception.d.ts +12 -0
  283. package/app/exceptions/web-view-closed.exception.js +16 -0
  284. package/app/exceptions/web-view-closed.exception.js.map +1 -0
  285. package/app/exceptions/web-view-not-opened.exception.d.ts +12 -0
  286. package/app/exceptions/web-view-not-opened.exception.js +16 -0
  287. package/app/exceptions/web-view-not-opened.exception.js.map +1 -0
  288. package/app/exceptions/window-part-access.exception.d.ts +13 -0
  289. package/app/exceptions/window-part-access.exception.js +17 -0
  290. package/app/exceptions/window-part-access.exception.js.map +1 -0
  291. package/app/exceptions/window-part-activation-failed.exception.d.ts +12 -0
  292. package/app/exceptions/window-part-activation-failed.exception.js +17 -0
  293. package/app/exceptions/window-part-activation-failed.exception.js.map +1 -0
  294. package/app/exceptions/window-part-failure.exception.d.ts +14 -0
  295. package/app/exceptions/window-part-failure.exception.js +17 -0
  296. package/app/exceptions/window-part-failure.exception.js.map +1 -0
  297. package/app/exceptions/window-part-load-failed.exception.d.ts +12 -0
  298. package/app/exceptions/window-part-load-failed.exception.js +17 -0
  299. package/app/exceptions/window-part-load-failed.exception.js.map +1 -0
  300. package/app/exceptions/window-part-reconnection-failed.exception.d.ts +12 -0
  301. package/app/exceptions/window-part-reconnection-failed.exception.js +17 -0
  302. package/app/exceptions/window-part-reconnection-failed.exception.js.map +1 -0
  303. package/app/exceptions/window-part-save-failed-for-update.exception.d.ts +13 -0
  304. package/app/exceptions/window-part-save-failed-for-update.exception.js +19 -0
  305. package/app/exceptions/window-part-save-failed-for-update.exception.js.map +1 -0
  306. package/app/exceptions/window-part-save-failed-late.exception.d.ts +13 -0
  307. package/app/exceptions/window-part-save-failed-late.exception.js +19 -0
  308. package/app/exceptions/window-part-save-failed-late.exception.js.map +1 -0
  309. package/app/exceptions/window-part-save-failed.exception.d.ts +13 -0
  310. package/app/exceptions/window-part-save-failed.exception.js +19 -0
  311. package/app/exceptions/window-part-save-failed.exception.js.map +1 -0
  312. package/app/exceptions/window.exception.d.ts +21 -0
  313. package/app/exceptions/window.exception.js +15 -0
  314. package/app/exceptions/window.exception.js.map +1 -0
  315. package/app/interfaces/i-command-key.d.ts +22 -0
  316. package/app/interfaces/i-command-key.js +8 -0
  317. package/app/interfaces/i-command-key.js.map +1 -0
  318. package/app/interfaces/i-document-contribution-options.d.ts +34 -0
  319. package/app/interfaces/i-document-contribution-options.js +8 -0
  320. package/app/interfaces/i-document-contribution-options.js.map +1 -0
  321. package/app/interfaces/i-document-marker.d.ts +23 -0
  322. package/app/interfaces/i-document-marker.js +8 -0
  323. package/app/interfaces/i-document-marker.js.map +1 -0
  324. package/app/interfaces/i-document-options.d.ts +79 -0
  325. package/app/interfaces/i-document-options.js +8 -0
  326. package/app/interfaces/i-document-options.js.map +1 -0
  327. package/app/interfaces/i-document-status.d.ts +28 -0
  328. package/app/interfaces/i-document-status.js +8 -0
  329. package/app/interfaces/i-document-status.js.map +1 -0
  330. package/app/interfaces/i-document-update.d.ts +58 -0
  331. package/app/interfaces/i-document-update.js +8 -0
  332. package/app/interfaces/i-document-update.js.map +1 -0
  333. package/app/interfaces/i-file-choice-options.d.ts +18 -0
  334. package/app/interfaces/i-file-choice-options.js +8 -0
  335. package/app/interfaces/i-file-choice-options.js.map +1 -0
  336. package/app/interfaces/i-file-grant-options.d.ts +17 -0
  337. package/app/interfaces/i-file-grant-options.js +8 -0
  338. package/app/interfaces/i-file-grant-options.js.map +1 -0
  339. package/app/interfaces/i-file-path-choice-options.d.ts +24 -0
  340. package/app/interfaces/i-file-path-choice-options.js +8 -0
  341. package/app/interfaces/i-file-path-choice-options.js.map +1 -0
  342. package/app/interfaces/i-in-app-browser.d.ts +36 -0
  343. package/app/interfaces/i-in-app-browser.js +8 -0
  344. package/app/interfaces/i-in-app-browser.js.map +1 -0
  345. package/app/interfaces/i-layout-store.d.ts +12 -0
  346. package/app/interfaces/i-layout-store.js +8 -0
  347. package/app/interfaces/i-layout-store.js.map +1 -0
  348. package/app/interfaces/i-link-open-options.d.ts +26 -0
  349. package/app/interfaces/i-link-open-options.js +8 -0
  350. package/app/interfaces/i-link-open-options.js.map +1 -0
  351. package/app/interfaces/i-module-saver.d.ts +10 -0
  352. package/app/interfaces/i-module-saver.js +8 -0
  353. package/app/interfaces/i-module-saver.js.map +1 -0
  354. package/app/interfaces/i-opened-web-view.d.ts +12 -0
  355. package/app/interfaces/i-opened-web-view.js +8 -0
  356. package/app/interfaces/i-opened-web-view.js.map +1 -0
  357. package/app/interfaces/i-preload-bridge.d.ts +79 -0
  358. package/app/interfaces/i-preload-bridge.js +8 -0
  359. package/app/interfaces/i-preload-bridge.js.map +1 -0
  360. package/app/interfaces/i-product-about.d.ts +38 -0
  361. package/app/interfaces/i-product-about.js +8 -0
  362. package/app/interfaces/i-product-about.js.map +1 -0
  363. package/app/interfaces/i-product-logo.d.ts +23 -0
  364. package/app/interfaces/i-product-logo.js +8 -0
  365. package/app/interfaces/i-product-logo.js.map +1 -0
  366. package/app/interfaces/i-selection-source.d.ts +24 -0
  367. package/app/interfaces/i-selection-source.js +8 -0
  368. package/app/interfaces/i-selection-source.js.map +1 -0
  369. package/app/interfaces/i-settings-page-declaration.d.ts +22 -0
  370. package/app/interfaces/i-settings-page-declaration.js +8 -0
  371. package/app/interfaces/i-settings-page-declaration.js.map +1 -0
  372. package/app/interfaces/i-settings-page-row.d.ts +12 -0
  373. package/app/interfaces/i-settings-page-row.js +8 -0
  374. package/app/interfaces/i-settings-page-row.js.map +1 -0
  375. package/app/interfaces/i-status-bar-item-options.d.ts +42 -0
  376. package/app/interfaces/i-status-bar-item-options.js +8 -0
  377. package/app/interfaces/i-status-bar-item-options.js.map +1 -0
  378. package/app/interfaces/i-top-bar-action-options.d.ts +21 -0
  379. package/app/interfaces/i-top-bar-action-options.js +8 -0
  380. package/app/interfaces/i-top-bar-action-options.js.map +1 -0
  381. package/app/interfaces/i-view-dialog-options.d.ts +22 -0
  382. package/app/interfaces/i-view-dialog-options.js +8 -0
  383. package/app/interfaces/i-view-dialog-options.js.map +1 -0
  384. package/app/interfaces/i-view-instance-options.d.ts +37 -0
  385. package/app/interfaces/i-view-instance-options.js +8 -0
  386. package/app/interfaces/i-view-instance-options.js.map +1 -0
  387. package/app/interfaces/i-view-options.d.ts +41 -0
  388. package/app/interfaces/i-view-options.js +8 -0
  389. package/app/interfaces/i-view-options.js.map +1 -0
  390. package/app/interfaces/i-view-update.d.ts +31 -0
  391. package/app/interfaces/i-view-update.js +8 -0
  392. package/app/interfaces/i-view-update.js.map +1 -0
  393. package/app/interfaces/i-web-view-find-options.d.ts +16 -0
  394. package/app/interfaces/i-web-view-find-options.js +8 -0
  395. package/app/interfaces/i-web-view-find-options.js.map +1 -0
  396. package/app/interfaces/i-web-view-found.d.ts +33 -0
  397. package/app/interfaces/i-web-view-found.js +8 -0
  398. package/app/interfaces/i-web-view-found.js.map +1 -0
  399. package/app/interfaces/i-web-view-guest.d.ts +15 -0
  400. package/app/interfaces/i-web-view-guest.js +8 -0
  401. package/app/interfaces/i-web-view-guest.js.map +1 -0
  402. package/app/interfaces/i-web-view-handle.d.ts +370 -0
  403. package/app/interfaces/i-web-view-handle.js +8 -0
  404. package/app/interfaces/i-web-view-handle.js.map +1 -0
  405. package/app/interfaces/i-web-view-input.d.ts +13 -0
  406. package/app/interfaces/i-web-view-input.js +8 -0
  407. package/app/interfaces/i-web-view-input.js.map +1 -0
  408. package/app/interfaces/i-web-view-layer.d.ts +29 -0
  409. package/app/interfaces/i-web-view-layer.js +8 -0
  410. package/app/interfaces/i-web-view-layer.js.map +1 -0
  411. package/app/interfaces/i-window-inputs.d.ts +72 -0
  412. package/app/interfaces/i-window-inputs.js +8 -0
  413. package/app/interfaces/i-window-inputs.js.map +1 -0
  414. package/app/interfaces/i-window-palette.d.ts +32 -0
  415. package/app/interfaces/i-window-palette.js +8 -0
  416. package/app/interfaces/i-window-palette.js.map +1 -0
  417. package/app/interfaces/i-window-part-context.d.ts +1654 -0
  418. package/app/interfaces/i-window-part-context.js +8 -0
  419. package/app/interfaces/i-window-part-context.js.map +1 -0
  420. package/app/interfaces/i-window-part-host.d.ts +91 -0
  421. package/app/interfaces/i-window-part-host.js +8 -0
  422. package/app/interfaces/i-window-part-host.js.map +1 -0
  423. package/app/interfaces/i-window-part.d.ts +160 -0
  424. package/app/interfaces/i-window-part.js +8 -0
  425. package/app/interfaces/i-window-part.js.map +1 -0
  426. package/app/interfaces/i-window-secrets.d.ts +69 -0
  427. package/app/interfaces/i-window-secrets.js +8 -0
  428. package/app/interfaces/i-window-secrets.js.map +1 -0
  429. package/app/interfaces/i-window-web-views.d.ts +39 -0
  430. package/app/interfaces/i-window-web-views.js +8 -0
  431. package/app/interfaces/i-window-web-views.js.map +1 -0
  432. package/app/models/appearance-preferences.d.ts +22 -0
  433. package/app/models/appearance-preferences.js +51 -0
  434. package/app/models/appearance-preferences.js.map +1 -0
  435. package/app/models/build-info.d.ts +13 -0
  436. package/app/models/build-info.js +22 -0
  437. package/app/models/build-info.js.map +1 -0
  438. package/app/models/build-tokens.d.ts +17 -0
  439. package/app/models/build-tokens.js +16 -0
  440. package/app/models/build-tokens.js.map +1 -0
  441. package/app/models/clipboard-image.d.ts +22 -0
  442. package/app/models/clipboard-image.js +128 -0
  443. package/app/models/clipboard-image.js.map +1 -0
  444. package/app/models/clipboard-image.resources.d.ts +43 -0
  445. package/app/models/clipboard-image.resources.js +44 -0
  446. package/app/models/clipboard-image.resources.js.map +1 -0
  447. package/app/models/command-contribution.d.ts +95 -0
  448. package/app/models/command-contribution.js +38 -0
  449. package/app/models/command-contribution.js.map +1 -0
  450. package/app/models/command-match.d.ts +13 -0
  451. package/app/models/command-match.js +17 -0
  452. package/app/models/command-match.js.map +1 -0
  453. package/app/models/command-matcher.d.ts +11 -0
  454. package/app/models/command-matcher.js +23 -0
  455. package/app/models/command-matcher.js.map +1 -0
  456. package/app/models/command-row.d.ts +20 -0
  457. package/app/models/command-row.js +27 -0
  458. package/app/models/command-row.js.map +1 -0
  459. package/app/models/command-search-entry.d.ts +15 -0
  460. package/app/models/command-search-entry.js +20 -0
  461. package/app/models/command-search-entry.js.map +1 -0
  462. package/app/models/content-padding-ref.d.ts +66 -0
  463. package/app/models/content-padding-ref.js +20 -0
  464. package/app/models/content-padding-ref.js.map +1 -0
  465. package/app/models/contribution-match.d.ts +16 -0
  466. package/app/models/contribution-match.js +18 -0
  467. package/app/models/contribution-match.js.map +1 -0
  468. package/app/models/document-contribution.d.ts +63 -0
  469. package/app/models/document-contribution.js +28 -0
  470. package/app/models/document-contribution.js.map +1 -0
  471. package/app/models/document-heading.d.ts +21 -0
  472. package/app/models/document-heading.js +50 -0
  473. package/app/models/document-heading.js.map +1 -0
  474. package/app/models/document-look.d.ts +27 -0
  475. package/app/models/document-look.js +66 -0
  476. package/app/models/document-look.js.map +1 -0
  477. package/app/models/edit-target.d.ts +22 -0
  478. package/app/models/edit-target.js +58 -0
  479. package/app/models/edit-target.js.map +1 -0
  480. package/app/models/field-menu-request.d.ts +19 -0
  481. package/app/models/field-menu-request.js +32 -0
  482. package/app/models/field-menu-request.js.map +1 -0
  483. package/app/models/gallery-tokens.d.ts +11 -0
  484. package/app/models/gallery-tokens.js +13 -0
  485. package/app/models/gallery-tokens.js.map +1 -0
  486. package/app/models/issued-file-grant.d.ts +45 -0
  487. package/app/models/issued-file-grant.js +20 -0
  488. package/app/models/issued-file-grant.js.map +1 -0
  489. package/app/models/issued-file-grants.d.ts +40 -0
  490. package/app/models/issued-file-grants.js +17 -0
  491. package/app/models/issued-file-grants.js.map +1 -0
  492. package/app/models/key-bindings.d.ts +24 -0
  493. package/app/models/key-bindings.js +66 -0
  494. package/app/models/key-bindings.js.map +1 -0
  495. package/app/models/layout/bounds.d.ts +24 -0
  496. package/app/models/layout/bounds.js +53 -0
  497. package/app/models/layout/bounds.js.map +1 -0
  498. package/app/models/layout/closed-tabs.d.ts +28 -0
  499. package/app/models/layout/closed-tabs.js +72 -0
  500. package/app/models/layout/closed-tabs.js.map +1 -0
  501. package/app/models/layout/dock-growth.d.ts +18 -0
  502. package/app/models/layout/dock-growth.js +27 -0
  503. package/app/models/layout/dock-growth.js.map +1 -0
  504. package/app/models/layout/dock-strip-icon.d.ts +17 -0
  505. package/app/models/layout/dock-strip-icon.js +20 -0
  506. package/app/models/layout/dock-strip-icon.js.map +1 -0
  507. package/app/models/layout/dock-yield.d.ts +15 -0
  508. package/app/models/layout/dock-yield.js +19 -0
  509. package/app/models/layout/dock-yield.js.map +1 -0
  510. package/app/models/layout/dock.d.ts +33 -0
  511. package/app/models/layout/dock.js +65 -0
  512. package/app/models/layout/dock.js.map +1 -0
  513. package/app/models/layout/docking-overlay.d.ts +20 -0
  514. package/app/models/layout/docking-overlay.js +52 -0
  515. package/app/models/layout/docking-overlay.js.map +1 -0
  516. package/app/models/layout/document-group.d.ts +22 -0
  517. package/app/models/layout/document-group.js +36 -0
  518. package/app/models/layout/document-group.js.map +1 -0
  519. package/app/models/layout/document-tab.d.ts +19 -0
  520. package/app/models/layout/document-tab.js +33 -0
  521. package/app/models/layout/document-tab.js.map +1 -0
  522. package/app/models/layout/drop-target.d.ts +16 -0
  523. package/app/models/layout/drop-target.js +10 -0
  524. package/app/models/layout/drop-target.js.map +1 -0
  525. package/app/models/layout/early-document.d.ts +14 -0
  526. package/app/models/layout/early-document.js +18 -0
  527. package/app/models/layout/early-document.js.map +1 -0
  528. package/app/models/layout/group-drop-target.d.ts +19 -0
  529. package/app/models/layout/group-drop-target.js +25 -0
  530. package/app/models/layout/group-drop-target.js.map +1 -0
  531. package/app/models/layout/group-frame.d.ts +16 -0
  532. package/app/models/layout/group-frame.js +18 -0
  533. package/app/models/layout/group-frame.js.map +1 -0
  534. package/app/models/layout/layout-fit.d.ts +25 -0
  535. package/app/models/layout/layout-fit.js +61 -0
  536. package/app/models/layout/layout-fit.js.map +1 -0
  537. package/app/models/layout/layout-geometry.d.ts +49 -0
  538. package/app/models/layout/layout-geometry.js +129 -0
  539. package/app/models/layout/layout-geometry.js.map +1 -0
  540. package/app/models/layout/layout-metrics.d.ts +21 -0
  541. package/app/models/layout/layout-metrics.js +39 -0
  542. package/app/models/layout/layout-metrics.js.map +1 -0
  543. package/app/models/layout/layout.d.ts +71 -0
  544. package/app/models/layout/layout.js +241 -0
  545. package/app/models/layout/layout.js.map +1 -0
  546. package/app/models/layout/layout.node.d.ts +33 -0
  547. package/app/models/layout/layout.node.js +18 -0
  548. package/app/models/layout/layout.node.js.map +1 -0
  549. package/app/models/layout/side-drop-target.d.ts +23 -0
  550. package/app/models/layout/side-drop-target.js +29 -0
  551. package/app/models/layout/side-drop-target.js.map +1 -0
  552. package/app/models/layout/split-drop-target.d.ts +21 -0
  553. package/app/models/layout/split-drop-target.js +27 -0
  554. package/app/models/layout/split-drop-target.js.map +1 -0
  555. package/app/models/layout/split-handle.d.ts +22 -0
  556. package/app/models/layout/split-handle.js +43 -0
  557. package/app/models/layout/split-handle.js.map +1 -0
  558. package/app/models/layout/split-part.d.ts +13 -0
  559. package/app/models/layout/split-part.js +16 -0
  560. package/app/models/layout/split-part.js.map +1 -0
  561. package/app/models/layout/split.node.d.ts +42 -0
  562. package/app/models/layout/split.node.js +119 -0
  563. package/app/models/layout/split.node.js.map +1 -0
  564. package/app/models/layout/tab-drop-target.d.ts +18 -0
  565. package/app/models/layout/tab-drop-target.js +27 -0
  566. package/app/models/layout/tab-drop-target.js.map +1 -0
  567. package/app/models/layout/tab-group.d.ts +46 -0
  568. package/app/models/layout/tab-group.js +134 -0
  569. package/app/models/layout/tab-group.js.map +1 -0
  570. package/app/models/layout/tab-key.d.ts +12 -0
  571. package/app/models/layout/tab-key.js +22 -0
  572. package/app/models/layout/tab-key.js.map +1 -0
  573. package/app/models/layout/tab-label.d.ts +12 -0
  574. package/app/models/layout/tab-label.js +20 -0
  575. package/app/models/layout/tab-label.js.map +1 -0
  576. package/app/models/layout/tab-reveal.d.ts +13 -0
  577. package/app/models/layout/tab-reveal.js +16 -0
  578. package/app/models/layout/tab-reveal.js.map +1 -0
  579. package/app/models/layout/tab.d.ts +24 -0
  580. package/app/models/layout/tab.js +34 -0
  581. package/app/models/layout/tab.js.map +1 -0
  582. package/app/models/layout/toolbar-layout.d.ts +28 -0
  583. package/app/models/layout/toolbar-layout.js +116 -0
  584. package/app/models/layout/toolbar-layout.js.map +1 -0
  585. package/app/models/layout/view-registry.d.ts +24 -0
  586. package/app/models/layout/view-registry.js +58 -0
  587. package/app/models/layout/view-registry.js.map +1 -0
  588. package/app/models/layout/view-tab.d.ts +19 -0
  589. package/app/models/layout/view-tab.js +33 -0
  590. package/app/models/layout/view-tab.js.map +1 -0
  591. package/app/models/layout/view-type.d.ts +17 -0
  592. package/app/models/layout/view-type.js +28 -0
  593. package/app/models/layout/view-type.js.map +1 -0
  594. package/app/models/live-view.d.ts +37 -0
  595. package/app/models/live-view.js +110 -0
  596. package/app/models/live-view.js.map +1 -0
  597. package/app/models/menu-declarations.d.ts +20 -0
  598. package/app/models/menu-declarations.js +50 -0
  599. package/app/models/menu-declarations.js.map +1 -0
  600. package/app/models/menu-group.d.ts +17 -0
  601. package/app/models/menu-group.js +32 -0
  602. package/app/models/menu-group.js.map +1 -0
  603. package/app/models/menu-item.d.ts +20 -0
  604. package/app/models/menu-item.js +40 -0
  605. package/app/models/menu-item.js.map +1 -0
  606. package/app/models/menu-place.d.ts +16 -0
  607. package/app/models/menu-place.js +28 -0
  608. package/app/models/menu-place.js.map +1 -0
  609. package/app/models/menu-row-contribution.d.ts +52 -0
  610. package/app/models/menu-row-contribution.js +27 -0
  611. package/app/models/menu-row-contribution.js.map +1 -0
  612. package/app/models/menu-row.d.ts +12 -0
  613. package/app/models/menu-row.js +16 -0
  614. package/app/models/menu-row.js.map +1 -0
  615. package/app/models/menu-search-row.d.ts +14 -0
  616. package/app/models/menu-search-row.js +20 -0
  617. package/app/models/menu-search-row.js.map +1 -0
  618. package/app/models/menu-section.d.ts +14 -0
  619. package/app/models/menu-section.js +16 -0
  620. package/app/models/menu-section.js.map +1 -0
  621. package/app/models/module-failure.d.ts +20 -0
  622. package/app/models/module-failure.js +35 -0
  623. package/app/models/module-failure.js.map +1 -0
  624. package/app/models/module-switch-tokens.d.ts +12 -0
  625. package/app/models/module-switch-tokens.js +13 -0
  626. package/app/models/module-switch-tokens.js.map +1 -0
  627. package/app/models/modules/contribution-group.d.ts +14 -0
  628. package/app/models/modules/contribution-group.js +18 -0
  629. package/app/models/modules/contribution-group.js.map +1 -0
  630. package/app/models/modules/contribution-row.d.ts +12 -0
  631. package/app/models/modules/contribution-row.js +16 -0
  632. package/app/models/modules/contribution-row.js.map +1 -0
  633. package/app/models/modules/module-overview.d.ts +21 -0
  634. package/app/models/modules/module-overview.js +41 -0
  635. package/app/models/modules/module-overview.js.map +1 -0
  636. package/app/models/modules/module-reference.d.ts +13 -0
  637. package/app/models/modules/module-reference.js +16 -0
  638. package/app/models/modules/module-reference.js.map +1 -0
  639. package/app/models/modules/program-row.d.ts +17 -0
  640. package/app/models/modules/program-row.js +28 -0
  641. package/app/models/modules/program-row.js.map +1 -0
  642. package/app/models/notification-handle.d.ts +45 -0
  643. package/app/models/notification-handle.js +19 -0
  644. package/app/models/notification-handle.js.map +1 -0
  645. package/app/models/pending-document.d.ts +21 -0
  646. package/app/models/pending-document.js +35 -0
  647. package/app/models/pending-document.js.map +1 -0
  648. package/app/models/pending-view-change.d.ts +14 -0
  649. package/app/models/pending-view-change.js +20 -0
  650. package/app/models/pending-view-change.js.map +1 -0
  651. package/app/models/placeholder-contribution.d.ts +49 -0
  652. package/app/models/placeholder-contribution.js +22 -0
  653. package/app/models/placeholder-contribution.js.map +1 -0
  654. package/app/models/product-name.d.ts +13 -0
  655. package/app/models/product-name.js +18 -0
  656. package/app/models/product-name.js.map +1 -0
  657. package/app/models/quit-question.d.ts +16 -0
  658. package/app/models/quit-question.js +30 -0
  659. package/app/models/quit-question.js.map +1 -0
  660. package/app/models/scroll-offset.d.ts +15 -0
  661. package/app/models/scroll-offset.js +25 -0
  662. package/app/models/scroll-offset.js.map +1 -0
  663. package/app/models/search-answer.d.ts +39 -0
  664. package/app/models/search-answer.js +20 -0
  665. package/app/models/search-answer.js.map +1 -0
  666. package/app/models/search-filter.d.ts +14 -0
  667. package/app/models/search-filter.js +20 -0
  668. package/app/models/search-filter.js.map +1 -0
  669. package/app/models/search-group.d.ts +14 -0
  670. package/app/models/search-group.js +18 -0
  671. package/app/models/search-group.js.map +1 -0
  672. package/app/models/search-query.d.ts +17 -0
  673. package/app/models/search-query.js +30 -0
  674. package/app/models/search-query.js.map +1 -0
  675. package/app/models/search-rank.d.ts +14 -0
  676. package/app/models/search-rank.js +32 -0
  677. package/app/models/search-rank.js.map +1 -0
  678. package/app/models/search-request.d.ts +15 -0
  679. package/app/models/search-request.js +20 -0
  680. package/app/models/search-request.js.map +1 -0
  681. package/app/models/search-result.d.ts +65 -0
  682. package/app/models/search-result.js +38 -0
  683. package/app/models/search-result.js.map +1 -0
  684. package/app/models/search-row.d.ts +15 -0
  685. package/app/models/search-row.js +20 -0
  686. package/app/models/search-row.js.map +1 -0
  687. package/app/models/search-session.d.ts +42 -0
  688. package/app/models/search-session.js +161 -0
  689. package/app/models/search-session.js.map +1 -0
  690. package/app/models/search-source-contribution.d.ts +75 -0
  691. package/app/models/search-source-contribution.js +38 -0
  692. package/app/models/search-source-contribution.js.map +1 -0
  693. package/app/models/settings/setting-options-supply.d.ts +18 -0
  694. package/app/models/settings/setting-options-supply.js +46 -0
  695. package/app/models/settings/setting-options-supply.js.map +1 -0
  696. package/app/models/settings/settings-group.d.ts +13 -0
  697. package/app/models/settings/settings-group.js +16 -0
  698. package/app/models/settings/settings-group.js.map +1 -0
  699. package/app/models/settings/settings-page-entry.d.ts +22 -0
  700. package/app/models/settings/settings-page-entry.js +30 -0
  701. package/app/models/settings/settings-page-entry.js.map +1 -0
  702. package/app/models/settings/settings-page.d.ts +26 -0
  703. package/app/models/settings/settings-page.js +62 -0
  704. package/app/models/settings/settings-page.js.map +1 -0
  705. package/app/models/settings/settings-row.d.ts +42 -0
  706. package/app/models/settings/settings-row.js +24 -0
  707. package/app/models/settings/settings-row.js.map +1 -0
  708. package/app/models/settings/shortcut-notice.d.ts +15 -0
  709. package/app/models/settings/shortcut-notice.js +20 -0
  710. package/app/models/settings/shortcut-notice.js.map +1 -0
  711. package/app/models/settings/shortcut-row.d.ts +17 -0
  712. package/app/models/settings/shortcut-row.js +26 -0
  713. package/app/models/settings/shortcut-row.js.map +1 -0
  714. package/app/models/settings/text-match.d.ts +16 -0
  715. package/app/models/settings/text-match.js +41 -0
  716. package/app/models/settings/text-match.js.map +1 -0
  717. package/app/models/settings/word-breaks.d.ts +13 -0
  718. package/app/models/settings/word-breaks.js +34 -0
  719. package/app/models/settings/word-breaks.js.map +1 -0
  720. package/app/models/settings-page-contribution.d.ts +46 -0
  721. package/app/models/settings-page-contribution.js +20 -0
  722. package/app/models/settings-page-contribution.js.map +1 -0
  723. package/app/models/shell-documents.d.ts +21 -0
  724. package/app/models/shell-documents.js +25 -0
  725. package/app/models/shell-documents.js.map +1 -0
  726. package/app/models/shell-menus.d.ts +16 -0
  727. package/app/models/shell-menus.js +97 -0
  728. package/app/models/shell-menus.js.map +1 -0
  729. package/app/models/shortcut-binding.d.ts +13 -0
  730. package/app/models/shortcut-binding.js +16 -0
  731. package/app/models/shortcut-binding.js.map +1 -0
  732. package/app/models/shortcut-collision.d.ts +14 -0
  733. package/app/models/shortcut-collision.js +18 -0
  734. package/app/models/shortcut-collision.js.map +1 -0
  735. package/app/models/shortcut-map.d.ts +27 -0
  736. package/app/models/shortcut-map.js +64 -0
  737. package/app/models/shortcut-map.js.map +1 -0
  738. package/app/models/spelling-offer.d.ts +15 -0
  739. package/app/models/spelling-offer.js +24 -0
  740. package/app/models/spelling-offer.js.map +1 -0
  741. package/app/models/startup-state.d.ts +17 -0
  742. package/app/models/startup-state.js +35 -0
  743. package/app/models/startup-state.js.map +1 -0
  744. package/app/models/status-bar-item-contribution.d.ts +45 -0
  745. package/app/models/status-bar-item-contribution.js +20 -0
  746. package/app/models/status-bar-item-contribution.js.map +1 -0
  747. package/app/models/status-bar-item-state.d.ts +82 -0
  748. package/app/models/status-bar-item-state.js +43 -0
  749. package/app/models/status-bar-item-state.js.map +1 -0
  750. package/app/models/status-bar-item.d.ts +62 -0
  751. package/app/models/status-bar-item.js +29 -0
  752. package/app/models/status-bar-item.js.map +1 -0
  753. package/app/models/submenu-row.d.ts +15 -0
  754. package/app/models/submenu-row.js +19 -0
  755. package/app/models/submenu-row.js.map +1 -0
  756. package/app/models/tab-content.d.ts +18 -0
  757. package/app/models/tab-content.js +22 -0
  758. package/app/models/tab-content.js.map +1 -0
  759. package/app/models/tab-target.d.ts +19 -0
  760. package/app/models/tab-target.js +30 -0
  761. package/app/models/tab-target.js.map +1 -0
  762. package/app/models/text-range.d.ts +40 -0
  763. package/app/models/text-range.js +25 -0
  764. package/app/models/text-range.js.map +1 -0
  765. package/app/models/toolbar-drop-target.d.ts +17 -0
  766. package/app/models/toolbar-drop-target.js +28 -0
  767. package/app/models/toolbar-drop-target.js.map +1 -0
  768. package/app/models/toolbar-fit.d.ts +10 -0
  769. package/app/models/toolbar-fit.js +17 -0
  770. package/app/models/toolbar-fit.js.map +1 -0
  771. package/app/models/toolbar-placement.d.ts +14 -0
  772. package/app/models/toolbar-placement.js +24 -0
  773. package/app/models/toolbar-placement.js.map +1 -0
  774. package/app/models/toolbar.d.ts +14 -0
  775. package/app/models/toolbar.js +18 -0
  776. package/app/models/toolbar.js.map +1 -0
  777. package/app/models/top-bar-action-contribution.d.ts +44 -0
  778. package/app/models/top-bar-action-contribution.js +21 -0
  779. package/app/models/top-bar-action-contribution.js.map +1 -0
  780. package/app/models/top-bar-action-state.d.ts +51 -0
  781. package/app/models/top-bar-action-state.js +27 -0
  782. package/app/models/top-bar-action-state.js.map +1 -0
  783. package/app/models/top-bar-action.d.ts +62 -0
  784. package/app/models/top-bar-action.js +29 -0
  785. package/app/models/top-bar-action.js.map +1 -0
  786. package/app/models/update-state.d.ts +23 -0
  787. package/app/models/update-state.js +56 -0
  788. package/app/models/update-state.js.map +1 -0
  789. package/app/models/view-badge.d.ts +37 -0
  790. package/app/models/view-badge.js +22 -0
  791. package/app/models/view-badge.js.map +1 -0
  792. package/app/models/view-contribution.d.ts +91 -0
  793. package/app/models/view-contribution.js +42 -0
  794. package/app/models/view-contribution.js.map +1 -0
  795. package/app/models/web-view-handle.d.ts +59 -0
  796. package/app/models/web-view-handle.js +121 -0
  797. package/app/models/web-view-handle.js.map +1 -0
  798. package/app/models/web-view-layer.d.ts +20 -0
  799. package/app/models/web-view-layer.js +45 -0
  800. package/app/models/web-view-layer.js.map +1 -0
  801. package/app/models/window-appearance.d.ts +18 -0
  802. package/app/models/window-appearance.js +61 -0
  803. package/app/models/window-appearance.js.map +1 -0
  804. package/app/models/window-application.d.ts +32 -0
  805. package/app/models/window-application.js +45 -0
  806. package/app/models/window-application.js.map +1 -0
  807. package/app/models/window-palette.d.ts +18 -0
  808. package/app/models/window-palette.js +26 -0
  809. package/app/models/window-palette.js.map +1 -0
  810. package/app/models/window-part-activation.d.ts +16 -0
  811. package/app/models/window-part-activation.js +18 -0
  812. package/app/models/window-part-activation.js.map +1 -0
  813. package/app/models/window-part-context.d.ts +174 -0
  814. package/app/models/window-part-context.js +716 -0
  815. package/app/models/window-part-context.js.map +1 -0
  816. package/app/models/window-part-source.d.ts +95 -0
  817. package/app/models/window-part-source.js +40 -0
  818. package/app/models/window-part-source.js.map +1 -0
  819. package/app/models/window-part-tokens.d.ts +32 -0
  820. package/app/models/window-part-tokens.js +15 -0
  821. package/app/models/window-part-tokens.js.map +1 -0
  822. package/app/models/window-secrets.d.ts +18 -0
  823. package/app/models/window-secrets.js +33 -0
  824. package/app/models/window-secrets.js.map +1 -0
  825. package/app/models/window-web-views.d.ts +18 -0
  826. package/app/models/window-web-views.js +34 -0
  827. package/app/models/window-web-views.js.map +1 -0
  828. package/app/services/agent-control.service.d.ts +24 -0
  829. package/app/services/agent-control.service.js +58 -0
  830. package/app/services/agent-control.service.js.map +1 -0
  831. package/app/services/appearance-settings.service.d.ts +12 -0
  832. package/app/services/appearance-settings.service.js +50 -0
  833. package/app/services/appearance-settings.service.js.map +1 -0
  834. package/app/services/bar-items.service.d.ts +22 -0
  835. package/app/services/bar-items.service.js +36 -0
  836. package/app/services/bar-items.service.js.map +1 -0
  837. package/app/services/clock-setting.service.d.ts +26 -0
  838. package/app/services/clock-setting.service.js +43 -0
  839. package/app/services/clock-setting.service.js.map +1 -0
  840. package/app/services/closing.service.d.ts +19 -0
  841. package/app/services/closing.service.js +99 -0
  842. package/app/services/closing.service.js.map +1 -0
  843. package/app/services/command.service.d.ts +51 -0
  844. package/app/services/command.service.js +178 -0
  845. package/app/services/command.service.js.map +1 -0
  846. package/app/services/details.service.d.ts +8 -0
  847. package/app/services/details.service.js +28 -0
  848. package/app/services/details.service.js.map +1 -0
  849. package/app/services/dialog-cover.service.d.ts +32 -0
  850. package/app/services/dialog-cover.service.js +102 -0
  851. package/app/services/dialog-cover.service.js.map +1 -0
  852. package/app/services/dock-growth.service.d.ts +15 -0
  853. package/app/services/dock-growth.service.js +63 -0
  854. package/app/services/dock-growth.service.js.map +1 -0
  855. package/app/services/document-history.service.d.ts +24 -0
  856. package/app/services/document-history.service.js +68 -0
  857. package/app/services/document-history.service.js.map +1 -0
  858. package/app/services/document-instances.service.d.ts +15 -0
  859. package/app/services/document-instances.service.js +47 -0
  860. package/app/services/document-instances.service.js.map +1 -0
  861. package/app/services/document-opener.service.d.ts +18 -0
  862. package/app/services/document-opener.service.js +75 -0
  863. package/app/services/document-opener.service.js.map +1 -0
  864. package/app/services/edit-target.service.d.ts +23 -0
  865. package/app/services/edit-target.service.js +93 -0
  866. package/app/services/edit-target.service.js.map +1 -0
  867. package/app/services/issued-file-grants.reader.d.ts +13 -0
  868. package/app/services/issued-file-grants.reader.js +24 -0
  869. package/app/services/issued-file-grants.reader.js.map +1 -0
  870. package/app/services/layout-menu.service.d.ts +9 -0
  871. package/app/services/layout-menu.service.js +32 -0
  872. package/app/services/layout-menu.service.js.map +1 -0
  873. package/app/services/layout-store.service.d.ts +10 -0
  874. package/app/services/layout-store.service.js +35 -0
  875. package/app/services/layout-store.service.js.map +1 -0
  876. package/app/services/layout.reader.d.ts +23 -0
  877. package/app/services/layout.reader.js +113 -0
  878. package/app/services/layout.reader.js.map +1 -0
  879. package/app/services/layout.service.d.ts +98 -0
  880. package/app/services/layout.service.js +309 -0
  881. package/app/services/layout.service.js.map +1 -0
  882. package/app/services/link.service.d.ts +34 -0
  883. package/app/services/link.service.js +116 -0
  884. package/app/services/link.service.js.map +1 -0
  885. package/app/services/live-view.service.d.ts +38 -0
  886. package/app/services/live-view.service.js +130 -0
  887. package/app/services/live-view.service.js.map +1 -0
  888. package/app/services/menu-bar.service.d.ts +28 -0
  889. package/app/services/menu-bar.service.js +89 -0
  890. package/app/services/menu-bar.service.js.map +1 -0
  891. package/app/services/menu.service.d.ts +34 -0
  892. package/app/services/menu.service.js +96 -0
  893. package/app/services/menu.service.js.map +1 -0
  894. package/app/services/module-selection.service.d.ts +18 -0
  895. package/app/services/module-selection.service.js +31 -0
  896. package/app/services/module-selection.service.js.map +1 -0
  897. package/app/services/module-status.service.d.ts +22 -0
  898. package/app/services/module-status.service.js +39 -0
  899. package/app/services/module-status.service.js.map +1 -0
  900. package/app/services/module-switch.service.d.ts +16 -0
  901. package/app/services/module-switch.service.js +56 -0
  902. package/app/services/module-switch.service.js.map +1 -0
  903. package/app/services/notification.service.d.ts +38 -0
  904. package/app/services/notification.service.js +103 -0
  905. package/app/services/notification.service.js.map +1 -0
  906. package/app/services/preload-bridge.service.d.ts +114 -0
  907. package/app/services/preload-bridge.service.js +495 -0
  908. package/app/services/preload-bridge.service.js.map +1 -0
  909. package/app/services/program-status.service.d.ts +27 -0
  910. package/app/services/program-status.service.js +75 -0
  911. package/app/services/program-status.service.js.map +1 -0
  912. package/app/services/quit.service.d.ts +17 -0
  913. package/app/services/quit.service.js +37 -0
  914. package/app/services/quit.service.js.map +1 -0
  915. package/app/services/recent-commands.service.d.ts +24 -0
  916. package/app/services/recent-commands.service.js +63 -0
  917. package/app/services/recent-commands.service.js.map +1 -0
  918. package/app/services/search-palette.service.d.ts +20 -0
  919. package/app/services/search-palette.service.js +66 -0
  920. package/app/services/search-palette.service.js.map +1 -0
  921. package/app/services/search.service.d.ts +20 -0
  922. package/app/services/search.service.js +40 -0
  923. package/app/services/search.service.js.map +1 -0
  924. package/app/services/setting-check.service.d.ts +10 -0
  925. package/app/services/setting-check.service.js +32 -0
  926. package/app/services/setting-check.service.js.map +1 -0
  927. package/app/services/setting-options.service.d.ts +14 -0
  928. package/app/services/setting-options.service.js +38 -0
  929. package/app/services/setting-options.service.js.map +1 -0
  930. package/app/services/settings-page.service.d.ts +19 -0
  931. package/app/services/settings-page.service.js +35 -0
  932. package/app/services/settings-page.service.js.map +1 -0
  933. package/app/services/settings-rows.service.d.ts +17 -0
  934. package/app/services/settings-rows.service.js +29 -0
  935. package/app/services/settings-rows.service.js.map +1 -0
  936. package/app/services/settings.service.d.ts +38 -0
  937. package/app/services/settings.service.js +104 -0
  938. package/app/services/settings.service.js.map +1 -0
  939. package/app/services/shell-commands.service.d.ts +61 -0
  940. package/app/services/shell-commands.service.js +346 -0
  941. package/app/services/shell-commands.service.js.map +1 -0
  942. package/app/services/shell-search-sources.service.d.ts +35 -0
  943. package/app/services/shell-search-sources.service.js +103 -0
  944. package/app/services/shell-search-sources.service.js.map +1 -0
  945. package/app/services/spelling.service.d.ts +26 -0
  946. package/app/services/spelling.service.js +75 -0
  947. package/app/services/spelling.service.js.map +1 -0
  948. package/app/services/startup.service.d.ts +19 -0
  949. package/app/services/startup.service.js +62 -0
  950. package/app/services/startup.service.js.map +1 -0
  951. package/app/services/support.service.d.ts +18 -0
  952. package/app/services/support.service.js +79 -0
  953. package/app/services/support.service.js.map +1 -0
  954. package/app/services/tab-destinations.service.d.ts +10 -0
  955. package/app/services/tab-destinations.service.js +41 -0
  956. package/app/services/tab-destinations.service.js.map +1 -0
  957. package/app/services/tab-drag.service.d.ts +33 -0
  958. package/app/services/tab-drag.service.js +138 -0
  959. package/app/services/tab-drag.service.js.map +1 -0
  960. package/app/services/tab-focus.service.d.ts +24 -0
  961. package/app/services/tab-focus.service.js +93 -0
  962. package/app/services/tab-focus.service.js.map +1 -0
  963. package/app/services/tab-label.service.d.ts +37 -0
  964. package/app/services/tab-label.service.js +104 -0
  965. package/app/services/tab-label.service.js.map +1 -0
  966. package/app/services/tab-rename.service.d.ts +30 -0
  967. package/app/services/tab-rename.service.js +82 -0
  968. package/app/services/tab-rename.service.js.map +1 -0
  969. package/app/services/tab-row.service.d.ts +16 -0
  970. package/app/services/tab-row.service.js +50 -0
  971. package/app/services/tab-row.service.js.map +1 -0
  972. package/app/services/tab-strip.service.d.ts +11 -0
  973. package/app/services/tab-strip.service.js +44 -0
  974. package/app/services/tab-strip.service.js.map +1 -0
  975. package/app/services/time-formats.service.d.ts +20 -0
  976. package/app/services/time-formats.service.js +40 -0
  977. package/app/services/time-formats.service.js.map +1 -0
  978. package/app/services/toast.service.d.ts +31 -0
  979. package/app/services/toast.service.js +143 -0
  980. package/app/services/toast.service.js.map +1 -0
  981. package/app/services/toolbar-drag.service.d.ts +21 -0
  982. package/app/services/toolbar-drag.service.js +105 -0
  983. package/app/services/toolbar-drag.service.js.map +1 -0
  984. package/app/services/toolbar.service.d.ts +34 -0
  985. package/app/services/toolbar.service.js +89 -0
  986. package/app/services/toolbar.service.js.map +1 -0
  987. package/app/services/update.service.d.ts +25 -0
  988. package/app/services/update.service.js +47 -0
  989. package/app/services/update.service.js.map +1 -0
  990. package/app/services/view-dialog.service.d.ts +28 -0
  991. package/app/services/view-dialog.service.js +113 -0
  992. package/app/services/view-dialog.service.js.map +1 -0
  993. package/app/services/view-instances.service.d.ts +37 -0
  994. package/app/services/view-instances.service.js +132 -0
  995. package/app/services/view-instances.service.js.map +1 -0
  996. package/app/services/web-view.service.d.ts +56 -0
  997. package/app/services/web-view.service.js +302 -0
  998. package/app/services/web-view.service.js.map +1 -0
  999. package/app/services/window-error-handler.d.ts +18 -0
  1000. package/app/services/window-error-handler.js +43 -0
  1001. package/app/services/window-error-handler.js.map +1 -0
  1002. package/app/services/window-part-host.service.d.ts +201 -0
  1003. package/app/services/window-part-host.service.js +796 -0
  1004. package/app/services/window-part-host.service.js.map +1 -0
  1005. package/app/services/window-row-overlay.service.d.ts +15 -0
  1006. package/app/services/window-row-overlay.service.js +79 -0
  1007. package/app/services/window-row-overlay.service.js.map +1 -0
  1008. package/package.json +49 -3
  1009. package/resources.d.ts +1042 -0
  1010. package/resources.js +1454 -0
  1011. package/resources.js.map +1 -0
  1012. package/testing/models/fake-window-part-context.d.ts +1422 -0
  1013. package/testing/models/fake-window-part-context.js +110 -0
  1014. package/testing/models/fake-window-part-context.js.map +1 -0
  1015. package/testing/models/fake-window-secrets.d.ts +109 -0
  1016. package/testing/models/fake-window-secrets.js +14 -0
  1017. package/testing/models/fake-window-secrets.js.map +1 -0
  1018. package/testing/models/fake-window-web-views.d.ts +66 -0
  1019. package/testing/models/fake-window-web-views.js +12 -0
  1020. package/testing/models/fake-window-web-views.js.map +1 -0
@@ -0,0 +1,495 @@
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 { Injectable } from "@angular/core";
9
+ import { ClipboardWriter } from "@noldova/ui.components.angular";
10
+ import { nameof } from "@noldova/context.core";
11
+ import { JsonReader } from "@noldova/context.json";
12
+ import { AppShortcut, AppShortcutList, FailureCode, FileGrantsDiscard, ShellMethods, WebViewEvent, WebViewInfo, WebViewNavigation } from "@noldova/desktop.protocol";
13
+ import { FileSaveOutcome } from "../enums/file-save-outcome.js";
14
+ import { WebViewInputKind } from "../enums/web-view-input-kind.js";
15
+ import { PreloadBridgeException } from "../exceptions/preload-bridge.exception.js";
16
+ import { RuntimeDisconnectedException } from "../exceptions/runtime-disconnected.exception.js";
17
+ import { RuntimeRequestException } from "../exceptions/runtime-request.exception.js";
18
+ import { BuildInfo } from "../models/build-info.js";
19
+ import { ClipboardImage } from "../models/clipboard-image.js";
20
+ import { FieldMenuRequest } from "../models/field-menu-request.js";
21
+ import { QuitQuestion } from "../models/quit-question.js";
22
+ import { SpellingOffer } from "../models/spelling-offer.js";
23
+ import { StartupState } from "../models/startup-state.js";
24
+ import { UpdateState } from "../models/update-state.js";
25
+ import { Resources } from "../../resources.js";
26
+ import { IssuedFileGrantsReader } from "./issued-file-grants.reader.js";
27
+ import * as i0 from "@angular/core";
28
+ export class PreloadBridgeService extends ClipboardWriter {
29
+ bridge = PreloadBridgeService.find();
30
+ eventListeners = new Set();
31
+ namedEventListeners = new Map();
32
+ stopEvents = null;
33
+ isCopyingImage = false;
34
+ get platform() {
35
+ return this.bridge.platform;
36
+ }
37
+ get processor() {
38
+ return this.bridge.processor;
39
+ }
40
+ get initialAppearance() {
41
+ return this.bridge.appearance;
42
+ }
43
+ get isMac() {
44
+ return this.bridge.platform === Resources.macPlatform;
45
+ }
46
+ notifyReady(appearance) {
47
+ this.bridge.notifyReady(appearance.toJson());
48
+ }
49
+ notifyAppearance(appearance) {
50
+ this.bridge.notifyAppearance(appearance.toJson());
51
+ }
52
+ onCloseRequest(listener) {
53
+ return this.bridge.onCloseRequest(listener);
54
+ }
55
+ answerCloseAsync(requestId, isSaved) {
56
+ return this.bridge.answerClose(requestId, isSaved);
57
+ }
58
+ onUpdateSaveRequest(listener) {
59
+ return this.bridge.onUpdateSaveRequest(listener);
60
+ }
61
+ answerUpdateSaveAsync(requestId, problems) {
62
+ return this.bridge.answerUpdateSave(requestId, problems);
63
+ }
64
+ async readStartupAsync() {
65
+ return StartupState.fromJson(await this.bridge.readStartup());
66
+ }
67
+ onStartup(listener) {
68
+ return this.bridge.onStartup(t => listener(StartupState.fromJson(t)));
69
+ }
70
+ actOnStartupAsync(action) {
71
+ return this.bridge.actOnStartup(action);
72
+ }
73
+ async readLayoutAsync() {
74
+ const layout = PreloadBridgeService.readAnswer(await this.bridge.readLayout());
75
+ return Object.isNull(layout) ? null : JsonReader.fromValue(layout).toJson();
76
+ }
77
+ async writeLayoutAsync(layout) {
78
+ PreloadBridgeService.readAnswer(await this.bridge.writeLayout(layout));
79
+ }
80
+ async requestAsync(method, payload) {
81
+ return PreloadBridgeService.readAnswer(await this.bridge.request(method, payload));
82
+ }
83
+ onEvent(listener) {
84
+ const entry = (name, payload) => listener(name, payload);
85
+ this.eventListeners.add(entry);
86
+ this.listenToEvents();
87
+ return () => this.stopListening(() => this.eventListeners.delete(entry));
88
+ }
89
+ onNamedEvent(name, listener) {
90
+ const entry = (payload) => listener(payload);
91
+ const listeners = this.namedEventListeners.get(name) ?? new Set();
92
+ this.namedEventListeners.set(name, listeners.add(entry));
93
+ this.listenToEvents();
94
+ return () => this.stopListening(() => {
95
+ listeners.delete(entry);
96
+ if (listeners.size === 0 && this.namedEventListeners.get(name) === listeners)
97
+ this.namedEventListeners.delete(name);
98
+ });
99
+ }
100
+ editAsync(action) {
101
+ return this.bridge.edit(action);
102
+ }
103
+ setMenuBar(menuBar) {
104
+ this.bridge.setMenuBar(menuBar);
105
+ }
106
+ onMenuCommand(listener) {
107
+ return this.bridge.onMenuCommand(listener);
108
+ }
109
+ async readBuildAsync() {
110
+ return BuildInfo.fromJson(await this.bridge.readBuild());
111
+ }
112
+ writeTextAsync(text) {
113
+ return this.bridge.copyText(text);
114
+ }
115
+ async writeImageAsync(bytes) {
116
+ if (this.isCopyingImage)
117
+ return false;
118
+ this.isCopyingImage = true;
119
+ try {
120
+ const image = await ClipboardImage.readAsync(bytes);
121
+ return !Object.isNull(image) && await this.bridge.copyImage(image);
122
+ }
123
+ finally {
124
+ this.isCopyingImage = false;
125
+ }
126
+ }
127
+ openLogFolderAsync() {
128
+ return this.bridge.openLogFolder();
129
+ }
130
+ copyDetailsAsync(text) {
131
+ return this.bridge.copyDetails(text);
132
+ }
133
+ openLinkAsync(url) {
134
+ return this.bridge.openLink(url);
135
+ }
136
+ async showInFolderAsync(path) {
137
+ const refusal = await this.bridge.showInFolder(path);
138
+ return Object.isNull(refusal) || Object.isString(refusal) ? refusal : Resources.fileNotShownWithoutReason;
139
+ }
140
+ async openFileAsync(path) {
141
+ const refusal = await this.bridge.openFile(path);
142
+ return Object.isNull(refusal) || Object.isString(refusal) ? refusal : Resources.fileNotShownWithoutReason;
143
+ }
144
+ async chooseFolderAsync() {
145
+ const folder = await this.bridge.chooseFolder();
146
+ return Object.isString(folder) ? folder : null;
147
+ }
148
+ async chooseFilePathAsync(options) {
149
+ const path = await this.bridge.chooseFilePath({
150
+ ...Object.isUndefined(options.extensions) ? {} : { [Resources.extensionsField]: [...options.extensions] },
151
+ ...Object.isUndefined(options.folder) ? {} : { [Resources.folderField]: options.folder }
152
+ });
153
+ return Object.isString(path) ? path : null;
154
+ }
155
+ async saveFileAsync(name, bytes) {
156
+ const outcome = await this.bridge.saveFile(name, bytes);
157
+ return Object.values(FileSaveOutcome).find(t => t === outcome) ?? FileSaveOutcome.Failed;
158
+ }
159
+ async chooseFilesAsync(moduleId, options) {
160
+ return IssuedFileGrantsReader.read(await this.bridge.chooseFiles(moduleId, PreloadBridgeService.grantOptions(options, options.multiple)));
161
+ }
162
+ async grantFilesAsync(moduleId, files, options) {
163
+ return IssuedFileGrantsReader.read(await this.bridge.grantFiles(moduleId, files, PreloadBridgeService.grantOptions(options, undefined)));
164
+ }
165
+ async discardFileGrantsAsync(grants) {
166
+ for (let start = 0; start < grants.length; start += FileGrantsDiscard.maximumGrants)
167
+ await this.requestAsync(ShellMethods.discardFileGrants.text, new FileGrantsDiscard(grants.slice(start, start + FileGrantsDiscard.maximumGrants)).toJson());
168
+ }
169
+ installCommandAsync() {
170
+ return this.bridge.installCommand();
171
+ }
172
+ async readUpdateAsync() {
173
+ return UpdateState.fromJson(await this.bridge.readUpdate());
174
+ }
175
+ onUpdate(listener) {
176
+ return this.bridge.onUpdate(t => listener(UpdateState.fromJson(t)));
177
+ }
178
+ actOnUpdateAsync(action) {
179
+ return this.bridge.actOnUpdate(action);
180
+ }
181
+ keepAppearance(preferences) {
182
+ this.bridge.keepAppearance(preferences);
183
+ }
184
+ async readSpellingAsync() {
185
+ return SpellingOffer.fromJson(await this.bridge.readSpelling());
186
+ }
187
+ keepSpelling(isChecking, languages) {
188
+ this.bridge.keepSpelling(isChecking, languages);
189
+ }
190
+ onFieldMenu(listener) {
191
+ return this.bridge.onFieldMenu(t => listener(FieldMenuRequest.fromJson(t)));
192
+ }
193
+ replaceMisspellingAsync(text) {
194
+ return this.bridge.replaceMisspelling(text);
195
+ }
196
+ addToDictionaryAsync(word) {
197
+ return this.bridge.addToDictionary(word);
198
+ }
199
+ onNotificationOpened(listener) {
200
+ return this.bridge.onNotificationOpened(t => {
201
+ if (Object.isString(t) && !String.isNullOrWhitespace(t))
202
+ listener(t);
203
+ });
204
+ }
205
+ onQuitQuestion(listener) {
206
+ return this.bridge.onQuitQuestion(t => listener(Object.isNull(t) ? null : QuitQuestion.fromJson(t)));
207
+ }
208
+ answerQuitAsync(choice) {
209
+ return this.bridge.answerQuit(choice);
210
+ }
211
+ async readTrayAvailableAsync() {
212
+ return await this.bridge.readTrayAvailable() !== false;
213
+ }
214
+ onTrayAvailable(listener) {
215
+ return this.bridge.onTrayAvailable(t => {
216
+ if (Object.isBoolean(t))
217
+ listener(t);
218
+ });
219
+ }
220
+ async readFullScreenAsync() {
221
+ return await this.bridge.readFullScreen() === true;
222
+ }
223
+ onFullScreen(listener) {
224
+ return this.bridge.onFullScreen(t => {
225
+ if (Object.isBoolean(t))
226
+ listener(t);
227
+ });
228
+ }
229
+ async readMaximizedAsync() {
230
+ return await this.bridge.readMaximized() === true;
231
+ }
232
+ onMaximized(listener) {
233
+ return this.bridge.onMaximized(t => {
234
+ if (Object.isBoolean(t))
235
+ listener(t);
236
+ });
237
+ }
238
+ async actOnWindowAsync(action) {
239
+ return await this.bridge.actOnWindow(action) === true;
240
+ }
241
+ async openWebViewAsync(moduleId, pane, profileKey) {
242
+ const answer = await this.bridge.openWebView(moduleId, pane.toJson(), profileKey);
243
+ if (Object.isNull(answer))
244
+ return null;
245
+ const json = JsonReader.fromValue(answer);
246
+ const view = WebViewInfo.fromJson(json.readObject(Resources.webViewViewField).toJson());
247
+ const partition = json.readString(Resources.webViewPartitionField);
248
+ if (!String.isNullOrWhitespace(partition))
249
+ return { view, partition };
250
+ this.bridge.closeWebView(moduleId, view.id);
251
+ return null;
252
+ }
253
+ async attachWebViewAsync(moduleId, view, contentsId) {
254
+ const answer = await this.bridge.attachWebView(moduleId, view, contentsId);
255
+ try {
256
+ return JsonReader.fromValue(answer).readBoolean(Resources.webViewIsAttachedField);
257
+ }
258
+ catch {
259
+ return false;
260
+ }
261
+ }
262
+ async navigateWebViewAsync(moduleId, view, url) {
263
+ const answer = await this.bridge.navigateWebView(moduleId, view, url);
264
+ return Object.isNull(answer) ? null : WebViewNavigation.fromJson(answer);
265
+ }
266
+ async actOnWebViewAsync(moduleId, view, action) {
267
+ const answer = await this.bridge.actOnWebView(moduleId, view, action);
268
+ return Object.isNull(answer) ? null : WebViewNavigation.fromJson(answer);
269
+ }
270
+ async zoomWebViewAsync(moduleId, view, change) {
271
+ const factor = await this.bridge.zoomWebView(moduleId, view, change);
272
+ return Object.isNumber(factor) && Number.isFinite(factor) ? factor : null;
273
+ }
274
+ async findInWebViewAsync(moduleId, view, request) {
275
+ const found = await this.bridge.findInWebView(moduleId, view, request);
276
+ try {
277
+ const json = JsonReader.fromValue(found);
278
+ if (json.hasField(Resources.webViewIsTimedOutField) && json.readBoolean(Resources.webViewIsTimedOutField))
279
+ return { matches: 0, active: 0, isTimedOut: true, isEnded: false };
280
+ if (json.hasField(Resources.webViewIsEndedField) && json.readBoolean(Resources.webViewIsEndedField))
281
+ return { matches: 0, active: 0, isTimedOut: false, isEnded: true };
282
+ return { matches: json.readInteger(Resources.webViewMatchesField), active: json.readInteger(Resources.webViewActiveField), isTimedOut: false, isEnded: false };
283
+ }
284
+ catch {
285
+ return null;
286
+ }
287
+ }
288
+ closeWebView(moduleId, view) {
289
+ this.bridge.closeWebView(moduleId, view);
290
+ }
291
+ keepWebViews(views) {
292
+ this.bridge.keepWebViews(views);
293
+ }
294
+ expectWebView(moduleId, view) {
295
+ this.bridge.expectWebView(moduleId, view);
296
+ }
297
+ setWebViewShortcuts(keys) {
298
+ this.bridge.setWebViewShortcuts(keys.map(t => t.text));
299
+ }
300
+ setAppShortcuts(shortcuts) {
301
+ this.bridge.setAppShortcuts(new AppShortcutList(shortcuts.map(([key, command]) => new AppShortcut(key, command, false))).toJson());
302
+ }
303
+ onWebViewEvent(listener) {
304
+ return this.bridge.onWebViewEvent(t => {
305
+ const event = PreloadBridgeService.readWebViewEvent(t);
306
+ if (!Object.isNull(event))
307
+ listener(event);
308
+ });
309
+ }
310
+ onWebViewShortcut(listener) {
311
+ return this.bridge.onWebViewShortcut(t => {
312
+ const event = PreloadBridgeService.readKeyStroke(t);
313
+ if (!Object.isNull(event))
314
+ listener(event);
315
+ });
316
+ }
317
+ onWebViewInput(listener) {
318
+ return this.bridge.onWebViewInput(t => {
319
+ const input = PreloadBridgeService.readWebViewInput(t);
320
+ if (!Object.isNull(input))
321
+ listener(input);
322
+ });
323
+ }
324
+ releaseWebViewFocus(moduleId, view) {
325
+ this.bridge.releaseWebViewFocus(moduleId, view);
326
+ }
327
+ logModule(moduleId, message) {
328
+ this.bridge.logModule(moduleId, message);
329
+ }
330
+ logError(moduleId, text) {
331
+ this.bridge.logError(moduleId, text);
332
+ }
333
+ listenToEvents() {
334
+ this.stopEvents ??= this.bridge.onEvent((name, payload) => this.receiveEvent(name, payload));
335
+ }
336
+ stopListening(remove) {
337
+ remove();
338
+ if (this.eventListeners.size > 0 || this.namedEventListeners.size > 0)
339
+ return;
340
+ this.stopEvents?.();
341
+ this.stopEvents = null;
342
+ }
343
+ receiveEvent(name, payload) {
344
+ const listeners = [...this.eventListeners];
345
+ const named = [...this.namedEventListeners.get(name) ?? []];
346
+ if (listeners.length === 0 && named.length === 0)
347
+ return;
348
+ const value = JsonReader.toJsonValue(payload);
349
+ for (const listener of listeners)
350
+ listener(name, value);
351
+ for (const listener of named)
352
+ listener(value);
353
+ }
354
+ static readWebViewEvent(value) {
355
+ try {
356
+ return WebViewEvent.fromJson(value);
357
+ }
358
+ catch {
359
+ return null;
360
+ }
361
+ }
362
+ static readKeyStroke(value) {
363
+ try {
364
+ const json = JsonReader.fromValue(value);
365
+ return new KeyboardEvent(Resources.keyDownEvent, {
366
+ key: json.readString(nameof(t => t.key)),
367
+ code: json.readString(nameof(t => t.code)),
368
+ ctrlKey: json.readBoolean(nameof(t => t.ctrlKey)),
369
+ altKey: json.readBoolean(nameof(t => t.altKey)),
370
+ shiftKey: json.readBoolean(nameof(t => t.shiftKey)),
371
+ metaKey: json.readBoolean(nameof(t => t.metaKey)),
372
+ cancelable: true
373
+ });
374
+ }
375
+ catch {
376
+ return null;
377
+ }
378
+ }
379
+ static readWebViewInput(value) {
380
+ try {
381
+ const json = JsonReader.fromValue(value);
382
+ return {
383
+ module: json.readString(nameof(t => t.module)),
384
+ view: json.readString(nameof(t => t.view)),
385
+ kind: json.readOneOf(nameof(t => t.kind), Object.values(WebViewInputKind))
386
+ };
387
+ }
388
+ catch {
389
+ return null;
390
+ }
391
+ }
392
+ static grantOptions(options, multiple) {
393
+ return {
394
+ ...Object.isUndefined(options.lifetime) ? {} : { [Resources.lifetimeField]: options.lifetime },
395
+ ...Object.isUndefined(multiple) ? {} : { [Resources.multipleField]: multiple }
396
+ };
397
+ }
398
+ static readAnswer(value) {
399
+ const answer = JsonReader.fromValue(value);
400
+ if (!answer.hasField(Resources.failureField))
401
+ return answer.readValue(Resources.payloadField);
402
+ const failure = answer.readObject(Resources.failureField);
403
+ const code = failure.readString(Resources.codeField);
404
+ if (code === FailureCode.Disconnected)
405
+ throw new RuntimeDisconnectedException(failure.readString(Resources.messageField));
406
+ throw new RuntimeRequestException(code, failure.readString(Resources.messageField), failure.hasField(Resources.detailsField) ? failure.readObject(Resources.detailsField).toJson() : undefined);
407
+ }
408
+ static find() {
409
+ const bridge = PreloadBridgeService.memberOf(globalThis, Resources.bridgeName);
410
+ if (!PreloadBridgeService.isBridge(bridge))
411
+ throw new PreloadBridgeException();
412
+ return bridge;
413
+ }
414
+ static isBridge(value) {
415
+ return Object.isObject(value) &&
416
+ Object.isString(PreloadBridgeService.memberOf(value, nameof(t => t.platform))) &&
417
+ Object.isString(PreloadBridgeService.memberOf(value, nameof(t => t.processor))) &&
418
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.notifyReady))) &&
419
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.notifyAppearance))) &&
420
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.onCloseRequest))) &&
421
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.answerClose))) &&
422
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.onUpdateSaveRequest))) &&
423
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.answerUpdateSave))) &&
424
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.readStartup))) &&
425
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.onStartup))) &&
426
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.actOnStartup))) &&
427
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.readLayout))) &&
428
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.writeLayout))) &&
429
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.request))) &&
430
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.onEvent))) &&
431
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.readBuild))) &&
432
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.copyText))) &&
433
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.copyImage))) &&
434
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.openLogFolder))) &&
435
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.copyDetails))) &&
436
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.openLink))) &&
437
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.showInFolder))) &&
438
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.openFile))) &&
439
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.chooseFolder))) &&
440
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.chooseFilePath))) &&
441
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.saveFile))) &&
442
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.chooseFiles))) &&
443
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.grantFiles))) &&
444
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.installCommand))) &&
445
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.readUpdate))) &&
446
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.onUpdate))) &&
447
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.actOnUpdate))) &&
448
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.keepAppearance))) &&
449
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.readSpelling))) &&
450
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.keepSpelling))) &&
451
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.onFieldMenu))) &&
452
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.replaceMisspelling))) &&
453
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.addToDictionary))) &&
454
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.onNotificationOpened))) &&
455
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.onQuitQuestion))) &&
456
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.answerQuit))) &&
457
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.readTrayAvailable))) &&
458
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.onTrayAvailable))) &&
459
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.readFullScreen))) &&
460
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.onFullScreen))) &&
461
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.readMaximized))) &&
462
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.onMaximized))) &&
463
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.actOnWindow))) &&
464
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.openWebView))) &&
465
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.attachWebView))) &&
466
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.navigateWebView))) &&
467
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.actOnWebView))) &&
468
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.zoomWebView))) &&
469
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.findInWebView))) &&
470
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.closeWebView))) &&
471
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.keepWebViews))) &&
472
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.expectWebView))) &&
473
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.setWebViewShortcuts))) &&
474
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.setAppShortcuts))) &&
475
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.onWebViewEvent))) &&
476
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.onWebViewShortcut))) &&
477
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.onWebViewInput))) &&
478
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.releaseWebViewFocus))) &&
479
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.logModule))) &&
480
+ Object.isFunction(PreloadBridgeService.memberOf(value, nameof(t => t.logError)));
481
+ }
482
+ static memberOf(value, name) {
483
+ return PreloadBridgeService.hasMember(value, name) ? value[name] : undefined;
484
+ }
485
+ static hasMember(value, name) {
486
+ return name in value;
487
+ }
488
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PreloadBridgeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
489
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PreloadBridgeService, providedIn: "root" });
490
+ }
491
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PreloadBridgeService, decorators: [{
492
+ type: Injectable,
493
+ args: [{ providedIn: "root" }]
494
+ }] });
495
+ //# sourceMappingURL=preload-bridge.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preload-bridge.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/preload-bridge.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAmB,UAAU,EAAkB,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAmB,WAAW,EAAE,iBAAiB,EAAkC,YAAY,EAAsB,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAuC,MAAM,2BAA2B,CAAC;AAE/Q,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AA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AC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;YACjG,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACrG,CAAC;IAEO,MAAM,CAAC,QAAQ,CAAC,KAAa,EAAE,IAAY;QACjD,OAAO,oBAAoB,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC/E,CAAC;IAEO,MAAM,CAAC,SAAS,CAAC,KAAa,EAAE,IAAY;QAClD,OAAO,IAAI,IAAI,KAAK,CAAC;IACvB,CAAC;uGAniBU,oBAAoB;2GAApB,oBAAoB,cADP,MAAM;;2FACnB,oBAAoB;kBADhC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
@@ -0,0 +1,27 @@
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 { type Signal } from "@angular/core";
9
+ import "@noldova/context.core";
10
+ import { type ProgramStatus } from "@noldova/desktop.protocol";
11
+ import * as i0 from "@angular/core";
12
+ export declare class ProgramStatusService {
13
+ private readonly bridge;
14
+ private readonly errors;
15
+ private readonly listValue;
16
+ private connection;
17
+ private generationRead;
18
+ readonly programs: Signal<readonly ProgramStatus[]>;
19
+ constructor();
20
+ ofModule(moduleId: string): readonly ProgramStatus[];
21
+ private follow;
22
+ private load;
23
+ private receive;
24
+ private apply;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgramStatusService, never>;
26
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
27
+ }
@@ -0,0 +1,75 @@
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 { DestroyRef, ErrorHandler, Injectable, computed, effect, inject, signal, untracked } from "@angular/core";
9
+ import "@noldova/context.core";
10
+ import { ProgramStatusList, ShellEvents, ShellMethods } from "@noldova/desktop.protocol";
11
+ import { PreloadBridgeService } from "./preload-bridge.service.js";
12
+ import { WindowPartHostService } from "./window-part-host.service.js";
13
+ import * as i0 from "@angular/core";
14
+ export class ProgramStatusService {
15
+ bridge = inject(PreloadBridgeService);
16
+ errors = inject(ErrorHandler);
17
+ listValue = signal(null, /* @ts-ignore */
18
+ ...(ngDevMode ? [{ debugName: "listValue" }] : /* istanbul ignore next */ []));
19
+ connection = 0;
20
+ generationRead = 0;
21
+ programs = computed(() => this.listValue()?.programs ?? [], /* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "programs" }] : /* istanbul ignore next */ []));
23
+ constructor() {
24
+ const host = inject(WindowPartHostService);
25
+ const destroyRef = inject(DestroyRef);
26
+ destroyRef.onDestroy(this.bridge.onStartup(t => this.follow(t)));
27
+ destroyRef.onDestroy(this.bridge.onEvent((name, payload) => this.receive(name, payload)));
28
+ effect(() => {
29
+ const generation = host.generation();
30
+ if (generation > this.generationRead) {
31
+ this.generationRead = generation;
32
+ untracked(() => this.load());
33
+ }
34
+ });
35
+ }
36
+ ofModule(moduleId) {
37
+ return this.programs().filter(t => t.moduleId === moduleId);
38
+ }
39
+ follow(state) {
40
+ if (state.isReady)
41
+ return;
42
+ this.connection++;
43
+ this.listValue.set(null);
44
+ }
45
+ load() {
46
+ const connection = this.connection;
47
+ this.bridge.requestAsync(ShellMethods.programs.text, null).then(t => {
48
+ const list = ProgramStatusList.fromJson(t);
49
+ if (this.connection === connection)
50
+ this.apply(list);
51
+ }).catch((error) => this.errors.handleError(error));
52
+ }
53
+ receive(name, payload) {
54
+ if (name !== ShellEvents.programsChanged.text)
55
+ return;
56
+ try {
57
+ this.apply(ProgramStatusList.fromJson(payload));
58
+ }
59
+ catch (error) {
60
+ this.errors.handleError(error);
61
+ }
62
+ }
63
+ apply(list) {
64
+ const current = this.listValue();
65
+ if (Object.isNull(current) || list.sequence > current.sequence)
66
+ this.listValue.set(list);
67
+ }
68
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ProgramStatusService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
69
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ProgramStatusService, providedIn: "root" });
70
+ }
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ProgramStatusService, decorators: [{
72
+ type: Injectable,
73
+ args: [{ providedIn: "root" }]
74
+ }], ctorParameters: () => [] });
75
+ //# sourceMappingURL=program-status.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"program-status.service.js","sourceRoot":"","sources":["../../../../../src/noldova.desktop.window/src/app/services/program-status.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAoC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEpJ,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAsB,iBAAiB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG7G,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;AAGtE,MAAM,OAAO,oBAAoB;IACd,MAAM,GAAyB,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAC5D,MAAM,GAAiB,MAAM,CAAC,YAAY,CAAC,CAAC;IAC5C,SAAS,GAA6C,MAAM,CAAC,IAAI;kFAAC,CAAC;IAC5E,UAAU,GAAW,CAAC,C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