@zambon-dev/framework 1.1.0 → 1.2.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/CHANGELOG.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@zambon-dev/framework` are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
> **Upgrading?** Each release lists what changed and, under
|
|
9
|
+
> **⚠ Breaking Changes / Migration**, the concrete steps required to move to that version.
|
|
10
|
+
> When no migration is needed, that subsection is omitted.
|
|
11
|
+
|
|
12
|
+
## [Unreleased]
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
### Deprecated
|
|
19
|
+
|
|
20
|
+
### Removed
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
### ⚠ Breaking Changes / Migration
|
|
25
|
+
|
|
26
|
+
## [1.2.0] - 2026-07-24
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- `AppConfig` now accepts optional application metadata through a second `options` argument:
|
|
31
|
+
`appName`, `companyName`, `environment`, `logoUrl`, `version`, `notificationsEnabled`, and
|
|
32
|
+
`notificationsUrl`. These are consumed by the shared application shell (top bar + navigation).
|
|
33
|
+
Existing `new AppConfig(baseUrl)` calls continue to work unchanged (`notificationsEnabled`
|
|
34
|
+
defaults to `false`, other new fields to empty strings).
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
|
|
38
|
+
- `framework-button-export` now forwards its `iconSize` input to the underlying ribbon button,
|
|
39
|
+
so setting `iconSize` correctly resizes the export button's icon. Previously the input was
|
|
40
|
+
ignored and the icon always rendered at the default size.
|
|
41
|
+
|
|
42
|
+
### ⚠ Breaking Changes / Migration
|
|
43
|
+
|
|
44
|
+
None.
|
|
45
|
+
|
|
46
|
+
## [1.1.0] - 2026-06-02
|
|
47
|
+
|
|
48
|
+
- Baseline release: the changelog starts being tracked from this version. Earlier history is
|
|
49
|
+
available via [GitHub Releases](https://github.com/RicardoZambon/ZLibraries/releases) and the
|
|
50
|
+
`framework-v*` tags.
|
|
51
|
+
|
|
52
|
+
[Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/framework-v1.2.0...HEAD
|
|
53
|
+
[1.2.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/framework-v1.2.0
|
|
54
|
+
[1.1.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/framework-v1.1.0
|
|
@@ -1337,14 +1337,14 @@ class ButtonExportComponent extends BaseButton {
|
|
|
1337
1337
|
URL.revokeObjectURL(url);
|
|
1338
1338
|
}
|
|
1339
1339
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: ButtonExportComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1340
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: ButtonExportComponent, isStandalone: true, selector: "framework-button-export", inputs: { fileBaseName: "fileBaseName" }, providers: [{ provide: RibbonGroupChild, useExisting: forwardRef(() => ButtonExportComponent) }], usesInheritance: true, ngImport: i0, template: "<lib-ribbon-button *ngIf=\"visible\"\nlabel=\"Button-Export\"\nicon=\"fa-file-export\"\n[disabled]=\"isButtonDisabled\"\n[loading]=\"loading\"\n[options]=\"options\"\n[tooltip]=\"tooltip\"\n(action)=\"onButtonClicked($event)\">\n</lib-ribbon-button>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: RibbonButtonComponent, selector: "lib-ribbon-button", inputs: ["color", "defaultOption", "disabled", "icon", "iconSize", "label", "loading", "options", "tooltip"], outputs: ["action"] }] });
|
|
1340
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: ButtonExportComponent, isStandalone: true, selector: "framework-button-export", inputs: { fileBaseName: "fileBaseName" }, providers: [{ provide: RibbonGroupChild, useExisting: forwardRef(() => ButtonExportComponent) }], usesInheritance: true, ngImport: i0, template: "<lib-ribbon-button *ngIf=\"visible\"\nlabel=\"Button-Export\"\nicon=\"fa-file-export\"\n[disabled]=\"isButtonDisabled\"\n[loading]=\"loading\"\n[iconSize]=\"iconSize\"\n[options]=\"options\"\n[tooltip]=\"tooltip\"\n(action)=\"onButtonClicked($event)\">\n</lib-ribbon-button>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: RibbonButtonComponent, selector: "lib-ribbon-button", inputs: ["color", "defaultOption", "disabled", "icon", "iconSize", "label", "loading", "options", "tooltip"], outputs: ["action"] }] });
|
|
1341
1341
|
}
|
|
1342
1342
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: ButtonExportComponent, decorators: [{
|
|
1343
1343
|
type: Component,
|
|
1344
1344
|
args: [{ selector: 'framework-button-export', imports: [
|
|
1345
1345
|
NgIf,
|
|
1346
1346
|
RibbonButtonComponent,
|
|
1347
|
-
], providers: [{ provide: RibbonGroupChild, useExisting: forwardRef(() => ButtonExportComponent) }], template: "<lib-ribbon-button *ngIf=\"visible\"\nlabel=\"Button-Export\"\nicon=\"fa-file-export\"\n[disabled]=\"isButtonDisabled\"\n[loading]=\"loading\"\n[options]=\"options\"\n[tooltip]=\"tooltip\"\n(action)=\"onButtonClicked($event)\">\n</lib-ribbon-button>\n" }]
|
|
1347
|
+
], providers: [{ provide: RibbonGroupChild, useExisting: forwardRef(() => ButtonExportComponent) }], template: "<lib-ribbon-button *ngIf=\"visible\"\nlabel=\"Button-Export\"\nicon=\"fa-file-export\"\n[disabled]=\"isButtonDisabled\"\n[loading]=\"loading\"\n[iconSize]=\"iconSize\"\n[options]=\"options\"\n[tooltip]=\"tooltip\"\n(action)=\"onButtonClicked($event)\">\n</lib-ribbon-button>\n" }]
|
|
1348
1348
|
}], ctorParameters: () => [], propDecorators: { fileBaseName: [{
|
|
1349
1349
|
type: Input
|
|
1350
1350
|
}] } });
|
|
@@ -3602,8 +3602,29 @@ const APP_CONFIG = new InjectionToken('Manually constructed AppConfig', {
|
|
|
3602
3602
|
});
|
|
3603
3603
|
class AppConfig {
|
|
3604
3604
|
BASE_URL;
|
|
3605
|
-
|
|
3605
|
+
/** Application name shown in the top bar brand block. */
|
|
3606
|
+
appName;
|
|
3607
|
+
/** Company name shown beneath the application name. */
|
|
3608
|
+
companyName;
|
|
3609
|
+
/** Environment key (e.g. 'DEV', 'QA', 'STG', 'PROD'). Empty string when unset. */
|
|
3610
|
+
environment;
|
|
3611
|
+
/** Optional brand logo URL shown in the top bar. */
|
|
3612
|
+
logoUrl;
|
|
3613
|
+
/** Whether the top-bar notifications feature (bell + badge) is enabled. */
|
|
3614
|
+
notificationsEnabled;
|
|
3615
|
+
/** SignalR hub URL the notifications service connects to when enabled. */
|
|
3616
|
+
notificationsUrl;
|
|
3617
|
+
/** Application version string (e.g. '1.4.0'), shown at the bottom of the navigation. */
|
|
3618
|
+
version;
|
|
3619
|
+
constructor(baseUrl, options) {
|
|
3606
3620
|
this.BASE_URL = baseUrl;
|
|
3621
|
+
this.appName = options?.appName ?? '';
|
|
3622
|
+
this.companyName = options?.companyName ?? '';
|
|
3623
|
+
this.environment = options?.environment ?? '';
|
|
3624
|
+
this.logoUrl = options?.logoUrl;
|
|
3625
|
+
this.notificationsEnabled = options?.notificationsEnabled ?? false;
|
|
3626
|
+
this.notificationsUrl = options?.notificationsUrl ?? '';
|
|
3627
|
+
this.version = options?.version ?? '';
|
|
3607
3628
|
}
|
|
3608
3629
|
}
|
|
3609
3630
|
|