dragble-angular-editor 1.0.1
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/LICENSE +21 -0
- package/README.md +302 -0
- package/dist/dragble-editor.component.d.ts +312 -0
- package/dist/dragble-editor.module.d.ts +8 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +649 -0
- package/dist/index.js.map +1 -0
- package/dist/out-tsc/dragble-editor.component.d.ts +312 -0
- package/dist/out-tsc/dragble-editor.component.d.ts.map +1 -0
- package/dist/out-tsc/dragble-editor.component.js +626 -0
- package/dist/out-tsc/dragble-editor.component.js.map +1 -0
- package/dist/out-tsc/dragble-editor.module.d.ts +8 -0
- package/dist/out-tsc/dragble-editor.module.d.ts.map +1 -0
- package/dist/out-tsc/dragble-editor.module.js +22 -0
- package/dist/out-tsc/dragble-editor.module.js.map +1 -0
- package/dist/out-tsc/index.d.ts +12 -0
- package/dist/out-tsc/index.d.ts.map +1 -0
- package/dist/out-tsc/index.js +14 -0
- package/dist/out-tsc/index.js.map +1 -0
- package/package.json +133 -0
|
@@ -0,0 +1,626 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dragble Editor Angular Component
|
|
3
|
+
*
|
|
4
|
+
* An Angular wrapper for the Dragble Editor SDK.
|
|
5
|
+
*/
|
|
6
|
+
import { Component, Input, Output, EventEmitter, } from "@angular/core";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
const SDK_CDN_URL = "https://sdk.dragble.com/latest/dragble-sdk.min.js";
|
|
9
|
+
// Map of URL -> Promise for caching SDK loads per URL
|
|
10
|
+
const sdkLoadPromises = new Map();
|
|
11
|
+
/**
|
|
12
|
+
* Get the SDK URL to use.
|
|
13
|
+
* @param customUrl - Optional custom SDK URL
|
|
14
|
+
* @returns The SDK URL to load
|
|
15
|
+
*/
|
|
16
|
+
function getSDKUrl(customUrl, sdkVersion) {
|
|
17
|
+
if (customUrl && sdkVersion !== undefined) {
|
|
18
|
+
console.warn("[DragbleEditor] sdkVersion is ignored when sdkUrl is provided.");
|
|
19
|
+
}
|
|
20
|
+
return customUrl ?? `https://sdk.dragble.com/${sdkVersion ?? "latest"}/dragble-sdk.min.js`;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create an SDK module from the global dragble object.
|
|
24
|
+
*/
|
|
25
|
+
function createSDKModuleFromGlobal() {
|
|
26
|
+
return {
|
|
27
|
+
dragble: window.dragble,
|
|
28
|
+
createEditor: (config) => {
|
|
29
|
+
const instance = new window.dragble.constructor();
|
|
30
|
+
instance.init(config);
|
|
31
|
+
return instance;
|
|
32
|
+
},
|
|
33
|
+
DragbleSDK: window.dragble.constructor,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Load the SDK from a URL.
|
|
38
|
+
* Supports custom SDK URLs for enterprise self-hosted or specific versions.
|
|
39
|
+
* @param customUrl - Optional custom SDK URL
|
|
40
|
+
*/
|
|
41
|
+
function loadSDK(customUrl) {
|
|
42
|
+
const sdkUrl = getSDKUrl(customUrl);
|
|
43
|
+
// Check cache for this specific URL
|
|
44
|
+
const cachedPromise = sdkLoadPromises.get(sdkUrl);
|
|
45
|
+
if (cachedPromise)
|
|
46
|
+
return cachedPromise;
|
|
47
|
+
// Check if already loaded globally (only for default URL to avoid conflicts)
|
|
48
|
+
if (sdkUrl === SDK_CDN_URL && typeof window !== "undefined" && window.dragble) {
|
|
49
|
+
return Promise.resolve(createSDKModuleFromGlobal());
|
|
50
|
+
}
|
|
51
|
+
return loadSDKScript(sdkUrl);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Load the SDK script from a specific URL.
|
|
55
|
+
* Each unique URL is cached separately to support multiple SDK sources.
|
|
56
|
+
* @param sdkUrl - The SDK URL to load
|
|
57
|
+
*/
|
|
58
|
+
function loadSDKScript(sdkUrl) {
|
|
59
|
+
// Check cache for this specific URL
|
|
60
|
+
const cachedPromise = sdkLoadPromises.get(sdkUrl);
|
|
61
|
+
if (cachedPromise)
|
|
62
|
+
return cachedPromise;
|
|
63
|
+
const loadPromise = new Promise((resolve, reject) => {
|
|
64
|
+
const script = document.createElement("script");
|
|
65
|
+
script.src = sdkUrl;
|
|
66
|
+
script.async = true;
|
|
67
|
+
script.onload = () => {
|
|
68
|
+
if (window.dragble) {
|
|
69
|
+
// Resolve with SDK module interface
|
|
70
|
+
resolve(createSDKModuleFromGlobal());
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
sdkLoadPromises.delete(sdkUrl);
|
|
74
|
+
reject(new Error("Failed to load Dragble SDK - createEditor not found"));
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
script.onerror = () => {
|
|
78
|
+
sdkLoadPromises.delete(sdkUrl);
|
|
79
|
+
reject(new Error(`Failed to load Dragble SDK from ${sdkUrl}`));
|
|
80
|
+
};
|
|
81
|
+
document.head.appendChild(script);
|
|
82
|
+
});
|
|
83
|
+
// Cache the promise for this URL
|
|
84
|
+
sdkLoadPromises.set(sdkUrl, loadPromise);
|
|
85
|
+
return loadPromise;
|
|
86
|
+
}
|
|
87
|
+
// ============================================================================
|
|
88
|
+
// Component
|
|
89
|
+
// ============================================================================
|
|
90
|
+
/**
|
|
91
|
+
* DragbleEditorComponent
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```html
|
|
95
|
+
* <dragble-editor
|
|
96
|
+
* editorKey="your-editor-key"
|
|
97
|
+
* editorMode="email"
|
|
98
|
+
* (ready)="onReady($event)"
|
|
99
|
+
* (change)="onChange($event)"
|
|
100
|
+
* ></dragble-editor>
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```typescript
|
|
105
|
+
* import { Component, ViewChild } from '@angular/core';
|
|
106
|
+
* import { DragbleEditorComponent } from '@dragble/angular-editor';
|
|
107
|
+
*
|
|
108
|
+
* @Component({
|
|
109
|
+
* selector: 'app-editor',
|
|
110
|
+
* template: `
|
|
111
|
+
* <dragble-editor
|
|
112
|
+
* #editor
|
|
113
|
+
* editorKey="your-editor-key"
|
|
114
|
+
* (ready)="onReady($event)"
|
|
115
|
+
* ></dragble-editor>
|
|
116
|
+
* <button (click)="handleSave()">Save</button>
|
|
117
|
+
* `
|
|
118
|
+
* })
|
|
119
|
+
* export class EditorComponent {
|
|
120
|
+
* @ViewChild('editor') editor!: DragbleEditorComponent;
|
|
121
|
+
*
|
|
122
|
+
* onReady(sdk: DragbleSDK) {
|
|
123
|
+
* console.log('Editor ready!', sdk);
|
|
124
|
+
* }
|
|
125
|
+
*
|
|
126
|
+
* handleSave() {
|
|
127
|
+
* this.editor.saveDesign((design) => {
|
|
128
|
+
* console.log('Design:', design);
|
|
129
|
+
* });
|
|
130
|
+
* }
|
|
131
|
+
* }
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
export class DragbleEditorComponent {
|
|
135
|
+
constructor() {
|
|
136
|
+
/** Editor mode (email, web, popup) */
|
|
137
|
+
this.editorMode = "email";
|
|
138
|
+
/** Height of the editor */
|
|
139
|
+
this.height = "600px";
|
|
140
|
+
/** Minimum height for the editor */
|
|
141
|
+
this.minHeight = "600px";
|
|
142
|
+
// ========================================================================
|
|
143
|
+
// Outputs
|
|
144
|
+
// ========================================================================
|
|
145
|
+
/** Emitted when the editor is ready */
|
|
146
|
+
this.ready = new EventEmitter();
|
|
147
|
+
/** Emitted when a design is loaded */
|
|
148
|
+
this.load = new EventEmitter();
|
|
149
|
+
/** Emitted when the design changes */
|
|
150
|
+
this.change = new EventEmitter();
|
|
151
|
+
/** Emitted when an error occurs */
|
|
152
|
+
this.error = new EventEmitter();
|
|
153
|
+
/** Emitted when a comment event occurs (create, edit, delete, resolve, reopen) */
|
|
154
|
+
this.commentAction = new EventEmitter();
|
|
155
|
+
// ========================================================================
|
|
156
|
+
// Internal State
|
|
157
|
+
// ========================================================================
|
|
158
|
+
this.containerId = `dragble-editor-${Math.random().toString(36).substr(2, 9)}`;
|
|
159
|
+
this.sdk = null;
|
|
160
|
+
this._isReady = false;
|
|
161
|
+
}
|
|
162
|
+
get isReady() {
|
|
163
|
+
return this._isReady;
|
|
164
|
+
}
|
|
165
|
+
get computedHeight() {
|
|
166
|
+
return typeof this.height === "number" ? `${this.height}px` : this.height;
|
|
167
|
+
}
|
|
168
|
+
get computedMinHeight() {
|
|
169
|
+
return typeof this.minHeight === "number"
|
|
170
|
+
? `${this.minHeight}px`
|
|
171
|
+
: this.minHeight;
|
|
172
|
+
}
|
|
173
|
+
// ========================================================================
|
|
174
|
+
// Lifecycle
|
|
175
|
+
// ========================================================================
|
|
176
|
+
ngOnInit() {
|
|
177
|
+
// Initialization happens in ngAfterViewInit
|
|
178
|
+
}
|
|
179
|
+
ngAfterViewInit() {
|
|
180
|
+
this.initializeEditor();
|
|
181
|
+
}
|
|
182
|
+
ngOnChanges(changes) {
|
|
183
|
+
if (!this.sdk || !this._isReady)
|
|
184
|
+
return;
|
|
185
|
+
// Watch for design changes
|
|
186
|
+
if (changes["design"] && !changes["design"].firstChange) {
|
|
187
|
+
const newDesign = changes["design"].currentValue;
|
|
188
|
+
if (newDesign) {
|
|
189
|
+
this.sdk.loadDesign(newDesign);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
// Watch for merge tags changes
|
|
193
|
+
if (changes["mergeTags"] && !changes["mergeTags"].firstChange) {
|
|
194
|
+
const newTags = changes["mergeTags"].currentValue;
|
|
195
|
+
if (newTags) {
|
|
196
|
+
this.sdk.setMergeTags(newTags);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
// Watch for modules changes
|
|
200
|
+
if (changes["modules"] && !changes["modules"].firstChange) {
|
|
201
|
+
const newModules = changes["modules"].currentValue;
|
|
202
|
+
if (newModules) {
|
|
203
|
+
this.sdk.setModules(newModules);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
// Watch for display conditions changes
|
|
207
|
+
if (changes["displayConditions"] &&
|
|
208
|
+
!changes["displayConditions"].firstChange) {
|
|
209
|
+
const newConditions = changes["displayConditions"].currentValue;
|
|
210
|
+
if (newConditions) {
|
|
211
|
+
this.sdk.setDisplayConditions(newConditions);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
ngOnDestroy() {
|
|
216
|
+
if (this.sdk) {
|
|
217
|
+
this.sdk.destroy();
|
|
218
|
+
this.sdk = null;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
// ========================================================================
|
|
222
|
+
// Initialization
|
|
223
|
+
// ========================================================================
|
|
224
|
+
async initializeEditor() {
|
|
225
|
+
try {
|
|
226
|
+
const resolvedSdkUrl = getSDKUrl(this.sdkUrl, this.sdkVersion);
|
|
227
|
+
const { createEditor } = await loadSDK(resolvedSdkUrl);
|
|
228
|
+
const config = this.buildConfig();
|
|
229
|
+
const sdk = createEditor(config);
|
|
230
|
+
this.sdk = sdk;
|
|
231
|
+
// Set up event listeners
|
|
232
|
+
sdk.addEventListener("editor:ready", () => {
|
|
233
|
+
this._isReady = true;
|
|
234
|
+
this.ready.emit(sdk);
|
|
235
|
+
});
|
|
236
|
+
sdk.addEventListener("design:loaded", (data) => {
|
|
237
|
+
this.load.emit(data);
|
|
238
|
+
});
|
|
239
|
+
sdk.addEventListener("design:updated", (data) => {
|
|
240
|
+
this.change.emit(data);
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
catch (err) {
|
|
244
|
+
const error = err instanceof Error ? err : new Error(String(err));
|
|
245
|
+
console.error("Initialization error:", error.message);
|
|
246
|
+
this.error.emit(error);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
buildConfig() {
|
|
250
|
+
const editorConfig = this.contentType === "module"
|
|
251
|
+
? {
|
|
252
|
+
...this.editor,
|
|
253
|
+
contentType: this.contentType,
|
|
254
|
+
minRows: 1,
|
|
255
|
+
maxRows: 1,
|
|
256
|
+
}
|
|
257
|
+
: this.editor;
|
|
258
|
+
// Build collaboration feature config
|
|
259
|
+
let featuresConfig = this.features;
|
|
260
|
+
if (this.collaboration !== undefined) {
|
|
261
|
+
const collaborationConfig = typeof this.collaboration === "object"
|
|
262
|
+
? {
|
|
263
|
+
...this.collaboration,
|
|
264
|
+
onComment: (action) => {
|
|
265
|
+
this.commentAction.emit(action);
|
|
266
|
+
},
|
|
267
|
+
}
|
|
268
|
+
: this.collaboration;
|
|
269
|
+
featuresConfig = {
|
|
270
|
+
...featuresConfig,
|
|
271
|
+
collaboration: collaborationConfig,
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
// Build callbacks (merge Angular outputs with user-provided callbacks)
|
|
275
|
+
const callbacks = {
|
|
276
|
+
...this.callbacks,
|
|
277
|
+
};
|
|
278
|
+
// Build nested options object
|
|
279
|
+
const editorOptions = {
|
|
280
|
+
...(this.user !== undefined && { user: this.user }),
|
|
281
|
+
...(this.locale !== undefined && { locale: this.locale }),
|
|
282
|
+
...(this.translations !== undefined && {
|
|
283
|
+
translations: this.translations,
|
|
284
|
+
}),
|
|
285
|
+
...(this.textDirection !== undefined && {
|
|
286
|
+
textDirection: this.textDirection,
|
|
287
|
+
}),
|
|
288
|
+
...(this.language !== undefined && { language: this.language }),
|
|
289
|
+
height: this.height,
|
|
290
|
+
minHeight: this.minHeight,
|
|
291
|
+
...(this.mergeTags !== undefined && { mergeTags: this.mergeTags }),
|
|
292
|
+
...(this.specialLinks !== undefined && {
|
|
293
|
+
specialLinks: this.specialLinks,
|
|
294
|
+
}),
|
|
295
|
+
...(this.modules !== undefined && { modules: this.modules }),
|
|
296
|
+
...(this.displayConditions !== undefined && {
|
|
297
|
+
displayConditions: this.displayConditions,
|
|
298
|
+
}),
|
|
299
|
+
...(this.appearance !== undefined && { appearance: this.appearance }),
|
|
300
|
+
...(this.tools !== undefined && { tools: this.tools }),
|
|
301
|
+
...(this.customTools !== undefined && { customTools: this.customTools }),
|
|
302
|
+
...(this.fonts !== undefined && { fonts: this.fonts }),
|
|
303
|
+
...(this.bodyValues !== undefined && { bodyValues: this.bodyValues }),
|
|
304
|
+
...(this.header !== undefined && { header: this.header }),
|
|
305
|
+
...(this.footer !== undefined && { footer: this.footer }),
|
|
306
|
+
...(editorConfig !== undefined && { editor: editorConfig }),
|
|
307
|
+
...(this.customCSS !== undefined && { customCSS: this.customCSS }),
|
|
308
|
+
...(this.customJS !== undefined && { customJS: this.customJS }),
|
|
309
|
+
...(featuresConfig !== undefined && { features: featuresConfig }),
|
|
310
|
+
...(this.ai !== undefined && { ai: this.ai }),
|
|
311
|
+
...this.options,
|
|
312
|
+
};
|
|
313
|
+
return {
|
|
314
|
+
containerId: this.containerId,
|
|
315
|
+
editorKey: this.editorKey,
|
|
316
|
+
...(this.editorMode !== undefined && { editorMode: this.editorMode }),
|
|
317
|
+
...(this.designMode !== undefined && { designMode: this.designMode }),
|
|
318
|
+
...(this.design !== undefined && { design: this.design }),
|
|
319
|
+
...(this.popup !== undefined && { popup: this.popup }),
|
|
320
|
+
...(this.editorVersion !== undefined && {
|
|
321
|
+
editorVersion: this.editorVersion,
|
|
322
|
+
}),
|
|
323
|
+
...(this.editorUrl !== undefined && { editorUrl: this.editorUrl }),
|
|
324
|
+
callbacks,
|
|
325
|
+
options: editorOptions,
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
// ========================================================================
|
|
329
|
+
// Public Methods - Full SDK pass-through
|
|
330
|
+
// ========================================================================
|
|
331
|
+
/** Get the underlying SDK instance */
|
|
332
|
+
getEditor() {
|
|
333
|
+
return this.sdk;
|
|
334
|
+
}
|
|
335
|
+
// Design methods
|
|
336
|
+
loadDesign(design, options) {
|
|
337
|
+
this.sdk?.loadDesign(design, options);
|
|
338
|
+
}
|
|
339
|
+
loadBlank() {
|
|
340
|
+
this.sdk?.loadBlank();
|
|
341
|
+
}
|
|
342
|
+
saveDesign(callback) {
|
|
343
|
+
this.sdk?.saveDesign(callback);
|
|
344
|
+
}
|
|
345
|
+
getDesign() {
|
|
346
|
+
return this.sdk?.getDesign();
|
|
347
|
+
}
|
|
348
|
+
// Export methods (async-only)
|
|
349
|
+
exportHtml(options) {
|
|
350
|
+
return this.sdk?.exportHtml(options);
|
|
351
|
+
}
|
|
352
|
+
exportPlainText() {
|
|
353
|
+
return this.sdk?.exportPlainText();
|
|
354
|
+
}
|
|
355
|
+
exportJson() {
|
|
356
|
+
return this.sdk?.exportJson();
|
|
357
|
+
}
|
|
358
|
+
exportImage(options) {
|
|
359
|
+
return this.sdk?.exportImage(options);
|
|
360
|
+
}
|
|
361
|
+
exportPdf(options) {
|
|
362
|
+
return this.sdk?.exportPdf(options);
|
|
363
|
+
}
|
|
364
|
+
exportZip(options) {
|
|
365
|
+
return this.sdk?.exportZip(options);
|
|
366
|
+
}
|
|
367
|
+
getPopupValues() {
|
|
368
|
+
return this.sdk?.getPopupValues();
|
|
369
|
+
}
|
|
370
|
+
// Merge tags
|
|
371
|
+
setMergeTags(config) {
|
|
372
|
+
this.sdk?.setMergeTags(config);
|
|
373
|
+
}
|
|
374
|
+
getMergeTags() {
|
|
375
|
+
return this.sdk?.getMergeTags();
|
|
376
|
+
}
|
|
377
|
+
// Special links
|
|
378
|
+
setSpecialLinks(config) {
|
|
379
|
+
this.sdk?.setSpecialLinks(config);
|
|
380
|
+
}
|
|
381
|
+
getSpecialLinks() {
|
|
382
|
+
return this.sdk?.getSpecialLinks();
|
|
383
|
+
}
|
|
384
|
+
// Modules
|
|
385
|
+
setModulesLoading(loading) {
|
|
386
|
+
this.sdk?.setModulesLoading(loading);
|
|
387
|
+
}
|
|
388
|
+
setModules(modules) {
|
|
389
|
+
this.sdk?.setModules(modules);
|
|
390
|
+
}
|
|
391
|
+
getModules() {
|
|
392
|
+
return this.sdk?.getModules();
|
|
393
|
+
}
|
|
394
|
+
// Fonts
|
|
395
|
+
setFonts(config) {
|
|
396
|
+
this.sdk?.setFonts(config);
|
|
397
|
+
}
|
|
398
|
+
getFonts() {
|
|
399
|
+
return this.sdk?.getFonts();
|
|
400
|
+
}
|
|
401
|
+
// Body values
|
|
402
|
+
setBodyValues(values) {
|
|
403
|
+
this.sdk?.setBodyValues(values);
|
|
404
|
+
}
|
|
405
|
+
getBodyValues() {
|
|
406
|
+
return this.sdk?.getBodyValues();
|
|
407
|
+
}
|
|
408
|
+
// Configuration
|
|
409
|
+
setOptions(options) {
|
|
410
|
+
this.sdk?.setOptions(options);
|
|
411
|
+
}
|
|
412
|
+
setToolsConfig(config) {
|
|
413
|
+
this.sdk?.setToolsConfig(config);
|
|
414
|
+
}
|
|
415
|
+
setEditorMode(mode) {
|
|
416
|
+
this.sdk?.setEditorMode(mode);
|
|
417
|
+
}
|
|
418
|
+
setEditorConfig(config) {
|
|
419
|
+
this.sdk?.setEditorConfig(config);
|
|
420
|
+
}
|
|
421
|
+
getEditorConfig() {
|
|
422
|
+
return this.sdk?.getEditorConfig();
|
|
423
|
+
}
|
|
424
|
+
setLocale(locale) {
|
|
425
|
+
this.sdk?.setLocale(locale);
|
|
426
|
+
}
|
|
427
|
+
setTextDirection(direction) {
|
|
428
|
+
this.sdk?.setTextDirection(direction);
|
|
429
|
+
}
|
|
430
|
+
setAppearance(config) {
|
|
431
|
+
this.sdk?.setAppearance(config);
|
|
432
|
+
}
|
|
433
|
+
setCustomCSS(css) {
|
|
434
|
+
this.sdk?.setCustomCSS(css);
|
|
435
|
+
}
|
|
436
|
+
setCustomJS(js) {
|
|
437
|
+
this.sdk?.setCustomJS(js);
|
|
438
|
+
}
|
|
439
|
+
// Multi-language
|
|
440
|
+
setLanguage(language) {
|
|
441
|
+
this.sdk?.setLanguage(language);
|
|
442
|
+
}
|
|
443
|
+
getLanguage() {
|
|
444
|
+
return this.sdk?.getLanguage();
|
|
445
|
+
}
|
|
446
|
+
// Undo/Redo
|
|
447
|
+
undo() {
|
|
448
|
+
this.sdk?.undo();
|
|
449
|
+
}
|
|
450
|
+
redo() {
|
|
451
|
+
this.sdk?.redo();
|
|
452
|
+
}
|
|
453
|
+
save() {
|
|
454
|
+
this.sdk?.save();
|
|
455
|
+
}
|
|
456
|
+
// Preview
|
|
457
|
+
showPreview(device) {
|
|
458
|
+
this.sdk?.showPreview(device);
|
|
459
|
+
}
|
|
460
|
+
hidePreview() {
|
|
461
|
+
this.sdk?.hidePreview();
|
|
462
|
+
}
|
|
463
|
+
// Tools
|
|
464
|
+
registerTool(config) {
|
|
465
|
+
return this.sdk?.registerTool(config);
|
|
466
|
+
}
|
|
467
|
+
unregisterTool(toolId) {
|
|
468
|
+
return this.sdk?.unregisterTool(toolId);
|
|
469
|
+
}
|
|
470
|
+
getTools() {
|
|
471
|
+
return this.sdk?.getTools();
|
|
472
|
+
}
|
|
473
|
+
// Display conditions
|
|
474
|
+
setDisplayConditions(config) {
|
|
475
|
+
this.sdk?.setDisplayConditions(config);
|
|
476
|
+
}
|
|
477
|
+
audit(optionsOrCallback, callback) {
|
|
478
|
+
if (typeof optionsOrCallback === "function") {
|
|
479
|
+
return this.sdk?.audit(optionsOrCallback);
|
|
480
|
+
}
|
|
481
|
+
if (callback) {
|
|
482
|
+
return this.sdk?.audit(optionsOrCallback, callback);
|
|
483
|
+
}
|
|
484
|
+
return this.sdk?.audit(optionsOrCallback);
|
|
485
|
+
}
|
|
486
|
+
// Collaboration
|
|
487
|
+
showComment(commentId) {
|
|
488
|
+
this.sdk?.showComment(commentId);
|
|
489
|
+
}
|
|
490
|
+
openCommentPanel(rowId) {
|
|
491
|
+
this.sdk?.openCommentPanel(rowId);
|
|
492
|
+
}
|
|
493
|
+
// Events
|
|
494
|
+
addEventListener(event, callback) {
|
|
495
|
+
return this.sdk?.addEventListener(event, callback);
|
|
496
|
+
}
|
|
497
|
+
removeEventListener(event, callback) {
|
|
498
|
+
this.sdk?.removeEventListener(event, callback);
|
|
499
|
+
}
|
|
500
|
+
// Advanced
|
|
501
|
+
registerColumns(cells) {
|
|
502
|
+
this.sdk?.registerColumns(cells);
|
|
503
|
+
}
|
|
504
|
+
setBrandingColors(config) {
|
|
505
|
+
this.sdk?.setBrandingColors(config);
|
|
506
|
+
}
|
|
507
|
+
// Custom widgets
|
|
508
|
+
createWidget(config) {
|
|
509
|
+
return this.sdk?.createWidget(config);
|
|
510
|
+
}
|
|
511
|
+
removeWidget(widgetName) {
|
|
512
|
+
return this.sdk?.removeWidget(widgetName);
|
|
513
|
+
}
|
|
514
|
+
// Undo/Redo state
|
|
515
|
+
canUndo() {
|
|
516
|
+
return this.sdk?.canUndo();
|
|
517
|
+
}
|
|
518
|
+
canRedo() {
|
|
519
|
+
return this.sdk?.canRedo();
|
|
520
|
+
}
|
|
521
|
+
// Tabs
|
|
522
|
+
updateTabs(tabs) {
|
|
523
|
+
this.sdk?.updateTabs(tabs);
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
DragbleEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DragbleEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
527
|
+
DragbleEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: DragbleEditorComponent, isStandalone: true, selector: "dragble-editor", inputs: { editorKey: "editorKey", design: "design", editorMode: "editorMode", popup: "popup", contentType: "contentType", ai: "ai", locale: "locale", translations: "translations", textDirection: "textDirection", language: "language", appearance: "appearance", tools: "tools", customTools: "customTools", features: "features", mergeTags: "mergeTags", specialLinks: "specialLinks", modules: "modules", displayConditions: "displayConditions", editor: "editor", fonts: "fonts", bodyValues: "bodyValues", header: "header", footer: "footer", customCSS: "customCSS", customJS: "customJS", height: "height", minHeight: "minHeight", options: "options", callbacks: "callbacks", sdkUrl: "sdkUrl", sdkVersion: "sdkVersion", editorVersion: "editorVersion", editorUrl: "editorUrl", collaboration: "collaboration", user: "user", designMode: "designMode" }, outputs: { ready: "ready", load: "load", change: "change", error: "error", commentAction: "commentAction" }, usesOnChanges: true, ngImport: i0, template: `<div
|
|
528
|
+
#container
|
|
529
|
+
[id]="containerId"
|
|
530
|
+
[style.width]="'100%'"
|
|
531
|
+
[style.height]="computedHeight"
|
|
532
|
+
[style.minHeight]="computedMinHeight"
|
|
533
|
+
></div>`, isInline: true, styles: ["\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n "] });
|
|
534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DragbleEditorComponent, decorators: [{
|
|
535
|
+
type: Component,
|
|
536
|
+
args: [{ selector: "dragble-editor", template: `<div
|
|
537
|
+
#container
|
|
538
|
+
[id]="containerId"
|
|
539
|
+
[style.width]="'100%'"
|
|
540
|
+
[style.height]="computedHeight"
|
|
541
|
+
[style.minHeight]="computedMinHeight"
|
|
542
|
+
></div>`, standalone: true, styles: ["\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n "] }]
|
|
543
|
+
}], propDecorators: { editorKey: [{
|
|
544
|
+
type: Input
|
|
545
|
+
}], design: [{
|
|
546
|
+
type: Input
|
|
547
|
+
}], editorMode: [{
|
|
548
|
+
type: Input
|
|
549
|
+
}], popup: [{
|
|
550
|
+
type: Input
|
|
551
|
+
}], contentType: [{
|
|
552
|
+
type: Input
|
|
553
|
+
}], ai: [{
|
|
554
|
+
type: Input
|
|
555
|
+
}], locale: [{
|
|
556
|
+
type: Input
|
|
557
|
+
}], translations: [{
|
|
558
|
+
type: Input
|
|
559
|
+
}], textDirection: [{
|
|
560
|
+
type: Input
|
|
561
|
+
}], language: [{
|
|
562
|
+
type: Input
|
|
563
|
+
}], appearance: [{
|
|
564
|
+
type: Input
|
|
565
|
+
}], tools: [{
|
|
566
|
+
type: Input
|
|
567
|
+
}], customTools: [{
|
|
568
|
+
type: Input
|
|
569
|
+
}], features: [{
|
|
570
|
+
type: Input
|
|
571
|
+
}], mergeTags: [{
|
|
572
|
+
type: Input
|
|
573
|
+
}], specialLinks: [{
|
|
574
|
+
type: Input
|
|
575
|
+
}], modules: [{
|
|
576
|
+
type: Input
|
|
577
|
+
}], displayConditions: [{
|
|
578
|
+
type: Input
|
|
579
|
+
}], editor: [{
|
|
580
|
+
type: Input
|
|
581
|
+
}], fonts: [{
|
|
582
|
+
type: Input
|
|
583
|
+
}], bodyValues: [{
|
|
584
|
+
type: Input
|
|
585
|
+
}], header: [{
|
|
586
|
+
type: Input
|
|
587
|
+
}], footer: [{
|
|
588
|
+
type: Input
|
|
589
|
+
}], customCSS: [{
|
|
590
|
+
type: Input
|
|
591
|
+
}], customJS: [{
|
|
592
|
+
type: Input
|
|
593
|
+
}], height: [{
|
|
594
|
+
type: Input
|
|
595
|
+
}], minHeight: [{
|
|
596
|
+
type: Input
|
|
597
|
+
}], options: [{
|
|
598
|
+
type: Input
|
|
599
|
+
}], callbacks: [{
|
|
600
|
+
type: Input
|
|
601
|
+
}], sdkUrl: [{
|
|
602
|
+
type: Input
|
|
603
|
+
}], sdkVersion: [{
|
|
604
|
+
type: Input
|
|
605
|
+
}], editorVersion: [{
|
|
606
|
+
type: Input
|
|
607
|
+
}], editorUrl: [{
|
|
608
|
+
type: Input
|
|
609
|
+
}], collaboration: [{
|
|
610
|
+
type: Input
|
|
611
|
+
}], user: [{
|
|
612
|
+
type: Input
|
|
613
|
+
}], designMode: [{
|
|
614
|
+
type: Input
|
|
615
|
+
}], ready: [{
|
|
616
|
+
type: Output
|
|
617
|
+
}], load: [{
|
|
618
|
+
type: Output
|
|
619
|
+
}], change: [{
|
|
620
|
+
type: Output
|
|
621
|
+
}], error: [{
|
|
622
|
+
type: Output
|
|
623
|
+
}], commentAction: [{
|
|
624
|
+
type: Output
|
|
625
|
+
}] } });
|
|
626
|
+
//# sourceMappingURL=dragble-editor.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dragble-editor.component.js","sourceRoot":"","sources":["../../src/dragble-editor.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,YAAY,GAMb,MAAM,eAAe,CAAC;;AAwDvB,MAAM,WAAW,GAAG,mDA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 from "@angular/core";
|
|
2
|
+
import * as i1 from "./dragble-editor.component";
|
|
3
|
+
export declare class DragbleEditorModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragbleEditorModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DragbleEditorModule, never, [typeof i1.DragbleEditorComponent], [typeof i1.DragbleEditorComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DragbleEditorModule>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=dragble-editor.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dragble-editor.module.d.ts","sourceRoot":"","sources":["../../src/dragble-editor.module.ts"],"names":[],"mappings":";;AAUA,qBAIa,mBAAmB;yCAAnB,mBAAmB;0CAAnB,mBAAmB;0CAAnB,mBAAmB;CAAG"}
|