1 line
26 KiB
JSON
1 line
26 KiB
JSON
{"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 it’s 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,"column":25},"source":"Formulate.js","original":{"line":7,"column":4}},{"generated":{"line":9,"column":34},"source":"Formulate.js","original":{"line":7,"column":16}},{"generated":{"line":9,"column":37},"source":"Formulate.js","original":{"line":7,"column":28}},{"generated":{"line":10,"column":0},"source":"Formulate.js","original":{"line":8,"column":2}},{"name":"defaults","generated":{"line":10,"column":7},"source":"Formulate.js","original":{"line":8,"column":7}},{"generated":{"line":10,"column":15},"source":"Formulate.js","original":{"line":8,"column":2}},{"generated":{"line":10,"column":18},"source":"Formulate.js","original":{"line":8,"column":18}},{"name":"components","generated":{"line":11,"column":0},"source":"Formulate.js","original":{"line":9,"column":4}},{"name":"components","generated":{"line":11,"column":4},"source":"Formulate.js","original":{"line":9,"column":4}},{"generated":{"line":11,"column":14},"source":"Formulate.js","original":{"line":9,"column":14}},{"generated":{"line":11,"column":16},"source":"Formulate.js","original":{"line":9,"column":16}},{"generated":{"line":12,"column":0},"source":"Formulate.js","original":{"line":10,"column":6}},{"name":"FormulateInput","generated":{"line":13,"column":0},"source":"Formulate.js","original":{"line":11,"column":6}},{"name":"FormulateInput","generated":{"line":13,"column":6},"source":"Formulate.js","original":{"line":11,"column":6}},{"generated":{"line":13,"column":20},"source":"Formulate.js","original":{"line":11,"column":20}},{"name":"FormulateInput","generated":{"line":13,"column":22},"source":"Formulate.js","original":{"line":11,"column":22}},{"generated":{"line":14,"column":0},"source":"Formulate.js","original":{"line":9,"column":16}},{"generated":{"line":15,"column":0},"source":"Formulate.js","original":{"line":8,"column":18}},{"generated":{"line":15,"column":3},"source":"Formulate.js","original":{"line":8,"column":2}},{"generated":{"line":16,"column":0},"source":"Formulate.js","original":{"line":14,"column":1}},{"generated":{"line":16,"column":1},"source":"Formulate.js","original":{"line":7,"column":0}},{"generated":{"line":17,"column":0},"source":"Formulate.js","original":{"line":16,"column":0}},{"name":"Formulate","generated":{"line":22,"column":0},"source":"Formulate.js","original":{"line":19,"column":0}},{"generated":{"line":22,"column":9},"source":"Formulate.js","original":{"line":19,"column":9}},{"name":"prototype","generated":{"line":22,"column":10},"source":"Formulate.js","original":{"line":19,"column":10}},{"generated":{"line":22,"column":19},"source":"Formulate.js","original":{"line":19,"column":0}},{"name":"install","generated":{"line":22,"column":20},"source":"Formulate.js","original":{"line":19,"column":20}},{"generated":{"line":22,"column":27},"source":"Formulate.js","original":{"line":19,"column":0}},{"generated":{"line":22,"column":30},"source":"Formulate.js","original":{"line":19,"column":30}},{"name":"Vue","generated":{"line":22,"column":40},"source":"Formulate.js","original":{"line":19,"column":40}},{"generated":{"line":22,"column":43},"source":"Formulate.js","original":{"line":19,"column":30}},{"name":"options","generated":{"line":22,"column":45},"source":"Formulate.js","original":{"line":19,"column":45}},{"generated":{"line":22,"column":52},"source":"Formulate.js","original":{"line":19,"column":30}},{"generated":{"line":22,"column":54},"source":"Formulate.js","original":{"line":19,"column":54}},{"generated":{"line":23,"column":0},"source":"Formulate.js","original":{"line":20,"column":2}},{"name":"options","generated":{"line":23,"column":7},"source":"Formulate.js","original":{"line":20,"column":7}},{"generated":{"line":23,"column":14},"source":"Formulate.js","original":{"line":20,"column":2}},{"generated":{"line":23,"column":17},"source":"Formulate.js","original":{"line":20,"column":17}},{"name":"extend","generated":{"line":23,"column":22},"source":"Formulate.js","original":{"line":20,"column":22}},{"generated":{"line":23,"column":28},"source":"Formulate.js","original":{"line":20,"column":17}},{"generated":{"line":23,"column":29},"source":"Formulate.js","original":{"line":20,"column":29}},{"name":"defaults","generated":{"line":23,"column":34},"source":"Formulate.js","original":{"line":20,"column":34}},{"generated":{"line":23,"column":42},"source":"Formulate.js","original":{"line":20,"column":17}},{"name":"options","generated":{"line":23,"column":44},"source":"Formulate.js","original":{"line":20,"column":44}},{"generated":{"line":23,"column":51},"source":"Formulate.js","original":{"line":20,"column":17}},{"generated":{"line":23,"column":52},"source":"Formulate.js","original":{"line":20,"column":2}},{"generated":{"line":25,"column":0},"source":"Formulate.js","original":{"line":21,"column":2}},{"generated":{"line":25,"column":7},"source":"Formulate.js","original":{"line":21,"column":7}},{"name":"componentName","generated":{"line":25,"column":11},"source":"Formulate.js","original":{"line":21,"column":11}},{"generated":{"line":25,"column":24},"source":"Formulate.js","original":{"line":21,"column":2}},{"generated":{"line":25,"column":28},"source":"Formulate.js","original":{"line":21,"column":28}},{"name":"options","generated":{"line":25,"column":33},"source":"Formulate.js","original":{"line":21,"column":33}},{"generated":{"line":25,"column":40},"source":"Formulate.js","original":{"line":21,"column":28}},{"name":"components","generated":{"line":25,"column":41},"source":"Formulate.js","original":{"line":21,"column":41}},{"generated":{"line":25,"column":51},"source":"Formulate.js","original":{"line":21,"column":2}},{"generated":{"line":25,"column":53},"source":"Formulate.js","original":{"line":21,"column":53}},{"name":"Vue","generated":{"line":26,"column":0},"source":"Formulate.js","original":{"line":22,"column":4}},{"name":"Vue","generated":{"line":26,"column":4},"source":"Formulate.js","original":{"line":22,"column":4}},{"generated":{"line":26,"column":7},"source":"Formulate.js","original":{"line":22,"column":7}},{"name":"component","generated":{"line":26,"column":8},"source":"Formulate.js","original":{"line":22,"column":8}},{"generated":{"line":26,"column":17},"source":"Formulate.js","original":{"line":22,"column":4}},{"name":"componentName","generated":{"line":26,"column":18},"source":"Formulate.js","original":{"line":22,"column":18}},{"generated":{"line":26,"column":31},"source":"Formulate.js","original":{"line":22,"column":4}},{"generated":{"line":26,"column":33},"source":"Formulate.js","original":{"line":22,"column":33}},{"name":"options","generated":{"line":26,"column":38},"source":"Formulate.js","original":{"line":22,"column":38}},{"generated":{"line":26,"column":45},"source":"Formulate.js","original":{"line":22,"column":33}},{"name":"components","generated":{"line":26,"column":46},"source":"Formulate.js","original":{"line":22,"column":46}},{"generated":{"line":26,"column":56},"source":"Formulate.js","original":{"line":22,"column":33}},{"name":"componentName","generated":{"line":26,"column":57},"source":"Formulate.js","original":{"line":22,"column":57}},{"generated":{"line":26,"column":70},"source":"Formulate.js","original":{"line":22,"column":33}},{"generated":{"line":26,"column":71},"source":"Formulate.js","original":{"line":22,"column":4}},{"generated":{"line":27,"column":0},"source":"Formulate.js","original":{"line":23,"column":3}},{"generated":{"line":28,"column":0},"source":"Formulate.js","original":{"line":24,"column":1}},{"generated":{"line":28,"column":1},"source":"Formulate.js","original":{"line":19,"column":0}},{"generated":{"line":29,"column":0},"source":"Formulate.js","original":{"line":26,"column":0}},{"name":"Formulate","generated":{"line":36,"column":0},"source":"Formulate.js","original":{"line":31,"column":0}},{"generated":{"line":36,"column":9},"source":"Formulate.js","original":{"line":31,"column":9}},{"name":"prototype","generated":{"line":36,"column":10},"source":"Formulate.js","original":{"line":31,"column":10}},{"generated":{"line":36,"column":19},"source":"Formulate.js","original":{"line":31,"column":0}},{"name":"extend","generated":{"line":36,"column":20},"source":"Formulate.js","original":{"line":31,"column":20}},{"generated":{"line":36,"column":26},"source":"Formulate.js","original":{"line":31,"column":0}},{"generated":{"line":36,"column":29},"source":"Formulate.js","original":{"line":31,"column":29}},{"name":"base","generated":{"line":36,"column":39},"source":"Formulate.js","original":{"line":31,"column":39}},{"generated":{"line":36,"column":43},"source":"Formulate.js","original":{"line":31,"column":29}},{"name":"extendWith","generated":{"line":36,"column":45},"source":"Formulate.js","original":{"line":31,"column":45}},{"generated":{"line":36,"column":55},"source":"Formulate.js","original":{"line":31,"column":29}},{"generated":{"line":36,"column":57},"source":"Formulate.js","original":{"line":31,"column":57}},{"generated":{"line":37,"column":0},"source":"Formulate.js","original":{"line":32,"column":2}},{"name":"merged","generated":{"line":37,"column":6},"source":"Formulate.js","original":{"line":32,"column":6}},{"generated":{"line":37,"column":12},"source":"Formulate.js","original":{"line":32,"column":12}},{"generated":{"line":37,"column":15},"source":"Formulate.js","original":{"line":32,"column":15}},{"generated":{"line":37,"column":17},"source":"Formulate.js","original":{"line":32,"column":2}},{"generated":{"line":39,"column":0},"source":"Formulate.js","original":{"line":33,"column":2}},{"generated":{"line":39,"column":7},"source":"Formulate.js","original":{"line":33,"column":7}},{"name":"key","generated":{"line":39,"column":11},"source":"Formulate.js","original":{"line":33,"column":11}},{"generated":{"line":39,"column":14},"source":"Formulate.js","original":{"line":33,"column":2}},{"name":"base","generated":{"line":39,"column":18},"source":"Formulate.js","original":{"line":33,"column":18}},{"generated":{"line":39,"column":22},"source":"Formulate.js","original":{"line":33,"column":2}},{"generated":{"line":39,"column":24},"source":"Formulate.js","original":{"line":33,"column":24}},{"generated":{"line":40,"column":0},"source":"Formulate.js","original":{"line":34,"column":4}},{"name":"extendWith","generated":{"line":40,"column":8},"source":"Formulate.js","original":{"line":34,"column":8}},{"generated":{"line":40,"column":18},"source":"Formulate.js","original":{"line":34,"column":18}},{"name":"hasOwnProperty","generated":{"line":40,"column":19},"source":"Formulate.js","original":{"line":34,"column":19}},{"generated":{"line":40,"column":33},"source":"Formulate.js","original":{"line":34,"column":8}},{"name":"key","generated":{"line":40,"column":34},"source":"Formulate.js","original":{"line":34,"column":34}},{"generated":{"line":40,"column":37},"source":"Formulate.js","original":{"line":34,"column":8}},{"generated":{"line":40,"column":38},"source":"Formulate.js","original":{"line":34,"column":4}},{"generated":{"line":40,"column":40},"source":"Formulate.js","original":{"line":34,"column":40}},{"name":"merged","generated":{"line":41,"column":0},"source":"Formulate.js","original":{"line":35,"column":6}},{"name":"merged","generated":{"line":41,"column":6},"source":"Formulate.js","original":{"line":35,"column":6}},{"generated":{"line":41,"column":12},"source":"Formulate.js","original":{"line":35,"column":12}},{"name":"key","generated":{"line":41,"column":13},"source":"Formulate.js","original":{"line":35,"column":13}},{"generated":{"line":41,"column":16},"source":"Formulate.js","original":{"line":35,"column":12}},{"generated":{"line":41,"column":17},"source":"Formulate.js","original":{"line":35,"column":6}},{"name":"isPlainObject","generated":{"line":41,"column":20},"source":"Formulate.js","original":{"line":35,"column":20}},{"generated":{"line":41,"column":33},"source":"Formulate.js","original":{"line":35,"column":33}},{"name":"extendWith","generated":{"line":41,"column":34},"source":"Formulate.js","original":{"line":35,"column":34}},{"generated":{"line":41,"column":44},"source":"Formulate.js","original":{"line":35,"column":44}},{"name":"key","generated":{"line":41,"column":45},"source":"Formulate.js","original":{"line":35,"column":45}},{"generated":{"line":41,"column":48},"source":"Formulate.js","original":{"line":35,"column":44}},{"generated":{"line":41,"column":49},"source":"Formulate.js","original":{"line":35,"column":33}},{"generated":{"line":41,"column":50},"source":"Formulate.js","original":{"line":35,"column":20}},{"name":"isPlainObject","generated":{"line":41,"column":54},"source":"Formulate.js","original":{"line":35,"column":54}},{"generated":{"line":41,"column":67},"source":"Formulate.js","original":{"line":35,"column":67}},{"name":"base","generated":{"line":41,"column":68},"source":"Formulate.js","original":{"line":35,"column":68}},{"generated":{"line":41,"column":72},"source":"Formulate.js","original":{"line":35,"column":72}},{"name":"key","generated":{"line":41,"column":73},"source":"Formulate.js","original":{"line":35,"column":73}},{"generated":{"line":41,"column":76},"source":"Formulate.js","original":{"line":35,"column":72}},{"generated":{"line":41,"column":77},"source":"Formulate.js","original":{"line":35,"column":67}},{"generated":{"line":41,"column":78},"source":"Formulate.js","original":{"line":35,"column":20}},{"generated":{"line":41,"column":81},"source":"Formulate.js","original":{"line":36,"column":10}},{"name":"extend","generated":{"line":41,"column":86},"source":"Formulate.js","original":{"line":36,"column":15}},{"generated":{"line":41,"column":92},"source":"Formulate.js","original":{"line":36,"column":10}},{"name":"base","generated":{"line":41,"column":93},"source":"Formulate.js","original":{"line":36,"column":22}},{"generated":{"line":41,"column":97},"source":"Formulate.js","original":{"line":36,"column":26}},{"name":"key","generated":{"line":41,"column":98},"source":"Formulate.js","original":{"line":36,"column":27}},{"generated":{"line":41,"column":101},"source":"Formulate.js","original":{"line":36,"column":26}},{"generated":{"line":41,"column":102},"source":"Formulate.js","original":{"line":36,"column":10}},{"name":"extendWith","generated":{"line":41,"column":104},"source":"Formulate.js","original":{"line":36,"column":33}},{"generated":{"line":41,"column":114},"source":"Formulate.js","original":{"line":36,"column":43}},{"name":"key","generated":{"line":41,"column":115},"source":"Formulate.js","original":{"line":36,"column":44}},{"generated":{"line":41,"column":118},"source":"Formulate.js","original":{"line":36,"column":43}},{"generated":{"line":41,"column":119},"source":"Formulate.js","original":{"line":36,"column":10}},{"generated":{"line":41,"column":120},"source":"Formulate.js","original":{"line":35,"column":20}},{"name":"extendWith","generated":{"line":41,"column":123},"source":"Formulate.js","original":{"line":37,"column":10}},{"generated":{"line":41,"column":133},"source":"Formulate.js","original":{"line":37,"column":20}},{"name":"key","generated":{"line":41,"column":134},"source":"Formulate.js","original":{"line":37,"column":21}},{"generated":{"line":41,"column":137},"source":"Formulate.js","original":{"line":37,"column":20}},{"generated":{"line":41,"column":138},"source":"Formulate.js","original":{"line":35,"column":6}},{"generated":{"line":42,"column":0},"source":"Formulate.js","original":{"line":38,"column":5}},{"generated":{"line":42,"column":5},"source":"Formulate.js","original":{"line":34,"column":4}},{"generated":{"line":42,"column":11},"source":"Formulate.js","original":{"line":38,"column":11}},{"name":"merged","generated":{"line":43,"column":0},"source":"Formulate.js","original":{"line":39,"column":6}},{"name":"merged","generated":{"line":43,"column":6},"source":"Formulate.js","original":{"line":39,"column":6}},{"generated":{"line":43,"column":12},"source":"Formulate.js","original":{"line":39,"column":12}},{"name":"key","generated":{"line":43,"column":13},"source":"Formulate.js","original":{"line":39,"column":13}},{"generated":{"line":43,"column":16},"source":"Formulate.js","original":{"line":39,"column":12}},{"generated":{"line":43,"column":17},"source":"Formulate.js","original":{"line":39,"column":6}},{"name":"base","generated":{"line":43,"column":20},"source":"Formulate.js","original":{"line":39,"column":20}},{"generated":{"line":43,"column":24},"source":"Formulate.js","original":{"line":39,"column":24}},{"name":"key","generated":{"line":43,"column":25},"source":"Formulate.js","original":{"line":39,"column":25}},{"generated":{"line":43,"column":28},"source":"Formulate.js","original":{"line":39,"column":24}},{"generated":{"line":43,"column":29},"source":"Formulate.js","original":{"line":39,"column":6}},{"generated":{"line":44,"column":0},"source":"Formulate.js","original":{"line":40,"column":5}},{"generated":{"line":45,"column":0},"source":"Formulate.js","original":{"line":41,"column":3}},{"generated":{"line":47,"column":0},"source":"Formulate.js","original":{"line":42,"column":2}},{"generated":{"line":47,"column":7},"source":"Formulate.js","original":{"line":42,"column":7}},{"name":"prop","generated":{"line":47,"column":11},"source":"Formulate.js","original":{"line":42,"column":11}},{"generated":{"line":47,"column":15},"source":"Formulate.js","original":{"line":42,"column":2}},{"name":"extendWith","generated":{"line":47,"column":19},"source":"Formulate.js","original":{"line":42,"column":19}},{"generated":{"line":47,"column":29},"source":"Formulate.js","original":{"line":42,"column":2}},{"generated":{"line":47,"column":31},"source":"Formulate.js","original":{"line":42,"column":31}},{"generated":{"line":48,"column":0},"source":"Formulate.js","original":{"line":43,"column":4}},{"generated":{"line":48,"column":8},"source":"Formulate.js","original":{"line":43,"column":8}},{"name":"merged","generated":{"line":48,"column":9},"source":"Formulate.js","original":{"line":43,"column":9}},{"generated":{"line":48,"column":15},"source":"Formulate.js","original":{"line":43,"column":15}},{"name":"hasOwnProperty","generated":{"line":48,"column":16},"source":"Formulate.js","original":{"line":43,"column":16}},{"generated":{"line":48,"column":30},"source":"Formulate.js","original":{"line":43,"column":9}},{"name":"prop","generated":{"line":48,"column":31},"source":"Formulate.js","original":{"line":43,"column":31}},{"generated":{"line":48,"column":35},"source":"Formulate.js","original":{"line":43,"column":9}},{"generated":{"line":48,"column":36},"source":"Formulate.js","original":{"line":43,"column":4}},{"generated":{"line":48,"column":38},"source":"Formulate.js","original":{"line":43,"column":38}},{"name":"merged","generated":{"line":49,"column":0},"source":"Formulate.js","original":{"line":44,"column":6}},{"name":"merged","generated":{"line":49,"column":6},"source":"Formulate.js","original":{"line":44,"column":6}},{"generated":{"line":49,"column":12},"source":"Formulate.js","original":{"line":44,"column":12}},{"name":"prop","generated":{"line":49,"column":13},"source":"Formulate.js","original":{"line":44,"column":13}},{"generated":{"line":49,"column":17},"source":"Formulate.js","original":{"line":44,"column":12}},{"generated":{"line":49,"column":18},"source":"Formulate.js","original":{"line":44,"column":6}},{"name":"extendWith","generated":{"line":49,"column":21},"source":"Formulate.js","original":{"line":44,"column":21}},{"generated":{"line":49,"column":31},"source":"Formulate.js","original":{"line":44,"column":31}},{"name":"prop","generated":{"line":49,"column":32},"source":"Formulate.js","original":{"line":44,"column":32}},{"generated":{"line":49,"column":36},"source":"Formulate.js","original":{"line":44,"column":31}},{"generated":{"line":49,"column":37},"source":"Formulate.js","original":{"line":44,"column":6}},{"generated":{"line":50,"column":0},"source":"Formulate.js","original":{"line":45,"column":5}},{"generated":{"line":51,"column":0},"source":"Formulate.js","original":{"line":46,"column":3}},{"generated":{"line":53,"column":0},"source":"Formulate.js","original":{"line":47,"column":2}},{"name":"merged","generated":{"line":53,"column":9},"source":"Formulate.js","original":{"line":47,"column":9}},{"generated":{"line":53,"column":15},"source":"Formulate.js","original":{"line":47,"column":2}},{"generated":{"line":54,"column":0},"source":"Formulate.js","original":{"line":48,"column":1}},{"generated":{"line":54,"column":1},"source":"Formulate.js","original":{"line":31,"column":0}},{"name":"module","generated":{"line":56,"column":0},"source":"Formulate.js","original":{"line":50,"column":0}},{"generated":{"line":56,"column":6},"source":"Formulate.js","original":{"line":50,"column":6}},{"name":"exports","generated":{"line":56,"column":7},"source":"Formulate.js","original":{"line":50,"column":7}},{"generated":{"line":56,"column":14},"source":"Formulate.js","original":{"line":50,"column":0}},{"name":"Formulate","generated":{"line":56,"column":17},"source":"Formulate.js","original":{"line":50,"column":17}},{"generated":{"line":56,"column":26},"source":"Formulate.js","original":{"line":50,"column":0}}],"sources":{"Formulate.js":"var isPlainObject = require('is-plain-object')\nvar FormulateInput = require('./FormulateInput')\n\n/**\n * The base formulate libary.\n */\nvar Formulate = function () {\n this.defaults = {\n components: {\n // FormulateForm: FormulateForm,\n FormulateInput: FormulateInput\n }\n }\n}\n\n/**\n * Install vue formulate, and register it’s components.\n */\nFormulate.prototype.install = function (Vue, options) {\n this.options = this.extend(this.defaults, options)\n for (var componentName in this.options.components) {\n Vue.component(componentName, this.options.components[componentName])\n }\n}\n\n/**\n * Create a new object by copying properties of base and extendWith.\n * @param {Object} base\n * @param {Object} extendWith\n */\nFormulate.prototype.extend = function (base, extendWith) {\n var merged = {}\n for (var key in base) {\n if (extendWith.hasOwnProperty(key)) {\n merged[key] = isPlainObject(extendWith[key]) && isPlainObject(base[key])\n ? this.extend(base[key], extendWith[key])\n : extendWith[key]\n } else {\n merged[key] = base[key]\n }\n }\n for (var prop in extendWith) {\n if (!merged.hasOwnProperty(prop)) {\n merged[prop] = extendWith[prop]\n }\n }\n return merged\n}\n\nmodule.exports = Formulate\n"},"lineCount":null}},"error":null,"hash":"f5f5bd0ce9b619a50e7c58a16d089807","cacheData":{"env":{}}} |