@zanichelli/delta_share 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["z-modal-login.cjs",[[6,"z-modal-login",{"heading":[1],"status":[1025],"message":[1025],"externalProviderCheck":[32]}]]],["z-combobox.cjs",[[1,"z-combobox",{"inputid":[1],"items":[1],"label":[1],"hassearch":[4],"searchlabel":[1],"searchplaceholder":[1],"searchtitle":[1],"noresultslabel":[1],"isopen":[1028],"isfixed":[4],"closesearchtext":[1],"hascheckall":[4],"checkalltext":[1],"uncheckalltext":[1],"maxcheckableitems":[2],"searchValue":[32],"selectedCounter":[32],"renderItemsList":[32]},[[0,"inputCheck","inputCheckListener"]]]]],["z-header.cjs",[[1,"z-header",{"intlinkdata":[1],"extlinkdata":[1],"userdata":[1],"ismyz":[4],"logolink":[1],"imagealt":[1],"activeintlinkid":[1],"activesublinkid":[1],"hideloginbutton":[4],"activeMenuItem":[32],"currentMenuItem":[32],"isMobile":[32],"isMenuMobileOpen":[32]},[[9,"resize","handleResize"],[2,"zListItemLinkClick","handleZListItemLinkClick"],[2,"zListItemClick","handleZListItemClick"]]]]],["z-footer.cjs",[[1,"z-footer",{"data":[1],"copyrightuser":[1]}]]],["z-cookiebar.cjs",[[1,"z-cookiebar",{"cookiepolicyurl":[1],"hide":[4],"callback":[16]}]]],["z-pagination-bar.cjs",[[1,"z-pagination-bar",{"pages":[2],"visiblepages":[2],"currentpage":[1026],"startpage":[1026],"historyraw":[1],"listhistoryrow":[1040],"currentPages":[32]}]]],["z-panel-elem.cjs",[[1,"z-panel-elem",{"elemid":[1],"imgurl":[1],"imgalt":[1],"linkicon":[1],"linklabel":[1],"url":[1],"target":[1],"isdisabled":[4],"descr_slot_name":[1]}]]],["z-registro-table-cell.cjs",[[6,"z-registro-table-cell",{"showButton":[4,"show-button"],"isMenuOpened":[32]}]]],["z-user-dropdown.cjs",[[1,"z-user-dropdown",{"logged":[4],"userfullname":[1],"menucontent":[1],"theme":[1],"ismenuopen":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"],[8,"click","handleClickOutside"]]]]],["z-app-switcher.cjs",[[1,"z-app-switcher",{"theme":[1],"isopen":[32]}]]],["z-button-sort.cjs",[[1,"z-button-sort",{"buttonid":[1],"label":[1],"desclabel":[1],"counter":[2],"sortlabelasc":[1],"sortlabeldesc":[1],"isselected":[1028],"sortasc":[1028]}]]],["z-card-alert.cjs",[[1,"z-card-alert",{"iconname":[1],"contenttext":[1],"actiontext":[1],"type":[1]}]]],["z-card-icon.cjs",[[1,"z-card-icon",{"icon":[1],"isdisabled":[4]}]]],["z-heading.cjs",[[1,"z-heading",{"level":[2],"variant":[1],"component":[1]}]]],["z-icon-package.cjs",[[1,"z-icon-package"]]],["z-menu.cjs",[[1,"z-menu",{"active":[516],"floating":[516],"open":[32],"hasHeader":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-menu-section.cjs",[[1,"z-menu-section",{"active":[516],"open":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-toggle-button.cjs",[[1,"z-toggle-button",{"label":[1],"isdisabled":[4],"avoidclick":[4],"isOpen":[32]}]]],["z-app-header.cjs",[[1,"z-app-header"]]],["z-app-topbar.cjs",[[1,"z-app-topbar",{"theme":[1],"logged":[4],"hashtag":[1],"zLinksValues":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]]]],["z-card.cjs",[[1,"z-card",{"faded":[4],"cardtype":[1],"ispressed":[4],"ishighlighted":[4]}]]],["z-card-body.cjs",[[1,"z-card-body"]]],["z-card-cover.cjs",[[1,"z-card-cover",{"img":[1],"titolo":[1],"faded":[4],"defaultimg":[1]}]]],["z-card-footer.cjs",[[1,"z-card-footer",{"titolo":[1],"autori":[1],"isbn":[1],"faded":[4],"cardtype":[1],"isOpen":[32],"allowTooltipAuthors":[32]},[[0,"toggleClick","handleToggle"]]]]],["z-card-header.cjs",[[1,"z-card-header",{"titolo":[1],"faded":[4],"cardtype":[1],"allowTooltip":[32]}]]],["z-card-list.cjs",[[1,"z-card-list",{"listdata":[1]}]]],["z-chip.cjs",[[1,"z-chip",{"regulartext":[1],"boldtext":[2]}]]],["z-divider.cjs",[[2,"z-divider",{"size":[1],"color":[1],"orientation":[1]}]]],["z-registro-table.cjs",[[4,"z-registro-table",{"bordered":[4],"columnSticky":[4,"column-sticky"],"headerSticky":[4,"header-sticky"]}]]],["z-registro-table-body.cjs",[[6,"z-registro-table-body"]]],["z-registro-table-footer.cjs",[[6,"z-registro-table-footer"]]],["z-registro-table-head.cjs",[[6,"z-registro-table-head"]]],["z-registro-table-header.cjs",[[6,"z-registro-table-header"]]],["z-registro-table-row.cjs",[[6,"z-registro-table-row"]]],["z-registro-table-sticky-footer.cjs",[[6,"z-registro-table-sticky-footer"]]],["z-stepper.cjs",[[1,"z-stepper"]]],["z-stepper-item.cjs",[[1,"z-stepper-item",{"index":[2],"href":[1],"pressed":[4],"disabled":[4]}]]],["z-tooltip.cjs",[[1,"z-tooltip",{"content":[1],"type":[1]}]]],["z-candybar.cjs",[[1,"z-candybar"]]],["z-pagination-page.cjs",[[1,"z-pagination-page",{"pageid":[1],"value":[2],"isselected":[4],"isdisabled":[4],"isvisited":[4]}]]],["license-activation_16.cjs",[[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"],"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"]]],[1,"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-body",{"level":[2],"variant":[1],"component":[1]}],[1,"z-modal",{"modalid":[1],"modaltitle":[1],"modalsubtitle":[1]}],[1,"z-typography",{"component":[1],"variant":[1],"level":[1]}],[2,"z-input",{"htmlid":[1],"type":[1],"name":[1],"label":[1],"value":[1025],"disabled":[4],"readonly":[4],"required":[4],"checked":[1028],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"labelafter":[4],"typingtimeout":[2],"items":[1],"autocomplete":[8],"multiple":[4],"hasclearicon":[4],"icon":[1],"isTyping":[32],"textareaWrapperHover":[32],"textareaWrapperFocus":[32],"passwordHidden":[32],"getValue":[64],"setValue":[64],"isChecked":[64]},[[4,"inputCheck","inputCheckListener"]]],[1,"z-select",{"htmlid":[1],"items":[1],"name":[1],"label":[1],"disabled":[4],"readonly":[4],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"autocomplete":[8],"multiple":[4],"noresultslabel":[1],"isOpen":[32],"selectedItems":[32],"searchString":[32],"getSelectedItems":[64],"getValue":[64],"setValue":[64]}],[1,"z-button",{"htmlid":[1],"name":[1],"disabled":[516],"type":[1],"variant":[513],"icon":[1],"size":[513],"issmall":[516],"square":[516]}],[1,"z-button-filter",{"filtername":[1],"isfixed":[4],"hasicon":[4],"filterid":[1],"issmall":[4]}],[1,"z-input-message",{"message":[1],"status":[1]}],[1,"z-input-label",{"value":[1],"disabled":[4]}],[1,"z-link",{"htmlid":[1],"href":[1],"target":[1],"htmltabindex":[2],"isdisabled":[4],"isactive":[4],"iswhite":[4],"textcolor":[1],"icon":[1],"big":[4]}],[1,"z-icon",{"name":[1],"height":[2],"width":[2],"iconid":[1]}]]],["z-list_2.cjs",[[1,"z-list",{"inputrawdata":[1025],"list":[1040]}],[1,"z-menu-dropdown",{"nomeutente":[1],"menucontent":[1],"buttonid":[1],"ismenuopen":[32]}]]],["z-logo.cjs",[[1,"z-logo",{"width":[2],"height":[2],"imagealt":[1],"link":[1],"targetblank":[4]}]]],["z-footer-link_3.cjs",[[1,"z-footer-section",{"name":[1],"isOpen":[32]}],[1,"z-footer-link",{"href":[1]}],[1,"z-footer-social",{"icon":[1],"href":[1],"description":[1]}]]],["z-list-item.cjs",[[1,"z-list-item",{"text":[1],"link":[1],"linktarget":[1],"icon":[1],"listitemid":[1],"action":[1],"underlined":[4]}]]]], options);
18
+ return index.bootstrapLazy([["z-modal-login.cjs",[[6,"z-modal-login",{"heading":[1],"status":[1025],"message":[1025],"externalProviderCheck":[32]}]]],["z-combobox.cjs",[[1,"z-combobox",{"inputid":[1],"items":[1],"label":[1],"hassearch":[4],"searchlabel":[1],"searchplaceholder":[1],"searchtitle":[1],"noresultslabel":[1],"isopen":[1028],"isfixed":[4],"closesearchtext":[1],"hascheckall":[4],"checkalltext":[1],"uncheckalltext":[1],"maxcheckableitems":[2],"searchValue":[32],"selectedCounter":[32],"renderItemsList":[32]},[[0,"inputCheck","inputCheckListener"]]]]],["z-header.cjs",[[1,"z-header",{"intlinkdata":[1],"extlinkdata":[1],"userdata":[1],"ismyz":[4],"logolink":[1],"imagealt":[1],"activeintlinkid":[1],"activesublinkid":[1],"hideloginbutton":[4],"activeMenuItem":[32],"currentMenuItem":[32],"isMobile":[32],"isMenuMobileOpen":[32]},[[9,"resize","handleResize"],[2,"zListItemLinkClick","handleZListItemLinkClick"],[2,"zListItemClick","handleZListItemClick"]]]]],["z-footer.cjs",[[1,"z-footer",{"data":[1],"copyrightuser":[1]}]]],["z-cookiebar.cjs",[[1,"z-cookiebar",{"cookiepolicyurl":[1],"hide":[4],"callback":[16]}]]],["z-pagination-bar.cjs",[[1,"z-pagination-bar",{"pages":[2],"visiblepages":[2],"currentpage":[1026],"startpage":[1026],"historyraw":[1],"listhistoryrow":[1040],"currentPages":[32]}]]],["z-panel-elem.cjs",[[1,"z-panel-elem",{"elemid":[1],"imgurl":[1],"imgalt":[1],"linkicon":[1],"linklabel":[1],"url":[1],"target":[1],"isdisabled":[4],"descr_slot_name":[1]}]]],["z-registro-table-cell.cjs",[[6,"z-registro-table-cell",{"showButton":[4,"show-button"],"isMenuOpened":[32]}]]],["z-user-dropdown.cjs",[[1,"z-user-dropdown",{"logged":[4],"userfullname":[1],"menucontent":[1],"theme":[1],"ismenuopen":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"],[8,"click","handleClickOutside"]]]]],["z-app-switcher.cjs",[[1,"z-app-switcher",{"theme":[1],"isopen":[32]}]]],["z-button-sort.cjs",[[1,"z-button-sort",{"buttonid":[1],"label":[1],"desclabel":[1],"counter":[2],"sortlabelasc":[1],"sortlabeldesc":[1],"isselected":[1028],"sortasc":[1028]}]]],["z-card-alert.cjs",[[1,"z-card-alert",{"iconname":[1],"contenttext":[1],"actiontext":[1],"type":[1]}]]],["z-card-icon.cjs",[[1,"z-card-icon",{"icon":[1],"isdisabled":[4]}]]],["z-heading.cjs",[[1,"z-heading",{"level":[2],"variant":[1],"component":[1]}]]],["z-icon-package.cjs",[[1,"z-icon-package"]]],["z-menu.cjs",[[1,"z-menu",{"active":[516],"floating":[516],"open":[32],"hasHeader":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-menu-section.cjs",[[1,"z-menu-section",{"active":[516],"open":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-toggle-button.cjs",[[1,"z-toggle-button",{"label":[1],"isdisabled":[4],"avoidclick":[4],"isOpen":[32]}]]],["z-app-header.cjs",[[1,"z-app-header"]]],["z-app-topbar.cjs",[[1,"z-app-topbar",{"theme":[1],"logged":[4],"hashtag":[1],"zLinksValues":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]]]],["z-card.cjs",[[1,"z-card",{"faded":[4],"cardtype":[1],"ispressed":[4],"ishighlighted":[4]}]]],["z-card-body.cjs",[[1,"z-card-body"]]],["z-card-cover.cjs",[[1,"z-card-cover",{"img":[1],"titolo":[1],"faded":[4],"defaultimg":[1]}]]],["z-card-footer.cjs",[[1,"z-card-footer",{"titolo":[1],"autori":[1],"isbn":[1],"faded":[4],"cardtype":[1],"isOpen":[32],"allowTooltipAuthors":[32]},[[0,"toggleClick","handleToggle"]]]]],["z-card-header.cjs",[[1,"z-card-header",{"titolo":[1],"faded":[4],"cardtype":[1],"allowTooltip":[32]}]]],["z-card-list.cjs",[[1,"z-card-list",{"listdata":[1]}]]],["z-chip.cjs",[[1,"z-chip",{"regulartext":[1],"boldtext":[2]}]]],["z-divider.cjs",[[2,"z-divider",{"size":[1],"color":[1],"orientation":[1]}]]],["z-registro-table.cjs",[[4,"z-registro-table",{"bordered":[4],"columnSticky":[4,"column-sticky"],"headerSticky":[4,"header-sticky"]}]]],["z-registro-table-body.cjs",[[6,"z-registro-table-body"]]],["z-registro-table-footer.cjs",[[6,"z-registro-table-footer"]]],["z-registro-table-head.cjs",[[6,"z-registro-table-head"]]],["z-registro-table-header.cjs",[[6,"z-registro-table-header"]]],["z-registro-table-row.cjs",[[6,"z-registro-table-row"]]],["z-registro-table-sticky-footer.cjs",[[6,"z-registro-table-sticky-footer"]]],["z-stepper.cjs",[[1,"z-stepper"]]],["z-stepper-item.cjs",[[1,"z-stepper-item",{"index":[2],"href":[1],"pressed":[4],"disabled":[4]}]]],["z-tooltip.cjs",[[1,"z-tooltip",{"content":[1],"type":[1]}]]],["z-candybar.cjs",[[1,"z-candybar"]]],["z-pagination-page.cjs",[[1,"z-pagination-page",{"pageid":[1],"value":[2],"isselected":[4],"isdisabled":[4],"isvisited":[4]}]]],["license-activation_16.cjs",[[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"]]],[1,"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-body",{"level":[2],"variant":[1],"component":[1]}],[1,"z-modal",{"modalid":[1],"modaltitle":[1],"modalsubtitle":[1]}],[1,"z-typography",{"component":[1],"variant":[1],"level":[1]}],[2,"z-input",{"htmlid":[1],"type":[1],"name":[1],"label":[1],"value":[1025],"disabled":[4],"readonly":[4],"required":[4],"checked":[1028],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"labelafter":[4],"typingtimeout":[2],"items":[1],"autocomplete":[8],"multiple":[4],"hasclearicon":[4],"icon":[1],"isTyping":[32],"textareaWrapperHover":[32],"textareaWrapperFocus":[32],"passwordHidden":[32],"getValue":[64],"setValue":[64],"isChecked":[64]},[[4,"inputCheck","inputCheckListener"]]],[1,"z-select",{"htmlid":[1],"items":[1],"name":[1],"label":[1],"disabled":[4],"readonly":[4],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"autocomplete":[8],"multiple":[4],"noresultslabel":[1],"isOpen":[32],"selectedItems":[32],"searchString":[32],"getSelectedItems":[64],"getValue":[64],"setValue":[64]}],[1,"z-button",{"htmlid":[1],"name":[1],"disabled":[516],"type":[1],"variant":[513],"icon":[1],"size":[513],"issmall":[516],"square":[516]}],[1,"z-button-filter",{"filtername":[1],"isfixed":[4],"hasicon":[4],"filterid":[1],"issmall":[4]}],[1,"z-input-message",{"message":[1],"status":[1]}],[1,"z-input-label",{"value":[1],"disabled":[4]}],[1,"z-link",{"htmlid":[1],"href":[1],"target":[1],"htmltabindex":[2],"isdisabled":[4],"isactive":[4],"iswhite":[4],"textcolor":[1],"icon":[1],"big":[4]}],[1,"z-icon",{"name":[1],"height":[2],"width":[2],"iconid":[1]}]]],["z-list_2.cjs",[[1,"z-list",{"inputrawdata":[1025],"list":[1040]}],[1,"z-menu-dropdown",{"nomeutente":[1],"menucontent":[1],"buttonid":[1],"ismenuopen":[32]}]]],["z-logo.cjs",[[1,"z-logo",{"width":[2],"height":[2],"imagealt":[1],"link":[1],"targetblank":[4]}]]],["z-footer-link_3.cjs",[[1,"z-footer-section",{"name":[1],"isOpen":[32]}],[1,"z-footer-link",{"href":[1]}],[1,"z-footer-social",{"icon":[1],"href":[1],"description":[1]}]]],["z-list-item.cjs",[[1,"z-list-item",{"text":[1],"link":[1],"linktarget":[1],"icon":[1],"listitemid":[1],"action":[1],"underlined":[4]}]]]], options);
19
19
  });
@@ -215,8 +215,6 @@ class Env {
215
215
  buildApiV3Url() {
216
216
  if (this.zanienv === "prod")
217
217
  return "https://api-catalogo.zanichelli.it/v3";
218
- if (this.zanienv === "local")
219
- return "https://api-catalogo.zanichelli.local/v3";
220
218
  return `https://${this.zanienv}-api-catalogo.zanichelli.it/v3`;
221
219
  }
222
220
  buildUrlS3ImagesFolder() {
@@ -1840,7 +1838,7 @@ const LicenseActivation = class {
1840
1838
  return (index.h("license-activation-modal", { id: `${this.host.id}-modal`, "modal-title": this.cms["newdashboard.licenseActivation.modalTitle"], onActivationModalClose: () => this.handleLicenseModalClose(), resetStore: this.resetStore }, this.renderLicenseActivationForm("modal")));
1841
1839
  }
1842
1840
  retrieveTextsObject() {
1843
- const { inputMessage, inputLabel, inputPlaceholder, buttonLabel, isMobile, additionalDescription, buttonIcon, previewButtonLabel, previewButtonIcon, previewButtonSize, } = this;
1841
+ const { inputMessage, inputLabel, inputPlaceholder, buttonLabel, isMobile, additionalDescription, buttonIcon, previewInputPlaceholder, previewButtonLabel, previewButtonIcon, previewButtonSize, } = this;
1844
1842
  const { licenseActivationStatus } = this.licenseActivationState;
1845
1843
  return {
1846
1844
  inputStatus: this.mapInputStatus(licenseActivationStatus),
@@ -1853,6 +1851,7 @@ const LicenseActivation = class {
1853
1851
  ? buttonLabel || this.cms["newdashboard.licenseActivation.submitLabel"]
1854
1852
  : this.cms["newdashboard.onboarding.licenseActivation.submitLabel"],
1855
1853
  buttonIcon,
1854
+ previewInputPlaceholder,
1856
1855
  previewButtonLabel,
1857
1856
  previewButtonIcon,
1858
1857
  previewButtonSize,
@@ -1875,16 +1874,16 @@ const LicenseActivation = class {
1875
1874
  return (index.h("z-button", { onClick: () => this.handleMobileButtonClick() }, this.cms["newdashboard.onboarding.licenseActivation.mobileSubmitLabel"]));
1876
1875
  }
1877
1876
  render() {
1878
- if (this.isMobile && this.variant !== "button") {
1877
+ if (this.isMobile && this.variant !== "preview") {
1879
1878
  return (index.h(index.Host, null, this.forceModal
1880
1879
  ? this.renderLicenseActivationModal()
1881
1880
  : this.renderMobileButton(), this.variant === "box" &&
1882
1881
  this.modalState === "open" &&
1883
1882
  this.renderLicenseActivationModal()));
1884
1883
  }
1885
- return (index.h(index.Host, null, this.variant === "box" || this.variant === "button"
1884
+ return (index.h(index.Host, null, this.variant === "box" || this.variant === "preview"
1886
1885
  ? this.renderLicenseActivationBox(this.variant)
1887
- : this.modalState === "open" && this.renderLicenseActivationModal(), (this.variant === "box" || this.variant === "button") &&
1886
+ : this.modalState === "open" && this.renderLicenseActivationModal(), (this.variant === "box" || this.variant === "preview") &&
1888
1887
  this.modalState === "open" &&
1889
1888
  this.submitClicked &&
1890
1889
  this.renderLicenseActivationModal()));
@@ -1921,7 +1920,7 @@ const LicenseActivationBox = class {
1921
1920
  };
1922
1921
  LicenseActivationBox.style = licenseActivationBoxCss;
1923
1922
 
1924
- const licenseActivationFormCss = ":host{display:block;padding:calc(var(--space-unit) * 2)}:host>div>z-body{margin-bottom:calc(var(--space-unit) * 2)}:host>div>z-button{padding:calc(var(--space-unit) * 2) 0;width:100%}:host>div>z-input{width:100%}:host>z-link{font-weight:bold}:host>div>z-info-box>div{display:flex}:host([variant=\"modal\"]) .error-section{display:flex;flex-direction:column;border-top:var(--border-size-small) solid var(--bg-grey-200);margin-top:calc(var(--space-unit) * 3);padding-top:calc(var(--space-unit) * 2)}:host([variant=\"modal\"]) .error-section>span{padding:var(--basex2) 0;display:block;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-weight:var(--font-sb);font-size:14px;line-height:20px}:host([variant=\"button\"]){margin:0;padding:0}:host([variant=\"button\"]) z-button{margin:0;padding:0;width:initial}@media only screen and (min-width: 768px){:host{padding:0}:host([variant=\"modal\"]){padding:32px;width:396px}:host>div{display:flex;flex-direction:row}:host([variant=\"modal\"])>div{flex-direction:column}:host>div>z-button{padding:32px 0 calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);width:auto}:host([variant=\"modal\"])>div>z-button{padding:32px 0 calc(var(--space-unit) * 2);width:max-content}:host([variant=\"modal\"]) .error-section>z-button{width:max-content}}@media only screen and (min-width: 1152px){:host([variant=\"modal\"]){width:477px}:host>div{flex-direction:row}}";
1923
+ const licenseActivationFormCss = ":host{display:block;padding:calc(var(--space-unit) * 2)}:host>div>z-body{margin-bottom:calc(var(--space-unit) * 2)}:host>div>z-button{padding:calc(var(--space-unit) * 2) 0;width:100%}:host>div>z-input{width:100%}:host>z-link{font-weight:bold}:host>div>z-info-box>div{display:flex}:host([variant=\"modal\"]) .error-section{display:flex;flex-direction:column;border-top:var(--border-size-small) solid var(--bg-grey-200);margin-top:calc(var(--space-unit) * 3);padding-top:calc(var(--space-unit) * 2)}:host([variant=\"modal\"]) .error-section>span{padding:var(--basex2) 0;display:block;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-weight:var(--font-sb);font-size:14px;line-height:20px}:host([variant=\"preview\"]){margin:0;padding:0}:host([variant=\"preview\"]) z-button{margin:0;padding:0;width:initial}:host([variant=\"preview\"]) z-input{margin-right:calc(var(--space-unit) * 2)}@media only screen and (min-width: 768px){:host{padding:0}:host([variant=\"modal\"]){padding:32px;width:396px}:host>div{display:flex;flex-direction:row}:host([variant=\"modal\"])>div{flex-direction:column}:host>div>z-button{padding-top:calc(var(--space-unit) * 4);padding-left:calc(var(--space-unit) * 2);width:auto}:host([variant=\"preview\"])>div>z-button{padding-top:0}:host([variant=\"modal\"])>div>z-button{padding:32px 0 calc(var(--space-unit) * 2);width:max-content}:host([variant=\"modal\"]) .error-section>z-button{width:max-content}}@media only screen and (min-width: 1152px){:host([variant=\"modal\"]){width:477px}:host>div{flex-direction:row}}";
1925
1924
 
1926
1925
  const LicenseActivationForm = class {
1927
1926
  constructor(hostRef) {
@@ -1945,10 +1944,42 @@ const LicenseActivationForm = class {
1945
1944
  if (this.variant === "modal") {
1946
1945
  this.showInfoBox = true;
1947
1946
  }
1948
- if (this.variant === "box" || this.variant === "button") {
1947
+ if (this.variant === "box" || this.variant === "preview") {
1949
1948
  this.handleModalOpen();
1950
1949
  }
1951
1950
  }
1951
+ renderInput() {
1952
+ const { inputMessage, inputLabel, placeholder, inputStatus, previewInputPlaceholder, } = this.formTexts;
1953
+ if (this.variant === "preview" && !previewInputPlaceholder)
1954
+ return;
1955
+ const message = this.variant === "box"
1956
+ ? inputMessage
1957
+ : this.error
1958
+ ? this.error
1959
+ : inputMessage;
1960
+ return (index.h("z-input", { value: this.inputVal, htmlid: `${this.formid}_input`, label: this.variant === "preview" ? "" : inputLabel, placeholder: this.variant === "preview" ? previewInputPlaceholder : placeholder, htmltitle: placeholder, message: this.variant === "preview" ? "" : message, hasmessage: this.variant !== "preview", status: this.variant === "box" ? null : inputStatus, disabled: !!this.requestLoading, onInputChange: (e) => this.handleFormInputChange(e.detail) }));
1961
+ }
1962
+ renderButton() {
1963
+ const disabled = (this.variant === "modal" && !this.inputVal) || !!this.requestLoading;
1964
+ return (index.h("z-button", { variant: index$1.ButtonVariantEnum.primary, size: this.getButtonSize(this.variant), square: this.getButtonSquare(this.variant), disabled: disabled || !this.enableButton || this.requestLoading, onClick: () => this.handleSubmitButtonClick(this.inputVal) }, this.renderButtonValue(this.variant, disabled)));
1965
+ }
1966
+ renderButtonValue(variant, disabled = false) {
1967
+ const icon = this.getButtonIcon(variant);
1968
+ const label = this.getButtonLabel(variant);
1969
+ return (index.h("button", { slot: "element", disabled: disabled }, icon ? index.h("z-icon", { name: icon }) : null, label));
1970
+ }
1971
+ renderAdditionalDescription() {
1972
+ const { additionalDescription } = this.formTexts;
1973
+ if (!additionalDescription)
1974
+ return;
1975
+ return index.h("z-body", { level: 3 }, additionalDescription);
1976
+ }
1977
+ renderInfoLink() {
1978
+ const { linkLabel } = this.formTexts;
1979
+ if (this.variant === "preview")
1980
+ return;
1981
+ return (index.h("z-link", { icon: "question-mark", onClick: () => this.handleInfoClick() }, linkLabel));
1982
+ }
1952
1983
  renderInfoBox() {
1953
1984
  if (!this.showInfoBox)
1954
1985
  return;
@@ -1968,49 +1999,41 @@ const LicenseActivationForm = class {
1968
1999
  window.location.href = formTexts.supportLink;
1969
2000
  }
1970
2001
  renderErrorSection() {
2002
+ if (this.variant !== "modal" || !this.error)
2003
+ return;
1971
2004
  const { errorButtonLabel, errorSectionMessage } = this.formTexts;
1972
2005
  return (index.h("section", { class: "error-section" }, index.h("span", { class: "heading-01" }, errorSectionMessage), index.h("z-button", { variant: index$1.ButtonVariantEnum.secondary, onClick: this.redirectToSupport }, errorButtonLabel)));
1973
2006
  }
1974
2007
  getButtonSize(variant) {
1975
2008
  const { previewButtonSize } = this.formTexts;
1976
- if (variant === "button" && previewButtonSize)
2009
+ if (variant === "preview" && previewButtonSize)
1977
2010
  return previewButtonSize;
1978
2011
  return "big";
1979
2012
  }
1980
2013
  getButtonSquare(variant) {
1981
2014
  const { previewButtonLabel, previewButtonIcon } = this.formTexts;
1982
- if (variant === "button" && previewButtonIcon && !previewButtonLabel)
2015
+ if (variant === "preview" && previewButtonIcon && !previewButtonLabel)
1983
2016
  return true;
1984
2017
  return undefined;
1985
2018
  }
1986
2019
  getButtonIcon(variant) {
1987
2020
  const { buttonIcon, previewButtonIcon } = this.formTexts;
1988
- if (variant === "button" && previewButtonIcon)
2021
+ if (variant === "preview" && previewButtonIcon)
1989
2022
  return previewButtonIcon;
1990
- if (variant !== "button" && buttonIcon)
2023
+ if (variant !== "preview" && buttonIcon)
1991
2024
  return buttonIcon;
1992
2025
  return undefined;
1993
2026
  }
1994
2027
  getButtonLabel(variant) {
1995
2028
  const { buttonLabel, previewButtonLabel } = this.formTexts;
1996
- if (variant === "button" && previewButtonLabel)
2029
+ if (variant === "preview" && previewButtonLabel)
1997
2030
  return previewButtonLabel;
1998
- if (variant !== "button" && buttonLabel)
2031
+ if (variant !== "preview" && buttonLabel)
1999
2032
  return buttonLabel;
2000
2033
  return "";
2001
2034
  }
2002
- renderButtonValue(variant) {
2003
- const icon = this.getButtonIcon(variant);
2004
- const label = this.getButtonLabel(variant);
2005
- return (index.h("button", { slot: "element" }, icon ? index.h("z-icon", { name: icon }) : null, label));
2006
- }
2007
2035
  render() {
2008
- const { error, requestLoading, formTexts, formid, variant } = this;
2009
- const { inputMessage, inputLabel, linkLabel, placeholder, inputStatus, additionalDescription, } = formTexts;
2010
- const disabled = (variant === "modal" && !this.inputVal) || !!requestLoading;
2011
- return (index.h(index.Host, { variant: variant }, index.h("div", null, additionalDescription && (index.h("z-body", { level: 3 }, additionalDescription)), variant !== "button" && (index.h("z-input", { value: this.inputVal, htmlid: `${formid}_input`, label: inputLabel, placeholder: placeholder, htmltitle: placeholder, message: variant === "box" ? inputMessage : error ? error : inputMessage, status: variant === "box" ? null : inputStatus, disabled: !!requestLoading, onInputChange: (e) => this.handleFormInputChange(e.detail) })), index.h("z-button", { variant: index$1.ButtonVariantEnum.primary,
2012
- // icon={this.getButtonIcon(variant)}
2013
- size: this.getButtonSize(variant), square: this.getButtonSquare(variant), disabled: disabled || !this.enableButton || requestLoading ? true : false, onClick: () => this.handleSubmitButtonClick(this.inputVal) }, this.renderButtonValue(variant))), variant !== "button" && (index.h("z-link", { icon: "question-mark", onClick: () => this.handleInfoClick() }, linkLabel)), index.h("div", null, this.renderInfoBox(), variant === "modal" && error && this.renderErrorSection())));
2036
+ return (index.h(index.Host, { variant: this.variant }, index.h("div", null, this.renderAdditionalDescription(), this.renderInput(), this.renderButton()), this.renderInfoLink(), index.h("div", null, this.renderInfoBox(), this.renderErrorSection())));
2014
2037
  }
2015
2038
  };
2016
2039
  LicenseActivationForm.style = licenseActivationFormCss;
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["z-modal-login.cjs",[[6,"z-modal-login",{"heading":[1],"status":[1025],"message":[1025],"externalProviderCheck":[32]}]]],["z-combobox.cjs",[[1,"z-combobox",{"inputid":[1],"items":[1],"label":[1],"hassearch":[4],"searchlabel":[1],"searchplaceholder":[1],"searchtitle":[1],"noresultslabel":[1],"isopen":[1028],"isfixed":[4],"closesearchtext":[1],"hascheckall":[4],"checkalltext":[1],"uncheckalltext":[1],"maxcheckableitems":[2],"searchValue":[32],"selectedCounter":[32],"renderItemsList":[32]},[[0,"inputCheck","inputCheckListener"]]]]],["z-header.cjs",[[1,"z-header",{"intlinkdata":[1],"extlinkdata":[1],"userdata":[1],"ismyz":[4],"logolink":[1],"imagealt":[1],"activeintlinkid":[1],"activesublinkid":[1],"hideloginbutton":[4],"activeMenuItem":[32],"currentMenuItem":[32],"isMobile":[32],"isMenuMobileOpen":[32]},[[9,"resize","handleResize"],[2,"zListItemLinkClick","handleZListItemLinkClick"],[2,"zListItemClick","handleZListItemClick"]]]]],["z-footer.cjs",[[1,"z-footer",{"data":[1],"copyrightuser":[1]}]]],["z-cookiebar.cjs",[[1,"z-cookiebar",{"cookiepolicyurl":[1],"hide":[4],"callback":[16]}]]],["z-pagination-bar.cjs",[[1,"z-pagination-bar",{"pages":[2],"visiblepages":[2],"currentpage":[1026],"startpage":[1026],"historyraw":[1],"listhistoryrow":[1040],"currentPages":[32]}]]],["z-panel-elem.cjs",[[1,"z-panel-elem",{"elemid":[1],"imgurl":[1],"imgalt":[1],"linkicon":[1],"linklabel":[1],"url":[1],"target":[1],"isdisabled":[4],"descr_slot_name":[1]}]]],["z-registro-table-cell.cjs",[[6,"z-registro-table-cell",{"showButton":[4,"show-button"],"isMenuOpened":[32]}]]],["z-user-dropdown.cjs",[[1,"z-user-dropdown",{"logged":[4],"userfullname":[1],"menucontent":[1],"theme":[1],"ismenuopen":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"],[8,"click","handleClickOutside"]]]]],["z-app-switcher.cjs",[[1,"z-app-switcher",{"theme":[1],"isopen":[32]}]]],["z-button-sort.cjs",[[1,"z-button-sort",{"buttonid":[1],"label":[1],"desclabel":[1],"counter":[2],"sortlabelasc":[1],"sortlabeldesc":[1],"isselected":[1028],"sortasc":[1028]}]]],["z-card-alert.cjs",[[1,"z-card-alert",{"iconname":[1],"contenttext":[1],"actiontext":[1],"type":[1]}]]],["z-card-icon.cjs",[[1,"z-card-icon",{"icon":[1],"isdisabled":[4]}]]],["z-heading.cjs",[[1,"z-heading",{"level":[2],"variant":[1],"component":[1]}]]],["z-icon-package.cjs",[[1,"z-icon-package"]]],["z-menu.cjs",[[1,"z-menu",{"active":[516],"floating":[516],"open":[32],"hasHeader":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-menu-section.cjs",[[1,"z-menu-section",{"active":[516],"open":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-toggle-button.cjs",[[1,"z-toggle-button",{"label":[1],"isdisabled":[4],"avoidclick":[4],"isOpen":[32]}]]],["z-app-header.cjs",[[1,"z-app-header"]]],["z-app-topbar.cjs",[[1,"z-app-topbar",{"theme":[1],"logged":[4],"hashtag":[1],"zLinksValues":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]]]],["z-card.cjs",[[1,"z-card",{"faded":[4],"cardtype":[1],"ispressed":[4],"ishighlighted":[4]}]]],["z-card-body.cjs",[[1,"z-card-body"]]],["z-card-cover.cjs",[[1,"z-card-cover",{"img":[1],"titolo":[1],"faded":[4],"defaultimg":[1]}]]],["z-card-footer.cjs",[[1,"z-card-footer",{"titolo":[1],"autori":[1],"isbn":[1],"faded":[4],"cardtype":[1],"isOpen":[32],"allowTooltipAuthors":[32]},[[0,"toggleClick","handleToggle"]]]]],["z-card-header.cjs",[[1,"z-card-header",{"titolo":[1],"faded":[4],"cardtype":[1],"allowTooltip":[32]}]]],["z-card-list.cjs",[[1,"z-card-list",{"listdata":[1]}]]],["z-chip.cjs",[[1,"z-chip",{"regulartext":[1],"boldtext":[2]}]]],["z-divider.cjs",[[2,"z-divider",{"size":[1],"color":[1],"orientation":[1]}]]],["z-registro-table.cjs",[[4,"z-registro-table",{"bordered":[4],"columnSticky":[4,"column-sticky"],"headerSticky":[4,"header-sticky"]}]]],["z-registro-table-body.cjs",[[6,"z-registro-table-body"]]],["z-registro-table-footer.cjs",[[6,"z-registro-table-footer"]]],["z-registro-table-head.cjs",[[6,"z-registro-table-head"]]],["z-registro-table-header.cjs",[[6,"z-registro-table-header"]]],["z-registro-table-row.cjs",[[6,"z-registro-table-row"]]],["z-registro-table-sticky-footer.cjs",[[6,"z-registro-table-sticky-footer"]]],["z-stepper.cjs",[[1,"z-stepper"]]],["z-stepper-item.cjs",[[1,"z-stepper-item",{"index":[2],"href":[1],"pressed":[4],"disabled":[4]}]]],["z-tooltip.cjs",[[1,"z-tooltip",{"content":[1],"type":[1]}]]],["z-candybar.cjs",[[1,"z-candybar"]]],["z-pagination-page.cjs",[[1,"z-pagination-page",{"pageid":[1],"value":[2],"isselected":[4],"isdisabled":[4],"isvisited":[4]}]]],["license-activation_16.cjs",[[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"],"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"]]],[1,"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-body",{"level":[2],"variant":[1],"component":[1]}],[1,"z-modal",{"modalid":[1],"modaltitle":[1],"modalsubtitle":[1]}],[1,"z-typography",{"component":[1],"variant":[1],"level":[1]}],[2,"z-input",{"htmlid":[1],"type":[1],"name":[1],"label":[1],"value":[1025],"disabled":[4],"readonly":[4],"required":[4],"checked":[1028],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"labelafter":[4],"typingtimeout":[2],"items":[1],"autocomplete":[8],"multiple":[4],"hasclearicon":[4],"icon":[1],"isTyping":[32],"textareaWrapperHover":[32],"textareaWrapperFocus":[32],"passwordHidden":[32],"getValue":[64],"setValue":[64],"isChecked":[64]},[[4,"inputCheck","inputCheckListener"]]],[1,"z-select",{"htmlid":[1],"items":[1],"name":[1],"label":[1],"disabled":[4],"readonly":[4],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"autocomplete":[8],"multiple":[4],"noresultslabel":[1],"isOpen":[32],"selectedItems":[32],"searchString":[32],"getSelectedItems":[64],"getValue":[64],"setValue":[64]}],[1,"z-button",{"htmlid":[1],"name":[1],"disabled":[516],"type":[1],"variant":[513],"icon":[1],"size":[513],"issmall":[516],"square":[516]}],[1,"z-button-filter",{"filtername":[1],"isfixed":[4],"hasicon":[4],"filterid":[1],"issmall":[4]}],[1,"z-input-message",{"message":[1],"status":[1]}],[1,"z-input-label",{"value":[1],"disabled":[4]}],[1,"z-link",{"htmlid":[1],"href":[1],"target":[1],"htmltabindex":[2],"isdisabled":[4],"isactive":[4],"iswhite":[4],"textcolor":[1],"icon":[1],"big":[4]}],[1,"z-icon",{"name":[1],"height":[2],"width":[2],"iconid":[1]}]]],["z-list_2.cjs",[[1,"z-list",{"inputrawdata":[1025],"list":[1040]}],[1,"z-menu-dropdown",{"nomeutente":[1],"menucontent":[1],"buttonid":[1],"ismenuopen":[32]}]]],["z-logo.cjs",[[1,"z-logo",{"width":[2],"height":[2],"imagealt":[1],"link":[1],"targetblank":[4]}]]],["z-footer-link_3.cjs",[[1,"z-footer-section",{"name":[1],"isOpen":[32]}],[1,"z-footer-link",{"href":[1]}],[1,"z-footer-social",{"icon":[1],"href":[1],"description":[1]}]]],["z-list-item.cjs",[[1,"z-list-item",{"text":[1],"link":[1],"linktarget":[1],"icon":[1],"listitemid":[1],"action":[1],"underlined":[4]}]]]], options);
17
+ return index.bootstrapLazy([["z-modal-login.cjs",[[6,"z-modal-login",{"heading":[1],"status":[1025],"message":[1025],"externalProviderCheck":[32]}]]],["z-combobox.cjs",[[1,"z-combobox",{"inputid":[1],"items":[1],"label":[1],"hassearch":[4],"searchlabel":[1],"searchplaceholder":[1],"searchtitle":[1],"noresultslabel":[1],"isopen":[1028],"isfixed":[4],"closesearchtext":[1],"hascheckall":[4],"checkalltext":[1],"uncheckalltext":[1],"maxcheckableitems":[2],"searchValue":[32],"selectedCounter":[32],"renderItemsList":[32]},[[0,"inputCheck","inputCheckListener"]]]]],["z-header.cjs",[[1,"z-header",{"intlinkdata":[1],"extlinkdata":[1],"userdata":[1],"ismyz":[4],"logolink":[1],"imagealt":[1],"activeintlinkid":[1],"activesublinkid":[1],"hideloginbutton":[4],"activeMenuItem":[32],"currentMenuItem":[32],"isMobile":[32],"isMenuMobileOpen":[32]},[[9,"resize","handleResize"],[2,"zListItemLinkClick","handleZListItemLinkClick"],[2,"zListItemClick","handleZListItemClick"]]]]],["z-footer.cjs",[[1,"z-footer",{"data":[1],"copyrightuser":[1]}]]],["z-cookiebar.cjs",[[1,"z-cookiebar",{"cookiepolicyurl":[1],"hide":[4],"callback":[16]}]]],["z-pagination-bar.cjs",[[1,"z-pagination-bar",{"pages":[2],"visiblepages":[2],"currentpage":[1026],"startpage":[1026],"historyraw":[1],"listhistoryrow":[1040],"currentPages":[32]}]]],["z-panel-elem.cjs",[[1,"z-panel-elem",{"elemid":[1],"imgurl":[1],"imgalt":[1],"linkicon":[1],"linklabel":[1],"url":[1],"target":[1],"isdisabled":[4],"descr_slot_name":[1]}]]],["z-registro-table-cell.cjs",[[6,"z-registro-table-cell",{"showButton":[4,"show-button"],"isMenuOpened":[32]}]]],["z-user-dropdown.cjs",[[1,"z-user-dropdown",{"logged":[4],"userfullname":[1],"menucontent":[1],"theme":[1],"ismenuopen":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"],[8,"click","handleClickOutside"]]]]],["z-app-switcher.cjs",[[1,"z-app-switcher",{"theme":[1],"isopen":[32]}]]],["z-button-sort.cjs",[[1,"z-button-sort",{"buttonid":[1],"label":[1],"desclabel":[1],"counter":[2],"sortlabelasc":[1],"sortlabeldesc":[1],"isselected":[1028],"sortasc":[1028]}]]],["z-card-alert.cjs",[[1,"z-card-alert",{"iconname":[1],"contenttext":[1],"actiontext":[1],"type":[1]}]]],["z-card-icon.cjs",[[1,"z-card-icon",{"icon":[1],"isdisabled":[4]}]]],["z-heading.cjs",[[1,"z-heading",{"level":[2],"variant":[1],"component":[1]}]]],["z-icon-package.cjs",[[1,"z-icon-package"]]],["z-menu.cjs",[[1,"z-menu",{"active":[516],"floating":[516],"open":[32],"hasHeader":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-menu-section.cjs",[[1,"z-menu-section",{"active":[516],"open":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-toggle-button.cjs",[[1,"z-toggle-button",{"label":[1],"isdisabled":[4],"avoidclick":[4],"isOpen":[32]}]]],["z-app-header.cjs",[[1,"z-app-header"]]],["z-app-topbar.cjs",[[1,"z-app-topbar",{"theme":[1],"logged":[4],"hashtag":[1],"zLinksValues":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]]]],["z-card.cjs",[[1,"z-card",{"faded":[4],"cardtype":[1],"ispressed":[4],"ishighlighted":[4]}]]],["z-card-body.cjs",[[1,"z-card-body"]]],["z-card-cover.cjs",[[1,"z-card-cover",{"img":[1],"titolo":[1],"faded":[4],"defaultimg":[1]}]]],["z-card-footer.cjs",[[1,"z-card-footer",{"titolo":[1],"autori":[1],"isbn":[1],"faded":[4],"cardtype":[1],"isOpen":[32],"allowTooltipAuthors":[32]},[[0,"toggleClick","handleToggle"]]]]],["z-card-header.cjs",[[1,"z-card-header",{"titolo":[1],"faded":[4],"cardtype":[1],"allowTooltip":[32]}]]],["z-card-list.cjs",[[1,"z-card-list",{"listdata":[1]}]]],["z-chip.cjs",[[1,"z-chip",{"regulartext":[1],"boldtext":[2]}]]],["z-divider.cjs",[[2,"z-divider",{"size":[1],"color":[1],"orientation":[1]}]]],["z-registro-table.cjs",[[4,"z-registro-table",{"bordered":[4],"columnSticky":[4,"column-sticky"],"headerSticky":[4,"header-sticky"]}]]],["z-registro-table-body.cjs",[[6,"z-registro-table-body"]]],["z-registro-table-footer.cjs",[[6,"z-registro-table-footer"]]],["z-registro-table-head.cjs",[[6,"z-registro-table-head"]]],["z-registro-table-header.cjs",[[6,"z-registro-table-header"]]],["z-registro-table-row.cjs",[[6,"z-registro-table-row"]]],["z-registro-table-sticky-footer.cjs",[[6,"z-registro-table-sticky-footer"]]],["z-stepper.cjs",[[1,"z-stepper"]]],["z-stepper-item.cjs",[[1,"z-stepper-item",{"index":[2],"href":[1],"pressed":[4],"disabled":[4]}]]],["z-tooltip.cjs",[[1,"z-tooltip",{"content":[1],"type":[1]}]]],["z-candybar.cjs",[[1,"z-candybar"]]],["z-pagination-page.cjs",[[1,"z-pagination-page",{"pageid":[1],"value":[2],"isselected":[4],"isdisabled":[4],"isvisited":[4]}]]],["license-activation_16.cjs",[[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"]]],[1,"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-body",{"level":[2],"variant":[1],"component":[1]}],[1,"z-modal",{"modalid":[1],"modaltitle":[1],"modalsubtitle":[1]}],[1,"z-typography",{"component":[1],"variant":[1],"level":[1]}],[2,"z-input",{"htmlid":[1],"type":[1],"name":[1],"label":[1],"value":[1025],"disabled":[4],"readonly":[4],"required":[4],"checked":[1028],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"labelafter":[4],"typingtimeout":[2],"items":[1],"autocomplete":[8],"multiple":[4],"hasclearicon":[4],"icon":[1],"isTyping":[32],"textareaWrapperHover":[32],"textareaWrapperFocus":[32],"passwordHidden":[32],"getValue":[64],"setValue":[64],"isChecked":[64]},[[4,"inputCheck","inputCheckListener"]]],[1,"z-select",{"htmlid":[1],"items":[1],"name":[1],"label":[1],"disabled":[4],"readonly":[4],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"autocomplete":[8],"multiple":[4],"noresultslabel":[1],"isOpen":[32],"selectedItems":[32],"searchString":[32],"getSelectedItems":[64],"getValue":[64],"setValue":[64]}],[1,"z-button",{"htmlid":[1],"name":[1],"disabled":[516],"type":[1],"variant":[513],"icon":[1],"size":[513],"issmall":[516],"square":[516]}],[1,"z-button-filter",{"filtername":[1],"isfixed":[4],"hasicon":[4],"filterid":[1],"issmall":[4]}],[1,"z-input-message",{"message":[1],"status":[1]}],[1,"z-input-label",{"value":[1],"disabled":[4]}],[1,"z-link",{"htmlid":[1],"href":[1],"target":[1],"htmltabindex":[2],"isdisabled":[4],"isactive":[4],"iswhite":[4],"textcolor":[1],"icon":[1],"big":[4]}],[1,"z-icon",{"name":[1],"height":[2],"width":[2],"iconid":[1]}]]],["z-list_2.cjs",[[1,"z-list",{"inputrawdata":[1025],"list":[1040]}],[1,"z-menu-dropdown",{"nomeutente":[1],"menucontent":[1],"buttonid":[1],"ismenuopen":[32]}]]],["z-logo.cjs",[[1,"z-logo",{"width":[2],"height":[2],"imagealt":[1],"link":[1],"targetblank":[4]}]]],["z-footer-link_3.cjs",[[1,"z-footer-section",{"name":[1],"isOpen":[32]}],[1,"z-footer-link",{"href":[1]}],[1,"z-footer-social",{"icon":[1],"href":[1],"description":[1]}]]],["z-list-item.cjs",[[1,"z-list-item",{"text":[1],"link":[1],"linktarget":[1],"icon":[1],"listitemid":[1],"action":[1],"underlined":[4]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -123,7 +123,7 @@ export class LicenseActivation {
123
123
  return (h("license-activation-modal", { id: `${this.host.id}-modal`, "modal-title": this.cms["newdashboard.licenseActivation.modalTitle"], onActivationModalClose: () => this.handleLicenseModalClose(), resetStore: this.resetStore }, this.renderLicenseActivationForm("modal")));
124
124
  }
125
125
  retrieveTextsObject() {
126
- const { inputMessage, inputLabel, inputPlaceholder, buttonLabel, isMobile, additionalDescription, buttonIcon, previewButtonLabel, previewButtonIcon, previewButtonSize, } = this;
126
+ const { inputMessage, inputLabel, inputPlaceholder, buttonLabel, isMobile, additionalDescription, buttonIcon, previewInputPlaceholder, previewButtonLabel, previewButtonIcon, previewButtonSize, } = this;
127
127
  const { licenseActivationStatus } = this.licenseActivationState;
128
128
  return {
129
129
  inputStatus: this.mapInputStatus(licenseActivationStatus),
@@ -136,6 +136,7 @@ export class LicenseActivation {
136
136
  ? buttonLabel || this.cms["newdashboard.licenseActivation.submitLabel"]
137
137
  : this.cms["newdashboard.onboarding.licenseActivation.submitLabel"],
138
138
  buttonIcon,
139
+ previewInputPlaceholder,
139
140
  previewButtonLabel,
140
141
  previewButtonIcon,
141
142
  previewButtonSize,
@@ -158,7 +159,7 @@ export class LicenseActivation {
158
159
  return (h("z-button", { onClick: () => this.handleMobileButtonClick() }, this.cms["newdashboard.onboarding.licenseActivation.mobileSubmitLabel"]));
159
160
  }
160
161
  render() {
161
- if (this.isMobile && this.variant !== "button") {
162
+ if (this.isMobile && this.variant !== "preview") {
162
163
  return (h(Host, null,
163
164
  this.forceModal
164
165
  ? this.renderLicenseActivationModal()
@@ -168,10 +169,10 @@ export class LicenseActivation {
168
169
  this.renderLicenseActivationModal()));
169
170
  }
170
171
  return (h(Host, null,
171
- this.variant === "box" || this.variant === "button"
172
+ this.variant === "box" || this.variant === "preview"
172
173
  ? this.renderLicenseActivationBox(this.variant)
173
174
  : this.modalState === "open" && this.renderLicenseActivationModal(),
174
- (this.variant === "box" || this.variant === "button") &&
175
+ (this.variant === "box" || this.variant === "preview") &&
175
176
  this.modalState === "open" &&
176
177
  this.submitClicked &&
177
178
  this.renderLicenseActivationModal()));
@@ -189,8 +190,8 @@ export class LicenseActivation {
189
190
  "type": "string",
190
191
  "mutable": false,
191
192
  "complexType": {
192
- "original": "\"box\" | \"modal\" | \"button\"",
193
- "resolved": "\"box\" | \"button\" | \"modal\"",
193
+ "original": "\"box\" | \"modal\" | \"preview\"",
194
+ "resolved": "\"box\" | \"modal\" | \"preview\"",
194
195
  "references": {}
195
196
  },
196
197
  "required": false,
@@ -338,6 +339,23 @@ export class LicenseActivation {
338
339
  "attribute": "button-icon",
339
340
  "reflect": false
340
341
  },
342
+ "previewInputPlaceholder": {
343
+ "type": "string",
344
+ "mutable": false,
345
+ "complexType": {
346
+ "original": "string",
347
+ "resolved": "string",
348
+ "references": {}
349
+ },
350
+ "required": false,
351
+ "optional": true,
352
+ "docs": {
353
+ "tags": [],
354
+ "text": "preview-input-placeholder: custom preview input placeholder string [optional]"
355
+ },
356
+ "attribute": "preview-input-placeholder",
357
+ "reflect": false
358
+ },
341
359
  "previewButtonLabel": {
342
360
  "type": "string",
343
361
  "mutable": false,
@@ -42,17 +42,21 @@
42
42
  line-height: 20px;
43
43
  }
44
44
 
45
- :host([variant="button"]) {
45
+ :host([variant="preview"]) {
46
46
  margin: 0;
47
47
  padding: 0;
48
48
  }
49
49
 
50
- :host([variant="button"]) z-button {
50
+ :host([variant="preview"]) z-button {
51
51
  margin: 0;
52
52
  padding: 0;
53
53
  width: initial;
54
54
  }
55
55
 
56
+ :host([variant="preview"]) z-input {
57
+ margin-right: calc(var(--space-unit) * 2);
58
+ }
59
+
56
60
  /* Tablet breakpoint */
57
61
  @media only screen and (min-width: 768px) {
58
62
  :host {
@@ -74,9 +78,13 @@
74
78
  }
75
79
 
76
80
  :host > div > z-button {
77
- padding: 32px 0 calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);
81
+ padding-top: calc(var(--space-unit) * 4);
82
+ padding-left: calc(var(--space-unit) * 2);
78
83
  width: auto;
79
84
  }
85
+ :host([variant="preview"]) > div > z-button {
86
+ padding-top: 0;
87
+ }
80
88
 
81
89
  :host([variant="modal"]) > div > z-button {
82
90
  padding: 32px 0 calc(var(--space-unit) * 2);
@@ -20,10 +20,44 @@ export class LicenseActivationForm {
20
20
  if (this.variant === "modal") {
21
21
  this.showInfoBox = true;
22
22
  }
23
- if (this.variant === "box" || this.variant === "button") {
23
+ if (this.variant === "box" || this.variant === "preview") {
24
24
  this.handleModalOpen();
25
25
  }
26
26
  }
27
+ renderInput() {
28
+ const { inputMessage, inputLabel, placeholder, inputStatus, previewInputPlaceholder, } = this.formTexts;
29
+ if (this.variant === "preview" && !previewInputPlaceholder)
30
+ return;
31
+ const message = this.variant === "box"
32
+ ? inputMessage
33
+ : this.error
34
+ ? this.error
35
+ : inputMessage;
36
+ return (h("z-input", { value: this.inputVal, htmlid: `${this.formid}_input`, label: this.variant === "preview" ? "" : inputLabel, placeholder: this.variant === "preview" ? previewInputPlaceholder : placeholder, htmltitle: placeholder, message: this.variant === "preview" ? "" : message, hasmessage: this.variant !== "preview", status: this.variant === "box" ? null : inputStatus, disabled: !!this.requestLoading, onInputChange: (e) => this.handleFormInputChange(e.detail) }));
37
+ }
38
+ renderButton() {
39
+ const disabled = (this.variant === "modal" && !this.inputVal) || !!this.requestLoading;
40
+ return (h("z-button", { variant: ButtonVariantEnum.primary, size: this.getButtonSize(this.variant), square: this.getButtonSquare(this.variant), disabled: disabled || !this.enableButton || this.requestLoading, onClick: () => this.handleSubmitButtonClick(this.inputVal) }, this.renderButtonValue(this.variant, disabled)));
41
+ }
42
+ renderButtonValue(variant, disabled = false) {
43
+ const icon = this.getButtonIcon(variant);
44
+ const label = this.getButtonLabel(variant);
45
+ return (h("button", { slot: "element", disabled: disabled },
46
+ icon ? h("z-icon", { name: icon }) : null,
47
+ label));
48
+ }
49
+ renderAdditionalDescription() {
50
+ const { additionalDescription } = this.formTexts;
51
+ if (!additionalDescription)
52
+ return;
53
+ return h("z-body", { level: 3 }, additionalDescription);
54
+ }
55
+ renderInfoLink() {
56
+ const { linkLabel } = this.formTexts;
57
+ if (this.variant === "preview")
58
+ return;
59
+ return (h("z-link", { icon: "question-mark", onClick: () => this.handleInfoClick() }, linkLabel));
60
+ }
27
61
  renderInfoBox() {
28
62
  if (!this.showInfoBox)
29
63
  return;
@@ -47,6 +81,8 @@ export class LicenseActivationForm {
47
81
  window.location.href = formTexts.supportLink;
48
82
  }
49
83
  renderErrorSection() {
84
+ if (this.variant !== "modal" || !this.error)
85
+ return;
50
86
  const { errorButtonLabel, errorSectionMessage } = this.formTexts;
51
87
  return (h("section", { class: "error-section" },
52
88
  h("span", { class: "heading-01" }, errorSectionMessage),
@@ -54,54 +90,42 @@ export class LicenseActivationForm {
54
90
  }
55
91
  getButtonSize(variant) {
56
92
  const { previewButtonSize } = this.formTexts;
57
- if (variant === "button" && previewButtonSize)
93
+ if (variant === "preview" && previewButtonSize)
58
94
  return previewButtonSize;
59
95
  return "big";
60
96
  }
61
97
  getButtonSquare(variant) {
62
98
  const { previewButtonLabel, previewButtonIcon } = this.formTexts;
63
- if (variant === "button" && previewButtonIcon && !previewButtonLabel)
99
+ if (variant === "preview" && previewButtonIcon && !previewButtonLabel)
64
100
  return true;
65
101
  return undefined;
66
102
  }
67
103
  getButtonIcon(variant) {
68
104
  const { buttonIcon, previewButtonIcon } = this.formTexts;
69
- if (variant === "button" && previewButtonIcon)
105
+ if (variant === "preview" && previewButtonIcon)
70
106
  return previewButtonIcon;
71
- if (variant !== "button" && buttonIcon)
107
+ if (variant !== "preview" && buttonIcon)
72
108
  return buttonIcon;
73
109
  return undefined;
74
110
  }
75
111
  getButtonLabel(variant) {
76
112
  const { buttonLabel, previewButtonLabel } = this.formTexts;
77
- if (variant === "button" && previewButtonLabel)
113
+ if (variant === "preview" && previewButtonLabel)
78
114
  return previewButtonLabel;
79
- if (variant !== "button" && buttonLabel)
115
+ if (variant !== "preview" && buttonLabel)
80
116
  return buttonLabel;
81
117
  return "";
82
118
  }
83
- renderButtonValue(variant) {
84
- const icon = this.getButtonIcon(variant);
85
- const label = this.getButtonLabel(variant);
86
- return (h("button", { slot: "element" },
87
- icon ? h("z-icon", { name: icon }) : null,
88
- label));
89
- }
90
119
  render() {
91
- const { error, requestLoading, formTexts, formid, variant } = this;
92
- const { inputMessage, inputLabel, linkLabel, placeholder, inputStatus, additionalDescription, } = formTexts;
93
- const disabled = (variant === "modal" && !this.inputVal) || !!requestLoading;
94
- return (h(Host, { variant: variant },
120
+ return (h(Host, { variant: this.variant },
95
121
  h("div", null,
96
- additionalDescription && (h("z-body", { level: 3 }, additionalDescription)),
97
- variant !== "button" && (h("z-input", { value: this.inputVal, htmlid: `${formid}_input`, label: inputLabel, placeholder: placeholder, htmltitle: placeholder, message: variant === "box" ? inputMessage : error ? error : inputMessage, status: variant === "box" ? null : inputStatus, disabled: !!requestLoading, onInputChange: (e) => this.handleFormInputChange(e.detail) })),
98
- h("z-button", { variant: ButtonVariantEnum.primary,
99
- // icon={this.getButtonIcon(variant)}
100
- size: this.getButtonSize(variant), square: this.getButtonSquare(variant), disabled: disabled || !this.enableButton || requestLoading ? true : false, onClick: () => this.handleSubmitButtonClick(this.inputVal) }, this.renderButtonValue(variant))),
101
- variant !== "button" && (h("z-link", { icon: "question-mark", onClick: () => this.handleInfoClick() }, linkLabel)),
122
+ this.renderAdditionalDescription(),
123
+ this.renderInput(),
124
+ this.renderButton()),
125
+ this.renderInfoLink(),
102
126
  h("div", null,
103
127
  this.renderInfoBox(),
104
- variant === "modal" && error && this.renderErrorSection())));
128
+ this.renderErrorSection())));
105
129
  }
106
130
  static get is() { return "license-activation-form"; }
107
131
  static get encapsulation() { return "shadow"; }
@@ -151,7 +175,7 @@ export class LicenseActivationForm {
151
175
  "mutable": false,
152
176
  "complexType": {
153
177
  "original": "LicenseActivationFormTexts",
154
- "resolved": "{ inputStatus: \"success\" | \"error\" | \"warning\" | \"selecting\"; inputMessage: string; placeholder: string; inputLabel: string; buttonLabel: string; buttonIcon: string; previewButtonLabel: string; previewButtonIcon: string; previewButtonSize: string; linkLabel: string; errorButtonLabel: string; errorSectionMessage: string; infoBoxIcon: string; infoBoxContent: string; supportLink: string; additionalDescription: string; }",
178
+ "resolved": "{ inputStatus: \"success\" | \"error\" | \"warning\" | \"selecting\"; inputMessage: string; placeholder: string; inputLabel: string; buttonLabel: string; buttonIcon: string; previewInputPlaceholder: string; previewButtonLabel: string; previewButtonIcon: string; previewButtonSize: string; linkLabel: string; errorButtonLabel: string; errorSectionMessage: string; infoBoxIcon: string; infoBoxContent: string; supportLink: string; additionalDescription: string; }",
155
179
  "references": {
156
180
  "LicenseActivationFormTexts": {
157
181
  "location": "import",
@@ -277,8 +301,8 @@ export class LicenseActivationForm {
277
301
  "type": "string",
278
302
  "mutable": false,
279
303
  "complexType": {
280
- "original": "\"box\" | \"modal\" | \"button\"",
281
- "resolved": "\"box\" | \"button\" | \"modal\"",
304
+ "original": "\"box\" | \"modal\" | \"preview\"",
305
+ "resolved": "\"box\" | \"modal\" | \"preview\"",
282
306
  "references": {}
283
307
  },
284
308
  "required": false,
@@ -19,8 +19,6 @@ export class Env {
19
19
  buildApiV3Url() {
20
20
  if (this.zanienv === "prod")
21
21
  return "https://api-catalogo.zanichelli.it/v3";
22
- if (this.zanienv === "local")
23
- return "https://api-catalogo.zanichelli.local/v3";
24
22
  return `https://${this.zanienv}-api-catalogo.zanichelli.it/v3`;
25
23
  }
26
24
  buildUrlS3ImagesFolder() {