@solidpepper/solidpepper-soliddesigner 0.2.11 → 0.2.30

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.
@@ -1,2 +1,2 @@
1
- export { A as AppParamsService, c as SolidDesignerComponent } from './solidpepper-solidpepper-soliddesigner-solidpepper-solidpepper-soliddesigner-DObN-3fp.mjs';
1
+ export { A as AppParamsService, c as SolidDesignerComponent } from './solidpepper-solidpepper-soliddesigner-solidpepper-solidpepper-soliddesigner-escB6nIY.mjs';
2
2
  //# sourceMappingURL=solidpepper-solidpepper-soliddesigner.mjs.map
package/index.d.ts CHANGED
@@ -1,10 +1,9 @@
1
- import * as _angular_core from '@angular/core';
1
+ import * as i0 from '@angular/core';
2
2
  import { RendererFactory2, Injector, Type, OnInit, OnChanges, EventEmitter, ElementRef, SimpleChanges } from '@angular/core';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
4
  import { HttpClient } from '@angular/common/http';
5
5
  import * as rxjs from 'rxjs';
6
6
  import { Observable } from 'rxjs';
7
- import { PublicationTemplate, DocumentComment, PublicationsTemplatesService, SettingsService, PublicationsService } from '@solidpepper/solidpepper-service';
8
7
  import * as signalR from '@microsoft/signalr';
9
8
  import { Router } from '@angular/router';
10
9
 
@@ -19,8 +18,8 @@ declare class TranslationService {
19
18
  code: string;
20
19
  text: string;
21
20
  }[];
22
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TranslationService, never>;
23
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<TranslationService>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslationService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<TranslationService>;
24
23
  }
25
24
 
26
25
  declare enum DocumentType {
@@ -29,9 +28,7 @@ declare enum DocumentType {
29
28
  MARKETING = "marketing",
30
29
  PRODUCTBLOCK = "productblock",
31
30
  DOCUMENT = "document",
32
- YOUBOOKY = "youbooky",
33
- TEMPLATE = "template",
34
- CALLOUT = "callout"
31
+ TEMPLATE = "template"
35
32
  }
36
33
 
37
34
  interface AppParams {
@@ -41,36 +38,13 @@ interface AppParams {
41
38
  apiUrl?: string;
42
39
  language?: string;
43
40
  unit?: string;
44
- templateData?: PublicationTemplate;
41
+ templateData?: any;
45
42
  documentData?: any[];
46
43
  documentName?: string;
47
- productSheetAssetGuid?: string | null;
48
- productSheetGuid?: string | null;
49
- documentPublicationGuid?: string | null;
50
44
  }
51
45
  declare class AppParamsService {
52
- readonly params: _angular_core.WritableSignal<AppParams>;
53
- readonly pageGuid: _angular_core.WritableSignal<string>;
54
- readonly commentsModeActive: _angular_core.WritableSignal<boolean>;
55
- readonly isWaitingForCanvasClick: _angular_core.WritableSignal<boolean>;
56
- readonly activeCommentGuid: _angular_core.WritableSignal<string | null>;
57
- readonly commentsPanelCollapsed: _angular_core.WritableSignal<boolean>;
58
- readonly propertiesPanelCollapsed: _angular_core.WritableSignal<boolean>;
59
- readonly globalPanelCollapsed: _angular_core.WritableSignal<boolean>;
60
- readonly draftComment: _angular_core.WritableSignal<{
61
- pageGuid: string;
62
- x: number;
63
- y: number;
64
- } | null>;
65
- readonly commentsList: _angular_core.WritableSignal<DocumentComment[]>;
66
- readonly activeCommentTool: _angular_core.WritableSignal<"point" | "text" | "drawing" | "shape-rect" | "shape-line" | "highlight">;
67
- readonly commentColor: _angular_core.WritableSignal<string>;
68
- readonly draftDrawing: _angular_core.WritableSignal<{
69
- pageGuid: string;
70
- type: string;
71
- pathData: string;
72
- color: string;
73
- } | null>;
46
+ readonly params: i0.WritableSignal<AppParams>;
47
+ readonly pageGuid: i0.WritableSignal<string>;
74
48
  setParams(params: Partial<AppParams>): void;
75
49
  updateTemplateName(newName: string): void;
76
50
  updateDocumentName(newName: string): void;
@@ -79,13 +53,10 @@ declare class AppParamsService {
79
53
  get guid(): string | undefined;
80
54
  get apiUrl(): string | undefined;
81
55
  get language(): string | undefined;
82
- get templateData(): PublicationTemplate | undefined;
56
+ get templateData(): any;
83
57
  get documentData(): any[] | undefined;
84
- get productSheetAssetGuid(): string | null | undefined;
85
- get productSheetGuid(): string | null | undefined;
86
- get documentPublicationGuid(): string | null | undefined;
87
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppParamsService, never>;
88
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<AppParamsService>;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppParamsService, never>;
59
+ static ɵprov: i0.ɵɵInjectableDeclaration<AppParamsService>;
89
60
  }
90
61
 
91
62
  declare class FontApiService {
@@ -98,8 +69,8 @@ declare class FontApiService {
98
69
  updateFont(font: any): Observable<any>;
99
70
  deleteFont(fontId: number | string): Observable<any>;
100
71
  getFontAsBase64(fontName: string, fontUrl: string, fontFilename: string): Observable<any>;
101
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FontApiService, never>;
102
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<FontApiService>;
72
+ static ɵfac: i0.ɵɵFactoryDeclaration<FontApiService, never>;
73
+ static ɵprov: i0.ɵɵInjectableDeclaration<FontApiService>;
103
74
  }
104
75
 
105
76
  interface FontDefinition {
@@ -114,8 +85,8 @@ interface FontDefinition {
114
85
  }
115
86
  declare class FontService {
116
87
  private fontApiService;
117
- fontsNames: _angular_core.WritableSignal<string[]>;
118
- availableFonts: _angular_core.WritableSignal<{
88
+ fontsNames: i0.WritableSignal<string[]>;
89
+ availableFonts: i0.WritableSignal<{
119
90
  [key: string]: FontDefinition;
120
91
  }>;
121
92
  private fontsImported;
@@ -135,8 +106,8 @@ declare class FontService {
135
106
  private injectDocumentFonts;
136
107
  isGoogleFont(fontName: string): boolean;
137
108
  getCustomFontUrlFace(fontName: string): string | null;
138
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FontService, never>;
139
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<FontService>;
109
+ static ɵfac: i0.ɵɵFactoryDeclaration<FontService, never>;
110
+ static ɵprov: i0.ɵɵInjectableDeclaration<FontService>;
140
111
  }
141
112
 
142
113
  type NotificationType = 'info' | 'success' | 'warning' | 'error';
@@ -149,7 +120,7 @@ interface Notification {
149
120
  declare class NotificationService {
150
121
  private http;
151
122
  private _settingsService;
152
- notifications: _angular_core.WritableSignal<Notification[]>;
123
+ notifications: i0.WritableSignal<Notification[]>;
153
124
  private quantity;
154
125
  show(message: string, type?: NotificationType, duration?: number): void;
155
126
  success(message: string, duration?: number): void;
@@ -160,8 +131,8 @@ declare class NotificationService {
160
131
  sendUpdate(message: number): void;
161
132
  getUpdate(): Observable<any>;
162
133
  getNotifications(start?: any, limit?: any): Observable<Object>;
163
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<NotificationService, never>;
164
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<NotificationService>;
134
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
135
+ static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
165
136
  }
166
137
 
167
138
  declare class WebsocketService {
@@ -186,20 +157,18 @@ declare class WebsocketService {
186
157
  listeners(): void;
187
158
  listenersOnClose(): void;
188
159
  disconnect(): void;
189
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<WebsocketService, never>;
190
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<WebsocketService>;
160
+ static ɵfac: i0.ɵɵFactoryDeclaration<WebsocketService, never>;
161
+ static ɵprov: i0.ɵɵInjectableDeclaration<WebsocketService>;
191
162
  }
192
163
 
193
164
  declare class AssetsService {
194
165
  private http;
195
166
  private appParams;
196
- private templatesService;
197
- constructor(http: HttpClient, appParams: AppParamsService, templatesService: PublicationsTemplatesService);
167
+ constructor(http: HttpClient, appParams: AppParamsService);
198
168
  getAssetByGuid(assetGuid: string): Observable<any>;
199
- getSVGTemplate(guid: string): Observable<PublicationTemplate>;
169
+ getSVGTemplate(guid: string): Observable<any>;
200
170
  getTemplateBackgroundsList(templateGuid: string): Observable<any>;
201
- getTemplateProductBlocks(templateGuid: string): Observable<PublicationTemplate[]>;
202
- getTemplateCallouts(templateGuid: string): Observable<PublicationTemplate[]>;
171
+ getTemplateProductBlocks(templateGuid: string): Observable<any[]>;
203
172
  getSVGDocumentPages(guid: string): Observable<any>;
204
173
  getTemplateDimensions(): Observable<any>;
205
174
  saveDocument(type: string, formData: FormData): Observable<any>;
@@ -210,39 +179,36 @@ declare class AssetsService {
210
179
  deleteDocumentPage(assetGuid: string, pageGuid: string): Observable<any>;
211
180
  updateTemplateField(fieldName: string, fieldValue: string): Observable<any>;
212
181
  getTemplates(): Observable<any[]>;
182
+ publishYoubooky(): Observable<any>;
213
183
  checkPdfExistence(): Observable<any>;
214
- generatePdf(highDefinition?: boolean, imageColorProfile?: string, bleedMargin?: boolean, cuttingLines?: boolean, bleedMarginCustom?: boolean, bleedMarginValue?: number, compressPdf?: boolean): Observable<any>;
215
- getFoldersWithParent(parentGuid?: string, folderType?: string): Observable<any[]>;
216
- getAssetsTemplates(folderGuid?: string): Observable<any[]>;
217
- getAssetsCallouts(folderGuid?: string): Observable<any[]>;
184
+ generatePdf(highDefinition?: boolean, imageColorProfile?: string, bleedMargin?: boolean, cuttingLines?: boolean, bleedMarginCustom?: boolean, bleedMarginValue?: number): Observable<any>;
185
+ getAssetsTemplates(): Observable<any[]>;
218
186
  getTemplateGuidFromAssetGuid(assetGuid: string): Observable<string | null>;
219
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<AssetsService, never>;
220
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<AssetsService>;
187
+ static ɵfac: i0.ɵɵFactoryDeclaration<AssetsService, never>;
188
+ static ɵprov: i0.ɵɵInjectableDeclaration<AssetsService>;
221
189
  }
222
190
 
223
191
  declare class CanvasService {
224
192
  private _svgElement;
225
193
  private _wrapperElement;
226
194
  private readonly _transform;
227
- readonly zoomLevel: _angular_core.WritableSignal<number>;
228
- readonly panOffset: _angular_core.WritableSignal<{
195
+ readonly zoomLevel: i0.WritableSignal<number>;
196
+ readonly panOffset: i0.WritableSignal<{
229
197
  x: number;
230
198
  y: number;
231
199
  }>;
232
- readonly baseScale: _angular_core.WritableSignal<number>;
233
- readonly isReady: _angular_core.WritableSignal<boolean>;
234
- readonly currentContext: _angular_core.WritableSignal<SVGGElement | SVGSVGElement | null>;
235
- readonly modifiedPulse: _angular_core.WritableSignal<number>;
236
- readonly isSilent: _angular_core.WritableSignal<boolean>;
237
- readonly versionUpgraded: _angular_core.WritableSignal<boolean>;
200
+ readonly baseScale: i0.WritableSignal<number>;
201
+ readonly isReady: i0.WritableSignal<boolean>;
202
+ readonly currentContext: i0.WritableSignal<SVGSVGElement | SVGGElement | null>;
203
+ readonly modifiedPulse: i0.WritableSignal<number>;
204
+ readonly isSilent: i0.WritableSignal<boolean>;
205
+ readonly versionUpgraded: i0.WritableSignal<boolean>;
238
206
  private disabledElems;
239
207
  private readonly docService;
240
208
  private readonly eventsService;
241
209
  private readonly selectionStore;
242
210
  private readonly colorService;
243
- private readonly appParams;
244
211
  private injector;
245
- private get historyService();
246
212
  constructor();
247
213
  get svgElement(): SVGSVGElement;
248
214
  get wrapperElement(): HTMLElement;
@@ -330,10 +296,6 @@ declare class CanvasService {
330
296
  * Moving current content into a left dataside group and cloning it into a right dataside group.
331
297
  */
332
298
  migrateLegacyToDoublePage(): void;
333
- /**
334
- * Updates visibility and pointer-events for double-page side groups
335
- */
336
- updateSideVisibility(): void;
337
299
  /**
338
300
  * Delete the currently selected elements
339
301
  */
@@ -390,8 +352,8 @@ declare class CanvasService {
390
352
  * Cached based on modifiedPulse for performance.
391
353
  */
392
354
  getMostUsedColors(limit?: number): string[];
393
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CanvasService, never>;
394
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<CanvasService>;
355
+ static ɵfac: i0.ɵɵFactoryDeclaration<CanvasService, never>;
356
+ static ɵprov: i0.ɵɵInjectableDeclaration<CanvasService>;
395
357
  }
396
358
 
397
359
  interface EditorEvent {
@@ -419,8 +381,8 @@ declare class EventsService {
419
381
  private handlePaste;
420
382
  private handleKeyDown;
421
383
  private handleKeyUp;
422
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<EventsService, never>;
423
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<EventsService>;
384
+ static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
385
+ static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
424
386
  }
425
387
 
426
388
  interface DocumentProperties {
@@ -428,37 +390,35 @@ interface DocumentProperties {
428
390
  height: number;
429
391
  unit: 'px' | 'cm' | 'mm' | 'in';
430
392
  backgroundColor: string;
431
- marginTop: number;
432
- marginBottom: number;
393
+ marginVertical: number;
394
+ headerHeight: number;
395
+ footerHeight: number;
433
396
  marginLeft: number;
434
397
  marginRight: number;
435
398
  bleedMargin: number;
436
399
  viewBox?: string;
437
400
  doublePage?: boolean;
438
401
  side?: 'left' | 'right';
439
- marginVertical: number;
440
- headerHeight: number;
441
- footerHeight: number;
442
402
  }
443
403
  declare class DocumentService {
444
404
  private appParams;
445
- readonly properties: _angular_core.WritableSignal<DocumentProperties>;
405
+ readonly properties: i0.WritableSignal<DocumentProperties>;
446
406
  private getInitialUnit;
447
407
  constructor();
448
- get dimensions(): _angular_core.WritableSignal<DocumentProperties>;
408
+ get dimensions(): i0.WritableSignal<DocumentProperties>;
449
409
  updateDimensions(width: number, height: number): void;
450
410
  updateUnit(unit: DocumentProperties['unit']): void;
451
411
  updateProperty<K extends keyof DocumentProperties>(key: K, value: DocumentProperties[K]): void;
452
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DocumentService, never>;
453
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<DocumentService>;
412
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocumentService, never>;
413
+ static ɵprov: i0.ɵɵInjectableDeclaration<DocumentService>;
454
414
  }
455
415
 
456
416
  declare class SelectionStore {
457
- readonly selectedElements: _angular_core.WritableSignal<SVGElement[]>;
458
- readonly updated: _angular_core.WritableSignal<number>;
459
- readonly count: _angular_core.Signal<number>;
460
- readonly isEmpty: _angular_core.Signal<boolean>;
461
- readonly first: _angular_core.Signal<SVGElement>;
417
+ readonly selectedElements: i0.WritableSignal<SVGElement[]>;
418
+ readonly updated: i0.WritableSignal<number>;
419
+ readonly count: i0.Signal<number>;
420
+ readonly isEmpty: i0.Signal<boolean>;
421
+ readonly first: i0.Signal<SVGElement>;
462
422
  select(elements: SVGElement[]): void;
463
423
  add(element: SVGElement): void;
464
424
  toggle(element: SVGElement): void;
@@ -469,8 +429,8 @@ declare class SelectionStore {
469
429
  * but the selection reference itself remains the same.
470
430
  */
471
431
  triggerUpdate(): void;
472
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectionStore, never>;
473
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<SelectionStore>;
432
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectionStore, never>;
433
+ static ɵprov: i0.ɵɵInjectableDeclaration<SelectionStore>;
474
434
  }
475
435
 
476
436
  interface HSLA {
@@ -542,8 +502,8 @@ declare class ColorService {
542
502
  parseHslString(str: string): RGBA;
543
503
  parseHsvString(str: string): RGBA;
544
504
  parseCmykString(str: string): RGBA;
545
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorService, never>;
546
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<ColorService>;
505
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorService, never>;
506
+ static ɵprov: i0.ɵɵInjectableDeclaration<ColorService>;
547
507
  }
548
508
 
549
509
  interface TableSize {
@@ -553,9 +513,8 @@ interface TableSize {
553
513
  declare class TableElementService {
554
514
  private readonly canvasService;
555
515
  private colorService;
556
- private readonly eventsService;
557
516
  private readonly renderer;
558
- constructor(rendererFactory: RendererFactory2, canvasService: CanvasService, colorService: ColorService, eventsService: EventsService);
517
+ constructor(rendererFactory: RendererFactory2, canvasService: CanvasService, colorService: ColorService);
559
518
  /**
560
519
  * Create a product table foreignObject element on the canvas.
561
520
  */
@@ -594,7 +553,6 @@ declare class TableElementService {
594
553
  getTableSize(container: Element): TableSize;
595
554
  setTableSize(container: Element, targetRows: number, targetCols: number): void;
596
555
  setEditInput(cell: HTMLElement): void;
597
- private handleCellInsertParagraph;
598
556
  removeEditInput(cell: HTMLElement): void;
599
557
  selectCells(container: Element, cells: Element[]): void;
600
558
  deselectAllCells(container: Element): void;
@@ -612,8 +570,8 @@ declare class TableElementService {
612
570
  /** Get all elements in a given column (across all rows). */
613
571
  _getColumnByIndex(table: Element, colIndex: number): Element[];
614
572
  exportVariantsTableSettings(tableElement: HTMLElement): any;
615
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableElementService, never>;
616
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableElementService>;
573
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableElementService, never>;
574
+ static ɵprov: i0.ɵɵInjectableDeclaration<TableElementService>;
617
575
  }
618
576
 
619
577
  declare enum LoadingError {
@@ -623,12 +581,12 @@ declare enum LoadingError {
623
581
  TOKEN = "LOADER.ERRORS.TOKEN"
624
582
  }
625
583
  declare class LoadingService {
626
- readonly isLoading: _angular_core.WritableSignal<boolean>;
627
- readonly hasError: _angular_core.WritableSignal<boolean>;
628
- readonly errorKey: _angular_core.WritableSignal<LoadingError>;
629
- readonly isCanvasLoading: _angular_core.WritableSignal<boolean>;
630
- readonly canvasHasError: _angular_core.WritableSignal<boolean>;
631
- readonly canvasErrorKey: _angular_core.WritableSignal<LoadingError>;
584
+ readonly isLoading: i0.WritableSignal<boolean>;
585
+ readonly hasError: i0.WritableSignal<boolean>;
586
+ readonly errorKey: i0.WritableSignal<LoadingError>;
587
+ readonly isCanvasLoading: i0.WritableSignal<boolean>;
588
+ readonly canvasHasError: i0.WritableSignal<boolean>;
589
+ readonly canvasErrorKey: i0.WritableSignal<LoadingError>;
632
590
  showLoader(): void;
633
591
  hideLoader(): void;
634
592
  showError(error: LoadingError): void;
@@ -636,8 +594,8 @@ declare class LoadingService {
636
594
  hideCanvasLoader(): void;
637
595
  showCanvasError(error: LoadingError): void;
638
596
  reset(): void;
639
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<LoadingService, never>;
640
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<LoadingService>;
597
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadingService, never>;
598
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoadingService>;
641
599
  }
642
600
 
643
601
  declare class SaveService {
@@ -650,8 +608,8 @@ declare class SaveService {
650
608
  private fontService;
651
609
  private tableService;
652
610
  private loadingService;
653
- isDirty: _angular_core.WritableSignal<boolean>;
654
- saveSuccessPulse: _angular_core.WritableSignal<{
611
+ isDirty: i0.WritableSignal<boolean>;
612
+ saveSuccessPulse: i0.WritableSignal<{
655
613
  guid: string;
656
614
  count: number;
657
615
  }>;
@@ -667,8 +625,8 @@ declare class SaveService {
667
625
  * Trigger a download/upload of the current SVG
668
626
  */
669
627
  save(): Promise<void>;
670
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SaveService, never>;
671
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<SaveService>;
628
+ static ɵfac: i0.ɵɵFactoryDeclaration<SaveService, never>;
629
+ static ɵprov: i0.ɵɵInjectableDeclaration<SaveService>;
672
630
  }
673
631
 
674
632
  declare class OpenService {
@@ -678,8 +636,7 @@ declare class OpenService {
678
636
  private injector;
679
637
  private selectionStore;
680
638
  private saveService;
681
- private translate;
682
- constructor(canvasService: CanvasService, eventsService: EventsService, docService: DocumentService, injector: Injector, selectionStore: SelectionStore, saveService: SaveService, translate: TranslateService);
639
+ constructor(canvasService: CanvasService, eventsService: EventsService, docService: DocumentService, injector: Injector, selectionStore: SelectionStore, saveService: SaveService);
683
640
  /**
684
641
  * Load SVG content string into the canvas
685
642
  */
@@ -697,8 +654,8 @@ declare class OpenService {
697
654
  * Import an SVG element (Delegate to processImportedSvg if root)
698
655
  */
699
656
  importSvgElement(svgEl: SVGElement): void;
700
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<OpenService, never>;
701
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<OpenService>;
657
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpenService, never>;
658
+ static ɵprov: i0.ɵɵInjectableDeclaration<OpenService>;
702
659
  }
703
660
 
704
661
  declare abstract class Command {
@@ -728,7 +685,7 @@ declare class HistoryService {
728
685
  private debounceTimer;
729
686
  private complexStateCache;
730
687
  private accumulatedChanges;
731
- readonly historyChanged: _angular_core.WritableSignal<number>;
688
+ readonly historyChanged: i0.WritableSignal<number>;
732
689
  constructor();
733
690
  private initKeyboardShortcuts;
734
691
  canUndo(): boolean;
@@ -747,26 +704,39 @@ declare class HistoryService {
747
704
  private getComplexRoot;
748
705
  private updateComplexCache;
749
706
  private initializeCache;
750
- private stopMonitoring;
751
707
  private startMonitoring;
752
708
  private handleMutations;
753
709
  private recordChanges;
754
710
  private scheduleFlush;
755
711
  private flushChanges;
756
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HistoryService, never>;
757
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<HistoryService>;
712
+ static ɵfac: i0.ɵɵFactoryDeclaration<HistoryService, never>;
713
+ static ɵprov: i0.ɵɵInjectableDeclaration<HistoryService>;
758
714
  }
759
715
 
716
+ interface BackgroundTemplate {
717
+ backgroundGuid: string;
718
+ backgroundName: string;
719
+ backgroundUrl: string;
720
+ backgroundFormatName: string;
721
+ backgroundIsDefault: boolean;
722
+ svgContent?: string;
723
+ svgUrl?: string;
724
+ width?: number;
725
+ height?: number;
726
+ marginHorizontal?: number;
727
+ headerHeight?: number;
728
+ footerHeight?: number;
729
+ }
760
730
  declare class BackgroundPreviewService {
761
731
  private assetsService;
762
732
  private appParams;
763
733
  private backgroundsSignal;
764
734
  private activeBackgroundIndexSignal;
765
735
  private isPreviewHiddenSignal;
766
- backgrounds: _angular_core.Signal<PublicationTemplate[]>;
767
- activeBackgroundIndex: _angular_core.Signal<number>;
768
- isPreviewHidden: _angular_core.Signal<boolean>;
769
- activeBackground: _angular_core.Signal<PublicationTemplate | null>;
736
+ backgrounds: i0.Signal<BackgroundTemplate[]>;
737
+ activeBackgroundIndex: i0.Signal<number>;
738
+ isPreviewHidden: i0.Signal<boolean>;
739
+ activeBackground: i0.Signal<BackgroundTemplate | null>;
770
740
  constructor(assetsService: AssetsService, appParams: AppParamsService);
771
741
  /**
772
742
  * Loads the background templates and fetches their SVG contents
@@ -774,8 +744,8 @@ declare class BackgroundPreviewService {
774
744
  loadBackgrounds(): Promise<void>;
775
745
  setActiveBackground(index: number): void;
776
746
  setPreviewHidden(hidden: boolean): void;
777
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BackgroundPreviewService, never>;
778
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<BackgroundPreviewService>;
747
+ static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundPreviewService, never>;
748
+ static ɵprov: i0.ɵɵInjectableDeclaration<BackgroundPreviewService>;
779
749
  }
780
750
 
781
751
  interface ModalOptions {
@@ -787,8 +757,8 @@ declare class ModalService {
787
757
  modalState$: rxjs.Observable<ModalOptions | null>;
788
758
  open(component: Type<any>, data?: any): void;
789
759
  close(): void;
790
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalService, never>;
791
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<ModalService>;
760
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
761
+ static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
792
762
  }
793
763
 
794
764
  interface EditorConfig {
@@ -800,19 +770,19 @@ interface EditorConfig {
800
770
  theme: 'light' | 'dark';
801
771
  }
802
772
  declare class ConfigService {
803
- readonly config: _angular_core.WritableSignal<EditorConfig>;
773
+ readonly config: i0.WritableSignal<EditorConfig>;
804
774
  updateConfig(partialConfig: Partial<EditorConfig>): void;
805
775
  toggleGrid(): void;
806
776
  toggleRulers(): void;
807
777
  toggleWireframe(): void;
808
778
  toggleMargins(): void;
809
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfigService, never>;
810
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<ConfigService>;
779
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService, never>;
780
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
811
781
  }
812
782
 
813
783
  declare class AppComponent implements OnInit, OnChanges {
814
784
  private translationService;
815
- appParamsService: AppParamsService;
785
+ private appParamsService;
816
786
  private assetsService;
817
787
  private openService;
818
788
  private canvasService;
@@ -826,27 +796,23 @@ declare class AppComponent implements OnInit, OnChanges {
826
796
  private saveService;
827
797
  loadingService: LoadingService;
828
798
  private websocketService;
829
- private libSettingsService;
830
- private publicationsService;
831
799
  token?: string;
832
- type: DocumentType.BACKGROUND | DocumentType.COVERPAGE | DocumentType.MARKETING | DocumentType.PRODUCTBLOCK | DocumentType.DOCUMENT | DocumentType.YOUBOOKY | DocumentType.TEMPLATE | DocumentType.CALLOUT | string;
800
+ type: DocumentType.BACKGROUND | DocumentType.COVERPAGE | DocumentType.MARKETING | DocumentType.PRODUCTBLOCK | DocumentType.DOCUMENT | DocumentType.TEMPLATE;
833
801
  guid?: string;
834
802
  apiUrl: string;
835
803
  language: string;
836
804
  unit?: string;
837
- pageNumber?: number;
838
- pageGuid?: string;
839
805
  exitEditor: EventEmitter<void>;
840
- isSafari: _angular_core.WritableSignal<boolean>;
806
+ isSafari: i0.WritableSignal<boolean>;
841
807
  isInitialized: boolean;
842
- constructor(translationService: TranslationService, appParamsService: AppParamsService, assetsService: AssetsService, openService: OpenService, canvasService: CanvasService, historyService: HistoryService, backgroundService: BackgroundPreviewService, fontService: FontService, eventsService: EventsService, modalService: ModalService, hostElement: ElementRef, config: ConfigService, saveService: SaveService, loadingService: LoadingService, websocketService: WebsocketService, libSettingsService: SettingsService, publicationsService: PublicationsService);
808
+ constructor(translationService: TranslationService, appParamsService: AppParamsService, assetsService: AssetsService, openService: OpenService, canvasService: CanvasService, historyService: HistoryService, backgroundService: BackgroundPreviewService, fontService: FontService, eventsService: EventsService, modalService: ModalService, hostElement: ElementRef, config: ConfigService, saveService: SaveService, loadingService: LoadingService, websocketService: WebsocketService);
843
809
  ngOnInit(): void;
844
810
  ngOnChanges(changes: SimpleChanges): void;
845
811
  private tryInitialize;
846
812
  private initShortcutListeners;
847
813
  private checkBrowser;
848
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppComponent, never>;
849
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppComponent, "solid-designer", never, { "token": { "alias": "token"; "required": false; }; "type": { "alias": "type"; "required": false; }; "guid": { "alias": "guid"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "language": { "alias": "language"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; "pageNumber": { "alias": "pageNumber"; "required": false; }; "pageGuid": { "alias": "pageGuid"; "required": false; }; }, { "exitEditor": "exitEditor"; }, never, never, true, never>;
814
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppComponent, never>;
815
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppComponent, "solid-designer", never, { "token": { "alias": "token"; "required": false; }; "type": { "alias": "type"; "required": false; }; "guid": { "alias": "guid"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "language": { "alias": "language"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; }, { "exitEditor": "exitEditor"; }, never, never, true, never>;
850
816
  }
851
817
 
852
818
  export { AppParamsService, AppComponent as SolidDesignerComponent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidpepper/solidpepper-soliddesigner",
3
- "version": "0.2.11",
3
+ "version": "0.2.30",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.6",
6
6
  "@angular/core": "^20.1.6",
@@ -11,7 +11,7 @@
11
11
  "rxjs": "^7.8.0",
12
12
  "@microsoft/signalr": "^8.0.7",
13
13
  "@solidpepper/solidpepper-modal-media-selection": "^1.0.5",
14
- "@solidpepper/solidpepper-solidgeneration": "^0.2.4"
14
+ "@solidpepper/solidpepper-solidgeneration": "^0.1.4"
15
15
  },
16
16
  "dependencies": {
17
17
  "tslib": "^2.3.0"