@devexpress/analytics-core 19.2.2-beta → 19.2.3

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * DevExpress HTML/JS Analytics Core (dx-analytics-core.js)
3
- * Version: 19.2.2
4
- * Build date: 2019-10-02
3
+ * Version: 19.2.3
4
+ * Build date: 2019-10-23
5
5
  * Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED
6
6
  * License: https://www.devexpress.com/Support/EULAs/NetComponents.xml
7
7
  */
@@ -820,6 +820,23 @@ var DevExpress;
820
820
  return string.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
821
821
  }
822
822
  Internal.escapeToRegExp = escapeToRegExp;
823
+ function stringRemove(string, start, count) {
824
+ count = count ? count : string.length - start;
825
+ return string.slice(0, start) + string.slice(start + count, string.length);
826
+ }
827
+ Internal.stringRemove = stringRemove;
828
+ function stringReplace(string, start, count, newChar) {
829
+ if (newChar === void 0) { newChar = ""; }
830
+ var temp = string;
831
+ temp = DevExpress.Analytics.Internal.stringRemove(temp, start, count);
832
+ temp = DevExpress.Analytics.Internal.stringInsert(temp, start, Array(count + 1).join(newChar));
833
+ return temp;
834
+ }
835
+ Internal.stringReplace = stringReplace;
836
+ function stringInsert(string, pos, subStr) {
837
+ return string.substring(0, pos) + subStr + string.substring(pos);
838
+ }
839
+ Internal.stringInsert = stringInsert;
823
840
  function formatUnicorn(text) {
824
841
  var args = [];
825
842
  for (var _i = 1; _i < arguments.length; _i++) {
@@ -1378,14 +1395,25 @@ var DevExpress;
1378
1395
  .map(function (info) { return _this_1.createEditor(info); });
1379
1396
  };
1380
1397
  ObjectProperties.prototype._createEditors = function (serializationInfo) {
1381
- var _this_1 = this;
1382
1398
  if (!serializationInfo || serializationInfo.length === 0)
1383
1399
  return false;
1384
1400
  var newEditors = this.createEditors(serializationInfo);
1385
1401
  if (!newEditors.length)
1386
1402
  return;
1387
- var propertyNames = [].concat([], this._editors().map(function (editor) { return editor.name; }), newEditors.map(function (editor) { return editor.name; })).sort(function (a, b) { return a[0] - b[0]; });
1388
- newEditors.forEach(function (editor) { return _this_1._editors.splice(propertyNames.indexOf(editor.name), 0, editor); });
1403
+ var currentEditors = this._editors();
1404
+ if (currentEditors.length === 0) {
1405
+ currentEditors = newEditors;
1406
+ }
1407
+ else {
1408
+ newEditors.forEach(function (editor) {
1409
+ var existEditorIndex = currentEditors.map(function (_editor) { return _editor.name; }).indexOf(editor.name);
1410
+ if (existEditorIndex !== -1)
1411
+ currentEditors.splice(existEditorIndex, 0, editor);
1412
+ else
1413
+ currentEditors.push(editor);
1414
+ });
1415
+ }
1416
+ this._editors(currentEditors);
1389
1417
  };
1390
1418
  ObjectProperties.prototype._update = function (target, editorsInfo, recreateEditors) {
1391
1419
  var _this_1 = this;
@@ -1843,10 +1871,11 @@ var DevExpress;
1843
1871
  _this_1._disposables.push(_this_1.values = ko.computed(function () {
1844
1872
  return ko.unwrap(options.values());
1845
1873
  }));
1846
- if (options.selectedItem && options.selectedItem()) {
1847
- _this_1.selectedIndex(_this_1.values().indexOf(options.selectedItem()));
1874
+ var selectedItem = ko.unwrap(options.selectedItem);
1875
+ if (selectedItem) {
1876
+ _this_1._setSelectedIndex(selectedItem);
1848
1877
  _this_1._disposables.push(options.selectedItem.subscribe(function (newVal) {
1849
- _this_1.selectedIndex(_this_1.values().indexOf(newVal));
1878
+ _this_1._setSelectedIndex(newVal);
1850
1879
  }));
1851
1880
  }
1852
1881
  _this_1.add = function (model) {
@@ -1910,6 +1939,10 @@ var DevExpress;
1910
1939
  this.selectedIndex(new_index);
1911
1940
  }
1912
1941
  };
1942
+ CollectionEditorViewModel.prototype._setSelectedIndex = function (selectedItem) {
1943
+ var index = this.values().indexOf(selectedItem);
1944
+ this.selectedIndex(index === -1 ? null : index);
1945
+ };
1913
1946
  CollectionEditorViewModel.prototype.getDisplayTextButton = function (key) {
1914
1947
  return DevExpress.Analytics.Utils.getLocalization(this.buttonMap[key].text, this.buttonMap[key].localizationId);
1915
1948
  };
@@ -2042,7 +2075,8 @@ var DevExpress;
2042
2075
  e.stopPropagation();
2043
2076
  e.preventDefault();
2044
2077
  Analytics.Internal.uploadFile({
2045
- accept: _this_1.option("accept") || "image/*"
2078
+ accept: _this_1.option("accept") || "image/*",
2079
+ readMode: _this_1.option("readMode")
2046
2080
  }).done(function (result) {
2047
2081
  _this_1._handleResult(result);
2048
2082
  });
@@ -2228,6 +2262,7 @@ var DevExpress;
2228
2262
  'dxrd-svg-fieldlist-listsource': '<svg data-bind="svgAttrs" viewBox="0 0 24 24"><ellipse class="dxd-icon-fill dxd-opacity-80" cx="11" cy="4" rx="7" ry="2"/><path class="dxd-icon-fill dxd-opacity-80" d="M11 10c-3.9 0-7-.9-7-2v12c0 1.1 3.1 2 7 2s7-.9 7-2V8c0 1.1-3.1 2-7 2z"/></svg>',
2229
2263
  'dxrd-svg-fieldlist-none': '<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M0 0v22h22V0H0zm16 14l-2 2-3-3-3 3-2-2 3-3-3-3 2-2 3 3 3-3 2 2-3 3 3 3z"/></svg>',
2230
2264
  'dxrd-svg-fieldlist-parameters': '<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M12 4h4v8h-4zM8 18h4v4H8zM8 12h4v4H8zM8 0h4v4H8zM4 4h4v4H4z"/></svg>',
2265
+ 'dxrd-svg-fieldlist-range': '<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 4h4v2H4v12h4v2H2V4h2zm16 0h-4v2h4v12h-4v2h6V4h-2z"/></svg>',
2231
2266
  'dxrd-svg-fieldlist-string': '<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 8h4v4H2v8h8V6H4v2zm4 10H4v-4h4v4zM14 10V2h-2v18h8V10h-6zm4 8h-4v-6h4v6z"/></svg>',
2232
2267
  'dxrd-svg-fieldlist-stringfield': '<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M4 8h4v4H2v8h8V6H4v2zm4 10H4v-4h4v4zM14 10V2h-2v18h8V10h-6zm4 8h-4v-6h4v6z"/></svg>',
2233
2268
  'dxrd-svg-fieldlist-table': '<svg data-bind="svgAttrs" viewBox="0 0 24 24"><path class="dxd-icon-fill dxd-opacity-80" d="M0 0h22v4H0zM12 12h4v4h-4zM12 18h4v4h-4zM18 6h4v4h-4zM0 12h4v4H0zM18 18h4v4h-4zM12 6h4v4h-4zM6 12h4v4H6zM6 18h4v4H6zM6 6h4v4H6zM0 18h4v4H0zM0 6h4v4H0zM18 12h4v4h-4z"/></svg>',
@@ -2494,7 +2529,7 @@ DevExpress.Analytics.Widgets.Internal.SvgTemplatesEngine.addTemplates({
2494
2529
  'dxrd-field': '<!-- ko displayNameExtender: { path: path, dataMember: value } --> <div data-bind="dxFieldListPicker: { path: path, acceptCustomValue: true, value: value, displayValue: $displayName, itemsProvider: $root.dataBindingsProvider, treeListController: treeListController, disabled: disabled }"></div> <!-- /ko -->',
2495
2530
  'dxrd-filterstring': '<!-- ko if: $data.value() --> <div data-bind="dxFilterEditor: { options: value, fieldListProvider: $root.dataBindingsProvider, getDisplayNameByPath: $root.getDisplayNameByPath, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() }"></div> <!-- /ko -->',
2496
2531
  'dxrd-filterstringgroup': '<!-- ko if: $data.value() --> <div data-bind="dxFilterEditor: { options: value, fieldListProvider: $root.dataBindingsGroupProvider, getDisplayNameByPath: $root.getDisplayNameByPath, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() }"></div> <!-- /ko -->',
2497
- 'dxrd-formatstring': '<div data-bind="dxFormatEditor: { value: value, disabled: disabled }"></div>',
2532
+ 'dxrd-formatstring': '<div data-bind="dxFormatEditor: { value: value, disabled: disabled, actions: $data.actions, customPatterns: $data.customPatterns }"></div>',
2498
2533
  'dxrd-guid': '<div data-bind="dxTextBox: getOptions({ value: value, disabled: disabled }), dxValidator: { validationRules: (validationRules || []) }"></div>',
2499
2534
  'dxrd-emptyHeader': ' ',
2500
2535
  'dxrd-objectEditorContent': '<!-- ko if: $data.visible() && $data.editorCreated() --> <div data-bind="template: { name: \'dx-propertieseditor\', data: viewmodel }"></div> <!-- /ko -->',
@@ -3779,6 +3814,90 @@ var DevExpress;
3779
3814
  }
3780
3815
  return result;
3781
3816
  }
3817
+ var MachineState = (function () {
3818
+ function MachineState(tokenName, alphabet, startTerm, endTerm) {
3819
+ this.tokenName = tokenName;
3820
+ this.alphabet = alphabet;
3821
+ this.startTerm = startTerm;
3822
+ this.endTerm = endTerm;
3823
+ this.tokenLength = 0;
3824
+ this.isActiveState = false;
3825
+ this.tokens = [];
3826
+ }
3827
+ MachineState.prototype._isSubline = function (pos, term) {
3828
+ var result = (pos + term.length - 1 < this.alphabet.length);
3829
+ for (var i = pos; i < (pos + term.length) && result; i++)
3830
+ result = this.alphabet[i] == term[i - pos];
3831
+ return result;
3832
+ };
3833
+ MachineState.prototype._getToken = function (pos) {
3834
+ var token = {
3835
+ type: this.tokenName, start: pos - this.tokenLength + 1, end: pos + this.endTerm.length
3836
+ };
3837
+ token.val = this.alphabet.substring(token.start, token.end);
3838
+ return token;
3839
+ };
3840
+ MachineState.prototype.processTransitionFunction = function (pos) {
3841
+ if (this.isActiveState)
3842
+ this.tokenLength++;
3843
+ if (this._isSubline(pos, this.startTerm) && !this.isActiveState) {
3844
+ this.isActiveState = true;
3845
+ this.tokenLength++;
3846
+ }
3847
+ else if (this._isSubline(pos, this.endTerm)) {
3848
+ this.isActiveState = false;
3849
+ this.tokens.push(this._getToken(pos));
3850
+ this.tokenLength = 0;
3851
+ }
3852
+ };
3853
+ ;
3854
+ return MachineState;
3855
+ }());
3856
+ Criteria.MachineState = MachineState;
3857
+ var CriteriaOperatorStateMachine = (function () {
3858
+ function CriteriaOperatorStateMachine(stringCriteria) {
3859
+ this.stringCriteria = stringCriteria;
3860
+ this.machineStates = [];
3861
+ this.machineStates.push(new MachineState("field", stringCriteria, "[", "]"));
3862
+ this.machineStates.push(new MachineState("value", stringCriteria, "'", "'"));
3863
+ this.machineStates.push(new MachineState("comment", stringCriteria, "/*", "*/"));
3864
+ this._inputStringCriteria = stringCriteria;
3865
+ }
3866
+ CriteriaOperatorStateMachine.prototype._tokenize = function () {
3867
+ var _this = this;
3868
+ for (var i = 0; i < this.stringCriteria.length; i++) {
3869
+ this.machineStates.forEach(function (state) {
3870
+ var anotherMachines = _this.machineStates.filter(function (a) { return a != state && a.isActiveState; });
3871
+ if (!anotherMachines.length)
3872
+ state.processTransitionFunction(i);
3873
+ });
3874
+ }
3875
+ var resultTokens = [];
3876
+ this.machineStates.forEach(function (state) {
3877
+ resultTokens = resultTokens.concat(state.tokens);
3878
+ state.tokens = [];
3879
+ });
3880
+ return resultTokens;
3881
+ };
3882
+ CriteriaOperatorStateMachine.prototype._replaceTokenToAnotherToken = function (tokens, newTokenChar, tokenName) {
3883
+ var tempCriteria = this.stringCriteria;
3884
+ tokens = tokens.filter(function (a) { return a.type == tokenName; }).sort(function (a) { return a.start; }).reverse();
3885
+ tokens.forEach(function (token) {
3886
+ tempCriteria = DevExpress.Analytics.Internal.stringReplace(tempCriteria, token.start, token.end - token.start, newTokenChar);
3887
+ });
3888
+ return tempCriteria;
3889
+ };
3890
+ CriteriaOperatorStateMachine.prototype.replaceCommentsToChar = function (char) {
3891
+ if (char === void 0) { char = ""; }
3892
+ this._inputStringCriteria = this._replaceTokenToAnotherToken(this._tokenize(), char, "comment");
3893
+ return this;
3894
+ };
3895
+ CriteriaOperatorStateMachine.prototype.getCriteria = function () {
3896
+ return Criteria["criteriaparser"].parse(this._inputStringCriteria);
3897
+ };
3898
+ return CriteriaOperatorStateMachine;
3899
+ }());
3900
+ Criteria.CriteriaOperatorStateMachine = CriteriaOperatorStateMachine;
3782
3901
  var CriteriaOperator = (function () {
3783
3902
  function CriteriaOperator() {
3784
3903
  var _this = this;
@@ -3819,9 +3938,12 @@ var DevExpress;
3819
3938
  }));
3820
3939
  return result;
3821
3940
  };
3822
- CriteriaOperator.parse = function (stringCriteria) {
3941
+ CriteriaOperator.parse = function (stringCriteria, saveOriginalStringLength) {
3942
+ if (saveOriginalStringLength === void 0) { saveOriginalStringLength = false; }
3823
3943
  if (stringCriteria && stringCriteria !== "") {
3824
- return Criteria["criteriaparser"].parse(stringCriteria);
3944
+ if (saveOriginalStringLength)
3945
+ return new CriteriaOperatorStateMachine(stringCriteria).replaceCommentsToChar(" ").getCriteria();
3946
+ return new CriteriaOperatorStateMachine(stringCriteria).replaceCommentsToChar().getCriteria();
3825
3947
  }
3826
3948
  return null;
3827
3949
  };
@@ -4315,7 +4437,9 @@ var DevExpress;
4315
4437
  }
4316
4438
  }
4317
4439
  else {
4318
- $deferred = this.defaultProcess(currentToken, text, completions);
4440
+ if (!(currentToken.type.indexOf("comment") === 0)) {
4441
+ $deferred = this.defaultProcess(currentToken, text, completions);
4442
+ }
4319
4443
  }
4320
4444
  return $deferred ? $deferred.promise() : $.Deferred().resolve(completions).promise();
4321
4445
  };
@@ -4443,7 +4567,7 @@ var DevExpress;
4443
4567
  if (!expression)
4444
4568
  return def.resolve("").promise();
4445
4569
  try {
4446
- var expressionCriteria = Criteria.CriteriaOperator.parse(expression);
4570
+ var expressionCriteria = Criteria.CriteriaOperator.parse(expression, true);
4447
4571
  }
4448
4572
  catch (e) {
4449
4573
  return def.reject().promise();
@@ -5567,18 +5691,18 @@ var DevExpress;
5567
5691
  clickAction: $.noop,
5568
5692
  displayText: function () { return DevExpress.Analytics.Utils.getLocalization("Edit", "AnalyticsCoreStringId.Group_Edit"); }
5569
5693
  };
5570
- var DefaultTreeListItemMapper = (function () {
5571
- function DefaultTreeListItemMapper() {
5694
+ var DefaultTreeListItemFactory = (function () {
5695
+ function DefaultTreeListItemFactory() {
5572
5696
  }
5573
- DefaultTreeListItemMapper.prototype.createRootItem = function (options, path, onItemsVisibilityChanged, rtl) {
5697
+ DefaultTreeListItemFactory.prototype.createRootItem = function (options, path, onItemsVisibilityChanged, rtl) {
5574
5698
  return new TreeListRootItemViewModel(options, path, onItemsVisibilityChanged, rtl);
5575
5699
  };
5576
- DefaultTreeListItemMapper.prototype.createItem = function (options, path, onItemsVisibilityChanged, rtl, resolver) {
5700
+ DefaultTreeListItemFactory.prototype.createItem = function (options, path, onItemsVisibilityChanged, rtl, resolver) {
5577
5701
  return new TreeListItemViewModel(options, path, onItemsVisibilityChanged, rtl, resolver);
5578
5702
  };
5579
- return DefaultTreeListItemMapper;
5703
+ return DefaultTreeListItemFactory;
5580
5704
  }());
5581
- Internal.DefaultTreeListItemMapper = DefaultTreeListItemMapper;
5705
+ Internal.DefaultTreeListItemFactory = DefaultTreeListItemFactory;
5582
5706
  var TreeListEllipsisButton = (function () {
5583
5707
  function TreeListEllipsisButton(_availableItemsCount, padding, pageSize) {
5584
5708
  this._availableItemsCount = _availableItemsCount;
@@ -5621,7 +5745,7 @@ var DevExpress;
5621
5745
  _this._pageSize = options.pageSize || -1;
5622
5746
  _this._path = path;
5623
5747
  _this._rtl = rtl;
5624
- _this._mapper = options.mapper || new Analytics.Widgets.Internal.DefaultTreeListItemMapper();
5748
+ _this._factory = options.factory || new Analytics.Widgets.Internal.DefaultTreeListItemFactory();
5625
5749
  _this._treeListController = options.treeListController;
5626
5750
  _this._templateName = options.templateName;
5627
5751
  _this._onItemsVisibilityChanged = onItemsVisibilityChanged;
@@ -5746,7 +5870,7 @@ var DevExpress;
5746
5870
  var currentItem = itemsObj[d.name];
5747
5871
  if (!currentItem) {
5748
5872
  isMutated = true;
5749
- var newItem = _this._mapper.createItem(options, _this.pathParts, _this._onItemsVisibilityChanged, _this._rtl, _this.resolver);
5873
+ var newItem = _this._factory.createItem(options, _this.pathParts, _this._onItemsVisibilityChanged, _this._rtl, _this.resolver);
5750
5874
  newItem.data = d;
5751
5875
  newItem.level = _this.level + 1;
5752
5876
  newItem.parent = _this;
@@ -5808,6 +5932,9 @@ var DevExpress;
5808
5932
  return deferred.promise();
5809
5933
  };
5810
5934
  TreeListItemViewModel.prototype._onItemsChanged = function () { };
5935
+ TreeListItemViewModel.prototype._getTemplateName = function () {
5936
+ return this._templateName || this.data && this.data.templateName || "dx-treelist-item";
5937
+ };
5811
5938
  TreeListItemViewModel.prototype._selectItem = function (itemPath) {
5812
5939
  var _this = this;
5813
5940
  if (!this.hasItems) {
@@ -5861,7 +5988,7 @@ var DevExpress;
5861
5988
  var _this = this;
5862
5989
  if (item.data && !item.data.specifics)
5863
5990
  throw new Error("Specific should be set");
5864
- if (item.level >= 10)
5991
+ if (item.level >= 6)
5865
5992
  return;
5866
5993
  if (!item.data || item.treeListController.hasItems(item.data)) {
5867
5994
  item._getItemsWithLock().done(function (result) {
@@ -5963,7 +6090,7 @@ var DevExpress;
5963
6090
  });
5964
6091
  Object.defineProperty(TreeListItemViewModel.prototype, "templateName", {
5965
6092
  get: function () {
5966
- return this._templateName || this.data && this.data.templateName || "dx-treelist-item";
6093
+ return this._getTemplateName();
5967
6094
  },
5968
6095
  enumerable: true,
5969
6096
  configurable: true
@@ -6130,7 +6257,7 @@ var DevExpress;
6130
6257
  _this.searchPlaceholder = function () { return Analytics.Internal.searchPlaceholder(); };
6131
6258
  var _textToSearch = ko.observable("");
6132
6259
  var timeout = null;
6133
- _this.value = ko.computed({
6260
+ _this._disposables.push(_this.value = ko.computed({
6134
6261
  read: function () { return _textToSearch(); },
6135
6262
  write: function (newVal) {
6136
6263
  clearTimeout(timeout);
@@ -6138,7 +6265,7 @@ var DevExpress;
6138
6265
  _textToSearch(newVal);
6139
6266
  }, _this.searchTimeout);
6140
6267
  }
6141
- });
6268
+ }));
6142
6269
  _this._disposables.push(_this.value.subscribe(function (newValue) { return _this.valueChanged(newValue); }));
6143
6270
  return _this;
6144
6271
  }
@@ -6154,6 +6281,7 @@ var DevExpress;
6154
6281
  controller.root = controller.root || ko.observable();
6155
6282
  subscriptions.push(controller.root.subscribe(function (newRoot) {
6156
6283
  model.addController(newRoot);
6284
+ model.valueChanged("");
6157
6285
  }));
6158
6286
  });
6159
6287
  var template = DevExpress.Analytics.Widgets.Internal.getTemplate(templateName);
@@ -6174,14 +6302,21 @@ var DevExpress;
6174
6302
  this._roots.forEach(function (root) {
6175
6303
  root.walkOnTree(function (node) {
6176
6304
  if (!newValue) {
6177
- node.setVisible(true);
6178
- node.treeListController.textToSearch(newValue);
6179
6305
  return;
6180
6306
  }
6181
6307
  var regexResult = DevExpress.Analytics.Internal.findMatchesInString(node.data[root.treeListController.searchOptions.searchExpr], newValue, root.treeListController.searchOptions);
6182
6308
  node.setVisible(!!regexResult);
6183
6309
  regexResult && _this._collapseTreeBranch(node);
6184
6310
  regexResult && node.treeListController.textToSearch(newValue);
6311
+ }, function (node) {
6312
+ if (newValue) {
6313
+ return false;
6314
+ }
6315
+ else {
6316
+ node.setVisible(true);
6317
+ node.treeListController.textToSearch(newValue);
6318
+ return node.items().length == 0;
6319
+ }
6185
6320
  });
6186
6321
  });
6187
6322
  };
@@ -8837,7 +8972,7 @@ var DevExpress;
8837
8972
  var treeListController = options.treeListController || new Internal.TreeListController();
8838
8973
  options.treeListController = treeListController;
8839
8974
  treeListController.dragDropHandler = treeListController.dragDropHandler || bindingContext.$root.fieldDragHandler;
8840
- options.mapper = options.mapper || new Internal.DefaultTreeListItemMapper();
8975
+ options.factory = options.factory || new Internal.DefaultTreeListItemFactory();
8841
8976
  options.itemsProvider = ko.unwrap(options.itemsProvider);
8842
8977
  options.pageSize = options.pageSize || -1;
8843
8978
  treeListViewModel && treeListViewModel.dispose();
@@ -8853,7 +8988,7 @@ var DevExpress;
8853
8988
  }
8854
8989
  return result;
8855
8990
  });
8856
- treeListViewModel = options.mapper.createRootItem(options, pathArray, updateScrollBar, options.rtl);
8991
+ treeListViewModel = options.factory.createRootItem(options, pathArray, updateScrollBar, options.rtl);
8857
8992
  var treeListTemplate = options.templateHtml || DevExpress.Analytics.Widgets.Internal.getTemplate('dx-treelist');
8858
8993
  if (treeListController.root) {
8859
8994
  treeListController.searchEnabled = true;
@@ -9958,6 +10093,7 @@ if(window["ace"]) {
9958
10093
  "use strict";
9959
10094
  var oop = require("../lib/oop");
9960
10095
  var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
10096
+ var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
9961
10097
 
9962
10098
  var CriteriaHighlightRules = function() {
9963
10099
 
@@ -9965,6 +10101,11 @@ if(window["ace"]) {
9965
10101
  // regexps are ordered -> the first match is used
9966
10102
  this.$rules = {
9967
10103
  "start": [
10104
+ {
10105
+ token: "comment",
10106
+ start: "/\\*",
10107
+ end: "\\*/"
10108
+ },
9968
10109
  {
9969
10110
  token: "constant.other",
9970
10111
  regex: /(?:#(?:[^\\\#]|(?:\\.))*#?)|(?:\{[-0-9A-Fa-f]*\}?)/
@@ -10009,12 +10150,24 @@ if(window["ace"]) {
10009
10150
  token: "support.function",
10010
10151
  regex: /[_\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\d_\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*/
10011
10152
  }
10012
- ]
10153
+ ],
10154
+ comment:
10155
+ [
10156
+ {
10157
+ token: "comment",
10158
+ regex: "\\*\\/",
10159
+ next: "no_regex"
10160
+ },
10161
+ {
10162
+ defaultToken: "comment"
10163
+ }
10164
+ ]
10013
10165
  };
10166
+ this.embedRules(DocCommentHighlightRules, "doc-", [DocCommentHighlightRules.getEndRule("start")]);
10167
+ this.normalizeRules();
10014
10168
  };
10015
10169
 
10016
10170
  oop.inherits(CriteriaHighlightRules, TextHighlightRules);
10017
-
10018
10171
  exports.CriteriaHighlightRules = CriteriaHighlightRules;
10019
10172
  });
10020
10173
  }
@@ -10837,7 +10990,7 @@ var DevExpress;
10837
10990
  SelectionDragDropHandler.prototype.doStopDrag = function (ui, _) {
10838
10991
  this.dragHelperContent.reset();
10839
10992
  if (this.selection.dropTarget) {
10840
- var dropTarget = this.selection.dropTarget.getControlModel(), dropTargetSurface = dropTarget.getNearestParent(dropTarget).surface;
10993
+ var dropTarget = this.selection.dropTarget.getControlModel(), dropTargetSurface = dropTarget.getNearestParent(dropTarget)['surface'];
10841
10994
  var focusedSurface = this.selection.focused();
10842
10995
  var adjustedTarget = this.adjustDropTarget(dropTargetSurface), focusedModel = focusedSurface.getControlModel(), parent = focusedModel.getNearestParent(adjustedTarget.getControlModel()), adjustedTarget = parent && Internal.findSurface(parent), changeParent = adjustedTarget !== focusedSurface.parent;
10843
10996
  if (!adjustedTarget || !adjustedTarget.canDrop()) {
@@ -14299,7 +14452,7 @@ var DevExpress;
14299
14452
  result = val * 96 / 100;
14300
14453
  }
14301
14454
  result = result * (zoom);
14302
- return Math.floor(result * 100) / 100;
14455
+ return Math.floor(result * 10000) / 10000;
14303
14456
  }
14304
14457
  Internal.unitsToPixel = unitsToPixel;
14305
14458
  function pixelToUnits(val, measureUnit, zoom) {
@@ -14314,7 +14467,7 @@ var DevExpress;
14314
14467
  result = val / 96 * 100;
14315
14468
  }
14316
14469
  result = result / (zoom);
14317
- return Math.floor(result * 100) / 100;
14470
+ return Math.round(result * 10000) / 10000;
14318
14471
  }
14319
14472
  Internal.pixelToUnits = pixelToUnits;
14320
14473
  function createUnitProperty(model, target, propertyName, property, measureUnit, zoom, afterCreation) {
@@ -14431,9 +14584,12 @@ var DevExpress;
14431
14584
  else if (width < 1200) {
14432
14585
  return "md";
14433
14586
  }
14434
- else {
14587
+ else if (width < 1380) {
14435
14588
  return "lg";
14436
14589
  }
14590
+ else {
14591
+ return "xl";
14592
+ }
14437
14593
  }
14438
14594
  Internal.getSizeFactor = getSizeFactor;
14439
14595
  function appendStaticContextToRootViewModel(root, dx) {