UNPKG

@progress/kendo-diagram-vue-wrapper

Version:
48 lines (32 loc) 2.1 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _KendoDiagram = require('../KendoDiagram'); var _KendoDiagram2 = _interopRequireDefault(_KendoDiagram); var _KendoDiagramConnection = require('../KendoDiagramConnection'); var _KendoDiagramConnection2 = _interopRequireDefault(_KendoDiagramConnection); var _KendoDiagramShape = require('../KendoDiagramShape'); var _KendoDiagramShape2 = _interopRequireDefault(_KendoDiagramShape); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var KendoDiagramInstaller = function () { function KendoDiagramInstaller() { _classCallCheck(this, KendoDiagramInstaller); } _createClass(KendoDiagramInstaller, null, [{ key: 'install', value: function install(Vue) { Vue.component(_KendoDiagram2.default.name, _KendoDiagram2.default); Vue.component(_KendoDiagramConnection2.default.name, _KendoDiagramConnection2.default); Vue.component(_KendoDiagramShape2.default.name, _KendoDiagramShape2.default); } }]); return KendoDiagramInstaller; }(); exports.default = KendoDiagramInstaller; // Automatic installation if Vue has been added to the global scope. if (typeof window !== 'undefined' && window.Vue && window.Vue.use) { window.Vue.use(KendoDiagramInstaller); }