vue-flexmonster
Advanced tools
Comparing version 1.0.0-beta to 1.0.0-beta2
/*! | ||
* vue-flexmonster v1.0.0-beta | ||
* vue-flexmonster v1.0.0-beta2 | ||
* (c) Flexmonster <help@flexmonster.com> | ||
@@ -11,6 +11,2 @@ * Released under the ISC License. | ||
var Flexmonster = _interopDefault(require('flexmonster')); | ||
var __vue_normalize__ = _interopDefault(require('C:WorkgitPIVOT_2projectsDemos | ||
pmue-flexmonster | ||
ode_modules ollup-plugin-vue untime | ||
ormalize.js')); | ||
@@ -74,2 +70,80 @@ // | ||
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { | ||
if (typeof shadowMode !== 'boolean') { | ||
createInjectorSSR = createInjector; | ||
createInjector = shadowMode; | ||
shadowMode = false; | ||
} | ||
// Vue.extend constructor export interop. | ||
const options = typeof script === 'function' ? script.options : script; | ||
// render functions | ||
if (template && template.render) { | ||
options.render = template.render; | ||
options.staticRenderFns = template.staticRenderFns; | ||
options._compiled = true; | ||
// functional template | ||
if (isFunctionalTemplate) { | ||
options.functional = true; | ||
} | ||
} | ||
// scopedId | ||
if (scopeId) { | ||
options._scopeId = scopeId; | ||
} | ||
let hook; | ||
if (moduleIdentifier) { | ||
// server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__; | ||
} | ||
// inject component styles | ||
if (style) { | ||
style.call(this, createInjectorSSR(context)); | ||
} | ||
// register component module identifier for async chunk inference | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier); | ||
} | ||
}; | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook; | ||
} | ||
else if (style) { | ||
hook = shadowMode | ||
? function (context) { | ||
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot)); | ||
} | ||
: function (context) { | ||
style.call(this, createInjector(context)); | ||
}; | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
// register for functional component in vue file | ||
const originalRender = options.render; | ||
options.render = function renderWithStyleInjection(h, context) { | ||
hook.call(context); | ||
return originalRender(h, context); | ||
}; | ||
} | ||
else { | ||
// inject component registration as beforeCreate hook | ||
const existing = options.beforeCreate; | ||
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; | ||
} | ||
} | ||
return script; | ||
} | ||
const isOldIE = typeof navigator !== 'undefined' && | ||
/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()); | ||
/* script */ | ||
@@ -95,3 +169,3 @@ var __vue_script__ = script; | ||
var __vue_scope_id__ = "data-v-0bdac373"; | ||
var __vue_scope_id__ = "data-v-2f3f9ec7"; | ||
/* module identifier */ | ||
@@ -109,3 +183,3 @@ | ||
var Pivot = __vue_normalize__({ | ||
var Pivot = normalizeComponent({ | ||
render: __vue_render__, | ||
@@ -112,0 +186,0 @@ staticRenderFns: __vue_staticRenderFns__ |
{ | ||
"name": "vue-flexmonster", | ||
"version": "1.0.0-beta", | ||
"version": "1.0.0-beta2", | ||
"description": "Flexmonster Pivot Table & Charts with VueJS", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
# vue-flexmonster | ||
Flexmonster Pivot Table & Charts Integration with VueJS |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
7028
171