@arbidocs/blocks 0.5.146 → 0.5.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedCallDock-JVLJEWLJ.cjs → ConnectedCallDock-6VGATAAQ.cjs} +5 -5
- package/dist/{ConnectedCallDock-JVLJEWLJ.cjs.map → ConnectedCallDock-6VGATAAQ.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-7YQRDIS3.cjs → ConnectedCallRoom-YBNERVTW.cjs} +5 -5
- package/dist/{ConnectedCallRoom-7YQRDIS3.cjs.map → ConnectedCallRoom-YBNERVTW.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-JJXQBIV2.cjs → ConnectedPresentation-JZQFTC5H.cjs} +4 -4
- package/dist/{ConnectedPresentation-JJXQBIV2.cjs.map → ConnectedPresentation-JZQFTC5H.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-ENCPTGJE.cjs → DocumentReviewCard-UDC4PNIS.cjs} +15 -14
- package/dist/DocumentReviewCard-UDC4PNIS.cjs.map +1 -0
- package/dist/{FilesViewerDialog-FFPW7TIK.cjs → FilesViewerDialog-D5GHWK4Y.cjs} +12 -11
- package/dist/FilesViewerDialog-D5GHWK4Y.cjs.map +1 -0
- package/dist/{WorkspaceTableView-2RH33X3U.cjs → WorkspaceTableView-2NRV4CWP.cjs} +7 -6
- package/dist/WorkspaceTableView-2NRV4CWP.cjs.map +1 -0
- package/dist/agents/index.cjs +176 -175
- package/dist/agents/tasks/TaskRowMenu.d.ts +1 -2
- package/dist/agents/tasks/TaskRowMenu.js +0 -2
- package/dist/agents/tasks/TaskRowMenu.js.map +2 -2
- package/dist/agents/tasks/TaskTable.d.ts +5 -2
- package/dist/agents/tasks/TaskTable.js +11 -8
- package/dist/agents/tasks/TaskTable.js.map +2 -2
- package/dist/agents/tasks/taskTableLabels.js +1 -1
- package/dist/agents/tasks/taskTableLabels.js.map +1 -1
- package/dist/{ai-YX3OAC4F.cjs → ai-VLIPYNWP.cjs} +13 -13
- package/dist/ai-VLIPYNWP.cjs.map +1 -0
- package/dist/calls/index.cjs +2 -2
- package/dist/chat/ChatThreads.js +1 -1
- package/dist/chat/ChatThreads.js.map +2 -2
- package/dist/chat/chat-page-types.d.ts +2 -0
- package/dist/chat/chat-page-types.js.map +2 -2
- package/dist/chat/index.cjs +25 -25
- package/dist/{chunk-32HVYK4Q.cjs → chunk-3VPNL4EH.cjs} +14 -13
- package/dist/chunk-3VPNL4EH.cjs.map +1 -0
- package/dist/{chunk-6TU4YLFW.cjs → chunk-5TT6J67U.cjs} +3 -3
- package/dist/chunk-5TT6J67U.cjs.map +1 -0
- package/dist/{chunk-N7AUJTU4.cjs → chunk-7AULM6LS.cjs} +5 -5
- package/dist/{chunk-N7AUJTU4.cjs.map → chunk-7AULM6LS.cjs.map} +1 -1
- package/dist/{chunk-MBXXWTKT.cjs → chunk-AYWY4MX2.cjs} +28 -28
- package/dist/{chunk-MBXXWTKT.cjs.map → chunk-AYWY4MX2.cjs.map} +1 -1
- package/dist/{chunk-P2AZ2HX7.cjs → chunk-AZQ4XIVY.cjs} +26 -26
- package/dist/{chunk-P2AZ2HX7.cjs.map → chunk-AZQ4XIVY.cjs.map} +1 -1
- package/dist/{chunk-VZKTOGZR.cjs → chunk-BLRPBEUG.cjs} +2 -2
- package/dist/{chunk-VZKTOGZR.cjs.map → chunk-BLRPBEUG.cjs.map} +1 -1
- package/dist/chunk-DKY67DA6.cjs +43 -0
- package/dist/chunk-DKY67DA6.cjs.map +1 -0
- package/dist/{chunk-N3H3YAKY.cjs → chunk-DUNXLT63.cjs} +17 -12
- package/dist/chunk-DUNXLT63.cjs.map +1 -0
- package/dist/{chunk-UOI6JJPG.cjs → chunk-EF2QQBDV.cjs} +29 -134
- package/dist/chunk-EF2QQBDV.cjs.map +1 -0
- package/dist/{chunk-3Y75LUCT.cjs → chunk-FHKBR55Q.cjs} +3 -3
- package/dist/{chunk-3Y75LUCT.cjs.map → chunk-FHKBR55Q.cjs.map} +1 -1
- package/dist/{chunk-QW6NCUR7.cjs → chunk-GAA222SK.cjs} +5 -5
- package/dist/{chunk-QW6NCUR7.cjs.map → chunk-GAA222SK.cjs.map} +1 -1
- package/dist/{chunk-LVIQWRC5.cjs → chunk-KRQCUVH7.cjs} +2 -2
- package/dist/chunk-KRQCUVH7.cjs.map +1 -0
- package/dist/{chunk-6RJXO2NF.cjs → chunk-KWV4VC74.cjs} +6 -6
- package/dist/{chunk-6RJXO2NF.cjs.map → chunk-KWV4VC74.cjs.map} +1 -1
- package/dist/{chunk-UD56Y6UA.cjs → chunk-L5Q5PDTA.cjs} +4 -4
- package/dist/{chunk-UD56Y6UA.cjs.map → chunk-L5Q5PDTA.cjs.map} +1 -1
- package/dist/{chunk-XAW22O2S.cjs → chunk-LCIMYEGX.cjs} +4 -4
- package/dist/{chunk-XAW22O2S.cjs.map → chunk-LCIMYEGX.cjs.map} +1 -1
- package/dist/{chunk-BCRB42SP.cjs → chunk-LYYJDQW6.cjs} +110 -970
- package/dist/chunk-LYYJDQW6.cjs.map +1 -0
- package/dist/{chunk-OE36OY64.cjs → chunk-LZQ2XZOC.cjs} +4 -4
- package/dist/{chunk-OE36OY64.cjs.map → chunk-LZQ2XZOC.cjs.map} +1 -1
- package/dist/{chunk-BTAT3MJP.cjs → chunk-MEWRE43W.cjs} +28 -28
- package/dist/{chunk-BTAT3MJP.cjs.map → chunk-MEWRE43W.cjs.map} +1 -1
- package/dist/chunk-MWHVETKN.cjs +151 -0
- package/dist/chunk-MWHVETKN.cjs.map +1 -0
- package/dist/{chunk-33GOYI3O.cjs → chunk-ONRUHYW3.cjs} +4 -4
- package/dist/{chunk-33GOYI3O.cjs.map → chunk-ONRUHYW3.cjs.map} +1 -1
- package/dist/{chunk-KP7BQIZL.cjs → chunk-ORGGDQKZ.cjs} +43 -40
- package/dist/chunk-ORGGDQKZ.cjs.map +1 -0
- package/dist/{chunk-N2OVF6SJ.cjs → chunk-OXPIJYRU.cjs} +65 -60
- package/dist/chunk-OXPIJYRU.cjs.map +1 -0
- package/dist/{chunk-2V5HW6T5.cjs → chunk-P5TQOSKA.cjs} +6 -6
- package/dist/{chunk-2V5HW6T5.cjs.map → chunk-P5TQOSKA.cjs.map} +1 -1
- package/dist/chunk-Q25CZLK6.cjs +958 -0
- package/dist/chunk-Q25CZLK6.cjs.map +1 -0
- package/dist/{chunk-ZPIZINH2.cjs → chunk-VLHBKF4P.cjs} +164 -98
- package/dist/chunk-VLHBKF4P.cjs.map +1 -0
- package/dist/{chunk-TG2GM7WJ.cjs → chunk-WCT6FT2K.cjs} +11 -7
- package/dist/chunk-WCT6FT2K.cjs.map +1 -0
- package/dist/{chunk-NPRNR54M.cjs → chunk-ZCVW63DF.cjs} +4 -4
- package/dist/{chunk-NPRNR54M.cjs.map → chunk-ZCVW63DF.cjs.map} +1 -1
- package/dist/collaboration/index.cjs +34 -9
- package/dist/collaboration/sharing/ShareControl.d.ts +15 -6
- package/dist/collaboration/sharing/ShareControl.js +9 -4
- package/dist/collaboration/sharing/ShareControl.js.map +2 -2
- package/dist/collaboration/sharing/index.d.ts +1 -0
- package/dist/collaboration/sharing/index.js +15 -1
- package/dist/collaboration/sharing/index.js.map +2 -2
- package/dist/collaboration/sharing/one-way.d.ts +41 -0
- package/dist/collaboration/sharing/one-way.js +39 -0
- package/dist/collaboration/sharing/one-way.js.map +7 -0
- package/dist/connect/index.cjs +4038 -3985
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +9 -8
- package/dist/connection/account-cluster/ConnectedAccountCluster.js +1 -1
- package/dist/connection/account-cluster/ConnectedAccountCluster.js.map +1 -1
- package/dist/connection/agents/agentsPageParts.js +6 -2
- package/dist/connection/agents/agentsPageParts.js.map +2 -2
- package/dist/connection/command/actions.js +3 -3
- package/dist/connection/command/actions.js.map +2 -2
- package/dist/connection/conversation/ConnectedConversationSettings.js +3 -6
- package/dist/connection/conversation/ConnectedConversationSettings.js.map +2 -2
- package/dist/connection/dashboards/PanelEditor.d.ts +3 -9
- package/dist/connection/dashboards/PanelEditor.js +17 -124
- package/dist/connection/dashboards/PanelEditor.js.map +2 -2
- package/dist/connection/dashboards/index.d.ts +0 -1
- package/dist/connection/dashboards/index.js +0 -6
- package/dist/connection/dashboards/index.js.map +2 -2
- package/dist/connection/dashboards/templates.d.ts +1 -1
- package/dist/connection/dashboards/templates.js.map +1 -1
- package/dist/connection/databases/ConnectedDatabasesPage.js +46 -20
- package/dist/connection/databases/ConnectedDatabasesPage.js.map +2 -2
- package/dist/connection/databases/DatabaseViewsMenu.d.ts +5 -1
- package/dist/connection/databases/DatabaseViewsMenu.js +16 -21
- package/dist/connection/databases/DatabaseViewsMenu.js.map +2 -2
- package/dist/connection/files/bulk/ConnectedFilesBulkActions.d.ts +4 -3
- package/dist/connection/files/bulk/ConnectedFilesBulkActions.js +12 -18
- package/dist/connection/files/bulk/ConnectedFilesBulkActions.js.map +2 -2
- package/dist/connection/files/bulk/useDocumentBulkActions.d.ts +2 -3
- package/dist/connection/files/bulk/useDocumentBulkActions.js +6 -15
- package/dist/connection/files/bulk/useDocumentBulkActions.js.map +2 -2
- package/dist/connection/files/grid/cells.d.ts +7 -3
- package/dist/connection/files/grid/cells.js +8 -5
- package/dist/connection/files/grid/cells.js.map +2 -2
- package/dist/connection/files/grid/documentCellRenderers.d.ts +4 -1
- package/dist/connection/files/grid/documentCellRenderers.js +3 -2
- package/dist/connection/files/grid/documentCellRenderers.js.map +2 -2
- package/dist/connection/files/grid/documentColumns.d.ts +3 -3
- package/dist/connection/files/grid/documentColumns.js +4 -2
- package/dist/connection/files/grid/documentColumns.js.map +2 -2
- package/dist/connection/files/grid/useDocumentTable.js +10 -5
- package/dist/connection/files/grid/useDocumentTable.js.map +2 -2
- package/dist/connection/files/index.d.ts +1 -2
- package/dist/connection/files/index.js +4 -12
- package/dist/connection/files/index.js.map +2 -2
- package/dist/connection/files/review/useAiReviewLiveUpdates.js +13 -2
- package/dist/connection/files/review/useAiReviewLiveUpdates.js.map +2 -2
- package/dist/connection/files/views/ViewSelector.js +9 -21
- package/dist/connection/files/views/ViewSelector.js.map +2 -2
- package/dist/connection/files/views/useTableViews.d.ts +23 -15
- package/dist/connection/files/views/useTableViews.js +61 -35
- package/dist/connection/files/views/useTableViews.js.map +2 -2
- package/dist/connection/files/views/useViewWrites.d.ts +6 -0
- package/dist/connection/files/views/useViewWrites.js +64 -0
- package/dist/connection/files/views/useViewWrites.js.map +7 -0
- package/dist/connection/pages/BlockEditor.d.ts +32 -0
- package/dist/connection/pages/BlockEditor.js +175 -0
- package/dist/connection/pages/BlockEditor.js.map +7 -0
- package/dist/connection/pages/ConnectedPagesPage.d.ts +31 -0
- package/dist/connection/pages/ConnectedPagesPage.js +426 -0
- package/dist/connection/pages/ConnectedPagesPage.js.map +7 -0
- package/dist/connection/pages/DocumentBlocks.d.ts +46 -0
- package/dist/connection/pages/DocumentBlocks.js +200 -0
- package/dist/connection/pages/DocumentBlocks.js.map +7 -0
- package/dist/connection/pages/DocumentsPicker.d.ts +26 -0
- package/dist/connection/pages/DocumentsPicker.js +133 -0
- package/dist/connection/pages/DocumentsPicker.js.map +7 -0
- package/dist/connection/pages/PageBlockView.d.ts +22 -0
- package/dist/connection/pages/PageBlockView.js +82 -0
- package/dist/connection/pages/PageBlockView.js.map +7 -0
- package/dist/connection/pages/PageGrid.d.ts +26 -0
- package/dist/connection/pages/PageGrid.js +50 -0
- package/dist/connection/pages/PageGrid.js.map +7 -0
- package/dist/connection/pages/PageView.d.ts +24 -0
- package/dist/connection/pages/PageView.js +93 -0
- package/dist/connection/pages/PageView.js.map +7 -0
- package/dist/connection/pages/PagesList.d.ts +14 -0
- package/dist/connection/pages/PagesList.js +143 -0
- package/dist/connection/pages/PagesList.js.map +7 -0
- package/dist/connection/pages/TableViewBlock.d.ts +24 -0
- package/dist/connection/pages/TableViewBlock.js +82 -0
- package/dist/connection/pages/TableViewBlock.js.map +7 -0
- package/dist/connection/pages/ViewPicker.d.ts +21 -0
- package/dist/connection/pages/ViewPicker.js +56 -0
- package/dist/connection/pages/ViewPicker.js.map +7 -0
- package/dist/connection/pages/index.d.ts +9 -0
- package/dist/connection/pages/index.js +49 -0
- package/dist/connection/pages/index.js.map +7 -0
- package/dist/connection/pages/labels.d.ts +61 -0
- package/dist/connection/pages/labels.js +61 -0
- package/dist/connection/pages/labels.js.map +7 -0
- package/dist/connection/settings-page/featuresSection.js +2 -2
- package/dist/connection/settings-page/featuresSection.js.map +1 -1
- package/dist/connection/sharing/ResourceShareForm.js +1 -1
- package/dist/connection/sharing/ResourceShareForm.js.map +2 -2
- package/dist/connection/threads-page/ConnectedThreadsPage.js +10 -8
- package/dist/connection/threads-page/ConnectedThreadsPage.js.map +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js +11 -6
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/dashboards/ConditionsEditor.d.ts +54 -0
- package/dist/dashboards/ConditionsEditor.js +156 -0
- package/dist/dashboards/ConditionsEditor.js.map +7 -0
- package/dist/dashboards/index.cjs +33 -521
- package/dist/dashboards/index.cjs.map +1 -1
- package/dist/dashboards/index.d.ts +3 -2
- package/dist/dashboards/index.js +13 -1
- package/dist/dashboards/index.js.map +2 -2
- package/dist/databases/DatabaseFilterMenu.d.ts +18 -0
- package/dist/databases/DatabaseFilterMenu.js +95 -0
- package/dist/databases/DatabaseFilterMenu.js.map +7 -0
- package/dist/databases/DatabaseTable.js +1 -1
- package/dist/databases/DatabaseTable.js.map +1 -1
- package/dist/databases/DatabaseToolbar.d.ts +3 -1
- package/dist/databases/DatabaseToolbar.js +2 -0
- package/dist/databases/DatabaseToolbar.js.map +2 -2
- package/dist/databases/index.cjs +85 -71
- package/dist/databases/index.d.ts +1 -0
- package/dist/databases/index.js +8 -0
- package/dist/databases/index.js.map +2 -2
- package/dist/embed/index.cjs +14 -13
- package/dist/facts/index.cjs +43 -43
- package/dist/files/bulk/BulkActionsBar.d.ts +8 -5
- package/dist/files/bulk/BulkActionsBar.js +6 -7
- package/dist/files/bulk/BulkActionsBar.js.map +2 -2
- package/dist/files/cells/DocumentNameCell.d.ts +2 -1
- package/dist/files/cells/DocumentNameCell.js +1 -1
- package/dist/files/cells/DocumentNameCell.js.map +2 -2
- package/dist/files/index.cjs +237 -224
- package/dist/files/index.d.ts +1 -1
- package/dist/files/index.js +0 -2
- package/dist/files/index.js.map +2 -2
- package/dist/files/permissions.d.ts +4 -3
- package/dist/files/permissions.js +6 -3
- package/dist/files/permissions.js.map +2 -2
- package/dist/files/views/ViewSelectorMenu.d.ts +24 -5
- package/dist/files/views/ViewSelectorMenu.js +78 -51
- package/dist/files/views/ViewSelectorMenu.js.map +2 -2
- package/dist/files/views/gridViews.d.ts +34 -1
- package/dist/files/views/gridViews.js +28 -0
- package/dist/files/views/gridViews.js.map +2 -2
- package/dist/files/views/index.d.ts +2 -2
- package/dist/files/views/index.js +8 -0
- package/dist/files/views/index.js.map +2 -2
- package/dist/files/views/useGridViews.d.ts +8 -4
- package/dist/files/views/useGridViews.js +42 -11
- package/dist/files/views/useGridViews.js.map +2 -2
- package/dist/files/visibility.d.ts +1 -16
- package/dist/files/visibility.js +6 -23
- package/dist/files/visibility.js.map +2 -2
- package/dist/index.cjs +454 -429
- package/dist/index.cjs.map +1 -1
- package/dist/pages/index.cjs +1363 -0
- package/dist/pages/index.cjs.map +1 -0
- package/dist/pages/index.d.ts +14 -0
- package/dist/pages/index.js +3 -0
- package/dist/pages/index.js.map +7 -0
- package/dist/settings/ConversationSettingsParts.d.ts +4 -6
- package/dist/settings/ConversationSettingsParts.js +15 -10
- package/dist/settings/ConversationSettingsParts.js.map +2 -2
- package/dist/settings/index.cjs +145 -144
- package/dist/studio/index.cjs +8 -7
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/widgets.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +23 -22
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +10 -5
- package/dist/DocumentReviewCard-ENCPTGJE.cjs.map +0 -1
- package/dist/FilesViewerDialog-FFPW7TIK.cjs.map +0 -1
- package/dist/WorkspaceTableView-2RH33X3U.cjs.map +0 -1
- package/dist/ai-YX3OAC4F.cjs.map +0 -1
- package/dist/chunk-32HVYK4Q.cjs.map +0 -1
- package/dist/chunk-6TU4YLFW.cjs.map +0 -1
- package/dist/chunk-BCRB42SP.cjs.map +0 -1
- package/dist/chunk-KP7BQIZL.cjs.map +0 -1
- package/dist/chunk-LVIQWRC5.cjs.map +0 -1
- package/dist/chunk-N2OVF6SJ.cjs.map +0 -1
- package/dist/chunk-N3H3YAKY.cjs.map +0 -1
- package/dist/chunk-TG2GM7WJ.cjs.map +0 -1
- package/dist/chunk-UOI6JJPG.cjs.map +0 -1
- package/dist/chunk-ZPIZINH2.cjs.map +0 -1
- package/dist/connection/dashboards/ConnectedDashboardsPage.d.ts +0 -69
- package/dist/connection/dashboards/ConnectedDashboardsPage.js +0 -554
- package/dist/connection/dashboards/ConnectedDashboardsPage.js.map +0 -7
- package/dist/connection/files/views/tableViews.d.ts +0 -19
- package/dist/connection/files/views/tableViews.js +0 -36
- package/dist/connection/files/views/tableViews.js.map +0 -7
package/dist/facts/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkFHKBR55Q_cjs = require('../chunk-FHKBR55Q.cjs');
|
|
5
5
|
var chunkTJY7XPDE_cjs = require('../chunk-TJY7XPDE.cjs');
|
|
6
6
|
var chunkDDWLMYRO_cjs = require('../chunk-DDWLMYRO.cjs');
|
|
7
7
|
require('../chunk-SNUBQMIS.cjs');
|
|
8
|
-
require('../chunk-ADMNU2CR.cjs');
|
|
9
8
|
require('../chunk-ZM6B5WJW.cjs');
|
|
9
|
+
require('../chunk-ADMNU2CR.cjs');
|
|
10
10
|
var chunkRC25WMVB_cjs = require('../chunk-RC25WMVB.cjs');
|
|
11
11
|
require('../chunk-RL2HI6NP.cjs');
|
|
12
12
|
require('../chunk-6UZC4XVV.cjs');
|
|
@@ -42,167 +42,167 @@ function toFactRows(records) {
|
|
|
42
42
|
|
|
43
43
|
Object.defineProperty(exports, "DEFAULT_FACTS_BULK_BAR_LABELS", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACTS_BULK_BAR_LABELS; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "DEFAULT_FACTS_EMPTY_STATE_LABELS", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACTS_EMPTY_STATE_LABELS; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "DEFAULT_FACTS_FIELDS_BUTTON_LABELS", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACTS_FIELDS_BUTTON_LABELS; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "DEFAULT_FACTS_TOOLBAR_LABELS", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACTS_TOOLBAR_LABELS; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "DEFAULT_FACTS_VIEW_TOGGLE_LABELS", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACTS_VIEW_TOGGLE_LABELS; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "DEFAULT_FACT_COLUMN_LABELS", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACT_COLUMN_LABELS; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "DEFAULT_FACT_COLUMN_ORDER", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACT_COLUMN_ORDER; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "DEFAULT_FACT_COMPOSER_LABELS", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACT_COMPOSER_LABELS; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "DEFAULT_FACT_DATE_INPUT_LABELS", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACT_DATE_INPUT_LABELS; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "DEFAULT_FACT_LABELS_CELL_LABELS", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACT_LABELS_CELL_LABELS; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "DEFAULT_FACT_ROW_ACTIONS_LABELS", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACT_ROW_ACTIONS_LABELS; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "DEFAULT_FACT_SEARCH_BAR_LABELS", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACT_SEARCH_BAR_LABELS; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "DEFAULT_FACT_SEARCH_RESULT_LABELS", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACT_SEARCH_RESULT_LABELS; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "DEFAULT_FACT_SOURCES_ROW_LABELS", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACT_SOURCES_ROW_LABELS; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "DEFAULT_FACT_SOURCE_GROUP_LABELS", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACT_SOURCE_GROUP_LABELS; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "DEFAULT_FACT_TIMELINE_LABELS", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkFHKBR55Q_cjs.DEFAULT_FACT_TIMELINE_LABELS; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "FactComposer", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkFHKBR55Q_cjs.FactComposer; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "FactDateInput", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkFHKBR55Q_cjs.FactDateInput; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "FactFieldRow", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkFHKBR55Q_cjs.FactFieldRow; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "FactLabelsCell", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkFHKBR55Q_cjs.FactLabelsCell; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "FactRowActions", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkFHKBR55Q_cjs.FactRowActions; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "FactSearchBar", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkFHKBR55Q_cjs.FactSearchBar; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "FactSearchNoMatches", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkFHKBR55Q_cjs.FactSearchNoMatches; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "FactSearchPending", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkFHKBR55Q_cjs.FactSearchPending; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "FactSearchResult", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkFHKBR55Q_cjs.FactSearchResult; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "FactSearchTotals", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkFHKBR55Q_cjs.FactSearchTotals; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "FactSourceGroup", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkFHKBR55Q_cjs.FactSourceGroup; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "FactSourcesRow", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkFHKBR55Q_cjs.FactSourcesRow; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "FactsBulkBar", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkFHKBR55Q_cjs.FactsBulkBar; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "FactsCalendar", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkFHKBR55Q_cjs.FactsCalendar; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "FactsEmptyState", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkFHKBR55Q_cjs.FactsEmptyState; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "FactsFieldsButton", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkFHKBR55Q_cjs.FactsFieldsButton; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "FactsGanttPane", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkFHKBR55Q_cjs.FactsGanttPane; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "FactsLoadError", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkFHKBR55Q_cjs.FactsLoadError; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "FactsLoading", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkFHKBR55Q_cjs.FactsLoading; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "FactsToolbar", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkFHKBR55Q_cjs.FactsToolbar; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "FactsViewToggle", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkFHKBR55Q_cjs.FactsViewToggle; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "ISO_DATE_FILTER_PARAMS", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkFHKBR55Q_cjs.ISO_DATE_FILTER_PARAMS; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "createFactColumns", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkFHKBR55Q_cjs.createFactColumns; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "enableFactTableColumnResize", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkFHKBR55Q_cjs.enableFactTableColumnResize; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "sourceDocCount", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkFHKBR55Q_cjs.sourceDocCount; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "EMPTY_FACT_DATE_FIELDS", {
|
|
208
208
|
enumerable: true,
|
|
@@ -9,7 +9,6 @@ export interface BulkActionsLabels {
|
|
|
9
9
|
label: string;
|
|
10
10
|
labelTooltip: string;
|
|
11
11
|
share: string;
|
|
12
|
-
makePrivate: string;
|
|
13
12
|
more: string;
|
|
14
13
|
folder: string;
|
|
15
14
|
export: string;
|
|
@@ -60,11 +59,15 @@ export interface BulkActionsBarProps {
|
|
|
60
59
|
/** All selected docs are already available offline: the item removes them instead. */
|
|
61
60
|
isAllOffline?: boolean;
|
|
62
61
|
isOfflinePending?: boolean;
|
|
63
|
-
|
|
62
|
+
/** Delete the selection. Absent: not offered (e.g. a shared document is an owner's to delete). */
|
|
63
|
+
onDelete?: () => void;
|
|
64
64
|
/** Visibility of the selection (all shared, none shared, or a mix). */
|
|
65
65
|
shareState: ShareState;
|
|
66
|
-
/**
|
|
67
|
-
|
|
66
|
+
/**
|
|
67
|
+
* Share the selection with the workspace (the host asks first). Sharing is one-way: a fully
|
|
68
|
+
* shared selection offers nothing.
|
|
69
|
+
*/
|
|
70
|
+
onShare: () => void;
|
|
68
71
|
/** Tooltip of the share button (what a click does). */
|
|
69
72
|
shareTooltip?: string;
|
|
70
73
|
/** Labels of the share control (Share / Shared / Private). */
|
|
@@ -81,4 +84,4 @@ export interface BulkActionsBarProps {
|
|
|
81
84
|
* inline (Chat, AI Annotate, Label, Shared); the rest fold into a "More" menu to keep the bar
|
|
82
85
|
* on one row. Data-free: every action is a callback, the visibility toggle is a slot.
|
|
83
86
|
*/
|
|
84
|
-
export declare function BulkActionsBar({ count, onClear, onReview, isMember, isOnline, onChat, onAnnotate, onLabel, onMoveToFolder, onExport, onProduce, onReprocess, reprocessLabel, onToggleOffline, isAllOffline, isOfflinePending, onDelete, shareState,
|
|
87
|
+
export declare function BulkActionsBar({ count, onClear, onReview, isMember, isOnline, onChat, onAnnotate, onLabel, onMoveToFolder, onExport, onProduce, onReprocess, reprocessLabel, onToggleOffline, isAllOffline, isOfflinePending, onDelete, shareState, onShare, shareTooltip, shareLabels, className, labels, testIds, selectionBar, }: BulkActionsBarProps): import("react").JSX.Element;
|
|
@@ -34,7 +34,6 @@ const DEFAULT_BULK_ACTIONS_LABELS = {
|
|
|
34
34
|
label: "Label",
|
|
35
35
|
labelTooltip: "Add or remove labels from selected documents",
|
|
36
36
|
share: "Share",
|
|
37
|
-
makePrivate: "Make private",
|
|
38
37
|
more: "More",
|
|
39
38
|
folder: "Folder",
|
|
40
39
|
export: "Export",
|
|
@@ -63,7 +62,7 @@ function BulkActionsBar({
|
|
|
63
62
|
isOfflinePending,
|
|
64
63
|
onDelete,
|
|
65
64
|
shareState,
|
|
66
|
-
|
|
65
|
+
onShare,
|
|
67
66
|
shareTooltip,
|
|
68
67
|
shareLabels,
|
|
69
68
|
className,
|
|
@@ -141,7 +140,7 @@ function BulkActionsBar({
|
|
|
141
140
|
ShareControl,
|
|
142
141
|
{
|
|
143
142
|
state: shareState,
|
|
144
|
-
|
|
143
|
+
onShare,
|
|
145
144
|
disabled: noSelection,
|
|
146
145
|
tooltip: shareTooltip,
|
|
147
146
|
variant: "ghost",
|
|
@@ -185,12 +184,12 @@ function BulkActionsBar({
|
|
|
185
184
|
/* @__PURE__ */ jsxs(
|
|
186
185
|
DropdownMenuItem,
|
|
187
186
|
{
|
|
188
|
-
onClick:
|
|
189
|
-
disabled: noSelection,
|
|
187
|
+
onClick: onShare,
|
|
188
|
+
disabled: noSelection || shareState === "shared",
|
|
190
189
|
"data-testid": ids.share,
|
|
191
190
|
children: [
|
|
192
191
|
/* @__PURE__ */ jsx(Share2, { className: "mr-2 h-4 w-4" }),
|
|
193
|
-
|
|
192
|
+
l.share
|
|
194
193
|
]
|
|
195
194
|
}
|
|
196
195
|
),
|
|
@@ -258,7 +257,7 @@ function BulkActionsBar({
|
|
|
258
257
|
]
|
|
259
258
|
}
|
|
260
259
|
),
|
|
261
|
-
isMember && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
260
|
+
isMember && onDelete && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
262
261
|
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
263
262
|
/* @__PURE__ */ jsxs(
|
|
264
263
|
DropdownMenuItem,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/files/bulk/BulkActionsBar.tsx"],
|
|
4
|
-
"sourcesContent": ["import {\n ArrowDownToLine,\n ArrowRightFromLine,\n FolderInput,\n Hash,\n MessagesSquare,\n MoreHorizontal,\n NotebookPen,\n RefreshCw,\n Share2,\n Tags,\n Trash2,\n} from 'lucide-react'\nimport {\n Button,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@arbidocs/react/ui'\nimport { SelectionBar, SelectionBarAction, type SelectionBarProps } from '../SelectionBar'\nimport {\n ShareControl,\n type ShareControlLabels,\n type ShareState,\n} from '../../collaboration/sharing/ShareControl'\nimport { testIdOr } from '../../chat/test-id'\n\n/** Every fixed string of the bulk bar. Pass a partial `labels` to translate or reword. */\nexport interface BulkActionsLabels {\n chat: string\n chatTooltip: string\n annotate: string\n annotateTooltip: string\n label: string\n labelTooltip: string\n share: string\n makePrivate: string\n more: string\n folder: string\n export: string\n production: string\n reprocess: string\n removeOffline: string\n useOffline: string\n delete: string\n}\n\nexport const DEFAULT_BULK_ACTIONS_LABELS: BulkActionsLabels = {\n chat: 'Chat',\n chatTooltip: 'Start a new chat with the selected document(s)',\n annotate: 'AI Annotate',\n annotateTooltip: 'Add or remove annotations from selected documents',\n label: 'Label',\n labelTooltip: 'Add or remove labels from selected documents',\n share: 'Share',\n makePrivate: 'Make private',\n more: 'More',\n folder: 'Folder',\n export: 'Export',\n production: 'Production set',\n reprocess: 'Reprocess',\n removeOffline: 'Remove offline',\n useOffline: 'Use Offline',\n delete: 'Delete',\n}\n\nexport interface BulkActionsTestIds {\n chat: string\n annotate: string\n label: string\n more: string\n moveFolder: string\n share: string\n export: string\n production: string\n reprocess: string\n offline: string\n delete: string\n}\n\nexport interface BulkActionsBarProps {\n /** Number of selected documents; the bar is hidden at 0. */\n count: number\n onClear: () => void\n onReview?: () => void\n /** Members get annotate / label / share / folder / export / reprocess / delete. */\n isMember: boolean\n /** Online-only actions (export, reprocess, enabling offline) are disabled while offline. */\n isOnline: boolean\n /** Chat about the selection. Absent: not offered. */\n onChat?: () => void\n /** Fill AI fields on the selection. Absent: not offered. */\n onAnnotate?: () => void\n /** Label the selection. Absent: not offered. */\n onLabel?: () => void\n onMoveToFolder: () => void\n onExport: () => void\n /** Opens the production-set (Bates numbering) flow; the menu item is hidden when omitted. */\n onProduce?: () => void\n onReprocess: () => void\n /** Label of the reprocess item (the app adds the \"(max N)\" cap hint). */\n reprocessLabel?: string\n /** Keep the selection on this device (or stop). Absent: not offered. */\n onToggleOffline?: () => void\n /** All selected docs are already available offline: the item removes them instead. */\n isAllOffline?: boolean\n isOfflinePending?: boolean\n onDelete: () => void\n /** Visibility of the selection (all shared, none shared, or a mix). */\n shareState: ShareState\n /** `true` = share with the workspace, `false` = make private. */\n onToggleShare: (shouldShare: boolean) => void\n /** Tooltip of the share button (what a click does). */\n shareTooltip?: string\n /** Labels of the share control (Share / Shared / Private). */\n shareLabels?: Partial<ShareControlLabels>\n className?: string\n labels?: Partial<BulkActionsLabels>\n /** Overrides for the control test ids (defaults keep the current ids). */\n testIds?: Partial<BulkActionsTestIds>\n /** Labels / test ids of the underlying selection bar (count, clear, review). */\n selectionBar?: Pick<SelectionBarProps, 'labels' | 'testIds'>\n}\n\n/**\n * Bulk actions for selected documents, composed on the `SelectionBar`. Primary actions stay\n * inline (Chat, AI Annotate, Label, Shared); the rest fold into a \"More\" menu to keep the bar\n * on one row. Data-free: every action is a callback, the visibility toggle is a slot.\n */\nexport function BulkActionsBar({\n count,\n onClear,\n onReview,\n isMember,\n isOnline,\n onChat,\n onAnnotate,\n onLabel,\n onMoveToFolder,\n onExport,\n onProduce,\n onReprocess,\n reprocessLabel,\n onToggleOffline,\n isAllOffline,\n isOfflinePending,\n onDelete,\n shareState,\n onToggleShare,\n shareTooltip,\n shareLabels,\n className,\n labels,\n testIds,\n selectionBar,\n}: BulkActionsBarProps) {\n const l = { ...DEFAULT_BULK_ACTIONS_LABELS, ...labels }\n const ids = {\n chat: testIdOr(testIds?.chat, { testId: 'bulk-chat-button' }),\n annotate: testIdOr(testIds?.annotate, { testId: 'bulk-annotate-button' }),\n label: testIdOr(testIds?.label, { testId: 'bulk-label-button' }),\n more: testIdOr(testIds?.more, { testId: 'bulk-more-button' }),\n moveFolder: testIdOr(testIds?.moveFolder, { testId: 'bulk-move-folder-button' }),\n share: testIdOr(testIds?.share, { testId: 'bulk-shared-toggle' }),\n export: testIdOr(testIds?.export, { testId: 'bulk-export-button' }),\n production: testIdOr(testIds?.production, { testId: 'bulk-production-button' }),\n reprocess: testIdOr(testIds?.reprocess, { testId: 'bulk-reprocess-button' }),\n offline: testIdOr(testIds?.offline, { testId: 'bulk-offline-button' }),\n delete: testIdOr(testIds?.delete, { testId: 'bulk-delete-button' }),\n }\n const noSelection = count === 0\n const divider = <div className=\"h-5 w-px flex-shrink-0 bg-border\" />\n\n return (\n <SelectionBar\n count={count}\n onClear={onClear}\n onReview={onReview}\n className={className}\n {...selectionBar}\n >\n {(compactBar, isNarrow) => {\n // Phone width keeps the first two actions labelled; only the desktop bar collapses to icons.\n const isCompact = compactBar && !isNarrow\n return (\n <>\n {onChat && (\n <SelectionBarAction\n icon={MessagesSquare}\n label={l.chat}\n tooltip={l.chatTooltip}\n onClick={onChat}\n disabled={noSelection}\n isCompact={isCompact}\n variant=\"secondary\"\n testId={ids.chat}\n />\n )}\n\n {isMember && onAnnotate && (\n <SelectionBarAction\n icon={NotebookPen}\n label={l.annotate}\n onClick={onAnnotate}\n disabled={noSelection}\n tooltip={l.annotateTooltip}\n isCompact={isCompact}\n testId={ids.annotate}\n />\n )}\n\n {isMember && !isNarrow && (\n <>\n {onLabel && (\n <SelectionBarAction\n icon={Tags}\n label={l.label}\n onClick={onLabel}\n disabled={noSelection}\n tooltip={l.labelTooltip}\n isCompact={isCompact}\n testId={ids.label}\n />\n )}\n {divider}\n <ShareControl\n state={shareState}\n onToggle={onToggleShare}\n disabled={noSelection}\n tooltip={shareTooltip}\n variant=\"ghost\"\n compact={isCompact}\n showState={!isCompact}\n labels={{ share: l.share, ...shareLabels }}\n testId={ids.share}\n />\n </>\n )}\n\n {!isNarrow && divider}\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button\n variant=\"ghost\"\n size=\"sm\"\n className=\"h-8 gap-1.5 px-2 pointer-coarse:h-11\"\n // Icon-only in the compact bar: it still needs a name (as SelectionBarAction does).\n aria-label={isCompact ? l.more : undefined}\n data-testid={ids.more}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n {!isCompact && <span className=\"text-sm\">{l.more}</span>}\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\">\n {/* Phone width: the secondary inline actions fold in here so the bar fits one row. */}\n {isMember && isNarrow && (\n <>\n {onLabel && (\n <DropdownMenuItem\n onClick={onLabel}\n disabled={noSelection}\n data-testid={ids.label}\n >\n <Tags className=\"mr-2 h-4 w-4\" />\n {l.label}\n </DropdownMenuItem>\n )}\n <DropdownMenuItem\n onClick={() => onToggleShare(shareState !== 'shared')}\n disabled={noSelection}\n data-testid={ids.share}\n >\n <Share2 className=\"mr-2 h-4 w-4\" />\n {shareState === 'shared' ? l.makePrivate : l.share}\n </DropdownMenuItem>\n <DropdownMenuSeparator />\n </>\n )}\n {isMember && (\n <>\n <DropdownMenuItem\n onClick={onMoveToFolder}\n disabled={noSelection}\n data-testid={ids.moveFolder}\n >\n <FolderInput className=\"mr-2 h-4 w-4\" />\n {l.folder}\n </DropdownMenuItem>\n <DropdownMenuItem\n onClick={onExport}\n disabled={noSelection || !isOnline}\n data-testid={ids.export}\n >\n <ArrowRightFromLine className=\"mr-2 h-4 w-4\" />\n {l.export}\n </DropdownMenuItem>\n {onProduce && (\n <DropdownMenuItem\n onClick={onProduce}\n disabled={noSelection || !isOnline}\n data-testid={ids.production}\n >\n <Hash className=\"mr-2 h-4 w-4\" />\n {l.production}\n </DropdownMenuItem>\n )}\n <DropdownMenuItem\n onClick={onReprocess}\n disabled={noSelection || !isOnline}\n data-testid={ids.reprocess}\n >\n <RefreshCw className=\"mr-2 h-4 w-4\" />\n {reprocessLabel ?? l.reprocess}\n </DropdownMenuItem>\n </>\n )}\n {onToggleOffline && (\n <DropdownMenuItem\n onClick={onToggleOffline}\n disabled={noSelection || isOfflinePending || (!isAllOffline && !isOnline)}\n data-testid={ids.offline}\n >\n <ArrowDownToLine className=\"mr-2 h-4 w-4\" />\n {isAllOffline ? l.removeOffline : l.useOffline}\n </DropdownMenuItem>\n )}\n {isMember && (\n <>\n <DropdownMenuSeparator />\n <DropdownMenuItem\n onClick={onDelete}\n disabled={noSelection}\n className=\"text-red-text focus:text-red-text\"\n data-testid={ids.delete}\n >\n <Trash2 className=\"mr-2 h-4 w-4\" />\n {l.delete}\n </DropdownMenuItem>\n </>\n )}\n </DropdownMenuContent>\n </DropdownMenu>\n </>\n )\n }}\n </SelectionBar>\n )\n}\n"],
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import {\n ArrowDownToLine,\n ArrowRightFromLine,\n FolderInput,\n Hash,\n MessagesSquare,\n MoreHorizontal,\n NotebookPen,\n RefreshCw,\n Share2,\n Tags,\n Trash2,\n} from 'lucide-react'\nimport {\n Button,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@arbidocs/react/ui'\nimport { SelectionBar, SelectionBarAction, type SelectionBarProps } from '../SelectionBar'\nimport {\n ShareControl,\n type ShareControlLabels,\n type ShareState,\n} from '../../collaboration/sharing/ShareControl'\nimport { testIdOr } from '../../chat/test-id'\n\n/** Every fixed string of the bulk bar. Pass a partial `labels` to translate or reword. */\nexport interface BulkActionsLabels {\n chat: string\n chatTooltip: string\n annotate: string\n annotateTooltip: string\n label: string\n labelTooltip: string\n share: string\n more: string\n folder: string\n export: string\n production: string\n reprocess: string\n removeOffline: string\n useOffline: string\n delete: string\n}\n\nexport const DEFAULT_BULK_ACTIONS_LABELS: BulkActionsLabels = {\n chat: 'Chat',\n chatTooltip: 'Start a new chat with the selected document(s)',\n annotate: 'AI Annotate',\n annotateTooltip: 'Add or remove annotations from selected documents',\n label: 'Label',\n labelTooltip: 'Add or remove labels from selected documents',\n share: 'Share',\n more: 'More',\n folder: 'Folder',\n export: 'Export',\n production: 'Production set',\n reprocess: 'Reprocess',\n removeOffline: 'Remove offline',\n useOffline: 'Use Offline',\n delete: 'Delete',\n}\n\nexport interface BulkActionsTestIds {\n chat: string\n annotate: string\n label: string\n more: string\n moveFolder: string\n share: string\n export: string\n production: string\n reprocess: string\n offline: string\n delete: string\n}\n\nexport interface BulkActionsBarProps {\n /** Number of selected documents; the bar is hidden at 0. */\n count: number\n onClear: () => void\n onReview?: () => void\n /** Members get annotate / label / share / folder / export / reprocess / delete. */\n isMember: boolean\n /** Online-only actions (export, reprocess, enabling offline) are disabled while offline. */\n isOnline: boolean\n /** Chat about the selection. Absent: not offered. */\n onChat?: () => void\n /** Fill AI fields on the selection. Absent: not offered. */\n onAnnotate?: () => void\n /** Label the selection. Absent: not offered. */\n onLabel?: () => void\n onMoveToFolder: () => void\n onExport: () => void\n /** Opens the production-set (Bates numbering) flow; the menu item is hidden when omitted. */\n onProduce?: () => void\n onReprocess: () => void\n /** Label of the reprocess item (the app adds the \"(max N)\" cap hint). */\n reprocessLabel?: string\n /** Keep the selection on this device (or stop). Absent: not offered. */\n onToggleOffline?: () => void\n /** All selected docs are already available offline: the item removes them instead. */\n isAllOffline?: boolean\n isOfflinePending?: boolean\n /** Delete the selection. Absent: not offered (e.g. a shared document is an owner's to delete). */\n onDelete?: () => void\n /** Visibility of the selection (all shared, none shared, or a mix). */\n shareState: ShareState\n /**\n * Share the selection with the workspace (the host asks first). Sharing is one-way: a fully\n * shared selection offers nothing.\n */\n onShare: () => void\n /** Tooltip of the share button (what a click does). */\n shareTooltip?: string\n /** Labels of the share control (Share / Shared / Private). */\n shareLabels?: Partial<ShareControlLabels>\n className?: string\n labels?: Partial<BulkActionsLabels>\n /** Overrides for the control test ids (defaults keep the current ids). */\n testIds?: Partial<BulkActionsTestIds>\n /** Labels / test ids of the underlying selection bar (count, clear, review). */\n selectionBar?: Pick<SelectionBarProps, 'labels' | 'testIds'>\n}\n\n/**\n * Bulk actions for selected documents, composed on the `SelectionBar`. Primary actions stay\n * inline (Chat, AI Annotate, Label, Shared); the rest fold into a \"More\" menu to keep the bar\n * on one row. Data-free: every action is a callback, the visibility toggle is a slot.\n */\nexport function BulkActionsBar({\n count,\n onClear,\n onReview,\n isMember,\n isOnline,\n onChat,\n onAnnotate,\n onLabel,\n onMoveToFolder,\n onExport,\n onProduce,\n onReprocess,\n reprocessLabel,\n onToggleOffline,\n isAllOffline,\n isOfflinePending,\n onDelete,\n shareState,\n onShare,\n shareTooltip,\n shareLabels,\n className,\n labels,\n testIds,\n selectionBar,\n}: BulkActionsBarProps) {\n const l = { ...DEFAULT_BULK_ACTIONS_LABELS, ...labels }\n const ids = {\n chat: testIdOr(testIds?.chat, { testId: 'bulk-chat-button' }),\n annotate: testIdOr(testIds?.annotate, { testId: 'bulk-annotate-button' }),\n label: testIdOr(testIds?.label, { testId: 'bulk-label-button' }),\n more: testIdOr(testIds?.more, { testId: 'bulk-more-button' }),\n moveFolder: testIdOr(testIds?.moveFolder, { testId: 'bulk-move-folder-button' }),\n share: testIdOr(testIds?.share, { testId: 'bulk-shared-toggle' }),\n export: testIdOr(testIds?.export, { testId: 'bulk-export-button' }),\n production: testIdOr(testIds?.production, { testId: 'bulk-production-button' }),\n reprocess: testIdOr(testIds?.reprocess, { testId: 'bulk-reprocess-button' }),\n offline: testIdOr(testIds?.offline, { testId: 'bulk-offline-button' }),\n delete: testIdOr(testIds?.delete, { testId: 'bulk-delete-button' }),\n }\n const noSelection = count === 0\n const divider = <div className=\"h-5 w-px flex-shrink-0 bg-border\" />\n\n return (\n <SelectionBar\n count={count}\n onClear={onClear}\n onReview={onReview}\n className={className}\n {...selectionBar}\n >\n {(compactBar, isNarrow) => {\n // Phone width keeps the first two actions labelled; only the desktop bar collapses to icons.\n const isCompact = compactBar && !isNarrow\n return (\n <>\n {onChat && (\n <SelectionBarAction\n icon={MessagesSquare}\n label={l.chat}\n tooltip={l.chatTooltip}\n onClick={onChat}\n disabled={noSelection}\n isCompact={isCompact}\n variant=\"secondary\"\n testId={ids.chat}\n />\n )}\n\n {isMember && onAnnotate && (\n <SelectionBarAction\n icon={NotebookPen}\n label={l.annotate}\n onClick={onAnnotate}\n disabled={noSelection}\n tooltip={l.annotateTooltip}\n isCompact={isCompact}\n testId={ids.annotate}\n />\n )}\n\n {isMember && !isNarrow && (\n <>\n {onLabel && (\n <SelectionBarAction\n icon={Tags}\n label={l.label}\n onClick={onLabel}\n disabled={noSelection}\n tooltip={l.labelTooltip}\n isCompact={isCompact}\n testId={ids.label}\n />\n )}\n {divider}\n <ShareControl\n state={shareState}\n onShare={onShare}\n disabled={noSelection}\n tooltip={shareTooltip}\n variant=\"ghost\"\n compact={isCompact}\n showState={!isCompact}\n labels={{ share: l.share, ...shareLabels }}\n testId={ids.share}\n />\n </>\n )}\n\n {!isNarrow && divider}\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button\n variant=\"ghost\"\n size=\"sm\"\n className=\"h-8 gap-1.5 px-2 pointer-coarse:h-11\"\n // Icon-only in the compact bar: it still needs a name (as SelectionBarAction does).\n aria-label={isCompact ? l.more : undefined}\n data-testid={ids.more}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n {!isCompact && <span className=\"text-sm\">{l.more}</span>}\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\">\n {/* Phone width: the secondary inline actions fold in here so the bar fits one row. */}\n {isMember && isNarrow && (\n <>\n {onLabel && (\n <DropdownMenuItem\n onClick={onLabel}\n disabled={noSelection}\n data-testid={ids.label}\n >\n <Tags className=\"mr-2 h-4 w-4\" />\n {l.label}\n </DropdownMenuItem>\n )}\n <DropdownMenuItem\n onClick={onShare}\n disabled={noSelection || shareState === 'shared'}\n data-testid={ids.share}\n >\n <Share2 className=\"mr-2 h-4 w-4\" />\n {l.share}\n </DropdownMenuItem>\n <DropdownMenuSeparator />\n </>\n )}\n {isMember && (\n <>\n <DropdownMenuItem\n onClick={onMoveToFolder}\n disabled={noSelection}\n data-testid={ids.moveFolder}\n >\n <FolderInput className=\"mr-2 h-4 w-4\" />\n {l.folder}\n </DropdownMenuItem>\n <DropdownMenuItem\n onClick={onExport}\n disabled={noSelection || !isOnline}\n data-testid={ids.export}\n >\n <ArrowRightFromLine className=\"mr-2 h-4 w-4\" />\n {l.export}\n </DropdownMenuItem>\n {onProduce && (\n <DropdownMenuItem\n onClick={onProduce}\n disabled={noSelection || !isOnline}\n data-testid={ids.production}\n >\n <Hash className=\"mr-2 h-4 w-4\" />\n {l.production}\n </DropdownMenuItem>\n )}\n <DropdownMenuItem\n onClick={onReprocess}\n disabled={noSelection || !isOnline}\n data-testid={ids.reprocess}\n >\n <RefreshCw className=\"mr-2 h-4 w-4\" />\n {reprocessLabel ?? l.reprocess}\n </DropdownMenuItem>\n </>\n )}\n {onToggleOffline && (\n <DropdownMenuItem\n onClick={onToggleOffline}\n disabled={noSelection || isOfflinePending || (!isAllOffline && !isOnline)}\n data-testid={ids.offline}\n >\n <ArrowDownToLine className=\"mr-2 h-4 w-4\" />\n {isAllOffline ? l.removeOffline : l.useOffline}\n </DropdownMenuItem>\n )}\n {isMember && onDelete && (\n <>\n <DropdownMenuSeparator />\n <DropdownMenuItem\n onClick={onDelete}\n disabled={noSelection}\n className=\"text-red-text focus:text-red-text\"\n data-testid={ids.delete}\n >\n <Trash2 className=\"mr-2 h-4 w-4\" />\n {l.delete}\n </DropdownMenuItem>\n </>\n )}\n </DropdownMenuContent>\n </DropdownMenu>\n </>\n )\n }}\n </SelectionBar>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AA+KkB,SAyCJ,UAzCI,KAyCJ,YAzCI;AA/KlB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,cAAc,0BAAkD;AACzE;AAAA,EACE;AAAA,OAGK;AACP,SAAS,gBAAgB;A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gBAAe;AAAA,sBAC5C,EAAE;AAAA;AAAA;AAAA,gBACL;AAAA,gBACC,aACC;AAAA,kBAAC;AAAA;AAAA,oBACC,SAAS;AAAA,oBACT,UAAU,eAAe,CAAC;AAAA,oBAC1B,eAAa,IAAI;AAAA,oBAEjB;AAAA,0CAAC,QAAK,WAAU,gBAAe;AAAA,sBAC9B,EAAE;AAAA;AAAA;AAAA,gBACL;AAAA,gBAEF;AAAA,kBAAC;AAAA;AAAA,oBACC,SAAS;AAAA,oBACT,UAAU,eAAe,CAAC;AAAA,oBAC1B,eAAa,IAAI;AAAA,oBAEjB;AAAA,0CAAC,aAAU,WAAU,gBAAe;AAAA,sBACnC,kBAAkB,EAAE;AAAA;AAAA;AAAA,gBACvB;AAAA,iBACF;AAAA,cAED,mBACC;AAAA,gBAAC;AAAA;AAAA,kBACC,SAAS;AAAA,kBACT,UAAU,eAAe,oBAAqB,CAAC,gBAAgB,CAAC;AAAA,kBAChE,eAAa,IAAI;AAAA,kBAEjB;AAAA,wCAAC,mBAAgB,WAAU,gBAAe;AAAA,oBACzC,eAAe,EAAE,gBAAgB,EAAE;AAAA;AAAA;AAAA,cACtC;AAAA,cAED,YAAY,YACX,iCACE;AAAA,oCAAC,yBAAsB;AAAA,gBACvB;AAAA,kBAAC;AAAA;AAAA,oBACC,SAAS;AAAA,oBACT,UAAU;AAAA,oBACV,WAAU;AAAA,oBACV,eAAa,IAAI;AAAA,oBAEjB;AAAA,0CAAC,UAAO,WAAU,gBAAe;AAAA,sBAChC,EAAE;AAAA;AAAA;AAAA,gBACL;AAAA,iBACF;AAAA,eAEJ;AAAA,aACF;AAAA,WACF;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -14,7 +14,8 @@ export interface DocumentRowMenuProps {
|
|
|
14
14
|
/** Why "Download with markup" is off (a signed, locked version): shown under it. */
|
|
15
15
|
downloadMarkupDisabledReason?: string;
|
|
16
16
|
onMove: () => void;
|
|
17
|
-
|
|
17
|
+
/** Delete it. Absent: not offered (a shared document is a workspace owner's to delete). */
|
|
18
|
+
onDelete?: () => void;
|
|
18
19
|
testId?: string;
|
|
19
20
|
}
|
|
20
21
|
/** The row-actions kebab of the grid's document cell (Open, Review, Chat, Rename, ...). */
|
|
@@ -91,7 +91,7 @@ function DocumentRowMenu({
|
|
|
91
91
|
/* @__PURE__ */ jsx(FolderInput, { className: "mr-2 h-4 w-4" }),
|
|
92
92
|
"Move to\u2026"
|
|
93
93
|
] }),
|
|
94
|
-
canEdit && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
94
|
+
canEdit && onDelete && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
95
95
|
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
96
96
|
/* @__PURE__ */ jsxs(
|
|
97
97
|
DropdownMenuItem,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/files/cells/DocumentNameCell.tsx"],
|
|
4
|
-
"sourcesContent": ["import type { ReactNode } from 'react'\nimport {\n BookOpen,\n Download,\n FileDown,\n FolderInput,\n MessagesSquare,\n MoreVertical,\n Pencil,\n SquarePen,\n Trash2,\n} from 'lucide-react'\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n cn,\n} from '@arbidocs/react/ui'\n\nexport interface DocumentRowMenuProps {\n /** Whether the user may rename / move / delete this document. */\n canEdit: boolean\n onOpen: () => void\n /** Open in the review view. Absent: not offered. */\n onReview?: () => void\n /** Start a chat about the document. Absent: not offered. */\n onDocumentChat?: () => void\n onRename: () => void\n onDownload: () => void\n /** \"Download with markup\": shown when the document's current version has markup. */\n onDownloadMarkup?: () => void\n /** Why \"Download with markup\" is off (a signed, locked version): shown under it. */\n downloadMarkupDisabledReason?: string\n onMove: () => void\n
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import type { ReactNode } from 'react'\nimport {\n BookOpen,\n Download,\n FileDown,\n FolderInput,\n MessagesSquare,\n MoreVertical,\n Pencil,\n SquarePen,\n Trash2,\n} from 'lucide-react'\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n cn,\n} from '@arbidocs/react/ui'\n\nexport interface DocumentRowMenuProps {\n /** Whether the user may rename / move / delete this document. */\n canEdit: boolean\n onOpen: () => void\n /** Open in the review view. Absent: not offered. */\n onReview?: () => void\n /** Start a chat about the document. Absent: not offered. */\n onDocumentChat?: () => void\n onRename: () => void\n onDownload: () => void\n /** \"Download with markup\": shown when the document's current version has markup. */\n onDownloadMarkup?: () => void\n /** Why \"Download with markup\" is off (a signed, locked version): shown under it. */\n downloadMarkupDisabledReason?: string\n onMove: () => void\n /** Delete it. Absent: not offered (a shared document is a workspace owner's to delete). */\n onDelete?: () => void\n testId?: string\n}\n\n/** The row-actions kebab of the grid's document cell (Open, Review, Chat, Rename, ...). */\nexport function DocumentRowMenu({\n canEdit,\n onOpen,\n onReview,\n onDocumentChat,\n onRename,\n onDownload,\n onDownloadMarkup,\n downloadMarkupDisabledReason,\n onMove,\n onDelete,\n testId = 'document-row-menu',\n}: DocumentRowMenuProps) {\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <button\n type=\"button\"\n aria-label=\"More actions\"\n data-testid={testId}\n onClick={(e) => e.stopPropagation()}\n // Always reachable (low emphasis at rest; see grid.css).\n className=\"doc-row-kebab flex h-6 w-6 items-center justify-center rounded text-muted-foreground transition hover:bg-muted hover:text-foreground data-[state=open]:opacity-100 pointer-coarse:h-11 pointer-coarse:w-11\"\n >\n <MoreVertical className=\"h-4 w-4\" />\n </button>\n </DropdownMenuTrigger>\n <DropdownMenuContent\n align=\"start\"\n onClick={(e) => e.stopPropagation()}\n className=\"w-44 border-border/40\"\n >\n <DropdownMenuItem onSelect={onOpen}>\n <SquarePen className=\"mr-2 h-4 w-4\" />\n Open\n </DropdownMenuItem>\n {onReview && (\n <DropdownMenuItem onSelect={onReview}>\n <BookOpen className=\"mr-2 h-4 w-4\" />\n Open in Review\n </DropdownMenuItem>\n )}\n {onDocumentChat && (\n <DropdownMenuItem onSelect={onDocumentChat}>\n <MessagesSquare className=\"mr-2 h-4 w-4\" />\n Document chat\n </DropdownMenuItem>\n )}\n <DropdownMenuSeparator />\n {canEdit && (\n <DropdownMenuItem onSelect={onRename}>\n <Pencil className=\"mr-2 h-4 w-4\" />\n Rename\n </DropdownMenuItem>\n )}\n <DropdownMenuItem onSelect={onDownload}>\n <Download className=\"mr-2 h-4 w-4\" />\n Download\n </DropdownMenuItem>\n {onDownloadMarkup && (\n <DropdownMenuItem\n onSelect={onDownloadMarkup}\n disabled={!!downloadMarkupDisabledReason}\n title={downloadMarkupDisabledReason}\n data-testid=\"document-row-download-markup\"\n className={downloadMarkupDisabledReason ? 'flex-wrap' : undefined}\n >\n <FileDown className=\"mr-2 h-4 w-4\" />\n Download with markup\n {downloadMarkupDisabledReason && (\n <span className=\"mt-0.5 w-full pl-6 text-xs text-muted-foreground\">\n {downloadMarkupDisabledReason}\n </span>\n )}\n </DropdownMenuItem>\n )}\n {canEdit && (\n <DropdownMenuItem onSelect={onMove}>\n <FolderInput className=\"mr-2 h-4 w-4\" />\n Move to\u2026\n </DropdownMenuItem>\n )}\n {canEdit && onDelete && (\n <>\n <DropdownMenuSeparator />\n <DropdownMenuItem\n onSelect={onDelete}\n className=\"text-destructive focus:text-destructive\"\n >\n <Trash2 className=\"mr-2 h-4 w-4\" />\n Delete\n </DropdownMenuItem>\n </>\n )}\n </DropdownMenuContent>\n </DropdownMenu>\n )\n}\n\nexport interface DocumentNameCellFrameProps {\n /** Test id on the wrapper, e.g. `open-document-viewer-button-<id>`. */\n testId?: string\n /** The row's document is open in the viewer: marks the cell so the host's row style can react. */\n isViewing?: boolean\n /** Phone-only second line (date and folder) under the title. */\n subtitle?: string\n /** Slot: the document pill (entity chip with `actions` = a DocumentRowMenu). */\n children: ReactNode\n className?: string\n}\n\n/**\n * Layout of the grid's unified \"document\" cell: the pill plus, on phones where the table\n * collapses to Title + Status, a muted second line.\n */\nexport function DocumentNameCellFrame({\n testId,\n isViewing,\n subtitle,\n children,\n className,\n}: DocumentNameCellFrameProps) {\n return (\n <div\n data-slot=\"document-name-cell\"\n data-testid={testId}\n data-viewing={isViewing || undefined}\n className={cn('flex h-full w-full flex-col justify-center', className)}\n >\n {children}\n <div className=\"hidden min-w-0 truncate pl-[27px] text-xs text-muted-foreground max-[480px]:block\">\n {subtitle}\n </div>\n </div>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AAkEU,SA2DA,UA3DA,KAQF,YARE;AAjEV;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAuBA,SAAS,gBAAgB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AACX,GAAyB;AACvB,SACE,qBAAC,gBACC;AAAA,wBAAC,uBAAoB,SAAO,MAC1B;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,cAAW;AAAA,QACX,eAAa;AAAA,QACb,SAAS,CAAC,MAAM,EAAE,gBAAgB;AAAA,QAElC,WAAU;AAAA,QAEV,8BAAC,gBAAa,WAAU,WAAU;AAAA;AAAA,IACpC,GACF;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,OAAM;AAAA,QACN,SAAS,CAAC,MAAM,EAAE,gBAAgB;AAAA,QAClC,WAAU;AAAA,QAEV;AAAA,+BAAC,oBAAiB,UAAU,QAC1B;AAAA,g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