ninegrid2 6.562.0 → 6.563.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.
- package/dist/ai/aiContainer.js +6 -0
- package/dist/ai/aiSettings.js +6 -20
- package/dist/bundle.cjs.js +12 -20
- package/dist/bundle.esm.js +12 -20
- package/package.json +1 -1
- package/src/ai/aiContainer.js +6 -0
- package/src/ai/aiSettings.js +6 -20
package/dist/ai/aiContainer.js
CHANGED
|
@@ -71,6 +71,12 @@ class aiContainer extends HTMLElement
|
|
|
71
71
|
get openaiApiKey() { return this.#openaiApiKey; };
|
|
72
72
|
set openaiApiKey(v) { this.#openaiApiKey = v; };
|
|
73
73
|
|
|
74
|
+
get ollamaUrl() { return this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#ollamaUrl").value || "http://localhost:11434"; };
|
|
75
|
+
set ollamaUrl(v) { this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#ollamaUrl").value = v; };
|
|
76
|
+
|
|
77
|
+
get qdrantUrl() { return this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#qdrantUrl").value || "http://localhost:6333"; };
|
|
78
|
+
set qdrantUrl(v) { this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#qdrantUrl").value = v; };
|
|
79
|
+
|
|
74
80
|
#createModel = () => {
|
|
75
81
|
const elSettings = this.shadowRoot.querySelector("nx-ai-settings");
|
|
76
82
|
if (!elSettings) return;
|
package/dist/ai/aiSettings.js
CHANGED
|
@@ -2,13 +2,6 @@ import ninegrid from "../index.js";
|
|
|
2
2
|
|
|
3
3
|
class aiSettings extends HTMLElement
|
|
4
4
|
{
|
|
5
|
-
#ollamaUrl;
|
|
6
|
-
#qdrantUrl;
|
|
7
|
-
|
|
8
|
-
EVENT = {
|
|
9
|
-
MODEL_CHANGE : "model_change",
|
|
10
|
-
};
|
|
11
|
-
|
|
12
5
|
constructor() {
|
|
13
6
|
console.log("construct");
|
|
14
7
|
|
|
@@ -22,14 +15,6 @@ class aiSettings extends HTMLElement
|
|
|
22
15
|
set server(v) {
|
|
23
16
|
const elem = this.shadowRoot.querySelector(`input[name="server"][value="${v}"]`);
|
|
24
17
|
if (elem) elem.checked = true;
|
|
25
|
-
|
|
26
|
-
this.shadowRoot.querySelectorAll('input[name="server"]').forEach(el => {
|
|
27
|
-
el.dispatchEvent(new Event("change"));
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
this.dispatchEvent(new CustomEvent(this.EVENT.MODEL_CHANGE, {
|
|
31
|
-
detail: { server: this.server, model: this.model }
|
|
32
|
-
}));
|
|
33
18
|
};
|
|
34
19
|
|
|
35
20
|
get model() {
|
|
@@ -48,12 +33,13 @@ class aiSettings extends HTMLElement
|
|
|
48
33
|
})); */
|
|
49
34
|
};
|
|
50
35
|
|
|
36
|
+
/**
|
|
51
37
|
get ollamaUrl() { return this.#ollamaUrl || "http://localhost:11434"; };
|
|
52
38
|
set ollamaUrl(v) { console.log(v); this.shadowRoot.querySelector("#ollamaUrl").value = this.#ollamaUrl = v; };
|
|
53
39
|
|
|
54
40
|
get qdrantUrl() { return this.#qdrantUrl || "http://localhost:6333"; };
|
|
55
41
|
set qdrantUrl(v) { this.shadowRoot.querySelector("#qdrantUrl").value = this.#qdrantUrl = v; };
|
|
56
|
-
|
|
42
|
+
*/
|
|
57
43
|
|
|
58
44
|
|
|
59
45
|
connectedCallback() {
|
|
@@ -73,16 +59,16 @@ class aiSettings extends HTMLElement
|
|
|
73
59
|
<label><input name="server" type="radio" value="ollama">Ollama</label>
|
|
74
60
|
</div>
|
|
75
61
|
<div class="line gemini-bak" style="display:none;">
|
|
76
|
-
<label>API Key: <input id="geminiApiKey" value="
|
|
62
|
+
<label>API Key: <input id="geminiApiKey" value=""/></label>
|
|
77
63
|
</div>
|
|
78
64
|
<div class="line openai-bak" style="display:none;">
|
|
79
|
-
<label>API Key: <input id="openaiApiKey" value="
|
|
65
|
+
<label>API Key: <input id="openaiApiKey" value=""/></label>
|
|
80
66
|
</div>
|
|
81
67
|
<div class="line subject ollama">
|
|
82
68
|
<label for="ollamaUrl">Server Url:</label>
|
|
83
69
|
</div>
|
|
84
70
|
<div class="line contents ollama">
|
|
85
|
-
<input type="text" id="ollamaUrl" value="
|
|
71
|
+
<input type="text" id="ollamaUrl" value=""/></label>
|
|
86
72
|
</div>
|
|
87
73
|
<div class="line subject ollama">
|
|
88
74
|
<label for="ollamaModel">Model:</label>
|
|
@@ -118,7 +104,7 @@ class aiSettings extends HTMLElement
|
|
|
118
104
|
<label for="qdrantUrl">Qdrant Url:</label>
|
|
119
105
|
</div>
|
|
120
106
|
<div class="line contents qdrant">
|
|
121
|
-
<input type="text" id="qdrantUrl" value="
|
|
107
|
+
<input type="text" id="qdrantUrl" value=""/>
|
|
122
108
|
</div>
|
|
123
109
|
`;
|
|
124
110
|
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -27518,13 +27518,6 @@ Array.prototype.nineBinarySearch = function(target)
|
|
|
27518
27518
|
|
|
27519
27519
|
class aiSettings extends HTMLElement
|
|
27520
27520
|
{
|
|
27521
|
-
#ollamaUrl;
|
|
27522
|
-
#qdrantUrl;
|
|
27523
|
-
|
|
27524
|
-
EVENT = {
|
|
27525
|
-
MODEL_CHANGE : "model_change",
|
|
27526
|
-
};
|
|
27527
|
-
|
|
27528
27521
|
constructor() {
|
|
27529
27522
|
console.log("construct");
|
|
27530
27523
|
|
|
@@ -27538,14 +27531,6 @@ class aiSettings extends HTMLElement
|
|
|
27538
27531
|
set server(v) {
|
|
27539
27532
|
const elem = this.shadowRoot.querySelector(`input[name="server"][value="${v}"]`);
|
|
27540
27533
|
if (elem) elem.checked = true;
|
|
27541
|
-
|
|
27542
|
-
this.shadowRoot.querySelectorAll('input[name="server"]').forEach(el => {
|
|
27543
|
-
el.dispatchEvent(new Event("change"));
|
|
27544
|
-
});
|
|
27545
|
-
|
|
27546
|
-
this.dispatchEvent(new CustomEvent(this.EVENT.MODEL_CHANGE, {
|
|
27547
|
-
detail: { server: this.server, model: this.model }
|
|
27548
|
-
}));
|
|
27549
27534
|
};
|
|
27550
27535
|
|
|
27551
27536
|
get model() {
|
|
@@ -27564,12 +27549,13 @@ class aiSettings extends HTMLElement
|
|
|
27564
27549
|
})); */
|
|
27565
27550
|
};
|
|
27566
27551
|
|
|
27552
|
+
/**
|
|
27567
27553
|
get ollamaUrl() { return this.#ollamaUrl || "http://localhost:11434"; };
|
|
27568
27554
|
set ollamaUrl(v) { console.log(v); this.shadowRoot.querySelector("#ollamaUrl").value = this.#ollamaUrl = v; };
|
|
27569
27555
|
|
|
27570
27556
|
get qdrantUrl() { return this.#qdrantUrl || "http://localhost:6333"; };
|
|
27571
27557
|
set qdrantUrl(v) { this.shadowRoot.querySelector("#qdrantUrl").value = this.#qdrantUrl = v; };
|
|
27572
|
-
|
|
27558
|
+
*/
|
|
27573
27559
|
|
|
27574
27560
|
|
|
27575
27561
|
connectedCallback() {
|
|
@@ -27589,16 +27575,16 @@ class aiSettings extends HTMLElement
|
|
|
27589
27575
|
<label><input name="server" type="radio" value="ollama">Ollama</label>
|
|
27590
27576
|
</div>
|
|
27591
27577
|
<div class="line gemini-bak" style="display:none;">
|
|
27592
|
-
<label>API Key: <input id="geminiApiKey" value="
|
|
27578
|
+
<label>API Key: <input id="geminiApiKey" value=""/></label>
|
|
27593
27579
|
</div>
|
|
27594
27580
|
<div class="line openai-bak" style="display:none;">
|
|
27595
|
-
<label>API Key: <input id="openaiApiKey" value="
|
|
27581
|
+
<label>API Key: <input id="openaiApiKey" value=""/></label>
|
|
27596
27582
|
</div>
|
|
27597
27583
|
<div class="line subject ollama">
|
|
27598
27584
|
<label for="ollamaUrl">Server Url:</label>
|
|
27599
27585
|
</div>
|
|
27600
27586
|
<div class="line contents ollama">
|
|
27601
|
-
<input type="text" id="ollamaUrl" value="
|
|
27587
|
+
<input type="text" id="ollamaUrl" value=""/></label>
|
|
27602
27588
|
</div>
|
|
27603
27589
|
<div class="line subject ollama">
|
|
27604
27590
|
<label for="ollamaModel">Model:</label>
|
|
@@ -27634,7 +27620,7 @@ class aiSettings extends HTMLElement
|
|
|
27634
27620
|
<label for="qdrantUrl">Qdrant Url:</label>
|
|
27635
27621
|
</div>
|
|
27636
27622
|
<div class="line contents qdrant">
|
|
27637
|
-
<input type="text" id="qdrantUrl" value="
|
|
27623
|
+
<input type="text" id="qdrantUrl" value=""/>
|
|
27638
27624
|
</div>
|
|
27639
27625
|
`;
|
|
27640
27626
|
|
|
@@ -54253,6 +54239,12 @@ class aiContainer extends HTMLElement
|
|
|
54253
54239
|
get openaiApiKey() { return this.#openaiApiKey; };
|
|
54254
54240
|
set openaiApiKey(v) { this.#openaiApiKey = v; };
|
|
54255
54241
|
|
|
54242
|
+
get ollamaUrl() { return this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#ollamaUrl").value || "http://localhost:11434"; };
|
|
54243
|
+
set ollamaUrl(v) { this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#ollamaUrl").value = v; };
|
|
54244
|
+
|
|
54245
|
+
get qdrantUrl() { return this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#qdrantUrl").value || "http://localhost:6333"; };
|
|
54246
|
+
set qdrantUrl(v) { this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#qdrantUrl").value = v; };
|
|
54247
|
+
|
|
54256
54248
|
#createModel = () => {
|
|
54257
54249
|
const elSettings = this.shadowRoot.querySelector("nx-ai-settings");
|
|
54258
54250
|
if (!elSettings) return;
|
package/dist/bundle.esm.js
CHANGED
|
@@ -27516,13 +27516,6 @@ Array.prototype.nineBinarySearch = function(target)
|
|
|
27516
27516
|
|
|
27517
27517
|
class aiSettings extends HTMLElement
|
|
27518
27518
|
{
|
|
27519
|
-
#ollamaUrl;
|
|
27520
|
-
#qdrantUrl;
|
|
27521
|
-
|
|
27522
|
-
EVENT = {
|
|
27523
|
-
MODEL_CHANGE : "model_change",
|
|
27524
|
-
};
|
|
27525
|
-
|
|
27526
27519
|
constructor() {
|
|
27527
27520
|
console.log("construct");
|
|
27528
27521
|
|
|
@@ -27536,14 +27529,6 @@ class aiSettings extends HTMLElement
|
|
|
27536
27529
|
set server(v) {
|
|
27537
27530
|
const elem = this.shadowRoot.querySelector(`input[name="server"][value="${v}"]`);
|
|
27538
27531
|
if (elem) elem.checked = true;
|
|
27539
|
-
|
|
27540
|
-
this.shadowRoot.querySelectorAll('input[name="server"]').forEach(el => {
|
|
27541
|
-
el.dispatchEvent(new Event("change"));
|
|
27542
|
-
});
|
|
27543
|
-
|
|
27544
|
-
this.dispatchEvent(new CustomEvent(this.EVENT.MODEL_CHANGE, {
|
|
27545
|
-
detail: { server: this.server, model: this.model }
|
|
27546
|
-
}));
|
|
27547
27532
|
};
|
|
27548
27533
|
|
|
27549
27534
|
get model() {
|
|
@@ -27562,12 +27547,13 @@ class aiSettings extends HTMLElement
|
|
|
27562
27547
|
})); */
|
|
27563
27548
|
};
|
|
27564
27549
|
|
|
27550
|
+
/**
|
|
27565
27551
|
get ollamaUrl() { return this.#ollamaUrl || "http://localhost:11434"; };
|
|
27566
27552
|
set ollamaUrl(v) { console.log(v); this.shadowRoot.querySelector("#ollamaUrl").value = this.#ollamaUrl = v; };
|
|
27567
27553
|
|
|
27568
27554
|
get qdrantUrl() { return this.#qdrantUrl || "http://localhost:6333"; };
|
|
27569
27555
|
set qdrantUrl(v) { this.shadowRoot.querySelector("#qdrantUrl").value = this.#qdrantUrl = v; };
|
|
27570
|
-
|
|
27556
|
+
*/
|
|
27571
27557
|
|
|
27572
27558
|
|
|
27573
27559
|
connectedCallback() {
|
|
@@ -27587,16 +27573,16 @@ class aiSettings extends HTMLElement
|
|
|
27587
27573
|
<label><input name="server" type="radio" value="ollama">Ollama</label>
|
|
27588
27574
|
</div>
|
|
27589
27575
|
<div class="line gemini-bak" style="display:none;">
|
|
27590
|
-
<label>API Key: <input id="geminiApiKey" value="
|
|
27576
|
+
<label>API Key: <input id="geminiApiKey" value=""/></label>
|
|
27591
27577
|
</div>
|
|
27592
27578
|
<div class="line openai-bak" style="display:none;">
|
|
27593
|
-
<label>API Key: <input id="openaiApiKey" value="
|
|
27579
|
+
<label>API Key: <input id="openaiApiKey" value=""/></label>
|
|
27594
27580
|
</div>
|
|
27595
27581
|
<div class="line subject ollama">
|
|
27596
27582
|
<label for="ollamaUrl">Server Url:</label>
|
|
27597
27583
|
</div>
|
|
27598
27584
|
<div class="line contents ollama">
|
|
27599
|
-
<input type="text" id="ollamaUrl" value="
|
|
27585
|
+
<input type="text" id="ollamaUrl" value=""/></label>
|
|
27600
27586
|
</div>
|
|
27601
27587
|
<div class="line subject ollama">
|
|
27602
27588
|
<label for="ollamaModel">Model:</label>
|
|
@@ -27632,7 +27618,7 @@ class aiSettings extends HTMLElement
|
|
|
27632
27618
|
<label for="qdrantUrl">Qdrant Url:</label>
|
|
27633
27619
|
</div>
|
|
27634
27620
|
<div class="line contents qdrant">
|
|
27635
|
-
<input type="text" id="qdrantUrl" value="
|
|
27621
|
+
<input type="text" id="qdrantUrl" value=""/>
|
|
27636
27622
|
</div>
|
|
27637
27623
|
`;
|
|
27638
27624
|
|
|
@@ -54251,6 +54237,12 @@ class aiContainer extends HTMLElement
|
|
|
54251
54237
|
get openaiApiKey() { return this.#openaiApiKey; };
|
|
54252
54238
|
set openaiApiKey(v) { this.#openaiApiKey = v; };
|
|
54253
54239
|
|
|
54240
|
+
get ollamaUrl() { return this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#ollamaUrl").value || "http://localhost:11434"; };
|
|
54241
|
+
set ollamaUrl(v) { this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#ollamaUrl").value = v; };
|
|
54242
|
+
|
|
54243
|
+
get qdrantUrl() { return this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#qdrantUrl").value || "http://localhost:6333"; };
|
|
54244
|
+
set qdrantUrl(v) { this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#qdrantUrl").value = v; };
|
|
54245
|
+
|
|
54254
54246
|
#createModel = () => {
|
|
54255
54247
|
const elSettings = this.shadowRoot.querySelector("nx-ai-settings");
|
|
54256
54248
|
if (!elSettings) return;
|
package/package.json
CHANGED
package/src/ai/aiContainer.js
CHANGED
|
@@ -71,6 +71,12 @@ class aiContainer extends HTMLElement
|
|
|
71
71
|
get openaiApiKey() { return this.#openaiApiKey; };
|
|
72
72
|
set openaiApiKey(v) { this.#openaiApiKey = v; };
|
|
73
73
|
|
|
74
|
+
get ollamaUrl() { return this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#ollamaUrl").value || "http://localhost:11434"; };
|
|
75
|
+
set ollamaUrl(v) { this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#ollamaUrl").value = v; };
|
|
76
|
+
|
|
77
|
+
get qdrantUrl() { return this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#qdrantUrl").value || "http://localhost:6333"; };
|
|
78
|
+
set qdrantUrl(v) { this.shadowRoot.querySelector("nx-ai-settings").shadowRoot.querySelector("#qdrantUrl").value = v; };
|
|
79
|
+
|
|
74
80
|
#createModel = () => {
|
|
75
81
|
const elSettings = this.shadowRoot.querySelector("nx-ai-settings");
|
|
76
82
|
if (!elSettings) return;
|
package/src/ai/aiSettings.js
CHANGED
|
@@ -2,13 +2,6 @@ import ninegrid from "../index.js";
|
|
|
2
2
|
|
|
3
3
|
class aiSettings extends HTMLElement
|
|
4
4
|
{
|
|
5
|
-
#ollamaUrl;
|
|
6
|
-
#qdrantUrl;
|
|
7
|
-
|
|
8
|
-
EVENT = {
|
|
9
|
-
MODEL_CHANGE : "model_change",
|
|
10
|
-
};
|
|
11
|
-
|
|
12
5
|
constructor() {
|
|
13
6
|
console.log("construct");
|
|
14
7
|
|
|
@@ -22,14 +15,6 @@ class aiSettings extends HTMLElement
|
|
|
22
15
|
set server(v) {
|
|
23
16
|
const elem = this.shadowRoot.querySelector(`input[name="server"][value="${v}"]`);
|
|
24
17
|
if (elem) elem.checked = true;
|
|
25
|
-
|
|
26
|
-
this.shadowRoot.querySelectorAll('input[name="server"]').forEach(el => {
|
|
27
|
-
el.dispatchEvent(new Event("change"));
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
this.dispatchEvent(new CustomEvent(this.EVENT.MODEL_CHANGE, {
|
|
31
|
-
detail: { server: this.server, model: this.model }
|
|
32
|
-
}));
|
|
33
18
|
};
|
|
34
19
|
|
|
35
20
|
get model() {
|
|
@@ -48,12 +33,13 @@ class aiSettings extends HTMLElement
|
|
|
48
33
|
})); */
|
|
49
34
|
};
|
|
50
35
|
|
|
36
|
+
/**
|
|
51
37
|
get ollamaUrl() { return this.#ollamaUrl || "http://localhost:11434"; };
|
|
52
38
|
set ollamaUrl(v) { console.log(v); this.shadowRoot.querySelector("#ollamaUrl").value = this.#ollamaUrl = v; };
|
|
53
39
|
|
|
54
40
|
get qdrantUrl() { return this.#qdrantUrl || "http://localhost:6333"; };
|
|
55
41
|
set qdrantUrl(v) { this.shadowRoot.querySelector("#qdrantUrl").value = this.#qdrantUrl = v; };
|
|
56
|
-
|
|
42
|
+
*/
|
|
57
43
|
|
|
58
44
|
|
|
59
45
|
connectedCallback() {
|
|
@@ -73,16 +59,16 @@ class aiSettings extends HTMLElement
|
|
|
73
59
|
<label><input name="server" type="radio" value="ollama">Ollama</label>
|
|
74
60
|
</div>
|
|
75
61
|
<div class="line gemini-bak" style="display:none;">
|
|
76
|
-
<label>API Key: <input id="geminiApiKey" value="
|
|
62
|
+
<label>API Key: <input id="geminiApiKey" value=""/></label>
|
|
77
63
|
</div>
|
|
78
64
|
<div class="line openai-bak" style="display:none;">
|
|
79
|
-
<label>API Key: <input id="openaiApiKey" value="
|
|
65
|
+
<label>API Key: <input id="openaiApiKey" value=""/></label>
|
|
80
66
|
</div>
|
|
81
67
|
<div class="line subject ollama">
|
|
82
68
|
<label for="ollamaUrl">Server Url:</label>
|
|
83
69
|
</div>
|
|
84
70
|
<div class="line contents ollama">
|
|
85
|
-
<input type="text" id="ollamaUrl" value="
|
|
71
|
+
<input type="text" id="ollamaUrl" value=""/></label>
|
|
86
72
|
</div>
|
|
87
73
|
<div class="line subject ollama">
|
|
88
74
|
<label for="ollamaModel">Model:</label>
|
|
@@ -118,7 +104,7 @@ class aiSettings extends HTMLElement
|
|
|
118
104
|
<label for="qdrantUrl">Qdrant Url:</label>
|
|
119
105
|
</div>
|
|
120
106
|
<div class="line contents qdrant">
|
|
121
|
-
<input type="text" id="qdrantUrl" value="
|
|
107
|
+
<input type="text" id="qdrantUrl" value=""/>
|
|
122
108
|
</div>
|
|
123
109
|
`;
|
|
124
110
|
|