loading-indicator.js 4.9 KB

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