@arbidocs/blocks 0.5.145 → 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/README.md +5 -0
- 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/{ConnectedNativeDocxComparison-KKX27IGJ.cjs → ConnectedNativeDocxComparison-MG54YLSO.cjs} +10 -10
- package/dist/{ConnectedNativeDocxComparison-KKX27IGJ.cjs.map → ConnectedNativeDocxComparison-MG54YLSO.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/{ConnectedStreamedWordArtifact-HAHRU4DQ.cjs → ConnectedStreamedWordArtifact-7KZGQECL.cjs} +10 -10
- package/dist/{ConnectedStreamedWordArtifact-HAHRU4DQ.cjs.map → ConnectedStreamedWordArtifact-7KZGQECL.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-VJYQ7XZA.cjs → FilesViewerDialog-D5GHWK4Y.cjs} +16 -15
- package/dist/FilesViewerDialog-D5GHWK4Y.cjs.map +1 -0
- package/dist/{NativeDocxEditor-7A3SYDAJ.cjs → NativeDocxEditor-R2OKJLRY.cjs} +6 -6
- package/dist/{NativeDocxEditor-7A3SYDAJ.cjs.map → NativeDocxEditor-R2OKJLRY.cjs.map} +1 -1
- 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-UNBORYTW.cjs → chunk-7AULM6LS.cjs} +7 -7
- package/dist/{chunk-UNBORYTW.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-6JLRF7N6.cjs → chunk-BD7P4KYQ.cjs} +5 -6
- package/dist/chunk-BD7P4KYQ.cjs.map +1 -0
- package/dist/{chunk-INNHU46B.cjs → chunk-BLJET4KG.cjs} +4 -4
- package/dist/{chunk-INNHU46B.cjs.map → chunk-BLJET4KG.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-G5YLJ2YT.cjs +18 -0
- package/dist/{chunk-S2NQS4RC.cjs.map → chunk-G5YLJ2YT.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-I5L24HOC.cjs → chunk-HWZT24TD.cjs} +6 -6
- package/dist/{chunk-I5L24HOC.cjs.map → chunk-HWZT24TD.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-A53YMUOX.cjs → chunk-LH3PDPJP.cjs} +3 -3
- package/dist/{chunk-A53YMUOX.cjs.map → chunk-LH3PDPJP.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-WQEWVZGO.cjs → chunk-MEWRE43W.cjs} +31 -31
- package/dist/{chunk-WQEWVZGO.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-TMZS7IKQ.cjs → chunk-OXPIJYRU.cjs} +70 -65
- 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-464TFVQ7.cjs → chunk-UNWDR6GG.cjs} +6 -6
- package/dist/{chunk-464TFVQ7.cjs.map → chunk-UNWDR6GG.cjs.map} +1 -1
- 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-O6OLY43S.cjs → chunk-WN6BLSAZ.cjs} +5 -5
- package/dist/{chunk-O6OLY43S.cjs.map → chunk-WN6BLSAZ.cjs.map} +1 -1
- 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/docx.cjs +14 -14
- package/dist/connect/index.cjs +4050 -3997
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +13 -12
- 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/docx/NativeDocxEditor.js +3 -4
- package/dist/docx/NativeDocxEditor.js.map +2 -2
- package/dist/docx/index.cjs +38 -38
- 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 +455 -430
- 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 +28 -27
- 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-VJYQ7XZA.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-6JLRF7N6.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-N3H3YAKY.cjs.map +0 -1
- package/dist/chunk-S2NQS4RC.cjs +0 -18
- package/dist/chunk-TG2GM7WJ.cjs.map +0 -1
- package/dist/chunk-TMZS7IKQ.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
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
var chunk223D4727_cjs = require('./chunk-223D4727.cjs');
|
|
5
5
|
var chunkSK6HQ46Q_cjs = require('./chunk-SK6HQ46Q.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkWCT6FT2K_cjs = require('./chunk-WCT6FT2K.cjs');
|
|
7
7
|
var chunkS237ORM3_cjs = require('./chunk-S237ORM3.cjs');
|
|
8
8
|
var chunkII2OEXHW_cjs = require('./chunk-II2OEXHW.cjs');
|
|
9
|
+
var chunkDKY67DA6_cjs = require('./chunk-DKY67DA6.cjs');
|
|
9
10
|
var chunkRL2HI6NP_cjs = require('./chunk-RL2HI6NP.cjs');
|
|
10
11
|
var chunk6UZC4XVV_cjs = require('./chunk-6UZC4XVV.cjs');
|
|
11
12
|
var chunkOUGRCQM7_cjs = require('./chunk-OUGRCQM7.cjs');
|
|
@@ -3984,7 +3985,7 @@ function DocumentRowMenu({
|
|
|
3984
3985
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.FolderInput, { className: "mr-2 h-4 w-4" }),
|
|
3985
3986
|
"Move to\u2026"
|
|
3986
3987
|
] }),
|
|
3987
|
-
canEdit && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3988
|
+
canEdit && onDelete && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3988
3989
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuSeparator, {}),
|
|
3989
3990
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3990
3991
|
ui.DropdownMenuItem,
|
|
@@ -4439,7 +4440,6 @@ var DEFAULT_BULK_ACTIONS_LABELS = {
|
|
|
4439
4440
|
label: "Label",
|
|
4440
4441
|
labelTooltip: "Add or remove labels from selected documents",
|
|
4441
4442
|
share: "Share",
|
|
4442
|
-
makePrivate: "Make private",
|
|
4443
4443
|
more: "More",
|
|
4444
4444
|
folder: "Folder",
|
|
4445
4445
|
export: "Export",
|
|
@@ -4468,7 +4468,7 @@ function BulkActionsBar({
|
|
|
4468
4468
|
isOfflinePending,
|
|
4469
4469
|
onDelete,
|
|
4470
4470
|
shareState,
|
|
4471
|
-
|
|
4471
|
+
onShare,
|
|
4472
4472
|
shareTooltip,
|
|
4473
4473
|
shareLabels,
|
|
4474
4474
|
className,
|
|
@@ -4543,10 +4543,10 @@ function BulkActionsBar({
|
|
|
4543
4543
|
),
|
|
4544
4544
|
divider,
|
|
4545
4545
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4546
|
-
|
|
4546
|
+
chunkWCT6FT2K_cjs.ShareControl,
|
|
4547
4547
|
{
|
|
4548
4548
|
state: shareState,
|
|
4549
|
-
|
|
4549
|
+
onShare,
|
|
4550
4550
|
disabled: noSelection,
|
|
4551
4551
|
tooltip: shareTooltip,
|
|
4552
4552
|
variant: "ghost",
|
|
@@ -4590,12 +4590,12 @@ function BulkActionsBar({
|
|
|
4590
4590
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4591
4591
|
ui.DropdownMenuItem,
|
|
4592
4592
|
{
|
|
4593
|
-
onClick:
|
|
4594
|
-
disabled: noSelection,
|
|
4593
|
+
onClick: onShare,
|
|
4594
|
+
disabled: noSelection || shareState === "shared",
|
|
4595
4595
|
"data-testid": ids.share,
|
|
4596
4596
|
children: [
|
|
4597
4597
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Share2, { className: "mr-2 h-4 w-4" }),
|
|
4598
|
-
|
|
4598
|
+
l.share
|
|
4599
4599
|
]
|
|
4600
4600
|
}
|
|
4601
4601
|
),
|
|
@@ -4663,7 +4663,7 @@ function BulkActionsBar({
|
|
|
4663
4663
|
]
|
|
4664
4664
|
}
|
|
4665
4665
|
),
|
|
4666
|
-
isMember && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4666
|
+
isMember && onDelete && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4667
4667
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuSeparator, {}),
|
|
4668
4668
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4669
4669
|
ui.DropdownMenuItem,
|
|
@@ -5182,15 +5182,19 @@ var DEFAULT_VIEW_SELECTOR_LABELS = {
|
|
|
5182
5182
|
viewName: (name) => `${name} View`,
|
|
5183
5183
|
deleteView: "Delete view",
|
|
5184
5184
|
deleteNamedView: (name) => `Delete view ${name}`,
|
|
5185
|
-
allFields: (count) => `All Fields (${count})
|
|
5185
|
+
allFields: (count) => `All Fields (${count})`,
|
|
5186
|
+
myViews: "My views",
|
|
5187
|
+
sharedViews: "Shared with the workspace",
|
|
5188
|
+
shareView: "Share with the workspace"
|
|
5186
5189
|
};
|
|
5190
|
+
var SHARE_BUTTON = "flex size-5 shrink-0 items-center justify-center rounded p-0 text-muted-foreground hover:bg-muted hover:text-foreground pointer-coarse:size-9";
|
|
5187
5191
|
var DELETE_BUTTON = "flex size-5 shrink-0 items-center justify-center rounded p-0 text-destructive/50 hover:bg-destructive/10 hover:text-destructive pointer-coarse:size-9";
|
|
5188
5192
|
function ViewSelectorMenu({
|
|
5189
5193
|
open,
|
|
5190
5194
|
onOpenChange,
|
|
5191
5195
|
currentView,
|
|
5192
5196
|
builtins,
|
|
5193
|
-
|
|
5197
|
+
savedViews,
|
|
5194
5198
|
columns,
|
|
5195
5199
|
saveName,
|
|
5196
5200
|
onSaveNameChange,
|
|
@@ -5198,6 +5202,7 @@ function ViewSelectorMenu({
|
|
|
5198
5202
|
isSaving,
|
|
5199
5203
|
onSelectView,
|
|
5200
5204
|
onDeleteView,
|
|
5205
|
+
onShareView,
|
|
5201
5206
|
onToggleColumn,
|
|
5202
5207
|
triggerLabel,
|
|
5203
5208
|
className,
|
|
@@ -5207,6 +5212,39 @@ function ViewSelectorMenu({
|
|
|
5207
5212
|
const l = { ...DEFAULT_VIEW_SELECTOR_LABELS, ...labels };
|
|
5208
5213
|
const activeCheckId = chunkPLIF5CUV_cjs.testIdOr(testIds?.activeCheck, { testId: "view-selector-active-check" });
|
|
5209
5214
|
const activeBuiltin = builtins.some((b) => b.key === currentView);
|
|
5215
|
+
const current = savedViews.find((v) => v.key === currentView);
|
|
5216
|
+
const others = savedViews.filter((v) => v.key !== currentView);
|
|
5217
|
+
const mine = others.filter((v) => v.mine ?? true);
|
|
5218
|
+
const shared = others.filter((v) => !(v.mine ?? true));
|
|
5219
|
+
const deletable = (v) => v.deletable ?? v.mine ?? true;
|
|
5220
|
+
const savedItem = (view) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5221
|
+
ui.CommandItem,
|
|
5222
|
+
{
|
|
5223
|
+
onSelect: () => onSelectView(view.key),
|
|
5224
|
+
className: "cursor-pointer",
|
|
5225
|
+
"data-testid": chunkPLIF5CUV_cjs.testIdOr(testIds?.viewItem?.(view.name), {
|
|
5226
|
+
testId: `view-selector-view-item-${view.name}`
|
|
5227
|
+
}),
|
|
5228
|
+
children: [
|
|
5229
|
+
view.shared ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Users, { className: "mr-2 size-3.5 shrink-0", "aria-label": l.sharedViews }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Save, { className: "mr-2 size-3.5 shrink-0" }),
|
|
5230
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 truncate", children: l.viewName(view.name) }),
|
|
5231
|
+
deletable(view) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5232
|
+
"button",
|
|
5233
|
+
{
|
|
5234
|
+
type: "button",
|
|
5235
|
+
onClick: (e) => {
|
|
5236
|
+
e.stopPropagation();
|
|
5237
|
+
onDeleteView(view.key);
|
|
5238
|
+
},
|
|
5239
|
+
className: DELETE_BUTTON,
|
|
5240
|
+
"aria-label": l.deleteNamedView(view.name),
|
|
5241
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "size-3" })
|
|
5242
|
+
}
|
|
5243
|
+
)
|
|
5244
|
+
]
|
|
5245
|
+
},
|
|
5246
|
+
view.key
|
|
5247
|
+
);
|
|
5210
5248
|
return /* @__PURE__ */ jsxRuntime.jsxs(ui.Popover, { open, onOpenChange, children: [
|
|
5211
5249
|
/* @__PURE__ */ jsxRuntime.jsx(ui.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5212
5250
|
ui.Button,
|
|
@@ -5276,10 +5314,27 @@ function ViewSelectorMenu({
|
|
|
5276
5314
|
testId: "view-selector-current-view"
|
|
5277
5315
|
}),
|
|
5278
5316
|
children: [
|
|
5279
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Save, { className: "mr-2 size-3.5 shrink-0" }),
|
|
5280
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 truncate", children: l.viewName(currentView) }),
|
|
5317
|
+
current?.shared ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Users, { className: "mr-2 size-3.5 shrink-0" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Save, { className: "mr-2 size-3.5 shrink-0" }),
|
|
5318
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 truncate", children: l.viewName(current?.name ?? currentView) }),
|
|
5281
5319
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "size-3.5 shrink-0 text-primary", "data-testid": activeCheckId }),
|
|
5282
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5320
|
+
onShareView && current?.canShare && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5321
|
+
"button",
|
|
5322
|
+
{
|
|
5323
|
+
type: "button",
|
|
5324
|
+
onClick: (e) => {
|
|
5325
|
+
e.stopPropagation();
|
|
5326
|
+
onShareView(current.key);
|
|
5327
|
+
},
|
|
5328
|
+
className: ui.cn(SHARE_BUTTON, "ml-1"),
|
|
5329
|
+
title: l.shareView,
|
|
5330
|
+
"aria-label": l.shareView,
|
|
5331
|
+
"data-testid": chunkPLIF5CUV_cjs.testIdOr(testIds?.shareCurrent, {
|
|
5332
|
+
testId: "view-selector-share-current-button"
|
|
5333
|
+
}),
|
|
5334
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Users, { className: "size-3" })
|
|
5335
|
+
}
|
|
5336
|
+
),
|
|
5337
|
+
(!current || deletable(current)) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5283
5338
|
"button",
|
|
5284
5339
|
{
|
|
5285
5340
|
type: "button",
|
|
@@ -5300,51 +5355,23 @@ function ViewSelectorMenu({
|
|
|
5300
5355
|
}
|
|
5301
5356
|
) }),
|
|
5302
5357
|
!activeBuiltin && /* @__PURE__ */ jsxRuntime.jsx(ui.CommandSeparator, {}),
|
|
5303
|
-
/* @__PURE__ */ jsxRuntime.
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
ui.CommandItem,
|
|
5321
|
-
{
|
|
5322
|
-
onSelect: () => onSelectView(name),
|
|
5323
|
-
className: "cursor-pointer",
|
|
5324
|
-
"data-testid": chunkPLIF5CUV_cjs.testIdOr(testIds?.viewItem?.(name), {
|
|
5325
|
-
testId: `view-selector-view-item-${name}`
|
|
5326
|
-
}),
|
|
5327
|
-
children: [
|
|
5328
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Save, { className: "mr-2 size-3.5 shrink-0" }),
|
|
5329
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 truncate", children: l.viewName(name) }),
|
|
5330
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5331
|
-
"button",
|
|
5332
|
-
{
|
|
5333
|
-
type: "button",
|
|
5334
|
-
onClick: (e) => {
|
|
5335
|
-
e.stopPropagation();
|
|
5336
|
-
onDeleteView(name);
|
|
5337
|
-
},
|
|
5338
|
-
className: DELETE_BUTTON,
|
|
5339
|
-
"aria-label": l.deleteNamedView(name),
|
|
5340
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "size-3" })
|
|
5341
|
-
}
|
|
5342
|
-
)
|
|
5343
|
-
]
|
|
5344
|
-
},
|
|
5345
|
-
name
|
|
5346
|
-
))
|
|
5347
|
-
] }),
|
|
5358
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.CommandGroup, { children: builtins.map((builtin) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5359
|
+
ui.CommandItem,
|
|
5360
|
+
{
|
|
5361
|
+
disabled: builtin.key === currentView,
|
|
5362
|
+
onSelect: () => onSelectView(builtin.key),
|
|
5363
|
+
className: builtin.key === currentView ? "opacity-100" : "cursor-pointer",
|
|
5364
|
+
"data-testid": builtin.testId ?? (builtin.key === "default" ? chunkPLIF5CUV_cjs.testIdOr(testIds?.defaultItem, { testId: "view-selector-default-item" }) : `view-selector-builtin-item-${builtin.key}`),
|
|
5365
|
+
children: [
|
|
5366
|
+
/* @__PURE__ */ jsxRuntime.jsx(builtin.icon, { className: "mr-2 size-3.5 shrink-0" }),
|
|
5367
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1", children: builtin.label }),
|
|
5368
|
+
builtin.key === currentView ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "size-3.5 shrink-0 text-primary", "data-testid": activeCheckId }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Undo2, { className: "size-3.5 shrink-0 text-muted-foreground/60" })
|
|
5369
|
+
]
|
|
5370
|
+
},
|
|
5371
|
+
builtin.key
|
|
5372
|
+
)) }),
|
|
5373
|
+
mine.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(ui.CommandGroup, { heading: shared.length > 0 ? l.myViews : void 0, children: /* @__PURE__ */ jsxRuntime.jsx("div", { "data-testid": "view-selector-mine-group", children: mine.map(savedItem) }) }),
|
|
5374
|
+
shared.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(ui.CommandGroup, { heading: l.sharedViews, children: /* @__PURE__ */ jsxRuntime.jsx("div", { "data-testid": "view-selector-shared-group", children: shared.map(savedItem) }) }),
|
|
5348
5375
|
columns.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5349
5376
|
/* @__PURE__ */ jsxRuntime.jsx(ui.CommandSeparator, {}),
|
|
5350
5377
|
/* @__PURE__ */ jsxRuntime.jsx(ui.CommandGroup, { heading: l.allFields(columns.length), children: columns.map((col) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -6164,6 +6191,23 @@ function TagFormFooter({
|
|
|
6164
6191
|
|
|
6165
6192
|
// src/files/views/gridViews.ts
|
|
6166
6193
|
var SELECTION_COL_ID = "ag-Grid-SelectionColumn";
|
|
6194
|
+
var viewKey = (view) => view.id ?? view.name;
|
|
6195
|
+
function currentSort(api) {
|
|
6196
|
+
if (!live(api)) return { sort: null, descending: false };
|
|
6197
|
+
const sorted = api.getColumnState().filter((c) => c.sort).sort((a, b) => (a.sortIndex ?? 0) - (b.sortIndex ?? 0))[0];
|
|
6198
|
+
return sorted ? { sort: sorted.colId, descending: sorted.sort === "desc" } : { sort: null, descending: false };
|
|
6199
|
+
}
|
|
6200
|
+
function sortMatches(api, view) {
|
|
6201
|
+
if (view.sort === void 0) return true;
|
|
6202
|
+
const now = currentSort(api);
|
|
6203
|
+
return now.sort === (view.sort ?? null) && (now.sort === null || now.descending === !!view.descending);
|
|
6204
|
+
}
|
|
6205
|
+
var filterKey = (f) => `${f.column}\0${f.op}\0${String(f.value ?? "")}`;
|
|
6206
|
+
function filtersMatch(a, b) {
|
|
6207
|
+
const x = (a ?? []).map(filterKey).sort();
|
|
6208
|
+
const y = (b ?? []).map(filterKey).sort();
|
|
6209
|
+
return x.length === y.length && x.every((k, i) => k === y[i]);
|
|
6210
|
+
}
|
|
6167
6211
|
var live = (api) => Boolean(api && !api.isDestroyed());
|
|
6168
6212
|
function visibleColumns(api, ignored, fallback) {
|
|
6169
6213
|
if (!live(api)) return fallback;
|
|
@@ -6281,6 +6325,13 @@ function applyViewColumns(api, view, applyColumns = (c, a) => applyColumnLayout(
|
|
|
6281
6325
|
applyOrder: false
|
|
6282
6326
|
});
|
|
6283
6327
|
}
|
|
6328
|
+
if (view.sort !== void 0 && !api.isDestroyed()) {
|
|
6329
|
+
api.applyColumnState({
|
|
6330
|
+
state: view.sort ? [{ colId: view.sort, sort: view.descending ? "desc" : "asc" }] : [],
|
|
6331
|
+
defaultState: { sort: null },
|
|
6332
|
+
applyOrder: false
|
|
6333
|
+
});
|
|
6334
|
+
}
|
|
6284
6335
|
if (view.pinned_left && !api.isDestroyed()) {
|
|
6285
6336
|
const pinned = new Set(view.pinned_left);
|
|
6286
6337
|
api.applyColumnState({
|
|
@@ -6305,10 +6356,12 @@ function useGridViews({
|
|
|
6305
6356
|
currentRowHeight,
|
|
6306
6357
|
currentTileSize,
|
|
6307
6358
|
defaultTileSize,
|
|
6359
|
+
currentFilters,
|
|
6308
6360
|
onApplyColumns,
|
|
6309
6361
|
onLoadView,
|
|
6310
6362
|
onSaveView,
|
|
6311
6363
|
onDeleteView,
|
|
6364
|
+
onShareView,
|
|
6312
6365
|
isSaving
|
|
6313
6366
|
}) {
|
|
6314
6367
|
const [open, setOpen] = react.useState(false);
|
|
@@ -6327,23 +6380,27 @@ function useGridViews({
|
|
|
6327
6380
|
const viewMatches = react.useCallback(
|
|
6328
6381
|
(view) => {
|
|
6329
6382
|
const api = getGridApi();
|
|
6330
|
-
return columnsMatch(api, current, view.columns) && widthsMatch(api, view.column_widths) && (view.row_height == null || currentRowHeight == null || view.row_height === currentRowHeight) && (view.tile_size == null || currentTileSize == null || view.tile_size === currentTileSize);
|
|
6383
|
+
return columnsMatch(api, current, view.columns) && widthsMatch(api, view.column_widths) && (view.row_height == null || currentRowHeight == null || view.row_height === currentRowHeight) && (view.tile_size == null || currentTileSize == null || view.tile_size === currentTileSize) && sortMatches(api, view) && (currentFilters === void 0 || filtersMatch(view.filters, currentFilters));
|
|
6331
6384
|
},
|
|
6332
|
-
|
|
6385
|
+
// stateVersion: the grid's sort lives outside React.
|
|
6386
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6387
|
+
[getGridApi, current, currentRowHeight, currentTileSize, currentFilters, stateVersion]
|
|
6333
6388
|
);
|
|
6334
6389
|
const currentView = react.useMemo(() => {
|
|
6335
6390
|
const api = getGridApi();
|
|
6336
6391
|
const pinned = pinnedLeftColumns(api);
|
|
6337
6392
|
const pinsMatch = (pinnedLeft = []) => pinnedLeft.length > 0 ? pinnedLeft.every((id) => pinned.has(id)) : !pinned.has(SELECTION_COL_ID);
|
|
6338
|
-
|
|
6393
|
+
const unfiltered = !currentFilters?.length;
|
|
6394
|
+
if (unfiltered && (currentTileSize == null || defaultTileSize == null || currentTileSize === defaultTileSize)) {
|
|
6339
6395
|
for (const b of builtins) {
|
|
6340
6396
|
if ((b.rowHeight == null || currentRowHeight == null || currentRowHeight === b.rowHeight) && pinsMatch(b.pinnedLeft) && columnsMatch(api, current, b.columns))
|
|
6341
6397
|
return b.key;
|
|
6342
6398
|
}
|
|
6343
6399
|
}
|
|
6344
|
-
for (const view of savedViews) if (viewMatches(view)) return view
|
|
6400
|
+
for (const view of savedViews) if (viewMatches(view)) return viewKey(view);
|
|
6345
6401
|
return "unsaved";
|
|
6346
6402
|
}, [
|
|
6403
|
+
currentFilters,
|
|
6347
6404
|
getGridApi,
|
|
6348
6405
|
builtins,
|
|
6349
6406
|
current,
|
|
@@ -6372,7 +6429,7 @@ function useGridViews({
|
|
|
6372
6429
|
setOpen(false);
|
|
6373
6430
|
return;
|
|
6374
6431
|
}
|
|
6375
|
-
const view = savedViews.find((v) => v
|
|
6432
|
+
const view = savedViews.find((v) => viewKey(v) === key);
|
|
6376
6433
|
if (view) {
|
|
6377
6434
|
onLoadView(view, api);
|
|
6378
6435
|
setOpen(false);
|
|
@@ -6389,7 +6446,9 @@ function useGridViews({
|
|
|
6389
6446
|
columns: current,
|
|
6390
6447
|
column_widths: captureColumnWidths(api, ignored),
|
|
6391
6448
|
...currentTileSize != null ? { tile_size: currentTileSize } : {},
|
|
6392
|
-
...currentRowHeight != null ? { row_height: currentRowHeight } : {}
|
|
6449
|
+
...currentRowHeight != null ? { row_height: currentRowHeight } : {},
|
|
6450
|
+
...currentSort(api),
|
|
6451
|
+
...currentFilters !== void 0 ? { filters: [...currentFilters] } : {}
|
|
6393
6452
|
};
|
|
6394
6453
|
try {
|
|
6395
6454
|
await onSaveView(view);
|
|
@@ -6406,17 +6465,35 @@ function useGridViews({
|
|
|
6406
6465
|
ignored,
|
|
6407
6466
|
currentTileSize,
|
|
6408
6467
|
currentRowHeight,
|
|
6468
|
+
currentFilters,
|
|
6409
6469
|
onSaveView,
|
|
6410
6470
|
onLoadView
|
|
6411
6471
|
]);
|
|
6412
6472
|
const remove = react.useCallback(
|
|
6413
|
-
async (
|
|
6414
|
-
const deleted = await onDeleteView(
|
|
6473
|
+
async (key) => {
|
|
6474
|
+
const deleted = await onDeleteView(key);
|
|
6415
6475
|
if (deleted === false) return;
|
|
6416
|
-
if (currentView ===
|
|
6476
|
+
if (currentView === key && builtins[0]) loadView(builtins[0].key);
|
|
6417
6477
|
},
|
|
6418
6478
|
[onDeleteView, currentView, builtins, loadView]
|
|
6419
6479
|
);
|
|
6480
|
+
const savedItems = react.useMemo(
|
|
6481
|
+
() => savedViews.map((v) => {
|
|
6482
|
+
const shared = !!v.shared;
|
|
6483
|
+
const mine = v.mine ?? true;
|
|
6484
|
+
return {
|
|
6485
|
+
key: viewKey(v),
|
|
6486
|
+
name: v.name,
|
|
6487
|
+
shared,
|
|
6488
|
+
mine,
|
|
6489
|
+
// Sharing makes it the workspace's for good: only its creator shares it, only an owner
|
|
6490
|
+
// deletes it then.
|
|
6491
|
+
canShare: !!onShareView && mine && !shared,
|
|
6492
|
+
deletable: v.can_delete ?? (mine && !shared)
|
|
6493
|
+
};
|
|
6494
|
+
}),
|
|
6495
|
+
[savedViews, onShareView]
|
|
6496
|
+
);
|
|
6420
6497
|
const columns = react.useMemo(
|
|
6421
6498
|
() => columnItems(getGridApi(), current, defaultColumns, ignored),
|
|
6422
6499
|
[getGridApi, current, defaultColumns, ignored]
|
|
@@ -6446,14 +6523,15 @@ function useGridViews({
|
|
|
6446
6523
|
},
|
|
6447
6524
|
currentView,
|
|
6448
6525
|
builtins: builtinItems,
|
|
6449
|
-
|
|
6526
|
+
savedViews: savedItems,
|
|
6450
6527
|
columns,
|
|
6451
6528
|
saveName,
|
|
6452
6529
|
onSaveNameChange: setSaveName,
|
|
6453
6530
|
onSave: () => void save(),
|
|
6454
6531
|
isSaving,
|
|
6455
6532
|
onSelectView: loadView,
|
|
6456
|
-
onDeleteView: (
|
|
6533
|
+
onDeleteView: (key) => void remove(key),
|
|
6534
|
+
...onShareView ? { onShareView: (key) => void onShareView(key) } : {},
|
|
6457
6535
|
onToggleColumn: toggle
|
|
6458
6536
|
};
|
|
6459
6537
|
}
|
|
@@ -7370,11 +7448,12 @@ function canEditDocumentFields(doc, currentUserExtId, workspaceRole) {
|
|
|
7370
7448
|
}
|
|
7371
7449
|
function canDeleteDocument(doc, currentUserExtId, workspaceRole) {
|
|
7372
7450
|
if (!doc || !currentUserExtId) return false;
|
|
7373
|
-
if (workspaceRole
|
|
7374
|
-
|
|
7375
|
-
|
|
7451
|
+
if (workspaceRole !== "owner" && workspaceRole !== "collaborator") return false;
|
|
7452
|
+
return chunkDKY67DA6_cjs.canDeleteShareable(
|
|
7453
|
+
{ shared: doc.shared ?? false, mine: doc.created_by_ext_id === currentUserExtId },
|
|
7454
|
+
workspaceRole === "owner"
|
|
7455
|
+
);
|
|
7376
7456
|
}
|
|
7377
|
-
var MAX_NAMES_IN_CONFIRM = 5;
|
|
7378
7457
|
function shareStateOf(items) {
|
|
7379
7458
|
if (items.length === 0) return "private";
|
|
7380
7459
|
const sharedCount = items.filter((item) => item.shared === true).length;
|
|
@@ -7384,32 +7463,16 @@ function shareStateOf(items) {
|
|
|
7384
7463
|
function shareTooltipFor(state, isSingle) {
|
|
7385
7464
|
const workspace = ui.getEntityLabel("WORKSPACE");
|
|
7386
7465
|
const subject = isSingle ? "" : " all";
|
|
7387
|
-
if (state === "shared") return
|
|
7388
|
-
if (state === "mixed") return `
|
|
7389
|
-
return `
|
|
7390
|
-
}
|
|
7391
|
-
function confirmHideFromMembers(confirm, count, members) {
|
|
7392
|
-
const workspace = ui.getEntityLabel("WORKSPACE");
|
|
7393
|
-
const documentLabel = ui.getEntityLabel("DOCUMENT", count === 1 ? "SINGULAR" : "PLURAL");
|
|
7394
|
-
const pronoun = count === 1 ? "it" : "them";
|
|
7395
|
-
const names = members.filter((member) => !ui.isAgent(member.user)).map((member) => ui.getUserDisplayName(member.user));
|
|
7396
|
-
const shown = names.slice(0, MAX_NAMES_IN_CONFIRM);
|
|
7397
|
-
const hiddenCount = names.length - shown.length;
|
|
7398
|
-
const listed = hiddenCount > 0 ? [...shown, `${hiddenCount} more`] : shown;
|
|
7399
|
-
const last = listed[listed.length - 1];
|
|
7400
|
-
const audienceList = listed.length > 2 ? `${listed.slice(0, -1).join(", ")}, and ${last}` : listed.join(" and ");
|
|
7401
|
-
const audience = names.length > 0 ? `Right now ${audienceList} can see ${pronoun}. ` : "";
|
|
7402
|
-
return confirm({
|
|
7403
|
-
message: `Hide ${count} ${documentLabel.toLowerCase()} from ${workspace} members? ${audience}They will no longer be able to see ${pronoun}.`,
|
|
7404
|
-
title: "Hide from members"
|
|
7405
|
-
});
|
|
7466
|
+
if (state === "shared") return chunkDKY67DA6_cjs.sharedForGoodTooltip();
|
|
7467
|
+
if (state === "mixed") return `Share the rest with ${workspace} members (some already shared)`;
|
|
7468
|
+
return `Share${subject} with ${workspace} members`;
|
|
7406
7469
|
}
|
|
7407
7470
|
function visibilityAudience(shared, workspaceLabel = ui.getEntityLabel("WORKSPACE")) {
|
|
7408
7471
|
return shared ? `Shared with ${workspaceLabel.toLowerCase()}` : "Private to you";
|
|
7409
7472
|
}
|
|
7410
7473
|
function visibilityToggleTooltip(shared) {
|
|
7411
7474
|
const workspace = ui.getEntityLabel("WORKSPACE").toLowerCase();
|
|
7412
|
-
return shared ? `${visibilityAudience(true)}: everyone in it can see this file.
|
|
7475
|
+
return shared ? `${visibilityAudience(true)}: everyone in it can see this file. ${chunkDKY67DA6_cjs.SHARING_IS_ONE_WAY}.` : `${visibilityAudience(false)}: only you can see this file. Click to share it with the ${workspace}.`;
|
|
7413
7476
|
}
|
|
7414
7477
|
|
|
7415
7478
|
// src/files/recently-deleted.ts
|
|
@@ -8222,11 +8285,12 @@ exports.captureColumnWidths = captureColumnWidths;
|
|
|
8222
8285
|
exports.collectFolderDocs = collectFolderDocs;
|
|
8223
8286
|
exports.columnItems = columnItems;
|
|
8224
8287
|
exports.columnsMatch = columnsMatch;
|
|
8225
|
-
exports.
|
|
8288
|
+
exports.currentSort = currentSort;
|
|
8226
8289
|
exports.documentGridLayoutProps = documentGridLayoutProps;
|
|
8227
8290
|
exports.fieldsApplyBarCopy = fieldsApplyBarCopy;
|
|
8228
8291
|
exports.fieldsEmptyText = fieldsEmptyText;
|
|
8229
8292
|
exports.filterFieldsByName = filterFieldsByName;
|
|
8293
|
+
exports.filtersMatch = filtersMatch;
|
|
8230
8294
|
exports.formatFolderSegment = formatFolderSegment;
|
|
8231
8295
|
exports.getExplorerDisplayName = getExplorerDisplayName;
|
|
8232
8296
|
exports.getMediaPreview = getMediaPreview;
|
|
@@ -8246,13 +8310,15 @@ exports.shareStateOf = shareStateOf;
|
|
|
8246
8310
|
exports.shareTooltipFor = shareTooltipFor;
|
|
8247
8311
|
exports.sortExplorerFiles = sortExplorerFiles;
|
|
8248
8312
|
exports.sortFields = sortFields;
|
|
8313
|
+
exports.sortMatches = sortMatches;
|
|
8249
8314
|
exports.summariseDocTags = summariseDocTags;
|
|
8250
8315
|
exports.toggleColumn = toggleColumn;
|
|
8251
8316
|
exports.upsertView = upsertView;
|
|
8252
8317
|
exports.useGridViews = useGridViews;
|
|
8318
|
+
exports.viewKey = viewKey;
|
|
8253
8319
|
exports.visibilityAudience = visibilityAudience;
|
|
8254
8320
|
exports.visibilityToggleTooltip = visibilityToggleTooltip;
|
|
8255
8321
|
exports.visibleColumns = visibleColumns;
|
|
8256
8322
|
exports.widthsMatch = widthsMatch;
|
|
8257
|
-
//# sourceMappingURL=chunk-
|
|
8258
|
-
//# sourceMappingURL=chunk-
|
|
8323
|
+
//# sourceMappingURL=chunk-VLHBKF4P.cjs.map
|
|
8324
|
+
//# sourceMappingURL=chunk-VLHBKF4P.cjs.map
|