@startinblox/core 0.19.15-beta.3 → 0.19.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.
Files changed (2) hide show
  1. package/dist/index.js +26 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -53481,7 +53481,7 @@ const SolidFormSearch = {
53481
53481
  sibStore.setLocalData(data, id2);
53482
53482
  }
53483
53483
  },
53484
- change(resource, value) {
53484
+ change(resource, eventOptions) {
53485
53485
  if (!resource)
53486
53486
  return;
53487
53487
  this.element.dispatchEvent(
@@ -53490,22 +53490,41 @@ const SolidFormSearch = {
53490
53490
  detail: { resource }
53491
53491
  })
53492
53492
  );
53493
- if (!value)
53493
+ if (!eventOptions.value)
53494
53494
  return;
53495
53495
  this.element.dispatchEvent(
53496
53496
  new CustomEvent("filterChange", {
53497
53497
  bubbles: true,
53498
- detail: value
53498
+ detail: {
53499
+ value: eventOptions.value,
53500
+ inputLabel: eventOptions.inputLabel,
53501
+ type: eventOptions.type
53502
+ }
53499
53503
  })
53500
53504
  );
53501
53505
  },
53502
53506
  async inputChange(input) {
53503
- var _a;
53507
+ var _a, _b;
53508
+ let parentElementLabel = (_a = input == null ? void 0 : input.parentElement) == null ? void 0 : _a.getAttribute("label");
53504
53509
  try {
53505
- const selectedLabel = (_a = input.selectedOptions[0].textContent) == null ? void 0 : _a.trim();
53506
- this.change(this.value, selectedLabel);
53510
+ const selectedLabel = (_b = input.selectedOptions[0].textContent) == null ? void 0 : _b.trim();
53511
+ this.change(
53512
+ this.value,
53513
+ {
53514
+ value: selectedLabel,
53515
+ inputLabel: parentElementLabel,
53516
+ type: "select"
53517
+ }
53518
+ );
53507
53519
  } catch {
53508
- this.change(this.value, input.value);
53520
+ this.change(
53521
+ this.value,
53522
+ {
53523
+ value: input.value,
53524
+ inputLabel: parentElementLabel,
53525
+ type: "input"
53526
+ }
53527
+ );
53509
53528
  }
53510
53529
  },
53511
53530
  getSubmitTemplate() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/core",
3
- "version": "0.19.15-beta.3",
3
+ "version": "0.19.15",
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",