@elderbyte/ngx-starter 15.19.1 → 15.19.3
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/esm2020/lib/components/data-view/master-detail/elder-detail-dialog/elder-detail-dialog.component.mjs +9 -7
- package/esm2020/lib/components/data-view/master-detail/elder-detail.directive.mjs +18 -7
- package/esm2020/lib/components/data-view/master-detail/elder-master-activation.directive.mjs +4 -5
- package/esm2020/lib/components/data-view/master-detail/elder-master-detail-mode.mjs +2 -6
- package/esm2020/lib/components/data-view/master-detail/elder-master-detail.component.mjs +14 -8
- package/esm2020/lib/components/data-view/master-detail/elder-master-detail.module.mjs +2 -2
- package/esm2020/lib/components/data-view/master-detail/elder-master-detail.service.mjs +28 -13
- package/esm2020/lib/components/data-view/master-detail/master-detail-activation-event.mjs +12 -0
- package/esm2020/lib/components/data-view/table/activation/elder-activation-context.mjs +1 -1
- package/esm2020/lib/components/data-view/table/activation/elder-table-activation.directive.mjs +7 -7
- package/esm2020/lib/components/data-view/table/activation/item-activation-event.mjs +8 -0
- package/esm2020/lib/components/data-view/table/activation/public_api.mjs +2 -2
- package/esm2020/lib/components/data-view/table/elder-table-row.directive.mjs +4 -2
- package/fesm2015/elderbyte-ngx-starter.mjs +77 -48
- package/fesm2015/elderbyte-ngx-starter.mjs.map +1 -1
- package/fesm2020/elderbyte-ngx-starter.mjs +77 -47
- package/fesm2020/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/components/data-view/master-detail/elder-detail.directive.d.ts +9 -2
- package/lib/components/data-view/master-detail/elder-master-detail-mode.d.ts +1 -4
- package/lib/components/data-view/master-detail/elder-master-detail.component.d.ts +1 -1
- package/lib/components/data-view/master-detail/elder-master-detail.module.d.ts +1 -1
- package/lib/components/data-view/master-detail/elder-master-detail.service.d.ts +21 -5
- package/lib/components/data-view/master-detail/master-detail-activation-event.d.ts +8 -0
- package/lib/components/data-view/table/activation/elder-activation-context.d.ts +2 -2
- package/lib/components/data-view/table/activation/elder-table-activation.directive.d.ts +5 -5
- package/lib/components/data-view/table/activation/{active-item-event.d.ts → item-activation-event.d.ts} +2 -3
- package/lib/components/data-view/table/activation/public_api.d.ts +1 -1
- package/package.json +1 -1
- package/esm2020/lib/components/data-view/master-detail/elder-master-detail-activation-event.mjs +0 -12
- package/esm2020/lib/components/data-view/table/activation/active-item-event.mjs +0 -9
- package/lib/components/data-view/master-detail/elder-master-detail-activation-event.d.ts +0 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TemplateRef, ViewContainerRef } from '@angular/core';
|
|
1
|
+
import { OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { ElderMasterDetailService } from './elder-master-detail.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ElderDetailDirective<T> {
|
|
4
|
+
export declare class ElderDetailDirective<T> implements OnDestroy {
|
|
5
5
|
private masterDetailService;
|
|
6
6
|
templateRef: TemplateRef<any>;
|
|
7
7
|
viewContainer: ViewContainerRef;
|
|
@@ -12,12 +12,19 @@ export declare class ElderDetailDirective<T> {
|
|
|
12
12
|
**************************************************************************/
|
|
13
13
|
private readonly log;
|
|
14
14
|
private readonly activeDetailItem$;
|
|
15
|
+
private readonly destroy$;
|
|
15
16
|
/***************************************************************************
|
|
16
17
|
* *
|
|
17
18
|
* Constructor *
|
|
18
19
|
* *
|
|
19
20
|
**************************************************************************/
|
|
20
21
|
constructor(masterDetailService: ElderMasterDetailService<T>, templateRef: TemplateRef<any>, viewContainer: ViewContainerRef);
|
|
22
|
+
/***************************************************************************
|
|
23
|
+
* *
|
|
24
|
+
* Life Cycle *
|
|
25
|
+
* *
|
|
26
|
+
**************************************************************************/
|
|
27
|
+
ngOnDestroy(): void;
|
|
21
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderDetailDirective<any>, never>;
|
|
22
29
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderDetailDirective<any>, "[elderDataDetail]", never, {}, {}, never, never, false, never>;
|
|
23
30
|
}
|
|
@@ -19,8 +19,8 @@ export declare class ElderMasterDetailComponent<T> implements OnDestroy {
|
|
|
19
19
|
master: TemplateRef<any>;
|
|
20
20
|
detail: TemplateRef<any>;
|
|
21
21
|
readonly mode$: BehaviorSubject<ElderMasterDetailMode>;
|
|
22
|
-
ElderMasterDetailMode: typeof ElderMasterDetailMode;
|
|
23
22
|
dialogRef: MatDialogRef<ElderDetailDialogComponent>;
|
|
23
|
+
currentActive$: BehaviorSubject<T>;
|
|
24
24
|
/***************************************************************************
|
|
25
25
|
* *
|
|
26
26
|
* Constructor *
|
|
@@ -26,7 +26,7 @@ export * from './elder-detail.directive';
|
|
|
26
26
|
export * from './elder-master-activation.directive';
|
|
27
27
|
export * from './elder-master-detail-mode';
|
|
28
28
|
export * from './elder-master-detail.service';
|
|
29
|
-
export * from './
|
|
29
|
+
export * from './master-detail-activation-event';
|
|
30
30
|
export * from './elder-detail-dialog/elder-detail-dialog.component';
|
|
31
31
|
export * from './elder-master-detail.component';
|
|
32
32
|
export declare class ElderMasterDetailModule {
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
3
3
|
import { ElderMasterDetailMode } from './elder-master-detail-mode';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { MasterDetailActivationEvent } from './master-detail-activation-event';
|
|
5
|
+
import { ActivationEventSource } from '../table/activation/activation-event-source';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
export interface IMasterDetailActivationOptions {
|
|
8
|
+
source: ActivationEventSource;
|
|
9
|
+
creating?: boolean;
|
|
10
|
+
}
|
|
7
11
|
export declare class ElderMasterDetailService<T> implements OnDestroy {
|
|
8
12
|
/***************************************************************************
|
|
9
13
|
* *
|
|
@@ -16,7 +20,8 @@ export declare class ElderMasterDetailService<T> implements OnDestroy {
|
|
|
16
20
|
private readonly _itemActivationRequest$;
|
|
17
21
|
private readonly _activeItem$;
|
|
18
22
|
private readonly _creatingItem$;
|
|
19
|
-
private readonly
|
|
23
|
+
private readonly _currentItem$;
|
|
24
|
+
private readonly _currentItemChange;
|
|
20
25
|
/***************************************************************************
|
|
21
26
|
* *
|
|
22
27
|
* Constructor *
|
|
@@ -34,11 +39,22 @@ export declare class ElderMasterDetailService<T> implements OnDestroy {
|
|
|
34
39
|
* Properties *
|
|
35
40
|
* *
|
|
36
41
|
**************************************************************************/
|
|
37
|
-
|
|
42
|
+
/**
|
|
43
|
+
* The currently active or creating item.
|
|
44
|
+
*/
|
|
45
|
+
get currentItem$(): Observable<T>;
|
|
46
|
+
get currentItemSnapshot(): T;
|
|
47
|
+
get currentItemChange(): Observable<MasterDetailActivationEvent<T>>;
|
|
38
48
|
get itemActivationRequested(): Observable<T>;
|
|
39
|
-
onItemActivated(
|
|
49
|
+
onItemActivated(item: T, options: IMasterDetailActivationOptions): void;
|
|
40
50
|
requestItemActivation(item: T): void;
|
|
41
51
|
activateCreatingItem(item: T): void;
|
|
52
|
+
/***************************************************************************
|
|
53
|
+
* *
|
|
54
|
+
* Private methods *
|
|
55
|
+
* *
|
|
56
|
+
**************************************************************************/
|
|
57
|
+
private asEvent;
|
|
42
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderMasterDetailService<any>, never>;
|
|
43
59
|
static ɵprov: i0.ɵɵInjectableDeclaration<ElderMasterDetailService<any>>;
|
|
44
60
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ActivationEventSource } from '../table/activation/activation-event-source';
|
|
2
|
+
export declare class MasterDetailActivationEvent<T> {
|
|
3
|
+
readonly item: T;
|
|
4
|
+
readonly creating: boolean;
|
|
5
|
+
readonly source: ActivationEventSource;
|
|
6
|
+
readonly deactivate: boolean;
|
|
7
|
+
constructor(item: T, creating: boolean, source: ActivationEventSource);
|
|
8
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { ItemActivationEvent } from './item-activation-event';
|
|
3
3
|
import { ItemActivationOptions } from './item-activation-options';
|
|
4
4
|
export interface ElderActivationContext<T> {
|
|
5
5
|
activate(item: T, options: ItemActivationOptions): void;
|
|
6
|
-
get activeItemEventChange(): Observable<
|
|
6
|
+
get activeItemEventChange(): Observable<ItemActivationEvent<T>>;
|
|
7
7
|
}
|
|
@@ -4,7 +4,7 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
4
4
|
import { ElderTableComponent } from '../elder-table/elder-table.component';
|
|
5
5
|
import { ElderTableActivationOptions } from './elder-table-activation-options';
|
|
6
6
|
import { ItemActivationOptions } from './item-activation-options';
|
|
7
|
-
import {
|
|
7
|
+
import { ItemActivationEvent } from './item-activation-event';
|
|
8
8
|
import { ElderActivationContext } from './elder-activation-context';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class ElderTableActivationDirective<T> implements ElderActivationContext<T>, AfterViewInit, OnDestroy {
|
|
@@ -16,11 +16,11 @@ export declare class ElderTableActivationDirective<T> implements ElderActivation
|
|
|
16
16
|
**************************************************************************/
|
|
17
17
|
private readonly logger;
|
|
18
18
|
private readonly destroy$;
|
|
19
|
-
readonly
|
|
20
|
-
private readonly activeItemEvent$;
|
|
21
|
-
activationOptions: ElderTableActivationOptions;
|
|
19
|
+
private readonly itemActivationEventSubject;
|
|
22
20
|
private _data;
|
|
21
|
+
readonly activeItem$: BehaviorSubject<T>;
|
|
23
22
|
readonly rows$: BehaviorSubject<ElderTableRowDirective<T>[]>;
|
|
23
|
+
activationOptions: ElderTableActivationOptions;
|
|
24
24
|
/***************************************************************************
|
|
25
25
|
* *
|
|
26
26
|
* Constructor *
|
|
@@ -45,7 +45,7 @@ export declare class ElderTableActivationDirective<T> implements ElderActivation
|
|
|
45
45
|
* Properties *
|
|
46
46
|
* *
|
|
47
47
|
**************************************************************************/
|
|
48
|
-
get activeItemEventChange(): Observable<
|
|
48
|
+
get activeItemEventChange(): Observable<ItemActivationEvent<T>>;
|
|
49
49
|
get activeItemChange(): Observable<T>;
|
|
50
50
|
get activeItem(): T;
|
|
51
51
|
set activeItem(item: T);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ActivationEventSource } from './activation-event-source';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class ItemActivationEvent<T> {
|
|
3
3
|
readonly item: T;
|
|
4
4
|
readonly source: ActivationEventSource;
|
|
5
5
|
readonly focus: boolean;
|
|
6
|
-
|
|
7
|
-
constructor(item: T, source: ActivationEventSource, focus: boolean, creating: boolean);
|
|
6
|
+
constructor(item: T, source: ActivationEventSource, focus: boolean);
|
|
8
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './activation-event-source';
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './item-activation-event';
|
|
3
3
|
export * from './elder-activation-context';
|
|
4
4
|
export * from './elder-delete-active.directive';
|
|
5
5
|
export * from './elder-table-activation.directive';
|
package/package.json
CHANGED
package/esm2020/lib/components/data-view/master-detail/elder-master-detail-activation-event.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export class ElderMasterDetailActivationEvent {
|
|
2
|
-
constructor(item, creating, source) {
|
|
3
|
-
this.item = item;
|
|
4
|
-
this.creating = creating;
|
|
5
|
-
this.source = source;
|
|
6
|
-
this.deactivate = false;
|
|
7
|
-
if (item == null) {
|
|
8
|
-
this.deactivate = true;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxkZXItbWFzdGVyLWRldGFpbC1hY3RpdmF0aW9uLWV2ZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZWxkZXJieXRlL25neC1zdGFydGVyL3NyYy9saWIvY29tcG9uZW50cy9kYXRhLXZpZXcvbWFzdGVyLWRldGFpbC9lbGRlci1tYXN0ZXItZGV0YWlsLWFjdGl2YXRpb24tZXZlbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxPQUFPLGdDQUFnQztJQUczQyxZQUNTLElBQU8sRUFDUCxRQUFpQixFQUNqQixNQUE2QjtRQUY3QixTQUFJLEdBQUosSUFBSSxDQUFHO1FBQ1AsYUFBUSxHQUFSLFFBQVEsQ0FBUztRQUNqQixXQUFNLEdBQU4sTUFBTSxDQUF1QjtRQUovQixlQUFVLEdBQVksS0FBSyxDQUFDO1FBTWpDLElBQUksSUFBSSxJQUFJLElBQUksRUFBRTtZQUNoQixJQUFJLENBQUMsVUFBVSxHQUFHLElBQUksQ0FBQztTQUN4QjtJQUNMLENBQUM7Q0FDQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7QWN0aXZhdGlvbkV2ZW50U291cmNlfSBmcm9tICcuLi90YWJsZS9hY3RpdmF0aW9uL2FjdGl2YXRpb24tZXZlbnQtc291cmNlJztcblxuZXhwb3J0IGNsYXNzIEVsZGVyTWFzdGVyRGV0YWlsQWN0aXZhdGlvbkV2ZW50PFQ+IHtcblxuICBwdWJsaWMgZGVhY3RpdmF0ZTogYm9vbGVhbiA9IGZhbHNlO1xuICBjb25zdHJ1Y3RvcihcbiAgICBwdWJsaWMgaXRlbTogVCxcbiAgICBwdWJsaWMgY3JlYXRpbmc6IGJvb2xlYW4sXG4gICAgcHVibGljIHNvdXJjZTogQWN0aXZhdGlvbkV2ZW50U291cmNlXG4pIHtcbiAgICBpZiAoaXRlbSA9PSBudWxsKSB7XG4gICAgICB0aGlzLmRlYWN0aXZhdGUgPSB0cnVlO1xuICAgIH1cbn1cbn1cbiJdfQ==
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export class ActiveItemEvent {
|
|
2
|
-
constructor(item, source, focus, creating) {
|
|
3
|
-
this.item = item;
|
|
4
|
-
this.source = source;
|
|
5
|
-
this.focus = focus;
|
|
6
|
-
this.creating = creating;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZlLWl0ZW0tZXZlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbGRlcmJ5dGUvbmd4LXN0YXJ0ZXIvc3JjL2xpYi9jb21wb25lbnRzL2RhdGEtdmlldy90YWJsZS9hY3RpdmF0aW9uL2FjdGl2ZS1pdGVtLWV2ZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sT0FBTyxlQUFlO0lBQzFCLFlBQ2tCLElBQU8sRUFDUCxNQUE2QixFQUM3QixLQUFjLEVBQ2QsUUFBaUI7UUFIakIsU0FBSSxHQUFKLElBQUksQ0FBRztRQUNQLFdBQU0sR0FBTixNQUFNLENBQXVCO1FBQzdCLFVBQUssR0FBTCxLQUFLLENBQVM7UUFDZCxhQUFRLEdBQVIsUUFBUSxDQUFTO0lBQ2hDLENBQUM7Q0FDTCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7QWN0aXZhdGlvbkV2ZW50U291cmNlfSBmcm9tICcuL2FjdGl2YXRpb24tZXZlbnQtc291cmNlJztcblxuZXhwb3J0IGNsYXNzIEFjdGl2ZUl0ZW1FdmVudDxUPiB7XG4gIGNvbnN0cnVjdG9yKFxuICAgIHB1YmxpYyByZWFkb25seSBpdGVtOiBULFxuICAgIHB1YmxpYyByZWFkb25seSBzb3VyY2U6IEFjdGl2YXRpb25FdmVudFNvdXJjZSxcbiAgICBwdWJsaWMgcmVhZG9ubHkgZm9jdXM6IGJvb2xlYW4sXG4gICAgcHVibGljIHJlYWRvbmx5IGNyZWF0aW5nOiBib29sZWFuXG4gICkge31cbn1cblxuXG4iXX0=
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ActivationEventSource } from '../table/activation/activation-event-source';
|
|
2
|
-
export declare class ElderMasterDetailActivationEvent<T> {
|
|
3
|
-
item: T;
|
|
4
|
-
creating: boolean;
|
|
5
|
-
source: ActivationEventSource;
|
|
6
|
-
deactivate: boolean;
|
|
7
|
-
constructor(item: T, creating: boolean, source: ActivationEventSource);
|
|
8
|
-
}
|