@salla.sa/twilight-components 2.9.7 → 2.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-538ab976.js → index-2a81e6e4.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-button_30.cjs.entry.js +7 -21
- package/dist/cjs/salla-select.cjs.entry.js +0 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/collection/components/salla-comment-form/salla-comment-form.js +4 -4
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -232
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +1 -3
- package/dist/collection/components/salla-gifting/salla-gifting.js +4 -7
- package/dist/collection/components/salla-list-tile/salla-list-tile.js +6 -0
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +2 -2
- package/dist/collection/components/salla-loyalty/salla-loyalty.js +4 -0
- package/dist/collection/components/salla-modal/salla-modal.js +1 -1
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +4 -0
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +2 -2
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +4 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +3 -0
- package/dist/collection/components/salla-select/salla-select.js +0 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +3 -0
- package/dist/collection/components/salla-swiper/salla-swiper.js +3 -0
- package/dist/collection/components/salla-tabs/salla-tab-content.js +3 -0
- package/dist/collection/components/salla-tabs/salla-tab-header.js +3 -0
- package/dist/collection/components/salla-tabs/salla-tabs.js +4 -0
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -16
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +4 -1
- package/dist/components/index.js +1 -1
- package/dist/components/salla-comment-form.js +2 -2
- package/dist/components/salla-datetime-picker2.js +0 -22
- package/dist/components/salla-file-upload2.js +0 -2
- package/dist/components/salla-gifting.js +2 -4
- package/dist/components/salla-product-size-guide.js +0 -1
- package/dist/components/salla-select.js +0 -1
- package/dist/components/salla-tel-input2.js +0 -1
- package/dist/components/salla-user-settings.js +3 -0
- package/dist/esm/{index-baca3e9b.js → index-535ae6f8.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-button_30.entry.js +7 -21
- package/dist/esm/salla-select.entry.js +0 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/esm-es5/{index-baca3e9b.js → index-535ae6f8.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/salla-button_30.entry.js +2 -2
- package/dist/esm-es5/salla-select.entry.js +1 -1
- package/dist/esm-es5/twilight.js +1 -1
- package/dist/twilight/{p-f610b6bf.system.entry.js → p-0df01b70.system.entry.js} +1 -1
- package/dist/twilight/{p-95c89288.js → p-11002b35.js} +1 -1
- package/dist/twilight/{p-2c2ee67a.system.js → p-4d9a19dc.system.js} +1 -1
- package/dist/twilight/{p-3c75e374.system.js → p-5c5a3fc1.system.js} +1 -1
- package/dist/twilight/p-af4aa9f9.entry.js +4 -0
- package/dist/twilight/{p-99c87dea.entry.js → p-b101167a.entry.js} +2 -2
- package/dist/twilight/{p-83362f18.system.entry.js → p-d3a6d978.system.entry.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/twilight/twilight.js +1 -1
- package/dist/types/components/salla-comment-form/salla-comment-form.d.ts +2 -2
- package/dist/types/components/salla-datetime-picker/salla-datetime-picker.d.ts +4 -46
- package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +3 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +2 -3
- package/dist/types/components/salla-list-tile/salla-list-tile.d.ts +6 -0
- package/dist/types/components/salla-loyalty/salla-loyalty-prize-item.d.ts +6 -0
- package/dist/types/components/salla-loyalty/salla-loyalty.d.ts +4 -0
- package/dist/types/components/salla-modal/salla-modal.d.ts +3 -0
- package/dist/types/components/salla-placeholder/salla-placeholder.d.ts +4 -0
- package/dist/types/components/salla-product-availability/salla-product-availability.d.ts +1 -1
- package/dist/types/components/salla-product-size-guide/salla-product-size-guide.d.ts +4 -0
- package/dist/types/components/salla-scopes/salla-scopes.d.ts +3 -0
- package/dist/types/components/salla-social-share/salla-social-share.d.ts +3 -0
- package/dist/types/components/salla-swiper/salla-swiper.d.ts +3 -0
- package/dist/types/components/salla-tabs/salla-tab-content.d.ts +3 -0
- package/dist/types/components/salla-tabs/salla-tab-header.d.ts +3 -0
- package/dist/types/components/salla-tabs/salla-tabs.d.ts +4 -0
- package/dist/types/components/salla-tel-input/salla-tel-input.d.ts +1 -2
- package/dist/types/components/salla-user-settings/salla-user-settings.d.ts +3 -0
- package/dist/types/components.d.ts +32 -97
- package/package.json +3 -3
- package/dist/twilight/p-97daba27.entry.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{p as e,w as a,d as l,N as t,a as o,b as i}from"./p-ca68752d.js";import"./p-95c89288.js";import"./p-f84bae34.js";(()=>{e.l=a.__cssshim;const i=Array.from(l.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),r={};return r.resourcesUrl=new URL(".",new URL(i.getAttribute("data-resources-url")||i.src,a.location.href)).href,((e,o)=>{const i=`__sc_import_${t.replace(/\s|-/g,"_")}`;try{a[i]=new Function("w",`return import(w);//${Math.random()}`)}catch(t){const r=new Map;a[i]=t=>{const s=new URL(t,e).href;let n=r.get(s);if(!n){const e=l.createElement("script");e.type="module",e.crossOrigin=o.crossOrigin,e.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${i}.m = m;`],{type:"application/javascript"})),n=new Promise((l=>{e.onload=()=>{l(a[i].m),e.remove()}})),r.set(s,n),l.head.appendChild(e)}return n}}})(r.resourcesUrl,i),a.customElements?o(r):__sc_import_twilight("./p-5db948f2.js").then((()=>r))})().then((e=>i(JSON.parse('[["p-99c87dea",[[4,"salla-gifting",{"productId":[2,"product-id"],"sectionTitle":[32],"sectionSubtitle":[32],"sectionBtnText":[32],"giftDetails":[32],"selectImageForYourGift":[32],"selectImageOrUpload":[32],"selectGiftMessage":[32],"giftCustomText":[32],"textId":[32],"incorrectGiftText":[32],"nextStep":[32],"senderNameLabel":[32],"receiverNameFieldLabel":[32],"receiverMobileFieldLabel":[32],"receiverEmailFieldLabel":[32],"emailPlaceholder":[32],"sendLater":[32],"selectSendDateAndTime":[32],"canNotEditOrderAfterSelectDate":[32],"sendGift":[32],"donationRequired":[32],"step1Elems":[32],"step2Elems":[32],"stepsWrapper":[32],"textArea":[32],"imageCover":[32],"textSelect":[32],"customTextArea":[32],"calendarFormGroup":[32],"currentStep":[32],"showCalendar":[32],"showGiftText":[32],"currentLang":[32],"parentClass":[32],"errors":[32],"gift":[32],"selectedGiftTextOption":[32],"showTextArea":[32],"selectedImage":[32],"uploadedImage":[32],"selectedText":[32],"senderName":[32],"errorMessage":[32],"hasError":[32],"quantity":[32],"deliveryDate":[32],"timeZone":[32],"receiverName":[32],"receiverMobile":[32],"receiverCountryCode":[32],"receiverEmail":[32],"open":[64],"close":[64],"goToStep2":[64]}],[4,"salla-loyalty",{"prizePoints":[8,"prize-points"],"customerPoints":[2,"customer-points"],"prizeTitle":[1,"prize-title"],"allowEmail":[4,"allow-email"],"allowMobile":[4,"allow-mobile"],"requireEmail":[4,"require-email"],"guestMessage":[1,"guest-message"],"loyaltyProgram":[32],"buttonLoading":[32],"selectedItem":[32],"askConfirmation":[32],"is_loggedin":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64],"resetExchange":[64],"exchangeLoyaltyPoint":[64]}],[4,"salla-product-size-guide",{"guides":[32],"productId":[32],"placeholder_title":[32],"placeholder_description":[32],"modal_title":[32],"hasError":[32],"open":[64],"close":[64]}],[0,"salla-rating-modal",{"orderId":[2,"order-id"],"order":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64]}],[0,"salla-localization-modal",{"language":[1537],"currency":[1537],"translationLoaded":[32],"languages":[32],"currencies":[32],"hasError":[32],"errorMessage":[32],"open":[64],"close":[64],"submit":[64]}],[4,"salla-login-modal",{"isEmailAllowed":[1028,"is-email-allowed"],"isMobileAllowed":[1028,"is-mobile-allowed"],"isEmailRequired":[1028,"is-email-required"],"supportWebAuth":[516,"support-web-auth"],"currentTabName":[32],"regType":[32],"translationLoaded":[32],"title":[32],"emailErrorMsg":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"open":[64]},[[8,"verified","onVerified"]]],[0,"salla-offer-modal",{"offer":[32],"offer_name":[32],"offer_message":[32],"hasError":[32],"errorMessage":[32],"productID":[32],"translationLoaded":[32],"addToCartLabel":[32],"open":[64],"showOffer":[64]}],[0,"salla-user-settings",{"isNotifiable":[516,"is-notifiable"],"deactivateAccount":[32],"promotionalMsgs":[32],"deactivateDesc":[32],"promotionalMsgsDesc":[32],"sorryForLeavingText":[32],"warningText":[32],"keepAccount":[32],"buttonLoading":[32]}],[0,"salla-search",{"inline":[4],"oval":[4],"height":[2],"translationLoaded":[32],"results":[32],"loading":[32],"typing":[32],"debounce":[32],"search_term":[32]},[[0,"keydown","handleKeyDown"]]],[0,"salla-comment-form",{"type":[1],"itemId":[8,"item-id"],"placeholder":[32],"submitText":[32],"canComment":[32]}],[4,"salla-social-share",{"url":[513],"urlName":[513,"url-name"],"platforms":[16],"opened":[32],"allPlatforms":[32],"platformIcons":[32],"open":[64]}],[4,"salla-cart-summary",{"cartSummaryCount":[32],"cartSummaryTotal":[32]}],[4,"salla-infinite-scroll",{"nextPage":[1,"next-page"],"autoload":[1028],"container":[1],"item":[1],"loadMore":[32],"noMore":[32],"failedToLoad":[32]}],[4,"salla-quantity-input",{"quantity":[32],"decrease":[64],"increase":[64],"setValue":[64]}],[0,"salla-product-availability",{"channels":[1],"productId":[2,"product-id"],"isSubscribed":[1028,"is-subscribed"],"translationLoaded":[32],"title_":[32],"isVisitorSubscribed":[32]}],[4,"salla-verify",{"display":[1],"type":[1025],"autoReload":[4,"auto-reload"],"supportWebAuth":[4,"support-web-auth"],"translationLoaded":[32],"title":[32],"resendAfter":[32],"isProfileVerify":[32],"getCode":[64],"open":[64]}],[0,"salla-datetime-picker",{"value":[1025],"placeholder":[1],"allowInput":[4,"allow-input"],"allowInvalidPreload":[4,"allow-invalid-preload"],"altFormat":[1,"alt-format"],"altInput":[4,"alt-input"],"altInputClass":[1,"alt-input-class"],"appendTo":[16],"ariaDateFormat":[1,"aria-date-format"],"autoFillDefaultTime":[4,"auto-fill-default-time"],"clickOpens":[4,"click-opens"],"closeOnSelect":[4,"close-on-select"],"conjunction":[1],"dateFormat":[1,"date-format"],"defaultDate":[8,"default-date"],"defaultHour":[2,"default-hour"],"defaultMinute":[2,"default-minute"],"defaultSeconds":[2,"default-seconds"],"disable":[16],"disableMobile":[4,"disable-mobile"],"enable":[16],"enableSeconds":[4,"enable-seconds"],"enableTime":[4,"enable-time"],"formatDate":[16],"hourIncrement":[2,"hour-increment"],"inline":[4],"locale":[1],"maxDate":[8,"max-date"],"maxTime":[8,"max-time"],"minDate":[8,"min-date"],"minTime":[8,"min-time"],"minuteIncrement":[2,"minute-increment"],"mode":[1],"monthSelectorType":[1,"month-selector-type"],"nextArrow":[1,"next-arrow"],"noCalendar":[4,"no-calendar"],"onChange":[16],"onClose":[16],"onDayCreate":[16],"onDestroy":[16],"onKeyDown":[16],"onMonthChange":[16],"onOpen":[16],"onParseConfig":[16],"onReady":[16],"onValueUpdate":[16],"onYearChange":[16],"dateParser":[16],"position":[1],"positionElement":[16],"prevArrow":[1,"prev-arrow"],"shorthandCurrentMonth":[4,"shorthand-current-month"],"static":[4],"showMonths":[2,"show-months"],"time_24hr":[4,"time_-2-4hr"],"weekNumbers":[4,"week-numbers"],"wrap":[4]}],[0,"salla-file-upload",{"required":[4],"disabled":[4],"allowDrop":[4,"allow-drop"],"allowBrowse":[4,"allow-browse"],"allowPaste":[4,"allow-paste"],"allowMultiple":[4,"allow-multiple"],"allowReplace":[4,"allow-replace"],"allowRevert":[4,"allow-revert"],"allowRemove":[4,"allow-remove"],"allowProcess":[4,"allow-process"],"allowReorder":[4,"allow-reorder"],"storeAsFile":[4,"store-as-file"],"forceRevert":[4,"force-revert"],"maxFilesCount":[2,"max-files-count"],"maxParallelUploads":[2,"max-parallel-uploads"],"checkValidity":[4,"check-validity"],"itemInsertLocation":[1,"item-insert-location"],"itemInsertInterval":[2,"item-insert-interval"],"credits":[4],"dropOnPage":[4,"drop-on-page"],"dropOnElement":[4,"drop-on-element"],"dropValidation":[4,"drop-validation"],"ignoredFiles":[16],"serverConfig":[1,"server-config"],"instantUpload":[4,"instant-upload"],"chunkUploads":[4,"chunk-uploads"],"chunkForce":[4,"chunk-force"],"chunkSize":[2,"chunk-size"],"chunkRetryDelays":[16],"labelDecimalSeparator":[1,"label-decimal-separator"],"labelThousandsSeparator":[1,"label-thousands-separator"],"labelIdle":[1,"label-idle"],"labelInvalidField":[1,"label-invalid-field"],"labelFileWaitingForSize":[1,"label-file-waiting-for-size"],"labelFileSizeNotAvailable":[1,"label-file-size-not-available"],"labelFileLoading":[1,"label-file-loading"],"labelFileLoadError":[1,"label-file-load-error"],"labelFileProcessing":[1,"label-file-processing"],"labelFileProcessingComplete":[1,"label-file-processing-complete"],"labelFileProcessingAborted":[1,"label-file-processing-aborted"],"labelFileProcessingError":[1,"label-file-processing-error"],"labelFileProcessingRevertError":[1,"label-file-processing-revert-error"],"labelFileRemoveError":[1,"label-file-remove-error"],"labelTapToCancel":[1,"label-tap-to-cancel"],"labelTapToRetry":[1,"label-tap-to-retry"],"labelTapToUndo":[1,"label-tap-to-undo"],"labelButtonRemoveItem":[1,"label-button-remove-item"],"labelButtonAbortItemLoad":[1,"label-button-abort-item-load"],"labelButtonRetryItemLoad":[1,"label-button-retry-item-load"],"labelButtonAbortItemProcessing":[1,"label-button-abort-item-processing"],"labelButtonUndoItemProcessing":[1,"label-button-undo-item-processing"],"labelButtonRetryItemProcessing":[1,"label-button-retry-item-processing"],"labelButtonProcessItem":[1,"label-button-process-item"],"iconRemove":[1,"icon-remove"],"iconProcess":[1,"icon-process"],"iconRetry":[1,"icon-retry"],"iconUndo":[1,"icon-undo"],"pond":[32],"files":[32],"appendFile":[64]}],[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}],[4,"salla-swiper",{"loop":[4],"speed":[2],"itemPerView":[8,"item-per-view"],"spaceBetweenItems":[2,"space-between-items"],"currentIndex":[32],"isLastSlideItem":[32],"isFirstSlideItem":[32]}],[4,"salla-tab-content",{"name":[1],"isSelected":[32],"getChild":[64]}],[4,"salla-tab-header",{"name":[1],"activeClass":[1,"active-class"],"height":[8],"centered":[4],"isSelected":[32],"getChild":[64]}],[4,"salla-tabs",{"backgroundColor":[1,"background-color"],"vertical":[4]},[[0,"tabSelected","onSelectedTab"]]],[4,"salla-list-tile",{"href":[1],"target":[1]}],[0,"salla-tel-input",{"phone":[1025],"name":[1],"countryCode":[1025,"country-code"],"mobileRequired":[32],"countryCodeLabel":[32],"mobileLabel":[32],"tooShort":[32],"tooLong":[32],"invalidCountryCode":[32],"invalidNumber":[32],"errorMap":[32],"getValues":[64],"isValid":[64]}],[4,"salla-placeholder",{"icon":[1],"alignment":[1],"iconSize":[1,"icon-size"],"translationLoaded":[32]}],[0,"salla-skeleton",{"type":[1],"width":[1],"height":[1]}],[4,"salla-modal",{"isClosable":[1028,"is-closable"],"width":[513],"position":[513],"visible":[516],"hasSkeleton":[516,"has-skeleton"],"isLoading":[1540,"is-loading"],"subTitleFirst":[4,"sub-title-first"],"noPadding":[4,"no-padding"],"subTitle":[1,"sub-title"],"centered":[4],"iconStyle":[1,"icon-style"],"modalTitle":[32],"open":[64],"close":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]},[[0,"keyup","handleKeyUp"]]],[4,"salla-button",{"shape":[513],"color":[513],"fill":[513],"size":[513],"width":[513],"loading":[516],"disabled":[516],"loaderPosition":[1,"loader-position"],"href":[1],"load":[64],"stop":[64],"setText":[64],"disable":[64],"enable":[64]}],[0,"salla-loading",{"size":[8],"width":[8],"color":[1],"bgColor":[1,"bg-color"]}]]],["p-93a1a61e",[[4,"salla-scopes",{"selection":[1],"searchDisplayLimit":[2,"search-display-limit"],"translationLoaded":[32],"mode":[32],"current_scope":[32],"scopes":[32],"originalScopesList":[32],"selected_scope":[32],"isOpenedBefore":[32],"hasError":[32],"close":[64],"open":[64],"handleSubmit":[64]}]]],["p-18e385e6",[[4,"salla-add-product-button",{"channels":[513],"quantity":[514],"donatingAmount":[514,"donating-amount"],"productId":[520,"product-id"],"productStatus":[513,"product-status"],"productType":[513,"product-type"]}]]],["p-521b6fde",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["p-27e01463",[[0,"salla-installment",{"price":[1],"language":[1],"currency":[1],"tamaraIsActive":[32],"tabbyIsActive":[32],"spotiiIsActive":[32]}]]],["p-10ac9c79",[[0,"salla-loyalty-prize-item",{"item":[16]}]]],["p-97daba27",[[0,"salla-select",{"label":[1],"items":[16],"itemText":[1,"item-text"],"itemValue":[1,"item-value"],"itemDisabled":[1,"item-disabled"],"size":[1],"value":[1032],"autofocus":[4],"clearable":[4],"clearIcon":[1,"clear-icon"],"color":[1],"flat":[4],"disabled":[4],"loading":[4],"loadingColor":[1,"loading-color"],"hint":[1],"persistHint":[4,"persist-hint"],"placeholder":[1],"multiple":[4],"autocomplete":[4],"required":[4],"chips":[4],"shape":[1],"returnObject":[4,"return-object"],"hideDetail":[4,"hide-detail"]}]]]]'),e)));
|
|
4
|
+
import{p as e,w as a,d as l,N as t,a as o,b as i}from"./p-ca68752d.js";import"./p-11002b35.js";import"./p-f84bae34.js";(()=>{e.l=a.__cssshim;const i=Array.from(l.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),r={};return r.resourcesUrl=new URL(".",new URL(i.getAttribute("data-resources-url")||i.src,a.location.href)).href,((e,o)=>{const i=`__sc_import_${t.replace(/\s|-/g,"_")}`;try{a[i]=new Function("w",`return import(w);//${Math.random()}`)}catch(t){const r=new Map;a[i]=t=>{const s=new URL(t,e).href;let n=r.get(s);if(!n){const e=l.createElement("script");e.type="module",e.crossOrigin=o.crossOrigin,e.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${i}.m = m;`],{type:"application/javascript"})),n=new Promise((l=>{e.onload=()=>{l(a[i].m),e.remove()}})),r.set(s,n),l.head.appendChild(e)}return n}}})(r.resourcesUrl,i),a.customElements?o(r):__sc_import_twilight("./p-5db948f2.js").then((()=>r))})().then((e=>i(JSON.parse('[["p-b101167a",[[4,"salla-gifting",{"productId":[2,"product-id"],"sectionTitle":[32],"sectionSubtitle":[32],"sectionBtnText":[32],"giftDetails":[32],"selectImageForYourGift":[32],"selectImageOrUpload":[32],"selectGiftMessage":[32],"giftCustomText":[32],"textId":[32],"incorrectGiftText":[32],"nextStep":[32],"senderNameLabel":[32],"receiverNameFieldLabel":[32],"receiverMobileFieldLabel":[32],"receiverEmailFieldLabel":[32],"emailPlaceholder":[32],"sendLater":[32],"selectSendDateAndTime":[32],"canNotEditOrderAfterSelectDate":[32],"sendGift":[32],"donationRequired":[32],"step1Elems":[32],"step2Elems":[32],"stepsWrapper":[32],"textArea":[32],"imageCover":[32],"textSelect":[32],"customTextArea":[32],"calendarFormGroup":[32],"currentStep":[32],"showCalendar":[32],"showGiftText":[32],"currentLang":[32],"parentClass":[32],"errors":[32],"gift":[32],"selectedGiftTextOption":[32],"showTextArea":[32],"selectedImage":[32],"uploadedImage":[32],"selectedText":[32],"senderName":[32],"errorMessage":[32],"hasError":[32],"quantity":[32],"deliveryDate":[32],"timeZone":[32],"receiverName":[32],"receiverMobile":[32],"receiverCountryCode":[32],"receiverEmail":[32],"open":[64],"close":[64],"goToStep2":[64]}],[4,"salla-loyalty",{"prizePoints":[8,"prize-points"],"customerPoints":[2,"customer-points"],"prizeTitle":[1,"prize-title"],"allowEmail":[4,"allow-email"],"allowMobile":[4,"allow-mobile"],"requireEmail":[4,"require-email"],"guestMessage":[1,"guest-message"],"loyaltyProgram":[32],"buttonLoading":[32],"selectedItem":[32],"askConfirmation":[32],"is_loggedin":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64],"resetExchange":[64],"exchangeLoyaltyPoint":[64]}],[4,"salla-product-size-guide",{"guides":[32],"productId":[32],"placeholder_title":[32],"placeholder_description":[32],"modal_title":[32],"hasError":[32],"open":[64],"close":[64]}],[0,"salla-rating-modal",{"orderId":[2,"order-id"],"order":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64]}],[0,"salla-localization-modal",{"language":[1537],"currency":[1537],"translationLoaded":[32],"languages":[32],"currencies":[32],"hasError":[32],"errorMessage":[32],"open":[64],"close":[64],"submit":[64]}],[4,"salla-login-modal",{"isEmailAllowed":[1028,"is-email-allowed"],"isMobileAllowed":[1028,"is-mobile-allowed"],"isEmailRequired":[1028,"is-email-required"],"supportWebAuth":[516,"support-web-auth"],"currentTabName":[32],"regType":[32],"translationLoaded":[32],"title":[32],"emailErrorMsg":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"open":[64]},[[8,"verified","onVerified"]]],[0,"salla-offer-modal",{"offer":[32],"offer_name":[32],"offer_message":[32],"hasError":[32],"errorMessage":[32],"productID":[32],"translationLoaded":[32],"addToCartLabel":[32],"open":[64],"showOffer":[64]}],[0,"salla-user-settings",{"isNotifiable":[516,"is-notifiable"],"deactivateAccount":[32],"promotionalMsgs":[32],"deactivateDesc":[32],"promotionalMsgsDesc":[32],"sorryForLeavingText":[32],"warningText":[32],"keepAccount":[32],"buttonLoading":[32]}],[0,"salla-search",{"inline":[4],"oval":[4],"height":[2],"translationLoaded":[32],"results":[32],"loading":[32],"typing":[32],"debounce":[32],"search_term":[32]},[[0,"keydown","handleKeyDown"]]],[0,"salla-comment-form",{"type":[1],"itemId":[8,"item-id"],"placeholder":[32],"submitText":[32],"canComment":[32]}],[4,"salla-social-share",{"url":[513],"urlName":[513,"url-name"],"platforms":[16],"opened":[32],"allPlatforms":[32],"platformIcons":[32],"open":[64]}],[4,"salla-cart-summary",{"cartSummaryCount":[32],"cartSummaryTotal":[32]}],[4,"salla-infinite-scroll",{"nextPage":[1,"next-page"],"autoload":[1028],"container":[1],"item":[1],"loadMore":[32],"noMore":[32],"failedToLoad":[32]}],[4,"salla-quantity-input",{"quantity":[32],"decrease":[64],"increase":[64],"setValue":[64]}],[0,"salla-product-availability",{"channels":[1],"productId":[2,"product-id"],"isSubscribed":[1028,"is-subscribed"],"translationLoaded":[32],"title_":[32],"isVisitorSubscribed":[32]}],[4,"salla-verify",{"display":[1],"type":[1025],"autoReload":[4,"auto-reload"],"supportWebAuth":[4,"support-web-auth"],"translationLoaded":[32],"title":[32],"resendAfter":[32],"isProfileVerify":[32],"getCode":[64],"open":[64]}],[0,"salla-datetime-picker",{"value":[1025],"placeholder":[1],"allowInput":[4,"allow-input"],"allowInvalidPreload":[4,"allow-invalid-preload"],"altFormat":[1,"alt-format"],"altInput":[4,"alt-input"],"altInputClass":[1,"alt-input-class"],"appendTo":[16],"ariaDateFormat":[1,"aria-date-format"],"autoFillDefaultTime":[4,"auto-fill-default-time"],"clickOpens":[4,"click-opens"],"closeOnSelect":[4,"close-on-select"],"conjunction":[1],"dateFormat":[1,"date-format"],"defaultDate":[8,"default-date"],"defaultHour":[2,"default-hour"],"defaultMinute":[2,"default-minute"],"defaultSeconds":[2,"default-seconds"],"disable":[16],"disableMobile":[4,"disable-mobile"],"enable":[16],"enableSeconds":[4,"enable-seconds"],"enableTime":[4,"enable-time"],"formatDate":[16],"hourIncrement":[2,"hour-increment"],"inline":[4],"locale":[1],"maxDate":[8,"max-date"],"maxTime":[8,"max-time"],"minDate":[8,"min-date"],"minTime":[8,"min-time"],"minuteIncrement":[2,"minute-increment"],"mode":[1],"monthSelectorType":[1,"month-selector-type"],"nextArrow":[1,"next-arrow"],"noCalendar":[4,"no-calendar"],"dateParser":[16],"position":[1],"positionElement":[16],"prevArrow":[1,"prev-arrow"],"shorthandCurrentMonth":[4,"shorthand-current-month"],"static":[4],"showMonths":[2,"show-months"],"time_24hr":[4,"time_-2-4hr"],"weekNumbers":[4,"week-numbers"],"wrap":[4]}],[0,"salla-file-upload",{"required":[4],"disabled":[4],"allowDrop":[4,"allow-drop"],"allowBrowse":[4,"allow-browse"],"allowPaste":[4,"allow-paste"],"allowMultiple":[4,"allow-multiple"],"allowReplace":[4,"allow-replace"],"allowRevert":[4,"allow-revert"],"allowRemove":[4,"allow-remove"],"allowProcess":[4,"allow-process"],"allowReorder":[4,"allow-reorder"],"storeAsFile":[4,"store-as-file"],"forceRevert":[4,"force-revert"],"maxFilesCount":[2,"max-files-count"],"maxParallelUploads":[2,"max-parallel-uploads"],"checkValidity":[4,"check-validity"],"itemInsertLocation":[1,"item-insert-location"],"itemInsertInterval":[2,"item-insert-interval"],"credits":[4],"dropOnPage":[4,"drop-on-page"],"dropOnElement":[4,"drop-on-element"],"dropValidation":[4,"drop-validation"],"ignoredFiles":[16],"serverConfig":[1,"server-config"],"instantUpload":[4,"instant-upload"],"chunkUploads":[4,"chunk-uploads"],"chunkForce":[4,"chunk-force"],"chunkSize":[2,"chunk-size"],"chunkRetryDelays":[16],"labelDecimalSeparator":[1,"label-decimal-separator"],"labelThousandsSeparator":[1,"label-thousands-separator"],"labelIdle":[1,"label-idle"],"labelInvalidField":[1,"label-invalid-field"],"labelFileWaitingForSize":[1,"label-file-waiting-for-size"],"labelFileSizeNotAvailable":[1,"label-file-size-not-available"],"labelFileLoading":[1,"label-file-loading"],"labelFileLoadError":[1,"label-file-load-error"],"labelFileProcessing":[1,"label-file-processing"],"labelFileProcessingComplete":[1,"label-file-processing-complete"],"labelFileProcessingAborted":[1,"label-file-processing-aborted"],"labelFileProcessingError":[1,"label-file-processing-error"],"labelFileProcessingRevertError":[1,"label-file-processing-revert-error"],"labelFileRemoveError":[1,"label-file-remove-error"],"labelTapToCancel":[1,"label-tap-to-cancel"],"labelTapToRetry":[1,"label-tap-to-retry"],"labelTapToUndo":[1,"label-tap-to-undo"],"labelButtonRemoveItem":[1,"label-button-remove-item"],"labelButtonAbortItemLoad":[1,"label-button-abort-item-load"],"labelButtonRetryItemLoad":[1,"label-button-retry-item-load"],"labelButtonAbortItemProcessing":[1,"label-button-abort-item-processing"],"labelButtonUndoItemProcessing":[1,"label-button-undo-item-processing"],"labelButtonRetryItemProcessing":[1,"label-button-retry-item-processing"],"labelButtonProcessItem":[1,"label-button-process-item"],"iconRemove":[1,"icon-remove"],"iconProcess":[1,"icon-process"],"iconRetry":[1,"icon-retry"],"iconUndo":[1,"icon-undo"],"pond":[32],"files":[32],"appendFile":[64]}],[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}],[4,"salla-swiper",{"loop":[4],"speed":[2],"itemPerView":[8,"item-per-view"],"spaceBetweenItems":[2,"space-between-items"],"currentIndex":[32],"isLastSlideItem":[32],"isFirstSlideItem":[32]}],[4,"salla-tab-content",{"name":[1],"isSelected":[32],"getChild":[64]}],[4,"salla-tab-header",{"name":[1],"activeClass":[1,"active-class"],"height":[8],"centered":[4],"isSelected":[32],"getChild":[64]}],[4,"salla-tabs",{"backgroundColor":[1,"background-color"],"vertical":[4]},[[0,"tabSelected","onSelectedTab"]]],[4,"salla-list-tile",{"href":[1],"target":[1]}],[0,"salla-tel-input",{"phone":[1025],"name":[1],"countryCode":[1025,"country-code"],"mobileRequired":[32],"countryCodeLabel":[32],"mobileLabel":[32],"tooShort":[32],"tooLong":[32],"invalidCountryCode":[32],"invalidNumber":[32],"errorMap":[32],"getValues":[64],"isValid":[64]}],[4,"salla-placeholder",{"icon":[1],"alignment":[1],"iconSize":[1,"icon-size"],"translationLoaded":[32]}],[0,"salla-skeleton",{"type":[1],"width":[1],"height":[1]}],[4,"salla-modal",{"isClosable":[1028,"is-closable"],"width":[513],"position":[513],"visible":[516],"hasSkeleton":[516,"has-skeleton"],"isLoading":[1540,"is-loading"],"subTitleFirst":[4,"sub-title-first"],"noPadding":[4,"no-padding"],"subTitle":[1,"sub-title"],"centered":[4],"iconStyle":[1,"icon-style"],"modalTitle":[32],"open":[64],"close":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]},[[0,"keyup","handleKeyUp"]]],[4,"salla-button",{"shape":[513],"color":[513],"fill":[513],"size":[513],"width":[513],"loading":[516],"disabled":[516],"loaderPosition":[1,"loader-position"],"href":[1],"load":[64],"stop":[64],"setText":[64],"disable":[64],"enable":[64]}],[0,"salla-loading",{"size":[8],"width":[8],"color":[1],"bgColor":[1,"bg-color"]}]]],["p-93a1a61e",[[4,"salla-scopes",{"selection":[1],"searchDisplayLimit":[2,"search-display-limit"],"translationLoaded":[32],"mode":[32],"current_scope":[32],"scopes":[32],"originalScopesList":[32],"selected_scope":[32],"isOpenedBefore":[32],"hasError":[32],"close":[64],"open":[64],"handleSubmit":[64]}]]],["p-18e385e6",[[4,"salla-add-product-button",{"channels":[513],"quantity":[514],"donatingAmount":[514,"donating-amount"],"productId":[520,"product-id"],"productStatus":[513,"product-status"],"productType":[513,"product-type"]}]]],["p-521b6fde",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["p-27e01463",[[0,"salla-installment",{"price":[1],"language":[1],"currency":[1],"tamaraIsActive":[32],"tabbyIsActive":[32],"spotiiIsActive":[32]}]]],["p-10ac9c79",[[0,"salla-loyalty-prize-item",{"item":[16]}]]],["p-af4aa9f9",[[0,"salla-select",{"label":[1],"items":[16],"itemText":[1,"item-text"],"itemValue":[1,"item-value"],"itemDisabled":[1,"item-disabled"],"size":[1],"value":[1032],"autofocus":[4],"clearable":[4],"clearIcon":[1,"clear-icon"],"color":[1],"flat":[4],"disabled":[4],"loading":[4],"loadingColor":[1,"loading-color"],"hint":[1],"persistHint":[4,"persist-hint"],"placeholder":[1],"multiple":[4],"autocomplete":[4],"required":[4],"chips":[4],"shape":[1],"returnObject":[4,"return-object"],"hideDetail":[4,"hide-detail"]}]]]]'),e)));
|
|
@@ -117,7 +117,7 @@ var __assign=this&&this.__assign||function(){return(__assign=Object.assign||func
|
|
|
117
117
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
118
118
|
var start = function() {
|
|
119
119
|
// if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
|
|
120
|
-
var url = new URL('./p-
|
|
120
|
+
var url = new URL('./p-5c5a3fc1.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
|
|
121
121
|
System.import(url.href);
|
|
122
122
|
};
|
|
123
123
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare class SallaCommentForm {
|
|
2
2
|
constructor();
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Type of entity the commment is being submitted for. Defaults to `product`
|
|
5
5
|
*/
|
|
6
6
|
type: 'product' | 'page';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* The ID of the item(as defined in the type), where the comment is for.
|
|
9
9
|
*/
|
|
10
10
|
itemId: string | number;
|
|
11
11
|
placeholder: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { DateOption, LocaleKey,
|
|
2
|
+
import { DateOption, LocaleKey, DateLimit } from './interfaces';
|
|
3
3
|
export declare class SallaDatetimePicker {
|
|
4
4
|
dateInput: HTMLInputElement;
|
|
5
5
|
/**
|
|
@@ -157,51 +157,6 @@ export declare class SallaDatetimePicker {
|
|
|
157
157
|
* Hides the day selection in calendar. Use it along with enableTime to create a time picker.
|
|
158
158
|
*/
|
|
159
159
|
noCalendar: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Fires when the selected dates have changed - when a date is picked or cleared, by user or programmatically.
|
|
162
|
-
*/
|
|
163
|
-
onChange: Hook | Hook[];
|
|
164
|
-
/**
|
|
165
|
-
* Fires when the calendar is closed
|
|
166
|
-
*/
|
|
167
|
-
onClose: Hook | Hook[];
|
|
168
|
-
/**
|
|
169
|
-
* Fires for every day cell in the calendar, where the fourth argument is the html element of the cell.
|
|
170
|
-
* See https://chmln.github.io/flatpickr/events/#ondaycreate
|
|
171
|
-
*/
|
|
172
|
-
onDayCreate: Hook | Hook[];
|
|
173
|
-
/**
|
|
174
|
-
* Fires before the calendar instance is destroyed
|
|
175
|
-
*/
|
|
176
|
-
onDestroy: Hook | Hook[];
|
|
177
|
-
/**
|
|
178
|
-
* Fires when valid keyboard input for calendar is detected
|
|
179
|
-
*/
|
|
180
|
-
onKeyDown: Hook | Hook[];
|
|
181
|
-
/**
|
|
182
|
-
* Fires after the month has changed
|
|
183
|
-
*/
|
|
184
|
-
onMonthChange: Hook | Hook[];
|
|
185
|
-
/**
|
|
186
|
-
* Fires after the calendar is opened
|
|
187
|
-
*/
|
|
188
|
-
onOpen: Hook | Hook[];
|
|
189
|
-
/**
|
|
190
|
-
* Fires after the configuration for the calendar is parsed
|
|
191
|
-
*/
|
|
192
|
-
onParseConfig: Hook | Hook[];
|
|
193
|
-
/**
|
|
194
|
-
* Fires once the calendar instance is ready
|
|
195
|
-
*/
|
|
196
|
-
onReady: Hook | Hook[];
|
|
197
|
-
/**
|
|
198
|
-
* Like onChange, but fires immediately after any date changes
|
|
199
|
-
*/
|
|
200
|
-
onValueUpdate: Hook | Hook[];
|
|
201
|
-
/**
|
|
202
|
-
* Fires after the year has changed
|
|
203
|
-
*/
|
|
204
|
-
onYearChange: Hook | Hook[];
|
|
205
160
|
/**
|
|
206
161
|
* A custom datestring parser
|
|
207
162
|
*/
|
|
@@ -242,6 +197,9 @@ export declare class SallaDatetimePicker {
|
|
|
242
197
|
* See https://chmln.github.io/flatpickr/examples/#flatpickr-external-elements
|
|
243
198
|
*/
|
|
244
199
|
wrap: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Event emitted when the file input gets changed by the user when selecting file(s).
|
|
202
|
+
*/
|
|
245
203
|
picked: EventEmitter<any>;
|
|
246
204
|
private onInputChange;
|
|
247
205
|
componentDidLoad(): void;
|
|
@@ -260,6 +260,9 @@ export declare class SallaFileUpload {
|
|
|
260
260
|
* Append intial file
|
|
261
261
|
*/
|
|
262
262
|
appendFile(file: FilePondInitialFile): Promise<FilePondInitialFile[]>;
|
|
263
|
+
/**
|
|
264
|
+
* Event emitted when the file is about to be removed. Returns boolean value.
|
|
265
|
+
*/
|
|
263
266
|
remove: EventEmitter<any>;
|
|
264
267
|
componentDidLoad(): void;
|
|
265
268
|
intiFilePond(): FilePond.FilePond;
|
|
@@ -58,16 +58,15 @@ export declare class SallaGifting {
|
|
|
58
58
|
*/
|
|
59
59
|
productId: number;
|
|
60
60
|
/**
|
|
61
|
-
* Show the gifting modal window
|
|
61
|
+
* Show / Open the gifting modal window
|
|
62
62
|
*/
|
|
63
63
|
open(): Promise<any>;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
|
-
* Hide the gifting modal window
|
|
66
|
+
* Hide / close the gifting modal window
|
|
67
67
|
*/
|
|
68
68
|
close(): Promise<HTMLElement>;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
71
70
|
* Update the modal height based on the changes on the inner elements height for a specific step OR just a pass a new fixed height
|
|
72
71
|
*/
|
|
73
72
|
private setWrapperHeight;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @slot icon - An icon to display before the title.
|
|
3
|
+
* @slot title - The primary content of the list tile.
|
|
4
|
+
* @slot subtitle - Additional content displayed below the title.
|
|
5
|
+
* @slot action - An element to display after the title.
|
|
6
|
+
*/
|
|
1
7
|
export declare class SallaListTile {
|
|
2
8
|
/**
|
|
3
9
|
* Designates the component as anchor and applies the `href` attribute.
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { Item } from "./loyalty-schema";
|
|
3
3
|
export declare class SallaLoyaltyPrizeItem {
|
|
4
|
+
/**
|
|
5
|
+
* Prize item to be displayed in this component.
|
|
6
|
+
*/
|
|
4
7
|
item: Item;
|
|
8
|
+
/**
|
|
9
|
+
* Event emmited when the user select this item.
|
|
10
|
+
*/
|
|
5
11
|
prizeItemSelected: EventEmitter<Item>;
|
|
6
12
|
onPrizeItemClick(): void;
|
|
7
13
|
render(): any;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Item, LoyaltyProgram } from './loyalty-schema';
|
|
2
|
+
/**
|
|
3
|
+
* @slot widget - When used, will activate the component and needs to emit `loyalty::open` event to open the modal. If not provided the default value will be used.
|
|
4
|
+
* @slot points-applied-widget - Widget to show information about the already exchanged points. It should have it's own resetting action and call the `resetExchange` method. If not provided, it will use the default value.
|
|
5
|
+
*/
|
|
2
6
|
export declare class SallaLoyalty {
|
|
3
7
|
constructor();
|
|
4
8
|
private modal;
|
|
@@ -51,6 +51,9 @@ export declare class SallaModal {
|
|
|
51
51
|
modalTitle: string;
|
|
52
52
|
private overlay;
|
|
53
53
|
host: HTMLElement;
|
|
54
|
+
/**
|
|
55
|
+
* Event emitted when the modal visibilty is changed.
|
|
56
|
+
*/
|
|
54
57
|
modalVisibilityChanged: EventEmitter<Boolean>;
|
|
55
58
|
handleVisible(newValue: boolean): void;
|
|
56
59
|
handleKeyUp(ev: KeyboardEvent): void;
|
|
@@ -13,7 +13,7 @@ export declare class SallaProductAvailability {
|
|
|
13
13
|
/**
|
|
14
14
|
* Notification channels
|
|
15
15
|
*/
|
|
16
|
-
channels: 'sms' | '
|
|
16
|
+
channels: 'sms' | 'email' | 'sms,email';
|
|
17
17
|
/**
|
|
18
18
|
* product id that can visitor subscribe to its availability notification
|
|
19
19
|
*/
|
|
@@ -2,6 +2,10 @@ export interface SizeGuide {
|
|
|
2
2
|
name: string;
|
|
3
3
|
description: string;
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* @slot header - The upper section of the component.Empty by default.
|
|
7
|
+
* @slot footer - The bottom section of the component.Empty by default.
|
|
8
|
+
*/
|
|
5
9
|
export declare class SallaProductSizeGuide {
|
|
6
10
|
constructor();
|
|
7
11
|
private modal;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ModeType, ProductAvailability, Scope } from './interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* @slot footer - The bottom section of the component, used for form action. Utilizes the `handleSubmit` method to submit the form.
|
|
4
|
+
*/
|
|
2
5
|
export declare class SallaScopees {
|
|
3
6
|
constructor();
|
|
4
7
|
private changeBtn;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { ISallaTabContentData, ISallaTabHeaderData, ISallaTabGroup } from './interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* @slot header - The tab header section. `salla-tab-header` component is used for this purpose.
|
|
4
|
+
* @slot content - The active tab content section. `salla-tab-content` component is used for this purpose.
|
|
5
|
+
*/
|
|
2
6
|
export declare class SallaTabs {
|
|
3
7
|
tabsHeader: ISallaTabHeaderData[];
|
|
4
8
|
tabsContent: ISallaTabContentData[];
|
|
@@ -15,9 +15,8 @@ export declare class SallaTelInput {
|
|
|
15
15
|
*/
|
|
16
16
|
countryCode: string;
|
|
17
17
|
/**
|
|
18
|
-
* Event
|
|
18
|
+
* Event emmitted when user enters a phone number.
|
|
19
19
|
*/
|
|
20
|
-
enterClicked: EventEmitter;
|
|
21
20
|
phoneEntered: EventEmitter<Phone>;
|
|
22
21
|
host: HTMLElement;
|
|
23
22
|
mobileRequired: string;
|
|
@@ -9,6 +9,9 @@ export declare class SallaUserSettings {
|
|
|
9
9
|
warningText: string;
|
|
10
10
|
keepAccount: string;
|
|
11
11
|
buttonLoading: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Value used for handling notification toggle check box.
|
|
14
|
+
*/
|
|
12
15
|
isNotifiable: boolean;
|
|
13
16
|
private toggleNotification;
|
|
14
17
|
private capitalizeText;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { DateLimit, DateOption,
|
|
8
|
+
import { DateLimit, DateOption, LocaleKey } from "./components/salla-datetime-picker/interfaces";
|
|
9
9
|
import { FetchServerConfigFunction, FilePondFile, FilePondInitialFile, LoadServerConfigFunction, ProcessServerConfigFunction, RemoveServerConfigFunction, RestoreServerConfigFunction, RevertServerConfigFunction, ServerUrl } from "./components/salla-file-upload/interfaces";
|
|
10
10
|
import { Item } from "./components/salla-loyalty/loyalty-schema";
|
|
11
11
|
import { Phone } from "./components/salla-tel-input/interfaces";
|
|
@@ -99,11 +99,11 @@ export namespace Components {
|
|
|
99
99
|
}
|
|
100
100
|
interface SallaCommentForm {
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* The ID of the item(as defined in the type), where the comment is for.
|
|
103
103
|
*/
|
|
104
104
|
"itemId": string | number;
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* Type of entity the commment is being submitted for. Defaults to `product`
|
|
107
107
|
*/
|
|
108
108
|
"type": 'product' | 'page';
|
|
109
109
|
}
|
|
@@ -250,50 +250,6 @@ export namespace Components {
|
|
|
250
250
|
* Hides the day selection in calendar. Use it along with enableTime to create a time picker.
|
|
251
251
|
*/
|
|
252
252
|
"noCalendar": boolean;
|
|
253
|
-
/**
|
|
254
|
-
* Fires when the selected dates have changed - when a date is picked or cleared, by user or programmatically.
|
|
255
|
-
*/
|
|
256
|
-
"onChange": Hook | Hook[];
|
|
257
|
-
/**
|
|
258
|
-
* Fires when the calendar is closed
|
|
259
|
-
*/
|
|
260
|
-
"onClose": Hook | Hook[];
|
|
261
|
-
/**
|
|
262
|
-
* Fires for every day cell in the calendar, where the fourth argument is the html element of the cell. See https://chmln.github.io/flatpickr/events/#ondaycreate
|
|
263
|
-
*/
|
|
264
|
-
"onDayCreate": Hook | Hook[];
|
|
265
|
-
/**
|
|
266
|
-
* Fires before the calendar instance is destroyed
|
|
267
|
-
*/
|
|
268
|
-
"onDestroy": Hook | Hook[];
|
|
269
|
-
/**
|
|
270
|
-
* Fires when valid keyboard input for calendar is detected
|
|
271
|
-
*/
|
|
272
|
-
"onKeyDown": Hook | Hook[];
|
|
273
|
-
/**
|
|
274
|
-
* Fires after the month has changed
|
|
275
|
-
*/
|
|
276
|
-
"onMonthChange": Hook | Hook[];
|
|
277
|
-
/**
|
|
278
|
-
* Fires after the calendar is opened
|
|
279
|
-
*/
|
|
280
|
-
"onOpen": Hook | Hook[];
|
|
281
|
-
/**
|
|
282
|
-
* Fires after the configuration for the calendar is parsed
|
|
283
|
-
*/
|
|
284
|
-
"onParseConfig": Hook | Hook[];
|
|
285
|
-
/**
|
|
286
|
-
* Fires once the calendar instance is ready
|
|
287
|
-
*/
|
|
288
|
-
"onReady": Hook | Hook[];
|
|
289
|
-
/**
|
|
290
|
-
* Like onChange, but fires immediately after any date changes
|
|
291
|
-
*/
|
|
292
|
-
"onValueUpdate": Hook | Hook[];
|
|
293
|
-
/**
|
|
294
|
-
* Fires after the year has changed
|
|
295
|
-
*/
|
|
296
|
-
"onYearChange": Hook | Hook[];
|
|
297
253
|
/**
|
|
298
254
|
* Placeholder text to show on the input element
|
|
299
255
|
*/
|
|
@@ -585,7 +541,7 @@ export namespace Components {
|
|
|
585
541
|
}
|
|
586
542
|
interface SallaGifting {
|
|
587
543
|
/**
|
|
588
|
-
* Hide the gifting modal window
|
|
544
|
+
* Hide / close the gifting modal window
|
|
589
545
|
*/
|
|
590
546
|
"close": () => Promise<HTMLElement>;
|
|
591
547
|
/**
|
|
@@ -593,7 +549,7 @@ export namespace Components {
|
|
|
593
549
|
*/
|
|
594
550
|
"goToStep2": () => Promise<void>;
|
|
595
551
|
/**
|
|
596
|
-
* Show the gifting modal window
|
|
552
|
+
* Show / Open the gifting modal window
|
|
597
553
|
*/
|
|
598
554
|
"open": () => Promise<any>;
|
|
599
555
|
/**
|
|
@@ -753,6 +709,9 @@ export namespace Components {
|
|
|
753
709
|
"resetExchange": () => Promise<any>;
|
|
754
710
|
}
|
|
755
711
|
interface SallaLoyaltyPrizeItem {
|
|
712
|
+
/**
|
|
713
|
+
* Prize item to be displayed in this component.
|
|
714
|
+
*/
|
|
756
715
|
"item": Item;
|
|
757
716
|
}
|
|
758
717
|
interface SallaModal {
|
|
@@ -852,7 +811,7 @@ export namespace Components {
|
|
|
852
811
|
/**
|
|
853
812
|
* Notification channels
|
|
854
813
|
*/
|
|
855
|
-
"channels": 'sms' | '
|
|
814
|
+
"channels": 'sms' | 'email' | 'sms,email';
|
|
856
815
|
/**
|
|
857
816
|
* is current user already subscribed
|
|
858
817
|
*/
|
|
@@ -1172,6 +1131,9 @@ export namespace Components {
|
|
|
1172
1131
|
"phone": string;
|
|
1173
1132
|
}
|
|
1174
1133
|
interface SallaUserSettings {
|
|
1134
|
+
/**
|
|
1135
|
+
* Value used for handling notification toggle check box.
|
|
1136
|
+
*/
|
|
1175
1137
|
"isNotifiable": boolean;
|
|
1176
1138
|
}
|
|
1177
1139
|
interface SallaVerify {
|
|
@@ -1568,11 +1530,11 @@ declare namespace LocalJSX {
|
|
|
1568
1530
|
}
|
|
1569
1531
|
interface SallaCommentForm {
|
|
1570
1532
|
/**
|
|
1571
|
-
*
|
|
1533
|
+
* The ID of the item(as defined in the type), where the comment is for.
|
|
1572
1534
|
*/
|
|
1573
1535
|
"itemId"?: string | number;
|
|
1574
1536
|
/**
|
|
1575
|
-
*
|
|
1537
|
+
* Type of entity the commment is being submitted for. Defaults to `product`
|
|
1576
1538
|
*/
|
|
1577
1539
|
"type"?: 'product' | 'page';
|
|
1578
1540
|
}
|
|
@@ -1720,50 +1682,9 @@ declare namespace LocalJSX {
|
|
|
1720
1682
|
*/
|
|
1721
1683
|
"noCalendar"?: boolean;
|
|
1722
1684
|
/**
|
|
1723
|
-
*
|
|
1724
|
-
*/
|
|
1725
|
-
"onChange"?: Hook | Hook[];
|
|
1726
|
-
/**
|
|
1727
|
-
* Fires when the calendar is closed
|
|
1685
|
+
* Event emitted when the file input gets changed by the user when selecting file(s).
|
|
1728
1686
|
*/
|
|
1729
|
-
"onClose"?: Hook | Hook[];
|
|
1730
|
-
/**
|
|
1731
|
-
* Fires for every day cell in the calendar, where the fourth argument is the html element of the cell. See https://chmln.github.io/flatpickr/events/#ondaycreate
|
|
1732
|
-
*/
|
|
1733
|
-
"onDayCreate"?: Hook | Hook[];
|
|
1734
|
-
/**
|
|
1735
|
-
* Fires before the calendar instance is destroyed
|
|
1736
|
-
*/
|
|
1737
|
-
"onDestroy"?: Hook | Hook[];
|
|
1738
|
-
/**
|
|
1739
|
-
* Fires when valid keyboard input for calendar is detected
|
|
1740
|
-
*/
|
|
1741
|
-
"onKeyDown"?: Hook | Hook[];
|
|
1742
|
-
/**
|
|
1743
|
-
* Fires after the month has changed
|
|
1744
|
-
*/
|
|
1745
|
-
"onMonthChange"?: Hook | Hook[];
|
|
1746
|
-
/**
|
|
1747
|
-
* Fires after the calendar is opened
|
|
1748
|
-
*/
|
|
1749
|
-
"onOpen"?: Hook | Hook[];
|
|
1750
|
-
/**
|
|
1751
|
-
* Fires after the configuration for the calendar is parsed
|
|
1752
|
-
*/
|
|
1753
|
-
"onParseConfig"?: Hook | Hook[];
|
|
1754
1687
|
"onPicked"?: (event: SallaDatetimePickerCustomEvent<any>) => void;
|
|
1755
|
-
/**
|
|
1756
|
-
* Fires once the calendar instance is ready
|
|
1757
|
-
*/
|
|
1758
|
-
"onReady"?: Hook | Hook[];
|
|
1759
|
-
/**
|
|
1760
|
-
* Like onChange, but fires immediately after any date changes
|
|
1761
|
-
*/
|
|
1762
|
-
"onValueUpdate"?: Hook | Hook[];
|
|
1763
|
-
/**
|
|
1764
|
-
* Fires after the year has changed
|
|
1765
|
-
*/
|
|
1766
|
-
"onYearChange"?: Hook | Hook[];
|
|
1767
1688
|
/**
|
|
1768
1689
|
* Placeholder text to show on the input element
|
|
1769
1690
|
*/
|
|
@@ -2026,6 +1947,9 @@ declare namespace LocalJSX {
|
|
|
2026
1947
|
* The maxmimum number of files that can be uploaded in parallel
|
|
2027
1948
|
*/
|
|
2028
1949
|
"maxParallelUploads"?: number;
|
|
1950
|
+
/**
|
|
1951
|
+
* Event emitted when the file is about to be removed. Returns boolean value.
|
|
1952
|
+
*/
|
|
2029
1953
|
"onRemove"?: (event: SallaFileUploadCustomEvent<any>) => void;
|
|
2030
1954
|
/**
|
|
2031
1955
|
* Sets the required attribute to the output field
|
|
@@ -2175,7 +2099,13 @@ declare namespace LocalJSX {
|
|
|
2175
2099
|
"requireEmail"?: boolean;
|
|
2176
2100
|
}
|
|
2177
2101
|
interface SallaLoyaltyPrizeItem {
|
|
2102
|
+
/**
|
|
2103
|
+
* Prize item to be displayed in this component.
|
|
2104
|
+
*/
|
|
2178
2105
|
"item"?: Item;
|
|
2106
|
+
/**
|
|
2107
|
+
* Event emmited when the user select this item.
|
|
2108
|
+
*/
|
|
2179
2109
|
"onPrizeItemSelected"?: (event: SallaLoyaltyPrizeItemCustomEvent<Item>) => void;
|
|
2180
2110
|
}
|
|
2181
2111
|
interface SallaModal {
|
|
@@ -2203,6 +2133,9 @@ declare namespace LocalJSX {
|
|
|
2203
2133
|
* Avoid padding in the modal body or not, defaults to `false`
|
|
2204
2134
|
*/
|
|
2205
2135
|
"noPadding"?: boolean;
|
|
2136
|
+
/**
|
|
2137
|
+
* Event emitted when the modal visibilty is changed.
|
|
2138
|
+
*/
|
|
2206
2139
|
"onModalVisibilityChanged"?: (event: SallaModalCustomEvent<Boolean>) => void;
|
|
2207
2140
|
/**
|
|
2208
2141
|
* The position of the modal
|
|
@@ -2245,7 +2178,7 @@ declare namespace LocalJSX {
|
|
|
2245
2178
|
/**
|
|
2246
2179
|
* Notification channels
|
|
2247
2180
|
*/
|
|
2248
|
-
"channels"?: 'sms' | '
|
|
2181
|
+
"channels"?: 'sms' | 'email' | 'sms,email';
|
|
2249
2182
|
/**
|
|
2250
2183
|
* is current user already subscribed
|
|
2251
2184
|
*/
|
|
@@ -2499,9 +2432,8 @@ declare namespace LocalJSX {
|
|
|
2499
2432
|
*/
|
|
2500
2433
|
"name"?: string;
|
|
2501
2434
|
/**
|
|
2502
|
-
* Event
|
|
2435
|
+
* Event emmitted when user enters a phone number.
|
|
2503
2436
|
*/
|
|
2504
|
-
"onEnterClicked"?: (event: SallaTelInputCustomEvent<any>) => void;
|
|
2505
2437
|
"onPhoneEntered"?: (event: SallaTelInputCustomEvent<Phone>) => void;
|
|
2506
2438
|
/**
|
|
2507
2439
|
* Current mobile number
|
|
@@ -2509,6 +2441,9 @@ declare namespace LocalJSX {
|
|
|
2509
2441
|
"phone"?: string;
|
|
2510
2442
|
}
|
|
2511
2443
|
interface SallaUserSettings {
|
|
2444
|
+
/**
|
|
2445
|
+
* Value used for handling notification toggle check box.
|
|
2446
|
+
*/
|
|
2512
2447
|
"isNotifiable"?: boolean;
|
|
2513
2448
|
}
|
|
2514
2449
|
interface SallaVerify {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salla.sa/twilight-components",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.9",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
5
|
"author": "Salla Team <support@salla.dev> (https://salla.dev)",
|
|
6
6
|
"bugs": {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"typescript": "^4.4.3"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@salla.sa/twilight": "^2.9.
|
|
78
|
+
"@salla.sa/twilight": "^2.9.9",
|
|
79
79
|
"@salla.sa/twilight-tailwind-theme": "^2.9.2",
|
|
80
80
|
"animejs": "^3.2.1",
|
|
81
81
|
"filepond": "^4.30.4",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"intl-tel-input": "^17.0.13",
|
|
88
88
|
"swiper": "^8.3.1"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "f6fb4ae2d55669488f66abb6a807de2e29862e11"
|
|
91
91
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as t,H as i}from"./p-ca68752d.js";const s=class{constructor(t){e(this,t),this.label=void 0,this.items=[],this.itemText="text",this.itemValue="value",this.itemDisabled="disabled",this.size="normal",this.value=void 0,this.autofocus=!1,this.clearable=!1,this.clearIcon="sicon-cancel",this.color="primary",this.flat=void 0,this.disabled=!1,this.loading=!1,this.loadingColor="primary",this.hint=void 0,this.persistHint=!1,this.placeholder=void 0,this.multiple=!1,this.autocomplete=!1,this.required=!1,this.chips=!1,this.shape="outlined",this.returnObject=!1,this.hideDetail=!1}selectClass(){return`s-select-field s-select-${this.shape} ${this.color} ${this.size}`}onSelectedItemChange(e){let t=e.target.selectedIndex;if(t<0)return void(this.value=void 0);let i=this.items[this.placeholder?t-1:t];this.value=this.returnObject?i:i[this.itemValue],console.log("🚀 ~ file: salla-select.tsx ~ line 153 ~ SallaSelect ~ onSelectedItemChange ~ this.value",this.value)}generateHint(){return this.persistHint||this.value?t("div",{class:"s-select-hint"},this.hint):""}checkForSelected(e){return this.returnObject&&this.value?e[this.itemValue]=this.value[this.itemValue]:e[this.itemValue]==this.value}render(){return t(i,null,this.label?t("label",{htmlFor:"s-select",class:"s-select-label"},this.label):"",t("select",{multiple:this.multiple,autocomplete:this.autocomplete?"on":"off",disabled:this.disabled,autoFocus:this.autofocus,id:"s-select",class:this.selectClass(),onChange:this.onSelectedItemChange.bind(this)},this.placeholder?t("option",{selected:!this.value},this.placeholder):"",this.items.map((e=>t("option",{label:e[this.itemText],value:e[this.itemValue],selected:this.checkForSelected(e),disabled:e[this.itemDisabled]})))),t("div",{class:{"s-hidden":this.hideDetail}},this.generateHint()))}};s.style=".s-select-label{display:block;margin-bottom:0.5rem;color:#111827;font-size:0.875rem;line-height:1.25rem;font-weight:500}.s-select-underline{display:block;padding-left:0;padding-right:0;padding-top:0.625rem;padding-bottom:0.625rem;background-color:transparent;color:#6B7280;font-size:0.875rem;line-height:1.25rem;width:100%;border-width:0;border-bottom-width:2px;border-color:#E5E7EB;-webkit-appearance:none;-moz-appearance:none;appearance:none}.s-select-outlined{display:block;padding:0.625rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;background-color:#F9FAFB;color:#111827;font-size:0.875rem;line-height:1.25rem;width:100%;border-radius:0.5rem;border-width:1px;border-color:#D1D5DB}.s-select-x-large{height:5rem}.s-select-large{height:4rem}.s-select-normal{height:3rem}.s-select-small{height:3rem}.s-select-x-small{height:2.5rem}.s-select-field{padding-top:0.25rem;padding-bottom:0.25rem;padding-right:0.5rem;padding-left:0.5rem;margin:0;font-size:1.125rem;line-height:1.75rem;font-weight:400;line-height:1.75rem;width:100%;border-radius:0.375rem;border-color:#9CA3AF;-webkit-box-shadow:none;box-shadow:none}.s-select-hint{margin-top:0.25rem;color:#374151;font-size:0.875rem;line-height:1.25rem;line-height:1.25rem}";export{s as salla_select}
|