@kritzel/angular-editor 0.4.32 → 0.4.33
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,340 +1,807 @@
|
|
|
1
|
-
import { __decorate } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { defineCustomElement
|
|
6
|
-
import { defineCustomElement as defineCustomElement$
|
|
7
|
-
import { defineCustomElement as defineCustomElement$
|
|
8
|
-
import { defineCustomElement as defineCustomElement$
|
|
9
|
-
import { defineCustomElement as defineCustomElement$
|
|
10
|
-
import { defineCustomElement as defineCustomElement$
|
|
11
|
-
import { defineCustomElements } from
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/* eslint-disable */
|
|
15
|
-
/* tslint:disable */
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Output, makeEnvironmentProviders, provideAppInitializer } from "@angular/core";
|
|
4
|
+
import "rxjs";
|
|
5
|
+
import { defineCustomElement } from "@kritzel/editor/dist/components/kritzel-editor.js";
|
|
6
|
+
import { defineCustomElement as defineCustomElement$1 } from "@kritzel/editor/dist/components/kritzel-settings.js";
|
|
7
|
+
import { defineCustomElement as defineCustomElement$2 } from "@kritzel/editor/dist/components/kritzel-shape-fill.js";
|
|
8
|
+
import { defineCustomElement as defineCustomElement$3 } from "@kritzel/editor/dist/components/kritzel-share-dialog.js";
|
|
9
|
+
import { defineCustomElement as defineCustomElement$4 } from "@kritzel/editor/dist/components/kritzel-split-button.js";
|
|
10
|
+
import { defineCustomElement as defineCustomElement$5 } from "@kritzel/editor/dist/components/kritzel-stroke-size.js";
|
|
11
|
+
import { defineCustomElements } from "@kritzel/engine/loader";
|
|
12
|
+
import { BroadcastSyncProvider, DEFAULT_BRUSH_CONFIG, DEFAULT_SHAPE_CONFIG, DEFAULT_TEXT_CONFIG, DE_LOCALE, EN_LOCALE, FR_LOCALE, HocuspocusSyncProvider, InMemorySyncProvider, IndexedDBSyncProvider, KritzelAlignment, KritzelBaseObject, KritzelBaseTool, KritzelBrushTool, KritzelDynamicObject, KritzelDynamicObjectRendererRegistry, KritzelEraserTool, KritzelFontRegistry, KritzelGroup, KritzelIframeObject, KritzelImage, KritzelImageTool, KritzelLicenseManager, KritzelLine, KritzelLineTool, KritzelLocalizationManager, KritzelPath, KritzelSelectionTool, KritzelShape, KritzelShapeTool, KritzelText, KritzelTextTool, KritzelThemeManager, KritzelWorkspace, ShapeType, WebSocketSyncProvider, darkTheme, hasRemoteSyncProvider, lightTheme } from "@kritzel/engine";
|
|
16
13
|
const proxyInputs = (Cmp, inputs) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
* will cause an error to be thrown. As a result
|
|
30
|
-
* we set configurable: true to indicate these
|
|
31
|
-
* properties can be changed.
|
|
32
|
-
*/
|
|
33
|
-
configurable: true,
|
|
34
|
-
});
|
|
35
|
-
});
|
|
14
|
+
const Prototype = Cmp.prototype;
|
|
15
|
+
inputs.forEach((item) => {
|
|
16
|
+
Object.defineProperty(Prototype, item, {
|
|
17
|
+
get() {
|
|
18
|
+
return this.el[item];
|
|
19
|
+
},
|
|
20
|
+
set(val) {
|
|
21
|
+
this.z.runOutsideAngular(() => this.el[item] = val);
|
|
22
|
+
},
|
|
23
|
+
configurable: true
|
|
24
|
+
});
|
|
25
|
+
});
|
|
36
26
|
};
|
|
37
27
|
const proxyMethods = (Cmp, methods) => {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
const proxyOutputs = (instance, el, events) => {
|
|
47
|
-
events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
|
|
28
|
+
const Prototype = Cmp.prototype;
|
|
29
|
+
methods.forEach((methodName) => {
|
|
30
|
+
Prototype[methodName] = function() {
|
|
31
|
+
const args = arguments;
|
|
32
|
+
return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
|
|
33
|
+
};
|
|
34
|
+
});
|
|
48
35
|
};
|
|
49
|
-
const defineCustomElement = (tagName, customElement) => {
|
|
50
|
-
if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
|
|
51
|
-
customElements.define(tagName, customElement);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
// tslint:disable-next-line: only-arrow-functions
|
|
55
36
|
function ProxyCmp(opts) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
if (methods) {
|
|
65
|
-
proxyMethods(cls, methods);
|
|
66
|
-
}
|
|
67
|
-
return cls;
|
|
68
|
-
};
|
|
69
|
-
return decorator;
|
|
37
|
+
const decorator = function(cls) {
|
|
38
|
+
const { defineCustomElementFn, inputs, methods } = opts;
|
|
39
|
+
if (defineCustomElementFn !== void 0) defineCustomElementFn();
|
|
40
|
+
if (inputs) proxyInputs(cls, inputs);
|
|
41
|
+
if (methods) proxyMethods(cls, methods);
|
|
42
|
+
return cls;
|
|
43
|
+
};
|
|
44
|
+
return decorator;
|
|
70
45
|
}
|
|
71
|
-
|
|
72
46
|
let KritzelEditor = class KritzelEditor {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
47
|
+
constructor(c, r, z) {
|
|
48
|
+
this.z = z;
|
|
49
|
+
this.isReady = new EventEmitter();
|
|
50
|
+
this.activeWorkspaceChange = new EventEmitter();
|
|
51
|
+
this.objectsChange = new EventEmitter();
|
|
52
|
+
this.objectsAdded = new EventEmitter();
|
|
53
|
+
this.objectsRemoved = new EventEmitter();
|
|
54
|
+
this.objectsUpdated = new EventEmitter();
|
|
55
|
+
this.objectsSelectionChange = new EventEmitter();
|
|
56
|
+
this.undoStateChange = new EventEmitter();
|
|
57
|
+
this.themeChange = new EventEmitter();
|
|
58
|
+
this.localeChange = new EventEmitter();
|
|
59
|
+
this.viewportChange = new EventEmitter();
|
|
60
|
+
this.logout = new EventEmitter();
|
|
61
|
+
this.login = new EventEmitter();
|
|
62
|
+
this.isPublicChange = new EventEmitter();
|
|
63
|
+
this.awarenessChange = new EventEmitter();
|
|
64
|
+
c.detach();
|
|
65
|
+
this.el = r.nativeElement;
|
|
66
|
+
}
|
|
67
|
+
static {
|
|
68
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
69
|
+
minVersion: "12.0.0",
|
|
70
|
+
version: "22.2.0",
|
|
71
|
+
ngImport: i0,
|
|
72
|
+
type: KritzelEditor,
|
|
73
|
+
deps: [
|
|
74
|
+
{ token: i0.ChangeDetectorRef },
|
|
75
|
+
{ token: i0.ElementRef },
|
|
76
|
+
{ token: i0.NgZone }
|
|
77
|
+
],
|
|
78
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
static {
|
|
82
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
83
|
+
minVersion: "14.0.0",
|
|
84
|
+
version: "22.2.0",
|
|
85
|
+
type: KritzelEditor,
|
|
86
|
+
isStandalone: true,
|
|
87
|
+
selector: "kritzel-editor",
|
|
88
|
+
inputs: {
|
|
89
|
+
activeUsers: "activeUsers",
|
|
90
|
+
activeWorkspaceId: "activeWorkspaceId",
|
|
91
|
+
assetStorageConfig: "assetStorageConfig",
|
|
92
|
+
cursorTarget: "cursorTarget",
|
|
93
|
+
customFonts: "customFonts",
|
|
94
|
+
customSvgIcons: "customSvgIcons",
|
|
95
|
+
debugInfo: "debugInfo",
|
|
96
|
+
editorId: "editorId",
|
|
97
|
+
fallbackLocale: "fallbackLocale",
|
|
98
|
+
globalContextMenuItems: "globalContextMenuItems",
|
|
99
|
+
isMoreMenuVisible: "isMoreMenuVisible",
|
|
100
|
+
isPanningEnabled: "isPanningEnabled",
|
|
101
|
+
isToolbarVisible: "isToolbarVisible",
|
|
102
|
+
isUtilityPanelVisible: "isUtilityPanelVisible",
|
|
103
|
+
isWorkspaceManagerVisible: "isWorkspaceManagerVisible",
|
|
104
|
+
isZoomPanelVisible: "isZoomPanelVisible",
|
|
105
|
+
isZoomingEnabled: "isZoomingEnabled",
|
|
106
|
+
licenseKey: "licenseKey",
|
|
107
|
+
locale: "locale",
|
|
108
|
+
locales: "locales",
|
|
109
|
+
lockDrawingScale: "lockDrawingScale",
|
|
110
|
+
loginConfig: "loginConfig",
|
|
111
|
+
moreMenuItems: "moreMenuItems",
|
|
112
|
+
objectContextMenuItems: "objectContextMenuItems",
|
|
113
|
+
scaleMax: "scaleMax",
|
|
114
|
+
scaleMin: "scaleMin",
|
|
115
|
+
syncConfig: "syncConfig",
|
|
116
|
+
theme: "theme",
|
|
117
|
+
themes: "themes",
|
|
118
|
+
toolbarItems: "toolbarItems",
|
|
119
|
+
user: "user",
|
|
120
|
+
viewportBoundaryBottom: "viewportBoundaryBottom",
|
|
121
|
+
viewportBoundaryLeft: "viewportBoundaryLeft",
|
|
122
|
+
viewportBoundaryRight: "viewportBoundaryRight",
|
|
123
|
+
viewportBoundaryTop: "viewportBoundaryTop",
|
|
124
|
+
workspaces: "workspaces"
|
|
125
|
+
},
|
|
126
|
+
outputs: {
|
|
127
|
+
isReady: "isReady",
|
|
128
|
+
activeWorkspaceChange: "activeWorkspaceChange",
|
|
129
|
+
objectsChange: "objectsChange",
|
|
130
|
+
objectsAdded: "objectsAdded",
|
|
131
|
+
objectsRemoved: "objectsRemoved",
|
|
132
|
+
objectsUpdated: "objectsUpdated",
|
|
133
|
+
objectsSelectionChange: "objectsSelectionChange",
|
|
134
|
+
undoStateChange: "undoStateChange",
|
|
135
|
+
themeChange: "themeChange",
|
|
136
|
+
localeChange: "localeChange",
|
|
137
|
+
viewportChange: "viewportChange",
|
|
138
|
+
logout: "logout",
|
|
139
|
+
login: "login",
|
|
140
|
+
isPublicChange: "isPublicChange",
|
|
141
|
+
awarenessChange: "awarenessChange"
|
|
142
|
+
},
|
|
143
|
+
ngImport: i0,
|
|
144
|
+
template: "<ng-content></ng-content>",
|
|
145
|
+
isInline: true,
|
|
146
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
147
|
+
});
|
|
148
|
+
}
|
|
95
149
|
};
|
|
96
|
-
KritzelEditor = __decorate([
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
150
|
+
KritzelEditor = __decorate([ProxyCmp({
|
|
151
|
+
defineCustomElementFn: defineCustomElement,
|
|
152
|
+
inputs: [
|
|
153
|
+
"activeUsers",
|
|
154
|
+
"activeWorkspaceId",
|
|
155
|
+
"assetStorageConfig",
|
|
156
|
+
"cursorTarget",
|
|
157
|
+
"customFonts",
|
|
158
|
+
"customSvgIcons",
|
|
159
|
+
"debugInfo",
|
|
160
|
+
"editorId",
|
|
161
|
+
"fallbackLocale",
|
|
162
|
+
"globalContextMenuItems",
|
|
163
|
+
"isMoreMenuVisible",
|
|
164
|
+
"isPanningEnabled",
|
|
165
|
+
"isToolbarVisible",
|
|
166
|
+
"isUtilityPanelVisible",
|
|
167
|
+
"isWorkspaceManagerVisible",
|
|
168
|
+
"isZoomPanelVisible",
|
|
169
|
+
"isZoomingEnabled",
|
|
170
|
+
"licenseKey",
|
|
171
|
+
"locale",
|
|
172
|
+
"locales",
|
|
173
|
+
"lockDrawingScale",
|
|
174
|
+
"loginConfig",
|
|
175
|
+
"moreMenuItems",
|
|
176
|
+
"objectContextMenuItems",
|
|
177
|
+
"scaleMax",
|
|
178
|
+
"scaleMin",
|
|
179
|
+
"syncConfig",
|
|
180
|
+
"theme",
|
|
181
|
+
"themes",
|
|
182
|
+
"toolbarItems",
|
|
183
|
+
"user",
|
|
184
|
+
"viewportBoundaryBottom",
|
|
185
|
+
"viewportBoundaryLeft",
|
|
186
|
+
"viewportBoundaryRight",
|
|
187
|
+
"viewportBoundaryTop",
|
|
188
|
+
"workspaces"
|
|
189
|
+
],
|
|
190
|
+
methods: [
|
|
191
|
+
"getObjectById",
|
|
192
|
+
"addObject",
|
|
193
|
+
"addObjects",
|
|
194
|
+
"updateObject",
|
|
195
|
+
"removeObject",
|
|
196
|
+
"removeObjects",
|
|
197
|
+
"getSelectedObjects",
|
|
198
|
+
"selectObjects",
|
|
199
|
+
"selectAllObjectsInViewport",
|
|
200
|
+
"clearSelection",
|
|
201
|
+
"centerObjectInViewport",
|
|
202
|
+
"panToObject",
|
|
203
|
+
"backToContent",
|
|
204
|
+
"centerAllObjects",
|
|
205
|
+
"centerObjects",
|
|
206
|
+
"setViewport",
|
|
207
|
+
"panTo",
|
|
208
|
+
"zoomTo",
|
|
209
|
+
"zoomIn",
|
|
210
|
+
"zoomOut",
|
|
211
|
+
"getViewport",
|
|
212
|
+
"screenToWorld",
|
|
213
|
+
"worldToScreen",
|
|
214
|
+
"setActiveWorkspace",
|
|
215
|
+
"createWorkspace",
|
|
216
|
+
"updateWorkspace",
|
|
217
|
+
"deleteWorkspace",
|
|
218
|
+
"getWorkspaces",
|
|
219
|
+
"getActiveWorkspace",
|
|
220
|
+
"loadSharedWorkspace",
|
|
221
|
+
"reinitSync",
|
|
222
|
+
"registerTool",
|
|
223
|
+
"setActiveTool",
|
|
224
|
+
"disable",
|
|
225
|
+
"enable",
|
|
226
|
+
"copy",
|
|
227
|
+
"cut",
|
|
228
|
+
"paste",
|
|
229
|
+
"delete",
|
|
230
|
+
"bringForward",
|
|
231
|
+
"sendBackward",
|
|
232
|
+
"bringToFront",
|
|
233
|
+
"sendToBack",
|
|
234
|
+
"alignObjects",
|
|
235
|
+
"group",
|
|
236
|
+
"ungroup",
|
|
237
|
+
"undo",
|
|
238
|
+
"redo",
|
|
239
|
+
"getScreenshot",
|
|
240
|
+
"exportViewportAsPng",
|
|
241
|
+
"exportViewportAsSvg",
|
|
242
|
+
"getSelectedObjectSupportedExportFormats",
|
|
243
|
+
"canExportSelectedObjectAs",
|
|
244
|
+
"exportSelectedObject",
|
|
245
|
+
"exportAsJson",
|
|
246
|
+
"importFromJson",
|
|
247
|
+
"downloadAsJson",
|
|
248
|
+
"importFromFile",
|
|
249
|
+
"loadObjectsFromJson",
|
|
250
|
+
"getObjectsTotalCount",
|
|
251
|
+
"getAllObjects",
|
|
252
|
+
"findObjects",
|
|
253
|
+
"getObjectsInViewport",
|
|
254
|
+
"hideContextMenu",
|
|
255
|
+
"openContextMenu",
|
|
256
|
+
"openWorkspaceManagerMenu",
|
|
257
|
+
"closeWorkspaceManagerMenu",
|
|
258
|
+
"openMoreMenu",
|
|
259
|
+
"closeMoreMenu",
|
|
260
|
+
"openUserDialog",
|
|
261
|
+
"closeUserDialog",
|
|
262
|
+
"openExportDialog",
|
|
263
|
+
"closeExportDialog",
|
|
264
|
+
"openImportDialog",
|
|
265
|
+
"closeImportDialog",
|
|
266
|
+
"openSettingsDialog",
|
|
267
|
+
"closeSettingsDialog",
|
|
268
|
+
"openShareDialog",
|
|
269
|
+
"closeShareDialog",
|
|
270
|
+
"triggerSelectionChange",
|
|
271
|
+
"beginSceneBootstrap",
|
|
272
|
+
"endSceneBootstrap",
|
|
273
|
+
"getDisplayableShortcuts",
|
|
274
|
+
"openLoginDialog",
|
|
275
|
+
"closeLoginDialog",
|
|
276
|
+
"setLoginLoading",
|
|
277
|
+
"setLocale",
|
|
278
|
+
"getLocale",
|
|
279
|
+
"getAvailableLocales",
|
|
280
|
+
"registerLocales",
|
|
281
|
+
"registerFonts",
|
|
282
|
+
"t",
|
|
283
|
+
"triggerNotification"
|
|
284
|
+
]
|
|
285
|
+
})], KritzelEditor);
|
|
286
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
287
|
+
minVersion: "12.0.0",
|
|
288
|
+
version: "22.2.0",
|
|
289
|
+
ngImport: i0,
|
|
290
|
+
type: KritzelEditor,
|
|
291
|
+
decorators: [{
|
|
292
|
+
type: Component,
|
|
293
|
+
args: [{
|
|
294
|
+
selector: "kritzel-editor",
|
|
295
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
296
|
+
template: "<ng-content></ng-content>",
|
|
297
|
+
inputs: [
|
|
298
|
+
"activeUsers",
|
|
299
|
+
"activeWorkspaceId",
|
|
300
|
+
"assetStorageConfig",
|
|
301
|
+
"cursorTarget",
|
|
302
|
+
"customFonts",
|
|
303
|
+
"customSvgIcons",
|
|
304
|
+
"debugInfo",
|
|
305
|
+
"editorId",
|
|
306
|
+
"fallbackLocale",
|
|
307
|
+
"globalContextMenuItems",
|
|
308
|
+
"isMoreMenuVisible",
|
|
309
|
+
"isPanningEnabled",
|
|
310
|
+
"isToolbarVisible",
|
|
311
|
+
"isUtilityPanelVisible",
|
|
312
|
+
"isWorkspaceManagerVisible",
|
|
313
|
+
"isZoomPanelVisible",
|
|
314
|
+
"isZoomingEnabled",
|
|
315
|
+
"licenseKey",
|
|
316
|
+
"locale",
|
|
317
|
+
"locales",
|
|
318
|
+
"lockDrawingScale",
|
|
319
|
+
"loginConfig",
|
|
320
|
+
"moreMenuItems",
|
|
321
|
+
"objectContextMenuItems",
|
|
322
|
+
"scaleMax",
|
|
323
|
+
"scaleMin",
|
|
324
|
+
"syncConfig",
|
|
325
|
+
"theme",
|
|
326
|
+
"themes",
|
|
327
|
+
"toolbarItems",
|
|
328
|
+
"user",
|
|
329
|
+
"viewportBoundaryBottom",
|
|
330
|
+
"viewportBoundaryLeft",
|
|
331
|
+
"viewportBoundaryRight",
|
|
332
|
+
"viewportBoundaryTop",
|
|
333
|
+
"workspaces"
|
|
334
|
+
],
|
|
335
|
+
outputs: [
|
|
336
|
+
"isReady",
|
|
337
|
+
"activeWorkspaceChange",
|
|
338
|
+
"objectsChange",
|
|
339
|
+
"objectsAdded",
|
|
340
|
+
"objectsRemoved",
|
|
341
|
+
"objectsUpdated",
|
|
342
|
+
"objectsSelectionChange",
|
|
343
|
+
"undoStateChange",
|
|
344
|
+
"themeChange",
|
|
345
|
+
"localeChange",
|
|
346
|
+
"viewportChange",
|
|
347
|
+
"logout",
|
|
348
|
+
"login",
|
|
349
|
+
"isPublicChange",
|
|
350
|
+
"awarenessChange"
|
|
351
|
+
]
|
|
352
|
+
}]
|
|
353
|
+
}],
|
|
354
|
+
ctorParameters: () => [
|
|
355
|
+
{ type: i0.ChangeDetectorRef },
|
|
356
|
+
{ type: i0.ElementRef },
|
|
357
|
+
{ type: i0.NgZone }
|
|
358
|
+
],
|
|
359
|
+
propDecorators: {
|
|
360
|
+
isReady: [{ type: Output }],
|
|
361
|
+
activeWorkspaceChange: [{ type: Output }],
|
|
362
|
+
objectsChange: [{ type: Output }],
|
|
363
|
+
objectsAdded: [{ type: Output }],
|
|
364
|
+
objectsRemoved: [{ type: Output }],
|
|
365
|
+
objectsUpdated: [{ type: Output }],
|
|
366
|
+
objectsSelectionChange: [{ type: Output }],
|
|
367
|
+
undoStateChange: [{ type: Output }],
|
|
368
|
+
themeChange: [{ type: Output }],
|
|
369
|
+
localeChange: [{ type: Output }],
|
|
370
|
+
viewportChange: [{ type: Output }],
|
|
371
|
+
logout: [{ type: Output }],
|
|
372
|
+
login: [{ type: Output }],
|
|
373
|
+
isPublicChange: [{ type: Output }],
|
|
374
|
+
awarenessChange: [{ type: Output }]
|
|
375
|
+
}
|
|
376
|
+
});
|
|
144
377
|
let KritzelSettings = class KritzelSettings {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
378
|
+
constructor(c, r, z) {
|
|
379
|
+
this.z = z;
|
|
380
|
+
this.settingsChange = new EventEmitter();
|
|
381
|
+
c.detach();
|
|
382
|
+
this.el = r.nativeElement;
|
|
383
|
+
}
|
|
384
|
+
static {
|
|
385
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
386
|
+
minVersion: "12.0.0",
|
|
387
|
+
version: "22.2.0",
|
|
388
|
+
ngImport: i0,
|
|
389
|
+
type: KritzelSettings,
|
|
390
|
+
deps: [
|
|
391
|
+
{ token: i0.ChangeDetectorRef },
|
|
392
|
+
{ token: i0.ElementRef },
|
|
393
|
+
{ token: i0.NgZone }
|
|
394
|
+
],
|
|
395
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
static {
|
|
399
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
400
|
+
minVersion: "14.0.0",
|
|
401
|
+
version: "22.2.0",
|
|
402
|
+
type: KritzelSettings,
|
|
403
|
+
isStandalone: true,
|
|
404
|
+
selector: "kritzel-settings",
|
|
405
|
+
inputs: {
|
|
406
|
+
availableLocales: "availableLocales",
|
|
407
|
+
availableThemes: "availableThemes",
|
|
408
|
+
settings: "settings",
|
|
409
|
+
shortcuts: "shortcuts",
|
|
410
|
+
terms: "terms"
|
|
411
|
+
},
|
|
412
|
+
outputs: { settingsChange: "settingsChange" },
|
|
413
|
+
ngImport: i0,
|
|
414
|
+
template: "<ng-content></ng-content>",
|
|
415
|
+
isInline: true,
|
|
416
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
417
|
+
});
|
|
418
|
+
}
|
|
153
419
|
};
|
|
154
|
-
KritzelSettings = __decorate([
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
420
|
+
KritzelSettings = __decorate([ProxyCmp({
|
|
421
|
+
defineCustomElementFn: defineCustomElement$1,
|
|
422
|
+
inputs: [
|
|
423
|
+
"availableLocales",
|
|
424
|
+
"availableThemes",
|
|
425
|
+
"settings",
|
|
426
|
+
"shortcuts",
|
|
427
|
+
"terms"
|
|
428
|
+
],
|
|
429
|
+
methods: ["open", "close"]
|
|
430
|
+
})], KritzelSettings);
|
|
431
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
432
|
+
minVersion: "12.0.0",
|
|
433
|
+
version: "22.2.0",
|
|
434
|
+
ngImport: i0,
|
|
435
|
+
type: KritzelSettings,
|
|
436
|
+
decorators: [{
|
|
437
|
+
type: Component,
|
|
438
|
+
args: [{
|
|
439
|
+
selector: "kritzel-settings",
|
|
440
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
441
|
+
template: "<ng-content></ng-content>",
|
|
442
|
+
inputs: [
|
|
443
|
+
"availableLocales",
|
|
444
|
+
"availableThemes",
|
|
445
|
+
"settings",
|
|
446
|
+
"shortcuts",
|
|
447
|
+
"terms"
|
|
448
|
+
],
|
|
449
|
+
outputs: ["settingsChange"]
|
|
450
|
+
}]
|
|
451
|
+
}],
|
|
452
|
+
ctorParameters: () => [
|
|
453
|
+
{ type: i0.ChangeDetectorRef },
|
|
454
|
+
{ type: i0.ElementRef },
|
|
455
|
+
{ type: i0.NgZone }
|
|
456
|
+
],
|
|
457
|
+
propDecorators: { settingsChange: [{ type: Output }] }
|
|
458
|
+
});
|
|
174
459
|
let KritzelShapeFill = class KritzelShapeFill {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
460
|
+
constructor(c, r, z) {
|
|
461
|
+
this.z = z;
|
|
462
|
+
this.valueChange = new EventEmitter();
|
|
463
|
+
c.detach();
|
|
464
|
+
this.el = r.nativeElement;
|
|
465
|
+
}
|
|
466
|
+
static {
|
|
467
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
468
|
+
minVersion: "12.0.0",
|
|
469
|
+
version: "22.2.0",
|
|
470
|
+
ngImport: i0,
|
|
471
|
+
type: KritzelShapeFill,
|
|
472
|
+
deps: [
|
|
473
|
+
{ token: i0.ChangeDetectorRef },
|
|
474
|
+
{ token: i0.ElementRef },
|
|
475
|
+
{ token: i0.NgZone }
|
|
476
|
+
],
|
|
477
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
static {
|
|
481
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
482
|
+
minVersion: "14.0.0",
|
|
483
|
+
version: "22.2.0",
|
|
484
|
+
type: KritzelShapeFill,
|
|
485
|
+
isStandalone: true,
|
|
486
|
+
selector: "kritzel-shape-fill",
|
|
487
|
+
inputs: { value: "value" },
|
|
488
|
+
outputs: { valueChange: "valueChange" },
|
|
489
|
+
ngImport: i0,
|
|
490
|
+
template: "<ng-content></ng-content>",
|
|
491
|
+
isInline: true,
|
|
492
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
493
|
+
});
|
|
494
|
+
}
|
|
183
495
|
};
|
|
184
|
-
KritzelShapeFill = __decorate([
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
496
|
+
KritzelShapeFill = __decorate([ProxyCmp({
|
|
497
|
+
defineCustomElementFn: defineCustomElement$2,
|
|
498
|
+
inputs: ["value"]
|
|
499
|
+
})], KritzelShapeFill);
|
|
500
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
501
|
+
minVersion: "12.0.0",
|
|
502
|
+
version: "22.2.0",
|
|
503
|
+
ngImport: i0,
|
|
504
|
+
type: KritzelShapeFill,
|
|
505
|
+
decorators: [{
|
|
506
|
+
type: Component,
|
|
507
|
+
args: [{
|
|
508
|
+
selector: "kritzel-shape-fill",
|
|
509
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
510
|
+
template: "<ng-content></ng-content>",
|
|
511
|
+
inputs: ["value"],
|
|
512
|
+
outputs: ["valueChange"]
|
|
513
|
+
}]
|
|
514
|
+
}],
|
|
515
|
+
ctorParameters: () => [
|
|
516
|
+
{ type: i0.ChangeDetectorRef },
|
|
517
|
+
{ type: i0.ElementRef },
|
|
518
|
+
{ type: i0.NgZone }
|
|
519
|
+
],
|
|
520
|
+
propDecorators: { valueChange: [{ type: Output }] }
|
|
521
|
+
});
|
|
203
522
|
let KritzelShareDialog = class KritzelShareDialog {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
523
|
+
constructor(c, r, z) {
|
|
524
|
+
this.z = z;
|
|
525
|
+
this.toggleIsPublic = new EventEmitter();
|
|
526
|
+
this.dialogClosed = new EventEmitter();
|
|
527
|
+
c.detach();
|
|
528
|
+
this.el = r.nativeElement;
|
|
529
|
+
}
|
|
530
|
+
static {
|
|
531
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
532
|
+
minVersion: "12.0.0",
|
|
533
|
+
version: "22.2.0",
|
|
534
|
+
ngImport: i0,
|
|
535
|
+
type: KritzelShareDialog,
|
|
536
|
+
deps: [
|
|
537
|
+
{ token: i0.ChangeDetectorRef },
|
|
538
|
+
{ token: i0.ElementRef },
|
|
539
|
+
{ token: i0.NgZone }
|
|
540
|
+
],
|
|
541
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
static {
|
|
545
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
546
|
+
minVersion: "14.0.0",
|
|
547
|
+
version: "22.2.0",
|
|
548
|
+
type: KritzelShareDialog,
|
|
549
|
+
isStandalone: true,
|
|
550
|
+
selector: "kritzel-share-dialog",
|
|
551
|
+
inputs: {
|
|
552
|
+
isPublic: "isPublic",
|
|
553
|
+
terms: "terms",
|
|
554
|
+
workspaceId: "workspaceId"
|
|
555
|
+
},
|
|
556
|
+
outputs: {
|
|
557
|
+
toggleIsPublic: "toggleIsPublic",
|
|
558
|
+
dialogClosed: "dialogClosed"
|
|
559
|
+
},
|
|
560
|
+
ngImport: i0,
|
|
561
|
+
template: "<ng-content></ng-content>",
|
|
562
|
+
isInline: true,
|
|
563
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
564
|
+
});
|
|
565
|
+
}
|
|
213
566
|
};
|
|
214
|
-
KritzelShareDialog = __decorate([
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
],
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
567
|
+
KritzelShareDialog = __decorate([ProxyCmp({
|
|
568
|
+
defineCustomElementFn: defineCustomElement$3,
|
|
569
|
+
inputs: [
|
|
570
|
+
"isPublic",
|
|
571
|
+
"terms",
|
|
572
|
+
"workspaceId"
|
|
573
|
+
],
|
|
574
|
+
methods: ["open", "close"]
|
|
575
|
+
})], KritzelShareDialog);
|
|
576
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
577
|
+
minVersion: "12.0.0",
|
|
578
|
+
version: "22.2.0",
|
|
579
|
+
ngImport: i0,
|
|
580
|
+
type: KritzelShareDialog,
|
|
581
|
+
decorators: [{
|
|
582
|
+
type: Component,
|
|
583
|
+
args: [{
|
|
584
|
+
selector: "kritzel-share-dialog",
|
|
585
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
586
|
+
template: "<ng-content></ng-content>",
|
|
587
|
+
inputs: [
|
|
588
|
+
"isPublic",
|
|
589
|
+
"terms",
|
|
590
|
+
"workspaceId"
|
|
591
|
+
],
|
|
592
|
+
outputs: ["toggleIsPublic", "dialogClosed"]
|
|
593
|
+
}]
|
|
594
|
+
}],
|
|
595
|
+
ctorParameters: () => [
|
|
596
|
+
{ type: i0.ChangeDetectorRef },
|
|
597
|
+
{ type: i0.ElementRef },
|
|
598
|
+
{ type: i0.NgZone }
|
|
599
|
+
],
|
|
600
|
+
propDecorators: {
|
|
601
|
+
toggleIsPublic: [{ type: Output }],
|
|
602
|
+
dialogClosed: [{ type: Output }]
|
|
603
|
+
}
|
|
604
|
+
});
|
|
236
605
|
let KritzelSplitButton = class KritzelSplitButton {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
606
|
+
constructor(c, r, z) {
|
|
607
|
+
this.z = z;
|
|
608
|
+
this.mainButtonClick = new EventEmitter();
|
|
609
|
+
this.itemSelect = new EventEmitter();
|
|
610
|
+
this.itemSave = new EventEmitter();
|
|
611
|
+
this.itemCancel = new EventEmitter();
|
|
612
|
+
this.itemToggleChildMenu = new EventEmitter();
|
|
613
|
+
this.itemCloseChildMenu = new EventEmitter();
|
|
614
|
+
this.menuOpen = new EventEmitter();
|
|
615
|
+
this.menuClose = new EventEmitter();
|
|
616
|
+
c.detach();
|
|
617
|
+
this.el = r.nativeElement;
|
|
618
|
+
}
|
|
619
|
+
static {
|
|
620
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
621
|
+
minVersion: "12.0.0",
|
|
622
|
+
version: "22.2.0",
|
|
623
|
+
ngImport: i0,
|
|
624
|
+
type: KritzelSplitButton,
|
|
625
|
+
deps: [
|
|
626
|
+
{ token: i0.ChangeDetectorRef },
|
|
627
|
+
{ token: i0.ElementRef },
|
|
628
|
+
{ token: i0.NgZone }
|
|
629
|
+
],
|
|
630
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
static {
|
|
634
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
635
|
+
minVersion: "14.0.0",
|
|
636
|
+
version: "22.2.0",
|
|
637
|
+
type: KritzelSplitButton,
|
|
638
|
+
isStandalone: true,
|
|
639
|
+
selector: "kritzel-split-button",
|
|
640
|
+
inputs: {
|
|
641
|
+
buttonIcon: "buttonIcon",
|
|
642
|
+
dropdownIcon: "dropdownIcon",
|
|
643
|
+
items: "items",
|
|
644
|
+
mainButtonDisabled: "mainButtonDisabled",
|
|
645
|
+
menuButtonDisabled: "menuButtonDisabled"
|
|
646
|
+
},
|
|
647
|
+
outputs: {
|
|
648
|
+
mainButtonClick: "mainButtonClick",
|
|
649
|
+
itemSelect: "itemSelect",
|
|
650
|
+
itemSave: "itemSave",
|
|
651
|
+
itemCancel: "itemCancel",
|
|
652
|
+
itemToggleChildMenu: "itemToggleChildMenu",
|
|
653
|
+
itemCloseChildMenu: "itemCloseChildMenu",
|
|
654
|
+
menuOpen: "menuOpen",
|
|
655
|
+
menuClose: "menuClose"
|
|
656
|
+
},
|
|
657
|
+
ngImport: i0,
|
|
658
|
+
template: "<ng-content></ng-content>",
|
|
659
|
+
isInline: true,
|
|
660
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
661
|
+
});
|
|
662
|
+
}
|
|
252
663
|
};
|
|
253
|
-
KritzelSplitButton = __decorate([
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
664
|
+
KritzelSplitButton = __decorate([ProxyCmp({
|
|
665
|
+
defineCustomElementFn: defineCustomElement$4,
|
|
666
|
+
inputs: [
|
|
667
|
+
"buttonIcon",
|
|
668
|
+
"dropdownIcon",
|
|
669
|
+
"items",
|
|
670
|
+
"mainButtonDisabled",
|
|
671
|
+
"menuButtonDisabled"
|
|
672
|
+
],
|
|
673
|
+
methods: [
|
|
674
|
+
"open",
|
|
675
|
+
"close",
|
|
676
|
+
"focusMenu"
|
|
677
|
+
]
|
|
678
|
+
})], KritzelSplitButton);
|
|
679
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
680
|
+
minVersion: "12.0.0",
|
|
681
|
+
version: "22.2.0",
|
|
682
|
+
ngImport: i0,
|
|
683
|
+
type: KritzelSplitButton,
|
|
684
|
+
decorators: [{
|
|
685
|
+
type: Component,
|
|
686
|
+
args: [{
|
|
687
|
+
selector: "kritzel-split-button",
|
|
688
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
689
|
+
template: "<ng-content></ng-content>",
|
|
690
|
+
inputs: [
|
|
691
|
+
"buttonIcon",
|
|
692
|
+
"dropdownIcon",
|
|
693
|
+
"items",
|
|
694
|
+
"mainButtonDisabled",
|
|
695
|
+
"menuButtonDisabled"
|
|
696
|
+
],
|
|
697
|
+
outputs: [
|
|
698
|
+
"mainButtonClick",
|
|
699
|
+
"itemSelect",
|
|
700
|
+
"itemSave",
|
|
701
|
+
"itemCancel",
|
|
702
|
+
"itemToggleChildMenu",
|
|
703
|
+
"itemCloseChildMenu",
|
|
704
|
+
"menuOpen",
|
|
705
|
+
"menuClose"
|
|
706
|
+
]
|
|
707
|
+
}]
|
|
708
|
+
}],
|
|
709
|
+
ctorParameters: () => [
|
|
710
|
+
{ type: i0.ChangeDetectorRef },
|
|
711
|
+
{ type: i0.ElementRef },
|
|
712
|
+
{ type: i0.NgZone }
|
|
713
|
+
],
|
|
714
|
+
propDecorators: {
|
|
715
|
+
mainButtonClick: [{ type: Output }],
|
|
716
|
+
itemSelect: [{ type: Output }],
|
|
717
|
+
itemSave: [{ type: Output }],
|
|
718
|
+
itemCancel: [{ type: Output }],
|
|
719
|
+
itemToggleChildMenu: [{ type: Output }],
|
|
720
|
+
itemCloseChildMenu: [{ type: Output }],
|
|
721
|
+
menuOpen: [{ type: Output }],
|
|
722
|
+
menuClose: [{ type: Output }]
|
|
723
|
+
}
|
|
724
|
+
});
|
|
287
725
|
let KritzelStrokeSize = class KritzelStrokeSize {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
726
|
+
constructor(c, r, z) {
|
|
727
|
+
this.z = z;
|
|
728
|
+
this.sizeChange = new EventEmitter();
|
|
729
|
+
c.detach();
|
|
730
|
+
this.el = r.nativeElement;
|
|
731
|
+
}
|
|
732
|
+
static {
|
|
733
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
734
|
+
minVersion: "12.0.0",
|
|
735
|
+
version: "22.2.0",
|
|
736
|
+
ngImport: i0,
|
|
737
|
+
type: KritzelStrokeSize,
|
|
738
|
+
deps: [
|
|
739
|
+
{ token: i0.ChangeDetectorRef },
|
|
740
|
+
{ token: i0.ElementRef },
|
|
741
|
+
{ token: i0.NgZone }
|
|
742
|
+
],
|
|
743
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
static {
|
|
747
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
748
|
+
minVersion: "14.0.0",
|
|
749
|
+
version: "22.2.0",
|
|
750
|
+
type: KritzelStrokeSize,
|
|
751
|
+
isStandalone: true,
|
|
752
|
+
selector: "kritzel-stroke-size",
|
|
753
|
+
inputs: {
|
|
754
|
+
selectedSize: "selectedSize",
|
|
755
|
+
sizes: "sizes"
|
|
756
|
+
},
|
|
757
|
+
outputs: { sizeChange: "sizeChange" },
|
|
758
|
+
ngImport: i0,
|
|
759
|
+
template: "<ng-content></ng-content>",
|
|
760
|
+
isInline: true,
|
|
761
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
762
|
+
});
|
|
763
|
+
}
|
|
296
764
|
};
|
|
297
|
-
KritzelStrokeSize = __decorate([
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
765
|
+
KritzelStrokeSize = __decorate([ProxyCmp({
|
|
766
|
+
defineCustomElementFn: defineCustomElement$5,
|
|
767
|
+
inputs: ["selectedSize", "sizes"]
|
|
768
|
+
})], KritzelStrokeSize);
|
|
769
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
770
|
+
minVersion: "12.0.0",
|
|
771
|
+
version: "22.2.0",
|
|
772
|
+
ngImport: i0,
|
|
773
|
+
type: KritzelStrokeSize,
|
|
774
|
+
decorators: [{
|
|
775
|
+
type: Component,
|
|
776
|
+
args: [{
|
|
777
|
+
selector: "kritzel-stroke-size",
|
|
778
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
779
|
+
template: "<ng-content></ng-content>",
|
|
780
|
+
inputs: ["selectedSize", "sizes"],
|
|
781
|
+
outputs: ["sizeChange"]
|
|
782
|
+
}]
|
|
783
|
+
}],
|
|
784
|
+
ctorParameters: () => [
|
|
785
|
+
{ type: i0.ChangeDetectorRef },
|
|
786
|
+
{ type: i0.ElementRef },
|
|
787
|
+
{ type: i0.NgZone }
|
|
788
|
+
],
|
|
789
|
+
propDecorators: { sizeChange: [{ type: Output }] }
|
|
790
|
+
});
|
|
317
791
|
const DIRECTIVES = [
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
792
|
+
KritzelEditor,
|
|
793
|
+
KritzelSettings,
|
|
794
|
+
KritzelShapeFill,
|
|
795
|
+
KritzelShareDialog,
|
|
796
|
+
KritzelSplitButton,
|
|
797
|
+
KritzelStrokeSize
|
|
324
798
|
];
|
|
325
|
-
|
|
326
799
|
function provideKritzel() {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
}),
|
|
332
|
-
]);
|
|
800
|
+
return makeEnvironmentProviders([provideAppInitializer(() => {
|
|
801
|
+
console.info("Initializing Kritzel custom elements");
|
|
802
|
+
return defineCustomElements(window);
|
|
803
|
+
})]);
|
|
333
804
|
}
|
|
805
|
+
export { BroadcastSyncProvider, DEFAULT_BRUSH_CONFIG, DEFAULT_SHAPE_CONFIG, DEFAULT_TEXT_CONFIG, DE_LOCALE, DIRECTIVES, EN_LOCALE, FR_LOCALE, HocuspocusSyncProvider, InMemorySyncProvider, IndexedDBSyncProvider, KritzelAlignment, KritzelBaseObject, KritzelBaseTool, KritzelBrushTool, KritzelDynamicObject, KritzelDynamicObjectRendererRegistry, KritzelEditor, KritzelEraserTool, KritzelFontRegistry, KritzelGroup, KritzelIframeObject, KritzelImage, KritzelImageTool, KritzelLicenseManager, KritzelLine, KritzelLineTool, KritzelLocalizationManager, KritzelPath, KritzelSelectionTool, KritzelSettings, KritzelShape, KritzelShapeFill, KritzelShapeTool, KritzelShareDialog, KritzelSplitButton, KritzelStrokeSize, KritzelText, KritzelTextTool, KritzelThemeManager, KritzelWorkspace, ShapeType, WebSocketSyncProvider, darkTheme, hasRemoteSyncProvider, lightTheme, provideKritzel };
|
|
334
806
|
|
|
335
|
-
|
|
336
|
-
* Generated bundle index. Do not edit.
|
|
337
|
-
*/
|
|
338
|
-
|
|
339
|
-
export { DIRECTIVES, KritzelEditor, KritzelSettings, KritzelShapeFill, KritzelShareDialog, KritzelSplitButton, KritzelStrokeSize, provideKritzel };
|
|
340
|
-
//# sourceMappingURL=kritzel-angular-editor.mjs.map
|
|
807
|
+
//# sourceMappingURL=kritzel-angular-editor.mjs.map
|