@startinblox/core 0.19.11-beta.4 → 0.19.11-beta.6
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 +21 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -53349,6 +53349,7 @@ Sib.register(SolidForm);
|
|
|
53349
53349
|
const SolidFormSearch = {
|
|
53350
53350
|
name: "solid-form-search",
|
|
53351
53351
|
use: [WidgetMixin, AttributeBinderMixin, ContextMixin],
|
|
53352
|
+
debounceTimeout: void 0,
|
|
53352
53353
|
attributes: {
|
|
53353
53354
|
defaultWidget: {
|
|
53354
53355
|
type: String,
|
|
@@ -53377,6 +53378,10 @@ const SolidFormSearch = {
|
|
|
53377
53378
|
if (value === null)
|
|
53378
53379
|
this.populate();
|
|
53379
53380
|
}
|
|
53381
|
+
},
|
|
53382
|
+
debounce: {
|
|
53383
|
+
type: Number,
|
|
53384
|
+
default: 500
|
|
53380
53385
|
}
|
|
53381
53386
|
},
|
|
53382
53387
|
initialState: {
|
|
@@ -53494,10 +53499,17 @@ const SolidFormSearch = {
|
|
|
53494
53499
|
},
|
|
53495
53500
|
empty() {
|
|
53496
53501
|
},
|
|
53502
|
+
debounceInput() {
|
|
53503
|
+
clearTimeout(this.debounceTimeout);
|
|
53504
|
+
this.debounceTimeout = setTimeout(() => {
|
|
53505
|
+
this.debounceTimeout = void 0;
|
|
53506
|
+
this.inputChange();
|
|
53507
|
+
}, this.debounce);
|
|
53508
|
+
},
|
|
53497
53509
|
async populate() {
|
|
53498
53510
|
await this.replaceAttributesData();
|
|
53499
53511
|
if (this.submitButton == null) {
|
|
53500
|
-
this.element.addEventListener("input", () => this.
|
|
53512
|
+
this.element.addEventListener("input", () => this.debounceInput());
|
|
53501
53513
|
} else {
|
|
53502
53514
|
this.element.addEventListener("submit", (e) => {
|
|
53503
53515
|
e.preventDefault();
|
|
@@ -54399,6 +54411,9 @@ const SolidMemberDelete = {
|
|
|
54399
54411
|
if (!Array.isArray(this.currentMembers)) {
|
|
54400
54412
|
this.currentMembers = [this.currentMembers];
|
|
54401
54413
|
}
|
|
54414
|
+
this.currentMembers = this.currentMembers.map((member) => {
|
|
54415
|
+
return { "@id": member["@id"] };
|
|
54416
|
+
});
|
|
54402
54417
|
this.isMember = this.currentMembers ? this.currentMembers.some((member) => member["@id"] === this.dataTargetSrc) : false;
|
|
54403
54418
|
},
|
|
54404
54419
|
planRender() {
|
|
@@ -54495,6 +54510,10 @@ const SolidMemberAdd = {
|
|
|
54495
54510
|
classSubmitButton: {
|
|
54496
54511
|
type: String,
|
|
54497
54512
|
default: void 0
|
|
54513
|
+
},
|
|
54514
|
+
orderAsc: {
|
|
54515
|
+
type: String,
|
|
54516
|
+
default: void 0
|
|
54498
54517
|
}
|
|
54499
54518
|
},
|
|
54500
54519
|
initialState: {
|
|
@@ -54570,6 +54589,7 @@ const SolidMemberAdd = {
|
|
|
54570
54589
|
data-src="${this.rangeUsers}"
|
|
54571
54590
|
name="users"
|
|
54572
54591
|
@change="${this.changeSelectedUser.bind(this)}"
|
|
54592
|
+
order-asc="${ifDefined(this.orderAsc || "name")}"
|
|
54573
54593
|
></solid-form-dropdown-autocompletion>
|
|
54574
54594
|
<div class=${ifDefined(this.classSubmitButton)}>
|
|
54575
54595
|
<button type="submit">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startinblox/core",
|
|
3
|
-
"version": "0.19.11-beta.
|
|
3
|
+
"version": "0.19.11-beta.6",
|
|
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",
|