@localstack/appinspector-ui 1.0.40 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3060 -488
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3099 -513
- package/dist/index.js.map +1 -1
- package/package.json +2 -3
package/dist/index.cjs
CHANGED
|
@@ -37,7 +37,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
37
37
|
|
|
38
38
|
// src/pages/spans-list-page.tsx
|
|
39
39
|
var import_material20 = require("@mui/material");
|
|
40
|
-
var
|
|
40
|
+
var import_react24 = require("react");
|
|
41
41
|
|
|
42
42
|
// src/api/use-api.tsx
|
|
43
43
|
var import_react = require("react");
|
|
@@ -51,17 +51,2701 @@ var useAppInspectorApi = () => {
|
|
|
51
51
|
if (!api) {
|
|
52
52
|
throw new Error("useAppInspectorApi must be used within AppInspectorApiProvider");
|
|
53
53
|
}
|
|
54
|
-
return api;
|
|
54
|
+
return api;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// src/components/spans-list/spans-list.tsx
|
|
58
|
+
var import_material5 = require("@mui/material");
|
|
59
|
+
|
|
60
|
+
// src/components/spans-list/spans-data-grid.tsx
|
|
61
|
+
var import_icons_material = require("@mui/icons-material");
|
|
62
|
+
var import_material4 = require("@mui/material");
|
|
63
|
+
|
|
64
|
+
// node_modules/@tanstack/react-table/build/lib/index.mjs
|
|
65
|
+
var React = __toESM(require("react"), 1);
|
|
66
|
+
|
|
67
|
+
// node_modules/@tanstack/table-core/build/lib/index.mjs
|
|
68
|
+
function createColumnHelper() {
|
|
69
|
+
return {
|
|
70
|
+
accessor: (accessor, column) => {
|
|
71
|
+
return typeof accessor === "function" ? {
|
|
72
|
+
...column,
|
|
73
|
+
accessorFn: accessor
|
|
74
|
+
} : {
|
|
75
|
+
...column,
|
|
76
|
+
accessorKey: accessor
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
display: (column) => column,
|
|
80
|
+
group: (column) => column
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function functionalUpdate(updater, input) {
|
|
84
|
+
return typeof updater === "function" ? updater(input) : updater;
|
|
85
|
+
}
|
|
86
|
+
function makeStateUpdater(key, instance) {
|
|
87
|
+
return (updater) => {
|
|
88
|
+
instance.setState((old) => {
|
|
89
|
+
return {
|
|
90
|
+
...old,
|
|
91
|
+
[key]: functionalUpdate(updater, old[key])
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function isFunction(d) {
|
|
97
|
+
return d instanceof Function;
|
|
98
|
+
}
|
|
99
|
+
function isNumberArray(d) {
|
|
100
|
+
return Array.isArray(d) && d.every((val) => typeof val === "number");
|
|
101
|
+
}
|
|
102
|
+
function flattenBy(arr, getChildren) {
|
|
103
|
+
const flat = [];
|
|
104
|
+
const recurse = (subArr) => {
|
|
105
|
+
subArr.forEach((item) => {
|
|
106
|
+
flat.push(item);
|
|
107
|
+
const children = getChildren(item);
|
|
108
|
+
if (children != null && children.length) {
|
|
109
|
+
recurse(children);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
recurse(arr);
|
|
114
|
+
return flat;
|
|
115
|
+
}
|
|
116
|
+
function memo(getDeps, fn, opts) {
|
|
117
|
+
let deps = [];
|
|
118
|
+
let result;
|
|
119
|
+
return (depArgs) => {
|
|
120
|
+
let depTime;
|
|
121
|
+
if (opts.key && opts.debug) depTime = Date.now();
|
|
122
|
+
const newDeps = getDeps(depArgs);
|
|
123
|
+
const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep);
|
|
124
|
+
if (!depsChanged) {
|
|
125
|
+
return result;
|
|
126
|
+
}
|
|
127
|
+
deps = newDeps;
|
|
128
|
+
let resultTime;
|
|
129
|
+
if (opts.key && opts.debug) resultTime = Date.now();
|
|
130
|
+
result = fn(...newDeps);
|
|
131
|
+
opts == null || opts.onChange == null || opts.onChange(result);
|
|
132
|
+
if (opts.key && opts.debug) {
|
|
133
|
+
if (opts != null && opts.debug()) {
|
|
134
|
+
const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;
|
|
135
|
+
const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;
|
|
136
|
+
const resultFpsPercentage = resultEndTime / 16;
|
|
137
|
+
const pad = (str, num) => {
|
|
138
|
+
str = String(str);
|
|
139
|
+
while (str.length < num) {
|
|
140
|
+
str = " " + str;
|
|
141
|
+
}
|
|
142
|
+
return str;
|
|
143
|
+
};
|
|
144
|
+
console.info(`%c\u23F1 ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`, `
|
|
145
|
+
font-size: .6rem;
|
|
146
|
+
font-weight: bold;
|
|
147
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * resultFpsPercentage, 120))}deg 100% 31%);`, opts == null ? void 0 : opts.key);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return result;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function getMemoOptions(tableOptions, debugLevel, key, onChange) {
|
|
154
|
+
return {
|
|
155
|
+
debug: () => {
|
|
156
|
+
var _tableOptions$debugAl;
|
|
157
|
+
return (_tableOptions$debugAl = tableOptions == null ? void 0 : tableOptions.debugAll) != null ? _tableOptions$debugAl : tableOptions[debugLevel];
|
|
158
|
+
},
|
|
159
|
+
key: process.env.NODE_ENV === "development" && key,
|
|
160
|
+
onChange
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function createCell(table, row, column, columnId) {
|
|
164
|
+
const getRenderValue = () => {
|
|
165
|
+
var _cell$getValue;
|
|
166
|
+
return (_cell$getValue = cell.getValue()) != null ? _cell$getValue : table.options.renderFallbackValue;
|
|
167
|
+
};
|
|
168
|
+
const cell = {
|
|
169
|
+
id: `${row.id}_${column.id}`,
|
|
170
|
+
row,
|
|
171
|
+
column,
|
|
172
|
+
getValue: () => row.getValue(columnId),
|
|
173
|
+
renderValue: getRenderValue,
|
|
174
|
+
getContext: memo(() => [table, column, row, cell], (table2, column2, row2, cell2) => ({
|
|
175
|
+
table: table2,
|
|
176
|
+
column: column2,
|
|
177
|
+
row: row2,
|
|
178
|
+
cell: cell2,
|
|
179
|
+
getValue: cell2.getValue,
|
|
180
|
+
renderValue: cell2.renderValue
|
|
181
|
+
}), getMemoOptions(table.options, "debugCells", "cell.getContext"))
|
|
182
|
+
};
|
|
183
|
+
table._features.forEach((feature) => {
|
|
184
|
+
feature.createCell == null || feature.createCell(cell, column, row, table);
|
|
185
|
+
}, {});
|
|
186
|
+
return cell;
|
|
187
|
+
}
|
|
188
|
+
function createColumn(table, columnDef, depth, parent) {
|
|
189
|
+
var _ref, _resolvedColumnDef$id;
|
|
190
|
+
const defaultColumn = table._getDefaultColumnDef();
|
|
191
|
+
const resolvedColumnDef = {
|
|
192
|
+
...defaultColumn,
|
|
193
|
+
...columnDef
|
|
194
|
+
};
|
|
195
|
+
const accessorKey = resolvedColumnDef.accessorKey;
|
|
196
|
+
let id = (_ref = (_resolvedColumnDef$id = resolvedColumnDef.id) != null ? _resolvedColumnDef$id : accessorKey ? typeof String.prototype.replaceAll === "function" ? accessorKey.replaceAll(".", "_") : accessorKey.replace(/\./g, "_") : void 0) != null ? _ref : typeof resolvedColumnDef.header === "string" ? resolvedColumnDef.header : void 0;
|
|
197
|
+
let accessorFn;
|
|
198
|
+
if (resolvedColumnDef.accessorFn) {
|
|
199
|
+
accessorFn = resolvedColumnDef.accessorFn;
|
|
200
|
+
} else if (accessorKey) {
|
|
201
|
+
if (accessorKey.includes(".")) {
|
|
202
|
+
accessorFn = (originalRow) => {
|
|
203
|
+
let result = originalRow;
|
|
204
|
+
for (const key of accessorKey.split(".")) {
|
|
205
|
+
var _result;
|
|
206
|
+
result = (_result = result) == null ? void 0 : _result[key];
|
|
207
|
+
if (process.env.NODE_ENV !== "production" && result === void 0) {
|
|
208
|
+
console.warn(`"${key}" in deeply nested key "${accessorKey}" returned undefined.`);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return result;
|
|
212
|
+
};
|
|
213
|
+
} else {
|
|
214
|
+
accessorFn = (originalRow) => originalRow[resolvedColumnDef.accessorKey];
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
if (!id) {
|
|
218
|
+
if (process.env.NODE_ENV !== "production") {
|
|
219
|
+
throw new Error(resolvedColumnDef.accessorFn ? `Columns require an id when using an accessorFn` : `Columns require an id when using a non-string header`);
|
|
220
|
+
}
|
|
221
|
+
throw new Error();
|
|
222
|
+
}
|
|
223
|
+
let column = {
|
|
224
|
+
id: `${String(id)}`,
|
|
225
|
+
accessorFn,
|
|
226
|
+
parent,
|
|
227
|
+
depth,
|
|
228
|
+
columnDef: resolvedColumnDef,
|
|
229
|
+
columns: [],
|
|
230
|
+
getFlatColumns: memo(() => [true], () => {
|
|
231
|
+
var _column$columns;
|
|
232
|
+
return [column, ...(_column$columns = column.columns) == null ? void 0 : _column$columns.flatMap((d) => d.getFlatColumns())];
|
|
233
|
+
}, getMemoOptions(table.options, "debugColumns", "column.getFlatColumns")),
|
|
234
|
+
getLeafColumns: memo(() => [table._getOrderColumnsFn()], (orderColumns2) => {
|
|
235
|
+
var _column$columns2;
|
|
236
|
+
if ((_column$columns2 = column.columns) != null && _column$columns2.length) {
|
|
237
|
+
let leafColumns = column.columns.flatMap((column2) => column2.getLeafColumns());
|
|
238
|
+
return orderColumns2(leafColumns);
|
|
239
|
+
}
|
|
240
|
+
return [column];
|
|
241
|
+
}, getMemoOptions(table.options, "debugColumns", "column.getLeafColumns"))
|
|
242
|
+
};
|
|
243
|
+
for (const feature of table._features) {
|
|
244
|
+
feature.createColumn == null || feature.createColumn(column, table);
|
|
245
|
+
}
|
|
246
|
+
return column;
|
|
247
|
+
}
|
|
248
|
+
var debug = "debugHeaders";
|
|
249
|
+
function createHeader(table, column, options) {
|
|
250
|
+
var _options$id;
|
|
251
|
+
const id = (_options$id = options.id) != null ? _options$id : column.id;
|
|
252
|
+
let header = {
|
|
253
|
+
id,
|
|
254
|
+
column,
|
|
255
|
+
index: options.index,
|
|
256
|
+
isPlaceholder: !!options.isPlaceholder,
|
|
257
|
+
placeholderId: options.placeholderId,
|
|
258
|
+
depth: options.depth,
|
|
259
|
+
subHeaders: [],
|
|
260
|
+
colSpan: 0,
|
|
261
|
+
rowSpan: 0,
|
|
262
|
+
headerGroup: null,
|
|
263
|
+
getLeafHeaders: () => {
|
|
264
|
+
const leafHeaders = [];
|
|
265
|
+
const recurseHeader = (h) => {
|
|
266
|
+
if (h.subHeaders && h.subHeaders.length) {
|
|
267
|
+
h.subHeaders.map(recurseHeader);
|
|
268
|
+
}
|
|
269
|
+
leafHeaders.push(h);
|
|
270
|
+
};
|
|
271
|
+
recurseHeader(header);
|
|
272
|
+
return leafHeaders;
|
|
273
|
+
},
|
|
274
|
+
getContext: () => ({
|
|
275
|
+
table,
|
|
276
|
+
header,
|
|
277
|
+
column
|
|
278
|
+
})
|
|
279
|
+
};
|
|
280
|
+
table._features.forEach((feature) => {
|
|
281
|
+
feature.createHeader == null || feature.createHeader(header, table);
|
|
282
|
+
});
|
|
283
|
+
return header;
|
|
284
|
+
}
|
|
285
|
+
var Headers2 = {
|
|
286
|
+
createTable: (table) => {
|
|
287
|
+
table.getHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, leafColumns, left, right) => {
|
|
288
|
+
var _left$map$filter, _right$map$filter;
|
|
289
|
+
const leftColumns = (_left$map$filter = left == null ? void 0 : left.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter : [];
|
|
290
|
+
const rightColumns = (_right$map$filter = right == null ? void 0 : right.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter : [];
|
|
291
|
+
const centerColumns = leafColumns.filter((column) => !(left != null && left.includes(column.id)) && !(right != null && right.includes(column.id)));
|
|
292
|
+
const headerGroups = buildHeaderGroups(allColumns, [...leftColumns, ...centerColumns, ...rightColumns], table);
|
|
293
|
+
return headerGroups;
|
|
294
|
+
}, getMemoOptions(table.options, debug, "getHeaderGroups"));
|
|
295
|
+
table.getCenterHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, leafColumns, left, right) => {
|
|
296
|
+
leafColumns = leafColumns.filter((column) => !(left != null && left.includes(column.id)) && !(right != null && right.includes(column.id)));
|
|
297
|
+
return buildHeaderGroups(allColumns, leafColumns, table, "center");
|
|
298
|
+
}, getMemoOptions(table.options, debug, "getCenterHeaderGroups"));
|
|
299
|
+
table.getLeftHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left], (allColumns, leafColumns, left) => {
|
|
300
|
+
var _left$map$filter2;
|
|
301
|
+
const orderedLeafColumns = (_left$map$filter2 = left == null ? void 0 : left.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter2 : [];
|
|
302
|
+
return buildHeaderGroups(allColumns, orderedLeafColumns, table, "left");
|
|
303
|
+
}, getMemoOptions(table.options, debug, "getLeftHeaderGroups"));
|
|
304
|
+
table.getRightHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.right], (allColumns, leafColumns, right) => {
|
|
305
|
+
var _right$map$filter2;
|
|
306
|
+
const orderedLeafColumns = (_right$map$filter2 = right == null ? void 0 : right.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter2 : [];
|
|
307
|
+
return buildHeaderGroups(allColumns, orderedLeafColumns, table, "right");
|
|
308
|
+
}, getMemoOptions(table.options, debug, "getRightHeaderGroups"));
|
|
309
|
+
table.getFooterGroups = memo(() => [table.getHeaderGroups()], (headerGroups) => {
|
|
310
|
+
return [...headerGroups].reverse();
|
|
311
|
+
}, getMemoOptions(table.options, debug, "getFooterGroups"));
|
|
312
|
+
table.getLeftFooterGroups = memo(() => [table.getLeftHeaderGroups()], (headerGroups) => {
|
|
313
|
+
return [...headerGroups].reverse();
|
|
314
|
+
}, getMemoOptions(table.options, debug, "getLeftFooterGroups"));
|
|
315
|
+
table.getCenterFooterGroups = memo(() => [table.getCenterHeaderGroups()], (headerGroups) => {
|
|
316
|
+
return [...headerGroups].reverse();
|
|
317
|
+
}, getMemoOptions(table.options, debug, "getCenterFooterGroups"));
|
|
318
|
+
table.getRightFooterGroups = memo(() => [table.getRightHeaderGroups()], (headerGroups) => {
|
|
319
|
+
return [...headerGroups].reverse();
|
|
320
|
+
}, getMemoOptions(table.options, debug, "getRightFooterGroups"));
|
|
321
|
+
table.getFlatHeaders = memo(() => [table.getHeaderGroups()], (headerGroups) => {
|
|
322
|
+
return headerGroups.map((headerGroup) => {
|
|
323
|
+
return headerGroup.headers;
|
|
324
|
+
}).flat();
|
|
325
|
+
}, getMemoOptions(table.options, debug, "getFlatHeaders"));
|
|
326
|
+
table.getLeftFlatHeaders = memo(() => [table.getLeftHeaderGroups()], (left) => {
|
|
327
|
+
return left.map((headerGroup) => {
|
|
328
|
+
return headerGroup.headers;
|
|
329
|
+
}).flat();
|
|
330
|
+
}, getMemoOptions(table.options, debug, "getLeftFlatHeaders"));
|
|
331
|
+
table.getCenterFlatHeaders = memo(() => [table.getCenterHeaderGroups()], (left) => {
|
|
332
|
+
return left.map((headerGroup) => {
|
|
333
|
+
return headerGroup.headers;
|
|
334
|
+
}).flat();
|
|
335
|
+
}, getMemoOptions(table.options, debug, "getCenterFlatHeaders"));
|
|
336
|
+
table.getRightFlatHeaders = memo(() => [table.getRightHeaderGroups()], (left) => {
|
|
337
|
+
return left.map((headerGroup) => {
|
|
338
|
+
return headerGroup.headers;
|
|
339
|
+
}).flat();
|
|
340
|
+
}, getMemoOptions(table.options, debug, "getRightFlatHeaders"));
|
|
341
|
+
table.getCenterLeafHeaders = memo(() => [table.getCenterFlatHeaders()], (flatHeaders) => {
|
|
342
|
+
return flatHeaders.filter((header) => {
|
|
343
|
+
var _header$subHeaders;
|
|
344
|
+
return !((_header$subHeaders = header.subHeaders) != null && _header$subHeaders.length);
|
|
345
|
+
});
|
|
346
|
+
}, getMemoOptions(table.options, debug, "getCenterLeafHeaders"));
|
|
347
|
+
table.getLeftLeafHeaders = memo(() => [table.getLeftFlatHeaders()], (flatHeaders) => {
|
|
348
|
+
return flatHeaders.filter((header) => {
|
|
349
|
+
var _header$subHeaders2;
|
|
350
|
+
return !((_header$subHeaders2 = header.subHeaders) != null && _header$subHeaders2.length);
|
|
351
|
+
});
|
|
352
|
+
}, getMemoOptions(table.options, debug, "getLeftLeafHeaders"));
|
|
353
|
+
table.getRightLeafHeaders = memo(() => [table.getRightFlatHeaders()], (flatHeaders) => {
|
|
354
|
+
return flatHeaders.filter((header) => {
|
|
355
|
+
var _header$subHeaders3;
|
|
356
|
+
return !((_header$subHeaders3 = header.subHeaders) != null && _header$subHeaders3.length);
|
|
357
|
+
});
|
|
358
|
+
}, getMemoOptions(table.options, debug, "getRightLeafHeaders"));
|
|
359
|
+
table.getLeafHeaders = memo(() => [table.getLeftHeaderGroups(), table.getCenterHeaderGroups(), table.getRightHeaderGroups()], (left, center, right) => {
|
|
360
|
+
var _left$0$headers, _left$, _center$0$headers, _center$, _right$0$headers, _right$;
|
|
361
|
+
return [...(_left$0$headers = (_left$ = left[0]) == null ? void 0 : _left$.headers) != null ? _left$0$headers : [], ...(_center$0$headers = (_center$ = center[0]) == null ? void 0 : _center$.headers) != null ? _center$0$headers : [], ...(_right$0$headers = (_right$ = right[0]) == null ? void 0 : _right$.headers) != null ? _right$0$headers : []].map((header) => {
|
|
362
|
+
return header.getLeafHeaders();
|
|
363
|
+
}).flat();
|
|
364
|
+
}, getMemoOptions(table.options, debug, "getLeafHeaders"));
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
function buildHeaderGroups(allColumns, columnsToGroup, table, headerFamily) {
|
|
368
|
+
var _headerGroups$0$heade, _headerGroups$;
|
|
369
|
+
let maxDepth = 0;
|
|
370
|
+
const findMaxDepth = function(columns2, depth) {
|
|
371
|
+
if (depth === void 0) {
|
|
372
|
+
depth = 1;
|
|
373
|
+
}
|
|
374
|
+
maxDepth = Math.max(maxDepth, depth);
|
|
375
|
+
columns2.filter((column) => column.getIsVisible()).forEach((column) => {
|
|
376
|
+
var _column$columns;
|
|
377
|
+
if ((_column$columns = column.columns) != null && _column$columns.length) {
|
|
378
|
+
findMaxDepth(column.columns, depth + 1);
|
|
379
|
+
}
|
|
380
|
+
}, 0);
|
|
381
|
+
};
|
|
382
|
+
findMaxDepth(allColumns);
|
|
383
|
+
let headerGroups = [];
|
|
384
|
+
const createHeaderGroup = (headersToGroup, depth) => {
|
|
385
|
+
const headerGroup = {
|
|
386
|
+
depth,
|
|
387
|
+
id: [headerFamily, `${depth}`].filter(Boolean).join("_"),
|
|
388
|
+
headers: []
|
|
389
|
+
};
|
|
390
|
+
const pendingParentHeaders = [];
|
|
391
|
+
headersToGroup.forEach((headerToGroup) => {
|
|
392
|
+
const latestPendingParentHeader = [...pendingParentHeaders].reverse()[0];
|
|
393
|
+
const isLeafHeader = headerToGroup.column.depth === headerGroup.depth;
|
|
394
|
+
let column;
|
|
395
|
+
let isPlaceholder = false;
|
|
396
|
+
if (isLeafHeader && headerToGroup.column.parent) {
|
|
397
|
+
column = headerToGroup.column.parent;
|
|
398
|
+
} else {
|
|
399
|
+
column = headerToGroup.column;
|
|
400
|
+
isPlaceholder = true;
|
|
401
|
+
}
|
|
402
|
+
if (latestPendingParentHeader && (latestPendingParentHeader == null ? void 0 : latestPendingParentHeader.column) === column) {
|
|
403
|
+
latestPendingParentHeader.subHeaders.push(headerToGroup);
|
|
404
|
+
} else {
|
|
405
|
+
const header = createHeader(table, column, {
|
|
406
|
+
id: [headerFamily, depth, column.id, headerToGroup == null ? void 0 : headerToGroup.id].filter(Boolean).join("_"),
|
|
407
|
+
isPlaceholder,
|
|
408
|
+
placeholderId: isPlaceholder ? `${pendingParentHeaders.filter((d) => d.column === column).length}` : void 0,
|
|
409
|
+
depth,
|
|
410
|
+
index: pendingParentHeaders.length
|
|
411
|
+
});
|
|
412
|
+
header.subHeaders.push(headerToGroup);
|
|
413
|
+
pendingParentHeaders.push(header);
|
|
414
|
+
}
|
|
415
|
+
headerGroup.headers.push(headerToGroup);
|
|
416
|
+
headerToGroup.headerGroup = headerGroup;
|
|
417
|
+
});
|
|
418
|
+
headerGroups.push(headerGroup);
|
|
419
|
+
if (depth > 0) {
|
|
420
|
+
createHeaderGroup(pendingParentHeaders, depth - 1);
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
const bottomHeaders = columnsToGroup.map((column, index) => createHeader(table, column, {
|
|
424
|
+
depth: maxDepth,
|
|
425
|
+
index
|
|
426
|
+
}));
|
|
427
|
+
createHeaderGroup(bottomHeaders, maxDepth - 1);
|
|
428
|
+
headerGroups.reverse();
|
|
429
|
+
const recurseHeadersForSpans = (headers) => {
|
|
430
|
+
const filteredHeaders = headers.filter((header) => header.column.getIsVisible());
|
|
431
|
+
return filteredHeaders.map((header) => {
|
|
432
|
+
let colSpan = 0;
|
|
433
|
+
let rowSpan = 0;
|
|
434
|
+
let childRowSpans = [0];
|
|
435
|
+
if (header.subHeaders && header.subHeaders.length) {
|
|
436
|
+
childRowSpans = [];
|
|
437
|
+
recurseHeadersForSpans(header.subHeaders).forEach((_ref) => {
|
|
438
|
+
let {
|
|
439
|
+
colSpan: childColSpan,
|
|
440
|
+
rowSpan: childRowSpan
|
|
441
|
+
} = _ref;
|
|
442
|
+
colSpan += childColSpan;
|
|
443
|
+
childRowSpans.push(childRowSpan);
|
|
444
|
+
});
|
|
445
|
+
} else {
|
|
446
|
+
colSpan = 1;
|
|
447
|
+
}
|
|
448
|
+
const minChildRowSpan = Math.min(...childRowSpans);
|
|
449
|
+
rowSpan = rowSpan + minChildRowSpan;
|
|
450
|
+
header.colSpan = colSpan;
|
|
451
|
+
header.rowSpan = rowSpan;
|
|
452
|
+
return {
|
|
453
|
+
colSpan,
|
|
454
|
+
rowSpan
|
|
455
|
+
};
|
|
456
|
+
});
|
|
457
|
+
};
|
|
458
|
+
recurseHeadersForSpans((_headerGroups$0$heade = (_headerGroups$ = headerGroups[0]) == null ? void 0 : _headerGroups$.headers) != null ? _headerGroups$0$heade : []);
|
|
459
|
+
return headerGroups;
|
|
460
|
+
}
|
|
461
|
+
var createRow = (table, id, original, rowIndex, depth, subRows, parentId) => {
|
|
462
|
+
let row = {
|
|
463
|
+
id,
|
|
464
|
+
index: rowIndex,
|
|
465
|
+
original,
|
|
466
|
+
depth,
|
|
467
|
+
parentId,
|
|
468
|
+
_valuesCache: {},
|
|
469
|
+
_uniqueValuesCache: {},
|
|
470
|
+
getValue: (columnId) => {
|
|
471
|
+
if (row._valuesCache.hasOwnProperty(columnId)) {
|
|
472
|
+
return row._valuesCache[columnId];
|
|
473
|
+
}
|
|
474
|
+
const column = table.getColumn(columnId);
|
|
475
|
+
if (!(column != null && column.accessorFn)) {
|
|
476
|
+
return void 0;
|
|
477
|
+
}
|
|
478
|
+
row._valuesCache[columnId] = column.accessorFn(row.original, rowIndex);
|
|
479
|
+
return row._valuesCache[columnId];
|
|
480
|
+
},
|
|
481
|
+
getUniqueValues: (columnId) => {
|
|
482
|
+
if (row._uniqueValuesCache.hasOwnProperty(columnId)) {
|
|
483
|
+
return row._uniqueValuesCache[columnId];
|
|
484
|
+
}
|
|
485
|
+
const column = table.getColumn(columnId);
|
|
486
|
+
if (!(column != null && column.accessorFn)) {
|
|
487
|
+
return void 0;
|
|
488
|
+
}
|
|
489
|
+
if (!column.columnDef.getUniqueValues) {
|
|
490
|
+
row._uniqueValuesCache[columnId] = [row.getValue(columnId)];
|
|
491
|
+
return row._uniqueValuesCache[columnId];
|
|
492
|
+
}
|
|
493
|
+
row._uniqueValuesCache[columnId] = column.columnDef.getUniqueValues(row.original, rowIndex);
|
|
494
|
+
return row._uniqueValuesCache[columnId];
|
|
495
|
+
},
|
|
496
|
+
renderValue: (columnId) => {
|
|
497
|
+
var _row$getValue;
|
|
498
|
+
return (_row$getValue = row.getValue(columnId)) != null ? _row$getValue : table.options.renderFallbackValue;
|
|
499
|
+
},
|
|
500
|
+
subRows: subRows != null ? subRows : [],
|
|
501
|
+
getLeafRows: () => flattenBy(row.subRows, (d) => d.subRows),
|
|
502
|
+
getParentRow: () => row.parentId ? table.getRow(row.parentId, true) : void 0,
|
|
503
|
+
getParentRows: () => {
|
|
504
|
+
let parentRows = [];
|
|
505
|
+
let currentRow = row;
|
|
506
|
+
while (true) {
|
|
507
|
+
const parentRow = currentRow.getParentRow();
|
|
508
|
+
if (!parentRow) break;
|
|
509
|
+
parentRows.push(parentRow);
|
|
510
|
+
currentRow = parentRow;
|
|
511
|
+
}
|
|
512
|
+
return parentRows.reverse();
|
|
513
|
+
},
|
|
514
|
+
getAllCells: memo(() => [table.getAllLeafColumns()], (leafColumns) => {
|
|
515
|
+
return leafColumns.map((column) => {
|
|
516
|
+
return createCell(table, row, column, column.id);
|
|
517
|
+
});
|
|
518
|
+
}, getMemoOptions(table.options, "debugRows", "getAllCells")),
|
|
519
|
+
_getAllCellsByColumnId: memo(() => [row.getAllCells()], (allCells) => {
|
|
520
|
+
return allCells.reduce((acc, cell) => {
|
|
521
|
+
acc[cell.column.id] = cell;
|
|
522
|
+
return acc;
|
|
523
|
+
}, {});
|
|
524
|
+
}, getMemoOptions(table.options, "debugRows", "getAllCellsByColumnId"))
|
|
525
|
+
};
|
|
526
|
+
for (let i = 0; i < table._features.length; i++) {
|
|
527
|
+
const feature = table._features[i];
|
|
528
|
+
feature == null || feature.createRow == null || feature.createRow(row, table);
|
|
529
|
+
}
|
|
530
|
+
return row;
|
|
531
|
+
};
|
|
532
|
+
var ColumnFaceting = {
|
|
533
|
+
createColumn: (column, table) => {
|
|
534
|
+
column._getFacetedRowModel = table.options.getFacetedRowModel && table.options.getFacetedRowModel(table, column.id);
|
|
535
|
+
column.getFacetedRowModel = () => {
|
|
536
|
+
if (!column._getFacetedRowModel) {
|
|
537
|
+
return table.getPreFilteredRowModel();
|
|
538
|
+
}
|
|
539
|
+
return column._getFacetedRowModel();
|
|
540
|
+
};
|
|
541
|
+
column._getFacetedUniqueValues = table.options.getFacetedUniqueValues && table.options.getFacetedUniqueValues(table, column.id);
|
|
542
|
+
column.getFacetedUniqueValues = () => {
|
|
543
|
+
if (!column._getFacetedUniqueValues) {
|
|
544
|
+
return /* @__PURE__ */ new Map();
|
|
545
|
+
}
|
|
546
|
+
return column._getFacetedUniqueValues();
|
|
547
|
+
};
|
|
548
|
+
column._getFacetedMinMaxValues = table.options.getFacetedMinMaxValues && table.options.getFacetedMinMaxValues(table, column.id);
|
|
549
|
+
column.getFacetedMinMaxValues = () => {
|
|
550
|
+
if (!column._getFacetedMinMaxValues) {
|
|
551
|
+
return void 0;
|
|
552
|
+
}
|
|
553
|
+
return column._getFacetedMinMaxValues();
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
var includesString = (row, columnId, filterValue) => {
|
|
558
|
+
var _filterValue$toString, _row$getValue;
|
|
559
|
+
const search = filterValue == null || (_filterValue$toString = filterValue.toString()) == null ? void 0 : _filterValue$toString.toLowerCase();
|
|
560
|
+
return Boolean((_row$getValue = row.getValue(columnId)) == null || (_row$getValue = _row$getValue.toString()) == null || (_row$getValue = _row$getValue.toLowerCase()) == null ? void 0 : _row$getValue.includes(search));
|
|
561
|
+
};
|
|
562
|
+
includesString.autoRemove = (val) => testFalsey(val);
|
|
563
|
+
var includesStringSensitive = (row, columnId, filterValue) => {
|
|
564
|
+
var _row$getValue2;
|
|
565
|
+
return Boolean((_row$getValue2 = row.getValue(columnId)) == null || (_row$getValue2 = _row$getValue2.toString()) == null ? void 0 : _row$getValue2.includes(filterValue));
|
|
566
|
+
};
|
|
567
|
+
includesStringSensitive.autoRemove = (val) => testFalsey(val);
|
|
568
|
+
var equalsString = (row, columnId, filterValue) => {
|
|
569
|
+
var _row$getValue3;
|
|
570
|
+
return ((_row$getValue3 = row.getValue(columnId)) == null || (_row$getValue3 = _row$getValue3.toString()) == null ? void 0 : _row$getValue3.toLowerCase()) === (filterValue == null ? void 0 : filterValue.toLowerCase());
|
|
571
|
+
};
|
|
572
|
+
equalsString.autoRemove = (val) => testFalsey(val);
|
|
573
|
+
var arrIncludes = (row, columnId, filterValue) => {
|
|
574
|
+
var _row$getValue4;
|
|
575
|
+
return (_row$getValue4 = row.getValue(columnId)) == null ? void 0 : _row$getValue4.includes(filterValue);
|
|
576
|
+
};
|
|
577
|
+
arrIncludes.autoRemove = (val) => testFalsey(val);
|
|
578
|
+
var arrIncludesAll = (row, columnId, filterValue) => {
|
|
579
|
+
return !filterValue.some((val) => {
|
|
580
|
+
var _row$getValue5;
|
|
581
|
+
return !((_row$getValue5 = row.getValue(columnId)) != null && _row$getValue5.includes(val));
|
|
582
|
+
});
|
|
583
|
+
};
|
|
584
|
+
arrIncludesAll.autoRemove = (val) => testFalsey(val) || !(val != null && val.length);
|
|
585
|
+
var arrIncludesSome = (row, columnId, filterValue) => {
|
|
586
|
+
return filterValue.some((val) => {
|
|
587
|
+
var _row$getValue6;
|
|
588
|
+
return (_row$getValue6 = row.getValue(columnId)) == null ? void 0 : _row$getValue6.includes(val);
|
|
589
|
+
});
|
|
590
|
+
};
|
|
591
|
+
arrIncludesSome.autoRemove = (val) => testFalsey(val) || !(val != null && val.length);
|
|
592
|
+
var equals = (row, columnId, filterValue) => {
|
|
593
|
+
return row.getValue(columnId) === filterValue;
|
|
594
|
+
};
|
|
595
|
+
equals.autoRemove = (val) => testFalsey(val);
|
|
596
|
+
var weakEquals = (row, columnId, filterValue) => {
|
|
597
|
+
return row.getValue(columnId) == filterValue;
|
|
598
|
+
};
|
|
599
|
+
weakEquals.autoRemove = (val) => testFalsey(val);
|
|
600
|
+
var inNumberRange = (row, columnId, filterValue) => {
|
|
601
|
+
let [min2, max2] = filterValue;
|
|
602
|
+
const rowValue = row.getValue(columnId);
|
|
603
|
+
return rowValue >= min2 && rowValue <= max2;
|
|
604
|
+
};
|
|
605
|
+
inNumberRange.resolveFilterValue = (val) => {
|
|
606
|
+
let [unsafeMin, unsafeMax] = val;
|
|
607
|
+
let parsedMin = typeof unsafeMin !== "number" ? parseFloat(unsafeMin) : unsafeMin;
|
|
608
|
+
let parsedMax = typeof unsafeMax !== "number" ? parseFloat(unsafeMax) : unsafeMax;
|
|
609
|
+
let min2 = unsafeMin === null || Number.isNaN(parsedMin) ? -Infinity : parsedMin;
|
|
610
|
+
let max2 = unsafeMax === null || Number.isNaN(parsedMax) ? Infinity : parsedMax;
|
|
611
|
+
if (min2 > max2) {
|
|
612
|
+
const temp = min2;
|
|
613
|
+
min2 = max2;
|
|
614
|
+
max2 = temp;
|
|
615
|
+
}
|
|
616
|
+
return [min2, max2];
|
|
617
|
+
};
|
|
618
|
+
inNumberRange.autoRemove = (val) => testFalsey(val) || testFalsey(val[0]) && testFalsey(val[1]);
|
|
619
|
+
var filterFns = {
|
|
620
|
+
includesString,
|
|
621
|
+
includesStringSensitive,
|
|
622
|
+
equalsString,
|
|
623
|
+
arrIncludes,
|
|
624
|
+
arrIncludesAll,
|
|
625
|
+
arrIncludesSome,
|
|
626
|
+
equals,
|
|
627
|
+
weakEquals,
|
|
628
|
+
inNumberRange
|
|
629
|
+
};
|
|
630
|
+
function testFalsey(val) {
|
|
631
|
+
return val === void 0 || val === null || val === "";
|
|
632
|
+
}
|
|
633
|
+
var ColumnFiltering = {
|
|
634
|
+
getDefaultColumnDef: () => {
|
|
635
|
+
return {
|
|
636
|
+
filterFn: "auto"
|
|
637
|
+
};
|
|
638
|
+
},
|
|
639
|
+
getInitialState: (state) => {
|
|
640
|
+
return {
|
|
641
|
+
columnFilters: [],
|
|
642
|
+
...state
|
|
643
|
+
};
|
|
644
|
+
},
|
|
645
|
+
getDefaultOptions: (table) => {
|
|
646
|
+
return {
|
|
647
|
+
onColumnFiltersChange: makeStateUpdater("columnFilters", table),
|
|
648
|
+
filterFromLeafRows: false,
|
|
649
|
+
maxLeafRowFilterDepth: 100
|
|
650
|
+
};
|
|
651
|
+
},
|
|
652
|
+
createColumn: (column, table) => {
|
|
653
|
+
column.getAutoFilterFn = () => {
|
|
654
|
+
const firstRow = table.getCoreRowModel().flatRows[0];
|
|
655
|
+
const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
|
|
656
|
+
if (typeof value === "string") {
|
|
657
|
+
return filterFns.includesString;
|
|
658
|
+
}
|
|
659
|
+
if (typeof value === "number") {
|
|
660
|
+
return filterFns.inNumberRange;
|
|
661
|
+
}
|
|
662
|
+
if (typeof value === "boolean") {
|
|
663
|
+
return filterFns.equals;
|
|
664
|
+
}
|
|
665
|
+
if (value !== null && typeof value === "object") {
|
|
666
|
+
return filterFns.equals;
|
|
667
|
+
}
|
|
668
|
+
if (Array.isArray(value)) {
|
|
669
|
+
return filterFns.arrIncludes;
|
|
670
|
+
}
|
|
671
|
+
return filterFns.weakEquals;
|
|
672
|
+
};
|
|
673
|
+
column.getFilterFn = () => {
|
|
674
|
+
var _table$options$filter, _table$options$filter2;
|
|
675
|
+
return isFunction(column.columnDef.filterFn) ? column.columnDef.filterFn : column.columnDef.filterFn === "auto" ? column.getAutoFilterFn() : (
|
|
676
|
+
// @ts-ignore
|
|
677
|
+
(_table$options$filter = (_table$options$filter2 = table.options.filterFns) == null ? void 0 : _table$options$filter2[column.columnDef.filterFn]) != null ? _table$options$filter : filterFns[column.columnDef.filterFn]
|
|
678
|
+
);
|
|
679
|
+
};
|
|
680
|
+
column.getCanFilter = () => {
|
|
681
|
+
var _column$columnDef$ena, _table$options$enable, _table$options$enable2;
|
|
682
|
+
return ((_column$columnDef$ena = column.columnDef.enableColumnFilter) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableColumnFilters) != null ? _table$options$enable : true) && ((_table$options$enable2 = table.options.enableFilters) != null ? _table$options$enable2 : true) && !!column.accessorFn;
|
|
683
|
+
};
|
|
684
|
+
column.getIsFiltered = () => column.getFilterIndex() > -1;
|
|
685
|
+
column.getFilterValue = () => {
|
|
686
|
+
var _table$getState$colum;
|
|
687
|
+
return (_table$getState$colum = table.getState().columnFilters) == null || (_table$getState$colum = _table$getState$colum.find((d) => d.id === column.id)) == null ? void 0 : _table$getState$colum.value;
|
|
688
|
+
};
|
|
689
|
+
column.getFilterIndex = () => {
|
|
690
|
+
var _table$getState$colum2, _table$getState$colum3;
|
|
691
|
+
return (_table$getState$colum2 = (_table$getState$colum3 = table.getState().columnFilters) == null ? void 0 : _table$getState$colum3.findIndex((d) => d.id === column.id)) != null ? _table$getState$colum2 : -1;
|
|
692
|
+
};
|
|
693
|
+
column.setFilterValue = (value) => {
|
|
694
|
+
table.setColumnFilters((old) => {
|
|
695
|
+
const filterFn = column.getFilterFn();
|
|
696
|
+
const previousFilter = old == null ? void 0 : old.find((d) => d.id === column.id);
|
|
697
|
+
const newFilter = functionalUpdate(value, previousFilter ? previousFilter.value : void 0);
|
|
698
|
+
if (shouldAutoRemoveFilter(filterFn, newFilter, column)) {
|
|
699
|
+
var _old$filter;
|
|
700
|
+
return (_old$filter = old == null ? void 0 : old.filter((d) => d.id !== column.id)) != null ? _old$filter : [];
|
|
701
|
+
}
|
|
702
|
+
const newFilterObj = {
|
|
703
|
+
id: column.id,
|
|
704
|
+
value: newFilter
|
|
705
|
+
};
|
|
706
|
+
if (previousFilter) {
|
|
707
|
+
var _old$map;
|
|
708
|
+
return (_old$map = old == null ? void 0 : old.map((d) => {
|
|
709
|
+
if (d.id === column.id) {
|
|
710
|
+
return newFilterObj;
|
|
711
|
+
}
|
|
712
|
+
return d;
|
|
713
|
+
})) != null ? _old$map : [];
|
|
714
|
+
}
|
|
715
|
+
if (old != null && old.length) {
|
|
716
|
+
return [...old, newFilterObj];
|
|
717
|
+
}
|
|
718
|
+
return [newFilterObj];
|
|
719
|
+
});
|
|
720
|
+
};
|
|
721
|
+
},
|
|
722
|
+
createRow: (row, _table) => {
|
|
723
|
+
row.columnFilters = {};
|
|
724
|
+
row.columnFiltersMeta = {};
|
|
725
|
+
},
|
|
726
|
+
createTable: (table) => {
|
|
727
|
+
table.setColumnFilters = (updater) => {
|
|
728
|
+
const leafColumns = table.getAllLeafColumns();
|
|
729
|
+
const updateFn = (old) => {
|
|
730
|
+
var _functionalUpdate;
|
|
731
|
+
return (_functionalUpdate = functionalUpdate(updater, old)) == null ? void 0 : _functionalUpdate.filter((filter) => {
|
|
732
|
+
const column = leafColumns.find((d) => d.id === filter.id);
|
|
733
|
+
if (column) {
|
|
734
|
+
const filterFn = column.getFilterFn();
|
|
735
|
+
if (shouldAutoRemoveFilter(filterFn, filter.value, column)) {
|
|
736
|
+
return false;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
return true;
|
|
740
|
+
});
|
|
741
|
+
};
|
|
742
|
+
table.options.onColumnFiltersChange == null || table.options.onColumnFiltersChange(updateFn);
|
|
743
|
+
};
|
|
744
|
+
table.resetColumnFilters = (defaultState) => {
|
|
745
|
+
var _table$initialState$c, _table$initialState;
|
|
746
|
+
table.setColumnFilters(defaultState ? [] : (_table$initialState$c = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.columnFilters) != null ? _table$initialState$c : []);
|
|
747
|
+
};
|
|
748
|
+
table.getPreFilteredRowModel = () => table.getCoreRowModel();
|
|
749
|
+
table.getFilteredRowModel = () => {
|
|
750
|
+
if (!table._getFilteredRowModel && table.options.getFilteredRowModel) {
|
|
751
|
+
table._getFilteredRowModel = table.options.getFilteredRowModel(table);
|
|
752
|
+
}
|
|
753
|
+
if (table.options.manualFiltering || !table._getFilteredRowModel) {
|
|
754
|
+
return table.getPreFilteredRowModel();
|
|
755
|
+
}
|
|
756
|
+
return table._getFilteredRowModel();
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
};
|
|
760
|
+
function shouldAutoRemoveFilter(filterFn, value, column) {
|
|
761
|
+
return (filterFn && filterFn.autoRemove ? filterFn.autoRemove(value, column) : false) || typeof value === "undefined" || typeof value === "string" && !value;
|
|
762
|
+
}
|
|
763
|
+
var sum = (columnId, _leafRows, childRows) => {
|
|
764
|
+
return childRows.reduce((sum2, next) => {
|
|
765
|
+
const nextValue = next.getValue(columnId);
|
|
766
|
+
return sum2 + (typeof nextValue === "number" ? nextValue : 0);
|
|
767
|
+
}, 0);
|
|
768
|
+
};
|
|
769
|
+
var min = (columnId, _leafRows, childRows) => {
|
|
770
|
+
let min2;
|
|
771
|
+
childRows.forEach((row) => {
|
|
772
|
+
const value = row.getValue(columnId);
|
|
773
|
+
if (value != null && (min2 > value || min2 === void 0 && value >= value)) {
|
|
774
|
+
min2 = value;
|
|
775
|
+
}
|
|
776
|
+
});
|
|
777
|
+
return min2;
|
|
778
|
+
};
|
|
779
|
+
var max = (columnId, _leafRows, childRows) => {
|
|
780
|
+
let max2;
|
|
781
|
+
childRows.forEach((row) => {
|
|
782
|
+
const value = row.getValue(columnId);
|
|
783
|
+
if (value != null && (max2 < value || max2 === void 0 && value >= value)) {
|
|
784
|
+
max2 = value;
|
|
785
|
+
}
|
|
786
|
+
});
|
|
787
|
+
return max2;
|
|
788
|
+
};
|
|
789
|
+
var extent = (columnId, _leafRows, childRows) => {
|
|
790
|
+
let min2;
|
|
791
|
+
let max2;
|
|
792
|
+
childRows.forEach((row) => {
|
|
793
|
+
const value = row.getValue(columnId);
|
|
794
|
+
if (value != null) {
|
|
795
|
+
if (min2 === void 0) {
|
|
796
|
+
if (value >= value) min2 = max2 = value;
|
|
797
|
+
} else {
|
|
798
|
+
if (min2 > value) min2 = value;
|
|
799
|
+
if (max2 < value) max2 = value;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
});
|
|
803
|
+
return [min2, max2];
|
|
804
|
+
};
|
|
805
|
+
var mean = (columnId, leafRows) => {
|
|
806
|
+
let count2 = 0;
|
|
807
|
+
let sum2 = 0;
|
|
808
|
+
leafRows.forEach((row) => {
|
|
809
|
+
let value = row.getValue(columnId);
|
|
810
|
+
if (value != null && (value = +value) >= value) {
|
|
811
|
+
++count2, sum2 += value;
|
|
812
|
+
}
|
|
813
|
+
});
|
|
814
|
+
if (count2) return sum2 / count2;
|
|
815
|
+
return;
|
|
816
|
+
};
|
|
817
|
+
var median = (columnId, leafRows) => {
|
|
818
|
+
if (!leafRows.length) {
|
|
819
|
+
return;
|
|
820
|
+
}
|
|
821
|
+
const values = leafRows.map((row) => row.getValue(columnId));
|
|
822
|
+
if (!isNumberArray(values)) {
|
|
823
|
+
return;
|
|
824
|
+
}
|
|
825
|
+
if (values.length === 1) {
|
|
826
|
+
return values[0];
|
|
827
|
+
}
|
|
828
|
+
const mid = Math.floor(values.length / 2);
|
|
829
|
+
const nums = values.sort((a, b) => a - b);
|
|
830
|
+
return values.length % 2 !== 0 ? nums[mid] : (nums[mid - 1] + nums[mid]) / 2;
|
|
831
|
+
};
|
|
832
|
+
var unique = (columnId, leafRows) => {
|
|
833
|
+
return Array.from(new Set(leafRows.map((d) => d.getValue(columnId))).values());
|
|
834
|
+
};
|
|
835
|
+
var uniqueCount = (columnId, leafRows) => {
|
|
836
|
+
return new Set(leafRows.map((d) => d.getValue(columnId))).size;
|
|
837
|
+
};
|
|
838
|
+
var count = (_columnId, leafRows) => {
|
|
839
|
+
return leafRows.length;
|
|
840
|
+
};
|
|
841
|
+
var aggregationFns = {
|
|
842
|
+
sum,
|
|
843
|
+
min,
|
|
844
|
+
max,
|
|
845
|
+
extent,
|
|
846
|
+
mean,
|
|
847
|
+
median,
|
|
848
|
+
unique,
|
|
849
|
+
uniqueCount,
|
|
850
|
+
count
|
|
851
|
+
};
|
|
852
|
+
var ColumnGrouping = {
|
|
853
|
+
getDefaultColumnDef: () => {
|
|
854
|
+
return {
|
|
855
|
+
aggregatedCell: (props) => {
|
|
856
|
+
var _toString, _props$getValue;
|
|
857
|
+
return (_toString = (_props$getValue = props.getValue()) == null || _props$getValue.toString == null ? void 0 : _props$getValue.toString()) != null ? _toString : null;
|
|
858
|
+
},
|
|
859
|
+
aggregationFn: "auto"
|
|
860
|
+
};
|
|
861
|
+
},
|
|
862
|
+
getInitialState: (state) => {
|
|
863
|
+
return {
|
|
864
|
+
grouping: [],
|
|
865
|
+
...state
|
|
866
|
+
};
|
|
867
|
+
},
|
|
868
|
+
getDefaultOptions: (table) => {
|
|
869
|
+
return {
|
|
870
|
+
onGroupingChange: makeStateUpdater("grouping", table),
|
|
871
|
+
groupedColumnMode: "reorder"
|
|
872
|
+
};
|
|
873
|
+
},
|
|
874
|
+
createColumn: (column, table) => {
|
|
875
|
+
column.toggleGrouping = () => {
|
|
876
|
+
table.setGrouping((old) => {
|
|
877
|
+
if (old != null && old.includes(column.id)) {
|
|
878
|
+
return old.filter((d) => d !== column.id);
|
|
879
|
+
}
|
|
880
|
+
return [...old != null ? old : [], column.id];
|
|
881
|
+
});
|
|
882
|
+
};
|
|
883
|
+
column.getCanGroup = () => {
|
|
884
|
+
var _column$columnDef$ena, _table$options$enable;
|
|
885
|
+
return ((_column$columnDef$ena = column.columnDef.enableGrouping) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableGrouping) != null ? _table$options$enable : true) && (!!column.accessorFn || !!column.columnDef.getGroupingValue);
|
|
886
|
+
};
|
|
887
|
+
column.getIsGrouped = () => {
|
|
888
|
+
var _table$getState$group;
|
|
889
|
+
return (_table$getState$group = table.getState().grouping) == null ? void 0 : _table$getState$group.includes(column.id);
|
|
890
|
+
};
|
|
891
|
+
column.getGroupedIndex = () => {
|
|
892
|
+
var _table$getState$group2;
|
|
893
|
+
return (_table$getState$group2 = table.getState().grouping) == null ? void 0 : _table$getState$group2.indexOf(column.id);
|
|
894
|
+
};
|
|
895
|
+
column.getToggleGroupingHandler = () => {
|
|
896
|
+
const canGroup = column.getCanGroup();
|
|
897
|
+
return () => {
|
|
898
|
+
if (!canGroup) return;
|
|
899
|
+
column.toggleGrouping();
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
column.getAutoAggregationFn = () => {
|
|
903
|
+
const firstRow = table.getCoreRowModel().flatRows[0];
|
|
904
|
+
const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
|
|
905
|
+
if (typeof value === "number") {
|
|
906
|
+
return aggregationFns.sum;
|
|
907
|
+
}
|
|
908
|
+
if (Object.prototype.toString.call(value) === "[object Date]") {
|
|
909
|
+
return aggregationFns.extent;
|
|
910
|
+
}
|
|
911
|
+
};
|
|
912
|
+
column.getAggregationFn = () => {
|
|
913
|
+
var _table$options$aggreg, _table$options$aggreg2;
|
|
914
|
+
if (!column) {
|
|
915
|
+
throw new Error();
|
|
916
|
+
}
|
|
917
|
+
return isFunction(column.columnDef.aggregationFn) ? column.columnDef.aggregationFn : column.columnDef.aggregationFn === "auto" ? column.getAutoAggregationFn() : (_table$options$aggreg = (_table$options$aggreg2 = table.options.aggregationFns) == null ? void 0 : _table$options$aggreg2[column.columnDef.aggregationFn]) != null ? _table$options$aggreg : aggregationFns[column.columnDef.aggregationFn];
|
|
918
|
+
};
|
|
919
|
+
},
|
|
920
|
+
createTable: (table) => {
|
|
921
|
+
table.setGrouping = (updater) => table.options.onGroupingChange == null ? void 0 : table.options.onGroupingChange(updater);
|
|
922
|
+
table.resetGrouping = (defaultState) => {
|
|
923
|
+
var _table$initialState$g, _table$initialState;
|
|
924
|
+
table.setGrouping(defaultState ? [] : (_table$initialState$g = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.grouping) != null ? _table$initialState$g : []);
|
|
925
|
+
};
|
|
926
|
+
table.getPreGroupedRowModel = () => table.getFilteredRowModel();
|
|
927
|
+
table.getGroupedRowModel = () => {
|
|
928
|
+
if (!table._getGroupedRowModel && table.options.getGroupedRowModel) {
|
|
929
|
+
table._getGroupedRowModel = table.options.getGroupedRowModel(table);
|
|
930
|
+
}
|
|
931
|
+
if (table.options.manualGrouping || !table._getGroupedRowModel) {
|
|
932
|
+
return table.getPreGroupedRowModel();
|
|
933
|
+
}
|
|
934
|
+
return table._getGroupedRowModel();
|
|
935
|
+
};
|
|
936
|
+
},
|
|
937
|
+
createRow: (row, table) => {
|
|
938
|
+
row.getIsGrouped = () => !!row.groupingColumnId;
|
|
939
|
+
row.getGroupingValue = (columnId) => {
|
|
940
|
+
if (row._groupingValuesCache.hasOwnProperty(columnId)) {
|
|
941
|
+
return row._groupingValuesCache[columnId];
|
|
942
|
+
}
|
|
943
|
+
const column = table.getColumn(columnId);
|
|
944
|
+
if (!(column != null && column.columnDef.getGroupingValue)) {
|
|
945
|
+
return row.getValue(columnId);
|
|
946
|
+
}
|
|
947
|
+
row._groupingValuesCache[columnId] = column.columnDef.getGroupingValue(row.original);
|
|
948
|
+
return row._groupingValuesCache[columnId];
|
|
949
|
+
};
|
|
950
|
+
row._groupingValuesCache = {};
|
|
951
|
+
},
|
|
952
|
+
createCell: (cell, column, row, table) => {
|
|
953
|
+
cell.getIsGrouped = () => column.getIsGrouped() && column.id === row.groupingColumnId;
|
|
954
|
+
cell.getIsPlaceholder = () => !cell.getIsGrouped() && column.getIsGrouped();
|
|
955
|
+
cell.getIsAggregated = () => {
|
|
956
|
+
var _row$subRows;
|
|
957
|
+
return !cell.getIsGrouped() && !cell.getIsPlaceholder() && !!((_row$subRows = row.subRows) != null && _row$subRows.length);
|
|
958
|
+
};
|
|
959
|
+
}
|
|
960
|
+
};
|
|
961
|
+
function orderColumns(leafColumns, grouping, groupedColumnMode) {
|
|
962
|
+
if (!(grouping != null && grouping.length) || !groupedColumnMode) {
|
|
963
|
+
return leafColumns;
|
|
964
|
+
}
|
|
965
|
+
const nonGroupingColumns = leafColumns.filter((col) => !grouping.includes(col.id));
|
|
966
|
+
if (groupedColumnMode === "remove") {
|
|
967
|
+
return nonGroupingColumns;
|
|
968
|
+
}
|
|
969
|
+
const groupingColumns = grouping.map((g) => leafColumns.find((col) => col.id === g)).filter(Boolean);
|
|
970
|
+
return [...groupingColumns, ...nonGroupingColumns];
|
|
971
|
+
}
|
|
972
|
+
var ColumnOrdering = {
|
|
973
|
+
getInitialState: (state) => {
|
|
974
|
+
return {
|
|
975
|
+
columnOrder: [],
|
|
976
|
+
...state
|
|
977
|
+
};
|
|
978
|
+
},
|
|
979
|
+
getDefaultOptions: (table) => {
|
|
980
|
+
return {
|
|
981
|
+
onColumnOrderChange: makeStateUpdater("columnOrder", table)
|
|
982
|
+
};
|
|
983
|
+
},
|
|
984
|
+
createColumn: (column, table) => {
|
|
985
|
+
column.getIndex = memo((position) => [_getVisibleLeafColumns(table, position)], (columns2) => columns2.findIndex((d) => d.id === column.id), getMemoOptions(table.options, "debugColumns", "getIndex"));
|
|
986
|
+
column.getIsFirstColumn = (position) => {
|
|
987
|
+
var _columns$;
|
|
988
|
+
const columns2 = _getVisibleLeafColumns(table, position);
|
|
989
|
+
return ((_columns$ = columns2[0]) == null ? void 0 : _columns$.id) === column.id;
|
|
990
|
+
};
|
|
991
|
+
column.getIsLastColumn = (position) => {
|
|
992
|
+
var _columns;
|
|
993
|
+
const columns2 = _getVisibleLeafColumns(table, position);
|
|
994
|
+
return ((_columns = columns2[columns2.length - 1]) == null ? void 0 : _columns.id) === column.id;
|
|
995
|
+
};
|
|
996
|
+
},
|
|
997
|
+
createTable: (table) => {
|
|
998
|
+
table.setColumnOrder = (updater) => table.options.onColumnOrderChange == null ? void 0 : table.options.onColumnOrderChange(updater);
|
|
999
|
+
table.resetColumnOrder = (defaultState) => {
|
|
1000
|
+
var _table$initialState$c;
|
|
1001
|
+
table.setColumnOrder(defaultState ? [] : (_table$initialState$c = table.initialState.columnOrder) != null ? _table$initialState$c : []);
|
|
1002
|
+
};
|
|
1003
|
+
table._getOrderColumnsFn = memo(() => [table.getState().columnOrder, table.getState().grouping, table.options.groupedColumnMode], (columnOrder, grouping, groupedColumnMode) => (columns2) => {
|
|
1004
|
+
let orderedColumns = [];
|
|
1005
|
+
if (!(columnOrder != null && columnOrder.length)) {
|
|
1006
|
+
orderedColumns = columns2;
|
|
1007
|
+
} else {
|
|
1008
|
+
const columnOrderCopy = [...columnOrder];
|
|
1009
|
+
const columnsCopy = [...columns2];
|
|
1010
|
+
while (columnsCopy.length && columnOrderCopy.length) {
|
|
1011
|
+
const targetColumnId = columnOrderCopy.shift();
|
|
1012
|
+
const foundIndex = columnsCopy.findIndex((d) => d.id === targetColumnId);
|
|
1013
|
+
if (foundIndex > -1) {
|
|
1014
|
+
orderedColumns.push(columnsCopy.splice(foundIndex, 1)[0]);
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
orderedColumns = [...orderedColumns, ...columnsCopy];
|
|
1018
|
+
}
|
|
1019
|
+
return orderColumns(orderedColumns, grouping, groupedColumnMode);
|
|
1020
|
+
}, getMemoOptions(table.options, "debugTable", "_getOrderColumnsFn"));
|
|
1021
|
+
}
|
|
1022
|
+
};
|
|
1023
|
+
var getDefaultColumnPinningState = () => ({
|
|
1024
|
+
left: [],
|
|
1025
|
+
right: []
|
|
1026
|
+
});
|
|
1027
|
+
var ColumnPinning = {
|
|
1028
|
+
getInitialState: (state) => {
|
|
1029
|
+
return {
|
|
1030
|
+
columnPinning: getDefaultColumnPinningState(),
|
|
1031
|
+
...state
|
|
1032
|
+
};
|
|
1033
|
+
},
|
|
1034
|
+
getDefaultOptions: (table) => {
|
|
1035
|
+
return {
|
|
1036
|
+
onColumnPinningChange: makeStateUpdater("columnPinning", table)
|
|
1037
|
+
};
|
|
1038
|
+
},
|
|
1039
|
+
createColumn: (column, table) => {
|
|
1040
|
+
column.pin = (position) => {
|
|
1041
|
+
const columnIds = column.getLeafColumns().map((d) => d.id).filter(Boolean);
|
|
1042
|
+
table.setColumnPinning((old) => {
|
|
1043
|
+
var _old$left3, _old$right3;
|
|
1044
|
+
if (position === "right") {
|
|
1045
|
+
var _old$left, _old$right;
|
|
1046
|
+
return {
|
|
1047
|
+
left: ((_old$left = old == null ? void 0 : old.left) != null ? _old$left : []).filter((d) => !(columnIds != null && columnIds.includes(d))),
|
|
1048
|
+
right: [...((_old$right = old == null ? void 0 : old.right) != null ? _old$right : []).filter((d) => !(columnIds != null && columnIds.includes(d))), ...columnIds]
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
if (position === "left") {
|
|
1052
|
+
var _old$left2, _old$right2;
|
|
1053
|
+
return {
|
|
1054
|
+
left: [...((_old$left2 = old == null ? void 0 : old.left) != null ? _old$left2 : []).filter((d) => !(columnIds != null && columnIds.includes(d))), ...columnIds],
|
|
1055
|
+
right: ((_old$right2 = old == null ? void 0 : old.right) != null ? _old$right2 : []).filter((d) => !(columnIds != null && columnIds.includes(d)))
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
return {
|
|
1059
|
+
left: ((_old$left3 = old == null ? void 0 : old.left) != null ? _old$left3 : []).filter((d) => !(columnIds != null && columnIds.includes(d))),
|
|
1060
|
+
right: ((_old$right3 = old == null ? void 0 : old.right) != null ? _old$right3 : []).filter((d) => !(columnIds != null && columnIds.includes(d)))
|
|
1061
|
+
};
|
|
1062
|
+
});
|
|
1063
|
+
};
|
|
1064
|
+
column.getCanPin = () => {
|
|
1065
|
+
const leafColumns = column.getLeafColumns();
|
|
1066
|
+
return leafColumns.some((d) => {
|
|
1067
|
+
var _d$columnDef$enablePi, _ref, _table$options$enable;
|
|
1068
|
+
return ((_d$columnDef$enablePi = d.columnDef.enablePinning) != null ? _d$columnDef$enablePi : true) && ((_ref = (_table$options$enable = table.options.enableColumnPinning) != null ? _table$options$enable : table.options.enablePinning) != null ? _ref : true);
|
|
1069
|
+
});
|
|
1070
|
+
};
|
|
1071
|
+
column.getIsPinned = () => {
|
|
1072
|
+
const leafColumnIds = column.getLeafColumns().map((d) => d.id);
|
|
1073
|
+
const {
|
|
1074
|
+
left,
|
|
1075
|
+
right
|
|
1076
|
+
} = table.getState().columnPinning;
|
|
1077
|
+
const isLeft = leafColumnIds.some((d) => left == null ? void 0 : left.includes(d));
|
|
1078
|
+
const isRight = leafColumnIds.some((d) => right == null ? void 0 : right.includes(d));
|
|
1079
|
+
return isLeft ? "left" : isRight ? "right" : false;
|
|
1080
|
+
};
|
|
1081
|
+
column.getPinnedIndex = () => {
|
|
1082
|
+
var _table$getState$colum, _table$getState$colum2;
|
|
1083
|
+
const position = column.getIsPinned();
|
|
1084
|
+
return position ? (_table$getState$colum = (_table$getState$colum2 = table.getState().columnPinning) == null || (_table$getState$colum2 = _table$getState$colum2[position]) == null ? void 0 : _table$getState$colum2.indexOf(column.id)) != null ? _table$getState$colum : -1 : 0;
|
|
1085
|
+
};
|
|
1086
|
+
},
|
|
1087
|
+
createRow: (row, table) => {
|
|
1088
|
+
row.getCenterVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allCells, left, right) => {
|
|
1089
|
+
const leftAndRight = [...left != null ? left : [], ...right != null ? right : []];
|
|
1090
|
+
return allCells.filter((d) => !leftAndRight.includes(d.column.id));
|
|
1091
|
+
}, getMemoOptions(table.options, "debugRows", "getCenterVisibleCells"));
|
|
1092
|
+
row.getLeftVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.left], (allCells, left) => {
|
|
1093
|
+
const cells = (left != null ? left : []).map((columnId) => allCells.find((cell) => cell.column.id === columnId)).filter(Boolean).map((d) => ({
|
|
1094
|
+
...d,
|
|
1095
|
+
position: "left"
|
|
1096
|
+
}));
|
|
1097
|
+
return cells;
|
|
1098
|
+
}, getMemoOptions(table.options, "debugRows", "getLeftVisibleCells"));
|
|
1099
|
+
row.getRightVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.right], (allCells, right) => {
|
|
1100
|
+
const cells = (right != null ? right : []).map((columnId) => allCells.find((cell) => cell.column.id === columnId)).filter(Boolean).map((d) => ({
|
|
1101
|
+
...d,
|
|
1102
|
+
position: "right"
|
|
1103
|
+
}));
|
|
1104
|
+
return cells;
|
|
1105
|
+
}, getMemoOptions(table.options, "debugRows", "getRightVisibleCells"));
|
|
1106
|
+
},
|
|
1107
|
+
createTable: (table) => {
|
|
1108
|
+
table.setColumnPinning = (updater) => table.options.onColumnPinningChange == null ? void 0 : table.options.onColumnPinningChange(updater);
|
|
1109
|
+
table.resetColumnPinning = (defaultState) => {
|
|
1110
|
+
var _table$initialState$c, _table$initialState;
|
|
1111
|
+
return table.setColumnPinning(defaultState ? getDefaultColumnPinningState() : (_table$initialState$c = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.columnPinning) != null ? _table$initialState$c : getDefaultColumnPinningState());
|
|
1112
|
+
};
|
|
1113
|
+
table.getIsSomeColumnsPinned = (position) => {
|
|
1114
|
+
var _pinningState$positio;
|
|
1115
|
+
const pinningState = table.getState().columnPinning;
|
|
1116
|
+
if (!position) {
|
|
1117
|
+
var _pinningState$left, _pinningState$right;
|
|
1118
|
+
return Boolean(((_pinningState$left = pinningState.left) == null ? void 0 : _pinningState$left.length) || ((_pinningState$right = pinningState.right) == null ? void 0 : _pinningState$right.length));
|
|
1119
|
+
}
|
|
1120
|
+
return Boolean((_pinningState$positio = pinningState[position]) == null ? void 0 : _pinningState$positio.length);
|
|
1121
|
+
};
|
|
1122
|
+
table.getLeftLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.left], (allColumns, left) => {
|
|
1123
|
+
return (left != null ? left : []).map((columnId) => allColumns.find((column) => column.id === columnId)).filter(Boolean);
|
|
1124
|
+
}, getMemoOptions(table.options, "debugColumns", "getLeftLeafColumns"));
|
|
1125
|
+
table.getRightLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.right], (allColumns, right) => {
|
|
1126
|
+
return (right != null ? right : []).map((columnId) => allColumns.find((column) => column.id === columnId)).filter(Boolean);
|
|
1127
|
+
}, getMemoOptions(table.options, "debugColumns", "getRightLeafColumns"));
|
|
1128
|
+
table.getCenterLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, left, right) => {
|
|
1129
|
+
const leftAndRight = [...left != null ? left : [], ...right != null ? right : []];
|
|
1130
|
+
return allColumns.filter((d) => !leftAndRight.includes(d.id));
|
|
1131
|
+
}, getMemoOptions(table.options, "debugColumns", "getCenterLeafColumns"));
|
|
1132
|
+
}
|
|
1133
|
+
};
|
|
1134
|
+
function safelyAccessDocument(_document) {
|
|
1135
|
+
return _document || (typeof document !== "undefined" ? document : null);
|
|
1136
|
+
}
|
|
1137
|
+
var defaultColumnSizing = {
|
|
1138
|
+
size: 150,
|
|
1139
|
+
minSize: 20,
|
|
1140
|
+
maxSize: Number.MAX_SAFE_INTEGER
|
|
1141
|
+
};
|
|
1142
|
+
var getDefaultColumnSizingInfoState = () => ({
|
|
1143
|
+
startOffset: null,
|
|
1144
|
+
startSize: null,
|
|
1145
|
+
deltaOffset: null,
|
|
1146
|
+
deltaPercentage: null,
|
|
1147
|
+
isResizingColumn: false,
|
|
1148
|
+
columnSizingStart: []
|
|
1149
|
+
});
|
|
1150
|
+
var ColumnSizing = {
|
|
1151
|
+
getDefaultColumnDef: () => {
|
|
1152
|
+
return defaultColumnSizing;
|
|
1153
|
+
},
|
|
1154
|
+
getInitialState: (state) => {
|
|
1155
|
+
return {
|
|
1156
|
+
columnSizing: {},
|
|
1157
|
+
columnSizingInfo: getDefaultColumnSizingInfoState(),
|
|
1158
|
+
...state
|
|
1159
|
+
};
|
|
1160
|
+
},
|
|
1161
|
+
getDefaultOptions: (table) => {
|
|
1162
|
+
return {
|
|
1163
|
+
columnResizeMode: "onEnd",
|
|
1164
|
+
columnResizeDirection: "ltr",
|
|
1165
|
+
onColumnSizingChange: makeStateUpdater("columnSizing", table),
|
|
1166
|
+
onColumnSizingInfoChange: makeStateUpdater("columnSizingInfo", table)
|
|
1167
|
+
};
|
|
1168
|
+
},
|
|
1169
|
+
createColumn: (column, table) => {
|
|
1170
|
+
column.getSize = () => {
|
|
1171
|
+
var _column$columnDef$min, _ref, _column$columnDef$max;
|
|
1172
|
+
const columnSize = table.getState().columnSizing[column.id];
|
|
1173
|
+
return Math.min(Math.max((_column$columnDef$min = column.columnDef.minSize) != null ? _column$columnDef$min : defaultColumnSizing.minSize, (_ref = columnSize != null ? columnSize : column.columnDef.size) != null ? _ref : defaultColumnSizing.size), (_column$columnDef$max = column.columnDef.maxSize) != null ? _column$columnDef$max : defaultColumnSizing.maxSize);
|
|
1174
|
+
};
|
|
1175
|
+
column.getStart = memo((position) => [position, _getVisibleLeafColumns(table, position), table.getState().columnSizing], (position, columns2) => columns2.slice(0, column.getIndex(position)).reduce((sum2, column2) => sum2 + column2.getSize(), 0), getMemoOptions(table.options, "debugColumns", "getStart"));
|
|
1176
|
+
column.getAfter = memo((position) => [position, _getVisibleLeafColumns(table, position), table.getState().columnSizing], (position, columns2) => columns2.slice(column.getIndex(position) + 1).reduce((sum2, column2) => sum2 + column2.getSize(), 0), getMemoOptions(table.options, "debugColumns", "getAfter"));
|
|
1177
|
+
column.resetSize = () => {
|
|
1178
|
+
table.setColumnSizing((_ref2) => {
|
|
1179
|
+
let {
|
|
1180
|
+
[column.id]: _,
|
|
1181
|
+
...rest
|
|
1182
|
+
} = _ref2;
|
|
1183
|
+
return rest;
|
|
1184
|
+
});
|
|
1185
|
+
};
|
|
1186
|
+
column.getCanResize = () => {
|
|
1187
|
+
var _column$columnDef$ena, _table$options$enable;
|
|
1188
|
+
return ((_column$columnDef$ena = column.columnDef.enableResizing) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableColumnResizing) != null ? _table$options$enable : true);
|
|
1189
|
+
};
|
|
1190
|
+
column.getIsResizing = () => {
|
|
1191
|
+
return table.getState().columnSizingInfo.isResizingColumn === column.id;
|
|
1192
|
+
};
|
|
1193
|
+
},
|
|
1194
|
+
createHeader: (header, table) => {
|
|
1195
|
+
header.getSize = () => {
|
|
1196
|
+
let sum2 = 0;
|
|
1197
|
+
const recurse = (header2) => {
|
|
1198
|
+
if (header2.subHeaders.length) {
|
|
1199
|
+
header2.subHeaders.forEach(recurse);
|
|
1200
|
+
} else {
|
|
1201
|
+
var _header$column$getSiz;
|
|
1202
|
+
sum2 += (_header$column$getSiz = header2.column.getSize()) != null ? _header$column$getSiz : 0;
|
|
1203
|
+
}
|
|
1204
|
+
};
|
|
1205
|
+
recurse(header);
|
|
1206
|
+
return sum2;
|
|
1207
|
+
};
|
|
1208
|
+
header.getStart = () => {
|
|
1209
|
+
if (header.index > 0) {
|
|
1210
|
+
const prevSiblingHeader = header.headerGroup.headers[header.index - 1];
|
|
1211
|
+
return prevSiblingHeader.getStart() + prevSiblingHeader.getSize();
|
|
1212
|
+
}
|
|
1213
|
+
return 0;
|
|
1214
|
+
};
|
|
1215
|
+
header.getResizeHandler = (_contextDocument) => {
|
|
1216
|
+
const column = table.getColumn(header.column.id);
|
|
1217
|
+
const canResize = column == null ? void 0 : column.getCanResize();
|
|
1218
|
+
return (e) => {
|
|
1219
|
+
if (!column || !canResize) {
|
|
1220
|
+
return;
|
|
1221
|
+
}
|
|
1222
|
+
e.persist == null || e.persist();
|
|
1223
|
+
if (isTouchStartEvent(e)) {
|
|
1224
|
+
if (e.touches && e.touches.length > 1) {
|
|
1225
|
+
return;
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
const startSize = header.getSize();
|
|
1229
|
+
const columnSizingStart = header ? header.getLeafHeaders().map((d) => [d.column.id, d.column.getSize()]) : [[column.id, column.getSize()]];
|
|
1230
|
+
const clientX = isTouchStartEvent(e) ? Math.round(e.touches[0].clientX) : e.clientX;
|
|
1231
|
+
const newColumnSizing = {};
|
|
1232
|
+
const updateOffset = (eventType, clientXPos) => {
|
|
1233
|
+
if (typeof clientXPos !== "number") {
|
|
1234
|
+
return;
|
|
1235
|
+
}
|
|
1236
|
+
table.setColumnSizingInfo((old) => {
|
|
1237
|
+
var _old$startOffset, _old$startSize;
|
|
1238
|
+
const deltaDirection = table.options.columnResizeDirection === "rtl" ? -1 : 1;
|
|
1239
|
+
const deltaOffset = (clientXPos - ((_old$startOffset = old == null ? void 0 : old.startOffset) != null ? _old$startOffset : 0)) * deltaDirection;
|
|
1240
|
+
const deltaPercentage = Math.max(deltaOffset / ((_old$startSize = old == null ? void 0 : old.startSize) != null ? _old$startSize : 0), -0.999999);
|
|
1241
|
+
old.columnSizingStart.forEach((_ref3) => {
|
|
1242
|
+
let [columnId, headerSize] = _ref3;
|
|
1243
|
+
newColumnSizing[columnId] = Math.round(Math.max(headerSize + headerSize * deltaPercentage, 0) * 100) / 100;
|
|
1244
|
+
});
|
|
1245
|
+
return {
|
|
1246
|
+
...old,
|
|
1247
|
+
deltaOffset,
|
|
1248
|
+
deltaPercentage
|
|
1249
|
+
};
|
|
1250
|
+
});
|
|
1251
|
+
if (table.options.columnResizeMode === "onChange" || eventType === "end") {
|
|
1252
|
+
table.setColumnSizing((old) => ({
|
|
1253
|
+
...old,
|
|
1254
|
+
...newColumnSizing
|
|
1255
|
+
}));
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
const onMove = (clientXPos) => updateOffset("move", clientXPos);
|
|
1259
|
+
const onEnd = (clientXPos) => {
|
|
1260
|
+
updateOffset("end", clientXPos);
|
|
1261
|
+
table.setColumnSizingInfo((old) => ({
|
|
1262
|
+
...old,
|
|
1263
|
+
isResizingColumn: false,
|
|
1264
|
+
startOffset: null,
|
|
1265
|
+
startSize: null,
|
|
1266
|
+
deltaOffset: null,
|
|
1267
|
+
deltaPercentage: null,
|
|
1268
|
+
columnSizingStart: []
|
|
1269
|
+
}));
|
|
1270
|
+
};
|
|
1271
|
+
const contextDocument = safelyAccessDocument(_contextDocument);
|
|
1272
|
+
const mouseEvents = {
|
|
1273
|
+
moveHandler: (e2) => onMove(e2.clientX),
|
|
1274
|
+
upHandler: (e2) => {
|
|
1275
|
+
contextDocument == null || contextDocument.removeEventListener("mousemove", mouseEvents.moveHandler);
|
|
1276
|
+
contextDocument == null || contextDocument.removeEventListener("mouseup", mouseEvents.upHandler);
|
|
1277
|
+
onEnd(e2.clientX);
|
|
1278
|
+
}
|
|
1279
|
+
};
|
|
1280
|
+
const touchEvents = {
|
|
1281
|
+
moveHandler: (e2) => {
|
|
1282
|
+
if (e2.cancelable) {
|
|
1283
|
+
e2.preventDefault();
|
|
1284
|
+
e2.stopPropagation();
|
|
1285
|
+
}
|
|
1286
|
+
onMove(e2.touches[0].clientX);
|
|
1287
|
+
return false;
|
|
1288
|
+
},
|
|
1289
|
+
upHandler: (e2) => {
|
|
1290
|
+
var _e$touches$;
|
|
1291
|
+
contextDocument == null || contextDocument.removeEventListener("touchmove", touchEvents.moveHandler);
|
|
1292
|
+
contextDocument == null || contextDocument.removeEventListener("touchend", touchEvents.upHandler);
|
|
1293
|
+
if (e2.cancelable) {
|
|
1294
|
+
e2.preventDefault();
|
|
1295
|
+
e2.stopPropagation();
|
|
1296
|
+
}
|
|
1297
|
+
onEnd((_e$touches$ = e2.touches[0]) == null ? void 0 : _e$touches$.clientX);
|
|
1298
|
+
}
|
|
1299
|
+
};
|
|
1300
|
+
const passiveIfSupported = passiveEventSupported() ? {
|
|
1301
|
+
passive: false
|
|
1302
|
+
} : false;
|
|
1303
|
+
if (isTouchStartEvent(e)) {
|
|
1304
|
+
contextDocument == null || contextDocument.addEventListener("touchmove", touchEvents.moveHandler, passiveIfSupported);
|
|
1305
|
+
contextDocument == null || contextDocument.addEventListener("touchend", touchEvents.upHandler, passiveIfSupported);
|
|
1306
|
+
} else {
|
|
1307
|
+
contextDocument == null || contextDocument.addEventListener("mousemove", mouseEvents.moveHandler, passiveIfSupported);
|
|
1308
|
+
contextDocument == null || contextDocument.addEventListener("mouseup", mouseEvents.upHandler, passiveIfSupported);
|
|
1309
|
+
}
|
|
1310
|
+
table.setColumnSizingInfo((old) => ({
|
|
1311
|
+
...old,
|
|
1312
|
+
startOffset: clientX,
|
|
1313
|
+
startSize,
|
|
1314
|
+
deltaOffset: 0,
|
|
1315
|
+
deltaPercentage: 0,
|
|
1316
|
+
columnSizingStart,
|
|
1317
|
+
isResizingColumn: column.id
|
|
1318
|
+
}));
|
|
1319
|
+
};
|
|
1320
|
+
};
|
|
1321
|
+
},
|
|
1322
|
+
createTable: (table) => {
|
|
1323
|
+
table.setColumnSizing = (updater) => table.options.onColumnSizingChange == null ? void 0 : table.options.onColumnSizingChange(updater);
|
|
1324
|
+
table.setColumnSizingInfo = (updater) => table.options.onColumnSizingInfoChange == null ? void 0 : table.options.onColumnSizingInfoChange(updater);
|
|
1325
|
+
table.resetColumnSizing = (defaultState) => {
|
|
1326
|
+
var _table$initialState$c;
|
|
1327
|
+
table.setColumnSizing(defaultState ? {} : (_table$initialState$c = table.initialState.columnSizing) != null ? _table$initialState$c : {});
|
|
1328
|
+
};
|
|
1329
|
+
table.resetHeaderSizeInfo = (defaultState) => {
|
|
1330
|
+
var _table$initialState$c2;
|
|
1331
|
+
table.setColumnSizingInfo(defaultState ? getDefaultColumnSizingInfoState() : (_table$initialState$c2 = table.initialState.columnSizingInfo) != null ? _table$initialState$c2 : getDefaultColumnSizingInfoState());
|
|
1332
|
+
};
|
|
1333
|
+
table.getTotalSize = () => {
|
|
1334
|
+
var _table$getHeaderGroup, _table$getHeaderGroup2;
|
|
1335
|
+
return (_table$getHeaderGroup = (_table$getHeaderGroup2 = table.getHeaderGroups()[0]) == null ? void 0 : _table$getHeaderGroup2.headers.reduce((sum2, header) => {
|
|
1336
|
+
return sum2 + header.getSize();
|
|
1337
|
+
}, 0)) != null ? _table$getHeaderGroup : 0;
|
|
1338
|
+
};
|
|
1339
|
+
table.getLeftTotalSize = () => {
|
|
1340
|
+
var _table$getLeftHeaderG, _table$getLeftHeaderG2;
|
|
1341
|
+
return (_table$getLeftHeaderG = (_table$getLeftHeaderG2 = table.getLeftHeaderGroups()[0]) == null ? void 0 : _table$getLeftHeaderG2.headers.reduce((sum2, header) => {
|
|
1342
|
+
return sum2 + header.getSize();
|
|
1343
|
+
}, 0)) != null ? _table$getLeftHeaderG : 0;
|
|
1344
|
+
};
|
|
1345
|
+
table.getCenterTotalSize = () => {
|
|
1346
|
+
var _table$getCenterHeade, _table$getCenterHeade2;
|
|
1347
|
+
return (_table$getCenterHeade = (_table$getCenterHeade2 = table.getCenterHeaderGroups()[0]) == null ? void 0 : _table$getCenterHeade2.headers.reduce((sum2, header) => {
|
|
1348
|
+
return sum2 + header.getSize();
|
|
1349
|
+
}, 0)) != null ? _table$getCenterHeade : 0;
|
|
1350
|
+
};
|
|
1351
|
+
table.getRightTotalSize = () => {
|
|
1352
|
+
var _table$getRightHeader, _table$getRightHeader2;
|
|
1353
|
+
return (_table$getRightHeader = (_table$getRightHeader2 = table.getRightHeaderGroups()[0]) == null ? void 0 : _table$getRightHeader2.headers.reduce((sum2, header) => {
|
|
1354
|
+
return sum2 + header.getSize();
|
|
1355
|
+
}, 0)) != null ? _table$getRightHeader : 0;
|
|
1356
|
+
};
|
|
1357
|
+
}
|
|
1358
|
+
};
|
|
1359
|
+
var passiveSupported = null;
|
|
1360
|
+
function passiveEventSupported() {
|
|
1361
|
+
if (typeof passiveSupported === "boolean") return passiveSupported;
|
|
1362
|
+
let supported = false;
|
|
1363
|
+
try {
|
|
1364
|
+
const options = {
|
|
1365
|
+
get passive() {
|
|
1366
|
+
supported = true;
|
|
1367
|
+
return false;
|
|
1368
|
+
}
|
|
1369
|
+
};
|
|
1370
|
+
const noop = () => {
|
|
1371
|
+
};
|
|
1372
|
+
window.addEventListener("test", noop, options);
|
|
1373
|
+
window.removeEventListener("test", noop);
|
|
1374
|
+
} catch (err) {
|
|
1375
|
+
supported = false;
|
|
1376
|
+
}
|
|
1377
|
+
passiveSupported = supported;
|
|
1378
|
+
return passiveSupported;
|
|
1379
|
+
}
|
|
1380
|
+
function isTouchStartEvent(e) {
|
|
1381
|
+
return e.type === "touchstart";
|
|
1382
|
+
}
|
|
1383
|
+
var ColumnVisibility = {
|
|
1384
|
+
getInitialState: (state) => {
|
|
1385
|
+
return {
|
|
1386
|
+
columnVisibility: {},
|
|
1387
|
+
...state
|
|
1388
|
+
};
|
|
1389
|
+
},
|
|
1390
|
+
getDefaultOptions: (table) => {
|
|
1391
|
+
return {
|
|
1392
|
+
onColumnVisibilityChange: makeStateUpdater("columnVisibility", table)
|
|
1393
|
+
};
|
|
1394
|
+
},
|
|
1395
|
+
createColumn: (column, table) => {
|
|
1396
|
+
column.toggleVisibility = (value) => {
|
|
1397
|
+
if (column.getCanHide()) {
|
|
1398
|
+
table.setColumnVisibility((old) => ({
|
|
1399
|
+
...old,
|
|
1400
|
+
[column.id]: value != null ? value : !column.getIsVisible()
|
|
1401
|
+
}));
|
|
1402
|
+
}
|
|
1403
|
+
};
|
|
1404
|
+
column.getIsVisible = () => {
|
|
1405
|
+
var _ref, _table$getState$colum;
|
|
1406
|
+
const childColumns = column.columns;
|
|
1407
|
+
return (_ref = childColumns.length ? childColumns.some((c) => c.getIsVisible()) : (_table$getState$colum = table.getState().columnVisibility) == null ? void 0 : _table$getState$colum[column.id]) != null ? _ref : true;
|
|
1408
|
+
};
|
|
1409
|
+
column.getCanHide = () => {
|
|
1410
|
+
var _column$columnDef$ena, _table$options$enable;
|
|
1411
|
+
return ((_column$columnDef$ena = column.columnDef.enableHiding) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableHiding) != null ? _table$options$enable : true);
|
|
1412
|
+
};
|
|
1413
|
+
column.getToggleVisibilityHandler = () => {
|
|
1414
|
+
return (e) => {
|
|
1415
|
+
column.toggleVisibility == null || column.toggleVisibility(e.target.checked);
|
|
1416
|
+
};
|
|
1417
|
+
};
|
|
1418
|
+
},
|
|
1419
|
+
createRow: (row, table) => {
|
|
1420
|
+
row._getAllVisibleCells = memo(() => [row.getAllCells(), table.getState().columnVisibility], (cells) => {
|
|
1421
|
+
return cells.filter((cell) => cell.column.getIsVisible());
|
|
1422
|
+
}, getMemoOptions(table.options, "debugRows", "_getAllVisibleCells"));
|
|
1423
|
+
row.getVisibleCells = memo(() => [row.getLeftVisibleCells(), row.getCenterVisibleCells(), row.getRightVisibleCells()], (left, center, right) => [...left, ...center, ...right], getMemoOptions(table.options, "debugRows", "getVisibleCells"));
|
|
1424
|
+
},
|
|
1425
|
+
createTable: (table) => {
|
|
1426
|
+
const makeVisibleColumnsMethod = (key, getColumns) => {
|
|
1427
|
+
return memo(() => [getColumns(), getColumns().filter((d) => d.getIsVisible()).map((d) => d.id).join("_")], (columns2) => {
|
|
1428
|
+
return columns2.filter((d) => d.getIsVisible == null ? void 0 : d.getIsVisible());
|
|
1429
|
+
}, getMemoOptions(table.options, "debugColumns", key));
|
|
1430
|
+
};
|
|
1431
|
+
table.getVisibleFlatColumns = makeVisibleColumnsMethod("getVisibleFlatColumns", () => table.getAllFlatColumns());
|
|
1432
|
+
table.getVisibleLeafColumns = makeVisibleColumnsMethod("getVisibleLeafColumns", () => table.getAllLeafColumns());
|
|
1433
|
+
table.getLeftVisibleLeafColumns = makeVisibleColumnsMethod("getLeftVisibleLeafColumns", () => table.getLeftLeafColumns());
|
|
1434
|
+
table.getRightVisibleLeafColumns = makeVisibleColumnsMethod("getRightVisibleLeafColumns", () => table.getRightLeafColumns());
|
|
1435
|
+
table.getCenterVisibleLeafColumns = makeVisibleColumnsMethod("getCenterVisibleLeafColumns", () => table.getCenterLeafColumns());
|
|
1436
|
+
table.setColumnVisibility = (updater) => table.options.onColumnVisibilityChange == null ? void 0 : table.options.onColumnVisibilityChange(updater);
|
|
1437
|
+
table.resetColumnVisibility = (defaultState) => {
|
|
1438
|
+
var _table$initialState$c;
|
|
1439
|
+
table.setColumnVisibility(defaultState ? {} : (_table$initialState$c = table.initialState.columnVisibility) != null ? _table$initialState$c : {});
|
|
1440
|
+
};
|
|
1441
|
+
table.toggleAllColumnsVisible = (value) => {
|
|
1442
|
+
var _value;
|
|
1443
|
+
value = (_value = value) != null ? _value : !table.getIsAllColumnsVisible();
|
|
1444
|
+
table.setColumnVisibility(table.getAllLeafColumns().reduce((obj, column) => ({
|
|
1445
|
+
...obj,
|
|
1446
|
+
[column.id]: !value ? !(column.getCanHide != null && column.getCanHide()) : value
|
|
1447
|
+
}), {}));
|
|
1448
|
+
};
|
|
1449
|
+
table.getIsAllColumnsVisible = () => !table.getAllLeafColumns().some((column) => !(column.getIsVisible != null && column.getIsVisible()));
|
|
1450
|
+
table.getIsSomeColumnsVisible = () => table.getAllLeafColumns().some((column) => column.getIsVisible == null ? void 0 : column.getIsVisible());
|
|
1451
|
+
table.getToggleAllColumnsVisibilityHandler = () => {
|
|
1452
|
+
return (e) => {
|
|
1453
|
+
var _target;
|
|
1454
|
+
table.toggleAllColumnsVisible((_target = e.target) == null ? void 0 : _target.checked);
|
|
1455
|
+
};
|
|
1456
|
+
};
|
|
1457
|
+
}
|
|
1458
|
+
};
|
|
1459
|
+
function _getVisibleLeafColumns(table, position) {
|
|
1460
|
+
return !position ? table.getVisibleLeafColumns() : position === "center" ? table.getCenterVisibleLeafColumns() : position === "left" ? table.getLeftVisibleLeafColumns() : table.getRightVisibleLeafColumns();
|
|
1461
|
+
}
|
|
1462
|
+
var GlobalFaceting = {
|
|
1463
|
+
createTable: (table) => {
|
|
1464
|
+
table._getGlobalFacetedRowModel = table.options.getFacetedRowModel && table.options.getFacetedRowModel(table, "__global__");
|
|
1465
|
+
table.getGlobalFacetedRowModel = () => {
|
|
1466
|
+
if (table.options.manualFiltering || !table._getGlobalFacetedRowModel) {
|
|
1467
|
+
return table.getPreFilteredRowModel();
|
|
1468
|
+
}
|
|
1469
|
+
return table._getGlobalFacetedRowModel();
|
|
1470
|
+
};
|
|
1471
|
+
table._getGlobalFacetedUniqueValues = table.options.getFacetedUniqueValues && table.options.getFacetedUniqueValues(table, "__global__");
|
|
1472
|
+
table.getGlobalFacetedUniqueValues = () => {
|
|
1473
|
+
if (!table._getGlobalFacetedUniqueValues) {
|
|
1474
|
+
return /* @__PURE__ */ new Map();
|
|
1475
|
+
}
|
|
1476
|
+
return table._getGlobalFacetedUniqueValues();
|
|
1477
|
+
};
|
|
1478
|
+
table._getGlobalFacetedMinMaxValues = table.options.getFacetedMinMaxValues && table.options.getFacetedMinMaxValues(table, "__global__");
|
|
1479
|
+
table.getGlobalFacetedMinMaxValues = () => {
|
|
1480
|
+
if (!table._getGlobalFacetedMinMaxValues) {
|
|
1481
|
+
return;
|
|
1482
|
+
}
|
|
1483
|
+
return table._getGlobalFacetedMinMaxValues();
|
|
1484
|
+
};
|
|
1485
|
+
}
|
|
1486
|
+
};
|
|
1487
|
+
var GlobalFiltering = {
|
|
1488
|
+
getInitialState: (state) => {
|
|
1489
|
+
return {
|
|
1490
|
+
globalFilter: void 0,
|
|
1491
|
+
...state
|
|
1492
|
+
};
|
|
1493
|
+
},
|
|
1494
|
+
getDefaultOptions: (table) => {
|
|
1495
|
+
return {
|
|
1496
|
+
onGlobalFilterChange: makeStateUpdater("globalFilter", table),
|
|
1497
|
+
globalFilterFn: "auto",
|
|
1498
|
+
getColumnCanGlobalFilter: (column) => {
|
|
1499
|
+
var _table$getCoreRowMode;
|
|
1500
|
+
const value = (_table$getCoreRowMode = table.getCoreRowModel().flatRows[0]) == null || (_table$getCoreRowMode = _table$getCoreRowMode._getAllCellsByColumnId()[column.id]) == null ? void 0 : _table$getCoreRowMode.getValue();
|
|
1501
|
+
return typeof value === "string" || typeof value === "number";
|
|
1502
|
+
}
|
|
1503
|
+
};
|
|
1504
|
+
},
|
|
1505
|
+
createColumn: (column, table) => {
|
|
1506
|
+
column.getCanGlobalFilter = () => {
|
|
1507
|
+
var _column$columnDef$ena, _table$options$enable, _table$options$enable2, _table$options$getCol;
|
|
1508
|
+
return ((_column$columnDef$ena = column.columnDef.enableGlobalFilter) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableGlobalFilter) != null ? _table$options$enable : true) && ((_table$options$enable2 = table.options.enableFilters) != null ? _table$options$enable2 : true) && ((_table$options$getCol = table.options.getColumnCanGlobalFilter == null ? void 0 : table.options.getColumnCanGlobalFilter(column)) != null ? _table$options$getCol : true) && !!column.accessorFn;
|
|
1509
|
+
};
|
|
1510
|
+
},
|
|
1511
|
+
createTable: (table) => {
|
|
1512
|
+
table.getGlobalAutoFilterFn = () => {
|
|
1513
|
+
return filterFns.includesString;
|
|
1514
|
+
};
|
|
1515
|
+
table.getGlobalFilterFn = () => {
|
|
1516
|
+
var _table$options$filter, _table$options$filter2;
|
|
1517
|
+
const {
|
|
1518
|
+
globalFilterFn
|
|
1519
|
+
} = table.options;
|
|
1520
|
+
return isFunction(globalFilterFn) ? globalFilterFn : globalFilterFn === "auto" ? table.getGlobalAutoFilterFn() : (_table$options$filter = (_table$options$filter2 = table.options.filterFns) == null ? void 0 : _table$options$filter2[globalFilterFn]) != null ? _table$options$filter : filterFns[globalFilterFn];
|
|
1521
|
+
};
|
|
1522
|
+
table.setGlobalFilter = (updater) => {
|
|
1523
|
+
table.options.onGlobalFilterChange == null || table.options.onGlobalFilterChange(updater);
|
|
1524
|
+
};
|
|
1525
|
+
table.resetGlobalFilter = (defaultState) => {
|
|
1526
|
+
table.setGlobalFilter(defaultState ? void 0 : table.initialState.globalFilter);
|
|
1527
|
+
};
|
|
1528
|
+
}
|
|
1529
|
+
};
|
|
1530
|
+
var RowExpanding = {
|
|
1531
|
+
getInitialState: (state) => {
|
|
1532
|
+
return {
|
|
1533
|
+
expanded: {},
|
|
1534
|
+
...state
|
|
1535
|
+
};
|
|
1536
|
+
},
|
|
1537
|
+
getDefaultOptions: (table) => {
|
|
1538
|
+
return {
|
|
1539
|
+
onExpandedChange: makeStateUpdater("expanded", table),
|
|
1540
|
+
paginateExpandedRows: true
|
|
1541
|
+
};
|
|
1542
|
+
},
|
|
1543
|
+
createTable: (table) => {
|
|
1544
|
+
let registered = false;
|
|
1545
|
+
let queued = false;
|
|
1546
|
+
table._autoResetExpanded = () => {
|
|
1547
|
+
var _ref, _table$options$autoRe;
|
|
1548
|
+
if (!registered) {
|
|
1549
|
+
table._queue(() => {
|
|
1550
|
+
registered = true;
|
|
1551
|
+
});
|
|
1552
|
+
return;
|
|
1553
|
+
}
|
|
1554
|
+
if ((_ref = (_table$options$autoRe = table.options.autoResetAll) != null ? _table$options$autoRe : table.options.autoResetExpanded) != null ? _ref : !table.options.manualExpanding) {
|
|
1555
|
+
if (queued) return;
|
|
1556
|
+
queued = true;
|
|
1557
|
+
table._queue(() => {
|
|
1558
|
+
table.resetExpanded();
|
|
1559
|
+
queued = false;
|
|
1560
|
+
});
|
|
1561
|
+
}
|
|
1562
|
+
};
|
|
1563
|
+
table.setExpanded = (updater) => table.options.onExpandedChange == null ? void 0 : table.options.onExpandedChange(updater);
|
|
1564
|
+
table.toggleAllRowsExpanded = (expanded) => {
|
|
1565
|
+
if (expanded != null ? expanded : !table.getIsAllRowsExpanded()) {
|
|
1566
|
+
table.setExpanded(true);
|
|
1567
|
+
} else {
|
|
1568
|
+
table.setExpanded({});
|
|
1569
|
+
}
|
|
1570
|
+
};
|
|
1571
|
+
table.resetExpanded = (defaultState) => {
|
|
1572
|
+
var _table$initialState$e, _table$initialState;
|
|
1573
|
+
table.setExpanded(defaultState ? {} : (_table$initialState$e = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.expanded) != null ? _table$initialState$e : {});
|
|
1574
|
+
};
|
|
1575
|
+
table.getCanSomeRowsExpand = () => {
|
|
1576
|
+
return table.getPrePaginationRowModel().flatRows.some((row) => row.getCanExpand());
|
|
1577
|
+
};
|
|
1578
|
+
table.getToggleAllRowsExpandedHandler = () => {
|
|
1579
|
+
return (e) => {
|
|
1580
|
+
e.persist == null || e.persist();
|
|
1581
|
+
table.toggleAllRowsExpanded();
|
|
1582
|
+
};
|
|
1583
|
+
};
|
|
1584
|
+
table.getIsSomeRowsExpanded = () => {
|
|
1585
|
+
const expanded = table.getState().expanded;
|
|
1586
|
+
return expanded === true || Object.values(expanded).some(Boolean);
|
|
1587
|
+
};
|
|
1588
|
+
table.getIsAllRowsExpanded = () => {
|
|
1589
|
+
const expanded = table.getState().expanded;
|
|
1590
|
+
if (typeof expanded === "boolean") {
|
|
1591
|
+
return expanded === true;
|
|
1592
|
+
}
|
|
1593
|
+
if (!Object.keys(expanded).length) {
|
|
1594
|
+
return false;
|
|
1595
|
+
}
|
|
1596
|
+
if (table.getRowModel().flatRows.some((row) => !row.getIsExpanded())) {
|
|
1597
|
+
return false;
|
|
1598
|
+
}
|
|
1599
|
+
return true;
|
|
1600
|
+
};
|
|
1601
|
+
table.getExpandedDepth = () => {
|
|
1602
|
+
let maxDepth = 0;
|
|
1603
|
+
const rowIds = table.getState().expanded === true ? Object.keys(table.getRowModel().rowsById) : Object.keys(table.getState().expanded);
|
|
1604
|
+
rowIds.forEach((id) => {
|
|
1605
|
+
const splitId = id.split(".");
|
|
1606
|
+
maxDepth = Math.max(maxDepth, splitId.length);
|
|
1607
|
+
});
|
|
1608
|
+
return maxDepth;
|
|
1609
|
+
};
|
|
1610
|
+
table.getPreExpandedRowModel = () => table.getSortedRowModel();
|
|
1611
|
+
table.getExpandedRowModel = () => {
|
|
1612
|
+
if (!table._getExpandedRowModel && table.options.getExpandedRowModel) {
|
|
1613
|
+
table._getExpandedRowModel = table.options.getExpandedRowModel(table);
|
|
1614
|
+
}
|
|
1615
|
+
if (table.options.manualExpanding || !table._getExpandedRowModel) {
|
|
1616
|
+
return table.getPreExpandedRowModel();
|
|
1617
|
+
}
|
|
1618
|
+
return table._getExpandedRowModel();
|
|
1619
|
+
};
|
|
1620
|
+
},
|
|
1621
|
+
createRow: (row, table) => {
|
|
1622
|
+
row.toggleExpanded = (expanded) => {
|
|
1623
|
+
table.setExpanded((old) => {
|
|
1624
|
+
var _expanded;
|
|
1625
|
+
const exists = old === true ? true : !!(old != null && old[row.id]);
|
|
1626
|
+
let oldExpanded = {};
|
|
1627
|
+
if (old === true) {
|
|
1628
|
+
Object.keys(table.getRowModel().rowsById).forEach((rowId) => {
|
|
1629
|
+
oldExpanded[rowId] = true;
|
|
1630
|
+
});
|
|
1631
|
+
} else {
|
|
1632
|
+
oldExpanded = old;
|
|
1633
|
+
}
|
|
1634
|
+
expanded = (_expanded = expanded) != null ? _expanded : !exists;
|
|
1635
|
+
if (!exists && expanded) {
|
|
1636
|
+
return {
|
|
1637
|
+
...oldExpanded,
|
|
1638
|
+
[row.id]: true
|
|
1639
|
+
};
|
|
1640
|
+
}
|
|
1641
|
+
if (exists && !expanded) {
|
|
1642
|
+
const {
|
|
1643
|
+
[row.id]: _,
|
|
1644
|
+
...rest
|
|
1645
|
+
} = oldExpanded;
|
|
1646
|
+
return rest;
|
|
1647
|
+
}
|
|
1648
|
+
return old;
|
|
1649
|
+
});
|
|
1650
|
+
};
|
|
1651
|
+
row.getIsExpanded = () => {
|
|
1652
|
+
var _table$options$getIsR;
|
|
1653
|
+
const expanded = table.getState().expanded;
|
|
1654
|
+
return !!((_table$options$getIsR = table.options.getIsRowExpanded == null ? void 0 : table.options.getIsRowExpanded(row)) != null ? _table$options$getIsR : expanded === true || (expanded == null ? void 0 : expanded[row.id]));
|
|
1655
|
+
};
|
|
1656
|
+
row.getCanExpand = () => {
|
|
1657
|
+
var _table$options$getRow, _table$options$enable, _row$subRows;
|
|
1658
|
+
return (_table$options$getRow = table.options.getRowCanExpand == null ? void 0 : table.options.getRowCanExpand(row)) != null ? _table$options$getRow : ((_table$options$enable = table.options.enableExpanding) != null ? _table$options$enable : true) && !!((_row$subRows = row.subRows) != null && _row$subRows.length);
|
|
1659
|
+
};
|
|
1660
|
+
row.getIsAllParentsExpanded = () => {
|
|
1661
|
+
let isFullyExpanded = true;
|
|
1662
|
+
let currentRow = row;
|
|
1663
|
+
while (isFullyExpanded && currentRow.parentId) {
|
|
1664
|
+
currentRow = table.getRow(currentRow.parentId, true);
|
|
1665
|
+
isFullyExpanded = currentRow.getIsExpanded();
|
|
1666
|
+
}
|
|
1667
|
+
return isFullyExpanded;
|
|
1668
|
+
};
|
|
1669
|
+
row.getToggleExpandedHandler = () => {
|
|
1670
|
+
const canExpand = row.getCanExpand();
|
|
1671
|
+
return () => {
|
|
1672
|
+
if (!canExpand) return;
|
|
1673
|
+
row.toggleExpanded();
|
|
1674
|
+
};
|
|
1675
|
+
};
|
|
1676
|
+
}
|
|
1677
|
+
};
|
|
1678
|
+
var defaultPageIndex = 0;
|
|
1679
|
+
var defaultPageSize = 10;
|
|
1680
|
+
var getDefaultPaginationState = () => ({
|
|
1681
|
+
pageIndex: defaultPageIndex,
|
|
1682
|
+
pageSize: defaultPageSize
|
|
1683
|
+
});
|
|
1684
|
+
var RowPagination = {
|
|
1685
|
+
getInitialState: (state) => {
|
|
1686
|
+
return {
|
|
1687
|
+
...state,
|
|
1688
|
+
pagination: {
|
|
1689
|
+
...getDefaultPaginationState(),
|
|
1690
|
+
...state == null ? void 0 : state.pagination
|
|
1691
|
+
}
|
|
1692
|
+
};
|
|
1693
|
+
},
|
|
1694
|
+
getDefaultOptions: (table) => {
|
|
1695
|
+
return {
|
|
1696
|
+
onPaginationChange: makeStateUpdater("pagination", table)
|
|
1697
|
+
};
|
|
1698
|
+
},
|
|
1699
|
+
createTable: (table) => {
|
|
1700
|
+
let registered = false;
|
|
1701
|
+
let queued = false;
|
|
1702
|
+
table._autoResetPageIndex = () => {
|
|
1703
|
+
var _ref, _table$options$autoRe;
|
|
1704
|
+
if (!registered) {
|
|
1705
|
+
table._queue(() => {
|
|
1706
|
+
registered = true;
|
|
1707
|
+
});
|
|
1708
|
+
return;
|
|
1709
|
+
}
|
|
1710
|
+
if ((_ref = (_table$options$autoRe = table.options.autoResetAll) != null ? _table$options$autoRe : table.options.autoResetPageIndex) != null ? _ref : !table.options.manualPagination) {
|
|
1711
|
+
if (queued) return;
|
|
1712
|
+
queued = true;
|
|
1713
|
+
table._queue(() => {
|
|
1714
|
+
table.resetPageIndex();
|
|
1715
|
+
queued = false;
|
|
1716
|
+
});
|
|
1717
|
+
}
|
|
1718
|
+
};
|
|
1719
|
+
table.setPagination = (updater) => {
|
|
1720
|
+
const safeUpdater = (old) => {
|
|
1721
|
+
let newState = functionalUpdate(updater, old);
|
|
1722
|
+
return newState;
|
|
1723
|
+
};
|
|
1724
|
+
return table.options.onPaginationChange == null ? void 0 : table.options.onPaginationChange(safeUpdater);
|
|
1725
|
+
};
|
|
1726
|
+
table.resetPagination = (defaultState) => {
|
|
1727
|
+
var _table$initialState$p;
|
|
1728
|
+
table.setPagination(defaultState ? getDefaultPaginationState() : (_table$initialState$p = table.initialState.pagination) != null ? _table$initialState$p : getDefaultPaginationState());
|
|
1729
|
+
};
|
|
1730
|
+
table.setPageIndex = (updater) => {
|
|
1731
|
+
table.setPagination((old) => {
|
|
1732
|
+
let pageIndex = functionalUpdate(updater, old.pageIndex);
|
|
1733
|
+
const maxPageIndex = typeof table.options.pageCount === "undefined" || table.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : table.options.pageCount - 1;
|
|
1734
|
+
pageIndex = Math.max(0, Math.min(pageIndex, maxPageIndex));
|
|
1735
|
+
return {
|
|
1736
|
+
...old,
|
|
1737
|
+
pageIndex
|
|
1738
|
+
};
|
|
1739
|
+
});
|
|
1740
|
+
};
|
|
1741
|
+
table.resetPageIndex = (defaultState) => {
|
|
1742
|
+
var _table$initialState$p2, _table$initialState;
|
|
1743
|
+
table.setPageIndex(defaultState ? defaultPageIndex : (_table$initialState$p2 = (_table$initialState = table.initialState) == null || (_table$initialState = _table$initialState.pagination) == null ? void 0 : _table$initialState.pageIndex) != null ? _table$initialState$p2 : defaultPageIndex);
|
|
1744
|
+
};
|
|
1745
|
+
table.resetPageSize = (defaultState) => {
|
|
1746
|
+
var _table$initialState$p3, _table$initialState2;
|
|
1747
|
+
table.setPageSize(defaultState ? defaultPageSize : (_table$initialState$p3 = (_table$initialState2 = table.initialState) == null || (_table$initialState2 = _table$initialState2.pagination) == null ? void 0 : _table$initialState2.pageSize) != null ? _table$initialState$p3 : defaultPageSize);
|
|
1748
|
+
};
|
|
1749
|
+
table.setPageSize = (updater) => {
|
|
1750
|
+
table.setPagination((old) => {
|
|
1751
|
+
const pageSize = Math.max(1, functionalUpdate(updater, old.pageSize));
|
|
1752
|
+
const topRowIndex = old.pageSize * old.pageIndex;
|
|
1753
|
+
const pageIndex = Math.floor(topRowIndex / pageSize);
|
|
1754
|
+
return {
|
|
1755
|
+
...old,
|
|
1756
|
+
pageIndex,
|
|
1757
|
+
pageSize
|
|
1758
|
+
};
|
|
1759
|
+
});
|
|
1760
|
+
};
|
|
1761
|
+
table.setPageCount = (updater) => table.setPagination((old) => {
|
|
1762
|
+
var _table$options$pageCo;
|
|
1763
|
+
let newPageCount = functionalUpdate(updater, (_table$options$pageCo = table.options.pageCount) != null ? _table$options$pageCo : -1);
|
|
1764
|
+
if (typeof newPageCount === "number") {
|
|
1765
|
+
newPageCount = Math.max(-1, newPageCount);
|
|
1766
|
+
}
|
|
1767
|
+
return {
|
|
1768
|
+
...old,
|
|
1769
|
+
pageCount: newPageCount
|
|
1770
|
+
};
|
|
1771
|
+
});
|
|
1772
|
+
table.getPageOptions = memo(() => [table.getPageCount()], (pageCount) => {
|
|
1773
|
+
let pageOptions = [];
|
|
1774
|
+
if (pageCount && pageCount > 0) {
|
|
1775
|
+
pageOptions = [...new Array(pageCount)].fill(null).map((_, i) => i);
|
|
1776
|
+
}
|
|
1777
|
+
return pageOptions;
|
|
1778
|
+
}, getMemoOptions(table.options, "debugTable", "getPageOptions"));
|
|
1779
|
+
table.getCanPreviousPage = () => table.getState().pagination.pageIndex > 0;
|
|
1780
|
+
table.getCanNextPage = () => {
|
|
1781
|
+
const {
|
|
1782
|
+
pageIndex
|
|
1783
|
+
} = table.getState().pagination;
|
|
1784
|
+
const pageCount = table.getPageCount();
|
|
1785
|
+
if (pageCount === -1) {
|
|
1786
|
+
return true;
|
|
1787
|
+
}
|
|
1788
|
+
if (pageCount === 0) {
|
|
1789
|
+
return false;
|
|
1790
|
+
}
|
|
1791
|
+
return pageIndex < pageCount - 1;
|
|
1792
|
+
};
|
|
1793
|
+
table.previousPage = () => {
|
|
1794
|
+
return table.setPageIndex((old) => old - 1);
|
|
1795
|
+
};
|
|
1796
|
+
table.nextPage = () => {
|
|
1797
|
+
return table.setPageIndex((old) => {
|
|
1798
|
+
return old + 1;
|
|
1799
|
+
});
|
|
1800
|
+
};
|
|
1801
|
+
table.firstPage = () => {
|
|
1802
|
+
return table.setPageIndex(0);
|
|
1803
|
+
};
|
|
1804
|
+
table.lastPage = () => {
|
|
1805
|
+
return table.setPageIndex(table.getPageCount() - 1);
|
|
1806
|
+
};
|
|
1807
|
+
table.getPrePaginationRowModel = () => table.getExpandedRowModel();
|
|
1808
|
+
table.getPaginationRowModel = () => {
|
|
1809
|
+
if (!table._getPaginationRowModel && table.options.getPaginationRowModel) {
|
|
1810
|
+
table._getPaginationRowModel = table.options.getPaginationRowModel(table);
|
|
1811
|
+
}
|
|
1812
|
+
if (table.options.manualPagination || !table._getPaginationRowModel) {
|
|
1813
|
+
return table.getPrePaginationRowModel();
|
|
1814
|
+
}
|
|
1815
|
+
return table._getPaginationRowModel();
|
|
1816
|
+
};
|
|
1817
|
+
table.getPageCount = () => {
|
|
1818
|
+
var _table$options$pageCo2;
|
|
1819
|
+
return (_table$options$pageCo2 = table.options.pageCount) != null ? _table$options$pageCo2 : Math.ceil(table.getRowCount() / table.getState().pagination.pageSize);
|
|
1820
|
+
};
|
|
1821
|
+
table.getRowCount = () => {
|
|
1822
|
+
var _table$options$rowCou;
|
|
1823
|
+
return (_table$options$rowCou = table.options.rowCount) != null ? _table$options$rowCou : table.getPrePaginationRowModel().rows.length;
|
|
1824
|
+
};
|
|
1825
|
+
}
|
|
1826
|
+
};
|
|
1827
|
+
var getDefaultRowPinningState = () => ({
|
|
1828
|
+
top: [],
|
|
1829
|
+
bottom: []
|
|
1830
|
+
});
|
|
1831
|
+
var RowPinning = {
|
|
1832
|
+
getInitialState: (state) => {
|
|
1833
|
+
return {
|
|
1834
|
+
rowPinning: getDefaultRowPinningState(),
|
|
1835
|
+
...state
|
|
1836
|
+
};
|
|
1837
|
+
},
|
|
1838
|
+
getDefaultOptions: (table) => {
|
|
1839
|
+
return {
|
|
1840
|
+
onRowPinningChange: makeStateUpdater("rowPinning", table)
|
|
1841
|
+
};
|
|
1842
|
+
},
|
|
1843
|
+
createRow: (row, table) => {
|
|
1844
|
+
row.pin = (position, includeLeafRows, includeParentRows) => {
|
|
1845
|
+
const leafRowIds = includeLeafRows ? row.getLeafRows().map((_ref) => {
|
|
1846
|
+
let {
|
|
1847
|
+
id
|
|
1848
|
+
} = _ref;
|
|
1849
|
+
return id;
|
|
1850
|
+
}) : [];
|
|
1851
|
+
const parentRowIds = includeParentRows ? row.getParentRows().map((_ref2) => {
|
|
1852
|
+
let {
|
|
1853
|
+
id
|
|
1854
|
+
} = _ref2;
|
|
1855
|
+
return id;
|
|
1856
|
+
}) : [];
|
|
1857
|
+
const rowIds = /* @__PURE__ */ new Set([...parentRowIds, row.id, ...leafRowIds]);
|
|
1858
|
+
table.setRowPinning((old) => {
|
|
1859
|
+
var _old$top3, _old$bottom3;
|
|
1860
|
+
if (position === "bottom") {
|
|
1861
|
+
var _old$top, _old$bottom;
|
|
1862
|
+
return {
|
|
1863
|
+
top: ((_old$top = old == null ? void 0 : old.top) != null ? _old$top : []).filter((d) => !(rowIds != null && rowIds.has(d))),
|
|
1864
|
+
bottom: [...((_old$bottom = old == null ? void 0 : old.bottom) != null ? _old$bottom : []).filter((d) => !(rowIds != null && rowIds.has(d))), ...Array.from(rowIds)]
|
|
1865
|
+
};
|
|
1866
|
+
}
|
|
1867
|
+
if (position === "top") {
|
|
1868
|
+
var _old$top2, _old$bottom2;
|
|
1869
|
+
return {
|
|
1870
|
+
top: [...((_old$top2 = old == null ? void 0 : old.top) != null ? _old$top2 : []).filter((d) => !(rowIds != null && rowIds.has(d))), ...Array.from(rowIds)],
|
|
1871
|
+
bottom: ((_old$bottom2 = old == null ? void 0 : old.bottom) != null ? _old$bottom2 : []).filter((d) => !(rowIds != null && rowIds.has(d)))
|
|
1872
|
+
};
|
|
1873
|
+
}
|
|
1874
|
+
return {
|
|
1875
|
+
top: ((_old$top3 = old == null ? void 0 : old.top) != null ? _old$top3 : []).filter((d) => !(rowIds != null && rowIds.has(d))),
|
|
1876
|
+
bottom: ((_old$bottom3 = old == null ? void 0 : old.bottom) != null ? _old$bottom3 : []).filter((d) => !(rowIds != null && rowIds.has(d)))
|
|
1877
|
+
};
|
|
1878
|
+
});
|
|
1879
|
+
};
|
|
1880
|
+
row.getCanPin = () => {
|
|
1881
|
+
var _ref3;
|
|
1882
|
+
const {
|
|
1883
|
+
enableRowPinning,
|
|
1884
|
+
enablePinning
|
|
1885
|
+
} = table.options;
|
|
1886
|
+
if (typeof enableRowPinning === "function") {
|
|
1887
|
+
return enableRowPinning(row);
|
|
1888
|
+
}
|
|
1889
|
+
return (_ref3 = enableRowPinning != null ? enableRowPinning : enablePinning) != null ? _ref3 : true;
|
|
1890
|
+
};
|
|
1891
|
+
row.getIsPinned = () => {
|
|
1892
|
+
const rowIds = [row.id];
|
|
1893
|
+
const {
|
|
1894
|
+
top,
|
|
1895
|
+
bottom
|
|
1896
|
+
} = table.getState().rowPinning;
|
|
1897
|
+
const isTop = rowIds.some((d) => top == null ? void 0 : top.includes(d));
|
|
1898
|
+
const isBottom = rowIds.some((d) => bottom == null ? void 0 : bottom.includes(d));
|
|
1899
|
+
return isTop ? "top" : isBottom ? "bottom" : false;
|
|
1900
|
+
};
|
|
1901
|
+
row.getPinnedIndex = () => {
|
|
1902
|
+
var _ref4, _visiblePinnedRowIds$;
|
|
1903
|
+
const position = row.getIsPinned();
|
|
1904
|
+
if (!position) return -1;
|
|
1905
|
+
const visiblePinnedRowIds = (_ref4 = position === "top" ? table.getTopRows() : table.getBottomRows()) == null ? void 0 : _ref4.map((_ref5) => {
|
|
1906
|
+
let {
|
|
1907
|
+
id
|
|
1908
|
+
} = _ref5;
|
|
1909
|
+
return id;
|
|
1910
|
+
});
|
|
1911
|
+
return (_visiblePinnedRowIds$ = visiblePinnedRowIds == null ? void 0 : visiblePinnedRowIds.indexOf(row.id)) != null ? _visiblePinnedRowIds$ : -1;
|
|
1912
|
+
};
|
|
1913
|
+
},
|
|
1914
|
+
createTable: (table) => {
|
|
1915
|
+
table.setRowPinning = (updater) => table.options.onRowPinningChange == null ? void 0 : table.options.onRowPinningChange(updater);
|
|
1916
|
+
table.resetRowPinning = (defaultState) => {
|
|
1917
|
+
var _table$initialState$r, _table$initialState;
|
|
1918
|
+
return table.setRowPinning(defaultState ? getDefaultRowPinningState() : (_table$initialState$r = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.rowPinning) != null ? _table$initialState$r : getDefaultRowPinningState());
|
|
1919
|
+
};
|
|
1920
|
+
table.getIsSomeRowsPinned = (position) => {
|
|
1921
|
+
var _pinningState$positio;
|
|
1922
|
+
const pinningState = table.getState().rowPinning;
|
|
1923
|
+
if (!position) {
|
|
1924
|
+
var _pinningState$top, _pinningState$bottom;
|
|
1925
|
+
return Boolean(((_pinningState$top = pinningState.top) == null ? void 0 : _pinningState$top.length) || ((_pinningState$bottom = pinningState.bottom) == null ? void 0 : _pinningState$bottom.length));
|
|
1926
|
+
}
|
|
1927
|
+
return Boolean((_pinningState$positio = pinningState[position]) == null ? void 0 : _pinningState$positio.length);
|
|
1928
|
+
};
|
|
1929
|
+
table._getPinnedRows = (visibleRows, pinnedRowIds, position) => {
|
|
1930
|
+
var _table$options$keepPi;
|
|
1931
|
+
const rows = ((_table$options$keepPi = table.options.keepPinnedRows) != null ? _table$options$keepPi : true) ? (
|
|
1932
|
+
//get all rows that are pinned even if they would not be otherwise visible
|
|
1933
|
+
//account for expanded parent rows, but not pagination or filtering
|
|
1934
|
+
(pinnedRowIds != null ? pinnedRowIds : []).map((rowId) => {
|
|
1935
|
+
const row = table.getRow(rowId, true);
|
|
1936
|
+
return row.getIsAllParentsExpanded() ? row : null;
|
|
1937
|
+
})
|
|
1938
|
+
) : (
|
|
1939
|
+
//else get only visible rows that are pinned
|
|
1940
|
+
(pinnedRowIds != null ? pinnedRowIds : []).map((rowId) => visibleRows.find((row) => row.id === rowId))
|
|
1941
|
+
);
|
|
1942
|
+
return rows.filter(Boolean).map((d) => ({
|
|
1943
|
+
...d,
|
|
1944
|
+
position
|
|
1945
|
+
}));
|
|
1946
|
+
};
|
|
1947
|
+
table.getTopRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.top], (allRows, topPinnedRowIds) => table._getPinnedRows(allRows, topPinnedRowIds, "top"), getMemoOptions(table.options, "debugRows", "getTopRows"));
|
|
1948
|
+
table.getBottomRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.bottom], (allRows, bottomPinnedRowIds) => table._getPinnedRows(allRows, bottomPinnedRowIds, "bottom"), getMemoOptions(table.options, "debugRows", "getBottomRows"));
|
|
1949
|
+
table.getCenterRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.top, table.getState().rowPinning.bottom], (allRows, top, bottom) => {
|
|
1950
|
+
const topAndBottom = /* @__PURE__ */ new Set([...top != null ? top : [], ...bottom != null ? bottom : []]);
|
|
1951
|
+
return allRows.filter((d) => !topAndBottom.has(d.id));
|
|
1952
|
+
}, getMemoOptions(table.options, "debugRows", "getCenterRows"));
|
|
1953
|
+
}
|
|
1954
|
+
};
|
|
1955
|
+
var RowSelection = {
|
|
1956
|
+
getInitialState: (state) => {
|
|
1957
|
+
return {
|
|
1958
|
+
rowSelection: {},
|
|
1959
|
+
...state
|
|
1960
|
+
};
|
|
1961
|
+
},
|
|
1962
|
+
getDefaultOptions: (table) => {
|
|
1963
|
+
return {
|
|
1964
|
+
onRowSelectionChange: makeStateUpdater("rowSelection", table),
|
|
1965
|
+
enableRowSelection: true,
|
|
1966
|
+
enableMultiRowSelection: true,
|
|
1967
|
+
enableSubRowSelection: true
|
|
1968
|
+
// enableGroupingRowSelection: false,
|
|
1969
|
+
// isAdditiveSelectEvent: (e: unknown) => !!e.metaKey,
|
|
1970
|
+
// isInclusiveSelectEvent: (e: unknown) => !!e.shiftKey,
|
|
1971
|
+
};
|
|
1972
|
+
},
|
|
1973
|
+
createTable: (table) => {
|
|
1974
|
+
table.setRowSelection = (updater) => table.options.onRowSelectionChange == null ? void 0 : table.options.onRowSelectionChange(updater);
|
|
1975
|
+
table.resetRowSelection = (defaultState) => {
|
|
1976
|
+
var _table$initialState$r;
|
|
1977
|
+
return table.setRowSelection(defaultState ? {} : (_table$initialState$r = table.initialState.rowSelection) != null ? _table$initialState$r : {});
|
|
1978
|
+
};
|
|
1979
|
+
table.toggleAllRowsSelected = (value) => {
|
|
1980
|
+
table.setRowSelection((old) => {
|
|
1981
|
+
value = typeof value !== "undefined" ? value : !table.getIsAllRowsSelected();
|
|
1982
|
+
const rowSelection = {
|
|
1983
|
+
...old
|
|
1984
|
+
};
|
|
1985
|
+
const preGroupedFlatRows = table.getPreGroupedRowModel().flatRows;
|
|
1986
|
+
if (value) {
|
|
1987
|
+
preGroupedFlatRows.forEach((row) => {
|
|
1988
|
+
if (!row.getCanSelect()) {
|
|
1989
|
+
return;
|
|
1990
|
+
}
|
|
1991
|
+
rowSelection[row.id] = true;
|
|
1992
|
+
});
|
|
1993
|
+
} else {
|
|
1994
|
+
preGroupedFlatRows.forEach((row) => {
|
|
1995
|
+
delete rowSelection[row.id];
|
|
1996
|
+
});
|
|
1997
|
+
}
|
|
1998
|
+
return rowSelection;
|
|
1999
|
+
});
|
|
2000
|
+
};
|
|
2001
|
+
table.toggleAllPageRowsSelected = (value) => table.setRowSelection((old) => {
|
|
2002
|
+
const resolvedValue = typeof value !== "undefined" ? value : !table.getIsAllPageRowsSelected();
|
|
2003
|
+
const rowSelection = {
|
|
2004
|
+
...old
|
|
2005
|
+
};
|
|
2006
|
+
table.getRowModel().rows.forEach((row) => {
|
|
2007
|
+
mutateRowIsSelected(rowSelection, row.id, resolvedValue, true, table);
|
|
2008
|
+
});
|
|
2009
|
+
return rowSelection;
|
|
2010
|
+
});
|
|
2011
|
+
table.getPreSelectedRowModel = () => table.getCoreRowModel();
|
|
2012
|
+
table.getSelectedRowModel = memo(() => [table.getState().rowSelection, table.getCoreRowModel()], (rowSelection, rowModel) => {
|
|
2013
|
+
if (!Object.keys(rowSelection).length) {
|
|
2014
|
+
return {
|
|
2015
|
+
rows: [],
|
|
2016
|
+
flatRows: [],
|
|
2017
|
+
rowsById: {}
|
|
2018
|
+
};
|
|
2019
|
+
}
|
|
2020
|
+
return selectRowsFn(table, rowModel);
|
|
2021
|
+
}, getMemoOptions(table.options, "debugTable", "getSelectedRowModel"));
|
|
2022
|
+
table.getFilteredSelectedRowModel = memo(() => [table.getState().rowSelection, table.getFilteredRowModel()], (rowSelection, rowModel) => {
|
|
2023
|
+
if (!Object.keys(rowSelection).length) {
|
|
2024
|
+
return {
|
|
2025
|
+
rows: [],
|
|
2026
|
+
flatRows: [],
|
|
2027
|
+
rowsById: {}
|
|
2028
|
+
};
|
|
2029
|
+
}
|
|
2030
|
+
return selectRowsFn(table, rowModel);
|
|
2031
|
+
}, getMemoOptions(table.options, "debugTable", "getFilteredSelectedRowModel"));
|
|
2032
|
+
table.getGroupedSelectedRowModel = memo(() => [table.getState().rowSelection, table.getSortedRowModel()], (rowSelection, rowModel) => {
|
|
2033
|
+
if (!Object.keys(rowSelection).length) {
|
|
2034
|
+
return {
|
|
2035
|
+
rows: [],
|
|
2036
|
+
flatRows: [],
|
|
2037
|
+
rowsById: {}
|
|
2038
|
+
};
|
|
2039
|
+
}
|
|
2040
|
+
return selectRowsFn(table, rowModel);
|
|
2041
|
+
}, getMemoOptions(table.options, "debugTable", "getGroupedSelectedRowModel"));
|
|
2042
|
+
table.getIsAllRowsSelected = () => {
|
|
2043
|
+
const preGroupedFlatRows = table.getFilteredRowModel().flatRows;
|
|
2044
|
+
const {
|
|
2045
|
+
rowSelection
|
|
2046
|
+
} = table.getState();
|
|
2047
|
+
let isAllRowsSelected = Boolean(preGroupedFlatRows.length && Object.keys(rowSelection).length);
|
|
2048
|
+
if (isAllRowsSelected) {
|
|
2049
|
+
if (preGroupedFlatRows.some((row) => row.getCanSelect() && !rowSelection[row.id])) {
|
|
2050
|
+
isAllRowsSelected = false;
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
return isAllRowsSelected;
|
|
2054
|
+
};
|
|
2055
|
+
table.getIsAllPageRowsSelected = () => {
|
|
2056
|
+
const paginationFlatRows = table.getPaginationRowModel().flatRows.filter((row) => row.getCanSelect());
|
|
2057
|
+
const {
|
|
2058
|
+
rowSelection
|
|
2059
|
+
} = table.getState();
|
|
2060
|
+
let isAllPageRowsSelected = !!paginationFlatRows.length;
|
|
2061
|
+
if (isAllPageRowsSelected && paginationFlatRows.some((row) => !rowSelection[row.id])) {
|
|
2062
|
+
isAllPageRowsSelected = false;
|
|
2063
|
+
}
|
|
2064
|
+
return isAllPageRowsSelected;
|
|
2065
|
+
};
|
|
2066
|
+
table.getIsSomeRowsSelected = () => {
|
|
2067
|
+
var _table$getState$rowSe;
|
|
2068
|
+
const totalSelected = Object.keys((_table$getState$rowSe = table.getState().rowSelection) != null ? _table$getState$rowSe : {}).length;
|
|
2069
|
+
return totalSelected > 0 && totalSelected < table.getFilteredRowModel().flatRows.length;
|
|
2070
|
+
};
|
|
2071
|
+
table.getIsSomePageRowsSelected = () => {
|
|
2072
|
+
const paginationFlatRows = table.getPaginationRowModel().flatRows;
|
|
2073
|
+
return table.getIsAllPageRowsSelected() ? false : paginationFlatRows.filter((row) => row.getCanSelect()).some((d) => d.getIsSelected() || d.getIsSomeSelected());
|
|
2074
|
+
};
|
|
2075
|
+
table.getToggleAllRowsSelectedHandler = () => {
|
|
2076
|
+
return (e) => {
|
|
2077
|
+
table.toggleAllRowsSelected(e.target.checked);
|
|
2078
|
+
};
|
|
2079
|
+
};
|
|
2080
|
+
table.getToggleAllPageRowsSelectedHandler = () => {
|
|
2081
|
+
return (e) => {
|
|
2082
|
+
table.toggleAllPageRowsSelected(e.target.checked);
|
|
2083
|
+
};
|
|
2084
|
+
};
|
|
2085
|
+
},
|
|
2086
|
+
createRow: (row, table) => {
|
|
2087
|
+
row.toggleSelected = (value, opts) => {
|
|
2088
|
+
const isSelected = row.getIsSelected();
|
|
2089
|
+
table.setRowSelection((old) => {
|
|
2090
|
+
var _opts$selectChildren;
|
|
2091
|
+
value = typeof value !== "undefined" ? value : !isSelected;
|
|
2092
|
+
if (row.getCanSelect() && isSelected === value) {
|
|
2093
|
+
return old;
|
|
2094
|
+
}
|
|
2095
|
+
const selectedRowIds = {
|
|
2096
|
+
...old
|
|
2097
|
+
};
|
|
2098
|
+
mutateRowIsSelected(selectedRowIds, row.id, value, (_opts$selectChildren = opts == null ? void 0 : opts.selectChildren) != null ? _opts$selectChildren : true, table);
|
|
2099
|
+
return selectedRowIds;
|
|
2100
|
+
});
|
|
2101
|
+
};
|
|
2102
|
+
row.getIsSelected = () => {
|
|
2103
|
+
const {
|
|
2104
|
+
rowSelection
|
|
2105
|
+
} = table.getState();
|
|
2106
|
+
return isRowSelected(row, rowSelection);
|
|
2107
|
+
};
|
|
2108
|
+
row.getIsSomeSelected = () => {
|
|
2109
|
+
const {
|
|
2110
|
+
rowSelection
|
|
2111
|
+
} = table.getState();
|
|
2112
|
+
return isSubRowSelected(row, rowSelection) === "some";
|
|
2113
|
+
};
|
|
2114
|
+
row.getIsAllSubRowsSelected = () => {
|
|
2115
|
+
const {
|
|
2116
|
+
rowSelection
|
|
2117
|
+
} = table.getState();
|
|
2118
|
+
return isSubRowSelected(row, rowSelection) === "all";
|
|
2119
|
+
};
|
|
2120
|
+
row.getCanSelect = () => {
|
|
2121
|
+
var _table$options$enable;
|
|
2122
|
+
if (typeof table.options.enableRowSelection === "function") {
|
|
2123
|
+
return table.options.enableRowSelection(row);
|
|
2124
|
+
}
|
|
2125
|
+
return (_table$options$enable = table.options.enableRowSelection) != null ? _table$options$enable : true;
|
|
2126
|
+
};
|
|
2127
|
+
row.getCanSelectSubRows = () => {
|
|
2128
|
+
var _table$options$enable2;
|
|
2129
|
+
if (typeof table.options.enableSubRowSelection === "function") {
|
|
2130
|
+
return table.options.enableSubRowSelection(row);
|
|
2131
|
+
}
|
|
2132
|
+
return (_table$options$enable2 = table.options.enableSubRowSelection) != null ? _table$options$enable2 : true;
|
|
2133
|
+
};
|
|
2134
|
+
row.getCanMultiSelect = () => {
|
|
2135
|
+
var _table$options$enable3;
|
|
2136
|
+
if (typeof table.options.enableMultiRowSelection === "function") {
|
|
2137
|
+
return table.options.enableMultiRowSelection(row);
|
|
2138
|
+
}
|
|
2139
|
+
return (_table$options$enable3 = table.options.enableMultiRowSelection) != null ? _table$options$enable3 : true;
|
|
2140
|
+
};
|
|
2141
|
+
row.getToggleSelectedHandler = () => {
|
|
2142
|
+
const canSelect = row.getCanSelect();
|
|
2143
|
+
return (e) => {
|
|
2144
|
+
var _target;
|
|
2145
|
+
if (!canSelect) return;
|
|
2146
|
+
row.toggleSelected((_target = e.target) == null ? void 0 : _target.checked);
|
|
2147
|
+
};
|
|
2148
|
+
};
|
|
2149
|
+
}
|
|
2150
|
+
};
|
|
2151
|
+
var mutateRowIsSelected = (selectedRowIds, id, value, includeChildren, table) => {
|
|
2152
|
+
var _row$subRows;
|
|
2153
|
+
const row = table.getRow(id, true);
|
|
2154
|
+
if (value) {
|
|
2155
|
+
if (!row.getCanMultiSelect()) {
|
|
2156
|
+
Object.keys(selectedRowIds).forEach((key) => delete selectedRowIds[key]);
|
|
2157
|
+
}
|
|
2158
|
+
if (row.getCanSelect()) {
|
|
2159
|
+
selectedRowIds[id] = true;
|
|
2160
|
+
}
|
|
2161
|
+
} else {
|
|
2162
|
+
delete selectedRowIds[id];
|
|
2163
|
+
}
|
|
2164
|
+
if (includeChildren && (_row$subRows = row.subRows) != null && _row$subRows.length && row.getCanSelectSubRows()) {
|
|
2165
|
+
row.subRows.forEach((row2) => mutateRowIsSelected(selectedRowIds, row2.id, value, includeChildren, table));
|
|
2166
|
+
}
|
|
2167
|
+
};
|
|
2168
|
+
function selectRowsFn(table, rowModel) {
|
|
2169
|
+
const rowSelection = table.getState().rowSelection;
|
|
2170
|
+
const newSelectedFlatRows = [];
|
|
2171
|
+
const newSelectedRowsById = {};
|
|
2172
|
+
const recurseRows = function(rows, depth) {
|
|
2173
|
+
return rows.map((row) => {
|
|
2174
|
+
var _row$subRows2;
|
|
2175
|
+
const isSelected = isRowSelected(row, rowSelection);
|
|
2176
|
+
if (isSelected) {
|
|
2177
|
+
newSelectedFlatRows.push(row);
|
|
2178
|
+
newSelectedRowsById[row.id] = row;
|
|
2179
|
+
}
|
|
2180
|
+
if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length) {
|
|
2181
|
+
row = {
|
|
2182
|
+
...row,
|
|
2183
|
+
subRows: recurseRows(row.subRows)
|
|
2184
|
+
};
|
|
2185
|
+
}
|
|
2186
|
+
if (isSelected) {
|
|
2187
|
+
return row;
|
|
2188
|
+
}
|
|
2189
|
+
}).filter(Boolean);
|
|
2190
|
+
};
|
|
2191
|
+
return {
|
|
2192
|
+
rows: recurseRows(rowModel.rows),
|
|
2193
|
+
flatRows: newSelectedFlatRows,
|
|
2194
|
+
rowsById: newSelectedRowsById
|
|
2195
|
+
};
|
|
2196
|
+
}
|
|
2197
|
+
function isRowSelected(row, selection) {
|
|
2198
|
+
var _selection$row$id;
|
|
2199
|
+
return (_selection$row$id = selection[row.id]) != null ? _selection$row$id : false;
|
|
2200
|
+
}
|
|
2201
|
+
function isSubRowSelected(row, selection, table) {
|
|
2202
|
+
var _row$subRows3;
|
|
2203
|
+
if (!((_row$subRows3 = row.subRows) != null && _row$subRows3.length)) return false;
|
|
2204
|
+
let allChildrenSelected = true;
|
|
2205
|
+
let someSelected = false;
|
|
2206
|
+
row.subRows.forEach((subRow) => {
|
|
2207
|
+
if (someSelected && !allChildrenSelected) {
|
|
2208
|
+
return;
|
|
2209
|
+
}
|
|
2210
|
+
if (subRow.getCanSelect()) {
|
|
2211
|
+
if (isRowSelected(subRow, selection)) {
|
|
2212
|
+
someSelected = true;
|
|
2213
|
+
} else {
|
|
2214
|
+
allChildrenSelected = false;
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
if (subRow.subRows && subRow.subRows.length) {
|
|
2218
|
+
const subRowChildrenSelected = isSubRowSelected(subRow, selection);
|
|
2219
|
+
if (subRowChildrenSelected === "all") {
|
|
2220
|
+
someSelected = true;
|
|
2221
|
+
} else if (subRowChildrenSelected === "some") {
|
|
2222
|
+
someSelected = true;
|
|
2223
|
+
allChildrenSelected = false;
|
|
2224
|
+
} else {
|
|
2225
|
+
allChildrenSelected = false;
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
});
|
|
2229
|
+
return allChildrenSelected ? "all" : someSelected ? "some" : false;
|
|
2230
|
+
}
|
|
2231
|
+
var reSplitAlphaNumeric = /([0-9]+)/gm;
|
|
2232
|
+
var alphanumeric = (rowA, rowB, columnId) => {
|
|
2233
|
+
return compareAlphanumeric(toString(rowA.getValue(columnId)).toLowerCase(), toString(rowB.getValue(columnId)).toLowerCase());
|
|
2234
|
+
};
|
|
2235
|
+
var alphanumericCaseSensitive = (rowA, rowB, columnId) => {
|
|
2236
|
+
return compareAlphanumeric(toString(rowA.getValue(columnId)), toString(rowB.getValue(columnId)));
|
|
2237
|
+
};
|
|
2238
|
+
var text = (rowA, rowB, columnId) => {
|
|
2239
|
+
return compareBasic(toString(rowA.getValue(columnId)).toLowerCase(), toString(rowB.getValue(columnId)).toLowerCase());
|
|
2240
|
+
};
|
|
2241
|
+
var textCaseSensitive = (rowA, rowB, columnId) => {
|
|
2242
|
+
return compareBasic(toString(rowA.getValue(columnId)), toString(rowB.getValue(columnId)));
|
|
2243
|
+
};
|
|
2244
|
+
var datetime = (rowA, rowB, columnId) => {
|
|
2245
|
+
const a = rowA.getValue(columnId);
|
|
2246
|
+
const b = rowB.getValue(columnId);
|
|
2247
|
+
return a > b ? 1 : a < b ? -1 : 0;
|
|
2248
|
+
};
|
|
2249
|
+
var basic = (rowA, rowB, columnId) => {
|
|
2250
|
+
return compareBasic(rowA.getValue(columnId), rowB.getValue(columnId));
|
|
2251
|
+
};
|
|
2252
|
+
function compareBasic(a, b) {
|
|
2253
|
+
return a === b ? 0 : a > b ? 1 : -1;
|
|
2254
|
+
}
|
|
2255
|
+
function toString(a) {
|
|
2256
|
+
if (typeof a === "number") {
|
|
2257
|
+
if (isNaN(a) || a === Infinity || a === -Infinity) {
|
|
2258
|
+
return "";
|
|
2259
|
+
}
|
|
2260
|
+
return String(a);
|
|
2261
|
+
}
|
|
2262
|
+
if (typeof a === "string") {
|
|
2263
|
+
return a;
|
|
2264
|
+
}
|
|
2265
|
+
return "";
|
|
2266
|
+
}
|
|
2267
|
+
function compareAlphanumeric(aStr, bStr) {
|
|
2268
|
+
const a = aStr.split(reSplitAlphaNumeric).filter(Boolean);
|
|
2269
|
+
const b = bStr.split(reSplitAlphaNumeric).filter(Boolean);
|
|
2270
|
+
while (a.length && b.length) {
|
|
2271
|
+
const aa = a.shift();
|
|
2272
|
+
const bb = b.shift();
|
|
2273
|
+
const an = parseInt(aa, 10);
|
|
2274
|
+
const bn = parseInt(bb, 10);
|
|
2275
|
+
const combo = [an, bn].sort();
|
|
2276
|
+
if (isNaN(combo[0])) {
|
|
2277
|
+
if (aa > bb) {
|
|
2278
|
+
return 1;
|
|
2279
|
+
}
|
|
2280
|
+
if (bb > aa) {
|
|
2281
|
+
return -1;
|
|
2282
|
+
}
|
|
2283
|
+
continue;
|
|
2284
|
+
}
|
|
2285
|
+
if (isNaN(combo[1])) {
|
|
2286
|
+
return isNaN(an) ? -1 : 1;
|
|
2287
|
+
}
|
|
2288
|
+
if (an > bn) {
|
|
2289
|
+
return 1;
|
|
2290
|
+
}
|
|
2291
|
+
if (bn > an) {
|
|
2292
|
+
return -1;
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
return a.length - b.length;
|
|
2296
|
+
}
|
|
2297
|
+
var sortingFns = {
|
|
2298
|
+
alphanumeric,
|
|
2299
|
+
alphanumericCaseSensitive,
|
|
2300
|
+
text,
|
|
2301
|
+
textCaseSensitive,
|
|
2302
|
+
datetime,
|
|
2303
|
+
basic
|
|
2304
|
+
};
|
|
2305
|
+
var RowSorting = {
|
|
2306
|
+
getInitialState: (state) => {
|
|
2307
|
+
return {
|
|
2308
|
+
sorting: [],
|
|
2309
|
+
...state
|
|
2310
|
+
};
|
|
2311
|
+
},
|
|
2312
|
+
getDefaultColumnDef: () => {
|
|
2313
|
+
return {
|
|
2314
|
+
sortingFn: "auto",
|
|
2315
|
+
sortUndefined: 1
|
|
2316
|
+
};
|
|
2317
|
+
},
|
|
2318
|
+
getDefaultOptions: (table) => {
|
|
2319
|
+
return {
|
|
2320
|
+
onSortingChange: makeStateUpdater("sorting", table),
|
|
2321
|
+
isMultiSortEvent: (e) => {
|
|
2322
|
+
return e.shiftKey;
|
|
2323
|
+
}
|
|
2324
|
+
};
|
|
2325
|
+
},
|
|
2326
|
+
createColumn: (column, table) => {
|
|
2327
|
+
column.getAutoSortingFn = () => {
|
|
2328
|
+
const firstRows = table.getFilteredRowModel().flatRows.slice(10);
|
|
2329
|
+
let isString = false;
|
|
2330
|
+
for (const row of firstRows) {
|
|
2331
|
+
const value = row == null ? void 0 : row.getValue(column.id);
|
|
2332
|
+
if (Object.prototype.toString.call(value) === "[object Date]") {
|
|
2333
|
+
return sortingFns.datetime;
|
|
2334
|
+
}
|
|
2335
|
+
if (typeof value === "string") {
|
|
2336
|
+
isString = true;
|
|
2337
|
+
if (value.split(reSplitAlphaNumeric).length > 1) {
|
|
2338
|
+
return sortingFns.alphanumeric;
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
if (isString) {
|
|
2343
|
+
return sortingFns.text;
|
|
2344
|
+
}
|
|
2345
|
+
return sortingFns.basic;
|
|
2346
|
+
};
|
|
2347
|
+
column.getAutoSortDir = () => {
|
|
2348
|
+
const firstRow = table.getFilteredRowModel().flatRows[0];
|
|
2349
|
+
const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
|
|
2350
|
+
if (typeof value === "string") {
|
|
2351
|
+
return "asc";
|
|
2352
|
+
}
|
|
2353
|
+
return "desc";
|
|
2354
|
+
};
|
|
2355
|
+
column.getSortingFn = () => {
|
|
2356
|
+
var _table$options$sortin, _table$options$sortin2;
|
|
2357
|
+
if (!column) {
|
|
2358
|
+
throw new Error();
|
|
2359
|
+
}
|
|
2360
|
+
return isFunction(column.columnDef.sortingFn) ? column.columnDef.sortingFn : column.columnDef.sortingFn === "auto" ? column.getAutoSortingFn() : (_table$options$sortin = (_table$options$sortin2 = table.options.sortingFns) == null ? void 0 : _table$options$sortin2[column.columnDef.sortingFn]) != null ? _table$options$sortin : sortingFns[column.columnDef.sortingFn];
|
|
2361
|
+
};
|
|
2362
|
+
column.toggleSorting = (desc, multi) => {
|
|
2363
|
+
const nextSortingOrder = column.getNextSortingOrder();
|
|
2364
|
+
const hasManualValue = typeof desc !== "undefined" && desc !== null;
|
|
2365
|
+
table.setSorting((old) => {
|
|
2366
|
+
const existingSorting = old == null ? void 0 : old.find((d) => d.id === column.id);
|
|
2367
|
+
const existingIndex = old == null ? void 0 : old.findIndex((d) => d.id === column.id);
|
|
2368
|
+
let newSorting = [];
|
|
2369
|
+
let sortAction;
|
|
2370
|
+
let nextDesc = hasManualValue ? desc : nextSortingOrder === "desc";
|
|
2371
|
+
if (old != null && old.length && column.getCanMultiSort() && multi) {
|
|
2372
|
+
if (existingSorting) {
|
|
2373
|
+
sortAction = "toggle";
|
|
2374
|
+
} else {
|
|
2375
|
+
sortAction = "add";
|
|
2376
|
+
}
|
|
2377
|
+
} else {
|
|
2378
|
+
if (old != null && old.length && existingIndex !== old.length - 1) {
|
|
2379
|
+
sortAction = "replace";
|
|
2380
|
+
} else if (existingSorting) {
|
|
2381
|
+
sortAction = "toggle";
|
|
2382
|
+
} else {
|
|
2383
|
+
sortAction = "replace";
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
if (sortAction === "toggle") {
|
|
2387
|
+
if (!hasManualValue) {
|
|
2388
|
+
if (!nextSortingOrder) {
|
|
2389
|
+
sortAction = "remove";
|
|
2390
|
+
}
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
if (sortAction === "add") {
|
|
2394
|
+
var _table$options$maxMul;
|
|
2395
|
+
newSorting = [...old, {
|
|
2396
|
+
id: column.id,
|
|
2397
|
+
desc: nextDesc
|
|
2398
|
+
}];
|
|
2399
|
+
newSorting.splice(0, newSorting.length - ((_table$options$maxMul = table.options.maxMultiSortColCount) != null ? _table$options$maxMul : Number.MAX_SAFE_INTEGER));
|
|
2400
|
+
} else if (sortAction === "toggle") {
|
|
2401
|
+
newSorting = old.map((d) => {
|
|
2402
|
+
if (d.id === column.id) {
|
|
2403
|
+
return {
|
|
2404
|
+
...d,
|
|
2405
|
+
desc: nextDesc
|
|
2406
|
+
};
|
|
2407
|
+
}
|
|
2408
|
+
return d;
|
|
2409
|
+
});
|
|
2410
|
+
} else if (sortAction === "remove") {
|
|
2411
|
+
newSorting = old.filter((d) => d.id !== column.id);
|
|
2412
|
+
} else {
|
|
2413
|
+
newSorting = [{
|
|
2414
|
+
id: column.id,
|
|
2415
|
+
desc: nextDesc
|
|
2416
|
+
}];
|
|
2417
|
+
}
|
|
2418
|
+
return newSorting;
|
|
2419
|
+
});
|
|
2420
|
+
};
|
|
2421
|
+
column.getFirstSortDir = () => {
|
|
2422
|
+
var _ref, _column$columnDef$sor;
|
|
2423
|
+
const sortDescFirst = (_ref = (_column$columnDef$sor = column.columnDef.sortDescFirst) != null ? _column$columnDef$sor : table.options.sortDescFirst) != null ? _ref : column.getAutoSortDir() === "desc";
|
|
2424
|
+
return sortDescFirst ? "desc" : "asc";
|
|
2425
|
+
};
|
|
2426
|
+
column.getNextSortingOrder = (multi) => {
|
|
2427
|
+
var _table$options$enable, _table$options$enable2;
|
|
2428
|
+
const firstSortDirection = column.getFirstSortDir();
|
|
2429
|
+
const isSorted = column.getIsSorted();
|
|
2430
|
+
if (!isSorted) {
|
|
2431
|
+
return firstSortDirection;
|
|
2432
|
+
}
|
|
2433
|
+
if (isSorted !== firstSortDirection && ((_table$options$enable = table.options.enableSortingRemoval) != null ? _table$options$enable : true) && // If enableSortRemove, enable in general
|
|
2434
|
+
(multi ? (_table$options$enable2 = table.options.enableMultiRemove) != null ? _table$options$enable2 : true : true)) {
|
|
2435
|
+
return false;
|
|
2436
|
+
}
|
|
2437
|
+
return isSorted === "desc" ? "asc" : "desc";
|
|
2438
|
+
};
|
|
2439
|
+
column.getCanSort = () => {
|
|
2440
|
+
var _column$columnDef$ena, _table$options$enable3;
|
|
2441
|
+
return ((_column$columnDef$ena = column.columnDef.enableSorting) != null ? _column$columnDef$ena : true) && ((_table$options$enable3 = table.options.enableSorting) != null ? _table$options$enable3 : true) && !!column.accessorFn;
|
|
2442
|
+
};
|
|
2443
|
+
column.getCanMultiSort = () => {
|
|
2444
|
+
var _ref2, _column$columnDef$ena2;
|
|
2445
|
+
return (_ref2 = (_column$columnDef$ena2 = column.columnDef.enableMultiSort) != null ? _column$columnDef$ena2 : table.options.enableMultiSort) != null ? _ref2 : !!column.accessorFn;
|
|
2446
|
+
};
|
|
2447
|
+
column.getIsSorted = () => {
|
|
2448
|
+
var _table$getState$sorti;
|
|
2449
|
+
const columnSort = (_table$getState$sorti = table.getState().sorting) == null ? void 0 : _table$getState$sorti.find((d) => d.id === column.id);
|
|
2450
|
+
return !columnSort ? false : columnSort.desc ? "desc" : "asc";
|
|
2451
|
+
};
|
|
2452
|
+
column.getSortIndex = () => {
|
|
2453
|
+
var _table$getState$sorti2, _table$getState$sorti3;
|
|
2454
|
+
return (_table$getState$sorti2 = (_table$getState$sorti3 = table.getState().sorting) == null ? void 0 : _table$getState$sorti3.findIndex((d) => d.id === column.id)) != null ? _table$getState$sorti2 : -1;
|
|
2455
|
+
};
|
|
2456
|
+
column.clearSorting = () => {
|
|
2457
|
+
table.setSorting((old) => old != null && old.length ? old.filter((d) => d.id !== column.id) : []);
|
|
2458
|
+
};
|
|
2459
|
+
column.getToggleSortingHandler = () => {
|
|
2460
|
+
const canSort = column.getCanSort();
|
|
2461
|
+
return (e) => {
|
|
2462
|
+
if (!canSort) return;
|
|
2463
|
+
e.persist == null || e.persist();
|
|
2464
|
+
column.toggleSorting == null || column.toggleSorting(void 0, column.getCanMultiSort() ? table.options.isMultiSortEvent == null ? void 0 : table.options.isMultiSortEvent(e) : false);
|
|
2465
|
+
};
|
|
2466
|
+
};
|
|
2467
|
+
},
|
|
2468
|
+
createTable: (table) => {
|
|
2469
|
+
table.setSorting = (updater) => table.options.onSortingChange == null ? void 0 : table.options.onSortingChange(updater);
|
|
2470
|
+
table.resetSorting = (defaultState) => {
|
|
2471
|
+
var _table$initialState$s, _table$initialState;
|
|
2472
|
+
table.setSorting(defaultState ? [] : (_table$initialState$s = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.sorting) != null ? _table$initialState$s : []);
|
|
2473
|
+
};
|
|
2474
|
+
table.getPreSortedRowModel = () => table.getGroupedRowModel();
|
|
2475
|
+
table.getSortedRowModel = () => {
|
|
2476
|
+
if (!table._getSortedRowModel && table.options.getSortedRowModel) {
|
|
2477
|
+
table._getSortedRowModel = table.options.getSortedRowModel(table);
|
|
2478
|
+
}
|
|
2479
|
+
if (table.options.manualSorting || !table._getSortedRowModel) {
|
|
2480
|
+
return table.getPreSortedRowModel();
|
|
2481
|
+
}
|
|
2482
|
+
return table._getSortedRowModel();
|
|
2483
|
+
};
|
|
2484
|
+
}
|
|
55
2485
|
};
|
|
2486
|
+
var builtInFeatures = [
|
|
2487
|
+
Headers2,
|
|
2488
|
+
ColumnVisibility,
|
|
2489
|
+
ColumnOrdering,
|
|
2490
|
+
ColumnPinning,
|
|
2491
|
+
ColumnFaceting,
|
|
2492
|
+
ColumnFiltering,
|
|
2493
|
+
GlobalFaceting,
|
|
2494
|
+
//depends on ColumnFaceting
|
|
2495
|
+
GlobalFiltering,
|
|
2496
|
+
//depends on ColumnFiltering
|
|
2497
|
+
RowSorting,
|
|
2498
|
+
ColumnGrouping,
|
|
2499
|
+
//depends on RowSorting
|
|
2500
|
+
RowExpanding,
|
|
2501
|
+
RowPagination,
|
|
2502
|
+
RowPinning,
|
|
2503
|
+
RowSelection,
|
|
2504
|
+
ColumnSizing
|
|
2505
|
+
];
|
|
2506
|
+
function createTable(options) {
|
|
2507
|
+
var _options$_features, _options$initialState;
|
|
2508
|
+
if (process.env.NODE_ENV !== "production" && (options.debugAll || options.debugTable)) {
|
|
2509
|
+
console.info("Creating Table Instance...");
|
|
2510
|
+
}
|
|
2511
|
+
const _features = [...builtInFeatures, ...(_options$_features = options._features) != null ? _options$_features : []];
|
|
2512
|
+
let table = {
|
|
2513
|
+
_features
|
|
2514
|
+
};
|
|
2515
|
+
const defaultOptions = table._features.reduce((obj, feature) => {
|
|
2516
|
+
return Object.assign(obj, feature.getDefaultOptions == null ? void 0 : feature.getDefaultOptions(table));
|
|
2517
|
+
}, {});
|
|
2518
|
+
const mergeOptions = (options2) => {
|
|
2519
|
+
if (table.options.mergeOptions) {
|
|
2520
|
+
return table.options.mergeOptions(defaultOptions, options2);
|
|
2521
|
+
}
|
|
2522
|
+
return {
|
|
2523
|
+
...defaultOptions,
|
|
2524
|
+
...options2
|
|
2525
|
+
};
|
|
2526
|
+
};
|
|
2527
|
+
const coreInitialState = {};
|
|
2528
|
+
let initialState = {
|
|
2529
|
+
...coreInitialState,
|
|
2530
|
+
...(_options$initialState = options.initialState) != null ? _options$initialState : {}
|
|
2531
|
+
};
|
|
2532
|
+
table._features.forEach((feature) => {
|
|
2533
|
+
var _feature$getInitialSt;
|
|
2534
|
+
initialState = (_feature$getInitialSt = feature.getInitialState == null ? void 0 : feature.getInitialState(initialState)) != null ? _feature$getInitialSt : initialState;
|
|
2535
|
+
});
|
|
2536
|
+
const queued = [];
|
|
2537
|
+
let queuedTimeout = false;
|
|
2538
|
+
const coreInstance = {
|
|
2539
|
+
_features,
|
|
2540
|
+
options: {
|
|
2541
|
+
...defaultOptions,
|
|
2542
|
+
...options
|
|
2543
|
+
},
|
|
2544
|
+
initialState,
|
|
2545
|
+
_queue: (cb) => {
|
|
2546
|
+
queued.push(cb);
|
|
2547
|
+
if (!queuedTimeout) {
|
|
2548
|
+
queuedTimeout = true;
|
|
2549
|
+
Promise.resolve().then(() => {
|
|
2550
|
+
while (queued.length) {
|
|
2551
|
+
queued.shift()();
|
|
2552
|
+
}
|
|
2553
|
+
queuedTimeout = false;
|
|
2554
|
+
}).catch((error) => setTimeout(() => {
|
|
2555
|
+
throw error;
|
|
2556
|
+
}));
|
|
2557
|
+
}
|
|
2558
|
+
},
|
|
2559
|
+
reset: () => {
|
|
2560
|
+
table.setState(table.initialState);
|
|
2561
|
+
},
|
|
2562
|
+
setOptions: (updater) => {
|
|
2563
|
+
const newOptions = functionalUpdate(updater, table.options);
|
|
2564
|
+
table.options = mergeOptions(newOptions);
|
|
2565
|
+
},
|
|
2566
|
+
getState: () => {
|
|
2567
|
+
return table.options.state;
|
|
2568
|
+
},
|
|
2569
|
+
setState: (updater) => {
|
|
2570
|
+
table.options.onStateChange == null || table.options.onStateChange(updater);
|
|
2571
|
+
},
|
|
2572
|
+
_getRowId: (row, index, parent) => {
|
|
2573
|
+
var _table$options$getRow;
|
|
2574
|
+
return (_table$options$getRow = table.options.getRowId == null ? void 0 : table.options.getRowId(row, index, parent)) != null ? _table$options$getRow : `${parent ? [parent.id, index].join(".") : index}`;
|
|
2575
|
+
},
|
|
2576
|
+
getCoreRowModel: () => {
|
|
2577
|
+
if (!table._getCoreRowModel) {
|
|
2578
|
+
table._getCoreRowModel = table.options.getCoreRowModel(table);
|
|
2579
|
+
}
|
|
2580
|
+
return table._getCoreRowModel();
|
|
2581
|
+
},
|
|
2582
|
+
// The final calls start at the bottom of the model,
|
|
2583
|
+
// expanded rows, which then work their way up
|
|
2584
|
+
getRowModel: () => {
|
|
2585
|
+
return table.getPaginationRowModel();
|
|
2586
|
+
},
|
|
2587
|
+
//in next version, we should just pass in the row model as the optional 2nd arg
|
|
2588
|
+
getRow: (id, searchAll) => {
|
|
2589
|
+
let row = (searchAll ? table.getPrePaginationRowModel() : table.getRowModel()).rowsById[id];
|
|
2590
|
+
if (!row) {
|
|
2591
|
+
row = table.getCoreRowModel().rowsById[id];
|
|
2592
|
+
if (!row) {
|
|
2593
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2594
|
+
throw new Error(`getRow could not find row with ID: ${id}`);
|
|
2595
|
+
}
|
|
2596
|
+
throw new Error();
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
return row;
|
|
2600
|
+
},
|
|
2601
|
+
_getDefaultColumnDef: memo(() => [table.options.defaultColumn], (defaultColumn) => {
|
|
2602
|
+
var _defaultColumn;
|
|
2603
|
+
defaultColumn = (_defaultColumn = defaultColumn) != null ? _defaultColumn : {};
|
|
2604
|
+
return {
|
|
2605
|
+
header: (props) => {
|
|
2606
|
+
const resolvedColumnDef = props.header.column.columnDef;
|
|
2607
|
+
if (resolvedColumnDef.accessorKey) {
|
|
2608
|
+
return resolvedColumnDef.accessorKey;
|
|
2609
|
+
}
|
|
2610
|
+
if (resolvedColumnDef.accessorFn) {
|
|
2611
|
+
return resolvedColumnDef.id;
|
|
2612
|
+
}
|
|
2613
|
+
return null;
|
|
2614
|
+
},
|
|
2615
|
+
// footer: props => props.header.column.id,
|
|
2616
|
+
cell: (props) => {
|
|
2617
|
+
var _props$renderValue$to, _props$renderValue;
|
|
2618
|
+
return (_props$renderValue$to = (_props$renderValue = props.renderValue()) == null || _props$renderValue.toString == null ? void 0 : _props$renderValue.toString()) != null ? _props$renderValue$to : null;
|
|
2619
|
+
},
|
|
2620
|
+
...table._features.reduce((obj, feature) => {
|
|
2621
|
+
return Object.assign(obj, feature.getDefaultColumnDef == null ? void 0 : feature.getDefaultColumnDef());
|
|
2622
|
+
}, {}),
|
|
2623
|
+
...defaultColumn
|
|
2624
|
+
};
|
|
2625
|
+
}, getMemoOptions(options, "debugColumns", "_getDefaultColumnDef")),
|
|
2626
|
+
_getColumnDefs: () => table.options.columns,
|
|
2627
|
+
getAllColumns: memo(() => [table._getColumnDefs()], (columnDefs) => {
|
|
2628
|
+
const recurseColumns = function(columnDefs2, parent, depth) {
|
|
2629
|
+
if (depth === void 0) {
|
|
2630
|
+
depth = 0;
|
|
2631
|
+
}
|
|
2632
|
+
return columnDefs2.map((columnDef) => {
|
|
2633
|
+
const column = createColumn(table, columnDef, depth, parent);
|
|
2634
|
+
const groupingColumnDef = columnDef;
|
|
2635
|
+
column.columns = groupingColumnDef.columns ? recurseColumns(groupingColumnDef.columns, column, depth + 1) : [];
|
|
2636
|
+
return column;
|
|
2637
|
+
});
|
|
2638
|
+
};
|
|
2639
|
+
return recurseColumns(columnDefs);
|
|
2640
|
+
}, getMemoOptions(options, "debugColumns", "getAllColumns")),
|
|
2641
|
+
getAllFlatColumns: memo(() => [table.getAllColumns()], (allColumns) => {
|
|
2642
|
+
return allColumns.flatMap((column) => {
|
|
2643
|
+
return column.getFlatColumns();
|
|
2644
|
+
});
|
|
2645
|
+
}, getMemoOptions(options, "debugColumns", "getAllFlatColumns")),
|
|
2646
|
+
_getAllFlatColumnsById: memo(() => [table.getAllFlatColumns()], (flatColumns) => {
|
|
2647
|
+
return flatColumns.reduce((acc, column) => {
|
|
2648
|
+
acc[column.id] = column;
|
|
2649
|
+
return acc;
|
|
2650
|
+
}, {});
|
|
2651
|
+
}, getMemoOptions(options, "debugColumns", "getAllFlatColumnsById")),
|
|
2652
|
+
getAllLeafColumns: memo(() => [table.getAllColumns(), table._getOrderColumnsFn()], (allColumns, orderColumns2) => {
|
|
2653
|
+
let leafColumns = allColumns.flatMap((column) => column.getLeafColumns());
|
|
2654
|
+
return orderColumns2(leafColumns);
|
|
2655
|
+
}, getMemoOptions(options, "debugColumns", "getAllLeafColumns")),
|
|
2656
|
+
getColumn: (columnId) => {
|
|
2657
|
+
const column = table._getAllFlatColumnsById()[columnId];
|
|
2658
|
+
if (process.env.NODE_ENV !== "production" && !column) {
|
|
2659
|
+
console.error(`[Table] Column with id '${columnId}' does not exist.`);
|
|
2660
|
+
}
|
|
2661
|
+
return column;
|
|
2662
|
+
}
|
|
2663
|
+
};
|
|
2664
|
+
Object.assign(table, coreInstance);
|
|
2665
|
+
for (let index = 0; index < table._features.length; index++) {
|
|
2666
|
+
const feature = table._features[index];
|
|
2667
|
+
feature == null || feature.createTable == null || feature.createTable(table);
|
|
2668
|
+
}
|
|
2669
|
+
return table;
|
|
2670
|
+
}
|
|
2671
|
+
function getCoreRowModel() {
|
|
2672
|
+
return (table) => memo(() => [table.options.data], (data) => {
|
|
2673
|
+
const rowModel = {
|
|
2674
|
+
rows: [],
|
|
2675
|
+
flatRows: [],
|
|
2676
|
+
rowsById: {}
|
|
2677
|
+
};
|
|
2678
|
+
const accessRows = function(originalRows, depth, parentRow) {
|
|
2679
|
+
if (depth === void 0) {
|
|
2680
|
+
depth = 0;
|
|
2681
|
+
}
|
|
2682
|
+
const rows = [];
|
|
2683
|
+
for (let i = 0; i < originalRows.length; i++) {
|
|
2684
|
+
const row = createRow(table, table._getRowId(originalRows[i], i, parentRow), originalRows[i], i, depth, void 0, parentRow == null ? void 0 : parentRow.id);
|
|
2685
|
+
rowModel.flatRows.push(row);
|
|
2686
|
+
rowModel.rowsById[row.id] = row;
|
|
2687
|
+
rows.push(row);
|
|
2688
|
+
if (table.options.getSubRows) {
|
|
2689
|
+
var _row$originalSubRows;
|
|
2690
|
+
row.originalSubRows = table.options.getSubRows(originalRows[i], i);
|
|
2691
|
+
if ((_row$originalSubRows = row.originalSubRows) != null && _row$originalSubRows.length) {
|
|
2692
|
+
row.subRows = accessRows(row.originalSubRows, depth + 1, row);
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
return rows;
|
|
2697
|
+
};
|
|
2698
|
+
rowModel.rows = accessRows(data);
|
|
2699
|
+
return rowModel;
|
|
2700
|
+
}, getMemoOptions(table.options, "debugTable", "getRowModel", () => table._autoResetPageIndex()));
|
|
2701
|
+
}
|
|
56
2702
|
|
|
57
|
-
//
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
2703
|
+
// node_modules/@tanstack/react-table/build/lib/index.mjs
|
|
2704
|
+
function flexRender(Comp, props) {
|
|
2705
|
+
return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */ React.createElement(Comp, props) : Comp;
|
|
2706
|
+
}
|
|
2707
|
+
function isReactComponent(component) {
|
|
2708
|
+
return isClassComponent(component) || typeof component === "function" || isExoticComponent(component);
|
|
2709
|
+
}
|
|
2710
|
+
function isClassComponent(component) {
|
|
2711
|
+
return typeof component === "function" && (() => {
|
|
2712
|
+
const proto = Object.getPrototypeOf(component);
|
|
2713
|
+
return proto.prototype && proto.prototype.isReactComponent;
|
|
2714
|
+
})();
|
|
2715
|
+
}
|
|
2716
|
+
function isExoticComponent(component) {
|
|
2717
|
+
return typeof component === "object" && typeof component.$$typeof === "symbol" && ["react.memo", "react.forward_ref"].includes(component.$$typeof.description);
|
|
2718
|
+
}
|
|
2719
|
+
function useReactTable(options) {
|
|
2720
|
+
const resolvedOptions = {
|
|
2721
|
+
state: {},
|
|
2722
|
+
// Dummy state
|
|
2723
|
+
onStateChange: () => {
|
|
2724
|
+
},
|
|
2725
|
+
// noop
|
|
2726
|
+
renderFallbackValue: null,
|
|
2727
|
+
...options
|
|
2728
|
+
};
|
|
2729
|
+
const [tableRef] = React.useState(() => ({
|
|
2730
|
+
current: createTable(resolvedOptions)
|
|
2731
|
+
}));
|
|
2732
|
+
const [state, setState] = React.useState(() => tableRef.current.initialState);
|
|
2733
|
+
tableRef.current.setOptions((prev) => ({
|
|
2734
|
+
...prev,
|
|
2735
|
+
...options,
|
|
2736
|
+
state: {
|
|
2737
|
+
...state,
|
|
2738
|
+
...options.state
|
|
2739
|
+
},
|
|
2740
|
+
// Similarly, we'll maintain both our internal state and any user-provided
|
|
2741
|
+
// state.
|
|
2742
|
+
onStateChange: (updater) => {
|
|
2743
|
+
setState(updater);
|
|
2744
|
+
options.onStateChange == null || options.onStateChange(updater);
|
|
2745
|
+
}
|
|
2746
|
+
}));
|
|
2747
|
+
return tableRef.current;
|
|
2748
|
+
}
|
|
65
2749
|
|
|
66
2750
|
// src/components/cells/responsive-timestamp-cell.tsx
|
|
67
2751
|
var import_react2 = require("react");
|
|
@@ -81,75 +2765,6 @@ var ResponsiveTimestampCell = (0, import_react2.memo)(({ date, locale }) => {
|
|
|
81
2765
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { width: "100%" }, children: formattedTime });
|
|
82
2766
|
});
|
|
83
2767
|
|
|
84
|
-
// src/utils/logger.ts
|
|
85
|
-
var getIsDevelopment = () => {
|
|
86
|
-
try {
|
|
87
|
-
return false;
|
|
88
|
-
} catch {
|
|
89
|
-
return false;
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
var isDevelopment = getIsDevelopment();
|
|
93
|
-
var logger = {
|
|
94
|
-
debug: (message, data) => {
|
|
95
|
-
if (isDevelopment) {
|
|
96
|
-
console.debug(`[DEBUG] ${message}`, data === void 0 ? "" : data);
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
error: (message, data) => {
|
|
100
|
-
if (isDevelopment) {
|
|
101
|
-
console.error(`[ERROR] ${message}`, data === void 0 ? "" : data);
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
info: (message, data) => {
|
|
105
|
-
if (isDevelopment) {
|
|
106
|
-
console.info(`[INFO] ${message}`, data === void 0 ? "" : data);
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
warn: (message, data) => {
|
|
110
|
-
if (isDevelopment) {
|
|
111
|
-
console.warn(`[WARN] ${message}`, data === void 0 ? "" : data);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
var createScopedLogger = (scope) => ({
|
|
116
|
-
debug: (message, data) => {
|
|
117
|
-
logger.debug(`[${scope}] ${message}`, data);
|
|
118
|
-
},
|
|
119
|
-
error: (message, data) => {
|
|
120
|
-
logger.error(`[${scope}] ${message}`, data);
|
|
121
|
-
},
|
|
122
|
-
info: (message, data) => {
|
|
123
|
-
logger.info(`[${scope}] ${message}`, data);
|
|
124
|
-
},
|
|
125
|
-
warn: (message, data) => {
|
|
126
|
-
logger.warn(`[${scope}] ${message}`, data);
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
// src/utils/search-in-object.ts
|
|
131
|
-
var searchInObject = (object, searchTerm, skipKeys = []) => {
|
|
132
|
-
if (!object) return false;
|
|
133
|
-
if (!searchTerm || searchTerm.trim() === "") return true;
|
|
134
|
-
const normalizedSearchTerm = searchTerm.toLowerCase().trim();
|
|
135
|
-
if (typeof object === "string") {
|
|
136
|
-
return object.toLowerCase().includes(normalizedSearchTerm);
|
|
137
|
-
}
|
|
138
|
-
if (typeof object === "number") {
|
|
139
|
-
return String(object).toLowerCase().includes(normalizedSearchTerm);
|
|
140
|
-
}
|
|
141
|
-
if (typeof object === "boolean") {
|
|
142
|
-
return String(object).toLowerCase().includes(normalizedSearchTerm);
|
|
143
|
-
}
|
|
144
|
-
if (Array.isArray(object)) {
|
|
145
|
-
return object.some((item) => searchInObject(item, searchTerm, skipKeys));
|
|
146
|
-
}
|
|
147
|
-
if (typeof object === "object") {
|
|
148
|
-
return Object.entries(object).filter(([key]) => !skipKeys.includes(key)).some(([, value]) => searchInObject(value, searchTerm, skipKeys));
|
|
149
|
-
}
|
|
150
|
-
return false;
|
|
151
|
-
};
|
|
152
|
-
|
|
153
2768
|
// src/components/cells/service-cell.tsx
|
|
154
2769
|
var import_material3 = require("@mui/material");
|
|
155
2770
|
var import_react7 = require("react");
|
|
@@ -539,7 +3154,7 @@ var SERVICE_NAME = {
|
|
|
539
3154
|
};
|
|
540
3155
|
|
|
541
3156
|
// src/components/aws-service-icon/icons/account.svg
|
|
542
|
-
var
|
|
3157
|
+
var React2 = __toESM(require("react"));
|
|
543
3158
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
544
3159
|
var SvgAccount = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 40 40", fill: "currentColor", ...props, children: [
|
|
545
3160
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("title", { children: "Icon-Architecture-Group/32/AWS-Account_32" }),
|
|
@@ -551,7 +3166,7 @@ var SvgAccount = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("svg",
|
|
|
551
3166
|
var account_default = SvgAccount;
|
|
552
3167
|
|
|
553
3168
|
// src/components/aws-service-icon/icons/acm-pca.svg
|
|
554
|
-
var
|
|
3169
|
+
var React3 = __toESM(require("react"));
|
|
555
3170
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
556
3171
|
var SvgAcmPca = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
557
3172
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Private-Certificate-Authority_64" }),
|
|
@@ -563,7 +3178,7 @@ var SvgAcmPca = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg",
|
|
|
563
3178
|
var acm_pca_default = SvgAcmPca;
|
|
564
3179
|
|
|
565
3180
|
// src/components/aws-service-icon/icons/acm.svg
|
|
566
|
-
var
|
|
3181
|
+
var React4 = __toESM(require("react"));
|
|
567
3182
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
568
3183
|
var SvgAcm = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 40 40", fill: "currentColor", ...props, children: [
|
|
569
3184
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("title", { children: "Icon-Architecture/32/Arch_AWS-Certificate-Manager_32" }),
|
|
@@ -579,7 +3194,7 @@ var SvgAcm = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("svg", { x
|
|
|
579
3194
|
var acm_default = SvgAcm;
|
|
580
3195
|
|
|
581
3196
|
// src/components/aws-service-icon/icons/amplify.svg
|
|
582
|
-
var
|
|
3197
|
+
var React5 = __toESM(require("react"));
|
|
583
3198
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
584
3199
|
var SvgAmplify = (props) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
585
3200
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Amplify-Console_64" }),
|
|
@@ -595,7 +3210,7 @@ var SvgAmplify = (props) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("svg",
|
|
|
595
3210
|
var amplify_default = SvgAmplify;
|
|
596
3211
|
|
|
597
3212
|
// src/components/aws-service-icon/icons/apigateway.svg
|
|
598
|
-
var
|
|
3213
|
+
var React6 = __toESM(require("react"));
|
|
599
3214
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
600
3215
|
var SvgApigateway = (props) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
601
3216
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("title", { children: "Icon-Architecture/64/Arch_ Amazon-API-Gateway_64" }),
|
|
@@ -611,7 +3226,7 @@ var SvgApigateway = (props) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("sv
|
|
|
611
3226
|
var apigateway_default = SvgApigateway;
|
|
612
3227
|
|
|
613
3228
|
// src/components/aws-service-icon/icons/apigatewaymanagementapi.svg
|
|
614
|
-
var
|
|
3229
|
+
var React7 = __toESM(require("react"));
|
|
615
3230
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
616
3231
|
var SvgApigatewaymanagementapi = (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
617
3232
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("title", { children: "Icon-Architecture/64/Arch_ Amazon-API-Gateway_64" }),
|
|
@@ -627,7 +3242,7 @@ var SvgApigatewaymanagementapi = (props) => /* @__PURE__ */ (0, import_jsx_runti
|
|
|
627
3242
|
var apigatewaymanagementapi_default = SvgApigatewaymanagementapi;
|
|
628
3243
|
|
|
629
3244
|
// src/components/aws-service-icon/icons/apigatewayv2.svg
|
|
630
|
-
var
|
|
3245
|
+
var React8 = __toESM(require("react"));
|
|
631
3246
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
632
3247
|
var SvgApigatewayv2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
633
3248
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("title", { children: "Icon-Architecture/64/Arch_ Amazon-API-Gateway_64" }),
|
|
@@ -643,7 +3258,7 @@ var SvgApigatewayv2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("
|
|
|
643
3258
|
var apigatewayv2_default = SvgApigatewayv2;
|
|
644
3259
|
|
|
645
3260
|
// src/components/aws-service-icon/icons/appconfig.svg
|
|
646
|
-
var
|
|
3261
|
+
var React9 = __toESM(require("react"));
|
|
647
3262
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
648
3263
|
var SvgAppconfig = (props) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
649
3264
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-App-Config_64" }),
|
|
@@ -659,7 +3274,7 @@ var SvgAppconfig = (props) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("sv
|
|
|
659
3274
|
var appconfig_default = SvgAppconfig;
|
|
660
3275
|
|
|
661
3276
|
// src/components/aws-service-icon/icons/application-autoscaling.svg
|
|
662
|
-
var
|
|
3277
|
+
var React10 = __toESM(require("react"));
|
|
663
3278
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
664
3279
|
var SvgApplicationAutoscaling = (props) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
665
3280
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Auto-Scaling_16" }),
|
|
@@ -675,7 +3290,7 @@ var SvgApplicationAutoscaling = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
675
3290
|
var application_autoscaling_default = SvgApplicationAutoscaling;
|
|
676
3291
|
|
|
677
3292
|
// src/components/aws-service-icon/icons/appsync.svg
|
|
678
|
-
var
|
|
3293
|
+
var React11 = __toESM(require("react"));
|
|
679
3294
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
680
3295
|
var SvgAppsync = (props) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
681
3296
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-AppSync_64" }),
|
|
@@ -691,7 +3306,7 @@ var SvgAppsync = (props) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("svg"
|
|
|
691
3306
|
var appsync_default = SvgAppsync;
|
|
692
3307
|
|
|
693
3308
|
// src/components/aws-service-icon/icons/athena.svg
|
|
694
|
-
var
|
|
3309
|
+
var React12 = __toESM(require("react"));
|
|
695
3310
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
696
3311
|
var SvgAthena = (props) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
697
3312
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Athena_64" }),
|
|
@@ -707,7 +3322,7 @@ var SvgAthena = (props) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("svg",
|
|
|
707
3322
|
var athena_default = SvgAthena;
|
|
708
3323
|
|
|
709
3324
|
// src/components/aws-service-icon/icons/autoscaling.svg
|
|
710
|
-
var
|
|
3325
|
+
var React13 = __toESM(require("react"));
|
|
711
3326
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
712
3327
|
var SvgAutoscaling = (props) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
713
3328
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Auto-Scaling_16" }),
|
|
@@ -723,7 +3338,7 @@ var SvgAutoscaling = (props) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("
|
|
|
723
3338
|
var autoscaling_default = SvgAutoscaling;
|
|
724
3339
|
|
|
725
3340
|
// src/components/aws-service-icon/icons/backup.svg
|
|
726
|
-
var
|
|
3341
|
+
var React14 = __toESM(require("react"));
|
|
727
3342
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
728
3343
|
var SvgBackup = (props) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
729
3344
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Backup_64" }),
|
|
@@ -739,7 +3354,7 @@ var SvgBackup = (props) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("svg",
|
|
|
739
3354
|
var backup_default = SvgBackup;
|
|
740
3355
|
|
|
741
3356
|
// src/components/aws-service-icon/icons/batch.svg
|
|
742
|
-
var
|
|
3357
|
+
var React15 = __toESM(require("react"));
|
|
743
3358
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
744
3359
|
var SvgBatch = (props) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
745
3360
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Batch_64" }),
|
|
@@ -755,7 +3370,7 @@ var SvgBatch = (props) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg",
|
|
|
755
3370
|
var batch_default = SvgBatch;
|
|
756
3371
|
|
|
757
3372
|
// src/components/aws-service-icon/icons/bedrock.svg
|
|
758
|
-
var
|
|
3373
|
+
var React16 = __toESM(require("react"));
|
|
759
3374
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
760
3375
|
var SvgBedrock = (props) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
761
3376
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Bedrock_64" }),
|
|
@@ -767,7 +3382,7 @@ var SvgBedrock = (props) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("svg"
|
|
|
767
3382
|
var bedrock_default = SvgBedrock;
|
|
768
3383
|
|
|
769
3384
|
// src/components/aws-service-icon/icons/ce.svg
|
|
770
|
-
var
|
|
3385
|
+
var React17 = __toESM(require("react"));
|
|
771
3386
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
772
3387
|
var SvgCe = (props) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
773
3388
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Cost-Explorer_16" }),
|
|
@@ -783,7 +3398,7 @@ var SvgCe = (props) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { x
|
|
|
783
3398
|
var ce_default = SvgCe;
|
|
784
3399
|
|
|
785
3400
|
// src/components/aws-service-icon/icons/cloudcontrol.svg
|
|
786
|
-
var
|
|
3401
|
+
var React18 = __toESM(require("react"));
|
|
787
3402
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
788
3403
|
var SvgCloudcontrol = (props) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
789
3404
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Cloud-Control-API_64" }),
|
|
@@ -795,7 +3410,7 @@ var SvgCloudcontrol = (props) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
|
795
3410
|
var cloudcontrol_default = SvgCloudcontrol;
|
|
796
3411
|
|
|
797
3412
|
// src/components/aws-service-icon/icons/cloudformation.svg
|
|
798
|
-
var
|
|
3413
|
+
var React19 = __toESM(require("react"));
|
|
799
3414
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
800
3415
|
var SvgCloudformation = (props) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
801
3416
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-CloudFormation_64" }),
|
|
@@ -811,7 +3426,7 @@ var SvgCloudformation = (props) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs
|
|
|
811
3426
|
var cloudformation_default = SvgCloudformation;
|
|
812
3427
|
|
|
813
3428
|
// src/components/aws-service-icon/icons/cloudfront.svg
|
|
814
|
-
var
|
|
3429
|
+
var React20 = __toESM(require("react"));
|
|
815
3430
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
816
3431
|
var SvgCloudfront = (props) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
817
3432
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-CloudFront_64" }),
|
|
@@ -827,7 +3442,7 @@ var SvgCloudfront = (props) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("s
|
|
|
827
3442
|
var cloudfront_default = SvgCloudfront;
|
|
828
3443
|
|
|
829
3444
|
// src/components/aws-service-icon/icons/cloudtrail.svg
|
|
830
|
-
var
|
|
3445
|
+
var React21 = __toESM(require("react"));
|
|
831
3446
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
832
3447
|
var SvgCloudtrail = (props) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
833
3448
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Cloud-Trail_64" }),
|
|
@@ -843,7 +3458,7 @@ var SvgCloudtrail = (props) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("s
|
|
|
843
3458
|
var cloudtrail_default = SvgCloudtrail;
|
|
844
3459
|
|
|
845
3460
|
// src/components/aws-service-icon/icons/cloudwatch.svg
|
|
846
|
-
var
|
|
3461
|
+
var React22 = __toESM(require("react"));
|
|
847
3462
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
848
3463
|
var SvgCloudwatch = (props) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
849
3464
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-CloudWatch_64" }),
|
|
@@ -859,7 +3474,7 @@ var SvgCloudwatch = (props) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("s
|
|
|
859
3474
|
var cloudwatch_default = SvgCloudwatch;
|
|
860
3475
|
|
|
861
3476
|
// src/components/aws-service-icon/icons/codeartifact.svg
|
|
862
|
-
var
|
|
3477
|
+
var React23 = __toESM(require("react"));
|
|
863
3478
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
864
3479
|
var SvgCodeartifact = (props) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
865
3480
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-CodeArtifact_64" }),
|
|
@@ -871,7 +3486,7 @@ var SvgCodeartifact = (props) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
|
871
3486
|
var codeartifact_default = SvgCodeartifact;
|
|
872
3487
|
|
|
873
3488
|
// src/components/aws-service-icon/icons/codebuild.svg
|
|
874
|
-
var
|
|
3489
|
+
var React24 = __toESM(require("react"));
|
|
875
3490
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
876
3491
|
var SvgCodebuild = (props) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
877
3492
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-CodeBuild_64" }),
|
|
@@ -883,7 +3498,7 @@ var SvgCodebuild = (props) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("sv
|
|
|
883
3498
|
var codebuild_default = SvgCodebuild;
|
|
884
3499
|
|
|
885
3500
|
// src/components/aws-service-icon/icons/codecommit.svg
|
|
886
|
-
var
|
|
3501
|
+
var React25 = __toESM(require("react"));
|
|
887
3502
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
888
3503
|
var SvgCodecommit = (props) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
889
3504
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-CodeCommit_64" }),
|
|
@@ -899,7 +3514,7 @@ var SvgCodecommit = (props) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("s
|
|
|
899
3514
|
var codecommit_default = SvgCodecommit;
|
|
900
3515
|
|
|
901
3516
|
// src/components/aws-service-icon/icons/codeconnections.svg
|
|
902
|
-
var
|
|
3517
|
+
var React26 = __toESM(require("react"));
|
|
903
3518
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
904
3519
|
var SvgCodeconnections = (props) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
905
3520
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-CodeStar_64" }),
|
|
@@ -911,7 +3526,7 @@ var SvgCodeconnections = (props) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx
|
|
|
911
3526
|
var codeconnections_default = SvgCodeconnections;
|
|
912
3527
|
|
|
913
3528
|
// src/components/aws-service-icon/icons/codedeploy.svg
|
|
914
|
-
var
|
|
3529
|
+
var React27 = __toESM(require("react"));
|
|
915
3530
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
916
3531
|
var SvgCodedeploy = (props) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
917
3532
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-CodeDeploy_64" }),
|
|
@@ -923,7 +3538,7 @@ var SvgCodedeploy = (props) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("s
|
|
|
923
3538
|
var codedeploy_default = SvgCodedeploy;
|
|
924
3539
|
|
|
925
3540
|
// src/components/aws-service-icon/icons/codepipeline.svg
|
|
926
|
-
var
|
|
3541
|
+
var React28 = __toESM(require("react"));
|
|
927
3542
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
928
3543
|
var SvgCodepipeline = (props) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
929
3544
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-CodePipeline_64" }),
|
|
@@ -935,7 +3550,7 @@ var SvgCodepipeline = (props) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
|
935
3550
|
var codepipeline_default = SvgCodepipeline;
|
|
936
3551
|
|
|
937
3552
|
// src/components/aws-service-icon/icons/codestar-connections.svg
|
|
938
|
-
var
|
|
3553
|
+
var React29 = __toESM(require("react"));
|
|
939
3554
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
940
3555
|
var SvgCodestarConnections = (props) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
941
3556
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-CodeStar_64" }),
|
|
@@ -947,7 +3562,7 @@ var SvgCodestarConnections = (props) => /* @__PURE__ */ (0, import_jsx_runtime30
|
|
|
947
3562
|
var codestar_connections_default = SvgCodestarConnections;
|
|
948
3563
|
|
|
949
3564
|
// src/components/aws-service-icon/icons/cognito-identity.svg
|
|
950
|
-
var
|
|
3565
|
+
var React30 = __toESM(require("react"));
|
|
951
3566
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
952
3567
|
var SvgCognitoIdentity = (props) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
953
3568
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Cognito_64" }),
|
|
@@ -963,7 +3578,7 @@ var SvgCognitoIdentity = (props) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx
|
|
|
963
3578
|
var cognito_identity_default = SvgCognitoIdentity;
|
|
964
3579
|
|
|
965
3580
|
// src/components/aws-service-icon/icons/cognito-idp.svg
|
|
966
|
-
var
|
|
3581
|
+
var React31 = __toESM(require("react"));
|
|
967
3582
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
968
3583
|
var SvgCognitoIdp = (props) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
969
3584
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Cognito_64" }),
|
|
@@ -979,7 +3594,7 @@ var SvgCognitoIdp = (props) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("s
|
|
|
979
3594
|
var cognito_idp_default = SvgCognitoIdp;
|
|
980
3595
|
|
|
981
3596
|
// src/components/aws-service-icon/icons/config.svg
|
|
982
|
-
var
|
|
3597
|
+
var React32 = __toESM(require("react"));
|
|
983
3598
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
984
3599
|
var SvgConfig = (props) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
985
3600
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Config_16" }),
|
|
@@ -995,7 +3610,7 @@ var SvgConfig = (props) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("svg",
|
|
|
995
3610
|
var config_default = SvgConfig;
|
|
996
3611
|
|
|
997
3612
|
// src/components/aws-service-icon/icons/dms.svg
|
|
998
|
-
var
|
|
3613
|
+
var React33 = __toESM(require("react"));
|
|
999
3614
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1000
3615
|
var SvgDms = (props) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1001
3616
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Database-Migration-Service_64" }),
|
|
@@ -1011,7 +3626,7 @@ var SvgDms = (props) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("svg", {
|
|
|
1011
3626
|
var dms_default = SvgDms;
|
|
1012
3627
|
|
|
1013
3628
|
// src/components/aws-service-icon/icons/docdb.svg
|
|
1014
|
-
var
|
|
3629
|
+
var React34 = __toESM(require("react"));
|
|
1015
3630
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1016
3631
|
var SvgDocdb = (props) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1017
3632
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("title", { children: "Icon-Architecture/16/Arch_Amazon-DocumentDB_16" }),
|
|
@@ -1027,7 +3642,7 @@ var SvgDocdb = (props) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("svg",
|
|
|
1027
3642
|
var docdb_default = SvgDocdb;
|
|
1028
3643
|
|
|
1029
3644
|
// src/components/aws-service-icon/icons/dynamodb.svg
|
|
1030
|
-
var
|
|
3645
|
+
var React35 = __toESM(require("react"));
|
|
1031
3646
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1032
3647
|
var SvgDynamodb = (props) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1033
3648
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-DynamoDB_64" }),
|
|
@@ -1043,7 +3658,7 @@ var SvgDynamodb = (props) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("svg
|
|
|
1043
3658
|
var dynamodb_default = SvgDynamodb;
|
|
1044
3659
|
|
|
1045
3660
|
// src/components/aws-service-icon/icons/dynamodbstreams.svg
|
|
1046
|
-
var
|
|
3661
|
+
var React36 = __toESM(require("react"));
|
|
1047
3662
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1048
3663
|
var SvgDynamodbstreams = (props) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1049
3664
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-DynamoDB_64" }),
|
|
@@ -1059,7 +3674,7 @@ var SvgDynamodbstreams = (props) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx
|
|
|
1059
3674
|
var dynamodbstreams_default = SvgDynamodbstreams;
|
|
1060
3675
|
|
|
1061
3676
|
// src/components/aws-service-icon/icons/ec2.svg
|
|
1062
|
-
var
|
|
3677
|
+
var React37 = __toESM(require("react"));
|
|
1063
3678
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1064
3679
|
var SvgEc2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1065
3680
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-EC2_64" }),
|
|
@@ -1075,7 +3690,7 @@ var SvgEc2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("svg", {
|
|
|
1075
3690
|
var ec2_default = SvgEc2;
|
|
1076
3691
|
|
|
1077
3692
|
// src/components/aws-service-icon/icons/ecr.svg
|
|
1078
|
-
var
|
|
3693
|
+
var React38 = __toESM(require("react"));
|
|
1079
3694
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1080
3695
|
var SvgEcr = (props) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1081
3696
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Elastic-Container-Registry_64" }),
|
|
@@ -1091,7 +3706,7 @@ var SvgEcr = (props) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("svg", {
|
|
|
1091
3706
|
var ecr_default = SvgEcr;
|
|
1092
3707
|
|
|
1093
3708
|
// src/components/aws-service-icon/icons/ecs.svg
|
|
1094
|
-
var
|
|
3709
|
+
var React39 = __toESM(require("react"));
|
|
1095
3710
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
1096
3711
|
var SvgEcs = (props) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1097
3712
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Elastic-Container-Service_64" }),
|
|
@@ -1107,7 +3722,7 @@ var SvgEcs = (props) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("svg", {
|
|
|
1107
3722
|
var ecs_default = SvgEcs;
|
|
1108
3723
|
|
|
1109
3724
|
// src/components/aws-service-icon/icons/efs.svg
|
|
1110
|
-
var
|
|
3725
|
+
var React40 = __toESM(require("react"));
|
|
1111
3726
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
1112
3727
|
var SvgEfs = (props) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1113
3728
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("title", { children: "Icon-Architecture/16/Arch_Amazon-Elastic-File-System_16" }),
|
|
@@ -1123,7 +3738,7 @@ var SvgEfs = (props) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("svg", {
|
|
|
1123
3738
|
var efs_default = SvgEfs;
|
|
1124
3739
|
|
|
1125
3740
|
// src/components/aws-service-icon/icons/eks.svg
|
|
1126
|
-
var
|
|
3741
|
+
var React41 = __toESM(require("react"));
|
|
1127
3742
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
1128
3743
|
var SvgEks = (props) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1129
3744
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Elastic-Container-Kubernetes_64" }),
|
|
@@ -1139,7 +3754,7 @@ var SvgEks = (props) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("svg", {
|
|
|
1139
3754
|
var eks_default = SvgEks;
|
|
1140
3755
|
|
|
1141
3756
|
// src/components/aws-service-icon/icons/elasticache.svg
|
|
1142
|
-
var
|
|
3757
|
+
var React42 = __toESM(require("react"));
|
|
1143
3758
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
1144
3759
|
var SvgElasticache = (props) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1145
3760
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-ElastiCache_64" }),
|
|
@@ -1155,7 +3770,7 @@ var SvgElasticache = (props) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("
|
|
|
1155
3770
|
var elasticache_default = SvgElasticache;
|
|
1156
3771
|
|
|
1157
3772
|
// src/components/aws-service-icon/icons/elasticbeanstalk.svg
|
|
1158
|
-
var
|
|
3773
|
+
var React43 = __toESM(require("react"));
|
|
1159
3774
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
1160
3775
|
var SvgElasticbeanstalk = (props) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1161
3776
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Elastic-Beanstalk_16" }),
|
|
@@ -1171,7 +3786,7 @@ var SvgElasticbeanstalk = (props) => /* @__PURE__ */ (0, import_jsx_runtime44.js
|
|
|
1171
3786
|
var elasticbeanstalk_default = SvgElasticbeanstalk;
|
|
1172
3787
|
|
|
1173
3788
|
// src/components/aws-service-icon/icons/elasticsearch.svg
|
|
1174
|
-
var
|
|
3789
|
+
var React44 = __toESM(require("react"));
|
|
1175
3790
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
1176
3791
|
var SvgElasticsearch = (props) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1177
3792
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Elasticsearch-Service_64" }),
|
|
@@ -1187,7 +3802,7 @@ var SvgElasticsearch = (props) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)
|
|
|
1187
3802
|
var elasticsearch_default = SvgElasticsearch;
|
|
1188
3803
|
|
|
1189
3804
|
// src/components/aws-service-icon/icons/elastictranscoder.svg
|
|
1190
|
-
var
|
|
3805
|
+
var React45 = __toESM(require("react"));
|
|
1191
3806
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
1192
3807
|
var SvgElastictranscoder = (props) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1193
3808
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Elastic-Transcoder_64" }),
|
|
@@ -1199,7 +3814,7 @@ var SvgElastictranscoder = (props) => /* @__PURE__ */ (0, import_jsx_runtime46.j
|
|
|
1199
3814
|
var elastictranscoder_default = SvgElastictranscoder;
|
|
1200
3815
|
|
|
1201
3816
|
// src/components/aws-service-icon/icons/elb.svg
|
|
1202
|
-
var
|
|
3817
|
+
var React46 = __toESM(require("react"));
|
|
1203
3818
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
1204
3819
|
var SvgElb = (props) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 40 40", fill: "currentColor", ...props, children: [
|
|
1205
3820
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("title", { children: "Icon-Architecture/32/Arch_Elastic-Load-Balancing_32" }),
|
|
@@ -1215,7 +3830,7 @@ var SvgElb = (props) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("svg", {
|
|
|
1215
3830
|
var elb_default = SvgElb;
|
|
1216
3831
|
|
|
1217
3832
|
// src/components/aws-service-icon/icons/elbv2.svg
|
|
1218
|
-
var
|
|
3833
|
+
var React47 = __toESM(require("react"));
|
|
1219
3834
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1220
3835
|
var SvgElbv2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 40 40", fill: "currentColor", ...props, children: [
|
|
1221
3836
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("title", { children: "Icon-Architecture/32/Arch_Elastic-Load-Balancing_32" }),
|
|
@@ -1231,7 +3846,7 @@ var SvgElbv2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("svg",
|
|
|
1231
3846
|
var elbv2_default = SvgElbv2;
|
|
1232
3847
|
|
|
1233
3848
|
// src/components/aws-service-icon/icons/emr-serverless.svg
|
|
1234
|
-
var
|
|
3849
|
+
var React48 = __toESM(require("react"));
|
|
1235
3850
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
1236
3851
|
var SvgEmrServerless = (props) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1237
3852
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-EMR_64" }),
|
|
@@ -1247,7 +3862,7 @@ var SvgEmrServerless = (props) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)
|
|
|
1247
3862
|
var emr_serverless_default = SvgEmrServerless;
|
|
1248
3863
|
|
|
1249
3864
|
// src/components/aws-service-icon/icons/emr.svg
|
|
1250
|
-
var
|
|
3865
|
+
var React49 = __toESM(require("react"));
|
|
1251
3866
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1252
3867
|
var SvgEmr = (props) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1253
3868
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-EMR_64" }),
|
|
@@ -1263,7 +3878,7 @@ var SvgEmr = (props) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("svg", {
|
|
|
1263
3878
|
var emr_default = SvgEmr;
|
|
1264
3879
|
|
|
1265
3880
|
// src/components/aws-service-icon/icons/events.svg
|
|
1266
|
-
var
|
|
3881
|
+
var React50 = __toESM(require("react"));
|
|
1267
3882
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
1268
3883
|
var SvgEvents = (props) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1269
3884
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-EventBridge_64" }),
|
|
@@ -1279,7 +3894,7 @@ var SvgEvents = (props) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("svg",
|
|
|
1279
3894
|
var events_default = SvgEvents;
|
|
1280
3895
|
|
|
1281
3896
|
// src/components/aws-service-icon/icons/firehose.svg
|
|
1282
|
-
var
|
|
3897
|
+
var React51 = __toESM(require("react"));
|
|
1283
3898
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
1284
3899
|
var SvgFirehose = (props) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1285
3900
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Kinesis-Firehose_64" }),
|
|
@@ -1295,7 +3910,7 @@ var SvgFirehose = (props) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("svg
|
|
|
1295
3910
|
var firehose_default = SvgFirehose;
|
|
1296
3911
|
|
|
1297
3912
|
// src/components/aws-service-icon/icons/fis.svg
|
|
1298
|
-
var
|
|
3913
|
+
var React52 = __toESM(require("react"));
|
|
1299
3914
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
1300
3915
|
var SvgFis = (props) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1301
3916
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Valkyrie_16" }),
|
|
@@ -1311,7 +3926,7 @@ var SvgFis = (props) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("svg", {
|
|
|
1311
3926
|
var fis_default = SvgFis;
|
|
1312
3927
|
|
|
1313
3928
|
// src/components/aws-service-icon/icons/glacier.svg
|
|
1314
|
-
var
|
|
3929
|
+
var React53 = __toESM(require("react"));
|
|
1315
3930
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
1316
3931
|
var SvgGlacier = (props) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1317
3932
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Glacier_64" }),
|
|
@@ -1327,7 +3942,7 @@ var SvgGlacier = (props) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("svg"
|
|
|
1327
3942
|
var glacier_default = SvgGlacier;
|
|
1328
3943
|
|
|
1329
3944
|
// src/components/aws-service-icon/icons/glue.svg
|
|
1330
|
-
var
|
|
3945
|
+
var React54 = __toESM(require("react"));
|
|
1331
3946
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
1332
3947
|
var SvgGlue = (props) => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1333
3948
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Glue_64" }),
|
|
@@ -1343,7 +3958,7 @@ var SvgGlue = (props) => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("svg", {
|
|
|
1343
3958
|
var glue_default = SvgGlue;
|
|
1344
3959
|
|
|
1345
3960
|
// src/components/aws-service-icon/icons/iam.svg
|
|
1346
|
-
var
|
|
3961
|
+
var React55 = __toESM(require("react"));
|
|
1347
3962
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
1348
3963
|
var SvgIam = (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1349
3964
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Identity-and-Access-Management_64" }),
|
|
@@ -1359,7 +3974,7 @@ var SvgIam = (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("svg", {
|
|
|
1359
3974
|
var iam_default = SvgIam;
|
|
1360
3975
|
|
|
1361
3976
|
// src/components/aws-service-icon/icons/identitystore.svg
|
|
1362
|
-
var
|
|
3977
|
+
var React56 = __toESM(require("react"));
|
|
1363
3978
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
1364
3979
|
var SvgIdentitystore = (props) => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1365
3980
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-IAM-Identity-Center_64" }),
|
|
@@ -1371,7 +3986,7 @@ var SvgIdentitystore = (props) => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)
|
|
|
1371
3986
|
var identitystore_default = SvgIdentitystore;
|
|
1372
3987
|
|
|
1373
3988
|
// src/components/aws-service-icon/icons/infrastructure.svg
|
|
1374
|
-
var
|
|
3989
|
+
var React57 = __toESM(require("react"));
|
|
1375
3990
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
1376
3991
|
var SvgInfrastructure = (props) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "152.322 142.26 200 200", width: "1em", height: "1em", fill: "currentColor", ...props, children: [
|
|
1377
3992
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("defs", { children: [
|
|
@@ -1410,7 +4025,7 @@ var SvgInfrastructure = (props) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs
|
|
|
1410
4025
|
var infrastructure_default = SvgInfrastructure;
|
|
1411
4026
|
|
|
1412
4027
|
// src/components/aws-service-icon/icons/iot-data.svg
|
|
1413
|
-
var
|
|
4028
|
+
var React58 = __toESM(require("react"));
|
|
1414
4029
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
1415
4030
|
var SvgIotData = (props) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1416
4031
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-IoT-Core_64" }),
|
|
@@ -1426,7 +4041,7 @@ var SvgIotData = (props) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("svg"
|
|
|
1426
4041
|
var iot_data_default = SvgIotData;
|
|
1427
4042
|
|
|
1428
4043
|
// src/components/aws-service-icon/icons/iot.svg
|
|
1429
|
-
var
|
|
4044
|
+
var React59 = __toESM(require("react"));
|
|
1430
4045
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
1431
4046
|
var SvgIot = (props) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1432
4047
|
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-IoT-Core_64" }),
|
|
@@ -1442,7 +4057,7 @@ var SvgIot = (props) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("svg", {
|
|
|
1442
4057
|
var iot_default = SvgIot;
|
|
1443
4058
|
|
|
1444
4059
|
// src/components/aws-service-icon/icons/iotanalytics.svg
|
|
1445
|
-
var
|
|
4060
|
+
var React60 = __toESM(require("react"));
|
|
1446
4061
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
1447
4062
|
var SvgIotanalytics = (props) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1448
4063
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-IoT-Core_64" }),
|
|
@@ -1458,7 +4073,7 @@ var SvgIotanalytics = (props) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
|
1458
4073
|
var iotanalytics_default = SvgIotanalytics;
|
|
1459
4074
|
|
|
1460
4075
|
// src/components/aws-service-icon/icons/iotwireless.svg
|
|
1461
|
-
var
|
|
4076
|
+
var React61 = __toESM(require("react"));
|
|
1462
4077
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
1463
4078
|
var SvgIotwireless = (props) => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1464
4079
|
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-IoT-Core_64" }),
|
|
@@ -1474,7 +4089,7 @@ var SvgIotwireless = (props) => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("
|
|
|
1474
4089
|
var iotwireless_default = SvgIotwireless;
|
|
1475
4090
|
|
|
1476
4091
|
// src/components/aws-service-icon/icons/kafka.svg
|
|
1477
|
-
var
|
|
4092
|
+
var React62 = __toESM(require("react"));
|
|
1478
4093
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
1479
4094
|
var SvgKafka = (props) => /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1480
4095
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("title", { children: "Icon-Architecture/16/Arch_Amazon-Managed-Streaming-for-Kafka_16" }),
|
|
@@ -1490,7 +4105,7 @@ var SvgKafka = (props) => /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("svg",
|
|
|
1490
4105
|
var kafka_default = SvgKafka;
|
|
1491
4106
|
|
|
1492
4107
|
// src/components/aws-service-icon/icons/kinesis.svg
|
|
1493
|
-
var
|
|
4108
|
+
var React63 = __toESM(require("react"));
|
|
1494
4109
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
1495
4110
|
var SvgKinesis = (props) => /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1496
4111
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Kinesis_64" }),
|
|
@@ -1506,7 +4121,7 @@ var SvgKinesis = (props) => /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("svg"
|
|
|
1506
4121
|
var kinesis_default = SvgKinesis;
|
|
1507
4122
|
|
|
1508
4123
|
// src/components/aws-service-icon/icons/kinesisanalytics.svg
|
|
1509
|
-
var
|
|
4124
|
+
var React64 = __toESM(require("react"));
|
|
1510
4125
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
1511
4126
|
var SvgKinesisanalytics = (props) => /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1512
4127
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Kinesis_64" }),
|
|
@@ -1522,7 +4137,7 @@ var SvgKinesisanalytics = (props) => /* @__PURE__ */ (0, import_jsx_runtime65.js
|
|
|
1522
4137
|
var kinesisanalytics_default = SvgKinesisanalytics;
|
|
1523
4138
|
|
|
1524
4139
|
// src/components/aws-service-icon/icons/kinesisanalyticsv2.svg
|
|
1525
|
-
var
|
|
4140
|
+
var React65 = __toESM(require("react"));
|
|
1526
4141
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
1527
4142
|
var SvgKinesisanalyticsv2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1528
4143
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Kinesis_64" }),
|
|
@@ -1538,7 +4153,7 @@ var SvgKinesisanalyticsv2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime66.
|
|
|
1538
4153
|
var kinesisanalyticsv2_default = SvgKinesisanalyticsv2;
|
|
1539
4154
|
|
|
1540
4155
|
// src/components/aws-service-icon/icons/kms.svg
|
|
1541
|
-
var
|
|
4156
|
+
var React66 = __toESM(require("react"));
|
|
1542
4157
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
1543
4158
|
var SvgKms = (props) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1544
4159
|
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Key-Management-Services_64" }),
|
|
@@ -1554,7 +4169,7 @@ var SvgKms = (props) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("svg", {
|
|
|
1554
4169
|
var kms_default = SvgKms;
|
|
1555
4170
|
|
|
1556
4171
|
// src/components/aws-service-icon/icons/lakeformation.svg
|
|
1557
|
-
var
|
|
4172
|
+
var React67 = __toESM(require("react"));
|
|
1558
4173
|
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
1559
4174
|
var SvgLakeformation = (props) => /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1560
4175
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Lake-Formation_16" }),
|
|
@@ -1570,7 +4185,7 @@ var SvgLakeformation = (props) => /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)
|
|
|
1570
4185
|
var lakeformation_default = SvgLakeformation;
|
|
1571
4186
|
|
|
1572
4187
|
// src/components/aws-service-icon/icons/lambda.svg
|
|
1573
|
-
var
|
|
4188
|
+
var React68 = __toESM(require("react"));
|
|
1574
4189
|
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
1575
4190
|
var SvgLambda = (props) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1576
4191
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Lambda_64" }),
|
|
@@ -1586,7 +4201,7 @@ var SvgLambda = (props) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("svg",
|
|
|
1586
4201
|
var lambda_default = SvgLambda;
|
|
1587
4202
|
|
|
1588
4203
|
// src/components/aws-service-icon/icons/logs.svg
|
|
1589
|
-
var
|
|
4204
|
+
var React69 = __toESM(require("react"));
|
|
1590
4205
|
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
1591
4206
|
var SvgLogs = (props) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1592
4207
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-CloudWatch_64" }),
|
|
@@ -1602,7 +4217,7 @@ var SvgLogs = (props) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("svg", {
|
|
|
1602
4217
|
var logs_default = SvgLogs;
|
|
1603
4218
|
|
|
1604
4219
|
// src/components/aws-service-icon/icons/managedblockchain.svg
|
|
1605
|
-
var
|
|
4220
|
+
var React70 = __toESM(require("react"));
|
|
1606
4221
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
1607
4222
|
var SvgManagedblockchain = (props) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1608
4223
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Managed-Blockchain_64" }),
|
|
@@ -1614,7 +4229,7 @@ var SvgManagedblockchain = (props) => /* @__PURE__ */ (0, import_jsx_runtime71.j
|
|
|
1614
4229
|
var managedblockchain_default = SvgManagedblockchain;
|
|
1615
4230
|
|
|
1616
4231
|
// src/components/aws-service-icon/icons/mediaconvert.svg
|
|
1617
|
-
var
|
|
4232
|
+
var React71 = __toESM(require("react"));
|
|
1618
4233
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
1619
4234
|
var SvgMediaconvert = (props) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1620
4235
|
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Elemental-MediaConvert_64" }),
|
|
@@ -1626,7 +4241,7 @@ var SvgMediaconvert = (props) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
1626
4241
|
var mediaconvert_default = SvgMediaconvert;
|
|
1627
4242
|
|
|
1628
4243
|
// src/components/aws-service-icon/icons/mediastore-data.svg
|
|
1629
|
-
var
|
|
4244
|
+
var React72 = __toESM(require("react"));
|
|
1630
4245
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
1631
4246
|
var SvgMediastoreData = (props) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1632
4247
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Elemental-MediaStore_16" }),
|
|
@@ -1642,7 +4257,7 @@ var SvgMediastoreData = (props) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs
|
|
|
1642
4257
|
var mediastore_data_default = SvgMediastoreData;
|
|
1643
4258
|
|
|
1644
4259
|
// src/components/aws-service-icon/icons/mediastore.svg
|
|
1645
|
-
var
|
|
4260
|
+
var React73 = __toESM(require("react"));
|
|
1646
4261
|
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
1647
4262
|
var SvgMediastore = (props) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1648
4263
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Elemental-MediaStore_16" }),
|
|
@@ -1658,7 +4273,7 @@ var SvgMediastore = (props) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("s
|
|
|
1658
4273
|
var mediastore_default = SvgMediastore;
|
|
1659
4274
|
|
|
1660
4275
|
// src/components/aws-service-icon/icons/memorydb.svg
|
|
1661
|
-
var
|
|
4276
|
+
var React74 = __toESM(require("react"));
|
|
1662
4277
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
1663
4278
|
var SvgMemorydb = (props) => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1664
4279
|
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-MemoryDB-for-Redis_64" }),
|
|
@@ -1674,7 +4289,7 @@ var SvgMemorydb = (props) => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("svg
|
|
|
1674
4289
|
var memorydb_default = SvgMemorydb;
|
|
1675
4290
|
|
|
1676
4291
|
// src/components/aws-service-icon/icons/mq.svg
|
|
1677
|
-
var
|
|
4292
|
+
var React75 = __toESM(require("react"));
|
|
1678
4293
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
1679
4294
|
var SvgMq = (props) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1680
4295
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("title", { children: "Icon-Architecture/16/Arch_Amazon-MQ_16" }),
|
|
@@ -1690,7 +4305,7 @@ var SvgMq = (props) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("svg", { x
|
|
|
1690
4305
|
var mq_default = SvgMq;
|
|
1691
4306
|
|
|
1692
4307
|
// src/components/aws-service-icon/icons/mwaa.svg
|
|
1693
|
-
var
|
|
4308
|
+
var React76 = __toESM(require("react"));
|
|
1694
4309
|
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
1695
4310
|
var SvgMwaa = (props) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1696
4311
|
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("title", { children: "Icon-Architecture/16/Arch_CN-Pinwheel_16" }),
|
|
@@ -1706,7 +4321,7 @@ var SvgMwaa = (props) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("svg", {
|
|
|
1706
4321
|
var mwaa_default = SvgMwaa;
|
|
1707
4322
|
|
|
1708
4323
|
// src/components/aws-service-icon/icons/neptune.svg
|
|
1709
|
-
var
|
|
4324
|
+
var React77 = __toESM(require("react"));
|
|
1710
4325
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
1711
4326
|
var SvgNeptune = (props) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1712
4327
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("title", { children: "Icon-Architecture/16/Arch_Amazon-Neptune_16" }),
|
|
@@ -1722,7 +4337,7 @@ var SvgNeptune = (props) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("svg"
|
|
|
1722
4337
|
var neptune_default = SvgNeptune;
|
|
1723
4338
|
|
|
1724
4339
|
// src/components/aws-service-icon/icons/opensearch.svg
|
|
1725
|
-
var
|
|
4340
|
+
var React78 = __toESM(require("react"));
|
|
1726
4341
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
1727
4342
|
var SvgOpensearch = (props) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1728
4343
|
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Elasticsearch-Service_64" }),
|
|
@@ -1738,7 +4353,7 @@ var SvgOpensearch = (props) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("s
|
|
|
1738
4353
|
var opensearch_default = SvgOpensearch;
|
|
1739
4354
|
|
|
1740
4355
|
// src/components/aws-service-icon/icons/organizations.svg
|
|
1741
|
-
var
|
|
4356
|
+
var React79 = __toESM(require("react"));
|
|
1742
4357
|
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
1743
4358
|
var SvgOrganizations = (props) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1744
4359
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Organizations_16" }),
|
|
@@ -1754,7 +4369,7 @@ var SvgOrganizations = (props) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)
|
|
|
1754
4369
|
var organizations_default = SvgOrganizations;
|
|
1755
4370
|
|
|
1756
4371
|
// src/components/aws-service-icon/icons/pinpoint.svg
|
|
1757
|
-
var
|
|
4372
|
+
var React80 = __toESM(require("react"));
|
|
1758
4373
|
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
1759
4374
|
var SvgPinpoint = (props) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1760
4375
|
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Pinpoint-APIs_64" }),
|
|
@@ -1770,7 +4385,7 @@ var SvgPinpoint = (props) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("svg
|
|
|
1770
4385
|
var pinpoint_default = SvgPinpoint;
|
|
1771
4386
|
|
|
1772
4387
|
// src/components/aws-service-icon/icons/pipes.svg
|
|
1773
|
-
var
|
|
4388
|
+
var React81 = __toESM(require("react"));
|
|
1774
4389
|
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
1775
4390
|
var SvgPipes = (props) => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1776
4391
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-EventBridge_64" }),
|
|
@@ -1786,7 +4401,7 @@ var SvgPipes = (props) => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("svg",
|
|
|
1786
4401
|
var pipes_default = SvgPipes;
|
|
1787
4402
|
|
|
1788
4403
|
// src/components/aws-service-icon/icons/qldb-session.svg
|
|
1789
|
-
var
|
|
4404
|
+
var React82 = __toESM(require("react"));
|
|
1790
4405
|
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
1791
4406
|
var SvgQldbSession = (props) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1792
4407
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Quantum-Ledger-Database_64" }),
|
|
@@ -1802,7 +4417,7 @@ var SvgQldbSession = (props) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("
|
|
|
1802
4417
|
var qldb_session_default = SvgQldbSession;
|
|
1803
4418
|
|
|
1804
4419
|
// src/components/aws-service-icon/icons/qldb.svg
|
|
1805
|
-
var
|
|
4420
|
+
var React83 = __toESM(require("react"));
|
|
1806
4421
|
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
1807
4422
|
var SvgQldb = (props) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1808
4423
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Quantum-Ledger-Database_64" }),
|
|
@@ -1818,7 +4433,7 @@ var SvgQldb = (props) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("svg", {
|
|
|
1818
4433
|
var qldb_default = SvgQldb;
|
|
1819
4434
|
|
|
1820
4435
|
// src/components/aws-service-icon/icons/ram.svg
|
|
1821
|
-
var
|
|
4436
|
+
var React84 = __toESM(require("react"));
|
|
1822
4437
|
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
1823
4438
|
var SvgRam = (props) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1824
4439
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Resource-Access-Manager_64" }),
|
|
@@ -1830,7 +4445,7 @@ var SvgRam = (props) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("svg", {
|
|
|
1830
4445
|
var ram_default = SvgRam;
|
|
1831
4446
|
|
|
1832
4447
|
// src/components/aws-service-icon/icons/rds-data.svg
|
|
1833
|
-
var
|
|
4448
|
+
var React85 = __toESM(require("react"));
|
|
1834
4449
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
1835
4450
|
var SvgRdsData = (props) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1836
4451
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-RDS_64" }),
|
|
@@ -1846,7 +4461,7 @@ var SvgRdsData = (props) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("svg"
|
|
|
1846
4461
|
var rds_data_default = SvgRdsData;
|
|
1847
4462
|
|
|
1848
4463
|
// src/components/aws-service-icon/icons/rds.svg
|
|
1849
|
-
var
|
|
4464
|
+
var React86 = __toESM(require("react"));
|
|
1850
4465
|
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
1851
4466
|
var SvgRds = (props) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1852
4467
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-RDS_64" }),
|
|
@@ -1862,7 +4477,7 @@ var SvgRds = (props) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("svg", {
|
|
|
1862
4477
|
var rds_default = SvgRds;
|
|
1863
4478
|
|
|
1864
4479
|
// src/components/aws-service-icon/icons/redshift-data.svg
|
|
1865
|
-
var
|
|
4480
|
+
var React87 = __toESM(require("react"));
|
|
1866
4481
|
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
1867
4482
|
var SvgRedshiftData = (props) => /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1868
4483
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Redshiftct_64" }),
|
|
@@ -1878,7 +4493,7 @@ var SvgRedshiftData = (props) => /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
|
1878
4493
|
var redshift_data_default = SvgRedshiftData;
|
|
1879
4494
|
|
|
1880
4495
|
// src/components/aws-service-icon/icons/redshift.svg
|
|
1881
|
-
var
|
|
4496
|
+
var React88 = __toESM(require("react"));
|
|
1882
4497
|
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
1883
4498
|
var SvgRedshift = (props) => /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1884
4499
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Redshiftct_64" }),
|
|
@@ -1894,7 +4509,7 @@ var SvgRedshift = (props) => /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("svg
|
|
|
1894
4509
|
var redshift_default = SvgRedshift;
|
|
1895
4510
|
|
|
1896
4511
|
// src/components/aws-service-icon/icons/resource-groups.svg
|
|
1897
|
-
var
|
|
4512
|
+
var React89 = __toESM(require("react"));
|
|
1898
4513
|
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
1899
4514
|
var SvgResourceGroups = (props) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1900
4515
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Service-Catalog_16" }),
|
|
@@ -1910,7 +4525,7 @@ var SvgResourceGroups = (props) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs
|
|
|
1910
4525
|
var resource_groups_default = SvgResourceGroups;
|
|
1911
4526
|
|
|
1912
4527
|
// src/components/aws-service-icon/icons/resourcegroupstaggingapi.svg
|
|
1913
|
-
var
|
|
4528
|
+
var React90 = __toESM(require("react"));
|
|
1914
4529
|
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
1915
4530
|
var SvgResourcegroupstaggingapi = (props) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1916
4531
|
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Service-Catalog_16" }),
|
|
@@ -1926,7 +4541,7 @@ var SvgResourcegroupstaggingapi = (props) => /* @__PURE__ */ (0, import_jsx_runt
|
|
|
1926
4541
|
var resourcegroupstaggingapi_default = SvgResourcegroupstaggingapi;
|
|
1927
4542
|
|
|
1928
4543
|
// src/components/aws-service-icon/icons/route53.svg
|
|
1929
|
-
var
|
|
4544
|
+
var React91 = __toESM(require("react"));
|
|
1930
4545
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
1931
4546
|
var SvgRoute53 = (props) => /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1932
4547
|
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("title", { children: "Icon-Architecture/16/Arch_Amazon-Route-53_16" }),
|
|
@@ -1942,7 +4557,7 @@ var SvgRoute53 = (props) => /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("svg"
|
|
|
1942
4557
|
var route53_default = SvgRoute53;
|
|
1943
4558
|
|
|
1944
4559
|
// src/components/aws-service-icon/icons/route53resolver.svg
|
|
1945
|
-
var
|
|
4560
|
+
var React92 = __toESM(require("react"));
|
|
1946
4561
|
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
1947
4562
|
var SvgRoute53Resolver = (props) => /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
1948
4563
|
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("title", { children: "Icon-Architecture/16/Arch_Amazon-Route-53_16" }),
|
|
@@ -1958,7 +4573,7 @@ var SvgRoute53Resolver = (props) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx
|
|
|
1958
4573
|
var route53resolver_default = SvgRoute53Resolver;
|
|
1959
4574
|
|
|
1960
4575
|
// src/components/aws-service-icon/icons/s3.svg
|
|
1961
|
-
var
|
|
4576
|
+
var React93 = __toESM(require("react"));
|
|
1962
4577
|
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
1963
4578
|
var SvgS3 = (props) => /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1964
4579
|
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Simple-Storage-Service_64" }),
|
|
@@ -1974,7 +4589,7 @@ var SvgS3 = (props) => /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("svg", { x
|
|
|
1974
4589
|
var s3_default = SvgS3;
|
|
1975
4590
|
|
|
1976
4591
|
// src/components/aws-service-icon/icons/s3control.svg
|
|
1977
|
-
var
|
|
4592
|
+
var React94 = __toESM(require("react"));
|
|
1978
4593
|
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
1979
4594
|
var SvgS3Control = (props) => /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1980
4595
|
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Simple-Storage-Service_64" }),
|
|
@@ -1990,7 +4605,7 @@ var SvgS3Control = (props) => /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("sv
|
|
|
1990
4605
|
var s3control_default = SvgS3Control;
|
|
1991
4606
|
|
|
1992
4607
|
// src/components/aws-service-icon/icons/sagemaker-runtime.svg
|
|
1993
|
-
var
|
|
4608
|
+
var React95 = __toESM(require("react"));
|
|
1994
4609
|
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
1995
4610
|
var SvgSagemakerRuntime = (props) => /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
1996
4611
|
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-SageMaker_64" }),
|
|
@@ -2006,7 +4621,7 @@ var SvgSagemakerRuntime = (props) => /* @__PURE__ */ (0, import_jsx_runtime96.js
|
|
|
2006
4621
|
var sagemaker_runtime_default = SvgSagemakerRuntime;
|
|
2007
4622
|
|
|
2008
4623
|
// src/components/aws-service-icon/icons/sagemaker.svg
|
|
2009
|
-
var
|
|
4624
|
+
var React96 = __toESM(require("react"));
|
|
2010
4625
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
2011
4626
|
var SvgSagemaker = (props) => /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2012
4627
|
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-SageMaker_64" }),
|
|
@@ -2022,7 +4637,7 @@ var SvgSagemaker = (props) => /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("sv
|
|
|
2022
4637
|
var sagemaker_default = SvgSagemaker;
|
|
2023
4638
|
|
|
2024
4639
|
// src/components/aws-service-icon/icons/scheduler.svg
|
|
2025
|
-
var
|
|
4640
|
+
var React97 = __toESM(require("react"));
|
|
2026
4641
|
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
2027
4642
|
var SvgScheduler = (props) => /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 48 48", fill: "currentColor", ...props, children: [
|
|
2028
4643
|
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("title", { children: "Icon-Resource/Application-Integration/Res_Amazon-EventBridge_Scheduler_48" }),
|
|
@@ -2031,7 +4646,7 @@ var SvgScheduler = (props) => /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("sv
|
|
|
2031
4646
|
var scheduler_default = SvgScheduler;
|
|
2032
4647
|
|
|
2033
4648
|
// src/components/aws-service-icon/icons/secretsmanager.svg
|
|
2034
|
-
var
|
|
4649
|
+
var React98 = __toESM(require("react"));
|
|
2035
4650
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
2036
4651
|
var SvgSecretsmanager = (props) => /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2037
4652
|
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Secrets-Manager_64" }),
|
|
@@ -2047,7 +4662,7 @@ var SvgSecretsmanager = (props) => /* @__PURE__ */ (0, import_jsx_runtime99.jsxs
|
|
|
2047
4662
|
var secretsmanager_default = SvgSecretsmanager;
|
|
2048
4663
|
|
|
2049
4664
|
// src/components/aws-service-icon/icons/serverlessrepo.svg
|
|
2050
|
-
var
|
|
4665
|
+
var React99 = __toESM(require("react"));
|
|
2051
4666
|
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
2052
4667
|
var SvgServerlessrepo = (props) => /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
2053
4668
|
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Serverless-Application-Repository_16" }),
|
|
@@ -2063,7 +4678,7 @@ var SvgServerlessrepo = (props) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx
|
|
|
2063
4678
|
var serverlessrepo_default = SvgServerlessrepo;
|
|
2064
4679
|
|
|
2065
4680
|
// src/components/aws-service-icon/icons/servicediscovery.svg
|
|
2066
|
-
var
|
|
4681
|
+
var React100 = __toESM(require("react"));
|
|
2067
4682
|
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
2068
4683
|
var SvgServicediscovery = (props) => /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
2069
4684
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Application-Discovery-Service_16" }),
|
|
@@ -2079,7 +4694,7 @@ var SvgServicediscovery = (props) => /* @__PURE__ */ (0, import_jsx_runtime101.j
|
|
|
2079
4694
|
var servicediscovery_default = SvgServicediscovery;
|
|
2080
4695
|
|
|
2081
4696
|
// src/components/aws-service-icon/icons/ses.svg
|
|
2082
|
-
var
|
|
4697
|
+
var React101 = __toESM(require("react"));
|
|
2083
4698
|
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
2084
4699
|
var SvgSes = (props) => /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2085
4700
|
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Simple-Email-Service_64" }),
|
|
@@ -2095,7 +4710,7 @@ var SvgSes = (props) => /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("svg", {
|
|
|
2095
4710
|
var ses_default = SvgSes;
|
|
2096
4711
|
|
|
2097
4712
|
// src/components/aws-service-icon/icons/sesv2.svg
|
|
2098
|
-
var
|
|
4713
|
+
var React102 = __toESM(require("react"));
|
|
2099
4714
|
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
2100
4715
|
var SvgSesv2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2101
4716
|
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Simple-Email-Service_64" }),
|
|
@@ -2111,7 +4726,7 @@ var SvgSesv2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("svg",
|
|
|
2111
4726
|
var sesv2_default = SvgSesv2;
|
|
2112
4727
|
|
|
2113
4728
|
// src/components/aws-service-icon/icons/shield.svg
|
|
2114
|
-
var
|
|
4729
|
+
var React103 = __toESM(require("react"));
|
|
2115
4730
|
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
2116
4731
|
var SvgShield = (props) => /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2117
4732
|
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Shield_64" }),
|
|
@@ -2123,7 +4738,7 @@ var SvgShield = (props) => /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("svg"
|
|
|
2123
4738
|
var shield_default = SvgShield;
|
|
2124
4739
|
|
|
2125
4740
|
// src/components/aws-service-icon/icons/sns.svg
|
|
2126
|
-
var
|
|
4741
|
+
var React104 = __toESM(require("react"));
|
|
2127
4742
|
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
2128
4743
|
var SvgSns = (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2129
4744
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Simple-Notification-Service_64" }),
|
|
@@ -2139,7 +4754,7 @@ var SvgSns = (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("svg", {
|
|
|
2139
4754
|
var sns_default = SvgSns;
|
|
2140
4755
|
|
|
2141
4756
|
// src/components/aws-service-icon/icons/sqs.svg
|
|
2142
|
-
var
|
|
4757
|
+
var React105 = __toESM(require("react"));
|
|
2143
4758
|
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
2144
4759
|
var SvgSqs = (props) => /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2145
4760
|
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Simple-Queue-Service_64" }),
|
|
@@ -2155,7 +4770,7 @@ var SvgSqs = (props) => /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("svg", {
|
|
|
2155
4770
|
var sqs_default = SvgSqs;
|
|
2156
4771
|
|
|
2157
4772
|
// src/components/aws-service-icon/icons/ssm.svg
|
|
2158
|
-
var
|
|
4773
|
+
var React106 = __toESM(require("react"));
|
|
2159
4774
|
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
2160
4775
|
var SvgSsm = (props) => /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2161
4776
|
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Systems-Manager_64" }),
|
|
@@ -2171,7 +4786,7 @@ var SvgSsm = (props) => /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("svg", {
|
|
|
2171
4786
|
var ssm_default = SvgSsm;
|
|
2172
4787
|
|
|
2173
4788
|
// src/components/aws-service-icon/icons/sso-admin.svg
|
|
2174
|
-
var
|
|
4789
|
+
var React107 = __toESM(require("react"));
|
|
2175
4790
|
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
2176
4791
|
var SvgSsoAdmin = (props) => /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2177
4792
|
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-IAM-Identity-Center_64" }),
|
|
@@ -2183,7 +4798,7 @@ var SvgSsoAdmin = (props) => /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("sv
|
|
|
2183
4798
|
var sso_admin_default = SvgSsoAdmin;
|
|
2184
4799
|
|
|
2185
4800
|
// src/components/aws-service-icon/icons/stepfunctions.svg
|
|
2186
|
-
var
|
|
4801
|
+
var React108 = __toESM(require("react"));
|
|
2187
4802
|
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
2188
4803
|
var SvgStepfunctions = (props) => /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2189
4804
|
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-Step-Functions_64" }),
|
|
@@ -2199,7 +4814,7 @@ var SvgStepfunctions = (props) => /* @__PURE__ */ (0, import_jsx_runtime109.jsxs
|
|
|
2199
4814
|
var stepfunctions_default = SvgStepfunctions;
|
|
2200
4815
|
|
|
2201
4816
|
// src/components/aws-service-icon/icons/sts.svg
|
|
2202
|
-
var
|
|
4817
|
+
var React109 = __toESM(require("react"));
|
|
2203
4818
|
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
2204
4819
|
var SvgSts = (props) => /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 48 48", fill: "currentColor", ...props, children: [
|
|
2205
4820
|
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("title", { children: "Icon-Resource/General-Resource/Res_SAML-token_48_Light" }),
|
|
@@ -2212,7 +4827,7 @@ var SvgSts = (props) => /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("svg", {
|
|
|
2212
4827
|
var sts_default = SvgSts;
|
|
2213
4828
|
|
|
2214
4829
|
// src/components/aws-service-icon/icons/support.svg
|
|
2215
|
-
var
|
|
4830
|
+
var React110 = __toESM(require("react"));
|
|
2216
4831
|
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
2217
4832
|
var SvgSupport = (props) => /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
2218
4833
|
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Support_16" }),
|
|
@@ -2228,7 +4843,7 @@ var SvgSupport = (props) => /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("svg
|
|
|
2228
4843
|
var support_default = SvgSupport;
|
|
2229
4844
|
|
|
2230
4845
|
// src/components/aws-service-icon/icons/swf.svg
|
|
2231
|
-
var
|
|
4846
|
+
var React111 = __toESM(require("react"));
|
|
2232
4847
|
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
2233
4848
|
var SvgSwf = (props) => /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
2234
4849
|
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Step-Functions_16" }),
|
|
@@ -2244,7 +4859,7 @@ var SvgSwf = (props) => /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("svg", {
|
|
|
2244
4859
|
var swf_default = SvgSwf;
|
|
2245
4860
|
|
|
2246
4861
|
// src/components/aws-service-icon/icons/textract.svg
|
|
2247
|
-
var
|
|
4862
|
+
var React112 = __toESM(require("react"));
|
|
2248
4863
|
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
2249
4864
|
var SvgTextract = (props) => /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2250
4865
|
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Textract_64" }),
|
|
@@ -2256,7 +4871,7 @@ var SvgTextract = (props) => /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("sv
|
|
|
2256
4871
|
var textract_default = SvgTextract;
|
|
2257
4872
|
|
|
2258
4873
|
// src/components/aws-service-icon/icons/timestream-query.svg
|
|
2259
|
-
var
|
|
4874
|
+
var React113 = __toESM(require("react"));
|
|
2260
4875
|
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
2261
4876
|
var SvgTimestreamQuery = (props) => /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2262
4877
|
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Timestream_64" }),
|
|
@@ -2272,7 +4887,7 @@ var SvgTimestreamQuery = (props) => /* @__PURE__ */ (0, import_jsx_runtime114.js
|
|
|
2272
4887
|
var timestream_query_default = SvgTimestreamQuery;
|
|
2273
4888
|
|
|
2274
4889
|
// src/components/aws-service-icon/icons/timestream-write.svg
|
|
2275
|
-
var
|
|
4890
|
+
var React114 = __toESM(require("react"));
|
|
2276
4891
|
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
2277
4892
|
var SvgTimestreamWrite = (props) => /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2278
4893
|
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Timestream_64" }),
|
|
@@ -2288,7 +4903,7 @@ var SvgTimestreamWrite = (props) => /* @__PURE__ */ (0, import_jsx_runtime115.js
|
|
|
2288
4903
|
var timestream_write_default = SvgTimestreamWrite;
|
|
2289
4904
|
|
|
2290
4905
|
// src/components/aws-service-icon/icons/transcribe.svg
|
|
2291
|
-
var
|
|
4906
|
+
var React115 = __toESM(require("react"));
|
|
2292
4907
|
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
2293
4908
|
var SvgTranscribe = (props) => /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
2294
4909
|
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("title", { children: "Icon-Architecture/16/Arch_Amazon-Transcribe_16" }),
|
|
@@ -2304,7 +4919,7 @@ var SvgTranscribe = (props) => /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("
|
|
|
2304
4919
|
var transcribe_default = SvgTranscribe;
|
|
2305
4920
|
|
|
2306
4921
|
// src/components/aws-service-icon/icons/transfer.svg
|
|
2307
|
-
var
|
|
4922
|
+
var React116 = __toESM(require("react"));
|
|
2308
4923
|
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
2309
4924
|
var SvgTransfer = (props) => /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [
|
|
2310
4925
|
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("title", { children: "Icon-Architecture/16/Arch_AWS-Transfer-Family_16" }),
|
|
@@ -2320,7 +4935,7 @@ var SvgTransfer = (props) => /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("sv
|
|
|
2320
4935
|
var transfer_default = SvgTransfer;
|
|
2321
4936
|
|
|
2322
4937
|
// src/components/aws-service-icon/icons/verifiedpermissions.svg
|
|
2323
|
-
var
|
|
4938
|
+
var React117 = __toESM(require("react"));
|
|
2324
4939
|
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
2325
4940
|
var SvgVerifiedpermissions = (props) => /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2326
4941
|
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("title", { children: "Icon-Architecture/64/Arch_Amazon-Verified-Permissions_64" }),
|
|
@@ -2332,7 +4947,7 @@ var SvgVerifiedpermissions = (props) => /* @__PURE__ */ (0, import_jsx_runtime11
|
|
|
2332
4947
|
var verifiedpermissions_default = SvgVerifiedpermissions;
|
|
2333
4948
|
|
|
2334
4949
|
// src/components/aws-service-icon/icons/wafv2.svg
|
|
2335
|
-
var
|
|
4950
|
+
var React118 = __toESM(require("react"));
|
|
2336
4951
|
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
2337
4952
|
var SvgWafv2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2338
4953
|
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-WAF_64" }),
|
|
@@ -2344,7 +4959,7 @@ var SvgWafv2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("svg",
|
|
|
2344
4959
|
var wafv2_default = SvgWafv2;
|
|
2345
4960
|
|
|
2346
4961
|
// src/components/aws-service-icon/icons/xray.svg
|
|
2347
|
-
var
|
|
4962
|
+
var React119 = __toESM(require("react"));
|
|
2348
4963
|
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
2349
4964
|
var SvgXray = (props) => /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 80 80", fill: "currentColor", ...props, children: [
|
|
2350
4965
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)("title", { children: "Icon-Architecture/64/Arch_AWS-X-Ray_64" }),
|
|
@@ -2619,141 +5234,60 @@ ServiceCell.displayName = "ServiceCell";
|
|
|
2619
5234
|
|
|
2620
5235
|
// src/components/spans-list/spans-data-grid.tsx
|
|
2621
5236
|
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
2622
|
-
var
|
|
2623
|
-
return v1.localeCompare(v2);
|
|
2624
|
-
};
|
|
5237
|
+
var columnHelper = createColumnHelper();
|
|
2625
5238
|
var columns = [
|
|
2626
|
-
{
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
}
|
|
2641
|
-
) });
|
|
2642
|
-
},
|
|
2643
|
-
type: "string",
|
|
2644
|
-
width: 120
|
|
2645
|
-
},
|
|
2646
|
-
{
|
|
2647
|
-
field: "start_time_unix_nano",
|
|
2648
|
-
headerName: "Time",
|
|
2649
|
-
renderCell: (parameters) => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(ResponsiveTimestampCell, { date: parameters.value?.startTime }),
|
|
2650
|
-
type: "string",
|
|
2651
|
-
width: 180
|
|
2652
|
-
},
|
|
2653
|
-
{
|
|
2654
|
-
field: "producer",
|
|
2655
|
-
headerName: "Producer",
|
|
2656
|
-
renderCell: (parameters) => {
|
|
2657
|
-
if (!parameters.row.parent_service_name || !parameters.row.parent_resource_name) {
|
|
2658
|
-
return;
|
|
5239
|
+
columnHelper.accessor("trace_id", {
|
|
5240
|
+
cell: (props) => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material4.Box, { sx: { maxWidth: "120px", overflow: "hidden", textOverflow: "ellipsis" }, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material4.Tooltip, { arrow: true, title: props.getValue(), children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { children: props.getValue() }) }) }),
|
|
5241
|
+
header: "Trace",
|
|
5242
|
+
id: "traceId"
|
|
5243
|
+
}),
|
|
5244
|
+
columnHelper.accessor("startTime", {
|
|
5245
|
+
cell: (props) => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(ResponsiveTimestampCell, { date: props.getValue() }),
|
|
5246
|
+
header: "Time",
|
|
5247
|
+
id: "startTime",
|
|
5248
|
+
size: 180
|
|
5249
|
+
}),
|
|
5250
|
+
columnHelper.display({
|
|
5251
|
+
cell: (props) => {
|
|
5252
|
+
if (!props.row.original.parent_service_name || !props.row.original.parent_resource_name) {
|
|
5253
|
+
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_jsx_runtime125.Fragment, {});
|
|
2659
5254
|
}
|
|
2660
|
-
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(ServiceCell, { resource:
|
|
5255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(ServiceCell, { resource: props.row.original.parent_resource_name, service: props.row.original.parent_service_name });
|
|
2661
5256
|
},
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
},
|
|
2666
|
-
{
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
flex: 1,
|
|
2675
|
-
headerName: "Consumer",
|
|
2676
|
-
renderCell: (parameters) => {
|
|
2677
|
-
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(ServiceCell, { resource: parameters.row.resource_name, service: parameters.row.service_name });
|
|
5257
|
+
header: "Producer",
|
|
5258
|
+
id: "producer",
|
|
5259
|
+
size: 180
|
|
5260
|
+
}),
|
|
5261
|
+
columnHelper.accessor("operation_name", {
|
|
5262
|
+
header: "Action",
|
|
5263
|
+
id: "operationName",
|
|
5264
|
+
size: 180
|
|
5265
|
+
}),
|
|
5266
|
+
columnHelper.display({
|
|
5267
|
+
cell: (props) => {
|
|
5268
|
+
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(ServiceCell, { resource: props.row.original.resource_name, service: props.row.original.service_name });
|
|
2678
5269
|
},
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
5270
|
+
header: "Consumer",
|
|
5271
|
+
id: "consumer",
|
|
5272
|
+
size: 260
|
|
5273
|
+
})
|
|
2682
5274
|
];
|
|
2683
|
-
var defaultSortingOption = { field: "start_time_unix_nano", sort: "asc" };
|
|
2684
5275
|
var SpansDataGrid = ({
|
|
2685
5276
|
includeReadOperations = false,
|
|
2686
5277
|
loading,
|
|
2687
5278
|
onClearSpans,
|
|
2688
5279
|
onIncludeReadOperationsChange,
|
|
2689
|
-
onPageChange,
|
|
2690
|
-
onPageSizeChange,
|
|
2691
5280
|
onRefresh,
|
|
2692
5281
|
onSpanClick,
|
|
2693
|
-
|
|
2694
|
-
pageSize,
|
|
2695
|
-
rowCount,
|
|
2696
|
-
rows,
|
|
2697
|
-
rowsPerPageOptions,
|
|
2698
|
-
// setRows,
|
|
2699
|
-
sortingOption = defaultSortingOption
|
|
5282
|
+
rows
|
|
2700
5283
|
}) => {
|
|
2701
|
-
const
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
try {
|
|
2706
|
-
return JSON.parse(savedSorting);
|
|
2707
|
-
} catch (error) {
|
|
2708
|
-
logger.error("Error parsing saved sort model", error);
|
|
2709
|
-
}
|
|
2710
|
-
}
|
|
2711
|
-
return [
|
|
2712
|
-
{
|
|
2713
|
-
field: sortingOption.field,
|
|
2714
|
-
sort: sortingOption.sort
|
|
2715
|
-
}
|
|
2716
|
-
];
|
|
5284
|
+
const table = useReactTable({
|
|
5285
|
+
columns,
|
|
5286
|
+
data: rows,
|
|
5287
|
+
getCoreRowModel: getCoreRowModel()
|
|
2717
5288
|
});
|
|
2718
|
-
const handleRowClick = (0, import_react8.useCallback)((parameters) => {
|
|
2719
|
-
onSpanClick(parameters.row);
|
|
2720
|
-
}, [onSpanClick]);
|
|
2721
|
-
const handleSearchTermChange = (0, import_react8.useCallback)((span) => {
|
|
2722
|
-
const newValue = span.target.value;
|
|
2723
|
-
setSearchTerm(newValue);
|
|
2724
|
-
localStorage.setItem("spansSearchTerm", newValue);
|
|
2725
|
-
}, []);
|
|
2726
|
-
const handleSortModelChange = (0, import_react8.useCallback)((newSortModel) => {
|
|
2727
|
-
setSortModel(newSortModel);
|
|
2728
|
-
localStorage.setItem("spansSortModel", JSON.stringify(newSortModel));
|
|
2729
|
-
}, []);
|
|
2730
|
-
const filterSpansBySearchTerm = (0, import_react8.useCallback)(
|
|
2731
|
-
(span) => {
|
|
2732
|
-
if (searchTerm.length === 0) return true;
|
|
2733
|
-
return searchInObject(span, searchTerm);
|
|
2734
|
-
},
|
|
2735
|
-
[searchTerm]
|
|
2736
|
-
);
|
|
2737
|
-
const filtersToApply = (0, import_react8.useMemo)(() => [filterSpansBySearchTerm], [filterSpansBySearchTerm]);
|
|
2738
|
-
const filteredRows = (0, import_react8.useMemo)(
|
|
2739
|
-
() => rows.filter((row) => filtersToApply.every((filter) => filter(row))),
|
|
2740
|
-
[filtersToApply, rows]
|
|
2741
|
-
);
|
|
2742
5289
|
return /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_jsx_runtime125.Fragment, { children: [
|
|
2743
5290
|
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material4.Grid, { item: true, xs: 12, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material4.Box, { sx: { alignItems: "center", display: "flex", gap: "0.5rem" }, children: [
|
|
2744
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
2745
|
-
import_material4.TextField,
|
|
2746
|
-
{
|
|
2747
|
-
label: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material4.Box, { sx: { display: "flex", gap: "0.25rem" }, children: [
|
|
2748
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_icons_material.Search, { fontSize: "small" }),
|
|
2749
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material4.Typography, { children: "Search Spans" })
|
|
2750
|
-
] }),
|
|
2751
|
-
onChange: handleSearchTermChange,
|
|
2752
|
-
size: "small",
|
|
2753
|
-
sx: { minWidth: "200px" },
|
|
2754
|
-
value: searchTerm
|
|
2755
|
-
}
|
|
2756
|
-
),
|
|
2757
5291
|
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material4.Box, { sx: { flexGrow: 1 } }),
|
|
2758
5292
|
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
2759
5293
|
import_material4.FormControlLabel,
|
|
@@ -2785,38 +5319,40 @@ var SpansDataGrid = ({
|
|
|
2785
5319
|
minHeight: 120,
|
|
2786
5320
|
p: 2
|
|
2787
5321
|
},
|
|
2788
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
5322
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material4.TableContainer, { component: import_material4.Paper, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material4.Table, { children: [
|
|
5323
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material4.TableHead, { children: table.getHeaderGroups().map((headerGroup) => {
|
|
5324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material4.TableRow, { children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
5325
|
+
import_material4.TableCell,
|
|
5326
|
+
{
|
|
5327
|
+
colSpan: header.colSpan,
|
|
5328
|
+
style: {
|
|
5329
|
+
maxWidth: `${header.getSize().toString()}px`,
|
|
5330
|
+
minWidth: `${header.getSize().toString()}px`,
|
|
5331
|
+
width: `${header.getSize().toString()}px`
|
|
5332
|
+
},
|
|
5333
|
+
children: flexRender(header.column.columnDef.header, header.getContext())
|
|
5334
|
+
},
|
|
5335
|
+
header.id
|
|
5336
|
+
)) }, headerGroup.id);
|
|
5337
|
+
}) }),
|
|
5338
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material4.TableBody, { children: table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material4.TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
5339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
5340
|
+
import_material4.TableCell,
|
|
5341
|
+
{
|
|
5342
|
+
onClick: () => {
|
|
5343
|
+
onSpanClick(row.original);
|
|
5344
|
+
},
|
|
5345
|
+
style: {
|
|
5346
|
+
maxWidth: `${cell.column.getSize().toString()}px`,
|
|
5347
|
+
minWidth: `${cell.column.getSize().toString()}px`,
|
|
5348
|
+
width: `${cell.column.getSize().toString()}px`
|
|
5349
|
+
},
|
|
5350
|
+
children: flexRender(cell.column.columnDef.cell, cell.getContext())
|
|
5351
|
+
},
|
|
5352
|
+
cell.id
|
|
5353
|
+
);
|
|
5354
|
+
}) }, row.id)) })
|
|
5355
|
+
] }) })
|
|
2820
5356
|
}
|
|
2821
5357
|
) })
|
|
2822
5358
|
] });
|
|
@@ -3157,9 +5693,9 @@ var StatusMessage = ({
|
|
|
3157
5693
|
};
|
|
3158
5694
|
|
|
3159
5695
|
// src/hooks/use-local-storage.tsx
|
|
3160
|
-
var
|
|
5696
|
+
var import_react8 = require("react");
|
|
3161
5697
|
function useLocalStorage(key, initialValue) {
|
|
3162
|
-
const [storedValue, setStoredValue] = (0,
|
|
5698
|
+
const [storedValue, setStoredValue] = (0, import_react8.useState)(() => {
|
|
3163
5699
|
try {
|
|
3164
5700
|
const item = globalThis.localStorage.getItem(key);
|
|
3165
5701
|
return item ? JSON.parse(item) : initialValue;
|
|
@@ -3168,7 +5704,7 @@ function useLocalStorage(key, initialValue) {
|
|
|
3168
5704
|
return initialValue;
|
|
3169
5705
|
}
|
|
3170
5706
|
});
|
|
3171
|
-
const setValue = (0,
|
|
5707
|
+
const setValue = (0, import_react8.useCallback)((value) => {
|
|
3172
5708
|
try {
|
|
3173
5709
|
setStoredValue(value);
|
|
3174
5710
|
globalThis.localStorage.setItem(key, JSON.stringify(value));
|
|
@@ -3180,7 +5716,7 @@ function useLocalStorage(key, initialValue) {
|
|
|
3180
5716
|
console.error(`Error setting localStorage key "${key}":`, error);
|
|
3181
5717
|
}
|
|
3182
5718
|
}, [key]);
|
|
3183
|
-
(0,
|
|
5719
|
+
(0, import_react8.useEffect)(() => {
|
|
3184
5720
|
const handleStorageChange = (event) => {
|
|
3185
5721
|
if (event.key === key && event.newValue !== null) {
|
|
3186
5722
|
try {
|
|
@@ -3199,15 +5735,15 @@ function useLocalStorage(key, initialValue) {
|
|
|
3199
5735
|
}
|
|
3200
5736
|
|
|
3201
5737
|
// src/hooks/use-status.tsx
|
|
3202
|
-
var
|
|
5738
|
+
var import_react9 = require("react");
|
|
3203
5739
|
var useStatus = () => {
|
|
3204
5740
|
const api = useAppInspectorApi();
|
|
3205
|
-
const [checking, setChecking] = (0,
|
|
3206
|
-
const [status, setStatus] = (0,
|
|
3207
|
-
const [error, setError] = (0,
|
|
3208
|
-
const hasFetchedReference = (0,
|
|
3209
|
-
const abortControllerReference = (0,
|
|
3210
|
-
const checkStatus = (0,
|
|
5741
|
+
const [checking, setChecking] = (0, import_react9.useState)(true);
|
|
5742
|
+
const [status, setStatus] = (0, import_react9.useState)();
|
|
5743
|
+
const [error, setError] = (0, import_react9.useState)();
|
|
5744
|
+
const hasFetchedReference = (0, import_react9.useRef)(false);
|
|
5745
|
+
const abortControllerReference = (0, import_react9.useRef)(null);
|
|
5746
|
+
const checkStatus = (0, import_react9.useCallback)(async () => {
|
|
3211
5747
|
if (abortControllerReference.current) {
|
|
3212
5748
|
abortControllerReference.current.abort();
|
|
3213
5749
|
}
|
|
@@ -3231,7 +5767,7 @@ var useStatus = () => {
|
|
|
3231
5767
|
}
|
|
3232
5768
|
}
|
|
3233
5769
|
}, [api]);
|
|
3234
|
-
(0,
|
|
5770
|
+
(0, import_react9.useEffect)(() => {
|
|
3235
5771
|
if (!hasFetchedReference.current) {
|
|
3236
5772
|
hasFetchedReference.current = true;
|
|
3237
5773
|
void checkStatus();
|
|
@@ -3244,12 +5780,12 @@ var useStatus = () => {
|
|
|
3244
5780
|
var import_icons_material11 = require("@mui/icons-material");
|
|
3245
5781
|
var import_material19 = require("@mui/material");
|
|
3246
5782
|
var import_styles = require("@mui/material/styles");
|
|
3247
|
-
var
|
|
3248
|
-
var
|
|
5783
|
+
var import_react22 = require("@xyflow/react");
|
|
5784
|
+
var import_react23 = require("react");
|
|
3249
5785
|
|
|
3250
5786
|
// src/components/event-details/event-details.tsx
|
|
3251
5787
|
var import_material14 = require("@mui/material");
|
|
3252
|
-
var
|
|
5788
|
+
var import_react13 = require("react");
|
|
3253
5789
|
|
|
3254
5790
|
// src/utils/iam-utils.ts
|
|
3255
5791
|
function determinePermissionStatus(payload) {
|
|
@@ -3494,7 +6030,7 @@ var import_material13 = require("@mui/material");
|
|
|
3494
6030
|
// src/components/event-details/event-detail.tsx
|
|
3495
6031
|
var import_icons_material7 = require("@mui/icons-material");
|
|
3496
6032
|
var import_material11 = require("@mui/material");
|
|
3497
|
-
var
|
|
6033
|
+
var import_react11 = require("react");
|
|
3498
6034
|
|
|
3499
6035
|
// src/components/status-icon.tsx
|
|
3500
6036
|
var import_icons_material4 = require("@mui/icons-material");
|
|
@@ -3645,7 +6181,7 @@ var IAMEventDetail = ({ event }) => {
|
|
|
3645
6181
|
// src/components/event-details/iam-permission-detail.tsx
|
|
3646
6182
|
var import_icons_material6 = require("@mui/icons-material");
|
|
3647
6183
|
var import_material10 = require("@mui/material");
|
|
3648
|
-
var
|
|
6184
|
+
var import_react10 = require("react");
|
|
3649
6185
|
var import_jsx_runtime131 = require("react/jsx-runtime");
|
|
3650
6186
|
var getChipColors = (status) => {
|
|
3651
6187
|
const isAllowed = status === "explicitly_allowed" || status === "implicitly_allowed";
|
|
@@ -3655,8 +6191,8 @@ var getChipColors = (status) => {
|
|
|
3655
6191
|
};
|
|
3656
6192
|
};
|
|
3657
6193
|
var IAMPermissionItem = ({ event }) => {
|
|
3658
|
-
const [isOpen, setIsOpen] = (0,
|
|
3659
|
-
const parsedData = (0,
|
|
6194
|
+
const [isOpen, setIsOpen] = (0, import_react10.useState)(false);
|
|
6195
|
+
const parsedData = (0, import_react10.useMemo)(() => {
|
|
3660
6196
|
const payloadString = event.attributes?.payload;
|
|
3661
6197
|
if (!payloadString) {
|
|
3662
6198
|
return;
|
|
@@ -3726,15 +6262,15 @@ var DetailRow2 = ({ content, label }) => /* @__PURE__ */ (0, import_jsx_runtime1
|
|
|
3726
6262
|
) : content })
|
|
3727
6263
|
] });
|
|
3728
6264
|
var EventMessage = ({ event }) => {
|
|
3729
|
-
const [isOpen, setIsOpen] = (0,
|
|
3730
|
-
const [isOverflowing, setIsOverflowing] = (0,
|
|
3731
|
-
const textReference = (0,
|
|
3732
|
-
const parsedMessage = (0,
|
|
3733
|
-
const isIAMPolicyEvent = (0,
|
|
6265
|
+
const [isOpen, setIsOpen] = (0, import_react11.useState)(false);
|
|
6266
|
+
const [isOverflowing, setIsOverflowing] = (0, import_react11.useState)(false);
|
|
6267
|
+
const textReference = (0, import_react11.useRef)(null);
|
|
6268
|
+
const parsedMessage = (0, import_react11.useMemo)(() => parseEventMessage(event), [event]);
|
|
6269
|
+
const isIAMPolicyEvent = (0, import_react11.useMemo)(
|
|
3734
6270
|
() => event.event_type === "iam.policy_evaluation" && event.attributes?.payload && typeof event.attributes.payload === "string",
|
|
3735
6271
|
[event]
|
|
3736
6272
|
);
|
|
3737
|
-
(0,
|
|
6273
|
+
(0, import_react11.useEffect)(() => {
|
|
3738
6274
|
const checkOverflow = () => {
|
|
3739
6275
|
const element = textReference.current;
|
|
3740
6276
|
if (element) {
|
|
@@ -3747,11 +6283,11 @@ var EventMessage = ({ event }) => {
|
|
|
3747
6283
|
window.removeEventListener("resize", checkOverflow);
|
|
3748
6284
|
};
|
|
3749
6285
|
}, [parsedMessage.headline]);
|
|
3750
|
-
const hasAdditionalContent = (0,
|
|
6286
|
+
const hasAdditionalContent = (0, import_react11.useMemo)(
|
|
3751
6287
|
() => parsedMessage.message || parsedMessage.details || isIAMPolicyEvent,
|
|
3752
6288
|
[parsedMessage.message, parsedMessage.details, isIAMPolicyEvent]
|
|
3753
6289
|
);
|
|
3754
|
-
const shouldShowToggle = (0,
|
|
6290
|
+
const shouldShowToggle = (0, import_react11.useMemo)(
|
|
3755
6291
|
() => isOverflowing || hasAdditionalContent,
|
|
3756
6292
|
[isOverflowing, hasAdditionalContent]
|
|
3757
6293
|
);
|
|
@@ -3893,10 +6429,10 @@ var EventDetail = ({
|
|
|
3893
6429
|
// src/components/event-details/toggle-section.tsx
|
|
3894
6430
|
var import_icons_material8 = require("@mui/icons-material");
|
|
3895
6431
|
var import_material12 = require("@mui/material");
|
|
3896
|
-
var
|
|
6432
|
+
var import_react12 = require("react");
|
|
3897
6433
|
var import_jsx_runtime133 = require("react/jsx-runtime");
|
|
3898
6434
|
var ToggleSection = ({ children, headline, initialOpen = true }) => {
|
|
3899
|
-
const [isOpen, setIsOpen] = (0,
|
|
6435
|
+
const [isOpen, setIsOpen] = (0, import_react12.useState)(initialOpen);
|
|
3900
6436
|
return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(import_material12.Box, { sx: { mt: 4 }, children: [
|
|
3901
6437
|
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
|
|
3902
6438
|
import_material12.Box,
|
|
@@ -3972,7 +6508,7 @@ var EventSection = ({
|
|
|
3972
6508
|
// src/components/event-details/event-details.tsx
|
|
3973
6509
|
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
3974
6510
|
var EventDetails = ({ onClose, selectedEvent }) => {
|
|
3975
|
-
const attributes = (0,
|
|
6511
|
+
const attributes = (0, import_react13.useMemo)(() => {
|
|
3976
6512
|
const attributes2 = Object.entries(selectedEvent?.attributes ?? {});
|
|
3977
6513
|
return attributes2.filter(([key]) => key !== "localstack.aws.account_id" && key !== "localstack.aws.service");
|
|
3978
6514
|
}, [selectedEvent?.attributes]);
|
|
@@ -4071,22 +6607,22 @@ function renderKeyValue(key, value) {
|
|
|
4071
6607
|
// src/components/trace-graph/trace-graph.tsx
|
|
4072
6608
|
var import_base = require("@xyflow/react/dist/base.css");
|
|
4073
6609
|
var import_material18 = require("@mui/material");
|
|
4074
|
-
var
|
|
4075
|
-
var
|
|
6610
|
+
var import_react20 = require("@xyflow/react");
|
|
6611
|
+
var import_react21 = require("react");
|
|
4076
6612
|
|
|
4077
6613
|
// src/components/trace-graph/service-node.tsx
|
|
4078
6614
|
var import_material16 = require("@mui/material");
|
|
4079
6615
|
var import_style = require("@xyflow/react/dist/style.css");
|
|
4080
|
-
var
|
|
4081
|
-
var
|
|
6616
|
+
var import_react15 = require("@xyflow/react");
|
|
6617
|
+
var import_react16 = require("react");
|
|
4082
6618
|
|
|
4083
6619
|
// src/components/trace-graph/problem-indicator.tsx
|
|
4084
6620
|
var import_icons_material9 = require("@mui/icons-material");
|
|
4085
6621
|
var import_material15 = require("@mui/material");
|
|
4086
|
-
var
|
|
6622
|
+
var import_react14 = require("react");
|
|
4087
6623
|
var import_jsx_runtime136 = require("react/jsx-runtime");
|
|
4088
6624
|
var ProblemIndicator = ({ error }) => {
|
|
4089
|
-
const icon = (0,
|
|
6625
|
+
const icon = (0, import_react14.useMemo)(() => {
|
|
4090
6626
|
switch (error.level) {
|
|
4091
6627
|
case "error": {
|
|
4092
6628
|
return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_icons_material9.Error, { sx: { color: "#d32f2f", fontSize: "14px" } });
|
|
@@ -4099,7 +6635,7 @@ var ProblemIndicator = ({ error }) => {
|
|
|
4099
6635
|
}
|
|
4100
6636
|
}
|
|
4101
6637
|
}, [error.level]);
|
|
4102
|
-
const color = (0,
|
|
6638
|
+
const color = (0, import_react14.useMemo)(() => {
|
|
4103
6639
|
switch (error.level) {
|
|
4104
6640
|
case "error": {
|
|
4105
6641
|
return "#d32f2f";
|
|
@@ -4138,7 +6674,7 @@ var handleStyle = {
|
|
|
4138
6674
|
borderColor: "lightgray",
|
|
4139
6675
|
opacity: 0
|
|
4140
6676
|
};
|
|
4141
|
-
var ServiceNode = (0,
|
|
6677
|
+
var ServiceNode = (0, import_react16.memo)(({ data, selected }) => {
|
|
4142
6678
|
const hasErrors = (data.event.errors && data.event.errors.length > 0) ?? false;
|
|
4143
6679
|
return /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_material16.Box, { sx: { maxWidth: 200 }, children: [
|
|
4144
6680
|
/* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(
|
|
@@ -4162,8 +6698,8 @@ var ServiceNode = (0, import_react17.memo)(({ data, selected }) => {
|
|
|
4162
6698
|
},
|
|
4163
6699
|
tabIndex: 0,
|
|
4164
6700
|
children: [
|
|
4165
|
-
/* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
|
|
4166
|
-
/* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
|
|
6701
|
+
/* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_react15.Handle, { position: import_react15.Position.Left, style: handleStyle, type: "target" }),
|
|
6702
|
+
/* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_react15.Handle, { position: import_react15.Position.Right, style: handleStyle, type: "source" }),
|
|
4167
6703
|
/* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
|
|
4168
6704
|
ServiceCell,
|
|
4169
6705
|
{
|
|
@@ -4223,7 +6759,7 @@ var ServiceNode = (0, import_react17.memo)(({ data, selected }) => {
|
|
|
4223
6759
|
|
|
4224
6760
|
// src/components/trace-graph/utils.ts
|
|
4225
6761
|
var import_dagre = __toESM(require("@dagrejs/dagre"), 1);
|
|
4226
|
-
var
|
|
6762
|
+
var import_react17 = require("@xyflow/react");
|
|
4227
6763
|
var generateNodesAndEdges = (event, parentId) => {
|
|
4228
6764
|
const nodes = [];
|
|
4229
6765
|
const edges = [];
|
|
@@ -4239,8 +6775,8 @@ var generateNodesAndEdges = (event, parentId) => {
|
|
|
4239
6775
|
id: event.span_id,
|
|
4240
6776
|
position: { x: 0, y: 0 },
|
|
4241
6777
|
// Will be set by layout
|
|
4242
|
-
sourcePosition:
|
|
4243
|
-
targetPosition:
|
|
6778
|
+
sourcePosition: import_react17.Position.Right,
|
|
6779
|
+
targetPosition: import_react17.Position.Left,
|
|
4244
6780
|
type: "service"
|
|
4245
6781
|
});
|
|
4246
6782
|
if (parentId) {
|
|
@@ -4250,7 +6786,7 @@ var generateNodesAndEdges = (event, parentId) => {
|
|
|
4250
6786
|
markerEnd: {
|
|
4251
6787
|
color: "lightgray",
|
|
4252
6788
|
height: 16,
|
|
4253
|
-
type:
|
|
6789
|
+
type: import_react17.MarkerType.Arrow,
|
|
4254
6790
|
width: 16
|
|
4255
6791
|
},
|
|
4256
6792
|
source: parentId,
|
|
@@ -4303,8 +6839,8 @@ var getLayoutedNodesAndEdges = (inputNodes, inputEdges) => {
|
|
|
4303
6839
|
// src/components/trace-graph/xyflow/controls.tsx
|
|
4304
6840
|
var import_icons_material10 = require("@mui/icons-material");
|
|
4305
6841
|
var import_material17 = require("@mui/material");
|
|
4306
|
-
var
|
|
4307
|
-
var
|
|
6842
|
+
var import_react18 = require("@xyflow/react");
|
|
6843
|
+
var import_react19 = require("react");
|
|
4308
6844
|
|
|
4309
6845
|
// node_modules/zustand/esm/shallow.mjs
|
|
4310
6846
|
function shallow$1(objA, objB) {
|
|
@@ -4351,9 +6887,9 @@ var selector = (s) => ({
|
|
|
4351
6887
|
maxZoomReached: s.transform[2] >= s.maxZoom,
|
|
4352
6888
|
minZoomReached: s.transform[2] <= s.minZoom
|
|
4353
6889
|
});
|
|
4354
|
-
var Controls = (0,
|
|
4355
|
-
const { maxZoomReached, minZoomReached } = (0,
|
|
4356
|
-
const { fitView, zoomIn, zoomOut } = (0,
|
|
6890
|
+
var Controls = (0, import_react19.memo)(() => {
|
|
6891
|
+
const { maxZoomReached, minZoomReached } = (0, import_react18.useStore)(selector, shallow$1);
|
|
6892
|
+
const { fitView, zoomIn, zoomOut } = (0, import_react18.useReactFlow)();
|
|
4357
6893
|
const onZoomInHandler = () => {
|
|
4358
6894
|
void zoomIn();
|
|
4359
6895
|
};
|
|
@@ -4420,14 +6956,11 @@ var TraceGraph = ({
|
|
|
4420
6956
|
initialFocusEventId,
|
|
4421
6957
|
onEventSelect,
|
|
4422
6958
|
onRefresh,
|
|
4423
|
-
spans
|
|
4424
|
-
viewPortPixelWidth
|
|
6959
|
+
spans
|
|
4425
6960
|
}) => {
|
|
4426
|
-
const [nodes, setNodes, onNodesChange] = (0,
|
|
4427
|
-
const [edges, setEdges] = (0,
|
|
4428
|
-
|
|
4429
|
-
const { fitView, setCenter } = (0, import_react21.useReactFlow)();
|
|
4430
|
-
(0, import_react22.useEffect)(() => {
|
|
6961
|
+
const [nodes, setNodes, onNodesChange] = (0, import_react20.useNodesState)([]);
|
|
6962
|
+
const [edges, setEdges] = (0, import_react21.useState)([]);
|
|
6963
|
+
(0, import_react21.useEffect)(() => {
|
|
4431
6964
|
const spansMap = /* @__PURE__ */ new Map();
|
|
4432
6965
|
const rootSpans = [];
|
|
4433
6966
|
for (const span of spans.data ?? []) {
|
|
@@ -4462,21 +6995,6 @@ var TraceGraph = ({
|
|
|
4462
6995
|
setNodes(layoutedNodes);
|
|
4463
6996
|
setEdges(layoutedEdges);
|
|
4464
6997
|
}, [spans.data, initialFocusEventId, setNodes]);
|
|
4465
|
-
(0, import_react22.useEffect)(() => {
|
|
4466
|
-
const shouldSetInitialView = !spans.loading && nodes.length > 0 && !initialViewSet;
|
|
4467
|
-
if (shouldSetInitialView) {
|
|
4468
|
-
if (initialFocusEventId) {
|
|
4469
|
-
const focusNode = nodes.find((node) => node.id === initialFocusEventId);
|
|
4470
|
-
if (focusNode) {
|
|
4471
|
-
void fitView({ maxZoom: 0.8, nodes: [focusNode], padding: 0.2 });
|
|
4472
|
-
onEventSelect(focusNode.data.event);
|
|
4473
|
-
}
|
|
4474
|
-
} else {
|
|
4475
|
-
void fitView({ duration: 500 });
|
|
4476
|
-
}
|
|
4477
|
-
setInitialViewSet(true);
|
|
4478
|
-
}
|
|
4479
|
-
}, [spans.loading, nodes, initialFocusEventId, viewPortPixelWidth, setCenter, fitView, onEventSelect, initialViewSet]);
|
|
4480
6998
|
const theme = (0, import_material18.useTheme)();
|
|
4481
6999
|
return /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(import_jsx_runtime139.Fragment, { children: [
|
|
4482
7000
|
spans.error && /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(
|
|
@@ -4494,26 +7012,26 @@ var TraceGraph = ({
|
|
|
4494
7012
|
}
|
|
4495
7013
|
),
|
|
4496
7014
|
/* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(
|
|
4497
|
-
|
|
7015
|
+
import_react20.ReactFlow,
|
|
4498
7016
|
{
|
|
4499
7017
|
"data-testid": "trace-graph",
|
|
4500
|
-
defaultViewport: { x: 0, y: 0, zoom: 1 },
|
|
4501
7018
|
edges,
|
|
4502
7019
|
fitView: true,
|
|
7020
|
+
fitViewOptions: initialFocusEventId ? { maxZoom: 1, nodes: [{ id: initialFocusEventId }], padding: 0.2 } : void 0,
|
|
4503
7021
|
maxZoom: 1.5,
|
|
4504
7022
|
minZoom: 0.1,
|
|
4505
7023
|
nodes,
|
|
4506
7024
|
nodesDraggable: false,
|
|
4507
7025
|
nodeTypes,
|
|
4508
7026
|
onNodeClick: (_event, node) => {
|
|
4509
|
-
onEventSelect(node.data.event);
|
|
7027
|
+
onEventSelect(node.data.event.span_id);
|
|
4510
7028
|
},
|
|
4511
7029
|
onNodesChange,
|
|
4512
7030
|
selectNodesOnDrag: false,
|
|
4513
7031
|
children: [
|
|
4514
7032
|
/* @__PURE__ */ (0, import_jsx_runtime139.jsx)(Controls, {}),
|
|
4515
7033
|
/* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
|
|
4516
|
-
|
|
7034
|
+
import_react20.Background,
|
|
4517
7035
|
{
|
|
4518
7036
|
bgColor: theme.palette.background.paper,
|
|
4519
7037
|
color: theme.palette.text.disabled
|
|
@@ -4571,8 +7089,7 @@ var TraceGraphView = ({
|
|
|
4571
7089
|
spans,
|
|
4572
7090
|
status,
|
|
4573
7091
|
statusError,
|
|
4574
|
-
traceId
|
|
4575
|
-
viewPortPixelWidth
|
|
7092
|
+
traceId
|
|
4576
7093
|
}) => {
|
|
4577
7094
|
const shouldShowStatusMessage = Boolean(statusError) || status?.status === "DISABLED";
|
|
4578
7095
|
return /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(
|
|
@@ -4619,7 +7136,7 @@ var TraceGraphView = ({
|
|
|
4619
7136
|
height: "100%",
|
|
4620
7137
|
overflow: "auto"
|
|
4621
7138
|
},
|
|
4622
|
-
children: traceId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
7139
|
+
children: traceId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_react22.ReactFlowProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
4623
7140
|
TraceGraph,
|
|
4624
7141
|
{
|
|
4625
7142
|
initialFocusEventId: spanId,
|
|
@@ -4631,8 +7148,7 @@ var TraceGraphView = ({
|
|
|
4631
7148
|
data: spans,
|
|
4632
7149
|
error: fetchError,
|
|
4633
7150
|
loading
|
|
4634
|
-
}
|
|
4635
|
-
viewPortPixelWidth
|
|
7151
|
+
}
|
|
4636
7152
|
}
|
|
4637
7153
|
) })
|
|
4638
7154
|
}
|
|
@@ -4647,11 +7163,11 @@ var TraceGraphView = ({
|
|
|
4647
7163
|
};
|
|
4648
7164
|
var TraceGraphPage = ({ onClose, spanId, traceId }) => {
|
|
4649
7165
|
const api = useAppInspectorApi();
|
|
4650
|
-
const [spans, setSpans] = (0,
|
|
4651
|
-
const [loading, setLoading] = (0,
|
|
7166
|
+
const [spans, setSpans] = (0, import_react23.useState)();
|
|
7167
|
+
const [loading, setLoading] = (0, import_react23.useState)(false);
|
|
4652
7168
|
const [includeReadOperations] = useLocalStorage("includeReadOperations", false);
|
|
4653
|
-
const [fetchError, setFetchError] = (0,
|
|
4654
|
-
const fetchSpans = (0,
|
|
7169
|
+
const [fetchError, setFetchError] = (0, import_react23.useState)();
|
|
7170
|
+
const fetchSpans = (0, import_react23.useCallback)(async () => {
|
|
4655
7171
|
setLoading(true);
|
|
4656
7172
|
try {
|
|
4657
7173
|
const response = await api.getSpans({
|
|
@@ -4667,43 +7183,28 @@ var TraceGraphPage = ({ onClose, spanId, traceId }) => {
|
|
|
4667
7183
|
setLoading(false);
|
|
4668
7184
|
}
|
|
4669
7185
|
}, [api, includeReadOperations, traceId]);
|
|
4670
|
-
(0,
|
|
7186
|
+
(0, import_react23.useEffect)(() => {
|
|
4671
7187
|
void fetchSpans();
|
|
4672
7188
|
}, [fetchSpans]);
|
|
4673
|
-
const [open, setOpen] = (0,
|
|
4674
|
-
const [selectedEvent, setSelectedEvent] = (0,
|
|
4675
|
-
const
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
const percentage = Number.parseInt(percentageMatch[1], 10);
|
|
4681
|
-
return window.innerWidth * percentage / 100;
|
|
7189
|
+
const [open, setOpen] = (0, import_react23.useState)(true);
|
|
7190
|
+
const [selectedEvent, setSelectedEvent] = (0, import_react23.useState)(() => spans?.find((span) => span.span_id === spanId));
|
|
7191
|
+
const spansReference = (0, import_react23.useRef)();
|
|
7192
|
+
(0, import_react23.useEffect)(() => {
|
|
7193
|
+
if (!spansReference.current && spans) {
|
|
7194
|
+
setSelectedEvent(spans.find((span) => span.span_id === spanId));
|
|
7195
|
+
spansReference.current = spans;
|
|
4682
7196
|
}
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
(0,
|
|
4686
|
-
const
|
|
4687
|
-
|
|
4688
|
-
const drawerPixelWidth = open ? calculateDrawerWidth() : 0;
|
|
4689
|
-
setViewPortPixelWidth(totalWidth - drawerPixelWidth);
|
|
4690
|
-
};
|
|
4691
|
-
updateViewportWidth();
|
|
4692
|
-
const timeoutId = setTimeout(updateViewportWidth, 50);
|
|
4693
|
-
window.addEventListener("resize", updateViewportWidth);
|
|
4694
|
-
return () => {
|
|
4695
|
-
window.removeEventListener("resize", updateViewportWidth);
|
|
4696
|
-
clearTimeout(timeoutId);
|
|
4697
|
-
};
|
|
4698
|
-
}, [open, calculateDrawerWidth]);
|
|
4699
|
-
const handleEventSelect = (0, import_react24.useCallback)((event) => {
|
|
4700
|
-
setSelectedEvent(event);
|
|
7197
|
+
}, [spans, setSelectedEvent, spanId]);
|
|
7198
|
+
const { checkStatus, error: statusError, status } = useStatus();
|
|
7199
|
+
const handleEventSelect = (0, import_react23.useCallback)((spanId2) => {
|
|
7200
|
+
const span = spans?.find((s) => s.span_id === spanId2);
|
|
7201
|
+
setSelectedEvent(span);
|
|
4701
7202
|
setOpen(true);
|
|
4702
|
-
}, []);
|
|
4703
|
-
const handleRetry = (0,
|
|
7203
|
+
}, [spans]);
|
|
7204
|
+
const handleRetry = (0, import_react23.useCallback)(() => {
|
|
4704
7205
|
void checkStatus();
|
|
4705
7206
|
}, [checkStatus]);
|
|
4706
|
-
const navigateToSpansList = (0,
|
|
7207
|
+
const navigateToSpansList = (0, import_react23.useCallback)(() => {
|
|
4707
7208
|
onClose?.();
|
|
4708
7209
|
}, [onClose]);
|
|
4709
7210
|
return /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
@@ -4724,8 +7225,7 @@ var TraceGraphPage = ({ onClose, spanId, traceId }) => {
|
|
|
4724
7225
|
spans,
|
|
4725
7226
|
status,
|
|
4726
7227
|
statusError,
|
|
4727
|
-
traceId
|
|
4728
|
-
viewPortPixelWidth
|
|
7228
|
+
traceId
|
|
4729
7229
|
}
|
|
4730
7230
|
);
|
|
4731
7231
|
};
|
|
@@ -4735,24 +7235,24 @@ var import_jsx_runtime141 = require("react/jsx-runtime");
|
|
|
4735
7235
|
var spansPerPageOptions = [25, 50, 100];
|
|
4736
7236
|
var SpansListPage = () => {
|
|
4737
7237
|
const api = useAppInspectorApi();
|
|
4738
|
-
const [spans, setSpans] = (0,
|
|
4739
|
-
const [loading, setLoading] = (0,
|
|
4740
|
-
const hasFetched = (0,
|
|
7238
|
+
const [spans, setSpans] = (0, import_react24.useState)();
|
|
7239
|
+
const [loading, setLoading] = (0, import_react24.useState)(false);
|
|
7240
|
+
const hasFetched = (0, import_react24.useRef)(false);
|
|
4741
7241
|
const [includeReadOperations, setIncludeReadOperations] = useLocalStorage("includeReadOperations", false);
|
|
4742
|
-
const mapPageToNextCursor = (0,
|
|
4743
|
-
const [page, setPage] = (0,
|
|
4744
|
-
const [pageSize, setPageSize] = (0,
|
|
4745
|
-
const [spanCount, setSpanCount] = (0,
|
|
4746
|
-
const queryOptions = (0,
|
|
7242
|
+
const mapPageToNextCursor = (0, import_react24.useRef)({});
|
|
7243
|
+
const [page, setPage] = (0, import_react24.useState)(0);
|
|
7244
|
+
const [pageSize, setPageSize] = (0, import_react24.useState)(100);
|
|
7245
|
+
const [spanCount, setSpanCount] = (0, import_react24.useState)(0);
|
|
7246
|
+
const queryOptions = (0, import_react24.useMemo)(() => {
|
|
4747
7247
|
return {
|
|
4748
7248
|
is_write_operation: includeReadOperations ? void 0 : true,
|
|
4749
7249
|
limit: pageSize,
|
|
4750
7250
|
pagination_token: mapPageToNextCursor.current[page - 1]
|
|
4751
7251
|
};
|
|
4752
7252
|
}, [includeReadOperations, pageSize, page]);
|
|
4753
|
-
const [fetchError, setFetchError] = (0,
|
|
7253
|
+
const [fetchError, setFetchError] = (0, import_react24.useState)();
|
|
4754
7254
|
const { checkStatus, error: statusError, status } = useStatus();
|
|
4755
|
-
const fetchSpans = (0,
|
|
7255
|
+
const fetchSpans = (0, import_react24.useCallback)(async () => {
|
|
4756
7256
|
setLoading(true);
|
|
4757
7257
|
try {
|
|
4758
7258
|
const response = await api.getSpans(queryOptions);
|
|
@@ -4769,26 +7269,26 @@ var SpansListPage = () => {
|
|
|
4769
7269
|
setLoading(false);
|
|
4770
7270
|
}
|
|
4771
7271
|
}, [api, page, queryOptions]);
|
|
4772
|
-
const fetchSpansSync = (0,
|
|
7272
|
+
const fetchSpansSync = (0, import_react24.useCallback)(() => {
|
|
4773
7273
|
void fetchSpans();
|
|
4774
7274
|
}, [fetchSpans]);
|
|
4775
|
-
(0,
|
|
7275
|
+
(0, import_react24.useEffect)(() => {
|
|
4776
7276
|
if (hasFetched.current) return;
|
|
4777
7277
|
if (status?.status !== "ENABLED") return;
|
|
4778
7278
|
hasFetched.current = true;
|
|
4779
7279
|
void fetchSpans();
|
|
4780
7280
|
}, [fetchSpans, status]);
|
|
4781
|
-
(0,
|
|
7281
|
+
(0, import_react24.useEffect)(() => {
|
|
4782
7282
|
if (!hasFetched.current) return;
|
|
4783
7283
|
void fetchSpans();
|
|
4784
7284
|
}, [fetchSpans]);
|
|
4785
|
-
const [selectedTraceId, setSelectedTraceId] = (0,
|
|
4786
|
-
const [selectedSpanId, setSelectedSpanId] = (0,
|
|
4787
|
-
const navigateToSpan = (0,
|
|
7285
|
+
const [selectedTraceId, setSelectedTraceId] = (0, import_react24.useState)();
|
|
7286
|
+
const [selectedSpanId, setSelectedSpanId] = (0, import_react24.useState)();
|
|
7287
|
+
const navigateToSpan = (0, import_react24.useCallback)((span) => {
|
|
4788
7288
|
setSelectedTraceId(span.trace_id);
|
|
4789
7289
|
setSelectedSpanId(span.span_id);
|
|
4790
7290
|
}, []);
|
|
4791
|
-
const clearSpans = (0,
|
|
7291
|
+
const clearSpans = (0, import_react24.useCallback)(async () => {
|
|
4792
7292
|
setLoading(true);
|
|
4793
7293
|
try {
|
|
4794
7294
|
await api.deleteSpans();
|
|
@@ -4802,7 +7302,7 @@ var SpansListPage = () => {
|
|
|
4802
7302
|
setLoading(false);
|
|
4803
7303
|
}
|
|
4804
7304
|
}, [api, fetchSpans]);
|
|
4805
|
-
const handleRetry = (0,
|
|
7305
|
+
const handleRetry = (0, import_react24.useCallback)(() => {
|
|
4806
7306
|
void checkStatus();
|
|
4807
7307
|
}, [checkStatus]);
|
|
4808
7308
|
const shouldShowStatusMessage = Boolean(statusError) || status?.status === "DISABLED";
|
|
@@ -4872,8 +7372,8 @@ var routes = {
|
|
|
4872
7372
|
};
|
|
4873
7373
|
|
|
4874
7374
|
// src/context.tsx
|
|
7375
|
+
var import_react25 = require("react");
|
|
4875
7376
|
var import_react26 = require("react");
|
|
4876
|
-
var import_react27 = require("react");
|
|
4877
7377
|
|
|
4878
7378
|
// src/constants/error-messages.ts
|
|
4879
7379
|
var ERROR_MESSAGES = {
|
|
@@ -4882,6 +7382,52 @@ var ERROR_MESSAGES = {
|
|
|
4882
7382
|
CONNECTION_FAILED: "Failed to connect to LocalStack. Please ensure LocalStack is running and accessible."
|
|
4883
7383
|
};
|
|
4884
7384
|
|
|
7385
|
+
// src/utils/logger.ts
|
|
7386
|
+
var getIsDevelopment = () => {
|
|
7387
|
+
try {
|
|
7388
|
+
return false;
|
|
7389
|
+
} catch {
|
|
7390
|
+
return false;
|
|
7391
|
+
}
|
|
7392
|
+
};
|
|
7393
|
+
var isDevelopment = getIsDevelopment();
|
|
7394
|
+
var logger = {
|
|
7395
|
+
debug: (message, data) => {
|
|
7396
|
+
if (isDevelopment) {
|
|
7397
|
+
console.debug(`[DEBUG] ${message}`, data === void 0 ? "" : data);
|
|
7398
|
+
}
|
|
7399
|
+
},
|
|
7400
|
+
error: (message, data) => {
|
|
7401
|
+
if (isDevelopment) {
|
|
7402
|
+
console.error(`[ERROR] ${message}`, data === void 0 ? "" : data);
|
|
7403
|
+
}
|
|
7404
|
+
},
|
|
7405
|
+
info: (message, data) => {
|
|
7406
|
+
if (isDevelopment) {
|
|
7407
|
+
console.info(`[INFO] ${message}`, data === void 0 ? "" : data);
|
|
7408
|
+
}
|
|
7409
|
+
},
|
|
7410
|
+
warn: (message, data) => {
|
|
7411
|
+
if (isDevelopment) {
|
|
7412
|
+
console.warn(`[WARN] ${message}`, data === void 0 ? "" : data);
|
|
7413
|
+
}
|
|
7414
|
+
}
|
|
7415
|
+
};
|
|
7416
|
+
var createScopedLogger = (scope) => ({
|
|
7417
|
+
debug: (message, data) => {
|
|
7418
|
+
logger.debug(`[${scope}] ${message}`, data);
|
|
7419
|
+
},
|
|
7420
|
+
error: (message, data) => {
|
|
7421
|
+
logger.error(`[${scope}] ${message}`, data);
|
|
7422
|
+
},
|
|
7423
|
+
info: (message, data) => {
|
|
7424
|
+
logger.info(`[${scope}] ${message}`, data);
|
|
7425
|
+
},
|
|
7426
|
+
warn: (message, data) => {
|
|
7427
|
+
logger.warn(`[${scope}] ${message}`, data);
|
|
7428
|
+
}
|
|
7429
|
+
});
|
|
7430
|
+
|
|
4885
7431
|
// src/api/client.ts
|
|
4886
7432
|
var apiLogger = createScopedLogger("API");
|
|
4887
7433
|
var makeRequest = async (options) => {
|
|
@@ -5003,12 +7549,12 @@ var createApiClient = ({ localstackEndpoint }) => {
|
|
|
5003
7549
|
|
|
5004
7550
|
// src/context.tsx
|
|
5005
7551
|
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
5006
|
-
var AppInspectorContext = (0,
|
|
7552
|
+
var AppInspectorContext = (0, import_react25.createContext)(void 0);
|
|
5007
7553
|
var AppInspectorContextProvider = (props) => {
|
|
5008
|
-
const api = (0,
|
|
7554
|
+
const api = (0, import_react26.useMemo)(() => {
|
|
5009
7555
|
return false ? createApiClientMock() : createApiClient({ localstackEndpoint: props.localstackEndpoint });
|
|
5010
7556
|
}, [props.localstackEndpoint]);
|
|
5011
|
-
const resolveLink = (0,
|
|
7557
|
+
const resolveLink = (0, import_react26.useCallback)(
|
|
5012
7558
|
(options) => {
|
|
5013
7559
|
if (options.to === "settings") {
|
|
5014
7560
|
return `${props.routePrefix}/settings`;
|
|
@@ -5020,7 +7566,7 @@ var AppInspectorContextProvider = (props) => {
|
|
|
5020
7566
|
},
|
|
5021
7567
|
[props.routePrefix]
|
|
5022
7568
|
);
|
|
5023
|
-
const contextValue = (0,
|
|
7569
|
+
const contextValue = (0, import_react26.useMemo)(
|
|
5024
7570
|
() => ({
|
|
5025
7571
|
linkComponent: props.linkComponent,
|
|
5026
7572
|
localstackEndpoint: props.localstackEndpoint,
|
|
@@ -5040,4 +7586,30 @@ var pages = {
|
|
|
5040
7586
|
AppInspectorContextProvider,
|
|
5041
7587
|
pages
|
|
5042
7588
|
});
|
|
7589
|
+
/*! Bundled license information:
|
|
7590
|
+
|
|
7591
|
+
@tanstack/table-core/build/lib/index.mjs:
|
|
7592
|
+
(**
|
|
7593
|
+
* table-core
|
|
7594
|
+
*
|
|
7595
|
+
* Copyright (c) TanStack
|
|
7596
|
+
*
|
|
7597
|
+
* This source code is licensed under the MIT license found in the
|
|
7598
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
7599
|
+
*
|
|
7600
|
+
* @license MIT
|
|
7601
|
+
*)
|
|
7602
|
+
|
|
7603
|
+
@tanstack/react-table/build/lib/index.mjs:
|
|
7604
|
+
(**
|
|
7605
|
+
* react-table
|
|
7606
|
+
*
|
|
7607
|
+
* Copyright (c) TanStack
|
|
7608
|
+
*
|
|
7609
|
+
* This source code is licensed under the MIT license found in the
|
|
7610
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
7611
|
+
*
|
|
7612
|
+
* @license MIT
|
|
7613
|
+
*)
|
|
7614
|
+
*/
|
|
5043
7615
|
//# sourceMappingURL=index.cjs.map
|