@salla.sa/twilight-components 2.10.7 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-da038c01.js → app-globals-ffcb56c9.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-button_37.cjs.entry.js +236 -108
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +82 -9
- package/dist/collection/components/salla-gifting/salla-gifting.js +25 -41
- package/dist/collection/components/salla-login-modal/intefaces.js +9 -0
- package/dist/collection/components/salla-login-modal/salla-login-modal.js +61 -3
- package/dist/collection/components/salla-map/salla-map.js +10 -8
- package/dist/collection/components/salla-product-options/salla-product-options.js +72 -58
- package/dist/collection/components/salla-slider/salla-slider.js +63 -23
- package/dist/collection/components/salla-user-menu/salla-user-menu.js +4 -3
- package/dist/components/camera.js +11 -0
- package/dist/components/index.js +1 -1
- package/dist/components/salla-file-upload2.js +43 -4
- package/dist/components/salla-gifting.js +20 -36
- package/dist/components/salla-login-modal.js +81 -6
- package/dist/components/salla-map.js +7 -5
- package/dist/components/salla-product-options.js +61 -53
- package/dist/components/salla-slider2.js +28 -5
- package/dist/components/salla-user-menu.js +4 -3
- package/dist/esm/{app-globals-41701201.js → app-globals-3afeeb74.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-button_37.entry.js +236 -108
- package/dist/esm/twilight.js +2 -2
- package/dist/esm-es5/{app-globals-41701201.js → app-globals-3afeeb74.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/salla-button_37.entry.js +4 -4
- package/dist/esm-es5/twilight.js +1 -1
- package/dist/twilight/p-49c44cf3.entry.js +30 -0
- package/dist/twilight/{p-dcd65bb2.system.entry.js → p-6d4d30cc.system.entry.js} +1 -1
- package/dist/twilight/{p-88643516.js → p-d4a11dd1.js} +2 -2
- package/dist/twilight/p-d859d898.system.js +4 -0
- package/dist/twilight/{p-25d2fe80.system.js → p-db94f281.system.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/twilight/twilight.js +1 -1
- package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +14 -1
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +9 -9
- package/dist/types/components/salla-login-modal/intefaces.d.ts +12 -0
- package/dist/types/components/salla-login-modal/salla-login-modal.d.ts +9 -1
- package/dist/types/components/salla-map/salla-map.d.ts +5 -2
- package/dist/types/components/salla-product-options/interfaces.d.ts +6 -1
- package/dist/types/components/salla-product-options/salla-product-options.d.ts +19 -11
- package/dist/types/components/salla-slider/salla-slider.d.ts +52 -1
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +1 -1
- package/dist/types/components.d.ts +87 -14
- package/package.json +4 -4
- package/dist/components/arrow-right.js +0 -11
- package/dist/twilight/p-0110489b.system.js +0 -4
- package/dist/twilight/p-c142b898.entry.js +0 -30
|
@@ -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-7dc66c07.js";import{g as r}from"./p-88643516.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=>(r(),i(JSON.parse('[["p-c142b898",[[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-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-rating-modal",{"orderId":[2,"order-id"],"order":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64]}],[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],"loading":[32],"close":[64],"open":[64],"handleSubmit":[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-quick-order",{"quickOrderTitle":[1025,"quick-order-title"],"subTitle":[1025,"sub-title"],"payButtonTitle":[1025,"pay-button-title"],"confirmPayButtonTitle":[1025,"confirm-pay-button-title"],"agreementText":[1025,"agreement-text"],"isEmailRequired":[1028,"is-email-required"],"productId":[1025,"product-id"],"thanksMessage":[1025,"thanks-message"],"quickOrderStyle":[1025,"quick-order-style"],"user":[32],"isAvailable":[32],"oneClick":[32],"expanded":[32],"isTermsRequired":[32],"countryCode":[32],"submitSucess":[32],"placeHolderEmail":[32],"emailOptional":[32],"agreementShowText":[32],"agreementModalHead":[32],"userNameLabel":[32],"termsChecked":[32]}],[0,"salla-user-settings",{"isNotifiable":[516,"is-notifiable"],"deactivateAccount":[32],"promotionalMsgs":[32],"deactivateDesc":[32],"promotionalMsgsDesc":[32],"sorryForLeavingText":[32],"warningText":[32],"keepAccount":[32],"buttonLoading":[32]}],[4,"salla-map",{"readonly":[4],"searchable":[1028],"lat":[1026],"lng":[1026],"apiKey":[1025,"api-key"],"title":[1],"zoom":[1026],"theme":[1025],"modalActivityTitle":[32],"confirmButtonTitle":[32],"locateButtonTitle":[32],"locateButtonEdit":[32],"searchInputValue":[32],"geolocationError":[32],"searchInput":[32],"mapElement":[32],"open":[64]}],[0,"salla-product-options",{"productId":[2,"product-id"],"options":[1],"optionsData":[32],"uploadedImage":[32],"outOfStockText":[32],"donationAmount":[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],"showAvatar":[4,"show-avatar"],"itemId":[8,"item-id"],"placeholder":[32],"submitText":[32],"canComment":[32]}],[4,"salla-social-share",{"url":[513],"urlName":[513,"url-name"],"platforms":[513],"opened":[32],"allPlatforms":[32],"platformIcons":[32],"convertedPlatforms":[32],"open":[64]}],[4,"salla-cart-summary",{"cartSummaryCount":[32],"cartSummaryTotal":[32],"animateToCart":[64]}],[4,"salla-color-picker",{"color":[1],"placement":[8],"format":[1],"showCancelButton":[4,"show-cancel-button"],"showTextField":[4,"show-text-field"],"enableAlpha":[4,"enable-alpha"],"widgetColor":[32],"setPickerOption":[64],"movePopUp":[64],"setColorValue":[64],"openPicker":[64],"closePicker":[64],"destroyPicker":[64]}],[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-user-menu",{"inline":[516],"avatarOnly":[516,"avatar-only"],"showHeader":[516,"show-header"],"relativeDropdown":[516,"relative-dropdown"],"accountLoading":[32],"opened":[32],"notifications":[32],"orders":[32],"pending_orders":[32],"wishlist":[32],"profile":[32],"rating":[32],"logout":[32],"hello":[32],"first_name":[32],"last_name":[32],"has_red_dot":[32],"avatar":[32],"badges":[32],"OrderUpdate":[32]}],[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]}],[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]],[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}],[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]}],[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-slider",{"blockTitle":[513,"block-title"],"blockSubtitle":[513,"block-subtitle"],"displayAllUrl":[513,"display-all-url"],"verticalThumbs":[516,"vertical-thumbs"],"autoHeight":[516,"auto-height"],"showControls":[516,"show-controls"],"controlsOuter":[516,"controls-outer"],"showThumbsControls":[4,"show-thumbs-controls"],"autoPlay":[4,"auto-play"],"slidesPerView":[1,"slides-per-view"],"pagination":[4],"centered":[4],"loop":[4],"type":[1],"sliderConfig":[520,"slider-config"],"thumbsConfig":[520,"thumbs-config"],"currentIndex":[32],"isEnd":[32],"isBeginning":[32],"isRTL":[32],"swiperScript":[32],"displayAllTitle":[32],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"slideToLoop":[64],"slideNextLoop":[64],"slidePrevLoop":[64],"slideReset":[64],"slideToClosest":[64],"update":[64],"updateAutoHeight":[64],"updateSlides":[64],"updateProgress":[64],"updateSlidesClasses":[64],"getSlides":[64]}],[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-dbb379ce",[[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-82931e46",[[0,"salla-installment",{"price":[1],"language":[1],"currency":[1],"tamaraIsActive":[32],"tabbyIsActive":[32],"spotiiIsActive":[32]}]]],["p-03695034",[[0,"salla-loyalty-prize-item",{"item":[16]}]]],["p-a7bd281c",[[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-7dc66c07.js";import{g as r}from"./p-d4a11dd1.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=>(r(),i(JSON.parse('[["p-49c44cf3",[[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],"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]}],[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],"dragAndDrop":[32],"browseFromFiles":[32],"customFields":[32],"uploadedImage":[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-rating-modal",{"orderId":[2,"order-id"],"order":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64]}],[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],"loading":[32],"close":[64],"open":[64],"handleSubmit":[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]}],[0,"salla-quick-order",{"quickOrderTitle":[1025,"quick-order-title"],"subTitle":[1025,"sub-title"],"payButtonTitle":[1025,"pay-button-title"],"confirmPayButtonTitle":[1025,"confirm-pay-button-title"],"agreementText":[1025,"agreement-text"],"isEmailRequired":[1028,"is-email-required"],"productId":[1025,"product-id"],"thanksMessage":[1025,"thanks-message"],"quickOrderStyle":[1025,"quick-order-style"],"user":[32],"isAvailable":[32],"oneClick":[32],"expanded":[32],"isTermsRequired":[32],"countryCode":[32],"submitSucess":[32],"placeHolderEmail":[32],"emailOptional":[32],"agreementShowText":[32],"agreementModalHead":[32],"userNameLabel":[32],"termsChecked":[32]}],[0,"salla-user-settings",{"isNotifiable":[516,"is-notifiable"],"deactivateAccount":[32],"promotionalMsgs":[32],"deactivateDesc":[32],"promotionalMsgsDesc":[32],"sorryForLeavingText":[32],"warningText":[32],"keepAccount":[32],"buttonLoading":[32]}],[4,"salla-map",{"readonly":[4],"searchable":[1028],"lat":[1026],"lng":[1026],"apiKey":[1025,"api-key"],"modalTitle":[1,"modal-title"],"zoom":[1026],"theme":[1025],"modalActivityTitle":[32],"confirmButtonTitle":[32],"locateButtonTitle":[32],"locateButtonEdit":[32],"searchInputValue":[32],"geolocationError":[32],"searchInput":[32],"mapElement":[32],"open":[64]}],[0,"salla-product-options",{"productId":[2,"product-id"],"options":[1],"optionsData":[32],"uploadedImage":[32],"outOfStockText":[32],"donationAmount":[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],"showAvatar":[4,"show-avatar"],"itemId":[8,"item-id"],"placeholder":[32],"submitText":[32],"canComment":[32]}],[4,"salla-social-share",{"url":[513],"urlName":[513,"url-name"],"platforms":[513],"opened":[32],"allPlatforms":[32],"platformIcons":[32],"convertedPlatforms":[32],"open":[64]}],[4,"salla-cart-summary",{"cartSummaryCount":[32],"cartSummaryTotal":[32],"animateToCart":[64]}],[4,"salla-color-picker",{"color":[1],"placement":[8],"format":[1],"showCancelButton":[4,"show-cancel-button"],"showTextField":[4,"show-text-field"],"enableAlpha":[4,"enable-alpha"],"widgetColor":[32],"setPickerOption":[64],"movePopUp":[64],"setColorValue":[64],"openPicker":[64],"closePicker":[64],"destroyPicker":[64]}],[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-user-menu",{"inline":[516],"avatarOnly":[516,"avatar-only"],"showHeader":[516,"show-header"],"relativeDropdown":[516,"relative-dropdown"],"accountLoading":[32],"opened":[32],"notifications":[32],"orders":[32],"pending_orders":[32],"wishlist":[32],"profile":[32],"rating":[32],"logout":[32],"hello":[32],"first_name":[32],"last_name":[32],"avatar":[32],"badges":[32],"hasBadges":[32],"OrderUpdate":[32]}],[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]}],[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]],[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}],[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]}],[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-slider",{"blockTitle":[513,"block-title"],"blockSubtitle":[513,"block-subtitle"],"displayAllUrl":[513,"display-all-url"],"verticalThumbs":[516,"vertical-thumbs"],"vertical":[516],"autoHeight":[516,"auto-height"],"showControls":[516,"show-controls"],"controlsOuter":[516,"controls-outer"],"showThumbsControls":[4,"show-thumbs-controls"],"autoPlay":[4,"auto-play"],"slidesPerView":[1,"slides-per-view"],"pagination":[4],"centered":[4],"loop":[4],"type":[1],"sliderConfig":[520,"slider-config"],"thumbsConfig":[520,"thumbs-config"],"currentIndex":[32],"isEnd":[32],"isBeginning":[32],"isRTL":[32],"swiperScript":[32],"displayAllTitle":[32],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"slideToLoop":[64],"slideNextLoop":[64],"slidePrevLoop":[64],"slideReset":[64],"slideToClosest":[64],"update":[64],"updateAutoHeight":[64],"updateSlides":[64],"updateProgress":[64],"updateSlidesClasses":[64],"getSlides":[64]}],[0,"salla-file-upload",{"uploadedImage":[1025,"uploaded-image"],"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]}],[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-dbb379ce",[[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-82931e46",[[0,"salla-installment",{"price":[1],"language":[1],"currency":[1],"tamaraIsActive":[32],"tabbyIsActive":[32],"spotiiIsActive":[32]}]]],["p-03695034",[[0,"salla-loyalty-prize-item",{"item":[16]}]]],["p-a7bd281c",[[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-d859d898.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
|
|
121
121
|
System.import(url.href);
|
|
122
122
|
};
|
|
123
123
|
|
|
@@ -2,6 +2,13 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
import * as FilePond from 'filepond';
|
|
3
3
|
import { ServerUrl, ProcessServerConfigFunction, RevertServerConfigFunction, RestoreServerConfigFunction, LoadServerConfigFunction, FetchServerConfigFunction, RemoveServerConfigFunction, FilePondFile, FilePondInitialFile } from './interfaces';
|
|
4
4
|
export declare class SallaFileUpload {
|
|
5
|
+
constructor();
|
|
6
|
+
private fileUploader;
|
|
7
|
+
host: HTMLElement;
|
|
8
|
+
/**
|
|
9
|
+
* The uploaded image link or URL
|
|
10
|
+
*/
|
|
11
|
+
uploadedImage: string;
|
|
5
12
|
/**
|
|
6
13
|
* Sets the required attribute to the output field
|
|
7
14
|
*/
|
|
@@ -117,7 +124,7 @@ export declare class SallaFileUpload {
|
|
|
117
124
|
load?: string | ServerUrl | LoadServerConfigFunction | null;
|
|
118
125
|
fetch?: string | ServerUrl | FetchServerConfigFunction | null;
|
|
119
126
|
remove?: RemoveServerConfigFunction | null;
|
|
120
|
-
}
|
|
127
|
+
};
|
|
121
128
|
/**
|
|
122
129
|
* Immediately upload new files to the server
|
|
123
130
|
*/
|
|
@@ -149,6 +156,7 @@ export declare class SallaFileUpload {
|
|
|
149
156
|
/**
|
|
150
157
|
* Default label shown to indicate this is a drop area.
|
|
151
158
|
* FilePond will automatically bind browse file events to the element with CSS class .filepond--label-action
|
|
159
|
+
* @default `${salla.lang.get('common.uploader.drag_and_drop')}<span class="filepond--label-action"> ${salla.lang.get('common.uploader.browse')} </span>`
|
|
152
160
|
*/
|
|
153
161
|
labelIdle: string;
|
|
154
162
|
/**
|
|
@@ -260,10 +268,15 @@ export declare class SallaFileUpload {
|
|
|
260
268
|
* Append intial file
|
|
261
269
|
*/
|
|
262
270
|
appendFile(file: FilePondInitialFile): Promise<FilePondInitialFile[]>;
|
|
271
|
+
/**
|
|
272
|
+
* Event emitted when the file has been uploaded and link to the file has been recieved from the server. Returns string value.
|
|
273
|
+
*/
|
|
274
|
+
uploaded: EventEmitter<string>;
|
|
263
275
|
/**
|
|
264
276
|
* Event emitted when the file is about to be removed. Returns boolean value.
|
|
265
277
|
*/
|
|
266
278
|
remove: EventEmitter<any>;
|
|
279
|
+
private getLabel;
|
|
267
280
|
componentDidLoad(): void;
|
|
268
281
|
intiFilePond(): FilePond.FilePond;
|
|
269
282
|
render(): any;
|
|
@@ -2,6 +2,14 @@ import { GiftResponse, GiftImage } from './gift-schema';
|
|
|
2
2
|
export declare class SallaGifting {
|
|
3
3
|
constructor();
|
|
4
4
|
private modal;
|
|
5
|
+
private uploader?;
|
|
6
|
+
private stepsWrapper?;
|
|
7
|
+
private textSelect?;
|
|
8
|
+
private customTextArea?;
|
|
9
|
+
private textArea?;
|
|
10
|
+
private calendarFormGroup?;
|
|
11
|
+
private step1Elems?;
|
|
12
|
+
private step2Elems?;
|
|
5
13
|
sectionTitle: string;
|
|
6
14
|
sectionSubtitle: string;
|
|
7
15
|
sectionBtnText: string;
|
|
@@ -23,14 +31,6 @@ export declare class SallaGifting {
|
|
|
23
31
|
canNotEditOrderAfterSelectDate: string;
|
|
24
32
|
sendGift: string;
|
|
25
33
|
donationRequired: string;
|
|
26
|
-
step1Elems: NodeListOf<Element>;
|
|
27
|
-
step2Elems: NodeListOf<Element>;
|
|
28
|
-
stepsWrapper: HTMLElement;
|
|
29
|
-
textArea: HTMLTextAreaElement;
|
|
30
|
-
imageCover: HTMLElement;
|
|
31
|
-
textSelect: HTMLElement;
|
|
32
|
-
customTextArea: HTMLElement;
|
|
33
|
-
calendarFormGroup: HTMLElement;
|
|
34
34
|
currentStep: number;
|
|
35
35
|
showCalendar: boolean;
|
|
36
36
|
showGiftText: boolean;
|
|
@@ -81,7 +81,7 @@ export declare class SallaGifting {
|
|
|
81
81
|
*
|
|
82
82
|
* Go to the step 1
|
|
83
83
|
*/
|
|
84
|
-
goToStep1(): void;
|
|
84
|
+
goToStep1(e: any): void;
|
|
85
85
|
private getFilepondPlaceholder;
|
|
86
86
|
setPreview(image: GiftImage): void;
|
|
87
87
|
removePreview(): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CustomField } from './intefaces';
|
|
1
2
|
/**
|
|
2
3
|
* @slot footer - The footer of modal
|
|
3
4
|
* @slot before-login-type - placeholder position
|
|
@@ -36,6 +37,7 @@ export declare class SallaLoginModal {
|
|
|
36
37
|
private registrationTab;
|
|
37
38
|
private regTelInput;
|
|
38
39
|
private regEmail;
|
|
40
|
+
private customFieldsWrapper;
|
|
39
41
|
private loginTelInput;
|
|
40
42
|
private loginEmail;
|
|
41
43
|
private firstName;
|
|
@@ -50,6 +52,11 @@ export declare class SallaLoginModal {
|
|
|
50
52
|
emailErrorMsg: string;
|
|
51
53
|
firstNameErrorMsg: string;
|
|
52
54
|
lastNameErrorMsg: string;
|
|
55
|
+
dragAndDrop: string;
|
|
56
|
+
browseFromFiles: string;
|
|
57
|
+
customFields: CustomField[];
|
|
58
|
+
private customFieldsValues;
|
|
59
|
+
uploadedImage: string;
|
|
53
60
|
/**
|
|
54
61
|
* @param {CustomEvent|{details:{case:'new_customer'|'authenticated', redirect_url:string|null}}} event
|
|
55
62
|
*/
|
|
@@ -66,7 +73,8 @@ export declare class SallaLoginModal {
|
|
|
66
73
|
private login;
|
|
67
74
|
private newUser;
|
|
68
75
|
private newUserValidation;
|
|
69
|
-
|
|
76
|
+
private getFilepondPlaceholder;
|
|
77
|
+
validateField(field: HTMLInputElement | HTMLSallaFileUploadElement, errorMsg: string): void;
|
|
70
78
|
generateTabClasses(tabName: any): {
|
|
71
79
|
's-login-modal-tab': boolean;
|
|
72
80
|
"s-hidden": boolean;
|
|
@@ -31,9 +31,12 @@ export declare class SallaMap {
|
|
|
31
31
|
*/
|
|
32
32
|
searchable: boolean;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Latitude coordinate, defaults to Mecca 🕋 ❤️
|
|
35
35
|
*/
|
|
36
36
|
lat: number;
|
|
37
|
+
/**
|
|
38
|
+
* Longitude coordinate, defaults to Mecca 🕋 ❤️
|
|
39
|
+
*/
|
|
37
40
|
lng: number;
|
|
38
41
|
/**
|
|
39
42
|
* Sets google api key value
|
|
@@ -42,7 +45,7 @@ export declare class SallaMap {
|
|
|
42
45
|
/**
|
|
43
46
|
* Modal Title
|
|
44
47
|
*/
|
|
45
|
-
|
|
48
|
+
modalTitle: string;
|
|
46
49
|
/**
|
|
47
50
|
* Sets start map zoom.
|
|
48
51
|
*/
|
|
@@ -93,7 +93,11 @@ export interface Option {
|
|
|
93
93
|
availability_range: number;
|
|
94
94
|
from_date_time: null;
|
|
95
95
|
to_date_time: null;
|
|
96
|
-
visibility_condition
|
|
96
|
+
visibility_condition?: {
|
|
97
|
+
option: number;
|
|
98
|
+
operator: "=" | "!=";
|
|
99
|
+
value: number;
|
|
100
|
+
};
|
|
97
101
|
details?: Detail[];
|
|
98
102
|
condition_attributes: string;
|
|
99
103
|
}
|
|
@@ -105,6 +109,7 @@ export interface Detail {
|
|
|
105
109
|
image: null | string;
|
|
106
110
|
color: null | string;
|
|
107
111
|
is_out: boolean;
|
|
112
|
+
is_selected: boolean;
|
|
108
113
|
}
|
|
109
114
|
export interface Brand {
|
|
110
115
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { Option } from './interfaces';
|
|
2
|
+
import { Option, Detail } from './interfaces';
|
|
3
3
|
export declare class SallaProductOptions {
|
|
4
4
|
constructor();
|
|
5
5
|
private multipleOptionDom;
|
|
@@ -61,27 +61,35 @@ export declare class SallaProductOptions {
|
|
|
61
61
|
*/
|
|
62
62
|
timeSelected: EventEmitter;
|
|
63
63
|
private handleMultiSelectFieldInput;
|
|
64
|
-
/**
|
|
65
|
-
* Image Selection
|
|
66
|
-
*/
|
|
67
|
-
private fetchProductOptions;
|
|
68
64
|
private getDisplayForType;
|
|
65
|
+
protected getOptionShownWhen(option: Option): {
|
|
66
|
+
"data-show-when": string;
|
|
67
|
+
} | {
|
|
68
|
+
"data-show-when"?: undefined;
|
|
69
|
+
};
|
|
69
70
|
render(): any;
|
|
70
|
-
private colorOption;
|
|
71
|
-
private dateOption;
|
|
72
|
-
private datetimeOption;
|
|
73
71
|
private donationOption;
|
|
74
72
|
private getFilepondPlaceholder;
|
|
75
73
|
private setUploaderHeight;
|
|
76
74
|
private selectThumbnail;
|
|
77
75
|
private getServerConfig;
|
|
78
76
|
private imageOption;
|
|
79
|
-
private multipleOptions;
|
|
80
77
|
private numberOption;
|
|
81
|
-
private singleOption;
|
|
82
78
|
private splitterOption;
|
|
83
79
|
private textOption;
|
|
84
80
|
private textareaOption;
|
|
85
|
-
|
|
81
|
+
/**
|
|
82
|
+
* ============= Date Time options =============
|
|
83
|
+
*/
|
|
86
84
|
private timeOption;
|
|
85
|
+
private dateOption;
|
|
86
|
+
private datetimeOption;
|
|
87
|
+
/**
|
|
88
|
+
* ============= Advanced options =============
|
|
89
|
+
*/
|
|
90
|
+
protected getOptionDetailName(detail: Detail, outOfStock?: boolean): string;
|
|
91
|
+
private singleOption;
|
|
92
|
+
private multipleOptions;
|
|
93
|
+
private colorOption;
|
|
94
|
+
private thumbnailOption;
|
|
87
95
|
}
|
|
@@ -25,6 +25,10 @@ export declare class SallaSwiper {
|
|
|
25
25
|
* Vertical or Horizontal thumbs slider
|
|
26
26
|
*/
|
|
27
27
|
verticalThumbs: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Vertical or Horizontal main slider
|
|
30
|
+
*/
|
|
31
|
+
vertical: boolean;
|
|
28
32
|
/**
|
|
29
33
|
* Auto Height slider
|
|
30
34
|
*/
|
|
@@ -65,7 +69,7 @@ export declare class SallaSwiper {
|
|
|
65
69
|
* Set the type of the slider
|
|
66
70
|
* Default: ''
|
|
67
71
|
*/
|
|
68
|
-
type: 'carousel' | 'thumbs' | 'default' | 'hero' | 'testimonials' | 'blog' | '';
|
|
72
|
+
type: 'carousel' | 'fullscreen' | 'thumbs' | 'default' | 'hero' | 'testimonials' | 'blog' | '';
|
|
69
73
|
/**
|
|
70
74
|
* Slider Configs refer to https://swiperjs.com/swiper-api#parameters and pass the entire config object
|
|
71
75
|
* @example
|
|
@@ -90,20 +94,67 @@ export declare class SallaSwiper {
|
|
|
90
94
|
*
|
|
91
95
|
*/
|
|
92
96
|
thumbsConfig: any;
|
|
97
|
+
/**
|
|
98
|
+
* Event will be fired when currently active slide is changed
|
|
99
|
+
*/
|
|
93
100
|
slideChange: EventEmitter<any>;
|
|
101
|
+
/**
|
|
102
|
+
* Event will be fired when Swiper reach its beginning (initial position)
|
|
103
|
+
*/
|
|
94
104
|
reachBeginning: EventEmitter<any>;
|
|
105
|
+
/**
|
|
106
|
+
* Event will be fired when Swiper reach last slide
|
|
107
|
+
*/
|
|
95
108
|
reachEnd: EventEmitter<any>;
|
|
109
|
+
/**
|
|
110
|
+
* Event will be fired after animation to other slide (next or previous).
|
|
111
|
+
*/
|
|
96
112
|
slideChangeTransitionEnd: EventEmitter<any>;
|
|
113
|
+
/**
|
|
114
|
+
* Event will be fired in the beginning of animation to other slide (next or previous).
|
|
115
|
+
*/
|
|
97
116
|
slideChangeTransitionStart: EventEmitter<any>;
|
|
117
|
+
/**
|
|
118
|
+
* Same as "slideChangeTransitionEnd" but for "forward" direction only
|
|
119
|
+
*/
|
|
98
120
|
slideNextTransitionEnd: EventEmitter<any>;
|
|
121
|
+
/**
|
|
122
|
+
* Same as "slideChangeTransitionStart" but for "forward" direction only
|
|
123
|
+
*/
|
|
99
124
|
slideNextTransitionStart: EventEmitter<any>;
|
|
125
|
+
/**
|
|
126
|
+
* Same as "slideChangeTransitionEnd" but for "backward" direction only
|
|
127
|
+
*/
|
|
100
128
|
slidePrevTransitionEnd: EventEmitter<any>;
|
|
129
|
+
/**
|
|
130
|
+
* Same as "slideChangeTransitionStart" but for "backward" direction only
|
|
131
|
+
*/
|
|
101
132
|
slidePrevTransitionStart: EventEmitter<any>;
|
|
133
|
+
/**
|
|
134
|
+
* Event will be fired when user touch and move finger over Swiper and move it.
|
|
135
|
+
* Receives touchmove event as an arguments.
|
|
136
|
+
*/
|
|
102
137
|
sliderMove: EventEmitter<any>;
|
|
138
|
+
/**
|
|
139
|
+
* Event will be fired when user release Swiper. Receives touchend event as an arguments.
|
|
140
|
+
*/
|
|
103
141
|
touchSliderEnd: EventEmitter<any>;
|
|
142
|
+
/**
|
|
143
|
+
* Event will be fired when user touch and move finger over Swiper.
|
|
144
|
+
* Receives touchmove event as an arguments.
|
|
145
|
+
*/
|
|
104
146
|
touchSliderMove: EventEmitter<any>;
|
|
147
|
+
/**
|
|
148
|
+
* Event will be fired when user touch Swiper. Receives touchstart event as an arguments.
|
|
149
|
+
*/
|
|
105
150
|
touchSliderStart: EventEmitter<any>;
|
|
151
|
+
/**
|
|
152
|
+
* Event will be fired after transition.
|
|
153
|
+
*/
|
|
106
154
|
sliderTransitionEnd: EventEmitter<any>;
|
|
155
|
+
/**
|
|
156
|
+
* Event will be fired in the beginning of transition.
|
|
157
|
+
*/
|
|
107
158
|
sliderTransitionStart: EventEmitter<any>;
|
|
108
159
|
/**
|
|
109
160
|
* Run transition to the slide with index number equal to 'index' parameter for the duration equal to 'speed' parameter.
|
|
@@ -18,9 +18,9 @@ export declare class SallaUserMenu {
|
|
|
18
18
|
hello: string;
|
|
19
19
|
first_name: string;
|
|
20
20
|
last_name: string;
|
|
21
|
-
has_red_dot: boolean;
|
|
22
21
|
avatar: string;
|
|
23
22
|
badges: any;
|
|
23
|
+
hasBadges: boolean;
|
|
24
24
|
/**
|
|
25
25
|
* To display only the list without the dropdown functionality
|
|
26
26
|
*/
|
|
@@ -551,6 +551,7 @@ export namespace Components {
|
|
|
551
551
|
"labelFileWaitingForSize": string;
|
|
552
552
|
/**
|
|
553
553
|
* Default label shown to indicate this is a drop area. FilePond will automatically bind browse file events to the element with CSS class .filepond--label-action
|
|
554
|
+
* @default `${salla.lang.get('common.uploader.drag_and_drop')}<span class="filepond--label-action"> ${salla.lang.get('common.uploader.browse')} </span>`
|
|
554
555
|
*/
|
|
555
556
|
"labelIdle": string;
|
|
556
557
|
/**
|
|
@@ -598,11 +599,15 @@ export namespace Components {
|
|
|
598
599
|
load?: string | ServerUrl | LoadServerConfigFunction | null;
|
|
599
600
|
fetch?: string | ServerUrl | FetchServerConfigFunction | null;
|
|
600
601
|
remove?: RemoveServerConfigFunction | null;
|
|
601
|
-
}
|
|
602
|
+
};
|
|
602
603
|
/**
|
|
603
604
|
* Tells FilePond to store files in hidden file input elements so they can be posted along with normal form post. This only works if the browser supports the DataTransfer constructor (https://caniuse.com/mdn-api_datatransfer_datatransfer), this is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1 and higher.
|
|
604
605
|
*/
|
|
605
606
|
"storeAsFile": boolean;
|
|
607
|
+
/**
|
|
608
|
+
* The uploaded image link or URL
|
|
609
|
+
*/
|
|
610
|
+
"uploadedImage": string;
|
|
606
611
|
}
|
|
607
612
|
interface SallaGifting {
|
|
608
613
|
/**
|
|
@@ -785,10 +790,17 @@ export namespace Components {
|
|
|
785
790
|
*/
|
|
786
791
|
"apiKey": string;
|
|
787
792
|
/**
|
|
788
|
-
*
|
|
793
|
+
* Latitude coordinate, defaults to Mecca 🕋 ❤️
|
|
789
794
|
*/
|
|
790
795
|
"lat": number;
|
|
796
|
+
/**
|
|
797
|
+
* Longitude coordinate, defaults to Mecca 🕋 ❤️
|
|
798
|
+
*/
|
|
791
799
|
"lng": number;
|
|
800
|
+
/**
|
|
801
|
+
* Modal Title
|
|
802
|
+
*/
|
|
803
|
+
"modalTitle": string;
|
|
792
804
|
/**
|
|
793
805
|
* Open location component
|
|
794
806
|
*/
|
|
@@ -805,10 +817,6 @@ export namespace Components {
|
|
|
805
817
|
* Sets map style.
|
|
806
818
|
*/
|
|
807
819
|
"theme": string;
|
|
808
|
-
/**
|
|
809
|
-
* Modal Title
|
|
810
|
-
*/
|
|
811
|
-
"title": string;
|
|
812
820
|
/**
|
|
813
821
|
* Sets start map zoom.
|
|
814
822
|
*/
|
|
@@ -1291,7 +1299,7 @@ export namespace Components {
|
|
|
1291
1299
|
/**
|
|
1292
1300
|
* Set the type of the slider Default: ''
|
|
1293
1301
|
*/
|
|
1294
|
-
"type": 'carousel' | 'thumbs' | 'default' | 'hero' | 'testimonials' | 'blog' | '';
|
|
1302
|
+
"type": 'carousel' | 'fullscreen' | 'thumbs' | 'default' | 'hero' | 'testimonials' | 'blog' | '';
|
|
1295
1303
|
/**
|
|
1296
1304
|
* You should call it after you add/remove slides manually, or after you hide/show it, or do any custom DOM modifications with Swiper This method also includes subcall of the following methods which you can use separately: *
|
|
1297
1305
|
*/
|
|
@@ -1313,6 +1321,10 @@ export namespace Components {
|
|
|
1313
1321
|
* update active/prev/next classes on slides and bullets *
|
|
1314
1322
|
*/
|
|
1315
1323
|
"updateSlidesClasses": () => Promise<void>;
|
|
1324
|
+
/**
|
|
1325
|
+
* Vertical or Horizontal main slider
|
|
1326
|
+
*/
|
|
1327
|
+
"vertical": boolean;
|
|
1316
1328
|
/**
|
|
1317
1329
|
* Vertical or Horizontal thumbs slider
|
|
1318
1330
|
*/
|
|
@@ -2308,6 +2320,7 @@ declare namespace LocalJSX {
|
|
|
2308
2320
|
"labelFileWaitingForSize"?: string;
|
|
2309
2321
|
/**
|
|
2310
2322
|
* Default label shown to indicate this is a drop area. FilePond will automatically bind browse file events to the element with CSS class .filepond--label-action
|
|
2323
|
+
* @default `${salla.lang.get('common.uploader.drag_and_drop')}<span class="filepond--label-action"> ${salla.lang.get('common.uploader.browse')} </span>`
|
|
2311
2324
|
*/
|
|
2312
2325
|
"labelIdle"?: string;
|
|
2313
2326
|
/**
|
|
@@ -2342,6 +2355,10 @@ declare namespace LocalJSX {
|
|
|
2342
2355
|
* Event emitted when the file is about to be removed. Returns boolean value.
|
|
2343
2356
|
*/
|
|
2344
2357
|
"onRemove"?: (event: SallaFileUploadCustomEvent<any>) => void;
|
|
2358
|
+
/**
|
|
2359
|
+
* Event emitted when the file has been uploaded and link to the file has been recieved from the server. Returns string value.
|
|
2360
|
+
*/
|
|
2361
|
+
"onUploaded"?: (event: SallaFileUploadCustomEvent<string>) => void;
|
|
2345
2362
|
/**
|
|
2346
2363
|
* Sets the required attribute to the output field
|
|
2347
2364
|
*/
|
|
@@ -2359,11 +2376,15 @@ declare namespace LocalJSX {
|
|
|
2359
2376
|
load?: string | ServerUrl | LoadServerConfigFunction | null;
|
|
2360
2377
|
fetch?: string | ServerUrl | FetchServerConfigFunction | null;
|
|
2361
2378
|
remove?: RemoveServerConfigFunction | null;
|
|
2362
|
-
}
|
|
2379
|
+
};
|
|
2363
2380
|
/**
|
|
2364
2381
|
* Tells FilePond to store files in hidden file input elements so they can be posted along with normal form post. This only works if the browser supports the DataTransfer constructor (https://caniuse.com/mdn-api_datatransfer_datatransfer), this is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1 and higher.
|
|
2365
2382
|
*/
|
|
2366
2383
|
"storeAsFile"?: boolean;
|
|
2384
|
+
/**
|
|
2385
|
+
* The uploaded image link or URL
|
|
2386
|
+
*/
|
|
2387
|
+
"uploadedImage"?: string;
|
|
2367
2388
|
}
|
|
2368
2389
|
interface SallaGifting {
|
|
2369
2390
|
/**
|
|
@@ -2505,10 +2526,17 @@ declare namespace LocalJSX {
|
|
|
2505
2526
|
*/
|
|
2506
2527
|
"apiKey"?: string;
|
|
2507
2528
|
/**
|
|
2508
|
-
*
|
|
2529
|
+
* Latitude coordinate, defaults to Mecca 🕋 ❤️
|
|
2509
2530
|
*/
|
|
2510
2531
|
"lat"?: number;
|
|
2532
|
+
/**
|
|
2533
|
+
* Longitude coordinate, defaults to Mecca 🕋 ❤️
|
|
2534
|
+
*/
|
|
2511
2535
|
"lng"?: number;
|
|
2536
|
+
/**
|
|
2537
|
+
* Modal Title
|
|
2538
|
+
*/
|
|
2539
|
+
"modalTitle"?: string;
|
|
2512
2540
|
/**
|
|
2513
2541
|
* Custome DOM event emitter when current location is selected
|
|
2514
2542
|
*/
|
|
@@ -2533,10 +2561,6 @@ declare namespace LocalJSX {
|
|
|
2533
2561
|
* Sets map style.
|
|
2534
2562
|
*/
|
|
2535
2563
|
"theme"?: string;
|
|
2536
|
-
/**
|
|
2537
|
-
* Modal Title
|
|
2538
|
-
*/
|
|
2539
|
-
"title"?: string;
|
|
2540
2564
|
/**
|
|
2541
2565
|
* Sets start map zoom.
|
|
2542
2566
|
*/
|
|
@@ -2915,20 +2939,65 @@ declare namespace LocalJSX {
|
|
|
2915
2939
|
* Run slider in loop, Don't use it for slides with custom components inside it, because it may cause re-render issue
|
|
2916
2940
|
*/
|
|
2917
2941
|
"loop"?: boolean;
|
|
2942
|
+
/**
|
|
2943
|
+
* Event will be fired when Swiper reach its beginning (initial position)
|
|
2944
|
+
*/
|
|
2918
2945
|
"onReachBeginning"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2946
|
+
/**
|
|
2947
|
+
* Event will be fired when Swiper reach last slide
|
|
2948
|
+
*/
|
|
2919
2949
|
"onReachEnd"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2950
|
+
/**
|
|
2951
|
+
* Event will be fired when currently active slide is changed
|
|
2952
|
+
*/
|
|
2920
2953
|
"onSlideChange"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2954
|
+
/**
|
|
2955
|
+
* Event will be fired after animation to other slide (next or previous).
|
|
2956
|
+
*/
|
|
2921
2957
|
"onSlideChangeTransitionEnd"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2958
|
+
/**
|
|
2959
|
+
* Event will be fired in the beginning of animation to other slide (next or previous).
|
|
2960
|
+
*/
|
|
2922
2961
|
"onSlideChangeTransitionStart"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2962
|
+
/**
|
|
2963
|
+
* Same as "slideChangeTransitionEnd" but for "forward" direction only
|
|
2964
|
+
*/
|
|
2923
2965
|
"onSlideNextTransitionEnd"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2966
|
+
/**
|
|
2967
|
+
* Same as "slideChangeTransitionStart" but for "forward" direction only
|
|
2968
|
+
*/
|
|
2924
2969
|
"onSlideNextTransitionStart"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2970
|
+
/**
|
|
2971
|
+
* Same as "slideChangeTransitionEnd" but for "backward" direction only
|
|
2972
|
+
*/
|
|
2925
2973
|
"onSlidePrevTransitionEnd"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2974
|
+
/**
|
|
2975
|
+
* Same as "slideChangeTransitionStart" but for "backward" direction only
|
|
2976
|
+
*/
|
|
2926
2977
|
"onSlidePrevTransitionStart"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2978
|
+
/**
|
|
2979
|
+
* Event will be fired when user touch and move finger over Swiper and move it. Receives touchmove event as an arguments.
|
|
2980
|
+
*/
|
|
2927
2981
|
"onSliderMove"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2982
|
+
/**
|
|
2983
|
+
* Event will be fired after transition.
|
|
2984
|
+
*/
|
|
2928
2985
|
"onSliderTransitionEnd"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2986
|
+
/**
|
|
2987
|
+
* Event will be fired in the beginning of transition.
|
|
2988
|
+
*/
|
|
2929
2989
|
"onSliderTransitionStart"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2990
|
+
/**
|
|
2991
|
+
* Event will be fired when user release Swiper. Receives touchend event as an arguments.
|
|
2992
|
+
*/
|
|
2930
2993
|
"onTouchSliderEnd"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2994
|
+
/**
|
|
2995
|
+
* Event will be fired when user touch and move finger over Swiper. Receives touchmove event as an arguments.
|
|
2996
|
+
*/
|
|
2931
2997
|
"onTouchSliderMove"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2998
|
+
/**
|
|
2999
|
+
* Event will be fired when user touch Swiper. Receives touchstart event as an arguments.
|
|
3000
|
+
*/
|
|
2932
3001
|
"onTouchSliderStart"?: (event: SallaSliderCustomEvent<any>) => void;
|
|
2933
3002
|
/**
|
|
2934
3003
|
* Enable pagination
|
|
@@ -2959,7 +3028,11 @@ declare namespace LocalJSX {
|
|
|
2959
3028
|
/**
|
|
2960
3029
|
* Set the type of the slider Default: ''
|
|
2961
3030
|
*/
|
|
2962
|
-
"type"?: 'carousel' | 'thumbs' | 'default' | 'hero' | 'testimonials' | 'blog' | '';
|
|
3031
|
+
"type"?: 'carousel' | 'fullscreen' | 'thumbs' | 'default' | 'hero' | 'testimonials' | 'blog' | '';
|
|
3032
|
+
/**
|
|
3033
|
+
* Vertical or Horizontal main slider
|
|
3034
|
+
*/
|
|
3035
|
+
"vertical"?: boolean;
|
|
2963
3036
|
/**
|
|
2964
3037
|
* Vertical or Horizontal thumbs slider
|
|
2965
3038
|
*/
|