@mindfusion/diagramming-controls 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,225 @@
1
+ /// <reference types="../../@mindfusion/controls" />
2
+ /// <reference types="../../@mindfusion/diagramming" />
3
+ /// <reference types="../../@mindfusion/common-collections" />
4
+ /// <reference types="../../@mindfusion/common-ui" />
5
+ declare module "Diagramming.Controls/Enum" {
6
+ /**
7
+ * Specifies the alignment of a tab strip relative to its container control.
8
+ */
9
+ export type TabAlignment = number;
10
+ export namespace TabAlignment {
11
+ const None: number;
12
+ const Top: number;
13
+ const Bottom: number;
14
+ }
15
+ }
16
+ declare module "Diagramming.Controls/Events" {
17
+ /**
18
+ * @namespace MindFusion.Diagramming.Controls
19
+ */
20
+ /**
21
+ * @class Defines all events raised by the controls in the MindFusion.Diagrammming.Controls namespace.
22
+ */
23
+ export class Events {
24
+ /**
25
+ * Raised before the selected page in a TabbedDiagramView control is changed.
26
+ * @type {String}
27
+ * @summary A string containing the event name.
28
+ */
29
+ static get pageChanging(): string;
30
+ /**
31
+ * Raised when the selected page in a TabbedDiagramView control has changed.
32
+ * @type {String}
33
+ * @summary A string containing the event name.
34
+ */
35
+ static get pageChanged(): string;
36
+ /**
37
+ * Raised before a page is added to a TabbedDiagramView control.
38
+ * @type {String}
39
+ * @summary A string containing the event name.
40
+ */
41
+ static get pageAdding(): string;
42
+ /**
43
+ * Raised when the a page has been added to a TabbedDiagramView control.
44
+ * @type {String}
45
+ * @summary A string containing the event name.
46
+ */
47
+ static get pageAdded(): string;
48
+ /**
49
+ * Raised before a page is removed from a TabbedDiagramView control.
50
+ * @type {String}
51
+ * @summary A string containing the event name.
52
+ */
53
+ static get pageRemoving(): string;
54
+ /**
55
+ * Raised when the a page has been removed from a TabbedDiagramView control.
56
+ * @type {String}
57
+ * @summary A string containing the event name.
58
+ */
59
+ static get pageRemoved(): string;
60
+ }
61
+ }
62
+ declare module "Diagramming.Controls/EventArgs" {
63
+ /**
64
+ * @class Contains the arguments passed to handlers of page-related events in a TabbedDiagramView.
65
+ * @augments CancelEventArgs
66
+ */
67
+ export class PageEventArgs extends CancelEventArgs {
68
+ /**
69
+ * Initializes a new instance of the PageEventArgs class.
70
+ * @constructor
71
+ * @param {Object} args
72
+ */
73
+ constructor(args: any);
74
+ sender: any;
75
+ _page: any;
76
+ _oldPage: any;
77
+ /**
78
+ * Gets the page for which the event is raised.
79
+ * @type {DiagramPage}
80
+ * @summary A DiagramPage instance.
81
+ */
82
+ get page(): any;
83
+ /**
84
+ * Gets the page before the event.
85
+ * @type {DiagramPage}
86
+ * @summary A DiagramPage instance.
87
+ */
88
+ get oldPage(): any;
89
+ }
90
+ import { CancelEventArgs } from "@mindfusion/controls";
91
+ }
92
+ declare module "Diagramming.Controls/TabbedDiagramView" {
93
+ /**
94
+ * @class Represents a DiagramView that can display DiagramDocument objects.
95
+ * The individual diagram pages can be activated through the tabs in the
96
+ * tray located at one of the view sides.
97
+ * @augments DiagramView
98
+ */
99
+ export class TabbedDiagramView extends DiagramView {
100
+ /**
101
+ * Creates and initializes a new TabbedDiagramView from the specified element.
102
+ * This method is static and can be called without creating an instance of the class.
103
+ * @param {HTMLCanvasElement} element The DOM element that the DiagramView should be attached to.
104
+ * @param {DiagramDocument} [document] The DiagramDocument instance this control is associated with.
105
+ * @returns {TabbedDiagramView} The newly created TabbedDiagramView object.
106
+ */
107
+ static create(element: HTMLCanvasElement, document?: any): TabbedDiagramView;
108
+ /**
109
+ * Initializes a new instance of the TabbedDiagramView class.
110
+ * @constructor
111
+ * @param {HTMLCanvasElement} element The Canvas DOM Element this TabbedDiagramView is associated with.
112
+ * @param {DiagramDocument} [document] The DiagramDocument instance this control is associated with.
113
+ */
114
+ constructor(element: HTMLCanvasElement, document?: any);
115
+ _document: any;
116
+ _lastIndex: number;
117
+ items: ObservableCollection<any>;
118
+ _tabAlignment: number;
119
+ tabStrip: TabStrip;
120
+ set tabsSize(arg: number);
121
+ /**
122
+ * Gets or sets the height of the tab strip.
123
+ * @type {Number}
124
+ * @summary The height.
125
+ */
126
+ get tabsSize(): number;
127
+ set showTabCloseButtons(arg: boolean);
128
+ /**
129
+ * Gets or sets a value indicating whether to display a close button for each tab.
130
+ * @type {Boolean}
131
+ * @summary true if the tabs close buttons are visible, or false otherwise.
132
+ * The default value is false.
133
+ */
134
+ get showTabCloseButtons(): boolean;
135
+ set showNavigationButtons(arg: boolean);
136
+ /**
137
+ * Gets or sets a value indicating whether to show tab navigation buttons.
138
+ * @type {Boolean}
139
+ * @summary true if the tab navigation buttons are visible, or false otherwise.
140
+ * The default value is false.
141
+ */
142
+ get showNavigationButtons(): boolean;
143
+ _tabMouseDownHandler: (sender: any, args: any) => void;
144
+ _tabDropHandler: (sender: any, args: any) => void;
145
+ set selectedPage(arg: any);
146
+ /**
147
+ * Gets or sets the currently selected tab page.
148
+ * @type {TabPage}
149
+ * @summary The selected tab page.
150
+ */
151
+ get selectedPage(): any;
152
+ set theme(arg: Theme);
153
+ /**
154
+ * Gets or sets the theme of the control.
155
+ * @type {Theme}
156
+ * @summary An instance of the Theme class.
157
+ */
158
+ get theme(): Theme;
159
+ resetTabAlignment(): void;
160
+ resetTabs(): void;
161
+ onTabMouseDown(sender: any, args: any): void;
162
+ set selectedIndex(arg: number);
163
+ /**
164
+ * Gets or sets the index of the currently selected tab page.
165
+ * @type {Number}
166
+ * @summary The index of the selected tab page.
167
+ */
168
+ get selectedIndex(): number;
169
+ onTabDrop(sender: any, args: any): void;
170
+ onItemsChanging(sender: any, args: any): void;
171
+ onItemsChanged(sender: any, args: any): void;
172
+ _selectedPage: any;
173
+ /**
174
+ * @private
175
+ */
176
+ private getItemByHeader;
177
+ set document(arg: any);
178
+ /**
179
+ * Gets or sets the diagram document displayed by this view.
180
+ * @type {DiagramDocument}
181
+ * @summary The DiagramDocument instance displayed by this view.
182
+ */
183
+ get document(): any;
184
+ set tabAlignment(arg: number);
185
+ /**
186
+ * Gets or sets the tab alignment.
187
+ * @type {TabAlignment}
188
+ * @summary A member of the TabAlignment enumeration.
189
+ */
190
+ get tabAlignment(): number;
191
+ set showAddButton(arg: boolean);
192
+ /**
193
+ * Gets or sets a value indicating whether to display the 'Add Tab' button.
194
+ * @type {Boolean}
195
+ * @summary true if the 'Add Tab' button is visible, or false otherwise.
196
+ * The default value is false.
197
+ */
198
+ get showAddButton(): boolean;
199
+ set allowReorder(arg: boolean);
200
+ /**
201
+ * Gets or sets a value indicating whether tabs can be rearranged interactively.
202
+ * @type {Boolean}
203
+ * @summary true if tabs can be rearranged interactively, or false otherwise. The default value is false.
204
+ */
205
+ get allowReorder(): boolean;
206
+ _theme: any;
207
+ /**
208
+ * Sets the current theme of the control and its pages.
209
+ * @param {Theme} theme The theme.
210
+ * @param {Boolean} [setToPages] true to set pages' themes, otherwise false.
211
+ */
212
+ setTheme(theme: Theme, setToPages?: boolean): void;
213
+ onPageValidateAction(event: any, page: any, oldPage: any): boolean;
214
+ }
215
+ import { DiagramView } from "@mindfusion/diagramming";
216
+ import { ObservableCollection } from "@mindfusion/common-collections";
217
+ import { TabStrip } from "@mindfusion/common-ui";
218
+ import { Theme } from "@mindfusion/diagramming";
219
+ }
220
+ declare module "@mindfusion/diagramming-controls" {
221
+ export { TabAlignment } from "Diagramming.Controls/Enum";
222
+ export { Events } from "Diagramming.Controls/Events";
223
+ export { PageEventArgs } from "Diagramming.Controls/EventArgs";
224
+ export { TabbedDiagramView } from "Diagramming.Controls/TabbedDiagramView";
225
+ }
@@ -0,0 +1 @@
1
+ var _0x3791=['__esModule','Cannot\x20call\x20a\x20class\x20as\x20a\x20function','length','enumerable','configurable','value','key','prototype','function','create','setPrototypeOf','__proto__','getPrototypeOf','construct','sham','valueOf','call','this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called','constructor','apply','hasOwnProperty','get','getOwnPropertyDescriptor','pageChanging','pageChanged','pageAdding','pageAdded','pageRemoving','pageRemoved','sender','page','_page','oldPage','_oldPage','DiagramDocument','pages','push','_lastIndex','items','ObservableCollection','_document','collectionChanging','addEventListener','onItemsChanging','collectionChanged','onItemsChanged','_tabAlignment','None','TabStrip','tabStrip','parent','req','visible','autoSizeTabs','showAddButton','tabsSize','showTabCloseButtons','showNavigationButtons','initialize','_tabMouseDownHandler','onTabMouseDown','itemMouseDown','closeButtonClick','_tabDropHandler','onTabDrop','tabAlignment','Top','element','parentNode','insertBefore','appendChild','draw','selectedPage','last','dispose','forEach','attachDiagramEvents','document','Events','dataLoaded','dataLoadedDelegate','detachDiagramEvents','removeEventListener','queryView','queryViewDelegate','setRequestHeader','Content-Type','text/xml','toXmlDocument','XmlPersistContext','diagram','selectSingleNode','View','saveView','serializeToString','theme','writeString','Theme','loadFromXml','onload','responseXML','fromXmlDocument','loadView','bind','onerror','log','open','GET','readString','fromId','resetVirtualScrollGrid','scrollerH','Control','clearHandlers','DomUtils','getBounds','height','_mf_originalHeight','parentSize','display','grid','style','gridTemplateColumns','scrollbarSize','gridTemplateRows','auto\x20','overflow','gridRow','width','min','getScrollbarSize','bounds','scale','_element','inline-block','gridColumn','1\x20/\x20-1','createElement','div','mf_diagram_scrollerH','gridColumnStart','overflowX','overflowY','backgroundColor','#eee','className','mf_diagram_scrollerV','gridRowStart','hidden','auto','scrollerV','addHandlers','scrollDelegate','resizeTimeoutId','onVirtualResize','resetTabAlignment','px\x20','querySelector','updateCanvasSize','_zoomFactor','getPixel','measureUnit','firstChild','canvas','px\x20auto\x20','invalidRect','repaint','raiseEvent','sizeChanged','EventArgs','Empty','resetTabs','clear','ToolStripItem','ToolStripItemType','Label','title','imageSrc','iconUrl','header','item','dataMfc','mfc-add','toString','mfc-first','first','mfc-prev','selectedIndex','mfc-next','rawEventArgs','mfc-tabbutton-close','remove','getGroupItems','indexOfItem','getItemByHeader','_items','splice','Add','m_newItems','onPageValidateAction','cancel','m_oldItems','action','NotifyCollectionChangedAction','resetButtons','_selectedPage','setDiagram','selectItem','where','Unit','UnitType','Pixel','showCloseButtons','scrollMode','TabsScrollMode','NavButtons','allowReorder','allowDrag','_theme','setTheme','onDataLoaded','count','PageEventArgs','TabAlignment'];var _0x4dbc=function(_0x10f6b5,_0x3a5b2d){_0x10f6b5=_0x10f6b5-0x0;var _0x4ca5e5=_0x3791[_0x10f6b5];return _0x4ca5e5;};'use strict';Object['defineProperty'](exports,_0x4dbc('0x0'),{'value':!![]});var controls=require('@mindfusion/controls');var diagramming=require('@mindfusion/diagramming');var common=require('@mindfusion/common');var commonUi=require('@mindfusion/common-ui');var commonCollections=require('@mindfusion/common-collections');var drawing=require('@mindfusion/drawing');var TabAlignment={'None':0x0,'Top':0x1,'Bottom':0x3};function _classCallCheck(_0x48600c,_0x81fc23){if(!(_0x48600c instanceof _0x81fc23)){throw new TypeError(_0x4dbc('0x1'));}}function _defineProperties(_0x39b6c5,_0x251aca){for(var _0x2f9af6=0x0;_0x2f9af6<_0x251aca[_0x4dbc('0x2')];_0x2f9af6++){var _0x5603ea=_0x251aca[_0x2f9af6];_0x5603ea[_0x4dbc('0x3')]=_0x5603ea[_0x4dbc('0x3')]||![];_0x5603ea[_0x4dbc('0x4')]=!![];if(_0x4dbc('0x5')in _0x5603ea)_0x5603ea['writable']=!![];Object['defineProperty'](_0x39b6c5,_0x5603ea[_0x4dbc('0x6')],_0x5603ea);}}function _createClass(_0x492273,_0x368adb,_0xfb46f1){if(_0x368adb)_defineProperties(_0x492273[_0x4dbc('0x7')],_0x368adb);if(_0xfb46f1)_defineProperties(_0x492273,_0xfb46f1);return _0x492273;}function _inherits(_0x58e8d8,_0xf38ef3){if(typeof _0xf38ef3!==_0x4dbc('0x8')&&_0xf38ef3!==null){throw new TypeError('Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function');}_0x58e8d8[_0x4dbc('0x7')]=Object[_0x4dbc('0x9')](_0xf38ef3&&_0xf38ef3['prototype'],{'constructor':{'value':_0x58e8d8,'writable':!![],'configurable':!![]}});if(_0xf38ef3)_setPrototypeOf(_0x58e8d8,_0xf38ef3);}function _getPrototypeOf(_0x59615f){_getPrototypeOf=Object[_0x4dbc('0xa')]?Object['getPrototypeOf']:function _getPrototypeOf(_0x59615f){return _0x59615f[_0x4dbc('0xb')]||Object[_0x4dbc('0xc')](_0x59615f);};return _getPrototypeOf(_0x59615f);}function _setPrototypeOf(_0x2f9baf,_0x4c83ce){_setPrototypeOf=Object[_0x4dbc('0xa')]||function _setPrototypeOf(_0x2f9baf,_0x4c83ce){_0x2f9baf['__proto__']=_0x4c83ce;return _0x2f9baf;};return _setPrototypeOf(_0x2f9baf,_0x4c83ce);}function _isNativeReflectConstruct(){if(typeof Reflect==='undefined'||!Reflect['construct'])return![];if(Reflect[_0x4dbc('0xd')][_0x4dbc('0xe')])return![];if(typeof Proxy===_0x4dbc('0x8'))return!![];try{Boolean[_0x4dbc('0x7')][_0x4dbc('0xf')][_0x4dbc('0x10')](Reflect[_0x4dbc('0xd')](Boolean,[],function(){}));return!![];}catch(_0x40d830){return![];}}function _assertThisInitialized(_0x3bc1c3){if(_0x3bc1c3===void 0x0){throw new ReferenceError(_0x4dbc('0x11'));}return _0x3bc1c3;}function _possibleConstructorReturn(_0x38486d,_0x4fc751){if(_0x4fc751&&(typeof _0x4fc751==='object'||typeof _0x4fc751===_0x4dbc('0x8'))){return _0x4fc751;}return _assertThisInitialized(_0x38486d);}function _createSuper(_0x4fcc87){var _0x4b3052=_isNativeReflectConstruct();return function _createSuperInternal(){var _0x120edd=_getPrototypeOf(_0x4fcc87),_0x39c358;if(_0x4b3052){var _0x5661cd=_getPrototypeOf(this)[_0x4dbc('0x12')];_0x39c358=Reflect[_0x4dbc('0xd')](_0x120edd,arguments,_0x5661cd);}else{_0x39c358=_0x120edd[_0x4dbc('0x13')](this,arguments);}return _possibleConstructorReturn(this,_0x39c358);};}function _superPropBase(_0x13d3e9,_0x2992bd){while(!Object[_0x4dbc('0x7')][_0x4dbc('0x14')][_0x4dbc('0x10')](_0x13d3e9,_0x2992bd)){_0x13d3e9=_getPrototypeOf(_0x13d3e9);if(_0x13d3e9===null)break;}return _0x13d3e9;}function _get(_0x156353,_0x4aa17e,_0x40c80d){if(typeof Reflect!=='undefined'&&Reflect['get']){_get=Reflect[_0x4dbc('0x15')];}else{_get=function _get(_0x156353,_0x4aa17e,_0x40c80d){var _0x2e25d9=_superPropBase(_0x156353,_0x4aa17e);if(!_0x2e25d9)return;var _0x5a84fe=Object[_0x4dbc('0x16')](_0x2e25d9,_0x4aa17e);if(_0x5a84fe[_0x4dbc('0x15')]){return _0x5a84fe[_0x4dbc('0x15')][_0x4dbc('0x10')](_0x40c80d);}return _0x5a84fe[_0x4dbc('0x5')];};}return _get(_0x156353,_0x4aa17e,_0x40c80d||_0x156353);}var Events=function(){function _0x590aba(){_classCallCheck(this,_0x590aba);}_createClass(_0x590aba,null,[{'key':'pageChanging','get':function get(){return _0x4dbc('0x17');}},{'key':_0x4dbc('0x18'),'get':function get(){return _0x4dbc('0x18');}},{'key':_0x4dbc('0x19'),'get':function get(){return _0x4dbc('0x19');}},{'key':'pageAdded','get':function get(){return _0x4dbc('0x1a');}},{'key':_0x4dbc('0x1b'),'get':function get(){return _0x4dbc('0x1b');}},{'key':_0x4dbc('0x1c'),'get':function get(){return _0x4dbc('0x1c');}}]);return _0x590aba;}();var PageEventArgs=function(_0x5c9a96){_inherits(_0x5cb5cc,_0x5c9a96);var _0x1519d0=_createSuper(_0x5cb5cc);function _0x5cb5cc(_0x4737f9){var _0x3c0882;_classCallCheck(this,_0x5cb5cc);_0x3c0882=_0x1519d0[_0x4dbc('0x10')](this);if(_0x4737f9['sender'])_0x3c0882['sender']=_0x4737f9[_0x4dbc('0x1d')];if(_0x4737f9[_0x4dbc('0x1e')])_0x3c0882[_0x4dbc('0x1f')]=_0x4737f9[_0x4dbc('0x1e')];if(_0x4737f9[_0x4dbc('0x20')])_0x3c0882[_0x4dbc('0x21')]=_0x4737f9[_0x4dbc('0x20')];return _0x3c0882;}_createClass(_0x5cb5cc,[{'key':_0x4dbc('0x1e'),'get':function get(){return this[_0x4dbc('0x1f')];}},{'key':_0x4dbc('0x20'),'get':function get(){return this[_0x4dbc('0x21')];}}]);return _0x5cb5cc;}(controls['CancelEventArgs']);var TabbedDiagramView=function(_0x81a63){_inherits(_0x60aec8,_0x81a63);var _0x365961=_createSuper(_0x60aec8);function _0x60aec8(_0x2218e9,_0x5ba7db){var _0x2d847f;_classCallCheck(this,_0x60aec8);var _0x80b33d=_0x5ba7db||new diagramming[(_0x4dbc('0x22'))]();if(!_0x80b33d[_0x4dbc('0x23')][_0x4dbc('0x2')]){var _0x4dd1db=new diagramming['DiagramPage']();_0x4dd1db['title']='diagram1';_0x80b33d['pages'][_0x4dbc('0x24')](_0x4dd1db);}_0x2d847f=_0x365961['call'](this,_0x2218e9,_0x80b33d[_0x4dbc('0x23')][0x0]);_0x2d847f['_document']=_0x80b33d;_0x2d847f[_0x4dbc('0x25')]=0x1;_0x2d847f[_0x4dbc('0x26')]=new commonCollections[(_0x4dbc('0x27'))](_0x2d847f[_0x4dbc('0x28')][_0x4dbc('0x23')]);_0x2d847f[_0x4dbc('0x26')][_0x4dbc('0x29')][_0x4dbc('0x2a')](function(_0x25d4da,_0x5ea948){_0x2d847f[_0x4dbc('0x2b')](_0x25d4da,_0x5ea948);});_0x2d847f[_0x4dbc('0x26')][_0x4dbc('0x2c')][_0x4dbc('0x2a')](function(_0x456724,_0x3520fa){_0x2d847f[_0x4dbc('0x2d')](_0x456724,_0x3520fa);});_0x2d847f[_0x4dbc('0x2e')]=TabAlignment[_0x4dbc('0x2f')];_0x2d847f['tabStrip']=new commonUi[(_0x4dbc('0x30'))]();_0x2d847f[_0x4dbc('0x31')][_0x4dbc('0x32')]=_assertThisInitialized(_0x2d847f);_0x2d847f['tabStrip'][_0x4dbc('0x33')]=function(){return!![];};_0x2d847f[_0x4dbc('0x31')][_0x4dbc('0x34')]=![];_0x2d847f[_0x4dbc('0x31')][_0x4dbc('0x35')]=![];_0x2d847f[_0x4dbc('0x31')][_0x4dbc('0x36')]=![];_0x2d847f[_0x4dbc('0x37')]=0x14;_0x2d847f[_0x4dbc('0x38')]=![];_0x2d847f[_0x4dbc('0x39')]=![];return _0x2d847f;}_createClass(_0x60aec8,[{'key':_0x4dbc('0x3a'),'value':function initialize(){var _0x37a0c8=this;_get(_getPrototypeOf(_0x60aec8['prototype']),'initialize',this)[_0x4dbc('0x10')](this);this[_0x4dbc('0x3b')]=function(_0x16e4e0,_0xd2a834){_0x37a0c8[_0x4dbc('0x3c')](_0x16e4e0,_0xd2a834);};this[_0x4dbc('0x31')][_0x4dbc('0x3d')][_0x4dbc('0x2a')](this[_0x4dbc('0x3b')]);this[_0x4dbc('0x31')][_0x4dbc('0x3e')][_0x4dbc('0x2a')](this[_0x4dbc('0x3b')]);this[_0x4dbc('0x31')]['addButtonClick']['addEventListener'](this[_0x4dbc('0x3b')]);this['tabStrip']['navButtonClick'][_0x4dbc('0x2a')](this['_tabMouseDownHandler']);this[_0x4dbc('0x3f')]=function(_0x1fa3c9,_0x49d276){_0x37a0c8[_0x4dbc('0x40')](_0x1fa3c9,_0x49d276);};this[_0x4dbc('0x31')]['itemDrop'][_0x4dbc('0x2a')](this[_0x4dbc('0x3f')]);this['resetTabs']();if(this[_0x4dbc('0x41')]==TabAlignment[_0x4dbc('0x42')])this[_0x4dbc('0x43')][_0x4dbc('0x44')][_0x4dbc('0x45')](this[_0x4dbc('0x31')]['draw'](),this[_0x4dbc('0x43')]);else this[_0x4dbc('0x43')]['parentNode'][_0x4dbc('0x46')](this[_0x4dbc('0x31')][_0x4dbc('0x47')]());this['tabStrip']['attach']();this[_0x4dbc('0x48')]=this['items'][_0x4dbc('0x49')]();}},{'key':_0x4dbc('0x4a'),'value':function dispose(){this[_0x4dbc('0x26')][_0x4dbc('0x4b')](function(_0x51aa2d){return _0x51aa2d['dispose']();});this[_0x4dbc('0x31')][_0x4dbc('0x4a')]();_get(_getPrototypeOf(_0x60aec8['prototype']),_0x4dbc('0x4a'),this)[_0x4dbc('0x10')](this);}},{'key':_0x4dbc('0x4c'),'value':function attachDiagramEvents(){this[_0x4dbc('0x4d')]['addEventListener'](diagramming[_0x4dbc('0x4e')][_0x4dbc('0x4f')],this[_0x4dbc('0x50')]);this[_0x4dbc('0x4d')][_0x4dbc('0x2a')](diagramming[_0x4dbc('0x4e')]['queryView'],this['queryViewDelegate']);}},{'key':_0x4dbc('0x51'),'value':function detachDiagramEvents(){this[_0x4dbc('0x4d')]['removeEventListener'](diagramming[_0x4dbc('0x4e')]['dataLoaded'],this[_0x4dbc('0x50')]);this[_0x4dbc('0x4d')][_0x4dbc('0x52')](diagramming[_0x4dbc('0x4e')][_0x4dbc('0x53')],this[_0x4dbc('0x54')]);}},{'key':'saveToXml','value':function saveToXml(_0x38e4d8){var _0x2ebbac=new XMLHttpRequest();_0x2ebbac['open']('POST',_0x38e4d8,!![]);_0x2ebbac[_0x4dbc('0x55')](_0x4dbc('0x56'),_0x4dbc('0x57'));var _0x255d7f=this[_0x4dbc('0x4d')][_0x4dbc('0x58')]();var _0x53cd5f=new diagramming[(_0x4dbc('0x59'))](this[_0x4dbc('0x5a')],_0x255d7f);var _0x311fad=_0x53cd5f[_0x4dbc('0x5b')](_0x4dbc('0x22'),_0x255d7f);var _0x19b147=_0x255d7f['createElement'](_0x4dbc('0x5c'));_0x311fad[_0x4dbc('0x46')](_0x19b147);this[_0x4dbc('0x5d')](_0x19b147,_0x53cd5f);var _0x886d5c=new XMLSerializer();_0x2ebbac['send'](_0x886d5c[_0x4dbc('0x5e')](_0x255d7f));}},{'key':_0x4dbc('0x5d'),'value':function saveView(_0x267860,_0x4a3f48){_get(_getPrototypeOf(_0x60aec8[_0x4dbc('0x7')]),_0x4dbc('0x5d'),this)['call'](this,_0x267860,_0x4a3f48);if(this[_0x4dbc('0x5f')])_0x4a3f48[_0x4dbc('0x60')](this[_0x4dbc('0x5f')]['id'],_0x4dbc('0x61'),_0x267860);}},{'key':_0x4dbc('0x62'),'value':function loadFromXml(_0x55a103,_0x34c9c7,_0x1f0ec3){var _0x39d624=this['document'];var _0x10540b=new XMLHttpRequest();_0x10540b[_0x4dbc('0x63')]=function(){var _0x218f41=_0x10540b[_0x4dbc('0x64')];_0x39d624[_0x4dbc('0x65')](_0x218f41);var _0x46d4e7=new diagramming[(_0x4dbc('0x59'))](_0x39d624,_0x218f41);var _0x36b009=_0x46d4e7[_0x4dbc('0x5b')](_0x4dbc('0x22'),_0x218f41);this[_0x4dbc('0x66')](_0x4dbc('0x5c'),_0x36b009,_0x46d4e7);if(_0x34c9c7)_0x34c9c7(_0x39d624);}[_0x4dbc('0x67')](this);_0x10540b[_0x4dbc('0x68')]=function(){console[_0x4dbc('0x69')]('Error\x20while\x20getting\x20XML.');if(_0x1f0ec3)_0x1f0ec3(_0x39d624);};_0x10540b[_0x4dbc('0x6a')](_0x4dbc('0x6b'),_0x55a103);_0x10540b['responseType']=_0x4dbc('0x4d');_0x10540b['send']();}},{'key':_0x4dbc('0x66'),'value':function loadView(_0x464288,_0x36f7b6,_0x13dbd1){var _0x301e23=_get(_getPrototypeOf(_0x60aec8[_0x4dbc('0x7')]),_0x4dbc('0x66'),this)[_0x4dbc('0x10')](this,_0x464288,_0x36f7b6,_0x13dbd1);if(!_0x301e23)return;var _0x5e7b6e=_0x13dbd1[_0x4dbc('0x6c')](_0x4dbc('0x61'),_0x301e23);if(_0x5e7b6e)this[_0x4dbc('0x5f')]=diagramming[_0x4dbc('0x61')][_0x4dbc('0x6d')](_0x5e7b6e);}},{'key':_0x4dbc('0x6e'),'value':function resetVirtualScrollGrid(){var _0x3e713d=this[_0x4dbc('0x43')];if(!_0x3e713d[_0x4dbc('0x44')])return;if(!this[_0x4dbc('0x6f')]){controls[_0x4dbc('0x70')][_0x4dbc('0x71')](_0x3e713d[_0x4dbc('0x44')]);var _0x53c2df=controls[_0x4dbc('0x72')][_0x4dbc('0x73')](_0x3e713d[_0x4dbc('0x44')],null,!![]);var _0x282602=_0x53c2df['width'];var _0x599f8e=_0x53c2df[_0x4dbc('0x74')];if(_0x599f8e!=0x0)_0x3e713d[_0x4dbc('0x44')][_0x4dbc('0x75')]=_0x599f8e;this[_0x4dbc('0x76')]={'width':_0x282602,'height':_0x599f8e};_0x3e713d['parentNode']['style'][_0x4dbc('0x77')]=_0x4dbc('0x78');_0x3e713d[_0x4dbc('0x44')][_0x4dbc('0x79')][_0x4dbc('0x7a')]='auto\x20'+this[_0x4dbc('0x7b')]+'px';if(this[_0x4dbc('0x41')]==TabAlignment['Top'])_0x3e713d[_0x4dbc('0x44')][_0x4dbc('0x79')][_0x4dbc('0x7c')]=this[_0x4dbc('0x37')]+'px\x20auto\x20'+this[_0x4dbc('0x7b')]+'px';else _0x3e713d[_0x4dbc('0x44')][_0x4dbc('0x79')]['gridTemplateRows']=_0x4dbc('0x7d')+this['scrollbarSize']+'px\x20'+this[_0x4dbc('0x37')]+'px';_0x3e713d[_0x4dbc('0x44')][_0x4dbc('0x79')][_0x4dbc('0x7e')]='';_0x3e713d['style'][_0x4dbc('0x7f')]=this[_0x4dbc('0x41')]==TabAlignment['Top']?0x2:0x1;_0x3e713d[_0x4dbc('0x80')]=Math[_0x4dbc('0x81')](_0x53c2df['width']-this[_0x4dbc('0x82')](0x1),this['diagram'][_0x4dbc('0x83')][_0x4dbc('0x80')]*this[_0x4dbc('0x84')]);_0x3e713d[_0x4dbc('0x74')]=Math[_0x4dbc('0x81')](_0x599f8e-this[_0x4dbc('0x37')]-this['getScrollbarSize'](0x0),this[_0x4dbc('0x5a')][_0x4dbc('0x83')]['height']*this[_0x4dbc('0x84')]);this['tabStrip'][_0x4dbc('0x85')][_0x4dbc('0x79')][_0x4dbc('0x77')]=_0x4dbc('0x86');this[_0x4dbc('0x31')]['_element'][_0x4dbc('0x79')][_0x4dbc('0x87')]=_0x4dbc('0x88');var _0x2bb8f8=document[_0x4dbc('0x89')](_0x4dbc('0x8a'));_0x2bb8f8['className']=_0x4dbc('0x8b');_0x2bb8f8[_0x4dbc('0x79')]['gridRow']=this[_0x4dbc('0x41')]==TabAlignment['Top']?0x3:0x2;_0x2bb8f8['style'][_0x4dbc('0x8c')]=0x1;_0x2bb8f8['style']['gridColumnEnd']=0x2;_0x2bb8f8['style'][_0x4dbc('0x74')]=this[_0x4dbc('0x7b')]+'px';_0x2bb8f8[_0x4dbc('0x79')]['width']=_0x53c2df[_0x4dbc('0x80')]-this[_0x4dbc('0x7b')]+'px';_0x2bb8f8['style'][_0x4dbc('0x8d')]='auto';_0x2bb8f8[_0x4dbc('0x79')][_0x4dbc('0x8e')]='hidden';_0x2bb8f8[_0x4dbc('0x79')][_0x4dbc('0x8f')]=_0x4dbc('0x90');this['scrollerH']=_0x2bb8f8;var _0x4157ec=document[_0x4dbc('0x89')](_0x4dbc('0x8a'));_0x4157ec[_0x4dbc('0x79')]['height']=this[_0x4dbc('0x7b')]+'px';_0x2bb8f8[_0x4dbc('0x46')](_0x4157ec);_0x3e713d['parentNode'][_0x4dbc('0x46')](_0x2bb8f8);var _0x55fda5=document[_0x4dbc('0x89')]('div');_0x55fda5[_0x4dbc('0x91')]=_0x4dbc('0x92');_0x55fda5['style'][_0x4dbc('0x93')]=this[_0x4dbc('0x41')]==TabAlignment[_0x4dbc('0x42')]?0x2:0x1;_0x55fda5[_0x4dbc('0x79')][_0x4dbc('0x80')]=this[_0x4dbc('0x7b')]+'px';_0x55fda5['style'][_0x4dbc('0x74')]=_0x53c2df[_0x4dbc('0x74')]-this['tabsSize']-this[_0x4dbc('0x7b')]+'px';_0x55fda5[_0x4dbc('0x79')][_0x4dbc('0x8d')]=_0x4dbc('0x94');_0x55fda5[_0x4dbc('0x79')][_0x4dbc('0x8e')]=_0x4dbc('0x95');_0x55fda5[_0x4dbc('0x79')][_0x4dbc('0x8f')]='#eee';this[_0x4dbc('0x96')]=_0x55fda5;var _0x183982=document[_0x4dbc('0x89')]('div');_0x183982[_0x4dbc('0x79')]['width']=this['scrollbarSize']+'px';_0x55fda5[_0x4dbc('0x46')](_0x183982);_0x3e713d[_0x4dbc('0x44')][_0x4dbc('0x46')](_0x55fda5);controls['Control'][_0x4dbc('0x97')](_0x2bb8f8,{'scroll':this[_0x4dbc('0x98')]});controls[_0x4dbc('0x70')]['addHandlers'](_0x55fda5,{'scroll':this[_0x4dbc('0x98')]});if(!this[_0x4dbc('0x99')]){var _0x5175fd=this;this[_0x4dbc('0x99')]=setInterval(function(){_0x5175fd[_0x4dbc('0x9a')]();},0xc8);}}}},{'key':_0x4dbc('0x9b'),'value':function resetTabAlignment(){this['tabStrip'][_0x4dbc('0x34')]=this[_0x4dbc('0x41')]!=TabAlignment[_0x4dbc('0x2f')];var _0xa80cff=this['element'];if(this['tabAlignment']==TabAlignment[_0x4dbc('0x42')])_0xa80cff['parentNode'][_0x4dbc('0x79')][_0x4dbc('0x7c')]=this['tabsSize']+'px\x20auto\x20'+this[_0x4dbc('0x7b')]+'px';else _0xa80cff['parentNode'][_0x4dbc('0x79')][_0x4dbc('0x7c')]='auto\x20'+this['scrollbarSize']+_0x4dbc('0x9c')+this[_0x4dbc('0x37')]+'px';_0xa80cff[_0x4dbc('0x79')][_0x4dbc('0x7f')]=this[_0x4dbc('0x41')]==TabAlignment[_0x4dbc('0x42')]?0x2:0x1;var _0x2d0cb3=this[_0x4dbc('0x43')][_0x4dbc('0x44')][_0x4dbc('0x9d')]('.mf_diagram_scrollerH');if(this['scrollerH']){_0x2d0cb3[_0x4dbc('0x79')][_0x4dbc('0x7f')]=this[_0x4dbc('0x41')]==TabAlignment[_0x4dbc('0x42')]?0x3:0x2;var _0x4c350c=this['element'][_0x4dbc('0x44')]['querySelector']('.mf_diagram_scrollerV');_0x4c350c[_0x4dbc('0x79')][_0x4dbc('0x93')]=this[_0x4dbc('0x41')]==TabAlignment[_0x4dbc('0x42')]?0x2:0x1;}this[_0x4dbc('0x9e')]();}},{'key':'updateCanvasSize','value':function updateCanvasSize(){if(!this['element'])return;var _0x41f595=this[_0x4dbc('0x9f')]/0x64/drawing['GraphicsUnit'][_0x4dbc('0xa0')](this['canvas'][_0x4dbc('0xa1')]);if(this[_0x4dbc('0x6f')]){var _0x34ddb4=this[_0x4dbc('0x43')][_0x4dbc('0x44')];this[_0x4dbc('0x6f')]['firstChild'][_0x4dbc('0x79')][_0x4dbc('0x80')]=this['canvas'][_0x4dbc('0x83')]['width']*_0x41f595+'px';this[_0x4dbc('0x96')][_0x4dbc('0xa2')][_0x4dbc('0x79')][_0x4dbc('0x74')]=this[_0x4dbc('0xa3')][_0x4dbc('0x83')][_0x4dbc('0x74')]*_0x41f595+'px';var _0x323a59=this[_0x4dbc('0x82')](0x1);var _0x5ee0e5=this[_0x4dbc('0x82')](0x0);this[_0x4dbc('0x96')][_0x4dbc('0x79')][_0x4dbc('0x80')]=_0x323a59+'px';this[_0x4dbc('0x6f')][_0x4dbc('0x79')][_0x4dbc('0x74')]=_0x5ee0e5+'px';_0x34ddb4[_0x4dbc('0x79')][_0x4dbc('0x7a')]=_0x4dbc('0x7d')+_0x323a59+'px';if(this[_0x4dbc('0x41')]==TabAlignment[_0x4dbc('0x42')])_0x34ddb4[_0x4dbc('0x79')][_0x4dbc('0x7c')]=this[_0x4dbc('0x37')]+_0x4dbc('0xa4')+_0x5ee0e5+'px';else _0x34ddb4[_0x4dbc('0x79')][_0x4dbc('0x7c')]=_0x4dbc('0x7d')+_0x5ee0e5+_0x4dbc('0x9c')+this[_0x4dbc('0x37')]+'px';var _0x171f0e=controls[_0x4dbc('0x72')][_0x4dbc('0x73')](_0x34ddb4,null,!![]);var _0x24d606=_0x171f0e[_0x4dbc('0x74')];if(_0x24d606==0x0)_0x24d606=_0x34ddb4[_0x4dbc('0x75')];if(_0x24d606==0x0)_0x24d606=this[_0x4dbc('0xa3')]['bounds'][_0x4dbc('0x74')]*_0x41f595;this[_0x4dbc('0x43')]['width']=Math[_0x4dbc('0x81')](_0x171f0e[_0x4dbc('0x80')]-_0x323a59,this[_0x4dbc('0xa3')]['bounds'][_0x4dbc('0x80')]*_0x41f595);this[_0x4dbc('0x43')][_0x4dbc('0x74')]=Math[_0x4dbc('0x81')](_0x24d606-this['tabsSize']-_0x5ee0e5,this[_0x4dbc('0xa3')][_0x4dbc('0x83')][_0x4dbc('0x74')]*_0x41f595);this[_0x4dbc('0x6f')][_0x4dbc('0x79')]['width']=_0x171f0e[_0x4dbc('0x80')]-_0x323a59+'px';this[_0x4dbc('0x96')][_0x4dbc('0x79')][_0x4dbc('0x74')]=_0x24d606-this['tabsSize']-_0x5ee0e5+'px';}this[_0x4dbc('0xa3')][_0x4dbc('0xa5')]=null;this[_0x4dbc('0xa3')][_0x4dbc('0xa6')]();this['diagram'][_0x4dbc('0xa7')](diagramming['Events'][_0x4dbc('0xa8')],controls[_0x4dbc('0xa9')][_0x4dbc('0xaa')]);}},{'key':_0x4dbc('0xab'),'value':function resetTabs(){var _0x47633b=this;this[_0x4dbc('0x31')][_0x4dbc('0x26')][_0x4dbc('0xac')]();this[_0x4dbc('0x4d')][_0x4dbc('0x23')][_0x4dbc('0x4b')](function(_0x3f72db,_0x128641){var _0x7f2a7a=new commonUi[(_0x4dbc('0xad'))](commonUi[_0x4dbc('0xae')][_0x4dbc('0xaf')],_0x3f72db[_0x4dbc('0xb0')]);_0x7f2a7a['titleColor']=_0x3f72db['titleColor'];_0x7f2a7a[_0x4dbc('0xb1')]=_0x3f72db[_0x4dbc('0xb2')];_0x47633b[_0x4dbc('0x31')][_0x4dbc('0x26')]['add'](_0x7f2a7a);_0x3f72db[_0x4dbc('0xb3')]=_0x7f2a7a;});}},{'key':_0x4dbc('0x3c'),'value':function onTabMouseDown(_0x2da39b,_0x26e367){if(!_0x26e367['item']['enabled'])return;if(_0x26e367[_0x4dbc('0xb4')][_0x4dbc('0xb5')]==_0x4dbc('0xb6')){var _0x21568f=new diagramming['DiagramPage']();_0x21568f[_0x4dbc('0xb0')]=_0x4dbc('0x5a')+(++this[_0x4dbc('0x25')])[_0x4dbc('0xb7')]();this[_0x4dbc('0x26')]['add'](_0x21568f);this[_0x4dbc('0x48')]=_0x21568f;return;}if(_0x26e367[_0x4dbc('0xb4')][_0x4dbc('0xb5')]){if(_0x26e367[_0x4dbc('0xb4')][_0x4dbc('0xb5')]==_0x4dbc('0xb8'))this['selectedPage']=this[_0x4dbc('0x26')][_0x4dbc('0xb9')]();else if(_0x26e367[_0x4dbc('0xb4')][_0x4dbc('0xb5')]==_0x4dbc('0xba'))this[_0x4dbc('0xbb')]--;else if(_0x26e367[_0x4dbc('0xb4')]['dataMfc']==_0x4dbc('0xbc'))this[_0x4dbc('0xbb')]++;else if(_0x26e367[_0x4dbc('0xb4')][_0x4dbc('0xb5')]=='mfc-last')this[_0x4dbc('0x48')]=this[_0x4dbc('0x26')][_0x4dbc('0x49')]();return;}var _0x26fc23=this['getItemByHeader'](_0x26e367[_0x4dbc('0xb4')]);if(_0x26fc23){if(controls[_0x4dbc('0x72')]['hasCssClass'](_0x26e367[_0x4dbc('0xbd')]['target'],_0x4dbc('0xbe'))){var _0x58c0e9=this[_0x4dbc('0xbb')];if(this[_0x4dbc('0x48')]==_0x26fc23){if(_0x26fc23==this[_0x4dbc('0x26')][_0x4dbc('0xb9')]())_0x58c0e9++;}this[_0x4dbc('0x26')][_0x4dbc('0xbf')](_0x26fc23);this['selectedIndex']=--_0x58c0e9;}else this[_0x4dbc('0x48')]=_0x26fc23;}}},{'key':_0x4dbc('0x40'),'value':function onTabDrop(_0x6aaff8,_0x1deead){var _0x4b2fed=_0x6aaff8[_0x4dbc('0xc0')](_0x1deead[_0x4dbc('0xb4')])[_0x4dbc('0xc1')](_0x1deead['item']);var _0xc88e37=this[_0x4dbc('0xc2')](_0x1deead[_0x4dbc('0xb4')]);this[_0x4dbc('0x26')][_0x4dbc('0xc3')][_0x4dbc('0xc4')](this[_0x4dbc('0x26')][_0x4dbc('0xc1')](_0xc88e37),0x1);this[_0x4dbc('0x26')][_0x4dbc('0xc3')][_0x4dbc('0xc4')](_0x4b2fed,0x0,_0xc88e37);}},{'key':_0x4dbc('0x2b'),'value':function onItemsChanging(_0x54f586,_0x2de8fd){if(_0x2de8fd['action']==common['NotifyCollectionChangedAction'][_0x4dbc('0xc5')]){var _0x3827c2;for(var _0x1a715a=0x0;_0x1a715a<_0x2de8fd[_0x4dbc('0xc6')][_0x4dbc('0x2')];_0x1a715a++){if(!this[_0x4dbc('0xc7')](Events[_0x4dbc('0x19')],_0x2de8fd[_0x4dbc('0xc6')][_0x1a715a]))_0x3827c2=!![];}_0x2de8fd[_0x4dbc('0xc8')]=_0x3827c2;}else{var _0x3827c2;for(var _0x1a715a=0x0;_0x1a715a<_0x2de8fd[_0x4dbc('0xc9')][_0x4dbc('0x2')];_0x1a715a++){if(!this[_0x4dbc('0xc7')](Events['pageRemoving'],null,_0x2de8fd[_0x4dbc('0xc9')][_0x1a715a]))_0x3827c2=!![];}_0x2de8fd[_0x4dbc('0xc8')]=_0x3827c2;}}},{'key':_0x4dbc('0x2d'),'value':function onItemsChanged(_0x28e12f,_0x7be12e){if(_0x7be12e[_0x4dbc('0xca')]==common[_0x4dbc('0xcb')][_0x4dbc('0xc5')]){for(var _0x334013=0x0;_0x334013<_0x7be12e['m_newItems'][_0x4dbc('0x2')];_0x334013++){this[_0x4dbc('0xa7')](Events[_0x4dbc('0x1a')],new PageEventArgs({'page':_0x7be12e[_0x4dbc('0xc6')][_0x334013]}));}}else{for(var _0x334013=0x0;_0x334013<_0x7be12e[_0x4dbc('0xc9')]['length'];_0x334013++){this[_0x4dbc('0xa7')](Events[_0x4dbc('0x1c')],new PageEventArgs({'oldPage':_0x7be12e[_0x4dbc('0xc9')][_0x334013]}));}}this[_0x4dbc('0xab')]();this[_0x4dbc('0x31')][_0x4dbc('0xcc')]();}},{'key':_0x4dbc('0x48'),'get':function get(){return this[_0x4dbc('0xcd')];},'set':function set(_0x3804bb){if(_0x3804bb){if(this[_0x4dbc('0xc7')](Events[_0x4dbc('0x17')],this[_0x4dbc('0xcd')],_0x3804bb)){var _0x194a1a=this[_0x4dbc('0xcd')];this[_0x4dbc('0xcd')]=_0x3804bb;this[_0x4dbc('0xce')](this[_0x4dbc('0xcd')]);this[_0x4dbc('0xcd')][_0x4dbc('0xa6')]();this[_0x4dbc('0x31')][_0x4dbc('0xcf')](this[_0x4dbc('0xcd')][_0x4dbc('0xb3')]);this[_0x4dbc('0xa7')](diagramming['Events']['pageChanged'],new PageEventArgs({'page':this[_0x4dbc('0xcd')],'oldPage':_0x194a1a}));}}}},{'key':'selectedIndex','get':function get(){if(this[_0x4dbc('0xcd')])return this[_0x4dbc('0x26')][_0x4dbc('0xc1')](this['_selectedPage']);return-0x1;},'set':function set(_0x128ee){var _0x4e3b59=this[_0x4dbc('0x26')][_0x4dbc('0x26')]()[_0x128ee];if(_0x4e3b59)this[_0x4dbc('0x48')]=_0x4e3b59;}},{'key':_0x4dbc('0xc2'),'value':function getItemByHeader(_0x277962){return this['items'][_0x4dbc('0xd0')](function(_0x43be0f){return _0x43be0f[_0x4dbc('0xb3')]==_0x277962;})[_0x4dbc('0xb9')]();}},{'key':_0x4dbc('0x4d'),'get':function get(){return this[_0x4dbc('0x28')];},'set':function set(_0x108dc6){if(this[_0x4dbc('0x28')]!=_0x108dc6){this[_0x4dbc('0x28')]=_0x108dc6;}}},{'key':'tabsSize','get':function get(){if(this[_0x4dbc('0x41')]==TabAlignment[_0x4dbc('0x2f')])return 0x0;return this[_0x4dbc('0x31')][_0x4dbc('0x74')][_0x4dbc('0x5')];},'set':function set(_0x143b51){if(this[_0x4dbc('0x31')][_0x4dbc('0x74')][_0x4dbc('0x5')]!=_0x143b51){this['tabStrip'][_0x4dbc('0x74')]=new common[(_0x4dbc('0xd1'))](_0x143b51,common[_0x4dbc('0xd2')][_0x4dbc('0xd3')]);this[_0x4dbc('0x9b')]();}}},{'key':_0x4dbc('0x41'),'get':function get(){return this[_0x4dbc('0x2e')];},'set':function set(_0x5061f2){if(this['_tabAlignment']!=_0x5061f2){this[_0x4dbc('0x2e')]=_0x5061f2;this['resetTabAlignment']();}}},{'key':_0x4dbc('0x38'),'get':function get(){return this[_0x4dbc('0x31')][_0x4dbc('0xd4')];},'set':function set(_0x2b0a21){if(this[_0x4dbc('0x31')][_0x4dbc('0xd4')]!=_0x2b0a21){this[_0x4dbc('0x31')][_0x4dbc('0xd4')]=_0x2b0a21;}}},{'key':_0x4dbc('0x39'),'get':function get(){return this[_0x4dbc('0x31')][_0x4dbc('0xd5')]==commonUi[_0x4dbc('0xd6')][_0x4dbc('0xd7')];},'set':function set(_0x5ae842){if(this[_0x4dbc('0x31')][_0x4dbc('0xd5')]==commonUi[_0x4dbc('0xd6')]['NavButtons']!=_0x5ae842){this['tabStrip'][_0x4dbc('0xd5')]=_0x5ae842?commonUi[_0x4dbc('0xd6')][_0x4dbc('0xd7')]:commonUi[_0x4dbc('0xd6')][_0x4dbc('0x2f')];}}},{'key':'showAddButton','get':function get(){return this[_0x4dbc('0x31')][_0x4dbc('0x36')];},'set':function set(_0x1ba0b4){if(this[_0x4dbc('0x31')][_0x4dbc('0x36')]!=_0x1ba0b4){this[_0x4dbc('0x31')][_0x4dbc('0x36')]=_0x1ba0b4;}}},{'key':_0x4dbc('0xd8'),'get':function get(){return this[_0x4dbc('0x31')]['allowDrag'];},'set':function set(_0x1d82fe){if(this[_0x4dbc('0x31')][_0x4dbc('0xd9')]!=_0x1d82fe){this['tabStrip'][_0x4dbc('0xd9')]=_0x1d82fe;}}},{'key':_0x4dbc('0x5f'),'get':function get(){return this[_0x4dbc('0xda')];},'set':function set(_0x372aa6){if(this[_0x4dbc('0xda')]!=_0x372aa6){this[_0x4dbc('0xda')]=_0x372aa6;if(this[_0x4dbc('0xda')])this[_0x4dbc('0x31')][_0x4dbc('0x5f')]=this[_0x4dbc('0xda')]['id'];}}},{'key':_0x4dbc('0xdb'),'value':function setTheme(_0x425d43,_0x11730d){this[_0x4dbc('0x5f')]=_0x425d43;if(_0x11730d){this['items'][_0x4dbc('0x4b')](function(_0x34765f){return _0x34765f[_0x4dbc('0x5f')]=_0x425d43;});}}},{'key':_0x4dbc('0xdc'),'value':function onDataLoaded(_0x14aa53,_0x49c58e){var _0x49b827=this;this[_0x4dbc('0x26')]=new commonCollections[(_0x4dbc('0x27'))](this['document'][_0x4dbc('0x23')]);this[_0x4dbc('0x26')]['collectionChanged']['addEventListener'](function(_0x14aa53,_0x49c58e){_0x49b827[_0x4dbc('0x2d')](_0x14aa53,_0x49c58e);});this['resetTabs']();this[_0x4dbc('0x31')][_0x4dbc('0xcc')]();this[_0x4dbc('0x48')]=this[_0x4dbc('0x26')][_0x4dbc('0x49')]();this['_lastIndex']=this['items'][_0x4dbc('0xdd')]();}},{'key':_0x4dbc('0xc7'),'value':function onPageValidateAction(_0xa57fb4,_0x314d39,_0x52dc00){var _0x40fc85=new PageEventArgs({'page':_0x314d39,'oldPage':_0x52dc00});this[_0x4dbc('0xa7')](_0xa57fb4,_0x40fc85);if(_0x40fc85['cancel'])return![];return!![];}}],[{'key':_0x4dbc('0x9'),'value':function create(_0x4b2b1a,_0x833c40){return controls[_0x4dbc('0x70')]['createControl'](_0x60aec8,_0x4b2b1a,_0x833c40);}}]);return _0x60aec8;}(diagramming['DiagramView']);exports['Events']=Events;exports[_0x4dbc('0xde')]=PageEventArgs;exports[_0x4dbc('0xdf')]=TabAlignment;exports['TabbedDiagramView']=TabbedDiagramView;
@@ -0,0 +1 @@
1
+ var _0x22d0=['pageChanging','pageChanged','pageAdding','pageAdded','pageRemoving','pageRemoved','sender','page','_page','oldPage','_oldPage','pages','length','diagram1','_lastIndex','items','_document','collectionChanging','addEventListener','onItemsChanging','collectionChanged','onItemsChanged','_tabAlignment','None','tabStrip','parent','req','visible','showAddButton','tabsSize','showTabCloseButtons','showNavigationButtons','initialize','_tabMouseDownHandler','onTabMouseDown','itemMouseDown','closeButtonClick','addButtonClick','navButtonClick','_tabDropHandler','onTabDrop','itemDrop','resetTabs','tabAlignment','Top','parentNode','insertBefore','draw','element','appendChild','attach','dispose','document','dataLoaded','queryView','queryViewDelegate','detachDiagramEvents','removeEventListener','dataLoadedDelegate','saveToXml','open','setRequestHeader','Content-Type','toXmlDocument','diagram','selectSingleNode','DiagramDocument','View','send','saveView','theme','Theme','loadFromXml','onload','responseXML','fromXmlDocument','loadView','onerror','log','Error\x20while\x20getting\x20XML.','GET','responseType','fromId','resetVirtualScrollGrid','scrollerH','getBounds','width','height','style','display','gridTemplateColumns','auto\x20','gridTemplateRows','px\x20auto\x20','scrollbarSize','min','bounds','scale','_element','gridColumn','1\x20/\x20-1','createElement','className','gridRow','gridColumnStart','gridColumnEnd','overflowY','hidden','div','mf_diagram_scrollerV','gridRowStart','overflowX','backgroundColor','addHandlers','scrollDelegate','resizeTimeoutId','onVirtualResize','resetTabAlignment','querySelector','.mf_diagram_scrollerH','updateCanvasSize','_zoomFactor','getPixel','canvas','measureUnit','firstChild','getScrollbarSize','scrollerV','px\x20','invalidRect','repaint','raiseEvent','sizeChanged','Empty','clear','forEach','Label','title','titleColor','iconUrl','item','mfc-add','toString','dataMfc','selectedPage','mfc-prev','mfc-next','selectedIndex','mfc-last','last','hasCssClass','rawEventArgs','target','mfc-tabbutton-close','first','remove','getGroupItems','indexOfItem','getItemByHeader','_items','splice','action','m_newItems','onPageValidateAction','m_oldItems','cancel','resetButtons','_selectedPage','setDiagram','selectItem','header','where','value','Pixel','showCloseButtons','scrollMode','NavButtons','allowReorder','allowDrag','_theme','setTheme','onDataLoaded','createControl'];var _0x4eb4=function(_0x388fca,_0x232a4c){_0x388fca=_0x388fca-0x0;var _0x208c99=_0x22d0[_0x388fca];return _0x208c99;};import{CancelEventArgs,Control,DomUtils,EventArgs}from'@mindfusion/controls';import{DiagramView,DiagramDocument,DiagramPage,Events as _0x5729ef,XmlPersistContext,Theme}from'@mindfusion/diagramming';import{NotifyCollectionChangedAction,Unit,UnitType}from'@mindfusion/common';import{TabStrip,ToolStripItem,ToolStripItemType,TabsScrollMode}from'@mindfusion/common-ui';import{ObservableCollection}from'@mindfusion/common-collections';import{GraphicsUnit}from'@mindfusion/drawing';const TabAlignment={'None':0x0,'Top':0x1,'Bottom':0x3};class Events{static get['pageChanging'](){return _0x4eb4('0x0');}static get['pageChanged'](){return _0x4eb4('0x1');}static get[_0x4eb4('0x2')](){return _0x4eb4('0x2');}static get[_0x4eb4('0x3')](){return _0x4eb4('0x3');}static get[_0x4eb4('0x4')](){return _0x4eb4('0x4');}static get[_0x4eb4('0x5')](){return _0x4eb4('0x5');}}class PageEventArgs extends CancelEventArgs{constructor(args){super();if(args[_0x4eb4('0x6')])this[_0x4eb4('0x6')]=args['sender'];if(args[_0x4eb4('0x7')])this[_0x4eb4('0x8')]=args[_0x4eb4('0x7')];if(args[_0x4eb4('0x9')])this[_0x4eb4('0xa')]=args[_0x4eb4('0x9')];}get[_0x4eb4('0x7')](){return this[_0x4eb4('0x8')];}get['oldPage'](){return this['_oldPage'];}}class TabbedDiagramView extends DiagramView{constructor(element,document){var doc=document||new DiagramDocument();if(!doc[_0x4eb4('0xb')][_0x4eb4('0xc')]){var page=new DiagramPage();page['title']=_0x4eb4('0xd');doc[_0x4eb4('0xb')]['push'](page);}super(element,doc[_0x4eb4('0xb')][0x0]);this['_document']=doc;this[_0x4eb4('0xe')]=0x1;this[_0x4eb4('0xf')]=new ObservableCollection(this[_0x4eb4('0x10')][_0x4eb4('0xb')]);this[_0x4eb4('0xf')][_0x4eb4('0x11')][_0x4eb4('0x12')]((sender,args)=>{this[_0x4eb4('0x13')](sender,args);});this['items'][_0x4eb4('0x14')][_0x4eb4('0x12')]((sender,args)=>{this[_0x4eb4('0x15')](sender,args);});this[_0x4eb4('0x16')]=TabAlignment[_0x4eb4('0x17')];this['tabStrip']=new TabStrip();this[_0x4eb4('0x18')][_0x4eb4('0x19')]=this;this[_0x4eb4('0x18')][_0x4eb4('0x1a')]=()=>{return!![];};this[_0x4eb4('0x18')][_0x4eb4('0x1b')]=![];this['tabStrip']['autoSizeTabs']=![];this[_0x4eb4('0x18')][_0x4eb4('0x1c')]=![];this[_0x4eb4('0x1d')]=0x14;this[_0x4eb4('0x1e')]=![];this[_0x4eb4('0x1f')]=![];}[_0x4eb4('0x20')](){super[_0x4eb4('0x20')]();this[_0x4eb4('0x21')]=(sender,args)=>{this[_0x4eb4('0x22')](sender,args);};this[_0x4eb4('0x18')][_0x4eb4('0x23')][_0x4eb4('0x12')](this[_0x4eb4('0x21')]);this[_0x4eb4('0x18')][_0x4eb4('0x24')]['addEventListener'](this[_0x4eb4('0x21')]);this[_0x4eb4('0x18')][_0x4eb4('0x25')]['addEventListener'](this[_0x4eb4('0x21')]);this[_0x4eb4('0x18')][_0x4eb4('0x26')]['addEventListener'](this[_0x4eb4('0x21')]);this[_0x4eb4('0x27')]=(sender,args)=>{this[_0x4eb4('0x28')](sender,args);};this[_0x4eb4('0x18')][_0x4eb4('0x29')][_0x4eb4('0x12')](this[_0x4eb4('0x27')]);this[_0x4eb4('0x2a')]();if(this[_0x4eb4('0x2b')]==TabAlignment[_0x4eb4('0x2c')])this['element'][_0x4eb4('0x2d')][_0x4eb4('0x2e')](this[_0x4eb4('0x18')][_0x4eb4('0x2f')](),this['element']);else this[_0x4eb4('0x30')][_0x4eb4('0x2d')][_0x4eb4('0x31')](this[_0x4eb4('0x18')]['draw']());this[_0x4eb4('0x18')][_0x4eb4('0x32')]();this['selectedPage']=this[_0x4eb4('0xf')]['last']();}[_0x4eb4('0x33')](){this[_0x4eb4('0xf')]['forEach'](item=>item[_0x4eb4('0x33')]());this[_0x4eb4('0x18')][_0x4eb4('0x33')]();super['dispose']();}['attachDiagramEvents'](){this[_0x4eb4('0x34')][_0x4eb4('0x12')](_0x5729ef[_0x4eb4('0x35')],this['dataLoadedDelegate']);this['document'][_0x4eb4('0x12')](_0x5729ef[_0x4eb4('0x36')],this[_0x4eb4('0x37')]);}[_0x4eb4('0x38')](){this[_0x4eb4('0x34')][_0x4eb4('0x39')](_0x5729ef['dataLoaded'],this[_0x4eb4('0x3a')]);this[_0x4eb4('0x34')][_0x4eb4('0x39')](_0x5729ef[_0x4eb4('0x36')],this[_0x4eb4('0x37')]);}[_0x4eb4('0x3b')](url){var xhr=new XMLHttpRequest();xhr[_0x4eb4('0x3c')]('POST',url,!![]);xhr[_0x4eb4('0x3d')](_0x4eb4('0x3e'),'text/xml');var xmlDoc=this[_0x4eb4('0x34')][_0x4eb4('0x3f')]();var context=new XmlPersistContext(this[_0x4eb4('0x40')],xmlDoc);var rootElement=context[_0x4eb4('0x41')](_0x4eb4('0x42'),xmlDoc);var viewElement=xmlDoc['createElement'](_0x4eb4('0x43'));rootElement['appendChild'](viewElement);this['saveView'](viewElement,context);var serializer=new XMLSerializer();xhr[_0x4eb4('0x44')](serializer['serializeToString'](xmlDoc));}[_0x4eb4('0x45')](element,context){super[_0x4eb4('0x45')](element,context);if(this[_0x4eb4('0x46')])context['writeString'](this[_0x4eb4('0x46')]['id'],_0x4eb4('0x47'),element);}[_0x4eb4('0x48')](fileUrl,onLoad,onError){var diagram=this[_0x4eb4('0x34')];var xhr=new XMLHttpRequest();xhr[_0x4eb4('0x49')]=function(){var document=xhr[_0x4eb4('0x4a')];diagram[_0x4eb4('0x4b')](document);var context=new XmlPersistContext(diagram,document);var diagramElement=context[_0x4eb4('0x41')](_0x4eb4('0x42'),document);this[_0x4eb4('0x4c')](_0x4eb4('0x43'),diagramElement,context);if(onLoad)onLoad(diagram);}['bind'](this);xhr[_0x4eb4('0x4d')]=function(){console[_0x4eb4('0x4e')](_0x4eb4('0x4f'));if(onError)onError(diagram);};xhr[_0x4eb4('0x3c')](_0x4eb4('0x50'),fileUrl);xhr[_0x4eb4('0x51')]='document';xhr[_0x4eb4('0x44')]();}[_0x4eb4('0x4c')](elementName,parentElement,context){var element=super['loadView'](elementName,parentElement,context);if(!element)return;var themeId=context['readString']('Theme',element);if(themeId)this[_0x4eb4('0x46')]=Theme[_0x4eb4('0x52')](themeId);}[_0x4eb4('0x53')](){var canvas=this['element'];if(!canvas[_0x4eb4('0x2d')])return;if(!this[_0x4eb4('0x54')]){Control['clearHandlers'](canvas[_0x4eb4('0x2d')]);var bounds=DomUtils[_0x4eb4('0x55')](canvas[_0x4eb4('0x2d')],null,!![]);var w=bounds[_0x4eb4('0x56')];var h=bounds[_0x4eb4('0x57')];if(h!=0x0)canvas[_0x4eb4('0x2d')]['_mf_originalHeight']=h;this['parentSize']={'width':w,'height':h};canvas['parentNode'][_0x4eb4('0x58')][_0x4eb4('0x59')]='grid';canvas[_0x4eb4('0x2d')]['style'][_0x4eb4('0x5a')]=_0x4eb4('0x5b')+this['scrollbarSize']+'px';if(this[_0x4eb4('0x2b')]==TabAlignment['Top'])canvas['parentNode'][_0x4eb4('0x58')][_0x4eb4('0x5c')]=this['tabsSize']+_0x4eb4('0x5d')+this[_0x4eb4('0x5e')]+'px';else canvas[_0x4eb4('0x2d')]['style'][_0x4eb4('0x5c')]=_0x4eb4('0x5b')+this[_0x4eb4('0x5e')]+'px\x20'+this[_0x4eb4('0x1d')]+'px';canvas[_0x4eb4('0x2d')]['style']['overflow']='';canvas[_0x4eb4('0x58')]['gridRow']=this[_0x4eb4('0x2b')]==TabAlignment[_0x4eb4('0x2c')]?0x2:0x1;canvas[_0x4eb4('0x56')]=Math[_0x4eb4('0x5f')](bounds['width']-this['getScrollbarSize'](0x1),this[_0x4eb4('0x40')][_0x4eb4('0x60')][_0x4eb4('0x56')]*this[_0x4eb4('0x61')]);canvas[_0x4eb4('0x57')]=Math[_0x4eb4('0x5f')](h-this[_0x4eb4('0x1d')]-this['getScrollbarSize'](0x0),this[_0x4eb4('0x40')][_0x4eb4('0x60')]['height']*this['scale']);this[_0x4eb4('0x18')]['_element'][_0x4eb4('0x58')][_0x4eb4('0x59')]='inline-block';this[_0x4eb4('0x18')][_0x4eb4('0x62')]['style'][_0x4eb4('0x63')]=_0x4eb4('0x64');var scrollerH=document[_0x4eb4('0x65')]('div');scrollerH[_0x4eb4('0x66')]='mf_diagram_scrollerH';scrollerH[_0x4eb4('0x58')][_0x4eb4('0x67')]=this[_0x4eb4('0x2b')]==TabAlignment[_0x4eb4('0x2c')]?0x3:0x2;scrollerH[_0x4eb4('0x58')][_0x4eb4('0x68')]=0x1;scrollerH[_0x4eb4('0x58')][_0x4eb4('0x69')]=0x2;scrollerH[_0x4eb4('0x58')][_0x4eb4('0x57')]=this[_0x4eb4('0x5e')]+'px';scrollerH['style'][_0x4eb4('0x56')]=bounds[_0x4eb4('0x56')]-this['scrollbarSize']+'px';scrollerH[_0x4eb4('0x58')]['overflowX']='auto';scrollerH[_0x4eb4('0x58')][_0x4eb4('0x6a')]=_0x4eb4('0x6b');scrollerH[_0x4eb4('0x58')]['backgroundColor']='#eee';this[_0x4eb4('0x54')]=scrollerH;var innerH=document[_0x4eb4('0x65')]('div');innerH[_0x4eb4('0x58')]['height']=this[_0x4eb4('0x5e')]+'px';scrollerH[_0x4eb4('0x31')](innerH);canvas['parentNode'][_0x4eb4('0x31')](scrollerH);var scrollerV=document['createElement'](_0x4eb4('0x6c'));scrollerV[_0x4eb4('0x66')]=_0x4eb4('0x6d');scrollerV[_0x4eb4('0x58')][_0x4eb4('0x6e')]=this['tabAlignment']==TabAlignment[_0x4eb4('0x2c')]?0x2:0x1;scrollerV[_0x4eb4('0x58')][_0x4eb4('0x56')]=this[_0x4eb4('0x5e')]+'px';scrollerV[_0x4eb4('0x58')]['height']=bounds['height']-this[_0x4eb4('0x1d')]-this[_0x4eb4('0x5e')]+'px';scrollerV['style'][_0x4eb4('0x6f')]='hidden';scrollerV[_0x4eb4('0x58')][_0x4eb4('0x6a')]='auto';scrollerV['style'][_0x4eb4('0x70')]='#eee';this['scrollerV']=scrollerV;var innerV=document[_0x4eb4('0x65')]('div');innerV['style'][_0x4eb4('0x56')]=this[_0x4eb4('0x5e')]+'px';scrollerV[_0x4eb4('0x31')](innerV);canvas['parentNode']['appendChild'](scrollerV);Control[_0x4eb4('0x71')](scrollerH,{'scroll':this['scrollDelegate']});Control['addHandlers'](scrollerV,{'scroll':this[_0x4eb4('0x72')]});if(!this[_0x4eb4('0x73')]){var thisObj=this;this[_0x4eb4('0x73')]=setInterval(function(){thisObj[_0x4eb4('0x74')]();},0xc8);}}}[_0x4eb4('0x75')](){this[_0x4eb4('0x18')]['visible']=this[_0x4eb4('0x2b')]!=TabAlignment[_0x4eb4('0x17')];var canvas=this[_0x4eb4('0x30')];if(this[_0x4eb4('0x2b')]==TabAlignment[_0x4eb4('0x2c')])canvas[_0x4eb4('0x2d')][_0x4eb4('0x58')]['gridTemplateRows']=this[_0x4eb4('0x1d')]+_0x4eb4('0x5d')+this['scrollbarSize']+'px';else canvas['parentNode'][_0x4eb4('0x58')][_0x4eb4('0x5c')]=_0x4eb4('0x5b')+this['scrollbarSize']+'px\x20'+this[_0x4eb4('0x1d')]+'px';canvas[_0x4eb4('0x58')][_0x4eb4('0x67')]=this['tabAlignment']==TabAlignment[_0x4eb4('0x2c')]?0x2:0x1;var scrollerH=this[_0x4eb4('0x30')][_0x4eb4('0x2d')][_0x4eb4('0x76')](_0x4eb4('0x77'));if(this[_0x4eb4('0x54')]){scrollerH[_0x4eb4('0x58')][_0x4eb4('0x67')]=this[_0x4eb4('0x2b')]==TabAlignment[_0x4eb4('0x2c')]?0x3:0x2;var scrollerV=this[_0x4eb4('0x30')][_0x4eb4('0x2d')][_0x4eb4('0x76')]('.mf_diagram_scrollerV');scrollerV[_0x4eb4('0x58')][_0x4eb4('0x6e')]=this[_0x4eb4('0x2b')]==TabAlignment[_0x4eb4('0x2c')]?0x2:0x1;}this[_0x4eb4('0x78')]();}['updateCanvasSize'](){if(!this['element'])return;var scale=this[_0x4eb4('0x79')]/0x64/GraphicsUnit[_0x4eb4('0x7a')](this[_0x4eb4('0x7b')][_0x4eb4('0x7c')]);if(this[_0x4eb4('0x54')]){var parentDiv=this[_0x4eb4('0x30')][_0x4eb4('0x2d')];this[_0x4eb4('0x54')][_0x4eb4('0x7d')][_0x4eb4('0x58')]['width']=this['canvas']['bounds'][_0x4eb4('0x56')]*scale+'px';this['scrollerV']['firstChild'][_0x4eb4('0x58')]['height']=this[_0x4eb4('0x7b')]['bounds'][_0x4eb4('0x57')]*scale+'px';var vScrollSize=this[_0x4eb4('0x7e')](0x1);var hScrollSize=this[_0x4eb4('0x7e')](0x0);this[_0x4eb4('0x7f')]['style'][_0x4eb4('0x56')]=vScrollSize+'px';this[_0x4eb4('0x54')][_0x4eb4('0x58')][_0x4eb4('0x57')]=hScrollSize+'px';parentDiv[_0x4eb4('0x58')][_0x4eb4('0x5a')]='auto\x20'+vScrollSize+'px';if(this[_0x4eb4('0x2b')]==TabAlignment['Top'])parentDiv[_0x4eb4('0x58')]['gridTemplateRows']=this['tabsSize']+_0x4eb4('0x5d')+hScrollSize+'px';else parentDiv[_0x4eb4('0x58')]['gridTemplateRows']=_0x4eb4('0x5b')+hScrollSize+_0x4eb4('0x80')+this[_0x4eb4('0x1d')]+'px';var bounds=DomUtils[_0x4eb4('0x55')](parentDiv,null,!![]);var h=bounds[_0x4eb4('0x57')];if(h==0x0)h=parentDiv['_mf_originalHeight'];if(h==0x0)h=this[_0x4eb4('0x7b')][_0x4eb4('0x60')]['height']*scale;this[_0x4eb4('0x30')][_0x4eb4('0x56')]=Math[_0x4eb4('0x5f')](bounds[_0x4eb4('0x56')]-vScrollSize,this[_0x4eb4('0x7b')][_0x4eb4('0x60')][_0x4eb4('0x56')]*scale);this[_0x4eb4('0x30')]['height']=Math['min'](h-this[_0x4eb4('0x1d')]-hScrollSize,this[_0x4eb4('0x7b')][_0x4eb4('0x60')][_0x4eb4('0x57')]*scale);this[_0x4eb4('0x54')][_0x4eb4('0x58')]['width']=bounds['width']-vScrollSize+'px';this[_0x4eb4('0x7f')][_0x4eb4('0x58')][_0x4eb4('0x57')]=h-this[_0x4eb4('0x1d')]-hScrollSize+'px';}this['canvas'][_0x4eb4('0x81')]=null;this['canvas'][_0x4eb4('0x82')]();this[_0x4eb4('0x40')][_0x4eb4('0x83')](_0x5729ef[_0x4eb4('0x84')],EventArgs[_0x4eb4('0x85')]);}['resetTabs'](){this['tabStrip'][_0x4eb4('0xf')][_0x4eb4('0x86')]();this['document'][_0x4eb4('0xb')][_0x4eb4('0x87')]((page,index)=>{var header=new ToolStripItem(ToolStripItemType[_0x4eb4('0x88')],page[_0x4eb4('0x89')]);header[_0x4eb4('0x8a')]=page[_0x4eb4('0x8a')];header['imageSrc']=page[_0x4eb4('0x8b')];this['tabStrip']['items']['add'](header);page['header']=header;});}[_0x4eb4('0x22')](sender,args){if(!args['item']['enabled'])return;if(args[_0x4eb4('0x8c')]['dataMfc']==_0x4eb4('0x8d')){var page=new DiagramPage();page[_0x4eb4('0x89')]='diagram'+(++this[_0x4eb4('0xe')])[_0x4eb4('0x8e')]();this[_0x4eb4('0xf')]['add'](page);this['selectedPage']=page;return;}if(args[_0x4eb4('0x8c')]['dataMfc']){if(args['item'][_0x4eb4('0x8f')]=='mfc-first')this[_0x4eb4('0x90')]=this['items']['first']();else if(args[_0x4eb4('0x8c')][_0x4eb4('0x8f')]==_0x4eb4('0x91'))this['selectedIndex']--;else if(args[_0x4eb4('0x8c')]['dataMfc']==_0x4eb4('0x92'))this[_0x4eb4('0x93')]++;else if(args[_0x4eb4('0x8c')][_0x4eb4('0x8f')]==_0x4eb4('0x94'))this[_0x4eb4('0x90')]=this[_0x4eb4('0xf')][_0x4eb4('0x95')]();return;}var item=this['getItemByHeader'](args[_0x4eb4('0x8c')]);if(item){if(DomUtils[_0x4eb4('0x96')](args[_0x4eb4('0x97')][_0x4eb4('0x98')],_0x4eb4('0x99'))){var ni=this[_0x4eb4('0x93')];if(this[_0x4eb4('0x90')]==item){if(item==this[_0x4eb4('0xf')][_0x4eb4('0x9a')]())ni++;}this['items'][_0x4eb4('0x9b')](item);this[_0x4eb4('0x93')]=--ni;}else this[_0x4eb4('0x90')]=item;}}['onTabDrop'](sender,args){var index=sender[_0x4eb4('0x9c')](args[_0x4eb4('0x8c')])[_0x4eb4('0x9d')](args[_0x4eb4('0x8c')]);var item=this[_0x4eb4('0x9e')](args['item']);this[_0x4eb4('0xf')][_0x4eb4('0x9f')][_0x4eb4('0xa0')](this[_0x4eb4('0xf')][_0x4eb4('0x9d')](item),0x1);this['items'][_0x4eb4('0x9f')]['splice'](index,0x0,item);}['onItemsChanging'](sender,args){if(args[_0x4eb4('0xa1')]==NotifyCollectionChangedAction['Add']){var result;for(var i=0x0;i<args[_0x4eb4('0xa2')][_0x4eb4('0xc')];i++){if(!this[_0x4eb4('0xa3')](Events[_0x4eb4('0x2')],args[_0x4eb4('0xa2')][i]))result=!![];}args['cancel']=result;}else{var result;for(var i=0x0;i<args[_0x4eb4('0xa4')][_0x4eb4('0xc')];i++){if(!this[_0x4eb4('0xa3')](Events[_0x4eb4('0x4')],null,args[_0x4eb4('0xa4')][i]))result=!![];}args[_0x4eb4('0xa5')]=result;}}[_0x4eb4('0x15')](sender,args){if(args['action']==NotifyCollectionChangedAction['Add']){for(var i=0x0;i<args['m_newItems'][_0x4eb4('0xc')];i++){this[_0x4eb4('0x83')](Events[_0x4eb4('0x3')],new PageEventArgs({'page':args[_0x4eb4('0xa2')][i]}));}}else{for(var i=0x0;i<args['m_oldItems'][_0x4eb4('0xc')];i++){this[_0x4eb4('0x83')](Events[_0x4eb4('0x5')],new PageEventArgs({'oldPage':args[_0x4eb4('0xa4')][i]}));}}this['resetTabs']();this[_0x4eb4('0x18')][_0x4eb4('0xa6')]();}get['selectedPage'](){return this['_selectedPage'];}set[_0x4eb4('0x90')](value){if(value){if(this['onPageValidateAction'](Events['pageChanging'],this[_0x4eb4('0xa7')],value)){var oldPage=this[_0x4eb4('0xa7')];this[_0x4eb4('0xa7')]=value;this[_0x4eb4('0xa8')](this['_selectedPage']);this['_selectedPage'][_0x4eb4('0x82')]();this[_0x4eb4('0x18')][_0x4eb4('0xa9')](this[_0x4eb4('0xa7')][_0x4eb4('0xaa')]);this[_0x4eb4('0x83')](_0x5729ef[_0x4eb4('0x1')],new PageEventArgs({'page':this[_0x4eb4('0xa7')],'oldPage':oldPage}));}}}get[_0x4eb4('0x93')](){if(this[_0x4eb4('0xa7')])return this[_0x4eb4('0xf')][_0x4eb4('0x9d')](this[_0x4eb4('0xa7')]);return-0x1;}set[_0x4eb4('0x93')](value){var tab=this['items'][_0x4eb4('0xf')]()[value];if(tab)this[_0x4eb4('0x90')]=tab;}[_0x4eb4('0x9e')](header){return this[_0x4eb4('0xf')][_0x4eb4('0xab')](x=>x[_0x4eb4('0xaa')]==header)[_0x4eb4('0x9a')]();}get['document'](){return this['_document'];}set[_0x4eb4('0x34')](value){if(this[_0x4eb4('0x10')]!=value){this[_0x4eb4('0x10')]=value;}}get[_0x4eb4('0x1d')](){if(this[_0x4eb4('0x2b')]==TabAlignment[_0x4eb4('0x17')])return 0x0;return this[_0x4eb4('0x18')]['height'][_0x4eb4('0xac')];}set[_0x4eb4('0x1d')](value){if(this[_0x4eb4('0x18')][_0x4eb4('0x57')][_0x4eb4('0xac')]!=value){this[_0x4eb4('0x18')]['height']=new Unit(value,UnitType[_0x4eb4('0xad')]);this['resetTabAlignment']();}}get[_0x4eb4('0x2b')](){return this[_0x4eb4('0x16')];}set['tabAlignment'](value){if(this[_0x4eb4('0x16')]!=value){this['_tabAlignment']=value;this[_0x4eb4('0x75')]();}}get[_0x4eb4('0x1e')](){return this[_0x4eb4('0x18')][_0x4eb4('0xae')];}set[_0x4eb4('0x1e')](value){if(this[_0x4eb4('0x18')][_0x4eb4('0xae')]!=value){this[_0x4eb4('0x18')][_0x4eb4('0xae')]=value;}}get[_0x4eb4('0x1f')](){return this[_0x4eb4('0x18')][_0x4eb4('0xaf')]==TabsScrollMode['NavButtons'];}set[_0x4eb4('0x1f')](value){if(this['tabStrip'][_0x4eb4('0xaf')]==TabsScrollMode[_0x4eb4('0xb0')]!=value){this[_0x4eb4('0x18')][_0x4eb4('0xaf')]=value?TabsScrollMode[_0x4eb4('0xb0')]:TabsScrollMode['None'];}}get[_0x4eb4('0x1c')](){return this[_0x4eb4('0x18')][_0x4eb4('0x1c')];}set[_0x4eb4('0x1c')](value){if(this[_0x4eb4('0x18')][_0x4eb4('0x1c')]!=value){this[_0x4eb4('0x18')][_0x4eb4('0x1c')]=value;}}get[_0x4eb4('0xb1')](){return this[_0x4eb4('0x18')][_0x4eb4('0xb2')];}set['allowReorder'](value){if(this[_0x4eb4('0x18')][_0x4eb4('0xb2')]!=value){this[_0x4eb4('0x18')][_0x4eb4('0xb2')]=value;}}get['theme'](){return this[_0x4eb4('0xb3')];}set['theme'](value){if(this[_0x4eb4('0xb3')]!=value){this['_theme']=value;if(this[_0x4eb4('0xb3')])this[_0x4eb4('0x18')][_0x4eb4('0x46')]=this[_0x4eb4('0xb3')]['id'];}}[_0x4eb4('0xb4')](theme,setToPages){this['theme']=theme;if(setToPages){this['items'][_0x4eb4('0x87')](item=>item[_0x4eb4('0x46')]=theme);}}[_0x4eb4('0xb5')](sender,args){this['items']=new ObservableCollection(this[_0x4eb4('0x34')]['pages']);this[_0x4eb4('0xf')][_0x4eb4('0x14')]['addEventListener']((sender,args)=>{this['onItemsChanged'](sender,args);});this[_0x4eb4('0x2a')]();this[_0x4eb4('0x18')][_0x4eb4('0xa6')]();this[_0x4eb4('0x90')]=this[_0x4eb4('0xf')][_0x4eb4('0x95')]();this[_0x4eb4('0xe')]=this['items']['count']();}[_0x4eb4('0xa3')](event,page,oldPage){var args=new PageEventArgs({'page':page,'oldPage':oldPage});this[_0x4eb4('0x83')](event,args);if(args[_0x4eb4('0xa5')])return![];return!![];}static['create'](element,document){return Control[_0x4eb4('0xb6')](TabbedDiagramView,element,document);}}export{Events,PageEventArgs,TabAlignment,TabbedDiagramView};
@@ -0,0 +1 @@
1
+ var _0x43b4=['object','undefined','function','amd','MindFusion','Diagramming','Controls','Common','Drawing','Cannot\x20call\x20a\x20class\x20as\x20a\x20function','length','enumerable','configurable','value','writable','defineProperty','key','prototype','Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function','create','setPrototypeOf','__proto__','getPrototypeOf','construct','call','this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called','constructor','apply','hasOwnProperty','get','pageChanging','pageChanged','pageAdding','pageAdded','pageRemoving','pageRemoved','sender','page','_page','oldPage','_oldPage','DiagramDocument','DiagramPage','title','diagram1','pages','push','_lastIndex','items','ObservableCollection','_document','collectionChanging','onItemsChanging','addEventListener','onItemsChanged','_tabAlignment','None','tabStrip','parent','req','visible','autoSizeTabs','showAddButton','tabsSize','showNavigationButtons','initialize','itemMouseDown','_tabMouseDownHandler','addButtonClick','onTabDrop','itemDrop','_tabDropHandler','resetTabs','tabAlignment','element','parentNode','draw','appendChild','attach','selectedPage','last','forEach','dispose','attachDiagramEvents','document','Events','dataLoaded','dataLoadedDelegate','queryView','queryViewDelegate','detachDiagramEvents','removeEventListener','saveToXml','open','POST','Content-Type','text/xml','selectSingleNode','createElement','saveView','send','serializeToString','theme','writeString','Theme','loadFromXml','onload','responseXML','fromXmlDocument','XmlPersistContext','loadView','View','bind','onerror','GET','responseType','readString','fromId','resetVirtualScrollGrid','scrollerH','Control','getBounds','width','height','parentSize','style','grid','scrollbarSize','Top','gridTemplateRows','px\x20','min','getScrollbarSize','diagram','bounds','scale','display','inline-block','gridColumn','1\x20/\x20-1','className','mf_diagram_scrollerH','gridRow','gridColumnEnd','overflowX','auto','overflowY','hidden','#eee','div','mf_diagram_scrollerV','gridRowStart','backgroundColor','scrollerV','addHandlers','scrollDelegate','px\x20auto\x20','auto\x20','querySelector','.mf_diagram_scrollerH','.mf_diagram_scrollerV','updateCanvasSize','_zoomFactor','getPixel','canvas','measureUnit','firstChild','gridTemplateColumns','DomUtils','_mf_originalHeight','raiseEvent','Empty','clear','ToolStripItemType','Label','titleColor','imageSrc','onTabMouseDown','enabled','dataMfc','mfc-add','toString','add','item','first','mfc-prev','selectedIndex','mfc-next','mfc-last','getItemByHeader','rawEventArgs','target','getGroupItems','_items','indexOfItem','splice','action','NotifyCollectionChangedAction','Add','m_newItems','onPageValidateAction','cancel','m_oldItems','resetButtons','_selectedPage','setDiagram','repaint','where','header','Unit','UnitType','resetTabAlignment','showCloseButtons','scrollMode','TabsScrollMode','NavButtons','allowReorder','allowDrag','_theme','setTheme','onDataLoaded','collectionChanged','count','createControl','PageEventArgs','TabbedDiagramView','__esModule'];var _0x3fc4=function(_0x275967,_0x4b5daa){_0x275967=_0x275967-0x0;var _0xae584c=_0x43b4[_0x275967];return _0xae584c;};(function(_0x1bdb7f,_0x4b40d7){typeof exports===_0x3fc4('0x0')&&typeof module!==_0x3fc4('0x1')?_0x4b40d7(exports,require('@mindfusion/controls'),require('@mindfusion/diagramming'),require('@mindfusion/common'),require('@mindfusion/common-ui'),require('@mindfusion/common-collections'),require('@mindfusion/drawing')):typeof define===_0x3fc4('0x2')&&define[_0x3fc4('0x3')]?define(['exports','@mindfusion/controls','@mindfusion/diagramming','@mindfusion/common','@mindfusion/common-ui','@mindfusion/common-collections','@mindfusion/drawing'],_0x4b40d7):(_0x1bdb7f=typeof globalThis!=='undefined'?globalThis:_0x1bdb7f||self,_0x4b40d7((_0x1bdb7f[_0x3fc4('0x4')]=_0x1bdb7f[_0x3fc4('0x4')]||{},_0x1bdb7f[_0x3fc4('0x4')]['Diagramming']=_0x1bdb7f[_0x3fc4('0x4')][_0x3fc4('0x5')]||{},_0x1bdb7f['MindFusion'][_0x3fc4('0x5')][_0x3fc4('0x6')]={}),_0x1bdb7f[_0x3fc4('0x4')][_0x3fc4('0x6')],_0x1bdb7f[_0x3fc4('0x4')][_0x3fc4('0x5')],_0x1bdb7f[_0x3fc4('0x4')]['Common'],_0x1bdb7f[_0x3fc4('0x4')]['Common']['UI'],_0x1bdb7f[_0x3fc4('0x4')][_0x3fc4('0x7')]['Collections'],_0x1bdb7f[_0x3fc4('0x4')][_0x3fc4('0x8')]));}(this,function(_0x5e6f11,_0x47440e,_0x26ec9,_0x4232ed,_0x3368e5,_0x413fff,_0xc67f3a){'use strict';var _0x40f6c3={'None':0x0,'Top':0x1,'Bottom':0x3};function _0x36602b(_0x43ffda,_0xa4fa6){if(!(_0x43ffda instanceof _0xa4fa6)){throw new TypeError(_0x3fc4('0x9'));}}function _0x5174d6(_0x4548f0,_0x5f1b08){for(var _0x495588=0x0;_0x495588<_0x5f1b08[_0x3fc4('0xa')];_0x495588++){var _0x4babc6=_0x5f1b08[_0x495588];_0x4babc6[_0x3fc4('0xb')]=_0x4babc6[_0x3fc4('0xb')]||![];_0x4babc6[_0x3fc4('0xc')]=!![];if(_0x3fc4('0xd')in _0x4babc6)_0x4babc6[_0x3fc4('0xe')]=!![];Object[_0x3fc4('0xf')](_0x4548f0,_0x4babc6[_0x3fc4('0x10')],_0x4babc6);}}function _0x5e6b91(_0x100d99,_0x5a3d9c,_0x5f18ec){if(_0x5a3d9c)_0x5174d6(_0x100d99[_0x3fc4('0x11')],_0x5a3d9c);if(_0x5f18ec)_0x5174d6(_0x100d99,_0x5f18ec);return _0x100d99;}function _0x4eb8c3(_0x47a84c,_0x3c293f){if(typeof _0x3c293f!==_0x3fc4('0x2')&&_0x3c293f!==null){throw new TypeError(_0x3fc4('0x12'));}_0x47a84c['prototype']=Object[_0x3fc4('0x13')](_0x3c293f&&_0x3c293f[_0x3fc4('0x11')],{'constructor':{'value':_0x47a84c,'writable':!![],'configurable':!![]}});if(_0x3c293f)_0x358091(_0x47a84c,_0x3c293f);}function _0x13b827(_0x375aac){_0x13b827=Object[_0x3fc4('0x14')]?Object['getPrototypeOf']:function _0x13b827(_0x375aac){return _0x375aac[_0x3fc4('0x15')]||Object[_0x3fc4('0x16')](_0x375aac);};return _0x13b827(_0x375aac);}function _0x358091(_0x4f9009,_0xb60d79){_0x358091=Object[_0x3fc4('0x14')]||function _0x358091(_0x4f9009,_0xb60d79){_0x4f9009[_0x3fc4('0x15')]=_0xb60d79;return _0x4f9009;};return _0x358091(_0x4f9009,_0xb60d79);}function _0x2eec19(){if(typeof Reflect===_0x3fc4('0x1')||!Reflect[_0x3fc4('0x17')])return![];if(Reflect[_0x3fc4('0x17')]['sham'])return![];if(typeof Proxy==='function')return!![];try{Boolean[_0x3fc4('0x11')]['valueOf'][_0x3fc4('0x18')](Reflect['construct'](Boolean,[],function(){}));return!![];}catch(_0x1cb609){return![];}}function _0x393f34(_0x7b12d8){if(_0x7b12d8===void 0x0){throw new ReferenceError(_0x3fc4('0x19'));}return _0x7b12d8;}function _0xf76c92(_0xb922f8,_0xa0efd3){if(_0xa0efd3&&(typeof _0xa0efd3===_0x3fc4('0x0')||typeof _0xa0efd3==='function')){return _0xa0efd3;}return _0x393f34(_0xb922f8);}function _0x145591(_0x36e5df){var _0x1ef3b9=_0x2eec19();return function _createSuperInternal(){var _0x52fb86=_0x13b827(_0x36e5df),_0x3a034f;if(_0x1ef3b9){var _0x11cf91=_0x13b827(this)[_0x3fc4('0x1a')];_0x3a034f=Reflect[_0x3fc4('0x17')](_0x52fb86,arguments,_0x11cf91);}else{_0x3a034f=_0x52fb86[_0x3fc4('0x1b')](this,arguments);}return _0xf76c92(this,_0x3a034f);};}function _0x67c475(_0x3439c7,_0x368726){while(!Object[_0x3fc4('0x11')][_0x3fc4('0x1c')][_0x3fc4('0x18')](_0x3439c7,_0x368726)){_0x3439c7=_0x13b827(_0x3439c7);if(_0x3439c7===null)break;}return _0x3439c7;}function _0x44c0d4(_0x30148c,_0x23b5e4,_0x2b2c61){if(typeof Reflect!==_0x3fc4('0x1')&&Reflect[_0x3fc4('0x1d')]){_0x44c0d4=Reflect['get'];}else{_0x44c0d4=function _0x44c0d4(_0x30148c,_0x23b5e4,_0x2b2c61){var _0x4ea3a0=_0x67c475(_0x30148c,_0x23b5e4);if(!_0x4ea3a0)return;var _0x29f3e6=Object['getOwnPropertyDescriptor'](_0x4ea3a0,_0x23b5e4);if(_0x29f3e6['get']){return _0x29f3e6[_0x3fc4('0x1d')]['call'](_0x2b2c61);}return _0x29f3e6[_0x3fc4('0xd')];};}return _0x44c0d4(_0x30148c,_0x23b5e4,_0x2b2c61||_0x30148c);}var _0x4e64c8=function(){function _0x4e64c8(){_0x36602b(this,_0x4e64c8);}_0x5e6b91(_0x4e64c8,null,[{'key':_0x3fc4('0x1e'),'get':function get(){return _0x3fc4('0x1e');}},{'key':_0x3fc4('0x1f'),'get':function get(){return'pageChanged';}},{'key':_0x3fc4('0x20'),'get':function get(){return'pageAdding';}},{'key':'pageAdded','get':function get(){return _0x3fc4('0x21');}},{'key':_0x3fc4('0x22'),'get':function get(){return _0x3fc4('0x22');}},{'key':_0x3fc4('0x23'),'get':function get(){return'pageRemoved';}}]);return _0x4e64c8;}();var _0x1c4537=function(_0x1fd7e3){_0x4eb8c3(_0x1c4537,_0x1fd7e3);var _0x9060c=_0x145591(_0x1c4537);function _0x1c4537(_0x43ce88){var _0xf82ff0;_0x36602b(this,_0x1c4537);_0xf82ff0=_0x9060c[_0x3fc4('0x18')](this);if(_0x43ce88[_0x3fc4('0x24')])_0xf82ff0[_0x3fc4('0x24')]=_0x43ce88[_0x3fc4('0x24')];if(_0x43ce88[_0x3fc4('0x25')])_0xf82ff0[_0x3fc4('0x26')]=_0x43ce88[_0x3fc4('0x25')];if(_0x43ce88[_0x3fc4('0x27')])_0xf82ff0['_oldPage']=_0x43ce88['oldPage'];return _0xf82ff0;}_0x5e6b91(_0x1c4537,[{'key':_0x3fc4('0x25'),'get':function get(){return this[_0x3fc4('0x26')];}},{'key':'oldPage','get':function get(){return this[_0x3fc4('0x28')];}}]);return _0x1c4537;}(_0x47440e['CancelEventArgs']);var _0x379f08=function(_0x5e6f12){_0x4eb8c3(_0x379f08,_0x5e6f12);var _0x42d561=_0x145591(_0x379f08);function _0x379f08(_0x412011,_0x4a8b63){var _0x2f4d19;_0x36602b(this,_0x379f08);var _0x4dd5a7=_0x4a8b63||new _0x26ec9[(_0x3fc4('0x29'))]();if(!_0x4dd5a7['pages']['length']){var _0x5b10ef=new _0x26ec9[(_0x3fc4('0x2a'))]();_0x5b10ef[_0x3fc4('0x2b')]=_0x3fc4('0x2c');_0x4dd5a7[_0x3fc4('0x2d')][_0x3fc4('0x2e')](_0x5b10ef);}_0x2f4d19=_0x42d561[_0x3fc4('0x18')](this,_0x412011,_0x4dd5a7[_0x3fc4('0x2d')][0x0]);_0x2f4d19['_document']=_0x4dd5a7;_0x2f4d19[_0x3fc4('0x2f')]=0x1;_0x2f4d19[_0x3fc4('0x30')]=new _0x413fff[(_0x3fc4('0x31'))](_0x2f4d19[_0x3fc4('0x32')][_0x3fc4('0x2d')]);_0x2f4d19['items'][_0x3fc4('0x33')]['addEventListener'](function(_0x5dd20a,_0x3c5381){_0x2f4d19[_0x3fc4('0x34')](_0x5dd20a,_0x3c5381);});_0x2f4d19[_0x3fc4('0x30')]['collectionChanged'][_0x3fc4('0x35')](function(_0x4da3cf,_0x400d72){_0x2f4d19[_0x3fc4('0x36')](_0x4da3cf,_0x400d72);});_0x2f4d19[_0x3fc4('0x37')]=_0x40f6c3[_0x3fc4('0x38')];_0x2f4d19[_0x3fc4('0x39')]=new _0x3368e5['TabStrip']();_0x2f4d19[_0x3fc4('0x39')][_0x3fc4('0x3a')]=_0x393f34(_0x2f4d19);_0x2f4d19[_0x3fc4('0x39')][_0x3fc4('0x3b')]=function(){return!![];};_0x2f4d19[_0x3fc4('0x39')][_0x3fc4('0x3c')]=![];_0x2f4d19[_0x3fc4('0x39')][_0x3fc4('0x3d')]=![];_0x2f4d19[_0x3fc4('0x39')][_0x3fc4('0x3e')]=![];_0x2f4d19[_0x3fc4('0x3f')]=0x14;_0x2f4d19['showTabCloseButtons']=![];_0x2f4d19[_0x3fc4('0x40')]=![];return _0x2f4d19;}_0x5e6b91(_0x379f08,[{'key':_0x3fc4('0x41'),'value':function initialize(){var _0x356b60=this;_0x44c0d4(_0x13b827(_0x379f08[_0x3fc4('0x11')]),_0x3fc4('0x41'),this)[_0x3fc4('0x18')](this);this['_tabMouseDownHandler']=function(_0x453df0,_0x551fed){_0x356b60['onTabMouseDown'](_0x453df0,_0x551fed);};this[_0x3fc4('0x39')][_0x3fc4('0x42')][_0x3fc4('0x35')](this[_0x3fc4('0x43')]);this[_0x3fc4('0x39')]['closeButtonClick'][_0x3fc4('0x35')](this[_0x3fc4('0x43')]);this[_0x3fc4('0x39')][_0x3fc4('0x44')][_0x3fc4('0x35')](this[_0x3fc4('0x43')]);this['tabStrip']['navButtonClick']['addEventListener'](this[_0x3fc4('0x43')]);this['_tabDropHandler']=function(_0x429285,_0x4d9155){_0x356b60[_0x3fc4('0x45')](_0x429285,_0x4d9155);};this['tabStrip'][_0x3fc4('0x46')][_0x3fc4('0x35')](this[_0x3fc4('0x47')]);this[_0x3fc4('0x48')]();if(this[_0x3fc4('0x49')]==_0x40f6c3['Top'])this[_0x3fc4('0x4a')][_0x3fc4('0x4b')]['insertBefore'](this[_0x3fc4('0x39')][_0x3fc4('0x4c')](),this[_0x3fc4('0x4a')]);else this['element'][_0x3fc4('0x4b')][_0x3fc4('0x4d')](this[_0x3fc4('0x39')]['draw']());this['tabStrip'][_0x3fc4('0x4e')]();this[_0x3fc4('0x4f')]=this[_0x3fc4('0x30')][_0x3fc4('0x50')]();}},{'key':'dispose','value':function dispose(){this['items'][_0x3fc4('0x51')](function(_0x4145c7){return _0x4145c7['dispose']();});this[_0x3fc4('0x39')]['dispose']();_0x44c0d4(_0x13b827(_0x379f08[_0x3fc4('0x11')]),_0x3fc4('0x52'),this)[_0x3fc4('0x18')](this);}},{'key':_0x3fc4('0x53'),'value':function attachDiagramEvents(){this[_0x3fc4('0x54')]['addEventListener'](_0x26ec9[_0x3fc4('0x55')][_0x3fc4('0x56')],this[_0x3fc4('0x57')]);this['document']['addEventListener'](_0x26ec9[_0x3fc4('0x55')][_0x3fc4('0x58')],this[_0x3fc4('0x59')]);}},{'key':_0x3fc4('0x5a'),'value':function detachDiagramEvents(){this['document'][_0x3fc4('0x5b')](_0x26ec9[_0x3fc4('0x55')][_0x3fc4('0x56')],this['dataLoadedDelegate']);this[_0x3fc4('0x54')][_0x3fc4('0x5b')](_0x26ec9[_0x3fc4('0x55')][_0x3fc4('0x58')],this[_0x3fc4('0x59')]);}},{'key':_0x3fc4('0x5c'),'value':function saveToXml(_0x30da30){var _0x17ffea=new XMLHttpRequest();_0x17ffea[_0x3fc4('0x5d')](_0x3fc4('0x5e'),_0x30da30,!![]);_0x17ffea['setRequestHeader'](_0x3fc4('0x5f'),_0x3fc4('0x60'));var _0x4fca46=this[_0x3fc4('0x54')]['toXmlDocument']();var _0x59b0c6=new _0x26ec9['XmlPersistContext'](this['diagram'],_0x4fca46);var _0x57d5a5=_0x59b0c6[_0x3fc4('0x61')](_0x3fc4('0x29'),_0x4fca46);var _0x9926cb=_0x4fca46[_0x3fc4('0x62')]('View');_0x57d5a5[_0x3fc4('0x4d')](_0x9926cb);this[_0x3fc4('0x63')](_0x9926cb,_0x59b0c6);var _0x4076a2=new XMLSerializer();_0x17ffea[_0x3fc4('0x64')](_0x4076a2[_0x3fc4('0x65')](_0x4fca46));}},{'key':'saveView','value':function saveView(_0x54a4cf,_0x470f52){_0x44c0d4(_0x13b827(_0x379f08[_0x3fc4('0x11')]),_0x3fc4('0x63'),this)[_0x3fc4('0x18')](this,_0x54a4cf,_0x470f52);if(this[_0x3fc4('0x66')])_0x470f52[_0x3fc4('0x67')](this[_0x3fc4('0x66')]['id'],_0x3fc4('0x68'),_0x54a4cf);}},{'key':_0x3fc4('0x69'),'value':function loadFromXml(_0x3b260a,_0x4c2c6b,_0x112c2a){var _0x5b2a3f=this['document'];var _0x518a82=new XMLHttpRequest();_0x518a82[_0x3fc4('0x6a')]=function(){var _0x2820e8=_0x518a82[_0x3fc4('0x6b')];_0x5b2a3f[_0x3fc4('0x6c')](_0x2820e8);var _0x4e07fc=new _0x26ec9[(_0x3fc4('0x6d'))](_0x5b2a3f,_0x2820e8);var _0x83893b=_0x4e07fc[_0x3fc4('0x61')](_0x3fc4('0x29'),_0x2820e8);this[_0x3fc4('0x6e')](_0x3fc4('0x6f'),_0x83893b,_0x4e07fc);if(_0x4c2c6b)_0x4c2c6b(_0x5b2a3f);}[_0x3fc4('0x70')](this);_0x518a82[_0x3fc4('0x71')]=function(){console['log']('Error\x20while\x20getting\x20XML.');if(_0x112c2a)_0x112c2a(_0x5b2a3f);};_0x518a82[_0x3fc4('0x5d')](_0x3fc4('0x72'),_0x3b260a);_0x518a82[_0x3fc4('0x73')]=_0x3fc4('0x54');_0x518a82[_0x3fc4('0x64')]();}},{'key':_0x3fc4('0x6e'),'value':function loadView(_0x10d610,_0x331ba4,_0x39c03e){var _0x5a5633=_0x44c0d4(_0x13b827(_0x379f08[_0x3fc4('0x11')]),_0x3fc4('0x6e'),this)[_0x3fc4('0x18')](this,_0x10d610,_0x331ba4,_0x39c03e);if(!_0x5a5633)return;var _0x4f70ce=_0x39c03e[_0x3fc4('0x74')](_0x3fc4('0x68'),_0x5a5633);if(_0x4f70ce)this[_0x3fc4('0x66')]=_0x26ec9[_0x3fc4('0x68')][_0x3fc4('0x75')](_0x4f70ce);}},{'key':_0x3fc4('0x76'),'value':function resetVirtualScrollGrid(){var _0x501c7c=this[_0x3fc4('0x4a')];if(!_0x501c7c[_0x3fc4('0x4b')])return;if(!this[_0x3fc4('0x77')]){_0x47440e[_0x3fc4('0x78')]['clearHandlers'](_0x501c7c[_0x3fc4('0x4b')]);var _0x5991ef=_0x47440e['DomUtils'][_0x3fc4('0x79')](_0x501c7c[_0x3fc4('0x4b')],null,!![]);var _0x32189b=_0x5991ef[_0x3fc4('0x7a')];var _0x28e725=_0x5991ef[_0x3fc4('0x7b')];if(_0x28e725!=0x0)_0x501c7c[_0x3fc4('0x4b')]['_mf_originalHeight']=_0x28e725;this[_0x3fc4('0x7c')]={'width':_0x32189b,'height':_0x28e725};_0x501c7c[_0x3fc4('0x4b')][_0x3fc4('0x7d')]['display']=_0x3fc4('0x7e');_0x501c7c[_0x3fc4('0x4b')][_0x3fc4('0x7d')]['gridTemplateColumns']='auto\x20'+this[_0x3fc4('0x7f')]+'px';if(this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')])_0x501c7c[_0x3fc4('0x4b')]['style'][_0x3fc4('0x81')]=this[_0x3fc4('0x3f')]+'px\x20auto\x20'+this[_0x3fc4('0x7f')]+'px';else _0x501c7c[_0x3fc4('0x4b')][_0x3fc4('0x7d')][_0x3fc4('0x81')]='auto\x20'+this[_0x3fc4('0x7f')]+_0x3fc4('0x82')+this['tabsSize']+'px';_0x501c7c[_0x3fc4('0x4b')]['style']['overflow']='';_0x501c7c['style']['gridRow']=this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')]?0x2:0x1;_0x501c7c[_0x3fc4('0x7a')]=Math[_0x3fc4('0x83')](_0x5991ef[_0x3fc4('0x7a')]-this[_0x3fc4('0x84')](0x1),this[_0x3fc4('0x85')][_0x3fc4('0x86')][_0x3fc4('0x7a')]*this[_0x3fc4('0x87')]);_0x501c7c[_0x3fc4('0x7b')]=Math[_0x3fc4('0x83')](_0x28e725-this[_0x3fc4('0x3f')]-this['getScrollbarSize'](0x0),this[_0x3fc4('0x85')][_0x3fc4('0x86')]['height']*this[_0x3fc4('0x87')]);this[_0x3fc4('0x39')]['_element'][_0x3fc4('0x7d')][_0x3fc4('0x88')]=_0x3fc4('0x89');this['tabStrip']['_element'][_0x3fc4('0x7d')][_0x3fc4('0x8a')]=_0x3fc4('0x8b');var _0x32e372=document[_0x3fc4('0x62')]('div');_0x32e372[_0x3fc4('0x8c')]=_0x3fc4('0x8d');_0x32e372['style'][_0x3fc4('0x8e')]=this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')]?0x3:0x2;_0x32e372[_0x3fc4('0x7d')]['gridColumnStart']=0x1;_0x32e372[_0x3fc4('0x7d')][_0x3fc4('0x8f')]=0x2;_0x32e372['style'][_0x3fc4('0x7b')]=this[_0x3fc4('0x7f')]+'px';_0x32e372[_0x3fc4('0x7d')][_0x3fc4('0x7a')]=_0x5991ef[_0x3fc4('0x7a')]-this[_0x3fc4('0x7f')]+'px';_0x32e372[_0x3fc4('0x7d')][_0x3fc4('0x90')]=_0x3fc4('0x91');_0x32e372[_0x3fc4('0x7d')][_0x3fc4('0x92')]=_0x3fc4('0x93');_0x32e372[_0x3fc4('0x7d')]['backgroundColor']=_0x3fc4('0x94');this[_0x3fc4('0x77')]=_0x32e372;var _0x4e7466=document[_0x3fc4('0x62')]('div');_0x4e7466['style'][_0x3fc4('0x7b')]=this['scrollbarSize']+'px';_0x32e372[_0x3fc4('0x4d')](_0x4e7466);_0x501c7c['parentNode']['appendChild'](_0x32e372);var _0x5c88b8=document[_0x3fc4('0x62')](_0x3fc4('0x95'));_0x5c88b8['className']=_0x3fc4('0x96');_0x5c88b8[_0x3fc4('0x7d')][_0x3fc4('0x97')]=this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')]?0x2:0x1;_0x5c88b8['style'][_0x3fc4('0x7a')]=this['scrollbarSize']+'px';_0x5c88b8['style']['height']=_0x5991ef['height']-this['tabsSize']-this['scrollbarSize']+'px';_0x5c88b8[_0x3fc4('0x7d')][_0x3fc4('0x90')]=_0x3fc4('0x93');_0x5c88b8[_0x3fc4('0x7d')][_0x3fc4('0x92')]=_0x3fc4('0x91');_0x5c88b8[_0x3fc4('0x7d')][_0x3fc4('0x98')]=_0x3fc4('0x94');this[_0x3fc4('0x99')]=_0x5c88b8;var _0x7e72b3=document[_0x3fc4('0x62')](_0x3fc4('0x95'));_0x7e72b3[_0x3fc4('0x7d')]['width']=this[_0x3fc4('0x7f')]+'px';_0x5c88b8[_0x3fc4('0x4d')](_0x7e72b3);_0x501c7c[_0x3fc4('0x4b')][_0x3fc4('0x4d')](_0x5c88b8);_0x47440e[_0x3fc4('0x78')][_0x3fc4('0x9a')](_0x32e372,{'scroll':this[_0x3fc4('0x9b')]});_0x47440e[_0x3fc4('0x78')][_0x3fc4('0x9a')](_0x5c88b8,{'scroll':this['scrollDelegate']});if(!this['resizeTimeoutId']){var _0x553be2=this;this['resizeTimeoutId']=setInterval(function(){_0x553be2['onVirtualResize']();},0xc8);}}}},{'key':'resetTabAlignment','value':function resetTabAlignment(){this[_0x3fc4('0x39')]['visible']=this[_0x3fc4('0x49')]!=_0x40f6c3[_0x3fc4('0x38')];var _0x5de194=this[_0x3fc4('0x4a')];if(this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')])_0x5de194[_0x3fc4('0x4b')][_0x3fc4('0x7d')][_0x3fc4('0x81')]=this[_0x3fc4('0x3f')]+_0x3fc4('0x9c')+this[_0x3fc4('0x7f')]+'px';else _0x5de194['parentNode']['style']['gridTemplateRows']=_0x3fc4('0x9d')+this[_0x3fc4('0x7f')]+_0x3fc4('0x82')+this[_0x3fc4('0x3f')]+'px';_0x5de194[_0x3fc4('0x7d')][_0x3fc4('0x8e')]=this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')]?0x2:0x1;var _0x9eae59=this[_0x3fc4('0x4a')]['parentNode'][_0x3fc4('0x9e')](_0x3fc4('0x9f'));if(this['scrollerH']){_0x9eae59[_0x3fc4('0x7d')][_0x3fc4('0x8e')]=this['tabAlignment']==_0x40f6c3[_0x3fc4('0x80')]?0x3:0x2;var _0x46442b=this[_0x3fc4('0x4a')][_0x3fc4('0x4b')]['querySelector'](_0x3fc4('0xa0'));_0x46442b[_0x3fc4('0x7d')][_0x3fc4('0x97')]=this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')]?0x2:0x1;}this[_0x3fc4('0xa1')]();}},{'key':_0x3fc4('0xa1'),'value':function updateCanvasSize(){if(!this[_0x3fc4('0x4a')])return;var _0x54e80a=this[_0x3fc4('0xa2')]/0x64/_0xc67f3a['GraphicsUnit'][_0x3fc4('0xa3')](this[_0x3fc4('0xa4')][_0x3fc4('0xa5')]);if(this['scrollerH']){var _0x4d6d06=this[_0x3fc4('0x4a')][_0x3fc4('0x4b')];this['scrollerH'][_0x3fc4('0xa6')]['style'][_0x3fc4('0x7a')]=this[_0x3fc4('0xa4')][_0x3fc4('0x86')][_0x3fc4('0x7a')]*_0x54e80a+'px';this[_0x3fc4('0x99')]['firstChild'][_0x3fc4('0x7d')]['height']=this[_0x3fc4('0xa4')][_0x3fc4('0x86')][_0x3fc4('0x7b')]*_0x54e80a+'px';var _0x25dfa7=this[_0x3fc4('0x84')](0x1);var _0x5efdc1=this[_0x3fc4('0x84')](0x0);this['scrollerV'][_0x3fc4('0x7d')][_0x3fc4('0x7a')]=_0x25dfa7+'px';this[_0x3fc4('0x77')][_0x3fc4('0x7d')]['height']=_0x5efdc1+'px';_0x4d6d06[_0x3fc4('0x7d')][_0x3fc4('0xa7')]='auto\x20'+_0x25dfa7+'px';if(this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')])_0x4d6d06['style'][_0x3fc4('0x81')]=this[_0x3fc4('0x3f')]+_0x3fc4('0x9c')+_0x5efdc1+'px';else _0x4d6d06[_0x3fc4('0x7d')][_0x3fc4('0x81')]=_0x3fc4('0x9d')+_0x5efdc1+_0x3fc4('0x82')+this['tabsSize']+'px';var _0x1962b0=_0x47440e[_0x3fc4('0xa8')][_0x3fc4('0x79')](_0x4d6d06,null,!![]);var _0x3c840b=_0x1962b0[_0x3fc4('0x7b')];if(_0x3c840b==0x0)_0x3c840b=_0x4d6d06[_0x3fc4('0xa9')];if(_0x3c840b==0x0)_0x3c840b=this[_0x3fc4('0xa4')][_0x3fc4('0x86')]['height']*_0x54e80a;this[_0x3fc4('0x4a')][_0x3fc4('0x7a')]=Math[_0x3fc4('0x83')](_0x1962b0['width']-_0x25dfa7,this[_0x3fc4('0xa4')][_0x3fc4('0x86')]['width']*_0x54e80a);this[_0x3fc4('0x4a')][_0x3fc4('0x7b')]=Math[_0x3fc4('0x83')](_0x3c840b-this[_0x3fc4('0x3f')]-_0x5efdc1,this[_0x3fc4('0xa4')][_0x3fc4('0x86')]['height']*_0x54e80a);this[_0x3fc4('0x77')][_0x3fc4('0x7d')][_0x3fc4('0x7a')]=_0x1962b0[_0x3fc4('0x7a')]-_0x25dfa7+'px';this[_0x3fc4('0x99')][_0x3fc4('0x7d')]['height']=_0x3c840b-this[_0x3fc4('0x3f')]-_0x5efdc1+'px';}this[_0x3fc4('0xa4')]['invalidRect']=null;this['canvas']['repaint']();this[_0x3fc4('0x85')][_0x3fc4('0xaa')](_0x26ec9[_0x3fc4('0x55')]['sizeChanged'],_0x47440e['EventArgs'][_0x3fc4('0xab')]);}},{'key':_0x3fc4('0x48'),'value':function resetTabs(){var _0xea06aa=this;this[_0x3fc4('0x39')][_0x3fc4('0x30')][_0x3fc4('0xac')]();this[_0x3fc4('0x54')][_0x3fc4('0x2d')][_0x3fc4('0x51')](function(_0x380738,_0x42fe12){var _0x53ea79=new _0x3368e5['ToolStripItem'](_0x3368e5[_0x3fc4('0xad')][_0x3fc4('0xae')],_0x380738[_0x3fc4('0x2b')]);_0x53ea79[_0x3fc4('0xaf')]=_0x380738[_0x3fc4('0xaf')];_0x53ea79[_0x3fc4('0xb0')]=_0x380738['iconUrl'];_0xea06aa[_0x3fc4('0x39')][_0x3fc4('0x30')]['add'](_0x53ea79);_0x380738['header']=_0x53ea79;});}},{'key':_0x3fc4('0xb1'),'value':function onTabMouseDown(_0x2ce792,_0x370d47){if(!_0x370d47['item'][_0x3fc4('0xb2')])return;if(_0x370d47['item'][_0x3fc4('0xb3')]==_0x3fc4('0xb4')){var _0x5a1c82=new _0x26ec9[(_0x3fc4('0x2a'))]();_0x5a1c82[_0x3fc4('0x2b')]=_0x3fc4('0x85')+(++this['_lastIndex'])[_0x3fc4('0xb5')]();this[_0x3fc4('0x30')][_0x3fc4('0xb6')](_0x5a1c82);this[_0x3fc4('0x4f')]=_0x5a1c82;return;}if(_0x370d47[_0x3fc4('0xb7')]['dataMfc']){if(_0x370d47['item'][_0x3fc4('0xb3')]=='mfc-first')this['selectedPage']=this['items'][_0x3fc4('0xb8')]();else if(_0x370d47['item']['dataMfc']==_0x3fc4('0xb9'))this[_0x3fc4('0xba')]--;else if(_0x370d47[_0x3fc4('0xb7')]['dataMfc']==_0x3fc4('0xbb'))this['selectedIndex']++;else if(_0x370d47[_0x3fc4('0xb7')]['dataMfc']==_0x3fc4('0xbc'))this[_0x3fc4('0x4f')]=this['items'][_0x3fc4('0x50')]();return;}var _0x1de442=this[_0x3fc4('0xbd')](_0x370d47[_0x3fc4('0xb7')]);if(_0x1de442){if(_0x47440e['DomUtils']['hasCssClass'](_0x370d47[_0x3fc4('0xbe')][_0x3fc4('0xbf')],'mfc-tabbutton-close')){var _0x7a9839=this[_0x3fc4('0xba')];if(this[_0x3fc4('0x4f')]==_0x1de442){if(_0x1de442==this['items'][_0x3fc4('0xb8')]())_0x7a9839++;}this[_0x3fc4('0x30')]['remove'](_0x1de442);this['selectedIndex']=--_0x7a9839;}else this[_0x3fc4('0x4f')]=_0x1de442;}}},{'key':_0x3fc4('0x45'),'value':function onTabDrop(_0x1c71b6,_0x4c6b14){var _0x56051e=_0x1c71b6[_0x3fc4('0xc0')](_0x4c6b14[_0x3fc4('0xb7')])['indexOfItem'](_0x4c6b14[_0x3fc4('0xb7')]);var _0x5dfeca=this[_0x3fc4('0xbd')](_0x4c6b14[_0x3fc4('0xb7')]);this[_0x3fc4('0x30')][_0x3fc4('0xc1')]['splice'](this[_0x3fc4('0x30')][_0x3fc4('0xc2')](_0x5dfeca),0x1);this[_0x3fc4('0x30')][_0x3fc4('0xc1')][_0x3fc4('0xc3')](_0x56051e,0x0,_0x5dfeca);}},{'key':_0x3fc4('0x34'),'value':function onItemsChanging(_0xb80e8f,_0x2a9268){if(_0x2a9268[_0x3fc4('0xc4')]==_0x4232ed[_0x3fc4('0xc5')][_0x3fc4('0xc6')]){var _0x198ae4;for(var _0x41d9f6=0x0;_0x41d9f6<_0x2a9268[_0x3fc4('0xc7')][_0x3fc4('0xa')];_0x41d9f6++){if(!this[_0x3fc4('0xc8')](_0x4e64c8[_0x3fc4('0x20')],_0x2a9268[_0x3fc4('0xc7')][_0x41d9f6]))_0x198ae4=!![];}_0x2a9268[_0x3fc4('0xc9')]=_0x198ae4;}else{var _0x198ae4;for(var _0x41d9f6=0x0;_0x41d9f6<_0x2a9268[_0x3fc4('0xca')][_0x3fc4('0xa')];_0x41d9f6++){if(!this['onPageValidateAction'](_0x4e64c8[_0x3fc4('0x22')],null,_0x2a9268[_0x3fc4('0xca')][_0x41d9f6]))_0x198ae4=!![];}_0x2a9268[_0x3fc4('0xc9')]=_0x198ae4;}}},{'key':_0x3fc4('0x36'),'value':function onItemsChanged(_0x46e370,_0x263e50){if(_0x263e50['action']==_0x4232ed[_0x3fc4('0xc5')][_0x3fc4('0xc6')]){for(var _0x1fe374=0x0;_0x1fe374<_0x263e50[_0x3fc4('0xc7')][_0x3fc4('0xa')];_0x1fe374++){this[_0x3fc4('0xaa')](_0x4e64c8[_0x3fc4('0x21')],new _0x1c4537({'page':_0x263e50['m_newItems'][_0x1fe374]}));}}else{for(var _0x1fe374=0x0;_0x1fe374<_0x263e50['m_oldItems'][_0x3fc4('0xa')];_0x1fe374++){this[_0x3fc4('0xaa')](_0x4e64c8[_0x3fc4('0x23')],new _0x1c4537({'oldPage':_0x263e50[_0x3fc4('0xca')][_0x1fe374]}));}}this[_0x3fc4('0x48')]();this[_0x3fc4('0x39')][_0x3fc4('0xcb')]();}},{'key':'selectedPage','get':function get(){return this['_selectedPage'];},'set':function set(_0xfda77){if(_0xfda77){if(this[_0x3fc4('0xc8')](_0x4e64c8['pageChanging'],this['_selectedPage'],_0xfda77)){var _0x13cca0=this[_0x3fc4('0xcc')];this[_0x3fc4('0xcc')]=_0xfda77;this[_0x3fc4('0xcd')](this[_0x3fc4('0xcc')]);this[_0x3fc4('0xcc')][_0x3fc4('0xce')]();this[_0x3fc4('0x39')]['selectItem'](this[_0x3fc4('0xcc')]['header']);this[_0x3fc4('0xaa')](_0x26ec9[_0x3fc4('0x55')]['pageChanged'],new _0x1c4537({'page':this[_0x3fc4('0xcc')],'oldPage':_0x13cca0}));}}}},{'key':_0x3fc4('0xba'),'get':function get(){if(this[_0x3fc4('0xcc')])return this[_0x3fc4('0x30')]['indexOfItem'](this[_0x3fc4('0xcc')]);return-0x1;},'set':function set(_0x4eeca6){var _0x2277d3=this['items'][_0x3fc4('0x30')]()[_0x4eeca6];if(_0x2277d3)this['selectedPage']=_0x2277d3;}},{'key':_0x3fc4('0xbd'),'value':function getItemByHeader(_0x3f1305){return this[_0x3fc4('0x30')][_0x3fc4('0xcf')](function(_0x179860){return _0x179860[_0x3fc4('0xd0')]==_0x3f1305;})['first']();}},{'key':_0x3fc4('0x54'),'get':function get(){return this[_0x3fc4('0x32')];},'set':function set(_0x1975d0){if(this[_0x3fc4('0x32')]!=_0x1975d0){this[_0x3fc4('0x32')]=_0x1975d0;}}},{'key':_0x3fc4('0x3f'),'get':function get(){if(this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x38')])return 0x0;return this[_0x3fc4('0x39')]['height']['value'];},'set':function set(_0x3ff391){if(this[_0x3fc4('0x39')][_0x3fc4('0x7b')][_0x3fc4('0xd')]!=_0x3ff391){this[_0x3fc4('0x39')][_0x3fc4('0x7b')]=new _0x4232ed[(_0x3fc4('0xd1'))](_0x3ff391,_0x4232ed[_0x3fc4('0xd2')]['Pixel']);this['resetTabAlignment']();}}},{'key':'tabAlignment','get':function get(){return this[_0x3fc4('0x37')];},'set':function set(_0x559448){if(this[_0x3fc4('0x37')]!=_0x559448){this[_0x3fc4('0x37')]=_0x559448;this[_0x3fc4('0xd3')]();}}},{'key':'showTabCloseButtons','get':function get(){return this[_0x3fc4('0x39')][_0x3fc4('0xd4')];},'set':function set(_0x43fb78){if(this[_0x3fc4('0x39')]['showCloseButtons']!=_0x43fb78){this['tabStrip'][_0x3fc4('0xd4')]=_0x43fb78;}}},{'key':'showNavigationButtons','get':function get(){return this['tabStrip'][_0x3fc4('0xd5')]==_0x3368e5[_0x3fc4('0xd6')][_0x3fc4('0xd7')];},'set':function set(_0xc70401){if(this[_0x3fc4('0x39')]['scrollMode']==_0x3368e5['TabsScrollMode'][_0x3fc4('0xd7')]!=_0xc70401){this['tabStrip'][_0x3fc4('0xd5')]=_0xc70401?_0x3368e5['TabsScrollMode'][_0x3fc4('0xd7')]:_0x3368e5[_0x3fc4('0xd6')][_0x3fc4('0x38')];}}},{'key':_0x3fc4('0x3e'),'get':function get(){return this['tabStrip']['showAddButton'];},'set':function set(_0x202857){if(this[_0x3fc4('0x39')]['showAddButton']!=_0x202857){this[_0x3fc4('0x39')][_0x3fc4('0x3e')]=_0x202857;}}},{'key':_0x3fc4('0xd8'),'get':function get(){return this[_0x3fc4('0x39')][_0x3fc4('0xd9')];},'set':function set(_0x2cdabc){if(this[_0x3fc4('0x39')][_0x3fc4('0xd9')]!=_0x2cdabc){this[_0x3fc4('0x39')][_0x3fc4('0xd9')]=_0x2cdabc;}}},{'key':_0x3fc4('0x66'),'get':function get(){return this[_0x3fc4('0xda')];},'set':function set(_0x1724c8){if(this[_0x3fc4('0xda')]!=_0x1724c8){this[_0x3fc4('0xda')]=_0x1724c8;if(this[_0x3fc4('0xda')])this[_0x3fc4('0x39')][_0x3fc4('0x66')]=this[_0x3fc4('0xda')]['id'];}}},{'key':_0x3fc4('0xdb'),'value':function setTheme(_0x65197e,_0xc199bd){this['theme']=_0x65197e;if(_0xc199bd){this['items'][_0x3fc4('0x51')](function(_0x265af4){return _0x265af4[_0x3fc4('0x66')]=_0x65197e;});}}},{'key':_0x3fc4('0xdc'),'value':function onDataLoaded(_0x35c0e6,_0x16b2f0){var _0x115db4=this;this[_0x3fc4('0x30')]=new _0x413fff[(_0x3fc4('0x31'))](this[_0x3fc4('0x54')][_0x3fc4('0x2d')]);this[_0x3fc4('0x30')][_0x3fc4('0xdd')][_0x3fc4('0x35')](function(_0x35c0e6,_0x16b2f0){_0x115db4['onItemsChanged'](_0x35c0e6,_0x16b2f0);});this[_0x3fc4('0x48')]();this[_0x3fc4('0x39')]['resetButtons']();this[_0x3fc4('0x4f')]=this[_0x3fc4('0x30')][_0x3fc4('0x50')]();this[_0x3fc4('0x2f')]=this[_0x3fc4('0x30')][_0x3fc4('0xde')]();}},{'key':_0x3fc4('0xc8'),'value':function onPageValidateAction(_0xd25fbb,_0x192cf0,_0x10676a){var _0x422fba=new _0x1c4537({'page':_0x192cf0,'oldPage':_0x10676a});this['raiseEvent'](_0xd25fbb,_0x422fba);if(_0x422fba[_0x3fc4('0xc9')])return![];return!![];}}],[{'key':_0x3fc4('0x13'),'value':function create(_0x59b8de,_0x40ad35){return _0x47440e[_0x3fc4('0x78')][_0x3fc4('0xdf')](_0x379f08,_0x59b8de,_0x40ad35);}}]);return _0x379f08;}(_0x26ec9['DiagramView']);_0x5e6f11['Events']=_0x4e64c8;_0x5e6f11[_0x3fc4('0xe0')]=_0x1c4537;_0x5e6f11['TabAlignment']=_0x40f6c3;_0x5e6f11[_0x3fc4('0xe1')]=_0x379f08;Object[_0x3fc4('0xf')](_0x5e6f11,_0x3fc4('0xe2'),{'value':!![]});}));
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "author": {
3
+ "name": "MindFusion LLC",
4
+ "email": "info@mindfusion.eu",
5
+ "url": "https://mindfusion.eu"
6
+ },
7
+ "version": "1.0.0",
8
+ "description": "Diagramming library additional controls",
9
+ "keywords": [
10
+ "diagramming library"
11
+ ],
12
+ "name": "@mindfusion/diagramming-controls",
13
+ "main": "./dist/cjs/diagramming-controls.js",
14
+ "module": "./dist/esm/diagramming-controls.js",
15
+ "exports": {
16
+ "import": "./dist/esm/diagramming-controls.js",
17
+ "require": "./dist/cjs/diagramming-controls.js",
18
+ "node": "./dist/esm/diagramming-controls.js",
19
+ "default": "./dist/cjs/diagramming-controls.js"
20
+ },
21
+ "license": "SEE LICENSE IN LICENSE.txt",
22
+ "types": "diagramming-controls.d.ts",
23
+ "dependencies": {
24
+ "@mindfusion/diagramming": "^4.3.0",
25
+ "@mindfusion/common-ui": "^1.0.3"
26
+ }
27
+ }