@yesilyazilim/web.spa 1.1.29 → 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 +7 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -1
- package/types.d.ts.map +1 -1
package/index.js
CHANGED
|
@@ -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!');
|