ide-assi 0.672.0 → 0.673.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/bundle.cjs.js
CHANGED
|
@@ -203858,7 +203858,7 @@ console.log(el, href, title);
|
|
|
203858
203858
|
throw new Error(o);
|
|
203859
203859
|
} */
|
|
203860
203860
|
|
|
203861
|
-
return o
|
|
203861
|
+
return o;
|
|
203862
203862
|
|
|
203863
203863
|
/**
|
|
203864
203864
|
const o = await invoke('/prompts/user/generateWhereCause.txt', {
|
|
@@ -237605,13 +237605,17 @@ class aiNatualInput extends HTMLElement
|
|
|
237605
237605
|
this.#target.disabled = true;
|
|
237606
237606
|
ninegrid.loading.show();
|
|
237607
237607
|
|
|
237608
|
-
let params = {};
|
|
237609
237608
|
if (this.#target.value) {
|
|
237610
|
-
|
|
237609
|
+
const res = await IdeAi.generateWhereCause(this.#xmlPath, this.#queryId, this.#target.value, this.#apiKey);
|
|
237610
|
+
if (res.result === true) {
|
|
237611
|
+
this.#selectFunc.call(this, { "_whereClause": res.condition });
|
|
237612
|
+
} else {
|
|
237613
|
+
ninegrid.alert(res.condition);
|
|
237614
|
+
}
|
|
237615
|
+
} else {
|
|
237616
|
+
this.#selectFunc.call(this, {});
|
|
237611
237617
|
}
|
|
237612
237618
|
|
|
237613
|
-
this.#selectFunc.call(this, params);
|
|
237614
|
-
|
|
237615
237619
|
this.#target.disabled = false;
|
|
237616
237620
|
}
|
|
237617
237621
|
};
|
package/dist/bundle.esm.js
CHANGED
|
@@ -203854,7 +203854,7 @@ console.log(el, href, title);
|
|
|
203854
203854
|
throw new Error(o);
|
|
203855
203855
|
} */
|
|
203856
203856
|
|
|
203857
|
-
return o
|
|
203857
|
+
return o;
|
|
203858
203858
|
|
|
203859
203859
|
/**
|
|
203860
203860
|
const o = await invoke('/prompts/user/generateWhereCause.txt', {
|
|
@@ -237601,13 +237601,17 @@ class aiNatualInput extends HTMLElement
|
|
|
237601
237601
|
this.#target.disabled = true;
|
|
237602
237602
|
ninegrid.loading.show();
|
|
237603
237603
|
|
|
237604
|
-
let params = {};
|
|
237605
237604
|
if (this.#target.value) {
|
|
237606
|
-
|
|
237605
|
+
const res = await IdeAi.generateWhereCause(this.#xmlPath, this.#queryId, this.#target.value, this.#apiKey);
|
|
237606
|
+
if (res.result === true) {
|
|
237607
|
+
this.#selectFunc.call(this, { "_whereClause": res.condition });
|
|
237608
|
+
} else {
|
|
237609
|
+
ninegrid.alert(res.condition);
|
|
237610
|
+
}
|
|
237611
|
+
} else {
|
|
237612
|
+
this.#selectFunc.call(this, {});
|
|
237607
237613
|
}
|
|
237608
237614
|
|
|
237609
|
-
this.#selectFunc.call(this, params);
|
|
237610
|
-
|
|
237611
237615
|
this.#target.disabled = false;
|
|
237612
237616
|
}
|
|
237613
237617
|
};
|
|
@@ -32,13 +32,17 @@ class aiNatualInput extends HTMLElement
|
|
|
32
32
|
this.#target.disabled = true;
|
|
33
33
|
ninegrid.loading.show();
|
|
34
34
|
|
|
35
|
-
let params = {};
|
|
36
35
|
if (this.#target.value) {
|
|
37
|
-
|
|
36
|
+
const res = await IdeAi.generateWhereCause(this.#xmlPath, this.#queryId, this.#target.value, this.#apiKey);
|
|
37
|
+
if (res.result === true) {
|
|
38
|
+
this.#selectFunc.call(this, { "_whereClause": res.condition });
|
|
39
|
+
} else {
|
|
40
|
+
ninegrid.alert(res.condition);
|
|
41
|
+
}
|
|
42
|
+
} else {
|
|
43
|
+
this.#selectFunc.call(this, {});
|
|
38
44
|
}
|
|
39
45
|
|
|
40
|
-
this.#selectFunc.call(this, params);
|
|
41
|
-
|
|
42
46
|
this.#target.disabled = false;
|
|
43
47
|
}
|
|
44
48
|
};
|
package/dist/components/ideAi.js
CHANGED
package/package.json
CHANGED
|
@@ -32,13 +32,17 @@ class aiNatualInput extends HTMLElement
|
|
|
32
32
|
this.#target.disabled = true;
|
|
33
33
|
ninegrid.loading.show();
|
|
34
34
|
|
|
35
|
-
let params = {};
|
|
36
35
|
if (this.#target.value) {
|
|
37
|
-
|
|
36
|
+
const res = await IdeAi.generateWhereCause(this.#xmlPath, this.#queryId, this.#target.value, this.#apiKey);
|
|
37
|
+
if (res.result === true) {
|
|
38
|
+
this.#selectFunc.call(this, { "_whereClause": res.condition });
|
|
39
|
+
} else {
|
|
40
|
+
ninegrid.alert(res.condition);
|
|
41
|
+
}
|
|
42
|
+
} else {
|
|
43
|
+
this.#selectFunc.call(this, {});
|
|
38
44
|
}
|
|
39
45
|
|
|
40
|
-
this.#selectFunc.call(this, params);
|
|
41
|
-
|
|
42
46
|
this.#target.disabled = false;
|
|
43
47
|
}
|
|
44
48
|
};
|
package/src/components/ideAi.js
CHANGED