keevo-components 1.8.355 → 1.8.357

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.
@@ -32,4 +32,10 @@ export default interface OrgChartConfig {
32
32
  * * Default { 2 }
33
33
  */
34
34
  clicks?: string[];
35
+ /**
36
+ * @type {string[]}
37
+ * Esse item espera receber o campos do seu obj{data} que serão filtrados
38
+ * * Default { 2 }
39
+ */
40
+ filters?: string[];
35
41
  }
@@ -2,20 +2,27 @@ import { ChangeDetectorRef, ElementRef, EventEmitter, SimpleChanges, TemplateRef
2
2
  import OrgChartConfig from '../../api/components/chart/orchart.config';
3
3
  import OrgChartNode from '../../api/components/chart/orchartnode';
4
4
  import { OrgChartService } from '../../api/services/orgchart.service';
5
+ import { FilterService } from 'primeng/api';
6
+ import { Dropdown } from 'primeng/dropdown';
5
7
  import * as i0 from "@angular/core";
6
8
  export declare class KvOrgchartComponent {
7
9
  private cdr;
8
10
  private service;
11
+ private filterService;
9
12
  chart: any;
10
13
  dataSource: import("@angular/core").ModelSignal<OrgChartNode[] | null>;
14
+ filtrosOpt: import("@angular/core").WritableSignal<OrgChartNode[]>;
15
+ selectedOpt: null;
11
16
  config: OrgChartConfig;
12
17
  chartContainer: ElementRef;
13
18
  viewContainerRef: ViewContainerRef;
14
19
  nodeTemplate: TemplateRef<any>;
20
+ filterItemTemplate: TemplateRef<any>;
21
+ filterSelectedItemTemplate: TemplateRef<any>;
15
22
  onNodeClick: EventEmitter<any>;
16
23
  compact: boolean;
17
24
  mostraMenu: boolean;
18
- constructor(cdr: ChangeDetectorRef, service: OrgChartService);
25
+ constructor(cdr: ChangeDetectorRef, service: OrgChartService, filterService: FilterService);
19
26
  ngOnInit(): void;
20
27
  ngAfterViewInit(): void;
21
28
  iniciarChart(): void;
@@ -29,6 +36,10 @@ export declare class KvOrgchartComponent {
29
36
  emitirClick(node: Node, seletorCss?: string): void;
30
37
  adicionarNode(node: OrgChartNode): void;
31
38
  removerNode(id: number): void;
39
+ pesquisar(e: any): void;
40
+ filtrarArray(valor: string): OrgChartNode[] | null;
41
+ filter: Dropdown;
42
+ centralizarNo(id: any): void;
32
43
  static ɵfac: i0.ɵɵFactoryDeclaration<KvOrgchartComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<KvOrgchartComponent, "kv-orgchart", never, { "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; }; "nodeTemplate": { "alias": "nodeTemplate"; "required": false; }; }, { "dataSource": "dataSourceChange"; "onNodeClick": "onNodeClick"; }, never, never, false, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<KvOrgchartComponent, "kv-orgchart", never, { "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; }; "nodeTemplate": { "alias": "nodeTemplate"; "required": false; }; "filterItemTemplate": { "alias": "filterItemTemplate"; "required": false; }; "filterSelectedItemTemplate": { "alias": "filterSelectedItemTemplate"; "required": false; }; }, { "dataSource": "dataSourceChange"; "onNodeClick": "onNodeClick"; }, never, never, false, never>;
34
45
  }
@@ -2,10 +2,16 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./kv-orgchart.component";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "../../api/modules/primeng.module";
5
- import * as i4 from "../kv-error/kv-error.module";
6
- import * as i5 from "primeng/organizationchart";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "../kv-error/kv-error.module";
7
+ import * as i6 from "primeng/organizationchart";
8
+ import * as i7 from "../kv-button/kv-button.module";
9
+ import * as i8 from "../kv-inputs/kv-inputs.module";
10
+ import * as i9 from "primeng/autocomplete";
11
+ import * as i10 from "primeng/dropdown";
12
+ import * as i11 from "primeng/floatlabel";
7
13
  export declare class KvOrgchartModule {
8
14
  static ɵfac: i0.ɵɵFactoryDeclaration<KvOrgchartModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<KvOrgchartModule, [typeof i1.KvOrgchartComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule, typeof i4.kvErrorModule, typeof i3.PrimeNgModule, typeof i5.OrganizationChartModule], [typeof i1.KvOrgchartComponent]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KvOrgchartModule, [typeof i1.KvOrgchartComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule, typeof i4.FormsModule, typeof i5.kvErrorModule, typeof i3.PrimeNgModule, typeof i6.OrganizationChartModule, typeof i7.KvButtonModule, typeof i8.KvInputsModule, typeof i9.AutoCompleteModule, typeof i10.DropdownModule, typeof i11.FloatLabelModule], [typeof i1.KvOrgchartComponent]>;
10
16
  static ɵinj: i0.ɵɵInjectorDeclaration<KvOrgchartModule>;
11
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keevo-components",
3
- "version": "1.8.355",
3
+ "version": "1.8.357",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",