@magic-xpa/angular 4.801.0-dev481.241 → 4.801.0-dev481.245

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('util'), require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('ng-dynamic-component'), require('rxjs'), require('@magic-xpa/engine'), require('@magic-xpa/gui'), require('@magic-xpa/utils'), require('rxjs/operators'), require('@magic-xpa/mscorelib'), require('@angular/platform-browser'), require('rxjs/internal/observable/fromEvent'), require('@angular/common/http'), require('@angular/material/core'), require('@angular/cdk/platform')) :
3
- typeof define === 'function' && define.amd ? define('@magic-xpa/angular', ['exports', 'util', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'ng-dynamic-component', 'rxjs', '@magic-xpa/engine', '@magic-xpa/gui', '@magic-xpa/utils', 'rxjs/operators', '@magic-xpa/mscorelib', '@angular/platform-browser', 'rxjs/internal/observable/fromEvent', '@angular/common/http', '@angular/material/core', '@angular/cdk/platform'], factory) :
4
- (global = global || self, factory((global['magic-xpa'] = global['magic-xpa'] || {}, global['magic-xpa'].angular = {}), global.util, global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global.i3, global.rxjs, global.engine, global.gui, global.utils$1, global.rxjs.operators, global.mscorelib, global.ng.platformBrowser, global.rxjs['internal/observable/fromEvent'], global.ng.common.http, global.ng.material.core, global.ng.cdk.platform));
5
- }(this, (function (exports, util, i0, i1, i2, forms, i3, rxjs, engine, gui, utils$1, operators, mscorelib, i1$1, fromEvent, i5, core, i1$2) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@magic-xpa/mscorelib'), require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('ng-dynamic-component'), require('rxjs'), require('@magic-xpa/engine'), require('@magic-xpa/gui'), require('@magic-xpa/utils'), require('rxjs/operators'), require('@angular/platform-browser'), require('rxjs/internal/observable/fromEvent'), require('@angular/common/http'), require('@angular/material/core'), require('@angular/cdk/platform')) :
3
+ typeof define === 'function' && define.amd ? define('@magic-xpa/angular', ['exports', '@magic-xpa/mscorelib', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'ng-dynamic-component', 'rxjs', '@magic-xpa/engine', '@magic-xpa/gui', '@magic-xpa/utils', 'rxjs/operators', '@angular/platform-browser', 'rxjs/internal/observable/fromEvent', '@angular/common/http', '@angular/material/core', '@angular/cdk/platform'], factory) :
4
+ (global = global || self, factory((global['magic-xpa'] = global['magic-xpa'] || {}, global['magic-xpa'].angular = {}), global.mscorelib, global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global.i3, global.rxjs, global.engine, global.gui, global.utils$1, global.rxjs.operators, global.ng.platformBrowser, global.rxjs['internal/observable/fromEvent'], global.ng.common.http, global.ng.material.core, global.ng.cdk.platform));
5
+ }(this, (function (exports, mscorelib, i0, i1, i2, forms, i3, rxjs, engine, gui, utils$1, operators, i1$1, fromEvent, i5, core, i1$2) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -403,7 +403,7 @@
403
403
  };
404
404
  Records.prototype.isRowCreated = function (guiRowId) {
405
405
  if (guiRowId < this.list.length) {
406
- if (!this.data.has(guiRowId) || util.isNullOrUndefined(this.data.get(guiRowId)))
406
+ if (!this.data.has(guiRowId) || mscorelib.isNullOrUndefined(this.data.get(guiRowId)))
407
407
  return false;
408
408
  else
409
409
  return this.data.get(guiRowId).isCreated;
@@ -420,7 +420,7 @@
420
420
  };
421
421
  Records.prototype.isRowInRowEditing = function (guiRowId) {
422
422
  if (+guiRowId < this.list.length) {
423
- if (!this.data.has(+guiRowId) || util.isNullOrUndefined(this.data.get(+guiRowId)))
423
+ if (!this.data.has(+guiRowId) || mscorelib.isNullOrUndefined(this.data.get(+guiRowId)))
424
424
  return false;
425
425
  else
426
426
  return this.data.get(+guiRowId).isEditing;
@@ -475,7 +475,7 @@
475
475
  }
476
476
  };
477
477
  Records.prototype.addRow = function (guiRowId) {
478
- if (guiRowId !== 0 || !this.data.has(guiRowId) || util.isNullOrUndefined(this.data.get(guiRowId))) {
478
+ if (guiRowId !== 0 || !this.data.has(guiRowId) || mscorelib.isNullOrUndefined(this.data.get(guiRowId))) {
479
479
  this.data.set(guiRowId, new ControlsMetadata());
480
480
  this.data.get(guiRowId).rowId = "" + guiRowId;
481
481
  this.list[guiRowId] = this.data.get(guiRowId);
@@ -645,7 +645,7 @@
645
645
  }
646
646
  StylesMapManager.magicValueGetStyle = function (styleName, magicValue) {
647
647
  var style = "";
648
- if (!util.isNullOrUndefined(magicValue)) {
648
+ if (!mscorelib.isNullOrUndefined(magicValue)) {
649
649
  var value = StylesMapManager.StylesMap.get(styleName);
650
650
  if (value.constructor === Map) {
651
651
  style = value.get(magicValue);
@@ -725,7 +725,7 @@
725
725
  };
726
726
  RouterCommandsMagicService.prototype.ExecuteNextCommand = function () {
727
727
  var pendingRouteCommand = this.pendingRouteCommands.shift();
728
- if (!util.isNullOrUndefined(pendingRouteCommand)) {
728
+ if (!mscorelib.isNullOrUndefined(pendingRouteCommand)) {
729
729
  pendingRouteCommand.callerMgSubformServiceRef.ExecuteRouteCommand(pendingRouteCommand);
730
730
  }
731
731
  };
@@ -781,7 +781,7 @@
781
781
  var _this = this;
782
782
  this.pendingCommandsCollector.startCollecting();
783
783
  var refreshNeeded = false;
784
- if (util.isNullOrUndefined(routerPath)) {
784
+ if (mscorelib.isNullOrUndefined(routerPath)) {
785
785
  if (Object.keys(this.subformsDict).indexOf(subformControlName) >= 0) {
786
786
  if (this.subformsDict[subformControlName].formName === formName) {
787
787
  this.subformsDict[subformControlName] = {};
@@ -1062,7 +1062,7 @@
1062
1062
  var guiRowId = this.task.getGuiRowId(+this.command._line, this.task.isTableControl(this.command.controlName) || this.command._obj2.IsTableChild);
1063
1063
  var result = this.task.getFormControl(guiRowId.toString(), this.command.controlName);
1064
1064
  var val;
1065
- if (!util.isNullOrUndefined(result)) {
1065
+ if (!mscorelib.isNullOrUndefined(result)) {
1066
1066
  val = result.value;
1067
1067
  }
1068
1068
  else if (this.task.isTableControl(this.command.controlName))
@@ -1099,7 +1099,7 @@
1099
1099
  var dvRowIndex = this.command._intVal1;
1100
1100
  var guiRowIndex = this.task.getGuiRowId(dvRowIndex, true);
1101
1101
  var isLineMode = this.command._boolVal;
1102
- if (isLineMode && (util.isNullOrUndefined(guiRowIndex) || util.isNullOrUndefined(this.task.Records.list[guiRowIndex])))
1102
+ if (isLineMode && (mscorelib.isNullOrUndefined(guiRowIndex) || mscorelib.isNullOrUndefined(this.task.Records.list[guiRowIndex])))
1103
1103
  this.command._boolVal = false;
1104
1104
  else
1105
1105
  this.command._boolVal = this.task.Records.list[guiRowIndex].isEditing;
@@ -1212,7 +1212,7 @@
1212
1212
  function MagicViewContainerRef(vcRef, resolver) {
1213
1213
  this.vcRef = vcRef;
1214
1214
  this.resolver = resolver;
1215
- var comp = (this.vcRef._hostView).find(function (v) { return v != null && !util.isNullOrUndefined(v.setViewContainerRef); });
1215
+ var comp = (this.vcRef._hostView).find(function (v) { return v != null && !mscorelib.isNullOrUndefined(v.setViewContainerRef); });
1216
1216
  comp.setViewContainerRef(vcRef);
1217
1217
  }
1218
1218
  return MagicViewContainerRef;
@@ -1262,7 +1262,7 @@
1262
1262
  };
1263
1263
  MagicOverlayContainerWrapper.prototype.loadComponent = function (moduleRef) {
1264
1264
  var _this = this;
1265
- this.Parameters.ModalComp = this.componentListMagicService.getComponent(this.Parameters.MagicFormName, !util.isNullOrUndefined(this.Parameters.MagicFormName));
1265
+ this.Parameters.ModalComp = this.componentListMagicService.getComponent(this.Parameters.MagicFormName, !mscorelib.isNullOrUndefined(this.Parameters.MagicFormName));
1266
1266
  var factory;
1267
1267
  if (moduleRef != null)
1268
1268
  factory = moduleRef.componentFactoryResolver.resolveComponentFactory(this.Component);
@@ -1460,8 +1460,8 @@
1460
1460
  var styles = {};
1461
1461
  if (this.componentRef != undefined) {
1462
1462
  var comp = this.componentRef.instance;
1463
- var headerHeight = this.getShowTitleBar() && !util.isNullOrUndefined(this.headerElementRef) ? (this.headerElementRef.nativeElement.offsetHeight + 1) : 0;
1464
- if (!util.isNullOrUndefined(this.foregroundElementRef)) {
1463
+ var headerHeight = this.getShowTitleBar() && !mscorelib.isNullOrUndefined(this.headerElementRef) ? (this.headerElementRef.nativeElement.offsetHeight + 1) : 0;
1464
+ if (!mscorelib.isNullOrUndefined(this.foregroundElementRef)) {
1465
1465
  var foregroundHeight = this.foregroundElementRef.nativeElement.offsetHeight;
1466
1466
  styles['height'] = (foregroundHeight - headerHeight) + "px";
1467
1467
  var foregroundWidth = this.foregroundElementRef.nativeElement.offsetWidth;
@@ -1835,7 +1835,7 @@
1835
1835
  };
1836
1836
  ;
1837
1837
  OverlayWindowFocusManager.prototype.isFocusable = function (element) {
1838
- if (util.isNullOrUndefined(element))
1838
+ if (mscorelib.isNullOrUndefined(element))
1839
1839
  return false;
1840
1840
  if (element.tabIndex > 0 || (element.tabIndex === 0 && element.getAttribute('tabIndex') !== null)) {
1841
1841
  return true;
@@ -1939,7 +1939,7 @@
1939
1939
  TaskMagicService.prototype.getFormControl = function (guiRowid, id) {
1940
1940
  var c;
1941
1941
  var group = this.isTableControl(id) ? this.formGroups[guiRowid] : this.ScreenModeControls;
1942
- if (!util.isNullOrUndefined(group)) {
1942
+ if (!mscorelib.isNullOrUndefined(group)) {
1943
1943
  group.get(id);
1944
1944
  c = group.controls[id];
1945
1945
  }
@@ -1948,7 +1948,7 @@
1948
1948
  TaskMagicService.prototype.setInputTextValue = function (controlId, guiRowid, val) {
1949
1949
  this.setValue(controlId, guiRowid, this.ConvertValToNative(controlId, 0, val));
1950
1950
  var fc = this.getFormControl(guiRowid, controlId);
1951
- if (!util.isNullOrUndefined(val))
1951
+ if (!mscorelib.isNullOrUndefined(val))
1952
1952
  fc.setValue(val);
1953
1953
  };
1954
1954
  TaskMagicService.prototype.buildTableRowControls = function (guiRowId) {
@@ -2007,9 +2007,9 @@
2007
2007
  this.settemplate(taskDescription);
2008
2008
  }
2009
2009
  this.buildScreenModeControls();
2010
- if (!util.isNullOrUndefined(this.subscribeRefreshDom))
2010
+ if (!mscorelib.isNullOrUndefined(this.subscribeRefreshDom))
2011
2011
  this.subscribeRefreshDom.unsubscribe();
2012
- if (!util.isNullOrUndefined(this.subscribeInteractiveCommands))
2012
+ if (!mscorelib.isNullOrUndefined(this.subscribeInteractiveCommands))
2013
2013
  this.subscribeInteractiveCommands.unsubscribe();
2014
2014
  this.subscribeRefreshDom = this.magic.refreshDom.pipe(operators.filter(function (command) { return command.TaskTag === _this.taskId; }))
2015
2015
  .subscribe(function (command) {
@@ -2041,13 +2041,13 @@
2041
2041
  return this.magic.GetFldRanges(this.taskId, controlName);
2042
2042
  };
2043
2043
  TaskMagicService.prototype.getProperty = function (controlId, prop, guiRowId) {
2044
- if (util.isNullOrUndefined(guiRowId))
2044
+ if (mscorelib.isNullOrUndefined(guiRowId))
2045
2045
  guiRowId = '0';
2046
2046
  if (this.IsStub())
2047
2047
  return this.getPropertyStub(this.Records.list[guiRowId], controlId, prop);
2048
2048
  else {
2049
2049
  var rec = this.Records.list[guiRowId];
2050
- if (util.isNullOrUndefined(rec))
2050
+ if (mscorelib.isNullOrUndefined(rec))
2051
2051
  debugger;
2052
2052
  else
2053
2053
  return this.Records.list[guiRowId].getProperty(controlId, prop);
@@ -2067,12 +2067,12 @@
2067
2067
  return ControlsProperties[controlId].stylesMap.get(styleName);
2068
2068
  };
2069
2069
  TaskMagicService.prototype.getClasses = function (controlId, guiRowId) {
2070
- if (util.isNullOrUndefined(guiRowId))
2070
+ if (mscorelib.isNullOrUndefined(guiRowId))
2071
2071
  guiRowId = '0';
2072
2072
  return this.Records.list[guiRowId].getControlMetadata(controlId).classes;
2073
2073
  };
2074
2074
  TaskMagicService.prototype.getStyle = function (controlId, styleName, guiRowId) {
2075
- if (util.isNullOrUndefined(guiRowId))
2075
+ if (mscorelib.isNullOrUndefined(guiRowId))
2076
2076
  guiRowId = '0';
2077
2077
  if (this.IsStub())
2078
2078
  return this.getStyleStub(this.Records.list[guiRowId], controlId, styleName);
@@ -2082,7 +2082,7 @@
2082
2082
  }
2083
2083
  };
2084
2084
  TaskMagicService.prototype.getValue = function (controlId, guiRowId) {
2085
- if (util.isNullOrUndefined(guiRowId))
2085
+ if (mscorelib.isNullOrUndefined(guiRowId))
2086
2086
  guiRowId = '0';
2087
2087
  return this.Records.list.length > +guiRowId ? this.Records.list[guiRowId].values[controlId] : '';
2088
2088
  };
@@ -2112,7 +2112,7 @@
2112
2112
  }
2113
2113
  else if (command.Operation === gui.HtmlProperties.Enabled) {
2114
2114
  var c = this.getFormControl(guiRowId.toString(), controlId);
2115
- if (!util.isNullOrUndefined(c)) {
2115
+ if (!mscorelib.isNullOrUndefined(c)) {
2116
2116
  if (command.obj1)
2117
2117
  c.enable();
2118
2118
  else
@@ -2146,7 +2146,7 @@
2146
2146
  this.refreshView();
2147
2147
  break;
2148
2148
  case gui.CommandType.SET_TABLE_ITEMS_COUNT:
2149
- if (!util.isUndefined(command.number)) {
2149
+ if (!mscorelib.isUndefined(command.number)) {
2150
2150
  this.tableService.updateTableSize(command.number);
2151
2151
  if (command.number > 0 && this.Records.sizeUpdated &&
2152
2152
  !this.Records.isEmptyDataView) {
@@ -2221,7 +2221,7 @@
2221
2221
  case gui.CommandType.SET_VALUE:
2222
2222
  this.Records.list[guiRowId].values[controlId] = command.value;
2223
2223
  var c = this.getFormControl(guiRowId.toString(), controlId);
2224
- if (!util.isNullOrUndefined(c)) {
2224
+ if (!mscorelib.isNullOrUndefined(c)) {
2225
2225
  c.setValue(this.ConvertValFromNative(controlId, command.line, command.value));
2226
2226
  }
2227
2227
  break;
@@ -2391,7 +2391,7 @@
2391
2391
  guiEvent.Value = event;
2392
2392
  }
2393
2393
  else {
2394
- if (!util.isNullOrUndefined(event.target)) {
2394
+ if (!mscorelib.isNullOrUndefined(event.target)) {
2395
2395
  var indexes = new Array(event.target.selectedOptions.length);
2396
2396
  for (var i = 0; i < event.target.selectedOptions.length; i++) {
2397
2397
  indexes[i] = event.target.selectedOptions[i].index;
@@ -2406,14 +2406,14 @@
2406
2406
  TaskMagicService.prototype.onListBoxSelectionChanged = function (event, idx) {
2407
2407
  var guiEvent = engine.getGuiEventObj('selectionchanged', idx, 0);
2408
2408
  var selectedOptions;
2409
- if (!util.isNullOrUndefined(event.target))
2409
+ if (!mscorelib.isNullOrUndefined(event.target))
2410
2410
  selectedOptions = event.target.selectedOptions;
2411
2411
  else
2412
2412
  selectedOptions = event.source.selectedOptions.selected;
2413
2413
  var length = selectedOptions.length;
2414
2414
  var indexes = new Array(length);
2415
2415
  for (var i = 0; i < length; i++) {
2416
- if (!util.isNullOrUndefined(event.target))
2416
+ if (!mscorelib.isNullOrUndefined(event.target))
2417
2417
  indexes[i] = (selectedOptions[i]).index;
2418
2418
  else
2419
2419
  indexes[i] = (selectedOptions[i]).value;
@@ -2617,7 +2617,7 @@
2617
2617
  };
2618
2618
  AccessorMagicService.prototype.isImageExists = function (controlId, rowId) {
2619
2619
  var result = this.task.getProperty(controlId, gui.HtmlProperties.Image, rowId);
2620
- return !util.isNullOrUndefined(result);
2620
+ return !mscorelib.isNullOrUndefined(result);
2621
2621
  };
2622
2622
  AccessorMagicService.prototype.getClasses = function (controlId, rowId) {
2623
2623
  return this.task.getClasses(controlId, rowId);
@@ -2631,7 +2631,7 @@
2631
2631
  return vis ? 'visible' : 'hidden';
2632
2632
  };
2633
2633
  AccessorMagicService.prototype.getNumericPicture = function (picture) {
2634
- if (util.isNullOrUndefined(picture))
2634
+ if (mscorelib.isNullOrUndefined(picture))
2635
2635
  return null;
2636
2636
  var pic = new gui.PIC(picture, utils$1.StorageAttribute.NUMERIC, 0);
2637
2637
  var obj = {};
@@ -2702,7 +2702,7 @@
2702
2702
  return val;
2703
2703
  };
2704
2704
  AccessorMagicService.prototype.getPicture = function (controlId, rowId) {
2705
- if (util.isNullOrUndefined(controlId))
2705
+ if (mscorelib.isNullOrUndefined(controlId))
2706
2706
  return null;
2707
2707
  var pic = this.task.GetControlPictureMask(controlId);
2708
2708
  return (pic != null) ? pic.getFormat().toString() : null;
@@ -2718,10 +2718,10 @@
2718
2718
  };
2719
2719
  AccessorMagicService.prototype.getCustomProperty_1 = function (controlId, propertyName, rowId) {
2720
2720
  var userProperties;
2721
- if (util.isNullOrUndefined(rowId))
2721
+ if (mscorelib.isNullOrUndefined(rowId))
2722
2722
  rowId = '0';
2723
2723
  var rec = this.task.Records.list[rowId];
2724
- if (util.isNullOrUndefined(rec))
2724
+ if (mscorelib.isNullOrUndefined(rec))
2725
2725
  debugger;
2726
2726
  else {
2727
2727
  var controlMetadata = rec.getControlMetadata(controlId);
@@ -2735,7 +2735,7 @@
2735
2735
  return this.getProperty(id, gui.HtmlProperties.ItemsList, rowId);
2736
2736
  };
2737
2737
  AccessorMagicService.prototype.getFilteredList = function (controlId, rowId) {
2738
- if (util.isNullOrUndefined(rowId))
2738
+ if (mscorelib.isNullOrUndefined(rowId))
2739
2739
  rowId = '0';
2740
2740
  var items = this.getItemListValues(controlId, rowId);
2741
2741
  var value = this.task.getFormControl(rowId, controlId).value;
@@ -2750,7 +2750,7 @@
2750
2750
  var displayValue = "";
2751
2751
  var o = this.getProperty(id, gui.HtmlProperties.ItemsList, rowId);
2752
2752
  var value = this.task.getValue(id, rowId);
2753
- if (value >= 0 && value < o.length && !util.isNullOrUndefined(o[value]))
2753
+ if (value >= 0 && value < o.length && !mscorelib.isNullOrUndefined(o[value]))
2754
2754
  displayValue = o[value].displayValue;
2755
2755
  return displayValue;
2756
2756
  };
@@ -2790,7 +2790,7 @@
2790
2790
  return false;
2791
2791
  var rowId = typeof row == "number" ? row.toString() : row.rowId;
2792
2792
  var result = this.getFormGroupByRow(rowId);
2793
- return !util.isNullOrUndefined(result);
2793
+ return !mscorelib.isNullOrUndefined(result);
2794
2794
  };
2795
2795
  AccessorMagicService.prototype.getFormGroupByRow = function (id) {
2796
2796
  return this.task.formGroups[id];
@@ -2866,7 +2866,7 @@
2866
2866
  var _this = this;
2867
2867
  var rowId = 0;
2868
2868
  var recArray;
2869
- if (!util.isNullOrUndefined(this.task.Records) && this.task.Records.list.length > 0) {
2869
+ if (!mscorelib.isNullOrUndefined(this.task.Records) && this.task.Records.list.length > 0) {
2870
2870
  var recList = this.task.Records.list;
2871
2871
  var tableControls_1 = new Array();
2872
2872
  for (var key in this.task.template) {
@@ -3195,7 +3195,7 @@
3195
3195
  line = this.task.getGuiRowId(line, true);
3196
3196
  return (command.CtrlName === this.id &&
3197
3197
  (line === +this.rowId ||
3198
- (line === 0 && util.isNullOrUndefined(this.rowId))));
3198
+ (line === 0 && mscorelib.isNullOrUndefined(this.rowId))));
3199
3199
  };
3200
3200
  MagicDirective.prototype.IsSameComponent = function (command) {
3201
3201
  return (command.controlName === this.id);
@@ -3206,7 +3206,7 @@
3206
3206
  .refreshDom.pipe(operators.filter(function (c) { return _this.IsSameElement(c); }))
3207
3207
  .subscribe(function (a) {
3208
3208
  var command = a;
3209
- if (util.isNullOrUndefined(_this.rowId))
3209
+ if (mscorelib.isNullOrUndefined(_this.rowId))
3210
3210
  _this.rowId = '0';
3211
3211
  try {
3212
3212
  if (!_this.eventsOnlyVal)
@@ -3247,7 +3247,7 @@
3247
3247
  var magicComponent = (this.vcRef._hostView).find(function (v) { return v instanceof TaskBaseMagicComponent; });
3248
3248
  var resultString = '';
3249
3249
  try {
3250
- if (!util.isNullOrUndefined(magicComponent[methodName])) {
3250
+ if (!mscorelib.isNullOrUndefined(magicComponent[methodName])) {
3251
3251
  resultString = magicComponent[methodName].apply(magicComponent, args);
3252
3252
  }
3253
3253
  else
@@ -3520,7 +3520,7 @@
3520
3520
  var mask = this._task.GetControlPictureMask(controlId).getMask();
3521
3521
  var formatStr = null;
3522
3522
  var mgDateFormatter = new MgDateFormatter();
3523
- if (!util.isNullOrUndefined(value) && mask !== null) {
3523
+ if (!mscorelib.isNullOrUndefined(value) && mask !== null) {
3524
3524
  formatStr = mgDateFormatter.ConvertMgDateFormatToAngular(mask);
3525
3525
  if (formatStr != null && this._task.isTableControl(controlId)) {
3526
3526
  if (this._task.mgInputDateFormat == null)
@@ -3952,7 +3952,7 @@
3952
3952
  this.vcRef = vcRef;
3953
3953
  this.mgSub = mgSub;
3954
3954
  this.component = null;
3955
- this.component = (this.vcRef._hostView).find(function (v) { return !util.isNullOrUndefined(v); });
3955
+ this.component = (this.vcRef._hostView).find(function (v) { return !mscorelib.isNullOrUndefined(v); });
3956
3956
  }
3957
3957
  Object.defineProperty(SubformMagicComponent.prototype, "magic", {
3958
3958
  set: function (val) { this.id = val; },
@@ -4072,7 +4072,7 @@
4072
4072
  };
4073
4073
  ErrorMagicComponent.prototype.HasErrors = function (id) {
4074
4074
  var e_1, _a;
4075
- if (!util.isUndefined(id)) {
4075
+ if (!mscorelib.isUndefined(id)) {
4076
4076
  var control = this._task.getFormControl(this.rowId, id);
4077
4077
  if (control !== null) {
4078
4078
  if (control.dirty && (control.hasError('pattern') || control.hasError('required') ||