paging.js 4.1 KB

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