@gettrx/core-components-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.
@@ -0,0 +1,16 @@
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 ADDED
@@ -0,0 +1,14 @@
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/README.md CHANGED
@@ -1,9 +1,24 @@
1
- # core-components-angular
1
+ # @gettrx/core-components-angular
2
2
 
3
- This library was generated with [Nx](https://nx.dev).
3
+ Gettrx core components Angular specific UI components on top of [@gettrx/core-components](https://www.npmjs.com/package/@gettrx/core-components) components.
4
4
 
5
+ ## How to use
5
6
 
6
- ## Running unit tests
7
+ The components are exported as an angular module.
7
8
 
8
- Run `nx test core-components-angular` to execute the unit tests.
9
+ ```tsx
10
+ // my-app.module.ts
11
+ import { GettrxModule } from "@gettrx/core-components-angular";
9
12
 
13
+ @NgModule({
14
+ imports: [GettrxModule],
15
+ })
16
+ export class MyAppModule {}
17
+
18
+ // my-app.component.html
19
+ <gtr-button>Trigger the button</gtr-button>;
20
+ ```
21
+
22
+ ## Related
23
+
24
+ - [Gettrx Core Components](https://www.npmjs.com/package/@gettrx/core-components)
@@ -0,0 +1,8 @@
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
+ }
package/package.json CHANGED
@@ -1,32 +1,42 @@
1
1
  {
2
2
  "name": "@gettrx/core-components-angular",
3
- "version": "0.0.1",
4
- "peerDependencies": {
5
- "@angular/common": "^15.1.0",
6
- "@angular/core": "^15.1.0",
7
- "@gettrx/core-components": "*"
3
+ "version": "0.0.2",
4
+ "description": "Angular specific wrappers for @gettrx/core-components",
5
+ "keywords": [
6
+ "gettrx",
7
+ "stencil",
8
+ "component",
9
+ "angular"
10
+ ],
11
+ "scripts": {
12
+ "build": "ng-packagr",
13
+ "clean": "rimraf dist",
14
+ "link": "node scripts/link-copy.js"
15
+ },
16
+ "author": "Gettrx",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://bitbucket.org/edgepay/gettrx-design-system-library"
20
+ },
21
+ "homepage": "https://bitbucket.org/edgepay/gettrx-design-system-library",
22
+ "publishConfig": {
23
+ "access": "public"
8
24
  },
25
+ "license": "MIT",
9
26
  "dependencies": {
27
+ "@gettrx/core-components": "0.0.2",
10
28
  "tslib": "^2.3.0"
11
29
  },
12
- "sideEffects": false,
13
- "module": "fesm2015/gettrx-core-components-angular.mjs",
14
- "es2020": "fesm2020/gettrx-core-components-angular.mjs",
15
- "esm2020": "esm2020/gettrx-core-components-angular.mjs",
16
- "fesm2020": "fesm2020/gettrx-core-components-angular.mjs",
17
- "fesm2015": "fesm2015/gettrx-core-components-angular.mjs",
18
- "typings": "index.d.ts",
19
- "exports": {
20
- "./package.json": {
21
- "default": "./package.json"
22
- },
23
- ".": {
24
- "types": "./index.d.ts",
25
- "esm2020": "./esm2020/gettrx-core-components-angular.mjs",
26
- "es2020": "./fesm2020/gettrx-core-components-angular.mjs",
27
- "es2015": "./fesm2015/gettrx-core-components-angular.mjs",
28
- "node": "./fesm2015/gettrx-core-components-angular.mjs",
29
- "default": "./fesm2020/gettrx-core-components-angular.mjs"
30
- }
30
+ "peerDependencies": {
31
+ "@angular/common": "^15.1.0",
32
+ "@angular/core": "^15.1.0"
33
+ },
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"
31
41
  }
32
- }
42
+ }
@@ -0,0 +1,52 @@
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
+ }
@@ -0,0 +1,15 @@
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/src/index.ts ADDED
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Public API Surface of core-components-angular
3
+ */
4
+
5
+ export * from "./lib/stencil-generated/components";
6
+
7
+ export { GettrxModule } from "./gettrx-module";
package/tsconfig.json ADDED
@@ -0,0 +1,48 @@
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
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.lib.json",
3
+ "compilerOptions": {
4
+ "declarationMap": false
5
+ },
6
+ "angularCompilerOptions": {
7
+ "compilationMode": "partial"
8
+ }
9
+ }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0dHJ4LWNvcmUtY29tcG9uZW50cy1hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS1jb21wb25lbnRzLWFuZ3VsYXIvc3JjL2dldHRyeC1jb3JlLWNvbXBvbmVudHMtYW5ndWxhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
package/esm2020/index.mjs DELETED
@@ -1,4 +0,0 @@
1
- export * from './lib/core-components-angular.module';
2
- export { DIRECTIVES } from './lib/generated';
3
- export * from './lib/generated/components';
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9jb3JlLWNvbXBvbmVudHMtYW5ndWxhci9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxzQ0FBc0MsQ0FBQztBQUVyRCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsY0FBYyw0QkFBNEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL2NvcmUtY29tcG9uZW50cy1hbmd1bGFyLm1vZHVsZSc7XG5cbmV4cG9ydCB7IERJUkVDVElWRVMgfSBmcm9tICcuL2xpYi9nZW5lcmF0ZWQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZ2VuZXJhdGVkL2NvbXBvbmVudHMnO1xuIl19
@@ -1,23 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { DIRECTIVES } from "./generated";
4
- import { defineCustomElements } from '@gettrx/core-components/loader';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "./generated/components";
7
- defineCustomElements();
8
- export class CoreComponentsAngularModule {
9
- }
10
- CoreComponentsAngularModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CoreComponentsAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
- CoreComponentsAngularModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: CoreComponentsAngularModule, declarations: [i1.MyComponent], imports: [CommonModule], exports: [i1.MyComponent] });
12
- CoreComponentsAngularModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CoreComponentsAngularModule, imports: [CommonModule] });
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CoreComponentsAngularModule, decorators: [{
14
- type: NgModule,
15
- args: [{
16
- imports: [
17
- CommonModule
18
- ],
19
- declarations: [...DIRECTIVES],
20
- exports: [...DIRECTIVES]
21
- }]
22
- }] });
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS1jb21wb25lbnRzLWFuZ3VsYXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS1jb21wb25lbnRzLWFuZ3VsYXIvc3JjL2xpYi9jb3JlLWNvbXBvbmVudHMtYW5ndWxhci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUN6QyxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQzs7O0FBRXRFLG9CQUFvQixFQUFFLENBQUM7QUFTdkIsTUFBTSxPQUFPLDJCQUEyQjs7d0hBQTNCLDJCQUEyQjt5SEFBM0IsMkJBQTJCLDRDQUxoQyxZQUFZO3lIQUtQLDJCQUEyQixZQUxoQyxZQUFZOzJGQUtQLDJCQUEyQjtrQkFQdkMsUUFBUTttQkFBQztvQkFDTixPQUFPLEVBQUU7d0JBQ0wsWUFBWTtxQkFDZjtvQkFDRCxZQUFZLEVBQUUsQ0FBQyxHQUFHLFVBQVUsQ0FBQztvQkFDN0IsT0FBTyxFQUFFLENBQUMsR0FBRyxVQUFVLENBQUM7aUJBQzNCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBESVJFQ1RJVkVTIH0gZnJvbSBcIi4vZ2VuZXJhdGVkXCI7XG5pbXBvcnQgeyBkZWZpbmVDdXN0b21FbGVtZW50cyB9IGZyb20gJ0BnZXR0cngvY29yZS1jb21wb25lbnRzL2xvYWRlcic7XG5cbmRlZmluZUN1c3RvbUVsZW1lbnRzKCk7XG5cbkBOZ01vZHVsZSh7XG4gICAgaW1wb3J0czogW1xuICAgICAgICBDb21tb25Nb2R1bGVcbiAgICBdLFxuICAgIGRlY2xhcmF0aW9uczogWy4uLkRJUkVDVElWRVNdLFxuICAgIGV4cG9ydHM6IFsuLi5ESVJFQ1RJVkVTXVxufSlcbmV4cG9ydCBjbGFzcyBDb3JlQ29tcG9uZW50c0FuZ3VsYXJNb2R1bGUge1xufVxuIl19
@@ -1,51 +0,0 @@
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb3JlLWNvbXBvbmVudHMtYW5ndWxhci9zcmMvbGliL2dlbmVyYXRlZC9hbmd1bGFyLWNvbXBvbmVudC1saWIvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjtBQUNwQixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRWpDLE1BQU0sQ0FBQyxNQUFNLFdBQVcsR0FBRyxDQUFDLEdBQVEsRUFBRSxNQUFnQixFQUFFLEVBQUU7SUFDeEQsTUFBTSxTQUFTLEdBQUcsR0FBRyxDQUFDLFNBQVMsQ0FBQztJQUNoQyxNQUFNLENBQUMsT0FBTyxDQUFDLENBQUMsSUFBSSxFQUFFLEVBQUU7UUFDdEIsTUFBTSxDQUFDLGNBQWMsQ0FBQyxTQUFTLEVBQUUsSUFBSSxFQUFFO1lBQ3JDLEdBQUc7Z0JBQ0QsT0FBTyxJQUFJLENBQUMsRUFBRSxDQUFDLElBQUksQ0FBQyxDQUFDO1lBQ3ZCLENBQUM7WUFDRCxHQUFHLENBQUMsR0FBUTtnQkFDVixJQUFJLENBQUMsQ0FBQyxDQUFDLGlCQUFpQixDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxJQUFJLENBQUMsR0FBRyxHQUFHLENBQUMsQ0FBQyxDQU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mVkJyAmJiAhY3VzdG9tRWxlbWVudHMuZ2V0KHRhZ05hbWUpKSB7XG4gICAgY3VzdG9tRWxlbWVudHMuZGVmaW5lKHRhZ05hbWUsIGN1c3RvbUVsZW1lbnQpO1xuICB9XG59O1xuXG4vLyB0c2xpbnQ6ZGlzYWJsZS1uZXh0LWxpbmU6IG9ubHktYXJyb3ctZnVuY3Rpb25zXG5leHBvcnQgZnVuY3Rpb24gUHJveHlDbXAob3B0czogeyBkZWZpbmVDdXN0b21FbGVtZW50Rm4/OiAoKSA9PiB2b2lkOyBpbnB1dHM/OiBhbnk7IG1ldGhvZHM/OiBhbnkgfSkge1xuICBjb25zdCBkZWNvcmF0b3IgPSBmdW5jdGlvbiAoY2xzOiBhbnkpIHtcbiAgICBjb25zdCB7IGRlZmluZUN1c3RvbUVsZW1lbnRGbiwgaW5wdXRzLCBtZXRob2RzIH0gPSBvcHRzO1xuXG4gICAgaWYgKGRlZmluZUN1c3RvbUVsZW1lbnRGbiAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICBkZWZpbmVDdXN0b21FbGVtZW50Rm4oKTtcbiAgICB9XG5cbiAgICBpZiAoaW5wdXRzKSB7XG4gICAgICBwcm94eUlucHV0cyhjbHMsIGlucHV0cyk7XG4gICAgfVxuICAgIGlmIChtZXRob2RzKSB7XG4gICAgICBwcm94eU1ldGhvZHMoY2xzLCBtZXRob2RzKTtcbiAgICB9XG4gICAgcmV0dXJuIGNscztcbiAgfTtcbiAgcmV0dXJuIGRlY29yYXRvcjtcbn1cbiJdfQ==
@@ -1,33 +0,0 @@
1
- import { __decorate, __metadata } from "tslib";
2
- /* tslint:disable */
3
- /* auto-generated angular directive proxies */
4
- import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, NgZone } from '@angular/core';
5
- import { ProxyCmp } from './angular-component-lib/utils';
6
- import * as i0 from "@angular/core";
7
- let MyComponent = class MyComponent {
8
- constructor(c, r, z) {
9
- this.z = z;
10
- c.detach();
11
- this.el = r.nativeElement;
12
- }
13
- };
14
- MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MyComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
15
- MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: MyComponent, selector: "my-component", inputs: { first: "first", last: "last", middle: "middle" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
16
- MyComponent = __decorate([
17
- ProxyCmp({
18
- inputs: ['first', 'last', 'middle']
19
- }),
20
- __metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
21
- ], MyComponent);
22
- export { MyComponent };
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MyComponent, decorators: [{
24
- type: Component,
25
- args: [{
26
- selector: 'my-component',
27
- changeDetection: ChangeDetectionStrategy.OnPush,
28
- template: '<ng-content></ng-content>',
29
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
30
- inputs: ['first', 'last', 'middle'],
31
- }]
32
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvcmUtY29tcG9uZW50cy1hbmd1bGFyL3NyYy9saWIvZ2VuZXJhdGVkL2NvbXBvbmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9CQUFvQjtBQUNwQiw4Q0FBOEM7QUFDOUMsT0FBTyxFQUFFLHVCQUF1QixFQUFFLGlCQUFpQixF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VmLCBDb21wb25lbnQsIEVsZW1lbnRSZWYsIE5nWm9uZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBQcm94eUNtcCB9IGZyb20gJy4vYW5ndWxhci1jb21wb25lbnQtbGliL3V0aWxzJztcblxuaW1wb3J0IHsgQ29tcG9uZW50cyB9IGZyb20gJ0BnZXR0cngvY29yZS1jb21wb25lbnRzJztcblxuXG5AUHJveHlDbXAoe1xuICBpbnB1dHM6IFsnZmlyc3QnLCAnbGFzdCcsICdtaWRkbGUnXVxufSlcbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ215LWNvbXBvbmVudCcsXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxuICB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLFxuICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQGFuZ3VsYXItZXNsaW50L25vLWlucHV0cy1tZXRhZGF0YS1wcm9wZXJ0eVxuICBpbnB1dHM6IFsnZmlyc3QnLCAnbGFzdCcsICdtaWRkbGUnXSxcbn0pXG5leHBvcnQgY2xhc3MgTXlDb21wb25lbnQge1xuICBwcm90ZWN0ZWQgZWw6IEhUTUxFbGVtZW50O1xuICBjb25zdHJ1Y3RvcihjOiBDaGFuZ2VEZXRlY3RvclJlZiwgcjogRWxlbWVudFJlZiwgcHJvdGVjdGVkIHo6IE5nWm9uZSkge1xuICAgIGMuZGV0YWNoKCk7XG4gICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgfVxufVxuXG5cbmV4cG9ydCBkZWNsYXJlIGludGVyZmFjZSBNeUNvbXBvbmVudCBleHRlbmRzIENvbXBvbmVudHMuTXlDb21wb25lbnQge31cblxuXG4iXX0=
@@ -1,5 +0,0 @@
1
- import * as d from './components';
2
- export const DIRECTIVES = [
3
- d.MyComponent
4
- ];
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb3JlLWNvbXBvbmVudHMtYW5ndWxhci9zcmMvbGliL2dlbmVyYXRlZC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEtBQUssQ0FBQyxNQUFNLGNBQWMsQ0FBQztBQUVsQyxNQUFNLENBQUMsTUFBTSxVQUFVLEdBQUc7SUFDeEIsQ0FBQyxDQUFDLFdBQVc7Q0FDZCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiXG5pbXBvcnQgKiBhcyBkIGZyb20gJy4vY29tcG9uZW50cyc7XG5cbmV4cG9ydCBjb25zdCBESVJFQ1RJVkVTID0gW1xuICBkLk15Q29tcG9uZW50XG5dO1xuIl19
@@ -1,110 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { ChangeDetectorRef, ElementRef, NgZone, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
- import { CommonModule } from '@angular/common';
4
- import { __decorate, __metadata } from 'tslib';
5
- import { fromEvent } from 'rxjs';
6
- import { defineCustomElements } from '@gettrx/core-components/loader';
7
-
8
- /* eslint-disable */
9
- /* tslint:disable */
10
- const proxyInputs = (Cmp, inputs) => {
11
- const Prototype = Cmp.prototype;
12
- inputs.forEach((item) => {
13
- Object.defineProperty(Prototype, item, {
14
- get() {
15
- return this.el[item];
16
- },
17
- set(val) {
18
- this.z.runOutsideAngular(() => (this.el[item] = val));
19
- },
20
- });
21
- });
22
- };
23
- const proxyMethods = (Cmp, methods) => {
24
- const Prototype = Cmp.prototype;
25
- methods.forEach((methodName) => {
26
- Prototype[methodName] = function () {
27
- const args = arguments;
28
- return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
29
- };
30
- });
31
- };
32
- const proxyOutputs = (instance, el, events) => {
33
- events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
34
- };
35
- const defineCustomElement = (tagName, customElement) => {
36
- if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
37
- customElements.define(tagName, customElement);
38
- }
39
- };
40
- // tslint:disable-next-line: only-arrow-functions
41
- function ProxyCmp(opts) {
42
- const decorator = function (cls) {
43
- const { defineCustomElementFn, inputs, methods } = opts;
44
- if (defineCustomElementFn !== undefined) {
45
- defineCustomElementFn();
46
- }
47
- if (inputs) {
48
- proxyInputs(cls, inputs);
49
- }
50
- if (methods) {
51
- proxyMethods(cls, methods);
52
- }
53
- return cls;
54
- };
55
- return decorator;
56
- }
57
-
58
- let MyComponent = class MyComponent {
59
- constructor(c, r, z) {
60
- this.z = z;
61
- c.detach();
62
- this.el = r.nativeElement;
63
- }
64
- };
65
- MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MyComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
66
- MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: MyComponent, selector: "my-component", inputs: { first: "first", last: "last", middle: "middle" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
67
- MyComponent = __decorate([
68
- ProxyCmp({
69
- inputs: ['first', 'last', 'middle']
70
- }),
71
- __metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
72
- ], MyComponent);
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MyComponent, decorators: [{
74
- type: Component,
75
- args: [{
76
- selector: 'my-component',
77
- changeDetection: ChangeDetectionStrategy.OnPush,
78
- template: '<ng-content></ng-content>',
79
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
80
- inputs: ['first', 'last', 'middle'],
81
- }]
82
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
83
-
84
- const DIRECTIVES = [
85
- MyComponent
86
- ];
87
-
88
- defineCustomElements();
89
- class CoreComponentsAngularModule {
90
- }
91
- CoreComponentsAngularModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CoreComponentsAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
92
- CoreComponentsAngularModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: CoreComponentsAngularModule, declarations: [MyComponent], imports: [CommonModule], exports: [MyComponent] });
93
- CoreComponentsAngularModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CoreComponentsAngularModule, imports: [CommonModule] });
94
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CoreComponentsAngularModule, decorators: [{
95
- type: NgModule,
96
- args: [{
97
- imports: [
98
- CommonModule
99
- ],
100
- declarations: [...DIRECTIVES],
101
- exports: [...DIRECTIVES]
102
- }]
103
- }] });
104
-
105
- /**
106
- * Generated bundle index. Do not edit.
107
- */
108
-
109
- export { CoreComponentsAngularModule, DIRECTIVES, MyComponent };
110
- //# sourceMappingURL=gettrx-core-components-angular.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gettrx-core-components-angular.mjs","sources":["../../../../packages/core-components-angular/src/lib/generated/angular-component-lib/utils.ts","../../../../packages/core-components-angular/src/lib/generated/components.ts","../../../../packages/core-components-angular/src/lib/generated/index.ts","../../../../packages/core-components-angular/src/lib/core-components-angular.module.ts","../../../../packages/core-components-angular/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 } from '@angular/core';\n\nimport { ProxyCmp } from './angular-component-lib/utils';\n\nimport { Components } from '@gettrx/core-components';\n\n\n@ProxyCmp({\n inputs: ['first', 'last', 'middle']\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: ['first', 'last', 'middle'],\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","\nimport * as d from './components';\n\nexport const DIRECTIVES = [\n d.MyComponent\n];\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DIRECTIVES } from \"./generated\";\nimport { defineCustomElements } from '@gettrx/core-components/loader';\n\ndefineCustomElements();\n\n@NgModule({\n imports: [\n CommonModule\n ],\n declarations: [...DIRECTIVES],\n exports: [...DIRECTIVES]\n})\nexport class CoreComponentsAngularModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["d.MyComponent","i1.MyComponent"],"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;AACF,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,UAAU,KAAI;QAC7B,SAAS,CAAC,UAAU,CAAC,GAAG,YAAA;YACtB,MAAM,IAAI,GAAG,SAAS,CAAC;YACvB,OAAO,IAAI,CAAC,CAAC,CAAC,iBAAiB,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;ACCf,oBAAoB,EAAE,CAAC;MASV,2BAA2B,CAAA;;wHAA3B,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAA3B,2BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,yCALhC,YAAY,CAAA,EAAA,OAAA,EAAA,CAAAC,WAAA,CAAA,EAAA,CAAA,CAAA;AAKP,2BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,YALhC,YAAY,CAAA,EAAA,CAAA,CAAA;2FAKP,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAPvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;AACf,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;iBAC3B,CAAA;;;ACbD;;AAEG;;;;"}
@@ -1,110 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { ChangeDetectorRef, ElementRef, NgZone, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
- import { CommonModule } from '@angular/common';
4
- import { __decorate, __metadata } from 'tslib';
5
- import { fromEvent } from 'rxjs';
6
- import { defineCustomElements } from '@gettrx/core-components/loader';
7
-
8
- /* eslint-disable */
9
- /* tslint:disable */
10
- const proxyInputs = (Cmp, inputs) => {
11
- const Prototype = Cmp.prototype;
12
- inputs.forEach((item) => {
13
- Object.defineProperty(Prototype, item, {
14
- get() {
15
- return this.el[item];
16
- },
17
- set(val) {
18
- this.z.runOutsideAngular(() => (this.el[item] = val));
19
- },
20
- });
21
- });
22
- };
23
- const proxyMethods = (Cmp, methods) => {
24
- const Prototype = Cmp.prototype;
25
- methods.forEach((methodName) => {
26
- Prototype[methodName] = function () {
27
- const args = arguments;
28
- return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
29
- };
30
- });
31
- };
32
- const proxyOutputs = (instance, el, events) => {
33
- events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
34
- };
35
- const defineCustomElement = (tagName, customElement) => {
36
- if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
37
- customElements.define(tagName, customElement);
38
- }
39
- };
40
- // tslint:disable-next-line: only-arrow-functions
41
- function ProxyCmp(opts) {
42
- const decorator = function (cls) {
43
- const { defineCustomElementFn, inputs, methods } = opts;
44
- if (defineCustomElementFn !== undefined) {
45
- defineCustomElementFn();
46
- }
47
- if (inputs) {
48
- proxyInputs(cls, inputs);
49
- }
50
- if (methods) {
51
- proxyMethods(cls, methods);
52
- }
53
- return cls;
54
- };
55
- return decorator;
56
- }
57
-
58
- let MyComponent = class MyComponent {
59
- constructor(c, r, z) {
60
- this.z = z;
61
- c.detach();
62
- this.el = r.nativeElement;
63
- }
64
- };
65
- MyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MyComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
66
- MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: MyComponent, selector: "my-component", inputs: { first: "first", last: "last", middle: "middle" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
67
- MyComponent = __decorate([
68
- ProxyCmp({
69
- inputs: ['first', 'last', 'middle']
70
- }),
71
- __metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
72
- ], MyComponent);
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MyComponent, decorators: [{
74
- type: Component,
75
- args: [{
76
- selector: 'my-component',
77
- changeDetection: ChangeDetectionStrategy.OnPush,
78
- template: '<ng-content></ng-content>',
79
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
80
- inputs: ['first', 'last', 'middle'],
81
- }]
82
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
83
-
84
- const DIRECTIVES = [
85
- MyComponent
86
- ];
87
-
88
- defineCustomElements();
89
- class CoreComponentsAngularModule {
90
- }
91
- CoreComponentsAngularModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CoreComponentsAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
92
- CoreComponentsAngularModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: CoreComponentsAngularModule, declarations: [MyComponent], imports: [CommonModule], exports: [MyComponent] });
93
- CoreComponentsAngularModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CoreComponentsAngularModule, imports: [CommonModule] });
94
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CoreComponentsAngularModule, decorators: [{
95
- type: NgModule,
96
- args: [{
97
- imports: [
98
- CommonModule
99
- ],
100
- declarations: [...DIRECTIVES],
101
- exports: [...DIRECTIVES]
102
- }]
103
- }] });
104
-
105
- /**
106
- * Generated bundle index. Do not edit.
107
- */
108
-
109
- export { CoreComponentsAngularModule, DIRECTIVES, MyComponent };
110
- //# sourceMappingURL=gettrx-core-components-angular.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gettrx-core-components-angular.mjs","sources":["../../../../packages/core-components-angular/src/lib/generated/angular-component-lib/utils.ts","../../../../packages/core-components-angular/src/lib/generated/components.ts","../../../../packages/core-components-angular/src/lib/generated/index.ts","../../../../packages/core-components-angular/src/lib/core-components-angular.module.ts","../../../../packages/core-components-angular/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 } from '@angular/core';\n\nimport { ProxyCmp } from './angular-component-lib/utils';\n\nimport { Components } from '@gettrx/core-components';\n\n\n@ProxyCmp({\n inputs: ['first', 'last', 'middle']\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: ['first', 'last', 'middle'],\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","\nimport * as d from './components';\n\nexport const DIRECTIVES = [\n d.MyComponent\n];\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DIRECTIVES } from \"./generated\";\nimport { defineCustomElements } from '@gettrx/core-components/loader';\n\ndefineCustomElements();\n\n@NgModule({\n imports: [\n CommonModule\n ],\n declarations: [...DIRECTIVES],\n exports: [...DIRECTIVES]\n})\nexport class CoreComponentsAngularModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["d.MyComponent","i1.MyComponent"],"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;AACF,SAAA,CAAC,CAAC;AACL,KAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEK,MAAM,YAAY,GAAG,CAAC,GAAQ,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AA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,cAAc;oBACxB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,QAAQ,EAAE,2BAA2B;;AAErC,oBAAA,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC;AACpC,iBAAA,CAAA;;;ACfY,MAAA,UAAU,GAAG;AACxB,IAAAA,WAAa;;;ACCf,oBAAoB,EAAE,CAAC;MASV,2BAA2B,CAAA;;wHAA3B,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAA3B,2BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,yCALhC,YAAY,CAAA,EAAA,OAAA,EAAA,CAAAC,WAAA,CAAA,EAAA,CAAA,CAAA;AAKP,2BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,YALhC,YAAY,CAAA,EAAA,CAAA,CAAA;2FAKP,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAPvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;AACf,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
package/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './lib/core-components-angular.module';
2
- export { DIRECTIVES } from './lib/generated';
3
- export * from './lib/generated/components';
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./generated/components";
3
- import * as i2 from "@angular/common";
4
- export declare class CoreComponentsAngularModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<CoreComponentsAngularModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<CoreComponentsAngularModule, [typeof i1.MyComponent], [typeof i2.CommonModule], [typeof i1.MyComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<CoreComponentsAngularModule>;
8
- }
@@ -1,9 +0,0 @@
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;
@@ -1,12 +0,0 @@
1
- import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
2
- import { Components } from '@gettrx/core-components';
3
- import * as i0 from "@angular/core";
4
- export declare class MyComponent {
5
- protected z: NgZone;
6
- protected el: HTMLElement;
7
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, { "first": "first"; "last": "last"; "middle": "middle"; }, {}, never, ["*"], false, never>;
10
- }
11
- export declare interface MyComponent extends Components.MyComponent {
12
- }
@@ -1,2 +0,0 @@
1
- import * as d from './components';
2
- export declare const DIRECTIVES: (typeof d.MyComponent)[];