@brftech/filex-core 0.41.1 → 0.41.4
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/README.md +8 -0
- package/dist/{ArchiveViewer-DxxjhYZD.js → ArchiveViewer-oqaEyqcB.js} +2 -2
- package/dist/{ArchiveViewer-DxxjhYZD.js.map → ArchiveViewer-oqaEyqcB.js.map} +1 -1
- package/dist/{CsvViewer-CyuwENI_.js → CsvViewer-BfT-4WpB.js} +2 -2
- package/dist/{CsvViewer-CyuwENI_.js.map → CsvViewer-BfT-4WpB.js.map} +1 -1
- package/dist/{DrawioViewer-BIYsTX97.js → DrawioViewer-Cu2ZquNO.js} +2 -2
- package/dist/{DrawioViewer-BIYsTX97.js.map → DrawioViewer-Cu2ZquNO.js.map} +1 -1
- package/dist/{EpubViewer-K9PjCMmS.js → EpubViewer-yfAfnrYF.js} +2 -2
- package/dist/{EpubViewer-K9PjCMmS.js.map → EpubViewer-yfAfnrYF.js.map} +1 -1
- package/dist/{IpynbViewer-DYU6Zgz2.js → IpynbViewer-DLSOs3yU.js} +2 -2
- package/dist/{IpynbViewer-DYU6Zgz2.js.map → IpynbViewer-DLSOs3yU.js.map} +1 -1
- package/dist/{MermaidViewer-Bp73aId8.js → MermaidViewer-D2AsT14x.js} +2 -2
- package/dist/{MermaidViewer-Bp73aId8.js.map → MermaidViewer-D2AsT14x.js.map} +1 -1
- package/dist/{PsdViewer-C2eLivw1.js → PsdViewer-DOza4QJt.js} +2 -2
- package/dist/{PsdViewer-C2eLivw1.js.map → PsdViewer-DOza4QJt.js.map} +1 -1
- package/dist/{TiffViewer-DsHg5gcz.js → TiffViewer-24MCOn1t.js} +2 -2
- package/dist/{TiffViewer-DsHg5gcz.js.map → TiffViewer-24MCOn1t.js.map} +1 -1
- package/dist/{Viewer3D-C_dc2HN9.js → Viewer3D-BVjtbhhc.js} +2 -2
- package/dist/{Viewer3D-C_dc2HN9.js.map → Viewer3D-BVjtbhhc.js.map} +1 -1
- package/dist/filex-core.js +81 -80
- package/dist/filex-core.umd.cjs +46 -46
- package/dist/filex-core.umd.cjs.map +1 -1
- package/dist/{index-vxMZpYb-.js → index-B8PLGR-X.js} +9433 -9330
- package/dist/index-B8PLGR-X.js.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/FilePane.vue +35 -18
- package/src/components/GalleryView.vue +45 -9
- package/src/components/GridView.vue +65 -22
- package/src/components/HomeView.vue +5 -4
- package/src/components/ItemCheck.vue +47 -0
- package/src/components/ListView.vue +52 -49
- package/src/components/PendingOpsTray.vue +4 -5
- package/src/composables/usePendingOps.ts +5 -0
- package/src/composables/useRowTouch.ts +98 -17
- package/src/index.ts +5 -0
- package/src/lib/opProgress.ts +43 -0
- package/src/styles/base.css +111 -6
- package/dist/index-vxMZpYb-.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -5263,6 +5263,37 @@ export declare type OperationsStore = ReturnType<typeof useOperations>;
|
|
|
5263
5263
|
|
|
5264
5264
|
export declare type OperationStatus = 'running' | 'done' | 'error' | 'aborted';
|
|
5265
5265
|
|
|
5266
|
+
/** 0–100, or `null` when there is no honest number to draw. */
|
|
5267
|
+
export declare function opPercent(op: OpProgressLike): number | null;
|
|
5268
|
+
|
|
5269
|
+
/**
|
|
5270
|
+
* opProgress — the one rule for "how far along is this queued operation".
|
|
5271
|
+
*
|
|
5272
|
+
* Both progress surfaces read it: the explorer's operations center
|
|
5273
|
+
* (PendingOpsTray → OperationsCenter) and the admin app's bottom-right tray.
|
|
5274
|
+
* Two copies of this rule are how one tray starts saying something the other
|
|
5275
|
+
* does not (filex lesson #119).
|
|
5276
|
+
*
|
|
5277
|
+
* Issue #27: a queued op counts SOURCES, so moving one large file — or one
|
|
5278
|
+
* folder of a thousand files — is "0 of 1" until the very end. Drawn as a
|
|
5279
|
+
* percentage that is a bar frozen at 0% that then vanishes, which the reporter
|
|
5280
|
+
* read as stuck. So:
|
|
5281
|
+
*
|
|
5282
|
+
* - a running cross-storage transfer reports bytes (`bytes_done` /
|
|
5283
|
+
* `bytes_total`); when the total is known that is the percentage;
|
|
5284
|
+
* - bytes moving with no total yet, or a single source with nothing but a
|
|
5285
|
+
* source count, has NO honest percentage: `null`, and the surface shows
|
|
5286
|
+
* an indeterminate indicator instead of a fake 0%;
|
|
5287
|
+
* - several sources still report per source, as before.
|
|
5288
|
+
*/
|
|
5289
|
+
export declare interface OpProgressLike {
|
|
5290
|
+
status: string;
|
|
5291
|
+
progress_total: number;
|
|
5292
|
+
progress_done: number;
|
|
5293
|
+
bytes_total?: number;
|
|
5294
|
+
bytes_done?: number;
|
|
5295
|
+
}
|
|
5296
|
+
|
|
5266
5297
|
declare type PaneId = 'main' | 'split';
|
|
5267
5298
|
|
|
5268
5299
|
/**
|
|
@@ -5294,6 +5325,9 @@ export declare interface PendingOp {
|
|
|
5294
5325
|
status: 'pending' | 'running' | 'done' | 'error';
|
|
5295
5326
|
progress_total: number;
|
|
5296
5327
|
progress_done: number;
|
|
5328
|
+
/** Running cross-storage transfer's bytes (issue #27); absent otherwise. */
|
|
5329
|
+
bytes_total?: number;
|
|
5330
|
+
bytes_done?: number;
|
|
5297
5331
|
target_path: string | null;
|
|
5298
5332
|
source_dir: string | null;
|
|
5299
5333
|
source_count: number;
|
|
@@ -7012,6 +7046,8 @@ export declare function usePendingOps(config: ExplorerConfig, api: FileApi, opts
|
|
|
7012
7046
|
status: "pending" | "running" | "done" | "error";
|
|
7013
7047
|
progress_total: number;
|
|
7014
7048
|
progress_done: number;
|
|
7049
|
+
bytes_total?: number | undefined;
|
|
7050
|
+
bytes_done?: number | undefined;
|
|
7015
7051
|
target_path: string | null;
|
|
7016
7052
|
source_dir: string | null;
|
|
7017
7053
|
source_count: number;
|
|
@@ -7025,6 +7061,8 @@ export declare function usePendingOps(config: ExplorerConfig, api: FileApi, opts
|
|
|
7025
7061
|
status: "pending" | "running" | "done" | "error";
|
|
7026
7062
|
progress_total: number;
|
|
7027
7063
|
progress_done: number;
|
|
7064
|
+
bytes_total?: number | undefined;
|
|
7065
|
+
bytes_done?: number | undefined;
|
|
7028
7066
|
target_path: string | null;
|
|
7029
7067
|
source_dir: string | null;
|
|
7030
7068
|
source_count: number;
|