@matdata/yasgui 5.3.0 → 5.5.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/src/index.ts CHANGED
@@ -35,6 +35,17 @@ export interface EndpointButton {
35
35
  endpoint: string;
36
36
  label: string;
37
37
  }
38
+
39
+ export interface EndpointConfig {
40
+ endpoint: string;
41
+ label?: string; // Optional label for the endpoint
42
+ showAsButton?: boolean; // Whether to show as a quick-switch button (requires label)
43
+ authentication?: {
44
+ type: 'basic'; // For now only basic, but designed for future auth types
45
+ username: string;
46
+ password: string;
47
+ };
48
+ }
38
49
  export interface Config<EndpointObject extends CatalogueItem = CatalogueItem> {
39
50
  /**
40
51
  * Autofocus yasqe on load or tab switch
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";