summary.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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 group_item_dxi_1 = require("./group-item-dxi");
  29. var total_item_dxi_1 = require("./total-item-dxi");
  30. var DxoSummaryComponent = (function (_super) {
  31. __extends(DxoSummaryComponent, _super);
  32. function DxoSummaryComponent(parentOptionHost, optionHost) {
  33. var _this = _super.call(this) || this;
  34. parentOptionHost.setNestedOption(_this);
  35. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  36. return _this;
  37. }
  38. Object.defineProperty(DxoSummaryComponent.prototype, "calculateCustomSummary", {
  39. get: function () {
  40. return this._getOption('calculateCustomSummary');
  41. },
  42. set: function (value) {
  43. this._setOption('calculateCustomSummary', value);
  44. },
  45. enumerable: true,
  46. configurable: true
  47. });
  48. Object.defineProperty(DxoSummaryComponent.prototype, "groupItems", {
  49. get: function () {
  50. return this._getOption('groupItems');
  51. },
  52. set: function (value) {
  53. this._setOption('groupItems', value);
  54. },
  55. enumerable: true,
  56. configurable: true
  57. });
  58. Object.defineProperty(DxoSummaryComponent.prototype, "recalculateWhileEditing", {
  59. get: function () {
  60. return this._getOption('recalculateWhileEditing');
  61. },
  62. set: function (value) {
  63. this._setOption('recalculateWhileEditing', value);
  64. },
  65. enumerable: true,
  66. configurable: true
  67. });
  68. Object.defineProperty(DxoSummaryComponent.prototype, "skipEmptyValues", {
  69. get: function () {
  70. return this._getOption('skipEmptyValues');
  71. },
  72. set: function (value) {
  73. this._setOption('skipEmptyValues', value);
  74. },
  75. enumerable: true,
  76. configurable: true
  77. });
  78. Object.defineProperty(DxoSummaryComponent.prototype, "texts", {
  79. get: function () {
  80. return this._getOption('texts');
  81. },
  82. set: function (value) {
  83. this._setOption('texts', value);
  84. },
  85. enumerable: true,
  86. configurable: true
  87. });
  88. Object.defineProperty(DxoSummaryComponent.prototype, "totalItems", {
  89. get: function () {
  90. return this._getOption('totalItems');
  91. },
  92. set: function (value) {
  93. this._setOption('totalItems', value);
  94. },
  95. enumerable: true,
  96. configurable: true
  97. });
  98. Object.defineProperty(DxoSummaryComponent.prototype, "_optionPath", {
  99. get: function () {
  100. return 'summary';
  101. },
  102. enumerable: true,
  103. configurable: true
  104. });
  105. Object.defineProperty(DxoSummaryComponent.prototype, "groupItemsChildren", {
  106. get: function () {
  107. return this._getOption('groupItems');
  108. },
  109. set: function (value) {
  110. this.setChildren('groupItems', value);
  111. },
  112. enumerable: true,
  113. configurable: true
  114. });
  115. Object.defineProperty(DxoSummaryComponent.prototype, "totalItemsChildren", {
  116. get: function () {
  117. return this._getOption('totalItems');
  118. },
  119. set: function (value) {
  120. this.setChildren('totalItems', value);
  121. },
  122. enumerable: true,
  123. configurable: true
  124. });
  125. DxoSummaryComponent.decorators = [
  126. { type: core_1.Component, args: [{
  127. selector: 'dxo-summary',
  128. template: '',
  129. styles: [''],
  130. providers: [nested_option_1.NestedOptionHost]
  131. },] },
  132. ];
  133. /** @nocollapse */
  134. DxoSummaryComponent.ctorParameters = function () { return [
  135. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  136. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  137. ]; };
  138. DxoSummaryComponent.propDecorators = {
  139. "calculateCustomSummary": [{ type: core_1.Input },],
  140. "groupItems": [{ type: core_1.Input },],
  141. "recalculateWhileEditing": [{ type: core_1.Input },],
  142. "skipEmptyValues": [{ type: core_1.Input },],
  143. "texts": [{ type: core_1.Input },],
  144. "totalItems": [{ type: core_1.Input },],
  145. "groupItemsChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return group_item_dxi_1.DxiGroupItemComponent; }),] },],
  146. "totalItemsChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return total_item_dxi_1.DxiTotalItemComponent; }),] },],
  147. };
  148. return DxoSummaryComponent;
  149. }(nested_option_2.NestedOption));
  150. exports.DxoSummaryComponent = DxoSummaryComponent;
  151. var DxoSummaryModule = (function () {
  152. function DxoSummaryModule() {
  153. }
  154. DxoSummaryModule.decorators = [
  155. { type: core_1.NgModule, args: [{
  156. declarations: [
  157. DxoSummaryComponent
  158. ],
  159. exports: [
  160. DxoSummaryComponent
  161. ],
  162. },] },
  163. ];
  164. return DxoSummaryModule;
  165. }());
  166. exports.DxoSummaryModule = DxoSummaryModule;
  167. //# sourceMappingURL=summary.js.map