@caspeco/casper-ui-library 9.6.2 → 9.8.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/collapsible/collapsible.composition.d.ts +4 -0
- package/dist/components/collapsible/collapsible.composition.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.d.ts +3 -0
- package/dist/components/collapsible/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.js +117 -0
- package/dist/components/collapsible/collapsible.spec.d.ts +2 -0
- package/dist/components/collapsible/collapsible.spec.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.visual.test.d.ts +2 -0
- package/dist/components/collapsible/collapsible.visual.test.d.ts.map +1 -0
- package/dist/components/collapsible/index.d.ts +3 -0
- package/dist/components/collapsible/index.d.ts.map +1 -0
- package/dist/components/collapsible/translations.d.ts +32 -0
- package/dist/components/collapsible/translations.d.ts.map +1 -0
- package/dist/components/collapsible/translations.js +30 -0
- package/dist/components/collapsible/types.d.ts +15 -0
- package/dist/components/collapsible/types.d.ts.map +1 -0
- package/dist/components/table/table-context-provider.d.ts +3 -1
- package/dist/components/table/table-context-provider.d.ts.map +1 -1
- package/dist/components/table/table-context-provider.js +70 -68
- package/dist/components/table/table-header-row.d.ts.map +1 -1
- package/dist/components/table/table-header-row.js +115 -108
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +60 -58
- package/dist/components/table/translations.d.ts +10 -0
- package/dist/components/table/translations.d.ts.map +1 -1
- package/dist/components/table/translations.js +12 -2
- package/dist/components/table/types.d.ts +4 -0
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/hooks/use-remove-attributes.d.ts +14 -0
- package/dist/hooks/use-remove-attributes.d.ts.map +1 -0
- package/dist/hooks/use-remove-attributes.js +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +667 -665
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const DefaultState: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const CollapsedState: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const NonCollapsibleContent: () => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=collapsible.composition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.composition.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/collapsible.composition.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY,+CAIxB,CAAC;AAEF,eAAO,MAAM,cAAc,+CAI1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,+CAIjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/collapsible.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAIhD,eAAO,MAAM,WAAW,GAAI,yDAKzB,gBAAgB,4CAwFlB,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsx as e, jsxs as I } from "react/jsx-runtime";
|
|
2
|
+
import { Collapsible as o, Box as a, Flex as R } from "@chakra-ui/react";
|
|
3
|
+
import { useState as m, useRef as y, useLayoutEffect as O } from "react";
|
|
4
|
+
import { useRemoveAttributes as S } from "../../hooks/use-remove-attributes.js";
|
|
5
|
+
import { translations as f } from "./translations.js";
|
|
6
|
+
import { ThemeSpaceVariable as D, ThemeColorVariable as d } from "../../theme/theme-types.js";
|
|
7
|
+
import { ExpandIcon as E } from "../icon/icons/expand-icon.js";
|
|
8
|
+
const s = "200ms", k = ({
|
|
9
|
+
children: h,
|
|
10
|
+
collapsedHeight: r,
|
|
11
|
+
defaultExpanded: b = !0,
|
|
12
|
+
locale: l = "en-US"
|
|
13
|
+
}) => {
|
|
14
|
+
const [g, C] = m(b), [c, x] = m(!0), i = y(null), t = c ? g : !0;
|
|
15
|
+
return S(i, ["inert"], !t), O(() => {
|
|
16
|
+
const n = i.current;
|
|
17
|
+
if (!n) return;
|
|
18
|
+
const p = () => {
|
|
19
|
+
const v = n.getBoundingClientRect().height;
|
|
20
|
+
x(v > r);
|
|
21
|
+
};
|
|
22
|
+
p();
|
|
23
|
+
const u = new ResizeObserver(p);
|
|
24
|
+
return u.observe(n), () => {
|
|
25
|
+
u.disconnect();
|
|
26
|
+
};
|
|
27
|
+
}, [r]), /* @__PURE__ */ e(
|
|
28
|
+
o.Root,
|
|
29
|
+
{
|
|
30
|
+
collapsedHeight: r,
|
|
31
|
+
open: t,
|
|
32
|
+
onOpenChange: ({ open: n }) => {
|
|
33
|
+
C(n);
|
|
34
|
+
},
|
|
35
|
+
children: /* @__PURE__ */ I(a, { position: "relative", children: [
|
|
36
|
+
/* @__PURE__ */ e(
|
|
37
|
+
o.Content,
|
|
38
|
+
{
|
|
39
|
+
_open: {
|
|
40
|
+
animationDuration: s
|
|
41
|
+
},
|
|
42
|
+
_closed: {
|
|
43
|
+
animationDuration: s
|
|
44
|
+
},
|
|
45
|
+
children: /* @__PURE__ */ e(a, { ref: i, children: h })
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
!t && /* @__PURE__ */ e(T, {}),
|
|
49
|
+
c && /* @__PURE__ */ e(
|
|
50
|
+
R,
|
|
51
|
+
{
|
|
52
|
+
css: t ? {
|
|
53
|
+
position: "relative"
|
|
54
|
+
} : {
|
|
55
|
+
position: "absolute",
|
|
56
|
+
bottom: 0,
|
|
57
|
+
left: 0,
|
|
58
|
+
right: 0,
|
|
59
|
+
transform: `translateY(${D.XSmall})`
|
|
60
|
+
},
|
|
61
|
+
alignItems: "center",
|
|
62
|
+
justifyContent: "center",
|
|
63
|
+
width: "100%",
|
|
64
|
+
children: /* @__PURE__ */ e(o.Trigger, { children: /* @__PURE__ */ e(
|
|
65
|
+
o.Indicator,
|
|
66
|
+
{
|
|
67
|
+
width: 40,
|
|
68
|
+
height: 40,
|
|
69
|
+
display: "flex",
|
|
70
|
+
alignItems: "center",
|
|
71
|
+
justifyContent: "center",
|
|
72
|
+
transition: `transform ${s} ease`,
|
|
73
|
+
"aria-label": t ? f[l].collapseContent : f[l].expandContent,
|
|
74
|
+
_open: { transform: "rotate(180deg)" },
|
|
75
|
+
children: /* @__PURE__ */ e(E, {})
|
|
76
|
+
}
|
|
77
|
+
) })
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
] })
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}, T = () => /* @__PURE__ */ e(
|
|
84
|
+
a,
|
|
85
|
+
{
|
|
86
|
+
"data-testid": "blur-overlay",
|
|
87
|
+
css: {
|
|
88
|
+
position: "absolute",
|
|
89
|
+
bottom: 0,
|
|
90
|
+
left: 0,
|
|
91
|
+
right: 0,
|
|
92
|
+
height: "36px",
|
|
93
|
+
pointerEvents: "none",
|
|
94
|
+
"&::before": {
|
|
95
|
+
content: '""',
|
|
96
|
+
position: "absolute",
|
|
97
|
+
top: 0,
|
|
98
|
+
left: 0,
|
|
99
|
+
right: 0,
|
|
100
|
+
height: "20px",
|
|
101
|
+
background: `linear-gradient(to bottom, rgba(255, 255, 255, 0.00) 2.18%, ${d.Surface} 97.81%)`
|
|
102
|
+
},
|
|
103
|
+
"&::after": {
|
|
104
|
+
content: '""',
|
|
105
|
+
position: "absolute",
|
|
106
|
+
bottom: 0,
|
|
107
|
+
left: 0,
|
|
108
|
+
right: 0,
|
|
109
|
+
height: "calc(100% - 20px)",
|
|
110
|
+
background: d.Surface
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
export {
|
|
116
|
+
k as Collapsible
|
|
117
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.spec.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/collapsible.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.visual.test.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/collapsible.visual.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type Locales = "en-US" | "nb-NO" | "da-DK" | "sv-SE" | "en-GB" | "fr-FR" | "nl-BE";
|
|
2
|
+
export declare const translations: {
|
|
3
|
+
"sv-SE": {
|
|
4
|
+
collapseContent: string;
|
|
5
|
+
expandContent: string;
|
|
6
|
+
};
|
|
7
|
+
"en-US": {
|
|
8
|
+
collapseContent: string;
|
|
9
|
+
expandContent: string;
|
|
10
|
+
};
|
|
11
|
+
"en-GB": {
|
|
12
|
+
collapseContent: string;
|
|
13
|
+
expandContent: string;
|
|
14
|
+
};
|
|
15
|
+
"nb-NO": {
|
|
16
|
+
collapseContent: string;
|
|
17
|
+
expandContent: string;
|
|
18
|
+
};
|
|
19
|
+
"da-DK": {
|
|
20
|
+
collapseContent: string;
|
|
21
|
+
expandContent: string;
|
|
22
|
+
};
|
|
23
|
+
"fr-FR": {
|
|
24
|
+
collapseContent: string;
|
|
25
|
+
expandContent: string;
|
|
26
|
+
};
|
|
27
|
+
"nl-BE": {
|
|
28
|
+
collapseContent: string;
|
|
29
|
+
expandContent: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/translations.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAO1F,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBxB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const n = {
|
|
2
|
+
collapseContent: "Collapse content",
|
|
3
|
+
expandContent: "Expand content"
|
|
4
|
+
}, e = {
|
|
5
|
+
"sv-SE": {
|
|
6
|
+
collapseContent: "Kollapsa innehåll",
|
|
7
|
+
expandContent: "Expandera innehåll"
|
|
8
|
+
},
|
|
9
|
+
"en-US": n,
|
|
10
|
+
"en-GB": n,
|
|
11
|
+
"nb-NO": {
|
|
12
|
+
collapseContent: "Skjul innhold",
|
|
13
|
+
expandContent: "Vis innhold"
|
|
14
|
+
},
|
|
15
|
+
"da-DK": {
|
|
16
|
+
collapseContent: "Skjul indhold",
|
|
17
|
+
expandContent: "Vis indhold"
|
|
18
|
+
},
|
|
19
|
+
"fr-FR": {
|
|
20
|
+
collapseContent: "Réduire le contenu",
|
|
21
|
+
expandContent: "Afficher le contenu"
|
|
22
|
+
},
|
|
23
|
+
"nl-BE": {
|
|
24
|
+
collapseContent: "Inhoud samenvouwen",
|
|
25
|
+
expandContent: "Inhoud uitvouwen"
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
e as translations
|
|
30
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { Locales } from './translations.js';
|
|
3
|
+
export type CollapsibleProps = PropsWithChildren<{
|
|
4
|
+
/** The height (in pixels) at which the content should be collapsed. If the content's height is less than or equal to this value, it will not be collapsible. */
|
|
5
|
+
collapsedHeight: number;
|
|
6
|
+
/** Whether the content should be expanded by default. */
|
|
7
|
+
defaultExpanded?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Locale used for translation of text contents native to the collapsible, such as aria-labels for the trigger button.
|
|
10
|
+
* Defaults to 'en-US'.
|
|
11
|
+
*/
|
|
12
|
+
locale?: Locales;
|
|
13
|
+
}>;
|
|
14
|
+
export type { Locales };
|
|
15
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;IAChD,gKAAgK;IAChK,eAAe,EAAE,MAAM,CAAC;IACxB,yDAAyD;IACzD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC,CAAC;AAEH,YAAY,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -28,6 +28,7 @@ interface TableProviderInterface<TData extends TableData> extends PropsWithChild
|
|
|
28
28
|
sortingState?: SortingState;
|
|
29
29
|
onSelectionChange?: (selectedRowIds: string[]) => void;
|
|
30
30
|
initialSelectionState?: string[];
|
|
31
|
+
totalDataCount?: number;
|
|
31
32
|
selectionState?: string[];
|
|
32
33
|
selectionActions?: SelectionAction[];
|
|
33
34
|
disableSelectionCheckbox?: (row: Row<TableRow<TData>>) => boolean;
|
|
@@ -66,6 +67,7 @@ export interface TableContextInterface<TData extends TableData = TableData> {
|
|
|
66
67
|
getTableFilterMethods: () => TableFilterMethods | null;
|
|
67
68
|
canSelectRows: boolean;
|
|
68
69
|
setSelectedRowIds: React.Dispatch<React.SetStateAction<string[]>>;
|
|
70
|
+
totalDataCount?: number;
|
|
69
71
|
selectedRowIds?: string[] | undefined;
|
|
70
72
|
selectionActions?: SelectionAction[];
|
|
71
73
|
disableSelectionCheckbox?: (row: Row<TableRow<TData>>) => boolean;
|
|
@@ -75,6 +77,6 @@ export interface TableContextInterface<TData extends TableData = TableData> {
|
|
|
75
77
|
setColumnOrder: (columnOrder: ColumnOrderState) => void;
|
|
76
78
|
handleDragEnd: (sourceId: string, targetId: string) => void;
|
|
77
79
|
}
|
|
78
|
-
export declare const TableProvider: <TData extends TableData>({ data, columns, children, expandedState, localeString, initialExpandedState, initialBreakingContentState, initialColumnVisibilityState, columnVisibilityState, onColumnVisibilityChange, onExpandedChange, getRowId, getRowActions, onBreakingContentChange, id, customRowIndication, onSortingChange, initialSortingState, sortingState, selectionState, initialSelectionState, onSelectionChange, selectionActions, disableSelectionCheckbox, enableColumnReorder, columnOrderState, initialColumnOrder, onColumnOrderChange, }: TableProviderInterface<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
export declare const TableProvider: <TData extends TableData>({ data, totalDataCount, columns, children, expandedState, localeString, initialExpandedState, initialBreakingContentState, initialColumnVisibilityState, columnVisibilityState, onColumnVisibilityChange, onExpandedChange, getRowId, getRowActions, onBreakingContentChange, id, customRowIndication, onSortingChange, initialSortingState, sortingState, selectionState, initialSelectionState, onSelectionChange, selectionActions, disableSelectionCheckbox, enableColumnReorder, columnOrderState, initialColumnOrder, onColumnOrderChange, }: TableProviderInterface<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
79
81
|
export {};
|
|
80
82
|
//# sourceMappingURL=table-context-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-context-provider.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-context-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EACN,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAKlB,KAAK,GAAG,EACR,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,KAAK,EAGV,KAAK,eAAe,EACpB,MAA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C,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACzE,YAAY,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC7C,gBAAgB,EAAE,eAAe,CAAC;IAClC,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAChD,mBAAmB,CAAC,EAAE,YAAY,CAAC;IACnC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,mBAAmB,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,MAAM,IAAI,CAAC;IACjE,qBAAqB,EAAE,MAAM,kBAAkB,GAAG,IAAI,CAAC;IACvD,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAClE,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACtC,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;IACrC,wBAAwB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,OAAO,CAAC;IAClE,mBAAmB,EAAE,MAAM,MAAM,EAAE,CAAC;IACpC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,WAAW,EAAE,gBAAgB,CAAC;IAC9B,cAAc,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACxD,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5D;AAED,eAAO,MAAM,aAAa,GAAI,KAAK,SAAS,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"table-context-provider.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-context-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EACN,KAA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AAO,MAAM,aAAa,GAAI,KAAK,SAAS,SAAS,EAAE,ohBA8BpD,sBAAsB,CAAC,KAAK,CAAC,4CAqN/B,CAAC"}
|
|
@@ -1,101 +1,102 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as me } from "react/jsx-runtime";
|
|
2
2
|
import { useControllableState as d } from "@chakra-ui/react";
|
|
3
|
-
import { useReactTable as
|
|
4
|
-
import { useState as b, useCallback as n, useEffect as
|
|
3
|
+
import { useReactTable as Ce } from "../../node_modules/@tanstack/react-table/build/lib/index.js";
|
|
4
|
+
import { useState as b, useCallback as n, useEffect as be } from "react";
|
|
5
5
|
import { arrayMove as L } from "./helper.js";
|
|
6
|
-
import { TableContext as
|
|
7
|
-
import { getFilteredRowModel as
|
|
8
|
-
const
|
|
6
|
+
import { TableContext as we } from "./table-context.js";
|
|
7
|
+
import { getFilteredRowModel as he, getSortedRowModel as Re, getExpandedRowModel as ve, getCoreRowModel as Me } from "../../node_modules/@tanstack/table-core/build/lib/index.js";
|
|
8
|
+
const Fe = ({
|
|
9
9
|
data: w,
|
|
10
|
+
totalDataCount: k,
|
|
10
11
|
columns: h,
|
|
11
|
-
children:
|
|
12
|
-
expandedState:
|
|
13
|
-
localeString:
|
|
12
|
+
children: q,
|
|
13
|
+
expandedState: z,
|
|
14
|
+
localeString: A,
|
|
14
15
|
initialExpandedState: R = {},
|
|
15
16
|
initialBreakingContentState: v = {},
|
|
16
|
-
initialColumnVisibilityState:
|
|
17
|
-
columnVisibilityState:
|
|
18
|
-
onColumnVisibilityChange:
|
|
17
|
+
initialColumnVisibilityState: B = {},
|
|
18
|
+
columnVisibilityState: G,
|
|
19
|
+
onColumnVisibilityChange: I,
|
|
19
20
|
onExpandedChange: M,
|
|
20
21
|
getRowId: S,
|
|
21
|
-
getRowActions:
|
|
22
|
-
onBreakingContentChange:
|
|
23
|
-
id:
|
|
22
|
+
getRowActions: J,
|
|
23
|
+
onBreakingContentChange: K,
|
|
24
|
+
id: N,
|
|
24
25
|
customRowIndication: g,
|
|
25
26
|
onSortingChange: p,
|
|
26
|
-
initialSortingState:
|
|
27
|
+
initialSortingState: Q = [],
|
|
27
28
|
sortingState: x,
|
|
28
|
-
selectionState:
|
|
29
|
-
initialSelectionState:
|
|
29
|
+
selectionState: U,
|
|
30
|
+
initialSelectionState: W = [],
|
|
30
31
|
onSelectionChange: y,
|
|
31
32
|
selectionActions: P,
|
|
32
33
|
disableSelectionCheckbox: u,
|
|
33
34
|
enableColumnReorder: V = !1,
|
|
34
|
-
columnOrderState:
|
|
35
|
+
columnOrderState: X,
|
|
35
36
|
initialColumnOrder: E,
|
|
36
|
-
onColumnOrderChange:
|
|
37
|
+
onColumnOrderChange: Y
|
|
37
38
|
}) => {
|
|
38
39
|
const [r, c] = d({
|
|
39
|
-
value:
|
|
40
|
+
value: z,
|
|
40
41
|
onChange: M,
|
|
41
42
|
defaultValue: R
|
|
42
43
|
}), [a, F] = d({
|
|
43
|
-
value:
|
|
44
|
-
onChange:
|
|
45
|
-
defaultValue:
|
|
44
|
+
value: G,
|
|
45
|
+
onChange: I,
|
|
46
|
+
defaultValue: B
|
|
46
47
|
}), [T, O] = d({
|
|
47
48
|
value: x,
|
|
48
49
|
onChange: p,
|
|
49
|
-
defaultValue:
|
|
50
|
-
}), [
|
|
51
|
-
value:
|
|
50
|
+
defaultValue: Q
|
|
51
|
+
}), [Z, _] = d({
|
|
52
|
+
value: U,
|
|
52
53
|
onChange: y,
|
|
53
|
-
defaultValue:
|
|
54
|
+
defaultValue: W
|
|
54
55
|
}), [f, s] = d({
|
|
55
|
-
value:
|
|
56
|
-
onChange:
|
|
56
|
+
value: X,
|
|
57
|
+
onChange: Y,
|
|
57
58
|
defaultValue: E?.length ? E : h.map((e) => e.id).filter((e) => e !== void 0)
|
|
58
|
-
}), [
|
|
59
|
+
}), [$, ee] = b(
|
|
59
60
|
v || {}
|
|
60
|
-
), [H, m] = b({}), [j, D] = b(null),
|
|
61
|
+
), [H, m] = b({}), [j, D] = b(null), te = n((e) => (D(e), () => {
|
|
61
62
|
D(null);
|
|
62
|
-
}), []),
|
|
63
|
-
|
|
63
|
+
}), []), oe = n(() => j, [j]);
|
|
64
|
+
be(() => {
|
|
64
65
|
g && m(g);
|
|
65
66
|
}, [g, m]);
|
|
66
|
-
const
|
|
67
|
+
const ne = n(
|
|
67
68
|
(e) => {
|
|
68
69
|
let t;
|
|
69
70
|
typeof e == "function" ? t = e(a) : t = e, F(t);
|
|
70
71
|
},
|
|
71
72
|
[a, F]
|
|
72
|
-
),
|
|
73
|
+
), le = n(
|
|
73
74
|
(e) => {
|
|
74
75
|
let t;
|
|
75
76
|
typeof e == "function" ? t = e(r) : t = e, c(t);
|
|
76
77
|
},
|
|
77
78
|
[r, c]
|
|
78
|
-
),
|
|
79
|
+
), ie = n(
|
|
79
80
|
(e) => {
|
|
80
81
|
O(e);
|
|
81
82
|
},
|
|
82
83
|
[O]
|
|
83
|
-
),
|
|
84
|
+
), se = n(
|
|
84
85
|
(e) => {
|
|
85
86
|
const t = typeof e == "function" ? e(f) : e;
|
|
86
87
|
s(t);
|
|
87
88
|
},
|
|
88
89
|
[f, s]
|
|
89
|
-
), o =
|
|
90
|
+
), o = Ce({
|
|
90
91
|
columns: h,
|
|
91
92
|
data: w,
|
|
92
|
-
getCoreRowModel:
|
|
93
|
-
getExpandedRowModel:
|
|
94
|
-
getSortedRowModel:
|
|
95
|
-
getFilteredRowModel:
|
|
96
|
-
onColumnVisibilityChange:
|
|
97
|
-
onExpandedChange:
|
|
98
|
-
onColumnOrderChange:
|
|
93
|
+
getCoreRowModel: Me(),
|
|
94
|
+
getExpandedRowModel: ve(),
|
|
95
|
+
getSortedRowModel: Re(),
|
|
96
|
+
getFilteredRowModel: he(),
|
|
97
|
+
onColumnVisibilityChange: ne,
|
|
98
|
+
onExpandedChange: le,
|
|
99
|
+
onColumnOrderChange: se,
|
|
99
100
|
getSubRows: (e) => e.subRows,
|
|
100
101
|
getRowId: S,
|
|
101
102
|
enableSubRowSelection: !0,
|
|
@@ -109,63 +110,64 @@ const Ee = ({
|
|
|
109
110
|
columnOrder: V ? f : void 0
|
|
110
111
|
},
|
|
111
112
|
manualSorting: x !== void 0
|
|
112
|
-
}),
|
|
113
|
+
}), de = n(
|
|
113
114
|
(e, t) => {
|
|
114
115
|
if (e === t) return;
|
|
115
|
-
const
|
|
116
|
-
if (
|
|
117
|
-
const i = o.getAllLeafColumns().filter((l) => l.getIsVisible()), C = i.map((l) => l.id),
|
|
116
|
+
const fe = o.getColumn(e).getIsPinned(), ge = o.getColumn(t).getIsPinned();
|
|
117
|
+
if (fe === "left" || ge === "left") {
|
|
118
|
+
const i = o.getAllLeafColumns().filter((l) => l.getIsVisible()), C = i.map((l) => l.id), ue = L(
|
|
118
119
|
C,
|
|
119
120
|
C.indexOf(e),
|
|
120
121
|
C.indexOf(t)
|
|
121
|
-
),
|
|
122
|
+
), ce = i.filter((l) => l.getIsPinned() === "left").length;
|
|
122
123
|
o.setColumnPinning((l) => ({
|
|
123
124
|
...l,
|
|
124
|
-
left:
|
|
125
|
+
left: ue.slice(0, ce)
|
|
125
126
|
}));
|
|
126
127
|
}
|
|
127
128
|
s((i) => L(i, i.indexOf(e), i.indexOf(t)));
|
|
128
129
|
},
|
|
129
130
|
[s, o]
|
|
130
|
-
),
|
|
131
|
+
), re = n(() => o.getRowModel().flatRows.filter((e) => !u?.(e)).map((e) => e.id), [u, o]), ae = {
|
|
131
132
|
data: w,
|
|
133
|
+
totalDataCount: k,
|
|
132
134
|
table: o,
|
|
133
135
|
initialExpandedState: R,
|
|
134
136
|
initialBreakingContentState: v,
|
|
135
|
-
localeString:
|
|
137
|
+
localeString: A,
|
|
136
138
|
onExpandedChange: M,
|
|
137
139
|
expanded: r,
|
|
138
140
|
sorting: T,
|
|
139
|
-
setSorting:
|
|
141
|
+
setSorting: ie,
|
|
140
142
|
setExpanded: c,
|
|
141
143
|
getRowId: S,
|
|
142
|
-
getRowActions:
|
|
143
|
-
breakingContentState:
|
|
144
|
-
setBreakingContentState:
|
|
145
|
-
onBreakingContentChange:
|
|
146
|
-
id:
|
|
144
|
+
getRowActions: J,
|
|
145
|
+
breakingContentState: $,
|
|
146
|
+
setBreakingContentState: ee,
|
|
147
|
+
onBreakingContentChange: K,
|
|
148
|
+
id: N,
|
|
147
149
|
setRowHighlight: m,
|
|
148
150
|
rowHighlight: H,
|
|
149
151
|
columnVisibility: a,
|
|
150
152
|
onSortingChange: p,
|
|
151
|
-
registerTableFilter:
|
|
152
|
-
getTableFilterMethods:
|
|
153
|
+
registerTableFilter: te,
|
|
154
|
+
getTableFilterMethods: oe,
|
|
153
155
|
canSelectRows: y !== void 0 || P !== void 0,
|
|
154
|
-
setSelectedRowIds:
|
|
155
|
-
selectedRowIds:
|
|
156
|
+
setSelectedRowIds: _,
|
|
157
|
+
selectedRowIds: Z,
|
|
156
158
|
selectionActions: P,
|
|
157
159
|
disableSelectionCheckbox: u,
|
|
158
|
-
getSelectableRowIds:
|
|
160
|
+
getSelectableRowIds: re,
|
|
159
161
|
enableColumnReorder: V,
|
|
160
162
|
columnOrder: f,
|
|
161
163
|
setColumnOrder: s,
|
|
162
|
-
handleDragEnd:
|
|
164
|
+
handleDragEnd: de
|
|
163
165
|
};
|
|
164
166
|
return (
|
|
165
167
|
// This is correct but there's no easy way to type the context statically with generics
|
|
166
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ me(we.Provider, { value: ae, children: q })
|
|
167
169
|
);
|
|
168
170
|
};
|
|
169
171
|
export {
|
|
170
|
-
|
|
172
|
+
Fe as TableProvider
|
|
171
173
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-header-row.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-header-row.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAwC,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAK/F,OAAO,KAAK,EAAmB,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEpE,KAAK,mBAAmB,CAAC,KAAK,SAAS,SAAS,IAAI;IACnD,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1C,uBAAuB,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,QAAA,MAAM,uBAAuB,GAAI,KAAK,SAAS,SAAS,EAAE,+DAIvD,mBAAmB,CAAC,KAAK,CAAC,GAAG;IAAE,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAAE,4CAiD3F,CAAC;
|
|
1
|
+
{"version":3,"file":"table-header-row.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-header-row.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAwC,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAK/F,OAAO,KAAK,EAAmB,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEpE,KAAK,mBAAmB,CAAC,KAAK,SAAS,SAAS,IAAI;IACnD,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1C,uBAAuB,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,QAAA,MAAM,uBAAuB,GAAI,KAAK,SAAS,SAAS,EAAE,+DAIvD,mBAAmB,CAAC,KAAK,CAAC,GAAG;IAAE,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAAE,4CAiD3F,CAAC;AAsPF,eAAO,MAAM,cAAc,EAAoC,OAAO,uBAAuB,CAAC"}
|