@quickbuilder.io/data-grid 0.0.0-stage → 1.0.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/LICENSE +21 -0
- package/README.md +308 -2
- package/dist/index.d.mts +884 -0
- package/dist/index.d.ts +884 -0
- package/dist/index.js +605 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +577 -0
- package/dist/index.mjs.map +1 -0
- package/dist/react.d.mts +1372 -0
- package/dist/react.d.ts +1372 -0
- package/dist/react.js +6728 -0
- package/dist/react.js.map +1 -0
- package/dist/react.mjs +6696 -0
- package/dist/react.mjs.map +1 -0
- package/package.json +87 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1,605 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/framework-adapter.ts
|
|
4
|
+
var dataGridFrameworkAdapterSupport = Object.freeze([
|
|
5
|
+
{ framework: "react", entrypoint: "@quickbuilder.io/data-grid/react", status: "implemented" },
|
|
6
|
+
{ framework: "vue", status: "unsupported" },
|
|
7
|
+
{ framework: "preact", status: "unsupported" },
|
|
8
|
+
{ framework: "qwik", status: "unsupported" },
|
|
9
|
+
{ framework: "astro", status: "unsupported" },
|
|
10
|
+
{ framework: "svelte", status: "unsupported" },
|
|
11
|
+
{ framework: "solid", status: "unsupported" },
|
|
12
|
+
{ framework: "web-components", status: "unsupported" }
|
|
13
|
+
]);
|
|
14
|
+
var frameworkAdapterSupport = dataGridFrameworkAdapterSupport;
|
|
15
|
+
|
|
16
|
+
// src/DataGrid.capabilities.ts
|
|
17
|
+
var dataGridCapabilityFeatures = [
|
|
18
|
+
{ id: "layout", label: "Layout", category: "main", packageTarget: "community", status: "partial" },
|
|
19
|
+
{ id: "columns", label: "Columns", category: "main", packageTarget: "community", status: "partial" },
|
|
20
|
+
{ id: "column-resizing", label: "Column resizing", category: "main", packageTarget: "community", status: "partial" },
|
|
21
|
+
{ id: "column-reordering", label: "Column reordering", category: "main", packageTarget: "community", status: "partial" },
|
|
22
|
+
{ id: "column-spanning", label: "Column spanning", category: "main", packageTarget: "community", status: "implemented" },
|
|
23
|
+
{ id: "column-groups", label: "Column groups", category: "main", packageTarget: "pro", status: "partial" },
|
|
24
|
+
{ id: "pinned-columns", label: "Pinned columns", category: "main", packageTarget: "community", status: "partial" },
|
|
25
|
+
{ id: "pinned-rows", label: "Pinned rows", category: "main", packageTarget: "pro", status: "implemented" },
|
|
26
|
+
{ id: "rows", label: "Rows", category: "main", packageTarget: "community", status: "partial" },
|
|
27
|
+
{ id: "row-reordering", label: "Row reordering", category: "main", packageTarget: "pro", status: "implemented" },
|
|
28
|
+
{ id: "row-spanning", label: "Row spanning", category: "main", packageTarget: "deferred-premium", status: "planned" },
|
|
29
|
+
{ id: "cells", label: "Cells", category: "main", packageTarget: "community", status: "partial" },
|
|
30
|
+
{ id: "editing", label: "Editing", category: "main", packageTarget: "community", status: "partial" },
|
|
31
|
+
{ id: "sorting", label: "Sorting", category: "main", packageTarget: "community", status: "partial" },
|
|
32
|
+
{ id: "filtering", label: "Filtering", category: "main", packageTarget: "community", status: "partial" },
|
|
33
|
+
{ id: "pagination", label: "Pagination", category: "main", packageTarget: "community", status: "implemented" },
|
|
34
|
+
{ id: "selection", label: "Selection", category: "main", packageTarget: "community", status: "partial" },
|
|
35
|
+
{ id: "cell-selection", label: "Cell selection", category: "main", packageTarget: "community", status: "partial" },
|
|
36
|
+
{ id: "virtualization", label: "Virtualization", category: "main", packageTarget: "community", status: "partial" },
|
|
37
|
+
{ id: "header-filters", label: "Header filters", category: "main", packageTarget: "pro", status: "implemented" },
|
|
38
|
+
{ id: "accessibility", label: "Accessibility", category: "main", packageTarget: "community", status: "partial" },
|
|
39
|
+
{ id: "localization", label: "Localization", category: "main", packageTarget: "community", status: "partial" },
|
|
40
|
+
{ id: "tree-data", label: "Tree data", category: "advanced", packageTarget: "pro", status: "partial" },
|
|
41
|
+
{ id: "master-detail", label: "Master-detail row panels", category: "advanced", packageTarget: "pro", status: "implemented" },
|
|
42
|
+
{ id: "row-grouping", label: "Row grouping", category: "advanced", packageTarget: "pro", status: "partial" },
|
|
43
|
+
{ id: "aggregation", label: "Aggregation", category: "advanced", packageTarget: "pro", status: "partial" },
|
|
44
|
+
{ id: "pivoting", label: "Pivoting", category: "advanced", packageTarget: "pro", status: "implemented" },
|
|
45
|
+
{ id: "export", label: "Export", category: "advanced", packageTarget: "community", status: "partial" },
|
|
46
|
+
{ id: "copy-paste", label: "Copy and paste", category: "advanced", packageTarget: "pro", status: "partial" },
|
|
47
|
+
{ id: "undo-redo", label: "Undo and redo", category: "advanced", packageTarget: "pro", status: "partial" },
|
|
48
|
+
{ id: "scrolling", label: "Scrolling", category: "advanced", packageTarget: "community", status: "partial" },
|
|
49
|
+
{ id: "list-view", label: "List view", category: "advanced", packageTarget: "community", status: "planned" },
|
|
50
|
+
{ id: "server-side-data", label: "Server-side data", category: "advanced", packageTarget: "community", status: "partial" },
|
|
51
|
+
{ id: "server-side-hierarchy", label: "Server-side hierarchy", category: "advanced", packageTarget: "pro", status: "partial" },
|
|
52
|
+
{ id: "server-side-export", label: "Server-side export", category: "advanced", packageTarget: "community", status: "partial" },
|
|
53
|
+
{ id: "server-side-hierarchy-export", label: "Server-side hierarchy export", category: "advanced", packageTarget: "pro", status: "partial" },
|
|
54
|
+
{ id: "charts-integration", label: "Charts integration", category: "advanced", packageTarget: "pro", status: "implemented" },
|
|
55
|
+
{ id: "ai-assistant", label: "AI assistant", category: "advanced", packageTarget: "pro", status: "implemented" },
|
|
56
|
+
{ id: "toolbar", label: "Toolbar", category: "component", packageTarget: "community", status: "implemented" },
|
|
57
|
+
{ id: "export-controls", label: "Export controls", category: "component", packageTarget: "community", status: "implemented" },
|
|
58
|
+
{ id: "quick-filter", label: "Quick filter", category: "component", packageTarget: "community", status: "implemented" },
|
|
59
|
+
{ id: "columns-panel", label: "Columns panel", category: "component", packageTarget: "community", status: "implemented" },
|
|
60
|
+
{ id: "filter-panel", label: "Filter panel", category: "component", packageTarget: "community", status: "implemented" },
|
|
61
|
+
{ id: "column-menu", label: "Column menu", category: "component", packageTarget: "community", status: "implemented" },
|
|
62
|
+
{ id: "preset-controls", label: "Preset controls", category: "component", packageTarget: "pro", status: "partial" },
|
|
63
|
+
{ id: "prompt-field", label: "Prompt field", category: "component", packageTarget: "pro", status: "implemented" },
|
|
64
|
+
{ id: "pivot-panel", label: "Pivot panel", category: "component", packageTarget: "pro", status: "implemented" },
|
|
65
|
+
{ id: "charts-panel", label: "Charts panel", category: "component", packageTarget: "pro", status: "implemented" },
|
|
66
|
+
{ id: "ai-assistant-panel", label: "AI assistant panel", category: "component", packageTarget: "pro", status: "implemented" },
|
|
67
|
+
{ id: "api-object", label: "API object", category: "platform", packageTarget: "community", status: "partial" },
|
|
68
|
+
{ id: "events", label: "Events", category: "platform", packageTarget: "community", status: "partial" },
|
|
69
|
+
{ id: "state", label: "State", category: "platform", packageTarget: "community", status: "partial" },
|
|
70
|
+
{ id: "state-presets", label: "State presets", category: "platform", packageTarget: "pro", status: "partial" },
|
|
71
|
+
{ id: "performance", label: "Performance", category: "platform", packageTarget: "community", status: "implemented" },
|
|
72
|
+
{ id: "styling", label: "Styling", category: "platform", packageTarget: "community", status: "implemented" },
|
|
73
|
+
{ id: "custom-subcomponents", label: "Custom subcomponents", category: "platform", packageTarget: "community", status: "implemented" },
|
|
74
|
+
{ id: "overlays", label: "Overlays", category: "platform", packageTarget: "community", status: "implemented" }
|
|
75
|
+
];
|
|
76
|
+
var dataGridCapabilityFeatureIds = dataGridCapabilityFeatures.map((feature) => feature.id);
|
|
77
|
+
|
|
78
|
+
// src/DataGrid.locale.ts
|
|
79
|
+
var defaultDataGridLocaleText = {
|
|
80
|
+
clearSelectionLabel: "Clear selection",
|
|
81
|
+
clipboardErrorLabel: "Unable to access the clipboard",
|
|
82
|
+
densityLabels: { compact: "Compact density", standard: "Standard density", spacious: "Comfortable density" },
|
|
83
|
+
retryLabel: "Retry",
|
|
84
|
+
clearFiltersLabel: "Clear filters",
|
|
85
|
+
rowsPerPageLabel: "Rows per page",
|
|
86
|
+
exportErrorLabel: "Unable to export rows",
|
|
87
|
+
serverExportRequiredLabel: "Connect exportDataSource to export rows outside the loaded page.",
|
|
88
|
+
actionsColumnLabel: "Actions",
|
|
89
|
+
assistantLabel: "AI Assistant",
|
|
90
|
+
addFilterLabel: "Add filter",
|
|
91
|
+
allItemsLabel: (rowCount) => `All items (${rowCount})`,
|
|
92
|
+
allRowsExportLabel: "All rows",
|
|
93
|
+
allVisibleColumnsLabel: "All visible",
|
|
94
|
+
clearAllFiltersLabel: "Clear all",
|
|
95
|
+
clearSortLabel: "Clear sort",
|
|
96
|
+
columnsLabel: "Columns",
|
|
97
|
+
columnsWithHiddenCountLabel: (hiddenCount) => `Columns (${hiddenCount} hidden)`,
|
|
98
|
+
dataSourceErrorLabel: "Unable to load rows",
|
|
99
|
+
editColumnLabel: (columnLabel) => `Edit ${columnLabel}`,
|
|
100
|
+
exportLabel: "Export",
|
|
101
|
+
exportPreparingLabel: "Preparing export",
|
|
102
|
+
exportSelectedRowsDisabledLabel: "Select at least one row to export this scope.",
|
|
103
|
+
exportTitle: "Export CSV",
|
|
104
|
+
filteredRowsExportLabel: "Filtered rows",
|
|
105
|
+
filterColumnAriaLabel: "Filter column",
|
|
106
|
+
filterColumnLabel: (columnLabel) => `Filter ${columnLabel}`,
|
|
107
|
+
filterOperatorAriaLabel: "Filter operator",
|
|
108
|
+
filterOperatorLabels: {
|
|
109
|
+
contains: "Contains",
|
|
110
|
+
endsWith: "Ends with",
|
|
111
|
+
equals: "Equals",
|
|
112
|
+
startsWith: "Starts with",
|
|
113
|
+
notEquals: "Does not equal",
|
|
114
|
+
notContains: "Does not contain",
|
|
115
|
+
greaterThan: "Greater than",
|
|
116
|
+
greaterThanOrEqual: "Greater than or equal",
|
|
117
|
+
lessThan: "Less than",
|
|
118
|
+
lessThanOrEqual: "Less than or equal",
|
|
119
|
+
isEmpty: "Is empty",
|
|
120
|
+
isNotEmpty: "Is not empty",
|
|
121
|
+
isAnyOf: "Selected values"
|
|
122
|
+
},
|
|
123
|
+
filterValueAriaLabel: "Filter value",
|
|
124
|
+
filterValuePlaceholder: "Value",
|
|
125
|
+
filtersActiveLabel: (activeCount) => `${activeCount} active`,
|
|
126
|
+
filtersLabel: "Filter",
|
|
127
|
+
headerFilterPlaceholder: "Filter\u2026",
|
|
128
|
+
hideColumnLabel: "Hide column",
|
|
129
|
+
hiddenColumnsLabel: (hiddenCount) => `${hiddenCount} hidden`,
|
|
130
|
+
loadingRowsLabel: "Loading rows",
|
|
131
|
+
manageFieldsDescription: "Choose which fields to show, and drag and drop to change their order.",
|
|
132
|
+
manageFieldsLabel: "Manage fields",
|
|
133
|
+
manageViewLabel: "Manage View",
|
|
134
|
+
noActiveFiltersLabel: "No active filters",
|
|
135
|
+
noColumnFiltersLabel: "No column filters",
|
|
136
|
+
noResultsOverlayLabel: "No rows match the current filters",
|
|
137
|
+
noRowsLabel: "No rows",
|
|
138
|
+
openColumnMenuLabel: (columnLabel) => `Open ${columnLabel} column menu`,
|
|
139
|
+
paginationLabel: "Data grid pagination",
|
|
140
|
+
paginationStatusLabel: (page, pageCount, firstRow, lastRow, rowCount) => `Page ${page} of ${pageCount} \xB7 ${firstRow}-${lastRow} of ${rowCount}`,
|
|
141
|
+
pinLeftLabel: "Pin left",
|
|
142
|
+
pinRightLabel: "Pin right",
|
|
143
|
+
quickFilterLabel: "Quick filter rows",
|
|
144
|
+
quickFilterPlaceholder: "Search rows",
|
|
145
|
+
removeFilterLabel: "Remove",
|
|
146
|
+
reorderRowLabel: (rowIndex) => `Reorder row ${rowIndex}`,
|
|
147
|
+
rowReorderInstructionsLabel: "Drag to reorder. Use Arrow Up or Arrow Down to move, Home or End to move to an edge, and Escape to cancel a drag.",
|
|
148
|
+
rowReorderUnavailableLabel: "Reordering is unavailable for pinned rows or while sorting, editing, loading, or expanded row details are active.",
|
|
149
|
+
rowReorderCancelledLabel: "Row reorder cancelled.",
|
|
150
|
+
rowReorderPositionLabel: (position, count) => `Row moved to position ${position} of ${count}.`,
|
|
151
|
+
rowUpdateErrorLabel: "Unable to save row changes",
|
|
152
|
+
resetColumnsLabel: "Reset",
|
|
153
|
+
resetViewLabel: "Reset view",
|
|
154
|
+
restoreSavedViewLabel: "Restore saved view",
|
|
155
|
+
resizeColumnLabel: (columnLabel) => `Resize ${columnLabel} column`,
|
|
156
|
+
rowDetailsCollapseLabel: "Collapse row details",
|
|
157
|
+
rowDetailsExpandLabel: "Expand row details",
|
|
158
|
+
rowSelectionLabel: (rowIndex) => `Select row ${rowIndex}`,
|
|
159
|
+
rowsSummaryLabel: (visibleRowCount, totalRowCount) => `${visibleRowCount} of ${totalRowCount} rows`,
|
|
160
|
+
selectedRowsExportLabel: "Selected rows",
|
|
161
|
+
selectedRowsLabel: (selectedRowCount) => `${selectedRowCount} row${selectedRowCount === 1 ? "" : "s"} selected`,
|
|
162
|
+
selectAllRowsLabel: "Select all rows on this page",
|
|
163
|
+
saveCurrentViewLabel: "Save current view",
|
|
164
|
+
searchColumnsPlaceholder: "Search columns...",
|
|
165
|
+
searchFiltersPlaceholder: "Search filters",
|
|
166
|
+
sortAscendingLabel: "Sort ascending",
|
|
167
|
+
sortByColumnLabel: (columnLabel, direction) => `Sort by ${columnLabel} ${direction}`,
|
|
168
|
+
sortDescendingLabel: "Sort descending",
|
|
169
|
+
toggleColumnLabel: (columnLabel) => `Toggle ${columnLabel} column`,
|
|
170
|
+
ungroupedColumnsLabel: "Ungrouped columns",
|
|
171
|
+
unpinLabel: "Unpin",
|
|
172
|
+
visibleRowsExportLabel: "Visible rows"
|
|
173
|
+
};
|
|
174
|
+
function resolveDataGridLocaleText(overrides) {
|
|
175
|
+
return overrides ? { ...defaultDataGridLocaleText, ...overrides } : defaultDataGridLocaleText;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// src/DataGrid.selectors.ts
|
|
179
|
+
function dataGridVisibleColumnsSelector(state) {
|
|
180
|
+
return state.visibleColumns;
|
|
181
|
+
}
|
|
182
|
+
function dataGridVisibleRowsSelector(state) {
|
|
183
|
+
return state.visibleRows;
|
|
184
|
+
}
|
|
185
|
+
function dataGridFilteredRowsSelector(state) {
|
|
186
|
+
return state.filteredRows;
|
|
187
|
+
}
|
|
188
|
+
function dataGridSelectedRowsSelector(state) {
|
|
189
|
+
return state.selectedRows;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// src/csv-cell.ts
|
|
193
|
+
function serializeCsvCell(value, alwaysQuote = false) {
|
|
194
|
+
const rawText = value instanceof Date ? value.toISOString() : String(value ?? "");
|
|
195
|
+
const text = typeof value === "string" && /^[\s\uFEFF]*[=+\-@\t\r\n]/u.test(rawText) ? `'${rawText}` : rawText;
|
|
196
|
+
return alwaysQuote || /[",\n\r]/.test(text) ? `"${text.replace(/"/g, '""')}"` : text;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// src/DataGrid.utils.ts
|
|
200
|
+
function resolveDataGridRowId(row, rowIndex, getRowId) {
|
|
201
|
+
const rowRecord = row;
|
|
202
|
+
const id = getRowId ? getRowId(row, rowIndex) : rowRecord.id;
|
|
203
|
+
if (typeof id !== "string" && typeof id !== "number") {
|
|
204
|
+
throw new Error("DataGrid requires a stable row.id or getRowId. Row ids must be non-empty strings or finite numbers.");
|
|
205
|
+
}
|
|
206
|
+
if (typeof id === "string" && !id.trim() || typeof id === "number" && !Number.isFinite(id)) {
|
|
207
|
+
throw new Error("DataGrid row ids must be non-empty strings or finite numbers.");
|
|
208
|
+
}
|
|
209
|
+
return id;
|
|
210
|
+
}
|
|
211
|
+
function getDataGridCellValue(column, row, rowIndex) {
|
|
212
|
+
return column.valueGetter ? column.valueGetter(row, rowIndex) : row[column.field];
|
|
213
|
+
}
|
|
214
|
+
function getDataGridColumnLabel(column) {
|
|
215
|
+
if (typeof column.headerName === "string" && column.headerName.trim()) {
|
|
216
|
+
return column.headerName;
|
|
217
|
+
}
|
|
218
|
+
return column.field;
|
|
219
|
+
}
|
|
220
|
+
function serializeDataGridCsv(columns, rows, options = {}) {
|
|
221
|
+
const includeHeaders = options.includeHeaders ?? true;
|
|
222
|
+
const csvRows = rows.map((resolvedRow) => columns.map((column) => serializeCsvCell(formatDataGridCellValue(column, resolvedRow))).join(","));
|
|
223
|
+
if (!includeHeaders) return csvRows.join("\n");
|
|
224
|
+
return [
|
|
225
|
+
columns.map((column) => serializeCsvCell(getDataGridColumnLabel(column))).join(","),
|
|
226
|
+
...csvRows
|
|
227
|
+
].join("\n");
|
|
228
|
+
}
|
|
229
|
+
function compareDataGridValues(left, right) {
|
|
230
|
+
if (left == null && right == null) return 0;
|
|
231
|
+
if (left == null) return -1;
|
|
232
|
+
if (right == null) return 1;
|
|
233
|
+
if (typeof left === "number" && typeof right === "number") {
|
|
234
|
+
return left - right;
|
|
235
|
+
}
|
|
236
|
+
if (left instanceof Date && right instanceof Date) {
|
|
237
|
+
return left.getTime() - right.getTime();
|
|
238
|
+
}
|
|
239
|
+
return String(left).localeCompare(String(right), void 0, {
|
|
240
|
+
numeric: true,
|
|
241
|
+
sensitivity: "base"
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
function sortDataGridRows(rows, columns, sortModel) {
|
|
245
|
+
if (!sortModel) return rows;
|
|
246
|
+
const models = "field" in sortModel ? [sortModel] : sortModel;
|
|
247
|
+
const criteria = models.map((model) => {
|
|
248
|
+
const column = columns.find((candidate) => candidate.field === model.field);
|
|
249
|
+
if (!column || !["ascending", "descending"].includes(model.direction)) throw new Error("DataGrid sorting requires known fields and valid directions.");
|
|
250
|
+
return { column, direction: model.direction === "descending" ? -1 : 1 };
|
|
251
|
+
});
|
|
252
|
+
return [...rows].sort((left, right) => {
|
|
253
|
+
for (const { column, direction } of criteria) {
|
|
254
|
+
const leftValue = getDataGridCellValue(column, left.row, left.rowIndex);
|
|
255
|
+
const rightValue = getDataGridCellValue(column, right.row, right.rowIndex);
|
|
256
|
+
const result = column.sortComparator ? column.sortComparator(leftValue, rightValue, left.row, right.row) : compareDataGridValues(leftValue, rightValue);
|
|
257
|
+
if (result) return result * direction;
|
|
258
|
+
}
|
|
259
|
+
return 0;
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
function filterDataGridRows(rows, columns, filterModel) {
|
|
263
|
+
if (filterModel?.logicOperator !== void 0 && !["and", "or"].includes(filterModel.logicOperator)) throw new Error("DataGrid filter logic must be and or or.");
|
|
264
|
+
const filters = filterModel?.items?.filter(isDataGridFilterActive) ?? [];
|
|
265
|
+
for (const filter of filters) {
|
|
266
|
+
if (!columns.some((column) => column.field === filter.field)) throw new Error(`DataGrid filter field ${filter.field} does not exist.`);
|
|
267
|
+
if (!["contains", "equals", "startsWith", "endsWith", "notEquals", "notContains", "greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual", "isEmpty", "isNotEmpty", "isAnyOf"].includes(filter.operator ?? "contains")) throw new Error("Unsupported DataGrid filter operator.");
|
|
268
|
+
if (filter.operator === "isAnyOf" && (!Array.isArray(filter.values) || filter.values.some((value) => typeof value !== "string"))) throw new Error("isAnyOf requires an array of string values.");
|
|
269
|
+
}
|
|
270
|
+
const quickFilterValue = filterModel?.quickFilterValue?.trim() ?? "";
|
|
271
|
+
if (!filters.length && !quickFilterValue) return rows;
|
|
272
|
+
return rows.filter((resolvedRow) => {
|
|
273
|
+
const matches = (filter) => passesDataGridFilter(filter, resolvedRow, columns);
|
|
274
|
+
const passesColumnFilters = !filters.length || (filterModel?.logicOperator === "or" ? filters.some(matches) : filters.every(matches));
|
|
275
|
+
if (!passesColumnFilters) return false;
|
|
276
|
+
if (!quickFilterValue) return true;
|
|
277
|
+
const normalizedQuickFilter = normalizeFilterValue(quickFilterValue);
|
|
278
|
+
return columns.some((column) => normalizeFilterValue(getDataGridCellValue(column, resolvedRow.row, resolvedRow.rowIndex)).includes(normalizedQuickFilter));
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
function isDataGridFilterActive(item) {
|
|
282
|
+
return ["isEmpty", "isNotEmpty", "isAnyOf"].includes(item.operator ?? "") || item.value.trim() !== "";
|
|
283
|
+
}
|
|
284
|
+
function normalizeDataGridSortModel(field, direction) {
|
|
285
|
+
return { field, direction };
|
|
286
|
+
}
|
|
287
|
+
function renderDataGridCell(column, resolvedRow) {
|
|
288
|
+
const value = getDataGridCellValue(column, resolvedRow.row, resolvedRow.rowIndex);
|
|
289
|
+
if (column.renderCell) {
|
|
290
|
+
return column.renderCell({
|
|
291
|
+
id: resolvedRow.id,
|
|
292
|
+
row: resolvedRow.row,
|
|
293
|
+
rowIndex: resolvedRow.rowIndex,
|
|
294
|
+
field: column.field,
|
|
295
|
+
value
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
if (column.valueFormatter) {
|
|
299
|
+
return column.valueFormatter(value, resolvedRow.row, resolvedRow.rowIndex);
|
|
300
|
+
}
|
|
301
|
+
return value;
|
|
302
|
+
}
|
|
303
|
+
function formatDataGridCellValue(column, resolvedRow) {
|
|
304
|
+
const value = getDataGridCellValue(column, resolvedRow.row, resolvedRow.rowIndex);
|
|
305
|
+
return column.valueFormatter ? column.valueFormatter(value, resolvedRow.row, resolvedRow.rowIndex) : value;
|
|
306
|
+
}
|
|
307
|
+
function passesDataGridFilter(filter, resolvedRow, columns) {
|
|
308
|
+
const column = columns.find((candidate) => candidate.field === filter.field);
|
|
309
|
+
if (!column) throw new Error(`DataGrid filter field ${filter.field} does not exist.`);
|
|
310
|
+
const value = getDataGridCellValue(column, resolvedRow.row, resolvedRow.rowIndex);
|
|
311
|
+
const candidateValue = normalizeFilterValue(value);
|
|
312
|
+
const filterValue = normalizeFilterValue(filter.value);
|
|
313
|
+
if (filter.operator === "isEmpty") return value == null || value === "";
|
|
314
|
+
if (filter.operator === "isNotEmpty") return value != null && value !== "";
|
|
315
|
+
if (filter.operator === "isAnyOf") return filter.values.some((entry) => candidateValue === normalizeFilterValue(entry));
|
|
316
|
+
if (filter.operator === "equals") return candidateValue === filterValue;
|
|
317
|
+
if (filter.operator === "notEquals") return candidateValue !== filterValue;
|
|
318
|
+
if (filter.operator === "notContains") return !candidateValue.includes(filterValue);
|
|
319
|
+
if (filter.operator === "startsWith") return candidateValue.startsWith(filterValue);
|
|
320
|
+
if (filter.operator === "endsWith") return candidateValue.endsWith(filterValue);
|
|
321
|
+
if (["greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual"].includes(filter.operator ?? "")) {
|
|
322
|
+
if (value == null || value === "") return false;
|
|
323
|
+
const expected = typeof value === "number" ? Number(filter.value) : value instanceof Date ? new Date(filter.value) : filter.value;
|
|
324
|
+
if (typeof expected === "number" && !Number.isFinite(expected) || expected instanceof Date && !Number.isFinite(expected.getTime())) throw new Error("DataGrid comparison requires a valid number or date.");
|
|
325
|
+
const comparison = compareDataGridValues(value, expected);
|
|
326
|
+
if (filter.operator === "greaterThan") return comparison > 0;
|
|
327
|
+
if (filter.operator === "greaterThanOrEqual") return comparison >= 0;
|
|
328
|
+
if (filter.operator === "lessThan") return comparison < 0;
|
|
329
|
+
return comparison <= 0;
|
|
330
|
+
}
|
|
331
|
+
return candidateValue.includes(filterValue);
|
|
332
|
+
}
|
|
333
|
+
function normalizeFilterValue(value) {
|
|
334
|
+
if (value == null) return "";
|
|
335
|
+
return String(value).trim().toLocaleLowerCase();
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// src/tabular-workbook.ts
|
|
339
|
+
function xml(value) {
|
|
340
|
+
if (/[\u0000-\u0008\u000b\u000c\u000e-\u001f\ufffe\uffff]/u.test(
|
|
341
|
+
String(value ?? "")
|
|
342
|
+
)) {
|
|
343
|
+
throw new RangeError(
|
|
344
|
+
"Excel text contains an unsupported XML control character."
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
return String(value ?? "").replace(
|
|
348
|
+
/[<>&"']/g,
|
|
349
|
+
(character) => ({
|
|
350
|
+
"<": "<",
|
|
351
|
+
">": ">",
|
|
352
|
+
"&": "&",
|
|
353
|
+
'"': """,
|
|
354
|
+
"'": "'"
|
|
355
|
+
})[character]
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
function crc32(bytes) {
|
|
359
|
+
let crc = 4294967295;
|
|
360
|
+
for (const byte of bytes) {
|
|
361
|
+
crc ^= byte;
|
|
362
|
+
for (let bit = 0; bit < 8; bit++)
|
|
363
|
+
crc = crc >>> 1 ^ (crc & 1 ? 3988292384 : 0);
|
|
364
|
+
}
|
|
365
|
+
return (crc ^ 4294967295) >>> 0;
|
|
366
|
+
}
|
|
367
|
+
function columnName(index) {
|
|
368
|
+
let value = index + 1, name = "";
|
|
369
|
+
while (value) {
|
|
370
|
+
value--;
|
|
371
|
+
name = String.fromCharCode(65 + value % 26) + name;
|
|
372
|
+
value = Math.floor(value / 26);
|
|
373
|
+
}
|
|
374
|
+
return name;
|
|
375
|
+
}
|
|
376
|
+
function exportTabularWorkbook(rows, options = {}) {
|
|
377
|
+
if (!rows.length || rows.length > 1e5 || rows.some((row) => row.length > 16384) || rows.reduce((n, row) => n + row.length, 0) > 2e6)
|
|
378
|
+
throw new RangeError(
|
|
379
|
+
"Workbook requires 1\u2013100,000 rows, at most 16,384 columns and 2 million cells."
|
|
380
|
+
);
|
|
381
|
+
const name = options.sheetName ?? "Sheet1";
|
|
382
|
+
if (!name.length || name.length > 31 || /[\[\]:*?/\\]/.test(name) || name.startsWith("'") || name.endsWith("'"))
|
|
383
|
+
throw new RangeError("Invalid Excel sheet name.");
|
|
384
|
+
for (const row of rows)
|
|
385
|
+
for (const value of row)
|
|
386
|
+
if (value != null && !["number", "string", "boolean"].includes(typeof value) || typeof value === "number" && !Number.isFinite(value) || typeof value === "string" && value.length > 32767)
|
|
387
|
+
throw new RangeError("Invalid Excel cell value.");
|
|
388
|
+
const files = {
|
|
389
|
+
"[Content_Types].xml": '<?xml version="1.0" encoding="UTF-8"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/></Types>',
|
|
390
|
+
"_rels/.rels": '<?xml version="1.0"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',
|
|
391
|
+
"xl/workbook.xml": `<?xml version="1.0"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><sheets><sheet name="${xml(options.sheetName ?? "Sheet1")}" sheetId="1" r:id="rId1"/></sheets></workbook>`,
|
|
392
|
+
"xl/_rels/workbook.xml.rels": '<?xml version="1.0"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/></Relationships>',
|
|
393
|
+
"xl/worksheets/sheet1.xml": `<?xml version="1.0" encoding="UTF-8"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><sheetViews><sheetView workbookViewId="0"><pane ySplit="1" topLeftCell="A2" activePane="bottomLeft" state="frozen"/></sheetView></sheetViews><sheetData>${rows.map((row, index) => `<row r="${index + 1}">${row.map((value, column) => `<c r="${columnName(column)}${index + 1}" ${typeof value === "number" ? `t="n"><v>${value}</v>` : typeof value === "boolean" ? `t="b"><v>${value ? 1 : 0}</v>` : `t="inlineStr"><is><t xml:space="preserve">${xml(value)}</t></is>`}</c>`).join("")}</row>`).join("")}</sheetData></worksheet>`
|
|
394
|
+
};
|
|
395
|
+
const encoder = new TextEncoder();
|
|
396
|
+
const chunks = [];
|
|
397
|
+
const directory = [];
|
|
398
|
+
let offset = 0;
|
|
399
|
+
for (const [name2, content] of Object.entries(files)) {
|
|
400
|
+
const filename = encoder.encode(name2);
|
|
401
|
+
const bytes = encoder.encode(content);
|
|
402
|
+
const crc = crc32(bytes);
|
|
403
|
+
const local = new Uint8Array(30 + filename.length);
|
|
404
|
+
const view2 = new DataView(local.buffer);
|
|
405
|
+
view2.setUint32(0, 67324752, true);
|
|
406
|
+
view2.setUint16(4, 20, true);
|
|
407
|
+
view2.setUint16(12, 33, true);
|
|
408
|
+
view2.setUint32(14, crc, true);
|
|
409
|
+
view2.setUint32(18, bytes.length, true);
|
|
410
|
+
view2.setUint32(22, bytes.length, true);
|
|
411
|
+
view2.setUint16(26, filename.length, true);
|
|
412
|
+
local.set(filename, 30);
|
|
413
|
+
chunks.push(local, bytes);
|
|
414
|
+
const central = new Uint8Array(46 + filename.length);
|
|
415
|
+
const entry = new DataView(central.buffer);
|
|
416
|
+
entry.setUint32(0, 33639248, true);
|
|
417
|
+
entry.setUint16(4, 20, true);
|
|
418
|
+
entry.setUint16(6, 20, true);
|
|
419
|
+
entry.setUint16(14, 33, true);
|
|
420
|
+
entry.setUint32(16, crc, true);
|
|
421
|
+
entry.setUint32(20, bytes.length, true);
|
|
422
|
+
entry.setUint32(24, bytes.length, true);
|
|
423
|
+
entry.setUint16(28, filename.length, true);
|
|
424
|
+
entry.setUint32(42, offset, true);
|
|
425
|
+
central.set(filename, 46);
|
|
426
|
+
directory.push(central);
|
|
427
|
+
offset += local.length + bytes.length;
|
|
428
|
+
}
|
|
429
|
+
const directorySize = directory.reduce((sum, value) => sum + value.length, 0);
|
|
430
|
+
const end = new Uint8Array(22);
|
|
431
|
+
const view = new DataView(end.buffer);
|
|
432
|
+
view.setUint32(0, 101010256, true);
|
|
433
|
+
view.setUint16(8, directory.length, true);
|
|
434
|
+
view.setUint16(10, directory.length, true);
|
|
435
|
+
view.setUint32(12, directorySize, true);
|
|
436
|
+
view.setUint32(16, offset, true);
|
|
437
|
+
const output = new Uint8Array(offset + directorySize + end.length);
|
|
438
|
+
let position = 0;
|
|
439
|
+
for (const chunk of [...chunks, ...directory, end]) {
|
|
440
|
+
output.set(chunk, position);
|
|
441
|
+
position += chunk.length;
|
|
442
|
+
}
|
|
443
|
+
return output;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// src/raster-pdf.ts
|
|
447
|
+
function assembleRasterPdf(pages, accessibility) {
|
|
448
|
+
if (!pages.length || pages.length > 500)
|
|
449
|
+
throw new RangeError("PDF reports require 1\u2013500 pages.");
|
|
450
|
+
if (accessibility && (!accessibility.title.trim() || !/^[a-z]{2,8}(?:-[a-z0-9]{1,8})*$/i.test(accessibility.language) || accessibility.pageDescriptions.length !== pages.length || accessibility.pageDescriptions.some((description) => !description.trim() || description.length > 25e4))) throw new RangeError("Tagged PDF reports require a title, language, and a description of up to 250,000 characters for each page.");
|
|
451
|
+
const pdfText = (value) => {
|
|
452
|
+
let hex = "FEFF";
|
|
453
|
+
for (let i = 0; i < value.length; i++) hex += value.charCodeAt(i).toString(16).padStart(4, "0");
|
|
454
|
+
return `<${hex}>`;
|
|
455
|
+
};
|
|
456
|
+
const treeId = 3 + pages.length * 3, parentTreeId = treeId + 1;
|
|
457
|
+
const documentId = treeId + 2, infoId = treeId + 3, firstFigureId = treeId + 4;
|
|
458
|
+
const encode = (text) => new TextEncoder().encode(text), chunks = [], offsets = [0];
|
|
459
|
+
let size = 0;
|
|
460
|
+
const append = (bytes) => {
|
|
461
|
+
chunks.push(bytes);
|
|
462
|
+
size += bytes.length;
|
|
463
|
+
};
|
|
464
|
+
const object = (id, content, binary) => {
|
|
465
|
+
offsets[id] = size;
|
|
466
|
+
append(encode(`${id} 0 obj
|
|
467
|
+
${content}`));
|
|
468
|
+
if (binary) {
|
|
469
|
+
append(encode("\nstream\n"));
|
|
470
|
+
append(binary);
|
|
471
|
+
append(encode("\nendstream"));
|
|
472
|
+
}
|
|
473
|
+
append(encode("\nendobj\n"));
|
|
474
|
+
};
|
|
475
|
+
append(encode("%PDF-1.7\n%QuickBuilder\n"));
|
|
476
|
+
const tags = accessibility ? ` /StructTreeRoot ${treeId} 0 R /MarkInfo << /Marked true >> /Lang ${pdfText(accessibility.language)} /ViewerPreferences << /DisplayDocTitle true >>` : "";
|
|
477
|
+
object(1, `<< /Type /Catalog /Pages 2 0 R${tags} >>`);
|
|
478
|
+
object(
|
|
479
|
+
2,
|
|
480
|
+
`<< /Type /Pages /Count ${pages.length} /Kids [${pages.map((_, i) => `${3 + i * 3} 0 R`).join(" ")}] >>`
|
|
481
|
+
);
|
|
482
|
+
pages.forEach((page, i) => {
|
|
483
|
+
if (!Number.isInteger(page.width) || !Number.isInteger(page.height) || page.width <= 0 || page.height <= 0 || page.jpeg[0] !== 255 || page.jpeg[1] !== 216)
|
|
484
|
+
throw new RangeError("Invalid JPEG report page.");
|
|
485
|
+
const id = 3 + i * 3, pageWidth = 842, pageHeight = 595, margin = 24, scale = Math.min(
|
|
486
|
+
(pageWidth - 2 * margin) / page.width,
|
|
487
|
+
(pageHeight - 2 * margin) / page.height
|
|
488
|
+
), width = page.width * scale, height = page.height * scale;
|
|
489
|
+
object(
|
|
490
|
+
id,
|
|
491
|
+
`<< /Type /Page /Parent 2 0 R /MediaBox [0 0 ${pageWidth} ${pageHeight}] /Resources << /XObject << /Report ${id + 1} 0 R >> >> /Contents ${id + 2} 0 R${accessibility ? ` /StructParents ${i} /Tabs /S` : ""} >>`
|
|
492
|
+
);
|
|
493
|
+
object(
|
|
494
|
+
id + 1,
|
|
495
|
+
`<< /Type /XObject /Subtype /Image /Width ${page.width} /Height ${page.height} /ColorSpace /DeviceRGB /BitsPerComponent 8 /Filter /DCTDecode /Length ${page.jpeg.length} >>`,
|
|
496
|
+
page.jpeg
|
|
497
|
+
);
|
|
498
|
+
const paint = `q ${width.toFixed(4)} 0 0 ${height.toFixed(4)} ${margin} ${(pageHeight - margin - height).toFixed(4)} cm /Report Do Q`;
|
|
499
|
+
const content = encode(accessibility ? `/Figure << /MCID 0 >> BDC
|
|
500
|
+
${paint}
|
|
501
|
+
EMC` : paint);
|
|
502
|
+
object(id + 2, `<< /Length ${content.length} >>`, content);
|
|
503
|
+
});
|
|
504
|
+
if (accessibility) {
|
|
505
|
+
const figures = pages.map((_, i) => `${firstFigureId + i} 0 R`);
|
|
506
|
+
object(treeId, `<< /Type /StructTreeRoot /K [${documentId} 0 R] /ParentTree ${parentTreeId} 0 R /ParentTreeNextKey ${pages.length} >>`);
|
|
507
|
+
object(parentTreeId, `<< /Nums [${figures.map((figure, i) => `${i} [${figure}]`).join(" ")}] >>`);
|
|
508
|
+
object(documentId, `<< /Type /StructElem /S /Document /P ${treeId} 0 R /K [${figures.join(" ")}] >>`);
|
|
509
|
+
object(infoId, `<< /Title ${pdfText(accessibility.title)} >>`);
|
|
510
|
+
accessibility.pageDescriptions.forEach((description, i) => object(firstFigureId + i, `<< /Type /StructElem /S /Figure /P ${documentId} 0 R /Pg ${3 + i * 3} 0 R /K 0 /Alt ${pdfText(description)} >>`));
|
|
511
|
+
}
|
|
512
|
+
const xref = size;
|
|
513
|
+
append(
|
|
514
|
+
encode(
|
|
515
|
+
`xref
|
|
516
|
+
0 ${offsets.length}
|
|
517
|
+
0000000000 65535 f
|
|
518
|
+
${offsets.slice(1).map((offset) => `${String(offset).padStart(10, "0")} 00000 n
|
|
519
|
+
`).join(
|
|
520
|
+
""
|
|
521
|
+
)}trailer
|
|
522
|
+
<< /Size ${offsets.length} /Root 1 0 R${accessibility ? ` /Info ${infoId} 0 R` : ""} >>
|
|
523
|
+
startxref
|
|
524
|
+
${xref}
|
|
525
|
+
%%EOF
|
|
526
|
+
`
|
|
527
|
+
)
|
|
528
|
+
);
|
|
529
|
+
const output = new Uint8Array(size);
|
|
530
|
+
let cursor = 0;
|
|
531
|
+
for (const chunk of chunks) {
|
|
532
|
+
output.set(chunk, cursor);
|
|
533
|
+
cursor += chunk.length;
|
|
534
|
+
}
|
|
535
|
+
return output;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
// src/tabular-report.ts
|
|
539
|
+
function exportTabularCsv(rows) {
|
|
540
|
+
return rows.map((row) => row.map((value) => serializeCsvCell(value, true)).join(",")).join("\r\n");
|
|
541
|
+
}
|
|
542
|
+
function escapeXml(value) {
|
|
543
|
+
return value.replace(/[<>&"']/g, (char) => ({ "<": "<", ">": ">", "&": "&", '"': """, "'": "'" })[char]);
|
|
544
|
+
}
|
|
545
|
+
function exportTabularSvgPages(rows, options) {
|
|
546
|
+
const [headers, ...body] = rows;
|
|
547
|
+
const rowsPerPage = options.rowsPerPage ?? 24;
|
|
548
|
+
if (!headers?.length || headers.length > 24 || !Number.isInteger(rowsPerPage) || rowsPerPage < 1 || rowsPerPage > 100 || body.length > rowsPerPage * 100 || body.some((row) => row.length !== headers.length)) throw new RangeError("Invalid tabular report dimensions.");
|
|
549
|
+
const width = Math.max(960, headers.length * 144);
|
|
550
|
+
const columnWidth = (width - 48) / headers.length;
|
|
551
|
+
const pageCount = Math.max(1, Math.ceil(body.length / rowsPerPage));
|
|
552
|
+
return Array.from({ length: pageCount }, (_, page) => {
|
|
553
|
+
const pageRows = [headers, ...body.slice(page * rowsPerPage, (page + 1) * rowsPerPage)];
|
|
554
|
+
const height = 92 + pageRows.length * 33;
|
|
555
|
+
const grid = pageRows.map((row, index) => {
|
|
556
|
+
const y = 68 + index * 33;
|
|
557
|
+
return `<rect x="24" y="${y}" width="${width - 48}" height="33" fill="${index === 0 ? "#eef1f6" : index % 2 ? "#fff" : "#fafbfc"}" stroke="#dfe3eb"/>${row.map((value, column) => {
|
|
558
|
+
const x = 24 + column * columnWidth;
|
|
559
|
+
return `<svg x="${x}" y="${y}" width="${columnWidth}" height="33" overflow="hidden"><text x="8" y="21" font-size="13" font-weight="${index === 0 ? 600 : 400}" fill="#20252e"><title>${escapeXml(String(value ?? ""))}</title>${escapeXml(String(value ?? "").replace(/\s+/g, " ").slice(0, 160))}</text></svg>`;
|
|
560
|
+
}).join("")}`;
|
|
561
|
+
}).join("");
|
|
562
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}" viewBox="0 0 ${width} ${height}" font-family="system-ui, sans-serif"><rect width="100%" height="100%" fill="#fff"/><text x="24" y="42" font-size="22" font-weight="600" fill="#20252e">${escapeXml(options.title.slice(0, 200))}</text>${grid}</svg>`;
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
// src/core.ts
|
|
567
|
+
var dataGridPackageManifest = {
|
|
568
|
+
packageName: "@quickbuilder.io/data-grid",
|
|
569
|
+
displayName: "Quick Builder Data Grid",
|
|
570
|
+
family: "data-grid",
|
|
571
|
+
tier: "community",
|
|
572
|
+
designSystemDependency: "@quickbuilder.io/design-system",
|
|
573
|
+
status: "implemented"
|
|
574
|
+
};
|
|
575
|
+
var packageManifest = dataGridPackageManifest;
|
|
576
|
+
|
|
577
|
+
exports.assembleRasterPdf = assembleRasterPdf;
|
|
578
|
+
exports.compareDataGridValues = compareDataGridValues;
|
|
579
|
+
exports.dataGridCapabilityFeatureIds = dataGridCapabilityFeatureIds;
|
|
580
|
+
exports.dataGridCapabilityFeatures = dataGridCapabilityFeatures;
|
|
581
|
+
exports.dataGridFilteredRowsSelector = dataGridFilteredRowsSelector;
|
|
582
|
+
exports.dataGridFrameworkAdapterSupport = dataGridFrameworkAdapterSupport;
|
|
583
|
+
exports.dataGridPackageManifest = dataGridPackageManifest;
|
|
584
|
+
exports.dataGridSelectedRowsSelector = dataGridSelectedRowsSelector;
|
|
585
|
+
exports.dataGridVisibleColumnsSelector = dataGridVisibleColumnsSelector;
|
|
586
|
+
exports.dataGridVisibleRowsSelector = dataGridVisibleRowsSelector;
|
|
587
|
+
exports.defaultDataGridLocaleText = defaultDataGridLocaleText;
|
|
588
|
+
exports.exportTabularCsv = exportTabularCsv;
|
|
589
|
+
exports.exportTabularSvgPages = exportTabularSvgPages;
|
|
590
|
+
exports.exportTabularWorkbook = exportTabularWorkbook;
|
|
591
|
+
exports.filterDataGridRows = filterDataGridRows;
|
|
592
|
+
exports.formatDataGridCellValue = formatDataGridCellValue;
|
|
593
|
+
exports.frameworkAdapterSupport = frameworkAdapterSupport;
|
|
594
|
+
exports.getDataGridCellValue = getDataGridCellValue;
|
|
595
|
+
exports.getDataGridColumnLabel = getDataGridColumnLabel;
|
|
596
|
+
exports.isDataGridFilterActive = isDataGridFilterActive;
|
|
597
|
+
exports.normalizeDataGridSortModel = normalizeDataGridSortModel;
|
|
598
|
+
exports.packageManifest = packageManifest;
|
|
599
|
+
exports.renderDataGridCell = renderDataGridCell;
|
|
600
|
+
exports.resolveDataGridLocaleText = resolveDataGridLocaleText;
|
|
601
|
+
exports.resolveDataGridRowId = resolveDataGridRowId;
|
|
602
|
+
exports.serializeDataGridCsv = serializeDataGridCsv;
|
|
603
|
+
exports.sortDataGridRows = sortDataGridRows;
|
|
604
|
+
//# sourceMappingURL=index.js.map
|
|
605
|
+
//# sourceMappingURL=index.js.map
|