marker-dxi.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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 DxiMarkerComponent = (function (_super) {
  30. __extends(DxiMarkerComponent, _super);
  31. function DxiMarkerComponent(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(DxiMarkerComponent.prototype, "iconSrc", {
  38. get: function () {
  39. return this._getOption('iconSrc');
  40. },
  41. set: function (value) {
  42. this._setOption('iconSrc', value);
  43. },
  44. enumerable: true,
  45. configurable: true
  46. });
  47. Object.defineProperty(DxiMarkerComponent.prototype, "location", {
  48. get: function () {
  49. return this._getOption('location');
  50. },
  51. set: function (value) {
  52. this._setOption('location', value);
  53. },
  54. enumerable: true,
  55. configurable: true
  56. });
  57. Object.defineProperty(DxiMarkerComponent.prototype, "onClick", {
  58. get: function () {
  59. return this._getOption('onClick');
  60. },
  61. set: function (value) {
  62. this._setOption('onClick', value);
  63. },
  64. enumerable: true,
  65. configurable: true
  66. });
  67. Object.defineProperty(DxiMarkerComponent.prototype, "tooltip", {
  68. get: function () {
  69. return this._getOption('tooltip');
  70. },
  71. set: function (value) {
  72. this._setOption('tooltip', value);
  73. },
  74. enumerable: true,
  75. configurable: true
  76. });
  77. Object.defineProperty(DxiMarkerComponent.prototype, "_optionPath", {
  78. get: function () {
  79. return 'markers';
  80. },
  81. enumerable: true,
  82. configurable: true
  83. });
  84. Object.defineProperty(DxiMarkerComponent.prototype, "locationChildren", {
  85. get: function () {
  86. return this._getOption('location');
  87. },
  88. set: function (value) {
  89. this.setChildren('location', value);
  90. },
  91. enumerable: true,
  92. configurable: true
  93. });
  94. DxiMarkerComponent.decorators = [
  95. { type: core_1.Component, args: [{
  96. selector: 'dxi-marker',
  97. template: '',
  98. styles: [''],
  99. providers: [nested_option_1.NestedOptionHost]
  100. },] },
  101. ];
  102. /** @nocollapse */
  103. DxiMarkerComponent.ctorParameters = function () { return [
  104. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  105. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  106. ]; };
  107. DxiMarkerComponent.propDecorators = {
  108. "iconSrc": [{ type: core_1.Input },],
  109. "location": [{ type: core_1.Input },],
  110. "onClick": [{ type: core_1.Input },],
  111. "tooltip": [{ type: core_1.Input },],
  112. "locationChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return location_dxi_1.DxiLocationComponent; }),] },],
  113. };
  114. return DxiMarkerComponent;
  115. }(nested_option_2.CollectionNestedOption));
  116. exports.DxiMarkerComponent = DxiMarkerComponent;
  117. var DxiMarkerModule = (function () {
  118. function DxiMarkerModule() {
  119. }
  120. DxiMarkerModule.decorators = [
  121. { type: core_1.NgModule, args: [{
  122. declarations: [
  123. DxiMarkerComponent
  124. ],
  125. exports: [
  126. DxiMarkerComponent
  127. ],
  128. },] },
  129. ];
  130. return DxiMarkerModule;
  131. }());
  132. exports.DxiMarkerModule = DxiMarkerModule;
  133. //# sourceMappingURL=marker-dxi.js.map