laif-ds 0.1.42 → 0.1.43

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.
@@ -1,6 +1,3 @@
1
1
  "use client";
2
- import { __require as r } from "../node_modules/use-sync-external-store/shim/index.js";
3
- var i = r();
4
- export {
5
- i as s
6
- };
2
+ import { __require as e } from "../node_modules/react-is/index.js";
3
+ e();
@@ -1,3 +1,6 @@
1
1
  "use client";
2
- import { __require as e } from "../node_modules/react-is/index.js";
3
- e();
2
+ import { __require as r } from "../node_modules/use-sync-external-store/shim/index.js";
3
+ var i = r();
4
+ export {
5
+ i as s
6
+ };
@@ -1,5 +1,8 @@
1
1
  "use client";
2
- var e = { exports: {} };
2
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
3
+ import { __require as e } from "../node_modules/style-to-js/cjs/index.js";
4
+ var t = e();
5
+ const a = /* @__PURE__ */ r(t);
3
6
  export {
4
- e as __module
7
+ a as default
5
8
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
3
- import { __require as e } from "../node_modules/style-to-js/cjs/index.js";
4
- var t = e();
5
- const a = /* @__PURE__ */ r(t);
2
+ import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
3
+ import { __require as r } from "../node_modules/extend/index.js";
4
+ var t = r();
5
+ const x = /* @__PURE__ */ e(t);
6
6
  export {
7
- a as default
7
+ x as default
8
8
  };
@@ -1,8 +1,5 @@
1
1
  "use client";
2
- import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
3
- import { __require as r } from "../node_modules/extend/index.js";
4
- var t = r();
5
- const x = /* @__PURE__ */ e(t);
2
+ var e = { exports: {} };
6
3
  export {
7
- x as default
4
+ e as __module
8
5
  };
@@ -1,8 +1,5 @@
1
1
  "use client";
2
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
3
- import { __require as e } from "../node_modules/classnames/index.js";
4
- var s = e();
5
- const o = /* @__PURE__ */ r(s);
2
+ var e = {};
6
3
  export {
7
- o as default
4
+ e as __exports
8
5
  };
@@ -1,5 +1,8 @@
1
1
  "use client";
2
- var e = {};
2
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
3
+ import { __require as e } from "../node_modules/classnames/index.js";
4
+ var s = e();
5
+ const o = /* @__PURE__ */ r(s);
3
6
  export {
4
- e as __exports
7
+ o as default
5
8
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as o, jsxs as M, Fragment as N } from "react/jsx-runtime";
3
3
  import { useContext as R, useRef as a, useState as s, useCallback as k, useMemo as y, useEffect as u } from "react";
4
- import A from "../../../../../_virtual/index7.js";
4
+ import A from "../../../../../_virtual/index8.js";
5
5
  import B from "../../../../../_virtual/debounce.js";
6
6
  import { GanttContext as F } from "../Gantt/GanttContext.js";
7
7
  import { transformData as O } from "../../utils/transformData.js";
@@ -1,126 +1,110 @@
1
1
  "use client";
2
- import { jsxs as l, jsx as p } from "react/jsx-runtime";
3
- import { useDataCrossTable as w } from "./data-cross-table-context.js";
4
- import { Button as n } from "../../button.js";
5
- import { Icon as z } from "../../icon.js";
6
- const B = ({ className: D = "" }) => {
2
+ import { jsxs as c, jsx as b } from "react/jsx-runtime";
3
+ import { useDataCrossTable as g } from "./data-cross-table-context.js";
4
+ import { Button as f } from "../../button.js";
5
+ import { Icon as v } from "../../icon.js";
6
+ const R = ({ className: x = "" }) => {
7
7
  const {
8
8
  editedCells: m,
9
- setEditedCells: f,
10
- toDefaultCells: i,
11
- setToDefaultCells: a,
12
- editMode: j,
9
+ setEditedCells: u,
10
+ toDefaultCells: n,
11
+ setToDefaultCells: d,
12
+ editMode: p,
13
13
  setEditMode: C,
14
14
  onConfirmedCells: o,
15
- editConfirmLabel: k,
16
- editCancelLabel: L,
17
- editRestoreDefaultLabel: u,
15
+ editConfirmLabel: D,
16
+ editCancelLabel: j,
17
+ editRestoreDefaultLabel: k,
18
18
  showDefaultActionButton: h
19
- } = w();
20
- if (!j) return null;
21
- const d = Object.keys(m).length, e = Object.keys(i).length, b = d > 0 || e > 0, x = () => {
19
+ } = g();
20
+ if (!p) return null;
21
+ const l = Object.keys(m).length, s = Object.keys(n).length, i = l > 0 || s > 0, L = () => {
22
22
  if (o) {
23
- const r = Object.entries(i).map(
24
- ([v, { value: c, cell: t }]) => ({
25
- fromId: t.fromId,
26
- toId: t.toId,
27
- id: t.id,
28
- value: c
23
+ const a = Object.entries(n).map(
24
+ ([$, { value: r, cell: e }]) => ({
25
+ fromId: e.fromId,
26
+ toId: e.toId,
27
+ id: e.id,
28
+ value: r
29
29
  })
30
30
  );
31
31
  o({
32
32
  editedCells: [],
33
- toDefaultCells: r
33
+ toDefaultCells: a
34
34
  });
35
35
  }
36
- a({});
36
+ d({});
37
37
  }, N = () => {
38
- if (o && b) {
39
- const r = Object.entries(m).map(
40
- ([c, { value: t, cell: s }]) => ({
41
- fromId: s.fromId,
42
- toId: s.toId,
43
- id: s.id,
44
- value: t
38
+ if (o && i) {
39
+ const a = Object.entries(m).map(
40
+ ([r, { value: e, cell: t }]) => ({
41
+ fromId: t.fromId,
42
+ toId: t.toId,
43
+ id: t.id,
44
+ value: e
45
45
  })
46
- ), I = Object.entries(i).map(
47
- ([c, { value: t, cell: s }]) => ({
48
- fromId: s.fromId,
49
- toId: s.toId,
50
- id: s.id,
51
- value: t
46
+ ), I = Object.entries(n).map(
47
+ ([r, { value: e, cell: t }]) => ({
48
+ fromId: t.fromId,
49
+ toId: t.toId,
50
+ id: t.id,
51
+ value: e
52
52
  })
53
53
  );
54
54
  o({
55
- editedCells: r,
55
+ editedCells: a,
56
56
  toDefaultCells: I
57
57
  });
58
58
  }
59
- f({}), a({}), C(!1);
59
+ u({}), d({}), C(!1);
60
60
  }, O = () => {
61
- f({}), a({}), C(!1);
61
+ u({}), d({}), C(!1);
62
62
  };
63
- return /* @__PURE__ */ l("div", { className: `flex items-center space-x-2 ${D}`, children: [
64
- h && /* @__PURE__ */ l(
65
- n,
63
+ return /* @__PURE__ */ c("div", { className: `flex items-center space-x-2 ${x}`, children: [
64
+ h && /* @__PURE__ */ c(
65
+ f,
66
66
  {
67
67
  variant: "outline",
68
68
  size: "sm",
69
- onClick: x,
70
- disabled: e === 0,
69
+ onClick: L,
70
+ disabled: s === 0,
71
71
  className: "text-xs",
72
72
  iconLeft: "RotateCcw",
73
73
  children: [
74
- u,
75
- " ",
76
- e > 0 && `(${e})`
77
- ]
78
- }
79
- ),
80
- h && /* @__PURE__ */ l(
81
- n,
82
- {
83
- variant: "outline",
84
- size: "sm",
85
- onClick: x,
86
- disabled: e === 0,
87
- className: "text-xs",
88
- iconLeft: "RotateCcw",
89
- children: [
90
- u,
74
+ k,
91
75
  " ",
92
- e > 0 && `(${e})`
76
+ s > 0 && `(${s})`
93
77
  ]
94
78
  }
95
79
  ),
96
- /* @__PURE__ */ p(
97
- n,
80
+ /* @__PURE__ */ b(
81
+ f,
98
82
  {
99
83
  variant: "outline",
100
84
  size: "sm",
101
85
  onClick: O,
102
86
  className: "text-xs",
103
87
  iconLeft: "X",
104
- children: L
88
+ children: j
105
89
  }
106
90
  ),
107
- /* @__PURE__ */ l(
108
- n,
91
+ /* @__PURE__ */ c(
92
+ f,
109
93
  {
110
94
  size: "sm",
111
95
  onClick: N,
112
- disabled: !b,
96
+ disabled: !i,
113
97
  className: "text-xs",
114
98
  children: [
115
- /* @__PURE__ */ p(z, { name: "Check", className: "mr-1 h-3 w-3" }),
116
- k,
99
+ /* @__PURE__ */ b(v, { name: "Check", className: "mr-1 h-3 w-3" }),
100
+ D,
117
101
  " ",
118
- d > 0 && `(${d})`
102
+ h ? i && `(${l + s})` : l > 0 && `(${l})`
119
103
  ]
120
104
  }
121
105
  )
122
106
  ] });
123
107
  };
124
108
  export {
125
- B as DataCrossTableButtonsGroup
109
+ R as DataCrossTableButtonsGroup
126
110
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { s as e } from "../../../../_virtual/index.js";
2
+ import { s as e } from "../../../../_virtual/index3.js";
3
3
  function s() {
4
4
  return e.useSyncExternalStore(
5
5
  r,
@@ -3,7 +3,7 @@ import { stringify as w } from "../../comma-separated-tokens/index.js";
3
3
  import { ok as u } from "../../devlop/lib/default.js";
4
4
  import { svg as m, html as C } from "../../property-information/index.js";
5
5
  import { stringify as N } from "../../space-separated-tokens/index.js";
6
- import S from "../../../_virtual/index5.js";
6
+ import S from "../../../_virtual/index4.js";
7
7
  import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
8
8
  import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
9
9
  import { VFileMessage as h } from "../../vfile-message/lib/index.js";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { __module as e } from "../../_virtual/index4.js";
2
+ import { __module as e } from "../../_virtual/index2.js";
3
3
  import { __require as t } from "./cjs/react-is.production.min.js";
4
4
  import { __require as o } from "./cjs/react-is.development.js";
5
5
  var r;
@@ -5,7 +5,7 @@ import "../../../../_virtual/isString.js";
5
5
  import f from "../../../../_virtual/isFunction.js";
6
6
  import s from "../../../../_virtual/isObject.js";
7
7
  import { isValidElement as d } from "react";
8
- import "../../../../_virtual/index3.js";
8
+ import "../../../../_virtual/index.js";
9
9
  import { SVGElementPropKeys as m, EventKeys as p, FilteredElementKeyMap as o } from "./types.js";
10
10
  var h = function(i) {
11
11
  return typeof i == "string" ? i : i ? i.displayName || i.name || "Component" : "";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { __exports as r } from "../../../_virtual/index8.js";
2
+ import { __exports as r } from "../../../_virtual/index7.js";
3
3
  import { __require as c } from "../../inline-style-parser/index.js";
4
4
  var f;
5
5
  function j() {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { bail as P } from "../../bail/index.js";
3
- import y from "../../../_virtual/index6.js";
3
+ import y from "../../../_virtual/index5.js";
4
4
  import z from "../../is-plain-obj/index.js";
5
5
  import { CallableInstance as C } from "./callable-instance.js";
6
6
  import { trough as A } from "../../trough/lib/index.js";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { __module as e } from "../../../_virtual/index2.js";
2
+ import { __module as e } from "../../../_virtual/index6.js";
3
3
  import { __require as i } from "../cjs/use-sync-external-store-shim.production.js";
4
4
  import { __require as o } from "../cjs/use-sync-external-store-shim.development.js";
5
5
  var r;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "laif-ds",
3
3
  "private": false,
4
- "version": "0.1.42",
4
+ "version": "0.1.43",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",