wj-elements 0.1.110 → 0.1.111
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/wje-element.js +2 -2
- package/dist/wje-options.js +2 -1
- package/package.json +1 -1
package/dist/wje-element.js
CHANGED
|
@@ -623,8 +623,8 @@ const _WJElement = class _WJElement extends HTMLElement {
|
|
|
623
623
|
const protoFunc = Object.getOwnPropertyDescriptors(this.__proto__)[sanitizedName];
|
|
624
624
|
const func = Object.getOwnPropertyDescriptors(this)[sanitizedName];
|
|
625
625
|
Object.defineProperty(this, sanitizedName, {
|
|
626
|
-
set: (
|
|
627
|
-
get: (
|
|
626
|
+
set: (protoFunc == null ? void 0 : protoFunc.set) ?? (func == null ? void 0 : func.set) ?? ((value) => this.setAttribute(name, value)),
|
|
627
|
+
get: (protoFunc == null ? void 0 : protoFunc.get) ?? (func == null ? void 0 : func.get) ?? (() => this.getAttribute(name))
|
|
628
628
|
});
|
|
629
629
|
});
|
|
630
630
|
}
|
package/dist/wje-options.js
CHANGED
|
@@ -176,10 +176,11 @@ class Options extends WJElement {
|
|
|
176
176
|
const splittedOptionArrayPath = this.optionArrayPath ? (_a = this.optionArrayPath) == null ? void 0 : _a.split(".") : [];
|
|
177
177
|
let filteredResponse = structuredClone(response);
|
|
178
178
|
const recursiveUpdate = (object, pathToProperty) => {
|
|
179
|
+
var _a2;
|
|
179
180
|
if (pathToProperty.length > 1) {
|
|
180
181
|
recursiveUpdate(object[pathToProperty[0]], pathToProperty.slice(1));
|
|
181
182
|
} else {
|
|
182
|
-
object[pathToProperty[0]] = object[pathToProperty[0]].filter((option) => !this._loadedOptions.some((loadedOption) => loadedOption[this.itemValue] === option[this.itemValue]));
|
|
183
|
+
object[pathToProperty[0]] = ((_a2 = object[pathToProperty[0]]) == null ? void 0 : _a2.filter((option) => !this._loadedOptions.some((loadedOption) => loadedOption[this.itemValue] === option[this.itemValue]))) ?? [];
|
|
183
184
|
}
|
|
184
185
|
};
|
|
185
186
|
recursiveUpdate(filteredResponse, splittedOptionArrayPath);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wj-elements",
|
|
3
3
|
"description": "WebJET Elements is a modern set of user interface tools harnessing the power of web components designed to simplify web application development.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.111",
|
|
5
5
|
"homepage": "https://github.com/lencys/wj-elements",
|
|
6
6
|
"author": "Lukáš Ondrejček <lukas.ondrejcek@gmail.com>",
|
|
7
7
|
"license": "MIT",
|