kritzel-angular 0.0.41 → 0.0.43

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.
@@ -62,48 +62,248 @@ function ProxyCmp(opts) {
62
62
  return decorator;
63
63
  }
64
64
 
65
+ let KritzelBrushStyle = class KritzelBrushStyle {
66
+ constructor(c, r, z) {
67
+ this.z = z;
68
+ c.detach();
69
+ this.el = r.nativeElement;
70
+ proxyOutputs(this, this.el, ['typeChange']);
71
+ }
72
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelBrushStyle, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
73
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelBrushStyle, isStandalone: true, selector: "kritzel-brush-style", inputs: { brushOptions: "brushOptions", type: "type" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
74
+ };
75
+ KritzelBrushStyle = __decorate([
76
+ ProxyCmp({
77
+ inputs: ['brushOptions', 'type']
78
+ })
79
+ ], KritzelBrushStyle);
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelBrushStyle, decorators: [{
81
+ type: Component,
82
+ args: [{
83
+ selector: 'kritzel-brush-style',
84
+ changeDetection: ChangeDetectionStrategy.OnPush,
85
+ template: '<ng-content></ng-content>',
86
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
87
+ inputs: ['brushOptions', 'type'],
88
+ }]
89
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
90
+ let KritzelColor = class KritzelColor {
91
+ constructor(c, r, z) {
92
+ this.z = z;
93
+ c.detach();
94
+ this.el = r.nativeElement;
95
+ }
96
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelColor, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
97
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelColor, isStandalone: true, selector: "kritzel-color", inputs: { size: "size", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
98
+ };
99
+ KritzelColor = __decorate([
100
+ ProxyCmp({
101
+ inputs: ['size', 'value']
102
+ })
103
+ ], KritzelColor);
104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelColor, decorators: [{
105
+ type: Component,
106
+ args: [{
107
+ selector: 'kritzel-color',
108
+ changeDetection: ChangeDetectionStrategy.OnPush,
109
+ template: '<ng-content></ng-content>',
110
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
111
+ inputs: ['size', 'value'],
112
+ }]
113
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
114
+ let KritzelColorPalette = class KritzelColorPalette {
115
+ constructor(c, r, z) {
116
+ this.z = z;
117
+ c.detach();
118
+ this.el = r.nativeElement;
119
+ proxyOutputs(this, this.el, ['colorChange']);
120
+ }
121
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelColorPalette, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
122
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelColorPalette, isStandalone: true, selector: "kritzel-color-palette", inputs: { colors: "colors", isExpanded: "isExpanded", isOpaque: "isOpaque", selectedColor: "selectedColor" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
123
+ };
124
+ KritzelColorPalette = __decorate([
125
+ ProxyCmp({
126
+ inputs: ['colors', 'isExpanded', 'isOpaque', 'selectedColor']
127
+ })
128
+ ], KritzelColorPalette);
129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelColorPalette, decorators: [{
130
+ type: Component,
131
+ args: [{
132
+ selector: 'kritzel-color-palette',
133
+ changeDetection: ChangeDetectionStrategy.OnPush,
134
+ template: '<ng-content></ng-content>',
135
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
136
+ inputs: ['colors', 'isExpanded', 'isOpaque', 'selectedColor'],
137
+ }]
138
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
139
+ let KritzelContextMenu = class KritzelContextMenu {
140
+ constructor(c, r, z) {
141
+ this.z = z;
142
+ c.detach();
143
+ this.el = r.nativeElement;
144
+ proxyOutputs(this, this.el, ['actionSelected', 'close']);
145
+ }
146
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelContextMenu, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
147
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelContextMenu, isStandalone: true, selector: "kritzel-context-menu", inputs: { items: "items" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
148
+ };
149
+ KritzelContextMenu = __decorate([
150
+ ProxyCmp({
151
+ inputs: ['items']
152
+ })
153
+ ], KritzelContextMenu);
154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelContextMenu, decorators: [{
155
+ type: Component,
156
+ args: [{
157
+ selector: 'kritzel-context-menu',
158
+ changeDetection: ChangeDetectionStrategy.OnPush,
159
+ template: '<ng-content></ng-content>',
160
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
161
+ inputs: ['items'],
162
+ }]
163
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
164
+ let KritzelControlBrushConfig = class KritzelControlBrushConfig {
165
+ constructor(c, r, z) {
166
+ this.z = z;
167
+ c.detach();
168
+ this.el = r.nativeElement;
169
+ proxyOutputs(this, this.el, ['toolChange']);
170
+ }
171
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelControlBrushConfig, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
172
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelControlBrushConfig, isStandalone: true, selector: "kritzel-control-brush-config", inputs: { isExpanded: "isExpanded", tool: "tool" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
173
+ };
174
+ KritzelControlBrushConfig = __decorate([
175
+ ProxyCmp({
176
+ inputs: ['isExpanded', 'tool']
177
+ })
178
+ ], KritzelControlBrushConfig);
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelControlBrushConfig, decorators: [{
180
+ type: Component,
181
+ args: [{
182
+ selector: 'kritzel-control-brush-config',
183
+ changeDetection: ChangeDetectionStrategy.OnPush,
184
+ template: '<ng-content></ng-content>',
185
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
186
+ inputs: ['isExpanded', 'tool'],
187
+ }]
188
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
189
+ let KritzelControlTextConfig = class KritzelControlTextConfig {
190
+ constructor(c, r, z) {
191
+ this.z = z;
192
+ c.detach();
193
+ this.el = r.nativeElement;
194
+ proxyOutputs(this, this.el, ['toolChange']);
195
+ }
196
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelControlTextConfig, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
197
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelControlTextConfig, isStandalone: true, selector: "kritzel-control-text-config", inputs: { isExpanded: "isExpanded", tool: "tool" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
198
+ };
199
+ KritzelControlTextConfig = __decorate([
200
+ ProxyCmp({
201
+ inputs: ['isExpanded', 'tool']
202
+ })
203
+ ], KritzelControlTextConfig);
204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelControlTextConfig, decorators: [{
205
+ type: Component,
206
+ args: [{
207
+ selector: 'kritzel-control-text-config',
208
+ changeDetection: ChangeDetectionStrategy.OnPush,
209
+ template: '<ng-content></ng-content>',
210
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
211
+ inputs: ['isExpanded', 'tool'],
212
+ }]
213
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
65
214
  let KritzelControls = class KritzelControls {
66
215
  constructor(c, r, z) {
67
216
  this.z = z;
68
217
  c.detach();
69
218
  this.el = r.nativeElement;
70
219
  }
71
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: KritzelControls, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
72
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: KritzelControls, isStandalone: true, selector: "kritzel-controls", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
220
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelControls, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
221
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelControls, isStandalone: true, selector: "kritzel-controls", inputs: { activeControl: "activeControl", controls: "controls" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
73
222
  };
74
223
  KritzelControls = __decorate([
75
- ProxyCmp({})
224
+ ProxyCmp({
225
+ inputs: ['activeControl', 'controls']
226
+ })
76
227
  ], KritzelControls);
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: KritzelControls, decorators: [{
228
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelControls, decorators: [{
78
229
  type: Component,
79
230
  args: [{
80
231
  selector: 'kritzel-controls',
81
232
  changeDetection: ChangeDetectionStrategy.OnPush,
82
233
  template: '<ng-content></ng-content>',
83
234
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
235
+ inputs: ['activeControl', 'controls'],
236
+ }]
237
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
238
+ let KritzelCursorTrail = class KritzelCursorTrail {
239
+ constructor(c, r, z) {
240
+ this.z = z;
241
+ c.detach();
242
+ this.el = r.nativeElement;
243
+ }
244
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelCursorTrail, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
245
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelCursorTrail, isStandalone: true, selector: "kritzel-cursor-trail", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
246
+ };
247
+ KritzelCursorTrail = __decorate([
248
+ ProxyCmp({})
249
+ ], KritzelCursorTrail);
250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelCursorTrail, decorators: [{
251
+ type: Component,
252
+ args: [{
253
+ selector: 'kritzel-cursor-trail',
254
+ changeDetection: ChangeDetectionStrategy.OnPush,
255
+ template: '<ng-content></ng-content>',
256
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
84
257
  inputs: [],
85
258
  }]
86
259
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
260
+ let KritzelDropdown = class KritzelDropdown {
261
+ constructor(c, r, z) {
262
+ this.z = z;
263
+ c.detach();
264
+ this.el = r.nativeElement;
265
+ proxyOutputs(this, this.el, ['valueChanged']);
266
+ }
267
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelDropdown, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
268
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelDropdown, isStandalone: true, selector: "kritzel-dropdown", inputs: { options: "options", selectStyles: "selectStyles", value: "value", width: "width" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
269
+ };
270
+ KritzelDropdown = __decorate([
271
+ ProxyCmp({
272
+ inputs: ['options', 'selectStyles', 'value', 'width']
273
+ })
274
+ ], KritzelDropdown);
275
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelDropdown, decorators: [{
276
+ type: Component,
277
+ args: [{
278
+ selector: 'kritzel-dropdown',
279
+ changeDetection: ChangeDetectionStrategy.OnPush,
280
+ template: '<ng-content></ng-content>',
281
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
282
+ inputs: ['options', 'selectStyles', 'value', 'width'],
283
+ }]
284
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
87
285
  let KritzelEditor = class KritzelEditor {
88
286
  constructor(c, r, z) {
89
287
  this.z = z;
90
288
  c.detach();
91
289
  this.el = r.nativeElement;
92
290
  }
93
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: KritzelEditor, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
94
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: KritzelEditor, isStandalone: true, selector: "kritzel-editor", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
291
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelEditor, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
292
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelEditor, isStandalone: true, selector: "kritzel-editor", inputs: { controls: "controls", customSvgIcons: "customSvgIcons" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
95
293
  };
96
294
  KritzelEditor = __decorate([
97
- ProxyCmp({})
295
+ ProxyCmp({
296
+ inputs: ['controls', 'customSvgIcons']
297
+ })
98
298
  ], KritzelEditor);
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: KritzelEditor, decorators: [{
299
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelEditor, decorators: [{
100
300
  type: Component,
101
301
  args: [{
102
302
  selector: 'kritzel-editor',
103
303
  changeDetection: ChangeDetectionStrategy.OnPush,
104
304
  template: '<ng-content></ng-content>',
105
305
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
106
- inputs: [],
306
+ inputs: ['controls', 'customSvgIcons'],
107
307
  }]
108
308
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
109
309
  let KritzelEngine = class KritzelEngine {
@@ -111,24 +311,99 @@ let KritzelEngine = class KritzelEngine {
111
311
  this.z = z;
112
312
  c.detach();
113
313
  this.el = r.nativeElement;
314
+ proxyOutputs(this, this.el, ['activeToolChange']);
114
315
  }
115
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: KritzelEngine, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
116
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: KritzelEngine, isStandalone: true, selector: "kritzel-engine", inputs: { activeTool: "activeTool" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
316
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelEngine, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
317
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelEngine, isStandalone: true, selector: "kritzel-engine", inputs: { activeTool: "activeTool", globalContextMenuItems: "globalContextMenuItems", objectContextMenuItems: "objectContextMenuItems" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
117
318
  };
118
319
  KritzelEngine = __decorate([
119
320
  ProxyCmp({
120
- inputs: ['activeTool'],
121
- methods: ['changeActiveTool']
321
+ inputs: ['activeTool', 'globalContextMenuItems', 'objectContextMenuItems'],
322
+ methods: ['registerTool', 'changeActiveTool', 'setFocus', 'disable', 'enable', 'delete', 'copy', 'paste', 'moveToTop', 'moveToBottom', 'selectAllInViewport', 'undo', 'redo']
122
323
  })
123
324
  ], KritzelEngine);
124
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: KritzelEngine, decorators: [{
325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelEngine, decorators: [{
125
326
  type: Component,
126
327
  args: [{
127
328
  selector: 'kritzel-engine',
128
329
  changeDetection: ChangeDetectionStrategy.OnPush,
129
330
  template: '<ng-content></ng-content>',
130
331
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
131
- inputs: ['activeTool'],
332
+ inputs: ['activeTool', 'globalContextMenuItems', 'objectContextMenuItems'],
333
+ }]
334
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
335
+ let KritzelFont = class KritzelFont {
336
+ constructor(c, r, z) {
337
+ this.z = z;
338
+ c.detach();
339
+ this.el = r.nativeElement;
340
+ }
341
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelFont, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
342
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelFont, isStandalone: true, selector: "kritzel-font", inputs: { color: "color", fontFamily: "fontFamily", size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
343
+ };
344
+ KritzelFont = __decorate([
345
+ ProxyCmp({
346
+ inputs: ['color', 'fontFamily', 'size']
347
+ })
348
+ ], KritzelFont);
349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelFont, decorators: [{
350
+ type: Component,
351
+ args: [{
352
+ selector: 'kritzel-font',
353
+ changeDetection: ChangeDetectionStrategy.OnPush,
354
+ template: '<ng-content></ng-content>',
355
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
356
+ inputs: ['color', 'fontFamily', 'size'],
357
+ }]
358
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
359
+ let KritzelFontFamily = class KritzelFontFamily {
360
+ constructor(c, r, z) {
361
+ this.z = z;
362
+ c.detach();
363
+ this.el = r.nativeElement;
364
+ proxyOutputs(this, this.el, ['fontFamilyChange']);
365
+ }
366
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelFontFamily, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
367
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelFontFamily, isStandalone: true, selector: "kritzel-font-family", inputs: { fontOptions: "fontOptions", selectedFontFamily: "selectedFontFamily" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
368
+ };
369
+ KritzelFontFamily = __decorate([
370
+ ProxyCmp({
371
+ inputs: ['fontOptions', 'selectedFontFamily']
372
+ })
373
+ ], KritzelFontFamily);
374
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelFontFamily, decorators: [{
375
+ type: Component,
376
+ args: [{
377
+ selector: 'kritzel-font-family',
378
+ changeDetection: ChangeDetectionStrategy.OnPush,
379
+ template: '<ng-content></ng-content>',
380
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
381
+ inputs: ['fontOptions', 'selectedFontFamily'],
382
+ }]
383
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
384
+ let KritzelFontSize = class KritzelFontSize {
385
+ constructor(c, r, z) {
386
+ this.z = z;
387
+ c.detach();
388
+ this.el = r.nativeElement;
389
+ proxyOutputs(this, this.el, ['sizeChange']);
390
+ }
391
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelFontSize, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
392
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelFontSize, isStandalone: true, selector: "kritzel-font-size", inputs: { fontFamily: "fontFamily", selectedSize: "selectedSize", sizes: "sizes" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
393
+ };
394
+ KritzelFontSize = __decorate([
395
+ ProxyCmp({
396
+ inputs: ['fontFamily', 'selectedSize', 'sizes']
397
+ })
398
+ ], KritzelFontSize);
399
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelFontSize, decorators: [{
400
+ type: Component,
401
+ args: [{
402
+ selector: 'kritzel-font-size',
403
+ changeDetection: ChangeDetectionStrategy.OnPush,
404
+ template: '<ng-content></ng-content>',
405
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
406
+ inputs: ['fontFamily', 'selectedSize', 'sizes'],
132
407
  }]
133
408
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
134
409
  let KritzelIcon = class KritzelIcon {
@@ -137,36 +412,97 @@ let KritzelIcon = class KritzelIcon {
137
412
  c.detach();
138
413
  this.el = r.nativeElement;
139
414
  }
140
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: KritzelIcon, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
141
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: KritzelIcon, isStandalone: true, selector: "kritzel-icon", inputs: { label: "label", name: "name" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
415
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelIcon, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
416
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelIcon, isStandalone: true, selector: "kritzel-icon", inputs: { label: "label", name: "name", size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
142
417
  };
143
418
  KritzelIcon = __decorate([
144
419
  ProxyCmp({
145
- inputs: ['label', 'name']
420
+ inputs: ['label', 'name', 'size']
146
421
  })
147
422
  ], KritzelIcon);
148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: KritzelIcon, decorators: [{
423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelIcon, decorators: [{
149
424
  type: Component,
150
425
  args: [{
151
426
  selector: 'kritzel-icon',
152
427
  changeDetection: ChangeDetectionStrategy.OnPush,
153
428
  template: '<ng-content></ng-content>',
154
429
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
155
- inputs: ['label', 'name'],
430
+ inputs: ['label', 'name', 'size'],
431
+ }]
432
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
433
+ let KritzelStrokeSize = class KritzelStrokeSize {
434
+ constructor(c, r, z) {
435
+ this.z = z;
436
+ c.detach();
437
+ this.el = r.nativeElement;
438
+ proxyOutputs(this, this.el, ['sizeChange']);
439
+ }
440
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelStrokeSize, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
441
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelStrokeSize, isStandalone: true, selector: "kritzel-stroke-size", inputs: { selectedSize: "selectedSize", sizes: "sizes" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
442
+ };
443
+ KritzelStrokeSize = __decorate([
444
+ ProxyCmp({
445
+ inputs: ['selectedSize', 'sizes']
446
+ })
447
+ ], KritzelStrokeSize);
448
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelStrokeSize, decorators: [{
449
+ type: Component,
450
+ args: [{
451
+ selector: 'kritzel-stroke-size',
452
+ changeDetection: ChangeDetectionStrategy.OnPush,
453
+ template: '<ng-content></ng-content>',
454
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
455
+ inputs: ['selectedSize', 'sizes'],
456
+ }]
457
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
458
+ let KritzelUtilityPanel = class KritzelUtilityPanel {
459
+ constructor(c, r, z) {
460
+ this.z = z;
461
+ c.detach();
462
+ this.el = r.nativeElement;
463
+ proxyOutputs(this, this.el, ['undo', 'redo', 'delete']);
464
+ }
465
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelUtilityPanel, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
466
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: KritzelUtilityPanel, isStandalone: true, selector: "kritzel-utility-panel", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
467
+ };
468
+ KritzelUtilityPanel = __decorate([
469
+ ProxyCmp({})
470
+ ], KritzelUtilityPanel);
471
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: KritzelUtilityPanel, decorators: [{
472
+ type: Component,
473
+ args: [{
474
+ selector: 'kritzel-utility-panel',
475
+ changeDetection: ChangeDetectionStrategy.OnPush,
476
+ template: '<ng-content></ng-content>',
477
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
478
+ inputs: [],
156
479
  }]
157
480
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
158
481
 
159
482
  const DIRECTIVES = [
483
+ KritzelBrushStyle,
484
+ KritzelColor,
485
+ KritzelColorPalette,
486
+ KritzelContextMenu,
487
+ KritzelControlBrushConfig,
488
+ KritzelControlTextConfig,
160
489
  KritzelControls,
490
+ KritzelCursorTrail,
491
+ KritzelDropdown,
161
492
  KritzelEditor,
162
493
  KritzelEngine,
163
- KritzelIcon
494
+ KritzelFont,
495
+ KritzelFontFamily,
496
+ KritzelFontSize,
497
+ KritzelIcon,
498
+ KritzelStrokeSize,
499
+ KritzelUtilityPanel
164
500
  ];
165
501
 
166
502
  class LibModule {
167
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: LibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
168
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: LibModule }); }
169
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: LibModule, providers: [
503
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: LibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
504
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.13", ngImport: i0, type: LibModule }); }
505
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: LibModule, providers: [
170
506
  {
171
507
  provide: APP_INITIALIZER,
172
508
  useFactory: () => defineCustomElements,
@@ -174,7 +510,7 @@ class LibModule {
174
510
  },
175
511
  ] }); }
176
512
  }
177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: LibModule, decorators: [{
513
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: LibModule, decorators: [{
178
514
  type: NgModule,
179
515
  args: [{
180
516
  providers: [
@@ -191,5 +527,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
191
527
  * Generated bundle index. Do not edit.
192
528
  */
193
529
 
194
- export { DIRECTIVES, KritzelControls, KritzelEditor, KritzelEngine, KritzelIcon, LibModule };
530
+ export { DIRECTIVES, KritzelBrushStyle, KritzelColor, KritzelColorPalette, KritzelContextMenu, KritzelControlBrushConfig, KritzelControlTextConfig, KritzelControls, KritzelCursorTrail, KritzelDropdown, KritzelEditor, KritzelEngine, KritzelFont, KritzelFontFamily, KritzelFontSize, KritzelIcon, KritzelStrokeSize, KritzelUtilityPanel, LibModule };
195
531
  //# sourceMappingURL=kritzel-angular.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"kritzel-angular.mjs","sources":["../../../projects/lib/src/lib/angular-component-lib/utils.ts","../../../projects/lib/src/lib/proxy.ts","../../../projects/lib/src/lib/index.ts","../../../projects/lib/src/lib/lib.module.ts","../../../projects/lib/src/kritzel-angular.ts"],"sourcesContent":["/* eslint-disable */\n/* tslint:disable */\nimport { fromEvent } from 'rxjs';\n\nexport const proxyInputs = (Cmp: any, inputs: string[]) => {\n const Prototype = Cmp.prototype;\n inputs.forEach((item) => {\n Object.defineProperty(Prototype, item, {\n get() {\n return this.el[item];\n },\n set(val: any) {\n this.z.runOutsideAngular(() => (this.el[item] = val));\n },\n /**\n * In the event that proxyInputs is called\n * multiple times re-defining these inputs\n * will cause an error to be thrown. As a result\n * we set configurable: true to indicate these\n * properties can be changed.\n */\n configurable: true,\n });\n });\n};\n\nexport const proxyMethods = (Cmp: any, methods: string[]) => {\n const Prototype = Cmp.prototype;\n methods.forEach((methodName) => {\n Prototype[methodName] = function () {\n const args = arguments;\n return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));\n };\n });\n};\n\nexport const proxyOutputs = (instance: any, el: any, events: string[]) => {\n events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));\n};\n\nexport const defineCustomElement = (tagName: string, customElement: any) => {\n if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\n\n// tslint:disable-next-line: only-arrow-functions\nexport function ProxyCmp(opts: { defineCustomElementFn?: () => void; inputs?: any; methods?: any }) {\n const decorator = function (cls: any) {\n const { defineCustomElementFn, inputs, methods } = opts;\n\n if (defineCustomElementFn !== undefined) {\n defineCustomElementFn();\n }\n\n if (inputs) {\n proxyInputs(cls, inputs);\n }\n if (methods) {\n proxyMethods(cls, methods);\n }\n return cls;\n };\n return decorator;\n}\n","/* tslint:disable */\n/* auto-generated angular directive proxies */\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, NgZone } from '@angular/core';\n\nimport { ProxyCmp } from './angular-component-lib/utils';\n\nimport { Components } from 'kritzel-stencil';\n\n\n@ProxyCmp({\n})\n@Component({\n selector: 'kritzel-controls',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: [],\n})\nexport class KritzelControls {\n protected el: HTMLKritzelControlsElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nexport declare interface KritzelControls extends Components.KritzelControls {}\n\n\n@ProxyCmp({\n})\n@Component({\n selector: 'kritzel-editor',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: [],\n})\nexport class KritzelEditor {\n protected el: HTMLKritzelEditorElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nexport declare interface KritzelEditor extends Components.KritzelEditor {}\n\n\n@ProxyCmp({\n inputs: ['activeTool'],\n methods: ['changeActiveTool']\n})\n@Component({\n selector: 'kritzel-engine',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['activeTool'],\n})\nexport class KritzelEngine {\n protected el: HTMLKritzelEngineElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nexport declare interface KritzelEngine extends Components.KritzelEngine {}\n\n\n@ProxyCmp({\n inputs: ['label', 'name']\n})\n@Component({\n selector: 'kritzel-icon',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['label', 'name'],\n})\nexport class KritzelIcon {\n protected el: HTMLKritzelIconElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nexport declare interface KritzelIcon extends Components.KritzelIcon {}\n\n\n","\nimport * as d from './proxy';\n\nexport const DIRECTIVES = [\n d.KritzelControls,\n d.KritzelEditor,\n d.KritzelEngine,\n d.KritzelIcon\n];\n","import { APP_INITIALIZER, NgModule } from '@angular/core';\r\nimport { defineCustomElements } from 'kritzel-stencil/loader';\r\n\r\n@NgModule({\r\n providers: [\r\n {\r\n provide: APP_INITIALIZER,\r\n useFactory: () => defineCustomElements,\r\n multi: true,\r\n },\r\n ],\r\n})\r\nexport class LibModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["d.KritzelControls","d.KritzelEditor","d.KritzelEngine","d.KritzelIcon"],"mappings":";;;;;;AAAA;AACA;AAGO,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,MAAgB,KAAI;AACxD,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS;AAC/B,IAAA,MAAM,CAAC,OAAO,C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IAAAC,aAAe;AACf,IAAAC,aAAe;AACf,IAAAC;;;MCKW,SAAS,CAAA;8GAAT,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAT,SAAS,EAAA,CAAA,CAAA;AAAT,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,SAAS,EART,SAAA,EAAA;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,eAAe;AACxB,gBAAA,UAAU,EAAE,MAAM,oBAAoB;AACtC,gBAAA,KAAK,EAAE,IAAI;AACZ,aAAA;AACF,SAAA,EAAA,CAAA,CAAA;;2FAEU,SAAS,EAAA,UAAA,EAAA,CAAA;kBATrB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,eAAe;AACxB,4BAAA,UAAU,EAAE,MAAM,oBAAoB;AACtC,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA;AACF,iBAAA;;;ACXD;;AAEG;;;;"}
1
+ {"version":3,"file":"kritzel-angular.mjs","sources":["../../../projects/lib/src/lib/angular-component-lib/utils.ts","../../../projects/lib/src/lib/proxy.ts","../../../projects/lib/src/lib/index.ts","../../../projects/lib/src/lib/lib.module.ts","../../../projects/lib/src/kritzel-angular.ts"],"sourcesContent":["/* eslint-disable */\n/* tslint:disable */\nimport { fromEvent } from 'rxjs';\n\nexport const proxyInputs = (Cmp: any, inputs: string[]) => {\n const Prototype = Cmp.prototype;\n inputs.forEach((item) => {\n Object.defineProperty(Prototype, item, {\n get() {\n return this.el[item];\n },\n set(val: any) {\n this.z.runOutsideAngular(() => (this.el[item] = val));\n },\n /**\n * In the event that proxyInputs is called\n * multiple times re-defining these inputs\n * will cause an error to be thrown. As a result\n * we set configurable: true to indicate these\n * properties can be changed.\n */\n configurable: true,\n });\n });\n};\n\nexport const proxyMethods = (Cmp: any, methods: string[]) => {\n const Prototype = Cmp.prototype;\n methods.forEach((methodName) => {\n Prototype[methodName] = function () {\n const args = arguments;\n return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));\n };\n });\n};\n\nexport const proxyOutputs = (instance: any, el: any, events: string[]) => {\n events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));\n};\n\nexport const defineCustomElement = (tagName: string, customElement: any) => {\n if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\n\n// tslint:disable-next-line: only-arrow-functions\nexport function ProxyCmp(opts: { defineCustomElementFn?: () => void; inputs?: any; methods?: any }) {\n const decorator = function (cls: any) {\n const { defineCustomElementFn, inputs, methods } = opts;\n\n if (defineCustomElementFn !== undefined) {\n defineCustomElementFn();\n }\n\n if (inputs) {\n proxyInputs(cls, inputs);\n }\n if (methods) {\n proxyMethods(cls, methods);\n }\n return cls;\n };\n return decorator;\n}\n","/* tslint:disable */\n/* auto-generated angular directive proxies */\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, NgZone } from '@angular/core';\n\nimport { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';\n\nimport { Components } from 'kritzel-stencil';\n\n\n@ProxyCmp({\n inputs: ['brushOptions', 'type']\n})\n@Component({\n selector: 'kritzel-brush-style',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['brushOptions', 'type'],\n})\nexport class KritzelBrushStyle {\n protected el: HTMLKritzelBrushStyleElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['typeChange']);\n }\n}\n\n\nexport declare interface KritzelBrushStyle extends Components.KritzelBrushStyle {\n\n typeChange: EventEmitter<CustomEvent<'pen' | 'highlighter'>>;\n}\n\n\n@ProxyCmp({\n inputs: ['size', 'value']\n})\n@Component({\n selector: 'kritzel-color',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['size', 'value'],\n})\nexport class KritzelColor {\n protected el: HTMLKritzelColorElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nexport declare interface KritzelColor extends Components.KritzelColor {}\n\n\n@ProxyCmp({\n inputs: ['colors', 'isExpanded', 'isOpaque', 'selectedColor']\n})\n@Component({\n selector: 'kritzel-color-palette',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['colors', 'isExpanded', 'isOpaque', 'selectedColor'],\n})\nexport class KritzelColorPalette {\n protected el: HTMLKritzelColorPaletteElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['colorChange']);\n }\n}\n\n\nexport declare interface KritzelColorPalette extends Components.KritzelColorPalette {\n\n colorChange: EventEmitter<CustomEvent<string>>;\n}\n\n\n@ProxyCmp({\n inputs: ['items']\n})\n@Component({\n selector: 'kritzel-context-menu',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['items'],\n})\nexport class KritzelContextMenu {\n protected el: HTMLKritzelContextMenuElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['actionSelected', 'close']);\n }\n}\n\n\nimport type { ContextMenuItem as IKritzelContextMenuContextMenuItem } from 'kritzel-stencil';\n\nexport declare interface KritzelContextMenu extends Components.KritzelContextMenu {\n\n actionSelected: EventEmitter<CustomEvent<IKritzelContextMenuContextMenuItem>>;\n\n close: EventEmitter<CustomEvent<void>>;\n}\n\n\n@ProxyCmp({\n inputs: ['isExpanded', 'tool']\n})\n@Component({\n selector: 'kritzel-control-brush-config',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['isExpanded', 'tool'],\n})\nexport class KritzelControlBrushConfig {\n protected el: HTMLKritzelControlBrushConfigElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['toolChange']);\n }\n}\n\n\nimport type { KritzelBrushTool as IKritzelControlBrushConfigKritzelBrushTool } from 'kritzel-stencil';\n\nexport declare interface KritzelControlBrushConfig extends Components.KritzelControlBrushConfig {\n\n toolChange: EventEmitter<CustomEvent<IKritzelControlBrushConfigKritzelBrushTool>>;\n}\n\n\n@ProxyCmp({\n inputs: ['isExpanded', 'tool']\n})\n@Component({\n selector: 'kritzel-control-text-config',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['isExpanded', 'tool'],\n})\nexport class KritzelControlTextConfig {\n protected el: HTMLKritzelControlTextConfigElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['toolChange']);\n }\n}\n\n\nimport type { KritzelTextTool as IKritzelControlTextConfigKritzelTextTool } from 'kritzel-stencil';\n\nexport declare interface KritzelControlTextConfig extends Components.KritzelControlTextConfig {\n\n toolChange: EventEmitter<CustomEvent<IKritzelControlTextConfigKritzelTextTool>>;\n}\n\n\n@ProxyCmp({\n inputs: ['activeControl', 'controls']\n})\n@Component({\n selector: 'kritzel-controls',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['activeControl', 'controls'],\n})\nexport class KritzelControls {\n protected el: HTMLKritzelControlsElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nexport declare interface KritzelControls extends Components.KritzelControls {}\n\n\n@ProxyCmp({\n})\n@Component({\n selector: 'kritzel-cursor-trail',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: [],\n})\nexport class KritzelCursorTrail {\n protected el: HTMLKritzelCursorTrailElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nexport declare interface KritzelCursorTrail extends Components.KritzelCursorTrail {}\n\n\n@ProxyCmp({\n inputs: ['options', 'selectStyles', 'value', 'width']\n})\n@Component({\n selector: 'kritzel-dropdown',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['options', 'selectStyles', 'value', 'width'],\n})\nexport class KritzelDropdown {\n protected el: HTMLKritzelDropdownElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['valueChanged']);\n }\n}\n\n\nexport declare interface KritzelDropdown extends Components.KritzelDropdown {\n\n valueChanged: EventEmitter<CustomEvent<string>>;\n}\n\n\n@ProxyCmp({\n inputs: ['controls', 'customSvgIcons']\n})\n@Component({\n selector: 'kritzel-editor',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['controls', 'customSvgIcons'],\n})\nexport class KritzelEditor {\n protected el: HTMLKritzelEditorElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nexport declare interface KritzelEditor extends Components.KritzelEditor {}\n\n\n@ProxyCmp({\n inputs: ['activeTool', 'globalContextMenuItems', 'objectContextMenuItems'],\n methods: ['registerTool', 'changeActiveTool', 'setFocus', 'disable', 'enable', 'delete', 'copy', 'paste', 'moveToTop', 'moveToBottom', 'selectAllInViewport', 'undo', 'redo']\n})\n@Component({\n selector: 'kritzel-engine',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['activeTool', 'globalContextMenuItems', 'objectContextMenuItems'],\n})\nexport class KritzelEngine {\n protected el: HTMLKritzelEngineElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['activeToolChange']);\n }\n}\n\n\nimport type { KritzelBaseTool as IKritzelEngineKritzelBaseTool } from 'kritzel-stencil';\n\nexport declare interface KritzelEngine extends Components.KritzelEngine {\n\n activeToolChange: EventEmitter<CustomEvent<IKritzelEngineKritzelBaseTool>>;\n}\n\n\n@ProxyCmp({\n inputs: ['color', 'fontFamily', 'size']\n})\n@Component({\n selector: 'kritzel-font',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['color', 'fontFamily', 'size'],\n})\nexport class KritzelFont {\n protected el: HTMLKritzelFontElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nexport declare interface KritzelFont extends Components.KritzelFont {}\n\n\n@ProxyCmp({\n inputs: ['fontOptions', 'selectedFontFamily']\n})\n@Component({\n selector: 'kritzel-font-family',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['fontOptions', 'selectedFontFamily'],\n})\nexport class KritzelFontFamily {\n protected el: HTMLKritzelFontFamilyElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['fontFamilyChange']);\n }\n}\n\n\nexport declare interface KritzelFontFamily extends Components.KritzelFontFamily {\n\n fontFamilyChange: EventEmitter<CustomEvent<string>>;\n}\n\n\n@ProxyCmp({\n inputs: ['fontFamily', 'selectedSize', 'sizes']\n})\n@Component({\n selector: 'kritzel-font-size',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['fontFamily', 'selectedSize', 'sizes'],\n})\nexport class KritzelFontSize {\n protected el: HTMLKritzelFontSizeElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['sizeChange']);\n }\n}\n\n\nexport declare interface KritzelFontSize extends Components.KritzelFontSize {\n\n sizeChange: EventEmitter<CustomEvent<number>>;\n}\n\n\n@ProxyCmp({\n inputs: ['label', 'name', 'size']\n})\n@Component({\n selector: 'kritzel-icon',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['label', 'name', 'size'],\n})\nexport class KritzelIcon {\n protected el: HTMLKritzelIconElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nexport declare interface KritzelIcon extends Components.KritzelIcon {}\n\n\n@ProxyCmp({\n inputs: ['selectedSize', 'sizes']\n})\n@Component({\n selector: 'kritzel-stroke-size',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['selectedSize', 'sizes'],\n})\nexport class KritzelStrokeSize {\n protected el: HTMLKritzelStrokeSizeElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['sizeChange']);\n }\n}\n\n\nexport declare interface KritzelStrokeSize extends Components.KritzelStrokeSize {\n\n sizeChange: EventEmitter<CustomEvent<number>>;\n}\n\n\n@ProxyCmp({\n})\n@Component({\n selector: 'kritzel-utility-panel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: [],\n})\nexport class KritzelUtilityPanel {\n protected el: HTMLKritzelUtilityPanelElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['undo', 'redo', 'delete']);\n }\n}\n\n\nexport declare interface KritzelUtilityPanel extends Components.KritzelUtilityPanel {\n\n undo: EventEmitter<CustomEvent<void>>;\n\n redo: EventEmitter<CustomEvent<void>>;\n\n delete: EventEmitter<CustomEvent<void>>;\n}\n\n\n","\nimport * as d from './proxy';\n\nexport const DIRECTIVES = [\n d.KritzelBrushStyle,\n d.KritzelColor,\n d.KritzelColorPalette,\n d.KritzelContextMenu,\n d.KritzelControlBrushConfig,\n d.KritzelControlTextConfig,\n d.KritzelControls,\n d.KritzelCursorTrail,\n d.KritzelDropdown,\n d.KritzelEditor,\n d.KritzelEngine,\n d.KritzelFont,\n d.KritzelFontFamily,\n d.KritzelFontSize,\n d.KritzelIcon,\n d.KritzelStrokeSize,\n d.KritzelUtilityPanel\n];\n","import { APP_INITIALIZER, NgModule } from '@angular/core';\r\nimport { defineCustomElements } from 'kritzel-stencil/loader';\r\n\r\n@NgModule({\r\n providers: [\r\n {\r\n provide: APP_INITIALIZER,\r\n useFactory: () => defineCustomElements,\r\n multi: true,\r\n },\r\n ],\r\n})\r\nexport class LibModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["d.KritzelBrushStyle","d.KritzelColor","d.KritzelColorPalette","d.KritzelContextMenu","d.KritzelControlBrushConfig","d.KritzelControlTextConfig","d.KritzelControls","d.KritzelCursorTrail","d.KritzelDropdown","d.KritzelEditor","d.KritzelEngine","d.KritzelFont","d.KritzelFontFamily","d.KritzelFontSize","d.KritzelIcon","d.KritzelStrokeSize","d.KritzelUtilityPanel"],"mappings":";;;;;;AAAA;AACA;AAGO,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,MAAgB,KAAI;AACxD,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS;AAC/B,IAAA,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AACtB,QAAA,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI,EAAE;YACrC,GAAG,GAAA;AACD,gBAAA,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;aACrB;AACD,YAAA,GAAG,CAAC,GAAQ,EAAA;AACV,gBAAA,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;aACtD;AACD;;;;;;AAMG;AACH,YAAA,YAAY,EAAE,IAAI;AACnB,SAAA,CAAC;AACJ,KAAC,CAAC;AACJ,CAAC;AAEM,MAAM,YAAY,GAAG,CAAC,GAAQ,EAAE,OAAiB,KAAI;AAC1D,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS;AAC/B,IAAA,OAAO,CAAC,OAAO,CAAC,CAAC,UAAU,KAAI;QAC7B,SAAS,CAAC,UAAU,CAAC,GAAG,YAAA;YACtB,MAAM,IAAI,GAAG,SAAS;YACtB,OAAO,IAAI,C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A,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,SAAS,EART,SAAA,EAAA;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,eAAe;AACxB,gBAAA,UAAU,EAAE,MAAM,oBAAoB;AACtC,gBAAA,KAAK,EAAE,IAAI;AACZ,aAAA;AACF,SAAA,EAAA,CAAA,CAAA;;4FAEU,SAAS,EAAA,UAAA,EAAA,CAAA;kBATrB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,eAAe;AACxB,4BAAA,UAAU,EAAE,MAAM,oBAAoB;AACtC,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA;AACF,iBAAA;;;ACXD;;AAEG;;;;"}
package/lib/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import * as d from './proxy';
2
- export declare const DIRECTIVES: (typeof d.KritzelControls | typeof d.KritzelEditor | typeof d.KritzelEngine | typeof d.KritzelIcon)[];
2
+ export declare const DIRECTIVES: (typeof d.KritzelBrushStyle | typeof d.KritzelColor | typeof d.KritzelColorPalette | typeof d.KritzelContextMenu | typeof d.KritzelControlBrushConfig | typeof d.KritzelControlTextConfig | typeof d.KritzelControls | typeof d.KritzelCursorTrail | typeof d.KritzelDropdown | typeof d.KritzelEditor | typeof d.KritzelEngine | typeof d.KritzelFont | typeof d.KritzelFontFamily | typeof d.KritzelFontSize | typeof d.KritzelIcon | typeof d.KritzelStrokeSize | typeof d.KritzelUtilityPanel)[];
package/lib/proxy.d.ts CHANGED
@@ -1,21 +1,104 @@
1
- import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
2
2
  import { Components } from 'kritzel-stencil';
3
+ import type { ContextMenuItem as IKritzelContextMenuContextMenuItem } from 'kritzel-stencil';
4
+ import type { KritzelBrushTool as IKritzelControlBrushConfigKritzelBrushTool } from 'kritzel-stencil';
5
+ import type { KritzelTextTool as IKritzelControlTextConfigKritzelTextTool } from 'kritzel-stencil';
6
+ import type { KritzelBaseTool as IKritzelEngineKritzelBaseTool } from 'kritzel-stencil';
3
7
  import * as i0 from "@angular/core";
8
+ export declare class KritzelBrushStyle {
9
+ protected z: NgZone;
10
+ protected el: HTMLKritzelBrushStyleElement;
11
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<KritzelBrushStyle, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelBrushStyle, "kritzel-brush-style", never, { "brushOptions": { "alias": "brushOptions"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], true, never>;
14
+ }
15
+ export declare interface KritzelBrushStyle extends Components.KritzelBrushStyle {
16
+ typeChange: EventEmitter<CustomEvent<'pen' | 'highlighter'>>;
17
+ }
18
+ export declare class KritzelColor {
19
+ protected z: NgZone;
20
+ protected el: HTMLKritzelColorElement;
21
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<KritzelColor, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelColor, "kritzel-color", never, { "size": { "alias": "size"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, never>;
24
+ }
25
+ export declare interface KritzelColor extends Components.KritzelColor {
26
+ }
27
+ export declare class KritzelColorPalette {
28
+ protected z: NgZone;
29
+ protected el: HTMLKritzelColorPaletteElement;
30
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<KritzelColorPalette, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelColorPalette, "kritzel-color-palette", never, { "colors": { "alias": "colors"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "isOpaque": { "alias": "isOpaque"; "required": false; }; "selectedColor": { "alias": "selectedColor"; "required": false; }; }, {}, never, ["*"], true, never>;
33
+ }
34
+ export declare interface KritzelColorPalette extends Components.KritzelColorPalette {
35
+ colorChange: EventEmitter<CustomEvent<string>>;
36
+ }
37
+ export declare class KritzelContextMenu {
38
+ protected z: NgZone;
39
+ protected el: HTMLKritzelContextMenuElement;
40
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<KritzelContextMenu, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelContextMenu, "kritzel-context-menu", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, ["*"], true, never>;
43
+ }
44
+ export declare interface KritzelContextMenu extends Components.KritzelContextMenu {
45
+ actionSelected: EventEmitter<CustomEvent<IKritzelContextMenuContextMenuItem>>;
46
+ close: EventEmitter<CustomEvent<void>>;
47
+ }
48
+ export declare class KritzelControlBrushConfig {
49
+ protected z: NgZone;
50
+ protected el: HTMLKritzelControlBrushConfigElement;
51
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<KritzelControlBrushConfig, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelControlBrushConfig, "kritzel-control-brush-config", never, { "isExpanded": { "alias": "isExpanded"; "required": false; }; "tool": { "alias": "tool"; "required": false; }; }, {}, never, ["*"], true, never>;
54
+ }
55
+ export declare interface KritzelControlBrushConfig extends Components.KritzelControlBrushConfig {
56
+ toolChange: EventEmitter<CustomEvent<IKritzelControlBrushConfigKritzelBrushTool>>;
57
+ }
58
+ export declare class KritzelControlTextConfig {
59
+ protected z: NgZone;
60
+ protected el: HTMLKritzelControlTextConfigElement;
61
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
62
+ static ɵfac: i0.ɵɵFactoryDeclaration<KritzelControlTextConfig, never>;
63
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelControlTextConfig, "kritzel-control-text-config", never, { "isExpanded": { "alias": "isExpanded"; "required": false; }; "tool": { "alias": "tool"; "required": false; }; }, {}, never, ["*"], true, never>;
64
+ }
65
+ export declare interface KritzelControlTextConfig extends Components.KritzelControlTextConfig {
66
+ toolChange: EventEmitter<CustomEvent<IKritzelControlTextConfigKritzelTextTool>>;
67
+ }
4
68
  export declare class KritzelControls {
5
69
  protected z: NgZone;
6
70
  protected el: HTMLKritzelControlsElement;
7
71
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
8
72
  static ɵfac: i0.ɵɵFactoryDeclaration<KritzelControls, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<KritzelControls, "kritzel-controls", never, {}, {}, never, ["*"], true, never>;
73
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelControls, "kritzel-controls", never, { "activeControl": { "alias": "activeControl"; "required": false; }; "controls": { "alias": "controls"; "required": false; }; }, {}, never, ["*"], true, never>;
10
74
  }
11
75
  export declare interface KritzelControls extends Components.KritzelControls {
12
76
  }
77
+ export declare class KritzelCursorTrail {
78
+ protected z: NgZone;
79
+ protected el: HTMLKritzelCursorTrailElement;
80
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<KritzelCursorTrail, never>;
82
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelCursorTrail, "kritzel-cursor-trail", never, {}, {}, never, ["*"], true, never>;
83
+ }
84
+ export declare interface KritzelCursorTrail extends Components.KritzelCursorTrail {
85
+ }
86
+ export declare class KritzelDropdown {
87
+ protected z: NgZone;
88
+ protected el: HTMLKritzelDropdownElement;
89
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<KritzelDropdown, never>;
91
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelDropdown, "kritzel-dropdown", never, { "options": { "alias": "options"; "required": false; }; "selectStyles": { "alias": "selectStyles"; "required": false; }; "value": { "alias": "value"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, {}, never, ["*"], true, never>;
92
+ }
93
+ export declare interface KritzelDropdown extends Components.KritzelDropdown {
94
+ valueChanged: EventEmitter<CustomEvent<string>>;
95
+ }
13
96
  export declare class KritzelEditor {
14
97
  protected z: NgZone;
15
98
  protected el: HTMLKritzelEditorElement;
16
99
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
17
100
  static ɵfac: i0.ɵɵFactoryDeclaration<KritzelEditor, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<KritzelEditor, "kritzel-editor", never, {}, {}, never, ["*"], true, never>;
101
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelEditor, "kritzel-editor", never, { "controls": { "alias": "controls"; "required": false; }; "customSvgIcons": { "alias": "customSvgIcons"; "required": false; }; }, {}, never, ["*"], true, never>;
19
102
  }
20
103
  export declare interface KritzelEditor extends Components.KritzelEditor {
21
104
  }
@@ -24,16 +107,68 @@ export declare class KritzelEngine {
24
107
  protected el: HTMLKritzelEngineElement;
25
108
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
26
109
  static ɵfac: i0.ɵɵFactoryDeclaration<KritzelEngine, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<KritzelEngine, "kritzel-engine", never, { "activeTool": { "alias": "activeTool"; "required": false; }; }, {}, never, ["*"], true, never>;
110
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelEngine, "kritzel-engine", never, { "activeTool": { "alias": "activeTool"; "required": false; }; "globalContextMenuItems": { "alias": "globalContextMenuItems"; "required": false; }; "objectContextMenuItems": { "alias": "objectContextMenuItems"; "required": false; }; }, {}, never, ["*"], true, never>;
28
111
  }
29
112
  export declare interface KritzelEngine extends Components.KritzelEngine {
113
+ activeToolChange: EventEmitter<CustomEvent<IKritzelEngineKritzelBaseTool>>;
114
+ }
115
+ export declare class KritzelFont {
116
+ protected z: NgZone;
117
+ protected el: HTMLKritzelFontElement;
118
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
119
+ static ɵfac: i0.ɵɵFactoryDeclaration<KritzelFont, never>;
120
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelFont, "kritzel-font", never, { "color": { "alias": "color"; "required": false; }; "fontFamily": { "alias": "fontFamily"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, ["*"], true, never>;
121
+ }
122
+ export declare interface KritzelFont extends Components.KritzelFont {
123
+ }
124
+ export declare class KritzelFontFamily {
125
+ protected z: NgZone;
126
+ protected el: HTMLKritzelFontFamilyElement;
127
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
128
+ static ɵfac: i0.ɵɵFactoryDeclaration<KritzelFontFamily, never>;
129
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelFontFamily, "kritzel-font-family", never, { "fontOptions": { "alias": "fontOptions"; "required": false; }; "selectedFontFamily": { "alias": "selectedFontFamily"; "required": false; }; }, {}, never, ["*"], true, never>;
130
+ }
131
+ export declare interface KritzelFontFamily extends Components.KritzelFontFamily {
132
+ fontFamilyChange: EventEmitter<CustomEvent<string>>;
133
+ }
134
+ export declare class KritzelFontSize {
135
+ protected z: NgZone;
136
+ protected el: HTMLKritzelFontSizeElement;
137
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
138
+ static ɵfac: i0.ɵɵFactoryDeclaration<KritzelFontSize, never>;
139
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelFontSize, "kritzel-font-size", never, { "fontFamily": { "alias": "fontFamily"; "required": false; }; "selectedSize": { "alias": "selectedSize"; "required": false; }; "sizes": { "alias": "sizes"; "required": false; }; }, {}, never, ["*"], true, never>;
140
+ }
141
+ export declare interface KritzelFontSize extends Components.KritzelFontSize {
142
+ sizeChange: EventEmitter<CustomEvent<number>>;
30
143
  }
31
144
  export declare class KritzelIcon {
32
145
  protected z: NgZone;
33
146
  protected el: HTMLKritzelIconElement;
34
147
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
35
148
  static ɵfac: i0.ɵɵFactoryDeclaration<KritzelIcon, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<KritzelIcon, "kritzel-icon", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"], true, never>;
149
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelIcon, "kritzel-icon", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, ["*"], true, never>;
37
150
  }
38
151
  export declare interface KritzelIcon extends Components.KritzelIcon {
39
152
  }
153
+ export declare class KritzelStrokeSize {
154
+ protected z: NgZone;
155
+ protected el: HTMLKritzelStrokeSizeElement;
156
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
157
+ static ɵfac: i0.ɵɵFactoryDeclaration<KritzelStrokeSize, never>;
158
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelStrokeSize, "kritzel-stroke-size", never, { "selectedSize": { "alias": "selectedSize"; "required": false; }; "sizes": { "alias": "sizes"; "required": false; }; }, {}, never, ["*"], true, never>;
159
+ }
160
+ export declare interface KritzelStrokeSize extends Components.KritzelStrokeSize {
161
+ sizeChange: EventEmitter<CustomEvent<number>>;
162
+ }
163
+ export declare class KritzelUtilityPanel {
164
+ protected z: NgZone;
165
+ protected el: HTMLKritzelUtilityPanelElement;
166
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
167
+ static ɵfac: i0.ɵɵFactoryDeclaration<KritzelUtilityPanel, never>;
168
+ static ɵcmp: i0.ɵɵComponentDeclaration<KritzelUtilityPanel, "kritzel-utility-panel", never, {}, {}, never, ["*"], true, never>;
169
+ }
170
+ export declare interface KritzelUtilityPanel extends Components.KritzelUtilityPanel {
171
+ undo: EventEmitter<CustomEvent<void>>;
172
+ redo: EventEmitter<CustomEvent<void>>;
173
+ delete: EventEmitter<CustomEvent<void>>;
174
+ }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "kritzel-angular",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.6",
6
6
  "@angular/core": "^19.2.6",
7
- "kritzel-stencil": "^0.0.41"
7
+ "kritzel-stencil": "^0.0.43"
8
8
  },
9
9
  "dependencies": {
10
10
  "tslib": "^2.3.0"