@startinblox/core 0.19.5 → 0.19.6-beta.2
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.js +14 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52121,18 +52121,10 @@ const RequiredMixin = {
|
|
|
52121
52121
|
for (let resource of resources) {
|
|
52122
52122
|
let hasProps = true;
|
|
52123
52123
|
for (let field of requiredFields) {
|
|
52124
|
-
let res =
|
|
52125
|
-
if (!res
|
|
52126
|
-
|
|
52127
|
-
|
|
52128
|
-
hasProps = false;
|
|
52129
|
-
continue;
|
|
52130
|
-
}
|
|
52131
|
-
} else if (res) {
|
|
52132
|
-
if (await res[field] == null || await res[field] == "") {
|
|
52133
|
-
hasProps = false;
|
|
52134
|
-
continue;
|
|
52135
|
-
}
|
|
52124
|
+
let res = await resource[field];
|
|
52125
|
+
if (!res || res == null) {
|
|
52126
|
+
hasProps = false;
|
|
52127
|
+
continue;
|
|
52136
52128
|
}
|
|
52137
52129
|
}
|
|
52138
52130
|
if (hasProps)
|
|
@@ -54124,6 +54116,10 @@ const SolidMembership = {
|
|
|
54124
54116
|
this.resourceId = this.dataSrc;
|
|
54125
54117
|
}
|
|
54126
54118
|
},
|
|
54119
|
+
dataTargetSrc: {
|
|
54120
|
+
type: String,
|
|
54121
|
+
default: null
|
|
54122
|
+
},
|
|
54127
54123
|
dataLeaveLabel: {
|
|
54128
54124
|
type: String,
|
|
54129
54125
|
default: null,
|
|
@@ -54157,7 +54153,10 @@ const SolidMembership = {
|
|
|
54157
54153
|
let currentUserSession = await store.session;
|
|
54158
54154
|
if (!currentUserSession)
|
|
54159
54155
|
return;
|
|
54160
|
-
this.
|
|
54156
|
+
if (!this.dataTargetSrc)
|
|
54157
|
+
this.userId = await currentUserSession.webId;
|
|
54158
|
+
else
|
|
54159
|
+
this.userId = this.dataTargetSrc;
|
|
54161
54160
|
if (!this.userId)
|
|
54162
54161
|
return;
|
|
54163
54162
|
this.resource = await store.getData(this.resourceId);
|
|
@@ -54247,7 +54246,7 @@ const SolidMembership = {
|
|
|
54247
54246
|
button = html$1`
|
|
54248
54247
|
<solid-ac-checker data-src="${this.dataSrc}"
|
|
54249
54248
|
permission="acl:Read"
|
|
54250
|
-
class=${ifDefined(this.classSubmitButton)}
|
|
54249
|
+
class=${ifDefined(`${this.classSubmitButton ? "leave " + this.classSubmitButton : "leave"}`)}
|
|
54251
54250
|
>
|
|
54252
54251
|
<button @click=${this.changeMembership.bind(this)}>${this.dataLeaveLabel || this.t("solid-leave-group.button")}</button>
|
|
54253
54252
|
${this.getModalDialog()}
|
|
@@ -54257,7 +54256,7 @@ const SolidMembership = {
|
|
|
54257
54256
|
button = html$1`
|
|
54258
54257
|
<solid-ac-checker data-src="${this.dataSrc}"
|
|
54259
54258
|
permission="acl:Read"
|
|
54260
|
-
class=${ifDefined(this.classSubmitButton)}
|
|
54259
|
+
class=${ifDefined(`${this.classSubmitButton ? "join " + this.classSubmitButton : "join"}`)}
|
|
54261
54260
|
>
|
|
54262
54261
|
<button @click=${this.changeMembership.bind(this)}>${this.dataJoinLabel || this.t("solid-join-group.button")}</button>
|
|
54263
54262
|
${this.getModalDialog()}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startinblox/core",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.6-beta.2",
|
|
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",
|