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.
- package/esm2022/lib/api/base-components/base-component-crud-list.mjs +1 -1
- package/esm2022/lib/api/components/chart/orchart.config.mjs +1 -1
- package/esm2022/lib/components/kv-inputs/kv-input-text/kv-input-text.component.mjs +3 -3
- package/esm2022/lib/components/kv-orgchart/kv-orgchart.component.mjs +49 -9
- package/esm2022/lib/components/kv-orgchart/kv-orgchart.module.mjs +28 -4
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +3 -3
- package/fesm2022/keevo-components.mjs +123 -67
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/components/chart/orchart.config.d.ts +6 -0
- package/lib/components/kv-orgchart/kv-orgchart.component.d.ts +13 -2
- package/lib/components/kv-orgchart/kv-orgchart.module.d.ts +9 -3
- package/package.json +1 -1
|
@@ -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 "
|
|
6
|
-
import * as i5 from "
|
|
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
|
|
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
|
}
|