lexgui 8.3.0 → 8.3.2
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/build/core/Namespace.js +34 -34
- package/build/core/Namespace.js.map +1 -1
- package/build/extensions/CodeEditor.d.ts +521 -466
- package/build/extensions/CodeEditor.js +4895 -4218
- package/build/extensions/CodeEditor.js.map +1 -1
- package/build/extensions/Timeline.js.map +1 -1
- package/build/extensions/VideoEditor.js +1 -2
- package/build/extensions/VideoEditor.js.map +1 -1
- package/build/lexgui.all.js +28972 -28262
- package/build/lexgui.all.js.map +1 -1
- package/build/lexgui.all.min.js +1 -1
- package/build/lexgui.all.module.js +28897 -28187
- package/build/lexgui.all.module.js.map +1 -1
- package/build/lexgui.all.module.min.js +1 -1
- package/build/lexgui.css +7598 -7541
- package/build/lexgui.js +19071 -18360
- package/build/lexgui.js.map +1 -1
- package/build/lexgui.min.css +1 -1
- package/build/lexgui.min.js +1 -1
- package/build/lexgui.module.js +19010 -18299
- package/build/lexgui.module.js.map +1 -1
- package/build/lexgui.module.min.js +1 -1
- package/changelog.md +28 -1
- package/demo.js +5 -2
- package/examples/code-editor.html +9 -0
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -2,9 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
## dev
|
|
4
4
|
|
|
5
|
-
## 8.3.
|
|
5
|
+
## 8.3.2 (master)
|
|
6
|
+
|
|
7
|
+
Added interest delay `options.delay` to Tooltip.
|
|
8
|
+
Fixed bug not removing tooltips when trigger is destroyed.
|
|
9
|
+
Added Tooltip docs.
|
|
10
|
+
Fixed some crashing doc pages.
|
|
6
11
|
|
|
7
12
|
CodeEditor:
|
|
13
|
+
- Added symbol hover info and inline color manipulation through LX.ColorInput.
|
|
14
|
+
- Support for `options.onHoverSymbol` to customize popup symbol data.
|
|
15
|
+
- Fixed issues normalizing imported text.
|
|
16
|
+
- Added scope braces detection.
|
|
17
|
+
- Suggestions icon, iconClass, sortText and filterText.
|
|
18
|
+
- Added missing GLSL highlight css.
|
|
19
|
+
|
|
20
|
+
## 8.3.1
|
|
21
|
+
|
|
22
|
+
Fixed `LX.toKebabCase`.
|
|
23
|
+
Added `LX.toSnakeCase(str)` util.
|
|
24
|
+
|
|
25
|
+
CodeEditor:
|
|
26
|
+
- Improved custom suggestions format (now allows for `insertText` too).
|
|
27
|
+
- Supported Multiline TAB indent/dedent.
|
|
28
|
+
- `setText` now has language detection option.
|
|
29
|
+
- Extra New line and autoindent for {}, [] and () pair keys.
|
|
30
|
+
- Clickable links in comments.
|
|
31
|
+
- Fixed click autocomplete suggestion.
|
|
32
|
+
|
|
33
|
+
## 8.3.0
|
|
34
|
+
|
|
8
35
|
Added `Tabs.setIcon(name, icon)`.
|
|
9
36
|
Added DropdownMenu item option `useKbdSpecialKeys` (true).
|
|
10
37
|
Added `LX.requestFileAsync` util.
|
package/demo.js
CHANGED
|
@@ -100,7 +100,7 @@ LX._registerIconsAndColors( "./" );
|
|
|
100
100
|
<a href="docs?p=changelog" class="flex flex-row gap-1 items-center text-sm p-1 px-4 rounded-full text-secondary-foreground decoration-none hover:bg-secondary cursor-pointer"><span class="flex bg-info w-2 h-2 rounded-full"></span>
|
|
101
101
|
New Components: Avatar, Spinner, Pagination and more${ LX.makeIcon( "ArrowRight", { svgClass: "sm" } ).innerHTML }</a>
|
|
102
102
|
<p class="fg text-foreground font-medium tracking-tight leading-none text-center text-balance sm:text-5xl text-4xl">Build your Application Interface</p>
|
|
103
|
-
<p class="text-secondary-foreground font-light text-xl xs:text-lg text-center text-balance leading-normal max-w-3xl">A modern-style UI kit, inspired by shadcn
|
|
103
|
+
<p class="text-secondary-foreground font-light text-xl xs:text-lg text-center text-balance leading-normal max-w-3xl">A modern-style UI kit, inspired by shadcn. Create dynamic sites using HTML, JavaScript, and Tailwind CSS. Fully Open Source.</p>
|
|
104
104
|
`, area );
|
|
105
105
|
|
|
106
106
|
const headerButtons = LX.makeContainer( [ "auto", "auto" ], "flex flex-row mt-2", ``, header );
|
|
@@ -736,11 +736,14 @@ LX._registerIconsAndColors( "./" );
|
|
|
736
736
|
// fileExplorer: false
|
|
737
737
|
});
|
|
738
738
|
|
|
739
|
-
editor.setText(
|
|
739
|
+
editor.setText(`// Sample from https://jxarco.github.io/lexgui.js/
|
|
740
|
+
interface Vec2 {
|
|
740
741
|
x: number;
|
|
741
742
|
y: number;
|
|
742
743
|
}
|
|
743
744
|
|
|
745
|
+
const hexColor = "#ff4532";
|
|
746
|
+
|
|
744
747
|
type Callback<T> = (value: T) => void;
|
|
745
748
|
|
|
746
749
|
class Timer {
|
|
@@ -68,6 +68,15 @@
|
|
|
68
68
|
// disableEdition: true,
|
|
69
69
|
// skipInfo: true,
|
|
70
70
|
fileExplorer: fileExplorer,
|
|
71
|
+
customSuggestions: [
|
|
72
|
+
{
|
|
73
|
+
label: 'hello (nice)',
|
|
74
|
+
detail: 'a cool text desc',
|
|
75
|
+
insertText: `hello_func(){
|
|
76
|
+
return "hello";
|
|
77
|
+
}`
|
|
78
|
+
}
|
|
79
|
+
],
|
|
71
80
|
explorerName: "EXPLORER",
|
|
72
81
|
highlight: 'TypeScript',
|
|
73
82
|
// statusShowFontSizeZoom: false,
|