Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@govflanders/vl-widget-core

Package Overview
Dependencies
Maintainers
17
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govflanders/vl-widget-core - npm Package Compare versions

Comparing version 1.1.26 to 1.1.27

2

dist/index.js

@@ -1,1 +0,1 @@

"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var vlWidgetUtility=require("@govflanders/vl-widget-utility"),vlWidgetPlugin=require("@govflanders/vl-widget-plugin"),vlWidgetDependencyInjection=require("@govflanders/vl-widget-dependency-injection"),vlWidgetEvent=require("@govflanders/vl-widget-event"),vlWidgetModule=require("@govflanders/vl-widget-module"),vlWidgetRenderEngine=require("@govflanders/vl-widget-render-engine"),Vue=_interopDefault(require("vue")),_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},defaults=function(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(e,r);i&&i.configurable&&void 0===t[r]&&Object.defineProperty(t,r,i)}return t},_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},__extends=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();!function(t){t.StyleSheet="stylesheet",t.Script="script"}(exports.AssetType||(exports.AssetType={}));var AssetBase=function(){function t(t,e){this.options=t,this.document=e}return t.prototype.getDocument=function(){return this.document},t.prototype.getMountElement=function(){return this.getDocument().head},t.prototype.getOptions=function(){return this.options},t.prototype.isMounted=function(){return!!this.element&&!!this.element.parentNode},t.prototype.mount=function(){var t=this;return Promise.resolve().then(function(){return t.isMounted()?t:t.createElement().then(function(e){return new Promise(function(n,o){t.element=e;var r=function o(){e.removeEventListener("load",o),e.removeEventListener("error",i),n(t)},i=function n(){e.removeEventListener("load",r),e.removeEventListener("error",n);var i=new vlWidgetUtility.Error.RuntimeError("Asset "+t.getType()+" failed to resolve");t.unmount().then(function(){return o(i)}).catch(function(){return o(i)})};e.addEventListener("load",r),e.removeEventListener("error",i),vlWidgetUtility.Browser.DOM.mount(e,t.getMountElement()),t.getOptions().reference||r()})})})},t.prototype.unmount=function(){var t=this;return Promise.resolve().then(function(){return t.isMounted()?Promise.resolve().then(function(){var e=t.element;return e&&vlWidgetUtility.Browser.DOM.unmount(e),t.element=void 0,t}):t})},t.prototype.remount=function(){var t=this;return this.unmount().then(function(){return t.mount()})},t}(),DefaultScriptAsset=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.getMountElement=function(){return this.getDocument().body},e.prototype.createElement=function(){var t=this;return Promise.resolve().then(function(){var e=t.getOptions(),n=t.getDocument(),o=n.createElement("script");return(e.attributes||[]).forEach(function(t){o.setAttribute(t.name,""+t.value)}),o.setAttribute("type",e.type||"text/javascript"),e.reference?o.setAttribute("src",e.value):vlWidgetUtility.Browser.DOM.mount(n.createTextNode(e.value),o),o})},e.prototype.getType=function(){return exports.AssetType.Script},e}(AssetBase),DefaultStyleSheetAsset=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.createElement=function(){var t=this;return Promise.resolve().then(function(){var e=t.getOptions(),n=t.getDocument(),o=n.createElement(e.reference?"link":"style");return(e.attributes||[]).forEach(function(t){o.setAttribute(t.name,""+t.value)}),o.setAttribute("type",e.type||"text/css"),e.reference?(o.setAttribute("rel","stylesheet"),o.setAttribute("href",e.value)):vlWidgetUtility.Browser.DOM.mount(n.createTextNode(e.value),o),o})},e.prototype.getType=function(){return exports.AssetType.StyleSheet},e}(AssetBase),__extends$1=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),AssetManagerBase=function(){function t(){this.mounted=!1,this.assets=[]}return t.prototype.has=function(t){return this.assets.findIndex(function(e){return e===t})>-1},t.prototype.add=function(t){for(var e=0,n=Array.isArray(t)?t:[t];e<n.length;e++){var o=n[e];this.has(o)||(this.assets.push(o),this.isMounted()&&o.mount())}return this},t.prototype.remove=function(t){for(var e=Array.isArray(t)?t:[t],n=function(t){var e=o.assets.findIndex(function(e){return e===t});e>-1&&(o.assets=o.assets.slice(e,1),t.unmount())},o=this,r=0,i=e;r<i.length;r++){n(i[r])}return this},t.prototype.list=function(t){return t?this.assets.filter(t):this.assets.concat()},t.prototype.isMounted=function(){return this.mounted},t.prototype.mount=function(t){var e=this;return Promise.resolve().then(function(){return e.mounted=!0}).then(function(){var n=[];return e.list(t).forEach(function(t){n.push(t.mount())}),Promise.all(n)}).then(function(){return e})},t.prototype.unmount=function(t){var e=this;return Promise.resolve().then(function(){var n=[];return e.list(t).forEach(function(t){n.push(t.mount())}),Promise.all(n)}).then(function(){return e.mounted=!1}).then(function(){return e})},t.prototype.remount=function(t){var e=this;return Promise.resolve().then(function(){return e.mounted=!0}).then(function(){var n=[];return e.list(t).forEach(function(t){n.push(t.remount())}),Promise.all(n)}).then(function(){return e})},t}(),DefaultAssetManager=function(t){function e(e){var n=t.call(this)||this;return n.document=e,n}return __extends$1(e,t),e.prototype.getDocument=function(){return this.document},e.prototype.create=function(t,e){var n=this.getDocument();switch(t){case exports.AssetType.Script:return new DefaultScriptAsset(e,n);case exports.AssetType.StyleSheet:return new DefaultStyleSheetAsset(e,n);default:throw new vlWidgetUtility.Error.InvalidArgumentError('Asset type "'+t+'" is invalid')}},e}(AssetManagerBase),PlatformRuntimeConfigBase=function(){function t(){}return t.prototype.getBoolean=function(t,e){var n=this.get(t,e);switch(void 0===n?"undefined":_typeof(n)){case"boolean":return n;case"string":return"true"===n;default:return!!n}},t.prototype.getString=function(t,e){var n=this.get(t,e);switch(void 0===n?"undefined":_typeof(n)){case"string":return n;default:return""+n}},t.prototype.getInteger=function(t,e){var n=this.get(t,e);switch(void 0===n?"undefined":_typeof(n)){case"number":return n;default:return parseInt(n,10)}},t.prototype.getFloat=function(t,e){var n=this.get(t,e);switch(void 0===n?"undefined":_typeof(n)){case"number":return n;default:return parseFloat(n)}},t}(),__extends$2=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),WIDGET_FACTORY_SERVICE="widget.factory",DefaultWidgetDiscovery=function(t){function e(e){return t.call(this,e.getModuleManager(),e.getServiceContainer(),WIDGET_FACTORY_SERVICE)||this}return __extends$2(e,t),e}(vlWidgetPlugin.ModulePluginDiscovery),PLUGIN_EXTENSION_FACTORY_SERVICE="plugin.extension.factory",DefaultPluginExtensionDiscovery=function(t){function e(e){var n=e.getRuntime();return t.call(this,n.getModuleManager(),n.getServiceContainer(),PLUGIN_EXTENSION_FACTORY_SERVICE)||this}return __extends$2(e,t),e}(vlWidgetPlugin.ModulePluginDiscovery),__extends$3=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),DefaultWidgetManager=function(t){function e(e){return t.call(this,e,new DefaultWidgetDiscovery(e))||this}return __extends$3(e,t),e.prototype.createPluginInstance=function(e){return t.prototype.createPluginInstance.call(this,e).then(function(t){return t.getRuntime().emit(new vlWidgetPlugin.GenericPluginEvent("vl.widget.created",t)),t})},e.prototype.mount=function(t){return this.each(function(e){return!t||t(e)?e.mount():Promise.resolve(e)})},e.prototype.unmount=function(t){return this.each(function(e){return!t||t(e)?e.unmount():Promise.resolve(e)})},e.prototype.remount=function(t){return this.each(function(e){return!t||t(e)?e.remount():Promise.resolve(e)})},e}(vlWidgetPlugin.PluginManagerBase),DefaultPluginExtensionManager=function(t){function e(e){return t.call(this,e,new DefaultPluginExtensionDiscovery(e))||this}return __extends$3(e,t),e}(vlWidgetPlugin.PluginExtensionManagerBase),__extends$4=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),PluginExtensionBase=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$4(e,t),e.prototype.onReady=function(){var e=this;return t.prototype.onReady.call(this).then(function(){return e.addEventBroadcast(function(t){return e.getPluginHost().emit(t.prefix(e.getPluginTypeId()))})}).then(function(){return e.getRuntime().getWidget().on("beforeMount",function(){return e.invokeHook("beforeMount")}).on("beforeUnmount",function(){return e.invokeHook("beforeUnmount")}).on("mounted",function(){return e.invokeHook("mounted")}).on("unmounted",function(){return e.invokeHook("unmounted")}),e}).then(function(){return e.isMounted()&&e.invokeHook("beforeMount").then(function(){return e.invokeHook("mounted")}),e})},e.prototype.onBeforeMount=function(){return Promise.resolve(this)},e.prototype.onMounted=function(){return Promise.resolve(this)},e.prototype.onBeforeUnmount=function(){return Promise.resolve(this)},e.prototype.onUnmounted=function(){return Promise.resolve(this)},e.prototype.isMounted=function(){return this.getRuntime().getWidget().isMounted()},e.prototype.createRuntime=function(){return new PluginExtensionWidgetRuntime(this)},e.prototype.getRuntime=function(){return void 0===this.pluginRuntime&&(this.pluginRuntime=this.createRuntime()),this.pluginRuntime},e}(vlWidgetPlugin.PluginBase),UIPluginExtensionBase=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$4(e,t),e.prototype.getComponentRoot=function(){return void 0===this.componentRoot&&(this.componentRoot=this.createComponentRoot()),this.componentRoot},e.prototype.getComponentStore=function(){return void 0===this.componentStore&&(this.componentStore=this.createComponentStore()),this.componentStore},e.prototype.onReady=function(){var e=this;return t.prototype.onReady.call(this).then(function(){return e.attachComponentRoot()})},e}(PluginExtensionBase),ExtensiblePluginExtensionBase=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$4(e,t),e.prototype.createExtensionManager=function(){return new DefaultPluginExtensionManager(this)},e.prototype.onReady=function(){var e=this;return t.prototype.onReady.call(this).then(function(){return e.addEventBroadcast(function(t){return e.getPluginHost().emit(t.prefix(e.getPluginTypeId()))})}).then(function(){return e.getRuntime().getWidget().on("beforeMount",function(){return e.invokeHook("beforeMount")}).on("beforeUnmount",function(){return e.invokeHook("beforeUnmount")}).on("mounted",function(){return e.invokeHook("mounted")}).on("unmounted",function(){return e.invokeHook("unmounted")}),e}).then(function(){return e.isMounted()&&e.invokeHook("beforeMount").then(function(){return e.invokeHook("mounted")}),e})},e.prototype.onBeforeMount=function(){return Promise.resolve(this)},e.prototype.onMounted=function(){return Promise.resolve(this)},e.prototype.onBeforeUnmount=function(){return Promise.resolve(this)},e.prototype.onUnmounted=function(){return Promise.resolve(this)},e.prototype.isMounted=function(){return this.getRuntime().getWidget().isMounted()},e.prototype.createRuntime=function(){return new PluginExtensionWidgetRuntime(this)},e.prototype.getRuntime=function(){return void 0===this.pluginRuntime&&(this.pluginRuntime=this.createRuntime()),this.pluginRuntime},e}(vlWidgetPlugin.ExtensiblePluginBase),ExtensibleUIPluginExtensionBase=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$4(e,t),e.prototype.getComponentRoot=function(){return void 0===this.componentRoot&&(this.componentRoot=this.createComponentRoot()),this.componentRoot},e.prototype.getComponentStore=function(){return void 0===this.componentStore&&(this.componentStore=this.createComponentStore()),this.componentStore},e.prototype.onReady=function(){var e=this;return t.prototype.onReady.call(this).then(function(){return e.attachComponentRoot()})},e}(ExtensiblePluginExtensionBase),__extends$5=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),WidgetBase=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$5(e,t),e.prototype.onReady=function(){var e=this;return t.prototype.onReady.call(this).then(function(){return e.addEventBroadcast(function(t){return e.getPluginHost().emit(t.prefix("vl.widget."+e.getPluginTypeId()))})})},e.prototype.onBeforeMount=function(){return Promise.resolve(this)},e.prototype.onMounted=function(){return Promise.resolve(this)},e.prototype.onBeforeUnmount=function(){return Promise.resolve(this)},e.prototype.onUnmounted=function(){return Promise.resolve(this)},e.prototype.validatePluginContext=function(e){if(t.prototype.validatePluginContext.call(this,e),"string"!=typeof e.id)throw new vlWidgetPlugin.PluginError(this,'Context property "id" should be a string');if(e.extensions&&!Array.isArray(e.extensions))throw new vlWidgetPlugin.PluginError(this,'Context property "extensions" should be an array')},e.prototype.resolveExtensionContexts=function(t){var e=this;return Promise.resolve().then(function(){switch(t){case vlWidgetPlugin.PluginExtensionConstraint.Optional:return e.getPluginContext().extensions||[];default:return[]}})},e.prototype.createExtensionManager=function(){return new DefaultPluginExtensionManager(this)},e.prototype.getComponentRoot=function(){return void 0===this.componentRoot&&(this.componentRoot=this.createComponentRoot()),this.componentRoot},e.prototype.getComponentStore=function(){return void 0===this.componentStore&&(this.componentStore=this.createComponentStore()),this.componentStore},e.prototype.createAssetManager=function(){if(!vlWidgetUtility.Environment.isBrowser())throw new vlWidgetUtility.Error.RuntimeError("Asset manager requires a browser runtime");return new DefaultAssetManager(window.document)},e.prototype.getAssetManager=function(){return void 0===this.assetManager&&(this.assetManager=this.createAssetManager()),this.assetManager},e.prototype.getPluginId=function(){return this.getPluginContext().id},e.prototype.createRuntime=function(){return new DefaultWidgetRuntime(this)},e.prototype.getRuntime=function(){return void 0===this.widgetRuntime&&(this.widgetRuntime=this.createRuntime()),this.widgetRuntime},e.prototype.getElement=function(){var t=this.getComponentRoot(),e=t.$el||null;if(null===e&&(t.$mount(),e=t.$el||null),null===e)throw new vlWidgetPlugin.PluginError(this,"Cannot resolve widget element");return e},e.prototype.getCurrentMountElement=function(){return this.currentMountElement||null},e.prototype.getMountElement=function(){return this.mountElement||null},e.prototype.setMountElement=function(t){return t!==this.getMountElement()&&(this.mountElement=t||void 0),this},e.prototype.isMounted=function(){return null!==this.getCurrentMountElement()},e.prototype.mount=function(){var t=this;return Promise.resolve().then(function(){var e=t.getMountElement();return t.isMounted()||null===e?t:t.invokeHook("beforeMount").then(function(){return t.getAssetManager().mount()}).then(function(){var n=t.getElement();return t.currentMountElement=vlWidgetUtility.Browser.DOM.replaceWith(e,n),t.getComponentRoot().$forceUpdate(),t.invokeHook("mounted")})})},e.prototype.unmount=function(){var t=this;return Promise.resolve().then(function(){var e=t.getCurrentMountElement();return t.isMounted()&&null!==e?t.invokeHook("beforeUnmount").then(function(){return vlWidgetUtility.Browser.DOM.replaceWith(t.getElement(),e),t.currentMountElement=void 0,t.invokeHook("unmounted")}).then(function(){return t.getAssetManager().unmount().then(function(){return t})}):t})},e.prototype.remount=function(){var t=this;return this.unmount().then(function(){return t.mount()})},e}(vlWidgetPlugin.ExtensiblePluginBase),__extends$6=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),PLUGIN_CONTEXT_PROCESSOR_SERVICE="plugin.context.processor",DefaultPluginContextProcessorDiscovery=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$6(e,t),e}(vlWidgetPlugin.ModulePluginContextProcessorDiscovery),__extends$7=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),__awaiter=function(t,e,n,o){return new(n||(n=Promise))(function(r,i){function u(t){try{a(o.next(t))}catch(t){i(t)}}function s(t){try{a(o.throw(t))}catch(t){i(t)}}function a(t){t.done?r(t.value):new n(function(e){e(t.value)}).then(u,s)}a((o=o.apply(t,e||[])).next())})},__generator=function(t,e){var n,o,r,i,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,o=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(r=(r=u.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){u.label=i[1];break}if(6===i[0]&&u.label<r[1]){u.label=r[1],r=i;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(i);break}r[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},WidgetContextProcessorBase=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$7(e,t),e.prototype.onPostProcess=function(e,n){return __awaiter(this,void 0,void 0,function(){var o,r,i,u,s,a;return __generator(this,function(c){switch(c.label){case 0:return[4,t.prototype.onPostProcess.call(this,e,n)];case 1:if(o=c.sent(),!Array.isArray(o.extensions))return[3,6];r=[],i=0,u=o.extensions,c.label=2;case 2:return i<u.length?(s=u[i],[4,n.process(s)]):[3,5];case 3:a=c.sent(),r.push(a),c.label=4;case 4:return i++,[3,2];case 5:return o.extensions=r,[3,7];case 6:o.extensions=[],c.label=7;case 7:return[2,o]}})})},e}(vlWidgetPlugin.PluginContextProcessorBase),DefaultWidgetContextProcessor=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$7(e,t),e}(WidgetContextProcessorBase),PluginExtensionContextProcessorBase=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$7(e,t),e}(vlWidgetPlugin.PluginContextProcessorBase),DefaultPluginExtensionContextProcessor=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$7(e,t),e}(PluginExtensionContextProcessorBase),DefaultWidgetContextProcessorFactory=function(){function t(){}return t.prototype.createPluginContextProcessor=function(t){return Promise.resolve().then(function(){return new DefaultWidgetContextProcessor})},t}(),DefaultPluginExtensionContextProcessorFactory=function(){function t(){}return t.prototype.createPluginContextProcessor=function(t){return Promise.resolve().then(function(){return new DefaultPluginExtensionContextProcessor})},t}(),__extends$8=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),DefaultPluginContextPipeline=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$8(e,t),e}(vlWidgetPlugin.PluginContextPipelineBase),__extends$9=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();!function(t){t.Browser="browser",t.WebWorker="webworker",t.Server="server"}(exports.PlatformRuntimeEnvironment||(exports.PlatformRuntimeEnvironment={})),function(t){t.PluginContextProcessor="plugin.context.processor",t.PluginExtension="plugin.extension",t.Widget="widget"}(exports.PlatformRegistrationType||(exports.PlatformRegistrationType={}));var PlatformRuntimeBase=function(){function t(t){this.moduleLoader=t,this.widgetCaptureQueue=[],this.initialize()}return t.prototype.initialize=function(){var t=this;this.on("vl.widget.created",function(e){vlWidgetUtility.Utility.nextTick(function(){for(var n=e.getSender(),o=function(t){vlWidgetUtility.Utility.nextTick(function(){var e="function"==typeof t.filter?t.filter:null;(null===e||e(n))&&t.callback(n)})},r=0,i=t.widgetCaptureQueue;r<i.length;r++){o(i[r])}})})},t.prototype.createEventEmitter=function(){return new vlWidgetEvent.DefaultEventEmitter},t.prototype.getEventEmitter=function(){return void 0===this.eventEmitter&&(this.eventEmitter=this.createEventEmitter()),this.eventEmitter},t.prototype.emit=function(t){return this.getEventEmitter().emit(t)},t.prototype.on=function(t,e){return this.getEventEmitter().on(t,e),this},t.prototype.off=function(t,e){return this.getEventEmitter().off(t,e),this},t.prototype.once=function(t,e){return this.getEventEmitter().once(t,e),this},t.prototype.addEventListener=function(t,e){return this.getEventEmitter().addEventListener(t,e),this},t.prototype.removeEventListener=function(t,e){return this.getEventEmitter().removeEventListener(t,e),this},t.prototype.addEventBroadcast=function(t){return this.getEventEmitter().addEventBroadcast(t),this},t.prototype.removeEventBroadcast=function(t){return this.getEventEmitter().removeEventBroadcast(t),this},t.prototype.getEventBroadcast=function(){return this.getEventEmitter().getEventBroadcast()},t.prototype.createModuleManager=function(t){return new vlWidgetModule.DefaultModuleManager(t,this)},t.prototype.getModuleManager=function(){return void 0===this.moduleManager&&(this.moduleManager=this.createModuleManager(this.moduleLoader)),this.moduleManager},t.prototype.createServiceContainer=function(){return new vlWidgetDependencyInjection.DefaultServiceContainer},t.prototype.getServiceContainer=function(){return void 0===this.serviceContainer&&(this.serviceContainer=this.createServiceContainer()),this.serviceContainer},t.prototype.createWidgetManager=function(){return new DefaultWidgetManager(this)},t.prototype.getWidgetManager=function(){return void 0===this.widgetManager&&(this.widgetManager=this.createWidgetManager()),this.widgetManager},t.prototype.bootstrap=function(t){return this.getWidgetManager().createPluginInstance(t)},t.prototype.capture=function(t,e){var n=this;vlWidgetUtility.Utility.nextTick(function(){n.widgetCaptureQueue.push({callback:t,filter:e});for(var o=0,r=n.getWidgetManager().list(e);o<r.length;o++){var i=r[o];t(i)}})},t.prototype.getEnvironment=function(){return vlWidgetUtility.Environment.isServer()?exports.PlatformRuntimeEnvironment.Server:vlWidgetUtility.Environment.isWebWorker()?exports.PlatformRuntimeEnvironment.WebWorker:exports.PlatformRuntimeEnvironment.Browser},t.prototype.register=function(t){var e=this;return Promise.resolve().then(function(){var n=e.getServiceContainer();switch(t.type){case exports.PlatformRegistrationType.PluginContextProcessor:if("string"!=typeof t.pluginTypeId||"function"!=typeof t.pluginContextProcessorFactory)throw new vlWidgetUtility.Error.InvalidArgumentError("Plugin context processor registration should contain the following properties: pluginTypeId and pluginContextProcessorFactory");n.bind(PLUGIN_CONTEXT_PROCESSOR_SERVICE).to(t.pluginContextProcessorFactory).inSingletonScope().whenTargetNamed(t.pluginTypeId);break;case exports.PlatformRegistrationType.PluginExtension:if("string"!=typeof t.pluginTypeId||"function"!=typeof t.pluginFactory)throw new vlWidgetUtility.Error.InvalidArgumentError("Plugin extension registration should contain the following properties: pluginTypeId and pluginFactory");n.bind(PLUGIN_EXTENSION_FACTORY_SERVICE).to(t.pluginFactory).inSingletonScope().whenTargetNamed(t.pluginTypeId);break;case exports.PlatformRegistrationType.Widget:if("string"!=typeof t.pluginTypeId||"function"!=typeof t.pluginFactory)throw new vlWidgetUtility.Error.InvalidArgumentError("Widget registration should contain the following properties: pluginTypeId and pluginFactory");n.bind(WIDGET_FACTORY_SERVICE).to(t.pluginFactory).inSingletonScope().whenTargetNamed(t.pluginTypeId);break;default:throw new vlWidgetUtility.Error.InvalidArgumentError('Registration type "'+t.type+'" is invalid')}})},t}(),WidgetRuntimeBase=function(){function t(){}return t.prototype.createServiceContainer=function(){var t=new vlWidgetDependencyInjection.DefaultServiceContainer;return t.bind("platform.runtime").toConstantValue(this),t.bind("plugin").toConstantValue(this.getPlugin()),t.bind("widget").toConstantValue(this.getWidget()),t},t.prototype.getServiceContainer=function(){return void 0===this.serviceContainer&&(this.serviceContainer=this.createServiceContainer(),this.linkServiceContainer(this.serviceContainer)),this.serviceContainer},t.prototype.getVersion=function(){return this.getWidget().getPluginHost().getVersion()},t.prototype.emit=function(t){return this.getWidget().getPluginHost().emit(t)},t.prototype.on=function(t,e){return this.getWidget().getPluginHost().on(t,e),this},t.prototype.off=function(t,e){return this.getWidget().getPluginHost().off(t,e),this},t.prototype.once=function(t,e){return this.getWidget().getPluginHost().once(t,e),this},t.prototype.addEventListener=function(t,e){return this.getWidget().getPluginHost().addEventListener(t,e),this},t.prototype.removeEventListener=function(t,e){return this.getWidget().getPluginHost().removeEventListener(t,e),this},t.prototype.addEventBroadcast=function(t){return this.getWidget().getPluginHost().addEventBroadcast(t),this},t.prototype.removeEventBroadcast=function(t){return this.getWidget().getPluginHost().removeEventBroadcast(t),this},t.prototype.getEventBroadcast=function(){return this.getWidget().getPluginHost().getEventBroadcast()},t.prototype.getModuleManager=function(){return this.getWidget().getPluginHost().getModuleManager()},t.prototype.getWidgetManager=function(){return this.getWidget().getPluginHost().getWidgetManager()},t.prototype.capture=function(t,e){return this.getWidget().getPluginHost().capture(t,e)},t.prototype.getEnvironment=function(){return this.getWidget().getPluginHost().getEnvironment()},t.prototype.getConfiguration=function(){return this.getWidget().getPluginHost().getConfiguration()},t.prototype.bootstrap=function(t){return this.getWidget().getPluginHost().bootstrap(t)},t.prototype.register=function(t){return this.getWidget().getPluginHost().register(t)},t}(),DefaultWidgetRuntime=function(t){function e(e){var n=t.call(this)||this;return n.widget=e,n}return __extends$9(e,t),e.prototype.getPlugin=function(){return this.getWidget()},e.prototype.linkServiceContainer=function(t){t.parent=this.getWidget().getPluginHost().getServiceContainer()},e.prototype.getWidget=function(){return this.widget},e}(WidgetRuntimeBase),PluginExtensionWidgetRuntime=function(t){function e(e){var n=t.call(this)||this;return n.pluginExtension=e,n}return __extends$9(e,t),e.prototype.linkServiceContainer=function(t){t.parent=this.getWidget().getRuntime().getServiceContainer()},e.prototype.getPlugin=function(){return this.pluginExtension},e.prototype.getWidget=function(){return this.getPlugin().getPluginHost().getRuntime().getWidget()},e}(WidgetRuntimeBase),__extends$10=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),PluginStore=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$10(e,t),e.prototype.$widget=function(){var t=this.$plugin().getRuntime();if("function"!=typeof t.getWidget)throw new vlWidgetUtility.Error.RuntimeError("Plugin does not have a valid widget runtime");return t.getWidget()},e}(vlWidgetRenderEngine.PluginStore);Vue.use({install:function(t){t.mixin({beforeCreate:function(){var t=this;void 0===this.$widget&&(this.$widget=function(){var e=t.$plugin().getRuntime();if("function"!=typeof e.getWidget)throw new vlWidgetUtility.Error.RuntimeError("Plugin does not have a valid widget runtime");return e.getWidget()})}})}}),exports.AssetManagerBase=AssetManagerBase,exports.DefaultAssetManager=DefaultAssetManager,exports.AssetBase=AssetBase,exports.DefaultScriptAsset=DefaultScriptAsset,exports.DefaultStyleSheetAsset=DefaultStyleSheetAsset,exports.PlatformRuntimeConfigBase=PlatformRuntimeConfigBase,exports.PlatformRuntimeBase=PlatformRuntimeBase,exports.WidgetRuntimeBase=WidgetRuntimeBase,exports.DefaultWidgetRuntime=DefaultWidgetRuntime,exports.PluginExtensionWidgetRuntime=PluginExtensionWidgetRuntime,exports.WIDGET_FACTORY_SERVICE=WIDGET_FACTORY_SERVICE,exports.DefaultWidgetDiscovery=DefaultWidgetDiscovery,exports.PLUGIN_EXTENSION_FACTORY_SERVICE=PLUGIN_EXTENSION_FACTORY_SERVICE,exports.DefaultPluginExtensionDiscovery=DefaultPluginExtensionDiscovery,exports.PluginExtensionBase=PluginExtensionBase,exports.UIPluginExtensionBase=UIPluginExtensionBase,exports.ExtensiblePluginExtensionBase=ExtensiblePluginExtensionBase,exports.ExtensibleUIPluginExtensionBase=ExtensibleUIPluginExtensionBase,exports.DefaultWidgetManager=DefaultWidgetManager,exports.DefaultPluginExtensionManager=DefaultPluginExtensionManager,exports.WidgetBase=WidgetBase,exports.PLUGIN_CONTEXT_PROCESSOR_SERVICE=PLUGIN_CONTEXT_PROCESSOR_SERVICE,exports.DefaultPluginContextProcessorDiscovery=DefaultPluginContextProcessorDiscovery,exports.DefaultWidgetContextProcessorFactory=DefaultWidgetContextProcessorFactory,exports.DefaultPluginExtensionContextProcessorFactory=DefaultPluginExtensionContextProcessorFactory,exports.DefaultPluginContextPipeline=DefaultPluginContextPipeline,exports.WidgetContextProcessorBase=WidgetContextProcessorBase,exports.DefaultWidgetContextProcessor=DefaultWidgetContextProcessor,exports.PluginExtensionContextProcessorBase=PluginExtensionContextProcessorBase,exports.DefaultPluginExtensionContextProcessor=DefaultPluginExtensionContextProcessor,exports.PluginStore=PluginStore;
"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var vlWidgetUtility=require("@govflanders/vl-widget-utility"),vlWidgetPlugin=require("@govflanders/vl-widget-plugin"),vlWidgetDependencyInjection=require("@govflanders/vl-widget-dependency-injection"),vlWidgetEvent=require("@govflanders/vl-widget-event"),vlWidgetModule=require("@govflanders/vl-widget-module"),vlWidgetRenderEngine=require("@govflanders/vl-widget-render-engine"),Vue=_interopDefault(require("vue")),_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},defaults=function(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(e,r);i&&i.configurable&&void 0===t[r]&&Object.defineProperty(t,r,i)}return t},_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},__extends=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();!function(t){t.StyleSheet="stylesheet",t.Script="script"}(exports.AssetType||(exports.AssetType={}));var AssetBase=function(){function t(t,e){this.options=t,this.document=e}return t.prototype.getDocument=function(){return this.document},t.prototype.getMountElement=function(){return this.getDocument().head},t.prototype.getOptions=function(){return this.options},t.prototype.isMounted=function(){return!!this.element&&!!this.element.parentNode},t.prototype.mount=function(){var t=this;return Promise.resolve().then(function(){return t.isMounted()?t:t.createElement().then(function(e){return new Promise(function(n,o){t.element=e;var r=function o(){e.removeEventListener("load",o),e.removeEventListener("error",i),n(t)},i=function n(){e.removeEventListener("load",r),e.removeEventListener("error",n);var i=new vlWidgetUtility.Error.RuntimeError("Asset "+t.getType()+" failed to resolve");t.unmount().then(function(){return o(i)}).catch(function(){return o(i)})};e.addEventListener("load",r),e.removeEventListener("error",i),vlWidgetUtility.Browser.DOM.mount(e,t.getMountElement()),t.getOptions().reference||r()})})})},t.prototype.unmount=function(){var t=this;return Promise.resolve().then(function(){return t.isMounted()?Promise.resolve().then(function(){var e=t.element;return e&&vlWidgetUtility.Browser.DOM.unmount(e),t.element=void 0,t}):t})},t.prototype.remount=function(){var t=this;return this.unmount().then(function(){return t.mount()})},t}(),DefaultScriptAsset=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.getMountElement=function(){return this.getDocument().body},e.prototype.createElement=function(){var t=this;return Promise.resolve().then(function(){var e=t.getOptions(),n=t.getDocument(),o=n.createElement("script");return(e.attributes||[]).forEach(function(t){o.setAttribute(t.name,""+t.value)}),o.setAttribute("type",e.type||"text/javascript"),e.reference?o.setAttribute("src",e.value):vlWidgetUtility.Browser.DOM.mount(n.createTextNode(e.value),o),o})},e.prototype.getType=function(){return exports.AssetType.Script},e}(AssetBase),DefaultStyleSheetAsset=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.createElement=function(){var t=this;return Promise.resolve().then(function(){var e=t.getOptions(),n=t.getDocument(),o=n.createElement(e.reference?"link":"style");return(e.attributes||[]).forEach(function(t){o.setAttribute(t.name,""+t.value)}),o.setAttribute("type",e.type||"text/css"),e.reference?(o.setAttribute("rel","stylesheet"),o.setAttribute("href",e.value)):vlWidgetUtility.Browser.DOM.mount(n.createTextNode(e.value),o),o})},e.prototype.getType=function(){return exports.AssetType.StyleSheet},e}(AssetBase),__extends$1=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),AssetManagerBase=function(){function t(){this.mounted=!1,this.assets=[]}return t.prototype.has=function(t){return this.assets.findIndex(function(e){return e===t})>-1},t.prototype.add=function(t){for(var e=0,n=Array.isArray(t)?t:[t];e<n.length;e++){var o=n[e];this.has(o)||(this.assets.push(o),this.isMounted()&&o.mount())}return this},t.prototype.remove=function(t){for(var e=Array.isArray(t)?t:[t],n=function(t){var e=o.assets.findIndex(function(e){return e===t});e>-1&&(o.assets=o.assets.slice(e,1),t.unmount())},o=this,r=0,i=e;r<i.length;r++){n(i[r])}return this},t.prototype.list=function(t){return t?this.assets.filter(t):this.assets.concat()},t.prototype.isMounted=function(){return this.mounted},t.prototype.mount=function(t){var e=this;return Promise.resolve().then(function(){return e.mounted=!0}).then(function(){var n=[];return e.list(t).forEach(function(t){n.push(t.mount())}),Promise.all(n)}).then(function(){return e})},t.prototype.unmount=function(t){var e=this;return Promise.resolve().then(function(){var n=[];return e.list(t).forEach(function(t){n.push(t.mount())}),Promise.all(n)}).then(function(){return e.mounted=!1}).then(function(){return e})},t.prototype.remount=function(t){var e=this;return Promise.resolve().then(function(){return e.mounted=!0}).then(function(){var n=[];return e.list(t).forEach(function(t){n.push(t.remount())}),Promise.all(n)}).then(function(){return e})},t}(),DefaultAssetManager=function(t){function e(e){var n=t.call(this)||this;return n.document=e,n}return __extends$1(e,t),e.prototype.getDocument=function(){return this.document},e.prototype.create=function(t,e){var n=this.getDocument();switch(t){case exports.AssetType.Script:return new DefaultScriptAsset(e,n);case exports.AssetType.StyleSheet:return new DefaultStyleSheetAsset(e,n);default:throw new vlWidgetUtility.Error.InvalidArgumentError('Asset type "'+t+'" is invalid')}},e}(AssetManagerBase),PlatformRuntimeConfigBase=function(){function t(){}return t.prototype.getBoolean=function(t,e){var n=this.get(t,e);switch(void 0===n?"undefined":_typeof(n)){case"boolean":return n;case"string":return"true"===n;default:return!!n}},t.prototype.getString=function(t,e){var n=this.get(t,e);switch(void 0===n?"undefined":_typeof(n)){case"string":return n;default:return""+n}},t.prototype.getInteger=function(t,e){var n=this.get(t,e);switch(void 0===n?"undefined":_typeof(n)){case"number":return n;default:return parseInt(n,10)}},t.prototype.getFloat=function(t,e){var n=this.get(t,e);switch(void 0===n?"undefined":_typeof(n)){case"number":return n;default:return parseFloat(n)}},t}(),__extends$2=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),WIDGET_FACTORY_SERVICE="widget.factory",DefaultWidgetDiscovery=function(t){function e(e){return t.call(this,e.getModuleManager(),e.getServiceContainer(),WIDGET_FACTORY_SERVICE)||this}return __extends$2(e,t),e}(vlWidgetPlugin.ModulePluginDiscovery),PLUGIN_EXTENSION_FACTORY_SERVICE="plugin.extension.factory",DefaultPluginExtensionDiscovery=function(t){function e(e){var n=e.getRuntime();return t.call(this,n.getModuleManager(),n.getServiceContainer(),PLUGIN_EXTENSION_FACTORY_SERVICE)||this}return __extends$2(e,t),e}(vlWidgetPlugin.ModulePluginDiscovery),__extends$3=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),DefaultWidgetManager=function(t){function e(e){return t.call(this,e,new DefaultWidgetDiscovery(e))||this}return __extends$3(e,t),e.prototype.createPluginInstance=function(e){return t.prototype.createPluginInstance.call(this,e).then(function(t){return t.getRuntime().emit(new vlWidgetPlugin.GenericPluginEvent("vl.widget.created",t)),t})},e.prototype.mount=function(t){return this.each(function(e){return!t||t(e)?e.mount():Promise.resolve(e)})},e.prototype.unmount=function(t){return this.each(function(e){return!t||t(e)?e.unmount():Promise.resolve(e)})},e.prototype.remount=function(t){return this.each(function(e){return!t||t(e)?e.remount():Promise.resolve(e)})},e}(vlWidgetPlugin.PluginManagerBase),DefaultPluginExtensionManager=function(t){function e(e){return t.call(this,e,new DefaultPluginExtensionDiscovery(e))||this}return __extends$3(e,t),e}(vlWidgetPlugin.PluginExtensionManagerBase),__extends$4=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),PluginExtensionBase=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$4(e,t),e.prototype.onReady=function(){var e=this;return t.prototype.onReady.call(this).then(function(){return e.addEventBroadcast(function(t){return e.getPluginHost().emit(t.prefix(e.getPluginTypeId()))})}).then(function(){return e.getRuntime().getWidget().on("beforeMount",function(){return e.invokeHook("beforeMount")}).on("beforeUnmount",function(){return e.invokeHook("beforeUnmount")}).on("mounted",function(){return e.invokeHook("mounted")}).on("unmounted",function(){return e.invokeHook("unmounted")}),e}).then(function(){return e.isMounted()&&e.invokeHook("beforeMount").then(function(){return e.invokeHook("mounted")}),e})},e.prototype.onBeforeMount=function(){return Promise.resolve(this)},e.prototype.onMounted=function(){return Promise.resolve(this)},e.prototype.onBeforeUnmount=function(){return Promise.resolve(this)},e.prototype.onUnmounted=function(){return Promise.resolve(this)},e.prototype.isMounted=function(){return this.getRuntime().getWidget().isMounted()},e.prototype.createRuntime=function(){return new PluginExtensionWidgetRuntime(this)},e.prototype.getRuntime=function(){return void 0===this.pluginRuntime&&(this.pluginRuntime=this.createRuntime()),this.pluginRuntime},e}(vlWidgetPlugin.PluginBase),UIPluginExtensionBase=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$4(e,t),e.prototype.getComponentRoot=function(){return void 0===this.componentRoot&&(this.componentRoot=this.createComponentRoot()),this.componentRoot},e.prototype.getComponentStore=function(){return void 0===this.componentStore&&(this.componentStore=this.createComponentStore()),this.componentStore},e.prototype.onReady=function(){var e=this;return t.prototype.onReady.call(this).then(function(){return e.attachComponentRoot()})},e}(PluginExtensionBase),ExtensiblePluginExtensionBase=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$4(e,t),e.prototype.createExtensionManager=function(){return new DefaultPluginExtensionManager(this)},e.prototype.onReady=function(){var e=this;return t.prototype.onReady.call(this).then(function(){return e.addEventBroadcast(function(t){return e.getPluginHost().emit(t.prefix(e.getPluginTypeId()))})}).then(function(){return e.getRuntime().getWidget().on("beforeMount",function(){return e.invokeHook("beforeMount")}).on("beforeUnmount",function(){return e.invokeHook("beforeUnmount")}).on("mounted",function(){return e.invokeHook("mounted")}).on("unmounted",function(){return e.invokeHook("unmounted")}),e}).then(function(){return e.isMounted()&&e.invokeHook("beforeMount").then(function(){return e.invokeHook("mounted")}),e})},e.prototype.onBeforeMount=function(){return Promise.resolve(this)},e.prototype.onMounted=function(){return Promise.resolve(this)},e.prototype.onBeforeUnmount=function(){return Promise.resolve(this)},e.prototype.onUnmounted=function(){return Promise.resolve(this)},e.prototype.isMounted=function(){return this.getRuntime().getWidget().isMounted()},e.prototype.createRuntime=function(){return new PluginExtensionWidgetRuntime(this)},e.prototype.getRuntime=function(){return void 0===this.pluginRuntime&&(this.pluginRuntime=this.createRuntime()),this.pluginRuntime},e}(vlWidgetPlugin.ExtensiblePluginBase),ExtensibleUIPluginExtensionBase=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$4(e,t),e.prototype.getComponentRoot=function(){return void 0===this.componentRoot&&(this.componentRoot=this.createComponentRoot()),this.componentRoot},e.prototype.getComponentStore=function(){return void 0===this.componentStore&&(this.componentStore=this.createComponentStore()),this.componentStore},e.prototype.onReady=function(){var e=this;return t.prototype.onReady.call(this).then(function(){return e.attachComponentRoot()})},e}(ExtensiblePluginExtensionBase),__extends$5=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),WidgetBase=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$5(e,t),e.prototype.onReady=function(){var e=this;return t.prototype.onReady.call(this).then(function(){return e.addEventBroadcast(function(t){return e.getPluginHost().emit(t.prefix("vl.widget."+e.getPluginTypeId()))})})},e.prototype.onBeforeMount=function(){return Promise.resolve(this)},e.prototype.onMounted=function(){return Promise.resolve(this)},e.prototype.onBeforeUnmount=function(){return Promise.resolve(this)},e.prototype.onUnmounted=function(){return Promise.resolve(this)},e.prototype.validatePluginContext=function(e){if(t.prototype.validatePluginContext.call(this,e),"string"!=typeof e.id)throw new vlWidgetPlugin.PluginError(this,'Context property "id" should be a string');if(e.extensions&&!Array.isArray(e.extensions))throw new vlWidgetPlugin.PluginError(this,'Context property "extensions" should be an array')},e.prototype.resolveExtensionContexts=function(t){var e=this;return Promise.resolve().then(function(){switch(t){case vlWidgetPlugin.PluginExtensionConstraint.Optional:return e.getPluginContext().extensions||[];default:return[]}})},e.prototype.createExtensionManager=function(){return new DefaultPluginExtensionManager(this)},e.prototype.getComponentRoot=function(){return void 0===this.componentRoot&&(this.componentRoot=this.createComponentRoot()),this.componentRoot},e.prototype.getComponentStore=function(){return void 0===this.componentStore&&(this.componentStore=this.createComponentStore()),this.componentStore},e.prototype.createAssetManager=function(){if(!vlWidgetUtility.Environment.isBrowser())throw new vlWidgetUtility.Error.RuntimeError("Asset manager requires a browser runtime");return new DefaultAssetManager(window.document)},e.prototype.getAssetManager=function(){return void 0===this.assetManager&&(this.assetManager=this.createAssetManager()),this.assetManager},e.prototype.getPluginId=function(){return this.getPluginContext().id},e.prototype.createRuntime=function(){return new DefaultWidgetRuntime(this)},e.prototype.getRuntime=function(){return void 0===this.widgetRuntime&&(this.widgetRuntime=this.createRuntime()),this.widgetRuntime},e.prototype.getElement=function(){var t=this.getComponentRoot(),e=t.$el||null;if(null===e&&(t.$mount(),e=t.$el||null),null===e)throw new vlWidgetPlugin.PluginError(this,"Cannot resolve widget element");return e},e.prototype.getCurrentMountElement=function(){return this.currentMountElement||null},e.prototype.getMountElement=function(){return this.mountElement||null},e.prototype.setMountElement=function(t){return t!==this.getMountElement()&&(this.mountElement=t||void 0),this},e.prototype.isMounted=function(){return null!==this.getCurrentMountElement()},e.prototype.mount=function(){var t=this;return Promise.resolve().then(function(){var e=t.getMountElement();return t.isMounted()||null===e?t:t.invokeHook("beforeMount").then(function(){return t.getAssetManager().mount()}).then(function(){var n=t.getElement();return t.currentMountElement=vlWidgetUtility.Browser.DOM.replaceWith(e,n),t.getComponentRoot().$forceUpdate(),t.invokeHook("mounted")})})},e.prototype.unmount=function(){var t=this;return Promise.resolve().then(function(){var e=t.getCurrentMountElement();return t.isMounted()&&null!==e?t.invokeHook("beforeUnmount").then(function(){return vlWidgetUtility.Browser.DOM.replaceWith(t.getElement(),e),t.currentMountElement=void 0,t.invokeHook("unmounted")}).then(function(){return t.getAssetManager().unmount().then(function(){return t})}):t})},e.prototype.remount=function(){var t=this;return this.unmount().then(function(){return t.mount()})},e}(vlWidgetPlugin.ExtensiblePluginBase),__extends$6=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),PLUGIN_CONTEXT_PROCESSOR_SERVICE="plugin.context.processor",DefaultPluginContextProcessorDiscovery=function(t){function e(e,n){return t.call(this,e,n,PLUGIN_CONTEXT_PROCESSOR_SERVICE)||this}return __extends$6(e,t),e}(vlWidgetPlugin.ModulePluginContextProcessorDiscovery),__extends$7=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),__awaiter=function(t,e,n,o){return new(n||(n=Promise))(function(r,i){function u(t){try{a(o.next(t))}catch(t){i(t)}}function s(t){try{a(o.throw(t))}catch(t){i(t)}}function a(t){t.done?r(t.value):new n(function(e){e(t.value)}).then(u,s)}a((o=o.apply(t,e||[])).next())})},__generator=function(t,e){var n,o,r,i,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,o=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(r=(r=u.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){u.label=i[1];break}if(6===i[0]&&u.label<r[1]){u.label=r[1],r=i;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(i);break}r[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},WidgetContextProcessorBase=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$7(e,t),e.prototype.onPostProcess=function(e,n){return __awaiter(this,void 0,void 0,function(){var o,r,i,u,s,a;return __generator(this,function(c){switch(c.label){case 0:return[4,t.prototype.onPostProcess.call(this,e,n)];case 1:if(o=c.sent(),!Array.isArray(o.extensions))return[3,6];r=[],i=0,u=o.extensions,c.label=2;case 2:return i<u.length?(s=u[i],[4,n.process(s)]):[3,5];case 3:a=c.sent(),r.push(a),c.label=4;case 4:return i++,[3,2];case 5:return o.extensions=r,[3,7];case 6:o.extensions=[],c.label=7;case 7:return[2,o]}})})},e}(vlWidgetPlugin.PluginContextProcessorBase),DefaultWidgetContextProcessor=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$7(e,t),e}(WidgetContextProcessorBase),PluginExtensionContextProcessorBase=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$7(e,t),e}(vlWidgetPlugin.PluginContextProcessorBase),DefaultPluginExtensionContextProcessor=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$7(e,t),e}(PluginExtensionContextProcessorBase),DefaultWidgetContextProcessorFactory=function(){function t(){}return t.prototype.createPluginContextProcessor=function(t){return Promise.resolve().then(function(){return new DefaultWidgetContextProcessor})},t}(),DefaultPluginExtensionContextProcessorFactory=function(){function t(){}return t.prototype.createPluginContextProcessor=function(t){return Promise.resolve().then(function(){return new DefaultPluginExtensionContextProcessor})},t}(),__extends$8=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),DefaultPluginContextPipeline=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$8(e,t),e}(vlWidgetPlugin.PluginContextPipelineBase),__extends$9=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();!function(t){t.Browser="browser",t.WebWorker="webworker",t.Server="server"}(exports.PlatformRuntimeEnvironment||(exports.PlatformRuntimeEnvironment={})),function(t){t.PluginContextProcessor="plugin.context.processor",t.PluginExtension="plugin.extension",t.Widget="widget"}(exports.PlatformRegistrationType||(exports.PlatformRegistrationType={}));var PlatformRuntimeBase=function(){function t(t){this.moduleLoader=t,this.widgetCaptureQueue=[],this.initialize()}return t.prototype.initialize=function(){var t=this;this.on("vl.widget.created",function(e){vlWidgetUtility.Utility.nextTick(function(){for(var n=e.getSender(),o=function(t){vlWidgetUtility.Utility.nextTick(function(){var e="function"==typeof t.filter?t.filter:null;(null===e||e(n))&&t.callback(n)})},r=0,i=t.widgetCaptureQueue;r<i.length;r++){o(i[r])}})})},t.prototype.createEventEmitter=function(){return new vlWidgetEvent.DefaultEventEmitter},t.prototype.getEventEmitter=function(){return void 0===this.eventEmitter&&(this.eventEmitter=this.createEventEmitter()),this.eventEmitter},t.prototype.emit=function(t){return this.getEventEmitter().emit(t)},t.prototype.on=function(t,e){return this.getEventEmitter().on(t,e),this},t.prototype.off=function(t,e){return this.getEventEmitter().off(t,e),this},t.prototype.once=function(t,e){return this.getEventEmitter().once(t,e),this},t.prototype.addEventListener=function(t,e){return this.getEventEmitter().addEventListener(t,e),this},t.prototype.removeEventListener=function(t,e){return this.getEventEmitter().removeEventListener(t,e),this},t.prototype.addEventBroadcast=function(t){return this.getEventEmitter().addEventBroadcast(t),this},t.prototype.removeEventBroadcast=function(t){return this.getEventEmitter().removeEventBroadcast(t),this},t.prototype.getEventBroadcast=function(){return this.getEventEmitter().getEventBroadcast()},t.prototype.createModuleManager=function(t){return new vlWidgetModule.DefaultModuleManager(t,this)},t.prototype.getModuleManager=function(){return void 0===this.moduleManager&&(this.moduleManager=this.createModuleManager(this.moduleLoader)),this.moduleManager},t.prototype.createServiceContainer=function(){return new vlWidgetDependencyInjection.DefaultServiceContainer},t.prototype.getServiceContainer=function(){return void 0===this.serviceContainer&&(this.serviceContainer=this.createServiceContainer()),this.serviceContainer},t.prototype.createWidgetManager=function(){return new DefaultWidgetManager(this)},t.prototype.getWidgetManager=function(){return void 0===this.widgetManager&&(this.widgetManager=this.createWidgetManager()),this.widgetManager},t.prototype.bootstrap=function(t){return this.getWidgetManager().createPluginInstance(t)},t.prototype.capture=function(t,e){var n=this;vlWidgetUtility.Utility.nextTick(function(){n.widgetCaptureQueue.push({callback:t,filter:e});for(var o=0,r=n.getWidgetManager().list(e);o<r.length;o++){var i=r[o];t(i)}})},t.prototype.getEnvironment=function(){return vlWidgetUtility.Environment.isServer()?exports.PlatformRuntimeEnvironment.Server:vlWidgetUtility.Environment.isWebWorker()?exports.PlatformRuntimeEnvironment.WebWorker:exports.PlatformRuntimeEnvironment.Browser},t.prototype.register=function(t){var e=this;return Promise.resolve().then(function(){var n=e.getServiceContainer();switch(t.type){case exports.PlatformRegistrationType.PluginContextProcessor:if("string"!=typeof t.pluginTypeId||"function"!=typeof t.pluginContextProcessorFactory)throw new vlWidgetUtility.Error.InvalidArgumentError("Plugin context processor registration should contain the following properties: pluginTypeId and pluginContextProcessorFactory");n.bind(PLUGIN_CONTEXT_PROCESSOR_SERVICE).to(t.pluginContextProcessorFactory).inSingletonScope().whenTargetNamed(t.pluginTypeId);break;case exports.PlatformRegistrationType.PluginExtension:if("string"!=typeof t.pluginTypeId||"function"!=typeof t.pluginFactory)throw new vlWidgetUtility.Error.InvalidArgumentError("Plugin extension registration should contain the following properties: pluginTypeId and pluginFactory");n.bind(PLUGIN_EXTENSION_FACTORY_SERVICE).to(t.pluginFactory).inSingletonScope().whenTargetNamed(t.pluginTypeId);break;case exports.PlatformRegistrationType.Widget:if("string"!=typeof t.pluginTypeId||"function"!=typeof t.pluginFactory)throw new vlWidgetUtility.Error.InvalidArgumentError("Widget registration should contain the following properties: pluginTypeId and pluginFactory");n.bind(WIDGET_FACTORY_SERVICE).to(t.pluginFactory).inSingletonScope().whenTargetNamed(t.pluginTypeId);break;default:throw new vlWidgetUtility.Error.InvalidArgumentError('Registration type "'+t.type+'" is invalid')}})},t}(),WidgetRuntimeBase=function(){function t(){}return t.prototype.createServiceContainer=function(){var t=new vlWidgetDependencyInjection.DefaultServiceContainer;return t.bind("platform.runtime").toConstantValue(this),t.bind("plugin").toConstantValue(this.getPlugin()),t.bind("widget").toConstantValue(this.getWidget()),t},t.prototype.getServiceContainer=function(){return void 0===this.serviceContainer&&(this.serviceContainer=this.createServiceContainer(),this.linkServiceContainer(this.serviceContainer)),this.serviceContainer},t.prototype.getVersion=function(){return this.getWidget().getPluginHost().getVersion()},t.prototype.emit=function(t){return this.getWidget().getPluginHost().emit(t)},t.prototype.on=function(t,e){return this.getWidget().getPluginHost().on(t,e),this},t.prototype.off=function(t,e){return this.getWidget().getPluginHost().off(t,e),this},t.prototype.once=function(t,e){return this.getWidget().getPluginHost().once(t,e),this},t.prototype.addEventListener=function(t,e){return this.getWidget().getPluginHost().addEventListener(t,e),this},t.prototype.removeEventListener=function(t,e){return this.getWidget().getPluginHost().removeEventListener(t,e),this},t.prototype.addEventBroadcast=function(t){return this.getWidget().getPluginHost().addEventBroadcast(t),this},t.prototype.removeEventBroadcast=function(t){return this.getWidget().getPluginHost().removeEventBroadcast(t),this},t.prototype.getEventBroadcast=function(){return this.getWidget().getPluginHost().getEventBroadcast()},t.prototype.getModuleManager=function(){return this.getWidget().getPluginHost().getModuleManager()},t.prototype.getWidgetManager=function(){return this.getWidget().getPluginHost().getWidgetManager()},t.prototype.capture=function(t,e){return this.getWidget().getPluginHost().capture(t,e)},t.prototype.getEnvironment=function(){return this.getWidget().getPluginHost().getEnvironment()},t.prototype.getConfiguration=function(){return this.getWidget().getPluginHost().getConfiguration()},t.prototype.bootstrap=function(t){return this.getWidget().getPluginHost().bootstrap(t)},t.prototype.register=function(t){return this.getWidget().getPluginHost().register(t)},t}(),DefaultWidgetRuntime=function(t){function e(e){var n=t.call(this)||this;return n.widget=e,n}return __extends$9(e,t),e.prototype.getPlugin=function(){return this.getWidget()},e.prototype.linkServiceContainer=function(t){t.parent=this.getWidget().getPluginHost().getServiceContainer()},e.prototype.getWidget=function(){return this.widget},e}(WidgetRuntimeBase),PluginExtensionWidgetRuntime=function(t){function e(e){var n=t.call(this)||this;return n.pluginExtension=e,n}return __extends$9(e,t),e.prototype.linkServiceContainer=function(t){t.parent=this.getWidget().getRuntime().getServiceContainer()},e.prototype.getPlugin=function(){return this.pluginExtension},e.prototype.getWidget=function(){return this.getPlugin().getPluginHost().getRuntime().getWidget()},e}(WidgetRuntimeBase),__extends$10=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_extends({},[])instanceof Array&&function(t,e){defaults(t,e)}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),PluginStore=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$10(e,t),e.prototype.$widget=function(){var t=this.$plugin().getRuntime();if("function"!=typeof t.getWidget)throw new vlWidgetUtility.Error.RuntimeError("Plugin does not have a valid widget runtime");return t.getWidget()},e}(vlWidgetRenderEngine.PluginStore);Vue.use({install:function(t){t.mixin({beforeCreate:function(){var t=this;void 0===this.$widget&&(this.$widget=function(){var e=t.$plugin().getRuntime();if("function"!=typeof e.getWidget)throw new vlWidgetUtility.Error.RuntimeError("Plugin does not have a valid widget runtime");return e.getWidget()})}})}}),exports.AssetManagerBase=AssetManagerBase,exports.DefaultAssetManager=DefaultAssetManager,exports.AssetBase=AssetBase,exports.DefaultScriptAsset=DefaultScriptAsset,exports.DefaultStyleSheetAsset=DefaultStyleSheetAsset,exports.PlatformRuntimeConfigBase=PlatformRuntimeConfigBase,exports.PlatformRuntimeBase=PlatformRuntimeBase,exports.WidgetRuntimeBase=WidgetRuntimeBase,exports.DefaultWidgetRuntime=DefaultWidgetRuntime,exports.PluginExtensionWidgetRuntime=PluginExtensionWidgetRuntime,exports.WIDGET_FACTORY_SERVICE=WIDGET_FACTORY_SERVICE,exports.DefaultWidgetDiscovery=DefaultWidgetDiscovery,exports.PLUGIN_EXTENSION_FACTORY_SERVICE=PLUGIN_EXTENSION_FACTORY_SERVICE,exports.DefaultPluginExtensionDiscovery=DefaultPluginExtensionDiscovery,exports.PluginExtensionBase=PluginExtensionBase,exports.UIPluginExtensionBase=UIPluginExtensionBase,exports.ExtensiblePluginExtensionBase=ExtensiblePluginExtensionBase,exports.ExtensibleUIPluginExtensionBase=ExtensibleUIPluginExtensionBase,exports.DefaultWidgetManager=DefaultWidgetManager,exports.DefaultPluginExtensionManager=DefaultPluginExtensionManager,exports.WidgetBase=WidgetBase,exports.PLUGIN_CONTEXT_PROCESSOR_SERVICE=PLUGIN_CONTEXT_PROCESSOR_SERVICE,exports.DefaultPluginContextProcessorDiscovery=DefaultPluginContextProcessorDiscovery,exports.DefaultWidgetContextProcessorFactory=DefaultWidgetContextProcessorFactory,exports.DefaultPluginExtensionContextProcessorFactory=DefaultPluginExtensionContextProcessorFactory,exports.DefaultPluginContextPipeline=DefaultPluginContextPipeline,exports.WidgetContextProcessorBase=WidgetContextProcessorBase,exports.DefaultWidgetContextProcessor=DefaultWidgetContextProcessor,exports.PluginExtensionContextProcessorBase=PluginExtensionContextProcessorBase,exports.DefaultPluginExtensionContextProcessor=DefaultPluginExtensionContextProcessor,exports.PluginStore=PluginStore;
{
"name": "@govflanders/vl-widget-core",
"version": "1.1.26",
"version": "1.1.27",
"license": "MIT",

@@ -27,8 +27,8 @@ "contributors": [

"dependencies": {
"@govflanders/vl-widget-dependency-injection": "^1.1.26",
"@govflanders/vl-widget-event": "^1.1.26",
"@govflanders/vl-widget-module": "^1.1.26",
"@govflanders/vl-widget-plugin": "^1.1.26",
"@govflanders/vl-widget-render-engine": "^1.1.26",
"@govflanders/vl-widget-utility": "^1.1.26"
"@govflanders/vl-widget-dependency-injection": "^1.1.27",
"@govflanders/vl-widget-event": "^1.1.27",
"@govflanders/vl-widget-module": "^1.1.27",
"@govflanders/vl-widget-plugin": "^1.1.27",
"@govflanders/vl-widget-render-engine": "^1.1.27",
"@govflanders/vl-widget-utility": "^1.1.27"
},

@@ -35,0 +35,0 @@ "devDependencies": {

import { ModulePluginContextProcessorDiscovery } from '@govflanders/vl-widget-plugin';
import { ModuleManager } from '@govflanders/vl-widget-module';
import { ServiceContainer } from '@govflanders/vl-widget-dependency-injection';
/**

@@ -12,2 +14,11 @@ * Constant which holds the plugin context processor service identifier.

export declare class DefaultPluginContextProcessorDiscovery extends ModulePluginContextProcessorDiscovery {
/**
* Create DefaultPluginContextProcessorDiscovery object.
*
* @param {ModuleManager} moduleManager
* The module manager.
* @param {ServiceContainer} container
* A service container.
*/
constructor(moduleManager: ModuleManager, container: ServiceContainer);
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc