@caspeco/casper-ui-library 7.9.2 → 7.10.0
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/components/message/message.d.ts +1 -1
- package/dist/components/message/message.d.ts.map +1 -1
- package/dist/components/message/message.js +26 -26
- package/dist/components/table/table-toolbar.d.ts +5 -1
- package/dist/components/table/table-toolbar.d.ts.map +1 -1
- package/dist/components/table/table-toolbar.js +62 -60
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +195 -170
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +25 -25
- package/dist/theme/theme-config/components/table-theme.d.ts.map +1 -1
- package/dist/theme/theme-config/components/table-theme.js +3 -1
- package/package.json +9 -9
|
@@ -8,7 +8,7 @@ export type MessageProps = {
|
|
|
8
8
|
time?: string;
|
|
9
9
|
/** Displays the sender of the message. */
|
|
10
10
|
from?: string;
|
|
11
|
-
/** Changes the styling on chat bubble background and border bottom radius */
|
|
11
|
+
/** Changes the styling on chat bubble background and border bottom radius. Defaults to "you" */
|
|
12
12
|
author?: "me" | "you";
|
|
13
13
|
/** Auto floats the bubble to the right or left depending on the author */
|
|
14
14
|
autoFloat?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../lib/components/message/message.tsx"],"names":[],"mappings":"AACA,OAAO,EAKN,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAO,KAAK,QAAQ,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,gBAAgB,GAAG,cAAc,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,CAAC;AAElF,MAAM,MAAM,YAAY,GAAG;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../lib/components/message/message.tsx"],"names":[],"mappings":"AACA,OAAO,EAKN,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAO,KAAK,QAAQ,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,gBAAgB,GAAG,cAAc,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,CAAC;AAElF,MAAM,MAAM,YAAY,GAAG;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gGAAgG;IAChG,MAAM,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC;IACtB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mFAAmF;IACnF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,gBAAgB,CAAC;AAErB;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,EACvB,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,MAAc,EACd,SAAS,EACT,UAAU,EACV,YAAY,EACZ,GAAG,KAAK,EACR,EAAE,YAAY,2CA4Cd"}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import { jsxs as g, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Box as
|
|
2
|
+
import { Box as a } from "@chakra-ui/react";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Text as
|
|
5
|
-
import { ThemeRadiusVariable as i, ThemeSpaceVariable as n, ThemeColorVariable as
|
|
4
|
+
import { Text as l } from "../text/text.js";
|
|
5
|
+
import { ThemeRadiusVariable as i, ThemeSpaceVariable as n, ThemeColorVariable as o, ThemeFontSizeVariable as d } from "../../theme/theme-types.js";
|
|
6
6
|
function L({
|
|
7
|
-
children:
|
|
7
|
+
children: f,
|
|
8
8
|
time: t,
|
|
9
9
|
from: u,
|
|
10
|
-
author:
|
|
11
|
-
autoFloat:
|
|
12
|
-
errorState:
|
|
13
|
-
errorMessage:
|
|
14
|
-
...
|
|
10
|
+
author: s = "you",
|
|
11
|
+
autoFloat: S,
|
|
12
|
+
errorState: c,
|
|
13
|
+
errorMessage: m,
|
|
14
|
+
...b
|
|
15
15
|
}) {
|
|
16
|
-
const
|
|
17
|
-
return /* @__PURE__ */ g(
|
|
16
|
+
const e = s === "you";
|
|
17
|
+
return /* @__PURE__ */ g(a, { ...b, alignSelf: S ? e ? "flex-start" : "flex-end" : void 0, children: [
|
|
18
18
|
/* @__PURE__ */ g(
|
|
19
|
-
|
|
19
|
+
a,
|
|
20
20
|
{
|
|
21
|
-
bg:
|
|
22
|
-
opacity:
|
|
21
|
+
bg: e ? o.BackgroundDisabled : o.Accent,
|
|
22
|
+
opacity: c ? "0.48" : "1",
|
|
23
23
|
px: n.Medium,
|
|
24
24
|
py: n.Small,
|
|
25
25
|
borderTopRightRadius: i.Large,
|
|
26
26
|
borderTopLeftRadius: i.Large,
|
|
27
|
-
borderBottomRightRadius:
|
|
28
|
-
borderBottomLeftRadius:
|
|
27
|
+
borderBottomRightRadius: e ? i.Large : void 0,
|
|
28
|
+
borderBottomLeftRadius: e ? void 0 : i.Large,
|
|
29
29
|
children: [
|
|
30
30
|
/* @__PURE__ */ r(
|
|
31
|
-
|
|
31
|
+
l,
|
|
32
32
|
{
|
|
33
33
|
fontSize: d.Medium,
|
|
34
|
-
color:
|
|
35
|
-
children:
|
|
34
|
+
color: e ? o.OnBackground : o.OnAccent,
|
|
35
|
+
children: f
|
|
36
36
|
}
|
|
37
37
|
),
|
|
38
38
|
u && /* @__PURE__ */ r(
|
|
39
|
-
|
|
39
|
+
l,
|
|
40
40
|
{
|
|
41
41
|
fontSize: d.Small,
|
|
42
|
-
color:
|
|
42
|
+
color: e ? o.OnBackgroundSubdued : o.InfoContainer,
|
|
43
43
|
children: u
|
|
44
44
|
}
|
|
45
45
|
)
|
|
46
46
|
]
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
|
-
t && /* @__PURE__ */ r(
|
|
50
|
-
|
|
49
|
+
t && /* @__PURE__ */ r(a, { ml: n.Small, children: /* @__PURE__ */ r(
|
|
50
|
+
l,
|
|
51
51
|
{
|
|
52
52
|
fontSize: d.XSmall,
|
|
53
|
-
color:
|
|
54
|
-
textAlign:
|
|
55
|
-
children:
|
|
53
|
+
color: c ? o.Error : o.OnBackgroundSubdued,
|
|
54
|
+
textAlign: e ? void 0 : "right",
|
|
55
|
+
children: m || t
|
|
56
56
|
}
|
|
57
57
|
) })
|
|
58
58
|
] });
|
|
@@ -10,6 +10,10 @@ export type TableToolbarProps = {
|
|
|
10
10
|
* Use this to filter your data. Optional.
|
|
11
11
|
*/
|
|
12
12
|
onSearch?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
+
/**
|
|
14
|
+
* DefaultValue for the search input, e.g. if you have a persisted filter state you want to hydrate after refresh or routing.
|
|
15
|
+
*/
|
|
16
|
+
defaultValue?: string;
|
|
13
17
|
/**
|
|
14
18
|
* Use this to add a new item. Optional.
|
|
15
19
|
*/
|
|
@@ -19,7 +23,7 @@ export type TableToolbarProps = {
|
|
|
19
23
|
*/
|
|
20
24
|
actionMenu?: React.ReactElement<ComponentProps<typeof MenuList>, typeof MenuList>;
|
|
21
25
|
};
|
|
22
|
-
declare const TableToolbarInner: ({ tableName, onSearch, onAddNewItem, actionMenu, ...props }: TableToolbarProps & ThemeStyleProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare const TableToolbarInner: ({ tableName, onSearch, defaultValue, onAddNewItem, actionMenu, ...props }: TableToolbarProps & ThemeStyleProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
27
|
export declare const TableToolbar: typeof TableToolbarInner;
|
|
24
28
|
export {};
|
|
25
29
|
//# sourceMappingURL=table-toolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-toolbar.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-toolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAA2D,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGtG,OAAO,EAMN,KAAK,eAAe,EACpB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAA8B,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAI1F,MAAM,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACtD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,EAAE,OAAO,QAAQ,CAAC,CAAC;CAClF,CAAC;AAEF,QAAA,MAAM,iBAAiB,GAAI,
|
|
1
|
+
{"version":3,"file":"table-toolbar.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-toolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAA2D,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGtG,OAAO,EAMN,KAAK,eAAe,EACpB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAA8B,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAI1F,MAAM,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACtD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,EAAE,OAAO,QAAQ,CAAC,CAAC;CAClF,CAAC;AAEF,QAAA,MAAM,iBAAiB,GAAI,2EAOxB,iBAAiB,GAAG,eAAe,4CA6KrC,CAAC;AAEF,eAAO,MAAM,YAAY,EAA8B,OAAO,iBAAiB,CAAC"}
|
|
@@ -1,83 +1,85 @@
|
|
|
1
|
-
import { jsx as e, jsxs as o, Fragment as
|
|
2
|
-
import { useMediaQuery as
|
|
3
|
-
import { memo as
|
|
4
|
-
import { useTableContext as
|
|
5
|
-
import { translations as
|
|
6
|
-
import { Input as
|
|
7
|
-
import { Icon as
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as A } from "react/jsx-runtime";
|
|
2
|
+
import { useMediaQuery as H, Flex as a, Portal as O, Box as x } from "@chakra-ui/react";
|
|
3
|
+
import { memo as D, useCallback as l, useMemo as y } from "react";
|
|
4
|
+
import { useTableContext as G } from "./table-context.js";
|
|
5
|
+
import { translations as E } from "./translations.js";
|
|
6
|
+
import { Input as P } from "../input/input.js";
|
|
7
|
+
import { Icon as I } from "../icon/icon.js";
|
|
8
8
|
import { Icons as c } from "../icon/types.js";
|
|
9
|
-
import { Menu as
|
|
10
|
-
import { MenuButton as
|
|
11
|
-
import { MenuList as
|
|
12
|
-
import { Text as
|
|
13
|
-
import { MenuItem as
|
|
14
|
-
import { Checkbox as
|
|
15
|
-
import { MenuDivider as
|
|
16
|
-
import { Switch as
|
|
17
|
-
import { IconButton as
|
|
18
|
-
import { MenuIconButton as
|
|
19
|
-
import { ThemeIconSizeVariable as
|
|
20
|
-
const
|
|
9
|
+
import { Menu as w } from "../menu/menu.js";
|
|
10
|
+
import { MenuButton as Q } from "../menu/menu-button.js";
|
|
11
|
+
import { MenuList as W } from "../menu/menu-list.js";
|
|
12
|
+
import { Text as B } from "../text/text.js";
|
|
13
|
+
import { MenuItem as F } from "../menu/menu-item.js";
|
|
14
|
+
import { Checkbox as X } from "../checkbox/checkbox.js";
|
|
15
|
+
import { MenuDivider as Y } from "../menu/menu-divider.js";
|
|
16
|
+
import { Switch as q } from "../switch/switch.js";
|
|
17
|
+
import { IconButton as J } from "../icon-button/icon-button.js";
|
|
18
|
+
import { MenuIconButton as K } from "../menu/menu-icon-button.js";
|
|
19
|
+
import { ThemeIconSizeVariable as R, ThemeSpaceVariable as i, ThemeColorVariable as L, ThemeFontVariable as U, ThemeFontSizeVariable as Z } from "../../theme/theme-types.js";
|
|
20
|
+
const _ = ({
|
|
21
21
|
tableName: g,
|
|
22
22
|
onSearch: f,
|
|
23
|
-
|
|
23
|
+
defaultValue: C,
|
|
24
|
+
onAddNewItem: k,
|
|
24
25
|
actionMenu: p,
|
|
25
|
-
...
|
|
26
|
+
...j
|
|
26
27
|
}) => {
|
|
27
|
-
const t =
|
|
28
|
+
const t = G(), [z] = H("(min-width: 48em)"), r = E[t.localeString], S = l(() => t.table.getAllColumns().length === Object.keys(t.breakingContentState).length && !Object.values(t.breakingContentState).includes(!1), [t.breakingContentState, t.table]), T = l(
|
|
28
29
|
(n) => {
|
|
29
30
|
const b = {};
|
|
30
|
-
t.table.getAllColumns().forEach((
|
|
31
|
-
b[
|
|
31
|
+
t.table.getAllColumns().forEach((M) => {
|
|
32
|
+
b[M.id] = n.target.checked;
|
|
32
33
|
}), t.setBreakingContentState(b), t.onBreakingContentChange?.(b);
|
|
33
34
|
},
|
|
34
35
|
[t]
|
|
35
36
|
), s = l(
|
|
36
37
|
() => /* @__PURE__ */ e(
|
|
37
|
-
|
|
38
|
+
P,
|
|
38
39
|
{
|
|
39
|
-
leftElement: /* @__PURE__ */ e(
|
|
40
|
+
leftElement: /* @__PURE__ */ e(I, { icon: c.Search }),
|
|
40
41
|
onChange: (n) => f?.(n),
|
|
42
|
+
defaultValue: C,
|
|
41
43
|
size: "md",
|
|
42
44
|
type: "search",
|
|
43
45
|
w: { base: "100%", md: "170px" },
|
|
44
46
|
"data-testid": "filterInput"
|
|
45
47
|
}
|
|
46
48
|
),
|
|
47
|
-
[f]
|
|
49
|
+
[f, C]
|
|
48
50
|
), m = l(
|
|
49
|
-
() => /* @__PURE__ */ e(a, { children: /* @__PURE__ */ o(
|
|
50
|
-
/* @__PURE__ */ e(
|
|
51
|
-
/* @__PURE__ */ e(
|
|
51
|
+
() => /* @__PURE__ */ e(a, { children: /* @__PURE__ */ o(w, { closeOnSelect: !1, isLazy: !0, children: [
|
|
52
|
+
/* @__PURE__ */ e(Q, { "aria-label": r.presets, variant: "ghost", p: "unset", w: "40px", h: "40px", children: /* @__PURE__ */ e(I, { icon: c.Sliders, size: R.Medium }) }),
|
|
53
|
+
/* @__PURE__ */ e(O, { children: /* @__PURE__ */ o(W, { children: [
|
|
52
54
|
/* @__PURE__ */ e(
|
|
53
|
-
|
|
55
|
+
B,
|
|
54
56
|
{
|
|
55
|
-
color:
|
|
57
|
+
color: L.OnSurfaceSubdued,
|
|
56
58
|
py: i.Small,
|
|
57
59
|
px: i.Medium,
|
|
58
60
|
children: r.showColumns
|
|
59
61
|
}
|
|
60
62
|
),
|
|
61
|
-
/* @__PURE__ */ e(
|
|
62
|
-
/* @__PURE__ */ e(
|
|
63
|
+
/* @__PURE__ */ e(x, { maxHeight: "320px", overflowY: "auto", children: t.table.getAllLeafColumns().filter((n) => n.getCanHide()).map((n) => /* @__PURE__ */ o(F, { itemType: "checkbox", leftIcon: c.GripMore, children: [
|
|
64
|
+
/* @__PURE__ */ e(A, { children: n.columnDef.header }),
|
|
63
65
|
/* @__PURE__ */ e(
|
|
64
|
-
|
|
66
|
+
X,
|
|
65
67
|
{
|
|
66
68
|
isChecked: n.getIsVisible(),
|
|
67
69
|
onChange: n.getToggleVisibilityHandler()
|
|
68
70
|
}
|
|
69
71
|
)
|
|
70
72
|
] }, n.id)) }),
|
|
71
|
-
/* @__PURE__ */ e(
|
|
72
|
-
/* @__PURE__ */ o(
|
|
73
|
+
/* @__PURE__ */ e(Y, {}),
|
|
74
|
+
/* @__PURE__ */ o(F, { itemType: "switch", children: [
|
|
73
75
|
r.breakingContent,
|
|
74
|
-
/* @__PURE__ */ e(
|
|
76
|
+
/* @__PURE__ */ e(q, { onChange: T, isChecked: S() })
|
|
75
77
|
] })
|
|
76
78
|
] }) })
|
|
77
79
|
] }) }),
|
|
78
80
|
[
|
|
79
|
-
k,
|
|
80
81
|
S,
|
|
82
|
+
T,
|
|
81
83
|
t.table,
|
|
82
84
|
r.breakingContent,
|
|
83
85
|
r.presets,
|
|
@@ -85,18 +87,18 @@ const Z = ({
|
|
|
85
87
|
]
|
|
86
88
|
), d = l(
|
|
87
89
|
() => /* @__PURE__ */ e(
|
|
88
|
-
|
|
90
|
+
J,
|
|
89
91
|
{
|
|
90
92
|
"aria-label": r.new,
|
|
91
93
|
icon: c.Increase,
|
|
92
|
-
onClick:
|
|
94
|
+
onClick: k,
|
|
93
95
|
variant: "secondary"
|
|
94
96
|
}
|
|
95
97
|
),
|
|
96
|
-
[
|
|
97
|
-
),
|
|
98
|
+
[k, r.new]
|
|
99
|
+
), h = l(() => p ? /* @__PURE__ */ o(w, { children: [
|
|
98
100
|
/* @__PURE__ */ e(
|
|
99
|
-
|
|
101
|
+
K,
|
|
100
102
|
{
|
|
101
103
|
icon: c.MoreVertical,
|
|
102
104
|
variant: "ghost",
|
|
@@ -105,45 +107,45 @@ const Z = ({
|
|
|
105
107
|
}
|
|
106
108
|
),
|
|
107
109
|
p
|
|
108
|
-
] }) : null, [p, r.toolbarActions]),
|
|
110
|
+
] }) : null, [p, r.toolbarActions]), u = l(
|
|
109
111
|
() => /* @__PURE__ */ e(
|
|
110
|
-
|
|
112
|
+
B,
|
|
111
113
|
{
|
|
112
|
-
fontSize:
|
|
113
|
-
color:
|
|
114
|
+
fontSize: Z.X2Large,
|
|
115
|
+
color: L.OnBackgroundHeader,
|
|
114
116
|
fontWeight: "bold",
|
|
115
|
-
fontFamily:
|
|
117
|
+
fontFamily: U.Header,
|
|
116
118
|
children: g
|
|
117
119
|
}
|
|
118
120
|
),
|
|
119
121
|
[g]
|
|
120
|
-
),
|
|
122
|
+
), V = y(
|
|
121
123
|
() => /* @__PURE__ */ e(a, { direction: "column", gap: i.Medium, mb: i.Medium, children: /* @__PURE__ */ o(a, { justifyContent: "space-between", alignItems: "center", children: [
|
|
122
|
-
|
|
124
|
+
u(),
|
|
123
125
|
/* @__PURE__ */ o(a, { gap: i.Medium, children: [
|
|
124
126
|
s(),
|
|
125
127
|
m(),
|
|
126
|
-
|
|
128
|
+
h(),
|
|
127
129
|
d()
|
|
128
130
|
] })
|
|
129
131
|
] }) }),
|
|
130
|
-
[d, s, m,
|
|
131
|
-
),
|
|
132
|
+
[d, s, m, u, h]
|
|
133
|
+
), v = y(
|
|
132
134
|
() => /* @__PURE__ */ o(a, { direction: "column", gap: i.Medium, mb: i.Medium, children: [
|
|
133
135
|
/* @__PURE__ */ o(a, { justifyContent: "space-between", children: [
|
|
134
|
-
|
|
136
|
+
u(),
|
|
135
137
|
d()
|
|
136
138
|
] }),
|
|
137
139
|
/* @__PURE__ */ o(a, { justifyContent: "space-between", gap: i.Medium, children: [
|
|
138
140
|
s(),
|
|
139
|
-
|
|
141
|
+
h(),
|
|
140
142
|
m()
|
|
141
143
|
] })
|
|
142
144
|
] }),
|
|
143
|
-
[d, s, m,
|
|
145
|
+
[d, s, m, u, h]
|
|
144
146
|
);
|
|
145
|
-
return /* @__PURE__ */ e(
|
|
146
|
-
},
|
|
147
|
+
return /* @__PURE__ */ e(x, { id: "tableToolbar", ...j, children: z ? V : v });
|
|
148
|
+
}, fe = D(_);
|
|
147
149
|
export {
|
|
148
|
-
|
|
150
|
+
fe as TableToolbar
|
|
149
151
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/table/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,SAAS,EACT,aAAa,EACb,GAAG,EACH,OAAO,EACP,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,YAAY,EACX,WAAW,EACX,SAAS,EACT,aAAa,EACb,GAAG,EACH,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,GACf,CAAC;AAEF,UAAU,OAAO,CAAC,KAAK,SAAS,SAAS;IACxC,OAAO,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;CAC5B;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/table/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { memo as
|
|
2
|
-
const
|
|
3
|
-
const { offsetWidth:
|
|
4
|
-
return { width:
|
|
5
|
-
},
|
|
6
|
-
const
|
|
7
|
-
for (let t =
|
|
1
|
+
import { memo as p, notUndefined as O, approxEqual as I, debounce as A } from "./utils.js";
|
|
2
|
+
const y = (r) => {
|
|
3
|
+
const { offsetWidth: h, offsetHeight: e } = r;
|
|
4
|
+
return { width: h, height: e };
|
|
5
|
+
}, R = (r) => r, F = (r) => {
|
|
6
|
+
const h = Math.max(r.startIndex - r.overscan, 0), e = Math.min(r.endIndex + r.overscan, r.count - 1), s = [];
|
|
7
|
+
for (let t = h; t <= e; t++)
|
|
8
8
|
s.push(t);
|
|
9
9
|
return s;
|
|
10
|
-
},
|
|
10
|
+
}, W = (r, h) => {
|
|
11
11
|
const e = r.scrollElement;
|
|
12
12
|
if (!e)
|
|
13
13
|
return;
|
|
14
14
|
const s = r.targetWindow;
|
|
15
15
|
if (!s)
|
|
16
16
|
return;
|
|
17
|
-
const t = (
|
|
18
|
-
const { width: o, height:
|
|
19
|
-
|
|
17
|
+
const t = (i) => {
|
|
18
|
+
const { width: o, height: a } = i;
|
|
19
|
+
h({ width: Math.round(o), height: Math.round(a) });
|
|
20
20
|
};
|
|
21
|
-
if (t(
|
|
21
|
+
if (t(y(e)), !s.ResizeObserver)
|
|
22
22
|
return () => {
|
|
23
23
|
};
|
|
24
|
-
const
|
|
24
|
+
const n = new s.ResizeObserver((i) => {
|
|
25
25
|
const o = () => {
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
t({ width:
|
|
26
|
+
const a = i[0];
|
|
27
|
+
if (a?.borderBoxSize) {
|
|
28
|
+
const d = a.borderBoxSize[0];
|
|
29
|
+
if (d) {
|
|
30
|
+
t({ width: d.inlineSize, height: d.blockSize });
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
t(
|
|
34
|
+
t(y(e));
|
|
35
35
|
};
|
|
36
36
|
r.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(o) : o();
|
|
37
37
|
});
|
|
38
|
-
return
|
|
39
|
-
|
|
38
|
+
return n.observe(e, { box: "border-box" }), () => {
|
|
39
|
+
n.unobserve(e);
|
|
40
40
|
};
|
|
41
|
-
},
|
|
41
|
+
}, M = {
|
|
42
42
|
passive: !0
|
|
43
|
-
},
|
|
43
|
+
}, w = typeof window > "u" ? !0 : "onscrollend" in window, D = (r, h) => {
|
|
44
44
|
const e = r.scrollElement;
|
|
45
45
|
if (!e)
|
|
46
46
|
return;
|
|
@@ -48,52 +48,52 @@ const b = (r) => {
|
|
|
48
48
|
if (!s)
|
|
49
49
|
return;
|
|
50
50
|
let t = 0;
|
|
51
|
-
const
|
|
52
|
-
} :
|
|
51
|
+
const n = r.options.useScrollendEvent && w ? () => {
|
|
52
|
+
} : A(
|
|
53
53
|
s,
|
|
54
54
|
() => {
|
|
55
|
-
|
|
55
|
+
h(t, !1);
|
|
56
56
|
},
|
|
57
57
|
r.options.isScrollingResetDelay
|
|
58
|
-
),
|
|
59
|
-
const { horizontal:
|
|
60
|
-
t =
|
|
61
|
-
}, o =
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
return
|
|
65
|
-
e.removeEventListener("scroll", o),
|
|
58
|
+
), i = (c) => () => {
|
|
59
|
+
const { horizontal: u, isRtl: l } = r.options;
|
|
60
|
+
t = u ? e.scrollLeft * (l && -1 || 1) : e.scrollTop, n(), h(t, c);
|
|
61
|
+
}, o = i(!0), a = i(!1);
|
|
62
|
+
a(), e.addEventListener("scroll", o, M);
|
|
63
|
+
const d = r.options.useScrollendEvent && w;
|
|
64
|
+
return d && e.addEventListener("scrollend", a, M), () => {
|
|
65
|
+
e.removeEventListener("scroll", o), d && e.removeEventListener("scrollend", a);
|
|
66
66
|
};
|
|
67
|
-
},
|
|
68
|
-
if (
|
|
69
|
-
const s =
|
|
67
|
+
}, _ = (r, h, e) => {
|
|
68
|
+
if (h?.borderBoxSize) {
|
|
69
|
+
const s = h.borderBoxSize[0];
|
|
70
70
|
if (s)
|
|
71
71
|
return Math.round(
|
|
72
72
|
s[e.options.horizontal ? "inlineSize" : "blockSize"]
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
75
|
return r[e.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
76
|
-
},
|
|
77
|
-
adjustments:
|
|
76
|
+
}, L = (r, {
|
|
77
|
+
adjustments: h = 0,
|
|
78
78
|
behavior: e
|
|
79
79
|
}, s) => {
|
|
80
|
-
var t,
|
|
81
|
-
const
|
|
82
|
-
(
|
|
83
|
-
[s.options.horizontal ? "left" : "top"]:
|
|
80
|
+
var t, n;
|
|
81
|
+
const i = r + h;
|
|
82
|
+
(n = (t = s.scrollElement) == null ? void 0 : t.scrollTo) == null || n.call(t, {
|
|
83
|
+
[s.options.horizontal ? "left" : "top"]: i,
|
|
84
84
|
behavior: e
|
|
85
85
|
});
|
|
86
86
|
};
|
|
87
|
-
class
|
|
88
|
-
constructor(
|
|
89
|
-
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
|
|
87
|
+
class T {
|
|
88
|
+
constructor(h) {
|
|
89
|
+
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
|
|
90
90
|
let e = null;
|
|
91
91
|
const s = () => e || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : e = new this.targetWindow.ResizeObserver((t) => {
|
|
92
|
-
t.forEach((
|
|
93
|
-
const
|
|
94
|
-
this._measureElement(
|
|
92
|
+
t.forEach((n) => {
|
|
93
|
+
const i = () => {
|
|
94
|
+
this._measureElement(n.target, n);
|
|
95
95
|
};
|
|
96
|
-
this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(
|
|
96
|
+
this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(i) : i();
|
|
97
97
|
});
|
|
98
98
|
}));
|
|
99
99
|
return {
|
|
@@ -102,12 +102,12 @@ class W {
|
|
|
102
102
|
(t = s()) == null || t.disconnect(), e = null;
|
|
103
103
|
},
|
|
104
104
|
observe: (t) => {
|
|
105
|
-
var
|
|
106
|
-
return (
|
|
105
|
+
var n;
|
|
106
|
+
return (n = s()) == null ? void 0 : n.observe(t, { box: "border-box" });
|
|
107
107
|
},
|
|
108
108
|
unobserve: (t) => {
|
|
109
|
-
var
|
|
110
|
-
return (
|
|
109
|
+
var n;
|
|
110
|
+
return (n = s()) == null ? void 0 : n.unobserve(t);
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
})(), this.range = null, this.setOptions = (e) => {
|
|
@@ -122,11 +122,11 @@ class W {
|
|
|
122
122
|
scrollPaddingStart: 0,
|
|
123
123
|
scrollPaddingEnd: 0,
|
|
124
124
|
horizontal: !1,
|
|
125
|
-
getItemKey:
|
|
126
|
-
rangeExtractor:
|
|
125
|
+
getItemKey: R,
|
|
126
|
+
rangeExtractor: F,
|
|
127
127
|
onChange: () => {
|
|
128
128
|
},
|
|
129
|
-
measureElement:
|
|
129
|
+
measureElement: _,
|
|
130
130
|
initialRect: { width: 0, height: 0 },
|
|
131
131
|
scrollMargin: 0,
|
|
132
132
|
gap: 0,
|
|
@@ -143,7 +143,7 @@ class W {
|
|
|
143
143
|
}, this.notify = (e) => {
|
|
144
144
|
var s, t;
|
|
145
145
|
(t = (s = this.options).onChange) == null || t.call(s, this, e);
|
|
146
|
-
}, this.maybeNotify =
|
|
146
|
+
}, this.maybeNotify = p(
|
|
147
147
|
() => (this.calculateRange(), [
|
|
148
148
|
this.isScrolling,
|
|
149
149
|
this.range ? this.range.startIndex : null,
|
|
@@ -183,63 +183,88 @@ class W {
|
|
|
183
183
|
this.scrollRect = t, this.maybeNotify();
|
|
184
184
|
})
|
|
185
185
|
), this.unsubs.push(
|
|
186
|
-
this.options.observeElementOffset(this, (t,
|
|
187
|
-
this.scrollAdjustments = 0, this.scrollDirection =
|
|
186
|
+
this.options.observeElementOffset(this, (t, n) => {
|
|
187
|
+
this.scrollAdjustments = 0, this.scrollDirection = n ? this.getScrollOffset() < t ? "forward" : "backward" : null, this.scrollOffset = t, this.isScrolling = n, this.maybeNotify();
|
|
188
188
|
})
|
|
189
189
|
);
|
|
190
190
|
}
|
|
191
191
|
}, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (e, s) => {
|
|
192
|
-
const t = /* @__PURE__ */ new Map(),
|
|
193
|
-
for (let
|
|
194
|
-
const o = e[
|
|
192
|
+
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
193
|
+
for (let i = s - 1; i >= 0; i--) {
|
|
194
|
+
const o = e[i];
|
|
195
195
|
if (t.has(o.lane))
|
|
196
196
|
continue;
|
|
197
|
-
const
|
|
197
|
+
const a = n.get(
|
|
198
198
|
o.lane
|
|
199
199
|
);
|
|
200
|
-
if (
|
|
200
|
+
if (a == null || o.end > a.end ? n.set(o.lane, o) : o.end < a.end && t.set(o.lane, !0), t.size === this.options.lanes)
|
|
201
201
|
break;
|
|
202
202
|
}
|
|
203
|
-
return
|
|
204
|
-
}, this.getMeasurementOptions =
|
|
203
|
+
return n.size === this.options.lanes ? Array.from(n.values()).sort((i, o) => i.end === o.end ? i.index - o.index : i.end - o.end)[0] : void 0;
|
|
204
|
+
}, this.getMeasurementOptions = p(
|
|
205
205
|
() => [
|
|
206
206
|
this.options.count,
|
|
207
207
|
this.options.paddingStart,
|
|
208
208
|
this.options.scrollMargin,
|
|
209
209
|
this.options.getItemKey,
|
|
210
|
-
this.options.enabled
|
|
210
|
+
this.options.enabled,
|
|
211
|
+
this.options.lanes
|
|
211
212
|
],
|
|
212
|
-
(e, s, t, i,
|
|
213
|
+
(e, s, t, n, i, o) => (this.prevLanes !== void 0 && this.prevLanes !== o && (this.lanesChangedFlag = !0), this.prevLanes = o, this.pendingMeasuredCacheIndexes = [], {
|
|
213
214
|
count: e,
|
|
214
215
|
paddingStart: s,
|
|
215
216
|
scrollMargin: t,
|
|
216
|
-
getItemKey:
|
|
217
|
-
enabled:
|
|
217
|
+
getItemKey: n,
|
|
218
|
+
enabled: i,
|
|
219
|
+
lanes: o
|
|
218
220
|
}),
|
|
219
221
|
{
|
|
220
|
-
key: !1
|
|
222
|
+
key: !1,
|
|
223
|
+
skipInitialOnChange: !0,
|
|
224
|
+
onChange: () => {
|
|
225
|
+
this.notify(this.isScrolling);
|
|
226
|
+
}
|
|
221
227
|
}
|
|
222
|
-
), this.getMeasurements =
|
|
228
|
+
), this.getMeasurements = p(
|
|
223
229
|
() => [this.getMeasurementOptions(), this.itemSizeCache],
|
|
224
|
-
({ count: e, paddingStart: s, scrollMargin: t, getItemKey:
|
|
225
|
-
if (!
|
|
226
|
-
return this.measurementsCache = [], this.itemSizeCache.clear(), [];
|
|
227
|
-
|
|
230
|
+
({ count: e, paddingStart: s, scrollMargin: t, getItemKey: n, enabled: i, lanes: o }, a) => {
|
|
231
|
+
if (!i)
|
|
232
|
+
return this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), [];
|
|
233
|
+
if (this.laneAssignments.size > e)
|
|
234
|
+
for (const l of this.laneAssignments.keys())
|
|
235
|
+
l >= e && this.laneAssignments.delete(l);
|
|
236
|
+
this.lanesChangedFlag && (this.lanesChangedFlag = !1, this.lanesSettling = !0, this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), this.pendingMeasuredCacheIndexes = []), this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((l) => {
|
|
228
237
|
this.itemSizeCache.set(l.key, l.size);
|
|
229
238
|
}));
|
|
230
|
-
const
|
|
231
|
-
this.pendingMeasuredCacheIndexes = [];
|
|
232
|
-
const c = this.measurementsCache.slice(0,
|
|
233
|
-
|
|
234
|
-
|
|
239
|
+
const d = this.lanesSettling ? 0 : this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
|
|
240
|
+
this.pendingMeasuredCacheIndexes = [], this.lanesSettling && this.measurementsCache.length === e && (this.lanesSettling = !1);
|
|
241
|
+
const c = this.measurementsCache.slice(0, d), u = new Array(o).fill(
|
|
242
|
+
void 0
|
|
243
|
+
);
|
|
244
|
+
for (let l = 0; l < d; l++) {
|
|
245
|
+
const f = c[l];
|
|
246
|
+
f && (u[f.lane] = l);
|
|
247
|
+
}
|
|
248
|
+
for (let l = d; l < e; l++) {
|
|
249
|
+
const f = n(l), v = this.laneAssignments.get(l);
|
|
250
|
+
let g, b;
|
|
251
|
+
if (v !== void 0 && this.options.lanes > 1) {
|
|
252
|
+
g = v;
|
|
253
|
+
const m = u[g], x = m !== void 0 ? c[m] : void 0;
|
|
254
|
+
b = x ? x.end + this.options.gap : s + t;
|
|
255
|
+
} else {
|
|
256
|
+
const m = this.options.lanes === 1 ? c[l - 1] : this.getFurthestMeasurement(c, l);
|
|
257
|
+
b = m ? m.end + this.options.gap : s + t, g = m ? m.lane : l % this.options.lanes, this.options.lanes > 1 && this.laneAssignments.set(l, g);
|
|
258
|
+
}
|
|
259
|
+
const S = a.get(f), E = typeof S == "number" ? S : this.options.estimateSize(l), C = b + E;
|
|
235
260
|
c[l] = {
|
|
236
261
|
index: l,
|
|
237
|
-
start:
|
|
238
|
-
size:
|
|
239
|
-
end:
|
|
240
|
-
key:
|
|
241
|
-
lane:
|
|
242
|
-
};
|
|
262
|
+
start: b,
|
|
263
|
+
size: E,
|
|
264
|
+
end: C,
|
|
265
|
+
key: f,
|
|
266
|
+
lane: g
|
|
267
|
+
}, u[g] = l;
|
|
243
268
|
}
|
|
244
269
|
return this.measurementsCache = c, c;
|
|
245
270
|
},
|
|
@@ -247,24 +272,24 @@ class W {
|
|
|
247
272
|
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
248
273
|
debug: () => this.options.debug
|
|
249
274
|
}
|
|
250
|
-
), this.calculateRange =
|
|
275
|
+
), this.calculateRange = p(
|
|
251
276
|
() => [
|
|
252
277
|
this.getMeasurements(),
|
|
253
278
|
this.getSize(),
|
|
254
279
|
this.getScrollOffset(),
|
|
255
280
|
this.options.lanes
|
|
256
281
|
],
|
|
257
|
-
(e, s, t,
|
|
282
|
+
(e, s, t, n) => this.range = e.length > 0 && s > 0 ? N({
|
|
258
283
|
measurements: e,
|
|
259
284
|
outerSize: s,
|
|
260
285
|
scrollOffset: t,
|
|
261
|
-
lanes:
|
|
286
|
+
lanes: n
|
|
262
287
|
}) : null,
|
|
263
288
|
{
|
|
264
289
|
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
265
290
|
debug: () => this.options.debug
|
|
266
291
|
}
|
|
267
|
-
), this.getVirtualIndexes =
|
|
292
|
+
), this.getVirtualIndexes = p(
|
|
268
293
|
() => {
|
|
269
294
|
let e = null, s = null;
|
|
270
295
|
const t = this.calculateRange();
|
|
@@ -276,9 +301,9 @@ class W {
|
|
|
276
301
|
s
|
|
277
302
|
];
|
|
278
303
|
},
|
|
279
|
-
(e, s, t,
|
|
280
|
-
startIndex:
|
|
281
|
-
endIndex:
|
|
304
|
+
(e, s, t, n, i) => n === null || i === null ? [] : e({
|
|
305
|
+
startIndex: n,
|
|
306
|
+
endIndex: i,
|
|
282
307
|
overscan: s,
|
|
283
308
|
count: t
|
|
284
309
|
}),
|
|
@@ -292,18 +317,18 @@ class W {
|
|
|
292
317
|
`Missing attribute name '${s}={index}' on measured element.`
|
|
293
318
|
), -1);
|
|
294
319
|
}, this._measureElement = (e, s) => {
|
|
295
|
-
const t = this.indexFromElement(e),
|
|
296
|
-
if (!
|
|
320
|
+
const t = this.indexFromElement(e), n = this.measurementsCache[t];
|
|
321
|
+
if (!n)
|
|
297
322
|
return;
|
|
298
|
-
const
|
|
299
|
-
o !== e && (o && this.observer.unobserve(o), this.observer.observe(e), this.elementsCache.set(
|
|
323
|
+
const i = n.key, o = this.elementsCache.get(i);
|
|
324
|
+
o !== e && (o && this.observer.unobserve(o), this.observer.observe(e), this.elementsCache.set(i, e)), e.isConnected && this.resizeItem(t, this.options.measureElement(e, s, this));
|
|
300
325
|
}, this.resizeItem = (e, s) => {
|
|
301
326
|
const t = this.measurementsCache[e];
|
|
302
327
|
if (!t)
|
|
303
328
|
return;
|
|
304
|
-
const
|
|
305
|
-
|
|
306
|
-
adjustments: this.scrollAdjustments +=
|
|
329
|
+
const n = this.itemSizeCache.get(t.key) ?? t.size, i = s - n;
|
|
330
|
+
i !== 0 && ((this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(t, i, this) : t.start < this.getScrollOffset() + this.scrollAdjustments) && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", i), this._scrollToOffset(this.getScrollOffset(), {
|
|
331
|
+
adjustments: this.scrollAdjustments += i,
|
|
307
332
|
behavior: void 0
|
|
308
333
|
})), this.pendingMeasuredCacheIndexes.push(t.index), this.itemSizeCache = new Map(this.itemSizeCache.set(t.key, s)), this.notify(!1));
|
|
309
334
|
}, this.measureElement = (e) => {
|
|
@@ -314,13 +339,13 @@ class W {
|
|
|
314
339
|
return;
|
|
315
340
|
}
|
|
316
341
|
this._measureElement(e, void 0);
|
|
317
|
-
}, this.getVirtualItems =
|
|
342
|
+
}, this.getVirtualItems = p(
|
|
318
343
|
() => [this.getVirtualIndexes(), this.getMeasurements()],
|
|
319
344
|
(e, s) => {
|
|
320
345
|
const t = [];
|
|
321
|
-
for (let
|
|
322
|
-
const o = e[
|
|
323
|
-
t.push(
|
|
346
|
+
for (let n = 0, i = e.length; n < i; n++) {
|
|
347
|
+
const o = e[n], a = s[o];
|
|
348
|
+
t.push(a);
|
|
324
349
|
}
|
|
325
350
|
return t;
|
|
326
351
|
},
|
|
@@ -331,32 +356,32 @@ class W {
|
|
|
331
356
|
), this.getVirtualItemForOffset = (e) => {
|
|
332
357
|
const s = this.getMeasurements();
|
|
333
358
|
if (s.length !== 0)
|
|
334
|
-
return
|
|
335
|
-
s[
|
|
359
|
+
return O(
|
|
360
|
+
s[z(
|
|
336
361
|
0,
|
|
337
362
|
s.length - 1,
|
|
338
|
-
(t) =>
|
|
363
|
+
(t) => O(s[t]).start,
|
|
339
364
|
e
|
|
340
365
|
)]
|
|
341
366
|
);
|
|
342
367
|
}, this.getOffsetForAlignment = (e, s, t = 0) => {
|
|
343
|
-
const
|
|
344
|
-
s === "auto" && (s = e >=
|
|
345
|
-
const o = this.getTotalSize() + this.options.scrollMargin -
|
|
368
|
+
const n = this.getSize(), i = this.getScrollOffset();
|
|
369
|
+
s === "auto" && (s = e >= i + n ? "end" : "start"), s === "center" ? e += (t - n) / 2 : s === "end" && (e -= n);
|
|
370
|
+
const o = this.getTotalSize() + this.options.scrollMargin - n;
|
|
346
371
|
return Math.max(Math.min(o, e), 0);
|
|
347
372
|
}, this.getOffsetForIndex = (e, s = "auto") => {
|
|
348
373
|
e = Math.max(0, Math.min(e, this.options.count - 1));
|
|
349
374
|
const t = this.measurementsCache[e];
|
|
350
375
|
if (!t)
|
|
351
376
|
return;
|
|
352
|
-
const
|
|
377
|
+
const n = this.getSize(), i = this.getScrollOffset();
|
|
353
378
|
if (s === "auto")
|
|
354
|
-
if (t.end >=
|
|
379
|
+
if (t.end >= i + n - this.options.scrollPaddingEnd)
|
|
355
380
|
s = "end";
|
|
356
|
-
else if (t.start <=
|
|
381
|
+
else if (t.start <= i + this.options.scrollPaddingStart)
|
|
357
382
|
s = "start";
|
|
358
383
|
else
|
|
359
|
-
return [
|
|
384
|
+
return [i, s];
|
|
360
385
|
const o = s === "end" ? t.end + this.options.scrollPaddingEnd : t.start - this.options.scrollPaddingStart;
|
|
361
386
|
return [
|
|
362
387
|
this.getOffsetForAlignment(o, s, t.size),
|
|
@@ -373,26 +398,26 @@ class W {
|
|
|
373
398
|
t === "smooth" && this.isDynamicMode() && console.warn(
|
|
374
399
|
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
375
400
|
), e = Math.max(0, Math.min(e, this.options.count - 1));
|
|
376
|
-
let
|
|
377
|
-
const
|
|
401
|
+
let n = 0;
|
|
402
|
+
const i = 10, o = (d) => {
|
|
378
403
|
if (!this.targetWindow) return;
|
|
379
|
-
const
|
|
380
|
-
if (!
|
|
404
|
+
const c = this.getOffsetForIndex(e, d);
|
|
405
|
+
if (!c) {
|
|
381
406
|
console.warn("Failed to get offset for index:", e);
|
|
382
407
|
return;
|
|
383
408
|
}
|
|
384
|
-
const [
|
|
385
|
-
this._scrollToOffset(
|
|
386
|
-
const
|
|
387
|
-
if (!
|
|
409
|
+
const [u, l] = c;
|
|
410
|
+
this._scrollToOffset(u, { adjustments: void 0, behavior: t }), this.targetWindow.requestAnimationFrame(() => {
|
|
411
|
+
const f = this.getScrollOffset(), v = this.getOffsetForIndex(e, l);
|
|
412
|
+
if (!v) {
|
|
388
413
|
console.warn("Failed to get offset for index:", e);
|
|
389
414
|
return;
|
|
390
415
|
}
|
|
391
|
-
|
|
416
|
+
I(v[0], f) || a(l);
|
|
392
417
|
});
|
|
393
|
-
},
|
|
394
|
-
this.targetWindow && (
|
|
395
|
-
`Failed to scroll to index ${e} after ${
|
|
418
|
+
}, a = (d) => {
|
|
419
|
+
this.targetWindow && (n++, n < i ? (process.env.NODE_ENV !== "production" && this.options.debug && console.info("Schedule retry", n, i), this.targetWindow.requestAnimationFrame(() => o(d))) : console.warn(
|
|
420
|
+
`Failed to scroll to index ${e} after ${i} attempts.`
|
|
396
421
|
));
|
|
397
422
|
};
|
|
398
423
|
o(s);
|
|
@@ -412,13 +437,13 @@ class W {
|
|
|
412
437
|
else if (this.options.lanes === 1)
|
|
413
438
|
t = ((e = s[s.length - 1]) == null ? void 0 : e.end) ?? 0;
|
|
414
439
|
else {
|
|
415
|
-
const
|
|
416
|
-
let
|
|
417
|
-
for (;
|
|
418
|
-
const o = s[
|
|
419
|
-
|
|
440
|
+
const n = Array(this.options.lanes).fill(null);
|
|
441
|
+
let i = s.length - 1;
|
|
442
|
+
for (; i >= 0 && n.some((o) => o === null); ) {
|
|
443
|
+
const o = s[i];
|
|
444
|
+
n[o.lane] === null && (n[o.lane] = o.end), i--;
|
|
420
445
|
}
|
|
421
|
-
t = Math.max(...
|
|
446
|
+
t = Math.max(...n.filter((o) => o !== null));
|
|
422
447
|
}
|
|
423
448
|
return Math.max(
|
|
424
449
|
t - this.options.scrollMargin + this.options.paddingEnd,
|
|
@@ -430,68 +455,68 @@ class W {
|
|
|
430
455
|
}) => {
|
|
431
456
|
this.options.scrollToFn(e, { behavior: t, adjustments: s }, this);
|
|
432
457
|
}, this.measure = () => {
|
|
433
|
-
this.itemSizeCache = /* @__PURE__ */ new Map(), this.notify(!1);
|
|
434
|
-
}, this.setOptions(
|
|
458
|
+
this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.notify(!1);
|
|
459
|
+
}, this.setOptions(h);
|
|
435
460
|
}
|
|
436
461
|
}
|
|
437
|
-
const
|
|
438
|
-
for (; r <=
|
|
439
|
-
const t = (r +
|
|
440
|
-
if (
|
|
462
|
+
const z = (r, h, e, s) => {
|
|
463
|
+
for (; r <= h; ) {
|
|
464
|
+
const t = (r + h) / 2 | 0, n = e(t);
|
|
465
|
+
if (n < s)
|
|
441
466
|
r = t + 1;
|
|
442
|
-
else if (
|
|
443
|
-
|
|
467
|
+
else if (n > s)
|
|
468
|
+
h = t - 1;
|
|
444
469
|
else
|
|
445
470
|
return t;
|
|
446
471
|
}
|
|
447
472
|
return r > 0 ? r - 1 : 0;
|
|
448
473
|
};
|
|
449
|
-
function
|
|
474
|
+
function N({
|
|
450
475
|
measurements: r,
|
|
451
|
-
outerSize:
|
|
476
|
+
outerSize: h,
|
|
452
477
|
scrollOffset: e,
|
|
453
478
|
lanes: s
|
|
454
479
|
}) {
|
|
455
|
-
const t = r.length - 1,
|
|
480
|
+
const t = r.length - 1, n = (a) => r[a].start;
|
|
456
481
|
if (r.length <= s)
|
|
457
482
|
return {
|
|
458
483
|
startIndex: 0,
|
|
459
484
|
endIndex: t
|
|
460
485
|
};
|
|
461
|
-
let
|
|
486
|
+
let i = z(
|
|
462
487
|
0,
|
|
463
488
|
t,
|
|
464
|
-
|
|
489
|
+
n,
|
|
465
490
|
e
|
|
466
|
-
), o =
|
|
491
|
+
), o = i;
|
|
467
492
|
if (s === 1)
|
|
468
|
-
for (; o < t && r[o].end < e +
|
|
493
|
+
for (; o < t && r[o].end < e + h; )
|
|
469
494
|
o++;
|
|
470
495
|
else if (s > 1) {
|
|
471
|
-
const
|
|
472
|
-
for (; o < t &&
|
|
473
|
-
const
|
|
474
|
-
|
|
496
|
+
const a = Array(s).fill(0);
|
|
497
|
+
for (; o < t && a.some((c) => c < e + h); ) {
|
|
498
|
+
const c = r[o];
|
|
499
|
+
a[c.lane] = c.end, o++;
|
|
475
500
|
}
|
|
476
|
-
const
|
|
477
|
-
for (;
|
|
478
|
-
const
|
|
479
|
-
c
|
|
501
|
+
const d = Array(s).fill(e + h);
|
|
502
|
+
for (; i >= 0 && d.some((c) => c >= e); ) {
|
|
503
|
+
const c = r[i];
|
|
504
|
+
d[c.lane] = c.start, i--;
|
|
480
505
|
}
|
|
481
|
-
|
|
506
|
+
i = Math.max(0, i - i % s), o = Math.min(t, o + (s - 1 - o % s));
|
|
482
507
|
}
|
|
483
|
-
return { startIndex:
|
|
508
|
+
return { startIndex: i, endIndex: o };
|
|
484
509
|
}
|
|
485
510
|
export {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
511
|
+
T as Virtualizer,
|
|
512
|
+
I as approxEqual,
|
|
513
|
+
A as debounce,
|
|
514
|
+
R as defaultKeyExtractor,
|
|
515
|
+
F as defaultRangeExtractor,
|
|
516
|
+
L as elementScroll,
|
|
517
|
+
_ as measureElement,
|
|
518
|
+
p as memo,
|
|
519
|
+
O as notUndefined,
|
|
520
|
+
D as observeElementOffset,
|
|
521
|
+
W as observeElementRect
|
|
497
522
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
function T(n,
|
|
2
|
-
let
|
|
3
|
-
function
|
|
4
|
-
var
|
|
1
|
+
function T(n, l, e) {
|
|
2
|
+
let i = e.initialDeps ?? [], t, c = !0;
|
|
3
|
+
function h() {
|
|
4
|
+
var d, m, f;
|
|
5
5
|
let g;
|
|
6
|
-
e.key && ((
|
|
7
|
-
const
|
|
8
|
-
if (!(
|
|
6
|
+
e.key && ((d = e.debug) != null && d.call(e)) && (g = Date.now());
|
|
7
|
+
const o = n();
|
|
8
|
+
if (!(o.length !== i.length || o.some((r, a) => i[a] !== r)))
|
|
9
9
|
return t;
|
|
10
|
-
|
|
10
|
+
i = o;
|
|
11
11
|
let s;
|
|
12
|
-
if (e.key && ((m = e.debug) != null && m.call(e)) && (s = Date.now()), t =
|
|
13
|
-
const
|
|
14
|
-
for (
|
|
15
|
-
|
|
16
|
-
return
|
|
12
|
+
if (e.key && ((m = e.debug) != null && m.call(e)) && (s = Date.now()), t = l(...o), e.key && ((f = e.debug) != null && f.call(e))) {
|
|
13
|
+
const r = Math.round((Date.now() - g) * 100) / 100, a = Math.round((Date.now() - s) * 100) / 100, b = a / 16, w = (u, D) => {
|
|
14
|
+
for (u = String(u); u.length < D; )
|
|
15
|
+
u = " " + u;
|
|
16
|
+
return u;
|
|
17
17
|
};
|
|
18
18
|
console.info(
|
|
19
|
-
`%c⏱ ${w(a, 5)} /${w(
|
|
19
|
+
`%c⏱ ${w(a, 5)} /${w(r, 5)} ms`,
|
|
20
20
|
`
|
|
21
21
|
font-size: .6rem;
|
|
22
22
|
font-weight: bold;
|
|
@@ -27,26 +27,26 @@ function T(n, i, e) {
|
|
|
27
27
|
e?.key
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return e?.onChange && !(c && e.skipInitialOnChange) && e.onChange(t), c = !1, t;
|
|
31
31
|
}
|
|
32
|
-
return
|
|
33
|
-
|
|
34
|
-
},
|
|
32
|
+
return h.updateDeps = (d) => {
|
|
33
|
+
i = d;
|
|
34
|
+
}, h;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function k(n, l) {
|
|
37
37
|
if (n === void 0)
|
|
38
38
|
throw new Error("Unexpected undefined");
|
|
39
39
|
return n;
|
|
40
40
|
}
|
|
41
|
-
const
|
|
42
|
-
let
|
|
41
|
+
const y = (n, l) => Math.abs(n - l) < 1.01, C = (n, l, e) => {
|
|
42
|
+
let i;
|
|
43
43
|
return function(...t) {
|
|
44
|
-
n.clearTimeout(
|
|
44
|
+
n.clearTimeout(i), i = n.setTimeout(() => l.apply(this, t), e);
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
y as approxEqual,
|
|
49
|
+
C as debounce,
|
|
50
50
|
T as memo,
|
|
51
|
-
|
|
51
|
+
k as notUndefined
|
|
52
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/table-theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,yBAAyB,EAA8C,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"table-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/table-theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,yBAAyB,EAA8C,MAAM,kBAAkB,CAAC;AAqF9G,eAAO,MAAM,WAAW,EAAE,yBAExB,CAAC"}
|
|
@@ -29,7 +29,9 @@ const { definePartsStyle: d, defineMultiStyleConfig: i } = a(l.keys), p = e({
|
|
|
29
29
|
_last: {
|
|
30
30
|
borderRight: "none"
|
|
31
31
|
},
|
|
32
|
-
"&:has(input)": {
|
|
32
|
+
"&:has(input):not(:has(input[type='checkbox']))": {
|
|
33
|
+
padding: "0px !important"
|
|
34
|
+
},
|
|
33
35
|
"&:has(textarea)": { padding: "0px !important" }
|
|
34
36
|
},
|
|
35
37
|
tr: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caspeco/casper-ui-library",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.10.0",
|
|
4
4
|
"prettier": "@caspeco/prettier-config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
31
|
-
"@caspeco/eslint-config-react": "^5.0
|
|
31
|
+
"@caspeco/eslint-config-react": "^5.1.0",
|
|
32
32
|
"@caspeco/prettier-config": "^1.0.7",
|
|
33
|
-
"@eslint/js": "^9.39.
|
|
33
|
+
"@eslint/js": "^9.39.2",
|
|
34
34
|
"@testing-library/jest-dom": "^6.9.1",
|
|
35
35
|
"@testing-library/react": "^16.3.0",
|
|
36
36
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"@types/react": "^18.3.12",
|
|
40
40
|
"@types/react-dom": "^18.3.1",
|
|
41
41
|
"@vitejs/plugin-react-swc": "^4.2.2",
|
|
42
|
-
"eslint": "^9.39.
|
|
42
|
+
"eslint": "^9.39.2",
|
|
43
43
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
44
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
44
|
+
"eslint-plugin-react-refresh": "^0.4.25",
|
|
45
45
|
"globals": "^16.5.0",
|
|
46
|
-
"jsdom": "^27.
|
|
46
|
+
"jsdom": "^27.3.0",
|
|
47
47
|
"tsc-alias": "^1.8.16",
|
|
48
48
|
"typescript": "~5.9.3",
|
|
49
|
-
"typescript-eslint": "^8.
|
|
50
|
-
"vite": "^7.2.
|
|
49
|
+
"typescript-eslint": "^8.49.0",
|
|
50
|
+
"vite": "^7.2.7",
|
|
51
51
|
"vite-plugin-dts": "^4.5.4",
|
|
52
52
|
"vite-tsconfig-paths": "^5.1.4",
|
|
53
53
|
"vitest": "^4.0.15"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@chakra-ui/anatomy": "^2.3.4",
|
|
63
63
|
"@floating-ui/dom": "^1.7.4",
|
|
64
64
|
"@tanstack/react-table": "^8.21.3",
|
|
65
|
-
"@tanstack/react-virtual": "^3.13.
|
|
65
|
+
"@tanstack/react-virtual": "^3.13.13",
|
|
66
66
|
"csstype": "^3.2.3",
|
|
67
67
|
"date-fns": "^4.1.0"
|
|
68
68
|
}
|