keevo-components 1.8.69 → 1.8.71
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/modules/primeng.module.mjs +7 -3
- package/esm2022/lib/components/kv-inputs/kv-editor/kv-editor.component.mjs +44 -40
- package/esm2022/lib/components/kv-inputs/kv-select-button/kv-select-button.component.mjs +1 -1
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +146 -59
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.module.mjs +12 -5
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +3 -3
- package/fesm2022/keevo-components.mjs +201 -101
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/modules/primeng.module.d.ts +2 -1
- package/lib/components/kv-inputs/kv-editor/kv-editor.component.d.ts +4 -19
- package/lib/components/kv-table-edit/kv-table-edit.component.d.ts +25 -9
- package/lib/components/kv-table-edit/kv-table-edit.module.d.ts +4 -2
- package/package.json +1 -1
|
@@ -55,8 +55,9 @@ import * as i53 from "primeng/toolbar";
|
|
|
55
55
|
import * as i54 from "primeng/tooltip";
|
|
56
56
|
import * as i55 from "primeng/tree";
|
|
57
57
|
import * as i56 from "primeng/treetable";
|
|
58
|
+
import * as i57 from "primeng/selectbutton";
|
|
58
59
|
export declare class PrimeNgModule {
|
|
59
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrimeNgModule, never>;
|
|
60
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PrimeNgModule, never, never, [typeof i1.AccordionModule, typeof i2.AutoFocusModule, typeof i3.BadgeModule, typeof i4.BreadcrumbModule, typeof i5.ButtonModule, typeof i6.CalendarModule, typeof i7.CardModule, typeof i8.CarouselModule, typeof i9.ChartModule, typeof i10.CheckboxModule, typeof i11.ChipModule, typeof i12.ConfirmDialogModule, typeof i13.ContextMenuModule, typeof i14.DataViewModule, typeof i15.DialogModule, typeof i16.DividerModule, typeof i17.DropdownModule, typeof i18.DynamicDialogModule, typeof i19.EditorModule, typeof i20.FieldsetModule, typeof i21.FileUploadModule, typeof i22.ImageModule, typeof i23.InputMaskModule, typeof i24.InputNumberModule, typeof i25.InputSwitchModule, typeof i26.InputTextareaModule, typeof i27.InputTextModule, typeof i28.KnobModule, typeof i29.MenuModule, typeof i30.MessageModule, typeof i31.MessagesModule, typeof i32.MultiSelectModule, typeof i33.OverlayModule, typeof i34.OverlayPanelModule, typeof i34.OverlayPanelModule, typeof i35.PanelMenuModule, typeof i36.PanelModule, typeof i37.PasswordModule, typeof i38.PickListModule, typeof i39.ProgressBarModule, typeof i40.RadioButtonModule, typeof i41.RatingModule, typeof i42.RippleModule, typeof i43.SidebarModule, typeof i44.SkeletonModule, typeof i45.SpeedDialModule, typeof i46.SplitButtonModule, typeof i47.StepsModule, typeof i48.StyleClassModule, typeof i49.TableModule, typeof i50.TabViewModule, typeof i51.TagModule, typeof i52.ToastModule, typeof i53.ToolbarModule, typeof i54.TooltipModule, typeof i55.TreeModule, typeof i56.TreeTableModule]>;
|
|
61
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PrimeNgModule, never, never, [typeof i1.AccordionModule, typeof i2.AutoFocusModule, typeof i3.BadgeModule, typeof i4.BreadcrumbModule, typeof i5.ButtonModule, typeof i6.CalendarModule, typeof i7.CardModule, typeof i8.CarouselModule, typeof i9.ChartModule, typeof i10.CheckboxModule, typeof i11.ChipModule, typeof i12.ConfirmDialogModule, typeof i13.ContextMenuModule, typeof i14.DataViewModule, typeof i15.DialogModule, typeof i16.DividerModule, typeof i17.DropdownModule, typeof i18.DynamicDialogModule, typeof i19.EditorModule, typeof i20.FieldsetModule, typeof i21.FileUploadModule, typeof i22.ImageModule, typeof i23.InputMaskModule, typeof i24.InputNumberModule, typeof i25.InputSwitchModule, typeof i26.InputTextareaModule, typeof i27.InputTextModule, typeof i28.KnobModule, typeof i29.MenuModule, typeof i30.MessageModule, typeof i31.MessagesModule, typeof i32.MultiSelectModule, typeof i33.OverlayModule, typeof i34.OverlayPanelModule, typeof i34.OverlayPanelModule, typeof i35.PanelMenuModule, typeof i36.PanelModule, typeof i37.PasswordModule, typeof i38.PickListModule, typeof i39.ProgressBarModule, typeof i40.RadioButtonModule, typeof i41.RatingModule, typeof i42.RippleModule, typeof i43.SidebarModule, typeof i44.SkeletonModule, typeof i45.SpeedDialModule, typeof i46.SplitButtonModule, typeof i47.StepsModule, typeof i48.StyleClassModule, typeof i49.TableModule, typeof i50.TabViewModule, typeof i51.TagModule, typeof i52.ToastModule, typeof i53.ToolbarModule, typeof i54.TooltipModule, typeof i55.TreeModule, typeof i56.TreeTableModule, typeof i57.SelectButtonModule]>;
|
|
61
62
|
static ɵinj: i0.ɵɵInjectorDeclaration<PrimeNgModule>;
|
|
62
63
|
}
|
|
@@ -4,33 +4,18 @@ import { BaseComponentInput } from '../../../api/base-components/base-component-
|
|
|
4
4
|
import { ComponentService } from '../../../api/services/component.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class KvEditorComponent extends BaseComponentInput<string> {
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
7
|
constructor(componentService: ComponentService);
|
|
11
|
-
/**
|
|
12
|
-
* @type {boolean}
|
|
13
|
-
* @description
|
|
14
|
-
* Esse item define se o editor e somente para leitura
|
|
15
|
-
*/
|
|
16
8
|
readonly: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* @type {boolean}
|
|
19
|
-
* @description
|
|
20
|
-
* Esse item define o tamanho do canva
|
|
21
|
-
*/
|
|
22
9
|
canvaHeigth: string;
|
|
23
10
|
debug: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* @description Executado a cada iteração
|
|
26
|
-
*/
|
|
27
11
|
onTextChange: EventEmitter<any>;
|
|
28
|
-
/**
|
|
29
|
-
* @description Executado a cada seleção
|
|
30
|
-
*/
|
|
31
12
|
onSelectionChange: EventEmitter<any>;
|
|
13
|
+
private updatingEditor;
|
|
32
14
|
quill: Quill;
|
|
33
15
|
ngOnInit(): void;
|
|
16
|
+
initializeQuillEditor(): void;
|
|
17
|
+
writeValue(value: any): void;
|
|
18
|
+
escrevaValor(value: any): void;
|
|
34
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvEditorComponent, never>;
|
|
35
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<KvEditorComponent, "kv-editor", never, { "readonly": { "alias": "readonly"; "required": false; }; "canvaHeigth": { "alias": "canvaHeigth"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; }, { "onTextChange": "onTextChange"; "onSelectionChange": "onSelectionChange"; }, never, never, false, never>;
|
|
36
21
|
}
|
|
@@ -5,6 +5,7 @@ import { Table } from 'primeng/table';
|
|
|
5
5
|
import { CpfCnpjPipe, KvMenuItem, NotificationService, TableConfigColumn, TelefonePipe } from '../../../public-api';
|
|
6
6
|
import { TableEditConfigColumn } from '../../api/components/table/tableedit.config.column';
|
|
7
7
|
import TableEditConfig from '../../api/components/table/tabledit.config';
|
|
8
|
+
import { Subject, Subscription } from 'rxjs';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class KvTableEditComponent implements OnInit, OnChanges {
|
|
10
11
|
private readonly datePipe;
|
|
@@ -17,7 +18,6 @@ export declare class KvTableEditComponent implements OnInit, OnChanges {
|
|
|
17
18
|
globalFilterFields: string[];
|
|
18
19
|
set setConfig(value: TableEditConfig);
|
|
19
20
|
dataSource: any[];
|
|
20
|
-
editMode: 'row' | 'cell';
|
|
21
21
|
selectedItems: any[];
|
|
22
22
|
selectedItem: any;
|
|
23
23
|
totalRecords: number;
|
|
@@ -35,14 +35,15 @@ export declare class KvTableEditComponent implements OnInit, OnChanges {
|
|
|
35
35
|
isTableScrollable: boolean;
|
|
36
36
|
rowTrackBy: Function;
|
|
37
37
|
responsiveLayout: boolean;
|
|
38
|
-
espacamentoPai: string;
|
|
39
|
-
espacamentoLateral: boolean;
|
|
40
38
|
tamanhoTotalTabela: number;
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
editMode: 'row' | 'cell';
|
|
40
|
+
isEditing: boolean;
|
|
41
|
+
isShowSizes: boolean;
|
|
42
|
+
private itemsParaSalvamento;
|
|
43
|
+
protected itemInitialState: any;
|
|
44
|
+
enableSizes: boolean;
|
|
43
45
|
_templates: any;
|
|
44
46
|
tamanhoTela: number;
|
|
45
|
-
selectedSize: string;
|
|
46
47
|
selecteIems: any[];
|
|
47
48
|
menuItems: KvMenuItem[];
|
|
48
49
|
imgDefault: string;
|
|
@@ -53,7 +54,7 @@ export declare class KvTableEditComponent implements OnInit, OnChanges {
|
|
|
53
54
|
[s: string]: any;
|
|
54
55
|
};
|
|
55
56
|
/** Emite evento de salvamento da linha */
|
|
56
|
-
|
|
57
|
+
onSave: EventEmitter<any>;
|
|
57
58
|
onActiveItem: EventEmitter<any>;
|
|
58
59
|
onActiveItemLote: EventEmitter<any>;
|
|
59
60
|
onPaginate: EventEmitter<any>;
|
|
@@ -61,16 +62,31 @@ export declare class KvTableEditComponent implements OnInit, OnChanges {
|
|
|
61
62
|
doubleClickEvent: EventEmitter<any>;
|
|
62
63
|
filterField: EventEmitter<any>;
|
|
63
64
|
onSwitchTableChange: EventEmitter<any>;
|
|
65
|
+
onFilter: EventEmitter<any>;
|
|
64
66
|
constructor(datePipe: DatePipe, decimalPipe: DecimalPipe, cpfCnpjPipe: CpfCnpjPipe, telefonePipe: TelefonePipe, notificationService: NotificationService);
|
|
65
67
|
selectedProduct: any;
|
|
66
68
|
items: MenuItem[];
|
|
69
|
+
sizes: {
|
|
70
|
+
label: string;
|
|
71
|
+
class: string;
|
|
72
|
+
size: number;
|
|
73
|
+
command: (x: any) => void;
|
|
74
|
+
}[];
|
|
75
|
+
selectedSize: any;
|
|
76
|
+
timerSubscription: Subscription;
|
|
77
|
+
onSaveTimer$: Subject<void>;
|
|
78
|
+
private onDestroy$;
|
|
67
79
|
ngOnInit(): void;
|
|
80
|
+
ngOnDestroy(): void;
|
|
68
81
|
ngDoCheck(): void;
|
|
69
82
|
dbClickEdit(): void;
|
|
70
83
|
isRowSelectable(event: any): boolean;
|
|
71
84
|
ngOnChanges(changes: SimpleChanges): void;
|
|
72
85
|
onRowEditInit(rowData: any): void;
|
|
73
|
-
|
|
86
|
+
onEditInit(event1: any): void;
|
|
87
|
+
onEditComplete(event: any): void;
|
|
88
|
+
adicionarCelulaParaSalvar(item: any): void;
|
|
89
|
+
onRowEditSave(): void;
|
|
74
90
|
onRowEditCancel(product: any, index: number): void;
|
|
75
91
|
listarDrop(service: any, col: any, indtodos?: boolean): Promise<any>;
|
|
76
92
|
retornaDescricaoDrop(rowData: any[], col: TableEditConfigColumn): any;
|
|
@@ -111,5 +127,5 @@ export declare class KvTableEditComponent implements OnInit, OnChanges {
|
|
|
111
127
|
isDisableEditRowCellFunction(rowData: any, col: any): boolean;
|
|
112
128
|
isEditableTable(): boolean | null;
|
|
113
129
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTableEditComponent, never>;
|
|
114
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KvTableEditComponent, "kv-table-edit", never, { "setConfig": { "alias": "config"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "
|
|
130
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvTableEditComponent, "kv-table-edit", never, { "setConfig": { "alias": "config"; "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; }; "rows": { "alias": "rows"; "required": false; }; "pageLinksOptions": { "alias": "pageLinksOptions"; "required": false; }; "showFirstLastIcon": { "alias": "showFirstLastIcon"; "required": false; }; "tableSize": { "alias": "tableSize"; "required": false; }; "applyStyle": { "alias": "applyStyle"; "required": false; }; "acoesLinhaTabela": { "alias": "acoesLinhaTabela"; "required": false; }; "filterColumnsBtn": { "alias": "filterColumnsBtn"; "required": false; }; "filtrosAvancados": { "alias": "filtrosAvancados"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "isTableScrollable": { "alias": "isTableScrollable"; "required": false; }; "rowTrackBy": { "alias": "rowTrackBy"; "required": false; }; "responsiveLayout": { "alias": "responsiveLayout"; "required": false; }; "tamanhoTotalTabela": { "alias": "tamanhoTotalTabela"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "enableSizes": { "alias": "enableSizes"; "required": false; }; "_templates": { "alias": "templates"; "required": false; }; }, { "onSave": "onSave"; "onActiveItem": "onActiveItem"; "onActiveItemLote": "onActiveItemLote"; "onPaginate": "onPaginate"; "onSelectionChange": "onSelectionChange"; "doubleClickEvent": "doubleClickEvent"; "filterField": "filterField"; "onSwitchTableChange": "onSwitchTableChange"; "onFilter": "onFilter"; }, never, ["*"], false, never>;
|
|
115
131
|
}
|
|
@@ -4,9 +4,11 @@ import * as i2 from "@angular/common";
|
|
|
4
4
|
import * as i3 from "../../api/modules/primeng.module";
|
|
5
5
|
import * as i4 from "@angular/forms";
|
|
6
6
|
import * as i5 from "../kv-inputs/kv-inputs.module";
|
|
7
|
-
import * as i6 from "
|
|
7
|
+
import * as i6 from "../kv-buttons/kv-button.module";
|
|
8
|
+
import * as i7 from "../../api/pipes/pipes.module";
|
|
9
|
+
import * as i8 from "primeng/selectbutton";
|
|
8
10
|
export declare class KvTableEditModule {
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTableEditModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KvTableEditModule, [typeof i1.KvTableEditComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule, typeof i4.FormsModule, typeof i5.KvInputsModule, typeof i6.PipesModule], [typeof i1.KvTableEditComponent]>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KvTableEditModule, [typeof i1.KvTableEditComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule, typeof i4.FormsModule, typeof i5.KvInputsModule, typeof i6.KvButtonsModule, typeof i7.PipesModule, typeof i8.SelectButtonModule], [typeof i1.KvTableEditComponent]>;
|
|
11
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<KvTableEditModule>;
|
|
12
14
|
}
|