ninegrid2 6.511.0 → 6.513.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.
@@ -98,6 +98,7 @@ class aiContainer extends HTMLElement
98
98
  return colInfo;
99
99
  };
100
100
 
101
+
101
102
  #generateQdrantFilter = async (userInput) => {
102
103
 
103
104
  const systemMessage = "You are a helpful assistant.";
@@ -169,16 +170,16 @@ filterString = "a" + filterString;
169
170
  //}
170
171
  }
171
172
 
172
- #q1 = () => {
173
- this.#generateQdrantFilter();
173
+ #q1 = async () => {
174
+ await this.#generateQdrantFilter();
174
175
  };
175
176
 
176
- #q2 = () => {
177
- this.#generateQdrantFilter();
177
+ #q2 = async () => {
178
+ await this.#generateQdrantFilter();
178
179
  };
179
180
 
180
- #q3 = () => {
181
- this.#generateQdrantFilter();
181
+ #q3 = async () => {
182
+ await this.#generateQdrantFilter();
182
183
  };
183
184
 
184
185
  #init = (info) => {
@@ -193,7 +194,7 @@ this.#generateQdrantFilter();
193
194
  this.shadowRoot.querySelectorAll(".menu-icon").forEach(el => el.addEventListener("click", this.#menuClickHandler));
194
195
  };
195
196
 
196
- #keydownHandler = (e) => {
197
+ #keydownHandler = async (e) => {
197
198
  if (e.key !== "Enter") return;
198
199
 
199
200
  if (this.#target.tagName === "NINE-GRID") {
@@ -222,13 +223,13 @@ this.#generateQdrantFilter();
222
223
  this.#createModel();
223
224
 
224
225
  if (this.shadowRoot.querySelector(".menu-filter").classList.contains("active")) {
225
- this.#q1();
226
+ await this.#q1();
226
227
  }
227
228
  else if (this.shadowRoot.querySelector(".menu-general").classList.contains("active")) {
228
- this.#q2();
229
+ await this.#q2();
229
230
  }
230
231
  else {
231
- this.#q3();
232
+ await this.#q3();
232
233
  }
233
234
  } catch (error) {
234
235
  console.error("Error generating Qdrant filter:", error);
@@ -27952,6 +27952,7 @@ class aiContainer extends HTMLElement
27952
27952
  return colInfo;
27953
27953
  };
27954
27954
 
27955
+
27955
27956
  #generateQdrantFilter = async (userInput) => {
27956
27957
 
27957
27958
  const systemMessage = "You are a helpful assistant.";
@@ -28023,16 +28024,16 @@ filterString = "a" + filterString;
28023
28024
  //}
28024
28025
  }
28025
28026
 
28026
- #q1 = () => {
28027
- this.#generateQdrantFilter();
28027
+ #q1 = async () => {
28028
+ await this.#generateQdrantFilter();
28028
28029
  };
28029
28030
 
28030
- #q2 = () => {
28031
- this.#generateQdrantFilter();
28031
+ #q2 = async () => {
28032
+ await this.#generateQdrantFilter();
28032
28033
  };
28033
28034
 
28034
- #q3 = () => {
28035
- this.#generateQdrantFilter();
28035
+ #q3 = async () => {
28036
+ await this.#generateQdrantFilter();
28036
28037
  };
28037
28038
 
28038
28039
  #init = (info) => {
@@ -28047,7 +28048,7 @@ this.#generateQdrantFilter();
28047
28048
  this.shadowRoot.querySelectorAll(".menu-icon").forEach(el => el.addEventListener("click", this.#menuClickHandler));
28048
28049
  };
28049
28050
 
28050
- #keydownHandler = (e) => {
28051
+ #keydownHandler = async (e) => {
28051
28052
  if (e.key !== "Enter") return;
28052
28053
 
28053
28054
  if (this.#target.tagName === "NINE-GRID") ;
@@ -28075,13 +28076,13 @@ this.#generateQdrantFilter();
28075
28076
  this.#createModel();
28076
28077
 
28077
28078
  if (this.shadowRoot.querySelector(".menu-filter").classList.contains("active")) {
28078
- this.#q1();
28079
+ await this.#q1();
28079
28080
  }
28080
28081
  else if (this.shadowRoot.querySelector(".menu-general").classList.contains("active")) {
28081
- this.#q2();
28082
+ await this.#q2();
28082
28083
  }
28083
28084
  else {
28084
- this.#q3();
28085
+ await this.#q3();
28085
28086
  }
28086
28087
  } catch (error) {
28087
28088
  console.error("Error generating Qdrant filter:", error);
@@ -27950,6 +27950,7 @@ class aiContainer extends HTMLElement
27950
27950
  return colInfo;
27951
27951
  };
27952
27952
 
27953
+
27953
27954
  #generateQdrantFilter = async (userInput) => {
27954
27955
 
27955
27956
  const systemMessage = "You are a helpful assistant.";
@@ -28021,16 +28022,16 @@ filterString = "a" + filterString;
28021
28022
  //}
28022
28023
  }
28023
28024
 
28024
- #q1 = () => {
28025
- this.#generateQdrantFilter();
28025
+ #q1 = async () => {
28026
+ await this.#generateQdrantFilter();
28026
28027
  };
28027
28028
 
28028
- #q2 = () => {
28029
- this.#generateQdrantFilter();
28029
+ #q2 = async () => {
28030
+ await this.#generateQdrantFilter();
28030
28031
  };
28031
28032
 
28032
- #q3 = () => {
28033
- this.#generateQdrantFilter();
28033
+ #q3 = async () => {
28034
+ await this.#generateQdrantFilter();
28034
28035
  };
28035
28036
 
28036
28037
  #init = (info) => {
@@ -28045,7 +28046,7 @@ this.#generateQdrantFilter();
28045
28046
  this.shadowRoot.querySelectorAll(".menu-icon").forEach(el => el.addEventListener("click", this.#menuClickHandler));
28046
28047
  };
28047
28048
 
28048
- #keydownHandler = (e) => {
28049
+ #keydownHandler = async (e) => {
28049
28050
  if (e.key !== "Enter") return;
28050
28051
 
28051
28052
  if (this.#target.tagName === "NINE-GRID") ;
@@ -28073,13 +28074,13 @@ this.#generateQdrantFilter();
28073
28074
  this.#createModel();
28074
28075
 
28075
28076
  if (this.shadowRoot.querySelector(".menu-filter").classList.contains("active")) {
28076
- this.#q1();
28077
+ await this.#q1();
28077
28078
  }
28078
28079
  else if (this.shadowRoot.querySelector(".menu-general").classList.contains("active")) {
28079
- this.#q2();
28080
+ await this.#q2();
28080
28081
  }
28081
28082
  else {
28082
- this.#q3();
28083
+ await this.#q3();
28083
28084
  }
28084
28085
  } catch (error) {
28085
28086
  console.error("Error generating Qdrant filter:", error);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.511.0",
4
+ "version": "6.513.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -98,6 +98,7 @@ class aiContainer extends HTMLElement
98
98
  return colInfo;
99
99
  };
100
100
 
101
+
101
102
  #generateQdrantFilter = async (userInput) => {
102
103
 
103
104
  const systemMessage = "You are a helpful assistant.";
@@ -169,16 +170,16 @@ filterString = "a" + filterString;
169
170
  //}
170
171
  }
171
172
 
172
- #q1 = () => {
173
- this.#generateQdrantFilter();
173
+ #q1 = async () => {
174
+ await this.#generateQdrantFilter();
174
175
  };
175
176
 
176
- #q2 = () => {
177
- this.#generateQdrantFilter();
177
+ #q2 = async () => {
178
+ await this.#generateQdrantFilter();
178
179
  };
179
180
 
180
- #q3 = () => {
181
- this.#generateQdrantFilter();
181
+ #q3 = async () => {
182
+ await this.#generateQdrantFilter();
182
183
  };
183
184
 
184
185
  #init = (info) => {
@@ -193,7 +194,7 @@ this.#generateQdrantFilter();
193
194
  this.shadowRoot.querySelectorAll(".menu-icon").forEach(el => el.addEventListener("click", this.#menuClickHandler));
194
195
  };
195
196
 
196
- #keydownHandler = (e) => {
197
+ #keydownHandler = async (e) => {
197
198
  if (e.key !== "Enter") return;
198
199
 
199
200
  if (this.#target.tagName === "NINE-GRID") {
@@ -222,13 +223,13 @@ this.#generateQdrantFilter();
222
223
  this.#createModel();
223
224
 
224
225
  if (this.shadowRoot.querySelector(".menu-filter").classList.contains("active")) {
225
- this.#q1();
226
+ await this.#q1();
226
227
  }
227
228
  else if (this.shadowRoot.querySelector(".menu-general").classList.contains("active")) {
228
- this.#q2();
229
+ await this.#q2();
229
230
  }
230
231
  else {
231
- this.#q3();
232
+ await this.#q3();
232
233
  }
233
234
  } catch (error) {
234
235
  console.error("Error generating Qdrant filter:", error);