@nextcloud/files 3.6.0 → 3.8.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.
- package/dist/fileListFilters.d.ts +86 -0
- package/dist/index.cjs +569 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.mjs +569 -16
- package/dist/index.mjs.map +1 -1
- package/dist/navigation/index.d.ts +7 -0
- package/dist/navigation/view.d.ts +5 -0
- package/dist/utils/fileSorting.d.ts +2 -1
- package/dist/utils/sorting.d.ts +1 -1
- package/dist/vendor.LICENSE.txt +9 -1
- package/package.json +14 -12
|
@@ -57,6 +57,10 @@ interface ViewData {
|
|
|
57
57
|
* haven't customized their sorting column
|
|
58
58
|
*/
|
|
59
59
|
defaultSortKey?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Method called to load child views if any
|
|
62
|
+
*/
|
|
63
|
+
loadChildViews?: (view: View) => Promise<void>;
|
|
60
64
|
}
|
|
61
65
|
export declare class View implements ViewData {
|
|
62
66
|
private _view;
|
|
@@ -80,5 +84,6 @@ export declare class View implements ViewData {
|
|
|
80
84
|
get expanded(): boolean | undefined;
|
|
81
85
|
set expanded(expanded: boolean | undefined);
|
|
82
86
|
get defaultSortKey(): string | undefined;
|
|
87
|
+
get loadChildViews(): ((view: View) => Promise<void>) | undefined;
|
|
83
88
|
}
|
|
84
89
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { INode } from '../files/node';
|
|
2
|
+
import { SortingOrder } from './sorting';
|
|
2
3
|
|
|
3
4
|
export declare enum FilesSortingMode {
|
|
4
5
|
Name = "basename",
|
|
@@ -14,7 +15,7 @@ export interface FilesSortingOptions {
|
|
|
14
15
|
/**
|
|
15
16
|
* @default 'asc'
|
|
16
17
|
*/
|
|
17
|
-
sortingOrder?:
|
|
18
|
+
sortingOrder?: SortingOrder;
|
|
18
19
|
/**
|
|
19
20
|
* If set to true nodes marked as favorites are ordered on top of all other nodes
|
|
20
21
|
* @default false
|
package/dist/utils/sorting.d.ts
CHANGED
package/dist/vendor.LICENSE.txt
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
Included dependencies:
|
|
2
2
|
|
|
3
|
+
@nextcloud/event-bus
|
|
4
|
+
version: 3.3.1
|
|
5
|
+
license: GPL-3.0-or-later
|
|
6
|
+
|
|
3
7
|
fast-xml-parser
|
|
4
|
-
version: 4.4.
|
|
8
|
+
version: 4.4.1
|
|
5
9
|
license: MIT
|
|
6
10
|
|
|
7
11
|
is-svg
|
|
8
12
|
version: 5.0.1
|
|
9
13
|
license: MIT
|
|
10
14
|
|
|
15
|
+
semver
|
|
16
|
+
version: 7.6.3
|
|
17
|
+
license: ISC
|
|
18
|
+
|
|
11
19
|
strnum
|
|
12
20
|
version: 1.0.5
|
|
13
21
|
license: MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextcloud/files",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Nextcloud files utils",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "vite --mode production build",
|
|
32
|
-
"build:doc": "typedoc
|
|
32
|
+
"build:doc": "typedoc && touch dist/doc/.nojekyll",
|
|
33
33
|
"dev": "vite --mode development build",
|
|
34
34
|
"watch": "vite --mode development build --watch",
|
|
35
35
|
"lint": "eslint .",
|
|
@@ -53,16 +53,17 @@
|
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@codecov/vite-plugin": "^0.0.1-beta.10",
|
|
55
55
|
"@nextcloud/eslint-config": "^8.4.1",
|
|
56
|
+
"@nextcloud/event-bus": "^3.3.1",
|
|
56
57
|
"@nextcloud/typings": "^1.9.1",
|
|
57
58
|
"@nextcloud/vite-config": "^2.1.0",
|
|
58
|
-
"@types/node": "^
|
|
59
|
-
"@vitest/coverage-istanbul": "^2.0.
|
|
60
|
-
"fast-xml-parser": "^4.4.
|
|
61
|
-
"jsdom": "^24.1.
|
|
59
|
+
"@types/node": "^22.1.0",
|
|
60
|
+
"@vitest/coverage-istanbul": "^2.0.5",
|
|
61
|
+
"fast-xml-parser": "^4.4.1",
|
|
62
|
+
"jsdom": "^24.1.1",
|
|
62
63
|
"tslib": "^2.6.3",
|
|
63
|
-
"typedoc": "^0.26.
|
|
64
|
-
"typescript": "^5.5.
|
|
65
|
-
"vite": "^5.3.
|
|
64
|
+
"typedoc": "^0.26.5",
|
|
65
|
+
"typescript": "^5.5.4",
|
|
66
|
+
"vite": "^5.3.5",
|
|
66
67
|
"vitest": "^2.0.2"
|
|
67
68
|
},
|
|
68
69
|
"dependencies": {
|
|
@@ -70,12 +71,13 @@
|
|
|
70
71
|
"@nextcloud/capabilities": "^1.2.0",
|
|
71
72
|
"@nextcloud/l10n": "^3.1.0",
|
|
72
73
|
"@nextcloud/logger": "^3.0.2",
|
|
73
|
-
"@nextcloud/paths": "^2.1
|
|
74
|
+
"@nextcloud/paths": "^2.2.1",
|
|
74
75
|
"@nextcloud/router": "^3.0.1",
|
|
75
|
-
"@nextcloud/sharing": "^0.2.
|
|
76
|
+
"@nextcloud/sharing": "^0.2.3",
|
|
76
77
|
"cancelable-promise": "^4.3.1",
|
|
77
78
|
"is-svg": "^5.0.1",
|
|
79
|
+
"typedoc-plugin-missing-exports": "^3.0.0",
|
|
78
80
|
"typescript-event-target": "^1.1.1",
|
|
79
|
-
"webdav": "^5.
|
|
81
|
+
"webdav": "^5.7.0"
|
|
80
82
|
}
|
|
81
83
|
}
|