@brftech/filex-core 0.22.0 → 0.24.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/filex-core.js +6562 -6451
- package/dist/filex-core.js.map +1 -1
- package/dist/filex-core.umd.cjs +44 -44
- package/dist/filex-core.umd.cjs.map +1 -1
- package/dist/index.d.ts +49 -27
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/FileExplorer.vue +125 -13
- package/src/components/GridView.vue +17 -0
- package/src/components/ListView.vue +18 -0
- package/src/components/SecondaryPane.vue +4 -0
- package/src/locales/en.ts +8 -1
- package/src/locales/tr.ts +8 -1
- package/src/styles/base.css +80 -0
- package/src/styles/variables.css +3 -0
- package/src/types/ExplorerConfig.ts +21 -3
package/dist/index.d.ts
CHANGED
|
@@ -49,6 +49,8 @@ declare type __VLS_Props_11 = {
|
|
|
49
49
|
viewMode?: ViewMode;
|
|
50
50
|
/** ui-fix — authenticated thumb resolver, forwarded to grid/gallery. */
|
|
51
51
|
thumbSrc?: (n: FileNode) => string | null;
|
|
52
|
+
/** Desktop selective sync badge resolver, forwarded to the views. */
|
|
53
|
+
keepBadgeFor?: (n: FileNode) => 'kept' | 'syncing' | 'cloud' | 'partial' | null;
|
|
52
54
|
/** ui-fix — mirror the main panel's virtual `.trash` row at storage root
|
|
53
55
|
* so both split panes list identical rows (no row-offset). Defaults on. */
|
|
54
56
|
trashVisible?: boolean;
|
|
@@ -841,14 +843,32 @@ export declare interface ExplorerConfig {
|
|
|
841
843
|
remote: string;
|
|
842
844
|
local: string;
|
|
843
845
|
}>>;
|
|
844
|
-
/** Start keeping a folder
|
|
845
|
-
*
|
|
846
|
-
|
|
846
|
+
/** Start keeping a folder — or, with kind 'file', a single file.
|
|
847
|
+
* Resolves once the pair is registered (or the user cancelled the
|
|
848
|
+
* shell's root-folder prompt — re-read `kept`). */
|
|
849
|
+
keep: (remote: string, kind: 'dir' | 'file') => Promise<void>;
|
|
847
850
|
/** Stop keeping. The SHELL owns the "what happens to the local copy"
|
|
848
851
|
* question — it asks natively and may cancel; re-read `kept` after. */
|
|
849
852
|
unkeep: (remote: string) => Promise<void>;
|
|
850
853
|
/** Open the folder's local mirror in the OS file manager. */
|
|
851
854
|
reveal: (remote: string) => Promise<void>;
|
|
855
|
+
/** Live engine state, for the row badges and the bottom progress strip.
|
|
856
|
+
* `active` is the folder being worked on right now — the engine walks
|
|
857
|
+
* its pairs one at a time — or null between runs. */
|
|
858
|
+
status?: () => Promise<{
|
|
859
|
+
running: boolean;
|
|
860
|
+
lastError?: string | null;
|
|
861
|
+
active: {
|
|
862
|
+
remote: string;
|
|
863
|
+
phase: 'inventory' | 'plan' | 'transfer' | 'settling';
|
|
864
|
+
done: number;
|
|
865
|
+
total: number;
|
|
866
|
+
} | null;
|
|
867
|
+
}>;
|
|
868
|
+
/** Subscribe to "something about sync changed" pokes from the shell —
|
|
869
|
+
* the explorer re-reads `kept` and `status` when poked. The shell keeps
|
|
870
|
+
* ONE subscriber (the mounted explorer) and overwrites it on remount. */
|
|
871
|
+
onChange?: (cb: () => void) => void;
|
|
852
872
|
};
|
|
853
873
|
}
|
|
854
874
|
|
|
@@ -1128,18 +1148,19 @@ virtualRows?: () => FileNode[];
|
|
|
1128
1148
|
active?: boolean;
|
|
1129
1149
|
viewMode?: ViewMode;
|
|
1130
1150
|
thumbSrc?: (n: FileNode) => string | null;
|
|
1151
|
+
keepBadgeFor?: (n: FileNode) => "kept" | "syncing" | "cloud" | "partial" | null;
|
|
1131
1152
|
trashVisible?: boolean;
|
|
1132
1153
|
}> & Readonly<{
|
|
1133
|
-
onClose?: (() => any) | undefined;
|
|
1134
|
-
onNavigate?: ((path: string) => any) | undefined;
|
|
1135
|
-
"onOpen-trash"?: (() => any) | undefined;
|
|
1136
|
-
onActivate?: (() => any) | undefined;
|
|
1137
|
-
"onOpen-tab"?: ((path: string) => any) | undefined;
|
|
1138
1154
|
onTransfer?: ((p: {
|
|
1139
1155
|
sources: string[];
|
|
1140
1156
|
targetWire: string;
|
|
1141
1157
|
originWire?: string;
|
|
1142
1158
|
}) => any) | undefined;
|
|
1159
|
+
onClose?: (() => any) | undefined;
|
|
1160
|
+
onNavigate?: ((path: string) => any) | undefined;
|
|
1161
|
+
"onOpen-trash"?: (() => any) | undefined;
|
|
1162
|
+
onActivate?: (() => any) | undefined;
|
|
1163
|
+
"onOpen-tab"?: ((path: string) => any) | undefined;
|
|
1143
1164
|
onContext?: ((node: FileNode | null, ev: MouseEvent) => any) | undefined;
|
|
1144
1165
|
}>, {
|
|
1145
1166
|
reload: () => Promise<void>;
|
|
@@ -1149,16 +1170,16 @@ openSelected: () => void;
|
|
|
1149
1170
|
selectedNodes: () => FileNode[];
|
|
1150
1171
|
getPath: () => string;
|
|
1151
1172
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1152
|
-
close: () => any;
|
|
1153
|
-
navigate: (path: string) => any;
|
|
1154
|
-
"open-trash": () => any;
|
|
1155
|
-
activate: () => any;
|
|
1156
|
-
"open-tab": (path: string) => any;
|
|
1157
1173
|
transfer: (p: {
|
|
1158
1174
|
sources: string[];
|
|
1159
1175
|
targetWire: string;
|
|
1160
1176
|
originWire?: string;
|
|
1161
1177
|
}) => any;
|
|
1178
|
+
close: () => any;
|
|
1179
|
+
navigate: (path: string) => any;
|
|
1180
|
+
"open-trash": () => any;
|
|
1181
|
+
activate: () => any;
|
|
1182
|
+
"open-tab": (path: string) => any;
|
|
1162
1183
|
context: (node: FileNode | null, ev: MouseEvent) => any;
|
|
1163
1184
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLElement, ComponentProvideOptions, {
|
|
1164
1185
|
P: {};
|
|
@@ -1181,18 +1202,19 @@ virtualRows?: () => FileNode[];
|
|
|
1181
1202
|
active?: boolean;
|
|
1182
1203
|
viewMode?: ViewMode;
|
|
1183
1204
|
thumbSrc?: (n: FileNode) => string | null;
|
|
1205
|
+
keepBadgeFor?: (n: FileNode) => "kept" | "syncing" | "cloud" | "partial" | null;
|
|
1184
1206
|
trashVisible?: boolean;
|
|
1185
1207
|
}> & Readonly<{
|
|
1186
|
-
onClose?: (() => any) | undefined;
|
|
1187
|
-
onNavigate?: ((path: string) => any) | undefined;
|
|
1188
|
-
"onOpen-trash"?: (() => any) | undefined;
|
|
1189
|
-
onActivate?: (() => any) | undefined;
|
|
1190
|
-
"onOpen-tab"?: ((path: string) => any) | undefined;
|
|
1191
1208
|
onTransfer?: ((p: {
|
|
1192
1209
|
sources: string[];
|
|
1193
1210
|
targetWire: string;
|
|
1194
1211
|
originWire?: string;
|
|
1195
1212
|
}) => any) | undefined;
|
|
1213
|
+
onClose?: (() => any) | undefined;
|
|
1214
|
+
onNavigate?: ((path: string) => any) | undefined;
|
|
1215
|
+
"onOpen-trash"?: (() => any) | undefined;
|
|
1216
|
+
onActivate?: (() => any) | undefined;
|
|
1217
|
+
"onOpen-tab"?: ((path: string) => any) | undefined;
|
|
1196
1218
|
onContext?: ((node: FileNode | null, ev: MouseEvent) => any) | undefined;
|
|
1197
1219
|
}>, {
|
|
1198
1220
|
reload: () => Promise<void>;
|
|
@@ -1969,28 +1991,28 @@ openSelected: typeof openSelected;
|
|
|
1969
1991
|
selectedNodes: typeof selectedNodes;
|
|
1970
1992
|
getPath: typeof getPath;
|
|
1971
1993
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1994
|
+
transfer: (p: {
|
|
1995
|
+
sources: string[];
|
|
1996
|
+
targetWire: string;
|
|
1997
|
+
originWire?: string;
|
|
1998
|
+
}) => any;
|
|
1972
1999
|
close: () => any;
|
|
1973
2000
|
navigate: (path: string) => any;
|
|
1974
2001
|
"open-trash": () => any;
|
|
1975
2002
|
activate: () => any;
|
|
1976
2003
|
"open-tab": (path: string) => any;
|
|
1977
|
-
|
|
2004
|
+
context: (node: FileNode | null, ev: MouseEvent) => any;
|
|
2005
|
+
}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
|
|
2006
|
+
onTransfer?: ((p: {
|
|
1978
2007
|
sources: string[];
|
|
1979
2008
|
targetWire: string;
|
|
1980
2009
|
originWire?: string;
|
|
1981
|
-
}) => any;
|
|
1982
|
-
context: (node: FileNode | null, ev: MouseEvent) => any;
|
|
1983
|
-
}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
|
|
2010
|
+
}) => any) | undefined;
|
|
1984
2011
|
onClose?: (() => any) | undefined;
|
|
1985
2012
|
onNavigate?: ((path: string) => any) | undefined;
|
|
1986
2013
|
"onOpen-trash"?: (() => any) | undefined;
|
|
1987
2014
|
onActivate?: (() => any) | undefined;
|
|
1988
2015
|
"onOpen-tab"?: ((path: string) => any) | undefined;
|
|
1989
|
-
onTransfer?: ((p: {
|
|
1990
|
-
sources: string[];
|
|
1991
|
-
targetWire: string;
|
|
1992
|
-
originWire?: string;
|
|
1993
|
-
}) => any) | undefined;
|
|
1994
2016
|
onContext?: ((node: FileNode | null, ev: MouseEvent) => any) | undefined;
|
|
1995
2017
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
1996
2018
|
|