@nextcloud/files 3.7.0 → 3.9.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/index.cjs +22 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +22 -5
- package/dist/index.mjs.map +1 -1
- package/dist/navigation/view.d.ts +12 -4
- package/dist/vendor.LICENSE.txt +2 -2
- package/package.json +15 -15
|
@@ -28,8 +28,11 @@ interface ViewData {
|
|
|
28
28
|
getContents: (path: string) => Promise<ContentsWithRoot>;
|
|
29
29
|
/** The view icon as an inline svg */
|
|
30
30
|
icon: string;
|
|
31
|
-
/**
|
|
32
|
-
|
|
31
|
+
/**
|
|
32
|
+
* The view order.
|
|
33
|
+
* If not set will be natural sorted by view name.
|
|
34
|
+
*/
|
|
35
|
+
order?: number;
|
|
33
36
|
/**
|
|
34
37
|
* Custom params to give to the router on click
|
|
35
38
|
* If defined, will be treated as a dummy view and
|
|
@@ -57,6 +60,10 @@ interface ViewData {
|
|
|
57
60
|
* haven't customized their sorting column
|
|
58
61
|
*/
|
|
59
62
|
defaultSortKey?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Method called to load child views if any
|
|
65
|
+
*/
|
|
66
|
+
loadChildViews?: (view: View) => Promise<void>;
|
|
60
67
|
}
|
|
61
68
|
export declare class View implements ViewData {
|
|
62
69
|
private _view;
|
|
@@ -69,8 +76,8 @@ export declare class View implements ViewData {
|
|
|
69
76
|
get getContents(): (path: string) => Promise<ContentsWithRoot>;
|
|
70
77
|
get icon(): string;
|
|
71
78
|
set icon(icon: string);
|
|
72
|
-
get order(): number;
|
|
73
|
-
set order(order: number);
|
|
79
|
+
get order(): number | undefined;
|
|
80
|
+
set order(order: number | undefined);
|
|
74
81
|
get params(): Record<string, string> | undefined;
|
|
75
82
|
set params(params: Record<string, string> | undefined);
|
|
76
83
|
get columns(): Column[] | undefined;
|
|
@@ -80,5 +87,6 @@ export declare class View implements ViewData {
|
|
|
80
87
|
get expanded(): boolean | undefined;
|
|
81
88
|
set expanded(expanded: boolean | undefined);
|
|
82
89
|
get defaultSortKey(): string | undefined;
|
|
90
|
+
get loadChildViews(): ((view: View) => Promise<void>) | undefined;
|
|
83
91
|
}
|
|
84
92
|
export {};
|
package/dist/vendor.LICENSE.txt
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextcloud/files",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "Nextcloud files utils",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -55,29 +55,29 @@
|
|
|
55
55
|
"@nextcloud/eslint-config": "^8.4.1",
|
|
56
56
|
"@nextcloud/event-bus": "^3.3.1",
|
|
57
57
|
"@nextcloud/typings": "^1.9.1",
|
|
58
|
-
"@nextcloud/vite-config": "^2.
|
|
59
|
-
"@types/node": "^
|
|
60
|
-
"@vitest/coverage-istanbul": "^2.0.
|
|
61
|
-
"fast-xml-parser": "^4.4.
|
|
62
|
-
"jsdom": "^
|
|
63
|
-
"tslib": "^2.
|
|
64
|
-
"typedoc": "^0.26.
|
|
65
|
-
"typescript": "^5.5.
|
|
66
|
-
"vite": "^5.
|
|
58
|
+
"@nextcloud/vite-config": "^2.2.2",
|
|
59
|
+
"@types/node": "^22.5.1",
|
|
60
|
+
"@vitest/coverage-istanbul": "^2.0.5",
|
|
61
|
+
"fast-xml-parser": "^4.4.1",
|
|
62
|
+
"jsdom": "^25.0.0",
|
|
63
|
+
"tslib": "^2.7.0",
|
|
64
|
+
"typedoc": "^0.26.6",
|
|
65
|
+
"typescript": "^5.5.4",
|
|
66
|
+
"vite": "^5.4.2",
|
|
67
67
|
"vitest": "^2.0.2"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@nextcloud/auth": "^2.
|
|
70
|
+
"@nextcloud/auth": "^2.4.0",
|
|
71
71
|
"@nextcloud/capabilities": "^1.2.0",
|
|
72
72
|
"@nextcloud/l10n": "^3.1.0",
|
|
73
73
|
"@nextcloud/logger": "^3.0.2",
|
|
74
|
-
"@nextcloud/paths": "^2.2.
|
|
74
|
+
"@nextcloud/paths": "^2.2.1",
|
|
75
75
|
"@nextcloud/router": "^3.0.1",
|
|
76
|
-
"@nextcloud/sharing": "^0.2.
|
|
76
|
+
"@nextcloud/sharing": "^0.2.3",
|
|
77
77
|
"cancelable-promise": "^4.3.1",
|
|
78
|
-
"is-svg": "^5.0
|
|
78
|
+
"is-svg": "^5.1.0",
|
|
79
79
|
"typedoc-plugin-missing-exports": "^3.0.0",
|
|
80
80
|
"typescript-event-target": "^1.1.1",
|
|
81
|
-
"webdav": "^5.
|
|
81
|
+
"webdav": "^5.7.1"
|
|
82
82
|
}
|
|
83
83
|
}
|