@zanichelli/albe-web-components 6.0.1 → 6.0.3

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.
Files changed (121) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/z-app-header.cjs.entry.js +1 -1
  3. package/dist/cjs/z-app-switcher_9.cjs.entry.js +2 -0
  4. package/dist/cjs/z-button.cjs.entry.js +2 -0
  5. package/dist/cjs/z-date-picker.cjs.entry.js +2 -0
  6. package/dist/cjs/z-file-upload.cjs.entry.js +3 -3
  7. package/dist/cjs/z-input-deprecated.cjs.entry.js +2 -0
  8. package/dist/cjs/z-input-label_2.cjs.entry.js +2 -0
  9. package/dist/cjs/z-myz-card-icon.cjs.entry.js +2 -0
  10. package/dist/cjs/z-pagination-page.cjs.entry.js +2 -0
  11. package/dist/collection/components/buttons/z-button/index.js +5 -2
  12. package/dist/collection/components/date-picker/z-date-picker/index.js +5 -2
  13. package/dist/collection/components/file-upload/z-file-upload/index.js +3 -3
  14. package/dist/collection/components/index.js +8 -0
  15. package/dist/collection/components/inputs/z-input/index.js +11 -3
  16. package/dist/collection/components/inputs/z-select/index.js +5 -2
  17. package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +12 -2
  18. package/dist/collection/components/navigation/z-app-header/index.js +1 -1
  19. package/dist/collection/deprecated/pagination/z-pagination-page/index.js +5 -2
  20. package/dist/collection/deprecated/z-input-deprecated/index.js +5 -2
  21. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +5 -2
  22. package/dist/esm/z-app-header.entry.js +1 -1
  23. package/dist/esm/z-app-switcher_9.entry.js +2 -0
  24. package/dist/esm/z-button.entry.js +2 -0
  25. package/dist/esm/z-date-picker.entry.js +2 -0
  26. package/dist/esm/z-file-upload.entry.js +3 -3
  27. package/dist/esm/z-input-deprecated.entry.js +2 -0
  28. package/dist/esm/z-input-label_2.entry.js +2 -0
  29. package/dist/esm/z-myz-card-icon.entry.js +2 -0
  30. package/dist/esm/z-pagination-page.entry.js +2 -0
  31. package/dist/types/components/buttons/z-button/index.d.ts +1 -1
  32. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +1 -2
  33. package/dist/types/components/date-picker/z-date-picker/index.d.ts +1 -1
  34. package/dist/types/components/file-upload/z-file/index.d.ts +1 -2
  35. package/dist/types/components/file-upload/z-file-upload/index.d.ts +2 -2
  36. package/dist/types/components/index.d.ts +0 -0
  37. package/dist/types/components/inputs/z-input/index.d.ts +1 -1
  38. package/dist/types/components/inputs/z-input-message/index.d.ts +1 -2
  39. package/dist/types/components/inputs/z-select/index.d.ts +1 -1
  40. package/dist/types/components/list/z-list/index.d.ts +1 -2
  41. package/dist/types/components/list/z-list-element/index.d.ts +1 -2
  42. package/dist/types/components/list/z-list-group/index.d.ts +1 -2
  43. package/dist/types/components/logo/z-logo/index.d.ts +1 -2
  44. package/dist/types/components/modal/z-modal/index.d.ts +1 -2
  45. package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +1 -2
  46. package/dist/types/components/navigation/z-app-header/index.d.ts +1 -2
  47. package/dist/types/components/navigation/z-app-topbar/index.d.ts +1 -2
  48. package/dist/types/components/navigation/z-menu/index.d.ts +1 -2
  49. package/dist/types/components/navigation/z-menu-section/index.d.ts +1 -2
  50. package/dist/types/components/navigation/z-user-dropdown/index.d.ts +1 -2
  51. package/dist/types/components/notification/z-notification/index.d.ts +1 -2
  52. package/dist/types/components/notification/z-toast-notification/index.d.ts +1 -2
  53. package/dist/types/components/typography/z-typography/index.d.ts +1 -2
  54. package/dist/types/components/z-aria-alert/index.d.ts +1 -2
  55. package/dist/types/components/z-avatar/index.d.ts +1 -2
  56. package/dist/types/components/z-card/index.d.ts +1 -2
  57. package/dist/types/components/z-carousel/index.d.ts +1 -2
  58. package/dist/types/components/z-contextual-menu/index.d.ts +1 -2
  59. package/dist/types/components/z-cover-hero/index.d.ts +1 -2
  60. package/dist/types/components/z-divider/index.d.ts +1 -2
  61. package/dist/types/components/z-ghost-loading/index.d.ts +1 -2
  62. package/dist/types/components/z-info-reveal/index.d.ts +1 -2
  63. package/dist/types/components/z-offcanvas/index.d.ts +1 -2
  64. package/dist/types/components/z-pagination/index.d.ts +1 -2
  65. package/dist/types/components/z-section-title/index.d.ts +1 -2
  66. package/dist/types/components/z-skip-to-content/index.d.ts +1 -2
  67. package/dist/types/components/z-table/z-table/index.d.ts +1 -2
  68. package/dist/types/components/z-table/z-table-cell/index.d.ts +1 -2
  69. package/dist/types/components/z-table/z-table-empty-box/index.d.ts +1 -2
  70. package/dist/types/components/z-table/z-table-header/index.d.ts +1 -2
  71. package/dist/types/components/z-table/z-table-header-row/index.d.ts +1 -2
  72. package/dist/types/components/z-table/z-table-row/index.d.ts +1 -2
  73. package/dist/types/components/z-tag/index.d.ts +1 -2
  74. package/dist/types/components.d.ts +8 -8
  75. package/dist/types/deprecated/pagination/z-pagination-page/index.d.ts +1 -1
  76. package/dist/types/deprecated/z-input-deprecated/index.d.ts +1 -1
  77. package/dist/types/deprecated/z-popover-deprecated/index.d.ts +1 -2
  78. package/dist/types/deprecated/z-status-tag/index.d.ts +1 -2
  79. package/dist/types/deprecated/z-tooltip-deprecated/index.d.ts +1 -2
  80. package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +1 -1
  81. package/dist/web-components-library/p-05ced71c.entry.js +1 -0
  82. package/dist/web-components-library/p-2d0cb337.entry.js +1 -0
  83. package/dist/web-components-library/p-4d093e07.entry.js +1 -0
  84. package/dist/web-components-library/p-5f3baf14.entry.js +1 -0
  85. package/dist/web-components-library/p-bb95b82f.entry.js +1 -0
  86. package/dist/web-components-library/p-c2d1785b.entry.js +1 -0
  87. package/dist/web-components-library/p-d3733579.entry.js +1 -0
  88. package/dist/web-components-library/p-edf0195b.entry.js +1 -0
  89. package/dist/web-components-library/p-f7c1eb3f.entry.js +16 -0
  90. package/dist/web-components-library/web-components-library.esm.js +1 -1
  91. package/package.json +1 -1
  92. package/www/build/{p-e9b0bd13.js → p-0134d685.js} +1 -1
  93. package/www/build/p-05ced71c.entry.js +1 -0
  94. package/www/build/p-2d0cb337.entry.js +1 -0
  95. package/www/build/p-4d093e07.entry.js +1 -0
  96. package/www/build/p-5f3baf14.entry.js +1 -0
  97. package/www/build/p-bb95b82f.entry.js +1 -0
  98. package/www/build/p-c2d1785b.entry.js +1 -0
  99. package/www/build/p-d3733579.entry.js +1 -0
  100. package/www/build/p-edf0195b.entry.js +1 -0
  101. package/www/build/p-f7c1eb3f.entry.js +16 -0
  102. package/www/build/web-components-library.esm.js +1 -1
  103. package/www/index.html +1 -1
  104. package/dist/web-components-library/p-40729225.entry.js +0 -1
  105. package/dist/web-components-library/p-4df05ebe.entry.js +0 -1
  106. package/dist/web-components-library/p-75b7e931.entry.js +0 -1
  107. package/dist/web-components-library/p-93da92c0.entry.js +0 -1
  108. package/dist/web-components-library/p-99f0b6cc.entry.js +0 -1
  109. package/dist/web-components-library/p-9e2c836b.entry.js +0 -1
  110. package/dist/web-components-library/p-b780dfc8.entry.js +0 -1
  111. package/dist/web-components-library/p-e71132fc.entry.js +0 -16
  112. package/dist/web-components-library/p-ffe15448.entry.js +0 -1
  113. package/www/build/p-40729225.entry.js +0 -1
  114. package/www/build/p-4df05ebe.entry.js +0 -1
  115. package/www/build/p-75b7e931.entry.js +0 -1
  116. package/www/build/p-93da92c0.entry.js +0 -1
  117. package/www/build/p-99f0b6cc.entry.js +0 -1
  118. package/www/build/p-9e2c836b.entry.js +0 -1
  119. package/www/build/p-b780dfc8.entry.js +0 -1
  120. package/www/build/p-e71132fc.entry.js +0 -16
  121. package/www/build/p-ffe15448.entry.js +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,33 @@
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.3](https://github.com/ZanichelliEditore/design-system/compare/v6.0.2...v6.0.3) (2022-11-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * type prop handing and console error ([d01d9c3](https://github.com/ZanichelliEditore/design-system/commit/d01d9c3ec97560a174b3f1dfb3f1111bf9be1277))
11
+
12
+ ### [6.0.2](https://github.com/ZanichelliEditore/design-system/compare/v6.0.1...v6.0.2) (2022-10-28)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * @Element console error ([2b79dcc](https://github.com/ZanichelliEditore/design-system/commit/2b79dcc19aa3725794bcdc0f129e8513609d75fa))
18
+ * added file to prevent stencil import errors ([d21e1ff](https://github.com/ZanichelliEditore/design-system/commit/d21e1ff3c8c71e4f5c41ef5830e00aea1fbfef19))
19
+ * remove last HostElement ([7f136e0](https://github.com/ZanichelliEditore/design-system/commit/7f136e0459b3093bc5ac7478006d3b9304c750a4))
20
+ * restore current version ([5c364ae](https://github.com/ZanichelliEditore/design-system/commit/5c364ae0be1afe9e257a9e046c16fc9cb26a8261))
21
+ * tests ([c96570d](https://github.com/ZanichelliEditore/design-system/commit/c96570dc027fad19ab72b9003ad21d74c2001329))
22
+ * z-carousel return type ([117b7b8](https://github.com/ZanichelliEditore/design-system/commit/117b7b82b14287056e10173c6ef6006e71fe487f))
23
+ * z-popover Storybook docs ([4e4e12f](https://github.com/ZanichelliEditore/design-system/commit/4e4e12ff04206ee72fb5f4d330c0ee5c8a00e54a))
24
+
25
+ ### [6.0.1-rc4](https://github.com/ZanichelliEditore/design-system/compare/v6.0.0...v6.0.1-rc4) (2022-10-27)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * remove hostElement, set ariaLabel prop as not optional ([0dfaa44](https://github.com/ZanichelliEditore/design-system/commit/0dfaa44c498a10b07ee95e833c8b46558b4d8716))
31
+
5
32
  ### [6.0.1](https://github.com/ZanichelliEditore/design-system/compare/v6.0.0...v6.0.1) (2022-10-28)
6
33
 
7
34
 
@@ -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;
@@ -46,6 +46,8 @@ const ZFileUpload = class {
46
46
  }
47
47
  componentWillLoad() {
48
48
  this.invalidFiles = new Map();
49
+ }
50
+ componentWillRender() {
49
51
  if (this.type === index$1.ZFileUploadType.DRAGDROP && utils.getDevice() !== index$1.Device.DESKTOP) {
50
52
  this.type = index$1.ZFileUploadType.DEFAULT;
51
53
  }
@@ -65,9 +67,7 @@ const ZFileUpload = class {
65
67
  lastFile.focus();
66
68
  }
67
69
  else {
68
- this.type === index$1.ZFileUploadType.DEFAULT
69
- ? this.button.shadowRoot.querySelector("button").focus()
70
- : this.uploadLink.focus();
70
+ this.type === index$1.ZFileUploadType.DEFAULT ? this.button.querySelector("button").focus() : this.uploadLink.focus();
71
71
  }
72
72
  }
73
73
  checkFiles(files) {
@@ -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": true,
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": true,
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",
@@ -36,6 +36,8 @@ export class ZFileUpload {
36
36
  }
37
37
  componentWillLoad() {
38
38
  this.invalidFiles = new Map();
39
+ }
40
+ componentWillRender() {
39
41
  if (this.type === ZFileUploadType.DRAGDROP && getDevice() !== Device.DESKTOP) {
40
42
  this.type = ZFileUploadType.DEFAULT;
41
43
  }
@@ -55,9 +57,7 @@ export class ZFileUpload {
55
57
  lastFile.focus();
56
58
  }
57
59
  else {
58
- this.type === ZFileUploadType.DEFAULT
59
- ? this.button.shadowRoot.querySelector("button").focus()
60
- : this.uploadLink.focus();
60
+ this.type === ZFileUploadType.DEFAULT ? this.button.querySelector("button").focus() : this.uploadLink.focus();
61
61
  }
62
62
  }
63
63
  checkFiles(files) {
@@ -0,0 +1,8 @@
1
+ //
2
+ // Temp workaround:
3
+ //
4
+ // Empty file to prevent errors when importing beans in stencil apps
5
+ // Stencil apps with React bindings will not work
6
+ //
7
+ // Must be fixed
8
+ //
@@ -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": true,
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": true,
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": true,
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": true,
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": true,
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;
@@ -42,6 +42,8 @@ const ZFileUpload = class {
42
42
  }
43
43
  componentWillLoad() {
44
44
  this.invalidFiles = new Map();
45
+ }
46
+ componentWillRender() {
45
47
  if (this.type === ZFileUploadType.DRAGDROP && getDevice() !== Device.DESKTOP) {
46
48
  this.type = ZFileUploadType.DEFAULT;
47
49
  }
@@ -61,9 +63,7 @@ const ZFileUpload = class {
61
63
  lastFile.focus();
62
64
  }
63
65
  else {
64
- this.type === ZFileUploadType.DEFAULT
65
- ? this.button.shadowRoot.querySelector("button").focus()
66
- : this.uploadLink.focus();
66
+ this.type === ZFileUploadType.DEFAULT ? this.button.querySelector("button").focus() : this.uploadLink.focus();
67
67
  }
68
68
  }
69
69
  checkFiles(files) {
@@ -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?: string;
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(): HostElement;
16
+ render(): HTMLZToggleSwitchElement;
18
17
  }
@@ -5,7 +5,7 @@ export declare class ZDatePicker {
5
5
  /** unique id */
6
6
  datePickerId: string;
7
7
  /** z-input aria label */
8
- ariaLabel?: string;
8
+ ariaLabel: string;
9
9
  /** z-input label */
10
10
  label?: string;
11
11
  /** [Optional] datepicker mode: date, datetime, only months */
@@ -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(): HostElement;
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 */
@@ -30,6 +29,7 @@ export declare class ZFileUpload {
30
29
  fileDroppedListener(e: CustomEvent): void;
31
30
  componentDidUpdate(): void;
32
31
  componentWillLoad(): void;
32
+ componentWillRender(): void;
33
33
  /** Emitted when user select one or more files */
34
34
  fileInput: EventEmitter;
35
35
  private fileInputHandler;
@@ -48,5 +48,5 @@ export declare class ZFileUpload {
48
48
  private renderDragDropMode;
49
49
  private formatErrorString;
50
50
  private handleErrorModalContent;
51
- render(): HostElement;
51
+ render(): HTMLZFileUploadElement;
52
52
  }
File without changes
@@ -11,7 +11,7 @@ export declare class ZInput {
11
11
  /** the input label */
12
12
  label?: string;
13
13
  /** the input aria-label */
14
- ariaLabel?: string;
14
+ ariaLabel: string;
15
15
  /** the input value */
16
16
  value?: string;
17
17
  /** the input is disabled */
@@ -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(): HostElement;
8
+ render(): HTMLZInputMessageElement;
10
9
  }
@@ -11,7 +11,7 @@ export declare class ZSelect {
11
11
  /** the input label */
12
12
  label?: string;
13
13
  /** the input aria-label */
14
- ariaLabel?: string;
14
+ ariaLabel: string;
15
15
  /** the input is disabled */
16
16
  disabled?: boolean;
17
17
  /** the input is readonly */