@difizen/libro-core 0.1.0 → 0.1.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 (305) hide show
  1. package/es/add-cell/index.less +1 -1
  2. package/es/add-cell/libro-add-cell-slot-contribution.d.ts +1 -2
  3. package/es/add-cell/libro-add-cell-slot-contribution.d.ts.map +1 -1
  4. package/es/add-cell/libro-add-cell-slot-contribution.js +12 -6
  5. package/es/add-cell/libro-add-cell-view.d.ts +4 -4
  6. package/es/add-cell/libro-add-cell-view.d.ts.map +1 -1
  7. package/es/add-cell/libro-add-cell-view.js +4 -6
  8. package/es/cell/libro-cell-contribution.d.ts +1 -2
  9. package/es/cell/libro-cell-contribution.d.ts.map +1 -1
  10. package/es/cell/libro-cell-contribution.js +14 -8
  11. package/es/cell/libro-cell-model.d.ts +9 -0
  12. package/es/cell/libro-cell-model.d.ts.map +1 -1
  13. package/es/cell/libro-cell-model.js +53 -11
  14. package/es/cell/libro-cell-protocol.d.ts +2 -0
  15. package/es/cell/libro-cell-protocol.d.ts.map +1 -1
  16. package/es/cell/libro-cell-view.d.ts +39 -3
  17. package/es/cell/libro-cell-view.d.ts.map +1 -1
  18. package/es/cell/libro-cell-view.js +54 -24
  19. package/es/cell/libro-edit-cell-view.d.ts +6 -12
  20. package/es/cell/libro-edit-cell-view.d.ts.map +1 -1
  21. package/es/cell/libro-edit-cell-view.js +9 -4
  22. package/es/cell/libro-executable-cell-view.d.ts +2 -0
  23. package/es/cell/libro-executable-cell-view.d.ts.map +1 -1
  24. package/es/cell/libro-executable-cell-view.js +4 -1
  25. package/es/collapse-service.d.ts +1 -1
  26. package/es/collapse-service.d.ts.map +1 -1
  27. package/es/collapse-service.js +1 -1
  28. package/es/command/document-commands.d.ts +5 -0
  29. package/es/command/document-commands.d.ts.map +1 -0
  30. package/es/command/document-commands.js +3 -2
  31. package/es/command/kernel-command.d.ts +5 -0
  32. package/es/command/kernel-command.d.ts.map +1 -0
  33. package/es/command/kernel-command.js +3 -0
  34. package/es/command/libro-command-contribution.d.ts +0 -1
  35. package/es/command/libro-command-contribution.d.ts.map +1 -1
  36. package/es/command/libro-command-contribution.js +179 -129
  37. package/es/command/libro-command-register.d.ts +0 -1
  38. package/es/command/libro-command-register.d.ts.map +1 -1
  39. package/es/command/libro-command-register.js +13 -7
  40. package/es/command/notebook-commands.d.ts +6 -0
  41. package/es/command/notebook-commands.d.ts.map +1 -0
  42. package/es/command/notebook-commands.js +17 -4
  43. package/es/components/cell-protocol.d.ts +5 -5
  44. package/es/components/cell-protocol.d.ts.map +1 -1
  45. package/es/components/dnd-cell-item-render.d.ts +6 -2
  46. package/es/components/dnd-cell-item-render.d.ts.map +1 -1
  47. package/es/components/dnd-cell-item-render.js +194 -89
  48. package/es/components/dnd-component/custom-drag-layer.d.ts +1 -1
  49. package/es/components/dnd-component/custom-drag-layer.d.ts.map +1 -1
  50. package/es/components/dnd-component/custom-drag-layer.js +3 -4
  51. package/es/components/dnd-component/default-dnd-content.d.ts +2 -1
  52. package/es/components/dnd-component/default-dnd-content.d.ts.map +1 -1
  53. package/es/components/dnd-component/default-dnd-content.js +100 -44
  54. package/es/components/dnd-component/dnd-context.js +1 -1
  55. package/es/components/dnd-component/dnd-list.d.ts +9 -5
  56. package/es/components/dnd-component/dnd-list.d.ts.map +1 -1
  57. package/es/components/dnd-component/dnd-list.js +93 -26
  58. package/es/components/dnd-component/index.d.ts +1 -1
  59. package/es/components/dnd-component/index.d.ts.map +1 -1
  60. package/es/components/dnd-component/index.js +2 -2
  61. package/es/components/dnd-component/index.less +8 -0
  62. package/es/components/dnd-component/overscanIndices-getter.d.ts +22 -0
  63. package/es/components/dnd-component/overscanIndices-getter.d.ts.map +1 -0
  64. package/es/components/dnd-component/overscanIndices-getter.js +58 -0
  65. package/es/components/dnd-component/virtualized-manager.d.ts +19 -0
  66. package/es/components/dnd-component/virtualized-manager.d.ts.map +1 -0
  67. package/es/components/dnd-component/virtualized-manager.js +60 -0
  68. package/es/components/index.d.ts +2 -2
  69. package/es/components/index.d.ts.map +1 -1
  70. package/es/components/index.js +2 -2
  71. package/es/components/libro-virtualized-render.d.ts +15 -0
  72. package/es/components/libro-virtualized-render.d.ts.map +1 -0
  73. package/es/components/libro-virtualized-render.js +174 -0
  74. package/es/content/index.d.ts +1 -0
  75. package/es/content/index.d.ts.map +1 -1
  76. package/es/content/index.js +2 -1
  77. package/es/content/libro-content-contribution.d.ts +2 -2
  78. package/es/content/libro-content-contribution.d.ts.map +1 -1
  79. package/es/content/libro-content-contribution.js +2 -3
  80. package/es/content/libro-content-module.d.ts.map +1 -1
  81. package/es/content/libro-content-module.js +3 -2
  82. package/es/content/libro-content-protocol.d.ts +5 -0
  83. package/es/content/libro-content-protocol.d.ts.map +1 -1
  84. package/es/content/libro-content-protocol.js +2 -1
  85. package/es/content/libro-content-service.d.ts +6 -4
  86. package/es/content/libro-content-service.d.ts.map +1 -1
  87. package/es/content/libro-content-service.js +36 -8
  88. package/es/content/libro-save-content-contribution.d.ts +6 -0
  89. package/es/content/libro-save-content-contribution.d.ts.map +1 -0
  90. package/es/content/libro-save-content-contribution.js +27 -0
  91. package/es/formatter/index.d.ts +6 -0
  92. package/es/formatter/index.d.ts.map +1 -0
  93. package/es/formatter/index.js +5 -0
  94. package/es/formatter/libro-formatter-json-contribution.d.ts +18 -0
  95. package/es/formatter/libro-formatter-json-contribution.d.ts.map +1 -0
  96. package/es/formatter/libro-formatter-json-contribution.js +41 -0
  97. package/es/formatter/libro-formatter-manager.d.ts +16 -0
  98. package/es/formatter/libro-formatter-manager.d.ts.map +1 -0
  99. package/es/formatter/libro-formatter-manager.js +86 -0
  100. package/es/formatter/libro-formatter-module.d.ts +3 -0
  101. package/es/formatter/libro-formatter-module.d.ts.map +1 -0
  102. package/es/formatter/libro-formatter-module.js +7 -0
  103. package/es/formatter/libro-formatter-protocol.d.ts +37 -0
  104. package/es/formatter/libro-formatter-protocol.d.ts.map +1 -0
  105. package/es/formatter/libro-formatter-protocol.js +18 -0
  106. package/es/formatter/libro-formatter-string-contribution.d.ts +18 -0
  107. package/es/formatter/libro-formatter-string-contribution.d.ts.map +1 -0
  108. package/es/formatter/libro-formatter-string-contribution.js +41 -0
  109. package/es/formatter/libro-formatter-trans-default-contribution.d.ts +7 -0
  110. package/es/formatter/libro-formatter-trans-default-contribution.d.ts.map +1 -0
  111. package/es/formatter/libro-formatter-trans-default-contribution.js +19 -0
  112. package/es/index.d.ts +5 -1
  113. package/es/index.d.ts.map +1 -1
  114. package/es/index.js +6 -2
  115. package/es/index.less +135 -58
  116. package/es/libro-context-key.d.ts.map +1 -1
  117. package/es/libro-keybind-registry.d.ts +5 -0
  118. package/es/libro-keybind-registry.d.ts.map +1 -0
  119. package/es/libro-model.d.ts +13 -2
  120. package/es/libro-model.d.ts.map +1 -1
  121. package/es/libro-model.js +149 -70
  122. package/es/libro-protocol.d.ts +44 -2
  123. package/es/libro-protocol.d.ts.map +1 -1
  124. package/es/libro-protocol.js +16 -3
  125. package/es/libro-service.d.ts +1 -1
  126. package/es/libro-service.d.ts.map +1 -1
  127. package/es/libro-service.js +29 -20
  128. package/es/libro-setting-contribution.d.ts +5 -0
  129. package/es/libro-setting-contribution.d.ts.map +1 -0
  130. package/es/{configuration/libro-configuration-contribution.js → libro-setting-contribution.js} +8 -9
  131. package/es/libro-setting.d.ts +11 -0
  132. package/es/libro-setting.d.ts.map +1 -0
  133. package/es/{configuration/libro-configuration.js → libro-setting.js} +17 -7
  134. package/es/libro-view.d.ts +21 -8
  135. package/es/libro-view.d.ts.map +1 -1
  136. package/es/libro-view.js +477 -338
  137. package/es/material-from-designer.d.ts +30 -0
  138. package/es/material-from-designer.d.ts.map +1 -0
  139. package/es/material-from-designer.js +112 -1
  140. package/es/module.d.ts.map +1 -1
  141. package/es/module.js +20 -5
  142. package/es/output/output-area.d.ts +3 -4
  143. package/es/output/output-area.d.ts.map +1 -1
  144. package/es/output/output-area.js +23 -16
  145. package/es/output/output-contribution.d.ts +0 -1
  146. package/es/output/output-contribution.d.ts.map +1 -1
  147. package/es/output/output-contribution.js +14 -9
  148. package/es/output/output-model.d.ts +2 -2
  149. package/es/output/output-model.d.ts.map +1 -1
  150. package/es/output/output-model.js +2 -2
  151. package/es/output/output-protocol.d.ts.map +1 -1
  152. package/es/output/output-protocol.js +0 -2
  153. package/es/settings/index.d.ts +5 -0
  154. package/es/settings/index.d.ts.map +1 -0
  155. package/es/settings/index.js +4 -0
  156. package/es/settings/index.less +3 -0
  157. package/es/settings/module.d.ts +3 -0
  158. package/es/settings/module.d.ts.map +1 -0
  159. package/es/settings/module.js +4 -0
  160. package/es/settings/setting-editor/configuration-panel-view.d.ts +13 -0
  161. package/es/settings/setting-editor/configuration-panel-view.d.ts.map +1 -0
  162. package/es/settings/setting-editor/configuration-panel-view.js +115 -0
  163. package/es/settings/setting-editor/configuration-render-contribution.d.ts +6 -0
  164. package/es/settings/setting-editor/configuration-render-contribution.d.ts.map +1 -0
  165. package/es/settings/setting-editor/configuration-render-contribution.js +77 -0
  166. package/es/settings/setting-editor/default-node-render.d.ts +9 -0
  167. package/es/settings/setting-editor/default-node-render.d.ts.map +1 -0
  168. package/es/settings/setting-editor/default-node-render.js +79 -0
  169. package/es/settings/setting-editor/index.d.ts +7 -0
  170. package/es/settings/setting-editor/index.d.ts.map +1 -0
  171. package/es/settings/setting-editor/index.js +6 -0
  172. package/es/settings/setting-editor/index.less +12 -0
  173. package/es/settings/setting-editor/module.d.ts +3 -0
  174. package/es/settings/setting-editor/module.d.ts.map +1 -0
  175. package/es/settings/setting-editor/module.js +7 -0
  176. package/es/settings/setting-editor/setting-editor-view.d.ts +15 -0
  177. package/es/settings/setting-editor/setting-editor-view.d.ts.map +1 -0
  178. package/es/settings/setting-editor/setting-editor-view.js +169 -0
  179. package/es/settings/setting-editor/setting-tree-service.d.ts +9 -0
  180. package/es/settings/setting-editor/setting-tree-service.d.ts.map +1 -0
  181. package/es/settings/setting-editor/setting-tree-service.js +118 -0
  182. package/es/settings/setting-editor/setting-tree-view.d.ts +19 -0
  183. package/es/settings/setting-editor/setting-tree-view.d.ts.map +1 -0
  184. package/es/settings/setting-editor/setting-tree-view.js +88 -0
  185. package/es/settings/settings-contribution.d.ts +7 -0
  186. package/es/settings/settings-contribution.d.ts.map +1 -0
  187. package/es/settings/settings-contribution.js +36 -0
  188. package/es/settings/settings-modal.d.ts +5 -0
  189. package/es/settings/settings-modal.d.ts.map +1 -0
  190. package/es/settings/settings-modal.js +53 -0
  191. package/es/settings/settings-modal.less +3 -0
  192. package/es/settings/settings-protocol.d.ts +4 -0
  193. package/es/settings/settings-protocol.d.ts.map +1 -0
  194. package/es/settings/settings-protocol.js +5 -0
  195. package/es/slot/libro-slot-manager.d.ts +2 -2
  196. package/es/slot/libro-slot-manager.d.ts.map +1 -1
  197. package/es/slot/libro-slot-manager.js +14 -8
  198. package/es/slot/libro-slot-view.d.ts +3 -3
  199. package/es/slot/libro-slot-view.d.ts.map +1 -1
  200. package/es/slot/libro-slot-view.js +2 -2
  201. package/es/theme/libro-color-registry.d.ts +6 -0
  202. package/es/theme/libro-color-registry.d.ts.map +1 -0
  203. package/es/theme/libro-color-registry.js +7 -0
  204. package/es/toolbar/all-outputs-scroll-icon.d.ts +3 -0
  205. package/es/toolbar/all-outputs-scroll-icon.d.ts.map +1 -0
  206. package/es/toolbar/all-outputs-scroll-icon.js +10 -0
  207. package/es/toolbar/libro-toolbar.d.ts +2 -1
  208. package/es/toolbar/libro-toolbar.d.ts.map +1 -1
  209. package/es/toolbar/libro-toolbar.js +44 -8
  210. package/es/toolbar/restart-clear-outputs-modal.d.ts +1 -2
  211. package/es/toolbar/restart-clear-outputs-modal.d.ts.map +1 -1
  212. package/es/toolbar/restart-clear-outputs-modal.js +2 -2
  213. package/es/toolbar/shutdown-modal.d.ts +1 -2
  214. package/es/toolbar/shutdown-modal.d.ts.map +1 -1
  215. package/es/toolbar/shutdown-modal.js +2 -2
  216. package/es/toolbar/side-toolar-more-select.d.ts.map +1 -1
  217. package/es/toolbar/side-toolar-more-select.js +2 -2
  218. package/es/virtualized-manager-helper.d.ts +11 -0
  219. package/es/virtualized-manager-helper.d.ts.map +1 -0
  220. package/es/virtualized-manager-helper.js +51 -0
  221. package/es/virtualized-manager.d.ts +19 -0
  222. package/es/virtualized-manager.d.ts.map +1 -0
  223. package/es/virtualized-manager.js +61 -0
  224. package/package.json +9 -6
  225. package/src/add-cell/index.less +1 -1
  226. package/src/add-cell/libro-add-cell-slot-contribution.ts +1 -4
  227. package/src/add-cell/libro-add-cell-view.tsx +13 -6
  228. package/src/cell/libro-cell-contribution.ts +2 -6
  229. package/src/cell/libro-cell-model.ts +57 -4
  230. package/src/cell/libro-cell-protocol.ts +2 -0
  231. package/src/cell/libro-cell-view.tsx +21 -9
  232. package/src/cell/libro-edit-cell-view.tsx +10 -9
  233. package/src/cell/libro-executable-cell-view.ts +6 -1
  234. package/src/collapse-service.ts +1 -1
  235. package/src/command/document-commands.ts +3 -5
  236. package/src/command/kernel-command.ts +3 -0
  237. package/src/command/libro-command-contribution.ts +107 -91
  238. package/src/command/libro-command-register.ts +1 -4
  239. package/src/command/notebook-commands.ts +16 -3
  240. package/src/components/cell-protocol.ts +5 -5
  241. package/src/components/dnd-cell-item-render.tsx +239 -92
  242. package/src/components/dnd-component/custom-drag-layer.tsx +5 -6
  243. package/src/components/dnd-component/default-dnd-content.tsx +113 -42
  244. package/src/components/dnd-component/dnd-context.tsx +1 -1
  245. package/src/components/dnd-component/dnd-list.tsx +135 -43
  246. package/src/components/dnd-component/index.less +8 -0
  247. package/src/components/dnd-component/index.tsx +1 -1
  248. package/src/components/dnd-component/overscanIndices-getter.ts +92 -0
  249. package/src/components/dnd-component/virtualized-manager.ts +34 -0
  250. package/src/components/index.ts +2 -2
  251. package/src/components/libro-virtualized-render.tsx +178 -0
  252. package/src/content/index.ts +1 -0
  253. package/src/content/libro-content-contribution.ts +2 -3
  254. package/src/content/libro-content-module.ts +11 -3
  255. package/src/content/libro-content-protocol.ts +6 -0
  256. package/src/content/libro-content-service.ts +26 -8
  257. package/src/content/libro-save-content-contribution.ts +12 -0
  258. package/src/formatter/index.ts +5 -0
  259. package/src/formatter/libro-formatter-json-contribution.ts +42 -0
  260. package/src/formatter/libro-formatter-manager.ts +85 -0
  261. package/src/formatter/libro-formatter-module.ts +19 -0
  262. package/src/formatter/libro-formatter-protocol.ts +63 -0
  263. package/src/formatter/libro-formatter-string-contribution.ts +41 -0
  264. package/src/formatter/libro-formatter-trans-default-contribution.ts +15 -0
  265. package/src/index.less +135 -58
  266. package/src/index.tsx +6 -1
  267. package/src/libro-context-key.ts +3 -3
  268. package/src/libro-model.ts +87 -23
  269. package/src/libro-protocol.ts +81 -4
  270. package/src/libro-service.ts +4 -13
  271. package/src/{configuration/libro-configuration-contribution.ts → libro-setting-contribution.ts} +7 -8
  272. package/src/{configuration/libro-configuration.ts → libro-setting.ts} +18 -7
  273. package/src/libro-view.tsx +273 -141
  274. package/src/material-from-designer.tsx +93 -1
  275. package/src/module.ts +29 -7
  276. package/src/output/output-area.tsx +18 -12
  277. package/src/output/output-contribution.ts +2 -6
  278. package/src/output/output-model.tsx +3 -3
  279. package/src/output/output-protocol.ts +0 -1
  280. package/src/settings/index.less +3 -0
  281. package/src/settings/index.ts +4 -0
  282. package/src/settings/module.ts +8 -0
  283. package/src/settings/setting-editor/configuration-panel-view.tsx +89 -0
  284. package/src/settings/setting-editor/configuration-render-contribution.ts +81 -0
  285. package/src/settings/setting-editor/default-node-render.tsx +65 -0
  286. package/src/settings/setting-editor/index.less +12 -0
  287. package/src/settings/setting-editor/index.ts +6 -0
  288. package/src/settings/setting-editor/module.ts +17 -0
  289. package/src/settings/setting-editor/setting-editor-view.tsx +93 -0
  290. package/src/settings/setting-editor/setting-tree-service.ts +82 -0
  291. package/src/settings/setting-editor/setting-tree-view.tsx +95 -0
  292. package/src/settings/settings-contribution.tsx +24 -0
  293. package/src/settings/settings-modal.less +3 -0
  294. package/src/settings/settings-modal.tsx +50 -0
  295. package/src/settings/settings-protocol.ts +7 -0
  296. package/src/slot/libro-slot-manager.ts +1 -3
  297. package/src/slot/libro-slot-view.tsx +2 -5
  298. package/src/theme/libro-color-registry.ts +6 -0
  299. package/src/toolbar/all-outputs-scroll-icon.tsx +19 -0
  300. package/src/toolbar/libro-toolbar.tsx +30 -5
  301. package/src/toolbar/restart-clear-outputs-modal.tsx +3 -3
  302. package/src/toolbar/shutdown-modal.tsx +3 -3
  303. package/src/toolbar/side-toolar-more-select.tsx +2 -1
  304. package/src/virtualized-manager-helper.ts +29 -0
  305. package/src/virtualized-manager.ts +34 -0
@@ -1,13 +1,16 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _dec, _class;
2
+ var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
3
3
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
4
4
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
5
5
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
6
+ function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
6
7
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7
8
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
8
9
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
9
10
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
11
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
12
+ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
13
+ function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
11
14
  import { inject, ModalService, singleton, CommandContribution } from '@difizen/mana-app';
12
15
  import { equals } from '@difizen/mana-app';
13
16
  import { v4 } from 'uuid';
@@ -16,6 +19,7 @@ import { LirboContextKey } from "../libro-context-key.js";
16
19
  import { LibroToolbarArea } from "../libro-protocol.js";
17
20
  import { LibroService } from "../libro-service.js";
18
21
  import { LibroView } from "../libro-view.js";
22
+ import { SettingsModal } from "../settings/settings-modal.js";
19
23
  import { RestartClearOutputModal } from "../toolbar/restart-clear-outputs-modal.js";
20
24
  import { ShutdownModal } from "../toolbar/shutdown-modal.js";
21
25
  import { DocumentCommands } from "./document-commands.js";
@@ -23,22 +27,14 @@ import { LibroCommandRegister } from "./libro-command-register.js";
23
27
  import { NotebookCommands } from "./notebook-commands.js";
24
28
  export var LibroCommandContribution = (_dec = singleton({
25
29
  contrib: CommandContribution
26
- }), _dec(_class = /*#__PURE__*/function () {
27
- function LibroCommandContribution(modalService, libroCommand, libroService, lirboContextKey) {
30
+ }), _dec2 = inject(ModalService), _dec3 = inject(LibroCommandRegister), _dec4 = inject(LibroService), _dec5 = inject(LirboContextKey), _dec(_class = (_class2 = /*#__PURE__*/function () {
31
+ function LibroCommandContribution() {
28
32
  _classCallCheck(this, LibroCommandContribution);
29
- this.modalService = void 0;
30
- this.libroCommand = void 0;
31
- this.libroService = void 0;
32
- this.lirboContextKey = void 0;
33
- this.libroCommand = libroCommand;
34
- this.modalService = modalService;
35
- this.libroService = libroService;
36
- this.lirboContextKey = lirboContextKey;
33
+ _initializerDefineProperty(this, "modalService", _descriptor, this);
34
+ _initializerDefineProperty(this, "libroCommand", _descriptor2, this);
35
+ _initializerDefineProperty(this, "libroService", _descriptor3, this);
36
+ _initializerDefineProperty(this, "lirboContextKey", _descriptor4, this);
37
37
  }
38
- LibroCommandContribution = inject(LirboContextKey)(LibroCommandContribution, undefined, 3) || LibroCommandContribution;
39
- LibroCommandContribution = inject(LibroService)(LibroCommandContribution, undefined, 2) || LibroCommandContribution;
40
- LibroCommandContribution = inject(LibroCommandRegister)(LibroCommandContribution, undefined, 1) || LibroCommandContribution;
41
- LibroCommandContribution = inject(ModalService)(LibroCommandContribution, undefined, 0) || LibroCommandContribution;
42
38
  _createClass(LibroCommandContribution, [{
43
39
  key: "registerCommands",
44
40
  value: function registerCommands(command) {
@@ -62,7 +58,7 @@ export var LibroCommandContribution = (_dec = singleton({
62
58
  }
63
59
  return execute;
64
60
  }(),
65
- isEnabled: function isEnabled(_cell, libro) {
61
+ isEnabled: function isEnabled(cell, libro) {
66
62
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
67
63
  return false;
68
64
  }
@@ -72,7 +68,7 @@ export var LibroCommandContribution = (_dec = singleton({
72
68
  this.libroCommand.registerLibroCommand(command, NotebookCommands['EnterCommandMode'], {
73
69
  execute: function execute() {
74
70
  var _this$libroService$ac2;
75
- (_this$libroService$ac2 = _this.libroService.active) === null || _this$libroService$ac2 === void 0 || _this$libroService$ac2.enterCommandMode(true);
71
+ return (_this$libroService$ac2 = _this.libroService.active) === null || _this$libroService$ac2 === void 0 ? void 0 : _this$libroService$ac2.enterCommandMode(true);
76
72
  }
77
73
  });
78
74
  this.libroCommand.registerLibroCommand(command, NotebookCommands['SelectAll'], {
@@ -107,7 +103,7 @@ export var LibroCommandContribution = (_dec = singleton({
107
103
  }
108
104
  return execute;
109
105
  }(),
110
- isEnabled: function isEnabled(_cell, libro) {
106
+ isEnabled: function isEnabled(cell, libro) {
111
107
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
112
108
  return false;
113
109
  }
@@ -116,7 +112,7 @@ export var LibroCommandContribution = (_dec = singleton({
116
112
  });
117
113
  this.libroCommand.registerLibroCommand(command, NotebookCommands['RunAllCells'], {
118
114
  execute: function () {
119
- var _execute3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_cell, libro) {
115
+ var _execute3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(cell, libro) {
120
116
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
121
117
  while (1) switch (_context3.prev = _context3.next) {
122
118
  case 0:
@@ -213,7 +209,7 @@ export var LibroCommandContribution = (_dec = singleton({
213
209
  }
214
210
  return execute;
215
211
  }(),
216
- isEnabled: function isEnabled(_cell, libro) {
212
+ isEnabled: function isEnabled(cell, libro) {
217
213
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
218
214
  return false;
219
215
  }
@@ -244,7 +240,7 @@ export var LibroCommandContribution = (_dec = singleton({
244
240
  }
245
241
  return execute;
246
242
  }(),
247
- isEnabled: function isEnabled(_cell, libro) {
243
+ isEnabled: function isEnabled(cell, libro) {
248
244
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
249
245
  return false;
250
246
  }
@@ -253,7 +249,7 @@ export var LibroCommandContribution = (_dec = singleton({
253
249
  });
254
250
  this.libroCommand.registerLibroCommand(command, NotebookCommands['Interrupt'], {
255
251
  execute: function () {
256
- var _execute8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(_cell, libro) {
252
+ var _execute8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(cell, libro) {
257
253
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
258
254
  while (1) switch (_context8.prev = _context8.next) {
259
255
  case 0:
@@ -263,10 +259,11 @@ export var LibroCommandContribution = (_dec = singleton({
263
259
  }
264
260
  return _context8.abrupt("return", false);
265
261
  case 2:
266
- if (libro.model.interrupt) {
267
- libro.model.interrupt();
262
+ if (!libro.model.interrupt) {
263
+ _context8.next = 4;
264
+ break;
268
265
  }
269
- return _context8.abrupt("return");
266
+ return _context8.abrupt("return", libro.model.interrupt());
270
267
  case 4:
271
268
  case "end":
272
269
  return _context8.stop();
@@ -278,7 +275,7 @@ export var LibroCommandContribution = (_dec = singleton({
278
275
  }
279
276
  return execute;
280
277
  }(),
281
- isEnabled: function isEnabled(_cell, libro) {
278
+ isEnabled: function isEnabled(cell, libro) {
282
279
  if (!libro || !(libro instanceof LibroView)) {
283
280
  return false;
284
281
  }
@@ -286,7 +283,7 @@ export var LibroCommandContribution = (_dec = singleton({
286
283
  return ExecutableCellModel.is(item.model) && item.model.executing;
287
284
  }) >= 0;
288
285
  },
289
- isVisible: function isVisible(_cell, libro, path) {
286
+ isVisible: function isVisible(cell, libro, path) {
290
287
  if (!libro || !(libro instanceof LibroView)) {
291
288
  return false;
292
289
  }
@@ -295,7 +292,7 @@ export var LibroCommandContribution = (_dec = singleton({
295
292
  });
296
293
  this.libroCommand.registerLibroCommand(command, NotebookCommands['RestartClearOutput'], {
297
294
  execute: function () {
298
- var _execute9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(_cell, libro) {
295
+ var _execute9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(cell, libro) {
299
296
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
300
297
  while (1) switch (_context9.prev = _context9.next) {
301
298
  case 0:
@@ -305,9 +302,8 @@ export var LibroCommandContribution = (_dec = singleton({
305
302
  }
306
303
  return _context9.abrupt("return", false);
307
304
  case 2:
308
- _this.modalService.openModal(RestartClearOutputModal, libro);
309
- return _context9.abrupt("return");
310
- case 4:
305
+ return _context9.abrupt("return", _this.modalService.openModal(RestartClearOutputModal, libro));
306
+ case 3:
311
307
  case "end":
312
308
  return _context9.stop();
313
309
  }
@@ -318,7 +314,7 @@ export var LibroCommandContribution = (_dec = singleton({
318
314
  }
319
315
  return execute;
320
316
  }(),
321
- isVisible: function isVisible(_cell, libro, path) {
317
+ isVisible: function isVisible(cell, libro, path) {
322
318
  if (!libro || !(libro instanceof LibroView)) {
323
319
  return false;
324
320
  }
@@ -327,7 +323,7 @@ export var LibroCommandContribution = (_dec = singleton({
327
323
  });
328
324
  this.libroCommand.registerLibroCommand(command, NotebookCommands['CloseAndShutdown'], {
329
325
  execute: function () {
330
- var _execute10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(_cell, libro) {
326
+ var _execute10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(cell, libro) {
331
327
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
332
328
  while (1) switch (_context10.prev = _context10.next) {
333
329
  case 0:
@@ -337,9 +333,8 @@ export var LibroCommandContribution = (_dec = singleton({
337
333
  }
338
334
  return _context10.abrupt("return", false);
339
335
  case 2:
340
- _this.modalService.openModal(ShutdownModal, libro);
341
- return _context10.abrupt("return");
342
- case 4:
336
+ return _context10.abrupt("return", _this.modalService.openModal(ShutdownModal, libro));
337
+ case 3:
343
338
  case "end":
344
339
  return _context10.stop();
345
340
  }
@@ -407,13 +402,13 @@ export var LibroCommandContribution = (_dec = singleton({
407
402
  return execute;
408
403
  }(),
409
404
  // isVisible: () => false,
410
- isVisible: function isVisible(_cell, libro, path) {
405
+ isVisible: function isVisible(cell, libro, path) {
411
406
  if (!libro || !(libro instanceof LibroView)) {
412
407
  return false;
413
408
  }
414
409
  return !(libro !== null && libro !== void 0 && libro.model.readOnly) && path === LibroToolbarArea.CellRight;
415
410
  },
416
- isEnabled: function isEnabled(_cell, libro) {
411
+ isEnabled: function isEnabled(cell, libro) {
417
412
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
418
413
  return false;
419
414
  }
@@ -457,7 +452,7 @@ export var LibroCommandContribution = (_dec = singleton({
457
452
  }
458
453
  return execute;
459
454
  }(),
460
- isEnabled: function isEnabled(_cell, libro) {
455
+ isEnabled: function isEnabled(cell, libro) {
461
456
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
462
457
  return false;
463
458
  }
@@ -571,7 +566,7 @@ export var LibroCommandContribution = (_dec = singleton({
571
566
  }
572
567
  return execute;
573
568
  }(),
574
- isEnabled: function isEnabled(_cell, libro) {
569
+ isEnabled: function isEnabled(cell, libro) {
575
570
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
576
571
  return false;
577
572
  }
@@ -602,7 +597,7 @@ export var LibroCommandContribution = (_dec = singleton({
602
597
  }
603
598
  return execute;
604
599
  }(),
605
- isEnabled: function isEnabled(_cell, libro) {
600
+ isEnabled: function isEnabled(cell, libro) {
606
601
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
607
602
  return false;
608
603
  }
@@ -633,7 +628,7 @@ export var LibroCommandContribution = (_dec = singleton({
633
628
  }
634
629
  return execute;
635
630
  }(),
636
- isEnabled: function isEnabled(_cell, libro) {
631
+ isEnabled: function isEnabled(cell, libro) {
637
632
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
638
633
  return false;
639
634
  }
@@ -664,13 +659,13 @@ export var LibroCommandContribution = (_dec = singleton({
664
659
  }
665
660
  return execute;
666
661
  }(),
667
- isVisible: function isVisible(_cell, libro, path) {
662
+ isVisible: function isVisible(cell, libro, path) {
668
663
  if (!libro || !(libro instanceof LibroView)) {
669
664
  return false;
670
665
  }
671
666
  return !(libro !== null && libro !== void 0 && libro.model.readOnly) && path === LibroToolbarArea.CellRight;
672
667
  },
673
- isEnabled: function isEnabled(_cell, libro) {
668
+ isEnabled: function isEnabled(cell, libro) {
674
669
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
675
670
  return false;
676
671
  }
@@ -701,7 +696,7 @@ export var LibroCommandContribution = (_dec = singleton({
701
696
  }
702
697
  return execute;
703
698
  }(),
704
- isEnabled: function isEnabled(_cell, libro) {
699
+ isEnabled: function isEnabled(cell, libro) {
705
700
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
706
701
  return false;
707
702
  }
@@ -732,13 +727,13 @@ export var LibroCommandContribution = (_dec = singleton({
732
727
  }
733
728
  return execute;
734
729
  }(),
735
- isVisible: function isVisible(_cell, libro, path) {
730
+ isVisible: function isVisible(cell, libro, path) {
736
731
  if (!libro || !(libro instanceof LibroView)) {
737
732
  return false;
738
733
  }
739
734
  return !(libro !== null && libro !== void 0 && libro.model.readOnly) && path === LibroToolbarArea.HeaderCenter;
740
735
  },
741
- isEnabled: function isEnabled(_cell, libro) {
736
+ isEnabled: function isEnabled(cell, libro) {
742
737
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
743
738
  return false;
744
739
  }
@@ -769,7 +764,7 @@ export var LibroCommandContribution = (_dec = singleton({
769
764
  }
770
765
  return execute;
771
766
  }(),
772
- isVisible: function isVisible(_cell, _libro, path) {
767
+ isVisible: function isVisible(cell, libro, path) {
773
768
  return path === LibroToolbarArea.CellRight;
774
769
  },
775
770
  isEnabled: function isEnabled(cell, libro) {
@@ -815,7 +810,7 @@ export var LibroCommandContribution = (_dec = singleton({
815
810
  });
816
811
  return cellIndex !== libro.model.getCells().length - 1;
817
812
  },
818
- isVisible: function isVisible(_cell, _libro, path) {
813
+ isVisible: function isVisible(cell, libro, path) {
819
814
  return path === LibroToolbarArea.CellRight;
820
815
  }
821
816
  });
@@ -854,7 +849,7 @@ export var LibroCommandContribution = (_dec = singleton({
854
849
  // }
855
850
  // return true;
856
851
  // },
857
- isEnabled: function isEnabled(_cell, libro) {
852
+ isEnabled: function isEnabled(cell, libro) {
858
853
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
859
854
  return false;
860
855
  }
@@ -896,7 +891,7 @@ export var LibroCommandContribution = (_dec = singleton({
896
891
  // }
897
892
  // return true;
898
893
  // },
899
- isEnabled: function isEnabled(_cell, libro) {
894
+ isEnabled: function isEnabled(cell, libro) {
900
895
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
901
896
  return false;
902
897
  }
@@ -927,7 +922,7 @@ export var LibroCommandContribution = (_dec = singleton({
927
922
  }
928
923
  return execute;
929
924
  }(),
930
- isEnabled: function isEnabled(_cell, libro) {
925
+ isEnabled: function isEnabled(cell, libro) {
931
926
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
932
927
  return false;
933
928
  }
@@ -969,11 +964,11 @@ export var LibroCommandContribution = (_dec = singleton({
969
964
  // }
970
965
  // return true;
971
966
  // },
972
- isEnabled: function isEnabled(_cell, libro) {
967
+ isEnabled: function isEnabled(cell, libro) {
973
968
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
974
969
  return false;
975
970
  }
976
- return !!libro.model.lastClipboardInteraction;
971
+ return true;
977
972
  }
978
973
  });
979
974
  this.libroCommand.registerLibroCommand(command, NotebookCommands['HideCellCode'], {
@@ -1000,7 +995,7 @@ export var LibroCommandContribution = (_dec = singleton({
1000
995
  }
1001
996
  return execute;
1002
997
  }(),
1003
- isVisible: function isVisible(_cell, _libro, path) {
998
+ isVisible: function isVisible(cell, libro, path) {
1004
999
  if (path === LibroToolbarArea.HeaderCenter) {
1005
1000
  return true;
1006
1001
  }
@@ -1056,7 +1051,7 @@ export var LibroCommandContribution = (_dec = singleton({
1056
1051
  }
1057
1052
  return execute;
1058
1053
  }(),
1059
- isVisible: function isVisible(cell, _libro, path) {
1054
+ isVisible: function isVisible(cell, libro, path) {
1060
1055
  if (cell && cell instanceof LibroCellView && ExecutableCellModel.is(cell.model) && path === LibroToolbarArea.CellRight) {
1061
1056
  return true;
1062
1057
  }
@@ -1142,13 +1137,13 @@ export var LibroCommandContribution = (_dec = singleton({
1142
1137
  execute: function execute() {
1143
1138
  //
1144
1139
  },
1145
- isVisible: function isVisible(_cell, libro, path) {
1140
+ isVisible: function isVisible(cell, libro, path) {
1146
1141
  if (!libro || !(libro instanceof LibroView)) {
1147
1142
  return false;
1148
1143
  }
1149
1144
  return !(libro !== null && libro !== void 0 && libro.model.readOnly) && path === LibroToolbarArea.HeaderCenter;
1150
1145
  },
1151
- isEnabled: function isEnabled(_cell, libro) {
1146
+ isEnabled: function isEnabled(cell, libro) {
1152
1147
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1153
1148
  return false;
1154
1149
  }
@@ -1357,11 +1352,11 @@ export var LibroCommandContribution = (_dec = singleton({
1357
1352
  });
1358
1353
  command.registerCommand(NotebookCommands['ChangeCellTo'], {
1359
1354
  execute: function () {
1360
- var _execute42 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42(cell, libro, _path, targetType) {
1355
+ var _execute42 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42(cell, libro, path, targetType) {
1361
1356
  return _regeneratorRuntime().wrap(function _callee42$(_context42) {
1362
1357
  while (1) switch (_context42.prev = _context42.next) {
1363
1358
  case 0:
1364
- if (!(!cell || !libro || !(cell instanceof LibroCellView) || !(libro instanceof LibroView))) {
1359
+ if (!(!cell || !libro || !(libro instanceof LibroView) || !(cell instanceof LibroCellView))) {
1365
1360
  _context42.next = 2;
1366
1361
  break;
1367
1362
  }
@@ -1381,13 +1376,13 @@ export var LibroCommandContribution = (_dec = singleton({
1381
1376
  }
1382
1377
  return execute;
1383
1378
  }(),
1384
- isVisible: function isVisible(_cell, libro, path) {
1379
+ isVisible: function isVisible(cell, libro, path) {
1385
1380
  if (!libro || !(libro instanceof LibroView)) {
1386
1381
  return false;
1387
1382
  }
1388
1383
  return !(libro !== null && libro !== void 0 && libro.model.readOnly) && path === LibroToolbarArea.HeaderCenter;
1389
1384
  },
1390
- isEnabled: function isEnabled(_cell, libro) {
1385
+ isEnabled: function isEnabled(cell, libro) {
1391
1386
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1392
1387
  return false;
1393
1388
  }
@@ -1401,7 +1396,7 @@ export var LibroCommandContribution = (_dec = singleton({
1401
1396
  }
1402
1397
  libro.invertCell(cell, 'code');
1403
1398
  },
1404
- isEnabled: function isEnabled(_cell, libro) {
1399
+ isEnabled: function isEnabled(cell, libro) {
1405
1400
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1406
1401
  return false;
1407
1402
  }
@@ -1415,7 +1410,7 @@ export var LibroCommandContribution = (_dec = singleton({
1415
1410
  }
1416
1411
  libro.invertCell(cell, 'markdown');
1417
1412
  },
1418
- isEnabled: function isEnabled(_cell, libro) {
1413
+ isEnabled: function isEnabled(cell, libro) {
1419
1414
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1420
1415
  return false;
1421
1416
  }
@@ -1438,9 +1433,27 @@ export var LibroCommandContribution = (_dec = singleton({
1438
1433
  libro.disableOutputScrolling(cell);
1439
1434
  }
1440
1435
  });
1436
+ this.libroCommand.registerLibroCommand(command, NotebookCommands['EnableOrDisableAllOutputScrolling'], {
1437
+ execute: function execute(cell, libro) {
1438
+ if (!cell || !libro || !(cell instanceof LibroCellView) || !(libro instanceof LibroView)) {
1439
+ return;
1440
+ }
1441
+ if (libro.outputsScroll) {
1442
+ libro.disableAllOutputScrolling();
1443
+ } else {
1444
+ libro.enableAllOutputScrolling();
1445
+ }
1446
+ },
1447
+ isVisible: function isVisible(cell, libro, path) {
1448
+ if (!libro || !(libro instanceof LibroView)) {
1449
+ return false;
1450
+ }
1451
+ return !(libro !== null && libro !== void 0 && libro.model.readOnly) && path === LibroToolbarArea.HeaderCenter;
1452
+ }
1453
+ });
1441
1454
  this.libroCommand.registerLibroCommand(command, DocumentCommands['Save'], {
1442
1455
  execute: function () {
1443
- var _execute43 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(_cell, libro) {
1456
+ var _execute43 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(cell, libro) {
1444
1457
  return _regeneratorRuntime().wrap(function _callee43$(_context43) {
1445
1458
  while (1) switch (_context43.prev = _context43.next) {
1446
1459
  case 0:
@@ -1462,58 +1475,75 @@ export var LibroCommandContribution = (_dec = singleton({
1462
1475
  }
1463
1476
  return execute;
1464
1477
  }(),
1465
- isVisible: function isVisible(_cell, libro, path) {
1478
+ isVisible: function isVisible(cell, libro, path) {
1466
1479
  if (!libro || !(libro instanceof LibroView)) {
1467
1480
  return false;
1468
1481
  }
1469
1482
  return !(libro !== null && libro !== void 0 && libro.model.readOnly) && path === LibroToolbarArea.HeaderCenter;
1470
1483
  },
1471
- isEnabled: function isEnabled(_cell, libro) {
1484
+ isEnabled: function isEnabled(cell, libro) {
1472
1485
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1473
1486
  return false;
1474
1487
  }
1475
1488
  return true;
1476
1489
  }
1477
1490
  });
1478
- // this.libroCommand.registerLibroCommand(command, DocumentCommands['OpenSettings'], {
1479
- // execute: async () => {
1480
- // this.modalService.openModal(SettingsModal);
1481
- // },
1482
- // isVisible: (cell, libro, path) => {
1483
- // return path === LibroToolbarArea.HeaderCenter;
1484
- // },
1485
- // });
1486
- this.libroCommand.registerLibroCommand(command, NotebookCommands['UndoCellAction'], {
1491
+ this.libroCommand.registerLibroCommand(command, DocumentCommands['OpenSettings'], {
1487
1492
  execute: function () {
1488
- var _execute44 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee44(_cell, libro) {
1493
+ var _execute44 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee44() {
1489
1494
  return _regeneratorRuntime().wrap(function _callee44$(_context44) {
1490
1495
  while (1) switch (_context44.prev = _context44.next) {
1496
+ case 0:
1497
+ _this.modalService.openModal(SettingsModal);
1498
+ case 1:
1499
+ case "end":
1500
+ return _context44.stop();
1501
+ }
1502
+ }, _callee44);
1503
+ }));
1504
+ function execute() {
1505
+ return _execute44.apply(this, arguments);
1506
+ }
1507
+ return execute;
1508
+ }(),
1509
+ isVisible: function isVisible(cell, libro, path) {
1510
+ if (!libro || !(libro instanceof LibroView)) {
1511
+ return false;
1512
+ }
1513
+ return !(libro !== null && libro !== void 0 && libro.model.readOnly) && path === LibroToolbarArea.HeaderRight;
1514
+ }
1515
+ });
1516
+ this.libroCommand.registerLibroCommand(command, NotebookCommands['UndoCellAction'], {
1517
+ execute: function () {
1518
+ var _execute45 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(cell, libro) {
1519
+ return _regeneratorRuntime().wrap(function _callee45$(_context45) {
1520
+ while (1) switch (_context45.prev = _context45.next) {
1491
1521
  case 0:
1492
1522
  if (!(!libro || !(libro instanceof LibroView))) {
1493
- _context44.next = 2;
1523
+ _context45.next = 2;
1494
1524
  break;
1495
1525
  }
1496
- return _context44.abrupt("return");
1526
+ return _context45.abrupt("return");
1497
1527
  case 2:
1498
1528
  libro.model.undo();
1499
1529
  case 3:
1500
1530
  case "end":
1501
- return _context44.stop();
1531
+ return _context45.stop();
1502
1532
  }
1503
- }, _callee44);
1533
+ }, _callee45);
1504
1534
  }));
1505
1535
  function execute(_x87, _x88) {
1506
- return _execute44.apply(this, arguments);
1536
+ return _execute45.apply(this, arguments);
1507
1537
  }
1508
1538
  return execute;
1509
1539
  }(),
1510
- isVisible: function isVisible(_cell, libro, path) {
1540
+ isVisible: function isVisible(cell, libro, path) {
1511
1541
  if (!libro || !(libro instanceof LibroView)) {
1512
1542
  return false;
1513
1543
  }
1514
1544
  return !(libro !== null && libro !== void 0 && libro.model.readOnly) && path === LibroToolbarArea.HeaderCenter;
1515
1545
  },
1516
- isEnabled: function isEnabled(_cell, libro) {
1546
+ isEnabled: function isEnabled(cell, libro) {
1517
1547
  var _libro$model$canUndo;
1518
1548
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1519
1549
  return false;
@@ -1523,35 +1553,35 @@ export var LibroCommandContribution = (_dec = singleton({
1523
1553
  });
1524
1554
  this.libroCommand.registerLibroCommand(command, NotebookCommands['RedoCellAction'], {
1525
1555
  execute: function () {
1526
- var _execute45 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(_cell, libro) {
1527
- return _regeneratorRuntime().wrap(function _callee45$(_context45) {
1528
- while (1) switch (_context45.prev = _context45.next) {
1556
+ var _execute46 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46(cell, libro) {
1557
+ return _regeneratorRuntime().wrap(function _callee46$(_context46) {
1558
+ while (1) switch (_context46.prev = _context46.next) {
1529
1559
  case 0:
1530
1560
  if (!(!libro || !(libro instanceof LibroView))) {
1531
- _context45.next = 2;
1561
+ _context46.next = 2;
1532
1562
  break;
1533
1563
  }
1534
- return _context45.abrupt("return");
1564
+ return _context46.abrupt("return");
1535
1565
  case 2:
1536
1566
  libro.model.redo();
1537
1567
  case 3:
1538
1568
  case "end":
1539
- return _context45.stop();
1569
+ return _context46.stop();
1540
1570
  }
1541
- }, _callee45);
1571
+ }, _callee46);
1542
1572
  }));
1543
1573
  function execute(_x89, _x90) {
1544
- return _execute45.apply(this, arguments);
1574
+ return _execute46.apply(this, arguments);
1545
1575
  }
1546
1576
  return execute;
1547
1577
  }(),
1548
- isVisible: function isVisible(_cell, libro, path) {
1578
+ isVisible: function isVisible(cell, libro, path) {
1549
1579
  if (!libro || !(libro instanceof LibroView)) {
1550
1580
  return false;
1551
1581
  }
1552
1582
  return !(libro !== null && libro !== void 0 && libro.model.readOnly) && path === LibroToolbarArea.HeaderCenter;
1553
1583
  },
1554
- isEnabled: function isEnabled(_cell, libro) {
1584
+ isEnabled: function isEnabled(cell, libro) {
1555
1585
  var _libro$model$canRedo;
1556
1586
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1557
1587
  return false;
@@ -1566,7 +1596,7 @@ export var LibroCommandContribution = (_dec = singleton({
1566
1596
  }
1567
1597
  libro.splitCell(cell);
1568
1598
  },
1569
- isEnabled: function isEnabled(_cell, libro) {
1599
+ isEnabled: function isEnabled(cell, libro) {
1570
1600
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1571
1601
  return false;
1572
1602
  }
@@ -1575,29 +1605,29 @@ export var LibroCommandContribution = (_dec = singleton({
1575
1605
  });
1576
1606
  this.libroCommand.registerLibroCommand(command, NotebookCommands['Redo'], {
1577
1607
  execute: function () {
1578
- var _execute46 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46(cell) {
1579
- return _regeneratorRuntime().wrap(function _callee46$(_context46) {
1580
- while (1) switch (_context46.prev = _context46.next) {
1608
+ var _execute47 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(cell) {
1609
+ return _regeneratorRuntime().wrap(function _callee47$(_context47) {
1610
+ while (1) switch (_context47.prev = _context47.next) {
1581
1611
  case 0:
1582
1612
  if (!(!cell || !(cell instanceof LibroCellView))) {
1583
- _context46.next = 2;
1613
+ _context47.next = 2;
1584
1614
  break;
1585
1615
  }
1586
- return _context46.abrupt("return");
1616
+ return _context47.abrupt("return");
1587
1617
  case 2:
1588
1618
  cell.redo();
1589
1619
  case 3:
1590
1620
  case "end":
1591
- return _context46.stop();
1621
+ return _context47.stop();
1592
1622
  }
1593
- }, _callee46);
1623
+ }, _callee47);
1594
1624
  }));
1595
1625
  function execute(_x91) {
1596
- return _execute46.apply(this, arguments);
1626
+ return _execute47.apply(this, arguments);
1597
1627
  }
1598
1628
  return execute;
1599
1629
  }(),
1600
- isEnabled: function isEnabled(_cell, libro) {
1630
+ isEnabled: function isEnabled(cell, libro) {
1601
1631
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1602
1632
  return false;
1603
1633
  }
@@ -1606,29 +1636,29 @@ export var LibroCommandContribution = (_dec = singleton({
1606
1636
  });
1607
1637
  this.libroCommand.registerLibroCommand(command, NotebookCommands['Undo'], {
1608
1638
  execute: function () {
1609
- var _execute47 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(cell) {
1610
- return _regeneratorRuntime().wrap(function _callee47$(_context47) {
1611
- while (1) switch (_context47.prev = _context47.next) {
1639
+ var _execute48 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee48(cell) {
1640
+ return _regeneratorRuntime().wrap(function _callee48$(_context48) {
1641
+ while (1) switch (_context48.prev = _context48.next) {
1612
1642
  case 0:
1613
1643
  if (!(!cell || !(cell instanceof LibroCellView))) {
1614
- _context47.next = 2;
1644
+ _context48.next = 2;
1615
1645
  break;
1616
1646
  }
1617
- return _context47.abrupt("return");
1647
+ return _context48.abrupt("return");
1618
1648
  case 2:
1619
1649
  cell.undo();
1620
1650
  case 3:
1621
1651
  case "end":
1622
- return _context47.stop();
1652
+ return _context48.stop();
1623
1653
  }
1624
- }, _callee47);
1654
+ }, _callee48);
1625
1655
  }));
1626
1656
  function execute(_x92) {
1627
- return _execute47.apply(this, arguments);
1657
+ return _execute48.apply(this, arguments);
1628
1658
  }
1629
1659
  return execute;
1630
1660
  }(),
1631
- isEnabled: function isEnabled(_cell, libro) {
1661
+ isEnabled: function isEnabled(cell, libro) {
1632
1662
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1633
1663
  return false;
1634
1664
  }
@@ -1642,7 +1672,7 @@ export var LibroCommandContribution = (_dec = singleton({
1642
1672
  }
1643
1673
  libro.setMarkdownHeader(cell, 1);
1644
1674
  },
1645
- isEnabled: function isEnabled(_cell, libro) {
1675
+ isEnabled: function isEnabled(cell, libro) {
1646
1676
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1647
1677
  return false;
1648
1678
  }
@@ -1656,7 +1686,7 @@ export var LibroCommandContribution = (_dec = singleton({
1656
1686
  }
1657
1687
  libro.setMarkdownHeader(cell, 2);
1658
1688
  },
1659
- isEnabled: function isEnabled(_cell, libro) {
1689
+ isEnabled: function isEnabled(cell, libro) {
1660
1690
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1661
1691
  return false;
1662
1692
  }
@@ -1670,7 +1700,7 @@ export var LibroCommandContribution = (_dec = singleton({
1670
1700
  }
1671
1701
  libro.setMarkdownHeader(cell, 3);
1672
1702
  },
1673
- isEnabled: function isEnabled(_cell, libro) {
1703
+ isEnabled: function isEnabled(cell, libro) {
1674
1704
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1675
1705
  return false;
1676
1706
  }
@@ -1684,7 +1714,7 @@ export var LibroCommandContribution = (_dec = singleton({
1684
1714
  }
1685
1715
  libro.setMarkdownHeader(cell, 4);
1686
1716
  },
1687
- isEnabled: function isEnabled(_cell, libro) {
1717
+ isEnabled: function isEnabled(cell, libro) {
1688
1718
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1689
1719
  return false;
1690
1720
  }
@@ -1698,7 +1728,7 @@ export var LibroCommandContribution = (_dec = singleton({
1698
1728
  }
1699
1729
  libro.setMarkdownHeader(cell, 5);
1700
1730
  },
1701
- isEnabled: function isEnabled(_cell, libro) {
1731
+ isEnabled: function isEnabled(cell, libro) {
1702
1732
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1703
1733
  return false;
1704
1734
  }
@@ -1712,7 +1742,7 @@ export var LibroCommandContribution = (_dec = singleton({
1712
1742
  }
1713
1743
  libro.setMarkdownHeader(cell, 6);
1714
1744
  },
1715
- isEnabled: function isEnabled(_cell, libro) {
1745
+ isEnabled: function isEnabled(cell, libro) {
1716
1746
  if (!libro || !(libro instanceof LibroView) || libro.model.readOnly) {
1717
1747
  return false;
1718
1748
  }
@@ -1721,31 +1751,51 @@ export var LibroCommandContribution = (_dec = singleton({
1721
1751
  });
1722
1752
  this.libroCommand.registerLibroCommand(command, NotebookCommands['More'], {
1723
1753
  execute: function () {
1724
- var _execute48 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee48(_cell, libro) {
1725
- return _regeneratorRuntime().wrap(function _callee48$(_context48) {
1726
- while (1) switch (_context48.prev = _context48.next) {
1754
+ var _execute49 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee49(cell, libro) {
1755
+ return _regeneratorRuntime().wrap(function _callee49$(_context49) {
1756
+ while (1) switch (_context49.prev = _context49.next) {
1727
1757
  case 0:
1728
1758
  if (!(!libro || !(libro instanceof LibroView))) {
1729
- _context48.next = 2;
1759
+ _context49.next = 2;
1730
1760
  break;
1731
1761
  }
1732
- return _context48.abrupt("return");
1762
+ return _context49.abrupt("return");
1733
1763
  case 2:
1734
1764
  case "end":
1735
- return _context48.stop();
1765
+ return _context49.stop();
1736
1766
  }
1737
- }, _callee48);
1767
+ }, _callee49);
1738
1768
  }));
1739
1769
  function execute(_x93, _x94) {
1740
- return _execute48.apply(this, arguments);
1770
+ return _execute49.apply(this, arguments);
1741
1771
  }
1742
1772
  return execute;
1743
1773
  }(),
1744
- isVisible: function isVisible(_cell, _libro, path) {
1774
+ isVisible: function isVisible(cell, libro, path) {
1745
1775
  return path === LibroToolbarArea.CellRight;
1746
1776
  }
1747
1777
  });
1748
1778
  }
1749
1779
  }]);
1750
1780
  return LibroCommandContribution;
1751
- }()) || _class);
1781
+ }(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "modalService", [_dec2], {
1782
+ configurable: true,
1783
+ enumerable: true,
1784
+ writable: true,
1785
+ initializer: null
1786
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "libroCommand", [_dec3], {
1787
+ configurable: true,
1788
+ enumerable: true,
1789
+ writable: true,
1790
+ initializer: null
1791
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "libroService", [_dec4], {
1792
+ configurable: true,
1793
+ enumerable: true,
1794
+ writable: true,
1795
+ initializer: null
1796
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "lirboContextKey", [_dec5], {
1797
+ configurable: true,
1798
+ enumerable: true,
1799
+ writable: true,
1800
+ initializer: null
1801
+ })), _class2)) || _class);