@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.
@@ -1,4 +1,4 @@
1
- import { Component, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, signal } from '@angular/core';
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, changeDetector, element) {
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.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
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.ChangeDetectorRef }, { type: i0.ElementRef }] });
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,EAAqB,iBAAiB,EAAE,UAAU,EAAE,MAAM,EAAiB,MAAM,eAAe,CAAC;AAG3I,OAAO,EAAC,uBAAuB,EAAC,MAAM,0DAA0D,CAAC;;;AAEjG;;GAEG;AACH,MAAM,OAAO,GAAG,SAAS,CAAC;AAE1B;;GAEG;AASH,MAAM,OAAO,kBAAkB;IAmBL;IACA;IACA;IAnBtB,sEAAsE;IAEtE;;OAEG;IACO,kCAAkC,CAA8B;IAE1E,8FAA8F;IAE9F;;;;OAIG;IACO,OAAO,GAA4B,MAAM,CAAC,KAAK,CAAC,CAAC;IAE3D,iEAAiE;IACjE,YAAsB,mBAA4C,EAC5C,cAAiC,EACjC,OAAgC;QAFhC,wBAAmB,GAAnB,mBAAmB,CAAyB;QAC5C,mBAAc,GAAd,cAAc,CAAmB;QACjC,YAAO,GAAP,OAAO,CAAyB;IAEtD,CAAC;IAED,+FAA+F;IAE/F;;OAEG;IACI,QAAQ;QAEX,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;QACnD,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAE1B,IAAI,CAAC,kCAAkC,GAAG,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,EAAE;YAE5F,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YACnD,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAE1B,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC;QACxC,CAAC,CAAC,CAAC;IACP,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,kCAAkC,EAAE,WAAW,EAAE,CAAC;QACvD,IAAI,CAAC,kCAAkC,GAAG,IAAI,CAAC;IACnD,CAAC;IAED,uEAAuE;IAEvE;;OAEG;IACO,kBAAkB;QAExB,IAAG,IAAI,CAAC,OAAO,EAAE,EACjB;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;uGAtEQ,kBAAkB;2FAAlB,kBAAkB,sECrB/B,+CAGC;;2FDkBY,kBAAkB;kBAR9B,SAAS;+BAEI,YAAY,cAGV,IAAI,mBACC,uBAAuB,CAAC,MAAM","sourcesContent":["import {Component, ChangeDetectionStrategy, OnDestroy, OnInit, ChangeDetectorRef, ElementRef, signal, WritableSignal} from '@angular/core';\nimport {Subscription} from 'rxjs';\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 implements OnDestroy, OnInit\n{\n //######################### protected fields #########################\n\n /**\n * Subscription for changes of debug data enabled\n */\n protected debugDataEnabledChangeSubscription: Subscription|undefined|null;\n\n //######################### protected properties - template bindings #########################\n\n /**\n * Indication whether is debug data enabled\n *\n * @internal\n */\n protected enabled: WritableSignal<boolean> = signal(false);\n\n //######################### constructor #########################\n constructor(protected debugDataEnabledSvc: DebugDataEnabledService,\n protected changeDetector: ChangeDetectorRef,\n protected element: ElementRef<HTMLElement>)\n {\n }\n\n //######################### public methods - implementation of OnInit #########################\n\n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this.enabled.set(this.debugDataEnabledSvc.enabled);\n this.setEnabledCssClass();\n\n this.debugDataEnabledChangeSubscription = this.debugDataEnabledSvc.enabledChange.subscribe(() =>\n {\n this.enabled.set(this.debugDataEnabledSvc.enabled);\n this.setEnabledCssClass();\n\n this.changeDetector.detectChanges();\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this.debugDataEnabledChangeSubscription?.unsubscribe();\n this.debugDataEnabledChangeSubscription = null;\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets enabled css class according enabled state\n */\n protected setEnabledCssClass(): void\n {\n if(this.enabled())\n {\n this.element.nativeElement.classList.add(ENABLED);\n }\n else\n {\n this.element.nativeElement.classList.remove(ENABLED);\n }\n }\n}","@if(enabled())\r\n{\r\n <ng-content/>\r\n}"]}
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
- if (this._enabled === enabled) {
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' });
@@ -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,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,OAAO,EAAa,MAAM,MAAM,CAAC;;AAEzC;;GAEG;AAEH,MAAM,OAAO,uBAAuB;IAEhC,oEAAoE;IAEpE;;OAEG;IACK,QAAQ,GAAY,KAAK,CAAC;IAElC;;OAEG;IACK,qBAAqB,GAAkB,IAAI,OAAO,EAAQ,CAAC;IAEnE,uEAAuE;IAEvE;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,IAAW,aAAa;QAEpB,OAAO,IAAI,CAAC,qBAAqB,CAAC,YAAY,EAAE,CAAC;IACrD,CAAC;IAED,oEAAoE;IAEpE;;;OAGG;IACI,UAAU,CAAC,UAAmB,IAAI;QAErC,IAAG,IAAI,CAAC,QAAQ,KAAK,OAAO,EAC5B;YACI,OAAO;SACV;QAED,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QAExB,IAAI,CAAC,qBAAqB,CAAC,IAAI,EAAE,CAAC;IACtC,CAAC;uGAhDQ,uBAAuB;2GAAvB,uBAAuB,cADX,MAAM;;2FAClB,uBAAuB;kBADnC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC","sourcesContent":["import {Injectable} from '@angular/core';\nimport {Subject, Observable} from 'rxjs';\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: boolean = false;\n\n /**\n * Subject used for emitting changes of enabled state\n */\n private _enabledChangeSubject: Subject<void> = new Subject<void>();\n\n //######################### public properties #########################\n\n /**\n * Indication whether debug data copmonent is enabled\n */\n public get enabled(): boolean\n {\n return this._enabled;\n }\n\n /**\n * Occurs when enabled state changed\n */\n public get enabledChange(): Observable<void>\n {\n return this._enabledChangeSubject.asObservable();\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 if(this._enabled === enabled)\n {\n return;\n }\n\n this._enabled = enabled;\n\n this._enabledChangeSubject.next();\n }\n}"]}
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@anglr/common",
3
- "version": "19.1.0-beta.20240513181744",
3
+ "version": "19.1.0",
4
4
  "description": "Angular module for common angular stuff",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1,33 +1,13 @@
1
- import { OnDestroy, OnInit, ChangeDetectorRef, ElementRef, WritableSignal } from '@angular/core';
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 implements OnDestroy, OnInit {
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,SAAS,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAU,cAAc,EAAC,MAAM,eAAe,CAAC;AAC3I,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,uBAAuB,EAAC,MAAM,0DAA0D,CAAC;;AAOjG;;GAEG;AACH,qBAQa,kBAAmB,YAAW,SAAS,EAAE,MAAM;IAmB5C,SAAS,CAAC,mBAAmB,EAAE,uBAAuB;IACtD,SAAS,CAAC,cAAc,EAAE,iBAAiB;IAC3C,SAAS,CAAC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;IAjBtD;;OAEG;IACH,SAAS,CAAC,kCAAkC,EAAE,YAAY,GAAC,SAAS,GAAC,IAAI,CAAC;IAI1E;;;;OAIG;IACH,SAAS,CAAC,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,CAAiB;gBAGrC,mBAAmB,EAAE,uBAAuB,EAC5C,cAAc,EAAE,iBAAiB,EACjC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;IAMtD;;OAEG;IACI,QAAQ,IAAI,IAAI;IAgBvB;;OAEG;IACI,WAAW,IAAI,IAAI;IAQ1B;;OAEG;IACH,SAAS,CAAC,kBAAkB,IAAI,IAAI;yCA5D3B,kBAAkB;2CAAlB,kBAAkB;CAuE9B"}
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
- @if(enabled())
1
+ @if(debugDataEnabledSvc.enabled())
2
2
  {
3
3
  <ng-content/>
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Observable } from 'rxjs';
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":"AACA,OAAO,EAAU,UAAU,EAAC,MAAM,MAAM,CAAC;;AAEzC;;GAEG;AACH,qBACa,uBAAuB;IAIhC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAkB;IAElC;;OAEG;IACH,OAAO,CAAC,qBAAqB,CAAsC;IAInE;;OAEG;IACH,IAAW,OAAO,IAAI,OAAO,CAG5B;IAED;;OAEG;IACH,IAAW,aAAa,IAAI,UAAU,CAAC,IAAI,CAAC,CAG3C;IAID;;;OAGG;IACI,UAAU,CAAC,OAAO,GAAE,OAAc,GAAG,IAAI;yCAtCvC,uBAAuB;6CAAvB,uBAAuB;CAiDnC"}
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-beta.20240513181744
1
+ 19.1.0