fluency-v8-components 1.1.5 → 1.1.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.
@@ -20108,6 +20108,10 @@ const YX = { class: "fixed inset-0 overflow-hidden" }, WX = { class: "absolute i
20108
20108
  size: {
20109
20109
  type: String,
20110
20110
  default: "medium"
20111
+ },
20112
+ tabField: {
20113
+ type: String,
20114
+ default: "name"
20111
20115
  }
20112
20116
  },
20113
20117
  emits: ["switch"],
@@ -20115,7 +20119,7 @@ const YX = { class: "fixed inset-0 overflow-hidden" }, WX = { class: "absolute i
20115
20119
  const n = e, r = t, i = n.tabs, a = Xe(() => n.size === "small" ? "16" : n.size === "large" ? "32" : "24");
20116
20120
  function s(o) {
20117
20121
  i.forEach((l) => {
20118
- l.name === n.current && (l.current = !1), l.name === o && (l.current = !0);
20122
+ l[n.tabField] === n.current && (l.current = !1), l[n.tabField] === o && (l.current = !0);
20119
20123
  }), r("switch", o);
20120
20124
  }
20121
20125
  return (o, l) => (G(), ge("div", null, [
@@ -20127,7 +20131,7 @@ const YX = { class: "fixed inset-0 overflow-hidden" }, WX = { class: "absolute i
20127
20131
  A.current ? "bg-sky-100 dark:bg-slate-700 text-sky-700 dark:text-sky-100" : "text-slate-500 dark:text-slate-200 opacity-50",
20128
20132
  "cursor-pointer rounded-md px-4 py-2 hover:bg-sky-100 dark:hover:bg-slate-800"
20129
20133
  ]),
20130
- onClick: (u) => s(A.name)
20134
+ onClick: (u) => s(A[n.tabField])
20131
20135
  }, [
20132
20136
  K("span", {
20133
20137
  class: ut([
@@ -40359,6 +40363,14 @@ const $1e = /* @__PURE__ */ br(Q1e, [["render", P1e]]), H1e = {
40359
40363
  return this.depth > 0 ? Wc + this.depth * (kl + Gc) + kl + Cw : 100;
40360
40364
  }
40361
40365
  },
40366
+ watch: {
40367
+ id: {
40368
+ handler(e) {
40369
+ this.getMaxDepthAndY(this.chartData), this.drawChart();
40370
+ },
40371
+ deep: !0
40372
+ }
40373
+ },
40362
40374
  mounted() {
40363
40375
  this.initializeChart(), this.getMaxDepthAndY(this.chartData), this.drawChart();
40364
40376
  },
@@ -60150,7 +60162,7 @@ function(e) {
60150
60162
  */
60151
60163
  function(e) {
60152
60164
  function t() {
60153
- return (fn.canvg ? Promise.resolve(fn.canvg) : import("./index.es-DSa1EEwk.mjs")).catch(function(n) {
60165
+ return (fn.canvg ? Promise.resolve(fn.canvg) : import("./index.es-SY2webm4.mjs")).catch(function(n) {
60154
60166
  return Promise.reject(new Error("Could not load canvg: " + n));
60155
60167
  }).then(function(n) {
60156
60168
  return n.default ? n.default : n;
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-Db_VJGBP.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-vQM7hidJ.mjs";
2
2
  var fn = {}, cn = {}, cr, vn;
3
3
  function Q() {
4
4
  if (vn) return cr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluency-v8-components",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "main": "dist/fluency-v8-components.umd.js",
5
5
  "module": "dist/fluency-v8-components.es.js",
6
6
  "types": "dist/index.d.ts",