1
0
mirror of synced 2024-12-01 17:46:07 +03:00
vue-formulario/.cache/1e/78c811898ee87048ab5f0f61513488.json

1 line
26 KiB
JSON
Raw Normal View History

{"id":"Formulate.js","dependencies":[{"name":"/Users/justinschroeder/Projects/vue-formulate/package.json","includedInParent":true,"mtime":1570029289731},{"name":"is-plain-object","loc":{"line":1,"column":28},"parent":"/Users/justinschroeder/Projects/vue-formulate/src/Formulate.js","resolved":"/Users/justinschroeder/Projects/vue-formulate/node_modules/is-plain-object/index.js"},{"name":"./FormulateInput","loc":{"line":2,"column":29},"parent":"/Users/justinschroeder/Projects/vue-formulate/src/Formulate.js","resolved":"/Users/justinschroeder/Projects/vue-formulate/src/FormulateInput.js"}],"generated":{"js":"var isPlainObject = require('is-plain-object');\n\nvar FormulateInput = require('./FormulateInput');\n/**\n * The base formulate libary.\n */\n\n\nvar Formulate = function Formulate() {\n this.defaults = {\n components: {\n // FormulateForm: FormulateForm,\n FormulateInput: FormulateInput\n }\n };\n};\n/**\n * Install vue formulate, and register its components.\n */\n\n\nFormulate.prototype.install = function (Vue, options) {\n this.options = this.extend(this.defaults, options);\n\n for (var componentName in this.options.components) {\n Vue.component(componentName, this.options.components[componentName]);\n }\n};\n/**\n * Create a new object by copying properties of base and extendWith.\n * @param {Object} base\n * @param {Object} extendWith\n */\n\n\nFormulate.prototype.extend = function (base, extendWith) {\n var merged = {};\n\n for (var key in base) {\n if (extendWith.hasOwnProperty(key)) {\n merged[key] = isPlainObject(extendWith[key]) && isPlainObject(base[key]) ? this.extend(base[key], extendWith[key]) : extendWith[key];\n } else {\n merged[key] = base[key];\n }\n }\n\n for (var prop in extendWith) {\n if (!merged.hasOwnProperty(prop)) {\n merged[prop] = extendWith[prop];\n }\n }\n\n return merged;\n};\n\nmodule.exports = Formulate;"},"sourceMaps":{"js":{"mappings":[{"generated":{"line":1,"column":0},"source":"Formulate.js","original":{"line":1,"column":0}},{"name":"isPlainObject","generated":{"line":1,"column":4},"source":"Formulate.js","original":{"line":1,"column":4}},{"generated":{"line":1,"column":17},"source":"Formulate.js","original":{"line":1,"column":17}},{"name":"require","generated":{"line":1,"column":20},"source":"Formulate.js","original":{"line":1,"column":20}},{"generated":{"line":1,"column":27},"source":"Formulate.js","original":{"line":1,"column":27}},{"generated":{"line":1,"column":28},"source":"Formulate.js","original":{"line":1,"column":28}},{"generated":{"line":1,"column":45},"source":"Formulate.js","original":{"line":1,"column":27}},{"generated":{"line":1,"column":46},"source":"Formulate.js","original":{"line":1,"column":0}},{"generated":{"line":3,"column":0},"source":"Formulate.js","original":{"line":2,"column":0}},{"name":"FormulateInput","generated":{"line":3,"column":4},"source":"Formulate.js","original":{"line":2,"column":4}},{"generated":{"line":3,"column":18},"source":"Formulate.js","original":{"line":2,"column":18}},{"name":"require","generated":{"line":3,"column":21},"source":"Formulate.js","original":{"line":2,"column":21}},{"generated":{"line":3,"column":28},"source":"Formulate.js","original":{"line":2,"column":28}},{"generated":{"line":3,"column":29},"source":"Formulate.js","original":{"line":2,"column":29}},{"generated":{"line":3,"column":47},"source":"Formulate.js","original":{"line":2,"column":28}},{"generated":{"line":3,"column":48},"source":"Formulate.js","original":{"line":2,"column":0}},{"generated":{"line":4,"column":0},"source":"Formulate.js","original":{"line":4,"column":0}},{"generated":{"line":9,"column":0},"source":"Formulate.js","original":{"line":7,"column":0}},{"name":"Formulate","generated":{"line":9,"column":4},"source":"Formulate.js","original":{"line":7,"column":4}},{"generated":{"line":9,"column":13},"source":"Formulate.js","original":{"line":7,"column":13}},{"generated":{"line":9,"column":16},"source":"Formulate.js","original":{"line":7,"column":16}},{"name":"Formulate","generated":{"line":9,"colu