unifyedx-storybook-new 0.2.90 → 0.2.92

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.
@@ -13622,12 +13622,7 @@ var rd = (
13622
13622
  return a;
13623
13623
  }, s.prototype.crudActions = function(t) {
13624
13624
  var e = this.generateQuery(), i = null, r = "promise", n = this.getKey(t.foreignKeyData && Object.keys(t.foreignKeyData).length ? t.foreignKeyData : this.parent.getPrimaryKeyFieldNames());
13625
- switch (this.parent.dataSource && "result" in this.parent.dataSource && this.eventPromise(t, e, n), t.requestType) {
13626
- case "save":
13627
- i = this.dataManager.update(n, t.data, e.fromTable, e, t.previousData);
13628
- break;
13629
- }
13630
- t["" + r] = i || t["" + r], this.parent.notify(KC, t);
13625
+ this.parent.dataSource && "result" in this.parent.dataSource && this.eventPromise(t, e, n), t.requestType === "save" && (i = this.dataManager.update(n, t.data, e.fromTable, e, t.previousData)), t["" + r] = i || t["" + r], this.parent.notify(KC, t);
13631
13626
  }, s.prototype.saveChanges = function(t, e, i, r) {
13632
13627
  if (r === void 0 && (r = this.generateQuery()), r.requiresCount(), "result" in this.parent.dataSource) {
13633
13628
  var n = new Ei(), a = {
@@ -36572,14 +36567,10 @@ var AD = /* @__PURE__ */ (function() {
36572
36567
  eventName: "keydown"
36573
36568
  }), this.inputElement && (this.showClearButton || this.enableMask) && y.add(this.inputElement, "mousedown", this.mouseDownHandler, this));
36574
36569
  }, t.prototype.keydownHandler = function(e) {
36575
- switch (e.code) {
36576
- case "Delete":
36577
- this.enableMask && !this.popupObj && !this.readonly && this.notify("keyDownHandler", {
36578
- module: "MaskedDateTime",
36579
- e
36580
- });
36581
- break;
36582
- }
36570
+ e.code === "Delete" && this.enableMask && !this.popupObj && !this.readonly && this.notify("keyDownHandler", {
36571
+ module: "MaskedDateTime",
36572
+ e
36573
+ });
36583
36574
  }, t.prototype.keyupHandler = function(e) {
36584
36575
  (e.code === "Backspace" || e.code === "Delete") && this.enableMask && this.showClearButton && this.inputElement && this.inputElement.value === this.maskedDateValue && this.inputWrapper && this.inputWrapper.clearButton && !this.inputWrapper.clearButton.classList.contains("e-clear-icon-hide") && this.inputWrapper.clearButton.classList.add("e-clear-icon-hide");
36585
36576
  }, t.prototype.formResetHandler = function() {
@@ -37661,11 +37652,7 @@ var PN = /* @__PURE__ */ (function() {
37661
37652
  break;
37662
37653
  }
37663
37654
  }, t.prototype.inputKeyAction = function(e) {
37664
- switch (e.action) {
37665
- case "altDownArrow":
37666
- this.strictModeUpdate(), this.updateInput(), this.toggle(e);
37667
- break;
37668
- }
37655
+ e.action === "altDownArrow" && (this.strictModeUpdate(), this.updateInput(), this.toggle(e));
37669
37656
  }, t.prototype.onPropertyChanged = function(e, i) {
37670
37657
  for (var r = 0, n = Object.keys(e); r < n.length; r++) {
37671
37658
  var a = n[r], o = ["blur", "change", "cleared", "close", "created", "destroyed", "focus", "navigated", "open", "renderDayCell"];
@@ -45227,20 +45214,15 @@ var Dm = (
45227
45214
  return t.image !== null && t.image !== void 0 && (e.image = t.image), t.row !== null && t.row !== void 0 && (e.row = t.row), t.column !== null && t.column !== void 0 && (e.column = t.column), t.lastRow !== null && t.lastRow !== void 0 && (e.lastRow = t.lastRow), t.lastColumn !== null && t.lastColumn !== void 0 && (e.lastColumn = t.lastColumn), t.width !== null && t.width !== void 0 && (e.width = t.width), t.height !== null && t.height !== void 0 && (e.height = t.height), t.horizontalFlip !== null && t.horizontalFlip !== void 0 && (e.horizontalFlip = t.horizontalFlip), t.verticalFlip !== null && t.verticalFlip !== void 0 && (e.verticalFlip = t.verticalFlip), t.rotation !== null && t.rotation !== void 0 && (e.rotation = t.rotation), e;
45228
45215
  }, s.prototype.saveAsBlob = function(t, e) {
45229
45216
  var i = this;
45230
- switch (t) {
45231
- case "text/csv":
45232
- return new Promise(function(r, n) {
45233
- var a = {};
45234
- a.blobData = i.csvHelper.saveAsBlob(e), r(a);
45235
- });
45236
- default:
45237
- return new Promise(function(r, n) {
45238
- i.saveInternal(), i.mArchive.saveAsBlob().then(function(a) {
45239
- var o = {};
45240
- o.blobData = new Blob([a], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), r(o);
45241
- });
45242
- });
45243
- }
45217
+ return t === "text/csv" ? new Promise(function(r, n) {
45218
+ var a = {};
45219
+ a.blobData = i.csvHelper.saveAsBlob(e), r(a);
45220
+ }) : new Promise(function(r, n) {
45221
+ i.saveInternal(), i.mArchive.saveAsBlob().then(function(a) {
45222
+ var o = {};
45223
+ o.blobData = new Blob([a], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), r(o);
45224
+ });
45225
+ });
45244
45226
  }, s.prototype.save = function(t, e) {
45245
45227
  var i = this;
45246
45228
  if (t == null || t === "")
@@ -47774,12 +47756,7 @@ var Ue = (
47774
47756
  return a = e.toString() + " " + i.toString() + " " + r.toString() + " " + n.toString() + " K", a + te.newLine;
47775
47757
  }, s.prototype.toArray = function(t) {
47776
47758
  var e = new Bt();
47777
- switch (t) {
47778
- case Rt.Rgb:
47779
- e.add(new ze(this.red)), e.add(new ze(this.green)), e.add(new ze(this.blue));
47780
- break;
47781
- }
47782
- return e;
47759
+ return t === Rt.Rgb && (e.add(new ze(this.red)), e.add(new ze(this.green)), e.add(new ze(this.blue))), e;
47783
47760
  }, s.rgbStrings = new zt(), s.grayStringsSroke = new zt(), s.grayStringsFill = new zt(), s.maxColourChannelValue = 255, s;
47784
47761
  })()
47785
47762
  ), Me = (
@@ -54669,12 +54646,7 @@ var RT = /* @__PURE__ */ (function() {
54669
54646
  }, t.prototype.resetChanges = function(e) {
54670
54647
  }, t.prototype.colorSpaceToDeviceName = function(e) {
54671
54648
  var i;
54672
- switch (e) {
54673
- case Rt.Rgb:
54674
- i = "DeviceRGB";
54675
- break;
54676
- }
54677
- return i;
54649
+ return e === Rt.Rgb && (i = "DeviceRGB"), i;
54678
54650
  }, t.prototype.resetPatternDictionary = function(e) {
54679
54651
  this.mpatternDictionary = e;
54680
54652
  }, t.prototype.cloneAntiAliasingValue = function(e) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unifyedx-storybook-new",
3
3
  "private": false,
4
- "version": "0.2.90",
4
+ "version": "0.2.92",
5
5
  "type": "module",
6
6
  "main": "dist/unifyedx-storybook-new.es.js",
7
7
  "module": "dist/unifyedx-storybook-new.es.js",
Binary file
Binary file
Binary file
Binary file