@startinblox/core 0.19.4 → 0.19.5-beta.1

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -51888,7 +51888,7 @@ const FilterMixin = {
51888
51888
  console.warn(`The format value of ${field} is not suitable with auto-range-[field] attribute`);
51889
51889
  continue;
51890
51890
  }
51891
- if (nextArrayOfObjects["@type"] !== "ldp:Container") {
51891
+ if (!nextArrayOfObjects.isContainer()) {
51892
51892
  arrayOfDataIds.push(nextArrayOfObjects["@id"]);
51893
51893
  } else {
51894
51894
  if (!nextArrayOfObjects["ldp:contains"])
@@ -52114,7 +52114,9 @@ const RequiredMixin = {
52114
52114
  },
52115
52115
  async requiredResources(resources, listPostProcessors, div2, context2) {
52116
52116
  const displays = [];
52117
- const requiredFields = Array.from(this.element.attributes).filter((attr) => attr.name.startsWith("required-")).map((attr) => attr["name"].replace("required-", ""));
52117
+ const requiredFields = Array.from(this.element.attributes).filter((attr) => attr.name.startsWith("required-")).map((attr) => {
52118
+ return attr.value !== "" ? attr.value : attr["name"].replace("required-", "");
52119
+ });
52118
52120
  if (requiredFields.length) {
52119
52121
  for (let resource of resources) {
52120
52122
  let hasProps = true;
@@ -53388,14 +53390,14 @@ const SolidFormSearch = {
53388
53390
  for (const attr of this.element.attributes) {
53389
53391
  if (!attr["name"].startsWith("auto-range-"))
53390
53392
  continue;
53391
- const field = attr["name"].replace("auto-range-", "");
53393
+ let fieldName = attr.value !== "" ? attr.value : attr["name"].replace("auto-range-", "");
53392
53394
  const autoRangeValues = /* @__PURE__ */ new Set();
53393
53395
  for (const elm of this.attachedElements) {
53394
- for (const value of await elm.getValuesOfField(field)) {
53396
+ for (const value of await elm.getValuesOfField(fieldName)) {
53395
53397
  autoRangeValues.add(value);
53396
53398
  }
53397
53399
  }
53398
- const idField = `${this.rangeId}_${field}`;
53400
+ const idField = `${this.rangeId}_${fieldName}`;
53399
53401
  const id2 = `store://local.${idField}`;
53400
53402
  const ldpContains = Array.from(autoRangeValues).map((id22) => ({ "@id": id22 }));
53401
53403
  const data = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/core",
3
- "version": "0.19.4",
3
+ "version": "0.19.5-beta.1",
4
4
  "description": "This is a series of web component respecting both the web components standards and the Linked Data Platform convention.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",