@sapui5/sap.zen.dsh 1.108.19 → 1.108.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.zen.dsh",
3
- "version": "1.108.19",
3
+ "version": "1.108.22",
4
4
  "description": "SAPUI5 Library sap.zen.dsh",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -7,7 +7,7 @@
7
7
  <vendor>SAP SE</vendor>
8
8
  <copyright>SAPUI5
9
9
  (c) Copyright 2009-2021 SAP SE. All rights reserved</copyright>
10
- <version>1.108.19</version>
10
+ <version>1.108.22</version>
11
11
  <documentation>Design Studio Runtime Library. Intended only to be used within S/4 HANA Fiori applications.</documentation>
12
12
  <appData>
13
13
  <jsdoc xmlns="http://www.sap.com/ui5/buildext/jsdoc" >
@@ -104,8 +104,8 @@ sap.ui.define(
104
104
  AnalyticGrid.prototype.init = function() {
105
105
  this.parameters = {};
106
106
 
107
- this.dshBaseUrl = URI(sap.ui.resource("sap.zen.dsh", "rt/")).relativeTo(document.baseURI).toString();
108
- this.repositoryUrl = URI(sap.ui.resource("sap.zen.dsh", "applications/")).relativeTo(document.baseURI).toString();
107
+ this.dshBaseUrl = URI(sap.ui.resource("sap.zen.dsh", "rt/")).absoluteTo(document.baseURI).toString();
108
+ this.repositoryUrl = URI(sap.ui.resource("sap.zen.dsh", "applications/")).absoluteTo(document.baseURI).toString();
109
109
 
110
110
  sap.zen.dsh.sapbi_page.staticMimeUrlPrefix = this.dshBaseUrl;
111
111
  };
@@ -198,7 +198,7 @@ sap.ui.define( "sap/zen/dsh/Dsh",
198
198
  this.parameters = {};
199
199
 
200
200
  this.dshBaseAppUrlBW = "/sap/bw/Mime";
201
- this.dshBaseUrl = URI(sap.ui.resource("sap.zen.dsh", "widgets/")).relativeTo(document.baseURI).toString();
201
+ this.dshBaseUrl = URI(sap.ui.resource("sap.zen.dsh", "widgets/")).absoluteTo(document.baseURI).toString();
202
202
  };
203
203
 
204
204
  /**
@@ -214,7 +214,7 @@ sap.ui.define( "sap/zen/dsh/Dsh",
214
214
  Dsh.prototype.doInit = function() {
215
215
  //0ANALYSIS will always come from our library for now. This will be cleaned up later.
216
216
  if (this.getDshAppName() === "0ANALYSIS" || this.getDshAppName() === "0ANALYTIC_GRID") {
217
- this.setRepoPath(URI(sap.ui.resource("sap.zen.dsh", "applications/")).relativeTo(document.baseURI).toString());
217
+ this.setRepoPath(URI(sap.ui.resource("sap.zen.dsh", "applications/")).absoluteTo(document.baseURI).toString());
218
218
  }
219
219
 
220
220
  if (this.getRepoPath() !== "") {
@@ -11664,24 +11664,24 @@ sap.zen.CharacteristicWrapper.prototype.getMemberFromListByFieldValue = function
11664
11664
  {
11665
11665
  continue;
11666
11666
  }
11667
- if (oFF.XString.isEqual(loInternalFieldValue.getString(), value))
11668
- {
11667
+ if (oFF.XString.isEqual(loInternalFieldValue.getString(), value)) {
11669
11668
  lFound = true;
11670
11669
  break;
11671
11670
  }
11672
- var lValueRespectingCase = value;
11673
- if (!loInternalDimension.supportsLowerCase() || loInternalFieldValue.getValueType() === oFF.XValueType.UPPER_CASE_STRING) {
11674
- lValueRespectingCase = oFF.XString.toUpperCase(value);
11675
- }
11676
- else if (loInternalFieldValue.getValueType() === oFF.XValueType.LOWER_CASE_STRING) {
11677
- lValueRespectingCase = oFF.XString.toLowerCase(value);
11678
- }
11679
- if (oFF.XString.isEqual(loInternalFieldValue.getString(), lValueRespectingCase)) {
11680
- lFound = true;
11681
- break;
11671
+ if (!oFF.isNull(loInternalFieldValue)) {
11672
+ var lValueRespectingCase = value;
11673
+ if (!loInternalDimension.supportsLowerCase() || loInternalFieldValue.getValueType() === oFF.XValueType.UPPER_CASE_STRING) {
11674
+ lValueRespectingCase = oFF.XString.toUpperCase(value);
11675
+ }
11676
+ else if (loInternalFieldValue.getValueType() === oFF.XValueType.LOWER_CASE_STRING) {
11677
+ lValueRespectingCase = oFF.XString.toLowerCase(value);
11678
+ }
11679
+ if (oFF.XString.isEqual(loInternalFieldValue.getString(), lValueRespectingCase)) {
11680
+ lFound = true;
11681
+ break;
11682
+ }
11682
11683
  }
11683
- if (oFF.XString.containsString(loInternalFieldValue.getString(), value))
11684
- {
11684
+ if (oFF.XString.containsString(loInternalFieldValue.getString(), value)) {
11685
11685
  ltMatchingDimensionMembers.add(loInternalDimensionMember);
11686
11686
  }
11687
11687
  }
@@ -35786,10 +35786,12 @@ sap.zen.Page.prototype.doExport = function(exportType, exportVersion)
35786
35786
  ltAxesProperties.put(loAxisPaging.getAxis(), ltAxisProperties);
35787
35787
  }
35788
35788
  ltResultSetPagingInfo.put(loResultSet, ltAxesProperties);
35789
+ // activate paging on row axis using defaultSize for package retrieval
35789
35790
  loAxisPaging = ltAxisPaging.getByKey(oFF.AxisType.ROWS.getName());
35790
35791
  loAxisPaging.setPagingMode(sap.zen.CResultSetPagingMode.ACTIVATE_PAGING.getBinaryValue(), sap.zen.ResultSetAxisPaging.OFFSET_DEFAULT, sap.zen.ResultSetAxisPaging.SIZE_DEFAULT);
35792
+ // need to Export all columns since column paging not supported by InA
35791
35793
  loAxisPaging = ltAxisPaging.getByKey(oFF.AxisType.COLUMNS.getName());
35792
- loAxisPaging.setPagingMode(0, sap.zen.ResultSetAxisPaging.OFFSET_DEFAULT, sap.zen.ResultSetAxisPaging.SIZE_DEFAULT);
35794
+ loAxisPaging.setPagingMode(0, sap.zen.ResultSetAxisPaging.OFFSET_DEFAULT, sap.zen.ResultSetAxisPaging.SIZE_ALL);
35793
35795
  if (!loResultSet.getServerPaging().getState().isTypeOf(oFF.SyncState.IN_SYNC))
35794
35796
  {
35795
35797
  loResultSet.synchronize(null, null, false);
@@ -31,7 +31,7 @@ sap.ui.define(
31
31
  * @alias sap.zen.dsh
32
32
  * @public
33
33
  * @author SAP SE
34
- * @version 1.108.19
34
+ * @version 1.108.22
35
35
  */
36
36
  var thisLib = sap.ui.getCore().initLibrary(
37
37
  {
@@ -56,7 +56,7 @@ sap.ui.define(
56
56
  ],
57
57
  elements: [],
58
58
  noLibraryCSS: true,
59
- version: "1.108.19"
59
+ version: "1.108.22"
60
60
  }
61
61
  );
62
62
 
@@ -26,21 +26,21 @@ sap.ui.define(
26
26
  "sap/ui/comp/util/FormatUtil",
27
27
  "sap/ui/core/format/DateFormat"
28
28
  ],
29
- function(
29
+ function (
30
30
  jQuery, JSONModel, VBox, Label, Token, Tokenizer, Button,
31
31
  Toolbar, SearchField, StandardListItem, SelectDialog, BusyIndicator,
32
32
  Sorter, Filter, BaseHandler, ValueHelpDialog, Empty, ValueHelpRangeOperation
33
33
  ) {
34
34
  "use strict";
35
35
  var dispatcher = BaseHandler.dispatcher;
36
- var FilterPanelHandler = function() {
36
+ var FilterPanelHandler = function () {
37
37
  BaseHandler.apply(this, arguments);
38
38
  var that = this;
39
39
  this.oClipboard = {};
40
40
  /**
41
41
  * Create the Control
42
42
  */
43
- this.create = function(oChainedControl, oControlProperties) {
43
+ this.create = function (oChainedControl, oControlProperties) {
44
44
  var lControlId = that.createUI5Identifier(oControlProperties["id"]);
45
45
  var loControl;
46
46
  var loJsonModel = new JSONModel();
@@ -48,7 +48,7 @@ sap.ui.define(
48
48
  var lIsMemberSelector = loJsonModel.getProperty("/property/memberselector") || loJsonModel.getProperty("/property/popupreference");
49
49
  if (lIsMemberSelector) {
50
50
  loControl = oChainedControl ? oChainedControl : new Empty(lControlId);
51
- loControl.onAfterRendering = function() {
51
+ loControl.onAfterRendering = function () {
52
52
  new Function(that.prepareCommand(loControl.getModel().getProperty("/command/showfilterdialog"), "__STRING__", loControl.getModel().getProperty("/characteristics/0/characteristic/name")))();
53
53
  loControl.onAfterRendering = undefined;
54
54
  };
@@ -72,13 +72,13 @@ sap.ui.define(
72
72
  loControl.ZEN_submit = this.submitExternal(loJsonModel, true);
73
73
  loControl.ZEN_submit_with_apply = this.submitExternal(loJsonModel, true, true);
74
74
  loControl.ZEN_check = this.submitExternal(loJsonModel, false);
75
- loControl.ZEN_cancel = function() {
75
+ loControl.ZEN_cancel = function () {
76
76
  new Function(loJsonModel.getProperty("/command/cancelonlyfilter"))();
77
77
  };
78
78
  }
79
79
 
80
80
  var loSuperExit = loControl.exit;
81
- loControl.exit = function() {
81
+ loControl.exit = function () {
82
82
  if (loSuperExit) {
83
83
  loSuperExit.apply(loControl, arguments);
84
84
  }
@@ -101,7 +101,7 @@ sap.ui.define(
101
101
  /**
102
102
  * Update the Control
103
103
  */
104
- this.update = function(oControl, oControlProperties, oComponentProperties) {
104
+ this.update = function (oControl, oControlProperties, oComponentProperties) {
105
105
  if (oControl && oControlProperties) {
106
106
  var lView = oControlProperties.view;
107
107
  if (this.isDesignModeD4LIncluded() || oControlProperties.newds) {
@@ -219,8 +219,8 @@ sap.ui.define(
219
219
  if (lHierarchical) {
220
220
  var ltMembers = loDialogProperties.members;
221
221
  if (ltMembers) {
222
- for (var i = 0; i === lMaxChildIndex+1; i++) {
223
- var loChild = ltMembers[""+i];
222
+ for (var i = 0; i === lMaxChildIndex + 1; i++) {
223
+ var loChild = ltMembers["" + i];
224
224
  if (!loChild) {
225
225
  continue;
226
226
  }
@@ -253,13 +253,13 @@ sap.ui.define(
253
253
  var loMember = oControlProperties.member;
254
254
  loMember.level = lParentLevel;
255
255
 
256
- for (i = 0; i === lMaxChildIndex+1; i++) {
257
- loChild = loMember[""+i];
256
+ for (i = 0; i === lMaxChildIndex + 1; i++) {
257
+ loChild = loMember["" + i];
258
258
  if (!loChild) {
259
259
  continue;
260
260
  }
261
261
 
262
- loChild.level = lParentLevel+1;
262
+ loChild.level = lParentLevel + 1;
263
263
  lMaxChildIndex = i;
264
264
  }
265
265
  loModel.setProperty(oControlProperties.path, oControlProperties.member);
@@ -285,7 +285,7 @@ sap.ui.define(
285
285
  /**
286
286
  * Add Items
287
287
  */
288
- this.addItems = function(oControl) {
288
+ this.addItems = function (oControl) {
289
289
  //if "/property/showembedded" is true, render as filter panel
290
290
  //if false as dimension filter
291
291
  var loModel = oControl.getModel();
@@ -296,10 +296,10 @@ sap.ui.define(
296
296
 
297
297
  var loSearchField = new SearchField(
298
298
  {
299
- liveChange: function(oEvent) {
299
+ liveChange: function (oEvent) {
300
300
  var lValue = oEvent.getParameter("newValue");
301
301
  var loFilter = new Filter(lNavigationMode ? "entry/text" : "characteristic/text", sap.ui.model.FilterOperator.Contains, lValue);
302
- var ltFilters = [ loFilter ];
302
+ var ltFilters = [loFilter];
303
303
  var ltVisiblePrompts = loModel.getProperty("/visibleprompts");
304
304
  if (ltVisiblePrompts) {
305
305
  ltFilters.push(getFilterForVisibleVariables(ltVisiblePrompts));
@@ -314,7 +314,7 @@ sap.ui.define(
314
314
  );
315
315
  var loSubHeader = new Toolbar(
316
316
  {
317
- content: [null,loSearchField]
317
+ content: [null, loSearchField]
318
318
  }
319
319
  );
320
320
  if (loModel.getProperty("/property/variablescreen") && loModel.getProperty("/visibleprompts")) {
@@ -328,7 +328,7 @@ sap.ui.define(
328
328
  /**
329
329
  * Get Main Item
330
330
  */
331
- this.getMainItem = function(oControl) {
331
+ this.getMainItem = function (oControl) {
332
332
  var loForm = new sap.ui.layout.form.Form({
333
333
  editable: true,
334
334
  formContainers: [this.getMainContent(oControl)],
@@ -347,7 +347,7 @@ sap.ui.define(
347
347
  /**
348
348
  * Get Main Content
349
349
  */
350
- this.getMainContent = function(oControl) {
350
+ this.getMainContent = function (oControl) {
351
351
  var loContent;
352
352
 
353
353
  var loModel = oControl.getModel();
@@ -366,10 +366,10 @@ sap.ui.define(
366
366
  /**
367
367
  * Get Form Container
368
368
  */
369
- this.getFormContainer = function(oControl, tFilters, axis) {
369
+ this.getFormContainer = function (oControl, tFilters, axis) {
370
370
  var loFormContainer = new sap.ui.layout.form.FormContainer({
371
371
  formElements: {
372
- path : "/characteristics",
372
+ path: "/characteristics",
373
373
  factory: this.getFromElementsFactory(oControl, axis),
374
374
  filters: tFilters
375
375
  }
@@ -381,8 +381,8 @@ sap.ui.define(
381
381
  /**
382
382
  * Get From Elements Factory
383
383
  */
384
- this.getFromElementsFactory = function(oControl, axis) {
385
- return function(sId, oContext) {
384
+ this.getFromElementsFactory = function (oControl, axis) {
385
+ return function (sId, oContext) {
386
386
  var loModel = oContext.getModel();
387
387
  var lCharName = loModel.getProperty(axis ? oContext.getPath("entry/name") : oContext.getPath("characteristic/name"));
388
388
  var lCharPath = axis ? getPathForCharName(loModel, lCharName) : oContext.getPath("characteristic");
@@ -402,26 +402,26 @@ sap.ui.define(
402
402
  var lsFormElementId;
403
403
  var lsFormElementIdLabel;
404
404
  if (loModel.getProperty("/property/variablescreen")) {
405
- lsFormElementId = oControl.getId() + "-" + that.createUI5Identifier(lCharName);
405
+ lsFormElementId = oControl.getId() + "-" + that.createUI5Identifier(lCharName);
406
406
  lsFormElementIdLabel = lsFormElementId + "-label";
407
407
  }
408
408
 
409
- if(loModel.getProperty("/property/label")) { //DimensionName
409
+ if (loModel.getProperty("/property/label")) { //DimensionName
410
410
  var loLabel = new Label(lsFormElementIdLabel).bindProperty("text", {
411
411
  path: lCharPath,
412
- formatter : function(oCharacteristic) {
412
+ formatter: function (oCharacteristic) {
413
413
  return oCharacteristic.text;
414
414
  }
415
415
  });
416
416
  loLabel.bindProperty("tooltip", {
417
417
  path: lCharPath,
418
- formatter : function(oCharacteristic) {
418
+ formatter: function (oCharacteristic) {
419
419
  return oCharacteristic.text;
420
420
  }
421
421
  });
422
422
  loLabel.bindProperty("required", {
423
423
  path: lCharPath,
424
- formatter : function(oCharacteristic) {
424
+ formatter: function (oCharacteristic) {
425
425
  return oCharacteristic.mandatory;
426
426
  }
427
427
  });
@@ -443,16 +443,16 @@ sap.ui.define(
443
443
  /**
444
444
  * Get Input Control
445
445
  */
446
- this.getInput = function(oModel, charName, charPath, oControl) {
446
+ this.getInput = function (oModel, charName, charPath, oControl) {
447
447
  var loChar = this.getCharacteristicByName(oModel, charName);
448
448
 
449
449
  // supported operations (not overridden)
450
450
  var lType = oModel.getProperty(charPath + "/type");
451
- var lHierarchical = oModel.getProperty(charPath +"/hierarchical");
452
- var lSupportsMultiSelection = oModel.getProperty(charPath +"/supportsMultiSelection");
451
+ var lHierarchical = oModel.getProperty(charPath + "/hierarchical");
452
+ var lSupportsMultiSelection = oModel.getProperty(charPath + "/supportsMultiSelection");
453
453
  var lSupportsInterval = oModel.getProperty(charPath + "/supportsInterval");
454
454
  var lSupportsRange = oModel.getProperty(charPath + "/supportsRange");
455
- var lSupportsExcluding = oModel.getProperty(charPath +"/supportsExcluding");
455
+ var lSupportsExcluding = oModel.getProperty(charPath + "/supportsExcluding");
456
456
  // display behavior (overridden for special cases)
457
457
  var lShowValueHelp = oModel.getProperty(charPath + "/showValueHelp");
458
458
  // required behavior (overrides support behavior)
@@ -460,7 +460,7 @@ sap.ui.define(
460
460
  var loInput, lInputId;
461
461
 
462
462
  if (oModel.getProperty("/property/variablescreen")) {
463
- lInputId = oControl.getId() + "-" + that.createUI5Identifier(charName) + "-input";
463
+ lInputId = oControl.getId() + "-" + that.createUI5Identifier(charName) + "-input";
464
464
  }
465
465
 
466
466
  if ((lType === "DATE" && !lSupportsMultiSelection && !lSupportsExcluding && !lSupportsRange && !lHierarchical) || (lType === "TIME" && !lSupportsMultiSelection && !lSupportsInterval)) {
@@ -468,12 +468,12 @@ sap.ui.define(
468
468
  loInput = new sap.m.DateRangeSelection(lInputId, {
469
469
  dateValue: {
470
470
  path: "/filters",
471
- mode : sap.ui.model.BindingMode.OneWay,
471
+ mode: sap.ui.model.BindingMode.OneWay,
472
472
  formatter: this.getFilterFormatter(charName, lType, oModel, "from")
473
473
  },
474
474
  secondDateValue: {
475
475
  path: "/filters",
476
- mode : sap.ui.model.BindingMode.OneWay,
476
+ mode: sap.ui.model.BindingMode.OneWay,
477
477
  formatter: this.getFilterFormatter(charName, lType, oModel, "to")
478
478
  },
479
479
  change: function (e) {
@@ -504,7 +504,7 @@ sap.ui.define(
504
504
  valueFormat: "yyyyMMdd",
505
505
  dateValue: {
506
506
  path: "/filters",
507
- mode : sap.ui.model.BindingMode.OneWay,
507
+ mode: sap.ui.model.BindingMode.OneWay,
508
508
  formatter: this.getFilterFormatter(charName, lType, oModel, "from")
509
509
  },
510
510
  change: function (e) {
@@ -528,12 +528,12 @@ sap.ui.define(
528
528
  }
529
529
  }
530
530
  });
531
- } else if (lType === "TIME"){
531
+ } else if (lType === "TIME") {
532
532
  loInput = new sap.m.TimePicker(lInputId, {
533
533
  valueFormat: "HH:mm:ss",
534
534
  dateValue: {
535
535
  path: "/filters",
536
- mode : sap.ui.model.BindingMode.OneWay,
536
+ mode: sap.ui.model.BindingMode.OneWay,
537
537
  formatter: this.getFilterFormatter(charName, lType, oModel, "from")
538
538
  },
539
539
  change: function (e) {
@@ -564,20 +564,20 @@ sap.ui.define(
564
564
  showValueHelp: lShowValueHelp ? true : false,
565
565
  enableMultiLineMode: {
566
566
  path: "/filters",
567
- mode : sap.ui.model.BindingMode.OneWay,
567
+ mode: sap.ui.model.BindingMode.OneWay,
568
568
  formatter: this.applyFilterToTokens(oControl, oModel, charName)
569
569
  },
570
570
 
571
571
  // apply Token to Model
572
- tokenUpdate: function(e) {
572
+ tokenUpdate: function (e) {
573
573
  if (e.getParameter("type") === sap.m.MultiInput.TokenChangeType.Removed) {
574
574
  var ltRemovedTokens = e.getParameter("removedTokens");
575
575
 
576
576
  // remove Removed Tokens from Token List
577
577
  var ltTokens = loInput.getTokens().filter(
578
- function(loInputToken) {
578
+ function (loInputToken) {
579
579
  return ltRemovedTokens.every(
580
- function(oRemovedToken) {
580
+ function (oRemovedToken) {
581
581
  return oRemovedToken !== loInputToken;
582
582
  });
583
583
  });
@@ -616,9 +616,9 @@ sap.ui.define(
616
616
  that.clearClipboard(charName);
617
617
  // remove Added Tokens from Token List
618
618
  ltTokens = loInput.getTokens().filter(
619
- function(loInputToken) {
619
+ function (loInputToken) {
620
620
  return ltAddedTokens.every(
621
- function(oAddedToken) {
621
+ function (oAddedToken) {
622
622
  return oAddedToken !== loInputToken;
623
623
  });
624
624
  });
@@ -634,7 +634,7 @@ sap.ui.define(
634
634
 
635
635
  // validate input
636
636
  loInput.addValidator(
637
- function(e) {
637
+ function (e) {
638
638
  // create Dummy Token for validation confirmation
639
639
  var loToken = new Token(
640
640
  {
@@ -648,7 +648,7 @@ sap.ui.define(
648
648
  );
649
649
  var loTokenizer = loInput.getAggregation("tokenizer");
650
650
  // overwrite copy
651
- loTokenizer._copy = function() {
651
+ loTokenizer._copy = function () {
652
652
  if (Tokenizer.prototype._copy) {
653
653
  Tokenizer.prototype._copy.apply(this, arguments);
654
654
  }
@@ -656,7 +656,7 @@ sap.ui.define(
656
656
  };
657
657
  }
658
658
  if (lShowValueHelp && loInput.attachValueHelpRequest) {
659
- var loFunctionValueHelp = function() {
659
+ var loFunctionValueHelp = function () {
660
660
  BusyIndicator.show(0);
661
661
  new Function(that.prepareCommand(oModel.getProperty("/command/showfilterdialog"), "__STRING__", charName))();
662
662
  };
@@ -664,13 +664,13 @@ sap.ui.define(
664
664
  }
665
665
 
666
666
  loInput.addEventDelegate({
667
- onfocusin:function() {
667
+ onfocusin: function () {
668
668
  oControl.$().css("z-index", "1");
669
669
  },
670
- onfocusout:function() {
670
+ onfocusout: function () {
671
671
  oControl.$().css("z-index", "");
672
672
  },
673
- oncopy: function() {
673
+ oncopy: function () {
674
674
 
675
675
  }
676
676
  });
@@ -683,7 +683,7 @@ sap.ui.define(
683
683
  /**
684
684
  * Add Tokens to Clipboard
685
685
  */
686
- this.addTokensToClipboard = function(charName, tTokens) {
686
+ this.addTokensToClipboard = function (charName, tTokens) {
687
687
  if (!this.oClipboard[charName]) {
688
688
  this.oClipboard[charName] = [];
689
689
  }
@@ -702,22 +702,22 @@ sap.ui.define(
702
702
  /**
703
703
  * Get Tokens from Clipboard
704
704
  */
705
- this.getTokensFromClipboard = function(charName) {
705
+ this.getTokensFromClipboard = function (charName) {
706
706
  return this.oClipboard[charName];
707
707
  };
708
708
 
709
709
  /**
710
710
  * Clear Clipboard
711
711
  */
712
- this.clearClipboard = function(charName) {
712
+ this.clearClipboard = function (charName) {
713
713
  this.oClipboard[charName] = [];
714
714
  };
715
715
 
716
716
  /**
717
717
  * Get Filter Formatter (handling of Date and Time)
718
718
  */
719
- this.getFilterFormatter = function(charName, type, oModel, fromTo) {
720
- return function(oFilters) {
719
+ this.getFilterFormatter = function (charName, type, oModel, fromTo) {
720
+ return function (oFilters) {
721
721
  if (oFilters && charName && oFilters[charName]) {
722
722
  var loCharFilter = oFilters[charName];
723
723
  if (loCharFilter.ranges) {
@@ -741,22 +741,22 @@ sap.ui.define(
741
741
  /**
742
742
  * Get Data Format Instance
743
743
  */
744
- this.getDateFormat = function() {
745
- return sap.ui.core.format.DateFormat.getInstance({pattern: "yyyyMMdd", strictParsing: true});
744
+ this.getDateFormat = function () {
745
+ return sap.ui.core.format.DateFormat.getInstance({ pattern: "yyyyMMdd", strictParsing: true });
746
746
  };
747
747
 
748
748
  /**
749
749
  * Get Time Format Instance
750
750
  */
751
- this.getTimeFormat = function() {
752
- return sap.ui.core.format.DateFormat.getTimeInstance({pattern: "HH:mm:ss", strictParsing: true});
751
+ this.getTimeFormat = function () {
752
+ return sap.ui.core.format.DateFormat.getTimeInstance({ pattern: "HH:mm:ss", strictParsing: true });
753
753
  };
754
754
 
755
755
  /**
756
756
  * Transfer Filter to Tokens
757
757
  */
758
- this.applyFilterToTokens = function(oControl, oModel, charName) {
759
- return function(oAllFilters) {
758
+ this.applyFilterToTokens = function (oControl, oModel, charName) {
759
+ return function (oAllFilters) {
760
760
  // Handle Filter Dialog Destroy for FilterBar
761
761
  if (oControl.ZEN_multiInput[0].getId() !== this.getId()) {
762
762
  oControl.ZEN_multiInput[0] = this;
@@ -795,7 +795,7 @@ sap.ui.define(
795
795
  /**
796
796
  * Transfer Tokens to Filter
797
797
  */
798
- this.applyTokensToFilter = function(oModel, charName, tTokens, displayKey) {
798
+ this.applyTokensToFilter = function (oModel, charName, tTokens, displayKey) {
799
799
  var loChar = this.getCharacteristicByName(oModel, charName);
800
800
 
801
801
  var ltAllFilters = oModel.getProperty("/filters");
@@ -845,7 +845,7 @@ sap.ui.define(
845
845
  /**
846
846
  * Create Token From Range
847
847
  */
848
- this.createTokenFromRange = function(oModel, charName, oChar, oRange) {
848
+ this.createTokenFromRange = function (oModel, charName, oChar, oRange) {
849
849
  if (!oRange || !oRange.from) {
850
850
  return null;
851
851
  }
@@ -940,8 +940,8 @@ sap.ui.define(
940
940
  lTextTo = lKeyTo;
941
941
  }
942
942
  } else {
943
- lKeyTo = "";
944
- lTextTo = "";
943
+ lKeyTo = undefined;
944
+ lTextTo = undefined;
945
945
  }
946
946
 
947
947
  // prepare Token
@@ -988,7 +988,7 @@ sap.ui.define(
988
988
 
989
989
  return loToken;
990
990
  };
991
- this.copyToken = function(oToken) {
991
+ this.copyToken = function (oToken) {
992
992
  if (!oToken) {
993
993
  return null;
994
994
  }
@@ -1002,7 +1002,7 @@ sap.ui.define(
1002
1002
  loToken.data(oToken.data());
1003
1003
  return loToken;
1004
1004
  };
1005
- this.createRangeFromToken = function(oModel, charName, oChar, oToken) {
1005
+ this.createRangeFromToken = function (oModel, charName, oChar, oToken) {
1006
1006
  if (!oToken) {
1007
1007
  return null;
1008
1008
  }
@@ -1048,12 +1048,18 @@ sap.ui.define(
1048
1048
  if (oChar.type === "DATE") {
1049
1049
  // Token has the correct internal value - Backend requires simple formatted value (DisplayKey Backend)
1050
1050
  loFormat = this.getDateFormat();
1051
+ if (!lKeyFrom.getDate) {
1052
+ lKeyFrom = loFormat.parse(lKeyFrom);
1053
+ }
1051
1054
  if (lKeyFrom.getDate) {
1052
1055
  lKeyFrom = loFormat.format(lKeyFrom); // internal > external (DisplayKey Backend)
1053
1056
  }
1054
1057
  } else if (oChar.type === "TIME") {
1055
1058
  // Token has the correct internal value - Backend requires simple formatted value (DisplayKey Backend)
1056
1059
  loFormat = this.getTimeFormat();
1060
+ if (!lKeyFrom.getTime) {
1061
+ lKeyFrom = loFormat.parse(lKeyFrom);
1062
+ }
1057
1063
  if (lKeyFrom.getTime) {
1058
1064
  lKeyFrom = loFormat.format(lKeyFrom); // internal > external (DisplayKey Backend)
1059
1065
  }
@@ -1067,6 +1073,9 @@ sap.ui.define(
1067
1073
  if (!loFormat) {
1068
1074
  loFormat = this.getDateFormat();
1069
1075
  }
1076
+ if (!lKeyTo.getDate) {
1077
+ lKeyTo = loFormat.parse(lKeyTo);
1078
+ }
1070
1079
  if (lKeyTo.getDate) {
1071
1080
  lKeyTo = loFormat.format(lKeyTo); // internal > external (DisplayKey Backend)
1072
1081
  }
@@ -1075,6 +1084,9 @@ sap.ui.define(
1075
1084
  if (!loFormat) {
1076
1085
  loFormat = this.getTimeFormat();
1077
1086
  }
1087
+ if (!lKeyTo.getTime) {
1088
+ lKeyTo = loFormat.parse(lKeyTo);
1089
+ }
1078
1090
  if (lKeyTo.getTime) {
1079
1091
  lKeyTo = loFormat.format(lKeyTo); // internal > external (DisplayKey Backend)
1080
1092
  }
@@ -1088,7 +1100,7 @@ sap.ui.define(
1088
1100
  /**
1089
1101
  * Create Range
1090
1102
  */
1091
- this.createRange = function(exclude, operation, keyFrom, textFrom, keyTo, textTo) {
1103
+ this.createRange = function (exclude, operation, keyFrom, textFrom, keyTo, textTo) {
1092
1104
  if (keyFrom === null || keyFrom === undefined) {
1093
1105
  return null;
1094
1106
  }
@@ -1125,7 +1137,7 @@ sap.ui.define(
1125
1137
  /**
1126
1138
  * Check if Range is a Range Definition
1127
1139
  */
1128
- this.isRangeARangeDefinition = function(oRange) {
1140
+ this.isRangeARangeDefinition = function (oRange) {
1129
1141
  var lIsRange = true;
1130
1142
  if (!oRange.exclude && (!oRange.operation || oRange.operation === sap.zen.dsh.ValueHelpRangeOperation.EQ)) {
1131
1143
  lIsRange = false;
@@ -1136,8 +1148,8 @@ sap.ui.define(
1136
1148
  /**
1137
1149
  * Submit Model to Backend
1138
1150
  */
1139
- this.submitExternal = function(oModel, submit, executeOnApply) {
1140
- return function(sToReplace, sLongReplaceTarget) {
1151
+ this.submitExternal = function (oModel, submit, executeOnApply) {
1152
+ return function (sToReplace, sLongReplaceTarget) {
1141
1153
  return that.submitAll(oModel, submit, executeOnApply, sToReplace, sLongReplaceTarget);
1142
1154
  };
1143
1155
  };
@@ -1145,7 +1157,7 @@ sap.ui.define(
1145
1157
  /**
1146
1158
  * Submit Model to Backend
1147
1159
  */
1148
- this.submitAll = function(oModel, submit, executeOnApply, sToReplace, sLongReplaceTarget) {
1160
+ this.submitAll = function (oModel, submit, executeOnApply, sToReplace, sLongReplaceTarget) {
1149
1161
  var ltFilters = [];
1150
1162
 
1151
1163
  var ltModelFilters = oModel.getProperty("/filters");
@@ -1241,8 +1253,8 @@ sap.ui.define(
1241
1253
  }
1242
1254
 
1243
1255
  var loSubmitJson = {
1244
- filters : ltFilters,
1245
- axis : loAxis
1256
+ filters: ltFilters,
1257
+ axis: loAxis
1246
1258
  };
1247
1259
 
1248
1260
  if (sToReplace && sLongReplaceTarget) {
@@ -1261,7 +1273,7 @@ sap.ui.define(
1261
1273
  /**
1262
1274
  * Create the ValueHelp Dialog for a Characteristic
1263
1275
  */
1264
- this.getValueHelpDialog = function(oControl) {
1276
+ this.getValueHelpDialog = function (oControl) {
1265
1277
  var loModel = oControl.getModel();
1266
1278
  var lCharName = loModel.getProperty("/dialog/name");
1267
1279
  var lDestroyFilterDialogCmd = loModel.getProperty("/command/destroyfilterdialog");
@@ -1296,7 +1308,7 @@ sap.ui.define(
1296
1308
  key: "key",
1297
1309
  descriptionKey: lCompound ? "" : "text",
1298
1310
 
1299
- ok: function(e) {
1311
+ ok: function (e) {
1300
1312
  var ltTokens = e.getParameter("tokens");
1301
1313
  that.applyTokensToFilter(loModel, lCharName, ltTokens, false);
1302
1314
  oControl.zenValueHelpDialog = null;
@@ -1304,13 +1316,13 @@ sap.ui.define(
1304
1316
  loValueHelpDialog.close();
1305
1317
  },
1306
1318
 
1307
- cancel: function() {
1319
+ cancel: function () {
1308
1320
  oControl.zenValueHelpDialog = null;
1309
1321
  new Function(that.prepareCommand(lDestroyFilterDialogCmd, "__BOOLEAN__", "X"))();
1310
1322
  loValueHelpDialog.close();
1311
1323
  },
1312
1324
 
1313
- afterClose: function() {
1325
+ afterClose: function () {
1314
1326
  if (oControl.zenValueHelpDialog) {
1315
1327
  oControl.zenValueHelpDialog = null;
1316
1328
  new Function(that.prepareCommand(lDestroyFilterDialogCmd, "__BOOLEAN__", "X"))();
@@ -1327,10 +1339,10 @@ sap.ui.define(
1327
1339
  var getValueHelpMetadata = loValueHelpDialog.getMetadata;
1328
1340
  var loValueHelpDialogPrototype = Object.getPrototypeOf(loValueHelpDialog);
1329
1341
  if (loValueHelpDialogPrototype) {
1330
- loValueHelpDialogPrototype.getMetadata = function() {
1342
+ loValueHelpDialogPrototype.getMetadata = function () {
1331
1343
  var metadata = getValueHelpMetadata();
1332
- Object.assign(metadata, {_sClassName: "sap.ui.comp.valuehelpdialog.ValueHelpDialog"});
1333
- metadata.getName = function() { return "sap.ui.comp.valuehelpdialog.ValueHelpDialog"; };
1344
+ Object.assign(metadata, { _sClassName: "sap.ui.comp.valuehelpdialog.ValueHelpDialog" });
1345
+ metadata.getName = function () { return "sap.ui.comp.valuehelpdialog.ValueHelpDialog"; };
1334
1346
  return metadata;
1335
1347
  };
1336
1348
  }
@@ -1415,7 +1427,7 @@ sap.ui.define(
1415
1427
  var loTable = loValueHelpDialog.getTable();
1416
1428
  if (lHierarchical && loTable.attachToggleOpenState) {
1417
1429
  var lDialogUpdate;
1418
- loTable.attachToggleOpenState(function(e) {
1430
+ loTable.attachToggleOpenState(function (e) {
1419
1431
  var loParams = e.getParameters();
1420
1432
  loValueHelpDialog._bIgnoreSelectionChange = true;
1421
1433
  if (loParams.expanded) {
@@ -1423,9 +1435,7 @@ sap.ui.define(
1423
1435
  var loModel = loBindingContext.oModel;
1424
1436
  if (loModel.getProperty(loBindingContext.sPath + "/0/node")) {
1425
1437
  var lMethod = that.prepareCommand(
1426
- loModel
1427
- .getProperty("/command/expandnode"), "__STRING__", loModel
1428
- .getProperty(loBindingContext.sPath + "/key")
1438
+ loModel.getProperty("/command/expandnode"), "__STRING__", loModel.getProperty(loBindingContext.sPath + "/key")
1429
1439
  );
1430
1440
  lMethod = that.prepareCommand(
1431
1441
  lMethod, "__STRING2__",
@@ -1439,7 +1449,7 @@ sap.ui.define(
1439
1449
  });
1440
1450
 
1441
1451
  var lFuncOnClick = loTable.onclick;
1442
- loTable.onclick = function() {
1452
+ loTable.onclick = function () {
1443
1453
  if (lFuncOnClick) {
1444
1454
  lFuncOnClick.apply(loTable, arguments);
1445
1455
  }
@@ -1517,7 +1527,7 @@ sap.ui.define(
1517
1527
  }
1518
1528
  });
1519
1529
 
1520
- loValueHelpDialog.attachSelectionChange(function(e) {
1530
+ loValueHelpDialog.attachSelectionChange(function (e) {
1521
1531
  // collect all the new selected or removed items
1522
1532
  var loRowsBinding = loTable.getBinding("rows");
1523
1533
 
@@ -1571,33 +1581,33 @@ sap.ui.define(
1571
1581
  if (lMemberDisplay === "KEY") {
1572
1582
  loColModel.setData({
1573
1583
  cols: [
1574
- {label: loModel.getProperty("/text/key"), template: "displaykey"}
1584
+ { label: loModel.getProperty("/text/key"), template: "displaykey" }
1575
1585
  ]
1576
1586
  });
1577
1587
  } else if (lMemberDisplay === "TEXT") {
1578
1588
  loColModel.setData({
1579
1589
  cols: [
1580
- {label: loModel.getProperty("/text/text"), template: "text"}
1590
+ { label: loModel.getProperty("/text/text"), template: "text" }
1581
1591
  ]
1582
1592
  });
1583
1593
  } else if (lMemberDisplay === "KEY_TEXT") {
1584
1594
  loColModel.setData({
1585
1595
  cols: [
1586
- {label: loModel.getProperty("/text/key"), template: "displaykey"},
1587
- {label: loModel.getProperty("/text/text"), template: "text"}
1596
+ { label: loModel.getProperty("/text/key"), template: "displaykey" },
1597
+ { label: loModel.getProperty("/text/text"), template: "text" }
1588
1598
  ]
1589
1599
  });
1590
1600
  } else if (lMemberDisplay === "TEXT_KEY") {
1591
1601
  loColModel.setData({
1592
1602
  cols: [
1593
- {label: loModel.getProperty("/text/text"), template: "text"},
1594
- {label: loModel.getProperty("/text/key"), template: "displaykey"}
1603
+ { label: loModel.getProperty("/text/text"), template: "text" },
1604
+ { label: loModel.getProperty("/text/key"), template: "displaykey" }
1595
1605
  ]
1596
1606
  });
1597
1607
  }
1598
1608
  loTable.setModel(loColModel, "columns");
1599
1609
 
1600
- var loRangeKeyField = {label: loModel.getProperty("/text/key"), key: "key"};
1610
+ var loRangeKeyField = { label: loModel.getProperty("/text/key"), key: "key" };
1601
1611
  if ((lRangesVisible || lSupportsExcluding)) {
1602
1612
  if (lType === "DATE") {
1603
1613
  loRangeKeyField.type = "date";
@@ -1618,15 +1628,16 @@ sap.ui.define(
1618
1628
  var loSearchField = new sap.m.SearchField(
1619
1629
  {
1620
1630
  width: "95%",
1621
- placeholder:"{/text/search}"}
1631
+ placeholder: "{/text/search}"
1632
+ }
1622
1633
  );
1623
1634
 
1624
1635
  var ltMembers;
1625
1636
  if (lHierarchical) {
1626
1637
  ltMembers = loModel.getProperty("/dialog/members");
1627
1638
  if (ltMembers) {
1628
- for (var i = 0; i === lMaxChildIndex+1; i++) {
1629
- var loChild = ltMembers[""+i];
1639
+ for (var i = 0; i === lMaxChildIndex + 1; i++) {
1640
+ var loChild = ltMembers["" + i];
1630
1641
  if (!loChild) {
1631
1642
  continue;
1632
1643
  }
@@ -1641,7 +1652,7 @@ sap.ui.define(
1641
1652
  loSearchField.setBusyIndicatorDelay(0);
1642
1653
  loValueHelpDialog.TableStateSearchData();
1643
1654
  loSearchField.attachSearch(
1644
- function(e) {
1655
+ function (e) {
1645
1656
  loSearchField.setBusy(true);
1646
1657
  loValueHelpDialog.TableStateDataSearching();
1647
1658
  var lValue = e.getParameters().query;
@@ -1678,9 +1689,9 @@ sap.ui.define(
1678
1689
  }
1679
1690
 
1680
1691
  loSearchField.setShowSearchButton(false);
1681
- loSearchField.attachLiveChange(function(e) {
1692
+ loSearchField.attachLiveChange(function (e) {
1682
1693
  var loValue1 = e.getParameters().newValue ? e.getParameters().newValue.toUpperCase() : "";
1683
- var ltCharsToEscape = [ "\\\\", "\\^", "\\$", "\\+", "\\.", "\\(", "\\)", "\\[", "\\]", "\\{", "\\}" ];
1694
+ var ltCharsToEscape = ["\\\\", "\\^", "\\$", "\\+", "\\.", "\\(", "\\)", "\\[", "\\]", "\\{", "\\}"];
1684
1695
 
1685
1696
  for (var i = 0; i < ltCharsToEscape.length; i++) {
1686
1697
  var lChar = ltCharsToEscape[i];
@@ -1693,13 +1704,13 @@ sap.ui.define(
1693
1704
 
1694
1705
  loValue1 = loValue1.replace(/\?/g, ".").replace(/\*/g, ".*?");
1695
1706
  var loFilter = new sap.ui.model.Filter("searchstring", "Wildcard", loValue1);
1696
- loFilter.fnTest = function(value) {
1707
+ loFilter.fnTest = function (value) {
1697
1708
  return value.search(new RegExp(loValue1)) !== -1;
1698
1709
  };
1699
1710
  if (!loModel.getProperty("/dialog/selection/maxelements")
1700
- && !loModel.getProperty("/dialog/hierarchical")) {
1711
+ && !loModel.getProperty("/dialog/hierarchical")) {
1701
1712
  loValueHelpDialog._bIgnoreSelectionChange = true;
1702
- loValueHelpDialog.getTable().getBinding("rows").filter([ loFilter ]);
1713
+ loValueHelpDialog.getTable().getBinding("rows").filter([loFilter]);
1703
1714
  loValueHelpDialog._bIgnoreSelectionChange = false;
1704
1715
  loValueHelpDialog.update();
1705
1716
  }
@@ -1714,7 +1725,7 @@ sap.ui.define(
1714
1725
  /**
1715
1726
  * Get MemberDispay Mode
1716
1727
  */
1717
- this.getValueHelpDialogMemberDisplay = function(memberDisplay) {
1728
+ this.getValueHelpDialogMemberDisplay = function (memberDisplay) {
1718
1729
  switch (memberDisplay) {
1719
1730
  case "TEXT_KEY":
1720
1731
  return "descriptionAndId";
@@ -1735,9 +1746,9 @@ sap.ui.define(
1735
1746
  /**
1736
1747
  * get the Technical Name of a Variable
1737
1748
  */
1738
- this.getVariableTechnicalName = function(varName) {
1749
+ this.getVariableTechnicalName = function (varName) {
1739
1750
  //this technical name recognition works only in S4 mode!!!
1740
- return varName.substring(varName.indexOf(":")+1, varName.length);
1751
+ return varName.substring(varName.indexOf(":") + 1, varName.length);
1741
1752
  };
1742
1753
  function getSettingsButton(oControl, oSearchField) {
1743
1754
  var loModel = oControl.getModel();
@@ -1747,14 +1758,14 @@ sap.ui.define(
1747
1758
  press: function () {
1748
1759
  var loDialog = new SelectDialog(
1749
1760
  {
1750
- items:{
1751
- path: "/characteristics",
1761
+ items: {
1762
+ path: "/characteristics",
1752
1763
  template: new StandardListItem(
1753
1764
  {
1754
1765
  title: "{characteristic/text}",
1755
1766
  selected: {
1756
1767
  path: "/visibleprompts",
1757
- formatter: function(tVisiblePrompts) {
1768
+ formatter: function (tVisiblePrompts) {
1758
1769
  var lVarTechName = that.getVariableTechnicalName(this.getBindingContext().getProperty("characteristic/name"));
1759
1770
  for (var i = 0; i < tVisiblePrompts.length; i++) {
1760
1771
  if (tVisiblePrompts[i] === lVarTechName) {
@@ -1776,18 +1787,18 @@ sap.ui.define(
1776
1787
  //0 === always all of them.
1777
1788
  growingThreshold: 0,
1778
1789
  multiSelect: true,
1779
- liveChange: function(oEvent) {
1790
+ liveChange: function (oEvent) {
1780
1791
  var loFilter = new sap.ui.model.Filter(
1781
1792
  "characteristic/text",
1782
1793
  sap.ui.model.FilterOperator.Contains,
1783
1794
  oEvent.getParameter("value")
1784
1795
  );
1785
- oEvent.getParameter("itemsBinding").filter([ getFilterExcludeMandatory(), loFilter ]);
1796
+ oEvent.getParameter("itemsBinding").filter([getFilterExcludeMandatory(), loFilter]);
1786
1797
  },
1787
- cancel: function() {
1798
+ cancel: function () {
1788
1799
  loDialog.destroy();
1789
1800
  },
1790
- confirm: function(oEvent) {
1801
+ confirm: function (oEvent) {
1791
1802
  var ltVisiblePrompts = [];
1792
1803
  var ltSelectedContexts = oEvent.getParameter("selectedContexts");
1793
1804
  for (var i = 0; i < ltSelectedContexts.length; i++) {
@@ -1796,7 +1807,7 @@ sap.ui.define(
1796
1807
  continue;
1797
1808
  }
1798
1809
  var lVarName = loSelectedContext.getProperty("characteristic/name");
1799
- var lVarTechName = lVarName.substring(lVarName.indexOf(":")+1, lVarName.length);
1810
+ var lVarTechName = lVarName.substring(lVarName.indexOf(":") + 1, lVarName.length);
1800
1811
  ltVisiblePrompts.push(lVarTechName);
1801
1812
  }
1802
1813
  loModel.setProperty("/visibleprompts", ltVisiblePrompts);
@@ -1814,7 +1825,7 @@ sap.ui.define(
1814
1825
  function getFilterExcludeMandatory() {
1815
1826
  return new sap.ui.model.Filter({
1816
1827
  path: "characteristic",
1817
- test: function(oVar) {
1828
+ test: function (oVar) {
1818
1829
  return oVar.mandatory ? false : true;
1819
1830
  }
1820
1831
  });
@@ -1822,7 +1833,7 @@ sap.ui.define(
1822
1833
  function getFilterForVisibleVariables(tVisiblePrompts) {
1823
1834
  return new sap.ui.model.Filter({
1824
1835
  path: "characteristic",
1825
- test: function(oVar) {
1836
+ test: function (oVar) {
1826
1837
  if (oVar.mandatory) {
1827
1838
  return true;
1828
1839
  }
@@ -1846,7 +1857,7 @@ sap.ui.define(
1846
1857
  }
1847
1858
 
1848
1859
  if (loCharacteristic.name === charName) {
1849
- return "/characteristics/"+i+"/characteristic";
1860
+ return "/characteristics/" + i + "/characteristic";
1850
1861
  }
1851
1862
  }
1852
1863
  }
@@ -1882,18 +1893,18 @@ sap.ui.define(
1882
1893
  }
1883
1894
  return true;
1884
1895
  }
1885
- this.isDesignModeD4LIncluded = function(){
1896
+ this.isDesignModeD4LIncluded = function () {
1886
1897
  return sap.zen.designmode;
1887
1898
  };
1888
1899
  function forceModelUpdate(oModel, path) {
1889
1900
  var ltBindings = oModel.aBindings.slice(0);
1890
- jQuery.each(ltBindings, function(index, oBinding) {
1901
+ jQuery.each(ltBindings, function (index, oBinding) {
1891
1902
  if (oBinding.sPath === path) {
1892
1903
  oBinding.checkUpdate(true);
1893
1904
  }
1894
1905
  });
1895
1906
  }
1896
- this.getCharacteristicByName = function(oModel, charName) {
1907
+ this.getCharacteristicByName = function (oModel, charName) {
1897
1908
  var ltChars = oModel.getProperty("/characteristics");
1898
1909
  for (var i = 0; i < ltChars.length; i++) {
1899
1910
  var loChar = ltChars[i].characteristic;
@@ -1906,7 +1917,7 @@ sap.ui.define(
1906
1917
  }
1907
1918
  return null;
1908
1919
  };
1909
- this.getContextMenuAction = function(sContextMenuComponentId, oClickedUI5Component, oDomClickedElement) {
1920
+ this.getContextMenuAction = function (sContextMenuComponentId, oClickedUI5Component, oDomClickedElement) {
1910
1921
  var lCommand = oClickedUI5Component.getModel().getProperty("/command/createcontextmenu");
1911
1922
  if (lCommand && oClickedUI5Component.ZEN_IdToDimensionMap) {
1912
1923
  var loListItem = this.getListItemElement(oDomClickedElement);
@@ -1924,17 +1935,17 @@ sap.ui.define(
1924
1935
  }
1925
1936
  return null;
1926
1937
  };
1927
- this.getListItemElement = function(oDom) {
1938
+ this.getListItemElement = function (oDom) {
1928
1939
  if (oDom.hasClass("sapzenfilterpanelM-ListItem")) {
1929
1940
  return oDom;
1930
1941
  } else {
1931
1942
  return oDom.parents(".sapzenfilterpanelM-ListItem");
1932
1943
  }
1933
1944
  };
1934
- this.getType = function() {
1945
+ this.getType = function () {
1935
1946
  return "filter";
1936
1947
  };
1937
- this.getDecorator = function() {
1948
+ this.getDecorator = function () {
1938
1949
  return "DataSourceControlDecorator";
1939
1950
  };
1940
1951
  };