@thatopen/components 2.3.15 → 2.3.16

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/dist/index.mjs CHANGED
@@ -3137,7 +3137,7 @@ const Fs = class Fs {
3137
3137
  /**
3138
3138
  * The version of the @thatopen/components library.
3139
3139
  */
3140
- C(Fs, "release", "2.3.15");
3140
+ C(Fs, "release", "2.3.16");
3141
3141
  let Cs = Fs;
3142
3142
  class Qa extends Bn {
3143
3143
  constructor() {
@@ -11360,7 +11360,7 @@ const Dc = {
11360
11360
  const a = this.changeMap[t.uuid] ?? [];
11361
11361
  for (const h of a) {
11362
11362
  const f = await t.getProperties(h);
11363
- f ? n.WriteLine(r, f) : n.DeleteLine(r, h);
11363
+ f ? n.WriteLine(r, f) : n.GetLine(r, h) && n.DeleteLine(r, h);
11364
11364
  }
11365
11365
  const l = n.SaveModel(r);
11366
11366
  return s.webIfc.CloseModel(r), s.cleanUp(), l;
@@ -17845,7 +17845,7 @@ const bs = class bs extends At {
17845
17845
  throw new Error(
17846
17846
  `Classifier: model relations of ${t.name || t.uuid} have to exists to group by spatial structure.`
17847
17847
  );
17848
- const r = "spatialStructures", a = e.useProperties === void 0 || e.useProperties;
17848
+ const r = e.systemName ?? "spatialStructures", a = e.useProperties === void 0 || e.useProperties;
17849
17849
  for (const [f] of n) {
17850
17850
  if (e.isolate) {
17851
17851
  const E = t.data.get(f);
@@ -20271,36 +20271,33 @@ class ch extends ks {
20271
20271
  // IFCPROPERTYTABLEVALUE are not supported yet
20272
20272
  // Work must to be done to convert numerical value units to IDS-nominated standard units https://github.com/buildingSMART/IDS/blob/development/Documentation/UserManual/units.md
20273
20273
  evalValue(t, e) {
20274
- const s = this.getValueKey(t);
20274
+ const s = this.getValueKey(t), n = t[s];
20275
20275
  if (this.value) {
20276
- if (!s)
20276
+ if (!n)
20277
20277
  return e == null || e.push({
20278
20278
  parameter: "Value",
20279
20279
  currentValue: null,
20280
20280
  pass: !1,
20281
20281
  requiredValue: this.value.parameter
20282
20282
  }), !1;
20283
- const r = t[s], o = structuredClone(this.value);
20284
- if (r.name === "IFCLABEL" && o.type === "simple" && (o.parameter = String(o.parameter)), (t.type === k.IFCPROPERTYLISTVALUE || t.type === k.IFCPROPERTYENUMERATEDVALUE) && Array.isArray(r)) {
20285
- const l = r.map((f) => f.value), h = r.find((f) => o ? this.evalRequirement(f.value, o, "Value") : !1);
20283
+ const r = structuredClone(this.value);
20284
+ if (n.name === "IFCLABEL" && r.type === "simple" && (r.parameter = String(r.parameter)), (t.type === k.IFCPROPERTYLISTVALUE || t.type === k.IFCPROPERTYENUMERATEDVALUE) && Array.isArray(n)) {
20285
+ const a = n.map((h) => h.value), l = n.find((h) => r ? this.evalRequirement(h.value, r, "Value") : !1);
20286
20286
  return e == null || e.push({
20287
- currentValue: l,
20288
- pass: !!h,
20287
+ currentValue: a,
20288
+ pass: !!l,
20289
20289
  parameter: "Value",
20290
- requiredValue: o.parameter
20291
- }), !!h;
20290
+ requiredValue: r.parameter
20291
+ }), !!l;
20292
20292
  }
20293
20293
  return this.evalRequirement(
20294
- r.value,
20295
- o,
20294
+ n.value,
20295
+ r,
20296
20296
  "Value",
20297
20297
  e
20298
20298
  );
20299
20299
  }
20300
- if (!s)
20301
- return !0;
20302
- const n = t[s];
20303
- return n.type === 3 && n.value === 2 ? (e == null || e.push({
20300
+ return s ? n.type === 3 && n.value === 2 ? (e == null || e.push({
20304
20301
  parameter: "Value",
20305
20302
  currentValue: null,
20306
20303
  pass: !1,
@@ -20310,12 +20307,19 @@ class ch extends ks {
20310
20307
  currentValue: "",
20311
20308
  pass: !1,
20312
20309
  requiredValue: null
20313
- }), !1) : !0;
20310
+ }), !1) : !0 : !0;
20314
20311
  }
20315
20312
  evalDataType(t, e) {
20316
20313
  if (!this.dataType)
20317
20314
  return !0;
20318
20315
  const s = this.getValueKey(t), n = t[s];
20316
+ if (!n)
20317
+ return e == null || e.push({
20318
+ parameter: "DataType",
20319
+ currentValue: null,
20320
+ pass: !1,
20321
+ requiredValue: this.dataType
20322
+ }), !1;
20319
20323
  if ((t.type === k.IFCPROPERTYLISTVALUE || t.type === k.IFCPROPERTYENUMERATEDVALUE) && Array.isArray(n) && n[0]) {
20320
20324
  const o = n[0].name;
20321
20325
  return this.evalRequirement(