@knime/scripting-editor 0.0.129 → 0.0.131

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 (106) hide show
  1. package/dist/{AnyOfTwinlist-Chx0nmt3-DPMbiVZd.js → AnyOfTwinlist-DEv6xgTn-BV0O3had.js} +1 -1
  2. package/dist/{ArrayLayout-C2-4wxkT.js → ArrayLayout-xpUEX4UY.js} +54 -54
  3. package/dist/{ButtonControl-Dga3IomB.js → ButtonControl-BFG84O1r.js} +11 -11
  4. package/dist/{CheckboxControl-B8b1Di4k-CEkOsWEu.js → CheckboxControl-Yqf7_a5P--lSSti7m.js} +5 -5
  5. package/dist/{CheckboxesControl-DWUnPGdN-BOSX_stf.js → CheckboxesControl-Cx7qUDbd-ByGOCDtp.js} +2 -2
  6. package/dist/{CodeEditorControl-CN4ltMvy.js → CodeEditorControl-DAfgzg-h.js} +3 -3
  7. package/dist/{ColorControl-ByE5ku7u-C12pZ0rg.js → ColorControl-BjIoBGby-B54hb0gK.js} +1 -1
  8. package/dist/{ColorPreviewControl-XiKZ4jfn-CLIjX6M_.js → ColorPreviewControl-Cmpb3_o4--muSe_be.js} +9 -9
  9. package/dist/{ComboBoxControl-zSceYlyZ-BgpAi7q9.js → ComboBoxControl-DJsbSwD6-xuE8rZyf.js} +7 -7
  10. package/dist/{ConfigurationNodeNotSupported-B27grebd.js → ConfigurationNodeNotSupported-Bkfoi87W.js} +3 -3
  11. package/dist/{ControlWithSubParameters-ROJGaqDF.js → ControlWithSubParameters-B9TiQfTU.js} +12 -12
  12. package/dist/{CredentialsControl-B6jczlBv.js → CredentialsControl-CqulYPUL.js} +4 -4
  13. package/dist/{CredentialsControlBase-CdNdAngd.js → CredentialsControlBase-x4zTZK8u.js} +19 -19
  14. package/dist/{DateControl-BBGpEVpr-yZP_TZnE.js → DateControl-CcuCk97j-CdiO3xtM.js} +1 -1
  15. package/dist/{DateTimeControl-CymOURq5-Ca0mT1HW.js → DateTimeControl-CuB6aWlL-CgLiloF4.js} +3 -3
  16. package/dist/{DateTimeFormatPickerControl-Bx19jwpr-Bd0xBs4D.js → DateTimeFormatPickerControl-CpaOPUR6-J_PpzzAB.js} +1 -1
  17. package/dist/{DateTimeFormatPickerWithTypeControl-Byo_0cTq-C0ZfMqtp.js → DateTimeFormatPickerWithTypeControl-BQKDIoYn-Vw11sEhI.js} +65 -65
  18. package/dist/{DialogFileExplorer-BmT2YlVn.js → DialogFileExplorer-CiOfUL_M.js} +33 -33
  19. package/dist/{DirtyTrackerRenderer-BG451zZD.js → DirtyTrackerRenderer-6k1ego1B.js} +1 -1
  20. package/dist/{DropdownControl-C6ffVYyf-hy0i8nDV.js → DropdownControl-CpSZxjr1-C804I9fG.js} +2 -2
  21. package/dist/DynamicInputControl-Bc99HU8j.js +6 -0
  22. package/dist/{ExecutorCoresControl-D9FZ-g9O-Dws9IhAs.js → ExecutorCoresControl-DoG2-XCx-BC0pTSv1.js} +8 -8
  23. package/dist/{ExecutorMemoryControl-__P80Lkb-DxQZ2IuA.js → ExecutorMemoryControl-DqYRmLt2-DgmK5cxY.js} +7 -7
  24. package/dist/{FileChooserControl-BBbay7zU.js → FileChooserControl-Cv9Nvwrw.js} +2 -2
  25. package/dist/{FileChooserControlBase-DpYYK3eE.js → FileChooserControlBase-C4WoqeuQ.js} +50 -50
  26. package/dist/{FileChooserControlForMultiFile-6NLYZKbt.js → FileChooserControlForMultiFile-DJydfSjI.js} +1 -1
  27. package/dist/{FileUploadControl-DWs4PhOj-BvByW-Tq.js → FileUploadControl-IAwE26IH-LLTdmWyW.js} +52 -52
  28. package/dist/{GridSelectionControl-WcJ4y6Fs-BoxSk0VG.js → GridSelectionControl-DUVIpMsY-CuyLvikR.js} +27 -27
  29. package/dist/{HorizontalLayout-ByB5A7X3-BURAMMFG.js → HorizontalLayout-92oHZT6R--JjwD9hI.js} +2 -2
  30. package/dist/{IntegerControl-aveswmbr-50_b6vGY.js → IntegerControl-B2TyUPGu-BLpffmEs.js} +1 -1
  31. package/dist/{IntervalControl-B4Eqs1Jf-CiB2D52B.js → IntervalControl-BbIwNXK3-DcVnnDMh.js} +13 -13
  32. package/dist/{LabeledGroup-BONZ_GLo.js → LabeledGroup-oOuEM_pN.js} +2 -2
  33. package/dist/{LegacyCredentialsControl-DaIrvNBd.js → LegacyCredentialsControl-DAZOUpou.js} +8 -8
  34. package/dist/{LinkControl-DD56lOiw-CDy6OBu8.js → LinkControl-Cmk_qiO_-CF2rBAA7.js} +8 -8
  35. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-CscatDmg-BaroyBA0.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-C0YzJo8M-DJVLdb5q.js} +1 -1
  36. package/dist/{ManualTwinlistControl-DBZ5RZgW-BV5qOGau.js → ManualTwinlistControl-DTl3XPje-CnoltRZh.js} +3 -3
  37. package/dist/{MultiFileChooserControl-cyndOpF7.js → MultiFileChooserControl-1YghP5YI.js} +21 -21
  38. package/dist/{MultiRuleWrapper-Db-W_o1f.js → MultiRuleWrapper-BnwWI1WL.js} +1 -1
  39. package/dist/{MultiSelectListBoxControl-BMsPvxGQ-5ua-fVR8.js → MultiSelectListBoxControl-DIV0UiGV-CN3b9J9V.js} +31 -31
  40. package/dist/{MultimodeTwinlistControl-thO1be1r-8kc-JSH1.js → MultimodeTwinlistControl-F1L7mwSB-GnzFL4Xl.js} +3 -3
  41. package/dist/{NameFilter-DBMVmZmk-DnB-5f39.js → NameFilter-Crwz1wiJ-CU1s2b7c.js} +1 -1
  42. package/dist/{NumberControl-BPVO5l6t--nrQcx4m.js → NumberControl-CTycpm1q-SsW1E9e6.js} +1 -1
  43. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-CR61f6d6-Df5EPyns.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CRNO3Yp4-DIZHQaJH.js} +4 -4
  44. package/dist/{OneOfDropdown-DBG8ZcpV-cZs_ptrT.js → OneOfDropdown-B7KrUOWD-DAFKZmqZ.js} +1 -1
  45. package/dist/{RadioButtonsWithDescriptionControl-BsqMTEB5-COGPhNPs.js → RadioButtonsWithDescriptionControl-UmWLsOmL-BjelKrcC.js} +18 -18
  46. package/dist/{RadioControl-ClJmr0EQ-BzjoXaZ3.js → RadioControl-BAoCJNMH-VuiN6M_V.js} +1 -1
  47. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-Bm4EUEvw-Cabfycg_.js → RadioControlBase.vue_vue_type_script_setup_true_lang-DKx6ts7n-BNr3sbHh.js} +2 -2
  48. package/dist/{ResourceControlBase-CeXYJeR1-DSmxhV0s.js → ResourceControlBase-97R2-qQ7-BBi11JJj.js} +32 -32
  49. package/dist/{RichTextControl-DvYkBpzH-CtMZq2re.js → RichTextControl-D4ItwmZa-CV9QLVR2.js} +2 -2
  50. package/dist/{SectionLayout-CwRO3UXc-d5rFpCRN.js → SectionLayout-DS6gpiV1-BN6brreP.js} +9 -9
  51. package/dist/{SettingsSubPanelLayout-CV6y2bcX-OzpF07vB.js → SettingsSubPanelLayout-CJeD408x-yH9r1jii.js} +1 -1
  52. package/dist/{SimpleTwinlistControl-BSON5VYy-BaAaU86G.js → SimpleTwinlistControl-L1tY6QlY-Dvmt0hp3.js} +2 -2
  53. package/dist/{SingleSelectControl-BSqORMYm-CBP_mVGB.js → SingleSelectControl-Ce9RLMjD-CTQ6TVF0.js} +2 -2
  54. package/dist/{SingleSelectListBoxControl-CFdKzbOK-CruT9yt-.js → SingleSelectListBoxControl-Dv-XXwO4-BrMTb8AD.js} +3 -3
  55. package/dist/{SortListControl-DZIHeQmn-CKRyT1hN.js → SortListControl-BlsAnJjH-tbIOGxZ_.js} +10 -10
  56. package/dist/{StringFileChooserControl-Br8gZTku.js → StringFileChooserControl-BUYM9fmT.js} +3 -3
  57. package/dist/{StyledListItem--sgmJ3W_-Bo6f-_9B.js → StyledListItem-DjdZOUWD-BMILJImI.js} +1 -1
  58. package/dist/{TeamAndSpacesControl-DiMyDT-5-Br-Lq0ki.js → TeamAndSpacesControl-CEdzSJPJ-45d6LeCk.js} +13 -13
  59. package/dist/{TeamResourceControl-Bag_dwA1-PdtnhxEi.js → TeamResourceControl-Cd0UTItF-Coo1MGve.js} +1 -1
  60. package/dist/{TextAreaControl-B52P0DAa-McfOgZWn.js → TextAreaControl-B-AfgqCE-BxgZnZ7G.js} +1 -1
  61. package/dist/TextControl-DfrjuKwf-2f9eJp4g.js +54247 -0
  62. package/dist/{TimeControl-Cu12_qpz-CK1bxhya.js → TimeControl-DOs9b4bm-B7dozTCB.js} +1 -1
  63. package/dist/{TimeframesControl-DhdC8OS1-DYseJbBV.js → TimeframesControl-4JGOYGkE-DfsHVFg9.js} +8 -8
  64. package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz-DU6yd1RM.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-C_u035me-DAGCRygG.js} +2 -2
  65. package/dist/{TypedStringFilter-zJOICQei-B-5z8atp.js → TypedStringFilter-C6N8H2Xj-CI1wXgVk.js} +1 -1
  66. package/dist/{ValueSwitchControl-CEVWJH7z-DzuxqLvy.js → ValueSwitchControl-BO6x8fsi-B4Fuvawe.js} +1 -1
  67. package/dist/{VennDiagramLayout-DyTZ5EJ9.js → VennDiagramLayout-HkmFaxWm.js} +42 -42
  68. package/dist/{VerticalLayout-D_13xb_m-BfU1M3IE.js → VerticalLayout-AMSQYCUV-HYDBzl_2.js} +5 -5
  69. package/dist/{ZonedDateTimeControl-C-vO6fC1-XngmuFqW.js → ZonedDateTimeControl-1lHvcaQc-X46S4Ze5.js} +14 -14
  70. package/dist/{ai-bar-DDtzX23v.js → ai-bar-CsJhfKpB.js} +132 -111
  71. package/dist/auto-configure-BU7AIhL7-DE_6PIkb.js +22 -0
  72. package/dist/auto-configure-BU7AIhL7-DLFpEOFL.js +22 -0
  73. package/dist/cell-renderer-DGnkQWTq-DNy5Gelw.js +22 -0
  74. package/dist/cell-renderer-DGnkQWTq-KxiKOXy8.js +22 -0
  75. package/dist/cell-renderer-DGnkQWTq-S8TXb3dZ-DdvVP9ON.js +22 -0
  76. package/dist/column-width-Cjb-6nqI-BiwF2Fo6.js +22 -0
  77. package/dist/column-width-Cjb-6nqI-CjSkGKDp.js +22 -0
  78. package/dist/column-width-Cjb-6nqI-DQNnYUv--CdTB6acc.js +22 -0
  79. package/dist/{copy-DAYm6-mo-BpCGSMKR.js → copy-D43FaHi--BZ5AZnoF.js} +2 -2
  80. package/dist/{copy-DAYm6-mo-Dl2ExZqW.js → copy-D43FaHi--_rKoTTiD.js} +2 -2
  81. package/dist/duplicate-Mtq886XD-B74_P6q_.js +22 -0
  82. package/dist/duplicate-Mtq886XD-D99AWOtC.js +22 -0
  83. package/dist/folder-move-6L5NfoIs-0YMKVtTx.js +22 -0
  84. package/dist/folder-move-6L5NfoIs-0hcyIJwE.js +22 -0
  85. package/dist/initial-data-service-browser-mock.js +47 -18
  86. package/dist/linked-component-BOb5aj87-Ca_6IaxH.js +22 -0
  87. package/dist/linked-component-BOb5aj87-CwLntkxi.js +22 -0
  88. package/dist/main.js +12500 -9495
  89. package/dist/parameters.js +1 -1
  90. package/dist/path-separator-DRnUilGA-CKpP4SMF.js +22 -0
  91. package/dist/path-separator-DRnUilGA-CyCV3Plv-CL0w7lk2.js +22 -0
  92. package/dist/path-separator-DRnUilGA-DOTNAKkO.js +22 -0
  93. package/dist/src/components/InputOutputItem.vue.d.ts +21 -0
  94. package/dist/src/components/TemporaryValuePanel.vue.d.ts +7 -26
  95. package/dist/src/components/TemporaryValuePanelHeader.vue.d.ts +1 -0
  96. package/dist/src/components/ai-assistant/AiButton.vue.d.ts +24 -4
  97. package/dist/src/scripting-service.d.ts +16 -1
  98. package/dist/table-statistics-y-P6EXGX-BWJsLgcD.js +22 -0
  99. package/dist/table-statistics-y-P6EXGX-DppblZjy.js +22 -0
  100. package/dist/table-statistics-y-P6EXGX-Dr_wYI1l-BswNMs4S.js +22 -0
  101. package/dist/{useFileChooserBackend-CLdJ1RU1.js → useFileChooserBackend-uDGm68hp.js} +1 -1
  102. package/dist/{usePossibleValues-DiYOmnZW-CaSLjdK-.js → usePossibleValues-CsJuQ591-r_2wYQe_.js} +2 -2
  103. package/package.json +3 -3
  104. package/dist/DynamicInputControl-W23Zexge.js +0 -6
  105. package/dist/TextControl-52n-sttB-DssWw4KP.js +0 -50962
  106. /package/dist/{useUnknownValuesInTwinlist-BhhirtmX-D2ve7iXH.js → useUnknownValuesInTwinlist-DuLcQlCx-D2ve7iXH.js} +0 -0
@@ -6,7 +6,7 @@ import * as fe from "monaco-editor";
6
6
  import { languages as G, MarkerTag as Ti, MarkerSeverity as $t, editor as wa } from "monaco-editor";
7
7
  import { JsonDataService as Sa, DialogService as Ca, AlertingService as Pa } from "@knime/ui-extension-service";
8
8
  var ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
- function Bc(e) {
9
+ function Jc(e) {
10
10
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
11
11
  }
12
12
  function Ma(e) {
@@ -155,10 +155,10 @@ const Xo = {
155
155
  }), Qo(Zo(t, [i, n]));
156
156
  const { text: o, setInitialText: c } = Go(n);
157
157
  return { editor: t, editorModel: r, modifiedText: o, setInitialModifiedText: c };
158
- }, ea = Ln(), di = () => ea, Jc = (e) => {
158
+ }, ea = Ln(), di = () => ea, Kc = (e) => {
159
159
  const t = xo(e);
160
160
  return ea.value = t, t;
161
- }, Kc = {
161
+ }, Qc = {
162
162
  useCodeEditor: xo,
163
163
  useDiffEditor: ja,
164
164
  useMainCodeEditorStore: di
@@ -168,7 +168,7 @@ let ta = {
168
168
  write: (e) => consola.error("Console not yet initialized", e),
169
169
  clear: () => consola.error("Console not yet initialized")
170
170
  };
171
- const Qc = (e) => {
171
+ const Xc = (e) => {
172
172
  ta = e;
173
173
  }, Zn = tt("small");
174
174
  var D = {}, rt = {}, fi = {}, Tn = {}, b = {}, B = {};
@@ -4632,6 +4632,14 @@ const Zs = (e) => ({
4632
4632
  }, ic = (e) => ({
4633
4633
  triggerKind: rc(e.triggerKind),
4634
4634
  triggerCharacter: e.triggerCharacter
4635
+ }), oc = (e) => ({
4636
+ range: {
4637
+ startLineNumber: e.range.start.line + 1,
4638
+ startColumn: e.range.start.character + 1,
4639
+ endLineNumber: e.range.end.line + 1,
4640
+ endColumn: e.range.end.character + 1
4641
+ },
4642
+ text: e.newText
4635
4643
  }), ui = (e, t) => {
4636
4644
  var o, c;
4637
4645
  const i = {
@@ -4654,9 +4662,10 @@ const Zs = (e) => ({
4654
4662
  insertTextRules: r,
4655
4663
  range: t,
4656
4664
  commitCharacters: e.commitCharacters,
4665
+ ...e.additionalTextEdits ? { additionalTextEdits: e.additionalTextEdits.map(oc) } : {},
4657
4666
  data: e.data
4658
4667
  };
4659
- }, oc = {
4668
+ }, ac = {
4660
4669
  dynamicRegistration: !1,
4661
4670
  completionItem: {
4662
4671
  commitCharactersSupport: !0,
@@ -4673,10 +4682,10 @@ const Zs = (e) => ({
4673
4682
  },
4674
4683
  insertTextMode: D.InsertTextMode.asIs,
4675
4684
  contextSupport: !1
4676
- }, ac = (e, t, i) => ({
4685
+ }, sc = (e, t, i) => ({
4677
4686
  ...mi(e, t),
4678
4687
  context: ic(i)
4679
- }), sc = (e, t, i) => {
4688
+ }), cc = (e, t, i) => {
4680
4689
  const n = ec(t, i);
4681
4690
  return Array.isArray(e) ? {
4682
4691
  suggestions: e.map((r) => ui(r, n))
@@ -4684,12 +4693,12 @@ const Zs = (e) => ({
4684
4693
  suggestions: e.items.map((r) => ui(r, n)),
4685
4694
  incomplete: e.isIncomplete
4686
4695
  };
4687
- }, cc = (e) => {
4696
+ }, uc = (e) => {
4688
4697
  const t = {
4689
4698
  label: typeof e.label == "string" ? e.label : e.label.label
4690
4699
  };
4691
4700
  return "data" in e && (t.data = e.data), t;
4692
- }, uc = (e, t) => ui(e, t), lc = (e) => {
4701
+ }, lc = (e, t) => ui(e, t), dc = (e) => {
4693
4702
  switch (e) {
4694
4703
  case D.DiagnosticSeverity.Error:
4695
4704
  return $t.Error;
@@ -4702,7 +4711,7 @@ const Zs = (e) => ({
4702
4711
  default:
4703
4712
  return $t.Info;
4704
4713
  }
4705
- }, dc = (e) => e.flatMap((t) => {
4714
+ }, fc = (e) => e.flatMap((t) => {
4706
4715
  switch (t) {
4707
4716
  case D.DiagnosticTag.Unnecessary:
4708
4717
  return [Ti.Unnecessary];
@@ -4711,7 +4720,7 @@ const Zs = (e) => ({
4711
4720
  default:
4712
4721
  return [];
4713
4722
  }
4714
- }), fc = {
4723
+ }), gc = {
4715
4724
  relatedInformation: !1,
4716
4725
  codeDescriptionSupport: !1,
4717
4726
  versionSupport: !1,
@@ -4719,51 +4728,51 @@ const Zs = (e) => ({
4719
4728
  tagSupport: {
4720
4729
  valueSet: [D.DiagnosticTag.Unnecessary, D.DiagnosticTag.Deprecated]
4721
4730
  }
4722
- }, gc = (e) => {
4731
+ }, hc = (e) => {
4723
4732
  const t = (i) => {
4724
4733
  let n;
4725
4734
  return i.code && (typeof i.code == "number" ? n = `${i.code}` : n = i.code), {
4726
4735
  code: n,
4727
- severity: lc(
4736
+ severity: dc(
4728
4737
  i.severity ?? D.DiagnosticSeverity.Information
4729
4738
  ),
4730
4739
  message: i.message,
4731
4740
  source: i.source,
4732
- tags: dc(i.tags ?? []),
4741
+ tags: fc(i.tags ?? []),
4733
4742
  ...ha(i.range)
4734
4743
  };
4735
4744
  };
4736
4745
  return e.map(t);
4737
- }, hc = {
4746
+ }, mc = {
4738
4747
  dynamicRegistration: !1,
4739
4748
  willSave: !1,
4740
4749
  willSaveWaitUntil: !1
4741
- }, mc = (e) => ({
4750
+ }, pc = (e) => ({
4742
4751
  range: xs(e.range),
4743
4752
  text: e.text
4744
- }), pc = (e) => ({
4753
+ }), yc = (e) => ({
4745
4754
  textDocument: {
4746
4755
  ...Gn(e),
4747
4756
  languageId: e.getLanguageId(),
4748
4757
  version: e.getVersionId(),
4749
4758
  text: e.getValue()
4750
4759
  }
4751
- }), yc = (e, t) => ({
4760
+ }), vc = (e, t) => ({
4752
4761
  textDocument: {
4753
4762
  ...Gn(e),
4754
4763
  version: t.versionId
4755
4764
  },
4756
- contentChanges: t.changes.map(mc)
4757
- }), vc = (e) => ({
4765
+ contentChanges: t.changes.map(pc)
4766
+ }), bc = (e) => ({
4758
4767
  textDocument: {
4759
4768
  ...Gn(e),
4760
4769
  version: e.getVersionId()
4761
4770
  },
4762
4771
  contentChanges: [{ text: e.getValue() }]
4763
- }), bc = {
4772
+ }), _c = {
4764
4773
  dynamicRegistration: !1,
4765
4774
  contentFormat: ["markdown", "plaintext"]
4766
- }, _c = (e, t) => mi(e, t), Tc = (e) => {
4775
+ }, Tc = (e, t) => mi(e, t), Rc = (e) => {
4767
4776
  const t = (n) => {
4768
4777
  let r;
4769
4778
  return typeof n == "string" ? r = n : r = `\`\`\`${n.language}
@@ -4789,7 +4798,7 @@ ${n.value}
4789
4798
  };
4790
4799
  } else
4791
4800
  throw Error(`Got invalid hover result: ${JSON.stringify(e)}`);
4792
- }, Rc = {
4801
+ }, Dc = {
4793
4802
  dynamicRegistration: !1,
4794
4803
  contextSupport: !0,
4795
4804
  signatureInformation: {
@@ -4798,7 +4807,7 @@ ${n.value}
4798
4807
  labelOffsetSupport: !0
4799
4808
  }
4800
4809
  }
4801
- }, Dc = (e) => {
4810
+ }, wc = (e) => {
4802
4811
  switch (e) {
4803
4812
  case G.SignatureHelpTriggerKind.Invoke:
4804
4813
  return D.SignatureHelpTriggerKind.Invoked;
@@ -4809,27 +4818,27 @@ ${n.value}
4809
4818
  default:
4810
4819
  return D.SignatureHelpTriggerKind.Invoked;
4811
4820
  }
4812
- }, wc = (e) => ({
4813
- triggerKind: Dc(e.triggerKind),
4821
+ }, Sc = (e) => ({
4822
+ triggerKind: wc(e.triggerKind),
4814
4823
  triggerCharacter: e.triggerCharacter,
4815
4824
  isRetrigger: e.isRetrigger
4816
- }), Sc = (e) => ({
4825
+ }), Cc = (e) => ({
4817
4826
  label: e.label,
4818
4827
  ...e.documentation ? { documentation: Gt(e.documentation) } : {}
4819
- }), Cc = (e) => ({
4828
+ }), Pc = (e) => ({
4820
4829
  label: e.label,
4821
4830
  ...e.documentation ? { documentation: Gt(e.documentation) } : {},
4822
- parameters: e.parameters ? e.parameters.map(Sc) : [],
4831
+ parameters: e.parameters ? e.parameters.map(Cc) : [],
4823
4832
  activeParameter: e.activeParameter
4824
- }), Pc = (e) => ({
4825
- signatures: e.signatures.map(Cc),
4833
+ }), Mc = (e) => ({
4834
+ signatures: e.signatures.map(Pc),
4826
4835
  activeSignature: e.activeSignature ?? 0,
4827
4836
  activeParameter: e.activeParameter ?? 0
4828
- }), Mc = (e, t, i) => ({
4837
+ }), kc = (e, t, i) => ({
4829
4838
  ...mi(e, t),
4830
- context: wc(i)
4831
- }), kc = (e) => ({
4832
- value: Pc(e),
4839
+ context: Sc(i)
4840
+ }), Ec = (e) => ({
4841
+ value: Mc(e),
4833
4842
  dispose: () => {
4834
4843
  }
4835
4844
  });
@@ -4896,11 +4905,11 @@ class pi {
4896
4905
  processId: null,
4897
4906
  capabilities: {
4898
4907
  textDocument: {
4899
- hover: bc,
4900
- completion: oc,
4901
- publishDiagnostics: fc,
4902
- signatureHelp: Rc,
4903
- synchronization: hc
4908
+ hover: _c,
4909
+ completion: ac,
4910
+ publishDiagnostics: gc,
4911
+ signatureHelp: Dc,
4912
+ synchronization: mc
4904
4913
  },
4905
4914
  workspace: {
4906
4915
  configuration: !1,
@@ -4924,19 +4933,19 @@ class pi {
4924
4933
  syncDocument(t) {
4925
4934
  this._connection.sendNotification(
4926
4935
  D.DidOpenTextDocumentNotification.type,
4927
- pc(this._editorModel)
4936
+ yc(this._editorModel)
4928
4937
  ), t === D.TextDocumentSyncKind.Full || typeof t == "object" && t.change === D.TextDocumentSyncKind.Full ? this._changeContentDisposable = this._editorModel.onDidChangeContent(
4929
4938
  () => {
4930
4939
  this._onChangeLock = this._connection.sendNotification(
4931
4940
  D.DidChangeTextDocumentNotification.type,
4932
- vc(this._editorModel)
4941
+ bc(this._editorModel)
4933
4942
  );
4934
4943
  }
4935
4944
  ) : (t === D.TextDocumentSyncKind.Incremental || typeof t == "object" && t.change === D.TextDocumentSyncKind.Incremental) && (this._changeContentDisposable = this._editorModel.onDidChangeContent(
4936
4945
  (i) => {
4937
4946
  this._onChangeLock = this._connection.sendNotification(
4938
4947
  D.DidChangeTextDocumentNotification.type,
4939
- yc(this._editorModel, i)
4948
+ vc(this._editorModel, i)
4940
4949
  );
4941
4950
  }
4942
4951
  ));
@@ -4953,9 +4962,9 @@ class pi {
4953
4962
  await this._onChangeLock;
4954
4963
  const n = await this._connection.sendRequest(
4955
4964
  D.HoverRequest.type,
4956
- _c(t, i)
4965
+ Tc(t, i)
4957
4966
  );
4958
- return n === null ? null : Tc(n);
4967
+ return n === null ? null : Rc(n);
4959
4968
  }
4960
4969
  })
4961
4970
  );
@@ -4968,9 +4977,9 @@ class pi {
4968
4977
  t.resolveProvider && (i = async (n) => {
4969
4978
  const r = await this._connection.sendRequest(
4970
4979
  D.CompletionResolveRequest.type,
4971
- cc(n)
4980
+ uc(n)
4972
4981
  );
4973
- return uc(r, n.range);
4982
+ return lc(r, n.range);
4974
4983
  }), this._disposables.push(
4975
4984
  G.registerCompletionItemProvider(this.getLanguageId(), {
4976
4985
  triggerCharacters: t.triggerCharacters,
@@ -4980,9 +4989,9 @@ class pi {
4980
4989
  await this._onChangeLock;
4981
4990
  const c = await this._connection.sendRequest(
4982
4991
  D.CompletionRequest.type,
4983
- ac(n, r, o)
4992
+ sc(n, r, o)
4984
4993
  );
4985
- return c === null ? null : sc(c, n, r);
4994
+ return c === null ? null : cc(c, n, r);
4986
4995
  },
4987
4996
  resolveCompletionItem: i
4988
4997
  })
@@ -5002,9 +5011,9 @@ class pi {
5002
5011
  await this._onChangeLock;
5003
5012
  const c = await this._connection.sendRequest(
5004
5013
  D.SignatureHelpRequest.type,
5005
- Mc(i, n, o)
5014
+ kc(i, n, o)
5006
5015
  );
5007
- return c === null ? null : kc(c);
5016
+ return c === null ? null : Ec(c);
5008
5017
  }
5009
5018
  })
5010
5019
  );
@@ -5019,13 +5028,13 @@ class pi {
5019
5028
  wa.setModelMarkers(
5020
5029
  this._editorModel,
5021
5030
  "lsp-diagnostics",
5022
- gc(t.diagnostics)
5031
+ hc(t.diagnostics)
5023
5032
  );
5024
5033
  }
5025
5034
  );
5026
5035
  }
5027
5036
  }
5028
- class Ec extends D.AbstractMessageReader {
5037
+ class Nc extends D.AbstractMessageReader {
5029
5038
  constructor(i) {
5030
5039
  super();
5031
5040
  Se(this, "messageCache", []);
@@ -5053,7 +5062,7 @@ class Ec extends D.AbstractMessageReader {
5053
5062
  this.messageCache.push(i);
5054
5063
  }
5055
5064
  }
5056
- class Nc extends D.AbstractMessageWriter {
5065
+ class Oc extends D.AbstractMessageWriter {
5057
5066
  constructor(t) {
5058
5067
  super(), this.sendMessage = t;
5059
5068
  }
@@ -5064,7 +5073,7 @@ class Nc extends D.AbstractMessageWriter {
5064
5073
  end() {
5065
5074
  }
5066
5075
  }
5067
- class Oc {
5076
+ class jc {
5068
5077
  constructor(t) {
5069
5078
  Se(this, "_eventHandlers", {});
5070
5079
  this.jsonDataService = t, this.startPolling().catch(() => {
@@ -5088,7 +5097,7 @@ class Oc {
5088
5097
  this._eventHandlers[t] = i;
5089
5098
  }
5090
5099
  }
5091
- class jc {
5100
+ class qc {
5092
5101
  /**
5093
5102
  * Internal constructor — use `getScriptingService()` from `init.ts` instead.
5094
5103
  *
@@ -5104,7 +5113,7 @@ class jc {
5104
5113
  */
5105
5114
  constructor(t, i) {
5106
5115
  Se(this, "eventPoller");
5107
- this.jsonDataService = t, this.alertingService = i, this.eventPoller = new Oc(this.jsonDataService);
5116
+ this.jsonDataService = t, this.alertingService = i, this.eventPoller = new jc(this.jsonDataService);
5108
5117
  }
5109
5118
  sendToService(t, i) {
5110
5119
  return this.jsonDataService.data({
@@ -5123,27 +5132,39 @@ class jc {
5123
5132
  registerEventHandler(t, i) {
5124
5133
  this.eventPoller.registerEventHandler(t, i);
5125
5134
  }
5126
- // TODO move this logic somewhere else to remove the dependency from the
5127
- // scripting-service to the main editor state
5128
- async connectToLanguageServer() {
5129
- var n;
5130
- const t = (n = di().value) == null ? void 0 : n.editorModel;
5131
- if (typeof t > "u")
5135
+ /**
5136
+ * Connect this scripting service's language server to a Monaco model.
5137
+ *
5138
+ * @param editorModel the model the LSP should drive (completions, diagnostics,
5139
+ * etc.). If omitted, falls back to `useMainCodeEditorStore().value?.editorModel`
5140
+ * for backwards compatibility with consumers that register their editor as
5141
+ * the main code editor. New consumers should pass the model explicitly so
5142
+ * the scripting service doesn't depend on the main-editor singleton.
5143
+ *
5144
+ * TODO move this logic somewhere else to remove the dependency from the
5145
+ * scripting-service to the main editor state. The explicit `editorModel`
5146
+ * param is a halfway step — the fallback still couples this service to the
5147
+ * main-editor singleton.
5148
+ */
5149
+ async connectToLanguageServer(t) {
5150
+ var r;
5151
+ const i = t ?? ((r = di().value) == null ? void 0 : r.editorModel);
5152
+ if (typeof i > "u")
5132
5153
  throw Error("Editor model has not yet been initialized");
5133
- const i = await this.sendToService(
5154
+ const n = await this.sendToService(
5134
5155
  "connectToLanguageServer"
5135
5156
  );
5136
- if (i.status === "RUNNING")
5157
+ if (n.status === "RUNNING")
5137
5158
  return pi.create(
5138
- t,
5139
- new Ec(
5140
- (r) => this.registerEventHandler("language-server", r)
5141
- ),
5159
+ i,
5142
5160
  new Nc(
5143
- (r) => this.sendToService("sendLanguageServerMessage", [r])
5161
+ (o) => this.registerEventHandler("language-server", o)
5162
+ ),
5163
+ new Oc(
5164
+ (o) => this.sendToService("sendLanguageServerMessage", [o])
5144
5165
  )
5145
5166
  );
5146
- throw Error(i.message ?? "Starting the language server failed");
5167
+ throw Error(n.message ?? "Starting the language server failed");
5147
5168
  }
5148
5169
  // Parameters need to be a valid port config, otherwise the call will fail
5149
5170
  // even when callKnimeUiApi is available
@@ -5173,7 +5194,7 @@ class jc {
5173
5194
  (i = this.alertingService) == null || i.sendAlert(t);
5174
5195
  }
5175
5196
  }
5176
- class qc {
5197
+ class Ic {
5177
5198
  /**
5178
5199
  * Internal constructor — do not call directly.
5179
5200
  *
@@ -5218,7 +5239,7 @@ class qc {
5218
5239
  return this.dialogService.registerSettings(t);
5219
5240
  }
5220
5241
  }
5221
- const Xc = (e, t) => {
5242
+ const Gc = (e, t) => {
5222
5243
  const i = ma().mainScriptConfigKey ?? "script";
5223
5244
  if (!t)
5224
5245
  return { data: { model: { [i]: e.script } } };
@@ -5229,15 +5250,15 @@ const Xc = (e, t) => {
5229
5250
  return t.data.model[i] = e.script, t;
5230
5251
  };
5231
5252
  let yi;
5232
- const Ic = () => yi;
5253
+ const Lc = () => yi;
5233
5254
  let vi;
5234
5255
  const ma = () => vi;
5235
5256
  let bi;
5236
- const Gc = () => bi, Yc = async () => {
5257
+ const Yc = () => bi, Zc = async () => {
5237
5258
  const e = await Sa.getInstance(), t = await Ca.getInstance(), i = await Pa.getInstance();
5238
- yi = new jc(e, i);
5259
+ yi = new qc(e, i);
5239
5260
  const n = await e.initialData();
5240
- vi = n.initialData, bi = new qc(
5261
+ vi = n.initialData, bi = new Ic(
5241
5262
  n.settings,
5242
5263
  n.settingsInitialData ? JSON.parse(n.settingsInitialData) : void 0,
5243
5264
  t,
@@ -5245,15 +5266,15 @@ const Gc = () => bi, Yc = async () => {
5245
5266
  ), Zn.value = t.getInitialDisplayMode(), t.addOnDisplayModeChangeCallback(({ mode: r }) => {
5246
5267
  Zn.value = r;
5247
5268
  }), ya();
5248
- }, Zc = (e) => {
5269
+ }, xc = (e) => {
5249
5270
  e.scriptingService && (yi = e.scriptingService), e.initialData && (vi = e.initialData), e.settingsService && (bi = e.settingsService), e.displayMode && (Zn.value = e.displayMode), ya();
5250
- }, xc = () => {
5251
- Ic().registerEventHandler("console", ta.write);
5271
+ }, eu = () => {
5272
+ Lc().registerEventHandler("console", ta.write);
5252
5273
  }, li = Ra(
5253
5274
  {}
5254
- ), eu = () => li, tu = () => {
5275
+ ), tu = () => li, nu = () => {
5255
5276
  typeof li.promptResponse < "u" && delete li.promptResponse;
5256
- }, Lc = (e, t = null) => {
5277
+ }, Ac = (e, t = null) => {
5257
5278
  var n;
5258
5279
  const i = (n = window == null ? void 0 : window.localStorage) == null ? void 0 : n.getItem(e);
5259
5280
  if (i === null)
@@ -5263,46 +5284,46 @@ const Gc = () => bi, Yc = async () => {
5263
5284
  } catch {
5264
5285
  return consola.warn(`Could not parse "${e}" from local storage.`), t;
5265
5286
  }
5266
- }, Ac = (e, t) => {
5287
+ }, $c = (e, t) => {
5267
5288
  var i;
5268
5289
  (i = window == null ? void 0 : window.localStorage) == null || i.setItem(e, JSON.stringify(t));
5269
5290
  }, pa = () => {
5270
5291
  const e = ma().kAiConfig.hubId ?? "";
5271
5292
  return `ai-disclaimer-do-not-show-again-${encodeURIComponent(e.trim().toLowerCase())}`;
5272
- }, nu = (e) => {
5273
- Ac(pa(), e);
5274
- }, $c = tt(!0), ya = () => {
5275
- $c.value = !Lc(pa(), !1);
5276
- }, Fc = Ln(), Hc = (e) => {
5277
- Fc.value = e;
5293
+ }, ru = (e) => {
5294
+ $c(pa(), e);
5295
+ }, Fc = tt(!0), ya = () => {
5296
+ Fc.value = !Ac(pa(), !1);
5297
+ }, Hc = Ln(), Wc = (e) => {
5298
+ Hc.value = e;
5278
5299
  };
5279
- Da(() => di().value, Hc);
5280
- const ru = tt([]), iu = tt({ type: "UNKNOWN" });
5300
+ Da(() => di().value, Wc);
5301
+ const iu = tt([]), ou = tt({ type: "UNKNOWN" });
5281
5302
  export {
5282
- Ec as K,
5303
+ Nc as K,
5283
5304
  pi as M,
5284
- Nc as a,
5305
+ Oc as a,
5285
5306
  ae as b,
5286
- ru as c,
5287
- Ic as d,
5288
- Kc as e,
5289
- Fc as f,
5290
- Bc as g,
5291
- eu as h,
5307
+ iu as c,
5308
+ Lc as d,
5309
+ Qc as e,
5310
+ Hc as f,
5311
+ Jc as g,
5312
+ tu as h,
5292
5313
  ma as i,
5293
- $c as j,
5294
- iu as k,
5295
- tu as l,
5296
- Jc as m,
5297
- Gc as n,
5314
+ Fc as j,
5315
+ ou as k,
5316
+ nu as l,
5317
+ Kc as m,
5318
+ Yc as n,
5298
5319
  Zn as o,
5299
5320
  ta as p,
5300
- Yc as q,
5301
- xc as r,
5302
- nu as s,
5303
- Zc as t,
5321
+ Zc as q,
5322
+ eu as r,
5323
+ ru as s,
5324
+ xc as t,
5304
5325
  di as u,
5305
- Xc as v,
5306
- Hc as w,
5307
- Qc as x
5326
+ Gc as v,
5327
+ Wc as w,
5328
+ Xc as x
5308
5329
  };
@@ -0,0 +1,22 @@
1
+ import { createElementBlock as o, openBlock as n, createElementVNode as t } from "vue";
2
+ const r = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
5
+ stroke: "currentColor",
6
+ "stroke-linecap": "round",
7
+ "stroke-linejoin": "round",
8
+ viewBox: "0 0 12 12"
9
+ };
10
+ function l(s, e) {
11
+ return n(), o("svg", r, [...e[0] || (e[0] = [
12
+ t("path", {
13
+ d: "M6.833 9.567 6.7 10.5H5.3l-.1-.933L4.067 9.1l-.767.567-.967-.967.567-.767L2.433 6.8 1.5 6.7V5.3l.933-.133.467-1.134-.567-.733.967-.967.733.567 1.134-.467L5.3 1.5h1.4l.1.933 1.133.467.734-.567 1 .967-.567.733.467 1.134.933.133M7.633 6a1.633 1.633 0 1 1-3.266 0 1.633 1.633 0 0 1 3.266 0m3.129 2.11-1.2-.96a.5.5 0 0 0-.812.39v1.92a.5.5 0 0 0 .812.39l1.2-.96a.5.5 0 0 0 0-.78",
14
+ "vector-effect": "non-scaling-stroke"
15
+ }, null, -1)
16
+ ])]);
17
+ }
18
+ const c = { render: l };
19
+ export {
20
+ c as default,
21
+ l as render
22
+ };
@@ -0,0 +1,22 @@
1
+ import { createElementBlock as o, openBlock as n, createElementVNode as t } from "vue";
2
+ const r = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
5
+ stroke: "currentColor",
6
+ "stroke-linecap": "round",
7
+ "stroke-linejoin": "round",
8
+ viewBox: "0 0 12 12"
9
+ };
10
+ function l(s, e) {
11
+ return n(), o("svg", r, [...e[0] || (e[0] = [
12
+ t("path", {
13
+ d: "M6.833 9.567 6.7 10.5H5.3l-.1-.933L4.067 9.1l-.767.567-.967-.967.567-.767L2.433 6.8 1.5 6.7V5.3l.933-.133.467-1.134-.567-.733.967-.967.733.567 1.134-.467L5.3 1.5h1.4l.1.933 1.133.467.734-.567 1 .967-.567.733.467 1.134.933.133M7.633 6a1.633 1.633 0 1 1-3.266 0 1.633 1.633 0 0 1 3.266 0m3.129 2.11-1.2-.96a.5.5 0 0 0-.812.39v1.92a.5.5 0 0 0 .812.39l1.2-.96a.5.5 0 0 0 0-.78",
14
+ "vector-effect": "non-scaling-stroke"
15
+ }, null, -1)
16
+ ])]);
17
+ }
18
+ const c = { render: l };
19
+ export {
20
+ c as default,
21
+ l as render
22
+ };
@@ -0,0 +1,22 @@
1
+ import { createElementBlock as o, openBlock as n, createElementVNode as r } from "vue";
2
+ const t = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
5
+ stroke: "currentColor",
6
+ "stroke-linecap": "round",
7
+ "stroke-linejoin": "round",
8
+ viewBox: "0 0 12 12"
9
+ };
10
+ function l(c, e) {
11
+ return n(), o("svg", t, [...e[0] || (e[0] = [
12
+ r("path", {
13
+ d: "M1 4.5V3.25A1.25 1.25 0 0 1 2.25 2H3.5M1 7.5v1.25A1.25 1.25 0 0 0 2.25 10H3.5m5-8h1.25A1.25 1.25 0 0 1 11 3.25V4.5M8.5 10h1.25A1.25 1.25 0 0 0 11 8.75V7.5",
14
+ "vector-effect": "non-scaling-stroke"
15
+ }, null, -1)
16
+ ])]);
17
+ }
18
+ const d = { render: l };
19
+ export {
20
+ d as default,
21
+ l as render
22
+ };
@@ -0,0 +1,22 @@
1
+ import { createElementBlock as o, openBlock as n, createElementVNode as r } from "vue";
2
+ const t = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
5
+ stroke: "currentColor",
6
+ "stroke-linecap": "round",
7
+ "stroke-linejoin": "round",
8
+ viewBox: "0 0 12 12"
9
+ };
10
+ function l(c, e) {
11
+ return n(), o("svg", t, [...e[0] || (e[0] = [
12
+ r("path", {
13
+ d: "M1 4.5V3.25A1.25 1.25 0 0 1 2.25 2H3.5M1 7.5v1.25A1.25 1.25 0 0 0 2.25 10H3.5m5-8h1.25A1.25 1.25 0 0 1 11 3.25V4.5M8.5 10h1.25A1.25 1.25 0 0 0 11 8.75V7.5",
14
+ "vector-effect": "non-scaling-stroke"
15
+ }, null, -1)
16
+ ])]);
17
+ }
18
+ const d = { render: l };
19
+ export {
20
+ d as default,
21
+ l as render
22
+ };
@@ -0,0 +1,22 @@
1
+ import { createElementBlock as o, openBlock as n, createElementVNode as r } from "vue";
2
+ const t = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
5
+ stroke: "currentColor",
6
+ "stroke-linecap": "round",
7
+ "stroke-linejoin": "round",
8
+ viewBox: "0 0 12 12"
9
+ };
10
+ function l(c, e) {
11
+ return n(), o("svg", t, [...e[0] || (e[0] = [
12
+ r("path", {
13
+ d: "M1 4.5V3.25A1.25 1.25 0 0 1 2.25 2H3.5M1 7.5v1.25A1.25 1.25 0 0 0 2.25 10H3.5m5-8h1.25A1.25 1.25 0 0 1 11 3.25V4.5M8.5 10h1.25A1.25 1.25 0 0 0 11 8.75V7.5",
14
+ "vector-effect": "non-scaling-stroke"
15
+ }, null, -1)
16
+ ])]);
17
+ }
18
+ const a = { render: l };
19
+ export {
20
+ a as default,
21
+ l as render
22
+ };
@@ -0,0 +1,22 @@
1
+ import { createElementBlock as o, openBlock as n, createElementVNode as t } from "vue";
2
+ const r = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
5
+ stroke: "currentColor",
6
+ "stroke-linecap": "round",
7
+ "stroke-linejoin": "round",
8
+ viewBox: "0 0 12 12"
9
+ };
10
+ function l(c, e) {
11
+ return n(), o("svg", r, [...e[0] || (e[0] = [
12
+ t("path", {
13
+ d: "M3 6h4.026m-2.77 1.25L3 6l1.256-1.25M7.026 6H9M7.026 6H4.974m2.77-1.25L9 6 7.744 7.25M1 2v8m10-8v8",
14
+ "vector-effect": "non-scaling-stroke"
15
+ }, null, -1)
16
+ ])]);
17
+ }
18
+ const i = { render: l };
19
+ export {
20
+ i as default,
21
+ l as render
22
+ };