ode-explorer 1.4.18-develop-pedago.202410071739 → 1.4.18-develop-pedago.202410141646

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 (55) hide show
  1. package/dist/index.html +48 -48
  2. package/dist/index.js +107 -113
  3. package/dist/version.txt +1 -1
  4. package/explorer.d.ts +1 -1
  5. package/lib/ActionBarContainer.js +26 -32
  6. package/lib/AppAction.js +9 -15
  7. package/lib/DeleteModal.js +8 -16
  8. package/lib/EmptyScreenApp.js +18 -23
  9. package/lib/ExportModal.js +27 -35
  10. package/lib/FolderModal.js +13 -19
  11. package/lib/FoldersList.js +8 -13
  12. package/lib/MoveModal.js +31 -38
  13. package/lib/ResourcesList.js +31 -39
  14. package/lib/components/EmptyScreens/EmptyScreenApp.d.ts +0 -1
  15. package/lib/components/EmptyScreens/EmptyScreenError.d.ts +0 -1
  16. package/lib/components/EmptyScreens/EmptyScreenNoContentInFolder.d.ts +0 -1
  17. package/lib/components/EmptyScreens/EmptyScreenSearch.d.ts +0 -1
  18. package/lib/components/LoadMore.d.ts +1 -2
  19. package/lib/components/OnboardingModal.d.ts +1 -1
  20. package/lib/config/explorer.d.ts +1 -1
  21. package/lib/config/index.d.ts +2 -2
  22. package/lib/features/AccessControl/AccessControl.d.ts +2 -2
  23. package/lib/features/AccessControl/useAccessControl.d.ts +1 -1
  24. package/lib/features/ActionBar/Delete/DeleteModal.d.ts +1 -2
  25. package/lib/features/ActionBar/Disable/DisableModal.d.ts +1 -2
  26. package/lib/features/ActionBar/Export/ExportModal.d.ts +1 -2
  27. package/lib/features/ActionBar/Folder/FolderModal.d.ts +1 -2
  28. package/lib/features/ActionBar/Folder/useFolderModal.d.ts +5 -5
  29. package/lib/features/ActionBar/Move/MoveModal.d.ts +1 -2
  30. package/lib/features/ActionBar/Move/useMoveModal.d.ts +1 -1
  31. package/lib/features/ActionBar/Publish/PublishModal.d.ts +1 -1
  32. package/lib/features/ActionBar/Resource/ResourceModal.d.ts +1 -1
  33. package/lib/features/ActionBar/Share/ShareModal.d.ts +1 -1
  34. package/lib/features/ActionBar/Trash/TrashModal.d.ts +1 -2
  35. package/lib/features/ActionBar/useActionBar.d.ts +2 -2
  36. package/lib/features/DndKit/useDndKit.d.ts +2 -2
  37. package/lib/features/List/DraggableCard.d.ts +3 -3
  38. package/lib/features/List/FolderCard.d.ts +3 -3
  39. package/lib/features/List/FoldersList.d.ts +2 -2
  40. package/lib/features/List/ResourceCard.d.ts +3 -3
  41. package/lib/features/List/ResourcesList.d.ts +2 -2
  42. package/lib/features/SearchForm/useSearchForm.d.ts +1 -2
  43. package/lib/i18n.d.ts +1 -1
  44. package/lib/index.d.ts +2 -2
  45. package/lib/index.js +3 -14
  46. package/lib/index2.js +2 -4
  47. package/lib/providers/index.d.ts +2 -2
  48. package/lib/services/api/index.d.ts +16 -16
  49. package/lib/services/queries/actions.d.ts +18 -0
  50. package/lib/services/queries/index.d.ts +46 -0
  51. package/lib/services/resource/service.d.ts +1 -1
  52. package/lib/store/index.d.ts +9 -9
  53. package/lib/utils/getChildrenIds.d.ts +1 -1
  54. package/lib/utils/isResourceShared.d.ts +1 -1
  55. package/package.json +47 -51
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=138ee851" />
8
+ <link rel="stylesheet" href="/assets/themes/edifice-bootstrap/index.css?v=c6aa24c1" />
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>