@ngxsplayer/ngx-smart-player-ui-audio 0.2.2 → 0.3.1-next.555
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
1
4
|
import * as i0 from "@angular/core";
|
|
2
5
|
import { AfterViewChecked, EventEmitter } from "@angular/core";
|
|
3
|
-
import { EngineFactory, PlayerConfig, PlayerPlugin, PlayerPorts, PlayerState, SmartCompactMode, SmartPlayerIconName, SmartPlayerProgress, SmartSettingAction, SmartSettingChange, SmartSettingsSection } from "@ngxsplayer/ngx-smart-player";
|
|
4
|
-
declare namespace audio_player_ui_component_d_exports {
|
|
5
|
-
export { AudioUiBrowseChip, AudioUiBrowseSection, AudioUiDeviceItem, AudioUiLanguageOption, AudioUiListItem, AudioUiLyricsLine, AudioUiLyricsPanel, AudioUiPanelTab, AudioUiPlaybackIntent, AudioUiPlaylistOption, AudioUiServerDiscovery, AudioUiServerForm, AudioUiServerKind, AudioUiStationForm, AudioUiStatusKind, NgxSmartPlayerAudioUiComponent };
|
|
6
|
-
}
|
|
6
|
+
import { CastLabels, EngineFactory, PlayerConfig, PlayerPlugin, PlayerPorts, PlayerState, SmartCompactMode, SmartEmptyPage, SmartNotificationsPage, SmartPlayerIconName, SmartPlayerProgress, SmartSettingAction, SmartSettingChange, SmartSettingsSection } from "@ngxsplayer/ngx-smart-player";
|
|
7
7
|
export interface AudioUiListItem {
|
|
8
8
|
id: string;
|
|
9
9
|
title: string;
|
|
@@ -15,11 +15,15 @@ export interface AudioUiListItem {
|
|
|
15
15
|
duration?: string;
|
|
16
16
|
artworkUrl?: string;
|
|
17
17
|
favorite?: boolean;
|
|
18
|
-
/** Whether this track is kept behind the lock. Only ever true while the vault is open to show it. */
|
|
19
|
-
locked?: boolean;
|
|
20
18
|
lastPlayedLabel?: string;
|
|
21
19
|
progressPercent?: number;
|
|
22
20
|
active?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* A live stream rather than a file: it plays, it goes in a list and it can be a favourite, but
|
|
23
|
+
* there is nothing in it to cut a ringtone out of — no duration, and no end. The bell is not
|
|
24
|
+
* drawn on it, which is the only thing this changes.
|
|
25
|
+
*/
|
|
26
|
+
live?: boolean;
|
|
23
27
|
}
|
|
24
28
|
/** Form shown above a library view, to add a station by its address. */
|
|
25
29
|
export interface AudioUiStationForm {
|
|
@@ -73,12 +77,42 @@ export interface AudioUiBrowseChip {
|
|
|
73
77
|
label: string;
|
|
74
78
|
count?: number;
|
|
75
79
|
active?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* The facets this view opens onto, listed under it in the rail and only while it is active.
|
|
82
|
+
* A rail of three entries that each hold their facets reads in one glance, where twelve flat
|
|
83
|
+
* entries did not. Leave it out for a view that is a destination rather than a family.
|
|
84
|
+
*/
|
|
85
|
+
children?: readonly AudioUiBrowseChip[];
|
|
86
|
+
}
|
|
87
|
+
/** The way to the rest of a shelf that arrives a page at a time. */
|
|
88
|
+
export interface AudioUiSectionMore {
|
|
89
|
+
label: string;
|
|
90
|
+
/** Where one is, under the label: « 24 sur 412 ». */
|
|
91
|
+
detail?: string;
|
|
92
|
+
/** While the rest is on its way. */
|
|
93
|
+
busy?: boolean;
|
|
76
94
|
}
|
|
77
95
|
export interface AudioUiBrowseSection {
|
|
78
96
|
id: string;
|
|
79
97
|
title: string;
|
|
80
98
|
layout?: 'list' | 'cards';
|
|
99
|
+
/**
|
|
100
|
+
* What the items are. A card is drawn the same way for a track and for an album, and the
|
|
101
|
+
* actions are not the same: one is a favourite with a ringtone in it, the other is a heading
|
|
102
|
+
* that stands for several. Tracks when nothing says otherwise, which is what a shelf holds.
|
|
103
|
+
*/
|
|
104
|
+
kind?: 'tracks' | 'groups';
|
|
81
105
|
items: AudioUiListItem[];
|
|
106
|
+
/**
|
|
107
|
+
* Ce que la section dit quand elle ne tient rien.
|
|
108
|
+
*
|
|
109
|
+
* Une étagère vide d'une page qui en a d'autres n'a rien à dire — elle s'efface. Mais une
|
|
110
|
+
* liste qu'on vient de créer est une page entière faite d'une seule section vide : sans un
|
|
111
|
+
* mot, elle s'ouvre sur son nom et un grand blanc.
|
|
112
|
+
*/
|
|
113
|
+
emptyLabel?: string;
|
|
114
|
+
/** Left out by a shelf that is whole, which is most of them. */
|
|
115
|
+
more?: AudioUiSectionMore;
|
|
82
116
|
}
|
|
83
117
|
export interface AudioUiDeviceItem {
|
|
84
118
|
id: string;
|
|
@@ -90,10 +124,24 @@ export interface AudioUiDeviceItem {
|
|
|
90
124
|
/** False where there is nothing to stop (another app takes playback over for good). */
|
|
91
125
|
stoppable?: boolean;
|
|
92
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* A way out for the sound on this machine: speakers, a headset, whatever the system offers.
|
|
129
|
+
*
|
|
130
|
+
* It is not a device in the sense above — nothing is handed over, the player keeps playing and only
|
|
131
|
+
* the speakers change — which is why the two sit in groups of their own in the panel.
|
|
132
|
+
*/
|
|
133
|
+
export interface AudioUiOutputItem {
|
|
134
|
+
id: string;
|
|
135
|
+
label: string;
|
|
136
|
+
/** What is worth adding about it, usually that it is the one the system chose. */
|
|
137
|
+
detail?: string;
|
|
138
|
+
active?: boolean;
|
|
139
|
+
}
|
|
93
140
|
export interface AudioUiPlaylistOption {
|
|
94
141
|
id: string;
|
|
95
142
|
name: string;
|
|
96
|
-
|
|
143
|
+
/** How much it holds, in the host's own words: "1 titre", "12 titres". */
|
|
144
|
+
countLabel?: string;
|
|
97
145
|
}
|
|
98
146
|
export interface AudioUiLanguageOption {
|
|
99
147
|
id: string;
|
|
@@ -101,7 +149,125 @@ export interface AudioUiLanguageOption {
|
|
|
101
149
|
}
|
|
102
150
|
export type AudioUiStatusKind = 'info' | 'success' | 'error';
|
|
103
151
|
export type AudioUiPlaybackIntent = 'play' | 'pause';
|
|
104
|
-
|
|
152
|
+
/**
|
|
153
|
+
* What the side column and the bar's switches can show.
|
|
154
|
+
*
|
|
155
|
+
* The lyrics were one of these and are not any more: Audio-Lecteur.dc.html puts them in the
|
|
156
|
+
* player, where the track is, and a column panel repeating them was the same words twice.
|
|
157
|
+
*/
|
|
158
|
+
export type AudioUiPanelTab = 'queue' | 'devices';
|
|
159
|
+
/** A step of the trail: the family, the facet, then what is open. */
|
|
160
|
+
/** Something the page one has opened is for: listening to it, or doing to the whole of it. */
|
|
161
|
+
export interface AudioUiDetailHeadAction {
|
|
162
|
+
id: string;
|
|
163
|
+
label: string;
|
|
164
|
+
icon?: SmartPlayerIconName;
|
|
165
|
+
/** The one the page is for: drawn in the accent. Give it first; it is drawn where it is put. */
|
|
166
|
+
primary?: boolean;
|
|
167
|
+
/** Drawn as its icon alone, its label becoming its name. For a habit, not for a sentence. */
|
|
168
|
+
compact?: boolean;
|
|
169
|
+
/** For an action one turns on and off: said out loud, and drawn as held down. */
|
|
170
|
+
active?: boolean;
|
|
171
|
+
disabled?: boolean;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* The head of what one has opened: an album, an artist, a genre, a list.
|
|
175
|
+
*
|
|
176
|
+
* A page one has gone into says what it is before it says what it holds — the cover, the name,
|
|
177
|
+
* what it is made of, how it was recorded, and what it is for. Leave it out and the page keeps
|
|
178
|
+
* the plain heading a list has.
|
|
179
|
+
*/
|
|
180
|
+
export interface AudioUiDetailHead {
|
|
181
|
+
title: string;
|
|
182
|
+
/** What it is made of: who made it, when, how many, how long. */
|
|
183
|
+
meta?: string;
|
|
184
|
+
/** How it was recorded and where it comes from, said more quietly. */
|
|
185
|
+
format?: string;
|
|
186
|
+
artworkUrl?: string;
|
|
187
|
+
actions?: readonly AudioUiDetailHeadAction[];
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Listening with the screen to itself: what the board draws when a track is the page rather than a
|
|
191
|
+
* line in a list — its cover, its name, what it is made of, and the words beside it.
|
|
192
|
+
*/
|
|
193
|
+
export interface AudioUiPlayerPage {
|
|
194
|
+
title: string;
|
|
195
|
+
artist?: string;
|
|
196
|
+
/** How it was recorded and where it comes from: "Racines · 2021 · FLAC 44,1 kHz". */
|
|
197
|
+
meta?: string;
|
|
198
|
+
artworkUrl?: string;
|
|
199
|
+
/** The way out, naming the view one came from; nothing drawn without it. */
|
|
200
|
+
backLabel?: string;
|
|
201
|
+
/** What one does with the track rather than with its playback; the transport holds the rest. */
|
|
202
|
+
actions?: readonly AudioUiDetailHeadAction[];
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* One facet of the page one is reading, as a chip that narrows it to that facet. The boards draw
|
|
206
|
+
* them under the page's own title, where the rail used to hold them as entries of a family.
|
|
207
|
+
*/
|
|
208
|
+
export interface AudioUiViewFacet {
|
|
209
|
+
id: string;
|
|
210
|
+
label: string;
|
|
211
|
+
count?: number;
|
|
212
|
+
active?: boolean;
|
|
213
|
+
disabled?: boolean;
|
|
214
|
+
}
|
|
215
|
+
/** One kind of result, as a chip that narrows what is shown to it. */
|
|
216
|
+
export interface AudioUiSearchFilter {
|
|
217
|
+
id: string;
|
|
218
|
+
label: string;
|
|
219
|
+
count?: number;
|
|
220
|
+
active?: boolean;
|
|
221
|
+
disabled?: boolean;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* The one result that answers best, which the board draws apart from the rest: what it is, where
|
|
225
|
+
* it was left, and the things one does with it rather than with a list.
|
|
226
|
+
*/
|
|
227
|
+
export interface AudioUiSearchBest {
|
|
228
|
+
item: AudioUiListItem;
|
|
229
|
+
/** A line of its own: where it was left, and where it comes from. */
|
|
230
|
+
note?: string;
|
|
231
|
+
actions?: readonly AudioUiDetailHeadAction[];
|
|
232
|
+
}
|
|
233
|
+
/** One place the music comes from: what it is, what it holds, and whether it is the one in use. */
|
|
234
|
+
export interface AudioUiSourceRow {
|
|
235
|
+
id: string;
|
|
236
|
+
title: string;
|
|
237
|
+
detail?: string;
|
|
238
|
+
icon?: SmartPlayerIconName;
|
|
239
|
+
/** The word for its state — in use, connected, idle — shown as a pill. */
|
|
240
|
+
state?: string;
|
|
241
|
+
/** The one feeding playback: drawn in the accent, as the board draws it. */
|
|
242
|
+
active?: boolean;
|
|
243
|
+
actions?: readonly AudioUiDetailHeadAction[];
|
|
244
|
+
}
|
|
245
|
+
/** Sources of a kind: what this machine holds, and what answers over the network. */
|
|
246
|
+
export interface AudioUiSourceGroup {
|
|
247
|
+
id: string;
|
|
248
|
+
title: string;
|
|
249
|
+
rows: readonly AudioUiSourceRow[];
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Where the music comes from, all of it on one page. The rail's own entries open each kind; this
|
|
253
|
+
* is the family's page, which says what there is and which one is feeding playback.
|
|
254
|
+
*/
|
|
255
|
+
export interface AudioUiSourcesPage {
|
|
256
|
+
title: string;
|
|
257
|
+
summary?: string;
|
|
258
|
+
/** The button beside the title, for adding one. */
|
|
259
|
+
addLabel?: string;
|
|
260
|
+
groups: readonly AudioUiSourceGroup[];
|
|
261
|
+
/** The way to a source that takes an address rather than a folder. */
|
|
262
|
+
footerLabel?: string;
|
|
263
|
+
footerHint?: string;
|
|
264
|
+
}
|
|
265
|
+
/** How a view is laid out: a grid of covers, or a list one reads down. */
|
|
266
|
+
export type AudioUiViewMode = 'grid' | 'list';
|
|
267
|
+
export interface AudioUiTrailStep {
|
|
268
|
+
id: string;
|
|
269
|
+
label: string;
|
|
270
|
+
}
|
|
105
271
|
/** One line of lyrics; timed lines can be clicked to play from there, and the player follows them by itself. */
|
|
106
272
|
export interface AudioUiLyricsLine {
|
|
107
273
|
text: string;
|
|
@@ -128,6 +294,8 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
128
294
|
ports?: Partial<PlayerPorts>;
|
|
129
295
|
engines?: EngineFactory[];
|
|
130
296
|
debug: boolean;
|
|
297
|
+
/** The host is answering the failure that just happened — a peer is converting this track — so the card that announces one stays away. */
|
|
298
|
+
handlingFailure: boolean;
|
|
131
299
|
startTimeSec: number | null;
|
|
132
300
|
/** A music library opens silently; playback starts when the listener picks something. */
|
|
133
301
|
autoplayOnInit: boolean;
|
|
@@ -141,9 +309,89 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
141
309
|
repeatLabel: string;
|
|
142
310
|
hasPlaylistControls: boolean;
|
|
143
311
|
castEnabled: boolean;
|
|
312
|
+
/** What the cast chip says, state by state; the player's own words stand for the ones left out. */
|
|
313
|
+
castLabels: Partial<CastLabels>;
|
|
144
314
|
libraryViewsLabel: string;
|
|
145
315
|
transportLabel: string;
|
|
146
316
|
seekLabel: string;
|
|
317
|
+
/** Where one is, from the family down to what is open. Shown from two steps on. */
|
|
318
|
+
/**
|
|
319
|
+
* What the page one has opened is: shown in place of the plain heading a list has, which says
|
|
320
|
+
* the name and nothing more.
|
|
321
|
+
*/
|
|
322
|
+
detailHead: AudioUiDetailHead | null;
|
|
323
|
+
/** Where the music comes from, as its own page; nothing drawn when there is none. */
|
|
324
|
+
sourcesPage: AudioUiSourcesPage | null;
|
|
325
|
+
/** The track as a page of its own; nothing drawn when there is none. */
|
|
326
|
+
playerPage: AudioUiPlayerPage | null;
|
|
327
|
+
/** What the application did without being asked; nothing drawn when there is none. */
|
|
328
|
+
notificationsPage: SmartNotificationsPage | null;
|
|
329
|
+
emptyPage: SmartEmptyPage | null;
|
|
330
|
+
/** The first opening, when nothing has been loaded; nothing drawn when there is something. */
|
|
331
|
+
notificationsLabel: string;
|
|
332
|
+
/** How many went unseen, which puts a dot on the bell. */
|
|
333
|
+
notificationsUnread: number;
|
|
334
|
+
playerOpenLabel: string;
|
|
335
|
+
/** What the page is for, said once under its name. */
|
|
336
|
+
viewIntro: string;
|
|
337
|
+
/** The facets of the page, as chips under its name; nothing drawn when there are none. */
|
|
338
|
+
viewFacets: readonly AudioUiViewFacet[];
|
|
339
|
+
viewFacetLabel: string;
|
|
340
|
+
/** What was looked for, as the page's own title. */
|
|
341
|
+
searchResultsTitle: string;
|
|
342
|
+
/** How many answered, and from where. */
|
|
343
|
+
searchResultsSummary: string;
|
|
344
|
+
/** The kinds of result, as chips that narrow what is shown. */
|
|
345
|
+
searchFilters: readonly AudioUiSearchFilter[];
|
|
346
|
+
searchFilterLabel: string;
|
|
347
|
+
/** The result that answers best, drawn apart; nothing drawn when there is none. */
|
|
348
|
+
searchBest: AudioUiSearchBest | null;
|
|
349
|
+
searchBestTitle: string;
|
|
350
|
+
/** What was looked for before, most recent first, beside the results as the board puts them. */
|
|
351
|
+
recentSearches: readonly string[];
|
|
352
|
+
recentSearchesTitle: string;
|
|
353
|
+
/** The shape the view is read in, and the two words that pick it. Both empty: no switch. */
|
|
354
|
+
viewMode: AudioUiViewMode;
|
|
355
|
+
gridLabel: string;
|
|
356
|
+
tableLabel: string;
|
|
357
|
+
viewSwitchLabel: string;
|
|
358
|
+
trail: readonly AudioUiTrailStep[];
|
|
359
|
+
trailLabel: string;
|
|
360
|
+
/** A step of the trail that is not the last: going back up to it. */
|
|
361
|
+
trailStep: EventEmitter<string>;
|
|
362
|
+
/** The shape the listener asked the view to be read in. */
|
|
363
|
+
viewModeChange: EventEmitter<AudioUiViewMode>;
|
|
364
|
+
/** An action of the head of what is open, by its id. */
|
|
365
|
+
detailHeadAction: EventEmitter<string>;
|
|
366
|
+
/** What was asked of a source, or of the page itself ('add', 'add-server'). */
|
|
367
|
+
sourceAction: EventEmitter<{
|
|
368
|
+
sourceId: string;
|
|
369
|
+
actionId: string;
|
|
370
|
+
}>;
|
|
371
|
+
/** A shelf asks for the rest of itself, by its own id. */
|
|
372
|
+
sectionMore: EventEmitter<string>;
|
|
373
|
+
/** The facet of the page the chips narrowed to. */
|
|
374
|
+
viewFacetChange: EventEmitter<string>;
|
|
375
|
+
/** The bottom bar was pressed to open the track's own page. */
|
|
376
|
+
playerOpen: EventEmitter<void>;
|
|
377
|
+
/** One of the first opening's ways in was pressed. */
|
|
378
|
+
emptyPageAction: EventEmitter<string>;
|
|
379
|
+
/** The one thing to do about a notification was pressed. */
|
|
380
|
+
notificationAction: EventEmitter<{
|
|
381
|
+
id: string;
|
|
382
|
+
actionId: string;
|
|
383
|
+
}>;
|
|
384
|
+
/** The bell was pressed. */
|
|
385
|
+
notificationsOpen: EventEmitter<void>;
|
|
386
|
+
notificationsRead: EventEmitter<void>;
|
|
387
|
+
/** The way out of that page, back to the view one came from. */
|
|
388
|
+
playerBack: EventEmitter<void>;
|
|
389
|
+
/** The kind of result the chips narrowed to. */
|
|
390
|
+
searchFilterChange: EventEmitter<string>;
|
|
391
|
+
/** An action of the best result, by its id; 'open' when the cover itself was pressed. */
|
|
392
|
+
searchBestAction: EventEmitter<string>;
|
|
393
|
+
/** A term one looked for before and asks for again. */
|
|
394
|
+
searchAgain: EventEmitter<string>;
|
|
147
395
|
libraryTitle: string;
|
|
148
396
|
libraryContentTitle: string;
|
|
149
397
|
/** "Back to Albums": shown above the title while something is open; null at the start of a view. */
|
|
@@ -154,6 +402,25 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
154
402
|
searchLabel: string;
|
|
155
403
|
searchTerm: string;
|
|
156
404
|
libraryViews: AudioUiBrowseChip[];
|
|
405
|
+
/**
|
|
406
|
+
* True puts the player above the library, as the home view did; false gives the whole area to
|
|
407
|
+
* what is being browsed and leaves the transport to say what plays. Defaults to the old shape so
|
|
408
|
+
* an application that says nothing keeps what it had.
|
|
409
|
+
*/
|
|
410
|
+
playerPanel: boolean;
|
|
411
|
+
/**
|
|
412
|
+
* The few views that also get a shortcut in the title bar, named by their own ids. Empty by
|
|
413
|
+
* default: a player embedding this component decides what is worth a shortcut, and an id it
|
|
414
|
+
* does not list in `libraryViews` is simply ignored rather than drawn as a dead button.
|
|
415
|
+
*/
|
|
416
|
+
quickViewIds: string[];
|
|
417
|
+
/**
|
|
418
|
+
* The views the title bar carries, given outright. `quickViewIds` looks them up among the rail's
|
|
419
|
+
* entries, which stops working for a view that has left the rail — Activity's two halves are
|
|
420
|
+
* counters on their page now, and the shortcut to them is wanted all the same.
|
|
421
|
+
*/
|
|
422
|
+
quickViewItems: readonly AudioUiBrowseChip[];
|
|
423
|
+
quickViewsLabel: string;
|
|
157
424
|
activeLibraryView: string;
|
|
158
425
|
librarySections: AudioUiBrowseSection[];
|
|
159
426
|
queueTitle: string;
|
|
@@ -203,7 +470,8 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
203
470
|
saveLabel: string;
|
|
204
471
|
cancelLabel: string;
|
|
205
472
|
refreshLabel: string;
|
|
206
|
-
|
|
473
|
+
/** How much the queue holds, in the host's own words: a count and the word that agrees with it. */
|
|
474
|
+
queueCountLabel: string;
|
|
207
475
|
newPlaylistPlaceholder: string;
|
|
208
476
|
renamePlaylistPlaceholder: string;
|
|
209
477
|
remotePlaybackLabel: string;
|
|
@@ -222,18 +490,28 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
222
490
|
currentArtworkUrl: string;
|
|
223
491
|
favoriteActive: boolean;
|
|
224
492
|
favoriteLabel: string;
|
|
225
|
-
/** Whether anything can be locked: there has to be a code to unlock with first. */
|
|
226
|
-
lockAvailable: boolean;
|
|
227
493
|
/** Whether a piece of a track can be made into a ringtone here. */
|
|
228
494
|
ringtoneAvailable: boolean;
|
|
229
495
|
ringtoneLabel: string;
|
|
230
|
-
|
|
231
|
-
|
|
496
|
+
/** What the button at the end of a track's row is called, and the menu it opens. */
|
|
497
|
+
trackActionsLabel: string;
|
|
232
498
|
favoriteActiveLabel: string;
|
|
233
499
|
favoritesLabel: string;
|
|
234
500
|
queueItems: AudioUiListItem[];
|
|
501
|
+
/** Whether the queue is the viewer's to trim and reorder; a radio's is not. */
|
|
502
|
+
queueEditable: boolean;
|
|
503
|
+
queueMoveUpLabel: string;
|
|
504
|
+
queueMoveDownLabel: string;
|
|
505
|
+
queueRemoveLabel: string;
|
|
235
506
|
currentTrackAvailable: boolean;
|
|
236
507
|
playlistOptions: AudioUiPlaylistOption[];
|
|
508
|
+
/** Whether the lists are the page being shown; the host opens them, as it does Sources. */
|
|
509
|
+
playlistsPageOpen: boolean;
|
|
510
|
+
/** Ce que la page des listes est, en une ligne sous son titre. */
|
|
511
|
+
playlistsSummary: string;
|
|
512
|
+
/** Names the view the page goes back to, as the settings' own does. */
|
|
513
|
+
/** The page is asked for: from the title bar's shortcut, or from a row filing a track. */
|
|
514
|
+
playlistsOpen: EventEmitter<void>;
|
|
237
515
|
/** Track waiting to be filed, chosen from a library row; without it the playing track is the target. */
|
|
238
516
|
set playlistTargetTrack(track: {
|
|
239
517
|
id: string;
|
|
@@ -250,6 +528,9 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
250
528
|
stationForm: AudioUiStationForm | null;
|
|
251
529
|
/** The Settings view's sections, shown in place of the library while the host passes them. */
|
|
252
530
|
settingsSections: SmartSettingsSection[];
|
|
531
|
+
/** The way out of the settings page, naming the view it returns to. */
|
|
532
|
+
settingsBackLabel: string | null;
|
|
533
|
+
settingsBack: EventEmitter<void>;
|
|
253
534
|
/** Shown above the library sections, to connect a media server. */
|
|
254
535
|
serverForm: AudioUiServerForm | null;
|
|
255
536
|
devicesOpen: boolean;
|
|
@@ -257,6 +538,32 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
257
538
|
lyricsPanel: AudioUiLyricsPanel | null;
|
|
258
539
|
showDeviceButton: boolean;
|
|
259
540
|
deviceItems: AudioUiDeviceItem[];
|
|
541
|
+
/** The machine's own sound outputs; empty where the browser will not let a page choose. */
|
|
542
|
+
outputItems: ReadonlyArray<AudioUiOutputItem>;
|
|
543
|
+
/**
|
|
544
|
+
* Where the sound comes out, by the id the system gave that output. Empty is the system's own
|
|
545
|
+
* choice, which is where it comes out until one is picked.
|
|
546
|
+
*
|
|
547
|
+
* Asking is not getting: a browser that refuses — no permission, an output since unplugged —
|
|
548
|
+
* leaves the sound where it was, and `audioOutputApplied` says which of the two happened.
|
|
549
|
+
*/
|
|
550
|
+
set audioOutputId(value: string);
|
|
551
|
+
get audioOutputId(): string;
|
|
552
|
+
private wantedAudioOutput;
|
|
553
|
+
private appliedAudioOutput;
|
|
554
|
+
castGroupLabel: string;
|
|
555
|
+
/** One line saying what choosing in this group does, since the next group looks the same. */
|
|
556
|
+
castGroupHint: string;
|
|
557
|
+
outputGroupLabel: string;
|
|
558
|
+
outputGroupHint: string;
|
|
559
|
+
searchDevicesLabel: string;
|
|
560
|
+
/** What the button under the queue says; empty leaves the column without one. */
|
|
561
|
+
keepQueueLabel: string;
|
|
562
|
+
/**
|
|
563
|
+
* The word on every close button. Two of them are on screen at once — the queue sheet's and the devices
|
|
564
|
+
* dialog's — so each composes its accessible name from what it closes, as the row actions do with the track
|
|
565
|
+
* they act on. The visible word stays the short one.
|
|
566
|
+
*/
|
|
260
567
|
closeLabel: string;
|
|
261
568
|
sourceChangeLabel: string;
|
|
262
569
|
sourceChangeTitle: string;
|
|
@@ -264,6 +571,13 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
264
571
|
sourceDropHint: string;
|
|
265
572
|
sourceChangeAccept: string;
|
|
266
573
|
/** When set (desktop shell), the rail offers folder import and keeps single-file import as a secondary action. */
|
|
574
|
+
/**
|
|
575
|
+
* Whether the top bar carries a way to load something at all.
|
|
576
|
+
*
|
|
577
|
+
* A host whose Sources page owns the folders turns this off: one place for one thing beats two
|
|
578
|
+
* that can give different answers. A host without such a page keeps it, which is the default.
|
|
579
|
+
*/
|
|
580
|
+
showSourceButton: boolean;
|
|
267
581
|
folderImportLabel: string;
|
|
268
582
|
libraryStatus: string;
|
|
269
583
|
libraryBusy: boolean;
|
|
@@ -300,7 +614,14 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
300
614
|
addLibraryItemNext: EventEmitter<string>;
|
|
301
615
|
addLibraryItemToQueue: EventEmitter<string>;
|
|
302
616
|
selectQueueItem: EventEmitter<string>;
|
|
617
|
+
/** One track of the queue, a step earlier or a step later in it. */
|
|
618
|
+
queueMoveUp: EventEmitter<string>;
|
|
619
|
+
queueMoveDown: EventEmitter<string>;
|
|
620
|
+
/** One track out of the queue, which stays where it is in the library. */
|
|
621
|
+
queueRemove: EventEmitter<string>;
|
|
303
622
|
createPlaylist: EventEmitter<string>;
|
|
623
|
+
/** An action of the playing track's own page, by its id. */
|
|
624
|
+
playerPageAction: EventEmitter<string>;
|
|
304
625
|
addCurrentToPlaylist: EventEmitter<string>;
|
|
305
626
|
addTrackToPlaylist: EventEmitter<{
|
|
306
627
|
trackId: string;
|
|
@@ -330,8 +651,12 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
330
651
|
deletePlaylist: EventEmitter<string>;
|
|
331
652
|
toggleDevices: EventEmitter<void>;
|
|
332
653
|
refreshDevices: EventEmitter<void>;
|
|
333
|
-
/**
|
|
334
|
-
|
|
654
|
+
/** A sound output the listener picked, by its id. */
|
|
655
|
+
selectOutput: EventEmitter<string>;
|
|
656
|
+
/** The queue, asked to become a list of its own. */
|
|
657
|
+
keepQueueAsPlaylist: EventEmitter<void>;
|
|
658
|
+
/** The output now in use, after the element either took the choice or refused it ('' = system). */
|
|
659
|
+
audioOutputApplied: EventEmitter<string>;
|
|
335
660
|
/** Looks for the lyrics of the playing track again. */
|
|
336
661
|
refreshLyrics: EventEmitter<void>;
|
|
337
662
|
/** Plays from the start of a lyrics line. */
|
|
@@ -342,7 +667,6 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
342
667
|
primaryPlaybackToggle: EventEmitter<AudioUiPlaybackIntent>;
|
|
343
668
|
playerStateChange: EventEmitter<PlayerState>;
|
|
344
669
|
toggleFavorite: EventEmitter<string>;
|
|
345
|
-
toggleLock: EventEmitter<string>;
|
|
346
670
|
makeRingtone: EventEmitter<string>;
|
|
347
671
|
/** "Show in Finder" for the track playing, where the host can show its file (desktop); empty hides the button. */
|
|
348
672
|
revealFileLabel: string;
|
|
@@ -356,29 +680,49 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
356
680
|
private smartPlayer?;
|
|
357
681
|
private audioFileInput?;
|
|
358
682
|
private readonly document;
|
|
683
|
+
constructor();
|
|
359
684
|
private libraryScroll?;
|
|
360
|
-
private lyricsLinesEl?;
|
|
361
685
|
private queueListEl?;
|
|
686
|
+
private playerLyricsEl?;
|
|
362
687
|
private compactLyricsEl?;
|
|
688
|
+
private playerLyricsFollowed;
|
|
363
689
|
private compactLyricsFollowed;
|
|
364
690
|
private panelEl?;
|
|
365
691
|
private sheetButtonEl?;
|
|
366
|
-
private lyricsFollowed;
|
|
367
692
|
private queueFollowed;
|
|
693
|
+
/**
|
|
694
|
+
* The queue holds the whole library, and every row of it used to be built: four thousand
|
|
695
|
+
* tracks measured at four thousand rows and thirty-seven thousand nodes, rebuilt from scratch
|
|
696
|
+
* each time the lock hid or showed one — which is the refresh that looked like a freeze on a
|
|
697
|
+
* phone. Only what the list can show is built now. Two blank elements hold the space above and
|
|
698
|
+
* below, so the scrollbar still tells the truth about how long the queue is.
|
|
699
|
+
*
|
|
700
|
+
* A row is 56px tall with a 1px gap. A list shorter than one window is left whole, because the
|
|
701
|
+
* window costs more than it saves there.
|
|
702
|
+
*/
|
|
703
|
+
private static readonly QUEUE_ROW;
|
|
704
|
+
private static readonly QUEUE_WINDOW_MIN;
|
|
705
|
+
private static readonly QUEUE_OVERSCAN;
|
|
706
|
+
private queueFrom;
|
|
707
|
+
private queueTo;
|
|
708
|
+
private get queueWindowed();
|
|
709
|
+
protected get windowedQueue(): AudioUiListItem[];
|
|
710
|
+
protected get queueSpaceBefore(): number;
|
|
711
|
+
protected get queueSpaceAfter(): number;
|
|
712
|
+
/** Follows the scroll: the rows under the eye, and a few on either side so none flashes in. */
|
|
713
|
+
protected onQueueScroll(): void;
|
|
714
|
+
/** Brings a row into the window, so that what is playing can be scrolled to even far down. */
|
|
715
|
+
private holdQueueRow;
|
|
368
716
|
fileDragActive: boolean;
|
|
369
717
|
/** Phones only: the queue, lists, devices and lyrics live in a sheet the listener opens. */
|
|
370
718
|
panelSheetOpen: boolean;
|
|
371
|
-
playlistToolsOpen: boolean;
|
|
372
|
-
lyricsOpen: boolean;
|
|
373
719
|
queuePanelOpen: boolean;
|
|
374
|
-
/** The queue's own switch. It used to be the panel shown whenever no other one was. */
|
|
375
|
-
queueOpen: boolean;
|
|
376
720
|
/**
|
|
377
721
|
* The stack's order, fixed rather than the order they were opened in: a panel always in the
|
|
378
|
-
* same place is found by eye instead of by memory.
|
|
722
|
+
* same place is found by eye instead of by memory. The queue is not in it: it is the column
|
|
723
|
+
* itself, always below the pills, and `queuePanelOpen` is what puts it away.
|
|
379
724
|
*/
|
|
380
725
|
private readonly panelOrder;
|
|
381
|
-
private readonly collapsedPanels;
|
|
382
726
|
playlistDraftName: string;
|
|
383
727
|
stationNameDraft: string;
|
|
384
728
|
stationUrlDraft: string;
|
|
@@ -391,22 +735,37 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
391
735
|
playerState: PlayerState | null;
|
|
392
736
|
progressPercent: number;
|
|
393
737
|
currentTimeSec: number;
|
|
738
|
+
/** The shape of the bars under the cover: a drawing, not a reading of the file. */
|
|
739
|
+
readonly waveformBars: number[];
|
|
740
|
+
/** How many of them the track has gone past. */
|
|
741
|
+
get playedBars(): number;
|
|
394
742
|
durationSec: number;
|
|
395
743
|
elapsedLabel: string;
|
|
396
744
|
detectedDurationLabel: string;
|
|
397
745
|
private fileDragDepth;
|
|
398
746
|
get isPlaying(): boolean;
|
|
747
|
+
/**
|
|
748
|
+
* Whether the player holds the top of the area, with the library reading underneath it.
|
|
749
|
+
*
|
|
750
|
+
* This used to be `activeLibraryView === 'home'`: the library decided a layout from a view
|
|
751
|
+
* identifier the application owns, so an application that renamed or dropped that view lost the
|
|
752
|
+
* player panel without being told. The application says which of the two it wants now.
|
|
753
|
+
*/
|
|
399
754
|
get isHomeView(): boolean;
|
|
400
755
|
get primaryViews(): AudioUiBrowseChip[];
|
|
756
|
+
/** The facets of the family one is in, which a phone draws as chips rather than as rail entries. */
|
|
757
|
+
get openViewChildren(): readonly AudioUiBrowseChip[];
|
|
758
|
+
/** Whether this view already has a shortcut, which is what lets the strip drop it. */
|
|
759
|
+
hasQuickView(id: string): boolean;
|
|
760
|
+
/** Every rail entry, families and the facets they hold, so a shortcut can point at either. */
|
|
761
|
+
private get railEntries();
|
|
762
|
+
/** The shortcuts, in the order they were asked for rather than the order the rail lists them. */
|
|
763
|
+
get quickViews(): AudioUiBrowseChip[];
|
|
401
764
|
get appViews(): AudioUiBrowseChip[];
|
|
402
765
|
get collectionViews(): AudioUiBrowseChip[];
|
|
403
766
|
/** The first open panel, for the few places that still speak of one at a time. */
|
|
404
767
|
get panelTab(): AudioUiPanelTab;
|
|
405
|
-
get lyricsTitle(): string;
|
|
406
768
|
isPanelOpen(panel: AudioUiPanelTab): boolean;
|
|
407
|
-
isPanelCollapsed(panel: AudioUiPanelTab): boolean;
|
|
408
|
-
/** Folds a panel to its header, so four open ones still fit without hiding any of them. */
|
|
409
|
-
togglePanelCollapsed(panel: AudioUiPanelTab): void;
|
|
410
769
|
/** Opens or closes one panel and leaves the others where they are. */
|
|
411
770
|
togglePanel(panel: AudioUiPanelTab): void;
|
|
412
771
|
get displayDurationLabel(): string;
|
|
@@ -419,10 +778,24 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
419
778
|
isBarPlayed(index: number): boolean;
|
|
420
779
|
artistOf(item: AudioUiListItem): string;
|
|
421
780
|
albumOf(item: AudioUiListItem): string;
|
|
781
|
+
/**
|
|
782
|
+
* The time column. A track carries its own; anything else — an album, an artist, a list read as
|
|
783
|
+
* a table — carries a `meta` that is not one, and that column is 48px wide: it used to take it
|
|
784
|
+
* all the same and wrap over the row below.
|
|
785
|
+
*/
|
|
422
786
|
durationOf(item: AudioUiListItem): string;
|
|
423
787
|
togglePrimaryPlayback(): void;
|
|
424
788
|
openSourcePicker(): void;
|
|
425
789
|
seekTo(timeSec: number): void;
|
|
790
|
+
/** Moves inside the track by so many seconds, back when negative. */
|
|
791
|
+
seekBy(deltaSec: number): void;
|
|
792
|
+
/** Whether this browser lets a page choose an output at all; Chromium does, and the shell is one. */
|
|
793
|
+
get audioOutputSelectable(): boolean;
|
|
794
|
+
/**
|
|
795
|
+
* Hands the wanted output to the player, and says whether it took. Called again when the player
|
|
796
|
+
* reports playing, since the element only exists from the first thing played onwards.
|
|
797
|
+
*/
|
|
798
|
+
private applyAudioOutput;
|
|
426
799
|
/**
|
|
427
800
|
* How far the library is scrolled. A host that moves between screens reads it before leaving one, so coming
|
|
428
801
|
* back can put the listener where they were rather than at the top of a list they had already walked down.
|
|
@@ -435,6 +808,20 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
435
808
|
onOutputVolumeRatioChange(value: number): void;
|
|
436
809
|
onSourceFileInput(event: Event): void;
|
|
437
810
|
onSearchInput(event: Event): void;
|
|
811
|
+
/** Whether a search is what the view is showing. */
|
|
812
|
+
get hasSearchQuery(): boolean;
|
|
813
|
+
/** What the best result is made of, said once under its name. */
|
|
814
|
+
searchBestMeta(best: AudioUiSearchBest): string;
|
|
815
|
+
/**
|
|
816
|
+
* A title cut around what was looked for, so the match is visible rather than left for the
|
|
817
|
+
* reader to find. Nothing is cut when there is no search: one part, unmarked.
|
|
818
|
+
*/
|
|
819
|
+
searchParts(text: string): {
|
|
820
|
+
text: string;
|
|
821
|
+
hit: boolean;
|
|
822
|
+
}[];
|
|
823
|
+
selectViewFacet(facet: AudioUiViewFacet): void;
|
|
824
|
+
selectSearchFilter(filter: AudioUiSearchFilter): void;
|
|
438
825
|
onFileDragEnter(event: DragEvent): void;
|
|
439
826
|
onFileDragOver(event: DragEvent): void;
|
|
440
827
|
onFileDragLeave(event: DragEvent): void;
|
|
@@ -442,12 +829,50 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
442
829
|
onPlayerStateChange(state: PlayerState): void;
|
|
443
830
|
onPlayerProgress(event: SmartPlayerProgress): void;
|
|
444
831
|
toggleQueuePanel(): void;
|
|
832
|
+
/**
|
|
833
|
+
* A click beside a dialog puts it away — and goes on to whatever it was aimed at. A sheet of
|
|
834
|
+
* glass over the window would have swallowed it, and one clicks the rail while the bell is
|
|
835
|
+
* open meaning to reach the rail.
|
|
836
|
+
*/
|
|
837
|
+
/**
|
|
838
|
+
* What Escape does, in order: the innermost dialog of the bar first. Written on each of them
|
|
839
|
+
* instead, a handler answers every press while the focus rests on the button that opened one.
|
|
840
|
+
*/
|
|
841
|
+
protected onEscape(): void;
|
|
842
|
+
private closeDialogsOnPointerOutside;
|
|
843
|
+
/** The two dialogs of the bar are the host's: Escape asks for them to be put away. */
|
|
844
|
+
closeNotifications(): void;
|
|
845
|
+
closeDevices(): void;
|
|
846
|
+
/**
|
|
847
|
+
* The two ways out a keyboard has — Escape, and the dialog's own close button — hand the focus
|
|
848
|
+
* back to the button that opened the dialog. Without it the dialog is taken away with the
|
|
849
|
+
* focused element inside it and the keyboard lands at the top of the document: from there the
|
|
850
|
+
* devices button is forty-three stops away, counted in the demo.
|
|
851
|
+
*
|
|
852
|
+
* Not on the way out by a click beside the dialog, which is the third one: that click is aimed
|
|
853
|
+
* at something, and pulling the focus back to the bar would take it from where the hand just
|
|
854
|
+
* put it. That is why these two sit beside `closeDevices` instead of inside it.
|
|
855
|
+
*/
|
|
856
|
+
private dismissNotifications;
|
|
857
|
+
protected dismissDevices(): void;
|
|
858
|
+
/**
|
|
859
|
+
* Asked for once the dialog has gone — the host owns its state, so it goes on the round after
|
|
860
|
+
* the emit — and only of a button the window is showing: the switches of the bar are dropped
|
|
861
|
+
* one by one as it narrows, and `focus()` on a hidden button puts the keyboard nowhere.
|
|
862
|
+
*/
|
|
863
|
+
private restoreFocusTo;
|
|
445
864
|
/** The panels as their switches show them — order, icon and name, named once for both places. */
|
|
446
865
|
get panelSwitches(): Array<{
|
|
447
866
|
id: AudioUiPanelTab;
|
|
448
867
|
icon: SmartPlayerIconName;
|
|
449
868
|
label: string;
|
|
450
869
|
}>;
|
|
870
|
+
/** The switches for what the column itself can show: the devices hang off the bar instead. */
|
|
871
|
+
get columnSwitches(): Array<{
|
|
872
|
+
id: AudioUiPanelTab;
|
|
873
|
+
icon: SmartPlayerIconName;
|
|
874
|
+
label: string;
|
|
875
|
+
}>;
|
|
451
876
|
/** Whether a panel is on screen: open, and in a column that is not itself put away. */
|
|
452
877
|
isPanelShowing(panel: AudioUiPanelTab): boolean;
|
|
453
878
|
/**
|
|
@@ -464,12 +889,33 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
464
889
|
/** Opens the sheet that holds the queue, the lists, the devices and the lyrics on a phone. */
|
|
465
890
|
openPanelSheet(): void;
|
|
466
891
|
closePanelSheet(): void;
|
|
892
|
+
/**
|
|
893
|
+
* The sheet covers the page and says so with `aria-modal`, so the tabulation stays inside it.
|
|
894
|
+
* It took the focus on opening and then let it go: one Shift+Tab from its own close button —
|
|
895
|
+
* the first thing inside it — landed on a row action of the library behind, which a reader had
|
|
896
|
+
* just been told was not there. Measured in the application, both ways out.
|
|
897
|
+
*/
|
|
898
|
+
protected onSheetKeys(event: KeyboardEvent): void;
|
|
467
899
|
/** The track playing has lyrics a compact window can show. */
|
|
468
900
|
get hasCompactLyrics(): boolean;
|
|
469
901
|
get showCompactLyrics(): boolean;
|
|
470
902
|
/** The line being sung, from the position the player reports; -1 before the first one or without timed lines. */
|
|
471
903
|
get activeLyricsIndex(): number;
|
|
472
|
-
/**
|
|
904
|
+
/**
|
|
905
|
+
* The whole of a row, for a row that shows only as much as its column is wide.
|
|
906
|
+
*
|
|
907
|
+
* A screen reader already reads all of it — the text is in the page, only the sight of it is
|
|
908
|
+
* cut — so this is for the eye and the mouse, which had nothing.
|
|
909
|
+
*/
|
|
910
|
+
/** Whether a track has anywhere to go: the first does not climb, the last does not fall. */
|
|
911
|
+
canMoveQueueItem(id: string, direction: 'up' | 'down'): boolean;
|
|
912
|
+
rowTooltip(item: AudioUiListItem): string;
|
|
913
|
+
/**
|
|
914
|
+
* Plays from the start of a line, and tells the host so it can record the move.
|
|
915
|
+
*
|
|
916
|
+
* It only moved the position before: a line clicked while the track was stopped left the room
|
|
917
|
+
* silent, under a control named "Play from here".
|
|
918
|
+
*/
|
|
473
919
|
playFromLyrics(timeSec: number): void;
|
|
474
920
|
/**
|
|
475
921
|
* Keeps what is playing in sight: the track in the queue, and the line being sung in the
|
|
@@ -477,14 +923,72 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
477
923
|
* each scrolls inside its own list rather than moving the page under everything else.
|
|
478
924
|
*/
|
|
479
925
|
ngAfterViewChecked(): void;
|
|
480
|
-
|
|
926
|
+
/**
|
|
927
|
+
* Holds the line being sung in the middle of a lyrics window, and answers what it is now following.
|
|
928
|
+
*
|
|
929
|
+
* The window only moves when the line changes: between two lines the listener can scroll where they
|
|
930
|
+
* like, and nothing drags the window back under them. Scrolled within the window itself, so neither
|
|
931
|
+
* the page nor the mini window moves with it.
|
|
932
|
+
*/
|
|
933
|
+
private centreSungLine;
|
|
481
934
|
get hasPlaylists(): boolean;
|
|
482
935
|
isRemovable(itemId: string): boolean;
|
|
483
936
|
/** Files the chosen track, or the playing one when the listener did not pick a row. */
|
|
484
|
-
/**
|
|
485
|
-
|
|
937
|
+
/**
|
|
938
|
+
* Width of the row actions column: what a track offers — favourite, a list, a ringtone — and
|
|
939
|
+
* the menu that holds the rest.
|
|
940
|
+
*
|
|
941
|
+
* The count was wrong, and the screen showed it: it read three plus a list plus a remove
|
|
942
|
+
* button, and never counted the ringtone, so five buttons were given the room of four and the
|
|
943
|
+
* heart was drawn over the track's duration.
|
|
944
|
+
*
|
|
945
|
+
* The bell is counted the way the remove button is — on whether any item in this section has
|
|
946
|
+
* one — because a shelf of live streams does not, and the room it was given stayed empty.
|
|
947
|
+
*/
|
|
948
|
+
rowActionsWidth(section: AudioUiBrowseSection): string;
|
|
949
|
+
/** The track a menu is open on, and where on the screen it was asked for. */
|
|
950
|
+
protected trackMenu: {
|
|
951
|
+
id: string;
|
|
952
|
+
title: string;
|
|
953
|
+
x: number;
|
|
954
|
+
y: number;
|
|
955
|
+
} | null;
|
|
956
|
+
/**
|
|
957
|
+
* What asked for the menu. Kept rather than looked up afterwards: a row and a card carry the
|
|
958
|
+
* same button, and nothing in the markup names them apart.
|
|
959
|
+
*/
|
|
960
|
+
private trackMenuOpener;
|
|
961
|
+
private trackMenuBox?;
|
|
962
|
+
/**
|
|
963
|
+
* Opens a track's own menu where the gesture happened — the button at the end of the row, or a
|
|
964
|
+
* right click anywhere on it — and keeps it inside the window rather than off its edge.
|
|
965
|
+
*
|
|
966
|
+
* A row offered six buttons at once and now offers three: what it holds are the ones a listener
|
|
967
|
+
* reaches for, and this holds the rest. The video player has had the same menu on its cards.
|
|
968
|
+
*/
|
|
969
|
+
protected openTrackMenu(event: MouseEvent, item: {
|
|
486
970
|
id: string;
|
|
487
|
-
|
|
971
|
+
title: string;
|
|
972
|
+
}): void;
|
|
973
|
+
private closeTrackMenu;
|
|
974
|
+
/**
|
|
975
|
+
* The menu takes the focus when it opens, so it is taken away with the focused element inside
|
|
976
|
+
* it. Its glass swallows the click that closes it, so that click reaches nothing and there is
|
|
977
|
+
* nowhere else for the focus to go: it comes back to whatever asked for the menu.
|
|
978
|
+
*/
|
|
979
|
+
protected dismissTrackMenu(): void;
|
|
980
|
+
/**
|
|
981
|
+
* An action chosen in the menu. The row it was asked from stays where it is — except when the
|
|
982
|
+
* track is removed, and then the button is gone with it — so the focus goes back there rather
|
|
983
|
+
* than to the top of the document.
|
|
984
|
+
*/
|
|
985
|
+
protected runTrackAction(action: 'next' | 'queue' | 'remove'): void;
|
|
986
|
+
/**
|
|
987
|
+
* Up and down walk the menu, which is what `role="menu"` promises a reader's software. Tab puts
|
|
988
|
+
* it away rather than walking out of it: glass covers the window while it is open, so a focus
|
|
989
|
+
* that left would land on buttons no hand could reach.
|
|
990
|
+
*/
|
|
991
|
+
protected onMenuKeys(event: KeyboardEvent): void;
|
|
488
992
|
addToPlaylist(playlistId: string): void;
|
|
489
993
|
onServerKindChange(event: Event): void;
|
|
490
994
|
onServerAddressInput(event: Event): void;
|
|
@@ -528,6 +1032,10 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
528
1032
|
"alias": "debug";
|
|
529
1033
|
"required": false;
|
|
530
1034
|
};
|
|
1035
|
+
"handlingFailure": {
|
|
1036
|
+
"alias": "handlingFailure";
|
|
1037
|
+
"required": false;
|
|
1038
|
+
};
|
|
531
1039
|
"startTimeSec": {
|
|
532
1040
|
"alias": "startTimeSec";
|
|
533
1041
|
"required": false;
|
|
@@ -572,6 +1080,10 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
572
1080
|
"alias": "castEnabled";
|
|
573
1081
|
"required": false;
|
|
574
1082
|
};
|
|
1083
|
+
"castLabels": {
|
|
1084
|
+
"alias": "castLabels";
|
|
1085
|
+
"required": false;
|
|
1086
|
+
};
|
|
575
1087
|
"libraryViewsLabel": {
|
|
576
1088
|
"alias": "libraryViewsLabel";
|
|
577
1089
|
"required": false;
|
|
@@ -584,6 +1096,106 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
584
1096
|
"alias": "seekLabel";
|
|
585
1097
|
"required": false;
|
|
586
1098
|
};
|
|
1099
|
+
"detailHead": {
|
|
1100
|
+
"alias": "detailHead";
|
|
1101
|
+
"required": false;
|
|
1102
|
+
};
|
|
1103
|
+
"sourcesPage": {
|
|
1104
|
+
"alias": "sourcesPage";
|
|
1105
|
+
"required": false;
|
|
1106
|
+
};
|
|
1107
|
+
"playerPage": {
|
|
1108
|
+
"alias": "playerPage";
|
|
1109
|
+
"required": false;
|
|
1110
|
+
};
|
|
1111
|
+
"notificationsPage": {
|
|
1112
|
+
"alias": "notificationsPage";
|
|
1113
|
+
"required": false;
|
|
1114
|
+
};
|
|
1115
|
+
"emptyPage": {
|
|
1116
|
+
"alias": "emptyPage";
|
|
1117
|
+
"required": false;
|
|
1118
|
+
};
|
|
1119
|
+
"notificationsLabel": {
|
|
1120
|
+
"alias": "notificationsLabel";
|
|
1121
|
+
"required": false;
|
|
1122
|
+
};
|
|
1123
|
+
"notificationsUnread": {
|
|
1124
|
+
"alias": "notificationsUnread";
|
|
1125
|
+
"required": false;
|
|
1126
|
+
};
|
|
1127
|
+
"playerOpenLabel": {
|
|
1128
|
+
"alias": "playerOpenLabel";
|
|
1129
|
+
"required": false;
|
|
1130
|
+
};
|
|
1131
|
+
"viewIntro": {
|
|
1132
|
+
"alias": "viewIntro";
|
|
1133
|
+
"required": false;
|
|
1134
|
+
};
|
|
1135
|
+
"viewFacets": {
|
|
1136
|
+
"alias": "viewFacets";
|
|
1137
|
+
"required": false;
|
|
1138
|
+
};
|
|
1139
|
+
"viewFacetLabel": {
|
|
1140
|
+
"alias": "viewFacetLabel";
|
|
1141
|
+
"required": false;
|
|
1142
|
+
};
|
|
1143
|
+
"searchResultsTitle": {
|
|
1144
|
+
"alias": "searchResultsTitle";
|
|
1145
|
+
"required": false;
|
|
1146
|
+
};
|
|
1147
|
+
"searchResultsSummary": {
|
|
1148
|
+
"alias": "searchResultsSummary";
|
|
1149
|
+
"required": false;
|
|
1150
|
+
};
|
|
1151
|
+
"searchFilters": {
|
|
1152
|
+
"alias": "searchFilters";
|
|
1153
|
+
"required": false;
|
|
1154
|
+
};
|
|
1155
|
+
"searchFilterLabel": {
|
|
1156
|
+
"alias": "searchFilterLabel";
|
|
1157
|
+
"required": false;
|
|
1158
|
+
};
|
|
1159
|
+
"searchBest": {
|
|
1160
|
+
"alias": "searchBest";
|
|
1161
|
+
"required": false;
|
|
1162
|
+
};
|
|
1163
|
+
"searchBestTitle": {
|
|
1164
|
+
"alias": "searchBestTitle";
|
|
1165
|
+
"required": false;
|
|
1166
|
+
};
|
|
1167
|
+
"recentSearches": {
|
|
1168
|
+
"alias": "recentSearches";
|
|
1169
|
+
"required": false;
|
|
1170
|
+
};
|
|
1171
|
+
"recentSearchesTitle": {
|
|
1172
|
+
"alias": "recentSearchesTitle";
|
|
1173
|
+
"required": false;
|
|
1174
|
+
};
|
|
1175
|
+
"viewMode": {
|
|
1176
|
+
"alias": "viewMode";
|
|
1177
|
+
"required": false;
|
|
1178
|
+
};
|
|
1179
|
+
"gridLabel": {
|
|
1180
|
+
"alias": "gridLabel";
|
|
1181
|
+
"required": false;
|
|
1182
|
+
};
|
|
1183
|
+
"tableLabel": {
|
|
1184
|
+
"alias": "tableLabel";
|
|
1185
|
+
"required": false;
|
|
1186
|
+
};
|
|
1187
|
+
"viewSwitchLabel": {
|
|
1188
|
+
"alias": "viewSwitchLabel";
|
|
1189
|
+
"required": false;
|
|
1190
|
+
};
|
|
1191
|
+
"trail": {
|
|
1192
|
+
"alias": "trail";
|
|
1193
|
+
"required": false;
|
|
1194
|
+
};
|
|
1195
|
+
"trailLabel": {
|
|
1196
|
+
"alias": "trailLabel";
|
|
1197
|
+
"required": false;
|
|
1198
|
+
};
|
|
587
1199
|
"libraryTitle": {
|
|
588
1200
|
"alias": "libraryTitle";
|
|
589
1201
|
"required": false;
|
|
@@ -620,6 +1232,22 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
620
1232
|
"alias": "libraryViews";
|
|
621
1233
|
"required": false;
|
|
622
1234
|
};
|
|
1235
|
+
"playerPanel": {
|
|
1236
|
+
"alias": "playerPanel";
|
|
1237
|
+
"required": false;
|
|
1238
|
+
};
|
|
1239
|
+
"quickViewIds": {
|
|
1240
|
+
"alias": "quickViewIds";
|
|
1241
|
+
"required": false;
|
|
1242
|
+
};
|
|
1243
|
+
"quickViewItems": {
|
|
1244
|
+
"alias": "quickViewItems";
|
|
1245
|
+
"required": false;
|
|
1246
|
+
};
|
|
1247
|
+
"quickViewsLabel": {
|
|
1248
|
+
"alias": "quickViewsLabel";
|
|
1249
|
+
"required": false;
|
|
1250
|
+
};
|
|
623
1251
|
"activeLibraryView": {
|
|
624
1252
|
"alias": "activeLibraryView";
|
|
625
1253
|
"required": false;
|
|
@@ -792,8 +1420,8 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
792
1420
|
"alias": "refreshLabel";
|
|
793
1421
|
"required": false;
|
|
794
1422
|
};
|
|
795
|
-
"
|
|
796
|
-
"alias": "
|
|
1423
|
+
"queueCountLabel": {
|
|
1424
|
+
"alias": "queueCountLabel";
|
|
797
1425
|
"required": false;
|
|
798
1426
|
};
|
|
799
1427
|
"newPlaylistPlaceholder": {
|
|
@@ -868,10 +1496,6 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
868
1496
|
"alias": "favoriteLabel";
|
|
869
1497
|
"required": false;
|
|
870
1498
|
};
|
|
871
|
-
"lockAvailable": {
|
|
872
|
-
"alias": "lockAvailable";
|
|
873
|
-
"required": false;
|
|
874
|
-
};
|
|
875
1499
|
"ringtoneAvailable": {
|
|
876
1500
|
"alias": "ringtoneAvailable";
|
|
877
1501
|
"required": false;
|
|
@@ -880,12 +1504,8 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
880
1504
|
"alias": "ringtoneLabel";
|
|
881
1505
|
"required": false;
|
|
882
1506
|
};
|
|
883
|
-
"
|
|
884
|
-
"alias": "
|
|
885
|
-
"required": false;
|
|
886
|
-
};
|
|
887
|
-
"unlockLabel": {
|
|
888
|
-
"alias": "unlockLabel";
|
|
1507
|
+
"trackActionsLabel": {
|
|
1508
|
+
"alias": "trackActionsLabel";
|
|
889
1509
|
"required": false;
|
|
890
1510
|
};
|
|
891
1511
|
"favoriteActiveLabel": {
|
|
@@ -900,6 +1520,22 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
900
1520
|
"alias": "queueItems";
|
|
901
1521
|
"required": false;
|
|
902
1522
|
};
|
|
1523
|
+
"queueEditable": {
|
|
1524
|
+
"alias": "queueEditable";
|
|
1525
|
+
"required": false;
|
|
1526
|
+
};
|
|
1527
|
+
"queueMoveUpLabel": {
|
|
1528
|
+
"alias": "queueMoveUpLabel";
|
|
1529
|
+
"required": false;
|
|
1530
|
+
};
|
|
1531
|
+
"queueMoveDownLabel": {
|
|
1532
|
+
"alias": "queueMoveDownLabel";
|
|
1533
|
+
"required": false;
|
|
1534
|
+
};
|
|
1535
|
+
"queueRemoveLabel": {
|
|
1536
|
+
"alias": "queueRemoveLabel";
|
|
1537
|
+
"required": false;
|
|
1538
|
+
};
|
|
903
1539
|
"currentTrackAvailable": {
|
|
904
1540
|
"alias": "currentTrackAvailable";
|
|
905
1541
|
"required": false;
|
|
@@ -908,6 +1544,14 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
908
1544
|
"alias": "playlistOptions";
|
|
909
1545
|
"required": false;
|
|
910
1546
|
};
|
|
1547
|
+
"playlistsPageOpen": {
|
|
1548
|
+
"alias": "playlistsPageOpen";
|
|
1549
|
+
"required": false;
|
|
1550
|
+
};
|
|
1551
|
+
"playlistsSummary": {
|
|
1552
|
+
"alias": "playlistsSummary";
|
|
1553
|
+
"required": false;
|
|
1554
|
+
};
|
|
911
1555
|
"playlistTargetTrack": {
|
|
912
1556
|
"alias": "playlistTargetTrack";
|
|
913
1557
|
"required": false;
|
|
@@ -924,6 +1568,10 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
924
1568
|
"alias": "settingsSections";
|
|
925
1569
|
"required": false;
|
|
926
1570
|
};
|
|
1571
|
+
"settingsBackLabel": {
|
|
1572
|
+
"alias": "settingsBackLabel";
|
|
1573
|
+
"required": false;
|
|
1574
|
+
};
|
|
927
1575
|
"serverForm": {
|
|
928
1576
|
"alias": "serverForm";
|
|
929
1577
|
"required": false;
|
|
@@ -944,6 +1592,38 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
944
1592
|
"alias": "deviceItems";
|
|
945
1593
|
"required": false;
|
|
946
1594
|
};
|
|
1595
|
+
"outputItems": {
|
|
1596
|
+
"alias": "outputItems";
|
|
1597
|
+
"required": false;
|
|
1598
|
+
};
|
|
1599
|
+
"audioOutputId": {
|
|
1600
|
+
"alias": "audioOutputId";
|
|
1601
|
+
"required": false;
|
|
1602
|
+
};
|
|
1603
|
+
"castGroupLabel": {
|
|
1604
|
+
"alias": "castGroupLabel";
|
|
1605
|
+
"required": false;
|
|
1606
|
+
};
|
|
1607
|
+
"castGroupHint": {
|
|
1608
|
+
"alias": "castGroupHint";
|
|
1609
|
+
"required": false;
|
|
1610
|
+
};
|
|
1611
|
+
"outputGroupLabel": {
|
|
1612
|
+
"alias": "outputGroupLabel";
|
|
1613
|
+
"required": false;
|
|
1614
|
+
};
|
|
1615
|
+
"outputGroupHint": {
|
|
1616
|
+
"alias": "outputGroupHint";
|
|
1617
|
+
"required": false;
|
|
1618
|
+
};
|
|
1619
|
+
"searchDevicesLabel": {
|
|
1620
|
+
"alias": "searchDevicesLabel";
|
|
1621
|
+
"required": false;
|
|
1622
|
+
};
|
|
1623
|
+
"keepQueueLabel": {
|
|
1624
|
+
"alias": "keepQueueLabel";
|
|
1625
|
+
"required": false;
|
|
1626
|
+
};
|
|
947
1627
|
"closeLabel": {
|
|
948
1628
|
"alias": "closeLabel";
|
|
949
1629
|
"required": false;
|
|
@@ -968,6 +1648,10 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
968
1648
|
"alias": "sourceChangeAccept";
|
|
969
1649
|
"required": false;
|
|
970
1650
|
};
|
|
1651
|
+
"showSourceButton": {
|
|
1652
|
+
"alias": "showSourceButton";
|
|
1653
|
+
"required": false;
|
|
1654
|
+
};
|
|
971
1655
|
"folderImportLabel": {
|
|
972
1656
|
"alias": "folderImportLabel";
|
|
973
1657
|
"required": false;
|
|
@@ -1025,8 +1709,25 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
1025
1709
|
"required": false;
|
|
1026
1710
|
};
|
|
1027
1711
|
}, {
|
|
1712
|
+
"trailStep": "trailStep";
|
|
1713
|
+
"viewModeChange": "viewModeChange";
|
|
1714
|
+
"detailHeadAction": "detailHeadAction";
|
|
1715
|
+
"sourceAction": "sourceAction";
|
|
1716
|
+
"sectionMore": "sectionMore";
|
|
1717
|
+
"viewFacetChange": "viewFacetChange";
|
|
1718
|
+
"playerOpen": "playerOpen";
|
|
1719
|
+
"emptyPageAction": "emptyPageAction";
|
|
1720
|
+
"notificationAction": "notificationAction";
|
|
1721
|
+
"notificationsOpen": "notificationsOpen";
|
|
1722
|
+
"notificationsRead": "notificationsRead";
|
|
1723
|
+
"playerBack": "playerBack";
|
|
1724
|
+
"searchFilterChange": "searchFilterChange";
|
|
1725
|
+
"searchBestAction": "searchBestAction";
|
|
1726
|
+
"searchAgain": "searchAgain";
|
|
1028
1727
|
"compactModeChange": "compactModeChange";
|
|
1029
1728
|
"compactLyricsToggle": "compactLyricsToggle";
|
|
1729
|
+
"playlistsOpen": "playlistsOpen";
|
|
1730
|
+
"settingsBack": "settingsBack";
|
|
1030
1731
|
"ended": "ended";
|
|
1031
1732
|
"videoSize": "videoSize";
|
|
1032
1733
|
"progress": "progress";
|
|
@@ -1045,7 +1746,11 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
1045
1746
|
"addLibraryItemNext": "addLibraryItemNext";
|
|
1046
1747
|
"addLibraryItemToQueue": "addLibraryItemToQueue";
|
|
1047
1748
|
"selectQueueItem": "selectQueueItem";
|
|
1749
|
+
"queueMoveUp": "queueMoveUp";
|
|
1750
|
+
"queueMoveDown": "queueMoveDown";
|
|
1751
|
+
"queueRemove": "queueRemove";
|
|
1048
1752
|
"createPlaylist": "createPlaylist";
|
|
1753
|
+
"playerPageAction": "playerPageAction";
|
|
1049
1754
|
"addCurrentToPlaylist": "addCurrentToPlaylist";
|
|
1050
1755
|
"addTrackToPlaylist": "addTrackToPlaylist";
|
|
1051
1756
|
"requestPlaylistTarget": "requestPlaylistTarget";
|
|
@@ -1059,7 +1764,9 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
1059
1764
|
"deletePlaylist": "deletePlaylist";
|
|
1060
1765
|
"toggleDevices": "toggleDevices";
|
|
1061
1766
|
"refreshDevices": "refreshDevices";
|
|
1062
|
-
"
|
|
1767
|
+
"selectOutput": "selectOutput";
|
|
1768
|
+
"keepQueueAsPlaylist": "keepQueueAsPlaylist";
|
|
1769
|
+
"audioOutputApplied": "audioOutputApplied";
|
|
1063
1770
|
"refreshLyrics": "refreshLyrics";
|
|
1064
1771
|
"seekLyrics": "seekLyrics";
|
|
1065
1772
|
"playOnDevice": "playOnDevice";
|
|
@@ -1068,7 +1775,6 @@ export declare class NgxSmartPlayerAudioUiComponent implements AfterViewChecked
|
|
|
1068
1775
|
"primaryPlaybackToggle": "primaryPlaybackToggle";
|
|
1069
1776
|
"playerStateChange": "playerStateChange";
|
|
1070
1777
|
"toggleFavorite": "toggleFavorite";
|
|
1071
|
-
"toggleLock": "toggleLock";
|
|
1072
1778
|
"makeRingtone": "makeRingtone";
|
|
1073
1779
|
"revealFile": "revealFile";
|
|
1074
1780
|
"sourceFileChange": "sourceFileChange";
|