filecove 0.1.0 → 0.2.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/CHANGELOG.md +21 -0
- package/dist/components/buttons/toolbar-actions.d.ts +1 -1
- package/dist/components/buttons/tooltip-icon-button.d.ts +1 -1
- package/dist/components/downloads/download-panel.d.ts +1 -1
- package/dist/components/drag/drag-preview.d.ts +24 -0
- package/dist/components/file-manager/announcer.d.ts +1 -1
- package/dist/components/file-manager/content/file-grid.d.ts +1 -1
- package/dist/components/file-manager/content/file-list.d.ts +1 -1
- package/dist/components/file-manager/content/folder-view.d.ts +1 -1
- package/dist/components/file-manager/content/item-icon.d.ts +1 -1
- package/dist/components/file-manager/content/search-results.d.ts +1 -1
- package/dist/components/file-manager/content/search-tabs.d.ts +1 -1
- package/dist/components/file-manager/content/trash-bar.d.ts +1 -1
- package/dist/components/file-manager/context-menu/context-menu.d.ts +1 -1
- package/dist/components/file-manager/dialogs/conflict-step.d.ts +1 -1
- package/dist/components/file-manager/dialogs/delete-dialog.d.ts +3 -2
- package/dist/components/file-manager/dialogs/image-viewer.d.ts +1 -1
- package/dist/components/file-manager/dialogs/name-dialog.d.ts +1 -1
- package/dist/components/file-manager/dialogs/paste-dialog.d.ts +1 -1
- package/dist/components/file-manager/dialogs/preview-dialog.d.ts +2 -2
- package/dist/components/file-manager/dialogs/restore-dialog.d.ts +1 -1
- package/dist/components/file-manager/dialogs/shortcuts-dialog.d.ts +1 -1
- package/dist/components/file-manager/dialogs/transfer-dialog.d.ts +2 -2
- package/dist/components/file-manager/dialogs/upload-dialog.d.ts +1 -1
- package/dist/components/file-manager/file-manager.d.ts +1 -1
- package/dist/components/file-manager/header-bar/header-bar.d.ts +1 -1
- package/dist/components/file-manager/header-bar/history-menu.d.ts +1 -1
- package/dist/components/file-manager/header-bar/path-bar.d.ts +1 -1
- package/dist/components/file-manager/header-bar/search-field.d.ts +1 -1
- package/dist/components/file-manager/header-bar/search-sections-menu.d.ts +1 -1
- package/dist/components/file-manager/header-bar/view-menu.d.ts +1 -1
- package/dist/components/file-manager/notice-bar.d.ts +1 -1
- package/dist/components/file-manager/properties-pane.d.ts +2 -2
- package/dist/components/file-manager/sidebar/location-item.d.ts +1 -1
- package/dist/components/file-manager/sidebar/main-menu.d.ts +1 -1
- package/dist/components/file-manager/sidebar/sidebar.d.ts +2 -2
- package/dist/components/icons/create-icon.d.ts +1 -1
- package/dist/components/icons/icon-provider.d.ts +1 -1
- package/dist/components/icons/icon-slot.d.ts +1 -1
- package/dist/components/icons/icon.d.ts +1 -1
- package/dist/components/media-manager/asset-delete.d.ts +20 -8
- package/dist/components/media-manager/asset-hold.d.ts +1 -1
- package/dist/components/media-manager/asset-option.d.ts +13 -2
- package/dist/components/media-manager/asset-trail.d.ts +1 -1
- package/dist/components/media-manager/choice-list.d.ts +1 -1
- package/dist/components/media-manager/choices-pane.d.ts +1 -1
- package/dist/components/media-manager/group-create.d.ts +1 -1
- package/dist/components/media-manager/group-path.d.ts +8 -2
- package/dist/components/media-manager/library-list.d.ts +4 -2
- package/dist/components/media-manager/media-asset.d.ts +19 -7
- package/dist/components/media-manager/media-edit-many.d.ts +33 -0
- package/dist/components/media-manager/media-fields.d.ts +1 -1
- package/dist/components/media-manager/media-filter-chips.d.ts +17 -0
- package/dist/components/media-manager/media-filters-dialog.d.ts +39 -0
- package/dist/components/media-manager/media-filters.d.ts +37 -0
- package/dist/components/media-manager/media-form.d.ts +3 -1
- package/dist/components/media-manager/media-frame.d.ts +7 -3
- package/dist/components/media-manager/media-grid.d.ts +34 -5
- package/dist/components/media-manager/media-group.d.ts +1 -1
- package/dist/components/media-manager/media-header.d.ts +20 -3
- package/dist/components/media-manager/media-manager.d.ts +33 -10
- package/dist/components/media-manager/media-move.d.ts +19 -11
- package/dist/components/media-manager/media-picker.d.ts +25 -7
- package/dist/components/media-manager/media-picture.d.ts +1 -1
- package/dist/components/media-manager/media-process.d.ts +1 -1
- package/dist/components/media-manager/media-row.d.ts +1 -1
- package/dist/components/media-manager/media-tile.d.ts +1 -1
- package/dist/components/media-manager/media-upload.d.ts +28 -6
- package/dist/components/media-manager/picker-frame.d.ts +6 -2
- package/dist/components/media-manager/selection-bar.d.ts +25 -0
- package/dist/components/media-manager/upload-tile.d.ts +5 -3
- package/dist/components/properties/properties-panel.d.ts +9 -3
- package/dist/components/properties/property-display.d.ts +1 -1
- package/dist/components/properties/property-editor.d.ts +1 -1
- package/dist/components/properties/property-input.d.ts +1 -1
- package/dist/components/transfers/transfer-panel.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/root-providers.d.ts +1 -1
- package/dist/components/uploads/upload-panel.d.ts +8 -2
- package/dist/contexts/cut-context.d.ts +1 -1
- package/dist/contexts/data-context.d.ts +3 -3
- package/dist/contexts/direction-context.d.ts +1 -1
- package/dist/contexts/drag-context.d.ts +1 -1
- package/dist/contexts/icon-context.d.ts +1 -1
- package/dist/contexts/locale-context.d.ts +1 -1
- package/dist/contexts/moving-context.d.ts +1 -1
- package/dist/hooks/use-asset-states.d.ts +1 -1
- package/dist/hooks/use-clipboard-follow.d.ts +2 -2
- package/dist/hooks/use-cut-ids.d.ts +1 -1
- package/dist/hooks/use-dev-checks.d.ts +16 -0
- package/dist/hooks/use-download-queue.d.ts +3 -3
- package/dist/hooks/use-dragged-ids.d.ts +1 -1
- package/dist/hooks/use-drop-target.d.ts +1 -1
- package/dist/hooks/use-entry-drag.d.ts +2 -2
- package/dist/hooks/use-files-drop.d.ts +7 -1
- package/dist/hooks/use-folder.d.ts +3 -3
- package/dist/hooks/use-icon-config.d.ts +1 -1
- package/dist/hooks/use-level-filters.d.ts +112 -0
- package/dist/hooks/use-level-search.d.ts +8 -6
- package/dist/hooks/use-locale.d.ts +3 -3
- package/dist/hooks/use-location-history.d.ts +1 -1
- package/dist/hooks/use-long-press.d.ts +1 -1
- package/dist/hooks/use-marquee.d.ts +1 -1
- package/dist/hooks/use-match-count.d.ts +5 -4
- package/dist/hooks/use-media-search.d.ts +22 -8
- package/dist/hooks/use-moving-ids.d.ts +2 -2
- package/dist/hooks/use-preview-contents.d.ts +1 -1
- package/dist/hooks/use-properties.d.ts +2 -2
- package/dist/hooks/use-scroll-measure.d.ts +1 -1
- package/dist/hooks/use-search.d.ts +6 -5
- package/dist/hooks/use-selection.d.ts +1 -1
- package/dist/hooks/use-text-direction.d.ts +1 -1
- package/dist/hooks/use-thumbnail.d.ts +1 -1
- package/dist/hooks/use-transfer-queue.d.ts +5 -5
- package/dist/hooks/use-tree-rows.d.ts +1 -1
- package/dist/hooks/use-tree-selection.d.ts +1 -1
- package/dist/hooks/use-upload-queue.d.ts +7 -5
- package/dist/hooks/use-virtual-lines.d.ts +1 -1
- package/dist/hooks/use-wheel-zoom.d.ts +1 -1
- package/dist/icon-sets/filled.d.ts +1 -1
- package/dist/icon-sets/outlined.d.ts +1 -1
- package/dist/icon-sets/rounded.d.ts +1 -1
- package/dist/icon-sets/sharp.d.ts +1 -1
- package/dist/icon-sets/two-tone.d.ts +1 -1
- package/dist/index.d.ts +18 -18
- package/dist/index.js +4307 -1129
- package/dist/index.js.map +1 -1
- package/dist/locales/en-us.d.ts +1 -1
- package/dist/store/download-queue.d.ts +1 -1
- package/dist/store/folder-store.d.ts +1 -1
- package/dist/store/properties-cache.d.ts +9 -1
- package/dist/store/thumbnail-cache.d.ts +1 -1
- package/dist/store/transfer-across.d.ts +1 -1
- package/dist/store/transfer-queue.d.ts +2 -2
- package/dist/store/upload-queue.d.ts +28 -8
- package/dist/styles/classes.d.ts +30 -2
- package/dist/styles/layout.d.ts +2 -2
- package/dist/styles/media-layout.d.ts +1 -1
- package/dist/styles.css +1095 -367
- package/dist/styles.layer.css +1095 -367
- package/dist/types/action.d.ts +3 -3
- package/dist/types/adapter.d.ts +164 -11
- package/dist/types/api.d.ts +21 -9
- package/dist/types/clipboard.d.ts +2 -2
- package/dist/types/download.d.ts +1 -1
- package/dist/types/drag.d.ts +4 -4
- package/dist/types/folder.d.ts +1 -1
- package/dist/types/index.d.ts +27 -27
- package/dist/types/locale.d.ts +161 -4
- package/dist/types/main-menu.d.ts +1 -1
- package/dist/types/media.d.ts +127 -11
- package/dist/types/menu.d.ts +4 -4
- package/dist/types/navigation.d.ts +2 -2
- package/dist/types/preview.d.ts +1 -1
- package/dist/types/previewer.d.ts +1 -1
- package/dist/types/properties.d.ts +20 -2
- package/dist/types/property-definition.d.ts +58 -1
- package/dist/types/search.d.ts +2 -2
- package/dist/types/section.d.ts +2 -2
- package/dist/types/selection.d.ts +3 -3
- package/dist/types/slots.d.ts +12 -7
- package/dist/types/transfer.d.ts +2 -2
- package/dist/types/tree.d.ts +2 -2
- package/dist/types/undo.d.ts +3 -3
- package/dist/types/upload.d.ts +79 -3
- package/dist/types/view.d.ts +5 -5
- package/dist/utils/action-groups.d.ts +1 -1
- package/dist/utils/clipboard.d.ts +2 -2
- package/dist/utils/dom.d.ts +13 -0
- package/dist/utils/download.d.ts +1 -1
- package/dist/utils/field-errors.d.ts +1 -1
- package/dist/utils/files.d.ts +9 -5
- package/dist/utils/format.d.ts +1 -1
- package/dist/utils/groups.d.ts +1 -1
- package/dist/utils/hidden.d.ts +1 -1
- package/dist/utils/keyboard.d.ts +1 -1
- package/dist/utils/media.d.ts +82 -5
- package/dist/utils/menu-position.d.ts +1 -1
- package/dist/utils/names.d.ts +1 -1
- package/dist/utils/navigation.d.ts +1 -1
- package/dist/utils/path.d.ts +2 -2
- package/dist/utils/permissions.d.ts +2 -2
- package/dist/utils/preview.d.ts +1 -1
- package/dist/utils/property-value.d.ts +3 -1
- package/dist/utils/search.d.ts +1 -1
- package/dist/utils/sections.d.ts +1 -1
- package/dist/utils/selection.d.ts +1 -1
- package/dist/utils/shortcut.d.ts +1 -1
- package/dist/utils/slots.d.ts +2 -2
- package/dist/utils/sort.d.ts +1 -1
- package/dist/utils/transfer.d.ts +1 -1
- package/dist/utils/trash.d.ts +1 -1
- package/dist/utils/undo.d.ts +1 -1
- package/dist/utils/zoom.d.ts +2 -2
- package/docs/README.md +1 -1
- package/docs/adapter.md +66 -6
- package/docs/customizing.md +31 -2
- package/docs/getting-started.md +3 -1
- package/docs/media-manager.md +194 -7
- package/docs/search.md +2 -0
- package/docs/uploads-and-downloads.md +2 -1
- package/package.json +1 -1
- package/dist/components/file-manager/drag-preview.d.ts +0 -22
package/dist/locales/en-us.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LocaleText } from "../types";
|
|
1
|
+
import type { LocaleText } from "../types/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The components' own text in US English, the file manager's and the media manager's, which every
|
|
4
4
|
* key left out of `localeText` falls back to. It has every key, so it's the place to start a
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DownloadItem, EntriesInFolder, FileAdapter, FileEntry } from "../types";
|
|
1
|
+
import type { DownloadItem, EntriesInFolder, FileAdapter, FileEntry } from "../types/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* Downloads waiting to be prepared, being prepared by the adapter, or needing the user, independent
|
|
4
4
|
* of any view, so they carry on while the user browses. Each is one call to the adapter, with
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FileAdapter, FileEntry, FolderState } from "../types";
|
|
1
|
+
import type { FileAdapter, FileEntry, FolderState } from "../types/index.js";
|
|
2
2
|
/** Cache key of a folder. Sections are independent roots, so one id in two sections is two folders. */
|
|
3
3
|
export declare const folderKey: (sectionId: string, folderId: string) => string;
|
|
4
4
|
/** The section and the folder a `folderKey` was made of; the section's part is the one before the first NUL. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CountTarget, EntryProperties, EntryTotals, FileAdapter, FileEntry, PropertySave, Requested } from "../types";
|
|
1
|
+
import type { CountTarget, EntryProperties, EntryTotals, FileAdapter, FileEntry, PropertySave, Requested } from "../types/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* What adapters handed over for the properties panel: an entry's properties (`properties`), kept by
|
|
4
4
|
* the entry object, which a listing keeps for as long as the entry is as it was, and what's in
|
|
@@ -18,6 +18,8 @@ export declare const createPropertiesCache: () => {
|
|
|
18
18
|
* by its id, stands in as the progress of its loading.
|
|
19
19
|
*/
|
|
20
20
|
details(entry: FileEntry, adapter: FileAdapter): Requested<EntryProperties> | undefined;
|
|
21
|
+
/** Whether an entry's properties are to be asked for: they haven't come, or are to be asked again. */
|
|
22
|
+
wantsDetails(entry: FileEntry, adapter: FileAdapter): boolean;
|
|
21
23
|
/**
|
|
22
24
|
* Asks the adapter for an entry's properties once `ASK_AFTER` has passed, or `SETTLE_AFTER`
|
|
23
25
|
* for an entry asked about before by its id, which has changed, unless they've come already.
|
|
@@ -30,6 +32,12 @@ export declare const createPropertiesCache: () => {
|
|
|
30
32
|
* after they failed.
|
|
31
33
|
*/
|
|
32
34
|
forgetDetails(entry: FileEntry, adapter: FileAdapter): void;
|
|
35
|
+
/**
|
|
36
|
+
* Asks again about an entry's properties, by its id, whatever entry object shows it, what came
|
|
37
|
+
* before standing in meanwhile, quietly: for a change its listing doesn't show, such as a part
|
|
38
|
+
* uploaded into an asset, which leaves it listed as it was.
|
|
39
|
+
*/
|
|
40
|
+
renewDetails(entry: FileEntry, adapter: FileAdapter): void;
|
|
33
41
|
/** A field's edit being saved, or that failed, or undefined when there's none. */
|
|
34
42
|
save(entry: FileEntry, adapter: FileAdapter, fieldId: string): PropertySave | undefined;
|
|
35
43
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FileAdapter, FileEntry, ViewMode } from "../types";
|
|
1
|
+
import type { FileAdapter, FileEntry, ViewMode } from "../types/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* Files' thumbnails, by adapter, view and entry id, asked for through the adapter's `thumbnail`
|
|
4
4
|
* while an entry rendered wants one, `MAX_ACTIVE` at a time. Only the entries in or near view are
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FileAdapter, FileEntry, TransferKind, TransferOptions, TransferResult } from "../types";
|
|
1
|
+
import type { FileAdapter, FileEntry, TransferKind, TransferOptions, TransferResult } from "../types/index.js";
|
|
2
2
|
/** What a copy between adapters words itself, as the host's text has it. */
|
|
3
3
|
export interface AcrossText {
|
|
4
4
|
/** A folder made beside one of its name, as `UploadLocaleText`'s words it. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConflictPolicy, FileAdapter, FileEntry, FolderRef, TransferItem, TransferKind } from "../types";
|
|
2
|
-
import type { AcrossText } from "./transfer-across";
|
|
1
|
+
import type { ConflictPolicy, FileAdapter, FileEntry, FolderRef, TransferItem, TransferKind } from "../types/index.js";
|
|
2
|
+
import type { AcrossText } from "./transfer-across.js";
|
|
3
3
|
/**
|
|
4
4
|
* How a copy or move ended: done or cancelled, which take it out of the queue, or failed, which
|
|
5
5
|
* leaves it there to be shown.
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import type { ConflictPolicy, EntryPermissions, FileAdapter, FileEntry, FolderRef, FolderUpload, UploadItem } from "../types";
|
|
1
|
+
import type { ConflictPolicy, EntryPermissions, FileAdapter, FileEntry, FolderRef, FolderUpload, FolderUploadOptions, UploadItem, UploadPartTarget, UploadResult } from "../types/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* What the adapter's `upload` resolved with, as an `UploadResult`: the entry alone made one, and
|
|
4
|
+
* nothing for an adapter resolving with nothing.
|
|
5
|
+
*/
|
|
6
|
+
export declare const uploadResultOf: (sent: FileEntry | UploadResult | void) => UploadResult | undefined;
|
|
2
7
|
/**
|
|
3
8
|
* Everything a folder holds, every page of it, by name, and its own permissions, as an upload, or a
|
|
4
9
|
* copy from another adapter (`transferAcross`), merging into it or reading it needs it.
|
|
@@ -29,16 +34,31 @@ export declare const createUploadQueue: (onChanged: (adapter: FileAdapter, folde
|
|
|
29
34
|
* manager's library's upload form held, goes to the adapter with each of them.
|
|
30
35
|
*/
|
|
31
36
|
add(adapter: FileAdapter, folder: FolderRef, files: File[], conflict: ConflictPolicy, values?: Readonly<Record<string, unknown>>): number[];
|
|
37
|
+
/**
|
|
38
|
+
* Queues a file to be put in `entry`'s place through `adapter`, which replaces files, as an
|
|
39
|
+
* upload of its own, shown, cancelled and tried again as any is, and returns its id. `folder`
|
|
40
|
+
* is the one the entry is in, listed again as it ends. `values`, what a media manager's
|
|
41
|
+
* library's upload form held, goes to the adapter with it.
|
|
42
|
+
*/
|
|
43
|
+
replace(adapter: FileAdapter, folder: FolderRef, entry: FileEntry, file: File, values?: Readonly<Record<string, unknown>>): number;
|
|
44
|
+
/**
|
|
45
|
+
* Queues a file to be sent into a part of an asset through `adapter`, which takes them
|
|
46
|
+
* (`uploadPart`), as an upload of its own, shown, cancelled and tried again as any is, and
|
|
47
|
+
* returns its id. `folder` is the one the asset is in, listed again as it ends. `values`, what
|
|
48
|
+
* the part's upload form held, goes to the adapter with it.
|
|
49
|
+
*/
|
|
50
|
+
uploadPart(adapter: FileAdapter, folder: FolderRef, target: UploadPartTarget, file: File, values?: Readonly<Record<string, unknown>>): number;
|
|
32
51
|
/**
|
|
33
52
|
* Queues folders to be uploaded into `folder` through `adapter`, which takes uploads and
|
|
34
|
-
* makes folders, each with everything in it, read first.
|
|
35
|
-
* out, and so are folders that held nothing else.
|
|
36
|
-
* gets the files with names it has already in their
|
|
37
|
-
* while a file and a folder sharing a name are kept
|
|
38
|
-
* file or folder whose permissions refuse writing.
|
|
39
|
-
*
|
|
53
|
+
* makes folders, or `options.makeFolder` makes them, each with everything in it, read first.
|
|
54
|
+
* Files `options.accepts` refuses are left out, and so are folders that held nothing else.
|
|
55
|
+
* With "replace", a folder merged into gets the files with names it has already in their
|
|
56
|
+
* place, and folders merged into theirs, while a file and a folder sharing a name are kept
|
|
57
|
+
* both, as is what shares a name with a file or folder whose permissions refuse writing.
|
|
58
|
+
* `options.values` goes to the adapter with every file. Returns the ids of their uploads, in
|
|
59
|
+
* the order of `folders`.
|
|
40
60
|
*/
|
|
41
|
-
addFolders(adapter: FileAdapter, folder: FolderRef, folders: FolderUpload[], conflict: ConflictPolicy, accepts
|
|
61
|
+
addFolders(adapter: FileAdapter, folder: FolderRef, folders: FolderUpload[], conflict: ConflictPolicy, { accepts, values, makeFolder, folderEntry }?: FolderUploadOptions): number[];
|
|
42
62
|
/** Cancels an upload that is waiting or under way. */
|
|
43
63
|
cancel(id: number): void;
|
|
44
64
|
cancelAll(): void;
|
package/dist/styles/classes.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ export declare const fmClasses: {
|
|
|
111
111
|
readonly marquee: "fm-marquee";
|
|
112
112
|
/** The docked sidebar's and properties' edge, `data-dragging` while it's dragged. */
|
|
113
113
|
readonly resizeEdge: "fm-resize-edge";
|
|
114
|
-
/** The image a drag of entries carries. */
|
|
114
|
+
/** The image a drag of entries carries, in the file manager and the media manager. */
|
|
115
115
|
readonly dragPreview: "fm-drag-preview";
|
|
116
116
|
/** The upload, download and transfer panels under the content, beside their own names. */
|
|
117
117
|
readonly taskPanel: "fm-task-panel";
|
|
@@ -130,6 +130,13 @@ export declare const fmClasses: {
|
|
|
130
130
|
readonly property: "fm-property";
|
|
131
131
|
/** `PropertyDisplay`'s links or tags. */
|
|
132
132
|
readonly propertyDisplay: "fm-property-display";
|
|
133
|
+
/** A property's button uploading files into the part of an asset it shows (`PropertyDefinition.upload`). */
|
|
134
|
+
readonly propertyUpload: "fm-property-upload";
|
|
135
|
+
/**
|
|
136
|
+
* The files being uploaded into a property's part, under it, each a `li` with `data-status`
|
|
137
|
+
* (`queued`, `uploading`, `failed`).
|
|
138
|
+
*/
|
|
139
|
+
readonly propertyPartUploads: "fm-property-part-uploads";
|
|
133
140
|
/** The preview's dialog. */
|
|
134
141
|
readonly preview: "fm-preview";
|
|
135
142
|
/** The preview's top, with the name, the counter and the actions. */
|
|
@@ -150,11 +157,23 @@ export declare const fmClasses: {
|
|
|
150
157
|
readonly mediaHeader: "fm-media-header";
|
|
151
158
|
/** The trail of groups gone into. */
|
|
152
159
|
readonly mediaGroupPath: "fm-media-group-path";
|
|
160
|
+
/** The header's Filters button, `data-active` while any filter is set, its count in a badge. */
|
|
161
|
+
readonly mediaFiltersButton: "fm-media-filters-button";
|
|
162
|
+
/** The card of a library's filters over the results, holding the app's filter form, `data-leaving` as it folds away. */
|
|
163
|
+
readonly mediaFilters: "fm-media-filters";
|
|
164
|
+
/**
|
|
165
|
+
* The dialog of a library's filters over the component (`filtersVariant` `"dialog"`), beside
|
|
166
|
+
* `fm-dialog`, holding the app's filter form, `data-leaving` as it goes.
|
|
167
|
+
*/
|
|
168
|
+
readonly mediaFiltersDialog: "fm-media-filters-dialog";
|
|
169
|
+
/** The row under the header of the filters set, as chips (`MediaFilterForm.chips`), and Clear all. */
|
|
170
|
+
readonly mediaFilterChips: "fm-media-filter-chips";
|
|
153
171
|
/** A library's assets and groups, as tiles or rows. */
|
|
154
172
|
readonly mediaGrid: "fm-media-grid";
|
|
155
173
|
/**
|
|
156
174
|
* An asset or group in the grid, around how it's drawn, `aria-selected` while chosen, `data-layout`
|
|
157
|
-
* `tile` or `row`, `data-held` while it can't be chosen
|
|
175
|
+
* `tile` or `row`, `data-held` while it can't be chosen, and while browsing, `data-dragged` while
|
|
176
|
+
* it's dragged and `data-drop-target` while what's dragged would go into it.
|
|
158
177
|
*/
|
|
159
178
|
readonly mediaOption: "fm-media-option";
|
|
160
179
|
/** `MediaTile`, the component's drawing of an asset or group as a tile, `data-kind` its kind. */
|
|
@@ -175,8 +194,17 @@ export declare const fmClasses: {
|
|
|
175
194
|
readonly mediaFields: "fm-media-fields";
|
|
176
195
|
/** One field among them. */
|
|
177
196
|
readonly mediaField: "fm-media-field";
|
|
197
|
+
/** The fields of Edit fields…, changing what's selected while browsing together. */
|
|
198
|
+
readonly mediaEditFields: "fm-media-edit-fields";
|
|
199
|
+
/** One field among them, its checkbox and, while it's ticked (`data-changed`), its control. */
|
|
200
|
+
readonly mediaEditField: "fm-media-edit-field";
|
|
178
201
|
/** The bar to choose with, at the media manager's foot. */
|
|
179
202
|
readonly mediaChooseBar: "fm-media-choose-bar";
|
|
203
|
+
/**
|
|
204
|
+
* The bar of what's selected while the media manager is browsing, at the library's foot: its count,
|
|
205
|
+
* Edit fields…, Move to… and Delete, or the question before deleting it, `data-confirming` meanwhile.
|
|
206
|
+
*/
|
|
207
|
+
readonly mediaSelectionBar: "fm-media-selection-bar";
|
|
180
208
|
/** The picker's foot. */
|
|
181
209
|
readonly mediaPickerFooter: "fm-media-picker-footer";
|
|
182
210
|
/** What shows while files are dragged over a library. */
|
package/dist/styles/layout.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GridSize } from "../types";
|
|
1
|
+
import type { GridSize } from "../types/index.js";
|
|
2
2
|
export declare const ROOT_CONTAINER = "file-manager";
|
|
3
3
|
export declare const VIEW_CONTAINER = "file-manager-view";
|
|
4
4
|
/** Root has room for the full header toolbar. */
|
|
@@ -36,7 +36,7 @@ export declare const RESIZE_STEP = 16;
|
|
|
36
36
|
* the frame adds. The panels give way before the content does: the properties first, then the
|
|
37
37
|
* sidebar (see "Resizing the docked panels" in `file-manager.md`). With both panels at their
|
|
38
38
|
* widest the content still has its room in a root 1400px wide: 360 + 480 for the panels, 540 for
|
|
39
|
-
* the content and 12 for the margins between them.
|
|
39
|
+
* the content and 12 for the margins between them, two of the panels' default gap (`--fm-panel-gap`).
|
|
40
40
|
*/
|
|
41
41
|
export declare const CONTENT_ROOM = 540;
|
|
42
42
|
/** Shared by the sidebar header and the main header bar so the two line up. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MediaKind } from "../types";
|
|
1
|
+
import type { MediaKind } from "../types/index.js";
|
|
2
2
|
export declare const MEDIA_CONTAINER = "media-manager";
|
|
3
3
|
/** Room to dock the list of libraries beside the library; below it, the header's button lists them. */
|
|
4
4
|
export declare const mediaMedium = "@container media-manager (min-width: 720px)";
|