@fileverse-dev/dsheet 4.1.27 → 4.1.28

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.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as s, d as o, f as t, S as r, g as l, h as n, j as d, T as S, k as c, l as i, n as m, o as h, p, q as C, t as u, u as E, v as F, w as x, x as g, z as R, A as f, B as A, D as I, E as L, F as w, G as T, H as v, I as y, J as D, K as M, L as b, M as O, N as k, O as P, P as V } from "./index-B0c3kxL2.js";
1
+ import { C as s, d as o, f as t, S as r, g as l, h as n, j as d, T as S, k as c, l as i, n as m, o as h, p, q as C, t as u, u as E, v as F, w as x, x as g, z as R, A as f, B as A, D as I, E as L, F as w, G as T, H as v, I as y, J as D, K as M, L as b, M as O, N as k, O as P, P as V } from "./index-DiA_gqm4.js";
2
2
  import { cB as B, cC as K, cD as U, cJ as X, bx as _, e as G, f as H, l as J, a as j, dn as q, dp as N, bb as Y, dq as Z, dr as Q, dv as W, dw as $, dy as ee, I as ae, dO as se, el as oe, b4 as te } from "./executeStringFunction-KWYZ3QNg.js";
3
3
  import { FLVURL as le } from "@fileverse-dev/formulajs";
4
4
  import { E as de, S as Se } from "./constants-8Ij49Lxv.js";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { Sheet } from '../types';
2
+
3
+ export declare function isValidFilterSelection(selection: unknown): selection is NonNullable<Sheet['filter_select']>;
@@ -1,4 +1,4 @@
1
- const l = [
1
+ const o = [
2
2
  {
3
3
  name: "Gantt Chart",
4
4
  color: "#2E7D32",
@@ -53422,7 +53422,7 @@ const l = [
53422
53422
  }
53423
53423
  ]
53424
53424
  }
53425
- ], e = [
53425
+ ], E = [
53426
53426
  {
53427
53427
  name: "Expense Claim",
53428
53428
  color: "#0E7C7B",
@@ -56827,7 +56827,7 @@ const l = [
56827
56827
  }
56828
56828
  ]
56829
56829
  }
56830
- ], r = [
56830
+ ], t = [
56831
56831
  {
56832
56832
  name: "Event Marketing",
56833
56833
  config: {
@@ -115327,7 +115327,7 @@ const l = [
115327
115327
  }
115328
115328
  ]
115329
115329
  }
115330
- ], c = [
115330
+ ], y = [
115331
115331
  {
115332
115332
  name: "Invoice",
115333
115333
  status: 1,
@@ -117580,12 +117580,20 @@ const l = [
117580
117580
  }
117581
117581
  ]
117582
117582
  }
117583
- ], o = {
117584
- invoice: c,
117585
- "gantt-chart": l,
117586
- "expense-tracker": e,
117587
- "event-marketing": r
117583
+ ], s = {
117584
+ invoice: y,
117585
+ "gantt-chart": o,
117586
+ "expense-tracker": E,
117587
+ "event-marketing": t
117588
+ }, n = (c) => {
117589
+ const l = s[c];
117590
+ if (!l) return;
117591
+ let e = JSON.stringify(l);
117592
+ for (const r of l)
117593
+ !r || !r.id || (e = e.split(JSON.stringify(r.id)).join(JSON.stringify(crypto.randomUUID())));
117594
+ return JSON.parse(e);
117588
117595
  };
117589
117596
  export {
117590
- o as TEMPLATES_DATA
117597
+ s as TEMPLATES_DATA,
117598
+ n as getTemplateData
117591
117599
  };
@@ -1,10 +1,10 @@
1
1
  import * as BZ from "yjs";
2
- import { i as Yl, a as hl, s as eZ, r as ul, y as Il, b as pl, m as Rl } from "./index-B0c3kxL2.js";
2
+ import { i as Yl, a as hl, s as eZ, r as ul, y as Il, b as pl, m as Rl } from "./index-DiA_gqm4.js";
3
3
  import { g as sl } from "./executeStringFunction-KWYZ3QNg.js";
4
4
  import { Workbook as al } from "exceljs";
5
5
  import Kl from "luckyexcel";
6
- import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-Dh1Z7e6g.js";
7
- import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-CHVFhrZA.js";
6
+ import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-D15rKG4m.js";
7
+ import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-BqMo-DgB.js";
8
8
  import { toast as fZ } from "@fileverse/ui";
9
9
  var Zl = { exports: {} };
10
10
  (function(m) {
@@ -1,5 +1,5 @@
1
1
  import { i as w } from "./executeStringFunction-KWYZ3QNg.js";
2
- import { J as x } from "./xlsx-hyperlink-inline-Dh1Z7e6g.js";
2
+ import { J as x } from "./xlsx-hyperlink-inline-D15rKG4m.js";
3
3
  function g(o) {
4
4
  return o.startsWith("_xlnm.");
5
5
  }
@@ -1,9 +1,9 @@
1
1
  import { utils as S, write as nt } from "xlsx-js-style";
2
2
  import { Workbook as pt } from "exceljs";
3
3
  import { toast as rt } from "@fileverse/ui";
4
- import { J as dt, c as X, g as ht, a as mt } from "./xlsx-hyperlink-inline-Dh1Z7e6g.js";
4
+ import { J as dt, c as X, g as ht, a as mt } from "./xlsx-hyperlink-inline-D15rKG4m.js";
5
5
  import { b as gt } from "./executeStringFunction-KWYZ3QNg.js";
6
- import { e as bt } from "./index-B0c3kxL2.js";
6
+ import { e as bt } from "./index-DiA_gqm4.js";
7
7
  const xt = {
8
8
  1: "thin",
9
9
  2: "hair",
@@ -854,7 +854,7 @@ const Z = (t) => {
854
854
  O
855
855
  );
856
856
  });
857
- const { applyDefinedNamesToExcelWorkbook: ct } = await import("./xlsx-defined-names-CHVFhrZA.js");
857
+ const { applyDefinedNamesToExcelWorkbook: ct } = await import("./xlsx-defined-names-BqMo-DgB.js");
858
858
  ct(
859
859
  B,
860
860
  (k = (C = (s = t.current).getWorkbookContext) == null ? void 0 : C.call(s)) == null ? void 0 : k.definedNames,
@@ -1,5 +1,5 @@
1
1
  import { g as Rt, c as yt } from "./executeStringFunction-KWYZ3QNg.js";
2
- import { c as wt } from "./index-B0c3kxL2.js";
2
+ import { c as wt } from "./index-DiA_gqm4.js";
3
3
  function jt(J, nt) {
4
4
  const g = J.getImages();
5
5
  if (!g.length) return [];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "4.1.27",
5
+ "version": "4.1.28",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/fileverse/fileverse-dsheets.git"