@rxap/environment 12.1.0-next.1 → 13.0.0-next.0

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.
Files changed (31) hide show
  1. package/esm2020/index.mjs +6 -0
  2. package/esm2020/lib/environment/environment.component.mjs +20 -0
  3. package/esm2020/lib/environment/environment.component.module.mjs +34 -0
  4. package/esm2020/lib/environment/tokens.mjs +3 -0
  5. package/esm2020/lib/environment.mjs +2 -0
  6. package/esm2020/lib/update-environment.mjs +15 -0
  7. package/esm2020/rxap-environment.mjs +5 -0
  8. package/fesm2015/rxap-environment.mjs +75 -0
  9. package/fesm2015/rxap-environment.mjs.map +1 -0
  10. package/{fesm2015/rxap-environment.js → fesm2020/rxap-environment.mjs} +9 -15
  11. package/fesm2020/rxap-environment.mjs.map +1 -0
  12. package/package.json +28 -13
  13. package/src/schematics/ng-add/index.js +7 -7
  14. package/src/schematics/ng-add/index.js.map +1 -1
  15. package/bundles/rxap-environment.umd.js +0 -117
  16. package/bundles/rxap-environment.umd.js.map +0 -1
  17. package/esm2015/index.js +0 -6
  18. package/esm2015/index.js.map +0 -1
  19. package/esm2015/lib/environment/environment.component.js +0 -26
  20. package/esm2015/lib/environment/environment.component.js.map +0 -1
  21. package/esm2015/lib/environment/environment.component.module.js +0 -34
  22. package/esm2015/lib/environment/environment.component.module.js.map +0 -1
  23. package/esm2015/lib/environment/tokens.js +0 -3
  24. package/esm2015/lib/environment/tokens.js.map +0 -1
  25. package/esm2015/lib/environment.js +0 -2
  26. package/esm2015/lib/environment.js.map +0 -1
  27. package/esm2015/lib/update-environment.js +0 -15
  28. package/esm2015/lib/update-environment.js.map +0 -1
  29. package/esm2015/rxap-environment.js +0 -5
  30. package/esm2015/rxap-environment.js.map +0 -1
  31. package/fesm2015/rxap-environment.js.map +0 -1
@@ -0,0 +1,6 @@
1
+ export * from './lib/environment/environment.component.module';
2
+ export * from './lib/environment/environment.component';
3
+ export * from './lib/environment/tokens';
4
+ export * from './lib/environment';
5
+ export * from './lib/update-environment';
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL2Vudmlyb25tZW50L3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGdEQUFnRCxDQUFDO0FBQy9ELGNBQWMseUNBQXlDLENBQUM7QUFDeEQsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsMEJBQTBCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9lbnZpcm9ubWVudC9lbnZpcm9ubWVudC5jb21wb25lbnQubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2Vudmlyb25tZW50L2Vudmlyb25tZW50LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9lbnZpcm9ubWVudC90b2tlbnMnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZW52aXJvbm1lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvdXBkYXRlLWVudmlyb25tZW50JztcbiJdfQ==
@@ -0,0 +1,20 @@
1
+ import { Component, ChangeDetectionStrategy, Inject } from '@angular/core';
2
+ import { RXAP_ENVIRONMENT } from './tokens';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ export class EnvironmentComponent {
6
+ constructor(environment) {
7
+ this.environment = environment;
8
+ this.show = false;
9
+ }
10
+ }
11
+ EnvironmentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponent, deps: [{ token: RXAP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Component });
12
+ EnvironmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: EnvironmentComponent, selector: "rxap-environment", host: { classAttribute: "rxap-environment" }, ngImport: i0, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "date": i1.DatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponent, decorators: [{
14
+ type: Component,
15
+ args: [{ selector: 'rxap-environment', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-environment' }, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"] }]
16
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
17
+ type: Inject,
18
+ args: [RXAP_ENVIRONMENT]
19
+ }] }]; } });
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9lbnZpcm9ubWVudC9zcmMvbGliL2Vudmlyb25tZW50L2Vudmlyb25tZW50LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZW52aXJvbm1lbnQvc3JjL2xpYi9lbnZpcm9ubWVudC9lbnZpcm9ubWVudC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULHVCQUF1QixFQUN2QixNQUFNLEVBQ1AsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sVUFBVSxDQUFDOzs7QUFVNUMsTUFBTSxPQUFPLG9CQUFvQjtJQUkvQixZQUVrQixXQUF3QjtRQUF4QixnQkFBVyxHQUFYLFdBQVcsQ0FBYTtRQUpuQyxTQUFJLEdBQUcsS0FBSyxDQUFDO0lBS2pCLENBQUM7O2lIQVBPLG9CQUFvQixrQkFLckIsZ0JBQWdCO3FHQUxmLG9CQUFvQixzR0NmakMseW9DQTBDQTsyRkQzQmEsb0JBQW9CO2tCQVBoQyxTQUFTOytCQUNTLGtCQUFrQixtQkFHbEIsdUJBQXVCLENBQUMsTUFBTSxRQUM5QixFQUFFLEtBQUssRUFBRSxrQkFBa0IsRUFBRTs7MEJBTzNDLE1BQU07MkJBQUMsZ0JBQWdCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgQ29tcG9uZW50LFxuICBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneSxcbiAgSW5qZWN0XG59IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgUlhBUF9FTlZJUk9OTUVOVCB9IGZyb20gJy4vdG9rZW5zJztcbmltcG9ydCB7IEVudmlyb25tZW50IH0gZnJvbSAnLi4vZW52aXJvbm1lbnQnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICAgICAgICAncnhhcC1lbnZpcm9ubWVudCcsXG4gIHRlbXBsYXRlVXJsOiAgICAgJy4vZW52aXJvbm1lbnQuY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6ICAgICAgIFsgJy4vZW52aXJvbm1lbnQuY29tcG9uZW50LnNjc3MnIF0sXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxuICBob3N0OiAgICAgICAgICAgIHsgY2xhc3M6ICdyeGFwLWVudmlyb25tZW50JyB9XG59KVxuZXhwb3J0IGNsYXNzIEVudmlyb25tZW50Q29tcG9uZW50IHtcblxuICBwdWJsaWMgc2hvdyA9IGZhbHNlO1xuXG4gIGNvbnN0cnVjdG9yKFxuICAgIEBJbmplY3QoUlhBUF9FTlZJUk9OTUVOVClcbiAgICBwdWJsaWMgcmVhZG9ubHkgZW52aXJvbm1lbnQ6IEVudmlyb25tZW50XG4gICkge31cblxufVxuIiwiPGJ1dHRvbiAoY2xpY2spPVwic2hvdyA9ICFzaG93XCIgY2xhc3M9XCJjb2xsYXBzZS1idXR0b25cIj5cbiAgPHNwYW4gKm5nSWY9XCJzaG93OyBlbHNlIGhpZGRlblwiIGkxOG4+SGlkZSBidWlsZCBpbmZvPC9zcGFuPlxuICA8bmctdGVtcGxhdGUgI2hpZGRlbj5cbiAgICA8c3BhbiBpMThuPlNob3cgYnVpbGQgaW5mbzwvc3Bhbj5cbiAgPC9uZy10ZW1wbGF0ZT5cbjwvYnV0dG9uPlxuXG48dGFibGUgKm5nSWY9XCJzaG93XCI+XG4gIDx0ciAqbmdJZj1cImVudmlyb25tZW50Lm5hbWVcIj5cbiAgICA8dGg+RW52aXJvbm1lbnQ8L3RoPlxuICAgIDx0ZD57e2Vudmlyb25tZW50Lm5hbWV9fTwvdGQ+XG4gIDwvdHI+XG4gIDx0cj5cbiAgICA8dGg+UHJvZHVjdGlvbjwvdGg+XG4gICAgPHRkPnt7ZW52aXJvbm1lbnQucHJvZHVjdGlvbn19PC90ZD5cbiAgPC90cj5cbiAgPHRyICpuZ0lmPVwiZW52aXJvbm1lbnQuc2VydmljZVdvcmtlciAhPT0gdW5kZWZpbmVkXCI+XG4gICAgPHRoPlNlcnZpY2UgV29ya2VyPC90aD5cbiAgICA8dGQ+e3tlbnZpcm9ubWVudC5zZXJ2aWNlV29ya2VyfX08L3RkPlxuICA8L3RyPlxuICA8dHIgKm5nSWY9XCJlbnZpcm9ubWVudC5yZWxlYXNlXCI+XG4gICAgPHRoPlJlbGVhc2U8L3RoPlxuICAgIDx0ZD57e2Vudmlyb25tZW50LnJlbGVhc2V9fTwvdGQ+XG4gIDwvdHI+XG4gIDx0ciAqbmdJZj1cImVudmlyb25tZW50LmNvbW1pdFwiPlxuICAgIDx0aD5Db21taXQ8L3RoPlxuICAgIDx0ZD57e2Vudmlyb25tZW50LmNvbW1pdH19PC90ZD5cbiAgPC90cj5cbiAgPHRyICpuZ0lmPVwiZW52aXJvbm1lbnQudGltZXN0YW1wXCI+XG4gICAgPHRoPlRpbWVzdGFtcDwvdGg+XG4gICAgPHRkPnt7ZW52aXJvbm1lbnQudGltZXN0YW1wIHwgZGF0ZTonSEg6bW0gZGQuTU0ueXknfX08L3RkPlxuICA8L3RyPlxuICA8dHIgKm5nSWY9XCJlbnZpcm9ubWVudC5icmFuY2hcIj5cbiAgICA8dGg+QnJhbmNoPC90aD5cbiAgICA8dGQ+e3tlbnZpcm9ubWVudC5icmFuY2h9fTwvdGQ+XG4gIDwvdHI+XG4gIDx0ciAqbmdJZj1cImVudmlyb25tZW50LnRhZ1wiPlxuICAgIDx0aD5UYWc8L3RoPlxuICAgIDx0ZD57e2Vudmlyb25tZW50LnRhZ319PC90ZD5cbiAgPC90cj5cbiAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuPC90YWJsZT5cbiJdfQ==
@@ -0,0 +1,34 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { EnvironmentComponent } from './environment.component';
3
+ import { RXAP_ENVIRONMENT } from './tokens';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i0 from "@angular/core";
6
+ export class EnvironmentComponentModule {
7
+ static set(environment) {
8
+ return {
9
+ ngModule: EnvironmentComponentModule,
10
+ providers: [
11
+ {
12
+ provide: RXAP_ENVIRONMENT,
13
+ useValue: environment,
14
+ }
15
+ ]
16
+ };
17
+ }
18
+ }
19
+ EnvironmentComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
20
+ EnvironmentComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponentModule, declarations: [EnvironmentComponent], imports: [CommonModule], exports: [EnvironmentComponent] });
21
+ EnvironmentComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponentModule, imports: [[
22
+ CommonModule
23
+ ]] });
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponentModule, decorators: [{
25
+ type: NgModule,
26
+ args: [{
27
+ declarations: [EnvironmentComponent],
28
+ imports: [
29
+ CommonModule
30
+ ],
31
+ exports: [EnvironmentComponent]
32
+ }]
33
+ }] });
34
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnQuY29tcG9uZW50Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZW52aXJvbm1lbnQvc3JjL2xpYi9lbnZpcm9ubWVudC9lbnZpcm9ubWVudC5jb21wb25lbnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxRQUFRLEVBRVQsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFL0QsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sVUFBVSxDQUFDO0FBQzVDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7QUFVL0MsTUFBTSxPQUFPLDBCQUEwQjtJQUU5QixNQUFNLENBQUMsR0FBRyxDQUFDLFdBQXdCO1FBQ3hDLE9BQU87WUFDTCxRQUFRLEVBQUUsMEJBQTBCO1lBQ3BDLFNBQVMsRUFBRTtnQkFDVDtvQkFDRSxPQUFPLEVBQUUsZ0JBQWdCO29CQUN6QixRQUFRLEVBQUUsV0FBVztpQkFDdEI7YUFDRjtTQUNGLENBQUE7SUFDSCxDQUFDOzt1SEFaVSwwQkFBMEI7d0hBQTFCLDBCQUEwQixpQkFOdEIsb0JBQW9CLGFBRWpDLFlBQVksYUFFSixvQkFBb0I7d0hBRW5CLDBCQUEwQixZQUw1QjtZQUNQLFlBQVk7U0FDYjsyRkFHVSwwQkFBMEI7a0JBUHRDLFFBQVE7bUJBQUM7b0JBQ1IsWUFBWSxFQUFFLENBQUMsb0JBQW9CLENBQUM7b0JBQ3BDLE9BQU8sRUFBRTt3QkFDUCxZQUFZO3FCQUNiO29CQUNELE9BQU8sRUFBRSxDQUFDLG9CQUFvQixDQUFDO2lCQUNoQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIE5nTW9kdWxlLFxuICBNb2R1bGVXaXRoUHJvdmlkZXJzXG59IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgRW52aXJvbm1lbnRDb21wb25lbnQgfSBmcm9tICcuL2Vudmlyb25tZW50LmNvbXBvbmVudCc7XG5pbXBvcnQgeyBFbnZpcm9ubWVudCB9IGZyb20gJy4uL2Vudmlyb25tZW50JztcbmltcG9ydCB7IFJYQVBfRU5WSVJPTk1FTlQgfSBmcm9tICcuL3Rva2Vucyc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuXG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW0Vudmlyb25tZW50Q29tcG9uZW50XSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZVxuICBdLFxuICBleHBvcnRzOiBbRW52aXJvbm1lbnRDb21wb25lbnRdXG59KVxuZXhwb3J0IGNsYXNzIEVudmlyb25tZW50Q29tcG9uZW50TW9kdWxlIHtcblxuICBwdWJsaWMgc3RhdGljIHNldChlbnZpcm9ubWVudDogRW52aXJvbm1lbnQpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPEVudmlyb25tZW50Q29tcG9uZW50TW9kdWxlPiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBFbnZpcm9ubWVudENvbXBvbmVudE1vZHVsZSxcbiAgICAgIHByb3ZpZGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogUlhBUF9FTlZJUk9OTUVOVCxcbiAgICAgICAgICB1c2VWYWx1ZTogZW52aXJvbm1lbnQsXG4gICAgICAgIH1cbiAgICAgIF1cbiAgICB9XG4gIH1cblxufVxuIl19
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export const RXAP_ENVIRONMENT = new InjectionToken('rxap-environment');
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9lbnZpcm9ubWVudC9zcmMvbGliL2Vudmlyb25tZW50L3Rva2Vucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRy9DLE1BQU0sQ0FBQyxNQUFNLGdCQUFnQixHQUFHLElBQUksY0FBYyxDQUFjLGtCQUFrQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3Rpb25Ub2tlbiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgRW52aXJvbm1lbnQgfSBmcm9tICcuLi9lbnZpcm9ubWVudCc7XG5cbmV4cG9ydCBjb25zdCBSWEFQX0VOVklST05NRU5UID0gbmV3IEluamVjdGlvblRva2VuPEVudmlyb25tZW50PigncnhhcC1lbnZpcm9ubWVudCcpO1xuIl19
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2Vudmlyb25tZW50L3NyYy9saWIvZW52aXJvbm1lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgRW52aXJvbm1lbnQge1xuICAvKipcbiAgICogVGhlIG5hbWUgb2YgdGhlIGVudmlyb25tZW50XG4gICAqL1xuICBuYW1lPzogc3RyaW5nO1xuICAvKipcbiAgICogVGhlIGFwcCBpcyBjb21waWxlZCBmcm9tIGNvZGUgaW4gdGhlIHByb2R1Y3Rpb24gYnJhbmNoXG4gICAqL1xuICBwcm9kdWN0aW9uOiBib29sZWFuO1xuICAvKipcbiAgICogV2hlcmUgdGhlIHNlcnZpY2Ugd29ya2VyIGlzIGFjdGl2ZSBvciBub3RcbiAgICovXG4gIHNlcnZpY2VXb3JrZXI/OiBib29sZWFuO1xuICAvKipcbiAgICogVGhlIGN1cnJlbnQgYXBwIHJlbGVhc2VcbiAgICovXG4gIHJlbGVhc2U/OiBzdHJpbmcgfCBudWxsO1xuICAvKipcbiAgICogVGhlIGN1cnJlbnQgY29tbWl0XG4gICAqL1xuICBjb21taXQ/OiBzdHJpbmcgfCBudWxsO1xuICAvKipcbiAgICogVGhlIGJ1aWxkIHRpbWVzdGFtcFxuICAgKi9cbiAgdGltZXN0YW1wPzogc3RyaW5nIHwgbnVtYmVyIHwgbnVsbDtcbiAgLyoqXG4gICAqIFRoZSBjdXJyZW50IGJyYW5jaFxuICAgKi9cbiAgYnJhbmNoPzogc3RyaW5nIHwgbnVsbDtcbiAgLyoqXG4gICAqIFRoZSBjdXJyZW50IHRhZ1xuICAgKi9cbiAgdGFnPzogc3RyaW5nIHwgbnVsbDtcblxuICBbIGtleTogc3RyaW5nIF06IGFueTtcbn1cbiJdfQ==
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Loads the build.json and adds all keys to the environment object
3
+ */
4
+ export function UpdateEnvironment(environment, url = '/build.json') {
5
+ return fetch(url)
6
+ .then((response) => {
7
+ if (!response.ok) {
8
+ throw new Error('Could not load build.json');
9
+ }
10
+ return response.json();
11
+ })
12
+ .then((build) => Object.assign(environment, build))
13
+ .catch(error => console.error(error.message));
14
+ }
15
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBkYXRlLWVudmlyb25tZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9lbnZpcm9ubWVudC9zcmMvbGliL3VwZGF0ZS1lbnZpcm9ubWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sVUFBVSxpQkFBaUIsQ0FBQyxXQUFnQixFQUFFLE1BQWMsYUFBYTtJQUM3RSxPQUFPLEtBQUssQ0FBQyxHQUFHLENBQUM7U0FDZCxJQUFJLENBQUMsQ0FBQyxRQUFRLEVBQUUsRUFBRTtRQUNqQixJQUFJLENBQUMsUUFBUSxDQUFDLEVBQUUsRUFBRTtZQUNoQixNQUFNLElBQUksS0FBSyxDQUFDLDJCQUEyQixDQUFDLENBQUM7U0FDOUM7UUFDRCxPQUFPLFFBQVEsQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUN6QixDQUFDLENBQUM7U0FDRCxJQUFJLENBQUMsQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsV0FBVyxFQUFFLEtBQUssQ0FBQyxDQUFDO1NBQ2xELEtBQUssQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUM7QUFDbEQsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogTG9hZHMgdGhlIGJ1aWxkLmpzb24gYW5kIGFkZHMgYWxsIGtleXMgdG8gdGhlIGVudmlyb25tZW50IG9iamVjdFxuICovXG5leHBvcnQgZnVuY3Rpb24gVXBkYXRlRW52aXJvbm1lbnQoZW52aXJvbm1lbnQ6IGFueSwgdXJsOiBzdHJpbmcgPSAnL2J1aWxkLmpzb24nKSB7XG4gIHJldHVybiBmZXRjaCh1cmwpXG4gICAgLnRoZW4oKHJlc3BvbnNlKSA9PiB7XG4gICAgICBpZiAoIXJlc3BvbnNlLm9rKSB7XG4gICAgICAgIHRocm93IG5ldyBFcnJvcignQ291bGQgbm90IGxvYWQgYnVpbGQuanNvbicpO1xuICAgICAgfVxuICAgICAgcmV0dXJuIHJlc3BvbnNlLmpzb24oKTtcbiAgICB9KVxuICAgIC50aGVuKChidWlsZCkgPT4gT2JqZWN0LmFzc2lnbihlbnZpcm9ubWVudCwgYnVpbGQpKVxuICAgIC5jYXRjaChlcnJvciA9PiBjb25zb2xlLmVycm9yKGVycm9yLm1lc3NhZ2UpKTtcbn1cbiJdfQ==
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnhhcC1lbnZpcm9ubWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvZW52aXJvbm1lbnQvc3JjL3J4YXAtZW52aXJvbm1lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
@@ -0,0 +1,75 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Component, ChangeDetectionStrategy, Inject, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+
6
+ const RXAP_ENVIRONMENT = new InjectionToken('rxap-environment');
7
+
8
+ class EnvironmentComponent {
9
+ constructor(environment) {
10
+ this.environment = environment;
11
+ this.show = false;
12
+ }
13
+ }
14
+ EnvironmentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponent, deps: [{ token: RXAP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Component });
15
+ EnvironmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: EnvironmentComponent, selector: "rxap-environment", host: { classAttribute: "rxap-environment" }, ngImport: i0, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "date": i1.DatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponent, decorators: [{
17
+ type: Component,
18
+ args: [{ selector: 'rxap-environment', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-environment' }, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"] }]
19
+ }], ctorParameters: function () {
20
+ return [{ type: undefined, decorators: [{
21
+ type: Inject,
22
+ args: [RXAP_ENVIRONMENT]
23
+ }] }];
24
+ } });
25
+
26
+ class EnvironmentComponentModule {
27
+ static set(environment) {
28
+ return {
29
+ ngModule: EnvironmentComponentModule,
30
+ providers: [
31
+ {
32
+ provide: RXAP_ENVIRONMENT,
33
+ useValue: environment,
34
+ }
35
+ ]
36
+ };
37
+ }
38
+ }
39
+ EnvironmentComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
40
+ EnvironmentComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponentModule, declarations: [EnvironmentComponent], imports: [CommonModule], exports: [EnvironmentComponent] });
41
+ EnvironmentComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponentModule, imports: [[
42
+ CommonModule
43
+ ]] });
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponentModule, decorators: [{
45
+ type: NgModule,
46
+ args: [{
47
+ declarations: [EnvironmentComponent],
48
+ imports: [
49
+ CommonModule
50
+ ],
51
+ exports: [EnvironmentComponent]
52
+ }]
53
+ }] });
54
+
55
+ /**
56
+ * Loads the build.json and adds all keys to the environment object
57
+ */
58
+ function UpdateEnvironment(environment, url = '/build.json') {
59
+ return fetch(url)
60
+ .then((response) => {
61
+ if (!response.ok) {
62
+ throw new Error('Could not load build.json');
63
+ }
64
+ return response.json();
65
+ })
66
+ .then((build) => Object.assign(environment, build))
67
+ .catch(error => console.error(error.message));
68
+ }
69
+
70
+ /**
71
+ * Generated bundle index. Do not edit.
72
+ */
73
+
74
+ export { EnvironmentComponent, EnvironmentComponentModule, RXAP_ENVIRONMENT, UpdateEnvironment };
75
+ //# sourceMappingURL=rxap-environment.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rxap-environment.mjs","sources":["../../../../libs/environment/src/lib/environment/tokens.ts","../../../../libs/environment/src/lib/environment/environment.component.ts","../../../../libs/environment/src/lib/environment/environment.component.html","../../../../libs/environment/src/lib/environment/environment.component.module.ts","../../../../libs/environment/src/lib/update-environment.ts","../../../../libs/environment/src/rxap-environment.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Environment } from '../environment';\n\nexport const RXAP_ENVIRONMENT = new InjectionToken<Environment>('rxap-environment');\n","import {\n Component,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { Environment } from '../environment';\n\n@Component({\n selector: 'rxap-environment',\n templateUrl: './environment.component.html',\n styleUrls: [ './environment.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-environment' }\n})\nexport class EnvironmentComponent {\n\n public show = false;\n\n constructor(\n @Inject(RXAP_ENVIRONMENT)\n public readonly environment: Environment\n ) {}\n\n}\n","<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n","import {\n NgModule,\n ModuleWithProviders\n} from '@angular/core';\nimport { EnvironmentComponent } from './environment.component';\nimport { Environment } from '../environment';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [EnvironmentComponent],\n imports: [\n CommonModule\n ],\n exports: [EnvironmentComponent]\n})\nexport class EnvironmentComponentModule {\n\n public static set(environment: Environment): ModuleWithProviders<EnvironmentComponentModule> {\n return {\n ngModule: EnvironmentComponentModule,\n providers: [\n {\n provide: RXAP_ENVIRONMENT,\n useValue: environment,\n }\n ]\n }\n }\n\n}\n","/**\n * Loads the build.json and adds all keys to the environment object\n */\nexport function UpdateEnvironment(environment: any, url: string = '/build.json') {\n return fetch(url)\n .then((response) => {\n if (!response.ok) {\n throw new Error('Could not load build.json');\n }\n return response.json();\n })\n .then((build) => Object.assign(environment, build))\n .catch(error => console.error(error.message));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAGa,gBAAgB,GAAG,IAAI,cAAc,CAAc,kBAAkB;;MCYrE,oBAAoB;IAI/B,YAEkB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QAJnC,SAAI,GAAG,KAAK,CAAC;KAKhB;;iHAPO,oBAAoB,kBAKrB,gBAAgB;qGALf,oBAAoB,sGCfjC,yoCA0CA;2FD3Ba,oBAAoB;kBAPhC,SAAS;+BACS,kBAAkB,mBAGlB,uBAAuB,CAAC,MAAM,QAC9B,EAAE,KAAK,EAAE,kBAAkB,EAAE;;;8BAO3C,MAAM;+BAAC,gBAAgB;;;;MEHf,0BAA0B;IAE9B,OAAO,GAAG,CAAC,WAAwB;QACxC,OAAO;YACL,QAAQ,EAAE,0BAA0B;YACpC,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,gBAAgB;oBACzB,QAAQ,EAAE,WAAW;iBACtB;aACF;SACF,CAAA;KACF;;uHAZU,0BAA0B;wHAA1B,0BAA0B,iBANtB,oBAAoB,aAEjC,YAAY,aAEJ,oBAAoB;wHAEnB,0BAA0B,YAL5B;YACP,YAAY;SACb;2FAGU,0BAA0B;kBAPtC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,oBAAoB,CAAC;oBACpC,OAAO,EAAE;wBACP,YAAY;qBACb;oBACD,OAAO,EAAE,CAAC,oBAAoB,CAAC;iBAChC;;;AChBD;;;SAGgB,iBAAiB,CAAC,WAAgB,EAAE,MAAc,aAAa;IAC7E,OAAO,KAAK,CAAC,GAAG,CAAC;SACd,IAAI,CAAC,CAAC,QAAQ;QACb,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;YAChB,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C;QACD,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;KACxB,CAAC;SACD,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;SAClD,KAAK,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAClD;;ACbA;;;;;;"}
@@ -11,17 +11,11 @@ class EnvironmentComponent {
11
11
  this.show = false;
12
12
  }
13
13
  }
14
- EnvironmentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EnvironmentComponent, deps: [{ token: RXAP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Component });
15
- EnvironmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: EnvironmentComponent, selector: "rxap-environment", host: { classAttribute: "rxap-environment" }, ngImport: i0, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table td,table th{font-size:75%}"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "date": i1.DatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EnvironmentComponent, decorators: [{
14
+ EnvironmentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponent, deps: [{ token: RXAP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Component });
15
+ EnvironmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: EnvironmentComponent, selector: "rxap-environment", host: { classAttribute: "rxap-environment" }, ngImport: i0, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "date": i1.DatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponent, decorators: [{
17
17
  type: Component,
18
- args: [{
19
- selector: 'rxap-environment',
20
- templateUrl: './environment.component.html',
21
- styleUrls: ['./environment.component.scss'],
22
- changeDetection: ChangeDetectionStrategy.OnPush,
23
- host: { class: 'rxap-environment' }
24
- }]
18
+ args: [{ selector: 'rxap-environment', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-environment' }, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table th,table td{font-size:75%}\n"] }]
25
19
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
26
20
  type: Inject,
27
21
  args: [RXAP_ENVIRONMENT]
@@ -40,12 +34,12 @@ class EnvironmentComponentModule {
40
34
  };
41
35
  }
42
36
  }
43
- EnvironmentComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EnvironmentComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
44
- EnvironmentComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EnvironmentComponentModule, declarations: [EnvironmentComponent], imports: [CommonModule], exports: [EnvironmentComponent] });
45
- EnvironmentComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EnvironmentComponentModule, imports: [[
37
+ EnvironmentComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
38
+ EnvironmentComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponentModule, declarations: [EnvironmentComponent], imports: [CommonModule], exports: [EnvironmentComponent] });
39
+ EnvironmentComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponentModule, imports: [[
46
40
  CommonModule
47
41
  ]] });
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EnvironmentComponentModule, decorators: [{
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: EnvironmentComponentModule, decorators: [{
49
43
  type: NgModule,
50
44
  args: [{
51
45
  declarations: [EnvironmentComponent],
@@ -76,4 +70,4 @@ function UpdateEnvironment(environment, url = '/build.json') {
76
70
  */
77
71
 
78
72
  export { EnvironmentComponent, EnvironmentComponentModule, RXAP_ENVIRONMENT, UpdateEnvironment };
79
- //# sourceMappingURL=rxap-environment.js.map
73
+ //# sourceMappingURL=rxap-environment.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rxap-environment.mjs","sources":["../../../../libs/environment/src/lib/environment/tokens.ts","../../../../libs/environment/src/lib/environment/environment.component.ts","../../../../libs/environment/src/lib/environment/environment.component.html","../../../../libs/environment/src/lib/environment/environment.component.module.ts","../../../../libs/environment/src/lib/update-environment.ts","../../../../libs/environment/src/rxap-environment.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Environment } from '../environment';\n\nexport const RXAP_ENVIRONMENT = new InjectionToken<Environment>('rxap-environment');\n","import {\n Component,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { Environment } from '../environment';\n\n@Component({\n selector: 'rxap-environment',\n templateUrl: './environment.component.html',\n styleUrls: [ './environment.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-environment' }\n})\nexport class EnvironmentComponent {\n\n public show = false;\n\n constructor(\n @Inject(RXAP_ENVIRONMENT)\n public readonly environment: Environment\n ) {}\n\n}\n","<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date:'HH:mm dd.MM.yy'}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n","import {\n NgModule,\n ModuleWithProviders\n} from '@angular/core';\nimport { EnvironmentComponent } from './environment.component';\nimport { Environment } from '../environment';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [EnvironmentComponent],\n imports: [\n CommonModule\n ],\n exports: [EnvironmentComponent]\n})\nexport class EnvironmentComponentModule {\n\n public static set(environment: Environment): ModuleWithProviders<EnvironmentComponentModule> {\n return {\n ngModule: EnvironmentComponentModule,\n providers: [\n {\n provide: RXAP_ENVIRONMENT,\n useValue: environment,\n }\n ]\n }\n }\n\n}\n","/**\n * Loads the build.json and adds all keys to the environment object\n */\nexport function UpdateEnvironment(environment: any, url: string = '/build.json') {\n return fetch(url)\n .then((response) => {\n if (!response.ok) {\n throw new Error('Could not load build.json');\n }\n return response.json();\n })\n .then((build) => Object.assign(environment, build))\n .catch(error => console.error(error.message));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAGa,gBAAgB,GAAG,IAAI,cAAc,CAAc,kBAAkB;;MCYrE,oBAAoB;IAI/B,YAEkB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QAJnC,SAAI,GAAG,KAAK,CAAC;KAKhB;;iHAPO,oBAAoB,kBAKrB,gBAAgB;qGALf,oBAAoB,sGCfjC,yoCA0CA;2FD3Ba,oBAAoB;kBAPhC,SAAS;+BACS,kBAAkB,mBAGlB,uBAAuB,CAAC,MAAM,QAC9B,EAAE,KAAK,EAAE,kBAAkB,EAAE;;0BAO3C,MAAM;2BAAC,gBAAgB;;;MEHf,0BAA0B;IAE9B,OAAO,GAAG,CAAC,WAAwB;QACxC,OAAO;YACL,QAAQ,EAAE,0BAA0B;YACpC,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,gBAAgB;oBACzB,QAAQ,EAAE,WAAW;iBACtB;aACF;SACF,CAAA;KACF;;uHAZU,0BAA0B;wHAA1B,0BAA0B,iBANtB,oBAAoB,aAEjC,YAAY,aAEJ,oBAAoB;wHAEnB,0BAA0B,YAL5B;YACP,YAAY;SACb;2FAGU,0BAA0B;kBAPtC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,oBAAoB,CAAC;oBACpC,OAAO,EAAE;wBACP,YAAY;qBACb;oBACD,OAAO,EAAE,CAAC,oBAAoB,CAAC;iBAChC;;;AChBD;;;SAGgB,iBAAiB,CAAC,WAAgB,EAAE,MAAc,aAAa;IAC7E,OAAO,KAAK,CAAC,GAAG,CAAC;SACd,IAAI,CAAC,CAAC,QAAQ;QACb,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;YAChB,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C;QACD,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;KACxB,CAAC;SACD,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;SAClD,KAAK,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAClD;;ACbA;;;;;;"}
package/package.json CHANGED
@@ -1,9 +1,11 @@
1
1
  {
2
2
  "name": "@rxap/environment",
3
- "version": "12.1.0-next.1",
3
+ "version": "13.0.0-next.0",
4
4
  "peerDependencies": {
5
- "@angular/common": "^12.0.1",
6
- "@angular/core": "^12.0.1"
5
+ "@angular-devkit/schematics": "^13.2.4",
6
+ "@angular/common": "^13.2.3",
7
+ "@angular/core": "^13.2.3",
8
+ "@angular/platform-browser-dynamic": "^13.2.3"
7
9
  },
8
10
  "schematics": "./collection.json",
9
11
  "ng-update": {
@@ -33,17 +35,30 @@
33
35
  "save": "dependencies"
34
36
  },
35
37
  "dependencies": {
36
- "@rxap/schematics-ts-morph": "^12.1.0",
37
- "@rxap/schematics-utilities": "^12.3.5",
38
- "ts-morph": "^10.1.0",
39
- "tslib": "^2.2.0",
40
- "@angular/localize": "~12.0.1"
38
+ "@rxap/schematics-ts-morph": "^13.0.0-next.0",
39
+ "@rxap/schematics-utilities": "^13.0.0-next.0",
40
+ "ts-morph": "^13.0.3",
41
+ "tslib": "^2.3.1",
42
+ "@angular/localize": "13.2.3"
41
43
  },
42
- "main": "bundles/rxap-environment.umd.js",
43
- "module": "fesm2015/rxap-environment.js",
44
- "es2015": "fesm2015/rxap-environment.js",
45
- "esm2015": "esm2015/rxap-environment.js",
46
- "fesm2015": "fesm2015/rxap-environment.js",
44
+ "module": "fesm2015/rxap-environment.mjs",
45
+ "es2020": "fesm2020/rxap-environment.mjs",
46
+ "esm2020": "esm2020/rxap-environment.mjs",
47
+ "fesm2020": "fesm2020/rxap-environment.mjs",
48
+ "fesm2015": "fesm2015/rxap-environment.mjs",
47
49
  "typings": "rxap-environment.d.ts",
50
+ "exports": {
51
+ "./package.json": {
52
+ "default": "./package.json"
53
+ },
54
+ ".": {
55
+ "types": "./rxap-environment.d.ts",
56
+ "esm2020": "./esm2020/rxap-environment.mjs",
57
+ "es2020": "./fesm2020/rxap-environment.mjs",
58
+ "es2015": "./fesm2015/rxap-environment.mjs",
59
+ "node": "./fesm2015/rxap-environment.mjs",
60
+ "default": "./fesm2020/rxap-environment.mjs"
61
+ }
62
+ },
48
63
  "sideEffects": false
49
64
  }
@@ -7,20 +7,20 @@ const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
7
7
  function default_1(options) {
8
8
  return (host) => {
9
9
  const rules = [
10
- schematics_utilities_1.InstallPeerDependencies()
10
+ (0, schematics_utilities_1.InstallPeerDependencies)()
11
11
  ];
12
12
  if (options.project) {
13
- const projectSourceRoot = schematics_utilities_1.GetProjectSourceRoot(host, options.project);
13
+ const projectSourceRoot = (0, schematics_utilities_1.GetProjectSourceRoot)(host, options.project);
14
14
  const project = new ts_morph_1.Project({
15
15
  useInMemoryFileSystem: true,
16
16
  manipulationSettings: { quoteKind: ts_morph_1.QuoteKind.Single, indentationText: ts_morph_1.IndentationText.TwoSpaces }
17
17
  });
18
- schematics_ts_morph_1.AddDir(host.getDir(projectSourceRoot), project);
18
+ (0, schematics_ts_morph_1.AddDir)(host.getDir(projectSourceRoot), project);
19
19
  const appModelSourceFile = project.getSourceFile('/app/app.module.ts');
20
20
  if (!appModelSourceFile) {
21
21
  throw new schematics_1.SchematicsException(`Could not find the AppModule source file in '[projectSourceRoot]/app/app.module.ts'`);
22
22
  }
23
- schematics_ts_morph_1.AddNgModuleProvider(appModelSourceFile, {
23
+ (0, schematics_ts_morph_1.AddNgModuleProvider)(appModelSourceFile, {
24
24
  provide: 'RXAP_ENVIRONMENT',
25
25
  useValue: 'environment'
26
26
  }, [
@@ -37,7 +37,7 @@ function default_1(options) {
37
37
  if (!mainSourceFile) {
38
38
  throw new schematics_1.SchematicsException(`Could not find the main.ts source file in '[projectSourceRoot]/main.ts'`);
39
39
  }
40
- schematics_ts_morph_1.AddToArray(mainSourceFile, 'setup', 'UpdateEnvironment(environment)', 'Promise<any>[]');
40
+ (0, schematics_ts_morph_1.AddToArray)(mainSourceFile, 'setup', 'UpdateEnvironment(environment)', 'Promise<any>[]');
41
41
  mainSourceFile.addImportDeclarations([
42
42
  {
43
43
  namedImports: ['UpdateEnvironment'],
@@ -48,9 +48,9 @@ function default_1(options) {
48
48
  moduleSpecifier: './environments/environment'
49
49
  }
50
50
  ]);
51
- rules.push(schematics_ts_morph_1.ApplyTsMorphProject(project, projectSourceRoot));
51
+ rules.push((0, schematics_ts_morph_1.ApplyTsMorphProject)(project, projectSourceRoot));
52
52
  }
53
- return schematics_1.chain(rules);
53
+ return (0, schematics_1.chain)(rules);
54
54
  };
55
55
  }
56
56
  exports.default = default_1;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/environment/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AAAA,2DAKoC;AACpC,qEAGoC;AAEpC,uCAIkB;AAClB,mEAKmC;AAEnC,mBAAwB,OAAoB;IAC1C,OAAO,CAAC,IAAU,EAAE,EAAE;QAEpB,MAAM,KAAK,GAAW;YACpB,8CAAuB,EAAE;SAC1B,CAAC;QAEF,IAAI,OAAO,CAAC,OAAO,EAAE;YACnB,MAAM,iBAAiB,GAAG,2CAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;YACtE,MAAM,OAAO,GAAa,IAAI,kBAAO,CAAC;gBACpC,qBAAqB,EAAE,IAAI;gBAC3B,oBAAoB,EAAG,EAAE,SAAS,EAAE,oBAAS,CAAC,MAAM,EAAE,eAAe,EAAE,0BAAe,CAAC,SAAS,EAAE;aACnG,CAAC,CAAC;YACH,4BAAM,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,CAAC;YAEhD,MAAM,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;YAEvE,IAAI,CAAC,kBAAkB,EAAE;gBACvB,MAAM,IAAI,gCAAmB,CAAC,qFAAqF,CAAC,CAAC;aACtH;YAED,yCAAmB,CACjB,kBAAkB,EAClB;gBACE,OAAO,EAAG,kBAAkB;gBAC5B,QAAQ,EAAE,aAAa;aACxB,EACD;gBACE;oBACE,YAAY,EAAK,CAAE,kBAAkB,CAAE;oBACvC,eAAe,EAAE,mBAAmB;iBACrC;gBACD;oBACE,YAAY,EAAK,CAAE,aAAa,CAAE;oBAClC,eAAe,EAAE,6BAA6B;iBAC/C;aACF,CACF,CAAC;YAEF,MAAM,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YAEzD,IAAI,CAAC,cAAc,EAAE;gBACnB,MAAM,IAAI,gCAAmB,CAAC,yEAAyE,CAAC,CAAC;aAC1G;YAED,gCAAU,CACR,cAAc,EACd,OAAO,EACP,gCAAgC,EAChC,gBAAgB,CACjB,CAAC;YAEF,cAAc,CAAC,qBAAqB,CAAC;gBACnC;oBACE,YAAY,EAAK,CAAE,mBAAmB,CAAE;oBACxC,eAAe,EAAE,mBAAmB;iBACrC;gBACD;oBACE,YAAY,EAAK,CAAE,aAAa,CAAE;oBAClC,eAAe,EAAE,4BAA4B;iBAC9C;aACF,CAAC,CAAC;YAEH,KAAK,CAAC,IAAI,CAAC,yCAAmB,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC;SAC7D;QAED,OAAO,kBAAK,CAAC,KAAK,CAAC,CAAC;IAEtB,CAAC,CAAC;AACJ,CAAC;AArED,4BAqEC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/environment/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AAAA,2DAKoC;AACpC,qEAGoC;AAEpC,uCAIkB;AAClB,mEAKmC;AAEnC,mBAAwB,OAAoB;IAC1C,OAAO,CAAC,IAAU,EAAE,EAAE;QAEpB,MAAM,KAAK,GAAW;YACpB,IAAA,8CAAuB,GAAE;SAC1B,CAAC;QAEF,IAAI,OAAO,CAAC,OAAO,EAAE;YACnB,MAAM,iBAAiB,GAAG,IAAA,2CAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;YACtE,MAAM,OAAO,GAAa,IAAI,kBAAO,CAAC;gBACpC,qBAAqB,EAAE,IAAI;gBAC3B,oBAAoB,EAAG,EAAE,SAAS,EAAE,oBAAS,CAAC,MAAM,EAAE,eAAe,EAAE,0BAAe,CAAC,SAAS,EAAE;aACnG,CAAC,CAAC;YACH,IAAA,4BAAM,EAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,CAAC;YAEhD,MAAM,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;YAEvE,IAAI,CAAC,kBAAkB,EAAE;gBACvB,MAAM,IAAI,gCAAmB,CAAC,qFAAqF,CAAC,CAAC;aACtH;YAED,IAAA,yCAAmB,EACjB,kBAAkB,EAClB;gBACE,OAAO,EAAG,kBAAkB;gBAC5B,QAAQ,EAAE,aAAa;aACxB,EACD;gBACE;oBACE,YAAY,EAAK,CAAE,kBAAkB,CAAE;oBACvC,eAAe,EAAE,mBAAmB;iBACrC;gBACD;oBACE,YAAY,EAAK,CAAE,aAAa,CAAE;oBAClC,eAAe,EAAE,6BAA6B;iBAC/C;aACF,CACF,CAAC;YAEF,MAAM,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YAEzD,IAAI,CAAC,cAAc,EAAE;gBACnB,MAAM,IAAI,gCAAmB,CAAC,yEAAyE,CAAC,CAAC;aAC1G;YAED,IAAA,gCAAU,EACR,cAAc,EACd,OAAO,EACP,gCAAgC,EAChC,gBAAgB,CACjB,CAAC;YAEF,cAAc,CAAC,qBAAqB,CAAC;gBACnC;oBACE,YAAY,EAAK,CAAE,mBAAmB,CAAE;oBACxC,eAAe,EAAE,mBAAmB;iBACrC;gBACD;oBACE,YAAY,EAAK,CAAE,aAAa,CAAE;oBAClC,eAAe,EAAE,4BAA4B;iBAC9C;aACF,CAAC,CAAC;YAEH,KAAK,CAAC,IAAI,CAAC,IAAA,yCAAmB,EAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC;SAC7D;QAED,OAAO,IAAA,kBAAK,EAAC,KAAK,CAAC,CAAC;IAEtB,CAAC,CAAC;AACJ,CAAC;AArED,4BAqEC"}
@@ -1,117 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) :
3
- typeof define === 'function' && define.amd ? define('@rxap/environment', ['exports', '@angular/core', '@angular/common'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap.environment = {}), global.ng.core, global.ng.common));
5
- }(this, (function (exports, i0, i1) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () {
17
- return e[k];
18
- }
19
- });
20
- }
21
- });
22
- }
23
- n['default'] = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
-
30
- var RXAP_ENVIRONMENT = new i0.InjectionToken('rxap-environment');
31
-
32
- var EnvironmentComponent = /** @class */ (function () {
33
- function EnvironmentComponent(environment) {
34
- this.environment = environment;
35
- this.show = false;
36
- }
37
- return EnvironmentComponent;
38
- }());
39
- EnvironmentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EnvironmentComponent, deps: [{ token: RXAP_ENVIRONMENT }], target: i0__namespace.ɵɵFactoryTarget.Component });
40
- EnvironmentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: EnvironmentComponent, selector: "rxap-environment", host: { classAttribute: "rxap-environment" }, ngImport: i0__namespace, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table td,table th{font-size:75%}"], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "date": i1__namespace.DatePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
41
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EnvironmentComponent, decorators: [{
42
- type: i0.Component,
43
- args: [{
44
- selector: 'rxap-environment',
45
- templateUrl: './environment.component.html',
46
- styleUrls: ['./environment.component.scss'],
47
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
48
- host: { class: 'rxap-environment' }
49
- }]
50
- }], ctorParameters: function () {
51
- return [{ type: undefined, decorators: [{
52
- type: i0.Inject,
53
- args: [RXAP_ENVIRONMENT]
54
- }] }];
55
- } });
56
-
57
- var EnvironmentComponentModule = /** @class */ (function () {
58
- function EnvironmentComponentModule() {
59
- }
60
- EnvironmentComponentModule.set = function (environment) {
61
- return {
62
- ngModule: EnvironmentComponentModule,
63
- providers: [
64
- {
65
- provide: RXAP_ENVIRONMENT,
66
- useValue: environment,
67
- }
68
- ]
69
- };
70
- };
71
- return EnvironmentComponentModule;
72
- }());
73
- EnvironmentComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EnvironmentComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
74
- EnvironmentComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EnvironmentComponentModule, declarations: [EnvironmentComponent], imports: [i1.CommonModule], exports: [EnvironmentComponent] });
75
- EnvironmentComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EnvironmentComponentModule, imports: [[
76
- i1.CommonModule
77
- ]] });
78
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EnvironmentComponentModule, decorators: [{
79
- type: i0.NgModule,
80
- args: [{
81
- declarations: [EnvironmentComponent],
82
- imports: [
83
- i1.CommonModule
84
- ],
85
- exports: [EnvironmentComponent]
86
- }]
87
- }] });
88
-
89
- /**
90
- * Loads the build.json and adds all keys to the environment object
91
- */
92
- function UpdateEnvironment(environment, url) {
93
- if (url === void 0) { url = '/build.json'; }
94
- return fetch(url)
95
- .then(function (response) {
96
- if (!response.ok) {
97
- throw new Error('Could not load build.json');
98
- }
99
- return response.json();
100
- })
101
- .then(function (build) { return Object.assign(environment, build); })
102
- .catch(function (error) { return console.error(error.message); });
103
- }
104
-
105
- /**
106
- * Generated bundle index. Do not edit.
107
- */
108
-
109
- exports.EnvironmentComponent = EnvironmentComponent;
110
- exports.EnvironmentComponentModule = EnvironmentComponentModule;
111
- exports.RXAP_ENVIRONMENT = RXAP_ENVIRONMENT;
112
- exports.UpdateEnvironment = UpdateEnvironment;
113
-
114
- Object.defineProperty(exports, '__esModule', { value: true });
115
-
116
- })));
117
- //# sourceMappingURL=rxap-environment.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rxap-environment.umd.js","sources":["../../../../libs/environment/src/lib/environment/tokens.ts","../../../../libs/environment/src/lib/environment/environment.component.ts","../../../../libs/environment/src/lib/environment/environment.component.html","../../../../libs/environment/src/lib/environment/environment.component.module.ts","../../../../libs/environment/src/lib/update-environment.ts","../../../../libs/environment/src/rxap-environment.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Environment } from '../environment';\n\nexport const RXAP_ENVIRONMENT = new InjectionToken<Environment>('rxap-environment');\n","import {\n Component,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { Environment } from '../environment';\n\n@Component({\n selector: 'rxap-environment',\n templateUrl: './environment.component.html',\n styleUrls: [ './environment.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-environment' }\n})\nexport class EnvironmentComponent {\n\n public show = false;\n\n constructor(\n @Inject(RXAP_ENVIRONMENT)\n public readonly environment: Environment\n ) {}\n\n}\n","<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n","import {\n NgModule,\n ModuleWithProviders\n} from '@angular/core';\nimport { EnvironmentComponent } from './environment.component';\nimport { Environment } from '../environment';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [EnvironmentComponent],\n imports: [\n CommonModule\n ],\n exports: [EnvironmentComponent]\n})\nexport class EnvironmentComponentModule {\n\n public static set(environment: Environment): ModuleWithProviders<EnvironmentComponentModule> {\n return {\n ngModule: EnvironmentComponentModule,\n providers: [\n {\n provide: RXAP_ENVIRONMENT,\n useValue: environment,\n }\n ]\n }\n }\n\n}\n","/**\n * Loads the build.json and adds all keys to the environment object\n */\nexport function UpdateEnvironment(environment: any, url: string = '/build.json') {\n return fetch(url)\n .then((response) => {\n if (!response.ok) {\n throw new Error('Could not load build.json');\n }\n return response.json();\n })\n .then((build) => Object.assign(environment, build))\n .catch(error => console.error(error.message));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["InjectionToken","Component","ChangeDetectionStrategy","Inject","CommonModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGa,gBAAgB,GAAG,IAAIA,iBAAc,CAAc,kBAAkB;;;QCgBhF,8BAEkB,WAAwB;YAAxB,gBAAW,GAAX,WAAW,CAAa;YAJnC,SAAI,GAAG,KAAK,CAAC;SAKhB;;;2IAPO,oBAAoB,kBAKrB,gBAAgB;oHALf,oBAAoB,iHCfjC,wnCA0CA;qHD3Ba,oBAAoB;sBAPhCC,YAAS;uBAAC;wBACT,QAAQ,EAAS,kBAAkB;wBACnC,WAAW,EAAM,8BAA8B;wBAC/C,SAAS,EAAQ,CAAE,8BAA8B,CAAE;wBACnD,eAAe,EAAEC,0BAAuB,CAAC,MAAM;wBAC/C,IAAI,EAAa,EAAE,KAAK,EAAE,kBAAkB,EAAE;qBAC/C;;;kCAMIC,SAAM;mCAAC,gBAAgB;;;;;QEH5B;;QAEgB,8BAAG,GAAV,UAAW,WAAwB;YACxC,OAAO;gBACL,QAAQ,EAAE,0BAA0B;gBACpC,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,gBAAgB;wBACzB,QAAQ,EAAE,WAAW;qBACtB;iBACF;aACF,CAAA;SACF;;;iJAZU,0BAA0B;kJAA1B,0BAA0B,iBANtB,oBAAoB,aAEjCC,eAAY,aAEJ,oBAAoB;kJAEnB,0BAA0B,YAL5B;gBACPA,eAAY;aACb;qHAGU,0BAA0B;sBAPtCC,WAAQ;uBAAC;wBACR,YAAY,EAAE,CAAC,oBAAoB,CAAC;wBACpC,OAAO,EAAE;4BACPD,eAAY;yBACb;wBACD,OAAO,EAAE,CAAC,oBAAoB,CAAC;qBAChC;;;IChBD;;;aAGgB,iBAAiB,CAAC,WAAgB,EAAE,GAA2B;QAA3B,oBAAA,EAAA,mBAA2B;QAC7E,OAAO,KAAK,CAAC,GAAG,CAAC;aACd,IAAI,CAAC,UAAC,QAAQ;YACb,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;gBAChB,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;aAC9C;YACD,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;SACxB,CAAC;aACD,IAAI,CAAC,UAAC,KAAK,IAAK,OAAA,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,GAAA,CAAC;aAClD,KAAK,CAAC,UAAA,KAAK,IAAI,OAAA,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,GAAA,CAAC,CAAC;IAClD;;ICbA;;;;;;;;;;;;;;;"}
package/esm2015/index.js DELETED
@@ -1,6 +0,0 @@
1
- export * from './lib/environment/environment.component.module';
2
- export * from './lib/environment/environment.component';
3
- export * from './lib/environment/tokens';
4
- export * from './lib/environment';
5
- export * from './lib/update-environment';
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/environment/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC;AAC/D,cAAc,yCAAyC,CAAC;AACxD,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC","sourcesContent":["export * from './lib/environment/environment.component.module';\nexport * from './lib/environment/environment.component';\nexport * from './lib/environment/tokens';\nexport * from './lib/environment';\nexport * from './lib/update-environment';\n"]}
@@ -1,26 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, Inject } from '@angular/core';
2
- import { RXAP_ENVIRONMENT } from './tokens';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/common";
5
- export class EnvironmentComponent {
6
- constructor(environment) {
7
- this.environment = environment;
8
- this.show = false;
9
- }
10
- }
11
- EnvironmentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EnvironmentComponent, deps: [{ token: RXAP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Component });
12
- EnvironmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: EnvironmentComponent, selector: "rxap-environment", host: { classAttribute: "rxap-environment" }, ngImport: i0, template: "<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n", styles: [".collapse-button{background-color:transparent;margin:8px 8px 20px;border:none;cursor:pointer;width:calc(100% - 16px)}table th{text-align:left;padding-right:16px}table td,table th{font-size:75%}"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "date": i1.DatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EnvironmentComponent, decorators: [{
14
- type: Component,
15
- args: [{
16
- selector: 'rxap-environment',
17
- templateUrl: './environment.component.html',
18
- styleUrls: ['./environment.component.scss'],
19
- changeDetection: ChangeDetectionStrategy.OnPush,
20
- host: { class: 'rxap-environment' }
21
- }]
22
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
23
- type: Inject,
24
- args: [RXAP_ENVIRONMENT]
25
- }] }]; } });
26
- //# sourceMappingURL=environment.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"environment.component.js","sourceRoot":"","sources":["../../../../../../libs/environment/src/lib/environment/environment.component.ts","../../../../../../libs/environment/src/lib/environment/environment.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,MAAM,EACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;;;AAU5C,MAAM,OAAO,oBAAoB;IAI/B,YAEkB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QAJnC,SAAI,GAAG,KAAK,CAAC;IAKjB,CAAC;;iHAPO,oBAAoB,kBAKrB,gBAAgB;qGALf,oBAAoB,sGCfjC,wnCA0CA;2FD3Ba,oBAAoB;kBAPhC,SAAS;mBAAC;oBACT,QAAQ,EAAS,kBAAkB;oBACnC,WAAW,EAAM,8BAA8B;oBAC/C,SAAS,EAAQ,CAAE,8BAA8B,CAAE;oBACnD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAa,EAAE,KAAK,EAAE,kBAAkB,EAAE;iBAC/C;;0BAMI,MAAM;2BAAC,gBAAgB","sourcesContent":["import {\n Component,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { Environment } from '../environment';\n\n@Component({\n selector: 'rxap-environment',\n templateUrl: './environment.component.html',\n styleUrls: [ './environment.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-environment' }\n})\nexport class EnvironmentComponent {\n\n public show = false;\n\n constructor(\n @Inject(RXAP_ENVIRONMENT)\n public readonly environment: Environment\n ) {}\n\n}\n","<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n"]}
@@ -1,34 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { EnvironmentComponent } from './environment.component';
3
- import { RXAP_ENVIRONMENT } from './tokens';
4
- import { CommonModule } from '@angular/common';
5
- import * as i0 from "@angular/core";
6
- export class EnvironmentComponentModule {
7
- static set(environment) {
8
- return {
9
- ngModule: EnvironmentComponentModule,
10
- providers: [
11
- {
12
- provide: RXAP_ENVIRONMENT,
13
- useValue: environment,
14
- }
15
- ]
16
- };
17
- }
18
- }
19
- EnvironmentComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EnvironmentComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
20
- EnvironmentComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EnvironmentComponentModule, declarations: [EnvironmentComponent], imports: [CommonModule], exports: [EnvironmentComponent] });
21
- EnvironmentComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EnvironmentComponentModule, imports: [[
22
- CommonModule
23
- ]] });
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EnvironmentComponentModule, decorators: [{
25
- type: NgModule,
26
- args: [{
27
- declarations: [EnvironmentComponent],
28
- imports: [
29
- CommonModule
30
- ],
31
- exports: [EnvironmentComponent]
32
- }]
33
- }] });
34
- //# sourceMappingURL=environment.component.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"environment.component.module.js","sourceRoot":"","sources":["../../../../../../libs/environment/src/lib/environment/environment.component.module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAET,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;AAU/C,MAAM,OAAO,0BAA0B;IAE9B,MAAM,CAAC,GAAG,CAAC,WAAwB;QACxC,OAAO;YACL,QAAQ,EAAE,0BAA0B;YACpC,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,gBAAgB;oBACzB,QAAQ,EAAE,WAAW;iBACtB;aACF;SACF,CAAA;IACH,CAAC;;uHAZU,0BAA0B;wHAA1B,0BAA0B,iBANtB,oBAAoB,aAEjC,YAAY,aAEJ,oBAAoB;wHAEnB,0BAA0B,YAL5B;YACP,YAAY;SACb;2FAGU,0BAA0B;kBAPtC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,oBAAoB,CAAC;oBACpC,OAAO,EAAE;wBACP,YAAY;qBACb;oBACD,OAAO,EAAE,CAAC,oBAAoB,CAAC;iBAChC","sourcesContent":["import {\n NgModule,\n ModuleWithProviders\n} from '@angular/core';\nimport { EnvironmentComponent } from './environment.component';\nimport { Environment } from '../environment';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [EnvironmentComponent],\n imports: [\n CommonModule\n ],\n exports: [EnvironmentComponent]\n})\nexport class EnvironmentComponentModule {\n\n public static set(environment: Environment): ModuleWithProviders<EnvironmentComponentModule> {\n return {\n ngModule: EnvironmentComponentModule,\n providers: [\n {\n provide: RXAP_ENVIRONMENT,\n useValue: environment,\n }\n ]\n }\n }\n\n}\n"]}
@@ -1,3 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export const RXAP_ENVIRONMENT = new InjectionToken('rxap-environment');
3
- //# sourceMappingURL=tokens.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../../../libs/environment/src/lib/environment/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,cAAc,CAAc,kBAAkB,CAAC,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Environment } from '../environment';\n\nexport const RXAP_ENVIRONMENT = new InjectionToken<Environment>('rxap-environment');\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=environment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../../../libs/environment/src/lib/environment.ts"],"names":[],"mappings":"","sourcesContent":["export interface Environment {\n /**\n * The name of the environment\n */\n name?: string;\n /**\n * The app is compiled from code in the production branch\n */\n production: boolean;\n /**\n * Where the service worker is active or not\n */\n serviceWorker?: boolean;\n /**\n * The current app release\n */\n release?: string | null;\n /**\n * The current commit\n */\n commit?: string | null;\n /**\n * The build timestamp\n */\n timestamp?: string | number | null;\n /**\n * The current branch\n */\n branch?: string | null;\n /**\n * The current tag\n */\n tag?: string | null;\n\n [ key: string ]: any;\n}\n"]}
@@ -1,15 +0,0 @@
1
- /**
2
- * Loads the build.json and adds all keys to the environment object
3
- */
4
- export function UpdateEnvironment(environment, url = '/build.json') {
5
- return fetch(url)
6
- .then((response) => {
7
- if (!response.ok) {
8
- throw new Error('Could not load build.json');
9
- }
10
- return response.json();
11
- })
12
- .then((build) => Object.assign(environment, build))
13
- .catch(error => console.error(error.message));
14
- }
15
- //# sourceMappingURL=update-environment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-environment.js","sourceRoot":"","sources":["../../../../../libs/environment/src/lib/update-environment.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,WAAgB,EAAE,MAAc,aAAa;IAC7E,OAAO,KAAK,CAAC,GAAG,CAAC;SACd,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;QACjB,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;YAChB,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C;QACD,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC,CAAC;SACD,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;SAClD,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAClD,CAAC","sourcesContent":["/**\n * Loads the build.json and adds all keys to the environment object\n */\nexport function UpdateEnvironment(environment: any, url: string = '/build.json') {\n return fetch(url)\n .then((response) => {\n if (!response.ok) {\n throw new Error('Could not load build.json');\n }\n return response.json();\n })\n .then((build) => Object.assign(environment, build))\n .catch(error => console.error(error.message));\n}\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=rxap-environment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rxap-environment.js","sourceRoot":"","sources":["../../../../libs/environment/src/rxap-environment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rxap-environment.js","sources":["../../../../libs/environment/src/lib/environment/tokens.ts","../../../../libs/environment/src/lib/environment/environment.component.ts","../../../../libs/environment/src/lib/environment/environment.component.html","../../../../libs/environment/src/lib/environment/environment.component.module.ts","../../../../libs/environment/src/lib/update-environment.ts","../../../../libs/environment/src/rxap-environment.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Environment } from '../environment';\n\nexport const RXAP_ENVIRONMENT = new InjectionToken<Environment>('rxap-environment');\n","import {\n Component,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { Environment } from '../environment';\n\n@Component({\n selector: 'rxap-environment',\n templateUrl: './environment.component.html',\n styleUrls: [ './environment.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-environment' }\n})\nexport class EnvironmentComponent {\n\n public show = false;\n\n constructor(\n @Inject(RXAP_ENVIRONMENT)\n public readonly environment: Environment\n ) {}\n\n}\n","<button (click)=\"show = !show\" class=\"collapse-button\">\n <span *ngIf=\"show; else hidden\" i18n>Hide build info</span>\n <ng-template #hidden>\n <span i18n>Show build info</span>\n </ng-template>\n</button>\n\n<table *ngIf=\"show\">\n <tr *ngIf=\"environment.name\">\n <th>Environment</th>\n <td>{{environment.name}}</td>\n </tr>\n <tr>\n <th>Production</th>\n <td>{{environment.production}}</td>\n </tr>\n <tr *ngIf=\"environment.serviceWorker !== undefined\">\n <th>Service Worker</th>\n <td>{{environment.serviceWorker}}</td>\n </tr>\n <tr *ngIf=\"environment.release\">\n <th>Release</th>\n <td>{{environment.release}}</td>\n </tr>\n <tr *ngIf=\"environment.commit\">\n <th>Commit</th>\n <td>{{environment.commit}}</td>\n </tr>\n <tr *ngIf=\"environment.timestamp\">\n <th>Timestamp</th>\n <td>{{environment.timestamp | date}}</td>\n </tr>\n <tr *ngIf=\"environment.branch\">\n <th>Branch</th>\n <td>{{environment.branch}}</td>\n </tr>\n <tr *ngIf=\"environment.tag\">\n <th>Tag</th>\n <td>{{environment.tag}}</td>\n </tr>\n <ng-content></ng-content>\n</table>\n","import {\n NgModule,\n ModuleWithProviders\n} from '@angular/core';\nimport { EnvironmentComponent } from './environment.component';\nimport { Environment } from '../environment';\nimport { RXAP_ENVIRONMENT } from './tokens';\nimport { CommonModule } from '@angular/common';\n\n\n@NgModule({\n declarations: [EnvironmentComponent],\n imports: [\n CommonModule\n ],\n exports: [EnvironmentComponent]\n})\nexport class EnvironmentComponentModule {\n\n public static set(environment: Environment): ModuleWithProviders<EnvironmentComponentModule> {\n return {\n ngModule: EnvironmentComponentModule,\n providers: [\n {\n provide: RXAP_ENVIRONMENT,\n useValue: environment,\n }\n ]\n }\n }\n\n}\n","/**\n * Loads the build.json and adds all keys to the environment object\n */\nexport function UpdateEnvironment(environment: any, url: string = '/build.json') {\n return fetch(url)\n .then((response) => {\n if (!response.ok) {\n throw new Error('Could not load build.json');\n }\n return response.json();\n })\n .then((build) => Object.assign(environment, build))\n .catch(error => console.error(error.message));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAGa,gBAAgB,GAAG,IAAI,cAAc,CAAc,kBAAkB;;MCYrE,oBAAoB;IAI/B,YAEkB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QAJnC,SAAI,GAAG,KAAK,CAAC;KAKhB;;iHAPO,oBAAoB,kBAKrB,gBAAgB;qGALf,oBAAoB,sGCfjC,wnCA0CA;2FD3Ba,oBAAoB;kBAPhC,SAAS;mBAAC;oBACT,QAAQ,EAAS,kBAAkB;oBACnC,WAAW,EAAM,8BAA8B;oBAC/C,SAAS,EAAQ,CAAE,8BAA8B,CAAE;oBACnD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAa,EAAE,KAAK,EAAE,kBAAkB,EAAE;iBAC/C;;0BAMI,MAAM;2BAAC,gBAAgB;;;MEHf,0BAA0B;IAE9B,OAAO,GAAG,CAAC,WAAwB;QACxC,OAAO;YACL,QAAQ,EAAE,0BAA0B;YACpC,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,gBAAgB;oBACzB,QAAQ,EAAE,WAAW;iBACtB;aACF;SACF,CAAA;KACF;;uHAZU,0BAA0B;wHAA1B,0BAA0B,iBANtB,oBAAoB,aAEjC,YAAY,aAEJ,oBAAoB;wHAEnB,0BAA0B,YAL5B;YACP,YAAY;SACb;2FAGU,0BAA0B;kBAPtC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,oBAAoB,CAAC;oBACpC,OAAO,EAAE;wBACP,YAAY;qBACb;oBACD,OAAO,EAAE,CAAC,oBAAoB,CAAC;iBAChC;;;AChBD;;;SAGgB,iBAAiB,CAAC,WAAgB,EAAE,MAAc,aAAa;IAC7E,OAAO,KAAK,CAAC,GAAG,CAAC;SACd,IAAI,CAAC,CAAC,QAAQ;QACb,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;YAChB,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C;QACD,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;KACxB,CAAC;SACD,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;SAClD,KAAK,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAClD;;ACbA;;;;;;"}