UNPKG

devexpress-reporting

Version:

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

28 lines (27 loc) 1.69 kB
/** * DevExpress HTML/JS Reporting (designer\services\_formatStringService.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"; Object.defineProperty(exports, "__esModule", { value: true }); var settings_1 = require("../utils/settings"); var analytics_internal_1 = require("@devexpress/analytics-core/analytics-internal"); var FormatStringService = (function () { function FormatStringService() { } FormatStringService.saveCustomPattern = function (typeString, format) { return analytics_internal_1.ajax(settings_1.HandlerUri(), 'formatString', encodeURIComponent(JSON.stringify({ action: 'save', typeString: typeString, customFormatString: format }))); }; FormatStringService.removeCustomPattern = function (typeString, format) { return analytics_internal_1.ajax(settings_1.HandlerUri(), 'formatString', encodeURIComponent(JSON.stringify({ action: 'remove', typeString: typeString, customFormatString: format }))); }; FormatStringService.updatePreview = function (value, typeString, format) { return analytics_internal_1.ajax(settings_1.HandlerUri(), 'formatStringPreview', encodeURIComponent(JSON.stringify({ value: value, typeString: typeString, formatString: format }))); }; FormatStringService.actions = { updatePreview: FormatStringService.updatePreview, removeCustomPattern: FormatStringService.removeCustomPattern, saveCustomPattern: FormatStringService.saveCustomPattern }; return FormatStringService; }()); exports.FormatStringService = FormatStringService;