jsl-ui 9.6.0 → 9.7.0
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.
|
@@ -15,6 +15,7 @@ var TabsComponent = /** @class */ (function () {
|
|
|
15
15
|
this.options = options;
|
|
16
16
|
this.State = { selectedIndex: null };
|
|
17
17
|
this.options = (_a = this.options) !== null && _a !== void 0 ? _a : {};
|
|
18
|
+
this.checkForDuplicateIds();
|
|
18
19
|
this.options.tabs = (_b = this.options.tabs) !== null && _b !== void 0 ? _b : [];
|
|
19
20
|
this.options.selectedIndex = (_c = this.options.selectedIndex) !== null && _c !== void 0 ? _c : 0;
|
|
20
21
|
}
|
|
@@ -100,6 +101,7 @@ var TabsComponent = /** @class */ (function () {
|
|
|
100
101
|
var _a;
|
|
101
102
|
tabItem.enabled = (_a = tabItem.enabled) !== null && _a !== void 0 ? _a : true;
|
|
102
103
|
this.options.tabs.push(tabItem);
|
|
104
|
+
this.checkForDuplicateIds();
|
|
103
105
|
return this.options.tabs.length - 1;
|
|
104
106
|
};
|
|
105
107
|
TabsComponent.prototype.EnableAll = function () {
|
|
@@ -158,6 +160,18 @@ var TabsComponent = /** @class */ (function () {
|
|
|
158
160
|
}
|
|
159
161
|
return content;
|
|
160
162
|
};
|
|
163
|
+
TabsComponent.prototype.checkForDuplicateIds = function () {
|
|
164
|
+
if (this.options.tabs == null || this.options.tabs.length === 0) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
var ids = {};
|
|
168
|
+
for (var _i = 0, _a = this.options.tabs; _i < _a.length; _i++) {
|
|
169
|
+
var tab = _a[_i];
|
|
170
|
+
if (tab.id && ids[tab.id] !== undefined) {
|
|
171
|
+
throw new Error("Tab Control has duplicate id " + tab.id);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
};
|
|
161
175
|
return TabsComponent;
|
|
162
176
|
}());
|
|
163
177
|
export { TabsComponent };
|
package/lib/grid/slick.grid.js
CHANGED
|
@@ -2816,7 +2816,7 @@ export function SlickGrid(container, data, columns, options) {
|
|
|
2816
2816
|
if (item == null) {
|
|
2817
2817
|
return undefined;
|
|
2818
2818
|
}
|
|
2819
|
-
if (columnDef.field.indexOf(".") > 0) {
|
|
2819
|
+
if (columnDef.field && columnDef.field.indexOf(".") > 0) {
|
|
2820
2820
|
var fields = columnDef.field.split(".");
|
|
2821
2821
|
var result = item;
|
|
2822
2822
|
for (var i = 0; i < fields.length; i++) {
|