ng-pli-commons 0.0.1378 → 0.0.1381

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 (38) hide show
  1. package/.browserslistrc +16 -0
  2. package/README.md +24 -0
  3. package/karma.conf.js +19 -6
  4. package/ng-package.json +1 -2
  5. package/package.json +10 -29
  6. package/src/lib/components/backoffice.commons.component.ts +5 -1
  7. package/src/lib/components/common.lists.component.ts +5 -5
  8. package/src/lib/components/configuration-token/configuration-token.component.html +1 -1
  9. package/src/lib/components/configuration-token/configuration-token.component.ts +12 -8
  10. package/src/lib/components/configuration.commons.component.ts +5 -1
  11. package/src/lib/components/dashboard.commons.component.ts +5 -1
  12. package/src/lib/components/frontoffice.commons.component.ts +5 -1
  13. package/src/lib/components/pdf-config/pdf-config.component.html +3 -3
  14. package/src/lib/components/pdf-generator/pdf-generator.component.scss +4 -5
  15. package/src/lib/components/pdf-generator/pdf-generator.component.ts +1 -1
  16. package/src/lib/components/pdf-visualizer/pdf-visualizer.component.ts +0 -18
  17. package/src/lib/components/select-ppp/select-ppp.component.html +3 -3
  18. package/src/lib/ng-pli-commons.module.ts +25 -34
  19. package/src/lib/ng-pli-commons.service.spec.ts +16 -0
  20. package/src/lib/ng-pli-commons.service.ts +9 -0
  21. package/src/lib/services/budget.service.ts +50 -53
  22. package/src/lib/services/file.service.ts +6 -3
  23. package/src/lib/services/gic-client.service.spec.ts +16 -0
  24. package/src/lib/services/gic-client.service.ts +29 -0
  25. package/src/lib/services/initial-record.service.ts +2 -14
  26. package/src/lib/services/pli-cnf-config-minisite.service.ts +14 -10
  27. package/src/lib/services/status.service.ts +0 -8
  28. package/src/lib/services/token.service.ts +48 -24
  29. package/src/lib/services/upload-documents.service.ts +1 -1
  30. package/src/lib/utils/custom-validator.ts +1 -2
  31. package/src/lib/utils/formio-util.ts +2 -1
  32. package/src/{public_api.ts → public-api.ts} +3 -0
  33. package/src/test.ts +15 -7
  34. package/src/version.ts +7 -7
  35. package/tsconfig.lib.json +3 -21
  36. package/tsconfig.lib.prod.json +10 -0
  37. package/tsconfig.spec.json +3 -4
  38. package/tslint.json +0 -7
@@ -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/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # NgPliCommons
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project ng-pli-commons` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ng-pli-commons`.
8
+ > Note: Don't forget to add `--project ng-pli-commons` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build ng-pli-commons` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build ng-pli-commons`, go to the dist folder `cd dist/ng-pli-commons` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test ng-pli-commons` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
package/karma.conf.js CHANGED
@@ -9,16 +9,28 @@ module.exports = function (config) {
9
9
  require('karma-jasmine'),
10
10
  require('karma-chrome-launcher'),
11
11
  require('karma-jasmine-html-reporter'),
12
- require('karma-coverage-istanbul-reporter'),
12
+ require('karma-coverage'),
13
13
  require('@angular-devkit/build-angular/plugins/karma')
14
14
  ],
15
15
  client: {
16
+ jasmine: {
17
+ // you can add configuration options for Jasmine here
18
+ // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19
+ // for example, you can disable the random execution with `random: false`
20
+ // or set a specific seed with `seed: 4321`
21
+ },
16
22
  clearContext: false // leave Jasmine Spec Runner output visible in browser
17
23
  },
18
- coverageIstanbulReporter: {
19
- dir: require('path').join(__dirname, '../../coverage'),
20
- reports: ['html', 'lcovonly'],
21
- fixWebpackSourcePaths: true
24
+ jasmineHtmlReporter: {
25
+ suppressAll: true // removes the duplicated traces
26
+ },
27
+ coverageReporter: {
28
+ dir: require('path').join(__dirname, '../../coverage/ng-pli-commons'),
29
+ subdir: '.',
30
+ reporters: [
31
+ { type: 'html' },
32
+ { type: 'text-summary' }
33
+ ]
22
34
  },
23
35
  reporters: ['progress', 'kjhtml'],
24
36
  port: 9876,
@@ -26,6 +38,7 @@ module.exports = function (config) {
26
38
  logLevel: config.LOG_INFO,
27
39
  autoWatch: true,
28
40
  browsers: ['Chrome'],
29
- singleRun: false
41
+ singleRun: false,
42
+ restartOnFileChange: true
30
43
  });
31
44
  };
package/ng-package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
3
  "dest": "../../dist/ng-pli-commons",
4
- "deleteDestPath": false,
5
4
  "lib": {
6
- "entryFile": "src/public_api.ts"
5
+ "entryFile": "src/public-api.ts"
7
6
  }
8
7
  }
package/package.json CHANGED
@@ -1,31 +1,12 @@
1
1
  {
2
- "name": "ng-pli-commons",
3
- "version": "0.0.1378",
4
- "peerDependencies": {
5
- "@angular/common": "^6.0.0-rc.0 || ^6.0.0",
6
- "@angular/core": "^6.0.0-rc.0 || ^6.0.0",
7
- "@angular/http": "^6.0.0-rc.0 || ^6.0.0",
8
- "@angular/forms": "^6.1.0",
9
- "@angular/platform-browser": "^6.1.0",
10
- "moment": "2.26.0",
11
- "moment-timezone": "0.5.31",
12
- "html2pdf.js": "^0.9.1",
13
- "cropperjs": "^1.5.12",
14
- "pdfjs-dist": "2.3.200",
15
- "panzoom": "^6.1.4",
16
- "rxjs": "^6.3.2",
17
- "rxjs-compat": "^6.1.0",
18
- "ngx-toastr": "^8.10.2",
19
- "primeng": "^6.1.3",
20
- "angularfire2": "^5.0.2",
21
- "firebase": "^5.5.5",
22
- "hex-to-binary": "^1.0.1",
23
- "tinymce": "^4.8.4",
24
- "angular2-tinymce": "^3.3.0",
25
- "file-saver": "^2.0.2",
26
- "xlsx": "^0.14.4",
27
- "html2canvas": "1.0.0-rc.5",
28
- "jspdf": "^1.5.3",
29
- "html-to-pdfmake": "^1.2.2"
30
- }
2
+ "name": "ng-pli-commons",
3
+ "version": "0.0.1381",
4
+ "peerDependencies": {
5
+ "@angular/common": "^13.2.0",
6
+ "@angular/core": "^13.2.0",
7
+ "hex-to-binary": "^1.0.1"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "^2.3.0"
11
+ }
31
12
  }
@@ -1,8 +1,12 @@
1
- import { OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
1
+ import { OnInit, ChangeDetectorRef, OnDestroy, Component } from '@angular/core';
2
2
  import { CommonService } from '../services/common.service';
3
3
  import { CommonListsComponent } from './common.lists.component';
4
4
  import { SpinnerService } from '../services/spinner.service';
5
5
 
6
+ @Component({
7
+ selector: 'app-backoffice-commons',
8
+ template: ''
9
+ })
6
10
  export abstract class BackofficeCommonsComponent
7
11
  extends CommonListsComponent
8
12
  implements OnInit, OnDestroy
@@ -1,4 +1,4 @@
1
- import { OnInit, ChangeDetectorRef, Inject, LOCALE_ID } from '@angular/core';
1
+ import { OnInit, ChangeDetectorRef, Inject, LOCALE_ID, Component } from '@angular/core';
2
2
  import { FormControl, FormGroup } from '@angular/forms';
3
3
  import {
4
4
  UtilString,
@@ -15,10 +15,10 @@ import {
15
15
  import { CommonService } from '../services/common.service';
16
16
  import { FormUtil } from '../utils/form-util';
17
17
 
18
- // @Component({
19
- // selector: 'app-administration',
20
- // template: ''
21
- // })
18
+ @Component({
19
+ selector: 'app-administration',
20
+ template: ''
21
+ })
22
22
  export abstract class CommonListsComponent implements OnInit {
23
23
  /** Static per page label */
24
24
  static LABEL_RECORDS_PER_PAGE: string = 'Registros por página';
@@ -1,5 +1,5 @@
1
1
  <div
2
- *ngIf="ready"
2
+ *ngIf="readyAccordeon && ready"
3
3
  pliAuthorityDirective
4
4
  [authorities]="[p('ROLE_TOKENS_CONSULTAR')]"
5
5
  [patCodigo]="patCodigo"
@@ -93,7 +93,7 @@ export class ConfigurationTokenComponent extends CommonListsComponent implements
93
93
  /** */
94
94
  private currencyPipe: CurrencyPipe;
95
95
  @Inject(LOCALE_ID) public locale: string;
96
-
96
+ readyAccordeon: boolean = false;
97
97
  constructor(
98
98
  private toastrService: ToastrService,
99
99
  protected cdRef: ChangeDetectorRef,
@@ -207,8 +207,8 @@ export class ConfigurationTokenComponent extends CommonListsComponent implements
207
207
  }
208
208
 
209
209
  initListTokenPresupuesto() {
210
- this.budgetService.lGlobalBudgetChanged.subscribe(
211
- (lGlobalBudget: PliCnfPresupuestoGlobal[]) => {
210
+ this.budgetService.lGlobalBudgetChanged.subscribe({
211
+ next: (lGlobalBudget: PliCnfPresupuestoGlobal[]) => {
212
212
  if (!this.callBudgetService) {
213
213
  return;
214
214
  }
@@ -350,8 +350,11 @@ export class ConfigurationTokenComponent extends CommonListsComponent implements
350
350
  }
351
351
  this.initListTokenTasks();
352
352
  }
353
+ },
354
+ error: (error) => {
355
+ console.error('ERROR del servicio: ', error);
353
356
  }
354
- );
357
+ });
355
358
  this.budgetService.getListPresupuestoGlobal(this.promCodigo);
356
359
  this.callBudgetService = true;
357
360
  }
@@ -400,6 +403,7 @@ export class ConfigurationTokenComponent extends CommonListsComponent implements
400
403
  tokenType: TokenService.TOKEN_LABEL_STATIC,
401
404
  value: TokenService.STATIC_TOKENS
402
405
  };
406
+ this.readyAccordeon = true;
403
407
  let colMax = 4;
404
408
  //Organize depends of the panels
405
409
  for (let groupToken of this.lStaticToken) {
@@ -522,15 +526,15 @@ export class ConfigurationTokenComponent extends CommonListsComponent implements
522
526
 
523
527
  getTokenGuarantee() {
524
528
  if (this.showGuatantee) {
525
- this.pliCnfGuaranteeTokenService.getAllByPromCodigo(this.promCodigo).subscribe(
526
- (result: PliCnfGuaranteeToken[]) => {
529
+ this.pliCnfGuaranteeTokenService.getAllByPromCodigo(this.promCodigo).subscribe({
530
+ next: (result: PliCnfGuaranteeToken[]) => {
527
531
  this.lGuaranteeTokens = result;
528
532
  this.ready = true;
529
533
  },
530
- (error) => {
534
+ error: (error) => {
531
535
  this.toastrService.error('Error al obtener los token de garantias', 'Error');
532
536
  }
533
- );
537
+ });
534
538
  }
535
539
  }
536
540
 
@@ -1,7 +1,11 @@
1
- import { OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
1
+ import { OnInit, ChangeDetectorRef, OnDestroy, Component } from '@angular/core';
2
2
  import { CommonService } from '../services/common.service';
3
3
  import { CommonListsComponent } from './common.lists.component';
4
4
 
5
+ @Component({
6
+ selector: 'app-configuration-commons',
7
+ template: ''
8
+ })
5
9
  export abstract class ConfigurationCommonsComponent
6
10
  extends CommonListsComponent
7
11
  implements OnInit, OnDestroy {
@@ -1,8 +1,12 @@
1
- import { OnInit, ChangeDetectorRef } from '@angular/core';
1
+ import { OnInit, ChangeDetectorRef, Component } from '@angular/core';
2
2
  import { CommonService } from '../services/common.service';
3
3
  import { DateUtil } from 'ng-pli-util';
4
4
  import { CommonInfoService } from '../services/common-info.service';
5
5
 
6
+ @Component({
7
+ selector: 'app-dashboard-commons',
8
+ template: ''
9
+ })
6
10
  export abstract class DashboardCommonsComponent implements OnInit {
7
11
  /** */
8
12
  version: string;
@@ -1,8 +1,12 @@
1
- import { OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
1
+ import { OnInit, ChangeDetectorRef, OnDestroy, Component } from '@angular/core';
2
2
  import { CommonService } from '../services/common.service';
3
3
  import { CommonListsComponent } from './common.lists.component';
4
4
  import { ApplicationBudget, ApplicationBudgetTotal } from 'ng-pli-util';
5
5
 
6
+ @Component({
7
+ selector: 'app-frontoffice-commons',
8
+ template: ''
9
+ })
6
10
  export abstract class FrontofficeCommonsComponent extends CommonListsComponent implements OnInit {
7
11
  toastDuration: number = 10000;
8
12
  // True If actual date is before than end application date
@@ -329,7 +329,7 @@
329
329
  <div class="col-md-12" *ngIf="showHeader">
330
330
  <div class="form-group">
331
331
  <label for="header" class="form-control-label">Encabezado</label>
332
- <app-tinymce [(ngModel)]="pdfConfig.header" [options]="options"></app-tinymce>
332
+ <editor [(ngModel)]="pdfConfig.header" [init]="options"></editor>
333
333
  </div>
334
334
  </div>
335
335
  </div>
@@ -338,7 +338,7 @@
338
338
  <div class="col-md-12">
339
339
  <div class="form-group">
340
340
  <label for="template" class="form-control-label">Cuerpo</label>
341
- <app-tinymce [(ngModel)]="pdfConfig.template" [options]="options"></app-tinymce>
341
+ <editor [(ngModel)]="pdfConfig.template" [init]="options"></editor>
342
342
  </div>
343
343
  </div>
344
344
  </div>
@@ -347,7 +347,7 @@
347
347
  <div class="col-md-12">
348
348
  <div class="form-group">
349
349
  <label for="footer" class="form-control-label">Pie de página</label>
350
- <app-tinymce [(ngModel)]="pdfConfig.footer" [options]="options"></app-tinymce>
350
+ <editor [(ngModel)]="pdfConfig.footer" [init]="options"></editor>
351
351
  </div>
352
352
  </div>
353
353
  </div>
@@ -1,3 +1,7 @@
1
+ @import "corporativo";
2
+ @import "material-up";
3
+ @import "media_queries";
4
+
1
5
  .main-content {
2
6
  position: fixed;
3
7
  z-index: -1;
@@ -14,11 +18,6 @@
14
18
  display: block;
15
19
  }
16
20
 
17
- ::ng-deep {
18
- @import "corporativo";
19
- @import "material-up";
20
- @import "media_queries";
21
- }
22
21
  hr {
23
22
  display: block;
24
23
  border-style: inset;
@@ -16,7 +16,7 @@ import {
16
16
  PliCnfLookAndFeel, RequestPdf
17
17
  } from 'ng-pli-util';
18
18
  import {PliCnfPdf} from 'ng-pli-util/lib/models/pli-cnf-pdf';
19
- import {MenuItem} from 'primeng/components/common/menuitem';
19
+ import {MenuItem} from 'primeng/api';
20
20
 
21
21
  import {ApplicationService} from '../../services/application.service';
22
22
  import {DataFormService} from '../../services/data-form.service';
@@ -93,8 +93,6 @@ export class PdfVisualizerComponent implements OnInit, OnChanges {
93
93
 
94
94
  /** It allows to edit html */
95
95
  edit: boolean = false;
96
- sendEmailDisable: boolean = false;
97
- downloadDisable: boolean = false;
98
96
 
99
97
  constructor(
100
98
  protected commonService: CommonService,
@@ -324,20 +322,12 @@ export class PdfVisualizerComponent implements OnInit, OnChanges {
324
322
 
325
323
  /** It sends the document by email */
326
324
  sendEmail() {
327
- if (this.sendEmailDisable) {
328
- return;
329
- }
330
325
  if (this.email && UtilString.validateEmail(this.email)) {
331
326
  this.onSendEmail.emit({
332
327
  to: this.email,
333
328
  base64: this.base64
334
329
  });
335
330
  this.email = '';
336
- // block the send email bottom for 3 seconds
337
- this.sendEmailDisable = true;
338
- setTimeout(() => {
339
- this.sendEmailDisable = false;
340
- }, 3000);
341
331
  return;
342
332
  }
343
333
  this.taostrService.warning('Correo electrónico es incorrecto');
@@ -345,9 +335,6 @@ export class PdfVisualizerComponent implements OnInit, OnChanges {
345
335
 
346
336
  /** It fires the event download */
347
337
  download() {
348
- if (this.downloadDisable) {
349
- return;
350
- }
351
338
  const contentType = 'application/pdf';
352
339
  const b64Data = this.base64;
353
340
  const blob = this.b64toBlob(b64Data, contentType);
@@ -365,11 +352,6 @@ export class PdfVisualizerComponent implements OnInit, OnChanges {
365
352
  base64: this.base64
366
353
  });
367
354
  }, 200);
368
- // block the download bottom for 3 seconds
369
- this.downloadDisable = true;
370
- setTimeout(() => {
371
- this.downloadDisable = false;
372
- }, 3000);
373
355
  }
374
356
 
375
357
  /** It fires when the html is changed */
@@ -5,7 +5,7 @@
5
5
  <select
6
6
  name="patCodigo"
7
7
  id="patCodigo"
8
- class="form-control"
8
+ class="form-select form-control"
9
9
  [(ngModel)]="patCodigo"
10
10
  (change)="onPliPatrocinadorChanged()"
11
11
  >
@@ -24,7 +24,7 @@
24
24
  <select
25
25
  name="progCodigo"
26
26
  id="progCodigo"
27
- class="form-control"
27
+ class="form-select form-control"
28
28
  [(ngModel)]="progCodigo"
29
29
  (change)="onPliProgramaChanged()"
30
30
  >
@@ -41,7 +41,7 @@
41
41
  <select
42
42
  name="promCodigo"
43
43
  id="promCodigo"
44
- class="form-control"
44
+ class="form-select form-control"
45
45
  [(ngModel)]="promCodigo"
46
46
  (change)="onPliPromocionChanged($event)"
47
47
  >
@@ -1,17 +1,25 @@
1
1
  import { CommonModule, CurrencyPipe } from '@angular/common';
2
2
  import { HttpClientModule } from '@angular/common/http';
3
- import { ModuleWithProviders } from '@angular/compiler/src/core';
4
- import { NgModule } from '@angular/core';
5
- import { AngularFireModule, FirebaseOptionsToken } from '@angular/fire';
3
+ import { NgModule, ModuleWithProviders } from '@angular/core';
4
+ import { FirebaseAppModule } from '@angular/fire/app';
5
+ import { FirestoreModule } from '@angular/fire/firestore';
6
+ import { AuthModule } from '@angular/fire/auth';
7
+ import { FIREBASE_OPTIONS } from '@angular/fire/compat';
8
+ import { AngularFireModule } from '@angular/fire/compat';
9
+ import { AngularFireStorageModule } from '@angular/fire/compat/storage';
10
+
6
11
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
7
- import { FormioModule, FormioComponent } from 'angular-formio-proyectoscolfuturo';
8
- import { TinymceModule } from 'angular2-tinymce';
9
- import { AngularFireAuthModule } from 'angularfire2/auth';
10
- import { AngularFireStorageModule } from 'angularfire2/storage';
12
+ // import { FormioModule, FormioComponent } from 'angular-formio-proyectoscolfuturo';
13
+ import { FormioModule, FormioComponent } from 'formioangular-colfuturo';
14
+ // import { TinymceModule } from 'angular2-tinymce';
15
+ import { EditorModule } from '@tinymce/tinymce-angular';
16
+ // import { AngularFireAuthModule } from 'angularfire2/auth';
17
+ // import { AngularFireStorageModule } from 'angularfire2/storage';
11
18
  import { NgPliUtilModule } from 'ng-pli-util';
12
19
  import { DialogModule } from 'primeng/dialog';
13
20
  import { DropdownModule } from 'primeng/dropdown';
14
- import { AccordionModule, SharedModule } from 'primeng/primeng';
21
+ // import { SharedModule } from 'primeng/primeng';
22
+ import { AccordionModule } from 'primeng/accordion';
15
23
  import { TableModule } from 'primeng/table';
16
24
  import { TieredMenuModule } from 'primeng/tieredmenu';
17
25
  import { PickListModule } from 'primeng/picklist';
@@ -129,42 +137,24 @@ import { PdfAnalyzerService } from './services/pdf-analyzer.service';
129
137
  @NgModule({
130
138
  imports: [
131
139
  CommonModule,
140
+ AngularFireModule,
141
+ AngularFireStorageModule,
142
+ EditorModule,
132
143
  FormioModule,
133
144
  HttpClientModule,
134
145
  FormsModule,
135
146
  AccordionModule,
136
- SharedModule,
137
147
  TableModule,
138
148
  TieredMenuModule,
139
149
  PickListModule,
140
150
  ReactiveFormsModule,
141
- AngularFireModule,
142
- AngularFireStorageModule,
143
- AngularFireAuthModule,
144
- TinymceModule.withConfig({
145
- plugins: [
146
- 'code',
147
- 'preview',
148
- 'autoresize',
149
- 'paste',
150
- 'colorpicker',
151
- 'textcolor',
152
- 'link',
153
- 'table',
154
- 'lists',
155
- 'advlist',
156
- 'image'
157
- ],
158
- toolbar:
159
- 'undo redo | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | forecolor backcolor fontsizeselect | code preview image link',
160
- forced_root_block: 'div'
161
- }),
151
+ FirebaseAppModule,
152
+ FirestoreModule,
153
+ AuthModule,
162
154
  DropdownModule,
163
155
  DialogModule,
164
- //PdfViewerModule,
165
156
  NgPliUtilModule.forRoot()
166
157
  ],
167
- entryComponents: [FormioComponent],
168
158
  declarations: [
169
159
  SelectPppComponent,
170
160
  CurrencyColfuturoPipe,
@@ -189,6 +179,7 @@ import { PdfAnalyzerService } from './services/pdf-analyzer.service';
189
179
  ProgressBarComponent,
190
180
  PdfAnalyzerComponent
191
181
  ],
182
+ entryComponents: [FormioComponent],
192
183
  exports: [
193
184
  SelectPppComponent,
194
185
  PdfVisualizerComponent,
@@ -213,7 +204,7 @@ import { PdfAnalyzerService } from './services/pdf-analyzer.service';
213
204
  ]
214
205
  })
215
206
  export class NgPliCommonsModule {
216
- static forRoot(environment: any): ModuleWithProviders {
207
+ static forRoot(environment: any): ModuleWithProviders<NgPliCommonsModule> {
217
208
  return {
218
209
  ngModule: NgPliCommonsModule,
219
210
  providers: [
@@ -308,7 +299,7 @@ export class NgPliCommonsModule {
308
299
  useValue: environment
309
300
  },
310
301
  {
311
- provide: FirebaseOptionsToken,
302
+ provide: FIREBASE_OPTIONS,
312
303
  useValue: environment.firebase
313
304
  }
314
305
  ]
@@ -0,0 +1,16 @@
1
+ import { TestBed } from '@angular/core/testing';
2
+
3
+ import { NgPliCommonsService } from './ng-pli-commons.service';
4
+
5
+ describe('NgPliCommonsService', () => {
6
+ let service: NgPliCommonsService;
7
+
8
+ beforeEach(() => {
9
+ TestBed.configureTestingModule({});
10
+ service = TestBed.inject(NgPliCommonsService);
11
+ });
12
+
13
+ it('should be created', () => {
14
+ expect(service).toBeTruthy();
15
+ });
16
+ });
@@ -0,0 +1,9 @@
1
+ import { Injectable } from '@angular/core';
2
+
3
+ @Injectable({
4
+ providedIn: 'root'
5
+ })
6
+ export class NgPliCommonsService {
7
+
8
+ constructor() { }
9
+ }
@@ -1,10 +1,10 @@
1
+ import { map, catchError } from 'rxjs/operators';
1
2
  import { Injectable, Inject } from '@angular/core';
2
- import { Subject } from 'rxjs/Subject';
3
- import 'rxjs/Rx';
3
+ import { Subject, Observable } from 'rxjs';
4
+ // import * as Rx from 'rxjs';
4
5
  import { HttpClient, HttpParams } from '@angular/common/http';
5
6
  import { AuthenticationService } from './authentication.service';
6
7
  import { ToastrService } from 'ngx-toastr';
7
- import { Observable } from 'rxjs/Rx';
8
8
  import {
9
9
  HEADER_JSON,
10
10
  PliCnfPresupuestoGlobal,
@@ -24,15 +24,15 @@ export class BudgetService {
24
24
  /** Notify when a global budget change */
25
25
  lGlobalBudgetChanged = new Subject<PliCnfPresupuestoGlobal[]>();
26
26
  /** List of global budget */
27
- private lGlobalBudget: PliCnfPresupuestoGlobal[];
27
+ private lGlobalBudget!: PliCnfPresupuestoGlobal[];
28
28
  /** Notify when a global budget by category change */
29
29
  lGlobalBudgetCategoryChanged = new Subject<PliCnfPresupuestoGlobalRubro[]>();
30
30
  /** List of global budget by category */
31
- private lGlobalBudgetCategory: PliCnfPresupuestoGlobalRubro[];
31
+ private lGlobalBudgetCategory!: PliCnfPresupuestoGlobalRubro[];
32
32
  /** Notify when a global budget by category change */
33
33
  lGlobalBudgetWizardChanged = new Subject<PliCnfPresupuestoAsistente[]>();
34
34
  /** List of global budget by category */
35
- private lGlobalBudgetWizard: PliCnfPresupuestoAsistente[];
35
+ private lGlobalBudgetWizard!: PliCnfPresupuestoAsistente[];
36
36
 
37
37
  constructor(
38
38
  @Inject('environment') private environment: any,
@@ -52,8 +52,8 @@ export class BudgetService {
52
52
  .set('cargarListas', 'false')
53
53
  }
54
54
  )
55
- .subscribe(
56
- (lGlobalBudget: PliCnfPresupuestoGlobal[]) => {
55
+ .pipe(
56
+ map((lGlobalBudget: PliCnfPresupuestoGlobal[]) => {
57
57
  if (lGlobalBudget && lGlobalBudget.length > 0) {
58
58
  for (var key in lGlobalBudget) {
59
59
  let globalBudget: PliCnfPresupuestoGlobal = Object.assign(
@@ -64,12 +64,13 @@ export class BudgetService {
64
64
  }
65
65
  }
66
66
  this.setListGlobalBudget(lGlobalBudget);
67
- },
68
- (error) => {
69
- this.toastr.error('El sistema no responde', 'Error!');
67
+ }),
68
+ catchError((error) => {
70
69
  console.log('El sistema no responde', error);
71
- }
72
- );
70
+ throw this.toastr.error('El sistema no responde', 'Error!');
71
+ })
72
+ )
73
+ .subscribe();
73
74
  }
74
75
 
75
76
  _getListPresupuestoGlobal(promCodigo: number) {
@@ -143,28 +144,26 @@ export class BudgetService {
143
144
  this.environment.host.backend.plis + 'config/presupuesto/getAllPresupuestoRubro',
144
145
  { params: new HttpParams().set('cpreCodigo', cpreCodigo.toString()) }
145
146
  )
146
- .map((lGlobalBudgetCategory) => {
147
- if (lGlobalBudgetCategory && lGlobalBudgetCategory.length > 0) {
148
- for (var key in lGlobalBudgetCategory) {
149
- let globalBudgeCategory: PliCnfPresupuestoGlobalRubro = Object.assign(
150
- new PliCnfPresupuestoGlobalRubro(),
151
- lGlobalBudgetCategory[key]
152
- );
153
- lGlobalBudgetCategory[key] = globalBudgeCategory.fieldsValidation();
147
+ .pipe(
148
+ map((lGlobalBudgetCategory: PliCnfPresupuestoGlobalRubro[]) => {
149
+ if (lGlobalBudgetCategory && lGlobalBudgetCategory.length > 0) {
150
+ for (var key in lGlobalBudgetCategory) {
151
+ let globalBudgeCategory: PliCnfPresupuestoGlobalRubro = Object.assign(
152
+ new PliCnfPresupuestoGlobalRubro(),
153
+ lGlobalBudgetCategory[key]
154
+ );
155
+ lGlobalBudgetCategory[key] = globalBudgeCategory.fieldsValidation();
156
+ }
157
+ this.setListGlobalBudgetCategory(lGlobalBudgetCategory);
158
+ return lGlobalBudgetCategory;
159
+ } else {
160
+ return [];
154
161
  }
155
- return lGlobalBudgetCategory;
156
- } else {
157
- return [];
158
- }
159
- })
160
- .subscribe(
161
- (lGlobalBudgetCategory: PliCnfPresupuestoGlobalRubro[]) => {
162
- this.setListGlobalBudgetCategory(lGlobalBudgetCategory);
163
- },
164
- (error) => {
165
- this.toastr.error('El sistema no responde', 'Error!');
162
+ }),
163
+ catchError((error) => {
166
164
  console.log('El sistema no responde', error);
167
- }
165
+ throw this.toastr.error('El sistema no responde', 'Error!');
166
+ })
168
167
  );
169
168
  }
170
169
 
@@ -215,28 +214,26 @@ export class BudgetService {
215
214
  'config/presupuesto/getAllPresupuestoAsistente',
216
215
  { params: new HttpParams().set('cpreCodigo', cpreCodigo.toString()) }
217
216
  )
218
- .map((lGlobalBudgetWizard) => {
219
- if (lGlobalBudgetWizard && lGlobalBudgetWizard.length > 0) {
220
- for (var key in lGlobalBudgetWizard) {
221
- let globalBudgeWizard: PliCnfPresupuestoAsistente = Object.assign(
222
- new PliCnfPresupuestoAsistente(),
223
- lGlobalBudgetWizard[key]
224
- );
225
- lGlobalBudgetWizard[key] = globalBudgeWizard.fieldsValidation();
217
+ .pipe(
218
+ map((lGlobalBudgetWizard: PliCnfPresupuestoAsistente[]) => {
219
+ if (lGlobalBudgetWizard && lGlobalBudgetWizard.length > 0) {
220
+ for (var key in lGlobalBudgetWizard) {
221
+ let globalBudgeWizard: PliCnfPresupuestoAsistente = Object.assign(
222
+ new PliCnfPresupuestoAsistente(),
223
+ lGlobalBudgetWizard[key]
224
+ );
225
+ lGlobalBudgetWizard[key] = globalBudgeWizard.fieldsValidation();
226
+ }
227
+ this.setListGlobalBudgetWizard(lGlobalBudgetWizard);
228
+ return lGlobalBudgetWizard;
229
+ } else {
230
+ return [];
226
231
  }
227
- return lGlobalBudgetWizard;
228
- } else {
229
- return [];
230
- }
231
- })
232
- .subscribe(
233
- (lGlobalBudgetWizard: PliCnfPresupuestoAsistente[]) => {
234
- this.setListGlobalBudgetWizard(lGlobalBudgetWizard);
235
- },
236
- (error) => {
237
- this.toastr.error('El sistema no responde', 'Error!');
232
+ }),
233
+ catchError((error) => {
238
234
  console.log('El sistema no responde', error);
239
- }
235
+ throw this.toastr.error('El sistema no responde', 'Error!');
236
+ })
240
237
  );
241
238
  }
242
239
 
@@ -1,21 +1,24 @@
1
1
  import { Injectable, Inject } from '@angular/core';
2
- import { AngularFireStorage } from 'angularfire2/storage';
3
- import { AngularFireAuth } from 'angularfire2/auth';
2
+ // import { AngularFireStorage } from 'angularfire2/storage';
3
+ // import { AngularFireAuth } from 'angularfire2/auth';
4
4
  import { Observable, BehaviorSubject } from 'rxjs';
5
5
  import { HttpClient } from '@angular/common/http';
6
6
  import { EProceso, UtilString } from 'ng-pli-util';
7
+ import { AngularFireStorage } from '@angular/fire/compat/storage';
8
+ import { AngularFireAuth } from '@angular/fire/compat/auth';
7
9
 
8
10
  @Injectable({
9
11
  providedIn: 'root'
10
12
  })
11
13
  export class FileService {
14
+
12
15
  constructor(
13
16
  @Inject('environment') private environment,
14
17
  private afAuth: AngularFireAuth,
15
18
  private angularFireStorage: AngularFireStorage,
16
19
  private httpClient: HttpClient
17
20
  ) {
18
- this.afAuth.auth.signInAnonymously().then((result) => {});
21
+ this.afAuth.signInAnonymously().then((result) => {});
19
22
  }
20
23
 
21
24
  /**
@@ -0,0 +1,16 @@
1
+ import { TestBed } from '@angular/core/testing';
2
+
3
+ import { GicClientService } from './gic-client.service';
4
+
5
+ describe('GicClientService', () => {
6
+ let service: GicClientService;
7
+
8
+ beforeEach(() => {
9
+ TestBed.configureTestingModule({});
10
+ service = TestBed.inject(GicClientService);
11
+ });
12
+
13
+ it('should be created', () => {
14
+ expect(service).toBeTruthy();
15
+ });
16
+ });
@@ -0,0 +1,29 @@
1
+ import { Inject, Injectable } from '@angular/core';
2
+ import { HttpClient, HttpParams, HttpHeaders } from '@angular/common/http';
3
+ import { Observable } from 'rxjs';
4
+ import { DataTableParameters } from 'ng-pli-util';
5
+ import { GicClientRequestTO } from 'ng-pli-util';
6
+
7
+ @Injectable({
8
+ providedIn: 'root'
9
+ })
10
+ export class GicClientService {
11
+ private headerJson = { headers: new HttpHeaders({ 'Content-Type': 'application/json' }) };
12
+ constructor(@Inject('environment') private environment: any, private httpClient: HttpClient) {}
13
+
14
+ getByDataTablesParameters(dataTableParameters: DataTableParameters): Observable<any> {
15
+ return this.httpClient.post(
16
+ this.environment.host.backend.gicBackoffice + 'gic-client/getByDataTablesParameters',
17
+ dataTableParameters,
18
+ this.headerJson
19
+ );
20
+ }
21
+
22
+ sendToGic(gicClientRequestTO: GicClientRequestTO): Observable<any> {
23
+ return this.httpClient.post(
24
+ this.environment.host.backend.gicBackoffice + 'gic-client/send',
25
+ gicClientRequestTO,
26
+ this.headerJson
27
+ );
28
+ }
29
+ }
@@ -1,13 +1,13 @@
1
1
  import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
2
2
  import { Inject, Injectable } from '@angular/core';
3
- import { InitialRecord, DataTableParameters } from 'ng-pli-util';
3
+ import { InitialRecord } from 'ng-pli-util';
4
4
  import { Observable } from 'rxjs';
5
5
 
6
6
  @Injectable({
7
7
  providedIn: 'root'
8
8
  })
9
9
  export class InitialRecordService {
10
- private headerJson = { headers: new HttpHeaders({ 'Content-Type': 'application/json' }) };
10
+ private headerJson = { headers: new HttpHeaders({ 'Content-Type': 'initial-record/json' }) };
11
11
 
12
12
  constructor(@Inject('environment') private environment: any, private httpClient: HttpClient) {}
13
13
 
@@ -63,18 +63,6 @@ export class InitialRecordService {
63
63
  );
64
64
  }
65
65
 
66
- /**
67
- * save multiple records
68
- * @param listData +
69
- */
70
- getByDataTablesParameters(dataTableParameters: DataTableParameters) {
71
- return this.httpClient.post(
72
- this.environment.host.backend.backoffice + 'multiApplication/getByDataTablesParameters',
73
- dataTableParameters,
74
- this.headerJson
75
- );
76
- }
77
-
78
66
  /** it returns the last number */
79
67
  /*
80
68
  getLastNumber(promCodigo: number) {
@@ -1,3 +1,4 @@
1
+ import { map } from 'rxjs/operators';
1
2
  import { Observable } from 'rxjs';
2
3
  import { PliCnfConfigMinisite, DatatableSearchList, DataTableParameters } from 'ng-pli-util';
3
4
  import { Injectable, Inject } from '@angular/core';
@@ -83,7 +84,7 @@ export class PliCnfConfigMinisiteService {
83
84
  ): Observable<any> {
84
85
  return (
85
86
  this.httpClient
86
- .get(
87
+ .get<DatatableSearchList[]>(
87
88
  this.environment.host.backend.configuration +
88
89
  'PliDatatableSearchListController/getDatatableSearchListByDtblSearchListId',
89
90
  {
@@ -93,20 +94,23 @@ export class PliCnfConfigMinisiteService {
93
94
  }
94
95
  )
95
96
  // DJ - Committee sorting requirement
96
- .map((lDatatableSearchList: DatatableSearchList[]) => {
97
- lDatatableSearchList.sort((a, b) => {
98
- const textA = a['recordSize'];
99
- const textB = b['recordSize'];
100
- return textA < textB ? 1 : textA > textB ? -1 : 0;
101
- });
102
- return lDatatableSearchList;
103
- })
97
+ .pipe(
98
+ map((lDatatableSearchList: DatatableSearchList[]) => {
99
+ lDatatableSearchList.sort((a, b) => {
100
+ const textA = a['recordSize'];
101
+ const textB = b['recordSize'];
102
+ return textA < textB ? 1 : textA > textB ? -1 : 0;
103
+ });
104
+ return lDatatableSearchList;
105
+ })
106
+ )
104
107
  );
105
108
  }
106
109
 
107
110
  getByDataTablesParameters(dataTablesParameters: DataTableParameters): Observable<any> {
108
111
  return this.httpClient.post(
109
- this.environment.host.backend.configuration + 'pliCnfConfigMiniSite/getByDataTablesParameters',
112
+ this.environment.host.backend.configuration +
113
+ 'pliCnfConfigMiniSite/getByDataTablesParameters',
110
114
  dataTablesParameters,
111
115
  this.headerJson
112
116
  );
@@ -142,12 +142,4 @@ export class StatusService {
142
142
  lStatus
143
143
  );
144
144
  }
145
-
146
- putStatusAfterApplicationFinished(lPliCnfStatus: PliCnfStatus[]): Observable<any> {
147
- return this.httpClient.put<PliCnfStatus[]>(
148
- this.environment.host.backend.configuration + 'pliCnfStatus/putStatusAfterApplicationFinished',
149
- lPliCnfStatus,
150
- this.headerJson
151
- );
152
- }
153
145
  }
@@ -348,16 +348,40 @@ export class TokenService {
348
348
  private httpClient: HttpClient,
349
349
  private formService: FormService,
350
350
  private currencyPipe: CurrencyPipe
351
- ) {}
351
+ ) { }
352
352
 
353
353
  /** This promise allows to execute a function when consulting the form fields. */
354
354
  getFormFieldsByPromCode(promCodigo): Promise<any[]> {
355
355
  return new Promise((resolve, reject) => {
356
356
  // Search the dynamic form
357
357
  let lFormFieldsToken: any[] = null;
358
- this.formService.getByPromCodigo(promCodigo).subscribe(
359
- (result: any) => {
360
- let form: any = result;
358
+ this.formService.getByPromCodigo(promCodigo).subscribe({
359
+ next: (arrayForms: any) => {
360
+ if (arrayForms.length > 0) {
361
+ for (const forms of arrayForms) {
362
+ if (forms.components && forms.components.length > 0) {
363
+ for (const components of forms.components) {
364
+ if (components.components && components.components.length > 0) {
365
+ for (const component of components.components) {
366
+ if (component.columns && component.columns.length > 0) {
367
+ for (const cComponents of component.columns) {
368
+ if (cComponents.components && cComponents.components.length > 0) {
369
+ for (const iterator of cComponents.components) {
370
+ if (iterator.type === 'address') {
371
+ delete iterator.components;
372
+ }
373
+ }
374
+ }
375
+ }
376
+ }
377
+ }
378
+ }
379
+ }
380
+ }
381
+ }
382
+ }
383
+
384
+ let form: any = arrayForms;
361
385
  if (
362
386
  !form ||
363
387
  !form[0] ||
@@ -397,10 +421,10 @@ export class TokenService {
397
421
  }
398
422
  resolve(lFormFieldsToken);
399
423
  },
400
- (error) => {
424
+ error: (error) => {
401
425
  reject(error);
402
426
  }
403
- );
427
+ });
404
428
  });
405
429
  }
406
430
 
@@ -685,10 +709,10 @@ export class TokenService {
685
709
  getUniqueVerificationCode(login: string, token: string): Observable<any> {
686
710
  return this.httpClient.get(
687
711
  this.environment.host.backend.documentsRepository +
688
- 'documento/consultarCodigoUnico/' +
689
- login +
690
- '/' +
691
- token,
712
+ 'documento/consultarCodigoUnico/' +
713
+ login +
714
+ '/' +
715
+ token,
692
716
  { params: new HttpParams() }
693
717
  );
694
718
  }
@@ -708,10 +732,10 @@ export class TokenService {
708
732
  };
709
733
  return this.httpClient.post(
710
734
  this.environment.host.backend.documentsRepository +
711
- 'documento/adicionarDocumento/' +
712
- login +
713
- '/' +
714
- token,
735
+ 'documento/adicionarDocumento/' +
736
+ login +
737
+ '/' +
738
+ token,
715
739
  infoDocumento,
716
740
  HEADER_JSON
717
741
  );
@@ -850,10 +874,10 @@ export class TokenService {
850
874
  } else {
851
875
  console.log(
852
876
  'El dato [' +
853
- dataValue +
854
- '] para el token [' +
855
- token +
856
- '] tipo númerico no es valido'
877
+ dataValue +
878
+ '] para el token [' +
879
+ token +
880
+ '] tipo númerico no es valido'
857
881
  );
858
882
  valueReplace = '';
859
883
  }
@@ -1048,10 +1072,10 @@ export class TokenService {
1048
1072
  tokenDollarSign < 0 && tokenNumSign >= 0
1049
1073
  ? tokenNumSign
1050
1074
  : tokenNumSign < 0 && tokenDollarSign >= 0
1051
- ? tokenDollarSign
1052
- : tokenDollarSign < tokenNumSign
1053
- ? tokenDollarSign
1054
- : tokenNumSign;
1075
+ ? tokenDollarSign
1076
+ : tokenDollarSign < tokenNumSign
1077
+ ? tokenDollarSign
1078
+ : tokenNumSign;
1055
1079
  return i;
1056
1080
  }
1057
1081
 
@@ -1134,8 +1158,8 @@ export class TokenService {
1134
1158
  let value: any = Number(objectToken)
1135
1159
  ? objectToken
1136
1160
  : Array.isArray(objectToken)
1137
- ? JSON.stringify(objectToken)
1138
- : "'" + objectToken + "'";
1161
+ ? JSON.stringify(objectToken)
1162
+ : "'" + objectToken + "'";
1139
1163
  replacedTokens = this.replaceToken(replacedTokens, tokensArray[i].value, value);
1140
1164
  // } else {
1141
1165
  // console.error(lObjectTokens, tokensArray);
@@ -1,4 +1,4 @@
1
- import { Observable } from 'rxjs/Observable';
1
+ import { Observable } from 'rxjs';
2
2
  import { PliPromocion, DataFormApplication, EProceso, Archive } from 'ng-pli-util';
3
3
  import { PppService } from './ppp.service';
4
4
  import { FileService } from './file.service';
@@ -1,5 +1,4 @@
1
- import { ValidatorFn, ValidationErrors } from "@angular/forms/src/directives/validators";
2
- import { AbstractControl, FormControl } from "@angular/forms/src/model";
1
+ import { FormControl, AbstractControl, ValidatorFn, ValidationErrors } from '@angular/forms';
3
2
  import { DateUtil, NumberUtil } from 'ng-pli-util';
4
3
 
5
4
 
@@ -1,4 +1,5 @@
1
- import * as utils_ from 'formiojs-proyectoscolfuturo/utils/utils';
1
+ // import * as utils_ from 'formiojs-proyectoscolfuturo/utils/utils';
2
+ import * as utils_ from 'formiojs-colfuturo/utils/utils';
2
3
  import { IfStmt } from '@angular/compiler';
3
4
  import { TokenService } from '../services/token.service';
4
5
  import { EFormioKey } from 'ng-pli-util';
@@ -2,6 +2,8 @@
2
2
  * Public API Surface of ng-pli-commons
3
3
  */
4
4
 
5
+ export * from './lib/ng-pli-commons.service';
6
+ // export * from './lib/ng-pli-commons.component';
5
7
  export * from './lib/ng-pli-commons.module';
6
8
  export * from './lib/components/backoffice.commons.component';
7
9
  export * from './lib/components/dashboard.commons.component';
@@ -60,6 +62,7 @@ export * from './lib/services/export-excel.service';
60
62
  export * from './lib/services/file.service';
61
63
  export * from './lib/services/form.service';
62
64
  export * from './lib/services/hash.service';
65
+ export * from './lib/services/gic-client.service';
63
66
  export * from './lib/services/global.show.task.service';
64
67
  export * from './lib/services/guarantee.service';
65
68
  export * from './lib/services/import-data.service';
package/src/test.ts CHANGED
@@ -1,18 +1,26 @@
1
1
  // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2
2
 
3
- import 'core-js/es7/reflect';
4
- import 'zone.js/dist/zone';
5
- import 'zone.js/dist/zone-testing';
3
+ import 'zone.js';
4
+ import 'zone.js/testing';
6
5
  import { getTestBed } from '@angular/core/testing';
7
6
  import {
8
- BrowserDynamicTestingModule,
9
- platformBrowserDynamicTesting
7
+ BrowserDynamicTestingModule,
8
+ platformBrowserDynamicTesting
10
9
  } from '@angular/platform-browser-dynamic/testing';
11
10
 
12
- declare const require: any;
11
+ declare const require: {
12
+ context(path: string, deep?: boolean, filter?: RegExp): {
13
+ <T>(id: string): T;
14
+ keys(): string[];
15
+ };
16
+ };
13
17
 
14
18
  // First, initialize the Angular testing environment.
15
- getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
19
+ getTestBed().initTestEnvironment(
20
+ BrowserDynamicTestingModule,
21
+ platformBrowserDynamicTesting(),
22
+ );
23
+
16
24
  // Then we find all the tests.
17
25
  const context = require.context('./', true, /\.spec\.ts$/);
18
26
  // And load the modules.
package/src/version.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  /* tslint:disable */
3
3
  export const VERSION = {
4
4
  "dirty": true,
5
- "raw": "v0.0.18-1875-g1c7d22e3-dirty",
6
- "hash": "g1c7d22e3",
7
- "distance": 1875,
5
+ "raw": "v0.0.18-1892-ge24b7757-dirty",
6
+ "hash": "ge24b7757",
7
+ "distance": 1892,
8
8
  "tag": "v0.0.18",
9
9
  "semver": {
10
10
  "options": {
@@ -20,9 +20,9 @@ export const VERSION = {
20
20
  "build": [],
21
21
  "version": "0.0.18"
22
22
  },
23
- "suffix": "1875-g1c7d22e3-dirty",
24
- "semverString": "0.0.18+1875.g1c7d22e3",
25
- "version": "0.0.1378",
26
- "buildTimestamp": "2022-03-15T13:13:22.929Z"
23
+ "suffix": "1892-ge24b7757-dirty",
24
+ "semverString": "0.0.18+1892.ge24b7757",
25
+ "version": "0.0.1381",
26
+ "buildTimestamp": "2022-03-15T20:04:56.437Z"
27
27
  };
28
28
  /* tslint:enable */
package/tsconfig.lib.json CHANGED
@@ -1,30 +1,12 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
1
2
  {
2
3
  "extends": "../../tsconfig.json",
3
4
  "compilerOptions": {
4
5
  "outDir": "../../out-tsc/lib",
5
- "target": "es2015",
6
- "module": "es2015",
7
- "moduleResolution": "node",
8
6
  "declaration": true,
9
- "sourceMap": true,
7
+ "declarationMap": true,
10
8
  "inlineSources": true,
11
- "emitDecoratorMetadata": true,
12
- "experimentalDecorators": true,
13
- "importHelpers": true,
14
- "types": [],
15
- "lib": [
16
- "dom",
17
- "es2015"
18
- ]
19
- },
20
- "angularCompilerOptions": {
21
- "annotateForClosureCompiler": false,
22
- "skipTemplateCodegen": true,
23
- "strictMetadataEmit": true,
24
- "fullTemplateTypeCheck": true,
25
- "strictInjectionParameters": true,
26
- "flatModuleId": "AUTOGENERATED",
27
- "flatModuleOutFile": "AUTOGENERATED"
9
+ "types": []
28
10
  },
29
11
  "exclude": [
30
12
  "src/test.ts",
@@ -0,0 +1,10 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "./tsconfig.lib.json",
4
+ "compilerOptions": {
5
+ "declarationMap": false
6
+ },
7
+ "angularCompilerOptions": {
8
+ "compilationMode": "partial"
9
+ }
10
+ }
@@ -1,11 +1,10 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
1
2
  {
2
3
  "extends": "../../tsconfig.json",
3
4
  "compilerOptions": {
4
5
  "outDir": "../../out-tsc/spec",
5
6
  "types": [
6
- "jquery",
7
- "jasmine",
8
- "node"
7
+ "jasmine"
9
8
  ]
10
9
  },
11
10
  "files": [
@@ -15,4 +14,4 @@
15
14
  "**/*.spec.ts",
16
15
  "**/*.d.ts"
17
16
  ]
18
- }
17
+ }
package/tslint.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "../../tslint.json",
3
- "rules": {
4
- "directive-selector": [true, "attribute", "pli", "camelCase"],
5
- "component-selector": [true, "element", "pli", "kebab-case"]
6
- }
7
- }