@ikas/popup-renderer 1.0.31 → 1.0.32

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/build/index.js CHANGED
@@ -1 +1 @@
1
- export{default as PopupRenderer}from"./popup-renderer/components/index.js";import*as e from"./popup-renderer/helpers/index.js";export{e as PopupHelpers};export{MOBILE_SCREEN_SIZE,Popup,PreviewType}from"./popup-renderer/models/index.js";export{DeviceTypeEnum,PopupSettings}from"./popup-renderer/models/settings/index.js";export{VisibilityTime}from"./popup-renderer/models/settings/visibility-time/index.js";export{VisibilityCondition,VisibilityConditionTypeEnum}from"./popup-renderer/models/settings/visibility-condition/index.js";export{Modal,PopupPositonEnum,PopupTypeEnum}from"./popup-renderer/models/modal/index.js";export{WindowSettings}from"./popup-renderer/models/modal/window-settings/index.js";export{Teaser,VisibilityConditionEnum}from"./popup-renderer/models/modal/teaser/index.js";export{PopupStep}from"./popup-renderer/models/modal/step/index.js";export{BaseElement,ComponentHorizontalAlignmentEnum,ComponentVerticalAlignmentEnum,PopupElementTypeEnum}from"./popup-renderer/models/modal/step/elements/base/index.js";export{ButtonElement}from"./popup-renderer/models/modal/step/elements/button/index.js";export{DividerElement}from"./popup-renderer/models/modal/step/elements/divider/index.js";export{FormColumn,FormElement,FormItemTypeEnum,FormRow,InputLabel,RequiredInput}from"./popup-renderer/models/modal/step/elements/form/index.js";export{CheckboxFormItem,ContactPermission,ContactPermissionTypeEnum}from"./popup-renderer/models/modal/step/elements/form/checkbox/index.js";export{CustomerAttributeFormItem,CustomerAttributeTypeEnum}from"./popup-renderer/models/modal/step/elements/form/customer-attribute/index.js";export{CustomerBirthdayFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-birthday/index.js";export{CustomerEmailFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-email/index.js";export{CustomerGenderFormItem,CustomerGenderTypeEnum,GenderType}from"./popup-renderer/models/modal/step/elements/form/customer-gender/index.js";export{CustomerNameFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-name/index.js";export{CustomerPhoneFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-phone/index.js";export{CustomerSurnameFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-surname/index.js";export{FormInputSettings,FormSettings}from"./popup-renderer/models/modal/step/elements/form/form-settings/index.js";export{IMAGE_SIZE,ImageElement,ImagePositionEnum}from"./popup-renderer/models/modal/step/elements/image/index.js";export{ImageColumnElement,ImageColumnPositionEnum}from"./popup-renderer/models/modal/step/elements/image-column/index.js";export{MAX_PRODUCT_COUNT,PopupProduct,PopupVariantPair,ProductListElement,ProductListLayoutEnum,ProductListSortTypeEnum,ProductListTypeEnum}from"./popup-renderer/models/modal/step/elements/product/index.js";export{ProductActionTypeEnum,ProductButtonSettings,ProductDetailSettings,ProductDiscountRatioSettings,ProductImageSettings}from"./popup-renderer/models/modal/step/elements/product/detail-settings/index.js";export{SocialMediaElement,SocialMediaLink,SocialMediaTypeEnum}from"./popup-renderer/models/modal/step/elements/social/index.js";export{SpaceElement}from"./popup-renderer/models/modal/step/elements/space/index.js";export{TextElement}from"./popup-renderer/models/modal/step/elements/text/index.js";export{BackgroundSettings,Border,ButtonBorderStyle,Overlay,Shadow}from"./popup-renderer/models/modal/background-settings/index.js";export{CloseButtonDisplayTypeEnum,CloseButtonPositionTypeEnum,CloseIconSettings,CloseIconTypeEnum,CloseSettings}from"./popup-renderer/models/modal/close-settings/index.js";
1
+ export{default as PopupRenderer}from"./popup-renderer/components/index.js";import*as e from"./popup-renderer/helpers/index.js";export{e as PopupHelpers};export{MOBILE_SCREEN_SIZE,Popup,PreviewType}from"./popup-renderer/models/index.js";export{DeviceTypeEnum,PopupSettings}from"./popup-renderer/models/settings/index.js";export{VisibilityTime}from"./popup-renderer/models/settings/visibility-time/index.js";export{VisibilityCondition,VisibilityConditionTypeEnum}from"./popup-renderer/models/settings/visibility-condition/index.js";export{Modal,PopupPositonEnum,PopupTypeEnum}from"./popup-renderer/models/modal/index.js";export{WindowSettings}from"./popup-renderer/models/modal/window-settings/index.js";export{Teaser,VisibilityConditionEnum}from"./popup-renderer/models/modal/teaser/index.js";export{PopupStep}from"./popup-renderer/models/modal/step/index.js";export{BaseElement,ComponentHorizontalAlignmentEnum,ComponentVerticalAlignmentEnum,IkasPopupRendererFontFamily,PopupElementTypeEnum}from"./popup-renderer/models/modal/step/elements/base/index.js";export{ButtonElement}from"./popup-renderer/models/modal/step/elements/button/index.js";export{DividerElement}from"./popup-renderer/models/modal/step/elements/divider/index.js";export{FormColumn,FormElement,FormItemTypeEnum,FormRow,InputLabel,RequiredInput}from"./popup-renderer/models/modal/step/elements/form/index.js";export{CheckboxFormItem,ContactPermission,ContactPermissionTypeEnum}from"./popup-renderer/models/modal/step/elements/form/checkbox/index.js";export{CustomerAttributeFormItem,CustomerAttributeTypeEnum}from"./popup-renderer/models/modal/step/elements/form/customer-attribute/index.js";export{CustomerBirthdayFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-birthday/index.js";export{CustomerEmailFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-email/index.js";export{CustomerGenderFormItem,CustomerGenderTypeEnum,GenderType}from"./popup-renderer/models/modal/step/elements/form/customer-gender/index.js";export{CustomerNameFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-name/index.js";export{CustomerPhoneFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-phone/index.js";export{CustomerSurnameFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-surname/index.js";export{FormInputSettings,FormSettings}from"./popup-renderer/models/modal/step/elements/form/form-settings/index.js";export{IMAGE_SIZE,ImageElement,ImagePositionEnum}from"./popup-renderer/models/modal/step/elements/image/index.js";export{ImageColumnElement,ImageColumnPositionEnum}from"./popup-renderer/models/modal/step/elements/image-column/index.js";export{MAX_PRODUCT_COUNT,PopupProduct,PopupVariantPair,ProductListElement,ProductListLayoutEnum,ProductListSortTypeEnum,ProductListTypeEnum}from"./popup-renderer/models/modal/step/elements/product/index.js";export{ProductActionTypeEnum,ProductButtonSettings,ProductDetailSettings,ProductDiscountRatioSettings,ProductImageSettings}from"./popup-renderer/models/modal/step/elements/product/detail-settings/index.js";export{SocialMediaElement,SocialMediaLink,SocialMediaTypeEnum}from"./popup-renderer/models/modal/step/elements/social/index.js";export{SpaceElement}from"./popup-renderer/models/modal/step/elements/space/index.js";export{TextElement}from"./popup-renderer/models/modal/step/elements/text/index.js";export{BackgroundSettings,Border,ButtonBorderStyle,Overlay,Shadow}from"./popup-renderer/models/modal/background-settings/index.js";export{CloseButtonDisplayTypeEnum,CloseButtonPositionTypeEnum,CloseIconSettings,CloseIconTypeEnum,CloseSettings}from"./popup-renderer/models/modal/close-settings/index.js";
@@ -19,10 +19,11 @@ export declare enum PopupElementTypeEnum {
19
19
  DIVIDER = "DIVIDER",
20
20
  SPACE = "SPACE"
21
21
  }
22
- export type IkasPopupRendererFontFamily = {
22
+ export declare class IkasPopupRendererFontFamily {
23
23
  name: string;
24
24
  variants: string[] | null;
25
- };
25
+ constructor(data?: Partial<IkasPopupRendererFontFamily>);
26
+ }
26
27
  export declare class BaseElement {
27
28
  id: string;
28
29
  order: number;
@@ -1 +1 @@
1
- import{makeObservable as i,observable as t}from"mobx";var n,o,d;!function(i){i.LEFT="LEFT",i.CENTER="CENTER",i.RIGHT="RIGHT"}(n||(n={})),function(i){i.TOP="TOP",i.MIDDLE="MIDDLE",i.BOTTOM="BOTTOM"}(o||(o={})),function(i){i.TEXT="TEXT",i.FORM="FORM",i.IMAGE="IMAGE",i.IMAGE_COLUMN="IMAGE_COLUMN",i.PRODUCT_LIST="PRODUCT_LIST",i.BUTTON="BUTTON",i.SOCIAL_MEDIA="SOCIAL_MEDIA",i.DIVIDER="DIVIDER",i.SPACE="SPACE"}(d||(d={}));var r=function(d){var r,a,l,e,T;void 0===d&&(d={}),this.id=d.id||Date.now().toString(),this.order=d.order||0,this.width=null!==(r=d.width)&&void 0!==r?r:"100",this.verticalPadding=null!==(a=d.verticalPadding)&&void 0!==a?a:24,this.horizontalPadding=null!==(l=d.horizontalPadding)&&void 0!==l?l:24,this.outerVerticalPadding=null!==(e=d.outerVerticalPadding)&&void 0!==e?e:0,this.outerHorizontalPadding=null!==(T=d.outerHorizontalPadding)&&void 0!==T?T:0,this.horizontalAlignment=d.horizontalAlignment||n.CENTER,this.verticalAlignment=d.verticalAlignment||o.TOP,i(this,{id:t,order:t,width:t,verticalPadding:t,horizontalPadding:t,outerVerticalPadding:t,outerHorizontalPadding:t,horizontalAlignment:t,verticalAlignment:t})};export{r as BaseElement,n as ComponentHorizontalAlignmentEnum,o as ComponentVerticalAlignmentEnum,d as PopupElementTypeEnum};
1
+ import{makeObservable as i,observable as t}from"mobx";var n,o,a;!function(i){i.LEFT="LEFT",i.CENTER="CENTER",i.RIGHT="RIGHT"}(n||(n={})),function(i){i.TOP="TOP",i.MIDDLE="MIDDLE",i.BOTTOM="BOTTOM"}(o||(o={})),function(i){i.TEXT="TEXT",i.FORM="FORM",i.IMAGE="IMAGE",i.IMAGE_COLUMN="IMAGE_COLUMN",i.PRODUCT_LIST="PRODUCT_LIST",i.BUTTON="BUTTON",i.SOCIAL_MEDIA="SOCIAL_MEDIA",i.DIVIDER="DIVIDER",i.SPACE="SPACE"}(a||(a={}));var r=function(n){void 0===n&&(n={}),this.name=n.name||"Arial",this.variants=n.variants||null,i(this,{name:t,variants:t})},d=function(a){var r,d,l,e,T;void 0===a&&(a={}),this.id=a.id||Date.now().toString(),this.order=a.order||0,this.width=null!==(r=a.width)&&void 0!==r?r:"100",this.verticalPadding=null!==(d=a.verticalPadding)&&void 0!==d?d:24,this.horizontalPadding=null!==(l=a.horizontalPadding)&&void 0!==l?l:24,this.outerVerticalPadding=null!==(e=a.outerVerticalPadding)&&void 0!==e?e:0,this.outerHorizontalPadding=null!==(T=a.outerHorizontalPadding)&&void 0!==T?T:0,this.horizontalAlignment=a.horizontalAlignment||n.CENTER,this.verticalAlignment=a.verticalAlignment||o.TOP,i(this,{id:t,order:t,width:t,verticalPadding:t,horizontalPadding:t,outerVerticalPadding:t,outerHorizontalPadding:t,horizontalAlignment:t,verticalAlignment:t})};export{d as BaseElement,n as ComponentHorizontalAlignmentEnum,o as ComponentVerticalAlignmentEnum,r as IkasPopupRendererFontFamily,a as PopupElementTypeEnum};
@@ -1 +1 @@
1
- import{__extends as o}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as r,observable as t}from"mobx";import{PopupElementTypeEnum as i,BaseElement as l}from"../base/index.js";import{ButtonBorderStyle as n}from"../../../background-settings/index.js";var d=function(l){function d(o){var d,e,a,u,b,g,s,f,m=this;return(m=l.call(this,o)||this).text=o.text||"Button Text",m.type=i.BUTTON,m.color=o.color||"#FFFFFF",m.buttonBgColor=o.buttonBgColor||"#000000",m.bgColor=o.bgColor||"",m.fontFamily=o.fontFamily||{name:"Arial",variants:null},m.fontSize=null!==(d=o.fontSize)&&void 0!==d?d:16,m.fontWeight=null!==(e=o.fontWeight)&&void 0!==e?e:400,m.borderRadius=null!==(a=o.borderRadius)&&void 0!==a?a:4,m.borderColor=o.borderColor||"#000000",m.borderStyle=o.borderStyle||n.SOLID,m.borderWidth=null!==(u=o.borderWidth)&&void 0!==u?u:0,m.link=o.link||null,m.verticalPadding=null!==(b=o.verticalPadding)&&void 0!==b?b:12,m.horizontalPadding=null!==(g=o.horizontalPadding)&&void 0!==g?g:12,m.outerVerticalPadding=null!==(s=o.outerVerticalPadding)&&void 0!==s?s:12,m.outerHorizontalPadding=null!==(f=o.outerHorizontalPadding)&&void 0!==f?f:12,r(m,{text:t,color:t,buttonBgColor:t,bgColor:t,fontFamily:t,fontSize:t,fontWeight:t,borderRadius:t,borderColor:t,borderStyle:t,borderWidth:t,link:t}),m}return o(d,l),d}(l);export{d as ButtonElement};
1
+ import{__extends as o}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as r,observable as t}from"mobx";import{PopupElementTypeEnum as i,IkasPopupRendererFontFamily as l,BaseElement as n}from"../base/index.js";import{ButtonBorderStyle as d}from"../../../background-settings/index.js";var e=function(n){function e(o){var e,a,u,b,g,s,f,m,v=this;return(v=n.call(this,o)||this).text=o.text||"Button Text",v.type=i.BUTTON,v.color=o.color||"#FFFFFF",v.buttonBgColor=o.buttonBgColor||"#000000",v.bgColor=o.bgColor||"",v.fontFamily=new l(o.fontFamily||{name:"Arial",variants:null}),v.fontSize=null!==(e=o.fontSize)&&void 0!==e?e:16,v.fontWeight=null!==(a=o.fontWeight)&&void 0!==a?a:400,v.borderRadius=null!==(u=o.borderRadius)&&void 0!==u?u:4,v.borderColor=o.borderColor||"#000000",v.borderStyle=o.borderStyle||d.SOLID,v.borderWidth=null!==(b=o.borderWidth)&&void 0!==b?b:0,v.link=o.link||null,v.verticalPadding=null!==(g=o.verticalPadding)&&void 0!==g?g:12,v.horizontalPadding=null!==(s=o.horizontalPadding)&&void 0!==s?s:12,v.outerVerticalPadding=null!==(f=o.outerVerticalPadding)&&void 0!==f?f:12,v.outerHorizontalPadding=null!==(m=o.outerHorizontalPadding)&&void 0!==m?m:12,r(v,{text:t,color:t,buttonBgColor:t,bgColor:t,fontFamily:t,fontSize:t,fontWeight:t,borderRadius:t,borderColor:t,borderStyle:t,borderWidth:t,link:t}),v}return o(e,n),e}(n);export{e as ButtonElement};
@@ -1 +1 @@
1
- import{makeObservable as o,observable as t}from"mobx";var r=function(r){var e,n;void 0===r&&(r={}),this.formInputSettings=r.formInputSettings?new i(r.formInputSettings):new i,this.gapBetweenItems=null!==(e=r.gapBetweenItems)&&void 0!==e?e:12,this.fontFamily=r.fontFamily||{name:"Arial",variants:null},this.fontSize=null!==(n=r.fontSize)&&void 0!==n?n:14,o(this,{formInputSettings:t,gapBetweenItems:t,fontFamily:t,fontSize:t})},i=function(r){var i,e,n;void 0===r&&(r={}),this.bgColor=r.bgColor||"#FFFFFF",this.borderWidth=null!==(i=r.borderWidth)&&void 0!==i?i:1,this.borderRadius=null!==(e=r.borderRadius)&&void 0!==e?e:4,this.borderColor=r.borderColor||"#E3E8EF",this.focusBorderColor=r.focusBorderColor||"#000000",this.height=null!==(n=r.height)&&void 0!==n?n:40,o(this,{bgColor:t,borderWidth:t,borderRadius:t,borderColor:t,focusBorderColor:t,height:t})};export{i as FormInputSettings,r as FormSettings};
1
+ import{makeObservable as o,observable as t}from"mobx";import{IkasPopupRendererFontFamily as r}from"../../base/index.js";var i=function(i){var n,s;void 0===i&&(i={}),this.formInputSettings=i.formInputSettings?new e(i.formInputSettings):new e,this.gapBetweenItems=null!==(n=i.gapBetweenItems)&&void 0!==n?n:12,this.fontFamily=new r(i.fontFamily||{name:"Arial",variants:null}),this.fontSize=null!==(s=i.fontSize)&&void 0!==s?s:14,o(this,{formInputSettings:t,gapBetweenItems:t,fontFamily:t,fontSize:t})},e=function(r){var i,e,n;void 0===r&&(r={}),this.bgColor=r.bgColor||"#FFFFFF",this.borderWidth=null!==(i=r.borderWidth)&&void 0!==i?i:1,this.borderRadius=null!==(e=r.borderRadius)&&void 0!==e?e:4,this.borderColor=r.borderColor||"#E3E8EF",this.focusBorderColor=r.focusBorderColor||"#000000",this.height=null!==(n=r.height)&&void 0!==n?n:40,o(this,{bgColor:t,borderWidth:t,borderRadius:t,borderColor:t,focusBorderColor:t,height:t})};export{e as FormInputSettings,i as FormSettings};
@@ -1 +1 @@
1
- import{makeObservable as i,observable as t}from"mobx";import{TextElement as o}from"../../text/index.js";var n,a=function(n){void 0===n&&(n={}),this.image=n.image?new e(n.image):new e({}),this.name=n.name?new o(n.name):new o({horizontalPadding:0,verticalPadding:6}),this.discountRatio=n.discountRatio?new o(n.discountRatio):new o({horizontalPadding:0,verticalPadding:8}),this.originalPrice=n.originalPrice?new o(n.originalPrice):new o({horizontalPadding:0,verticalPadding:2,fontSize:14,color:"#697586"}),this.finalPrice=n.finalPrice?new o(n.finalPrice):new o({horizontalPadding:0,verticalPadding:2}),this.button=n.button?new l(n.button):new l({}),i(this,{image:t,name:t,discountRatio:t,originalPrice:t,finalPrice:t,button:t})},e=function(o){var n,a;this.bgColor=o.bgColor||"#FFFFFF",this.maxWidth=null!==(n=o.maxWidth)&&void 0!==n?n:100,this.borderRadius=null!==(a=o.borderRadius)&&void 0!==a?a:0,i(this,{bgColor:t,maxWidth:t,borderRadius:t})},r=function(o){var n;void 0===o&&(o={}),this.color=o.color||"#000000",this.bgColor=o.bgColor||"#FFFFFF",this.fontFamily=o.fontFamily||{name:"Arial",variants:null},this.fontSize=null!==(n=o.fontSize)&&void 0!==n?n:24,i(this,{color:t,bgColor:t,fontFamily:t,fontSize:t})};!function(i){i.ADD_TO_CART="ADD_TO_CART",i.NAVIGATE_TO_PRODUCT_DETAIL="NAVIGATE_TO_PRODUCT_DETAIL"}(n||(n={}));var l=function(o){void 0===o&&(o={}),this.text=o.text||"Button Text",this.action=o.action||n.ADD_TO_CART,i(this,{text:t,action:t})};export{n as ProductActionTypeEnum,l as ProductButtonSettings,a as ProductDetailSettings,r as ProductDiscountRatioSettings,e as ProductImageSettings};
1
+ import{makeObservable as i,observable as o}from"mobx";import{TextElement as t}from"../../text/index.js";import{IkasPopupRendererFontFamily as n}from"../../base/index.js";var a,e=function(n){void 0===n&&(n={}),this.image=n.image?new r(n.image):new r({}),this.name=n.name?new t(n.name):new t({horizontalPadding:0,verticalPadding:6}),this.discountRatio=n.discountRatio?new t(n.discountRatio):new t({horizontalPadding:0,verticalPadding:8}),this.originalPrice=n.originalPrice?new t(n.originalPrice):new t({horizontalPadding:0,verticalPadding:2,fontSize:14,color:"#697586"}),this.finalPrice=n.finalPrice?new t(n.finalPrice):new t({horizontalPadding:0,verticalPadding:2}),this.button=n.button?new d(n.button):new d({}),i(this,{image:o,name:o,discountRatio:o,originalPrice:o,finalPrice:o,button:o})},r=function(t){var n,a;this.bgColor=t.bgColor||"#FFFFFF",this.maxWidth=null!==(n=t.maxWidth)&&void 0!==n?n:100,this.borderRadius=null!==(a=t.borderRadius)&&void 0!==a?a:0,i(this,{bgColor:o,maxWidth:o,borderRadius:o})},l=function(t){var a;void 0===t&&(t={}),this.color=t.color||"#000000",this.bgColor=t.bgColor||"#FFFFFF",this.fontFamily=new n(t.fontFamily||{name:"Arial",variants:null}),this.fontSize=null!==(a=t.fontSize)&&void 0!==a?a:24,i(this,{color:o,bgColor:o,fontFamily:o,fontSize:o})};!function(i){i.ADD_TO_CART="ADD_TO_CART",i.NAVIGATE_TO_PRODUCT_DETAIL="NAVIGATE_TO_PRODUCT_DETAIL"}(a||(a={}));var d=function(t){void 0===t&&(t={}),this.text=t.text||"Button Text",this.action=t.action||a.ADD_TO_CART,i(this,{text:o,action:o})};export{a as ProductActionTypeEnum,d as ProductButtonSettings,e as ProductDetailSettings,l as ProductDiscountRatioSettings,r as ProductImageSettings};
@@ -1 +1 @@
1
- import{__extends as o}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as r,observable as i}from"mobx";import{PopupElementTypeEnum as t,ComponentHorizontalAlignmentEnum as l,BaseElement as n}from"../base/index.js";import{ButtonBorderStyle as d}from"../../../background-settings/index.js";var e=function(n){function e(o){var e,a,u,b,s,g,m,f,h=this;return(h=n.call(this,o)||this).type=t.TEXT,h.text=o.text||"This is a text",h.color=o.color||"#000000",h.bgColor=o.bgColor||"",h.fontFamily=o.fontFamily||{name:"Arial",variants:null},h.fontSize=null!==(e=o.fontSize)&&void 0!==e?e:16,h.fontWeight=null!==(a=o.fontWeight)&&void 0!==a?a:400,h.borderRadius=null!==(u=o.borderRadius)&&void 0!==u?u:4,h.borderColor=o.borderColor||"#000000",h.borderStyle=o.borderStyle||d.SOLID,h.borderWidth=null!==(b=o.borderWidth)&&void 0!==b?b:0,h.verticalPadding=null!==(s=o.verticalPadding)&&void 0!==s?s:12,h.horizontalPadding=null!==(g=o.horizontalPadding)&&void 0!==g?g:12,h.outerHorizontalPadding=null!==(m=o.outerHorizontalPadding)&&void 0!==m?m:0,h.outerVerticalPadding=null!==(f=o.outerVerticalPadding)&&void 0!==f?f:0,h.horizontalAlignment=o.horizontalAlignment||l.LEFT,r(h,{text:i,color:i,bgColor:i,fontFamily:i,fontSize:i,fontWeight:i,borderRadius:i,borderColor:i,borderStyle:i,borderWidth:i}),h}return o(e,n),e}(n);export{e as TextElement};
1
+ import{__extends as o}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as r,observable as i}from"mobx";import{PopupElementTypeEnum as t,IkasPopupRendererFontFamily as l,ComponentHorizontalAlignmentEnum as n,BaseElement as e}from"../base/index.js";import{ButtonBorderStyle as d}from"../../../background-settings/index.js";var a=function(e){function a(o){var a,u,b,s,g,m,f,h,v=this;return(v=e.call(this,o)||this).type=t.TEXT,v.text=o.text||"This is a text",v.color=o.color||"#000000",v.bgColor=o.bgColor||"",v.fontFamily=new l(o.fontFamily||{name:"Arial",variants:null}),v.fontSize=null!==(a=o.fontSize)&&void 0!==a?a:16,v.fontWeight=null!==(u=o.fontWeight)&&void 0!==u?u:400,v.borderRadius=null!==(b=o.borderRadius)&&void 0!==b?b:4,v.borderColor=o.borderColor||"#000000",v.borderStyle=o.borderStyle||d.SOLID,v.borderWidth=null!==(s=o.borderWidth)&&void 0!==s?s:0,v.verticalPadding=null!==(g=o.verticalPadding)&&void 0!==g?g:12,v.horizontalPadding=null!==(m=o.horizontalPadding)&&void 0!==m?m:12,v.outerHorizontalPadding=null!==(f=o.outerHorizontalPadding)&&void 0!==f?f:0,v.outerVerticalPadding=null!==(h=o.outerVerticalPadding)&&void 0!==h?h:0,v.horizontalAlignment=o.horizontalAlignment||n.LEFT,r(v,{text:i,color:i,bgColor:i,fontFamily:i,fontSize:i,fontWeight:i,borderRadius:i,borderColor:i,borderStyle:i,borderWidth:i}),v}return o(a,e),a}(e);export{a as TextElement};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/popup-renderer",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "",
5
5
  "author": "ucy",
6
6
  "license": "ISC",