@zanichelli/albe-web-components 2.31.0-rc5 → 2.31.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 +18 -4
- package/dist/cjs/z-alert_66.cjs.entry.js +2 -1
- package/dist/collection/components/footer/z-footer/index.js +4 -3
- package/dist/esm/z-alert_66.entry.js +2 -1
- package/dist/types/components/footer/z-footer/index.d.ts +2 -0
- package/dist/types/components.d.ts +6 -0
- package/dist/web-components-library/p-8afd98e0.entry.js +7 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/{p-2f5e3ed8.js → p-2e3d31b3.js} +1 -1
- package/www/build/p-8afd98e0.entry.js +7 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/web-components-library/p-d658cac2.entry.js +0 -7
- package/www/build/p-d658cac2.entry.js +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
## [2.31.0](https://github.com/ZanichelliEditore/design-system/compare/v2.30.1...v2.31.0) (2022-01-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add footer content max-width ([b3a1be4](https://github.com/ZanichelliEditore/design-system/commit/b3a1be47640137f06ea083472cfabe8317e58ad2))
|
|
11
|
+
* extend footer with a product info panel ([e81e3d1](https://github.com/ZanichelliEditore/design-system/commit/e81e3d1410a71652b57dd638d916a139701498e3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* display credits even if a href is not provided ([4a5467e](https://github.com/ZanichelliEditore/design-system/commit/4a5467e2ffe60093809ffdfcd5847d89d4981d22))
|
|
17
|
+
* mobile logo is not displayed by css, but using a prop in z-logo componen ([b271b77](https://github.com/ZanichelliEditore/design-system/commit/b271b77c8cba0db987320bf5ae7bcd4dd2dfc3f3))
|
|
18
|
+
|
|
5
19
|
### [2.30.1](https://github.com/ZanichelliEditore/design-system/compare/v2.30.0...v2.30.1) (2022-01-17)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -619,9 +619,10 @@ const ZFooter = class {
|
|
|
619
619
|
return (index.h("section", { id: "top" }, index.h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, index.h("slot", null), this.renderFooterTopJsonData())));
|
|
620
620
|
}
|
|
621
621
|
renderFooterProductInfo() {
|
|
622
|
+
var _a;
|
|
622
623
|
if (this.productName || this.productVersion || this.productCreditsLink != null || this.showReportAProblemButton) {
|
|
623
624
|
const versionString = `${this.productName ? ' versione' : 'Versione'} ${this.productVersion}`;
|
|
624
|
-
const creditsObject = index.h("z-body", { level: 5 }, (this.productName || this.productVersion) && ' - ', index.h("z-link", { htmlid: this.creditsLinkId, href: this.productCreditsLink, target: "_blank", textcolor: "white" }, "Credits"));
|
|
625
|
+
const creditsObject = index.h("z-body", { level: 5 }, (this.productName || this.productVersion) && ' - ', index.h("z-link", { htmlid: this.creditsLinkId, href: (_a = this.productCreditsLink) === null || _a === void 0 ? void 0 : _a.trim(), target: "_blank", textcolor: "white" }, "Credits"));
|
|
625
626
|
return (index.h("div", { id: "extension" }, index.h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, index.h("span", null, this.productName && index.h("z-body", { level: 5, variant: "semibold" }, this.productName), this.productVersion && index.h("z-body", { level: 5 }, versionString), this.productCreditsLink != null && creditsObject), this.showReportAProblemButton &&
|
|
626
627
|
index.h("div", null, index.h("z-body", { level: 5 }, "Hai bisogno di aiuto?"), index.h("z-button", { variant: index$1.ButtonVariantEnum["dark-bg"], size: index$1.ButtonSizeEnum.small, onClick: this.emitReportAProblemButtonClick }, "SEGNALA UN PROBLEMA")), index.h("z-divider", { color: "gray500" }))));
|
|
627
628
|
}
|
|
@@ -80,11 +80,12 @@ export class ZFooter {
|
|
|
80
80
|
this.renderFooterTopJsonData())));
|
|
81
81
|
}
|
|
82
82
|
renderFooterProductInfo() {
|
|
83
|
+
var _a;
|
|
83
84
|
if (this.productName || this.productVersion || this.productCreditsLink != null || this.showReportAProblemButton) {
|
|
84
85
|
const versionString = `${this.productName ? ' versione' : 'Versione'} ${this.productVersion}`;
|
|
85
86
|
const creditsObject = h("z-body", { level: 5 },
|
|
86
87
|
(this.productName || this.productVersion) && ' - ',
|
|
87
|
-
h("z-link", { htmlid: this.creditsLinkId, href: this.productCreditsLink, target: "_blank", textcolor: "white" }, "Credits"));
|
|
88
|
+
h("z-link", { htmlid: this.creditsLinkId, href: (_a = this.productCreditsLink) === null || _a === void 0 ? void 0 : _a.trim(), target: "_blank", textcolor: "white" }, "Credits"));
|
|
88
89
|
return (h("div", { id: "extension" },
|
|
89
90
|
h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} },
|
|
90
91
|
h("span", null,
|
|
@@ -252,7 +253,7 @@ export class ZFooter {
|
|
|
252
253
|
"composed": true,
|
|
253
254
|
"docs": {
|
|
254
255
|
"tags": [],
|
|
255
|
-
"text": ""
|
|
256
|
+
"text": "Emitted on credits link click"
|
|
256
257
|
},
|
|
257
258
|
"complexType": {
|
|
258
259
|
"original": "any",
|
|
@@ -267,7 +268,7 @@ export class ZFooter {
|
|
|
267
268
|
"composed": true,
|
|
268
269
|
"docs": {
|
|
269
270
|
"tags": [],
|
|
270
|
-
"text": ""
|
|
271
|
+
"text": "Emitted on report a problem button click"
|
|
271
272
|
},
|
|
272
273
|
"complexType": {
|
|
273
274
|
"original": "any",
|
|
@@ -615,9 +615,10 @@ const ZFooter = class {
|
|
|
615
615
|
return (h("section", { id: "top" }, h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, h("slot", null), this.renderFooterTopJsonData())));
|
|
616
616
|
}
|
|
617
617
|
renderFooterProductInfo() {
|
|
618
|
+
var _a;
|
|
618
619
|
if (this.productName || this.productVersion || this.productCreditsLink != null || this.showReportAProblemButton) {
|
|
619
620
|
const versionString = `${this.productName ? ' versione' : 'Versione'} ${this.productVersion}`;
|
|
620
|
-
const creditsObject = h("z-body", { level: 5 }, (this.productName || this.productVersion) && ' - ', h("z-link", { htmlid: this.creditsLinkId, href: this.productCreditsLink, target: "_blank", textcolor: "white" }, "Credits"));
|
|
621
|
+
const creditsObject = h("z-body", { level: 5 }, (this.productName || this.productVersion) && ' - ', h("z-link", { htmlid: this.creditsLinkId, href: (_a = this.productCreditsLink) === null || _a === void 0 ? void 0 : _a.trim(), target: "_blank", textcolor: "white" }, "Credits"));
|
|
621
622
|
return (h("div", { id: "extension" }, h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, h("span", null, this.productName && h("z-body", { level: 5, variant: "semibold" }, this.productName), this.productVersion && h("z-body", { level: 5 }, versionString), this.productCreditsLink != null && creditsObject), this.showReportAProblemButton &&
|
|
622
623
|
h("div", null, h("z-body", { level: 5 }, "Hai bisogno di aiuto?"), h("z-button", { variant: ButtonVariantEnum["dark-bg"], size: ButtonSizeEnum.small, onClick: this.emitReportAProblemButtonClick }, "SEGNALA UN PROBLEMA")), h("z-divider", { color: "gray500" }))));
|
|
623
624
|
}
|
|
@@ -24,8 +24,10 @@ export declare class ZFooter {
|
|
|
24
24
|
constructor();
|
|
25
25
|
componentWillLoad(): void;
|
|
26
26
|
zLinkClickListener(e: CustomEvent): void;
|
|
27
|
+
/** Emitted on credits link click */
|
|
27
28
|
creditsLinkClick: EventEmitter;
|
|
28
29
|
emitCreditsLinkClick(): void;
|
|
30
|
+
/** Emitted on report a problem button click */
|
|
29
31
|
reportAProblemButtonClick: EventEmitter;
|
|
30
32
|
emitReportAProblemButtonClick(): void;
|
|
31
33
|
renderZLogo(): HTMLZLogoElement;
|
|
@@ -2493,7 +2493,13 @@ declare namespace LocalJSX {
|
|
|
2493
2493
|
* deprecated - JSON stringified data to fill the footer
|
|
2494
2494
|
*/
|
|
2495
2495
|
"data"?: string;
|
|
2496
|
+
/**
|
|
2497
|
+
* Emitted on credits link click
|
|
2498
|
+
*/
|
|
2496
2499
|
"onCreditsLinkClick"?: (event: CustomEvent<any>) => void;
|
|
2500
|
+
/**
|
|
2501
|
+
* Emitted on report a problem button click
|
|
2502
|
+
*/
|
|
2497
2503
|
"onReportAProblemButtonClick"?: (event: CustomEvent<any>) => void;
|
|
2498
2504
|
/**
|
|
2499
2505
|
* 'undefined' or 'null' means 'don't show Credits', empty string means 'emit creditsLinkClick event', not empty string means 'open the url and emit creditsLinkClick event'
|