toolbar.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 html_editor_toolbar_1 = require("./base/html-editor-toolbar");
  28. var item_dxi_1 = require("./item-dxi");
  29. var DxoToolbarComponent = (function (_super) {
  30. __extends(DxoToolbarComponent, _super);
  31. function DxoToolbarComponent(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(DxoToolbarComponent.prototype, "_optionPath", {
  38. get: function () {
  39. return 'toolbar';
  40. },
  41. enumerable: true,
  42. configurable: true
  43. });
  44. Object.defineProperty(DxoToolbarComponent.prototype, "itemsChildren", {
  45. get: function () {
  46. return this._getOption('items');
  47. },
  48. set: function (value) {
  49. this.setChildren('items', value);
  50. },
  51. enumerable: true,
  52. configurable: true
  53. });
  54. DxoToolbarComponent.decorators = [
  55. { type: core_1.Component, args: [{
  56. selector: 'dxo-toolbar',
  57. template: '',
  58. styles: [''],
  59. providers: [nested_option_1.NestedOptionHost],
  60. inputs: [
  61. 'container',
  62. 'items'
  63. ]
  64. },] },
  65. ];
  66. /** @nocollapse */
  67. DxoToolbarComponent.ctorParameters = function () { return [
  68. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  69. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  70. ]; };
  71. DxoToolbarComponent.propDecorators = {
  72. "itemsChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return item_dxi_1.DxiItemComponent; }),] },],
  73. };
  74. return DxoToolbarComponent;
  75. }(html_editor_toolbar_1.DxoHtmlEditorToolbar));
  76. exports.DxoToolbarComponent = DxoToolbarComponent;
  77. var DxoToolbarModule = (function () {
  78. function DxoToolbarModule() {
  79. }
  80. DxoToolbarModule.decorators = [
  81. { type: core_1.NgModule, args: [{
  82. declarations: [
  83. DxoToolbarComponent
  84. ],
  85. exports: [
  86. DxoToolbarComponent
  87. ],
  88. },] },
  89. ];
  90. return DxoToolbarModule;
  91. }());
  92. exports.DxoToolbarModule = DxoToolbarModule;
  93. //# sourceMappingURL=toolbar.js.map