@m4l/components 9.24.1-beta-feature-731-code-editor.2 → 9.25.1-beta-feature-731-code-editor.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/components/datagrids/Datagrid.styles.d.ts.map +1 -1
- package/components/datagrids/Datagrid.styles.js +25 -0
- package/components/datagrids/slots/DataGridEnum.d.ts +3 -1
- package/components/datagrids/slots/DataGridEnum.d.ts.map +1 -1
- package/components/datagrids/slots/DataGridEnum.js +1 -1
- package/components/datagrids/slots/DataGridSlot.d.ts +6 -0
- package/components/datagrids/slots/DataGridSlot.d.ts.map +1 -1
- package/components/datagrids/slots/DataGridSlot.js +73 -65
- package/components/datagrids/views/CardsView/CardsView.d.ts +2 -1
- package/components/datagrids/views/CardsView/CardsView.d.ts.map +1 -1
- package/components/datagrids/views/CardsView/CardsView.js +96 -76
- package/components/datagrids/views/CardsView/hooks/useCardsPerRow/index.d.ts +2 -0
- package/components/datagrids/views/CardsView/hooks/useCardsPerRow/index.d.ts.map +1 -0
- package/components/datagrids/views/CardsView/hooks/useCardsPerRow/useCardsPerRow.d.ts +9 -0
- package/components/datagrids/views/CardsView/hooks/useCardsPerRow/useCardsPerRow.d.ts.map +1 -0
- package/components/datagrids/views/CardsView/hooks/useCardsPerRow/useCardsPerRow.js +19 -0
- package/components/datagrids/views/CardsView/hooks/useCardsVirtualizer/index.d.ts +3 -0
- package/components/datagrids/views/CardsView/hooks/useCardsVirtualizer/index.d.ts.map +1 -0
- package/components/datagrids/views/CardsView/hooks/useCardsVirtualizer/types.d.ts +26 -0
- package/components/datagrids/views/CardsView/hooks/useCardsVirtualizer/types.d.ts.map +1 -0
- package/components/datagrids/views/CardsView/hooks/useCardsVirtualizer/useCardsVirtualizer.d.ts +17 -0
- package/components/datagrids/views/CardsView/hooks/useCardsVirtualizer/useCardsVirtualizer.d.ts.map +1 -0
- package/components/datagrids/views/CardsView/hooks/useCardsVirtualizer/useCardsVirtualizer.js +23 -0
- package/components/datagrids/views/CardsView/subcomponents/CardRow/CardRow.d.ts +1 -1
- package/components/datagrids/views/CardsView/subcomponents/CardRow/CardRow.d.ts.map +1 -1
- package/components/datagrids/views/CardsView/subcomponents/CardRow/CardRow.js +49 -50
- package/components/datagrids/views/CardsView/subcomponents/CardRow/types.d.ts +4 -2
- package/components/datagrids/views/CardsView/subcomponents/CardRow/types.d.ts.map +1 -1
- package/package.json +6 -6
- package/components/datagrids/helpers/shared/scrollToRowElement/scrollToRowElement.js +0 -24
- package/components/datagrids/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/LazyLoadCard.js +0 -33
- package/components/datagrids/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/subcomponents/IntersectCard/IntersectCard.js +0 -36
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Datagrid.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/datagrids/Datagrid.styles.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIzC,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"Datagrid.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/datagrids/Datagrid.styles.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIzC,eAAO,MAAM,cAAc,EAAE,cAi6C5B,CAAC"}
|
|
@@ -847,6 +847,31 @@ const d = {
|
|
|
847
847
|
position: "relative",
|
|
848
848
|
height: `${r.totalSize ?? 0}px`
|
|
849
849
|
}),
|
|
850
|
+
/**
|
|
851
|
+
* Container that holds the total virtualized height for TanStack Virtual in CardsView.
|
|
852
|
+
* This element defines the scrollable area; its height equals the sum of all card heights.
|
|
853
|
+
*/
|
|
854
|
+
cardsVirtualContainer: ({ ownerState: r }) => ({
|
|
855
|
+
width: "100%",
|
|
856
|
+
position: "relative",
|
|
857
|
+
height: `${r.totalSize ?? 0}px`
|
|
858
|
+
}),
|
|
859
|
+
/**
|
|
860
|
+
* Wrapper for each virtualized card row (receives style from TanStack Virtual).
|
|
861
|
+
* Uses CSS Grid with explicit column count so cards in incomplete rows (last row)
|
|
862
|
+
* get the same width as cards in full rows. gap and paddingBottom match ContainerFlow (16px).
|
|
863
|
+
*/
|
|
864
|
+
cardsVirtualRowItem: ({ ownerState: r }) => ({
|
|
865
|
+
position: "absolute",
|
|
866
|
+
top: 0,
|
|
867
|
+
left: 0,
|
|
868
|
+
width: "100%",
|
|
869
|
+
transform: `translateY(${r.offsetTop ?? 0}px)`,
|
|
870
|
+
display: "grid",
|
|
871
|
+
gridTemplateColumns: `repeat(${r.cardsPerRow ?? 1}, 1fr)`,
|
|
872
|
+
gap: "16px",
|
|
873
|
+
paddingBottom: "16px"
|
|
874
|
+
}),
|
|
850
875
|
/**
|
|
851
876
|
* Estilos para cada tarjeta individual en CardsView.
|
|
852
877
|
*/
|
|
@@ -60,7 +60,9 @@ export declare enum TableSlots {
|
|
|
60
60
|
listContainer = "listContainer",
|
|
61
61
|
list = "list",
|
|
62
62
|
listRowVirtualizedItem = "listRowVirtualizedItem",
|
|
63
|
-
listVirtualContainer = "listVirtualContainer"
|
|
63
|
+
listVirtualContainer = "listVirtualContainer",
|
|
64
|
+
cardsVirtualContainer = "cardsVirtualContainer",
|
|
65
|
+
cardsVirtualRowItem = "cardsVirtualRowItem"
|
|
64
66
|
}
|
|
65
67
|
export declare enum TextEditorSlots {
|
|
66
68
|
inputTexEditor = "inputTexEditor"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataGridEnum.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/datagrids/slots/DataGridEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;CAC9B;AAED,oBAAY,YAAY;IACtB,WAAW,gBAAgB;IAC3B,oBAAoB,yBAAyB;IAC7C,qBAAqB,0B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+B;IACzD,0BAA0B,+BAA+B;IACzD,qBAAqB,0BAA0B;IAC/C,aAAa,kBAAkB;IAC/B,IAAI,SAAS;IACb,sBAAsB,2BAA2B;IACjD,oBAAoB,yBAAyB;IAC7C,qBAAqB,0BAA0B;IAC/C,mBAAmB,wBAAwB;CAC5C;AAED,oBAAY,eAAe;IACzB,cAAc,mBAAmB;CAClC;AAED,oBAAY,kBAAkB;IAC5B,oBAAoB,yBAAyB;IAC7C,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;IAC/C,mBAAmB,wBAAwB;CAC5C;AAED,oBAAY,oBAAoB;IAC9B,eAAe,oBAAoB;CACpC;AAED,oBAAY,wBAAwB;IAClC,mBAAmB,wBAAwB;CAC5C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e = /* @__PURE__ */ ((r) => (r.datagridRoot = "datagridRoot", r.customHeader = "customHeader", r))(e || {}), n = /* @__PURE__ */ ((r) => (r.actionsRoot = "actionsRoot", r.containerLeftActions = "containerLeftActions", r.containerRightActions = "containerRightActions", r.actionsConfigContainer = "actionsConfigContainer", r))(n || {}), a = /* @__PURE__ */ ((r) => (r.rowsCountRoot = "rowsCountRoot", r.rowsCountLabel = "rowsCountLabel", r.rowsCountValue = "rowsCountValue", r))(a || {}), t = /* @__PURE__ */ ((r) => (r.tableContaniner = "tableContaniner", r.tableWrapperDataGrid = "tableWrapperDataGrid", r.draggableHeaderRoot = "draggableHeaderRoot", r.iconSearch = "iconSearch", r.draggableWrapperInputBase = "draggableWrapperInputBase", r.headerInputBase = "headerInputBase", r.wrapperSkeleton = "wrapperSkeleton", r.contentModalSetting = "contentModalSetting", r.headerRenderClick = "headerRenderClick", r.menuList = "menuList", r.buttonHeaderActions = "buttonHeaderActions", r.nameColumnIcon = "nameColumnIcon", r.iconColumn = "iconColumn", r.nameColumn = "nameColumn", r.containerToggleCards = "containerToggleCards", r.cardToggleCardButton = "cardToggleCardButton", r.textToggleCardButton = "textToggleCardButton", r.card = "card", r.cardsContainer = "cardsContainer", r.cardContentWrapper = "cardContentWrapper", r.cardHeader = "cardHeader", r.cardHeaderLeft = "cardHeaderLeft", r.cardHeaderRight = "cardHeaderRight", r.cardContent = "cardContent", r.containerLabelValueColumn = "containerLabelValueColumn", r.contentWrapperColumn = "contentWrapperColumn", r.cardDetailContainer = "cardDetailContainer", r.labelHeaderColumn = "labelHeaderColumn", r.valueColumn = "valueColumn", r.customCardHeader = "customCardHeader", r.customCardAvatar = "customCardAvatar", r.customCardNameEmail = "customCardNameEmail", r.customCardFieldWithIcon = "customCardFieldWithIcon", r.customCardFieldContent = "customCardFieldContent", r.customCardIconContainer = "customCardIconContainer", r.checkboxCellWrapper = "checkboxCellWrapper", r.editorCellWrapper = "editorCellWrapper", r.editablePlaceholder = "editablePlaceholder", r.editLabel = "editLabel", r.iconButtonEdit = "iconButtonEdit", r.defaultRenderGroupCellRoot = "defaultRenderGroupCellRoot", r.defaultRenderGroupCellText = "defaultRenderGroupCellText", r.cellBackgroundWrapper = "cellBackgroundWrapper", r.listContainer = "listContainer", r.list = "list", r.listRowVirtualizedItem = "listRowVirtualizedItem", r.listVirtualContainer = "listVirtualContainer", r))(t || {}), o = /* @__PURE__ */ ((r) => (r.inputTexEditor = "inputTexEditor", r))(o || {}), d = /* @__PURE__ */ ((r) => (r.columnsConfigWrapper = "columnsConfigWrapper", r.columnsConfigSelColumns = "columnsConfigSelColumns", r.columnsConfigDataGrid = "columnsConfigDataGrid", r.columnsConfigActios = "columnsConfigActios", r))(d || {}), i = /* @__PURE__ */ ((r) => (r.controlNavigate = "controlNavigate", r))(i || {}), c = /* @__PURE__ */ ((r) => (r.columnIconFormatter = "columnIconFormatter", r))(c || {});
|
|
1
|
+
var e = /* @__PURE__ */ ((r) => (r.datagridRoot = "datagridRoot", r.customHeader = "customHeader", r))(e || {}), n = /* @__PURE__ */ ((r) => (r.actionsRoot = "actionsRoot", r.containerLeftActions = "containerLeftActions", r.containerRightActions = "containerRightActions", r.actionsConfigContainer = "actionsConfigContainer", r))(n || {}), a = /* @__PURE__ */ ((r) => (r.rowsCountRoot = "rowsCountRoot", r.rowsCountLabel = "rowsCountLabel", r.rowsCountValue = "rowsCountValue", r))(a || {}), t = /* @__PURE__ */ ((r) => (r.tableContaniner = "tableContaniner", r.tableWrapperDataGrid = "tableWrapperDataGrid", r.draggableHeaderRoot = "draggableHeaderRoot", r.iconSearch = "iconSearch", r.draggableWrapperInputBase = "draggableWrapperInputBase", r.headerInputBase = "headerInputBase", r.wrapperSkeleton = "wrapperSkeleton", r.contentModalSetting = "contentModalSetting", r.headerRenderClick = "headerRenderClick", r.menuList = "menuList", r.buttonHeaderActions = "buttonHeaderActions", r.nameColumnIcon = "nameColumnIcon", r.iconColumn = "iconColumn", r.nameColumn = "nameColumn", r.containerToggleCards = "containerToggleCards", r.cardToggleCardButton = "cardToggleCardButton", r.textToggleCardButton = "textToggleCardButton", r.card = "card", r.cardsContainer = "cardsContainer", r.cardContentWrapper = "cardContentWrapper", r.cardHeader = "cardHeader", r.cardHeaderLeft = "cardHeaderLeft", r.cardHeaderRight = "cardHeaderRight", r.cardContent = "cardContent", r.containerLabelValueColumn = "containerLabelValueColumn", r.contentWrapperColumn = "contentWrapperColumn", r.cardDetailContainer = "cardDetailContainer", r.labelHeaderColumn = "labelHeaderColumn", r.valueColumn = "valueColumn", r.customCardHeader = "customCardHeader", r.customCardAvatar = "customCardAvatar", r.customCardNameEmail = "customCardNameEmail", r.customCardFieldWithIcon = "customCardFieldWithIcon", r.customCardFieldContent = "customCardFieldContent", r.customCardIconContainer = "customCardIconContainer", r.checkboxCellWrapper = "checkboxCellWrapper", r.editorCellWrapper = "editorCellWrapper", r.editablePlaceholder = "editablePlaceholder", r.editLabel = "editLabel", r.iconButtonEdit = "iconButtonEdit", r.defaultRenderGroupCellRoot = "defaultRenderGroupCellRoot", r.defaultRenderGroupCellText = "defaultRenderGroupCellText", r.cellBackgroundWrapper = "cellBackgroundWrapper", r.listContainer = "listContainer", r.list = "list", r.listRowVirtualizedItem = "listRowVirtualizedItem", r.listVirtualContainer = "listVirtualContainer", r.cardsVirtualContainer = "cardsVirtualContainer", r.cardsVirtualRowItem = "cardsVirtualRowItem", r))(t || {}), o = /* @__PURE__ */ ((r) => (r.inputTexEditor = "inputTexEditor", r))(o || {}), d = /* @__PURE__ */ ((r) => (r.columnsConfigWrapper = "columnsConfigWrapper", r.columnsConfigSelColumns = "columnsConfigSelColumns", r.columnsConfigDataGrid = "columnsConfigDataGrid", r.columnsConfigActios = "columnsConfigActios", r))(d || {}), i = /* @__PURE__ */ ((r) => (r.controlNavigate = "controlNavigate", r))(i || {}), c = /* @__PURE__ */ ((r) => (r.columnIconFormatter = "columnIconFormatter", r))(c || {});
|
|
2
2
|
export {
|
|
3
3
|
n as ActionsSlots,
|
|
4
4
|
c as ColumnIconFormatterSlots,
|
|
@@ -107,6 +107,12 @@ export declare const ListRowVirtualizedItemStyled: import('@emotion/styled').Sty
|
|
|
107
107
|
export declare const ListVirtualContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DataGridOwnerState<unknown, unknown>> & Record<string, unknown> & {
|
|
108
108
|
ownerState: Partial<import('../types').DataGridOwnerState<unknown, unknown>> & Record<string, unknown>;
|
|
109
109
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
110
|
+
export declare const CardsVirtualContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DataGridOwnerState<unknown, unknown>> & Record<string, unknown> & {
|
|
111
|
+
ownerState: Partial<import('../types').DataGridOwnerState<unknown, unknown>> & Record<string, unknown>;
|
|
112
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
113
|
+
export declare const CardsVirtualRowItemStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DataGridOwnerState<unknown, unknown>> & Record<string, unknown> & {
|
|
114
|
+
ownerState: Partial<import('../types').DataGridOwnerState<unknown, unknown>> & Record<string, unknown>;
|
|
115
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
110
116
|
export declare const ContainerLabelValueColumnStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DataGridOwnerState<unknown, unknown>> & Record<string, unknown> & {
|
|
111
117
|
ownerState: Partial<import('../types').DataGridOwnerState<unknown, unknown>> & Record<string, unknown>;
|
|
112
118
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataGridSlot.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/datagrids/slots/DataGridSlot.ts"],"names":[],"mappings":"AAiBA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;6NAGA,CAAC;AAEhC,eAAO,MAAM,kBAAkB;;6NAGA,CAAC;AAEhC;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;6NAGA,CAAC;AAE/B,eAAO,MAAM,0BAA0B;;6NAGA,CAAC;AAExC,eAAO,MAAM,2BAA2B;;6NAGA,CAAC;AAEzC,eAAO,MAAM,4BAA4B;;6NAGA,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,mB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AAC;AAC9B,eAAO,MAAM,yBAAyB;;6NAGA,CAAC;AACvC,eAAO,MAAM,eAAe;;UAGA,CAAC;AAC7B,eAAO,MAAM,oBAAoB;;UAGA,CAAC;AAClC;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;+OAGD,CAAC;AAElC;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;6NAGA,CAAC;AAEnC;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;6NAGA,CAAC;AAEvC,eAAO,MAAM,gCAAgC;;iOAGA,CAAC;AAE9C,eAAO,MAAM,gCAAgC;;iOAGA,CAAC;AAE9C,eAAO,MAAM,2BAA2B;;iOAGA,CAAC"}
|
|
@@ -21,22 +21,22 @@ const L = t("div", {
|
|
|
21
21
|
})(o.containerLeftActions), A = t("div", {
|
|
22
22
|
name: e,
|
|
23
23
|
slot: a.containerRightActions
|
|
24
|
-
})(o.containerRightActions),
|
|
24
|
+
})(o.containerRightActions), V = t("div", {
|
|
25
25
|
name: e,
|
|
26
26
|
slot: a.actionsConfigContainer
|
|
27
|
-
})(o.actionsConfigContainer),
|
|
27
|
+
})(o.actionsConfigContainer), w = t("div", {
|
|
28
28
|
name: e,
|
|
29
29
|
slot: d.rowsCountRoot
|
|
30
|
-
})(o.rowsCountRoot),
|
|
30
|
+
})(o.rowsCountRoot), D = t("div", {
|
|
31
31
|
name: e,
|
|
32
32
|
slot: d.rowsCountLabel
|
|
33
|
-
})(o.rowsCountLabel),
|
|
33
|
+
})(o.rowsCountLabel), G = t("div", {
|
|
34
34
|
name: e,
|
|
35
35
|
slot: d.rowsCountValue
|
|
36
|
-
})(o.rowsCountValue),
|
|
36
|
+
})(o.rowsCountValue), x = t("div", {
|
|
37
37
|
name: e,
|
|
38
38
|
slot: l.columnsConfigWrapper
|
|
39
|
-
})(o.columnsConfigWrapper),
|
|
39
|
+
})(o.columnsConfigWrapper), E = t("div", {
|
|
40
40
|
name: e,
|
|
41
41
|
slot: l.columnsConfigSelColumns
|
|
42
42
|
})(o.columnsConfigSelColumns), k = t("div", {
|
|
@@ -91,24 +91,30 @@ const L = t("div", {
|
|
|
91
91
|
name: e,
|
|
92
92
|
slot: n.listVirtualContainer
|
|
93
93
|
})(o.listVirtualContainer), $ = t("div", {
|
|
94
|
+
name: e,
|
|
95
|
+
slot: n.cardsVirtualContainer
|
|
96
|
+
})(o.cardsVirtualContainer), tt = t("div", {
|
|
97
|
+
name: e,
|
|
98
|
+
slot: n.cardsVirtualRowItem
|
|
99
|
+
})(o.cardsVirtualRowItem), et = t("div", {
|
|
94
100
|
name: e,
|
|
95
101
|
slot: n.containerLabelValueColumn
|
|
96
|
-
})(o.containerLabelValueColumn),
|
|
102
|
+
})(o.containerLabelValueColumn), ot = t("div", {
|
|
97
103
|
name: e,
|
|
98
104
|
slot: n.contentWrapperColumn
|
|
99
|
-
})(o.contentWrapperColumn),
|
|
105
|
+
})(o.contentWrapperColumn), nt = t("div", {
|
|
100
106
|
name: e,
|
|
101
107
|
slot: n.cardDetailContainer
|
|
102
|
-
})(o.cardDetailContainer),
|
|
108
|
+
})(o.cardDetailContainer), at = t(r, {
|
|
103
109
|
name: e,
|
|
104
110
|
slot: n.labelHeaderColumn
|
|
105
|
-
})(o.labelHeaderColumn),
|
|
111
|
+
})(o.labelHeaderColumn), lt = t(r, {
|
|
106
112
|
name: e,
|
|
107
113
|
slot: n.valueColumn
|
|
108
|
-
})(o.valueColumn),
|
|
114
|
+
})(o.valueColumn), rt = t("div", {
|
|
109
115
|
name: e,
|
|
110
116
|
slot: n.checkboxCellWrapper
|
|
111
|
-
})(o.checkboxCellWrapper),
|
|
117
|
+
})(o.checkboxCellWrapper), dt = t("div", {
|
|
112
118
|
name: e,
|
|
113
119
|
slot: n.editorCellWrapper
|
|
114
120
|
})(o.editorCellWrapper);
|
|
@@ -136,46 +142,46 @@ t("div", {
|
|
|
136
142
|
name: e,
|
|
137
143
|
slot: n.customCardIconContainer
|
|
138
144
|
})(o.customCardIconContainer);
|
|
139
|
-
const
|
|
145
|
+
const st = t("div", {
|
|
140
146
|
name: e,
|
|
141
147
|
slot: n.tableWrapperDataGrid
|
|
142
|
-
})(o.tableWrapperDataGrid),
|
|
148
|
+
})(o.tableWrapperDataGrid), it = t("div", {
|
|
143
149
|
name: e,
|
|
144
150
|
slot: n.draggableHeaderRoot
|
|
145
|
-
})(o.draggableHeaderRoot),
|
|
151
|
+
})(o.draggableHeaderRoot), ct = t(S, {
|
|
146
152
|
name: e,
|
|
147
153
|
slot: n.iconSearch
|
|
148
|
-
})(o.iconSearch),
|
|
154
|
+
})(o.iconSearch), mt = t("div", {
|
|
149
155
|
name: e,
|
|
150
156
|
slot: n.draggableWrapperInputBase
|
|
151
|
-
})(o.draggableWrapperInputBase),
|
|
157
|
+
})(o.draggableWrapperInputBase), Ct = t(m, {
|
|
152
158
|
name: e,
|
|
153
159
|
slot: n.headerInputBase
|
|
154
|
-
})(o.headerInputBase),
|
|
160
|
+
})(o.headerInputBase), ut = t("div", {
|
|
155
161
|
name: e,
|
|
156
162
|
slot: n.wrapperSkeleton
|
|
157
|
-
})(o.wrapperSkeleton),
|
|
163
|
+
})(o.wrapperSkeleton), pt = t("div", {
|
|
158
164
|
name: e,
|
|
159
165
|
slot: n.contentModalSetting
|
|
160
|
-
})(o.contentModalSetting),
|
|
166
|
+
})(o.contentModalSetting), St = t("div", {
|
|
161
167
|
name: e,
|
|
162
168
|
slot: n.headerRenderClick
|
|
163
|
-
})(o.headerRenderClick),
|
|
169
|
+
})(o.headerRenderClick), gt = t(c, {
|
|
164
170
|
name: e,
|
|
165
171
|
slot: n.menuList
|
|
166
|
-
})(o.menuList),
|
|
172
|
+
})(o.menuList), yt = t("div", {
|
|
167
173
|
name: e,
|
|
168
174
|
slot: n.buttonHeaderActions
|
|
169
|
-
})(o.buttonHeaderActions),
|
|
175
|
+
})(o.buttonHeaderActions), vt = t("div", {
|
|
170
176
|
name: e,
|
|
171
177
|
slot: n.nameColumnIcon
|
|
172
|
-
})(o.nameColumnIcon),
|
|
178
|
+
})(o.nameColumnIcon), Rt = t("div", {
|
|
173
179
|
name: e,
|
|
174
180
|
slot: n.iconColumn
|
|
175
|
-
})(o.iconColumn),
|
|
181
|
+
})(o.iconColumn), ft = t("div", {
|
|
176
182
|
name: e,
|
|
177
183
|
slot: n.nameColumn
|
|
178
|
-
})(o.nameColumn),
|
|
184
|
+
})(o.nameColumn), bt = t("div", {
|
|
179
185
|
name: e,
|
|
180
186
|
slot: n.editablePlaceholder
|
|
181
187
|
})(o.editablePlaceholder);
|
|
@@ -183,13 +189,13 @@ t(r, {
|
|
|
183
189
|
name: e,
|
|
184
190
|
slot: n.editLabel
|
|
185
191
|
})(o.editLabel);
|
|
186
|
-
const
|
|
192
|
+
const It = t(g, {
|
|
187
193
|
name: e,
|
|
188
194
|
slot: n.iconButtonEdit
|
|
189
|
-
})(o.iconButtonEdit),
|
|
195
|
+
})(o.iconButtonEdit), Wt = t("input", {
|
|
190
196
|
name: e,
|
|
191
197
|
slot: C.inputTexEditor
|
|
192
|
-
})(o.inputTexEditor),
|
|
198
|
+
})(o.inputTexEditor), Ht = t("div", {
|
|
193
199
|
name: e,
|
|
194
200
|
slot: u.controlNavigate
|
|
195
201
|
})(o.controlNavigate);
|
|
@@ -197,70 +203,72 @@ t("div", {
|
|
|
197
203
|
name: e,
|
|
198
204
|
slot: p.columnIconFormatter
|
|
199
205
|
})(o.columnIconFormatter);
|
|
200
|
-
const
|
|
206
|
+
const Lt = t("span", {
|
|
201
207
|
name: e,
|
|
202
208
|
slot: n.defaultRenderGroupCellRoot
|
|
203
|
-
})(o.defaultRenderGroupCellRoot),
|
|
209
|
+
})(o.defaultRenderGroupCellRoot), ht = t("span", {
|
|
204
210
|
name: e,
|
|
205
211
|
slot: n.defaultRenderGroupCellText
|
|
206
|
-
})(o.defaultRenderGroupCellText),
|
|
212
|
+
})(o.defaultRenderGroupCellText), Tt = t("span", {
|
|
207
213
|
name: e,
|
|
208
214
|
slot: n.cellBackgroundWrapper
|
|
209
215
|
})(o.cellBackgroundWrapper);
|
|
210
216
|
export {
|
|
211
|
-
|
|
217
|
+
V as ActionsConfigContainerStyled,
|
|
212
218
|
T as ActionsRootStyled,
|
|
213
|
-
|
|
219
|
+
yt as ButtonHeaderActionsStyled,
|
|
214
220
|
K as CardContentStyled,
|
|
215
221
|
J as CardContentWrapperStyled,
|
|
216
|
-
|
|
222
|
+
nt as CardDetailContainerStyled,
|
|
217
223
|
j as CardHeaderLeftStyled,
|
|
218
224
|
q as CardHeaderRightStyled,
|
|
219
225
|
X as CardHeaderStyled,
|
|
220
226
|
_ as CardStyled,
|
|
221
227
|
P as CardToggleButtonStyled,
|
|
222
228
|
O as CardsContainerStyled,
|
|
223
|
-
|
|
224
|
-
|
|
229
|
+
$ as CardsVirtualContainerStyled,
|
|
230
|
+
tt as CardsVirtualRowItemStyled,
|
|
231
|
+
Tt as CellBackgroundWrapperStyled,
|
|
232
|
+
rt as CheckboxCellWrapperStyled,
|
|
225
233
|
N as ColumnsConfigActiosStyled,
|
|
226
234
|
k as ColumnsConfigDataGridStyled,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
235
|
+
E as ColumnsConfigSelColumnsStyled,
|
|
236
|
+
x as ColumnsConfigWrapperStyled,
|
|
237
|
+
et as ContainerLabelValueColumnStyled,
|
|
230
238
|
B as ContainerLeftActionsStyled,
|
|
231
239
|
A as ContainerRightActionsStyled,
|
|
232
240
|
M as ContainerToggleCardsStyled,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
241
|
+
pt as ContentModalSettingStyled,
|
|
242
|
+
ot as ContentWrapperColumnStyled,
|
|
243
|
+
Ht as ControlNavigateStyled,
|
|
236
244
|
h as CustomHeaderStyled,
|
|
237
245
|
L as DataGridRootStyled,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
246
|
+
Lt as DefaultRenderGroupCellRootStyled,
|
|
247
|
+
ht as DefaultRenderGroupCellTextStyled,
|
|
248
|
+
it as DraggableHeaderRootStyled,
|
|
249
|
+
mt as DraggableWrapperInputBaseStyled,
|
|
250
|
+
bt as EditablePlaceholderStyled,
|
|
251
|
+
dt as EditorCellWrapperStyled,
|
|
252
|
+
Ct as HeaderInputBaseStyled,
|
|
253
|
+
St as HeaderRenderClickStyled,
|
|
254
|
+
It as IconButtonEditStyled,
|
|
255
|
+
Rt as IconColumnStyled,
|
|
256
|
+
ct as IconSearchStyled,
|
|
257
|
+
Wt as InputTextEditorStyled,
|
|
258
|
+
at as LabelHeaderColumnStyled,
|
|
251
259
|
Q as ListContainerStyled,
|
|
252
260
|
Y as ListRowVirtualizedItemStyled,
|
|
253
261
|
U as ListStyled,
|
|
254
262
|
Z as ListVirtualContainerStyled,
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
263
|
+
gt as MenuListStyled,
|
|
264
|
+
vt as NameColumnIconStyled,
|
|
265
|
+
ft as NameColumnStyled,
|
|
266
|
+
D as RowsCountLabelStyled,
|
|
267
|
+
w as RowsCountRootStyled,
|
|
268
|
+
G as RowsCountValueStyled,
|
|
261
269
|
F as TableContainerStyled,
|
|
262
|
-
|
|
270
|
+
st as TableWrapperDataGridStyled,
|
|
263
271
|
z as TextToggleCardButtonStyled,
|
|
264
|
-
|
|
265
|
-
|
|
272
|
+
lt as ValueColumnStyled,
|
|
273
|
+
ut as WrapperSkeletonStyled
|
|
266
274
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { RowKey } from '../../types';
|
|
2
2
|
import { CardsViewProps } from './types';
|
|
3
3
|
/**
|
|
4
|
-
* Componente que muestra las filas del DataGrid en formato de tarjetas.
|
|
4
|
+
* Componente que muestra las filas del DataGrid en formato de tarjetas con virtualización TanStack.
|
|
5
|
+
* Solo se montan en el DOM las filas de tarjetas visibles en el viewport (más el overscan).
|
|
5
6
|
*/
|
|
6
7
|
export declare function CardsView<TRow, TSummaryRow, TKey extends RowKey = RowKey>(props: CardsViewProps<TRow, TSummaryRow, TKey>): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
7
8
|
//# sourceMappingURL=CardsView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardsView.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/datagrids/views/CardsView/CardsView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"CardsView.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/datagrids/views/CardsView/CardsView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUrC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAKzC;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM,EACvE,KAAK,EAAE,cAAc,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,2DAiM/C"}
|
|
@@ -1,93 +1,113 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { CardsContainerStyled as
|
|
4
|
-
import { useProcessedColumns as
|
|
5
|
-
import { useModalDetail as
|
|
6
|
-
import { calculateCardHeight as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { CardRow as
|
|
10
|
-
function
|
|
1
|
+
import { jsx as u } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useRef as v, useMemo as T, useEffect as D } from "react";
|
|
3
|
+
import { CardsContainerStyled as O, CardsVirtualContainerStyled as B, CardsVirtualRowItemStyled as F } from "../../slots/DataGridSlot.js";
|
|
4
|
+
import { useProcessedColumns as k } from "./hooks/useProcessedColumns/useProcessedColumns.js";
|
|
5
|
+
import { useModalDetail as _ } from "./hooks/useModalDetail/useModalDetail.js";
|
|
6
|
+
import { calculateCardHeight as j } from "./helpers/calculateCardHeight/calculateCardHeight.js";
|
|
7
|
+
import { useCardsPerRow as G } from "./hooks/useCardsPerRow/useCardsPerRow.js";
|
|
8
|
+
import { useCardsVirtualizer as q } from "./hooks/useCardsVirtualizer/useCardsVirtualizer.js";
|
|
9
|
+
import { CardRow as A } from "./subcomponents/CardRow/CardRow.js";
|
|
10
|
+
function $(E) {
|
|
11
11
|
const {
|
|
12
|
-
rows:
|
|
13
|
-
columns:
|
|
14
|
-
rowKeyGetter:
|
|
15
|
-
selectedRows:
|
|
16
|
-
onSelectedRowsChange:
|
|
17
|
-
onRowsChange:
|
|
12
|
+
rows: r,
|
|
13
|
+
columns: w,
|
|
14
|
+
rowKeyGetter: l,
|
|
15
|
+
selectedRows: H,
|
|
16
|
+
onSelectedRowsChange: d,
|
|
17
|
+
onRowsChange: p,
|
|
18
18
|
cardsViewConfig: e,
|
|
19
|
-
focusOnRowKey:
|
|
20
|
-
smoothScroll:
|
|
21
|
-
checkedRows:
|
|
22
|
-
onCheckedRowsChange:
|
|
23
|
-
} =
|
|
19
|
+
focusOnRowKey: s,
|
|
20
|
+
smoothScroll: g = !0,
|
|
21
|
+
checkedRows: m,
|
|
22
|
+
onCheckedRowsChange: R
|
|
23
|
+
} = E, f = v(null), h = v(void 0), c = k(w), x = k(w, {
|
|
24
24
|
applyVisibilityFilter: !1
|
|
25
|
-
}),
|
|
26
|
-
columns:
|
|
27
|
-
onRowsChange:
|
|
28
|
-
rows:
|
|
29
|
-
}),
|
|
30
|
-
const
|
|
31
|
-
const a =
|
|
32
|
-
return a ?
|
|
25
|
+
}), V = _({
|
|
26
|
+
columns: x,
|
|
27
|
+
onRowsChange: p,
|
|
28
|
+
rows: r
|
|
29
|
+
}), S = T(() => {
|
|
30
|
+
const o = c.reduce((t, n) => {
|
|
31
|
+
const a = n.renderCell?.__imageFormatterHeight;
|
|
32
|
+
return a ? t + a : t;
|
|
33
33
|
}, 0);
|
|
34
|
-
return
|
|
34
|
+
return j({
|
|
35
35
|
visibleColumnsCount: c.length,
|
|
36
36
|
customMinHeight: e?.customRender?.minHeight
|
|
37
|
-
}) +
|
|
38
|
-
}, [c, e])
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
}) + o;
|
|
38
|
+
}, [c, e]), i = G(f), I = Math.ceil(r.length / i), { virtualizer: C, virtualItems: M, totalSize: b } = q({
|
|
39
|
+
count: I,
|
|
40
|
+
scrollElementRef: f,
|
|
41
|
+
estimateSize: S
|
|
42
|
+
});
|
|
43
|
+
return D(() => {
|
|
44
|
+
if (!s) {
|
|
45
|
+
h.current = void 0;
|
|
42
46
|
return;
|
|
43
47
|
}
|
|
44
|
-
if (
|
|
45
|
-
(o) => s(o) === n
|
|
46
|
-
) === -1)
|
|
48
|
+
if (h.current === s)
|
|
47
49
|
return;
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
C
|
|
60
|
-
), l && l(/* @__PURE__ */ new Set([n])), d.current = n;
|
|
50
|
+
const o = r.findIndex(
|
|
51
|
+
(n) => l(n) === s
|
|
52
|
+
);
|
|
53
|
+
if (o === -1)
|
|
54
|
+
return;
|
|
55
|
+
const t = setTimeout(() => {
|
|
56
|
+
const n = Math.floor(o / i);
|
|
57
|
+
C.scrollToIndex(n, {
|
|
58
|
+
align: "center",
|
|
59
|
+
behavior: g ? "smooth" : "auto"
|
|
60
|
+
}), d && d(/* @__PURE__ */ new Set([s])), h.current = s;
|
|
61
61
|
}, 300);
|
|
62
|
-
return () => clearTimeout(
|
|
63
|
-
}, [
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
return () => clearTimeout(t);
|
|
63
|
+
}, [
|
|
64
|
+
s,
|
|
65
|
+
r,
|
|
66
|
+
l,
|
|
67
|
+
i,
|
|
68
|
+
C,
|
|
69
|
+
g,
|
|
70
|
+
d
|
|
71
|
+
]), c.length === 0 ? null : /* @__PURE__ */ u(O, { ownerState: {}, "data-testid": "cards-container", ref: f, children: /* @__PURE__ */ u(B, { ownerState: { totalSize: b }, children: M.map((o) => {
|
|
72
|
+
const t = o.index * i, n = r.slice(t, t + i);
|
|
73
|
+
return /* @__PURE__ */ u(
|
|
74
|
+
F,
|
|
67
75
|
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
76
|
+
ref: C.measureElement,
|
|
77
|
+
"data-index": o.index,
|
|
78
|
+
ownerState: { offsetTop: o.start, cardsPerRow: i },
|
|
79
|
+
children: n.map((a, z) => {
|
|
80
|
+
const y = l(a), K = m?.has(y) || !1, P = m !== void 0 && R !== void 0;
|
|
81
|
+
return /* @__PURE__ */ u(
|
|
82
|
+
A,
|
|
83
|
+
{
|
|
84
|
+
row: a,
|
|
85
|
+
rows: r,
|
|
86
|
+
rowIndex: t + z,
|
|
87
|
+
columns: c,
|
|
88
|
+
originalColumns: x,
|
|
89
|
+
rowKeyGetter: l,
|
|
90
|
+
selectedRows: H,
|
|
91
|
+
onSelectedRowsChange: d,
|
|
92
|
+
onRowsChange: p,
|
|
93
|
+
customRender: e?.customRender,
|
|
94
|
+
minHeight: S,
|
|
95
|
+
isChecked: K,
|
|
96
|
+
showCheckbox: P,
|
|
97
|
+
checkedRows: m,
|
|
98
|
+
onCheckedRowsChange: R,
|
|
99
|
+
onOpenDetail: V,
|
|
100
|
+
showExpandButton: e && "columnsConfig" in e ? e.showExpandButton : void 0,
|
|
101
|
+
onExpandClick: e && "columnsConfig" in e ? e.onExpandClick : void 0
|
|
102
|
+
},
|
|
103
|
+
y
|
|
104
|
+
);
|
|
105
|
+
})
|
|
86
106
|
},
|
|
87
|
-
|
|
107
|
+
o.key
|
|
88
108
|
);
|
|
89
109
|
}) }) });
|
|
90
110
|
}
|
|
91
111
|
export {
|
|
92
|
-
|
|
112
|
+
$ as CardsView
|
|
93
113
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/datagrids/views/CardsView/hooks/useCardsPerRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Computes the number of cards per row from the container width, accounting for the gap
|
|
4
|
+
* between columns. Formula: floor((width + gap) / (minCardWidth + gap)).
|
|
5
|
+
* Uses useLayoutEffect + an immediate getBoundingClientRect measurement so cardsPerRow is
|
|
6
|
+
* correct before the first paint, preventing stale DOM references in Storybook interaction tests.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useCardsPerRow(containerRef: RefObject<HTMLDivElement | null>, minCardWidth?: number, gap?: number): number;
|
|
9
|
+
//# sourceMappingURL=useCardsPerRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCardsPerRow.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/datagrids/views/CardsView/hooks/useCardsPerRow/useCardsPerRow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA6B,MAAM,OAAO,CAAC;AAY7D;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,YAAY,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,EAC9C,YAAY,SAAyB,EACrC,GAAG,SAAc,GAChB,MAAM,CA8BR"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useState as d, useLayoutEffect as f } from "react";
|
|
2
|
+
const w = 280, R = 16;
|
|
3
|
+
function A(r, n = w, t = R) {
|
|
4
|
+
const [a, s] = d(1);
|
|
5
|
+
return f(() => {
|
|
6
|
+
const e = r.current;
|
|
7
|
+
if (!e)
|
|
8
|
+
return;
|
|
9
|
+
const c = (o) => Math.max(1, Math.floor((o + t) / (n + t))), i = e.getBoundingClientRect().width;
|
|
10
|
+
i > 0 && s(c(i));
|
|
11
|
+
const u = new ResizeObserver(([o]) => {
|
|
12
|
+
s(c(o.contentRect.width));
|
|
13
|
+
});
|
|
14
|
+
return u.observe(e), () => u.disconnect();
|
|
15
|
+
}, [r, n, t]), a;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
A as useCardsPerRow
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/datagrids/views/CardsView/hooks/useCardsVirtualizer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
export interface UseCardsVirtualizerProps {
|
|
3
|
+
/**
|
|
4
|
+
* Total number of virtual rows to render (Math.ceil(rows.length / cardsPerRow)).
|
|
5
|
+
* Each row contains cardsPerRow cards.
|
|
6
|
+
*/
|
|
7
|
+
count: number;
|
|
8
|
+
/**
|
|
9
|
+
* Ref to the scroll container element (CardsContainerStyled with overflow: auto).
|
|
10
|
+
* The virtualizer listens to scroll events on this element.
|
|
11
|
+
*/
|
|
12
|
+
scrollElementRef: RefObject<HTMLDivElement | null>;
|
|
13
|
+
/**
|
|
14
|
+
* Number of extra rows to render outside the visible viewport.
|
|
15
|
+
* Prevents blank flashes during fast scrolling.
|
|
16
|
+
* @default 3
|
|
17
|
+
*/
|
|
18
|
+
overscan?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Estimated row height in pixels. Use calculateCardHeight() result as initial value.
|
|
21
|
+
* Corrected automatically via measureElement + ResizeObserver after first render.
|
|
22
|
+
* @default 200
|
|
23
|
+
*/
|
|
24
|
+
estimateSize?: number;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/datagrids/views/CardsView/hooks/useCardsVirtualizer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,gBAAgB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACnD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
package/components/datagrids/views/CardsView/hooks/useCardsVirtualizer/useCardsVirtualizer.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UseCardsVirtualizerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Hook that wraps TanStack Virtual's `useVirtualizer` for the CardsView.
|
|
4
|
+
* Each virtual item represents a horizontal row of N cards (cardsPerRow).
|
|
5
|
+
* Row heights are measured dynamically via measureElement + ResizeObserver.
|
|
6
|
+
* @returns
|
|
7
|
+
* - `virtualizer` — virtualizer instance (use `virtualizer.measureElement` as ref on each row,
|
|
8
|
+
* and `virtualizer.scrollToIndex` to programmatically scroll to a row group)
|
|
9
|
+
* - `virtualItems` — array of visible row groups to render
|
|
10
|
+
* - `totalSize` — total scrollable height in pixels (set on the virtual container)
|
|
11
|
+
*/
|
|
12
|
+
export declare function useCardsVirtualizer({ count, scrollElementRef, overscan, estimateSize, }: UseCardsVirtualizerProps): {
|
|
13
|
+
virtualizer: import('@tanstack/virtual-core').Virtualizer<HTMLDivElement, Element>;
|
|
14
|
+
virtualItems: import('@tanstack/virtual-core').VirtualItem[];
|
|
15
|
+
totalSize: number;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=useCardsVirtualizer.d.ts.map
|
package/components/datagrids/views/CardsView/hooks/useCardsVirtualizer/useCardsVirtualizer.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCardsVirtualizer.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/datagrids/views/CardsView/hooks/useCardsVirtualizer/useCardsVirtualizer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AASnD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,gBAAgB,EAChB,QAAY,EACZ,YAAoC,GACrC,EAAE,wBAAwB;;;;EAa1B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useVirtualizer as u } from "@tanstack/react-virtual";
|
|
2
|
+
const a = 200;
|
|
3
|
+
function s({
|
|
4
|
+
count: e,
|
|
5
|
+
scrollElementRef: r,
|
|
6
|
+
overscan: i = 3,
|
|
7
|
+
estimateSize: l = a
|
|
8
|
+
}) {
|
|
9
|
+
const t = u({
|
|
10
|
+
count: e,
|
|
11
|
+
getScrollElement: () => r.current,
|
|
12
|
+
estimateSize: () => l,
|
|
13
|
+
overscan: i
|
|
14
|
+
});
|
|
15
|
+
return {
|
|
16
|
+
virtualizer: t,
|
|
17
|
+
virtualItems: t.getVirtualItems(),
|
|
18
|
+
totalSize: t.getTotalSize()
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
s as useCardsVirtualizer
|
|
23
|
+
};
|
|
@@ -3,7 +3,7 @@ import { CardRowProps } from './types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Componente que muestra una fila de tarjetas.
|
|
5
5
|
*/
|
|
6
|
-
declare function CardRowComponent<TRow, TKey extends RowKey = RowKey>({ row, rows, rowIndex, columns, originalColumns, rowKeyGetter, selectedRows, onSelectedRowsChange, onRowsChange, customRender, minHeight, isChecked, checkedRows, showCheckbox, onCheckedRowsChange, onOpenDetail, showExpandButton, onExpandClick, }: CardRowProps<TRow, TKey>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function CardRowComponent<TRow, TKey extends RowKey = RowKey>({ row, rows, rowIndex, columns, originalColumns, rowKeyGetter, selectedRows, onSelectedRowsChange, onRowsChange, customRender, minHeight: _minHeight, isChecked, checkedRows, showCheckbox, onCheckedRowsChange, onOpenDetail, showExpandButton, onExpandClick, }: CardRowProps<TRow, TKey>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
7
|
/**
|
|
8
8
|
* Componente que muestra CardRow
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardRow.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/datagrids/views/CardsView/subcomponents/CardRow/CardRow.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardRow.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/datagrids/views/CardsView/subcomponents/CardRow/CardRow.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAOvC;;GAEG;AACH,iBAAS,gBAAgB,CAAC,IAAI,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM,EAAE,EAC5D,GAAG,EACH,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,SAAS,EAAE,UAAU,EACrB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,gBAAuB,EACvB,aAAa,GACd,EAAE,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,oDA4H1B;AAED;;GAEG;AACH,eAAO,MAAM,OAAO,EAEd,OAAO,gBAAgB,CAAC"}
|
|
@@ -1,99 +1,98 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { CardContentWrapperStyled as
|
|
4
|
-
import { deepEqual as
|
|
5
|
-
import { useCardContent as
|
|
6
|
-
import { CardHeader as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
function Q({
|
|
1
|
+
import { jsxs as j, jsx as u } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import x, { useMemo as q } from "react";
|
|
3
|
+
import { CardContentWrapperStyled as y, CardContentStyled as B, CardStyled as W } from "../../../../slots/DataGridSlot.js";
|
|
4
|
+
import { deepEqual as _ } from "fast-equals";
|
|
5
|
+
import { useCardContent as z } from "../../hooks/useCardContent/useCardContent.js";
|
|
6
|
+
import { CardHeader as F } from "./subcomponents/CardHeader/CardHeader.js";
|
|
7
|
+
import { getDefaultAction as J } from "../../../../helpers/shared/getDefaultAction/getDefaultAction.js";
|
|
8
|
+
import { useDataGrid as L } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
9
|
+
function N({
|
|
11
10
|
row: t,
|
|
12
|
-
rows:
|
|
11
|
+
rows: o,
|
|
13
12
|
rowIndex: v,
|
|
14
13
|
columns: I,
|
|
15
|
-
originalColumns:
|
|
14
|
+
originalColumns: O,
|
|
16
15
|
rowKeyGetter: n,
|
|
17
16
|
selectedRows: r,
|
|
18
|
-
onSelectedRowsChange:
|
|
17
|
+
onSelectedRowsChange: m,
|
|
19
18
|
onRowsChange: M,
|
|
20
|
-
customRender:
|
|
21
|
-
minHeight:
|
|
22
|
-
isChecked:
|
|
23
|
-
checkedRows:
|
|
24
|
-
showCheckbox:
|
|
25
|
-
onCheckedRowsChange:
|
|
19
|
+
customRender: e,
|
|
20
|
+
minHeight: P,
|
|
21
|
+
isChecked: i,
|
|
22
|
+
checkedRows: l,
|
|
23
|
+
showCheckbox: s,
|
|
24
|
+
onCheckedRowsChange: d,
|
|
26
25
|
onOpenDetail: k,
|
|
27
26
|
showExpandButton: f = !0,
|
|
28
27
|
onExpandClick: C
|
|
29
28
|
}) {
|
|
30
|
-
const { rowActionsGetter: p } =
|
|
29
|
+
const { rowActionsGetter: p } = L(), g = e !== void 0, { cardContent: b } = z({
|
|
31
30
|
row: t,
|
|
32
|
-
rows:
|
|
31
|
+
rows: o,
|
|
33
32
|
rowIndex: v,
|
|
34
33
|
columns: I,
|
|
35
34
|
onRowsChange: M
|
|
36
|
-
}), D = q(() =>
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
35
|
+
}), D = q(() => g ? e.renderContent(t) : /* @__PURE__ */ j(y, { ownerState: {}, children: [
|
|
36
|
+
/* @__PURE__ */ u(
|
|
37
|
+
F,
|
|
39
38
|
{
|
|
40
39
|
row: t,
|
|
41
40
|
onOpenDetail: k,
|
|
42
|
-
isChecked:
|
|
43
|
-
showCheckbox:
|
|
44
|
-
checkedRows:
|
|
45
|
-
onCheckedRowsChange:
|
|
41
|
+
isChecked: i,
|
|
42
|
+
showCheckbox: s,
|
|
43
|
+
checkedRows: l,
|
|
44
|
+
onCheckedRowsChange: d,
|
|
46
45
|
showExpandButton: f,
|
|
47
46
|
onExpandClick: C
|
|
48
47
|
}
|
|
49
48
|
),
|
|
50
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ u(B, { ownerState: {}, children: b })
|
|
51
50
|
] }), [
|
|
51
|
+
g,
|
|
52
|
+
e,
|
|
53
|
+
t,
|
|
52
54
|
b,
|
|
53
55
|
i,
|
|
54
|
-
t,
|
|
55
|
-
g,
|
|
56
|
-
a,
|
|
57
|
-
d,
|
|
58
|
-
m,
|
|
59
56
|
s,
|
|
57
|
+
l,
|
|
58
|
+
d,
|
|
60
59
|
f,
|
|
61
60
|
C
|
|
62
|
-
]),
|
|
63
|
-
if (!
|
|
61
|
+
]), h = (a) => {
|
|
62
|
+
if (!a.target.closest(
|
|
64
63
|
'input, button, a, [role="button"], .MuiCheckbox-root, .MuiIconButton-root'
|
|
65
|
-
) && r &&
|
|
64
|
+
) && r && m) {
|
|
66
65
|
if (r.has(n(t)))
|
|
67
66
|
return;
|
|
68
|
-
const
|
|
69
|
-
|
|
67
|
+
const c = /* @__PURE__ */ new Set([n(t)]);
|
|
68
|
+
m(c);
|
|
70
69
|
}
|
|
71
|
-
},
|
|
72
|
-
if (
|
|
70
|
+
}, A = (a) => {
|
|
71
|
+
if (a.target.closest(
|
|
73
72
|
'input, button, a, [role="button"], .MuiCheckbox-root, .MuiIconButton-root'
|
|
74
73
|
) || !p)
|
|
75
74
|
return;
|
|
76
|
-
const
|
|
75
|
+
const c = p(t), S = J(c);
|
|
77
76
|
S?.onClick && S.onClick(t);
|
|
78
77
|
};
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
-
|
|
78
|
+
return /* @__PURE__ */ u(
|
|
79
|
+
W,
|
|
81
80
|
{
|
|
82
81
|
variant: "outlined",
|
|
83
82
|
selected: r?.has(n(t)),
|
|
84
83
|
ownerState: {
|
|
85
|
-
checked:
|
|
84
|
+
checked: i,
|
|
86
85
|
selected: r?.has(n(t))
|
|
87
86
|
},
|
|
88
|
-
onClick:
|
|
89
|
-
onDoubleClick:
|
|
87
|
+
onClick: h,
|
|
88
|
+
onDoubleClick: A,
|
|
90
89
|
"data-testid": "data-grid-card",
|
|
91
90
|
"data-row-key": n(t),
|
|
92
91
|
children: D
|
|
93
92
|
}
|
|
94
|
-
)
|
|
93
|
+
);
|
|
95
94
|
}
|
|
96
|
-
const
|
|
95
|
+
const G = x.memo(N, (t, o) => _(t, o));
|
|
97
96
|
export {
|
|
98
|
-
|
|
97
|
+
G as CardRow
|
|
99
98
|
};
|
|
@@ -46,9 +46,11 @@ export interface CardRowProps<TRow, TKey extends RowKey = RowKey> {
|
|
|
46
46
|
*/
|
|
47
47
|
customRender?: CardsViewConfig<TRow>['customRender'];
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* @deprecated No longer used since TanStack Virtualizer replaced LazyLoadCard.
|
|
50
|
+
* Card height is now managed by useCardsVirtualizer's estimateSize.
|
|
51
|
+
* Kept for API compatibility — has no visual effect.
|
|
50
52
|
*/
|
|
51
|
-
minHeight
|
|
53
|
+
minHeight?: number;
|
|
52
54
|
/**
|
|
53
55
|
* Indica si la fila está chequeada
|
|
54
56
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/datagrids/views/CardsView/subcomponents/CardRow/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,IAAI,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM;IAC9D;;OAEG;IACH,GAAG,EAAE,IAAI,CAAC;IACV;;OAEG;IACH,IAAI,EAAE,SAAS,IAAI,EAAE,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,SAAS,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC;IACtC;;OAEG;IACH,eAAe,EAAE,SAAS,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC;IAC9C;;OAEG;IACH,YAAY,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IACjC;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,eAAe,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IACpE;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC;IAC9E;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;IACrD
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/datagrids/views/CardsView/subcomponents/CardRow/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,IAAI,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM;IAC9D;;OAEG;IACH,GAAG,EAAE,IAAI,CAAC;IACV;;OAEG;IACH,IAAI,EAAE,SAAS,IAAI,EAAE,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,SAAS,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC;IACtC;;OAEG;IACH,eAAe,EAAE,SAAS,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC;IAC9C;;OAEG;IACH,YAAY,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IACjC;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,eAAe,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IACpE;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC;IAC9E;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;IACrD;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAChC;;OAEG;IACH,mBAAmB,CAAC,EAAE,CAAC,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAClE;;OAEG;IACH,YAAY,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,IAAI,CAAC;IAClC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,IAAI,CAAC;CACrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.25.1-beta-feature-731-code-editor.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -53,19 +53,19 @@
|
|
|
53
53
|
"@hookform/resolvers": "2.9.11",
|
|
54
54
|
"nprogress": "0.2.0",
|
|
55
55
|
"react-transition-group": "4.4.5",
|
|
56
|
-
"react-color": "2.19.3",
|
|
57
56
|
"react-dropzone": "14.4.1",
|
|
57
|
+
"react-color": "2.19.3",
|
|
58
58
|
"@mui/x-date-pickers": "6.20.2",
|
|
59
|
+
"react-draggable": "4.5.0",
|
|
59
60
|
"react-rnd": "10.5.2",
|
|
60
61
|
"react-spinners": "0.13.8",
|
|
61
62
|
"date-fns": "2.30.0",
|
|
62
|
-
"react-draggable": "4.5.0",
|
|
63
|
-
"chart.js": "4.5.1",
|
|
64
|
-
"chartjs-chart-error-bars": "4.4.5",
|
|
65
|
-
"qrcode.react": "3.2.0",
|
|
66
63
|
"simplebar-react": "3.2.6",
|
|
67
64
|
"react-resizable-panels": "2.1.9",
|
|
68
65
|
"react-simple-code-editor": "0.14.1",
|
|
66
|
+
"chart.js": "4.5.1",
|
|
67
|
+
"chartjs-chart-error-bars": "4.4.5",
|
|
68
|
+
"qrcode.react": "3.2.0",
|
|
69
69
|
"react-data-grid": "7.0.0-beta.47",
|
|
70
70
|
"react-dnd": "16.0.1",
|
|
71
71
|
"react-dnd-html5-backend": "16.0.1",
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
function s(e, r, n = "data-attribute", l = "data-row-key", c = !0) {
|
|
2
|
-
if (!e) {
|
|
3
|
-
console.warn("scrollToRowElement: containerElement is null");
|
|
4
|
-
return;
|
|
5
|
-
}
|
|
6
|
-
try {
|
|
7
|
-
const o = n === "class" ? `.${l}-${r}` : `[${l}="${r}"]`, t = e.querySelector(o);
|
|
8
|
-
if (!t) {
|
|
9
|
-
console.warn(
|
|
10
|
-
`scrollToRowElement: No element found with selector "${o}"`
|
|
11
|
-
);
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
t.scrollIntoView({
|
|
15
|
-
behavior: c ? "smooth" : "auto",
|
|
16
|
-
block: "end"
|
|
17
|
-
});
|
|
18
|
-
} catch (o) {
|
|
19
|
-
console.error("scrollToRowElement: Error scrolling", o);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
s as scrollToRowElement
|
|
24
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as a } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { useState as b } from "react";
|
|
3
|
-
import { IntersectCard as w } from "./subcomponents/IntersectCard/IntersectCard.js";
|
|
4
|
-
const l = () => typeof window < "u" && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
|
|
5
|
-
function f(r) {
|
|
6
|
-
const {
|
|
7
|
-
children: t,
|
|
8
|
-
enableIntersectionObserver: n = !0,
|
|
9
|
-
threshold: i = 100,
|
|
10
|
-
minHeight: o = 120,
|
|
11
|
-
rowKey: s
|
|
12
|
-
} = r, [c, d] = b(
|
|
13
|
-
!(n && l())
|
|
14
|
-
);
|
|
15
|
-
return /* @__PURE__ */ e(a, { children: c ? (
|
|
16
|
-
// Contenido real: se renderiza cuando es visible o cuando no se usa observer
|
|
17
|
-
t
|
|
18
|
-
) : (
|
|
19
|
-
// Placeholder: elemento centinela que detecta cuándo debe cargar el contenido
|
|
20
|
-
/* @__PURE__ */ e(
|
|
21
|
-
w,
|
|
22
|
-
{
|
|
23
|
-
setIsVisible: d,
|
|
24
|
-
threshold: i,
|
|
25
|
-
minHeight: o,
|
|
26
|
-
rowKey: s
|
|
27
|
-
}
|
|
28
|
-
)
|
|
29
|
-
) });
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
f as LazyLoadCard
|
|
33
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsx as u } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { useState as a, useRef as m, useEffect as b } from "react";
|
|
3
|
-
import { styled as I } from "@mui/material/styles";
|
|
4
|
-
const d = (e) => {
|
|
5
|
-
e.forEach((t) => {
|
|
6
|
-
t.isIntersecting && t.target?.setIsVisible(!0);
|
|
7
|
-
});
|
|
8
|
-
}, n = {}, g = (e) => (n[e] = n[e] || new IntersectionObserver(d, {
|
|
9
|
-
rootMargin: e + "px"
|
|
10
|
-
}), n[e]), l = I("div")(
|
|
11
|
-
({ minHeight: e }) => ({
|
|
12
|
-
minHeight: `${e}px`,
|
|
13
|
-
width: "100%"
|
|
14
|
-
})
|
|
15
|
-
);
|
|
16
|
-
function x(e) {
|
|
17
|
-
const { setIsVisible: t, threshold: o, minHeight: c = 120, rowKey: f } = e, [r] = a(
|
|
18
|
-
g(o)
|
|
19
|
-
), i = m(null);
|
|
20
|
-
return b(() => {
|
|
21
|
-
const s = i.current;
|
|
22
|
-
return r && s && (s.setIsVisible = t, r.observe(s)), () => {
|
|
23
|
-
r && s && r.unobserve(s);
|
|
24
|
-
};
|
|
25
|
-
}, [r, t]), /* @__PURE__ */ u(
|
|
26
|
-
l,
|
|
27
|
-
{
|
|
28
|
-
ref: i,
|
|
29
|
-
minHeight: c,
|
|
30
|
-
"data-row-key": f
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
x as IntersectCard
|
|
36
|
-
};
|