@dxos/react-ui-table 0.8.4-main.67995b8 → 0.8.4-main.69d29f4

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.
Files changed (155) hide show
  1. package/dist/lib/browser/chunk-I5IFW7UF.mjs +1746 -0
  2. package/dist/lib/browser/chunk-I5IFW7UF.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-OZBLY7XM.mjs +76 -0
  4. package/dist/lib/browser/chunk-OZBLY7XM.mjs.map +7 -0
  5. package/dist/lib/browser/index.mjs +1163 -1120
  6. package/dist/lib/browser/index.mjs.map +4 -4
  7. package/dist/lib/browser/meta.json +1 -1
  8. package/dist/lib/browser/testing/index.mjs +30 -37
  9. package/dist/lib/browser/testing/index.mjs.map +3 -3
  10. package/dist/lib/browser/types/index.mjs +3 -3
  11. package/dist/lib/node-esm/chunk-DDJKYJFY.mjs +1748 -0
  12. package/dist/lib/node-esm/chunk-DDJKYJFY.mjs.map +7 -0
  13. package/dist/lib/node-esm/chunk-WNZSKIRF.mjs +77 -0
  14. package/dist/lib/node-esm/chunk-WNZSKIRF.mjs.map +7 -0
  15. package/dist/lib/node-esm/index.mjs +1163 -1120
  16. package/dist/lib/node-esm/index.mjs.map +4 -4
  17. package/dist/lib/node-esm/meta.json +1 -1
  18. package/dist/lib/node-esm/testing/index.mjs +30 -37
  19. package/dist/lib/node-esm/testing/index.mjs.map +3 -3
  20. package/dist/lib/node-esm/types/index.mjs +3 -3
  21. package/dist/types/src/components/Table/ColumnActionsMenu.d.ts +2 -3
  22. package/dist/types/src/components/Table/ColumnActionsMenu.d.ts.map +1 -1
  23. package/dist/types/src/components/Table/ColumnSettings.d.ts +3 -3
  24. package/dist/types/src/components/Table/ColumnSettings.d.ts.map +1 -1
  25. package/dist/types/src/components/Table/DynamicTable.d.ts +5 -6
  26. package/dist/types/src/components/Table/DynamicTable.d.ts.map +1 -1
  27. package/dist/types/src/components/Table/DynamicTable.stories.d.ts +37 -3
  28. package/dist/types/src/components/Table/DynamicTable.stories.d.ts.map +1 -1
  29. package/dist/types/src/components/Table/Relations.stories.d.ts +111 -0
  30. package/dist/types/src/components/Table/Relations.stories.d.ts.map +1 -0
  31. package/dist/types/src/components/Table/RowActionsMenu.d.ts +1 -1
  32. package/dist/types/src/components/Table/RowActionsMenu.d.ts.map +1 -1
  33. package/dist/types/src/components/Table/Table.d.ts +13 -9
  34. package/dist/types/src/components/Table/Table.d.ts.map +1 -1
  35. package/dist/types/src/components/Table/Table.stories.d.ts +108 -4
  36. package/dist/types/src/components/Table/Table.stories.d.ts.map +1 -1
  37. package/dist/types/src/components/TableCellEditor/CellValidationMessage.d.ts +1 -1
  38. package/dist/types/src/components/TableCellEditor/CellValidationMessage.d.ts.map +1 -1
  39. package/dist/types/src/components/TableCellEditor/FormCellEditor.d.ts +13 -9
  40. package/dist/types/src/components/TableCellEditor/FormCellEditor.d.ts.map +1 -1
  41. package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts +11 -18
  42. package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts.map +1 -1
  43. package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts +39 -4
  44. package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts.map +1 -1
  45. package/dist/types/src/components/TableCellEditor/index.d.ts +1 -0
  46. package/dist/types/src/components/TableCellEditor/index.d.ts.map +1 -1
  47. package/dist/types/src/components/TableToolbar/TableToolbar.d.ts +4 -4
  48. package/dist/types/src/components/TableToolbar/TableToolbar.d.ts.map +1 -1
  49. package/dist/types/src/components/testing.d.ts +23 -16
  50. package/dist/types/src/components/testing.d.ts.map +1 -1
  51. package/dist/types/src/hooks/index.d.ts +2 -1
  52. package/dist/types/src/hooks/index.d.ts.map +1 -1
  53. package/dist/types/src/hooks/useAddRow.d.ts +6 -6
  54. package/dist/types/src/hooks/useAddRow.d.ts.map +1 -1
  55. package/dist/types/src/hooks/useProjectionModel.d.ts +6 -0
  56. package/dist/types/src/hooks/useProjectionModel.d.ts.map +1 -0
  57. package/dist/types/src/hooks/useTableModel.d.ts +9 -9
  58. package/dist/types/src/hooks/useTableModel.d.ts.map +1 -1
  59. package/dist/types/src/model/modal-controller.d.ts +5 -8
  60. package/dist/types/src/model/modal-controller.d.ts.map +1 -1
  61. package/dist/types/src/model/selection-model.d.ts +17 -8
  62. package/dist/types/src/model/selection-model.d.ts.map +1 -1
  63. package/dist/types/src/model/table-model.d.ts +109 -28
  64. package/dist/types/src/model/table-model.d.ts.map +1 -1
  65. package/dist/types/src/model/table-presentation.d.ts +5 -2
  66. package/dist/types/src/model/table-presentation.d.ts.map +1 -1
  67. package/dist/types/src/playwright/TableManager.d.ts +1 -1
  68. package/dist/types/src/playwright/TableManager.d.ts.map +1 -1
  69. package/dist/types/src/testing/useTestTableModel.d.ts +18 -34
  70. package/dist/types/src/testing/useTestTableModel.d.ts.map +1 -1
  71. package/dist/types/src/translations.d.ts +4 -4
  72. package/dist/types/src/translations.d.ts.map +1 -1
  73. package/dist/types/src/types/Table.d.ts +31 -0
  74. package/dist/types/src/types/Table.d.ts.map +1 -0
  75. package/dist/types/src/types/index.d.ts +1 -1
  76. package/dist/types/src/types/index.d.ts.map +1 -1
  77. package/dist/types/src/util/dynamic-table.d.ts +13 -12
  78. package/dist/types/src/util/dynamic-table.d.ts.map +1 -1
  79. package/dist/types/src/util/index.d.ts +2 -1
  80. package/dist/types/src/util/index.d.ts.map +1 -1
  81. package/dist/types/src/util/query-ast.d.ts +7 -0
  82. package/dist/types/src/util/query-ast.d.ts.map +1 -0
  83. package/dist/types/src/util/schema.d.ts +1 -1
  84. package/dist/types/src/util/schema.d.ts.map +1 -1
  85. package/dist/types/src/util/sort.d.ts +12 -0
  86. package/dist/types/src/util/sort.d.ts.map +1 -0
  87. package/dist/types/src/util/table-buttons.d.ts.map +1 -1
  88. package/dist/types/src/util/table-controls.d.ts.map +1 -1
  89. package/dist/types/tsconfig.tsbuildinfo +1 -1
  90. package/package.json +65 -64
  91. package/src/components/Table/ColumnActionsMenu.tsx +11 -7
  92. package/src/components/Table/ColumnSettings.tsx +7 -7
  93. package/src/components/Table/DynamicTable.stories.tsx +25 -22
  94. package/src/components/Table/DynamicTable.tsx +26 -21
  95. package/src/components/Table/Relations.stories.tsx +237 -0
  96. package/src/components/Table/RowActionsMenu.tsx +26 -17
  97. package/src/components/Table/Table.stories.tsx +110 -102
  98. package/src/components/Table/Table.tsx +353 -298
  99. package/src/components/TableCellEditor/CellValidationMessage.tsx +2 -2
  100. package/src/components/TableCellEditor/FormCellEditor.tsx +128 -40
  101. package/src/components/TableCellEditor/TableCellEditor.stories.tsx +30 -66
  102. package/src/components/TableCellEditor/TableCellEditor.tsx +88 -238
  103. package/src/components/TableCellEditor/index.ts +1 -0
  104. package/src/components/TableToolbar/TableToolbar.tsx +49 -33
  105. package/src/components/testing.ts +39 -13
  106. package/src/hooks/index.ts +2 -1
  107. package/src/hooks/useAddRow.ts +14 -14
  108. package/src/hooks/useProjectionModel.ts +39 -0
  109. package/src/hooks/useTableModel.ts +35 -33
  110. package/src/model/modal-controller.ts +24 -41
  111. package/src/model/selection-model.ts +75 -43
  112. package/src/model/table-model.test.ts +92 -55
  113. package/src/model/table-model.ts +445 -168
  114. package/src/model/table-presentation.test.ts +70 -58
  115. package/src/model/table-presentation.ts +103 -57
  116. package/src/playwright/TableManager.ts +5 -5
  117. package/src/playwright/playwright.config.ts +1 -1
  118. package/src/playwright/smoke.spec.ts +135 -40
  119. package/src/testing/useTestTableModel.ts +45 -34
  120. package/src/translations.ts +3 -3
  121. package/src/types/Table.ts +90 -0
  122. package/src/types/index.ts +1 -1
  123. package/src/util/dynamic-table.ts +44 -32
  124. package/src/util/index.ts +2 -1
  125. package/src/util/query-ast.ts +19 -0
  126. package/src/util/schema.ts +4 -4
  127. package/src/util/sort.ts +90 -0
  128. package/src/util/table-buttons.ts +4 -3
  129. package/src/util/table-controls.ts +4 -1
  130. package/dist/lib/browser/chunk-5XLSHLOG.mjs +0 -1751
  131. package/dist/lib/browser/chunk-5XLSHLOG.mjs.map +0 -7
  132. package/dist/lib/browser/chunk-L2LSB6KV.mjs +0 -18
  133. package/dist/lib/browser/chunk-L2LSB6KV.mjs.map +0 -7
  134. package/dist/lib/node-esm/chunk-NXZ4CJYX.mjs +0 -20
  135. package/dist/lib/node-esm/chunk-NXZ4CJYX.mjs.map +0 -7
  136. package/dist/lib/node-esm/chunk-Y66YLSTC.mjs +0 -1752
  137. package/dist/lib/node-esm/chunk-Y66YLSTC.mjs.map +0 -7
  138. package/dist/types/src/components/Table/CreateRefPanel.d.ts +0 -9
  139. package/dist/types/src/components/Table/CreateRefPanel.d.ts.map +0 -1
  140. package/dist/types/src/components/Table/relations.stories.d.ts +0 -9
  141. package/dist/types/src/components/Table/relations.stories.d.ts.map +0 -1
  142. package/dist/types/src/components/TableCellEditor/extension.d.ts +0 -13
  143. package/dist/types/src/components/TableCellEditor/extension.d.ts.map +0 -1
  144. package/dist/types/src/model/table-sorting.d.ts +0 -53
  145. package/dist/types/src/model/table-sorting.d.ts.map +0 -1
  146. package/dist/types/src/types/schema.d.ts +0 -8
  147. package/dist/types/src/types/schema.d.ts.map +0 -1
  148. package/dist/types/src/util/table.d.ts +0 -11
  149. package/dist/types/src/util/table.d.ts.map +0 -1
  150. package/src/components/Table/CreateRefPanel.tsx +0 -86
  151. package/src/components/Table/relations.stories.tsx +0 -116
  152. package/src/components/TableCellEditor/extension.ts +0 -61
  153. package/src/model/table-sorting.ts +0 -216
  154. package/src/types/schema.ts +0 -16
  155. package/src/util/table.ts +0 -49
@@ -0,0 +1,237 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { RegistryContext } from '@effect-atom/atom-react';
6
+ import { type Meta, type StoryObj } from '@storybook/react-vite';
7
+ import React, { useCallback, useContext, useEffect, useMemo, useState } from 'react';
8
+ import { expect, userEvent, within } from 'storybook/test';
9
+
10
+ import { Obj, Type } from '@dxos/echo';
11
+ import { invariant } from '@dxos/invariant';
12
+ import { type DxGrid } from '@dxos/lit-grid';
13
+ import '@dxos/lit-ui/dx-tag-picker.pcss';
14
+ import { faker } from '@dxos/random';
15
+ import { useClientStory, withClientProvider } from '@dxos/react-client/testing';
16
+ import { useAsyncEffect } from '@dxos/react-ui';
17
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
18
+ import { translations as formTranslations } from '@dxos/react-ui-form';
19
+ import { View } from '@dxos/schema';
20
+ import { type ValueGenerator, createAsyncGenerator } from '@dxos/schema/testing';
21
+ import { withRegistry } from '@dxos/storybook-utils';
22
+ import { Organization, Person } from '@dxos/types';
23
+
24
+ import { useProjectionModel, useTableModel } from '../../hooks';
25
+ import { type TableFeatures, TablePresentation, type TableRow } from '../../model';
26
+ import { translations } from '../../translations';
27
+ import { Table } from '../../types';
28
+
29
+ import { Table as TableComponent } from './Table';
30
+
31
+ faker.seed(1);
32
+ const generator: ValueGenerator = faker as any;
33
+
34
+ // TODO(burdon): Many-to-many relations.
35
+ // TODO(burdon): Mutable and immutable views.
36
+ // TODO(burdon): Reconcile schemas types and utils (see API PR).
37
+ // TODO(burdon): Base type for T (with id); see ECHO API PR?
38
+ const useTestModel = <S extends Type.Obj.Any>(schema: S, count: number) => {
39
+ const registry = useContext(RegistryContext);
40
+ const { space } = useClientStory();
41
+ const [object, setObject] = useState<Table.Table>();
42
+
43
+ const features = useMemo<TableFeatures>(
44
+ () => ({ schemaEditable: false, dataEditable: true, selection: { enabled: false } }),
45
+ [],
46
+ );
47
+
48
+ useAsyncEffect(async () => {
49
+ if (!space) {
50
+ return;
51
+ }
52
+
53
+ const { view, jsonSchema } = await View.makeFromDatabase({ db: space.db, typename: Type.getTypename(schema) });
54
+ const object = Table.make({ view, jsonSchema });
55
+ setObject(object);
56
+ space.db.add(object);
57
+ }, [space, schema]);
58
+
59
+ const projection = useProjectionModel(schema, object, registry);
60
+ const model = useTableModel<TableRow>({ object, projection, db: space?.db, features });
61
+
62
+ useEffect(() => {
63
+ if (!model || !space) {
64
+ return;
65
+ }
66
+
67
+ const objectGenerator = createAsyncGenerator(generator, schema, { db: space?.db, force: true });
68
+ void objectGenerator.createObjects(count).then((objects) => {
69
+ model.setRows(objects);
70
+ });
71
+ }, [model, space]);
72
+
73
+ const presentation = useMemo(() => {
74
+ if (!model) {
75
+ return;
76
+ }
77
+
78
+ return new TablePresentation(registry, model);
79
+ }, [registry, model]);
80
+
81
+ return { model, presentation };
82
+ };
83
+
84
+ const DefaultStory = () => {
85
+ const { model: orgModel, presentation: orgPresentation } = useTestModel(Organization.Organization, 50);
86
+ const { model: contactModel, presentation: contactPresentation } = useTestModel(Person.Person, 50);
87
+ const { space } = useClientStory();
88
+
89
+ const handleCreate = useCallback(
90
+ (schema: Type.Entity.Any, values: any) => {
91
+ invariant(Type.isObjectSchema(schema));
92
+ invariant(space);
93
+ return space.db.add(Obj.make(schema, values));
94
+ },
95
+ [space],
96
+ );
97
+
98
+ return (
99
+ <div className='is-full bs-full grid grid-cols-2 divide-x divide-separator'>
100
+ <TableComponent.Root>
101
+ <TableComponent.Main
102
+ model={orgModel}
103
+ schema={Organization.Organization}
104
+ presentation={orgPresentation}
105
+ onCreate={handleCreate}
106
+ ignoreAttention
107
+ testId='relations-0'
108
+ />
109
+ </TableComponent.Root>
110
+ <TableComponent.Root>
111
+ <TableComponent.Main
112
+ model={contactModel}
113
+ schema={Person.Person}
114
+ presentation={contactPresentation}
115
+ onCreate={handleCreate}
116
+ ignoreAttention
117
+ testId='relations-1'
118
+ />
119
+ </TableComponent.Root>
120
+ </div>
121
+ );
122
+ };
123
+
124
+ const meta = {
125
+ title: 'ui/react-ui-table/Relations',
126
+ render: DefaultStory,
127
+ decorators: [
128
+ withTheme,
129
+ withRegistry,
130
+ // TODO(thure): Shouldn't `layout: 'fullscreen'` below make this unnecessary?
131
+ withLayout({ classNames: 'fixed inset-0' }),
132
+ withClientProvider({
133
+ types: [View.View, Organization.Organization, Person.Person, Table.Table],
134
+ createIdentity: true,
135
+ createSpace: true,
136
+ }),
137
+ ],
138
+ parameters: {
139
+ layout: 'fullscreen',
140
+ controls: { disable: true },
141
+ translations: [...translations, ...formTranslations],
142
+ },
143
+ } satisfies Meta<typeof DefaultStory>;
144
+
145
+ export default meta;
146
+
147
+ type Story = StoryObj<typeof meta>;
148
+
149
+ export const Default: Story = {
150
+ play: async ({ canvasElement }: any) => {
151
+ const canvas = within(canvasElement);
152
+ const body = within(document.body);
153
+
154
+ // Get all dx-grid elements (should have 2 - one for each table)
155
+ const firstGrid = await canvas.findByTestId('relations-0', undefined, { timeout: 30_000 });
156
+ const secondGrid = await canvas.findByTestId('relations-1', undefined, { timeout: 30_000 });
157
+
158
+ // Focus on the second table (Person/contacts table)
159
+ await expect(secondGrid).toBeVisible();
160
+
161
+ // Scroll to the relations column (column 4) - this mimics the scrollToColumn call
162
+ (secondGrid.closest('dx-grid') as DxGrid).scrollToColumn(4);
163
+
164
+ // Find and click the target cell (first row, relations column)
165
+ const targetCell = await within(secondGrid).findByTestId('grid.4.0', undefined, { timeout: 10_000 });
166
+ await expect(targetCell).toBeVisible();
167
+
168
+ // Click to focus the cell
169
+ await userEvent.click(targetCell as HTMLElement);
170
+ await expect(targetCell).toHaveFocus();
171
+ await userEvent.keyboard('{Enter}');
172
+
173
+ // Look for the combobox that should appear in edit mode
174
+ const combobox = await body.findByRole('combobox', undefined, { timeout: 5000 });
175
+ await userEvent.click(combobox);
176
+
177
+ const searchField = await body.findByPlaceholderText('Search…');
178
+ await userEvent.click(searchField);
179
+
180
+ // Get the first organization name from the first table to search for
181
+ const orgCell = await within(firstGrid).findByTestId('grid.0.0', undefined, { timeout: 10_000 });
182
+
183
+ const orgName = (orgCell.querySelector('.dx-grid__cell__content') as HTMLElement).textContent;
184
+ // Type the first 4 characters to search
185
+ await userEvent.type(searchField, orgName.substring(0, 4));
186
+
187
+ // Look for an option to select
188
+ const option = await body.findAllByRole('option');
189
+ await expect(option[0]).toBeVisible();
190
+
191
+ // Press Enter to select
192
+ await userEvent.keyboard('{Enter}');
193
+
194
+ // Look for and click save button
195
+ const saveButton = await body.findByTestId('save-button');
196
+ await userEvent.click(saveButton);
197
+
198
+ // Verify the relation was set (cell should now contain the org name)
199
+ await expect(targetCell).toHaveTextContent(orgName.substring(0, 4));
200
+
201
+ // Test object creation (new relations) - equivalent to "new relations work as expected" test
202
+ // Find a different cell to test object creation (second row, relations column)
203
+ const newTargetCell = await within(secondGrid).findByTestId('grid.4.1', undefined, { timeout: 10_000 });
204
+ await expect(newTargetCell).toBeTruthy();
205
+
206
+ // Click to focus the cell
207
+ await userEvent.click(newTargetCell as Element);
208
+
209
+ await userEvent.keyboard('{Enter}');
210
+
211
+ // Look for the combobox that should appear in edit mode
212
+ const newCombobox = await body.findByRole('combobox');
213
+ await userEvent.click(newCombobox);
214
+
215
+ const newSearchField = await body.findByPlaceholderText('Search…');
216
+ await userEvent.click(newSearchField);
217
+
218
+ // Type a new object name (this will create a new object)
219
+ const newOrgName = 'Salieri LLC';
220
+ await userEvent.type(newSearchField, newOrgName);
221
+
222
+ // Wait for the create option to appear (debounce is 200ms, allow time for render)
223
+ const createOption = await body.findByRole('option', undefined, { timeout: 500 });
224
+ await expect(createOption).toBeVisible();
225
+
226
+ // Press Enter to select/create
227
+ await userEvent.keyboard('{Enter}');
228
+
229
+ // Look for and click save button
230
+ const createReferencedObjectForm = await body.findByTestId('create-referenced-object-form');
231
+ const saveObjectButton = await within(createReferencedObjectForm).findByTestId('save-button');
232
+ await userEvent.click(saveObjectButton);
233
+
234
+ // Verify the new object was created and relation was set
235
+ await expect(newTargetCell).toHaveTextContent(newOrgName);
236
+ },
237
+ } as any;
@@ -2,19 +2,20 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
+ import { useAtomValue } from '@effect-atom/atom-react';
5
6
  import React from 'react';
6
7
 
7
- import { DropdownMenu, useTranslation } from '@dxos/react-ui';
8
+ import { DropdownMenu, toLocalizedString, useTranslation } from '@dxos/react-ui';
8
9
 
9
- import { type TableModel, type ModalController } from '../../model';
10
+ import { type ModalController, type TableModel } from '../../model';
10
11
  import { translationKey } from '../../translations';
11
12
 
12
13
  type RowActionsMenuProps = { model: TableModel; modals: ModalController };
13
14
 
14
15
  export const RowActionsMenu = ({ model, modals }: RowActionsMenuProps) => {
15
16
  const { t } = useTranslation(translationKey);
16
- const hasSelection = model.selection.hasSelection.value;
17
- const state = modals.state.value;
17
+ const hasSelection = model.selection.hasSelection;
18
+ const state = useAtomValue(modals.state);
18
19
  if (state?.type !== 'row') {
19
20
  return null;
20
21
  }
@@ -23,24 +24,32 @@ export const RowActionsMenu = ({ model, modals }: RowActionsMenuProps) => {
23
24
  <DropdownMenu.VirtualTrigger virtualRef={modals.trigger} />
24
25
  <DropdownMenu.Content>
25
26
  <DropdownMenu.Viewport>
27
+ {/* Custom actions */}
28
+ {model.rowActions?.length > 0 && (
29
+ <>
30
+ <DropdownMenu.Group>
31
+ {model.rowActions?.map((action) => (
32
+ <DropdownMenu.Item
33
+ key={action.id}
34
+ data-testid={`row-action-${action.id}`}
35
+ onClick={() => {
36
+ modals.close();
37
+ model.handleRowAction(action.id, state.rowIndex);
38
+ }}
39
+ >
40
+ {toLocalizedString(action.label, t)}
41
+ </DropdownMenu.Item>
42
+ ))}
43
+ </DropdownMenu.Group>
44
+ <DropdownMenu.Separator />
45
+ </>
46
+ )}
47
+ {/* Default actions */}
26
48
  {model.features.dataEditable !== false && (
27
49
  <DropdownMenu.Item data-testid='row-menu-delete' onClick={() => model.deleteRow(state.rowIndex)}>
28
50
  {t(hasSelection ? 'bulk delete row label' : 'delete row label')}
29
51
  </DropdownMenu.Item>
30
52
  )}
31
- {/* Custom actions */}
32
- {model.rowActions?.map((action) => (
33
- <DropdownMenu.Item
34
- key={action.id}
35
- data-testid={`row-action-${action.id}`}
36
- onClick={() => {
37
- modals.close();
38
- model.handleRowAction(action.id, state.rowIndex);
39
- }}
40
- >
41
- {t(action.translationKey)}
42
- </DropdownMenu.Item>
43
- ))}
44
53
  </DropdownMenu.Viewport>
45
54
  <DropdownMenu.Arrow />
46
55
  </DropdownMenu.Content>