| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257 |
- "use strict";
- var __extends = (this && this.__extends) || (function () {
- var extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
- return function (d, b) {
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
- })();
- /*!
- * devextreme-angular
- * Version: 19.1.16
- * Build date: Tue Oct 18 2022
- *
- * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
- *
- * This software may be modified and distributed under the terms
- * of the MIT license. See the LICENSE file in the root of the project for details.
- *
- * https://github.com/DevExpress/devextreme-angular
- */
- Object.defineProperty(exports, "__esModule", { value: true });
- var platform_browser_1 = require("@angular/platform-browser");
- var platform_browser_2 = require("@angular/platform-browser");
- var core_1 = require("@angular/core");
- var resizable_1 = require("devextreme/ui/resizable");
- var component_1 = require("../core/component");
- var template_host_1 = require("../core/template-host");
- var integration_1 = require("../core/integration");
- var template_1 = require("../core/template");
- var nested_option_1 = require("../core/nested-option");
- var watcher_helper_1 = require("../core/watcher-helper");
- /**
- * The Resizable widget enables its content to be resizable in the UI.
- */
- var DxResizableComponent = (function (_super) {
- __extends(DxResizableComponent, _super);
- function DxResizableComponent(elementRef, ngZone, templateHost, _watcherHelper, optionHost, transferState, platformId) {
- var _this = _super.call(this, elementRef, ngZone, templateHost, _watcherHelper, transferState, platformId) || this;
- _this._createEventEmitters([
- { subscribe: 'disposing', emit: 'onDisposing' },
- { subscribe: 'initialized', emit: 'onInitialized' },
- { subscribe: 'optionChanged', emit: 'onOptionChanged' },
- { subscribe: 'resize', emit: 'onResize' },
- { subscribe: 'resizeEnd', emit: 'onResizeEnd' },
- { subscribe: 'resizeStart', emit: 'onResizeStart' },
- { emit: 'elementAttrChange' },
- { emit: 'handlesChange' },
- { emit: 'heightChange' },
- { emit: 'maxHeightChange' },
- { emit: 'maxWidthChange' },
- { emit: 'minHeightChange' },
- { emit: 'minWidthChange' },
- { emit: 'rtlEnabledChange' },
- { emit: 'widthChange' }
- ]);
- optionHost.setHost(_this);
- return _this;
- }
- Object.defineProperty(DxResizableComponent.prototype, "elementAttr", {
- get: /**
- * Specifies the attributes to be attached to the widget's root element.
- */
- function () {
- return this._getOption('elementAttr');
- },
- set: function (value) {
- this._setOption('elementAttr', value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DxResizableComponent.prototype, "handles", {
- get: /**
- * Specifies which borders of the widget element are used as a handle.
- */
- function () {
- return this._getOption('handles');
- },
- set: function (value) {
- this._setOption('handles', value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DxResizableComponent.prototype, "height", {
- get: /**
- * Specifies the widget's height.
- */
- function () {
- return this._getOption('height');
- },
- set: function (value) {
- this._setOption('height', value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DxResizableComponent.prototype, "maxHeight", {
- get: /**
- * Specifies the upper height boundary for resizing.
- */
- function () {
- return this._getOption('maxHeight');
- },
- set: function (value) {
- this._setOption('maxHeight', value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DxResizableComponent.prototype, "maxWidth", {
- get: /**
- * Specifies the upper width boundary for resizing.
- */
- function () {
- return this._getOption('maxWidth');
- },
- set: function (value) {
- this._setOption('maxWidth', value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DxResizableComponent.prototype, "minHeight", {
- get: /**
- * Specifies the lower height boundary for resizing.
- */
- function () {
- return this._getOption('minHeight');
- },
- set: function (value) {
- this._setOption('minHeight', value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DxResizableComponent.prototype, "minWidth", {
- get: /**
- * Specifies the lower width boundary for resizing.
- */
- function () {
- return this._getOption('minWidth');
- },
- set: function (value) {
- this._setOption('minWidth', value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DxResizableComponent.prototype, "rtlEnabled", {
- get: /**
- * Switches the widget to a right-to-left representation.
- */
- function () {
- return this._getOption('rtlEnabled');
- },
- set: function (value) {
- this._setOption('rtlEnabled', value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DxResizableComponent.prototype, "width", {
- get: /**
- * Specifies the widget's width.
- */
- function () {
- return this._getOption('width');
- },
- set: function (value) {
- this._setOption('width', value);
- },
- enumerable: true,
- configurable: true
- });
- DxResizableComponent.prototype._createInstance = function (element, options) {
- return new resizable_1.default(element, options);
- };
- DxResizableComponent.prototype.ngOnDestroy = function () {
- this._destroyWidget();
- };
- DxResizableComponent.decorators = [
- { type: core_1.Component, args: [{
- selector: 'dx-resizable',
- template: '<ng-content></ng-content>',
- providers: [
- template_host_1.DxTemplateHost,
- watcher_helper_1.WatcherHelper,
- nested_option_1.NestedOptionHost
- ]
- },] },
- ];
- /** @nocollapse */
- DxResizableComponent.ctorParameters = function () { return [
- { type: core_1.ElementRef, },
- { type: core_1.NgZone, },
- { type: template_host_1.DxTemplateHost, },
- { type: watcher_helper_1.WatcherHelper, },
- { type: nested_option_1.NestedOptionHost, },
- { type: platform_browser_2.TransferState, },
- { type: undefined, decorators: [{ type: core_1.Inject, args: [core_1.PLATFORM_ID,] },] },
- ]; };
- DxResizableComponent.propDecorators = {
- "elementAttr": [{ type: core_1.Input },],
- "handles": [{ type: core_1.Input },],
- "height": [{ type: core_1.Input },],
- "maxHeight": [{ type: core_1.Input },],
- "maxWidth": [{ type: core_1.Input },],
- "minHeight": [{ type: core_1.Input },],
- "minWidth": [{ type: core_1.Input },],
- "rtlEnabled": [{ type: core_1.Input },],
- "width": [{ type: core_1.Input },],
- "onDisposing": [{ type: core_1.Output },],
- "onInitialized": [{ type: core_1.Output },],
- "onOptionChanged": [{ type: core_1.Output },],
- "onResize": [{ type: core_1.Output },],
- "onResizeEnd": [{ type: core_1.Output },],
- "onResizeStart": [{ type: core_1.Output },],
- "elementAttrChange": [{ type: core_1.Output },],
- "handlesChange": [{ type: core_1.Output },],
- "heightChange": [{ type: core_1.Output },],
- "maxHeightChange": [{ type: core_1.Output },],
- "maxWidthChange": [{ type: core_1.Output },],
- "minHeightChange": [{ type: core_1.Output },],
- "minWidthChange": [{ type: core_1.Output },],
- "rtlEnabledChange": [{ type: core_1.Output },],
- "widthChange": [{ type: core_1.Output },],
- };
- return DxResizableComponent;
- }(component_1.DxComponent));
- exports.DxResizableComponent = DxResizableComponent;
- var DxResizableModule = (function () {
- function DxResizableModule() {
- }
- DxResizableModule.decorators = [
- { type: core_1.NgModule, args: [{
- imports: [
- integration_1.DxIntegrationModule,
- template_1.DxTemplateModule,
- platform_browser_1.BrowserTransferStateModule
- ],
- declarations: [
- DxResizableComponent
- ],
- exports: [
- DxResizableComponent,
- template_1.DxTemplateModule
- ]
- },] },
- ];
- return DxResizableModule;
- }());
- exports.DxResizableModule = DxResizableModule;
- //# sourceMappingURL=resizable.js.map
|