ninegrid2 6.111.0 → 6.113.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.
@@ -15,6 +15,12 @@ class aiSettings extends HTMLElement
15
15
  set server(v) {
16
16
  const elem = this.shadowRoot.querySelector(`input[name="server"][value="${v}"]`);
17
17
  if (elem) elem.checked = true;
18
+
19
+ console.log("----------")
20
+ this.shadowRoot.querySelectorAll('input[name="server"]').forEach((elem) => {
21
+ console.log(elem);
22
+ elem.trigger("change");
23
+ });
18
24
  };
19
25
 
20
26
  get model() {
@@ -120,7 +126,8 @@ class aiSettings extends HTMLElement
120
126
  });
121
127
  });
122
128
 
123
- this.shadowRoot.querySelector('input[name="server"][value="ollama"]').checked = true;
129
+ //this.shadowRoot.querySelector('input[name="server"][value="ollama"]').checked = true;
130
+ this.server = "ollama";
124
131
  }
125
132
  }
126
133
 
@@ -27307,6 +27307,12 @@ class aiSettings extends HTMLElement
27307
27307
  set server(v) {
27308
27308
  const elem = this.shadowRoot.querySelector(`input[name="server"][value="${v}"]`);
27309
27309
  if (elem) elem.checked = true;
27310
+
27311
+ console.log("----------");
27312
+ this.shadowRoot.querySelectorAll('input[name="server"]').forEach((elem) => {
27313
+ console.log(elem);
27314
+ elem.trigger("change");
27315
+ });
27310
27316
  };
27311
27317
 
27312
27318
  get model() {
@@ -27412,7 +27418,8 @@ class aiSettings extends HTMLElement
27412
27418
  });
27413
27419
  });
27414
27420
 
27415
- this.shadowRoot.querySelector('input[name="server"][value="ollama"]').checked = true;
27421
+ //this.shadowRoot.querySelector('input[name="server"][value="ollama"]').checked = true;
27422
+ this.server = "ollama";
27416
27423
  }
27417
27424
  }
27418
27425
 
@@ -27305,6 +27305,12 @@ class aiSettings extends HTMLElement
27305
27305
  set server(v) {
27306
27306
  const elem = this.shadowRoot.querySelector(`input[name="server"][value="${v}"]`);
27307
27307
  if (elem) elem.checked = true;
27308
+
27309
+ console.log("----------");
27310
+ this.shadowRoot.querySelectorAll('input[name="server"]').forEach((elem) => {
27311
+ console.log(elem);
27312
+ elem.trigger("change");
27313
+ });
27308
27314
  };
27309
27315
 
27310
27316
  get model() {
@@ -27410,7 +27416,8 @@ class aiSettings extends HTMLElement
27410
27416
  });
27411
27417
  });
27412
27418
 
27413
- this.shadowRoot.querySelector('input[name="server"][value="ollama"]').checked = true;
27419
+ //this.shadowRoot.querySelector('input[name="server"][value="ollama"]').checked = true;
27420
+ this.server = "ollama";
27414
27421
  }
27415
27422
  }
27416
27423
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.111.0",
4
+ "version": "6.113.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -15,6 +15,12 @@ class aiSettings extends HTMLElement
15
15
  set server(v) {
16
16
  const elem = this.shadowRoot.querySelector(`input[name="server"][value="${v}"]`);
17
17
  if (elem) elem.checked = true;
18
+
19
+ console.log("----------")
20
+ this.shadowRoot.querySelectorAll('input[name="server"]').forEach((elem) => {
21
+ console.log(elem);
22
+ elem.trigger("change");
23
+ });
18
24
  };
19
25
 
20
26
  get model() {
@@ -120,7 +126,8 @@ class aiSettings extends HTMLElement
120
126
  });
121
127
  });
122
128
 
123
- this.shadowRoot.querySelector('input[name="server"][value="ollama"]').checked = true;
129
+ //this.shadowRoot.querySelector('input[name="server"][value="ollama"]').checked = true;
130
+ this.server = "ollama";
124
131
  }
125
132
  }
126
133