@fileverse-dev/dsheet 1.2.66 → 1.2.68

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 +35 -6
  2. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -14340,6 +14340,27 @@ If it is FALSE(), it returns the probability density function.`,
14340
14340
  repeat: "n",
14341
14341
  type: "rangeall"
14342
14342
  }]
14343
+ }, {
14344
+ n: "EPOCHTODATE",
14345
+ t: 2,
14346
+ d: "Converts a Unix epoch timestamp in seconds, milliseconds, or microseconds to a datetime in UTC.",
14347
+ a: "Vertical lookup.",
14348
+ m: [3, 4],
14349
+ p: [{
14350
+ name: "timestamp",
14351
+ detail: "A Unix epoch timestamp in seconds, milliseconds, or microseconds.",
14352
+ example: "1655906568893",
14353
+ require: "m",
14354
+ repeat: "n",
14355
+ type: "rangeall"
14356
+ }, {
14357
+ name: "time_unit",
14358
+ detail: "The unit of time in which the timestamp is expressed. 1 (default) indicates the time unit is seconds. 2 indicates the time unit is milliseconds. 3 indicates the time unit is microseconds.",
14359
+ example: "2",
14360
+ require: "o",
14361
+ repeat: "n",
14362
+ type: "rangeall"
14363
+ }]
14343
14364
  }, {
14344
14365
  n: "HLOOKUP",
14345
14366
  t: 2,
@@ -70076,9 +70097,17 @@ const Hse = [
70076
70097
  [4, 4],
70077
70098
  [5, 5],
70078
70099
  [6, 6]
70079
- ], hg = (e) => {
70080
- const t = (f) => f.toString().padStart(2, "0"), r = t(e.getDate()), i = t(e.getMonth() + 1), n = e.getFullYear(), a = t(e.getHours()), l = t(e.getMinutes()), c = t(e.getSeconds());
70081
- return { day: r, month: i, year: n, hours: a, minutes: l, seconds: c };
70100
+ ], hg = (e, t = !1) => {
70101
+ const r = (s) => s.toString().padStart(2, "0"), i = r(t ? e.getUTCDate() : e.getDate()), n = r(
70102
+ (t ? e.getUTCMonth() : e.getMonth()) + 1
70103
+ ), a = t ? e.getUTCFullYear() : e.getFullYear(), l = r(
70104
+ t ? e.getUTCHours() : e.getHours()
70105
+ ), c = r(
70106
+ t ? e.getUTCMinutes() : e.getMinutes()
70107
+ ), f = r(
70108
+ t ? e.getUTCSeconds() : e.getSeconds()
70109
+ );
70110
+ return { day: i, month: n, year: a, hours: l, minutes: c, seconds: f };
70082
70111
  };
70083
70112
  function Gse(e, t, r) {
70084
70113
  let i;
@@ -70199,7 +70228,7 @@ function Xse(e, t = 1) {
70199
70228
  default:
70200
70229
  throw new Error("Invalid time_unit. Use 1 (sec), 2 (ms), or 3 (µs).");
70201
70230
  }
70202
- const i = new Date(r), { day: n, month: a, year: l, hours: c, minutes: f, seconds: s } = hg(i);
70231
+ const i = new Date(r), { day: n, month: a, year: l, hours: c, minutes: f, seconds: s } = hg(i, !0);
70203
70232
  return `${n}/${a}/${l} ${c}:${f}:${s}`;
70204
70233
  }
70205
70234
  function Kse(e, t = 1, r = 1, i = 1) {
@@ -176904,7 +176933,7 @@ var Zxt = function(e, t, r, i) {
176904
176933
  H.preventDefault(), le(!0);
176905
176934
  var G = H.clientY, se = z.current.offsetHeight, ve = function(fe) {
176906
176935
  var me = se + (fe.clientY - G);
176907
- z.current.style.height = Math.max(me, 20) + "px";
176936
+ z.current.style.height = "".concat(Math.max(me, 20), "px");
176908
176937
  }, we = function() {
176909
176938
  le(!1), document.removeEventListener("mousemove", ve), document.removeEventListener("mouseup", we);
176910
176939
  };
@@ -185040,7 +185069,7 @@ const V_t = (e) => {
185040
185069
  try {
185041
185070
  (r = e == null ? void 0 : e.setDataBlockCalcFunction) == null || r.call(e, (c) => {
185042
185071
  var b, g, w, x, k;
185043
- const f = (g = (b = e.newValue) == null ? void 0 : b.f) == null ? void 0 : g.split("=")[1], s = f == null ? void 0 : f.match(/^(\w+)\((.*)\)$/);
185072
+ const f = (g = (b = e.newValue) == null ? void 0 : b.f) == null ? void 0 : g.split("=")[1], s = f == null ? void 0 : f.match(/^=?(\w+)(?:\(([^)]*)\)?)?$/);
185044
185073
  if (!s)
185045
185074
  throw new Error(`Invalid function call format: ${f}`);
185046
185075
  const o = s[2];
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.2.66",
5
+ "version": "1.2.68",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@fileverse-dev/dsheets-templates": "^0.0.28",
37
37
  "@fileverse-dev/formulajs": "^4.4.36",
38
- "@fileverse-dev/fortune-react": "1.2.63",
38
+ "@fileverse-dev/fortune-react": "1.2.64",
39
39
  "@fileverse/ui": "^4.1.7-patch-40",
40
40
  "classnames": "^2.5.1",
41
41
  "exceljs": "^4.4.0",