jsl-ui 9.19.4 → 9.19.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.
@@ -50,11 +50,12 @@ var InputComponent = /** @class */ (function () {
50
50
  if (this.onInput.count() > 0) {
51
51
  this.options.bindOnInput = true;
52
52
  }
53
- var current = this.getValue();
53
+ // const current = this.getValue();
54
54
  var newVal = (((_a = this.options.converter) === null || _a === void 0 ? void 0 : _a.toUI) ?
55
55
  this.options.converter.toUI(this.options.bindTo[this.options.property]) :
56
56
  this.options.bindTo[this.options.property]);
57
- if (newVal !== current) {
57
+ // if (newVal !== current)
58
+ {
58
59
  val = newVal;
59
60
  if (this.currentDom != null) {
60
61
  this.currentDom.value = val !== null && val !== void 0 ? val : "";
@@ -144,7 +144,7 @@ var TabsComponent = /** @class */ (function () {
144
144
  };
145
145
  TabsComponent.prototype.SetSelectedTab = function (index) {
146
146
  // console.log("setActiveTab: " + index);
147
- if (this.options.tabs[index].content == null) {
147
+ if (this.options.tabs[index].content == null && this.options.tabs[index].onCreate) {
148
148
  this.options.tabs[index].content = this.options.tabs[index].onCreate();
149
149
  }
150
150
  this.options.selectedIndex = index;
@@ -21,6 +21,7 @@ export interface ISlickEvent<T> {
21
21
  }
22
22
  export interface ISlickFormatterResult {
23
23
  addClasses?: string[];
24
+ removeClasses?: string[];
24
25
  toolTip?: string;
25
26
  text?: string;
26
27
  }
@@ -3089,19 +3089,27 @@ export function SlickGrid(container, data, columns, options) {
3089
3089
  if (formatterResult === null || formatterResult === undefined) {
3090
3090
  formatterResult = "";
3091
3091
  }
3092
- if (Object.prototype.toString.call(formatterResult) !== "[object Object]") {
3092
+ if (typeof formatterResult === "string") { // Object.prototype.toString.call(formatterResult) !== "[object Object]") {
3093
3093
  cellNode.innerHTML = formatterResult;
3094
3094
  }
3095
3095
  else {
3096
3096
  cellNode.innerHTML = formatterResult.text;
3097
3097
  if (formatterResult.removeClasses && !suppressRemove) {
3098
- $(cellNode).removeClass(formatterResult.removeClasses);
3098
+ for (var _i = 0, _a = formatterResult.removeClasses; _i < _a.length; _i++) {
3099
+ var c = _a[_i];
3100
+ cellNode.classList.remove(c);
3101
+ }
3102
+ // $(cellNode).removeClass(formatterResult.removeClasses);
3099
3103
  }
3100
3104
  if (formatterResult.addClasses) {
3101
- $(cellNode).addClass(formatterResult.addClasses);
3105
+ for (var _b = 0, _c = formatterResult.addClasses; _b < _c.length; _b++) {
3106
+ var c = _c[_b];
3107
+ cellNode.classList.add(c);
3108
+ }
3109
+ // $(cellNode).addClass(formatterResult.addClasses);
3102
3110
  }
3103
3111
  if (formatterResult.toolTip) {
3104
- $(cellNode).attr("title", formatterResult.toolTip);
3112
+ cellNode.title = formatterResult.toolTip;
3105
3113
  }
3106
3114
  }
3107
3115
  }