@neuronet.io/vido
Advanced tools
Comparing version 1.0.31 to 1.0.32
{ | ||
"name": "@neuronet.io/vido", | ||
"version": "1.0.31", | ||
"version": "1.0.32", | ||
"description": "Compilation-less and eval free frontend framework for fast scalable apps.", | ||
@@ -5,0 +5,0 @@ "main": "vido.js", |
@@ -80,3 +80,3 @@ /** | ||
* http://polymer.github.io/PATENTS.txt | ||
*/function O(e){let t=P.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},P.set(e.type,t));let n=t.stringsArray.get(e.strings);if(void 0!==n)return n;const o=e.strings.join(l);return void 0===(n=t.keyString.get(o))&&(n=new p(e,e.getTemplateElement()),t.keyString.set(o,n)),t.stringsArray.set(e.strings,n),n}const P=new Map,$=new WeakMap,j=(e,t,n)=>{let o=$.get(t);void 0===o&&(i(t,t.firstChild),$.set(t,o=new A(Object.assign({templateFactory:O},n))),o.appendInto(t)),o.setValue(e),o.commit()}; | ||
*/function P(e){let t=O.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},O.set(e.type,t));let n=t.stringsArray.get(e.strings);if(void 0!==n)return n;const o=e.strings.join(l);return void 0===(n=t.keyString.get(o))&&(n=new p(e,e.getTemplateElement()),t.keyString.set(o,n)),t.stringsArray.set(e.strings,n),n}const O=new Map,$=new WeakMap,j=(e,t,n)=>{let o=$.get(t);void 0===o&&(i(t,t.firstChild),$.set(t,o=new A(Object.assign({templateFactory:P},n))),o.appendInto(t)),o.setValue(e),o.commit()}; | ||
/** | ||
@@ -148,3 +148,3 @@ * @license | ||
* http://polymer.github.io/PATENTS.txt | ||
*/function ue(e){return JSON.parse(JSON.stringify(e,de))}export default function(e,n){let o=0;const s={};let i,r,a=[],l=0;const c=Promise.resolve();function d(e){return t((function(t,n){return function(o){const s=o.committer.element;for(const o of t)if("function"==typeof o){const t=a.find(t=>t.instance===e&&t.componentAction.create===o&&t.element===s);if(t)t.props=n;else{void 0!==s.__vido__&&delete s.__vido__;const t={create:o,update(){},destroy(){}};a.push({instance:e,componentAction:t,element:s,props:n})}}}}))}const u={debug:!1,state:e,api:n,html:L,svg:W,directive:t,asyncAppend:F,asyncReplace:B,cache:J,classMap:z,guard:K,ifDefined:Q,repeat:oe,styleMap:ie,unsafeHTML:ae,until:ce,lastProps:{},actions(e,t){},onDestroy(){},onChange(e){},componentsFromDataArray(e,t,n,o){if(e.length<t.length){let s=t.length-e.length;for(;s;){const i=t[t.length-s];e.push(u.createComponent(o,n(i))),s--}}else if(e.length>t.length){let n=e.length-t.length;for(;n;){e[e.length-n].destroy(),n--}e.length=t.length}let s=0;for(const o of t)e[s].change(n(o)),s++;return e},createComponent(e,t){const n=e.name+":"+o++;let i;const r=[];let l=[];i=Object.assign(Object.assign({},u),{update:function(){u.updateTemplate(i)},onDestroy:function(e){r.push(e)},onChange:function(e){l.push(e)},instance:n,actions:d(n),lastProps:t});const c=function(e,t){return{instance:e,vidoInstance:t,destroy:()=>(t.debug&&(console.groupCollapsed(`destroying component ${e}`),console.log(ue({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),u.destroyComponent(e,t)),update:()=>(t.debug&&(console.groupCollapsed(`updating component ${e}`),console.log(ue({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),u.updateTemplate(t)),change(n){t.debug&&(console.groupCollapsed(`changing component ${e}`),console.log(ue({props:n,components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),void 0!==s[e]&&s[e].change(n,t)},html(n={}){if(void 0!==s[e])return s[e].update(n,t)}}}(n,i),p=e(i,t),h={instance:n,vidoInstance:i,lastProps:t,destroy(){i.debug&&(console.groupCollapsed(`component destroy method fired ${n}`),console.log(ue({props:t,components:Object.keys(s),destroyable:r})),console.trace(),console.groupEnd());for(const e of r)e();l.length=0,r.length=0},update:e=>(i.debug&&(console.groupCollapsed(`component update method fired ${n}`),console.log(ue({props:e,components:Object.keys(s),onChangeFunctions:l})),console.trace(),console.groupEnd()),p(e)),change(e){i.debug&&(console.groupCollapsed(`component change method fired ${n}`),console.log(ue({props:t,components:Object.keys(s),onChangeFunctions:l,changedProps:e})),console.trace(),console.groupEnd());for(const t of l)t(e);i.lastProps=e}};return s[n]=h,s[n].change(t),i.debug&&(console.groupCollapsed(`component created ${n}`),console.log(ue({props:t,components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),c},destroyComponent(e,t){t.debug&&(console.groupCollapsed(`destroying component ${e}...`),console.log(ue({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),a=a.filter(t=>(t.instance===e&&"function"==typeof t.componentAction.destroy&&t.componentAction.destroy(t.element,t.props),t.instance!==e)),void 0!==s[e]&&"function"==typeof s[e].destroy&&s[e].destroy(),delete s[e],t.debug&&(console.groupCollapsed(`component destroyed ${e}`),console.log(ue({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd())},updateTemplate(e){const t=++l,n=this;c.then((function(){t===l&&(n.render(),l=0,e.debug&&(console.groupCollapsed("templates updated"),console.trace(),console.groupEnd()))}))},createApp(e,t){r=t;const n=this.createComponent(e);return i=n.instance,this.render(),n},executeActions(){for(const e of a)if(void 0===e.element.__vido__){if("function"==typeof e.componentAction.create){const t=e.componentAction.create(e.element,e.props);u.debug&&(console.groupCollapsed(`create action executed ${e.instance}`),console.log(ue({components:Object.keys(s),action:e,actions:a})),console.trace(),console.groupEnd()),void 0!==t&&("function"==typeof t.update&&(e.componentAction.update=t.update),"function"==typeof t.destroy&&(e.componentAction.destroy=t.destroy))}}else"function"==typeof e.componentAction.update&&(e.componentAction.update(e.element,e.props),u.debug&&(console.groupCollapsed(`update action executed ${e.instance}`),console.log(ue({components:Object.keys(s),action:e,actions:a})),console.trace(),console.groupEnd()));for(const e of a)e.element.__vido__={instance:e.instance,props:e.props}},render(){j(s[i].update(),r),u.executeActions()}};return u}export{ue as mergeDeep}; | ||
*/function ue(e){return JSON.stringify(e,de,2)}export default function(e,n){let o=0;const s={};let i,r,a=[],l=0;const c=Promise.resolve();function d(e){return t((function(t,n){return function(o){const s=o.committer.element;for(const o of t)if("function"==typeof o){const t=a.find(t=>t.instance===e&&t.componentAction.create===o&&t.element===s);if(t)t.props=n;else{void 0!==s.__vido__&&delete s.__vido__;const t={create:o,update(){},destroy(){}};a.push({instance:e,componentAction:t,element:s,props:n})}}}}))}const u={debug:!1,state:e,api:n,html:L,svg:W,directive:t,asyncAppend:F,asyncReplace:B,cache:J,classMap:z,guard:K,ifDefined:Q,repeat:oe,styleMap:ie,unsafeHTML:ae,until:ce,lastProps:{},actions(e,t){},onDestroy(){},onChange(e){},componentsFromDataArray(e,t,n,o){if(e.length<t.length){let s=t.length-e.length;for(;s;){const i=t[t.length-s];e.push(u.createComponent(o,n(i))),s--}}else if(e.length>t.length){let n=e.length-t.length;for(;n;){e[e.length-n].destroy(),n--}e.length=t.length}let s=0;for(const o of t)e[s].change(n(o)),s++;return e},createComponent(e,t){const n=e.name+":"+o++;let i;const r=[];let l=[];i=Object.assign(Object.assign({},u),{update:function(){u.updateTemplate(i)},onDestroy:function(e){r.push(e)},onChange:function(e){l.push(e)},instance:n,actions:d(n),lastProps:t});const c=function(e,t){return{instance:e,vidoInstance:t,destroy:()=>(t.debug&&(console.groupCollapsed(`destroying component ${e}`),console.log(ue({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),u.destroyComponent(e,t)),update:()=>(t.debug&&(console.groupCollapsed(`updating component ${e}`),console.log(ue({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),u.updateTemplate(t)),change(n){t.debug&&(console.groupCollapsed(`changing component ${e}`),console.log(ue({props:n,components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),void 0!==s[e]&&s[e].change(n,t)},html(n={}){if(void 0!==s[e])return s[e].update(n,t)}}}(n,i),p=e(i,t),h={instance:n,vidoInstance:i,lastProps:t,destroy(){i.debug&&(console.groupCollapsed(`component destroy method fired ${n}`),console.log(ue({props:t,components:Object.keys(s),destroyable:r})),console.trace(),console.groupEnd());for(const e of r)e();l.length=0,r.length=0},update:e=>(i.debug&&(console.groupCollapsed(`component update method fired ${n}`),console.log(ue({props:e,components:Object.keys(s),onChangeFunctions:l})),console.trace(),console.groupEnd()),p(e)),change(e){i.debug&&(console.groupCollapsed(`component change method fired ${n}`),console.log(ue({props:t,components:Object.keys(s),onChangeFunctions:l,changedProps:e})),console.trace(),console.groupEnd());for(const t of l)t(e);i.lastProps=e}};return s[n]=h,s[n].change(t),i.debug&&(console.groupCollapsed(`component created ${n}`),console.log(ue({props:t,components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),c},destroyComponent(e,t){t.debug&&(console.groupCollapsed(`destroying component ${e}...`),console.log(ue({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),a=a.filter(t=>(t.instance===e&&"function"==typeof t.componentAction.destroy&&t.componentAction.destroy(t.element,t.props),t.instance!==e)),void 0!==s[e]&&"function"==typeof s[e].destroy&&s[e].destroy(),delete s[e],t.debug&&(console.groupCollapsed(`component destroyed ${e}`),console.log(ue({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd())},updateTemplate(e){const t=++l,n=this;c.then((function(){t===l&&(n.render(),l=0,e.debug&&(console.groupCollapsed("templates updated"),console.trace(),console.groupEnd()))}))},createApp(e,t){r=t;const n=this.createComponent(e);return i=n.instance,this.render(),n},executeActions(){for(const e of a)if(void 0===e.element.__vido__){if("function"==typeof e.componentAction.create){const t=e.componentAction.create(e.element,e.props);u.debug&&(console.groupCollapsed(`create action executed ${e.instance}`),console.log(ue({components:Object.keys(s),action:e,actions:a})),console.trace(),console.groupEnd()),void 0!==t&&("function"==typeof t.update&&(e.componentAction.update=t.update),"function"==typeof t.destroy&&(e.componentAction.destroy=t.destroy))}}else"function"==typeof e.componentAction.update&&(e.componentAction.update(e.element,e.props),u.debug&&(console.groupCollapsed(`update action executed ${e.instance}`),console.log(ue({components:Object.keys(s),action:e,actions:a})),console.trace(),console.groupEnd()));for(const e of a)e.element.__vido__={instance:e.instance,props:e.props}},render(){j(s[i].update(),r),u.executeActions()}};return u}export{ue as mergeDeep}; | ||
//# sourceMappingURL=vido.esm.min.js.map |
@@ -67,3 +67,3 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Vido={})}(this,(function(e){"use strict"; | ||
* http://polymer.github.io/PATENTS.txt | ||
*/const O=new class{handleAttributeExpressions(e,t,n,o){const s=t[0];if("."===s){return new C(e,t.slice(1),n).parts}return"@"===s?[new M(e,t.slice(1),o.eventContext)]:"?"===s?[new T(e,t.slice(1),n)]:new E(e,t,n).parts}handleTextExpression(e){return new A(e)}}; | ||
*/const P=new class{handleAttributeExpressions(e,t,n,o){const s=t[0];if("."===s){return new C(e,t.slice(1),n).parts}return"@"===s?[new M(e,t.slice(1),o.eventContext)]:"?"===s?[new T(e,t.slice(1),n)]:new E(e,t,n).parts}handleTextExpression(e){return new A(e)}}; | ||
/** | ||
@@ -81,3 +81,3 @@ * @license | ||
* http://polymer.github.io/PATENTS.txt | ||
*/function P(e){let t=j.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},j.set(e.type,t));let n=t.stringsArray.get(e.strings);if(void 0!==n)return n;const o=e.strings.join(c);return void 0===(n=t.keyString.get(o))&&(n=new h(e,e.getTemplateElement()),t.keyString.set(o,n)),t.stringsArray.set(e.strings,n),n}const j=new Map,$=new WeakMap,L=(e,t,n)=>{let o=$.get(t);void 0===o&&(r(t,t.firstChild),$.set(t,o=new A(Object.assign({templateFactory:P},n))),o.appendInto(t)),o.setValue(e),o.commit()}; | ||
*/function O(e){let t=j.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},j.set(e.type,t));let n=t.stringsArray.get(e.strings);if(void 0!==n)return n;const o=e.strings.join(c);return void 0===(n=t.keyString.get(o))&&(n=new h(e,e.getTemplateElement()),t.keyString.set(o,n)),t.stringsArray.set(e.strings,n),n}const j=new Map,$=new WeakMap,L=(e,t,n)=>{let o=$.get(t);void 0===o&&(r(t,t.firstChild),$.set(t,o=new A(Object.assign({templateFactory:O},n))),o.appendInto(t)),o.setValue(e),o.commit()}; | ||
/** | ||
@@ -109,3 +109,3 @@ * @license | ||
*/ | ||
(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");const W=(e,...t)=>new x(e,t,"html",O),H=(e,...t)=>new b(e,t,"svg",O); | ||
(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");const W=(e,...t)=>new x(e,t,"html",P),H=(e,...t)=>new b(e,t,"svg",P); | ||
/** | ||
@@ -150,3 +150,3 @@ * @license | ||
* http://polymer.github.io/PATENTS.txt | ||
*/function pe(e){return JSON.parse(JSON.stringify(e,ue))}e.default=function(e,t){let o=0;const s={};let i,r,a=[],l=0;const c=Promise.resolve();function d(e){return n((function(t,n){return function(o){const s=o.committer.element;for(const o of t)if("function"==typeof o){const t=a.find(t=>t.instance===e&&t.componentAction.create===o&&t.element===s);if(t)t.props=n;else{void 0!==s.__vido__&&delete s.__vido__;const t={create:o,update(){},destroy(){}};a.push({instance:e,componentAction:t,element:s,props:n})}}}}))}const u={debug:!1,state:e,api:t,html:W,svg:H,directive:n,asyncAppend:R,asyncReplace:D,cache:q,classMap:G,guard:Q,ifDefined:U,repeat:se,styleMap:re,unsafeHTML:le,until:de,lastProps:{},actions(e,t){},onDestroy(){},onChange(e){},componentsFromDataArray(e,t,n,o){if(e.length<t.length){let s=t.length-e.length;for(;s;){const i=t[t.length-s];e.push(u.createComponent(o,n(i))),s--}}else if(e.length>t.length){let n=e.length-t.length;for(;n;){e[e.length-n].destroy(),n--}e.length=t.length}let s=0;for(const o of t)e[s].change(n(o)),s++;return e},createComponent(e,t){const n=e.name+":"+o++;let i;const r=[];let l=[];i=Object.assign(Object.assign({},u),{update:function(){u.updateTemplate(i)},onDestroy:function(e){r.push(e)},onChange:function(e){l.push(e)},instance:n,actions:d(n),lastProps:t});const c=function(e,t){return{instance:e,vidoInstance:t,destroy:()=>(t.debug&&(console.groupCollapsed(`destroying component ${e}`),console.log(pe({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),u.destroyComponent(e,t)),update:()=>(t.debug&&(console.groupCollapsed(`updating component ${e}`),console.log(pe({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),u.updateTemplate(t)),change(n){t.debug&&(console.groupCollapsed(`changing component ${e}`),console.log(pe({props:n,components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),void 0!==s[e]&&s[e].change(n,t)},html(n={}){if(void 0!==s[e])return s[e].update(n,t)}}}(n,i),p=e(i,t),h={instance:n,vidoInstance:i,lastProps:t,destroy(){i.debug&&(console.groupCollapsed(`component destroy method fired ${n}`),console.log(pe({props:t,components:Object.keys(s),destroyable:r})),console.trace(),console.groupEnd());for(const e of r)e();l.length=0,r.length=0},update:e=>(i.debug&&(console.groupCollapsed(`component update method fired ${n}`),console.log(pe({props:e,components:Object.keys(s),onChangeFunctions:l})),console.trace(),console.groupEnd()),p(e)),change(e){i.debug&&(console.groupCollapsed(`component change method fired ${n}`),console.log(pe({props:t,components:Object.keys(s),onChangeFunctions:l,changedProps:e})),console.trace(),console.groupEnd());for(const t of l)t(e);i.lastProps=e}};return s[n]=h,s[n].change(t),i.debug&&(console.groupCollapsed(`component created ${n}`),console.log(pe({props:t,components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),c},destroyComponent(e,t){t.debug&&(console.groupCollapsed(`destroying component ${e}...`),console.log(pe({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),a=a.filter(t=>(t.instance===e&&"function"==typeof t.componentAction.destroy&&t.componentAction.destroy(t.element,t.props),t.instance!==e)),void 0!==s[e]&&"function"==typeof s[e].destroy&&s[e].destroy(),delete s[e],t.debug&&(console.groupCollapsed(`component destroyed ${e}`),console.log(pe({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd())},updateTemplate(e){const t=++l,n=this;c.then((function(){t===l&&(n.render(),l=0,e.debug&&(console.groupCollapsed("templates updated"),console.trace(),console.groupEnd()))}))},createApp(e,t){r=t;const n=this.createComponent(e);return i=n.instance,this.render(),n},executeActions(){for(const e of a)if(void 0===e.element.__vido__){if("function"==typeof e.componentAction.create){const t=e.componentAction.create(e.element,e.props);u.debug&&(console.groupCollapsed(`create action executed ${e.instance}`),console.log(pe({components:Object.keys(s),action:e,actions:a})),console.trace(),console.groupEnd()),void 0!==t&&("function"==typeof t.update&&(e.componentAction.update=t.update),"function"==typeof t.destroy&&(e.componentAction.destroy=t.destroy))}}else"function"==typeof e.componentAction.update&&(e.componentAction.update(e.element,e.props),u.debug&&(console.groupCollapsed(`update action executed ${e.instance}`),console.log(pe({components:Object.keys(s),action:e,actions:a})),console.trace(),console.groupEnd()));for(const e of a)e.element.__vido__={instance:e.instance,props:e.props}},render(){L(s[i].update(),r),u.executeActions()}};return u},e.mergeDeep=pe,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
*/function pe(e){return JSON.stringify(e,ue,2)}e.default=function(e,t){let o=0;const s={};let i,r,a=[],l=0;const c=Promise.resolve();function d(e){return n((function(t,n){return function(o){const s=o.committer.element;for(const o of t)if("function"==typeof o){const t=a.find(t=>t.instance===e&&t.componentAction.create===o&&t.element===s);if(t)t.props=n;else{void 0!==s.__vido__&&delete s.__vido__;const t={create:o,update(){},destroy(){}};a.push({instance:e,componentAction:t,element:s,props:n})}}}}))}const u={debug:!1,state:e,api:t,html:W,svg:H,directive:n,asyncAppend:R,asyncReplace:D,cache:q,classMap:G,guard:Q,ifDefined:U,repeat:se,styleMap:re,unsafeHTML:le,until:de,lastProps:{},actions(e,t){},onDestroy(){},onChange(e){},componentsFromDataArray(e,t,n,o){if(e.length<t.length){let s=t.length-e.length;for(;s;){const i=t[t.length-s];e.push(u.createComponent(o,n(i))),s--}}else if(e.length>t.length){let n=e.length-t.length;for(;n;){e[e.length-n].destroy(),n--}e.length=t.length}let s=0;for(const o of t)e[s].change(n(o)),s++;return e},createComponent(e,t){const n=e.name+":"+o++;let i;const r=[];let l=[];i=Object.assign(Object.assign({},u),{update:function(){u.updateTemplate(i)},onDestroy:function(e){r.push(e)},onChange:function(e){l.push(e)},instance:n,actions:d(n),lastProps:t});const c=function(e,t){return{instance:e,vidoInstance:t,destroy:()=>(t.debug&&(console.groupCollapsed(`destroying component ${e}`),console.log(pe({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),u.destroyComponent(e,t)),update:()=>(t.debug&&(console.groupCollapsed(`updating component ${e}`),console.log(pe({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),u.updateTemplate(t)),change(n){t.debug&&(console.groupCollapsed(`changing component ${e}`),console.log(pe({props:n,components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),void 0!==s[e]&&s[e].change(n,t)},html(n={}){if(void 0!==s[e])return s[e].update(n,t)}}}(n,i),p=e(i,t),h={instance:n,vidoInstance:i,lastProps:t,destroy(){i.debug&&(console.groupCollapsed(`component destroy method fired ${n}`),console.log(pe({props:t,components:Object.keys(s),destroyable:r})),console.trace(),console.groupEnd());for(const e of r)e();l.length=0,r.length=0},update:e=>(i.debug&&(console.groupCollapsed(`component update method fired ${n}`),console.log(pe({props:e,components:Object.keys(s),onChangeFunctions:l})),console.trace(),console.groupEnd()),p(e)),change(e){i.debug&&(console.groupCollapsed(`component change method fired ${n}`),console.log(pe({props:t,components:Object.keys(s),onChangeFunctions:l,changedProps:e})),console.trace(),console.groupEnd());for(const t of l)t(e);i.lastProps=e}};return s[n]=h,s[n].change(t),i.debug&&(console.groupCollapsed(`component created ${n}`),console.log(pe({props:t,components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),c},destroyComponent(e,t){t.debug&&(console.groupCollapsed(`destroying component ${e}...`),console.log(pe({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd()),a=a.filter(t=>(t.instance===e&&"function"==typeof t.componentAction.destroy&&t.componentAction.destroy(t.element,t.props),t.instance!==e)),void 0!==s[e]&&"function"==typeof s[e].destroy&&s[e].destroy(),delete s[e],t.debug&&(console.groupCollapsed(`component destroyed ${e}`),console.log(pe({components:Object.keys(s),actions:a})),console.trace(),console.groupEnd())},updateTemplate(e){const t=++l,n=this;c.then((function(){t===l&&(n.render(),l=0,e.debug&&(console.groupCollapsed("templates updated"),console.trace(),console.groupEnd()))}))},createApp(e,t){r=t;const n=this.createComponent(e);return i=n.instance,this.render(),n},executeActions(){for(const e of a)if(void 0===e.element.__vido__){if("function"==typeof e.componentAction.create){const t=e.componentAction.create(e.element,e.props);u.debug&&(console.groupCollapsed(`create action executed ${e.instance}`),console.log(pe({components:Object.keys(s),action:e,actions:a})),console.trace(),console.groupEnd()),void 0!==t&&("function"==typeof t.update&&(e.componentAction.update=t.update),"function"==typeof t.destroy&&(e.componentAction.destroy=t.destroy))}}else"function"==typeof e.componentAction.update&&(e.componentAction.update(e.element,e.props),u.debug&&(console.groupCollapsed(`update action executed ${e.instance}`),console.log(pe({components:Object.keys(s),action:e,actions:a})),console.trace(),console.groupEnd()));for(const e of a)e.element.__vido__={instance:e.instance,props:e.props}},render(){L(s[i].update(),r),u.executeActions()}};return u},e.mergeDeep=pe,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=vido.min.js.map |
@@ -27,3 +27,3 @@ import { render, html, directive, svg } from 'lit-html'; | ||
export function mergeDeep(source) { | ||
return JSON.parse(JSON.stringify(source, getCircularReplacer)); | ||
return JSON.stringify(source, getCircularReplacer, 2); | ||
} | ||
@@ -30,0 +30,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
909820