ninegrid2 6.571.0 → 6.573.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.
@@ -248,6 +248,11 @@ class aiContainer extends HTMLElement
248
248
  const columnInfo = this.#getColumnInfo();
249
249
  const uniqueKey = this.#getUniqueKey();
250
250
 
251
+ const isAnalyze = this.settings.shadowRoot.querySelector("chkAnalyze").checked;
252
+ const analyzeCnt = this.settings.shadowRoot.querySelector("txtAnalyze").value;
253
+
254
+ console.log(isAnalyze, analyzeCnt);
255
+
251
256
  console.log(searchResults);
252
257
 
253
258
  if (!searchResults || searchResults.length == 0) {
@@ -344,10 +349,9 @@ class aiContainer extends HTMLElement
344
349
 
345
350
  /**
346
351
  * setTimeout 없으면, 맥에서 한글 잔상이 남음
352
+ * setTimeout 내에서 e.target이 nx-ai-container가 된다.
347
353
  */
348
- console.log(e.target);
349
- setTimeout((x) => {
350
- console.log(e.target, x);
354
+ setTimeout(() => {
351
355
  this.shadowRoot.querySelector("textarea").value = "";
352
356
  });
353
357
 
@@ -48,15 +48,6 @@ class aiSettings extends HTMLElement
48
48
  detail: { server: this.server, model: this.model }
49
49
  })); */
50
50
  };
51
-
52
- /**
53
- get ollamaUrl() { return this.#ollamaUrl || "http://localhost:11434"; };
54
- set ollamaUrl(v) { console.log(v); this.shadowRoot.querySelector("#ollamaUrl").value = this.#ollamaUrl = v; };
55
-
56
- get qdrantUrl() { return this.#qdrantUrl || "http://localhost:6333"; };
57
- set qdrantUrl(v) { this.shadowRoot.querySelector("#qdrantUrl").value = this.#qdrantUrl = v; };
58
- */
59
-
60
51
 
61
52
  connectedCallback() {
62
53
 
@@ -122,6 +113,10 @@ class aiSettings extends HTMLElement
122
113
  <div class="line contents qdrant">
123
114
  <input type="text" id="qdrantUrl" value="http://localhost:6333"/>
124
115
  </div>
116
+
117
+ <div class="line subject analyze">
118
+ <input id="chkAnalyze" type="checkbox" checked> <input id="txtAnalyze" type="text" value="100">건 미만인 경우 데이타 분석 요청
119
+ </div>
125
120
  `;
126
121
 
127
122
  this.#init();
@@ -27564,15 +27564,6 @@ class aiSettings extends HTMLElement
27564
27564
  detail: { server: this.server, model: this.model }
27565
27565
  })); */
27566
27566
  };
27567
-
27568
- /**
27569
- get ollamaUrl() { return this.#ollamaUrl || "http://localhost:11434"; };
27570
- set ollamaUrl(v) { console.log(v); this.shadowRoot.querySelector("#ollamaUrl").value = this.#ollamaUrl = v; };
27571
-
27572
- get qdrantUrl() { return this.#qdrantUrl || "http://localhost:6333"; };
27573
- set qdrantUrl(v) { this.shadowRoot.querySelector("#qdrantUrl").value = this.#qdrantUrl = v; };
27574
- */
27575
-
27576
27567
 
27577
27568
  connectedCallback() {
27578
27569
 
@@ -27638,6 +27629,10 @@ class aiSettings extends HTMLElement
27638
27629
  <div class="line contents qdrant">
27639
27630
  <input type="text" id="qdrantUrl" value="http://localhost:6333"/>
27640
27631
  </div>
27632
+
27633
+ <div class="line subject analyze">
27634
+ <input id="chkAnalyze" type="checkbox" checked> <input id="txtAnalyze" type="text" value="100">건 미만인 경우 데이타 분석 요청
27635
+ </div>
27641
27636
  `;
27642
27637
 
27643
27638
  this.#init();
@@ -54416,6 +54411,11 @@ class aiContainer extends HTMLElement
54416
54411
  const columnInfo = this.#getColumnInfo();
54417
54412
  const uniqueKey = this.#getUniqueKey();
54418
54413
 
54414
+ const isAnalyze = this.settings.shadowRoot.querySelector("chkAnalyze").checked;
54415
+ const analyzeCnt = this.settings.shadowRoot.querySelector("txtAnalyze").value;
54416
+
54417
+ console.log(isAnalyze, analyzeCnt);
54418
+
54419
54419
  console.log(searchResults);
54420
54420
 
54421
54421
  if (!searchResults || searchResults.length == 0) {
@@ -54491,10 +54491,9 @@ class aiContainer extends HTMLElement
54491
54491
 
54492
54492
  /**
54493
54493
  * setTimeout 없으면, 맥에서 한글 잔상이 남음
54494
+ * setTimeout 내에서 e.target이 nx-ai-container가 된다.
54494
54495
  */
54495
- console.log(e.target);
54496
- setTimeout((x) => {
54497
- console.log(e.target, x);
54496
+ setTimeout(() => {
54498
54497
  this.shadowRoot.querySelector("textarea").value = "";
54499
54498
  });
54500
54499
 
@@ -27562,15 +27562,6 @@ class aiSettings extends HTMLElement
27562
27562
  detail: { server: this.server, model: this.model }
27563
27563
  })); */
27564
27564
  };
27565
-
27566
- /**
27567
- get ollamaUrl() { return this.#ollamaUrl || "http://localhost:11434"; };
27568
- set ollamaUrl(v) { console.log(v); this.shadowRoot.querySelector("#ollamaUrl").value = this.#ollamaUrl = v; };
27569
-
27570
- get qdrantUrl() { return this.#qdrantUrl || "http://localhost:6333"; };
27571
- set qdrantUrl(v) { this.shadowRoot.querySelector("#qdrantUrl").value = this.#qdrantUrl = v; };
27572
- */
27573
-
27574
27565
 
27575
27566
  connectedCallback() {
27576
27567
 
@@ -27636,6 +27627,10 @@ class aiSettings extends HTMLElement
27636
27627
  <div class="line contents qdrant">
27637
27628
  <input type="text" id="qdrantUrl" value="http://localhost:6333"/>
27638
27629
  </div>
27630
+
27631
+ <div class="line subject analyze">
27632
+ <input id="chkAnalyze" type="checkbox" checked> <input id="txtAnalyze" type="text" value="100">건 미만인 경우 데이타 분석 요청
27633
+ </div>
27639
27634
  `;
27640
27635
 
27641
27636
  this.#init();
@@ -54414,6 +54409,11 @@ class aiContainer extends HTMLElement
54414
54409
  const columnInfo = this.#getColumnInfo();
54415
54410
  const uniqueKey = this.#getUniqueKey();
54416
54411
 
54412
+ const isAnalyze = this.settings.shadowRoot.querySelector("chkAnalyze").checked;
54413
+ const analyzeCnt = this.settings.shadowRoot.querySelector("txtAnalyze").value;
54414
+
54415
+ console.log(isAnalyze, analyzeCnt);
54416
+
54417
54417
  console.log(searchResults);
54418
54418
 
54419
54419
  if (!searchResults || searchResults.length == 0) {
@@ -54489,10 +54489,9 @@ class aiContainer extends HTMLElement
54489
54489
 
54490
54490
  /**
54491
54491
  * setTimeout 없으면, 맥에서 한글 잔상이 남음
54492
+ * setTimeout 내에서 e.target이 nx-ai-container가 된다.
54492
54493
  */
54493
- console.log(e.target);
54494
- setTimeout((x) => {
54495
- console.log(e.target, x);
54494
+ setTimeout(() => {
54496
54495
  this.shadowRoot.querySelector("textarea").value = "";
54497
54496
  });
54498
54497
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.571.0",
4
+ "version": "6.573.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -248,6 +248,11 @@ class aiContainer extends HTMLElement
248
248
  const columnInfo = this.#getColumnInfo();
249
249
  const uniqueKey = this.#getUniqueKey();
250
250
 
251
+ const isAnalyze = this.settings.shadowRoot.querySelector("chkAnalyze").checked;
252
+ const analyzeCnt = this.settings.shadowRoot.querySelector("txtAnalyze").value;
253
+
254
+ console.log(isAnalyze, analyzeCnt);
255
+
251
256
  console.log(searchResults);
252
257
 
253
258
  if (!searchResults || searchResults.length == 0) {
@@ -344,10 +349,9 @@ class aiContainer extends HTMLElement
344
349
 
345
350
  /**
346
351
  * setTimeout 없으면, 맥에서 한글 잔상이 남음
352
+ * setTimeout 내에서 e.target이 nx-ai-container가 된다.
347
353
  */
348
- console.log(e.target);
349
- setTimeout((x) => {
350
- console.log(e.target, x);
354
+ setTimeout(() => {
351
355
  this.shadowRoot.querySelector("textarea").value = "";
352
356
  });
353
357
 
@@ -48,15 +48,6 @@ class aiSettings extends HTMLElement
48
48
  detail: { server: this.server, model: this.model }
49
49
  })); */
50
50
  };
51
-
52
- /**
53
- get ollamaUrl() { return this.#ollamaUrl || "http://localhost:11434"; };
54
- set ollamaUrl(v) { console.log(v); this.shadowRoot.querySelector("#ollamaUrl").value = this.#ollamaUrl = v; };
55
-
56
- get qdrantUrl() { return this.#qdrantUrl || "http://localhost:6333"; };
57
- set qdrantUrl(v) { this.shadowRoot.querySelector("#qdrantUrl").value = this.#qdrantUrl = v; };
58
- */
59
-
60
51
 
61
52
  connectedCallback() {
62
53
 
@@ -122,6 +113,10 @@ class aiSettings extends HTMLElement
122
113
  <div class="line contents qdrant">
123
114
  <input type="text" id="qdrantUrl" value="http://localhost:6333"/>
124
115
  </div>
116
+
117
+ <div class="line subject analyze">
118
+ <input id="chkAnalyze" type="checkbox" checked> <input id="txtAnalyze" type="text" value="100">건 미만인 경우 데이타 분석 요청
119
+ </div>
125
120
  `;
126
121
 
127
122
  this.#init();