@covalent/components 8.20.0 → 8.20.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.
@@ -43,6 +43,7 @@ export declare class CovalentCodeEditor extends LitElement {
43
43
  createEditor(container: HTMLElement): void;
44
44
  disconnectedCallback(): void;
45
45
  firstUpdated(): void;
46
+ getEditorInstance(): editor.IStandaloneCodeEditor | undefined;
46
47
  getValue(): string | undefined;
47
48
  onModelChange(): void;
48
49
  render(): import("lit-html").TemplateResult<1>;
@@ -1 +1 @@
1
- {"version":3,"file":"code-editor.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/code-editor/code-editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAa,MAAM,KAAK,CAAC;AAQvE,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAInE,OAAO,6DAA6D,CAAC;AACrE,OAAO,2DAA2D,CAAC;AACnE,OAAO,yEAAyE,CAAC;AACjF,OAAO,yEAAyE,CAAC;AACjF,OAAO,iEAAiE,CAAC;AACzE,OAAO,2DAA2D,CAAC;AACnE,OAAO,qEAAqE,CAAC;AAC7E,OAAO,uDAAuD,CAAC;AAE/D,qBACa,kBAAmB,SAAQ,UAAU;IAChD;;OAEG;IACH,OAAO,CAAC,SAAS,CAAiC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,qBAAqB,CAAC;IACtC;;OAEG;IACyB,KAAK,CAAC,EAAE,MAAM,CAAC;IAC3C;;OAEG;IACS,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACS,IAAI,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACyB,OAAO,CAAC,EAAE,MAAM,CAAC,cAAc,GACzD,MAAM,CAAC,oBAAoB,CAAC;IAE9B,MAAM,CAAC,MAAM,4BAIX;IAEF,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,OAAO;IAOf,OAAO,CA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F,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,OAAO;IAOf,OAAO,CAAC,OAAO;IAQf,OAAO,CAAC,QAAQ;IAKhB,OAAO,CAAC,QAAQ,CAEd;IAEF,YAAY;IAQZ,YAAY,CAAC,SAAS,EAAE,WAAW;IAqC1B,oBAAoB,IAAI,IAAI;IAMrC,YAAY;IAuCZ,iBAAiB;IAIjB,QAAQ;IAKR,aAAa;IAcb,MAAM;IAIN,QAAQ,CAAC,KAAK,EAAE,MAAM;IAItB,OAAO,CAAC,iBAAiB,EAAE,cAAc;CAe1C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,kBAAkB,CAAC;KACtC;CACF;AAED,eAAe,kBAAkB,CAAC"}
@@ -62417,7 +62417,7 @@ rr({
62417
62417
  extensions: [".html", ".htm", ".shtml", ".xhtml", ".mdoc", ".jsp", ".asp", ".aspx", ".jshtm"],
62418
62418
  aliases: ["HTML", "htm", "html", "xhtml"],
62419
62419
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
62420
- loader: () => import("./html-af28f38e.mjs")
62420
+ loader: () => import("./html-d44aa562.mjs")
62421
62421
  });
62422
62422
  /*!-----------------------------------------------------------------------------
62423
62423
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -62445,7 +62445,7 @@ rr({
62445
62445
  filenames: ["jakefile"],
62446
62446
  aliases: ["JavaScript", "javascript", "js"],
62447
62447
  mimetypes: ["text/javascript"],
62448
- loader: () => import("./javascript-f77e07c9.mjs")
62448
+ loader: () => import("./javascript-197b275e.mjs")
62449
62449
  });
62450
62450
  /*!-----------------------------------------------------------------------------
62451
62451
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -62458,7 +62458,7 @@ rr({
62458
62458
  extensions: [".ts", ".tsx"],
62459
62459
  aliases: ["TypeScript", "ts", "typescript"],
62460
62460
  mimetypes: ["text/typescript"],
62461
- loader: () => import("./typescript-1770b968.mjs")
62461
+ loader: () => import("./typescript-3ee8c761.mjs")
62462
62462
  });
62463
62463
  /*!-----------------------------------------------------------------------------
62464
62464
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -62471,7 +62471,7 @@ rr({
62471
62471
  extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
62472
62472
  aliases: ["Python", "py"],
62473
62473
  firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
62474
- loader: () => import("./python-ee15a5e2.mjs")
62474
+ loader: () => import("./python-f5318e98.mjs")
62475
62475
  });
62476
62476
  /*!-----------------------------------------------------------------------------
62477
62477
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -62567,7 +62567,13 @@ let Zs = class extends $k {
62567
62567
  theme: this.getTheme(),
62568
62568
  automaticLayout: !0,
62569
62569
  scrollBeyondLastLine: !1
62570
- });
62570
+ }), this.dispatchEvent(
62571
+ new CustomEvent("editor-ready", {
62572
+ detail: { editor: this.editor },
62573
+ bubbles: !1,
62574
+ composed: !0
62575
+ })
62576
+ );
62571
62577
  }
62572
62578
  disconnectedCallback() {
62573
62579
  var o;
@@ -62578,14 +62584,14 @@ let Zs = class extends $k {
62578
62584
  this.container.value && (this.createEditor(this.container.value), this.onModelChange(), (o = this.editor) == null || o.onDidFocusEditorText(() => {
62579
62585
  this.dispatchEvent(
62580
62586
  new CustomEvent("editor-focus", {
62581
- bubbles: !0,
62587
+ bubbles: !1,
62582
62588
  composed: !0
62583
62589
  })
62584
62590
  );
62585
62591
  }), (e = this.editor) == null || e.onDidBlurEditorText(() => {
62586
62592
  this.dispatchEvent(
62587
62593
  new CustomEvent("editor-blur", {
62588
- bubbles: !0,
62594
+ bubbles: !1,
62589
62595
  composed: !0
62590
62596
  })
62591
62597
  );
@@ -62593,6 +62599,9 @@ let Zs = class extends $k {
62593
62599
  this.adjustHeight();
62594
62600
  }), this.adjustHeight(), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", this.setTheme));
62595
62601
  }
62602
+ getEditorInstance() {
62603
+ return this.editor;
62604
+ }
62596
62605
  getValue() {
62597
62606
  var e;
62598
62607
  return (e = this.editor) == null ? void 0 : e.getValue();
@@ -62650,6 +62659,7 @@ Zs = xd([
62650
62659
  const Nde = Zs;
62651
62660
  export {
62652
62661
  Zs as C,
62662
+ Zce as K,
62653
62663
  Nde as a,
62654
62664
  hhe as m
62655
62665
  };