form.js 5.0 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 form_options_1 = require("./base/form-options");
  28. var item_dxi_1 = require("./item-dxi");
  29. var DxoFormComponent = (function (_super) {
  30. __extends(DxoFormComponent, _super);
  31. function DxoFormComponent(parentOptionHost, optionHost) {
  32. var _this = _super.call(this) || this;
  33. _this._createEventEmitters([
  34. { emit: 'formDataChange' }
  35. ]);
  36. parentOptionHost.setNestedOption(_this);
  37. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  38. return _this;
  39. }
  40. Object.defineProperty(DxoFormComponent.prototype, "_optionPath", {
  41. get: function () {
  42. return 'form';
  43. },
  44. enumerable: true,
  45. configurable: true
  46. });
  47. Object.defineProperty(DxoFormComponent.prototype, "itemsChildren", {
  48. get: function () {
  49. return this._getOption('items');
  50. },
  51. set: function (value) {
  52. this.setChildren('items', value);
  53. },
  54. enumerable: true,
  55. configurable: true
  56. });
  57. DxoFormComponent.decorators = [
  58. { type: core_1.Component, args: [{
  59. selector: 'dxo-form',
  60. template: '',
  61. styles: [''],
  62. providers: [nested_option_1.NestedOptionHost],
  63. inputs: [
  64. 'accessKey',
  65. 'activeStateEnabled',
  66. 'alignItemLabels',
  67. 'alignItemLabelsInAllGroups',
  68. 'colCount',
  69. 'colCountByScreen',
  70. 'customizeItem',
  71. 'disabled',
  72. 'elementAttr',
  73. 'focusStateEnabled',
  74. 'formData',
  75. 'height',
  76. 'hint',
  77. 'hoverStateEnabled',
  78. 'items',
  79. 'labelLocation',
  80. 'minColWidth',
  81. 'onContentReady',
  82. 'onDisposing',
  83. 'onEditorEnterKey',
  84. 'onFieldDataChanged',
  85. 'onInitialized',
  86. 'onOptionChanged',
  87. 'optionalMark',
  88. 'readOnly',
  89. 'requiredMark',
  90. 'requiredMessage',
  91. 'rtlEnabled',
  92. 'screenByWidth',
  93. 'scrollingEnabled',
  94. 'showColonAfterLabel',
  95. 'showOptionalMark',
  96. 'showRequiredMark',
  97. 'showValidationSummary',
  98. 'tabIndex',
  99. 'validationGroup',
  100. 'visible',
  101. 'width'
  102. ]
  103. },] },
  104. ];
  105. /** @nocollapse */
  106. DxoFormComponent.ctorParameters = function () { return [
  107. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  108. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  109. ]; };
  110. DxoFormComponent.propDecorators = {
  111. "formDataChange": [{ type: core_1.Output },],
  112. "itemsChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return item_dxi_1.DxiItemComponent; }),] },],
  113. };
  114. return DxoFormComponent;
  115. }(form_options_1.DxoFormOptions));
  116. exports.DxoFormComponent = DxoFormComponent;
  117. var DxoFormModule = (function () {
  118. function DxoFormModule() {
  119. }
  120. DxoFormModule.decorators = [
  121. { type: core_1.NgModule, args: [{
  122. declarations: [
  123. DxoFormComponent
  124. ],
  125. exports: [
  126. DxoFormComponent
  127. ],
  128. },] },
  129. ];
  130. return DxoFormModule;
  131. }());
  132. exports.DxoFormModule = DxoFormModule;
  133. //# sourceMappingURL=form.js.map