@lynx-js/web-elements-canary 0.9.0 → 0.9.1-canary-20251223-71b9083d

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 (71) hide show
  1. package/CHANGELOG.md +21 -7
  2. package/dist/ScrollView/FadeEdgeLengthAttribute.d.ts +2 -0
  3. package/dist/ScrollView/FadeEdgeLengthAttribute.js +15 -16
  4. package/dist/ScrollView/ScrollAttributes.d.ts +2 -0
  5. package/dist/ScrollView/ScrollAttributes.js +52 -54
  6. package/dist/ScrollView/ScrollViewEvents.d.ts +6 -0
  7. package/dist/ScrollView/ScrollViewEvents.js +41 -41
  8. package/dist/XAudioTT/XAudioAttribute.d.ts +3 -0
  9. package/dist/XAudioTT/XAudioAttribute.js +57 -60
  10. package/dist/XFoldViewNg/XFoldviewNgEvents.d.ts +2 -0
  11. package/dist/XFoldViewNg/XFoldviewNgEvents.js +23 -25
  12. package/dist/XFoldViewNg/XFoldviewSlotNgTouchEventsHandler.js +0 -1
  13. package/dist/XImage/DropShadow.d.ts +1 -0
  14. package/dist/XImage/DropShadow.js +7 -7
  15. package/dist/XImage/ImageEvents.d.ts +2 -0
  16. package/dist/XImage/ImageEvents.js +27 -29
  17. package/dist/XImage/ImageSrc.d.ts +5 -0
  18. package/dist/XImage/ImageSrc.js +35 -36
  19. package/dist/XInput/InputBaseAttributes.d.ts +5 -0
  20. package/dist/XInput/InputBaseAttributes.js +56 -58
  21. package/dist/XInput/Placeholder.d.ts +5 -0
  22. package/dist/XInput/Placeholder.js +31 -31
  23. package/dist/XInput/XInputAttribute.d.ts +3 -0
  24. package/dist/XInput/XInputAttribute.js +31 -32
  25. package/dist/XInput/XInputEvents.d.ts +3 -0
  26. package/dist/XInput/XInputEvents.js +34 -37
  27. package/dist/XList/ListItemAttributes.d.ts +1 -0
  28. package/dist/XList/ListItemAttributes.js +8 -9
  29. package/dist/XList/XListAttributes.d.ts +2 -0
  30. package/dist/XList/XListAttributes.js +13 -13
  31. package/dist/XList/XListEvents.d.ts +7 -0
  32. package/dist/XList/XListEvents.js +76 -78
  33. package/dist/XList/XListWaterfall.d.ts +2 -0
  34. package/dist/XList/XListWaterfall.js +66 -68
  35. package/dist/XOverlayNg/XOverlayAttributes.d.ts +2 -0
  36. package/dist/XOverlayNg/XOverlayAttributes.js +32 -34
  37. package/dist/XRefreshView/XRefreshViewEventsEmitter.d.ts +2 -0
  38. package/dist/XRefreshView/XRefreshViewEventsEmitter.js +34 -37
  39. package/dist/XSvg/XSvg.d.ts +3 -0
  40. package/dist/XSvg/XSvg.js +42 -45
  41. package/dist/XSwiper/XSwiperAutoScroll.d.ts +2 -0
  42. package/dist/XSwiper/XSwiperAutoScroll.js +23 -25
  43. package/dist/XSwiper/XSwiperCircular.d.ts +2 -0
  44. package/dist/XSwiper/XSwiperCircular.js +23 -25
  45. package/dist/XSwiper/XSwiperEvents.d.ts +2 -0
  46. package/dist/XSwiper/XSwiperEvents.js +19 -20
  47. package/dist/XSwiper/XSwiperIndicator.d.ts +5 -0
  48. package/dist/XSwiper/XSwiperIndicator.js +31 -31
  49. package/dist/XText/InlineImage.d.ts +1 -0
  50. package/dist/XText/InlineImage.js +10 -11
  51. package/dist/XText/RawText.d.ts +1 -0
  52. package/dist/XText/RawText.js +11 -12
  53. package/dist/XText/XTextTruncation.d.ts +2 -0
  54. package/dist/XText/XTextTruncation.js +29 -31
  55. package/dist/XTextarea/Placeholder.d.ts +5 -0
  56. package/dist/XTextarea/Placeholder.js +31 -31
  57. package/dist/XTextarea/TextareaBaseAttributes.d.ts +5 -0
  58. package/dist/XTextarea/TextareaBaseAttributes.js +31 -31
  59. package/dist/XTextarea/XTextareaAttributes.d.ts +5 -0
  60. package/dist/XTextarea/XTextareaAttributes.js +43 -45
  61. package/dist/XTextarea/XTextareaEvents.d.ts +3 -0
  62. package/dist/XTextarea/XTextareaEvents.js +34 -37
  63. package/dist/XView/BlurRadius.d.ts +1 -0
  64. package/dist/XView/BlurRadius.js +14 -15
  65. package/dist/XViewpagerNg/XViewpagerNgEvents.d.ts +2 -0
  66. package/dist/XViewpagerNg/XViewpagerNgEvents.js +15 -17
  67. package/dist/common/CommonEventsAndMethods.d.ts +1 -0
  68. package/dist/common/CommonEventsAndMethods.js +5 -1
  69. package/elements.css +18 -0
  70. package/index.css +1 -14
  71. package/package.json +21 -2
@@ -1,4 +1,4 @@
1
- import { __esDecorate, __runInitializers, __setFunctionName } from "tslib";
1
+ import { __esDecorate, __runInitializers } from "tslib";
2
2
  /*
3
3
  // Copyright 2024 The Lynx Authors. All rights reserved.
4
4
  // Licensed under the Apache License Version 2.0 that can be found in the
@@ -9,31 +9,15 @@ import { commonComponentEventSetting } from '../common/commonEventInitConfigurat
9
9
  import { scrollableLength } from './XFoldviewNg.js';
10
10
  let XFoldviewNgEvents = (() => {
11
11
  let _instanceExtraInitializers = [];
12
- let _private_handleGranularity_decorators;
13
- let _private_handleGranularity_descriptor;
14
- let _private_enableOffsetEvent_decorators;
15
- let _private_enableOffsetEvent_descriptor;
12
+ let __handleGranularity_decorators;
13
+ let __enableOffsetEvent_decorators;
16
14
  return class XFoldviewNgEvents {
17
15
  static {
18
16
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
19
- _private_handleGranularity_decorators = [registerAttributeHandler('granularity', true)];
20
- _private_enableOffsetEvent_decorators = [registerEventEnableStatusChangeHandler('offset')];
21
- __esDecorate(this, _private_handleGranularity_descriptor = { value: __setFunctionName(function (newVal) {
22
- if (newVal && newVal !== '')
23
- this.#granularity = parseFloat(newVal);
24
- else
25
- this.#granularity = 0.01;
26
- }, "#handleGranularity") }, _private_handleGranularity_decorators, { kind: "method", name: "#handleGranularity", static: false, private: true, access: { has: obj => #handleGranularity in obj, get: obj => obj.#handleGranularity }, metadata: _metadata }, null, _instanceExtraInitializers);
27
- __esDecorate(this, _private_enableOffsetEvent_descriptor = { value: __setFunctionName(function (enable) {
28
- if (enable) {
29
- this.#dom.addEventListener('scroll', this.#handleScroll, {
30
- passive: true,
31
- });
32
- }
33
- else {
34
- this.#dom.removeEventListener('scroll', this.#handleScroll);
35
- }
36
- }, "#enableOffsetEvent") }, _private_enableOffsetEvent_decorators, { kind: "method", name: "#enableOffsetEvent", static: false, private: true, access: { has: obj => #enableOffsetEvent in obj, get: obj => obj.#enableOffsetEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
17
+ __handleGranularity_decorators = [registerAttributeHandler('granularity', true)];
18
+ __enableOffsetEvent_decorators = [registerEventEnableStatusChangeHandler('offset')];
19
+ __esDecorate(this, null, __handleGranularity_decorators, { kind: "method", name: "_handleGranularity", static: false, private: false, access: { has: obj => "_handleGranularity" in obj, get: obj => obj._handleGranularity }, metadata: _metadata }, null, _instanceExtraInitializers);
20
+ __esDecorate(this, null, __enableOffsetEvent_decorators, { kind: "method", name: "_enableOffsetEvent", static: false, private: false, access: { has: obj => "_enableOffsetEvent" in obj, get: obj => obj._enableOffsetEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
37
21
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
38
22
  }
39
23
  #dom = __runInitializers(this, _instanceExtraInitializers);
@@ -43,8 +27,22 @@ let XFoldviewNgEvents = (() => {
43
27
  this.#dom = dom;
44
28
  }
45
29
  static observedAttributes = ['granularity'];
46
- get #handleGranularity() { return _private_handleGranularity_descriptor.value; }
47
- get #enableOffsetEvent() { return _private_enableOffsetEvent_descriptor.value; }
30
+ _handleGranularity(newVal) {
31
+ if (newVal && newVal !== '')
32
+ this.#granularity = parseFloat(newVal);
33
+ else
34
+ this.#granularity = 0.01;
35
+ }
36
+ _enableOffsetEvent(enable) {
37
+ if (enable) {
38
+ this.#dom.addEventListener('scroll', this.#handleScroll, {
39
+ passive: true,
40
+ });
41
+ }
42
+ else {
43
+ this.#dom.removeEventListener('scroll', this.#handleScroll);
44
+ }
45
+ }
48
46
  #handleScroll = () => {
49
47
  const currentScrollTop = this.#dom.scrollTop;
50
48
  const scrollLength = Math.abs(this.#pervScroll - currentScrollTop);
@@ -1,5 +1,4 @@
1
1
  import { isHeaderShowing } from './XFoldviewNg.js';
2
- import { isChromium } from '../common/constants.js';
3
2
  export class XFoldviewSlotNgTouchEventsHandler {
4
3
  #parentScrollTop = 0;
5
4
  #childrenElemsntsScrollTop = new WeakMap();
@@ -2,5 +2,6 @@ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  export declare class DropShadow implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
3
3
  #private;
4
4
  static observedAttributes: string[];
5
+ _handleBlurRadius: (this: void, newVal: string | null) => void;
5
6
  constructor(dom: HTMLElement);
6
7
  }
@@ -6,22 +6,22 @@ import { __esDecorate, __runInitializers } from "tslib";
6
6
  */
7
7
  import { bindToStyle, genDomGetter, registerAttributeHandler, } from '@lynx-js/web-elements-reactive';
8
8
  let DropShadow = (() => {
9
- let _private_handleBlurRadius_decorators;
10
- let _private_handleBlurRadius_initializers = [];
11
- let _private_handleBlurRadius_extraInitializers = [];
9
+ let __handleBlurRadius_decorators;
10
+ let __handleBlurRadius_initializers = [];
11
+ let __handleBlurRadius_extraInitializers = [];
12
12
  return class DropShadow {
13
13
  static {
14
14
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
15
- _private_handleBlurRadius_decorators = [registerAttributeHandler('drop-shadow', true)];
16
- __esDecorate(null, null, _private_handleBlurRadius_decorators, { kind: "field", name: "#handleBlurRadius", static: false, private: true, access: { has: obj => #handleBlurRadius in obj, get: obj => obj.#handleBlurRadius, set: (obj, value) => { obj.#handleBlurRadius = value; } }, metadata: _metadata }, _private_handleBlurRadius_initializers, _private_handleBlurRadius_extraInitializers);
15
+ __handleBlurRadius_decorators = [registerAttributeHandler('drop-shadow', true)];
16
+ __esDecorate(null, null, __handleBlurRadius_decorators, { kind: "field", name: "_handleBlurRadius", static: false, private: false, access: { has: obj => "_handleBlurRadius" in obj, get: obj => obj._handleBlurRadius, set: (obj, value) => { obj._handleBlurRadius = value; } }, metadata: _metadata }, __handleBlurRadius_initializers, __handleBlurRadius_extraInitializers);
17
17
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
18
18
  }
19
19
  static observedAttributes = ['drop-shadow'];
20
20
  #dom;
21
21
  #getImg = genDomGetter(() => this.#dom.shadowRoot, '#img');
22
- #handleBlurRadius = __runInitializers(this, _private_handleBlurRadius_initializers, bindToStyle(this.#getImg, '--drop-shadow', undefined, true));
22
+ _handleBlurRadius = __runInitializers(this, __handleBlurRadius_initializers, bindToStyle(this.#getImg, '--drop-shadow', undefined, true));
23
23
  constructor(dom) {
24
- __runInitializers(this, _private_handleBlurRadius_extraInitializers);
24
+ __runInitializers(this, __handleBlurRadius_extraInitializers);
25
25
  this.#dom = dom;
26
26
  }
27
27
  };
@@ -2,5 +2,7 @@ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  export declare class ImageEvents implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
3
3
  #private;
4
4
  static observedAttributes: never[];
5
+ _enableLoadEvent(status: boolean): void;
6
+ _enableErrorEvent(status: boolean): void;
5
7
  constructor(dom: HTMLElement);
6
8
  }
@@ -1,4 +1,4 @@
1
- import { __esDecorate, __runInitializers, __setFunctionName } from "tslib";
1
+ import { __esDecorate, __runInitializers } from "tslib";
2
2
  /*
3
3
  // Copyright 2024 The Lynx Authors. All rights reserved.
4
4
  // Licensed under the Apache License Version 2.0 that can be found in the
@@ -9,42 +9,40 @@ import { commonComponentEventSetting } from '../common/commonEventInitConfigurat
9
9
  import { registerEventEnableStatusChangeHandler } from '@lynx-js/web-elements-reactive';
10
10
  let ImageEvents = (() => {
11
11
  let _instanceExtraInitializers = [];
12
- let _private_enableLoadEvent_decorators;
13
- let _private_enableLoadEvent_descriptor;
14
- let _private_enableErrorEvent_decorators;
15
- let _private_enableErrorEvent_descriptor;
12
+ let __enableLoadEvent_decorators;
13
+ let __enableErrorEvent_decorators;
16
14
  return class ImageEvents {
17
15
  static {
18
16
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
19
- _private_enableLoadEvent_decorators = [registerEventEnableStatusChangeHandler('load')];
20
- _private_enableErrorEvent_decorators = [registerEventEnableStatusChangeHandler('error')];
21
- __esDecorate(this, _private_enableLoadEvent_descriptor = { value: __setFunctionName(function (status) {
22
- if (status) {
23
- this.#getImg().addEventListener('load', this.#teleportLoadEvent, {
24
- passive: true,
25
- });
26
- }
27
- else {
28
- this.#getImg().removeEventListener('load', this.#teleportLoadEvent);
29
- }
30
- }, "#enableLoadEvent") }, _private_enableLoadEvent_decorators, { kind: "method", name: "#enableLoadEvent", static: false, private: true, access: { has: obj => #enableLoadEvent in obj, get: obj => obj.#enableLoadEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
31
- __esDecorate(this, _private_enableErrorEvent_descriptor = { value: __setFunctionName(function (status) {
32
- if (status) {
33
- this.#getImg().addEventListener('error', this.#teleportErrorEvent, {
34
- passive: true,
35
- });
36
- }
37
- else {
38
- this.#getImg().removeEventListener('error', this.#teleportErrorEvent);
39
- }
40
- }, "#enableErrorEvent") }, _private_enableErrorEvent_decorators, { kind: "method", name: "#enableErrorEvent", static: false, private: true, access: { has: obj => #enableErrorEvent in obj, get: obj => obj.#enableErrorEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
17
+ __enableLoadEvent_decorators = [registerEventEnableStatusChangeHandler('load')];
18
+ __enableErrorEvent_decorators = [registerEventEnableStatusChangeHandler('error')];
19
+ __esDecorate(this, null, __enableLoadEvent_decorators, { kind: "method", name: "_enableLoadEvent", static: false, private: false, access: { has: obj => "_enableLoadEvent" in obj, get: obj => obj._enableLoadEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
20
+ __esDecorate(this, null, __enableErrorEvent_decorators, { kind: "method", name: "_enableErrorEvent", static: false, private: false, access: { has: obj => "_enableErrorEvent" in obj, get: obj => obj._enableErrorEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
41
21
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
42
22
  }
43
23
  static observedAttributes = [];
44
24
  #dom = __runInitializers(this, _instanceExtraInitializers);
45
25
  #getImg = genDomGetter(() => this.#dom.shadowRoot, '#img');
46
- get #enableLoadEvent() { return _private_enableLoadEvent_descriptor.value; }
47
- get #enableErrorEvent() { return _private_enableErrorEvent_descriptor.value; }
26
+ _enableLoadEvent(status) {
27
+ if (status) {
28
+ this.#getImg().addEventListener('load', this.#teleportLoadEvent, {
29
+ passive: true,
30
+ });
31
+ }
32
+ else {
33
+ this.#getImg().removeEventListener('load', this.#teleportLoadEvent);
34
+ }
35
+ }
36
+ _enableErrorEvent(status) {
37
+ if (status) {
38
+ this.#getImg().addEventListener('error', this.#teleportErrorEvent, {
39
+ passive: true,
40
+ });
41
+ }
42
+ else {
43
+ this.#getImg().removeEventListener('error', this.#teleportErrorEvent);
44
+ }
45
+ }
48
46
  #teleportLoadEvent = () => {
49
47
  this.#dom.dispatchEvent(new CustomEvent('load', {
50
48
  ...commonComponentEventSetting,
@@ -2,6 +2,11 @@ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  export declare class ImageSrc implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
3
3
  #private;
4
4
  static observedAttributes: string[];
5
+ _handleSrc: (this: void, newVal: string | null) => void;
6
+ _preloadPlaceholder(newVal: string | null): void;
7
+ _handleBlurRadius: (this: void, newVal: string | null) => void;
8
+ _handleCrossorigin: (this: void, newVal: string | null) => void;
9
+ _handleReferrerpolicy: (this: void, newVal: string | null) => void;
5
10
  constructor(dom: HTMLElement);
6
11
  connectedCallback(): void;
7
12
  }
@@ -1,4 +1,4 @@
1
- import { __esDecorate, __runInitializers, __setFunctionName } from "tslib";
1
+ import { __esDecorate, __runInitializers } from "tslib";
2
2
  /*
3
3
  // Copyright 2024 The Lynx Authors. All rights reserved.
4
4
  // Licensed under the Apache License Version 2.0 that can be found in the
@@ -7,37 +7,32 @@ import { __esDecorate, __runInitializers, __setFunctionName } from "tslib";
7
7
  import { bindToAttribute, bindToStyle, genDomGetter, registerAttributeHandler, } from '@lynx-js/web-elements-reactive';
8
8
  let ImageSrc = (() => {
9
9
  let _instanceExtraInitializers = [];
10
- let _private_handleSrc_decorators;
11
- let _private_handleSrc_initializers = [];
12
- let _private_handleSrc_extraInitializers = [];
13
- let _private_preloadPlaceholder_decorators;
14
- let _private_preloadPlaceholder_descriptor;
15
- let _private_handleBlurRadius_decorators;
16
- let _private_handleBlurRadius_initializers = [];
17
- let _private_handleBlurRadius_extraInitializers = [];
18
- let _private_handleCrossorigin_decorators;
19
- let _private_handleCrossorigin_initializers = [];
20
- let _private_handleCrossorigin_extraInitializers = [];
21
- let _private_handleReferrerpolicy_decorators;
22
- let _private_handleReferrerpolicy_initializers = [];
23
- let _private_handleReferrerpolicy_extraInitializers = [];
10
+ let __handleSrc_decorators;
11
+ let __handleSrc_initializers = [];
12
+ let __handleSrc_extraInitializers = [];
13
+ let __preloadPlaceholder_decorators;
14
+ let __handleBlurRadius_decorators;
15
+ let __handleBlurRadius_initializers = [];
16
+ let __handleBlurRadius_extraInitializers = [];
17
+ let __handleCrossorigin_decorators;
18
+ let __handleCrossorigin_initializers = [];
19
+ let __handleCrossorigin_extraInitializers = [];
20
+ let __handleReferrerpolicy_decorators;
21
+ let __handleReferrerpolicy_initializers = [];
22
+ let __handleReferrerpolicy_extraInitializers = [];
24
23
  return class ImageSrc {
25
24
  static {
26
25
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
27
- _private_handleSrc_decorators = [registerAttributeHandler('src', true)];
28
- _private_preloadPlaceholder_decorators = [registerAttributeHandler('placeholder', true)];
29
- _private_handleBlurRadius_decorators = [registerAttributeHandler('blur-radius', true)];
30
- _private_handleCrossorigin_decorators = [registerAttributeHandler('crossorigin', true)];
31
- _private_handleReferrerpolicy_decorators = [registerAttributeHandler('referrerpolicy', true)];
32
- __esDecorate(this, _private_preloadPlaceholder_descriptor = { value: __setFunctionName(function (newVal) {
33
- if (newVal) {
34
- new Image().src = newVal;
35
- }
36
- }, "#preloadPlaceholder") }, _private_preloadPlaceholder_decorators, { kind: "method", name: "#preloadPlaceholder", static: false, private: true, access: { has: obj => #preloadPlaceholder in obj, get: obj => obj.#preloadPlaceholder }, metadata: _metadata }, null, _instanceExtraInitializers);
37
- __esDecorate(null, null, _private_handleSrc_decorators, { kind: "field", name: "#handleSrc", static: false, private: true, access: { has: obj => #handleSrc in obj, get: obj => obj.#handleSrc, set: (obj, value) => { obj.#handleSrc = value; } }, metadata: _metadata }, _private_handleSrc_initializers, _private_handleSrc_extraInitializers);
38
- __esDecorate(null, null, _private_handleBlurRadius_decorators, { kind: "field", name: "#handleBlurRadius", static: false, private: true, access: { has: obj => #handleBlurRadius in obj, get: obj => obj.#handleBlurRadius, set: (obj, value) => { obj.#handleBlurRadius = value; } }, metadata: _metadata }, _private_handleBlurRadius_initializers, _private_handleBlurRadius_extraInitializers);
39
- __esDecorate(null, null, _private_handleCrossorigin_decorators, { kind: "field", name: "#handleCrossorigin", static: false, private: true, access: { has: obj => #handleCrossorigin in obj, get: obj => obj.#handleCrossorigin, set: (obj, value) => { obj.#handleCrossorigin = value; } }, metadata: _metadata }, _private_handleCrossorigin_initializers, _private_handleCrossorigin_extraInitializers);
40
- __esDecorate(null, null, _private_handleReferrerpolicy_decorators, { kind: "field", name: "#handleReferrerpolicy", static: false, private: true, access: { has: obj => #handleReferrerpolicy in obj, get: obj => obj.#handleReferrerpolicy, set: (obj, value) => { obj.#handleReferrerpolicy = value; } }, metadata: _metadata }, _private_handleReferrerpolicy_initializers, _private_handleReferrerpolicy_extraInitializers);
26
+ __handleSrc_decorators = [registerAttributeHandler('src', true)];
27
+ __preloadPlaceholder_decorators = [registerAttributeHandler('placeholder', true)];
28
+ __handleBlurRadius_decorators = [registerAttributeHandler('blur-radius', true)];
29
+ __handleCrossorigin_decorators = [registerAttributeHandler('crossorigin', true)];
30
+ __handleReferrerpolicy_decorators = [registerAttributeHandler('referrerpolicy', true)];
31
+ __esDecorate(this, null, __preloadPlaceholder_decorators, { kind: "method", name: "_preloadPlaceholder", static: false, private: false, access: { has: obj => "_preloadPlaceholder" in obj, get: obj => obj._preloadPlaceholder }, metadata: _metadata }, null, _instanceExtraInitializers);
32
+ __esDecorate(null, null, __handleSrc_decorators, { kind: "field", name: "_handleSrc", static: false, private: false, access: { has: obj => "_handleSrc" in obj, get: obj => obj._handleSrc, set: (obj, value) => { obj._handleSrc = value; } }, metadata: _metadata }, __handleSrc_initializers, __handleSrc_extraInitializers);
33
+ __esDecorate(null, null, __handleBlurRadius_decorators, { kind: "field", name: "_handleBlurRadius", static: false, private: false, access: { has: obj => "_handleBlurRadius" in obj, get: obj => obj._handleBlurRadius, set: (obj, value) => { obj._handleBlurRadius = value; } }, metadata: _metadata }, __handleBlurRadius_initializers, __handleBlurRadius_extraInitializers);
34
+ __esDecorate(null, null, __handleCrossorigin_decorators, { kind: "field", name: "_handleCrossorigin", static: false, private: false, access: { has: obj => "_handleCrossorigin" in obj, get: obj => obj._handleCrossorigin, set: (obj, value) => { obj._handleCrossorigin = value; } }, metadata: _metadata }, __handleCrossorigin_initializers, __handleCrossorigin_extraInitializers);
35
+ __esDecorate(null, null, __handleReferrerpolicy_decorators, { kind: "field", name: "_handleReferrerpolicy", static: false, private: false, access: { has: obj => "_handleReferrerpolicy" in obj, get: obj => obj._handleReferrerpolicy, set: (obj, value) => { obj._handleReferrerpolicy = value; } }, metadata: _metadata }, __handleReferrerpolicy_initializers, __handleReferrerpolicy_extraInitializers);
41
36
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
42
37
  }
43
38
  static observedAttributes = [
@@ -49,14 +44,18 @@ let ImageSrc = (() => {
49
44
  ];
50
45
  #dom = __runInitializers(this, _instanceExtraInitializers);
51
46
  #getImg = genDomGetter(() => this.#dom.shadowRoot, '#img');
52
- #handleSrc = __runInitializers(this, _private_handleSrc_initializers, bindToAttribute(this.#getImg, 'src', (newval) => {
47
+ _handleSrc = __runInitializers(this, __handleSrc_initializers, bindToAttribute(this.#getImg, 'src', (newval) => {
53
48
  return newval || this.#dom.getAttribute('placeholder');
54
49
  }));
55
- get #preloadPlaceholder() { return _private_preloadPlaceholder_descriptor.value; }
56
- #handleBlurRadius = (__runInitializers(this, _private_handleSrc_extraInitializers), __runInitializers(this, _private_handleBlurRadius_initializers, bindToStyle(this.#getImg, '--blur-radius', undefined, true)));
57
- #handleCrossorigin = (__runInitializers(this, _private_handleBlurRadius_extraInitializers), __runInitializers(this, _private_handleCrossorigin_initializers, bindToAttribute(this.#getImg, 'crossorigin')));
58
- #handleReferrerpolicy = (__runInitializers(this, _private_handleCrossorigin_extraInitializers), __runInitializers(this, _private_handleReferrerpolicy_initializers, bindToAttribute(this.#getImg, 'referrerpolicy')));
59
- #onImageError = (__runInitializers(this, _private_handleReferrerpolicy_extraInitializers), () => {
50
+ _preloadPlaceholder(newVal) {
51
+ if (newVal) {
52
+ new Image().src = newVal;
53
+ }
54
+ }
55
+ _handleBlurRadius = (__runInitializers(this, __handleSrc_extraInitializers), __runInitializers(this, __handleBlurRadius_initializers, bindToStyle(this.#getImg, '--blur-radius', undefined, true)));
56
+ _handleCrossorigin = (__runInitializers(this, __handleBlurRadius_extraInitializers), __runInitializers(this, __handleCrossorigin_initializers, bindToAttribute(this.#getImg, 'crossorigin')));
57
+ _handleReferrerpolicy = (__runInitializers(this, __handleCrossorigin_extraInitializers), __runInitializers(this, __handleReferrerpolicy_initializers, bindToAttribute(this.#getImg, 'referrerpolicy')));
58
+ #onImageError = (__runInitializers(this, __handleReferrerpolicy_extraInitializers), () => {
60
59
  const currentSrc = this.#getImg().src;
61
60
  const placeholder = this.#dom.getAttribute('placeholder');
62
61
  if (placeholder && currentSrc !== placeholder) {
@@ -70,7 +69,7 @@ let ImageSrc = (() => {
70
69
  connectedCallback() {
71
70
  if (this.#dom.getAttribute('src') === null
72
71
  || this.#dom.getAttribute('src') === '') {
73
- this.#handleSrc(null);
72
+ this._handleSrc(null);
74
73
  }
75
74
  }
76
75
  };
@@ -5,5 +5,10 @@ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
5
5
  export declare class InputBaseAttributes implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
6
6
  #private;
7
7
  static observedAttributes: string[];
8
+ _handlerConfirmType: (this: void, newVal: string | null) => void;
9
+ _handlerMaxlength: (this: void, newVal: string | null) => void;
10
+ _handleReadonly: (this: void, newVal: string | null) => void;
11
+ _handleType(value: string | null): void;
12
+ _handleSpellCheck: (this: void, newVal: string | null) => void;
8
13
  constructor(dom: HTMLElement);
9
14
  }
@@ -1,4 +1,4 @@
1
- import { __esDecorate, __runInitializers, __setFunctionName } from "tslib";
1
+ import { __esDecorate, __runInitializers } from "tslib";
2
2
  /*
3
3
  // Copyright 2024 The Lynx Authors. All rights reserved.
4
4
  // Licensed under the Apache License Version 2.0 that can be found in the
@@ -10,58 +10,32 @@ import { bindToAttribute, genDomGetter, registerAttributeHandler, } from '@lynx-
10
10
  */
11
11
  let InputBaseAttributes = (() => {
12
12
  let _instanceExtraInitializers = [];
13
- let _private_handlerConfirmType_decorators;
14
- let _private_handlerConfirmType_initializers = [];
15
- let _private_handlerConfirmType_extraInitializers = [];
16
- let _private_handlerMaxlength_decorators;
17
- let _private_handlerMaxlength_initializers = [];
18
- let _private_handlerMaxlength_extraInitializers = [];
19
- let _private_handleReadonly_decorators;
20
- let _private_handleReadonly_initializers = [];
21
- let _private_handleReadonly_extraInitializers = [];
22
- let _private_handleType_decorators;
23
- let _private_handleType_descriptor;
24
- let _private_handleSpellCheck_decorators;
25
- let _private_handleSpellCheck_initializers = [];
26
- let _private_handleSpellCheck_extraInitializers = [];
13
+ let __handlerConfirmType_decorators;
14
+ let __handlerConfirmType_initializers = [];
15
+ let __handlerConfirmType_extraInitializers = [];
16
+ let __handlerMaxlength_decorators;
17
+ let __handlerMaxlength_initializers = [];
18
+ let __handlerMaxlength_extraInitializers = [];
19
+ let __handleReadonly_decorators;
20
+ let __handleReadonly_initializers = [];
21
+ let __handleReadonly_extraInitializers = [];
22
+ let __handleType_decorators;
23
+ let __handleSpellCheck_decorators;
24
+ let __handleSpellCheck_initializers = [];
25
+ let __handleSpellCheck_extraInitializers = [];
27
26
  return class InputBaseAttributes {
28
27
  static {
29
28
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
30
- _private_handlerConfirmType_decorators = [registerAttributeHandler('confirm-type', true)];
31
- _private_handlerMaxlength_decorators = [registerAttributeHandler('maxlength', true)];
32
- _private_handleReadonly_decorators = [registerAttributeHandler('readonly', true)];
33
- _private_handleType_decorators = [registerAttributeHandler('type', true)];
34
- _private_handleSpellCheck_decorators = [registerAttributeHandler('ios-spell-check', true), registerAttributeHandler('spell-check', true)];
35
- __esDecorate(this, _private_handleType_descriptor = { value: __setFunctionName(function (value) {
36
- const attributeValue = value;
37
- // @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode
38
- let inputMode = 'text';
39
- let inputType = 'text';
40
- /**
41
- * For number / digit type, if the user is typing "2.", the raw value is expected to remain "2." rather than being altered.
42
- */
43
- if (attributeValue === 'digit') {
44
- inputMode = 'numeric';
45
- }
46
- else if (attributeValue === 'number') {
47
- inputMode = 'decimal';
48
- }
49
- else if (attributeValue === 'email') {
50
- inputMode = 'email';
51
- }
52
- else if (attributeValue === 'tel') {
53
- inputMode = 'tel';
54
- }
55
- else {
56
- inputType = attributeValue;
57
- }
58
- this.#setInputmode(inputMode);
59
- this.#setType(inputType);
60
- }, "#handleType") }, _private_handleType_decorators, { kind: "method", name: "#handleType", static: false, private: true, access: { has: obj => #handleType in obj, get: obj => obj.#handleType }, metadata: _metadata }, null, _instanceExtraInitializers);
61
- __esDecorate(null, null, _private_handlerConfirmType_decorators, { kind: "field", name: "#handlerConfirmType", static: false, private: true, access: { has: obj => #handlerConfirmType in obj, get: obj => obj.#handlerConfirmType, set: (obj, value) => { obj.#handlerConfirmType = value; } }, metadata: _metadata }, _private_handlerConfirmType_initializers, _private_handlerConfirmType_extraInitializers);
62
- __esDecorate(null, null, _private_handlerMaxlength_decorators, { kind: "field", name: "#handlerMaxlength", static: false, private: true, access: { has: obj => #handlerMaxlength in obj, get: obj => obj.#handlerMaxlength, set: (obj, value) => { obj.#handlerMaxlength = value; } }, metadata: _metadata }, _private_handlerMaxlength_initializers, _private_handlerMaxlength_extraInitializers);
63
- __esDecorate(null, null, _private_handleReadonly_decorators, { kind: "field", name: "#handleReadonly", static: false, private: true, access: { has: obj => #handleReadonly in obj, get: obj => obj.#handleReadonly, set: (obj, value) => { obj.#handleReadonly = value; } }, metadata: _metadata }, _private_handleReadonly_initializers, _private_handleReadonly_extraInitializers);
64
- __esDecorate(null, null, _private_handleSpellCheck_decorators, { kind: "field", name: "#handleSpellCheck", static: false, private: true, access: { has: obj => #handleSpellCheck in obj, get: obj => obj.#handleSpellCheck, set: (obj, value) => { obj.#handleSpellCheck = value; } }, metadata: _metadata }, _private_handleSpellCheck_initializers, _private_handleSpellCheck_extraInitializers);
29
+ __handlerConfirmType_decorators = [registerAttributeHandler('confirm-type', true)];
30
+ __handlerMaxlength_decorators = [registerAttributeHandler('maxlength', true)];
31
+ __handleReadonly_decorators = [registerAttributeHandler('readonly', true)];
32
+ __handleType_decorators = [registerAttributeHandler('type', true)];
33
+ __handleSpellCheck_decorators = [registerAttributeHandler('ios-spell-check', true), registerAttributeHandler('spell-check', true)];
34
+ __esDecorate(this, null, __handleType_decorators, { kind: "method", name: "_handleType", static: false, private: false, access: { has: obj => "_handleType" in obj, get: obj => obj._handleType }, metadata: _metadata }, null, _instanceExtraInitializers);
35
+ __esDecorate(null, null, __handlerConfirmType_decorators, { kind: "field", name: "_handlerConfirmType", static: false, private: false, access: { has: obj => "_handlerConfirmType" in obj, get: obj => obj._handlerConfirmType, set: (obj, value) => { obj._handlerConfirmType = value; } }, metadata: _metadata }, __handlerConfirmType_initializers, __handlerConfirmType_extraInitializers);
36
+ __esDecorate(null, null, __handlerMaxlength_decorators, { kind: "field", name: "_handlerMaxlength", static: false, private: false, access: { has: obj => "_handlerMaxlength" in obj, get: obj => obj._handlerMaxlength, set: (obj, value) => { obj._handlerMaxlength = value; } }, metadata: _metadata }, __handlerMaxlength_initializers, __handlerMaxlength_extraInitializers);
37
+ __esDecorate(null, null, __handleReadonly_decorators, { kind: "field", name: "_handleReadonly", static: false, private: false, access: { has: obj => "_handleReadonly" in obj, get: obj => obj._handleReadonly, set: (obj, value) => { obj._handleReadonly = value; } }, metadata: _metadata }, __handleReadonly_initializers, __handleReadonly_extraInitializers);
38
+ __esDecorate(null, null, __handleSpellCheck_decorators, { kind: "field", name: "_handleSpellCheck", static: false, private: false, access: { has: obj => "_handleSpellCheck" in obj, get: obj => obj._handleSpellCheck, set: (obj, value) => { obj._handleSpellCheck = value; } }, metadata: _metadata }, __handleSpellCheck_initializers, __handleSpellCheck_extraInitializers);
65
39
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
66
40
  }
67
41
  static observedAttributes = [
@@ -73,25 +47,49 @@ let InputBaseAttributes = (() => {
73
47
  'spell-check',
74
48
  ];
75
49
  #dom = __runInitializers(this, _instanceExtraInitializers);
76
- #inputType = 'text';
77
50
  #getInputElement = genDomGetter(() => this.#dom.shadowRoot, '#input');
78
- #handlerConfirmType = __runInitializers(this, _private_handlerConfirmType_initializers, bindToAttribute(this.#getInputElement, 'enterkeyhint', (val) => {
51
+ _handlerConfirmType = __runInitializers(this, __handlerConfirmType_initializers, bindToAttribute(this.#getInputElement, 'enterkeyhint', (val) => {
79
52
  if (val === null)
80
53
  return 'send';
81
54
  return val;
82
55
  }));
83
- #handlerMaxlength = (__runInitializers(this, _private_handlerConfirmType_extraInitializers), __runInitializers(this, _private_handlerMaxlength_initializers, bindToAttribute(this.#getInputElement, 'maxlength', (val) => {
56
+ _handlerMaxlength = (__runInitializers(this, __handlerConfirmType_extraInitializers), __runInitializers(this, __handlerMaxlength_initializers, bindToAttribute(this.#getInputElement, 'maxlength', (val) => {
84
57
  if (val === null)
85
58
  return '140';
86
59
  return val;
87
60
  })));
88
- #handleReadonly = (__runInitializers(this, _private_handlerMaxlength_extraInitializers), __runInitializers(this, _private_handleReadonly_initializers, bindToAttribute(this.#getInputElement, 'readonly', (value) => (value !== null ? '' : null))));
89
- #setType = (__runInitializers(this, _private_handleReadonly_extraInitializers), bindToAttribute(this.#getInputElement, 'type'));
61
+ _handleReadonly = (__runInitializers(this, __handlerMaxlength_extraInitializers), __runInitializers(this, __handleReadonly_initializers, bindToAttribute(this.#getInputElement, 'readonly', (value) => (value !== null ? '' : null))));
62
+ #setType = (__runInitializers(this, __handleReadonly_extraInitializers), bindToAttribute(this.#getInputElement, 'type'));
90
63
  #setInputmode = bindToAttribute(this.#getInputElement, 'inputmode');
91
- get #handleType() { return _private_handleType_descriptor.value; }
92
- #handleSpellCheck = __runInitializers(this, _private_handleSpellCheck_initializers, bindToAttribute(this.#getInputElement, 'spellcheck', (value) => (value === null ? 'false' : 'true')));
64
+ _handleType(value) {
65
+ const attributeValue = value;
66
+ // @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode
67
+ let inputMode = 'text';
68
+ let inputType = 'text';
69
+ /**
70
+ * For number / digit type, if the user is typing "2.", the raw value is expected to remain "2." rather than being altered.
71
+ */
72
+ if (attributeValue === 'digit') {
73
+ inputMode = 'numeric';
74
+ }
75
+ else if (attributeValue === 'number') {
76
+ inputMode = 'decimal';
77
+ }
78
+ else if (attributeValue === 'email') {
79
+ inputMode = 'email';
80
+ }
81
+ else if (attributeValue === 'tel') {
82
+ inputMode = 'tel';
83
+ }
84
+ else {
85
+ inputType = attributeValue;
86
+ }
87
+ this.#setInputmode(inputMode);
88
+ this.#setType(inputType);
89
+ }
90
+ _handleSpellCheck = __runInitializers(this, __handleSpellCheck_initializers, bindToAttribute(this.#getInputElement, 'spellcheck', (value) => (value === null ? 'false' : 'true')));
93
91
  constructor(dom) {
94
- __runInitializers(this, _private_handleSpellCheck_extraInitializers);
92
+ __runInitializers(this, __handleSpellCheck_extraInitializers);
95
93
  this.#dom = dom;
96
94
  }
97
95
  };
@@ -2,5 +2,10 @@ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  export declare class Placeholder implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
3
3
  #private;
4
4
  static observedAttributes: string[];
5
+ _handlerPlaceholder: (this: void, newVal: string | null) => void;
6
+ _handlerPlaceholderColor: (this: void, newVal: string | null) => void;
7
+ _handlerPlaceholderFontFamily: (this: void, newVal: string | null) => void;
8
+ _handlerPlaceholderFontSize: (this: void, newVal: string | null) => void;
9
+ _handlerPlaceholderFontWeight: (this: void, newVal: string | null) => void;
5
10
  constructor(dom: HTMLElement);
6
11
  }
@@ -6,34 +6,34 @@ import { __esDecorate, __runInitializers } from "tslib";
6
6
  */
7
7
  import { bindToAttribute, bindToStyle, genDomGetter, registerAttributeHandler, } from '@lynx-js/web-elements-reactive';
8
8
  let Placeholder = (() => {
9
- let _private_handlerPlaceholder_decorators;
10
- let _private_handlerPlaceholder_initializers = [];
11
- let _private_handlerPlaceholder_extraInitializers = [];
12
- let _private_handlerPlaceholderColor_decorators;
13
- let _private_handlerPlaceholderColor_initializers = [];
14
- let _private_handlerPlaceholderColor_extraInitializers = [];
15
- let _private_handlerPlaceholderFontFamily_decorators;
16
- let _private_handlerPlaceholderFontFamily_initializers = [];
17
- let _private_handlerPlaceholderFontFamily_extraInitializers = [];
18
- let _private_handlerPlaceholderFontSize_decorators;
19
- let _private_handlerPlaceholderFontSize_initializers = [];
20
- let _private_handlerPlaceholderFontSize_extraInitializers = [];
21
- let _private_handlerPlaceholderFontWeight_decorators;
22
- let _private_handlerPlaceholderFontWeight_initializers = [];
23
- let _private_handlerPlaceholderFontWeight_extraInitializers = [];
9
+ let __handlerPlaceholder_decorators;
10
+ let __handlerPlaceholder_initializers = [];
11
+ let __handlerPlaceholder_extraInitializers = [];
12
+ let __handlerPlaceholderColor_decorators;
13
+ let __handlerPlaceholderColor_initializers = [];
14
+ let __handlerPlaceholderColor_extraInitializers = [];
15
+ let __handlerPlaceholderFontFamily_decorators;
16
+ let __handlerPlaceholderFontFamily_initializers = [];
17
+ let __handlerPlaceholderFontFamily_extraInitializers = [];
18
+ let __handlerPlaceholderFontSize_decorators;
19
+ let __handlerPlaceholderFontSize_initializers = [];
20
+ let __handlerPlaceholderFontSize_extraInitializers = [];
21
+ let __handlerPlaceholderFontWeight_decorators;
22
+ let __handlerPlaceholderFontWeight_initializers = [];
23
+ let __handlerPlaceholderFontWeight_extraInitializers = [];
24
24
  return class Placeholder {
25
25
  static {
26
26
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
27
- _private_handlerPlaceholder_decorators = [registerAttributeHandler('placeholder', true)];
28
- _private_handlerPlaceholderColor_decorators = [registerAttributeHandler('placeholder-color', true)];
29
- _private_handlerPlaceholderFontFamily_decorators = [registerAttributeHandler('placeholder-font-family', true)];
30
- _private_handlerPlaceholderFontSize_decorators = [registerAttributeHandler('placeholder-font-size', true)];
31
- _private_handlerPlaceholderFontWeight_decorators = [registerAttributeHandler('placeholder-font-weight', true)];
32
- __esDecorate(null, null, _private_handlerPlaceholder_decorators, { kind: "field", name: "#handlerPlaceholder", static: false, private: true, access: { has: obj => #handlerPlaceholder in obj, get: obj => obj.#handlerPlaceholder, set: (obj, value) => { obj.#handlerPlaceholder = value; } }, metadata: _metadata }, _private_handlerPlaceholder_initializers, _private_handlerPlaceholder_extraInitializers);
33
- __esDecorate(null, null, _private_handlerPlaceholderColor_decorators, { kind: "field", name: "#handlerPlaceholderColor", static: false, private: true, access: { has: obj => #handlerPlaceholderColor in obj, get: obj => obj.#handlerPlaceholderColor, set: (obj, value) => { obj.#handlerPlaceholderColor = value; } }, metadata: _metadata }, _private_handlerPlaceholderColor_initializers, _private_handlerPlaceholderColor_extraInitializers);
34
- __esDecorate(null, null, _private_handlerPlaceholderFontFamily_decorators, { kind: "field", name: "#handlerPlaceholderFontFamily", static: false, private: true, access: { has: obj => #handlerPlaceholderFontFamily in obj, get: obj => obj.#handlerPlaceholderFontFamily, set: (obj, value) => { obj.#handlerPlaceholderFontFamily = value; } }, metadata: _metadata }, _private_handlerPlaceholderFontFamily_initializers, _private_handlerPlaceholderFontFamily_extraInitializers);
35
- __esDecorate(null, null, _private_handlerPlaceholderFontSize_decorators, { kind: "field", name: "#handlerPlaceholderFontSize", static: false, private: true, access: { has: obj => #handlerPlaceholderFontSize in obj, get: obj => obj.#handlerPlaceholderFontSize, set: (obj, value) => { obj.#handlerPlaceholderFontSize = value; } }, metadata: _metadata }, _private_handlerPlaceholderFontSize_initializers, _private_handlerPlaceholderFontSize_extraInitializers);
36
- __esDecorate(null, null, _private_handlerPlaceholderFontWeight_decorators, { kind: "field", name: "#handlerPlaceholderFontWeight", static: false, private: true, access: { has: obj => #handlerPlaceholderFontWeight in obj, get: obj => obj.#handlerPlaceholderFontWeight, set: (obj, value) => { obj.#handlerPlaceholderFontWeight = value; } }, metadata: _metadata }, _private_handlerPlaceholderFontWeight_initializers, _private_handlerPlaceholderFontWeight_extraInitializers);
27
+ __handlerPlaceholder_decorators = [registerAttributeHandler('placeholder', true)];
28
+ __handlerPlaceholderColor_decorators = [registerAttributeHandler('placeholder-color', true)];
29
+ __handlerPlaceholderFontFamily_decorators = [registerAttributeHandler('placeholder-font-family', true)];
30
+ __handlerPlaceholderFontSize_decorators = [registerAttributeHandler('placeholder-font-size', true)];
31
+ __handlerPlaceholderFontWeight_decorators = [registerAttributeHandler('placeholder-font-weight', true)];
32
+ __esDecorate(null, null, __handlerPlaceholder_decorators, { kind: "field", name: "_handlerPlaceholder", static: false, private: false, access: { has: obj => "_handlerPlaceholder" in obj, get: obj => obj._handlerPlaceholder, set: (obj, value) => { obj._handlerPlaceholder = value; } }, metadata: _metadata }, __handlerPlaceholder_initializers, __handlerPlaceholder_extraInitializers);
33
+ __esDecorate(null, null, __handlerPlaceholderColor_decorators, { kind: "field", name: "_handlerPlaceholderColor", static: false, private: false, access: { has: obj => "_handlerPlaceholderColor" in obj, get: obj => obj._handlerPlaceholderColor, set: (obj, value) => { obj._handlerPlaceholderColor = value; } }, metadata: _metadata }, __handlerPlaceholderColor_initializers, __handlerPlaceholderColor_extraInitializers);
34
+ __esDecorate(null, null, __handlerPlaceholderFontFamily_decorators, { kind: "field", name: "_handlerPlaceholderFontFamily", static: false, private: false, access: { has: obj => "_handlerPlaceholderFontFamily" in obj, get: obj => obj._handlerPlaceholderFontFamily, set: (obj, value) => { obj._handlerPlaceholderFontFamily = value; } }, metadata: _metadata }, __handlerPlaceholderFontFamily_initializers, __handlerPlaceholderFontFamily_extraInitializers);
35
+ __esDecorate(null, null, __handlerPlaceholderFontSize_decorators, { kind: "field", name: "_handlerPlaceholderFontSize", static: false, private: false, access: { has: obj => "_handlerPlaceholderFontSize" in obj, get: obj => obj._handlerPlaceholderFontSize, set: (obj, value) => { obj._handlerPlaceholderFontSize = value; } }, metadata: _metadata }, __handlerPlaceholderFontSize_initializers, __handlerPlaceholderFontSize_extraInitializers);
36
+ __esDecorate(null, null, __handlerPlaceholderFontWeight_decorators, { kind: "field", name: "_handlerPlaceholderFontWeight", static: false, private: false, access: { has: obj => "_handlerPlaceholderFontWeight" in obj, get: obj => obj._handlerPlaceholderFontWeight, set: (obj, value) => { obj._handlerPlaceholderFontWeight = value; } }, metadata: _metadata }, __handlerPlaceholderFontWeight_initializers, __handlerPlaceholderFontWeight_extraInitializers);
37
37
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
38
38
  }
39
39
  static observedAttributes = [
@@ -45,13 +45,13 @@ let Placeholder = (() => {
45
45
  ];
46
46
  #dom;
47
47
  #getInputElement = genDomGetter(() => this.#dom.shadowRoot, '#input');
48
- #handlerPlaceholder = __runInitializers(this, _private_handlerPlaceholder_initializers, bindToAttribute(this.#getInputElement, 'placeholder'));
49
- #handlerPlaceholderColor = (__runInitializers(this, _private_handlerPlaceholder_extraInitializers), __runInitializers(this, _private_handlerPlaceholderColor_initializers, bindToStyle(this.#getInputElement, '--placeholder-color', undefined, true)));
50
- #handlerPlaceholderFontFamily = (__runInitializers(this, _private_handlerPlaceholderColor_extraInitializers), __runInitializers(this, _private_handlerPlaceholderFontFamily_initializers, bindToStyle(this.#getInputElement, '--placeholder-font-family', undefined, true)));
51
- #handlerPlaceholderFontSize = (__runInitializers(this, _private_handlerPlaceholderFontFamily_extraInitializers), __runInitializers(this, _private_handlerPlaceholderFontSize_initializers, bindToStyle(this.#getInputElement, '--placeholder-font-size', undefined, true)));
52
- #handlerPlaceholderFontWeight = (__runInitializers(this, _private_handlerPlaceholderFontSize_extraInitializers), __runInitializers(this, _private_handlerPlaceholderFontWeight_initializers, bindToStyle(this.#getInputElement, '--placeholder-font-weight', undefined, true)));
48
+ _handlerPlaceholder = __runInitializers(this, __handlerPlaceholder_initializers, bindToAttribute(this.#getInputElement, 'placeholder'));
49
+ _handlerPlaceholderColor = (__runInitializers(this, __handlerPlaceholder_extraInitializers), __runInitializers(this, __handlerPlaceholderColor_initializers, bindToStyle(this.#getInputElement, '--placeholder-color', undefined, true)));
50
+ _handlerPlaceholderFontFamily = (__runInitializers(this, __handlerPlaceholderColor_extraInitializers), __runInitializers(this, __handlerPlaceholderFontFamily_initializers, bindToStyle(this.#getInputElement, '--placeholder-font-family', undefined, true)));
51
+ _handlerPlaceholderFontSize = (__runInitializers(this, __handlerPlaceholderFontFamily_extraInitializers), __runInitializers(this, __handlerPlaceholderFontSize_initializers, bindToStyle(this.#getInputElement, '--placeholder-font-size', undefined, true)));
52
+ _handlerPlaceholderFontWeight = (__runInitializers(this, __handlerPlaceholderFontSize_extraInitializers), __runInitializers(this, __handlerPlaceholderFontWeight_initializers, bindToStyle(this.#getInputElement, '--placeholder-font-weight', undefined, true)));
53
53
  constructor(dom) {
54
- __runInitializers(this, _private_handlerPlaceholderFontWeight_extraInitializers);
54
+ __runInitializers(this, __handlerPlaceholderFontWeight_extraInitializers);
55
55
  this.#dom = dom;
56
56
  }
57
57
  };
@@ -5,5 +5,8 @@ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
5
5
  export declare class XInputAttribute implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
6
6
  #private;
7
7
  static observedAttributes: string[];
8
+ _handleValue(newValue: string | null): void;
9
+ _handleDisabled: (this: void, newVal: string | null) => void;
10
+ _handleAutocomplete: (this: void, newVal: string | null) => void;
8
11
  constructor(dom: HTMLElement);
9
12
  }