@sdcorejs/angular 22.2.13 → 22.2.15
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/assets/STYLE-GUIDE.md +138 -10
- package/assets/scss/core/form.scss +18 -2
- package/assets/scss/core/utilities/_base.scss +3 -3
- package/assets/scss/themes/_presets.scss +52 -0
- package/assets/scss/themes/default.scss +39 -11
- package/assets/scss/themes/material-theme.scss +2 -2
- package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-button.mjs +13 -2
- package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +2679 -0
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +3 -3
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-preview.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-preview.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +95 -7
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs +10 -4
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab.mjs +56 -3
- package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +510 -79
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components.mjs +1 -0
- package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-select.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-i18n.mjs +430 -0
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-icon.mjs +6 -0
- package/fesm2022/sdcorejs-angular-modules-icon.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +2 -2
- package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
- package/package.json +5 -1
- package/types/sdcorejs-angular-components-button.d.ts +5 -0
- package/types/sdcorejs-angular-components-file-explorer.d.ts +500 -0
- package/types/sdcorejs-angular-components-side-drawer.d.ts +13 -2
- package/types/sdcorejs-angular-components-tab.d.ts +8 -2
- package/types/sdcorejs-angular-components-table.d.ts +220 -6
- package/types/sdcorejs-angular-components.d.ts +1 -0
- package/types/sdcorejs-angular-i18n.d.ts +85 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdcorejs/angular",
|
|
3
|
-
"version": "22.2.
|
|
3
|
+
"version": "22.2.15",
|
|
4
4
|
"description": "Angular component library: data table, query bar/builder, 20+ signal-based form controls, layout, auth and workflow services. Standalone, OnPush, signals-first. Published in parallel lines for Angular 19, 20, 21 and 22.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -124,6 +124,10 @@
|
|
|
124
124
|
"types": "./types/sdcorejs-angular-components-editor.d.ts",
|
|
125
125
|
"default": "./fesm2022/sdcorejs-angular-components-editor.mjs"
|
|
126
126
|
},
|
|
127
|
+
"./components/file-explorer": {
|
|
128
|
+
"types": "./types/sdcorejs-angular-components-file-explorer.d.ts",
|
|
129
|
+
"default": "./fesm2022/sdcorejs-angular-components-file-explorer.mjs"
|
|
130
|
+
},
|
|
127
131
|
"./components/form-generic": {
|
|
128
132
|
"types": "./types/sdcorejs-angular-components-form-generic.d.ts",
|
|
129
133
|
"default": "./fesm2022/sdcorejs-angular-components-form-generic.mjs"
|
|
@@ -84,6 +84,11 @@ declare class SdButton implements OnInit, OnDestroy {
|
|
|
84
84
|
block: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
85
85
|
htmlType: _angular_core.InputSignalWithTransform<SdButtonHtmlType, SdButtonHtmlType | null | undefined>;
|
|
86
86
|
autoId: _angular_core.Signal<string | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* Accessible name of the trigger. Menu triggers use title/tooltip; icon-only buttons use the tooltip
|
|
89
|
+
* because their icon is `aria-hidden` and they have no visible text.
|
|
90
|
+
*/
|
|
91
|
+
readonly ariaLabel: _angular_core.Signal<string | null>;
|
|
87
92
|
buttonClasses: _angular_core.Signal<{
|
|
88
93
|
'c-square': boolean;
|
|
89
94
|
'c-sm': boolean;
|
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { WritableSignal, Signal, ElementRef } from '@angular/core';
|
|
3
|
+
import { SdBreadcrumbItem } from '@sdcorejs/angular/components/breadcrumb';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Kind of an explorer entry. Folders can be opened and listed; files can be previewed and downloaded.
|
|
7
|
+
*/
|
|
8
|
+
type SdFileExplorerItemKind = 'folder' | 'file';
|
|
9
|
+
/**
|
|
10
|
+
* One file or folder shown by `<sd-file-explorer>`.
|
|
11
|
+
*
|
|
12
|
+
* The explorer never talks to a storage API itself: every item comes from `SdFileExplorerOption.list`
|
|
13
|
+
* (or `search`), so map your own DTO into this shape inside the callback.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const item: SdFileExplorerItem = {
|
|
18
|
+
* id: 'f-42',
|
|
19
|
+
* parentId: 'folder-7', // null = item sits in the root folder
|
|
20
|
+
* name: 'Contract.pdf',
|
|
21
|
+
* kind: 'file',
|
|
22
|
+
* mimeType: 'application/pdf',
|
|
23
|
+
* size: 2_516_582,
|
|
24
|
+
* modifiedAt: '2026-09-21T08:30:00Z',
|
|
25
|
+
* };
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
interface SdFileExplorerItem {
|
|
29
|
+
/** Stable id, unique across the whole tree. Used for tracking, navigation and `autoId` suffixes. */
|
|
30
|
+
id: string;
|
|
31
|
+
/** Id of the containing folder, or `null` when the item sits in the root folder. */
|
|
32
|
+
parentId: string | null;
|
|
33
|
+
/** Display name, including the extension for files. */
|
|
34
|
+
name: string;
|
|
35
|
+
/** `'folder'` or `'file'`. */
|
|
36
|
+
kind: SdFileExplorerItemKind;
|
|
37
|
+
/**
|
|
38
|
+
* MIME type such as `application/pdf` or `image/png`. Drives the type label and the preview renderer, falling
|
|
39
|
+
* back to the file extension in `name` when omitted. The file-type icon prefers the extension and uses the MIME
|
|
40
|
+
* type only when the extension is unknown.
|
|
41
|
+
*/
|
|
42
|
+
mimeType?: string;
|
|
43
|
+
/** Size in bytes. Shown for files only; the column shows a dash when omitted. */
|
|
44
|
+
size?: number;
|
|
45
|
+
/** Last modification time (a `Date`, an ISO string or epoch milliseconds). The column shows a dash when omitted. */
|
|
46
|
+
modifiedAt?: Date | string | number;
|
|
47
|
+
/**
|
|
48
|
+
* Folders only. Set `false` for a folder known to contain no sub-folders so the tree hides its expander.
|
|
49
|
+
* Leave `undefined` when unknown; the tree then shows the expander until the folder has been listed.
|
|
50
|
+
*/
|
|
51
|
+
hasChildren?: boolean;
|
|
52
|
+
/** Image URL shown on the grid card instead of the file-type icon. Caller-owned: the explorer never revokes it. */
|
|
53
|
+
thumbnailUrl?: string;
|
|
54
|
+
}
|
|
55
|
+
/** Arguments of `SdFileExplorerOption.list`. */
|
|
56
|
+
interface SdFileExplorerListArgs {
|
|
57
|
+
/** Folder whose direct children are requested; `null` is the root folder. */
|
|
58
|
+
parentId: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Aborted when the result is no longer needed: the same folder is listed again (`reload()`, a finished upload),
|
|
61
|
+
* the `list` callback is replaced, or the explorer is destroyed. Navigating away does not abort — the result
|
|
62
|
+
* is cached for the next visit.
|
|
63
|
+
*/
|
|
64
|
+
signal: AbortSignal;
|
|
65
|
+
}
|
|
66
|
+
/** Arguments of `SdFileExplorerOption.search`. */
|
|
67
|
+
interface SdFileExplorerSearchArgs {
|
|
68
|
+
/** Folder the user is currently viewing; `null` is the root folder. */
|
|
69
|
+
parentId: string | null;
|
|
70
|
+
/** Trimmed, non-empty keyword typed by the user. */
|
|
71
|
+
keyword: string;
|
|
72
|
+
/** Aborted when a newer keyword supersedes this one, the search is cleared or the user navigates away. */
|
|
73
|
+
signal: AbortSignal;
|
|
74
|
+
}
|
|
75
|
+
/** Arguments of `SdFileExplorerOption.preview`. */
|
|
76
|
+
interface SdFileExplorerPreviewArgs {
|
|
77
|
+
/** File being previewed. */
|
|
78
|
+
item: SdFileExplorerItem;
|
|
79
|
+
/** Aborted when the detail drawer is closed or another file is opened before this one resolves. */
|
|
80
|
+
signal: AbortSignal;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Content returned by `SdFileExplorerOption.preview`.
|
|
84
|
+
*
|
|
85
|
+
* - `string`: a URL. Caller-owned — the explorer uses it as-is and never revokes it.
|
|
86
|
+
* - `Blob` / `File`: the explorer creates an object URL when needed and revokes it when the preview closes,
|
|
87
|
+
* another file is opened, or the explorer is destroyed.
|
|
88
|
+
*/
|
|
89
|
+
type SdFileExplorerPreviewSource = string | Blob;
|
|
90
|
+
/**
|
|
91
|
+
* Progress reporter handed to `upload` and `download`.
|
|
92
|
+
*
|
|
93
|
+
* Call it with the bytes transferred so far and, when known, the total size. The first call moves the
|
|
94
|
+
* transfer from `preparing` to `transferring`. A percentage is displayed only when `total` is a positive
|
|
95
|
+
* number; without it the progress bar stays indeterminate — the explorer never invents a percentage.
|
|
96
|
+
*/
|
|
97
|
+
type SdFileExplorerProgressReporter = (loaded: number, total?: number) => void;
|
|
98
|
+
/** Arguments shared by `upload` and `download`. */
|
|
99
|
+
interface SdFileExplorerTransferArgs {
|
|
100
|
+
/** Report transfer progress. Optional to call; calls after the transfer ended are ignored. */
|
|
101
|
+
progress: SdFileExplorerProgressReporter;
|
|
102
|
+
/**
|
|
103
|
+
* Aborted when the user cancels the transfer or the explorer is destroyed. Pass it to `fetch`/`HttpClient`
|
|
104
|
+
* (or abort your XHR) so cancelling really stops the network request.
|
|
105
|
+
*/
|
|
106
|
+
signal: AbortSignal;
|
|
107
|
+
}
|
|
108
|
+
/** Arguments of `SdFileExplorerOption.upload`. */
|
|
109
|
+
interface SdFileExplorerUploadArgs extends SdFileExplorerTransferArgs {
|
|
110
|
+
/** File picked through the upload button or dropped onto the explorer. */
|
|
111
|
+
file: File;
|
|
112
|
+
/** Destination folder (the folder being viewed when the upload started); `null` is the root folder. */
|
|
113
|
+
parentId: string | null;
|
|
114
|
+
}
|
|
115
|
+
/** Arguments of `SdFileExplorerOption.download`. */
|
|
116
|
+
interface SdFileExplorerDownloadArgs extends SdFileExplorerTransferArgs {
|
|
117
|
+
/** File to download. */
|
|
118
|
+
item: SdFileExplorerItem;
|
|
119
|
+
}
|
|
120
|
+
/** Arguments of `SdFileExplorerOption.share`. */
|
|
121
|
+
interface SdFileExplorerShareArgs {
|
|
122
|
+
/** File to share. */
|
|
123
|
+
item: SdFileExplorerItem;
|
|
124
|
+
/** Aborted when the user closes the share dialog before the link is ready, or the explorer is destroyed. */
|
|
125
|
+
signal: AbortSignal;
|
|
126
|
+
}
|
|
127
|
+
/** Arguments of `SdFileExplorerOption.createFolder`. */
|
|
128
|
+
interface SdFileExplorerCreateFolderArgs {
|
|
129
|
+
/** Folder that receives the new folder (the folder being viewed); `null` is the root folder. */
|
|
130
|
+
parentId: string | null;
|
|
131
|
+
/** Trimmed, non-empty name typed by the user. */
|
|
132
|
+
name: string;
|
|
133
|
+
}
|
|
134
|
+
/** Layout of the item area. */
|
|
135
|
+
type SdFileExplorerView = 'list' | 'grid';
|
|
136
|
+
/**
|
|
137
|
+
* Configuration of `<sd-file-explorer>`.
|
|
138
|
+
*
|
|
139
|
+
* Only `list` is required. Every other callback is optional and switches its UI on: without `upload` there is
|
|
140
|
+
* no upload button and no drop zone, without `createFolder` there is no "New folder" button, without `download`
|
|
141
|
+
* or `share` there are no download or share buttons. Callbacks may return a value or a `Promise`; a thrown error or a rejected
|
|
142
|
+
* promise is shown as an error state (listing, preview) or a failed transfer (upload, download).
|
|
143
|
+
*
|
|
144
|
+
* The explorer is storage-agnostic: it does not know about HTTP endpoints, presigned URLs or providers.
|
|
145
|
+
* Keep that knowledge inside the callbacks.
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* ```ts
|
|
149
|
+
* readonly option: SdFileExplorerOption = {
|
|
150
|
+
* title: 'My files',
|
|
151
|
+
* list: ({ parentId, signal }) => firstValueFrom(this.api.children(parentId, { signal })),
|
|
152
|
+
* search: ({ parentId, keyword }) => firstValueFrom(this.api.search(parentId, keyword)),
|
|
153
|
+
* preview: ({ item }) => this.api.previewUrl(item.id), // string URL or Blob
|
|
154
|
+
* download: ({ item, progress, signal }) => this.api.downloadBlob(item.id, progress, signal), // Blob
|
|
155
|
+
* share: ({ item }) => firstValueFrom(this.api.createShareLink(item.id)), // URL string
|
|
156
|
+
* upload: ({ file, parentId, progress, signal }) => this.api.upload(file, parentId, progress, signal),
|
|
157
|
+
* createFolder: ({ parentId, name }) => firstValueFrom(this.api.createFolder(parentId, name)),
|
|
158
|
+
* };
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
161
|
+
interface SdFileExplorerOption {
|
|
162
|
+
/**
|
|
163
|
+
* Returns the direct children (files and folders) of a folder. Required.
|
|
164
|
+
*
|
|
165
|
+
* Called lazily: once per folder when it is first opened or expanded in the tree, then cached until
|
|
166
|
+
* `reload()` or a successful upload / folder creation in that folder. `parentId` is `null` for the root.
|
|
167
|
+
*/
|
|
168
|
+
list: (args: SdFileExplorerListArgs) => SdFileExplorerItem[] | Promise<SdFileExplorerItem[]>;
|
|
169
|
+
/**
|
|
170
|
+
* Server-side search inside the current folder. Called 300 ms after the user stops typing, and only for a
|
|
171
|
+
* non-empty keyword; stale requests are aborted and their results ignored.
|
|
172
|
+
*
|
|
173
|
+
* When omitted, the search box filters the already loaded children of the current folder by name
|
|
174
|
+
* (case- and Vietnamese-accent-insensitive) without calling any callback.
|
|
175
|
+
*/
|
|
176
|
+
search?: (args: SdFileExplorerSearchArgs) => SdFileExplorerItem[] | Promise<SdFileExplorerItem[]>;
|
|
177
|
+
/**
|
|
178
|
+
* Resolves the content shown in the detail drawer when a file is opened.
|
|
179
|
+
*
|
|
180
|
+
* Images render as `<img>`; PDFs render with `<sd-preview-pdf>` (loaded on demand, so consumers that never
|
|
181
|
+
* preview a PDF do not download PDF.js). Return `null`/`undefined` — or omit the callback — to show the
|
|
182
|
+
* "no preview" fallback. Other formats always show the fallback with a download button.
|
|
183
|
+
*/
|
|
184
|
+
preview?: (args: SdFileExplorerPreviewArgs) => SdFileExplorerPreviewSource | null | undefined | Promise<SdFileExplorerPreviewSource | null | undefined>;
|
|
185
|
+
/**
|
|
186
|
+
* Downloads a file. Enables the download buttons in list, grid and preview.
|
|
187
|
+
*
|
|
188
|
+
* - Return a `Blob`: the explorer saves it under `item.name`. Call `progress` while fetching to show a percentage.
|
|
189
|
+
* - Return nothing: you handed the download to the browser yourself (for example `window.open(url)` or an
|
|
190
|
+
* anchor with `download`). The transfer is then marked "handed to the browser" without a fake percentage.
|
|
191
|
+
*/
|
|
192
|
+
download?: (args: SdFileExplorerDownloadArgs) => Blob | void | Promise<Blob | void>;
|
|
193
|
+
/**
|
|
194
|
+
* Creates a shareable link for a file and returns its URL. Enables the "Share" buttons (list rows and
|
|
195
|
+
* detail drawer).
|
|
196
|
+
*
|
|
197
|
+
* The explorer opens a dialog that shows the link with a "Copy link" button — copying happens on that
|
|
198
|
+
* explicit click, so it works even when the callback takes a while. Throw (or reject) to show the error
|
|
199
|
+
* `message` with a retry button. Expiry, permissions or audience stay in your API.
|
|
200
|
+
*/
|
|
201
|
+
share?: (args: SdFileExplorerShareArgs) => string | Promise<string>;
|
|
202
|
+
/**
|
|
203
|
+
* Uploads one file into `parentId`. Enables the upload button and drag-and-drop.
|
|
204
|
+
*
|
|
205
|
+
* Called once per file, at most 3 files at a time; extra files wait in the queue. After success the
|
|
206
|
+
* destination folder is listed again. Throw (or reject) to mark the transfer as failed — the error `message`
|
|
207
|
+
* is shown as the failure reason and the user can retry.
|
|
208
|
+
*/
|
|
209
|
+
upload?: (args: SdFileExplorerUploadArgs) => SdFileExplorerItem | void | Promise<SdFileExplorerItem | void>;
|
|
210
|
+
/**
|
|
211
|
+
* Creates a folder inside the current folder. Enables the "New folder" button.
|
|
212
|
+
* After success the current folder is listed again. Throw (or reject) to keep the dialog open with the error.
|
|
213
|
+
*/
|
|
214
|
+
createFolder?: (args: SdFileExplorerCreateFolderArgs) => SdFileExplorerItem | void | Promise<SdFileExplorerItem | void>;
|
|
215
|
+
/** Heading shown in the explorer header. When omitted the header shows only search and upload. */
|
|
216
|
+
title?: string;
|
|
217
|
+
/** Secondary line under `title`. Ignored when `title` is omitted. */
|
|
218
|
+
description?: string;
|
|
219
|
+
/** Label of the root folder in the tree and breadcrumb. Defaults to the translated "All files". */
|
|
220
|
+
rootLabel?: string;
|
|
221
|
+
/** Initial layout of the item area. The user can switch afterwards. @defaultValue `'list'` */
|
|
222
|
+
defaultView?: SdFileExplorerView;
|
|
223
|
+
/** E2E scope. Produces `data-autoid="components-file-explorer-{autoId}"` and derived child ids. */
|
|
224
|
+
autoId?: string;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Payload of the `(open)` output.
|
|
228
|
+
*
|
|
229
|
+
* Emitted exactly once each time the user opens a file (click, `Enter` or `Space` on a file in the list,
|
|
230
|
+
* grid or search results). Not emitted for folders, which navigate instead, nor when the detail drawer
|
|
231
|
+
* re-renders or reloads.
|
|
232
|
+
*/
|
|
233
|
+
interface SdFileExplorerOpenEvent {
|
|
234
|
+
/** The file that was opened. */
|
|
235
|
+
item: SdFileExplorerItem;
|
|
236
|
+
/** Folders from the root (excluded) down to the folder being viewed when the file was opened. */
|
|
237
|
+
path: readonly SdFileExplorerItem[];
|
|
238
|
+
}
|
|
239
|
+
/** Direction of a transfer shown in the transfer panel. */
|
|
240
|
+
type SdFileExplorerTransferDirection = 'upload' | 'download';
|
|
241
|
+
/**
|
|
242
|
+
* Lifecycle of a transfer.
|
|
243
|
+
*
|
|
244
|
+
* - `queued`: waiting for a free upload slot (at most 3 uploads run at the same time).
|
|
245
|
+
* - `preparing`: the callback is running but has not reported progress yet (for example requesting a signed URL).
|
|
246
|
+
* - `transferring`: the callback reported progress at least once.
|
|
247
|
+
* - `done`: the callback resolved.
|
|
248
|
+
* - `error`: the callback threw or rejected; `error` holds the reason. The user can retry.
|
|
249
|
+
* - `cancelled`: the user cancelled; the `signal` passed to the callback was aborted. The user can retry.
|
|
250
|
+
*/
|
|
251
|
+
type SdFileExplorerTransferStatus = 'queued' | 'preparing' | 'transferring' | 'done' | 'error' | 'cancelled';
|
|
252
|
+
/** Read-only snapshot of one upload or download, exposed through `SdFileExplorer.transfers`. */
|
|
253
|
+
interface SdFileExplorerTransfer {
|
|
254
|
+
/** Internal id, unique within the explorer instance. */
|
|
255
|
+
readonly id: string;
|
|
256
|
+
/** `'upload'` or `'download'`. */
|
|
257
|
+
readonly direction: SdFileExplorerTransferDirection;
|
|
258
|
+
/** File name shown in the transfer panel. */
|
|
259
|
+
readonly name: string;
|
|
260
|
+
/** Current lifecycle state. */
|
|
261
|
+
readonly status: SdFileExplorerTransferStatus;
|
|
262
|
+
/** Bytes reported by the last `progress` call. */
|
|
263
|
+
readonly loaded?: number;
|
|
264
|
+
/** Total reported by the last `progress` call, when known. */
|
|
265
|
+
readonly total?: number;
|
|
266
|
+
/** 0–100, present only when the callback reported a positive `total`. Absent means indeterminate. */
|
|
267
|
+
readonly percent?: number;
|
|
268
|
+
/** Download finished by handing the file to the browser (the callback returned no `Blob`). */
|
|
269
|
+
readonly handedOff?: boolean;
|
|
270
|
+
/** Reason of the failure when `status` is `'error'`. */
|
|
271
|
+
readonly error?: unknown;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/** Name of a built-in SdFileExplorer file-type icon. */
|
|
275
|
+
type SdFileExplorerIconName = 'file-3d' | 'file-7z' | 'file-ai' | 'file-app' | 'file-archive' | 'file-audio' | 'file-book' | 'file-code' | 'file-css' | 'file-csv' | 'file-design' | 'file-document' | 'file-figma' | 'file-font' | 'file-generic' | 'file-gif' | 'file-html' | 'file-image' | 'file-jpg' | 'file-js' | 'file-json' | 'file-markdown' | 'file-mov' | 'file-mp3' | 'file-mp4' | 'file-pdf' | 'file-png' | 'file-presentation' | 'file-psd' | 'file-python' | 'file-rar' | 'file-spreadsheet' | 'file-sql' | 'file-svg' | 'file-tar' | 'file-text' | 'file-ts' | 'file-video' | 'file-wav' | 'file-webp' | 'file-xml' | 'file-yaml' | 'file-zip' | 'folder-closed' | 'folder-open';
|
|
276
|
+
|
|
277
|
+
/** Family of an item: picks the type label and the preview renderer. The glyph comes from `sdFileExplorerIconName`. */
|
|
278
|
+
type SdFileExplorerFileType = 'folder' | 'image' | 'pdf' | 'spreadsheet' | 'document' | 'presentation' | 'video' | 'audio' | 'archive' | 'text' | 'other';
|
|
279
|
+
|
|
280
|
+
/** One visible row of the folder tree (the tree is rendered flat, depth carried by `level`). */
|
|
281
|
+
interface SdFileExplorerTreeNode {
|
|
282
|
+
/** Unique key: `root` for the root folder, `f:<id>` for folders. */
|
|
283
|
+
readonly key: string;
|
|
284
|
+
/** Folder id; `null` for the root. */
|
|
285
|
+
readonly id: string | null;
|
|
286
|
+
/** Folder item; `null` for the root. */
|
|
287
|
+
readonly item: SdFileExplorerItem | null;
|
|
288
|
+
readonly name: string;
|
|
289
|
+
/** 1-based depth, rendered as `aria-level`. The root is level 1. */
|
|
290
|
+
readonly level: number;
|
|
291
|
+
readonly expandable: boolean;
|
|
292
|
+
readonly expanded: boolean;
|
|
293
|
+
/** Listing state of the folder's children, only meaningful while expanded. */
|
|
294
|
+
readonly status: 'idle' | 'loading' | 'error';
|
|
295
|
+
readonly selected: boolean;
|
|
296
|
+
readonly autoId?: string;
|
|
297
|
+
}
|
|
298
|
+
/** One item of the list / grid, with every display string already formatted. */
|
|
299
|
+
interface SdFileExplorerItemView {
|
|
300
|
+
readonly item: SdFileExplorerItem;
|
|
301
|
+
readonly type: SdFileExplorerFileType;
|
|
302
|
+
/** Built-in glyph resolved from the extension / MIME type. */
|
|
303
|
+
readonly icon: SdFileExplorerIconName;
|
|
304
|
+
readonly typeLabel: string;
|
|
305
|
+
readonly sizeLabel: string;
|
|
306
|
+
readonly modifiedLabel: string;
|
|
307
|
+
readonly modifiedTitle: string;
|
|
308
|
+
readonly downloadLabel: string;
|
|
309
|
+
readonly shareLabel: string;
|
|
310
|
+
readonly autoId?: string;
|
|
311
|
+
}
|
|
312
|
+
/** One card of the transfer panel. */
|
|
313
|
+
interface SdFileExplorerTransferView {
|
|
314
|
+
readonly transfer: SdFileExplorerTransfer;
|
|
315
|
+
readonly statusLabel: string;
|
|
316
|
+
/** `determinate` shows `percent`; `indeterminate` animates; `full` fills the bar (finished). */
|
|
317
|
+
readonly progress: 'determinate' | 'indeterminate' | 'full' | 'none';
|
|
318
|
+
readonly percent: number;
|
|
319
|
+
readonly tone: 'active' | 'success' | 'error' | 'muted';
|
|
320
|
+
readonly canCancel: boolean;
|
|
321
|
+
readonly canRetry: boolean;
|
|
322
|
+
readonly canDismiss: boolean;
|
|
323
|
+
readonly cancelLabel: string;
|
|
324
|
+
readonly retryLabel: string;
|
|
325
|
+
readonly dismissLabel: string;
|
|
326
|
+
readonly directionLabel: string;
|
|
327
|
+
/** Failure reason shown under the bar; empty unless `status` is `error`. */
|
|
328
|
+
readonly errorMessage: string;
|
|
329
|
+
readonly autoId?: string;
|
|
330
|
+
}
|
|
331
|
+
/** What the detail drawer currently renders. */
|
|
332
|
+
type SdFileExplorerPreviewState = {
|
|
333
|
+
readonly status: 'idle';
|
|
334
|
+
} | {
|
|
335
|
+
readonly status: 'loading';
|
|
336
|
+
} | {
|
|
337
|
+
readonly status: 'image';
|
|
338
|
+
readonly url: string;
|
|
339
|
+
} | {
|
|
340
|
+
readonly status: 'pdf';
|
|
341
|
+
readonly source: string | Blob;
|
|
342
|
+
} | {
|
|
343
|
+
readonly status: 'unavailable';
|
|
344
|
+
} | {
|
|
345
|
+
readonly status: 'error';
|
|
346
|
+
readonly message: string;
|
|
347
|
+
};
|
|
348
|
+
/** What the item area shows. */
|
|
349
|
+
type SdFileExplorerContentState = 'loading' | 'error' | 'empty' | 'items';
|
|
350
|
+
/** Result of the last copy attempt in the share dialog: copied, or selected for a manual Ctrl+C. */
|
|
351
|
+
type SdFileExplorerShareFeedback = '' | 'copied' | 'manual';
|
|
352
|
+
/** State of the share dialog. */
|
|
353
|
+
type SdFileExplorerShareState = {
|
|
354
|
+
readonly status: 'loading';
|
|
355
|
+
} | {
|
|
356
|
+
readonly status: 'ready';
|
|
357
|
+
readonly url: string;
|
|
358
|
+
} | {
|
|
359
|
+
readonly status: 'error';
|
|
360
|
+
readonly message: string;
|
|
361
|
+
};
|
|
362
|
+
/** Metadata row of the detail drawer. */
|
|
363
|
+
interface SdFileExplorerMetaRow {
|
|
364
|
+
readonly label: string;
|
|
365
|
+
readonly value: string;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Google-Drive-like file browser: folder tree, breadcrumb, list / grid, search, file detail drawer, uploads with
|
|
370
|
+
* drag-and-drop, downloads and a transfer queue — all inside one element.
|
|
371
|
+
*
|
|
372
|
+
* Storage-agnostic: every read and write goes through the callbacks of `SdFileExplorerOption`.
|
|
373
|
+
*
|
|
374
|
+
* @example
|
|
375
|
+
* ```html
|
|
376
|
+
* <sd-file-explorer [option]="option" (open)="onOpen($event)" />
|
|
377
|
+
* ```
|
|
378
|
+
*/
|
|
379
|
+
declare class SdFileExplorer {
|
|
380
|
+
#private;
|
|
381
|
+
/** Data callbacks and display settings. See `SdFileExplorerOption`. */
|
|
382
|
+
readonly option: _angular_core.InputSignal<SdFileExplorerOption>;
|
|
383
|
+
/**
|
|
384
|
+
* Emitted exactly once each time the user opens a file (click, `Enter` or `Space` on a file in the list,
|
|
385
|
+
* grid or search results), right before the detail drawer starts loading. Never emitted for folders.
|
|
386
|
+
*/
|
|
387
|
+
readonly open: _angular_core.OutputEmitterRef<SdFileExplorerOpenEvent>;
|
|
388
|
+
protected readonly view: WritableSignal<SdFileExplorerView>;
|
|
389
|
+
protected readonly keyword: WritableSignal<string>;
|
|
390
|
+
protected readonly previewState: WritableSignal<SdFileExplorerPreviewState>;
|
|
391
|
+
protected readonly transfersCollapsed: WritableSignal<boolean>;
|
|
392
|
+
protected readonly sidebarOpen: WritableSignal<boolean>;
|
|
393
|
+
protected readonly dragActive: WritableSignal<boolean>;
|
|
394
|
+
protected readonly folderDialogOpen: WritableSignal<boolean>;
|
|
395
|
+
protected readonly folderName: WritableSignal<string>;
|
|
396
|
+
protected readonly folderSubmitting: WritableSignal<boolean>;
|
|
397
|
+
protected readonly folderError: WritableSignal<string>;
|
|
398
|
+
/** File whose share dialog is open. */
|
|
399
|
+
protected readonly shareItem: WritableSignal<SdFileExplorerItem | null>;
|
|
400
|
+
protected readonly shareState: WritableSignal<SdFileExplorerShareState>;
|
|
401
|
+
/** Result of the last copy attempt: copied to the clipboard, or selected for a manual Ctrl+C. */
|
|
402
|
+
protected readonly shareFeedback: WritableSignal<SdFileExplorerShareFeedback>;
|
|
403
|
+
/**
|
|
404
|
+
* Uploads and downloads started in this explorer, oldest first. Read-only; use it for example to warn
|
|
405
|
+
* before leaving the page while `status` is `queued`, `preparing` or `transferring`.
|
|
406
|
+
*/
|
|
407
|
+
readonly transfers: Signal<readonly SdFileExplorerTransfer[]>;
|
|
408
|
+
protected readonly searchInput: Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
409
|
+
protected readonly folderInput: Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
410
|
+
protected readonly newFolderButton: Signal<ElementRef<HTMLElement> | undefined>;
|
|
411
|
+
protected readonly copyButton: Signal<ElementRef<HTMLElement> | undefined>;
|
|
412
|
+
protected readonly shareInput: Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
413
|
+
protected readonly shareDialog: Signal<ElementRef<HTMLElement> | undefined>;
|
|
414
|
+
protected readonly sidebar: Signal<ElementRef<HTMLElement> | undefined>;
|
|
415
|
+
protected readonly instanceId: string;
|
|
416
|
+
protected readonly compact: Signal<boolean>;
|
|
417
|
+
readonly autoId: Signal<string | undefined>;
|
|
418
|
+
protected readonly locale: Signal<string>;
|
|
419
|
+
protected readonly rootLabel: Signal<string>;
|
|
420
|
+
protected readonly canUpload: Signal<boolean>;
|
|
421
|
+
protected readonly canDownload: Signal<boolean>;
|
|
422
|
+
protected readonly canCreateFolder: Signal<boolean>;
|
|
423
|
+
protected readonly canShare: Signal<boolean>;
|
|
424
|
+
protected readonly currentName: Signal<string>;
|
|
425
|
+
protected readonly searching: Signal<boolean>;
|
|
426
|
+
protected readonly itemViews: Signal<readonly SdFileExplorerItemView[]>;
|
|
427
|
+
protected readonly contentState: Signal<SdFileExplorerContentState>;
|
|
428
|
+
protected readonly refreshing: Signal<boolean>;
|
|
429
|
+
protected readonly errorMessage: Signal<string>;
|
|
430
|
+
protected readonly heading: Signal<string>;
|
|
431
|
+
protected readonly itemCountLabel: Signal<string>;
|
|
432
|
+
protected readonly emptyTitle: Signal<string>;
|
|
433
|
+
protected readonly emptyMessage: Signal<string>;
|
|
434
|
+
protected readonly dropTitle: Signal<string>;
|
|
435
|
+
protected readonly shareTitle: Signal<string>;
|
|
436
|
+
protected readonly shareFeedbackLabel: Signal<string>;
|
|
437
|
+
protected readonly folderDialogTitle: Signal<string>;
|
|
438
|
+
/** Breadcrumb trail plus the folder each entry navigates to. */
|
|
439
|
+
protected readonly breadcrumb: Signal<{
|
|
440
|
+
items: SdBreadcrumbItem[];
|
|
441
|
+
targets: Map<SdBreadcrumbItem, SdFileExplorerItem | null>;
|
|
442
|
+
}>;
|
|
443
|
+
protected readonly treeNodes: Signal<readonly SdFileExplorerTreeNode[]>;
|
|
444
|
+
protected readonly previewView: Signal<SdFileExplorerItemView | null>;
|
|
445
|
+
protected readonly previewMeta: Signal<readonly SdFileExplorerMetaRow[]>;
|
|
446
|
+
protected readonly transferViews: Signal<readonly SdFileExplorerTransferView[]>;
|
|
447
|
+
protected readonly transfersTitle: Signal<string>;
|
|
448
|
+
protected readonly canClearTransfers: Signal<boolean>;
|
|
449
|
+
constructor();
|
|
450
|
+
/**
|
|
451
|
+
* Lists the current folder again and drops the cached children of folders that are neither open in the
|
|
452
|
+
* tree nor on the current path. Re-runs the active search, if any.
|
|
453
|
+
*/
|
|
454
|
+
reload(): void;
|
|
455
|
+
protected navigate(folder: SdFileExplorerItem | null): void;
|
|
456
|
+
protected onBreadcrumb(entry: SdBreadcrumbItem): void;
|
|
457
|
+
protected onTreeSelect(node: SdFileExplorerTreeNode): void;
|
|
458
|
+
protected onTreeToggle(node: SdFileExplorerTreeNode): void;
|
|
459
|
+
protected onTreeRetry(node: SdFileExplorerTreeNode): void;
|
|
460
|
+
protected retryContent(): void;
|
|
461
|
+
protected toggleSidebar(): void;
|
|
462
|
+
protected setView(view: SdFileExplorerView): void;
|
|
463
|
+
protected onActivate(view: SdFileExplorerItemView): void;
|
|
464
|
+
protected openFile(item: SdFileExplorerItem): void;
|
|
465
|
+
/**
|
|
466
|
+
* Closes the detail drawer. Focus goes back to the row / card that opened it: `sd-side-drawer` restores the
|
|
467
|
+
* previously focused element when its focus trap closes.
|
|
468
|
+
*/
|
|
469
|
+
protected closePreview(): void;
|
|
470
|
+
protected retryPreview(): void;
|
|
471
|
+
protected onPreviewImageError(): void;
|
|
472
|
+
protected downloadItem(item: SdFileExplorerItem): void;
|
|
473
|
+
protected downloadPreview(): void;
|
|
474
|
+
protected sharePreview(): void;
|
|
475
|
+
protected onKeywordInput(value: string): void;
|
|
476
|
+
protected clearSearch(): void;
|
|
477
|
+
protected onFilesPicked(input: HTMLInputElement): void;
|
|
478
|
+
protected uploadFiles(files: readonly File[]): void;
|
|
479
|
+
protected onDragEnter(event: DragEvent): void;
|
|
480
|
+
protected onDragOver(event: DragEvent): void;
|
|
481
|
+
protected onDragLeave(): void;
|
|
482
|
+
protected onDrop(event: DragEvent): void;
|
|
483
|
+
protected cancelTransfer(id: string): void;
|
|
484
|
+
protected retryTransfer(id: string): void;
|
|
485
|
+
protected dismissTransfer(id: string): void;
|
|
486
|
+
protected clearFinishedTransfers(): void;
|
|
487
|
+
protected openFolderDialog(): void;
|
|
488
|
+
protected closeFolderDialog(): void;
|
|
489
|
+
protected openShare(item: SdFileExplorerItem): void;
|
|
490
|
+
protected retryShare(): void;
|
|
491
|
+
protected closeShare(): void;
|
|
492
|
+
protected copyShareLink(): Promise<void>;
|
|
493
|
+
protected submitFolder(event: Event): Promise<void>;
|
|
494
|
+
protected onEscape(event: Event): void;
|
|
495
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdFileExplorer, never>;
|
|
496
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdFileExplorer, "sd-file-explorer", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; }, { "open": "open"; }, never, never, true, never>;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
export { SdFileExplorer };
|
|
500
|
+
export type { SdFileExplorerCreateFolderArgs, SdFileExplorerDownloadArgs, SdFileExplorerItem, SdFileExplorerItemKind, SdFileExplorerListArgs, SdFileExplorerOpenEvent, SdFileExplorerOption, SdFileExplorerPreviewArgs, SdFileExplorerPreviewSource, SdFileExplorerProgressReporter, SdFileExplorerSearchArgs, SdFileExplorerShareArgs, SdFileExplorerTransfer, SdFileExplorerTransferArgs, SdFileExplorerTransferDirection, SdFileExplorerTransferStatus, SdFileExplorerUploadArgs, SdFileExplorerView };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
2
3
|
import { CdkPortal } from '@angular/cdk/portal';
|
|
3
4
|
import { Observable } from 'rxjs';
|
|
4
5
|
|
|
5
6
|
type SdSideDrawerBeforeClose = () => boolean | Promise<boolean>;
|
|
7
|
+
/** Element a drawer opens inside — see `SdSideDrawer.container`. */
|
|
8
|
+
type SdSideDrawerContainer = HTMLElement | ElementRef<HTMLElement>;
|
|
6
9
|
declare class SdSideDrawer {
|
|
7
10
|
#private;
|
|
8
11
|
id: string;
|
|
@@ -12,6 +15,13 @@ declare class SdSideDrawer {
|
|
|
12
15
|
hideClose: _angular_core.InputSignalWithTransform<boolean, boolean | "">;
|
|
13
16
|
disableBackdropClose: _angular_core.InputSignalWithTransform<boolean, boolean | "">;
|
|
14
17
|
beforeClose: _angular_core.InputSignal<SdSideDrawerBeforeClose | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* Element the drawer opens inside, for example a template reference: `[container]="area"`.
|
|
20
|
+
* Panel and backdrop then cover only that element and page scroll stays unlocked; a statically
|
|
21
|
+
* positioned container becomes `position: relative` while the drawer lives in it.
|
|
22
|
+
* `null` (default): the drawer covers the viewport.
|
|
23
|
+
*/
|
|
24
|
+
container: _angular_core.InputSignal<SdSideDrawerContainer | null | undefined>;
|
|
15
25
|
drawerClass: _angular_core.InputSignal<any>;
|
|
16
26
|
readonly autoIdInput: _angular_core.InputSignal<string | null | undefined>;
|
|
17
27
|
readonly autoId: _angular_core.Signal<string | undefined>;
|
|
@@ -21,6 +31,7 @@ declare class SdSideDrawer {
|
|
|
21
31
|
readonly isLoading: _angular_core.Signal<boolean>;
|
|
22
32
|
readonly dataOpened: _angular_core.Signal<"true" | "false">;
|
|
23
33
|
readonly dataLoading: _angular_core.Signal<"true" | "false">;
|
|
34
|
+
protected readonly contained: _angular_core.Signal<boolean>;
|
|
24
35
|
isHovered$: Observable<boolean>;
|
|
25
36
|
constructor();
|
|
26
37
|
open: () => void;
|
|
@@ -31,8 +42,8 @@ declare class SdSideDrawer {
|
|
|
31
42
|
stopLoading: () => void;
|
|
32
43
|
preventScroll: (event: Event) => void;
|
|
33
44
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdSideDrawer, never>;
|
|
34
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdSideDrawer, "sd-side-drawer", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "hideClose": { "alias": "hideClose"; "required": false; "isSignal": true; }; "disableBackdropClose": { "alias": "disableBackdropClose"; "required": false; "isSignal": true; }; "beforeClose": { "alias": "beforeClose"; "required": false; "isSignal": true; }; "drawerClass": { "alias": "drawerClass"; "required": false; "isSignal": true; }; "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "sdClosed": "sdClosed"; "sdCloseError": "sdCloseError"; }, never, ["[sdHeaderLeft]", "[sdHeaderRight]", "*", "[sdFooterLeft]", "[sdFooterRight]"], true, never>;
|
|
45
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdSideDrawer, "sd-side-drawer", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "hideClose": { "alias": "hideClose"; "required": false; "isSignal": true; }; "disableBackdropClose": { "alias": "disableBackdropClose"; "required": false; "isSignal": true; }; "beforeClose": { "alias": "beforeClose"; "required": false; "isSignal": true; }; "container": { "alias": "container"; "required": false; "isSignal": true; }; "drawerClass": { "alias": "drawerClass"; "required": false; "isSignal": true; }; "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "sdClosed": "sdClosed"; "sdCloseError": "sdCloseError"; }, never, ["[sdHeaderLeft]", "[sdHeaderRight]", "*", "[sdFooterLeft]", "[sdFooterRight]"], true, never>;
|
|
35
46
|
}
|
|
36
47
|
|
|
37
48
|
export { SdSideDrawer };
|
|
38
|
-
export type { SdSideDrawerBeforeClose };
|
|
49
|
+
export type { SdSideDrawerBeforeClose, SdSideDrawerContainer };
|
|
@@ -25,6 +25,7 @@ interface SdTabClosedEvent {
|
|
|
25
25
|
index: number;
|
|
26
26
|
tab: SdTab;
|
|
27
27
|
}
|
|
28
|
+
type SdTabRegionStyle = Readonly<Record<string, string | number | null | undefined>>;
|
|
28
29
|
declare class SdTabGroup {
|
|
29
30
|
#private;
|
|
30
31
|
tabs: _angular_core.Signal<readonly SdTab[]>;
|
|
@@ -32,6 +33,10 @@ declare class SdTabGroup {
|
|
|
32
33
|
variant: _angular_core.InputSignal<"line" | "pills" | "segmented">;
|
|
33
34
|
color: _angular_core.InputSignal<Color>;
|
|
34
35
|
headerPosition: _angular_core.InputSignal<"above" | "below">;
|
|
36
|
+
headerClass: _angular_core.InputSignal<string | null | undefined>;
|
|
37
|
+
headerStyle: _angular_core.InputSignal<Readonly<Record<string, string | number | null | undefined>> | null | undefined>;
|
|
38
|
+
bodyClass: _angular_core.InputSignal<string | null | undefined>;
|
|
39
|
+
bodyStyle: _angular_core.InputSignal<Readonly<Record<string, string | number | null | undefined>> | null | undefined>;
|
|
35
40
|
alignTabs: _angular_core.InputSignal<"start" | "center" | "end">;
|
|
36
41
|
stretchTabs: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
37
42
|
animationDuration: _angular_core.InputSignal<string>;
|
|
@@ -40,6 +45,7 @@ declare class SdTabGroup {
|
|
|
40
45
|
autoId: _angular_core.InputSignal<string | undefined>;
|
|
41
46
|
tabClosed: _angular_core.OutputEmitterRef<SdTabClosedEvent>;
|
|
42
47
|
protected matTabGroup: _angular_core.Signal<MatTabGroup | undefined>;
|
|
48
|
+
private readonly matTabElement;
|
|
43
49
|
get autoIdAttr(): string | null;
|
|
44
50
|
get isPills(): boolean;
|
|
45
51
|
get isSegmented(): boolean;
|
|
@@ -52,8 +58,8 @@ declare class SdTabGroup {
|
|
|
52
58
|
realignInkBar(): void;
|
|
53
59
|
protected onClose(tab: SdTab, index: number, event: MouseEvent): void;
|
|
54
60
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdTabGroup, never>;
|
|
55
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdTabGroup, "sd-tab-group", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "headerPosition": { "alias": "headerPosition"; "required": false; "isSignal": true; }; "alignTabs": { "alias": "alignTabs"; "required": false; "isSignal": true; }; "stretchTabs": { "alias": "stretchTabs"; "required": false; "isSignal": true; }; "animationDuration": { "alias": "animationDuration"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; "dynamicHeight": { "alias": "dynamicHeight"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; "tabClosed": "tabClosed"; }, ["tabs"], never, true, never>;
|
|
61
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdTabGroup, "sd-tab-group", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "headerPosition": { "alias": "headerPosition"; "required": false; "isSignal": true; }; "headerClass": { "alias": "headerClass"; "required": false; "isSignal": true; }; "headerStyle": { "alias": "headerStyle"; "required": false; "isSignal": true; }; "bodyClass": { "alias": "bodyClass"; "required": false; "isSignal": true; }; "bodyStyle": { "alias": "bodyStyle"; "required": false; "isSignal": true; }; "alignTabs": { "alias": "alignTabs"; "required": false; "isSignal": true; }; "stretchTabs": { "alias": "stretchTabs"; "required": false; "isSignal": true; }; "animationDuration": { "alias": "animationDuration"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; "dynamicHeight": { "alias": "dynamicHeight"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; "tabClosed": "tabClosed"; }, ["tabs"], never, true, never>;
|
|
56
62
|
}
|
|
57
63
|
|
|
58
64
|
export { SdTab, SdTabGroup };
|
|
59
|
-
export type { SdTabBeforeClose, SdTabClosedEvent };
|
|
65
|
+
export type { SdTabBeforeClose, SdTabClosedEvent, SdTabRegionStyle };
|