@gettrx/core-components-angular 0.0.2 → 0.0.3

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.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0dHJ4LWNvcmUtY29tcG9uZW50cy1hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2dldHRyeC1jb3JlLWNvbXBvbmVudHMtYW5ndWxhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
@@ -0,0 +1,21 @@
1
+ import { NgModule } from "@angular/core";
2
+ import { CommonModule } from "@angular/common";
3
+ import { applyPolyfills, defineCustomElements } from "@gettrx/core-components/loader";
4
+ import * as i0 from "@angular/core";
5
+ applyPolyfills().then(() => {
6
+ defineCustomElements();
7
+ });
8
+ export class GettrxModule {
9
+ }
10
+ GettrxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GettrxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
+ GettrxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: GettrxModule, imports: [CommonModule] });
12
+ GettrxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GettrxModule, imports: [CommonModule] });
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GettrxModule, decorators: [{
14
+ type: NgModule,
15
+ args: [{
16
+ imports: [
17
+ CommonModule
18
+ ]
19
+ }]
20
+ }] });
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0dHJ4LW1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9nZXR0cngtbW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxjQUFjLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQzs7QUFHdEYsY0FBYyxFQUFFLENBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRTtJQUN6QixvQkFBb0IsRUFBRSxDQUFDO0FBQ3pCLENBQUMsQ0FBQyxDQUFDO0FBT0gsTUFBTSxPQUFPLFlBQVk7O3lHQUFaLFlBQVk7MEdBQVosWUFBWSxZQUhuQixZQUFZOzBHQUdMLFlBQVksWUFIbkIsWUFBWTsyRkFHTCxZQUFZO2tCQUx4QixRQUFRO21CQUFDO29CQUNSLE9BQU8sRUFBRTt3QkFDTCxZQUFZO3FCQUNmO2lCQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSBcIkBhbmd1bGFyL2NvbW1vblwiO1xuaW1wb3J0IHsgYXBwbHlQb2x5ZmlsbHMsIGRlZmluZUN1c3RvbUVsZW1lbnRzIH0gZnJvbSBcIkBnZXR0cngvY29yZS1jb21wb25lbnRzL2xvYWRlclwiO1xuXG5cbmFwcGx5UG9seWZpbGxzKCkudGhlbigoKSA9PiB7XG4gIGRlZmluZUN1c3RvbUVsZW1lbnRzKCk7XG59KTtcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW1xuICAgICAgQ29tbW9uTW9kdWxlXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgR2V0dHJ4TW9kdWxlIHt9XG4iXX0=
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Public API Surface of core-components-angular
3
+ */
4
+ export * from "./lib/stencil-generated/components";
5
+ export { GettrxModule } from "./gettrx-module";
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLG9DQUFvQyxDQUFDO0FBRW5ELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgY29yZS1jb21wb25lbnRzLWFuZ3VsYXJcbiAqL1xuXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvc3RlbmNpbC1nZW5lcmF0ZWQvY29tcG9uZW50c1wiO1xuXG5leHBvcnQgeyBHZXR0cnhNb2R1bGUgfSBmcm9tIFwiLi9nZXR0cngtbW9kdWxlXCI7XG4iXX0=
@@ -0,0 +1,51 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ import { fromEvent } from 'rxjs';
4
+ export const proxyInputs = (Cmp, inputs) => {
5
+ const Prototype = Cmp.prototype;
6
+ inputs.forEach((item) => {
7
+ Object.defineProperty(Prototype, item, {
8
+ get() {
9
+ return this.el[item];
10
+ },
11
+ set(val) {
12
+ this.z.runOutsideAngular(() => (this.el[item] = val));
13
+ },
14
+ });
15
+ });
16
+ };
17
+ export const proxyMethods = (Cmp, methods) => {
18
+ const Prototype = Cmp.prototype;
19
+ methods.forEach((methodName) => {
20
+ Prototype[methodName] = function () {
21
+ const args = arguments;
22
+ return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
23
+ };
24
+ });
25
+ };
26
+ export const proxyOutputs = (instance, el, events) => {
27
+ events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
28
+ };
29
+ export const defineCustomElement = (tagName, customElement) => {
30
+ if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
31
+ customElements.define(tagName, customElement);
32
+ }
33
+ };
34
+ // tslint:disable-next-line: only-arrow-functions
35
+ export function ProxyCmp(opts) {
36
+ const decorator = function (cls) {
37
+ const { defineCustomElementFn, inputs, methods } = opts;
38
+ if (defineCustomElementFn !== undefined) {
39
+ defineCustomElementFn();
40
+ }
41
+ if (inputs) {
42
+ proxyInputs(cls, inputs);
43
+ }
44
+ if (methods) {
45
+ proxyMethods(cls, methods);
46
+ }
47
+ return cls;
48
+ };
49
+ return decorator;
50
+ }
51
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL3N0ZW5jaWwtZ2VuZXJhdGVkL2FuZ3VsYXItY29tcG9uZW50LWxpYi91dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9CO0FBQ3BCLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFFakMsTUFBTSxDQUFDLE1BQU0sV0FBVyxHQUFHLENBQUMsR0FBUSxFQUFFLE1BQWdCLEVBQUUsRUFBRTtJQUN4RCxNQUFNLFNBQVMsR0FBRyxHQUFHLENBQUMsU0FBUyxDQUFDO0lBQ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KG1ldGhvZHMpIHtcbiAgICAgIHByb3h5TWV0aG9kcyhjbHMsIG1ldGhvZHMpO1xuICAgIH1cbiAgICByZXR1cm4gY2xzO1xuICB9O1xuICByZXR1cm4gZGVjb3JhdG9yO1xufVxuIl19
@@ -0,0 +1,46 @@
1
+ import { __decorate } from "tslib";
2
+ /* tslint:disable */
3
+ /* auto-generated angular directive proxies */
4
+ import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { ProxyCmp } from './angular-component-lib/utils';
6
+ import { defineCustomElement as defineGtrButton } from '@gettrx/core-components/components/gtr-button.js';
7
+ import * as i0 from "@angular/core";
8
+ let GtrButton = class GtrButton {
9
+ constructor(c, r, z) {
10
+ this.z = z;
11
+ c.detach();
12
+ this.el = r.nativeElement;
13
+ }
14
+ };
15
+ GtrButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
16
+ GtrButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: GtrButton, selector: "gtr-button", inputs: { color: "color", disabled: "disabled", shape: "shape", size: "size", type: "type" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
17
+ GtrButton = __decorate([
18
+ ProxyCmp({
19
+ defineCustomElementFn: defineGtrButton,
20
+ inputs: ['color', 'disabled', 'shape', 'size', 'type']
21
+ })
22
+ ], GtrButton);
23
+ export { GtrButton };
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButton, decorators: [{
25
+ type: Component,
26
+ args: [{
27
+ selector: 'gtr-button',
28
+ changeDetection: ChangeDetectionStrategy.OnPush,
29
+ template: '<ng-content></ng-content>',
30
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
31
+ inputs: ['color', 'disabled', 'shape', 'size', 'type'],
32
+ }]
33
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
34
+ export class GtrButtonModule {
35
+ }
36
+ GtrButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
37
+ GtrButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: GtrButtonModule, declarations: [GtrButton], exports: [GtrButton] });
38
+ GtrButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButtonModule });
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButtonModule, decorators: [{
40
+ type: NgModule,
41
+ args: [{
42
+ declarations: [GtrButton],
43
+ exports: [GtrButton]
44
+ }]
45
+ }] });
46
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvc3RlbmNpbC1nZW5lcmF0ZWQvY29tcG9uZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLDhDQUE4QztBQUM5QyxPQUFPLEVBQUUsdUJBQXVCLEVBQXFCLFNBQVMsRUFBc0IsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXBILE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUl6RCxPQUFPLEVBQUUsbUJBQW1CLElBQUksZUFBZSxFQUFFLE1BQU0sa0RBQWtELENBQUM7O0FBWW5HLElBQU0sU0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XNzIEd0ckJ1dHRvbiB7XG4gIHByb3RlY3RlZCBlbDogSFRNTEVsZW1lbnQ7XG4gIGNvbnN0cnVjdG9yKGM6IENoYW5nZURldGVjdG9yUmVmLCByOiBFbGVtZW50UmVmLCBwcm90ZWN0ZWQgejogTmdab25lKSB7XG4gICAgYy5kZXRhY2goKTtcbiAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICB9XG59XG5cblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbR3RyQnV0dG9uXSxcbiAgZXhwb3J0czogW0d0ckJ1dHRvbl1cbn0pXG5leHBvcnQgY2xhc3MgR3RyQnV0dG9uTW9kdWxlIHsgfVxuXG5cbmV4cG9ydCBkZWNsYXJlIGludGVyZmFjZSBHdHJCdXR0b24gZXh0ZW5kcyBDb21wb25lbnRzLkd0ckJ1dHRvbiB7fVxuXG5cbiJdfQ==
@@ -0,0 +1,123 @@
1
+ import { __decorate } from 'tslib';
2
+ import * as i0 from '@angular/core';
3
+ import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
4
+ import { fromEvent } from 'rxjs';
5
+ import { defineCustomElement as defineCustomElement$1 } from '@gettrx/core-components/components/gtr-button.js';
6
+ import { CommonModule } from '@angular/common';
7
+ import { applyPolyfills, defineCustomElements } from '@gettrx/core-components/loader';
8
+
9
+ /* eslint-disable */
10
+ /* tslint:disable */
11
+ const proxyInputs = (Cmp, inputs) => {
12
+ const Prototype = Cmp.prototype;
13
+ inputs.forEach((item) => {
14
+ Object.defineProperty(Prototype, item, {
15
+ get() {
16
+ return this.el[item];
17
+ },
18
+ set(val) {
19
+ this.z.runOutsideAngular(() => (this.el[item] = val));
20
+ },
21
+ });
22
+ });
23
+ };
24
+ const proxyMethods = (Cmp, methods) => {
25
+ const Prototype = Cmp.prototype;
26
+ methods.forEach((methodName) => {
27
+ Prototype[methodName] = function () {
28
+ const args = arguments;
29
+ return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
30
+ };
31
+ });
32
+ };
33
+ const proxyOutputs = (instance, el, events) => {
34
+ events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
35
+ };
36
+ const defineCustomElement = (tagName, customElement) => {
37
+ if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
38
+ customElements.define(tagName, customElement);
39
+ }
40
+ };
41
+ // tslint:disable-next-line: only-arrow-functions
42
+ function ProxyCmp(opts) {
43
+ const decorator = function (cls) {
44
+ const { defineCustomElementFn, inputs, methods } = opts;
45
+ if (defineCustomElementFn !== undefined) {
46
+ defineCustomElementFn();
47
+ }
48
+ if (inputs) {
49
+ proxyInputs(cls, inputs);
50
+ }
51
+ if (methods) {
52
+ proxyMethods(cls, methods);
53
+ }
54
+ return cls;
55
+ };
56
+ return decorator;
57
+ }
58
+
59
+ let GtrButton = class GtrButton {
60
+ constructor(c, r, z) {
61
+ this.z = z;
62
+ c.detach();
63
+ this.el = r.nativeElement;
64
+ }
65
+ };
66
+ GtrButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
67
+ GtrButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: GtrButton, selector: "gtr-button", inputs: { color: "color", disabled: "disabled", shape: "shape", size: "size", type: "type" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
68
+ GtrButton = __decorate([
69
+ ProxyCmp({
70
+ defineCustomElementFn: defineCustomElement$1,
71
+ inputs: ['color', 'disabled', 'shape', 'size', 'type']
72
+ })
73
+ ], GtrButton);
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButton, decorators: [{
75
+ type: Component,
76
+ args: [{
77
+ selector: 'gtr-button',
78
+ changeDetection: ChangeDetectionStrategy.OnPush,
79
+ template: '<ng-content></ng-content>',
80
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
81
+ inputs: ['color', 'disabled', 'shape', 'size', 'type'],
82
+ }]
83
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
84
+ class GtrButtonModule {
85
+ }
86
+ GtrButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
87
+ GtrButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: GtrButtonModule, declarations: [GtrButton], exports: [GtrButton] });
88
+ GtrButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButtonModule });
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButtonModule, decorators: [{
90
+ type: NgModule,
91
+ args: [{
92
+ declarations: [GtrButton],
93
+ exports: [GtrButton]
94
+ }]
95
+ }] });
96
+
97
+ applyPolyfills().then(() => {
98
+ defineCustomElements();
99
+ });
100
+ class GettrxModule {
101
+ }
102
+ GettrxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GettrxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
103
+ GettrxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: GettrxModule, imports: [CommonModule] });
104
+ GettrxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GettrxModule, imports: [CommonModule] });
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GettrxModule, decorators: [{
106
+ type: NgModule,
107
+ args: [{
108
+ imports: [
109
+ CommonModule
110
+ ]
111
+ }]
112
+ }] });
113
+
114
+ /*
115
+ * Public API Surface of core-components-angular
116
+ */
117
+
118
+ /**
119
+ * Generated bundle index. Do not edit.
120
+ */
121
+
122
+ export { GettrxModule, GtrButton, GtrButtonModule };
123
+ //# sourceMappingURL=gettrx-core-components-angular.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gettrx-core-components-angular.mjs","sources":["../../src/lib/stencil-generated/angular-component-lib/utils.ts","../../src/lib/stencil-generated/components.ts","../../src/gettrx-module.ts","../../src/index.ts","../../src/gettrx-core-components-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 });\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, NgModule } from '@angular/core';\n\nimport { ProxyCmp } from './angular-component-lib/utils';\n\nimport type { Components } from '@gettrx/core-components/components';\n\nimport { defineCustomElement as defineGtrButton } from '@gettrx/core-components/components/gtr-button.js';\n@ProxyCmp({\n defineCustomElementFn: defineGtrButton,\n inputs: ['color', 'disabled', 'shape', 'size', 'type']\n})\n@Component({\n selector: 'gtr-button',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['color', 'disabled', 'shape', 'size', 'type'],\n})\nexport class GtrButton {\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\n@NgModule({\n declarations: [GtrButton],\n exports: [GtrButton]\n})\nexport class GtrButtonModule { }\n\n\nexport declare interface GtrButton extends Components.GtrButton {}\n\n\n","import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { applyPolyfills, defineCustomElements } from \"@gettrx/core-components/loader\";\n\n\napplyPolyfills().then(() => {\n defineCustomElements();\n});\n\n@NgModule({\n imports: [\n CommonModule\n ]\n})\nexport class GettrxModule {}\n","/*\n * Public API Surface of core-components-angular\n */\n\nexport * from \"./lib/stencil-generated/components\";\n\nexport { GettrxModule } from \"./gettrx-module\";\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["defineGtrButton"],"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,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AA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAZ,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YAHnB,YAAY,CAAA,EAAA,CAAA,CAAA;AAGL,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YAHnB,YAAY,CAAA,EAAA,CAAA,CAAA;2FAGL,YAAY,EAAA,UAAA,EAAA,CAAA;kBALxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACL,YAAY;AACf,qBAAA;iBACF,CAAA;;;ACbD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,123 @@
1
+ import { __decorate } from 'tslib';
2
+ import * as i0 from '@angular/core';
3
+ import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
4
+ import { fromEvent } from 'rxjs';
5
+ import { defineCustomElement as defineCustomElement$1 } from '@gettrx/core-components/components/gtr-button.js';
6
+ import { CommonModule } from '@angular/common';
7
+ import { applyPolyfills, defineCustomElements } from '@gettrx/core-components/loader';
8
+
9
+ /* eslint-disable */
10
+ /* tslint:disable */
11
+ const proxyInputs = (Cmp, inputs) => {
12
+ const Prototype = Cmp.prototype;
13
+ inputs.forEach((item) => {
14
+ Object.defineProperty(Prototype, item, {
15
+ get() {
16
+ return this.el[item];
17
+ },
18
+ set(val) {
19
+ this.z.runOutsideAngular(() => (this.el[item] = val));
20
+ },
21
+ });
22
+ });
23
+ };
24
+ const proxyMethods = (Cmp, methods) => {
25
+ const Prototype = Cmp.prototype;
26
+ methods.forEach((methodName) => {
27
+ Prototype[methodName] = function () {
28
+ const args = arguments;
29
+ return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
30
+ };
31
+ });
32
+ };
33
+ const proxyOutputs = (instance, el, events) => {
34
+ events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
35
+ };
36
+ const defineCustomElement = (tagName, customElement) => {
37
+ if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
38
+ customElements.define(tagName, customElement);
39
+ }
40
+ };
41
+ // tslint:disable-next-line: only-arrow-functions
42
+ function ProxyCmp(opts) {
43
+ const decorator = function (cls) {
44
+ const { defineCustomElementFn, inputs, methods } = opts;
45
+ if (defineCustomElementFn !== undefined) {
46
+ defineCustomElementFn();
47
+ }
48
+ if (inputs) {
49
+ proxyInputs(cls, inputs);
50
+ }
51
+ if (methods) {
52
+ proxyMethods(cls, methods);
53
+ }
54
+ return cls;
55
+ };
56
+ return decorator;
57
+ }
58
+
59
+ let GtrButton = class GtrButton {
60
+ constructor(c, r, z) {
61
+ this.z = z;
62
+ c.detach();
63
+ this.el = r.nativeElement;
64
+ }
65
+ };
66
+ GtrButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
67
+ GtrButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: GtrButton, selector: "gtr-button", inputs: { color: "color", disabled: "disabled", shape: "shape", size: "size", type: "type" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
68
+ GtrButton = __decorate([
69
+ ProxyCmp({
70
+ defineCustomElementFn: defineCustomElement$1,
71
+ inputs: ['color', 'disabled', 'shape', 'size', 'type']
72
+ })
73
+ ], GtrButton);
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButton, decorators: [{
75
+ type: Component,
76
+ args: [{
77
+ selector: 'gtr-button',
78
+ changeDetection: ChangeDetectionStrategy.OnPush,
79
+ template: '<ng-content></ng-content>',
80
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
81
+ inputs: ['color', 'disabled', 'shape', 'size', 'type'],
82
+ }]
83
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
84
+ class GtrButtonModule {
85
+ }
86
+ GtrButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
87
+ GtrButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: GtrButtonModule, declarations: [GtrButton], exports: [GtrButton] });
88
+ GtrButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButtonModule });
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GtrButtonModule, decorators: [{
90
+ type: NgModule,
91
+ args: [{
92
+ declarations: [GtrButton],
93
+ exports: [GtrButton]
94
+ }]
95
+ }] });
96
+
97
+ applyPolyfills().then(() => {
98
+ defineCustomElements();
99
+ });
100
+ class GettrxModule {
101
+ }
102
+ GettrxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GettrxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
103
+ GettrxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: GettrxModule, imports: [CommonModule] });
104
+ GettrxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GettrxModule, imports: [CommonModule] });
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GettrxModule, decorators: [{
106
+ type: NgModule,
107
+ args: [{
108
+ imports: [
109
+ CommonModule
110
+ ]
111
+ }]
112
+ }] });
113
+
114
+ /*
115
+ * Public API Surface of core-components-angular
116
+ */
117
+
118
+ /**
119
+ * Generated bundle index. Do not edit.
120
+ */
121
+
122
+ export { GettrxModule, GtrButton, GtrButtonModule };
123
+ //# sourceMappingURL=gettrx-core-components-angular.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gettrx-core-components-angular.mjs","sources":["../../src/lib/stencil-generated/angular-component-lib/utils.ts","../../src/lib/stencil-generated/components.ts","../../src/gettrx-module.ts","../../src/index.ts","../../src/gettrx-core-components-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 });\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, NgModule } from '@angular/core';\n\nimport { ProxyCmp } from './angular-component-lib/utils';\n\nimport type { Components } from '@gettrx/core-components/components';\n\nimport { defineCustomElement as defineGtrButton } from '@gettrx/core-components/components/gtr-button.js';\n@ProxyCmp({\n defineCustomElementFn: defineGtrButton,\n inputs: ['color', 'disabled', 'shape', 'size', 'type']\n})\n@Component({\n selector: 'gtr-button',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['color', 'disabled', 'shape', 'size', 'type'],\n})\nexport class GtrButton {\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\n@NgModule({\n declarations: [GtrButton],\n exports: [GtrButton]\n})\nexport class GtrButtonModule { }\n\n\nexport declare interface GtrButton extends Components.GtrButton {}\n\n\n","import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { applyPolyfills, defineCustomElements } from \"@gettrx/core-components/loader\";\n\n\napplyPolyfills().then(() => {\n defineCustomElements();\n});\n\n@NgModule({\n imports: [\n CommonModule\n ]\n})\nexport class GettrxModule {}\n","/*\n * Public API Surface of core-components-angular\n */\n\nexport * from \"./lib/stencil-generated/components\";\n\nexport { GettrxModule } from \"./gettrx-module\";\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["defineGtrButton"],"mappings":";;;;;;;;AAAA;AACA;AAGO,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,MAAgB,KAAI;AACxD,IAAA,MAAM,SAAS,GAAG,GAAG,CA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AC,CAAC;MAOU,YAAY,CAAA;;yGAAZ,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAZ,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YAHnB,YAAY,CAAA,EAAA,CAAA,CAAA;AAGL,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YAHnB,YAAY,CAAA,EAAA,CAAA,CAAA;2FAGL,YAAY,EAAA,UAAA,EAAA,CAAA;kBALxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACL,YAAY;AACf,qBAAA;AACF,iBAAA,CAAA;;;ACbD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ export declare class GettrxModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<GettrxModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GettrxModule, never, [typeof i1.CommonModule], never>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<GettrxModule>;
7
+ }
@@ -1,7 +1,2 @@
1
- /*
2
- * Public API Surface of core-components-angular
3
- */
4
-
5
1
  export * from "./lib/stencil-generated/components";
6
-
7
2
  export { GettrxModule } from "./gettrx-module";
@@ -0,0 +1,9 @@
1
+ export declare const proxyInputs: (Cmp: any, inputs: string[]) => void;
2
+ export declare const proxyMethods: (Cmp: any, methods: string[]) => void;
3
+ export declare const proxyOutputs: (instance: any, el: any, events: string[]) => void;
4
+ export declare const defineCustomElement: (tagName: string, customElement: any) => void;
5
+ export declare function ProxyCmp(opts: {
6
+ defineCustomElementFn?: () => void;
7
+ inputs?: any;
8
+ methods?: any;
9
+ }): (cls: any) => any;
@@ -0,0 +1,17 @@
1
+ import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
2
+ import type { Components } from '@gettrx/core-components/components';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GtrButton {
5
+ protected z: NgZone;
6
+ protected el: HTMLElement;
7
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrButton, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrButton, "gtr-button", never, { "color": "color"; "disabled": "disabled"; "shape": "shape"; "size": "size"; "type": "type"; }, {}, never, ["*"], false, never>;
10
+ }
11
+ export declare class GtrButtonModule {
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrButtonModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GtrButtonModule, [typeof GtrButton], never, [typeof GtrButton]>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<GtrButtonModule>;
15
+ }
16
+ export declare interface GtrButton extends Components.GtrButton {
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gettrx/core-components-angular",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Angular specific wrappers for @gettrx/core-components",
5
5
  "keywords": [
6
6
  "gettrx",
@@ -8,11 +8,6 @@
8
8
  "component",
9
9
  "angular"
10
10
  ],
11
- "scripts": {
12
- "build": "ng-packagr",
13
- "clean": "rimraf dist",
14
- "link": "node scripts/link-copy.js"
15
- },
16
11
  "author": "Gettrx",
17
12
  "repository": {
18
13
  "type": "git",
@@ -24,19 +19,31 @@
24
19
  },
25
20
  "license": "MIT",
26
21
  "dependencies": {
27
- "@gettrx/core-components": "0.0.2",
22
+ "@gettrx/core-components": "0.0.3",
28
23
  "tslib": "^2.3.0"
29
24
  },
30
25
  "peerDependencies": {
31
26
  "@angular/common": "^15.1.0",
32
27
  "@angular/core": "^15.1.0"
33
28
  },
34
- "devDependencies": {
35
- "@angular/cli": "~15.1.0",
36
- "@angular/compiler": "~15.1.0",
37
- "@angular/compiler-cli": "~15.1.0",
38
- "@angular/core": "~15.1.0",
39
- "fs-extra": "~11.1.1",
40
- "ng-packagr": "~15.1.0"
41
- }
42
- }
29
+ "module": "fesm2015/gettrx-core-components-angular.mjs",
30
+ "es2020": "fesm2020/gettrx-core-components-angular.mjs",
31
+ "esm2020": "esm2020/gettrx-core-components-angular.mjs",
32
+ "fesm2020": "fesm2020/gettrx-core-components-angular.mjs",
33
+ "fesm2015": "fesm2015/gettrx-core-components-angular.mjs",
34
+ "typings": "index.d.ts",
35
+ "exports": {
36
+ "./package.json": {
37
+ "default": "./package.json"
38
+ },
39
+ ".": {
40
+ "types": "./index.d.ts",
41
+ "esm2020": "./esm2020/gettrx-core-components-angular.mjs",
42
+ "es2020": "./fesm2020/gettrx-core-components-angular.mjs",
43
+ "es2015": "./fesm2015/gettrx-core-components-angular.mjs",
44
+ "node": "./fesm2015/gettrx-core-components-angular.mjs",
45
+ "default": "./fesm2020/gettrx-core-components-angular.mjs"
46
+ }
47
+ },
48
+ "sideEffects": false
49
+ }
package/.browserslistrc DELETED
@@ -1,16 +0,0 @@
1
- # This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2
- # For additional information regarding the format and rule options, please see:
3
- # https://github.com/browserslist/browserslist#queries
4
-
5
- # For the full list of supported browsers by the Angular framework, please see:
6
- # https://angular.io/guide/browser-support
7
-
8
- # You can see what browsers were selected by your queries by running:
9
- # npx browserslist
10
-
11
- last 1 Chrome version
12
- last 1 Firefox version
13
- last 2 Edge major versions
14
- last 2 Safari major versions
15
- last 2 iOS major versions
16
- Firefox ESR
package/.eslintrc.js DELETED
@@ -1,14 +0,0 @@
1
- // This config is cascaded automatically with the base config in the repo root:
2
- // https://eslint.org/docs/user-guide/configuring/configuration-files#cascading-and-hierarchy
3
- module.exports = {
4
- ignorePatterns: [
5
- // The eslint config itself. Needed for vscode-eslint extension
6
- ".eslintrc.js",
7
- "src/lib/**/*",
8
- "scripts/**",
9
- ],
10
- parserOptions: {
11
- project: ["./tsconfig.json"],
12
- tsconfigRootDir: __dirname,
13
- },
14
- };
package/ng-package.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "$schema": "./node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "./dist",
4
- "lib": {
5
- "entryFile": "src/index.ts"
6
- },
7
- "allowedNonPeerDependencies": ["@gettrx/core-components"]
8
- }
@@ -1,52 +0,0 @@
1
- /**
2
- * Script adopted from https://github.com/ionic-team/ionic-framework/
3
- * MIT License (c) Copyright 2015-present Drifty Co.
4
- */
5
- const fs = require("fs-extra");
6
- const path = require("path");
7
-
8
- let prjDir = process.argv[2];
9
- if (!prjDir) {
10
- throw new Error('local path required as last argument to "npm run build.link" command');
11
- }
12
- prjDir = path.join(__dirname, "../../../", prjDir);
13
-
14
- copyPackage(prjDir, "core-components-angular");
15
- copyPackage(prjDir, "core-components");
16
-
17
- function copyPackage(prjDir, pkgName) {
18
- const prjDest = path.join(prjDir, "node_modules", "@gettrx", pkgName);
19
-
20
- const pkgSrcDir = path.join(__dirname, "..", "..", pkgName);
21
- const pkgSrcDist = path.join(pkgSrcDir, "dist");
22
- const pkgJsonPath = path.join(pkgSrcDir, "package.json");
23
- const pkgJson = require(pkgJsonPath);
24
-
25
- // make sure this local project exists
26
- fs.emptyDirSync(prjDest);
27
-
28
- let srcDir;
29
- if (!pkgJson.files) {
30
- srcDir = pkgSrcDist;
31
- pkgJson.files = fs.readdirSync(pkgSrcDist);
32
- } else {
33
- srcDir = pkgSrcDir;
34
- pkgJson.files.push("package.json");
35
- }
36
-
37
- pkgJson.files.forEach((f) => {
38
- const src = path.join(srcDir, f);
39
- const dest = path.join(prjDest, f);
40
-
41
- console.log("copying:", src, "to", dest);
42
- fs.copySync(src, dest);
43
- });
44
-
45
- const prjReadme = path.join(prjDest, "README.md");
46
- console.log("readme:", prjReadme);
47
-
48
- fs.writeFileSync(
49
- prjReadme,
50
- "@gettrx/" + pkgName + " copied from " + pkgSrcDir + ", " + new Date(),
51
- );
52
- }
@@ -1,15 +0,0 @@
1
- import { NgModule } from "@angular/core";
2
- import { CommonModule } from "@angular/common";
3
- import { applyPolyfills, defineCustomElements } from "@gettrx/core-components/loader";
4
-
5
-
6
- applyPolyfills().then(() => {
7
- defineCustomElements();
8
- });
9
-
10
- @NgModule({
11
- imports: [
12
- CommonModule
13
- ]
14
- })
15
- export class GettrxModule {}
package/tsconfig.json DELETED
@@ -1,48 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "angularCompilerOptions": {
4
- "annotateForClosureCompiler": true,
5
- "strictMetadataEmit": true,
6
- "skipTemplateCodegen": true,
7
- "fullTemplateTypeCheck": false,
8
- "enableResourceInlining": true,
9
- "enableIvy": true,
10
- "compilationMode": "partial"
11
- },
12
- "compileOnSave": false,
13
- "compilerOptions": {
14
- "baseUrl": "./",
15
- "outDir": "build/es2015",
16
- "forceConsistentCasingInFileNames": true,
17
- "strict": true,
18
- "noPropertyAccessFromIndexSignature": true,
19
- "noImplicitReturns": true,
20
- "noFallthroughCasesInSwitch": true,
21
- "sourceMap": true,
22
- "declaration": false,
23
- "declarationMap": false,
24
- "downlevelIteration": true,
25
- "experimentalDecorators": true,
26
- "moduleResolution": "node",
27
- "importHelpers": true,
28
- "target": "ES2022",
29
- "module": "ES2022",
30
- "lib": [
31
- "es2022",
32
- "dom"
33
- ],
34
- "paths": {
35
- "core-components-angular": [
36
- "dist/core-components-angular/core-components-angular",
37
- "dist/core-components-angular"
38
- ]
39
- }
40
- },
41
- "exclude": [
42
- "src/test.ts",
43
- "**/*.spec.ts"
44
- ],
45
- "files": [
46
- "src/index.ts"
47
- ]
48
- }
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "./tsconfig.lib.json",
3
- "compilerOptions": {
4
- "declarationMap": false
5
- },
6
- "angularCompilerOptions": {
7
- "compilationMode": "partial"
8
- }
9
- }