@lynx-js/web-elements-canary 0.8.4-canary-20250808-8bce5e27 → 0.8.4-canary-20250808-ea325d6f
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/CHANGELOG.md +6 -2
- package/dist/XInput/XInputAttribute.js +8 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
# @lynx-js/web-elements
|
|
2
2
|
|
|
3
|
-
## 0.8.4-canary-
|
|
3
|
+
## 0.8.4-canary-20250808081729-ea325d6fb1ed18195f2c7dfed9d6258d9ae54bc8
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- feat: add autocomplete attribute support for x-input component ([#1444](https://github.com/lynx-family/lynx-stack/pull/1444))
|
|
8
|
+
|
|
9
|
+
Implements autocomplete attribute forwarding from the x-input custom element to the internal HTML input element in the shadow DOM. This enables standard browser autocomplete functionality for x-input elements.
|
|
10
|
+
|
|
7
11
|
- Add referrerpolicy attribute support to x-image web component ([#1420](https://github.com/lynx-family/lynx-stack/pull/1420))
|
|
8
12
|
|
|
9
13
|
- Updated dependencies []:
|
|
10
|
-
- @lynx-js/web-elements-template@0.8.4-canary-
|
|
14
|
+
- @lynx-js/web-elements-template@0.8.4-canary-20250808081729-ea325d6fb1ed18195f2c7dfed9d6258d9ae54bc8
|
|
11
15
|
|
|
12
16
|
## 0.8.3
|
|
13
17
|
|
|
@@ -15,11 +15,15 @@ let XInputAttribute = (() => {
|
|
|
15
15
|
let _private_handleDisabled_decorators;
|
|
16
16
|
let _private_handleDisabled_initializers = [];
|
|
17
17
|
let _private_handleDisabled_extraInitializers = [];
|
|
18
|
+
let _private_handleAutocomplete_decorators;
|
|
19
|
+
let _private_handleAutocomplete_initializers = [];
|
|
20
|
+
let _private_handleAutocomplete_extraInitializers = [];
|
|
18
21
|
return class XInputAttribute {
|
|
19
22
|
static {
|
|
20
23
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
21
24
|
_private_handleValue_decorators = [registerAttributeHandler('value', false)];
|
|
22
25
|
_private_handleDisabled_decorators = [registerAttributeHandler('disabled', true)];
|
|
26
|
+
_private_handleAutocomplete_decorators = [registerAttributeHandler('autocomplete', true)];
|
|
23
27
|
__esDecorate(this, _private_handleValue_descriptor = { value: __setFunctionName(function (newValue) {
|
|
24
28
|
if (newValue) {
|
|
25
29
|
const maxlength = parseFloat(this.#dom.getAttribute('maxlength') ?? '');
|
|
@@ -35,15 +39,17 @@ let XInputAttribute = (() => {
|
|
|
35
39
|
}
|
|
36
40
|
}, "#handleValue") }, _private_handleValue_decorators, { kind: "method", name: "#handleValue", static: false, private: true, access: { has: obj => #handleValue in obj, get: obj => obj.#handleValue }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
37
41
|
__esDecorate(null, null, _private_handleDisabled_decorators, { kind: "field", name: "#handleDisabled", static: false, private: true, access: { has: obj => #handleDisabled in obj, get: obj => obj.#handleDisabled, set: (obj, value) => { obj.#handleDisabled = value; } }, metadata: _metadata }, _private_handleDisabled_initializers, _private_handleDisabled_extraInitializers);
|
|
42
|
+
__esDecorate(null, null, _private_handleAutocomplete_decorators, { kind: "field", name: "#handleAutocomplete", static: false, private: true, access: { has: obj => #handleAutocomplete in obj, get: obj => obj.#handleAutocomplete, set: (obj, value) => { obj.#handleAutocomplete = value; } }, metadata: _metadata }, _private_handleAutocomplete_initializers, _private_handleAutocomplete_extraInitializers);
|
|
38
43
|
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
39
44
|
}
|
|
40
|
-
static observedAttributes = ['value', 'disabled'];
|
|
45
|
+
static observedAttributes = ['value', 'disabled', 'autocomplete'];
|
|
41
46
|
#dom = __runInitializers(this, _instanceExtraInitializers);
|
|
42
47
|
#getInputElement = genDomGetter(() => this.#dom.shadowRoot, '#input');
|
|
43
48
|
get #handleValue() { return _private_handleValue_descriptor.value; }
|
|
44
49
|
#handleDisabled = __runInitializers(this, _private_handleDisabled_initializers, bindToAttribute(this.#getInputElement, 'disabled', (value) => (value !== null ? '' : null)));
|
|
50
|
+
#handleAutocomplete = (__runInitializers(this, _private_handleDisabled_extraInitializers), __runInitializers(this, _private_handleAutocomplete_initializers, bindToAttribute(this.#getInputElement, 'autocomplete')));
|
|
45
51
|
constructor(dom) {
|
|
46
|
-
__runInitializers(this,
|
|
52
|
+
__runInitializers(this, _private_handleAutocomplete_extraInitializers);
|
|
47
53
|
this.#dom = dom;
|
|
48
54
|
}
|
|
49
55
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-elements-canary",
|
|
3
|
-
"version": "0.8.4-canary-20250808-
|
|
3
|
+
"version": "0.8.4-canary-20250808-ea325d6f",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
],
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@lynx-js/web-elements-reactive": "npm:@lynx-js/web-elements-reactive-canary@0.2.2",
|
|
104
|
-
"@lynx-js/web-elements-template": "npm:@lynx-js/web-elements-template-canary@0.8.4-canary-20250808-
|
|
104
|
+
"@lynx-js/web-elements-template": "npm:@lynx-js/web-elements-template-canary@0.8.4-canary-20250808-ea325d6f"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"tslib": "^2.8.1"
|