ngx-presentationcommons-esm-slides 0.0.2

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/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # NgxPresentationcommonsEsmSlides
2
+
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
8
+
9
+ ```bash
10
+ ng generate component component-name
11
+ ```
12
+
13
+ For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
14
+
15
+ ```bash
16
+ ng generate --help
17
+ ```
18
+
19
+ ## Building
20
+
21
+ To build the library, run:
22
+
23
+ ```bash
24
+ ng build ngx-presentationcommons-esm-slides
25
+ ```
26
+
27
+ This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
+
29
+ ### Publishing the Library
30
+
31
+ Once the project is built, you can publish your library by following these steps:
32
+
33
+ 1. Navigate to the `dist` directory:
34
+ ```bash
35
+ cd dist/ngx-presentationcommons-esm-slides
36
+ ```
37
+
38
+ 2. Run the `npm publish` command to publish your library to the npm registry:
39
+ ```bash
40
+ npm publish
41
+ ```
42
+
43
+ ## Running unit tests
44
+
45
+ To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
46
+
47
+ ```bash
48
+ ng test
49
+ ```
50
+
51
+ ## Running end-to-end tests
52
+
53
+ For end-to-end (e2e) testing, run:
54
+
55
+ ```bash
56
+ ng e2e
57
+ ```
58
+
59
+ Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
60
+
61
+ ## Additional Resources
62
+
63
+ For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
@@ -0,0 +1,267 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, Injectable, Component, input, Renderer2, effect, Directive } from '@angular/core';
3
+ import { CommonsPresentationService, ECommonsPresentationMoveMagnitude, ECommonsPresentationActionSource } from 'ngx-presentationcommons-esm-core';
4
+ import { CommonsComponent } from 'ngx-angularcommons-esm-core';
5
+ import { Router, ActivatedRoute } from '@angular/router';
6
+
7
+ class CommonsPresentationKeyDownService {
8
+ presentationService = inject(CommonsPresentationService);
9
+ isEnabled = true;
10
+ get enabled() {
11
+ return this.isEnabled;
12
+ }
13
+ set enabled(state) {
14
+ this.isEnabled = state;
15
+ }
16
+ isSpaceAllowed = false;
17
+ get allowSpaceNext() {
18
+ return this.isSpaceAllowed;
19
+ }
20
+ set allowSpaceNext(state) {
21
+ this.isSpaceAllowed = state;
22
+ }
23
+ isArrowAllowed = false;
24
+ get allowArrowSoft() {
25
+ return this.isArrowAllowed;
26
+ }
27
+ set allowArrowSoft(state) {
28
+ this.isArrowAllowed = state;
29
+ }
30
+ keys = new Map();
31
+ reverse = new Map();
32
+ blankState = false;
33
+ constructor() {
34
+ this.presentationService.blankObservable
35
+ .subscribe((action) => {
36
+ this.blankState = action.state;
37
+ });
38
+ this.addKey('PageUp', () => {
39
+ this.presentationService.prev(ECommonsPresentationMoveMagnitude.PAGE, ECommonsPresentationActionSource.KEY);
40
+ });
41
+ this.addKey('PageDown', () => {
42
+ this.presentationService.next(ECommonsPresentationMoveMagnitude.PAGE, ECommonsPresentationActionSource.KEY);
43
+ });
44
+ this.addKey(' ', () => {
45
+ if (this.isSpaceAllowed) {
46
+ // soft next
47
+ this.presentationService.next(ECommonsPresentationMoveMagnitude.EITHER, ECommonsPresentationActionSource.KEY, undefined);
48
+ }
49
+ });
50
+ this.addKey('ArrowLeft', () => {
51
+ if (this.isArrowAllowed) {
52
+ // soft prev
53
+ this.presentationService.prev(ECommonsPresentationMoveMagnitude.EITHER, ECommonsPresentationActionSource.KEY, undefined);
54
+ }
55
+ });
56
+ this.addKey('ArrowRight', () => {
57
+ if (this.isArrowAllowed) {
58
+ // soft next
59
+ this.presentationService.next(ECommonsPresentationMoveMagnitude.EITHER, ECommonsPresentationActionSource.KEY, undefined);
60
+ }
61
+ });
62
+ this.addKey('Home', () => {
63
+ this.presentationService.restart(ECommonsPresentationActionSource.KEY);
64
+ });
65
+ this.addKey('End', () => {
66
+ this.presentationService.end(ECommonsPresentationActionSource.KEY);
67
+ });
68
+ this.addKey('b', () => {
69
+ if (this.blankState !== false) {
70
+ this.presentationService.blank(false, ECommonsPresentationActionSource.KEY);
71
+ }
72
+ else {
73
+ this.presentationService.blank(true, ECommonsPresentationActionSource.KEY);
74
+ }
75
+ // setting of this.blankState is done by the observable
76
+ });
77
+ this.addKey('h', () => {
78
+ if (this.blankState !== false) {
79
+ this.presentationService.blank(false, ECommonsPresentationActionSource.KEY);
80
+ }
81
+ else {
82
+ this.presentationService.blank('holding', ECommonsPresentationActionSource.KEY);
83
+ }
84
+ // setting of this.blankState is done by the observable
85
+ });
86
+ this.addKey('#', () => {
87
+ this.presentationService.showAll(ECommonsPresentationActionSource.KEY);
88
+ });
89
+ }
90
+ handle(event) {
91
+ if (!this.enabled)
92
+ return;
93
+ if (!this.keys.has(event.key))
94
+ return;
95
+ this.keys.get(event.key)();
96
+ }
97
+ addKey(key, callback) {
98
+ this.keys.set(key, callback);
99
+ }
100
+ addKeyTrigger(name, key) {
101
+ this.addKey(key, () => {
102
+ this.presentationService.trigger(name, undefined, ECommonsPresentationActionSource.KEY);
103
+ });
104
+ this.reverse.set(name, key);
105
+ }
106
+ removeKeyTrigger(name) {
107
+ if (!this.reverse.has(name))
108
+ return false;
109
+ const key = this.reverse.get(name);
110
+ this.keys.delete(key);
111
+ this.reverse.delete(name);
112
+ return true;
113
+ }
114
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationKeyDownService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
115
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationKeyDownService, providedIn: 'root' });
116
+ }
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationKeyDownService, decorators: [{
118
+ type: Injectable,
119
+ args: [{
120
+ providedIn: 'root'
121
+ }]
122
+ }], ctorParameters: () => [] });
123
+
124
+ class CommonsPresentationSlidesBlankComponent extends CommonsComponent {
125
+ presentationService = inject(CommonsPresentationService);
126
+ state = false;
127
+ ngOnInit() {
128
+ super.ngOnInit();
129
+ this.subscribe(this.presentationService.blankObservable, (action) => {
130
+ this.state = action.state;
131
+ });
132
+ }
133
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSlidesBlankComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
134
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: CommonsPresentationSlidesBlankComponent, isStandalone: true, selector: "commons-presentation-slides-blank", usesInheritance: true, ngImport: i0, template: "@if (this.state !== false) {\n\t<section>\n\t\t@if (this.state === 'holding') {\n\t\t\t<ng-content></ng-content>\n\t\t}\n\t</section>\n}\n", styles: ["section{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999;background-color:#000}\n"] });
135
+ }
136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSlidesBlankComponent, decorators: [{
137
+ type: Component,
138
+ args: [{ selector: 'commons-presentation-slides-blank', template: "@if (this.state !== false) {\n\t<section>\n\t\t@if (this.state === 'holding') {\n\t\t\t<ng-content></ng-content>\n\t\t}\n\t</section>\n}\n", styles: ["section{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999;background-color:#000}\n"] }]
139
+ }] });
140
+
141
+ class CommonsPresentationSlidesKeyDownComponent extends CommonsComponent {
142
+ allowSpaceEither = input.required();
143
+ allowArrowSoft = input.required();
144
+ renderer = inject(Renderer2);
145
+ keyDownService = inject(CommonsPresentationKeyDownService);
146
+ constructor() {
147
+ super();
148
+ effect(() => {
149
+ this.keyDownService.allowSpaceNext = this.allowSpaceEither();
150
+ this.keyDownService.allowArrowSoft = this.allowArrowSoft();
151
+ });
152
+ }
153
+ ngOnInit() {
154
+ super.ngOnInit();
155
+ this.renderer.listen('document', 'keydown', (e) => {
156
+ this.keyDownService.handle(e);
157
+ });
158
+ this.keyDownService.enabled = true;
159
+ }
160
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSlidesKeyDownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
161
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.15", type: CommonsPresentationSlidesKeyDownComponent, isStandalone: true, selector: "commons-presentation-slides-key-down", inputs: { allowSpaceEither: { classPropertyName: "allowSpaceEither", publicName: "allowSpaceEither", isSignal: true, isRequired: true, transformFunction: null }, allowArrowSoft: { classPropertyName: "allowArrowSoft", publicName: "allowArrowSoft", isSignal: true, isRequired: true, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<!-- shared-key-down -->", styles: [""] });
162
+ }
163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSlidesKeyDownComponent, decorators: [{
164
+ type: Component,
165
+ args: [{ selector: 'commons-presentation-slides-key-down', standalone: true, imports: [], template: "<!-- shared-key-down -->" }]
166
+ }], ctorParameters: () => [] });
167
+
168
+ class CommonsPresentationSlidesSlideComponent extends CommonsComponent {
169
+ page;
170
+ maxIndex;
171
+ router = inject(Router);
172
+ activatedRoute = inject(ActivatedRoute);
173
+ presentationService = inject(CommonsPresentationService);
174
+ constructor(
175
+ // eslint-disable-next-line @angular-eslint/prefer-inject, @typescript-eslint/parameter-properties
176
+ page,
177
+ // eslint-disable-next-line @angular-eslint/prefer-inject, @typescript-eslint/parameter-properties
178
+ maxIndex) {
179
+ super();
180
+ this.page = page;
181
+ this.maxIndex = maxIndex;
182
+ }
183
+ internalIndex = 0;
184
+ get index() {
185
+ return this.internalIndex;
186
+ }
187
+ internalShowAll = false;
188
+ get showAll() {
189
+ return this.internalShowAll;
190
+ }
191
+ navigateRoot(navigation) {
192
+ void this.router.navigate(navigation, { relativeTo: this.activatedRoute.root });
193
+ }
194
+ navigateSibling(name) {
195
+ void this.router.navigate([name], { relativeTo: this.activatedRoute.parent });
196
+ }
197
+ navigateSet(name, last = false) {
198
+ void this.router.navigate([name, ...(last ? ['last'] : [])], { relativeTo: this.activatedRoute.parent?.parent?.parent });
199
+ }
200
+ ngOnInit() {
201
+ super.ngOnInit();
202
+ this.subscribe(this.presentationService.prevObservable, (action) => {
203
+ this.internalShowAll = false;
204
+ if (action.magnitude === ECommonsPresentationMoveMagnitude.INNER) {
205
+ if (this.maxIndex !== undefined && this.internalIndex > 0) {
206
+ this.internalIndex--;
207
+ this.presentationService.reachedSlide(this.page, this.internalIndex);
208
+ }
209
+ }
210
+ if (action.magnitude === ECommonsPresentationMoveMagnitude.PAGE) {
211
+ this.prev();
212
+ }
213
+ if (action.magnitude === ECommonsPresentationMoveMagnitude.EITHER) {
214
+ if (this.maxIndex !== undefined && this.internalIndex > 0) {
215
+ this.internalIndex--;
216
+ this.presentationService.reachedSlide(this.page, this.internalIndex);
217
+ }
218
+ else {
219
+ this.prev();
220
+ }
221
+ }
222
+ });
223
+ this.subscribe(this.presentationService.nextObservable, (action) => {
224
+ this.internalShowAll = false;
225
+ if (action.magnitude === ECommonsPresentationMoveMagnitude.INNER) {
226
+ if (this.maxIndex !== undefined && this.internalIndex < this.maxIndex) {
227
+ this.internalIndex++;
228
+ this.presentationService.reachedSlide(this.page, this.internalIndex);
229
+ }
230
+ }
231
+ if (action.magnitude === ECommonsPresentationMoveMagnitude.PAGE) {
232
+ this.next();
233
+ }
234
+ if (action.magnitude === ECommonsPresentationMoveMagnitude.EITHER) {
235
+ if (this.maxIndex !== undefined && this.internalIndex < this.maxIndex) {
236
+ this.internalIndex++;
237
+ this.presentationService.reachedSlide(this.page, this.internalIndex);
238
+ }
239
+ else {
240
+ this.next();
241
+ }
242
+ }
243
+ });
244
+ this.subscribe(this.presentationService.showAllObservable, (_action) => {
245
+ this.internalShowAll = true;
246
+ });
247
+ }
248
+ ngAfterViewInit() {
249
+ this.presentationService.reachedSlide(this.page, 0);
250
+ }
251
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSlidesSlideComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
252
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: CommonsPresentationSlidesSlideComponent, isStandalone: true, usesInheritance: true, ngImport: i0 });
253
+ }
254
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSlidesSlideComponent, decorators: [{
255
+ type: Directive
256
+ }], ctorParameters: () => [{ type: undefined }, { type: undefined }] });
257
+
258
+ /*
259
+ * Public API Surface of ngx-presentationcommons-esm-slides
260
+ */
261
+
262
+ /**
263
+ * Generated bundle index. Do not edit.
264
+ */
265
+
266
+ export { CommonsPresentationKeyDownService, CommonsPresentationSlidesBlankComponent, CommonsPresentationSlidesKeyDownComponent, CommonsPresentationSlidesSlideComponent };
267
+ //# sourceMappingURL=ngx-presentationcommons-esm-slides.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-presentationcommons-esm-slides.mjs","sources":["../../../projects/ngx-presentationcommons-esm-slides/src/lib/services/keydown.service.ts","../../../projects/ngx-presentationcommons-esm-slides/src/lib/components/blank/blank.component.ts","../../../projects/ngx-presentationcommons-esm-slides/src/lib/components/blank/blank.component.html","../../../projects/ngx-presentationcommons-esm-slides/src/lib/components/key-down/key-down.component.ts","../../../projects/ngx-presentationcommons-esm-slides/src/lib/components/key-down/key-down.component.html","../../../projects/ngx-presentationcommons-esm-slides/src/lib/components/slide.component.ts","../../../projects/ngx-presentationcommons-esm-slides/src/public-api.ts","../../../projects/ngx-presentationcommons-esm-slides/src/ngx-presentationcommons-esm-slides.ts"],"sourcesContent":["import { inject, Injectable } from '@angular/core';\n\nimport { CommonsPresentationService, ECommonsPresentationActionSource, ECommonsPresentationMoveMagnitude, TCommonsPresentationBlankAction } from 'ngx-presentationcommons-esm-core';\n\n@Injectable({\n\t\tprovidedIn: 'root'\n})\nexport class CommonsPresentationKeyDownService {\n\tprivate presentationService: CommonsPresentationService = inject<CommonsPresentationService>(CommonsPresentationService);\n\n\tprivate isEnabled: boolean = true;\n\tpublic get enabled(): boolean {\n\t\treturn this.isEnabled;\n\t}\n\tpublic set enabled(state: boolean) {\n\t\tthis.isEnabled = state;\n\t}\n\n\tprivate isSpaceAllowed: boolean = false;\n\tpublic get allowSpaceNext(): boolean {\n\t\treturn this.isSpaceAllowed;\n\t}\n\tpublic set allowSpaceNext(state: boolean) {\n\t\tthis.isSpaceAllowed = state;\n\t}\n\n\tprivate isArrowAllowed: boolean = false;\n\tpublic get allowArrowSoft(): boolean {\n\t\treturn this.isArrowAllowed;\n\t}\n\tpublic set allowArrowSoft(state: boolean) {\n\t\tthis.isArrowAllowed = state;\n\t}\n\n\tprivate keys: Map<string, () => void> = new Map<string, () => void>();\n\tprivate reverse: Map<string, string> = new Map<string, string>();\n\n\tprivate blankState: boolean|'holding' = false;\n\n\tconstructor() {\n\t\tthis.presentationService.blankObservable\n\t\t\t\t.subscribe((action: TCommonsPresentationBlankAction): void => {\n\t\t\t\t\tthis.blankState = action.state;\n\t\t\t\t});\n\t\t\n\t\tthis.addKey(\n\t\t\t\t'PageUp',\n\t\t\t\t(): void => {\n\t\t\t\t\tthis.presentationService.prev(ECommonsPresentationMoveMagnitude.PAGE, ECommonsPresentationActionSource.KEY);\n\t\t\t\t}\n\t\t);\n\t\tthis.addKey(\n\t\t\t\t'PageDown',\n\t\t\t\t(): void => {\n\t\t\t\t\tthis.presentationService.next(ECommonsPresentationMoveMagnitude.PAGE, ECommonsPresentationActionSource.KEY);\n\t\t\t\t}\n\t\t);\n\t\tthis.addKey(\n\t\t\t\t' ',\n\t\t\t\t(): void => {\n\t\t\t\t\tif (this.isSpaceAllowed) {\n\t\t\t\t\t\t// soft next\n\t\t\t\t\t\tthis.presentationService.next(ECommonsPresentationMoveMagnitude.EITHER, ECommonsPresentationActionSource.KEY, undefined);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t);\n\t\tthis.addKey(\n\t\t\t\t'ArrowLeft',\n\t\t\t\t(): void => {\n\t\t\t\t\tif (this.isArrowAllowed) {\n\t\t\t\t\t\t// soft prev\n\t\t\t\t\t\tthis.presentationService.prev(ECommonsPresentationMoveMagnitude.EITHER, ECommonsPresentationActionSource.KEY, undefined);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t);\n\t\tthis.addKey(\n\t\t\t\t'ArrowRight',\n\t\t\t\t(): void => {\n\t\t\t\t\tif (this.isArrowAllowed) {\n\t\t\t\t\t\t// soft next\n\t\t\t\t\t\tthis.presentationService.next(ECommonsPresentationMoveMagnitude.EITHER, ECommonsPresentationActionSource.KEY, undefined);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t);\n\n\t\tthis.addKey(\n\t\t\t\t'Home',\n\t\t\t\t(): void => {\n\t\t\t\t\tthis.presentationService.restart(ECommonsPresentationActionSource.KEY);\n\t\t\t\t}\n\t\t);\n\t\tthis.addKey(\n\t\t\t\t'End',\n\t\t\t\t(): void => {\n\t\t\t\t\tthis.presentationService.end(ECommonsPresentationActionSource.KEY);\n\t\t\t\t}\n\t\t);\n\n\t\tthis.addKey(\n\t\t\t\t'b',\n\t\t\t\t(): void => {\n\t\t\t\t\tif (this.blankState !== false) {\n\t\t\t\t\t\tthis.presentationService.blank(false, ECommonsPresentationActionSource.KEY);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.presentationService.blank(true, ECommonsPresentationActionSource.KEY);\n\t\t\t\t\t}\n\n\t\t\t\t\t// setting of this.blankState is done by the observable\n\t\t\t\t}\n\t\t);\n\t\tthis.addKey(\n\t\t\t\t'h',\n\t\t\t\t(): void => {\n\t\t\t\t\tif (this.blankState !== false) {\n\t\t\t\t\t\tthis.presentationService.blank(false, ECommonsPresentationActionSource.KEY);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.presentationService.blank('holding', ECommonsPresentationActionSource.KEY);\n\t\t\t\t\t}\n\n\t\t\t\t\t// setting of this.blankState is done by the observable\n\t\t\t\t}\n\t\t);\n\n\t\tthis.addKey(\n\t\t\t\t'#',\n\t\t\t\t(): void => {\n\t\t\t\t\tthis.presentationService.showAll(ECommonsPresentationActionSource.KEY);\n\t\t\t\t}\n\t\t);\n\t}\n\n\tpublic handle(event: KeyboardEvent): void {\n\t\tif (!this.enabled) return;\n\n\t\tif (!this.keys.has(event.key)) return;\n\n\t\tthis.keys.get(event.key)!();\n\t}\n\n\tprivate addKey(\n\t\t\tkey: string,\n\t\t\tcallback: () => void\n\t): void {\n\t\tthis.keys.set(key, callback);\n\t}\n\n\tpublic addKeyTrigger(\n\t\t\tname: string,\n\t\t\tkey: string\n\t): void {\n\t\tthis.addKey(\n\t\t\t\tkey,\n\t\t\t\t(): void => {\n\t\t\t\t\tthis.presentationService.trigger(name, undefined, ECommonsPresentationActionSource.KEY);\n\t\t\t\t}\n\t\t);\n\n\t\tthis.reverse.set(name, key);\n\t}\n\n\tpublic removeKeyTrigger(name: string): boolean {\n\t\tif (!this.reverse.has(name)) return false;\n\n\t\tconst key: string = this.reverse.get(name)!;\n\n\t\tthis.keys.delete(key);\n\t\tthis.reverse.delete(name);\n\t\t\n\t\treturn true;\n\t}\n}\n","import { Component, inject, OnInit } from '@angular/core';\n\nimport { CommonsComponent } from 'ngx-angularcommons-esm-core';\n\nimport { CommonsPresentationService, TCommonsPresentationBlankAction } from 'ngx-presentationcommons-esm-core';\n\n@Component({\n\t\tselector: 'commons-presentation-slides-blank',\n\t\ttemplateUrl: './blank.component.html',\n\t\tstyleUrls: ['./blank.component.less']\n})\nexport class CommonsPresentationSlidesBlankComponent extends CommonsComponent implements OnInit {\n\tprivate readonly presentationService: CommonsPresentationService = inject<CommonsPresentationService>(CommonsPresentationService);\n\t\n\tprotected state: boolean|'holding' = false;\n\n\tpublic override ngOnInit(): void {\n\t\tsuper.ngOnInit();\n\t\t\n\t\tthis.subscribe(\n\t\t\t\tthis.presentationService.blankObservable,\n\t\t\t\t(action: TCommonsPresentationBlankAction): void => {\n\t\t\t\t\tthis.state = action.state;\n\t\t\t\t}\n\t\t);\n\t}\n}\n","@if (this.state !== false) {\n\t<section>\n\t\t@if (this.state === 'holding') {\n\t\t\t<ng-content></ng-content>\n\t\t}\n\t</section>\n}\n","import { Component, effect, inject, input, InputSignal, OnInit, Renderer2 } from '@angular/core';\n\nimport { CommonsComponent } from 'ngx-angularcommons-esm-core';\n\nimport { CommonsPresentationKeyDownService } from '../../services/keydown.service';\n\n@Component({\n\t\tselector: 'commons-presentation-slides-key-down',\n\t\tstandalone: true,\n\t\ttemplateUrl: './key-down.component.html',\n\t\tstyleUrls: ['./key-down.component.less'],\n\t\timports: []\n})\nexport class CommonsPresentationSlidesKeyDownComponent extends CommonsComponent implements OnInit {\n\tpublic readonly allowSpaceEither: InputSignal<boolean> = input.required<boolean>();\n\tpublic readonly allowArrowSoft: InputSignal<boolean> = input.required<boolean>();\n\n\tprivate readonly renderer: Renderer2 = inject<Renderer2>(Renderer2);\n\tprivate readonly keyDownService: CommonsPresentationKeyDownService = inject<CommonsPresentationKeyDownService>(CommonsPresentationKeyDownService);\n\n\tconstructor() {\n\t\tsuper();\n\n\t\teffect((): void => {\n\t\t\tthis.keyDownService.allowSpaceNext = this.allowSpaceEither();\n\t\t\tthis.keyDownService.allowArrowSoft = this.allowArrowSoft();\n\t\t});\n\t}\n\t\n\tpublic override ngOnInit(): void {\n\t\tsuper.ngOnInit();\n\t\t\n\t\tthis.renderer.listen(\n\t\t\t\t'document',\n\t\t\t\t'keydown',\n\t\t\t\t(e: KeyboardEvent): void => {\n\t\t\t\t\tthis.keyDownService.handle(e);\n\t\t\t\t}\n\t\t);\n\n\t\tthis.keyDownService.enabled = true;\n\t}\n}\n","<!-- shared-key-down -->","import { AfterViewInit, Directive, inject, OnInit } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\n\nimport { CommonsComponent } from 'ngx-angularcommons-esm-core';\nimport { CommonsPresentationService, ECommonsPresentationMoveMagnitude, TCommonsPresentationAction, TCommonsPresentationMoveAction } from 'ngx-presentationcommons-esm-core';\n\n@Directive()\nexport abstract class CommonsPresentationSlidesSlideComponent extends CommonsComponent implements OnInit, AfterViewInit {\n\tprivate readonly router: Router = inject<Router>(Router);\n\tprivate readonly activatedRoute: ActivatedRoute = inject<ActivatedRoute>(ActivatedRoute);\n\tprotected readonly presentationService: CommonsPresentationService = inject<CommonsPresentationService>(CommonsPresentationService);\n\t\n\tconstructor(\n\t\t\t// eslint-disable-next-line @angular-eslint/prefer-inject, @typescript-eslint/parameter-properties\n\t\t\tprivate readonly page: string,\n\t\t\t// eslint-disable-next-line @angular-eslint/prefer-inject, @typescript-eslint/parameter-properties\n\t\t\tprivate readonly maxIndex?: number\n\t) {\n\t\tsuper();\n\t}\n\n\tprivate internalIndex: number = 0;\n\tpublic get index(): number {\n\t\treturn this.internalIndex;\n\t}\n\n\tprivate internalShowAll: boolean = false;\n\tpublic get showAll(): boolean {\n\t\treturn this.internalShowAll;\n\t}\n\n\tprotected navigateRoot(navigation: string[]): void {\n\t\tvoid this.router.navigate(navigation, { relativeTo: this.activatedRoute.root });\n\t}\n\n\tprotected navigateSibling(name: string): void {\n\t\tvoid this.router.navigate([ name ], { relativeTo: this.activatedRoute.parent });\n\t}\n\n\tprotected navigateSet(name: string, last: boolean = false): void {\n\t\tvoid this.router.navigate([ name, ...(last ? [ 'last' ] : []) ], { relativeTo: this.activatedRoute.parent?.parent?.parent });\n\t}\n\n\tprotected abstract prev(): void;\n\tprotected abstract next(): void;\n\n\tpublic override ngOnInit(): void {\n\t\tsuper.ngOnInit();\n\n\t\tthis.subscribe(\n\t\t\t\tthis.presentationService.prevObservable,\n\t\t\t\t(action: TCommonsPresentationMoveAction): void => {\n\t\t\t\t\tthis.internalShowAll = false;\n\n\t\t\t\t\tif (action.magnitude === ECommonsPresentationMoveMagnitude.INNER) {\n\t\t\t\t\t\tif (this.maxIndex !== undefined && this.internalIndex > 0) {\n\t\t\t\t\t\t\tthis.internalIndex--;\n\n\t\t\t\t\t\t\tthis.presentationService.reachedSlide(this.page, this.internalIndex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (action.magnitude === ECommonsPresentationMoveMagnitude.PAGE) {\n\t\t\t\t\t\tthis.prev();\n\t\t\t\t\t}\n\t\t\t\t\tif (action.magnitude === ECommonsPresentationMoveMagnitude.EITHER) {\n\t\t\t\t\t\tif (this.maxIndex !== undefined && this.internalIndex > 0) {\n\t\t\t\t\t\t\tthis.internalIndex--;\n\n\t\t\t\t\t\t\tthis.presentationService.reachedSlide(this.page, this.internalIndex);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.prev();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t);\n\n\t\tthis.subscribe(\n\t\t\t\tthis.presentationService.nextObservable,\n\t\t\t\t(action: TCommonsPresentationMoveAction): void => {\n\t\t\t\t\tthis.internalShowAll = false;\n\t\t\t\t\t\n\t\t\t\t\tif (action.magnitude === ECommonsPresentationMoveMagnitude.INNER) {\n\t\t\t\t\t\tif (this.maxIndex !== undefined && this.internalIndex < this.maxIndex) {\n\t\t\t\t\t\t\tthis.internalIndex++;\n\n\t\t\t\t\t\t\tthis.presentationService.reachedSlide(this.page, this.internalIndex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (action.magnitude === ECommonsPresentationMoveMagnitude.PAGE) {\n\t\t\t\t\t\tthis.next();\n\t\t\t\t\t}\n\t\t\t\t\tif (action.magnitude === ECommonsPresentationMoveMagnitude.EITHER) {\n\t\t\t\t\t\tif (this.maxIndex !== undefined && this.internalIndex < this.maxIndex) {\n\t\t\t\t\t\t\tthis.internalIndex++;\n\n\t\t\t\t\t\t\tthis.presentationService.reachedSlide(this.page, this.internalIndex);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.next();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t);\n\n\t\tthis.subscribe(\n\t\t\t\tthis.presentationService.showAllObservable,\n\t\t\t\t(_action: TCommonsPresentationAction): void => {\n\t\t\t\t\tthis.internalShowAll = true;\n\t\t\t\t}\n\t\t);\n\t}\n\n\tpublic ngAfterViewInit(): void {\n\t\tthis.presentationService.reachedSlide(this.page, 0);\n\t}\n}\n","/*\n * Public API Surface of ngx-presentationcommons-esm-slides\n */\n\nexport * from './lib/services/keydown.service';\nexport * from './lib/components/blank/blank.component';\nexport * from './lib/components/key-down/key-down.component';\nexport * from './lib/components/slide.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAOa,iCAAiC,CAAA;AACrC,IAAA,mBAAmB,GAA+B,MAAM,CAA6B,0BAA0B,CAAC;IAEhH,SAAS,GAAY,IAAI;AACjC,IAAA,IAAW,OAAO,GAAA;QACjB,OAAO,IAAI,CAAC,SAAS;;IAEtB,IAAW,OAAO,CAAC,KAAc,EAAA;AAChC,QAAA,IAAI,CAAC,SAAS,GAAG,KAAK;;IAGf,cAAc,GAAY,KAAK;AACvC,IAAA,IAAW,cAAc,GAAA;QACxB,OAAO,IAAI,CAAC,cAAc;;IAE3B,IAAW,cAAc,CAAC,KAAc,EAAA;AACvC,QAAA,IAAI,CAAC,cAAc,GAAG,KAAK;;IAGpB,cAAc,GAAY,KAAK;AACvC,IAAA,IAAW,cAAc,GAAA;QACxB,OAAO,IAAI,CAAC,cAAc;;IAE3B,IAAW,cAAc,CAAC,KAAc,EAAA;AACvC,QAAA,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,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC;;qBAC9D;oBACN,IAAI,CAAC,IAAI,EAAE;;;AAGd,SAAC,CACF;AAED,QAAA,IAAI,CAAC,SAAS,CACZ,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,EAC1C,CAAC,OAAmC,KAAU;AAC7C,YAAA,IAAI,CAAC,eAAe,GAAG,IAAI;AAC5B,SAAC,CACF;;IAGK,eAAe,GAAA;QACrB,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;;wGAzG/B,uCAAuC,EAAA,IAAA,EAAA,SAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAvC,uCAAuC,EAAA,YAAA,EAAA,IAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAvC,uCAAuC,EAAA,UAAA,EAAA,CAAA;kBAD5D;;;ACND;;AAEG;;ACFH;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-presentationcommons-esm-slides" />
5
+ export * from './public-api';
@@ -0,0 +1,10 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { CommonsComponent } from 'ngx-angularcommons-esm-core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CommonsPresentationSlidesBlankComponent extends CommonsComponent implements OnInit {
5
+ private readonly presentationService;
6
+ protected state: boolean | 'holding';
7
+ ngOnInit(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommonsPresentationSlidesBlankComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<CommonsPresentationSlidesBlankComponent, "commons-presentation-slides-blank", never, {}, {}, never, ["*"], true, never>;
10
+ }
@@ -0,0 +1,13 @@
1
+ import { InputSignal, OnInit } from '@angular/core';
2
+ import { CommonsComponent } from 'ngx-angularcommons-esm-core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CommonsPresentationSlidesKeyDownComponent extends CommonsComponent implements OnInit {
5
+ readonly allowSpaceEither: InputSignal<boolean>;
6
+ readonly allowArrowSoft: InputSignal<boolean>;
7
+ private readonly renderer;
8
+ private readonly keyDownService;
9
+ constructor();
10
+ ngOnInit(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommonsPresentationSlidesKeyDownComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<CommonsPresentationSlidesKeyDownComponent, "commons-presentation-slides-key-down", never, { "allowSpaceEither": { "alias": "allowSpaceEither"; "required": true; "isSignal": true; }; "allowArrowSoft": { "alias": "allowArrowSoft"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
13
+ }
@@ -0,0 +1,25 @@
1
+ import { AfterViewInit, OnInit } from '@angular/core';
2
+ import { CommonsComponent } from 'ngx-angularcommons-esm-core';
3
+ import { CommonsPresentationService } from 'ngx-presentationcommons-esm-core';
4
+ import * as i0 from "@angular/core";
5
+ export declare abstract class CommonsPresentationSlidesSlideComponent extends CommonsComponent implements OnInit, AfterViewInit {
6
+ private readonly page;
7
+ private readonly maxIndex?;
8
+ private readonly router;
9
+ private readonly activatedRoute;
10
+ protected readonly presentationService: CommonsPresentationService;
11
+ constructor(page: string, maxIndex?: number | undefined);
12
+ private internalIndex;
13
+ get index(): number;
14
+ private internalShowAll;
15
+ get showAll(): boolean;
16
+ protected navigateRoot(navigation: string[]): void;
17
+ protected navigateSibling(name: string): void;
18
+ protected navigateSet(name: string, last?: boolean): void;
19
+ protected abstract prev(): void;
20
+ protected abstract next(): void;
21
+ ngOnInit(): void;
22
+ ngAfterViewInit(): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommonsPresentationSlidesSlideComponent, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CommonsPresentationSlidesSlideComponent, never, never, {}, {}, never, never, true, never>;
25
+ }
@@ -0,0 +1,23 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class CommonsPresentationKeyDownService {
3
+ private presentationService;
4
+ private isEnabled;
5
+ get enabled(): boolean;
6
+ set enabled(state: boolean);
7
+ private isSpaceAllowed;
8
+ get allowSpaceNext(): boolean;
9
+ set allowSpaceNext(state: boolean);
10
+ private isArrowAllowed;
11
+ get allowArrowSoft(): boolean;
12
+ set allowArrowSoft(state: boolean);
13
+ private keys;
14
+ private reverse;
15
+ private blankState;
16
+ constructor();
17
+ handle(event: KeyboardEvent): void;
18
+ private addKey;
19
+ addKeyTrigger(name: string, key: string): void;
20
+ removeKeyTrigger(name: string): boolean;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommonsPresentationKeyDownService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<CommonsPresentationKeyDownService>;
23
+ }
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "ngx-presentationcommons-esm-slides",
3
+ "version": "0.0.2",
4
+ "peerDependencies": {
5
+ "@angular/common": "^19.2.0",
6
+ "@angular/core": "^19.2.0",
7
+ "ngx-angularcommons-esm-core": "^0.0.7",
8
+ "ngx-presentationcommons-esm-core": "^0.0.2"
9
+ },
10
+ "dependencies": {
11
+ "tslib": "^2.3.0"
12
+ },
13
+ "sideEffects": false,
14
+ "module": "fesm2022/ngx-presentationcommons-esm-slides.mjs",
15
+ "typings": "index.d.ts",
16
+ "exports": {
17
+ "./package.json": {
18
+ "default": "./package.json"
19
+ },
20
+ ".": {
21
+ "types": "./index.d.ts",
22
+ "default": "./fesm2022/ngx-presentationcommons-esm-slides.mjs"
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,4 @@
1
+ export * from './lib/services/keydown.service';
2
+ export * from './lib/components/blank/blank.component';
3
+ export * from './lib/components/key-down/key-down.component';
4
+ export * from './lib/components/slide.component';