@vantageos/mosaic-blocks 0.5.35-alpha → 0.5.37-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 +11 -8
- package/dist/index.cjs +828 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +415 -11
- package/dist/index.d.ts +415 -11
- package/dist/index.js +809 -41
- package/dist/index.js.map +1 -1
- package/dist/styles.css +18 -0
- package/package.json +20 -7
- package/r/mosaic-accordion.json +1 -2
- package/r/mosaic-activity-feed.json +16 -0
- package/r/mosaic-adaptive-grid.json +18 -0
- package/r/mosaic-adaptive-modal.json +18 -0
- package/r/mosaic-adaptive-navigation.json +18 -0
- package/r/mosaic-add-memory-form.json +25 -0
- package/r/mosaic-admin-only-guard.json +18 -0
- package/r/mosaic-agent-builder-modal.json +23 -0
- package/r/mosaic-agent-card.json +16 -0
- package/r/mosaic-agent-chat.json +26 -0
- package/r/mosaic-agent-composer.json +28 -0
- package/r/mosaic-agent-editor.json +25 -0
- package/r/mosaic-agent-list.json +21 -0
- package/r/mosaic-agent-preview.json +21 -0
- package/r/mosaic-alert-dialog.json +23 -0
- package/r/mosaic-animated-list.json +16 -0
- package/r/mosaic-api-key-panel.json +21 -0
- package/r/mosaic-app-sidebar.json +18 -0
- package/r/mosaic-approval-prompt.json +21 -0
- package/r/mosaic-artifact-canvas-adapter.json +26 -0
- package/r/mosaic-artifact-chart.json +18 -0
- package/r/mosaic-artifact-checklist.json +18 -0
- package/r/mosaic-artifact-data-table.json +18 -0
- package/r/mosaic-artifact-document.json +16 -0
- package/r/mosaic-artifact-library.json +18 -0
- package/r/mosaic-artifact-save-as-memory-form.json +24 -0
- package/r/mosaic-artifact-version-history.json +16 -0
- package/r/mosaic-avatar.json +18 -0
- package/r/mosaic-badge.json +23 -0
- package/r/mosaic-blurred-orb.json +16 -0
- package/r/mosaic-button.json +24 -0
- package/r/mosaic-callout.json +23 -0
- package/r/mosaic-card.json +16 -0
- package/r/mosaic-chat-composer.json +21 -0
- package/r/mosaic-chat-message.json +23 -0
- package/r/mosaic-chat-sidebar.json +21 -0
- package/r/mosaic-chat-thread.json +21 -0
- package/r/mosaic-checkbox.json +18 -0
- package/r/mosaic-clerk-org-switcher.json +18 -0
- package/r/mosaic-clerk-webhook-handler.json +18 -0
- package/r/mosaic-collapsible.json +18 -0
- package/r/mosaic-combobox.json +18 -0
- package/r/mosaic-counter.json +16 -0
- package/r/mosaic-dashboard-content.json +18 -0
- package/r/mosaic-dashboard-header.json +18 -0
- package/r/mosaic-dashboard-layout.json +20 -0
- package/r/mosaic-data-table.json +16 -0
- package/r/mosaic-delete-confirmation-dialog.json +18 -0
- package/r/mosaic-device-provider.json +16 -0
- package/r/mosaic-document-table.json +52 -0
- package/r/mosaic-document-upload.json +21 -0
- package/r/mosaic-drawer.json +23 -0
- package/r/mosaic-dropdown-menu.json +18 -0
- package/r/mosaic-edit-memory-dialog.json +27 -0
- package/r/mosaic-edit-session-dialog.json +25 -0
- package/r/mosaic-editable-cell.json +23 -0
- package/r/mosaic-empty-state.json +16 -0
- package/r/mosaic-falling-pattern.json +16 -0
- package/r/mosaic-feature-3col.json +16 -0
- package/r/mosaic-feature-centered-media.json +16 -0
- package/r/mosaic-field.json +18 -0
- package/r/mosaic-filter-bar.json +18 -0
- package/r/mosaic-filter-sidebar.json +18 -0
- package/r/mosaic-footer-simple.json +16 -0
- package/r/mosaic-grille-registre.json +53 -0
- package/r/mosaic-hero-split.json +16 -0
- package/r/mosaic-input-group.json +16 -0
- package/r/mosaic-input.json +18 -0
- package/r/mosaic-integrations-badge.json +16 -0
- package/r/mosaic-kanban-board.json +21 -0
- package/r/mosaic-logos-grid.json +16 -0
- package/r/mosaic-main-nav.json +18 -0
- package/r/mosaic-markdown.json +21 -0
- package/r/mosaic-marketplace-card.json +24 -0
- package/r/mosaic-marketplace-list.json +20 -0
- package/r/mosaic-match-input.json +23 -0
- package/r/mosaic-memory-card.json +21 -0
- package/r/mosaic-memory-dashboard.json +23 -0
- package/r/mosaic-memory-grid.json +21 -0
- package/r/mosaic-memory-list.json +21 -0
- package/r/mosaic-memory-search.json +23 -0
- package/r/mosaic-mention-input.json +23 -0
- package/r/mosaic-message-card.json +16 -0
- package/r/mosaic-message-list.json +19 -0
- package/r/mosaic-message-search.json +18 -0
- package/r/mosaic-model-selector.json +23 -0
- package/r/mosaic-module-card.json +16 -0
- package/r/mosaic-module-library.json +18 -0
- package/r/mosaic-multi-tenant-provider.json +19 -0
- package/r/mosaic-navbar.json +16 -0
- package/r/mosaic-org-context-display.json +18 -0
- package/r/mosaic-org-panel.json +19 -0
- package/r/mosaic-org-profile-page.json +18 -0
- package/r/mosaic-org-switcher.json +16 -0
- package/r/mosaic-pdf-viewer.json +23 -0
- package/r/mosaic-popover.json +23 -0
- package/r/mosaic-preferences-panel.json +18 -0
- package/r/mosaic-pricing-card.json +16 -0
- package/r/mosaic-profile-panel.json +18 -0
- package/r/mosaic-progress.json +18 -0
- package/r/mosaic-quick-action-card.json +16 -0
- package/r/mosaic-quick-actions-menu.json +18 -0
- package/r/mosaic-quick-agent-selector.json +19 -0
- package/r/mosaic-radio-group.json +18 -0
- package/r/mosaic-reply-input.json +21 -0
- package/r/mosaic-resizable-split-pane.json +23 -0
- package/r/mosaic-save-chat-as-memory-form.json +25 -0
- package/r/mosaic-save-template-modal.json +27 -0
- package/r/mosaic-scroll-area.json +18 -0
- package/r/mosaic-select.json +18 -0
- package/r/mosaic-selector-modal.json +18 -0
- package/r/mosaic-separator.json +18 -0
- package/r/mosaic-session-card.json +24 -0
- package/r/mosaic-session-list.json +21 -0
- package/r/mosaic-sign-in-layout.json +18 -0
- package/r/mosaic-sign-up-layout.json +18 -0
- package/r/mosaic-skeleton.json +23 -0
- package/r/mosaic-slider.json +18 -0
- package/r/mosaic-stats-grid.json +16 -0
- package/r/mosaic-step-pipeline.json +21 -0
- package/r/mosaic-switch.json +18 -0
- package/r/mosaic-tabs.json +18 -0
- package/r/mosaic-tag-input.json +23 -0
- package/r/mosaic-template-agent-card.json +21 -0
- package/r/mosaic-template-category-chips.json +21 -0
- package/r/mosaic-template-gallery.json +20 -0
- package/r/mosaic-template-list.json +21 -0
- package/r/mosaic-template-management-panel.json +25 -0
- package/r/mosaic-testimonials-grid.json +16 -0
- package/r/mosaic-textarea.json +16 -0
- package/r/mosaic-theme-provider.json +18 -0
- package/r/mosaic-theme-toggle.json +16 -0
- package/r/mosaic-thread-indicator.json +21 -0
- package/r/mosaic-thread-view.json +21 -0
- package/r/mosaic-toast.json +28 -0
- package/r/mosaic-tool-toggle-list.json +23 -0
- package/r/mosaic-tooltip.json +18 -0
- package/r/mosaic-url-scraper.json +21 -0
- package/r/mosaic-user-button.json +18 -0
- package/r/use-effective-workspace-id.json +18 -0
- package/registry.json +77 -130
package/dist/index.js
CHANGED
|
@@ -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.37-alpha";
|
|
33
37
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
34
38
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
35
39
|
}
|
|
@@ -2849,6 +2853,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2849
2853
|
tabNavAriaLabel,
|
|
2850
2854
|
completeStatusLabel,
|
|
2851
2855
|
inProgressStatusLabel,
|
|
2856
|
+
formatDuration,
|
|
2852
2857
|
className,
|
|
2853
2858
|
ref
|
|
2854
2859
|
}) {
|
|
@@ -2891,10 +2896,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2891
2896
|
] })
|
|
2892
2897
|
] }),
|
|
2893
2898
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
2894
|
-
item.duration !== void 0 && /* @__PURE__ */
|
|
2895
|
-
item.duration,
|
|
2896
|
-
"s"
|
|
2897
|
-
] }),
|
|
2899
|
+
item.duration !== void 0 && /* @__PURE__ */ jsx("span", { className: "rounded bg-primary px-2 py-0.5 text-xs text-primary-foreground", children: formatDuration(item.duration) }),
|
|
2898
2900
|
/* @__PURE__ */ jsx(ChevronDownIcon2, { rotated: isExpanded })
|
|
2899
2901
|
] })
|
|
2900
2902
|
]
|
|
@@ -2946,17 +2948,14 @@ function MosaicAdaptiveNavigation({
|
|
|
2946
2948
|
}
|
|
2947
2949
|
),
|
|
2948
2950
|
/* @__PURE__ */ jsx("span", { className: "hidden sm:inline", children: item.title }),
|
|
2949
|
-
item.duration !== void 0 && /* @__PURE__ */
|
|
2951
|
+
item.duration !== void 0 && /* @__PURE__ */ jsx(
|
|
2950
2952
|
"span",
|
|
2951
2953
|
{
|
|
2952
2954
|
className: cn40(
|
|
2953
2955
|
"rounded px-1 py-0.5 text-xs",
|
|
2954
2956
|
isActive ? "bg-primary-foreground/20" : "bg-muted"
|
|
2955
2957
|
),
|
|
2956
|
-
children:
|
|
2957
|
-
item.duration,
|
|
2958
|
-
"s"
|
|
2959
|
-
]
|
|
2958
|
+
children: formatDuration(item.duration)
|
|
2960
2959
|
}
|
|
2961
2960
|
)
|
|
2962
2961
|
]
|
|
@@ -3716,7 +3715,12 @@ function ArrowRightIcon() {
|
|
|
3716
3715
|
}
|
|
3717
3716
|
);
|
|
3718
3717
|
}
|
|
3719
|
-
function MosaicActivityItem({
|
|
3718
|
+
function MosaicActivityItem({
|
|
3719
|
+
activity,
|
|
3720
|
+
formatMessageCount,
|
|
3721
|
+
icon,
|
|
3722
|
+
className
|
|
3723
|
+
}) {
|
|
3720
3724
|
return /* @__PURE__ */ jsxs(
|
|
3721
3725
|
"div",
|
|
3722
3726
|
{
|
|
@@ -3744,10 +3748,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3744
3748
|
label
|
|
3745
3749
|
);
|
|
3746
3750
|
}) }),
|
|
3747
|
-
activity.messages !== void 0 && /* @__PURE__ */
|
|
3748
|
-
activity.messages,
|
|
3749
|
-
" messages"
|
|
3750
|
-
] })
|
|
3751
|
+
activity.messages !== void 0 && /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: formatMessageCount(activity.messages) })
|
|
3751
3752
|
] }),
|
|
3752
3753
|
activity.excerpt && /* @__PURE__ */ jsx("p", { className: "mt-0.5 text-xs text-muted-foreground line-clamp-1", children: activity.excerpt })
|
|
3753
3754
|
] }),
|
|
@@ -3776,6 +3777,7 @@ function MosaicActivityFeed({
|
|
|
3776
3777
|
viewAllHref,
|
|
3777
3778
|
viewAllLabel,
|
|
3778
3779
|
emptyMessage,
|
|
3780
|
+
formatMessageCount,
|
|
3779
3781
|
iconMap,
|
|
3780
3782
|
renderLink,
|
|
3781
3783
|
className,
|
|
@@ -3815,7 +3817,14 @@ function MosaicActivityFeed({
|
|
|
3815
3817
|
{
|
|
3816
3818
|
className: "mosaic-activity-row",
|
|
3817
3819
|
style: { animationDelay: `${idx * 80}ms` },
|
|
3818
|
-
children: /* @__PURE__ */ jsx(
|
|
3820
|
+
children: /* @__PURE__ */ jsx(
|
|
3821
|
+
MosaicActivityItem,
|
|
3822
|
+
{
|
|
3823
|
+
activity,
|
|
3824
|
+
formatMessageCount,
|
|
3825
|
+
icon: iconMap?.[activity.type]
|
|
3826
|
+
}
|
|
3827
|
+
)
|
|
3819
3828
|
},
|
|
3820
3829
|
activity.id
|
|
3821
3830
|
)) })
|
|
@@ -4010,6 +4019,7 @@ function MosaicAgentComposerDesktop({
|
|
|
4010
4019
|
customInstructionsPreviewLabel,
|
|
4011
4020
|
selectAllModulesLabel,
|
|
4012
4021
|
unnamedAgentLabel,
|
|
4022
|
+
formatContextWindow,
|
|
4013
4023
|
roleSublabel,
|
|
4014
4024
|
personaSublabel,
|
|
4015
4025
|
frameworkSublabel,
|
|
@@ -4115,7 +4125,7 @@ function MosaicAgentComposerDesktop({
|
|
|
4115
4125
|
] }),
|
|
4116
4126
|
selectedModel.provider && /* @__PURE__ */ jsx("p", { className: "text-xs capitalize text-muted-foreground", children: selectedModel.provider }),
|
|
4117
4127
|
(selectedModel.contextWindow || selectedModel.pricingLabel) && /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
|
|
4118
|
-
selectedModel.contextWindow &&
|
|
4128
|
+
selectedModel.contextWindow && formatContextWindow(selectedModel.contextWindow),
|
|
4119
4129
|
selectedModel.contextWindow && selectedModel.pricingLabel && " \u2022 ",
|
|
4120
4130
|
selectedModel.pricingLabel
|
|
4121
4131
|
] })
|
|
@@ -4481,7 +4491,8 @@ function MosaicAgentComposerMobile({
|
|
|
4481
4491
|
editModuleAriaLabel,
|
|
4482
4492
|
removeModuleAriaLabel,
|
|
4483
4493
|
selectModuleAriaLabel,
|
|
4484
|
-
changeModuleLabel
|
|
4494
|
+
changeModuleLabel,
|
|
4495
|
+
formatContextWindow
|
|
4485
4496
|
}) {
|
|
4486
4497
|
const L = labels;
|
|
4487
4498
|
const instructionsId = React30.useId();
|
|
@@ -4595,7 +4606,7 @@ function MosaicAgentComposerMobile({
|
|
|
4595
4606
|
] }),
|
|
4596
4607
|
selectedModel.provider && /* @__PURE__ */ jsx("p", { className: "text-xs capitalize text-muted-foreground", children: selectedModel.provider }),
|
|
4597
4608
|
(selectedModel.contextWindow || selectedModel.pricingLabel) && /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
|
|
4598
|
-
selectedModel.contextWindow &&
|
|
4609
|
+
selectedModel.contextWindow && formatContextWindow(selectedModel.contextWindow),
|
|
4599
4610
|
selectedModel.contextWindow && selectedModel.pricingLabel && " \u2022 ",
|
|
4600
4611
|
selectedModel.pricingLabel
|
|
4601
4612
|
] })
|
|
@@ -9099,7 +9110,9 @@ function MosaicTemplateCard({
|
|
|
9099
9110
|
showActions = false,
|
|
9100
9111
|
compact = false,
|
|
9101
9112
|
previewLabel,
|
|
9102
|
-
duplicateLabel
|
|
9113
|
+
duplicateLabel,
|
|
9114
|
+
formatAgentCount,
|
|
9115
|
+
formatUsageCount
|
|
9103
9116
|
}) {
|
|
9104
9117
|
const isPopular = (template.metadata?.usageCount ?? 0) > 10;
|
|
9105
9118
|
const isTrending = (template.metadata?.usageCount ?? 0) > 5;
|
|
@@ -9130,14 +9143,8 @@ function MosaicTemplateCard({
|
|
|
9130
9143
|
] }),
|
|
9131
9144
|
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex flex-wrap items-center gap-1.5", children: [
|
|
9132
9145
|
/* @__PURE__ */ jsx("span", { className: "rounded-md bg-secondary px-2 py-0.5 text-xs text-secondary-foreground", children: template.category }),
|
|
9133
|
-
template.agents && template.agents.length > 0 && /* @__PURE__ */
|
|
9134
|
-
|
|
9135
|
-
" agents"
|
|
9136
|
-
] }),
|
|
9137
|
-
(template.metadata?.usageCount ?? 0) > 0 && /* @__PURE__ */ jsxs("span", { className: "rounded-md border border-border px-2 py-0.5 text-xs text-muted-foreground", children: [
|
|
9138
|
-
template.metadata?.usageCount,
|
|
9139
|
-
" uses"
|
|
9140
|
-
] }),
|
|
9146
|
+
template.agents && template.agents.length > 0 && /* @__PURE__ */ jsx("span", { className: "rounded-md border border-border px-2 py-0.5 text-xs text-muted-foreground", children: formatAgentCount(template.agents.length) }),
|
|
9147
|
+
(template.metadata?.usageCount ?? 0) > 0 && /* @__PURE__ */ jsx("span", { className: "rounded-md border border-border px-2 py-0.5 text-xs text-muted-foreground", children: formatUsageCount(template.metadata?.usageCount ?? 0) }),
|
|
9141
9148
|
tags.slice(0, compact ? 1 : 2).map((tag) => /* @__PURE__ */ jsxs(
|
|
9142
9149
|
"span",
|
|
9143
9150
|
{
|
|
@@ -9401,6 +9408,8 @@ function TemplateGalleryContent({
|
|
|
9401
9408
|
expandSidebarAriaLabel,
|
|
9402
9409
|
previewLabel,
|
|
9403
9410
|
duplicateLabel,
|
|
9411
|
+
formatAgentCount,
|
|
9412
|
+
formatUsageCount,
|
|
9404
9413
|
isMobile
|
|
9405
9414
|
}) {
|
|
9406
9415
|
const [query, setQuery] = React30.useState("");
|
|
@@ -9477,6 +9486,8 @@ function TemplateGalleryContent({
|
|
|
9477
9486
|
showActions,
|
|
9478
9487
|
previewLabel,
|
|
9479
9488
|
duplicateLabel,
|
|
9489
|
+
formatAgentCount,
|
|
9490
|
+
formatUsageCount,
|
|
9480
9491
|
compact: true
|
|
9481
9492
|
},
|
|
9482
9493
|
template.id
|
|
@@ -9526,7 +9537,9 @@ function TemplateGalleryContent({
|
|
|
9526
9537
|
onDuplicate: onDuplicateTemplate,
|
|
9527
9538
|
showActions,
|
|
9528
9539
|
previewLabel,
|
|
9529
|
-
duplicateLabel
|
|
9540
|
+
duplicateLabel,
|
|
9541
|
+
formatAgentCount,
|
|
9542
|
+
formatUsageCount
|
|
9530
9543
|
},
|
|
9531
9544
|
template.id
|
|
9532
9545
|
)) }),
|
|
@@ -10116,6 +10129,7 @@ function MosaicOrgRoleBadge({
|
|
|
10116
10129
|
MosaicOrgRoleBadge.displayName = "MosaicOrgRoleBadge";
|
|
10117
10130
|
function MosaicMultiOrgIndicator({
|
|
10118
10131
|
orgCount,
|
|
10132
|
+
formatOrgCount,
|
|
10119
10133
|
currentOrgName,
|
|
10120
10134
|
onSwitchOrg,
|
|
10121
10135
|
className
|
|
@@ -10152,14 +10166,10 @@ function MosaicMultiOrgIndicator({
|
|
|
10152
10166
|
]
|
|
10153
10167
|
}
|
|
10154
10168
|
),
|
|
10155
|
-
orgCount
|
|
10156
|
-
" orgs"
|
|
10169
|
+
formatOrgCount(orgCount)
|
|
10157
10170
|
]
|
|
10158
10171
|
}
|
|
10159
|
-
) : /* @__PURE__ */
|
|
10160
|
-
orgCount,
|
|
10161
|
-
" orgs"
|
|
10162
|
-
] }),
|
|
10172
|
+
) : /* @__PURE__ */ jsx("span", { className: "inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground", children: formatOrgCount(orgCount) }),
|
|
10163
10173
|
currentOrgName && /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: currentOrgName })
|
|
10164
10174
|
] });
|
|
10165
10175
|
}
|
|
@@ -17387,11 +17397,11 @@ function cn120(...classes) {
|
|
|
17387
17397
|
return classes.filter(Boolean).join(" ");
|
|
17388
17398
|
}
|
|
17389
17399
|
var CHART_COLORS = [
|
|
17390
|
-
"var(--color-chart-1
|
|
17391
|
-
"var(--color-chart-2
|
|
17392
|
-
"var(--color-chart-3
|
|
17393
|
-
"var(--color-chart-4
|
|
17394
|
-
"var(--color-chart-5
|
|
17400
|
+
"var(--color-chart-1)",
|
|
17401
|
+
"var(--color-chart-2)",
|
|
17402
|
+
"var(--color-chart-3)",
|
|
17403
|
+
"var(--color-chart-4)",
|
|
17404
|
+
"var(--color-chart-5)"
|
|
17395
17405
|
];
|
|
17396
17406
|
function seriesKeys(rows, xAxisKey) {
|
|
17397
17407
|
return Object.keys(rows[0] ?? {}).filter((key) => key !== xAxisKey);
|
|
@@ -18200,6 +18210,764 @@ function MosaicAdminOnlyGuard(props) {
|
|
|
18200
18210
|
}
|
|
18201
18211
|
MosaicAdminOnlyGuard.displayName = "MosaicAdminOnlyGuard";
|
|
18202
18212
|
|
|
18203
|
-
|
|
18213
|
+
// src/components/document-review/panel-tab.ts
|
|
18214
|
+
var REVIEW_PANEL_TABS = ["compare", "document", "row"];
|
|
18215
|
+
var INITIAL_REVIEW_PANEL_TAB = "compare";
|
|
18216
|
+
|
|
18217
|
+
// src/components/document-review/row-navigation.ts
|
|
18218
|
+
function isEditableTarget(target) {
|
|
18219
|
+
return target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement || target instanceof HTMLSelectElement || target instanceof HTMLElement && target.isContentEditable === true;
|
|
18220
|
+
}
|
|
18221
|
+
function neighbourRowId(orderedRowIds, currentRowId, direction) {
|
|
18222
|
+
const index = orderedRowIds.indexOf(currentRowId);
|
|
18223
|
+
if (index === -1) return null;
|
|
18224
|
+
const neighbourIndex = index + (direction === "next" ? 1 : -1);
|
|
18225
|
+
if (neighbourIndex < 0 || neighbourIndex >= orderedRowIds.length) return null;
|
|
18226
|
+
return orderedRowIds[neighbourIndex] ?? null;
|
|
18227
|
+
}
|
|
18228
|
+
|
|
18229
|
+
// src/components/document-review/column-model.ts
|
|
18230
|
+
var COLUMN_MODEL_ERRORS = {
|
|
18231
|
+
// allow-hardcoded-word: developer-facing invariant error, never rendered to an end user
|
|
18232
|
+
unknownColumn: (id) => `document-review: visibility names unknown column "${id}"`
|
|
18233
|
+
};
|
|
18234
|
+
function assertKnown(columns, ids) {
|
|
18235
|
+
const known = new Set(columns.map((c) => c.id));
|
|
18236
|
+
for (const id of ids) {
|
|
18237
|
+
if (!known.has(id)) {
|
|
18238
|
+
throw new Error(COLUMN_MODEL_ERRORS.unknownColumn(id));
|
|
18239
|
+
}
|
|
18240
|
+
}
|
|
18241
|
+
}
|
|
18242
|
+
function initialColumnVisibility(columns) {
|
|
18243
|
+
return Object.fromEntries(columns.map((c) => [c.id, c.defaultVisible]));
|
|
18244
|
+
}
|
|
18245
|
+
function toggleColumnVisibility(columns, visibility, id) {
|
|
18246
|
+
assertKnown(columns, [id]);
|
|
18247
|
+
const column = columns.find((c) => c.id === id);
|
|
18248
|
+
const current = visibility[id] ?? column.defaultVisible;
|
|
18249
|
+
return { ...visibility, [id]: !current };
|
|
18250
|
+
}
|
|
18251
|
+
function visibleColumns(columns, visibility) {
|
|
18252
|
+
assertKnown(columns, Object.keys(visibility));
|
|
18253
|
+
return columns.filter((c) => visibility[c.id] ?? c.defaultVisible);
|
|
18254
|
+
}
|
|
18255
|
+
|
|
18256
|
+
// src/components/document-review/field-correction.ts
|
|
18257
|
+
async function applyFieldCorrection(args) {
|
|
18258
|
+
const { row, field, input, by, provenance, write, validate, now } = args;
|
|
18259
|
+
const checked = validate ? validate(field, input, row) : { ok: true, value: input };
|
|
18260
|
+
if (!checked.ok) return { ok: false, row, message: checked.message };
|
|
18261
|
+
let response;
|
|
18262
|
+
try {
|
|
18263
|
+
response = await write({ rowId: row.id, field, input, by, provenance });
|
|
18264
|
+
} catch (e) {
|
|
18265
|
+
return { ok: false, row, message: e instanceof Error ? e.message : String(e) };
|
|
18266
|
+
}
|
|
18267
|
+
if (!response.ok) return { ok: false, row, message: response.message };
|
|
18268
|
+
const confirmed = "value" in response;
|
|
18269
|
+
const corrected = confirmed ? response.value ?? null : checked.value;
|
|
18270
|
+
const original = row.corrections?.[field]?.original ?? row.values[field] ?? null;
|
|
18271
|
+
const record = {
|
|
18272
|
+
original,
|
|
18273
|
+
corrected,
|
|
18274
|
+
by,
|
|
18275
|
+
at: now ? now() : (/* @__PURE__ */ new Date()).toISOString(),
|
|
18276
|
+
provenance
|
|
18277
|
+
};
|
|
18278
|
+
return {
|
|
18279
|
+
ok: true,
|
|
18280
|
+
confirmed,
|
|
18281
|
+
row: {
|
|
18282
|
+
...row,
|
|
18283
|
+
values: { ...row.values, [field]: corrected },
|
|
18284
|
+
corrections: { ...row.corrections, [field]: record }
|
|
18285
|
+
}
|
|
18286
|
+
};
|
|
18287
|
+
}
|
|
18288
|
+
function correctionOutcome(result) {
|
|
18289
|
+
if (!result.ok) return "failed";
|
|
18290
|
+
return result.confirmed ? "ok" : "uncertain";
|
|
18291
|
+
}
|
|
18292
|
+
function MosaicDocumentTable({
|
|
18293
|
+
columns,
|
|
18294
|
+
rows,
|
|
18295
|
+
getRowId,
|
|
18296
|
+
columnVisibility,
|
|
18297
|
+
selectedRowId: controlledSelectedRowId,
|
|
18298
|
+
onSelectedRowChange,
|
|
18299
|
+
renderPanel,
|
|
18300
|
+
emptyMessage,
|
|
18301
|
+
className
|
|
18302
|
+
}) {
|
|
18303
|
+
const [internalSelectedRowId, setInternalSelectedRowId] = useState(null);
|
|
18304
|
+
const isControlled = controlledSelectedRowId !== void 0;
|
|
18305
|
+
const selectedRowId = isControlled ? controlledSelectedRowId : internalSelectedRowId;
|
|
18306
|
+
function select(rowId) {
|
|
18307
|
+
if (!isControlled) setInternalSelectedRowId(rowId);
|
|
18308
|
+
onSelectedRowChange?.(rowId);
|
|
18309
|
+
}
|
|
18310
|
+
const shown = visibleColumns(columns, columnVisibility ?? initialColumnVisibility(columns));
|
|
18311
|
+
const tableColumns = shown.map((column, columnIndex) => ({
|
|
18312
|
+
key: column.id,
|
|
18313
|
+
header: column.label,
|
|
18314
|
+
render: (row) => {
|
|
18315
|
+
const value = column.accessor(row);
|
|
18316
|
+
const text = value === null ? "" : String(value);
|
|
18317
|
+
if (columnIndex !== 0) return text;
|
|
18318
|
+
const isSelected = getRowId(row) === selectedRowId;
|
|
18319
|
+
return /* @__PURE__ */ jsx(
|
|
18320
|
+
"button",
|
|
18321
|
+
{
|
|
18322
|
+
type: "button",
|
|
18323
|
+
"data-slot": "document-table-open",
|
|
18324
|
+
"aria-current": isSelected ? "true" : void 0,
|
|
18325
|
+
"data-selected": isSelected ? "true" : void 0,
|
|
18326
|
+
className: "text-left underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
18327
|
+
children: text
|
|
18328
|
+
}
|
|
18329
|
+
);
|
|
18330
|
+
}
|
|
18331
|
+
}));
|
|
18332
|
+
function handleClick(event) {
|
|
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));
|
|
18337
|
+
}
|
|
18338
|
+
const orderedRowIds = rows.map(getRowId);
|
|
18339
|
+
const selectedRow = selectedRowId === null ? void 0 : rows.find((row) => getRowId(row) === selectedRowId);
|
|
18340
|
+
return (
|
|
18341
|
+
// biome-ignore lint/a11y/useKeyWithClickEvents: keyboard path is the first column's real <button>; this only resolves mouse clicks on other cells to their row
|
|
18342
|
+
/* @__PURE__ */ jsxs("div", { "data-slot": "document-table", className, onClick: handleClick, children: [
|
|
18343
|
+
/* @__PURE__ */ jsx(
|
|
18344
|
+
MosaicDataTable,
|
|
18345
|
+
{
|
|
18346
|
+
columns: tableColumns,
|
|
18347
|
+
rows,
|
|
18348
|
+
getRowKey: (row) => getRowId(row),
|
|
18349
|
+
sortable: false,
|
|
18350
|
+
emptyMessage
|
|
18351
|
+
}
|
|
18352
|
+
),
|
|
18353
|
+
selectedRow !== void 0 && renderPanel ? renderPanel(selectedRow, {
|
|
18354
|
+
rowId: getRowId(selectedRow),
|
|
18355
|
+
orderedRowIds,
|
|
18356
|
+
selectRow: (rowId) => select(rowId),
|
|
18357
|
+
closeRow: () => select(null)
|
|
18358
|
+
}) : null
|
|
18359
|
+
] })
|
|
18360
|
+
);
|
|
18361
|
+
}
|
|
18362
|
+
MosaicDocumentTable.displayName = "MosaicDocumentTable";
|
|
18363
|
+
function MosaicDocumentCriteriaPanel({
|
|
18364
|
+
row,
|
|
18365
|
+
rowId,
|
|
18366
|
+
columns,
|
|
18367
|
+
columnVisibility,
|
|
18368
|
+
documentUrl,
|
|
18369
|
+
orderedRowIds,
|
|
18370
|
+
onNavigate,
|
|
18371
|
+
onCorrect,
|
|
18372
|
+
actor,
|
|
18373
|
+
correctionProvenance,
|
|
18374
|
+
provenanceLabel,
|
|
18375
|
+
labels,
|
|
18376
|
+
defaultTab = INITIAL_REVIEW_PANEL_TAB,
|
|
18377
|
+
className
|
|
18378
|
+
}) {
|
|
18379
|
+
const [tab, setTab] = useState(defaultTab);
|
|
18380
|
+
const [sideWidth, setSideWidth] = useState(45);
|
|
18381
|
+
const [isSideCollapsed, setIsSideCollapsed] = useState(false);
|
|
18382
|
+
const previousId = neighbourRowId(orderedRowIds, rowId, "prev");
|
|
18383
|
+
const nextId = neighbourRowId(orderedRowIds, rowId, "next");
|
|
18384
|
+
const tabLabel = {
|
|
18385
|
+
compare: labels.tabCompare,
|
|
18386
|
+
document: labels.tabDocument,
|
|
18387
|
+
row: labels.tabRow
|
|
18388
|
+
};
|
|
18389
|
+
const document_ = /* @__PURE__ */ jsx(
|
|
18390
|
+
MosaicPdfViewer,
|
|
18391
|
+
{
|
|
18392
|
+
fileUrl: documentUrl,
|
|
18393
|
+
loadingLabel: labels.documentLoading,
|
|
18394
|
+
errorLabel: labels.documentError
|
|
18395
|
+
}
|
|
18396
|
+
);
|
|
18397
|
+
const fields = /* @__PURE__ */ jsx("dl", { "data-slot": "document-criteria-fields", className: "flex flex-col gap-3 p-3", children: visibleColumns(columns, columnVisibility ?? initialColumnVisibility(columns)).map(
|
|
18398
|
+
(column) => {
|
|
18399
|
+
const value = column.accessor(row);
|
|
18400
|
+
const provenance = provenanceLabel(row, column);
|
|
18401
|
+
return /* @__PURE__ */ jsxs(
|
|
18402
|
+
"div",
|
|
18403
|
+
{
|
|
18404
|
+
"data-slot": "document-criteria-field",
|
|
18405
|
+
className: "flex flex-col gap-1",
|
|
18406
|
+
children: [
|
|
18407
|
+
/* @__PURE__ */ jsx("dt", { className: "text-xs font-medium text-muted-foreground", children: column.label }),
|
|
18408
|
+
/* @__PURE__ */ jsxs("dd", { className: "m-0 flex flex-col gap-1", children: [
|
|
18409
|
+
/* @__PURE__ */ jsx(
|
|
18410
|
+
MosaicEditableCell,
|
|
18411
|
+
{
|
|
18412
|
+
value: value === null ? "" : String(value),
|
|
18413
|
+
disabled: column.editable === false,
|
|
18414
|
+
editAriaLabel: labels.editField(column.label),
|
|
18415
|
+
onCommit: (input) => {
|
|
18416
|
+
onCorrect({
|
|
18417
|
+
rowId,
|
|
18418
|
+
field: column.id,
|
|
18419
|
+
input,
|
|
18420
|
+
by: actor,
|
|
18421
|
+
provenance: correctionProvenance
|
|
18422
|
+
});
|
|
18423
|
+
}
|
|
18424
|
+
}
|
|
18425
|
+
),
|
|
18426
|
+
provenance ? /* @__PURE__ */ jsx(
|
|
18427
|
+
"span",
|
|
18428
|
+
{
|
|
18429
|
+
"data-slot": "document-criteria-provenance",
|
|
18430
|
+
className: "text-xs text-muted-foreground",
|
|
18431
|
+
children: provenance
|
|
18432
|
+
}
|
|
18433
|
+
) : null
|
|
18434
|
+
] })
|
|
18435
|
+
]
|
|
18436
|
+
},
|
|
18437
|
+
column.id
|
|
18438
|
+
);
|
|
18439
|
+
}
|
|
18440
|
+
) });
|
|
18441
|
+
return /* @__PURE__ */ jsx(
|
|
18442
|
+
"section",
|
|
18443
|
+
{
|
|
18444
|
+
"data-slot": "document-criteria-panel",
|
|
18445
|
+
"data-row-id": rowId,
|
|
18446
|
+
className: ["flex flex-col gap-2 rounded-md border border-border p-2", className].filter(Boolean).join(" "),
|
|
18447
|
+
children: /* @__PURE__ */ jsxs(MosaicTabs, { value: tab, onValueChange: (next) => setTab(next), children: [
|
|
18448
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
18449
|
+
/* @__PURE__ */ jsx(MosaicTabsList, { children: REVIEW_PANEL_TABS.map((value) => /* @__PURE__ */ jsx(MosaicTabsTrigger, { value, children: tabLabel[value] }, value)) }),
|
|
18450
|
+
/* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
|
|
18451
|
+
/* @__PURE__ */ jsx(
|
|
18452
|
+
"button",
|
|
18453
|
+
{
|
|
18454
|
+
type: "button",
|
|
18455
|
+
disabled: previousId === null,
|
|
18456
|
+
onClick: () => previousId !== null && onNavigate(previousId),
|
|
18457
|
+
className: "rounded-md border border-border px-3 py-1 text-sm disabled:opacity-50",
|
|
18458
|
+
children: labels.previous
|
|
18459
|
+
}
|
|
18460
|
+
),
|
|
18461
|
+
/* @__PURE__ */ jsx(
|
|
18462
|
+
"button",
|
|
18463
|
+
{
|
|
18464
|
+
type: "button",
|
|
18465
|
+
disabled: nextId === null,
|
|
18466
|
+
onClick: () => nextId !== null && onNavigate(nextId),
|
|
18467
|
+
className: "rounded-md border border-border px-3 py-1 text-sm disabled:opacity-50",
|
|
18468
|
+
children: labels.next
|
|
18469
|
+
}
|
|
18470
|
+
)
|
|
18471
|
+
] })
|
|
18472
|
+
] }),
|
|
18473
|
+
/* @__PURE__ */ jsx(MosaicTabsPanel, { value: "compare", children: /* @__PURE__ */ jsx(
|
|
18474
|
+
MosaicResizableSplitPane,
|
|
18475
|
+
{
|
|
18476
|
+
main: document_,
|
|
18477
|
+
side: fields,
|
|
18478
|
+
sideWidth,
|
|
18479
|
+
onSideWidthChange: setSideWidth,
|
|
18480
|
+
isSideCollapsed,
|
|
18481
|
+
onToggleSideCollapsed: () => setIsSideCollapsed((c) => !c),
|
|
18482
|
+
collapseButtonAriaLabel: labels.collapse,
|
|
18483
|
+
resizeHandleAriaLabel: labels.resize
|
|
18484
|
+
}
|
|
18485
|
+
) }),
|
|
18486
|
+
/* @__PURE__ */ jsx(MosaicTabsPanel, { value: "document", children: document_ }),
|
|
18487
|
+
/* @__PURE__ */ jsx(MosaicTabsPanel, { value: "row", children: fields })
|
|
18488
|
+
] })
|
|
18489
|
+
}
|
|
18490
|
+
);
|
|
18491
|
+
}
|
|
18492
|
+
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
|
+
var DEFAULT_WIDTH_RATIO = 0.45;
|
|
18572
|
+
var MIN_WIDTH_PX = 360;
|
|
18573
|
+
var MAX_WIDTH_RATIO = 0.9;
|
|
18574
|
+
var CSS_RULES = {
|
|
18575
|
+
// allow-hardcoded-word: a CSS rule (the scoped width variable), not user-facing text
|
|
18576
|
+
width: (px) => `.panneau-registre-shell { --panneau-registre-width: ${px}px; }`
|
|
18577
|
+
};
|
|
18578
|
+
function PanneauRegistreShell({
|
|
18579
|
+
open,
|
|
18580
|
+
onOpenChange,
|
|
18581
|
+
labels,
|
|
18582
|
+
ariaLabel,
|
|
18583
|
+
contexte,
|
|
18584
|
+
headerActions,
|
|
18585
|
+
forceWidthRatio = null,
|
|
18586
|
+
onPrev,
|
|
18587
|
+
onNext,
|
|
18588
|
+
prevDisabled,
|
|
18589
|
+
nextDisabled,
|
|
18590
|
+
children
|
|
18591
|
+
}) {
|
|
18592
|
+
const [widthPx, setWidthPx] = useState(null);
|
|
18593
|
+
const dragStart = useRef(null);
|
|
18594
|
+
useEffect(() => {
|
|
18595
|
+
if (widthPx !== null || typeof window === "undefined") return;
|
|
18596
|
+
setWidthPx(Math.round(window.innerWidth * DEFAULT_WIDTH_RATIO));
|
|
18597
|
+
}, [widthPx]);
|
|
18598
|
+
const onPointerMove = useCallback((e) => {
|
|
18599
|
+
const drag = dragStart.current;
|
|
18600
|
+
if (!drag) return;
|
|
18601
|
+
const dx = drag.x - e.clientX;
|
|
18602
|
+
const maxWidth = window.innerWidth * MAX_WIDTH_RATIO;
|
|
18603
|
+
setWidthPx(Math.min(maxWidth, Math.max(MIN_WIDTH_PX, drag.width + dx)));
|
|
18604
|
+
}, []);
|
|
18605
|
+
const onPointerUp = useCallback(() => {
|
|
18606
|
+
dragStart.current = null;
|
|
18607
|
+
window.removeEventListener("pointermove", onPointerMove);
|
|
18608
|
+
window.removeEventListener("pointerup", onPointerUp);
|
|
18609
|
+
}, [onPointerMove]);
|
|
18610
|
+
const onHandlePointerDown = useCallback(
|
|
18611
|
+
(e) => {
|
|
18612
|
+
dragStart.current = {
|
|
18613
|
+
x: e.clientX,
|
|
18614
|
+
width: widthPx ?? Math.round(window.innerWidth * DEFAULT_WIDTH_RATIO)
|
|
18615
|
+
};
|
|
18616
|
+
window.addEventListener("pointermove", onPointerMove);
|
|
18617
|
+
window.addEventListener("pointerup", onPointerUp);
|
|
18618
|
+
},
|
|
18619
|
+
[widthPx, onPointerMove, onPointerUp]
|
|
18620
|
+
);
|
|
18621
|
+
useEffect(() => () => onPointerUp(), [onPointerUp]);
|
|
18622
|
+
useEffect(() => {
|
|
18623
|
+
if (!open) return;
|
|
18624
|
+
function onKeyDown(e) {
|
|
18625
|
+
if (isEditableTarget(e.target)) return;
|
|
18626
|
+
if (e.key === "ArrowUp" && !prevDisabled) {
|
|
18627
|
+
e.preventDefault();
|
|
18628
|
+
onPrev();
|
|
18629
|
+
} else if (e.key === "ArrowDown" && !nextDisabled) {
|
|
18630
|
+
e.preventDefault();
|
|
18631
|
+
onNext();
|
|
18632
|
+
}
|
|
18633
|
+
}
|
|
18634
|
+
window.addEventListener("keydown", onKeyDown, true);
|
|
18635
|
+
return () => window.removeEventListener("keydown", onKeyDown, true);
|
|
18636
|
+
}, [open, prevDisabled, nextDisabled, onPrev, onNext]);
|
|
18637
|
+
const resolvedWidth = forceWidthRatio !== null && typeof window !== "undefined" ? Math.round(window.innerWidth * forceWidthRatio) : widthPx ?? MIN_WIDTH_PX;
|
|
18638
|
+
const widthRule = CSS_RULES.width(resolvedWidth);
|
|
18639
|
+
return /* @__PURE__ */ jsx(Drawer, { isOpen: open, onOpenChange, children: /* @__PURE__ */ jsx(Drawer.Backdrop, { children: /* @__PURE__ */ jsxs(Drawer.Content, { placement: "right", children: [
|
|
18640
|
+
/* @__PURE__ */ jsx("style", { children: widthRule }),
|
|
18641
|
+
/* @__PURE__ */ jsxs(
|
|
18642
|
+
Drawer.Dialog,
|
|
18643
|
+
{
|
|
18644
|
+
"aria-label": ariaLabel,
|
|
18645
|
+
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]!",
|
|
18646
|
+
children: [
|
|
18647
|
+
/* @__PURE__ */ jsx(
|
|
18648
|
+
"button",
|
|
18649
|
+
{
|
|
18650
|
+
type: "button",
|
|
18651
|
+
"aria-label": labels.resizeHandle,
|
|
18652
|
+
className: "absolute inset-y-0 left-0 hidden w-1.5 cursor-col-resize touch-none bg-transparent hover:bg-border sm:block",
|
|
18653
|
+
onPointerDown: onHandlePointerDown
|
|
18654
|
+
}
|
|
18655
|
+
),
|
|
18656
|
+
/* @__PURE__ */ jsxs(Drawer.Header, { className: "flex shrink-0 flex-row items-center justify-between gap-3", children: [
|
|
18657
|
+
/* @__PURE__ */ jsx("p", { className: "min-w-0 truncate text-sm text-muted-foreground", children: contexte }),
|
|
18658
|
+
/* @__PURE__ */ jsxs("div", { className: "flex shrink-0 flex-row items-center gap-2", children: [
|
|
18659
|
+
headerActions,
|
|
18660
|
+
/* @__PURE__ */ jsx(Drawer.CloseTrigger, { "aria-label": labels.close })
|
|
18661
|
+
] })
|
|
18662
|
+
] }),
|
|
18663
|
+
children,
|
|
18664
|
+
/* @__PURE__ */ jsxs(Drawer.Footer, { className: "flex shrink-0 flex-row items-center justify-end gap-2", children: [
|
|
18665
|
+
/* @__PURE__ */ jsx(
|
|
18666
|
+
Button$1,
|
|
18667
|
+
{
|
|
18668
|
+
variant: "outline",
|
|
18669
|
+
size: "sm",
|
|
18670
|
+
isIconOnly: true,
|
|
18671
|
+
"aria-label": labels.previousRow,
|
|
18672
|
+
isDisabled: prevDisabled,
|
|
18673
|
+
onPress: onPrev,
|
|
18674
|
+
children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
18675
|
+
}
|
|
18676
|
+
),
|
|
18677
|
+
/* @__PURE__ */ jsx(
|
|
18678
|
+
Button$1,
|
|
18679
|
+
{
|
|
18680
|
+
variant: "outline",
|
|
18681
|
+
size: "sm",
|
|
18682
|
+
isIconOnly: true,
|
|
18683
|
+
"aria-label": labels.nextRow,
|
|
18684
|
+
isDisabled: nextDisabled,
|
|
18685
|
+
onPress: onNext,
|
|
18686
|
+
children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
18687
|
+
}
|
|
18688
|
+
)
|
|
18689
|
+
] })
|
|
18690
|
+
]
|
|
18691
|
+
}
|
|
18692
|
+
)
|
|
18693
|
+
] }) }) });
|
|
18694
|
+
}
|
|
18695
|
+
|
|
18696
|
+
// src/components/registre/colonnes.ts
|
|
18697
|
+
function estVisible(etat, champ) {
|
|
18698
|
+
return etat[champ] !== false;
|
|
18699
|
+
}
|
|
18700
|
+
var OPTION_CLASS = "flex cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-sm hover:bg-default";
|
|
18701
|
+
function ChoixColonnes({
|
|
18702
|
+
colonnes,
|
|
18703
|
+
visibilite,
|
|
18704
|
+
onBasculer,
|
|
18705
|
+
labels,
|
|
18706
|
+
formatLibelle = (libelle) => libelle,
|
|
18707
|
+
ouvertParDefaut = false
|
|
18708
|
+
}) {
|
|
18709
|
+
const [ouvert, setOuvert] = useState(ouvertParDefaut);
|
|
18710
|
+
const nbMasquees = colonnes.filter((c) => !estVisible(visibilite, c.champ)).length;
|
|
18711
|
+
return /* @__PURE__ */ jsxs(Popover$1, { isOpen: ouvert, onOpenChange: setOuvert, children: [
|
|
18712
|
+
/* @__PURE__ */ jsx(Button$1, { variant: "outline", size: "sm", children: labels.columnsButton(nbMasquees) }),
|
|
18713
|
+
/* @__PURE__ */ jsx(Popover$1.Content, { placement: "bottom", children: /* @__PURE__ */ jsx(Popover$1.Dialog, { children: /* @__PURE__ */ jsx(
|
|
18714
|
+
"fieldset",
|
|
18715
|
+
{
|
|
18716
|
+
"aria-label": labels.columnsGroupAriaLabel,
|
|
18717
|
+
className: "z-50 max-h-[60vh] w-72 overflow-y-auto border-0 p-1",
|
|
18718
|
+
children: colonnes.map((c) => /* @__PURE__ */ jsx(
|
|
18719
|
+
Checkbox$1,
|
|
18720
|
+
{
|
|
18721
|
+
isSelected: estVisible(visibilite, c.champ),
|
|
18722
|
+
onChange: () => onBasculer(c.champ),
|
|
18723
|
+
children: /* @__PURE__ */ jsxs(Checkbox$1.Content, { className: OPTION_CLASS, children: [
|
|
18724
|
+
/* @__PURE__ */ jsx(Checkbox$1.Control, { children: /* @__PURE__ */ jsx(Checkbox$1.Indicator, {}) }),
|
|
18725
|
+
/* @__PURE__ */ jsx("span", { className: "w-4 tabular-nums text-muted-foreground", children: c.lettre }),
|
|
18726
|
+
/* @__PURE__ */ jsx("span", { children: formatLibelle(c.libelle) })
|
|
18727
|
+
] })
|
|
18728
|
+
},
|
|
18729
|
+
c.champ
|
|
18730
|
+
))
|
|
18731
|
+
}
|
|
18732
|
+
) }) })
|
|
18733
|
+
] });
|
|
18734
|
+
}
|
|
18735
|
+
var CSS_SELECTORS = {
|
|
18736
|
+
// allow-hardcoded-word: a CSS attribute selector (HeroUI data-slot names), not user-facing text
|
|
18737
|
+
openOverlay: "[data-slot=select-popover], [data-slot=popover-dialog]"
|
|
18738
|
+
};
|
|
18739
|
+
function RegistreEcran({
|
|
18740
|
+
ariaLabel,
|
|
18741
|
+
labels,
|
|
18742
|
+
colonnes,
|
|
18743
|
+
visibilite,
|
|
18744
|
+
onBasculerColonne,
|
|
18745
|
+
formatLibelleColonne,
|
|
18746
|
+
filtreGlobal,
|
|
18747
|
+
onFiltreGlobalChange,
|
|
18748
|
+
avantRecherche,
|
|
18749
|
+
actionsToolbar,
|
|
18750
|
+
children
|
|
18751
|
+
}) {
|
|
18752
|
+
const [fullScreen, setFullScreen] = useState(false);
|
|
18753
|
+
useEffect(() => {
|
|
18754
|
+
if (!fullScreen) return;
|
|
18755
|
+
const onKeyDown = (e) => {
|
|
18756
|
+
if (document.querySelector(CSS_SELECTORS.openOverlay)) return;
|
|
18757
|
+
if (e.key === "Escape") setFullScreen(false);
|
|
18758
|
+
};
|
|
18759
|
+
const previousOverflow = document.body.style.overflow;
|
|
18760
|
+
document.body.style.overflow = "hidden";
|
|
18761
|
+
window.addEventListener("keydown", onKeyDown);
|
|
18762
|
+
return () => {
|
|
18763
|
+
window.removeEventListener("keydown", onKeyDown);
|
|
18764
|
+
document.body.style.overflow = previousOverflow;
|
|
18765
|
+
};
|
|
18766
|
+
}, [fullScreen]);
|
|
18767
|
+
return /* @__PURE__ */ jsxs(
|
|
18768
|
+
"section",
|
|
18769
|
+
{
|
|
18770
|
+
"aria-label": ariaLabel,
|
|
18771
|
+
"data-fullscreen": fullScreen ? "true" : void 0,
|
|
18772
|
+
className: fullScreen ? "fixed inset-0 z-40 flex flex-col gap-4 bg-background p-4" : (
|
|
18773
|
+
// Phones let the page scroll so content above cannot squeeze the grid to nothing.
|
|
18774
|
+
"flex min-h-[70vh] flex-1 flex-col gap-4 sm:min-h-0"
|
|
18775
|
+
),
|
|
18776
|
+
children: [
|
|
18777
|
+
/* @__PURE__ */ jsx("div", { className: "shrink-0", children: /* @__PURE__ */ jsxs(Toolbar, { className: "flex flex-wrap items-center gap-2", children: [
|
|
18778
|
+
avantRecherche,
|
|
18779
|
+
/* @__PURE__ */ jsx(
|
|
18780
|
+
SearchField,
|
|
18781
|
+
{
|
|
18782
|
+
value: filtreGlobal,
|
|
18783
|
+
onChange: onFiltreGlobalChange,
|
|
18784
|
+
"aria-label": labels.searchAriaLabel,
|
|
18785
|
+
className: "w-full sm:w-auto",
|
|
18786
|
+
children: /* @__PURE__ */ jsxs(SearchField.Group, { className: "h-10 min-w-64", children: [
|
|
18787
|
+
/* @__PURE__ */ jsx(SearchField.SearchIcon, {}),
|
|
18788
|
+
/* @__PURE__ */ jsx(
|
|
18789
|
+
SearchField.Input,
|
|
18790
|
+
{
|
|
18791
|
+
placeholder: labels.searchPlaceholder,
|
|
18792
|
+
className: "text-base sm:text-sm"
|
|
18793
|
+
}
|
|
18794
|
+
),
|
|
18795
|
+
/* @__PURE__ */ jsx(SearchField.ClearButton, {})
|
|
18796
|
+
] })
|
|
18797
|
+
}
|
|
18798
|
+
),
|
|
18799
|
+
/* @__PURE__ */ jsx(
|
|
18800
|
+
ChoixColonnes,
|
|
18801
|
+
{
|
|
18802
|
+
colonnes,
|
|
18803
|
+
visibilite,
|
|
18804
|
+
onBasculer: onBasculerColonne,
|
|
18805
|
+
labels,
|
|
18806
|
+
formatLibelle: formatLibelleColonne
|
|
18807
|
+
}
|
|
18808
|
+
),
|
|
18809
|
+
actionsToolbar,
|
|
18810
|
+
/* @__PURE__ */ jsxs(
|
|
18811
|
+
Button$1,
|
|
18812
|
+
{
|
|
18813
|
+
variant: "outline",
|
|
18814
|
+
size: "sm",
|
|
18815
|
+
"aria-pressed": fullScreen,
|
|
18816
|
+
onPress: () => setFullScreen((f) => !f),
|
|
18817
|
+
children: [
|
|
18818
|
+
fullScreen ? /* @__PURE__ */ jsx(Minimize2, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ jsx(Maximize2, { "aria-hidden": true, className: "size-4" }),
|
|
18819
|
+
fullScreen ? labels.exitFullscreen : labels.enterFullscreen
|
|
18820
|
+
]
|
|
18821
|
+
}
|
|
18822
|
+
)
|
|
18823
|
+
] }) }),
|
|
18824
|
+
children
|
|
18825
|
+
]
|
|
18826
|
+
}
|
|
18827
|
+
);
|
|
18828
|
+
}
|
|
18829
|
+
function editValue(value, decimalSeparator) {
|
|
18830
|
+
if (value == null) return "";
|
|
18831
|
+
return typeof value === "number" ? String(value).replace(".", decimalSeparator) : value;
|
|
18832
|
+
}
|
|
18833
|
+
function FieldEditor({
|
|
18834
|
+
col,
|
|
18835
|
+
initial,
|
|
18836
|
+
labels,
|
|
18837
|
+
onSave,
|
|
18838
|
+
onCancel
|
|
18839
|
+
}) {
|
|
18840
|
+
const [draft, setDraft] = useState(initial);
|
|
18841
|
+
const [saving, setSaving] = useState(false);
|
|
18842
|
+
const inputId = `registre-field-${col.champ}`;
|
|
18843
|
+
const label = labels.fieldInput(col);
|
|
18844
|
+
async function submit(e) {
|
|
18845
|
+
e.preventDefault();
|
|
18846
|
+
setSaving(true);
|
|
18847
|
+
await onSave(draft);
|
|
18848
|
+
setSaving(false);
|
|
18849
|
+
}
|
|
18850
|
+
function onKeyDown(e) {
|
|
18851
|
+
if (e.key === "Escape") {
|
|
18852
|
+
e.stopPropagation();
|
|
18853
|
+
onCancel();
|
|
18854
|
+
}
|
|
18855
|
+
}
|
|
18856
|
+
const inputClass = "h-8 min-w-0 flex-1 rounded-md border border-border bg-background px-2 text-base sm:text-sm";
|
|
18857
|
+
return /* @__PURE__ */ jsxs("form", { onSubmit: submit, onKeyDown, className: "flex flex-wrap items-center gap-2", children: [
|
|
18858
|
+
col.valeurs ? /* @__PURE__ */ jsxs(
|
|
18859
|
+
"select",
|
|
18860
|
+
{
|
|
18861
|
+
id: inputId,
|
|
18862
|
+
"aria-label": label,
|
|
18863
|
+
value: draft,
|
|
18864
|
+
onChange: (e) => setDraft(e.target.value),
|
|
18865
|
+
className: inputClass,
|
|
18866
|
+
children: [
|
|
18867
|
+
/* @__PURE__ */ jsx("option", { value: "", children: "\u2014" }),
|
|
18868
|
+
col.valeurs.map((v) => /* @__PURE__ */ jsx("option", { value: v, children: v }, v))
|
|
18869
|
+
]
|
|
18870
|
+
}
|
|
18871
|
+
) : /* @__PURE__ */ jsx(
|
|
18872
|
+
"input",
|
|
18873
|
+
{
|
|
18874
|
+
id: inputId,
|
|
18875
|
+
"aria-label": label,
|
|
18876
|
+
value: draft,
|
|
18877
|
+
onChange: (e) => setDraft(e.target.value),
|
|
18878
|
+
autoFocus: true,
|
|
18879
|
+
className: inputClass
|
|
18880
|
+
}
|
|
18881
|
+
),
|
|
18882
|
+
/* @__PURE__ */ jsx(
|
|
18883
|
+
"button",
|
|
18884
|
+
{
|
|
18885
|
+
type: "submit",
|
|
18886
|
+
disabled: saving,
|
|
18887
|
+
className: "h-8 rounded-md bg-primary px-3 text-sm text-primary-foreground disabled:opacity-50",
|
|
18888
|
+
children: labels.save
|
|
18889
|
+
}
|
|
18890
|
+
),
|
|
18891
|
+
/* @__PURE__ */ jsx(
|
|
18892
|
+
"button",
|
|
18893
|
+
{
|
|
18894
|
+
type: "button",
|
|
18895
|
+
onClick: onCancel,
|
|
18896
|
+
className: "h-8 rounded-md border border-border px-3 text-sm",
|
|
18897
|
+
children: labels.cancel
|
|
18898
|
+
}
|
|
18899
|
+
)
|
|
18900
|
+
] });
|
|
18901
|
+
}
|
|
18902
|
+
var PENCIL_CLASS = "inline-flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-default hover:text-foreground";
|
|
18903
|
+
function RegistreLigneDetail({
|
|
18904
|
+
colonnes,
|
|
18905
|
+
ligne,
|
|
18906
|
+
corrections,
|
|
18907
|
+
labels,
|
|
18908
|
+
formatMontant,
|
|
18909
|
+
formatNombre,
|
|
18910
|
+
decimalSeparator,
|
|
18911
|
+
onSaveField
|
|
18912
|
+
}) {
|
|
18913
|
+
const [editing, setEditing] = useState(null);
|
|
18914
|
+
function displayValue(col, value) {
|
|
18915
|
+
if (value == null || value === "") return "";
|
|
18916
|
+
if (col.type === "montant") return formatMontant(Number(value));
|
|
18917
|
+
if (col.type === "nombre" || col.type === "entier") return formatNombre(Number(value));
|
|
18918
|
+
return String(value);
|
|
18919
|
+
}
|
|
18920
|
+
return /* @__PURE__ */ jsx("dl", { className: "divide-y divide-border rounded-md border border-border", children: colonnes.map((col) => {
|
|
18921
|
+
const value = ligne[col.champ] ?? null;
|
|
18922
|
+
const correction = corrections?.[col.champ];
|
|
18923
|
+
return /* @__PURE__ */ jsxs(
|
|
18924
|
+
"div",
|
|
18925
|
+
{
|
|
18926
|
+
"data-field": col.champ,
|
|
18927
|
+
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" : ""}`,
|
|
18928
|
+
children: [
|
|
18929
|
+
/* @__PURE__ */ jsxs("dt", { className: "text-muted-foreground", children: [
|
|
18930
|
+
col.libelle,
|
|
18931
|
+
" ",
|
|
18932
|
+
/* @__PURE__ */ jsxs("span", { className: "text-xs", children: [
|
|
18933
|
+
"\xB7 ",
|
|
18934
|
+
col.lettre
|
|
18935
|
+
] })
|
|
18936
|
+
] }),
|
|
18937
|
+
/* @__PURE__ */ jsxs("dd", { className: "flex min-w-0 flex-col gap-1", children: [
|
|
18938
|
+
editing === col.champ ? /* @__PURE__ */ jsx(
|
|
18939
|
+
FieldEditor,
|
|
18940
|
+
{
|
|
18941
|
+
col,
|
|
18942
|
+
initial: editValue(value, decimalSeparator),
|
|
18943
|
+
labels,
|
|
18944
|
+
onCancel: () => setEditing(null),
|
|
18945
|
+
onSave: async (saisie) => {
|
|
18946
|
+
if (await onSaveField(col.champ, saisie)) setEditing(null);
|
|
18947
|
+
}
|
|
18948
|
+
}
|
|
18949
|
+
) : /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
18950
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 break-words tabular-nums", children: displayValue(col, value) }),
|
|
18951
|
+
col.editable ? /* @__PURE__ */ jsx(
|
|
18952
|
+
"button",
|
|
18953
|
+
{
|
|
18954
|
+
type: "button",
|
|
18955
|
+
"aria-label": labels.edit(col.libelle),
|
|
18956
|
+
onClick: () => setEditing(col.champ),
|
|
18957
|
+
className: PENCIL_CLASS,
|
|
18958
|
+
children: /* @__PURE__ */ jsx(Pencil, { className: "size-3.5", "aria-hidden": "true" })
|
|
18959
|
+
}
|
|
18960
|
+
) : /* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: labels.computed })
|
|
18961
|
+
] }),
|
|
18962
|
+
correction && /* @__PURE__ */ jsx("p", { className: "text-xs text-amber-800 dark:text-amber-300", children: labels.correction(correction) })
|
|
18963
|
+
] })
|
|
18964
|
+
]
|
|
18965
|
+
},
|
|
18966
|
+
col.champ
|
|
18967
|
+
);
|
|
18968
|
+
}) });
|
|
18969
|
+
}
|
|
18970
|
+
|
|
18971
|
+
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 };
|
|
18204
18972
|
//# sourceMappingURL=index.js.map
|
|
18205
18973
|
//# sourceMappingURL=index.js.map
|