@devtable/dashboard 8.13.5 → 8.13.7

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.
@@ -11460,7 +11460,7 @@ const ZD = (e) => {
11460
11460
  getColor: ll(["#fff7f1", "darkorange", "#b60000"]),
11461
11461
  name: "orange",
11462
11462
  category: "sequential"
11463
- }, xy = "@devtable/dashboard", fd = "8.13.5", Sy = "Apache-2.0", _y = {
11463
+ }, xy = "@devtable/dashboard", fd = "8.13.7", Sy = "Apache-2.0", _y = {
11464
11464
  access: "public",
11465
11465
  registry: "https://registry.npmjs.org/"
11466
11466
  }, Cy = [
@@ -27603,7 +27603,7 @@ const m3 = ee.forwardRef(({
27603
27603
  });
27604
27604
  });
27605
27605
  var S3 = /* @__PURE__ */ ((e) => (e.Use = "use", e.Edit = "edit", e))(S3 || {}), ut = /* @__PURE__ */ ((e) => (e.Division = "div", e.Modal = "modal", e.Tabs = "tabs", e))(ut || {});
27606
- const L9 = {
27606
+ const V9 = {
27607
27607
  div: "Division",
27608
27608
  tabs: "Tabs",
27609
27609
  modal: "Modal"
@@ -27611,7 +27611,7 @@ const L9 = {
27611
27611
  div: "rgba(255, 0, 0, 0.2)",
27612
27612
  modal: "rgba(0, 0, 0, 0.2)",
27613
27613
  tabs: "rgba(255, 200, 100, 0.4)"
27614
- }, V9 = {
27614
+ }, z9 = {
27615
27615
  div: "#ff4000",
27616
27616
  modal: "#000",
27617
27617
  tabs: "#ffad18"
@@ -37228,7 +37228,9 @@ const Z8 = ne(({
37228
37228
  cancel: "Cancel"
37229
37229
  },
37230
37230
  onCancel: () => console.log("Cancel"),
37231
- onConfirm: () => n.queries.removeQuery(t.id),
37231
+ onConfirm: () => {
37232
+ n.queries.removeQuery(t.id), n.editor.setPath(["_QUERIES_", ""]);
37233
+ },
37232
37234
  zIndex: 320
37233
37235
  });
37234
37236
  };
@@ -38589,27 +38591,17 @@ const IW = ne(() => /* @__PURE__ */ l(q, {
38589
38591
  children: /* @__PURE__ */ l(LW, {})
38590
38592
  })
38591
38593
  });
38592
- });
38593
- self.MonacoEnvironment = {
38594
- getWorker: function(e, t) {
38595
- const n = (r, o) => new Worker(self.MonacoEnvironment.getWorker(r), {
38596
- name: o,
38597
- type: "module"
38598
- });
38599
- switch (t) {
38600
- case "typescript":
38601
- case "javascript":
38602
- return n("/monaco-editor/min/vs/language/typescript/ts.worker?worker", t);
38603
- default:
38604
- return n("/monaco-editor/min/vs/editor/editor.worker?worker", t);
38605
- }
38606
- }
38607
- };
38608
- function UW() {
38609
- Al.__getMonacoInstance() || (console.log("loading monaco"), Al.config({ paths: { vs: "/assets/monaco-editor/min/vs" } }), Al.init().then((t) => console.log("here is the monaco instance:", t)));
38594
+ }), UW = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
38595
+ function YW(e) {
38596
+ pe(() => {
38597
+ if (Al.__getMonacoInstance())
38598
+ return;
38599
+ console.log("loading monaco for @devtable/dashboard");
38600
+ const n = UW(e + "/assets/monaco-editor/min/vs");
38601
+ Al.config({ paths: { vs: n } }), Al.init().then((r) => console.log("monaco instance:", r));
38602
+ }, []);
38610
38603
  }
38611
- UW();
38612
- const YW = {
38604
+ const XW = {
38613
38605
  root: {
38614
38606
  height: "100vh",
38615
38607
  display: "flex",
@@ -38626,14 +38618,14 @@ const YW = {
38626
38618
  paddingTop: 60,
38627
38619
  height: "100vh"
38628
38620
  }
38629
- }, z9 = ne(function({
38621
+ }, F9 = ne(function({
38630
38622
  context: t,
38631
38623
  dashboard: n,
38632
38624
  update: r,
38633
38625
  className: o = "dashboard",
38634
38626
  config: i
38635
38627
  }) {
38636
- Vb(i);
38628
+ YW(i.basename), Vb(i);
38637
38629
  const {
38638
38630
  data: a = []
38639
38631
  } = ga(Ud), [s, c] = ee.useState(!1), u = ee.useMemo(() => Jb(n, a, t), [n]);
@@ -38676,7 +38668,7 @@ const YW = {
38676
38668
  saveDashboardChanges: d
38677
38669
  }),
38678
38670
  navbar: /* @__PURE__ */ l(l8, {}),
38679
- styles: YW,
38671
+ styles: XW,
38680
38672
  children: /* @__PURE__ */ l(Me, {
38681
38673
  className: `${o} dashboard-root`,
38682
38674
  sx: {
@@ -38693,7 +38685,7 @@ const YW = {
38693
38685
  })
38694
38686
  });
38695
38687
  });
38696
- const F9 = ne(({
38688
+ const H9 = ne(({
38697
38689
  context: e,
38698
38690
  dashboard: t,
38699
38691
  className: n = "dashboard",
@@ -38805,7 +38797,7 @@ var zw = { exports: {} };
38805
38797
  };
38806
38798
  });
38807
38799
  })(zw);
38808
- const XW = zw.exports;
38800
+ const QW = zw.exports;
38809
38801
  var Fw = { exports: {} };
38810
38802
  (function(e, t) {
38811
38803
  (function(n, r) {
@@ -38887,13 +38879,13 @@ var Fw = { exports: {} };
38887
38879
  };
38888
38880
  });
38889
38881
  })(Fw);
38890
- const QW = Fw.exports, H9 = () => Promise.resolve().then(() => sP).then(({ version: e }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
38882
+ const ZW = Fw.exports, B9 = () => Promise.resolve().then(() => sP).then(({ version: e }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
38883
+ er.extend(ZW);
38891
38884
  er.extend(QW);
38892
- er.extend(XW);
38893
38885
  er.tz.setDefault("UTC");
38894
38886
  export {
38895
38887
  p4 as ContextModel,
38896
- z9 as Dashboard,
38888
+ F9 as Dashboard,
38897
38889
  Lb as DashboardFilterType,
38898
38890
  S3 as DashboardMode,
38899
38891
  iu as DashboardModel,
@@ -38909,18 +38901,18 @@ export {
38909
38901
  um as PanelContextProvider,
38910
38902
  u4 as QueriesModel,
38911
38903
  c4 as QueryModel,
38912
- F9 as ReadOnlyDashboard,
38904
+ H9 as ReadOnlyDashboard,
38913
38905
  d4 as SQLSnippetModel,
38914
38906
  f4 as SQLSnippetsModel,
38915
38907
  _3 as ViewComponentTypeBackground,
38916
- V9 as ViewComponentTypeColor,
38917
- L9 as ViewComponentTypeName,
38908
+ z9 as ViewComponentTypeColor,
38909
+ V9 as ViewComponentTypeName,
38918
38910
  P4 as ViewModel,
38919
38911
  A4 as ViewsModel,
38920
38912
  Jb as createDashboardModel,
38921
38913
  N4 as createDashboardViewsModel,
38922
38914
  Y3 as getInitialFiltersPayload,
38923
- H9 as getVersion,
38915
+ B9 as getVersion,
38924
38916
  tS as useFullScreenPanelContext,
38925
38917
  We as useModelContext,
38926
38918
  _n as usePanelContext,