UNPKG

@progress/kendo-gantt-vue-wrapper

Version:
53 lines (35 loc) 2.24 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 _KendoGantt = require('../KendoGantt'); var _KendoGantt2 = _interopRequireDefault(_KendoGantt); var _KendoGanttColumn = require('../KendoGanttColumn'); var _KendoGanttColumn2 = _interopRequireDefault(_KendoGanttColumn); var _KendoGanttView = require('../KendoGanttView'); var _KendoGanttView2 = _interopRequireDefault(_KendoGanttView); var _KendoGanttToolbar = require('../KendoGanttToolbar'); var _KendoGanttToolbar2 = _interopRequireDefault(_KendoGanttToolbar); 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 KendoGanttInstaller = function () { function KendoGanttInstaller() { _classCallCheck(this, KendoGanttInstaller); } _createClass(KendoGanttInstaller, null, [{ key: 'install', value: function install(Vue) { Vue.component(_KendoGantt2.default.name, _KendoGantt2.default); Vue.component(_KendoGanttColumn2.default.name, _KendoGanttColumn2.default); Vue.component(_KendoGanttView2.default.name, _KendoGanttView2.default); Vue.component(_KendoGanttToolbar2.default.name, _KendoGanttToolbar2.default); } }]); return KendoGanttInstaller; }(); exports.default = KendoGanttInstaller; // Automatic installation if Vue has been added to the global scope. if (typeof window !== 'undefined' && window.Vue && window.Vue.use) { window.Vue.use(KendoGanttInstaller); }