UNPKG

devexpress-reporting

Version:

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

37 lines (36 loc) 1.54 kB
/** * DevExpress HTML/JS Reporting (viewer\exportOptions\rtfExportOptionsPreview.js) * Version: 24.2.6 * Build date: Mar 18, 2025 * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * License: https://www.devexpress.com/Support/EULAs/universal.xml */ import { rtfExportOptionsSerializationInfoBase } from '../../common/exportOptions/rtfMetaData'; import { RtfExportOptions } from '../../common/exportOptions/rtfExportOptions'; import { rtfExportMode } from '../../common/exportOptions/metadata'; import { rtfExportModeMergedPreview, excludeModesForMergedDocuments } from './metadata'; const rtfExportOptionsSerializationInfoPreview = [].concat(rtfExportOptionsSerializationInfoBase); export class RtfExportOptionsPreview extends RtfExportOptions { static toJson(value, serializer, refs) { return serializer.serialize(value, value.getInfo(), refs); } getInfo() { const variableInfo = this._getVariableInfo(); return variableInfo.concat(rtfExportOptionsSerializationInfoPreview); } _getVariableInfo() { return [rtfExportMode]; } } export class RtfExportOptionsMergedPreview extends RtfExportOptionsPreview { _getVariableInfo() { return [rtfExportModeMergedPreview]; } isPropertyDisabled(name) { return super.isPropertyDisabled(name) || name === rtfExportModeMergedPreview.propertyName; } constructor(model, serializer) { super(model, serializer); this._set('rtfExportMode', excludeModesForMergedDocuments); } }