laif-ds 0.1.35 → 0.1.36
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/_virtual/index.js +5 -2
- package/dist/_virtual/index3.js +2 -7
- package/dist/_virtual/index4.js +2 -5
- package/dist/_virtual/index5.js +4 -4
- package/dist/_virtual/index6.js +5 -2
- package/dist/_virtual/index7.js +5 -2
- package/dist/_virtual/index8.js +5 -0
- package/dist/_virtual/index9.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/components/ui/checkbox.js +12 -12
- package/dist/components/ui/gantt/components/Chart/Chart.js +1 -1
- package/dist/components/ui/message-input.js +1 -1
- package/dist/components/ui/tables/data-cross-table/data-cross-table.js +348 -0
- package/dist/components/ui/tables/data-cross-table/edit-controls.js +47 -0
- package/dist/components/ui/tables/data-cross-table/editable-input.js +100 -0
- package/dist/components/ui/tables/data-cross-table/truncated-text.js +19 -0
- package/dist/index.d.ts +29 -3
- package/dist/index.js +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +126 -122
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +10 -6
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +44 -42
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +33 -43
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +237 -120
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +17 -16
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +95 -94
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +20 -19
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +3 -3
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +14 -13
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +136 -136
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +70 -68
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +66 -64
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +10 -9
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +16 -16
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +11 -10
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +161 -146
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +87 -84
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +269 -257
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +3 -3
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +29 -28
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +101 -86
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +23 -22
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.js +17 -16
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +25 -23
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +77 -76
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +43 -21
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +16 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +18 -18
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +36 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +491 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +53 -0
- package/dist/node_modules/classnames/index.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/property-information/lib/html.js +9 -9
- package/dist/node_modules/react-hook-form/dist/index.esm.js +88 -88
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.js +830 -801
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +1 -1
- package/dist/node_modules/remeda/dist/chunk-AIG3BDKO.js +9 -0
- package/dist/node_modules/remeda/dist/{chunk-A3PVMI4K.js → chunk-KI5X74E2.js} +1 -1
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +3 -3
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +68 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +56 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +11 -0
- package/dist/styles.css +1 -1
- package/package.json +2 -1
- package/dist/components/ui/data-cross-table.js +0 -216
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-arrow/dist/index.js +0 -25
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-collection/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -138
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-menu/dist/index.js +0 -625
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-popper/dist/index.js +0 -221
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-portal/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -184
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -55
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-collection/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -55
- package/dist/node_modules/remeda/dist/chunk-OAMXQXGR.js +0 -9
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as n from "react";
|
|
3
|
-
import { composeEventHandlers as m } from "../../../../../primitive/dist/index.js";
|
|
4
|
-
import { Primitive as g, dispatchDiscreteCustomEvent as k } from "../../react-primitive/dist/index.js";
|
|
5
|
-
import { useComposedRefs as R } from "../../../../../react-compose-refs/dist/index.js";
|
|
6
|
-
import { useCallbackRef as w } from "../../../../../react-use-callback-ref/dist/index.js";
|
|
7
|
-
import { useEscapeKeydown as U } from "../../../../../react-use-escape-keydown/dist/index.js";
|
|
8
|
-
import { jsx as T } from "react/jsx-runtime";
|
|
9
|
-
var z = "DismissableLayer", y = "dismissableLayer.update", H = "dismissableLayer.pointerDownOutside", M = "dismissableLayer.focusOutside", L, B = n.createContext({
|
|
10
|
-
layers: /* @__PURE__ */ new Set(),
|
|
11
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
12
|
-
branches: /* @__PURE__ */ new Set()
|
|
13
|
-
}), j = n.forwardRef(
|
|
14
|
-
(r, e) => {
|
|
15
|
-
const {
|
|
16
|
-
disableOutsidePointerEvents: i = !1,
|
|
17
|
-
onEscapeKeyDown: o,
|
|
18
|
-
onPointerDownOutside: t,
|
|
19
|
-
onFocusOutside: a,
|
|
20
|
-
onInteractOutside: l,
|
|
21
|
-
onDismiss: d,
|
|
22
|
-
...v
|
|
23
|
-
} = r, c = n.useContext(B), [u, S] = n.useState(null), f = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, F] = n.useState({}), W = R(e, (s) => S(s)), p = Array.from(c.layers), [A] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), N = p.indexOf(A), b = u ? p.indexOf(u) : -1, I = c.layersWithOutsidePointerEventsDisabled.size > 0, P = b >= N, _ = q((s) => {
|
|
24
|
-
const E = s.target, C = [...c.branches].some((h) => h.contains(E));
|
|
25
|
-
!P || C || (t == null || t(s), l == null || l(s), s.defaultPrevented || d == null || d());
|
|
26
|
-
}, f), D = G((s) => {
|
|
27
|
-
const E = s.target;
|
|
28
|
-
[...c.branches].some((h) => h.contains(E)) || (a == null || a(s), l == null || l(s), s.defaultPrevented || d == null || d());
|
|
29
|
-
}, f);
|
|
30
|
-
return U((s) => {
|
|
31
|
-
b === c.layers.size - 1 && (o == null || o(s), !s.defaultPrevented && d && (s.preventDefault(), d()));
|
|
32
|
-
}, f), n.useEffect(() => {
|
|
33
|
-
if (u)
|
|
34
|
-
return i && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (L = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), O(), () => {
|
|
35
|
-
i && c.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = L);
|
|
36
|
-
};
|
|
37
|
-
}, [u, f, i, c]), n.useEffect(() => () => {
|
|
38
|
-
u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), O());
|
|
39
|
-
}, [u, c]), n.useEffect(() => {
|
|
40
|
-
const s = () => F({});
|
|
41
|
-
return document.addEventListener(y, s), () => document.removeEventListener(y, s);
|
|
42
|
-
}, []), /* @__PURE__ */ T(
|
|
43
|
-
g.div,
|
|
44
|
-
{
|
|
45
|
-
...v,
|
|
46
|
-
ref: W,
|
|
47
|
-
style: {
|
|
48
|
-
pointerEvents: I ? P ? "auto" : "none" : void 0,
|
|
49
|
-
...r.style
|
|
50
|
-
},
|
|
51
|
-
onFocusCapture: m(r.onFocusCapture, D.onFocusCapture),
|
|
52
|
-
onBlurCapture: m(r.onBlurCapture, D.onBlurCapture),
|
|
53
|
-
onPointerDownCapture: m(
|
|
54
|
-
r.onPointerDownCapture,
|
|
55
|
-
_.onPointerDownCapture
|
|
56
|
-
)
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
j.displayName = z;
|
|
62
|
-
var X = "DismissableLayerBranch", Y = n.forwardRef((r, e) => {
|
|
63
|
-
const i = n.useContext(B), o = n.useRef(null), t = R(e, o);
|
|
64
|
-
return n.useEffect(() => {
|
|
65
|
-
const a = o.current;
|
|
66
|
-
if (a)
|
|
67
|
-
return i.branches.add(a), () => {
|
|
68
|
-
i.branches.delete(a);
|
|
69
|
-
};
|
|
70
|
-
}, [i.branches]), /* @__PURE__ */ T(g.div, { ...r, ref: t });
|
|
71
|
-
});
|
|
72
|
-
Y.displayName = X;
|
|
73
|
-
function q(r, e = globalThis == null ? void 0 : globalThis.document) {
|
|
74
|
-
const i = w(r), o = n.useRef(!1), t = n.useRef(() => {
|
|
75
|
-
});
|
|
76
|
-
return n.useEffect(() => {
|
|
77
|
-
const a = (d) => {
|
|
78
|
-
if (d.target && !o.current) {
|
|
79
|
-
let v = function() {
|
|
80
|
-
x(
|
|
81
|
-
H,
|
|
82
|
-
i,
|
|
83
|
-
c,
|
|
84
|
-
{ discrete: !0 }
|
|
85
|
-
);
|
|
86
|
-
};
|
|
87
|
-
const c = { originalEvent: d };
|
|
88
|
-
d.pointerType === "touch" ? (e.removeEventListener("click", t.current), t.current = v, e.addEventListener("click", t.current, { once: !0 })) : v();
|
|
89
|
-
} else
|
|
90
|
-
e.removeEventListener("click", t.current);
|
|
91
|
-
o.current = !1;
|
|
92
|
-
}, l = window.setTimeout(() => {
|
|
93
|
-
e.addEventListener("pointerdown", a);
|
|
94
|
-
}, 0);
|
|
95
|
-
return () => {
|
|
96
|
-
window.clearTimeout(l), e.removeEventListener("pointerdown", a), e.removeEventListener("click", t.current);
|
|
97
|
-
};
|
|
98
|
-
}, [e, i]), {
|
|
99
|
-
// ensures we check React component tree (not just DOM tree)
|
|
100
|
-
onPointerDownCapture: () => o.current = !0
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
function G(r, e = globalThis == null ? void 0 : globalThis.document) {
|
|
104
|
-
const i = w(r), o = n.useRef(!1);
|
|
105
|
-
return n.useEffect(() => {
|
|
106
|
-
const t = (a) => {
|
|
107
|
-
a.target && !o.current && x(M, i, { originalEvent: a }, {
|
|
108
|
-
discrete: !1
|
|
109
|
-
});
|
|
110
|
-
};
|
|
111
|
-
return e.addEventListener("focusin", t), () => e.removeEventListener("focusin", t);
|
|
112
|
-
}, [e, i]), {
|
|
113
|
-
onFocusCapture: () => o.current = !0,
|
|
114
|
-
onBlurCapture: () => o.current = !1
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
function O() {
|
|
118
|
-
const r = new CustomEvent(y);
|
|
119
|
-
document.dispatchEvent(r);
|
|
120
|
-
}
|
|
121
|
-
function x(r, e, i, { discrete: o }) {
|
|
122
|
-
const t = i.originalEvent.target, a = new CustomEvent(r, { bubbles: !1, cancelable: !0, detail: i });
|
|
123
|
-
e && t.addEventListener(r, e, { once: !0 }), o ? k(t, a) : t.dispatchEvent(a);
|
|
124
|
-
}
|
|
125
|
-
export {
|
|
126
|
-
j as DismissableLayer,
|
|
127
|
-
Y as DismissableLayerBranch
|
|
128
|
-
};
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as d from "react";
|
|
3
|
-
import { useComposedRefs as R } from "../../../../../react-compose-refs/dist/index.js";
|
|
4
|
-
import { Primitive as M } from "../../react-primitive/dist/index.js";
|
|
5
|
-
import { useCallbackRef as y } from "../../../../../react-use-callback-ref/dist/index.js";
|
|
6
|
-
import { jsx as _ } from "react/jsx-runtime";
|
|
7
|
-
var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N = { bubbles: !1, cancelable: !0 }, K = "FocusScope", k = d.forwardRef((e, n) => {
|
|
8
|
-
const {
|
|
9
|
-
loop: t = !1,
|
|
10
|
-
trapped: u = !1,
|
|
11
|
-
onMountAutoFocus: p,
|
|
12
|
-
onUnmountAutoFocus: L,
|
|
13
|
-
...g
|
|
14
|
-
} = e, [o, U] = d.useState(null), E = y(p), v = y(L), b = d.useRef(null), A = R(n, (s) => U(s)), a = d.useRef({
|
|
15
|
-
paused: !1,
|
|
16
|
-
pause() {
|
|
17
|
-
this.paused = !0;
|
|
18
|
-
},
|
|
19
|
-
resume() {
|
|
20
|
-
this.paused = !1;
|
|
21
|
-
}
|
|
22
|
-
}).current;
|
|
23
|
-
d.useEffect(() => {
|
|
24
|
-
if (u) {
|
|
25
|
-
let s = function(i) {
|
|
26
|
-
if (a.paused || !o) return;
|
|
27
|
-
const c = i.target;
|
|
28
|
-
o.contains(c) ? b.current = c : f(b.current, { select: !0 });
|
|
29
|
-
}, l = function(i) {
|
|
30
|
-
if (a.paused || !o) return;
|
|
31
|
-
const c = i.relatedTarget;
|
|
32
|
-
c !== null && (o.contains(c) || f(b.current, { select: !0 }));
|
|
33
|
-
}, r = function(i) {
|
|
34
|
-
if (document.activeElement === document.body)
|
|
35
|
-
for (const h of i)
|
|
36
|
-
h.removedNodes.length > 0 && f(o);
|
|
37
|
-
};
|
|
38
|
-
document.addEventListener("focusin", s), document.addEventListener("focusout", l);
|
|
39
|
-
const m = new MutationObserver(r);
|
|
40
|
-
return o && m.observe(o, { childList: !0, subtree: !0 }), () => {
|
|
41
|
-
document.removeEventListener("focusin", s), document.removeEventListener("focusout", l), m.disconnect();
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
}, [u, o, a.paused]), d.useEffect(() => {
|
|
45
|
-
if (o) {
|
|
46
|
-
S.add(a);
|
|
47
|
-
const s = document.activeElement;
|
|
48
|
-
if (!o.contains(s)) {
|
|
49
|
-
const r = new CustomEvent(F, N);
|
|
50
|
-
o.addEventListener(F, E), o.dispatchEvent(r), r.defaultPrevented || (w(W(I(o)), { select: !0 }), document.activeElement === s && f(o));
|
|
51
|
-
}
|
|
52
|
-
return () => {
|
|
53
|
-
o.removeEventListener(F, E), setTimeout(() => {
|
|
54
|
-
const r = new CustomEvent(T, N);
|
|
55
|
-
o.addEventListener(T, v), o.dispatchEvent(r), r.defaultPrevented || f(s ?? document.body, { select: !0 }), o.removeEventListener(T, v), S.remove(a);
|
|
56
|
-
}, 0);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
}, [o, E, v, a]);
|
|
60
|
-
const P = d.useCallback(
|
|
61
|
-
(s) => {
|
|
62
|
-
if (!t && !u || a.paused) return;
|
|
63
|
-
const l = s.key === "Tab" && !s.altKey && !s.ctrlKey && !s.metaKey, r = document.activeElement;
|
|
64
|
-
if (l && r) {
|
|
65
|
-
const m = s.currentTarget, [i, c] = x(m);
|
|
66
|
-
i && c ? !s.shiftKey && r === c ? (s.preventDefault(), t && f(i, { select: !0 })) : s.shiftKey && r === i && (s.preventDefault(), t && f(c, { select: !0 })) : r === m && s.preventDefault();
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
[t, u, a.paused]
|
|
70
|
-
);
|
|
71
|
-
return /* @__PURE__ */ _(M.div, { tabIndex: -1, ...g, ref: A, onKeyDown: P });
|
|
72
|
-
});
|
|
73
|
-
k.displayName = K;
|
|
74
|
-
function w(e, { select: n = !1 } = {}) {
|
|
75
|
-
const t = document.activeElement;
|
|
76
|
-
for (const u of e)
|
|
77
|
-
if (f(u, { select: n }), document.activeElement !== t) return;
|
|
78
|
-
}
|
|
79
|
-
function x(e) {
|
|
80
|
-
const n = I(e), t = O(n, e), u = O(n.reverse(), e);
|
|
81
|
-
return [t, u];
|
|
82
|
-
}
|
|
83
|
-
function I(e) {
|
|
84
|
-
const n = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
85
|
-
acceptNode: (u) => {
|
|
86
|
-
const p = u.tagName === "INPUT" && u.type === "hidden";
|
|
87
|
-
return u.disabled || u.hidden || p ? NodeFilter.FILTER_SKIP : u.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
for (; t.nextNode(); ) n.push(t.currentNode);
|
|
91
|
-
return n;
|
|
92
|
-
}
|
|
93
|
-
function O(e, n) {
|
|
94
|
-
for (const t of e)
|
|
95
|
-
if (!D(t, { upTo: n })) return t;
|
|
96
|
-
}
|
|
97
|
-
function D(e, { upTo: n }) {
|
|
98
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
99
|
-
for (; e; ) {
|
|
100
|
-
if (n !== void 0 && e === n) return !1;
|
|
101
|
-
if (getComputedStyle(e).display === "none") return !0;
|
|
102
|
-
e = e.parentElement;
|
|
103
|
-
}
|
|
104
|
-
return !1;
|
|
105
|
-
}
|
|
106
|
-
function H(e) {
|
|
107
|
-
return e instanceof HTMLInputElement && "select" in e;
|
|
108
|
-
}
|
|
109
|
-
function f(e, { select: n = !1 } = {}) {
|
|
110
|
-
if (e && e.focus) {
|
|
111
|
-
const t = document.activeElement;
|
|
112
|
-
e.focus({ preventScroll: !0 }), e !== t && H(e) && n && e.select();
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
var S = V();
|
|
116
|
-
function V() {
|
|
117
|
-
let e = [];
|
|
118
|
-
return {
|
|
119
|
-
add(n) {
|
|
120
|
-
const t = e[0];
|
|
121
|
-
n !== t && (t == null || t.pause()), e = C(e, n), e.unshift(n);
|
|
122
|
-
},
|
|
123
|
-
remove(n) {
|
|
124
|
-
var t;
|
|
125
|
-
e = C(e, n), (t = e[0]) == null || t.resume();
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
function C(e, n) {
|
|
130
|
-
const t = [...e], u = t.indexOf(n);
|
|
131
|
-
return u !== -1 && t.splice(u, 1), t;
|
|
132
|
-
}
|
|
133
|
-
function W(e) {
|
|
134
|
-
return e.filter((n) => n.tagName !== "A");
|
|
135
|
-
}
|
|
136
|
-
export {
|
|
137
|
-
k as FocusScope
|
|
138
|
-
};
|