form-item.js 4.0 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 form_simple_item_1 = require("./base/form-simple-item");
  28. var validation_rule_dxi_1 = require("./validation-rule-dxi");
  29. var DxoFormItemComponent = (function (_super) {
  30. __extends(DxoFormItemComponent, _super);
  31. function DxoFormItemComponent(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(DxoFormItemComponent.prototype, "_optionPath", {
  38. get: function () {
  39. return 'formItem';
  40. },
  41. enumerable: true,
  42. configurable: true
  43. });
  44. Object.defineProperty(DxoFormItemComponent.prototype, "validationRulesChildren", {
  45. get: function () {
  46. return this._getOption('validationRules');
  47. },
  48. set: function (value) {
  49. this.setChildren('validationRules', value);
  50. },
  51. enumerable: true,
  52. configurable: true
  53. });
  54. DxoFormItemComponent.decorators = [
  55. { type: core_1.Component, args: [{
  56. selector: 'dxo-form-item',
  57. template: '',
  58. styles: [''],
  59. providers: [nested_option_1.NestedOptionHost],
  60. inputs: [
  61. 'colSpan',
  62. 'cssClass',
  63. 'dataField',
  64. 'editorOptions',
  65. 'editorType',
  66. 'helpText',
  67. 'isRequired',
  68. 'itemType',
  69. 'label',
  70. 'name',
  71. 'template',
  72. 'validationRules',
  73. 'visible',
  74. 'visibleIndex'
  75. ]
  76. },] },
  77. ];
  78. /** @nocollapse */
  79. DxoFormItemComponent.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. DxoFormItemComponent.propDecorators = {
  84. "validationRulesChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return validation_rule_dxi_1.DxiValidationRuleComponent; }),] },],
  85. };
  86. return DxoFormItemComponent;
  87. }(form_simple_item_1.DxoFormSimpleItem));
  88. exports.DxoFormItemComponent = DxoFormItemComponent;
  89. var DxoFormItemModule = (function () {
  90. function DxoFormItemModule() {
  91. }
  92. DxoFormItemModule.decorators = [
  93. { type: core_1.NgModule, args: [{
  94. declarations: [
  95. DxoFormItemComponent
  96. ],
  97. exports: [
  98. DxoFormItemComponent
  99. ],
  100. },] },
  101. ];
  102. return DxoFormItemModule;
  103. }());
  104. exports.DxoFormItemModule = DxoFormItemModule;
  105. //# sourceMappingURL=form-item.js.map