@devexpress/analytics-core 19.1.6-build-19210-0307 → 19.1.7
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.
- package/dist/css/dx-analytics.carmine.css +2 -2
- package/dist/css/dx-analytics.common.css +20 -23
- package/dist/css/dx-analytics.contrast.css +2 -2
- package/dist/css/dx-analytics.dark.compact.css +2 -2
- package/dist/css/dx-analytics.dark.css +2 -2
- package/dist/css/dx-analytics.darkmoon.css +2 -2
- package/dist/css/dx-analytics.darkviolet.css +2 -2
- package/dist/css/dx-analytics.greenmist.css +2 -2
- package/dist/css/dx-analytics.light.compact.css +2 -2
- package/dist/css/dx-analytics.light.css +2 -2
- package/dist/css/dx-analytics.softblue.css +2 -2
- package/dist/css/dx-querybuilder.css +55 -10
- package/dist/html/templates.html +18 -38
- package/dist/js/dx-analytics-core.js +59 -38
- package/dist/js/dx-analytics-core.min.js +3 -3
- package/dist/js/dx-querybuilder.js +44 -28
- package/dist/js/dx-querybuilder.min.js +3 -3
- package/dx-analytics-core.d.ts +9 -17
- package/dx-analytics-core.js +59 -38
- package/dx-querybuilder.d.ts +5 -5
- package/dx-querybuilder.js +44 -28
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress HTML/JS Analytics Core (dx-analytics-core.js)
|
|
3
|
-
* Version: 19.1.
|
|
4
|
-
* Build date: 2019-
|
|
3
|
+
* Version: 19.1.7
|
|
4
|
+
* Build date: 2019-10-14
|
|
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
|
*/
|
|
@@ -755,7 +755,6 @@ var DevExpress;
|
|
|
755
755
|
var Widgets;
|
|
756
756
|
(function (Widgets) {
|
|
757
757
|
Widgets.editorTemplates = {
|
|
758
|
-
color: { header: "dx-color" },
|
|
759
758
|
bool: { header: "dx-boolean" },
|
|
760
759
|
boolSelect: { header: "dx-boolean-select" },
|
|
761
760
|
numeric: { header: "dx-numeric" },
|
|
@@ -1250,8 +1249,8 @@ var DevExpress;
|
|
|
1250
1249
|
var newEditors = this.createEditors(serializationInfo);
|
|
1251
1250
|
if (!newEditors.length)
|
|
1252
1251
|
return;
|
|
1253
|
-
var propertyNames = [].concat([], this._editors().map(function (editor) { return editor.name; }),
|
|
1254
|
-
newEditors.forEach(function (editor) { return _this_1._editors.splice(propertyNames.
|
|
1252
|
+
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]; });
|
|
1253
|
+
newEditors.forEach(function (editor) { return _this_1._editors.splice(propertyNames.indexOf(editor.name), 0, editor); });
|
|
1255
1254
|
};
|
|
1256
1255
|
ObjectProperties.prototype._update = function (target, editorsInfo, recreateEditors) {
|
|
1257
1256
|
var _this_1 = this;
|
|
@@ -2205,17 +2204,16 @@ DevExpress.Analytics.Internal._definePropertyByString(DevExpress, "Designer.Stri
|
|
|
2205
2204
|
DevExpress.Analytics.Widgets.Internal.SvgTemplatesEngine.addTemplates({
|
|
2206
2205
|
'dx-editor-addons': '<!-- ko if: visible --> <div class="dxrd-editormenu-box dxd-property-grid-menu-box-color dxd-back-contrast" data-bind="dxclick: showPopup, css: editorMenuButtonCss"> <div class="dxrd-editormenu-box-inside dxd-back-secondary"></div> </div> <!-- /ko -->',
|
|
2207
2206
|
'dx-boolean': '<div class="propertygrid-editor-checkbox" data-bind="dxCheckBox: getOptions({ value: value, disabled: disabled }), dxValidator: { validationRules: validationRules || [] }"></div>',
|
|
2208
|
-
'dx-boolean-select': '<div data-bind="dxLocalizedSelectBox: { dataSource: [ { val: true, text: $root.getLocalization(\'Yes\', \'AnalyticsCoreStringId.ParametersPanel_True\') }, { val: false, text: $root.getLocalization(\'No\', \'AnalyticsCoreStringId.ParametersPanel_False\') }], valueExpr: \'val\', displayExpr: \'text\', value: value, disabled: disabled }, dxValidator: { validationRules: validationRules || [] }"></div>',
|
|
2207
|
+
'dx-boolean-select': '<div data-bind="dxLocalizedSelectBox: { dataSource: [ { val: true, text: $root.getLocalization(\'Yes\', \'AnalyticsCoreStringId.ParametersPanel_True\') }, { val: false, text: $root.getLocalization(\'No\', \'AnalyticsCoreStringId.ParametersPanel_False\') }], valueExpr: \'val\', displayExpr: \'text\', value: value, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }, dxValidator: { validationRules: validationRules || [] }"></div>',
|
|
2209
2208
|
'dx-commonCollection': '<div class="dx-editor" data-bind="visible: visible"> <div data-bind="dxCollectionEditor: { values: value, displayName: displayName, level: level, info: info }"> </div> </div>',
|
|
2210
2209
|
'dx-commonCollectionItem': '<div data-bind="dxPropertyGrid: { target: value, level: editor.level + 1, parentDisabled: editor.disabled }"></div>',
|
|
2211
|
-
'dx-color': '<div data-bind="dxColorBox: { value: value, editAlphaChannel: true, popupPosition: { collision: \'flipfit flipfit\' }, disabled: disabled }"></div>',
|
|
2212
2210
|
'item-with-title': '<div class="dx-listitem-with-title" data-bind="text: $data.display, attr: { title: $data.display }"></div>',
|
|
2213
|
-
'dx-combobox': '<div data-bind="dxLocalizedSelectBox: { dataSource: values, value: value, valueExpr: \'value\', displayExpr: \'displayValue\', displayCustomValue: true, disabled: disabled }, dxValidator: { validationRules: $data.validationRules || [] }"> </div>',
|
|
2214
|
-
'dx-combobox-editable': '<div data-bind="dxSelectBox: getOptions({ items: values, value: value, valueExpr: \'value\', displayExpr: \'displayValue\', disabled: disabled, placeholder: $root.dx.Analytics.Internal.selectPlaceholder(), acceptCustomValue: true, onCustomItemCreating: function(arg) { return { value: arg.text, displayValue: arg.text }; } })"></div>',
|
|
2215
|
-
'dx-combobox-undo': '<div data-bind="dxLocalizedSelectBox: { dataSource: values, value: generateValue($root.undoEngine), valueExpr: \'value\', displayExpr: \'displayValue\', displayCustomValue: true, disabled: disabled }, dxValidator: { validationRules: $data.validationRules || [] }"> </div>',
|
|
2211
|
+
'dx-combobox': '<div data-bind="dxLocalizedSelectBox: { dataSource: values, value: value, valueExpr: \'value\', displayExpr: \'displayValue\', displayCustomValue: true, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }, dxValidator: { validationRules: $data.validationRules || [] }"> </div>',
|
|
2212
|
+
'dx-combobox-editable': '<div data-bind="dxSelectBox: getOptions({ items: values, value: value, valueExpr: \'value\', displayExpr: \'displayValue\', disabled: disabled, placeholder: $root.dx.Analytics.Internal.selectPlaceholder(), acceptCustomValue: true, onCustomItemCreating: function(arg) { return { value: arg.text, displayValue: arg.text }; }, dropDownOptions: { container: $root.getPopupContainer($element) } })"></div>',
|
|
2213
|
+
'dx-combobox-undo': '<div data-bind="dxLocalizedSelectBox: { dataSource: values, value: generateValue($root.undoEngine), valueExpr: \'value\', displayExpr: \'displayValue\', displayCustomValue: true, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }, dxValidator: { validationRules: $data.validationRules || [] }"> </div>',
|
|
2216
2214
|
'dx-property-editor': '<div class="dx-editor" data-bind="visible: visible"> <div class="dx-group" data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dx-editor-header"> <div class="dx-field"> <div class="dx-field-label dx-accordion-header dxd-text-primary" data-bind="styleunit: padding, css: { \'dx-accordion-empty\': templateName === \'dx-emptyHeader\' }"> <!-- ko if: isComplexEditor --> <div class="propertygrid-editor-collapsed dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }"></div> <!-- ko if: !!$data.textToSearch --> <div class="dx-group-header-font" data-bind="searchHighlighting: { text: displayName, textToSearch: textToSearch }, attr: { \'title\': displayName }"></div> <!-- /ko --> <!-- ko ifnot: !!$data.textToSearch --> <div class="dx-group-header-font" data-bind="text: displayName, attr: { \'title\': displayName }"></div> <!-- /ko --> <!-- /ko --> <!-- ko if: !isComplexEditor --> <!-- ko if: !!$data.textToSearch --> <div class="propertygrid-editor-displayName" data-bind="searchHighlighting: { text: displayName, textToSearch: textToSearch }, attr: { \'title\': displayName }, style: { fontWeight: isPropertyModified() ? \'Bold\' : \'\'}"></div> <!-- /ko --> <!-- ko ifnot: !!$data.textToSearch --> <div class="propertygrid-editor-displayName" data-bind="text: displayName, attr: { \'title\': displayName }, style: { fontWeight: isPropertyModified() ? \'Bold\' : \'\'}"></div> <!-- /ko --> <!-- /ko --> </div> <div class="dx-field-value"> <div data-bind="service: { name: \'createEditorAddOn\' }"></div> <!-- ko if: templateName !== \'dx-emptyHeader\' --> <!-- ko lazy: { template: templateName } --> <!-- /ko --> <!-- /ko --> </div> </div> </div> <!-- ko if: isComplexEditor --> <div class="dx-editor-content dx-accordion-content"> <!-- ko if: (!$data.editorCreated || editorCreated) --> <!-- ko template: contentTemplateName --> <!-- /ko --> <!-- /ko --> </div> <!-- /ko --> </div> </div>',
|
|
2217
2215
|
'dx-emptyHeader': ' ',
|
|
2218
|
-
'dx-date': '<div class="dx-datebox-container"> <div data-bind="dxDateBox: getOptions({ value: value, closeOnValueChange: true, type: \'datetime\', disabled: disabled }), dxValidator: { validationRules: validationRules || [] }"></div> </div>',
|
|
2216
|
+
'dx-date': '<div class="dx-datebox-container"> <div data-bind="dxDateBox: getOptions({ value: value, closeOnValueChange: true, type: \'datetime\', disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }), dxValidator: { validationRules: validationRules || [] }"></div> </div>',
|
|
2219
2217
|
'dx-file': '<div data-bind="dxFileImagePicker: { value: value, placeholderId: \'File\', disabled: disabled }"></div>',
|
|
2220
2218
|
'dx-modificators': '<div class="dx-font-content"> <div class="dx-field"> <div class="dx-field-label dxd-text-primary" data-bind="styleunit: { \'paddingLeft\': padding }"></div> <!-- ko with: value --> <div class="dx-field-value"> <div class="dx-font-styles-content"> <div class="dx-font-style-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dx-image-fontstyle-bold" data-bind="css: { \'dxd-state-active\': bold(), \'dx-disabled-button\': $parent.disabled }, click: function() { if(!$parent.disabled()) { bold(!bold()); } }"><!-- ko template: \'dxrd-svg-fontstyle-bold\'--><!-- /ko --></div> <div class="dx-font-style-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dx-image-fontstyle-italic" data-bind="css: { \'dxd-state-active\': italic(), \'dx-disabled-button\': $parent.disabled }, click: function() { if(!$parent.disabled()) { italic(!italic()); } }"><!-- ko template: \'dxrd-svg-fontstyle-italic\'--><!-- /ko --></div> <div class="dx-font-style-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dx-image-fontstyle-underline" data-bind="css: { \'dxd-state-active\': underline(), \'dx-disabled-button\': $parent.disabled }, click: function() { if(!$parent.disabled()) { underline(!underline()); } }"><!-- ko template: \'dxrd-svg-fontstyle-underline\'--><!-- /ko --></div> <div class="dx-font-style-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dx-image-fontstyle-strikeout" data-bind="css: { \'dxd-state-active\': strikeout(), \'dx-disabled-button\': $parent.disabled }, click: function() { if(!$parent.disabled()) { strikeout(!strikeout()); } }"><!-- ko template: \'dxrd-svg-fontstyle-strikeout\'--><!-- /ko --></div> </div> </div> <!-- /ko --> </div> </div>',
|
|
2221
2219
|
'dx-image': '<div data-bind="dxFileImagePicker: { value: value, placeholderId: \'Image\', accept: \'image/*\', type: \'img\', disabled: disabled }"></div>',
|
|
@@ -2256,7 +2254,7 @@ DevExpress.Analytics.Widgets.Internal.SvgTemplatesEngine.addTemplates({
|
|
|
2256
2254
|
'dx-filtereditor-property': '<div class="criteria-operator-text dxd-filter-editor-text-color" data-bind="css: css"> <div data-bind="service: { name: \'createChangeProperty\' }"></div> <!-- ko if: $data.canChange --> <div data-bind="service: { name: \'createChangeValueType\' }"></div> <!-- /ko --> </div>',
|
|
2257
2255
|
'dx-filtereditor-unary': '<!-- ko if: $data.operand().reverse --> <!-- ko template: {name: $data.operand().templateName, data: $data.operand() }--> <!-- /ko --> <!-- /ko --> <!-- ko ifnot: $data.operand().reverse --> <div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $data.remove && $data.remove(); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove" data-bind="visible: !!$data.canRemove"><!-- ko template: \'dxrd-svg-filtereditor-remove\' --><!-- /ko --></div> </div> <!-- ko with: operand--> <div class="criteria-operator-item"> <!-- ko template: { name: templateName, data: $data }--> <!-- /ko --> </div> <!-- /ko --> <div data-bind="service: { name: \'createChangeType\' }"></div> </div> </div> <!-- /ko -->',
|
|
2258
2256
|
'dx-filtereditor-not': '<!-- ko with: operand--> <!-- ko template: { name: templateName, data: $data }--> <!-- /ko --> <!-- /ko -->',
|
|
2259
|
-
'dx-filtereditor-value': '<div class="criteria-operator-item" data-bind="visible: isEditable"> <!-- ko if: $data.items.length === 0 --> <!-- ko if: $data.specifics() === "string" || $data.specifics() === "guid" --> <div class="criteria-operator-item-editor" data-bind="dxTextBox: { value: _value, onFocusOut: function() { isEditable(false); } }, focus: { on: isEditable }"></div> <!-- /ko --> <!-- ko if: $data.specifics() === "bool" --> <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxLocalizedSelectBox: { dataSource: [ { val: \'True\', text: \'Yes\', localizationId: \'AnalyticsCoreStringId.ParametersPanel_True\' }, { val: \'False\', text: \'No\', localizationId: \'AnalyticsCoreStringId.ParametersPanel_False\' }], valueExpr: \'val\', displayExpr: \'text\', value: _value, onFocusOut: function() { isEditable(false); } }"></div> <!-- /ko --> <!-- ko if: $data.specifics() === "date" --> <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxDateBox: { value: _value, closeOnValueChange: true, type: \'date\', onFocusOut: function() { isEditable(false); } }"></div> <!-- /ko --> <!-- ko if: $data.specifics() !== "string" && $data.specifics() !== "bool" && $data.specifics() !== "date" && $data.specifics() !== "guid" --> <div class="criteria-operator-item-editor" data-bind="dxTextBox: getNumberEditorOptions(), focus: { on: isEditable }"></div> <!-- /ko --> <!-- /ko --> <!-- ko if: $data.items.length > 0 && typeof $data.items[0] === "object" --> <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxSelectBox: { value: _value, dataSource: dataSource, valueExpr: \'value\', displayExpr: \'display\', searchEnabled: true, onFocusOut: function() { isEditable(false); }}"></div> <!-- /ko --> <!-- ko if: $data.items.length > 0 && typeof $data.items[0] !== "object" --> <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxSelectBox: { value: _value, dataSource: dataSource, acceptCustomValue: true, searchEnabled: true, onFocusOut: function() { isEditable(false); }}"></div> <!-- /ko --> </div> <div class="criteria-operator-text dxd-filter-editor-text-color criteria-operator-item-value dxd-filter-editor-value-back-color" data-bind="visible: !isEditable()"> <div class="criteria-operator-text dxd-filter-editor-text-color clickable" data-bind="text: value, click: function() { isEditable(true); }, css: { \'default\': $data.isDefaultDisplay() } "></div> <div data-bind="service: { name: \'createChangeValueType\' }"></div> </div>',
|
|
2257
|
+
'dx-filtereditor-value': '<div class="criteria-operator-item" data-bind="visible: isEditable"> <!-- ko if: $data.items.length === 0 --> <!-- ko if: $data.specifics() === "string" || $data.specifics() === "guid" --> <div class="criteria-operator-item-editor" data-bind="dxTextBox: { value: _value, onFocusOut: function() { isEditable(false); } }, focus: { on: isEditable }"></div> <!-- /ko --> <!-- ko if: $data.specifics() === "bool" --> <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxLocalizedSelectBox: { dataSource: [ { val: \'True\', text: \'Yes\', localizationId: \'AnalyticsCoreStringId.ParametersPanel_True\' }, { val: \'False\', text: \'No\', localizationId: \'AnalyticsCoreStringId.ParametersPanel_False\' }], valueExpr: \'val\', displayExpr: \'text\', value: _value, onFocusOut: function() { isEditable(false); }, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> <!-- /ko --> <!-- ko if: $data.specifics() === "date" --> <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxDateBox: { value: _value, closeOnValueChange: true, type: \'date\', onFocusOut: function() { isEditable(false); }, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> <!-- /ko --> <!-- ko if: $data.specifics() !== "string" && $data.specifics() !== "bool" && $data.specifics() !== "date" && $data.specifics() !== "guid" --> <div class="criteria-operator-item-editor" data-bind="dxTextBox: getNumberEditorOptions(), focus: { on: isEditable }"></div> <!-- /ko --> <!-- /ko --> <!-- ko if: $data.items.length > 0 && typeof $data.items[0] === "object" --> <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxSelectBox: { value: _value, dataSource: dataSource, valueExpr: \'value\', displayExpr: \'display\', searchEnabled: true, onFocusOut: function() { isEditable(false); }}, dropDownOptions: { container: $root.getPopupContainer($element) }"></div> <!-- /ko --> <!-- ko if: $data.items.length > 0 && typeof $data.items[0] !== "object" --> <div class="criteria-operator-item-editor" data-bind="focus: isEditable, dxSelectBox: { value: _value, dataSource: dataSource, acceptCustomValue: true, searchEnabled: true, onFocusOut: function() { isEditable(false); }, dropDownOptions: { container: $root.getPopupContainer($element) }}"></div> <!-- /ko --> </div> <div class="criteria-operator-text dxd-filter-editor-text-color criteria-operator-item-value dxd-filter-editor-value-back-color" data-bind="visible: !isEditable()"> <div class="criteria-operator-text dxd-filter-editor-text-color clickable" data-bind="text: value, click: function() { isEditable(true); }, css: { \'default\': $data.isDefaultDisplay() } "></div> <div data-bind="service: { name: \'createChangeValueType\' }"></div> </div>',
|
|
2260
2258
|
'dx-filtereditor-popup': '<div class="dx-filtereditor dx-popup-general" data-bind="dxPopup: { showTitle: true, width: \'95%\', height: \'95%\', title: options() && options().title(), visible: popupVisible, onShown: function() { $data.focusText() }, toolbarItems: buttonItems, showCloseButton: true, container: getPopupContainer($element), position: { of: getPopupContainer($element) } }"> <!-- ko template: \'dx-filtereditor-content\' --> <!-- /ko --> </div> <!-- ko template: \'dx-filtereditor-content-popups\' --> <!-- /ko -->',
|
|
2261
2259
|
'dx-filtereditor-create': '<div class="criteria-operator-action" data-bind="dxclick: showPopup"> <div class="criteria-operator-action-image dx-image-filtereditor-add"><!-- ko template: \'dxrd-svg-filtereditor-add\' --><!-- /ko --></div> </div>',
|
|
2262
2260
|
'dx-filtereditor-change': '<div class="criteria-operator-text dxd-filter-editor-text-color clickable" data-bind="text: target.displayType, dxclick: showPopup, css: target.css"></div>',
|
|
@@ -2285,7 +2283,7 @@ DevExpress.Analytics.Widgets.Internal.SvgTemplatesEngine.addTemplates({
|
|
|
2285
2283
|
'dx-treelist-common': '<!-- ko foreach: items --> <!-- ko lazy: { resolver: resolver, innerBindings: { template: templateName } } --> <!-- /ko --> <div data-bind="visible: !collapsed()"> <!-- ko template: { name: \'dx-treelist\', data: $data } --> <!-- /ko --> </div> <!-- /ko -->',
|
|
2286
2284
|
'dx-treelist-paginate': '<!-- ko foreach: visibleItems --> <!-- ko template: templateName --> <!-- /ko --> <div data-bind="visible: !collapsed()"> <!-- ko template: { name: \'dx-treelist\', data: $data } --> <!-- /ko --> </div> <!-- /ko -->',
|
|
2287
2285
|
'dxrd-borders': '<div class="dxrd-bordereditor" data-bind="dxBorderEditor: { value: value }"></div>',
|
|
2288
|
-
'dxrd-colorpicker': '<div data-bind="dxColorBox: { value: displayValue, editAlphaChannel: true, popupPosition: { collision: \'flipfit flipfit\' }, disabled: disabled }"></div>',
|
|
2286
|
+
'dxrd-colorpicker': '<div data-bind="dxColorBox: { value: displayValue, editAlphaChannel: true, popupPosition: { collision: \'flipfit flipfit\' }, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div>',
|
|
2289
2287
|
'dxrd-expressionstring': '<!-- ko if: $data.value() --> <div data-bind="dxExpressionEditor: getOptions({ options: value, fieldListProvider: $root.dataBindingsProvider, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() })"></div> <!-- /ko -->',
|
|
2290
2288
|
'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 -->',
|
|
2291
2289
|
'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 -->',
|
|
@@ -2296,8 +2294,6 @@ DevExpress.Analytics.Widgets.Internal.SvgTemplatesEngine.addTemplates({
|
|
|
2296
2294
|
'dxrd-objectEditorContent': '<!-- ko if: $data.visible() && $data.editorCreated() --> <div data-bind="template: { name: \'dx-propertieseditor\', data: viewmodel }"></div> <!-- /ko -->',
|
|
2297
2295
|
'dxrd-objectEditor': '<div data-bind="dxPropertyGrid: { target: ko.observable($data), level: $parent.level, textToSearch: $parent.textToSearch }"></div>',
|
|
2298
2296
|
'dxrd-commonCollectionItem': '<div data-bind="dxPropertyGrid: { target: value, level: editor.level + 1, parentDisabled: editor.disabled }"></div>',
|
|
2299
|
-
'dxrd-controls': '<div data-bind="dxLocalizedSelectBox: { items: $root.controls, value: value, displayExpr: \'displayName\', valueExpr: \'value\', disabled: disabled }"></div>',
|
|
2300
|
-
'dxrd-treelistContent': '<!-- ko if: visible --> <!-- ko if: value --> <!-- ko with: value --> <div data-bind="treelist: { itemsProvider: itemsProvider, selectedPath: selectedPath, treeListController: treeListController }"></div> <!-- /ko --> <!-- /ko --> <!-- /ko -->',
|
|
2301
2297
|
'dxrd-objectVisitor': '<!-- ko if: options --> <div data-bind="treelist: options"></div> <!-- /ko -->',
|
|
2302
2298
|
'dxd-snap-lines-holder': '<div class="dxd-snap-lines-holder"> <div class="dxd-snap-line dxd-snap-line-horizontal" data-bind="style: { transform: snapLineSurfaces[0].transform() }"></div> <div class="dxd-snap-line dxd-snap-line-horizontal" data-bind="style: { transform: snapLineSurfaces[1].transform() }"></div> <div class="dxd-snap-line dxd-snap-line-vertical" data-bind="style: { transform: snapLineSurfaces[2].transform() }"></div> <div class="dxd-snap-line dxd-snap-line-vertical" data-bind="style: { transform: snapLineSurfaces[3].transform() }"></div> </div>',
|
|
2303
2299
|
'dxrd-surface-template-base': '<!-- ko ifnot: isLoading --> <!-- ko with: surface --> <div class="dxrd-surface-wrapper" data-bind="template: templateName, click: function(_, e) { $root.selection.clickHandler($data, e); e.stopPropagation(); }"> </div> <!-- /ko --> <!-- /ko --> <!-- ko if: isLoading --> <div class="dxrd-surface-wrapper"> <div style="text-align: center; padding-top: 25%;"> <div data-bind="dxLoadIndicator: { visible: isLoading() }"></div> </div> </div> <!-- /ko -->',
|
|
@@ -2305,13 +2301,13 @@ DevExpress.Analytics.Widgets.Internal.SvgTemplatesEngine.addTemplates({
|
|
|
2305
2301
|
'dxrd-collectionactions-template': '<div class="dxrd-action-items-container"></div> <div class="dx-treelist-action" data-bind="dxButtonWithTemplate: { onClick: togglePopoverVisible, disabled: disabled, icon: ko.unwrap($data.imageTemplateName), iconClass: ko.unwrap($data.imageClassName) }, attr: { id: id, title: text }"></div> <div data-bind="dxPopup: { width: 235, height: \'auto\', position: { my: $root.rtl ? \'left top\': \'right top\', at: \'bottom\', of: (\'#\' + id) }, showTitle: false, showCloseButton: false, animation: {}, closeOnOutsideClick: true, container: ($data.getContainer || function(_e, selector) { return selector; })($element, \'.dxrd-action-items-container\'), shading: false, visible: popoverVisible }"> <!-- ko foreach: actions --> <div class="dxrd-action-item dxd-button-back-color dxd-state-normal dxd-back-highlighted" data-bind="dxclick: clickAction, css: { \'dxrd-disabled-button\': disabled }"> <div class="dxrd-action-item-image" data-bind="css: ko.unwrap($data.imageClassName), template: {name: ko.unwrap($data.imageTemplateName), if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: $data.displayText && $data.displayText() || text }"> </div> </div> <!-- /ko --> </div>',
|
|
2306
2302
|
'dxrd-menubutton-template-base': '<div class="dxrd-menu-container" style="position:relative; width:0; height:100%"></div> <div class="dxrd-menu-button dxd-toolbox-back-color dxd-border-primary dxd-back-primary2"> <div class="dxrd-menu-place" style="width:54px;"></div> <div class="dxrd-menu-button-image dxd-button-back-color dxd-state-normal dxd-back-highlighted" data-bind="dxclick: function(e) { if(stopPropagation) { stopPropagation = false; } else { toggleAppMenu() } }, template: \'dxrd-svg-menu-menu\', css: {\'dxd-state-active\': appMenuVisible }"></div> <div class="dxd-menu-back-color dxd-back-primary2" data-bind="dxPopup: { width: 250, height: \'100%\' , position: $data.rtl ? { my: \'right top\' , at: \'left top\' , offset: \'-10 0\' } : { my: \'left top\' , at: \'right top\' , offset: \'10 0\' }, showTitle: false, showCloseButton: false, container: getMenuPopupContainer($element), target: getMenuPopupTarget($element), animation: {}, closeOnOutsideClick: function(e) { var buttonClassName = \'dxrd-menu-button-image\'; var parentClassList = e.target.parentNode && e.target.parentNode.parentNode && e.target.parentNode.parentNode.classList; stopPropagation = (e.target.classList && e.target.classList.contains(buttonClassName)) || (parentClassList && parentClassList.contains(buttonClassName)); return true; }, shading: false, focusStateEnabled: false, visible: appMenuVisible }"> <div class="dxrd-menu-break dxd-popup-back-color dxd-back-primary2"></div> <!-- ko foreach: actionLists.menuItems --> <div class="dxrd-menu-item dxd-text-primary dxd-list-item-back-color dxd-back-highlighted" data-bind="dxclick: function(e) { if(disabled && !disabled() || !disabled) { $root.toggleAppMenu(); clickAction($root.model(), e); }}, css: { \'dxrd-disabled-button\': disabled }, visible: visible"> <div class="dxrd-menu-item-image" data-bind="css: ko.unwrap($data.imageClassName), template: {name: ko.unwrap($data.imageTemplateName), if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: $data.displayText && $data.displayText() || text }"> </div> <div class="dxrd-menu-item-text" data-bind="text: $data.displayText && $data.displayText() || text, attr: { title: $data.displayText && $data.displayText() || text}"></div> <div class="dxrd-menu-item-separator" data-bind="visible: $data.hasSeparator"></div> </div> <!-- /ko --> </div> </div>',
|
|
2307
2303
|
'dxrd-top-grid': '<!-- ko if: popularVisible --> <div class="dx-fieldset"> <div data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header" data-bind="css: { \'dxrd-group-header-collapsed dxd-border-primary\': collapsed() }"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text" data-bind="text: $root.actionsGroupTitle()"></span> </div> <div class="dx-accordion-content dxd-back-primary"> <!-- ko foreach: (contextActions || []) --> <!-- ko if: $data.templateName --> <!-- ko template: templateName --> <!-- /ko --> <!-- /ko --> <!-- ko if: !$data.templateName --> <div class="dxrd-properties-grid-action" data-bind="dxclick: function() { if($data.disabled && !$data.disabled() || !$data.disabled) { clickAction($root.editableObject()); } }, css: { \'dxrd-disabled-button\': $data.disabled && $data.disabled() }, visible: (ko.unwrap($data.visible) == undefined) || ko.unwrap($data.visible)"> <div class="dxrd-properties-grid-action-image dxd-button-back-color dxd-state-normal dxd-back-highlighted" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: $data.displayText && $data.displayText() || text }"> </div> </div> <!-- /ko --> <!-- /ko --> <!-- ko with: popularProperties --> <div style="position: relative" data-bind="template: { name: \'dx-propertieseditor\', data: $data }"></div> <!-- /ko --> </div> </div> </div> <!-- /ko -->',
|
|
2308
|
-
'dxrd-propertiestab': '<div class="dxrd-properties-wrapper" data-bind="visible: active() && visible()"> <div style="height:100%" class="dxd-text-primary"> <div class="dxrd-right-panel-header"> <span data-bind="text: text"></span> </div> <!-- ko with: model --> <!-- ko if: $root.controlsStore.visible() --> <div class="dx-property-grid-header"> <div class="dx-property-grid-header-content"> <div class="dx-property-grid-sorting-actions-group" data-bind="css: { \'dx-property-gread-search-collapsed\': isSearching }"> <div class="dxrd-properties-focused-item" data-bind="dxSelectBox: { dataSource: $root.controlsStore.dataSource, value: focusedItem, displayExpr: displayExpr }"></div> <div class="dx-property-grid-sorting-actions-container"> <div class="dx-property-grid-sorting-action dxd-button-back-color dxd-state-normal dxd-back-highlighted dxd-back-primary2" data-bind="css: { \'dxd-state-active dxd-state-no-hover\': !isSortingByGroups() }, dxButtonWithTemplate: { onClick: function() { $data.isSortingByGroups(false); }, icon: \'dxrd-svg-properties-sortingbyalphabet\', iconClass: \'image-sortingbyalphabet\' }"></div> <div class="dx-property-grid-sorting-action dxd-button-back-color dxd-state-normal dxd-back-highlighted dxd-back-primary2" data-bind="css: { \'dxd-state-active dxd-state-no-hover\': isSortingByGroups }, dxButtonWithTemplate: { onClick: function() { $data.isSortingByGroups(true); }, icon: \'dxrd-svg-properties-sortingbygroups\', iconClass: \'image-sortingbygroups\' }"></div> </div> </div> <div class="dx-property-grid-search-group dx-property-gread-search-collapsed" data-bind="css: { \'dx-property-gread-search-collapsed\': !isSearching() }"> <div class="dx-property-grid-sorting-action dxd-button-back-color dxd-state-normal dxd-back-highlighted dxd-back-primary2" data-bind="css: { \'dxd-state-active\': isSearching }, dxButtonWithTemplate: { onClick: switchSearchBox, icon: \'dxrd-svg-properties-search\', iconClass: \'image-search\' }"></div> <div class="dx-property-grid-search-box" data-bind="dxTextBox: { value: textToSearch, valueChangeEvent: \'keyup\', placeholder: searchPlaceholder(), showClearButton: true }, cacheElement: { action: function(element) { searchBox(element); } }"></div> </div> </div> </div> <!-- /ko --> <div class="dxrd-properties-grid dxd-border-primary" data-bind="dxScrollView: { showScrollbar: \'onHover\', useNative: false, scrollByThumb: true }, styleunit: { top: $root.controlsStore.visible() ? 80 : 40 }"> <!-- ko template: { name: \'dxrd-top-grid\', data: { contextActions: $root.contextActions, popularProperties: $root.popularProperties, collapsed: ko.observable(false), popularVisible: $root.popularVisible() && isSortingByGroups(), actionsGroupTitle: $root.actionsGroupTitle } } --> <!-- /ko --> <div data-bind="visible: isSortingByGroups"> <!-- ko foreach: groups --> <div class="dx-fieldset" data-bind="visible: visible"> <div data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header" data-bind="css: { \'dxrd-group-header-collapsed dxd-border-primary\': collapsed() }"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text" data-bind="text: displayName()"></span> </div> <div class="dx-accordion-content dxd-back-primary"> <!-- ko ifnot: editorsCreated --> <div class="dx-accordion-content-loading-panel"> <div data-bind="dxLoadIndicator: { visible: !editorsCreated() }"></div> </div> <!-- /ko --> <!-- ko if: $data.editorsRendered() --> <div data-bind="visible: editorsCreated"> <div class="dx-editors"> <!-- ko foreach: editors --> <!-- ko template: editorTemplate --> <!-- /ko --> <!-- ko if: ($index() === $parent.editors().length - 1 && $parent.editorsCreated(true)) --> <!-- /ko --> <!-- /ko --> </div> </div> <!-- /ko --> </div> </div> </div> <!-- /ko --> </div> <div class="dx-fieldset dxd-back-primary" data-bind="visible: !isSortingByGroups()"> <div data-bind="dxLoadIndicator: { visible: !allEditorsCreated() }"></div> <!-- ko if: $data.editorsRendered() --> <div data-bind="visible: allEditorsCreated"> <div class="dx-editors"> <!-- ko foreach: $data.getEditors() --> <!-- ko template: editorTemplate --> <!-- /ko --> <!-- ko if: ($index() === $parent._editors().length - 1 && $parent.allEditorsCreated(true)) --> <!-- /ko --> <!-- /ko --> </div> </div> <!-- /ko --> </div> <div data-bind="dxPopup: { width: 148, height: \'auto\', position: $data.rtl ? { my: \'left top\', at: \'right top\', of: popupService.target } : { my: \'right top\', at: \'left top\', of: popupService.target }, container: \'.dx-designer-viewport\', target: popupService.target, showTitle: false, showCloseButton: false, animation: {}, closeOnOutsideClick: true, shading: false, visible: popupService.visible }"> <div data-options="dxTemplate: { name: \'content\' }"> <!-- ko if: popupService.title --> <div class="dxrd-editor-menu-caption dxd-text-primary" data-bind="text: popupService.title"></div> <!-- /ko --> <!-- ko foreach: popupService.actions --> <!-- ko if: (!visible || visible()) --> <div class="dxrd-editor-menu-item dxd-list-item-back-color dxd-back-highlighted dxd-state-normal" data-bind="dxclick: action"> <div class="dxrd-menuitem-box dxd-property-grid-menu-box-color dxd-back-contrast"> <div class="dxrd-menuitem-box-inside dxd-back-secondary"></div> </div> <span class="dxrd-editor-menu-title dxd-text-primary" data-bind="text: title"></span> </div> <!-- /ko --> <!-- /ko --> </div> </div> </div> <!-- /ko --> </div></div>',
|
|
2304
|
+
'dxrd-propertiestab': '<div class="dxrd-properties-wrapper" data-bind="visible: active() && visible()"> <div style="height:100%" class="dxd-text-primary"> <div class="dxrd-right-panel-header"> <span data-bind="text: text"></span> </div> <!-- ko with: model --> <!-- ko if: $root.controlsStore.visible() --> <div class="dx-property-grid-header"> <div class="dx-property-grid-header-content"> <div class="dx-property-grid-sorting-actions-group" data-bind="css: { \'dx-property-gread-search-collapsed\': isSearching }"> <div class="dxrd-properties-focused-item" data-bind="dxSelectBox: { dataSource: $root.controlsStore.dataSource, value: focusedItem, displayExpr: displayExpr, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> <div class="dx-property-grid-sorting-actions-container"> <div class="dx-property-grid-sorting-action dxd-button-back-color dxd-state-normal dxd-back-highlighted dxd-back-primary2" data-bind="css: { \'dxd-state-active dxd-state-no-hover\': !isSortingByGroups() }, dxButtonWithTemplate: { onClick: function() { $data.isSortingByGroups(false); }, icon: \'dxrd-svg-properties-sortingbyalphabet\', iconClass: \'image-sortingbyalphabet\' }"></div> <div class="dx-property-grid-sorting-action dxd-button-back-color dxd-state-normal dxd-back-highlighted dxd-back-primary2" data-bind="css: { \'dxd-state-active dxd-state-no-hover\': isSortingByGroups }, dxButtonWithTemplate: { onClick: function() { $data.isSortingByGroups(true); }, icon: \'dxrd-svg-properties-sortingbygroups\', iconClass: \'image-sortingbygroups\' }"></div> </div> </div> <div class="dx-property-grid-search-group dx-property-gread-search-collapsed" data-bind="css: { \'dx-property-gread-search-collapsed\': !isSearching() }"> <div class="dx-property-grid-sorting-action dxd-button-back-color dxd-state-normal dxd-back-highlighted dxd-back-primary2" data-bind="css: { \'dxd-state-active\': isSearching }, dxButtonWithTemplate: { onClick: switchSearchBox, icon: \'dxrd-svg-properties-search\', iconClass: \'image-search\' }"></div> <div class="dx-property-grid-search-box" data-bind="dxTextBox: { value: textToSearch, valueChangeEvent: \'keyup\', placeholder: searchPlaceholder(), showClearButton: true }, cacheElement: { action: function(element) { searchBox(element); } }"></div> </div> </div> </div> <!-- /ko --> <div class="dxrd-properties-grid dxd-border-primary" data-bind="dxScrollView: { showScrollbar: \'onHover\', useNative: false, scrollByThumb: true }, styleunit: { top: $root.controlsStore.visible() ? 80 : 40 }"> <!-- ko template: { name: \'dxrd-top-grid\', data: { contextActions: $root.contextActions, popularProperties: $root.popularProperties, collapsed: ko.observable(false), popularVisible: $root.popularVisible() && isSortingByGroups(), actionsGroupTitle: $root.actionsGroupTitle } } --> <!-- /ko --> <div data-bind="visible: isSortingByGroups"> <!-- ko foreach: groups --> <div class="dx-fieldset" data-bind="visible: visible"> <div data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header" data-bind="css: { \'dxrd-group-header-collapsed dxd-border-primary\': collapsed() }"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text" data-bind="text: displayName()"></span> </div> <div class="dx-accordion-content dxd-back-primary"> <!-- ko ifnot: editorsCreated --> <div class="dx-accordion-content-loading-panel"> <div data-bind="dxLoadIndicator: { visible: !editorsCreated() }"></div> </div> <!-- /ko --> <!-- ko if: $data.editorsRendered() --> <div data-bind="visible: editorsCreated"> <div class="dx-editors"> <!-- ko foreach: editors --> <!-- ko template: editorTemplate --> <!-- /ko --> <!-- ko if: ($index() === $parent.editors().length - 1 && $parent.editorsCreated(true)) --> <!-- /ko --> <!-- /ko --> </div> </div> <!-- /ko --> </div> </div> </div> <!-- /ko --> </div> <div class="dx-fieldset dxd-back-primary" data-bind="visible: !isSortingByGroups()"> <div data-bind="dxLoadIndicator: { visible: !allEditorsCreated() }"></div> <!-- ko if: $data.editorsRendered() --> <div data-bind="visible: allEditorsCreated"> <div class="dx-editors"> <!-- ko foreach: $data.getEditors() --> <!-- ko template: editorTemplate --> <!-- /ko --> <!-- ko if: ($index() === $parent._editors().length - 1 && $parent.allEditorsCreated(true)) --> <!-- /ko --> <!-- /ko --> </div> </div> <!-- /ko --> </div> <div data-bind="dxPopup: { width: 148, height: \'auto\', position: $data.rtl ? { my: \'left top\', at: \'right top\', of: popupService.target } : { my: \'right top\', at: \'left top\', of: popupService.target }, container: \'.dx-designer-viewport\', target: popupService.target, showTitle: false, showCloseButton: false, animation: {}, closeOnOutsideClick: true, shading: false, visible: popupService.visible }"> <div data-options="dxTemplate: { name: \'content\' }"> <!-- ko if: popupService.title --> <div class="dxrd-editor-menu-caption dxd-text-primary" data-bind="text: popupService.title"></div> <!-- /ko --> <!-- ko foreach: popupService.actions --> <!-- ko if: (!visible || visible()) --> <div class="dxrd-editor-menu-item dxd-list-item-back-color dxd-back-highlighted dxd-state-normal" data-bind="dxclick: action"> <div class="dxrd-menuitem-box dxd-property-grid-menu-box-color dxd-back-contrast"> <div class="dxrd-menuitem-box-inside dxd-back-secondary"></div> </div> <span class="dxrd-editor-menu-title dxd-text-primary" data-bind="text: title"></span> </div> <!-- /ko --> <!-- /ko --> </div> </div> </div> <!-- /ko --> </div></div>',
|
|
2309
2305
|
'dx-right-panel-lightweight': '<div class="dxrd-right-panel dx-shadow dxd-border-secondary dxd-property-grid-group-header-back-color dxd-back-primary2" data-bind="styleunit: { width: tabPanel.width }, css: tabPanel.cssClasses(), resizable: tabPanel.getResizableOptions($element, \'1px\', 325)"> <!-- ko foreach: tabPanel.tabs --> <!-- ko lazy: { template: $data.template } --> <!-- /ko --> <!-- /ko --> </div>',
|
|
2310
2306
|
'dxrd-right-panel-template-base': '<div class="dx-shadow dxd-border-secondary" data-bind="styleunit: { width: tabPanel.headerWidth }, css: tabPanel.cssClasses({\'border\': !tabPanel.collapsed()})"> <div class="dxrd-right-panel-collapse dxd-back-primary dxd-button-back-color dxd-state-normal dxd-back-highlighted" data-bind="styleunit: { width: tabPanel.headerWidth }, css: tabPanel.cssClasses(), dxclick: function() { tabPanel.collapsed(!tabPanel.collapsed()); }, attr: { title: tabPanel.toggleCollapsedText }"> <div class="dxrd-right-panel-collapse-image" data-bind="css: tabPanel.toggleCollapsedImage().class, template: tabPanel.toggleCollapsedImage().template"></div> </div> <div class="dxrd-right-panel dxd-property-grid-group-header-back-color dxd-back-primary2" data-bind="styleunit: { width: tabPanel.width }, css: tabPanel.cssClasses(), resizable: tabPanel.getResizableOptions($element, \'50px\', 340)"> <!-- ko foreach: tabPanel.tabs --> <!-- ko lazy: { template: $data.template } --> <!-- /ko --> <!-- /ko --> </div> <div class="dxrd-right-tabs dxd-side-panel-tabs-back-color dxd-back-contrast" data-bind="css: tabPanel.cssClasses()"> <!-- ko foreach: tabPanel.tabs --> <div class="dxrd-tab-item dxd-side-panel-tab-back-color dxd-back-highlighted" data-bind="dxclick: function(s) { $parent.tabPanel.selectTab({ model: s }) }, css: { \'dxd-state-active dxd-state-no-hover\': active, \'dxrd-tab-item-disabled\': disabled }, attr: { title: text }, visible: visible"> <div class="dxrd-image-padding" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}"> </div> </div> <!-- /ko --> </div> </div>',
|
|
2311
2307
|
'dxrd-toolbar-template-base': '<div class="dxrd-toolbar-wrapper"> <div class="dxrd-toolbar" data-bind="template: {name: \'dxrd-toolbar-tmplt\', data: actionLists.toolbarItems }"></div> </div>',
|
|
2312
2308
|
'dxrd-toolbar-tmplt': '<!-- ko foreach: $data --> <!-- ko if: $data.templateName --> <!-- ko template: templateName --> <!-- /ko --> <!-- /ko --> <!-- ko if: !$data.templateName --> <div class="dxrd-toolbar-item" data-bind="visible: visible"> <div data-bind="template: {name: ko.unwrap($data.imageTemplateName), if: !!ko.unwrap($data.imageTemplateName)}, attr: { class: \'dxrd-toolbar-item-image dxd-button-back-color dxd-state-normal dxd-back-highlighted \' + (ko.unwrap($data.imageClassName) || \'\'), title: $data.displayText && $data.displayText() || text }, dxclick: function() { if((typeof $data.disabled === \'function\') && !disabled() || !disabled) { clickAction($root.model && $root.model()); } }, css: {\'dxrd-disabled-button\': disabled, \'dxd-state-active\': $data.selected }"> </div> <div class="dxrd-toolbar-item-separator dxd-toolbar-separator-color dxd-border-secondary" data-bind="visible: $data.hasSeparator"></div> </div> <!-- /ko --> <!-- /ko -->',
|
|
2313
2309
|
'dxrd-toolbox-template-base': '<div class="dxrd-toolbox-wrapper dxd-toolbox-back-color dxd-back-primary2" data-bind="dxScrollView: { showScrollbar: \'onHover\', scrollByContent: false, bounceEnabled: false, useNative: false, scrollByThumb: true }"> <!-- ko foreach: toolboxItems --> <div class="dxrd-toolbox-item" data-bind="attr: { title: displayName }"> <div class="dx-background-inheritor dxd-toolbox-item-back-color dxd-back-secondary"> <div class="dxrd-image-padding dx-fontsize-reestablished" data-bind="template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, css: $data.imageClassName, draggable: $root.toolboxDragHandler"> </div> </div> </div> <!-- /ko --> </div>',
|
|
2314
|
-
'dxrd-zoom-select-template': '<div class="dxrd-toolbar-item-zoom" data-bind="visible: visible"> <div class="dxrd-toolbar-item-zoom-editor" data-bind="dxSelectBox: { items: zoomLevels, value: $data.zoom, displayExpr: function(val) { return Math.round((val || this.option(\'value\')) * 100) + \'%\'; }, displayCustomValue: true, acceptCustomValue: true, onCustomItemCreating: onCustomItemCreating, disabled: disabled }"></div> </div>',
|
|
2310
|
+
'dxrd-zoom-select-template': '<div class="dxrd-toolbar-item-zoom" data-bind="visible: visible"> <div class="dxrd-toolbar-item-zoom-editor" data-bind="dxSelectBox: { items: zoomLevels, value: $data.zoom, displayExpr: function(val) { return Math.round((val || this.option(\'value\')) * 100) + \'%\'; }, displayCustomValue: true, acceptCustomValue: true, onCustomItemCreating: onCustomItemCreating, disabled: disabled, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> </div>',
|
|
2315
2311
|
'dxrd-bordereditor': '<div class="bordereditor-content"> <!-- ko with: value--> <div class="bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-none" data-bind="template: \'dxrd-svg-properties-borders-none\', css: { \'dxd-state-active\': (!bottom() && !left() && !top() && !right()), \'dxrd-disabled-button\': disabled }, click: function() { setNone() }"></div> <div class="bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-all right-margin" data-bind="template: \'dxrd-svg-properties-borders-all\', css: { \'dxd-state-active\': (bottom() && left() && top() && right()), \'dxrd-disabled-button\': disabled }, click: function() { setAll() }"></div> <div class="bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-left" data-bind="template: \'dxrd-svg-properties-borders-left\', css: { \'dxd-state-active\': left(), \'dxrd-disabled-button\': disabled }, click: function() { setValue(\'left\') }"></div> <div class="bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-top" data-bind="template: \'dxrd-svg-properties-borders-top\', css: { \'dxd-state-active\': top(), \'dxrd-disabled-button\': disabled }, click: function() { setValue(\'top\') }"></div> <div class="bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-right" data-bind="template: \'dxrd-svg-properties-borders-right\', css: { \'dxd-state-active\': right(), \'dxrd-disabled-button\': disabled }, click: function() { setValue(\'right\') }"></div> <div class="bordereditor-button dxd-button-back-color dxd-state-normal dxd-back-highlighted dxrd-image-borders-bottom" data-bind="template: \'dxrd-svg-properties-borders-bottom\', css: { \'dxd-state-active\': bottom(), \'dxrd-disabled-button\': disabled }, click: function() { setValue(\'bottom\') }"></div> <!-- /ko --></div>',
|
|
2316
2312
|
});
|
|
2317
2313
|
|
|
@@ -5551,7 +5547,10 @@ var DevExpress;
|
|
|
5551
5547
|
items.splice(dataObj[curItem.data.name] ? dataObj[curItem.data.name].index : -1, 0, curItem);
|
|
5552
5548
|
isMutated = true;
|
|
5553
5549
|
}
|
|
5554
|
-
|
|
5550
|
+
if (isMutated) {
|
|
5551
|
+
_this.items.valueHasMutated();
|
|
5552
|
+
_this._onItemsChanged();
|
|
5553
|
+
}
|
|
5555
5554
|
_this.items().forEach(function (item) {
|
|
5556
5555
|
if ((!_this.collapsed() || loadInnerItems) && item._treeListController.hasItems(item.data)) {
|
|
5557
5556
|
item._loadItems(options);
|
|
@@ -5579,6 +5578,7 @@ var DevExpress;
|
|
|
5579
5578
|
}));
|
|
5580
5579
|
return deferred.promise();
|
|
5581
5580
|
};
|
|
5581
|
+
TreeListItemViewModel.prototype._onItemsChanged = function () { };
|
|
5582
5582
|
TreeListItemViewModel.prototype._selectItem = function (itemPath) {
|
|
5583
5583
|
var _this = this;
|
|
5584
5584
|
if (!this.hasItems) {
|
|
@@ -5769,19 +5769,20 @@ var DevExpress;
|
|
|
5769
5769
|
Internal.TreeListItemViewModel = TreeListItemViewModel;
|
|
5770
5770
|
var TreeListRootItemViewModel = (function (_super) {
|
|
5771
5771
|
__extends(TreeListRootItemViewModel, _super);
|
|
5772
|
-
function TreeListRootItemViewModel(
|
|
5772
|
+
function TreeListRootItemViewModel(_options, path, onItemsVisibilityChanged, rtl) {
|
|
5773
5773
|
if (path === void 0) { path = []; }
|
|
5774
5774
|
if (onItemsVisibilityChanged === void 0) { onItemsVisibilityChanged = $.noop; }
|
|
5775
5775
|
if (rtl === void 0) { rtl = false; }
|
|
5776
|
-
var _this = _super.call(this,
|
|
5776
|
+
var _this = _super.call(this, _options, path, onItemsVisibilityChanged, rtl) || this;
|
|
5777
|
+
_this._options = _options;
|
|
5777
5778
|
_this._selectedPathSubscription = null;
|
|
5778
5779
|
_this.resolver.done(function () {
|
|
5779
5780
|
onItemsVisibilityChanged();
|
|
5780
5781
|
});
|
|
5781
|
-
_this._selectedPathSubscription =
|
|
5782
|
+
_this._selectedPathSubscription = _options.selectedPath.subscribe(function (newPath) {
|
|
5782
5783
|
_this._selectItem(!!_this.path ? newPath.substr(_this.path.length + 1) : newPath);
|
|
5783
5784
|
});
|
|
5784
|
-
_this._selectItem(!!_this.path ? _this.path + "." +
|
|
5785
|
+
_this._selectItem(!!_this.path ? _this.path + "." + _options.selectedPath() : _options.selectedPath());
|
|
5785
5786
|
return _this;
|
|
5786
5787
|
}
|
|
5787
5788
|
TreeListRootItemViewModel.prototype.dispose = function () {
|
|
@@ -5791,6 +5792,12 @@ var DevExpress;
|
|
|
5791
5792
|
this._selectedPathSubscription = null;
|
|
5792
5793
|
}
|
|
5793
5794
|
};
|
|
5795
|
+
TreeListRootItemViewModel.prototype._onItemsChanged = function () {
|
|
5796
|
+
if (this._options.expandRootItems)
|
|
5797
|
+
this.items().forEach(function (item) {
|
|
5798
|
+
item.collapsed(false);
|
|
5799
|
+
});
|
|
5800
|
+
};
|
|
5794
5801
|
return TreeListRootItemViewModel;
|
|
5795
5802
|
}(TreeListItemViewModel));
|
|
5796
5803
|
Internal.TreeListRootItemViewModel = TreeListRootItemViewModel;
|
|
@@ -6267,6 +6274,11 @@ var DevExpress;
|
|
|
6267
6274
|
CriteriaOperatorSurface.prototype.createChildSurface = function (item, path, actions) {
|
|
6268
6275
|
return new this.helper.mapper[item.type](item, this, this.fieldListProvider, path || this.path);
|
|
6269
6276
|
};
|
|
6277
|
+
CriteriaOperatorSurface.prototype.getDisplayType = function () {
|
|
6278
|
+
var _this = this;
|
|
6279
|
+
var item = this.items.filter(function (item) { return _this.operatorType() === item.value && _this.reverse === item.reverse && _this.model.enumType === item.type; })[0];
|
|
6280
|
+
return item && item.name && (item.displayText || DevExpress.Analytics.Utils.getLocalization(item.name, item.localizationId)) || this.operatorType && this.operatorType() || "";
|
|
6281
|
+
};
|
|
6270
6282
|
Object.defineProperty(CriteriaOperatorSurface.prototype, "items", {
|
|
6271
6283
|
get: function () {
|
|
6272
6284
|
return this.helper.filterEditorOperators[this.specifics()] || this.helper.filterEditorOperators._common;
|
|
@@ -6276,9 +6288,7 @@ var DevExpress;
|
|
|
6276
6288
|
});
|
|
6277
6289
|
Object.defineProperty(CriteriaOperatorSurface.prototype, "displayType", {
|
|
6278
6290
|
get: function () {
|
|
6279
|
-
|
|
6280
|
-
var item = this.items.filter(function (item) { return _this.operatorType() === item.value && _this.reverse === item.reverse && _this.model.enumType === item.type; })[0];
|
|
6281
|
-
return item && item.name && (item.displayText || DevExpress.Analytics.Utils.getLocalization(item.name, item.localizationId)) || this.operatorType && this.operatorType() || "";
|
|
6291
|
+
return this.getDisplayType();
|
|
6282
6292
|
},
|
|
6283
6293
|
enumerable: true,
|
|
6284
6294
|
configurable: true
|
|
@@ -8452,9 +8462,6 @@ var DevExpress;
|
|
|
8452
8462
|
return result;
|
|
8453
8463
|
});
|
|
8454
8464
|
treeListViewModel = new Internal.TreeListRootItemViewModel(options, pathArray, updateScrollBar, options.rtl);
|
|
8455
|
-
if (options.expandRootItems) {
|
|
8456
|
-
treeListViewModel.items().forEach(function (item) { return item.toggleCollapsed(); });
|
|
8457
|
-
}
|
|
8458
8465
|
var templateHtml = options.templateHtml || DevExpress.Analytics.Widgets.Internal.getTemplate('dx-treelist'), $element = $(element).html(templateHtml);
|
|
8459
8466
|
childContext = bindingContext.createChildContext(treeListViewModel);
|
|
8460
8467
|
ko.applyBindings(childContext, $element.children()[0]);
|
|
@@ -9799,7 +9806,7 @@ var DevExpress;
|
|
|
9799
9806
|
this._customEventRaiser(eventName, args);
|
|
9800
9807
|
return;
|
|
9801
9808
|
}
|
|
9802
|
-
this._options.callbacks && this._options.callbacks[eventName] && this._options.callbacks[eventName](this.sender, args);
|
|
9809
|
+
this._options && this._options.callbacks && this._options.callbacks[eventName] && this._options.callbacks[eventName](this.sender, args);
|
|
9803
9810
|
};
|
|
9804
9811
|
JSDesignerBindingCommon.prototype._getServerActionUrl = function (host, uri) {
|
|
9805
9812
|
return RequestHelper.generateUri(host, uri);
|
|
@@ -10605,16 +10612,12 @@ var DevExpress;
|
|
|
10605
10612
|
guid: { header: "dxrd-guid", editorType: Widgets.GuidEditor },
|
|
10606
10613
|
date: { header: "dx-date", editorType: Internal.RequiredNullableEditor },
|
|
10607
10614
|
borders: { header: "dxrd-borders" },
|
|
10608
|
-
controls: { header: "dxrd-controls" },
|
|
10609
10615
|
objecteditorCustom: { custom: "dxrd-objectEditorContent", editorType: Widgets.PropertyGridEditor },
|
|
10610
|
-
treelist: { custom: "dxrd-treelistContent", editorType: Widgets.Editor },
|
|
10611
10616
|
field: { header: "dxrd-field", editorType: FieldListEditor },
|
|
10612
10617
|
dataMember: { header: "dxrd-field", editorType: DataMemberEditor },
|
|
10613
10618
|
filterEditor: { header: "dxrd-filterstring" },
|
|
10614
10619
|
formatEditor: { header: "dxrd-formatstring" },
|
|
10615
10620
|
expressionEditor: { header: "dxrd-expressionstring" },
|
|
10616
|
-
multiValue: { header: "dxrd-multivalue" },
|
|
10617
|
-
multiValueEditable: { custom: "dxrd-multivalue-editable" },
|
|
10618
10621
|
customColorEditor: { header: "dxrd-colorpicker", editorType: ColorPickerEditor },
|
|
10619
10622
|
sbyte: Internal.createNumericEditor("System.SByte", "integer"),
|
|
10620
10623
|
decimal: Internal.createNumericEditor("System.Decimal", "float"),
|
|
@@ -11206,6 +11209,15 @@ var DevExpress;
|
|
|
11206
11209
|
return toolboxItems.sort(function (item1, item2) { return item1.index - item2.index; });
|
|
11207
11210
|
}
|
|
11208
11211
|
Internal.getToolboxItems = getToolboxItems;
|
|
11212
|
+
function blur(element) {
|
|
11213
|
+
try {
|
|
11214
|
+
element["blur"] && element["blur"]();
|
|
11215
|
+
}
|
|
11216
|
+
catch (e) {
|
|
11217
|
+
document.body.blur();
|
|
11218
|
+
}
|
|
11219
|
+
}
|
|
11220
|
+
Internal.blur = blur;
|
|
11209
11221
|
function guid() {
|
|
11210
11222
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
11211
11223
|
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
|
|
@@ -12149,8 +12161,16 @@ var DevExpress;
|
|
|
12149
12161
|
if (func) {
|
|
12150
12162
|
Internal._errorProcessor.handlers.push(func);
|
|
12151
12163
|
}
|
|
12164
|
+
return {
|
|
12165
|
+
dispose: function () {
|
|
12166
|
+
func && _removeErrorEvent(func);
|
|
12167
|
+
}
|
|
12168
|
+
};
|
|
12152
12169
|
}
|
|
12153
12170
|
Internal.processErrorEvent = processErrorEvent;
|
|
12171
|
+
function _removeErrorEvent(func) {
|
|
12172
|
+
Internal._errorProcessor.handlers.splice(Internal._errorProcessor.handlers.indexOf(func), 1);
|
|
12173
|
+
}
|
|
12154
12174
|
ko.bindingHandlers["resizable"] = {
|
|
12155
12175
|
init: function (element, valueAccessor, allBindings, viewModel, bindingContext) {
|
|
12156
12176
|
var values = valueAccessor(), $element = $(element), $parent = $element.closest(".dx-designer"), currentDirection = null, $selectedNodes = null, resizableDirections = { "north": "n", "east": "e", "south": "s", "west": "w" }, calculateSizes = [], absolutePosition = null;
|
|
@@ -12658,7 +12678,7 @@ var DevExpress;
|
|
|
12658
12678
|
SurfaceSelection.prototype._resetTabPanelFocus = function () {
|
|
12659
12679
|
var isTabPanelFocused = document.activeElement && $(document.activeElement).closest(".dxrd-surface").length === 0;
|
|
12660
12680
|
if (isTabPanelFocused) {
|
|
12661
|
-
|
|
12681
|
+
Internal.blur(document.activeElement);
|
|
12662
12682
|
}
|
|
12663
12683
|
};
|
|
12664
12684
|
Object.defineProperty(SurfaceSelection.prototype, "selectedItems", {
|
|
@@ -13803,11 +13823,12 @@ var DevExpress;
|
|
|
13803
13823
|
Internal.getErrorMessage = getErrorMessage;
|
|
13804
13824
|
function ShowMessage(msg, type, displayTime, debugInfo) {
|
|
13805
13825
|
if (type === void 0) { type = "error"; }
|
|
13826
|
+
var containerElement = $(".dx-designer-viewport")[0];
|
|
13806
13827
|
DevExpress.ui.notify({
|
|
13807
13828
|
message: msg,
|
|
13808
13829
|
type: type,
|
|
13809
|
-
position: { of: Internal.chooseBetterPositionOf(document.documentElement,
|
|
13810
|
-
|
|
13830
|
+
position: { of: Internal.chooseBetterPositionOf(document.documentElement, containerElement), my: "bottom", at: "bottom", offset: "0 -10" },
|
|
13831
|
+
container: containerElement,
|
|
13811
13832
|
closeOnOutsideClick: true,
|
|
13812
13833
|
closeOnSwipe: false,
|
|
13813
13834
|
displayTime: displayTime || (type === "error" ? 60000 : 3000)
|
|
@@ -13827,7 +13848,7 @@ var DevExpress;
|
|
|
13827
13848
|
result = val * 96 / 100;
|
|
13828
13849
|
}
|
|
13829
13850
|
result = result * (zoom);
|
|
13830
|
-
return Math.floor(result *
|
|
13851
|
+
return Math.floor(result * 10000) / 10000;
|
|
13831
13852
|
}
|
|
13832
13853
|
Internal.unitsToPixel = unitsToPixel;
|
|
13833
13854
|
function pixelToUnits(val, measureUnit, zoom) {
|
|
@@ -13842,7 +13863,7 @@ var DevExpress;
|
|
|
13842
13863
|
result = val / 96 * 100;
|
|
13843
13864
|
}
|
|
13844
13865
|
result = result / (zoom);
|
|
13845
|
-
return Math.
|
|
13866
|
+
return Math.round(result * 10000) / 10000;
|
|
13846
13867
|
}
|
|
13847
13868
|
Internal.pixelToUnits = pixelToUnits;
|
|
13848
13869
|
function createUnitProperty(model, target, propertyName, property, measureUnit, zoom, afterCreation) {
|