@vantageos/mosaic-blocks 0.5.36-alpha → 0.5.38-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/README.md +3 -1
- package/dist/index.cjs +553 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +191 -2
- package/dist/index.d.ts +191 -2
- package/dist/index.js +546 -51
- package/dist/index.js.map +1 -1
- package/package.json +9 -1
- 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 +53 -0
- 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/registry.json +42 -0
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';
|
|
@@ -27,9 +27,13 @@ import { Menu } from '@base-ui/react/menu';
|
|
|
27
27
|
import { Dialog } from '@base-ui/react/dialog';
|
|
28
28
|
import { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
29
29
|
import { Popover } from '@base-ui/react/popover';
|
|
30
|
+
import { themeQuartz, ModuleRegistry, AllCommunityModule } from 'ag-grid-community';
|
|
31
|
+
import { AgGridReact } from 'ag-grid-react';
|
|
32
|
+
import { Drawer, Button as Button$1, Popover as Popover$1, Checkbox as Checkbox$1, Toolbar, SearchField } from '@heroui/react';
|
|
33
|
+
import { ChevronUp, ChevronDown, Minimize2, Maximize2, Pencil } from 'lucide-react';
|
|
30
34
|
|
|
31
35
|
// src/version.ts
|
|
32
|
-
var version = "0.5.
|
|
36
|
+
var version = "0.5.38-alpha";
|
|
33
37
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
34
38
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
35
39
|
}
|
|
@@ -18205,6 +18209,86 @@ function MosaicAdminOnlyGuard(props) {
|
|
|
18205
18209
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
18206
18210
|
}
|
|
18207
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
|
+
}) {
|
|
18267
|
+
ensureModules();
|
|
18268
|
+
return /* @__PURE__ */ jsx("div", { className: "isolate h-full min-h-0 w-full", children: /* @__PURE__ */ jsx(
|
|
18269
|
+
AgGridReact,
|
|
18270
|
+
{
|
|
18271
|
+
theme,
|
|
18272
|
+
autoSizeStrategy: fitGridWidthStrategy,
|
|
18273
|
+
rowData: lignes,
|
|
18274
|
+
columnDefs,
|
|
18275
|
+
defaultColDef: DEFAUTS,
|
|
18276
|
+
quickFilterText: filtreGlobal,
|
|
18277
|
+
getRowId: (p) => getRowId(p.data),
|
|
18278
|
+
onGridReady,
|
|
18279
|
+
onCellValueChanged: onCelluleEditee,
|
|
18280
|
+
onCellClicked,
|
|
18281
|
+
getRowStyle,
|
|
18282
|
+
tooltipShowDelay,
|
|
18283
|
+
suppressCellFocus,
|
|
18284
|
+
rowHeight,
|
|
18285
|
+
domLayout,
|
|
18286
|
+
onGridSizeChanged,
|
|
18287
|
+
overlayComponentParams: messageVide === void 0 ? void 0 : { noRows: { overlayText: messageVide } },
|
|
18288
|
+
animateRows: true
|
|
18289
|
+
}
|
|
18290
|
+
) });
|
|
18291
|
+
}
|
|
18208
18292
|
|
|
18209
18293
|
// src/components/document-review/panel-tab.ts
|
|
18210
18294
|
var REVIEW_PANEL_TABS = ["compare", "document", "row"];
|
|
@@ -18285,6 +18369,22 @@ function correctionOutcome(result) {
|
|
|
18285
18369
|
if (!result.ok) return "failed";
|
|
18286
18370
|
return result.confirmed ? "ok" : "uncertain";
|
|
18287
18371
|
}
|
|
18372
|
+
var SelectedRowIdContext = createContext(null);
|
|
18373
|
+
function OpenRowButton({ value, node }) {
|
|
18374
|
+
const selectedRowId = useContext(SelectedRowIdContext);
|
|
18375
|
+
const isSelected = node.id !== void 0 && node.id === selectedRowId;
|
|
18376
|
+
return /* @__PURE__ */ jsx(
|
|
18377
|
+
"button",
|
|
18378
|
+
{
|
|
18379
|
+
type: "button",
|
|
18380
|
+
"data-slot": "document-table-open",
|
|
18381
|
+
"aria-current": isSelected ? "true" : void 0,
|
|
18382
|
+
"data-selected": isSelected ? "true" : void 0,
|
|
18383
|
+
className: "text-left underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
18384
|
+
children: value
|
|
18385
|
+
}
|
|
18386
|
+
);
|
|
18387
|
+
}
|
|
18288
18388
|
function MosaicDocumentTable({
|
|
18289
18389
|
columns,
|
|
18290
18390
|
rows,
|
|
@@ -18303,57 +18403,53 @@ function MosaicDocumentTable({
|
|
|
18303
18403
|
if (!isControlled) setInternalSelectedRowId(rowId);
|
|
18304
18404
|
onSelectedRowChange?.(rowId);
|
|
18305
18405
|
}
|
|
18306
|
-
const
|
|
18307
|
-
|
|
18308
|
-
|
|
18309
|
-
|
|
18310
|
-
|
|
18311
|
-
|
|
18312
|
-
|
|
18313
|
-
|
|
18314
|
-
|
|
18315
|
-
|
|
18316
|
-
|
|
18317
|
-
|
|
18318
|
-
|
|
18319
|
-
|
|
18320
|
-
|
|
18321
|
-
|
|
18322
|
-
|
|
18323
|
-
|
|
18324
|
-
|
|
18325
|
-
|
|
18326
|
-
|
|
18327
|
-
|
|
18328
|
-
|
|
18329
|
-
const tr = event.target.closest("tr[data-slot='data-table-row']");
|
|
18330
|
-
if (!(tr instanceof HTMLTableRowElement)) return;
|
|
18331
|
-
const row = rows[tr.sectionRowIndex];
|
|
18332
|
-
if (row !== void 0) select(getRowId(row));
|
|
18406
|
+
const columnDefs = useMemo(
|
|
18407
|
+
() => visibleColumns(columns, columnVisibility ?? initialColumnVisibility(columns)).map(
|
|
18408
|
+
(column, columnIndex) => ({
|
|
18409
|
+
colId: column.id,
|
|
18410
|
+
headerName: column.label,
|
|
18411
|
+
// The column model's value, as text: null reads as an empty cell.
|
|
18412
|
+
valueGetter: (params) => {
|
|
18413
|
+
if (params.data === void 0) return "";
|
|
18414
|
+
const value = column.accessor(params.data);
|
|
18415
|
+
return value === null ? "" : String(value);
|
|
18416
|
+
},
|
|
18417
|
+
// No type inference: a boolean stays text, never a grid checkbox.
|
|
18418
|
+
cellDataType: false,
|
|
18419
|
+
sortable: false,
|
|
18420
|
+
filter: false,
|
|
18421
|
+
floatingFilter: false,
|
|
18422
|
+
...columnIndex === 0 ? { cellRenderer: OpenRowButton } : {}
|
|
18423
|
+
})
|
|
18424
|
+
),
|
|
18425
|
+
[columns, columnVisibility]
|
|
18426
|
+
);
|
|
18427
|
+
function handleCellClicked(event) {
|
|
18428
|
+
if (event.data !== void 0) select(getRowId(event.data));
|
|
18333
18429
|
}
|
|
18334
18430
|
const orderedRowIds = rows.map(getRowId);
|
|
18335
18431
|
const selectedRow = selectedRowId === null ? void 0 : rows.find((row) => getRowId(row) === selectedRowId);
|
|
18336
|
-
return (
|
|
18337
|
-
|
|
18338
|
-
|
|
18339
|
-
|
|
18340
|
-
|
|
18341
|
-
|
|
18342
|
-
|
|
18343
|
-
|
|
18344
|
-
|
|
18345
|
-
|
|
18346
|
-
|
|
18347
|
-
|
|
18348
|
-
|
|
18349
|
-
|
|
18350
|
-
|
|
18351
|
-
|
|
18352
|
-
|
|
18353
|
-
|
|
18354
|
-
|
|
18355
|
-
|
|
18356
|
-
);
|
|
18432
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "document-table", className, children: [
|
|
18433
|
+
/* @__PURE__ */ jsx(SelectedRowIdContext.Provider, { value: selectedRowId, children: /* @__PURE__ */ jsx(
|
|
18434
|
+
GrilleRegistre,
|
|
18435
|
+
{
|
|
18436
|
+
lignes: rows,
|
|
18437
|
+
columnDefs,
|
|
18438
|
+
getRowId,
|
|
18439
|
+
onCellClicked: handleCellClicked,
|
|
18440
|
+
suppressCellFocus: true,
|
|
18441
|
+
domLayout: "autoHeight",
|
|
18442
|
+
onGridSizeChanged: refitColumns,
|
|
18443
|
+
messageVide: emptyMessage
|
|
18444
|
+
}
|
|
18445
|
+
) }),
|
|
18446
|
+
selectedRow !== void 0 && renderPanel ? renderPanel(selectedRow, {
|
|
18447
|
+
rowId: getRowId(selectedRow),
|
|
18448
|
+
orderedRowIds,
|
|
18449
|
+
selectRow: (rowId) => select(rowId),
|
|
18450
|
+
closeRow: () => select(null)
|
|
18451
|
+
}) : null
|
|
18452
|
+
] });
|
|
18357
18453
|
}
|
|
18358
18454
|
MosaicDocumentTable.displayName = "MosaicDocumentTable";
|
|
18359
18455
|
function MosaicDocumentCriteriaPanel({
|
|
@@ -18486,7 +18582,406 @@ function MosaicDocumentCriteriaPanel({
|
|
|
18486
18582
|
);
|
|
18487
18583
|
}
|
|
18488
18584
|
MosaicDocumentCriteriaPanel.displayName = "MosaicDocumentCriteriaPanel";
|
|
18585
|
+
var DEFAULT_WIDTH_RATIO = 0.45;
|
|
18586
|
+
var MIN_WIDTH_PX = 360;
|
|
18587
|
+
var MAX_WIDTH_RATIO = 0.9;
|
|
18588
|
+
var CSS_RULES = {
|
|
18589
|
+
// allow-hardcoded-word: a CSS rule (the scoped width variable), not user-facing text
|
|
18590
|
+
width: (px) => `.panneau-registre-shell { --panneau-registre-width: ${px}px; }`
|
|
18591
|
+
};
|
|
18592
|
+
function PanneauRegistreShell({
|
|
18593
|
+
open,
|
|
18594
|
+
onOpenChange,
|
|
18595
|
+
labels,
|
|
18596
|
+
ariaLabel,
|
|
18597
|
+
contexte,
|
|
18598
|
+
headerActions,
|
|
18599
|
+
forceWidthRatio = null,
|
|
18600
|
+
onPrev,
|
|
18601
|
+
onNext,
|
|
18602
|
+
prevDisabled,
|
|
18603
|
+
nextDisabled,
|
|
18604
|
+
children
|
|
18605
|
+
}) {
|
|
18606
|
+
const [widthPx, setWidthPx] = useState(null);
|
|
18607
|
+
const dragStart = useRef(null);
|
|
18608
|
+
useEffect(() => {
|
|
18609
|
+
if (widthPx !== null || typeof window === "undefined") return;
|
|
18610
|
+
setWidthPx(Math.round(window.innerWidth * DEFAULT_WIDTH_RATIO));
|
|
18611
|
+
}, [widthPx]);
|
|
18612
|
+
const onPointerMove = useCallback((e) => {
|
|
18613
|
+
const drag = dragStart.current;
|
|
18614
|
+
if (!drag) return;
|
|
18615
|
+
const dx = drag.x - e.clientX;
|
|
18616
|
+
const maxWidth = window.innerWidth * MAX_WIDTH_RATIO;
|
|
18617
|
+
setWidthPx(Math.min(maxWidth, Math.max(MIN_WIDTH_PX, drag.width + dx)));
|
|
18618
|
+
}, []);
|
|
18619
|
+
const onPointerUp = useCallback(() => {
|
|
18620
|
+
dragStart.current = null;
|
|
18621
|
+
window.removeEventListener("pointermove", onPointerMove);
|
|
18622
|
+
window.removeEventListener("pointerup", onPointerUp);
|
|
18623
|
+
}, [onPointerMove]);
|
|
18624
|
+
const onHandlePointerDown = useCallback(
|
|
18625
|
+
(e) => {
|
|
18626
|
+
dragStart.current = {
|
|
18627
|
+
x: e.clientX,
|
|
18628
|
+
width: widthPx ?? Math.round(window.innerWidth * DEFAULT_WIDTH_RATIO)
|
|
18629
|
+
};
|
|
18630
|
+
window.addEventListener("pointermove", onPointerMove);
|
|
18631
|
+
window.addEventListener("pointerup", onPointerUp);
|
|
18632
|
+
},
|
|
18633
|
+
[widthPx, onPointerMove, onPointerUp]
|
|
18634
|
+
);
|
|
18635
|
+
useEffect(() => () => onPointerUp(), [onPointerUp]);
|
|
18636
|
+
useEffect(() => {
|
|
18637
|
+
if (!open) return;
|
|
18638
|
+
function onKeyDown(e) {
|
|
18639
|
+
if (isEditableTarget(e.target)) return;
|
|
18640
|
+
if (e.key === "ArrowUp" && !prevDisabled) {
|
|
18641
|
+
e.preventDefault();
|
|
18642
|
+
onPrev();
|
|
18643
|
+
} else if (e.key === "ArrowDown" && !nextDisabled) {
|
|
18644
|
+
e.preventDefault();
|
|
18645
|
+
onNext();
|
|
18646
|
+
}
|
|
18647
|
+
}
|
|
18648
|
+
window.addEventListener("keydown", onKeyDown, true);
|
|
18649
|
+
return () => window.removeEventListener("keydown", onKeyDown, true);
|
|
18650
|
+
}, [open, prevDisabled, nextDisabled, onPrev, onNext]);
|
|
18651
|
+
const resolvedWidth = forceWidthRatio !== null && typeof window !== "undefined" ? Math.round(window.innerWidth * forceWidthRatio) : widthPx ?? MIN_WIDTH_PX;
|
|
18652
|
+
const widthRule = CSS_RULES.width(resolvedWidth);
|
|
18653
|
+
return /* @__PURE__ */ jsx(Drawer, { isOpen: open, onOpenChange, children: /* @__PURE__ */ jsx(Drawer.Backdrop, { children: /* @__PURE__ */ jsxs(Drawer.Content, { placement: "right", children: [
|
|
18654
|
+
/* @__PURE__ */ jsx("style", { children: widthRule }),
|
|
18655
|
+
/* @__PURE__ */ jsxs(
|
|
18656
|
+
Drawer.Dialog,
|
|
18657
|
+
{
|
|
18658
|
+
"aria-label": ariaLabel,
|
|
18659
|
+
className: "panneau-registre-shell relative flex h-full w-full! flex-col overflow-hidden sm:w-[var(--panneau-registre-width)]! sm:min-w-[360px]! sm:max-w-[90vw]!",
|
|
18660
|
+
children: [
|
|
18661
|
+
/* @__PURE__ */ jsx(
|
|
18662
|
+
"button",
|
|
18663
|
+
{
|
|
18664
|
+
type: "button",
|
|
18665
|
+
"aria-label": labels.resizeHandle,
|
|
18666
|
+
className: "absolute inset-y-0 left-0 hidden w-1.5 cursor-col-resize touch-none bg-transparent hover:bg-border sm:block",
|
|
18667
|
+
onPointerDown: onHandlePointerDown
|
|
18668
|
+
}
|
|
18669
|
+
),
|
|
18670
|
+
/* @__PURE__ */ jsxs(Drawer.Header, { className: "flex shrink-0 flex-row items-center justify-between gap-3", children: [
|
|
18671
|
+
/* @__PURE__ */ jsx("p", { className: "min-w-0 truncate text-sm text-muted-foreground", children: contexte }),
|
|
18672
|
+
/* @__PURE__ */ jsxs("div", { className: "flex shrink-0 flex-row items-center gap-2", children: [
|
|
18673
|
+
headerActions,
|
|
18674
|
+
/* @__PURE__ */ jsx(Drawer.CloseTrigger, { "aria-label": labels.close })
|
|
18675
|
+
] })
|
|
18676
|
+
] }),
|
|
18677
|
+
children,
|
|
18678
|
+
/* @__PURE__ */ jsxs(Drawer.Footer, { className: "flex shrink-0 flex-row items-center justify-end gap-2", children: [
|
|
18679
|
+
/* @__PURE__ */ jsx(
|
|
18680
|
+
Button$1,
|
|
18681
|
+
{
|
|
18682
|
+
variant: "outline",
|
|
18683
|
+
size: "sm",
|
|
18684
|
+
isIconOnly: true,
|
|
18685
|
+
"aria-label": labels.previousRow,
|
|
18686
|
+
isDisabled: prevDisabled,
|
|
18687
|
+
onPress: onPrev,
|
|
18688
|
+
children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
18689
|
+
}
|
|
18690
|
+
),
|
|
18691
|
+
/* @__PURE__ */ jsx(
|
|
18692
|
+
Button$1,
|
|
18693
|
+
{
|
|
18694
|
+
variant: "outline",
|
|
18695
|
+
size: "sm",
|
|
18696
|
+
isIconOnly: true,
|
|
18697
|
+
"aria-label": labels.nextRow,
|
|
18698
|
+
isDisabled: nextDisabled,
|
|
18699
|
+
onPress: onNext,
|
|
18700
|
+
children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
18701
|
+
}
|
|
18702
|
+
)
|
|
18703
|
+
] })
|
|
18704
|
+
]
|
|
18705
|
+
}
|
|
18706
|
+
)
|
|
18707
|
+
] }) }) });
|
|
18708
|
+
}
|
|
18709
|
+
|
|
18710
|
+
// src/components/registre/colonnes.ts
|
|
18711
|
+
function estVisible(etat, champ) {
|
|
18712
|
+
return etat[champ] !== false;
|
|
18713
|
+
}
|
|
18714
|
+
var OPTION_CLASS = "flex cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-sm hover:bg-default";
|
|
18715
|
+
function ChoixColonnes({
|
|
18716
|
+
colonnes,
|
|
18717
|
+
visibilite,
|
|
18718
|
+
onBasculer,
|
|
18719
|
+
labels,
|
|
18720
|
+
formatLibelle = (libelle) => libelle,
|
|
18721
|
+
ouvertParDefaut = false
|
|
18722
|
+
}) {
|
|
18723
|
+
const [ouvert, setOuvert] = useState(ouvertParDefaut);
|
|
18724
|
+
const nbMasquees = colonnes.filter((c) => !estVisible(visibilite, c.champ)).length;
|
|
18725
|
+
return /* @__PURE__ */ jsxs(Popover$1, { isOpen: ouvert, onOpenChange: setOuvert, children: [
|
|
18726
|
+
/* @__PURE__ */ jsx(Button$1, { variant: "outline", size: "sm", children: labels.columnsButton(nbMasquees) }),
|
|
18727
|
+
/* @__PURE__ */ jsx(Popover$1.Content, { placement: "bottom", children: /* @__PURE__ */ jsx(Popover$1.Dialog, { children: /* @__PURE__ */ jsx(
|
|
18728
|
+
"fieldset",
|
|
18729
|
+
{
|
|
18730
|
+
"aria-label": labels.columnsGroupAriaLabel,
|
|
18731
|
+
className: "z-50 max-h-[60vh] w-72 overflow-y-auto border-0 p-1",
|
|
18732
|
+
children: colonnes.map((c) => /* @__PURE__ */ jsx(
|
|
18733
|
+
Checkbox$1,
|
|
18734
|
+
{
|
|
18735
|
+
isSelected: estVisible(visibilite, c.champ),
|
|
18736
|
+
onChange: () => onBasculer(c.champ),
|
|
18737
|
+
children: /* @__PURE__ */ jsxs(Checkbox$1.Content, { className: OPTION_CLASS, children: [
|
|
18738
|
+
/* @__PURE__ */ jsx(Checkbox$1.Control, { children: /* @__PURE__ */ jsx(Checkbox$1.Indicator, {}) }),
|
|
18739
|
+
/* @__PURE__ */ jsx("span", { className: "w-4 tabular-nums text-muted-foreground", children: c.lettre }),
|
|
18740
|
+
/* @__PURE__ */ jsx("span", { children: formatLibelle(c.libelle) })
|
|
18741
|
+
] })
|
|
18742
|
+
},
|
|
18743
|
+
c.champ
|
|
18744
|
+
))
|
|
18745
|
+
}
|
|
18746
|
+
) }) })
|
|
18747
|
+
] });
|
|
18748
|
+
}
|
|
18749
|
+
var CSS_SELECTORS = {
|
|
18750
|
+
// allow-hardcoded-word: a CSS attribute selector (HeroUI data-slot names), not user-facing text
|
|
18751
|
+
openOverlay: "[data-slot=select-popover], [data-slot=popover-dialog]"
|
|
18752
|
+
};
|
|
18753
|
+
function RegistreEcran({
|
|
18754
|
+
ariaLabel,
|
|
18755
|
+
labels,
|
|
18756
|
+
colonnes,
|
|
18757
|
+
visibilite,
|
|
18758
|
+
onBasculerColonne,
|
|
18759
|
+
formatLibelleColonne,
|
|
18760
|
+
filtreGlobal,
|
|
18761
|
+
onFiltreGlobalChange,
|
|
18762
|
+
avantRecherche,
|
|
18763
|
+
actionsToolbar,
|
|
18764
|
+
children
|
|
18765
|
+
}) {
|
|
18766
|
+
const [fullScreen, setFullScreen] = useState(false);
|
|
18767
|
+
useEffect(() => {
|
|
18768
|
+
if (!fullScreen) return;
|
|
18769
|
+
const onKeyDown = (e) => {
|
|
18770
|
+
if (document.querySelector(CSS_SELECTORS.openOverlay)) return;
|
|
18771
|
+
if (e.key === "Escape") setFullScreen(false);
|
|
18772
|
+
};
|
|
18773
|
+
const previousOverflow = document.body.style.overflow;
|
|
18774
|
+
document.body.style.overflow = "hidden";
|
|
18775
|
+
window.addEventListener("keydown", onKeyDown);
|
|
18776
|
+
return () => {
|
|
18777
|
+
window.removeEventListener("keydown", onKeyDown);
|
|
18778
|
+
document.body.style.overflow = previousOverflow;
|
|
18779
|
+
};
|
|
18780
|
+
}, [fullScreen]);
|
|
18781
|
+
return /* @__PURE__ */ jsxs(
|
|
18782
|
+
"section",
|
|
18783
|
+
{
|
|
18784
|
+
"aria-label": ariaLabel,
|
|
18785
|
+
"data-fullscreen": fullScreen ? "true" : void 0,
|
|
18786
|
+
className: fullScreen ? "fixed inset-0 z-40 flex flex-col gap-4 bg-background p-4" : (
|
|
18787
|
+
// Phones let the page scroll so content above cannot squeeze the grid to nothing.
|
|
18788
|
+
"flex min-h-[70vh] flex-1 flex-col gap-4 sm:min-h-0"
|
|
18789
|
+
),
|
|
18790
|
+
children: [
|
|
18791
|
+
/* @__PURE__ */ jsx("div", { className: "shrink-0", children: /* @__PURE__ */ jsxs(Toolbar, { className: "flex flex-wrap items-center gap-2", children: [
|
|
18792
|
+
avantRecherche,
|
|
18793
|
+
/* @__PURE__ */ jsx(
|
|
18794
|
+
SearchField,
|
|
18795
|
+
{
|
|
18796
|
+
value: filtreGlobal,
|
|
18797
|
+
onChange: onFiltreGlobalChange,
|
|
18798
|
+
"aria-label": labels.searchAriaLabel,
|
|
18799
|
+
className: "w-full sm:w-auto",
|
|
18800
|
+
children: /* @__PURE__ */ jsxs(SearchField.Group, { className: "h-10 min-w-64", children: [
|
|
18801
|
+
/* @__PURE__ */ jsx(SearchField.SearchIcon, {}),
|
|
18802
|
+
/* @__PURE__ */ jsx(
|
|
18803
|
+
SearchField.Input,
|
|
18804
|
+
{
|
|
18805
|
+
placeholder: labels.searchPlaceholder,
|
|
18806
|
+
className: "text-base sm:text-sm"
|
|
18807
|
+
}
|
|
18808
|
+
),
|
|
18809
|
+
/* @__PURE__ */ jsx(SearchField.ClearButton, {})
|
|
18810
|
+
] })
|
|
18811
|
+
}
|
|
18812
|
+
),
|
|
18813
|
+
/* @__PURE__ */ jsx(
|
|
18814
|
+
ChoixColonnes,
|
|
18815
|
+
{
|
|
18816
|
+
colonnes,
|
|
18817
|
+
visibilite,
|
|
18818
|
+
onBasculer: onBasculerColonne,
|
|
18819
|
+
labels,
|
|
18820
|
+
formatLibelle: formatLibelleColonne
|
|
18821
|
+
}
|
|
18822
|
+
),
|
|
18823
|
+
actionsToolbar,
|
|
18824
|
+
/* @__PURE__ */ jsxs(
|
|
18825
|
+
Button$1,
|
|
18826
|
+
{
|
|
18827
|
+
variant: "outline",
|
|
18828
|
+
size: "sm",
|
|
18829
|
+
"aria-pressed": fullScreen,
|
|
18830
|
+
onPress: () => setFullScreen((f) => !f),
|
|
18831
|
+
children: [
|
|
18832
|
+
fullScreen ? /* @__PURE__ */ jsx(Minimize2, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ jsx(Maximize2, { "aria-hidden": true, className: "size-4" }),
|
|
18833
|
+
fullScreen ? labels.exitFullscreen : labels.enterFullscreen
|
|
18834
|
+
]
|
|
18835
|
+
}
|
|
18836
|
+
)
|
|
18837
|
+
] }) }),
|
|
18838
|
+
children
|
|
18839
|
+
]
|
|
18840
|
+
}
|
|
18841
|
+
);
|
|
18842
|
+
}
|
|
18843
|
+
function editValue(value, decimalSeparator) {
|
|
18844
|
+
if (value == null) return "";
|
|
18845
|
+
return typeof value === "number" ? String(value).replace(".", decimalSeparator) : value;
|
|
18846
|
+
}
|
|
18847
|
+
function FieldEditor({
|
|
18848
|
+
col,
|
|
18849
|
+
initial,
|
|
18850
|
+
labels,
|
|
18851
|
+
onSave,
|
|
18852
|
+
onCancel
|
|
18853
|
+
}) {
|
|
18854
|
+
const [draft, setDraft] = useState(initial);
|
|
18855
|
+
const [saving, setSaving] = useState(false);
|
|
18856
|
+
const inputId = `registre-field-${col.champ}`;
|
|
18857
|
+
const label = labels.fieldInput(col);
|
|
18858
|
+
async function submit(e) {
|
|
18859
|
+
e.preventDefault();
|
|
18860
|
+
setSaving(true);
|
|
18861
|
+
await onSave(draft);
|
|
18862
|
+
setSaving(false);
|
|
18863
|
+
}
|
|
18864
|
+
function onKeyDown(e) {
|
|
18865
|
+
if (e.key === "Escape") {
|
|
18866
|
+
e.stopPropagation();
|
|
18867
|
+
onCancel();
|
|
18868
|
+
}
|
|
18869
|
+
}
|
|
18870
|
+
const inputClass = "h-8 min-w-0 flex-1 rounded-md border border-border bg-background px-2 text-base sm:text-sm";
|
|
18871
|
+
return /* @__PURE__ */ jsxs("form", { onSubmit: submit, onKeyDown, className: "flex flex-wrap items-center gap-2", children: [
|
|
18872
|
+
col.valeurs ? /* @__PURE__ */ jsxs(
|
|
18873
|
+
"select",
|
|
18874
|
+
{
|
|
18875
|
+
id: inputId,
|
|
18876
|
+
"aria-label": label,
|
|
18877
|
+
value: draft,
|
|
18878
|
+
onChange: (e) => setDraft(e.target.value),
|
|
18879
|
+
className: inputClass,
|
|
18880
|
+
children: [
|
|
18881
|
+
/* @__PURE__ */ jsx("option", { value: "", children: "\u2014" }),
|
|
18882
|
+
col.valeurs.map((v) => /* @__PURE__ */ jsx("option", { value: v, children: v }, v))
|
|
18883
|
+
]
|
|
18884
|
+
}
|
|
18885
|
+
) : /* @__PURE__ */ jsx(
|
|
18886
|
+
"input",
|
|
18887
|
+
{
|
|
18888
|
+
id: inputId,
|
|
18889
|
+
"aria-label": label,
|
|
18890
|
+
value: draft,
|
|
18891
|
+
onChange: (e) => setDraft(e.target.value),
|
|
18892
|
+
autoFocus: true,
|
|
18893
|
+
className: inputClass
|
|
18894
|
+
}
|
|
18895
|
+
),
|
|
18896
|
+
/* @__PURE__ */ jsx(
|
|
18897
|
+
"button",
|
|
18898
|
+
{
|
|
18899
|
+
type: "submit",
|
|
18900
|
+
disabled: saving,
|
|
18901
|
+
className: "h-8 rounded-md bg-primary px-3 text-sm text-primary-foreground disabled:opacity-50",
|
|
18902
|
+
children: labels.save
|
|
18903
|
+
}
|
|
18904
|
+
),
|
|
18905
|
+
/* @__PURE__ */ jsx(
|
|
18906
|
+
"button",
|
|
18907
|
+
{
|
|
18908
|
+
type: "button",
|
|
18909
|
+
onClick: onCancel,
|
|
18910
|
+
className: "h-8 rounded-md border border-border px-3 text-sm",
|
|
18911
|
+
children: labels.cancel
|
|
18912
|
+
}
|
|
18913
|
+
)
|
|
18914
|
+
] });
|
|
18915
|
+
}
|
|
18916
|
+
var PENCIL_CLASS = "inline-flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-default hover:text-foreground";
|
|
18917
|
+
function RegistreLigneDetail({
|
|
18918
|
+
colonnes,
|
|
18919
|
+
ligne,
|
|
18920
|
+
corrections,
|
|
18921
|
+
labels,
|
|
18922
|
+
formatMontant,
|
|
18923
|
+
formatNombre,
|
|
18924
|
+
decimalSeparator,
|
|
18925
|
+
onSaveField
|
|
18926
|
+
}) {
|
|
18927
|
+
const [editing, setEditing] = useState(null);
|
|
18928
|
+
function displayValue(col, value) {
|
|
18929
|
+
if (value == null || value === "") return "";
|
|
18930
|
+
if (col.type === "montant") return formatMontant(Number(value));
|
|
18931
|
+
if (col.type === "nombre" || col.type === "entier") return formatNombre(Number(value));
|
|
18932
|
+
return String(value);
|
|
18933
|
+
}
|
|
18934
|
+
return /* @__PURE__ */ jsx("dl", { className: "divide-y divide-border rounded-md border border-border", children: colonnes.map((col) => {
|
|
18935
|
+
const value = ligne[col.champ] ?? null;
|
|
18936
|
+
const correction = corrections?.[col.champ];
|
|
18937
|
+
return /* @__PURE__ */ jsxs(
|
|
18938
|
+
"div",
|
|
18939
|
+
{
|
|
18940
|
+
"data-field": col.champ,
|
|
18941
|
+
className: `grid gap-1 px-3 py-2 sm:grid-cols-[11rem_1fr] sm:gap-3 ${correction ? "bg-amber-50 dark:bg-amber-950/30" : ""}`,
|
|
18942
|
+
children: [
|
|
18943
|
+
/* @__PURE__ */ jsxs("dt", { className: "text-muted-foreground", children: [
|
|
18944
|
+
col.libelle,
|
|
18945
|
+
" ",
|
|
18946
|
+
/* @__PURE__ */ jsxs("span", { className: "text-xs", children: [
|
|
18947
|
+
"\xB7 ",
|
|
18948
|
+
col.lettre
|
|
18949
|
+
] })
|
|
18950
|
+
] }),
|
|
18951
|
+
/* @__PURE__ */ jsxs("dd", { className: "flex min-w-0 flex-col gap-1", children: [
|
|
18952
|
+
editing === col.champ ? /* @__PURE__ */ jsx(
|
|
18953
|
+
FieldEditor,
|
|
18954
|
+
{
|
|
18955
|
+
col,
|
|
18956
|
+
initial: editValue(value, decimalSeparator),
|
|
18957
|
+
labels,
|
|
18958
|
+
onCancel: () => setEditing(null),
|
|
18959
|
+
onSave: async (saisie) => {
|
|
18960
|
+
if (await onSaveField(col.champ, saisie)) setEditing(null);
|
|
18961
|
+
}
|
|
18962
|
+
}
|
|
18963
|
+
) : /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
18964
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 break-words tabular-nums", children: displayValue(col, value) }),
|
|
18965
|
+
col.editable ? /* @__PURE__ */ jsx(
|
|
18966
|
+
"button",
|
|
18967
|
+
{
|
|
18968
|
+
type: "button",
|
|
18969
|
+
"aria-label": labels.edit(col.libelle),
|
|
18970
|
+
onClick: () => setEditing(col.champ),
|
|
18971
|
+
className: PENCIL_CLASS,
|
|
18972
|
+
children: /* @__PURE__ */ jsx(Pencil, { className: "size-3.5", "aria-hidden": "true" })
|
|
18973
|
+
}
|
|
18974
|
+
) : /* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: labels.computed })
|
|
18975
|
+
] }),
|
|
18976
|
+
correction && /* @__PURE__ */ jsx("p", { className: "text-xs text-amber-800 dark:text-amber-300", children: labels.correction(correction) })
|
|
18977
|
+
] })
|
|
18978
|
+
]
|
|
18979
|
+
},
|
|
18980
|
+
col.champ
|
|
18981
|
+
);
|
|
18982
|
+
}) });
|
|
18983
|
+
}
|
|
18489
18984
|
|
|
18490
|
-
export { INITIAL_REVIEW_PANEL_TAB, MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAddMemoryForm, MosaicAdminOnlyGuard, MosaicAgentBuilderModal, MosaicAgentCard, MosaicAgentChat, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentEditor, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentPreview, MosaicAgentTeamPreview, MosaicAlertDialog, MosaicAlertDialogAction, MosaicAlertDialogCancel, MosaicAlertDialogContent, MosaicAlertDialogDescription, MosaicAlertDialogFooter, MosaicAlertDialogHeader, MosaicAlertDialogOverlay, MosaicAlertDialogPortal, MosaicAlertDialogTitle, MosaicAlertDialogTrigger, MosaicAnimatedList, MosaicApiKeyPanel, MosaicAppSidebar, MosaicApprovalPrompt, MosaicArtifactCanvasAdapter, MosaicArtifactChart, MosaicArtifactChecklist, MosaicArtifactDataTable, MosaicArtifactDocument, MosaicArtifactLibrary, MosaicArtifactSaveAsMemoryForm, MosaicArtifactVersionHistory, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCallout, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatComposer, MosaicChatMessage, MosaicChatSidebar, MosaicChatThread, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDocumentCriteriaPanel, MosaicDocumentTable, MosaicDocumentUpload, MosaicDrawer, MosaicDropdownMenu, MosaicEditMemoryDialog, MosaicEditSessionDialog, MosaicEditableCell, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarkdown, MosaicMarketplaceCard, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMatchInput, MosaicMemberList, MosaicMemoryCard, MosaicMemoryDashboard, MosaicMemoryGrid, MosaicMemoryList, MosaicMemorySearch, MosaicMentionInput, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicMessageSearch, MosaicModelSelector, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgContextDisplay, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPdfViewer, MosaicPopover, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicReplyInput, MosaicResizableSplitPane, MosaicSaveChatAsMemoryForm, MosaicSaveTemplateModal, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSessionCard, MosaicSessionList, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTagInput, MosaicTemplateAgentCard, MosaicTemplateCard, MosaicTemplateCategoryChips, MosaicTemplateGallery, MosaicTemplateList, MosaicTemplateManagementPanel, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicThreadIndicator, MosaicThreadView, MosaicToast, MosaicToastProvider, MosaicToolToggleList, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, REVIEW_PANEL_TABS, addMemoryFormButtonVariants, addMemoryFormErrorVariants, addMemoryFormFieldVariants, addMemoryFormFooterVariants, addMemoryFormRootVariants, agentBuilderModalBackdropVariants, agentBuilderModalPopupVariants, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, applyFieldCorrection, artifactSaveAsMemoryFormButtonVariants, artifactSaveAsMemoryFormErrorVariants, artifactSaveAsMemoryFormFieldVariants, artifactSaveAsMemoryFormFooterVariants, artifactSaveAsMemoryFormLearningVariants, artifactSaveAsMemoryFormPreviewVariants, artifactSaveAsMemoryFormRootVariants, badgeVariants, buttonVariants, calloutVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, chatSidebarThreadVariants, correctionOutcome, drawerBackdropVariants, drawerPopupVariants, editMemoryDialogBackdropVariants, editMemoryDialogErrorVariants, editMemoryDialogFieldVariants, editMemoryDialogPopupVariants, editSessionDialogBodyVariants, editSessionDialogButtonVariants, editSessionDialogErrorVariants, editSessionDialogFieldVariants, editSessionDialogFooterVariants, editableCellVariants, initialColumnVisibility, isEditableTarget, marketplaceCardVariants, matchStateVariants, memoryDashboardViewToggleButtonVariants, memoryGridVariants, memoryListItemVariants, memoryListVariants, memorySearchFilterChipVariants, mentionInputFieldVariants, mentionListItemVariants, mentionListVariants, neighbourRowId, normalizeArtifact, normalizeFromAiSdkArtifacts, normalizeFromMcpToolResult, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, popoverPopupVariants, replyInputActionButtonVariants, replyInputContextVariants, replyInputRootVariants, replyInputTextareaVariants, saveChatAsMemoryFormButtonVariants, saveChatAsMemoryFormErrorVariants, saveChatAsMemoryFormFieldVariants, saveChatAsMemoryFormFooterVariants, saveChatAsMemoryFormRootVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, sessionCardVariants, sessionListItemVariants, sessionListVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, templateManagementRowVariants, threadIndicatorCountVariants, threadIndicatorRootVariants, threadViewEmptyVariants, threadViewRepliesVariants, threadViewReplyVariants, threadViewRootMessageVariants, threadViewRootVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toggleColumnVisibility, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version, visibleColumns };
|
|
18985
|
+
export { ChoixColonnes, GrilleRegistre, INITIAL_REVIEW_PANEL_TAB, MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAddMemoryForm, MosaicAdminOnlyGuard, MosaicAgentBuilderModal, MosaicAgentCard, MosaicAgentChat, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentEditor, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentPreview, MosaicAgentTeamPreview, MosaicAlertDialog, MosaicAlertDialogAction, MosaicAlertDialogCancel, MosaicAlertDialogContent, MosaicAlertDialogDescription, MosaicAlertDialogFooter, MosaicAlertDialogHeader, MosaicAlertDialogOverlay, MosaicAlertDialogPortal, MosaicAlertDialogTitle, MosaicAlertDialogTrigger, MosaicAnimatedList, MosaicApiKeyPanel, MosaicAppSidebar, MosaicApprovalPrompt, MosaicArtifactCanvasAdapter, MosaicArtifactChart, MosaicArtifactChecklist, MosaicArtifactDataTable, MosaicArtifactDocument, MosaicArtifactLibrary, MosaicArtifactSaveAsMemoryForm, MosaicArtifactVersionHistory, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCallout, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatComposer, MosaicChatMessage, MosaicChatSidebar, MosaicChatThread, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDocumentCriteriaPanel, MosaicDocumentTable, MosaicDocumentUpload, MosaicDrawer, MosaicDropdownMenu, MosaicEditMemoryDialog, MosaicEditSessionDialog, MosaicEditableCell, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarkdown, MosaicMarketplaceCard, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMatchInput, MosaicMemberList, MosaicMemoryCard, MosaicMemoryDashboard, MosaicMemoryGrid, MosaicMemoryList, MosaicMemorySearch, MosaicMentionInput, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicMessageSearch, MosaicModelSelector, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgContextDisplay, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPdfViewer, MosaicPopover, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicReplyInput, MosaicResizableSplitPane, MosaicSaveChatAsMemoryForm, MosaicSaveTemplateModal, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSessionCard, MosaicSessionList, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTagInput, MosaicTemplateAgentCard, MosaicTemplateCard, MosaicTemplateCategoryChips, MosaicTemplateGallery, MosaicTemplateList, MosaicTemplateManagementPanel, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicThreadIndicator, MosaicThreadView, MosaicToast, MosaicToastProvider, MosaicToolToggleList, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, PanneauRegistreShell, Placeholder, REVIEW_PANEL_TABS, RegistreEcran, RegistreLigneDetail, addMemoryFormButtonVariants, addMemoryFormErrorVariants, addMemoryFormFieldVariants, addMemoryFormFooterVariants, addMemoryFormRootVariants, agentBuilderModalBackdropVariants, agentBuilderModalPopupVariants, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, applyFieldCorrection, artifactSaveAsMemoryFormButtonVariants, artifactSaveAsMemoryFormErrorVariants, artifactSaveAsMemoryFormFieldVariants, artifactSaveAsMemoryFormFooterVariants, artifactSaveAsMemoryFormLearningVariants, artifactSaveAsMemoryFormPreviewVariants, artifactSaveAsMemoryFormRootVariants, badgeVariants, buttonVariants, calloutVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, chatSidebarThreadVariants, correctionOutcome, drawerBackdropVariants, drawerPopupVariants, editMemoryDialogBackdropVariants, editMemoryDialogErrorVariants, editMemoryDialogFieldVariants, editMemoryDialogPopupVariants, editSessionDialogBodyVariants, editSessionDialogButtonVariants, editSessionDialogErrorVariants, editSessionDialogFieldVariants, editSessionDialogFooterVariants, editableCellVariants, estVisible, fitGridWidthStrategy, initialColumnVisibility, isEditableTarget, marketplaceCardVariants, matchStateVariants, memoryDashboardViewToggleButtonVariants, memoryGridVariants, memoryListItemVariants, memoryListVariants, memorySearchFilterChipVariants, mentionInputFieldVariants, mentionListItemVariants, mentionListVariants, neighbourRowId, normalizeArtifact, normalizeFromAiSdkArtifacts, normalizeFromMcpToolResult, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, popoverPopupVariants, refitColumns, registreGridTheme, replyInputActionButtonVariants, replyInputContextVariants, replyInputRootVariants, replyInputTextareaVariants, saveChatAsMemoryFormButtonVariants, saveChatAsMemoryFormErrorVariants, saveChatAsMemoryFormFieldVariants, saveChatAsMemoryFormFooterVariants, saveChatAsMemoryFormRootVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, sessionCardVariants, sessionListItemVariants, sessionListVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, templateManagementRowVariants, threadIndicatorCountVariants, threadIndicatorRootVariants, threadViewEmptyVariants, threadViewRepliesVariants, threadViewReplyVariants, threadViewRootMessageVariants, threadViewRootVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toggleColumnVisibility, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version, visibleColumns };
|
|
18491
18986
|
//# sourceMappingURL=index.js.map
|
|
18492
18987
|
//# sourceMappingURL=index.js.map
|