@onehat/ui 0.4.77 → 0.4.79

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 (59) hide show
  1. package/package.json +1 -1
  2. package/src/Components/Editor/AttachmentDirectoriesEditor.js +51 -0
  3. package/src/Components/Editor/AttachmentsEditor.js +81 -0
  4. package/src/Components/Form/Field/Combo/AttachmentDirectoriesCombo.js +20 -0
  5. package/src/Components/Form/Field/Combo/AttachmentDirectoriesComboEditor.js +22 -0
  6. package/src/Components/Form/Field/Combo/AttachmentsCombo.js +20 -0
  7. package/src/Components/Form/Field/Combo/AttachmentsComboEditor.js +22 -0
  8. package/src/Components/Form/Field/Tag/AttachmentDirectoriesTag.js +22 -0
  9. package/src/Components/Form/Field/Tag/AttachmentDirectoriesTagEditor.js +22 -0
  10. package/src/Components/Form/Field/Tag/AttachmentsTag.js +22 -0
  11. package/src/Components/Form/Field/Tag/AttachmentsTagEditor.js +22 -0
  12. package/src/Components/Form/Form.js +17 -17
  13. package/src/Components/Grid/AttachmentDirectoriesFilteredGrid.js +17 -0
  14. package/src/Components/Grid/AttachmentDirectoriesFilteredGridEditor.js +17 -0
  15. package/src/Components/Grid/AttachmentDirectoriesFilteredInlineGridEditor.js +17 -0
  16. package/src/Components/Grid/AttachmentDirectoriesFilteredSideGridEditor.js +17 -0
  17. package/src/Components/Grid/AttachmentDirectoriesGrid.js +20 -0
  18. package/src/Components/Grid/AttachmentDirectoriesGridEditor.js +27 -0
  19. package/src/Components/Grid/AttachmentDirectoriesInlineGridEditor.js +25 -0
  20. package/src/Components/Grid/AttachmentDirectoriesSideGridEditor.js +24 -0
  21. package/src/Components/Grid/AttachmentsFilteredGrid.js +17 -0
  22. package/src/Components/Grid/AttachmentsFilteredGridEditor.js +17 -0
  23. package/src/Components/Grid/AttachmentsFilteredInlineGridEditor.js +17 -0
  24. package/src/Components/Grid/AttachmentsFilteredSideGridEditor.js +17 -0
  25. package/src/Components/Grid/AttachmentsGrid.js +20 -0
  26. package/src/Components/Grid/AttachmentsGridEditor.js +27 -0
  27. package/src/Components/Grid/AttachmentsInlineGridEditor.js +25 -0
  28. package/src/Components/Grid/AttachmentsSideGridEditor.js +24 -0
  29. package/src/Components/Grid/Columns/AttachmentDirectoriesGridColumns.js +32 -0
  30. package/src/Components/Grid/Columns/AttachmentsGridColumns.js +133 -0
  31. package/src/Components/Grid/Grid.js +194 -21
  32. package/src/Components/Grid/GridHeaderRow.js +10 -17
  33. package/src/Components/Grid/GridRow.js +49 -22
  34. package/src/Components/Grid/RowHandle.js +8 -6
  35. package/src/Components/Hoc/withEditor.js +18 -1
  36. package/src/Components/Hoc/withModal.js +4 -0
  37. package/src/Components/Hoc/withPdfButtons.js +1 -1
  38. package/src/Components/Hoc/withSelection.js +26 -4
  39. package/src/Components/Layout/AsyncOperation.js +299 -195
  40. package/src/Components/Messages/GlobalModals.js +1 -2
  41. package/src/Components/Panel/Panel.js +14 -2
  42. package/src/Components/Panel/TabPanel.js +1 -1
  43. package/src/Components/Panel/TreePanel.js +1 -1
  44. package/src/Components/Report/Report.js +106 -17
  45. package/src/Components/Toolbar/PaginationToolbar.js +4 -3
  46. package/src/Components/Toolbar/Toolbar.js +6 -3
  47. package/src/Components/Tree/Tree.js +219 -148
  48. package/src/Components/Tree/TreeNode.js +20 -13
  49. package/src/Components/Window/AttachmentDirectoriesEditorWindow.js +34 -0
  50. package/src/Components/Window/AttachmentsEditorWindow.js +34 -0
  51. package/src/Components/index.js +92 -1
  52. package/src/Constants/Attachments.js +2 -0
  53. package/src/Constants/Dates.js +2 -2
  54. package/src/Constants/Progress.js +5 -1
  55. package/src/Models/Schemas/AttachmentDirectories.js +66 -0
  56. package/src/Models/Schemas/Attachments.js +88 -0
  57. package/src/Models/Slices/SystemSlice.js +220 -0
  58. package/src/PlatformImports/Web/Attachments.js +855 -161
  59. package/src/Styles/Global.css +7 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.4.77",
3
+ "version": "0.4.79",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -0,0 +1,51 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+ import Editor from './Editor.js';
8
+ import _ from 'lodash';
9
+
10
+ export default function AttachmentDirectoriesEditor(props) {
11
+
12
+ const
13
+ items = [
14
+ {
15
+ "type": "Column",
16
+ "flex": 1,
17
+ "defaults": {},
18
+ "items": [
19
+ {
20
+ "type": "FieldSet",
21
+ "title": "General",
22
+ "reference": "general",
23
+ "defaults": {},
24
+ "items": [
25
+ {
26
+ "name": "attachment_directories__name"
27
+ },
28
+ {
29
+ "name": "attachment_directories__model"
30
+ },
31
+ {
32
+ "name": "attachment_directories__modelid"
33
+ }
34
+ ]
35
+ }
36
+ ]
37
+ }
38
+ ],
39
+ ancillaryItems = [],
40
+ columnDefaults = { // defaults for each column defined in 'items', for use in Form amd Viewer
41
+ };
42
+ return <Editor
43
+ reference="AttachmentDirectoriesEditor"
44
+ title="AttachmentDirectories"
45
+ items={items}
46
+ ancillaryItems={ancillaryItems}
47
+ columnDefaults={columnDefaults}
48
+ {...props}
49
+ />;
50
+ }
51
+
@@ -0,0 +1,81 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+ import Editor from './Editor.js';
8
+ import _ from 'lodash';
9
+
10
+ export default function AttachmentsEditor(props) {
11
+
12
+ const
13
+ items = [
14
+ {
15
+ "type": "Column",
16
+ "flex": 1,
17
+ "defaults": {},
18
+ "items": [
19
+ {
20
+ "type": "FieldSet",
21
+ "title": "General",
22
+ "reference": "general",
23
+ "defaults": {},
24
+ "items": [
25
+ {
26
+ "name": "attachments__model_display"
27
+ },
28
+ {
29
+ "name": "attachments__size_formatted"
30
+ },
31
+ {
32
+ "name": "attachments__info"
33
+ },
34
+ {
35
+ "name": "attachments__uri"
36
+ },
37
+ {
38
+ "name": "attachments__attachment_directory_id"
39
+ },
40
+ {
41
+ "name": "attachments__abs_path"
42
+ },
43
+ {
44
+ "name": "attachments__model"
45
+ },
46
+ {
47
+ "name": "attachments__modelid"
48
+ },
49
+ {
50
+ "name": "attachments__uuid"
51
+ },
52
+ {
53
+ "name": "attachments__path"
54
+ },
55
+ {
56
+ "name": "attachments__filename"
57
+ },
58
+ {
59
+ "name": "attachments__mimetype"
60
+ },
61
+ {
62
+ "name": "attachments__size"
63
+ }
64
+ ]
65
+ }
66
+ ]
67
+ }
68
+ ],
69
+ ancillaryItems = [],
70
+ columnDefaults = { // defaults for each column defined in 'items', for use in Form amd Viewer
71
+ };
72
+ return <Editor
73
+ reference="AttachmentsEditor"
74
+ title="Attachments"
75
+ items={items}
76
+ ancillaryItems={ancillaryItems}
77
+ columnDefaults={columnDefaults}
78
+ {...props}
79
+ />;
80
+ }
81
+
@@ -0,0 +1,20 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import Combo from './Combo.js';
9
+
10
+ function AttachmentDirectoriesCombo(props) {
11
+ return <Combo
12
+ reference="AttachmentDirectoriesCombo"
13
+ model="AttachmentDirectories"
14
+ uniqueRepository={true}
15
+ usePermissions={true}
16
+ {...props}
17
+ />;
18
+ }
19
+
20
+ export default AttachmentDirectoriesCombo;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import { ComboEditor } from './Combo.js';
9
+ import AttachmentDirectoriesEditorWindow from '../../../Window/AttachmentDirectoriesEditorWindow.js';
10
+
11
+ function AttachmentDirectoriesComboEditor(props) {
12
+ return <ComboEditor
13
+ reference="AttachmentDirectoriesComboEditor"
14
+ model="AttachmentDirectories"
15
+ uniqueRepository={true}
16
+ Editor={AttachmentDirectoriesEditorWindow}
17
+ usePermissions={true}
18
+ {...props}
19
+ />;
20
+ }
21
+
22
+ export default AttachmentDirectoriesComboEditor;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import Combo from './Combo.js';
9
+
10
+ function AttachmentsCombo(props) {
11
+ return <Combo
12
+ reference="AttachmentsCombo"
13
+ model="Attachments"
14
+ uniqueRepository={true}
15
+ usePermissions={true}
16
+ {...props}
17
+ />;
18
+ }
19
+
20
+ export default AttachmentsCombo;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import { ComboEditor } from './Combo.js';
9
+ import AttachmentsEditorWindow from '../../../Window/AttachmentsEditorWindow.js';
10
+
11
+ function AttachmentsComboEditor(props) {
12
+ return <ComboEditor
13
+ reference="AttachmentsComboEditor"
14
+ model="Attachments"
15
+ uniqueRepository={true}
16
+ Editor={AttachmentsEditorWindow}
17
+ usePermissions={true}
18
+ {...props}
19
+ />;
20
+ }
21
+
22
+ export default AttachmentsComboEditor;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import Tag from './Tag.js';
9
+ import AttachmentDirectoriesEditorWindow from '../../../Window/AttachmentDirectoriesEditorWindow.js';
10
+
11
+ function AttachmentDirectoriesTag(props) {
12
+ return <Tag
13
+ reference="AttachmentDirectoriesTag"
14
+ model="AttachmentDirectories"
15
+ uniqueRepository={true}
16
+ Editor={AttachmentDirectoriesEditorWindow}
17
+ usePermissions={true}
18
+ {...props}
19
+ />;
20
+ }
21
+
22
+ export default AttachmentDirectoriesTag;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import { TagEditor } from './Tag.js';
9
+ import AttachmentDirectoriesEditorWindow from '../../../Window/AttachmentDirectoriesEditorWindow.js';
10
+
11
+ function AttachmentDirectoriesTagEditor(props) {
12
+ return <TagEditor
13
+ reference="AttachmentDirectoriesTagEditor"
14
+ model="AttachmentDirectories"
15
+ uniqueRepository={true}
16
+ Editor={AttachmentDirectoriesEditorWindow}
17
+ usePermissions={true}
18
+ {...props}
19
+ />;
20
+ }
21
+
22
+ export default AttachmentDirectoriesTagEditor;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import Tag from './Tag.js';
9
+ import AttachmentsEditorWindow from '../../../Window/AttachmentsEditorWindow.js';
10
+
11
+ function AttachmentsTag(props) {
12
+ return <Tag
13
+ reference="AttachmentsTag"
14
+ model="Attachments"
15
+ uniqueRepository={true}
16
+ Editor={AttachmentsEditorWindow}
17
+ usePermissions={true}
18
+ {...props}
19
+ />;
20
+ }
21
+
22
+ export default AttachmentsTag;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import { TagEditor } from './Tag.js';
9
+ import AttachmentsEditorWindow from '../../../Window/AttachmentsEditorWindow.js';
10
+
11
+ function AttachmentsTagEditor(props) {
12
+ return <TagEditor
13
+ reference="AttachmentsTagEditor"
14
+ model="Attachments"
15
+ uniqueRepository={true}
16
+ Editor={AttachmentsEditorWindow}
17
+ usePermissions={true}
18
+ {...props}
19
+ />;
20
+ }
21
+
22
+ export default AttachmentsTagEditor;
@@ -1341,6 +1341,23 @@ function Form(props) {
1341
1341
  }
1342
1342
  footerButtons =
1343
1343
  <>
1344
+
1345
+ {additionalFooterButtons && _.map(additionalFooterButtons, (props, ix) => {
1346
+ let isDisabled = false;
1347
+ if (props.disableOnInvalid) {
1348
+ isDisabled = !formState.isValid;
1349
+ }
1350
+ const key = 'additionalFooterBtn-' + ix;
1351
+ return <Button
1352
+ {...testProps(key)}
1353
+ key={key}
1354
+ {...props}
1355
+ onPress={(e) => props.skipSubmit ? props.onPress() : handleSubmit(props.onPress, onSubmitError)(e)}
1356
+ icon={props.icon || null}
1357
+ text={props.text}
1358
+ isDisabled={isDisabled}
1359
+ />;
1360
+ })}
1344
1361
  {onDelete && getEditorMode() === EDITOR_MODE__EDIT && isSingle &&
1345
1362
 
1346
1363
  <HStack className="flex-1 justify-start">
@@ -1410,23 +1427,6 @@ function Form(props) {
1410
1427
  className="text-white"
1411
1428
  text={submitBtnLabel || 'Submit'}
1412
1429
  />}
1413
-
1414
- {additionalFooterButtons && _.map(additionalFooterButtons, (props, ix) => {
1415
- let isDisabled = false;
1416
- if (props.disableOnInvalid) {
1417
- isDisabled = !formState.isValid;
1418
- }
1419
- const key = 'additionalFooterBtn-' + ix;
1420
- return <Button
1421
- {...testProps(key)}
1422
- key={key}
1423
- {...props}
1424
- onPress={(e) => handleSubmit(props.onPress, onSubmitError)(e)}
1425
- icon={props.icon || null}
1426
- text={props.text}
1427
- isDisabled={isDisabled}
1428
- />;
1429
- })}
1430
1430
  </>;
1431
1431
 
1432
1432
  if (editorType === EDITOR_TYPE__INLINE) {
@@ -0,0 +1,17 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import AttachmentDirectoriesGrid from './AttachmentDirectoriesGrid.js';
9
+
10
+ export default function AttachmentDirectoriesFilteredGrid(props) {
11
+ return <AttachmentDirectoriesGrid
12
+ reference="AttachmentDirectoriesFilteredGrid"
13
+ useFilters={true}
14
+
15
+ {...props}
16
+ />;
17
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import AttachmentDirectoriesGridEditor from './AttachmentDirectoriesGridEditor.js';
9
+
10
+ export default function AttachmentDirectoriesFilteredGridEditor(props) {
11
+ return <AttachmentDirectoriesGridEditor
12
+ reference="AttachmentDirectoriesFilteredGridEditor"
13
+ useFilters={true}
14
+
15
+ {...props}
16
+ />;
17
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import AttachmentDirectoriesInlineGridEditor from './AttachmentDirectoriesInlineGridEditor.js';
9
+
10
+ export default function AttachmentDirectoriesFilteredInlineGridEditor(props) {
11
+ return <AttachmentDirectoriesInlineGridEditor
12
+ reference="AttachmentDirectoriesFilteredInlineGridEditor"
13
+ useFilters={true}
14
+
15
+ {...props}
16
+ />;
17
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import AttachmentDirectoriesSideGridEditor from './AttachmentDirectoriesSideGridEditor.js';
9
+
10
+ export default function AttachmentDirectoriesFilteredSideGridEditor(props) {
11
+ return <AttachmentDirectoriesSideGridEditor
12
+ reference="AttachmentDirectoriesFilteredSideGridEditor"
13
+ useFilters={true}
14
+
15
+ {...props}
16
+ />;
17
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import Grid from './Grid.js';
9
+ import AttachmentDirectoriesGridColumns from './Columns/AttachmentDirectoriesGridColumns.js';
10
+
11
+ export default function AttachmentDirectoriesGrid(props) {
12
+ return <Grid
13
+ reference="AttachmentDirectoriesGrid"
14
+ model="AttachmentDirectories"
15
+ usePermissions={true}
16
+ columnsConfig={AttachmentDirectoriesGridColumns}
17
+
18
+ {...props}
19
+ />;
20
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import {
9
+ SELECTION_MODE_SINGLE,
10
+ } from '../../Constants/Selection.js';
11
+ import { WindowedGridEditor } from './Grid.js';
12
+ import AttachmentDirectoriesEditorWindow from '../Window/AttachmentDirectoriesEditorWindow.js';
13
+ import AttachmentDirectoriesGridColumns from './Columns/AttachmentDirectoriesGridColumns.js';
14
+
15
+ export default function AttachmentDirectoriesGridEditor(props) {
16
+ return <WindowedGridEditor
17
+ reference="AttachmentDirectoriesGridEditor"
18
+ model="AttachmentDirectories"
19
+ usePermissions={true}
20
+ selectionMode={SELECTION_MODE_SINGLE}
21
+ Editor={AttachmentDirectoriesEditorWindow}
22
+ columnsConfig={AttachmentDirectoriesGridColumns}
23
+
24
+
25
+ {...props}
26
+ />;
27
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import {
9
+ SELECTION_MODE_SINGLE,
10
+ } from '../../Constants/Selection.js';
11
+ import { InlineGridEditor } from './Grid.js';
12
+ import AttachmentDirectoriesGridColumns from './Columns/AttachmentDirectoriesGridColumns.js';
13
+
14
+ export default function AttachmentDirectoriesInlineGridEditor(props) {
15
+ return <InlineGridEditor
16
+ reference="AttachmentDirectoriesInlineGridEditor"
17
+ model="AttachmentDirectories"
18
+ usePermissions={true}
19
+ selectionMode={SELECTION_MODE_SINGLE}
20
+ columnsConfig={AttachmentDirectoriesGridColumns}
21
+
22
+
23
+ {...props}
24
+ />;
25
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import { SideGridEditor } from './Grid.js';
9
+ import AttachmentDirectoriesEditor from '../Editor/AttachmentDirectoriesEditor.js';
10
+ import AttachmentDirectoriesGridColumns from './Columns/AttachmentDirectoriesGridColumns.js';
11
+
12
+ export default function AttachmentDirectoriesSideGridEditor(props) {
13
+ return <SideGridEditor
14
+ reference="AttachmentDirectoriesSideGridEditor"
15
+ model="AttachmentDirectories"
16
+ usePermissions={true}
17
+ isCollapsible={false}
18
+ Editor={AttachmentDirectoriesEditor}
19
+ columnsConfig={AttachmentDirectoriesGridColumns}
20
+
21
+
22
+ {...props}
23
+ />;
24
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import AttachmentsGrid from './AttachmentsGrid.js';
9
+
10
+ export default function AttachmentsFilteredGrid(props) {
11
+ return <AttachmentsGrid
12
+ reference="AttachmentsFilteredGrid"
13
+ useFilters={true}
14
+
15
+ {...props}
16
+ />;
17
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import AttachmentsGridEditor from './AttachmentsGridEditor.js';
9
+
10
+ export default function AttachmentsFilteredGridEditor(props) {
11
+ return <AttachmentsGridEditor
12
+ reference="AttachmentsFilteredGridEditor"
13
+ useFilters={true}
14
+
15
+ {...props}
16
+ />;
17
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import AttachmentsInlineGridEditor from './AttachmentsInlineGridEditor.js';
9
+
10
+ export default function AttachmentsFilteredInlineGridEditor(props) {
11
+ return <AttachmentsInlineGridEditor
12
+ reference="AttachmentsFilteredInlineGridEditor"
13
+ useFilters={true}
14
+
15
+ {...props}
16
+ />;
17
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import AttachmentsSideGridEditor from './AttachmentsSideGridEditor.js';
9
+
10
+ export default function AttachmentsFilteredSideGridEditor(props) {
11
+ return <AttachmentsSideGridEditor
12
+ reference="AttachmentsFilteredSideGridEditor"
13
+ useFilters={true}
14
+
15
+ {...props}
16
+ />;
17
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import Grid from './Grid.js';
9
+ import AttachmentsGridColumns from './Columns/AttachmentsGridColumns.js';
10
+
11
+ export default function AttachmentsGrid(props) {
12
+ return <Grid
13
+ reference="AttachmentsGrid"
14
+ model="Attachments"
15
+ usePermissions={true}
16
+ columnsConfig={AttachmentsGridColumns}
17
+
18
+ {...props}
19
+ />;
20
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * COPYRIGHT NOTICE
3
+ * This file is categorized as "Custom Source Code"
4
+ * and is subject to the terms and conditions defined in the
5
+ * "LICENSE.txt" file, which is part of this source code package.
6
+ */
7
+
8
+ import {
9
+ SELECTION_MODE_SINGLE,
10
+ } from '../../Constants/Selection.js';
11
+ import { WindowedGridEditor } from './Grid.js';
12
+ import AttachmentsEditorWindow from '../Window/AttachmentsEditorWindow.js';
13
+ import AttachmentsGridColumns from './Columns/AttachmentsGridColumns.js';
14
+
15
+ export default function AttachmentsGridEditor(props) {
16
+ return <WindowedGridEditor
17
+ reference="AttachmentsGridEditor"
18
+ model="Attachments"
19
+ usePermissions={true}
20
+ selectionMode={SELECTION_MODE_SINGLE}
21
+ Editor={AttachmentsEditorWindow}
22
+ columnsConfig={AttachmentsGridColumns}
23
+
24
+
25
+ {...props}
26
+ />;
27
+ }