@decaf-ts/for-angular 0.1.54 → 0.1.55

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.
@@ -15273,17 +15273,24 @@ let TableComponent = class TableComponent extends ListComponent {
15273
15273
  async handleUpdate(model, uid) {
15274
15274
  await super.handleUpdate(model, uid);
15275
15275
  const item = this.items.find((item) => `${item['uid']?.value}`.trim() === `${uid}`.trim());
15276
+ const mapper = this.mapper || {};
15276
15277
  if (item) {
15277
15278
  for (const [key, entry] of Object.entries(item)) {
15278
15279
  const { prop } = entry;
15279
15280
  if (key !== 'uid' && prop in model) {
15280
15281
  const value = model[prop];
15281
15282
  if (value !== undefined) {
15282
- if (isValidDate$1(value)) {
15283
- entry.value = `${formatDate(dateFromString(value))}`;
15283
+ const valueFn = mapper?.[prop]?.valueParserFn || value;
15284
+ if (typeof valueFn === 'function') {
15285
+ entry.value = await valueFn(this, prop, value);
15284
15286
  }
15285
15287
  else {
15286
- entry.value = value;
15288
+ if (isValidDate$1(value)) {
15289
+ entry.value = `${formatDate(dateFromString(value))}`;
15290
+ }
15291
+ else {
15292
+ entry.value = value;
15293
+ }
15287
15294
  }
15288
15295
  }
15289
15296
  }