@zanichelli/albe-web-components 2.30.0-rc4 → 2.30.0-rc8

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 (26) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/web-components-library.cjs.js +1 -1
  3. package/dist/cjs/z-alert_66.cjs.entry.js +53 -43
  4. package/dist/collection/components/navigation/z-app-topbar/index.js +29 -36
  5. package/dist/collection/components/navigation/z-app-topbar/styles.css +17 -24
  6. package/dist/collection/components/navigation/z-user-dropdown/index.js +44 -44
  7. package/dist/collection/components/navigation/z-user-dropdown/styles.css +64 -59
  8. package/dist/collection/snowflakes/registro-table/z-registro-table/index.js +6 -1
  9. package/dist/collection/snowflakes/registro-table/z-registro-table/styles.css +5 -6
  10. package/dist/collection/snowflakes/registro-table/z-registro-table-empty-box/index.js +9 -4
  11. package/dist/esm/loader.js +1 -1
  12. package/dist/esm/web-components-library.js +1 -1
  13. package/dist/esm/z-alert_66.entry.js +53 -43
  14. package/dist/types/components/navigation/z-app-topbar/index.d.ts +8 -9
  15. package/dist/types/components/navigation/z-user-dropdown/index.d.ts +10 -10
  16. package/dist/types/components.d.ts +21 -21
  17. package/dist/types/snowflakes/registro-table/z-registro-table-empty-box/index.d.ts +5 -0
  18. package/dist/web-components-library/{p-480046b3.entry.js → p-b89ae2ca.entry.js} +2 -2
  19. package/dist/web-components-library/web-components-library.esm.js +1 -1
  20. package/package.json +1 -1
  21. package/www/build/{p-480046b3.entry.js → p-b89ae2ca.entry.js} +2 -2
  22. package/www/build/p-c2b2814d.js +1 -0
  23. package/www/build/web-components-library.esm.js +1 -1
  24. package/www/index.html +3 -3
  25. package/www/pages/notification.html +1 -1
  26. package/www/build/p-a354f241.js +0 -1
@@ -5,13 +5,13 @@
5
5
  top: 0;
6
6
  height: calc(var(--space-unit) * 6);
7
7
  padding: calc(var(--space-unit) / 2) calc(var(--space-unit) * 2);
8
- border-radius: var(--border-radius-min);
9
- background-color: var(--bg-grey-900);
8
+ border-radius: var(--border-no-radius);
9
+ background-color: var(--gray900);
10
10
  z-index: 99;
11
11
  }
12
12
 
13
13
  :host(.light) {
14
- background-color: var(--bg-white);
14
+ background-color: var(--color-white);
15
15
  }
16
16
 
17
17
  :host > div {
@@ -20,16 +20,18 @@
20
20
  align-items: center;
21
21
  }
22
22
 
23
- #left-panel {
23
+ :host(.limited-width) #content-container {
24
+ margin: auto;
25
+ max-width: var(--mw);
26
+ }
27
+
28
+ .content-panel {
24
29
  display: flex;
25
- gap: calc(var(--space-unit) + 2px);
26
30
  align-items: center
27
31
  }
28
32
 
29
- #right-panel {
30
- display: flex;
31
- gap: calc(var(--space-unit) * 2);
32
- align-items: center;
33
+ .content-panel > :not(:last-child) {
34
+ margin-right: calc(var(--space-unit) * 2);
33
35
  }
34
36
 
35
37
  #divider-container {
@@ -37,26 +39,26 @@
37
39
  }
38
40
 
39
41
  z-link {
40
- font-family: var(--dashboard-font);
42
+ font-family: var(--font-family-sans);
41
43
  font-weight: var(--font-sb);
42
44
  font-size: 14px;
43
45
  line-height: 20px;
44
46
  letter-spacing: 0.3px;
45
47
  }
46
48
 
47
- z-logo {
48
- margin-right: calc(var(--space-unit) - 2px);
49
- }
50
-
51
49
  /* Tablet breakpoint */
52
50
  @media only screen and (min-width: 768px) {
53
51
  :host {
54
52
  padding: var(--space-unit) calc(var(--space-unit) * 2) var(--space-unit) var(--space-unit);
55
53
  }
56
54
 
55
+ :host(.limited-width) {
56
+ padding: var(--space-unit);
57
+ }
58
+
57
59
  #divider-container {
58
60
  display: block;
59
- height: 24px;
61
+ height: calc(var(--space-unit) * 3);
60
62
  }
61
63
  }
62
64
 
@@ -66,13 +68,4 @@ z-logo {
66
68
 
67
69
  /* Wide breakpoint */
68
70
  @media only screen and (min-width: 1366px) {
69
- :host(.limited-width) {
70
- padding: var(--space-unit);
71
- }
72
-
73
- #content-container.limited-width {
74
- margin: auto;
75
- max-width: var(--mw);
76
- }
77
-
78
71
  }
@@ -3,8 +3,8 @@ import { mobileBreakpoint } from "../../../constants/breakpoints";
3
3
  export class ZUserDropdown {
4
4
  constructor() {
5
5
  /** if inner components colors are inverted, or not, default false */
6
- this.useinversecolors = false;
7
- this.ismenuopen = false;
6
+ this.useInverseColors = false;
7
+ this.isMenuOpen = false;
8
8
  this.handleLoggedButtonClick = this.handleLoggedButtonClick.bind(this);
9
9
  this.emitDropdownMenuLinkClick = this.emitDropdownMenuLinkClick.bind(this);
10
10
  }
@@ -15,81 +15,81 @@ export class ZUserDropdown {
15
15
  this.setMobileAndDivToResizeWidth();
16
16
  }
17
17
  componentWillRender() {
18
- if (this.menucontent) {
19
- this.linkarray = typeof this.menucontent === "string" ? JSON.parse(this.menucontent) : this.menucontent;
18
+ if (this.menuContent) {
19
+ this.linkArray = typeof this.menuContent === "string" ? JSON.parse(this.menuContent) : this.menuContent;
20
20
  }
21
21
  }
22
22
  setMobileAndDivToResizeWidth() {
23
23
  var _a;
24
- if (this.divtoresize) {
25
- this.ismobile = window.screen.width <= mobileBreakpoint || window.innerWidth <= mobileBreakpoint;
26
- if (this.logged && !this.ismobile && this.ismenuopen) {
27
- this.divtoresize.style.width = `${(_a = this.userbutton) === null || _a === void 0 ? void 0 : _a.offsetWidth}px`;
24
+ if (this.divToResize) {
25
+ this.isMobile = window.screen.width <= mobileBreakpoint || window.innerWidth <= mobileBreakpoint;
26
+ if (this.logged && !this.isMobile && this.isMenuOpen) {
27
+ this.divToResize.style.width = `${(_a = this.userButton) === null || _a === void 0 ? void 0 : _a.offsetWidth}px`;
28
28
  }
29
29
  else {
30
- this.divtoresize.removeAttribute('style');
30
+ this.divToResize.removeAttribute('style');
31
31
  }
32
32
  }
33
33
  }
34
34
  emitUserButtonClick() {
35
- this.userButtonClick.emit(this.ismenuopen);
35
+ this.userButtonClick.emit(this.isMenuOpen);
36
36
  }
37
37
  emitDropdownMenuLinkClick(e) {
38
- this.ismenuopen = false;
38
+ this.isMenuOpen = false;
39
39
  this.dropdownMenuLinkClick.emit({ e, linkId: e.detail.linkId });
40
40
  }
41
41
  handleResize() {
42
- this.ismobile = window.innerWidth <= mobileBreakpoint;
42
+ this.isMobile = window.innerWidth <= mobileBreakpoint;
43
43
  }
44
44
  handleOrientationChange() {
45
- this.ismobile = screen.width <= mobileBreakpoint;
45
+ this.isMobile = screen.width <= mobileBreakpoint;
46
46
  }
47
47
  handleClickOutside(e) {
48
48
  if (e.target.nodeName !== "Z-USER-DROPDOWN") {
49
- this.ismenuopen = false;
49
+ this.isMenuOpen = false;
50
50
  }
51
51
  }
52
52
  handleLoggedButtonClick() {
53
- this.ismenuopen = !this.ismenuopen;
53
+ this.isMenuOpen = !this.isMenuOpen;
54
54
  this.emitUserButtonClick();
55
55
  }
56
56
  renderGuestButton() {
57
- return (h("button", { id: "guestbutton", class: this.useinversecolors ? "inverse" : "", onClick: () => this.emitUserButtonClick() }, "ENTRA"));
57
+ return (h("button", { id: "guestbutton", class: this.useInverseColors ? "inverse" : "", onClick: () => this.emitUserButtonClick() }, "ENTRA"));
58
58
  }
59
59
  renderLoggedButton() {
60
- const direction = this.ismenuopen ? "up" : "down";
61
- const colorClass = this.useinversecolors ? "inverse" : "";
62
- return (h("button", { ref: (el) => (this.userbutton = el), title: this.userfullname, class: `${colorClass} ${this.ismenuopen ? "open" : ""}`, onClick: this.handleLoggedButtonClick },
60
+ const direction = this.isMenuOpen ? "up" : "down";
61
+ const colorClass = this.useInverseColors ? "inverse" : "";
62
+ return (h("button", { ref: (el) => (this.userButton = el), title: this.userFullName, class: `${colorClass} ${this.isMenuOpen ? "open" : ""}`, onClick: this.handleLoggedButtonClick },
63
63
  h("div", null,
64
64
  h("div", { class: "firstline" },
65
65
  h("z-icon", { class: colorClass, name: "user-avatar-filled", height: 16, width: 16 }),
66
- !this.ismobile && h("div", { class: `userfullname ${colorClass}` }, this.userfullname),
66
+ !this.isMobile && h("div", { class: `userfullname ${colorClass}` }, this.userFullName),
67
67
  h("z-icon", { class: colorClass, name: `caret-${direction}-filled`, height: 16, width: 16 })),
68
- !this.ismobile && this.ismenuopen && h("div", { class: `useremail ${colorClass}` }, this.useremail))));
68
+ !this.isMobile && this.isMenuOpen && h("div", { class: `useremail ${colorClass}` }, this.userEmail))));
69
69
  }
70
70
  getZLinkTextcolor() {
71
- if (this.ismobile) {
72
- return this.useinversecolors ? "black" : "white";
71
+ if (this.isMobile) {
72
+ return this.useInverseColors ? "black" : "white";
73
73
  }
74
74
  else {
75
- return this.useinversecolors ? "white" : "black";
75
+ return this.useInverseColors ? "white" : "black";
76
76
  }
77
77
  }
78
78
  renderDropdownMenu() {
79
- const colorClass = this.useinversecolors ? "inverse" : "";
80
- return (this.ismenuopen && (h("ul", { class: colorClass },
81
- this.ismobile &&
79
+ const colorClass = this.useInverseColors ? "inverse" : "";
80
+ return (this.isMenuOpen && (h("ul", { class: colorClass },
81
+ this.isMobile &&
82
82
  h("li", { class: colorClass },
83
- h("div", { class: `userfullname ${colorClass}` }, this.userfullname),
84
- h("div", { class: `useremail ${colorClass}` }, this.useremail)),
85
- this.linkarray && this.linkarray.map((link) => h("li", { id: link.id, class: colorClass },
83
+ h("div", { class: `userfullname ${colorClass}` }, this.userFullName),
84
+ h("div", { class: `useremail ${colorClass}` }, this.userEmail)),
85
+ this.linkArray && this.linkArray.map((link) => h("li", { id: link.id, class: colorClass },
86
86
  h("z-link", { textcolor: this.getZLinkTextcolor(), href: link.link, htmlid: link.id, target: link.target, icon: link.icon, onZLinkClick: this.emitDropdownMenuLinkClick }, link.label))))));
87
87
  }
88
88
  render() {
89
- const openClass = `${this.logged && this.ismenuopen ? "open" : ""}`;
90
- const colorClass = this.useinversecolors ? "inverse" : "";
89
+ const openClass = `${this.logged && this.isMenuOpen ? "open" : ""}`;
90
+ const colorClass = this.useInverseColors ? "inverse" : "";
91
91
  return (h(Host, { class: colorClass },
92
- h("div", { ref: (el) => (this.divtoresize = el), class: openClass, onClick: (e) => e.stopPropagation() },
92
+ h("div", { ref: (el) => (this.divToResize = el), class: openClass },
93
93
  h("div", { class: `${colorClass} ${openClass}` },
94
94
  this.logged ? this.renderLoggedButton() : this.renderGuestButton(),
95
95
  this.logged && this.renderDropdownMenu()))));
@@ -120,7 +120,7 @@ export class ZUserDropdown {
120
120
  "attribute": "logged",
121
121
  "reflect": false
122
122
  },
123
- "userfullname": {
123
+ "userFullName": {
124
124
  "type": "string",
125
125
  "mutable": false,
126
126
  "complexType": {
@@ -134,10 +134,10 @@ export class ZUserDropdown {
134
134
  "tags": [],
135
135
  "text": "user full name"
136
136
  },
137
- "attribute": "userfullname",
137
+ "attribute": "user-full-name",
138
138
  "reflect": false
139
139
  },
140
- "useremail": {
140
+ "userEmail": {
141
141
  "type": "string",
142
142
  "mutable": false,
143
143
  "complexType": {
@@ -151,10 +151,10 @@ export class ZUserDropdown {
151
151
  "tags": [],
152
152
  "text": "user email"
153
153
  },
154
- "attribute": "useremail",
154
+ "attribute": "user-email",
155
155
  "reflect": false
156
156
  },
157
- "menucontent": {
157
+ "menuContent": {
158
158
  "type": "string",
159
159
  "mutable": false,
160
160
  "complexType": {
@@ -173,10 +173,10 @@ export class ZUserDropdown {
173
173
  "tags": [],
174
174
  "text": "Json stringified or array to fill menu dropdown"
175
175
  },
176
- "attribute": "menucontent",
176
+ "attribute": "menu-content",
177
177
  "reflect": false
178
178
  },
179
- "useinversecolors": {
179
+ "useInverseColors": {
180
180
  "type": "boolean",
181
181
  "mutable": false,
182
182
  "complexType": {
@@ -190,14 +190,14 @@ export class ZUserDropdown {
190
190
  "tags": [],
191
191
  "text": "if inner components colors are inverted, or not, default false"
192
192
  },
193
- "attribute": "useinversecolors",
193
+ "attribute": "use-inverse-colors",
194
194
  "reflect": false,
195
195
  "defaultValue": "false"
196
196
  }
197
197
  }; }
198
198
  static get states() { return {
199
- "ismenuopen": {},
200
- "ismobile": {}
199
+ "isMenuOpen": {},
200
+ "isMobile": {}
201
201
  }; }
202
202
  static get events() { return [{
203
203
  "method": "userButtonClick",
@@ -207,7 +207,7 @@ export class ZUserDropdown {
207
207
  "composed": true,
208
208
  "docs": {
209
209
  "tags": [],
210
- "text": "Emitted on enter or user Button click, returns ismenuopen (bool)"
210
+ "text": "Emitted on enter or user Button click, returns isMenuOpen (bool)"
211
211
  },
212
212
  "complexType": {
213
213
  "original": "any",
@@ -1,9 +1,9 @@
1
1
  :host {
2
- background-color: var(--bg-grey-900);
2
+ background-color: var(--gray900);
3
3
  }
4
4
 
5
5
  :host(.inverse) {
6
- background-color: var(--bg-white);
6
+ background-color: var(--color-white);
7
7
  }
8
8
 
9
9
  button {
@@ -12,7 +12,7 @@ button {
12
12
  flex-direction: column;
13
13
  width: 100%;
14
14
  margin: 0;
15
- background-color: var(--bg-grey-900);
15
+ background-color: var(--gray900);
16
16
  border: none;
17
17
  padding: 0;
18
18
  letter-spacing: 0.16px;
@@ -20,7 +20,7 @@ button {
20
20
  }
21
21
 
22
22
  button.inverse {
23
- background-color: var(--bg-white);
23
+ background-color: var(--color-white);
24
24
  }
25
25
 
26
26
  button div.firstline {
@@ -36,21 +36,22 @@ button.open div.firstline {
36
36
 
37
37
  z-icon {
38
38
  padding: 0 2px;
39
- fill: var(--text-white);
39
+ fill: var(--color-white);
40
40
  }
41
41
 
42
42
  z-icon.inverse {
43
- fill: var(--bg-grey-900);
43
+ fill: var(--gray900);
44
44
  }
45
45
 
46
46
  ul {
47
+ box-sizing: border-box;
47
48
  position: absolute;
48
49
  left: 0;
49
50
  padding: calc(var(--space-unit) / 2) calc(var(--space-unit) * 2) 0 calc(var(--space-unit) * 2);
50
51
  width: 100%;
51
52
  margin: calc(var(--space-unit) * 1.5) 0 0 0;
52
- background-color: var(--bg-grey-900);
53
- font-family: var(--dashboard-font);
53
+ background-color: var(--gray900);
54
+ font-family: var(--font-family-sans);
54
55
  font-weight: var(--font-sb);
55
56
  font-size: 14px;
56
57
  line-height: 20px;
@@ -58,15 +59,16 @@ ul {
58
59
  }
59
60
 
60
61
  ul.inverse {
61
- background-color: var(--bg-white);
62
+ background-color: var(--color-white);
62
63
  }
63
64
 
64
65
  ul > li {
65
66
  display: flex;
66
67
  justify-content: flex-end;
68
+ white-space: nowrap;
67
69
  padding: calc(var(--space-unit) * 1.5 - 1px) 0;
68
- margin: 0 calc(var(--space-unit) * 4) 0 0;
69
- border-bottom: var(--border-base) solid var(--bg-grey-700);
70
+ margin: 0;
71
+ border-bottom: var(--border-base) solid var(--gray700);
70
72
  }
71
73
 
72
74
  ul > li.inverse {
@@ -76,6 +78,7 @@ ul > li.inverse {
76
78
  ul > li:first-child {
77
79
  border-top: none;
78
80
  padding-top: 0;
81
+ padding-bottom: calc(var(--space-unit) + 6px);
79
82
  flex-direction: column;
80
83
  align-items: end;
81
84
  }
@@ -92,7 +95,7 @@ ul > li:last-child {
92
95
  align-items: center;
93
96
  justify-content: center;
94
97
  width: 100%;
95
- font-family: var(--dashboard-font);
98
+ font-family: var(--font-family-sans);
96
99
  font-weight: var(--font-sb);
97
100
  font-size: 14px;
98
101
  line-height: 1;
@@ -109,15 +112,15 @@ ul > li:last-child {
109
112
  height: 32px;
110
113
  min-width: 32px;
111
114
  padding: 0 calc(var(--space-unit) * 2);
112
- background-color: var(--bg-white);
113
- border-color: var(--bg-white);
114
- color: var(--text-grey-800);
115
+ background-color: var(--color-white);
116
+ border-color: var(--color-white);
117
+ color: var(--gray800);
115
118
  }
116
119
 
117
120
  #guestbutton.inverse {
118
- background-color: var(--bg-grey-800);
119
- border-color: var(--bg-grey-800);
120
- color: var(--text-white);
121
+ background-color: var(--gray800);
122
+ border-color: var(--gray800);
123
+ color: var(--color-white);
121
124
  }
122
125
 
123
126
  .userfullname {
@@ -125,40 +128,46 @@ ul > li:last-child {
125
128
  overflow: hidden;
126
129
  max-width: 250px;
127
130
  text-overflow: ellipsis;
128
- color: var(--text-white);
129
- font-family: var(--dashboard-font);
131
+ width: 100%;
132
+ color: var(--color-white);
133
+ font-family: var(--font-family-sans);
130
134
  font-weight: var(--font-sb);
131
135
  font-size: 16px;
132
136
  line-height: 24px;
133
137
  letter-spacing: 0;
138
+ text-align: right;
134
139
  }
135
140
 
136
141
  .userfullname.inverse {
137
- color: var(--text-grey-800);
142
+ color: var(--gray800);
138
143
  }
139
144
 
140
145
  .useremail {
141
- color: var(--text-white);
142
- font-family: var(--dashboard-font);
146
+ color: var(--color-white);
147
+ font-family: var(--font-family-sans);
143
148
  font-weight: var(--font-rg);
144
149
  font-size: 12px;
145
150
  line-height: 16px;
146
151
  letter-spacing: 0.32px;
152
+ overflow: hidden;
153
+ text-overflow: ellipsis;
154
+ width: 100%;
155
+ text-align: right;
147
156
  }
148
157
 
149
158
  .useremail.inverse {
150
- color: var(--text-grey-800);
159
+ color: var(--gray800);
151
160
  }
152
161
 
153
162
  /* Tablet breakpoint */
154
163
  @media only screen and (min-width: 768px) {
155
164
  :host {
156
165
  height: calc(var(--space-unit) * 4);
157
- background-color: var(--bg-grey-900);
166
+ background-color: var(--gray900);
158
167
  }
159
168
 
160
169
  :host(.inverse) {
161
- background-color: var(--bg-white);
170
+ background-color: var(--color-white);
162
171
  }
163
172
 
164
173
  :host > div {
@@ -180,14 +189,14 @@ ul > li:last-child {
180
189
  position: absolute;
181
190
  right: calc(var(--space-unit) * -1);
182
191
  box-shadow: 0px 2px calc(var(--space-unit) * .5) 0px rgba(0, 0, 0, 0.5);
183
- background-color: var(--bg-white);
192
+ background-color: var(--color-white);
184
193
  margin-top: calc(var(--space-unit) / 2);
185
194
  padding: calc(var(--space-unit) / 2 + 1px) var(--space-unit) 0 var(--space-unit);
186
195
  transform: translate(0, -4px);
187
196
  }
188
197
 
189
198
  :host > div > div.inverse.open {
190
- background-color: var(--bg-grey-800);
199
+ background-color: var(--gray800);
191
200
  }
192
201
 
193
202
  button {
@@ -200,105 +209,101 @@ ul > li:last-child {
200
209
  }
201
210
 
202
211
  button.open {
203
- background-color: var(--bg-white);
204
- border-top: var(--border-size-small) solid var(--bg-white);
212
+ background-color: var(--color-white);
213
+ border-top: var(--border-size-small) solid var(--color-white);
205
214
  border-top-left-radius: calc(var(--space-unit) * .5);
206
215
  border-top-right-radius: calc(var(--space-unit) * .5);
207
216
  max-width: initial;
208
217
  margin-left: var(--space-unit);
209
218
  padding-right: var(--space-unit);
210
- padding-bottom: calc(var(--space-unit) * 2);
211
219
  }
212
220
 
213
221
  button.open.inverse {
214
- border-top-color: var(--bg-grey-800);
215
- background-color: var(--bg-grey-800);
222
+ border-top-color: var(--gray800);
223
+ background-color: var(--gray800);
216
224
  }
217
225
 
218
226
  button:not(.open) z-icon {
219
- fill: var(--text-white);
227
+ fill: var(--color-white);
220
228
  }
221
229
 
222
230
  button:not(.open) z-icon.inverse {
223
- fill: var(--text-grey-800);
231
+ fill: var(--gray800);
224
232
  }
225
233
 
226
234
  button.open z-icon {
227
- fill: var(--text-grey-800);
235
+ fill: var(--gray800);
228
236
  }
229
-
237
+
230
238
  button.open z-icon.inverse {
231
- fill: var(--text-white);
239
+ fill: var(--color-white);
232
240
  }
233
241
 
234
242
  .userfullname {
235
- font-family: var(--dashboard-font);
243
+ font-family: var(--font-family-sans);
236
244
  font-weight: var(--font-sb);
237
245
  font-size: 14px;
238
246
  line-height: 20px;
239
247
  letter-spacing: 0.16px;
240
- padding: 0 calc(var(--space-unit) - 2px);
248
+ padding: 0 calc(var(--space-unit) - 6px) 0 calc(var(--space-unit) - 2px);
249
+ width: auto;
241
250
  }
242
251
 
243
252
  .userfullname.inverse {
244
- color: var(--text-grey-800);
253
+ color: var(--gray800);
245
254
  }
246
255
 
247
256
  button.open div.userfullname {
248
- color: var(--text-grey-800);
257
+ color: var(--gray800);
249
258
  max-width: none;
250
259
  text-overflow: clip;
251
260
  }
252
261
 
253
262
  button.open div.userfullname.inverse {
254
- color: var(--text-white);
263
+ color: var(--color-white);
255
264
  }
256
265
 
257
266
  .useremail {
258
- margin-right: calc(var(--space-unit) * 3 + 2px);
259
- text-align: end;
267
+ padding-right: calc(var(--space-unit) * 3 - 2px);
268
+ box-sizing: border-box;
260
269
  }
261
270
 
262
271
  button.open div.useremail {
263
- color: var(--text-grey-800);
272
+ color: var(--gray800);
264
273
  }
265
274
 
266
275
  button.open div.useremail.inverse {
267
- color: var(--text-white);
276
+ color: var(--color-white);
268
277
  }
269
278
 
270
279
  ul {
271
280
  position: initial;
272
281
  left: initial;
273
282
  padding: 0;
274
- margin-top: 0;
275
283
  width: 100%;
276
- background-color: var(--bg-white);
277
- border-bottom: var(--border-size-small) solid var(--bg-white);
278
- border-bottom-left-radius: var(--border-radius-base);
279
- border-bottom-right-radius: var(--border-radius-base);
284
+ background-color: var(--color-white);
280
285
  }
281
286
 
282
287
  ul.inverse {
283
- border-bottom-color: var(--bg-grey-800);
284
- background-color: var(--bg-grey-800);
288
+ border-bottom-color: var(--gray800);
289
+ background-color: var(--gray800);
285
290
  }
286
291
 
287
292
  ul > li {
288
- color: var(--text-grey-800);
293
+ color: var(--gray800);
289
294
  border-bottom: var(--border-base) solid var(--gray400);
290
295
  margin: 0 var(--space-unit);
291
296
  }
292
297
 
293
- ul > li.inverse {
294
- color: var(--text-white);
295
- }
298
+ ul > li.inverse {
299
+ color: var(--color-white);
300
+ }
296
301
 
297
302
  ul > li:first-child {
298
303
  border-top: var(--border-base) solid var(--gray400);
299
304
  padding-top: calc(var(--space-unit) + 3px);
305
+ padding-bottom: calc(var(--space-unit) + 5px);
300
306
  }
301
-
302
307
  }
303
308
 
304
309
  /* Desktop breakpoint */
@@ -31,8 +31,13 @@ export class ZRegistroTable {
31
31
  this.isMobile = screen.width <= mobileBreakpoint;
32
32
  }
33
33
  componentWillLoad() {
34
+ var _a;
34
35
  this.isMobile = window.innerWidth <= mobileBreakpoint;
35
- this.hasTableBody = !!this.host.querySelector('[slot="table-body"]');
36
+ const tableBody = this.host.querySelector('[slot="table-body"]');
37
+ this.hasTableBody = !!((_a = tableBody === null || tableBody === void 0 ? void 0 : tableBody.children) === null || _a === void 0 ? void 0 : _a.length);
38
+ if (!!tableBody && !this.hasTableBody) {
39
+ tableBody.remove();
40
+ }
36
41
  }
37
42
  componentWillRender() {
38
43
  this.host.setAttribute("role", "table");
@@ -4,7 +4,6 @@ z-registro-table {
4
4
  width: 100%;
5
5
  font-family: var(--dashboard-font);
6
6
  font-weight: var(--font-rg);
7
- min-height: 288px;
8
7
  background-color: var(--color-white);
9
8
  }
10
9
 
@@ -110,13 +109,8 @@ z-registro-table
110
109
  z-index: 5;
111
110
  }
112
111
 
113
- z-registro-table-empty-box.bordered {
114
- border-left: var(--border-size-small) solid var(--bg-grey-200);
115
- }
116
-
117
112
  z-registro-table-body {
118
113
  width: auto;
119
- min-height: 288px;
120
114
  background-color: var(--color-white);
121
115
  }
122
116
 
@@ -124,6 +118,11 @@ z-registro-table-empty-box {
124
118
  display: flex;
125
119
  flex-direction: column;
126
120
  flex-grow: 1;
121
+ border-bottom: var(--border-size-small) solid var(--bg-grey-200);
122
+ }
123
+
124
+ z-registro-table-empty-box.bordered {
125
+ border-left: var(--border-size-small) solid var(--bg-grey-200);
127
126
  }
128
127
 
129
128
  .error-message {
@@ -1,4 +1,4 @@
1
- import { Component, h, Host, Prop } from "@stencil/core";
1
+ import { Component, Element, h, Host, Prop } from "@stencil/core";
2
2
  export class ZRegistroTableEmptyBox {
3
3
  constructor() {
4
4
  /** Sets main title message*/
@@ -6,14 +6,18 @@ export class ZRegistroTableEmptyBox {
6
6
  /** Sets message */
7
7
  this.subtitle = "";
8
8
  }
9
+ componentWillLoad() {
10
+ this.hasCta1Slot = !!this.hostElement.querySelector('[slot="cta1"]');
11
+ this.hasCta2Slot = !!this.hostElement.querySelector('[slot="cta2"]');
12
+ }
9
13
  render() {
10
14
  return (h(Host, null,
11
15
  h("z-body", { level: 3, variant: "semibold" }, this.message),
12
16
  h("br", null),
13
- h("z-body", { level: 4, variant: "regular" }, this.subtitle),
14
- h("div", { class: "cta" },
17
+ !!this.subtitle && (h("z-body", { level: 4, variant: "regular" }, this.subtitle)),
18
+ (!!this.hasCta1Slot || !!this.hasCta2Slot) && (h("div", { class: "cta" },
15
19
  h("slot", { name: "cta1" }),
16
- h("slot", { name: "cta2" }))));
20
+ h("slot", { name: "cta2" })))));
17
21
  }
18
22
  static get is() { return "z-registro-table-empty-box"; }
19
23
  static get encapsulation() { return "scoped"; }
@@ -61,4 +65,5 @@ export class ZRegistroTableEmptyBox {
61
65
  "defaultValue": "\"\""
62
66
  }
63
67
  }; }
68
+ static get elementRef() { return "hostElement"; }
64
69
  }