Skip to content

Commit

Permalink
[de] delayed loading for "Toolbar" component dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
sekiju committed Mar 29, 2024
1 parent cb1bfde commit 2ed4c1c
Show file tree
Hide file tree
Showing 24 changed files with 49 additions and 94 deletions.
4 changes: 1 addition & 3 deletions apps/common/main/lib/view/CopyWarningDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@
if (Common === undefined)
var Common = {};

define([
'common/main/lib/component/Window'
], function () { 'use strict';
define([], function () { 'use strict';

Common.Views.CopyWarningDialog = Common.UI.Window.extend(_.extend({
options: {
Expand Down
4 changes: 1 addition & 3 deletions apps/common/main/lib/view/ImageFromUrlDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@
*
*/

define([
'common/main/lib/component/Window'
], function () { 'use strict';
define([], function () { 'use strict';

Common.Views.ImageFromUrlDialog = Common.UI.Window.extend(_.extend({
options: {
Expand Down
4 changes: 1 addition & 3 deletions apps/common/main/lib/view/InsertTableDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
if (Common === undefined)
var Common = {};

define([
'common/main/lib/component/Window'
], function () { 'use strict';
define([], function () { 'use strict';

Common.Views.InsertTableDialog = Common.UI.Window.extend(_.extend({
options: {
Expand Down
5 changes: 1 addition & 4 deletions apps/common/main/lib/view/SelectFileDlg.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@
* Date: 09.02.15
*/

define([
'common/main/lib/component/Window',
'common/main/lib/component/LoadMask'
], function () { 'use strict';
define([], function () { 'use strict';

Common.Views.SelectFileDlg = Common.UI.Window.extend(_.extend({
initialize : function(options) {
Expand Down
7 changes: 1 addition & 6 deletions apps/common/main/lib/view/SymbolTableDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@
*/
if (Common === undefined)
var Common = {};
define([
'common/main/lib/util/utils',
'common/main/lib/util/character',
'common/main/lib/component/InputField',
'common/main/lib/component/Window'
], function () { 'use strict';
define([], function () { 'use strict';

var oRangeNames = {};
oRangeNames[1] = 'Basic Latin';
Expand Down
13 changes: 0 additions & 13 deletions apps/documenteditor/main/app/controller/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,9 @@
define([
'core',
'common/main/lib/component/Window',
'common/main/lib/view/CopyWarningDialog',
'common/main/lib/view/ImageFromUrlDialog',
'common/main/lib/view/InsertTableDialog',
'common/main/lib/view/SelectFileDlg',
'common/main/lib/view/SymbolTableDialog',
'common/main/lib/util/define',
'documenteditor/main/app/view/Toolbar',
'documenteditor/main/app/view/PageMarginsDialog',
'documenteditor/main/app/view/PageSizeDialog',
'documenteditor/main/app/controller/PageLayout',
'documenteditor/main/app/view/CustomColumnsDialog',
'documenteditor/main/app/view/ControlSettingsDialog',
'documenteditor/main/app/view/ListSettingsDialog',
'documenteditor/main/app/view/DateTimeDialog',
'documenteditor/main/app/view/LineNumbersDialog',
'documenteditor/main/app/view/HyphenationDialog'
], function () {
'use strict';

Expand Down
9 changes: 2 additions & 7 deletions apps/documenteditor/main/app/view/ControlSettingsDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,8 @@
*
*/

define([ 'text!documenteditor/main/app/template/ControlSettingsDialog.template',
'common/main/lib/util/utils',
'common/main/lib/component/CheckBox',
'common/main/lib/component/InputField',
'common/main/lib/view/AdvancedSettingsWindow',
'common/main/lib/view/SymbolTableDialog',
'documenteditor/main/app/view/EditListItemDialog'
define([
'text!documenteditor/main/app/template/ControlSettingsDialog.template'
], function (contentTemplate) { 'use strict';

DE.Views.ControlSettingsDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({
Expand Down
6 changes: 1 addition & 5 deletions apps/documenteditor/main/app/view/CustomColumnsDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@
*
*/

define([
'common/main/lib/component/Window',
'common/main/lib/component/MetricSpinner',
'common/main/lib/component/CheckBox'
], function () { 'use strict';
define([], function () { 'use strict';

DE.Views.CustomColumnsDialog = Common.UI.Window.extend(_.extend({
options: {
Expand Down
6 changes: 1 addition & 5 deletions apps/documenteditor/main/app/view/DateTimeDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@
*
*/

define([
'common/main/lib/component/Window',
'common/main/lib/component/ComboBox',
'common/main/lib/component/ListView'
], function () {
define([], function () {
'use strict';

DE.Views.DateTimeDialog = Common.UI.Window.extend(_.extend({
Expand Down
3 changes: 0 additions & 3 deletions apps/documenteditor/main/app/view/DocumentHolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ define([
'common/main/lib/util/utils',
'common/main/lib/component/Menu',
'common/main/lib/component/Calendar',
'common/main/lib/view/InsertTableDialog',
'common/main/lib/view/CopyWarningDialog',
'documenteditor/main/app/view/ControlSettingsDialog',
'documenteditor/main/app/view/NumberingValueDialog',
'documenteditor/main/app/view/CellsAddDialog',
'documenteditor/main/app/view/ListIndentsDialog'
Expand Down
5 changes: 1 addition & 4 deletions apps/documenteditor/main/app/view/EditListItemDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@
*
*/

define([
'common/main/lib/component/Window',
'common/main/lib/component/InputField'
], function () { 'use strict';
define([], function () { 'use strict';

DE.Views.EditListItemDialog = Common.UI.Window.extend(_.extend({
options: {
Expand Down
3 changes: 1 addition & 2 deletions apps/documenteditor/main/app/view/FormSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ define([
'common/main/lib/component/ComboBox',
'common/main/lib/component/MetricSpinner',
'common/main/lib/component/TextareaField',
'common/main/lib/component/CheckBox',
'common/main/lib/view/ImageFromUrlDialog'
'common/main/lib/component/CheckBox'
], function (menuTemplate, $, _, Backbone) {
'use strict';

Expand Down
6 changes: 1 addition & 5 deletions apps/documenteditor/main/app/view/HyphenationDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@
*
*/

define([
'common/main/lib/component/Window',
'common/main/lib/component/CheckBox',
'common/main/lib/component/MetricSpinner'
], function () { 'use strict';
define([], function () { 'use strict';

DE.Views.HyphenationDialog = Common.UI.Window.extend(_.extend({
options: {
Expand Down
3 changes: 1 addition & 2 deletions apps/documenteditor/main/app/view/ImageSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ define([
'jquery',
'underscore',
'backbone',
'common/main/lib/component/Button',
'common/main/lib/view/ImageFromUrlDialog',
'common/main/lib/component/Button'
], function (menuTemplate, $, _, Backbone) {
'use strict';

Expand Down
6 changes: 1 addition & 5 deletions apps/documenteditor/main/app/view/LineNumbersDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@
*
*/

define([
'common/main/lib/component/Window',
'common/main/lib/component/CheckBox',
'common/main/lib/component/MetricSpinner'
], function () { 'use strict';
define([], function () { 'use strict';

DE.Views.LineNumbersDialog = Common.UI.Window.extend(_.extend({
options: {
Expand Down
6 changes: 0 additions & 6 deletions apps/documenteditor/main/app/view/ListSettingsDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ 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;
Expand Down
4 changes: 1 addition & 3 deletions apps/documenteditor/main/app/view/ListTypesAdvanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
*/


define([
'common/main/lib/component/Window'
], function () { 'use strict';
define([], function () { 'use strict';

DE.Views.ListTypesAdvanced = Common.UI.Window.extend(_.extend({

Expand Down
1 change: 0 additions & 1 deletion apps/documenteditor/main/app/view/MailMergeSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ define([
'common/main/lib/component/Button',
'common/main/lib/component/CheckBox',
'common/main/lib/view/SaveAsDlg',
'common/main/lib/view/SelectFileDlg',
'documenteditor/main/app/view/MailMergeEmailDlg'
], function (menuTemplate, $, _, Backbone) {
'use strict';
Expand Down
5 changes: 1 addition & 4 deletions apps/documenteditor/main/app/view/PageMarginsDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@
*
*/

define([
'common/main/lib/component/Window',
'common/main/lib/component/MetricSpinner'
], function () { 'use strict';
define([], function () { 'use strict';

DE.Views.PageMarginsDialog = Common.UI.Window.extend(_.extend({
options: {
Expand Down
5 changes: 1 addition & 4 deletions apps/documenteditor/main/app/view/PageSizeDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@
*
*/

define([
'common/main/lib/component/Window',
'common/main/lib/component/MetricSpinner'
], function () { 'use strict';
define([], function () { 'use strict';

DE.Views.PageSizeDialog = Common.UI.Window.extend(_.extend({
options: {
Expand Down
3 changes: 1 addition & 2 deletions apps/documenteditor/main/app/view/ShapeSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ define([
'common/main/lib/component/ColorButton',
'common/main/lib/component/ComboDataView',
'common/main/lib/component/Slider',
'common/main/lib/component/MultiSliderGradient',
'common/main/lib/view/ImageFromUrlDialog',
'common/main/lib/component/MultiSliderGradient'
], function (menuTemplate, $, _, Backbone) {
'use strict';

Expand Down
3 changes: 1 addition & 2 deletions apps/documenteditor/main/app/view/TableSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ define([
'common/main/lib/component/ThemeColorPalette',
'common/main/lib/component/ColorButton',
'common/main/lib/component/ComboBorderSize',
'common/main/lib/component/ComboDataView',
'common/main/lib/view/InsertTableDialog'
'common/main/lib/component/ComboDataView'
], function (menuTemplate, $, _, Backbone) {
'use strict';

Expand Down
16 changes: 15 additions & 1 deletion apps/documenteditor/main/app_dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ require([
'common/main/lib/controller/ScreenReaderFocus',
'common/main/lib/component/ComboBoxDataView',
'common/main/lib/view/OptionsDialog',
'common/main/lib/view/CopyWarningDialog',
'common/main/lib/view/ImageFromUrlDialog',
'common/main/lib/view/InsertTableDialog',
'common/main/lib/view/SelectFileDlg',
'common/main/lib/view/SymbolTableDialog',
'documenteditor/main/app/view/ParagraphSettingsAdvanced',
'documenteditor/main/app/view/ImageSettingsAdvanced',
'documenteditor/main/app/view/TableSettingsAdvanced',
Expand All @@ -225,7 +230,16 @@ require([
'documenteditor/main/app/view/BookmarksDialog',
'documenteditor/main/app/view/NotesRemoveDialog',
'documenteditor/main/app/view/CrossReferenceDialog',
'documenteditor/main/app/view/TableOfContentsSettings'
'documenteditor/main/app/view/TableOfContentsSettings',
'documenteditor/main/app/view/EditListItemDialog',
'documenteditor/main/app/view/ControlSettingsDialog',
'documenteditor/main/app/view/DateTimeDialog',
'documenteditor/main/app/view/PageMarginsDialog',
'documenteditor/main/app/view/PageSizeDialog',
'documenteditor/main/app/view/CustomColumnsDialog',
'documenteditor/main/app/view/ListSettingsDialog',
'documenteditor/main/app/view/LineNumbersDialog',
'documenteditor/main/app/view/HyphenationDialog',
];

window.compareVersions = true;
Expand Down
16 changes: 15 additions & 1 deletion apps/documenteditor/main/app_pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ require([
'common/main/lib/controller/ScreenReaderFocus',
'common/main/lib/component/ComboBoxDataView',
'common/main/lib/view/OptionsDialog',
'common/main/lib/view/CopyWarningDialog',
'common/main/lib/view/ImageFromUrlDialog',
'common/main/lib/view/InsertTableDialog',
'common/main/lib/view/SelectFileDlg',
'common/main/lib/view/SymbolTableDialog',
'documenteditor/main/app/view/ParagraphSettingsAdvanced',
'documenteditor/main/app/view/ImageSettingsAdvanced',
'documenteditor/main/app/view/TableSettingsAdvanced',
Expand All @@ -22,6 +27,15 @@ require([
'documenteditor/main/app/view/BookmarksDialog',
'documenteditor/main/app/view/NotesRemoveDialog',
'documenteditor/main/app/view/CrossReferenceDialog',
'documenteditor/main/app/view/TableOfContentsSettings'
'documenteditor/main/app/view/TableOfContentsSettings',
'documenteditor/main/app/view/EditListItemDialog',
'documenteditor/main/app/view/ControlSettingsDialog',
'documenteditor/main/app/view/DateTimeDialog',
'documenteditor/main/app/view/PageMarginsDialog',
'documenteditor/main/app/view/PageSizeDialog',
'documenteditor/main/app/view/CustomColumnsDialog',
'documenteditor/main/app/view/ListSettingsDialog',
'documenteditor/main/app/view/LineNumbersDialog',
'documenteditor/main/app/view/HyphenationDialog'
], function () {
});

0 comments on commit 2ed4c1c

Please sign in to comment.