@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.cjs
CHANGED
|
@@ -26,6 +26,10 @@ var menu = require('@base-ui/react/menu');
|
|
|
26
26
|
var dialog = require('@base-ui/react/dialog');
|
|
27
27
|
var alertDialog = require('@base-ui/react/alert-dialog');
|
|
28
28
|
var popover = require('@base-ui/react/popover');
|
|
29
|
+
var agGridCommunity = require('ag-grid-community');
|
|
30
|
+
var agGridReact = require('ag-grid-react');
|
|
31
|
+
var react = require('@heroui/react');
|
|
32
|
+
var lucideReact = require('lucide-react');
|
|
29
33
|
|
|
30
34
|
function _interopNamespace(e) {
|
|
31
35
|
if (e && e.__esModule) return e;
|
|
@@ -48,7 +52,7 @@ function _interopNamespace(e) {
|
|
|
48
52
|
var React30__namespace = /*#__PURE__*/_interopNamespace(React30);
|
|
49
53
|
|
|
50
54
|
// src/version.ts
|
|
51
|
-
var version = "0.5.
|
|
55
|
+
var version = "0.5.37-alpha";
|
|
52
56
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
53
57
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
54
58
|
}
|
|
@@ -2868,6 +2872,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2868
2872
|
tabNavAriaLabel,
|
|
2869
2873
|
completeStatusLabel,
|
|
2870
2874
|
inProgressStatusLabel,
|
|
2875
|
+
formatDuration,
|
|
2871
2876
|
className,
|
|
2872
2877
|
ref
|
|
2873
2878
|
}) {
|
|
@@ -2910,10 +2915,7 @@ function MosaicAdaptiveNavigation({
|
|
|
2910
2915
|
] })
|
|
2911
2916
|
] }),
|
|
2912
2917
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
2913
|
-
item.duration !== void 0 && /* @__PURE__ */ jsxRuntime.
|
|
2914
|
-
item.duration,
|
|
2915
|
-
"s"
|
|
2916
|
-
] }),
|
|
2918
|
+
item.duration !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded bg-primary px-2 py-0.5 text-xs text-primary-foreground", children: formatDuration(item.duration) }),
|
|
2917
2919
|
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon2, { rotated: isExpanded })
|
|
2918
2920
|
] })
|
|
2919
2921
|
]
|
|
@@ -2965,17 +2967,14 @@ function MosaicAdaptiveNavigation({
|
|
|
2965
2967
|
}
|
|
2966
2968
|
),
|
|
2967
2969
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:inline", children: item.title }),
|
|
2968
|
-
item.duration !== void 0 && /* @__PURE__ */ jsxRuntime.
|
|
2970
|
+
item.duration !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2969
2971
|
"span",
|
|
2970
2972
|
{
|
|
2971
2973
|
className: cn40(
|
|
2972
2974
|
"rounded px-1 py-0.5 text-xs",
|
|
2973
2975
|
isActive ? "bg-primary-foreground/20" : "bg-muted"
|
|
2974
2976
|
),
|
|
2975
|
-
children:
|
|
2976
|
-
item.duration,
|
|
2977
|
-
"s"
|
|
2978
|
-
]
|
|
2977
|
+
children: formatDuration(item.duration)
|
|
2979
2978
|
}
|
|
2980
2979
|
)
|
|
2981
2980
|
]
|
|
@@ -3735,7 +3734,12 @@ function ArrowRightIcon() {
|
|
|
3735
3734
|
}
|
|
3736
3735
|
);
|
|
3737
3736
|
}
|
|
3738
|
-
function MosaicActivityItem({
|
|
3737
|
+
function MosaicActivityItem({
|
|
3738
|
+
activity,
|
|
3739
|
+
formatMessageCount,
|
|
3740
|
+
icon,
|
|
3741
|
+
className
|
|
3742
|
+
}) {
|
|
3739
3743
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3740
3744
|
"div",
|
|
3741
3745
|
{
|
|
@@ -3763,10 +3767,7 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
3763
3767
|
label
|
|
3764
3768
|
);
|
|
3765
3769
|
}) }),
|
|
3766
|
-
activity.messages !== void 0 && /* @__PURE__ */ jsxRuntime.
|
|
3767
|
-
activity.messages,
|
|
3768
|
-
" messages"
|
|
3769
|
-
] })
|
|
3770
|
+
activity.messages !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground", children: formatMessageCount(activity.messages) })
|
|
3770
3771
|
] }),
|
|
3771
3772
|
activity.excerpt && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-0.5 text-xs text-muted-foreground line-clamp-1", children: activity.excerpt })
|
|
3772
3773
|
] }),
|
|
@@ -3795,6 +3796,7 @@ function MosaicActivityFeed({
|
|
|
3795
3796
|
viewAllHref,
|
|
3796
3797
|
viewAllLabel,
|
|
3797
3798
|
emptyMessage,
|
|
3799
|
+
formatMessageCount,
|
|
3798
3800
|
iconMap,
|
|
3799
3801
|
renderLink,
|
|
3800
3802
|
className,
|
|
@@ -3834,7 +3836,14 @@ function MosaicActivityFeed({
|
|
|
3834
3836
|
{
|
|
3835
3837
|
className: "mosaic-activity-row",
|
|
3836
3838
|
style: { animationDelay: `${idx * 80}ms` },
|
|
3837
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3839
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3840
|
+
MosaicActivityItem,
|
|
3841
|
+
{
|
|
3842
|
+
activity,
|
|
3843
|
+
formatMessageCount,
|
|
3844
|
+
icon: iconMap?.[activity.type]
|
|
3845
|
+
}
|
|
3846
|
+
)
|
|
3838
3847
|
},
|
|
3839
3848
|
activity.id
|
|
3840
3849
|
)) })
|
|
@@ -4029,6 +4038,7 @@ function MosaicAgentComposerDesktop({
|
|
|
4029
4038
|
customInstructionsPreviewLabel,
|
|
4030
4039
|
selectAllModulesLabel,
|
|
4031
4040
|
unnamedAgentLabel,
|
|
4041
|
+
formatContextWindow,
|
|
4032
4042
|
roleSublabel,
|
|
4033
4043
|
personaSublabel,
|
|
4034
4044
|
frameworkSublabel,
|
|
@@ -4134,7 +4144,7 @@ function MosaicAgentComposerDesktop({
|
|
|
4134
4144
|
] }),
|
|
4135
4145
|
selectedModel.provider && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs capitalize text-muted-foreground", children: selectedModel.provider }),
|
|
4136
4146
|
(selectedModel.contextWindow || selectedModel.pricingLabel) && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-muted-foreground", children: [
|
|
4137
|
-
selectedModel.contextWindow &&
|
|
4147
|
+
selectedModel.contextWindow && formatContextWindow(selectedModel.contextWindow),
|
|
4138
4148
|
selectedModel.contextWindow && selectedModel.pricingLabel && " \u2022 ",
|
|
4139
4149
|
selectedModel.pricingLabel
|
|
4140
4150
|
] })
|
|
@@ -4500,7 +4510,8 @@ function MosaicAgentComposerMobile({
|
|
|
4500
4510
|
editModuleAriaLabel,
|
|
4501
4511
|
removeModuleAriaLabel,
|
|
4502
4512
|
selectModuleAriaLabel,
|
|
4503
|
-
changeModuleLabel
|
|
4513
|
+
changeModuleLabel,
|
|
4514
|
+
formatContextWindow
|
|
4504
4515
|
}) {
|
|
4505
4516
|
const L = labels;
|
|
4506
4517
|
const instructionsId = React30__namespace.useId();
|
|
@@ -4614,7 +4625,7 @@ function MosaicAgentComposerMobile({
|
|
|
4614
4625
|
] }),
|
|
4615
4626
|
selectedModel.provider && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs capitalize text-muted-foreground", children: selectedModel.provider }),
|
|
4616
4627
|
(selectedModel.contextWindow || selectedModel.pricingLabel) && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-muted-foreground", children: [
|
|
4617
|
-
selectedModel.contextWindow &&
|
|
4628
|
+
selectedModel.contextWindow && formatContextWindow(selectedModel.contextWindow),
|
|
4618
4629
|
selectedModel.contextWindow && selectedModel.pricingLabel && " \u2022 ",
|
|
4619
4630
|
selectedModel.pricingLabel
|
|
4620
4631
|
] })
|
|
@@ -9118,7 +9129,9 @@ function MosaicTemplateCard({
|
|
|
9118
9129
|
showActions = false,
|
|
9119
9130
|
compact = false,
|
|
9120
9131
|
previewLabel,
|
|
9121
|
-
duplicateLabel
|
|
9132
|
+
duplicateLabel,
|
|
9133
|
+
formatAgentCount,
|
|
9134
|
+
formatUsageCount
|
|
9122
9135
|
}) {
|
|
9123
9136
|
const isPopular = (template.metadata?.usageCount ?? 0) > 10;
|
|
9124
9137
|
const isTrending = (template.metadata?.usageCount ?? 0) > 5;
|
|
@@ -9149,14 +9162,8 @@ function MosaicTemplateCard({
|
|
|
9149
9162
|
] }),
|
|
9150
9163
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 flex flex-wrap items-center gap-1.5", children: [
|
|
9151
9164
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-md bg-secondary px-2 py-0.5 text-xs text-secondary-foreground", children: template.category }),
|
|
9152
|
-
template.agents && template.agents.length > 0 && /* @__PURE__ */ jsxRuntime.
|
|
9153
|
-
|
|
9154
|
-
" agents"
|
|
9155
|
-
] }),
|
|
9156
|
-
(template.metadata?.usageCount ?? 0) > 0 && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "rounded-md border border-border px-2 py-0.5 text-xs text-muted-foreground", children: [
|
|
9157
|
-
template.metadata?.usageCount,
|
|
9158
|
-
" uses"
|
|
9159
|
-
] }),
|
|
9165
|
+
template.agents && template.agents.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-md border border-border px-2 py-0.5 text-xs text-muted-foreground", children: formatAgentCount(template.agents.length) }),
|
|
9166
|
+
(template.metadata?.usageCount ?? 0) > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-md border border-border px-2 py-0.5 text-xs text-muted-foreground", children: formatUsageCount(template.metadata?.usageCount ?? 0) }),
|
|
9160
9167
|
tags.slice(0, compact ? 1 : 2).map((tag) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9161
9168
|
"span",
|
|
9162
9169
|
{
|
|
@@ -9420,6 +9427,8 @@ function TemplateGalleryContent({
|
|
|
9420
9427
|
expandSidebarAriaLabel,
|
|
9421
9428
|
previewLabel,
|
|
9422
9429
|
duplicateLabel,
|
|
9430
|
+
formatAgentCount,
|
|
9431
|
+
formatUsageCount,
|
|
9423
9432
|
isMobile
|
|
9424
9433
|
}) {
|
|
9425
9434
|
const [query, setQuery] = React30__namespace.useState("");
|
|
@@ -9496,6 +9505,8 @@ function TemplateGalleryContent({
|
|
|
9496
9505
|
showActions,
|
|
9497
9506
|
previewLabel,
|
|
9498
9507
|
duplicateLabel,
|
|
9508
|
+
formatAgentCount,
|
|
9509
|
+
formatUsageCount,
|
|
9499
9510
|
compact: true
|
|
9500
9511
|
},
|
|
9501
9512
|
template.id
|
|
@@ -9545,7 +9556,9 @@ function TemplateGalleryContent({
|
|
|
9545
9556
|
onDuplicate: onDuplicateTemplate,
|
|
9546
9557
|
showActions,
|
|
9547
9558
|
previewLabel,
|
|
9548
|
-
duplicateLabel
|
|
9559
|
+
duplicateLabel,
|
|
9560
|
+
formatAgentCount,
|
|
9561
|
+
formatUsageCount
|
|
9549
9562
|
},
|
|
9550
9563
|
template.id
|
|
9551
9564
|
)) }),
|
|
@@ -10135,6 +10148,7 @@ function MosaicOrgRoleBadge({
|
|
|
10135
10148
|
MosaicOrgRoleBadge.displayName = "MosaicOrgRoleBadge";
|
|
10136
10149
|
function MosaicMultiOrgIndicator({
|
|
10137
10150
|
orgCount,
|
|
10151
|
+
formatOrgCount,
|
|
10138
10152
|
currentOrgName,
|
|
10139
10153
|
onSwitchOrg,
|
|
10140
10154
|
className
|
|
@@ -10171,14 +10185,10 @@ function MosaicMultiOrgIndicator({
|
|
|
10171
10185
|
]
|
|
10172
10186
|
}
|
|
10173
10187
|
),
|
|
10174
|
-
orgCount
|
|
10175
|
-
" orgs"
|
|
10188
|
+
formatOrgCount(orgCount)
|
|
10176
10189
|
]
|
|
10177
10190
|
}
|
|
10178
|
-
) : /* @__PURE__ */ jsxRuntime.
|
|
10179
|
-
orgCount,
|
|
10180
|
-
" orgs"
|
|
10181
|
-
] }),
|
|
10191
|
+
) : /* @__PURE__ */ jsxRuntime.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) }),
|
|
10182
10192
|
currentOrgName && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground", children: currentOrgName })
|
|
10183
10193
|
] });
|
|
10184
10194
|
}
|
|
@@ -17406,11 +17416,11 @@ function cn120(...classes) {
|
|
|
17406
17416
|
return classes.filter(Boolean).join(" ");
|
|
17407
17417
|
}
|
|
17408
17418
|
var CHART_COLORS = [
|
|
17409
|
-
"var(--color-chart-1
|
|
17410
|
-
"var(--color-chart-2
|
|
17411
|
-
"var(--color-chart-3
|
|
17412
|
-
"var(--color-chart-4
|
|
17413
|
-
"var(--color-chart-5
|
|
17419
|
+
"var(--color-chart-1)",
|
|
17420
|
+
"var(--color-chart-2)",
|
|
17421
|
+
"var(--color-chart-3)",
|
|
17422
|
+
"var(--color-chart-4)",
|
|
17423
|
+
"var(--color-chart-5)"
|
|
17414
17424
|
];
|
|
17415
17425
|
function seriesKeys(rows, xAxisKey) {
|
|
17416
17426
|
return Object.keys(rows[0] ?? {}).filter((key) => key !== xAxisKey);
|
|
@@ -18219,6 +18229,764 @@ function MosaicAdminOnlyGuard(props) {
|
|
|
18219
18229
|
}
|
|
18220
18230
|
MosaicAdminOnlyGuard.displayName = "MosaicAdminOnlyGuard";
|
|
18221
18231
|
|
|
18232
|
+
// src/components/document-review/panel-tab.ts
|
|
18233
|
+
var REVIEW_PANEL_TABS = ["compare", "document", "row"];
|
|
18234
|
+
var INITIAL_REVIEW_PANEL_TAB = "compare";
|
|
18235
|
+
|
|
18236
|
+
// src/components/document-review/row-navigation.ts
|
|
18237
|
+
function isEditableTarget(target) {
|
|
18238
|
+
return target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement || target instanceof HTMLSelectElement || target instanceof HTMLElement && target.isContentEditable === true;
|
|
18239
|
+
}
|
|
18240
|
+
function neighbourRowId(orderedRowIds, currentRowId, direction) {
|
|
18241
|
+
const index = orderedRowIds.indexOf(currentRowId);
|
|
18242
|
+
if (index === -1) return null;
|
|
18243
|
+
const neighbourIndex = index + (direction === "next" ? 1 : -1);
|
|
18244
|
+
if (neighbourIndex < 0 || neighbourIndex >= orderedRowIds.length) return null;
|
|
18245
|
+
return orderedRowIds[neighbourIndex] ?? null;
|
|
18246
|
+
}
|
|
18247
|
+
|
|
18248
|
+
// src/components/document-review/column-model.ts
|
|
18249
|
+
var COLUMN_MODEL_ERRORS = {
|
|
18250
|
+
// allow-hardcoded-word: developer-facing invariant error, never rendered to an end user
|
|
18251
|
+
unknownColumn: (id) => `document-review: visibility names unknown column "${id}"`
|
|
18252
|
+
};
|
|
18253
|
+
function assertKnown(columns, ids) {
|
|
18254
|
+
const known = new Set(columns.map((c) => c.id));
|
|
18255
|
+
for (const id of ids) {
|
|
18256
|
+
if (!known.has(id)) {
|
|
18257
|
+
throw new Error(COLUMN_MODEL_ERRORS.unknownColumn(id));
|
|
18258
|
+
}
|
|
18259
|
+
}
|
|
18260
|
+
}
|
|
18261
|
+
function initialColumnVisibility(columns) {
|
|
18262
|
+
return Object.fromEntries(columns.map((c) => [c.id, c.defaultVisible]));
|
|
18263
|
+
}
|
|
18264
|
+
function toggleColumnVisibility(columns, visibility, id) {
|
|
18265
|
+
assertKnown(columns, [id]);
|
|
18266
|
+
const column = columns.find((c) => c.id === id);
|
|
18267
|
+
const current = visibility[id] ?? column.defaultVisible;
|
|
18268
|
+
return { ...visibility, [id]: !current };
|
|
18269
|
+
}
|
|
18270
|
+
function visibleColumns(columns, visibility) {
|
|
18271
|
+
assertKnown(columns, Object.keys(visibility));
|
|
18272
|
+
return columns.filter((c) => visibility[c.id] ?? c.defaultVisible);
|
|
18273
|
+
}
|
|
18274
|
+
|
|
18275
|
+
// src/components/document-review/field-correction.ts
|
|
18276
|
+
async function applyFieldCorrection(args) {
|
|
18277
|
+
const { row, field, input, by, provenance, write, validate, now } = args;
|
|
18278
|
+
const checked = validate ? validate(field, input, row) : { ok: true, value: input };
|
|
18279
|
+
if (!checked.ok) return { ok: false, row, message: checked.message };
|
|
18280
|
+
let response;
|
|
18281
|
+
try {
|
|
18282
|
+
response = await write({ rowId: row.id, field, input, by, provenance });
|
|
18283
|
+
} catch (e) {
|
|
18284
|
+
return { ok: false, row, message: e instanceof Error ? e.message : String(e) };
|
|
18285
|
+
}
|
|
18286
|
+
if (!response.ok) return { ok: false, row, message: response.message };
|
|
18287
|
+
const confirmed = "value" in response;
|
|
18288
|
+
const corrected = confirmed ? response.value ?? null : checked.value;
|
|
18289
|
+
const original = row.corrections?.[field]?.original ?? row.values[field] ?? null;
|
|
18290
|
+
const record = {
|
|
18291
|
+
original,
|
|
18292
|
+
corrected,
|
|
18293
|
+
by,
|
|
18294
|
+
at: now ? now() : (/* @__PURE__ */ new Date()).toISOString(),
|
|
18295
|
+
provenance
|
|
18296
|
+
};
|
|
18297
|
+
return {
|
|
18298
|
+
ok: true,
|
|
18299
|
+
confirmed,
|
|
18300
|
+
row: {
|
|
18301
|
+
...row,
|
|
18302
|
+
values: { ...row.values, [field]: corrected },
|
|
18303
|
+
corrections: { ...row.corrections, [field]: record }
|
|
18304
|
+
}
|
|
18305
|
+
};
|
|
18306
|
+
}
|
|
18307
|
+
function correctionOutcome(result) {
|
|
18308
|
+
if (!result.ok) return "failed";
|
|
18309
|
+
return result.confirmed ? "ok" : "uncertain";
|
|
18310
|
+
}
|
|
18311
|
+
function MosaicDocumentTable({
|
|
18312
|
+
columns,
|
|
18313
|
+
rows,
|
|
18314
|
+
getRowId,
|
|
18315
|
+
columnVisibility,
|
|
18316
|
+
selectedRowId: controlledSelectedRowId,
|
|
18317
|
+
onSelectedRowChange,
|
|
18318
|
+
renderPanel,
|
|
18319
|
+
emptyMessage,
|
|
18320
|
+
className
|
|
18321
|
+
}) {
|
|
18322
|
+
const [internalSelectedRowId, setInternalSelectedRowId] = React30.useState(null);
|
|
18323
|
+
const isControlled = controlledSelectedRowId !== void 0;
|
|
18324
|
+
const selectedRowId = isControlled ? controlledSelectedRowId : internalSelectedRowId;
|
|
18325
|
+
function select(rowId) {
|
|
18326
|
+
if (!isControlled) setInternalSelectedRowId(rowId);
|
|
18327
|
+
onSelectedRowChange?.(rowId);
|
|
18328
|
+
}
|
|
18329
|
+
const shown = visibleColumns(columns, columnVisibility ?? initialColumnVisibility(columns));
|
|
18330
|
+
const tableColumns = shown.map((column, columnIndex) => ({
|
|
18331
|
+
key: column.id,
|
|
18332
|
+
header: column.label,
|
|
18333
|
+
render: (row) => {
|
|
18334
|
+
const value = column.accessor(row);
|
|
18335
|
+
const text = value === null ? "" : String(value);
|
|
18336
|
+
if (columnIndex !== 0) return text;
|
|
18337
|
+
const isSelected = getRowId(row) === selectedRowId;
|
|
18338
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18339
|
+
"button",
|
|
18340
|
+
{
|
|
18341
|
+
type: "button",
|
|
18342
|
+
"data-slot": "document-table-open",
|
|
18343
|
+
"aria-current": isSelected ? "true" : void 0,
|
|
18344
|
+
"data-selected": isSelected ? "true" : void 0,
|
|
18345
|
+
className: "text-left underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
18346
|
+
children: text
|
|
18347
|
+
}
|
|
18348
|
+
);
|
|
18349
|
+
}
|
|
18350
|
+
}));
|
|
18351
|
+
function handleClick(event) {
|
|
18352
|
+
const tr = event.target.closest("tr[data-slot='data-table-row']");
|
|
18353
|
+
if (!(tr instanceof HTMLTableRowElement)) return;
|
|
18354
|
+
const row = rows[tr.sectionRowIndex];
|
|
18355
|
+
if (row !== void 0) select(getRowId(row));
|
|
18356
|
+
}
|
|
18357
|
+
const orderedRowIds = rows.map(getRowId);
|
|
18358
|
+
const selectedRow = selectedRowId === null ? void 0 : rows.find((row) => getRowId(row) === selectedRowId);
|
|
18359
|
+
return (
|
|
18360
|
+
// 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
|
|
18361
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "document-table", className, onClick: handleClick, children: [
|
|
18362
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18363
|
+
MosaicDataTable,
|
|
18364
|
+
{
|
|
18365
|
+
columns: tableColumns,
|
|
18366
|
+
rows,
|
|
18367
|
+
getRowKey: (row) => getRowId(row),
|
|
18368
|
+
sortable: false,
|
|
18369
|
+
emptyMessage
|
|
18370
|
+
}
|
|
18371
|
+
),
|
|
18372
|
+
selectedRow !== void 0 && renderPanel ? renderPanel(selectedRow, {
|
|
18373
|
+
rowId: getRowId(selectedRow),
|
|
18374
|
+
orderedRowIds,
|
|
18375
|
+
selectRow: (rowId) => select(rowId),
|
|
18376
|
+
closeRow: () => select(null)
|
|
18377
|
+
}) : null
|
|
18378
|
+
] })
|
|
18379
|
+
);
|
|
18380
|
+
}
|
|
18381
|
+
MosaicDocumentTable.displayName = "MosaicDocumentTable";
|
|
18382
|
+
function MosaicDocumentCriteriaPanel({
|
|
18383
|
+
row,
|
|
18384
|
+
rowId,
|
|
18385
|
+
columns,
|
|
18386
|
+
columnVisibility,
|
|
18387
|
+
documentUrl,
|
|
18388
|
+
orderedRowIds,
|
|
18389
|
+
onNavigate,
|
|
18390
|
+
onCorrect,
|
|
18391
|
+
actor,
|
|
18392
|
+
correctionProvenance,
|
|
18393
|
+
provenanceLabel,
|
|
18394
|
+
labels,
|
|
18395
|
+
defaultTab = INITIAL_REVIEW_PANEL_TAB,
|
|
18396
|
+
className
|
|
18397
|
+
}) {
|
|
18398
|
+
const [tab, setTab] = React30.useState(defaultTab);
|
|
18399
|
+
const [sideWidth, setSideWidth] = React30.useState(45);
|
|
18400
|
+
const [isSideCollapsed, setIsSideCollapsed] = React30.useState(false);
|
|
18401
|
+
const previousId = neighbourRowId(orderedRowIds, rowId, "prev");
|
|
18402
|
+
const nextId = neighbourRowId(orderedRowIds, rowId, "next");
|
|
18403
|
+
const tabLabel = {
|
|
18404
|
+
compare: labels.tabCompare,
|
|
18405
|
+
document: labels.tabDocument,
|
|
18406
|
+
row: labels.tabRow
|
|
18407
|
+
};
|
|
18408
|
+
const document_ = /* @__PURE__ */ jsxRuntime.jsx(
|
|
18409
|
+
MosaicPdfViewer,
|
|
18410
|
+
{
|
|
18411
|
+
fileUrl: documentUrl,
|
|
18412
|
+
loadingLabel: labels.documentLoading,
|
|
18413
|
+
errorLabel: labels.documentError
|
|
18414
|
+
}
|
|
18415
|
+
);
|
|
18416
|
+
const fields = /* @__PURE__ */ jsxRuntime.jsx("dl", { "data-slot": "document-criteria-fields", className: "flex flex-col gap-3 p-3", children: visibleColumns(columns, columnVisibility ?? initialColumnVisibility(columns)).map(
|
|
18417
|
+
(column) => {
|
|
18418
|
+
const value = column.accessor(row);
|
|
18419
|
+
const provenance = provenanceLabel(row, column);
|
|
18420
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18421
|
+
"div",
|
|
18422
|
+
{
|
|
18423
|
+
"data-slot": "document-criteria-field",
|
|
18424
|
+
className: "flex flex-col gap-1",
|
|
18425
|
+
children: [
|
|
18426
|
+
/* @__PURE__ */ jsxRuntime.jsx("dt", { className: "text-xs font-medium text-muted-foreground", children: column.label }),
|
|
18427
|
+
/* @__PURE__ */ jsxRuntime.jsxs("dd", { className: "m-0 flex flex-col gap-1", children: [
|
|
18428
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18429
|
+
MosaicEditableCell,
|
|
18430
|
+
{
|
|
18431
|
+
value: value === null ? "" : String(value),
|
|
18432
|
+
disabled: column.editable === false,
|
|
18433
|
+
editAriaLabel: labels.editField(column.label),
|
|
18434
|
+
onCommit: (input) => {
|
|
18435
|
+
onCorrect({
|
|
18436
|
+
rowId,
|
|
18437
|
+
field: column.id,
|
|
18438
|
+
input,
|
|
18439
|
+
by: actor,
|
|
18440
|
+
provenance: correctionProvenance
|
|
18441
|
+
});
|
|
18442
|
+
}
|
|
18443
|
+
}
|
|
18444
|
+
),
|
|
18445
|
+
provenance ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
18446
|
+
"span",
|
|
18447
|
+
{
|
|
18448
|
+
"data-slot": "document-criteria-provenance",
|
|
18449
|
+
className: "text-xs text-muted-foreground",
|
|
18450
|
+
children: provenance
|
|
18451
|
+
}
|
|
18452
|
+
) : null
|
|
18453
|
+
] })
|
|
18454
|
+
]
|
|
18455
|
+
},
|
|
18456
|
+
column.id
|
|
18457
|
+
);
|
|
18458
|
+
}
|
|
18459
|
+
) });
|
|
18460
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18461
|
+
"section",
|
|
18462
|
+
{
|
|
18463
|
+
"data-slot": "document-criteria-panel",
|
|
18464
|
+
"data-row-id": rowId,
|
|
18465
|
+
className: ["flex flex-col gap-2 rounded-md border border-border p-2", className].filter(Boolean).join(" "),
|
|
18466
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(MosaicTabs, { value: tab, onValueChange: (next) => setTab(next), children: [
|
|
18467
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
18468
|
+
/* @__PURE__ */ jsxRuntime.jsx(MosaicTabsList, { children: REVIEW_PANEL_TABS.map((value) => /* @__PURE__ */ jsxRuntime.jsx(MosaicTabsTrigger, { value, children: tabLabel[value] }, value)) }),
|
|
18469
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
18470
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18471
|
+
"button",
|
|
18472
|
+
{
|
|
18473
|
+
type: "button",
|
|
18474
|
+
disabled: previousId === null,
|
|
18475
|
+
onClick: () => previousId !== null && onNavigate(previousId),
|
|
18476
|
+
className: "rounded-md border border-border px-3 py-1 text-sm disabled:opacity-50",
|
|
18477
|
+
children: labels.previous
|
|
18478
|
+
}
|
|
18479
|
+
),
|
|
18480
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18481
|
+
"button",
|
|
18482
|
+
{
|
|
18483
|
+
type: "button",
|
|
18484
|
+
disabled: nextId === null,
|
|
18485
|
+
onClick: () => nextId !== null && onNavigate(nextId),
|
|
18486
|
+
className: "rounded-md border border-border px-3 py-1 text-sm disabled:opacity-50",
|
|
18487
|
+
children: labels.next
|
|
18488
|
+
}
|
|
18489
|
+
)
|
|
18490
|
+
] })
|
|
18491
|
+
] }),
|
|
18492
|
+
/* @__PURE__ */ jsxRuntime.jsx(MosaicTabsPanel, { value: "compare", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18493
|
+
MosaicResizableSplitPane,
|
|
18494
|
+
{
|
|
18495
|
+
main: document_,
|
|
18496
|
+
side: fields,
|
|
18497
|
+
sideWidth,
|
|
18498
|
+
onSideWidthChange: setSideWidth,
|
|
18499
|
+
isSideCollapsed,
|
|
18500
|
+
onToggleSideCollapsed: () => setIsSideCollapsed((c) => !c),
|
|
18501
|
+
collapseButtonAriaLabel: labels.collapse,
|
|
18502
|
+
resizeHandleAriaLabel: labels.resize
|
|
18503
|
+
}
|
|
18504
|
+
) }),
|
|
18505
|
+
/* @__PURE__ */ jsxRuntime.jsx(MosaicTabsPanel, { value: "document", children: document_ }),
|
|
18506
|
+
/* @__PURE__ */ jsxRuntime.jsx(MosaicTabsPanel, { value: "row", children: fields })
|
|
18507
|
+
] })
|
|
18508
|
+
}
|
|
18509
|
+
);
|
|
18510
|
+
}
|
|
18511
|
+
MosaicDocumentCriteriaPanel.displayName = "MosaicDocumentCriteriaPanel";
|
|
18512
|
+
var registreGridTheme = agGridCommunity.themeQuartz.withParams({
|
|
18513
|
+
accentColor: "var(--accent)",
|
|
18514
|
+
backgroundColor: "var(--surface)",
|
|
18515
|
+
foregroundColor: "var(--foreground)",
|
|
18516
|
+
textColor: "var(--foreground)",
|
|
18517
|
+
borderColor: "var(--border)",
|
|
18518
|
+
headerBackgroundColor: "var(--surface-secondary)",
|
|
18519
|
+
headerTextColor: "var(--surface-secondary-foreground)",
|
|
18520
|
+
headerFontWeight: 600,
|
|
18521
|
+
fontFamily: "var(--font-sans)",
|
|
18522
|
+
fontSize: 14,
|
|
18523
|
+
headerFontSize: 13,
|
|
18524
|
+
rowHeight: 40,
|
|
18525
|
+
headerHeight: 44,
|
|
18526
|
+
spacing: 8,
|
|
18527
|
+
wrapperBorderRadius: 8,
|
|
18528
|
+
rowHoverColor: "var(--surface-hover)"
|
|
18529
|
+
// No `selectedRowBackgroundColor`: the grid does not use the native AG Grid row
|
|
18530
|
+
// selection. A host highlights its selected row through `getRowStyle`.
|
|
18531
|
+
});
|
|
18532
|
+
var fitGridWidthStrategy = {
|
|
18533
|
+
type: "fitGridWidth"
|
|
18534
|
+
};
|
|
18535
|
+
function refitColumns(e) {
|
|
18536
|
+
e.api.sizeColumnsToFit();
|
|
18537
|
+
}
|
|
18538
|
+
var modulesRegistered = false;
|
|
18539
|
+
function ensureModules() {
|
|
18540
|
+
if (modulesRegistered) return;
|
|
18541
|
+
agGridCommunity.ModuleRegistry.registerModules([agGridCommunity.AllCommunityModule]);
|
|
18542
|
+
modulesRegistered = true;
|
|
18543
|
+
}
|
|
18544
|
+
var DEFAUTS = {
|
|
18545
|
+
resizable: true,
|
|
18546
|
+
sortable: true,
|
|
18547
|
+
filter: true,
|
|
18548
|
+
floatingFilter: true
|
|
18549
|
+
};
|
|
18550
|
+
function GrilleRegistre({
|
|
18551
|
+
lignes,
|
|
18552
|
+
columnDefs,
|
|
18553
|
+
getRowId,
|
|
18554
|
+
filtreGlobal,
|
|
18555
|
+
theme = registreGridTheme,
|
|
18556
|
+
onGridReady,
|
|
18557
|
+
onCelluleEditee,
|
|
18558
|
+
getRowStyle,
|
|
18559
|
+
tooltipShowDelay,
|
|
18560
|
+
suppressCellFocus,
|
|
18561
|
+
onCellClicked,
|
|
18562
|
+
rowHeight,
|
|
18563
|
+
domLayout,
|
|
18564
|
+
onGridSizeChanged
|
|
18565
|
+
}) {
|
|
18566
|
+
ensureModules();
|
|
18567
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "isolate h-full min-h-0 w-full", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18568
|
+
agGridReact.AgGridReact,
|
|
18569
|
+
{
|
|
18570
|
+
theme,
|
|
18571
|
+
autoSizeStrategy: fitGridWidthStrategy,
|
|
18572
|
+
rowData: lignes,
|
|
18573
|
+
columnDefs,
|
|
18574
|
+
defaultColDef: DEFAUTS,
|
|
18575
|
+
quickFilterText: filtreGlobal,
|
|
18576
|
+
getRowId: (p) => getRowId(p.data),
|
|
18577
|
+
onGridReady,
|
|
18578
|
+
onCellValueChanged: onCelluleEditee,
|
|
18579
|
+
onCellClicked,
|
|
18580
|
+
getRowStyle,
|
|
18581
|
+
tooltipShowDelay,
|
|
18582
|
+
suppressCellFocus,
|
|
18583
|
+
rowHeight,
|
|
18584
|
+
domLayout,
|
|
18585
|
+
onGridSizeChanged,
|
|
18586
|
+
animateRows: true
|
|
18587
|
+
}
|
|
18588
|
+
) });
|
|
18589
|
+
}
|
|
18590
|
+
var DEFAULT_WIDTH_RATIO = 0.45;
|
|
18591
|
+
var MIN_WIDTH_PX = 360;
|
|
18592
|
+
var MAX_WIDTH_RATIO = 0.9;
|
|
18593
|
+
var CSS_RULES = {
|
|
18594
|
+
// allow-hardcoded-word: a CSS rule (the scoped width variable), not user-facing text
|
|
18595
|
+
width: (px) => `.panneau-registre-shell { --panneau-registre-width: ${px}px; }`
|
|
18596
|
+
};
|
|
18597
|
+
function PanneauRegistreShell({
|
|
18598
|
+
open,
|
|
18599
|
+
onOpenChange,
|
|
18600
|
+
labels,
|
|
18601
|
+
ariaLabel,
|
|
18602
|
+
contexte,
|
|
18603
|
+
headerActions,
|
|
18604
|
+
forceWidthRatio = null,
|
|
18605
|
+
onPrev,
|
|
18606
|
+
onNext,
|
|
18607
|
+
prevDisabled,
|
|
18608
|
+
nextDisabled,
|
|
18609
|
+
children
|
|
18610
|
+
}) {
|
|
18611
|
+
const [widthPx, setWidthPx] = React30.useState(null);
|
|
18612
|
+
const dragStart = React30.useRef(null);
|
|
18613
|
+
React30.useEffect(() => {
|
|
18614
|
+
if (widthPx !== null || typeof window === "undefined") return;
|
|
18615
|
+
setWidthPx(Math.round(window.innerWidth * DEFAULT_WIDTH_RATIO));
|
|
18616
|
+
}, [widthPx]);
|
|
18617
|
+
const onPointerMove = React30.useCallback((e) => {
|
|
18618
|
+
const drag = dragStart.current;
|
|
18619
|
+
if (!drag) return;
|
|
18620
|
+
const dx = drag.x - e.clientX;
|
|
18621
|
+
const maxWidth = window.innerWidth * MAX_WIDTH_RATIO;
|
|
18622
|
+
setWidthPx(Math.min(maxWidth, Math.max(MIN_WIDTH_PX, drag.width + dx)));
|
|
18623
|
+
}, []);
|
|
18624
|
+
const onPointerUp = React30.useCallback(() => {
|
|
18625
|
+
dragStart.current = null;
|
|
18626
|
+
window.removeEventListener("pointermove", onPointerMove);
|
|
18627
|
+
window.removeEventListener("pointerup", onPointerUp);
|
|
18628
|
+
}, [onPointerMove]);
|
|
18629
|
+
const onHandlePointerDown = React30.useCallback(
|
|
18630
|
+
(e) => {
|
|
18631
|
+
dragStart.current = {
|
|
18632
|
+
x: e.clientX,
|
|
18633
|
+
width: widthPx ?? Math.round(window.innerWidth * DEFAULT_WIDTH_RATIO)
|
|
18634
|
+
};
|
|
18635
|
+
window.addEventListener("pointermove", onPointerMove);
|
|
18636
|
+
window.addEventListener("pointerup", onPointerUp);
|
|
18637
|
+
},
|
|
18638
|
+
[widthPx, onPointerMove, onPointerUp]
|
|
18639
|
+
);
|
|
18640
|
+
React30.useEffect(() => () => onPointerUp(), [onPointerUp]);
|
|
18641
|
+
React30.useEffect(() => {
|
|
18642
|
+
if (!open) return;
|
|
18643
|
+
function onKeyDown(e) {
|
|
18644
|
+
if (isEditableTarget(e.target)) return;
|
|
18645
|
+
if (e.key === "ArrowUp" && !prevDisabled) {
|
|
18646
|
+
e.preventDefault();
|
|
18647
|
+
onPrev();
|
|
18648
|
+
} else if (e.key === "ArrowDown" && !nextDisabled) {
|
|
18649
|
+
e.preventDefault();
|
|
18650
|
+
onNext();
|
|
18651
|
+
}
|
|
18652
|
+
}
|
|
18653
|
+
window.addEventListener("keydown", onKeyDown, true);
|
|
18654
|
+
return () => window.removeEventListener("keydown", onKeyDown, true);
|
|
18655
|
+
}, [open, prevDisabled, nextDisabled, onPrev, onNext]);
|
|
18656
|
+
const resolvedWidth = forceWidthRatio !== null && typeof window !== "undefined" ? Math.round(window.innerWidth * forceWidthRatio) : widthPx ?? MIN_WIDTH_PX;
|
|
18657
|
+
const widthRule = CSS_RULES.width(resolvedWidth);
|
|
18658
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.Drawer, { isOpen: open, onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsx(react.Drawer.Backdrop, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Drawer.Content, { placement: "right", children: [
|
|
18659
|
+
/* @__PURE__ */ jsxRuntime.jsx("style", { children: widthRule }),
|
|
18660
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
18661
|
+
react.Drawer.Dialog,
|
|
18662
|
+
{
|
|
18663
|
+
"aria-label": ariaLabel,
|
|
18664
|
+
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]!",
|
|
18665
|
+
children: [
|
|
18666
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18667
|
+
"button",
|
|
18668
|
+
{
|
|
18669
|
+
type: "button",
|
|
18670
|
+
"aria-label": labels.resizeHandle,
|
|
18671
|
+
className: "absolute inset-y-0 left-0 hidden w-1.5 cursor-col-resize touch-none bg-transparent hover:bg-border sm:block",
|
|
18672
|
+
onPointerDown: onHandlePointerDown
|
|
18673
|
+
}
|
|
18674
|
+
),
|
|
18675
|
+
/* @__PURE__ */ jsxRuntime.jsxs(react.Drawer.Header, { className: "flex shrink-0 flex-row items-center justify-between gap-3", children: [
|
|
18676
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "min-w-0 truncate text-sm text-muted-foreground", children: contexte }),
|
|
18677
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 flex-row items-center gap-2", children: [
|
|
18678
|
+
headerActions,
|
|
18679
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Drawer.CloseTrigger, { "aria-label": labels.close })
|
|
18680
|
+
] })
|
|
18681
|
+
] }),
|
|
18682
|
+
children,
|
|
18683
|
+
/* @__PURE__ */ jsxRuntime.jsxs(react.Drawer.Footer, { className: "flex shrink-0 flex-row items-center justify-end gap-2", children: [
|
|
18684
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18685
|
+
react.Button,
|
|
18686
|
+
{
|
|
18687
|
+
variant: "outline",
|
|
18688
|
+
size: "sm",
|
|
18689
|
+
isIconOnly: true,
|
|
18690
|
+
"aria-label": labels.previousRow,
|
|
18691
|
+
isDisabled: prevDisabled,
|
|
18692
|
+
onPress: onPrev,
|
|
18693
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUp, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
18694
|
+
}
|
|
18695
|
+
),
|
|
18696
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18697
|
+
react.Button,
|
|
18698
|
+
{
|
|
18699
|
+
variant: "outline",
|
|
18700
|
+
size: "sm",
|
|
18701
|
+
isIconOnly: true,
|
|
18702
|
+
"aria-label": labels.nextRow,
|
|
18703
|
+
isDisabled: nextDisabled,
|
|
18704
|
+
onPress: onNext,
|
|
18705
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
18706
|
+
}
|
|
18707
|
+
)
|
|
18708
|
+
] })
|
|
18709
|
+
]
|
|
18710
|
+
}
|
|
18711
|
+
)
|
|
18712
|
+
] }) }) });
|
|
18713
|
+
}
|
|
18714
|
+
|
|
18715
|
+
// src/components/registre/colonnes.ts
|
|
18716
|
+
function estVisible(etat, champ) {
|
|
18717
|
+
return etat[champ] !== false;
|
|
18718
|
+
}
|
|
18719
|
+
var OPTION_CLASS = "flex cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-sm hover:bg-default";
|
|
18720
|
+
function ChoixColonnes({
|
|
18721
|
+
colonnes,
|
|
18722
|
+
visibilite,
|
|
18723
|
+
onBasculer,
|
|
18724
|
+
labels,
|
|
18725
|
+
formatLibelle = (libelle) => libelle,
|
|
18726
|
+
ouvertParDefaut = false
|
|
18727
|
+
}) {
|
|
18728
|
+
const [ouvert, setOuvert] = React30.useState(ouvertParDefaut);
|
|
18729
|
+
const nbMasquees = colonnes.filter((c) => !estVisible(visibilite, c.champ)).length;
|
|
18730
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(react.Popover, { isOpen: ouvert, onOpenChange: setOuvert, children: [
|
|
18731
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Button, { variant: "outline", size: "sm", children: labels.columnsButton(nbMasquees) }),
|
|
18732
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Popover.Content, { placement: "bottom", children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Dialog, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18733
|
+
"fieldset",
|
|
18734
|
+
{
|
|
18735
|
+
"aria-label": labels.columnsGroupAriaLabel,
|
|
18736
|
+
className: "z-50 max-h-[60vh] w-72 overflow-y-auto border-0 p-1",
|
|
18737
|
+
children: colonnes.map((c) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
18738
|
+
react.Checkbox,
|
|
18739
|
+
{
|
|
18740
|
+
isSelected: estVisible(visibilite, c.champ),
|
|
18741
|
+
onChange: () => onBasculer(c.champ),
|
|
18742
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(react.Checkbox.Content, { className: OPTION_CLASS, children: [
|
|
18743
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Checkbox.Control, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Checkbox.Indicator, {}) }),
|
|
18744
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-4 tabular-nums text-muted-foreground", children: c.lettre }),
|
|
18745
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: formatLibelle(c.libelle) })
|
|
18746
|
+
] })
|
|
18747
|
+
},
|
|
18748
|
+
c.champ
|
|
18749
|
+
))
|
|
18750
|
+
}
|
|
18751
|
+
) }) })
|
|
18752
|
+
] });
|
|
18753
|
+
}
|
|
18754
|
+
var CSS_SELECTORS = {
|
|
18755
|
+
// allow-hardcoded-word: a CSS attribute selector (HeroUI data-slot names), not user-facing text
|
|
18756
|
+
openOverlay: "[data-slot=select-popover], [data-slot=popover-dialog]"
|
|
18757
|
+
};
|
|
18758
|
+
function RegistreEcran({
|
|
18759
|
+
ariaLabel,
|
|
18760
|
+
labels,
|
|
18761
|
+
colonnes,
|
|
18762
|
+
visibilite,
|
|
18763
|
+
onBasculerColonne,
|
|
18764
|
+
formatLibelleColonne,
|
|
18765
|
+
filtreGlobal,
|
|
18766
|
+
onFiltreGlobalChange,
|
|
18767
|
+
avantRecherche,
|
|
18768
|
+
actionsToolbar,
|
|
18769
|
+
children
|
|
18770
|
+
}) {
|
|
18771
|
+
const [fullScreen, setFullScreen] = React30.useState(false);
|
|
18772
|
+
React30.useEffect(() => {
|
|
18773
|
+
if (!fullScreen) return;
|
|
18774
|
+
const onKeyDown = (e) => {
|
|
18775
|
+
if (document.querySelector(CSS_SELECTORS.openOverlay)) return;
|
|
18776
|
+
if (e.key === "Escape") setFullScreen(false);
|
|
18777
|
+
};
|
|
18778
|
+
const previousOverflow = document.body.style.overflow;
|
|
18779
|
+
document.body.style.overflow = "hidden";
|
|
18780
|
+
window.addEventListener("keydown", onKeyDown);
|
|
18781
|
+
return () => {
|
|
18782
|
+
window.removeEventListener("keydown", onKeyDown);
|
|
18783
|
+
document.body.style.overflow = previousOverflow;
|
|
18784
|
+
};
|
|
18785
|
+
}, [fullScreen]);
|
|
18786
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18787
|
+
"section",
|
|
18788
|
+
{
|
|
18789
|
+
"aria-label": ariaLabel,
|
|
18790
|
+
"data-fullscreen": fullScreen ? "true" : void 0,
|
|
18791
|
+
className: fullScreen ? "fixed inset-0 z-40 flex flex-col gap-4 bg-background p-4" : (
|
|
18792
|
+
// Phones let the page scroll so content above cannot squeeze the grid to nothing.
|
|
18793
|
+
"flex min-h-[70vh] flex-1 flex-col gap-4 sm:min-h-0"
|
|
18794
|
+
),
|
|
18795
|
+
children: [
|
|
18796
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ jsxRuntime.jsxs(react.Toolbar, { className: "flex flex-wrap items-center gap-2", children: [
|
|
18797
|
+
avantRecherche,
|
|
18798
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18799
|
+
react.SearchField,
|
|
18800
|
+
{
|
|
18801
|
+
value: filtreGlobal,
|
|
18802
|
+
onChange: onFiltreGlobalChange,
|
|
18803
|
+
"aria-label": labels.searchAriaLabel,
|
|
18804
|
+
className: "w-full sm:w-auto",
|
|
18805
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(react.SearchField.Group, { className: "h-10 min-w-64", children: [
|
|
18806
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.SearchField.SearchIcon, {}),
|
|
18807
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18808
|
+
react.SearchField.Input,
|
|
18809
|
+
{
|
|
18810
|
+
placeholder: labels.searchPlaceholder,
|
|
18811
|
+
className: "text-base sm:text-sm"
|
|
18812
|
+
}
|
|
18813
|
+
),
|
|
18814
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.SearchField.ClearButton, {})
|
|
18815
|
+
] })
|
|
18816
|
+
}
|
|
18817
|
+
),
|
|
18818
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18819
|
+
ChoixColonnes,
|
|
18820
|
+
{
|
|
18821
|
+
colonnes,
|
|
18822
|
+
visibilite,
|
|
18823
|
+
onBasculer: onBasculerColonne,
|
|
18824
|
+
labels,
|
|
18825
|
+
formatLibelle: formatLibelleColonne
|
|
18826
|
+
}
|
|
18827
|
+
),
|
|
18828
|
+
actionsToolbar,
|
|
18829
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
18830
|
+
react.Button,
|
|
18831
|
+
{
|
|
18832
|
+
variant: "outline",
|
|
18833
|
+
size: "sm",
|
|
18834
|
+
"aria-pressed": fullScreen,
|
|
18835
|
+
onPress: () => setFullScreen((f) => !f),
|
|
18836
|
+
children: [
|
|
18837
|
+
fullScreen ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Minimize2, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Maximize2, { "aria-hidden": true, className: "size-4" }),
|
|
18838
|
+
fullScreen ? labels.exitFullscreen : labels.enterFullscreen
|
|
18839
|
+
]
|
|
18840
|
+
}
|
|
18841
|
+
)
|
|
18842
|
+
] }) }),
|
|
18843
|
+
children
|
|
18844
|
+
]
|
|
18845
|
+
}
|
|
18846
|
+
);
|
|
18847
|
+
}
|
|
18848
|
+
function editValue(value, decimalSeparator) {
|
|
18849
|
+
if (value == null) return "";
|
|
18850
|
+
return typeof value === "number" ? String(value).replace(".", decimalSeparator) : value;
|
|
18851
|
+
}
|
|
18852
|
+
function FieldEditor({
|
|
18853
|
+
col,
|
|
18854
|
+
initial,
|
|
18855
|
+
labels,
|
|
18856
|
+
onSave,
|
|
18857
|
+
onCancel
|
|
18858
|
+
}) {
|
|
18859
|
+
const [draft, setDraft] = React30.useState(initial);
|
|
18860
|
+
const [saving, setSaving] = React30.useState(false);
|
|
18861
|
+
const inputId = `registre-field-${col.champ}`;
|
|
18862
|
+
const label = labels.fieldInput(col);
|
|
18863
|
+
async function submit(e) {
|
|
18864
|
+
e.preventDefault();
|
|
18865
|
+
setSaving(true);
|
|
18866
|
+
await onSave(draft);
|
|
18867
|
+
setSaving(false);
|
|
18868
|
+
}
|
|
18869
|
+
function onKeyDown(e) {
|
|
18870
|
+
if (e.key === "Escape") {
|
|
18871
|
+
e.stopPropagation();
|
|
18872
|
+
onCancel();
|
|
18873
|
+
}
|
|
18874
|
+
}
|
|
18875
|
+
const inputClass = "h-8 min-w-0 flex-1 rounded-md border border-border bg-background px-2 text-base sm:text-sm";
|
|
18876
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: submit, onKeyDown, className: "flex flex-wrap items-center gap-2", children: [
|
|
18877
|
+
col.valeurs ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18878
|
+
"select",
|
|
18879
|
+
{
|
|
18880
|
+
id: inputId,
|
|
18881
|
+
"aria-label": label,
|
|
18882
|
+
value: draft,
|
|
18883
|
+
onChange: (e) => setDraft(e.target.value),
|
|
18884
|
+
className: inputClass,
|
|
18885
|
+
children: [
|
|
18886
|
+
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "", children: "\u2014" }),
|
|
18887
|
+
col.valeurs.map((v) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: v, children: v }, v))
|
|
18888
|
+
]
|
|
18889
|
+
}
|
|
18890
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
18891
|
+
"input",
|
|
18892
|
+
{
|
|
18893
|
+
id: inputId,
|
|
18894
|
+
"aria-label": label,
|
|
18895
|
+
value: draft,
|
|
18896
|
+
onChange: (e) => setDraft(e.target.value),
|
|
18897
|
+
autoFocus: true,
|
|
18898
|
+
className: inputClass
|
|
18899
|
+
}
|
|
18900
|
+
),
|
|
18901
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18902
|
+
"button",
|
|
18903
|
+
{
|
|
18904
|
+
type: "submit",
|
|
18905
|
+
disabled: saving,
|
|
18906
|
+
className: "h-8 rounded-md bg-primary px-3 text-sm text-primary-foreground disabled:opacity-50",
|
|
18907
|
+
children: labels.save
|
|
18908
|
+
}
|
|
18909
|
+
),
|
|
18910
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18911
|
+
"button",
|
|
18912
|
+
{
|
|
18913
|
+
type: "button",
|
|
18914
|
+
onClick: onCancel,
|
|
18915
|
+
className: "h-8 rounded-md border border-border px-3 text-sm",
|
|
18916
|
+
children: labels.cancel
|
|
18917
|
+
}
|
|
18918
|
+
)
|
|
18919
|
+
] });
|
|
18920
|
+
}
|
|
18921
|
+
var PENCIL_CLASS = "inline-flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-default hover:text-foreground";
|
|
18922
|
+
function RegistreLigneDetail({
|
|
18923
|
+
colonnes,
|
|
18924
|
+
ligne,
|
|
18925
|
+
corrections,
|
|
18926
|
+
labels,
|
|
18927
|
+
formatMontant,
|
|
18928
|
+
formatNombre,
|
|
18929
|
+
decimalSeparator,
|
|
18930
|
+
onSaveField
|
|
18931
|
+
}) {
|
|
18932
|
+
const [editing, setEditing] = React30.useState(null);
|
|
18933
|
+
function displayValue(col, value) {
|
|
18934
|
+
if (value == null || value === "") return "";
|
|
18935
|
+
if (col.type === "montant") return formatMontant(Number(value));
|
|
18936
|
+
if (col.type === "nombre" || col.type === "entier") return formatNombre(Number(value));
|
|
18937
|
+
return String(value);
|
|
18938
|
+
}
|
|
18939
|
+
return /* @__PURE__ */ jsxRuntime.jsx("dl", { className: "divide-y divide-border rounded-md border border-border", children: colonnes.map((col) => {
|
|
18940
|
+
const value = ligne[col.champ] ?? null;
|
|
18941
|
+
const correction = corrections?.[col.champ];
|
|
18942
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18943
|
+
"div",
|
|
18944
|
+
{
|
|
18945
|
+
"data-field": col.champ,
|
|
18946
|
+
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" : ""}`,
|
|
18947
|
+
children: [
|
|
18948
|
+
/* @__PURE__ */ jsxRuntime.jsxs("dt", { className: "text-muted-foreground", children: [
|
|
18949
|
+
col.libelle,
|
|
18950
|
+
" ",
|
|
18951
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs", children: [
|
|
18952
|
+
"\xB7 ",
|
|
18953
|
+
col.lettre
|
|
18954
|
+
] })
|
|
18955
|
+
] }),
|
|
18956
|
+
/* @__PURE__ */ jsxRuntime.jsxs("dd", { className: "flex min-w-0 flex-col gap-1", children: [
|
|
18957
|
+
editing === col.champ ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
18958
|
+
FieldEditor,
|
|
18959
|
+
{
|
|
18960
|
+
col,
|
|
18961
|
+
initial: editValue(value, decimalSeparator),
|
|
18962
|
+
labels,
|
|
18963
|
+
onCancel: () => setEditing(null),
|
|
18964
|
+
onSave: async (saisie) => {
|
|
18965
|
+
if (await onSaveField(col.champ, saisie)) setEditing(null);
|
|
18966
|
+
}
|
|
18967
|
+
}
|
|
18968
|
+
) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
18969
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 break-words tabular-nums", children: displayValue(col, value) }),
|
|
18970
|
+
col.editable ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
18971
|
+
"button",
|
|
18972
|
+
{
|
|
18973
|
+
type: "button",
|
|
18974
|
+
"aria-label": labels.edit(col.libelle),
|
|
18975
|
+
onClick: () => setEditing(col.champ),
|
|
18976
|
+
className: PENCIL_CLASS,
|
|
18977
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Pencil, { className: "size-3.5", "aria-hidden": "true" })
|
|
18978
|
+
}
|
|
18979
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: labels.computed })
|
|
18980
|
+
] }),
|
|
18981
|
+
correction && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-amber-800 dark:text-amber-300", children: labels.correction(correction) })
|
|
18982
|
+
] })
|
|
18983
|
+
]
|
|
18984
|
+
},
|
|
18985
|
+
col.champ
|
|
18986
|
+
);
|
|
18987
|
+
}) });
|
|
18988
|
+
}
|
|
18989
|
+
|
|
18222
18990
|
Object.defineProperty(exports, "Accordion", {
|
|
18223
18991
|
enumerable: true,
|
|
18224
18992
|
get: function () { return accordion.Accordion; }
|
|
@@ -18227,6 +18995,9 @@ Object.defineProperty(exports, "Tooltip", {
|
|
|
18227
18995
|
enumerable: true,
|
|
18228
18996
|
get: function () { return tooltip.Tooltip; }
|
|
18229
18997
|
});
|
|
18998
|
+
exports.ChoixColonnes = ChoixColonnes;
|
|
18999
|
+
exports.GrilleRegistre = GrilleRegistre;
|
|
19000
|
+
exports.INITIAL_REVIEW_PANEL_TAB = INITIAL_REVIEW_PANEL_TAB;
|
|
18230
19001
|
exports.MosaicAccordion = MosaicAccordion;
|
|
18231
19002
|
exports.MosaicAccordionItem = MosaicAccordionItem;
|
|
18232
19003
|
exports.MosaicAccordionPanel = MosaicAccordionPanel;
|
|
@@ -18303,6 +19074,8 @@ exports.MosaicDashboardLayout = MosaicDashboardLayout;
|
|
|
18303
19074
|
exports.MosaicDataTable = MosaicDataTable;
|
|
18304
19075
|
exports.MosaicDeleteConfirmationDialog = MosaicDeleteConfirmationDialog;
|
|
18305
19076
|
exports.MosaicDeviceProvider = MosaicDeviceProvider;
|
|
19077
|
+
exports.MosaicDocumentCriteriaPanel = MosaicDocumentCriteriaPanel;
|
|
19078
|
+
exports.MosaicDocumentTable = MosaicDocumentTable;
|
|
18306
19079
|
exports.MosaicDocumentUpload = MosaicDocumentUpload;
|
|
18307
19080
|
exports.MosaicDrawer = MosaicDrawer;
|
|
18308
19081
|
exports.MosaicDropdownMenu = MosaicDropdownMenu;
|
|
@@ -18417,7 +19190,11 @@ exports.MosaicTooltipRoot = MosaicTooltipRoot;
|
|
|
18417
19190
|
exports.MosaicTooltipTrigger = MosaicTooltipTrigger;
|
|
18418
19191
|
exports.MosaicUrlScraper = MosaicUrlScraper;
|
|
18419
19192
|
exports.MosaicUserButton = MosaicUserButton;
|
|
19193
|
+
exports.PanneauRegistreShell = PanneauRegistreShell;
|
|
18420
19194
|
exports.Placeholder = Placeholder;
|
|
19195
|
+
exports.REVIEW_PANEL_TABS = REVIEW_PANEL_TABS;
|
|
19196
|
+
exports.RegistreEcran = RegistreEcran;
|
|
19197
|
+
exports.RegistreLigneDetail = RegistreLigneDetail;
|
|
18421
19198
|
exports.addMemoryFormButtonVariants = addMemoryFormButtonVariants;
|
|
18422
19199
|
exports.addMemoryFormErrorVariants = addMemoryFormErrorVariants;
|
|
18423
19200
|
exports.addMemoryFormFieldVariants = addMemoryFormFieldVariants;
|
|
@@ -18430,6 +19207,7 @@ exports.agentEditorVariants = agentEditorVariants;
|
|
|
18430
19207
|
exports.agentPreviewVariants = agentPreviewVariants;
|
|
18431
19208
|
exports.alertDialogContentVariants = alertDialogContentVariants;
|
|
18432
19209
|
exports.alertDialogOverlayVariants = alertDialogOverlayVariants;
|
|
19210
|
+
exports.applyFieldCorrection = applyFieldCorrection;
|
|
18433
19211
|
exports.artifactSaveAsMemoryFormButtonVariants = artifactSaveAsMemoryFormButtonVariants;
|
|
18434
19212
|
exports.artifactSaveAsMemoryFormErrorVariants = artifactSaveAsMemoryFormErrorVariants;
|
|
18435
19213
|
exports.artifactSaveAsMemoryFormFieldVariants = artifactSaveAsMemoryFormFieldVariants;
|
|
@@ -18444,6 +19222,7 @@ exports.chatMessageBubbleVariants = chatMessageBubbleVariants;
|
|
|
18444
19222
|
exports.chatMessageContainerVariants = chatMessageContainerVariants;
|
|
18445
19223
|
exports.chatMessageToolStatusVariants = chatMessageToolStatusVariants;
|
|
18446
19224
|
exports.chatSidebarThreadVariants = chatSidebarThreadVariants;
|
|
19225
|
+
exports.correctionOutcome = correctionOutcome;
|
|
18447
19226
|
exports.drawerBackdropVariants = drawerBackdropVariants;
|
|
18448
19227
|
exports.drawerPopupVariants = drawerPopupVariants;
|
|
18449
19228
|
exports.editMemoryDialogBackdropVariants = editMemoryDialogBackdropVariants;
|
|
@@ -18456,6 +19235,10 @@ exports.editSessionDialogErrorVariants = editSessionDialogErrorVariants;
|
|
|
18456
19235
|
exports.editSessionDialogFieldVariants = editSessionDialogFieldVariants;
|
|
18457
19236
|
exports.editSessionDialogFooterVariants = editSessionDialogFooterVariants;
|
|
18458
19237
|
exports.editableCellVariants = editableCellVariants;
|
|
19238
|
+
exports.estVisible = estVisible;
|
|
19239
|
+
exports.fitGridWidthStrategy = fitGridWidthStrategy;
|
|
19240
|
+
exports.initialColumnVisibility = initialColumnVisibility;
|
|
19241
|
+
exports.isEditableTarget = isEditableTarget;
|
|
18459
19242
|
exports.marketplaceCardVariants = marketplaceCardVariants;
|
|
18460
19243
|
exports.matchStateVariants = matchStateVariants;
|
|
18461
19244
|
exports.memoryDashboardViewToggleButtonVariants = memoryDashboardViewToggleButtonVariants;
|
|
@@ -18466,6 +19249,7 @@ exports.memorySearchFilterChipVariants = memorySearchFilterChipVariants;
|
|
|
18466
19249
|
exports.mentionInputFieldVariants = mentionInputFieldVariants;
|
|
18467
19250
|
exports.mentionListItemVariants = mentionListItemVariants;
|
|
18468
19251
|
exports.mentionListVariants = mentionListVariants;
|
|
19252
|
+
exports.neighbourRowId = neighbourRowId;
|
|
18469
19253
|
exports.normalizeArtifact = normalizeArtifact;
|
|
18470
19254
|
exports.normalizeFromAiSdkArtifacts = normalizeFromAiSdkArtifacts;
|
|
18471
19255
|
exports.normalizeFromMcpToolResult = normalizeFromMcpToolResult;
|
|
@@ -18473,6 +19257,8 @@ exports.pdfViewerFrameVariants = pdfViewerFrameVariants;
|
|
|
18473
19257
|
exports.pdfViewerStatusVariants = pdfViewerStatusVariants;
|
|
18474
19258
|
exports.pdfViewerToolbarButtonVariants = pdfViewerToolbarButtonVariants;
|
|
18475
19259
|
exports.popoverPopupVariants = popoverPopupVariants;
|
|
19260
|
+
exports.refitColumns = refitColumns;
|
|
19261
|
+
exports.registreGridTheme = registreGridTheme;
|
|
18476
19262
|
exports.replyInputActionButtonVariants = replyInputActionButtonVariants;
|
|
18477
19263
|
exports.replyInputContextVariants = replyInputContextVariants;
|
|
18478
19264
|
exports.replyInputRootVariants = replyInputRootVariants;
|
|
@@ -18515,6 +19301,7 @@ exports.toastCardVariants = toastCardVariants;
|
|
|
18515
19301
|
exports.toastDismissButtonVariants = toastDismissButtonVariants;
|
|
18516
19302
|
exports.toastProviderPositionVariants = toastProviderPositionVariants;
|
|
18517
19303
|
exports.toastTitleVariants = toastTitleVariants;
|
|
19304
|
+
exports.toggleColumnVisibility = toggleColumnVisibility;
|
|
18518
19305
|
exports.toolToggleListRowVariants = toolToggleListRowVariants;
|
|
18519
19306
|
exports.toolToggleListSectionVariants = toolToggleListSectionVariants;
|
|
18520
19307
|
exports.useBreakpoint = useBreakpoint;
|
|
@@ -18528,5 +19315,6 @@ exports.useMosaicWorkspace = useMosaicWorkspace;
|
|
|
18528
19315
|
exports.useOrientation = useOrientation;
|
|
18529
19316
|
exports.useViewport = useViewport;
|
|
18530
19317
|
exports.version = version;
|
|
19318
|
+
exports.visibleColumns = visibleColumns;
|
|
18531
19319
|
//# sourceMappingURL=index.cjs.map
|
|
18532
19320
|
//# sourceMappingURL=index.cjs.map
|