@entryscape/rdforms 10.15.0 → 10.16.0

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.
@@ -96,8 +96,8 @@ const rdfjson_namespaceObject = require("@entryscape/rdfjson");
96
96
  ;// external "moment"
97
97
  const external_moment_namespaceObject = require("moment");
98
98
  var external_moment_default = /*#__PURE__*/__webpack_require__.n(external_moment_namespaceObject);
99
- ;// external "lodash"
100
- const external_lodash_namespaceObject = require("lodash");
99
+ ;// external "lodash-es"
100
+ const external_lodash_es_namespaceObject = require("lodash-es");
101
101
  ;// ./src/model/system.js
102
102
  /* eslint-disable no-unused-vars */
103
103
 
@@ -324,7 +324,7 @@ const cloneArrayWithLabels = (objects, noSort) => {
324
324
  obj.top = true;
325
325
  }
326
326
  if (o.children != null) {
327
- obj.children = (0,external_lodash_namespaceObject.cloneDeep)(o.children);
327
+ obj.children = (0,external_lodash_es_namespaceObject.cloneDeep)(o.children);
328
328
  }
329
329
  if (o.selectable === false) {
330
330
  obj.selectable = false;
@@ -661,7 +661,7 @@ class Item {
661
661
 
662
662
  /**
663
663
  * @return {Object} never available for Text item type.
664
- * The property value pairs corresponds to predicate and objects in required tripples.
664
+ * The property value pairs corresponds to predicate and objects in required triples.
665
665
  */
666
666
  getConstraints(original) {
667
667
  const constr = this.getSource(original).constraints;
@@ -1285,7 +1285,7 @@ class OntologyStore {
1285
1285
  if (ontologyChoiceArr != null) {
1286
1286
  for (let ind = 0; ind < ontologyChoiceArr.length; ind++) {
1287
1287
  const obj = ontologyChoiceArr[ind];
1288
- if ((0,external_lodash_namespaceObject.isEqual)(obj.constraints, item.getConstraints()) && item.getParentProperty() === obj.parentProperty && item.getHierarchyProperty() === obj.hierarchyProperty && item.isParentPropertyInverted() === (obj.isParentPropertyInverted || false) && item.isHierarchyPropertyInverted() === (obj.isHierarchyPropertyInverted || false)) {
1288
+ if ((0,external_lodash_es_namespaceObject.isEqual)(obj.constraints, item.getConstraints()) && item.getParentProperty() === obj.parentProperty && item.getHierarchyProperty() === obj.hierarchyProperty && item.isParentPropertyInverted() === (obj.isParentPropertyInverted || false) && item.isHierarchyPropertyInverted() === (obj.isHierarchyPropertyInverted || false)) {
1289
1289
  return obj.choices;
1290
1290
  }
1291
1291
  }
@@ -3240,7 +3240,7 @@ const deepMerge = (source1, source2) => {
3240
3240
  return source2 === undefined ? source1 : source2;
3241
3241
  }
3242
3242
  if (Array.isArray(source1) && Array.isArray(source2)) {
3243
- return [].concat(origSource[key], extSource[key]);
3243
+ return [].concat(source1, source2);
3244
3244
  }
3245
3245
  if (typeof source1 === 'object' && typeof source2 === 'object') {
3246
3246
  const obj = {};
@@ -3331,7 +3331,7 @@ class ItemStore {
3331
3331
  const child = children[j];
3332
3332
  if (child.id === from || child['@id'] === from) {
3333
3333
  child.id = to;
3334
- delete child['@id']; // Clean up backward compatability.
3334
+ delete child['@id']; // Clean up backward compatibility.
3335
3335
  }
3336
3336
  if (child.content) {
3337
3337
  renameInGroup(child);