@anglr/common 18.1.0-beta.20230918132240 → 18.1.0-beta.20230918134407

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 18.1.0 (2023-09-18)
4
+
5
+ ### Features
6
+
7
+ - new `HotkeysCheatsheetSAComponent` component, that is component used for displaying current active hotkeys as cheat cheet
8
+ - **implements**
9
+ - `OnInit`
10
+ - `OnDestroy`
11
+ - **inputs**
12
+ - `title` title displayed in header of cheat sheet
13
+ - **method**
14
+ - `toggleCheatSheet` toggles cheatsheet visibility
15
+
3
16
  ## Version 18.0.1 (2023-08-23)
4
17
 
5
18
  ### Bug Fixes
@@ -0,0 +1,79 @@
1
+ import { ChangeDetectionStrategy, Component, Input, PLATFORM_ID, inject } from '@angular/core';
2
+ import { CommonModule, isPlatformBrowser } from '@angular/common';
3
+ import { BehaviorSubject } from 'rxjs';
4
+ import { HotkeysService } from 'angular2-hotkeys';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "angular2-hotkeys";
7
+ import * as i2 from "@angular/common";
8
+ /**
9
+ * Component used for displaying current active hotkeys as cheat cheet
10
+ */
11
+ class HotkeysCheatsheetSAComponent {
12
+ _hotkeysService;
13
+ //######################### private fields #########################
14
+ /**
15
+ * Indication whether is running in browser
16
+ */
17
+ _isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
18
+ //######################### public properties #########################
19
+ helpVisible$ = new BehaviorSubject(false);
20
+ subscription;
21
+ hotkeys;
22
+ //######################### public properties - inputs #########################
23
+ /**
24
+ * Title displayed in header of cheat sheet
25
+ */
26
+ title = 'Keyboard Shortcuts:';
27
+ //######################### constructor #########################
28
+ constructor(_hotkeysService) {
29
+ this._hotkeysService = _hotkeysService;
30
+ }
31
+ //######################### public methods - implementation of OnInit #########################
32
+ /**
33
+ * Initialize component
34
+ */
35
+ ngOnInit() {
36
+ if (!this._isBrowser) {
37
+ return;
38
+ }
39
+ this.subscription = this._hotkeysService.cheatSheetToggle.subscribe((isOpen) => {
40
+ if (isOpen !== false) {
41
+ this.hotkeys = this._hotkeysService.hotkeys.filter(hotkey => hotkey.description);
42
+ }
43
+ if (isOpen === false) {
44
+ this.helpVisible$.next(false);
45
+ }
46
+ else {
47
+ this.toggleCheatSheet();
48
+ }
49
+ });
50
+ }
51
+ //######################### public methods - implementation of OnDestroy #########################
52
+ /**
53
+ * Called when component is destroyed
54
+ */
55
+ ngOnDestroy() {
56
+ if (this.subscription) {
57
+ this.subscription.unsubscribe();
58
+ }
59
+ }
60
+ //######################### public methods #########################
61
+ /**
62
+ * Toggles cheatsheet visibility
63
+ */
64
+ toggleCheatSheet() {
65
+ this.helpVisible$.next(!this.helpVisible$.value);
66
+ }
67
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: HotkeysCheatsheetSAComponent, deps: [{ token: i1.HotkeysService }], target: i0.ɵɵFactoryTarget.Component });
68
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: HotkeysCheatsheetSAComponent, isStandalone: true, selector: "hotkeys-cheatsheet", inputs: { title: "title" }, ngImport: i0, template: "<div class=\"cfp-hotkeys-container fade\" [ngClass]=\"{'in': helpVisible$|async}\" style=\"display:none\">\n <div class=\"cfp-hotkeys\">\n <h4 class=\"cfp-hotkeys-title\">{{title}}</h4>\n\n <table>\n <tbody>\n <tr *ngFor=\"let hotkey of hotkeys\">\n <td class=\"cfp-hotkeys-keys\">\n <span *ngFor=\"let key of hotkey.formatted\" class=\"cfp-hotkeys-key\">{{key}}</span>\n </td>\n\n <td class=\"cfp-hotkeys-text\">{{hotkey.description}}</td>\n </tr>\n </tbody>\n </table>\n\n <div class=\"cfp-hotkeys-close\" (click)=\"toggleCheatSheet()\">&#215;</div>\n </div>\n</div>", styles: [".cfp-hotkeys-container \n{\n display: table !important;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n color: #333;\n font-size: 1em;\n background-color: rgba(255, 255, 255, 0.9);\n}\n\n.cfp-hotkeys-container.fade \n{\n z-index: -1024;\n visibility: hidden;\n opacity: 0;\n -webkit-transition: opacity 0.15s linear;\n -moz-transition: opacity 0.15s linear;\n -o-transition: opacity 0.15s linear;\n transition: opacity 0.15s linear;\n}\n\n.cfp-hotkeys-container.fade.in \n{\n z-index: 10002;\n visibility: visible;\n opacity: 1;\n}\n\n.cfp-hotkeys-title \n{\n font-weight: bold;\n text-align: center;\n font-size: 1.2em;\n}\n\n.cfp-hotkeys \n{\n width: 100%;\n height: 100%;\n display: table-cell;\n vertical-align: middle;\n}\n\n.cfp-hotkeys table \n{\n margin: auto;\n color: #333;\n}\n\n.cfp-content \n{\n display: table-cell;\n vertical-align: middle;\n}\n\n.cfp-hotkeys-keys \n{\n padding: 5px;\n text-align: right;\n}\n\n.cfp-hotkeys-key \n{\n display: inline-block;\n color: #fff;\n background-color: #333;\n border: 1px solid #333;\n border-radius: 5px;\n text-align: center;\n margin-right: 5px;\n box-shadow: inset 0 1px 0 #666, 0 1px 0 #bbb;\n padding: 5px 9px;\n font-size: 1em;\n}\n\n.cfp-hotkeys-text \n{\n padding-left: 10px;\n font-size: 1em;\n}\n\n.cfp-hotkeys-close \n{\n position: fixed;\n top: 20px;\n right: 20px;\n font-size: 2em;\n font-weight: bold;\n padding: 5px 10px;\n border: 1px solid #ddd;\n border-radius: 5px;\n min-height: 45px;\n min-width: 45px;\n text-align: center;\n}\n\n.cfp-hotkeys-close:hover \n{\n background-color: #fff;\n cursor: pointer;\n}\n\n@media all and (max-width: 500px) \n{\n .cfp-hotkeys \n {\n font-size: 0.8em;\n }\n}\n\n@media all and (min-width: 750px) \n{\n .cfp-hotkeys \n {\n font-size: 1.2em;\n }\n}"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
69
+ }
70
+ export { HotkeysCheatsheetSAComponent };
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: HotkeysCheatsheetSAComponent, decorators: [{
72
+ type: Component,
73
+ args: [{ selector: 'hotkeys-cheatsheet', imports: [
74
+ CommonModule,
75
+ ], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"cfp-hotkeys-container fade\" [ngClass]=\"{'in': helpVisible$|async}\" style=\"display:none\">\n <div class=\"cfp-hotkeys\">\n <h4 class=\"cfp-hotkeys-title\">{{title}}</h4>\n\n <table>\n <tbody>\n <tr *ngFor=\"let hotkey of hotkeys\">\n <td class=\"cfp-hotkeys-keys\">\n <span *ngFor=\"let key of hotkey.formatted\" class=\"cfp-hotkeys-key\">{{key}}</span>\n </td>\n\n <td class=\"cfp-hotkeys-text\">{{hotkey.description}}</td>\n </tr>\n </tbody>\n </table>\n\n <div class=\"cfp-hotkeys-close\" (click)=\"toggleCheatSheet()\">&#215;</div>\n </div>\n</div>", styles: [".cfp-hotkeys-container \n{\n display: table !important;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n color: #333;\n font-size: 1em;\n background-color: rgba(255, 255, 255, 0.9);\n}\n\n.cfp-hotkeys-container.fade \n{\n z-index: -1024;\n visibility: hidden;\n opacity: 0;\n -webkit-transition: opacity 0.15s linear;\n -moz-transition: opacity 0.15s linear;\n -o-transition: opacity 0.15s linear;\n transition: opacity 0.15s linear;\n}\n\n.cfp-hotkeys-container.fade.in \n{\n z-index: 10002;\n visibility: visible;\n opacity: 1;\n}\n\n.cfp-hotkeys-title \n{\n font-weight: bold;\n text-align: center;\n font-size: 1.2em;\n}\n\n.cfp-hotkeys \n{\n width: 100%;\n height: 100%;\n display: table-cell;\n vertical-align: middle;\n}\n\n.cfp-hotkeys table \n{\n margin: auto;\n color: #333;\n}\n\n.cfp-content \n{\n display: table-cell;\n vertical-align: middle;\n}\n\n.cfp-hotkeys-keys \n{\n padding: 5px;\n text-align: right;\n}\n\n.cfp-hotkeys-key \n{\n display: inline-block;\n color: #fff;\n background-color: #333;\n border: 1px solid #333;\n border-radius: 5px;\n text-align: center;\n margin-right: 5px;\n box-shadow: inset 0 1px 0 #666, 0 1px 0 #bbb;\n padding: 5px 9px;\n font-size: 1em;\n}\n\n.cfp-hotkeys-text \n{\n padding-left: 10px;\n font-size: 1em;\n}\n\n.cfp-hotkeys-close \n{\n position: fixed;\n top: 20px;\n right: 20px;\n font-size: 2em;\n font-weight: bold;\n padding: 5px 10px;\n border: 1px solid #ddd;\n border-radius: 5px;\n min-height: 45px;\n min-width: 45px;\n text-align: center;\n}\n\n.cfp-hotkeys-close:hover \n{\n background-color: #fff;\n cursor: pointer;\n}\n\n@media all and (max-width: 500px) \n{\n .cfp-hotkeys \n {\n font-size: 0.8em;\n }\n}\n\n@media all and (min-width: 750px) \n{\n .cfp-hotkeys \n {\n font-size: 1.2em;\n }\n}"] }]
76
+ }], ctorParameters: function () { return [{ type: i1.HotkeysService }]; }, propDecorators: { title: [{
77
+ type: Input
78
+ }] } });
79
+ //# sourceMappingURL=cheatSheet.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cheatSheet.component.js","sourceRoot":"","sources":["../../../../../hotkeys/src/components/cheatSheet/cheatSheet.component.ts","../../../../../hotkeys/src/components/cheatSheet/cheatSheet.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAqB,WAAW,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AAChH,OAAO,EAAC,YAAY,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAC,eAAe,EAAe,MAAM,MAAM,CAAC;AACnD,OAAO,EAAS,cAAc,EAAC,MAAM,kBAAkB,CAAC;;;;AAExD;;GAEG;AACH,MAYa,4BAA4B;IAwBjB;IAtBpB,oEAAoE;IAEpE;;OAEG;IACK,UAAU,GAAY,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAErE,uEAAuE;IAEhE,YAAY,GAA6B,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;IACpE,YAAY,CAA8B;IAC1C,OAAO,CAA0B;IAExC,gFAAgF;IAEhF;;OAEG;IAEI,KAAK,GAAW,qBAAqB,CAAC;IAE7C,iEAAiE;IACjE,YAAoB,eAA+B;QAA/B,oBAAe,GAAf,eAAe,CAAgB;IAEnD,CAAC;IAED,+FAA+F;IAE/F;;OAEG;IACI,QAAQ;QAEX,IAAG,CAAC,IAAI,CAAC,UAAU,EACnB;YACI,OAAO;SACV;QAED,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,EAAE;YAE3E,IAAI,MAAM,KAAK,KAAK,EACpB;gBACI,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;aACpF;YAED,IAAI,MAAM,KAAK,KAAK,EACpB;gBACI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACjC;iBAED;gBACI,IAAI,CAAC,gBAAgB,EAAE,CAAC;aAC3B;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,IAAI,CAAC,YAAY,EACrB;YACI,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;SACnC;IACL,CAAC;IAED,oEAAoE;IAEpE;;OAEG;IACI,gBAAgB;QAEnB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;uGA/EQ,4BAA4B;2FAA5B,4BAA4B,0GCpBzC,guBAkBM,+/DDHE,YAAY;;SAKP,4BAA4B;2FAA5B,4BAA4B;kBAZxC,SAAS;+BAEI,oBAAoB,WAI9B;wBACI,YAAY;qBACf,cACW,IAAI,mBACC,uBAAuB,CAAC,MAAM;qGAuBxC,KAAK;sBADX,KAAK","sourcesContent":["import {ChangeDetectionStrategy, Component, Input, OnDestroy, OnInit, PLATFORM_ID, inject} from '@angular/core';\nimport {CommonModule, isPlatformBrowser} from '@angular/common';\nimport {BehaviorSubject, Subscription} from 'rxjs';\nimport {Hotkey, HotkeysService} from 'angular2-hotkeys';\n\n/**\n * Component used for displaying current active hotkeys as cheat cheet\n */\n@Component(\n{\n selector: 'hotkeys-cheatsheet',\n templateUrl: 'cheatSheet.component.html',\n styleUrls: ['cheatSheet.component.css'],\n imports:\n [\n CommonModule,\n ],\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class HotkeysCheatsheetSAComponent implements OnInit, OnDestroy\n{\n //######################### private fields #########################\n\n /**\n * Indication whether is running in browser\n */\n private _isBrowser: boolean = isPlatformBrowser(inject(PLATFORM_ID));\n\n //######################### public properties #########################\n\n public helpVisible$: BehaviorSubject<boolean> = new BehaviorSubject(false);\n public subscription: Subscription|undefined|null;\n public hotkeys: Hotkey[]|undefined|null;\n\n //######################### public properties - inputs #########################\n\n /**\n * Title displayed in header of cheat sheet\n */\n @Input()\n public title: string = 'Keyboard Shortcuts:';\n\n //######################### constructor #########################\n constructor(private _hotkeysService: HotkeysService)\n {\n }\n\n //######################### public methods - implementation of OnInit #########################\n\n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n if(!this._isBrowser)\n {\n return;\n }\n\n this.subscription = this._hotkeysService.cheatSheetToggle.subscribe((isOpen) =>\n {\n if (isOpen !== false)\n {\n this.hotkeys = this._hotkeysService.hotkeys.filter(hotkey => hotkey.description);\n }\n\n if (isOpen === false)\n {\n this.helpVisible$.next(false);\n }\n else\n {\n this.toggleCheatSheet();\n }\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n if (this.subscription)\n {\n this.subscription.unsubscribe();\n }\n }\n\n //######################### public methods #########################\n\n /**\n * Toggles cheatsheet visibility\n */\n public toggleCheatSheet(): void\n {\n this.helpVisible$.next(!this.helpVisible$.value);\n }\n}","<div class=\"cfp-hotkeys-container fade\" [ngClass]=\"{'in': helpVisible$|async}\" style=\"display:none\">\n <div class=\"cfp-hotkeys\">\n <h4 class=\"cfp-hotkeys-title\">{{title}}</h4>\n\n <table>\n <tbody>\n <tr *ngFor=\"let hotkey of hotkeys\">\n <td class=\"cfp-hotkeys-keys\">\n <span *ngFor=\"let key of hotkey.formatted\" class=\"cfp-hotkeys-key\">{{key}}</span>\n </td>\n\n <td class=\"cfp-hotkeys-text\">{{hotkey.description}}</td>\n </tr>\n </tbody>\n </table>\n\n <div class=\"cfp-hotkeys-close\" (click)=\"toggleCheatSheet()\">&#215;</div>\n </div>\n</div>"]}
@@ -0,0 +1,2 @@
1
+ export * from './cheatSheet/cheatSheet.component';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../hotkeys/src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC","sourcesContent":["export * from './cheatSheet/cheatSheet.component';\n"]}
@@ -1,2 +1,3 @@
1
+ export * from './components';
1
2
  export * from './services/appHotkeys.service';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../hotkeys/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC","sourcesContent":["export * from './services/appHotkeys.service';"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../hotkeys/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC","sourcesContent":["export * from './components';\nexport * from './services/appHotkeys.service';"]}
@@ -0,0 +1,120 @@
1
+ .cfp-hotkeys-container
2
+ {
3
+ display: table !important;
4
+ position: fixed;
5
+ width: 100%;
6
+ height: 100%;
7
+ top: 0;
8
+ left: 0;
9
+ color: #333;
10
+ font-size: 1em;
11
+ background-color: rgba(255, 255, 255, 0.9);
12
+ }
13
+
14
+ .cfp-hotkeys-container.fade
15
+ {
16
+ z-index: -1024;
17
+ visibility: hidden;
18
+ opacity: 0;
19
+ -webkit-transition: opacity 0.15s linear;
20
+ -moz-transition: opacity 0.15s linear;
21
+ -o-transition: opacity 0.15s linear;
22
+ transition: opacity 0.15s linear;
23
+ }
24
+
25
+ .cfp-hotkeys-container.fade.in
26
+ {
27
+ z-index: 10002;
28
+ visibility: visible;
29
+ opacity: 1;
30
+ }
31
+
32
+ .cfp-hotkeys-title
33
+ {
34
+ font-weight: bold;
35
+ text-align: center;
36
+ font-size: 1.2em;
37
+ }
38
+
39
+ .cfp-hotkeys
40
+ {
41
+ width: 100%;
42
+ height: 100%;
43
+ display: table-cell;
44
+ vertical-align: middle;
45
+ }
46
+
47
+ .cfp-hotkeys table
48
+ {
49
+ margin: auto;
50
+ color: #333;
51
+ }
52
+
53
+ .cfp-content
54
+ {
55
+ display: table-cell;
56
+ vertical-align: middle;
57
+ }
58
+
59
+ .cfp-hotkeys-keys
60
+ {
61
+ padding: 5px;
62
+ text-align: right;
63
+ }
64
+
65
+ .cfp-hotkeys-key
66
+ {
67
+ display: inline-block;
68
+ color: #fff;
69
+ background-color: #333;
70
+ border: 1px solid #333;
71
+ border-radius: 5px;
72
+ text-align: center;
73
+ margin-right: 5px;
74
+ box-shadow: inset 0 1px 0 #666, 0 1px 0 #bbb;
75
+ padding: 5px 9px;
76
+ font-size: 1em;
77
+ }
78
+
79
+ .cfp-hotkeys-text
80
+ {
81
+ padding-left: 10px;
82
+ font-size: 1em;
83
+ }
84
+
85
+ .cfp-hotkeys-close
86
+ {
87
+ position: fixed;
88
+ top: 20px;
89
+ right: 20px;
90
+ font-size: 2em;
91
+ font-weight: bold;
92
+ padding: 5px 10px;
93
+ border: 1px solid #ddd;
94
+ border-radius: 5px;
95
+ min-height: 45px;
96
+ min-width: 45px;
97
+ text-align: center;
98
+ }
99
+
100
+ .cfp-hotkeys-close:hover
101
+ {
102
+ background-color: #fff;
103
+ cursor: pointer;
104
+ }
105
+
106
+ @media all and (max-width: 500px)
107
+ {
108
+ .cfp-hotkeys
109
+ {
110
+ font-size: 0.8em;
111
+ }
112
+ }
113
+
114
+ @media all and (min-width: 750px)
115
+ {
116
+ .cfp-hotkeys
117
+ {
118
+ font-size: 1.2em;
119
+ }
120
+ }
@@ -0,0 +1,37 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { BehaviorSubject, Subscription } from 'rxjs';
3
+ import { Hotkey, HotkeysService } from 'angular2-hotkeys';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Component used for displaying current active hotkeys as cheat cheet
7
+ */
8
+ export declare class HotkeysCheatsheetSAComponent implements OnInit, OnDestroy {
9
+ private _hotkeysService;
10
+ /**
11
+ * Indication whether is running in browser
12
+ */
13
+ private _isBrowser;
14
+ helpVisible$: BehaviorSubject<boolean>;
15
+ subscription: Subscription | undefined | null;
16
+ hotkeys: Hotkey[] | undefined | null;
17
+ /**
18
+ * Title displayed in header of cheat sheet
19
+ */
20
+ title: string;
21
+ constructor(_hotkeysService: HotkeysService);
22
+ /**
23
+ * Initialize component
24
+ */
25
+ ngOnInit(): void;
26
+ /**
27
+ * Called when component is destroyed
28
+ */
29
+ ngOnDestroy(): void;
30
+ /**
31
+ * Toggles cheatsheet visibility
32
+ */
33
+ toggleCheatSheet(): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<HotkeysCheatsheetSAComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<HotkeysCheatsheetSAComponent, "hotkeys-cheatsheet", never, { "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
36
+ }
37
+ //# sourceMappingURL=cheatSheet.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cheatSheet.component.d.ts","sourceRoot":"","sources":["cheatSheet.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,SAAS,EAAE,MAAM,EAAsB,MAAM,eAAe,CAAC;AAEhH,OAAO,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,MAAM,CAAC;AACnD,OAAO,EAAC,MAAM,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;;AAExD;;GAEG;AACH,qBAYa,4BAA6B,YAAW,MAAM,EAAE,SAAS;IAwBtD,OAAO,CAAC,eAAe;IApBnC;;OAEG;IACH,OAAO,CAAC,UAAU,CAAmD;IAI9D,YAAY,EAAE,eAAe,CAAC,OAAO,CAAC,CAA8B;IACpE,YAAY,EAAE,YAAY,GAAC,SAAS,GAAC,IAAI,CAAC;IAC1C,OAAO,EAAE,MAAM,EAAE,GAAC,SAAS,GAAC,IAAI,CAAC;IAIxC;;OAEG;IAEI,KAAK,EAAE,MAAM,CAAyB;gBAGzB,eAAe,EAAE,cAAc;IAMnD;;OAEG;IACI,QAAQ,IAAI,IAAI;IA2BvB;;OAEG;IACI,WAAW,IAAI,IAAI;IAU1B;;OAEG;IACI,gBAAgB,IAAI,IAAI;yCA5EtB,4BAA4B;2CAA5B,4BAA4B;CAgFxC"}
@@ -0,0 +1,19 @@
1
+ <div class="cfp-hotkeys-container fade" [ngClass]="{'in': helpVisible$|async}" style="display:none">
2
+ <div class="cfp-hotkeys">
3
+ <h4 class="cfp-hotkeys-title">{{title}}</h4>
4
+
5
+ <table>
6
+ <tbody>
7
+ <tr *ngFor="let hotkey of hotkeys">
8
+ <td class="cfp-hotkeys-keys">
9
+ <span *ngFor="let key of hotkey.formatted" class="cfp-hotkeys-key">{{key}}</span>
10
+ </td>
11
+
12
+ <td class="cfp-hotkeys-text">{{hotkey.description}}</td>
13
+ </tr>
14
+ </tbody>
15
+ </table>
16
+
17
+ <div class="cfp-hotkeys-close" (click)="toggleCheatSheet()">&#215;</div>
18
+ </div>
19
+ </div>
@@ -0,0 +1,2 @@
1
+ export * from './cheatSheet/cheatSheet.component';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
@@ -1,2 +1,3 @@
1
+ export * from './components';
1
2
  export * from './services/appHotkeys.service';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anglr/common",
3
- "version": "18.1.0-beta.20230918132240",
3
+ "version": "18.1.0-beta.20230918134407",
4
4
  "description": "Angular module for common angular stuff",
5
5
  "type": "module",
6
6
  "sideEffects": false,
package/version.bak CHANGED
@@ -1 +1 @@
1
- 18.1.0-beta.20230918132240
1
+ 18.1.0-beta.20230918134407