ode-explorer 1.4.19 → 1.5.0

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 (69) hide show
  1. package/dist/index.html +48 -48
  2. package/dist/index.js +1387 -76631
  3. package/dist/version.txt +1 -1
  4. package/explorer.d.ts +1 -1
  5. package/lib/ActionBarContainer.js +175 -175
  6. package/lib/AppAction.js +26 -30
  7. package/lib/DeleteModal.js +8 -14
  8. package/lib/DraggableCard.js +25 -0
  9. package/lib/EmptyScreenApp.js +22 -25
  10. package/lib/ExportModal.js +24 -30
  11. package/lib/FolderModal.js +14 -18
  12. package/lib/FoldersList.js +88 -48
  13. package/lib/Library.js +25 -27
  14. package/lib/MoveModal.js +65 -56
  15. package/lib/ResourcesList.js +101 -81
  16. package/lib/components/EmptyScreens/EmptyScreenApp.d.ts +0 -1
  17. package/lib/components/EmptyScreens/EmptyScreenError.d.ts +0 -1
  18. package/lib/components/EmptyScreens/EmptyScreenNoContentInFolder.d.ts +0 -1
  19. package/lib/components/EmptyScreens/EmptyScreenSearch.d.ts +0 -1
  20. package/lib/components/Explorer.d.ts +1 -1
  21. package/lib/components/LoadMore.d.ts +1 -2
  22. package/lib/components/OnboardingModal.d.ts +1 -1
  23. package/lib/config/dndkit.d.ts +2 -0
  24. package/lib/config/{getExplorerConfig.d.ts → explorer.d.ts} +5 -1
  25. package/lib/config/index.d.ts +2 -0
  26. package/lib/features/AccessControl/AccessControl.d.ts +2 -2
  27. package/lib/features/AccessControl/useAccessControl.d.ts +1 -1
  28. package/lib/features/ActionBar/Delete/DeleteModal.d.ts +1 -2
  29. package/lib/features/ActionBar/Disable/DisableModal.d.ts +1 -2
  30. package/lib/features/ActionBar/Export/ExportModal.d.ts +1 -2
  31. package/lib/features/ActionBar/Folder/FolderModal.d.ts +1 -2
  32. package/lib/features/ActionBar/Folder/useFolderModal.d.ts +5 -5
  33. package/lib/features/ActionBar/Move/MoveModal.d.ts +1 -2
  34. package/lib/features/ActionBar/Move/useMoveModal.d.ts +3 -4
  35. package/lib/features/ActionBar/Publish/PublishModal.d.ts +1 -1
  36. package/lib/features/ActionBar/Resource/ResourceModal.d.ts +1 -1
  37. package/lib/features/ActionBar/Share/ShareModal.d.ts +1 -1
  38. package/lib/features/ActionBar/Trash/TrashModal.d.ts +1 -2
  39. package/lib/features/ActionBar/useActionBar.d.ts +2 -2
  40. package/lib/features/DndKit/useDndKit.d.ts +7 -0
  41. package/lib/features/List/DraggableCard.d.ts +6 -0
  42. package/lib/features/List/FolderCard.d.ts +8 -4
  43. package/lib/features/List/FoldersList.d.ts +2 -2
  44. package/lib/features/List/ResourceCard.d.ts +3 -3
  45. package/lib/features/List/ResourcesList.d.ts +2 -2
  46. package/lib/features/SearchForm/useSearchForm.d.ts +1 -2
  47. package/lib/i18n.d.ts +1 -1
  48. package/lib/index.d.ts +2 -2
  49. package/lib/index.js +3 -12
  50. package/lib/index2.js +1017 -952
  51. package/lib/providers/index.d.ts +6 -0
  52. package/lib/services/api/index.d.ts +16 -16
  53. package/lib/services/queries/actions.d.ts +18 -0
  54. package/lib/services/queries/index.d.ts +46 -0
  55. package/lib/services/resource/service.d.ts +11 -0
  56. package/lib/store/index.d.ts +89 -35
  57. package/lib/utils/getChildrenIds.d.ts +2 -0
  58. package/lib/utils/isResourceShared.d.ts +1 -1
  59. package/package.json +52 -53
  60. package/lib/utils/TreeNodeFolderWrapper.d.ts +0 -12
  61. package/lib/utils/addNode.d.ts +0 -6
  62. package/lib/utils/deleteNode.d.ts +0 -4
  63. package/lib/utils/findNodeById.d.ts +0 -2
  64. package/lib/utils/getAncestors.d.ts +0 -2
  65. package/lib/utils/hasChildren.d.ts +0 -2
  66. package/lib/utils/modifyNode.d.ts +0 -2
  67. package/lib/utils/moveNode.d.ts +0 -5
  68. package/lib/utils/updateNode.d.ts +0 -6
  69. package/lib/utils/wrapTreeNode.d.ts +0 -3
package/dist/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Exploration des ressources</title>
7
7
  <link rel="icon" id="favicon" href="" />
8
- <link rel="stylesheet" href="/assets/themes/edifice-bootstrap/index.css?v=4fe9d0fa" />
8
+ <link rel="stylesheet" href="/assets/themes/edifice-bootstrap/index.css?v=ec2f8eda" />
9
9
  <script type="module" crossorigin src="/index.js"></script>
10
10
  </head>
11
11
 
@@ -15,102 +15,102 @@
15
15
  <div id="portal"></div>
16
16
  <!-- SET INITIALISATION CONFIG -->
17
17
  <script>
18
- var WORFLOW_ACCESS = "org.entcore.blog.controllers.BlogController|blog";
18
+ var WORFLOW_ACCESS = 'org.entcore.blog.controllers.BlogController|blog';
19
19
  var WORKFLOW_CREATE =
20
- "org.entcore.blog.controllers.BlogController|create";
20
+ 'org.entcore.blog.controllers.BlogController|create';
21
21
  var WORKFLOW_CREATE_PUBLIC =
22
- "org.entcore.blog.controllers.BlogController|createPublicBlog";
23
- var WORKFLOW_PRINT = "org.entcore.blog.controllers.BlogController|print";
22
+ 'org.entcore.blog.controllers.BlogController|createPublicBlog';
23
+ var WORKFLOW_PRINT = 'org.entcore.blog.controllers.BlogController|print';
24
24
  var WORKFLOW_PUBLISH =
25
- "org.entcore.blog.controllers.BlogController|publish";
25
+ 'org.entcore.blog.controllers.BlogController|publish';
26
26
  var explorerConfig = {
27
- app: "blog",
28
- types: ["blog"],
27
+ app: 'blog',
28
+ types: ['blog'],
29
29
  enableOnboarding: false,
30
30
  filters: [
31
- { id: "owner", defaultValue: true },
32
- { id: "public", defaultValue: false },
33
- { id: "shared", defaultValue: true },
31
+ { id: 'owner', defaultValue: true },
32
+ { id: 'public', defaultValue: false },
33
+ { id: 'shared', defaultValue: true },
34
34
  ],
35
35
  orders: [
36
- { id: "name", defaultValue: "asc", i18n: "explorer.sorts.name" },
37
- { id: "updatedAt", i18n: "explorer.sorts.updatedat" },
36
+ { id: 'name', defaultValue: 'asc', i18n: 'explorer.sorts.name' },
37
+ { id: 'updatedAt', i18n: 'explorer.sorts.updatedat' },
38
38
  ],
39
39
  actions: [
40
40
  {
41
- id: "open",
41
+ id: 'open',
42
42
  workflow: WORFLOW_ACCESS,
43
- target: "actionbar",
44
- right: "read",
43
+ target: 'actionbar',
44
+ right: 'read',
45
45
  },
46
46
  {
47
- id: "share",
47
+ id: 'share',
48
48
  workflow: WORFLOW_ACCESS,
49
- target: "actionbar",
50
- right: "manager",
49
+ target: 'actionbar',
50
+ right: 'manager',
51
51
  },
52
52
  {
53
- id: "edit",
53
+ id: 'edit',
54
54
  workflow: WORFLOW_ACCESS,
55
- target: "actionbar",
56
- right: "manager",
55
+ target: 'actionbar',
56
+ right: 'manager',
57
57
  },
58
58
  {
59
- id: "create",
59
+ id: 'create',
60
60
  workflow: WORKFLOW_CREATE,
61
- target: "tree",
61
+ target: 'tree',
62
62
  },
63
63
  {
64
- id: "createPublic",
64
+ id: 'createPublic',
65
65
  workflow: WORKFLOW_CREATE_PUBLIC,
66
- target: "tree",
66
+ target: 'tree',
67
67
  },
68
68
  {
69
- id: "move",
69
+ id: 'move',
70
70
  workflow: WORFLOW_ACCESS,
71
- target: "actionbar",
72
- right: "read",
71
+ target: 'actionbar',
72
+ right: 'read',
73
73
  },
74
74
  {
75
- id: "publish",
75
+ id: 'publish',
76
76
  workflow: WORKFLOW_PUBLISH,
77
- target: "actionbar",
78
- right: "creator",
77
+ target: 'actionbar',
78
+ right: 'creator',
79
79
  },
80
80
  {
81
- id: "print",
81
+ id: 'print',
82
82
  workflow: WORKFLOW_PRINT,
83
- target: "actionbar",
84
- right: "read",
83
+ target: 'actionbar',
84
+ right: 'read',
85
85
  },
86
86
  {
87
- id: "delete",
87
+ id: 'delete',
88
88
  workflow: WORFLOW_ACCESS,
89
- target: "actionbar",
90
- right: "read",
89
+ target: 'actionbar',
90
+ right: 'read',
91
91
  },
92
92
  ],
93
93
  trashActions: [
94
94
  {
95
- id: "restore",
95
+ id: 'restore',
96
96
  available: true,
97
- target: "actionbar",
98
- workflow: "",
99
- right: "manager",
97
+ target: 'actionbar',
98
+ workflow: '',
99
+ right: 'manager',
100
100
  },
101
101
  {
102
- id: "delete",
102
+ id: 'delete',
103
103
  available: true,
104
- target: "actionbar",
105
- workflow: "",
106
- right: "manager",
104
+ target: 'actionbar',
105
+ workflow: '',
106
+ right: 'manager',
107
107
  },
108
108
  ],
109
109
  };
110
110
  ////
111
- var rootElement = document.querySelector("[data-explorer-config]");
111
+ var rootElement = document.querySelector('[data-explorer-config]');
112
112
  rootElement.setAttribute(
113
- "data-explorer-config",
113
+ 'data-explorer-config',
114
114
  JSON.stringify(explorerConfig),
115
115
  );
116
116
  </script>