fluency-v8-components 1.4.5 → 1.4.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.
@@ -3756,12 +3756,10 @@ function rj(e, t, n, r, i, a) {
3756
3756
  "input-icon cursor-pointer",
3757
3757
  { "pb-5": n.error },
3758
3758
  { hidden: n.readonly }
3759
- ])
3759
+ ]),
3760
+ onClick: t[2] || (t[2] = (...o) => a.generateToken && a.generateToken(...o))
3760
3761
  }, [
3761
- he(s, {
3762
- class: "icon-md",
3763
- onClick: a.generateToken
3764
- }, null, 8, ["onClick"])
3762
+ he(s, { class: "icon-md" })
3765
3763
  ], 2),
3766
3764
  n.error ? (K(), fe("div", nj, ze(n.error), 1)) : At("", !0)
3767
3765
  ]);
@@ -6794,10 +6792,6 @@ const vv = /* @__PURE__ */ V2(sV), oV = { class: "flex items-center" }, lV = { c
6794
6792
  }
6795
6793
  }, uV = {
6796
6794
  props: {
6797
- error: {
6798
- type: String,
6799
- default: ""
6800
- },
6801
6795
  radioValue: {
6802
6796
  type: String,
6803
6797
  required: !0
@@ -18655,8 +18649,9 @@ const FU = {
18655
18649
  }
18656
18650
  return (a, s) => (K(), fe("button", {
18657
18651
  class: st([
18658
- "circle-btn std-btn-blue relative",
18652
+ "circle-btn relative",
18659
18653
  { "p-1.5": e.dense },
18654
+ { "std-btn-blue": e.color === "blue" },
18660
18655
  { "std-btn-red": e.color === "red" },
18661
18656
  { "std-btn-green": e.color === "green" }
18662
18657
  ]),
@@ -35495,6 +35490,14 @@ const Lge = /* @__PURE__ */ wr(Cge, [["render", Fge]]), Uge = {
35495
35490
  legend: null
35496
35491
  };
35497
35492
  },
35493
+ watch: {
35494
+ theme: {
35495
+ handler() {
35496
+ this.svg && this.createChart();
35497
+ },
35498
+ immediate: !0
35499
+ }
35500
+ },
35498
35501
  mounted() {
35499
35502
  this.initializeChart(), this.createChart();
35500
35503
  },
@@ -40841,6 +40844,8 @@ const Fye = { class: "col items-center" }, Lye = { class: "text-center" }, Uye =
40841
40844
  const t = e, n = _e(null), r = _e(null);
40842
40845
  dn([() => t.buckets], () => {
40843
40846
  i();
40847
+ }), dn([() => t.theme], () => {
40848
+ i();
40844
40849
  });
40845
40850
  function i() {
40846
40851
  if (!t.buckets) return;
@@ -41118,6 +41123,12 @@ const Oye = /* @__PURE__ */ wr(Iye, [["render", Nye]]), Mye = {
41118
41123
  this.getMaxDepthAndY(this.chartData), this.drawChart();
41119
41124
  },
41120
41125
  deep: !0
41126
+ },
41127
+ theme: {
41128
+ handler(e) {
41129
+ this.svg && (this.svg.selectAll("*").remove(), this.getMaxDepthAndY(this.chartData), this.drawChart());
41130
+ },
41131
+ immediate: !0
41121
41132
  }
41122
41133
  },
41123
41134
  mounted() {
@@ -41935,7 +41946,7 @@ const eke = /* @__PURE__ */ wr($ye, [["render", Kye]]), zye = { class: "w-full s
41935
41946
  }, {
41936
41947
  default: Oe(() => [
41937
41948
  he(J(Q2), {
41938
- class: "w-full text-sm bg-transparent px-2 border-0 outline-none focus:outline-none focus:ring-0",
41949
+ class: "w-full text-sm bg-transparent px-2 pr-10 border-0 outline-none focus:outline-none focus:ring-0",
41939
41950
  onChange: l[0] || (l[0] = (A) => a.value = A.target.value),
41940
41951
  displayValue: (A) => A.label
41941
41952
  }, null, 8, ["displayValue"]),
@@ -42059,7 +42070,7 @@ const eke = /* @__PURE__ */ wr($ye, [["render", Kye]]), zye = { class: "w-full s
42059
42070
  });
42060
42071
  };
42061
42072
  }
42062
- }, vbe = { class: "py-1 px-2 std-white std-white-text" }, ybe = { key: 1 }, bbe = { class: "relative rounded-lg p-4 text-sm leading-6 hover:white-bg-hover hover:dark:dark-bg-hover" }, wbe = { class: "relative row text-sm" }, Bbe = { class: "menu" }, xbe = { class: "menu-button" }, Ake = {
42073
+ }, vbe = { class: "py-1 px-2 std-white std-white-text" }, ybe = { key: 1 }, bbe = { class: "relative rounded-lg p-4 text-sm leading-6 hover:white-bg-hover hover:dark:dark-bg-hover" }, wbe = { class: "relative row text-sm" }, Bbe = { class: "menu hover:opacity-50" }, xbe = { class: "menu-button" }, Ake = {
42063
42074
  __name: "MenuDesktop",
42064
42075
  props: {
42065
42076
  navigation: Array,
@@ -62834,7 +62845,7 @@ function(e) {
62834
62845
  var A = l.getContext("2d");
62835
62846
  A.fillStyle = "#fff", A.fillRect(0, 0, l.width, l.height);
62836
62847
  var u = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, d = this;
62837
- return (Bn.canvg ? Promise.resolve(Bn.canvg) : import("./index.es-BL37nGHt.mjs")).catch(function(f) {
62848
+ return (Bn.canvg ? Promise.resolve(Bn.canvg) : import("./index.es-WQV-hJP-.mjs")).catch(function(f) {
62838
62849
  return Promise.reject(new Error("Could not load canvg: " + f));
62839
62850
  }).then(function(f) {
62840
62851
  return f.default ? f.default : f;
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-DVmLdvgq.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-DwYYvTaG.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.4.5",
3
+ "version": "1.4.6",
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",
@@ -1,8 +1,9 @@
1
1
  <template>
2
2
  <button
3
3
  :class="[
4
- 'circle-btn std-btn-blue relative',
4
+ 'circle-btn relative',
5
5
  { 'p-1.5': dense },
6
+ { 'std-btn-blue': color === 'blue' },
6
7
  { 'std-btn-red': color === 'red' },
7
8
  { 'std-btn-green': color === 'green' },
8
9
  ]"
@@ -34,6 +34,16 @@ export default {
34
34
  legend: null,
35
35
  };
36
36
  },
37
+ watch: {
38
+ theme: {
39
+ handler() {
40
+ if (this.svg) {
41
+ this.createChart();
42
+ }
43
+ },
44
+ immediate: true,
45
+ },
46
+ },
37
47
  mounted() {
38
48
  this.initializeChart();
39
49
  this.createChart();
@@ -39,6 +39,9 @@ const myplotLegend = ref(null);
39
39
  watch([() => props.buckets], () => {
40
40
  plotGraph();
41
41
  });
42
+ watch([() => props.theme], () => {
43
+ plotGraph();
44
+ });
42
45
 
43
46
  // function defs
44
47
  function plotGraph() {
@@ -176,6 +176,16 @@ export default {
176
176
  },
177
177
  deep: true,
178
178
  },
179
+ theme: {
180
+ handler(newVal) {
181
+ if (this.svg) {
182
+ this.svg.selectAll("*").remove(); // Clear existing SVG content
183
+ this.getMaxDepthAndY(this.chartData);
184
+ this.drawChart();
185
+ }
186
+ },
187
+ immediate: true,
188
+ },
179
189
  },
180
190
  mounted() {
181
191
  this.initializeChart();
@@ -17,10 +17,10 @@
17
17
  { 'pb-5': error },
18
18
  { hidden: readonly },
19
19
  ]"
20
+ @click="generateToken"
20
21
  >
21
22
  <CurrencyDollarIcon
22
23
  class="icon-md"
23
- @click="generateToken"
24
24
  />
25
25
  </span>
26
26
  <div v-if="error" class="std-red-text text-sm">
@@ -16,10 +16,6 @@
16
16
  <script>
17
17
  export default {
18
18
  props: {
19
- error: {
20
- type: String,
21
- default: "",
22
- },
23
19
  radioValue: {
24
20
  type: String,
25
21
  required: true,
@@ -6,7 +6,7 @@
6
6
  @update:model-value="emits('update', $event)"
7
7
  >
8
8
  <ComboboxInput
9
- class="w-full text-sm bg-transparent px-2 border-0 outline-none focus:outline-none focus:ring-0"
9
+ class="w-full text-sm bg-transparent px-2 pr-10 border-0 outline-none focus:outline-none focus:ring-0"
10
10
  @change="query = $event.target.value"
11
11
  :displayValue="(option) => option.label"
12
12
  />
@@ -61,7 +61,7 @@
61
61
  </transition>
62
62
  </Menu>
63
63
  <router-link v-else :to="{ name: item.route }">
64
- <div class="menu">
64
+ <div class="menu hover:opacity-50">
65
65
  <div class="menu-button">
66
66
  <component :is="item.icon" class="menu-icon" aria-hidden="true" />
67
67
  {{ item.name }}