@nongt/visql 0.7.0 → 0.9.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 (46) hide show
  1. package/README.md +23 -359
  2. package/dist/{MuiTimePicker-BjywwrRm.js → MuiTimePicker-DRqT6ByZ.js} +1 -1
  3. package/dist/PipelineEditor-C10lng6j.js +10544 -0
  4. package/dist/core.js +336 -78
  5. package/dist/explain.js +165 -0
  6. package/dist/fixtures.js +1 -1
  7. package/dist/index.js +114 -98
  8. package/dist/issueLocation-BOSdd1JX.js +1106 -0
  9. package/dist/mui-date-pickers-host.js +1 -1
  10. package/dist/mui-date-pickers.js +1 -1
  11. package/dist/mui.js +95 -84
  12. package/dist/params-MMOdKWnW.js +2217 -0
  13. package/dist/{schema-DFC26AhZ.js → schema-dP_ISylQ.js} +270 -242
  14. package/dist/sql-import.js +613 -627
  15. package/dist/sqlGen-B7-2-i9V.js +903 -0
  16. package/dist/style.css +1 -1
  17. package/dist/tokens-DV5rTGMj.js +171 -0
  18. package/dist/types/core/ast.d.ts +1 -1
  19. package/dist/types/core/components/flow/NodeActionFrame.d.ts +20 -0
  20. package/dist/types/core/components/flow/useNodeActions.d.ts +18 -0
  21. package/dist/types/core/i18n/defaultMessages.d.ts +15 -0
  22. package/dist/types/core/i18n/messages.d.ts +11 -0
  23. package/dist/types/core/params.d.ts +10 -0
  24. package/dist/types/core/planFindings.d.ts +27 -0
  25. package/dist/types/core/queryHelpers.d.ts +1 -1
  26. package/dist/types/core/schema.d.ts +35 -20
  27. package/dist/types/core/scopeQuery.d.ts +2 -2
  28. package/dist/types/core/sqlGen.d.ts +10 -0
  29. package/dist/types/core/theme/appearance.d.ts +27 -0
  30. package/dist/types/core/theme/looks.d.ts +14 -0
  31. package/dist/types/core/theme/tokens.d.ts +9 -1
  32. package/dist/types/core-api.d.ts +3 -2
  33. package/dist/types/explain/explainQuery.d.ts +53 -0
  34. package/dist/types/explain/postgresPlan.d.ts +12 -0
  35. package/dist/types/explain.d.ts +2 -0
  36. package/dist/types/features/queryEditor/CanvasBackground.d.ts +2 -0
  37. package/dist/types/features/queryEditor/ExplainButton.d.ts +13 -0
  38. package/dist/types/features/queryEditor/IssuesButton.d.ts +14 -6
  39. package/dist/types/features/queryEditor/PipelineEditor.d.ts +15 -0
  40. package/dist/types/features/queryEditor/planText.d.ts +8 -0
  41. package/dist/types/index.d.ts +2 -0
  42. package/package.json +14 -1
  43. package/dist/PipelineEditor-9-9xOJcB.js +0 -10214
  44. package/dist/core-api-BsEMnDQ1.js +0 -1141
  45. package/dist/issueLocation-732-e0B8.js +0 -3281
  46. package/dist/tokens-BTaVMSOx.js +0 -95
@@ -1,95 +0,0 @@
1
- const c = {
2
- // Canvas
3
- canvasBg: "#242424",
4
- canvasPattern: "#505050",
5
- edge: "#ffffff60",
6
- // Breadcrumb bar above the canvas
7
- headerBg: "#18181b",
8
- headerBorder: "#3f3f46",
9
- // Dark node panels (groups, FROM/SELECT, function calls, toast)
10
- nodeBg: "#27272a",
11
- nodeBorder: "#52525b",
12
- nodeHoverBg: "#3f3f46",
13
- // Inputs drawn directly on a dark panel (function name field)
14
- nodeInputText: "#ffffff",
15
- nodeInputBorder: "rgb(255 255 255 / 0.25)",
16
- nodeInputIcon: "rgb(255 255 255 / 0.6)",
17
- // Translucent backdrop behind a group's children
18
- groupBg: "rgb(39 39 42 / 0.3)",
19
- groupBorder: "rgb(82 82 91 / 0.5)",
20
- groupDragBg: "rgb(63 63 70 / 0.5)",
21
- groupDragBorder: "rgb(161 161 170 / 0.5)",
22
- // Text on the canvas and on dark panels
23
- textStrong: "#f4f4f5",
24
- text: "#e4e4e7",
25
- textSecondary: "#d4d4d8",
26
- textMuted: "#a1a1aa",
27
- textFaint: "#52525b",
28
- // Light "field" cards inside nodes, where values are edited
29
- fieldBg: "#ffffff",
30
- fieldControlBg: "#f4f4f5",
31
- fieldControlHoverBg: "#e4e4e7",
32
- fieldBorder: "#d4d4d8",
33
- fieldBorderHover: "#71717a",
34
- fieldText: "#3f3f46",
35
- fieldTextSoft: "#52525b",
36
- fieldTextMuted: "#71717a",
37
- fieldTextSubtle: "#a1a1aa",
38
- fieldGroupBorder: "#fffbeb",
39
- // IF / CASE (conditional values)
40
- conditional: "#fbbf24",
41
- conditionalOnField: "#d97706",
42
- conditionalBorder: "rgb(217 119 6 / 0.5)",
43
- // NOT
44
- negate: "#f87171",
45
- // A parameter (`:name`, a value given when the query runs) — its own
46
- // color, so it's never mistaken for a typed value
47
- param: "#6d28d9",
48
- paramBg: "#ede9fe",
49
- // A computed summary shown as a pill (the rows LIMIT/OFFSET come to) —
50
- // opaque, since it sits both on a dark panel and in a white field card
51
- summaryBg: "#e0f2fe",
52
- summaryBorder: "#7dd3fc",
53
- summaryText: "#0c4a6e",
54
- // The ring around a part gone to — picked in a formula's peek (issue
55
- // 131) — as bright on the canvas as a problem's
56
- focusRing: "#38bdf8",
57
- // Buttons and controls (also the MUI palette)
58
- accent: "#067bc2",
59
- secondary: "#ecda92",
60
- danger: "#d32f2f",
61
- warning: "#ed6c02"
62
- }, s = "qb-root";
63
- function f(e) {
64
- return `--qb-${e.replace(/[A-Z]/g, (r) => `-${r.toLowerCase()}`)}`;
65
- }
66
- function g(e) {
67
- return `var(${f(e)})`;
68
- }
69
- const a = Object.keys(c);
70
- function i() {
71
- const e = a.map((r) => `${f(r)}:${c[r]};`).join("");
72
- return `:where(.${s}){${e}}`;
73
- }
74
- function u(e) {
75
- const r = {};
76
- return e && a.forEach((t) => {
77
- const o = e[t];
78
- o !== void 0 && (r[f(t)] = o);
79
- }), r;
80
- }
81
- function l(e, r) {
82
- const t = getComputedStyle(e), o = { ...r };
83
- return a.forEach((d) => {
84
- const n = t.getPropertyValue(f(d)).trim();
85
- n && (o[d] = n);
86
- }), o;
87
- }
88
- export {
89
- c as D,
90
- s as R,
91
- u as a,
92
- i as d,
93
- l as r,
94
- g as t
95
- };