kritzel-angular 0.0.153 → 0.0.154
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.
|
@@ -68,11 +68,13 @@ let KritzelEditor = class KritzelEditor {
|
|
|
68
68
|
constructor(c, r, z) {
|
|
69
69
|
this.z = z;
|
|
70
70
|
this.isReady = new EventEmitter();
|
|
71
|
+
this.objectsChange = new EventEmitter();
|
|
72
|
+
this.undoStateChange = new EventEmitter();
|
|
71
73
|
c.detach();
|
|
72
74
|
this.el = r.nativeElement;
|
|
73
75
|
}
|
|
74
76
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: KritzelEditor, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
75
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: KritzelEditor, isStandalone: true, selector: "kritzel-editor", inputs: { controls: "controls", customSvgIcons: "customSvgIcons", globalContextMenuItems: "globalContextMenuItems", isControlsVisible: "isControlsVisible", isUtilityPanelVisible: "isUtilityPanelVisible", objectContextMenuItems: "objectContextMenuItems", scaleMax: "scaleMax", scaleMin: "scaleMin", syncConfig: "syncConfig" }, outputs: { isReady: "isReady" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
77
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: KritzelEditor, isStandalone: true, selector: "kritzel-editor", inputs: { controls: "controls", customSvgIcons: "customSvgIcons", globalContextMenuItems: "globalContextMenuItems", isControlsVisible: "isControlsVisible", isUtilityPanelVisible: "isUtilityPanelVisible", objectContextMenuItems: "objectContextMenuItems", scaleMax: "scaleMax", scaleMin: "scaleMin", syncConfig: "syncConfig" }, outputs: { isReady: "isReady", objectsChange: "objectsChange", undoStateChange: "undoStateChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
76
78
|
};
|
|
77
79
|
KritzelEditor = __decorate([
|
|
78
80
|
ProxyCmp({
|
|
@@ -89,10 +91,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
89
91
|
template: '<ng-content></ng-content>',
|
|
90
92
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
91
93
|
inputs: ['controls', 'customSvgIcons', 'globalContextMenuItems', 'isControlsVisible', 'isUtilityPanelVisible', 'objectContextMenuItems', 'scaleMax', 'scaleMin', 'syncConfig'],
|
|
92
|
-
outputs: ['isReady'],
|
|
94
|
+
outputs: ['isReady', 'objectsChange', 'undoStateChange'],
|
|
93
95
|
}]
|
|
94
96
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { isReady: [{
|
|
95
97
|
type: Output
|
|
98
|
+
}], objectsChange: [{
|
|
99
|
+
type: Output
|
|
100
|
+
}], undoStateChange: [{
|
|
101
|
+
type: Output
|
|
96
102
|
}] } });
|
|
97
103
|
|
|
98
104
|
const DIRECTIVES = [
|
|
@@ -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/provide.function.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, Output, NgZone } from '@angular/core';\n\nimport { ProxyCmp } from './angular-component-lib/utils';\n\nimport type { Components } from 'kritzel-stencil/dist/components';\n\nimport { defineCustomElement as defineKritzelEditor } from 'kritzel-stencil/dist/components/kritzel-editor.js';\n@ProxyCmp({\n defineCustomElementFn: defineKritzelEditor,\n inputs: ['controls', 'customSvgIcons', 'globalContextMenuItems', 'isControlsVisible', 'isUtilityPanelVisible', 'objectContextMenuItems', 'scaleMax', 'scaleMin', 'syncConfig'],\n methods: ['getObjectById', 'addObject', 'updateObject', 'removeObject', 'getSelectedObjects', 'selectObjects', 'selectAllObjectsInViewport', 'clearSelection', 'centerObjectInViewport', 'createWorkspace', 'updateWorkspace', 'deleteWorkspace', 'getWorkspaces', 'getActiveWorkspace']\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', 'globalContextMenuItems', 'isControlsVisible', 'isUtilityPanelVisible', 'objectContextMenuItems', 'scaleMax', 'scaleMin', 'syncConfig'],\n outputs: ['isReady'],\n})\nexport class KritzelEditor {\n protected el: HTMLKritzelEditorElement;\n @Output() isReady = new EventEmitter<CustomEvent<HTMLElement>>();\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 isReady: EventEmitter<CustomEvent<HTMLElement>>;\n}\n\n\n","\nimport * as d from './proxy';\n\nexport const DIRECTIVES = [\n d.KritzelEditor\n];\n","import {\r\n provideAppInitializer,\r\n EnvironmentProviders,\r\n makeEnvironmentProviders,\r\n} from '@angular/core';\r\nimport { defineCustomElements } from 'kritzel-stencil/loader';\r\n\r\nexport function provideKritzel(): EnvironmentProviders {\r\n return makeEnvironmentProviders([\r\n provideAppInitializer(() => {\r\n console.info('Initializing Kritzel custom elements');\r\n return defineCustomElements(window);\r\n }),\r\n ]);\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["defineKritzelEditor","d.KritzelEditor"],"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,OA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AU,QAAQ,CAAC,IAAyE,EAAA;IAChG,MAAM,SAAS,GAAG,UAAU,GAAQ,EAAA;QAClC,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI;AAEvD,QAAA,IAAI,qBAAqB,KAAK,SAAS,EAAE;AACvC,YAAA,qBAAqB,EAAE;QACzB;QAEA,IAAI,MAAM,EAAE;AACV,YAAA,WAAW,CAAC,GAAG,EAAE,MAAM,CAAC;QAC1B;QACA,IAAI,OAAO,EAAE;AACX,YAAA,YAAY,CAAC,GAAG,EAAE,OAAO,CAAC;QAC5B;AACA,QAAA,OAAO,GAAG;AACZ,IAAA,CAAC;AACD,IAAA,OAAO,SAAS;AAClB;;AC1CO,IAAM,aAAa,GAAnB,MAAM,aAAa,CAAA;
|
|
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/provide.function.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, Output, NgZone } from '@angular/core';\n\nimport { ProxyCmp } from './angular-component-lib/utils';\n\nimport type { Components } from 'kritzel-stencil/dist/components';\n\nimport { defineCustomElement as defineKritzelEditor } from 'kritzel-stencil/dist/components/kritzel-editor.js';\n@ProxyCmp({\n defineCustomElementFn: defineKritzelEditor,\n inputs: ['controls', 'customSvgIcons', 'globalContextMenuItems', 'isControlsVisible', 'isUtilityPanelVisible', 'objectContextMenuItems', 'scaleMax', 'scaleMin', 'syncConfig'],\n methods: ['getObjectById', 'addObject', 'updateObject', 'removeObject', 'getSelectedObjects', 'selectObjects', 'selectAllObjectsInViewport', 'clearSelection', 'centerObjectInViewport', 'createWorkspace', 'updateWorkspace', 'deleteWorkspace', 'getWorkspaces', 'getActiveWorkspace']\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', 'globalContextMenuItems', 'isControlsVisible', 'isUtilityPanelVisible', 'objectContextMenuItems', 'scaleMax', 'scaleMin', 'syncConfig'],\n outputs: ['isReady', 'objectsChange', 'undoStateChange'],\n})\nexport class KritzelEditor {\n protected el: HTMLKritzelEditorElement;\n @Output() isReady = new EventEmitter<CustomEvent<HTMLElement>>();\n @Output() objectsChange = new EventEmitter<CustomEvent<IKritzelEditorKritzelBaseObject[]>>();\n @Output() undoStateChange = new EventEmitter<CustomEvent<IKritzelEditorKritzelUndoState>>();\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nimport type { KritzelBaseObject as IKritzelEditorKritzelBaseObject } from 'kritzel-stencil/dist/components';\nimport type { KritzelUndoState as IKritzelEditorKritzelUndoState } from 'kritzel-stencil/dist/components';\n\nexport declare interface KritzelEditor extends Components.KritzelEditor {\n\n isReady: EventEmitter<CustomEvent<HTMLElement>>;\n\n objectsChange: EventEmitter<CustomEvent<IKritzelEditorKritzelBaseObject[]>>;\n\n undoStateChange: EventEmitter<CustomEvent<IKritzelEditorKritzelUndoState>>;\n}\n\n\n","\nimport * as d from './proxy';\n\nexport const DIRECTIVES = [\n d.KritzelEditor\n];\n","import {\r\n provideAppInitializer,\r\n EnvironmentProviders,\r\n makeEnvironmentProviders,\r\n} from '@angular/core';\r\nimport { defineCustomElements } from 'kritzel-stencil/loader';\r\n\r\nexport function provideKritzel(): EnvironmentProviders {\r\n return makeEnvironmentProviders([\r\n provideAppInitializer(() => {\r\n console.info('Initializing Kritzel custom elements');\r\n return defineCustomElements(window);\r\n }),\r\n ]);\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["defineKritzelEditor","d.KritzelEditor"],"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,G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O,wBAAwB,CAAC;QAC9B,qBAAqB,CAAC,MAAK;AACzB,YAAA,OAAO,CAAC,IAAI,CAAC,sCAAsC,CAAC;AACpD,YAAA,OAAO,oBAAoB,CAAC,MAAM,CAAC;AACrC,QAAA,CAAC,CAAC;AACH,KAAA,CAAC;AACJ;;ACdA;;AAEG;;;;"}
|
package/lib/proxy.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
2
2
|
import type { Components } from 'kritzel-stencil/dist/components';
|
|
3
|
+
import type { KritzelBaseObject as IKritzelEditorKritzelBaseObject } from 'kritzel-stencil/dist/components';
|
|
4
|
+
import type { KritzelUndoState as IKritzelEditorKritzelUndoState } from 'kritzel-stencil/dist/components';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class KritzelEditor {
|
|
5
7
|
protected z: NgZone;
|
|
6
8
|
protected el: HTMLKritzelEditorElement;
|
|
7
9
|
isReady: EventEmitter<CustomEvent<HTMLElement>>;
|
|
10
|
+
objectsChange: EventEmitter<CustomEvent<IKritzelEditorKritzelBaseObject<HTMLElement | SVGElement>[]>>;
|
|
11
|
+
undoStateChange: EventEmitter<CustomEvent<IKritzelEditorKritzelUndoState>>;
|
|
8
12
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
9
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<KritzelEditor, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KritzelEditor, "kritzel-editor", never, { "controls": { "alias": "controls"; "required": false; }; "customSvgIcons": { "alias": "customSvgIcons"; "required": false; }; "globalContextMenuItems": { "alias": "globalContextMenuItems"; "required": false; }; "isControlsVisible": { "alias": "isControlsVisible"; "required": false; }; "isUtilityPanelVisible": { "alias": "isUtilityPanelVisible"; "required": false; }; "objectContextMenuItems": { "alias": "objectContextMenuItems"; "required": false; }; "scaleMax": { "alias": "scaleMax"; "required": false; }; "scaleMin": { "alias": "scaleMin"; "required": false; }; "syncConfig": { "alias": "syncConfig"; "required": false; }; }, { "isReady": "isReady"; }, never, ["*"], true, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KritzelEditor, "kritzel-editor", never, { "controls": { "alias": "controls"; "required": false; }; "customSvgIcons": { "alias": "customSvgIcons"; "required": false; }; "globalContextMenuItems": { "alias": "globalContextMenuItems"; "required": false; }; "isControlsVisible": { "alias": "isControlsVisible"; "required": false; }; "isUtilityPanelVisible": { "alias": "isUtilityPanelVisible"; "required": false; }; "objectContextMenuItems": { "alias": "objectContextMenuItems"; "required": false; }; "scaleMax": { "alias": "scaleMax"; "required": false; }; "scaleMin": { "alias": "scaleMin"; "required": false; }; "syncConfig": { "alias": "syncConfig"; "required": false; }; }, { "isReady": "isReady"; "objectsChange": "objectsChange"; "undoStateChange": "undoStateChange"; }, never, ["*"], true, never>;
|
|
11
15
|
}
|
|
12
16
|
export declare interface KritzelEditor extends Components.KritzelEditor {
|
|
13
17
|
isReady: EventEmitter<CustomEvent<HTMLElement>>;
|
|
18
|
+
objectsChange: EventEmitter<CustomEvent<IKritzelEditorKritzelBaseObject[]>>;
|
|
19
|
+
undoStateChange: EventEmitter<CustomEvent<IKritzelEditorKritzelUndoState>>;
|
|
14
20
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kritzel-angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.154",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.0.0 || ^20.0.0",
|
|
6
6
|
"@angular/core": "^19.0.0 || ^20.0.0",
|
|
7
|
-
"kritzel-stencil": "^0.0.
|
|
7
|
+
"kritzel-stencil": "^0.0.154"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"tslib": "^2.3.0"
|