ide-assi 0.651.0 → 0.652.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 +49 -1
- package/dist/bundle.esm.js +49 -1
- package/dist/components/aiNatualInput.js +47 -0
- package/dist/components/ideAi.js +1 -1
- package/dist/index.js +2 -0
- package/package.json +1 -1
- package/src/components/aiNatualInput.js +47 -0
- package/src/index.js +2 -0
package/dist/bundle.cjs.js
CHANGED
|
@@ -203261,7 +203261,7 @@ console.log(el, href, title);
|
|
|
203261
203261
|
//this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
203262
203262
|
progressMessageInstance.updateProgress('prepare2', 'completed');
|
|
203263
203263
|
|
|
203264
|
-
console.log(where);
|
|
203264
|
+
//console.log(where);
|
|
203265
203265
|
|
|
203266
203266
|
//const srcPath = this.#getSourcePath(where.menu.url);
|
|
203267
203267
|
|
|
@@ -237553,6 +237553,54 @@ class IdeDiff extends HTMLElement {
|
|
|
237553
237553
|
|
|
237554
237554
|
customElements.define("ide-diff", IdeDiff);
|
|
237555
237555
|
|
|
237556
|
+
class aiNatualInput extends HTMLElement
|
|
237557
|
+
{
|
|
237558
|
+
#selectFunc;
|
|
237559
|
+
|
|
237560
|
+
constructor() {
|
|
237561
|
+
super();
|
|
237562
|
+
}
|
|
237563
|
+
|
|
237564
|
+
connectedCallback() {
|
|
237565
|
+
this.#init();
|
|
237566
|
+
};
|
|
237567
|
+
|
|
237568
|
+
set selectFunc(v) { this.#selectFunc = v; };
|
|
237569
|
+
|
|
237570
|
+
#exprFunction = (s) => {
|
|
237571
|
+
|
|
237572
|
+
let args = '...args';
|
|
237573
|
+
let body = 'return ' + s + ';';
|
|
237574
|
+
|
|
237575
|
+
//console.log(s);
|
|
237576
|
+
|
|
237577
|
+
return new Function(args, body);
|
|
237578
|
+
//return new Function('data', 'currow', 'return ' + s + ';');
|
|
237579
|
+
};
|
|
237580
|
+
|
|
237581
|
+
#keyDownHandler = e => {
|
|
237582
|
+
console.log(e);
|
|
237583
|
+
|
|
237584
|
+
if (e.key === 'Enter' && !e.isComposing && this.#selectFunc) {
|
|
237585
|
+
//this.#exprFunction(this.#selectFunc.call(this, {"aaa": "14"}));
|
|
237586
|
+
console.log(this.#selectFunc);
|
|
237587
|
+
this.#selectFunc.call(this, {"aaa": "14"});
|
|
237588
|
+
}
|
|
237589
|
+
};
|
|
237590
|
+
|
|
237591
|
+
#init = () => {
|
|
237592
|
+
const placeholder = this.getAttribute("placeholder") || "자연어 검색어를 입력하세요 (ex: 작성자가 홍길동인 데이타를 찾아줘)";
|
|
237593
|
+
|
|
237594
|
+
this.innerHTML = `
|
|
237595
|
+
<input type="text" placeholder="${placeholder}"/>
|
|
237596
|
+
`;
|
|
237597
|
+
|
|
237598
|
+
this.querySelector("input").addEventListener('keydown', this.#keyDownHandler);
|
|
237599
|
+
}
|
|
237600
|
+
}
|
|
237601
|
+
|
|
237602
|
+
customElements.define("ai-natual-input", aiNatualInput);
|
|
237603
|
+
|
|
237556
237604
|
//import "./components/ideAssi.js";
|
|
237557
237605
|
|
|
237558
237606
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -203257,7 +203257,7 @@ console.log(el, href, title);
|
|
|
203257
203257
|
//this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
203258
203258
|
progressMessageInstance.updateProgress('prepare2', 'completed');
|
|
203259
203259
|
|
|
203260
|
-
console.log(where);
|
|
203260
|
+
//console.log(where);
|
|
203261
203261
|
|
|
203262
203262
|
//const srcPath = this.#getSourcePath(where.menu.url);
|
|
203263
203263
|
|
|
@@ -237549,6 +237549,54 @@ class IdeDiff extends HTMLElement {
|
|
|
237549
237549
|
|
|
237550
237550
|
customElements.define("ide-diff", IdeDiff);
|
|
237551
237551
|
|
|
237552
|
+
class aiNatualInput extends HTMLElement
|
|
237553
|
+
{
|
|
237554
|
+
#selectFunc;
|
|
237555
|
+
|
|
237556
|
+
constructor() {
|
|
237557
|
+
super();
|
|
237558
|
+
}
|
|
237559
|
+
|
|
237560
|
+
connectedCallback() {
|
|
237561
|
+
this.#init();
|
|
237562
|
+
};
|
|
237563
|
+
|
|
237564
|
+
set selectFunc(v) { this.#selectFunc = v; };
|
|
237565
|
+
|
|
237566
|
+
#exprFunction = (s) => {
|
|
237567
|
+
|
|
237568
|
+
let args = '...args';
|
|
237569
|
+
let body = 'return ' + s + ';';
|
|
237570
|
+
|
|
237571
|
+
//console.log(s);
|
|
237572
|
+
|
|
237573
|
+
return new Function(args, body);
|
|
237574
|
+
//return new Function('data', 'currow', 'return ' + s + ';');
|
|
237575
|
+
};
|
|
237576
|
+
|
|
237577
|
+
#keyDownHandler = e => {
|
|
237578
|
+
console.log(e);
|
|
237579
|
+
|
|
237580
|
+
if (e.key === 'Enter' && !e.isComposing && this.#selectFunc) {
|
|
237581
|
+
//this.#exprFunction(this.#selectFunc.call(this, {"aaa": "14"}));
|
|
237582
|
+
console.log(this.#selectFunc);
|
|
237583
|
+
this.#selectFunc.call(this, {"aaa": "14"});
|
|
237584
|
+
}
|
|
237585
|
+
};
|
|
237586
|
+
|
|
237587
|
+
#init = () => {
|
|
237588
|
+
const placeholder = this.getAttribute("placeholder") || "자연어 검색어를 입력하세요 (ex: 작성자가 홍길동인 데이타를 찾아줘)";
|
|
237589
|
+
|
|
237590
|
+
this.innerHTML = `
|
|
237591
|
+
<input type="text" placeholder="${placeholder}"/>
|
|
237592
|
+
`;
|
|
237593
|
+
|
|
237594
|
+
this.querySelector("input").addEventListener('keydown', this.#keyDownHandler);
|
|
237595
|
+
}
|
|
237596
|
+
}
|
|
237597
|
+
|
|
237598
|
+
customElements.define("ai-natual-input", aiNatualInput);
|
|
237599
|
+
|
|
237552
237600
|
//import "./components/ideAssi.js";
|
|
237553
237601
|
|
|
237554
237602
|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
class aiNatualInput extends HTMLElement
|
|
2
|
+
{
|
|
3
|
+
#selectFunc;
|
|
4
|
+
|
|
5
|
+
constructor() {
|
|
6
|
+
super();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
connectedCallback() {
|
|
10
|
+
this.#init();
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
set selectFunc(v) { this.#selectFunc = v; };
|
|
14
|
+
|
|
15
|
+
#exprFunction = (s) => {
|
|
16
|
+
|
|
17
|
+
let args = '...args';
|
|
18
|
+
let body = 'return ' + s + ';';
|
|
19
|
+
|
|
20
|
+
//console.log(s);
|
|
21
|
+
|
|
22
|
+
return new Function(args, body);
|
|
23
|
+
//return new Function('data', 'currow', 'return ' + s + ';');
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
#keyDownHandler = e => {
|
|
27
|
+
console.log(e);
|
|
28
|
+
|
|
29
|
+
if (e.key === 'Enter' && !e.isComposing && this.#selectFunc) {
|
|
30
|
+
//this.#exprFunction(this.#selectFunc.call(this, {"aaa": "14"}));
|
|
31
|
+
console.log(this.#selectFunc);
|
|
32
|
+
this.#selectFunc.call(this, {"aaa": "14"});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
#init = () => {
|
|
37
|
+
const placeholder = this.getAttribute("placeholder") || "자연어 검색어를 입력하세요 (ex: 작성자가 홍길동인 데이타를 찾아줘)";
|
|
38
|
+
|
|
39
|
+
this.innerHTML = `
|
|
40
|
+
<input type="text" placeholder="${placeholder}"/>
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
this.querySelector("input").addEventListener('keydown', this.#keyDownHandler);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
customElements.define("ai-natual-input", aiNatualInput);
|
package/dist/components/ideAi.js
CHANGED
|
@@ -712,7 +712,7 @@ console.log(el, href, title);
|
|
|
712
712
|
//this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
713
713
|
progressMessageInstance.updateProgress('prepare2', 'completed');
|
|
714
714
|
|
|
715
|
-
console.log(where);
|
|
715
|
+
//console.log(where);
|
|
716
716
|
|
|
717
717
|
//const srcPath = this.#getSourcePath(where.menu.url);
|
|
718
718
|
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
class aiNatualInput extends HTMLElement
|
|
2
|
+
{
|
|
3
|
+
#selectFunc;
|
|
4
|
+
|
|
5
|
+
constructor() {
|
|
6
|
+
super();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
connectedCallback() {
|
|
10
|
+
this.#init();
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
set selectFunc(v) { this.#selectFunc = v; };
|
|
14
|
+
|
|
15
|
+
#exprFunction = (s) => {
|
|
16
|
+
|
|
17
|
+
let args = '...args';
|
|
18
|
+
let body = 'return ' + s + ';';
|
|
19
|
+
|
|
20
|
+
//console.log(s);
|
|
21
|
+
|
|
22
|
+
return new Function(args, body);
|
|
23
|
+
//return new Function('data', 'currow', 'return ' + s + ';');
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
#keyDownHandler = e => {
|
|
27
|
+
console.log(e);
|
|
28
|
+
|
|
29
|
+
if (e.key === 'Enter' && !e.isComposing && this.#selectFunc) {
|
|
30
|
+
//this.#exprFunction(this.#selectFunc.call(this, {"aaa": "14"}));
|
|
31
|
+
console.log(this.#selectFunc);
|
|
32
|
+
this.#selectFunc.call(this, {"aaa": "14"});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
#init = () => {
|
|
37
|
+
const placeholder = this.getAttribute("placeholder") || "자연어 검색어를 입력하세요 (ex: 작성자가 홍길동인 데이타를 찾아줘)";
|
|
38
|
+
|
|
39
|
+
this.innerHTML = `
|
|
40
|
+
<input type="text" placeholder="${placeholder}"/>
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
this.querySelector("input").addEventListener('keydown', this.#keyDownHandler);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
customElements.define("ai-natual-input", aiNatualInput);
|
package/src/index.js
CHANGED