@zeedhi/common 1.82.0 → 1.82.1

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.
@@ -564,7 +564,7 @@ class ApexChart extends ComponentRender {
564
564
  return series;
565
565
  }
566
566
  translateOptions(propOptions = {}) {
567
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
567
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
568
568
  let value;
569
569
  value = this.getPropValue((_c = (_b = (_a = propOptions.annotations) === null || _a === void 0 ? void 0 : _a.yaxis) === null || _b === void 0 ? void 0 : _b.label) === null || _c === void 0 ? void 0 : _c.text);
570
570
  if (value)
@@ -607,6 +607,10 @@ class ApexChart extends ComponentRender {
607
607
  value = this.getPropValue((_y = propOptions.noData) === null || _y === void 0 ? void 0 : _y.text);
608
608
  if (value)
609
609
  propOptions.noData.text = I18n.translate(value);
610
+ value = this.getPropValue((_1 = (_0 = (_z = propOptions.chart) === null || _z === void 0 ? void 0 : _z.toolbar) === null || _0 === void 0 ? void 0 : _0.tools) === null || _1 === void 0 ? void 0 : _1.customIcons);
611
+ if (value && Array.isArray(value)) {
612
+ propOptions.chart.toolbar.tools.customIcons = value.map((item) => (Object.assign(Object.assign({}, item), { title: item.title ? I18n.translate(item.title) : item.title })));
613
+ }
610
614
  return propOptions;
611
615
  }
612
616
  /**
@@ -571,7 +571,7 @@
571
571
  return series;
572
572
  }
573
573
  translateOptions(propOptions = {}) {
574
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
574
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
575
575
  let value;
576
576
  value = this.getPropValue((_c = (_b = (_a = propOptions.annotations) === null || _a === void 0 ? void 0 : _a.yaxis) === null || _b === void 0 ? void 0 : _b.label) === null || _c === void 0 ? void 0 : _c.text);
577
577
  if (value)
@@ -614,6 +614,10 @@
614
614
  value = this.getPropValue((_y = propOptions.noData) === null || _y === void 0 ? void 0 : _y.text);
615
615
  if (value)
616
616
  propOptions.noData.text = core.I18n.translate(value);
617
+ value = this.getPropValue((_1 = (_0 = (_z = propOptions.chart) === null || _z === void 0 ? void 0 : _z.toolbar) === null || _0 === void 0 ? void 0 : _0.tools) === null || _1 === void 0 ? void 0 : _1.customIcons);
618
+ if (value && Array.isArray(value)) {
619
+ propOptions.chart.toolbar.tools.customIcons = value.map((item) => (Object.assign(Object.assign({}, item), { title: item.title ? core.I18n.translate(item.title) : item.title })));
620
+ }
617
621
  return propOptions;
618
622
  }
619
623
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.82.0",
3
+ "version": "1.82.1",
4
4
  "description": "Zeedhi Common",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -41,5 +41,5 @@
41
41
  "lodash.times": "4.3.*",
42
42
  "mockdate": "3.0.*"
43
43
  },
44
- "gitHead": "d0af176b021f44fcab43a0616bb82110c2cf1337"
44
+ "gitHead": "1bc7beb3fc58f2708365b45cdbacc74fd6802102"
45
45
  }