@yesilyazilim/web.spa 1.1.28 → 1.1.30
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.
- package/index.js +9 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -2
- package/types.d.ts.map +1 -1
package/index.js
CHANGED
|
@@ -6817,9 +6817,9 @@ let $ff47ee4c049939bf$export$72b9695b8216309a = class ComboBox extends (0, $b495
|
|
|
6817
6817
|
const vals = this._cascadeProps.parents.map((p)=>p.value).flat(2);
|
|
6818
6818
|
this._loadItemsAsync(this._cascadeProps.itemLoader, vals);
|
|
6819
6819
|
});
|
|
6820
|
+
this._buildUi();
|
|
6820
6821
|
}
|
|
6821
|
-
|
|
6822
|
-
if (!isFirst) return;
|
|
6822
|
+
_buildUi() {
|
|
6823
6823
|
this._listElm = new (0, $e9f5d367a928352c$export$5aa63f5ec126f0de)({
|
|
6824
6824
|
source: this._source,
|
|
6825
6825
|
itemFactory: (item)=>{
|
|
@@ -10445,9 +10445,14 @@ let $b47b50673646d529$export$a7fed597f4b8afd8 = class Form extends (0, $05c91032
|
|
|
10445
10445
|
target.style.gridTemplateColumns = `repeat(${ccol}, minmax(150px, 1fr))`;
|
|
10446
10446
|
target.style.gridTemplateRows = `repeat(${ccol}, auto)`;
|
|
10447
10447
|
}
|
|
10448
|
-
setData(model) {
|
|
10448
|
+
setData(model, forceMatch = false) {
|
|
10449
10449
|
const m = model || {};
|
|
10450
|
-
|
|
10450
|
+
const modelKeys = Object.getOwnPropertyNames(m);
|
|
10451
|
+
for (const line of this._lines.values()){
|
|
10452
|
+
if (forceMatch) {
|
|
10453
|
+
if (modelKeys.includes(line.item.key)) line.value = m[line.item.key];
|
|
10454
|
+
} else line.value = m[line.item.key];
|
|
10455
|
+
}
|
|
10451
10456
|
}
|
|
10452
10457
|
check(silent = false) {
|
|
10453
10458
|
if (this.isReadonly) throw new Error('Could not check readonly form!');
|