@startinblox/core 0.19.1-beta.2 → 0.19.1-beta.4

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 +14 -18
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -54407,20 +54407,11 @@ const SolidMemberAdd = {
54407
54407
  newWidgetFactory("solid-form-dropdown-autocompletion");
54408
54408
  this.planRender();
54409
54409
  },
54410
- async populate() {
54411
- if (!this.resource)
54412
- return;
54413
- let memberPredicate = store.getExpandedPredicate("user_set", base_context);
54414
- this.currentMembers = await this.resource[memberPredicate];
54415
- if (!Array.isArray(this.currentMembers)) {
54416
- this.currentMembers = [this.currentMembers];
54417
- }
54418
- },
54419
54410
  planRender() {
54420
54411
  if (!this.renderPlanned) {
54421
54412
  this.renderPlanned = true;
54422
54413
  setTimeout(() => {
54423
- this.render();
54414
+ this.updateDOM();
54424
54415
  this.renderPlanned = false;
54425
54416
  });
54426
54417
  }
@@ -54452,23 +54443,28 @@ const SolidMemberAdd = {
54452
54443
  validateModal() {
54453
54444
  return this.addMembership();
54454
54445
  },
54455
- update() {
54456
- this.render();
54457
- },
54458
54446
  changeSelectedUser(e) {
54459
54447
  var _a;
54460
54448
  if (!e.target || !e.target.firstElementChild)
54461
54449
  return;
54462
54450
  this.dataTargetSrc = (_a = e.target.firstElementChild) == null ? void 0 : _a.value;
54463
54451
  },
54464
- async render() {
54465
- await this.populate();
54452
+ async populate() {
54453
+ console.log("Calling populate");
54454
+ console.trace();
54455
+ if (!this.resource)
54456
+ return;
54457
+ let memberPredicate = store.getExpandedPredicate("user_set", base_context);
54458
+ this.currentMembers = await this.resource[memberPredicate];
54459
+ if (!Array.isArray(this.currentMembers)) {
54460
+ this.currentMembers = [this.currentMembers];
54461
+ }
54466
54462
  let button = html$1`
54467
- <solid-ac-checker data-src="${this.resourceId}"
54463
+ <solid-ac-checker data-src="${this.dataSrc}"
54468
54464
  permission="acl:Write"
54469
54465
  >
54470
- <form
54471
- src="${this.resourceId}"
54466
+ <form
54467
+ src="${this.dataSrc}"
54472
54468
  @submit="${this.addMember.bind(this)}"
54473
54469
  >
54474
54470
  <solid-form-dropdown-autocompletion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/core",
3
- "version": "0.19.1-beta.2",
3
+ "version": "0.19.1-beta.4",
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",