@anglr/common 19.1.0-beta.20240513181744 → 19.1.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/es2022/src/modules/debugData/components/debugData/debugData.component.js +8 -42
- package/es2022/src/modules/debugData/components/debugData/debugData.component.js.map +1 -1
- package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +4 -19
- package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js.map +1 -1
- package/package.json +1 -1
- package/src/modules/debugData/components/debugData/debugData.component.d.ts +3 -23
- package/src/modules/debugData/components/debugData/debugData.component.d.ts.map +1 -1
- package/src/modules/debugData/components/debugData/debugData.component.html +1 -1
- package/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.d.ts +2 -10
- package/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.d.ts.map +1 -1
- package/version.bak +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy,
|
|
1
|
+
import { Component, ChangeDetectionStrategy, ElementRef, effect } from '@angular/core';
|
|
2
2
|
import { DebugDataEnabledService } from '../../services/debugDataEnabled/debugDataEnabled.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "../../services/debugDataEnabled/debugDataEnabled.service";
|
|
@@ -11,64 +11,30 @@ const ENABLED = 'enabled';
|
|
|
11
11
|
*/
|
|
12
12
|
export class DebugDataComponent {
|
|
13
13
|
debugDataEnabledSvc;
|
|
14
|
-
changeDetector;
|
|
15
14
|
element;
|
|
16
|
-
//######################### protected fields #########################
|
|
17
|
-
/**
|
|
18
|
-
* Subscription for changes of debug data enabled
|
|
19
|
-
*/
|
|
20
|
-
debugDataEnabledChangeSubscription;
|
|
21
|
-
//######################### protected properties - template bindings #########################
|
|
22
|
-
/**
|
|
23
|
-
* Indication whether is debug data enabled
|
|
24
|
-
*
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
27
|
-
enabled = signal(false);
|
|
28
15
|
//######################### constructor #########################
|
|
29
|
-
constructor(debugDataEnabledSvc,
|
|
16
|
+
constructor(debugDataEnabledSvc, element) {
|
|
30
17
|
this.debugDataEnabledSvc = debugDataEnabledSvc;
|
|
31
|
-
this.changeDetector = changeDetector;
|
|
32
18
|
this.element = element;
|
|
33
|
-
|
|
34
|
-
//######################### public methods - implementation of OnInit #########################
|
|
35
|
-
/**
|
|
36
|
-
* Initialize component
|
|
37
|
-
*/
|
|
38
|
-
ngOnInit() {
|
|
39
|
-
this.enabled.set(this.debugDataEnabledSvc.enabled);
|
|
40
|
-
this.setEnabledCssClass();
|
|
41
|
-
this.debugDataEnabledChangeSubscription = this.debugDataEnabledSvc.enabledChange.subscribe(() => {
|
|
42
|
-
this.enabled.set(this.debugDataEnabledSvc.enabled);
|
|
43
|
-
this.setEnabledCssClass();
|
|
44
|
-
this.changeDetector.detectChanges();
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
//######################### public methods - implementation of OnDestroy #########################
|
|
48
|
-
/**
|
|
49
|
-
* Called when component is destroyed
|
|
50
|
-
*/
|
|
51
|
-
ngOnDestroy() {
|
|
52
|
-
this.debugDataEnabledChangeSubscription?.unsubscribe();
|
|
53
|
-
this.debugDataEnabledChangeSubscription = null;
|
|
19
|
+
effect(() => this.setEnabledCssClass());
|
|
54
20
|
}
|
|
55
21
|
//######################### protected methods #########################
|
|
56
22
|
/**
|
|
57
23
|
* Sets enabled css class according enabled state
|
|
58
24
|
*/
|
|
59
25
|
setEnabledCssClass() {
|
|
60
|
-
if (this.enabled()) {
|
|
26
|
+
if (this.debugDataEnabledSvc.enabled()) {
|
|
61
27
|
this.element.nativeElement.classList.add(ENABLED);
|
|
62
28
|
}
|
|
63
29
|
else {
|
|
64
30
|
this.element.nativeElement.classList.remove(ENABLED);
|
|
65
31
|
}
|
|
66
32
|
}
|
|
67
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataComponent, deps: [{ token: i1.DebugDataEnabledService }, { token: i0.
|
|
68
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.5", type: DebugDataComponent, isStandalone: true, selector: "debug-data", ngImport: i0, template: "@if(enabled())\r\n{\r\n <ng-content/>\r\n}", styles: [":host\r\n{\r\n font-weight: normal;\r\n font-style: italic;\r\n text-shadow: 0 0 1px;\r\n display: none;\r\n color: var(--common-debugData-foreground);\r\n}\r\n\r\n:host(.clickable)\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n:host(.enabled)\r\n{\r\n display: block;\r\n}"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataComponent, deps: [{ token: i1.DebugDataEnabledService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
34
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.5", type: DebugDataComponent, isStandalone: true, selector: "debug-data", ngImport: i0, template: "@if(debugDataEnabledSvc.enabled())\r\n{\r\n <ng-content/>\r\n}", styles: [":host\r\n{\r\n font-weight: normal;\r\n font-style: italic;\r\n text-shadow: 0 0 1px;\r\n display: none;\r\n color: var(--common-debugData-foreground);\r\n}\r\n\r\n:host(.clickable)\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n:host(.enabled)\r\n{\r\n display: block;\r\n}"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
69
35
|
}
|
|
70
36
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataComponent, decorators: [{
|
|
71
37
|
type: Component,
|
|
72
|
-
args: [{ selector: 'debug-data', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if(enabled())\r\n{\r\n <ng-content/>\r\n}", styles: [":host\r\n{\r\n font-weight: normal;\r\n font-style: italic;\r\n text-shadow: 0 0 1px;\r\n display: none;\r\n color: var(--common-debugData-foreground);\r\n}\r\n\r\n:host(.clickable)\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n:host(.enabled)\r\n{\r\n display: block;\r\n}"] }]
|
|
73
|
-
}], ctorParameters: () => [{ type: i1.DebugDataEnabledService }, { type: i0.
|
|
38
|
+
args: [{ selector: 'debug-data', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if(debugDataEnabledSvc.enabled())\r\n{\r\n <ng-content/>\r\n}", styles: [":host\r\n{\r\n font-weight: normal;\r\n font-style: italic;\r\n text-shadow: 0 0 1px;\r\n display: none;\r\n color: var(--common-debugData-foreground);\r\n}\r\n\r\n:host(.clickable)\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n:host(.enabled)\r\n{\r\n display: block;\r\n}"] }]
|
|
39
|
+
}], ctorParameters: () => [{ type: i1.DebugDataEnabledService }, { type: i0.ElementRef }] });
|
|
74
40
|
//# sourceMappingURL=debugData.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugData.component.js","sourceRoot":"","sources":["../../../../../../src/modules/debugData/components/debugData/debugData.component.ts","../../../../../../src/modules/debugData/components/debugData/debugData.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"debugData.component.js","sourceRoot":"","sources":["../../../../../../src/modules/debugData/components/debugData/debugData.component.ts","../../../../../../src/modules/debugData/components/debugData/debugData.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AAErF,OAAO,EAAC,uBAAuB,EAAC,MAAM,0DAA0D,CAAC;;;AAEjG;;GAEG;AACH,MAAM,OAAO,GAAG,SAAS,CAAC;AAE1B;;GAEG;AASH,MAAM,OAAO,kBAAkB;IAGL;IACA;IAFtB,iEAAiE;IACjE,YAAsB,mBAA4C,EAC5C,OAAgC;QADhC,wBAAmB,GAAnB,mBAAmB,CAAyB;QAC5C,YAAO,GAAP,OAAO,CAAyB;QAElD,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAC5C,CAAC;IAED,uEAAuE;IAEvE;;OAEG;IACO,kBAAkB;QAExB,IAAG,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,EACrC;YACI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;SACrD;aAED;YACI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;SACxD;IACL,CAAC;uGAxBQ,kBAAkB;2FAAlB,kBAAkB,sECpB/B,mEAGC;;2FDiBY,kBAAkB;kBAR9B,SAAS;+BAEI,YAAY,cAGV,IAAI,mBACC,uBAAuB,CAAC,MAAM","sourcesContent":["import {Component, ChangeDetectionStrategy, ElementRef, effect} from '@angular/core';\n\nimport {DebugDataEnabledService} from '../../services/debugDataEnabled/debugDataEnabled.service';\n\n/**\n * Name of css class for enabled debug data\n */\nconst ENABLED = 'enabled';\n\n/**\n * Component used for displaying debug data\n */\n@Component(\n{\n selector: 'debug-data',\n templateUrl: 'debugData.component.html',\n styleUrl: 'debugData.component.css',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DebugDataComponent\n{\n //######################### constructor #########################\n constructor(protected debugDataEnabledSvc: DebugDataEnabledService,\n protected element: ElementRef<HTMLElement>)\n {\n effect(() => this.setEnabledCssClass());\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets enabled css class according enabled state\n */\n protected setEnabledCssClass(): void\n {\n if(this.debugDataEnabledSvc.enabled())\n {\n this.element.nativeElement.classList.add(ENABLED);\n }\n else\n {\n this.element.nativeElement.classList.remove(ENABLED);\n }\n }\n}","@if(debugDataEnabledSvc.enabled())\r\n{\r\n <ng-content/>\r\n}"]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
1
|
+
import { Injectable, signal } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* Service used for handling enabled state for debug data component
|
|
@@ -9,23 +8,13 @@ export class DebugDataEnabledService {
|
|
|
9
8
|
/**
|
|
10
9
|
* Indication whether debug data copmonent is enabled
|
|
11
10
|
*/
|
|
12
|
-
_enabled = false;
|
|
13
|
-
/**
|
|
14
|
-
* Subject used for emitting changes of enabled state
|
|
15
|
-
*/
|
|
16
|
-
_enabledChangeSubject = new Subject();
|
|
11
|
+
_enabled = signal(false);
|
|
17
12
|
//######################### public properties #########################
|
|
18
13
|
/**
|
|
19
14
|
* Indication whether debug data copmonent is enabled
|
|
20
15
|
*/
|
|
21
16
|
get enabled() {
|
|
22
|
-
return this._enabled;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Occurs when enabled state changed
|
|
26
|
-
*/
|
|
27
|
-
get enabledChange() {
|
|
28
|
-
return this._enabledChangeSubject.asObservable();
|
|
17
|
+
return this._enabled.asReadonly();
|
|
29
18
|
}
|
|
30
19
|
//######################### public methods #########################
|
|
31
20
|
/**
|
|
@@ -33,11 +22,7 @@ export class DebugDataEnabledService {
|
|
|
33
22
|
* @param enabled - Indication whether will be enabled state set to true, or false, defaults to true
|
|
34
23
|
*/
|
|
35
24
|
setEnabled(enabled = true) {
|
|
36
|
-
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
this._enabled = enabled;
|
|
40
|
-
this._enabledChangeSubject.next();
|
|
25
|
+
this._enabled.set(enabled);
|
|
41
26
|
}
|
|
42
27
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataEnabledService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
43
28
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataEnabledService, providedIn: 'root' });
|
package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugDataEnabled.service.js","sourceRoot":"","sources":["../../../../../../src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"debugDataEnabled.service.js","sourceRoot":"","sources":["../../../../../../src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAA0B,MAAM,EAAC,MAAM,eAAe,CAAC;;AAEzE;;GAEG;AAEH,MAAM,OAAO,uBAAuB;IAEhC,oEAAoE;IAEpE;;OAEG;IACK,QAAQ,GAA4B,MAAM,CAAC,KAAK,CAAC,CAAC;IAE1D,uEAAuE;IAEvE;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;IACtC,CAAC;IAED,oEAAoE;IAEpE;;;OAGG;IACI,UAAU,CAAC,UAAmB,IAAI;QAErC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC/B,CAAC;uGA5BQ,uBAAuB;2GAAvB,uBAAuB,cADX,MAAM;;2FAClB,uBAAuB;kBADnC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC","sourcesContent":["import {Injectable, Signal, WritableSignal, signal} from '@angular/core';\n\n/**\n * Service used for handling enabled state for debug data component\n */\n@Injectable({providedIn: 'root'})\nexport class DebugDataEnabledService\n{\n //######################### private fields #########################\n\n /**\n * Indication whether debug data copmonent is enabled\n */\n private _enabled: WritableSignal<boolean> = signal(false);\n\n //######################### public properties #########################\n\n /**\n * Indication whether debug data copmonent is enabled\n */\n public get enabled(): Signal<boolean>\n {\n return this._enabled.asReadonly();\n }\n\n //######################### public methods #########################\n\n /**\n * Sets enabled state\n * @param enabled - Indication whether will be enabled state set to true, or false, defaults to true\n */\n public setEnabled(enabled: boolean = true): void\n {\n this._enabled.set(enabled);\n }\n}"]}
|
package/package.json
CHANGED
|
@@ -1,33 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Subscription } from 'rxjs';
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
3
2
|
import { DebugDataEnabledService } from '../../services/debugDataEnabled/debugDataEnabled.service';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* Component used for displaying debug data
|
|
7
6
|
*/
|
|
8
|
-
export declare class DebugDataComponent
|
|
7
|
+
export declare class DebugDataComponent {
|
|
9
8
|
protected debugDataEnabledSvc: DebugDataEnabledService;
|
|
10
|
-
protected changeDetector: ChangeDetectorRef;
|
|
11
9
|
protected element: ElementRef<HTMLElement>;
|
|
12
|
-
|
|
13
|
-
* Subscription for changes of debug data enabled
|
|
14
|
-
*/
|
|
15
|
-
protected debugDataEnabledChangeSubscription: Subscription | undefined | null;
|
|
16
|
-
/**
|
|
17
|
-
* Indication whether is debug data enabled
|
|
18
|
-
*
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
|
-
protected enabled: WritableSignal<boolean>;
|
|
22
|
-
constructor(debugDataEnabledSvc: DebugDataEnabledService, changeDetector: ChangeDetectorRef, element: ElementRef<HTMLElement>);
|
|
23
|
-
/**
|
|
24
|
-
* Initialize component
|
|
25
|
-
*/
|
|
26
|
-
ngOnInit(): void;
|
|
27
|
-
/**
|
|
28
|
-
* Called when component is destroyed
|
|
29
|
-
*/
|
|
30
|
-
ngOnDestroy(): void;
|
|
10
|
+
constructor(debugDataEnabledSvc: DebugDataEnabledService, element: ElementRef<HTMLElement>);
|
|
31
11
|
/**
|
|
32
12
|
* Sets enabled css class according enabled state
|
|
33
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugData.component.d.ts","sourceRoot":"","sources":["debugData.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,
|
|
1
|
+
{"version":3,"file":"debugData.component.d.ts","sourceRoot":"","sources":["debugData.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,UAAU,EAAS,MAAM,eAAe,CAAC;AAErF,OAAO,EAAC,uBAAuB,EAAC,MAAM,0DAA0D,CAAC;;AAOjG;;GAEG;AACH,qBAQa,kBAAkB;IAGf,SAAS,CAAC,mBAAmB,EAAE,uBAAuB;IACtD,SAAS,CAAC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;gBADhC,mBAAmB,EAAE,uBAAuB,EAC5C,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;IAOtD;;OAEG;IACH,SAAS,CAAC,kBAAkB,IAAI,IAAI;yCAd3B,kBAAkB;2CAAlB,kBAAkB;CAyB9B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* Service used for handling enabled state for debug data component
|
|
@@ -8,18 +8,10 @@ export declare class DebugDataEnabledService {
|
|
|
8
8
|
* Indication whether debug data copmonent is enabled
|
|
9
9
|
*/
|
|
10
10
|
private _enabled;
|
|
11
|
-
/**
|
|
12
|
-
* Subject used for emitting changes of enabled state
|
|
13
|
-
*/
|
|
14
|
-
private _enabledChangeSubject;
|
|
15
11
|
/**
|
|
16
12
|
* Indication whether debug data copmonent is enabled
|
|
17
13
|
*/
|
|
18
|
-
get enabled(): boolean
|
|
19
|
-
/**
|
|
20
|
-
* Occurs when enabled state changed
|
|
21
|
-
*/
|
|
22
|
-
get enabledChange(): Observable<void>;
|
|
14
|
+
get enabled(): Signal<boolean>;
|
|
23
15
|
/**
|
|
24
16
|
* Sets enabled state
|
|
25
17
|
* @param enabled - Indication whether will be enabled state set to true, or false, defaults to true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugDataEnabled.service.d.ts","sourceRoot":"","sources":["debugDataEnabled.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"debugDataEnabled.service.d.ts","sourceRoot":"","sources":["debugDataEnabled.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAyB,MAAM,eAAe,CAAC;;AAEzE;;GAEG;AACH,qBACa,uBAAuB;IAIhC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAA0C;IAI1D;;OAEG;IACH,IAAW,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,CAGpC;IAID;;;OAGG;IACI,UAAU,CAAC,OAAO,GAAE,OAAc,GAAG,IAAI;yCAzBvC,uBAAuB;6CAAvB,uBAAuB;CA6BnC"}
|
package/version.bak
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
19.1.0
|
|
1
|
+
19.1.0
|