@acorex/components 16.0.13 → 16.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,13 @@
1
- import { Component, EventEmitter, Input } from "@angular/core";
2
- import { AXDataSourceReceivedResult } from './read-param';
1
+ import { Component, EventEmitter, Input } from '@angular/core';
3
2
  import { AXDataEvent } from '../base/events.class';
3
+ import { AXDataSourceReceivedResult, } from './read-param';
4
4
  import * as i0 from "@angular/core";
5
5
  export class AXDataSourceReceivedEvent extends AXDataEvent {
6
6
  }
7
7
  export class AXDataSourceComponent {
8
8
  onDataReceived = new EventEmitter();
9
9
  onFetchStart = new EventEmitter();
10
+ onFetchEnd = new EventEmitter();
10
11
  provideData;
11
12
  params;
12
13
  fetch(params) {
@@ -19,29 +20,30 @@ export class AXDataSourceComponent {
19
20
  params.extra = this.params;
20
21
  }
21
22
  //
22
- this.provideData(params).then(_data => {
23
+ this.provideData(params).then((_data) => {
23
24
  const data = new AXDataSourceReceivedResult();
24
25
  data.result = _data;
25
26
  data.requestId = params == null ? null : params.requestId;
26
27
  this.onDataReceived.emit({
27
28
  component: this,
28
- data: data
29
+ data: data,
29
30
  });
31
+ this.onFetchEnd.emit({ component: this });
30
32
  });
31
33
  }
32
34
  }
33
35
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXDataSourceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
34
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AXDataSourceComponent, selector: "ax-data-source", inputs: { provideData: "provideData", params: "params" }, ngImport: i0, template: "<ng-content></ng-content>", isInline: true });
36
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AXDataSourceComponent, selector: "ax-data-source", inputs: { provideData: "provideData", params: "params" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
35
37
  }
36
38
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXDataSourceComponent, decorators: [{
37
39
  type: Component,
38
40
  args: [{
39
- selector: "ax-data-source",
40
- template: "<ng-content></ng-content>"
41
+ selector: 'ax-data-source',
42
+ template: '<ng-content></ng-content>',
41
43
  }]
42
44
  }], propDecorators: { provideData: [{
43
45
  type: Input
44
46
  }], params: [{
45
47
  type: Input
46
48
  }] } });
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YXNvdXJjZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvc3JjL2xpYi9kYXRhLXNvdXJjZS9kYXRhc291cmNlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFnQixZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzdFLE9BQU8sRUFBNEMsMEJBQTBCLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFFcEcsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHNCQUFzQixDQUFDOztBQUduRCxNQUFNLE9BQU8seUJBQTBCLFNBQVEsV0FBdUM7Q0FHckY7QUFPRCxNQUFNLE9BQU8scUJBQXFCO0lBRTlCLGNBQWMsR0FBNEMsSUFBSSxZQUFZLEVBQTZCLENBQUM7SUFDeEcsWUFBWSxHQUE4QixJQUFJLFlBQVksRUFBZSxDQUFDO0lBRzFFLFdBQVcsQ0FBbUQ7SUFHOUQsTUFBTSxDQUFNO0lBRVosS0FBSyxDQUFDLE1BQThCO1FBQ2hDLElBQUksQ0FBQyxZQUFZLENBQUMsSUFBSSxDQUFDLEVBQUUsU0FBUyxFQUFFLElBQUksRUFBRSxDQUFDLENBQUM7UUFDNUMsSUFBSSxJQUFJLENBQUMsV0FBVyxFQUFFO1lBQ2xCLElBQUks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XJhbXM6IGFueTtcblxuICAgIGZldGNoKHBhcmFtczogQVhEYXRhU291cmNlUmVhZFBhcmFtcykge1xuICAgICAgICB0aGlzLm9uRmV0Y2hTdGFydC5lbWl0KHsgY29tcG9uZW50OiB0aGlzIH0pO1xuICAgICAgICBpZiAodGhpcy5wcm92aWRlRGF0YSkge1xuICAgICAgICAgICAgaWYgKHBhcmFtcyA9PT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIHBhcmFtcyA9IHRoaXMucGFyYW1zID09PSB1bmRlZmluZWQgPyBudWxsIDogdGhpcy5wYXJhbXM7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHBhcmFtcy5leHRyYSA9IHRoaXMucGFyYW1zO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAvL1xuICAgICAgICAgICAgdGhpcy5wcm92aWRlRGF0YShwYXJhbXMpLnRoZW4oX2RhdGEgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IGRhdGE6IEFYRGF0YVNvdXJjZVJlY2VpdmVkUmVzdWx0ID0gbmV3IEFYRGF0YVNvdXJjZVJlY2VpdmVkUmVzdWx0KCk7XG4gICAgICAgICAgICAgICAgZGF0YS5yZXN1bHQgPSBfZGF0YTtcbiAgICAgICAgICAgICAgICBkYXRhLnJlcXVlc3RJZCA9IHBhcmFtcyA9PSBudWxsID8gbnVsbCA6IHBhcmFtcy5yZXF1ZXN0SWQ7XG4gICAgICAgICAgICAgICAgdGhpcy5vbkRhdGFSZWNlaXZlZC5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgY29tcG9uZW50OiB0aGlzLFxuICAgICAgICAgICAgICAgICAgICBkYXRhOiBkYXRhXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH1cblxufVxuIl19
49
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YXNvdXJjZS5jb21wb25lb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KTtcbiAgICBpZiAodGhpcy5wcm92aWRlRGF0YSkge1xuICAgICAgaWYgKHBhcmFtcyA9PT0gbnVsbCkge1xuICAgICAgICBwYXJhbXMgPSB0aGlzLnBhcmFtcyA9PT0gdW5kZWZpbmVkID8gbnVsbCA6IHRoaXMucGFyYW1zO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgcGFyYW1zLmV4dHJhID0gdGhpcy5wYXJhbXM7XG4gICAgICB9XG5cbiAgICAgIC8vXG4gICAgICB0aGlzLnByb3ZpZGVEYXRhKHBhcmFtcykudGhlbigoX2RhdGEpID0+IHtcbiAgICAgICAgY29uc3QgZGF0YTogQVhEYXRhU291cmNlUmVjZWl2ZWRSZXN1bHQgPVxuICAgICAgICAgIG5ldyBBWERhdGFTb3VyY2VSZWNlaXZlZFJlc3VsdCgpO1xuICAgICAgICBkYXRhLnJlc3VsdCA9IF9kYXRhO1xuICAgICAgICBkYXRhLnJlcXVlc3RJZCA9IHBhcmFtcyA9PSBudWxsID8gbnVsbCA6IHBhcmFtcy5yZXF1ZXN0SWQ7XG4gICAgICAgIHRoaXMub25EYXRhUmVjZWl2ZWQuZW1pdCh7XG4gICAgICAgICAgY29tcG9uZW50OiB0aGlzLFxuICAgICAgICAgIGRhdGE6IGRhdGEsXG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMub25GZXRjaEVuZC5lbWl0KHsgY29tcG9uZW50OiB0aGlzIH0pO1xuICAgICAgfSk7XG4gICAgfVxuICB9XG59XG4iXX0=
@@ -2637,6 +2637,7 @@ class AXDataSourceReceivedEvent extends AXDataEvent {
2637
2637
  class AXDataSourceComponent {
2638
2638
  onDataReceived = new EventEmitter();
2639
2639
  onFetchStart = new EventEmitter();
2640
+ onFetchEnd = new EventEmitter();
2640
2641
  provideData;
2641
2642
  params;
2642
2643
  fetch(params) {
@@ -2649,25 +2650,26 @@ class AXDataSourceComponent {
2649
2650
  params.extra = this.params;
2650
2651
  }
2651
2652
  //
2652
- this.provideData(params).then(_data => {
2653
+ this.provideData(params).then((_data) => {
2653
2654
  const data = new AXDataSourceReceivedResult();
2654
2655
  data.result = _data;
2655
2656
  data.requestId = params == null ? null : params.requestId;
2656
2657
  this.onDataReceived.emit({
2657
2658
  component: this,
2658
- data: data
2659
+ data: data,
2659
2660
  });
2661
+ this.onFetchEnd.emit({ component: this });
2660
2662
  });
2661
2663
  }
2662
2664
  }
2663
2665
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXDataSourceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2664
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AXDataSourceComponent, selector: "ax-data-source", inputs: { provideData: "provideData", params: "params" }, ngImport: i0, template: "<ng-content></ng-content>", isInline: true });
2666
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AXDataSourceComponent, selector: "ax-data-source", inputs: { provideData: "provideData", params: "params" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
2665
2667
  }
2666
2668
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXDataSourceComponent, decorators: [{
2667
2669
  type: Component,
2668
2670
  args: [{
2669
- selector: "ax-data-source",
2670
- template: "<ng-content></ng-content>"
2671
+ selector: 'ax-data-source',
2672
+ template: '<ng-content></ng-content>',
2671
2673
  }]
2672
2674
  }], propDecorators: { provideData: [{
2673
2675
  type: Input