@anglr/common 19.1.0-beta.20240513175039 → 19.1.0-beta.20240521085756
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 +9 -0
- package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +3 -2
- package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js.map +1 -1
- package/es2022/material/src/modules/debugDataCopyClick.module.js +9 -8
- package/es2022/material/src/modules/debugDataCopyClick.module.js.map +1 -1
- package/es2022/src/modules/commonUtils.module.js +7 -3
- package/es2022/src/modules/commonUtils.module.js.map +1 -1
- package/es2022/src/modules/debugData/components/debugData/debugData.component.js +8 -43
- package/es2022/src/modules/debugData/components/debugData/debugData.component.js.map +1 -1
- package/es2022/src/modules/debugData/modules/debugData.module.js +4 -8
- package/es2022/src/modules/debugData/modules/debugData.module.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/es2022/src/pipes/index.js +1 -0
- package/es2022/src/pipes/index.js.map +1 -1
- package/es2022/src/pipes/trimText/trimText.pipe.js +29 -0
- package/es2022/src/pipes/trimText/trimText.pipe.js.map +1 -0
- package/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.d.ts +2 -2
- package/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.d.ts.map +1 -1
- package/material/src/modules/debugDataCopyClick.module.d.ts +3 -3
- package/material/src/modules/debugDataCopyClick.module.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/modules/commonUtils.module.d.ts +2 -1
- package/src/modules/commonUtils.module.d.ts.map +1 -1
- package/src/modules/debugData/components/debugData/debugData.component.css +1 -0
- package/src/modules/debugData/components/debugData/debugData.component.d.ts +4 -24
- package/src/modules/debugData/components/debugData/debugData.component.d.ts.map +1 -1
- package/src/modules/debugData/components/debugData/debugData.component.html +4 -3
- package/src/modules/debugData/modules/debugData.module.d.ts +1 -2
- package/src/modules/debugData/modules/debugData.module.d.ts.map +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/src/pipes/index.d.ts +1 -0
- package/src/pipes/index.d.ts.map +1 -1
- package/src/pipes/trimText/trimText.pipe.d.ts +17 -0
- package/src/pipes/trimText/trimText.pipe.d.ts.map +1 -0
- package/styles/core/_mixins.scss +14 -0
- package/styles/core/_theme.scss +4 -0
- package/version.bak +1 -1
- package/src/style.scss +0 -87
package/changelog.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
### Bug Fixes
|
|
6
6
|
|
|
7
|
+
- fixed `DebugDataComponent` now color styles can be imported
|
|
7
8
|
- fixed `TooltipDirective` dual tooltip when nested elements are marked with tooltip
|
|
8
9
|
- fixed `TooltipDirective` overflowing 'MouseEnter' tooltip on right side of screen
|
|
9
10
|
- fixed `TooltipDirective` rendering tooltip only for non empty content
|
|
@@ -13,6 +14,7 @@
|
|
|
13
14
|
### Feature
|
|
14
15
|
|
|
15
16
|
- new `AsSignal` property decorator, that creates backing field for this property as WritableSignal, reads and write to it
|
|
17
|
+
- new `TrimTextPipe` pipe, that trims long text and adds 'suffix' indication of longer text
|
|
16
18
|
- new `EllipsisTooltipSADirective` directive, that is used for displaying text from attached element in tooltip
|
|
17
19
|
- **implements**
|
|
18
20
|
- `OnChanges`
|
|
@@ -26,12 +28,19 @@
|
|
|
26
28
|
- new `getHostElement` function, that gets host html element for component
|
|
27
29
|
- updated `TooltipDirective` directive
|
|
28
30
|
- is now `standalone`
|
|
31
|
+
- updated `DebugDataComponent` component
|
|
32
|
+
- is now `standalone`
|
|
33
|
+
- **styles**
|
|
34
|
+
- new `buildThemeColorsDebugData` mixin, that builds theme colors for debug data component
|
|
35
|
+
- new `buildThemeDebugData` mixin, that builds theme for debug data component
|
|
29
36
|
- *subpackage* `@anglr/common/material`
|
|
30
37
|
- new `provideConfirmationDialogOptions` function, that provides global options for confirmation dialog
|
|
31
38
|
- updated `CONFIRMATION_DIALOG_OPTIONS` injection token
|
|
32
39
|
- now provides `RecursivePartial` type as it should
|
|
33
40
|
- updated `ConfirmationDialogDirective` directive
|
|
34
41
|
- is now `standalone`
|
|
42
|
+
- updated `DebugDataCopyClickDirective` directive
|
|
43
|
+
- is now `standalone`
|
|
35
44
|
|
|
36
45
|
## Version 19.0.0 (2023-11-09)
|
|
37
46
|
|
|
@@ -33,12 +33,13 @@ export class DebugDataCopyClickDirective {
|
|
|
33
33
|
this._clipboard.copy(JSON.stringify(this.data, null, 4));
|
|
34
34
|
}
|
|
35
35
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataCopyClickDirective, deps: [{ token: i1.Clipboard }], target: i0.ɵɵFactoryTarget.Directive });
|
|
36
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.5", type: DebugDataCopyClickDirective, selector: "debug-data[copyClick]", inputs: { data: ["copyClick", "data"] }, host: { listeners: { "click": "copyData()" }, properties: { "class.clickable": "this.clickable" } }, ngImport: i0 });
|
|
36
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.5", type: DebugDataCopyClickDirective, isStandalone: true, selector: "debug-data[copyClick]", inputs: { data: ["copyClick", "data"] }, host: { listeners: { "click": "copyData()" }, properties: { "class.clickable": "this.clickable" } }, ngImport: i0 });
|
|
37
37
|
}
|
|
38
38
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataCopyClickDirective, decorators: [{
|
|
39
39
|
type: Directive,
|
|
40
40
|
args: [{
|
|
41
|
-
selector: 'debug-data[copyClick]'
|
|
41
|
+
selector: 'debug-data[copyClick]',
|
|
42
|
+
standalone: true,
|
|
42
43
|
}]
|
|
43
44
|
}], ctorParameters: () => [{ type: i1.Clipboard }], propDecorators: { data: [{
|
|
44
45
|
type: Input,
|
package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugDataCopyClick.directive.js","sourceRoot":"","sources":["../../../../../material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EAAC,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;;;AAEjD;;GAEG;
|
|
1
|
+
{"version":3,"file":"debugDataCopyClick.directive.js","sourceRoot":"","sources":["../../../../../material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EAAC,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;;;AAEjD;;GAEG;AAMH,MAAM,OAAO,2BAA2B;IAqBd;IAnBtB,gFAAgF;IAEhF;;OAEG;IAEI,IAAI,CAAU;IAErB,8EAA8E;IAE9E;;;;OAIG;IAEI,SAAS,GAAY,IAAI,CAAC;IAEjC,iEAAiE;IACjE,YAAsB,UAAqB;QAArB,eAAU,GAAV,UAAU,CAAW;IAE3C,CAAC;IAED,2EAA2E;IAE3E;;;;OAIG;IAEI,QAAQ;QAEX,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC7D,CAAC;uGApCQ,2BAA2B;2FAA3B,2BAA2B;;2FAA3B,2BAA2B;kBALvC,SAAS;mBACV;oBACI,QAAQ,EAAE,uBAAuB;oBACjC,UAAU,EAAE,IAAI;iBACnB;8EASU,IAAI;sBADV,KAAK;uBAAC,WAAW;gBAWX,SAAS;sBADf,WAAW;uBAAC,iBAAiB;gBAgBvB,QAAQ;sBADd,YAAY;uBAAC,OAAO","sourcesContent":["import {Directive, HostBinding, HostListener, Input} from '@angular/core';\nimport {Clipboard} from '@angular/cdk/clipboard';\n\n/**\n * Directive that allows to copy data to clipboard on click on debug-data\n */\n@Directive(\n{\n selector: 'debug-data[copyClick]',\n standalone: true,\n})\nexport class DebugDataCopyClickDirective\n{\n //######################### public properties - inputs #########################\n\n /**\n * Data to be copied as serialized json\n */\n @Input('copyClick')\n public data: unknown;\n\n //######################### public properties - host #########################\n\n /**\n * Adds css class clickable to this element\n * \n * @internal\n */\n @HostBinding('class.clickable')\n public clickable: boolean = true;\n\n //######################### constructor #########################\n constructor(protected _clipboard: Clipboard)\n {\n }\n\n //######################### public methods - host #########################\n\n /**\n * Copies data to clipboard on click\n * \n * @internal\n */\n @HostListener('click')\n public copyData(): void\n {\n this._clipboard.copy(JSON.stringify(this.data, null, 4));\n }\n}"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { DebugDataComponent } from '@anglr/common';
|
|
3
3
|
import { DebugDataCopyClickDirective } from '../directives/debugDataCopyClick/debugDataCopyClick.directive';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
@@ -7,20 +7,21 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
*/
|
|
8
8
|
export class DebugDataCopyClickModule {
|
|
9
9
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataCopyClickModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.5", ngImport: i0, type: DebugDataCopyClickModule,
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.5", ngImport: i0, type: DebugDataCopyClickModule, imports: [DebugDataComponent,
|
|
11
|
+
DebugDataCopyClickDirective], exports: [DebugDataCopyClickDirective,
|
|
12
|
+
DebugDataComponent] });
|
|
13
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataCopyClickModule });
|
|
13
14
|
}
|
|
14
15
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataCopyClickModule, decorators: [{
|
|
15
16
|
type: NgModule,
|
|
16
17
|
args: [{
|
|
17
|
-
imports: [
|
|
18
|
-
|
|
19
|
-
DebugDataCopyClickDirective
|
|
18
|
+
imports: [
|
|
19
|
+
DebugDataComponent,
|
|
20
|
+
DebugDataCopyClickDirective,
|
|
20
21
|
],
|
|
21
22
|
exports: [
|
|
22
23
|
DebugDataCopyClickDirective,
|
|
23
|
-
|
|
24
|
+
DebugDataComponent,
|
|
24
25
|
]
|
|
25
26
|
}]
|
|
26
27
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugDataCopyClick.module.js","sourceRoot":"","sources":["../../../../material/src/modules/debugDataCopyClick.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"debugDataCopyClick.module.js","sourceRoot":"","sources":["../../../../material/src/modules/debugDataCopyClick.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAEjD,OAAO,EAAC,2BAA2B,EAAC,MAAM,+DAA+D,CAAC;;AAE1G;;GAEG;AAcH,MAAM,OAAO,wBAAwB;uGAAxB,wBAAwB;wGAAxB,wBAAwB,YAT7B,kBAAkB;YAClB,2BAA2B,aAI3B,2BAA2B;YAC3B,kBAAkB;wGAGb,wBAAwB;;2FAAxB,wBAAwB;kBAbpC,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,kBAAkB;wBAClB,2BAA2B;qBAC9B;oBACD,OAAO,EACP;wBACI,2BAA2B;wBAC3B,kBAAkB;qBACrB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {DebugDataComponent} from '@anglr/common';\n\nimport {DebugDataCopyClickDirective} from '../directives/debugDataCopyClick/debugDataCopyClick.directive';\n\n/**\n * Module for debug data copy click directive\n */\n@NgModule(\n{\n imports:\n [\n DebugDataComponent,\n DebugDataCopyClickDirective,\n ],\n exports:\n [\n DebugDataCopyClickDirective,\n DebugDataComponent,\n ]\n})\nexport class DebugDataCopyClickModule\n{\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
|
-
import { IsNaNSAPipe, IsPresentSAPipe, UrlEncodeSAPipe, MergeCssClassesSAPipe, KeysSAPipe } from '../pipes';
|
|
2
|
+
import { IsNaNSAPipe, IsPresentSAPipe, UrlEncodeSAPipe, MergeCssClassesSAPipe, KeysSAPipe, TrimTextPipe } from '../pipes';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* Module for common utility stuff
|
|
@@ -10,11 +10,13 @@ export class CommonUtilsModule {
|
|
|
10
10
|
IsPresentSAPipe,
|
|
11
11
|
UrlEncodeSAPipe,
|
|
12
12
|
MergeCssClassesSAPipe,
|
|
13
|
-
KeysSAPipe
|
|
13
|
+
KeysSAPipe,
|
|
14
|
+
TrimTextPipe], exports: [IsNaNSAPipe,
|
|
14
15
|
IsPresentSAPipe,
|
|
15
16
|
UrlEncodeSAPipe,
|
|
16
17
|
MergeCssClassesSAPipe,
|
|
17
|
-
KeysSAPipe
|
|
18
|
+
KeysSAPipe,
|
|
19
|
+
TrimTextPipe] });
|
|
18
20
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: CommonUtilsModule });
|
|
19
21
|
}
|
|
20
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: CommonUtilsModule, decorators: [{
|
|
@@ -26,6 +28,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImpor
|
|
|
26
28
|
UrlEncodeSAPipe,
|
|
27
29
|
MergeCssClassesSAPipe,
|
|
28
30
|
KeysSAPipe,
|
|
31
|
+
TrimTextPipe,
|
|
29
32
|
],
|
|
30
33
|
exports: [
|
|
31
34
|
IsNaNSAPipe,
|
|
@@ -33,6 +36,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImpor
|
|
|
33
36
|
UrlEncodeSAPipe,
|
|
34
37
|
MergeCssClassesSAPipe,
|
|
35
38
|
KeysSAPipe,
|
|
39
|
+
TrimTextPipe,
|
|
36
40
|
]
|
|
37
41
|
}]
|
|
38
42
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonUtils.module.js","sourceRoot":"","sources":["../../../src/modules/commonUtils.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,qBAAqB,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;;
|
|
1
|
+
{"version":3,"file":"commonUtils.module.js","sourceRoot":"","sources":["../../../src/modules/commonUtils.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,qBAAqB,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;;AAExH;;GAEG;AAsBH,MAAM,OAAO,iBAAiB;uGAAjB,iBAAiB;wGAAjB,iBAAiB,YAjBtB,WAAW;YACX,eAAe;YACf,eAAe;YACf,qBAAqB;YACrB,UAAU;YACV,YAAY,aAIZ,WAAW;YACX,eAAe;YACf,eAAe;YACf,qBAAqB;YACrB,UAAU;YACV,YAAY;wGAGP,iBAAiB;;2FAAjB,iBAAiB;kBArB7B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,WAAW;wBACX,eAAe;wBACf,eAAe;wBACf,qBAAqB;wBACrB,UAAU;wBACV,YAAY;qBACf;oBACD,OAAO,EACP;wBACI,WAAW;wBACX,eAAe;wBACf,eAAe;wBACf,qBAAqB;wBACrB,UAAU;wBACV,YAAY;qBACf;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {IsNaNSAPipe, IsPresentSAPipe, UrlEncodeSAPipe, MergeCssClassesSAPipe, KeysSAPipe, TrimTextPipe} from '../pipes';\n\n/**\n * Module for common utility stuff\n */\n@NgModule(\n{\n imports:\n [\n IsNaNSAPipe,\n IsPresentSAPipe,\n UrlEncodeSAPipe,\n MergeCssClassesSAPipe,\n KeysSAPipe,\n TrimTextPipe,\n ],\n exports: \n [\n IsNaNSAPipe,\n IsPresentSAPipe,\n UrlEncodeSAPipe,\n MergeCssClassesSAPipe,\n KeysSAPipe,\n TrimTextPipe,\n ]\n})\nexport class CommonUtilsModule\n{\n}"]}
|
|
@@ -1,8 +1,7 @@
|
|
|
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";
|
|
5
|
-
import * as i2 from "@angular/common";
|
|
6
5
|
/**
|
|
7
6
|
* Name of css class for enabled debug data
|
|
8
7
|
*/
|
|
@@ -12,64 +11,30 @@ const ENABLED = 'enabled';
|
|
|
12
11
|
*/
|
|
13
12
|
export class DebugDataComponent {
|
|
14
13
|
debugDataEnabledSvc;
|
|
15
|
-
changeDetector;
|
|
16
14
|
element;
|
|
17
|
-
//######################### protected fields #########################
|
|
18
|
-
/**
|
|
19
|
-
* Subscription for changes of debug data enabled
|
|
20
|
-
*/
|
|
21
|
-
debugDataEnabledChangeSubscription;
|
|
22
|
-
//######################### protected properties - template bindings #########################
|
|
23
|
-
/**
|
|
24
|
-
* Indication whether is debug data enabled
|
|
25
|
-
*
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
|
-
enabled = signal(false);
|
|
29
15
|
//######################### constructor #########################
|
|
30
|
-
constructor(debugDataEnabledSvc,
|
|
16
|
+
constructor(debugDataEnabledSvc, element) {
|
|
31
17
|
this.debugDataEnabledSvc = debugDataEnabledSvc;
|
|
32
|
-
this.changeDetector = changeDetector;
|
|
33
18
|
this.element = element;
|
|
34
|
-
|
|
35
|
-
//######################### public methods - implementation of OnInit #########################
|
|
36
|
-
/**
|
|
37
|
-
* Initialize component
|
|
38
|
-
*/
|
|
39
|
-
ngOnInit() {
|
|
40
|
-
this.enabled.set(this.debugDataEnabledSvc.enabled);
|
|
41
|
-
this.setEnabledCssClass();
|
|
42
|
-
this.debugDataEnabledChangeSubscription = this.debugDataEnabledSvc.enabledChange.subscribe(() => {
|
|
43
|
-
this.enabled.set(this.debugDataEnabledSvc.enabled);
|
|
44
|
-
this.setEnabledCssClass();
|
|
45
|
-
this.changeDetector.detectChanges();
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
//######################### public methods - implementation of OnDestroy #########################
|
|
49
|
-
/**
|
|
50
|
-
* Called when component is destroyed
|
|
51
|
-
*/
|
|
52
|
-
ngOnDestroy() {
|
|
53
|
-
this.debugDataEnabledChangeSubscription?.unsubscribe();
|
|
54
|
-
this.debugDataEnabledChangeSubscription = null;
|
|
19
|
+
effect(() => this.setEnabledCssClass());
|
|
55
20
|
}
|
|
56
21
|
//######################### protected methods #########################
|
|
57
22
|
/**
|
|
58
23
|
* Sets enabled css class according enabled state
|
|
59
24
|
*/
|
|
60
25
|
setEnabledCssClass() {
|
|
61
|
-
if (this.enabled()) {
|
|
26
|
+
if (this.debugDataEnabledSvc.enabled()) {
|
|
62
27
|
this.element.nativeElement.classList.add(ENABLED);
|
|
63
28
|
}
|
|
64
29
|
else {
|
|
65
30
|
this.element.nativeElement.classList.remove(ENABLED);
|
|
66
31
|
}
|
|
67
32
|
}
|
|
68
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataComponent, deps: [{ token: i1.DebugDataEnabledService }, { token: i0.
|
|
69
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
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 });
|
|
70
35
|
}
|
|
71
36
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataComponent, decorators: [{
|
|
72
37
|
type: Component,
|
|
73
|
-
args: [{ selector: 'debug-data', changeDetection: ChangeDetectionStrategy.OnPush, template: "
|
|
74
|
-
}], 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 }] });
|
|
75
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
1
|
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
2
|
import { DebugDataComponent } from '../components/debugData/debugData.component';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
@@ -7,20 +6,17 @@ import * as i0 from "@angular/core";
|
|
|
7
6
|
*/
|
|
8
7
|
export class DebugDataModule {
|
|
9
8
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.5", ngImport: i0, type: DebugDataModule,
|
|
11
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataModule
|
|
9
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.5", ngImport: i0, type: DebugDataModule, imports: [DebugDataComponent], exports: [DebugDataComponent] });
|
|
10
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataModule });
|
|
12
11
|
}
|
|
13
12
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: DebugDataModule, decorators: [{
|
|
14
13
|
type: NgModule,
|
|
15
14
|
args: [{
|
|
16
15
|
imports: [
|
|
17
|
-
|
|
18
|
-
],
|
|
19
|
-
declarations: [
|
|
20
|
-
DebugDataComponent
|
|
16
|
+
DebugDataComponent,
|
|
21
17
|
],
|
|
22
18
|
exports: [
|
|
23
|
-
DebugDataComponent
|
|
19
|
+
DebugDataComponent,
|
|
24
20
|
]
|
|
25
21
|
}]
|
|
26
22
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugData.module.js","sourceRoot":"","sources":["../../../../../src/modules/debugData/modules/debugData.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"debugData.module.js","sourceRoot":"","sources":["../../../../../src/modules/debugData/modules/debugData.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,kBAAkB,EAAC,MAAM,6CAA6C,CAAC;;AAE/E;;GAEG;AAYH,MAAM,OAAO,eAAe;uGAAf,eAAe;wGAAf,eAAe,YAPpB,kBAAkB,aAIlB,kBAAkB;wGAGb,eAAe;;2FAAf,eAAe;kBAX3B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,kBAAkB;qBACrB;oBACD,OAAO,EACP;wBACI,kBAAkB;qBACrB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {DebugDataComponent} from '../components/debugData/debugData.component';\n\n/**\n * Module that contains debug data component\n */\n@NgModule(\n{\n imports:\n [\n DebugDataComponent,\n ],\n exports:\n [\n DebugDataComponent,\n ]\n})\nexport class DebugDataModule\n{\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}"]}
|
|
@@ -6,5 +6,6 @@ export * from './isPresent/isPresent.pipe';
|
|
|
6
6
|
export * from './keys/keys.pipe';
|
|
7
7
|
export * from './localize/localize.pipe';
|
|
8
8
|
export * from './mergeCssClasses/mergeCssClasses.pipe';
|
|
9
|
+
export * from './trimText/trimText.pipe';
|
|
9
10
|
export * from './urlEncode/urlEncode.pipe';
|
|
10
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sDAAsD,CAAC;AACrE,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,4BAA4B,CAAC","sourcesContent":["export * from './displayProperties/displayProperties.pipe';\nexport * from './firstUppercase/firstUppercase.pipe';\nexport * from './firstUppercaseLocalize/firstUppercaseLocalize.pipe';\nexport * from './isNaN/isNaN.pipe';\nexport * from './isPresent/isPresent.pipe';\nexport * from './keys/keys.pipe';\nexport * from './localize/localize.pipe';\nexport * from './mergeCssClasses/mergeCssClasses.pipe';\nexport * from './urlEncode/urlEncode.pipe';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sDAAsD,CAAC;AACrE,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC","sourcesContent":["export * from './displayProperties/displayProperties.pipe';\nexport * from './firstUppercase/firstUppercase.pipe';\nexport * from './firstUppercaseLocalize/firstUppercaseLocalize.pipe';\nexport * from './isNaN/isNaN.pipe';\nexport * from './isPresent/isPresent.pipe';\nexport * from './keys/keys.pipe';\nexport * from './localize/localize.pipe';\nexport * from './mergeCssClasses/mergeCssClasses.pipe';\nexport * from './trimText/trimText.pipe';\nexport * from './urlEncode/urlEncode.pipe';\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Trims long text and adds 'suffix' indication of longer text
|
|
5
|
+
*/
|
|
6
|
+
export class TrimTextPipe {
|
|
7
|
+
/**
|
|
8
|
+
* Trims long text and adds 'suffix' indication of longer text
|
|
9
|
+
* @param text - Text to be trimmed
|
|
10
|
+
* @param length - Maximal allowed length of text, that wont be trimmed
|
|
11
|
+
* @param suffix - Suffix to be added when text is trimmed
|
|
12
|
+
*/
|
|
13
|
+
transform(text, length, suffix = '...') {
|
|
14
|
+
if (!text) {
|
|
15
|
+
return '';
|
|
16
|
+
}
|
|
17
|
+
if (text.length > length) {
|
|
18
|
+
return text.substring(0, length) + suffix;
|
|
19
|
+
}
|
|
20
|
+
return text;
|
|
21
|
+
}
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: TrimTextPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
23
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.5", ngImport: i0, type: TrimTextPipe, isStandalone: true, name: "trimText" });
|
|
24
|
+
}
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: TrimTextPipe, decorators: [{
|
|
26
|
+
type: Pipe,
|
|
27
|
+
args: [{ name: 'trimText', standalone: true }]
|
|
28
|
+
}] });
|
|
29
|
+
//# sourceMappingURL=trimText.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trimText.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/trimText/trimText.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;;AAElD;;GAEG;AAEH,MAAM,OAAO,YAAY;IAErB;;;;;OAKG;IACI,SAAS,CAAC,IAA2B,EAAE,MAAc,EAAE,SAAiB,KAAK;QAEhF,IAAG,CAAC,IAAI,EACR;YACI,OAAO,EAAE,CAAC;SACb;QAED,IAAG,IAAI,CAAC,MAAM,GAAG,MAAM,EACvB;YACI,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC;SAC7C;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;uGArBQ,YAAY;qGAAZ,YAAY;;2FAAZ,YAAY;kBADxB,IAAI;mBAAC,EAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\n\n/**\n * Trims long text and adds 'suffix' indication of longer text\n */\n@Pipe({name: 'trimText', standalone: true})\nexport class TrimTextPipe implements PipeTransform\n{\n /**\n * Trims long text and adds 'suffix' indication of longer text\n * @param text - Text to be trimmed\n * @param length - Maximal allowed length of text, that wont be trimmed\n * @param suffix - Suffix to be added when text is trimmed\n */\n public transform(text: string|undefined|null, length: number, suffix: string = '...'): string\n {\n if(!text)\n {\n return '';\n }\n\n if(text.length > length)\n {\n return text.substring(0, length) + suffix;\n }\n\n return text;\n }\n}\n"]}
|
|
@@ -8,7 +8,7 @@ export declare class DebugDataCopyClickDirective {
|
|
|
8
8
|
/**
|
|
9
9
|
* Data to be copied as serialized json
|
|
10
10
|
*/
|
|
11
|
-
data:
|
|
11
|
+
data: unknown;
|
|
12
12
|
/**
|
|
13
13
|
* Adds css class clickable to this element
|
|
14
14
|
*
|
|
@@ -23,6 +23,6 @@ export declare class DebugDataCopyClickDirective {
|
|
|
23
23
|
*/
|
|
24
24
|
copyData(): void;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<DebugDataCopyClickDirective, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DebugDataCopyClickDirective, "debug-data[copyClick]", never, { "data": { "alias": "copyClick"; "required": false; }; }, {}, never, never,
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DebugDataCopyClickDirective, "debug-data[copyClick]", never, { "data": { "alias": "copyClick"; "required": false; }; }, {}, never, never, true, never>;
|
|
27
27
|
}
|
|
28
28
|
//# sourceMappingURL=debugDataCopyClick.directive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugDataCopyClick.directive.d.ts","sourceRoot":"","sources":["debugDataCopyClick.directive.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;;AAEjD;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"debugDataCopyClick.directive.d.ts","sourceRoot":"","sources":["debugDataCopyClick.directive.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;;AAEjD;;GAEG;AACH,qBAKa,2BAA2B;IAqBxB,SAAS,CAAC,UAAU,EAAE,SAAS;IAjB3C;;OAEG;IAEI,IAAI,EAAE,OAAO,CAAC;IAIrB;;;;OAIG;IAEI,SAAS,EAAE,OAAO,CAAQ;gBAGX,UAAU,EAAE,SAAS;IAM3C;;;;OAIG;IAEI,QAAQ,IAAI,IAAI;yCAjCd,2BAA2B;2CAA3B,2BAA2B;CAqCvC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
2
|
+
import * as i1 from "@anglr/common";
|
|
3
|
+
import * as i2 from "../directives/debugDataCopyClick/debugDataCopyClick.directive";
|
|
4
4
|
/**
|
|
5
5
|
* Module for debug data copy click directive
|
|
6
6
|
*/
|
|
7
7
|
export declare class DebugDataCopyClickModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DebugDataCopyClickModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DebugDataCopyClickModule, [typeof i1.DebugDataCopyClickDirective],
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DebugDataCopyClickModule, never, [typeof i1.DebugDataComponent, typeof i2.DebugDataCopyClickDirective], [typeof i2.DebugDataCopyClickDirective, typeof i1.DebugDataComponent]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<DebugDataCopyClickModule>;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=debugDataCopyClick.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugDataCopyClick.module.d.ts","sourceRoot":"","sources":["debugDataCopyClick.module.ts"],"names":[],"mappings":";;;AAKA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"debugDataCopyClick.module.d.ts","sourceRoot":"","sources":["debugDataCopyClick.module.ts"],"names":[],"mappings":";;;AAKA;;GAEG;AACH,qBAaa,wBAAwB;yCAAxB,wBAAwB;0CAAxB,wBAAwB;0CAAxB,wBAAwB;CAEpC"}
|
package/package.json
CHANGED
|
@@ -4,12 +4,13 @@ import * as i2 from "../pipes/isPresent/isPresent.pipe";
|
|
|
4
4
|
import * as i3 from "../pipes/urlEncode/urlEncode.pipe";
|
|
5
5
|
import * as i4 from "../pipes/mergeCssClasses/mergeCssClasses.pipe";
|
|
6
6
|
import * as i5 from "../pipes/keys/keys.pipe";
|
|
7
|
+
import * as i6 from "../pipes/trimText/trimText.pipe";
|
|
7
8
|
/**
|
|
8
9
|
* Module for common utility stuff
|
|
9
10
|
*/
|
|
10
11
|
export declare class CommonUtilsModule {
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommonUtilsModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CommonUtilsModule, never, [typeof i1.IsNaNSAPipe, typeof i2.IsPresentSAPipe, typeof i3.UrlEncodeSAPipe, typeof i4.MergeCssClassesSAPipe, typeof i5.KeysSAPipe], [typeof i1.IsNaNSAPipe, typeof i2.IsPresentSAPipe, typeof i3.UrlEncodeSAPipe, typeof i4.MergeCssClassesSAPipe, typeof i5.KeysSAPipe]>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CommonUtilsModule, never, [typeof i1.IsNaNSAPipe, typeof i2.IsPresentSAPipe, typeof i3.UrlEncodeSAPipe, typeof i4.MergeCssClassesSAPipe, typeof i5.KeysSAPipe, typeof i6.TrimTextPipe], [typeof i1.IsNaNSAPipe, typeof i2.IsPresentSAPipe, typeof i3.UrlEncodeSAPipe, typeof i4.MergeCssClassesSAPipe, typeof i5.KeysSAPipe, typeof i6.TrimTextPipe]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<CommonUtilsModule>;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=commonUtils.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonUtils.module.d.ts","sourceRoot":"","sources":["commonUtils.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commonUtils.module.d.ts","sourceRoot":"","sources":["commonUtils.module.ts"],"names":[],"mappings":";;;;;;;AAIA;;GAEG;AACH,qBAqBa,iBAAiB;yCAAjB,iBAAiB;0CAAjB,iBAAiB;0CAAjB,iBAAiB;CAE7B"}
|
|
@@ -1,38 +1,18 @@
|
|
|
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
|
*/
|
|
34
14
|
protected setEnabledCssClass(): void;
|
|
35
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DebugDataComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DebugDataComponent, "debug-data", never, {}, {}, never, ["*"],
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DebugDataComponent, "debug-data", never, {}, {}, never, ["*"], true, never>;
|
|
37
17
|
}
|
|
38
18
|
//# sourceMappingURL=debugData.component.d.ts.map
|
|
@@ -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,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@if(debugDataEnabledSvc.enabled())
|
|
2
|
+
{
|
|
3
|
+
<ng-content/>
|
|
4
|
+
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "../components/debugData/debugData.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
3
|
/**
|
|
5
4
|
* Module that contains debug data component
|
|
6
5
|
*/
|
|
7
6
|
export declare class DebugDataModule {
|
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DebugDataModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DebugDataModule, [typeof i1.DebugDataComponent], [typeof
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DebugDataModule, never, [typeof i1.DebugDataComponent], [typeof i1.DebugDataComponent]>;
|
|
10
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<DebugDataModule>;
|
|
11
10
|
}
|
|
12
11
|
//# sourceMappingURL=debugData.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugData.module.d.ts","sourceRoot":"","sources":["debugData.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"debugData.module.d.ts","sourceRoot":"","sources":["debugData.module.ts"],"names":[],"mappings":";;AAIA;;GAEG;AACH,qBAWa,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAE3B"}
|
|
@@ -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/src/pipes/index.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ export * from './isPresent/isPresent.pipe';
|
|
|
6
6
|
export * from './keys/keys.pipe';
|
|
7
7
|
export * from './localize/localize.pipe';
|
|
8
8
|
export * from './mergeCssClasses/mergeCssClasses.pipe';
|
|
9
|
+
export * from './trimText/trimText.pipe';
|
|
9
10
|
export * from './urlEncode/urlEncode.pipe';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
package/src/pipes/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sDAAsD,CAAC;AACrE,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sDAAsD,CAAC;AACrE,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Trims long text and adds 'suffix' indication of longer text
|
|
5
|
+
*/
|
|
6
|
+
export declare class TrimTextPipe implements PipeTransform {
|
|
7
|
+
/**
|
|
8
|
+
* Trims long text and adds 'suffix' indication of longer text
|
|
9
|
+
* @param text - Text to be trimmed
|
|
10
|
+
* @param length - Maximal allowed length of text, that wont be trimmed
|
|
11
|
+
* @param suffix - Suffix to be added when text is trimmed
|
|
12
|
+
*/
|
|
13
|
+
transform(text: string | undefined | null, length: number, suffix?: string): string;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TrimTextPipe, never>;
|
|
15
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TrimTextPipe, "trimText", true>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=trimText.pipe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trimText.pipe.d.ts","sourceRoot":"","sources":["trimText.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;;AAElD;;GAEG;AACH,qBACa,YAAa,YAAW,aAAa;IAE9C;;;;;OAKG;IACI,SAAS,CAAC,IAAI,EAAE,MAAM,GAAC,SAAS,GAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAE,MAAc,GAAG,MAAM;yCARpF,YAAY;uCAAZ,YAAY;CAsBxB"}
|
package/styles/core/_mixins.scss
CHANGED
|
@@ -26,10 +26,19 @@
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
@mixin buildThemeColorsDebugData($theme)
|
|
30
|
+
{
|
|
31
|
+
@if $theme
|
|
32
|
+
{
|
|
33
|
+
--common-debugData-foreground: #{map.get(map.get($theme, 'debugData'), 'foreground')};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
29
37
|
@mixin buildThemeColors($theme)
|
|
30
38
|
{
|
|
31
39
|
@include buildThemeColorsTooltip($theme);
|
|
32
40
|
@include buildThemeColorsMultiButton($theme);
|
|
41
|
+
@include buildThemeColorsDebugData($theme);
|
|
33
42
|
}
|
|
34
43
|
|
|
35
44
|
@mixin buildThemeCssMisc
|
|
@@ -66,6 +75,11 @@
|
|
|
66
75
|
@include buildThemeCssMultiButton();
|
|
67
76
|
}
|
|
68
77
|
|
|
78
|
+
@mixin buildThemeDebugData($theme)
|
|
79
|
+
{
|
|
80
|
+
@include buildThemeColorsDebugData($theme);
|
|
81
|
+
}
|
|
82
|
+
|
|
69
83
|
@mixin buildTheme($theme)
|
|
70
84
|
{
|
|
71
85
|
@include buildThemeColors($theme);
|
package/styles/core/_theme.scss
CHANGED
package/version.bak
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
19.1.0-beta.
|
|
1
|
+
19.1.0-beta.20240521085756
|
package/src/style.scss
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
.progress-overlay-div
|
|
2
|
-
{
|
|
3
|
-
position: absolute;
|
|
4
|
-
transition: all 250ms linear;
|
|
5
|
-
background-color: rgba(0, 0, 0, 0.45);
|
|
6
|
-
height: 100%;
|
|
7
|
-
width: 100%;
|
|
8
|
-
top: 0;
|
|
9
|
-
left: 0;
|
|
10
|
-
z-index: 100;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
|
|
13
|
-
& > div.spinner
|
|
14
|
-
{
|
|
15
|
-
border: 3px solid #eee;
|
|
16
|
-
border-bottom: none;
|
|
17
|
-
border-top-left-radius: 24px;
|
|
18
|
-
border-top-right-radius: 24px;
|
|
19
|
-
height: 12px;
|
|
20
|
-
margin-left: auto;
|
|
21
|
-
margin-right: auto;
|
|
22
|
-
position: relative;
|
|
23
|
-
top: calc(50% - 6px);
|
|
24
|
-
width: 24px;
|
|
25
|
-
animation-name: rotate-progress-overlay;
|
|
26
|
-
animation-duration: 450ms;
|
|
27
|
-
animation-iteration-count: infinite;
|
|
28
|
-
animation-timing-function: linear;
|
|
29
|
-
transform-origin: calc(50%) calc(50% + 6px);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
& > .messages
|
|
33
|
-
{
|
|
34
|
-
color: #eee;
|
|
35
|
-
top: calc(50% + 12px);
|
|
36
|
-
position: relative;
|
|
37
|
-
text-align: center;
|
|
38
|
-
font-weight: bold;
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: column-reverse;
|
|
41
|
-
|
|
42
|
-
.message-0,
|
|
43
|
-
.message-1,
|
|
44
|
-
.message-2,
|
|
45
|
-
.message-out
|
|
46
|
-
{
|
|
47
|
-
transition: all 500ms;
|
|
48
|
-
position: absolute;
|
|
49
|
-
width: 100%;
|
|
50
|
-
top: 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.message-1
|
|
54
|
-
{
|
|
55
|
-
transform: scale3d(0.7, 0.7, 0.7) translateZ(-20px) translateY(20px);
|
|
56
|
-
opacity: 0.8;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.message-2
|
|
60
|
-
{
|
|
61
|
-
transform: scale3d(0.35, 0.35, 0.35) translateZ(-40px) translateY(80px);
|
|
62
|
-
opacity: 0.5;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.message-out
|
|
66
|
-
{
|
|
67
|
-
transform: scale3d(0, 0, 0) translateZ(-100px) translateY(160px);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
debug-data
|
|
73
|
-
{
|
|
74
|
-
color: #2CB9FF;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@keyframes rotate-progress-overlay
|
|
78
|
-
{
|
|
79
|
-
from
|
|
80
|
-
{
|
|
81
|
-
transform: rotate(0deg);
|
|
82
|
-
}
|
|
83
|
-
to
|
|
84
|
-
{
|
|
85
|
-
transform: rotate(360deg);
|
|
86
|
-
}
|
|
87
|
-
}
|