@platforma-sdk/ui-vue 1.7.31 → 1.7.34

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @platforma-sdk/ui-vue
2
2
 
3
+ ## 1.7.34
4
+
5
+ ### Patch Changes
6
+
7
+ - eddcfed: Add Errors page to ui-examples
8
+
9
+ ## 1.7.32
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [7c9d23c]
14
+ - @milaboratories/uikit@2.0.1
15
+
3
16
  ## 1.7.31
4
17
 
5
18
  ### Patch Changes
package/dist/lib.js CHANGED
@@ -3394,12 +3394,17 @@ function BI(r, e) {
3394
3394
  const s = () => {
3395
3395
  r.loadBlockState().then((l) => {
3396
3396
  a.loaded = !0;
3397
- const u = zw(l, r), c = e(u);
3397
+ const u = zw(l, r), c = e(u), f = Object.fromEntries(
3398
+ Object.entries(c.routes).map(([h, m]) => {
3399
+ const x = typeof m == "function" ? m() : m;
3400
+ return [h, vw(x)];
3401
+ })
3402
+ );
3398
3403
  t = Object.assign(u, {
3399
3404
  ...c,
3400
- routes: Object.fromEntries(
3401
- Object.entries(c.routes).map(([f, h]) => [f, vw(h)])
3402
- )
3405
+ getRoute(h) {
3406
+ return f[h];
3407
+ }
3403
3408
  });
3404
3409
  }).catch((l) => {
3405
3410
  console.error("load initial state error", l), a.error = l;
@@ -11944,6 +11949,7 @@ const EO = { class: "ui-slider__wrapper" }, OO = { class: "ui-slider__label-sect
11944
11949
  cpu: HA,
11945
11950
  "cross-bars": "cross-bars.svg",
11946
11951
  "dark-mode": "dark-mode.svg",
11952
+ "delete-bin": "delete-bin.svg",
11947
11953
  delete: "delete.svg",
11948
11954
  "dendrogram-X-1": "dendrogram-X-1.svg",
11949
11955
  "dendrogram-X": "dendrogram-X.svg",
@@ -12450,6 +12456,7 @@ const E3 = [
12450
12456
  "cpu",
12451
12457
  "cross-bars",
12452
12458
  "dark-mode",
12459
+ "delete-bin",
12453
12460
  "delete",
12454
12461
  "dendrogram-X-1",
12455
12462
  "dendrogram-X",
@@ -12583,7 +12590,7 @@ const WR = /* @__PURE__ */ Ju(BR, [["render", jR]]), UR = { class: "block block_
12583
12590
  }, s = T(() => e.loaded ? e.useApp().href : void 0), a = T(() => {
12584
12591
  if (e.loaded) {
12585
12592
  const l = e.useApp(), u = t(l.snapshot.navigationState.href);
12586
- return u ? l.routes[u] : void 0;
12593
+ return u ? l.getRoute(u) : void 0;
12587
12594
  }
12588
12595
  });
12589
12596
  return (l, u) => (_(), C("div", UR, [