@fileverse-dev/dsheet 1.0.65 → 1.0.67

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.
Files changed (2) hide show
  1. package/dist/index.es.js +51 -49
  2. package/package.json +3 -3
package/dist/index.es.js CHANGED
@@ -23734,12 +23734,12 @@ If the value is FALSE, return the accrued interest from the first interest accru
23734
23734
  }, {
23735
23735
  name: "HK",
23736
23736
  pos: "before",
23737
- value: "HK$",
23737
+ value: "K$",
23738
23738
  geckoId: "hkd"
23739
23739
  }, {
23740
23740
  name: "JPY",
23741
23741
  pos: "before",
23742
- value: "JP¥",
23742
+ value: "jp¥",
23743
23743
  geckoId: "jpy"
23744
23744
  }, {
23745
23745
  name: "Australian Dollar",
@@ -23754,7 +23754,7 @@ If the value is FALSE, return the accrued interest from the first interest accru
23754
23754
  }, {
23755
23755
  name: "Bahraini Dinar",
23756
23756
  pos: "before",
23757
- value: "BHD",
23757
+ value: "NAR",
23758
23758
  geckoId: "bhd"
23759
23759
  }, {
23760
23760
  name: "Bermudian Dollar",
@@ -23774,7 +23774,7 @@ If the value is FALSE, return the accrued interest from the first interest accru
23774
23774
  }, {
23775
23775
  name: "Swiss Franc",
23776
23776
  pos: "before",
23777
- value: "CHF",
23777
+ value: "CF",
23778
23778
  geckoId: "chf"
23779
23779
  }, {
23780
23780
  name: "Chilean Peso",
@@ -23784,32 +23784,32 @@ If the value is FALSE, return the accrued interest from the first interest accru
23784
23784
  }, {
23785
23785
  name: "Danish Krone",
23786
23786
  pos: "after",
23787
- value: "kr.",
23787
+ value: "kr",
23788
23788
  geckoId: "dkk"
23789
23789
  }, {
23790
23790
  name: "Georgian Lari",
23791
23791
  pos: "before",
23792
- value: "GEL",
23792
+ value: "gl",
23793
23793
  geckoId: "gel"
23794
23794
  }, {
23795
23795
  name: "Hungarian Forint",
23796
23796
  pos: "before",
23797
- value: "HUF",
23797
+ value: "Ft",
23798
23798
  geckoId: "huf"
23799
23799
  }, {
23800
23800
  name: "Indonesian Rupiah",
23801
23801
  pos: "before",
23802
- value: "Rp.",
23802
+ value: "Rp",
23803
23803
  geckoId: "idr"
23804
23804
  }, {
23805
23805
  name: "New Israeli Shekel",
23806
23806
  pos: "before",
23807
- value: "£",
23807
+ value: "N£",
23808
23808
  geckoId: "ils"
23809
23809
  }, {
23810
23810
  name: "Indian Rupee",
23811
23811
  pos: "before",
23812
- value: "Rs.",
23812
+ value: "",
23813
23813
  geckoId: "inr"
23814
23814
  }, {
23815
23815
  name: "Soutth korean won",
@@ -23819,12 +23819,12 @@ If the value is FALSE, return the accrued interest from the first interest accru
23819
23819
  }, {
23820
23820
  name: "Kuwaiti Dinar",
23821
23821
  pos: "before",
23822
- value: "KWD",
23822
+ value: "KW",
23823
23823
  geckoId: "kwd"
23824
23824
  }, {
23825
23825
  name: "Sri Lanka Rupee",
23826
23826
  pos: "before",
23827
- value: "Rs.",
23827
+ value: "L₹",
23828
23828
  geckoId: "lkr"
23829
23829
  }, {
23830
23830
  name: "Myanmar Kyat",
@@ -23834,12 +23834,12 @@ If the value is FALSE, return the accrued interest from the first interest accru
23834
23834
  }, {
23835
23835
  name: "Mexican Peso",
23836
23836
  pos: "before",
23837
- value: "Mex$",
23837
+ value: "PO$",
23838
23838
  geckoId: "mxn"
23839
23839
  }, {
23840
23840
  name: "Malaysian Ringgit",
23841
23841
  pos: "before",
23842
- value: "RM",
23842
+ value: "R",
23843
23843
  geckoId: "myr"
23844
23844
  }, {
23845
23845
  name: "Nigerian Naira",
@@ -23849,12 +23849,12 @@ If the value is FALSE, return the accrued interest from the first interest accru
23849
23849
  }, {
23850
23850
  name: "Norwegian Krone",
23851
23851
  pos: "after",
23852
- value: "kr",
23852
+ value: "kr",
23853
23853
  geckoId: "nok"
23854
23854
  }, {
23855
23855
  name: "New Zealand Dollar",
23856
23856
  pos: "before",
23857
- value: "$",
23857
+ value: "Z$",
23858
23858
  geckoId: "nzd"
23859
23859
  }, {
23860
23860
  name: "Philippine Peso",
@@ -23864,7 +23864,7 @@ If the value is FALSE, return the accrued interest from the first interest accru
23864
23864
  }, {
23865
23865
  name: "Pakistan Rupee",
23866
23866
  pos: "before",
23867
- value: "Rs.",
23867
+ value: "P₹",
23868
23868
  geckoId: "pkr"
23869
23869
  }, {
23870
23870
  name: "Polish Zloty",
@@ -23874,7 +23874,7 @@ If the value is FALSE, return the accrued interest from the first interest accru
23874
23874
  }, {
23875
23875
  name: "Russian Ruble",
23876
23876
  pos: "after",
23877
- value: "",
23877
+ value: "RU",
23878
23878
  geckoId: "rub"
23879
23879
  }, {
23880
23880
  name: "Saudi Riyal",
@@ -23889,7 +23889,7 @@ If the value is FALSE, return the accrued interest from the first interest accru
23889
23889
  }, {
23890
23890
  name: "Singapore Dollar",
23891
23891
  pos: "before",
23892
- value: "S$",
23892
+ value: "P$",
23893
23893
  geckoId: "sgd"
23894
23894
  }, {
23895
23895
  name: "Thai Baht",
@@ -23899,7 +23899,7 @@ If the value is FALSE, return the accrued interest from the first interest accru
23899
23899
  }, {
23900
23900
  name: "Turkish Lira",
23901
23901
  pos: "before",
23902
- value: "",
23902
+ value: "TL",
23903
23903
  geckoId: "try"
23904
23904
  }, {
23905
23905
  name: "Ukrainian Hryvnia",
@@ -95548,7 +95548,7 @@ function yx(e, r) {
95548
95548
  return KI(this, function(c) {
95549
95549
  switch (c.label) {
95550
95550
  case 0:
95551
- return console.log("Fetching price for", e, r), a = "".concat(e, "-").concat(r).toLowerCase(), n = Date.now(), Su[a] && n - Su[a].timestamp < i2e ? [2, Su[a].price] : Su[a] ? (kE(wE).then(function(f) {
95551
+ return a = "".concat(e, "-").concat(r).toLowerCase(), n = Date.now(), Su[a] && n - Su[a].timestamp < i2e ? [2, Su[a].price] : Su[a] ? (kE(wE).then(function(f) {
95552
95552
  xE(f, n);
95553
95553
  }), [2, Su[a].price]) : [4, kE(wE)];
95554
95554
  case 1:
@@ -163172,7 +163172,7 @@ var Syt = function() {
163172
163172
  ref: v,
163173
163173
  className: "fortune-toolbar-item",
163174
163174
  onKeyDown: function(b) {
163175
- b.stopPropagation(), console.log("clicked");
163175
+ b.stopPropagation();
163176
163176
  }
163177
163177
  }, /* @__PURE__ */ z.createElement(Uk, {
163178
163178
  open: d,
@@ -164049,7 +164049,7 @@ var Syt = function() {
164049
164049
  default:
164050
164050
  return r;
164051
164051
  }
164052
- }, n7 = function(r, t) {
164052
+ }, ZS = function(r, t) {
164053
164053
  switch (r) {
164054
164054
  case "$":
164055
164055
  return "usd";
@@ -164059,57 +164059,57 @@ var Syt = function() {
164059
164059
  return "gbp";
164060
164060
  case "CN¥":
164061
164061
  return "cny";
164062
- case "HK$":
164062
+ case "K$":
164063
164063
  return "hkd";
164064
- case "JP¥":
164064
+ case "jp¥":
164065
164065
  return "jpy";
164066
164066
  case "AU$":
164067
164067
  return "aud";
164068
164068
  case "৳":
164069
164069
  return "bdt";
164070
- case "BHD":
164070
+ case "NAR":
164071
164071
  return "bhd";
164072
164072
  case "R$":
164073
164073
  return "brl";
164074
164074
  case "CA$":
164075
164075
  return "cad";
164076
- case "CHF":
164076
+ case "CF":
164077
164077
  return "chf";
164078
164078
  case "CLP$":
164079
164079
  return "clp";
164080
- case "kr.":
164080
+ case "kr":
164081
164081
  return "dkk";
164082
- case "GEL":
164082
+ case "gl":
164083
164083
  return "gel";
164084
- case "HUF":
164084
+ case "ft":
164085
164085
  return "huf";
164086
- case "Rp.":
164086
+ case "Rp":
164087
164087
  return "idr";
164088
- case "Rs.":
164088
+ case "Rs":
164089
164089
  return "inr";
164090
164090
  case "₩":
164091
164091
  return "krw";
164092
- case "KWD":
164092
+ case "KW":
164093
164093
  return "kwd";
164094
164094
  case "K":
164095
164095
  return "mmk";
164096
- case "Mex$":
164096
+ case "PO$":
164097
164097
  return "mxn";
164098
- case "RM":
164098
+ case "R":
164099
164099
  return "myr";
164100
164100
  case "₦":
164101
164101
  return "ngn";
164102
- case "kr":
164102
+ case "kr":
164103
164103
  return "nok";
164104
164104
  case "₱":
164105
164105
  return "php";
164106
164106
  case "zł":
164107
164107
  return "pln";
164108
- case "":
164108
+ case "RU":
164109
164109
  return "rub";
164110
164110
  case "Rial":
164111
164111
  return "sar";
164112
- case "S$":
164112
+ case "P$":
164113
164113
  return "sgd";
164114
164114
  case "฿":
164115
164115
  return "thb";
@@ -164122,7 +164122,7 @@ var Syt = function() {
164122
164122
  default:
164123
164123
  return t || "usd";
164124
164124
  }
164125
- }, ZS = {
164125
+ }, XS = {
164126
164126
  BTC: "bitcoin",
164127
164127
  ETH: "ethereum",
164128
164128
  SOL: "solana"
@@ -164139,7 +164139,7 @@ function yH(e) {
164139
164139
  row: h,
164140
164140
  col: v
164141
164141
  });
164142
- }), f = typeof a == "string" && a.trim() !== "" ? a : "ETH", f = f.toUpperCase(), s = typeof ZS[f] == "string" ? ZS[f] : "ethereum", l = [], c.forEach(function(d) {
164142
+ }), f = typeof a == "string" && a.trim() !== "" ? a : "ETH", f = f.toUpperCase(), s = typeof XS[f] == "string" ? XS[f] : "ethereum", l = [], c.forEach(function(d) {
164143
164143
  var h, v, m, p, g = d.row, y = d.col, b = (h = o[g]) === null || h === void 0 ? void 0 : h[y], w = 0;
164144
164144
  if ((b == null ? void 0 : b.baseValue) !== void 0)
164145
164145
  w = b.baseValue;
@@ -164148,13 +164148,13 @@ function yH(e) {
164148
164148
  Number.isNaN(x) || (w = x);
164149
164149
  }
164150
164150
  if (!(!w || Number.isNaN(w))) {
164151
- var C = (p = b == null ? void 0 : b.m) === null || p === void 0 ? void 0 : p.split(" ")[0], S = l2e(s, n7(C, b == null ? void 0 : b.baseCurrency)), _ = w / S;
164152
- console.log(n7(C, b == null ? void 0 : b.baseCurrency)), l.push({
164151
+ var C = (p = b == null ? void 0 : b.m) === null || p === void 0 ? void 0 : p.split(" ")[0], S = l2e(s, ZS(C, b == null ? void 0 : b.baseCurrency)), _ = w / S;
164152
+ l.push({
164153
164153
  row: g,
164154
164154
  col: y,
164155
164155
  baseValue: w,
164156
164156
  cryptoValue: _,
164157
- baseCurrency: n7(C) || "usd"
164157
+ baseCurrency: ZS(C) || "usd"
164158
164158
  });
164159
164159
  }
164160
164160
  }), t(function(d) {
@@ -164371,7 +164371,7 @@ var Wyt = function(e, r, t, a) {
164371
164371
  done: !0
164372
164372
  };
164373
164373
  }
164374
- }, XS = [{
164374
+ }, KS = [{
164375
164375
  label: "Bitcoin (BTC)",
164376
164376
  value: "BTC",
164377
164377
  icon: "Btc"
@@ -164393,7 +164393,7 @@ var Wyt = function(e, r, t, a) {
164393
164393
  if (!_) return null;
164394
164394
  var D = zi(_, "ct");
164395
164395
  if (!(D != null && D.fa)) return null;
164396
- var R = XS.find(function(I) {
164396
+ var R = KS.find(function(I) {
164397
164397
  return D.fa.includes(I.value);
164398
164398
  });
164399
164399
  return R ? R.value : null;
@@ -164468,7 +164468,7 @@ var Wyt = function(e, r, t, a) {
164468
164468
  }
164469
164469
  }))), /* @__PURE__ */ z.createElement("div", {
164470
164470
  className: "cds-list"
164471
- }, XS.map(function(y) {
164471
+ }, KS.map(function(y) {
164472
164472
  return /* @__PURE__ */ z.createElement("div", {
164473
164473
  key: y.value,
164474
164474
  className: "flex items-center justify-between cds-option".concat(f === y.value ? " selected" : ""),
@@ -164591,7 +164591,7 @@ var Wyt = function(e, r, t, a) {
164591
164591
  done: !0
164592
164592
  };
164593
164593
  }
164594
- }, KS = function(e, r, t) {
164594
+ }, n7 = function(e, r, t) {
164595
164595
  if (t || arguments.length === 2) for (var a = 0, n = r.length, i; a < n; a++)
164596
164596
  (i || !(a in r)) && (i || (i = Array.prototype.slice.call(r, 0, a)), i[a] = r[a]);
164597
164597
  return e.concat(i || Array.prototype.slice.call(r));
@@ -165627,14 +165627,16 @@ var Wyt = function(e, r, t, a) {
165627
165627
  if (V) {
165628
165628
  var De = zi(V, "ct");
165629
165629
  if (De != null && De.fa) {
165630
- var et = KS(KS([], bH, !0), Vr(l).currencyDetail.map(function(_t) {
165630
+ var et = n7(n7([], bH, !0), Vr(l).currencyDetail.map(function(_t) {
165631
165631
  return {
165632
165632
  label: _t.name,
165633
165633
  value: _t.value,
165634
165634
  icon: void 0,
165635
165635
  type: "fiat"
165636
165636
  };
165637
- }), !0), gt = et.find(function(_t) {
165637
+ }), !0), gt = n7([], et, !0).sort(function(_t, wt) {
165638
+ return wt.value.length - _t.value.length;
165639
+ }).find(function(_t) {
165638
165640
  return De.fa.includes(_t.value);
165639
165641
  });
165640
165642
  gt && (Tt = gt.label);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "1.0.65",
5
+ "version": "1.0.67",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -36,8 +36,8 @@
36
36
  "@fileverse-dev/dsheets-templates": "^0.0.17",
37
37
  "@fileverse-dev/formula-parser": "^0.2.37",
38
38
  "@fileverse-dev/formulajs": "^4.4.11-mod-83",
39
- "@fileverse-dev/fortune-core": "^1.0.55",
40
- "@fileverse-dev/fortune-react": "^1.0.55",
39
+ "@fileverse-dev/fortune-core": "^1.0.59",
40
+ "@fileverse-dev/fortune-react": "^1.0.59",
41
41
  "@fileverse/ui": "^4.1.7-patch-18",
42
42
  "classnames": "^2.5.1",
43
43
  "exceljs": "^4.4.0",