@startinblox/core 0.19.11-beta.5 → 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 +13 -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();
|
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",
|