data-source.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 pivot_grid_data_source_1 = require("./base/pivot-grid-data-source");
  28. var field_dxi_1 = require("./field-dxi");
  29. var DxoDataSourceComponent = (function (_super) {
  30. __extends(DxoDataSourceComponent, _super);
  31. function DxoDataSourceComponent(parentOptionHost, optionHost) {
  32. var _this = _super.call(this) || this;
  33. parentOptionHost.setNestedOption(_this);
  34. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  35. if ((console) && (console.warn)) {
  36. console.warn('The nested \'dxo-data-source\' component is deprecated in 17.2. ' +
  37. 'Use the \'dataSource\' option instead. ' +
  38. 'See:\nhttps://github.com/DevExpress/devextreme-angular/blob/master/CHANGELOG.md#17.2.3');
  39. }
  40. return _this;
  41. }
  42. Object.defineProperty(DxoDataSourceComponent.prototype, "_optionPath", {
  43. get: function () {
  44. return 'dataSource';
  45. },
  46. enumerable: true,
  47. configurable: true
  48. });
  49. Object.defineProperty(DxoDataSourceComponent.prototype, "fieldsChildren", {
  50. get: function () {
  51. return this._getOption('fields');
  52. },
  53. set: function (value) {
  54. this.setChildren('fields', value);
  55. },
  56. enumerable: true,
  57. configurable: true
  58. });
  59. DxoDataSourceComponent.decorators = [
  60. { type: core_1.Component, args: [{
  61. selector: 'dxo-data-source',
  62. template: '',
  63. styles: [''],
  64. providers: [nested_option_1.NestedOptionHost],
  65. inputs: [
  66. 'fields',
  67. 'filter',
  68. 'onChanged',
  69. 'onFieldsPrepared',
  70. 'onLoadError',
  71. 'onLoadingChanged',
  72. 'remoteOperations',
  73. 'retrieveFields',
  74. 'store'
  75. ]
  76. },] },
  77. ];
  78. /** @nocollapse */
  79. DxoDataSourceComponent.ctorParameters = function () { return [
  80. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  81. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  82. ]; };
  83. DxoDataSourceComponent.propDecorators = {
  84. "fieldsChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return field_dxi_1.DxiFieldComponent; }),] },],
  85. };
  86. return DxoDataSourceComponent;
  87. }(pivot_grid_data_source_1.DxoPivotGridDataSource));
  88. exports.DxoDataSourceComponent = DxoDataSourceComponent;
  89. var DxoDataSourceModule = (function () {
  90. function DxoDataSourceModule() {
  91. }
  92. DxoDataSourceModule.decorators = [
  93. { type: core_1.NgModule, args: [{
  94. declarations: [
  95. DxoDataSourceComponent
  96. ],
  97. exports: [
  98. DxoDataSourceComponent
  99. ],
  100. },] },
  101. ];
  102. return DxoDataSourceModule;
  103. }());
  104. exports.DxoDataSourceModule = DxoDataSourceModule;
  105. //# sourceMappingURL=data-source.js.map