@solidpepper/solidpepper-flipbook 0.1.1 → 0.1.3

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, AfterViewInit, OnDestroy, ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { OnInit, AfterViewInit, OnDestroy, ElementRef, EventEmitter, ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
4
  import { PageFlip } from 'page-flip';
5
5
  import { HttpClient } from '@angular/common/http';
@@ -53,6 +53,7 @@ interface AppParams {
53
53
  documentData?: any[];
54
54
  debug?: boolean;
55
55
  isDemo?: boolean;
56
+ interactiveColor?: string;
56
57
  }
57
58
  declare class AppParamsService {
58
59
  readonly params: i0.WritableSignal<AppParams>;
@@ -67,6 +68,7 @@ declare class AppParamsService {
67
68
  get isDocument(): boolean;
68
69
  get debug(): boolean;
69
70
  get isDemo(): boolean;
71
+ get interactiveColor(): string | undefined;
70
72
  static ɵfac: i0.ɵɵFactoryDeclaration<AppParamsService, never>;
71
73
  static ɵprov: i0.ɵɵInjectableDeclaration<AppParamsService>;
72
74
  }
@@ -91,6 +93,7 @@ interface InteractiveData {
91
93
  showBox?: boolean;
92
94
  clickBox?: boolean;
93
95
  showIcon?: boolean;
96
+ color?: string;
94
97
  'icon-align'?: 'start' | 'center' | 'end';
95
98
  'icon-justify'?: 'start' | 'center' | 'end';
96
99
  }
@@ -136,6 +139,7 @@ declare class FlipbookDataService {
136
139
  declare class FlipbookViewerComponent implements OnInit, AfterViewInit, OnDestroy {
137
140
  private dataService;
138
141
  private paramsService;
142
+ private cdr;
139
143
  pages: any[];
140
144
  images: string[];
141
145
  flipbookRef: ElementRef<HTMLDivElement>;
@@ -169,8 +173,11 @@ declare class FlipbookViewerComponent implements OnInit, AfterViewInit, OnDestro
169
173
  private readonly scaleMin;
170
174
  private readonly scaleMax;
171
175
  get transformStyle(): string;
172
- constructor(dataService: FlipbookDataService, paramsService: AppParamsService);
176
+ constructor(dataService: FlipbookDataService, paramsService: AppParamsService, cdr: ChangeDetectorRef);
173
177
  ngOnInit(): void;
178
+ private resizeObserver?;
179
+ private lastObservedWidth;
180
+ private lastObservedHeight;
174
181
  ngAfterViewInit(): Promise<void>;
175
182
  private getImageDimensions;
176
183
  initBook(targetPage?: number): Promise<void>;
@@ -228,12 +235,22 @@ declare class PDFService {
228
235
  static ɵprov: i0.ɵɵInjectableDeclaration<PDFService>;
229
236
  }
230
237
 
231
- declare class AppComponent implements OnInit, OnChanges {
238
+ declare class ThemeService {
239
+ isDarkMode: i0.WritableSignal<boolean>;
240
+ constructor();
241
+ toggleTheme(): void;
242
+ private applyTheme;
243
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
244
+ static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
245
+ }
246
+
247
+ declare class AppComponent implements OnInit, OnChanges, OnDestroy {
232
248
  private translationService;
233
249
  private appParamsService;
234
250
  loadingService: LoadingService;
235
251
  private flipbookDataService;
236
252
  private pdfService;
253
+ themeService: ThemeService;
237
254
  guid?: string;
238
255
  alias?: string;
239
256
  type?: string;
@@ -242,6 +259,12 @@ declare class AppComponent implements OnInit, OnChanges {
242
259
  get apiUrl(): string;
243
260
  private _apiUrl;
244
261
  language: string;
262
+ disableModals: boolean;
263
+ interactiveColor?: string;
264
+ set interactiveColorHyphen(v: string);
265
+ set linkColorInput(v: string);
266
+ set linkColorHyphen(v: string);
267
+ set colorInput(v: string);
245
268
  set isDemo1(v: any);
246
269
  set isDemo2(v: any);
247
270
  set isDemo3(v: any);
@@ -263,8 +286,9 @@ declare class AppComponent implements OnInit, OnChanges {
263
286
  isDemoLoading: i0.WritableSignal<boolean>;
264
287
  conversionProgress: i0.WritableSignal<number>;
265
288
  private pricingTimer;
266
- constructor(translationService: TranslationService, appParamsService: AppParamsService, loadingService: LoadingService, flipbookDataService: FlipbookDataService, pdfService: PDFService);
289
+ constructor(translationService: TranslationService, appParamsService: AppParamsService, loadingService: LoadingService, flipbookDataService: FlipbookDataService, pdfService: PDFService, themeService: ThemeService);
267
290
  ngOnInit(): void;
291
+ ngOnDestroy(): void;
268
292
  onResize(): void;
269
293
  private checkMobile;
270
294
  ngOnChanges(changes: SimpleChanges): void;
@@ -280,13 +304,14 @@ declare class AppComponent implements OnInit, OnChanges {
280
304
  onZoomIn(): void;
281
305
  onZoomOut(): void;
282
306
  toggleSidebar(): void;
307
+ toggleMap(): void;
283
308
  flipStart(): void;
284
309
  flipPrev(): void;
285
310
  flipNext(): void;
286
311
  flipEnd(): void;
287
312
  goToPage(page: number): void;
288
313
  static ɵfac: i0.ɵɵFactoryDeclaration<AppComponent, never>;
289
- static ɵcmp: i0.ɵɵComponentDeclaration<AppComponent, "solidpepper-flipbook", never, { "guid": { "alias": "guid"; "required": false; }; "alias": { "alias": "alias"; "required": false; }; "type": { "alias": "type"; "required": false; }; "apiUrl1": { "alias": "apiurl"; "required": false; }; "apiUrl2": { "alias": "api-url"; "required": false; }; "language": { "alias": "language"; "required": false; }; "isDemo1": { "alias": "isDemo"; "required": false; }; "isDemo2": { "alias": "isdemo"; "required": false; }; "isDemo3": { "alias": "is-demo"; "required": false; }; }, { "exitEditor": "exitEditor"; }, never, never, true, never>;
314
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppComponent, "solidpepper-flipbook", never, { "guid": { "alias": "guid"; "required": false; }; "alias": { "alias": "alias"; "required": false; }; "type": { "alias": "type"; "required": false; }; "apiUrl1": { "alias": "apiurl"; "required": false; }; "apiUrl2": { "alias": "api-url"; "required": false; }; "language": { "alias": "language"; "required": false; }; "disableModals": { "alias": "disableModals"; "required": false; }; "interactiveColor": { "alias": "interactiveColor"; "required": false; }; "interactiveColorHyphen": { "alias": "interactive-color"; "required": false; }; "linkColorInput": { "alias": "linkColor"; "required": false; }; "linkColorHyphen": { "alias": "link-color"; "required": false; }; "colorInput": { "alias": "color"; "required": false; }; "isDemo1": { "alias": "isDemo"; "required": false; }; "isDemo2": { "alias": "isdemo"; "required": false; }; "isDemo3": { "alias": "is-demo"; "required": false; }; }, { "exitEditor": "exitEditor"; }, never, never, true, never>;
290
315
  }
291
316
 
292
317
  export { AppParamsService, AppComponent as FlipbookComponent, FlipbookDataService };
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@solidpepper/solidpepper-flipbook",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Solidpepper - flipbook library",
5
5
  "peerDependencies": {
6
- "@angular/common": "^20.1.6",
7
- "@angular/core": "^20.1.6"
6
+ "@angular/common": "^20.3.12",
7
+ "@angular/core": "^20.3.12",
8
+ "@angular/platform-browser": "^20.3.12",
9
+ "@ngx-translate/core": "^17.0.0",
10
+ "rxjs": "^7.8.0",
11
+ "page-flip": "^2.0.7",
12
+ "pdfjs-dist": "^4.8.69"
8
13
  },
9
14
  "dependencies": {
10
15
  "tslib": "^2.3.0"