/* * * (c) Copyright Ascensio System SIA 2010-2019 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) * version 3 as published by the Free Software Foundation. In accordance with * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect * that Ascensio System SIA expressly excludes the warranty of non-infringement * of any third-party rights. * * This program is distributed WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions * of the Program must display Appropriate Legal Notices, as required under * Section 5 of the GNU AGPL version 3. * * Pursuant to Section 7(b) of the License you must retain the original Product * logo when distributing the program. Pursuant to Section 7(e) we decline to * grant you any rights under trademark law for use of our trademarks. * * All the Product's GUI elements, including illustrations and icon sets, as * well as technical writing content are licensed under the terms of the * Creative Commons Attribution-ShareAlike 4.0 International. See the License * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode * */ /** * ListSettingsDialog.js * * Created by Julia Radzhabova on 03.12.2019 * Copyright (c) 2019 Ascensio System SIA. All rights reserved. * */ if (Common === undefined) var Common = {}; define([ 'common/main/lib/component/Window', 'common/main/lib/component/MetricSpinner', 'common/main/lib/component/ThemeColorPalette', 'common/main/lib/component/ColorButton', 'common/main/lib/component/ComboBox', 'common/main/lib/view/SymbolTableDialog', 'documenteditor/main/app/view/ListTypesAdvanced' ], function () { 'use strict'; var nMaxRecent = 5; DE.Views.ListSettingsDialog = Common.UI.Window.extend(_.extend({ options: { type: 0, // 0 - markers, 1 - numbers, 2 - multilevel width: 300, height: 460, style: 'min-width: 240px;', cls: 'modal-dlg', split: false, buttons: null }, initialize : function(options) { this.type = options.type || 0; this.extended = true; this.rightPanelWidth = 210; _.extend(this.options, { title: this.txtTitle, height: (this.type===2) ? 451 : (this.type===1 ? 470 : 424), width: (this.type===2) ? 415 + (this.extended ? this.rightPanelWidth : 0) : 300 }, options || {}); this.template = [ '
',
' ',
'<% if (type == 2) { %>',
' ',
' ',
'
| ',
'<% if (type == 2) { %>',
'',
' ',
' ',
'
| ',
'<% } %>',
'