@zanichelli/albe-web-components 6.8.0 → 6.9.0-rc2
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/dist/cjs/index-e3299e0a.js +2 -22
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-header_11.cjs.entry.js +1027 -0
- package/dist/collection/components/inputs/z-select/index.js +69 -8
- package/dist/collection/components/inputs/z-select/styles.css +17 -0
- package/dist/esm/index-a2ca4b97.js +2 -22
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-6cf7efe2.js → utils-5445d989.js} +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-header_11.entry.js +1013 -0
- package/dist/esm/z-chip.entry.js +1 -1
- package/dist/esm/z-combobox.entry.js +1 -1
- package/dist/esm/z-file-upload.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +1 -1
- package/dist/esm/z-pocket_3.entry.js +1 -1
- package/dist/esm/z-searchbar.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +1 -1
- package/dist/esm/z-slideshow.entry.js +1 -1
- package/dist/esm/z-table-header.entry.js +1 -1
- package/dist/esm/z-toggle-switch.entry.js +1 -1
- package/dist/types/components/inputs/z-select/index.d.ts +6 -0
- package/dist/types/components.d.ts +6 -0
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-8ebe4adf.js → p-00481c22.js} +1 -1
- package/dist/web-components-library/{p-6c163539.entry.js → p-102d82ee.entry.js} +1 -1
- package/dist/web-components-library/{p-d2127d84.entry.js → p-169b9762.entry.js} +1 -1
- package/dist/web-components-library/{p-53065788.entry.js → p-229e17af.entry.js} +1 -1
- package/dist/web-components-library/{p-5c62387a.entry.js → p-28b288a8.entry.js} +1 -1
- package/dist/web-components-library/{p-26033729.entry.js → p-48d3f650.entry.js} +1 -1
- package/dist/web-components-library/p-4cd77fd1.entry.js +1 -0
- package/{www/build/p-e45cf758.entry.js → dist/web-components-library/p-5bbbda4e.entry.js} +1 -1
- package/dist/web-components-library/{p-a05ce0a6.entry.js → p-669f14ae.entry.js} +1 -1
- package/dist/web-components-library/{p-a6c0f149.entry.js → p-933efc27.entry.js} +1 -1
- package/{www/build/p-3eb60c95.entry.js → dist/web-components-library/p-9c36a01f.entry.js} +1 -1
- package/dist/web-components-library/{p-7b3b99ee.entry.js → p-d0accfc5.entry.js} +1 -1
- package/dist/web-components-library/{p-93142fac.entry.js → p-db77ef4e.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-8ebe4adf.js → p-00481c22.js} +1 -1
- package/www/build/{p-6c163539.entry.js → p-102d82ee.entry.js} +1 -1
- package/www/build/{p-d2127d84.entry.js → p-169b9762.entry.js} +1 -1
- package/www/build/{p-53065788.entry.js → p-229e17af.entry.js} +1 -1
- package/www/build/p-275801c6.css +1 -0
- package/www/build/{p-5c62387a.entry.js → p-28b288a8.entry.js} +1 -1
- package/www/build/{p-26033729.entry.js → p-48d3f650.entry.js} +1 -1
- package/www/build/p-4cd77fd1.entry.js +1 -0
- package/{dist/web-components-library/p-e45cf758.entry.js → www/build/p-5bbbda4e.entry.js} +1 -1
- package/www/build/{p-a05ce0a6.entry.js → p-669f14ae.entry.js} +1 -1
- package/www/build/p-6b9630ee.js +1 -0
- package/www/build/{p-a6c0f149.entry.js → p-933efc27.entry.js} +1 -1
- package/{dist/web-components-library/p-3eb60c95.entry.js → www/build/p-9c36a01f.entry.js} +1 -1
- package/www/build/{p-7b3b99ee.entry.js → p-d0accfc5.entry.js} +1 -1
- package/www/build/{p-93142fac.entry.js → p-db77ef4e.entry.js} +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/z-app-header_2.cjs.entry.js +0 -153
- package/dist/cjs/z-body_2.cjs.entry.js +0 -42
- package/dist/cjs/z-divider.cjs.entry.js +0 -26
- package/dist/cjs/z-input_2.cjs.entry.js +0 -266
- package/dist/cjs/z-list_3.cjs.entry.js +0 -261
- package/dist/cjs/z-select.cjs.entry.js +0 -284
- package/dist/esm/z-app-header_2.entry.js +0 -148
- package/dist/esm/z-body_2.entry.js +0 -37
- package/dist/esm/z-divider.entry.js +0 -22
- package/dist/esm/z-input_2.entry.js +0 -261
- package/dist/esm/z-list_3.entry.js +0 -255
- package/dist/esm/z-select.entry.js +0 -280
- package/dist/web-components-library/p-33352f9e.entry.js +0 -1
- package/dist/web-components-library/p-7ea553e9.entry.js +0 -1
- package/dist/web-components-library/p-9c338aeb.entry.js +0 -1
- package/dist/web-components-library/p-a79d1412.entry.js +0 -1
- package/dist/web-components-library/p-d9a6a204.entry.js +0 -1
- package/dist/web-components-library/p-de0b8df8.entry.js +0 -1
- package/www/build/p-32511690.css +0 -1636
- package/www/build/p-33352f9e.entry.js +0 -1
- package/www/build/p-7ea553e9.entry.js +0 -1
- package/www/build/p-9c338aeb.entry.js +0 -1
- package/www/build/p-a5066bae.js +0 -129
- package/www/build/p-a79d1412.entry.js +0 -1
- package/www/build/p-d9a6a204.entry.js +0 -1
- package/www/build/p-de0b8df8.entry.js +0 -1
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const index$1 = require('./index-fa110f37.js');
|
|
7
|
-
const utils = require('./utils-600bad93.js');
|
|
8
|
-
require('./breakpoints-88c4fd6c.js');
|
|
9
|
-
|
|
10
|
-
const stylesCss = ".sc-z-select-h{display:inline-block;width:inherit;color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg)}.select-wrapper.sc-z-select>z-input.sc-z-select{width:100%}.select-wrapper.sc-z-select>div.sc-z-select{position:relative}.select-wrapper.sc-z-select>div.closed.sc-z-select{overflow:hidden;height:0}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select{position:absolute;width:100%;box-sizing:border-box;padding:calc(var(--space-unit) * 0.5) var(--space-unit);border:var(--border-size-small) solid var(--gray200);border-top:none;background:var(--color-surface01);outline:none}.select-wrapper.sc-z-select .closed.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:10}.select-wrapper.sc-z-select .open.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:20}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select{position:relative;overflow:auto;max-height:240px;padding:calc(var(--space-unit) * 0.5);outline:none;scrollbar-color:var(--color-primary01) transparent}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-track{background-color:transparent}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select span.sc-z-select{display:block;padding:0 calc(var(--space-unit) * 1.5)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select span.selected.sc-z-select{font-weight:bold}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select .no-results.sc-z-select z-icon.sc-z-select{margin-right:var(--space-unit)}.z-list-group-title.sc-z-select{color:var(--gray800)}";
|
|
11
|
-
|
|
12
|
-
const ZSelect = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
this.optionSelect = index.createEvent(this, "optionSelect", 7);
|
|
16
|
-
/** the id of the input element */
|
|
17
|
-
this.htmlid = `id-${utils.randomId()}`;
|
|
18
|
-
/** the input aria-label */
|
|
19
|
-
this.ariaLabel = "";
|
|
20
|
-
/** the input is disabled */
|
|
21
|
-
this.disabled = false;
|
|
22
|
-
/** the input is readonly */
|
|
23
|
-
this.readonly = false;
|
|
24
|
-
/** input helper message (optional) - if set to `false` message won't be displayed */
|
|
25
|
-
this.message = true;
|
|
26
|
-
/** the input has autocomplete option */
|
|
27
|
-
this.autocomplete = false;
|
|
28
|
-
/** no result text message */
|
|
29
|
-
this.noresultslabel = "Nessun risultato";
|
|
30
|
-
this.isOpen = false;
|
|
31
|
-
this.selectedItem = null;
|
|
32
|
-
this.itemsList = [];
|
|
33
|
-
this.toggleSelectUl = this.toggleSelectUl.bind(this);
|
|
34
|
-
this.selectItem = this.selectItem.bind(this);
|
|
35
|
-
this.handleSelectFocus = this.handleSelectFocus.bind(this);
|
|
36
|
-
}
|
|
37
|
-
watchItems() {
|
|
38
|
-
this.itemsList = this.getInitialItemsArray();
|
|
39
|
-
this.selectedItem = this.itemsList.find((item) => item.selected);
|
|
40
|
-
}
|
|
41
|
-
/** get the input selected options */
|
|
42
|
-
async getSelectedItem() {
|
|
43
|
-
return this.selectedItem;
|
|
44
|
-
}
|
|
45
|
-
/** get the input value */
|
|
46
|
-
async getValue() {
|
|
47
|
-
return this.getSelectedValue();
|
|
48
|
-
}
|
|
49
|
-
/** set the input value */
|
|
50
|
-
async setValue(value) {
|
|
51
|
-
let values = [];
|
|
52
|
-
if (typeof value === "string") {
|
|
53
|
-
values.push(value);
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
values = value;
|
|
57
|
-
}
|
|
58
|
-
this.selectedItem = this.itemsList.find((item) => values.includes(item.id));
|
|
59
|
-
}
|
|
60
|
-
emitOptionSelect() {
|
|
61
|
-
this.optionSelect.emit({
|
|
62
|
-
id: this.htmlid,
|
|
63
|
-
selected: this.getSelectedValue(),
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
componentWillLoad() {
|
|
67
|
-
this.watchItems();
|
|
68
|
-
}
|
|
69
|
-
componentWillRender() {
|
|
70
|
-
this.filterItems(this.searchString);
|
|
71
|
-
}
|
|
72
|
-
getInitialItemsArray() {
|
|
73
|
-
return typeof this.items === "string" ? JSON.parse(this.items) : this.items;
|
|
74
|
-
}
|
|
75
|
-
mapSelectedItemToItemsArray() {
|
|
76
|
-
const initialItemsList = this.getInitialItemsArray();
|
|
77
|
-
return initialItemsList.map((item) => {
|
|
78
|
-
var _a;
|
|
79
|
-
item.selected = item.id === ((_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.id);
|
|
80
|
-
return item;
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
getSelectedValue() {
|
|
84
|
-
var _a;
|
|
85
|
-
return (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.id;
|
|
86
|
-
}
|
|
87
|
-
filterItems(searchString) {
|
|
88
|
-
const prevList = this.mapSelectedItemToItemsArray();
|
|
89
|
-
if (!(searchString === null || searchString === void 0 ? void 0 : searchString.length)) {
|
|
90
|
-
this.itemsList = prevList;
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
this.itemsList = prevList
|
|
94
|
-
.filter((item) => {
|
|
95
|
-
return item.name.toUpperCase().includes(searchString.toUpperCase());
|
|
96
|
-
})
|
|
97
|
-
.map((item) => {
|
|
98
|
-
const start = item.name.toUpperCase().indexOf(searchString.toUpperCase());
|
|
99
|
-
const end = start + searchString.length;
|
|
100
|
-
const newName = item.name.substring(0, start) +
|
|
101
|
-
`<strong>${item.name.substring(start, end)}</strong>` +
|
|
102
|
-
item.name.substring(end, item.name.length);
|
|
103
|
-
item.name = newName;
|
|
104
|
-
return item;
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
hasAutocomplete() {
|
|
109
|
-
return utils.boolean(this.autocomplete) === true;
|
|
110
|
-
}
|
|
111
|
-
handleInputChange(e) {
|
|
112
|
-
this.searchString = e.detail.value;
|
|
113
|
-
if (!this.isOpen) {
|
|
114
|
-
this.toggleSelectUl();
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
selectItem(item, selected) {
|
|
118
|
-
if (item && item.disabled) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
this.itemsList = this.mapSelectedItemToItemsArray();
|
|
122
|
-
this.itemsList = this.itemsList.map((i) => {
|
|
123
|
-
i.selected = false;
|
|
124
|
-
if (i.id === (item === null || item === void 0 ? void 0 : item.id)) {
|
|
125
|
-
i.selected = selected;
|
|
126
|
-
}
|
|
127
|
-
return i;
|
|
128
|
-
});
|
|
129
|
-
this.selectedItem = this.itemsList.find((item) => item.selected);
|
|
130
|
-
this.emitOptionSelect();
|
|
131
|
-
if (this.searchString) {
|
|
132
|
-
this.searchString = null;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
arrowsSelectNav(e, key) {
|
|
136
|
-
const arrows = [index$1.KeyboardCode.ARROW_DOWN, index$1.KeyboardCode.ARROW_UP];
|
|
137
|
-
if (!arrows.includes(e.key)) {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
e.preventDefault();
|
|
141
|
-
e.stopPropagation();
|
|
142
|
-
if (!this.isOpen) {
|
|
143
|
-
this.toggleSelectUl();
|
|
144
|
-
}
|
|
145
|
-
let index;
|
|
146
|
-
if (e.key === index$1.KeyboardCode.ARROW_DOWN) {
|
|
147
|
-
index = key + 1 === this.itemsList.length ? 0 : key + 1;
|
|
148
|
-
}
|
|
149
|
-
else if (e.key === index$1.KeyboardCode.ARROW_UP) {
|
|
150
|
-
index = key <= 0 ? this.itemsList.length - 1 : key - 1;
|
|
151
|
-
}
|
|
152
|
-
this.focusSelectItem(index);
|
|
153
|
-
}
|
|
154
|
-
focusSelectItem(index) {
|
|
155
|
-
const focusElem = this.element.querySelector(`#${this.htmlid}_${index}`);
|
|
156
|
-
if (focusElem) {
|
|
157
|
-
focusElem.focus();
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
toggleSelectUl(selfFocusOnClose = false) {
|
|
161
|
-
if (this.disabled || this.readonly) {
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
if (!this.isOpen) {
|
|
165
|
-
document.addEventListener("click", this.handleSelectFocus);
|
|
166
|
-
document.addEventListener("keyup", this.handleSelectFocus);
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
document.removeEventListener("click", this.handleSelectFocus);
|
|
170
|
-
document.removeEventListener("keyup", this.handleSelectFocus);
|
|
171
|
-
if (selfFocusOnClose) {
|
|
172
|
-
this.element.querySelector(`#${this.htmlid}_input`).focus();
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
this.isOpen = !this.isOpen;
|
|
176
|
-
}
|
|
177
|
-
handleInputClick(e) {
|
|
178
|
-
const cp = e.composedPath();
|
|
179
|
-
const clearIcon = cp.find((item) => item.classList && item.classList.contains("reset-icon"));
|
|
180
|
-
if (clearIcon) {
|
|
181
|
-
e.stopPropagation();
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
this.toggleSelectUl();
|
|
185
|
-
}
|
|
186
|
-
handleSelectFocus(e) {
|
|
187
|
-
if (e instanceof KeyboardEvent && e.key === index$1.KeyboardCode.ESC) {
|
|
188
|
-
e.stopPropagation();
|
|
189
|
-
return this.toggleSelectUl(true);
|
|
190
|
-
}
|
|
191
|
-
if (e instanceof KeyboardEvent && e.key !== index$1.KeyboardCode.TAB && e.key !== index$1.KeyboardCode.ENTER) {
|
|
192
|
-
return;
|
|
193
|
-
}
|
|
194
|
-
const tree = utils.getElementTree(utils.getClickedElement());
|
|
195
|
-
const parent = tree.find((elem) => {
|
|
196
|
-
return elem.nodeName.toLowerCase() === "z-input" && elem.id === `${this.htmlid}_input`;
|
|
197
|
-
});
|
|
198
|
-
if (!parent) {
|
|
199
|
-
this.toggleSelectUl(e instanceof MouseEvent ? true : false);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
scrollToLetter(letter) {
|
|
203
|
-
const foundItem = this.itemsList.find((item) => item.name.charAt(0) === letter);
|
|
204
|
-
if (foundItem) {
|
|
205
|
-
this.focusSelectItem(this.itemsList.indexOf(foundItem));
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
renderInput() {
|
|
209
|
-
return (index.h("z-input", { id: `${this.htmlid}_input`, htmlid: `${this.htmlid}_input`, placeholder: this.placeholder, value: !this.isOpen && this.selectedItem ? this.selectedItem.name.replace(/<[^>]+>/g, "") : null, label: this.label, "aria-label": this.ariaLabel, icon: this.isOpen ? "caret-up" : "caret-down", hasclearicon: this.hasAutocomplete(), message: false, disabled: this.disabled, readonly: this.readonly || (!this.hasAutocomplete() && this.isOpen), status: this.isOpen ? undefined : this.status, autocomplete: "off", onClick: (e) => {
|
|
210
|
-
this.handleInputClick(e);
|
|
211
|
-
}, onKeyUp: (e) => {
|
|
212
|
-
if (e.keyCode !== 13) {
|
|
213
|
-
e.preventDefault();
|
|
214
|
-
}
|
|
215
|
-
utils.handleKeyboardSubmit(e, this.toggleSelectUl);
|
|
216
|
-
}, onKeyDown: (e) => {
|
|
217
|
-
return this.arrowsSelectNav(e, this.selectedItem ? this.itemsList.indexOf(this.selectedItem) : -1);
|
|
218
|
-
}, onInputChange: (e) => {
|
|
219
|
-
this.handleInputChange(e);
|
|
220
|
-
}, onKeyPress: (e) => {
|
|
221
|
-
if (!this.hasAutocomplete()) {
|
|
222
|
-
e.preventDefault();
|
|
223
|
-
this.scrollToLetter(String.fromCharCode(e.keyCode));
|
|
224
|
-
}
|
|
225
|
-
} }));
|
|
226
|
-
}
|
|
227
|
-
renderSelectUl() {
|
|
228
|
-
var _a;
|
|
229
|
-
return (index.h("div", { class: this.isOpen ? "open" : "closed", tabindex: "-1" }, index.h("div", { class: "ul-scroll-wrapper", tabindex: "-1" }, index.h("z-list", { role: "listbox", tabindex: this.disabled || this.readonly || !this.isOpen ? -1 : 0, id: this.htmlid, "aria-activedescendant": (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.id, "aria-multiselectable": false, class: {
|
|
230
|
-
disabled: this.disabled,
|
|
231
|
-
readonly: this.readonly,
|
|
232
|
-
filled: !!this.selectedItem,
|
|
233
|
-
[`input-${this.status}`]: !this.isOpen && !!this.status,
|
|
234
|
-
} }, this.renderSelectUlItems()))));
|
|
235
|
-
}
|
|
236
|
-
renderItem(item, key, lastItem) {
|
|
237
|
-
return (index.h("z-list-element", { clickable: !item.disabled, disabled: item.disabled, dividerType: lastItem ? index$1.ListDividerType.HEADER : index$1.ListDividerType.ELEMENT, role: "option", tabindex: item.disabled || !this.isOpen ? -1 : 0, "aria-selected": !!item.selected, id: `${this.htmlid}_${key}`, onClickItem: () => this.selectItem(item, true), onKeyDown: (e) => this.arrowsSelectNav(e, key) }, index.h("span", { class: { selected: !!item.selected }, innerHTML: item.name })));
|
|
238
|
-
}
|
|
239
|
-
renderSelectUlItems() {
|
|
240
|
-
if (!this.itemsList.length) {
|
|
241
|
-
return this.renderNoSearchResults();
|
|
242
|
-
}
|
|
243
|
-
if (this.hasGroupItems) {
|
|
244
|
-
return this.renderSelectGroupItems();
|
|
245
|
-
}
|
|
246
|
-
return this.itemsList.map((item, key, array) => {
|
|
247
|
-
const lastItem = array.length === key + 1;
|
|
248
|
-
return this.renderItem(item, key, lastItem);
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
renderSelectGroupItems() {
|
|
252
|
-
const newData = this.itemsList.reduce((group, item, index, array) => {
|
|
253
|
-
var _a;
|
|
254
|
-
const { category } = item;
|
|
255
|
-
const lastItem = array.length === index + 1;
|
|
256
|
-
const zListItem = this.renderItem(item, index, lastItem);
|
|
257
|
-
group[category] = (_a = group[category]) !== null && _a !== void 0 ? _a : [];
|
|
258
|
-
group[category].push(zListItem);
|
|
259
|
-
return group;
|
|
260
|
-
}, {});
|
|
261
|
-
return Object.entries(newData).map(([key, value]) => {
|
|
262
|
-
return (index.h("z-list-group", { "divider-type": index$1.ListDividerType.ELEMENT }, index.h("z-body", { class: "z-list-group-title", level: 3, slot: "header-title", variant: "semibold" }, key), value.map((item) => item)));
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
renderNoSearchResults() {
|
|
266
|
-
return (index.h("z-list-element", { color: "blue500", class: "no-results" }, index.h("z-icon", { name: "multiply-circle", fill: "blue500" }), this.noresultslabel));
|
|
267
|
-
}
|
|
268
|
-
renderMessage() {
|
|
269
|
-
if (utils.boolean(this.message) === false) {
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
return (index.h("z-input-message", { message: utils.boolean(this.message) === true ? undefined : this.message, status: this.status }));
|
|
273
|
-
}
|
|
274
|
-
render() {
|
|
275
|
-
return (index.h("div", { class: "select-wrapper" }, this.renderInput(), this.renderSelectUl(), this.renderMessage()));
|
|
276
|
-
}
|
|
277
|
-
get element() { return index.getElement(this); }
|
|
278
|
-
static get watchers() { return {
|
|
279
|
-
"items": ["watchItems"]
|
|
280
|
-
}; }
|
|
281
|
-
};
|
|
282
|
-
ZSelect.style = stylesCss;
|
|
283
|
-
|
|
284
|
-
exports.z_select = ZSelect;
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a2ca4b97.js';
|
|
2
|
-
import { I as ICONS } from './icons-85e529a3.js';
|
|
3
|
-
|
|
4
|
-
const stylesCss$1 = ":host{--app-header-content-max-width:100%;--app-header-height:auto;--app-header-typography-1-size:24px;--app-header-typography-2-size:28px;--app-header-typography-3-size:32px;--app-header-typography-4-size:36px;--app-header-typography-5-size:42px;--app-header-typography-6-size:48px;--app-header-typography-7-size:54px;--app-header-typography-8-size:60px;--app-header-typography-9-size:68px;--app-header-typography-10-size:76px;--app-header-typography-11-size:84px;--app-header-typography-12-size:92px;--app-header-typography-1-lineheight:1.33;--app-header-typography-2-lineheight:1.29;--app-header-typography-3-lineheight:1.25;--app-header-typography-4-lineheight:1.24;--app-header-typography-5-lineheight:1.24;--app-header-typography-6-lineheight:1.25;--app-header-typography-7-lineheight:1.2;--app-header-typography-8-lineheight:1.26;--app-header-typography-9-lineheight:1.24;--app-header-typography-10-lineheight:1.26;--app-header-typography-11-lineheight:1.2;--app-header-typography-12-lineheight:1.2;--app-header-typography-1-tracking:calc(-0.2 / 1em);--app-header-typography-2-tracking:calc(-0.4 / 1em);--app-header-typography-3-tracking:calc(-0.6 / 1em);--app-header-typography-4-tracking:calc(-0.8 / 1em);--app-header-typography-5-tracking:calc(-1 / 1em);--app-header-typography-6-tracking:calc(-1.2 / 1em);--app-header-typography-7-tracking:calc(-1.4 / 1em);--app-header-typography-8-tracking:calc(-1.6 / 1em);--app-header-typography-9-tracking:calc(-1.8 / 1em);--app-header-typography-10-tracking:calc(-2 / 1em);--app-header-typography-11-tracking:calc(-2.2 / 1em);--app-header-typography-12-tracking:calc(-2.4 / 1em);--app-header-top-offset:48px;--app-header-drawer-trigger-size:calc(var(--space-unit) * 4);--app-header-bg:var(--color-white);--app-header-stucked-bg:var(--color-white);--app-header-text-color:var(--gray800);--app-header-stucked-text-color:var(--gray800);display:block;color:var(--app-header-text-color)}:host,*{box-sizing:border-box}.heading-panel{position:relative;display:flex;width:100%;max-width:var(--app-header-content-max-width);height:var(--app-header-height);flex-direction:column;flex-grow:0;flex-shrink:0;align-items:baseline;justify-content:flex-start;padding:var(--grid-margin);margin:0 auto;background:var(--app-header-bg)}:host(:empty) .heading-panel{padding:0}.heading-title{display:flex;max-width:100%;flex-direction:row;align-items:center}:host(:not([menu-length=\"0\"])) .heading-subtitle{padding-left:calc(var(--app-header-drawer-trigger-size) + (var(--space-unit) * 1.5))}.heading-stuck{position:fixed;z-index:20;top:var(--app-header-top-offset);left:0;width:100%;max-width:100%;animation:slide-stuck-heading-in 250ms ease-out;background:var(--app-header-stucked-bg);box-shadow:var(--shadow-2);color:var(--app-header-stucked-text-color)}.heading-stuck-content{display:flex;max-width:var(--app-header-content-max-width);padding:var(--space-unit) var(--grid-margin);margin:0 auto}.heading-stuck .heading-title,.heading-stuck .heading-title>*,.heading-stuck .heading-title ::slotted([slot=\"stucked-title\"]){display:block;overflow:hidden;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.heading-stuck .heading-title>*,::slotted([slot=\"title\"]),::slotted([slot=\"stucked-title\"]){margin:0;font-family:\"IBM Plex Serif\", serif;font-size:var(--app-header-typography-3-size);font-weight:700;letter-spacing:var(--app-header-typography-3-tracking)}::slotted([slot=\"title\"]){line-height:1}::slotted([slot=\"subtitle\"]){margin:var(--space-unit) 0 0;font-family:var(--font-family-sans);font-size:20px;font-style:italic;font-weight:500;line-height:1.2}.heading-container{position:relative;z-index:1;display:flex;max-width:100%;flex-direction:column;align-items:flex-start;justify-content:flex-start;margin-right:auto}.menu-container{display:none;flex-flow:row wrap;align-items:baseline}.menu-container ::slotted([open]){position:relative;z-index:3}.menu-container ::slotted(*:not(:last-of-type)){margin-right:calc(var(--space-unit) * 4.5)}.drawer-trigger{padding:0;border:0;margin:0 calc(var(--space-unit) * 1.5) 0 0;appearance:none;background:none;border-radius:0;color:inherit;cursor:pointer}.drawer-trigger z-icon{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);fill:currentcolor}.drawer-container{position:fixed;z-index:100;top:var(--app-header-top-offset);left:0;width:100%;height:100%;pointer-events:none}.drawer-container .drawer-overlay{position:absolute;z-index:1;top:0;left:0;display:block;width:100%;height:100%;background:var(--gray900);opacity:0;pointer-events:none;transition:opacity 400ms ease-out}.drawer-panel{position:absolute;z-index:2;top:0;left:0;display:flex;width:375px;max-width:100%;height:100%;flex-direction:column;align-items:flex-start;padding:calc(var(--space-unit) * 2) var(--space-unit);background:var(--color-white);color:var(--gray800);pointer-events:none;transform:translate3d(-100%, 0, 0);transition:transform 400ms ease-out}.drawer-content{display:flex;overflow:auto;width:100%;flex:1 auto;flex-direction:column;padding:calc(var(--space-unit) * 0.5) var(--space-unit)}.drawer-content::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.drawer-content::-webkit-scrollbar-track{background-color:transparent}.drawer-content::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.drawer-content::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.drawer-content ::slotted(z-menu){width:100%}.drawer-content ::slotted(z-menu:not(:last-of-type)){margin-bottom:calc(var(--space-unit) * 2.5)}.drawer-close{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);padding:0;border:0;margin:0 0 calc(var(--space-unit) * 2.5) var(--space-unit);appearance:none;background:transparent;border-radius:0;color:inherit;cursor:pointer;fill:currentcolor;font-size:inherit;outline:none}.drawer-close:focus-visible{box-shadow:var(--shadow-focus-primary)}:host([drawer-open]) .drawer-container .drawer-overlay{opacity:0.7;pointer-events:all}:host([drawer-open]) .drawer-container .drawer-panel{pointer-events:all;transform:none}.hero-container{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%}:host([overlay]) .heading-panel .drawer-trigger z-icon,:host([overlay]) .heading-panel .heading-container,:host([overlay]) .heading-panel .menu-container{color:var(--color-white);fill:var(--color-white)}:host([overlay]) .heading-panel .menu-container ::slotted(z-menu:not([open])){--color-surface05:var(--color-white)}:host([overlay]) .hero-container::after{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%;background:var(--color-black);content:\"\";opacity:0.5}.hero-container img,.hero-container ::slotted(*){position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:top center;-webkit-user-drag:none}@media (min-width: 768px){:host(:not([flow=\"offcanvas\"])) .heading-subtitle{padding-left:0}:host(:not([flow=\"offcanvas\"])) .menu-container{display:flex}:host(:not([flow=\"offcanvas\"])) .heading-container .drawer-trigger{display:none}:host(:not([flow=\"offcanvas\"],[menu-length=\"0\"])) .heading-container:not(:last-child){margin-bottom:calc(var(--space-unit) * 3)}::slotted([slot=\"title\"]){font-size:var(--app-header-typography-6-size);letter-spacing:var(--app-header-typography-6-tracking)}::slotted([slot=\"subtitle\"]){margin-top:calc(var(--space-unit) * 1.5)}}@media (min-width: 1152px){:host(:not([flow=\"stack\"])) .heading-panel{flex-flow:row wrap}::slotted([slot=\"title\"]){margin-right:var(--grid-gutter);font-size:var(--app-header-typography-7-size);letter-spacing:var(--app-header-typography-7-tracking)}:host(:not([flow=\"offcanvas\"],[menu-length=\"0\"])) .heading-container:not(:last-child){margin-bottom:calc(var(--space-unit) * 2)}.menu-container{margin-top:var(--space-unit)}}@media (min-width: 1366px){::slotted([slot=\"title\"]){font-size:var(--app-header-typography-9-size);letter-spacing:var(--app-header-typography-9-tracking)}:host(:not([flow=\"offcanvas\"],[menu-length=\"0\"])) .heading-container:not(:last-child){margin-bottom:0}}@keyframes slide-stuck-heading-in{0%{transform:translate3d(0, -100%, 0)}100%{transform:none}}";
|
|
5
|
-
|
|
6
|
-
const SUPPORT_INTERSECTION_OBSERVER = typeof IntersectionObserver !== "undefined";
|
|
7
|
-
const ZAppHeader = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
this.sticking = createEvent(this, "sticking", 7);
|
|
11
|
-
/**
|
|
12
|
-
* Stuck mode for the header.
|
|
13
|
-
* You can programmatically set it using an IntersectionObserver.
|
|
14
|
-
* **Optional**
|
|
15
|
-
*/
|
|
16
|
-
this.stuck = false;
|
|
17
|
-
/**
|
|
18
|
-
* Should place an overlay over the hero image.
|
|
19
|
-
* Useful for legibility purpose.
|
|
20
|
-
* **Optional**
|
|
21
|
-
*/
|
|
22
|
-
this.overlay = false;
|
|
23
|
-
/**
|
|
24
|
-
* Control menu bar position in the header.
|
|
25
|
-
* - auto: the menu bar is positioned near the title
|
|
26
|
-
* - stack: the menu bar is positioned below the title
|
|
27
|
-
* - offcanvas: the menu bar is not displayed and a burger icon appears to open the offcanvas menu
|
|
28
|
-
*
|
|
29
|
-
* **Optional**
|
|
30
|
-
*/
|
|
31
|
-
this.flow = "auto";
|
|
32
|
-
/**
|
|
33
|
-
* The opening state of the drawer.
|
|
34
|
-
*/
|
|
35
|
-
this.drawerOpen = false;
|
|
36
|
-
/**
|
|
37
|
-
* The stuck state of the bar.
|
|
38
|
-
*/
|
|
39
|
-
this._stuck = false;
|
|
40
|
-
this.observer = SUPPORT_INTERSECTION_OBSERVER &&
|
|
41
|
-
new IntersectionObserver(([entry]) => {
|
|
42
|
-
this._stuck = !entry.isIntersecting;
|
|
43
|
-
}, {
|
|
44
|
-
threshold: 0.5,
|
|
45
|
-
});
|
|
46
|
-
this.openDrawer = this.openDrawer.bind(this);
|
|
47
|
-
this.closeDrawer = this.closeDrawer.bind(this);
|
|
48
|
-
this.collectMenuElements.bind(this);
|
|
49
|
-
}
|
|
50
|
-
emitStickingEvent() {
|
|
51
|
-
this.sticking.emit(this._stuck);
|
|
52
|
-
}
|
|
53
|
-
componentDidLoad() {
|
|
54
|
-
this.collectMenuElements();
|
|
55
|
-
this.onStuckMode();
|
|
56
|
-
}
|
|
57
|
-
get title() {
|
|
58
|
-
const titleElement = this.hostElement.querySelector('[slot="title"]');
|
|
59
|
-
if (titleElement === null) {
|
|
60
|
-
return "";
|
|
61
|
-
}
|
|
62
|
-
return titleElement.textContent.trim();
|
|
63
|
-
}
|
|
64
|
-
get scrollParent() {
|
|
65
|
-
const parent = this.hostElement.offsetParent;
|
|
66
|
-
if (parent === document.body || parent === document.documentElement) {
|
|
67
|
-
return window;
|
|
68
|
-
}
|
|
69
|
-
return parent;
|
|
70
|
-
}
|
|
71
|
-
collectMenuElements() {
|
|
72
|
-
const menuElements = (this.menuElements = this.hostElement.querySelectorAll('[slot="menu"]'));
|
|
73
|
-
this.menuLength = menuElements.length;
|
|
74
|
-
this.setMenuFloatingMode();
|
|
75
|
-
}
|
|
76
|
-
onStuckMode() {
|
|
77
|
-
if (this.stuck) {
|
|
78
|
-
this.enableStuckObserver();
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
this.disableStuckMode();
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
enableStuckObserver() {
|
|
85
|
-
if (this.observer) {
|
|
86
|
-
this.observer.observe(this.container);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
disableStuckMode() {
|
|
90
|
-
this._stuck = false;
|
|
91
|
-
if (this.observer) {
|
|
92
|
-
this.observer.unobserve(this.container);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
onStuck() {
|
|
96
|
-
const scrollParent = this.scrollParent;
|
|
97
|
-
if (!scrollParent) {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
this.emitStickingEvent();
|
|
101
|
-
}
|
|
102
|
-
setMenuFloatingMode() {
|
|
103
|
-
if (this.menuElements.length === 0) {
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
const elements = this.menuElements;
|
|
107
|
-
for (let i = 0, len = elements.length; i < len; i++) {
|
|
108
|
-
elements[i].open = false;
|
|
109
|
-
elements[i].floating = !this.drawerOpen;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
render() {
|
|
113
|
-
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._stuck && (h("div", { class: "heading-stuck" }, h("div", { class: "heading-stuck-content" }, 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)))))));
|
|
114
|
-
}
|
|
115
|
-
openDrawer() {
|
|
116
|
-
this.drawerOpen = true;
|
|
117
|
-
}
|
|
118
|
-
closeDrawer() {
|
|
119
|
-
this.drawerOpen = false;
|
|
120
|
-
}
|
|
121
|
-
get hostElement() { return getElement(this); }
|
|
122
|
-
static get watchers() { return {
|
|
123
|
-
"stuck": ["onStuckMode"],
|
|
124
|
-
"_stuck": ["onStuck"],
|
|
125
|
-
"drawerOpen": ["setMenuFloatingMode"]
|
|
126
|
-
}; }
|
|
127
|
-
};
|
|
128
|
-
ZAppHeader.style = stylesCss$1;
|
|
129
|
-
|
|
130
|
-
const stylesCss = ":host{margin-right:var(--z-icon-right-margin, 0);margin-left:var(--z-icon-left-margin, 0);line-height:0;vertical-align:middle}:host svg:not([width]){width:var(--z-icon-width, 18px)}:host svg:not([height]){height:var(--z-icon-height, 18px)}";
|
|
131
|
-
|
|
132
|
-
const ZIcon = class {
|
|
133
|
-
constructor(hostRef) {
|
|
134
|
-
registerInstance(this, hostRef);
|
|
135
|
-
}
|
|
136
|
-
selectPathOrPolygon(iconValue) {
|
|
137
|
-
if (iconValue === null || iconValue === void 0 ? void 0 : iconValue.startsWith("M")) {
|
|
138
|
-
return h("path", { d: ICONS[this.name] });
|
|
139
|
-
}
|
|
140
|
-
return h("polygon", { points: ICONS[this.name] });
|
|
141
|
-
}
|
|
142
|
-
render() {
|
|
143
|
-
return (h(Host, { "aria-hidden": "true" }, h("svg", { viewBox: "0 0 1000 1000", width: this.width, height: this.height, id: this.iconid, fill: this.fill ? `var(--${this.fill})` : "" }, this.selectPathOrPolygon(ICONS[this.name]))));
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
ZIcon.style = stylesCss;
|
|
147
|
-
|
|
148
|
-
export { ZAppHeader as z_app_header, ZIcon as z_icon };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement, H as Host } from './index-a2ca4b97.js';
|
|
2
|
-
|
|
3
|
-
const ZBody = class {
|
|
4
|
-
constructor(hostRef) {
|
|
5
|
-
registerInstance(this, hostRef);
|
|
6
|
-
/** Font weight variant */
|
|
7
|
-
this.variant = "regular";
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
return (h("z-typography", { tabIndex: 0, component: this.component || "span", level: `b${this.level}`, variant: this.variant }, h("slot", null)));
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const stylesCss = ":host>*{margin:0;font-family:var(--dashboard-font)}:host(.regular)>*{font-weight:var(--font-rg)}:host(.semibold)>*{font-weight:600}:host(.light)>*{font-weight:300}:host(.h1)>*{font-size:32px;line-height:40px}:host(.h2)>*{font-size:28px;line-height:36px}:host(.h3)>*{font-size:24px;line-height:32px}:host(.h4)>*{font-size:20px;line-height:28px}:host(.b1)>*{font-size:20px;line-height:28px}:host(.b2)>*{font-size:18px;line-height:28px}:host(.b3)>*{font-size:16px;line-height:24px}:host(.b4)>*{font-size:14px;line-height:20px}:host(.b5)>*{font-size:12px;line-height:16px}:host(:focus-visible){outline:none}";
|
|
15
|
-
|
|
16
|
-
const ZTypography = class {
|
|
17
|
-
constructor(hostRef) {
|
|
18
|
-
registerInstance(this, hostRef);
|
|
19
|
-
/** Font weight variant */
|
|
20
|
-
this.variant = "regular";
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
const el = document.createElement(this.component || "span");
|
|
24
|
-
el.innerHTML = `<slot />`;
|
|
25
|
-
this.hostElement.shadowRoot.appendChild(el);
|
|
26
|
-
return (h(Host, { class: {
|
|
27
|
-
[this.level]: Boolean(this.level),
|
|
28
|
-
regular: this.variant === "regular",
|
|
29
|
-
semibold: this.variant === "semibold",
|
|
30
|
-
light: this.variant === "light",
|
|
31
|
-
} }));
|
|
32
|
-
}
|
|
33
|
-
get hostElement() { return getElement(this); }
|
|
34
|
-
};
|
|
35
|
-
ZTypography.style = stylesCss;
|
|
36
|
-
|
|
37
|
-
export { ZBody as z_body, ZTypography as z_typography };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-a2ca4b97.js';
|
|
2
|
-
import { D as DividerSize, f as DividerOrientation } from './index-968a240f.js';
|
|
3
|
-
|
|
4
|
-
const stylesCss = ".sc-z-divider-h{display:block;padding:0;margin:0}.divider-horizontal.sc-z-divider-h{width:100%}.divider-vertical.sc-z-divider-h{height:100%}.divider-small.divider-horizontal.sc-z-divider-h{height:var(--border-size-small)}.divider-medium.divider-horizontal.sc-z-divider-h{height:var(--border-size-medium)}.divider-large.divider-horizontal.sc-z-divider-h{height:var(--border-size-large)}.divider-small.divider-vertical.sc-z-divider-h{width:var(--border-size-small)}.divider-medium.divider-vertical.sc-z-divider-h{width:var(--border-size-medium)}.divider-large.divider-vertical.sc-z-divider-h{width:var(--border-size-large)}";
|
|
5
|
-
|
|
6
|
-
const ZDivider = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
/** [optional] Divider size */
|
|
10
|
-
this.size = DividerSize.SMALL;
|
|
11
|
-
/** [optional] Divider color */
|
|
12
|
-
this.color = "gray200";
|
|
13
|
-
/** [optional] Divider orintation */
|
|
14
|
-
this.orientation = DividerOrientation.HORIZONTAL;
|
|
15
|
-
}
|
|
16
|
-
render() {
|
|
17
|
-
return (h(Host, { class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
ZDivider.style = stylesCss;
|
|
21
|
-
|
|
22
|
-
export { ZDivider as z_divider };
|