@zambon-dev/ui 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +52 -15
- package/LICENSE +21 -0
- package/README.md +55 -54
- package/fesm2022/zambon-dev-ui-framework.mjs +8 -8
- package/fesm2022/zambon-dev-ui-framework.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-library.mjs +3 -3
- package/fesm2022/zambon-dev-ui-library.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-shared.mjs +446 -446
- package/fesm2022/zambon-dev-ui-shared.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-testing.mjs.map +1 -1
- package/i18n/shared/top-bar/en.json +4 -0
- package/i18n/shared/top-bar/pt.json +4 -0
- package/package.json +14 -9
- package/styles/theme.css +15 -6
- package/styles/variables.scss +3 -3
- package/types/zambon-dev-ui-framework.d.ts +397 -24
- package/types/zambon-dev-ui-library.d.ts +312 -1
- package/types/zambon-dev-ui-shared.d.ts +180 -10
- package/types/zambon-dev-ui-testing.d.ts +1 -0
|
@@ -124,6 +124,10 @@ export interface ITabHistory {
|
|
|
124
124
|
title: string;
|
|
125
125
|
url: string;
|
|
126
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* Keeps the app's open tabs. Each tab has a history stack of the views opened in it; the service
|
|
129
|
+
* opens, focuses, navigates and closes tabs, and keeps the router's view cache in step.
|
|
130
|
+
*/
|
|
127
131
|
export declare class TabService {
|
|
128
132
|
private applicationRef;
|
|
129
133
|
private location;
|
|
@@ -133,29 +137,69 @@ export declare class TabService {
|
|
|
133
137
|
private customReuseStrategy;
|
|
134
138
|
private displayTitleIndices;
|
|
135
139
|
private openTabs;
|
|
140
|
+
/** The active tab's history stack, root first. Empty when no tab is open. */
|
|
136
141
|
get activeTabHistory(): ITab[];
|
|
142
|
+
/** The root entry of every open tab, in strip order. */
|
|
137
143
|
get activeTabs(): ITab[];
|
|
144
|
+
/** The title each open tab shows: that of the entry it was last navigated to, in strip order. */
|
|
138
145
|
get activeTabsDisplayTitles(): (string | undefined)[];
|
|
146
|
+
/** Whether each open tab's title is still loading, in strip order. */
|
|
139
147
|
get activeTabsLoadingStates(): boolean[];
|
|
140
148
|
private get activeTab();
|
|
141
149
|
constructor(applicationRef: ApplicationRef, location: Location, router: Router, routeReuseStrategy: RouteReuseStrategy);
|
|
150
|
+
/** Focuses a tab, given its root entry, and navigates to the view it was showing. */
|
|
142
151
|
activateTab(tab: ITab): void;
|
|
152
|
+
/** Navigates to `url` while keeping the active tab's current view cached under it. */
|
|
143
153
|
cloneCurrentTab(url: string): void;
|
|
154
|
+
/** Closes the active tab. */
|
|
144
155
|
closeActiveTab(): void;
|
|
156
|
+
/** Closes every tab and clears the view cache. */
|
|
145
157
|
closeAllTabs(): void;
|
|
158
|
+
/** Closes the tab at `index`. Closing the active tab focuses a neighbour, or goes home when none is left. */
|
|
146
159
|
closeTab(index: number): void;
|
|
160
|
+
/** Whether `tab`, a root entry, belongs to the active tab. */
|
|
147
161
|
isTabActive(tab: ITab): boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Whether the active tab is showing `url`.
|
|
164
|
+
*
|
|
165
|
+
* @param checkForClones Also match URLs cloned from the current view. Defaults to `false`.
|
|
166
|
+
*/
|
|
148
167
|
isUrlActive(url: string, checkForClones?: boolean): boolean;
|
|
168
|
+
/** Whether any tab has `url` anywhere in its history. */
|
|
149
169
|
isUrlOpen(url: string): boolean;
|
|
170
|
+
/** Goes back one step in the active tab's history, or closes the tab when it has no earlier step. */
|
|
150
171
|
navigateBackOrCloseActiveTab(): void;
|
|
172
|
+
/**
|
|
173
|
+
* Opens a view in the active tab, adding it to the tab's history. Focuses another tab instead when
|
|
174
|
+
* that one already shows the same record or URL.
|
|
175
|
+
*/
|
|
151
176
|
navigateCurrentTab(tab: ITab): void;
|
|
177
|
+
/** Goes back to an earlier entry of the active tab, dropping the entries after it. */
|
|
152
178
|
navigateCurrentTabBack(tab: ITab): void;
|
|
179
|
+
/**
|
|
180
|
+
* Navigates the router to a tab entry, or to the home URL when `tab` is undefined.
|
|
181
|
+
*
|
|
182
|
+
* @param clonedUrl URL to navigate to instead of the entry's own URL.
|
|
183
|
+
*/
|
|
153
184
|
navigateTo(tab: ITab | undefined, clonedUrl?: string): void;
|
|
185
|
+
/** Opens a view in a new tab, or focuses the tab that already shows that URL or record. */
|
|
154
186
|
openTab(tab: ITab): void;
|
|
187
|
+
/**
|
|
188
|
+
* Replaces the sub-view of the active tab: keeps its history up to the entry at `baseUrl`, then adds
|
|
189
|
+
* `tab` when given, and navigates to the result.
|
|
190
|
+
*/
|
|
155
191
|
replaceCurrentTabSubView(baseUrl: string, tab?: ITab): void;
|
|
192
|
+
/**
|
|
193
|
+
* Changes the URL of the active tab's current entry without navigating, such as after a new record is saved.
|
|
194
|
+
*
|
|
195
|
+
* @param updateLocation Whether to also replace the browser address. Defaults to `true`.
|
|
196
|
+
*/
|
|
156
197
|
redirectCurrentTab(url: string, updateLocation?: boolean): void;
|
|
198
|
+
/** Makes the next navigation to `fromUrl` reuse the cached view of `toUrl`. */
|
|
157
199
|
setRouteRedirect(fromUrl: string, toUrl: string): void;
|
|
200
|
+
/** Sets the title of the active tab's root entry. */
|
|
158
201
|
updateActiveTabRootTitle(title: string): void;
|
|
202
|
+
/** Sets the title of every tab entry whose URL is `url`. */
|
|
159
203
|
updateTabTitle(url: string, title: string): void;
|
|
160
204
|
/** Announces that the tab state changed, so views reading it re-render. */
|
|
161
205
|
private touched;
|
|
@@ -179,25 +223,45 @@ export declare class TabService {
|
|
|
179
223
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabService, never>;
|
|
180
224
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
181
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* Base for the app's authentication service. Reads the stored session token and checks which
|
|
228
|
+
* actions the signed-in user may perform. The app extends it and supplies `getActions()`.
|
|
229
|
+
*/
|
|
182
230
|
export declare abstract class AuthService {
|
|
183
231
|
protected jwtHelper: JwtHelperService;
|
|
184
232
|
protected tabService: TabService;
|
|
185
233
|
private actionsCache$;
|
|
186
234
|
private isActionsCacheInitialized;
|
|
235
|
+
/** Name of the action that grants every permission in `checkActionIsAllowed()`. */
|
|
187
236
|
abstract get adminAction(): string;
|
|
237
|
+
/** `true` when a username is stored for the session. */
|
|
188
238
|
get isAuthenticated(): boolean;
|
|
239
|
+
/** `true` when a token is stored and it has expired. */
|
|
189
240
|
get isTokenExpired(): boolean;
|
|
241
|
+
/** The stored access token, from local or session storage, or `null`. */
|
|
190
242
|
get token(): string | null;
|
|
243
|
+
/** ID of the signed-in user. The base class always returns `0`; override it to supply the real ID. */
|
|
191
244
|
get userID(): number | undefined;
|
|
192
245
|
protected get refreshToken(): string | null;
|
|
193
246
|
protected get userInfo(): string | null;
|
|
194
247
|
protected get username(): string | null;
|
|
195
248
|
constructor(jwtHelper: JwtHelperService, tabService: TabService);
|
|
249
|
+
/**
|
|
250
|
+
* Emits whether the user may perform an action. Holding `adminAction` allows every action.
|
|
251
|
+
* The user's actions are loaded once and cached.
|
|
252
|
+
*/
|
|
196
253
|
checkActionIsAllowed(actionToCheck: string): Observable<boolean>;
|
|
254
|
+
/**
|
|
255
|
+
* Emits, for each action in `actionsToCheck`, whether the user may perform it.
|
|
256
|
+
*
|
|
257
|
+
* @param checkForAdministrativeMaster Whether holding `AdministrativeMaster` allows every action. Defaults to `true`.
|
|
258
|
+
*/
|
|
197
259
|
checkActionsAreAllowed(actionsToCheck: string[], checkForAdministrativeMaster?: boolean): Observable<boolean[]>;
|
|
260
|
+
/** Clears local and session storage, closes every tab and forgets the cached actions. */
|
|
198
261
|
signOut(): void;
|
|
199
262
|
protected setStorage(key: 'username' | 'token' | 'refreshToken' | 'userInfo', value: string | null, useLocalStorage?: boolean | null): void;
|
|
200
263
|
protected resetActionsCache(): void;
|
|
264
|
+
/** Loads the names of the actions the signed-in user may perform. */
|
|
201
265
|
abstract getActions(): Observable<string[]>;
|
|
202
266
|
}
|
|
203
267
|
export declare class CustomReuseStrategy implements RouteReuseStrategy {
|
|
@@ -224,22 +288,47 @@ export declare class CustomReuseStrategy implements RouteReuseStrategy {
|
|
|
224
288
|
private getRouteDepth;
|
|
225
289
|
private getUrlFromRoute;
|
|
226
290
|
}
|
|
291
|
+
/**
|
|
292
|
+
* Shared by a tab's shell and the views inside it. Carries the ribbon template each view publishes
|
|
293
|
+
* and which sub-view is active. Provided by the tab view components, not at the root.
|
|
294
|
+
*/
|
|
227
295
|
export declare class TabViewService {
|
|
296
|
+
/** Emits the ribbon template a view publishes. Replays the latest one to new subscribers. */
|
|
228
297
|
onUpdateRibbonTemplate: ReplaySubject<TemplateRef<any> | undefined>;
|
|
298
|
+
/** Emits the ID of the sub-view that became active. */
|
|
229
299
|
onViewChanged: Subject<string>;
|
|
230
300
|
private readonly _activeView;
|
|
301
|
+
/** ID of the active sub-view, or an empty string before one is set. */
|
|
231
302
|
get activeView(): string;
|
|
303
|
+
/** Makes a sub-view active and emits `onViewChanged`. Does nothing when it is already active. */
|
|
232
304
|
setActiveView(viewId: string): void;
|
|
305
|
+
/** Publishes a view's ribbon template to the tab's ribbon. */
|
|
233
306
|
updateRibbonTemplate(template: TemplateRef<any> | undefined): void;
|
|
234
307
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabViewService, never>;
|
|
235
308
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
236
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* Base class for the framework's ribbon buttons. It hides the button when the user has none of
|
|
312
|
+
* its `allowedActions`, checks access for each dropdown option, and drives the inner
|
|
313
|
+
* `lib-ribbon-button`'s loading state.
|
|
314
|
+
*/
|
|
237
315
|
export declare class BaseButton extends RibbonGroupChild implements OnDestroy {
|
|
238
316
|
protected readonly button: Signal<RibbonButtonComponent | undefined>;
|
|
317
|
+
/**
|
|
318
|
+
* Actions the user needs for the button to show; one allowed action is enough. Defaults to `[]`,
|
|
319
|
+
* which skips the check and always shows the button.
|
|
320
|
+
*/
|
|
239
321
|
readonly allowedActions: InputSignal<string[]>;
|
|
322
|
+
/** Whether the button is disabled. Defaults to `false`. */
|
|
240
323
|
readonly disabled: ModelSignal<boolean>;
|
|
324
|
+
/** Whether the button shows its loading spinner. Defaults to `false`. */
|
|
241
325
|
readonly loading: ModelSignal<boolean>;
|
|
326
|
+
/**
|
|
327
|
+
* Entries of the button's dropdown. An option with `allowedActions` stays disabled until its
|
|
328
|
+
* access check returns and is hidden when none is allowed. Defaults to `[]`.
|
|
329
|
+
*/
|
|
242
330
|
readonly options: ModelSignal<IRibbonButtonOption[]>;
|
|
331
|
+
/** Size of the button's icon: `small` or `large`. Defaults to `large`. */
|
|
243
332
|
readonly iconSize: InputSignal<'small' | 'large'>;
|
|
244
333
|
protected authService: AuthService;
|
|
245
334
|
protected destroy$: Subject<boolean>;
|
|
@@ -260,7 +349,9 @@ export declare class BaseButton extends RibbonGroupChild implements OnDestroy {
|
|
|
260
349
|
* is what stops an option still in flight from being asked a second time.
|
|
261
350
|
*/
|
|
262
351
|
private readonly requestedOptions;
|
|
352
|
+
/** Whether the access check for `allowedActions` has returned. */
|
|
263
353
|
readonly isAccessLoaded: Signal<boolean>;
|
|
354
|
+
/** Whether the button is shown, from the access check for `allowedActions`. */
|
|
264
355
|
readonly isVisible: Signal<boolean>;
|
|
265
356
|
protected get isButtonDisabled(): boolean;
|
|
266
357
|
/**
|
|
@@ -271,7 +362,9 @@ export declare class BaseButton extends RibbonGroupChild implements OnDestroy {
|
|
|
271
362
|
*/
|
|
272
363
|
private readonly optionsAccess;
|
|
273
364
|
ngOnDestroy(): void;
|
|
365
|
+
/** Shows the loading spinner on the button. */
|
|
274
366
|
startLoading(): void;
|
|
367
|
+
/** Stops the spinner and briefly shows the outcome: `success`, `warning` or `failure`. */
|
|
275
368
|
finishLoading(status: 'failure' | 'warning' | 'success'): void;
|
|
276
369
|
private checkAccessIsAllowed;
|
|
277
370
|
/**
|
|
@@ -314,6 +407,10 @@ export declare class BaseButton extends RibbonGroupChild implements OnDestroy {
|
|
|
314
407
|
"options": "optionsChange";
|
|
315
408
|
}, never, never, true, never>;
|
|
316
409
|
}
|
|
410
|
+
/**
|
|
411
|
+
* Base class for ribbon buttons that act on the current form view. It gives them the form's data
|
|
412
|
+
* provider and form service, and disables the button while the form is loading.
|
|
413
|
+
*/
|
|
317
414
|
export declare abstract class BaseFormViewButton extends BaseButton {
|
|
318
415
|
protected dataProviderService: DataProviderService<any>;
|
|
319
416
|
protected formService: FormService;
|
|
@@ -322,22 +419,31 @@ export declare abstract class BaseFormViewButton extends BaseButton {
|
|
|
322
419
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormViewButton, never>;
|
|
323
420
|
static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormViewButton, "ng-component", never, {}, {}, never, never, true, never>;
|
|
324
421
|
}
|
|
422
|
+
/**
|
|
423
|
+
* Ribbon button that asks for confirmation in a modal, then runs `action`. On success it closes the
|
|
424
|
+
* modal and refreshes the surrounding data grid; on failure the modal shows the error.
|
|
425
|
+
*/
|
|
325
426
|
export declare class ButtonConfirmComponent extends BaseButton {
|
|
326
427
|
private readonly confirmModal;
|
|
428
|
+
/** Request to run once the user confirms. Required. Subscribed to once per confirmation. */
|
|
327
429
|
readonly action: InputSignal<Observable<any>>;
|
|
430
|
+
/** Tailwind text-colour class for the ribbon button's icon. Defaults to `text-primary-500`. */
|
|
328
431
|
readonly color: InputSignal<string>;
|
|
432
|
+
/** Font Awesome icon class of the ribbon button. Defaults to `''` (no icon). */
|
|
329
433
|
readonly icon: InputSignal<string>;
|
|
434
|
+
/** Translation key of the ribbon button's label. Defaults to `''`. */
|
|
330
435
|
readonly label: InputSignal<string>;
|
|
331
|
-
/**
|
|
332
|
-
* What the confirm button is for. Replaces `modalConfirmButtonColor`, which took a Tailwind
|
|
333
|
-
* palette name -- `green-500` -- and so could neither follow a theme nor say what the button
|
|
334
|
-
* meant.
|
|
335
|
-
*/
|
|
436
|
+
/** What the modal's confirm button is for. Sets its fill and text colour. Defaults to `danger`. */
|
|
336
437
|
readonly modalConfirmButtonIntent: InputSignal<ButtonIntent>;
|
|
438
|
+
/** Translation key of the modal's confirm button. Defaults to `''`. */
|
|
337
439
|
readonly modalConfirmButtonLabel: InputSignal<string>;
|
|
440
|
+
/** Translation key of the message in the modal. May contain HTML. Defaults to `''` (no message). */
|
|
338
441
|
readonly modalMessage: InputSignal<string>;
|
|
442
|
+
/** Font Awesome classes of the icon beside the message. Defaults to `fa-solid fa-circle-question`. */
|
|
339
443
|
readonly modalMessageIcon: InputSignal<string>;
|
|
444
|
+
/** Tailwind text-colour class of the message icon. Defaults to `''` (no colour class). */
|
|
340
445
|
readonly modalMessageIconColor: InputSignal<string>;
|
|
446
|
+
/** Translation key of the modal's title. Defaults to `''`. */
|
|
341
447
|
readonly modalTitle: InputSignal<string>;
|
|
342
448
|
protected gridDataset: DataGridDataset;
|
|
343
449
|
constructor();
|
|
@@ -400,12 +506,21 @@ export declare class ButtonConfirmComponent extends BaseButton {
|
|
|
400
506
|
declare namespace button_delete_component_d_exports {
|
|
401
507
|
export { ButtonDeleteComponent };
|
|
402
508
|
}
|
|
509
|
+
/**
|
|
510
|
+
* Red ribbon button that asks for confirmation in a modal, then runs the delete `action`. On
|
|
511
|
+
* success it closes the modal and refreshes the surrounding data grid. Starts disabled.
|
|
512
|
+
*/
|
|
403
513
|
export declare class ButtonDeleteComponent extends BaseButton {
|
|
404
514
|
private readonly confirmModal;
|
|
515
|
+
/** Delete request to run once the user confirms. Required. */
|
|
405
516
|
readonly action: InputSignal<Observable<any>>;
|
|
517
|
+
/** Translation key of the ribbon button's label. Defaults to `Button-Delete`. */
|
|
406
518
|
readonly label: InputSignal<string>;
|
|
519
|
+
/** Translation key of the modal's confirm button. Defaults to `Modal-Delete-Confirm`. */
|
|
407
520
|
readonly modalConfirmButtonLabel: InputSignal<string>;
|
|
521
|
+
/** Translation key of the message in the modal. May contain HTML. Defaults to `Modal-Delete-Message`. */
|
|
408
522
|
readonly modalMessage: InputSignal<string>;
|
|
523
|
+
/** Translation key of the modal's title. Defaults to `Modal-Delete-Title`. */
|
|
409
524
|
readonly modalTitle: InputSignal<string>;
|
|
410
525
|
protected gridDataset: DataGridDataset;
|
|
411
526
|
constructor();
|
|
@@ -440,27 +555,45 @@ export declare class ButtonDeleteComponent extends BaseButton {
|
|
|
440
555
|
};
|
|
441
556
|
}, {}, never, never, true, never>;
|
|
442
557
|
}
|
|
558
|
+
/**
|
|
559
|
+
* Root of every framework view. Tracks a `loading` flag for the view's spinner and buttons, and
|
|
560
|
+
* cleans up subscriptions when the view is destroyed.
|
|
561
|
+
*/
|
|
443
562
|
export declare abstract class ViewBase implements OnDestroy {
|
|
444
563
|
protected destroy$: Subject<boolean>;
|
|
445
564
|
protected readonly loadingState: WritableSignal<boolean>;
|
|
565
|
+
/** Whether the view is busy loading or saving. Its buttons are disabled while this is `true`. */
|
|
446
566
|
get loading(): boolean;
|
|
567
|
+
/** Marks the view as busy (`true`) or idle (`false`). */
|
|
447
568
|
set loading(value: boolean);
|
|
448
569
|
ngOnDestroy(): void;
|
|
449
570
|
static ɵfac: i0.ɵɵFactoryDeclaration<ViewBase, never>;
|
|
450
571
|
static ɵcmp: i0.ɵɵComponentDeclaration<ViewBase, "ng-component", never, {}, {}, never, never, true, never>;
|
|
451
572
|
}
|
|
573
|
+
/** Base for a view shown in a modal. */
|
|
452
574
|
export declare abstract class ModalBase extends ViewBase {
|
|
575
|
+
/** Opens the modal when it is closed, and closes it when it is open. */
|
|
453
576
|
abstract toggle(): void;
|
|
454
577
|
}
|
|
455
578
|
declare namespace button_edit_component_d_exports$1 {
|
|
456
579
|
export { ButtonEditComponent };
|
|
457
580
|
}
|
|
581
|
+
/**
|
|
582
|
+
* Ribbon button that puts the current record's form into edit mode, then turns into a Cancel button
|
|
583
|
+
* until the edit ends. Shown only for a saved record. With `modal` set it opens that modal instead.
|
|
584
|
+
*/
|
|
458
585
|
export declare class ButtonEditComponent extends BaseButton implements OnInit {
|
|
586
|
+
/** Tailwind text-colour class of the Cancel button's icon. Defaults to `text-red-500`. */
|
|
459
587
|
readonly cancelColor: InputSignal<string>;
|
|
588
|
+
/** Font Awesome icon class of the Cancel button. Defaults to `fa-ban`. */
|
|
460
589
|
readonly cancelIcon: InputSignal<string>;
|
|
590
|
+
/** Translation key of the Cancel button's label. Defaults to `Button-Cancel-Edit`. */
|
|
461
591
|
readonly cancelLabel: InputSignal<string>;
|
|
592
|
+
/** Font Awesome icon class of the Edit button. Defaults to `fa-edit`. */
|
|
462
593
|
readonly editIcon: InputSignal<string>;
|
|
594
|
+
/** Translation key of the Edit button's label. Defaults to `Button-Edit`. */
|
|
463
595
|
readonly editLabel: InputSignal<string>;
|
|
596
|
+
/** Modal to toggle on click instead of editing the form in place. Unset by default. */
|
|
464
597
|
readonly modal: InputSignal<ModalBase | undefined>;
|
|
465
598
|
protected readonly isButtonCancelVisible: WritableSignal<boolean>;
|
|
466
599
|
private dataProviderService;
|
|
@@ -509,14 +642,18 @@ declare namespace button_export_component_d_exports {
|
|
|
509
642
|
}
|
|
510
643
|
export type ExportFormat = 'xlsx' | 'pdf' | 'csv' | 'xml' | 'mhtml';
|
|
511
644
|
export declare const MaxExportRows = 50000;
|
|
645
|
+
/**
|
|
646
|
+
* Ribbon button that exports the surrounding data grid, with its current filters, as Excel, PDF,
|
|
647
|
+
* CSV, XML or MHTML and downloads the file. Disabled when the grid has more than
|
|
648
|
+
* `MaxExportRows` rows.
|
|
649
|
+
*/
|
|
512
650
|
export declare class ButtonExportComponent extends BaseButton {
|
|
513
651
|
/**
|
|
514
|
-
* Index
|
|
515
|
-
*
|
|
516
|
-
* Export needing two clicks for the common case while Save (which sets 0) needed one. Set -1 to
|
|
517
|
-
* restore the dropdown-only behaviour.
|
|
652
|
+
* Index of the format in `options` that the main button exports. Defaults to `0` (Excel); `-1`
|
|
653
|
+
* makes the main button only open the format dropdown.
|
|
518
654
|
*/
|
|
519
655
|
readonly defaultOption: InputSignal<number>;
|
|
656
|
+
/** File name used when the server response does not name the file. Defaults to `export`. */
|
|
520
657
|
readonly fileBaseName: InputSignal<string>;
|
|
521
658
|
private dataGridDataset;
|
|
522
659
|
private translateService;
|
|
@@ -543,10 +680,19 @@ export declare class ButtonExportComponent extends BaseButton {
|
|
|
543
680
|
declare namespace button_filters_component_d_exports {
|
|
544
681
|
export { ButtonFiltersComponent };
|
|
545
682
|
}
|
|
683
|
+
/**
|
|
684
|
+
* Ribbon button that opens a filter form in a modal and applies the submitted values to the
|
|
685
|
+
* surrounding data grid. Project the filter fields as content. A Clear button appears while filters
|
|
686
|
+
* are applied.
|
|
687
|
+
*/
|
|
546
688
|
export declare class ButtonFiltersComponent extends BaseButton implements OnInit {
|
|
689
|
+
/** The filter modal. */
|
|
547
690
|
readonly modal: Signal<ModalComponent | undefined>;
|
|
691
|
+
/** Width of the filter modal. Defaults to `xl`. */
|
|
548
692
|
readonly modalSize: InputSignal<ModalSize>;
|
|
693
|
+
/** Translation key of the filter modal's title. Defaults to `''`. */
|
|
549
694
|
readonly modalTitle: InputSignal<string>;
|
|
695
|
+
/** Called before the filters are applied, to run extra validation on the form. The filters apply only when the form is valid. */
|
|
550
696
|
readonly validateFormFunction: InputSignal<(() => void) | undefined>;
|
|
551
697
|
protected gridDataset: DataGridDataset;
|
|
552
698
|
protected readonly formGroup: FormGroupDirective;
|
|
@@ -558,6 +704,10 @@ export declare class ButtonFiltersComponent extends BaseButton implements OnInit
|
|
|
558
704
|
protected onFiltersButtonClicked(): void;
|
|
559
705
|
protected onFiltersSubmitClicked(): void;
|
|
560
706
|
protected onResetButtonClicked(): void;
|
|
707
|
+
/**
|
|
708
|
+
* Applies `filters` to the grid and keeps them for the next time the modal opens. Empty values must
|
|
709
|
+
* already be removed; an empty object clears the filters.
|
|
710
|
+
*/
|
|
561
711
|
setFilters(filters: {
|
|
562
712
|
[key: string]: any;
|
|
563
713
|
}): void;
|
|
@@ -596,11 +746,19 @@ export declare class ButtonFiltersComponent extends BaseButton implements OnInit
|
|
|
596
746
|
declare namespace button_new_component_d_exports$1 {
|
|
597
747
|
export { ButtonNewComponent };
|
|
598
748
|
}
|
|
749
|
+
/**
|
|
750
|
+
* Ribbon button that opens the "new record" page in the current tab. Inside a details view it shows
|
|
751
|
+
* only once the parent record is saved. Each option in `options` can add its own path and query
|
|
752
|
+
* parameters.
|
|
753
|
+
*/
|
|
599
754
|
export declare class ButtonNewComponent extends BaseButton {
|
|
755
|
+
/** Last URL segment of the new-record page. Defaults to `new`. */
|
|
600
756
|
readonly endpoint: InputSignal<string>;
|
|
757
|
+
/** Query parameters added to the new-record URL. An option's own parameters are merged over these. */
|
|
601
758
|
readonly parameters: InputSignal<{
|
|
602
759
|
[key: string]: string;
|
|
603
760
|
} | undefined>;
|
|
761
|
+
/** Segment inserted before `endpoint`, such as a child entity's route. An option's `path` replaces it. */
|
|
604
762
|
readonly path: InputSignal<string | undefined>;
|
|
605
763
|
private dataProviderService;
|
|
606
764
|
private router;
|
|
@@ -630,8 +788,14 @@ export declare class ButtonNewComponent extends BaseButton {
|
|
|
630
788
|
declare namespace button_open_record_component_d_exports$1 {
|
|
631
789
|
export { ButtonOpenRecordComponent };
|
|
632
790
|
}
|
|
791
|
+
/**
|
|
792
|
+
* Ribbon button that opens the record selected in the surrounding data grid in the current tab.
|
|
793
|
+
* Enabled only when exactly one row is selected.
|
|
794
|
+
*/
|
|
633
795
|
export declare class ButtonOpenRecordComponent extends BaseButton implements OnInit {
|
|
796
|
+
/** Segment added between `rootPath` and the record's ID. Unset by default. */
|
|
634
797
|
readonly elementPath: InputSignal<string | undefined>;
|
|
798
|
+
/** Base URL of the record page. Defaults to the current router URL. */
|
|
635
799
|
readonly rootPath: InputSignal<string | undefined>;
|
|
636
800
|
private dataGridDataset;
|
|
637
801
|
private router;
|
|
@@ -657,6 +821,7 @@ export declare class ButtonOpenRecordComponent extends BaseButton implements OnI
|
|
|
657
821
|
declare namespace button_refresh_component_d_exports {
|
|
658
822
|
export { ButtonRefreshComponent };
|
|
659
823
|
}
|
|
824
|
+
/** Ribbon button that reloads the surrounding data grid and spins until the load finishes. */
|
|
660
825
|
export declare class ButtonRefreshComponent extends BaseButton implements OnInit {
|
|
661
826
|
private dataGridDataset;
|
|
662
827
|
constructor();
|
|
@@ -668,8 +833,14 @@ export declare class ButtonRefreshComponent extends BaseButton implements OnInit
|
|
|
668
833
|
declare namespace button_save_component_d_exports$1 {
|
|
669
834
|
export { ButtonSaveComponent };
|
|
670
835
|
}
|
|
836
|
+
/**
|
|
837
|
+
* Ribbon button that validates and saves the current form. Its dropdown offers Save, Save and close,
|
|
838
|
+
* and Save and new. Validation errors from the server go to the form fields; other errors open an
|
|
839
|
+
* error modal.
|
|
840
|
+
*/
|
|
671
841
|
export declare class ButtonSaveComponent extends BaseButton {
|
|
672
842
|
private readonly errorModal;
|
|
843
|
+
/** Index of the option in `options` that the main button runs. Defaults to `0` (Save). */
|
|
673
844
|
readonly defaultOption: InputSignal<number>;
|
|
674
845
|
private dataProviderService;
|
|
675
846
|
private formService;
|
|
@@ -679,6 +850,7 @@ export declare class ButtonSaveComponent extends BaseButton {
|
|
|
679
850
|
protected get isFormLoading(): boolean;
|
|
680
851
|
constructor();
|
|
681
852
|
protected onButtonClicked(option?: string): void;
|
|
853
|
+
/** Stops the spinner and briefly shows the outcome: `success`, `warning` or `failure`. */
|
|
682
854
|
finishLoading(status: 'failure' | 'warning' | 'success'): void;
|
|
683
855
|
private navigateToNew;
|
|
684
856
|
private saveModel;
|
|
@@ -694,7 +866,13 @@ export declare class ButtonSaveComponent extends BaseButton {
|
|
|
694
866
|
declare namespace button_views_component_d_exports$1 {
|
|
695
867
|
export { ButtonViewsComponent };
|
|
696
868
|
}
|
|
869
|
+
/**
|
|
870
|
+
* Ribbon dropdown that switches between the views of a details page. It builds its options from the
|
|
871
|
+
* child routes of `detailsViewRoute` and applies their `allowedActions`, `visibleWhen` and
|
|
872
|
+
* `enabledWhen` route data. Disabled for a record that is not saved yet.
|
|
873
|
+
*/
|
|
697
874
|
export declare class ButtonViewsComponent extends BaseButton implements OnInit {
|
|
875
|
+
/** Route of the details page whose child routes are the views. The button shows nothing while it is `null` (the default). */
|
|
698
876
|
readonly detailsViewRoute: InputSignal<ActivatedRouteSnapshot | null>;
|
|
699
877
|
private baseUrlPath?;
|
|
700
878
|
private dataProviderService;
|
|
@@ -756,10 +934,18 @@ export declare class ButtonViewsComponent extends BaseButton implements OnInit {
|
|
|
756
934
|
};
|
|
757
935
|
}, {}, never, never, true, never>;
|
|
758
936
|
}
|
|
937
|
+
/**
|
|
938
|
+
* Generic ribbon button with the framework's access check. Set its label, icon and colour, and
|
|
939
|
+
* handle `action`.
|
|
940
|
+
*/
|
|
759
941
|
export declare class ButtonComponent extends BaseButton {
|
|
942
|
+
/** Tailwind text-colour class for the icon. Defaults to `text-primary-500`. */
|
|
760
943
|
readonly color: InputSignal<string>;
|
|
944
|
+
/** Font Awesome icon class, such as `fa-plus`. No icon when unset. */
|
|
761
945
|
readonly icon: InputSignal<string | undefined>;
|
|
946
|
+
/** Translation key of the button's label. Defaults to `''`. */
|
|
762
947
|
readonly label: InputSignal<string>;
|
|
948
|
+
/** Emits when the button is clicked while enabled, visible and its access check has returned. */
|
|
763
949
|
readonly action: OutputEmitterRef<void>;
|
|
764
950
|
protected onButtonClicked(): void;
|
|
765
951
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
@@ -786,11 +972,20 @@ export declare class ButtonComponent extends BaseButton {
|
|
|
786
972
|
declare namespace button_new_component_d_exports {
|
|
787
973
|
export { ButtonNewLegacyComponent };
|
|
788
974
|
}
|
|
975
|
+
/**
|
|
976
|
+
* Ribbon button that opens `path`/`endpoint` in a new tab.
|
|
977
|
+
*
|
|
978
|
+
* @deprecated Use {@link ButtonNewComponent} instead.
|
|
979
|
+
*/
|
|
789
980
|
export declare class ButtonNewLegacyComponent extends BaseButton {
|
|
981
|
+
/** Last URL segment of the new-record page. Defaults to `new`. */
|
|
790
982
|
readonly endpoint: InputSignal<string>;
|
|
983
|
+
/** Base URL placed before `endpoint`. Defaults to `''`. */
|
|
791
984
|
readonly path: InputSignal<string>;
|
|
985
|
+
/** Not used; kept so existing bindings still compile. */
|
|
792
986
|
readonly tabView: InputSignal<ITabView | undefined>;
|
|
793
987
|
private tabService;
|
|
988
|
+
/** Opens the new-record page, as a click on the button does. */
|
|
794
989
|
clicked(): void;
|
|
795
990
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonNewLegacyComponent, never>;
|
|
796
991
|
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonNewLegacyComponent, "framework-button-new-legacy", never, {
|
|
@@ -811,6 +1006,11 @@ export declare class ButtonNewLegacyComponent extends BaseButton {
|
|
|
811
1006
|
};
|
|
812
1007
|
}, {}, never, never, true, never>;
|
|
813
1008
|
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Base for a grid of child records shown inside a parent record's view. Scopes the grid to the
|
|
1011
|
+
* parent entity, follows its loading and selection, and reloads it when the parent record or the
|
|
1012
|
+
* multi-select result changes.
|
|
1013
|
+
*/
|
|
814
1014
|
export declare abstract class ChildList<TEntityModel> extends ViewBase implements OnInit {
|
|
815
1015
|
protected dataGridDataset: DataGridDataset;
|
|
816
1016
|
protected dataProvider: DataProviderService<TEntityModel> | null;
|
|
@@ -824,19 +1024,26 @@ export declare abstract class ChildList<TEntityModel> extends ViewBase implement
|
|
|
824
1024
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChildList<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
825
1025
|
}
|
|
826
1026
|
/**
|
|
827
|
-
*
|
|
1027
|
+
* Base for a grid of child records whose parent is passed in through `entityId`. Follows the
|
|
1028
|
+
* grid's loading and selection.
|
|
1029
|
+
*
|
|
1030
|
+
* @deprecated Use {@link ChildList} instead. Migrate by extending ChildList
|
|
828
1031
|
* and using standalone component imports with inject() for dependency injection.
|
|
829
1032
|
*/
|
|
830
1033
|
export declare abstract class ChildListLegacy extends ViewBase implements OnInit {
|
|
831
1034
|
private _entityId?;
|
|
832
1035
|
protected selectionCount: number;
|
|
1036
|
+
/** ID of the parent record. Setting it scopes the grid to that record and loads its rows if none are loaded yet. */
|
|
833
1037
|
get entityId(): number | undefined;
|
|
1038
|
+
/** Sets the parent record; see the getter. */
|
|
834
1039
|
set entityId(value: number | undefined);
|
|
1040
|
+
/** Asks the list to disable its actions. Only takes effect where the subclass template reads it. Defaults to `false`. */
|
|
835
1041
|
disabled: boolean;
|
|
836
1042
|
protected dataGridDataset: DataGridDataset;
|
|
837
1043
|
protected resultDataset: MultiSelectResultDataset | null;
|
|
838
1044
|
constructor();
|
|
839
1045
|
ngOnInit(): void;
|
|
1046
|
+
/** Called when the grid selection changes. Updates the selection count; subclasses may extend it. */
|
|
840
1047
|
selectedRowChanged(): void;
|
|
841
1048
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChildListLegacy, never>;
|
|
842
1049
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChildListLegacy, "ng-component", never, {
|
|
@@ -850,6 +1057,10 @@ export declare abstract class ChildListLegacy extends ViewBase implements OnInit
|
|
|
850
1057
|
};
|
|
851
1058
|
}, {}, never, never, true, never>;
|
|
852
1059
|
}
|
|
1060
|
+
/**
|
|
1061
|
+
* Base for a view routed inside a tab. Publishes the template marked `#ribbon` to the tab's ribbon,
|
|
1062
|
+
* and starts in the loading state so the ribbon buttons stay disabled until data arrives.
|
|
1063
|
+
*/
|
|
853
1064
|
export declare abstract class TabViewBase extends ViewBase implements AfterViewInit {
|
|
854
1065
|
private ribbonTemplate?;
|
|
855
1066
|
private tabViewService;
|
|
@@ -858,6 +1069,10 @@ export declare abstract class TabViewBase extends ViewBase implements AfterViewI
|
|
|
858
1069
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabViewBase, never>;
|
|
859
1070
|
static ɵcmp: i0.ɵɵComponentDeclaration<TabViewBase, "ng-component", never, {}, {}, never, never, true, never>;
|
|
860
1071
|
}
|
|
1072
|
+
/**
|
|
1073
|
+
* Base for a record's form screen. Builds the form from `formSetup()`, loads the record from the
|
|
1074
|
+
* data provider into `FormService`, and starts in edit mode when the record is new.
|
|
1075
|
+
*/
|
|
861
1076
|
export declare abstract class FormView<TEntityModel> extends TabViewBase implements OnInit {
|
|
862
1077
|
protected dataForm: FormGroup;
|
|
863
1078
|
protected dataProvider: DataProviderService<TEntityModel> | null;
|
|
@@ -872,20 +1087,32 @@ export declare abstract class FormView<TEntityModel> extends TabViewBase impleme
|
|
|
872
1087
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormView<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
873
1088
|
}
|
|
874
1089
|
/**
|
|
875
|
-
*
|
|
1090
|
+
* Base for a form embedded in another view. Takes the record through `model`, switches between view
|
|
1091
|
+
* and edit mode, and saves through `saveModel()`.
|
|
1092
|
+
*
|
|
1093
|
+
* @deprecated Use {@link FormView} instead. Migrate by extending FormView
|
|
876
1094
|
* and using standalone component imports with inject() for dependency injection.
|
|
877
1095
|
*/
|
|
878
1096
|
export declare abstract class LegacySubViewForm extends ViewBase implements OnInit {
|
|
879
1097
|
protected formBuilder: FormBuilder;
|
|
880
1098
|
protected formService: FormService;
|
|
1099
|
+
/** ID of the record being edited. Leave it empty for a new record, which opens the form in edit mode. */
|
|
881
1100
|
entityId?: number;
|
|
1101
|
+
/** The record shown in the form. A new value is patched into the form. */
|
|
882
1102
|
set model(value: any | null);
|
|
1103
|
+
/** Whether the form is busy. Writes go to `FormService.loading`. */
|
|
883
1104
|
get loading(): boolean;
|
|
1105
|
+
/** Marks the form as busy (`true`) or idle (`false`) through `FormService`. */
|
|
884
1106
|
set loading(value: boolean);
|
|
1107
|
+
/** `true` when there is no `entityId`, meaning the form holds a new record. */
|
|
885
1108
|
get isNew(): boolean;
|
|
1109
|
+
/** Whether the form is read-only (`view`) or being edited (`edit`). Starts as `view`. */
|
|
886
1110
|
get viewMode(): 'view' | 'edit';
|
|
1111
|
+
/** Switches the form between `view` and `edit` mode. Prefer `beginEdit()` and `cancelEdit()`. */
|
|
887
1112
|
set viewMode(value: 'view' | 'edit');
|
|
1113
|
+
/** The record shown in the form, or `null` before one is set. */
|
|
888
1114
|
get model(): any | null;
|
|
1115
|
+
/** The form built by `formSetup()`. */
|
|
889
1116
|
dataForm: FormGroup;
|
|
890
1117
|
private _model;
|
|
891
1118
|
private readonly _viewMode;
|
|
@@ -893,10 +1120,20 @@ export declare abstract class LegacySubViewForm extends ViewBase implements OnIn
|
|
|
893
1120
|
constructor(formBuilder: FormBuilder, formService: FormService);
|
|
894
1121
|
ngOnInit(): void;
|
|
895
1122
|
protected updateModel(model: any): void;
|
|
1123
|
+
/**
|
|
1124
|
+
* Switches to edit mode and enables the form.
|
|
1125
|
+
*
|
|
1126
|
+
* @param resetValues Whether to reload the form with the values of `model`. Defaults to `true`.
|
|
1127
|
+
*/
|
|
896
1128
|
beginEdit(resetValues?: boolean): void;
|
|
1129
|
+
/** Discards changes: restores the values of `model`, disables the form and returns to view mode. */
|
|
897
1130
|
cancelEdit(): void;
|
|
898
1131
|
/** Extension point: subclasses override this to validate before save. */
|
|
899
1132
|
protected validate(_formModel: any): void;
|
|
1133
|
+
/**
|
|
1134
|
+
* Validates the form and saves it through `saveModel()`. When the form is invalid, marks every
|
|
1135
|
+
* control as touched and returns an observable that fails with a 400 error.
|
|
1136
|
+
*/
|
|
900
1137
|
save(): Observable<any>;
|
|
901
1138
|
protected abstract formSetup(): FormGroup;
|
|
902
1139
|
protected abstract saveModel(): Observable<any>;
|
|
@@ -913,14 +1150,19 @@ export declare abstract class LegacySubViewForm extends ViewBase implements OnIn
|
|
|
913
1150
|
}, {}, never, never, true, never>;
|
|
914
1151
|
}
|
|
915
1152
|
/**
|
|
916
|
-
*
|
|
1153
|
+
* Base for a legacy view routed inside a tab. Knows its own URL and keeps the tab title in sync.
|
|
1154
|
+
*
|
|
1155
|
+
* @deprecated Use {@link TabViewBase} instead. Migrate by extending TabViewBase
|
|
917
1156
|
* and using standalone component imports with inject() for dependency injection.
|
|
918
1157
|
*/
|
|
919
1158
|
declare abstract class LegacyTabViewBase extends ViewBase implements OnInit, ITabView {
|
|
920
1159
|
protected route: ActivatedRoute;
|
|
921
1160
|
protected tabService: TabService;
|
|
1161
|
+
/** Title of the view, shown on its tab. Empty until the view sets it. */
|
|
922
1162
|
title: string;
|
|
1163
|
+
/** URL of the route this view was opened at. */
|
|
923
1164
|
url: string;
|
|
1165
|
+
/** ID of the sub-view being shown, such as `details` or `history`. */
|
|
924
1166
|
activeView?: string;
|
|
925
1167
|
constructor(route: ActivatedRoute, tabService: TabService);
|
|
926
1168
|
ngOnInit(): void;
|
|
@@ -930,18 +1172,25 @@ declare abstract class LegacyTabViewBase extends ViewBase implements OnInit, ITa
|
|
|
930
1172
|
static ɵcmp: i0.ɵɵComponentDeclaration<LegacyTabViewBase, "ng-component", never, {}, {}, never, never, true, never>;
|
|
931
1173
|
}
|
|
932
1174
|
/**
|
|
933
|
-
*
|
|
1175
|
+
* Base for a legacy record screen inside a tab. Loads the record from the route's `id`, switches
|
|
1176
|
+
* between its `details` and `history` sub-views, and keeps the tab title and URL in sync.
|
|
1177
|
+
*
|
|
1178
|
+
* @deprecated Use {@link TabViewBase} with the {@link DefaultDetailsTabViewComponent} pattern instead.
|
|
934
1179
|
* Migrate by extending TabViewBase and composing detail/history views as child routes
|
|
935
1180
|
* with standalone component imports.
|
|
936
1181
|
*/
|
|
937
1182
|
export declare abstract class LegacyTabViewDetails extends LegacyTabViewBase implements AfterViewInit, OnInit {
|
|
938
1183
|
protected formService: FormService;
|
|
1184
|
+
/** The view's New button, when its template has one. */
|
|
939
1185
|
buttonNew: ButtonNewLegacyComponent;
|
|
1186
|
+
/** Title of the record, shown on its tab. Cleared while the record loads. */
|
|
940
1187
|
title: string;
|
|
941
1188
|
protected defaultView: string;
|
|
942
1189
|
protected entityId?: number;
|
|
943
1190
|
protected views: IRibbonButtonOption[];
|
|
1191
|
+
/** Whether the record is loading. Writes are mirrored to `FormService.loading`. */
|
|
944
1192
|
get loading(): boolean;
|
|
1193
|
+
/** Marks the view and its form as busy (`true`) or idle (`false`). */
|
|
945
1194
|
set loading(value: boolean);
|
|
946
1195
|
protected get currentView(): string;
|
|
947
1196
|
protected get model(): any;
|
|
@@ -961,7 +1210,10 @@ export declare abstract class LegacyTabViewDetails extends LegacyTabViewBase imp
|
|
|
961
1210
|
static ɵcmp: i0.ɵɵComponentDeclaration<LegacyTabViewDetails, "ng-component", never, {}, {}, never, never, true, never>;
|
|
962
1211
|
}
|
|
963
1212
|
/**
|
|
964
|
-
*
|
|
1213
|
+
* Base for a legacy list screen inside a tab. Follows the grid's loading and tracks the selected rows
|
|
1214
|
+
* and, when exactly one is selected, that row's data.
|
|
1215
|
+
*
|
|
1216
|
+
* @deprecated Use {@link TabViewList} instead. Migrate by extending TabViewList
|
|
965
1217
|
* and using standalone component imports with inject() for dependency injection.
|
|
966
1218
|
*/
|
|
967
1219
|
export declare abstract class LegacyTabViewList<TListModel> extends LegacyTabViewBase implements OnInit {
|
|
@@ -976,6 +1228,10 @@ export declare abstract class LegacyTabViewList<TListModel> extends LegacyTabVie
|
|
|
976
1228
|
static ɵfac: i0.ɵɵFactoryDeclaration<LegacyTabViewList<any>, never>;
|
|
977
1229
|
static ɵcmp: i0.ɵɵComponentDeclaration<LegacyTabViewList<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
978
1230
|
}
|
|
1231
|
+
/**
|
|
1232
|
+
* Base for a list screen inside a tab. Follows the injected `DataGridDataset`: the view is busy while
|
|
1233
|
+
* rows load, and it tracks the selected rows and, when exactly one is selected, that row's data.
|
|
1234
|
+
*/
|
|
979
1235
|
export declare abstract class TabViewList<TListModel> extends TabViewBase implements OnInit {
|
|
980
1236
|
protected dataGridDataset: DataGridDataset;
|
|
981
1237
|
private _selectedItem?;
|
|
@@ -988,6 +1244,10 @@ export declare abstract class TabViewList<TListModel> extends TabViewBase implem
|
|
|
988
1244
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabViewList<any>, never>;
|
|
989
1245
|
static ɵcmp: i0.ɵɵComponentDeclaration<TabViewList<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
990
1246
|
}
|
|
1247
|
+
/**
|
|
1248
|
+
* List screen for the child records of the entity held by the tab's data provider. Scopes the grid,
|
|
1249
|
+
* and the multi-select result dataset when one is provided, to that entity and loads the rows.
|
|
1250
|
+
*/
|
|
991
1251
|
export declare abstract class ListView<TEntityModel, TListModel> extends TabViewList<TListModel> implements OnInit {
|
|
992
1252
|
protected dataProvider: DataProviderService<TEntityModel> | null;
|
|
993
1253
|
protected resultDataset: MultiSelectResultDataset | null;
|
|
@@ -996,18 +1256,30 @@ export declare abstract class ListView<TEntityModel, TListModel> extends TabView
|
|
|
996
1256
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListView<any, any>, never>;
|
|
997
1257
|
static ɵcmp: i0.ɵɵComponentDeclaration<ListView<any, any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
998
1258
|
}
|
|
1259
|
+
/**
|
|
1260
|
+
* Base for a modal that wraps a `lib-multi-editor`, for editing several child records at once.
|
|
1261
|
+
* The parent record is passed in through `entityId`.
|
|
1262
|
+
*
|
|
1263
|
+
* @deprecated Use {@link MultiEditorModal} instead.
|
|
1264
|
+
*/
|
|
999
1265
|
export declare abstract class MultiEditorLegacyModal extends ModalBase implements OnInit {
|
|
1000
1266
|
protected dataGridDataset: DataGridDataset;
|
|
1001
1267
|
protected multiEditorDataset: MultiEditorDataset;
|
|
1002
1268
|
protected formBuilder: FormBuilder;
|
|
1003
1269
|
protected _entityId?: number;
|
|
1270
|
+
/** The multi-editor in this modal's template. */
|
|
1004
1271
|
multiEditor: MultiEditorComponent;
|
|
1272
|
+
/** ID of the parent record. Scopes the grid and the editor to it. */
|
|
1005
1273
|
set entityId(value: number | undefined);
|
|
1274
|
+
/** Emits after the editor saves its changes. */
|
|
1006
1275
|
savedChanges: EventEmitter<any>;
|
|
1276
|
+
/** The editor form built by `formSetup()`. */
|
|
1007
1277
|
form: FormGroup;
|
|
1008
1278
|
constructor(dataGridDataset: DataGridDataset, multiEditorDataset: MultiEditorDataset, formBuilder: FormBuilder);
|
|
1009
1279
|
ngOnInit(): void;
|
|
1280
|
+
/** Opens or closes the multi-editor. */
|
|
1010
1281
|
toggle(): void;
|
|
1282
|
+
/** Builds the form the editor uses for each record. */
|
|
1011
1283
|
abstract formSetup(): FormGroup;
|
|
1012
1284
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiEditorLegacyModal, never>;
|
|
1013
1285
|
static ɵcmp: i0.ɵɵComponentDeclaration<MultiEditorLegacyModal, "ng-component", never, {
|
|
@@ -1019,9 +1291,15 @@ export declare abstract class MultiEditorLegacyModal extends ModalBase implement
|
|
|
1019
1291
|
"savedChanges": "savedChanges";
|
|
1020
1292
|
}, never, never, true, never>;
|
|
1021
1293
|
}
|
|
1294
|
+
/**
|
|
1295
|
+
* Base for a modal that wraps a `lib-multi-editor`, for editing several child records at once.
|
|
1296
|
+
* The parent record comes from the data provider, or from `overrideParentID` when set.
|
|
1297
|
+
*/
|
|
1022
1298
|
export declare abstract class MultiEditorModal<TEntityModel> extends ModalBase implements OnInit {
|
|
1023
1299
|
protected multiEditor: MultiEditorComponent;
|
|
1300
|
+
/** Parent record ID to use instead of the data provider's entity. */
|
|
1024
1301
|
overrideParentID?: number;
|
|
1302
|
+
/** Emits after the editor saves its changes. */
|
|
1025
1303
|
savedChanges: EventEmitter<any>;
|
|
1026
1304
|
protected dataForm: FormGroup;
|
|
1027
1305
|
protected dataGridDataset: DataGridDataset;
|
|
@@ -1032,6 +1310,7 @@ export declare abstract class MultiEditorModal<TEntityModel> extends ModalBase i
|
|
|
1032
1310
|
protected selectionCount: number;
|
|
1033
1311
|
constructor();
|
|
1034
1312
|
ngOnInit(): void;
|
|
1313
|
+
/** Opens or closes the multi-editor. Opening it first scopes the editor to the current parent record. */
|
|
1035
1314
|
toggle(): void;
|
|
1036
1315
|
protected abstract formSetup(): FormGroup;
|
|
1037
1316
|
private updateParentID;
|
|
@@ -1045,15 +1324,25 @@ export declare abstract class MultiEditorModal<TEntityModel> extends ModalBase i
|
|
|
1045
1324
|
"savedChanges": "savedChanges";
|
|
1046
1325
|
}, never, never, true, never>;
|
|
1047
1326
|
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Base for a modal that wraps a `lib-multi-select`, for picking several records at once.
|
|
1329
|
+
*/
|
|
1048
1330
|
export declare abstract class MultiSelectModal extends ModalBase {
|
|
1331
|
+
/** The multi-select in this modal's template. */
|
|
1049
1332
|
multiSelect: MultiSelectComponent;
|
|
1333
|
+
/** Emits after the selection is saved. Subclasses emit it; the base class never does. */
|
|
1050
1334
|
savedChanges: EventEmitter<void>;
|
|
1335
|
+
/** Opens or closes the multi-select. */
|
|
1051
1336
|
toggle(): void;
|
|
1052
1337
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectModal, never>;
|
|
1053
1338
|
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectModal, "ng-component", never, {}, {
|
|
1054
1339
|
"savedChanges": "savedChanges";
|
|
1055
1340
|
}, never, never, true, never>;
|
|
1056
1341
|
}
|
|
1342
|
+
/**
|
|
1343
|
+
* Base for a modal that shows one record in a form. The record is loaded through `loadData()` each
|
|
1344
|
+
* time the modal opens.
|
|
1345
|
+
*/
|
|
1057
1346
|
export declare abstract class ViewModal<TEntityModel> extends ModalBase implements OnInit {
|
|
1058
1347
|
protected modalComponent: IModal;
|
|
1059
1348
|
protected beginEditOnEntityLoad: boolean;
|
|
@@ -1065,6 +1354,11 @@ export declare abstract class ViewModal<TEntityModel> extends ModalBase implemen
|
|
|
1065
1354
|
private entityIdSubject;
|
|
1066
1355
|
constructor();
|
|
1067
1356
|
ngOnInit(): void;
|
|
1357
|
+
/**
|
|
1358
|
+
* Opens the modal and loads the record, or closes it when it is open.
|
|
1359
|
+
*
|
|
1360
|
+
* @param entityID ID of the record to load. Passed to `loadData()`; ignored when closing.
|
|
1361
|
+
*/
|
|
1068
1362
|
toggle(entityID?: number): void;
|
|
1069
1363
|
protected abstract formSetup(): FormGroup;
|
|
1070
1364
|
protected abstract loadData(entityID?: number): Observable<TEntityModel | null>;
|
|
@@ -1074,13 +1368,26 @@ export declare abstract class ViewModal<TEntityModel> extends ModalBase implemen
|
|
|
1074
1368
|
declare namespace button_edit_component_d_exports {
|
|
1075
1369
|
export { ButtonEditLegacyComponent };
|
|
1076
1370
|
}
|
|
1371
|
+
/**
|
|
1372
|
+
* Ribbon button that puts a legacy sub-view form into edit mode, then turns into a Cancel button
|
|
1373
|
+
* while editing. Without `form` it toggles `modal` instead.
|
|
1374
|
+
*
|
|
1375
|
+
* @deprecated Use {@link ButtonEditComponent} instead.
|
|
1376
|
+
*/
|
|
1077
1377
|
export declare class ButtonEditLegacyComponent extends BaseButton {
|
|
1378
|
+
/** Tailwind text-colour class of the Cancel button's icon. Defaults to `text-red-500`. */
|
|
1078
1379
|
readonly cancelColor: InputSignal<string>;
|
|
1380
|
+
/** Font Awesome icon class of the Cancel button. Defaults to `fa-ban`. */
|
|
1079
1381
|
readonly cancelIcon: InputSignal<string>;
|
|
1382
|
+
/** Translation key of the Cancel button's label. Defaults to `Button-Cancel-Edit`. */
|
|
1080
1383
|
readonly cancelLabel: InputSignal<string>;
|
|
1384
|
+
/** Font Awesome icon class of the Edit button. Defaults to `fa-edit`. */
|
|
1081
1385
|
readonly editIcon: InputSignal<string>;
|
|
1386
|
+
/** Translation key of the Edit button's label. Defaults to `Button-Edit`. */
|
|
1082
1387
|
readonly editLabel: InputSignal<string>;
|
|
1388
|
+
/** Legacy form to edit. Takes precedence over `modal`. */
|
|
1083
1389
|
readonly form: InputSignal<LegacySubViewForm | undefined>;
|
|
1390
|
+
/** Modal to toggle on click when no `form` is set. */
|
|
1084
1391
|
readonly modal: InputSignal<ModalBase | undefined>;
|
|
1085
1392
|
protected onCancelAction(): void;
|
|
1086
1393
|
protected onEditAction(): void;
|
|
@@ -1126,15 +1433,25 @@ export declare class ButtonEditLegacyComponent extends BaseButton {
|
|
|
1126
1433
|
declare namespace button_save_component_d_exports {
|
|
1127
1434
|
export { ButtonSaveLegacyComponent };
|
|
1128
1435
|
}
|
|
1436
|
+
/**
|
|
1437
|
+
* Ribbon button that saves a legacy sub-view form, with Save, Save and close, and Save and new
|
|
1438
|
+
* options. Does nothing without `form`.
|
|
1439
|
+
*
|
|
1440
|
+
* @deprecated Use {@link ButtonSaveComponent} instead.
|
|
1441
|
+
*/
|
|
1129
1442
|
export declare class ButtonSaveLegacyComponent extends BaseButton {
|
|
1130
1443
|
private readonly errorModal;
|
|
1444
|
+
/** Index of the option in `options` that the main button runs. Defaults to `0` (Save). */
|
|
1131
1445
|
readonly defaultOption: InputSignal<number>;
|
|
1446
|
+
/** Legacy form to save. The button is enabled only while it is in edit mode. */
|
|
1132
1447
|
readonly form: InputSignal<LegacySubViewForm | undefined>;
|
|
1448
|
+
/** Details view to mark as loading while saving. Its New button runs for Save and new. */
|
|
1133
1449
|
readonly tabView: InputSignal<LegacyTabViewDetails | undefined>;
|
|
1134
1450
|
private formService;
|
|
1135
1451
|
private tabService;
|
|
1136
1452
|
constructor();
|
|
1137
1453
|
protected onButtonClick(option?: string): void;
|
|
1454
|
+
/** Stops the spinner, clears the tab view's loading flag and briefly shows the outcome. */
|
|
1138
1455
|
finishLoading(status: 'failure' | 'warning' | 'success'): void;
|
|
1139
1456
|
private setTabViewLoading;
|
|
1140
1457
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonSaveLegacyComponent, never>;
|
|
@@ -1159,9 +1476,17 @@ export declare class ButtonSaveLegacyComponent extends BaseButton {
|
|
|
1159
1476
|
declare namespace button_views_component_d_exports {
|
|
1160
1477
|
export { ButtonViewsLegacyComponent };
|
|
1161
1478
|
}
|
|
1479
|
+
/**
|
|
1480
|
+
* Ribbon dropdown listing `views`; emits `viewChanged` with the chosen one.
|
|
1481
|
+
*
|
|
1482
|
+
* @deprecated Use {@link ButtonViewsComponent} instead.
|
|
1483
|
+
*/
|
|
1162
1484
|
export declare class ButtonViewsLegacyComponent extends BaseButton {
|
|
1485
|
+
/** Views listed in the dropdown. Defaults to `[]`. */
|
|
1163
1486
|
readonly views: InputSignal<IRibbonButtonOption[]>;
|
|
1487
|
+
/** Emits the `id` of the view the user picked, or `undefined` for a click on the main button. */
|
|
1164
1488
|
readonly viewChanged: OutputEmitterRef<string | undefined>;
|
|
1489
|
+
/** Emits `viewChanged` with `option`, as picking a view does. */
|
|
1165
1490
|
clicked(option?: string): void;
|
|
1166
1491
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonViewsLegacyComponent, never>;
|
|
1167
1492
|
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonViewsLegacyComponent, "framework-button-views-legacy", never, {
|
|
@@ -1177,14 +1502,24 @@ export declare class ButtonViewsLegacyComponent extends BaseButton {
|
|
|
1177
1502
|
declare namespace button_open_record_component_d_exports {
|
|
1178
1503
|
export { ButtonOpenRecordLegacyComponent };
|
|
1179
1504
|
}
|
|
1505
|
+
/**
|
|
1506
|
+
* Ribbon button that opens the record selected in the surrounding data grid at `path`/ID. Enabled
|
|
1507
|
+
* only when exactly one row is selected.
|
|
1508
|
+
*
|
|
1509
|
+
* @deprecated Use {@link ButtonOpenRecordComponent} instead.
|
|
1510
|
+
*/
|
|
1180
1511
|
export declare class ButtonOpenRecordLegacyComponent extends BaseButton implements OnInit {
|
|
1512
|
+
/** Not used; kept so existing bindings still compile. */
|
|
1181
1513
|
readonly endpoint: InputSignal<string>;
|
|
1514
|
+
/** Base URL placed before the selected record's ID. Defaults to `''`. */
|
|
1182
1515
|
readonly path: InputSignal<string>;
|
|
1516
|
+
/** Not used; kept so existing bindings still compile. */
|
|
1183
1517
|
readonly tabView: InputSignal<ITabView | undefined>;
|
|
1184
1518
|
protected dataGridDataset: DataGridDataset;
|
|
1185
1519
|
protected readonly selectionCount: WritableSignal<number>;
|
|
1186
1520
|
private tabService;
|
|
1187
1521
|
ngOnInit(): void;
|
|
1522
|
+
/** Opens the selected record when exactly one row is selected, as a click on the button does. */
|
|
1188
1523
|
clicked(): void;
|
|
1189
1524
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonOpenRecordLegacyComponent, never>;
|
|
1190
1525
|
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonOpenRecordLegacyComponent, "framework-button-open-record-legacy", never, {
|
|
@@ -1216,32 +1551,49 @@ export declare class FrameworkButtonsModule {
|
|
|
1216
1551
|
declare namespace confirm_modal_component_d_exports {
|
|
1217
1552
|
export { ConfirmModalComponent };
|
|
1218
1553
|
}
|
|
1554
|
+
/**
|
|
1555
|
+
* Modal that asks the user to confirm an action. Project the confirm button into `[footer]` and
|
|
1556
|
+
* any extra content into the body. The host drives the loading state and shows request errors.
|
|
1557
|
+
*/
|
|
1219
1558
|
export declare class ConfirmModalComponent implements IModal {
|
|
1220
1559
|
private readonly modal;
|
|
1560
|
+
/** Translation key or text of the error shown under the message. Defaults to `''` (no error). */
|
|
1221
1561
|
readonly errorMessage: ModelSignal<string>;
|
|
1562
|
+
/** Whether the confirmed action is running. Defaults to `false`. */
|
|
1222
1563
|
readonly isLoading: ModelSignal<boolean>;
|
|
1564
|
+
/** Translation key of the message. May contain HTML. Defaults to `''` (no message). */
|
|
1223
1565
|
readonly message: InputSignal<string>;
|
|
1566
|
+
/** Font Awesome classes of the icon beside the message. Defaults to `fa-regular fa-circle-question`. */
|
|
1224
1567
|
readonly messageIcon: InputSignal<string>;
|
|
1568
|
+
/** Tailwind text-colour class of the message icon. Defaults to `text-cyan-500`. */
|
|
1225
1569
|
readonly messageIconColor: InputSignal<string>;
|
|
1570
|
+
/** Whether to show the icon beside the message. Defaults to `true`. */
|
|
1226
1571
|
readonly showMessageIcon: InputSignal<boolean>;
|
|
1572
|
+
/** Width of the modal. Defaults to `xl`. */
|
|
1227
1573
|
readonly size: InputSignal<ModalSize>;
|
|
1574
|
+
/** Translation key of the modal's title. Defaults to `''`. */
|
|
1228
1575
|
readonly title: InputSignal<string>;
|
|
1229
1576
|
protected formService: FormService | undefined;
|
|
1230
|
-
/**
|
|
1231
|
-
* Delegates to the inner modal. A signal view query, not @ViewChild: a computed reading a plain
|
|
1232
|
-
* query would never re-run when the query resolves, so the wrapper would answer against an
|
|
1233
|
-
* undefined child for ever.
|
|
1234
|
-
*/
|
|
1577
|
+
/** Whether the modal is open. */
|
|
1235
1578
|
readonly isOpen: Signal<boolean>;
|
|
1236
1579
|
protected get hasErrorMessage(): boolean;
|
|
1237
1580
|
protected get hasMessage(): boolean;
|
|
1238
1581
|
private controlContainer;
|
|
1239
1582
|
private get formGroup();
|
|
1583
|
+
/** Clears any error and marks the action as running. */
|
|
1240
1584
|
beginLoading(): void;
|
|
1585
|
+
/** Removes the error message. */
|
|
1241
1586
|
clearErrorMessage(): void;
|
|
1587
|
+
/** Closes the modal. */
|
|
1242
1588
|
closeModal(): void;
|
|
1589
|
+
/** Marks the action as finished, re-enables the surrounding form, and closes the modal when `closeModal` is `true`. */
|
|
1243
1590
|
finishLoading(closeModal?: boolean): void;
|
|
1591
|
+
/**
|
|
1592
|
+
* Ends loading and shows a failed request. A 400 response is mapped onto the surrounding form's
|
|
1593
|
+
* fields; anything else shows its text, or a default message, in the modal.
|
|
1594
|
+
*/
|
|
1244
1595
|
setErrorMessage(httpErrorResponse: HttpErrorResponse): void;
|
|
1596
|
+
/** Opens or closes the modal, resetting the surrounding form and any error. Does nothing while the form is loading. */
|
|
1245
1597
|
toggleModal(): void;
|
|
1246
1598
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmModalComponent, never>;
|
|
1247
1599
|
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmModalComponent, "framework-confirm-modal", never, {
|
|
@@ -1293,20 +1645,28 @@ export declare class ConfirmModalComponent implements IModal {
|
|
|
1293
1645
|
declare namespace error_modal_component_d_exports {
|
|
1294
1646
|
export { ErrorModalComponent };
|
|
1295
1647
|
}
|
|
1648
|
+
/** Modal that shows an error message with a title and subtitle. Open it with `showModal()`. */
|
|
1296
1649
|
export declare class ErrorModalComponent {
|
|
1297
1650
|
private readonly modal;
|
|
1651
|
+
/** Translation key or text of the error. `showModal()` sets it. Defaults to `''`. */
|
|
1298
1652
|
readonly errorMessage: ModelSignal<string>;
|
|
1653
|
+
/** Width of the modal. Defaults to `xl`. */
|
|
1299
1654
|
readonly size: InputSignal<ModalSize>;
|
|
1655
|
+
/** Translation key shown under the error. Defaults to `Modal-Failed-Administrator`; empty hides it. */
|
|
1300
1656
|
readonly subtitle: ModelSignal<string>;
|
|
1657
|
+
/** Translation key of the modal's title. Defaults to `Modal-Failed-Title`. */
|
|
1301
1658
|
readonly title: ModelSignal<string>;
|
|
1659
|
+
/** Emits when the modal closes. */
|
|
1302
1660
|
readonly closed: OutputEmitterRef<void>;
|
|
1303
|
-
/**
|
|
1304
|
-
* Delegates to the inner modal. A signal view query, not @ViewChild: a computed reading a plain
|
|
1305
|
-
* query would never re-run when the query resolves, so the wrapper would answer against an
|
|
1306
|
-
* undefined child for ever.
|
|
1307
|
-
*/
|
|
1661
|
+
/** Whether the modal is open. */
|
|
1308
1662
|
readonly isOpen: Signal<boolean>;
|
|
1663
|
+
/** Closes the modal. */
|
|
1309
1664
|
closeModal(): void;
|
|
1665
|
+
/**
|
|
1666
|
+
* Shows `error` in the modal. Accepts a message or translation key, or an HTTP error whose body is
|
|
1667
|
+
* text; anything else shows a default message. Toggles the modal, so a call while it is open
|
|
1668
|
+
* closes it.
|
|
1669
|
+
*/
|
|
1310
1670
|
showModal(error: string | HttpErrorResponse): void;
|
|
1311
1671
|
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorModalComponent, never>;
|
|
1312
1672
|
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorModalComponent, "framework-error-modal", never, {
|
|
@@ -1348,6 +1708,10 @@ export declare class FrameworkModalsModule {
|
|
|
1348
1708
|
declare namespace default_tab_view_component_d_exports {
|
|
1349
1709
|
export { DefaultTabViewComponent };
|
|
1350
1710
|
}
|
|
1711
|
+
/**
|
|
1712
|
+
* Route shell for a list screen in a tab. Shows the ribbon published by the routed view above its
|
|
1713
|
+
* router outlet, and keeps one ribbon per sub-view.
|
|
1714
|
+
*/
|
|
1351
1715
|
export declare class DefaultTabViewComponent implements OnDestroy, OnInit {
|
|
1352
1716
|
protected destroy$: Subject<boolean>;
|
|
1353
1717
|
protected readonly ribbonTemplate: WritableSignal<TemplateRef<any> | undefined>;
|
|
@@ -1390,6 +1754,10 @@ export declare class DefaultTabViewComponent implements OnDestroy, OnInit {
|
|
|
1390
1754
|
declare namespace default_details_tab_view_component_d_exports {
|
|
1391
1755
|
export { DefaultDetailsTabViewComponent };
|
|
1392
1756
|
}
|
|
1757
|
+
/**
|
|
1758
|
+
* Route shell for a record screen in a tab. Provides the record's data provider from the route,
|
|
1759
|
+
* shows the record title and a views button, and opens an error modal when the record fails to load.
|
|
1760
|
+
*/
|
|
1393
1761
|
export declare class DefaultDetailsTabViewComponent extends DefaultTabViewComponent implements OnDestroy, OnInit {
|
|
1394
1762
|
private readonly errorModal;
|
|
1395
1763
|
protected readonly containerIcon: WritableSignal<string | undefined>;
|
|
@@ -1410,6 +1778,7 @@ export declare class DefaultDetailsTabViewComponent extends DefaultTabViewCompon
|
|
|
1410
1778
|
declare namespace tab_breadcrumbs_component_d_exports {
|
|
1411
1779
|
export { TabBreadcrumbsComponent };
|
|
1412
1780
|
}
|
|
1781
|
+
/** Breadcrumb trail of the active tab's history. Clicking an entry goes back to it. */
|
|
1413
1782
|
export declare class TabBreadcrumbsComponent {
|
|
1414
1783
|
private tabService;
|
|
1415
1784
|
/**
|
|
@@ -1426,6 +1795,10 @@ export declare class TabBreadcrumbsComponent {
|
|
|
1426
1795
|
declare namespace tabs_component_d_exports {
|
|
1427
1796
|
export { TabsComponent };
|
|
1428
1797
|
}
|
|
1798
|
+
/**
|
|
1799
|
+
* The app's tab strip. Lists the open tabs with their breadcrumbs, scrolls when they overflow, and
|
|
1800
|
+
* opens a tab for the list or record route the app starts on.
|
|
1801
|
+
*/
|
|
1429
1802
|
export declare class TabsComponent implements AfterViewInit, OnDestroy, OnInit {
|
|
1430
1803
|
private ngZone;
|
|
1431
1804
|
private router;
|