@gettrx/core-components-angular 1.1.0 → 1.1.1

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.
@@ -1,18 +1,23 @@
1
- import { ComponentRef, EventEmitter, OnChanges, Type, ViewContainerRef } from '@angular/core';
2
- import { Subject } from 'rxjs';
1
+ import { ComponentRef, EventEmitter, OnChanges, OnDestroy, Type, ViewContainerRef } from '@angular/core';
2
+ import { Subject, Subscription } from 'rxjs';
3
3
  import * as i0 from "@angular/core";
4
- export declare class DynamicComponentDirective implements OnChanges {
4
+ export declare class DynamicComponentDirective implements OnChanges, OnDestroy {
5
5
  component: any;
6
6
  isDestroy: boolean;
7
7
  closed$: Subject<any>;
8
8
  componentRef: ComponentRef<any>;
9
9
  eventEmitter: EventEmitter<any>;
10
+ changesSubscription: Subscription | null;
10
11
  constructor();
11
12
  ngOnChanges(): void;
12
- loadComponents(ref: ViewContainerRef): void;
13
+ ngOnInit(): void;
14
+ private initializeComponents;
15
+ private filterHostsForRow;
16
+ ngOnDestroy(): void;
17
+ loadComponents(ref: ViewContainerRef, rowIndex: number, properties: any, events: any, text: string): void;
13
18
  createDynamicComponent<T>(component: Type<T>, viewRef: ViewContainerRef): ComponentRef<T>;
14
19
  updateInstance(instances: Array<object>): void;
15
- detectChanges(ref: any, events: any): void;
20
+ detectChanges(ref: any, events: any, rowIndex: number): void;
16
21
  clickHandler(event?: any): void;
17
22
  eventHandler(event?: any): void;
18
23
  destroyComponent(): void;
@@ -2,7 +2,11 @@ import { ViewContainerRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DynamicHostDirective {
4
4
  viewContainerRef: ViewContainerRef;
5
+ rowIndex: number;
6
+ properties: any;
7
+ events: any;
8
+ text: any;
5
9
  constructor(viewContainerRef: ViewContainerRef);
6
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicHostDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicHostDirective, "[appDynamicHost]", ["appDynamicHost"], {}, {}, never, never, true, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicHostDirective, "[appDynamicHost]", ["appDynamicHost"], { "rowIndex": { "alias": "rowIndex"; "required": false; }; "properties": { "alias": "properties"; "required": false; }; "events": { "alias": "events"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, never, true, never>;
8
12
  }
@@ -51,7 +51,7 @@ export declare class GtrTableMainComponent implements OnDestroy, AfterViewChecke
51
51
  ngAfterViewChecked(): void;
52
52
  onSorting(sortType: number, column: any): void;
53
53
  actionDone(event: any, rowId: any, action: any): void;
54
- fetchEvent(e: any, rowId: string | number): void;
54
+ fetchEvent(e: any): void;
55
55
  onColumnClick(rowId: any, column: TCOLUMN): void;
56
56
  selectAll(event: any): void;
57
57
  fectchSelection(): boolean;
@@ -67,7 +67,7 @@ export declare class GtrTableResponsiveComponent implements OnDestroy, AfterView
67
67
  * The method is used to emit action
68
68
  */
69
69
  actionDone(value: string, row: any, action: any): void;
70
- fetchEvent(e: any, rowId: string | number): void;
70
+ fetchEvent(e: any): void;
71
71
  onColumnClick(rowId: any, column: TCOLUMN): void;
72
72
  getActions(columns: TCOLUMN[] | undefined): TCOLUMN | undefined;
73
73
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gettrx/core-components-angular",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Angular specific wrappers for @gettrx/core-components",
5
5
  "keywords": [
6
6
  "gettrx",
@@ -19,7 +19,7 @@
19
19
  "license": "MIT",
20
20
  "peerDependencies": {
21
21
  "@angular/common": "18.2.13",
22
- "@gettrx/core-styles": "1.1.0",
22
+ "@gettrx/core-styles": "1.1.1",
23
23
  "ngx-colors": "^3.6.0"
24
24
  },
25
25
  "module": "fesm2022/gettrx-core-components-angular.mjs",