UNPKG

devexpress-reporting

Version:

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

36 lines (35 loc) 1.52 kB
/** * DevExpress HTML/JS Reporting (viewer\exportOptions\htmlExportOptionsPreview.js) * Version: 24.2.7 * Build date: Apr 29, 2025 * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * License: https://www.devexpress.com/Support/EULAs/universal.xml */ import { htmlExportOptionsSerializationInfoBase } from '../../common/exportOptions/htmlMetaData'; import { HtmlExportOptions } from '../../common/exportOptions/htmlExportOptions'; import { htmlExportModePreview, htmlExportModeMergedPreview, excludeModesForMergedDocuments } from './metadata'; const htmlExportOptionsSerializationInfoPreview = [].concat(htmlExportOptionsSerializationInfoBase); export class HtmlExportOptionsPreview extends HtmlExportOptions { static toJson(value, serializer, refs) { return serializer.serialize(value, value.getInfo(), refs); } getInfo() { const variableInfo = this._getVariableInfo(); return variableInfo.concat(htmlExportOptionsSerializationInfoPreview); } _getVariableInfo() { return [htmlExportModePreview]; } } export class HtmlExportOptionsMergedPreview extends HtmlExportOptionsPreview { _getVariableInfo() { return [htmlExportModeMergedPreview]; } isPropertyDisabled(name) { return super.isPropertyDisabled(name) || name === htmlExportModeMergedPreview.propertyName; } constructor(model, serializer) { super(model, serializer); this._set('htmlExportMode', excludeModesForMergedDocuments); } }