StackItemFactory.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. "use strict";
  2. var __extends = (this && this.__extends) || (function () {
  3. var extendStatics = function (d, b) {
  4. extendStatics = Object.setPrototypeOf ||
  5. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  6. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  7. return extendStatics(d, b);
  8. };
  9. return function (d, b) {
  10. if (typeof b !== "function" && b !== null)
  11. throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  12. extendStatics(d, b);
  13. function __() { this.constructor = d; }
  14. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  15. };
  16. })();
  17. var _a;
  18. Object.defineProperty(exports, "__esModule", { value: true });
  19. var StackItem_js_1 = require("./StackItem.js");
  20. var Factory_js_1 = require("../../core/Tree/Factory.js");
  21. var DummyItem = (function (_super) {
  22. __extends(DummyItem, _super);
  23. function DummyItem() {
  24. return _super !== null && _super.apply(this, arguments) || this;
  25. }
  26. return DummyItem;
  27. }(StackItem_js_1.BaseItem));
  28. var StackItemFactory = (function (_super) {
  29. __extends(StackItemFactory, _super);
  30. function StackItemFactory() {
  31. var _this = _super !== null && _super.apply(this, arguments) || this;
  32. _this.defaultKind = 'dummy';
  33. _this.configuration = null;
  34. return _this;
  35. }
  36. StackItemFactory.DefaultStackItems = (_a = {},
  37. _a[DummyItem.prototype.kind] = DummyItem,
  38. _a);
  39. return StackItemFactory;
  40. }(Factory_js_1.AbstractFactory));
  41. exports.default = StackItemFactory;
  42. //# sourceMappingURL=StackItemFactory.js.map