@gettrx/core-components-angular 1.0.49 → 1.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ import { ComponentRef, EventEmitter, OnChanges, Type, ViewContainerRef } from '@angular/core';
2
+ import { Subject } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DynamicComponentDirective implements OnChanges {
5
+ component: any;
6
+ isDestroy: boolean;
7
+ closed$: Subject<any>;
8
+ componentRef: ComponentRef<any>;
9
+ eventEmitter: EventEmitter<any>;
10
+ constructor();
11
+ ngOnChanges(): void;
12
+ loadComponents(ref: ViewContainerRef): void;
13
+ createDynamicComponent<T>(component: Type<T>, viewRef: ViewContainerRef): ComponentRef<T>;
14
+ updateInstance(instances: Array<object>): void;
15
+ detectChanges(ref: any, events: any): void;
16
+ clickHandler(event?: any): void;
17
+ eventHandler(event?: any): void;
18
+ destroyComponent(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentDirective, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicComponentDirective, "[appDynamicComponent]", never, { "component": { "alias": "appDynamicComponent"; "required": false; }; "isDestroy": { "alias": "isDestroy"; "required": false; }; }, { "eventEmitter": "eventEmitter"; }, never, never, true, never>;
21
+ }
@@ -0,0 +1,8 @@
1
+ import { ViewContainerRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DynamicHostDirective {
4
+ viewContainerRef: ViewContainerRef;
5
+ constructor(viewContainerRef: ViewContainerRef);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicHostDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicHostDirective, "[appDynamicHost]", ["appDynamicHost"], {}, {}, never, never, true, never>;
8
+ }
@@ -55,6 +55,10 @@ export declare class GtrTableComponent implements OnDestroy {
55
55
  * Action eventemitter
56
56
  */
57
57
  onAction: EventEmitter<any>;
58
+ /**
59
+ * Component Event eventemitter
60
+ */
61
+ handleEvent: EventEmitter<any>;
58
62
  /**
59
63
  * Sorting eventemitter
60
64
  */
@@ -73,11 +77,12 @@ export declare class GtrTableComponent implements OnDestroy {
73
77
  value: boolean;
74
78
  id: number;
75
79
  }): void;
80
+ fetchEvent(ev: any): void;
76
81
  sorting(ev: {
77
82
  value: boolean;
78
83
  id: number;
79
84
  }): void;
80
85
  ngOnDestroy(): void;
81
86
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrTableComponent, never>;
82
- static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableComponent, "gtr-table", ["gtrTable"], { "isResponsive": { "alias": "isResponsive"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "tableMainId": { "alias": "tableMainId"; "required": false; }; "tableResponsiveId": { "alias": "tableResponsiveId"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "onSelection": "onSelection"; "onAction": "onAction"; "onSort": "onSort"; }, never, never, true, never>;
87
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableComponent, "gtr-table", ["gtrTable"], { "isResponsive": { "alias": "isResponsive"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "tableMainId": { "alias": "tableMainId"; "required": false; }; "tableResponsiveId": { "alias": "tableResponsiveId"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "onSelection": "onSelection"; "onAction": "onAction"; "handleEvent": "handleEvent"; "onSort": "onSort"; }, never, never, true, never>;
83
88
  }
@@ -1,8 +1,10 @@
1
1
  import { AfterViewChecked, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList, ViewContainerRef } from '@angular/core';
2
2
  import { TCOLUMN, THEAD, TROW } from '../gtr-table.interface';
3
+ import { DynamicHostDirective } from '../dynamic-host.directive';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class GtrTableMainComponent implements OnDestroy, AfterViewChecked {
5
6
  private cdRef;
7
+ dynamicHosts: QueryList<DynamicHostDirective>;
6
8
  constructor(cdRef: ChangeDetectorRef);
7
9
  templateRef: QueryList<ViewContainerRef>;
8
10
  childRowRef: QueryList<ViewContainerRef>;
@@ -37,6 +39,10 @@ export declare class GtrTableMainComponent implements OnDestroy, AfterViewChecke
37
39
  * Action eventemitter
38
40
  */
39
41
  onAction: EventEmitter<any>;
42
+ /**
43
+ * Component Event eventemitter
44
+ */
45
+ handleEvent: EventEmitter<any>;
40
46
  /**
41
47
  * Sorting eventemitter
42
48
  */
@@ -44,11 +50,12 @@ export declare class GtrTableMainComponent implements OnDestroy, AfterViewChecke
44
50
  ngAfterViewChecked(): void;
45
51
  onSorting(sortType: number, column: any): void;
46
52
  actionDone(event: any, rowId: any, action: any): void;
53
+ fetchEvent(e: any, rowId: string | number): void;
47
54
  onColumnClick(rowId: any, column: TCOLUMN): void;
48
55
  selectAll(event: any): void;
49
56
  fectchSelection(): boolean;
50
57
  selectionDone(event: any, item: any): void;
51
58
  ngOnDestroy(): void;
52
59
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrTableMainComponent, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableMainComponent, "gtr-table-main", ["gtrTableMain"], { "enableSelection": { "alias": "enableSelection"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "tableMainId": { "alias": "tableMainId"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "onSelection": "onSelection"; "onAction": "onAction"; "onSort": "onSort"; }, never, never, true, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableMainComponent, "gtr-table-main", ["gtrTableMain"], { "enableSelection": { "alias": "enableSelection"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "tableMainId": { "alias": "tableMainId"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "onSelection": "onSelection"; "onAction": "onAction"; "handleEvent": "handleEvent"; "onSort": "onSort"; }, never, never, true, never>;
54
61
  }
@@ -1,12 +1,14 @@
1
- import { AfterViewChecked, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList, ViewContainerRef } from '@angular/core';
1
+ import { AfterViewChecked, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
2
2
  import { TCOLUMN, THEAD, TROW } from '../gtr-table.interface';
3
3
  import { GtrFetchAttributePipe } from '../gtr-fetch-attribute.pipe';
4
+ import { DynamicHostDirective } from '../dynamic-host.directive';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class GtrTableResponsiveComponent implements OnDestroy, AfterViewChecked {
6
7
  private cdRef;
7
8
  private attributesPipe;
8
- templateRef: QueryList<ViewContainerRef>;
9
+ dynamicHosts: QueryList<DynamicHostDirective>;
9
10
  isLoading: boolean;
11
+ appDynamicHost: any;
10
12
  constructor(cdRef: ChangeDetectorRef, attributesPipe: GtrFetchAttributePipe);
11
13
  /**
12
14
  * Set the hide/show state of checbox.
@@ -34,6 +36,10 @@ export declare class GtrTableResponsiveComponent implements OnDestroy, AfterView
34
36
  * Action eventemitter
35
37
  */
36
38
  onAction: EventEmitter<any>;
39
+ /**
40
+ * Component Event eventemitter
41
+ */
42
+ handleEvent: EventEmitter<any>;
37
43
  /**
38
44
  * Sorting eventemitter
39
45
  */
@@ -60,6 +66,7 @@ export declare class GtrTableResponsiveComponent implements OnDestroy, AfterView
60
66
  * The method is used to emit action
61
67
  */
62
68
  actionDone(value: string, row: any, action: any): void;
69
+ fetchEvent(e: any, rowId: string | number): void;
63
70
  onColumnClick(rowId: any, column: TCOLUMN): void;
64
71
  getActions(columns: TCOLUMN[] | undefined): TCOLUMN | undefined;
65
72
  /**
@@ -72,5 +79,5 @@ export declare class GtrTableResponsiveComponent implements OnDestroy, AfterView
72
79
  expandRow(row: any): void;
73
80
  ngOnDestroy(): void;
74
81
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrTableResponsiveComponent, never>;
75
- static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableResponsiveComponent, "gtr-table-responsive", ["gtrTableResponsive"], { "isLoading": { "alias": "isLoading"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "tableResponsiveId": { "alias": "tableResponsiveId"; "required": false; }; }, { "onSelection": "onSelection"; "onAction": "onAction"; "onSort": "onSort"; }, never, never, true, never>;
82
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableResponsiveComponent, "gtr-table-responsive", ["gtrTableResponsive"], { "isLoading": { "alias": "isLoading"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "tableResponsiveId": { "alias": "tableResponsiveId"; "required": false; }; }, { "onSelection": "onSelection"; "onAction": "onAction"; "handleEvent": "handleEvent"; "onSort": "onSort"; }, never, never, true, never>;
76
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gettrx/core-components-angular",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "Angular specific wrappers for @gettrx/core-components",
5
5
  "keywords": [
6
6
  "gettrx",
@@ -20,7 +20,7 @@
20
20
  "peerDependencies": {
21
21
  "@angular/common": "^16.1.0",
22
22
  "@angular/core": "^16.1.0",
23
- "@gettrx/core-styles": "1.0.49",
23
+ "@gettrx/core-styles": "1.0.51",
24
24
  "ngx-colors": "^3.6.0"
25
25
  },
26
26
  "module": "fesm2022/gettrx-core-components-angular.mjs",