@salla.sa/twilight-components 2.10.6 → 2.11.0

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.
Files changed (49) hide show
  1. package/dist/cjs/{app-globals-17e73f03.js → app-globals-ffcb56c9.js} +1 -1
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/salla-button_37.cjs.entry.js +231 -116
  4. package/dist/cjs/twilight.cjs.js +2 -2
  5. package/dist/collection/components/salla-file-upload/salla-file-upload.js +69 -6
  6. package/dist/collection/components/salla-gifting/salla-gifting.js +25 -41
  7. package/dist/collection/components/salla-login-modal/intefaces.js +9 -0
  8. package/dist/collection/components/salla-login-modal/salla-login-modal.js +61 -3
  9. package/dist/collection/components/salla-map/salla-map.js +29 -5
  10. package/dist/collection/components/salla-product-options/salla-product-options.js +77 -72
  11. package/dist/collection/components/salla-slider/salla-slider.js +63 -23
  12. package/dist/collection/components/salla-user-menu/salla-user-menu.js +1 -3
  13. package/dist/components/camera.js +11 -0
  14. package/dist/components/index.js +1 -1
  15. package/dist/components/salla-file-upload2.js +35 -3
  16. package/dist/components/salla-gifting.js +20 -36
  17. package/dist/components/salla-login-modal.js +81 -6
  18. package/dist/components/salla-map.js +10 -3
  19. package/dist/components/salla-product-options.js +65 -66
  20. package/dist/components/salla-slider2.js +28 -5
  21. package/dist/components/salla-user-menu.js +1 -3
  22. package/dist/esm/{app-globals-e0ea68fa.js → app-globals-3afeeb74.js} +1 -1
  23. package/dist/esm/loader.js +2 -2
  24. package/dist/esm/salla-button_37.entry.js +231 -116
  25. package/dist/esm/twilight.js +2 -2
  26. package/dist/esm-es5/{app-globals-e0ea68fa.js → app-globals-3afeeb74.js} +1 -1
  27. package/dist/esm-es5/loader.js +1 -1
  28. package/dist/esm-es5/salla-button_37.entry.js +4 -4
  29. package/dist/esm-es5/twilight.js +1 -1
  30. package/dist/twilight/{p-d5f8a6dd.entry.js → p-9bbacabc.entry.js} +4 -4
  31. package/dist/twilight/{p-c54f1404.js → p-d4a11dd1.js} +2 -2
  32. package/dist/twilight/p-d859d898.system.js +4 -0
  33. package/dist/twilight/{p-ecfca50d.system.js → p-db94f281.system.js} +2 -2
  34. package/dist/twilight/{p-e7ce5d86.system.entry.js → p-e69f3e88.system.entry.js} +1 -1
  35. package/dist/twilight/twilight.esm.js +1 -1
  36. package/dist/twilight/twilight.js +1 -1
  37. package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +11 -1
  38. package/dist/types/components/salla-gifting/salla-gifting.d.ts +9 -9
  39. package/dist/types/components/salla-login-modal/intefaces.d.ts +12 -0
  40. package/dist/types/components/salla-login-modal/salla-login-modal.d.ts +9 -1
  41. package/dist/types/components/salla-map/salla-map.d.ts +8 -1
  42. package/dist/types/components/salla-product-options/interfaces.d.ts +6 -1
  43. package/dist/types/components/salla-product-options/salla-product-options.d.ts +21 -15
  44. package/dist/types/components/salla-slider/salla-slider.d.ts +52 -1
  45. package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +0 -1
  46. package/dist/types/components.d.ts +87 -8
  47. package/package.json +4 -4
  48. package/dist/components/arrow-right.js +0 -11
  49. package/dist/twilight/p-d1ff3408.system.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-7dc66c07.js";import{g as r}from"./p-c54f1404.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-d5f8a6dd",[[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"],"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"],"product":[1],"productDetail":[32],"options":[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-9bbacabc",[[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],"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-d1ff3408.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
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,12 @@ 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
+ private fileUploader;
6
+ host: HTMLElement;
7
+ /**
8
+ * The uploaded image link or URL
9
+ */
10
+ uploadedImage: string;
5
11
  /**
6
12
  * Sets the required attribute to the output field
7
13
  */
@@ -117,7 +123,7 @@ export declare class SallaFileUpload {
117
123
  load?: string | ServerUrl | LoadServerConfigFunction | null;
118
124
  fetch?: string | ServerUrl | FetchServerConfigFunction | null;
119
125
  remove?: RemoveServerConfigFunction | null;
120
- } | null;
126
+ };
121
127
  /**
122
128
  * Immediately upload new files to the server
123
129
  */
@@ -260,6 +266,10 @@ export declare class SallaFileUpload {
260
266
  * Append intial file
261
267
  */
262
268
  appendFile(file: FilePondInitialFile): Promise<FilePondInitialFile[]>;
269
+ /**
270
+ * Event emitted when the file has been uploaded and link to the file has been recieved from the server. Returns string value.
271
+ */
272
+ uploaded: EventEmitter<string>;
263
273
  /**
264
274
  * Event emitted when the file is about to be removed. Returns boolean value.
265
275
  */
@@ -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;
@@ -0,0 +1,12 @@
1
+ export interface CustomField {
2
+ id: number;
3
+ label: string;
4
+ description: string;
5
+ type: string;
6
+ required: boolean;
7
+ }
8
+ export declare enum CustomFieldType {
9
+ TEXT = "text",
10
+ NUMBER = "number",
11
+ PHOTO = "photo"
12
+ }
@@ -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
- validateField(field: HTMLInputElement, errorMsg: string): void;
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,14 +31,21 @@ export declare class SallaMap {
31
31
  */
32
32
  searchable: boolean;
33
33
  /**
34
- * Sets the start location.
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
40
43
  */
41
44
  apiKey: string;
45
+ /**
46
+ * Modal Title
47
+ */
48
+ modalTitle: string;
42
49
  /**
43
50
  * Sets start map zoom.
44
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: null;
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,11 +1,10 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { Option, ProductDetail } from './interfaces';
2
+ import { Option, Detail } from './interfaces';
3
3
  export declare class SallaProductOptions {
4
4
  constructor();
5
5
  private multipleOptionDom;
6
6
  private uploader;
7
- productDetail: ProductDetail;
8
- options: Option[];
7
+ optionsData: Option[];
9
8
  uploadedImage: string;
10
9
  outOfStockText: string;
11
10
  donationAmount: string;
@@ -16,7 +15,7 @@ export declare class SallaProductOptions {
16
15
  /**
17
16
  * Product detail information.
18
17
  */
19
- product: string;
18
+ options: string;
20
19
  /**
21
20
  * Colors Option Event
22
21
  */
@@ -62,28 +61,35 @@ export declare class SallaProductOptions {
62
61
  */
63
62
  timeSelected: EventEmitter;
64
63
  private handleMultiSelectFieldInput;
65
- /**
66
- * Image Selection
67
- */
68
- private setProductDetail;
69
- private fetchProductOptions;
70
64
  private getDisplayForType;
65
+ protected getOptionShownWhen(option: Option): {
66
+ "data-show-when": string;
67
+ } | {
68
+ "data-show-when"?: undefined;
69
+ };
71
70
  render(): any;
72
- private colorOption;
73
- private dateOption;
74
- private datetimeOption;
75
71
  private donationOption;
76
72
  private getFilepondPlaceholder;
77
73
  private setUploaderHeight;
78
74
  private selectThumbnail;
79
75
  private getServerConfig;
80
76
  private imageOption;
81
- private multipleOptions;
82
77
  private numberOption;
83
- private singleOption;
84
78
  private splitterOption;
85
79
  private textOption;
86
80
  private textareaOption;
87
- private thumbnailOption;
81
+ /**
82
+ * ============= Date Time options =============
83
+ */
88
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;
89
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,7 +18,6 @@ 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;
24
23
  /**
@@ -598,11 +598,15 @@ export namespace Components {
598
598
  load?: string | ServerUrl | LoadServerConfigFunction | null;
599
599
  fetch?: string | ServerUrl | FetchServerConfigFunction | null;
600
600
  remove?: RemoveServerConfigFunction | null;
601
- } | null;
601
+ };
602
602
  /**
603
603
  * 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
604
  */
605
605
  "storeAsFile": boolean;
606
+ /**
607
+ * The uploaded image link or URL
608
+ */
609
+ "uploadedImage": string;
606
610
  }
607
611
  interface SallaGifting {
608
612
  /**
@@ -785,10 +789,17 @@ export namespace Components {
785
789
  */
786
790
  "apiKey": string;
787
791
  /**
788
- * Sets the start location.
792
+ * Latitude coordinate, defaults to Mecca 🕋 ❤️
789
793
  */
790
794
  "lat": number;
795
+ /**
796
+ * Longitude coordinate, defaults to Mecca 🕋 ❤️
797
+ */
791
798
  "lng": number;
799
+ /**
800
+ * Modal Title
801
+ */
802
+ "modalTitle": string;
792
803
  /**
793
804
  * Open location component
794
805
  */
@@ -921,7 +932,7 @@ export namespace Components {
921
932
  /**
922
933
  * Product detail information.
923
934
  */
924
- "product": string;
935
+ "options": string;
925
936
  /**
926
937
  * The id of the product to which the options are going to be fetched for.
927
938
  */
@@ -1287,7 +1298,7 @@ export namespace Components {
1287
1298
  /**
1288
1299
  * Set the type of the slider Default: ''
1289
1300
  */
1290
- "type": 'carousel' | 'thumbs' | 'default' | 'hero' | 'testimonials' | 'blog' | '';
1301
+ "type": 'carousel' | 'fullscreen' | 'thumbs' | 'default' | 'hero' | 'testimonials' | 'blog' | '';
1291
1302
  /**
1292
1303
  * 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: *
1293
1304
  */
@@ -1309,6 +1320,10 @@ export namespace Components {
1309
1320
  * update active/prev/next classes on slides and bullets *
1310
1321
  */
1311
1322
  "updateSlidesClasses": () => Promise<void>;
1323
+ /**
1324
+ * Vertical or Horizontal main slider
1325
+ */
1326
+ "vertical": boolean;
1312
1327
  /**
1313
1328
  * Vertical or Horizontal thumbs slider
1314
1329
  */
@@ -2338,6 +2353,10 @@ declare namespace LocalJSX {
2338
2353
  * Event emitted when the file is about to be removed. Returns boolean value.
2339
2354
  */
2340
2355
  "onRemove"?: (event: SallaFileUploadCustomEvent<any>) => void;
2356
+ /**
2357
+ * Event emitted when the file has been uploaded and link to the file has been recieved from the server. Returns string value.
2358
+ */
2359
+ "onUploaded"?: (event: SallaFileUploadCustomEvent<string>) => void;
2341
2360
  /**
2342
2361
  * Sets the required attribute to the output field
2343
2362
  */
@@ -2355,11 +2374,15 @@ declare namespace LocalJSX {
2355
2374
  load?: string | ServerUrl | LoadServerConfigFunction | null;
2356
2375
  fetch?: string | ServerUrl | FetchServerConfigFunction | null;
2357
2376
  remove?: RemoveServerConfigFunction | null;
2358
- } | null;
2377
+ };
2359
2378
  /**
2360
2379
  * 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.
2361
2380
  */
2362
2381
  "storeAsFile"?: boolean;
2382
+ /**
2383
+ * The uploaded image link or URL
2384
+ */
2385
+ "uploadedImage"?: string;
2363
2386
  }
2364
2387
  interface SallaGifting {
2365
2388
  /**
@@ -2501,10 +2524,17 @@ declare namespace LocalJSX {
2501
2524
  */
2502
2525
  "apiKey"?: string;
2503
2526
  /**
2504
- * Sets the start location.
2527
+ * Latitude coordinate, defaults to Mecca 🕋 ❤️
2505
2528
  */
2506
2529
  "lat"?: number;
2530
+ /**
2531
+ * Longitude coordinate, defaults to Mecca 🕋 ❤️
2532
+ */
2507
2533
  "lng"?: number;
2534
+ /**
2535
+ * Modal Title
2536
+ */
2537
+ "modalTitle"?: string;
2508
2538
  /**
2509
2539
  * Custome DOM event emitter when current location is selected
2510
2540
  */
@@ -2662,7 +2692,7 @@ declare namespace LocalJSX {
2662
2692
  /**
2663
2693
  * Product detail information.
2664
2694
  */
2665
- "product"?: string;
2695
+ "options"?: string;
2666
2696
  /**
2667
2697
  * The id of the product to which the options are going to be fetched for.
2668
2698
  */
@@ -2907,20 +2937,65 @@ declare namespace LocalJSX {
2907
2937
  * Run slider in loop, Don't use it for slides with custom components inside it, because it may cause re-render issue
2908
2938
  */
2909
2939
  "loop"?: boolean;
2940
+ /**
2941
+ * Event will be fired when Swiper reach its beginning (initial position)
2942
+ */
2910
2943
  "onReachBeginning"?: (event: SallaSliderCustomEvent<any>) => void;
2944
+ /**
2945
+ * Event will be fired when Swiper reach last slide
2946
+ */
2911
2947
  "onReachEnd"?: (event: SallaSliderCustomEvent<any>) => void;
2948
+ /**
2949
+ * Event will be fired when currently active slide is changed
2950
+ */
2912
2951
  "onSlideChange"?: (event: SallaSliderCustomEvent<any>) => void;
2952
+ /**
2953
+ * Event will be fired after animation to other slide (next or previous).
2954
+ */
2913
2955
  "onSlideChangeTransitionEnd"?: (event: SallaSliderCustomEvent<any>) => void;
2956
+ /**
2957
+ * Event will be fired in the beginning of animation to other slide (next or previous).
2958
+ */
2914
2959
  "onSlideChangeTransitionStart"?: (event: SallaSliderCustomEvent<any>) => void;
2960
+ /**
2961
+ * Same as "slideChangeTransitionEnd" but for "forward" direction only
2962
+ */
2915
2963
  "onSlideNextTransitionEnd"?: (event: SallaSliderCustomEvent<any>) => void;
2964
+ /**
2965
+ * Same as "slideChangeTransitionStart" but for "forward" direction only
2966
+ */
2916
2967
  "onSlideNextTransitionStart"?: (event: SallaSliderCustomEvent<any>) => void;
2968
+ /**
2969
+ * Same as "slideChangeTransitionEnd" but for "backward" direction only
2970
+ */
2917
2971
  "onSlidePrevTransitionEnd"?: (event: SallaSliderCustomEvent<any>) => void;
2972
+ /**
2973
+ * Same as "slideChangeTransitionStart" but for "backward" direction only
2974
+ */
2918
2975
  "onSlidePrevTransitionStart"?: (event: SallaSliderCustomEvent<any>) => void;
2976
+ /**
2977
+ * Event will be fired when user touch and move finger over Swiper and move it. Receives touchmove event as an arguments.
2978
+ */
2919
2979
  "onSliderMove"?: (event: SallaSliderCustomEvent<any>) => void;
2980
+ /**
2981
+ * Event will be fired after transition.
2982
+ */
2920
2983
  "onSliderTransitionEnd"?: (event: SallaSliderCustomEvent<any>) => void;
2984
+ /**
2985
+ * Event will be fired in the beginning of transition.
2986
+ */
2921
2987
  "onSliderTransitionStart"?: (event: SallaSliderCustomEvent<any>) => void;
2988
+ /**
2989
+ * Event will be fired when user release Swiper. Receives touchend event as an arguments.
2990
+ */
2922
2991
  "onTouchSliderEnd"?: (event: SallaSliderCustomEvent<any>) => void;
2992
+ /**
2993
+ * Event will be fired when user touch and move finger over Swiper. Receives touchmove event as an arguments.
2994
+ */
2923
2995
  "onTouchSliderMove"?: (event: SallaSliderCustomEvent<any>) => void;
2996
+ /**
2997
+ * Event will be fired when user touch Swiper. Receives touchstart event as an arguments.
2998
+ */
2924
2999
  "onTouchSliderStart"?: (event: SallaSliderCustomEvent<any>) => void;
2925
3000
  /**
2926
3001
  * Enable pagination
@@ -2951,7 +3026,11 @@ declare namespace LocalJSX {
2951
3026
  /**
2952
3027
  * Set the type of the slider Default: ''
2953
3028
  */
2954
- "type"?: 'carousel' | 'thumbs' | 'default' | 'hero' | 'testimonials' | 'blog' | '';
3029
+ "type"?: 'carousel' | 'fullscreen' | 'thumbs' | 'default' | 'hero' | 'testimonials' | 'blog' | '';
3030
+ /**
3031
+ * Vertical or Horizontal main slider
3032
+ */
3033
+ "vertical"?: boolean;
2955
3034
  /**
2956
3035
  * Vertical or Horizontal thumbs slider
2957
3036
  */