@m4l/components 9.4.45 → 9.4.46
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/components/datagrids/Datagrid.styles.d.ts.map +1 -1
- package/components/datagrids/Datagrid.styles.js +358 -272
- package/components/datagrids/components/BaseDataGrid/BaseDataGrid.d.ts.map +1 -1
- package/components/datagrids/components/BaseDataGrid/BaseDataGrid.js +47 -45
- package/components/datagrids/contexts/DataGridContext/DataGridContext.d.ts.map +1 -1
- package/components/datagrids/contexts/DataGridContext/DataGridContext.js +237 -178
- package/components/datagrids/contexts/DataGridContext/types.d.ts +13 -4
- package/components/datagrids/contexts/DataGridContext/types.d.ts.map +1 -1
- package/components/datagrids/dictionary.d.ts +1 -0
- package/components/datagrids/dictionary.d.ts.map +1 -1
- package/components/datagrids/dictionary.js +1 -0
- package/components/datagrids/formatters/ColumnImageFormatter/ImageFormatterCell.d.ts.map +1 -1
- package/components/datagrids/formatters/ColumnImageFormatter/ImageFormatterCell.js +14 -14
- package/components/datagrids/helpers/persistence/getViewMode/getViewMode.d.ts.map +1 -1
- package/components/datagrids/helpers/persistence/getViewMode/getViewMode.js +8 -8
- package/components/datagrids/helpers/shared/getAllViewModes/getAllViewModes.d.ts +2 -1
- package/components/datagrids/helpers/shared/getAllViewModes/getAllViewModes.d.ts.map +1 -1
- package/components/datagrids/helpers/shared/getAllViewModes/getAllViewModes.js +1 -1
- package/components/datagrids/helpers/shared/getViewSpecificConfig/getViewSpecificConfig.d.ts +2 -1
- package/components/datagrids/helpers/shared/getViewSpecificConfig/getViewSpecificConfig.d.ts.map +1 -1
- package/components/datagrids/helpers/shared/getViewSpecificConfig/getViewSpecificConfig.js +11 -4
- package/components/datagrids/helpers/shared/getViewSuffix/getViewSuffix.d.ts +3 -2
- package/components/datagrids/helpers/shared/getViewSuffix/getViewSuffix.d.ts.map +1 -1
- package/components/datagrids/helpers/shared/getViewSuffix/getViewSuffix.js +1 -1
- package/components/datagrids/helpers/shared/scrollToRowElement/index.d.ts +2 -0
- package/components/datagrids/helpers/shared/scrollToRowElement/index.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/scrollToRowElement/scrollToRowElement.d.ts +10 -0
- package/components/datagrids/helpers/shared/scrollToRowElement/scrollToRowElement.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/scrollToRowElement/scrollToRowElement.js +24 -0
- package/components/datagrids/hooks/useViewConfig/useViewConfig.d.ts.map +1 -1
- package/components/datagrids/hooks/useViewConfig/useViewConfig.js +11 -10
- package/components/datagrids/shared/LazyLoadItem/LazyLoadItem.d.ts +7 -0
- package/components/datagrids/shared/LazyLoadItem/LazyLoadItem.d.ts.map +1 -0
- package/components/datagrids/shared/LazyLoadItem/index.d.ts +3 -0
- package/components/datagrids/shared/LazyLoadItem/index.d.ts.map +1 -0
- package/components/datagrids/shared/LazyLoadItem/subcomponents/IntersectItem/IntersectItem.d.ts +7 -0
- package/components/datagrids/shared/LazyLoadItem/subcomponents/IntersectItem/IntersectItem.d.ts.map +1 -0
- package/components/datagrids/shared/LazyLoadItem/subcomponents/IntersectItem/index.d.ts +3 -0
- package/components/datagrids/shared/LazyLoadItem/subcomponents/IntersectItem/index.d.ts.map +1 -0
- package/components/datagrids/shared/LazyLoadItem/subcomponents/IntersectItem/types.d.ts +13 -0
- package/components/datagrids/shared/LazyLoadItem/subcomponents/IntersectItem/types.d.ts.map +1 -0
- package/components/datagrids/shared/LazyLoadItem/types.d.ts +12 -0
- package/components/datagrids/shared/LazyLoadItem/types.d.ts.map +1 -0
- package/components/datagrids/slots/DataGridEnum.d.ts +5 -1
- package/components/datagrids/slots/DataGridEnum.d.ts.map +1 -1
- package/components/datagrids/slots/DataGridEnum.js +3 -3
- package/components/datagrids/slots/DataGridSlot.d.ts +12 -0
- package/components/datagrids/slots/DataGridSlot.d.ts.map +1 -1
- package/components/datagrids/slots/DataGridSlot.js +105 -89
- package/components/datagrids/subcomponents/HeaderActions/HeaderActions.d.ts +3 -10
- package/components/datagrids/subcomponents/HeaderActions/HeaderActions.d.ts.map +1 -1
- package/components/datagrids/subcomponents/HeaderActions/HeaderActions.js +34 -33
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.d.ts +1 -13
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.d.ts.map +1 -1
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.js +27 -26
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.d.ts +3 -4
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.d.ts.map +1 -1
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.js +77 -47
- package/components/datagrids/tests/helpers/useListViewConfig.d.ts +12 -0
- package/components/datagrids/tests/helpers/useListViewConfig.d.ts.map +1 -0
- package/components/datagrids/types.d.ts +58 -0
- package/components/datagrids/types.d.ts.map +1 -1
- package/components/datagrids/views/CardsView/CardsView.js +14 -14
- package/components/datagrids/views/ListView/ListView.d.ts +8 -0
- package/components/datagrids/views/ListView/ListView.d.ts.map +1 -0
- package/components/datagrids/views/ListView/ListView.js +98 -0
- package/components/datagrids/views/ListView/hooks/useListContent/index.d.ts +2 -0
- package/components/datagrids/views/{CardsView/helpers/scrollToCardElement → ListView/hooks/useListContent}/index.d.ts.map +1 -1
- package/components/datagrids/views/ListView/hooks/useListContent/useListContent.d.ts +10 -0
- package/components/datagrids/views/ListView/hooks/useListContent/useListContent.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useListContent/useListContent.js +112 -0
- package/components/datagrids/views/ListView/hooks/useListVirtualizer/index.d.ts +3 -0
- package/components/datagrids/views/ListView/hooks/useListVirtualizer/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useListVirtualizer/types.d.ts +27 -0
- package/components/datagrids/views/ListView/hooks/useListVirtualizer/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useListVirtualizer/useListVirtualizer.d.ts +19 -0
- package/components/datagrids/views/ListView/hooks/useListVirtualizer/useListVirtualizer.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useListVirtualizer/useListVirtualizer.js +23 -0
- package/components/datagrids/views/ListView/hooks/useModalDetail/index.d.ts +3 -0
- package/components/datagrids/views/ListView/hooks/useModalDetail/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useModalDetail/types.d.ts +20 -0
- package/components/datagrids/views/ListView/hooks/useModalDetail/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useModalDetail/useModalDetail.d.ts +7 -0
- package/components/datagrids/views/ListView/hooks/useModalDetail/useModalDetail.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useModalDetail/useModalDetail.js +72 -0
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/index.d.ts +3 -0
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/types.d.ts +13 -0
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/useProcessedColumns.d.ts +49 -0
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/useProcessedColumns.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/useProcessedColumns.js +30 -0
- package/components/datagrids/views/ListView/index.d.ts +3 -0
- package/components/datagrids/views/ListView/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListDetail/ListDetail.d.ts +9 -0
- package/components/datagrids/views/ListView/subcomponents/ListDetail/ListDetail.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListDetail/ListDetail.js +113 -0
- package/components/datagrids/views/ListView/subcomponents/ListDetail/index.d.ts +3 -0
- package/components/datagrids/views/ListView/subcomponents/ListDetail/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListDetail/types.d.ts +39 -0
- package/components/datagrids/views/ListView/subcomponents/ListDetail/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/ListRow.d.ts +12 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/ListRow.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/ListRow.js +96 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/index.d.ts +3 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/subcomponents/ListHeader/ListHeader.d.ts +8 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/subcomponents/ListHeader/ListHeader.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/subcomponents/ListHeader/ListHeader.js +83 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/subcomponents/ListHeader/index.d.ts +3 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/subcomponents/ListHeader/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/subcomponents/ListHeader/types.d.ts +14 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/subcomponents/ListHeader/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/types.d.ts +81 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/Settings.d.ts +7 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/Settings.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/Settings.js +24 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/hooks/useModalSettings/index.d.ts +3 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/hooks/useModalSettings/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/hooks/useModalSettings/types.d.ts +5 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/hooks/useModalSettings/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.d.ts +7 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js +62 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/index.d.ts +3 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.d.ts +3 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +253 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts +3 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +32 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/types.d.ts +5 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/types.d.ts +7 -0
- package/components/datagrids/views/ListView/types.d.ts.map +1 -0
- package/components/datagrids/views/adapters/RenderContent/RenderContent.d.ts +2 -1
- package/components/datagrids/views/adapters/RenderContent/RenderContent.d.ts.map +1 -1
- package/components/datagrids/views/adapters/RenderContent/RenderContent.js +7 -6
- package/package.json +7 -6
- package/components/datagrids/views/CardsView/helpers/scrollToCardElement/index.d.ts +0 -2
- package/components/datagrids/views/CardsView/helpers/scrollToCardElement/scrollToCardElement.d.ts +0 -10
- package/components/datagrids/views/CardsView/helpers/scrollToCardElement/scrollToCardElement.d.ts.map +0 -1
- package/components/datagrids/views/CardsView/helpers/scrollToCardElement/scrollToCardElement.js +0 -24
|
@@ -1,88 +1,89 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { useFirstRender as
|
|
4
|
-
import { getComponentClasses as
|
|
5
|
-
import { DATAGRID_ROW_HEIGHTS as
|
|
6
|
-
import { ControlNavigateSlots as
|
|
7
|
-
import { deepEqual as
|
|
8
|
-
import { useViewMode as
|
|
9
|
-
import { useRowHeight as
|
|
1
|
+
import { jsx as Co } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { createContext as wo, useState as b, useEffect as T, useMemo as ho } from "react";
|
|
3
|
+
import { useFirstRender as po } from "@m4l/graphics";
|
|
4
|
+
import { getComponentClasses as Vo } from "../../../../utils/getComponentSlotRoot.js";
|
|
5
|
+
import { DATAGRID_ROW_HEIGHTS as yo, DATAGRID_ROW_HEADER_HEIGHTS as Ro, DATAGRID_PREFIX_NAME as So } from "../../constants.js";
|
|
6
|
+
import { ControlNavigateSlots as vo, ColumnsConfigSlots as Ho, TextEditorSlots as To, TableSlots as xo, RowsCountSlots as Do, ActionsSlots as Eo, DataGridSlots as bo } from "../../slots/DataGridEnum.js";
|
|
7
|
+
import { deepEqual as Go } from "fast-equals";
|
|
8
|
+
import { useViewMode as ko } from "../../hooks/useViewMode/useViewMode.js";
|
|
9
|
+
import { useRowHeight as Ko } from "../../hooks/useRowHeight/useRowHeight.js";
|
|
10
10
|
import { useColumnsWidth as Io } from "../../hooks/useColumnsWidth/useColumnsWidth.js";
|
|
11
11
|
import { useViewConfig as Fo } from "../../hooks/useViewConfig/useViewConfig.js";
|
|
12
|
-
import { useChangeColumnsConfig as
|
|
13
|
-
import { useChangeColumnsOrder as
|
|
14
|
-
import { getColumnsWidth as
|
|
15
|
-
import { getViewMode as
|
|
16
|
-
import { getInitialColumnsConfig as
|
|
17
|
-
import { getAllViewModes as
|
|
18
|
-
import { getViewSpecificConfig as
|
|
19
|
-
const
|
|
20
|
-
function
|
|
12
|
+
import { useChangeColumnsConfig as Ao } from "../../hooks/useChangeColumnsConfig/useChangeColumnsConfig.js";
|
|
13
|
+
import { useChangeColumnsOrder as Oo } from "../../hooks/useChangeColumnsOrder/useChangeColumnsOrder.js";
|
|
14
|
+
import { getColumnsWidth as $o } from "../../helpers/persistence/getColumnsWidth/getColumnsWidth.js";
|
|
15
|
+
import { getViewMode as G } from "../../helpers/persistence/getViewMode/getViewMode.js";
|
|
16
|
+
import { getInitialColumnsConfig as V } from "../../helpers/shared/getInitialColumnsConfig/getInitialColumnsConfig.js";
|
|
17
|
+
import { getAllViewModes as y } from "../../helpers/shared/getAllViewModes/getAllViewModes.js";
|
|
18
|
+
import { getViewSpecificConfig as k } from "../../helpers/shared/getViewSpecificConfig/getViewSpecificConfig.js";
|
|
19
|
+
const Wo = wo(null);
|
|
20
|
+
function te(K) {
|
|
21
21
|
const {
|
|
22
|
-
id:
|
|
22
|
+
id: r,
|
|
23
23
|
children: I,
|
|
24
|
-
columns:
|
|
24
|
+
columns: i,
|
|
25
25
|
defaultConfig: F,
|
|
26
|
-
onChangeConfig:
|
|
27
|
-
defaultUserColumns:
|
|
26
|
+
onChangeConfig: A,
|
|
27
|
+
defaultUserColumns: O,
|
|
28
28
|
// deprecated
|
|
29
|
-
onChangeUserColumns:
|
|
29
|
+
onChangeUserColumns: $,
|
|
30
30
|
// deprecated
|
|
31
|
-
rows:
|
|
32
|
-
rowsCount:
|
|
33
|
-
rowActionsGetter:
|
|
34
|
-
rowHeights:
|
|
35
|
-
rowHeaderHeights:
|
|
36
|
-
initialRowHeightVariant:
|
|
31
|
+
rows: W,
|
|
32
|
+
rowsCount: M,
|
|
33
|
+
rowActionsGetter: z,
|
|
34
|
+
rowHeights: R = yo,
|
|
35
|
+
rowHeaderHeights: _ = Ro,
|
|
36
|
+
initialRowHeightVariant: L = "standard",
|
|
37
37
|
checkedRows: j,
|
|
38
38
|
onCheckedRowsChange: U,
|
|
39
39
|
checkedRowsMultiple: q,
|
|
40
40
|
rowKeyGetter: N,
|
|
41
|
-
externalSortSettings:
|
|
42
|
-
externalFilterSettings:
|
|
43
|
-
size:
|
|
44
|
-
viewMode:
|
|
45
|
-
onViewModeChange:
|
|
46
|
-
defaultViewMode:
|
|
47
|
-
cardsViewConfig:
|
|
48
|
-
|
|
41
|
+
externalSortSettings: h,
|
|
42
|
+
externalFilterSettings: p,
|
|
43
|
+
size: X,
|
|
44
|
+
viewMode: B,
|
|
45
|
+
onViewModeChange: J,
|
|
46
|
+
defaultViewMode: m,
|
|
47
|
+
cardsViewConfig: s,
|
|
48
|
+
listViewConfig: c
|
|
49
|
+
} = K, a = F ?? O, g = A ?? $, x = po([i, r]), { viewModeState: P, setViewModeState: D, handleViewModeChange: Q } = ko(
|
|
49
50
|
{
|
|
50
|
-
id:
|
|
51
|
-
viewMode:
|
|
52
|
-
defaultViewMode:
|
|
53
|
-
onViewModeChange:
|
|
51
|
+
id: r,
|
|
52
|
+
viewMode: B,
|
|
53
|
+
defaultViewMode: m,
|
|
54
|
+
onViewModeChange: J,
|
|
54
55
|
onChangeConfig: g
|
|
55
56
|
}
|
|
56
|
-
), { currentRowHeightVariant:
|
|
57
|
-
rowHeights:
|
|
58
|
-
rowHeaderHeights:
|
|
59
|
-
initialRowHeightVariant:
|
|
60
|
-
}), { columnsWidths:
|
|
61
|
-
id:
|
|
57
|
+
), { currentRowHeightVariant: S, setRowHeightVariant: Y } = Ko({
|
|
58
|
+
rowHeights: R,
|
|
59
|
+
rowHeaderHeights: _,
|
|
60
|
+
initialRowHeightVariant: L
|
|
61
|
+
}), { columnsWidths: Z, setColumnsWidths: oo, onChangeColumnWidth: eo } = Io({
|
|
62
|
+
id: r,
|
|
62
63
|
onChangeConfig: g
|
|
63
|
-
}), { getConfigColumns:
|
|
64
|
-
id:
|
|
64
|
+
}), { getConfigColumns: d, updateConfigColumns: C } = Fo(), { onChangeColumnsConfig: E } = Ao({
|
|
65
|
+
id: r,
|
|
65
66
|
onChangeConfig: g,
|
|
66
|
-
updateConfigColumns:
|
|
67
|
-
}), { onChangeColumnsOrder:
|
|
68
|
-
getConfigColumns:
|
|
69
|
-
onChangeColumnsConfig:
|
|
70
|
-
}),
|
|
67
|
+
updateConfigColumns: C
|
|
68
|
+
}), { onChangeColumnsOrder: no } = Oo({
|
|
69
|
+
getConfigColumns: d,
|
|
70
|
+
onChangeColumnsConfig: E
|
|
71
|
+
}), io = Vo(So, {
|
|
71
72
|
...bo,
|
|
72
|
-
...Go,
|
|
73
|
-
...Do,
|
|
74
73
|
...Eo,
|
|
75
|
-
...
|
|
74
|
+
...Do,
|
|
75
|
+
...xo,
|
|
76
|
+
...To,
|
|
76
77
|
...Ho,
|
|
77
|
-
...
|
|
78
|
-
}), [
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
if (
|
|
78
|
+
...vo
|
|
79
|
+
}), [to, ro] = b(M), [so, lo] = b([]);
|
|
80
|
+
T(() => {
|
|
81
|
+
const t = new Set(i.map((e) => e.key));
|
|
82
|
+
if (m === "cards" && s === void 0)
|
|
82
83
|
throw new Error(
|
|
83
|
-
`DataGridProvider:
|
|
84
|
+
`DataGridProvider: When defaultViewMode="cards", you must provide cardsViewConfig.
|
|
84
85
|
|
|
85
|
-
|
|
86
|
+
Valid example with columnsConfig:
|
|
86
87
|
defaultViewMode="cards"
|
|
87
88
|
cardsViewConfig={{
|
|
88
89
|
columnsConfig: [
|
|
@@ -91,7 +92,7 @@ function ie(T) {
|
|
|
91
92
|
]
|
|
92
93
|
}}
|
|
93
94
|
|
|
94
|
-
|
|
95
|
+
Valid example with customRender:
|
|
95
96
|
defaultViewMode="cards"
|
|
96
97
|
cardsViewConfig={{
|
|
97
98
|
customRender: {
|
|
@@ -100,22 +101,43 @@ function ie(T) {
|
|
|
100
101
|
}
|
|
101
102
|
}}`
|
|
102
103
|
);
|
|
103
|
-
if (
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
if (m === "list" && c === void 0)
|
|
105
|
+
throw new Error(
|
|
106
|
+
`DataGridProvider: When defaultViewMode="list", you must provide listViewConfig.
|
|
107
|
+
|
|
108
|
+
Valid example with columnsConfig:
|
|
109
|
+
defaultViewMode="list"
|
|
110
|
+
listViewConfig={{
|
|
111
|
+
columnsConfig: [
|
|
112
|
+
{ columnKey: 'name', showTitle: true },
|
|
113
|
+
{ columnKey: 'email', showTitle: true }
|
|
114
|
+
]
|
|
115
|
+
}}
|
|
116
|
+
|
|
117
|
+
Valid example with customRender:
|
|
118
|
+
defaultViewMode="list"
|
|
119
|
+
listViewConfig={{
|
|
120
|
+
customRender: {
|
|
121
|
+
renderContent: (row) => <CustomRow row={row} />
|
|
122
|
+
}
|
|
123
|
+
}}`
|
|
124
|
+
);
|
|
125
|
+
if (h?.sortsColumns) {
|
|
126
|
+
for (const e of h.sortsColumns)
|
|
127
|
+
if (!t.has(e))
|
|
106
128
|
throw new Error(
|
|
107
129
|
`DataGridProvider: Sorts incluye "${e}", pero no existe ninguna columna con key="${e}".`
|
|
108
130
|
);
|
|
109
131
|
}
|
|
110
|
-
if (
|
|
111
|
-
for (const e of
|
|
112
|
-
if (!e.skipColumnValidation && !
|
|
132
|
+
if (p?.filterColumns) {
|
|
133
|
+
for (const e of p.filterColumns)
|
|
134
|
+
if (!e.skipColumnValidation && !t.has(e.name))
|
|
113
135
|
throw new Error(
|
|
114
136
|
`DataGridProvider: Fields incluye "${e.name}", pero no existe ninguna columna con key="${e.name}".`
|
|
115
137
|
);
|
|
116
138
|
}
|
|
117
|
-
if (
|
|
118
|
-
const e =
|
|
139
|
+
if (s !== void 0) {
|
|
140
|
+
const e = s.customRender !== void 0, o = s.columnsConfig !== void 0 && s.columnsConfig.length > 0;
|
|
119
141
|
if (!e && !o)
|
|
120
142
|
throw new Error(
|
|
121
143
|
`DataGridProvider: cardsViewConfig.enabled=true requiere configurar al menos una de estas opciones:
|
|
@@ -124,7 +146,7 @@ function ie(T) {
|
|
|
124
146
|
|
|
125
147
|
Configuración actual:
|
|
126
148
|
- customRender: ${e ? "definido" : "undefined"}
|
|
127
|
-
- columnsConfig: ${
|
|
149
|
+
- columnsConfig: ${s.columnsConfig?.length || 0} columnas
|
|
128
150
|
|
|
129
151
|
Ejemplo válido con columnsConfig:
|
|
130
152
|
cardsViewConfig={{
|
|
@@ -145,187 +167,224 @@ function ie(T) {
|
|
|
145
167
|
}}
|
|
146
168
|
`
|
|
147
169
|
);
|
|
148
|
-
if (o &&
|
|
149
|
-
for (const
|
|
150
|
-
if (!
|
|
170
|
+
if (o && s.columnsConfig) {
|
|
171
|
+
for (const n of s.columnsConfig)
|
|
172
|
+
if (!t.has(n.columnKey))
|
|
151
173
|
throw new Error(
|
|
152
|
-
`DataGridProvider: cardsViewConfig.columnsConfig incluye columnKey="${
|
|
174
|
+
`DataGridProvider: cardsViewConfig.columnsConfig incluye columnKey="${n.columnKey}", pero no existe ninguna columna con key="${n.columnKey}".`
|
|
153
175
|
);
|
|
154
176
|
}
|
|
155
177
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
178
|
+
if (c?.columnsConfig) {
|
|
179
|
+
for (const e of c.columnsConfig)
|
|
180
|
+
if (!t.has(e.columnKey))
|
|
181
|
+
throw new Error(
|
|
182
|
+
`DataGridProvider: listViewConfig.columnsConfig includes columnKey="${e.columnKey}", but no column with key="${e.columnKey}" exists.`
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
}, [i, h, p, s, c, m]);
|
|
186
|
+
const ao = ho(() => R, [R]);
|
|
187
|
+
T(() => {
|
|
188
|
+
if (x) {
|
|
189
|
+
oo($o(r, i, a)), D(
|
|
190
|
+
G(r, a, m) ?? "table"
|
|
162
191
|
), D(
|
|
163
|
-
|
|
164
|
-
),
|
|
192
|
+
G(r, a, m) ?? "table"
|
|
193
|
+
), C(
|
|
165
194
|
"table",
|
|
166
|
-
|
|
167
|
-
s,
|
|
195
|
+
V(
|
|
168
196
|
r,
|
|
197
|
+
i,
|
|
169
198
|
"table",
|
|
170
|
-
|
|
199
|
+
a?.columnsConfig,
|
|
171
200
|
{ frozen: !1, grouped: !1, groupOrder: 0 },
|
|
172
201
|
{ originalFrozen: !1, originalGrouped: !1, originalGroupOrder: 0 }
|
|
173
202
|
)
|
|
174
203
|
);
|
|
175
|
-
const
|
|
176
|
-
if (
|
|
177
|
-
return
|
|
178
|
-
if (
|
|
179
|
-
return
|
|
180
|
-
const
|
|
181
|
-
(
|
|
204
|
+
const t = (() => {
|
|
205
|
+
if (a?.columnsConfigCards && a.columnsConfigCards.length > 0)
|
|
206
|
+
return a.columnsConfigCards;
|
|
207
|
+
if (s?.columnsConfig)
|
|
208
|
+
return s.columnsConfig.map((e, o) => {
|
|
209
|
+
const n = i.find(
|
|
210
|
+
(u) => u.key === e.columnKey
|
|
182
211
|
);
|
|
183
212
|
return {
|
|
184
213
|
key: e.columnKey,
|
|
185
|
-
visible:
|
|
214
|
+
visible: n?.visible === void 0 ? !0 : n?.visible,
|
|
186
215
|
index: o,
|
|
187
216
|
showTitle: e.showTitle
|
|
188
217
|
};
|
|
189
218
|
});
|
|
190
219
|
})();
|
|
191
|
-
|
|
220
|
+
if (C(
|
|
192
221
|
"cards",
|
|
193
|
-
|
|
194
|
-
s,
|
|
222
|
+
V(
|
|
195
223
|
r,
|
|
224
|
+
i,
|
|
196
225
|
"cards",
|
|
197
|
-
|
|
226
|
+
t,
|
|
198
227
|
{ showTitle: !1 },
|
|
199
228
|
{ originalShowTitle: !1 }
|
|
200
229
|
)
|
|
201
|
-
)
|
|
230
|
+
), c) {
|
|
231
|
+
const e = (() => {
|
|
232
|
+
if (a?.columnsConfigList && a.columnsConfigList.length > 0)
|
|
233
|
+
return a.columnsConfigList;
|
|
234
|
+
if (c.columnsConfig)
|
|
235
|
+
return c.columnsConfig.map((o, n) => {
|
|
236
|
+
const u = i.find(
|
|
237
|
+
(l) => l.key === o.columnKey
|
|
238
|
+
);
|
|
239
|
+
return {
|
|
240
|
+
key: o.columnKey,
|
|
241
|
+
visible: u?.visible === void 0 ? !0 : u?.visible,
|
|
242
|
+
index: n,
|
|
243
|
+
showTitle: o.showTitle
|
|
244
|
+
};
|
|
245
|
+
});
|
|
246
|
+
})();
|
|
247
|
+
C(
|
|
248
|
+
"list",
|
|
249
|
+
V(
|
|
250
|
+
r,
|
|
251
|
+
i,
|
|
252
|
+
"list",
|
|
253
|
+
e,
|
|
254
|
+
{ showTitle: !1 },
|
|
255
|
+
{ originalShowTitle: !1 }
|
|
256
|
+
)
|
|
257
|
+
);
|
|
258
|
+
}
|
|
202
259
|
}
|
|
203
|
-
}, [
|
|
204
|
-
if (!
|
|
205
|
-
const
|
|
260
|
+
}, [a]), T(() => {
|
|
261
|
+
if (!x) {
|
|
262
|
+
const t = {
|
|
206
263
|
table: [],
|
|
207
|
-
cards: []
|
|
264
|
+
cards: [],
|
|
265
|
+
list: []
|
|
208
266
|
};
|
|
209
|
-
|
|
210
|
-
const
|
|
211
|
-
for (let l = 0; l <
|
|
212
|
-
const
|
|
213
|
-
(
|
|
267
|
+
y().forEach((o) => {
|
|
268
|
+
const n = d(o), u = [];
|
|
269
|
+
for (let l = 0; l < n.length; l++) {
|
|
270
|
+
const f = i.findIndex(
|
|
271
|
+
(w) => w.key === n[l]?.key
|
|
214
272
|
);
|
|
215
|
-
if (
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
...
|
|
219
|
-
originalIndex:
|
|
273
|
+
if (f !== -1) {
|
|
274
|
+
const w = i[f];
|
|
275
|
+
u.push({
|
|
276
|
+
...n[l],
|
|
277
|
+
originalIndex: f,
|
|
220
278
|
// Propiedades específicas por vista dinámicamente
|
|
221
|
-
...
|
|
222
|
-
|
|
279
|
+
...k(o).dynamicOriginalProperty(
|
|
280
|
+
n[l] || w
|
|
223
281
|
),
|
|
224
|
-
originalVisible:
|
|
282
|
+
originalVisible: w.visible ?? !0
|
|
225
283
|
});
|
|
226
284
|
}
|
|
227
285
|
}
|
|
228
|
-
|
|
229
|
-
}),
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
), l =
|
|
233
|
-
(
|
|
286
|
+
t[o] = u;
|
|
287
|
+
}), y().forEach((o) => {
|
|
288
|
+
const n = t[o], u = new Set(
|
|
289
|
+
d(o).map((f) => f.key)
|
|
290
|
+
), l = i.filter(
|
|
291
|
+
(f) => !u.has(f.key)
|
|
234
292
|
);
|
|
235
293
|
if (l.length > 0) {
|
|
236
|
-
const
|
|
237
|
-
|
|
294
|
+
const f = n.length, fo = V(
|
|
295
|
+
r,
|
|
238
296
|
l,
|
|
239
297
|
o,
|
|
240
298
|
void 0,
|
|
241
|
-
o === "cards" ? { showTitle: !1 } : {
|
|
299
|
+
o === "cards" || o === "list" ? { showTitle: !1 } : {
|
|
242
300
|
frozen: !1,
|
|
243
301
|
grouped: !1,
|
|
244
302
|
groupOrder: 0
|
|
245
303
|
},
|
|
246
|
-
o === "cards" ? {
|
|
304
|
+
o === "cards" || o === "list" ? {
|
|
247
305
|
originalShowTitle: !1
|
|
248
306
|
} : {
|
|
249
307
|
originalFrozen: !1,
|
|
250
308
|
originalGrouped: !1,
|
|
251
309
|
originalGroupOrder: 0
|
|
252
310
|
}
|
|
253
|
-
).map((
|
|
254
|
-
const
|
|
255
|
-
(go) => go.key === l[
|
|
256
|
-
),
|
|
311
|
+
).map((co, v) => {
|
|
312
|
+
const mo = i.findIndex(
|
|
313
|
+
(go) => go.key === l[v].key
|
|
314
|
+
), H = l[v];
|
|
257
315
|
return {
|
|
258
|
-
...
|
|
259
|
-
index:
|
|
260
|
-
name:
|
|
261
|
-
originalIndex:
|
|
262
|
-
originalVisible:
|
|
316
|
+
...co,
|
|
317
|
+
index: v + f,
|
|
318
|
+
name: H.name,
|
|
319
|
+
originalIndex: mo,
|
|
320
|
+
originalVisible: H.visible ?? !0,
|
|
263
321
|
// Propiedades específicas por vista dinámicamente
|
|
264
|
-
...
|
|
265
|
-
|
|
322
|
+
...k(o).dynamicOriginalProperty(
|
|
323
|
+
H
|
|
266
324
|
)
|
|
267
325
|
};
|
|
268
326
|
});
|
|
269
|
-
|
|
327
|
+
t[o].push(...fo);
|
|
270
328
|
}
|
|
271
329
|
});
|
|
272
330
|
let e = !1;
|
|
273
|
-
if (
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
331
|
+
if (y().forEach((o) => {
|
|
332
|
+
Go(
|
|
333
|
+
d(o),
|
|
334
|
+
t[o]
|
|
277
335
|
) || (e = !0);
|
|
278
336
|
}), !e)
|
|
279
337
|
return;
|
|
280
|
-
|
|
281
|
-
|
|
338
|
+
y().forEach((o) => {
|
|
339
|
+
C(o, t[o]);
|
|
282
340
|
});
|
|
283
341
|
}
|
|
284
|
-
}, [
|
|
285
|
-
const
|
|
286
|
-
ro(
|
|
342
|
+
}, [i, r]);
|
|
343
|
+
const uo = (t) => {
|
|
344
|
+
ro(t);
|
|
287
345
|
};
|
|
288
|
-
return /* @__PURE__ */
|
|
289
|
-
|
|
346
|
+
return /* @__PURE__ */ Co(
|
|
347
|
+
Wo.Provider,
|
|
290
348
|
{
|
|
291
349
|
value: {
|
|
292
|
-
getConfigColumns:
|
|
293
|
-
onChangeColumnsConfig:
|
|
294
|
-
columnsConfig:
|
|
295
|
-
columnsWidths:
|
|
296
|
-
rowsCount:
|
|
297
|
-
currentRowHeightVariant:
|
|
298
|
-
currentRowHeight:
|
|
299
|
-
currentRowHeaderHeight:
|
|
300
|
-
rows:
|
|
301
|
-
rowHeights:
|
|
350
|
+
getConfigColumns: d,
|
|
351
|
+
onChangeColumnsConfig: E,
|
|
352
|
+
columnsConfig: d("table"),
|
|
353
|
+
columnsWidths: Z,
|
|
354
|
+
rowsCount: to,
|
|
355
|
+
currentRowHeightVariant: S.rowHVariant,
|
|
356
|
+
currentRowHeight: S.rowHeight,
|
|
357
|
+
currentRowHeaderHeight: S.rowHeaderHeight,
|
|
358
|
+
rows: W,
|
|
359
|
+
rowHeights: ao,
|
|
302
360
|
checkedRows: j,
|
|
303
|
-
onChangeColumnsOrder:
|
|
304
|
-
onChangeColumnWidth:
|
|
305
|
-
setRowsCount:
|
|
306
|
-
rowActionsGetter:
|
|
307
|
-
setRowHeightVariant:
|
|
361
|
+
onChangeColumnsOrder: no,
|
|
362
|
+
onChangeColumnWidth: eo,
|
|
363
|
+
setRowsCount: uo,
|
|
364
|
+
rowActionsGetter: z,
|
|
365
|
+
setRowHeightVariant: Y,
|
|
308
366
|
onCheckedRowsChange: U,
|
|
309
367
|
checkedRowsMultiple: q,
|
|
310
368
|
rowKeyGetter: N,
|
|
311
369
|
onChangeConfig: g,
|
|
312
370
|
onChangeUserColumns: g,
|
|
313
371
|
// deprecated alias
|
|
314
|
-
sortColumns:
|
|
315
|
-
setSortColumns:
|
|
316
|
-
externalSortSettings:
|
|
317
|
-
externalFilterSettings:
|
|
318
|
-
classes:
|
|
319
|
-
size:
|
|
320
|
-
viewMode:
|
|
321
|
-
onViewModeChange:
|
|
322
|
-
cardsViewConfig:
|
|
372
|
+
sortColumns: so,
|
|
373
|
+
setSortColumns: lo,
|
|
374
|
+
externalSortSettings: h,
|
|
375
|
+
externalFilterSettings: p,
|
|
376
|
+
classes: io,
|
|
377
|
+
size: X,
|
|
378
|
+
viewMode: P,
|
|
379
|
+
onViewModeChange: Q,
|
|
380
|
+
cardsViewConfig: s,
|
|
381
|
+
listViewConfig: c
|
|
323
382
|
},
|
|
324
383
|
children: I
|
|
325
384
|
}
|
|
326
385
|
);
|
|
327
386
|
}
|
|
328
387
|
export {
|
|
329
|
-
|
|
330
|
-
|
|
388
|
+
Wo as DataGridContext,
|
|
389
|
+
te as DataGridProvider
|
|
331
390
|
};
|
|
@@ -45,6 +45,13 @@ export interface BaseConfigColumn {
|
|
|
45
45
|
export interface BaseConfigColumnCards extends Omit<BaseConfigColumn, 'frozen' | 'grouped' | 'groupOrder'> {
|
|
46
46
|
showTitle: boolean;
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Configuración base para vista list - omite frozen, grouped y groupOrder y agrega showTitle.
|
|
50
|
+
* USO: Los desarrolladores pasan esto en defaultUserColumns.columnsConfigList
|
|
51
|
+
*/
|
|
52
|
+
export interface BaseConfigColumnList extends Omit<BaseConfigColumn, 'frozen' | 'grouped' | 'groupOrder'> {
|
|
53
|
+
showTitle: boolean;
|
|
54
|
+
}
|
|
48
55
|
/**
|
|
49
56
|
* Configuración extendida para columnas de tabla (estado interno)
|
|
50
57
|
* USO INTERNO: El contexto agrega estas propiedades para tracking y gestión de estado
|
|
@@ -67,7 +74,7 @@ export interface IConfigColumnCards extends Omit<IConfigColumn, 'frozen' | 'orig
|
|
|
67
74
|
showTitle: boolean;
|
|
68
75
|
originalShowTitle: boolean;
|
|
69
76
|
}
|
|
70
|
-
export type ViewMode = 'table' | 'cards';
|
|
77
|
+
export type ViewMode = 'table' | 'cards' | 'list';
|
|
71
78
|
/**
|
|
72
79
|
* Configuración extendida del Grid para soportar múltiples vistas
|
|
73
80
|
* USO: Para nuevas implementaciones que soporten cards y futuras vistas
|
|
@@ -76,10 +83,12 @@ export type ViewMode = 'table' | 'cards';
|
|
|
76
83
|
export interface IGridConfigExtended extends IGridConfig {
|
|
77
84
|
/** Configuración de columnas para vista cards */
|
|
78
85
|
columnsConfigCards?: BaseConfigColumnCards[];
|
|
79
|
-
/**
|
|
86
|
+
/** Configuración de columnas para vista list */
|
|
87
|
+
columnsConfigList?: BaseConfigColumnList[];
|
|
88
|
+
/** Modo de vista actual (table/cards/list) */
|
|
80
89
|
viewMode?: ViewMode;
|
|
81
90
|
}
|
|
82
|
-
export interface DataGridProviderProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> extends Pick<GridProps<TRow, TSummaryRow, TKey>, 'rows' | 'columns' | 'rowActionsGetter' | 'rowHeaderHeights' | 'rowHeights' | 'initialRowHeightVariant' | 'checkedRows' | 'onCheckedRowsChange' | 'checkedRowsMultiple' | 'rowKeyGetter' | 'externalSortSettings' | 'externalFilterSettings' | 'defaultViewMode' | 'cardsViewConfig'> {
|
|
91
|
+
export interface DataGridProviderProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> extends Pick<GridProps<TRow, TSummaryRow, TKey>, 'rows' | 'columns' | 'rowActionsGetter' | 'rowHeaderHeights' | 'rowHeights' | 'initialRowHeightVariant' | 'checkedRows' | 'onCheckedRowsChange' | 'checkedRowsMultiple' | 'rowKeyGetter' | 'externalSortSettings' | 'externalFilterSettings' | 'defaultViewMode' | 'cardsViewConfig' | 'listViewConfig'> {
|
|
83
92
|
id: number | string;
|
|
84
93
|
children: ReactNode;
|
|
85
94
|
rowsCount: number;
|
|
@@ -104,7 +113,7 @@ export type RowHeightState = {
|
|
|
104
113
|
rowHeight: number;
|
|
105
114
|
rowHeaderHeight: number;
|
|
106
115
|
};
|
|
107
|
-
export interface DataGridContextProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> extends Pick<DataGridProviderProps<TRow, TSummaryRow, TKey>, 'rows' | 'checkedRows' | 'onCheckedRowsChange' | 'checkedRowsMultiple' | 'rowHeights' | 'rowsCount' | 'rowActionsGetter' | 'rowKeyGetter' | 'externalSortSettings' | 'externalFilterSettings' | 'viewMode' | 'onViewModeChange' | 'defaultViewMode' | 'cardsViewConfig'> {
|
|
116
|
+
export interface DataGridContextProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> extends Pick<DataGridProviderProps<TRow, TSummaryRow, TKey>, 'rows' | 'checkedRows' | 'onCheckedRowsChange' | 'checkedRowsMultiple' | 'rowHeights' | 'rowsCount' | 'rowActionsGetter' | 'rowKeyGetter' | 'externalSortSettings' | 'externalFilterSettings' | 'viewMode' | 'onViewModeChange' | 'defaultViewMode' | 'cardsViewConfig' | 'listViewConfig'> {
|
|
108
117
|
/** Callback para persistir cambios de configuración */
|
|
109
118
|
onChangeConfig?: OnChangeConfig;
|
|
110
119
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/datagrids/contexts/DataGridContext/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,MAAM,EACN,iBAAiB,EACjB,SAAS,EACT,cAAc,EACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,UAAU,EACV,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAMpF;;;GAGG;AACH,MAAM,MAAM,WAAW,CACrB,aAAa,GAAG,MAAM,EACtB,qBAAqB,GAAG,MAAM,IAC5B,cAAc,CAAC,aAAa,CAAC,GAAG;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;CAC1B,GAAG,qBAAqB,CAAC;AAM1B;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,qBACf,SAAQ,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,SAAS,GAAG,YAAY,CAAC;IACnE,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACrD,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,uDAAuD;IACvD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mCAAmC;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,gBAAgB,GAAG,SAAS,GAAG,YAAY,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;IAC9H,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/datagrids/contexts/DataGridContext/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,MAAM,EACN,iBAAiB,EACjB,SAAS,EACT,cAAc,EACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,UAAU,EACV,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAMpF;;;GAGG;AACH,MAAM,MAAM,WAAW,CACrB,aAAa,GAAG,MAAM,EACtB,qBAAqB,GAAG,MAAM,IAC5B,cAAc,CAAC,aAAa,CAAC,GAAG;IACl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K,EAAE,MAAM,KAAK,IAAI,CAAC;IAChE,OAAO,CAAC,EAAE,MAAM,CACZ,aAAa,GACb,YAAY,GACZ,cAAc,GACd,UAAU,GACV,eAAe,GACf,kBAAkB,GAClB,oBAAoB,EACtB,MAAM,CACP,CAAC;IACF,IAAI,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;IACvC,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;CACpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/datagrids/dictionary.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAElD;;GAEG;AACH,wBAAgB,+BAA+B,aAK9C;AAED,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/datagrids/dictionary.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAElD;;GAEG;AACH,wBAAgB,+BAA+B,aAK9C;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CtB,CAAC"}
|
|
@@ -40,6 +40,7 @@ const I = {
|
|
|
40
40
|
REMOVE_GROUP_COLUMN: `${_}.remove_group_column`,
|
|
41
41
|
VIEW_MODE_TABLE: `${_}.view_mode_table`,
|
|
42
42
|
VIEW_MODE_CARDS: `${_}.view_mode_cards`,
|
|
43
|
+
VIEW_MODE_LIST_CARDS: `${_}.view_mode_list_cards`,
|
|
43
44
|
TOOLTIP_VIEW_MODE: `${_}.tooltip_view_mode`,
|
|
44
45
|
TOOLTIP_EXPORT: `${_}.tooltip_export`,
|
|
45
46
|
DETAILS: `${_}.details`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageFormatterCell.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/datagrids/formatters/ColumnImageFormatter/ImageFormatterCell.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,KAAK,EAAE;IAC9C,cAAc,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC;IACtC,UAAU,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC;IAC1D,SAAS,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC;IACxD,KAAK,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;IACjD,MAAM,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;IACnD,KAAK,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;CAClD,
|
|
1
|
+
{"version":3,"file":"ImageFormatterCell.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/datagrids/formatters/ColumnImageFormatter/ImageFormatterCell.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,KAAK,EAAE;IAC9C,cAAc,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC;IACtC,UAAU,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC;IAC1D,SAAS,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC;IACxD,KAAK,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;IACjD,MAAM,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;IACnD,KAAK,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;CAClD,oDAuCA"}
|