@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.
@@ -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: 100% !important;
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: 100px; // Height to subtract from viewport in horizontal layout
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
@@ -0,0 +1,3 @@
1
+ // Version information for YASGUI
2
+ // This file is auto-generated during build - do not edit manually
3
+ export const VERSION = "4.6.1";