@startinblox/core 2.0.0-beta.14 → 2.0.0-beta.15

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/helpers.js CHANGED
@@ -1,25 +1,28 @@
1
- import { A, h, r, c, A as A2, d, a, q, e, f, b, g, j, i, n, l, o, p, s, m, t, u } from "./helpers-D3zLqB4z.js";
1
+ import { A, h, y, c, A as A2, d, a, x, e, f, b, g, q, j, i, v, l, w, m, n, p, s, r, t, u } from "./helpers-DEGtolur.js";
2
2
  export {
3
3
  A as AsyncIterableBuilder,
4
4
  h as asyncQuerySelector,
5
- r as asyncQuerySelectorAll,
5
+ y as asyncQuerySelectorAll,
6
6
  c as compare,
7
7
  A2 as default,
8
8
  d as defineComponent,
9
9
  a as doesResourceContainList,
10
- q as domIsReady,
10
+ x as domIsReady,
11
11
  e as evalTemplateString,
12
12
  f as findClosingBracketMatchIndex,
13
13
  b as fuzzyCompare,
14
14
  g as generalComparator,
15
+ q as getRawContext,
15
16
  j as importCSS,
16
17
  i as importInlineCSS,
17
- n as importJS,
18
+ v as importJS,
18
19
  l as isUrlOrRelativePath,
19
- o as loadScript,
20
+ w as loadScript,
21
+ m as mergeContexts,
22
+ n as normalizeContext,
20
23
  p as parseFieldsString,
21
24
  s as setDeepProperty,
22
- m as stringToDom,
25
+ r as stringToDom,
23
26
  t as transformArrayToContainer,
24
27
  u as uniqID
25
28
  };
package/dist/index.js CHANGED
@@ -2,9 +2,9 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  var _a2;
5
- import { g as getDefaultExportFromCjs, s as store, b as base_context, f as formatAttributesToServerPaginationOptions, m as mergeServerSearchOptions, a as formatAttributesToServerSearchOptions, j as jsonldContextParserExports, c as commonjsGlobal } from "./store-CVms1LLP.js";
6
- import { d as defineComponent, u as uniqID, e as evalTemplateString, a as doesResourceContainList, c as compare, p as parseFieldsString, f as findClosingBracketMatchIndex, g as generalComparator, b as fuzzyCompare, h as asyncQuerySelector, i as importInlineCSS, j as importCSS, t as transformArrayToContainer, s as setDeepProperty } from "./helpers-D3zLqB4z.js";
7
- import { k } from "./helpers-D3zLqB4z.js";
5
+ import { g as getDefaultExportFromCjs, s as store, b as base_context, f as formatAttributesToServerPaginationOptions, m as mergeServerSearchOptions, a as formatAttributesToServerSearchOptions, c as commonjsGlobal } from "./store-DiyQ_yIK.js";
6
+ import { d as defineComponent, n as normalizeContext, u as uniqID, e as evalTemplateString, a as doesResourceContainList, c as compare, p as parseFieldsString, f as findClosingBracketMatchIndex, g as generalComparator, b as fuzzyCompare, h as asyncQuerySelector, i as importInlineCSS, j as importCSS, t as transformArrayToContainer, s as setDeepProperty } from "./helpers-DEGtolur.js";
7
+ import { k } from "./helpers-DEGtolur.js";
8
8
  if (!("flat" in Array.prototype)) {
9
9
  Object.defineProperty(Array.prototype, "flat", {
10
10
  configurable: true,
@@ -1699,15 +1699,16 @@ const SolidAcChecker = {
1699
1699
  populate: trackRenderAsync(async function() {
1700
1700
  if (!this.resource) return;
1701
1701
  let displayElement;
1702
- const ContextParser = jsonldContextParserExports.ContextParser;
1703
1702
  const permissions = await this.resource.permissions;
1704
1703
  if (this.permission) {
1705
1704
  displayElement = permissions.some((p2) => {
1706
- return ContextParser.expandTerm(p2, this.context, true) === this.permission;
1705
+ const context = normalizeContext(this.context);
1706
+ return context.expandTerm(p2, true) === this.permission;
1707
1707
  });
1708
1708
  } else if (this.noPermission) {
1709
1709
  displayElement = permissions.every((p2) => {
1710
- return ContextParser.expandTerm(p2, this.context, true) !== this.noPermission;
1710
+ const context = normalizeContext(this.context);
1711
+ return context.expandTerm(p2, true) !== this.noPermission;
1711
1712
  });
1712
1713
  } else {
1713
1714
  console.warn(
@@ -96533,6 +96534,7 @@ const WidgetMixin = {
96533
96534
  field,
96534
96535
  this.context
96535
96536
  );
96537
+ if (!expandedPredicate) return void 0;
96536
96538
  fieldValue = await resource[expandedPredicate];
96537
96539
  }
96538
96540
  if (fieldValue === null || fieldValue === void 0 || fieldValue === "")
@@ -97545,8 +97547,9 @@ const SolidMemberAdd = {
97545
97547
  if (!this.resource) return;
97546
97548
  const memberPredicate = store.getExpandedPredicate(
97547
97549
  "user_set",
97548
- base_context
97550
+ normalizeContext(base_context)
97549
97551
  );
97552
+ if (!memberPredicate) return;
97550
97553
  this.currentMembers = await this.resource[memberPredicate];
97551
97554
  if (!Array.isArray(this.currentMembers)) {
97552
97555
  this.currentMembers = [this.currentMembers];
@@ -97636,8 +97639,9 @@ const SolidMemberDelete = {
97636
97639
  if (!this.resource) return;
97637
97640
  const memberPredicate = store.getExpandedPredicate(
97638
97641
  "user_set",
97639
- base_context
97642
+ normalizeContext(base_context)
97640
97643
  );
97644
+ if (!memberPredicate) return;
97641
97645
  this.currentMembers = await this.resource[memberPredicate];
97642
97646
  if (!Array.isArray(this.currentMembers)) {
97643
97647
  this.currentMembers = [this.currentMembers];
@@ -97768,8 +97772,9 @@ const SolidMembership = {
97768
97772
  if (!this.resource) return;
97769
97773
  const memberPredicate = store.getExpandedPredicate(
97770
97774
  "user_set",
97771
- base_context
97775
+ normalizeContext(base_context)
97772
97776
  );
97777
+ if (!memberPredicate) return;
97773
97778
  this.currentMembers = await this.resource[memberPredicate];
97774
97779
  if (!Array.isArray(this.currentMembers)) {
97775
97780
  this.currentMembers = [this.currentMembers];