@zambon-dev/framework 1.0.2 → 1.1.0
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/fesm2022/zambon-dev-framework.mjs +111 -17
- package/fesm2022/zambon-dev-framework.mjs.map +1 -1
- package/i18n/en.json +7 -1
- package/i18n/pt.json +7 -1
- package/lib/components/buttons/button-export/button-export.component.d.ts +17 -0
- package/lib/components/buttons/buttons.module.d.ts +13 -12
- package/lib/components/buttons/index.d.ts +1 -0
- package/package.json +1 -1
package/i18n/en.json
CHANGED
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
"Button-Delete": "Delete",
|
|
8
8
|
"Button-Edit": "Edit",
|
|
9
9
|
"Button-Export": "Export",
|
|
10
|
+
"Button-Export-CSV": "CSV",
|
|
11
|
+
"Button-Export-Excel": "Excel",
|
|
12
|
+
"Button-Export-LimitExceeded": "Export exceeds the {{ max }}-row limit. Narrow your filters and try again.",
|
|
13
|
+
"Button-Export-MHTML": "Web Archive",
|
|
14
|
+
"Button-Export-PDF": "PDF",
|
|
15
|
+
"Button-Export-XML": "XML",
|
|
10
16
|
"Button-Filters": "Filter",
|
|
11
17
|
"Button-Filters-Clear": "Clear filters",
|
|
12
18
|
"Button-Filters-Modal-Confirm": "Confirm filter",
|
|
@@ -69,4 +75,4 @@
|
|
|
69
75
|
"RibbonGroup-Page": "Page",
|
|
70
76
|
|
|
71
77
|
"": ""
|
|
72
|
-
}
|
|
78
|
+
}
|
package/i18n/pt.json
CHANGED
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
"Button-Delete": "Excluir",
|
|
8
8
|
"Button-Edit": "Editar",
|
|
9
9
|
"Button-Export": "Exportar",
|
|
10
|
+
"Button-Export-CSV": "CSV",
|
|
11
|
+
"Button-Export-Excel": "Excel",
|
|
12
|
+
"Button-Export-LimitExceeded": "A exportação ultrapassa o limite de {{ max }} linhas. Refine os filtros e tente novamente.",
|
|
13
|
+
"Button-Export-MHTML": "Arquivo Web",
|
|
14
|
+
"Button-Export-PDF": "PDF",
|
|
15
|
+
"Button-Export-XML": "XML",
|
|
10
16
|
"Button-Filters": "Filtrar",
|
|
11
17
|
"Button-Filters-Clear": "Limpar filtros",
|
|
12
18
|
"Button-Filters-Modal-Confirm": "Confirmar filtros",
|
|
@@ -69,4 +75,4 @@
|
|
|
69
75
|
"RibbonGroup-Page": "Página",
|
|
70
76
|
|
|
71
77
|
"": ""
|
|
72
|
-
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseButton } from '../base-button';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type ExportFormat = 'xlsx' | 'pdf' | 'csv' | 'xml' | 'mhtml';
|
|
4
|
+
export declare const MaxExportRows: number;
|
|
5
|
+
export declare class ButtonExportComponent extends BaseButton {
|
|
6
|
+
fileBaseName: string;
|
|
7
|
+
private dataGridDataset;
|
|
8
|
+
private translateService;
|
|
9
|
+
protected get isButtonDisabled(): boolean;
|
|
10
|
+
protected get tooltip(): string;
|
|
11
|
+
private get isExceedingExportLimit();
|
|
12
|
+
constructor();
|
|
13
|
+
protected onButtonClicked(format?: string): void;
|
|
14
|
+
private download;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonExportComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonExportComponent, "framework-button-export", never, { "fileBaseName": { "alias": "fileBaseName"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./button-delete/button-delete.component";
|
|
3
3
|
import * as i2 from "./button-edit/button-edit.component";
|
|
4
|
-
import * as i3 from "./button-
|
|
5
|
-
import * as i4 from "./button-
|
|
6
|
-
import * as i5 from "./button-
|
|
7
|
-
import * as i6 from "./button-
|
|
8
|
-
import * as i7 from "./button-
|
|
9
|
-
import * as i8 from "./button-
|
|
10
|
-
import * as i9 from "./
|
|
11
|
-
import * as i10 from "./legacy/button-
|
|
12
|
-
import * as i11 from "./legacy/button-
|
|
13
|
-
import * as i12 from "./legacy/button-
|
|
14
|
-
import * as i13 from "./legacy/button-
|
|
4
|
+
import * as i3 from "./button-export/button-export.component";
|
|
5
|
+
import * as i4 from "./button-filters/button-filters.component";
|
|
6
|
+
import * as i5 from "./button-new/button-new.component";
|
|
7
|
+
import * as i6 from "./button-open-record/button-open-record.component";
|
|
8
|
+
import * as i7 from "./button-refresh/button-refresh.component";
|
|
9
|
+
import * as i8 from "./button-save/button-save.component";
|
|
10
|
+
import * as i9 from "./button-views/button-views.component";
|
|
11
|
+
import * as i10 from "./legacy/button-new/button-new.component";
|
|
12
|
+
import * as i11 from "./legacy/button-edit/button-edit.component";
|
|
13
|
+
import * as i12 from "./legacy/button-save/button-save.component";
|
|
14
|
+
import * as i13 from "./legacy/button-views/button-views.component";
|
|
15
|
+
import * as i14 from "./legacy/button-open-record/button-open-record.component";
|
|
15
16
|
export declare class FrameworkButtonsModule {
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<FrameworkButtonsModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FrameworkButtonsModule, never, [typeof i1.ButtonDeleteComponent, typeof i2.ButtonEditComponent, typeof i3.
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FrameworkButtonsModule, never, [typeof i1.ButtonDeleteComponent, typeof i2.ButtonEditComponent, typeof i3.ButtonExportComponent, typeof i4.ButtonFiltersComponent, typeof i5.ButtonNewComponent, typeof i6.ButtonOpenRecordComponent, typeof i7.ButtonRefreshComponent, typeof i8.ButtonSaveComponent, typeof i9.ButtonViewsComponent, typeof i10.ButtonNewLegacyComponent, typeof i11.ButtonEditLegacyComponent, typeof i12.ButtonSaveLegacyComponent, typeof i13.ButtonViewsLegacyComponent, typeof i14.ButtonOpenRecordLegacyComponent], [typeof i1.ButtonDeleteComponent, typeof i2.ButtonEditComponent, typeof i3.ButtonExportComponent, typeof i4.ButtonFiltersComponent, typeof i5.ButtonNewComponent, typeof i6.ButtonOpenRecordComponent, typeof i7.ButtonRefreshComponent, typeof i8.ButtonSaveComponent, typeof i9.ButtonViewsComponent, typeof i10.ButtonNewLegacyComponent, typeof i11.ButtonEditLegacyComponent, typeof i12.ButtonSaveLegacyComponent, typeof i13.ButtonViewsLegacyComponent, typeof i14.ButtonOpenRecordLegacyComponent]>;
|
|
18
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<FrameworkButtonsModule>;
|
|
19
20
|
}
|
|
@@ -3,6 +3,7 @@ export { BaseFormViewButton } from './base-form-view-button';
|
|
|
3
3
|
export { ButtonConfirmComponent } from './button-confirm/button-confirm.component';
|
|
4
4
|
export { ButtonDeleteComponent } from './button-delete/button-delete.component';
|
|
5
5
|
export { ButtonEditComponent } from './button-edit/button-edit.component';
|
|
6
|
+
export { ButtonExportComponent, ExportFormat, MaxExportRows } from './button-export/button-export.component';
|
|
6
7
|
export { ButtonFiltersComponent } from './button-filters/button-filters.component';
|
|
7
8
|
export { ButtonNewComponent } from './button-new/button-new.component';
|
|
8
9
|
export { ButtonOpenRecordComponent } from './button-open-record/button-open-record.component';
|