@assaabloy/amarr-wc-rich-text 2.0.13 → 2.0.14
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/package.json +2 -2
- package/richText.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-rich-text",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14",
|
|
4
4
|
"description": "Web component - Rich Text",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "richText.js",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Nagarro",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "915b72a2a8a85e33fc84749993fa7e416bfd8555"
|
|
15
15
|
}
|
package/richText.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){function n(n){for(var r,a,c=n[0],l=n[1],u=n[2],s=0,f=[];s<c.length;s++)a=c[s],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&f.push(o[a][0]),o[a]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(d&&d(n);f.length;)f.shift()();return i.push.apply(i,u||[]),t()}function t(){for(var e,n=0;n<i.length;n++){for(var t=i[n],r=!0,c=1;c<t.length;c++){var l=t[c];0!==o[l]&&(r=!1)}r&&(i.splice(n--,1),e=a(a.s=t[0]))}return e}var r={},o={
|
|
1
|
+
!function(e){function n(n){for(var r,a,c=n[0],l=n[1],u=n[2],s=0,f=[];s<c.length;s++)a=c[s],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&f.push(o[a][0]),o[a]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(d&&d(n);f.length;)f.shift()();return i.push.apply(i,u||[]),t()}function t(){for(var e,n=0;n<i.length;n++){for(var t=i[n],r=!0,c=1;c<t.length;c++){var l=t[c];0!==o[l]&&(r=!1)}r&&(i.splice(n--,1),e=a(a.s=t[0]))}return e}var r={},o={70:0},i=[];function a(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.m=e,a.c=r,a.d=function(e,n,t){a.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,n){if(1&n&&(e=a(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)a.d(t,r,function(n){return e[n]}.bind(null,r));return t},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="/";var c=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],l=c.push.bind(c);c.push=n,c=c.slice();for(var u=0;u<c.length;u++)n(c[u]);var d=l;i.push([857,0]),t()}({0:function(e,n){e.exports=React},1:function(e,n,t){"use strict";t.d(n,"g",(function(){return o})),t.d(n,"T",(function(){return i})),t.d(n,"i",(function(){return a})),t.d(n,"C",(function(){return c})),t.d(n,"F",(function(){return l})),t.d(n,"u",(function(){return u})),t.d(n,"A",(function(){return d})),t.d(n,"n",(function(){return s})),t.d(n,"q",(function(){return f})),t.d(n,"H",(function(){return p})),t.d(n,"G",(function(){return m})),t.d(n,"O",(function(){return g})),t.d(n,"D",(function(){return x})),t.d(n,"t",(function(){return b})),t.d(n,"h",(function(){return w})),t.d(n,"s",(function(){return h})),t.d(n,"x",(function(){return v})),t.d(n,"v",(function(){return y})),t.d(n,"B",(function(){return z})),t.d(n,"r",(function(){return M})),t.d(n,"P",(function(){return O})),t.d(n,"p",(function(){return k})),t.d(n,"I",(function(){return j})),t.d(n,"E",(function(){return _})),t.d(n,"Q",(function(){return A})),t.d(n,"l",(function(){return N})),t.d(n,"j",(function(){return $})),t.d(n,"m",(function(){return Z})),t.d(n,"k",(function(){return D})),t.d(n,"y",(function(){return P})),t.d(n,"K",(function(){return H})),t.d(n,"w",(function(){return S})),t.d(n,"R",(function(){return T})),t.d(n,"S",(function(){return q})),t.d(n,"b",(function(){return I})),t.d(n,"N",(function(){return U})),t.d(n,"z",(function(){return R})),t.d(n,"a",(function(){return F})),t.d(n,"d",(function(){return J})),t.d(n,"f",(function(){return W})),t.d(n,"e",(function(){return G})),t.d(n,"V",(function(){return L})),t.d(n,"c",(function(){return V})),t.d(n,"U",(function(){return B})),t.d(n,"J",(function(){return K})),t.d(n,"L",(function(){return Q})),t.d(n,"M",(function(){return X})),t.d(n,"o",(function(){return Y}));var r=t(3),o=function(e){return JSON.parse(decodeURIComponent(escape(atob(e))))},i=function(e){return btoa(unescape(encodeURIComponent(e)))},a=function(e){return e.toUpperCase()},c=function(e){return e.replaceAll(" ","-").toLowerCase()},l=new r.a(!1),u=new r.a(!1),d=new r.a(!1),s=new r.a(!1),f=new r.a(""),p=new r.a(!1),m=new r.a(!1),g=new r.a(!1),x=new r.a(!1),b=new r.a(!1),w=new r.a(!1),h=new r.a(""),v=new r.a(!0),y=new r.a(!0),z=new r.a(!0),M=new r.a(!0),O=new r.a(!0),k=new r.a(!0),j=new r.a({}),C=new r.a(!1),E=0,_=new r.a(!1),A=new r.a(""),N=new r.a(""),$=new r.a(""),Z=new r.a(""),D=new r.a(""),P=new r.a(""),H=new r.a(""),S=new r.a(!1),T=new r.a(!1),q=new r.a(!1),I=function(){setTimeout((function(){E++,C.next(!0)}),0)},U=function(){setTimeout((function(){E>0&&E--,0==E&&C.next(!1)}),0)},R=function(){return C.asObservable()},F=function(e){return!!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},J=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},W=function(e){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(e)},G=function(e){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(e)},L=function(e){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(e)},V=function(e){return/^[0-9]*$/.test(e)},B=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},K=function(e){if(e&&""!==e&&-1===e.indexOf("(")&&-1===e.indexOf(") ")&&-1===e.indexOf("-")){return"("+e.substring(0,3)+") "+e.substring(3,6)+"-"+e.substring(6,e.length)}return e},Q=function(e){return e&&(e=e.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==e&&"0"!==e||(e=e.toFixed(2)),e},X=function(e,n){return e=e?Number(e):0,(0===(n=n?Number(n):0)||"0"===n?0:(e-n)/n*100).toFixed(2)},Y=function(e){var n={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:e.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:e.selectedHeight,glass:e.selectedGlass,collection:e.selectedCollection,print:!0,baseUrl:"",gplacement:e.selectedWindowPlacement,width:e.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return e.selectedColor&&(n.color=e.selectedColor),e.colorHex&&(n.colorHex=e.colorHex),e.colorZone&&(n.colorZone=e.colorZone),e.selectedConstruction&&(n.model=e.selectedConstruction),e.selectedWindowDesign&&(n.top=e.selectedWindowDesign),e.glazepattern&&(n.glazepattern=e.glazepattern),e.selectedHardware&&(n.hardware=e.selectedHardware),n}},17:function(e,n){e.exports=ReactDOM},21:function(e,n,t){"use strict";t.d(n,"a",(function(){return c}));var r=t(15),o=t(0),i=t.n(o),a=t(4).default.div.withConfig({displayName:"styles__View",componentId:"zfm3w6-0"})([".divider{width:100%;height:6px;@media screen and (min-width:1281px){height:8px;}@media screen and (min-width:1681px){height:10px;}}"]),c=function(e){return Object(r.a)(e),i.a.createElement(a,null,i.a.createElement("div",{className:"divider"},"\xa0"))}},764:function(e,n,t){"use strict";t.r(n);var r=t(14),o=t(97);n.default=r.a.create({component:o.a,configuration:{tagname:"amarr-richtext",useShadow:!1},plugins:[]})},97:function(e,n,t){"use strict";var r=t(0),o=t.n(r),i=t(4).default.section.withConfig({displayName:"styles__Content",componentId:"jfatlv-0"})(['ul{li{margin-bottom:5px;}}.text-style-rte{margin-left:1rem;}ol{li{counter-increment:li;.circle-ol,.square-ol,.number-ol{--size:90px;position:relative;margin-left:calc(var(--size) - 10px);margin-bottom:calc(var(--size) / 2);display:inline-block;&::before{display:inline-flex;justify-content:center;align-items:center;content:counter(li);color:#fff;font-size:calc(var(--size) / 3);font-weight:600;background:#cc4b4c;padding:18px;border-radius:50%;position:absolute;top:0;line-height:var(--size);width:var(--size);height:var(--size);left:calc(-1 * var(--size) - 14px);}}.circle-ol,.square-ol{min-height:var(--size);}.square-ol{--size:40px;&:before{background:#006166;border-radius:4px;}}.number-ol{--size:40px;margin-bottom:0;&:before{content:counter(li)".";background:#fff;color:#333;font-size:16px;align-items:start;padding:0;height:auto;line-height:1.7;}}.circle-ol{padding-top:10px;}.circle-ol > span{margin-left:16px;}}}@media only screen and (min-width:992px){.body-text2 p em sub{font-size:100%;}.body-text2 h3 strong{font-size:48px;}}.text-style-rte.body-text2 > ul{list-style:none;}.text-style-rte.body-text2 > ul li::before{content:"\\2022";color:#006166;font-weight:bold;display:inline-block;width:30px;margin-left:-30px;@media screen and (max-width:835px){font-size:20px;}}.dealer-microsite-page{.dealer-rich-text{margin:40px 0;@media screen and (max-width:768px){margin:20px;}}}@media(min-width:1681px){.number-ol{&:before{font-size:22px !important;}}}@media screen and (max-width:1680px){ol{li{.circle-ol{--size:80px;}}}}@media screen and (max-width:1280px){ol{li{.circle-ol{--size:60px;padding-top:8px;}.circle-ol > span{margin-left:10px;}}}}@media screen and (max-width:768px){ol{li{.circle-ol{--size:40px;padding-top:0px;}.circle-ol > span{margin-left:0px;}}}}@media screen and (max-width:767px){.text-style .dealer-rich-text{td{a{padding-left:8px}}}}.amarrHighlight{word-break:break-word;}li.rte-green::marker{color:#006166;}.ul-indent-left{margin-left:48px;}']),a=t(1),c=t(21),l=function(e){var n=e.richTextData,t=Object(a.g)(n);return Object(r.useEffect)((function(){$(".circle-ol, .square-ol, .number-ol").parent().css("list-style","none"),$(".rte-bullet-green").closest("li").addClass("rte-green"),$(".ul-indent").parent().parent().addClass("ul-indent-left")})),o.a.createElement(i,null,(void 0==t.topMargin||!0===t.topMargin)&&o.a.createElement("span",{className:"d-none d-md-block",id:"rt-top-desktop"},o.a.createElement(c.a,null)),(void 0==t.topMarginMobile||!0===t.topMarginMobile)&&o.a.createElement("span",{className:"d-block d-md-none",id:"rt-top-mobile"},o.a.createElement(c.a,null)),o.a.createElement("div",{className:"large-screen-container container dealer-col"},o.a.createElement("div",{className:"text-style dealer-rich-text body-text2 ".concat(t.leftMargin?"text-style-rte":""),dangerouslySetInnerHTML:{__html:t.text}})),(void 0==t.bottomMargin||!0===t.bottomMargin)&&o.a.createElement("span",{className:"d-none d-md-block",id:"rt-bottom-desktop"},o.a.createElement(c.a,null)),(void 0==t.bottomMarginMobile||!0===t.bottomMarginMobile)&&o.a.createElement("span",{className:"d-block d-md-none",id:"rt-bottom-mobile"},o.a.createElement(c.a,null)))};l.defaultProps={theme:"",richTextData:""};n.a=l}});
|