jsl-ui 8.12.1 → 8.13.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IJSLComponent, IJSLVNode } from "jsl-render";
|
|
2
2
|
import { IAutoSuggestOptions, IAutoSuggest } from "../../ui/auto.suggest";
|
|
3
3
|
export interface IAutoSuggestComponentOptions extends IAutoSuggestOptions {
|
|
4
|
+
value?: string;
|
|
4
5
|
class?: string;
|
|
5
6
|
style?: string;
|
|
6
7
|
placeholder?: string;
|
|
@@ -8,7 +8,7 @@ var AutoSuggestComponent = /** @class */ (function () {
|
|
|
8
8
|
var _a;
|
|
9
9
|
return {
|
|
10
10
|
tag: "input",
|
|
11
|
-
attr: { class: this.options.class, style: this.options.style, placeholder: (_a = this.options.placeholder, (_a !== null && _a !== void 0 ? _a : "")) }
|
|
11
|
+
attr: { value: this.options.value, class: this.options.class, style: this.options.style, placeholder: (_a = this.options.placeholder, (_a !== null && _a !== void 0 ? _a : "")) }
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
AutoSuggestComponent.prototype.getRef = function () {
|
|
@@ -101,8 +101,11 @@ export function DataView(options) {
|
|
|
101
101
|
var id;
|
|
102
102
|
for (var i = 0, l = items.length; i < l; i++) {
|
|
103
103
|
id = items[i][idProperty];
|
|
104
|
-
if (id === undefined
|
|
105
|
-
throw new Error("
|
|
104
|
+
if (id === undefined) {
|
|
105
|
+
throw new Error("Id (" + idProperty + ") of element at index " + i + " was undefined");
|
|
106
|
+
}
|
|
107
|
+
else if (idxById[id] !== i) {
|
|
108
|
+
throw new Error("Duplicate id (" + idProperty + ") for " + id + " found at index (" + idxById[id] + ", " + i + ")");
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
111
|
}
|