| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- "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 speed_dial_action_1 = require("devextreme/ui/speed_dial_action");
- 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 SpeedDialAction is a button that performs a custom action. It can be represented by a Floating Action Button (FAB) or a button in a speed dial menu opened with the FAB.
- */
- var DxSpeedDialActionComponent = (function (_super) {
- __extends(DxSpeedDialActionComponent, _super);
- function DxSpeedDialActionComponent(elementRef, ngZone, templateHost, _watcherHelper, optionHost, transferState, platformId) {
- var _this = _super.call(this, elementRef, ngZone, templateHost, _watcherHelper, transferState, platformId) || this;
- _this._createEventEmitters([
- { subscribe: 'click', emit: 'onClick' },
- { subscribe: 'contentReady', emit: 'onContentReady' },
- { subscribe: 'disposing', emit: 'onDisposing' },
- { subscribe: 'initialized', emit: 'onInitialized' },
- { subscribe: 'optionChanged', emit: 'onOptionChanged' },
- { emit: 'accessKeyChange' },
- { emit: 'activeStateEnabledChange' },
- { emit: 'elementAttrChange' },
- { emit: 'focusStateEnabledChange' },
- { emit: 'hintChange' },
- { emit: 'hoverStateEnabledChange' },
- { emit: 'iconChange' },
- { emit: 'rtlEnabledChange' },
- { emit: 'tabIndexChange' }
- ]);
- optionHost.setHost(_this);
- return _this;
- }
- Object.defineProperty(DxSpeedDialActionComponent.prototype, "accessKey", {
- get: /**
- * Specifies the shortcut key that sets focus on the widget.
- */
- function () {
- return this._getOption('accessKey');
- },
- set: function (value) {
- this._setOption('accessKey', value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DxSpeedDialActionComponent.prototype, "activeStateEnabled", {
- get: /**
- * Specifies whether or not the widget changes its state when interacting with a user.
- */
- function () {
- return this._getOption('activeStateEnabled');
- },
- set: function (value) {
- this._setOption('activeStateEnabled', value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DxSpeedDialActionComponent.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(DxSpeedDialActionComponent.prototype, "focusStateEnabled", {
- get: /**
- * Specifies whether the widget can be focused using keyboard navigation.
- */
- function () {
- return this._getOption('focusStateEnabled');
- },
- set: function (value) {
- this._setOption('focusStateEnabled', value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DxSpeedDialActionComponent.prototype, "hint", {
- get: /**
- * Specifies text for a hint that appears when a user pauses on the widget.
- */
- function () {
- return this._getOption('hint');
- },
- set: function (value) {
- this._setOption('hint', value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DxSpeedDialActionComponent.prototype, "hoverStateEnabled", {
- get: /**
- * Specifies whether the widget changes its state when a user pauses on it.
- */
- function () {
- return this._getOption('hoverStateEnabled');
- },
- set: function (value) {
- this._setOption('hoverStateEnabled', value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DxSpeedDialActionComponent.prototype, "icon", {
- get: /**
- * Specifies the icon the FAB or speed dial action button displays.
- */
- function () {
- return this._getOption('icon');
- },
- set: function (value) {
- this._setOption('icon', value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DxSpeedDialActionComponent.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(DxSpeedDialActionComponent.prototype, "tabIndex", {
- get: /**
- * Specifies the number of the element when the Tab key is used for navigating.
- */
- function () {
- return this._getOption('tabIndex');
- },
- set: function (value) {
- this._setOption('tabIndex', value);
- },
- enumerable: true,
- configurable: true
- });
- DxSpeedDialActionComponent.prototype._createInstance = function (element, options) {
- return new speed_dial_action_1.default(element, options);
- };
- DxSpeedDialActionComponent.prototype.ngOnDestroy = function () {
- this._destroyWidget();
- };
- DxSpeedDialActionComponent.decorators = [
- { type: core_1.Component, args: [{
- selector: 'dx-speed-dial-action',
- template: '',
- providers: [
- template_host_1.DxTemplateHost,
- watcher_helper_1.WatcherHelper,
- nested_option_1.NestedOptionHost
- ]
- },] },
- ];
- /** @nocollapse */
- DxSpeedDialActionComponent.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,] },] },
- ]; };
- DxSpeedDialActionComponent.propDecorators = {
- "accessKey": [{ type: core_1.Input },],
- "activeStateEnabled": [{ type: core_1.Input },],
- "elementAttr": [{ type: core_1.Input },],
- "focusStateEnabled": [{ type: core_1.Input },],
- "hint": [{ type: core_1.Input },],
- "hoverStateEnabled": [{ type: core_1.Input },],
- "icon": [{ type: core_1.Input },],
- "rtlEnabled": [{ type: core_1.Input },],
- "tabIndex": [{ type: core_1.Input },],
- "onClick": [{ type: core_1.Output },],
- "onContentReady": [{ type: core_1.Output },],
- "onDisposing": [{ type: core_1.Output },],
- "onInitialized": [{ type: core_1.Output },],
- "onOptionChanged": [{ type: core_1.Output },],
- "accessKeyChange": [{ type: core_1.Output },],
- "activeStateEnabledChange": [{ type: core_1.Output },],
- "elementAttrChange": [{ type: core_1.Output },],
- "focusStateEnabledChange": [{ type: core_1.Output },],
- "hintChange": [{ type: core_1.Output },],
- "hoverStateEnabledChange": [{ type: core_1.Output },],
- "iconChange": [{ type: core_1.Output },],
- "rtlEnabledChange": [{ type: core_1.Output },],
- "tabIndexChange": [{ type: core_1.Output },],
- };
- return DxSpeedDialActionComponent;
- }(component_1.DxComponent));
- exports.DxSpeedDialActionComponent = DxSpeedDialActionComponent;
- var DxSpeedDialActionModule = (function () {
- function DxSpeedDialActionModule() {
- }
- DxSpeedDialActionModule.decorators = [
- { type: core_1.NgModule, args: [{
- imports: [
- integration_1.DxIntegrationModule,
- template_1.DxTemplateModule,
- platform_browser_1.BrowserTransferStateModule
- ],
- declarations: [
- DxSpeedDialActionComponent
- ],
- exports: [
- DxSpeedDialActionComponent,
- template_1.DxTemplateModule
- ]
- },] },
- ];
- return DxSpeedDialActionModule;
- }());
- exports.DxSpeedDialActionModule = DxSpeedDialActionModule;
- //# sourceMappingURL=speed-dial-action.js.map
|