route-dxi.js 5.0 KB

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