@salla.sa/twilight-components 2.9.0 → 2.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -21
- package/dist/cjs/index-cac2fd59.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{salla-button_29.cjs.entry.js → salla-button_30.cjs.entry.js} +50 -3
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/collection/Helpers/Helper.js +4 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +3 -3
- package/dist/collection/components/salla-comment-form/salla-comment-form.css +3 -0
- package/dist/collection/components/salla-comment-form/salla-comment-form.js +102 -0
- package/dist/components/Helper.js +4 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/salla-cart-summary.js +3 -3
- package/dist/components/salla-comment-form.d.ts +11 -0
- package/dist/components/salla-comment-form.js +78 -0
- package/dist/esm/index-0ce70ad2.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{salla-button_29.entry.js → salla-button_30.entry.js} +50 -4
- package/dist/esm/twilight.js +1 -1
- package/dist/esm-es5/index-0ce70ad2.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/salla-button_30.entry.js +34 -0
- package/dist/esm-es5/twilight.js +1 -1
- package/dist/twilight/p-4191f73f.entry.js +22 -0
- package/dist/twilight/p-d393a5f3.system.js +1 -1
- package/dist/twilight/p-dd56d0ec.system.entry.js +34 -0
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/Helpers/Helper.d.ts +1 -0
- package/dist/types/components/salla-comment-form/salla-comment-form.d.ts +20 -0
- package/dist/types/components.d.ts +29 -0
- package/package.json +5 -5
- package/dist/esm-es5/salla-button_29.entry.js +0 -34
- package/dist/twilight/p-6d3e4849.entry.js +0 -22
- package/dist/twilight/p-6dd0ca8b.system.entry.js +0 -34
|
@@ -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 r}from"./p-ca68752d.js";import"./p-f59fe82e.js";import"./p-f84bae34.js";(()=>{e.l=a.__cssshim;const r=Array.from(l.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),i={};return i.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,a.location.href)).href,((e,o)=>{const r=`__sc_import_${t.replace(/\s|-/g,"_")}`;try{a[r]=new Function("w",`return import(w);//${Math.random()}`)}catch(t){const i=new Map;a[r]=t=>{const s=new URL(t,e).href;let n=i.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.${r}.m = m;`],{type:"application/javascript"})),n=new Promise((l=>{e.onload=()=>{l(a[r].m),e.remove()}})),i.set(s,n),l.head.appendChild(e)}return n}}})(i.resourcesUrl,r),a.customElements?o(i):__sc_import_twilight("./p-5db948f2.js").then((()=>i))})().then((e=>r(JSON.parse('[["p-6d3e4849",[[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"]]],[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-13129ac9",[[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-f59fe82e.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-4191f73f",[[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]},[[0,"keydown","handleKeyDown"]]],[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-13129ac9",[[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)));
|
|
@@ -3,6 +3,7 @@ declare class Helper {
|
|
|
3
3
|
toggleElementClassIf(element: any, classes1: any, classes2: any, callback: any): this;
|
|
4
4
|
toggleClassIf(selector: any, classes1: any, classes2: any, callback: any): this;
|
|
5
5
|
isValidEmail(email: any): boolean;
|
|
6
|
+
filterEmojies(text: any): any;
|
|
6
7
|
debounce(fn: any, ...data: any[]): any;
|
|
7
8
|
}
|
|
8
9
|
declare const _default: Helper;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare class SallaCommentForm {
|
|
2
|
+
constructor();
|
|
3
|
+
/**
|
|
4
|
+
* type prop
|
|
5
|
+
*/
|
|
6
|
+
type: 'product' | 'page';
|
|
7
|
+
/**
|
|
8
|
+
* itemId prop
|
|
9
|
+
*/
|
|
10
|
+
itemId: string | number;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
submitText: string;
|
|
13
|
+
canComment: boolean;
|
|
14
|
+
private commmentField;
|
|
15
|
+
private submitBtn;
|
|
16
|
+
private commentForm;
|
|
17
|
+
private submit;
|
|
18
|
+
handleKeyDown(ev: KeyboardEvent): void;
|
|
19
|
+
render(): any;
|
|
20
|
+
}
|
|
@@ -97,6 +97,16 @@ export namespace Components {
|
|
|
97
97
|
}
|
|
98
98
|
interface SallaCartSummary {
|
|
99
99
|
}
|
|
100
|
+
interface SallaCommentForm {
|
|
101
|
+
/**
|
|
102
|
+
* itemId prop
|
|
103
|
+
*/
|
|
104
|
+
"itemId": string | number;
|
|
105
|
+
/**
|
|
106
|
+
* type prop
|
|
107
|
+
*/
|
|
108
|
+
"type": 'product' | 'page';
|
|
109
|
+
}
|
|
100
110
|
interface SallaConditionalFields {
|
|
101
111
|
}
|
|
102
112
|
interface SallaDatetimePicker {
|
|
@@ -1244,6 +1254,12 @@ declare global {
|
|
|
1244
1254
|
prototype: HTMLSallaCartSummaryElement;
|
|
1245
1255
|
new (): HTMLSallaCartSummaryElement;
|
|
1246
1256
|
};
|
|
1257
|
+
interface HTMLSallaCommentFormElement extends Components.SallaCommentForm, HTMLStencilElement {
|
|
1258
|
+
}
|
|
1259
|
+
var HTMLSallaCommentFormElement: {
|
|
1260
|
+
prototype: HTMLSallaCommentFormElement;
|
|
1261
|
+
new (): HTMLSallaCommentFormElement;
|
|
1262
|
+
};
|
|
1247
1263
|
interface HTMLSallaConditionalFieldsElement extends Components.SallaConditionalFields, HTMLStencilElement {
|
|
1248
1264
|
}
|
|
1249
1265
|
var HTMLSallaConditionalFieldsElement: {
|
|
@@ -1440,6 +1456,7 @@ declare global {
|
|
|
1440
1456
|
"salla-add-product-button": HTMLSallaAddProductButtonElement;
|
|
1441
1457
|
"salla-button": HTMLSallaButtonElement;
|
|
1442
1458
|
"salla-cart-summary": HTMLSallaCartSummaryElement;
|
|
1459
|
+
"salla-comment-form": HTMLSallaCommentFormElement;
|
|
1443
1460
|
"salla-conditional-fields": HTMLSallaConditionalFieldsElement;
|
|
1444
1461
|
"salla-datetime-picker": HTMLSallaDatetimePickerElement;
|
|
1445
1462
|
"salla-file-upload": HTMLSallaFileUploadElement;
|
|
@@ -1549,6 +1566,16 @@ declare namespace LocalJSX {
|
|
|
1549
1566
|
}
|
|
1550
1567
|
interface SallaCartSummary {
|
|
1551
1568
|
}
|
|
1569
|
+
interface SallaCommentForm {
|
|
1570
|
+
/**
|
|
1571
|
+
* itemId prop
|
|
1572
|
+
*/
|
|
1573
|
+
"itemId"?: string | number;
|
|
1574
|
+
/**
|
|
1575
|
+
* type prop
|
|
1576
|
+
*/
|
|
1577
|
+
"type"?: 'product' | 'page';
|
|
1578
|
+
}
|
|
1552
1579
|
interface SallaConditionalFields {
|
|
1553
1580
|
}
|
|
1554
1581
|
interface SallaDatetimePicker {
|
|
@@ -2510,6 +2537,7 @@ declare namespace LocalJSX {
|
|
|
2510
2537
|
"salla-add-product-button": SallaAddProductButton;
|
|
2511
2538
|
"salla-button": SallaButton;
|
|
2512
2539
|
"salla-cart-summary": SallaCartSummary;
|
|
2540
|
+
"salla-comment-form": SallaCommentForm;
|
|
2513
2541
|
"salla-conditional-fields": SallaConditionalFields;
|
|
2514
2542
|
"salla-datetime-picker": SallaDatetimePicker;
|
|
2515
2543
|
"salla-file-upload": SallaFileUpload;
|
|
@@ -2551,6 +2579,7 @@ declare module "@stencil/core" {
|
|
|
2551
2579
|
"salla-add-product-button": LocalJSX.SallaAddProductButton & JSXBase.HTMLAttributes<HTMLSallaAddProductButtonElement>;
|
|
2552
2580
|
"salla-button": LocalJSX.SallaButton & JSXBase.HTMLAttributes<HTMLSallaButtonElement>;
|
|
2553
2581
|
"salla-cart-summary": LocalJSX.SallaCartSummary & JSXBase.HTMLAttributes<HTMLSallaCartSummaryElement>;
|
|
2582
|
+
"salla-comment-form": LocalJSX.SallaCommentForm & JSXBase.HTMLAttributes<HTMLSallaCommentFormElement>;
|
|
2554
2583
|
"salla-conditional-fields": LocalJSX.SallaConditionalFields & JSXBase.HTMLAttributes<HTMLSallaConditionalFieldsElement>;
|
|
2555
2584
|
"salla-datetime-picker": LocalJSX.SallaDatetimePicker & JSXBase.HTMLAttributes<HTMLSallaDatetimePickerElement>;
|
|
2556
2585
|
"salla-file-upload": LocalJSX.SallaFileUpload & JSXBase.HTMLAttributes<HTMLSallaFileUploadElement>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salla.sa/twilight-components",
|
|
3
|
-
"version": "2.9.
|
|
4
|
-
"license": "
|
|
3
|
+
"version": "2.9.2",
|
|
4
|
+
"license": "GPL-3.0",
|
|
5
5
|
"author": "Salla Team <support@salla.dev> (https://salla.dev)",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/sallaapp/twilight-components",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"typescript": "^4.4.3"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@salla.sa/twilight": "^2.9.
|
|
79
|
-
"@salla.sa/twilight-tailwind-theme": "^2.9.
|
|
78
|
+
"@salla.sa/twilight": "^2.9.2",
|
|
79
|
+
"@salla.sa/twilight-tailwind-theme": "^2.9.2",
|
|
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": "
|
|
90
|
+
"gitHead": "1464250a7e6c1f5bca7f44b7172ed136a244db0b"
|
|
91
91
|
}
|