@mintplayer/ng-bootstrap 22.28.0 → 22.30.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/_bootstrap.scss +4 -101
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +62 -30
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -64
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +50 -46
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +65 -94
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +122 -97
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +80 -133
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -19
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +76 -37
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +37 -82
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +157 -824
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +172 -118
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +180 -142
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +66 -116
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +80 -204
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +32 -17
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +283 -20
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +98 -129
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +144 -265
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +133 -217
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +46 -25
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +166 -93
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +148 -231
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +133 -94
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +76 -7
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +766 -812
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +206 -180
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +202 -141
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +113 -59
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +133 -76
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +60 -87
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +86 -83
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +1 -2
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +38 -34
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +177 -147
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +200 -94
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +186 -233
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +58 -136
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +22 -16
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/package.json +11 -9
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +40 -21
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +36 -33
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +39 -16
- package/types/mintplayer-ng-bootstrap-card.d.ts +25 -33
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +70 -55
- package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +65 -45
- package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +12 -3
- package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +34 -19
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +34 -8
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +32 -59
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +222 -422
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +77 -29
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +83 -51
- package/types/mintplayer-ng-bootstrap-dock.d.ts +57 -38
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +25 -30
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +61 -81
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +17 -12
- package/types/mintplayer-ng-bootstrap-machine.d.ts +124 -4
- package/types/mintplayer-ng-bootstrap-multi-range.d.ts +53 -27
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +88 -164
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +63 -30
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +23 -7
- package/types/mintplayer-ng-bootstrap-phone-input.d.ts +77 -47
- package/types/mintplayer-ng-bootstrap-query-builder.d.ts +95 -98
- package/types/mintplayer-ng-bootstrap-radio.d.ts +68 -35
- package/types/mintplayer-ng-bootstrap-rating.d.ts +27 -2
- package/types/mintplayer-ng-bootstrap-ribbon.d.ts +546 -220
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +82 -197
- package/types/mintplayer-ng-bootstrap-select.d.ts +113 -53
- package/types/mintplayer-ng-bootstrap-shell.d.ts +59 -33
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +63 -27
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +45 -56
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +47 -26
- package/types/mintplayer-ng-bootstrap-table.d.ts +1 -2
- package/types/mintplayer-ng-bootstrap-theming.d.ts +19 -18
- package/types/mintplayer-ng-bootstrap-timeline.d.ts +287 -117
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +100 -27
- package/types/mintplayer-ng-bootstrap-tree-select.d.ts +188 -94
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +74 -59
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +3 -0
- package/src/styles/utilities/cursor.scss +0 -12
- package/src/styles/utilities/overflow.scss +0 -12
- package/src/styles/utilities/white-space.scss +0 -12
- package/src/styles/utilities/width.scss +0 -14
|
@@ -1,96 +1,76 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { ElementRef } from '@angular/core';
|
|
3
|
-
import
|
|
4
|
-
|
|
3
|
+
import * as _mintplayer_ui_core_file_manager from '@mintplayer/ui-core/file-manager';
|
|
4
|
+
import { FileManagerViewMode, UploadEntry, OperationKind, NavigateEventDetail, NodeOpenEventDetail, FileManagerSelectionEventDetail, UploadRequestEventDetail, OperationEventDetail, FileManagerErrorEventDetail, ChildrenLoadedEventDetail, FileManagerMethods } from '@mintplayer/ui-core/file-manager';
|
|
5
|
+
export { ChildrenLoadedEventDetail, ConflictDecision, ConflictResolver, DEFAULT_FILE_MANAGER_MESSAGES, DialogResolver, FileManagerChildrenLoader, FileManagerErrorEventDetail, FileManagerIconResolver, FileManagerMessages, FileManagerSelectionEventDetail, FileManagerSelectionMode, FileManagerViewMode, FileSystemNode, FileSystemNodeType, NavigateEventDetail, NodeOpenEventDetail, OperationEventDetail, OperationFlags, OperationKind, UploadEntry, UploadRequestEventDetail, mergeMessages } from '@mintplayer/ui-core/file-manager';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
/**
|
|
8
|
+
* A file browser (#437): a folder tree and the open folder as a list or as icon cards, with a breadcrumb,
|
|
9
|
+
* a toolbar, search, a context menu, inline rename and file drop. It renders intents (`operation`,
|
|
10
|
+
* `uploadRequest`, `nodeOpen`); the consumer owns `nodes` and the backend. Two-way: `currentFolderId`,
|
|
11
|
+
* `selectedIds`, `viewMode`, `uploads`, `pending`. Strings come from `messages`.
|
|
12
|
+
*/
|
|
11
13
|
declare class BsFileManagerComponent {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
#private;
|
|
15
|
+
/** The host element. */
|
|
16
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
17
|
+
readonly nodes: _angular_core.InputSignal<readonly _mintplayer_ui_core_file_manager.FileSystemNode[]>;
|
|
15
18
|
readonly rootFolderId: _angular_core.InputSignal<string | null>;
|
|
16
|
-
/** Two-way bound: the folder the user has navigated into. */
|
|
17
19
|
readonly currentFolderId: _angular_core.ModelSignal<string | null>;
|
|
18
|
-
|
|
19
|
-
readonly
|
|
20
|
-
/** Enable / disable individual operations. `true` enables all. */
|
|
21
|
-
readonly allowOperations: _angular_core.InputSignal<boolean | OperationFlags>;
|
|
22
|
-
/** Two-way bound list / icons view toggle. */
|
|
20
|
+
readonly allowUpload: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
21
|
+
readonly allowOperations: _angular_core.InputSignal<boolean | _mintplayer_ui_core_file_manager.OperationFlags>;
|
|
23
22
|
readonly viewMode: _angular_core.ModelSignal<FileManagerViewMode>;
|
|
24
|
-
|
|
25
|
-
readonly
|
|
26
|
-
|
|
27
|
-
readonly
|
|
28
|
-
|
|
29
|
-
readonly
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
readonly loadChildren: _angular_core.InputSignal<((parentId: string) => Promise<FileSystemNode[]>) | undefined>;
|
|
36
|
-
/**
|
|
37
|
-
* Replaces `window.confirm` / `window.prompt` with consumer-provided
|
|
38
|
-
* dialogs (typically a `bs-modal`). When unset, the WC falls back to
|
|
39
|
-
* the native browser dialogs.
|
|
40
|
-
*/
|
|
41
|
-
readonly dialogResolver: _angular_core.InputSignal<DialogResolver | undefined>;
|
|
42
|
-
/**
|
|
43
|
-
* Invoked when paste / upload would overwrite an existing entry. When
|
|
44
|
-
* unset, the WC silently replaces (preserving v1 behaviour).
|
|
45
|
-
*/
|
|
46
|
-
readonly conflictResolver: _angular_core.InputSignal<ConflictResolver | undefined>;
|
|
47
|
-
/** Partial override of the visible-string set (i18n). */
|
|
48
|
-
readonly messages: _angular_core.InputSignal<Partial<FileManagerMessages> | undefined>;
|
|
49
|
-
/** Two-way bound array of selected node IDs. */
|
|
50
|
-
readonly selectedIds: _angular_core.ModelSignal<string[]>;
|
|
23
|
+
readonly selectionMode: _angular_core.InputSignal<_mintplayer_ui_core_file_manager.FileManagerSelectionMode>;
|
|
24
|
+
readonly selectedIds: _angular_core.ModelSignal<readonly string[]>;
|
|
25
|
+
readonly searchPlaceholder: _angular_core.InputSignal<string | null>;
|
|
26
|
+
readonly iconResolver: _angular_core.InputSignal<_mintplayer_ui_core_file_manager.FileManagerIconResolver | null | undefined>;
|
|
27
|
+
readonly messages: _angular_core.InputSignal<Partial<_mintplayer_ui_core_file_manager.FileManagerMessages> | null | undefined>;
|
|
28
|
+
readonly dialogResolver: _angular_core.InputSignal<_mintplayer_ui_core_file_manager.DialogResolver | null | undefined>;
|
|
29
|
+
readonly conflictResolver: _angular_core.InputSignal<_mintplayer_ui_core_file_manager.ConflictResolver | null | undefined>;
|
|
30
|
+
readonly loadChildren: _angular_core.InputSignal<_mintplayer_ui_core_file_manager.FileManagerChildrenLoader | null | undefined>;
|
|
31
|
+
readonly uploads: _angular_core.ModelSignal<readonly UploadEntry[]>;
|
|
32
|
+
readonly pending: _angular_core.ModelSignal<Readonly<Record<string, OperationKind>>>;
|
|
33
|
+
/** The user opened a folder. */
|
|
51
34
|
readonly navigate: _angular_core.OutputEmitterRef<NavigateEventDetail>;
|
|
52
|
-
|
|
53
|
-
readonly
|
|
54
|
-
|
|
35
|
+
/** A file was opened (double click or Enter). */
|
|
36
|
+
readonly nodeopen: _angular_core.OutputEmitterRef<NodeOpenEventDetail>;
|
|
37
|
+
/** The selection changed. */
|
|
38
|
+
readonly selectionchanged: _angular_core.OutputEmitterRef<FileManagerSelectionEventDetail>;
|
|
39
|
+
/** Files were dropped or picked, after conflict resolution. */
|
|
40
|
+
readonly uploadrequest: _angular_core.OutputEmitterRef<UploadRequestEventDetail>;
|
|
41
|
+
/** Rename, delete, new folder or paste: the consumer applies it. */
|
|
55
42
|
readonly operation: _angular_core.OutputEmitterRef<OperationEventDetail>;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
43
|
+
/** `reportError()` was called. */
|
|
44
|
+
readonly errorreported: _angular_core.OutputEmitterRef<FileManagerErrorEventDetail>;
|
|
45
|
+
/** A lazy folder's children arrived. */
|
|
46
|
+
readonly childrenloaded: _angular_core.OutputEmitterRef<ChildrenLoadedEventDetail>;
|
|
47
|
+
/** The open folder, after the user changed it. */
|
|
48
|
+
readonly currentfolderidchange: _angular_core.OutputEmitterRef<string | null>;
|
|
49
|
+
/** The selected node ids, after the user changed them. */
|
|
50
|
+
readonly selectedidschange: _angular_core.OutputEmitterRef<string[]>;
|
|
51
|
+
/** The view, after the user switched it. */
|
|
52
|
+
readonly viewmodechange: _angular_core.OutputEmitterRef<FileManagerViewMode>;
|
|
53
|
+
/** The tracked uploads, after a change. */
|
|
54
|
+
readonly uploadschange: _angular_core.OutputEmitterRef<UploadEntry[]>;
|
|
55
|
+
/** The nodes with an operation in flight, after a change. */
|
|
56
|
+
readonly pendingchange: _angular_core.OutputEmitterRef<Record<string, OperationKind>>;
|
|
57
|
+
/** The template's props. */
|
|
58
|
+
protected readonly props: _angular_core.Signal<{
|
|
59
|
+
view: _mintplayer_ui_core_file_manager.FileManagerTemplateView;
|
|
60
60
|
}>;
|
|
61
|
-
readonly childrenLoaded: _angular_core.OutputEmitterRef<ChildrenLoadedEventDetail>;
|
|
62
|
-
readonly fileManagerRef: _angular_core.Signal<ElementRef<MpFileManager> | undefined>;
|
|
63
|
-
/**
|
|
64
|
-
* Read-only snapshot of in-flight uploads. Updated by the WC; consumers
|
|
65
|
-
* read it for progress UIs. Use `reportUploadProgress(id, pct, status?, error?)`
|
|
66
|
-
* to push progress from the upload-pipeline callback.
|
|
67
|
-
*/
|
|
68
|
-
readonly uploads: _angular_core.WritableSignal<readonly UploadEntry[]>;
|
|
69
|
-
/** Node IDs currently marked pending by `markPending`. */
|
|
70
|
-
readonly pendingOpIds: _angular_core.WritableSignal<ReadonlySet<string>>;
|
|
71
|
-
/** Convenience: number of pending operations. */
|
|
72
|
-
readonly pendingCount: _angular_core.Signal<number>;
|
|
73
61
|
constructor();
|
|
74
|
-
/** Mark a node
|
|
75
|
-
markPending(
|
|
76
|
-
/** Clear
|
|
77
|
-
clearPending(
|
|
78
|
-
/**
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
|
|
84
|
-
onNavigate(event: Event): void;
|
|
85
|
-
onNodeOpen(event: Event): void;
|
|
86
|
-
onSelectionChange(event: Event): void;
|
|
87
|
-
onUploadRequest(event: Event): void;
|
|
88
|
-
onOperation(event: Event): void;
|
|
89
|
-
onErrorReported(event: Event): void;
|
|
90
|
-
onChildrenLoaded(event: Event): void;
|
|
62
|
+
/** Mark a node busy while the backend works on it. */
|
|
63
|
+
markPending(...args: Parameters<FileManagerMethods['markPending']>): ReturnType<FileManagerMethods['markPending']>;
|
|
64
|
+
/** Clear a node's busy mark. */
|
|
65
|
+
clearPending(...args: Parameters<FileManagerMethods['clearPending']>): ReturnType<FileManagerMethods['clearPending']>;
|
|
66
|
+
/** Fire `errorReported` with this message. */
|
|
67
|
+
reportError(...args: Parameters<FileManagerMethods['reportError']>): ReturnType<FileManagerMethods['reportError']>;
|
|
68
|
+
/** Move an upload's progress and status. */
|
|
69
|
+
reportUploadProgress(...args: Parameters<FileManagerMethods['reportUploadProgress']>): ReturnType<FileManagerMethods['reportUploadProgress']>;
|
|
70
|
+
/** Stop tracking an upload. */
|
|
71
|
+
clearUpload(...args: Parameters<FileManagerMethods['clearUpload']>): ReturnType<FileManagerMethods['clearUpload']>;
|
|
91
72
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsFileManagerComponent, never>;
|
|
92
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsFileManagerComponent, "bs-file-manager", never, { "nodes": { "alias": "nodes"; "required": false; "isSignal": true; }; "rootFolderId": { "alias": "rootFolderId"; "required": false; "isSignal": true; }; "currentFolderId": { "alias": "currentFolderId"; "required": false; "isSignal": true; }; "allowUpload": { "alias": "allowUpload"; "required": false; "isSignal": true; }; "allowOperations": { "alias": "allowOperations"; "required": false; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "iconResolver": { "alias": "iconResolver"; "required": false; "isSignal": true; }; "
|
|
73
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsFileManagerComponent, "bs-file-manager", never, { "nodes": { "alias": "nodes"; "required": false; "isSignal": true; }; "rootFolderId": { "alias": "rootFolderId"; "required": false; "isSignal": true; }; "currentFolderId": { "alias": "currentFolderId"; "required": false; "isSignal": true; }; "allowUpload": { "alias": "allowUpload"; "required": false; "isSignal": true; }; "allowOperations": { "alias": "allowOperations"; "required": false; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectedIds": { "alias": "selectedIds"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "iconResolver": { "alias": "iconResolver"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "dialogResolver": { "alias": "dialogResolver"; "required": false; "isSignal": true; }; "conflictResolver": { "alias": "conflictResolver"; "required": false; "isSignal": true; }; "loadChildren": { "alias": "loadChildren"; "required": false; "isSignal": true; }; "uploads": { "alias": "uploads"; "required": false; "isSignal": true; }; "pending": { "alias": "pending"; "required": false; "isSignal": true; }; }, { "currentFolderId": "currentFolderIdChange"; "viewMode": "viewModeChange"; "selectedIds": "selectedIdsChange"; "uploads": "uploadsChange"; "pending": "pendingChange"; "navigate": "navigate"; "nodeopen": "nodeopen"; "selectionchanged": "selectionchanged"; "uploadrequest": "uploadrequest"; "operation": "operation"; "errorreported": "errorreported"; "childrenloaded": "childrenloaded"; "currentfolderidchange": "currentfolderidchange"; "selectedidschange": "selectedidschange"; "viewmodechange": "viewmodechange"; "uploadschange": "uploadschange"; "pendingchange": "pendingchange"; }, never, never, true, never>;
|
|
93
74
|
}
|
|
94
75
|
|
|
95
76
|
export { BsFileManagerComponent };
|
|
96
|
-
export type { ChildrenLoadedEventDetail, FileManagerIconResolver };
|
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InputGroupSize } from '@mintplayer/ui-core/input-group';
|
|
2
3
|
|
|
3
|
-
type BsInputGroupSize =
|
|
4
|
+
type BsInputGroupSize = InputGroupSize;
|
|
4
5
|
/**
|
|
5
6
|
* `<bs-input-group>` — joins its children into one visually continuous control.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* the
|
|
8
|
+
* The host IS Bootstrap's `.input-group` (PRD #437 wave A): its children are
|
|
9
|
+
* its direct children, so the baseline's `.input-group > .form-control` rules
|
|
10
|
+
* apply as written and a consumer's `aria-*` / `id` already sits on the
|
|
11
|
+
* element that carries the role. The scoped sheet adds RTL and the sizing of
|
|
12
|
+
* controls rendered inside a framework host (`<bs-select>`).
|
|
13
|
+
*
|
|
14
|
+
* The role is `group` only when the group is named. The name is read from the
|
|
15
|
+
* host's static attributes, so SSR emits the same role; a group named through
|
|
16
|
+
* a binding passes `role="group"` itself.
|
|
14
17
|
*/
|
|
15
18
|
declare class BsInputGroupComponent {
|
|
16
|
-
/** Bootstrap sizing
|
|
17
|
-
readonly size: _angular_core.InputSignal<
|
|
18
|
-
|
|
19
|
-
protected readonly
|
|
19
|
+
/** Bootstrap sizing; `md` adds no class. */
|
|
20
|
+
readonly size: _angular_core.InputSignal<InputGroupSize>;
|
|
21
|
+
protected readonly scope = "input-group";
|
|
22
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
23
|
+
protected readonly role: string | null;
|
|
24
|
+
constructor();
|
|
20
25
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsInputGroupComponent, never>;
|
|
21
26
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsInputGroupComponent, "bs-input-group", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
22
27
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { DestroyRef, Signal } from '@angular/core';
|
|
2
|
+
import { DestroyRef, Signal, Renderer2, InjectionToken, Type, Provider, EnvironmentProviders, PipeTransform } from '@angular/core';
|
|
3
3
|
import { Store } from '@mintplayer/ui-core/store';
|
|
4
|
+
import { CoreBag, CoreContext, ComponentCore } from '@mintplayer/ui-core/component';
|
|
5
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* Bridge a `@mintplayer/ui-core` store into Angular's reactivity: a read-only
|
|
@@ -33,10 +35,11 @@ declare class MpPropsDirective {
|
|
|
33
35
|
private readonly renderer;
|
|
34
36
|
private applied;
|
|
35
37
|
constructor();
|
|
36
|
-
private apply;
|
|
37
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<MpPropsDirective, never>;
|
|
38
39
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MpPropsDirective, "[mpProps]", never, { "mpProps": { "alias": "mpProps"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
39
40
|
}
|
|
41
|
+
/** Write `next` onto `element`, removing what `previous` set and `next` drops. Returns `next`. */
|
|
42
|
+
declare function applyPropBag(renderer: Renderer2, element: Element, previous: PropBag, next: PropBag): PropBag;
|
|
40
43
|
|
|
41
44
|
/**
|
|
42
45
|
* Install a core's scoped stylesheet from an Angular front. In the browser it
|
|
@@ -46,9 +49,126 @@ declare class MpPropsDirective {
|
|
|
46
49
|
* request's `DOCUMENT` head — the client registry then treats it as already
|
|
47
50
|
* installed. No string post-processing of the response is involved.
|
|
48
51
|
*
|
|
52
|
+
* In the browser it also repairs the event-replay body shift (below) — every
|
|
53
|
+
* front calls this first thing, so the repair runs before any front's
|
|
54
|
+
* projected children are hydrated.
|
|
55
|
+
*
|
|
49
56
|
* Call from the component's constructor (an injection context).
|
|
50
57
|
*/
|
|
51
58
|
declare function useScopedStyles(key: string, cssText: string): void;
|
|
59
|
+
/**
|
|
60
|
+
* Angular SSR defect (platform-server 22): `_annotateForHydration` records the
|
|
61
|
+
* hydration paths, and only THEN `insertEventRecordScript` adds the replay
|
|
62
|
+
* `<script>` right after `#ng-event-dispatch-contract` in `<body>`. A node
|
|
63
|
+
* whose path is body-relative — any projected node a front renders outside
|
|
64
|
+
* its own host (an accordion tab's body inside the accordion's `<details>`, a
|
|
65
|
+
* tab page's body inside the tab control's panel) — is then looked up one
|
|
66
|
+
* sibling off, and hydration throws "Cannot read properties of null
|
|
67
|
+
* (reading 'nextSibling')". The replay script has already run by the time any
|
|
68
|
+
* component is constructed, so removing its element restores the body the
|
|
69
|
+
* paths were computed against. Idempotent; a no-op without event replay.
|
|
70
|
+
*/
|
|
71
|
+
declare function repairEventReplayBodyPaths(doc: Document): void;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Apply a core's attribute bag to the component's own host element: the host
|
|
75
|
+
* twin of `[mpProps]`, for a compiled template whose root is marked `mp-host`
|
|
76
|
+
* (the root element IS the host, so the template holds only its children).
|
|
77
|
+
*
|
|
78
|
+
* Diffs like `[mpProps]` and writes through `Renderer2`, so the attributes are
|
|
79
|
+
* in the server-rendered HTML. `class` is merged token by token, never
|
|
80
|
+
* written as an attribute: the consumer's own classes on the host survive.
|
|
81
|
+
*
|
|
82
|
+
* constructor() { useHostProps(() => this.view().root); }
|
|
83
|
+
*/
|
|
84
|
+
declare function useHostProps(bag: () => PropBag | null | undefined): void;
|
|
85
|
+
|
|
86
|
+
/** The Angular token for a core context: one per context object. */
|
|
87
|
+
declare function coreContextToken<T>(context: CoreContext<T>): InjectionToken<Signal<T>>;
|
|
88
|
+
/** Provides `context` to the component's content, read from the component's `useCore().provided`. */
|
|
89
|
+
declare function provideCoreContext<T>(context: CoreContext<T>, component: Type<{
|
|
90
|
+
readonly provided: Signal<T>;
|
|
91
|
+
}>): Provider;
|
|
92
|
+
interface UseCoreOptions<I, P> {
|
|
93
|
+
readonly inputs: () => I;
|
|
94
|
+
/** Prefix of the deterministic id, e.g. `bs-navbar`. */
|
|
95
|
+
readonly idPrefix: string;
|
|
96
|
+
/** The outputs by name; `api.emit` calls their `emit`. */
|
|
97
|
+
readonly outputs?: Readonly<Record<string, {
|
|
98
|
+
emit(detail: never): void;
|
|
99
|
+
}>>;
|
|
100
|
+
/** The host element's bag, where the template root is the host (`mp-host`). Default: `core.host`. */
|
|
101
|
+
readonly hostBag?: (props: P) => CoreBag | null | undefined;
|
|
102
|
+
/** Two-way inputs (`model()`), by name; written back when the core changes the state of the same name. */
|
|
103
|
+
readonly models?: Readonly<Record<string, {
|
|
104
|
+
set(value: never): void;
|
|
105
|
+
}>>;
|
|
106
|
+
}
|
|
107
|
+
interface CoreHandle<P, PC> {
|
|
108
|
+
/** The template's props. */
|
|
109
|
+
readonly props: Signal<P>;
|
|
110
|
+
/** The value this component provides to its content. */
|
|
111
|
+
readonly provided: Signal<PC>;
|
|
112
|
+
/** Runs a core method; does nothing before the first client render. */
|
|
113
|
+
call(name: string, args: unknown[]): unknown;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Host a `ComponentCore` in a generated Angular component (PRD #437 D10).
|
|
117
|
+
* Call it in a field initializer. The template's root is the host element
|
|
118
|
+
* where `hostBag` is given, else the host's first element child.
|
|
119
|
+
*/
|
|
120
|
+
declare function useCore<I, S, P, E, C, PC, M>(core: ComponentCore<I, S, P, E, C, PC, M>, options: UseCoreOptions<I, P>): CoreHandle<P, PC>;
|
|
121
|
+
|
|
122
|
+
interface MachineSsrOptions {
|
|
123
|
+
/**
|
|
124
|
+
* How long a server render waits for one component's prefetch (a `[fetch]`
|
|
125
|
+
* datatable's first page with a `stateKey`), ms. On expiry the component
|
|
126
|
+
* renders its loading state and the browser fetches. Default 3000 (#448 D6).
|
|
127
|
+
*/
|
|
128
|
+
readonly prefetchTimeout?: number;
|
|
129
|
+
}
|
|
130
|
+
declare const MACHINE_SSR_OPTIONS: InjectionToken<MachineSsrOptions>;
|
|
131
|
+
/** App-level settings for components that load data during a server render. */
|
|
132
|
+
declare function provideMachineSsr(options: MachineSsrOptions): EnvironmentProviders;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Render an `<ng-template>` into another element, the compiled form of a view's
|
|
136
|
+
* `<teleport :to>`. The twin of React's `createPortal`, Vue's `<Teleport>` and
|
|
137
|
+
* Lit's `teleport()`. The view lives in this container, so change detection and
|
|
138
|
+
* destruction follow the component, but its root nodes are moved into `to`, as
|
|
139
|
+
* CDK's DomPortalOutlet does. Nothing renders while `to` is null, which is the
|
|
140
|
+
* server's case. A core hands a target whose identity never changes (the
|
|
141
|
+
* dock's per-pane hosts), so the content's state survives wherever the core
|
|
142
|
+
* moves that target.
|
|
143
|
+
*
|
|
144
|
+
* <ng-template [mpTeleport]="view.paneHosts[pane]">...</ng-template>
|
|
145
|
+
*/
|
|
146
|
+
declare class MpTeleportDirective {
|
|
147
|
+
readonly mpTeleport: i0.InputSignal<Element | null | undefined>;
|
|
148
|
+
private readonly template;
|
|
149
|
+
private readonly container;
|
|
150
|
+
private view;
|
|
151
|
+
constructor();
|
|
152
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MpTeleportDirective, never>;
|
|
153
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MpTeleportDirective, "[mpTeleport]", never, { "mpTeleport": { "alias": "mpTeleport"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Marks core-produced markup as trusted for `[innerHTML]`: the compiled form of
|
|
158
|
+
* a view's `v-html`. The view contract is that `v-html` only ever carries markup
|
|
159
|
+
* the core produced (flag and file-type SVGs, highlighted code rows), which the
|
|
160
|
+
* React, Vue and Lit fronts insert as-is. Angular's sanitiser would instead drop
|
|
161
|
+
* every `<svg>` — an empty flag, an icon-less file manager — so the Angular front
|
|
162
|
+
* trusts it the same way.
|
|
163
|
+
*
|
|
164
|
+
* <span [innerHTML]="view.flagHtml | mpTrustedHtml"></span>
|
|
165
|
+
*/
|
|
166
|
+
declare class MpTrustedHtmlPipe implements PipeTransform {
|
|
167
|
+
private readonly sanitizer;
|
|
168
|
+
transform(html: string | null | undefined): SafeHtml;
|
|
169
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MpTrustedHtmlPipe, never>;
|
|
170
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MpTrustedHtmlPipe, "mpTrustedHtml", true>;
|
|
171
|
+
}
|
|
52
172
|
|
|
53
|
-
export { MpPropsDirective, machineSignal, useScopedStyles };
|
|
54
|
-
export type { PropBag };
|
|
173
|
+
export { MACHINE_SSR_OPTIONS, MpPropsDirective, MpTeleportDirective, MpTrustedHtmlPipe, applyPropBag, coreContextToken, machineSignal, provideCoreContext, provideMachineSsr, repairEventReplayBodyPaths, useCore, useHostProps, useScopedStyles };
|
|
174
|
+
export type { CoreHandle, MachineSsrOptions, PropBag, UseCoreOptions };
|
|
@@ -1,43 +1,69 @@
|
|
|
1
|
+
import * as _mintplayer_ui_core_multi_range from '@mintplayer/ui-core/multi-range';
|
|
2
|
+
import { MultiRangeMethods } from '@mintplayer/ui-core/multi-range';
|
|
3
|
+
export { MultiRangeOrientation } from '@mintplayer/ui-core/multi-range';
|
|
1
4
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ElementRef } from '@angular/core';
|
|
3
|
-
import { MultiRangeOrientation, MintMultiRangeElement } from '@mintplayer/web-components/multi-range';
|
|
4
|
-
export * from '@mintplayer/web-components/multi-range';
|
|
5
|
+
import { OnInit, ElementRef } from '@angular/core';
|
|
5
6
|
import { ControlValueAccessor } from '@angular/forms';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The `ControlValueAccessor` of `bs-multi-range` (a host directive of the
|
|
10
|
+
* generated component, see `multi-range.angular.ts`). A bound form control
|
|
11
|
+
* drives the thumbs through `viewValue`; every move the user makes reaches the
|
|
12
|
+
* form through the component's `value` model, which a form write never echoes.
|
|
13
|
+
*/
|
|
14
|
+
declare class BsMultiRangeValueAccessor implements ControlValueAccessor, OnInit {
|
|
15
|
+
private readonly injector;
|
|
16
|
+
private readonly destroyRef;
|
|
17
|
+
/** A form control drives the thumbs: its `viewValue` wins over the `value` input. */
|
|
18
|
+
readonly bound: _angular_core.WritableSignal<boolean>;
|
|
19
|
+
readonly viewValue: _angular_core.WritableSignal<number[] | null>;
|
|
20
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
21
|
+
private onChange;
|
|
22
|
+
onTouched: () => void;
|
|
23
|
+
ngOnInit(): void;
|
|
13
24
|
registerOnChange(fn: (value: number[]) => void): void;
|
|
14
25
|
registerOnTouched(fn: () => void): void;
|
|
15
26
|
writeValue(value: number[] | null | undefined): void;
|
|
16
27
|
setDisabledState(isDisabled: boolean): void;
|
|
17
28
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsMultiRangeValueAccessor, never>;
|
|
18
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsMultiRangeValueAccessor,
|
|
29
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsMultiRangeValueAccessor, never, never, {}, {}, never, never, true, never>;
|
|
19
30
|
}
|
|
20
31
|
|
|
32
|
+
/**
|
|
33
|
+
* A slider with several thumbs on one track (#437): each thumb is a native `<input type="range">`.
|
|
34
|
+
*
|
|
35
|
+
* With JavaScript off the thumbs drag, step and submit under `name`. Thumbs never pass each other;
|
|
36
|
+
* `minDistance` keeps a gap between neighbours. `value` is two-way, one entry per thumb.
|
|
37
|
+
* `valueInput` fires while a thumb moves, `valueChange` when the move is committed.
|
|
38
|
+
*/
|
|
21
39
|
declare class BsMultiRangeComponent {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
32
|
-
readonly
|
|
33
|
-
|
|
40
|
+
#private;
|
|
41
|
+
/** The host element. */
|
|
42
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
43
|
+
readonly min: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
44
|
+
readonly max: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
45
|
+
readonly step: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
46
|
+
readonly minDistance: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
47
|
+
readonly orientation: _angular_core.InputSignal<_mintplayer_ui_core_multi_range.MultiRangeOrientation>;
|
|
48
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
49
|
+
readonly name: _angular_core.InputSignal<string | null | undefined>;
|
|
50
|
+
readonly label: _angular_core.InputSignal<string | null | undefined>;
|
|
51
|
+
readonly thumbLabels: _angular_core.InputSignal<string[] | null | undefined>;
|
|
52
|
+
readonly formatValue: _angular_core.InputSignal<((value: number) => string) | null | undefined>;
|
|
53
|
+
readonly value: _angular_core.ModelSignal<number[] | null>;
|
|
54
|
+
/** While a thumb moves: every pointer move and key step. */
|
|
55
|
+
readonly valueinput: _angular_core.OutputEmitterRef<number[]>;
|
|
56
|
+
/** A move committed: the pointer released, or a key step. */
|
|
57
|
+
readonly valuechange: _angular_core.OutputEmitterRef<number[]>;
|
|
58
|
+
/** The template's props. */
|
|
59
|
+
protected readonly props: _angular_core.Signal<{
|
|
60
|
+
view: _mintplayer_ui_core_multi_range.MultiRangeView;
|
|
61
|
+
}>;
|
|
34
62
|
constructor();
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/** Imperatively read the currently-rendered values from the WC. */
|
|
38
|
-
getValues(): number[];
|
|
63
|
+
/** A copy of the current values. */
|
|
64
|
+
getValues(...args: Parameters<MultiRangeMethods['getValues']>): ReturnType<MultiRangeMethods['getValues']>;
|
|
39
65
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsMultiRangeComponent, never>;
|
|
40
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsMultiRangeComponent, "bs-multi-range", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "minDistance": { "alias": "minDistance"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "
|
|
66
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsMultiRangeComponent, "bs-multi-range", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "minDistance": { "alias": "minDistance"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "thumbLabels": { "alias": "thumbLabels"; "required": false; "isSignal": true; }; "formatValue": { "alias": "formatValue"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueinput": "valueinput"; "valuechange": "valuechange"; }, never, never, true, [{ directive: typeof BsMultiRangeValueAccessor; inputs: {}; outputs: {}; }]>;
|
|
41
67
|
}
|
|
42
68
|
|
|
43
69
|
export { BsMultiRangeComponent, BsMultiRangeValueAccessor };
|