@zanichelli/delta_share 2.0.14 → 3.0.1
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/wc/cjs/delta_share.cjs.js +1 -1
- package/dist/wc/cjs/license-activation_11.cjs.entry.js +40 -54
- package/dist/wc/cjs/loader.cjs.js +1 -1
- package/dist/wc/cjs/z-body.cjs.entry.js +18 -0
- package/dist/wc/cjs/z-combobox.cjs.entry.js +3 -3
- package/dist/wc/cjs/{z-dragdrop-area_2.cjs.entry.js → z-dragdrop-area.cjs.entry.js} +1 -13
- package/dist/wc/cjs/z-file-upload.cjs.entry.js +11 -11
- package/dist/wc/cjs/z-heading.cjs.entry.js +18 -0
- package/dist/wc/cjs/z-select.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-table-empty-box.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-table.cjs.entry.js +1 -1
- package/dist/wc/cjs/{z-body_2.cjs.entry.js → z-typography.cjs.entry.js} +0 -12
- package/dist/wc/collection/components/license-activation/license-activation.js +4 -9
- package/dist/wc/custom-elements/index.js +59 -73
- package/dist/wc/delta_share/delta_share.esm.js +1 -1
- package/dist/wc/delta_share/p-0667e9cd.entry.js +1 -0
- package/dist/wc/delta_share/p-1c2d7c30.entry.js +1 -0
- package/dist/wc/delta_share/p-578f4d61.entry.js +1 -0
- package/dist/wc/delta_share/p-90fdd23f.entry.js +1 -0
- package/dist/wc/delta_share/p-99ffd017.entry.js +1 -0
- package/dist/wc/delta_share/p-be7f8da0.entry.js +1 -0
- package/dist/wc/delta_share/{p-302c022a.entry.js → p-c229c90e.entry.js} +1 -1
- package/dist/wc/delta_share/p-d586adfc.entry.js +1 -0
- package/dist/wc/delta_share/p-ddab353c.entry.js +1 -0
- package/dist/wc/delta_share/p-e37c0a29.entry.js +3 -0
- package/dist/wc/esm/delta_share.js +1 -1
- package/dist/wc/esm/license-activation_11.entry.js +40 -54
- package/dist/wc/esm/loader.js +1 -1
- package/dist/wc/esm/z-body.entry.js +14 -0
- package/dist/wc/esm/z-combobox.entry.js +3 -3
- package/dist/wc/esm/{z-dragdrop-area_2.entry.js → z-dragdrop-area.entry.js} +2 -13
- package/dist/wc/esm/z-file-upload.entry.js +11 -11
- package/dist/wc/esm/z-heading.entry.js +14 -0
- package/dist/wc/esm/z-select.entry.js +1 -1
- package/dist/wc/esm/z-table-empty-box.entry.js +1 -1
- package/dist/wc/esm/z-table.entry.js +1 -1
- package/dist/wc/esm/{z-body_2.entry.js → z-typography.entry.js} +1 -12
- package/package.json +1 -1
- package/dist/wc/delta_share/p-0cee6faa.entry.js +0 -1
- package/dist/wc/delta_share/p-48384226.entry.js +0 -1
- package/dist/wc/delta_share/p-982608ce.entry.js +0 -1
- package/dist/wc/delta_share/p-c2aef9f6.entry.js +0 -1
- package/dist/wc/delta_share/p-c41efa42.entry.js +0 -3
- package/dist/wc/delta_share/p-d2715819.entry.js +0 -1
- package/dist/wc/delta_share/p-f0453d1c.entry.js +0 -1
|
@@ -19,7 +19,7 @@ const ZTableEmptyBox = class {
|
|
|
19
19
|
this.hasCta2Slot = !!this.hostElement.querySelector('[slot="cta2"]');
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (index.h(index.Host, null, index.h("
|
|
22
|
+
return (index.h(index.Host, null, index.h("span", { class: "body-3-sb" }, this.message), index.h("br", null), !!this.subtitle && index.h("span", { class: "body-4" }, this.subtitle), (!!this.hasCta1Slot || !!this.hasCta2Slot) && (index.h("div", { class: {
|
|
23
23
|
"cta": true,
|
|
24
24
|
"has-2-cta": !!this.hasCta1Slot && !!this.hasCta2Slot,
|
|
25
25
|
} }, index.h("slot", { name: "cta1" }), index.h("slot", { name: "cta2" })))));
|
|
@@ -50,7 +50,7 @@ const ZTable = class {
|
|
|
50
50
|
}
|
|
51
51
|
renderError(tableClass) {
|
|
52
52
|
const minHeight = this.lines ? `calc(40px * ${this.lines})` : "auto";
|
|
53
|
-
return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" })), index.h("z-table-error", null, index.h("div", { class: "error-content", style: { minHeight } }, index.h("slot", { name: "error-image" }), index.h("div", { class: "text" }, index.h("
|
|
53
|
+
return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" })), index.h("z-table-error", null, index.h("div", { class: "error-content", style: { minHeight } }, index.h("slot", { name: "error-image" }), index.h("div", { class: "text" }, index.h("span", { class: "body-3-sb error-message" }, this.errorMessage), index.h("slot", { name: "error-action" }))))));
|
|
54
54
|
}
|
|
55
55
|
renderEmpty(tableClass) {
|
|
56
56
|
const buttonSize = this.isMobile ? index$1.ButtonSize.SMALL : index$1.ButtonSize.BIG;
|
|
@@ -4,17 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-9ca7d5e5.js');
|
|
6
6
|
|
|
7
|
-
const ZBody = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
/** Font weight variant */
|
|
11
|
-
this.variant = "regular";
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return (index.h("z-typography", { tabIndex: 0, component: this.component || "span", level: `b${this.level}`, variant: this.variant }, index.h("slot", null)));
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
7
|
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}";
|
|
19
8
|
|
|
20
9
|
const ZTypography = class {
|
|
@@ -38,5 +27,4 @@ const ZTypography = class {
|
|
|
38
27
|
};
|
|
39
28
|
ZTypography.style = stylesCss;
|
|
40
29
|
|
|
41
|
-
exports.z_body = ZBody;
|
|
42
30
|
exports.z_typography = ZTypography;
|
|
@@ -4,7 +4,7 @@ import state from "../../store";
|
|
|
4
4
|
import { getCms } from "../../store/CMS";
|
|
5
5
|
import { Env } from "../../utils/env";
|
|
6
6
|
import { post } from "../../utils/request";
|
|
7
|
-
import { mobileBreakpoint, handleResponseError, licenseInitialState,
|
|
7
|
+
import { mobileBreakpoint, handleResponseError, licenseInitialState, sampleCode, } from "../../utils/utils";
|
|
8
8
|
export class LicenseActivation {
|
|
9
9
|
constructor() {
|
|
10
10
|
/** env: values: "local" | "devmy" | "testmy" | "demomy" | "prod" */
|
|
@@ -60,14 +60,9 @@ export class LicenseActivation {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
async activateLicense() {
|
|
63
|
-
|
|
64
|
-
const myzToken = this.environment.MYZ_TOKEN_KEY;
|
|
65
|
-
const MYZ_TOKEN = (_a = this.environment.MYZ_TOKEN_KEY) === null || _a === void 0 ? void 0 : _a.replace(/-/g, "_");
|
|
66
|
-
const url = `${this.environment.API_V3_URL}/dashboard/code`;
|
|
63
|
+
const url = `${this.environment.API_V3_URL}/licenses/real`;
|
|
67
64
|
this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationApiLoading: true });
|
|
68
|
-
const
|
|
69
|
-
[myzToken]: getCookie(MYZ_TOKEN),
|
|
70
|
-
};
|
|
65
|
+
const requestOpt = { withCredentials: true };
|
|
71
66
|
const sampleCodeError = state.cms["newdashboard.licenseActivation.error.sampleCodeMessage"];
|
|
72
67
|
// INFO: controllo che il codice inserito non sia quello di esempio
|
|
73
68
|
if (this.licenseActivationState.licenseActivationCode === sampleCode) {
|
|
@@ -76,7 +71,7 @@ export class LicenseActivation {
|
|
|
76
71
|
this.handleLicenseModalOpen(false);
|
|
77
72
|
}
|
|
78
73
|
try {
|
|
79
|
-
const response = await post(url, { code: this.licenseActivationState.licenseActivationCode },
|
|
74
|
+
const response = await post(url, { code: this.licenseActivationState.licenseActivationCode }, {}, requestOpt);
|
|
80
75
|
const responseData = await response.json();
|
|
81
76
|
this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationApiData: Object.assign(Object.assign({}, responseData), { code: this.licenseActivationState.licenseActivationCode }), licenseActivationApiLoading: false, licenseActivationApiLoaded: true, licenseActivationStatus: response.ok ? "success" : "fail", licenseActivationMessage: response.ok
|
|
82
77
|
? responseData.message
|
|
@@ -1655,20 +1655,6 @@ function manageMarkupContent(inputMarkup) {
|
|
|
1655
1655
|
}
|
|
1656
1656
|
return purify.sanitize(unescape(inputMarkup), { ADD_ATTR: ["target"] });
|
|
1657
1657
|
}
|
|
1658
|
-
function getCookie(cname) {
|
|
1659
|
-
const name = cname + "=";
|
|
1660
|
-
const decodedCookie = decodeURIComponent(document.cookie);
|
|
1661
|
-
const ca = decodedCookie.split(";");
|
|
1662
|
-
for (let c of ca) {
|
|
1663
|
-
while (c.charAt(0) === " ") {
|
|
1664
|
-
c = c.substring(1);
|
|
1665
|
-
}
|
|
1666
|
-
if (c.indexOf(name) === 0) {
|
|
1667
|
-
return c.substring(name.length, c.length);
|
|
1668
|
-
}
|
|
1669
|
-
}
|
|
1670
|
-
return "";
|
|
1671
|
-
}
|
|
1672
1658
|
const licenseActivationErrors = {
|
|
1673
1659
|
CODE_MISSING: -100,
|
|
1674
1660
|
CODE_WRONG: -101,
|
|
@@ -1812,14 +1798,9 @@ const LicenseActivation$1 = class extends HTMLElement {
|
|
|
1812
1798
|
}
|
|
1813
1799
|
}
|
|
1814
1800
|
async activateLicense() {
|
|
1815
|
-
|
|
1816
|
-
const myzToken = this.environment.MYZ_TOKEN_KEY;
|
|
1817
|
-
const MYZ_TOKEN = (_a = this.environment.MYZ_TOKEN_KEY) === null || _a === void 0 ? void 0 : _a.replace(/-/g, "_");
|
|
1818
|
-
const url = `${this.environment.API_V3_URL}/dashboard/code`;
|
|
1801
|
+
const url = `${this.environment.API_V3_URL}/licenses/real`;
|
|
1819
1802
|
this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationApiLoading: true });
|
|
1820
|
-
const
|
|
1821
|
-
[myzToken]: getCookie(MYZ_TOKEN),
|
|
1822
|
-
};
|
|
1803
|
+
const requestOpt = { withCredentials: true };
|
|
1823
1804
|
const sampleCodeError = state.cms["newdashboard.licenseActivation.error.sampleCodeMessage"];
|
|
1824
1805
|
// INFO: controllo che il codice inserito non sia quello di esempio
|
|
1825
1806
|
if (this.licenseActivationState.licenseActivationCode === sampleCode) {
|
|
@@ -1828,7 +1809,7 @@ const LicenseActivation$1 = class extends HTMLElement {
|
|
|
1828
1809
|
this.handleLicenseModalOpen(false);
|
|
1829
1810
|
}
|
|
1830
1811
|
try {
|
|
1831
|
-
const response = await post(url, { code: this.licenseActivationState.licenseActivationCode },
|
|
1812
|
+
const response = await post(url, { code: this.licenseActivationState.licenseActivationCode }, {}, requestOpt);
|
|
1832
1813
|
const responseData = await response.json();
|
|
1833
1814
|
this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationApiData: Object.assign(Object.assign({}, responseData), { code: this.licenseActivationState.licenseActivationCode }), licenseActivationApiLoading: false, licenseActivationApiLoaded: true, licenseActivationStatus: response.ok ? "success" : "fail", licenseActivationMessage: response.ok
|
|
1834
1815
|
? responseData.message
|
|
@@ -3112,7 +3093,7 @@ const ZChip$1 = class extends HTMLElement {
|
|
|
3112
3093
|
static get style() { return stylesCss$1a; }
|
|
3113
3094
|
};
|
|
3114
3095
|
|
|
3115
|
-
const stylesCss$19 = ":host{display:block}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--bg-grey-700);margin:0;background-color:var(--bg-white);border-radius:var(--border-radius-small);cursor:pointer}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--gray700);outline-offset:-2px}:host>div.open>div.header:focus:focus-visible{box-shadow:none}:host>div>div.header:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>
|
|
3096
|
+
const stylesCss$19 = ":host{display:block}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--bg-grey-700);margin:0;background-color:var(--bg-white);border-radius:var(--border-radius-small);cursor:pointer}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--gray700);outline-offset:-2px}:host>div.open>div.header:focus:focus-visible{box-shadow:none}:host>div>div.header:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>p.body-3{padding:var(--space-unit) 0;margin:0;color:var(--text-grey-800)}:host>div>.header>p.body-3>span{font-weight:var(--font-sb)}:host>div>.header>z-icon{fill:var(--text-grey-800);transform:rotate(360deg);transition:all 200ms linear}:host>div.open>.header{border:var(--border-size-small) solid var(--blue500);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}:host>div.disabled{pointer-events:none}:host>div.disabled .header{border-color:var(--color-disabled01);fill:var(--color-disabled01)}:host>div.disabled .header>p.body-3{color:var(--text-grey-700)}:host>div.disabled .header>z-icon:last-child{fill:var(--color-disabled01)}:host>div.open>.header>z-icon{fill:var(--text-grey-800);transform:rotate(180deg);transition:all 200ms linear}:host>div.open>div.open-combo-data{position:relative;z-index:12;padding:var(--space-unit) calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--gray200);border-top:0;background-color:var(--bg-white);border-radius:0}:host>div.open>div.open-combo-data>div{overflow:auto;max-height:235px;padding:0;scrollbar-color:var(--myz-blue) var(--gray200);scrollbar-width:thin}:host>div.open>div.open-combo-data>z-input{width:100%;margin-bottom:calc(var(--space-unit) * 2)}:host>div.open>div.open-combo-data>div>ul{max-height:235px;padding:0 3px;margin:0}::-webkit-scrollbar{width:10px;background:linear-gradient(90deg, var(--bg-white) 2px, var(--bg-grey-200) 4px, var(--bg-white) 8px);border-radius:var(--border-radius)}::-webkit-scrollbar-thumb{width:10px;background-color:var(--myz-blue);border-radius:var(--border-radius)}:host>div.open>z-input{position:relative;z-index:1;width:238px;margin:0 calc(var(--space-unit) * 2);color:var(--myz-blue)}:host>div.open>div.open-combo-data>div.search{overflow:hidden;max-height:auto;margin-top:0;box-shadow:1px 1px 4px 2px rgb(217 222 227 / 50%)}:host>div.open>div.open-combo-data>div.search>ul{overflow:auto;max-height:180px;padding:var(--space-unit) calc(var(--space-unit) * 2);scrollbar-color:var(--myz-blue) var(--bg-grey-200);scrollbar-width:thin}:host>div.open>div.open-combo-data>div.search>div{display:flex;justify-content:center}:host>div.open>div.open-combo-data>div.search>div>a{display:inline-block;height:44px;color:var(--myz-blue);cursor:pointer;font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-sb);line-height:44px;text-align:center;text-transform:uppercase}:host>div.open>div.open-combo-data>div.check-all-wrapper{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--gray800);margin-bottom:var(--space-unit);text-align:left}";
|
|
3116
3097
|
|
|
3117
3098
|
const ZCombobox$1 = class extends HTMLElement {
|
|
3118
3099
|
constructor() {
|
|
@@ -3224,7 +3205,7 @@ const ZCombobox$1 = class extends HTMLElement {
|
|
|
3224
3205
|
if (ev.keyCode === KeyboardKeyCode.SPACE) {
|
|
3225
3206
|
ev.preventDefault();
|
|
3226
3207
|
}
|
|
3227
|
-
}, onKeyUp: (ev) => handleKeyboardSubmit(ev, this.toggleComboBox), role: "button", tabindex: 0 }, h("
|
|
3208
|
+
}, onKeyUp: (ev) => handleKeyboardSubmit(ev, this.toggleComboBox), role: "button", tabindex: 0 }, h("p", { class: "body-3" }, this.label, h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), h("z-icon", { name: "caret-down", width: 18, height: 18 })));
|
|
3228
3209
|
}
|
|
3229
3210
|
renderContent() {
|
|
3230
3211
|
if (!this.isopen) {
|
|
@@ -3265,7 +3246,7 @@ const ZCombobox$1 = class extends HTMLElement {
|
|
|
3265
3246
|
return group;
|
|
3266
3247
|
}, {});
|
|
3267
3248
|
const listGroups = Object.entries(newData).map(([key, value]) => {
|
|
3268
|
-
return (h("z-list-group", { "divider-type": ListDividerType.ELEMENT }, h("
|
|
3249
|
+
return (h("z-list-group", { "divider-type": ListDividerType.ELEMENT }, h("span", { class: "body-3-sb z-list-group-title", slot: "header-title" }, key), value.map((item) => item)));
|
|
3269
3250
|
});
|
|
3270
3251
|
return h("ul", null, listGroups);
|
|
3271
3252
|
}
|
|
@@ -6573,7 +6554,7 @@ const ZDragdropArea$1 = class extends HTMLElement {
|
|
|
6573
6554
|
this.fileDropped.emit(files);
|
|
6574
6555
|
}
|
|
6575
6556
|
renderOnDragOverMessage() {
|
|
6576
|
-
return (h("div", { class: "dragover-container" }, h("div", { class: "dragover-message" }, h("
|
|
6557
|
+
return (h("div", { class: "dragover-container" }, h("div", { class: "dragover-message" }, h("span", { class: "body-2-sb" }, "Rilascia i file in questa area per allegarli."))));
|
|
6577
6558
|
}
|
|
6578
6559
|
render() {
|
|
6579
6560
|
return (h("div", { tabIndex: 0, ref: (val) => (this.dragDropContainer = val), class: "dragdrop", onDragOver: (e) => {
|
|
@@ -6632,7 +6613,7 @@ const ZFile$1 = class extends HTMLElement {
|
|
|
6632
6613
|
static get style() { return stylesCss$13; }
|
|
6633
6614
|
};
|
|
6634
6615
|
|
|
6635
|
-
const stylesCss$12 = ":host{color:var(--color-text01);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.container{display:flex;flex-direction:column}:host .modal-wrapper{display:flex;align-items:center;justify-content:center}:host .modal-wrapper>.files-wrapper{display:flex;flex-direction:column;margin:calc(var(--space-unit) * 4);gap:var(--space-unit)}:host .text-container{display:flex;flex-direction:column;margin:auto}:host .text-container
|
|
6616
|
+
const stylesCss$12 = ":host{color:var(--color-text01);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.container{display:flex;flex-direction:column}:host .modal-wrapper{display:flex;align-items:center;justify-content:center}:host .modal-wrapper>.files-wrapper{display:flex;flex-direction:column;margin:calc(var(--space-unit) * 4);gap:var(--space-unit)}:host .text-container{display:flex;flex-direction:column;margin:auto}:host .text-container .body-1{text-align:center}:host .text-container .upload-link{color:var(--color-link-primary);cursor:pointer}:host .text-container .upload-link-text{margin-bottom:var(--space-unit)}input#file-elem{display:none}#title{display:inline-block;margin-bottom:var(--space-unit)}:host>.container>z-button{display:inline-block;margin-top:calc(var(--space-unit) * 3)}:host>.container>.files-container.hidden{display:none}:host>.container>.files-container>.heading-4-sb{display:inline-block;margin:calc(var(--space-unit) * 3) 0}:host>.container>.files-container>.files-wrapper{display:flex;flex-wrap:wrap;column-gap:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}:host>.container>.files-container>z-divider{margin-top:calc(var(--space-unit) * 3);margin-bottom:0}@media only screen and (min-width: 768px){:host>.container>z-button{align-self:flex-start}}";
|
|
6636
6617
|
|
|
6637
6618
|
const ZFileUpload$1 = class extends HTMLElement {
|
|
6638
6619
|
constructor() {
|
|
@@ -6729,10 +6710,10 @@ const ZFileUpload$1 = class extends HTMLElement {
|
|
|
6729
6710
|
return errors;
|
|
6730
6711
|
}
|
|
6731
6712
|
renderTitle() {
|
|
6732
|
-
return (h("
|
|
6713
|
+
return (h("h2", { class: "heading-2-sb", id: "title" }, this.mainTitle));
|
|
6733
6714
|
}
|
|
6734
|
-
renderDescription(
|
|
6735
|
-
return
|
|
6715
|
+
renderDescription(cssClass) {
|
|
6716
|
+
return h("span", { class: cssClass }, this.description);
|
|
6736
6717
|
}
|
|
6737
6718
|
renderAllowedFileExtensions() {
|
|
6738
6719
|
let fileFormatString = "";
|
|
@@ -6748,10 +6729,10 @@ const ZFileUpload$1 = class extends HTMLElement {
|
|
|
6748
6729
|
fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;
|
|
6749
6730
|
}
|
|
6750
6731
|
const finalString = `Puoi allegare file${fileFormatString}${fileWeightString}.`;
|
|
6751
|
-
return h("
|
|
6732
|
+
return h("span", { class: "body-3" }, fileFormatString || fileWeightString ? finalString : null);
|
|
6752
6733
|
}
|
|
6753
6734
|
renderFileSection() {
|
|
6754
|
-
return (h("section", { class: `files-container ${!this.files.length ? "hidden" : ""}` }, h("
|
|
6735
|
+
return (h("section", { class: `files-container ${!this.files.length ? "hidden" : ""}` }, h("h4", { class: "heading-4-sb" }, "File appena caricati"), h("div", { class: "files-wrapper" }, h("slot", { name: "files" })), h("z-divider", { size: DividerSize.MEDIUM })));
|
|
6755
6736
|
}
|
|
6756
6737
|
renderInput() {
|
|
6757
6738
|
return (h("input", Object.assign({}, this.inputAttributes, { onChange: () => this.fileInputHandler(), accept: this.acceptedFormat, ref: (val) => (this.input = val) })));
|
|
@@ -6770,17 +6751,17 @@ const ZFileUpload$1 = class extends HTMLElement {
|
|
|
6770
6751
|
renderUploadLink() {
|
|
6771
6752
|
return [
|
|
6772
6753
|
this.renderInput(),
|
|
6773
|
-
h("
|
|
6754
|
+
h("span", { class: "body-1 upload-link-text" }, "Trascinalo qui o", " ", h("span", { tabIndex: 0, class: "body-1-sb upload-link", onClick: () => this.input.click(), onKeyPress: (e) => {
|
|
6774
6755
|
if (e.code == "Space" || e.code == "Enter") {
|
|
6775
6756
|
e.preventDefault();
|
|
6776
6757
|
this.input.click();
|
|
6777
6758
|
}
|
|
6778
|
-
},
|
|
6759
|
+
}, ref: (val) => (this.uploadLink = val) }, "caricalo"), " ", "dal tuo computer"),
|
|
6779
6760
|
];
|
|
6780
6761
|
}
|
|
6781
6762
|
renderDefaultMode() {
|
|
6782
6763
|
return [
|
|
6783
|
-
this.renderDescription("
|
|
6764
|
+
this.renderDescription("body-3-sb"),
|
|
6784
6765
|
this.renderAllowedFileExtensions(),
|
|
6785
6766
|
this.renderFileSection(),
|
|
6786
6767
|
this.renderUploadButton(),
|
|
@@ -6789,7 +6770,7 @@ const ZFileUpload$1 = class extends HTMLElement {
|
|
|
6789
6770
|
renderDragDropMode() {
|
|
6790
6771
|
return [
|
|
6791
6772
|
this.renderFileSection(),
|
|
6792
|
-
h("z-dragdrop-area", null, h("div", { class: "text-container" }, this.renderDescription("
|
|
6773
|
+
h("z-dragdrop-area", null, h("div", { class: "text-container" }, this.renderDescription("body-1"), this.renderUploadLink(), this.renderAllowedFileExtensions())),
|
|
6793
6774
|
];
|
|
6794
6775
|
}
|
|
6795
6776
|
formatErrorString(key, value) {
|
|
@@ -6799,7 +6780,7 @@ const ZFileUpload$1 = class extends HTMLElement {
|
|
|
6799
6780
|
}
|
|
6800
6781
|
handleErrorModalContent() {
|
|
6801
6782
|
return (h("div", { slot: "modalContent" }, h("div", { class: "modal-wrapper" }, h("div", { class: "files" }, Array.from(this.invalidFiles).map(([key, value]) => {
|
|
6802
|
-
return
|
|
6783
|
+
return h("span", { class: "body-3" }, this.formatErrorString(key, value));
|
|
6803
6784
|
})))));
|
|
6804
6785
|
}
|
|
6805
6786
|
render() {
|
|
@@ -8471,8 +8452,9 @@ const ZMessagesPocket$1 = class extends HTMLElement {
|
|
|
8471
8452
|
static get style() { return stylesCss$Q; }
|
|
8472
8453
|
};
|
|
8473
8454
|
|
|
8474
|
-
const stylesCss$P = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>dialog{padding:0;border:none
|
|
8455
|
+
const stylesCss$P = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>dialog{padding:0;border:none}:host>dialog::backdrop{display:none}.modal-background{position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--gray900);opacity:0.7}.modal-container{z-index:1010;display:flex;overflow:-moz-scrollbars-none;overflow:hidden;width:100%;height:100vh;flex-direction:column}.modal-container>header{display:flex;flex-flow:row nowrap;align-items:flex-start;justify-content:flex-start;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);background:var(--color-surface02)}.modal-container>header button{padding:0;border:none;margin:0;margin-left:auto;background:transparent;cursor:pointer}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 2.5);--z-icon-height:calc(var(--space-unit) * 2.5);display:flex;fill:var(--color-icon01)}.modal-container>header>div{display:flex;width:100%;flex-direction:column;margin-right:calc(var(--space-unit) * 2)}.modal-container>header h1,.modal-container>header h2{padding:0;margin:0;color:var(--color-text01);font-weight:var(--font-rg)}.modal-container>header h1{font-size:var(--font-size-5);letter-spacing:0;line-height:1.4}.modal-container>header h2{font-size:var(--font-size-3);letter-spacing:0;line-height:1.5}.modal-container>header>div *:empty{display:none}.modal-container>header h1+h2{margin-top:calc(var(--space-unit) * 0.5)}.modal-container>.modal-content{overflow:auto;flex:1 auto;background:var(--color-surface01);overflow-x:hidden}.modal-container .modal-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)}.modal-container .modal-content::-webkit-scrollbar-track{background-color:transparent}.modal-container .modal-content::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.modal-container .modal-content::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.modal-container .modal-content{scrollbar-color:var(--color-primary01) transparent}@media only screen and (min-width: 768px){.modal-container{position:fixed;top:calc(var(--space-unit) * 6);left:50%;width:auto;min-width:calc(var(--space-unit) * 40);height:auto;min-height:calc(var(--space-unit) * 40);max-height:calc(100vh - calc(var(--space-unit) * 6 * 2));border-radius:var(--border-radius);transform:translateX(-50%)}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 3);--z-icon-height:calc(var(--space-unit) * 3)}}@media only screen and (min-width: 768px) and (max-width: 1151px){.modal-container>header{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3)}}@media only screen and (min-width: 1152px){.modal-container>header{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 4)}.modal-container>header h1{font-size:var(--font-size-6);letter-spacing:0;line-height:1.33}.modal-container>header h2{font-size:var(--font-size-4);letter-spacing:0;line-height:1.5}.modal-container>header h1+h2{margin-top:0}}";
|
|
8475
8456
|
|
|
8457
|
+
const FOCUSABLE_ELEMENTS_SELECTOR = ':is(button, input, select, textarea, [contenteditable=""], [contenteditable="true"], a[href], [tabindex], summary):not([disabled], [disabled=""], [tabindex="-1"], [aria-hidden="true"], [hidden])';
|
|
8476
8458
|
const ZModal$1 = class extends HTMLElement {
|
|
8477
8459
|
constructor() {
|
|
8478
8460
|
super();
|
|
@@ -8485,7 +8467,6 @@ const ZModal$1 = class extends HTMLElement {
|
|
|
8485
8467
|
this.closeButtonLabel = "chiudi modale";
|
|
8486
8468
|
/** add role "alertdialog" to dialog (optional, default is false) */
|
|
8487
8469
|
this.alertdialog = false;
|
|
8488
|
-
this.shift = false;
|
|
8489
8470
|
}
|
|
8490
8471
|
emitModalClose() {
|
|
8491
8472
|
this.modalClose.emit({ modalid: this.modalid });
|
|
@@ -8496,54 +8477,59 @@ const ZModal$1 = class extends HTMLElement {
|
|
|
8496
8477
|
emitBackgroundClick() {
|
|
8497
8478
|
this.modalBackgroundClick.emit({ modalid: this.modalid });
|
|
8498
8479
|
}
|
|
8499
|
-
/** open modal */
|
|
8500
|
-
async openModal() {
|
|
8501
|
-
this.open();
|
|
8502
|
-
}
|
|
8503
|
-
/** close modal */
|
|
8504
|
-
async closeModal() {
|
|
8505
|
-
this.close();
|
|
8506
|
-
}
|
|
8507
8480
|
componentDidLoad() {
|
|
8508
8481
|
this.open();
|
|
8509
8482
|
}
|
|
8510
|
-
open
|
|
8483
|
+
/** open modal */
|
|
8484
|
+
async open() {
|
|
8511
8485
|
var _a;
|
|
8512
8486
|
(_a = this.dialog) === null || _a === void 0 ? void 0 : _a.showModal();
|
|
8513
8487
|
}
|
|
8514
|
-
close
|
|
8488
|
+
/** close modal */
|
|
8489
|
+
async close() {
|
|
8515
8490
|
var _a;
|
|
8516
8491
|
(_a = this.dialog) === null || _a === void 0 ? void 0 : _a.close();
|
|
8517
8492
|
}
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8493
|
+
/**
|
|
8494
|
+
* Get a list of focusable elements in the dialog.
|
|
8495
|
+
* Remove elements with `display: none` from the list, because they're not focusable.
|
|
8496
|
+
*
|
|
8497
|
+
* N.B. The list is built on the assumption that elements inside shadow root are placed ALL before the `modalContent` slot.
|
|
8498
|
+
* Adding focusable elements after the `modalContent` slot would break the order of elements in the list.
|
|
8499
|
+
*/
|
|
8500
|
+
get focusableElements() {
|
|
8501
|
+
return [
|
|
8502
|
+
...Array.from(this.host.shadowRoot.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)),
|
|
8503
|
+
...Array.from(this.host.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)),
|
|
8504
|
+
].filter((element) => getComputedStyle(element).display !== "none");
|
|
8526
8505
|
}
|
|
8527
|
-
|
|
8528
|
-
if (e.code !== KeyboardCode.TAB
|
|
8506
|
+
handleKeyDown(e) {
|
|
8507
|
+
if (e.code !== KeyboardCode.TAB) {
|
|
8529
8508
|
return;
|
|
8530
8509
|
}
|
|
8531
|
-
|
|
8532
|
-
|
|
8510
|
+
const focusableElements = this.focusableElements;
|
|
8511
|
+
const shadowActiveElement = this.host.shadowRoot.activeElement;
|
|
8512
|
+
const activeElement = this.host.ownerDocument.activeElement;
|
|
8513
|
+
const firstFocusableElement = focusableElements[0];
|
|
8514
|
+
const lastFocusableElement = focusableElements[focusableElements.length - 1];
|
|
8515
|
+
if (e.shiftKey && (shadowActiveElement == firstFocusableElement || activeElement == firstFocusableElement)) {
|
|
8516
|
+
// shift + tab was pressed and current active element is the first focusable element
|
|
8517
|
+
e.preventDefault();
|
|
8518
|
+
lastFocusableElement.focus();
|
|
8519
|
+
}
|
|
8520
|
+
else if (!e.shiftKey && (shadowActiveElement == lastFocusableElement || activeElement == lastFocusableElement)) {
|
|
8521
|
+
// shift + tab was pressed and current active element is the first focusable element
|
|
8522
|
+
e.preventDefault();
|
|
8523
|
+
firstFocusableElement.focus();
|
|
8533
8524
|
}
|
|
8534
8525
|
}
|
|
8535
8526
|
render() {
|
|
8536
|
-
|
|
8537
|
-
return (h(Host, null, h("dialog", { "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose(), onKeyDown: (e) => {
|
|
8538
|
-
this.shift = !!e.shiftKey;
|
|
8539
|
-
this.handleBackwardsNav(e);
|
|
8540
|
-
}, onKeyUp: (e) => {
|
|
8541
|
-
this.handleForwardNav(e);
|
|
8542
|
-
} }, h("div", { class: "modal-container", id: this.modalid }, h("header", { onClick: this.emitModalHeaderActive.bind(this) }, h("div", null, this.modaltitle && h("h1", { id: "modal-title" }, this.modaltitle), this.modalsubtitle && h("h2", { id: "modal-subtitle" }, this.modalsubtitle)), h("slot", { name: "modalCloseButton" }, h("button", { "aria-label": this.closeButtonLabel, onClick: () => this.close(), ref: (el) => (this.closeButton = el) }, h("z-icon", { name: "multiply-circle-filled" })))), h("div", { class: "modal-content", id: "modal-content" }, h("slot", { name: "modalContent" }), h("span", { tabindex: 0, class: "modal-end", ref: (el) => (this.modalEnd = el) }))), h("div", { class: "modal-background", "data-action": "modalBackground", "data-modal": this.modalid, onClick: () => {
|
|
8527
|
+
return (h("dialog", { "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose() }, h("div", { class: "modal-container", id: this.modalid }, h("header", { onClick: this.emitModalHeaderActive.bind(this) }, h("div", null, this.modaltitle && h("h1", { id: "modal-title" }, this.modaltitle), this.modalsubtitle && h("h2", { id: "modal-subtitle" }, this.modalsubtitle)), h("slot", { name: "modalCloseButton" }, h("button", { "aria-label": this.closeButtonLabel, onClick: () => this.close() }, h("z-icon", { name: "multiply-circle-filled" })))), h("div", { class: "modal-content", id: "modal-content" }, h("slot", { name: "modalContent" }))), h("div", { class: "modal-background", "data-action": "modalBackground", "data-modal": this.modalid, onClick: () => {
|
|
8543
8528
|
this.emitBackgroundClick();
|
|
8544
8529
|
this.close();
|
|
8545
|
-
} })))
|
|
8530
|
+
} })));
|
|
8546
8531
|
}
|
|
8532
|
+
get host() { return this; }
|
|
8547
8533
|
static get style() { return stylesCss$P; }
|
|
8548
8534
|
};
|
|
8549
8535
|
|
|
@@ -13643,7 +13629,7 @@ const ZSelect$1 = class extends HTMLElement {
|
|
|
13643
13629
|
return group;
|
|
13644
13630
|
}, {});
|
|
13645
13631
|
return Object.entries(newData).map(([key, value]) => {
|
|
13646
|
-
return (h("z-list-group", { "divider-type": ListDividerType.ELEMENT }, h("
|
|
13632
|
+
return (h("z-list-group", { "divider-type": ListDividerType.ELEMENT }, h("span", { class: "body-3-sb z-list-group-title", slot: "header-title" }, key), value.map((item) => item)));
|
|
13647
13633
|
});
|
|
13648
13634
|
}
|
|
13649
13635
|
renderNoSearchResults() {
|
|
@@ -13919,7 +13905,7 @@ const ZTable$1 = class extends HTMLElement {
|
|
|
13919
13905
|
}
|
|
13920
13906
|
renderError(tableClass) {
|
|
13921
13907
|
const minHeight = this.lines ? `calc(40px * ${this.lines})` : "auto";
|
|
13922
|
-
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-error", null, h("div", { class: "error-content", style: { minHeight } }, h("slot", { name: "error-image" }), h("div", { class: "text" }, h("
|
|
13908
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-error", null, h("div", { class: "error-content", style: { minHeight } }, h("slot", { name: "error-image" }), h("div", { class: "text" }, h("span", { class: "body-3-sb error-message" }, this.errorMessage), h("slot", { name: "error-action" }))))));
|
|
13923
13909
|
}
|
|
13924
13910
|
renderEmpty(tableClass) {
|
|
13925
13911
|
const buttonSize = this.isMobile ? ButtonSize.SMALL : ButtonSize.BIG;
|
|
@@ -14010,7 +13996,7 @@ const ZTableEmptyBox$1 = class extends HTMLElement {
|
|
|
14010
13996
|
this.hasCta2Slot = !!this.hostElement.querySelector('[slot="cta2"]');
|
|
14011
13997
|
}
|
|
14012
13998
|
render() {
|
|
14013
|
-
return (h(Host, null, h("
|
|
13999
|
+
return (h(Host, null, h("span", { class: "body-3-sb" }, this.message), h("br", null), !!this.subtitle && h("span", { class: "body-4" }, this.subtitle), (!!this.hasCta1Slot || !!this.hasCta2Slot) && (h("div", { class: {
|
|
14014
14000
|
"cta": true,
|
|
14015
14001
|
"has-2-cta": !!this.hasCta1Slot && !!this.hasCta2Slot,
|
|
14016
14002
|
} }, h("slot", { name: "cta1" }), h("slot", { name: "cta2" })))));
|
|
@@ -14637,7 +14623,7 @@ const ZLogo = /*@__PURE__*/proxyCustomElement(ZLogo$1, [1,"z-logo",{"width":[2],
|
|
|
14637
14623
|
const ZMenu = /*@__PURE__*/proxyCustomElement(ZMenu$1, [1,"z-menu",{"active":[516],"floating":[516],"open":[1540],"hasHeader":[32],"hasContent":[32]},[[4,"click","handleClick"]]]);
|
|
14638
14624
|
const ZMenuSection = /*@__PURE__*/proxyCustomElement(ZMenuSection$1, [1,"z-menu-section",{"active":[516],"open":[32],"hasContent":[32]},[[4,"click","handleClick"]]]);
|
|
14639
14625
|
const ZMessagesPocket = /*@__PURE__*/proxyCustomElement(ZMessagesPocket$1, [1,"z-messages-pocket",{"pocketid":[1],"messages":[2],"status":[1025]},[[16,"pocketToggle","handlePocketToggle"]]]);
|
|
14640
|
-
const ZModal = /*@__PURE__*/proxyCustomElement(ZModal$1, [1,"z-modal",{"modalid":[1],"modaltitle":[1],"modalsubtitle":[1],"closeButtonLabel":[1,"close-button-label"],"alertdialog":[4]}]);
|
|
14626
|
+
const ZModal = /*@__PURE__*/proxyCustomElement(ZModal$1, [1,"z-modal",{"modalid":[1],"modaltitle":[1],"modalsubtitle":[1],"closeButtonLabel":[1,"close-button-label"],"alertdialog":[4]},[[0,"keydown","handleKeyDown"]]]);
|
|
14641
14627
|
const ZMyzCard = /*@__PURE__*/proxyCustomElement(ZMyzCardComponent, [1,"z-myz-card",{"faded":[4],"cardtype":[1],"ispressed":[4],"ishighlighted":[4]}]);
|
|
14642
14628
|
const ZMyzCardAlert = /*@__PURE__*/proxyCustomElement(ZMyzCardAlert$1, [1,"z-myz-card-alert",{"iconname":[1],"contenttext":[1],"actiontext":[1],"type":[1]}]);
|
|
14643
14629
|
const ZMyzCardBody = /*@__PURE__*/proxyCustomElement(ZMyzCardBody$1, [1,"z-myz-card-body"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-0f55558e.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t(JSON.parse('[["p-c41efa42",[[2,"license-activation",{"variant":[1],"modalState":[1025,"modal-state"],"componentid":[1],"inputLabel":[1,"input-label"],"inputMessage":[1,"input-message"],"inputPlaceholder":[1,"input-placeholder"],"additionalDescription":[1,"additional-description"],"buttonLabel":[1,"button-label"],"buttonIcon":[1,"button-icon"],"previewInputPlaceholder":[1,"preview-input-placeholder"],"previewButtonLabel":[1,"preview-button-label"],"previewButtonIcon":[1,"preview-button-icon"],"previewButtonSize":[1,"preview-button-size"],"enableButton":[4,"enable-button"],"forceModal":[4,"force-modal"],"env":[1],"cms":[32],"enableFormSubmitButton":[32],"submitClicked":[32],"isMobile":[32],"initialShowInfoBox":[32],"licenseActivationState":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]],[2,"license-activation-form",{"direction":[1],"error":[1],"formTexts":[16],"requestLoading":[4,"request-loading"],"initialCode":[1,"initial-code"],"initialShowInfoBox":[4,"initial-show-info-box"],"enableButton":[4,"enable-button"],"activationState":[1,"activation-state"],"formid":[1],"variant":[1],"handleModalOpen":[16],"showInfoBox":[32],"inputVal":[32]}],[6,"license-activation-box",{"error":[16],"code":[1]}],[6,"license-activation-modal",{"modalTitle":[1,"modal-title"],"resetStore":[16]}],[1,"z-info-box",{"boxid":[1],"isclosable":[4]}],[1,"z-modal",{"modalid":[1],"modaltitle":[1],"modalsubtitle":[1],"closeButtonLabel":[1,"close-button-label"],"alertdialog":[4],"openModal":[64],"closeModal":[64]}],[1,"z-link",{"htmlid":[1],"href":[1],"target":[1],"htmltabindex":[2],"isdisabled":[4],"isactive":[4],"iswhite":[4],"textcolor":[1],"icon":[1],"big":[516],"iconposition":[1],"underline":[4],"iconSize":[32]}],[2,"z-input",{"htmlid":[1],"type":[1],"name":[1],"label":[1],"ariaLabel":[1,"aria-label"],"value":[1025],"disabled":[516],"readonly":[4],"required":[4],"checked":[1028],"placeholder":[1],"htmltitle":[1],"status":[1],"message":[8],"labelPosition":[1,"label-position"],"autocomplete":[1],"hasclearicon":[4],"icon":[1],"min":[2],"max":[2],"step":[2],"pattern":[1],"isTyping":[32],"passwordHidden":[32],"isChecked":[64]},[[4,"inputCheck","inputCheckListener"]]],[1,"z-input-message",{"message":[1],"status":[513],"statusRole":[32]}],[6,"z-button",{"ariaLabel":[513,"aria-label"],"href":[1],"target":[1],"htmlid":[1],"name":[1],"disabled":[516],"type":[1],"variant":[513],"icon":[1],"size":[513]}],[1,"z-icon",{"name":[1],"height":[2],"width":[2],"iconid":[1],"fill":[1]}]]],["p-500ff0dd",[[1,"z-searchbar",{"htmlid":[513],"preventSubmit":[4,"prevent-submit"],"value":[1],"placeholder":[1],"autocomplete":[4],"autocompleteMinChars":[2,"autocomplete-min-chars"],"resultsCount":[2,"results-count"],"resultsEllipsis":[4,"results-ellipsis"],"searchHelperLabel":[1,"search-helper-label"],"resultsItems":[1,"results-items"],"sortResultsItems":[4,"sort-results-items"],"searchString":[32],"currResultsCount":[32],"showResults":[32]},[[4,"click","clickListener"]]]]],["p-302c022a",[[2,"z-select",{"htmlid":[1],"items":[1],"name":[1],"label":[1],"ariaLabel":[1,"aria-label"],"disabled":[4],"readonly":[4],"placeholder":[1],"htmltitle":[1],"status":[1],"message":[8],"autocomplete":[4],"noresultslabel":[1],"hasGroupItems":[4,"has-group-items"],"isfixed":[4],"resetItem":[1,"reset-item"],"isOpen":[32],"selectedItem":[32],"searchString":[32],"getSelectedItem":[64],"getValue":[64],"setValue":[64]}]]],["p-0cee6faa",[[1,"z-combobox",{"inputid":[1],"items":[1],"label":[1],"disabled":[516],"hassearch":[4],"searchlabel":[1],"searchplaceholder":[1],"searchtitle":[1],"noresultslabel":[1],"isopen":[1028],"isfixed":[4],"closesearchtext":[1],"hascheckall":[4],"checkalltext":[1],"uncheckalltext":[1],"maxcheckableitems":[2],"hasgroupitems":[4],"searchValue":[32],"selectedCounter":[32],"renderItemsList":[32]},[[0,"inputCheck","inputCheckListener"]]]]],["p-48384226",[[1,"z-file-upload",{"type":[513],"buttonVariant":[1,"button-variant"],"acceptedFormat":[1,"accepted-format"],"fileMaxSize":[2,"file-max-size"],"mainTitle":[1,"main-title"],"description":[1],"files":[32],"invalidFiles":[32],"getFiles":[64]},[[0,"removeFile","removeFileListener"],[0,"fileDropped","fileDroppedListener"]]]]],["p-23905d08",[[1,"z-contextual-menu",{"elements":[1],"color":[1],"popoverPosition":[513,"popover-position"]}]]],["p-b38b27f2",[[1,"z-myz-card-dictionary",{"name":[1],"cover":[1],"disabled":[4],"flipped":[1028],"flipbuttonlabel":[1],"hideinfobtn":[4]},[[0,"flipCard","handleFlipCard"]]]]],["p-982608ce",[[4,"z-table",{"lines":[514],"errorMessage":[1,"error-message"],"bordered":[4],"callToActionLabel":[1,"call-to-action-label"],"callToActionTwoLabel":[1,"call-to-action-two-label"],"columnSticky":[4,"column-sticky"],"empty":[4],"error":[4],"errorLink":[1,"error-link"],"headerSticky":[4,"header-sticky"],"message":[1],"subtitle":[1],"hasTableBody":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]]]],["p-45dcece4",[[1,"z-messages-pocket",{"pocketid":[1],"messages":[2],"status":[1025]},[[16,"pocketToggle","handlePocketToggle"]]]]],["p-3fa29874",[[0,"z-pagination",{"label":[1],"navArrows":[4,"nav-arrows"],"totalPages":[2,"total-pages"],"skip":[2],"edges":[4],"split":[2],"visiblePages":[2,"visible-pages"],"currentPage":[1026,"current-page"],"goToPage":[4,"go-to-page"],"_visiblePages":[32],"isMobile":[32],"goToPageValue":[32]},[[9,"resize","onResize"]]]]],["p-d8e80ee8",[[4,"z-table-header-row",{"expandable":[516]}]]],["p-6cb8def6",[[4,"z-carousel",{"isLoading":[4,"is-loading"],"label":[1],"single":[4],"arrowsPosition":[1,"arrows-position"],"progressMode":[1,"progress-mode"],"ghostLoadingHeight":[2,"ghost-loading-height"],"current":[32],"items":[32],"highlightedIndicator":[32],"canNavigatePrev":[32],"canNavigateNext":[32]}]]],["p-8876b438",[[4,"z-date-picker",{"datePickerId":[1,"date-picker-id"],"ariaLabel":[1,"aria-label"],"label":[1],"mode":[1],"flatpickrPosition":[32],"inputError":[32]},[[18,"keydown","handleKeyDown"]]]]],["p-afb5bfe5",[[2,"z-file",{"fileNumber":[2,"file-number"],"fileName":[1,"file-name"],"allowPopover":[32],"popoverVisible":[32]},[[1,"mouseover","onMouseOver"],[1,"mouseleave","onMouseLeave"],[0,"interactiveIconClick","onInteractiveIconClick"]]]]],["p-c436e1af",[[0,"z-range-picker",{"rangePickerId":[1,"range-picker-id"],"firstAriaLabel":[1,"first-aria-label"],"firstLabel":[1,"first-label"],"secondAriaLabel":[1,"second-aria-label"],"secondLabel":[1,"second-label"],"mode":[1],"flatpickrPosition":[32],"activeInput":[32],"firstInputError":[32],"lastInputError":[32]},[[18,"click","handleClick"],[18,"keyup","handleKeyDown"]]]]],["p-7546c464",[[4,"z-table-row",{"expandedType":[513,"expanded-type"],"expanded":[32]}]]],["p-3cf0c6a5",[[4,"z-anchor-navigation",{"hideUnselected":[516,"hide-unselected"],"collapsed":[32]}]]],["p-963999a8",[[1,"z-myz-card-alert",{"iconname":[1],"contenttext":[1],"actiontext":[1],"type":[1]}]]],["p-57f2b8d8",[[1,"z-myz-card-info",{"data":[1],"htmltabindex":[2],"hiddenContent":[32],"tooltip":[32]}]]],["p-bcb29c7a",[[1,"z-myz-list",{"inputrawdata":[1],"list":[1040]}]]],["p-2f289949",[[1,"z-otp",{"inputNum":[2,"input-num"],"status":[1],"message":[1]}]]],["p-ee0a8f1f",[[1,"z-panel-elem",{"elemid":[1],"imgurl":[1],"imgalt":[1],"linkicon":[1],"linklabel":[1],"url":[1],"target":[1],"isdisabled":[4],"descrSlotName":[1,"descr-slot-name"]}]]],["p-c885d25c",[[2,"z-skip-to-content",{"variant":[513],"links":[1025],"visible":[32],"visibleLink":[32]},[[4,"focusout","handleFocusOutSkipToContent"],[4,"focusin","handleFocusSkipToContent"]]]]],["p-1d2cb6f9",[[1,"z-app-header",{"stuck":[516],"hero":[1],"overlay":[516],"flow":[513],"drawerOpen":[516,"drawer-open"],"_stuck":[32],"menuLength":[32]}]]],["p-0434c900",[[1,"z-app-switcher",{"theme":[1],"isopen":[32]}]]],["p-a2b564ef",[[1,"z-button-sort",{"buttonid":[1],"label":[1],"desclabel":[1],"counter":[2],"sortlabelasc":[1],"sortlabeldesc":[1],"isselected":[1028],"sortasc":[1028],"allowTooltip":[32]}]]],["p-b16fd965",[[1,"z-card",{"variant":[513],"coverIcon":[1,"cover-icon"],"clickable":[516],"showshadow":[516],"hasCoverImage":[32]},[[0,"click","onClick"]]]]],["p-1009b417",[[1,"z-info-reveal",{"icon":[1],"position":[513],"label":[1],"open":[32],"currentIndex":[32]}]]],["p-65be6de6",[[1,"z-menu",{"active":[516],"floating":[516],"open":[1540],"hasHeader":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["p-61264c72",[[1,"z-menu-section",{"active":[516],"open":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["p-c31b160e",[[1,"z-myz-card-icon",{"icon":[1],"isdisabled":[4],"ariaLabel":[1,"aria-label"]}]]],["p-8d91a5b7",[[0,"z-navigation-tab",{"selected":[1540],"disabled":[516],"orientation":[513],"size":[513],"icon":[1],"label":[1],"htmlTitle":[1,"html-title"]},[[0,"click","onClick"]]]]],["p-d69c3b08",[[0,"z-navigation-tab-link",{"selected":[1540],"disabled":[516],"orientation":[513],"size":[513],"htmlTitle":[1,"html-title"],"target":[1],"href":[1],"icon":[1],"label":[1]},[[0,"click","onClick"]]]]],["p-29310a24",[[1,"z-navigation-tabs",{"orientation":[513],"size":[513],"canNavigate":[32],"canNavigatePrev":[32],"canNavigateNext":[32]},[[9,"resize","checkScrollVisible"],[0,"selected","onTabSelected"]]]]],["p-9e5596cd",[[1,"z-notification",{"contenticonname":[1],"actiontext":[1],"type":[513],"showclose":[4],"showshadow":[516],"sticky":[516]}]]],["p-8710e686",[[1,"z-pocket-message"]]],["p-5e503d5f",[[1,"z-section-title",{"dividerPosition":[1,"divider-position"],"uppercase":[516]}]]],["p-81ddcb87",[[1,"z-slideshow",{"slideshowid":[1],"data":[1],"device":[32],"currentSlide":[32]}]]],["p-bc10cf1a",[[6,"z-tag",{"icon":[1],"expandable":[4]}]]],["p-6c54d53f",[[1,"z-toast-notification",{"heading":[1],"message":[1],"closebutton":[4],"autoclose":[2],"pauseonfocusloss":[4],"type":[1],"isdraggable":[4],"draggablepercentage":[2],"transition":[1],"percentage":[32]}]]],["p-fc49c455",[[1,"z-toggle-button",{"label":[1],"isdisabled":[4],"avoidclick":[4],"opened":[1028]}]]],["p-42dd4f36",[[6,"z-toggle-switch",{"disabled":[516],"labelPosition":[513,"label-position"],"checked":[1028],"htmlid":[1]}]]],["p-42e9c740",[[1,"z-tooltip",{"position":[513],"dark":[516],"open":[1540],"bindTo":[1,"bind-to"]},[[0,"openChange","onPopoverOpenChange"]]]]],["p-8825d8e4",[[4,"z-aria-alert",{"mode":[1]}]]],["p-925fc6c3",[[1,"z-avatar",{"size":[1],"text":[1],"textColor":[1,"text-color"],"backgroundColor":[1,"background-color"],"image":[1025]}]]],["p-c9df8e5d",[[1,"z-cover-hero",{"variant":[513],"contentPosition":[513,"content-position"]}]]],["p-a815651c",[[1,"z-logo",{"width":[2],"height":[2],"imageAlt":[1,"image-alt"],"link":[1],"targetBlank":[4,"target-blank"],"mobileLogo":[4,"mobile-logo"]}]]],["p-5530ca81",[[1,"z-myz-card-footer",{"titolo":[1],"autori":[1],"isbn":[1],"faded":[4],"cardtype":[1],"opened":[4],"customContent":[4,"custom-content"],"isOpen":[32],"allowTooltipAuthors":[32]},[[0,"toggleClick","handleToggle"]]]]],["p-963f64a8",[[1,"z-myz-card-footer-sections"]]],["p-829539a5",[[1,"z-myz-card-list",{"listdata":[1]}]]],["p-063881e2",[[6,"z-offcanvas",{"variant":[513],"open":[1540],"transitiondirection":[513]}]]],["p-a64544de",[[1,"z-stepper"]]],["p-6d853df0",[[1,"z-stepper-item",{"index":[2],"href":[1],"pressed":[4],"disabled":[4]}]]],["p-5d88112c",[[6,"z-table-body"]]],["p-8d532866",[[1,"z-table-expanded-row",{"colSpan":[2,"col-span"]}]]],["p-a150a778",[[6,"z-table-footer"]]],["p-badf3f24",[[6,"z-table-head"]]],["p-74b71f61",[[6,"z-table-sticky-footer"]]],["p-950aa417",[[1,"z-toast-notification-list",{"position":[513],"newestontop":[4]}]]],["p-0bff6d57",[[1,"z-visually-hidden"]]],["p-8794c0c7",[[1,"z-table-header",{"columnId":[1,"column-id"],"padding":[513],"sortable":[4],"showButton":[4,"show-button"],"defaultSortDirection":[1,"default-sort-direction"],"sortDirection":[1025,"sort-direction"]},[[18,"click","handleOutsideClick"],[18,"click","handleClickHeaders"]]]]],["p-ea6c67f2",[[1,"z-table-cell",{"showButton":[4,"show-button"],"padding":[513],"isMenuOpened":[32]}]]],["p-f0453d1c",[[6,"z-table-empty-box",{"message":[1],"subtitle":[1]}]]],["p-64decd7d",[[6,"z-chip",{"icon":[1],"type":[513],"interactiveIcon":[513,"interactive-icon"],"disabled":[516]}]]],["p-4eb940ca",[[1,"z-alert",{"type":[1]}]]],["p-a6b403f9",[[1,"z-ghost-loading"]]],["p-d2715819",[[1,"z-dragdrop-area"],[1,"z-heading",{"level":[2],"variant":[1],"component":[1]}]]],["p-702dd7b4",[[1,"z-myz-list-item",{"text":[1],"link":[1],"linktarget":[1],"icon":[1],"listitemid":[1],"action":[1],"underlined":[4]}]]],["p-0aa553ea",[[1,"z-pocket",{"pocketid":[1],"status":[1025],"open":[64],"close":[64]},[[0,"pocketHeaderClick","handlePocketHeaderClick"],[0,"pocketHeaderPan","handlePocketHeaderPan"]]],[1,"z-pocket-body",{"pocketid":[1],"status":[1025]},[[16,"pocketToggle","handlePocketToggle"]]],[1,"z-pocket-header",{"pocketid":[1]}]]],["p-c51ebb01",[[1,"z-myz-card",{"faded":[4],"cardtype":[1],"ispressed":[4],"ishighlighted":[4]}],[1,"z-myz-card-body"],[1,"z-myz-card-cover",{"img":[1],"titolo":[1],"faded":[4],"defaultimg":[1]}],[1,"z-myz-card-header",{"titolo":[1],"faded":[4],"cardtype":[1],"allowTooltip":[32]}]]],["p-cb16715b",[[1,"z-popover",{"position":[513],"open":[1540],"bindTo":[1,"bind-to"],"showArrow":[516,"show-arrow"],"center":[516],"closable":[4],"currentPosition":[32]},[[8,"keyup","closePopoverWithKeyboard"],[18,"click","handleOutsideClick"]]]]],["p-9ad5616e",[[2,"z-divider",{"size":[1],"color":[1],"orientation":[1]}]]],["p-8cc7c2c7",[[1,"z-list-element",{"alignButton":[513,"align-button"],"clickable":[516],"dividerColor":[1,"divider-color"],"dividerType":[1,"divider-type"],"dividerSize":[1,"divider-size"],"expandable":[516],"expandableStyle":[1,"expandable-style"],"listElementId":[514,"list-element-id"],"size":[513],"color":[513],"disabled":[516],"isContextualMenu":[516,"is-contextual-menu"],"listElementPosition":[513,"list-element-position"],"listType":[513,"list-type"],"showInnerContent":[32]},[[4,"accessibleFocus","accessibleFocusHandler"]]],[1,"z-list",{"size":[513],"listType":[513,"list-type"]}],[1,"z-list-group",{"size":[513],"dividerType":[513,"divider-type"],"dividerSize":[513,"divider-size"],"dividerColor":[513,"divider-color"],"listType":[513,"list-type"]}]]],["p-c2aef9f6",[[1,"z-body",{"level":[2],"variant":[1],"component":[1]}],[1,"z-typography",{"level":[1],"variant":[1],"component":[1]}]]]]'),e)));
|
|
1
|
+
import{p as e,b as t}from"./p-0f55558e.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t(JSON.parse('[["p-e37c0a29",[[2,"license-activation",{"variant":[1],"modalState":[1025,"modal-state"],"componentid":[1],"inputLabel":[1,"input-label"],"inputMessage":[1,"input-message"],"inputPlaceholder":[1,"input-placeholder"],"additionalDescription":[1,"additional-description"],"buttonLabel":[1,"button-label"],"buttonIcon":[1,"button-icon"],"previewInputPlaceholder":[1,"preview-input-placeholder"],"previewButtonLabel":[1,"preview-button-label"],"previewButtonIcon":[1,"preview-button-icon"],"previewButtonSize":[1,"preview-button-size"],"enableButton":[4,"enable-button"],"forceModal":[4,"force-modal"],"env":[1],"cms":[32],"enableFormSubmitButton":[32],"submitClicked":[32],"isMobile":[32],"initialShowInfoBox":[32],"licenseActivationState":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]],[2,"license-activation-form",{"direction":[1],"error":[1],"formTexts":[16],"requestLoading":[4,"request-loading"],"initialCode":[1,"initial-code"],"initialShowInfoBox":[4,"initial-show-info-box"],"enableButton":[4,"enable-button"],"activationState":[1,"activation-state"],"formid":[1],"variant":[1],"handleModalOpen":[16],"showInfoBox":[32],"inputVal":[32]}],[6,"license-activation-box",{"error":[16],"code":[1]}],[6,"license-activation-modal",{"modalTitle":[1,"modal-title"],"resetStore":[16]}],[1,"z-info-box",{"boxid":[1],"isclosable":[4]}],[1,"z-modal",{"modalid":[1],"modaltitle":[1],"modalsubtitle":[1],"closeButtonLabel":[1,"close-button-label"],"alertdialog":[4],"open":[64],"close":[64]},[[0,"keydown","handleKeyDown"]]],[1,"z-link",{"htmlid":[1],"href":[1],"target":[1],"htmltabindex":[2],"isdisabled":[4],"isactive":[4],"iswhite":[4],"textcolor":[1],"icon":[1],"big":[516],"iconposition":[1],"underline":[4],"iconSize":[32]}],[2,"z-input",{"htmlid":[1],"type":[1],"name":[1],"label":[1],"ariaLabel":[1,"aria-label"],"value":[1025],"disabled":[516],"readonly":[4],"required":[4],"checked":[1028],"placeholder":[1],"htmltitle":[1],"status":[1],"message":[8],"labelPosition":[1,"label-position"],"autocomplete":[1],"hasclearicon":[4],"icon":[1],"min":[2],"max":[2],"step":[2],"pattern":[1],"isTyping":[32],"passwordHidden":[32],"isChecked":[64]},[[4,"inputCheck","inputCheckListener"]]],[1,"z-input-message",{"message":[1],"status":[513],"statusRole":[32]}],[6,"z-button",{"ariaLabel":[513,"aria-label"],"href":[1],"target":[1],"htmlid":[1],"name":[1],"disabled":[516],"type":[1],"variant":[513],"icon":[1],"size":[513]}],[1,"z-icon",{"name":[1],"height":[2],"width":[2],"iconid":[1],"fill":[1]}]]],["p-500ff0dd",[[1,"z-searchbar",{"htmlid":[513],"preventSubmit":[4,"prevent-submit"],"value":[1],"placeholder":[1],"autocomplete":[4],"autocompleteMinChars":[2,"autocomplete-min-chars"],"resultsCount":[2,"results-count"],"resultsEllipsis":[4,"results-ellipsis"],"searchHelperLabel":[1,"search-helper-label"],"resultsItems":[1,"results-items"],"sortResultsItems":[4,"sort-results-items"],"searchString":[32],"currResultsCount":[32],"showResults":[32]},[[4,"click","clickListener"]]]]],["p-c229c90e",[[2,"z-select",{"htmlid":[1],"items":[1],"name":[1],"label":[1],"ariaLabel":[1,"aria-label"],"disabled":[4],"readonly":[4],"placeholder":[1],"htmltitle":[1],"status":[1],"message":[8],"autocomplete":[4],"noresultslabel":[1],"hasGroupItems":[4,"has-group-items"],"isfixed":[4],"resetItem":[1,"reset-item"],"isOpen":[32],"selectedItem":[32],"searchString":[32],"getSelectedItem":[64],"getValue":[64],"setValue":[64]}]]],["p-1c2d7c30",[[1,"z-combobox",{"inputid":[1],"items":[1],"label":[1],"disabled":[516],"hassearch":[4],"searchlabel":[1],"searchplaceholder":[1],"searchtitle":[1],"noresultslabel":[1],"isopen":[1028],"isfixed":[4],"closesearchtext":[1],"hascheckall":[4],"checkalltext":[1],"uncheckalltext":[1],"maxcheckableitems":[2],"hasgroupitems":[4],"searchValue":[32],"selectedCounter":[32],"renderItemsList":[32]},[[0,"inputCheck","inputCheckListener"]]]]],["p-23905d08",[[1,"z-contextual-menu",{"elements":[1],"color":[1],"popoverPosition":[513,"popover-position"]}]]],["p-b38b27f2",[[1,"z-myz-card-dictionary",{"name":[1],"cover":[1],"disabled":[4],"flipped":[1028],"flipbuttonlabel":[1],"hideinfobtn":[4]},[[0,"flipCard","handleFlipCard"]]]]],["p-ddab353c",[[1,"z-file-upload",{"type":[513],"buttonVariant":[1,"button-variant"],"acceptedFormat":[1,"accepted-format"],"fileMaxSize":[2,"file-max-size"],"mainTitle":[1,"main-title"],"description":[1],"files":[32],"invalidFiles":[32],"getFiles":[64]},[[0,"removeFile","removeFileListener"],[0,"fileDropped","fileDroppedListener"]]]]],["p-45dcece4",[[1,"z-messages-pocket",{"pocketid":[1],"messages":[2],"status":[1025]},[[16,"pocketToggle","handlePocketToggle"]]]]],["p-3fa29874",[[0,"z-pagination",{"label":[1],"navArrows":[4,"nav-arrows"],"totalPages":[2,"total-pages"],"skip":[2],"edges":[4],"split":[2],"visiblePages":[2,"visible-pages"],"currentPage":[1026,"current-page"],"goToPage":[4,"go-to-page"],"_visiblePages":[32],"isMobile":[32],"goToPageValue":[32]},[[9,"resize","onResize"]]]]],["p-d8e80ee8",[[4,"z-table-header-row",{"expandable":[516]}]]],["p-6cb8def6",[[4,"z-carousel",{"isLoading":[4,"is-loading"],"label":[1],"single":[4],"arrowsPosition":[1,"arrows-position"],"progressMode":[1,"progress-mode"],"ghostLoadingHeight":[2,"ghost-loading-height"],"current":[32],"items":[32],"highlightedIndicator":[32],"canNavigatePrev":[32],"canNavigateNext":[32]}]]],["p-8876b438",[[4,"z-date-picker",{"datePickerId":[1,"date-picker-id"],"ariaLabel":[1,"aria-label"],"label":[1],"mode":[1],"flatpickrPosition":[32],"inputError":[32]},[[18,"keydown","handleKeyDown"]]]]],["p-afb5bfe5",[[2,"z-file",{"fileNumber":[2,"file-number"],"fileName":[1,"file-name"],"allowPopover":[32],"popoverVisible":[32]},[[1,"mouseover","onMouseOver"],[1,"mouseleave","onMouseLeave"],[0,"interactiveIconClick","onInteractiveIconClick"]]]]],["p-c436e1af",[[0,"z-range-picker",{"rangePickerId":[1,"range-picker-id"],"firstAriaLabel":[1,"first-aria-label"],"firstLabel":[1,"first-label"],"secondAriaLabel":[1,"second-aria-label"],"secondLabel":[1,"second-label"],"mode":[1],"flatpickrPosition":[32],"activeInput":[32],"firstInputError":[32],"lastInputError":[32]},[[18,"click","handleClick"],[18,"keyup","handleKeyDown"]]]]],["p-90fdd23f",[[4,"z-table",{"lines":[514],"errorMessage":[1,"error-message"],"bordered":[4],"callToActionLabel":[1,"call-to-action-label"],"callToActionTwoLabel":[1,"call-to-action-two-label"],"columnSticky":[4,"column-sticky"],"empty":[4],"error":[4],"errorLink":[1,"error-link"],"headerSticky":[4,"header-sticky"],"message":[1],"subtitle":[1],"hasTableBody":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]]]],["p-7546c464",[[4,"z-table-row",{"expandedType":[513,"expanded-type"],"expanded":[32]}]]],["p-3cf0c6a5",[[4,"z-anchor-navigation",{"hideUnselected":[516,"hide-unselected"],"collapsed":[32]}]]],["p-963999a8",[[1,"z-myz-card-alert",{"iconname":[1],"contenttext":[1],"actiontext":[1],"type":[1]}]]],["p-57f2b8d8",[[1,"z-myz-card-info",{"data":[1],"htmltabindex":[2],"hiddenContent":[32],"tooltip":[32]}]]],["p-bcb29c7a",[[1,"z-myz-list",{"inputrawdata":[1],"list":[1040]}]]],["p-2f289949",[[1,"z-otp",{"inputNum":[2,"input-num"],"status":[1],"message":[1]}]]],["p-ee0a8f1f",[[1,"z-panel-elem",{"elemid":[1],"imgurl":[1],"imgalt":[1],"linkicon":[1],"linklabel":[1],"url":[1],"target":[1],"isdisabled":[4],"descrSlotName":[1,"descr-slot-name"]}]]],["p-c885d25c",[[2,"z-skip-to-content",{"variant":[513],"links":[1025],"visible":[32],"visibleLink":[32]},[[4,"focusout","handleFocusOutSkipToContent"],[4,"focusin","handleFocusSkipToContent"]]]]],["p-1d2cb6f9",[[1,"z-app-header",{"stuck":[516],"hero":[1],"overlay":[516],"flow":[513],"drawerOpen":[516,"drawer-open"],"_stuck":[32],"menuLength":[32]}]]],["p-0434c900",[[1,"z-app-switcher",{"theme":[1],"isopen":[32]}]]],["p-0667e9cd",[[1,"z-body",{"level":[2],"variant":[1],"component":[1]}]]],["p-a2b564ef",[[1,"z-button-sort",{"buttonid":[1],"label":[1],"desclabel":[1],"counter":[2],"sortlabelasc":[1],"sortlabeldesc":[1],"isselected":[1028],"sortasc":[1028],"allowTooltip":[32]}]]],["p-b16fd965",[[1,"z-card",{"variant":[513],"coverIcon":[1,"cover-icon"],"clickable":[516],"showshadow":[516],"hasCoverImage":[32]},[[0,"click","onClick"]]]]],["p-be7f8da0",[[1,"z-heading",{"level":[2],"variant":[1],"component":[1]}]]],["p-1009b417",[[1,"z-info-reveal",{"icon":[1],"position":[513],"label":[1],"open":[32],"currentIndex":[32]}]]],["p-65be6de6",[[1,"z-menu",{"active":[516],"floating":[516],"open":[1540],"hasHeader":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["p-61264c72",[[1,"z-menu-section",{"active":[516],"open":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["p-c31b160e",[[1,"z-myz-card-icon",{"icon":[1],"isdisabled":[4],"ariaLabel":[1,"aria-label"]}]]],["p-8d91a5b7",[[0,"z-navigation-tab",{"selected":[1540],"disabled":[516],"orientation":[513],"size":[513],"icon":[1],"label":[1],"htmlTitle":[1,"html-title"]},[[0,"click","onClick"]]]]],["p-d69c3b08",[[0,"z-navigation-tab-link",{"selected":[1540],"disabled":[516],"orientation":[513],"size":[513],"htmlTitle":[1,"html-title"],"target":[1],"href":[1],"icon":[1],"label":[1]},[[0,"click","onClick"]]]]],["p-29310a24",[[1,"z-navigation-tabs",{"orientation":[513],"size":[513],"canNavigate":[32],"canNavigatePrev":[32],"canNavigateNext":[32]},[[9,"resize","checkScrollVisible"],[0,"selected","onTabSelected"]]]]],["p-9e5596cd",[[1,"z-notification",{"contenticonname":[1],"actiontext":[1],"type":[513],"showclose":[4],"showshadow":[516],"sticky":[516]}]]],["p-8710e686",[[1,"z-pocket-message"]]],["p-5e503d5f",[[1,"z-section-title",{"dividerPosition":[1,"divider-position"],"uppercase":[516]}]]],["p-81ddcb87",[[1,"z-slideshow",{"slideshowid":[1],"data":[1],"device":[32],"currentSlide":[32]}]]],["p-bc10cf1a",[[6,"z-tag",{"icon":[1],"expandable":[4]}]]],["p-6c54d53f",[[1,"z-toast-notification",{"heading":[1],"message":[1],"closebutton":[4],"autoclose":[2],"pauseonfocusloss":[4],"type":[1],"isdraggable":[4],"draggablepercentage":[2],"transition":[1],"percentage":[32]}]]],["p-fc49c455",[[1,"z-toggle-button",{"label":[1],"isdisabled":[4],"avoidclick":[4],"opened":[1028]}]]],["p-42dd4f36",[[6,"z-toggle-switch",{"disabled":[516],"labelPosition":[513,"label-position"],"checked":[1028],"htmlid":[1]}]]],["p-42e9c740",[[1,"z-tooltip",{"position":[513],"dark":[516],"open":[1540],"bindTo":[1,"bind-to"]},[[0,"openChange","onPopoverOpenChange"]]]]],["p-8825d8e4",[[4,"z-aria-alert",{"mode":[1]}]]],["p-925fc6c3",[[1,"z-avatar",{"size":[1],"text":[1],"textColor":[1,"text-color"],"backgroundColor":[1,"background-color"],"image":[1025]}]]],["p-c9df8e5d",[[1,"z-cover-hero",{"variant":[513],"contentPosition":[513,"content-position"]}]]],["p-a815651c",[[1,"z-logo",{"width":[2],"height":[2],"imageAlt":[1,"image-alt"],"link":[1],"targetBlank":[4,"target-blank"],"mobileLogo":[4,"mobile-logo"]}]]],["p-5530ca81",[[1,"z-myz-card-footer",{"titolo":[1],"autori":[1],"isbn":[1],"faded":[4],"cardtype":[1],"opened":[4],"customContent":[4,"custom-content"],"isOpen":[32],"allowTooltipAuthors":[32]},[[0,"toggleClick","handleToggle"]]]]],["p-963f64a8",[[1,"z-myz-card-footer-sections"]]],["p-829539a5",[[1,"z-myz-card-list",{"listdata":[1]}]]],["p-063881e2",[[6,"z-offcanvas",{"variant":[513],"open":[1540],"transitiondirection":[513]}]]],["p-a64544de",[[1,"z-stepper"]]],["p-6d853df0",[[1,"z-stepper-item",{"index":[2],"href":[1],"pressed":[4],"disabled":[4]}]]],["p-5d88112c",[[6,"z-table-body"]]],["p-8d532866",[[1,"z-table-expanded-row",{"colSpan":[2,"col-span"]}]]],["p-a150a778",[[6,"z-table-footer"]]],["p-badf3f24",[[6,"z-table-head"]]],["p-74b71f61",[[6,"z-table-sticky-footer"]]],["p-950aa417",[[1,"z-toast-notification-list",{"position":[513],"newestontop":[4]}]]],["p-0bff6d57",[[1,"z-visually-hidden"]]],["p-8794c0c7",[[1,"z-table-header",{"columnId":[1,"column-id"],"padding":[513],"sortable":[4],"showButton":[4,"show-button"],"defaultSortDirection":[1,"default-sort-direction"],"sortDirection":[1025,"sort-direction"]},[[18,"click","handleOutsideClick"],[18,"click","handleClickHeaders"]]]]],["p-ea6c67f2",[[1,"z-table-cell",{"showButton":[4,"show-button"],"padding":[513],"isMenuOpened":[32]}]]],["p-64decd7d",[[6,"z-chip",{"icon":[1],"type":[513],"interactiveIcon":[513,"interactive-icon"],"disabled":[516]}]]],["p-4eb940ca",[[1,"z-alert",{"type":[1]}]]],["p-578f4d61",[[1,"z-dragdrop-area"]]],["p-a6b403f9",[[1,"z-ghost-loading"]]],["p-99ffd017",[[6,"z-table-empty-box",{"message":[1],"subtitle":[1]}]]],["p-702dd7b4",[[1,"z-myz-list-item",{"text":[1],"link":[1],"linktarget":[1],"icon":[1],"listitemid":[1],"action":[1],"underlined":[4]}]]],["p-d586adfc",[[1,"z-typography",{"level":[1],"variant":[1],"component":[1]}]]],["p-0aa553ea",[[1,"z-pocket",{"pocketid":[1],"status":[1025],"open":[64],"close":[64]},[[0,"pocketHeaderClick","handlePocketHeaderClick"],[0,"pocketHeaderPan","handlePocketHeaderPan"]]],[1,"z-pocket-body",{"pocketid":[1],"status":[1025]},[[16,"pocketToggle","handlePocketToggle"]]],[1,"z-pocket-header",{"pocketid":[1]}]]],["p-c51ebb01",[[1,"z-myz-card",{"faded":[4],"cardtype":[1],"ispressed":[4],"ishighlighted":[4]}],[1,"z-myz-card-body"],[1,"z-myz-card-cover",{"img":[1],"titolo":[1],"faded":[4],"defaultimg":[1]}],[1,"z-myz-card-header",{"titolo":[1],"faded":[4],"cardtype":[1],"allowTooltip":[32]}]]],["p-cb16715b",[[1,"z-popover",{"position":[513],"open":[1540],"bindTo":[1,"bind-to"],"showArrow":[516,"show-arrow"],"center":[516],"closable":[4],"currentPosition":[32]},[[8,"keyup","closePopoverWithKeyboard"],[18,"click","handleOutsideClick"]]]]],["p-9ad5616e",[[2,"z-divider",{"size":[1],"color":[1],"orientation":[1]}]]],["p-8cc7c2c7",[[1,"z-list-element",{"alignButton":[513,"align-button"],"clickable":[516],"dividerColor":[1,"divider-color"],"dividerType":[1,"divider-type"],"dividerSize":[1,"divider-size"],"expandable":[516],"expandableStyle":[1,"expandable-style"],"listElementId":[514,"list-element-id"],"size":[513],"color":[513],"disabled":[516],"isContextualMenu":[516,"is-contextual-menu"],"listElementPosition":[513,"list-element-position"],"listType":[513,"list-type"],"showInnerContent":[32]},[[4,"accessibleFocus","accessibleFocusHandler"]]],[1,"z-list",{"size":[513],"listType":[513,"list-type"]}],[1,"z-list-group",{"size":[513],"dividerType":[513,"divider-type"],"dividerSize":[513,"divider-size"],"dividerColor":[513,"divider-color"],"listType":[513,"list-type"]}]]]]'),e)));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as r}from"./p-0f55558e.js";const s=class{constructor(r){t(this,r),this.variant="regular"}render(){return r("z-typography",{tabIndex:0,component:this.component||"span",level:`b${this.level}`,variant:this.variant},r("slot",null))}};export{s as z_body}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as e}from"./p-0f55558e.js";import{I as s,e as r,f as o}from"./p-78d71789.js";import{h as a}from"./p-7ae0c21f.js";import"./p-51431ace.js";const h=class{constructor(e){t(this,e),this.comboboxChange=i(this,"comboboxChange",7),this.disabled=!1,this.hassearch=!1,this.noresultslabel="Nessun risultato",this.isopen=!1,this.isfixed=!1,this.closesearchtext="Chiudi",this.hascheckall=!1,this.checkalltext="Seleziona tutti",this.uncheckalltext="Deseleziona tutti",this.maxcheckableitems=0,this.renderItemsList=[],this.itemsList=[],this.inputType=s.TEXT,this.toggleComboBox=this.toggleComboBox.bind(this),this.closeFilterItems=this.closeFilterItems.bind(this)}watchItems(){this.itemsList="string"==typeof this.items?JSON.parse(this.items):this.items,this.selectedCounter=this.itemsList.filter((t=>t.checked)).length,this.updateRenderItemsList()}watchSearchValue(){this.filterItems(this.searchValue)}inputCheckListener(t){const i=t.detail.id.replace(`combo-checkbox-${this.inputid}-`,"");if("check-all"===i&&(!this.maxcheckableitems||this.maxcheckableitems>=this.itemsList.length))return this.checkAll(t.detail.checked);this.itemsList=this.itemsList.map((e=>(e.id===i&&(e.checked=t.detail.checked),e))),this.updateRenderItemsList(),this.emitComboboxChange()}emitComboboxChange(){this.comboboxChange.emit({id:this.inputid,items:this.itemsList})}componentWillLoad(){this.watchItems()}componentWillRender(){this.selectedCounter=this.itemsList.filter((t=>t.checked)).length}updateRenderItemsList(){this.searchValue?this.filterItems(this.searchValue):this.resetRenderItemsList()}resetRenderItemsList(){const t=[];this.itemsList.forEach((i=>{t.push(Object.assign({},i))})),this.renderItemsList=t}filterItems(t){if(!t)return this.closeFilterItems();this.resetRenderItemsList(),this.renderItemsList=this.renderItemsList.filter((i=>{const e=i.name.toUpperCase().indexOf(t.toUpperCase()),s=e+t.length,r=i.name.substring(0,e)+i.name.substring(e,s).bold()+i.name.substring(s,i.name.length);return i.name=r,e>=0}))}checkAll(t=!0){this.itemsList=this.itemsList.map((i=>Object.assign(Object.assign({},i),{checked:t}))),this.resetRenderItemsList(),this.emitComboboxChange()}closeFilterItems(){this.searchValue="",this.resetRenderItemsList()}toggleComboBox(){this.isopen=!this.isopen}renderHeader(){return e("div",{class:"header",onClick:()=>this.toggleComboBox(),onKeyDown:t=>{t.keyCode===r.SPACE&&t.preventDefault()},onKeyUp:t=>a(t,this.toggleComboBox),role:"button",tabindex:0},e("p",{class:"body-3"},this.label,e("span",null,this.selectedCounter>0&&` (${this.selectedCounter})`)),e("z-icon",{name:"caret-down",width:18,height:18}))}renderContent(){if(this.isopen)return e("div",{class:"open-combo-data"},this.hassearch&&this.renderSearchInput(),this.hascheckall&&this.renderCheckAll(),this.renderItems())}renderItems(){if(this.isopen)return e("div",{class:this.searchValue&&"search",tabindex:-1},this.renderList(this.renderItemsList),this.searchValue&&this.renderCloseButton())}renderItem(t,i,r){return e("z-myz-list-item",{id:t.id,listitemid:t.id,action:`combo-li-${this.inputid}`,underlined:i!==r-1},e("z-input",{type:s.CHECKBOX,checked:t.checked,htmlid:`combo-checkbox-${this.inputid}-${t.id}`,label:t.name,disabled:!t.checked&&this.maxcheckableitems&&this.maxcheckableitems===this.selectedCounter}))}renderList(t){if(t)return!t.length&&this.searchValue?this.renderNoSearchResults():this.hasgroupitems?this.renderGroups(this.itemsList):e("ul",null,t.map(((i,e)=>this.renderItem(i,e,t.length))))}renderGroups(t){const i=t.reduce(((i,e,s)=>{var r;const{category:o}=e,a=this.renderItem(e,s,t.length);return i[o]=null!==(r=i[o])&&void 0!==r?r:[],i[o].push(a),i}),{}),s=Object.entries(i).map((([t,i])=>e("z-list-group",{"divider-type":o.ELEMENT},e("span",{class:"body-3-sb z-list-group-title",slot:"header-title"},t),i.map((t=>t)))));return e("ul",null,s)}renderNoSearchResults(){return e("ul",null,e("z-myz-list-item",{id:"no-results",text:this.noresultslabel,listitemid:"no-results",icon:"multiply-circle"}))}renderCloseButton(){return e("div",null,e("a",{onClick:()=>this.closeFilterItems(),onKeyUp:t=>a(t,this.closeFilterItems),role:"button",tabindex:0},this.closesearchtext))}renderSearchInput(){if(this.isopen)return e("z-input",{htmlid:`${this.inputid}_search`,label:this.searchlabel,placeholder:this.searchplaceholder,htmltitle:this.searchtitle,type:this.inputType,value:this.searchValue,message:!1,onInputChange:t=>{if(27===t.detail.keycode)return this.closeFilterItems();this.searchValue=t.detail.value}})}renderCheckAll(){if(this.searchValue)return;const t=this.selectedCounter===this.itemsList.length;return e("div",{class:"check-all-wrapper"},e("z-input",{type:s.CHECKBOX,checked:t,htmlid:`combo-checkbox-${this.inputid}-check-all`,label:t?this.uncheckalltext:this.checkalltext,disabled:this.maxcheckableitems&&this.maxcheckableitems<this.itemsList.length}))}render(){return e("div",{"data-action":`combo-${this.inputid}`,class:{open:this.isopen,fixed:this.isfixed,disabled:this.disabled},id:this.inputid},this.renderHeader(),!this.disabled&&this.renderContent())}static get watchers(){return{items:["watchItems"],searchValue:["watchSearchValue"]}}};h.style=":host{display:block}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--bg-grey-700);margin:0;background-color:var(--bg-white);border-radius:var(--border-radius-small);cursor:pointer}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--gray700);outline-offset:-2px}:host>div.open>div.header:focus:focus-visible{box-shadow:none}:host>div>div.header:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>p.body-3{padding:var(--space-unit) 0;margin:0;color:var(--text-grey-800)}:host>div>.header>p.body-3>span{font-weight:var(--font-sb)}:host>div>.header>z-icon{fill:var(--text-grey-800);transform:rotate(360deg);transition:all 200ms linear}:host>div.open>.header{border:var(--border-size-small) solid var(--blue500);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}:host>div.disabled{pointer-events:none}:host>div.disabled .header{border-color:var(--color-disabled01);fill:var(--color-disabled01)}:host>div.disabled .header>p.body-3{color:var(--text-grey-700)}:host>div.disabled .header>z-icon:last-child{fill:var(--color-disabled01)}:host>div.open>.header>z-icon{fill:var(--text-grey-800);transform:rotate(180deg);transition:all 200ms linear}:host>div.open>div.open-combo-data{position:relative;z-index:12;padding:var(--space-unit) calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--gray200);border-top:0;background-color:var(--bg-white);border-radius:0}:host>div.open>div.open-combo-data>div{overflow:auto;max-height:235px;padding:0;scrollbar-color:var(--myz-blue) var(--gray200);scrollbar-width:thin}:host>div.open>div.open-combo-data>z-input{width:100%;margin-bottom:calc(var(--space-unit) * 2)}:host>div.open>div.open-combo-data>div>ul{max-height:235px;padding:0 3px;margin:0}::-webkit-scrollbar{width:10px;background:linear-gradient(90deg, var(--bg-white) 2px, var(--bg-grey-200) 4px, var(--bg-white) 8px);border-radius:var(--border-radius)}::-webkit-scrollbar-thumb{width:10px;background-color:var(--myz-blue);border-radius:var(--border-radius)}:host>div.open>z-input{position:relative;z-index:1;width:238px;margin:0 calc(var(--space-unit) * 2);color:var(--myz-blue)}:host>div.open>div.open-combo-data>div.search{overflow:hidden;max-height:auto;margin-top:0;box-shadow:1px 1px 4px 2px rgb(217 222 227 / 50%)}:host>div.open>div.open-combo-data>div.search>ul{overflow:auto;max-height:180px;padding:var(--space-unit) calc(var(--space-unit) * 2);scrollbar-color:var(--myz-blue) var(--bg-grey-200);scrollbar-width:thin}:host>div.open>div.open-combo-data>div.search>div{display:flex;justify-content:center}:host>div.open>div.open-combo-data>div.search>div>a{display:inline-block;height:44px;color:var(--myz-blue);cursor:pointer;font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-sb);line-height:44px;text-align:center;text-transform:uppercase}:host>div.open>div.open-combo-data>div.check-all-wrapper{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--gray800);margin-bottom:var(--space-unit);text-align:left}";export{h as z_combobox}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,c as o,h as a}from"./p-0f55558e.js";const e=class{constructor(a){r(this,a),this.fileDropped=o(this,"fileDropped",7)}fileDroppedHandler(r){this.fileDropped.emit(r)}renderOnDragOverMessage(){return a("div",{class:"dragover-container"},a("div",{class:"dragover-message"},a("span",{class:"body-2-sb"},"Rilascia i file in questa area per allegarli.")))}render(){return a("div",{tabIndex:0,ref:r=>this.dragDropContainer=r,class:"dragdrop",onDragOver:r=>{r.preventDefault(),this.dragDropContainer.classList.add("dragover")},onDragLeave:()=>{this.dragDropContainer.classList.remove("dragover")},onDrop:r=>{r.preventDefault(),r.dataTransfer.files.length&&(this.dragDropContainer.classList.remove("dragover"),this.fileDroppedHandler(r.dataTransfer.files))}},this.renderOnDragOverMessage(),a("slot",null))}};e.style=":host{margin-top:calc(var(--space-unit) * 3);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.dragdrop{position:relative;display:flex;height:228px;flex-direction:column;border-color:var(--color-surface04);background-color:var(--color-surface02);background-image:url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='2' ry='2' stroke='%23CACCCEFF' stroke-width='2' stroke-dasharray='15%2c 10%2c 14%2c 11' stroke-dashoffset='3' stroke-linecap='square'/%3e%3c/svg%3e\");border-radius:2px;color:var(--color-text01)}:host>.dragdrop.dragover *{pointer-events:none}:host>.dragdrop .dragover-container{position:absolute;z-index:10;top:0;left:0;display:none;width:100%;height:100%;background-color:var(--color-primary03);box-shadow:var(--shadow-focus-primary)}:host>.dragdrop .dragover-container .dragover-message{padding:10px 28px;background-color:var(--color-link-primary);color:var(--color-text04)}:host>.dragdrop.dragover .dragover-container{display:flex;align-items:center;justify-content:center}";export{e as z_dragdrop_area}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as a,H as l,a as i}from"./p-0f55558e.js";import{B as o,b as r}from"./p-78d71789.js";import{m as s}from"./p-51431ace.js";const d=class{constructor(a){t(this,a),this.callToAction=e(this,"callToAction",7),this.callToActionTwo=e(this,"callToActionTwo",7),this.errorMessage="Siamo spiacenti, non siamo riusciti a caricare il contenuto richiesto",this.bordered=!1,this.columnSticky=!1,this.empty=!1,this.error=!1,this.headerSticky=!1,this.message="Siamo spiacenti, al momento non sono presenti dati da visualizzare",this.subtitle=""}handleResize(){this.isMobile=window.innerWidth<=s}handleOrientationChange(){this.isMobile=screen.width<=s}componentWillLoad(){var t;this.isMobile=window.innerWidth<=s;const e=this.host.querySelector('[slot="table-body"]');this.hasTableBody=!!(null===(t=null==e?void 0:e.children)||void 0===t?void 0:t.length),e&&!this.hasTableBody&&e.remove()}componentWillRender(){this.host.setAttribute("role","table")}renderError(t){const e=this.lines?`calc(40px * ${this.lines})`:"auto";return a(l,null,a("div",{class:t},a("slot",{name:"table-header"})),a("z-table-error",null,a("div",{class:"error-content",style:{minHeight:e}},a("slot",{name:"error-image"}),a("div",{class:"text"},a("span",{class:"body-3-sb error-message"},this.errorMessage),a("slot",{name:"error-action"})))))}renderEmpty(t){const e=this.isMobile?r.SMALL:r.BIG,i=this.hasTableBody?"table-content":"";return this.hasTableBody?a(l,null,a("div",{class:t},a("slot",{name:"table-header"}),a("div",{class:i},a("slot",{name:"table-body"}),a("z-table-empty-box",{class:this.bordered&&"bordered",message:this.message,subtitle:this.subtitle},!!this.callToActionLabel&&a("z-button",{slot:"cta1",variant:o.TERTIARY,onClick:()=>this.callToAction.emit(),size:e},this.callToActionLabel),!!this.callToActionTwoLabel&&a("z-button",{slot:"cta2",variant:o.TERTIARY,onClick:()=>this.callToActionTwo.emit(),size:e},this.callToActionTwoLabel))))):a(l,null,a("div",{class:t},a("slot",{name:"table-header"})),a("z-table-empty-box",{class:this.bordered&&"bordered",message:this.message,subtitle:this.subtitle},!!this.callToActionLabel&&a("z-button",{slot:"cta1",variant:o.TERTIARY,onClick:()=>this.callToAction.emit(),size:e},this.callToActionLabel),!!this.callToActionTwoLabel&&a("z-button",{slot:"cta2",variant:o.TERTIARY,onClick:()=>this.callToActionTwo.emit(),size:e},this.callToActionTwoLabel)))}render(){const t=`table ${this.empty?"table-empty":""} ${this.bordered?"table-bordered":""}\n ${this.columnSticky?"table-column-sticky":""}\n ${this.headerSticky?"table-header-sticky":""}`;return this.error?this.renderError(t):this.empty?this.renderEmpty(t):a(l,null,a("div",{class:t},a("slot",null)),a("slot",{name:"sticky-footer"}))}static get assetsDirs(){return["assets"]}get host(){return i(this)}};d.style="z-table{display:block;width:100%;background-color:var(--color-white);font-family:var(--dashboard-font);font-weight:var(--font-rg);overflow-x:auto}z-table>div.table{display:table;width:100%;border-collapse:separate}z-table>div.table-bordered>z-table-body>z-table-row>z-table-cell:not(:last-child),z-table>div.table-bordered>z-table-head>z-table-header-row>z-table-header:not(:last-child){border-right:var(--border-size-small) solid var(--bg-grey-200)}z-table>div>z-table-body>z-table-row[expandable]>z-table-cell:first-child,z-table>div>z-table-head>z-table-header-row[expandable]>z-table-header:first-child{border-right:none}z-table>div>z-table-body>z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table>div>z-table-body>z-table-row[expanded]+z-table-expanded-row{border-bottom:1px solid var(--gray200)}z-table>div.table-column-sticky>z-table-body>z-table-row>z-table-cell:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{position:sticky;z-index:1;left:0;box-shadow:1px 0 4px -1px rgb(66 69 72 / 40%)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{position:sticky;z-index:2;top:0;box-shadow:0 2px 3px -3px rgb(66 69 72 / 40%)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{z-index:5}z-table-body{width:auto;background-color:var(--color-white)}z-table-empty-box{display:flex;flex-direction:column;flex-grow:1;border-bottom:var(--border-size-small) solid var(--bg-grey-200)}z-table-empty-box.bordered{border-left:var(--border-size-small) solid var(--bg-grey-200)}.error-message{margin-top:calc(var(--space-unit) * 2)}.table-content{display:flex;width:100%;flex-direction:row}.error-content{display:flex;padding:calc(var(--space-unit) * 3);font-family:var(--dashboard-font)}.error-content>img{width:244px;height:188px;margin-right:calc(var(--space-unit) * 3)}@media only screen and (max-width: 768px){z-table>div.table-empty{display:none}.error-content{display:flex;flex-direction:column}.error-content>img{width:auto;height:auto}.text{padding:calc(var(--space-unit) * 3) 0}}";export{d as z_table}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as t,H as s,a as c}from"./p-0f55558e.js";const e=class{constructor(t){a(this,t),this.message="Siamo spiacenti, al momento non sono presenti dati da visualizzare.",this.subtitle=""}componentWillLoad(){this.hasCta1Slot=!!this.hostElement.querySelector('[slot="cta1"]'),this.hasCta2Slot=!!this.hostElement.querySelector('[slot="cta2"]')}render(){return t(s,null,t("span",{class:"body-3-sb"},this.message),t("br",null),!!this.subtitle&&t("span",{class:"body-4"},this.subtitle),(!!this.hasCta1Slot||!!this.hasCta2Slot)&&t("div",{class:{cta:!0,"has-2-cta":!!this.hasCta1Slot&&!!this.hasCta2Slot}},t("slot",{name:"cta1"}),t("slot",{name:"cta2"})))}get hostElement(){return c(this)}};e.style=".sc-z-table-empty-box-h{display:block;padding:calc(var(--space-unit)) calc(var(--space-unit) * 3) calc(var(--space-unit) * 3) calc(var(--space-unit) * 3);background-color:var(--bg-white)}.sc-z-table-empty-box-s>*{margin-top:var(--space-unit)}.cta.sc-z-table-empty-box{display:flex;flex-direction:row;margin-top:calc(var(--space-unit) / 2)}.cta.has-2-cta.sc-z-table-empty-box{flex-direction:column}@media only screen and (min-width: 768px){.sc-z-table-empty-box-h{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 7) calc(var(--space-unit) * 3)\n calc(var(--space-unit) * 7)}.sc-z-table-empty-box-s>*{margin-right:calc(var(--space-unit) * 2)}.cta.sc-z-table-empty-box{margin-top:var(--space-unit)}.cta.has-2-cta.sc-z-table-empty-box{flex-direction:row}}";export{e as z_table_empty_box}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as r}from"./p-0f55558e.js";const s=class{constructor(r){t(this,r),this.variant="regular"}render(){return r("z-typography",{tabIndex:0,component:this.component||`h${this.level}`,level:`h${this.level}`,variant:this.variant},r("slot",null))}};export{s as z_heading}
|