ninegrid2 6.531.0 → 6.532.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.
@@ -341,23 +341,22 @@ class aiContainer extends HTMLElement
341
341
  return false; // 지원하지 않는 조건 타입
342
342
  }
343
343
 
344
- #filter = async (filter) => {
345
- console.log("===============================");
346
- console.log(filter);
347
-
348
- const result1 = this.#filterJsonArray(this.#getData(), filter);
349
- console.log(result1);
350
- };
351
344
 
352
345
  #q1 = async () => {
353
346
  const filter = await this.#generateQdrantFilter();
354
- return await this.#filter(filter);
347
+ const searchResults = await this.#filterJsonArray(this.#getData(), filter);
348
+
349
+ await this.#answer(searchResults);
355
350
  };
356
351
 
357
352
  #q2 = async () => {
358
353
  const filter = await this.#generateQdrantFilter();
359
354
  const searchResults = await this.#searchWithQdrantFilter(filter);
360
355
 
356
+ await this.#answer(searchResults);
357
+ };
358
+
359
+ #answer = async (searchResults) => {
361
360
  const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
362
361
  const columnInfo = this.#getColumnInfo();
363
362
  const uniqueKey = this.#getUniqueKey();
@@ -424,7 +423,6 @@ class aiContainer extends HTMLElement
424
423
  }
425
424
  };
426
425
 
427
-
428
426
  #init = (info) => {
429
427
 
430
428
  //this.#elChat = this.shadowRoot.querySelector("nx-ai-chat");
@@ -54426,23 +54426,22 @@ class aiContainer extends HTMLElement
54426
54426
  return false; // 지원하지 않는 조건 타입
54427
54427
  }
54428
54428
 
54429
- #filter = async (filter) => {
54430
- console.log("===============================");
54431
- console.log(filter);
54432
-
54433
- const result1 = this.#filterJsonArray(this.#getData(), filter);
54434
- console.log(result1);
54435
- };
54436
54429
 
54437
54430
  #q1 = async () => {
54438
54431
  const filter = await this.#generateQdrantFilter();
54439
- return await this.#filter(filter);
54432
+ const searchResults = await this.#filterJsonArray(this.#getData(), filter);
54433
+
54434
+ await this.#answer(searchResults);
54440
54435
  };
54441
54436
 
54442
54437
  #q2 = async () => {
54443
54438
  const filter = await this.#generateQdrantFilter();
54444
54439
  const searchResults = await this.#searchWithQdrantFilter(filter);
54445
54440
 
54441
+ await this.#answer(searchResults);
54442
+ };
54443
+
54444
+ #answer = async (searchResults) => {
54446
54445
  const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
54447
54446
  const columnInfo = this.#getColumnInfo();
54448
54447
  const uniqueKey = this.#getUniqueKey();
@@ -54489,7 +54488,6 @@ class aiContainer extends HTMLElement
54489
54488
  }
54490
54489
  };
54491
54490
 
54492
-
54493
54491
  #init = (info) => {
54494
54492
 
54495
54493
  //this.#elChat = this.shadowRoot.querySelector("nx-ai-chat");
@@ -54424,23 +54424,22 @@ class aiContainer extends HTMLElement
54424
54424
  return false; // 지원하지 않는 조건 타입
54425
54425
  }
54426
54426
 
54427
- #filter = async (filter) => {
54428
- console.log("===============================");
54429
- console.log(filter);
54430
-
54431
- const result1 = this.#filterJsonArray(this.#getData(), filter);
54432
- console.log(result1);
54433
- };
54434
54427
 
54435
54428
  #q1 = async () => {
54436
54429
  const filter = await this.#generateQdrantFilter();
54437
- return await this.#filter(filter);
54430
+ const searchResults = await this.#filterJsonArray(this.#getData(), filter);
54431
+
54432
+ await this.#answer(searchResults);
54438
54433
  };
54439
54434
 
54440
54435
  #q2 = async () => {
54441
54436
  const filter = await this.#generateQdrantFilter();
54442
54437
  const searchResults = await this.#searchWithQdrantFilter(filter);
54443
54438
 
54439
+ await this.#answer(searchResults);
54440
+ };
54441
+
54442
+ #answer = async (searchResults) => {
54444
54443
  const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
54445
54444
  const columnInfo = this.#getColumnInfo();
54446
54445
  const uniqueKey = this.#getUniqueKey();
@@ -54487,7 +54486,6 @@ class aiContainer extends HTMLElement
54487
54486
  }
54488
54487
  };
54489
54488
 
54490
-
54491
54489
  #init = (info) => {
54492
54490
 
54493
54491
  //this.#elChat = this.shadowRoot.querySelector("nx-ai-chat");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.531.0",
4
+ "version": "6.532.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -341,23 +341,22 @@ class aiContainer extends HTMLElement
341
341
  return false; // 지원하지 않는 조건 타입
342
342
  }
343
343
 
344
- #filter = async (filter) => {
345
- console.log("===============================");
346
- console.log(filter);
347
-
348
- const result1 = this.#filterJsonArray(this.#getData(), filter);
349
- console.log(result1);
350
- };
351
344
 
352
345
  #q1 = async () => {
353
346
  const filter = await this.#generateQdrantFilter();
354
- return await this.#filter(filter);
347
+ const searchResults = await this.#filterJsonArray(this.#getData(), filter);
348
+
349
+ await this.#answer(searchResults);
355
350
  };
356
351
 
357
352
  #q2 = async () => {
358
353
  const filter = await this.#generateQdrantFilter();
359
354
  const searchResults = await this.#searchWithQdrantFilter(filter);
360
355
 
356
+ await this.#answer(searchResults);
357
+ };
358
+
359
+ #answer = async (searchResults) => {
361
360
  const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
362
361
  const columnInfo = this.#getColumnInfo();
363
362
  const uniqueKey = this.#getUniqueKey();
@@ -424,7 +423,6 @@ class aiContainer extends HTMLElement
424
423
  }
425
424
  };
426
425
 
427
-
428
426
  #init = (info) => {
429
427
 
430
428
  //this.#elChat = this.shadowRoot.querySelector("nx-ai-chat");