stencil-quill
Version:
Native web component for quill editor
2 lines • 2.71 kB
JavaScript
var __awaiter=this&&this.__awaiter||function(t,e,n,r){function u(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function i(t){try{c(r["throw"](t))}catch(t){o(t)}}function c(t){t.done?n(t.value):u(t.value).then(a,i)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,u,o,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(t){return function(e){return c([t,e])}}function c(i){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,i[0]&&(n=0)),n)try{if(r=1,u&&(o=i[0]&2?u["return"]:i[0]?u["throw"]||((o=u["return"])&&o.call(u),0):u.next)&&!(o=o.call(u,i[1])).done)return o;if(u=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;u=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){n.label=i[1];break}if(i[0]===6&&n.label<o[1]){n.label=o[1];o=i;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(i);break}if(o[2])n.ops.pop();n.trys.pop();continue}i=e.call(t,n)}catch(t){i=[6,t];u=0}finally{r=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-9a8d1e65.system.js","./p-56ba5cbf.system.js"],(function(t,e){"use strict";var n,r,u;return{setters:[function(e){n=e.p;r=e.b;t("setNonce",e.s)},function(t){u=t.g}],execute:function(){var t=this;var o=function(){var t=e.meta.url;var r={};if(t!==""){r.resourcesUrl=new URL(".",t).href}return n(r)};o().then((function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,u()];case 1:t.sent();return[2,r([["p-65afc9c8.system",[[6,"quill-editor",{format:[1],bounds:[1],content:[1],debug:[1],formats:[16],modules:[1],placeholder:[1],readOnly:[4,"read-only"],styles:[1],theme:[1],customToolbarPosition:[1,"custom-toolbar-position"],defaultEmptyValue:[8,"default-empty-value"]},null,{content:["updateContent"],readOnly:["updateReadOnly"],placeholder:["updatePlaceholder"],styles:["updateStyle"]}],[2,"quill-view",{format:[1],content:[1],debug:[1],formats:[16],modules:[1],strict:[4],styles:[1],theme:[1],defaultEmptyValue:[8,"default-empty-value"]},null,{styles:["updateStyle"],content:["updateContent"]}],[2,"quill-view-html",{content:[1],theme:[1]},null,{theme:["updateTheme"]}]]]],e)]}}))}))}))}}}));
//# sourceMappingURL=p-975ff867.system.js.map