@elderbyte/ngx-starter 19.2.0 → 19.2.1
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/fesm2022/elderbyte-ngx-starter.mjs +55 -68
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/selection/selection-model.d.ts +0 -3
- package/lib/components/data-view/grid/elder-tile/elder-tile.component.d.ts +1 -0
- package/lib/components/data-view/master-detail/elder-master-activation.directive.d.ts +9 -7
- package/lib/components/data-view/master-detail/elder-master-detail.module.d.ts +2 -2
- package/lib/components/data-view/master-detail/{elder-master-detail.component.d.ts → master-detail/elder-master-detail.component.d.ts} +8 -15
- package/package.json +1 -1
- /package/src/lib/components/data-view/master-detail/{elder-master-detail.component.scss → master-detail/elder-master-detail.component.scss} +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { Signal } from '@angular/core';
|
|
3
2
|
export type KeyGetterFn<T> = (item: T) => any;
|
|
4
3
|
/**
|
|
5
4
|
* Provides a model of a selection.
|
|
@@ -17,7 +16,6 @@ export declare class SelectionModel<T> {
|
|
|
17
16
|
private _multiple;
|
|
18
17
|
private readonly _selectionMap;
|
|
19
18
|
private readonly _selection;
|
|
20
|
-
private readonly _selectionSig;
|
|
21
19
|
private _keyGetterFn;
|
|
22
20
|
private _selectableEvaluatorFn;
|
|
23
21
|
static readonly FallbackKeyGetterFn: (a: any) => any;
|
|
@@ -42,7 +40,6 @@ export declare class SelectionModel<T> {
|
|
|
42
40
|
**************************************************************************/
|
|
43
41
|
get changed(): Observable<T[]>;
|
|
44
42
|
get selection(): Observable<T[]>;
|
|
45
|
-
get selectionSig(): Signal<T[]>;
|
|
46
43
|
get selectionSnapshot(): T[];
|
|
47
44
|
set selectableEvaluatorFn(fn: (item: T) => boolean);
|
|
48
45
|
set keyGetterFn(fn: KeyGetterFn<T>);
|
|
@@ -14,6 +14,7 @@ export declare class ElderTileComponent<T = any> {
|
|
|
14
14
|
readonly value: import("@angular/core").InputSignal<T>;
|
|
15
15
|
readonly selectionEnabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
16
16
|
readonly selectionModel: import("@angular/core").InputSignal<SelectionModel<T>>;
|
|
17
|
+
readonly selection: Signal<T[]>;
|
|
17
18
|
readonly interactionMode: import("@angular/core").InputSignal<ElderDataViewInteractionMode>;
|
|
18
19
|
readonly outlined: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
19
20
|
private readonly logger;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
2
|
import { ElderMasterDetailService } from './elder-master-detail.service';
|
|
3
3
|
import { ElderToastService } from '../../toasts/elder-toast.service';
|
|
4
|
-
import {
|
|
4
|
+
import { DataViewActivationController } from '../common/activation/data-view-activation-controller.service';
|
|
5
|
+
import { ActivationModel } from '../common/activation/model/activation-model';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class ElderMasterActivationDirective<T> implements OnInit
|
|
7
|
+
export declare class ElderMasterActivationDirective<T> implements OnInit {
|
|
8
|
+
private destroyRef;
|
|
7
9
|
private toastService;
|
|
8
|
-
private
|
|
10
|
+
private activationModel;
|
|
11
|
+
private activationController;
|
|
9
12
|
private masterDetailService;
|
|
10
13
|
/***************************************************************************
|
|
11
14
|
* *
|
|
12
15
|
* Fields *
|
|
13
16
|
* *
|
|
14
17
|
**************************************************************************/
|
|
15
|
-
private readonly destroy$;
|
|
16
18
|
private readonly log;
|
|
17
19
|
/***************************************************************************
|
|
18
20
|
* *
|
|
19
21
|
* Constructor *
|
|
20
22
|
* *
|
|
21
23
|
**************************************************************************/
|
|
22
|
-
constructor(toastService: ElderToastService,
|
|
24
|
+
constructor(destroyRef: DestroyRef, toastService: ElderToastService, activationModel: ActivationModel<T>, activationController: DataViewActivationController<T>, masterDetailService: ElderMasterDetailService<T>);
|
|
23
25
|
/***************************************************************************
|
|
24
26
|
* *
|
|
25
27
|
* Life Cycle *
|
|
26
28
|
* *
|
|
27
29
|
**************************************************************************/
|
|
28
|
-
ngOnDestroy(): void;
|
|
29
30
|
ngOnInit(): void;
|
|
30
31
|
/***************************************************************************
|
|
31
32
|
* *
|
|
@@ -33,6 +34,7 @@ export declare class ElderMasterActivationDirective<T> implements OnInit, OnDest
|
|
|
33
34
|
* *
|
|
34
35
|
**************************************************************************/
|
|
35
36
|
private onModeChange;
|
|
37
|
+
private activationOptions;
|
|
36
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderMasterActivationDirective<any>, never>;
|
|
37
39
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderMasterActivationDirective<any>, "[elderMasterActivation]", never, {}, {}, never, never, true, never>;
|
|
38
40
|
}
|
|
@@ -16,7 +16,7 @@ import * as i14 from "../../forms/directives/elder-forms-directives.module";
|
|
|
16
16
|
import * as i15 from "../../navigation/toolbar/elder-toolbar.module";
|
|
17
17
|
import * as i16 from "@angular/material/toolbar";
|
|
18
18
|
import * as i17 from "@angular/material/slide-toggle";
|
|
19
|
-
import * as i18 from "./elder-master-detail.component";
|
|
19
|
+
import * as i18 from "./master-detail/elder-master-detail.component";
|
|
20
20
|
import * as i19 from "./elder-detail.directive";
|
|
21
21
|
import * as i20 from "./elder-master.directive";
|
|
22
22
|
import * as i21 from "./elder-master-activation.directive";
|
|
@@ -28,7 +28,7 @@ export * from './elder-master-detail-mode';
|
|
|
28
28
|
export * from './elder-master-detail.service';
|
|
29
29
|
export * from './master-detail-activation-event';
|
|
30
30
|
export * from './elder-detail-dialog/elder-detail-dialog.component';
|
|
31
|
-
export * from './elder-master-detail.component';
|
|
31
|
+
export * from './master-detail/elder-master-detail.component';
|
|
32
32
|
export declare class ElderMasterDetailModule {
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderMasterDetailModule, never>;
|
|
34
34
|
static ɵmod: i0.ɵɵNgModuleDeclaration<ElderMasterDetailModule, never, [typeof i1.CommonModule, typeof i2.MatIconModule, typeof i3.MatTableModule, typeof i4.ElderTableModule, typeof i5.ElderMeasuresModule, typeof i6.MatSortModule, typeof i7.FormsModule, typeof i8.MatInputModule, typeof i9.ElderCardModule, typeof i10.MatButtonModule, typeof i11.MatBadgeModule, typeof i12.MatTooltipModule, typeof i13.ElderSelectModule, typeof i14.ElderFormsDirectivesModule, typeof i15.ElderToolbarModule, typeof i16.MatToolbarModule, typeof i17.MatSlideToggleModule, typeof i18.ElderMasterDetailComponent, typeof i19.ElderDetailDirective, typeof i20.ElderMasterDirective, typeof i21.ElderMasterActivationDirective, typeof i22.ElderDetailDialogComponent], [typeof i18.ElderMasterDetailComponent, typeof i19.ElderDetailDirective, typeof i20.ElderMasterDirective, typeof i21.ElderMasterActivationDirective, typeof i22.ElderDetailDialogComponent]>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ElderMasterDetailService } from '
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
1
|
+
import { Signal, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { ElderMasterDetailService } from '../elder-master-detail.service';
|
|
4
3
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
5
|
-
import { ElderDetailDialogComponent } from '
|
|
6
|
-
import { ElderMasterDetailMode } from '
|
|
4
|
+
import { ElderDetailDialogComponent } from '../elder-detail-dialog/elder-detail-dialog.component';
|
|
5
|
+
import { ElderMasterDetailMode } from '../elder-master-detail-mode';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class ElderMasterDetailComponent<T>
|
|
7
|
+
export declare class ElderMasterDetailComponent<T> {
|
|
9
8
|
private masterDetailService;
|
|
10
9
|
dialog: MatDialog;
|
|
11
10
|
private viewContainerRef;
|
|
@@ -15,24 +14,17 @@ export declare class ElderMasterDetailComponent<T> implements OnDestroy {
|
|
|
15
14
|
* *
|
|
16
15
|
**************************************************************************/
|
|
17
16
|
private readonly log;
|
|
18
|
-
private readonly destroy$;
|
|
19
17
|
master: TemplateRef<any>;
|
|
20
18
|
detail: TemplateRef<any>;
|
|
21
|
-
readonly mode$: BehaviorSubject<ElderMasterDetailMode>;
|
|
22
19
|
dialogRef: MatDialogRef<ElderDetailDialogComponent>;
|
|
23
|
-
currentActive
|
|
20
|
+
readonly currentActive: Signal<T>;
|
|
21
|
+
readonly modeSig: Signal<ElderMasterDetailMode>;
|
|
24
22
|
/***************************************************************************
|
|
25
23
|
* *
|
|
26
24
|
* Constructor *
|
|
27
25
|
* *
|
|
28
26
|
**************************************************************************/
|
|
29
27
|
constructor(masterDetailService: ElderMasterDetailService<T>, dialog: MatDialog, viewContainerRef: ViewContainerRef);
|
|
30
|
-
/***************************************************************************
|
|
31
|
-
* *
|
|
32
|
-
* Life Cycle *
|
|
33
|
-
* *
|
|
34
|
-
**************************************************************************/
|
|
35
|
-
ngOnDestroy(): void;
|
|
36
28
|
/***************************************************************************
|
|
37
29
|
* *
|
|
38
30
|
* Properties *
|
|
@@ -46,6 +38,7 @@ export declare class ElderMasterDetailComponent<T> implements OnDestroy {
|
|
|
46
38
|
* *
|
|
47
39
|
**************************************************************************/
|
|
48
40
|
private openDetailDialog;
|
|
41
|
+
private onCurrentItemChange;
|
|
49
42
|
private closeDialog;
|
|
50
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderMasterDetailComponent<any>, never>;
|
|
51
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<ElderMasterDetailComponent<any>, "elder-master-detail", never, { "mode": { "alias": "mode"; "required": false; }; }, {}, ["master", "detail"], never, true, never>;
|
package/package.json
CHANGED