@zambon-dev/framework 1.2.1 → 1.3.1
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/CHANGELOG.md +80 -1
- package/fesm2022/zambon-dev-framework.mjs +68 -31
- package/fesm2022/zambon-dev-framework.mjs.map +1 -1
- package/lib/components/buttons/button-export/button-export.component.d.ts +8 -1
- package/lib/components/views/default-details-tab-view/default-details-tab-view.component.d.ts +2 -2
- package/lib/components/views/default-tab-view/default-tab-view.component.d.ts +3 -5
- package/lib/services/custom-reuse-strategy.d.ts +4 -0
- package/package.json +1 -1
|
@@ -3,6 +3,13 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export type ExportFormat = 'xlsx' | 'pdf' | 'csv' | 'xml' | 'mhtml';
|
|
4
4
|
export declare const MaxExportRows: number;
|
|
5
5
|
export declare class ButtonExportComponent extends BaseButton {
|
|
6
|
+
/**
|
|
7
|
+
* Index into `options` exported when the main button is clicked, defaulting to Excel.
|
|
8
|
+
* `RibbonButtonComponent` treats -1 as "no default" and merely toggles the dropdown, which left
|
|
9
|
+
* Export needing two clicks for the common case while Save (which sets 0) needed one. Set -1 to
|
|
10
|
+
* restore the dropdown-only behaviour.
|
|
11
|
+
*/
|
|
12
|
+
defaultOption: number;
|
|
6
13
|
fileBaseName: string;
|
|
7
14
|
private dataGridDataset;
|
|
8
15
|
private translateService;
|
|
@@ -13,5 +20,5 @@ export declare class ButtonExportComponent extends BaseButton {
|
|
|
13
20
|
protected onButtonClicked(format?: string): void;
|
|
14
21
|
private download;
|
|
15
22
|
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>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonExportComponent, "framework-button-export", never, { "defaultOption": { "alias": "defaultOption"; "required": false; }; "fileBaseName": { "alias": "fileBaseName"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
24
|
}
|
package/lib/components/views/default-details-tab-view/default-details-tab-view.component.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
3
3
|
import { DefaultTabViewComponent } from '../default-tab-view/default-tab-view.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DefaultDetailsTabViewComponent extends DefaultTabViewComponent implements
|
|
5
|
+
export declare class DefaultDetailsTabViewComponent extends DefaultTabViewComponent implements OnDestroy, OnInit {
|
|
6
6
|
private errorModal;
|
|
7
7
|
protected containerIcon?: string;
|
|
8
8
|
protected containerTitle?: string;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { TabViewService } from '../../../services';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DefaultTabViewComponent implements
|
|
5
|
+
export declare class DefaultTabViewComponent implements OnDestroy, OnInit {
|
|
6
6
|
protected changeDetectorRef: ChangeDetectorRef;
|
|
7
7
|
protected tabViewService: TabViewService;
|
|
8
|
-
private emptyRibbonTemplate;
|
|
9
8
|
protected destroy$: Subject<boolean>;
|
|
10
|
-
protected ribbonTemplate
|
|
9
|
+
protected ribbonTemplate?: TemplateRef<any>;
|
|
11
10
|
private ribbonViewTemplate;
|
|
12
11
|
constructor(changeDetectorRef: ChangeDetectorRef, tabViewService: TabViewService);
|
|
13
|
-
ngAfterViewInit(): void;
|
|
14
12
|
ngOnDestroy(): void;
|
|
15
13
|
ngOnInit(): void;
|
|
16
14
|
private updateRibbonTemplate;
|
|
@@ -10,6 +10,8 @@ export declare class CustomReuseStrategy implements RouteReuseStrategy {
|
|
|
10
10
|
tabService?: TabService;
|
|
11
11
|
private applicationRef;
|
|
12
12
|
private cachedHandles;
|
|
13
|
+
private componentIDs;
|
|
14
|
+
private nextComponentID;
|
|
13
15
|
clearAllHandles(): void;
|
|
14
16
|
clearHandle(url: string): void;
|
|
15
17
|
retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle | null;
|
|
@@ -18,5 +20,7 @@ export declare class CustomReuseStrategy implements RouteReuseStrategy {
|
|
|
18
20
|
shouldReuseRoute(future: ActivatedRouteSnapshot, current: ActivatedRouteSnapshot): boolean;
|
|
19
21
|
store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle): void;
|
|
20
22
|
private getCacheKey;
|
|
23
|
+
private getComponentID;
|
|
24
|
+
private getRouteDepth;
|
|
21
25
|
private getUrlFromRoute;
|
|
22
26
|
}
|