@zanichelli/albe-web-components 6.0.1 → 6.0.2
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 +20 -0
- package/dist/cjs/z-app-header.cjs.entry.js +1 -1
- package/dist/cjs/z-app-switcher_9.cjs.entry.js +2 -0
- package/dist/cjs/z-button.cjs.entry.js +2 -0
- package/dist/cjs/z-date-picker.cjs.entry.js +2 -0
- package/dist/cjs/z-input-deprecated.cjs.entry.js +2 -0
- package/dist/cjs/z-input-label_2.cjs.entry.js +2 -0
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +2 -0
- package/dist/cjs/z-pagination-page.cjs.entry.js +2 -0
- package/dist/collection/components/buttons/z-button/index.js +5 -2
- package/dist/collection/components/date-picker/z-date-picker/index.js +5 -2
- package/dist/collection/components/index.js +8 -0
- package/dist/collection/components/inputs/z-input/index.js +11 -3
- package/dist/collection/components/inputs/z-select/index.js +5 -2
- package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +12 -2
- package/dist/collection/components/navigation/z-app-header/index.js +1 -1
- package/dist/collection/deprecated/pagination/z-pagination-page/index.js +5 -2
- package/dist/collection/deprecated/z-input-deprecated/index.js +5 -2
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +5 -2
- package/dist/esm/z-app-header.entry.js +1 -1
- package/dist/esm/z-app-switcher_9.entry.js +2 -0
- package/dist/esm/z-button.entry.js +2 -0
- package/dist/esm/z-date-picker.entry.js +2 -0
- package/dist/esm/z-input-deprecated.entry.js +2 -0
- package/dist/esm/z-input-label_2.entry.js +2 -0
- package/dist/esm/z-myz-card-icon.entry.js +2 -0
- package/dist/esm/z-pagination-page.entry.js +2 -0
- package/dist/types/components/buttons/z-button/index.d.ts +1 -1
- package/dist/types/components/buttons/z-toggle-switch/index.d.ts +1 -2
- package/dist/types/components/date-picker/z-date-picker/index.d.ts +1 -1
- package/dist/types/components/file-upload/z-file/index.d.ts +1 -2
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +1 -2
- package/dist/types/components/index.d.ts +0 -0
- package/dist/types/components/inputs/z-input/index.d.ts +1 -1
- package/dist/types/components/inputs/z-input-message/index.d.ts +1 -2
- package/dist/types/components/inputs/z-select/index.d.ts +1 -1
- package/dist/types/components/list/z-list/index.d.ts +1 -2
- package/dist/types/components/list/z-list-element/index.d.ts +1 -2
- package/dist/types/components/list/z-list-group/index.d.ts +1 -2
- package/dist/types/components/logo/z-logo/index.d.ts +1 -2
- package/dist/types/components/modal/z-modal/index.d.ts +1 -2
- package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +1 -2
- package/dist/types/components/navigation/z-app-header/index.d.ts +1 -2
- package/dist/types/components/navigation/z-app-topbar/index.d.ts +1 -2
- package/dist/types/components/navigation/z-menu/index.d.ts +1 -2
- package/dist/types/components/navigation/z-menu-section/index.d.ts +1 -2
- package/dist/types/components/navigation/z-user-dropdown/index.d.ts +1 -2
- package/dist/types/components/notification/z-notification/index.d.ts +1 -2
- package/dist/types/components/notification/z-toast-notification/index.d.ts +1 -2
- package/dist/types/components/typography/z-typography/index.d.ts +1 -2
- package/dist/types/components/z-aria-alert/index.d.ts +1 -2
- package/dist/types/components/z-avatar/index.d.ts +1 -2
- package/dist/types/components/z-card/index.d.ts +1 -2
- package/dist/types/components/z-carousel/index.d.ts +1 -2
- package/dist/types/components/z-contextual-menu/index.d.ts +1 -2
- package/dist/types/components/z-cover-hero/index.d.ts +1 -2
- package/dist/types/components/z-divider/index.d.ts +1 -2
- package/dist/types/components/z-ghost-loading/index.d.ts +1 -2
- package/dist/types/components/z-info-reveal/index.d.ts +1 -2
- package/dist/types/components/z-offcanvas/index.d.ts +1 -2
- package/dist/types/components/z-pagination/index.d.ts +1 -2
- package/dist/types/components/z-section-title/index.d.ts +1 -2
- package/dist/types/components/z-skip-to-content/index.d.ts +1 -2
- package/dist/types/components/z-table/z-table/index.d.ts +1 -2
- package/dist/types/components/z-table/z-table-cell/index.d.ts +1 -2
- package/dist/types/components/z-table/z-table-empty-box/index.d.ts +1 -2
- package/dist/types/components/z-table/z-table-header/index.d.ts +1 -2
- package/dist/types/components/z-table/z-table-header-row/index.d.ts +1 -2
- package/dist/types/components/z-table/z-table-row/index.d.ts +1 -2
- package/dist/types/components/z-tag/index.d.ts +1 -2
- package/dist/types/components.d.ts +8 -8
- package/dist/types/deprecated/pagination/z-pagination-page/index.d.ts +1 -1
- package/dist/types/deprecated/z-input-deprecated/index.d.ts +1 -1
- package/dist/types/deprecated/z-popover-deprecated/index.d.ts +1 -2
- package/dist/types/deprecated/z-status-tag/index.d.ts +1 -2
- package/dist/types/deprecated/z-tooltip-deprecated/index.d.ts +1 -2
- package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +1 -1
- package/dist/web-components-library/p-05ced71c.entry.js +1 -0
- package/dist/web-components-library/p-4d093e07.entry.js +1 -0
- package/dist/web-components-library/p-5f3baf14.entry.js +1 -0
- package/dist/web-components-library/p-bb95b82f.entry.js +1 -0
- package/dist/web-components-library/p-c2d1785b.entry.js +1 -0
- package/dist/web-components-library/p-d3733579.entry.js +1 -0
- package/dist/web-components-library/p-edf0195b.entry.js +1 -0
- package/dist/web-components-library/p-f7c1eb3f.entry.js +16 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/p-05ced71c.entry.js +1 -0
- package/www/build/p-4d093e07.entry.js +1 -0
- package/www/build/p-5f3baf14.entry.js +1 -0
- package/www/build/{p-e9b0bd13.js → p-691b9559.js} +1 -1
- package/www/build/p-bb95b82f.entry.js +1 -0
- package/www/build/p-c2d1785b.entry.js +1 -0
- package/www/build/p-d3733579.entry.js +1 -0
- package/www/build/p-edf0195b.entry.js +1 -0
- package/www/build/p-f7c1eb3f.entry.js +16 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/web-components-library/p-40729225.entry.js +0 -1
- package/dist/web-components-library/p-4df05ebe.entry.js +0 -1
- package/dist/web-components-library/p-75b7e931.entry.js +0 -1
- package/dist/web-components-library/p-93da92c0.entry.js +0 -1
- package/dist/web-components-library/p-99f0b6cc.entry.js +0 -1
- package/dist/web-components-library/p-b780dfc8.entry.js +0 -1
- package/dist/web-components-library/p-e71132fc.entry.js +0 -16
- package/dist/web-components-library/p-ffe15448.entry.js +0 -1
- package/www/build/p-40729225.entry.js +0 -1
- package/www/build/p-4df05ebe.entry.js +0 -1
- package/www/build/p-75b7e931.entry.js +0 -1
- package/www/build/p-93da92c0.entry.js +0 -1
- package/www/build/p-99f0b6cc.entry.js +0 -1
- package/www/build/p-b780dfc8.entry.js +0 -1
- package/www/build/p-e71132fc.entry.js +0 -16
- package/www/build/p-ffe15448.entry.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
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
4
|
|
|
5
|
+
### [6.0.2](https://github.com/ZanichelliEditore/design-system/compare/v6.0.1...v6.0.2) (2022-10-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* @Element console error ([2b79dcc](https://github.com/ZanichelliEditore/design-system/commit/2b79dcc19aa3725794bcdc0f129e8513609d75fa))
|
|
11
|
+
* added file to prevent stencil import errors ([d21e1ff](https://github.com/ZanichelliEditore/design-system/commit/d21e1ff3c8c71e4f5c41ef5830e00aea1fbfef19))
|
|
12
|
+
* remove last HostElement ([7f136e0](https://github.com/ZanichelliEditore/design-system/commit/7f136e0459b3093bc5ac7478006d3b9304c750a4))
|
|
13
|
+
* restore current version ([5c364ae](https://github.com/ZanichelliEditore/design-system/commit/5c364ae0be1afe9e257a9e046c16fc9cb26a8261))
|
|
14
|
+
* tests ([c96570d](https://github.com/ZanichelliEditore/design-system/commit/c96570dc027fad19ab72b9003ad21d74c2001329))
|
|
15
|
+
* z-carousel return type ([117b7b8](https://github.com/ZanichelliEditore/design-system/commit/117b7b82b14287056e10173c6ef6006e71fe487f))
|
|
16
|
+
* z-popover Storybook docs ([4e4e12f](https://github.com/ZanichelliEditore/design-system/commit/4e4e12ff04206ee72fb5f4d330c0ee5c8a00e54a))
|
|
17
|
+
|
|
18
|
+
### [6.0.1-rc4](https://github.com/ZanichelliEditore/design-system/compare/v6.0.0...v6.0.1-rc4) (2022-10-27)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* remove hostElement, set ariaLabel prop as not optional ([0dfaa44](https://github.com/ZanichelliEditore/design-system/commit/0dfaa44c498a10b07ee95e833c8b46558b4d8716))
|
|
24
|
+
|
|
5
25
|
### [6.0.1](https://github.com/ZanichelliEditore/design-system/compare/v6.0.0...v6.0.1) (2022-10-28)
|
|
6
26
|
|
|
7
27
|
|
|
@@ -113,7 +113,7 @@ const ZAppHeader = class {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
render() {
|
|
116
|
-
return (index.h(index.Host, { "menu-length": this.menuLength }, index.h("div", { class: "heading-panel", ref: (el) => (this.container = el) }, index.h("div", { class: "hero-container" }, index.h("slot", { name: "hero" }, this.hero && (index.h("img", { alt: "", src: this.hero })))), index.h("div", { class: "heading-container" }, index.h("div", { class: "heading-title" }, this.menuLength > 0 && (index.h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, index.h("z-icon", { name: "burger-menu" }))), index.h("slot", { name: "title" })), index.h("div", { class: "heading-subtitle" }, index.h("slot", { name: "subtitle" }))), index.h("div", { class: "menu-container" }, !this.drawerOpen && this.flow !== "offcanvas" && (index.h("slot", { name: "menu", onSlotchange: this.collectMenuElements })))), index.h("div", { class: "drawer-container" }, index.h("div", { class: "drawer-overlay", onClick: this.closeDrawer }), index.h("div", { class: "drawer-panel" }, index.h("button", { class: "drawer-close", "aria-label": "Chiudi menu", onClick: this.closeDrawer }, index.h("z-icon", { name: "close" })), index.h("div", { class: "drawer-content" }, this.drawerOpen && (index.h("slot", { name: "menu", onSlotchange: this.collectMenuElements }))))), this.stucked && (index.h("div", { class: "heading-stucked" }, this.menuLength > 0 && (index.h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, index.h("z-icon", { name: "burger-menu" }))), index.h("div", { class: "heading-title" }, index.h("slot", { name: "stucked-title" }, this.title))))));
|
|
116
|
+
return (index.h(index.Host, { "menu-length": this.menuLength }, index.h("div", { class: "heading-panel", ref: (el) => (this.container = el) }, index.h("div", { class: "hero-container" }, index.h("slot", { name: "hero" }, this.hero && (index.h("img", { alt: "", src: this.hero })))), index.h("div", { class: "heading-container" }, index.h("div", { class: "heading-title" }, this.menuLength > 0 && (index.h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, index.h("z-icon", { name: "burger-menu" }))), index.h("slot", { name: "title" })), index.h("div", { class: "heading-subtitle" }, index.h("slot", { name: "subtitle" }))), index.h("div", { class: "menu-container" }, !this.drawerOpen && this.flow !== "offcanvas" && (index.h("slot", { name: "menu", onSlotchange: () => this.collectMenuElements() })))), index.h("div", { class: "drawer-container" }, index.h("div", { class: "drawer-overlay", onClick: this.closeDrawer }), index.h("div", { class: "drawer-panel" }, index.h("button", { class: "drawer-close", "aria-label": "Chiudi menu", onClick: this.closeDrawer }, index.h("z-icon", { name: "close" })), index.h("div", { class: "drawer-content" }, this.drawerOpen && (index.h("slot", { name: "menu", onSlotchange: () => this.collectMenuElements() }))))), this.stucked && (index.h("div", { class: "heading-stucked" }, this.menuLength > 0 && (index.h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, index.h("z-icon", { name: "burger-menu" }))), index.h("div", { class: "heading-title" }, index.h("slot", { name: "stucked-title" }, this.title))))));
|
|
117
117
|
}
|
|
118
118
|
openDrawer() {
|
|
119
119
|
this.drawerOpen = true;
|
|
@@ -110,6 +110,8 @@ const ZInput = class {
|
|
|
110
110
|
this.inputCheck = index.createEvent(this, "inputCheck", 7);
|
|
111
111
|
/** the id of the input element */
|
|
112
112
|
this.htmlid = `id-${utils.randomId()}`;
|
|
113
|
+
/** the input aria-label */
|
|
114
|
+
this.ariaLabel = "";
|
|
113
115
|
/** the input is disabled */
|
|
114
116
|
this.disabled = false;
|
|
115
117
|
/** the input is readonly */
|
|
@@ -10,6 +10,8 @@ const stylesCss = ".sc-z-button-h{display:inline-block;--z-icon-width:16px;--z-i
|
|
|
10
10
|
const ZButton = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
+
/** defines a string value that labels an interactive element, used for accessibility. */
|
|
14
|
+
this.ariaLabel = "";
|
|
13
15
|
/** HTML button disabled attribute. */
|
|
14
16
|
this.disabled = false;
|
|
15
17
|
/** HTML button type attribute. */
|
|
@@ -314,6 +314,8 @@ const ZDatePicker = class {
|
|
|
314
314
|
constructor(hostRef) {
|
|
315
315
|
index.registerInstance(this, hostRef);
|
|
316
316
|
this.dateSelect = index.createEvent(this, "dateSelect", 7);
|
|
317
|
+
/** z-input aria label */
|
|
318
|
+
this.ariaLabel = "";
|
|
317
319
|
/** [Optional] datepicker mode: date, datetime, only months */
|
|
318
320
|
this.mode = index$1.ZDatePickerMode.DATE;
|
|
319
321
|
this.flatpickrPosition = index$1.ZDatePickerPosition.BOTTOM;
|
|
@@ -19,6 +19,8 @@ const ZInputDeprecated = class {
|
|
|
19
19
|
this.optionSelect = index.createEvent(this, "optionSelect", 7);
|
|
20
20
|
/** the id of the input element */
|
|
21
21
|
this.htmlid = `id-${utils.randomId()}`;
|
|
22
|
+
/** the input aria-label */
|
|
23
|
+
this.ariaLabel = "";
|
|
22
24
|
/** the input is disabled */
|
|
23
25
|
this.disabled = false;
|
|
24
26
|
/** the input is readonly */
|
|
@@ -29,6 +29,8 @@ const ZSelect = class {
|
|
|
29
29
|
this.optionSelect = index.createEvent(this, "optionSelect", 7);
|
|
30
30
|
/** the id of the input element */
|
|
31
31
|
this.htmlid = `id-${utils.randomId()}`;
|
|
32
|
+
/** the input aria-label */
|
|
33
|
+
this.ariaLabel = "";
|
|
32
34
|
/** the input is disabled */
|
|
33
35
|
this.disabled = false;
|
|
34
36
|
/** the input is readonly */
|
|
@@ -11,6 +11,8 @@ const ZMyzCardIcon = class {
|
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
/** disabled status flag */
|
|
13
13
|
this.isdisabled = false;
|
|
14
|
+
/** description of the icon*/
|
|
15
|
+
this.ariaLabel = "";
|
|
14
16
|
}
|
|
15
17
|
render() {
|
|
16
18
|
return (index.h("button", { disabled: this.isdisabled, "aria-label": this.ariaLabel }, index.h("span", null, index.h("z-icon", { name: this.icon, width: 16, height: 16 }))));
|
|
@@ -15,6 +15,8 @@ const ZPaginationPage = class {
|
|
|
15
15
|
this.isdisabled = false;
|
|
16
16
|
/** visited status flag */
|
|
17
17
|
this.isvisited = false;
|
|
18
|
+
/** aria-label string */
|
|
19
|
+
this.ariaLabel = "";
|
|
18
20
|
}
|
|
19
21
|
render() {
|
|
20
22
|
return (index.h("button", { id: this.pageid, "aria-label": this.ariaLabel ? this.ariaLabel : `Go to page ${this.value}`, class: { selected: this.isselected, visited: this.isvisited }, disabled: this.isdisabled, type: "button" }, this.value));
|
|
@@ -5,6 +5,8 @@ import { ButtonVariant, ButtonType, ButtonSize } from "../../../beans";
|
|
|
5
5
|
*/
|
|
6
6
|
export class ZButton {
|
|
7
7
|
constructor() {
|
|
8
|
+
/** defines a string value that labels an interactive element, used for accessibility. */
|
|
9
|
+
this.ariaLabel = "";
|
|
8
10
|
/** HTML button disabled attribute. */
|
|
9
11
|
this.disabled = false;
|
|
10
12
|
/** HTML button type attribute. */
|
|
@@ -52,13 +54,14 @@ export class ZButton {
|
|
|
52
54
|
"references": {}
|
|
53
55
|
},
|
|
54
56
|
"required": false,
|
|
55
|
-
"optional":
|
|
57
|
+
"optional": false,
|
|
56
58
|
"docs": {
|
|
57
59
|
"tags": [],
|
|
58
60
|
"text": "defines a string value that labels an interactive element, used for accessibility."
|
|
59
61
|
},
|
|
60
62
|
"attribute": "aria-label",
|
|
61
|
-
"reflect": true
|
|
63
|
+
"reflect": true,
|
|
64
|
+
"defaultValue": "\"\""
|
|
62
65
|
},
|
|
63
66
|
"href": {
|
|
64
67
|
"type": "string",
|
|
@@ -6,6 +6,8 @@ import { InputType, ZDatePickerMode, ZDatePickerPosition } from "../../../beans"
|
|
|
6
6
|
import { setAriaOptions, setFlatpickrPosition, validateDate } from "../utils";
|
|
7
7
|
export class ZDatePicker {
|
|
8
8
|
constructor() {
|
|
9
|
+
/** z-input aria label */
|
|
10
|
+
this.ariaLabel = "";
|
|
9
11
|
/** [Optional] datepicker mode: date, datetime, only months */
|
|
10
12
|
this.mode = ZDatePickerMode.DATE;
|
|
11
13
|
this.flatpickrPosition = ZDatePickerPosition.BOTTOM;
|
|
@@ -199,13 +201,14 @@ export class ZDatePicker {
|
|
|
199
201
|
"references": {}
|
|
200
202
|
},
|
|
201
203
|
"required": false,
|
|
202
|
-
"optional":
|
|
204
|
+
"optional": false,
|
|
203
205
|
"docs": {
|
|
204
206
|
"tags": [],
|
|
205
207
|
"text": "z-input aria label"
|
|
206
208
|
},
|
|
207
209
|
"attribute": "aria-label",
|
|
208
|
-
"reflect": false
|
|
210
|
+
"reflect": false,
|
|
211
|
+
"defaultValue": "\"\""
|
|
209
212
|
},
|
|
210
213
|
"label": {
|
|
211
214
|
"type": "string",
|
|
@@ -5,6 +5,8 @@ export class ZInput {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
/** the id of the input element */
|
|
7
7
|
this.htmlid = `id-${randomId()}`;
|
|
8
|
+
/** the input aria-label */
|
|
9
|
+
this.ariaLabel = "";
|
|
8
10
|
/** the input is disabled */
|
|
9
11
|
this.disabled = false;
|
|
10
12
|
/** the input is readonly */
|
|
@@ -310,13 +312,14 @@ export class ZInput {
|
|
|
310
312
|
"references": {}
|
|
311
313
|
},
|
|
312
314
|
"required": false,
|
|
313
|
-
"optional":
|
|
315
|
+
"optional": false,
|
|
314
316
|
"docs": {
|
|
315
317
|
"tags": [],
|
|
316
318
|
"text": "the input aria-label"
|
|
317
319
|
},
|
|
318
320
|
"attribute": "aria-label",
|
|
319
|
-
"reflect": false
|
|
321
|
+
"reflect": false,
|
|
322
|
+
"defaultValue": "\"\""
|
|
320
323
|
},
|
|
321
324
|
"value": {
|
|
322
325
|
"type": "string",
|
|
@@ -487,7 +490,12 @@ export class ZInput {
|
|
|
487
490
|
"complexType": {
|
|
488
491
|
"original": "LabelPosition",
|
|
489
492
|
"resolved": "LabelPosition.LEFT | LabelPosition.RIGHT",
|
|
490
|
-
"references": {
|
|
493
|
+
"references": {
|
|
494
|
+
"LabelPosition": {
|
|
495
|
+
"location": "import",
|
|
496
|
+
"path": "../../../beans"
|
|
497
|
+
}
|
|
498
|
+
}
|
|
491
499
|
},
|
|
492
500
|
"required": false,
|
|
493
501
|
"optional": true,
|
|
@@ -5,6 +5,8 @@ export class ZSelect {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
/** the id of the input element */
|
|
7
7
|
this.htmlid = `id-${randomId()}`;
|
|
8
|
+
/** the input aria-label */
|
|
9
|
+
this.ariaLabel = "";
|
|
8
10
|
/** the input is disabled */
|
|
9
11
|
this.disabled = false;
|
|
10
12
|
/** the input is readonly */
|
|
@@ -338,13 +340,14 @@ export class ZSelect {
|
|
|
338
340
|
"references": {}
|
|
339
341
|
},
|
|
340
342
|
"required": false,
|
|
341
|
-
"optional":
|
|
343
|
+
"optional": false,
|
|
342
344
|
"docs": {
|
|
343
345
|
"tags": [],
|
|
344
346
|
"text": "the input aria-label"
|
|
345
347
|
},
|
|
346
348
|
"attribute": "aria-label",
|
|
347
|
-
"reflect": false
|
|
349
|
+
"reflect": false,
|
|
350
|
+
"defaultValue": "\"\""
|
|
348
351
|
},
|
|
349
352
|
"disabled": {
|
|
350
353
|
"type": "boolean",
|
|
@@ -113,7 +113,12 @@ export class ZNavigationTab {
|
|
|
113
113
|
"complexType": {
|
|
114
114
|
"original": "NavigationTabsOrientation",
|
|
115
115
|
"resolved": "NavigationTabsOrientation.HORIZONTAL | NavigationTabsOrientation.VERTICAL",
|
|
116
|
-
"references": {
|
|
116
|
+
"references": {
|
|
117
|
+
"NavigationTabsOrientation": {
|
|
118
|
+
"location": "import",
|
|
119
|
+
"path": "../../../../beans"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
117
122
|
},
|
|
118
123
|
"required": false,
|
|
119
124
|
"optional": false,
|
|
@@ -131,7 +136,12 @@ export class ZNavigationTab {
|
|
|
131
136
|
"complexType": {
|
|
132
137
|
"original": "NavigationTabsSize",
|
|
133
138
|
"resolved": "NavigationTabsSize.BIG | NavigationTabsSize.SMALL",
|
|
134
|
-
"references": {
|
|
139
|
+
"references": {
|
|
140
|
+
"NavigationTabsSize": {
|
|
141
|
+
"location": "import",
|
|
142
|
+
"path": "../../../../beans"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
135
145
|
},
|
|
136
146
|
"required": false,
|
|
137
147
|
"optional": false,
|
|
@@ -109,7 +109,7 @@ export class ZAppHeader {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
render() {
|
|
112
|
-
return (h(Host, { "menu-length": this.menuLength }, h("div", { class: "heading-panel", ref: (el) => (this.container = el) }, h("div", { class: "hero-container" }, h("slot", { name: "hero" }, this.hero && (h("img", { alt: "", src: this.hero })))), h("div", { class: "heading-container" }, h("div", { class: "heading-title" }, this.menuLength > 0 && (h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" }))), h("slot", { name: "title" })), h("div", { class: "heading-subtitle" }, h("slot", { name: "subtitle" }))), h("div", { class: "menu-container" }, !this.drawerOpen && this.flow !== "offcanvas" && (h("slot", { name: "menu", onSlotchange: this.collectMenuElements })))), h("div", { class: "drawer-container" }, h("div", { class: "drawer-overlay", onClick: this.closeDrawer }), h("div", { class: "drawer-panel" }, h("button", { class: "drawer-close", "aria-label": "Chiudi menu", onClick: this.closeDrawer }, h("z-icon", { name: "close" })), h("div", { class: "drawer-content" }, this.drawerOpen && (h("slot", { name: "menu", onSlotchange: this.collectMenuElements }))))), this.stucked && (h("div", { class: "heading-stucked" }, this.menuLength > 0 && (h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" }))), h("div", { class: "heading-title" }, h("slot", { name: "stucked-title" }, this.title))))));
|
|
112
|
+
return (h(Host, { "menu-length": this.menuLength }, h("div", { class: "heading-panel", ref: (el) => (this.container = el) }, h("div", { class: "hero-container" }, h("slot", { name: "hero" }, this.hero && (h("img", { alt: "", src: this.hero })))), h("div", { class: "heading-container" }, h("div", { class: "heading-title" }, this.menuLength > 0 && (h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" }))), h("slot", { name: "title" })), h("div", { class: "heading-subtitle" }, h("slot", { name: "subtitle" }))), h("div", { class: "menu-container" }, !this.drawerOpen && this.flow !== "offcanvas" && (h("slot", { name: "menu", onSlotchange: () => this.collectMenuElements() })))), h("div", { class: "drawer-container" }, h("div", { class: "drawer-overlay", onClick: this.closeDrawer }), h("div", { class: "drawer-panel" }, h("button", { class: "drawer-close", "aria-label": "Chiudi menu", onClick: this.closeDrawer }, h("z-icon", { name: "close" })), h("div", { class: "drawer-content" }, this.drawerOpen && (h("slot", { name: "menu", onSlotchange: () => this.collectMenuElements() }))))), this.stucked && (h("div", { class: "heading-stucked" }, this.menuLength > 0 && (h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" }))), h("div", { class: "heading-title" }, h("slot", { name: "stucked-title" }, this.title))))));
|
|
113
113
|
}
|
|
114
114
|
openDrawer() {
|
|
115
115
|
this.drawerOpen = true;
|
|
@@ -7,6 +7,8 @@ export class ZPaginationPage {
|
|
|
7
7
|
this.isdisabled = false;
|
|
8
8
|
/** visited status flag */
|
|
9
9
|
this.isvisited = false;
|
|
10
|
+
/** aria-label string */
|
|
11
|
+
this.ariaLabel = "";
|
|
10
12
|
}
|
|
11
13
|
render() {
|
|
12
14
|
return (h("button", { id: this.pageid, "aria-label": this.ariaLabel ? this.ariaLabel : `Go to page ${this.value}`, class: { selected: this.isselected, visited: this.isvisited }, disabled: this.isdisabled, type: "button" }, this.value));
|
|
@@ -122,13 +124,14 @@ export class ZPaginationPage {
|
|
|
122
124
|
"references": {}
|
|
123
125
|
},
|
|
124
126
|
"required": false,
|
|
125
|
-
"optional":
|
|
127
|
+
"optional": false,
|
|
126
128
|
"docs": {
|
|
127
129
|
"tags": [],
|
|
128
130
|
"text": "aria-label string"
|
|
129
131
|
},
|
|
130
132
|
"attribute": "aria-label",
|
|
131
|
-
"reflect": false
|
|
133
|
+
"reflect": false,
|
|
134
|
+
"defaultValue": "\"\""
|
|
132
135
|
}
|
|
133
136
|
};
|
|
134
137
|
}
|
|
@@ -5,6 +5,8 @@ export class ZInputDeprecated {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
/** the id of the input element */
|
|
7
7
|
this.htmlid = `id-${randomId()}`;
|
|
8
|
+
/** the input aria-label */
|
|
9
|
+
this.ariaLabel = "";
|
|
8
10
|
/** the input is disabled */
|
|
9
11
|
this.disabled = false;
|
|
10
12
|
/** the input is readonly */
|
|
@@ -335,13 +337,14 @@ export class ZInputDeprecated {
|
|
|
335
337
|
"references": {}
|
|
336
338
|
},
|
|
337
339
|
"required": false,
|
|
338
|
-
"optional":
|
|
340
|
+
"optional": false,
|
|
339
341
|
"docs": {
|
|
340
342
|
"tags": [],
|
|
341
343
|
"text": "the input aria-label"
|
|
342
344
|
},
|
|
343
345
|
"attribute": "aria-label",
|
|
344
|
-
"reflect": false
|
|
346
|
+
"reflect": false,
|
|
347
|
+
"defaultValue": "\"\""
|
|
345
348
|
},
|
|
346
349
|
"value": {
|
|
347
350
|
"type": "string",
|
|
@@ -3,6 +3,8 @@ export class ZMyzCardIcon {
|
|
|
3
3
|
constructor() {
|
|
4
4
|
/** disabled status flag */
|
|
5
5
|
this.isdisabled = false;
|
|
6
|
+
/** description of the icon*/
|
|
7
|
+
this.ariaLabel = "";
|
|
6
8
|
}
|
|
7
9
|
render() {
|
|
8
10
|
return (h("button", { disabled: this.isdisabled, "aria-label": this.ariaLabel }, h("span", null, h("z-icon", { name: this.icon, width: 16, height: 16 }))));
|
|
@@ -65,13 +67,14 @@ export class ZMyzCardIcon {
|
|
|
65
67
|
"references": {}
|
|
66
68
|
},
|
|
67
69
|
"required": false,
|
|
68
|
-
"optional":
|
|
70
|
+
"optional": false,
|
|
69
71
|
"docs": {
|
|
70
72
|
"tags": [],
|
|
71
73
|
"text": "description of the icon"
|
|
72
74
|
},
|
|
73
75
|
"attribute": "aria-label",
|
|
74
|
-
"reflect": false
|
|
76
|
+
"reflect": false,
|
|
77
|
+
"defaultValue": "\"\""
|
|
75
78
|
}
|
|
76
79
|
};
|
|
77
80
|
}
|
|
@@ -109,7 +109,7 @@ const ZAppHeader = class {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
render() {
|
|
112
|
-
return (h(Host, { "menu-length": this.menuLength }, h("div", { class: "heading-panel", ref: (el) => (this.container = el) }, h("div", { class: "hero-container" }, h("slot", { name: "hero" }, this.hero && (h("img", { alt: "", src: this.hero })))), h("div", { class: "heading-container" }, h("div", { class: "heading-title" }, this.menuLength > 0 && (h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" }))), h("slot", { name: "title" })), h("div", { class: "heading-subtitle" }, h("slot", { name: "subtitle" }))), h("div", { class: "menu-container" }, !this.drawerOpen && this.flow !== "offcanvas" && (h("slot", { name: "menu", onSlotchange: this.collectMenuElements })))), h("div", { class: "drawer-container" }, h("div", { class: "drawer-overlay", onClick: this.closeDrawer }), h("div", { class: "drawer-panel" }, h("button", { class: "drawer-close", "aria-label": "Chiudi menu", onClick: this.closeDrawer }, h("z-icon", { name: "close" })), h("div", { class: "drawer-content" }, this.drawerOpen && (h("slot", { name: "menu", onSlotchange: this.collectMenuElements }))))), this.stucked && (h("div", { class: "heading-stucked" }, this.menuLength > 0 && (h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" }))), h("div", { class: "heading-title" }, h("slot", { name: "stucked-title" }, this.title))))));
|
|
112
|
+
return (h(Host, { "menu-length": this.menuLength }, h("div", { class: "heading-panel", ref: (el) => (this.container = el) }, h("div", { class: "hero-container" }, h("slot", { name: "hero" }, this.hero && (h("img", { alt: "", src: this.hero })))), h("div", { class: "heading-container" }, h("div", { class: "heading-title" }, this.menuLength > 0 && (h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" }))), h("slot", { name: "title" })), h("div", { class: "heading-subtitle" }, h("slot", { name: "subtitle" }))), h("div", { class: "menu-container" }, !this.drawerOpen && this.flow !== "offcanvas" && (h("slot", { name: "menu", onSlotchange: () => this.collectMenuElements() })))), h("div", { class: "drawer-container" }, h("div", { class: "drawer-overlay", onClick: this.closeDrawer }), h("div", { class: "drawer-panel" }, h("button", { class: "drawer-close", "aria-label": "Chiudi menu", onClick: this.closeDrawer }, h("z-icon", { name: "close" })), h("div", { class: "drawer-content" }, this.drawerOpen && (h("slot", { name: "menu", onSlotchange: () => this.collectMenuElements() }))))), this.stucked && (h("div", { class: "heading-stucked" }, this.menuLength > 0 && (h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" }))), h("div", { class: "heading-title" }, h("slot", { name: "stucked-title" }, this.title))))));
|
|
113
113
|
}
|
|
114
114
|
openDrawer() {
|
|
115
115
|
this.drawerOpen = true;
|
|
@@ -106,6 +106,8 @@ const ZInput = class {
|
|
|
106
106
|
this.inputCheck = createEvent(this, "inputCheck", 7);
|
|
107
107
|
/** the id of the input element */
|
|
108
108
|
this.htmlid = `id-${randomId()}`;
|
|
109
|
+
/** the input aria-label */
|
|
110
|
+
this.ariaLabel = "";
|
|
109
111
|
/** the input is disabled */
|
|
110
112
|
this.disabled = false;
|
|
111
113
|
/** the input is readonly */
|
|
@@ -6,6 +6,8 @@ const stylesCss = ".sc-z-button-h{display:inline-block;--z-icon-width:16px;--z-i
|
|
|
6
6
|
const ZButton = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
+
/** defines a string value that labels an interactive element, used for accessibility. */
|
|
10
|
+
this.ariaLabel = "";
|
|
9
11
|
/** HTML button disabled attribute. */
|
|
10
12
|
this.disabled = false;
|
|
11
13
|
/** HTML button type attribute. */
|
|
@@ -310,6 +310,8 @@ const ZDatePicker = class {
|
|
|
310
310
|
constructor(hostRef) {
|
|
311
311
|
registerInstance(this, hostRef);
|
|
312
312
|
this.dateSelect = createEvent(this, "dateSelect", 7);
|
|
313
|
+
/** z-input aria label */
|
|
314
|
+
this.ariaLabel = "";
|
|
313
315
|
/** [Optional] datepicker mode: date, datetime, only months */
|
|
314
316
|
this.mode = ZDatePickerMode.DATE;
|
|
315
317
|
this.flatpickrPosition = ZDatePickerPosition.BOTTOM;
|
|
@@ -15,6 +15,8 @@ const ZInputDeprecated = class {
|
|
|
15
15
|
this.optionSelect = createEvent(this, "optionSelect", 7);
|
|
16
16
|
/** the id of the input element */
|
|
17
17
|
this.htmlid = `id-${randomId()}`;
|
|
18
|
+
/** the input aria-label */
|
|
19
|
+
this.ariaLabel = "";
|
|
18
20
|
/** the input is disabled */
|
|
19
21
|
this.disabled = false;
|
|
20
22
|
/** the input is readonly */
|
|
@@ -25,6 +25,8 @@ const ZSelect = class {
|
|
|
25
25
|
this.optionSelect = createEvent(this, "optionSelect", 7);
|
|
26
26
|
/** the id of the input element */
|
|
27
27
|
this.htmlid = `id-${randomId()}`;
|
|
28
|
+
/** the input aria-label */
|
|
29
|
+
this.ariaLabel = "";
|
|
28
30
|
/** the input is disabled */
|
|
29
31
|
this.disabled = false;
|
|
30
32
|
/** the input is readonly */
|
|
@@ -7,6 +7,8 @@ const ZMyzCardIcon = class {
|
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
8
|
/** disabled status flag */
|
|
9
9
|
this.isdisabled = false;
|
|
10
|
+
/** description of the icon*/
|
|
11
|
+
this.ariaLabel = "";
|
|
10
12
|
}
|
|
11
13
|
render() {
|
|
12
14
|
return (h("button", { disabled: this.isdisabled, "aria-label": this.ariaLabel }, h("span", null, h("z-icon", { name: this.icon, width: 16, height: 16 }))));
|
|
@@ -11,6 +11,8 @@ const ZPaginationPage = class {
|
|
|
11
11
|
this.isdisabled = false;
|
|
12
12
|
/** visited status flag */
|
|
13
13
|
this.isvisited = false;
|
|
14
|
+
/** aria-label string */
|
|
15
|
+
this.ariaLabel = "";
|
|
14
16
|
}
|
|
15
17
|
render() {
|
|
16
18
|
return (h("button", { id: this.pageid, "aria-label": this.ariaLabel ? this.ariaLabel : `Go to page ${this.value}`, class: { selected: this.isselected, visited: this.isvisited }, disabled: this.isdisabled, type: "button" }, this.value));
|
|
@@ -5,7 +5,7 @@ import { ButtonVariant, ButtonType, ButtonSize } from "../../../beans";
|
|
|
5
5
|
export declare class ZButton {
|
|
6
6
|
hostElement: HTMLZButtonElement;
|
|
7
7
|
/** defines a string value that labels an interactive element, used for accessibility. */
|
|
8
|
-
ariaLabel
|
|
8
|
+
ariaLabel: string;
|
|
9
9
|
/** HTML <a> href attribute. If it is set, it renders an HTML <a> tag. */
|
|
10
10
|
href?: string;
|
|
11
11
|
/** HTML a target attribute. */
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
2
|
import { LabelPosition } from "../../../beans";
|
|
3
|
-
import { HostElement } from "../../../stencil-public-runtime";
|
|
4
3
|
export declare class ZToggleSwitch {
|
|
5
4
|
/** Disabled flag */
|
|
6
5
|
disabled?: boolean;
|
|
@@ -14,5 +13,5 @@ export declare class ZToggleSwitch {
|
|
|
14
13
|
toggleClick: EventEmitter;
|
|
15
14
|
private emitToggleClick;
|
|
16
15
|
private handleClick;
|
|
17
|
-
render():
|
|
16
|
+
render(): HTMLZToggleSwitchElement;
|
|
18
17
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
-
import { HostElement } from "../../../stencil-public-runtime";
|
|
3
2
|
export declare class ZFile {
|
|
4
3
|
private icon;
|
|
5
4
|
private ellipsis?;
|
|
@@ -19,5 +18,5 @@ export declare class ZFile {
|
|
|
19
18
|
onInteractiveIconClick(): void;
|
|
20
19
|
componentDidLoad(): void;
|
|
21
20
|
private elementHasEllipsis;
|
|
22
|
-
render():
|
|
21
|
+
render(): HTMLZFileElement;
|
|
23
22
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
-
import { HostElement } from "../../../stencil-public-runtime";
|
|
3
2
|
import { ButtonVariant, ZFileUploadType } from "../../../beans";
|
|
4
3
|
export declare class ZFileUpload {
|
|
5
4
|
/** Prop indicating the file upload type - can be default or dragdrop */
|
|
@@ -48,5 +47,5 @@ export declare class ZFileUpload {
|
|
|
48
47
|
private renderDragDropMode;
|
|
49
48
|
private formatErrorString;
|
|
50
49
|
private handleErrorModalContent;
|
|
51
|
-
render():
|
|
50
|
+
render(): HTMLZFileUploadElement;
|
|
52
51
|
}
|
|
File without changes
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { HostElement } from "../../../stencil-public-runtime";
|
|
2
1
|
import { InputStatus } from "../../../beans";
|
|
3
2
|
export declare class ZInputMessage {
|
|
4
3
|
/** input helper message */
|
|
@@ -6,5 +5,5 @@ export declare class ZInputMessage {
|
|
|
6
5
|
/** input status (optional) */
|
|
7
6
|
status?: InputStatus;
|
|
8
7
|
private statusIcons;
|
|
9
|
-
render():
|
|
8
|
+
render(): HTMLZInputMessageElement;
|
|
10
9
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { HostElement } from "../../../stencil-public-runtime";
|
|
2
1
|
import { ListSize } from "../../../beans";
|
|
3
2
|
export declare class ZList {
|
|
4
3
|
host: HTMLZListElement;
|
|
@@ -8,5 +7,5 @@ export declare class ZList {
|
|
|
8
7
|
size?: ListSize;
|
|
9
8
|
private setChildrenSizeType;
|
|
10
9
|
componentDidLoad(): void;
|
|
11
|
-
render():
|
|
10
|
+
render(): HTMLZListElement;
|
|
12
11
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
-
import { HostElement } from "../../../stencil-public-runtime";
|
|
3
2
|
import { DividerSize, ExpandableListButtonAlign, ExpandableListStyle, ListDividerType, ListSize } from "../../../beans";
|
|
4
3
|
export declare class ZListElement {
|
|
5
4
|
host: HTMLZListElementElement;
|
|
@@ -79,5 +78,5 @@ export declare class ZListElement {
|
|
|
79
78
|
* @returns expanded content
|
|
80
79
|
*/
|
|
81
80
|
private renderExpandedContent;
|
|
82
|
-
render():
|
|
81
|
+
render(): HTMLZListElementElement;
|
|
83
82
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { HostElement } from "../../../stencil-public-runtime";
|
|
2
1
|
import { DividerSize, ListSize, ListDividerType } from "../../../beans";
|
|
3
2
|
export declare class ZListGroup {
|
|
4
3
|
host: HTMLZListGroupElement;
|
|
@@ -21,5 +20,5 @@ export declare class ZListGroup {
|
|
|
21
20
|
private hasHeader;
|
|
22
21
|
componentDidLoad(): void;
|
|
23
22
|
componentWillLoad(): void;
|
|
24
|
-
render():
|
|
23
|
+
render(): HTMLZListGroupElement;
|
|
25
24
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { HostElement } from "../../../stencil-public-runtime";
|
|
2
1
|
export declare class ZLogo {
|
|
3
2
|
/** image width */
|
|
4
3
|
width?: number;
|
|
@@ -12,5 +11,5 @@ export declare class ZLogo {
|
|
|
12
11
|
targetBlank?: boolean;
|
|
13
12
|
/** if true, the mobile logo is displayed, otherwise the desktop one */
|
|
14
13
|
mobileLogo?: boolean;
|
|
15
|
-
render():
|
|
14
|
+
render(): HTMLZLogoElement;
|
|
16
15
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
-
import { HostElement } from "../../../stencil-public-runtime";
|
|
3
2
|
/**
|
|
4
3
|
* @slot modalContent - set the content of the modal
|
|
5
4
|
* @slot modalCloseButton - accept custom close button
|
|
@@ -22,5 +21,5 @@ export declare class ZModal {
|
|
|
22
21
|
/** emitted on background click, returns modalid */
|
|
23
22
|
modalBackgroundClick: EventEmitter;
|
|
24
23
|
private emitBackgroundClick;
|
|
25
|
-
render():
|
|
24
|
+
render(): HTMLZModalElement;
|
|
26
25
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { HostElement } from "../../../../stencil-public-runtime";
|
|
2
1
|
import { NavigationTabsSize, NavigationTabsOrientation } from "../../../../beans";
|
|
3
2
|
/**
|
|
4
3
|
* Navigation tabs component.
|
|
@@ -67,5 +66,5 @@ export declare class ZNavigationTabs {
|
|
|
67
66
|
*/
|
|
68
67
|
private navigateForward;
|
|
69
68
|
componentDidRender(): void;
|
|
70
|
-
render():
|
|
69
|
+
render(): HTMLZNavigationTabsElement;
|
|
71
70
|
}
|