@salla.sa/twilight-components 2.9.8 → 2.9.10

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 (81) hide show
  1. package/README.md +15 -15
  2. package/dist/cjs/{index-ed20038c.js → index-2a81e6e4.js} +1 -1
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/salla-button_30.cjs.entry.js +16289 -16249
  5. package/dist/cjs/salla-select.cjs.entry.js +0 -1
  6. package/dist/cjs/twilight.cjs.js +2 -2
  7. package/dist/collection/components/salla-cart-summary/salla-cart-summary.css +0 -3
  8. package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +85 -3
  9. package/dist/collection/components/salla-comment-form/salla-comment-form.js +33 -8
  10. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -232
  11. package/dist/collection/components/salla-file-upload/salla-file-upload.js +1 -3
  12. package/dist/collection/components/salla-gifting/salla-gifting.js +4 -7
  13. package/dist/collection/components/salla-list-tile/salla-list-tile.js +6 -0
  14. package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +2 -2
  15. package/dist/collection/components/salla-loyalty/salla-loyalty.js +4 -0
  16. package/dist/collection/components/salla-modal/salla-modal.js +1 -1
  17. package/dist/collection/components/salla-placeholder/salla-placeholder.js +4 -0
  18. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +4 -1
  19. package/dist/collection/components/salla-scopes/salla-scopes.js +3 -0
  20. package/dist/collection/components/salla-select/salla-select.js +0 -1
  21. package/dist/collection/components/salla-social-share/salla-social-share.js +3 -0
  22. package/dist/collection/components/salla-swiper/salla-swiper.js +3 -0
  23. package/dist/collection/components/salla-tabs/salla-tab-content.js +3 -0
  24. package/dist/collection/components/salla-tabs/salla-tab-header.js +3 -0
  25. package/dist/collection/components/salla-tabs/salla-tabs.js +4 -0
  26. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -16
  27. package/dist/collection/components/salla-user-settings/salla-user-settings.js +4 -1
  28. package/dist/components/index.js +1 -1
  29. package/dist/components/salla-cart-summary.js +55 -3
  30. package/dist/components/salla-comment-form.js +8 -3
  31. package/dist/components/salla-datetime-picker2.js +0 -22
  32. package/dist/components/salla-file-upload2.js +0 -2
  33. package/dist/components/salla-gifting.js +2 -4
  34. package/dist/components/salla-product-size-guide.js +0 -1
  35. package/dist/components/salla-select.js +0 -1
  36. package/dist/components/salla-tel-input2.js +0 -1
  37. package/dist/components/salla-user-settings.js +3 -0
  38. package/dist/esm/{index-637c678a.js → index-535ae6f8.js} +1 -1
  39. package/dist/esm/loader.js +2 -2
  40. package/dist/esm/salla-button_30.entry.js +16289 -16249
  41. package/dist/esm/salla-select.entry.js +0 -1
  42. package/dist/esm/twilight.js +2 -2
  43. package/dist/esm-es5/{index-637c678a.js → index-535ae6f8.js} +1 -1
  44. package/dist/esm-es5/loader.js +1 -1
  45. package/dist/esm-es5/salla-button_30.entry.js +2 -2
  46. package/dist/esm-es5/salla-select.entry.js +1 -1
  47. package/dist/esm-es5/twilight.js +1 -1
  48. package/dist/twilight/{p-f610b6bf.system.entry.js → p-0df01b70.system.entry.js} +1 -1
  49. package/dist/twilight/{p-1e3d30a5.js → p-11002b35.js} +1 -1
  50. package/dist/twilight/p-1d724919.entry.js +22 -0
  51. package/dist/twilight/{p-0cca47db.system.js → p-4d9a19dc.system.js} +1 -1
  52. package/dist/twilight/p-5c5a3fc1.system.js +4 -0
  53. package/dist/twilight/p-af4aa9f9.entry.js +4 -0
  54. package/dist/twilight/p-c075bc90.system.entry.js +34 -0
  55. package/dist/twilight/twilight.esm.js +1 -1
  56. package/dist/twilight/twilight.js +1 -1
  57. package/dist/types/components/salla-cart-summary/salla-cart-summary.d.ts +6 -0
  58. package/dist/types/components/salla-comment-form/salla-comment-form.d.ts +6 -2
  59. package/dist/types/components/salla-datetime-picker/salla-datetime-picker.d.ts +4 -46
  60. package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +3 -0
  61. package/dist/types/components/salla-gifting/salla-gifting.d.ts +2 -3
  62. package/dist/types/components/salla-list-tile/salla-list-tile.d.ts +6 -0
  63. package/dist/types/components/salla-loyalty/salla-loyalty-prize-item.d.ts +6 -0
  64. package/dist/types/components/salla-loyalty/salla-loyalty.d.ts +4 -0
  65. package/dist/types/components/salla-modal/salla-modal.d.ts +3 -0
  66. package/dist/types/components/salla-placeholder/salla-placeholder.d.ts +4 -0
  67. package/dist/types/components/salla-product-size-guide/salla-product-size-guide.d.ts +4 -0
  68. package/dist/types/components/salla-scopes/salla-scopes.d.ts +3 -0
  69. package/dist/types/components/salla-social-share/salla-social-share.d.ts +3 -0
  70. package/dist/types/components/salla-swiper/salla-swiper.d.ts +3 -0
  71. package/dist/types/components/salla-tabs/salla-tab-content.d.ts +3 -0
  72. package/dist/types/components/salla-tabs/salla-tab-header.d.ts +3 -0
  73. package/dist/types/components/salla-tabs/salla-tabs.d.ts +4 -0
  74. package/dist/types/components/salla-tel-input/salla-tel-input.d.ts +1 -2
  75. package/dist/types/components/salla-user-settings/salla-user-settings.d.ts +3 -0
  76. package/dist/types/components.d.ts +43 -95
  77. package/package.json +4 -4
  78. package/dist/twilight/p-5ab82b6b.system.js +0 -4
  79. package/dist/twilight/p-83362f18.system.entry.js +0 -34
  80. package/dist/twilight/p-97daba27.entry.js +0 -4
  81. package/dist/twilight/p-99c87dea.entry.js +0 -22
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{p as e,w as a,d as l,N as t,a as o,b as i}from"./p-ca68752d.js";import"./p-1e3d30a5.js";import"./p-f84bae34.js";(()=>{e.l=a.__cssshim;const i=Array.from(l.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),r={};return r.resourcesUrl=new URL(".",new URL(i.getAttribute("data-resources-url")||i.src,a.location.href)).href,((e,o)=>{const i=`__sc_import_${t.replace(/\s|-/g,"_")}`;try{a[i]=new Function("w",`return import(w);//${Math.random()}`)}catch(t){const r=new Map;a[i]=t=>{const s=new URL(t,e).href;let n=r.get(s);if(!n){const e=l.createElement("script");e.type="module",e.crossOrigin=o.crossOrigin,e.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${i}.m = m;`],{type:"application/javascript"})),n=new Promise((l=>{e.onload=()=>{l(a[i].m),e.remove()}})),r.set(s,n),l.head.appendChild(e)}return n}}})(r.resourcesUrl,i),a.customElements?o(r):__sc_import_twilight("./p-5db948f2.js").then((()=>r))})().then((e=>i(JSON.parse('[["p-99c87dea",[[4,"salla-gifting",{"productId":[2,"product-id"],"sectionTitle":[32],"sectionSubtitle":[32],"sectionBtnText":[32],"giftDetails":[32],"selectImageForYourGift":[32],"selectImageOrUpload":[32],"selectGiftMessage":[32],"giftCustomText":[32],"textId":[32],"incorrectGiftText":[32],"nextStep":[32],"senderNameLabel":[32],"receiverNameFieldLabel":[32],"receiverMobileFieldLabel":[32],"receiverEmailFieldLabel":[32],"emailPlaceholder":[32],"sendLater":[32],"selectSendDateAndTime":[32],"canNotEditOrderAfterSelectDate":[32],"sendGift":[32],"donationRequired":[32],"step1Elems":[32],"step2Elems":[32],"stepsWrapper":[32],"textArea":[32],"imageCover":[32],"textSelect":[32],"customTextArea":[32],"calendarFormGroup":[32],"currentStep":[32],"showCalendar":[32],"showGiftText":[32],"currentLang":[32],"parentClass":[32],"errors":[32],"gift":[32],"selectedGiftTextOption":[32],"showTextArea":[32],"selectedImage":[32],"uploadedImage":[32],"selectedText":[32],"senderName":[32],"errorMessage":[32],"hasError":[32],"quantity":[32],"deliveryDate":[32],"timeZone":[32],"receiverName":[32],"receiverMobile":[32],"receiverCountryCode":[32],"receiverEmail":[32],"open":[64],"close":[64],"goToStep2":[64]}],[4,"salla-loyalty",{"prizePoints":[8,"prize-points"],"customerPoints":[2,"customer-points"],"prizeTitle":[1,"prize-title"],"allowEmail":[4,"allow-email"],"allowMobile":[4,"allow-mobile"],"requireEmail":[4,"require-email"],"guestMessage":[1,"guest-message"],"loyaltyProgram":[32],"buttonLoading":[32],"selectedItem":[32],"askConfirmation":[32],"is_loggedin":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64],"resetExchange":[64],"exchangeLoyaltyPoint":[64]}],[4,"salla-product-size-guide",{"guides":[32],"productId":[32],"placeholder_title":[32],"placeholder_description":[32],"modal_title":[32],"hasError":[32],"open":[64],"close":[64]}],[0,"salla-rating-modal",{"orderId":[2,"order-id"],"order":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64]}],[0,"salla-localization-modal",{"language":[1537],"currency":[1537],"translationLoaded":[32],"languages":[32],"currencies":[32],"hasError":[32],"errorMessage":[32],"open":[64],"close":[64],"submit":[64]}],[4,"salla-login-modal",{"isEmailAllowed":[1028,"is-email-allowed"],"isMobileAllowed":[1028,"is-mobile-allowed"],"isEmailRequired":[1028,"is-email-required"],"supportWebAuth":[516,"support-web-auth"],"currentTabName":[32],"regType":[32],"translationLoaded":[32],"title":[32],"emailErrorMsg":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"open":[64]},[[8,"verified","onVerified"]]],[0,"salla-offer-modal",{"offer":[32],"offer_name":[32],"offer_message":[32],"hasError":[32],"errorMessage":[32],"productID":[32],"translationLoaded":[32],"addToCartLabel":[32],"open":[64],"showOffer":[64]}],[0,"salla-user-settings",{"isNotifiable":[516,"is-notifiable"],"deactivateAccount":[32],"promotionalMsgs":[32],"deactivateDesc":[32],"promotionalMsgsDesc":[32],"sorryForLeavingText":[32],"warningText":[32],"keepAccount":[32],"buttonLoading":[32]}],[0,"salla-search",{"inline":[4],"oval":[4],"height":[2],"translationLoaded":[32],"results":[32],"loading":[32],"typing":[32],"debounce":[32],"search_term":[32]},[[0,"keydown","handleKeyDown"]]],[0,"salla-comment-form",{"type":[1],"itemId":[8,"item-id"],"placeholder":[32],"submitText":[32],"canComment":[32]}],[4,"salla-social-share",{"url":[513],"urlName":[513,"url-name"],"platforms":[16],"opened":[32],"allPlatforms":[32],"platformIcons":[32],"open":[64]}],[4,"salla-cart-summary",{"cartSummaryCount":[32],"cartSummaryTotal":[32]}],[4,"salla-infinite-scroll",{"nextPage":[1,"next-page"],"autoload":[1028],"container":[1],"item":[1],"loadMore":[32],"noMore":[32],"failedToLoad":[32]}],[4,"salla-quantity-input",{"quantity":[32],"decrease":[64],"increase":[64],"setValue":[64]}],[0,"salla-product-availability",{"channels":[1],"productId":[2,"product-id"],"isSubscribed":[1028,"is-subscribed"],"translationLoaded":[32],"title_":[32],"isVisitorSubscribed":[32]}],[4,"salla-verify",{"display":[1],"type":[1025],"autoReload":[4,"auto-reload"],"supportWebAuth":[4,"support-web-auth"],"translationLoaded":[32],"title":[32],"resendAfter":[32],"isProfileVerify":[32],"getCode":[64],"open":[64]}],[0,"salla-datetime-picker",{"value":[1025],"placeholder":[1],"allowInput":[4,"allow-input"],"allowInvalidPreload":[4,"allow-invalid-preload"],"altFormat":[1,"alt-format"],"altInput":[4,"alt-input"],"altInputClass":[1,"alt-input-class"],"appendTo":[16],"ariaDateFormat":[1,"aria-date-format"],"autoFillDefaultTime":[4,"auto-fill-default-time"],"clickOpens":[4,"click-opens"],"closeOnSelect":[4,"close-on-select"],"conjunction":[1],"dateFormat":[1,"date-format"],"defaultDate":[8,"default-date"],"defaultHour":[2,"default-hour"],"defaultMinute":[2,"default-minute"],"defaultSeconds":[2,"default-seconds"],"disable":[16],"disableMobile":[4,"disable-mobile"],"enable":[16],"enableSeconds":[4,"enable-seconds"],"enableTime":[4,"enable-time"],"formatDate":[16],"hourIncrement":[2,"hour-increment"],"inline":[4],"locale":[1],"maxDate":[8,"max-date"],"maxTime":[8,"max-time"],"minDate":[8,"min-date"],"minTime":[8,"min-time"],"minuteIncrement":[2,"minute-increment"],"mode":[1],"monthSelectorType":[1,"month-selector-type"],"nextArrow":[1,"next-arrow"],"noCalendar":[4,"no-calendar"],"onChange":[16],"onClose":[16],"onDayCreate":[16],"onDestroy":[16],"onKeyDown":[16],"onMonthChange":[16],"onOpen":[16],"onParseConfig":[16],"onReady":[16],"onValueUpdate":[16],"onYearChange":[16],"dateParser":[16],"position":[1],"positionElement":[16],"prevArrow":[1,"prev-arrow"],"shorthandCurrentMonth":[4,"shorthand-current-month"],"static":[4],"showMonths":[2,"show-months"],"time_24hr":[4,"time_-2-4hr"],"weekNumbers":[4,"week-numbers"],"wrap":[4]}],[0,"salla-file-upload",{"required":[4],"disabled":[4],"allowDrop":[4,"allow-drop"],"allowBrowse":[4,"allow-browse"],"allowPaste":[4,"allow-paste"],"allowMultiple":[4,"allow-multiple"],"allowReplace":[4,"allow-replace"],"allowRevert":[4,"allow-revert"],"allowRemove":[4,"allow-remove"],"allowProcess":[4,"allow-process"],"allowReorder":[4,"allow-reorder"],"storeAsFile":[4,"store-as-file"],"forceRevert":[4,"force-revert"],"maxFilesCount":[2,"max-files-count"],"maxParallelUploads":[2,"max-parallel-uploads"],"checkValidity":[4,"check-validity"],"itemInsertLocation":[1,"item-insert-location"],"itemInsertInterval":[2,"item-insert-interval"],"credits":[4],"dropOnPage":[4,"drop-on-page"],"dropOnElement":[4,"drop-on-element"],"dropValidation":[4,"drop-validation"],"ignoredFiles":[16],"serverConfig":[1,"server-config"],"instantUpload":[4,"instant-upload"],"chunkUploads":[4,"chunk-uploads"],"chunkForce":[4,"chunk-force"],"chunkSize":[2,"chunk-size"],"chunkRetryDelays":[16],"labelDecimalSeparator":[1,"label-decimal-separator"],"labelThousandsSeparator":[1,"label-thousands-separator"],"labelIdle":[1,"label-idle"],"labelInvalidField":[1,"label-invalid-field"],"labelFileWaitingForSize":[1,"label-file-waiting-for-size"],"labelFileSizeNotAvailable":[1,"label-file-size-not-available"],"labelFileLoading":[1,"label-file-loading"],"labelFileLoadError":[1,"label-file-load-error"],"labelFileProcessing":[1,"label-file-processing"],"labelFileProcessingComplete":[1,"label-file-processing-complete"],"labelFileProcessingAborted":[1,"label-file-processing-aborted"],"labelFileProcessingError":[1,"label-file-processing-error"],"labelFileProcessingRevertError":[1,"label-file-processing-revert-error"],"labelFileRemoveError":[1,"label-file-remove-error"],"labelTapToCancel":[1,"label-tap-to-cancel"],"labelTapToRetry":[1,"label-tap-to-retry"],"labelTapToUndo":[1,"label-tap-to-undo"],"labelButtonRemoveItem":[1,"label-button-remove-item"],"labelButtonAbortItemLoad":[1,"label-button-abort-item-load"],"labelButtonRetryItemLoad":[1,"label-button-retry-item-load"],"labelButtonAbortItemProcessing":[1,"label-button-abort-item-processing"],"labelButtonUndoItemProcessing":[1,"label-button-undo-item-processing"],"labelButtonRetryItemProcessing":[1,"label-button-retry-item-processing"],"labelButtonProcessItem":[1,"label-button-process-item"],"iconRemove":[1,"icon-remove"],"iconProcess":[1,"icon-process"],"iconRetry":[1,"icon-retry"],"iconUndo":[1,"icon-undo"],"pond":[32],"files":[32],"appendFile":[64]}],[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}],[4,"salla-swiper",{"loop":[4],"speed":[2],"itemPerView":[8,"item-per-view"],"spaceBetweenItems":[2,"space-between-items"],"currentIndex":[32],"isLastSlideItem":[32],"isFirstSlideItem":[32]}],[4,"salla-tab-content",{"name":[1],"isSelected":[32],"getChild":[64]}],[4,"salla-tab-header",{"name":[1],"activeClass":[1,"active-class"],"height":[8],"centered":[4],"isSelected":[32],"getChild":[64]}],[4,"salla-tabs",{"backgroundColor":[1,"background-color"],"vertical":[4]},[[0,"tabSelected","onSelectedTab"]]],[4,"salla-list-tile",{"href":[1],"target":[1]}],[0,"salla-tel-input",{"phone":[1025],"name":[1],"countryCode":[1025,"country-code"],"mobileRequired":[32],"countryCodeLabel":[32],"mobileLabel":[32],"tooShort":[32],"tooLong":[32],"invalidCountryCode":[32],"invalidNumber":[32],"errorMap":[32],"getValues":[64],"isValid":[64]}],[4,"salla-placeholder",{"icon":[1],"alignment":[1],"iconSize":[1,"icon-size"],"translationLoaded":[32]}],[0,"salla-skeleton",{"type":[1],"width":[1],"height":[1]}],[4,"salla-modal",{"isClosable":[1028,"is-closable"],"width":[513],"position":[513],"visible":[516],"hasSkeleton":[516,"has-skeleton"],"isLoading":[1540,"is-loading"],"subTitleFirst":[4,"sub-title-first"],"noPadding":[4,"no-padding"],"subTitle":[1,"sub-title"],"centered":[4],"iconStyle":[1,"icon-style"],"modalTitle":[32],"open":[64],"close":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]},[[0,"keyup","handleKeyUp"]]],[4,"salla-button",{"shape":[513],"color":[513],"fill":[513],"size":[513],"width":[513],"loading":[516],"disabled":[516],"loaderPosition":[1,"loader-position"],"href":[1],"load":[64],"stop":[64],"setText":[64],"disable":[64],"enable":[64]}],[0,"salla-loading",{"size":[8],"width":[8],"color":[1],"bgColor":[1,"bg-color"]}]]],["p-93a1a61e",[[4,"salla-scopes",{"selection":[1],"searchDisplayLimit":[2,"search-display-limit"],"translationLoaded":[32],"mode":[32],"current_scope":[32],"scopes":[32],"originalScopesList":[32],"selected_scope":[32],"isOpenedBefore":[32],"hasError":[32],"close":[64],"open":[64],"handleSubmit":[64]}]]],["p-18e385e6",[[4,"salla-add-product-button",{"channels":[513],"quantity":[514],"donatingAmount":[514,"donating-amount"],"productId":[520,"product-id"],"productStatus":[513,"product-status"],"productType":[513,"product-type"]}]]],["p-521b6fde",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["p-27e01463",[[0,"salla-installment",{"price":[1],"language":[1],"currency":[1],"tamaraIsActive":[32],"tabbyIsActive":[32],"spotiiIsActive":[32]}]]],["p-10ac9c79",[[0,"salla-loyalty-prize-item",{"item":[16]}]]],["p-97daba27",[[0,"salla-select",{"label":[1],"items":[16],"itemText":[1,"item-text"],"itemValue":[1,"item-value"],"itemDisabled":[1,"item-disabled"],"size":[1],"value":[1032],"autofocus":[4],"clearable":[4],"clearIcon":[1,"clear-icon"],"color":[1],"flat":[4],"disabled":[4],"loading":[4],"loadingColor":[1,"loading-color"],"hint":[1],"persistHint":[4,"persist-hint"],"placeholder":[1],"multiple":[4],"autocomplete":[4],"required":[4],"chips":[4],"shape":[1],"returnObject":[4,"return-object"],"hideDetail":[4,"hide-detail"]}]]]]'),e)));
4
+ import{p as e,w as a,d as l,N as t,a as o,b as i}from"./p-ca68752d.js";import"./p-11002b35.js";import"./p-f84bae34.js";(()=>{e.l=a.__cssshim;const i=Array.from(l.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),r={};return r.resourcesUrl=new URL(".",new URL(i.getAttribute("data-resources-url")||i.src,a.location.href)).href,((e,o)=>{const i=`__sc_import_${t.replace(/\s|-/g,"_")}`;try{a[i]=new Function("w",`return import(w);//${Math.random()}`)}catch(t){const r=new Map;a[i]=t=>{const s=new URL(t,e).href;let n=r.get(s);if(!n){const e=l.createElement("script");e.type="module",e.crossOrigin=o.crossOrigin,e.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${i}.m = m;`],{type:"application/javascript"})),n=new Promise((l=>{e.onload=()=>{l(a[i].m),e.remove()}})),r.set(s,n),l.head.appendChild(e)}return n}}})(r.resourcesUrl,i),a.customElements?o(r):__sc_import_twilight("./p-5db948f2.js").then((()=>r))})().then((e=>i(JSON.parse('[["p-1d724919",[[4,"salla-gifting",{"productId":[2,"product-id"],"sectionTitle":[32],"sectionSubtitle":[32],"sectionBtnText":[32],"giftDetails":[32],"selectImageForYourGift":[32],"selectImageOrUpload":[32],"selectGiftMessage":[32],"giftCustomText":[32],"textId":[32],"incorrectGiftText":[32],"nextStep":[32],"senderNameLabel":[32],"receiverNameFieldLabel":[32],"receiverMobileFieldLabel":[32],"receiverEmailFieldLabel":[32],"emailPlaceholder":[32],"sendLater":[32],"selectSendDateAndTime":[32],"canNotEditOrderAfterSelectDate":[32],"sendGift":[32],"donationRequired":[32],"step1Elems":[32],"step2Elems":[32],"stepsWrapper":[32],"textArea":[32],"imageCover":[32],"textSelect":[32],"customTextArea":[32],"calendarFormGroup":[32],"currentStep":[32],"showCalendar":[32],"showGiftText":[32],"currentLang":[32],"parentClass":[32],"errors":[32],"gift":[32],"selectedGiftTextOption":[32],"showTextArea":[32],"selectedImage":[32],"uploadedImage":[32],"selectedText":[32],"senderName":[32],"errorMessage":[32],"hasError":[32],"quantity":[32],"deliveryDate":[32],"timeZone":[32],"receiverName":[32],"receiverMobile":[32],"receiverCountryCode":[32],"receiverEmail":[32],"open":[64],"close":[64],"goToStep2":[64]}],[4,"salla-loyalty",{"prizePoints":[8,"prize-points"],"customerPoints":[2,"customer-points"],"prizeTitle":[1,"prize-title"],"allowEmail":[4,"allow-email"],"allowMobile":[4,"allow-mobile"],"requireEmail":[4,"require-email"],"guestMessage":[1,"guest-message"],"loyaltyProgram":[32],"buttonLoading":[32],"selectedItem":[32],"askConfirmation":[32],"is_loggedin":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64],"resetExchange":[64],"exchangeLoyaltyPoint":[64]}],[4,"salla-product-size-guide",{"guides":[32],"productId":[32],"placeholder_title":[32],"placeholder_description":[32],"modal_title":[32],"hasError":[32],"open":[64],"close":[64]}],[0,"salla-rating-modal",{"orderId":[2,"order-id"],"order":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64]}],[0,"salla-localization-modal",{"language":[1537],"currency":[1537],"translationLoaded":[32],"languages":[32],"currencies":[32],"hasError":[32],"errorMessage":[32],"open":[64],"close":[64],"submit":[64]}],[4,"salla-login-modal",{"isEmailAllowed":[1028,"is-email-allowed"],"isMobileAllowed":[1028,"is-mobile-allowed"],"isEmailRequired":[1028,"is-email-required"],"supportWebAuth":[516,"support-web-auth"],"currentTabName":[32],"regType":[32],"translationLoaded":[32],"title":[32],"emailErrorMsg":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"open":[64]},[[8,"verified","onVerified"]]],[0,"salla-offer-modal",{"offer":[32],"offer_name":[32],"offer_message":[32],"hasError":[32],"errorMessage":[32],"productID":[32],"translationLoaded":[32],"addToCartLabel":[32],"open":[64],"showOffer":[64]}],[0,"salla-user-settings",{"isNotifiable":[516,"is-notifiable"],"deactivateAccount":[32],"promotionalMsgs":[32],"deactivateDesc":[32],"promotionalMsgsDesc":[32],"sorryForLeavingText":[32],"warningText":[32],"keepAccount":[32],"buttonLoading":[32]}],[0,"salla-search",{"inline":[4],"oval":[4],"height":[2],"translationLoaded":[32],"results":[32],"loading":[32],"typing":[32],"debounce":[32],"search_term":[32]},[[0,"keydown","handleKeyDown"]]],[0,"salla-comment-form",{"type":[1],"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":[16],"opened":[32],"allPlatforms":[32],"platformIcons":[32],"open":[64]}],[4,"salla-cart-summary",{"cartSummaryCount":[32],"cartSummaryTotal":[32],"animateToCart":[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-product-availability",{"channels":[1],"productId":[2,"product-id"],"isSubscribed":[1028,"is-subscribed"],"translationLoaded":[32],"title_":[32],"isVisitorSubscribed":[32]}],[4,"salla-verify",{"display":[1],"type":[1025],"autoReload":[4,"auto-reload"],"supportWebAuth":[4,"support-web-auth"],"translationLoaded":[32],"title":[32],"resendAfter":[32],"isProfileVerify":[32],"getCode":[64],"open":[64]}],[0,"salla-datetime-picker",{"value":[1025],"placeholder":[1],"allowInput":[4,"allow-input"],"allowInvalidPreload":[4,"allow-invalid-preload"],"altFormat":[1,"alt-format"],"altInput":[4,"alt-input"],"altInputClass":[1,"alt-input-class"],"appendTo":[16],"ariaDateFormat":[1,"aria-date-format"],"autoFillDefaultTime":[4,"auto-fill-default-time"],"clickOpens":[4,"click-opens"],"closeOnSelect":[4,"close-on-select"],"conjunction":[1],"dateFormat":[1,"date-format"],"defaultDate":[8,"default-date"],"defaultHour":[2,"default-hour"],"defaultMinute":[2,"default-minute"],"defaultSeconds":[2,"default-seconds"],"disable":[16],"disableMobile":[4,"disable-mobile"],"enable":[16],"enableSeconds":[4,"enable-seconds"],"enableTime":[4,"enable-time"],"formatDate":[16],"hourIncrement":[2,"hour-increment"],"inline":[4],"locale":[1],"maxDate":[8,"max-date"],"maxTime":[8,"max-time"],"minDate":[8,"min-date"],"minTime":[8,"min-time"],"minuteIncrement":[2,"minute-increment"],"mode":[1],"monthSelectorType":[1,"month-selector-type"],"nextArrow":[1,"next-arrow"],"noCalendar":[4,"no-calendar"],"dateParser":[16],"position":[1],"positionElement":[16],"prevArrow":[1,"prev-arrow"],"shorthandCurrentMonth":[4,"shorthand-current-month"],"static":[4],"showMonths":[2,"show-months"],"time_24hr":[4,"time_-2-4hr"],"weekNumbers":[4,"week-numbers"],"wrap":[4]}],[0,"salla-file-upload",{"required":[4],"disabled":[4],"allowDrop":[4,"allow-drop"],"allowBrowse":[4,"allow-browse"],"allowPaste":[4,"allow-paste"],"allowMultiple":[4,"allow-multiple"],"allowReplace":[4,"allow-replace"],"allowRevert":[4,"allow-revert"],"allowRemove":[4,"allow-remove"],"allowProcess":[4,"allow-process"],"allowReorder":[4,"allow-reorder"],"storeAsFile":[4,"store-as-file"],"forceRevert":[4,"force-revert"],"maxFilesCount":[2,"max-files-count"],"maxParallelUploads":[2,"max-parallel-uploads"],"checkValidity":[4,"check-validity"],"itemInsertLocation":[1,"item-insert-location"],"itemInsertInterval":[2,"item-insert-interval"],"credits":[4],"dropOnPage":[4,"drop-on-page"],"dropOnElement":[4,"drop-on-element"],"dropValidation":[4,"drop-validation"],"ignoredFiles":[16],"serverConfig":[1,"server-config"],"instantUpload":[4,"instant-upload"],"chunkUploads":[4,"chunk-uploads"],"chunkForce":[4,"chunk-force"],"chunkSize":[2,"chunk-size"],"chunkRetryDelays":[16],"labelDecimalSeparator":[1,"label-decimal-separator"],"labelThousandsSeparator":[1,"label-thousands-separator"],"labelIdle":[1,"label-idle"],"labelInvalidField":[1,"label-invalid-field"],"labelFileWaitingForSize":[1,"label-file-waiting-for-size"],"labelFileSizeNotAvailable":[1,"label-file-size-not-available"],"labelFileLoading":[1,"label-file-loading"],"labelFileLoadError":[1,"label-file-load-error"],"labelFileProcessing":[1,"label-file-processing"],"labelFileProcessingComplete":[1,"label-file-processing-complete"],"labelFileProcessingAborted":[1,"label-file-processing-aborted"],"labelFileProcessingError":[1,"label-file-processing-error"],"labelFileProcessingRevertError":[1,"label-file-processing-revert-error"],"labelFileRemoveError":[1,"label-file-remove-error"],"labelTapToCancel":[1,"label-tap-to-cancel"],"labelTapToRetry":[1,"label-tap-to-retry"],"labelTapToUndo":[1,"label-tap-to-undo"],"labelButtonRemoveItem":[1,"label-button-remove-item"],"labelButtonAbortItemLoad":[1,"label-button-abort-item-load"],"labelButtonRetryItemLoad":[1,"label-button-retry-item-load"],"labelButtonAbortItemProcessing":[1,"label-button-abort-item-processing"],"labelButtonUndoItemProcessing":[1,"label-button-undo-item-processing"],"labelButtonRetryItemProcessing":[1,"label-button-retry-item-processing"],"labelButtonProcessItem":[1,"label-button-process-item"],"iconRemove":[1,"icon-remove"],"iconProcess":[1,"icon-process"],"iconRetry":[1,"icon-retry"],"iconUndo":[1,"icon-undo"],"pond":[32],"files":[32],"appendFile":[64]}],[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}],[4,"salla-swiper",{"loop":[4],"speed":[2],"itemPerView":[8,"item-per-view"],"spaceBetweenItems":[2,"space-between-items"],"currentIndex":[32],"isLastSlideItem":[32],"isFirstSlideItem":[32]}],[4,"salla-tab-content",{"name":[1],"isSelected":[32],"getChild":[64]}],[4,"salla-tab-header",{"name":[1],"activeClass":[1,"active-class"],"height":[8],"centered":[4],"isSelected":[32],"getChild":[64]}],[4,"salla-tabs",{"backgroundColor":[1,"background-color"],"vertical":[4]},[[0,"tabSelected","onSelectedTab"]]],[4,"salla-list-tile",{"href":[1],"target":[1]}],[0,"salla-tel-input",{"phone":[1025],"name":[1],"countryCode":[1025,"country-code"],"mobileRequired":[32],"countryCodeLabel":[32],"mobileLabel":[32],"tooShort":[32],"tooLong":[32],"invalidCountryCode":[32],"invalidNumber":[32],"errorMap":[32],"getValues":[64],"isValid":[64]}],[4,"salla-placeholder",{"icon":[1],"alignment":[1],"iconSize":[1,"icon-size"],"translationLoaded":[32]}],[0,"salla-skeleton",{"type":[1],"width":[1],"height":[1]}],[4,"salla-modal",{"isClosable":[1028,"is-closable"],"width":[513],"position":[513],"visible":[516],"hasSkeleton":[516,"has-skeleton"],"isLoading":[1540,"is-loading"],"subTitleFirst":[4,"sub-title-first"],"noPadding":[4,"no-padding"],"subTitle":[1,"sub-title"],"centered":[4],"iconStyle":[1,"icon-style"],"modalTitle":[32],"open":[64],"close":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]},[[0,"keyup","handleKeyUp"]]],[4,"salla-button",{"shape":[513],"color":[513],"fill":[513],"size":[513],"width":[513],"loading":[516],"disabled":[516],"loaderPosition":[1,"loader-position"],"href":[1],"load":[64],"stop":[64],"setText":[64],"disable":[64],"enable":[64]}],[0,"salla-loading",{"size":[8],"width":[8],"color":[1],"bgColor":[1,"bg-color"]}]]],["p-93a1a61e",[[4,"salla-scopes",{"selection":[1],"searchDisplayLimit":[2,"search-display-limit"],"translationLoaded":[32],"mode":[32],"current_scope":[32],"scopes":[32],"originalScopesList":[32],"selected_scope":[32],"isOpenedBefore":[32],"hasError":[32],"close":[64],"open":[64],"handleSubmit":[64]}]]],["p-18e385e6",[[4,"salla-add-product-button",{"channels":[513],"quantity":[514],"donatingAmount":[514,"donating-amount"],"productId":[520,"product-id"],"productStatus":[513,"product-status"],"productType":[513,"product-type"]}]]],["p-521b6fde",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["p-27e01463",[[0,"salla-installment",{"price":[1],"language":[1],"currency":[1],"tamaraIsActive":[32],"tabbyIsActive":[32],"spotiiIsActive":[32]}]]],["p-10ac9c79",[[0,"salla-loyalty-prize-item",{"item":[16]}]]],["p-af4aa9f9",[[0,"salla-select",{"label":[1],"items":[16],"itemText":[1,"item-text"],"itemValue":[1,"item-value"],"itemDisabled":[1,"item-disabled"],"size":[1],"value":[1032],"autofocus":[4],"clearable":[4],"clearIcon":[1,"clear-icon"],"color":[1],"flat":[4],"disabled":[4],"loading":[4],"loadingColor":[1,"loading-color"],"hint":[1],"persistHint":[4,"persist-hint"],"placeholder":[1],"multiple":[4],"autocomplete":[4],"required":[4],"chips":[4],"shape":[1],"returnObject":[4,"return-object"],"hideDetail":[4,"hide-detail"]}]]]]'),e)));
@@ -117,7 +117,7 @@ var __assign=this&&this.__assign||function(){return(__assign=Object.assign||func
117
117
  var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
118
118
  var start = function() {
119
119
  // if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
120
- var url = new URL('./p-5ab82b6b.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
120
+ var url = new URL('./p-5c5a3fc1.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
121
121
  System.import(url.href);
122
122
  };
123
123
 
@@ -1,6 +1,12 @@
1
1
  export declare class SallaCartSummary {
2
2
  constructor();
3
+ host: HTMLElement;
3
4
  cartSummaryCount: number;
4
5
  cartSummaryTotal: number;
6
+ /**
7
+ * Animate product Image to cart summary
8
+ * @param image the image element to animate
9
+ */
10
+ animateToCart(image: any): Promise<void>;
5
11
  render(): any;
6
12
  }
@@ -1,11 +1,15 @@
1
1
  export declare class SallaCommentForm {
2
2
  constructor();
3
3
  /**
4
- * type prop
4
+ * Type of entity the commment is being submitted for. Defaults to `product`
5
5
  */
6
6
  type: 'product' | 'page';
7
7
  /**
8
- * itemId prop
8
+ * To show the avatar or not in the comment form
9
+ */
10
+ showAvatar: boolean;
11
+ /**
12
+ * The ID of the item(as defined in the type), where the comment is for.
9
13
  */
10
14
  itemId: string | number;
11
15
  placeholder: string;
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { DateOption, LocaleKey, Hook, DateLimit } from './interfaces';
2
+ import { DateOption, LocaleKey, DateLimit } from './interfaces';
3
3
  export declare class SallaDatetimePicker {
4
4
  dateInput: HTMLInputElement;
5
5
  /**
@@ -157,51 +157,6 @@ export declare class SallaDatetimePicker {
157
157
  * Hides the day selection in calendar. Use it along with enableTime to create a time picker.
158
158
  */
159
159
  noCalendar: boolean;
160
- /**
161
- * Fires when the selected dates have changed - when a date is picked or cleared, by user or programmatically.
162
- */
163
- onChange: Hook | Hook[];
164
- /**
165
- * Fires when the calendar is closed
166
- */
167
- onClose: Hook | Hook[];
168
- /**
169
- * Fires for every day cell in the calendar, where the fourth argument is the html element of the cell.
170
- * See https://chmln.github.io/flatpickr/events/#ondaycreate
171
- */
172
- onDayCreate: Hook | Hook[];
173
- /**
174
- * Fires before the calendar instance is destroyed
175
- */
176
- onDestroy: Hook | Hook[];
177
- /**
178
- * Fires when valid keyboard input for calendar is detected
179
- */
180
- onKeyDown: Hook | Hook[];
181
- /**
182
- * Fires after the month has changed
183
- */
184
- onMonthChange: Hook | Hook[];
185
- /**
186
- * Fires after the calendar is opened
187
- */
188
- onOpen: Hook | Hook[];
189
- /**
190
- * Fires after the configuration for the calendar is parsed
191
- */
192
- onParseConfig: Hook | Hook[];
193
- /**
194
- * Fires once the calendar instance is ready
195
- */
196
- onReady: Hook | Hook[];
197
- /**
198
- * Like onChange, but fires immediately after any date changes
199
- */
200
- onValueUpdate: Hook | Hook[];
201
- /**
202
- * Fires after the year has changed
203
- */
204
- onYearChange: Hook | Hook[];
205
160
  /**
206
161
  * A custom datestring parser
207
162
  */
@@ -242,6 +197,9 @@ export declare class SallaDatetimePicker {
242
197
  * See https://chmln.github.io/flatpickr/examples/#flatpickr-external-elements
243
198
  */
244
199
  wrap: boolean;
200
+ /**
201
+ * Event emitted when the file input gets changed by the user when selecting file(s).
202
+ */
245
203
  picked: EventEmitter<any>;
246
204
  private onInputChange;
247
205
  componentDidLoad(): void;
@@ -260,6 +260,9 @@ export declare class SallaFileUpload {
260
260
  * Append intial file
261
261
  */
262
262
  appendFile(file: FilePondInitialFile): Promise<FilePondInitialFile[]>;
263
+ /**
264
+ * Event emitted when the file is about to be removed. Returns boolean value.
265
+ */
263
266
  remove: EventEmitter<any>;
264
267
  componentDidLoad(): void;
265
268
  intiFilePond(): FilePond.FilePond;
@@ -58,16 +58,15 @@ export declare class SallaGifting {
58
58
  */
59
59
  productId: number;
60
60
  /**
61
- * Show the gifting modal window
61
+ * Show / Open the gifting modal window
62
62
  */
63
63
  open(): Promise<any>;
64
64
  /**
65
65
  *
66
- * Hide the gifting modal window
66
+ * Hide / close the gifting modal window
67
67
  */
68
68
  close(): Promise<HTMLElement>;
69
69
  /**
70
- *
71
70
  * Update the modal height based on the changes on the inner elements height for a specific step OR just a pass a new fixed height
72
71
  */
73
72
  private setWrapperHeight;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @slot icon - An icon to display before the title.
3
+ * @slot title - The primary content of the list tile.
4
+ * @slot subtitle - Additional content displayed below the title.
5
+ * @slot action - An element to display after the title.
6
+ */
1
7
  export declare class SallaListTile {
2
8
  /**
3
9
  * Designates the component as anchor and applies the `href` attribute.
@@ -1,7 +1,13 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { Item } from "./loyalty-schema";
3
3
  export declare class SallaLoyaltyPrizeItem {
4
+ /**
5
+ * Prize item to be displayed in this component.
6
+ */
4
7
  item: Item;
8
+ /**
9
+ * Event emmited when the user select this item.
10
+ */
5
11
  prizeItemSelected: EventEmitter<Item>;
6
12
  onPrizeItemClick(): void;
7
13
  render(): any;
@@ -1,4 +1,8 @@
1
1
  import { Item, LoyaltyProgram } from './loyalty-schema';
2
+ /**
3
+ * @slot widget - When used, will activate the component and needs to emit `loyalty::open` event to open the modal. If not provided the default value will be used.
4
+ * @slot points-applied-widget - Widget to show information about the already exchanged points. It should have it's own resetting action and call the `resetExchange` method. If not provided, it will use the default value.
5
+ */
2
6
  export declare class SallaLoyalty {
3
7
  constructor();
4
8
  private modal;
@@ -51,6 +51,9 @@ export declare class SallaModal {
51
51
  modalTitle: string;
52
52
  private overlay;
53
53
  host: HTMLElement;
54
+ /**
55
+ * Event emitted when the modal visibilty is changed.
56
+ */
54
57
  modalVisibilityChanged: EventEmitter<Boolean>;
55
58
  handleVisible(newValue: boolean): void;
56
59
  handleKeyUp(ev: KeyboardEvent): void;
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @slot title - The primary content of the placeholder.
3
+ * @slot description - Additional content displayed below the title.
4
+ */
1
5
  export declare class SallaPlaceholder {
2
6
  constructor();
3
7
  translationLoaded: boolean;
@@ -2,6 +2,10 @@ export interface SizeGuide {
2
2
  name: string;
3
3
  description: string;
4
4
  }
5
+ /**
6
+ * @slot header - The upper section of the component.Empty by default.
7
+ * @slot footer - The bottom section of the component.Empty by default.
8
+ */
5
9
  export declare class SallaProductSizeGuide {
6
10
  constructor();
7
11
  private modal;
@@ -1,4 +1,7 @@
1
1
  import { ModeType, ProductAvailability, Scope } from './interfaces';
2
+ /**
3
+ * @slot footer - The bottom section of the component, used for form action. Utilizes the `handleSubmit` method to submit the form.
4
+ */
2
5
  export declare class SallaScopees {
3
6
  constructor();
4
7
  private changeBtn;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @slot widget - An action that can be used to activete or open the component by calling the `open` method.
3
+ */
1
4
  export declare class SallaSocialShare {
2
5
  private shareMenu?;
3
6
  private platformItem?;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @slot The default slot.
3
+ */
1
4
  export declare class SallaSwiper {
2
5
  /**
3
6
  * Set to true to enable continuous loop mode. Defaults to false.
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @slot The default slot.
3
+ */
1
4
  export declare class SallaTabContent {
2
5
  /**
3
6
  * Set name of the tab content. Mainly used as a key to s
@@ -1,4 +1,7 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
+ /**
3
+ * @slot The default slot.
4
+ */
2
5
  export declare class SallaTabHeader {
3
6
  id: string;
4
7
  /**
@@ -1,4 +1,8 @@
1
1
  import { ISallaTabContentData, ISallaTabHeaderData, ISallaTabGroup } from './interfaces';
2
+ /**
3
+ * @slot header - The tab header section. `salla-tab-header` component is used for this purpose.
4
+ * @slot content - The active tab content section. `salla-tab-content` component is used for this purpose.
5
+ */
2
6
  export declare class SallaTabs {
3
7
  tabsHeader: ISallaTabHeaderData[];
4
8
  tabsContent: ISallaTabContentData[];
@@ -15,9 +15,8 @@ export declare class SallaTelInput {
15
15
  */
16
16
  countryCode: string;
17
17
  /**
18
- * Event Emitter
18
+ * Event emmitted when user enters a phone number.
19
19
  */
20
- enterClicked: EventEmitter;
21
20
  phoneEntered: EventEmitter<Phone>;
22
21
  host: HTMLElement;
23
22
  mobileRequired: string;
@@ -9,6 +9,9 @@ export declare class SallaUserSettings {
9
9
  warningText: string;
10
10
  keepAccount: string;
11
11
  buttonLoading: boolean;
12
+ /**
13
+ * Value used for handling notification toggle check box.
14
+ */
12
15
  isNotifiable: boolean;
13
16
  private toggleNotification;
14
17
  private capitalizeText;
@@ -5,7 +5,7 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
- import { DateLimit, DateOption, Hook, LocaleKey } from "./components/salla-datetime-picker/interfaces";
8
+ import { DateLimit, DateOption, LocaleKey } from "./components/salla-datetime-picker/interfaces";
9
9
  import { FetchServerConfigFunction, FilePondFile, FilePondInitialFile, LoadServerConfigFunction, ProcessServerConfigFunction, RemoveServerConfigFunction, RestoreServerConfigFunction, RevertServerConfigFunction, ServerUrl } from "./components/salla-file-upload/interfaces";
10
10
  import { Item } from "./components/salla-loyalty/loyalty-schema";
11
11
  import { Phone } from "./components/salla-tel-input/interfaces";
@@ -96,14 +96,23 @@ export namespace Components {
96
96
  "width": 'wide' | 'normal';
97
97
  }
98
98
  interface SallaCartSummary {
99
+ /**
100
+ * Animate product Image to cart summary
101
+ * @param image the image element to animate
102
+ */
103
+ "animateToCart": (image: any) => Promise<void>;
99
104
  }
100
105
  interface SallaCommentForm {
101
106
  /**
102
- * itemId prop
107
+ * The ID of the item(as defined in the type), where the comment is for.
103
108
  */
104
109
  "itemId": string | number;
105
110
  /**
106
- * type prop
111
+ * To show the avatar or not in the comment form
112
+ */
113
+ "showAvatar": boolean;
114
+ /**
115
+ * Type of entity the commment is being submitted for. Defaults to `product`
107
116
  */
108
117
  "type": 'product' | 'page';
109
118
  }
@@ -250,50 +259,6 @@ export namespace Components {
250
259
  * Hides the day selection in calendar. Use it along with enableTime to create a time picker.
251
260
  */
252
261
  "noCalendar": boolean;
253
- /**
254
- * Fires when the selected dates have changed - when a date is picked or cleared, by user or programmatically.
255
- */
256
- "onChange": Hook | Hook[];
257
- /**
258
- * Fires when the calendar is closed
259
- */
260
- "onClose": Hook | Hook[];
261
- /**
262
- * Fires for every day cell in the calendar, where the fourth argument is the html element of the cell. See https://chmln.github.io/flatpickr/events/#ondaycreate
263
- */
264
- "onDayCreate": Hook | Hook[];
265
- /**
266
- * Fires before the calendar instance is destroyed
267
- */
268
- "onDestroy": Hook | Hook[];
269
- /**
270
- * Fires when valid keyboard input for calendar is detected
271
- */
272
- "onKeyDown": Hook | Hook[];
273
- /**
274
- * Fires after the month has changed
275
- */
276
- "onMonthChange": Hook | Hook[];
277
- /**
278
- * Fires after the calendar is opened
279
- */
280
- "onOpen": Hook | Hook[];
281
- /**
282
- * Fires after the configuration for the calendar is parsed
283
- */
284
- "onParseConfig": Hook | Hook[];
285
- /**
286
- * Fires once the calendar instance is ready
287
- */
288
- "onReady": Hook | Hook[];
289
- /**
290
- * Like onChange, but fires immediately after any date changes
291
- */
292
- "onValueUpdate": Hook | Hook[];
293
- /**
294
- * Fires after the year has changed
295
- */
296
- "onYearChange": Hook | Hook[];
297
262
  /**
298
263
  * Placeholder text to show on the input element
299
264
  */
@@ -585,7 +550,7 @@ export namespace Components {
585
550
  }
586
551
  interface SallaGifting {
587
552
  /**
588
- * Hide the gifting modal window
553
+ * Hide / close the gifting modal window
589
554
  */
590
555
  "close": () => Promise<HTMLElement>;
591
556
  /**
@@ -593,7 +558,7 @@ export namespace Components {
593
558
  */
594
559
  "goToStep2": () => Promise<void>;
595
560
  /**
596
- * Show the gifting modal window
561
+ * Show / Open the gifting modal window
597
562
  */
598
563
  "open": () => Promise<any>;
599
564
  /**
@@ -753,6 +718,9 @@ export namespace Components {
753
718
  "resetExchange": () => Promise<any>;
754
719
  }
755
720
  interface SallaLoyaltyPrizeItem {
721
+ /**
722
+ * Prize item to be displayed in this component.
723
+ */
756
724
  "item": Item;
757
725
  }
758
726
  interface SallaModal {
@@ -1172,6 +1140,9 @@ export namespace Components {
1172
1140
  "phone": string;
1173
1141
  }
1174
1142
  interface SallaUserSettings {
1143
+ /**
1144
+ * Value used for handling notification toggle check box.
1145
+ */
1175
1146
  "isNotifiable": boolean;
1176
1147
  }
1177
1148
  interface SallaVerify {
@@ -1568,11 +1539,15 @@ declare namespace LocalJSX {
1568
1539
  }
1569
1540
  interface SallaCommentForm {
1570
1541
  /**
1571
- * itemId prop
1542
+ * The ID of the item(as defined in the type), where the comment is for.
1572
1543
  */
1573
1544
  "itemId"?: string | number;
1574
1545
  /**
1575
- * type prop
1546
+ * To show the avatar or not in the comment form
1547
+ */
1548
+ "showAvatar"?: boolean;
1549
+ /**
1550
+ * Type of entity the commment is being submitted for. Defaults to `product`
1576
1551
  */
1577
1552
  "type"?: 'product' | 'page';
1578
1553
  }
@@ -1720,50 +1695,9 @@ declare namespace LocalJSX {
1720
1695
  */
1721
1696
  "noCalendar"?: boolean;
1722
1697
  /**
1723
- * Fires when the selected dates have changed - when a date is picked or cleared, by user or programmatically.
1724
- */
1725
- "onChange"?: Hook | Hook[];
1726
- /**
1727
- * Fires when the calendar is closed
1728
- */
1729
- "onClose"?: Hook | Hook[];
1730
- /**
1731
- * Fires for every day cell in the calendar, where the fourth argument is the html element of the cell. See https://chmln.github.io/flatpickr/events/#ondaycreate
1732
- */
1733
- "onDayCreate"?: Hook | Hook[];
1734
- /**
1735
- * Fires before the calendar instance is destroyed
1736
- */
1737
- "onDestroy"?: Hook | Hook[];
1738
- /**
1739
- * Fires when valid keyboard input for calendar is detected
1740
- */
1741
- "onKeyDown"?: Hook | Hook[];
1742
- /**
1743
- * Fires after the month has changed
1744
- */
1745
- "onMonthChange"?: Hook | Hook[];
1746
- /**
1747
- * Fires after the calendar is opened
1748
- */
1749
- "onOpen"?: Hook | Hook[];
1750
- /**
1751
- * Fires after the configuration for the calendar is parsed
1698
+ * Event emitted when the file input gets changed by the user when selecting file(s).
1752
1699
  */
1753
- "onParseConfig"?: Hook | Hook[];
1754
1700
  "onPicked"?: (event: SallaDatetimePickerCustomEvent<any>) => void;
1755
- /**
1756
- * Fires once the calendar instance is ready
1757
- */
1758
- "onReady"?: Hook | Hook[];
1759
- /**
1760
- * Like onChange, but fires immediately after any date changes
1761
- */
1762
- "onValueUpdate"?: Hook | Hook[];
1763
- /**
1764
- * Fires after the year has changed
1765
- */
1766
- "onYearChange"?: Hook | Hook[];
1767
1701
  /**
1768
1702
  * Placeholder text to show on the input element
1769
1703
  */
@@ -2026,6 +1960,9 @@ declare namespace LocalJSX {
2026
1960
  * The maxmimum number of files that can be uploaded in parallel
2027
1961
  */
2028
1962
  "maxParallelUploads"?: number;
1963
+ /**
1964
+ * Event emitted when the file is about to be removed. Returns boolean value.
1965
+ */
2029
1966
  "onRemove"?: (event: SallaFileUploadCustomEvent<any>) => void;
2030
1967
  /**
2031
1968
  * Sets the required attribute to the output field
@@ -2175,7 +2112,13 @@ declare namespace LocalJSX {
2175
2112
  "requireEmail"?: boolean;
2176
2113
  }
2177
2114
  interface SallaLoyaltyPrizeItem {
2115
+ /**
2116
+ * Prize item to be displayed in this component.
2117
+ */
2178
2118
  "item"?: Item;
2119
+ /**
2120
+ * Event emmited when the user select this item.
2121
+ */
2179
2122
  "onPrizeItemSelected"?: (event: SallaLoyaltyPrizeItemCustomEvent<Item>) => void;
2180
2123
  }
2181
2124
  interface SallaModal {
@@ -2203,6 +2146,9 @@ declare namespace LocalJSX {
2203
2146
  * Avoid padding in the modal body or not, defaults to `false`
2204
2147
  */
2205
2148
  "noPadding"?: boolean;
2149
+ /**
2150
+ * Event emitted when the modal visibilty is changed.
2151
+ */
2206
2152
  "onModalVisibilityChanged"?: (event: SallaModalCustomEvent<Boolean>) => void;
2207
2153
  /**
2208
2154
  * The position of the modal
@@ -2499,9 +2445,8 @@ declare namespace LocalJSX {
2499
2445
  */
2500
2446
  "name"?: string;
2501
2447
  /**
2502
- * Event Emitter
2448
+ * Event emmitted when user enters a phone number.
2503
2449
  */
2504
- "onEnterClicked"?: (event: SallaTelInputCustomEvent<any>) => void;
2505
2450
  "onPhoneEntered"?: (event: SallaTelInputCustomEvent<Phone>) => void;
2506
2451
  /**
2507
2452
  * Current mobile number
@@ -2509,6 +2454,9 @@ declare namespace LocalJSX {
2509
2454
  "phone"?: string;
2510
2455
  }
2511
2456
  interface SallaUserSettings {
2457
+ /**
2458
+ * Value used for handling notification toggle check box.
2459
+ */
2512
2460
  "isNotifiable"?: boolean;
2513
2461
  }
2514
2462
  interface SallaVerify {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/twilight-components",
3
- "version": "2.9.8",
3
+ "version": "2.9.10",
4
4
  "license": "GPL-3.0",
5
5
  "author": "Salla Team <support@salla.dev> (https://salla.dev)",
6
6
  "bugs": {
@@ -75,8 +75,8 @@
75
75
  "typescript": "^4.4.3"
76
76
  },
77
77
  "dependencies": {
78
- "@salla.sa/twilight": "^2.9.8",
79
- "@salla.sa/twilight-tailwind-theme": "^2.9.2",
78
+ "@salla.sa/twilight": "^2.9.10",
79
+ "@salla.sa/twilight-tailwind-theme": "^2.9.10",
80
80
  "animejs": "^3.2.1",
81
81
  "filepond": "^4.30.4",
82
82
  "filepond-plugin-file-validate-size": "^2.2.7",
@@ -87,5 +87,5 @@
87
87
  "intl-tel-input": "^17.0.13",
88
88
  "swiper": "^8.3.1"
89
89
  },
90
- "gitHead": "6b19e9bf693fa550411f2ebeabdc62c0378dc47c"
90
+ "gitHead": "fdc828cc88e4e331db08b8038d6573776e51757b"
91
91
  }