@onehat/ui 0.4.76 → 0.4.78

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 (58) 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 +52 -18
  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 +193 -20
  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 +1 -1
  36. package/src/Components/Hoc/withPdfButtons.js +1 -1
  37. package/src/Components/Hoc/withSelection.js +26 -4
  38. package/src/Components/Layout/AsyncOperation.js +299 -195
  39. package/src/Components/Messages/GlobalModals.js +1 -2
  40. package/src/Components/Panel/Panel.js +14 -2
  41. package/src/Components/Panel/TabPanel.js +1 -1
  42. package/src/Components/Panel/TreePanel.js +1 -1
  43. package/src/Components/Report/Report.js +106 -17
  44. package/src/Components/Toolbar/PaginationToolbar.js +4 -3
  45. package/src/Components/Toolbar/Toolbar.js +6 -3
  46. package/src/Components/Tree/Tree.js +218 -147
  47. package/src/Components/Tree/TreeNode.js +20 -13
  48. package/src/Components/Window/AttachmentDirectoriesEditorWindow.js +34 -0
  49. package/src/Components/Window/AttachmentsEditorWindow.js +34 -0
  50. package/src/Components/index.js +92 -1
  51. package/src/Constants/Attachments.js +2 -0
  52. package/src/Constants/Dates.js +2 -2
  53. package/src/Constants/Progress.js +5 -1
  54. package/src/Models/Schemas/AttachmentDirectories.js +66 -0
  55. package/src/Models/Schemas/Attachments.js +88 -0
  56. package/src/Models/Slices/SystemSlice.js +220 -0
  57. package/src/PlatformImports/Web/Attachments.js +783 -145
  58. 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.76",
3
+ "version": "0.4.78",
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;
@@ -185,7 +185,27 @@ function Form(props) {
185
185
  }),
186
186
  initialValues = _.merge(startingValues, (record && !record.isDestroyed ? record.submitValues : {})),
187
187
  defaultValues = isMultiple ? getNullFieldValues(initialValues, Repository) : initialValues, // when multiple entities, set all default values to null
188
- validatorToUse = validator || (isMultiple ? disableRequiredYupFields(Repository?.schema?.model?.validator) : Repository?.schema?.model?.validator) || yup.object(),
188
+ validatorToUse = (() => {
189
+ // If a custom validator is provided, use it
190
+ if (validator) {
191
+ return validator;
192
+ }
193
+
194
+ // If we have a Repository with a schema, use it (with modifications for multiple records)
195
+ if (Repository?.schema?.model?.validator) {
196
+ return isMultiple
197
+ ? disableRequiredYupFields(Repository.schema.model.validator)
198
+ : Repository.schema.model.validator;
199
+ }
200
+
201
+ // For forms with no fields (like reports), create a schema that defaults to valid
202
+ if (!items || items.length === 0) {
203
+ return yup.object().default({}); // This will make the form valid by default
204
+ }
205
+
206
+ // Fallback to empty schema that allows any fields and defaults to valid
207
+ return yup.object().noUnknown(false).default({});
208
+ })(),
189
209
  {
190
210
  control,
191
211
  formState,
@@ -1131,6 +1151,20 @@ function Form(props) {
1131
1151
  }, [formState.isDirty]);
1132
1152
  }
1133
1153
 
1154
+ useEffect(() => {
1155
+ // For forms with no items (like some reports), manually trigger validation to set valid state
1156
+ if ((!items || items.length === 0) && !columnsConfig) {
1157
+ setTimeout(() => { // ensure the form is fully initialized
1158
+ trigger().then(() => {
1159
+ // Force validity to true for empty forms
1160
+ if (onValidityChange) {
1161
+ onValidityChange(true);
1162
+ }
1163
+ });
1164
+ }, 0);
1165
+ }
1166
+ }, [items, columnsConfig, trigger, onValidityChange]);
1167
+
1134
1168
  if (skipAll) {
1135
1169
  return null;
1136
1170
  }
@@ -1307,6 +1341,23 @@ function Form(props) {
1307
1341
  }
1308
1342
  footerButtons =
1309
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
+ })}
1310
1361
  {onDelete && getEditorMode() === EDITOR_MODE__EDIT && isSingle &&
1311
1362
 
1312
1363
  <HStack className="flex-1 justify-start">
@@ -1376,23 +1427,6 @@ function Form(props) {
1376
1427
  className="text-white"
1377
1428
  text={submitBtnLabel || 'Submit'}
1378
1429
  />}
1379
-
1380
- {additionalFooterButtons && _.map(additionalFooterButtons, (props, ix) => {
1381
- let isDisabled = false;
1382
- if (props.disableOnInvalid) {
1383
- isDisabled = !formState.isValid;
1384
- }
1385
- const key = 'additionalFooterBtn-' + ix;
1386
- return <Button
1387
- {...testProps(key)}
1388
- key={key}
1389
- {...props}
1390
- onPress={(e) => handleSubmit(props.onPress, onSubmitError)(e)}
1391
- icon={props.icon || null}
1392
- text={props.text}
1393
- isDisabled={isDisabled}
1394
- />;
1395
- })}
1396
1430
  </>;
1397
1431
 
1398
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
+ }