col-dxi.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 nested_option_1 = require("../../core/nested-option");
  27. var nested_option_2 = require("../../core/nested-option");
  28. var DxiColComponent = (function (_super) {
  29. __extends(DxiColComponent, _super);
  30. function DxiColComponent(parentOptionHost, optionHost) {
  31. var _this = _super.call(this) || this;
  32. parentOptionHost.setNestedOption(_this);
  33. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  34. return _this;
  35. }
  36. Object.defineProperty(DxiColComponent.prototype, "baseSize", {
  37. get: function () {
  38. return this._getOption('baseSize');
  39. },
  40. set: function (value) {
  41. this._setOption('baseSize', value);
  42. },
  43. enumerable: true,
  44. configurable: true
  45. });
  46. Object.defineProperty(DxiColComponent.prototype, "ratio", {
  47. get: function () {
  48. return this._getOption('ratio');
  49. },
  50. set: function (value) {
  51. this._setOption('ratio', value);
  52. },
  53. enumerable: true,
  54. configurable: true
  55. });
  56. Object.defineProperty(DxiColComponent.prototype, "screen", {
  57. get: function () {
  58. return this._getOption('screen');
  59. },
  60. set: function (value) {
  61. this._setOption('screen', value);
  62. },
  63. enumerable: true,
  64. configurable: true
  65. });
  66. Object.defineProperty(DxiColComponent.prototype, "shrink", {
  67. get: function () {
  68. return this._getOption('shrink');
  69. },
  70. set: function (value) {
  71. this._setOption('shrink', value);
  72. },
  73. enumerable: true,
  74. configurable: true
  75. });
  76. Object.defineProperty(DxiColComponent.prototype, "_optionPath", {
  77. get: function () {
  78. return 'cols';
  79. },
  80. enumerable: true,
  81. configurable: true
  82. });
  83. DxiColComponent.decorators = [
  84. { type: core_1.Component, args: [{
  85. selector: 'dxi-col',
  86. template: '',
  87. styles: [''],
  88. providers: [nested_option_1.NestedOptionHost]
  89. },] },
  90. ];
  91. /** @nocollapse */
  92. DxiColComponent.ctorParameters = function () { return [
  93. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  94. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  95. ]; };
  96. DxiColComponent.propDecorators = {
  97. "baseSize": [{ type: core_1.Input },],
  98. "ratio": [{ type: core_1.Input },],
  99. "screen": [{ type: core_1.Input },],
  100. "shrink": [{ type: core_1.Input },],
  101. };
  102. return DxiColComponent;
  103. }(nested_option_2.CollectionNestedOption));
  104. exports.DxiColComponent = DxiColComponent;
  105. var DxiColModule = (function () {
  106. function DxiColModule() {
  107. }
  108. DxiColModule.decorators = [
  109. { type: core_1.NgModule, args: [{
  110. declarations: [
  111. DxiColComponent
  112. ],
  113. exports: [
  114. DxiColComponent
  115. ],
  116. },] },
  117. ];
  118. return DxiColModule;
  119. }());
  120. exports.DxiColModule = DxiColModule;
  121. //# sourceMappingURL=col-dxi.js.map