ninegrid2 6.494.0 → 6.496.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/ai/aiContainer.js +7 -46
- package/dist/bundle.cjs.js +7 -44
- package/dist/bundle.esm.js +7 -44
- package/package.json +1 -1
- package/src/ai/aiContainer.js +7 -46
package/dist/ai/aiContainer.js
CHANGED
|
@@ -31,48 +31,15 @@ class aiContainer extends HTMLElement
|
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
<div class="menu">
|
|
34
|
-
<div class="collapse-icon">
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<div class="menu-icon menu-
|
|
38
|
-
|
|
39
|
-
<path
|
|
40
|
-
d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5z"/>
|
|
41
|
-
</svg>
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<div class="menu-icon menu-general active">
|
|
45
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
46
|
-
<path
|
|
47
|
-
d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"/>
|
|
48
|
-
</svg>
|
|
49
|
-
</div>
|
|
50
|
-
|
|
51
|
-
<div class="menu-icon menu-db">
|
|
52
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
53
|
-
<path
|
|
54
|
-
d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"/>
|
|
55
|
-
</svg>
|
|
56
|
-
</div>
|
|
57
|
-
|
|
58
|
-
<div class="menu-icon menu-setting">
|
|
59
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
60
|
-
<path
|
|
61
|
-
d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/>
|
|
62
|
-
</svg>
|
|
63
|
-
</div>
|
|
34
|
+
<div class="collapse-icon"></div>
|
|
35
|
+
<div class="menu-icon menu-filter"></div>
|
|
36
|
+
<div class="menu-icon menu-general active"></div>
|
|
37
|
+
<div class="menu-icon menu-db"></div>
|
|
38
|
+
<div class="menu-icon menu-setting"></div>
|
|
64
39
|
</div>
|
|
65
40
|
</div>
|
|
66
41
|
|
|
67
|
-
<div class="expand-icon">
|
|
68
|
-
<svg width="32" height="32" fill="green" xmlns="http://www.w3.org/2000/svg" strokeWidth="1.5"
|
|
69
|
-
class="h-6 w-6"
|
|
70
|
-
viewBox="-0.17090198558635983 0.482230148717937 41.14235318283891 40.0339509076386">
|
|
71
|
-
<text x="-9999" y="-9999">ChatGPT</text>
|
|
72
|
-
<path
|
|
73
|
-
d="M37.532 16.87a9.963 9.963 0 0 0-.856-8.184 10.078 10.078 0 0 0-10.855-4.835A9.964 9.964 0 0 0 18.306.5a10.079 10.079 0 0 0-9.614 6.977 9.967 9.967 0 0 0-6.664 4.834 10.08 10.08 0 0 0 1.24 11.817 9.965 9.965 0 0 0 .856 8.185 10.079 10.079 0 0 0 10.855 4.835 9.965 9.965 0 0 0 7.516 3.35 10.078 10.078 0 0 0 9.617-6.981 9.967 9.967 0 0 0 6.663-4.834 10.079 10.079 0 0 0-1.243-11.813zM22.498 37.886a7.474 7.474 0 0 1-4.799-1.735c.061-.033.168-.091.237-.134l7.964-4.6a1.294 1.294 0 0 0 .655-1.134V19.054l3.366 1.944a.12.12 0 0 1 .066.092v9.299a7.505 7.505 0 0 1-7.49 7.496zM6.392 31.006a7.471 7.471 0 0 1-.894-5.023c.06.036.162.099.237.141l7.964 4.6a1.297 1.297 0 0 0 1.308 0l9.724-5.614v3.888a.12.12 0 0 1-.048.103l-8.051 4.649a7.504 7.504 0 0 1-10.24-2.744zM4.297 13.62A7.469 7.469 0 0 1 8.2 10.333c0 .068-.004.19-.004.274v9.201a1.294 1.294 0 0 0 .654 1.132l9.723 5.614-3.366 1.944a.12.12 0 0 1-.114.01L7.04 23.856a7.504 7.504 0 0 1-2.743-10.237zm27.658 6.437l-9.724-5.615 3.367-1.943a.121.121 0 0 1 .113-.01l8.052 4.648a7.498 7.498 0 0 1-1.158 13.528v-9.476a1.293 1.293 0 0 0-.65-1.132zm3.35-5.043c-.059-.037-.162-.099-.236-.141l-7.965-4.6a1.298 1.298 0 0 0-1.308 0l-9.723 5.614v-3.888a.12.12 0 0 1 .048-.103l8.05-4.645a7.497 7.497 0 0 1 11.135 7.763zm-21.063 6.929l-3.367-1.944a.12.12 0 0 1-.065-.092v-9.299a7.497 7.497 0 0 1 12.293-5.756 6.94 6.94 0 0 0-.236.134l-7.965 4.6a1.294 1.294 0 0 0-.654 1.132l-.006 11.225zm1.829-3.943l4.33-2.501 4.332 2.5v5l-4.331 2.5-4.331-2.5V18z"/>
|
|
74
|
-
</svg>
|
|
75
|
-
</div>
|
|
42
|
+
<div class="expand-icon"></div>
|
|
76
43
|
`;
|
|
77
44
|
|
|
78
45
|
requestAnimationFrame(() => {
|
|
@@ -83,13 +50,7 @@ class aiContainer extends HTMLElement
|
|
|
83
50
|
#init = (info) => {
|
|
84
51
|
|
|
85
52
|
const toggleCollapseHandler = () => {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
containerRef.current.classList.toggle("collapse");
|
|
89
|
-
|
|
90
|
-
if (!containerRef.current.classList.contains("collapse")) {
|
|
91
|
-
// this.#resetAsk();
|
|
92
|
-
}
|
|
53
|
+
this.classList.toggle("collapse");
|
|
93
54
|
};
|
|
94
55
|
|
|
95
56
|
this.shadowRoot.querySelector(".expand-icon").addEventListener("click", toggleCollapseHandler);
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -27885,48 +27885,15 @@ class aiContainer extends HTMLElement
|
|
|
27885
27885
|
</div>
|
|
27886
27886
|
</div>
|
|
27887
27887
|
<div class="menu">
|
|
27888
|
-
<div class="collapse-icon">
|
|
27889
|
-
|
|
27890
|
-
|
|
27891
|
-
<div class="menu-icon menu-
|
|
27892
|
-
|
|
27893
|
-
<path
|
|
27894
|
-
d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5z"/>
|
|
27895
|
-
</svg>
|
|
27896
|
-
</div>
|
|
27897
|
-
|
|
27898
|
-
<div class="menu-icon menu-general active">
|
|
27899
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
27900
|
-
<path
|
|
27901
|
-
d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"/>
|
|
27902
|
-
</svg>
|
|
27903
|
-
</div>
|
|
27904
|
-
|
|
27905
|
-
<div class="menu-icon menu-db">
|
|
27906
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
27907
|
-
<path
|
|
27908
|
-
d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"/>
|
|
27909
|
-
</svg>
|
|
27910
|
-
</div>
|
|
27911
|
-
|
|
27912
|
-
<div class="menu-icon menu-setting">
|
|
27913
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
27914
|
-
<path
|
|
27915
|
-
d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/>
|
|
27916
|
-
</svg>
|
|
27917
|
-
</div>
|
|
27888
|
+
<div class="collapse-icon"></div>
|
|
27889
|
+
<div class="menu-icon menu-filter"></div>
|
|
27890
|
+
<div class="menu-icon menu-general active"></div>
|
|
27891
|
+
<div class="menu-icon menu-db"></div>
|
|
27892
|
+
<div class="menu-icon menu-setting"></div>
|
|
27918
27893
|
</div>
|
|
27919
27894
|
</div>
|
|
27920
27895
|
|
|
27921
|
-
<div class="expand-icon">
|
|
27922
|
-
<svg width="32" height="32" fill="green" xmlns="http://www.w3.org/2000/svg" strokeWidth="1.5"
|
|
27923
|
-
class="h-6 w-6"
|
|
27924
|
-
viewBox="-0.17090198558635983 0.482230148717937 41.14235318283891 40.0339509076386">
|
|
27925
|
-
<text x="-9999" y="-9999">ChatGPT</text>
|
|
27926
|
-
<path
|
|
27927
|
-
d="M37.532 16.87a9.963 9.963 0 0 0-.856-8.184 10.078 10.078 0 0 0-10.855-4.835A9.964 9.964 0 0 0 18.306.5a10.079 10.079 0 0 0-9.614 6.977 9.967 9.967 0 0 0-6.664 4.834 10.08 10.08 0 0 0 1.24 11.817 9.965 9.965 0 0 0 .856 8.185 10.079 10.079 0 0 0 10.855 4.835 9.965 9.965 0 0 0 7.516 3.35 10.078 10.078 0 0 0 9.617-6.981 9.967 9.967 0 0 0 6.663-4.834 10.079 10.079 0 0 0-1.243-11.813zM22.498 37.886a7.474 7.474 0 0 1-4.799-1.735c.061-.033.168-.091.237-.134l7.964-4.6a1.294 1.294 0 0 0 .655-1.134V19.054l3.366 1.944a.12.12 0 0 1 .066.092v9.299a7.505 7.505 0 0 1-7.49 7.496zM6.392 31.006a7.471 7.471 0 0 1-.894-5.023c.06.036.162.099.237.141l7.964 4.6a1.297 1.297 0 0 0 1.308 0l9.724-5.614v3.888a.12.12 0 0 1-.048.103l-8.051 4.649a7.504 7.504 0 0 1-10.24-2.744zM4.297 13.62A7.469 7.469 0 0 1 8.2 10.333c0 .068-.004.19-.004.274v9.201a1.294 1.294 0 0 0 .654 1.132l9.723 5.614-3.366 1.944a.12.12 0 0 1-.114.01L7.04 23.856a7.504 7.504 0 0 1-2.743-10.237zm27.658 6.437l-9.724-5.615 3.367-1.943a.121.121 0 0 1 .113-.01l8.052 4.648a7.498 7.498 0 0 1-1.158 13.528v-9.476a1.293 1.293 0 0 0-.65-1.132zm3.35-5.043c-.059-.037-.162-.099-.236-.141l-7.965-4.6a1.298 1.298 0 0 0-1.308 0l-9.723 5.614v-3.888a.12.12 0 0 1 .048-.103l8.05-4.645a7.497 7.497 0 0 1 11.135 7.763zm-21.063 6.929l-3.367-1.944a.12.12 0 0 1-.065-.092v-9.299a7.497 7.497 0 0 1 12.293-5.756 6.94 6.94 0 0 0-.236.134l-7.965 4.6a1.294 1.294 0 0 0-.654 1.132l-.006 11.225zm1.829-3.943l4.33-2.501 4.332 2.5v5l-4.331 2.5-4.331-2.5V18z"/>
|
|
27928
|
-
</svg>
|
|
27929
|
-
</div>
|
|
27896
|
+
<div class="expand-icon"></div>
|
|
27930
27897
|
`;
|
|
27931
27898
|
|
|
27932
27899
|
requestAnimationFrame(() => {
|
|
@@ -27937,11 +27904,7 @@ class aiContainer extends HTMLElement
|
|
|
27937
27904
|
#init = (info) => {
|
|
27938
27905
|
|
|
27939
27906
|
const toggleCollapseHandler = () => {
|
|
27940
|
-
|
|
27941
|
-
|
|
27942
|
-
containerRef.current.classList.toggle("collapse");
|
|
27943
|
-
|
|
27944
|
-
if (!containerRef.current.classList.contains("collapse")) ;
|
|
27907
|
+
this.classList.toggle("collapse");
|
|
27945
27908
|
};
|
|
27946
27909
|
|
|
27947
27910
|
this.shadowRoot.querySelector(".expand-icon").addEventListener("click", toggleCollapseHandler);
|
package/dist/bundle.esm.js
CHANGED
|
@@ -27883,48 +27883,15 @@ class aiContainer extends HTMLElement
|
|
|
27883
27883
|
</div>
|
|
27884
27884
|
</div>
|
|
27885
27885
|
<div class="menu">
|
|
27886
|
-
<div class="collapse-icon">
|
|
27887
|
-
|
|
27888
|
-
|
|
27889
|
-
<div class="menu-icon menu-
|
|
27890
|
-
|
|
27891
|
-
<path
|
|
27892
|
-
d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5z"/>
|
|
27893
|
-
</svg>
|
|
27894
|
-
</div>
|
|
27895
|
-
|
|
27896
|
-
<div class="menu-icon menu-general active">
|
|
27897
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
27898
|
-
<path
|
|
27899
|
-
d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"/>
|
|
27900
|
-
</svg>
|
|
27901
|
-
</div>
|
|
27902
|
-
|
|
27903
|
-
<div class="menu-icon menu-db">
|
|
27904
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
27905
|
-
<path
|
|
27906
|
-
d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"/>
|
|
27907
|
-
</svg>
|
|
27908
|
-
</div>
|
|
27909
|
-
|
|
27910
|
-
<div class="menu-icon menu-setting">
|
|
27911
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
27912
|
-
<path
|
|
27913
|
-
d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/>
|
|
27914
|
-
</svg>
|
|
27915
|
-
</div>
|
|
27886
|
+
<div class="collapse-icon"></div>
|
|
27887
|
+
<div class="menu-icon menu-filter"></div>
|
|
27888
|
+
<div class="menu-icon menu-general active"></div>
|
|
27889
|
+
<div class="menu-icon menu-db"></div>
|
|
27890
|
+
<div class="menu-icon menu-setting"></div>
|
|
27916
27891
|
</div>
|
|
27917
27892
|
</div>
|
|
27918
27893
|
|
|
27919
|
-
<div class="expand-icon">
|
|
27920
|
-
<svg width="32" height="32" fill="green" xmlns="http://www.w3.org/2000/svg" strokeWidth="1.5"
|
|
27921
|
-
class="h-6 w-6"
|
|
27922
|
-
viewBox="-0.17090198558635983 0.482230148717937 41.14235318283891 40.0339509076386">
|
|
27923
|
-
<text x="-9999" y="-9999">ChatGPT</text>
|
|
27924
|
-
<path
|
|
27925
|
-
d="M37.532 16.87a9.963 9.963 0 0 0-.856-8.184 10.078 10.078 0 0 0-10.855-4.835A9.964 9.964 0 0 0 18.306.5a10.079 10.079 0 0 0-9.614 6.977 9.967 9.967 0 0 0-6.664 4.834 10.08 10.08 0 0 0 1.24 11.817 9.965 9.965 0 0 0 .856 8.185 10.079 10.079 0 0 0 10.855 4.835 9.965 9.965 0 0 0 7.516 3.35 10.078 10.078 0 0 0 9.617-6.981 9.967 9.967 0 0 0 6.663-4.834 10.079 10.079 0 0 0-1.243-11.813zM22.498 37.886a7.474 7.474 0 0 1-4.799-1.735c.061-.033.168-.091.237-.134l7.964-4.6a1.294 1.294 0 0 0 .655-1.134V19.054l3.366 1.944a.12.12 0 0 1 .066.092v9.299a7.505 7.505 0 0 1-7.49 7.496zM6.392 31.006a7.471 7.471 0 0 1-.894-5.023c.06.036.162.099.237.141l7.964 4.6a1.297 1.297 0 0 0 1.308 0l9.724-5.614v3.888a.12.12 0 0 1-.048.103l-8.051 4.649a7.504 7.504 0 0 1-10.24-2.744zM4.297 13.62A7.469 7.469 0 0 1 8.2 10.333c0 .068-.004.19-.004.274v9.201a1.294 1.294 0 0 0 .654 1.132l9.723 5.614-3.366 1.944a.12.12 0 0 1-.114.01L7.04 23.856a7.504 7.504 0 0 1-2.743-10.237zm27.658 6.437l-9.724-5.615 3.367-1.943a.121.121 0 0 1 .113-.01l8.052 4.648a7.498 7.498 0 0 1-1.158 13.528v-9.476a1.293 1.293 0 0 0-.65-1.132zm3.35-5.043c-.059-.037-.162-.099-.236-.141l-7.965-4.6a1.298 1.298 0 0 0-1.308 0l-9.723 5.614v-3.888a.12.12 0 0 1 .048-.103l8.05-4.645a7.497 7.497 0 0 1 11.135 7.763zm-21.063 6.929l-3.367-1.944a.12.12 0 0 1-.065-.092v-9.299a7.497 7.497 0 0 1 12.293-5.756 6.94 6.94 0 0 0-.236.134l-7.965 4.6a1.294 1.294 0 0 0-.654 1.132l-.006 11.225zm1.829-3.943l4.33-2.501 4.332 2.5v5l-4.331 2.5-4.331-2.5V18z"/>
|
|
27926
|
-
</svg>
|
|
27927
|
-
</div>
|
|
27894
|
+
<div class="expand-icon"></div>
|
|
27928
27895
|
`;
|
|
27929
27896
|
|
|
27930
27897
|
requestAnimationFrame(() => {
|
|
@@ -27935,11 +27902,7 @@ class aiContainer extends HTMLElement
|
|
|
27935
27902
|
#init = (info) => {
|
|
27936
27903
|
|
|
27937
27904
|
const toggleCollapseHandler = () => {
|
|
27938
|
-
|
|
27939
|
-
|
|
27940
|
-
containerRef.current.classList.toggle("collapse");
|
|
27941
|
-
|
|
27942
|
-
if (!containerRef.current.classList.contains("collapse")) ;
|
|
27905
|
+
this.classList.toggle("collapse");
|
|
27943
27906
|
};
|
|
27944
27907
|
|
|
27945
27908
|
this.shadowRoot.querySelector(".expand-icon").addEventListener("click", toggleCollapseHandler);
|
package/package.json
CHANGED
package/src/ai/aiContainer.js
CHANGED
|
@@ -31,48 +31,15 @@ class aiContainer extends HTMLElement
|
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
<div class="menu">
|
|
34
|
-
<div class="collapse-icon">
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<div class="menu-icon menu-
|
|
38
|
-
|
|
39
|
-
<path
|
|
40
|
-
d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5z"/>
|
|
41
|
-
</svg>
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<div class="menu-icon menu-general active">
|
|
45
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
46
|
-
<path
|
|
47
|
-
d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"/>
|
|
48
|
-
</svg>
|
|
49
|
-
</div>
|
|
50
|
-
|
|
51
|
-
<div class="menu-icon menu-db">
|
|
52
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
53
|
-
<path
|
|
54
|
-
d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"/>
|
|
55
|
-
</svg>
|
|
56
|
-
</div>
|
|
57
|
-
|
|
58
|
-
<div class="menu-icon menu-setting">
|
|
59
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
60
|
-
<path
|
|
61
|
-
d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/>
|
|
62
|
-
</svg>
|
|
63
|
-
</div>
|
|
34
|
+
<div class="collapse-icon"></div>
|
|
35
|
+
<div class="menu-icon menu-filter"></div>
|
|
36
|
+
<div class="menu-icon menu-general active"></div>
|
|
37
|
+
<div class="menu-icon menu-db"></div>
|
|
38
|
+
<div class="menu-icon menu-setting"></div>
|
|
64
39
|
</div>
|
|
65
40
|
</div>
|
|
66
41
|
|
|
67
|
-
<div class="expand-icon">
|
|
68
|
-
<svg width="32" height="32" fill="green" xmlns="http://www.w3.org/2000/svg" strokeWidth="1.5"
|
|
69
|
-
class="h-6 w-6"
|
|
70
|
-
viewBox="-0.17090198558635983 0.482230148717937 41.14235318283891 40.0339509076386">
|
|
71
|
-
<text x="-9999" y="-9999">ChatGPT</text>
|
|
72
|
-
<path
|
|
73
|
-
d="M37.532 16.87a9.963 9.963 0 0 0-.856-8.184 10.078 10.078 0 0 0-10.855-4.835A9.964 9.964 0 0 0 18.306.5a10.079 10.079 0 0 0-9.614 6.977 9.967 9.967 0 0 0-6.664 4.834 10.08 10.08 0 0 0 1.24 11.817 9.965 9.965 0 0 0 .856 8.185 10.079 10.079 0 0 0 10.855 4.835 9.965 9.965 0 0 0 7.516 3.35 10.078 10.078 0 0 0 9.617-6.981 9.967 9.967 0 0 0 6.663-4.834 10.079 10.079 0 0 0-1.243-11.813zM22.498 37.886a7.474 7.474 0 0 1-4.799-1.735c.061-.033.168-.091.237-.134l7.964-4.6a1.294 1.294 0 0 0 .655-1.134V19.054l3.366 1.944a.12.12 0 0 1 .066.092v9.299a7.505 7.505 0 0 1-7.49 7.496zM6.392 31.006a7.471 7.471 0 0 1-.894-5.023c.06.036.162.099.237.141l7.964 4.6a1.297 1.297 0 0 0 1.308 0l9.724-5.614v3.888a.12.12 0 0 1-.048.103l-8.051 4.649a7.504 7.504 0 0 1-10.24-2.744zM4.297 13.62A7.469 7.469 0 0 1 8.2 10.333c0 .068-.004.19-.004.274v9.201a1.294 1.294 0 0 0 .654 1.132l9.723 5.614-3.366 1.944a.12.12 0 0 1-.114.01L7.04 23.856a7.504 7.504 0 0 1-2.743-10.237zm27.658 6.437l-9.724-5.615 3.367-1.943a.121.121 0 0 1 .113-.01l8.052 4.648a7.498 7.498 0 0 1-1.158 13.528v-9.476a1.293 1.293 0 0 0-.65-1.132zm3.35-5.043c-.059-.037-.162-.099-.236-.141l-7.965-4.6a1.298 1.298 0 0 0-1.308 0l-9.723 5.614v-3.888a.12.12 0 0 1 .048-.103l8.05-4.645a7.497 7.497 0 0 1 11.135 7.763zm-21.063 6.929l-3.367-1.944a.12.12 0 0 1-.065-.092v-9.299a7.497 7.497 0 0 1 12.293-5.756 6.94 6.94 0 0 0-.236.134l-7.965 4.6a1.294 1.294 0 0 0-.654 1.132l-.006 11.225zm1.829-3.943l4.33-2.501 4.332 2.5v5l-4.331 2.5-4.331-2.5V18z"/>
|
|
74
|
-
</svg>
|
|
75
|
-
</div>
|
|
42
|
+
<div class="expand-icon"></div>
|
|
76
43
|
`;
|
|
77
44
|
|
|
78
45
|
requestAnimationFrame(() => {
|
|
@@ -83,13 +50,7 @@ class aiContainer extends HTMLElement
|
|
|
83
50
|
#init = (info) => {
|
|
84
51
|
|
|
85
52
|
const toggleCollapseHandler = () => {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
containerRef.current.classList.toggle("collapse");
|
|
89
|
-
|
|
90
|
-
if (!containerRef.current.classList.contains("collapse")) {
|
|
91
|
-
// this.#resetAsk();
|
|
92
|
-
}
|
|
53
|
+
this.classList.toggle("collapse");
|
|
93
54
|
};
|
|
94
55
|
|
|
95
56
|
this.shadowRoot.querySelector(".expand-icon").addEventListener("click", toggleCollapseHandler);
|