kritzel-angular 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # Lib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project lib`.
8
- > Note: Don't forget to add `--project lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build lib`, go to the dist folder `cd dist/lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # Lib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project lib`.
8
+ > Note: Don't forget to add `--project lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build lib`, go to the dist folder `cd dist/lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -0,0 +1,37 @@
1
+ import { APP_INITIALIZER, NgModule } from '@angular/core';
2
+ import { DIRECTIVES } from '.';
3
+ import { defineCustomElements } from '@kritzel/stencil/loader';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "./proxy";
6
+ export function initializeApp() {
7
+ return async () => defineCustomElements(window);
8
+ }
9
+ export class LibModule {
10
+ static forRoot() {
11
+ return {
12
+ ngModule: LibModule,
13
+ providers: [
14
+ {
15
+ provide: APP_INITIALIZER,
16
+ useFactory: initializeApp,
17
+ multi: true
18
+ }
19
+ ]
20
+ };
21
+ }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: LibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
23
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: LibModule, declarations: [i1.MyButton, i1.MyComponent, i1.MyList, i1.MyTitle], exports: [i1.MyButton, i1.MyComponent, i1.MyList, i1.MyTitle] }); }
24
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: LibModule }); }
25
+ }
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: LibModule, decorators: [{
27
+ type: NgModule,
28
+ args: [{
29
+ declarations: [
30
+ ...DIRECTIVES
31
+ ],
32
+ exports: [
33
+ ...DIRECTIVES
34
+ ],
35
+ }]
36
+ }] });
37
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGliLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2xpYi9zcmMvbGliL2xpYi5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGVBQWUsRUFBdUIsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQy9FLE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dXN0b21FbGVtZW50cyh3aW5kb3cpO1xufVxuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtcbiAgICAuLi5ESVJFQ1RJVkVTXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICAuLi5ESVJFQ1RJVkVTXG4gIF0sXG59KVxuZXhwb3J0IGNsYXNzIExpYk1vZHVsZSB7XG5cbiAgc3RhdGljIGZvclJvb3QoKTogTW9kdWxlV2l0aFByb3ZpZGVyczxMaWJNb2R1bGU+IHtcblxuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogTGliTW9kdWxlLFxuICAgICAgcHJvdmlkZXJzOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBBUFBfSU5JVElBTElaRVIsXG4gICAgICAgICAgdXNlRmFjdG9yeTogaW5pdGlhbGl6ZUFwcCxcbiAgICAgICAgICBtdWx0aTogdHJ1ZVxuICAgICAgICB9XG4gICAgICBdXG4gICAgfTtcbiAgfVxufVxuIl19
@@ -1,4 +1,4 @@
1
1
  export { DIRECTIVES } from './lib/index';
2
2
  export * from './lib/proxy';
3
- export * from './lib/core.module';
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2xpYi9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQ3pDLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsbUJBQW1CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBESVJFQ1RJVkVTIH0gZnJvbSAnLi9saWIvaW5kZXgnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9wcm94eSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvcmUubW9kdWxlJztcclxuIl19
3
+ export * from './lib/lib.module';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2xpYi9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQ3pDLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBESVJFQ1RJVkVTIH0gZnJvbSAnLi9saWIvaW5kZXgnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcHJveHknO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbGliLm1vZHVsZSc7XG4iXX0=
@@ -1,7 +1,8 @@
1
1
  import { __decorate } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
+ import { Component, ChangeDetectionStrategy, APP_INITIALIZER, NgModule } from '@angular/core';
4
4
  import { fromEvent } from 'rxjs';
5
+ import { defineCustomElements } from '@kritzel/stencil/loader';
5
6
 
6
7
  /* eslint-disable */
7
8
  /* tslint:disable */
@@ -161,12 +162,27 @@ const DIRECTIVES = [
161
162
  MyTitle
162
163
  ];
163
164
 
164
- class CoreModule {
165
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
166
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CoreModule, declarations: [MyButton, MyComponent, MyList, MyTitle], exports: [MyButton, MyComponent, MyList, MyTitle] }); }
167
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CoreModule }); }
165
+ function initializeApp() {
166
+ return async () => defineCustomElements(window);
168
167
  }
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CoreModule, decorators: [{
168
+ class LibModule {
169
+ static forRoot() {
170
+ return {
171
+ ngModule: LibModule,
172
+ providers: [
173
+ {
174
+ provide: APP_INITIALIZER,
175
+ useFactory: initializeApp,
176
+ multi: true
177
+ }
178
+ ]
179
+ };
180
+ }
181
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: LibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
182
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: LibModule, declarations: [MyButton, MyComponent, MyList, MyTitle], exports: [MyButton, MyComponent, MyList, MyTitle] }); }
183
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: LibModule }); }
184
+ }
185
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: LibModule, decorators: [{
170
186
  type: NgModule,
171
187
  args: [{
172
188
  declarations: [
@@ -174,7 +190,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
174
190
  ],
175
191
  exports: [
176
192
  ...DIRECTIVES
177
- ]
193
+ ],
178
194
  }]
179
195
  }] });
180
196
 
@@ -182,5 +198,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
182
198
  * Generated bundle index. Do not edit.
183
199
  */
184
200
 
185
- export { CoreModule, DIRECTIVES, MyButton, MyComponent, MyList, MyTitle };
201
+ export { DIRECTIVES, LibModule, MyButton, MyComponent, MyList, MyTitle, initializeApp };
186
202
  //# 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/core.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: 'my-button',\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 MyButton {\n protected el: 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 MyButton extends Components.MyButton {}\n\n\n@ProxyCmp({\n inputs: ['age', 'first', 'last']\n})\n@Component({\n selector: 'my-component',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['age', 'first', 'last'],\n})\nexport class MyComponent {\n protected el: 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 MyComponent extends Components.MyComponent {}\n\n\n@ProxyCmp({\n inputs: ['items']\n})\n@Component({\n selector: 'my-list',\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 MyList {\n protected el: 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 MyList extends Components.MyList {}\n\n\n@ProxyCmp({\n})\n@Component({\n selector: 'my-title',\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 MyTitle {\n protected el: 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 MyTitle extends Components.MyTitle {}\n\n\n","\nimport * as d from './proxy';\n\nexport const DIRECTIVES = [\n d.MyButton,\n d.MyComponent,\n d.MyList,\n d.MyTitle\n];\n","import { NgModule } from '@angular/core';\r\nimport { DIRECTIVES } from '.';\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n ...DIRECTIVES\r\n ],\r\n exports: [\r\n ...DIRECTIVES\r\n ]\r\n})\r\nexport class CoreModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["d.MyButton","d.MyComponent","d.MyList","d.MyTitle","i1.MyButton","i1.MyComponent","i1.MyList","i1.MyTitle"],"mappings":";;;;;AAAA;AACA;AAGO,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,MAAgB,KAAI;AACxD,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;AAChC,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,CAAC;aACtB;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,CAAC;aACvD;AACD;;;;;;AAMG;AACH,YAAA,YAAY,EAAE,IAAI;AACnB,SAAA,CAAC,CAAC;AACL,KAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEK,MAAM,YAAY,GAAG,CAAC,GAAQ,EAAE,OAAiB,KAAI;AAC1D,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;AAChC,IAAA,OAAO,CAAC,OAAO,CAAC,CAAC,U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AAA,CAAA,EAAA,OAAA,EAAA,CAAAH,QAAA,EAAAC,WAAA,EAAAC,MAAA,EAAAC,OAAA,CAAA,EAAA,CAAA,CAAA,EAAA;gHAAV,UAAU,EAAA,CAAA,CAAA,EAAA;;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBARtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;AACZ,wBAAA,GAAG,UAAU;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;AACP,wBAAA,GAAG,UAAU;AACd,qBAAA;AACF,iBAAA,CAAA;;;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, 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: 'my-button',\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 MyButton {\n protected el: 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 MyButton extends Components.MyButton {}\n\n\n@ProxyCmp({\n inputs: ['age', 'first', 'last']\n})\n@Component({\n selector: 'my-component',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['age', 'first', 'last'],\n})\nexport class MyComponent {\n protected el: 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 MyComponent extends Components.MyComponent {}\n\n\n@ProxyCmp({\n inputs: ['items']\n})\n@Component({\n selector: 'my-list',\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 MyList {\n protected el: 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 MyList extends Components.MyList {}\n\n\n@ProxyCmp({\n})\n@Component({\n selector: 'my-title',\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 MyTitle {\n protected el: 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 MyTitle extends Components.MyTitle {}\n\n\n","\nimport * as d from './proxy';\n\nexport const DIRECTIVES = [\n d.MyButton,\n d.MyComponent,\n d.MyList,\n d.MyTitle\n];\n","import { APP_INITIALIZER, ModuleWithProviders, NgModule } from '@angular/core';\nimport { DIRECTIVES } from '.';\nimport { defineCustomElements } from '@kritzel/stencil/loader';\n\nexport function initializeApp(): () => Promise<void> {\n return async () => defineCustomElements(window);\n}\n\n@NgModule({\n declarations: [\n ...DIRECTIVES\n ],\n exports: [\n ...DIRECTIVES\n ],\n})\nexport class LibModule {\n\n static forRoot(): ModuleWithProviders<LibModule> {\n\n return {\n ngModule: LibModule,\n providers: [\n {\n provide: APP_INITIALIZER,\n useFactory: initializeApp,\n multi: true\n }\n ]\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["d.MyButton","d.MyComponent","d.MyList","d.MyTitle","i1.MyButton","i1.MyComponent","i1.MyList","i1.MyTitle"],"mappings":";;;;;;AAAA;AACA;AAGO,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,MAAgB,KAAI;AACxD,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;AAChC,IAAA,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AACtB,QAAA,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI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;;;;"}
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
- /// <amd-module name="@kritzel/angular" />
4
+ /// <amd-module name="kritzel-angular" />
5
5
  export * from './public-api';
@@ -0,0 +1,10 @@
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "./proxy";
4
+ export declare function initializeApp(): () => Promise<void>;
5
+ export declare class LibModule {
6
+ static forRoot(): ModuleWithProviders<LibModule>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LibModule, [typeof i1.MyButton, typeof i1.MyComponent, typeof i1.MyList, typeof i1.MyTitle], never, [typeof i1.MyButton, typeof i1.MyComponent, typeof i1.MyList, typeof i1.MyTitle]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<LibModule>;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kritzel-angular",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.10",
6
6
  "@angular/core": "^18.2.10"
@@ -22,4 +22,4 @@
22
22
  "default": "./fesm2022/kritzel-angular.mjs"
23
23
  }
24
24
  }
25
- }
25
+ }
package/public-api.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { DIRECTIVES } from './lib/index';
2
2
  export * from './lib/proxy';
3
- export * from './lib/core.module';
3
+ export * from './lib/lib.module';
@@ -1,21 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { DIRECTIVES } from '.';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./proxy";
5
- export class CoreModule {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CoreModule, declarations: [i1.MyButton, i1.MyComponent, i1.MyList, i1.MyTitle], exports: [i1.MyButton, i1.MyComponent, i1.MyList, i1.MyTitle] }); }
8
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CoreModule }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CoreModule, decorators: [{
11
- type: NgModule,
12
- args: [{
13
- declarations: [
14
- ...DIRECTIVES
15
- ],
16
- exports: [
17
- ...DIRECTIVES
18
- ]
19
- }]
20
- }] });
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9saWIvc3JjL2xpYi9jb3JlLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxHQUFHLENBQUM7OztBQVcvQixNQUFNLE9BQU8sVUFBVTsrR0FBVixVQUFVO2dIQUFWLFVBQVU7Z0hBQVYsVUFBVTs7NEZBQVYsVUFBVTtrQkFSdEIsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUU7d0JBQ1osR0FBRyxVQUFVO3FCQUNkO29CQUNELE9BQU8sRUFBRTt3QkFDUCxHQUFHLFVBQVU7cUJBQ2Q7aUJBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5pbXBvcnQgeyBESVJFQ1RJVkVTIH0gZnJvbSAnLic7XHJcblxyXG5cclxuQE5nTW9kdWxlKHtcclxuICBkZWNsYXJhdGlvbnM6IFtcclxuICAgIC4uLkRJUkVDVElWRVNcclxuICBdLFxyXG4gIGV4cG9ydHM6IFtcclxuICAgIC4uLkRJUkVDVElWRVNcclxuICBdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBDb3JlTW9kdWxlIHsgfVxyXG4iXX0=
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./proxy";
3
- export declare class CoreModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<CoreModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, [typeof i1.MyButton, typeof i1.MyComponent, typeof i1.MyList, typeof i1.MyTitle], never, [typeof i1.MyButton, typeof i1.MyComponent, typeof i1.MyList, typeof i1.MyTitle]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<CoreModule>;
7
- }