@matdata/yasgui 5.11.0 → 5.13.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.
Files changed (53) hide show
  1. package/build/ts/src/PersistentConfig.d.ts +4 -0
  2. package/build/ts/src/PersistentConfig.js +12 -0
  3. package/build/ts/src/PersistentConfig.js.map +1 -1
  4. package/build/ts/src/Tab.js +2 -1
  5. package/build/ts/src/Tab.js.map +1 -1
  6. package/build/ts/src/TabSettingsModal.js +114 -0
  7. package/build/ts/src/TabSettingsModal.js.map +1 -1
  8. package/build/ts/src/ThemeManager.d.ts +3 -0
  9. package/build/ts/src/ThemeManager.js +11 -1
  10. package/build/ts/src/ThemeManager.js.map +1 -1
  11. package/build/ts/src/index.d.ts +1 -0
  12. package/build/ts/src/index.js +2 -0
  13. package/build/ts/src/index.js.map +1 -1
  14. package/build/ts/src/queryManagement/QueryBrowser.js +27 -6
  15. package/build/ts/src/queryManagement/QueryBrowser.js.map +1 -1
  16. package/build/ts/src/queryManagement/SaveManagedQueryModal.js +3 -3
  17. package/build/ts/src/queryManagement/SaveManagedQueryModal.js.map +1 -1
  18. package/build/ts/src/queryManagement/backends/BitbucketProviderClient.js +2 -2
  19. package/build/ts/src/queryManagement/backends/BitbucketProviderClient.js.map +1 -1
  20. package/build/ts/src/queryManagement/backends/GiteaProviderClient.js +2 -2
  21. package/build/ts/src/queryManagement/backends/GiteaProviderClient.js.map +1 -1
  22. package/build/ts/src/queryManagement/backends/GithubProviderClient.js +2 -2
  23. package/build/ts/src/queryManagement/backends/GithubProviderClient.js.map +1 -1
  24. package/build/ts/src/queryManagement/backends/GitlabProviderClient.js +2 -2
  25. package/build/ts/src/queryManagement/backends/GitlabProviderClient.js.map +1 -1
  26. package/build/ts/src/queryManagement/backends/InMemoryWorkspaceBackend.js +4 -4
  27. package/build/ts/src/queryManagement/backends/InMemoryWorkspaceBackend.js.map +1 -1
  28. package/build/ts/src/queryManagement/normalizeQueryFilename.js +2 -2
  29. package/build/ts/src/queryManagement/normalizeQueryFilename.js.map +1 -1
  30. package/build/ts/src/version.d.ts +1 -1
  31. package/build/ts/src/version.js +1 -1
  32. package/build/yasgui.min.css +1 -1
  33. package/build/yasgui.min.css.map +3 -3
  34. package/build/yasgui.min.js +162 -162
  35. package/build/yasgui.min.js.map +3 -3
  36. package/package.json +1 -1
  37. package/src/PersistentConfig.ts +15 -0
  38. package/src/Tab.ts +3 -2
  39. package/src/TabSettingsModal.scss +12 -0
  40. package/src/TabSettingsModal.ts +144 -0
  41. package/src/ThemeManager.ts +18 -1
  42. package/src/github-dark-theme.scss +192 -0
  43. package/src/index.ts +4 -0
  44. package/src/queryManagement/QueryBrowser.ts +34 -7
  45. package/src/queryManagement/SaveManagedQueryModal.ts +3 -3
  46. package/src/queryManagement/backends/BitbucketProviderClient.ts +2 -2
  47. package/src/queryManagement/backends/GiteaProviderClient.ts +2 -2
  48. package/src/queryManagement/backends/GithubProviderClient.ts +2 -2
  49. package/src/queryManagement/backends/GitlabProviderClient.ts +2 -2
  50. package/src/queryManagement/backends/InMemoryWorkspaceBackend.ts +4 -4
  51. package/src/queryManagement/normalizeQueryFilename.ts +4 -2
  52. package/src/themes.scss +43 -43
  53. package/src/version.ts +1 -1
@@ -65,7 +65,7 @@ export default class InMemoryWorkspaceBackend implements WorkspaceBackend {
65
65
  queries.push({
66
66
  kind: "query",
67
67
  id: queryId,
68
- label: basename(queryId).replace(/\.sparql$/i, ""),
68
+ label: basename(queryId).replace(/\.(rq|sparql)$/i, ""),
69
69
  parentId: undefined,
70
70
  });
71
71
  continue;
@@ -75,7 +75,7 @@ export default class InMemoryWorkspaceBackend implements WorkspaceBackend {
75
75
  queries.push({
76
76
  kind: "query",
77
77
  id: queryId,
78
- label: basename(queryId).replace(/\.sparql$/i, ""),
78
+ label: basename(queryId).replace(/\.(rq|sparql)$/i, ""),
79
79
  parentId: folder,
80
80
  });
81
81
  continue;
@@ -101,7 +101,7 @@ export default class InMemoryWorkspaceBackend implements WorkspaceBackend {
101
101
  if (!q) return [];
102
102
  const hits: FolderEntry[] = [];
103
103
  for (const queryId of this.versionsByQueryId.keys()) {
104
- const label = basename(queryId).replace(/\.sparql$/i, "");
104
+ const label = basename(queryId).replace(/\.(rq|sparql)$/i, "");
105
105
  if (label.toLowerCase().includes(q)) {
106
106
  hits.push({ kind: "query", id: queryId, label, parentId: dirname(queryId) || undefined });
107
107
  }
@@ -159,7 +159,7 @@ export default class InMemoryWorkspaceBackend implements WorkspaceBackend {
159
159
  const versions = this.versionsByQueryId.get(queryId);
160
160
  if (!versions || versions.length === 0) throw new WorkspaceBackendError("NOT_FOUND", "Query not found");
161
161
 
162
- const newId = dirname(queryId) ? `${dirname(queryId)}/${trimmed}.sparql` : `${trimmed}.sparql`;
162
+ const newId = dirname(queryId) ? `${dirname(queryId)}/${trimmed}.rq` : `${trimmed}.rq`;
163
163
  if (newId === queryId) return;
164
164
  if (this.versionsByQueryId.has(newId))
165
165
  throw new WorkspaceBackendError("CONFLICT", "A query with this name already exists");
@@ -3,6 +3,8 @@ export function normalizeQueryFilename(rawName: string): string {
3
3
  if (!name) throw new Error("Filename is required");
4
4
 
5
5
  const lower = name.toLowerCase();
6
- if (lower.endsWith(".sparql")) return name;
7
- return `${name}.sparql`;
6
+ // Accept both .rq and .sparql extensions for backwards compatibility
7
+ if (lower.endsWith(".rq") || lower.endsWith(".sparql")) return name;
8
+ // Default to .rq for new files
9
+ return `${name}.rq`;
8
10
  }
package/src/themes.scss CHANGED
@@ -52,49 +52,49 @@
52
52
  }
53
53
 
54
54
  [data-theme="dark"] {
55
- // Dark theme colors
56
- --yasgui-bg-primary: #1e1e1e;
57
- --yasgui-bg-secondary: #252526;
58
- --yasgui-bg-tertiary: #2d2d30;
59
- --yasgui-bg-quaternary: #3e3e42;
60
- --yasgui-text-primary: #d4d4d4;
61
- --yasgui-text-secondary: #cccccc;
62
- --yasgui-text-muted: #858585;
63
- --yasgui-border-color: #3e3e42;
64
- --yasgui-border-color-secondary: rgba(255, 255, 255, 0.15);
65
- --yasgui-border-color-light: #3e3e42;
66
- --yasgui-link-color: #4fc3f7;
67
- --yasgui-link-hover: #81d4fa;
68
- --yasgui-accent-color: #4fc3f7;
69
- --yasgui-button-text: #cccccc;
70
- --yasgui-button-hover: #ffffff;
71
- --yasgui-chip-bg: #2d2d30;
72
- --yasgui-chip-text: #cccccc;
73
- --yasgui-tab-bg: #2d2d30;
74
- --yasgui-tab-bg-active: #1e1e1e;
75
- --yasgui-tab-border: #3e3e42;
76
- --yasgui-tab-managed: #2b3c4b;
77
- --yasgui-input-border: rgba(255, 255, 255, 0.15);
78
- --yasgui-input-focus: #4fc3f7;
79
- --yasgui-label-color: rgba(255, 255, 255, 0.6);
80
- --yasgui-tooltip-bg: rgba(0, 0, 0, 1);
81
- --yasgui-tooltip-text: #d4d4d4;
82
- --yasgui-error-color: #f48771;
83
- --yasgui-notification-bg: #2d2d30;
84
- --yasgui-notification-text: #858585;
85
- --yasgui-help-bg: #1a4d5e;
86
- --yasgui-help-text: #4fc3f7;
87
- --yasgui-fallback-bg: #252526;
88
- --yasgui-fallback-border: #3e3e42;
89
- --yasgui-resize-handle: #3e3e42;
90
- --yasgui-nav-bg: #2d2d30;
91
- --yasgui-match-highlight-bg: #3a4a5a;
92
- --yasgui-endpoint-button-bg: #4fc3f7;
93
- --yasgui-endpoint-button-border: #4fc3f7;
94
- --yasgui-endpoint-button-text: #1e1e1e;
95
- --yasgui-endpoint-button-hover-bg: #81d4fa;
96
- --yasgui-endpoint-button-hover-border: #81d4fa;
97
- --yasgui-endpoint-button-focus: #81d4fa;
55
+ // Dark theme colors - GitHub Dark Default inspired
56
+ --yasgui-bg-primary: #0d1117;
57
+ --yasgui-bg-secondary: #161b22;
58
+ --yasgui-bg-tertiary: #21262d;
59
+ --yasgui-bg-quaternary: #30363d;
60
+ --yasgui-text-primary: #c9d1d9;
61
+ --yasgui-text-secondary: #b1bac4;
62
+ --yasgui-text-muted: #8b949e;
63
+ --yasgui-border-color: #30363d;
64
+ --yasgui-border-color-secondary: rgba(240, 246, 252, 0.1);
65
+ --yasgui-border-color-light: #30363d;
66
+ --yasgui-link-color: #58a6ff;
67
+ --yasgui-link-hover: #79c0ff;
68
+ --yasgui-accent-color: #58a6ff;
69
+ --yasgui-button-text: #c9d1d9;
70
+ --yasgui-button-hover: #f0f6fc;
71
+ --yasgui-chip-bg: #21262d;
72
+ --yasgui-chip-text: #c9d1d9;
73
+ --yasgui-tab-bg: #0d1117;
74
+ --yasgui-tab-bg-active: #161b22;
75
+ --yasgui-tab-border: #30363d;
76
+ --yasgui-tab-managed: #1c2d41;
77
+ --yasgui-input-border: #30363d;
78
+ --yasgui-input-focus: #58a6ff;
79
+ --yasgui-label-color: #8b949e;
80
+ --yasgui-tooltip-bg: #161b22;
81
+ --yasgui-tooltip-text: #c9d1d9;
82
+ --yasgui-error-color: #f85149;
83
+ --yasgui-notification-bg: #21262d;
84
+ --yasgui-notification-text: #8b949e;
85
+ --yasgui-help-bg: #1c2d41;
86
+ --yasgui-help-text: #58a6ff;
87
+ --yasgui-fallback-bg: #161b22;
88
+ --yasgui-fallback-border: #30363d;
89
+ --yasgui-resize-handle: #30363d;
90
+ --yasgui-nav-bg: #161b22;
91
+ --yasgui-match-highlight-bg: #1f6feb;
92
+ --yasgui-endpoint-button-bg: #238636;
93
+ --yasgui-endpoint-button-border: #238636;
94
+ --yasgui-endpoint-button-text: #ffffff;
95
+ --yasgui-endpoint-button-hover-bg: #2ea043;
96
+ --yasgui-endpoint-button-hover-border: #2ea043;
97
+ --yasgui-endpoint-button-focus: #58a6ff;
98
98
  }
99
99
 
100
100
  // Apply theme colors to Yasgui components
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // Version information for YASGUI
2
2
  // This file is auto-generated during build - do not edit manually
3
- export const VERSION = "5.11.0";
3
+ export const VERSION = "5.13.0";