@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/build/ts/src/ConfigExportImport.js +1 -0
- package/build/ts/src/ConfigExportImport.js.map +1 -1
- package/build/ts/src/PersistentConfig.d.ts +7 -1
- package/build/ts/src/PersistentConfig.js +32 -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 +46 -11
- package/build/ts/src/Tab.js.map +1 -1
- package/build/ts/src/TabSettingsModal.d.ts +6 -2
- package/build/ts/src/TabSettingsModal.js +519 -114
- package/build/ts/src/TabSettingsModal.js.map +1 -1
- package/build/ts/src/index.d.ts +10 -0
- package/build/ts/src/index.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 +143 -122
- package/build/yasgui.min.js.map +4 -4
- package/package.json +1 -1
- package/src/ConfigExportImport.ts +1 -0
- package/src/PersistentConfig.ts +44 -2
- package/src/Tab.ts +76 -18
- package/src/TabSettingsModal.scss +565 -14
- package/src/TabSettingsModal.ts +676 -143
- package/src/index.ts +11 -0
- package/src/tab.scss +3 -4
- package/src/themes.scss +1 -1
- package/src/version.ts +3 -0
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:
|
|
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