UNPKG

devexpress-reporting

Version:

DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.

53 lines (52 loc) 2.56 kB
/** * DevExpress HTML/JS Reporting (designer\helpers\_designControlsHelper.js) * Version: 20.2.13 * Build date: Apr 10, 2023 * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED * License: https://www.devexpress.com/Support/EULAs/universal.xml */ "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var analytics_internal_1 = require("@devexpress/analytics-core/analytics-internal"); var calculatedField_1 = require("../dataObjects/calculatedField"); var parameter_1 = require("../dataObjects/parameters/parameter"); var DesignControlsHelper = (function (_super) { __extends(DesignControlsHelper, _super); function DesignControlsHelper(target, selection) { return _super.call(this, target, [{ added: function (control) { }, deleted: function (control) { control.surface === selection.focused() && selection.focused(analytics_internal_1.findNextSelection(control.surface)); } }], ['controls', 'bands', 'crossBandControls', 'rows', 'cells', 'fields', 'styles', 'parameters', 'formattingRuleSheet', 'calculatedFields', 'components']) || this; } DesignControlsHelper.prototype.dispose = function () { this._xrPdfSignatureCollection = []; _super.prototype.dispose.call(this); }; DesignControlsHelper.prototype.getNameProperty = function (model) { if (model instanceof parameter_1.Parameter) return model.parameterName; if (model instanceof calculatedField_1.CalculatedField) return model.calculatedFieldName; return _super.prototype.getNameProperty.call(this, model); }; DesignControlsHelper.prototype._setName = function (value) { if (value !== this.target) { _super.prototype._setName.call(this, value); } }; return DesignControlsHelper; }(analytics_internal_1.DesignControlsHelper)); exports.DesignControlsHelper = DesignControlsHelper;