@anglr/common 18.2.0-beta.20231103075129 → 18.2.0-beta.20231103081621

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.
Files changed (37) hide show
  1. package/changelog.md +20 -0
  2. package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js +50 -0
  3. package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js.map +1 -0
  4. package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js +42 -0
  5. package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js.map +1 -0
  6. package/es2022/src/components/index.js +3 -0
  7. package/es2022/src/components/index.js.map +1 -0
  8. package/es2022/src/decorators/index.js +1 -0
  9. package/es2022/src/decorators/index.js.map +1 -1
  10. package/es2022/src/{types/providerDecoratedType.js → decorators/typeProvider.decorator.js} +1 -1
  11. package/es2022/src/decorators/typeProvider.decorator.js.map +1 -0
  12. package/es2022/src/index.js +1 -1
  13. package/es2022/src/index.js.map +1 -1
  14. package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js +1 -1
  15. package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js.map +1 -1
  16. package/es2022/src/types/providers.js +1 -1
  17. package/es2022/src/types/providers.js.map +1 -1
  18. package/package.json +1 -1
  19. package/src/components/collapsibleIcon/collapsibleIcon.component.css +60 -0
  20. package/src/components/collapsibleIcon/collapsibleIcon.component.d.ts +26 -0
  21. package/src/components/collapsibleIcon/collapsibleIcon.component.d.ts.map +1 -0
  22. package/src/components/collapsibleIcon/collapsibleIcon.component.html +6 -0
  23. package/src/components/collapsibleTitle/collapsibleTitle.component.d.ts +22 -0
  24. package/src/components/collapsibleTitle/collapsibleTitle.component.d.ts.map +1 -0
  25. package/src/components/collapsibleTitle/collapsibleTitle.component.html +5 -0
  26. package/src/components/index.d.ts +3 -0
  27. package/src/components/index.d.ts.map +1 -0
  28. package/src/decorators/index.d.ts +1 -0
  29. package/src/decorators/index.d.ts.map +1 -1
  30. package/src/{types/providerDecoratedType.d.ts → decorators/typeProvider.decorator.d.ts} +1 -1
  31. package/src/decorators/typeProvider.decorator.d.ts.map +1 -0
  32. package/src/index.d.ts +1 -1
  33. package/src/index.d.ts.map +1 -1
  34. package/src/types/providers.d.ts.map +1 -1
  35. package/version.bak +1 -1
  36. package/es2022/src/types/providerDecoratedType.js.map +0 -1
  37. package/src/types/providerDecoratedType.d.ts.map +0 -1
package/changelog.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 18.2.0 (2023-11-03)
4
+
5
+ ### Features
6
+
7
+ - new `CollapsibleIconSAComponent` component, that is used for displaying collapsible icon
8
+ - **inputs**
9
+ - `visible` initial value, if visible set to true minus is displayed, otherwise plus is displayed
10
+ - `titleText` text of title
11
+ - `cssClass` css class applied to button
12
+ - **outputs**
13
+ - `visibleChange` occurs when visible change
14
+ - new `CollapsibleTitleSAComponent` component, that is used for displaying title with collapsible icon
15
+ - projects content into view
16
+ - **inputs**
17
+ - `visible` initial value, if visible set to true minus is displayed, otherwise plus is displayed
18
+ - `cssClass` css class applied to button
19
+ - **outputs**
20
+ - `visibleChange` occurs when visible change
21
+
22
+
3
23
  ## Version 18.1.0 (2023-10-11)
4
24
 
5
25
  ### Bug Fixes
@@ -0,0 +1,50 @@
1
+ import { Component, ChangeDetectionStrategy, Input, Output, EventEmitter } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { TooltipModule } from '../../modules/tooltip';
4
+ import { LocalizeSAPipe } from '../../pipes';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/common";
7
+ import * as i2 from "../../modules/tooltip/directives/tooltip/tooltip.directive";
8
+ /**
9
+ * Component used for displaying collapsible icon
10
+ */
11
+ class CollapsibleIconSAComponent {
12
+ //######################### public properties - inputs #########################
13
+ /**
14
+ * Initial value, if visible set to true minus is displayed, otherwise plus is displayed
15
+ */
16
+ visible = false;
17
+ /**
18
+ * Text of title
19
+ */
20
+ titleText = 'show/hide detail';
21
+ /**
22
+ * Css class applied to button
23
+ */
24
+ cssClass;
25
+ //######################### public properties - outputs #########################
26
+ /**
27
+ * Occurs when visible change
28
+ */
29
+ visibleChange = new EventEmitter();
30
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CollapsibleIconSAComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
31
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: CollapsibleIconSAComponent, isStandalone: true, selector: "collapsible-icon", inputs: { visible: "visible", titleText: "titleText", cssClass: "cssClass" }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<a class=\"btn-icon\" [ngClass]=\"cssClass\" style=\"font-size: 1em;\" (click)=\"visible = !visible; visibleChange.emit(visible)\" [tooltip]=\"titleText | localize\">\r\n <div [class.plus]=\"!visible\" [class.minus]=\"visible\">\r\n <span class=\"vertical\"></span>\r\n <span class=\"horizontal\"></span>\r\n </div>\r\n</a>", styles: [":host\r\n{\r\n display: block;\r\n}\r\n\r\n/** TODO: change somehow, do not use .app-page and btn-icon maybe move into app itself away from this **/\r\n:host-context(.app-page) .btn-icon:active\r\n{\r\n transform: none;\r\n}\r\n\r\na\r\n{\r\n position: relative;\r\n display: block;\r\n width: 1em;\r\n height: 1em;\r\n}\r\n\r\ndiv\r\n{\r\n transform: translateX(calc(0.5em - 0.14em));\r\n}\r\n\r\n.vertical,\r\n.horizontal\r\n{\r\n position: absolute;\r\n border-style: solid;\r\n border-width: 0.15em;\r\n border-radius: 0.3em;\r\n display: block;\r\n height: 1em;\r\n}\r\n\r\n.plus .vertical\r\n{\r\n transition: all 350ms;\r\n transform: rotate(0deg);\r\n}\r\n\r\n.plus .horizontal\r\n{\r\n transition: all 260ms;\r\n transform: rotate(-90deg);\r\n opacity: 1;\r\n}\r\n\r\n.minus .vertical\r\n{\r\n transition: all 350ms;\r\n transform: rotate(-90deg);\r\n}\r\n\r\n.minus .horizontal\r\n{\r\n transition: all 260ms;\r\n transform: rotate(-180deg);\r\n opacity: 0;\r\n}"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.TooltipDirective, selector: "[tooltip]", inputs: ["tooltip", "allowHtml", "template", "tooltipOptions", "tooltipVisible", "containerElement"] }, { kind: "pipe", type: LocalizeSAPipe, name: "localize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
32
+ }
33
+ export { CollapsibleIconSAComponent };
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CollapsibleIconSAComponent, decorators: [{
35
+ type: Component,
36
+ args: [{ selector: 'collapsible-icon', standalone: true, imports: [
37
+ CommonModule,
38
+ TooltipModule,
39
+ LocalizeSAPipe,
40
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<a class=\"btn-icon\" [ngClass]=\"cssClass\" style=\"font-size: 1em;\" (click)=\"visible = !visible; visibleChange.emit(visible)\" [tooltip]=\"titleText | localize\">\r\n <div [class.plus]=\"!visible\" [class.minus]=\"visible\">\r\n <span class=\"vertical\"></span>\r\n <span class=\"horizontal\"></span>\r\n </div>\r\n</a>", styles: [":host\r\n{\r\n display: block;\r\n}\r\n\r\n/** TODO: change somehow, do not use .app-page and btn-icon maybe move into app itself away from this **/\r\n:host-context(.app-page) .btn-icon:active\r\n{\r\n transform: none;\r\n}\r\n\r\na\r\n{\r\n position: relative;\r\n display: block;\r\n width: 1em;\r\n height: 1em;\r\n}\r\n\r\ndiv\r\n{\r\n transform: translateX(calc(0.5em - 0.14em));\r\n}\r\n\r\n.vertical,\r\n.horizontal\r\n{\r\n position: absolute;\r\n border-style: solid;\r\n border-width: 0.15em;\r\n border-radius: 0.3em;\r\n display: block;\r\n height: 1em;\r\n}\r\n\r\n.plus .vertical\r\n{\r\n transition: all 350ms;\r\n transform: rotate(0deg);\r\n}\r\n\r\n.plus .horizontal\r\n{\r\n transition: all 260ms;\r\n transform: rotate(-90deg);\r\n opacity: 1;\r\n}\r\n\r\n.minus .vertical\r\n{\r\n transition: all 350ms;\r\n transform: rotate(-90deg);\r\n}\r\n\r\n.minus .horizontal\r\n{\r\n transition: all 260ms;\r\n transform: rotate(-180deg);\r\n opacity: 0;\r\n}"] }]
41
+ }], propDecorators: { visible: [{
42
+ type: Input
43
+ }], titleText: [{
44
+ type: Input
45
+ }], cssClass: [{
46
+ type: Input
47
+ }], visibleChange: [{
48
+ type: Output
49
+ }] } });
50
+ //# sourceMappingURL=collapsibleIcon.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsibleIcon.component.js","sourceRoot":"","sources":["../../../../src/components/collapsibleIcon/collapsibleIcon.component.ts","../../../../src/components/collapsibleIcon/collapsibleIcon.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;;;;AAE3C;;GAEG;AACH,MAca,0BAA0B;IAEnC,gFAAgF;IAEhF;;OAEG;IAEI,OAAO,GAAY,KAAK,CAAC;IAEhC;;OAEG;IAEI,SAAS,GAAW,kBAAkB,CAAC;IAE9C;;OAEG;IAEI,QAAQ,CAAwB;IAEvC,iFAAiF;IAEjF;;OAEG;IAEI,aAAa,GAA0B,IAAI,YAAY,EAAW,CAAC;uGA5BjE,0BAA0B;2FAA1B,0BAA0B,uMCvBvC,yVAKI,0kCDYI,YAAY,4HACZ,aAAa,yMACb,cAAc;;SAIT,0BAA0B;2FAA1B,0BAA0B;kBAdtC,SAAS;+BAEI,kBAAkB,cAGhB,IAAI,WAEhB;wBACI,YAAY;wBACZ,aAAa;wBACb,cAAc;qBACjB,mBACgB,uBAAuB,CAAC,MAAM;8BAUxC,OAAO;sBADb,KAAK;gBAOC,SAAS;sBADf,KAAK;gBAOC,QAAQ;sBADd,KAAK;gBASC,aAAa;sBADnB,MAAM","sourcesContent":["import {Component, ChangeDetectionStrategy, Input, Output, EventEmitter} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {TooltipModule} from '../../modules/tooltip';\nimport {LocalizeSAPipe} from '../../pipes';\n\n/**\n * Component used for displaying collapsible icon\n */\n@Component(\n{\n selector: 'collapsible-icon',\n templateUrl: 'collapsibleIcon.component.html',\n styleUrls: ['collapsibleIcon.component.css'],\n standalone: true,\n imports:\n [\n CommonModule,\n TooltipModule,\n LocalizeSAPipe,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CollapsibleIconSAComponent\n{\n //######################### public properties - inputs #########################\n\n /**\n * Initial value, if visible set to true minus is displayed, otherwise plus is displayed\n */\n @Input()\n public visible: boolean = false;\n\n /**\n * Text of title\n */\n @Input()\n public titleText: string = 'show/hide detail';\n\n /**\n * Css class applied to button\n */\n @Input()\n public cssClass: string|undefined|null;\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when visible change\n */\n @Output()\n public visibleChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n}","<a class=\"btn-icon\" [ngClass]=\"cssClass\" style=\"font-size: 1em;\" (click)=\"visible = !visible; visibleChange.emit(visible)\" [tooltip]=\"titleText | localize\">\r\n <div [class.plus]=\"!visible\" [class.minus]=\"visible\">\r\n <span class=\"vertical\"></span>\r\n <span class=\"horizontal\"></span>\r\n </div>\r\n</a>"]}
@@ -0,0 +1,42 @@
1
+ import { Component, ChangeDetectionStrategy, Input, Output, EventEmitter } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { HostDisplayBlockStyle } from '../../types/styles';
4
+ import { CollapsibleIconSAComponent } from '../collapsibleIcon/collapsibleIcon.component';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/common";
7
+ /**
8
+ * Component used for displaying title with collapsible icon
9
+ */
10
+ class CollapsibleTitleSAComponent {
11
+ //######################### public properties - inputs #########################
12
+ /**
13
+ * Initial value, if visible set to true minus is displayed, otherwise plus is displayed
14
+ */
15
+ visible = false;
16
+ /**
17
+ * Css class applied to button
18
+ */
19
+ cssClass;
20
+ //######################### public properties - outputs #########################
21
+ /**
22
+ * Occurs when visible change
23
+ */
24
+ visibleChange = new EventEmitter();
25
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CollapsibleTitleSAComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
26
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: CollapsibleTitleSAComponent, isStandalone: true, selector: "collapsible-title", inputs: { visible: "visible", cssClass: "cssClass" }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<div class=\"flex-row\" [ngClass]=\"cssClass\">\r\n <collapsible-icon cssClass=\"margin-right-small\" [visible]=\"visible\" (visibleChange)=\"visible = $event; visibleChange.emit($event)\"></collapsible-icon>\r\n\r\n <ng-content></ng-content>\r\n</div>", styles: [":host{display: block;}"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: CollapsibleIconSAComponent, selector: "collapsible-icon", inputs: ["visible", "titleText", "cssClass"], outputs: ["visibleChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
27
+ }
28
+ export { CollapsibleTitleSAComponent };
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CollapsibleTitleSAComponent, decorators: [{
30
+ type: Component,
31
+ args: [{ selector: 'collapsible-title', standalone: true, imports: [
32
+ CommonModule,
33
+ CollapsibleIconSAComponent,
34
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex-row\" [ngClass]=\"cssClass\">\r\n <collapsible-icon cssClass=\"margin-right-small\" [visible]=\"visible\" (visibleChange)=\"visible = $event; visibleChange.emit($event)\"></collapsible-icon>\r\n\r\n <ng-content></ng-content>\r\n</div>", styles: [":host{display: block;}"] }]
35
+ }], propDecorators: { visible: [{
36
+ type: Input
37
+ }], cssClass: [{
38
+ type: Input
39
+ }], visibleChange: [{
40
+ type: Output
41
+ }] } });
42
+ //# sourceMappingURL=collapsibleTitle.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsibleTitle.component.js","sourceRoot":"","sources":["../../../../src/components/collapsibleTitle/collapsibleTitle.component.ts","../../../../src/components/collapsibleTitle/collapsibleTitle.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAC,0BAA0B,EAAC,MAAM,8CAA8C,CAAC;;;AAExF;;GAEG;AACH,MAaa,2BAA2B;IAEpC,gFAAgF;IAEhF;;OAEG;IAEI,OAAO,GAAY,KAAK,CAAC;IAEhC;;OAEG;IAEI,QAAQ,CAAwB;IAEvC,iFAAiF;IAEjF;;OAEG;IAEI,aAAa,GAA0B,IAAI,YAAY,EAAW,CAAC;uGAtBjE,2BAA2B;2FAA3B,2BAA2B,gLCtBxC,oQAIM,+EDaE,YAAY,6HACZ,0BAA0B;;SAIrB,2BAA2B;2FAA3B,2BAA2B;kBAbvC,SAAS;+BAEI,mBAAmB,cAGjB,IAAI,WAEhB;wBACI,YAAY;wBACZ,0BAA0B;qBAC7B,mBACgB,uBAAuB,CAAC,MAAM;8BAUxC,OAAO;sBADb,KAAK;gBAOC,QAAQ;sBADd,KAAK;gBASC,aAAa;sBADnB,MAAM","sourcesContent":["import {Component, ChangeDetectionStrategy, Input, Output, EventEmitter} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {HostDisplayBlockStyle} from '../../types/styles';\nimport {CollapsibleIconSAComponent} from '../collapsibleIcon/collapsibleIcon.component';\n\n/**\n * Component used for displaying title with collapsible icon\n */\n@Component(\n{\n selector: 'collapsible-title',\n templateUrl: 'collapsibleTitle.component.html',\n styles: [HostDisplayBlockStyle],\n standalone: true,\n imports:\n [\n CommonModule,\n CollapsibleIconSAComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CollapsibleTitleSAComponent\n{\n //######################### public properties - inputs #########################\n\n /**\n * Initial value, if visible set to true minus is displayed, otherwise plus is displayed\n */\n @Input()\n public visible: boolean = false;\n\n /**\n * Css class applied to button\n */\n @Input()\n public cssClass: string|undefined|null;\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when visible change\n */\n @Output()\n public visibleChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n}","<div class=\"flex-row\" [ngClass]=\"cssClass\">\r\n <collapsible-icon cssClass=\"margin-right-small\" [visible]=\"visible\" (visibleChange)=\"visible = $event; visibleChange.emit($event)\"></collapsible-icon>\r\n\r\n <ng-content></ng-content>\r\n</div>"]}
@@ -0,0 +1,3 @@
1
+ export * from './collapsibleIcon/collapsibleIcon.component';
2
+ export * from './collapsibleTitle/collapsibleTitle.component';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+CAA+C,CAAC","sourcesContent":["export * from './collapsibleIcon/collapsibleIcon.component';\nexport * from './collapsibleTitle/collapsibleTitle.component';\n"]}
@@ -3,4 +3,5 @@ export * from './componentDisplayBlock.decorator';
3
3
  export * from './componentDisplayFlex.decorator';
4
4
  export * from './componentHostStyle.decorator';
5
5
  export * from './scrollableContent.decorator';
6
+ export * from './typeProvider.decorator';
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC","sourcesContent":["export * from './componentDisplay.decorator';\nexport * from './componentDisplayBlock.decorator';\nexport * from './componentDisplayFlex.decorator';\nexport * from './componentHostStyle.decorator';\nexport * from './scrollableContent.decorator';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC","sourcesContent":["export * from './componentDisplay.decorator';\nexport * from './componentDisplayBlock.decorator';\nexport * from './componentDisplayFlex.decorator';\nexport * from './componentHostStyle.decorator';\nexport * from './scrollableContent.decorator';\nexport * from './typeProvider.decorator';\n"]}
@@ -29,4 +29,4 @@ export function TypeProvider(provider) {
29
29
  return target;
30
30
  };
31
31
  }
32
- //# sourceMappingURL=providerDecoratedType.js.map
32
+ //# sourceMappingURL=typeProvider.decorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeProvider.decorator.js","sourceRoot":"","sources":["../../../src/decorators/typeProvider.decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAatC;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAmB;IAElD,MAAM,gBAAgB,GAAG,IAA6B,CAAC;IAEvD,IAAG,CAAC,gBAAgB,CAAC,UAAU,EAC/B;QACI,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,uBAAuB,CAAC,CAAC;KACxD;IAED,OAAO,gBAAgB,CAAC,UAAU,CAAC;AACvC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,QAAkB;IAE3C,wDAAwD;IACxD,OAAO,UAAsC,MAAiB;QAE1D,MAAM,gBAAgB,GAAG,MAA+B,CAAC;QAEzD,IAAG,CAAC,gBAAgB,CAAC,UAAU,EAC/B;YACI,MAAM,CAAC,cAAc,CAAC,gBAAgB,EAAE,MAAM,CAAwB,YAAY,CAAC,EACnF;gBACI,KAAK,EAAE,QAAQ;gBACf,QAAQ,EAAE,KAAK;gBACf,UAAU,EAAE,KAAK;gBACjB,YAAY,EAAE,KAAK;aACtB,CAAC,CAAC;SACN;QAED,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC;AACN,CAAC","sourcesContent":["import {Provider, Type} from '@angular/core';\nimport {nameof} from '@jscrpt/common';\n\n/**\n * Type that contains provider\n */\ninterface ProviderDecoratedType\n{\n /**\n * Provider that is attached to type\n */\n ɵɵprovider?: Provider;\n}\n\n/**\n * Gets provider from type\n * @param type - Type that should contain provider\n */\nexport function getProviderForType(type: Type<unknown>): Provider\n{\n const typeWithProvider = type as ProviderDecoratedType;\n\n if(!typeWithProvider.ɵɵprovider)\n {\n throw new Error(`Type ${type} is without provider!`);\n }\n\n return typeWithProvider.ɵɵprovider;\n}\n\n/**\n * Attach provider to type\n * @param provider - Provider to be attached\n */\nexport function TypeProvider(provider: Provider): ClassDecorator\n{\n // eslint-disable-next-line @typescript-eslint/ban-types\n return function<TFunction extends Function> (target: TFunction): TFunction\n {\n const typeWithProvider = target as ProviderDecoratedType;\n \n if(!typeWithProvider.ɵɵprovider)\n {\n Object.defineProperty(typeWithProvider, nameof<ProviderDecoratedType>('ɵɵprovider'),\n {\n value: provider,\n writable: false,\n enumerable: false,\n configurable: false,\n });\n }\n\n return target;\n };\n}"]}
@@ -8,6 +8,7 @@ export { DebugDataEnabledService } from './modules/debugData/services/debugDataE
8
8
  export { MultiButtonComponent } from './modules/multiButton/components/multiButton/multiButton.component';
9
9
  export { MULTI_BUTTON_CSS_CLASSES } from './modules/multiButton/misc/tokens';
10
10
  export { MultiButtonModule } from './modules/multiButton/modules/multiButton.module';
11
+ export * from './components';
11
12
  export * from './decorators';
12
13
  export * from './modules/castPipes';
13
14
  export * from './modules/progressIndicator';
@@ -18,7 +19,6 @@ export * from './types/host';
18
19
  export * from './types/styles';
19
20
  export * from './types/tokens';
20
21
  export * from './types/providers';
21
- export * from './types/providerDecoratedType';
22
22
  export * from './utils';
23
23
  export { CookieService } from './services/cookies/cookies.service';
24
24
  export { StatusCodeService } from './services/statusCode/statusCode.service';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAC,mBAAmB,EAAC,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAC,oBAAoB,EAAC,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,eAAe,EAAC,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAC,kBAAkB,EAAC,MAAM,8DAA8D,CAAC;AAChG,OAAO,EAAC,uBAAuB,EAAC,MAAM,wEAAwE,CAAC;AAC/G,OAAO,EAAC,oBAAoB,EAAC,MAAM,oEAAoE,CAAC;AAExG,OAAO,EAAC,wBAAwB,EAAC,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAC,iBAAiB,EAAC,MAAM,kDAAkD,CAAC;AACnF,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,SAAS,CAAC;AACxB,OAAO,EAAC,aAAa,EAAC,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAmB,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACrF,OAAO,EAAC,sBAAsB,EAAmB,MAAM,6BAA6B,CAAC;AACrF,OAAO,EAAC,oBAAoB,EAAqB,MAAM,+BAA+B,CAAC;AACvF,cAAc,8CAA8C,CAAC;AAC7D,cAAc,kDAAkD,CAAC;AACjE,cAAc,sCAAsC,CAAC;AACrD,cAAc,8CAA8C,CAAC;AAC7D,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,UAAU,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,gBAAgB,EAAC,MAAM,SAAS,CAAC;AACnG,OAAO,EAAC,qBAAqB,EAAE,2BAA2B,EAAE,YAAY,EAAE,oBAAoB,EAAiB,oBAAoB,EAAuF,MAAM,0BAA0B,CAAC;AAC3P,cAAc,qBAAqB,CAAC;AAEpC,sBAAsB;AACtB,0BAA0B","sourcesContent":["export {GlobalizationService} from './services/globalization/globalization.service';\nexport {CommonDynamicModule} from './modules/commonDynamic.module';\nexport {CommonLocalizeModule} from './modules/commonLocalize.module';\nexport {CommonUtilsModule} from './modules/commonUtils.module';\nexport {DebugDataModule} from './modules/debugData/modules/debugData.module';\nexport {DebugDataComponent} from './modules/debugData/components/debugData/debugData.component';\nexport {DebugDataEnabledService} from './modules/debugData/services/debugDataEnabled/debugDataEnabled.service';\nexport {MultiButtonComponent} from './modules/multiButton/components/multiButton/multiButton.component';\nexport {MultiButtonCssClasses} from './modules/multiButton/components/multiButton/multiButton.interface';\nexport {MULTI_BUTTON_CSS_CLASSES} from './modules/multiButton/misc/tokens';\nexport {MultiButtonModule} from './modules/multiButton/modules/multiButton.module';\nexport * from './decorators';\nexport * from './modules/castPipes';\nexport * from './modules/progressIndicator';\nexport * from './modules/logger';\nexport * from './modules/tooltip';\nexport * from './pipes';\nexport * from './types/host';\nexport * from './types/styles';\nexport * from './types/tokens';\nexport * from './types/providers';\nexport * from './types/providerDecoratedType';\nexport * from './utils';\nexport {CookieService} from './services/cookies/cookies.service';\nexport {StatusCodeService} from './services/statusCode/statusCode.service';\nexport {PermanentStorage, CookiePermanentStorage} from './services/permanentStorage';\nexport {MemoryTemporaryStorage, TemporaryStorage} from './services/temporaryStorage';\nexport {NoStringLocalization, StringLocalization} from './services/stringLocalization';\nexport * from './directives/bodyRender/bodyRender.directive';\nexport * from './directives/clickOutside/clickOutside.directive';\nexport * from './directives/goBack/goBack.directive';\nexport * from './directives/positionTo/positionTo.directive';\nexport {NgComponentOutletEx} from './directives/ngComponentOutletEx/ngComponentOutletEx.directive';\nexport {APP_STABLE, extractAppStableResolve, runWhenModuleStable, runWhenAppStable} from './utils';\nexport {DEFAULT_NOTIFICATIONS, DefaultNotificationsService, Notification, NotificationSeverity, Notifications, NotificationsOptions, NotificationsProvider, NotificationsScopeProvider, NotificationsScopeProviderFactory} from './services/notifications';\nexport * from './services/position';\n\n//TODO: any to unknown\n//TODO: strict null checks"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAC,mBAAmB,EAAC,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAC,oBAAoB,EAAC,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,eAAe,EAAC,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAC,kBAAkB,EA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BAA0B","sourcesContent":["export {GlobalizationService} from './services/globalization/globalization.service';\nexport {CommonDynamicModule} from './modules/commonDynamic.module';\nexport {CommonLocalizeModule} from './modules/commonLocalize.module';\nexport {CommonUtilsModule} from './modules/commonUtils.module';\nexport {DebugDataModule} from './modules/debugData/modules/debugData.module';\nexport {DebugDataComponent} from './modules/debugData/components/debugData/debugData.component';\nexport {DebugDataEnabledService} from './modules/debugData/services/debugDataEnabled/debugDataEnabled.service';\nexport {MultiButtonComponent} from './modules/multiButton/components/multiButton/multiButton.component';\nexport {MultiButtonCssClasses} from './modules/multiButton/components/multiButton/multiButton.interface';\nexport {MULTI_BUTTON_CSS_CLASSES} from './modules/multiButton/misc/tokens';\nexport {MultiButtonModule} from './modules/multiButton/modules/multiButton.module';\nexport * from './components';\nexport * from './decorators';\nexport * from './modules/castPipes';\nexport * from './modules/progressIndicator';\nexport * from './modules/logger';\nexport * from './modules/tooltip';\nexport * from './pipes';\nexport * from './types/host';\nexport * from './types/styles';\nexport * from './types/tokens';\nexport * from './types/providers';\nexport * from './utils';\nexport {CookieService} from './services/cookies/cookies.service';\nexport {StatusCodeService} from './services/statusCode/statusCode.service';\nexport {PermanentStorage, CookiePermanentStorage} from './services/permanentStorage';\nexport {MemoryTemporaryStorage, TemporaryStorage} from './services/temporaryStorage';\nexport {NoStringLocalization, StringLocalization} from './services/stringLocalization';\nexport * from './directives/bodyRender/bodyRender.directive';\nexport * from './directives/clickOutside/clickOutside.directive';\nexport * from './directives/goBack/goBack.directive';\nexport * from './directives/positionTo/positionTo.directive';\nexport {NgComponentOutletEx} from './directives/ngComponentOutletEx/ngComponentOutletEx.directive';\nexport {APP_STABLE, extractAppStableResolve, runWhenModuleStable, runWhenAppStable} from './utils';\nexport {DEFAULT_NOTIFICATIONS, DefaultNotificationsService, Notification, NotificationSeverity, Notifications, NotificationsOptions, NotificationsProvider, NotificationsScopeProvider, NotificationsScopeProviderFactory} from './services/notifications';\nexport * from './services/position';\n\n//TODO: any to unknown\n//TODO: strict null checks"]}
@@ -3,7 +3,7 @@ import { __decorate, __metadata } from "tslib";
3
3
  import { Injectable, forwardRef } from '@angular/core';
4
4
  import { CookieService } from '../cookies/cookies.service';
5
5
  import { PERMANENT_STORAGE } from '../../types/tokens';
6
- import { TypeProvider } from '../../types/providerDecoratedType';
6
+ import { TypeProvider } from '../../decorators';
7
7
  import * as i0 from "@angular/core";
8
8
  import * as i1 from "../cookies/cookies.service";
9
9
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"cookiePermanentStorage.service.js","sourceRoot":"","sources":["../../../../src/services/permanentStorage/cookiePermanentStorage.service.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAGrD,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,mCAAmC,CAAC;;;AAE/D;;GAEG;AACH,IAEa,sBAAsB,8BAFnC,MAEa,sBAAsB;IAGX;IADpB,iEAAiE;IACjE,YAAoB,QAAuB;QAAvB,aAAQ,GAAR,QAAQ,CAAe;IAE3C,CAAC;IAED,2GAA2G;IAE3G;;;OAGG;IACI,GAAG,CAAU,IAAY;QAE5B,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IAiBD;;;;;OAKG;IACI,GAAG,CAAC,IAAY,EAAE,KAAU,EAAE,OAAc;QAE/C,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAClF,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,IAAY;QAEtB,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1C,CAAC;uGAnDQ,sBAAsB;2GAAtB,sBAAsB;;AAAtB,sBAAsB;IADlC,YAAY,CAAC,EAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,wBAAsB,CAAC,EAAC,CAAC;qCAI7D,aAAa;GAHlC,sBAAsB,CAoDlC;SApDY,sBAAsB;2FAAtB,sBAAsB;kBAFlC,UAAU","sourcesContent":["import {Injectable, forwardRef} from '@angular/core';\n\nimport {PermanentStorage} from './permanentStorage.interface';\nimport {CookieService} from '../cookies/cookies.service';\nimport {PERMANENT_STORAGE} from '../../types/tokens';\nimport {TypeProvider} from '../../types/providerDecoratedType';\n\n/**\n * Implementation of permanent storage using cookies\n */\n@Injectable()\n@TypeProvider({provide: PERMANENT_STORAGE, useClass: forwardRef(() => CookiePermanentStorage)})\nexport class CookiePermanentStorage implements PermanentStorage\n{\n //######################### constructor #########################\n constructor(private _cookies: CookieService)\n {\n }\n\n //######################### public methods - implementation of StringLocalization #########################\n\n /**\n * Gets value that was stored with 'name' from permanent storage\n * @param name - Name with which was value stored\n */\n public get<TResult>(name: string): TResult\n {\n return this._cookies.getCookie(name);\n }\n\n /**\n * Sets value that will be stored with 'name'e in permanent storage\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n */\n public set(name: string, value: any): void;\n\n /**\n * Sets value that will be stored with 'name' in permanent storage until expiration date\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n * @param expires - Time when value should expire\n */\n public set(name: string, value: any, expires: Date): void;\n\n /**\n * Sets value that will be stored with 'name' in permanent storage until expiration date\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n * @param expires - Time when value should expire\n */\n public set(name: string, value: any, expires?: Date): void\n {\n this._cookies.setCookie(name, value, expires ? expires.valueOf() : null, '/');\n }\n\n /**\n * Removes value stored with 'name' from permanent storage\n * @param name - Name of stored value that will be removed\n */\n public remove(name: string): void\n {\n this._cookies.deleteCookie(name, '/');\n }\n}\n"]}
1
+ {"version":3,"file":"cookiePermanentStorage.service.js","sourceRoot":"","sources":["../../../../src/services/permanentStorage/cookiePermanentStorage.service.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAGrD,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;;;AAE9C;;GAEG;AACH,IAEa,sBAAsB,8BAFnC,MAEa,sBAAsB;IAGX;IADpB,iEAAiE;IACjE,YAAoB,QAAuB;QAAvB,aAAQ,GAAR,QAAQ,CAAe;IAE3C,CAAC;IAED,2GAA2G;IAE3G;;;OAGG;IACI,GAAG,CAAU,IAAY;QAE5B,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IAiBD;;;;;OAKG;IACI,GAAG,CAAC,IAAY,EAAE,KAAU,EAAE,OAAc;QAE/C,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAClF,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,IAAY;QAEtB,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1C,CAAC;uGAnDQ,sBAAsB;2GAAtB,sBAAsB;;AAAtB,sBAAsB;IADlC,YAAY,CAAC,EAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,wBAAsB,CAAC,EAAC,CAAC;qCAI7D,aAAa;GAHlC,sBAAsB,CAoDlC;SApDY,sBAAsB;2FAAtB,sBAAsB;kBAFlC,UAAU","sourcesContent":["import {Injectable, forwardRef} from '@angular/core';\n\nimport {PermanentStorage} from './permanentStorage.interface';\nimport {CookieService} from '../cookies/cookies.service';\nimport {PERMANENT_STORAGE} from '../../types/tokens';\nimport {TypeProvider} from '../../decorators';\n\n/**\n * Implementation of permanent storage using cookies\n */\n@Injectable()\n@TypeProvider({provide: PERMANENT_STORAGE, useClass: forwardRef(() => CookiePermanentStorage)})\nexport class CookiePermanentStorage implements PermanentStorage\n{\n //######################### constructor #########################\n constructor(private _cookies: CookieService)\n {\n }\n\n //######################### public methods - implementation of StringLocalization #########################\n\n /**\n * Gets value that was stored with 'name' from permanent storage\n * @param name - Name with which was value stored\n */\n public get<TResult>(name: string): TResult\n {\n return this._cookies.getCookie(name);\n }\n\n /**\n * Sets value that will be stored with 'name'e in permanent storage\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n */\n public set(name: string, value: any): void;\n\n /**\n * Sets value that will be stored with 'name' in permanent storage until expiration date\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n * @param expires - Time when value should expire\n */\n public set(name: string, value: any, expires: Date): void;\n\n /**\n * Sets value that will be stored with 'name' in permanent storage until expiration date\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n * @param expires - Time when value should expire\n */\n public set(name: string, value: any, expires?: Date): void\n {\n this._cookies.setCookie(name, value, expires ? expires.valueOf() : null, '/');\n }\n\n /**\n * Removes value stored with 'name' from permanent storage\n * @param name - Name of stored value that will be removed\n */\n public remove(name: string): void\n {\n this._cookies.deleteCookie(name, '/');\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { makeEnvironmentProviders } from '@angular/core';
2
- import { getProviderForType } from './providerDecoratedType';
2
+ import { getProviderForType } from '../decorators';
3
3
  /**
4
4
  * Provides logger service type
5
5
  * @param type - Type of logger that should be used
@@ -1 +1 @@
1
- {"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/types/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,wBAAwB,EAAC,MAAM,eAAe,CAAC;AAMnF,OAAO,EAAC,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAG3D;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,IAAkB;IAE5C,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAA4B;IAEhE,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,IAAoB;IAEhD,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAA8B;IAEpE,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAA4B;IAEhE,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC","sourcesContent":["import {EnvironmentProviders, Type, makeEnvironmentProviders} from '@angular/core';\n\nimport {PermanentStorage} from '../services/permanentStorage/permanentStorage.interface';\nimport {Position} from '../services/position/position.interface';\nimport {StringLocalization} from '../services/stringLocalization/stringLocalization.interface';\nimport {TemporaryStorage} from '../services/temporaryStorage/temporaryStorage.interface';\nimport {getProviderForType} from './providerDecoratedType';\nimport {Logger} from '../modules/logger';\n\n/**\n * Provides logger service type\n * @param type - Type of logger that should be used\n */\nexport function provideLogger(type: Type<Logger>): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n\n/**\n * Provides permanent storage service type\n * @param type - Type of permanent storage that should be used\n */\nexport function providePermanentStorage(type: Type<PermanentStorage>): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n\n/**\n * Provides position service type\n * @param type - Type of position that should be used\n */\nexport function providePosition(type: Type<Position>): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n\n/**\n * Provides string localization service type\n * @param type - Type of string localization that should be used\n */\nexport function provideStringLocalization(type: Type<StringLocalization>): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n\n/**\n * Provides temporary storage service type\n * @param type - Type of temporary storage that should be used\n */\nexport function provideTemporaryStorage(type: Type<TemporaryStorage>): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n"]}
1
+ {"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/types/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,wBAAwB,EAAC,MAAM,eAAe,CAAC;AAOnF,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAEjD;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,IAAkB;IAE5C,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAA4B;IAEhE,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,IAAoB;IAEhD,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAA8B;IAEpE,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAA4B;IAEhE,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC","sourcesContent":["import {EnvironmentProviders, Type, makeEnvironmentProviders} from '@angular/core';\n\nimport {PermanentStorage} from '../services/permanentStorage/permanentStorage.interface';\nimport {Position} from '../services/position/position.interface';\nimport {StringLocalization} from '../services/stringLocalization/stringLocalization.interface';\nimport {TemporaryStorage} from '../services/temporaryStorage/temporaryStorage.interface';\nimport {Logger} from '../modules/logger';\nimport {getProviderForType} from '../decorators';\n\n/**\n * Provides logger service type\n * @param type - Type of logger that should be used\n */\nexport function provideLogger(type: Type<Logger>): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n\n/**\n * Provides permanent storage service type\n * @param type - Type of permanent storage that should be used\n */\nexport function providePermanentStorage(type: Type<PermanentStorage>): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n\n/**\n * Provides position service type\n * @param type - Type of position that should be used\n */\nexport function providePosition(type: Type<Position>): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n\n/**\n * Provides string localization service type\n * @param type - Type of string localization that should be used\n */\nexport function provideStringLocalization(type: Type<StringLocalization>): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n\n/**\n * Provides temporary storage service type\n * @param type - Type of temporary storage that should be used\n */\nexport function provideTemporaryStorage(type: Type<TemporaryStorage>): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anglr/common",
3
- "version": "18.2.0-beta.20231103075129",
3
+ "version": "18.2.0-beta.20231103081621",
4
4
  "description": "Angular module for common angular stuff",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -0,0 +1,60 @@
1
+ :host
2
+ {
3
+ display: block;
4
+ }
5
+
6
+ /** TODO: change somehow, do not use .app-page and btn-icon maybe move into app itself away from this **/
7
+ :host-context(.app-page) .btn-icon:active
8
+ {
9
+ transform: none;
10
+ }
11
+
12
+ a
13
+ {
14
+ position: relative;
15
+ display: block;
16
+ width: 1em;
17
+ height: 1em;
18
+ }
19
+
20
+ div
21
+ {
22
+ transform: translateX(calc(0.5em - 0.14em));
23
+ }
24
+
25
+ .vertical,
26
+ .horizontal
27
+ {
28
+ position: absolute;
29
+ border-style: solid;
30
+ border-width: 0.15em;
31
+ border-radius: 0.3em;
32
+ display: block;
33
+ height: 1em;
34
+ }
35
+
36
+ .plus .vertical
37
+ {
38
+ transition: all 350ms;
39
+ transform: rotate(0deg);
40
+ }
41
+
42
+ .plus .horizontal
43
+ {
44
+ transition: all 260ms;
45
+ transform: rotate(-90deg);
46
+ opacity: 1;
47
+ }
48
+
49
+ .minus .vertical
50
+ {
51
+ transition: all 350ms;
52
+ transform: rotate(-90deg);
53
+ }
54
+
55
+ .minus .horizontal
56
+ {
57
+ transition: all 260ms;
58
+ transform: rotate(-180deg);
59
+ opacity: 0;
60
+ }
@@ -0,0 +1,26 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Component used for displaying collapsible icon
5
+ */
6
+ export declare class CollapsibleIconSAComponent {
7
+ /**
8
+ * Initial value, if visible set to true minus is displayed, otherwise plus is displayed
9
+ */
10
+ visible: boolean;
11
+ /**
12
+ * Text of title
13
+ */
14
+ titleText: string;
15
+ /**
16
+ * Css class applied to button
17
+ */
18
+ cssClass: string | undefined | null;
19
+ /**
20
+ * Occurs when visible change
21
+ */
22
+ visibleChange: EventEmitter<boolean>;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleIconSAComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<CollapsibleIconSAComponent, "collapsible-icon", never, { "visible": { "alias": "visible"; "required": false; }; "titleText": { "alias": "titleText"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; }, { "visibleChange": "visibleChange"; }, never, never, true, never>;
25
+ }
26
+ //# sourceMappingURL=collapsibleIcon.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsibleIcon.component.d.ts","sourceRoot":"","sources":["collapsibleIcon.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,YAAY,EAAC,MAAM,eAAe,CAAC;;AAM9F;;GAEG;AACH,qBAca,0BAA0B;IAInC;;OAEG;IAEI,OAAO,EAAE,OAAO,CAAS;IAEhC;;OAEG;IAEI,SAAS,EAAE,MAAM,CAAsB;IAE9C;;OAEG;IAEI,QAAQ,EAAE,MAAM,GAAC,SAAS,GAAC,IAAI,CAAC;IAIvC;;OAEG;IAEI,aAAa,EAAE,YAAY,CAAC,OAAO,CAAC,CAA+B;yCA5BjE,0BAA0B;2CAA1B,0BAA0B;CA6BtC"}
@@ -0,0 +1,6 @@
1
+ <a class="btn-icon" [ngClass]="cssClass" style="font-size: 1em;" (click)="visible = !visible; visibleChange.emit(visible)" [tooltip]="titleText | localize">
2
+ <div [class.plus]="!visible" [class.minus]="visible">
3
+ <span class="vertical"></span>
4
+ <span class="horizontal"></span>
5
+ </div>
6
+ </a>
@@ -0,0 +1,22 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Component used for displaying title with collapsible icon
5
+ */
6
+ export declare class CollapsibleTitleSAComponent {
7
+ /**
8
+ * Initial value, if visible set to true minus is displayed, otherwise plus is displayed
9
+ */
10
+ visible: boolean;
11
+ /**
12
+ * Css class applied to button
13
+ */
14
+ cssClass: string | undefined | null;
15
+ /**
16
+ * Occurs when visible change
17
+ */
18
+ visibleChange: EventEmitter<boolean>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleTitleSAComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<CollapsibleTitleSAComponent, "collapsible-title", never, { "visible": { "alias": "visible"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; }, { "visibleChange": "visibleChange"; }, never, ["*"], true, never>;
21
+ }
22
+ //# sourceMappingURL=collapsibleTitle.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsibleTitle.component.d.ts","sourceRoot":"","sources":["collapsibleTitle.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,YAAY,EAAC,MAAM,eAAe,CAAC;;AAM9F;;GAEG;AACH,qBAaa,2BAA2B;IAIpC;;OAEG;IAEI,OAAO,EAAE,OAAO,CAAS;IAEhC;;OAEG;IAEI,QAAQ,EAAE,MAAM,GAAC,SAAS,GAAC,IAAI,CAAC;IAIvC;;OAEG;IAEI,aAAa,EAAE,YAAY,CAAC,OAAO,CAAC,CAA+B;yCAtBjE,2BAA2B;2CAA3B,2BAA2B;CAuBvC"}
@@ -0,0 +1,5 @@
1
+ <div class="flex-row" [ngClass]="cssClass">
2
+ <collapsible-icon cssClass="margin-right-small" [visible]="visible" (visibleChange)="visible = $event; visibleChange.emit($event)"></collapsible-icon>
3
+
4
+ <ng-content></ng-content>
5
+ </div>
@@ -0,0 +1,3 @@
1
+ export * from './collapsibleIcon/collapsibleIcon.component';
2
+ export * from './collapsibleTitle/collapsibleTitle.component';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+CAA+C,CAAC"}
@@ -3,4 +3,5 @@ export * from './componentDisplayBlock.decorator';
3
3
  export * from './componentDisplayFlex.decorator';
4
4
  export * from './componentHostStyle.decorator';
5
5
  export * from './scrollableContent.decorator';
6
+ export * from './typeProvider.decorator';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC"}
@@ -9,4 +9,4 @@ export declare function getProviderForType(type: Type<unknown>): Provider;
9
9
  * @param provider - Provider to be attached
10
10
  */
11
11
  export declare function TypeProvider(provider: Provider): ClassDecorator;
12
- //# sourceMappingURL=providerDecoratedType.d.ts.map
12
+ //# sourceMappingURL=typeProvider.decorator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeProvider.decorator.d.ts","sourceRoot":"","sources":["typeProvider.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AAc7C;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,QAAQ,CAUhE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,CAoB/D"}
package/src/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export { MultiButtonComponent } from './modules/multiButton/components/multiButt
9
9
  export { MultiButtonCssClasses } from './modules/multiButton/components/multiButton/multiButton.interface';
10
10
  export { MULTI_BUTTON_CSS_CLASSES } from './modules/multiButton/misc/tokens';
11
11
  export { MultiButtonModule } from './modules/multiButton/modules/multiButton.module';
12
+ export * from './components';
12
13
  export * from './decorators';
13
14
  export * from './modules/castPipes';
14
15
  export * from './modules/progressIndicator';
@@ -19,7 +20,6 @@ export * from './types/host';
19
20
  export * from './types/styles';
20
21
  export * from './types/tokens';
21
22
  export * from './types/providers';
22
- export * from './types/providerDecoratedType';
23
23
  export * from './utils';
24
24
  export { CookieService } from './services/cookies/cookies.service';
25
25
  export { StatusCodeService } from './services/statusCode/statusCode.service';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAC,mBAAmB,EAAC,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAC,oBAAoB,EAAC,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,eAAe,EAAC,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAC,kBAAkB,EAAC,MAAM,8DAA8D,CAAC;AAChG,OAAO,EAAC,uBAAuB,EAAC,MAAM,wEAAwE,CAAC;AAC/G,OAAO,EAAC,oBAAoB,EAAC,MAAM,oEAAoE,CAAC;AACxG,OAAO,EAAC,qBAAqB,EAAC,MAAM,oEAAoE,CAAC;AACzG,OAAO,EAAC,wBAAwB,EAAC,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAC,iBAAiB,EAAC,MAAM,kDAAkD,CAAC;AACnF,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,SAAS,CAAC;AACxB,OAAO,EAAC,aAAa,EAAC,MAAM,oCAAoC,CAAC;AACjE,OAAO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CAAC;AAGzC;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,oBAAoB,CAMtE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,gBAAgB,CAAC,GAAG,oBAAoB,CAM1F;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,oBAAoB,CAM1E;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAAC,GAAG,oBAAoB,CAM9F;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,gBAAgB,CAAC,GAAG,oBAAoB,CAM1F"}
package/version.bak CHANGED
@@ -1 +1 @@
1
- 18.2.0-beta.20231103075129
1
+ 18.2.0-beta.20231103081621
@@ -1 +0,0 @@
1
- {"version":3,"file":"providerDecoratedType.js","sourceRoot":"","sources":["../../../src/types/providerDecoratedType.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAatC;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAmB;IAElD,MAAM,gBAAgB,GAAG,IAA6B,CAAC;IAEvD,IAAG,CAAC,gBAAgB,CAAC,UAAU,EAC/B;QACI,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,uBAAuB,CAAC,CAAC;KACxD;IAED,OAAO,gBAAgB,CAAC,UAAU,CAAC;AACvC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,QAAkB;IAE3C,wDAAwD;IACxD,OAAO,UAAsC,MAAiB;QAE1D,MAAM,gBAAgB,GAAG,MAA+B,CAAC;QAEzD,IAAG,CAAC,gBAAgB,CAAC,UAAU,EAC/B;YACI,MAAM,CAAC,cAAc,CAAC,gBAAgB,EAAE,MAAM,CAAwB,YAAY,CAAC,EACnF;gBACI,KAAK,EAAE,QAAQ;gBACf,QAAQ,EAAE,KAAK;gBACf,UAAU,EAAE,KAAK;gBACjB,YAAY,EAAE,KAAK;aACtB,CAAC,CAAC;SACN;QAED,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC;AACN,CAAC","sourcesContent":["import {Provider, Type} from '@angular/core';\nimport {nameof} from '@jscrpt/common';\n\n/**\n * Type that contains provider\n */\ninterface ProviderDecoratedType\n{\n /**\n * Provider that is attached to type\n */\n ɵɵprovider?: Provider;\n}\n\n/**\n * Gets provider from type\n * @param type - Type that should contain provider\n */\nexport function getProviderForType(type: Type<unknown>): Provider\n{\n const typeWithProvider = type as ProviderDecoratedType;\n\n if(!typeWithProvider.ɵɵprovider)\n {\n throw new Error(`Type ${type} is without provider!`);\n }\n\n return typeWithProvider.ɵɵprovider;\n}\n\n/**\n * Attach provider to type\n * @param provider - Provider to be attached\n */\nexport function TypeProvider(provider: Provider): ClassDecorator\n{\n // eslint-disable-next-line @typescript-eslint/ban-types\n return function<TFunction extends Function> (target: TFunction): TFunction\n {\n const typeWithProvider = target as ProviderDecoratedType;\n \n if(!typeWithProvider.ɵɵprovider)\n {\n Object.defineProperty(typeWithProvider, nameof<ProviderDecoratedType>('ɵɵprovider'),\n {\n value: provider,\n writable: false,\n enumerable: false,\n configurable: false,\n });\n }\n\n return target;\n };\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"providerDecoratedType.d.ts","sourceRoot":"","sources":["providerDecoratedType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AAc7C;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,QAAQ,CAUhE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,CAoB/D"}