@everymatrix/player-account-controller-nd 1.59.2 → 1.59.99
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/components/{GeneralLogout-DKq7aXpj.cjs → GeneralLogout-BjsDUNrm.cjs} +4 -4
- package/components/{GeneralLogout-4it4FG1e.js → GeneralLogout-D-SNAWMX.js} +110 -99
- package/components/{GeneralLogout-CeysydbF.js → GeneralLogout-mKknRJlq.js} +118 -107
- package/components/{PlayerAccountBettingHistory-6L3UumfC.js → PlayerAccountBettingHistory-B65ODj4i.js} +1 -1
- package/components/{PlayerAccountBettingHistory-Ba0rbzAt.cjs → PlayerAccountBettingHistory-Bu3VS2Sg.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-CITAS_tU.js → PlayerAccountBettingHistory-D5R8TtVb.js} +1 -1
- package/components/{PlayerAccountBiometrics-DOKW7OSb.js → PlayerAccountBiometrics-1g9245j6.js} +1 -1
- package/components/{PlayerAccountBiometrics-Be6QWwR6.js → PlayerAccountBiometrics-Dke9scx2.js} +1 -1
- package/components/{PlayerAccountBiometrics-D3SdfZAk.cjs → PlayerAccountBiometrics-DvJlyQ8z.cjs} +1 -1
- package/components/{PlayerAccountClosureNd-Ba7qRwie.cjs → PlayerAccountClosureNd-B4GnQQHa.cjs} +1 -1
- package/components/{PlayerAccountClosureNd-DmAOX_fd.js → PlayerAccountClosureNd-CH8UCD0A.js} +1 -1
- package/components/{PlayerAccountClosureNd-rzbr78tt.js → PlayerAccountClosureNd-DtDZNFDs.js} +1 -1
- package/components/PlayerAccountControllerNd-4s7xJ5WW.cjs +1 -0
- package/components/PlayerAccountControllerNd-B-wmDyLr.js +7430 -0
- package/components/{PlayerAccountControllerNd-DsScUGqI.js → PlayerAccountControllerNd-Cda3JHRm.js} +2307 -2243
- package/components/PlayerAccountControllerNd-Cgci2Fcz.cjs +1 -0
- package/components/{PlayerAccountControllerNd-el5m6i4n.js → PlayerAccountControllerNd-Cgdz9EHx.js} +2335 -2271
- package/components/PlayerAccountControllerNd-D0YcM-rD.js +7413 -0
- package/components/PlayerAccountControllerNd-HN4PMQqw.cjs +1 -0
- package/components/PlayerAccountControllerNd-PZ8-RG-h.js +7430 -0
- package/components/PlayerAccountControllerNd-iBO4kr6j.js +7413 -0
- package/components/{PlayerAccountGamingLimits-ByuUh2TU.js → PlayerAccountGamingLimits-CPx-vfQw.js} +2 -2
- package/components/{PlayerAccountGamingLimits-FIGZjiiE.cjs → PlayerAccountGamingLimits-UmFJS4yG.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-Bk5wHTwY.js → PlayerAccountGamingLimits-geiSuCGE.js} +2 -2
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CyALQICB.cjs → PlayerAccountGamingLimitsConfirmationModal-BTGWvZ_H.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CNYtoEVr.js → PlayerAccountGamingLimitsConfirmationModal-CIMWBU9F.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-orqpWBGG.js → PlayerAccountGamingLimitsConfirmationModal-CJvAbSXA.js} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-BaorReGW.js → PlayerAccountGamingLimitsGroupEdit-BBhaC0tE.js} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-BpaOoTGu.cjs → PlayerAccountGamingLimitsGroupEdit-DWXrW8rz.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsGroupEdit-CTpK2bHP.js → PlayerAccountGamingLimitsGroupEdit-DxCKKvtt.js} +4 -4
- package/components/{PlayerAccountGamingLimitsHistory2Nd-BXZnq3wo.cjs → PlayerAccountGamingLimitsHistory2Nd-CT3BWhmN.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-2-WDm2bq.js → PlayerAccountGamingLimitsHistory2Nd-CYh5FnDV.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-7fOlRCey.js → PlayerAccountGamingLimitsHistory2Nd-y1qwR7nl.js} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-DlJXsDqV.cjs → PlayerAccountGamingLimitsInfoCard-7dQquqQ4.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-CmZ-aPgC.js → PlayerAccountGamingLimitsInfoCard-Cc-JLiZF.js} +3 -3
- package/components/{PlayerAccountGamingLimitsInfoCard-jkLmhvDf.js → PlayerAccountGamingLimitsInfoCard-Dm9hSuFC.js} +3 -3
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-2aUOAuM6.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-CuoVvIEJ.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-Hxw4dGQn.js → PlayerAccountGamingLimitsPage2Gm16Nd-DA1By__G.js} +2 -2
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-C1OaS72g.js → PlayerAccountGamingLimitsPage2Gm16Nd-DMdM3i1l.js} +2 -2
- package/components/{PlayerAccountGamingLimitsPopup-Dbr-uHeX.cjs → PlayerAccountGamingLimitsPopup-Bq6g8_Ex.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-AuWDAmQP.js → PlayerAccountGamingLimitsPopup-CLyTPF2L.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-CwqIGi2v.js → PlayerAccountGamingLimitsPopup-DycV-u3W.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-8YmBMC3v.js → PlayerAccountGamingLimitsWrapper2Nd-ClbwM2gG.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-BUsoXkMn.cjs → PlayerAccountGamingLimitsWrapper2Nd-D5Yg91jL.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-CZlji5Yr.js → PlayerAccountGamingLimitsWrapper2Nd-j3mecOLN.js} +3 -3
- package/components/{PlayerAccountGeneralConfirmationModal-DYhGjzZF.js → PlayerAccountGeneralConfirmationModal-4w5ypHAs.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-BJ3S0RLL.cjs → PlayerAccountGeneralConfirmationModal-DoognqGf.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-mUHuj-5B.js → PlayerAccountGeneralConfirmationModal-u_yQVW36.js} +1 -1
- package/components/{PlayerAccountMenuNd-BeGAjc3q.js → PlayerAccountMenuNd-D-fAorcB.js} +3 -3
- package/components/{PlayerAccountMenuNd-z28QxKXk.js → PlayerAccountMenuNd-DTmfUkDR.js} +3 -3
- package/components/{PlayerAccountMenuNd-CCPMD49m.cjs → PlayerAccountMenuNd-pBoYi2d7.cjs} +1 -1
- package/components/{PlayerAccountModal-DhsJbk1o.js → PlayerAccountModal-CJAW5eai.js} +1 -1
- package/components/{PlayerAccountModal-RfCUFEKE.js → PlayerAccountModal-DzIuV3KN.js} +1 -1
- package/components/{PlayerAccountModal-tginaXbZ.cjs → PlayerAccountModal-zI2QLAL1.cjs} +1 -1
- package/components/{PlayerAccountNotifications-9IZXsnRq.js → PlayerAccountNotifications-BECefhID.js} +2 -2
- package/components/{PlayerAccountNotifications-CI42A39-.js → PlayerAccountNotifications-BMdZu0IH.js} +2 -2
- package/components/{PlayerAccountNotifications-BLsxWrq2.cjs → PlayerAccountNotifications-BxJEa-bd.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusionNd-D1ZE5YnA.js → PlayerAccountSelfExclusionNd-8dbQPzKe.js} +2 -2
- package/components/{PlayerAccountSelfExclusionNd-D5HRQcqt.js → PlayerAccountSelfExclusionNd-CfXWzZaQ.js} +2 -2
- package/components/{PlayerAccountSelfExclusionNd-BwVKiP0r.cjs → PlayerAccountSelfExclusionNd-gT5IXyXv.cjs} +1 -1
- package/components/{PlayerAccountTimeout-BqQ8Dig1.js → PlayerAccountTimeout-CyvXsM5p.js} +4 -4
- package/components/{PlayerAccountTimeout-Oy-er_24.js → PlayerAccountTimeout-DmUdmLQr.js} +4 -4
- package/components/{PlayerAccountTimeout-ChLVrZ1_.cjs → PlayerAccountTimeout-v5URpImy.cjs} +1 -1
- package/components/{PlayerActiveBonuses-6gu0ilHo.js → PlayerActiveBonuses-2M__yMJf.js} +2 -2
- package/components/{PlayerActiveBonuses-CwzErvnX.js → PlayerActiveBonuses-BXlIZiVB.js} +2 -2
- package/components/{PlayerActiveBonuses-DbsciRwF.cjs → PlayerActiveBonuses-CBqsWQfE.cjs} +1 -1
- package/components/{PlayerBonusCard-BzDP362v.cjs → PlayerBonusCard-CJXjuXsU.cjs} +1 -1
- package/components/{PlayerBonusCard--oHCcpOb.js → PlayerBonusCard-CtXP9UPy.js} +2 -2
- package/components/{PlayerBonusCard-D3VZ0SAd.js → PlayerBonusCard-sfjhWo7d.js} +2 -2
- package/components/{PlayerBonusHistory-Bg9FG_wq.js → PlayerBonusHistory-CSz-1_b2.js} +4 -4
- package/components/{PlayerBonusHistory-BGgOFk8A.js → PlayerBonusHistory-DPoWYYcE.js} +4 -4
- package/components/{PlayerBonusHistory-BaPqLAQG.cjs → PlayerBonusHistory-DvzXMZuA.cjs} +1 -1
- package/components/{PlayerChangePassword-DLhHjRp1.js → PlayerChangePassword-Ddfah5-0.js} +1 -1
- package/components/{PlayerChangePassword-BekJt2EW.js → PlayerChangePassword-Dtr2n1Et.js} +1 -1
- package/components/{PlayerChangePassword-DZ0zUct-.cjs → PlayerChangePassword-awaQVsiP.cjs} +1 -1
- package/components/{PlayerDeposit-BwW_MMqP.js → PlayerDeposit-CqqQuB6-.js} +1 -1
- package/components/{PlayerDeposit-CJ23PX1y.js → PlayerDeposit-DzJLjkJJ.js} +1 -1
- package/components/{PlayerDeposit-2rXfB2O5.cjs → PlayerDeposit-_oIOMh8l.cjs} +1 -1
- package/components/{PlayerGamingHistory-CWs-tUkY.cjs → PlayerGamingHistory-4FBAJVJ3.cjs} +1 -1
- package/components/{PlayerGamingHistory-0TYR6SEn.js → PlayerGamingHistory-BawWibCV.js} +4 -4
- package/components/{PlayerGamingHistory-CntwL7Fk.js → PlayerGamingHistory-K0Uvi2fF.js} +4 -4
- package/components/{PlayerPendingWithdrawals-ki_Gjm_H.js → PlayerPendingWithdrawals-B5LftQI0.js} +1 -1
- package/components/{PlayerPendingWithdrawals-B3LxQtqC.js → PlayerPendingWithdrawals-BXngse4L.js} +1 -1
- package/components/{PlayerPendingWithdrawals-UG-bN1ca.cjs → PlayerPendingWithdrawals-aaHugNLD.cjs} +1 -1
- package/components/PlayerProfileInfo-B1A0Xarz.cjs +1 -0
- package/components/PlayerProfileInfo-BmyCYGh7.js +2087 -0
- package/components/PlayerProfileInfo-uGClCGHq.js +2059 -0
- package/components/{PlayerRealityCheck-BmVSMTSf.cjs → PlayerRealityCheck-Ch955fLs.cjs} +1 -1
- package/components/{PlayerRealityCheck-BQCOhNTa.js → PlayerRealityCheck-DHGjsEc_.js} +2 -2
- package/components/{PlayerRealityCheck-CTuOdJqC.js → PlayerRealityCheck-Db8wL8P8.js} +2 -2
- package/components/{PlayerTransactionHistory-DSVdbdHO.js → PlayerTransactionHistory-BdX1ph_m.js} +1 -1
- package/components/{PlayerTransactionHistory-DkLL3JLy.js → PlayerTransactionHistory-CQ3fEpfj.js} +1 -1
- package/components/{PlayerTransactionHistory-U2CncC4r.cjs → PlayerTransactionHistory-Dff51WQG.cjs} +1 -1
- package/components/{PlayerWithdrawal-CuYoN_mb.js → PlayerWithdrawal-8DAmymCW.js} +1 -1
- package/components/{PlayerWithdrawal-CsPPu5bX.cjs → PlayerWithdrawal-DdPBGufW.cjs} +1 -1
- package/components/{PlayerWithdrawal-Dq9rMCnK.js → PlayerWithdrawal-DvDjalE_.js} +1 -1
- package/es2015/player-account-controller-nd.cjs +1 -1
- package/es2015/player-account-controller-nd.js +1 -1
- package/esnext/player-account-controller-nd.js +1 -1
- package/package.json +2 -2
- package/stencil/checkbox-group-input_9-C7zEH4Cn.js +3883 -0
- package/stencil/checkbox-group-input_9-CMfQeYlH.cjs +2 -0
- package/stencil/checkbox-group-input_9-OVj7AW5S.js +3883 -0
- package/stencil/general-input-BlFYbInU.cjs +4546 -0
- package/stencil/general-input-C7B1PVb4.js +12201 -0
- package/stencil/general-input-DoSeJn3k.js +12201 -0
- package/stencil/index-9c0f6c58-B94eMODu.js +576 -0
- package/stencil/index-9c0f6c58-BD-Fj_Yj.cjs +1 -0
- package/stencil/index-9c0f6c58-CUIs9poD.js +549 -0
- package/stencil/index-9c0f6c58-CyhtHCyO.js +576 -0
- package/stencil/index-9c0f6c58-D-L9XUok.js +549 -0
- package/stencil/index-9c0f6c58-D55uro-T.cjs +1 -0
- package/stencil/{index-9cd44522-C5N2LdVm.js → index-9cd44522-BOHK5Ehb.js} +4 -4
- package/stencil/{index-9cd44522-BbKqQXqL.js → index-9cd44522-C8s3TvoU.js} +4 -4
- package/stencil/{index-9cd44522-QIMe52Dh.cjs → index-9cd44522-D9raG3xx.cjs} +1 -1
- package/stencil/index-b2193545-B240yE4M.js +503 -0
- package/stencil/index-b2193545-CJQ4H9NG.cjs +1 -0
- package/stencil/index-b2193545-q1mvaES7.js +519 -0
- package/stencil/password-input_2-5nC89CMj.js +311 -0
- package/stencil/password-input_2-DJSgcWve.js +311 -0
- package/stencil/password-input_2-ZOEOuaOe.cjs +193 -0
- package/stencil/{player-change-password-gm2-039e300e-BU9mX4ix.cjs → player-change-password-gm2-039e300e-C-kbOfS1.cjs} +1 -1
- package/stencil/{player-change-password-gm2-039e300e-1NkfHZ6r.js → player-change-password-gm2-039e300e-C_f58yBE.js} +1 -1
- package/stencil/{player-change-password-gm2-039e300e-BLQGT3AW.js → player-change-password-gm2-039e300e-D4KfL3dW.js} +1 -1
- package/stencil/{player-change-password-gm2-E5xKJgy3.js → player-change-password-gm2-3aRR8E4W.js} +1 -1
- package/stencil/{player-change-password-gm2-Cyx-9oVQ.js → player-change-password-gm2-BJ2Ur7Zx.js} +1 -1
- package/stencil/{player-change-password-gm2-BWRiCTIP.cjs → player-change-password-gm2-CHK-mhQ9.cjs} +1 -1
- package/stencil/player-kyc-verification-BDsLC0dz.js +916 -0
- package/stencil/player-kyc-verification-C1kM6V2E.js +894 -0
- package/stencil/player-kyc-verification-Cgr9LJUE.js +894 -0
- package/stencil/player-kyc-verification-Cw4ee6aW.js +916 -0
- package/stencil/player-kyc-verification-L-Gd_xeu.cjs +180 -0
- package/stencil/player-kyc-verification-tvMdQJ0Y.cjs +180 -0
- package/stencil/{toggle-checkbox-input-3f7U98vC.js → toggle-checkbox-input-BRL1Xahc.js} +23 -9
- package/stencil/toggle-checkbox-input-CPDZs55S.cjs +1 -0
- package/stencil/{toggle-checkbox-input-DDDgLFw4.js → toggle-checkbox-input-cLWFox9n.js} +23 -9
- package/stencil/{ui-skeleton-T4HYbNcC.js → ui-skeleton-BacC4KYY.js} +8 -8
- package/stencil/ui-skeleton-C_u2sCMV.cjs +1 -0
- package/stencil/{ui-skeleton-DT0OMDC6.js → ui-skeleton-DuRhzyE8.js} +4 -4
- package/stencil/ui-skeleton-ea659b95-B0Wm9BdQ.js +152 -0
- package/stencil/ui-skeleton-ea659b95-BBQBvLes.cjs +73 -0
- package/stencil/ui-skeleton-ea659b95-DEnEjYcS.js +152 -0
- package/components/PlayerAccountControllerNd-BfM3xK9T.cjs +0 -1
- package/components/PlayerProfileInfo-CNv-9pT9.js +0 -1823
- package/components/PlayerProfileInfo-DLth9JMy.cjs +0 -1
- package/components/PlayerProfileInfo-DV9mn7sN.js +0 -1806
- package/stencil/checkbox-group-input_9-BkT4UtkZ.js +0 -13282
- package/stencil/checkbox-group-input_9-CDYbpnEQ.cjs +0 -2045
- package/stencil/checkbox-group-input_9-CMQLu-qB.js +0 -13248
- package/stencil/general-input--MP17Hyz.cjs +0 -1
- package/stencil/general-input-BqgyG6fv.js +0 -48
- package/stencil/general-input-V-ZuyFa5.js +0 -48
- package/stencil/index-ae04a8b1-D4wvtXTw.cjs +0 -1
- package/stencil/index-ae04a8b1-fpBaOn88.js +0 -516
- package/stencil/index-ae04a8b1-ixlRj3zC.js +0 -532
- package/stencil/password-input_2-C_mvPSDp.js +0 -589
- package/stencil/password-input_2-DeRFrP9K.cjs +0 -105
- package/stencil/password-input_2-g7twAnPT.js +0 -589
- package/stencil/toggle-checkbox-input-DXFebhBM.cjs +0 -1
- package/stencil/ui-skeleton-BC4mw1ae.cjs +0 -1
- package/stencil/ui-skeleton-a642cced-B8H73O_q.cjs +0 -1
- package/stencil/ui-skeleton-a642cced-Ba-weZ4g.js +0 -122
- package/stencil/ui-skeleton-a642cced-DhjmNsN7.js +0 -122
- package/stencil/vaadin-button-mixin-e8c3f355-BdntioNA.cjs +0 -2391
- package/stencil/vaadin-button-mixin-e8c3f355-DON-rAuy.js +0 -10228
- package/stencil/vaadin-button-mixin-e8c3f355-DQ5UgwNf.js +0 -10302
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
const
|
|
1
|
+
import { r as a, c as o, h as t } from "./index-9cd44522-BOHK5Ehb.js";
|
|
2
|
+
import { t as n } from "./locale-ioQf6ZrW.js";
|
|
3
|
+
import { t as s } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
|
|
4
|
+
const r = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}', c = r, h = class {
|
|
5
5
|
constructor(e) {
|
|
6
|
-
|
|
6
|
+
a(this, e), this.sendValidityState = o(this, "sendValidityState", 7), this.sendInputValue = o(this, "sendInputValue", 7), this.callBackObject = {}, this.subFieldsObject = {}, this.value = "", this.handleRevealField = (i, l) => {
|
|
7
|
+
i.stopPropagation(), window.postMessage({ type: `registration${l}Clicked` }, window.location.href);
|
|
8
|
+
}, this.setClientStyling = () => {
|
|
7
9
|
let i = document.createElement("style");
|
|
8
10
|
i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
|
|
9
11
|
}, this.name = void 0, this.displayName = void 0, this.defaultValue = "", this.options = void 0, this.autofilled = void 0, this.tooltip = void 0, this.validation = void 0, this.language = void 0, this.emitValue = void 0, this.clientStyling = "", this.errorMessage = void 0, this.isValid = void 0, this.limitStylingAppends = !1, this.showTooltip = !1, this.showFields = this.defaultValue === "true";
|
|
@@ -23,6 +25,13 @@ const s = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.toggle
|
|
|
23
25
|
componentDidRender() {
|
|
24
26
|
!this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
|
|
25
27
|
}
|
|
28
|
+
componentDidLoad() {
|
|
29
|
+
this.options.length !== 0 && this.options.forEach((e) => {
|
|
30
|
+
this.callBackObject[e.name] = (i) => {
|
|
31
|
+
this.handleRevealField(i, e.name);
|
|
32
|
+
}, this.subFieldsObject[e.name].addEventListener("click", this.callBackObject[e.name]);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
26
35
|
handleClick() {
|
|
27
36
|
this.showFields = this.checkboxReference.checked, this.errorMessage = this.setErrorMessage(), this.isValid = this.setValidity(), this.valueHandler({ name: this.name, value: this.checkboxReference.checked ? "true" : "false", type: "toggle" });
|
|
28
37
|
}
|
|
@@ -31,7 +40,12 @@ const s = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.toggle
|
|
|
31
40
|
}
|
|
32
41
|
setErrorMessage() {
|
|
33
42
|
if (this.checkboxReference.validity.valueMissing)
|
|
34
|
-
return
|
|
43
|
+
return n("requiredError", this.language);
|
|
44
|
+
}
|
|
45
|
+
disconnectedCallback() {
|
|
46
|
+
this.options.forEach((e) => {
|
|
47
|
+
this.subFieldsObject[e.name].removeEventListener("click", this.callBackObject[e.name]);
|
|
48
|
+
});
|
|
35
49
|
}
|
|
36
50
|
renderLabel() {
|
|
37
51
|
return t("label", { class: "togglecheckbox__label", htmlFor: `${this.name}__input` }, t("div", { class: "togglecheckbox__label-text", innerHTML: `${this.displayName} ${this.validation.mandatory ? "*" : ""}` }));
|
|
@@ -40,7 +54,7 @@ const s = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.toggle
|
|
|
40
54
|
return this.showTooltip ? t("div", { class: `togglecheckbox__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (e) => this.tooltipReference = e, innerHTML: this.tooltip }) : null;
|
|
41
55
|
}
|
|
42
56
|
render() {
|
|
43
|
-
return t("div", { key: "
|
|
57
|
+
return t("div", { key: "d7084a7f82d45b3d1e7f8ae373b663b2aefdf5ec", class: `togglecheckbox__wrapper ${this.name}__input`, ref: (e) => this.stylingContainer = e }, t("div", { key: "f065f4611805dd8490234bcec1fecdbcfcaefab8", class: "togglecheckbox__wrapper--flex" }, t("input", { key: "c5196d5a4cd2f114a610037285ee644fcabc37bd", class: "togglecheckbox__input", type: "checkbox", id: `${this.name}__input`, ref: (e) => this.checkboxReference = e, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), t("small", { key: "06d5db0994272ec9dde1b5cd0d525bb53ff1a058", class: "togglecheckbox__error-message" }, this.errorMessage), t("div", { key: "aff16ac9ed0adb896f2c1822014c5c8c4d6db2d4", class: "togglecheckbox__wrapper--relative" }, this.tooltip && t("img", { key: "6b049cecc095a2127eb566f50fd0f8feaa8cb3d5", class: "togglecheckbox__tooltip-icon", src: s, alt: "", ref: (e) => this.tooltipIconReference = e, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), t("div", { key: "372c3eb72cffd482fe1c179047ec3900cef00d46", class: `togglecheckbox__fields-wrapper ${this.showFields ? "" : "hidden"}` }, this.options.map((e) => t("general-input", { type: e.inputType, name: e.name, displayName: e.displayName, validation: e.validate, action: e.action || null, defaultValue: e.defaultValue, autofilled: e.autofill, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: e.tooltip, placeholder: e.placeholder == null ? "" : e.placeholder, ref: (i) => this.subFieldsObject[e.name] = i }))));
|
|
44
58
|
}
|
|
45
59
|
static get watchers() {
|
|
46
60
|
return {
|
|
@@ -48,7 +62,7 @@ const s = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.toggle
|
|
|
48
62
|
};
|
|
49
63
|
}
|
|
50
64
|
};
|
|
51
|
-
|
|
65
|
+
h.style = c;
|
|
52
66
|
export {
|
|
53
|
-
|
|
67
|
+
h as toggle_checkbox_input
|
|
54
68
|
};
|
|
@@ -5,25 +5,25 @@ var n = (o, t, e) => new Promise((m, s) => {
|
|
|
5
5
|
} catch (i) {
|
|
6
6
|
s(i);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, u = (r) => {
|
|
9
9
|
try {
|
|
10
10
|
a(e.throw(r));
|
|
11
11
|
} catch (i) {
|
|
12
12
|
s(i);
|
|
13
13
|
}
|
|
14
|
-
}, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(l,
|
|
14
|
+
}, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(l, u);
|
|
15
15
|
a((e = e.apply(o, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as
|
|
17
|
+
import { b as p, p as c } from "./index-b2193545-q1mvaES7.js";
|
|
18
18
|
import { b as g } from "./app-globals-0f993ce5-DzSE6TtH.js";
|
|
19
|
-
import { U as
|
|
20
|
-
var
|
|
19
|
+
import { U as R } from "./ui-skeleton-ea659b95-DEnEjYcS.js";
|
|
20
|
+
var h = () => {
|
|
21
21
|
const o = import.meta.url, t = {};
|
|
22
22
|
return o !== "" && (t.resourcesUrl = new URL(".", o).href), c(t);
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
return yield g(),
|
|
24
|
+
h().then((o) => n(void 0, null, function* () {
|
|
25
|
+
return yield g(), p([["ui-skeleton", [[0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [2, "border-radius"], marginBottom: [2, "margin-bottom"], marginTop: [2, "margin-top"], marginLeft: [2, "margin-left"], marginRight: [2, "margin-right"], animation: [4], rows: [2], size: [1], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"] }]]]], o);
|
|
26
26
|
}));
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
R as ui_skeleton
|
|
29
29
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var c=(r,t,o)=>new Promise((l,s)=>{var m=e=>{try{n(o.next(e))}catch(i){s(i)}},d=e=>{try{n(o.throw(e))}catch(i){s(i)}},n=e=>e.done?l(e.value):Promise.resolve(e.value).then(m,d);n((o=o.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-b2193545-CJQ4H9NG.cjs"),p=require("./app-globals-0f993ce5-DgYhdguE.cjs"),g=require("./ui-skeleton-ea659b95-BBQBvLes.cjs");var a=typeof document!="undefined"?document.currentScript:null,f=()=>{const r=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-skeleton-C_u2sCMV.cjs",document.baseURI).href,t={};return r!==""&&(t.resourcesUrl=new URL(".",r).href),u.promiseResolve(t)};f().then(r=>c(exports,null,function*(){return yield p.globalScripts$2(),u.bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[2,"border-radius"],marginBottom:[2,"margin-bottom"],marginTop:[2,"margin-top"],marginLeft:[2,"margin-left"],marginRight:[2,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]]],r)}));exports.ui_skeleton=g.UiSkeleton;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as t, p as e } from "./index-
|
|
1
|
+
import { b as t, p as e } from "./index-b2193545-B240yE4M.js";
|
|
2
2
|
import { b as a } from "./app-globals-0f993ce5-DzSE6TtH.js";
|
|
3
|
-
import { U as
|
|
3
|
+
import { U as u } from "./ui-skeleton-ea659b95-B0Wm9BdQ.js";
|
|
4
4
|
var i = () => {
|
|
5
5
|
const r = import.meta.url, o = {};
|
|
6
6
|
return r !== "" && (o.resourcesUrl = new URL(".", r).href), e(o);
|
|
7
7
|
};
|
|
8
|
-
i().then(async (r) => (await a(), t([["ui-skeleton", [[0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [2, "border-radius"], marginBottom: [2, "margin-bottom"], marginTop: [2, "margin-top"], marginLeft: [2, "margin-left"], marginRight: [2, "margin-right"], animation: [4], rows: [2], size: [1], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"]
|
|
8
|
+
i().then(async (r) => (await a(), t([["ui-skeleton", [[0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [2, "border-radius"], marginBottom: [2, "margin-bottom"], marginTop: [2, "margin-top"], marginLeft: [2, "margin-left"], marginRight: [2, "margin-right"], animation: [4], rows: [2], size: [1], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"] }]]]], r)));
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
u as ui_skeleton
|
|
11
11
|
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { r as o, h as t, H as i } from "./index-b2193545-B240yE4M.js";
|
|
2
|
+
const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, a = class {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
o(this, e), this.structure = void 0, this.width = void 0, this.height = void 0, this.borderRadius = void 0, this.marginBottom = void 0, this.marginTop = void 0, this.marginLeft = void 0, this.marginRight = void 0, this.animation = !0, this.rows = void 0, this.size = void 0, this.color = void 0, this.primaryColor = void 0, this.secondaryColor = void 0;
|
|
5
|
+
}
|
|
6
|
+
handleStructureChange(e, r) {
|
|
7
|
+
r !== e && this.handleStructure(e);
|
|
8
|
+
}
|
|
9
|
+
handleStructure(e) {
|
|
10
|
+
switch (e) {
|
|
11
|
+
case "logo":
|
|
12
|
+
return this.renderLogo();
|
|
13
|
+
case "image":
|
|
14
|
+
return this.renderImage();
|
|
15
|
+
case "title":
|
|
16
|
+
return this.renderTitle();
|
|
17
|
+
case "text":
|
|
18
|
+
return this.renderText();
|
|
19
|
+
case "rectangle":
|
|
20
|
+
return this.renderRectangle();
|
|
21
|
+
case "circle":
|
|
22
|
+
return this.renderCircle();
|
|
23
|
+
default:
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
renderLogo() {
|
|
28
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
29
|
+
}
|
|
30
|
+
renderImage() {
|
|
31
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Image " + (this.animation ? "Skeleton" : "") }));
|
|
32
|
+
}
|
|
33
|
+
renderTitle() {
|
|
34
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
35
|
+
}
|
|
36
|
+
renderText() {
|
|
37
|
+
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, r) => t("div", { key: r, class: "Text " + (this.animation ? "Skeleton" : "") })));
|
|
38
|
+
}
|
|
39
|
+
renderRectangle() {
|
|
40
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
41
|
+
}
|
|
42
|
+
renderCircle() {
|
|
43
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
let e = "";
|
|
47
|
+
switch (this.structure) {
|
|
48
|
+
case "logo":
|
|
49
|
+
e = `
|
|
50
|
+
:host {
|
|
51
|
+
--emw-skeleton-logo-width: ${this.width};
|
|
52
|
+
--emw-skeleton-logo-height: ${this.height};
|
|
53
|
+
--emw-skeleton-logo-border-radius: ${this.borderRadius}px;
|
|
54
|
+
--emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;
|
|
55
|
+
--emw-skeleton-logo-margin-top: ${this.marginTop}px;
|
|
56
|
+
--emw-skeleton-logo-margin-left: ${this.marginLeft}px;
|
|
57
|
+
--emw-skeleton-logo-margin-right: ${this.marginRight}px;
|
|
58
|
+
--emw-skeleton-logo-background: ${this.color};
|
|
59
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
60
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
break;
|
|
64
|
+
case "image":
|
|
65
|
+
e = `
|
|
66
|
+
:host {
|
|
67
|
+
--emw-skeleton-image-width: ${this.width};
|
|
68
|
+
--emw-skeleton-image-height: ${this.height};
|
|
69
|
+
--emw-skeleton-image-border-radius: ${this.borderRadius}px;
|
|
70
|
+
--emw-skeleton-image-margin-bottom: ${this.marginBottom}px;
|
|
71
|
+
--emw-skeleton-image-margin-top: ${this.marginTop}px;
|
|
72
|
+
--emw-skeleton-image-margin-left: ${this.marginLeft}px;
|
|
73
|
+
--emw-skeleton-image-margin-right: ${this.marginRight}px;
|
|
74
|
+
--emw-skeleton-image-background: ${this.color};
|
|
75
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
76
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
break;
|
|
80
|
+
case "title":
|
|
81
|
+
e = `
|
|
82
|
+
:host {
|
|
83
|
+
--emw-skeleton-title-width: ${this.width};
|
|
84
|
+
--emw-skeleton-title-height: ${this.height};
|
|
85
|
+
--emw-skeleton-title-border-radius: ${this.borderRadius}px;
|
|
86
|
+
--emw-skeleton-title-margin-bottom: ${this.marginBottom}px;
|
|
87
|
+
--emw-skeleton-title-margin-top: ${this.marginTop}px;
|
|
88
|
+
--emw-skeleton-title-margin-left: ${this.marginLeft}px;
|
|
89
|
+
--emw-skeleton-title-margin-right: ${this.marginRight}px;
|
|
90
|
+
--emw-skeleton-title-background: ${this.color};
|
|
91
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
92
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
break;
|
|
96
|
+
case "text":
|
|
97
|
+
e = `
|
|
98
|
+
:host {
|
|
99
|
+
--emw-skeleton-text-width: ${this.width};
|
|
100
|
+
--emw-skeleton-text-height: ${this.height};
|
|
101
|
+
--emw-skeleton-text-border-radius: ${this.borderRadius}px;
|
|
102
|
+
--emw-skeleton-text-margin-bottom: ${this.marginBottom}px;
|
|
103
|
+
--emw-skeleton-text-margin-top: ${this.marginTop}px;
|
|
104
|
+
--emw-skeleton-text-margin-left: ${this.marginLeft}px;
|
|
105
|
+
--emw-skeleton-text-margin-right: ${this.marginRight}px;
|
|
106
|
+
--emw-skeleton-text-background: ${this.color};
|
|
107
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
108
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
109
|
+
}
|
|
110
|
+
`;
|
|
111
|
+
break;
|
|
112
|
+
case "rectangle":
|
|
113
|
+
e = `
|
|
114
|
+
:host {
|
|
115
|
+
--emw-skeleton-rectangle-width: ${this.width};
|
|
116
|
+
--emw-skeleton-rectangle-height: ${this.height};
|
|
117
|
+
--emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;
|
|
118
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;
|
|
119
|
+
--emw-skeleton-rectangle-margin-top: ${this.marginTop}px;
|
|
120
|
+
--emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;
|
|
121
|
+
--emw-skeleton-rectangle-margin-right: ${this.marginRight}px;
|
|
122
|
+
--emw-skeleton-rectangle-background: ${this.color};
|
|
123
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
124
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
125
|
+
}
|
|
126
|
+
`;
|
|
127
|
+
break;
|
|
128
|
+
case "circle":
|
|
129
|
+
e = `
|
|
130
|
+
:host {
|
|
131
|
+
--emw-skeleton-circle-size: ${this.size};
|
|
132
|
+
--emw-skeleton-circle-background: ${this.color};
|
|
133
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
134
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
135
|
+
}
|
|
136
|
+
`;
|
|
137
|
+
break;
|
|
138
|
+
default:
|
|
139
|
+
e = "";
|
|
140
|
+
}
|
|
141
|
+
return t(i, { key: "58f7f9acd15f0f96b8b6f47f6bea81d49a3857c5" }, t("style", { key: "c72ac31d1c55fd5d18ec334629db45977a0f6124" }, e), this.handleStructure(this.structure));
|
|
142
|
+
}
|
|
143
|
+
static get watchers() {
|
|
144
|
+
return {
|
|
145
|
+
structure: ["handleStructureChange"]
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
a.style = s;
|
|
150
|
+
export {
|
|
151
|
+
a as U
|
|
152
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";const t=require("./index-b2193545-CJQ4H9NG.cjs"),i=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}",n=i,o=class{constructor(e){t.registerInstance(this,e),this.structure=void 0,this.width=void 0,this.height=void 0,this.borderRadius=void 0,this.marginBottom=void 0,this.marginTop=void 0,this.marginLeft=void 0,this.marginRight=void 0,this.animation=!0,this.rows=void 0,this.size=void 0,this.color=void 0,this.primaryColor=void 0,this.secondaryColor=void 0}handleStructureChange(e,r){r!==e&&this.handleStructure(e)}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Image "+(this.animation?"Skeleton":"")}))}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,r)=>t.h("div",{key:r,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
|
2
|
+
:host {
|
|
3
|
+
--emw-skeleton-logo-width: ${this.width};
|
|
4
|
+
--emw-skeleton-logo-height: ${this.height};
|
|
5
|
+
--emw-skeleton-logo-border-radius: ${this.borderRadius}px;
|
|
6
|
+
--emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;
|
|
7
|
+
--emw-skeleton-logo-margin-top: ${this.marginTop}px;
|
|
8
|
+
--emw-skeleton-logo-margin-left: ${this.marginLeft}px;
|
|
9
|
+
--emw-skeleton-logo-margin-right: ${this.marginRight}px;
|
|
10
|
+
--emw-skeleton-logo-background: ${this.color};
|
|
11
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
12
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
13
|
+
}
|
|
14
|
+
`;break;case"image":e=`
|
|
15
|
+
:host {
|
|
16
|
+
--emw-skeleton-image-width: ${this.width};
|
|
17
|
+
--emw-skeleton-image-height: ${this.height};
|
|
18
|
+
--emw-skeleton-image-border-radius: ${this.borderRadius}px;
|
|
19
|
+
--emw-skeleton-image-margin-bottom: ${this.marginBottom}px;
|
|
20
|
+
--emw-skeleton-image-margin-top: ${this.marginTop}px;
|
|
21
|
+
--emw-skeleton-image-margin-left: ${this.marginLeft}px;
|
|
22
|
+
--emw-skeleton-image-margin-right: ${this.marginRight}px;
|
|
23
|
+
--emw-skeleton-image-background: ${this.color};
|
|
24
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
25
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
26
|
+
}
|
|
27
|
+
`;break;case"title":e=`
|
|
28
|
+
:host {
|
|
29
|
+
--emw-skeleton-title-width: ${this.width};
|
|
30
|
+
--emw-skeleton-title-height: ${this.height};
|
|
31
|
+
--emw-skeleton-title-border-radius: ${this.borderRadius}px;
|
|
32
|
+
--emw-skeleton-title-margin-bottom: ${this.marginBottom}px;
|
|
33
|
+
--emw-skeleton-title-margin-top: ${this.marginTop}px;
|
|
34
|
+
--emw-skeleton-title-margin-left: ${this.marginLeft}px;
|
|
35
|
+
--emw-skeleton-title-margin-right: ${this.marginRight}px;
|
|
36
|
+
--emw-skeleton-title-background: ${this.color};
|
|
37
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
38
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
39
|
+
}
|
|
40
|
+
`;break;case"text":e=`
|
|
41
|
+
:host {
|
|
42
|
+
--emw-skeleton-text-width: ${this.width};
|
|
43
|
+
--emw-skeleton-text-height: ${this.height};
|
|
44
|
+
--emw-skeleton-text-border-radius: ${this.borderRadius}px;
|
|
45
|
+
--emw-skeleton-text-margin-bottom: ${this.marginBottom}px;
|
|
46
|
+
--emw-skeleton-text-margin-top: ${this.marginTop}px;
|
|
47
|
+
--emw-skeleton-text-margin-left: ${this.marginLeft}px;
|
|
48
|
+
--emw-skeleton-text-margin-right: ${this.marginRight}px;
|
|
49
|
+
--emw-skeleton-text-background: ${this.color};
|
|
50
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
51
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
52
|
+
}
|
|
53
|
+
`;break;case"rectangle":e=`
|
|
54
|
+
:host {
|
|
55
|
+
--emw-skeleton-rectangle-width: ${this.width};
|
|
56
|
+
--emw-skeleton-rectangle-height: ${this.height};
|
|
57
|
+
--emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;
|
|
58
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;
|
|
59
|
+
--emw-skeleton-rectangle-margin-top: ${this.marginTop}px;
|
|
60
|
+
--emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;
|
|
61
|
+
--emw-skeleton-rectangle-margin-right: ${this.marginRight}px;
|
|
62
|
+
--emw-skeleton-rectangle-background: ${this.color};
|
|
63
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
64
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
65
|
+
}
|
|
66
|
+
`;break;case"circle":e=`
|
|
67
|
+
:host {
|
|
68
|
+
--emw-skeleton-circle-size: ${this.size};
|
|
69
|
+
--emw-skeleton-circle-background: ${this.color};
|
|
70
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
71
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
72
|
+
}
|
|
73
|
+
`;break;default:e=""}return t.h(t.Host,{key:"58f7f9acd15f0f96b8b6f47f6bea81d49a3857c5"},t.h("style",{key:"c72ac31d1c55fd5d18ec334629db45977a0f6124"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};o.style=n;exports.UiSkeleton=o;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { r as o, h as t, H as i } from "./index-b2193545-q1mvaES7.js";
|
|
2
|
+
const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, a = class {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
o(this, e), this.structure = void 0, this.width = void 0, this.height = void 0, this.borderRadius = void 0, this.marginBottom = void 0, this.marginTop = void 0, this.marginLeft = void 0, this.marginRight = void 0, this.animation = !0, this.rows = void 0, this.size = void 0, this.color = void 0, this.primaryColor = void 0, this.secondaryColor = void 0;
|
|
5
|
+
}
|
|
6
|
+
handleStructureChange(e, r) {
|
|
7
|
+
r !== e && this.handleStructure(e);
|
|
8
|
+
}
|
|
9
|
+
handleStructure(e) {
|
|
10
|
+
switch (e) {
|
|
11
|
+
case "logo":
|
|
12
|
+
return this.renderLogo();
|
|
13
|
+
case "image":
|
|
14
|
+
return this.renderImage();
|
|
15
|
+
case "title":
|
|
16
|
+
return this.renderTitle();
|
|
17
|
+
case "text":
|
|
18
|
+
return this.renderText();
|
|
19
|
+
case "rectangle":
|
|
20
|
+
return this.renderRectangle();
|
|
21
|
+
case "circle":
|
|
22
|
+
return this.renderCircle();
|
|
23
|
+
default:
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
renderLogo() {
|
|
28
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
29
|
+
}
|
|
30
|
+
renderImage() {
|
|
31
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Image " + (this.animation ? "Skeleton" : "") }));
|
|
32
|
+
}
|
|
33
|
+
renderTitle() {
|
|
34
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
35
|
+
}
|
|
36
|
+
renderText() {
|
|
37
|
+
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, r) => t("div", { key: r, class: "Text " + (this.animation ? "Skeleton" : "") })));
|
|
38
|
+
}
|
|
39
|
+
renderRectangle() {
|
|
40
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
41
|
+
}
|
|
42
|
+
renderCircle() {
|
|
43
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
let e = "";
|
|
47
|
+
switch (this.structure) {
|
|
48
|
+
case "logo":
|
|
49
|
+
e = `
|
|
50
|
+
:host {
|
|
51
|
+
--emw-skeleton-logo-width: ${this.width};
|
|
52
|
+
--emw-skeleton-logo-height: ${this.height};
|
|
53
|
+
--emw-skeleton-logo-border-radius: ${this.borderRadius}px;
|
|
54
|
+
--emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;
|
|
55
|
+
--emw-skeleton-logo-margin-top: ${this.marginTop}px;
|
|
56
|
+
--emw-skeleton-logo-margin-left: ${this.marginLeft}px;
|
|
57
|
+
--emw-skeleton-logo-margin-right: ${this.marginRight}px;
|
|
58
|
+
--emw-skeleton-logo-background: ${this.color};
|
|
59
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
60
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
break;
|
|
64
|
+
case "image":
|
|
65
|
+
e = `
|
|
66
|
+
:host {
|
|
67
|
+
--emw-skeleton-image-width: ${this.width};
|
|
68
|
+
--emw-skeleton-image-height: ${this.height};
|
|
69
|
+
--emw-skeleton-image-border-radius: ${this.borderRadius}px;
|
|
70
|
+
--emw-skeleton-image-margin-bottom: ${this.marginBottom}px;
|
|
71
|
+
--emw-skeleton-image-margin-top: ${this.marginTop}px;
|
|
72
|
+
--emw-skeleton-image-margin-left: ${this.marginLeft}px;
|
|
73
|
+
--emw-skeleton-image-margin-right: ${this.marginRight}px;
|
|
74
|
+
--emw-skeleton-image-background: ${this.color};
|
|
75
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
76
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
break;
|
|
80
|
+
case "title":
|
|
81
|
+
e = `
|
|
82
|
+
:host {
|
|
83
|
+
--emw-skeleton-title-width: ${this.width};
|
|
84
|
+
--emw-skeleton-title-height: ${this.height};
|
|
85
|
+
--emw-skeleton-title-border-radius: ${this.borderRadius}px;
|
|
86
|
+
--emw-skeleton-title-margin-bottom: ${this.marginBottom}px;
|
|
87
|
+
--emw-skeleton-title-margin-top: ${this.marginTop}px;
|
|
88
|
+
--emw-skeleton-title-margin-left: ${this.marginLeft}px;
|
|
89
|
+
--emw-skeleton-title-margin-right: ${this.marginRight}px;
|
|
90
|
+
--emw-skeleton-title-background: ${this.color};
|
|
91
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
92
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
break;
|
|
96
|
+
case "text":
|
|
97
|
+
e = `
|
|
98
|
+
:host {
|
|
99
|
+
--emw-skeleton-text-width: ${this.width};
|
|
100
|
+
--emw-skeleton-text-height: ${this.height};
|
|
101
|
+
--emw-skeleton-text-border-radius: ${this.borderRadius}px;
|
|
102
|
+
--emw-skeleton-text-margin-bottom: ${this.marginBottom}px;
|
|
103
|
+
--emw-skeleton-text-margin-top: ${this.marginTop}px;
|
|
104
|
+
--emw-skeleton-text-margin-left: ${this.marginLeft}px;
|
|
105
|
+
--emw-skeleton-text-margin-right: ${this.marginRight}px;
|
|
106
|
+
--emw-skeleton-text-background: ${this.color};
|
|
107
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
108
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
109
|
+
}
|
|
110
|
+
`;
|
|
111
|
+
break;
|
|
112
|
+
case "rectangle":
|
|
113
|
+
e = `
|
|
114
|
+
:host {
|
|
115
|
+
--emw-skeleton-rectangle-width: ${this.width};
|
|
116
|
+
--emw-skeleton-rectangle-height: ${this.height};
|
|
117
|
+
--emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;
|
|
118
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;
|
|
119
|
+
--emw-skeleton-rectangle-margin-top: ${this.marginTop}px;
|
|
120
|
+
--emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;
|
|
121
|
+
--emw-skeleton-rectangle-margin-right: ${this.marginRight}px;
|
|
122
|
+
--emw-skeleton-rectangle-background: ${this.color};
|
|
123
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
124
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
125
|
+
}
|
|
126
|
+
`;
|
|
127
|
+
break;
|
|
128
|
+
case "circle":
|
|
129
|
+
e = `
|
|
130
|
+
:host {
|
|
131
|
+
--emw-skeleton-circle-size: ${this.size};
|
|
132
|
+
--emw-skeleton-circle-background: ${this.color};
|
|
133
|
+
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
134
|
+
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
135
|
+
}
|
|
136
|
+
`;
|
|
137
|
+
break;
|
|
138
|
+
default:
|
|
139
|
+
e = "";
|
|
140
|
+
}
|
|
141
|
+
return t(i, { key: "58f7f9acd15f0f96b8b6f47f6bea81d49a3857c5" }, t("style", { key: "c72ac31d1c55fd5d18ec334629db45977a0f6124" }, e), this.handleStructure(this.structure));
|
|
142
|
+
}
|
|
143
|
+
static get watchers() {
|
|
144
|
+
return {
|
|
145
|
+
structure: ["handleStructureChange"]
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
a.style = s;
|
|
150
|
+
export {
|
|
151
|
+
a as U
|
|
152
|
+
};
|