tuain-ng-forms-lib 13.0.8 → 13.0.9
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/esm2020/lib/classes/forms/section.mjs +6 -2
- package/esm2020/lib/classes/forms/table/table.mjs +3 -5
- package/fesm2015/tuain-ng-forms-lib.mjs +6 -5
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +7 -5
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1417,10 +1417,8 @@ class RecordTable extends FormElement {
|
|
|
1417
1417
|
this.updateVisibleRecords();
|
|
1418
1418
|
}
|
|
1419
1419
|
recordCompare(recordA, recordB, columnCompare, direction) {
|
|
1420
|
-
const
|
|
1421
|
-
const
|
|
1422
|
-
const recordAColumn = (isNaN(recordAColumnVal)) ? recordAColumnVal.toLocaleUpperCase() : recordAColumnVal;
|
|
1423
|
-
const recordBColumn = (isNaN(recordBColumnVal)) ? recordBColumnVal.toLocaleUpperCase() : recordBColumnVal;
|
|
1420
|
+
const recordAColumn = recordA.getFieldValue(columnCompare).toLocaleLowerCase();
|
|
1421
|
+
const recordBColumn = recordB.getFieldValue(columnCompare).toLocaleLowerCase();
|
|
1424
1422
|
let result = 0;
|
|
1425
1423
|
if (recordAColumn < recordBColumn) {
|
|
1426
1424
|
result = -1;
|
|
@@ -1506,6 +1504,7 @@ class RecordFormSection {
|
|
|
1506
1504
|
this._activation = new Subject();
|
|
1507
1505
|
this._inactivation = new Subject();
|
|
1508
1506
|
this.active = false;
|
|
1507
|
+
this.customAttributes = {};
|
|
1509
1508
|
if (!sectionReceived) {
|
|
1510
1509
|
return;
|
|
1511
1510
|
}
|
|
@@ -1541,7 +1540,10 @@ class RecordFormSection {
|
|
|
1541
1540
|
}
|
|
1542
1541
|
}
|
|
1543
1542
|
}
|
|
1544
|
-
|
|
1543
|
+
if (sectionReceived?.customAttributes) {
|
|
1544
|
+
Object.keys(sectionReceived?.customAttributes)
|
|
1545
|
+
?.forEach(attr => this.customAttributes[attr] = sectionReceived?.customAttributes[attr]);
|
|
1546
|
+
}
|
|
1545
1547
|
}
|
|
1546
1548
|
getCustomAttribute(name) { return this.customAttributes?.[name] ?? null; }
|
|
1547
1549
|
setCustomAttribute(name, value) { return name && (this.customAttributes[name] = value); }
|