ide-assi 0.309.0 → 0.310.0

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.
@@ -193998,7 +193998,41 @@ class IdeAi
193998
193998
  };
193999
193999
  }
194000
194000
 
194001
- //import { IdeDiffPopup } from "./ideDiffPopup.js";
194001
+ class IdeDiffPopup extends HTMLElement
194002
+ {
194003
+ constructor() {
194004
+
194005
+ super();
194006
+
194007
+ this.attachShadow({ mode: 'open' });
194008
+ }
194009
+
194010
+ connectedCallback() {
194011
+
194012
+ this.#owner = this.getRootNode().host;//this.closest("nine-grid");
194013
+
194014
+ this.shadowRoot.innerHTML = `
194015
+ <style>
194016
+
194017
+ </style>
194018
+
194019
+ <nx-dialog>
194020
+ <nx-diff></nx-diff>
194021
+ </nx-dialog>
194022
+ `;
194023
+ }
194024
+
194025
+ popup = (src1, src2) => {
194026
+ setTimeout(() => {
194027
+ const target = this.shadowRoot.querySelector("nx-diff");
194028
+ target.initialize(src1, src2);
194029
+ this.shadowRoot.querySelector('dialog').showModal();
194030
+ }, 100);
194031
+ };
194032
+ }
194033
+
194034
+
194035
+ customElements.define("ide-diff-popup", IdeDiffPopup);
194002
194036
 
194003
194037
  class IdeAssi extends HTMLElement
194004
194038
  {
@@ -193994,7 +193994,41 @@ class IdeAi
193994
193994
  };
193995
193995
  }
193996
193996
 
193997
- //import { IdeDiffPopup } from "./ideDiffPopup.js";
193997
+ class IdeDiffPopup extends HTMLElement
193998
+ {
193999
+ constructor() {
194000
+
194001
+ super();
194002
+
194003
+ this.attachShadow({ mode: 'open' });
194004
+ }
194005
+
194006
+ connectedCallback() {
194007
+
194008
+ this.#owner = this.getRootNode().host;//this.closest("nine-grid");
194009
+
194010
+ this.shadowRoot.innerHTML = `
194011
+ <style>
194012
+
194013
+ </style>
194014
+
194015
+ <nx-dialog>
194016
+ <nx-diff></nx-diff>
194017
+ </nx-dialog>
194018
+ `;
194019
+ }
194020
+
194021
+ popup = (src1, src2) => {
194022
+ setTimeout(() => {
194023
+ const target = this.shadowRoot.querySelector("nx-diff");
194024
+ target.initialize(src1, src2);
194025
+ this.shadowRoot.querySelector('dialog').showModal();
194026
+ }, 100);
194027
+ };
194028
+ }
194029
+
194030
+
194031
+ customElements.define("ide-diff-popup", IdeDiffPopup);
193998
194032
 
193999
194033
  class IdeAssi extends HTMLElement
194000
194034
  {
@@ -1,7 +1,7 @@
1
1
  import ninegrid from "ninegrid2";
2
2
  import { IdeAi } from "./ideAi.js";
3
3
  import { api } from "./ideFetch.js";
4
- //import { IdeDiffPopup } from "./ideDiffPopup.js";
4
+ import { IdeDiffPopup } from "./ideDiffPopup.js";
5
5
 
6
6
  export class IdeAssi extends HTMLElement
7
7
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.309.0",
4
+ "version": "0.310.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  import ninegrid from "ninegrid2";
2
2
  import { IdeAi } from "./ideAi.js";
3
3
  import { api } from "./ideFetch.js";
4
- //import { IdeDiffPopup } from "./ideDiffPopup.js";
4
+ import { IdeDiffPopup } from "./ideDiffPopup.js";
5
5
 
6
6
  export class IdeAssi extends HTMLElement
7
7
  {