@vantageos/mosaic-blocks 0.5.37-alpha → 0.5.39-alpha
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 +149 -127
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -2
- package/dist/index.d.ts +18 -2
- package/dist/index.js +150 -128
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/r/mosaic-adaptive-grid.json +1 -1
- package/r/mosaic-adaptive-modal.json +1 -1
- package/r/mosaic-adaptive-navigation.json +1 -1
- package/r/mosaic-add-memory-form.json +3 -3
- package/r/mosaic-admin-only-guard.json +1 -1
- package/r/mosaic-agent-chat.json +4 -4
- package/r/mosaic-agent-composer.json +1 -1
- package/r/mosaic-agent-editor.json +3 -3
- package/r/mosaic-agent-list.json +4 -4
- package/r/mosaic-app-sidebar.json +1 -1
- package/r/mosaic-artifact-checklist.json +1 -1
- package/r/mosaic-artifact-data-table.json +1 -1
- package/r/mosaic-artifact-library.json +1 -1
- package/r/mosaic-artifact-save-as-memory-form.json +2 -2
- package/r/mosaic-chat-message.json +1 -1
- package/r/mosaic-dashboard-content.json +1 -1
- package/r/mosaic-dashboard-header.json +1 -1
- package/r/mosaic-dashboard-layout.json +3 -3
- package/r/mosaic-document-table.json +6 -6
- package/r/mosaic-edit-memory-dialog.json +3 -3
- package/r/mosaic-edit-session-dialog.json +3 -3
- package/r/mosaic-editable-cell.json +1 -1
- package/r/mosaic-filter-bar.json +1 -1
- package/r/mosaic-filter-sidebar.json +1 -1
- package/r/mosaic-grille-registre.json +2 -2
- package/r/mosaic-main-nav.json +1 -1
- package/r/mosaic-marketplace-card.json +2 -2
- package/r/mosaic-marketplace-list.json +3 -3
- package/r/mosaic-match-input.json +1 -1
- package/r/mosaic-memory-dashboard.json +1 -1
- package/r/mosaic-memory-search.json +1 -1
- package/r/mosaic-mention-input.json +1 -1
- package/r/mosaic-message-list.json +2 -2
- package/r/mosaic-message-search.json +1 -1
- package/r/mosaic-module-library.json +1 -1
- package/r/mosaic-org-context-display.json +1 -1
- package/r/mosaic-org-panel.json +2 -2
- package/r/mosaic-preferences-panel.json +1 -1
- package/r/mosaic-profile-panel.json +1 -1
- package/r/mosaic-quick-actions-menu.json +1 -1
- package/r/mosaic-quick-agent-selector.json +2 -2
- package/r/mosaic-save-chat-as-memory-form.json +3 -3
- package/r/mosaic-save-template-modal.json +5 -5
- package/r/mosaic-selector-modal.json +1 -1
- package/r/mosaic-session-card.json +2 -2
- package/r/mosaic-template-gallery.json +3 -3
- package/r/mosaic-template-management-panel.json +3 -3
- package/r/use-effective-workspace-id.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -26,7 +26,7 @@ import * as ag_grid_community from 'ag-grid-community';
|
|
|
26
26
|
import { ColDef, Theme as Theme$1, GridReadyEvent, CellValueChangedEvent, RowClassParams, RowStyle, CellClickedEvent, GridSizeChangedEvent, SizeColumnsToFitGridStrategy } from 'ag-grid-community';
|
|
27
27
|
export { Tooltip } from '@base-ui/react/tooltip';
|
|
28
28
|
|
|
29
|
-
declare const version = "0.5.
|
|
29
|
+
declare const version = "0.5.39-alpha";
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Placeholder component — infra scaffold only.
|
|
@@ -11746,8 +11746,24 @@ interface GrilleRegistreProps<T> {
|
|
|
11746
11746
|
domLayout?: "normal" | "autoHeight" | "print";
|
|
11747
11747
|
/** Refit columns on a size change — `refitColumns` on an autoHeight grid. */
|
|
11748
11748
|
onGridSizeChanged?: (e: GridSizeChangedEvent<T>) => void;
|
|
11749
|
+
/**
|
|
11750
|
+
* Text of the grid's no-rows overlay, shown when `lignes` is empty. The host
|
|
11751
|
+
* owns the language; omitted, AG Grid shows its own default overlay text.
|
|
11752
|
+
*/
|
|
11753
|
+
messageVide?: string;
|
|
11754
|
+
/** AG Grid pagination; omitted, the grid shows every row (no paging panel). */
|
|
11755
|
+
pagination?: boolean;
|
|
11756
|
+
/** Rows per page when `pagination` is on; omitted, AG Grid's default. */
|
|
11757
|
+
paginationPageSize?: number;
|
|
11758
|
+
/** Page-size choices offered in the paging panel, or false to hide the picker. */
|
|
11759
|
+
paginationPageSizeSelector?: number[] | boolean;
|
|
11760
|
+
/**
|
|
11761
|
+
* Grid UI text keyed by AG Grid locale key. The host owns the language;
|
|
11762
|
+
* omitted, AG Grid shows its own default text.
|
|
11763
|
+
*/
|
|
11764
|
+
localeText?: Record<string, string>;
|
|
11749
11765
|
}
|
|
11750
|
-
declare function GrilleRegistre<T>({ lignes, columnDefs, getRowId, filtreGlobal, theme, onGridReady, onCelluleEditee, getRowStyle, tooltipShowDelay, suppressCellFocus, onCellClicked, rowHeight, domLayout, onGridSizeChanged, }: GrilleRegistreProps<T>): React.JSX.Element;
|
|
11766
|
+
declare function GrilleRegistre<T>({ lignes, columnDefs, getRowId, filtreGlobal, theme, onGridReady, onCelluleEditee, getRowStyle, tooltipShowDelay, suppressCellFocus, onCellClicked, rowHeight, domLayout, onGridSizeChanged, messageVide, pagination, paginationPageSize, paginationPageSizeSelector, localeText, }: GrilleRegistreProps<T>): React.JSX.Element;
|
|
11751
11767
|
|
|
11752
11768
|
interface PanneauRegistreShellLabels {
|
|
11753
11769
|
/** Accessible name of the left-edge resize handle. */
|
package/dist/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ import * as ag_grid_community from 'ag-grid-community';
|
|
|
26
26
|
import { ColDef, Theme as Theme$1, GridReadyEvent, CellValueChangedEvent, RowClassParams, RowStyle, CellClickedEvent, GridSizeChangedEvent, SizeColumnsToFitGridStrategy } from 'ag-grid-community';
|
|
27
27
|
export { Tooltip } from '@base-ui/react/tooltip';
|
|
28
28
|
|
|
29
|
-
declare const version = "0.5.
|
|
29
|
+
declare const version = "0.5.39-alpha";
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Placeholder component — infra scaffold only.
|
|
@@ -11746,8 +11746,24 @@ interface GrilleRegistreProps<T> {
|
|
|
11746
11746
|
domLayout?: "normal" | "autoHeight" | "print";
|
|
11747
11747
|
/** Refit columns on a size change — `refitColumns` on an autoHeight grid. */
|
|
11748
11748
|
onGridSizeChanged?: (e: GridSizeChangedEvent<T>) => void;
|
|
11749
|
+
/**
|
|
11750
|
+
* Text of the grid's no-rows overlay, shown when `lignes` is empty. The host
|
|
11751
|
+
* owns the language; omitted, AG Grid shows its own default overlay text.
|
|
11752
|
+
*/
|
|
11753
|
+
messageVide?: string;
|
|
11754
|
+
/** AG Grid pagination; omitted, the grid shows every row (no paging panel). */
|
|
11755
|
+
pagination?: boolean;
|
|
11756
|
+
/** Rows per page when `pagination` is on; omitted, AG Grid's default. */
|
|
11757
|
+
paginationPageSize?: number;
|
|
11758
|
+
/** Page-size choices offered in the paging panel, or false to hide the picker. */
|
|
11759
|
+
paginationPageSizeSelector?: number[] | boolean;
|
|
11760
|
+
/**
|
|
11761
|
+
* Grid UI text keyed by AG Grid locale key. The host owns the language;
|
|
11762
|
+
* omitted, AG Grid shows its own default text.
|
|
11763
|
+
*/
|
|
11764
|
+
localeText?: Record<string, string>;
|
|
11749
11765
|
}
|
|
11750
|
-
declare function GrilleRegistre<T>({ lignes, columnDefs, getRowId, filtreGlobal, theme, onGridReady, onCelluleEditee, getRowStyle, tooltipShowDelay, suppressCellFocus, onCellClicked, rowHeight, domLayout, onGridSizeChanged, }: GrilleRegistreProps<T>): React.JSX.Element;
|
|
11766
|
+
declare function GrilleRegistre<T>({ lignes, columnDefs, getRowId, filtreGlobal, theme, onGridReady, onCelluleEditee, getRowStyle, tooltipShowDelay, suppressCellFocus, onCellClicked, rowHeight, domLayout, onGridSizeChanged, messageVide, pagination, paginationPageSize, paginationPageSizeSelector, localeText, }: GrilleRegistreProps<T>): React.JSX.Element;
|
|
11751
11767
|
|
|
11752
11768
|
interface PanneauRegistreShellLabels {
|
|
11753
11769
|
/** Accessible name of the left-edge resize handle. */
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
3
3
|
import { Button } from '@base-ui/react/button';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
import * as React30 from 'react';
|
|
6
|
-
import { useState, useEffect, useRef, useId, useLayoutEffect, useCallback, useMemo } from 'react';
|
|
6
|
+
import { createContext, useState, useEffect, useRef, useId, useLayoutEffect, useCallback, useMemo, useContext } from 'react';
|
|
7
7
|
import { Accordion } from '@base-ui/react/accordion';
|
|
8
8
|
export { Accordion } from '@base-ui/react/accordion';
|
|
9
9
|
import { Checkbox } from '@base-ui/react/checkbox';
|
|
@@ -33,7 +33,7 @@ import { Drawer, Button as Button$1, Popover as Popover$1, Checkbox as Checkbox$
|
|
|
33
33
|
import { ChevronUp, ChevronDown, Minimize2, Maximize2, Pencil } from 'lucide-react';
|
|
34
34
|
|
|
35
35
|
// src/version.ts
|
|
36
|
-
var version = "0.5.
|
|
36
|
+
var version = "0.5.39-alpha";
|
|
37
37
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
38
38
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
39
39
|
}
|
|
@@ -18209,6 +18209,94 @@ function MosaicAdminOnlyGuard(props) {
|
|
|
18209
18209
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
18210
18210
|
}
|
|
18211
18211
|
MosaicAdminOnlyGuard.displayName = "MosaicAdminOnlyGuard";
|
|
18212
|
+
var registreGridTheme = themeQuartz.withParams({
|
|
18213
|
+
accentColor: "var(--accent)",
|
|
18214
|
+
backgroundColor: "var(--surface)",
|
|
18215
|
+
foregroundColor: "var(--foreground)",
|
|
18216
|
+
textColor: "var(--foreground)",
|
|
18217
|
+
borderColor: "var(--border)",
|
|
18218
|
+
headerBackgroundColor: "var(--surface-secondary)",
|
|
18219
|
+
headerTextColor: "var(--surface-secondary-foreground)",
|
|
18220
|
+
headerFontWeight: 600,
|
|
18221
|
+
fontFamily: "var(--font-sans)",
|
|
18222
|
+
fontSize: 14,
|
|
18223
|
+
headerFontSize: 13,
|
|
18224
|
+
rowHeight: 40,
|
|
18225
|
+
headerHeight: 44,
|
|
18226
|
+
spacing: 8,
|
|
18227
|
+
wrapperBorderRadius: 8,
|
|
18228
|
+
rowHoverColor: "var(--surface-hover)"
|
|
18229
|
+
// No `selectedRowBackgroundColor`: the grid does not use the native AG Grid row
|
|
18230
|
+
// selection. A host highlights its selected row through `getRowStyle`.
|
|
18231
|
+
});
|
|
18232
|
+
var fitGridWidthStrategy = {
|
|
18233
|
+
type: "fitGridWidth"
|
|
18234
|
+
};
|
|
18235
|
+
function refitColumns(e) {
|
|
18236
|
+
e.api.sizeColumnsToFit();
|
|
18237
|
+
}
|
|
18238
|
+
var modulesRegistered = false;
|
|
18239
|
+
function ensureModules() {
|
|
18240
|
+
if (modulesRegistered) return;
|
|
18241
|
+
ModuleRegistry.registerModules([AllCommunityModule]);
|
|
18242
|
+
modulesRegistered = true;
|
|
18243
|
+
}
|
|
18244
|
+
var DEFAUTS = {
|
|
18245
|
+
resizable: true,
|
|
18246
|
+
sortable: true,
|
|
18247
|
+
filter: true,
|
|
18248
|
+
floatingFilter: true
|
|
18249
|
+
};
|
|
18250
|
+
function GrilleRegistre({
|
|
18251
|
+
lignes,
|
|
18252
|
+
columnDefs,
|
|
18253
|
+
getRowId,
|
|
18254
|
+
filtreGlobal,
|
|
18255
|
+
theme = registreGridTheme,
|
|
18256
|
+
onGridReady,
|
|
18257
|
+
onCelluleEditee,
|
|
18258
|
+
getRowStyle,
|
|
18259
|
+
tooltipShowDelay,
|
|
18260
|
+
suppressCellFocus,
|
|
18261
|
+
onCellClicked,
|
|
18262
|
+
rowHeight,
|
|
18263
|
+
domLayout,
|
|
18264
|
+
onGridSizeChanged,
|
|
18265
|
+
messageVide,
|
|
18266
|
+
pagination,
|
|
18267
|
+
paginationPageSize,
|
|
18268
|
+
paginationPageSizeSelector,
|
|
18269
|
+
localeText
|
|
18270
|
+
}) {
|
|
18271
|
+
ensureModules();
|
|
18272
|
+
return /* @__PURE__ */ jsx("div", { className: "isolate h-full min-h-0 w-full", children: /* @__PURE__ */ jsx(
|
|
18273
|
+
AgGridReact,
|
|
18274
|
+
{
|
|
18275
|
+
theme,
|
|
18276
|
+
autoSizeStrategy: fitGridWidthStrategy,
|
|
18277
|
+
rowData: lignes,
|
|
18278
|
+
columnDefs,
|
|
18279
|
+
defaultColDef: DEFAUTS,
|
|
18280
|
+
quickFilterText: filtreGlobal,
|
|
18281
|
+
getRowId: (p) => getRowId(p.data),
|
|
18282
|
+
onGridReady,
|
|
18283
|
+
onCellValueChanged: onCelluleEditee,
|
|
18284
|
+
onCellClicked,
|
|
18285
|
+
getRowStyle,
|
|
18286
|
+
tooltipShowDelay,
|
|
18287
|
+
suppressCellFocus,
|
|
18288
|
+
rowHeight,
|
|
18289
|
+
domLayout,
|
|
18290
|
+
onGridSizeChanged,
|
|
18291
|
+
overlayComponentParams: messageVide === void 0 ? void 0 : { noRows: { overlayText: messageVide } },
|
|
18292
|
+
pagination,
|
|
18293
|
+
paginationPageSize,
|
|
18294
|
+
paginationPageSizeSelector,
|
|
18295
|
+
localeText,
|
|
18296
|
+
animateRows: true
|
|
18297
|
+
}
|
|
18298
|
+
) });
|
|
18299
|
+
}
|
|
18212
18300
|
|
|
18213
18301
|
// src/components/document-review/panel-tab.ts
|
|
18214
18302
|
var REVIEW_PANEL_TABS = ["compare", "document", "row"];
|
|
@@ -18289,6 +18377,22 @@ function correctionOutcome(result) {
|
|
|
18289
18377
|
if (!result.ok) return "failed";
|
|
18290
18378
|
return result.confirmed ? "ok" : "uncertain";
|
|
18291
18379
|
}
|
|
18380
|
+
var SelectedRowIdContext = createContext(null);
|
|
18381
|
+
function OpenRowButton({ value, node }) {
|
|
18382
|
+
const selectedRowId = useContext(SelectedRowIdContext);
|
|
18383
|
+
const isSelected = node.id !== void 0 && node.id === selectedRowId;
|
|
18384
|
+
return /* @__PURE__ */ jsx(
|
|
18385
|
+
"button",
|
|
18386
|
+
{
|
|
18387
|
+
type: "button",
|
|
18388
|
+
"data-slot": "document-table-open",
|
|
18389
|
+
"aria-current": isSelected ? "true" : void 0,
|
|
18390
|
+
"data-selected": isSelected ? "true" : void 0,
|
|
18391
|
+
className: "text-left underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
18392
|
+
children: value
|
|
18393
|
+
}
|
|
18394
|
+
);
|
|
18395
|
+
}
|
|
18292
18396
|
function MosaicDocumentTable({
|
|
18293
18397
|
columns,
|
|
18294
18398
|
rows,
|
|
@@ -18307,57 +18411,53 @@ function MosaicDocumentTable({
|
|
|
18307
18411
|
if (!isControlled) setInternalSelectedRowId(rowId);
|
|
18308
18412
|
onSelectedRowChange?.(rowId);
|
|
18309
18413
|
}
|
|
18310
|
-
const
|
|
18311
|
-
|
|
18312
|
-
|
|
18313
|
-
|
|
18314
|
-
|
|
18315
|
-
|
|
18316
|
-
|
|
18317
|
-
|
|
18318
|
-
|
|
18319
|
-
|
|
18320
|
-
|
|
18321
|
-
|
|
18322
|
-
|
|
18323
|
-
|
|
18324
|
-
|
|
18325
|
-
|
|
18326
|
-
|
|
18327
|
-
|
|
18328
|
-
|
|
18329
|
-
|
|
18330
|
-
|
|
18331
|
-
|
|
18332
|
-
|
|
18333
|
-
const tr = event.target.closest("tr[data-slot='data-table-row']");
|
|
18334
|
-
if (!(tr instanceof HTMLTableRowElement)) return;
|
|
18335
|
-
const row = rows[tr.sectionRowIndex];
|
|
18336
|
-
if (row !== void 0) select(getRowId(row));
|
|
18414
|
+
const columnDefs = useMemo(
|
|
18415
|
+
() => visibleColumns(columns, columnVisibility ?? initialColumnVisibility(columns)).map(
|
|
18416
|
+
(column, columnIndex) => ({
|
|
18417
|
+
colId: column.id,
|
|
18418
|
+
headerName: column.label,
|
|
18419
|
+
// The column model's value, as text: null reads as an empty cell.
|
|
18420
|
+
valueGetter: (params) => {
|
|
18421
|
+
if (params.data === void 0) return "";
|
|
18422
|
+
const value = column.accessor(params.data);
|
|
18423
|
+
return value === null ? "" : String(value);
|
|
18424
|
+
},
|
|
18425
|
+
// No type inference: a boolean stays text, never a grid checkbox.
|
|
18426
|
+
cellDataType: false,
|
|
18427
|
+
sortable: false,
|
|
18428
|
+
filter: false,
|
|
18429
|
+
floatingFilter: false,
|
|
18430
|
+
...columnIndex === 0 ? { cellRenderer: OpenRowButton } : {}
|
|
18431
|
+
})
|
|
18432
|
+
),
|
|
18433
|
+
[columns, columnVisibility]
|
|
18434
|
+
);
|
|
18435
|
+
function handleCellClicked(event) {
|
|
18436
|
+
if (event.data !== void 0) select(getRowId(event.data));
|
|
18337
18437
|
}
|
|
18338
18438
|
const orderedRowIds = rows.map(getRowId);
|
|
18339
18439
|
const selectedRow = selectedRowId === null ? void 0 : rows.find((row) => getRowId(row) === selectedRowId);
|
|
18340
|
-
return (
|
|
18341
|
-
|
|
18342
|
-
|
|
18343
|
-
|
|
18344
|
-
|
|
18345
|
-
|
|
18346
|
-
|
|
18347
|
-
|
|
18348
|
-
|
|
18349
|
-
|
|
18350
|
-
|
|
18351
|
-
|
|
18352
|
-
|
|
18353
|
-
|
|
18354
|
-
|
|
18355
|
-
|
|
18356
|
-
|
|
18357
|
-
|
|
18358
|
-
|
|
18359
|
-
|
|
18360
|
-
);
|
|
18440
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "document-table", className, children: [
|
|
18441
|
+
/* @__PURE__ */ jsx(SelectedRowIdContext.Provider, { value: selectedRowId, children: /* @__PURE__ */ jsx(
|
|
18442
|
+
GrilleRegistre,
|
|
18443
|
+
{
|
|
18444
|
+
lignes: rows,
|
|
18445
|
+
columnDefs,
|
|
18446
|
+
getRowId,
|
|
18447
|
+
onCellClicked: handleCellClicked,
|
|
18448
|
+
suppressCellFocus: true,
|
|
18449
|
+
domLayout: "autoHeight",
|
|
18450
|
+
onGridSizeChanged: refitColumns,
|
|
18451
|
+
messageVide: emptyMessage
|
|
18452
|
+
}
|
|
18453
|
+
) }),
|
|
18454
|
+
selectedRow !== void 0 && renderPanel ? renderPanel(selectedRow, {
|
|
18455
|
+
rowId: getRowId(selectedRow),
|
|
18456
|
+
orderedRowIds,
|
|
18457
|
+
selectRow: (rowId) => select(rowId),
|
|
18458
|
+
closeRow: () => select(null)
|
|
18459
|
+
}) : null
|
|
18460
|
+
] });
|
|
18361
18461
|
}
|
|
18362
18462
|
MosaicDocumentTable.displayName = "MosaicDocumentTable";
|
|
18363
18463
|
function MosaicDocumentCriteriaPanel({
|
|
@@ -18490,84 +18590,6 @@ function MosaicDocumentCriteriaPanel({
|
|
|
18490
18590
|
);
|
|
18491
18591
|
}
|
|
18492
18592
|
MosaicDocumentCriteriaPanel.displayName = "MosaicDocumentCriteriaPanel";
|
|
18493
|
-
var registreGridTheme = themeQuartz.withParams({
|
|
18494
|
-
accentColor: "var(--accent)",
|
|
18495
|
-
backgroundColor: "var(--surface)",
|
|
18496
|
-
foregroundColor: "var(--foreground)",
|
|
18497
|
-
textColor: "var(--foreground)",
|
|
18498
|
-
borderColor: "var(--border)",
|
|
18499
|
-
headerBackgroundColor: "var(--surface-secondary)",
|
|
18500
|
-
headerTextColor: "var(--surface-secondary-foreground)",
|
|
18501
|
-
headerFontWeight: 600,
|
|
18502
|
-
fontFamily: "var(--font-sans)",
|
|
18503
|
-
fontSize: 14,
|
|
18504
|
-
headerFontSize: 13,
|
|
18505
|
-
rowHeight: 40,
|
|
18506
|
-
headerHeight: 44,
|
|
18507
|
-
spacing: 8,
|
|
18508
|
-
wrapperBorderRadius: 8,
|
|
18509
|
-
rowHoverColor: "var(--surface-hover)"
|
|
18510
|
-
// No `selectedRowBackgroundColor`: the grid does not use the native AG Grid row
|
|
18511
|
-
// selection. A host highlights its selected row through `getRowStyle`.
|
|
18512
|
-
});
|
|
18513
|
-
var fitGridWidthStrategy = {
|
|
18514
|
-
type: "fitGridWidth"
|
|
18515
|
-
};
|
|
18516
|
-
function refitColumns(e) {
|
|
18517
|
-
e.api.sizeColumnsToFit();
|
|
18518
|
-
}
|
|
18519
|
-
var modulesRegistered = false;
|
|
18520
|
-
function ensureModules() {
|
|
18521
|
-
if (modulesRegistered) return;
|
|
18522
|
-
ModuleRegistry.registerModules([AllCommunityModule]);
|
|
18523
|
-
modulesRegistered = true;
|
|
18524
|
-
}
|
|
18525
|
-
var DEFAUTS = {
|
|
18526
|
-
resizable: true,
|
|
18527
|
-
sortable: true,
|
|
18528
|
-
filter: true,
|
|
18529
|
-
floatingFilter: true
|
|
18530
|
-
};
|
|
18531
|
-
function GrilleRegistre({
|
|
18532
|
-
lignes,
|
|
18533
|
-
columnDefs,
|
|
18534
|
-
getRowId,
|
|
18535
|
-
filtreGlobal,
|
|
18536
|
-
theme = registreGridTheme,
|
|
18537
|
-
onGridReady,
|
|
18538
|
-
onCelluleEditee,
|
|
18539
|
-
getRowStyle,
|
|
18540
|
-
tooltipShowDelay,
|
|
18541
|
-
suppressCellFocus,
|
|
18542
|
-
onCellClicked,
|
|
18543
|
-
rowHeight,
|
|
18544
|
-
domLayout,
|
|
18545
|
-
onGridSizeChanged
|
|
18546
|
-
}) {
|
|
18547
|
-
ensureModules();
|
|
18548
|
-
return /* @__PURE__ */ jsx("div", { className: "isolate h-full min-h-0 w-full", children: /* @__PURE__ */ jsx(
|
|
18549
|
-
AgGridReact,
|
|
18550
|
-
{
|
|
18551
|
-
theme,
|
|
18552
|
-
autoSizeStrategy: fitGridWidthStrategy,
|
|
18553
|
-
rowData: lignes,
|
|
18554
|
-
columnDefs,
|
|
18555
|
-
defaultColDef: DEFAUTS,
|
|
18556
|
-
quickFilterText: filtreGlobal,
|
|
18557
|
-
getRowId: (p) => getRowId(p.data),
|
|
18558
|
-
onGridReady,
|
|
18559
|
-
onCellValueChanged: onCelluleEditee,
|
|
18560
|
-
onCellClicked,
|
|
18561
|
-
getRowStyle,
|
|
18562
|
-
tooltipShowDelay,
|
|
18563
|
-
suppressCellFocus,
|
|
18564
|
-
rowHeight,
|
|
18565
|
-
domLayout,
|
|
18566
|
-
onGridSizeChanged,
|
|
18567
|
-
animateRows: true
|
|
18568
|
-
}
|
|
18569
|
-
) });
|
|
18570
|
-
}
|
|
18571
18593
|
var DEFAULT_WIDTH_RATIO = 0.45;
|
|
18572
18594
|
var MIN_WIDTH_PX = 360;
|
|
18573
18595
|
var MAX_WIDTH_RATIO = 0.9;
|