@devtable/dashboard 8.13.5 → 8.13.6

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.6", 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"
@@ -38589,27 +38589,17 @@ const IW = ne(() => /* @__PURE__ */ l(q, {
38589
38589
  children: /* @__PURE__ */ l(LW, {})
38590
38590
  })
38591
38591
  });
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)));
38592
+ }), UW = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
38593
+ function YW(e) {
38594
+ pe(() => {
38595
+ if (Al.__getMonacoInstance())
38596
+ return;
38597
+ console.log("loading monaco for @devtable/dashboard");
38598
+ const n = UW(e + "/assets/monaco-editor/min/vs");
38599
+ Al.config({ paths: { vs: n } }), Al.init().then((r) => console.log("monaco instance:", r));
38600
+ }, []);
38610
38601
  }
38611
- UW();
38612
- const YW = {
38602
+ const XW = {
38613
38603
  root: {
38614
38604
  height: "100vh",
38615
38605
  display: "flex",
@@ -38626,14 +38616,14 @@ const YW = {
38626
38616
  paddingTop: 60,
38627
38617
  height: "100vh"
38628
38618
  }
38629
- }, z9 = ne(function({
38619
+ }, F9 = ne(function({
38630
38620
  context: t,
38631
38621
  dashboard: n,
38632
38622
  update: r,
38633
38623
  className: o = "dashboard",
38634
38624
  config: i
38635
38625
  }) {
38636
- Vb(i);
38626
+ YW(i.basename), Vb(i);
38637
38627
  const {
38638
38628
  data: a = []
38639
38629
  } = ga(Ud), [s, c] = ee.useState(!1), u = ee.useMemo(() => Jb(n, a, t), [n]);
@@ -38676,7 +38666,7 @@ const YW = {
38676
38666
  saveDashboardChanges: d
38677
38667
  }),
38678
38668
  navbar: /* @__PURE__ */ l(l8, {}),
38679
- styles: YW,
38669
+ styles: XW,
38680
38670
  children: /* @__PURE__ */ l(Me, {
38681
38671
  className: `${o} dashboard-root`,
38682
38672
  sx: {
@@ -38693,7 +38683,7 @@ const YW = {
38693
38683
  })
38694
38684
  });
38695
38685
  });
38696
- const F9 = ne(({
38686
+ const H9 = ne(({
38697
38687
  context: e,
38698
38688
  dashboard: t,
38699
38689
  className: n = "dashboard",
@@ -38805,7 +38795,7 @@ var zw = { exports: {} };
38805
38795
  };
38806
38796
  });
38807
38797
  })(zw);
38808
- const XW = zw.exports;
38798
+ const QW = zw.exports;
38809
38799
  var Fw = { exports: {} };
38810
38800
  (function(e, t) {
38811
38801
  (function(n, r) {
@@ -38887,13 +38877,13 @@ var Fw = { exports: {} };
38887
38877
  };
38888
38878
  });
38889
38879
  })(Fw);
38890
- const QW = Fw.exports, H9 = () => Promise.resolve().then(() => sP).then(({ version: e }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
38880
+ const ZW = Fw.exports, B9 = () => Promise.resolve().then(() => sP).then(({ version: e }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
38881
+ er.extend(ZW);
38891
38882
  er.extend(QW);
38892
- er.extend(XW);
38893
38883
  er.tz.setDefault("UTC");
38894
38884
  export {
38895
38885
  p4 as ContextModel,
38896
- z9 as Dashboard,
38886
+ F9 as Dashboard,
38897
38887
  Lb as DashboardFilterType,
38898
38888
  S3 as DashboardMode,
38899
38889
  iu as DashboardModel,
@@ -38909,18 +38899,18 @@ export {
38909
38899
  um as PanelContextProvider,
38910
38900
  u4 as QueriesModel,
38911
38901
  c4 as QueryModel,
38912
- F9 as ReadOnlyDashboard,
38902
+ H9 as ReadOnlyDashboard,
38913
38903
  d4 as SQLSnippetModel,
38914
38904
  f4 as SQLSnippetsModel,
38915
38905
  _3 as ViewComponentTypeBackground,
38916
- V9 as ViewComponentTypeColor,
38917
- L9 as ViewComponentTypeName,
38906
+ z9 as ViewComponentTypeColor,
38907
+ V9 as ViewComponentTypeName,
38918
38908
  P4 as ViewModel,
38919
38909
  A4 as ViewsModel,
38920
38910
  Jb as createDashboardModel,
38921
38911
  N4 as createDashboardViewsModel,
38922
38912
  Y3 as getInitialFiltersPayload,
38923
- H9 as getVersion,
38913
+ B9 as getVersion,
38924
38914
  tS as useFullScreenPanelContext,
38925
38915
  We as useModelContext,
38926
38916
  _n as usePanelContext,