@matdata/yasgui 5.2.0 → 5.4.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/README.md +128 -144
- package/build/ts/src/ConfigExportImport.d.ts +16 -0
- package/build/ts/src/ConfigExportImport.js +304 -0
- package/build/ts/src/ConfigExportImport.js.map +1 -0
- package/build/ts/src/PersistentConfig.d.ts +4 -0
- package/build/ts/src/PersistentConfig.js +7 -0
- package/build/ts/src/PersistentConfig.js.map +1 -1
- package/build/ts/src/Tab.d.ts +2 -1
- package/build/ts/src/Tab.js +19 -10
- package/build/ts/src/Tab.js.map +1 -1
- package/build/ts/src/TabSettingsModal.d.ts +7 -0
- package/build/ts/src/TabSettingsModal.js +504 -1
- package/build/ts/src/TabSettingsModal.js.map +1 -1
- package/build/ts/src/version.d.ts +1 -0
- package/build/ts/src/version.js +2 -0
- package/build/ts/src/version.js.map +1 -0
- package/build/yasgui.min.css +1 -1
- package/build/yasgui.min.css.map +3 -3
- package/build/yasgui.min.js +166 -106
- package/build/yasgui.min.js.map +4 -4
- package/package.json +1 -1
- package/src/ConfigExportImport.ts +391 -0
- package/src/PersistentConfig.ts +17 -0
- package/src/Tab.ts +32 -17
- package/src/TabSettingsModal.scss +262 -2
- package/src/TabSettingsModal.ts +637 -3
- package/src/sortablejs.d.ts +36 -0
- package/src/tab.scss +3 -4
- package/src/themes.scss +1 -1
- package/src/version.ts +3 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare module "sortablejs" {
|
|
2
|
+
interface SortableOptions {
|
|
3
|
+
animation?: number;
|
|
4
|
+
handle?: string;
|
|
5
|
+
draggable?: string;
|
|
6
|
+
ghostClass?: string;
|
|
7
|
+
chosenClass?: string;
|
|
8
|
+
dragClass?: string;
|
|
9
|
+
filter?: string;
|
|
10
|
+
preventOnFilter?: boolean;
|
|
11
|
+
onEnd?: (evt: SortableEvent) => void;
|
|
12
|
+
onStart?: (evt: SortableEvent) => void;
|
|
13
|
+
onUpdate?: (evt: SortableEvent) => void;
|
|
14
|
+
onSort?: (evt: SortableEvent) => void;
|
|
15
|
+
onMove?: (evt: SortableEvent, originalEvent: any) => boolean | -1 | 1 | undefined;
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface SortableEvent {
|
|
20
|
+
oldIndex?: number;
|
|
21
|
+
newIndex?: number;
|
|
22
|
+
item: HTMLElement;
|
|
23
|
+
to: HTMLElement;
|
|
24
|
+
from: HTMLElement;
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
class Sortable {
|
|
29
|
+
constructor(el: HTMLElement, options?: SortableOptions);
|
|
30
|
+
destroy(): void;
|
|
31
|
+
option(name: string, value?: any): any;
|
|
32
|
+
static create(el: HTMLElement, options?: SortableOptions): Sortable;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default Sortable;
|
|
36
|
+
}
|
package/src/tab.scss
CHANGED
|
@@ -36,15 +36,13 @@
|
|
|
36
36
|
gap: 10px;
|
|
37
37
|
// Allow flexible height - can use 100vh or be constrained by parent
|
|
38
38
|
min-height: var(--yasgui-min-height);
|
|
39
|
-
height: calc(100vh - var(--yasgui-header-height));
|
|
39
|
+
max-height: calc(100vh - var(--yasgui-header-height));
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.editorwrapper {
|
|
43
43
|
flex: 1;
|
|
44
|
-
min-width: 0;
|
|
45
44
|
display: flex;
|
|
46
45
|
flex-direction: column;
|
|
47
|
-
overflow: hidden;
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
// Make YASQE fill the vertical space in horizontal mode
|
|
@@ -53,9 +51,10 @@
|
|
|
53
51
|
flex-direction: column;
|
|
54
52
|
flex: 1;
|
|
55
53
|
min-height: 0;
|
|
54
|
+
overflow: hidden;
|
|
56
55
|
|
|
57
56
|
.CodeMirror {
|
|
58
|
-
height:
|
|
57
|
+
height: calc(100vh - var(--yasgui-header-height)) !important;
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
60
|
|
package/src/themes.scss
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
--yasgui-match-highlight-bg: #dbdeed;
|
|
40
40
|
|
|
41
41
|
// Layout dimensions (used for horizontal orientation)
|
|
42
|
-
--yasgui-header-height:
|
|
42
|
+
--yasgui-header-height: 150px; // Height to subtract from viewport in horizontal layout
|
|
43
43
|
--yasgui-min-height: 400px; // Minimum height for horizontal layout panels
|
|
44
44
|
|
|
45
45
|
--yasgui-endpoint-button-bg: #337ab7;
|
package/src/version.ts
ADDED