lexgui 0.7.15 → 8.1.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/LICENSE +201 -21
- package/README.md +14 -5
- package/build/components/AlertDialog.d.ts +7 -0
- package/build/components/ArrayInput.d.ts +9 -0
- package/build/components/BaseComponent.d.ts +73 -0
- package/build/components/Button.d.ts +14 -0
- package/build/components/Calendar.d.ts +41 -0
- package/build/components/CalendarRange.d.ts +16 -0
- package/build/components/CanvasCurve.d.ts +10 -0
- package/build/components/CanvasDial.d.ts +11 -0
- package/build/components/CanvasMap2D.d.ts +61 -0
- package/build/components/Card.d.ts +8 -0
- package/build/components/Checkbox.d.ts +8 -0
- package/build/components/Color.d.ts +20 -0
- package/build/components/ColorInput.d.ts +13 -0
- package/build/components/ColorPicker.d.ts +29 -0
- package/build/components/ComboButtons.d.ts +8 -0
- package/build/components/ContextMenu.d.ts +16 -0
- package/build/components/Counter.d.ts +9 -0
- package/build/components/Curve.d.ts +10 -0
- package/build/components/DatePicker.d.ts +13 -0
- package/build/components/Dial.d.ts +10 -0
- package/build/components/Dialog.d.ts +20 -0
- package/build/components/DropdownMenu.d.ts +32 -0
- package/build/components/FileInput.d.ts +8 -0
- package/build/components/Footer.d.ts +14 -0
- package/build/components/Form.d.ts +8 -0
- package/build/components/Layers.d.ts +9 -0
- package/build/components/List.d.ts +9 -0
- package/build/components/Map2D.d.ts +12 -0
- package/build/components/Menubar.d.ts +59 -0
- package/build/components/NodeTree.d.ts +26 -0
- package/build/components/NumberInput.d.ts +9 -0
- package/build/components/OTPInput.d.ts +8 -0
- package/build/components/Pad.d.ts +8 -0
- package/build/components/Pagination.d.ts +26 -0
- package/build/components/PocketDialog.d.ts +11 -0
- package/build/components/Popover.d.ts +20 -0
- package/build/components/Progress.d.ts +8 -0
- package/build/components/RadioGroup.d.ts +8 -0
- package/build/components/RangeInput.d.ts +11 -0
- package/build/components/Rate.d.ts +8 -0
- package/build/components/Select.d.ts +10 -0
- package/build/components/Sheet.d.ts +10 -0
- package/build/components/Sidebar.d.ts +84 -0
- package/build/components/SizeInput.d.ts +8 -0
- package/build/components/Skeleton.d.ts +5 -0
- package/build/components/Spinner.d.ts +9 -0
- package/build/components/TabSections.d.ts +11 -0
- package/build/components/Table.d.ts +34 -0
- package/build/components/Tabs.d.ts +20 -0
- package/build/components/Tags.d.ts +9 -0
- package/build/components/TextArea.d.ts +8 -0
- package/build/components/TextInput.d.ts +11 -0
- package/build/components/Title.d.ts +8 -0
- package/build/components/Toggle.d.ts +8 -0
- package/build/components/Tour.d.ts +36 -0
- package/build/components/Vector.d.ts +9 -0
- package/build/core/Area.d.ts +143 -0
- package/build/core/Branch.d.ts +19 -0
- package/build/core/Core.d.ts +1 -0
- package/build/core/Event.d.ts +26 -0
- package/build/core/Icons.d.ts +4 -0
- package/build/core/Namespace.d.ts +2 -0
- package/build/core/Namespace.js +34 -0
- package/build/core/Namespace.js.map +1 -0
- package/build/core/Panel.d.ts +538 -0
- package/build/core/Utils.d.ts +1 -0
- package/build/core/Vec2.d.ts +21 -0
- package/build/extensions/AssetView.d.ts +136 -0
- package/build/extensions/AssetView.js +1367 -0
- package/build/extensions/AssetView.js.map +1 -0
- package/build/extensions/Audio.d.ts +9 -0
- package/build/extensions/Audio.js +163 -0
- package/build/extensions/Audio.js.map +1 -0
- package/build/extensions/CodeEditor.d.ts +350 -0
- package/build/extensions/CodeEditor.js +5022 -0
- package/build/extensions/CodeEditor.js.map +1 -0
- package/build/extensions/DocMaker.d.ts +27 -0
- package/build/extensions/DocMaker.js +327 -0
- package/build/extensions/DocMaker.js.map +1 -0
- package/build/extensions/GraphEditor.d.ts +276 -0
- package/build/extensions/GraphEditor.js +2770 -0
- package/build/extensions/GraphEditor.js.map +1 -0
- package/build/extensions/ImUi.d.ts +46 -0
- package/build/extensions/ImUi.js +227 -0
- package/build/extensions/ImUi.js.map +1 -0
- package/build/extensions/Timeline.d.ts +670 -0
- package/build/extensions/Timeline.js +3955 -0
- package/build/extensions/Timeline.js.map +1 -0
- package/build/extensions/VideoEditor.d.ts +128 -0
- package/build/extensions/VideoEditor.js +898 -0
- package/build/extensions/VideoEditor.js.map +1 -0
- package/build/extensions/index.d.ts +8 -0
- package/build/extensions/index.js +10 -0
- package/build/extensions/index.js.map +1 -0
- package/build/index.all.d.ts +2 -0
- package/build/index.css.d.ts +4 -0
- package/build/index.d.ts +56 -0
- package/build/lexgui.all.js +28498 -0
- package/build/lexgui.all.js.map +1 -0
- package/build/lexgui.all.min.js +1 -0
- package/build/lexgui.all.module.js +28422 -0
- package/build/lexgui.all.module.js.map +1 -0
- package/build/lexgui.all.module.min.js +1 -0
- package/build/lexgui.css +939 -346
- package/build/lexgui.js +13406 -17286
- package/build/lexgui.js.map +1 -0
- package/build/lexgui.min.css +3 -10
- package/build/lexgui.min.js +1 -1
- package/build/lexgui.module.js +12762 -16698
- package/build/lexgui.module.js.map +1 -0
- package/build/lexgui.module.min.js +1 -1
- package/changelog.md +170 -74
- package/demo.js +162 -48
- package/examples/all-components.html +45 -14
- package/examples/asset-view.html +110 -47
- package/examples/code-editor.html +5 -5
- package/examples/dialogs.html +3 -3
- package/examples/editor.html +27 -13
- package/examples/index.html +19 -14
- package/examples/node-graph.html +2 -2
- package/examples/previews/video-editor.png +0 -0
- package/examples/timeline.html +1 -1
- package/examples/video-editor.html +2 -2
- package/package.json +25 -9
- package/build/extensions/audio.js +0 -212
- package/build/extensions/codeeditor.js +0 -6319
- package/build/extensions/docmaker.js +0 -432
- package/build/extensions/imui.js +0 -325
- package/build/extensions/nodegraph.js +0 -3696
- package/build/extensions/timeline.js +0 -4636
- package/build/extensions/videoeditor.js +0 -953
- package/build/lexgui-docs.css +0 -352
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseComponent } from './BaseComponent';
|
|
2
|
+
/**
|
|
3
|
+
* @class Vector
|
|
4
|
+
* @description Vector Component
|
|
5
|
+
*/
|
|
6
|
+
export declare class Vector extends BaseComponent {
|
|
7
|
+
setLimits: (newMin: number | null, newMax: number | null, newStep: number | null) => void;
|
|
8
|
+
constructor(numComponents: number, name: string, value: number[], callback: any, options?: any);
|
|
9
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { Menubar } from '../components/Menubar';
|
|
2
|
+
import { Tabs } from '../components/Tabs';
|
|
3
|
+
import { Panel } from './Panel';
|
|
4
|
+
export declare class AreaOverlayButtons {
|
|
5
|
+
area: Area;
|
|
6
|
+
options: any;
|
|
7
|
+
buttons: any;
|
|
8
|
+
constructor(area: Area, buttonsArray: any[], options?: {});
|
|
9
|
+
_buildButtons(buttonsArray: any[], options?: any): void;
|
|
10
|
+
}
|
|
11
|
+
export declare class Area {
|
|
12
|
+
/**
|
|
13
|
+
* @constructor Area
|
|
14
|
+
* @param {Object} options
|
|
15
|
+
* id: Id of the element
|
|
16
|
+
* className: Add class to the element
|
|
17
|
+
* width: Width of the area element [fit space]
|
|
18
|
+
* height: Height of the area element [fit space]
|
|
19
|
+
* skipAppend: Create but not append to GUI root [false]
|
|
20
|
+
* minWidth: Minimum width to be applied when resizing
|
|
21
|
+
* minHeight: Minimum height to be applied when resizing
|
|
22
|
+
* maxWidth: Maximum width to be applied when resizing
|
|
23
|
+
* maxHeight: Maximum height to be applied when resizing
|
|
24
|
+
* layout: Layout to automatically split the area
|
|
25
|
+
*/
|
|
26
|
+
offset: number;
|
|
27
|
+
root: any;
|
|
28
|
+
size: any[];
|
|
29
|
+
resize: boolean;
|
|
30
|
+
sections: any[];
|
|
31
|
+
panels: any[];
|
|
32
|
+
minWidth: number;
|
|
33
|
+
minHeight: number;
|
|
34
|
+
maxWidth: number;
|
|
35
|
+
maxHeight: Number;
|
|
36
|
+
layout: any;
|
|
37
|
+
type?: string;
|
|
38
|
+
parentArea?: Area;
|
|
39
|
+
splitBar?: any;
|
|
40
|
+
splitExtended?: boolean;
|
|
41
|
+
overlayButtons?: AreaOverlayButtons;
|
|
42
|
+
onresize?: any;
|
|
43
|
+
_autoVerticalResizeObserver?: ResizeObserver;
|
|
44
|
+
_root: any;
|
|
45
|
+
constructor(options?: any);
|
|
46
|
+
/**
|
|
47
|
+
* @method attach
|
|
48
|
+
* @param {Element} content child to append to area (e.g. a Panel)
|
|
49
|
+
*/
|
|
50
|
+
attach(content: any): void;
|
|
51
|
+
/**
|
|
52
|
+
* @method setLayout
|
|
53
|
+
* @description Automatically split the area to generate the desired layout
|
|
54
|
+
* @param {Array} layout
|
|
55
|
+
*/
|
|
56
|
+
setLayout(layout: any): void;
|
|
57
|
+
/**
|
|
58
|
+
* @method split
|
|
59
|
+
* @param {Object} options
|
|
60
|
+
* type: Split mode (horizontal, vertical) ["horizontal"]
|
|
61
|
+
* sizes: CSS Size of each new area (Array) ["50%", "50%"]
|
|
62
|
+
* resize: Allow area manual resizing [true]
|
|
63
|
+
* sizes: "Allow the area to be minimized [false]
|
|
64
|
+
*/
|
|
65
|
+
split(options?: any): any[];
|
|
66
|
+
/**
|
|
67
|
+
* @method setLimitBox
|
|
68
|
+
* Set min max for width and height
|
|
69
|
+
*/
|
|
70
|
+
setLimitBox(minw?: number, minh?: number, maxw?: number, maxh?: number): void;
|
|
71
|
+
/**
|
|
72
|
+
* @method resize
|
|
73
|
+
* Resize element
|
|
74
|
+
*/
|
|
75
|
+
setSize(size: any[]): void;
|
|
76
|
+
/**
|
|
77
|
+
* @method extend
|
|
78
|
+
* Hide 2nd area split
|
|
79
|
+
*/
|
|
80
|
+
extend(): void;
|
|
81
|
+
/**
|
|
82
|
+
* @method reduce
|
|
83
|
+
* Show 2nd area split
|
|
84
|
+
*/
|
|
85
|
+
reduce(): void;
|
|
86
|
+
/**
|
|
87
|
+
* @method hide
|
|
88
|
+
* Hide element
|
|
89
|
+
*/
|
|
90
|
+
hide(): void;
|
|
91
|
+
/**
|
|
92
|
+
* @method show
|
|
93
|
+
* Show element if it is hidden
|
|
94
|
+
*/
|
|
95
|
+
show(): void;
|
|
96
|
+
/**
|
|
97
|
+
* @method toggle
|
|
98
|
+
* Toggle element if it is hidden
|
|
99
|
+
*/
|
|
100
|
+
toggle(force: boolean): void;
|
|
101
|
+
/**
|
|
102
|
+
* @method propagateEvent
|
|
103
|
+
*/
|
|
104
|
+
propagateEvent(eventName: string): void;
|
|
105
|
+
/**
|
|
106
|
+
* @method addPanel
|
|
107
|
+
* @param {Object} options
|
|
108
|
+
* Options to create a Panel
|
|
109
|
+
*/
|
|
110
|
+
addPanel(options: any): Panel;
|
|
111
|
+
/**
|
|
112
|
+
* @method addMenubar
|
|
113
|
+
* @param {Array} items Items to fill the menubar
|
|
114
|
+
* @param {Object} options:
|
|
115
|
+
* float: Justify content (left, center, right) [left]
|
|
116
|
+
* sticky: Fix menubar at the top [true]
|
|
117
|
+
*/
|
|
118
|
+
addMenubar(items: any[], options?: any): Menubar;
|
|
119
|
+
/**
|
|
120
|
+
* @method addSidebar
|
|
121
|
+
* @param {Function} callback Function to fill the sidebar
|
|
122
|
+
* @param {Object} options: Sidebar options
|
|
123
|
+
* width: Width of the sidebar [16rem]
|
|
124
|
+
* side: Side to attach the sidebar (left|right) [left]
|
|
125
|
+
*/
|
|
126
|
+
addSidebar(callback: any, options?: any): any;
|
|
127
|
+
/**
|
|
128
|
+
* @method addOverlayButtons
|
|
129
|
+
* @param {Array} buttons Buttons info
|
|
130
|
+
* @param {Object} options:
|
|
131
|
+
* float: Where to put the buttons (h: horizontal, v: vertical, t: top, m: middle, b: bottom, l: left, c: center, r: right) [htc]
|
|
132
|
+
*/
|
|
133
|
+
addOverlayButtons(buttons: any[], options?: any): any;
|
|
134
|
+
/**
|
|
135
|
+
* @method addTabs
|
|
136
|
+
* @param {Object} options:
|
|
137
|
+
* parentClass: Add extra class to tab buttons container
|
|
138
|
+
*/
|
|
139
|
+
addTabs(options?: any): Tabs;
|
|
140
|
+
_moveSplit(dt: number, forceAnimation?: boolean, forceWidth?: number): void;
|
|
141
|
+
_disableSplitResize(): void;
|
|
142
|
+
_update(newSize?: any[], propagate?: boolean): void;
|
|
143
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Panel } from './Panel';
|
|
2
|
+
/**
|
|
3
|
+
* @class Branch
|
|
4
|
+
*/
|
|
5
|
+
export declare class Branch {
|
|
6
|
+
name: string;
|
|
7
|
+
components: any[];
|
|
8
|
+
closed: boolean;
|
|
9
|
+
root: any;
|
|
10
|
+
content: any;
|
|
11
|
+
grabber: any;
|
|
12
|
+
panel: Panel | null;
|
|
13
|
+
onclick: () => void;
|
|
14
|
+
oncontextmenu: (e: any) => void;
|
|
15
|
+
constructor(name: string, options?: any);
|
|
16
|
+
_onMakeFloating(): void;
|
|
17
|
+
_addBranchSeparator(): void;
|
|
18
|
+
_updateComponents(): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Panel } from './Panel';
|
|
2
|
+
export declare class IEvent {
|
|
3
|
+
name: any;
|
|
4
|
+
value: any;
|
|
5
|
+
domEvent: any;
|
|
6
|
+
constructor(name: string | null | undefined, value: any, domEvent?: any);
|
|
7
|
+
}
|
|
8
|
+
export declare class TreeEvent {
|
|
9
|
+
static NONE: number;
|
|
10
|
+
static NODE_SELECTED: number;
|
|
11
|
+
static NODE_DELETED: number;
|
|
12
|
+
static NODE_DBLCLICKED: number;
|
|
13
|
+
static NODE_CONTEXTMENU: number;
|
|
14
|
+
static NODE_DRAGGED: number;
|
|
15
|
+
static NODE_RENAMED: number;
|
|
16
|
+
static NODE_VISIBILITY: number;
|
|
17
|
+
static NODE_CARETCHANGED: number;
|
|
18
|
+
type: number;
|
|
19
|
+
node: any;
|
|
20
|
+
value: any;
|
|
21
|
+
event: any;
|
|
22
|
+
multiple: boolean;
|
|
23
|
+
panel: Panel | null;
|
|
24
|
+
constructor(type: number, node: any, value: any, event: any);
|
|
25
|
+
string(): "tree_event_none" | "tree_event_selected" | "tree_event_deleted" | "tree_event_dblclick" | "tree_event_contextmenu" | "tree_event_dragged" | "tree_event_renamed" | "tree_event_visibility" | "tree_event_caretchanged" | undefined;
|
|
26
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This is a generated file. Do not edit.
|
|
2
|
+
// Namespace.ts @jxarco
|
|
3
|
+
/**
|
|
4
|
+
* Main namespace
|
|
5
|
+
* @namespace LX
|
|
6
|
+
*/
|
|
7
|
+
const g = globalThis;
|
|
8
|
+
// Update global namespace if not present (Loading module)
|
|
9
|
+
// Extension scripts rely on LX being globally available
|
|
10
|
+
let LX = g.LX;
|
|
11
|
+
if (!LX) {
|
|
12
|
+
LX = {
|
|
13
|
+
version: '8.1.0',
|
|
14
|
+
ready: false,
|
|
15
|
+
extensions: [], // Store extensions used
|
|
16
|
+
extraCommandbarEntries: [], // User specific entries for command bar
|
|
17
|
+
signals: {}, // Events and triggers
|
|
18
|
+
activeDraggable: null, // Watch for the current active draggable
|
|
19
|
+
spacingMode: 'default',
|
|
20
|
+
layoutMode: 'app',
|
|
21
|
+
MOUSE_LEFT_CLICK: 0,
|
|
22
|
+
MOUSE_MIDDLE_CLICK: 1,
|
|
23
|
+
MOUSE_RIGHT_CLICK: 2,
|
|
24
|
+
MOUSE_DOUBLE_CLICK: 2,
|
|
25
|
+
MOUSE_TRIPLE_CLICK: 3,
|
|
26
|
+
CURVE_MOVEOUT_CLAMP: 0,
|
|
27
|
+
CURVE_MOVEOUT_DELETE: 1,
|
|
28
|
+
DRAGGABLE_Z_INDEX: 101
|
|
29
|
+
};
|
|
30
|
+
g.LX = LX;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { LX };
|
|
34
|
+
//# sourceMappingURL=Namespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Namespace.js","sources":["../../src/core/Namespace.ts"],"sourcesContent":["// Namespace.ts @jxarco\r\n\r\n/**\r\n * Main namespace\r\n * @namespace LX\r\n */\r\n\r\nconst g = globalThis as any;\r\n\r\n// Update global namespace if not present (Loading module)\r\n// Extension scripts rely on LX being globally available\r\nlet LX: any = g.LX;\r\n\r\nif ( !LX )\r\n{\r\n LX = {\r\n version: '8.1.0',\r\n ready: false,\r\n extensions: [], // Store extensions used\r\n extraCommandbarEntries: [], // User specific entries for command bar\r\n signals: {}, // Events and triggers\r\n activeDraggable: null, // Watch for the current active draggable\r\n\r\n spacingMode: 'default',\r\n layoutMode: 'app',\r\n\r\n MOUSE_LEFT_CLICK: 0,\r\n MOUSE_MIDDLE_CLICK: 1,\r\n MOUSE_RIGHT_CLICK: 2,\r\n\r\n MOUSE_DOUBLE_CLICK: 2,\r\n MOUSE_TRIPLE_CLICK: 3,\r\n\r\n CURVE_MOVEOUT_CLAMP: 0,\r\n CURVE_MOVEOUT_DELETE: 1,\r\n\r\n DRAGGABLE_Z_INDEX: 101\r\n };\r\n\r\n g.LX = LX;\r\n}\r\n\r\nexport { LX };\r\n"],"names":[],"mappings":";AAAA;AAEA;;;AAGG;AAEH,MAAM,CAAC,GAAG,UAAiB;AAE3B;AACA;AACA,IAAI,EAAE,GAAQ,CAAC,CAAC;AAEhB,IAAK,CAAC,EAAE,EACR;AACI,IAAA,EAAE,GAAG;AACD,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,KAAK,EAAE,KAAK;QACZ,UAAU,EAAE,EAAE;QACd,sBAAsB,EAAE,EAAE;QAC1B,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,IAAI;AAErB,QAAA,WAAW,EAAE,SAAS;AACtB,QAAA,UAAU,EAAE,KAAK;AAEjB,QAAA,gBAAgB,EAAE,CAAC;AACnB,QAAA,kBAAkB,EAAE,CAAC;AACrB,QAAA,iBAAiB,EAAE,CAAC;AAEpB,QAAA,kBAAkB,EAAE,CAAC;AACrB,QAAA,kBAAkB,EAAE,CAAC;AAErB,QAAA,mBAAmB,EAAE,CAAC;AACtB,QAAA,oBAAoB,EAAE,CAAC;AAEvB,QAAA,iBAAiB,EAAE;KACtB;AAED,IAAA,CAAC,CAAC,EAAE,GAAG,EAAE;AACb;;;;"}
|