@sumaris-net/ngx-components 2.4.39 → 2.4.40
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/src/app/core/services/model/referential.model.mjs +14 -3
- package/fesm2015/sumaris-net.ngx-components.mjs +13 -2
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +13 -2
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/model/referential.model.d.ts +4 -1
|
@@ -15615,17 +15615,28 @@ class BaseReferential extends Entity {
|
|
|
15615
15615
|
}
|
|
15616
15616
|
// @dynamic
|
|
15617
15617
|
let Referential = class Referential extends BaseReferential {
|
|
15618
|
+
fromObject(source, opts) {
|
|
15619
|
+
super.fromObject(source, opts);
|
|
15620
|
+
this.meta = source.meta && { ...source.meta } || undefined;
|
|
15621
|
+
}
|
|
15622
|
+
asObject(opts) {
|
|
15623
|
+
const target = super.asObject(opts);
|
|
15624
|
+
if (opts?.minify) {
|
|
15625
|
+
delete target.meta;
|
|
15626
|
+
}
|
|
15627
|
+
return target;
|
|
15628
|
+
}
|
|
15618
15629
|
};
|
|
15619
15630
|
Referential = __decorate([
|
|
15620
15631
|
EntityClass({ typename: 'ReferentialVO' })
|
|
15621
15632
|
], Referential);
|
|
15622
15633
|
class ReferentialUtils {
|
|
15623
15634
|
// FIXME: remove this
|
|
15624
|
-
static fromObject(source) {
|
|
15635
|
+
static fromObject(source, opts) {
|
|
15625
15636
|
if (!source || source instanceof Referential)
|
|
15626
15637
|
return source;
|
|
15627
15638
|
const res = new Referential();
|
|
15628
|
-
res.fromObject(source);
|
|
15639
|
+
res.fromObject(source, opts);
|
|
15629
15640
|
return res;
|
|
15630
15641
|
}
|
|
15631
15642
|
static isNotEmpty(obj) {
|