keevo-components 2.0.154 → 2.0.156

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.
@@ -30,9 +30,10 @@ import * as i28 from "./kv-tag/kv-tag.module";
30
30
  import * as i29 from "./kv-confirmation-modal/kv-confirmation-modal.module";
31
31
  import * as i30 from "./kv-filter-cards/kv-filter-cards.module";
32
32
  import * as i31 from "primeng/skeleton";
33
- import * as i32 from "./kv-table-edit/kv-table-edit.module";
33
+ import * as i32 from "./kv-table-draggable/kv-table-draggable.module";
34
+ import * as i33 from "./kv-table-edit/kv-table-edit.module";
34
35
  export declare class KeevoComponentsModule {
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<KeevoComponentsModule, never>;
36
- static ɵmod: i0.ɵɵNgModuleDeclaration<KeevoComponentsModule, never, [typeof i1.KvAvatarModule, typeof i2.KvButtonsModule, typeof i3.KvButtonModule, typeof i4.KvCarouselModule, typeof i5.KvChartModule, typeof i6.KvInputsModule, typeof i7.KvLoaderModule, typeof i8.KvLoginModule, typeof i9.KvLayoutModule, typeof i10.KvModalModule, typeof i11.KvOrgchartModule, typeof i12.KvPageFormModule, typeof i13.KvPickListModule, typeof i14.KvProgressBarModule, typeof i15.KvTableModule, typeof i16.KvTreetableModule, typeof i17.KvtreeViewModule, typeof i18.KvWorkspaceModule, typeof i19.KvStepperModule, typeof i20.KvImageUploadModule, typeof i21.KvTableExpandableModule, typeof i22.KvGIconModule, typeof i23.KvFilterCardModule, typeof i24.KvFileViewerModule, typeof i25.KvFileViewerNovoModule, typeof i26.KvFilterFieldsetModule, typeof i27.KvCardSelectionModule, typeof i28.KvTagModule, typeof i29.KvConfirmationModalModule, typeof i30.KvFilterCardsModule, typeof i31.SkeletonModule], [typeof i1.KvAvatarModule, typeof i2.KvButtonsModule, typeof i3.KvButtonModule, typeof i4.KvCarouselModule, typeof i5.KvChartModule, typeof i6.KvInputsModule, typeof i7.KvLoaderModule, typeof i8.KvLoginModule, typeof i9.KvLayoutModule, typeof i10.KvModalModule, typeof i11.KvOrgchartModule, typeof i12.KvPageFormModule, typeof i13.KvPickListModule, typeof i14.KvProgressBarModule, typeof i32.KvTableEditModule, typeof i15.KvTableModule, typeof i16.KvTreetableModule, typeof i17.KvtreeViewModule, typeof i18.KvWorkspaceModule, typeof i19.KvStepperModule, typeof i20.KvImageUploadModule, typeof i21.KvTableExpandableModule, typeof i22.KvGIconModule, typeof i23.KvFilterCardModule, typeof i24.KvFileViewerModule, typeof i26.KvFilterFieldsetModule, typeof i25.KvFileViewerNovoModule, typeof i27.KvCardSelectionModule, typeof i28.KvTagModule, typeof i29.KvConfirmationModalModule, typeof i30.KvFilterCardsModule]>;
37
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KeevoComponentsModule, never, [typeof i1.KvAvatarModule, typeof i2.KvButtonsModule, typeof i3.KvButtonModule, typeof i4.KvCarouselModule, typeof i5.KvChartModule, typeof i6.KvInputsModule, typeof i7.KvLoaderModule, typeof i8.KvLoginModule, typeof i9.KvLayoutModule, typeof i10.KvModalModule, typeof i11.KvOrgchartModule, typeof i12.KvPageFormModule, typeof i13.KvPickListModule, typeof i14.KvProgressBarModule, typeof i15.KvTableModule, typeof i16.KvTreetableModule, typeof i17.KvtreeViewModule, typeof i18.KvWorkspaceModule, typeof i19.KvStepperModule, typeof i20.KvImageUploadModule, typeof i21.KvTableExpandableModule, typeof i22.KvGIconModule, typeof i23.KvFilterCardModule, typeof i24.KvFileViewerModule, typeof i25.KvFileViewerNovoModule, typeof i26.KvFilterFieldsetModule, typeof i27.KvCardSelectionModule, typeof i28.KvTagModule, typeof i29.KvConfirmationModalModule, typeof i30.KvFilterCardsModule, typeof i31.SkeletonModule, typeof i32.KvTableDraggableModule], [typeof i1.KvAvatarModule, typeof i2.KvButtonsModule, typeof i3.KvButtonModule, typeof i4.KvCarouselModule, typeof i5.KvChartModule, typeof i6.KvInputsModule, typeof i7.KvLoaderModule, typeof i8.KvLoginModule, typeof i9.KvLayoutModule, typeof i10.KvModalModule, typeof i11.KvOrgchartModule, typeof i12.KvPageFormModule, typeof i13.KvPickListModule, typeof i14.KvProgressBarModule, typeof i33.KvTableEditModule, typeof i15.KvTableModule, typeof i16.KvTreetableModule, typeof i17.KvtreeViewModule, typeof i18.KvWorkspaceModule, typeof i19.KvStepperModule, typeof i20.KvImageUploadModule, typeof i21.KvTableExpandableModule, typeof i22.KvGIconModule, typeof i23.KvFilterCardModule, typeof i24.KvFileViewerModule, typeof i26.KvFilterFieldsetModule, typeof i25.KvFileViewerNovoModule, typeof i27.KvCardSelectionModule, typeof i28.KvTagModule, typeof i29.KvConfirmationModalModule, typeof i30.KvFilterCardsModule, typeof i32.KvTableDraggableModule]>;
37
38
  static ɵinj: i0.ɵɵInjectorDeclaration<KeevoComponentsModule>;
38
39
  }
@@ -9,7 +9,7 @@ export declare class KvButtonComponent {
9
9
  severity: import("@angular/core").InputSignal<"primary" | "secondary" | "tertiary" | "danger">;
10
10
  size: import("@angular/core").InputSignal<"small" | "normal" | "large">;
11
11
  icon: import("@angular/core").ModelSignal<string>;
12
- iconPosition: import("@angular/core").InputSignal<"left" | "right">;
12
+ iconPosition: import("@angular/core").InputSignal<"right" | "left">;
13
13
  label: import("@angular/core").InputSignal<string>;
14
14
  disabled: import("@angular/core").InputSignal<boolean>;
15
15
  onClick: import("@angular/core").OutputEmitterRef<any>;
@@ -8,7 +8,7 @@ export declare class KvButtonPopupComponent extends BaseComponentButton {
8
8
  items: MenuItem[];
9
9
  classBtn: string;
10
10
  size: import("@angular/core").InputSignal<"small" | "normal" | "large">;
11
- type: import("@angular/core").InputSignal<"normal" | "text" | "outline">;
11
+ type: import("@angular/core").InputSignal<"text" | "normal" | "outline">;
12
12
  icon: string;
13
13
  constructor();
14
14
  handleShow(): void;
@@ -78,6 +78,7 @@ export declare class KvLayoutComponent implements OnInit, OnChanges {
78
78
  menus: import("@angular/core").ModelSignal<LayoutMenuItem[]>;
79
79
  menuVisivel: WritableSignal<number | undefined>;
80
80
  showMenuSistemas: WritableSignal<boolean>;
81
+ menuVisivelChild: WritableSignal<number | undefined>;
81
82
  expandMenu: import("@angular/core").ModelSignal<boolean>;
82
83
  logoMenuExpand: any;
83
84
  logoMenuHide: any;
@@ -143,12 +144,14 @@ export declare class KvLayoutComponent implements OnInit, OnChanges {
143
144
  isSelectedMenuPai(menu: any): boolean;
144
145
  selecionarMenu(): void;
145
146
  returnMenuChild(idmenu: number): LayoutMenuItem[];
147
+ temFilhos(menu: any): boolean;
146
148
  selectApp(idaplicativo: number): void;
147
149
  showLicencas(): boolean;
148
150
  toggleMenu(): void;
149
151
  navigateToDefaultRoute(): void;
150
152
  get exibirNomes(): string | false;
151
153
  exibirMenuChild(event: any, index: number): void;
154
+ exibirSubMenuChild(event: any, idmenu: number): void;
152
155
  downloadDoc(trilha: any): void;
153
156
  showVideoDoc(trilha: any): void;
154
157
  static ɵfac: i0.ɵɵFactoryDeclaration<KvLayoutComponent, never>;
@@ -141,7 +141,7 @@ export declare class KvTableComponent implements OnInit, DoCheck, AfterViewInit
141
141
  onClickEvent(event: any): void;
142
142
  styleSetter(style: string, data: string): void;
143
143
  checkMenuFiltro(col: TableConfigColumn): void;
144
- sortByPosition(): (elem1: any, elem2: any) => 0 | 1 | -1;
144
+ sortByPosition(): (elem1: any, elem2: any) => 1 | 0 | -1;
145
145
  dinamicDisableColumn(col: TableConfigColumn): boolean;
146
146
  checkHideColumns(): void;
147
147
  getCustomTemplate(templatename: string): TemplateRef<any>;
@@ -0,0 +1,159 @@
1
+ import { DatePipe, DecimalPipe } from '@angular/common';
2
+ import { CdkDragDrop, CdkDragStart } from '@angular/cdk/drag-drop';
3
+ import { AfterViewInit, DoCheck, ElementRef, EventEmitter, OnInit, QueryList, Renderer2, TemplateRef } from '@angular/core';
4
+ import { Table, TablePageEvent } from 'primeng/table';
5
+ import { MenuItem } from 'primeng/api';
6
+ import { CpfCnpjPipe } from '../../api/pipes/cpfcnpj.pipe';
7
+ import { ValueOrFn } from '../../api/components/table/kv-menuitem';
8
+ import { TableConfig } from '../../api/components/table/table.config';
9
+ import { TableConfigColumn } from '../../api/components/table/table.config.column';
10
+ import { TablePaginate } from '../../api/components/table/table.paginate';
11
+ import { TelefonePipe } from '../../api/pipes/telefone.pipe';
12
+ import * as i0 from "@angular/core";
13
+ export declare class KvTableDraggableComponent implements OnInit, DoCheck, AfterViewInit {
14
+ private readonly datePipe;
15
+ private readonly decimalPipe;
16
+ private readonly cpfCnpjPipe;
17
+ private readonly telefonePipe;
18
+ private renderer;
19
+ private elementRef;
20
+ columns: TableConfigColumn[];
21
+ deletedColuns: TableConfigColumn[];
22
+ globalFilterFields: string[];
23
+ selectedSize: string;
24
+ collapsed: boolean;
25
+ menuFiltro: boolean;
26
+ checked: boolean;
27
+ checkboxClicked: boolean;
28
+ menuItems: MenuItem[];
29
+ tableActions: MenuItem[][];
30
+ currDataSource: any[];
31
+ actionsOffset: number;
32
+ private isDragging;
33
+ private prepositions;
34
+ private romanNumerals;
35
+ private siglas;
36
+ first: import("@angular/core").ModelSignal<number>;
37
+ rows: import("@angular/core").ModelSignal<number>;
38
+ tableCell: import("@angular/core").Signal<ElementRef<any> | undefined>;
39
+ ellipsisText: import("@angular/core").InputSignal<boolean>;
40
+ isLoadingSkeleton: import("@angular/core").InputSignal<boolean>;
41
+ filterButton: import("@angular/core").InputSignal<boolean>;
42
+ filterButtonBadge: import("@angular/core").InputSignal<string>;
43
+ private readonly tableConfig;
44
+ widthPage: import("@angular/core").WritableSignal<number>;
45
+ _templates: any;
46
+ searchPlaceholder: string;
47
+ defaultSortField: string | undefined;
48
+ dataSource: any[];
49
+ selectedItems: any[];
50
+ totalRecords: number;
51
+ paginator: boolean;
52
+ rowsPerPageOptions: number[];
53
+ tableSize: number;
54
+ filterColumnsBtn: boolean;
55
+ replaceEmptyValues: boolean;
56
+ filtrosAvancados: boolean;
57
+ scrollHeight: string;
58
+ isTableScrollable: boolean;
59
+ tableCaptalized: boolean;
60
+ rowTrackBy: (index: number, item: any) => any;
61
+ responsiveLayout: boolean;
62
+ disabledHeaderCheckbox: boolean;
63
+ enableDragDrop: boolean;
64
+ dragDropDisabled: (item: any) => boolean;
65
+ applyStyle: Function;
66
+ pageLinksOptions: number;
67
+ showFirstLastIcon: boolean;
68
+ set setConfig(value: TableConfig);
69
+ onActiveItem: EventEmitter<any>;
70
+ onActiveItemLote: EventEmitter<any>;
71
+ onPaginate: EventEmitter<TablePaginate>;
72
+ onSelectionChange: EventEmitter<any>;
73
+ doubleClickEvent: EventEmitter<any>;
74
+ filterField: EventEmitter<any>;
75
+ onSwitchTableChange: EventEmitter<any>;
76
+ onRowReorder: EventEmitter<{
77
+ previousIndex: number;
78
+ currentIndex: number;
79
+ item: any;
80
+ newOrder: any[];
81
+ }>;
82
+ menuFiltroDiv: ElementRef;
83
+ botaoFiltro: ElementRef;
84
+ inputField: ElementRef;
85
+ table: Table;
86
+ ptable: Table;
87
+ templates: QueryList<any>;
88
+ constructor(datePipe: DatePipe, decimalPipe: DecimalPipe, cpfCnpjPipe: CpfCnpjPipe, telefonePipe: TelefonePipe, renderer: Renderer2, elementRef: ElementRef);
89
+ configuracaoEffect: import("@angular/core").EffectRef;
90
+ dataSourceSignal: import("@angular/core").WritableSignal<any[]>;
91
+ widthSkeletons: number[];
92
+ widthRandom: import("@angular/core").Signal<(col: any, row: any) => number>;
93
+ ngDoCheck(): void;
94
+ dataSourceMock: any[];
95
+ isEmptyDataSource: import("@angular/core").Signal<boolean>;
96
+ loadingSkeletonUtilities(): void;
97
+ ngOnInit(): void;
98
+ ngAfterViewInit(): void;
99
+ definirColunasConfiguraveis(config: TableConfig): void;
100
+ definirFiltrosGlobais(config: TableConfig): void;
101
+ resetTable(): void;
102
+ onWindowResize(): void;
103
+ activeItem(rowData: any): void;
104
+ getOrExecute<T>(action: ValueOrFn<T>, data: any): T;
105
+ isBooleanField(rowData: any, col: TableConfigColumn): boolean;
106
+ isChipField(col: TableConfigColumn): boolean;
107
+ protected onPage(event: TablePageEvent): void;
108
+ isImageField(col: TableConfigColumn): boolean;
109
+ isSwitchField(col: TableConfigColumn): boolean;
110
+ isRowSelectable(event: any): boolean;
111
+ isDisabledCheckbox(rowData: any): boolean;
112
+ isDisabledRow(rowData: any): boolean;
113
+ private getStyleClass;
114
+ verificaCursor(): void;
115
+ loadImage(rowData: any, col: TableConfigColumn): string;
116
+ onGlobalFilter(table: Table, event: Event): void;
117
+ paginate(event: any): void;
118
+ selectionChange(value: any): void;
119
+ activeItemLote(selectedItems: any): void;
120
+ returnRowClass(rowData: any, col: TableConfigColumn): string;
121
+ private expiredFile;
122
+ transformValue(rowData: any, col: TableConfigColumn): any;
123
+ transformCapitalize(value: string): string;
124
+ formatarValor(valor: number): string;
125
+ adjustTableSize(): void;
126
+ doubleClick(e: any, rowData: any): void;
127
+ retornarRow(rowData: any, col: TableConfigColumn, field: string): string;
128
+ private exibirCampo;
129
+ returnClassChip(rowData: any, col: TableConfigColumn): string;
130
+ returnClassIcon(rowData: any, col: TableConfigColumn): string;
131
+ returnTooltipIcon(rowData: any, col: TableConfigColumn): string;
132
+ returnTooltipRow(rowData: any, col: TableConfigColumn): any;
133
+ deleteColumn(field: string): void;
134
+ addColumn(field: string): void;
135
+ dinamicColumnSet(e: any, col: TableConfigColumn): void;
136
+ abrirMenuFiltro(e: any): void;
137
+ fecharMenuFiltro(): void;
138
+ onEscapeKey(event: KeyboardEvent): void;
139
+ onClickEvent(event: any): void;
140
+ styleSetter(style: string, data: string): void;
141
+ checkMenuFiltro(col: TableConfigColumn): void;
142
+ sortByPosition(): (elem1: any, elem2: any) => 1 | 0 | -1;
143
+ dinamicDisableColumn(col: TableConfigColumn): boolean;
144
+ checkHideColumns(): void;
145
+ getCustomTemplate(templatename: string): TemplateRef<any>;
146
+ onSwitchChange(estado: any, rowData: any, col: TableConfigColumn): void;
147
+ createTableActions(): void;
148
+ onSort(e: any): void;
149
+ get config(): TableConfig;
150
+ columnsFilter: import("@angular/core").Signal<TableConfigColumn[]>;
151
+ returnMaxWidth: import("@angular/core").Signal<(widthCol: string) => string>;
152
+ currentPageData: import("@angular/core").Signal<any[]>;
153
+ drop(event: CdkDragDrop<any[]>): void;
154
+ private isValidDragOperation;
155
+ onDragStarted(event: CdkDragStart): void;
156
+ onDragEnded(): void;
157
+ static ɵfac: i0.ɵɵFactoryDeclaration<KvTableDraggableComponent, never>;
158
+ static ɵcmp: i0.ɵɵComponentDeclaration<KvTableDraggableComponent, "kv-table-draggable", never, { "first": { "alias": "first"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "ellipsisText": { "alias": "ellipsisText"; "required": false; "isSignal": true; }; "isLoadingSkeleton": { "alias": "isLoadingSkeleton"; "required": false; "isSignal": true; }; "filterButton": { "alias": "filterButton"; "required": false; "isSignal": true; }; "filterButtonBadge": { "alias": "filterButtonBadge"; "required": false; "isSignal": true; }; "_templates": { "alias": "templates"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "defaultSortField": { "alias": "defaultSortField"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; }; "tableSize": { "alias": "tableSize"; "required": false; }; "filterColumnsBtn": { "alias": "filterColumnsBtn"; "required": false; }; "replaceEmptyValues": { "alias": "replaceEmptyValues"; "required": false; }; "filtrosAvancados": { "alias": "filtrosAvancados"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "isTableScrollable": { "alias": "isTableScrollable"; "required": false; }; "tableCaptalized": { "alias": "tableCaptalized"; "required": false; }; "rowTrackBy": { "alias": "rowTrackBy"; "required": false; }; "responsiveLayout": { "alias": "responsiveLayout"; "required": false; }; "disabledHeaderCheckbox": { "alias": "disabledHeaderCheckbox"; "required": false; }; "enableDragDrop": { "alias": "enableDragDrop"; "required": false; }; "dragDropDisabled": { "alias": "dragDropDisabled"; "required": false; }; "applyStyle": { "alias": "applyStyle"; "required": false; }; "pageLinksOptions": { "alias": "pageLinksOptions"; "required": false; }; "showFirstLastIcon": { "alias": "showFirstLastIcon"; "required": false; }; "setConfig": { "alias": "config"; "required": false; }; }, { "first": "firstChange"; "rows": "rowsChange"; "onActiveItem": "onActiveItem"; "onActiveItemLote": "onActiveItemLote"; "onPaginate": "onPaginate"; "onSelectionChange": "onSelectionChange"; "doubleClickEvent": "doubleClickEvent"; "filterField": "filterField"; "onSwitchTableChange": "onSwitchTableChange"; "onRowReorder": "onRowReorder"; }, ["templates"], ["[filtro]"], false, never>;
159
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./kv-table-draggable.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../../api/modules/primeng.module";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "../kv-inputs/kv-inputs.module";
7
+ import * as i6 from "../kv-button/kv-button.module";
8
+ import * as i7 from "@angular/cdk/drag-drop";
9
+ export declare class KvTableDraggableModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<KvTableDraggableModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KvTableDraggableModule, [typeof i1.KvTableDraggableComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule, typeof i4.FormsModule, typeof i5.KvInputsModule, typeof i6.KvButtonModule, typeof i7.DragDropModule], [typeof i1.KvTableDraggableComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<KvTableDraggableModule>;
13
+ }
@@ -68,7 +68,7 @@ export declare class KvTableExpandableComponent implements OnInit, DoCheck {
68
68
  onGlobalFilter(table: Table, event: Event): void;
69
69
  executeCollapsed(): void;
70
70
  checkMenuFiltro(col: any): void;
71
- sortByPosition(): (elem1: any, elem2: any) => 0 | 1 | -1;
71
+ sortByPosition(): (elem1: any, elem2: any) => 1 | 0 | -1;
72
72
  dinamicDisableColumn(col: TableConfigColumn): boolean;
73
73
  dinamicColumnSet(e: any, col: any): void;
74
74
  addColumn(field: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keevo-components",
3
- "version": "2.0.154",
3
+ "version": "2.0.156",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",
package/public-api.d.ts CHANGED
@@ -304,3 +304,8 @@ export * from './lib/components/kv-widget-card/kv-widget-card.component';
304
304
  * Stacked Bar Chart
305
305
  */
306
306
  export * from './lib/components/kv-stacked-bar-chart/kv-stacked-bar-chart.component';
307
+ /**
308
+ * Table Draggable
309
+ */
310
+ export * from './lib/components/kv-table-draggable/kv-table-draggable.component';
311
+ export * from './lib/components/kv-table-draggable/kv-table-draggable.module';