master-detail.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. "use strict";
  2. var __extends = (this && this.__extends) || (function () {
  3. var extendStatics = Object.setPrototypeOf ||
  4. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  5. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  6. return function (d, b) {
  7. extendStatics(d, b);
  8. function __() { this.constructor = d; }
  9. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  10. };
  11. })();
  12. /*!
  13. * devextreme-angular
  14. * Version: 19.1.16
  15. * Build date: Tue Oct 18 2022
  16. *
  17. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  18. *
  19. * This software may be modified and distributed under the terms
  20. * of the MIT license. See the LICENSE file in the root of the project for details.
  21. *
  22. * https://github.com/DevExpress/devextreme-angular
  23. */
  24. Object.defineProperty(exports, "__esModule", { value: true });
  25. var core_1 = require("@angular/core");
  26. var common_1 = require("@angular/common");
  27. var nested_option_1 = require("../../core/nested-option");
  28. var template_host_1 = require("../../core/template-host");
  29. var nested_option_2 = require("../../core/nested-option");
  30. var DxoMasterDetailComponent = (function (_super) {
  31. __extends(DxoMasterDetailComponent, _super);
  32. function DxoMasterDetailComponent(parentOptionHost, optionHost, renderer, document, templateHost, element) {
  33. var _this = _super.call(this) || this;
  34. _this.renderer = renderer;
  35. _this.document = document;
  36. _this.element = element;
  37. parentOptionHost.setNestedOption(_this);
  38. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  39. templateHost.setHost(_this);
  40. return _this;
  41. }
  42. Object.defineProperty(DxoMasterDetailComponent.prototype, "autoExpandAll", {
  43. get: function () {
  44. return this._getOption('autoExpandAll');
  45. },
  46. set: function (value) {
  47. this._setOption('autoExpandAll', value);
  48. },
  49. enumerable: true,
  50. configurable: true
  51. });
  52. Object.defineProperty(DxoMasterDetailComponent.prototype, "enabled", {
  53. get: function () {
  54. return this._getOption('enabled');
  55. },
  56. set: function (value) {
  57. this._setOption('enabled', value);
  58. },
  59. enumerable: true,
  60. configurable: true
  61. });
  62. Object.defineProperty(DxoMasterDetailComponent.prototype, "template", {
  63. get: function () {
  64. return this._getOption('template');
  65. },
  66. set: function (value) {
  67. this._setOption('template', value);
  68. },
  69. enumerable: true,
  70. configurable: true
  71. });
  72. Object.defineProperty(DxoMasterDetailComponent.prototype, "_optionPath", {
  73. get: function () {
  74. return 'masterDetail';
  75. },
  76. enumerable: true,
  77. configurable: true
  78. });
  79. DxoMasterDetailComponent.prototype.setTemplate = function (template) {
  80. this.template = template;
  81. };
  82. DxoMasterDetailComponent.prototype.ngAfterViewInit = function () {
  83. nested_option_1.extractTemplate(this, this.element, this.renderer, this.document);
  84. };
  85. DxoMasterDetailComponent.decorators = [
  86. { type: core_1.Component, args: [{
  87. selector: 'dxo-master-detail',
  88. template: '<ng-content></ng-content>',
  89. styles: [':host { display: block; }'],
  90. providers: [nested_option_1.NestedOptionHost, template_host_1.DxTemplateHost]
  91. },] },
  92. ];
  93. /** @nocollapse */
  94. DxoMasterDetailComponent.ctorParameters = function () { return [
  95. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  96. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  97. { type: core_1.Renderer2, },
  98. { type: undefined, decorators: [{ type: core_1.Inject, args: [common_1.DOCUMENT,] },] },
  99. { type: template_host_1.DxTemplateHost, decorators: [{ type: core_1.Host },] },
  100. { type: core_1.ElementRef, },
  101. ]; };
  102. DxoMasterDetailComponent.propDecorators = {
  103. "autoExpandAll": [{ type: core_1.Input },],
  104. "enabled": [{ type: core_1.Input },],
  105. "template": [{ type: core_1.Input },],
  106. };
  107. return DxoMasterDetailComponent;
  108. }(nested_option_2.NestedOption));
  109. exports.DxoMasterDetailComponent = DxoMasterDetailComponent;
  110. var DxoMasterDetailModule = (function () {
  111. function DxoMasterDetailModule() {
  112. }
  113. DxoMasterDetailModule.decorators = [
  114. { type: core_1.NgModule, args: [{
  115. declarations: [
  116. DxoMasterDetailComponent
  117. ],
  118. exports: [
  119. DxoMasterDetailComponent
  120. ],
  121. },] },
  122. ];
  123. return DxoMasterDetailModule;
  124. }());
  125. exports.DxoMasterDetailModule = DxoMasterDetailModule;
  126. //# sourceMappingURL=master-detail.js.map