1
0
mirror of synced 2024-11-22 05:16:05 +03:00

Updates vue formulate with updated build

This commit is contained in:
Justin Schroeder 2019-11-01 14:03:48 -04:00
parent 0eff0aadb5
commit dbb41471e5
6 changed files with 340 additions and 285 deletions

202
dist/formulate.esm.js vendored
View File

@ -411,91 +411,81 @@ var script = {
} }
}; };
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
/* server only */ if (typeof shadowMode !== 'boolean') {
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { createInjectorSSR = createInjector;
if (typeof shadowMode !== 'boolean') { createInjector = shadowMode;
createInjectorSSR = createInjector; shadowMode = false;
createInjector = shadowMode; }
shadowMode = false; // Vue.extend constructor export interop.
} // Vue.extend constructor export interop. var options = typeof script === 'function' ? script.options : script;
// render functions
if (template && template.render) {
var options = typeof script === 'function' ? script.options : script; // render functions options.render = template.render;
options.staticRenderFns = template.staticRenderFns;
if (template && template.render) { options._compiled = true;
options.render = template.render; // functional template
options.staticRenderFns = template.staticRenderFns; if (isFunctionalTemplate) {
options._compiled = true; // functional template options.functional = true;
}
if (isFunctionalTemplate) { }
options.functional = true; // scopedId
} if (scopeId) {
} // scopedId options._scopeId = scopeId;
}
var hook;
if (scopeId) { if (moduleIdentifier) {
options._scopeId = scopeId; // server build
} hook = function (context) {
// 2.3 injection
var hook; context =
context || // cached call
if (moduleIdentifier) { (this.$vnode && this.$vnode.ssrContext) || // stateful
// server build (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
hook = function hook(context) { // 2.2 with runInNewContext: true
// 2.3 injection if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = context || // cached call context = __VUE_SSR_CONTEXT__;
this.$vnode && this.$vnode.ssrContext || // stateful }
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional // inject component styles
// 2.2 with runInNewContext: true if (style) {
style.call(this, createInjectorSSR(context));
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { }
context = __VUE_SSR_CONTEXT__; // register component module identifier for async chunk inference
} // inject component styles if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
if (style) { };
style.call(this, createInjectorSSR(context)); // used by ssr in case component is cached and beforeCreate
} // register component module identifier for async chunk inference // never gets called
options._ssrRegister = hook;
}
if (context && context._registeredComponents) { else if (style) {
context._registeredComponents.add(moduleIdentifier); hook = shadowMode
} ? function (context) {
}; // used by ssr in case component is cached and beforeCreate style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
// never gets called }
: function (context) {
style.call(this, createInjector(context));
options._ssrRegister = hook; };
} else if (style) { }
hook = shadowMode ? function () { if (hook) {
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot)); if (options.functional) {
} : function (context) { // register for functional component in vue file
style.call(this, createInjector(context)); var originalRender = options.render;
}; options.render = function renderWithStyleInjection(h, context) {
} hook.call(context);
return originalRender(h, context);
if (hook) { };
if (options.functional) { }
// register for functional component in vue file else {
var originalRender = options.render; // inject component registration as beforeCreate hook
var existing = options.beforeCreate;
options.render = function renderWithStyleInjection(h, context) { options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
hook.call(context); }
return originalRender(h, context); }
}; return script;
} else {
// inject component registration as beforeCreate hook
var existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
return script;
} }
var normalizeComponent_1 = normalizeComponent;
/* script */ /* script */
var __vue_script__ = script; var __vue_script__ = script;
@ -589,15 +579,19 @@ __vue_render__._withStripped = true;
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInput = normalizeComponent_1( var FormulateInput = normalizeComponent(
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
__vue_inject_styles__, __vue_inject_styles__,
__vue_script__, __vue_script__,
__vue_scope_id__, __vue_scope_id__,
__vue_is_functional_template__, __vue_is_functional_template__,
__vue_module_identifier__, __vue_module_identifier__,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -683,8 +677,8 @@ var script$1 = {
// In the case that the form is carrying an initial value and the // In the case that the form is carrying an initial value and the
// element is not, set it directly. // element is not, set it directly.
component.context.model = this.formulateValue[field]; component.context.model = this.formulateValue[field];
} else if (component.$options.propsData.hasOwnProperty('formulateValue')) { } else if (component.$options.propsData.hasOwnProperty('formulateValue') && !shallowEqualObjects(component.internalModelProxy, this.formulateValue[field])) {
this.setFieldValue(field, component.context.model); this.setFieldValue(field, component.internalModelProxy);
} }
}, },
formSubmitted: function formSubmitted () { formSubmitted: function formSubmitted () {
@ -731,15 +725,19 @@ __vue_render__$1._withStripped = true;
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateForm = normalizeComponent_1( var FormulateForm = normalizeComponent(
{ render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
__vue_inject_styles__$1, __vue_inject_styles__$1,
__vue_script__$1, __vue_script__$1,
__vue_scope_id__$1, __vue_scope_id__$1,
__vue_is_functional_template__$1, __vue_is_functional_template__$1,
__vue_module_identifier__$1, __vue_module_identifier__$1,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -847,15 +845,19 @@ __vue_render__$2._withStripped = true;
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputGroup = normalizeComponent_1( var FormulateInputGroup = normalizeComponent(
{ render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 }, { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },
__vue_inject_styles__$2, __vue_inject_styles__$2,
__vue_script__$2, __vue_script__$2,
__vue_scope_id__$2, __vue_scope_id__$2,
__vue_is_functional_template__$2, __vue_is_functional_template__$2,
__vue_module_identifier__$2, __vue_module_identifier__$2,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -1041,15 +1043,19 @@ __vue_render__$3._withStripped = true;
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputBox = normalizeComponent_1( var FormulateInputBox = normalizeComponent(
{ render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 }, { render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 },
__vue_inject_styles__$3, __vue_inject_styles__$3,
__vue_script__$3, __vue_script__$3,
__vue_scope_id__$3, __vue_scope_id__$3,
__vue_is_functional_template__$3, __vue_is_functional_template__$3,
__vue_module_identifier__$3, __vue_module_identifier__$3,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -1196,15 +1202,19 @@ __vue_render__$4._withStripped = true;
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputText = normalizeComponent_1( var FormulateInputText = normalizeComponent(
{ render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 }, { render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 },
__vue_inject_styles__$4, __vue_inject_styles__$4,
__vue_script__$4, __vue_script__$4,
__vue_scope_id__$4, __vue_scope_id__$4,
__vue_is_functional_template__$4, __vue_is_functional_template__$4,
__vue_module_identifier__$4, __vue_module_identifier__$4,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -1353,15 +1363,19 @@ __vue_render__$5._withStripped = true;
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputSelect = normalizeComponent_1( var FormulateInputSelect = normalizeComponent(
{ render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 }, { render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 },
__vue_inject_styles__$5, __vue_inject_styles__$5,
__vue_script__$5, __vue_script__$5,
__vue_scope_id__$5, __vue_scope_id__$5,
__vue_is_functional_template__$5, __vue_is_functional_template__$5,
__vue_module_identifier__$5, __vue_module_identifier__$5,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -1432,15 +1446,19 @@ __vue_render__$6._withStripped = true;
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputTextArea = normalizeComponent_1( var FormulateInputTextArea = normalizeComponent(
{ render: __vue_render__$6, staticRenderFns: __vue_staticRenderFns__$6 }, { render: __vue_render__$6, staticRenderFns: __vue_staticRenderFns__$6 },
__vue_inject_styles__$6, __vue_inject_styles__$6,
__vue_script__$6, __vue_script__$6,
__vue_scope_id__$6, __vue_scope_id__$6,
__vue_is_functional_template__$6, __vue_is_functional_template__$6,
__vue_module_identifier__$6, __vue_module_identifier__$6,
false,
undefined,
undefined, undefined,
undefined undefined
); );

202
dist/formulate.min.js vendored
View File

@ -414,91 +414,81 @@ var Formulate = (function (exports, isPlainObject, nanoid) {
} }
}; };
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
/* server only */ if (typeof shadowMode !== 'boolean') {
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { createInjectorSSR = createInjector;
if (typeof shadowMode !== 'boolean') { createInjector = shadowMode;
createInjectorSSR = createInjector; shadowMode = false;
createInjector = shadowMode; }
shadowMode = false; // Vue.extend constructor export interop.
} // Vue.extend constructor export interop. var options = typeof script === 'function' ? script.options : script;
// render functions
if (template && template.render) {
var options = typeof script === 'function' ? script.options : script; // render functions options.render = template.render;
options.staticRenderFns = template.staticRenderFns;
if (template && template.render) { options._compiled = true;
options.render = template.render; // functional template
options.staticRenderFns = template.staticRenderFns; if (isFunctionalTemplate) {
options._compiled = true; // functional template options.functional = true;
}
if (isFunctionalTemplate) { }
options.functional = true; // scopedId
} if (scopeId) {
} // scopedId options._scopeId = scopeId;
}
var hook;
if (scopeId) { if (moduleIdentifier) {
options._scopeId = scopeId; // server build
} hook = function (context) {
// 2.3 injection
var hook; context =
context || // cached call
if (moduleIdentifier) { (this.$vnode && this.$vnode.ssrContext) || // stateful
// server build (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
hook = function hook(context) { // 2.2 with runInNewContext: true
// 2.3 injection if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = context || // cached call context = __VUE_SSR_CONTEXT__;
this.$vnode && this.$vnode.ssrContext || // stateful }
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional // inject component styles
// 2.2 with runInNewContext: true if (style) {
style.call(this, createInjectorSSR(context));
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { }
context = __VUE_SSR_CONTEXT__; // register component module identifier for async chunk inference
} // inject component styles if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
if (style) { };
style.call(this, createInjectorSSR(context)); // used by ssr in case component is cached and beforeCreate
} // register component module identifier for async chunk inference // never gets called
options._ssrRegister = hook;
}
if (context && context._registeredComponents) { else if (style) {
context._registeredComponents.add(moduleIdentifier); hook = shadowMode
} ? function (context) {
}; // used by ssr in case component is cached and beforeCreate style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
// never gets called }
: function (context) {
style.call(this, createInjector(context));
options._ssrRegister = hook; };
} else if (style) { }
hook = shadowMode ? function () { if (hook) {
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot)); if (options.functional) {
} : function (context) { // register for functional component in vue file
style.call(this, createInjector(context)); var originalRender = options.render;
}; options.render = function renderWithStyleInjection(h, context) {
} hook.call(context);
return originalRender(h, context);
if (hook) { };
if (options.functional) { }
// register for functional component in vue file else {
var originalRender = options.render; // inject component registration as beforeCreate hook
var existing = options.beforeCreate;
options.render = function renderWithStyleInjection(h, context) { options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
hook.call(context); }
return originalRender(h, context); }
}; return script;
} else {
// inject component registration as beforeCreate hook
var existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
return script;
} }
var normalizeComponent_1 = normalizeComponent;
/* script */ /* script */
var __vue_script__ = script; var __vue_script__ = script;
@ -592,15 +582,19 @@ var Formulate = (function (exports, isPlainObject, nanoid) {
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInput = normalizeComponent_1( var FormulateInput = normalizeComponent(
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
__vue_inject_styles__, __vue_inject_styles__,
__vue_script__, __vue_script__,
__vue_scope_id__, __vue_scope_id__,
__vue_is_functional_template__, __vue_is_functional_template__,
__vue_module_identifier__, __vue_module_identifier__,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -686,8 +680,8 @@ var Formulate = (function (exports, isPlainObject, nanoid) {
// In the case that the form is carrying an initial value and the // In the case that the form is carrying an initial value and the
// element is not, set it directly. // element is not, set it directly.
component.context.model = this.formulateValue[field]; component.context.model = this.formulateValue[field];
} else if (component.$options.propsData.hasOwnProperty('formulateValue')) { } else if (component.$options.propsData.hasOwnProperty('formulateValue') && !shallowEqualObjects(component.internalModelProxy, this.formulateValue[field])) {
this.setFieldValue(field, component.context.model); this.setFieldValue(field, component.internalModelProxy);
} }
}, },
formSubmitted: function formSubmitted () { formSubmitted: function formSubmitted () {
@ -734,15 +728,19 @@ var Formulate = (function (exports, isPlainObject, nanoid) {
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateForm = normalizeComponent_1( var FormulateForm = normalizeComponent(
{ render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
__vue_inject_styles__$1, __vue_inject_styles__$1,
__vue_script__$1, __vue_script__$1,
__vue_scope_id__$1, __vue_scope_id__$1,
__vue_is_functional_template__$1, __vue_is_functional_template__$1,
__vue_module_identifier__$1, __vue_module_identifier__$1,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -850,15 +848,19 @@ var Formulate = (function (exports, isPlainObject, nanoid) {
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputGroup = normalizeComponent_1( var FormulateInputGroup = normalizeComponent(
{ render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 }, { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },
__vue_inject_styles__$2, __vue_inject_styles__$2,
__vue_script__$2, __vue_script__$2,
__vue_scope_id__$2, __vue_scope_id__$2,
__vue_is_functional_template__$2, __vue_is_functional_template__$2,
__vue_module_identifier__$2, __vue_module_identifier__$2,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -1044,15 +1046,19 @@ var Formulate = (function (exports, isPlainObject, nanoid) {
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputBox = normalizeComponent_1( var FormulateInputBox = normalizeComponent(
{ render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 }, { render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 },
__vue_inject_styles__$3, __vue_inject_styles__$3,
__vue_script__$3, __vue_script__$3,
__vue_scope_id__$3, __vue_scope_id__$3,
__vue_is_functional_template__$3, __vue_is_functional_template__$3,
__vue_module_identifier__$3, __vue_module_identifier__$3,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -1199,15 +1205,19 @@ var Formulate = (function (exports, isPlainObject, nanoid) {
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputText = normalizeComponent_1( var FormulateInputText = normalizeComponent(
{ render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 }, { render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 },
__vue_inject_styles__$4, __vue_inject_styles__$4,
__vue_script__$4, __vue_script__$4,
__vue_scope_id__$4, __vue_scope_id__$4,
__vue_is_functional_template__$4, __vue_is_functional_template__$4,
__vue_module_identifier__$4, __vue_module_identifier__$4,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -1356,15 +1366,19 @@ var Formulate = (function (exports, isPlainObject, nanoid) {
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputSelect = normalizeComponent_1( var FormulateInputSelect = normalizeComponent(
{ render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 }, { render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 },
__vue_inject_styles__$5, __vue_inject_styles__$5,
__vue_script__$5, __vue_script__$5,
__vue_scope_id__$5, __vue_scope_id__$5,
__vue_is_functional_template__$5, __vue_is_functional_template__$5,
__vue_module_identifier__$5, __vue_module_identifier__$5,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -1435,15 +1449,19 @@ var Formulate = (function (exports, isPlainObject, nanoid) {
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputTextArea = normalizeComponent_1( var FormulateInputTextArea = normalizeComponent(
{ render: __vue_render__$6, staticRenderFns: __vue_staticRenderFns__$6 }, { render: __vue_render__$6, staticRenderFns: __vue_staticRenderFns__$6 },
__vue_inject_styles__$6, __vue_inject_styles__$6,
__vue_script__$6, __vue_script__$6,
__vue_scope_id__$6, __vue_scope_id__$6,
__vue_is_functional_template__$6, __vue_is_functional_template__$6,
__vue_module_identifier__$6, __vue_module_identifier__$6,
false,
undefined,
undefined, undefined,
undefined undefined
); );

206
dist/formulate.umd.js vendored
View File

@ -2,7 +2,7 @@
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('is-plain-object'), require('nanoid')) : typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('is-plain-object'), require('nanoid')) :
typeof define === 'function' && define.amd ? define(['exports', 'is-plain-object', 'nanoid'], factory) : typeof define === 'function' && define.amd ? define(['exports', 'is-plain-object', 'nanoid'], factory) :
(global = global || self, factory(global.Formulate = {}, global.isPlainObject, global.nanoid)); (global = global || self, factory(global.Formulate = {}, global.isPlainObject, global.nanoid));
}(this, function (exports, isPlainObject, nanoid) { 'use strict'; }(this, (function (exports, isPlainObject, nanoid) { 'use strict';
isPlainObject = isPlainObject && isPlainObject.hasOwnProperty('default') ? isPlainObject['default'] : isPlainObject; isPlainObject = isPlainObject && isPlainObject.hasOwnProperty('default') ? isPlainObject['default'] : isPlainObject;
nanoid = nanoid && nanoid.hasOwnProperty('default') ? nanoid['default'] : nanoid; nanoid = nanoid && nanoid.hasOwnProperty('default') ? nanoid['default'] : nanoid;
@ -417,91 +417,81 @@
} }
}; };
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
/* server only */ if (typeof shadowMode !== 'boolean') {
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { createInjectorSSR = createInjector;
if (typeof shadowMode !== 'boolean') { createInjector = shadowMode;
createInjectorSSR = createInjector; shadowMode = false;
createInjector = shadowMode; }
shadowMode = false; // Vue.extend constructor export interop.
} // Vue.extend constructor export interop. var options = typeof script === 'function' ? script.options : script;
// render functions
if (template && template.render) {
var options = typeof script === 'function' ? script.options : script; // render functions options.render = template.render;
options.staticRenderFns = template.staticRenderFns;
if (template && template.render) { options._compiled = true;
options.render = template.render; // functional template
options.staticRenderFns = template.staticRenderFns; if (isFunctionalTemplate) {
options._compiled = true; // functional template options.functional = true;
}
if (isFunctionalTemplate) { }
options.functional = true; // scopedId
} if (scopeId) {
} // scopedId options._scopeId = scopeId;
}
var hook;
if (scopeId) { if (moduleIdentifier) {
options._scopeId = scopeId; // server build
} hook = function (context) {
// 2.3 injection
var hook; context =
context || // cached call
if (moduleIdentifier) { (this.$vnode && this.$vnode.ssrContext) || // stateful
// server build (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
hook = function hook(context) { // 2.2 with runInNewContext: true
// 2.3 injection if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = context || // cached call context = __VUE_SSR_CONTEXT__;
this.$vnode && this.$vnode.ssrContext || // stateful }
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional // inject component styles
// 2.2 with runInNewContext: true if (style) {
style.call(this, createInjectorSSR(context));
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { }
context = __VUE_SSR_CONTEXT__; // register component module identifier for async chunk inference
} // inject component styles if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
if (style) { };
style.call(this, createInjectorSSR(context)); // used by ssr in case component is cached and beforeCreate
} // register component module identifier for async chunk inference // never gets called
options._ssrRegister = hook;
}
if (context && context._registeredComponents) { else if (style) {
context._registeredComponents.add(moduleIdentifier); hook = shadowMode
} ? function (context) {
}; // used by ssr in case component is cached and beforeCreate style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
// never gets called }
: function (context) {
style.call(this, createInjector(context));
options._ssrRegister = hook; };
} else if (style) { }
hook = shadowMode ? function () { if (hook) {
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot)); if (options.functional) {
} : function (context) { // register for functional component in vue file
style.call(this, createInjector(context)); var originalRender = options.render;
}; options.render = function renderWithStyleInjection(h, context) {
} hook.call(context);
return originalRender(h, context);
if (hook) { };
if (options.functional) { }
// register for functional component in vue file else {
var originalRender = options.render; // inject component registration as beforeCreate hook
var existing = options.beforeCreate;
options.render = function renderWithStyleInjection(h, context) { options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
hook.call(context); }
return originalRender(h, context); }
}; return script;
} else {
// inject component registration as beforeCreate hook
var existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
return script;
} }
var normalizeComponent_1 = normalizeComponent;
/* script */ /* script */
var __vue_script__ = script; var __vue_script__ = script;
@ -595,15 +585,19 @@
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInput = normalizeComponent_1( var FormulateInput = normalizeComponent(
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
__vue_inject_styles__, __vue_inject_styles__,
__vue_script__, __vue_script__,
__vue_scope_id__, __vue_scope_id__,
__vue_is_functional_template__, __vue_is_functional_template__,
__vue_module_identifier__, __vue_module_identifier__,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -689,8 +683,8 @@
// In the case that the form is carrying an initial value and the // In the case that the form is carrying an initial value and the
// element is not, set it directly. // element is not, set it directly.
component.context.model = this.formulateValue[field]; component.context.model = this.formulateValue[field];
} else if (component.$options.propsData.hasOwnProperty('formulateValue')) { } else if (component.$options.propsData.hasOwnProperty('formulateValue') && !shallowEqualObjects(component.internalModelProxy, this.formulateValue[field])) {
this.setFieldValue(field, component.context.model); this.setFieldValue(field, component.internalModelProxy);
} }
}, },
formSubmitted: function formSubmitted () { formSubmitted: function formSubmitted () {
@ -737,15 +731,19 @@
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateForm = normalizeComponent_1( var FormulateForm = normalizeComponent(
{ render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 }, { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
__vue_inject_styles__$1, __vue_inject_styles__$1,
__vue_script__$1, __vue_script__$1,
__vue_scope_id__$1, __vue_scope_id__$1,
__vue_is_functional_template__$1, __vue_is_functional_template__$1,
__vue_module_identifier__$1, __vue_module_identifier__$1,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -853,15 +851,19 @@
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputGroup = normalizeComponent_1( var FormulateInputGroup = normalizeComponent(
{ render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 }, { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },
__vue_inject_styles__$2, __vue_inject_styles__$2,
__vue_script__$2, __vue_script__$2,
__vue_scope_id__$2, __vue_scope_id__$2,
__vue_is_functional_template__$2, __vue_is_functional_template__$2,
__vue_module_identifier__$2, __vue_module_identifier__$2,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -1047,15 +1049,19 @@
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputBox = normalizeComponent_1( var FormulateInputBox = normalizeComponent(
{ render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 }, { render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 },
__vue_inject_styles__$3, __vue_inject_styles__$3,
__vue_script__$3, __vue_script__$3,
__vue_scope_id__$3, __vue_scope_id__$3,
__vue_is_functional_template__$3, __vue_is_functional_template__$3,
__vue_module_identifier__$3, __vue_module_identifier__$3,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -1202,15 +1208,19 @@
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputText = normalizeComponent_1( var FormulateInputText = normalizeComponent(
{ render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 }, { render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 },
__vue_inject_styles__$4, __vue_inject_styles__$4,
__vue_script__$4, __vue_script__$4,
__vue_scope_id__$4, __vue_scope_id__$4,
__vue_is_functional_template__$4, __vue_is_functional_template__$4,
__vue_module_identifier__$4, __vue_module_identifier__$4,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -1359,15 +1369,19 @@
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputSelect = normalizeComponent_1( var FormulateInputSelect = normalizeComponent(
{ render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 }, { render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 },
__vue_inject_styles__$5, __vue_inject_styles__$5,
__vue_script__$5, __vue_script__$5,
__vue_scope_id__$5, __vue_scope_id__$5,
__vue_is_functional_template__$5, __vue_is_functional_template__$5,
__vue_module_identifier__$5, __vue_module_identifier__$5,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -1438,15 +1452,19 @@
/* style inject SSR */ /* style inject SSR */
/* style inject shadow dom */
var FormulateInputTextArea = normalizeComponent_1( var FormulateInputTextArea = normalizeComponent(
{ render: __vue_render__$6, staticRenderFns: __vue_staticRenderFns__$6 }, { render: __vue_render__$6, staticRenderFns: __vue_staticRenderFns__$6 },
__vue_inject_styles__$6, __vue_inject_styles__$6,
__vue_script__$6, __vue_script__$6,
__vue_scope_id__$6, __vue_scope_id__$6,
__vue_is_functional_template__$6, __vue_is_functional_template__$6,
__vue_module_identifier__$6, __vue_module_identifier__$6,
false,
undefined,
undefined, undefined,
undefined undefined
); );
@ -1533,4 +1551,4 @@
Object.defineProperty(exports, '__esModule', { value: true }); Object.defineProperty(exports, '__esModule', { value: true });
})); })));

4
dist/snow.min.css vendored

File diff suppressed because one or more lines are too long

8
package-lock.json generated
View File

@ -9314,9 +9314,9 @@
} }
}, },
"rollup-plugin-vue": { "rollup-plugin-vue": {
"version": "5.1.2", "version": "5.1.1",
"resolved": "https://registry.npmjs.org/rollup-plugin-vue/-/rollup-plugin-vue-5.1.2.tgz", "resolved": "https://registry.npmjs.org/rollup-plugin-vue/-/rollup-plugin-vue-5.1.1.tgz",
"integrity": "sha512-j0tKshZOoiUq/f/c2k8l8+QRGZRqnH/iJtQsYoK5fNQwxwhOS3rbOu0FA0hx6IdnLZmXInmuAq1aTHY14N87WA==", "integrity": "sha512-lSIiiaNfwOWpbAN7Z1ZQzY0WUIa6+6cVopZrICBlrSKqGpmlkHm2+cgCtv1PsY5EkR0ZasHoeNNQn5b2B8HvkA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@vue/component-compiler": "^4.1.0", "@vue/component-compiler": "^4.1.0",
@ -9327,7 +9327,7 @@
"querystring": "^0.2.0", "querystring": "^0.2.0",
"rollup-pluginutils": "^2.4.1", "rollup-pluginutils": "^2.4.1",
"source-map": "0.7.3", "source-map": "0.7.3",
"vue-runtime-helpers": "^1.1.2" "vue-runtime-helpers": "^1.1.1"
}, },
"dependencies": { "dependencies": {
"source-map": { "source-map": {

View File

@ -63,10 +63,11 @@
"rollup": "^1.26.0", "rollup": "^1.26.0",
"rollup-plugin-buble": "^0.19.8", "rollup-plugin-buble": "^0.19.8",
"rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-vue": "^5.1.2", "rollup-plugin-vue": "^5.1.1",
"typescript": "^3.6.4", "typescript": "^3.6.4",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-jest": "^3.0.5", "vue-jest": "^3.0.5",
"vue-runtime-helpers": "^1.1.2",
"vue-template-compiler": "^2.6.10", "vue-template-compiler": "^2.6.10",
"vue-template-es2015-compiler": "^1.9.1", "vue-template-es2015-compiler": "^1.9.1",
"watch": "^1.0.2" "watch": "^1.0.2"