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

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
@@ -7,31 +7,15 @@ import { __esDecorate, __runInitializers, __setFunctionName } from "tslib";
7
7
  import { bindSwitchToEventListener, genDomGetter, registerAttributeHandler, } from '@lynx-js/web-elements-reactive';
8
8
  let XSwiperCircular = (() => {
9
9
  let _instanceExtraInitializers = [];
10
- let _private_handleCircular_decorators;
11
- let _private_handleCircular_descriptor;
12
- let _private_handleVerticalChange_decorators;
13
- let _private_handleVerticalChange_descriptor;
10
+ let __handleCircular_decorators;
11
+ let __handleVerticalChange_decorators;
14
12
  return class XSwiperCircular {
15
13
  static {
16
14
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
17
- _private_handleCircular_decorators = [registerAttributeHandler('circular', false)];
18
- _private_handleVerticalChange_decorators = [registerAttributeHandler('vertical', true)];
19
- __esDecorate(this, _private_handleCircular_descriptor = { value: __setFunctionName(function (newVal) {
20
- this.#listeners.forEach((l) => l(newVal != null));
21
- if (newVal !== null) {
22
- this.#changeEventHandler({
23
- detail: {
24
- current: this.#dom.currentIndex,
25
- isDragged: false,
26
- __isFirstLayout: true,
27
- },
28
- });
29
- }
30
- }, "#handleCircular") }, _private_handleCircular_decorators, { kind: "method", name: "#handleCircular", static: false, private: true, access: { has: obj => #handleCircular in obj, get: obj => obj.#handleCircular }, metadata: _metadata }, null, _instanceExtraInitializers);
31
- __esDecorate(this, _private_handleVerticalChange_descriptor = { value: __setFunctionName(function (newVal) {
32
- const enable = newVal !== null;
33
- this.#isVertical = enable;
34
- }, "#handleVerticalChange") }, _private_handleVerticalChange_decorators, { kind: "method", name: "#handleVerticalChange", static: false, private: true, access: { has: obj => #handleVerticalChange in obj, get: obj => obj.#handleVerticalChange }, metadata: _metadata }, null, _instanceExtraInitializers);
15
+ __handleCircular_decorators = [registerAttributeHandler('circular', false)];
16
+ __handleVerticalChange_decorators = [registerAttributeHandler('vertical', true)];
17
+ __esDecorate(this, null, __handleCircular_decorators, { kind: "method", name: "_handleCircular", static: false, private: false, access: { has: obj => "_handleCircular" in obj, get: obj => obj._handleCircular }, metadata: _metadata }, null, _instanceExtraInitializers);
18
+ __esDecorate(this, null, __handleVerticalChange_decorators, { kind: "method", name: "_handleVerticalChange", static: false, private: false, access: { has: obj => "_handleVerticalChange" in obj, get: obj => obj._handleVerticalChange }, metadata: _metadata }, null, _instanceExtraInitializers);
35
19
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
36
20
  }
37
21
  static observedAttributes = ['circular', 'vertical'];
@@ -138,7 +122,18 @@ let XSwiperCircular = (() => {
138
122
  bindSwitchToEventListener(() => this.#dom, 'touchend', this.#handleEndEvent.bind(this), { passive: false }),
139
123
  bindSwitchToEventListener(() => this.#dom, 'touchcancel', this.#handleEndEvent.bind(this), { passive: false }),
140
124
  ];
141
- get #handleCircular() { return _private_handleCircular_descriptor.value; }
125
+ _handleCircular(newVal) {
126
+ this.#listeners.forEach((l) => l(newVal != null));
127
+ if (newVal !== null) {
128
+ this.#changeEventHandler({
129
+ detail: {
130
+ current: this.#dom.currentIndex,
131
+ isDragged: false,
132
+ __isFirstLayout: true,
133
+ },
134
+ });
135
+ }
136
+ }
142
137
  #handleTouchEvent(event) {
143
138
  const touch = event.touches.item(0);
144
139
  if (touch) {
@@ -157,7 +152,10 @@ let XSwiperCircular = (() => {
157
152
  this.#scrollToSnapPosition();
158
153
  this.#pervTouchPosition = undefined;
159
154
  }
160
- get #handleVerticalChange() { return _private_handleVerticalChange_descriptor.value; }
155
+ _handleVerticalChange(newVal) {
156
+ const enable = newVal !== null;
157
+ this.#isVertical = enable;
158
+ }
161
159
  #scrollTimer;
162
160
  #startScrolling() {
163
161
  if (!this.#scrollTimer) {
@@ -4,5 +4,7 @@ export declare class XSwipeEvents implements InstanceType<AttributeReactiveClass
4
4
  #private;
5
5
  static observedAttributes: never[];
6
6
  constructor(dom: XSwiper);
7
+ _handleEnableTransitionEvent: (this: void, enable: boolean) => void;
8
+ _enableScrollEventProcessor(value: boolean, eventName: string): void;
7
9
  connectedCallback(): void;
8
10
  }
@@ -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,25 +10,17 @@ import { useScrollEnd } from '../common/constants.js';
10
10
  import { registerEventEnableStatusChangeHandler } from '@lynx-js/web-elements-reactive';
11
11
  let XSwipeEvents = (() => {
12
12
  let _instanceExtraInitializers = [];
13
- let _private_handleEnableTransitionEvent_decorators;
14
- let _private_handleEnableTransitionEvent_initializers = [];
15
- let _private_handleEnableTransitionEvent_extraInitializers = [];
16
- let _private_enableScrollEventProcessor_decorators;
17
- let _private_enableScrollEventProcessor_descriptor;
13
+ let __handleEnableTransitionEvent_decorators;
14
+ let __handleEnableTransitionEvent_initializers = [];
15
+ let __handleEnableTransitionEvent_extraInitializers = [];
16
+ let __enableScrollEventProcessor_decorators;
18
17
  return class XSwipeEvents {
19
18
  static {
20
19
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
21
- _private_handleEnableTransitionEvent_decorators = [registerEventEnableStatusChangeHandler('transition')];
22
- _private_enableScrollEventProcessor_decorators = [registerEventEnableStatusChangeHandler('scrollstart'), registerEventEnableStatusChangeHandler('lynxscrollend'), registerEventEnableStatusChangeHandler('change'), registerEventEnableStatusChangeHandler('change-event-for-indicator')];
23
- __esDecorate(this, _private_enableScrollEventProcessor_descriptor = { value: __setFunctionName(function (value, eventName) {
24
- this
25
- .#eventSwitches[eventName] = value;
26
- const { lynxscrollend, scrollstart, change } = this.#eventSwitches;
27
- const changeEventEnabled = change || lynxscrollend || scrollstart
28
- || this.#eventSwitches['change-event-for-indicator'];
29
- this.#listeners.forEach((l) => l(changeEventEnabled));
30
- }, "#enableScrollEventProcessor") }, _private_enableScrollEventProcessor_decorators, { kind: "method", name: "#enableScrollEventProcessor", static: false, private: true, access: { has: obj => #enableScrollEventProcessor in obj, get: obj => obj.#enableScrollEventProcessor }, metadata: _metadata }, null, _instanceExtraInitializers);
31
- __esDecorate(null, null, _private_handleEnableTransitionEvent_decorators, { kind: "field", name: "#handleEnableTransitionEvent", static: false, private: true, access: { has: obj => #handleEnableTransitionEvent in obj, get: obj => obj.#handleEnableTransitionEvent, set: (obj, value) => { obj.#handleEnableTransitionEvent = value; } }, metadata: _metadata }, _private_handleEnableTransitionEvent_initializers, _private_handleEnableTransitionEvent_extraInitializers);
20
+ __handleEnableTransitionEvent_decorators = [registerEventEnableStatusChangeHandler('transition')];
21
+ __enableScrollEventProcessor_decorators = [registerEventEnableStatusChangeHandler('scrollstart'), registerEventEnableStatusChangeHandler('lynxscrollend'), registerEventEnableStatusChangeHandler('change'), registerEventEnableStatusChangeHandler('change-event-for-indicator')];
22
+ __esDecorate(this, null, __enableScrollEventProcessor_decorators, { kind: "method", name: "_enableScrollEventProcessor", static: false, private: false, access: { has: obj => "_enableScrollEventProcessor" in obj, get: obj => obj._enableScrollEventProcessor }, metadata: _metadata }, null, _instanceExtraInitializers);
23
+ __esDecorate(null, null, __handleEnableTransitionEvent_decorators, { kind: "field", name: "_handleEnableTransitionEvent", static: false, private: false, access: { has: obj => "_handleEnableTransitionEvent" in obj, get: obj => obj._handleEnableTransitionEvent, set: (obj, value) => { obj._handleEnableTransitionEvent = value; } }, metadata: _metadata }, __handleEnableTransitionEvent_initializers, __handleEnableTransitionEvent_extraInitializers);
32
24
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
33
25
  }
34
26
  static observedAttributes = [];
@@ -42,7 +34,7 @@ let XSwipeEvents = (() => {
42
34
  this.#dom = dom;
43
35
  }
44
36
  #getContentContainer = genDomGetter(() => this.#dom.shadowRoot, '#content').bind(this);
45
- #handleEnableTransitionEvent = __runInitializers(this, _private_handleEnableTransitionEvent_initializers, bindSwitchToEventListener(this.#getContentContainer, 'scroll', this.#scrollEventListenerForTransition, { passive: true }));
37
+ _handleEnableTransitionEvent = __runInitializers(this, __handleEnableTransitionEvent_initializers, bindSwitchToEventListener(this.#getContentContainer, 'scroll', this.#scrollEventListenerForTransition, { passive: true }));
46
38
  #handleScroll() {
47
39
  if (!useScrollEnd) {
48
40
  // debounce
@@ -115,7 +107,7 @@ let XSwipeEvents = (() => {
115
107
  },
116
108
  }));
117
109
  }
118
- #listeners = (__runInitializers(this, _private_handleEnableTransitionEvent_extraInitializers), [
110
+ #listeners = (__runInitializers(this, __handleEnableTransitionEvent_extraInitializers), [
119
111
  bindSwitchToEventListener(this.#getContentContainer, 'scroll', this.#handleScroll.bind(this), { passive: true }),
120
112
  bindSwitchToEventListener(this.#getContentContainer, 'touchstart', this.#handleTouchStart.bind(this), { passive: true }),
121
113
  bindSwitchToEventListener(this.#getContentContainer, 'touchend', this.#handleTouchEndAndCancel.bind(this), { passive: true }),
@@ -128,7 +120,14 @@ let XSwipeEvents = (() => {
128
120
  change: false,
129
121
  'change-event-for-indicator': false,
130
122
  };
131
- get #enableScrollEventProcessor() { return _private_enableScrollEventProcessor_descriptor.value; }
123
+ _enableScrollEventProcessor(value, eventName) {
124
+ this
125
+ .#eventSwitches[eventName] = value;
126
+ const { lynxscrollend, scrollstart, change } = this.#eventSwitches;
127
+ const changeEventEnabled = change || lynxscrollend || scrollstart
128
+ || this.#eventSwitches['change-event-for-indicator'];
129
+ this.#listeners.forEach((l) => l(changeEventEnabled));
130
+ }
132
131
  connectedCallback() {
133
132
  this.#current = parseFloat(this.#dom.getAttribute('current') ?? '0');
134
133
  const isVertical = this.#dom.isVertical;
@@ -4,6 +4,11 @@ export declare class XSwiperIndicator implements InstanceType<AttributeReactiveC
4
4
  #private;
5
5
  static observedAttributes: string[];
6
6
  constructor(dom: XSwiper);
7
+ _handleIndicatorColor: (this: void, newVal: string | null) => void;
8
+ _handleIndicatorActiveColor: (this: void, newVal: string | null) => void;
9
+ _handlePageMargin: (this: void, newVal: string | null) => void;
10
+ _handlePreviousMargin: (this: void, newVal: string | null) => void;
11
+ _handleNextMargin: (this: void, newVal: string | null) => void;
7
12
  connectedCallback(): void;
8
13
  dispose(): void;
9
14
  }
@@ -6,34 +6,34 @@ import { __esDecorate, __runInitializers } from "tslib";
6
6
  */
7
7
  import { genDomGetter, registerAttributeHandler, bindToStyle, boostedQueueMicrotask, } from '@lynx-js/web-elements-reactive';
8
8
  let XSwiperIndicator = (() => {
9
- let _private_handleIndicatorColor_decorators;
10
- let _private_handleIndicatorColor_initializers = [];
11
- let _private_handleIndicatorColor_extraInitializers = [];
12
- let _private_handleIndicatorActiveColor_decorators;
13
- let _private_handleIndicatorActiveColor_initializers = [];
14
- let _private_handleIndicatorActiveColor_extraInitializers = [];
15
- let _private_handlePageMargin_decorators;
16
- let _private_handlePageMargin_initializers = [];
17
- let _private_handlePageMargin_extraInitializers = [];
18
- let _private_handlePreviousMargin_decorators;
19
- let _private_handlePreviousMargin_initializers = [];
20
- let _private_handlePreviousMargin_extraInitializers = [];
21
- let _private_handleNextMargin_decorators;
22
- let _private_handleNextMargin_initializers = [];
23
- let _private_handleNextMargin_extraInitializers = [];
9
+ let __handleIndicatorColor_decorators;
10
+ let __handleIndicatorColor_initializers = [];
11
+ let __handleIndicatorColor_extraInitializers = [];
12
+ let __handleIndicatorActiveColor_decorators;
13
+ let __handleIndicatorActiveColor_initializers = [];
14
+ let __handleIndicatorActiveColor_extraInitializers = [];
15
+ let __handlePageMargin_decorators;
16
+ let __handlePageMargin_initializers = [];
17
+ let __handlePageMargin_extraInitializers = [];
18
+ let __handlePreviousMargin_decorators;
19
+ let __handlePreviousMargin_initializers = [];
20
+ let __handlePreviousMargin_extraInitializers = [];
21
+ let __handleNextMargin_decorators;
22
+ let __handleNextMargin_initializers = [];
23
+ let __handleNextMargin_extraInitializers = [];
24
24
  return class XSwiperIndicator {
25
25
  static {
26
26
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
27
- _private_handleIndicatorColor_decorators = [registerAttributeHandler('indicator-color', true)];
28
- _private_handleIndicatorActiveColor_decorators = [registerAttributeHandler('indicator-active-color', true)];
29
- _private_handlePageMargin_decorators = [registerAttributeHandler('page-margin', true)];
30
- _private_handlePreviousMargin_decorators = [registerAttributeHandler('previous-margin', true)];
31
- _private_handleNextMargin_decorators = [registerAttributeHandler('next-margin', true)];
32
- __esDecorate(null, null, _private_handleIndicatorColor_decorators, { kind: "field", name: "#handleIndicatorColor", static: false, private: true, access: { has: obj => #handleIndicatorColor in obj, get: obj => obj.#handleIndicatorColor, set: (obj, value) => { obj.#handleIndicatorColor = value; } }, metadata: _metadata }, _private_handleIndicatorColor_initializers, _private_handleIndicatorColor_extraInitializers);
33
- __esDecorate(null, null, _private_handleIndicatorActiveColor_decorators, { kind: "field", name: "#handleIndicatorActiveColor", static: false, private: true, access: { has: obj => #handleIndicatorActiveColor in obj, get: obj => obj.#handleIndicatorActiveColor, set: (obj, value) => { obj.#handleIndicatorActiveColor = value; } }, metadata: _metadata }, _private_handleIndicatorActiveColor_initializers, _private_handleIndicatorActiveColor_extraInitializers);
34
- __esDecorate(null, null, _private_handlePageMargin_decorators, { kind: "field", name: "#handlePageMargin", static: false, private: true, access: { has: obj => #handlePageMargin in obj, get: obj => obj.#handlePageMargin, set: (obj, value) => { obj.#handlePageMargin = value; } }, metadata: _metadata }, _private_handlePageMargin_initializers, _private_handlePageMargin_extraInitializers);
35
- __esDecorate(null, null, _private_handlePreviousMargin_decorators, { kind: "field", name: "#handlePreviousMargin", static: false, private: true, access: { has: obj => #handlePreviousMargin in obj, get: obj => obj.#handlePreviousMargin, set: (obj, value) => { obj.#handlePreviousMargin = value; } }, metadata: _metadata }, _private_handlePreviousMargin_initializers, _private_handlePreviousMargin_extraInitializers);
36
- __esDecorate(null, null, _private_handleNextMargin_decorators, { kind: "field", name: "#handleNextMargin", static: false, private: true, access: { has: obj => #handleNextMargin in obj, get: obj => obj.#handleNextMargin, set: (obj, value) => { obj.#handleNextMargin = value; } }, metadata: _metadata }, _private_handleNextMargin_initializers, _private_handleNextMargin_extraInitializers);
27
+ __handleIndicatorColor_decorators = [registerAttributeHandler('indicator-color', true)];
28
+ __handleIndicatorActiveColor_decorators = [registerAttributeHandler('indicator-active-color', true)];
29
+ __handlePageMargin_decorators = [registerAttributeHandler('page-margin', true)];
30
+ __handlePreviousMargin_decorators = [registerAttributeHandler('previous-margin', true)];
31
+ __handleNextMargin_decorators = [registerAttributeHandler('next-margin', true)];
32
+ __esDecorate(null, null, __handleIndicatorColor_decorators, { kind: "field", name: "_handleIndicatorColor", static: false, private: false, access: { has: obj => "_handleIndicatorColor" in obj, get: obj => obj._handleIndicatorColor, set: (obj, value) => { obj._handleIndicatorColor = value; } }, metadata: _metadata }, __handleIndicatorColor_initializers, __handleIndicatorColor_extraInitializers);
33
+ __esDecorate(null, null, __handleIndicatorActiveColor_decorators, { kind: "field", name: "_handleIndicatorActiveColor", static: false, private: false, access: { has: obj => "_handleIndicatorActiveColor" in obj, get: obj => obj._handleIndicatorActiveColor, set: (obj, value) => { obj._handleIndicatorActiveColor = value; } }, metadata: _metadata }, __handleIndicatorActiveColor_initializers, __handleIndicatorActiveColor_extraInitializers);
34
+ __esDecorate(null, null, __handlePageMargin_decorators, { kind: "field", name: "_handlePageMargin", static: false, private: false, access: { has: obj => "_handlePageMargin" in obj, get: obj => obj._handlePageMargin, set: (obj, value) => { obj._handlePageMargin = value; } }, metadata: _metadata }, __handlePageMargin_initializers, __handlePageMargin_extraInitializers);
35
+ __esDecorate(null, null, __handlePreviousMargin_decorators, { kind: "field", name: "_handlePreviousMargin", static: false, private: false, access: { has: obj => "_handlePreviousMargin" in obj, get: obj => obj._handlePreviousMargin, set: (obj, value) => { obj._handlePreviousMargin = value; } }, metadata: _metadata }, __handlePreviousMargin_initializers, __handlePreviousMargin_extraInitializers);
36
+ __esDecorate(null, null, __handleNextMargin_decorators, { kind: "field", name: "_handleNextMargin", static: false, private: false, access: { has: obj => "_handleNextMargin" in obj, get: obj => obj._handleNextMargin, set: (obj, value) => { obj._handleNextMargin = value; } }, metadata: _metadata }, __handleNextMargin_initializers, __handleNextMargin_extraInitializers);
37
37
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
38
38
  }
39
39
  static observedAttributes = [
@@ -49,14 +49,14 @@ let XSwiperIndicator = (() => {
49
49
  #getIndicatorDynamicStyleContainer = genDomGetter(() => this.#dom.shadowRoot, '#indicator-style');
50
50
  #childrenElementMutationObserver;
51
51
  constructor(dom) {
52
- __runInitializers(this, _private_handleNextMargin_extraInitializers);
52
+ __runInitializers(this, __handleNextMargin_extraInitializers);
53
53
  this.#dom = dom;
54
54
  }
55
- #handleIndicatorColor = __runInitializers(this, _private_handleIndicatorColor_initializers, bindToStyle(this.#getIndicatorContainer, '--indicator-color', undefined, true));
56
- #handleIndicatorActiveColor = (__runInitializers(this, _private_handleIndicatorColor_extraInitializers), __runInitializers(this, _private_handleIndicatorActiveColor_initializers, bindToStyle(this.#getIndicatorContainer, '--indicator-active-color', undefined, true)));
57
- #handlePageMargin = (__runInitializers(this, _private_handleIndicatorActiveColor_extraInitializers), __runInitializers(this, _private_handlePageMargin_initializers, bindToStyle(this.#getIndicatorContainer, '--page-margin', undefined, true)));
58
- #handlePreviousMargin = (__runInitializers(this, _private_handlePageMargin_extraInitializers), __runInitializers(this, _private_handlePreviousMargin_initializers, bindToStyle(this.#getIndicatorContainer, '--previous-margin', undefined, true)));
59
- #handleNextMargin = (__runInitializers(this, _private_handlePreviousMargin_extraInitializers), __runInitializers(this, _private_handleNextMargin_initializers, bindToStyle(this.#getIndicatorContainer, '--next-margin', undefined, true)));
55
+ _handleIndicatorColor = __runInitializers(this, __handleIndicatorColor_initializers, bindToStyle(this.#getIndicatorContainer, '--indicator-color', undefined, true));
56
+ _handleIndicatorActiveColor = (__runInitializers(this, __handleIndicatorColor_extraInitializers), __runInitializers(this, __handleIndicatorActiveColor_initializers, bindToStyle(this.#getIndicatorContainer, '--indicator-active-color', undefined, true)));
57
+ _handlePageMargin = (__runInitializers(this, __handleIndicatorActiveColor_extraInitializers), __runInitializers(this, __handlePageMargin_initializers, bindToStyle(this.#getIndicatorContainer, '--page-margin', undefined, true)));
58
+ _handlePreviousMargin = (__runInitializers(this, __handlePageMargin_extraInitializers), __runInitializers(this, __handlePreviousMargin_initializers, bindToStyle(this.#getIndicatorContainer, '--previous-margin', undefined, true)));
59
+ _handleNextMargin = (__runInitializers(this, __handlePreviousMargin_extraInitializers), __runInitializers(this, __handleNextMargin_initializers, bindToStyle(this.#getIndicatorContainer, '--next-margin', undefined, true)));
60
60
  #updateIndicatorDoms() {
61
61
  const currentNumber = this.#dom.childElementCount;
62
62
  if (currentNumber !== this.#numOfChildElement) {
@@ -3,6 +3,7 @@ export declare class InlineImageAttributes implements InstanceType<AttributeReac
3
3
  #private;
4
4
  static observedAttributes: string[];
5
5
  constructor(dom: InlineImage);
6
+ _handleSrc(newVal: string | null): void;
6
7
  }
7
8
  /**
8
9
  * @deprecated you can use `x-image` instead in `x-text`.
@@ -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
@@ -8,18 +8,12 @@ import { Component, genDomGetter, registerAttributeHandler, } from '@lynx-js/web
8
8
  import { templateInlineImage } from '@lynx-js/web-elements-template';
9
9
  let InlineImageAttributes = (() => {
10
10
  let _instanceExtraInitializers = [];
11
- let _private_handleSrc_decorators;
12
- let _private_handleSrc_descriptor;
11
+ let __handleSrc_decorators;
13
12
  return class InlineImageAttributes {
14
13
  static {
15
14
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
16
- _private_handleSrc_decorators = [registerAttributeHandler('src', true)];
17
- __esDecorate(this, _private_handleSrc_descriptor = { value: __setFunctionName(function (newVal) {
18
- if (newVal)
19
- this.#getImage().setAttribute('src', newVal);
20
- else
21
- this.#getImage().removeAttribute('src');
22
- }, "#handleSrc") }, _private_handleSrc_decorators, { kind: "method", name: "#handleSrc", static: false, private: true, access: { has: obj => #handleSrc in obj, get: obj => obj.#handleSrc }, metadata: _metadata }, null, _instanceExtraInitializers);
15
+ __handleSrc_decorators = [registerAttributeHandler('src', true)];
16
+ __esDecorate(this, null, __handleSrc_decorators, { kind: "method", name: "_handleSrc", static: false, private: false, access: { has: obj => "_handleSrc" in obj, get: obj => obj._handleSrc }, metadata: _metadata }, null, _instanceExtraInitializers);
23
17
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
24
18
  }
25
19
  static observedAttributes = ['src'];
@@ -28,7 +22,12 @@ let InlineImageAttributes = (() => {
28
22
  this.#dom = dom;
29
23
  }
30
24
  #getImage = genDomGetter(() => this.#dom.shadowRoot, '#img');
31
- get #handleSrc() { return _private_handleSrc_descriptor.value; }
25
+ _handleSrc(newVal) {
26
+ if (newVal)
27
+ this.#getImage().setAttribute('src', newVal);
28
+ else
29
+ this.#getImage().removeAttribute('src');
30
+ }
32
31
  };
33
32
  })();
34
33
  export { InlineImageAttributes };
@@ -2,6 +2,7 @@ export declare class RawTextAttributes {
2
2
  #private;
3
3
  static observedAttributes: string[];
4
4
  constructor(currentElement: HTMLElement);
5
+ _handleText(newVal: string | null): void;
5
6
  }
6
7
  export declare class RawText extends HTMLElement {
7
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
@@ -7,19 +7,12 @@ import { __esDecorate, __runInitializers, __setFunctionName } from "tslib";
7
7
  import { Component, registerAttributeHandler, } from '@lynx-js/web-elements-reactive';
8
8
  let RawTextAttributes = (() => {
9
9
  let _instanceExtraInitializers = [];
10
- let _private_handleText_decorators;
11
- let _private_handleText_descriptor;
10
+ let __handleText_decorators;
12
11
  return class RawTextAttributes {
13
12
  static {
14
13
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
15
- _private_handleText_decorators = [registerAttributeHandler('text', true)];
16
- __esDecorate(this, _private_handleText_descriptor = { value: __setFunctionName(function (newVal) {
17
- this.#text?.remove();
18
- if (newVal) {
19
- this.#text = new Text(newVal);
20
- this.#dom.append(this.#text);
21
- }
22
- }, "#handleText") }, _private_handleText_decorators, { kind: "method", name: "#handleText", static: false, private: true, access: { has: obj => #handleText in obj, get: obj => obj.#handleText }, metadata: _metadata }, null, _instanceExtraInitializers);
14
+ __handleText_decorators = [registerAttributeHandler('text', true)];
15
+ __esDecorate(this, null, __handleText_decorators, { kind: "method", name: "_handleText", static: false, private: false, access: { has: obj => "_handleText" in obj, get: obj => obj._handleText }, metadata: _metadata }, null, _instanceExtraInitializers);
23
16
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
24
17
  }
25
18
  static observedAttributes = ['text'];
@@ -28,7 +21,13 @@ let RawTextAttributes = (() => {
28
21
  constructor(currentElement) {
29
22
  this.#dom = currentElement;
30
23
  }
31
- get #handleText() { return _private_handleText_descriptor.value; }
24
+ _handleText(newVal) {
25
+ this.#text?.remove();
26
+ if (newVal) {
27
+ this.#text = new Text(newVal);
28
+ this.#dom.append(this.#text);
29
+ }
30
+ }
32
31
  };
33
32
  })();
34
33
  export { RawTextAttributes };
@@ -6,6 +6,8 @@ export declare class XTextTruncation implements InstanceType<AttributeReactiveCl
6
6
  static showInlineTruncation: "x-show-inline-truncation";
7
7
  static observedAttributes: string[];
8
8
  constructor(dom: XText);
9
+ _handleAttributeChange(): void;
10
+ _handleEnableLayoutEvent(status: boolean): void;
9
11
  dispose(): void;
10
12
  connectedCallback(): void;
11
13
  }
@@ -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,35 +10,15 @@ import { registerEventEnableStatusChangeHandler } from '@lynx-js/web-elements-re
10
10
  let XTextTruncation = (() => {
11
11
  var _a;
12
12
  let _instanceExtraInitializers = [];
13
- let _private_handleAttributeChange_decorators;
14
- let _private_handleAttributeChange_descriptor;
15
- let _private_handleEnableLayoutEvent_decorators;
16
- let _private_handleEnableLayoutEvent_descriptor;
13
+ let __handleAttributeChange_decorators;
14
+ let __handleEnableLayoutEvent_decorators;
17
15
  return class XTextTruncation {
18
16
  static {
19
17
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
20
- _private_handleAttributeChange_decorators = [registerAttributeHandler('text-maxlength', true), registerAttributeHandler('text-maxline', true), registerAttributeHandler('tail-color-convert', true)];
21
- _private_handleEnableLayoutEvent_decorators = [registerEventEnableStatusChangeHandler('layout')];
22
- __esDecorate(this, _private_handleAttributeChange_descriptor = { value: __setFunctionName(function () {
23
- this.#maxLength = parseFloat(this.#dom.getAttribute('text-maxlength') ?? '');
24
- this.#maxLine = parseFloat(this.#dom.getAttribute('text-maxline') ?? '');
25
- this.#tailColorConvert =
26
- this.#dom.getAttribute('tail-color-convert') !== 'false';
27
- if (this.#maxLength < 0)
28
- this.#maxLength = NaN;
29
- if (this.#maxLine < 1)
30
- this.#maxLine = NaN;
31
- if (!isNaN(this.#maxLine)) {
32
- this.#getInnerBox().style.webkitLineClamp = this.#maxLine.toString();
33
- }
34
- else {
35
- this.#getInnerBox().style.removeProperty('-webkit-line-clamp');
36
- }
37
- this.#layoutText();
38
- }, "#handleAttributeChange") }, _private_handleAttributeChange_decorators, { kind: "method", name: "#handleAttributeChange", static: false, private: true, access: { has: obj => #handleAttributeChange in obj, get: obj => obj.#handleAttributeChange }, metadata: _metadata }, null, _instanceExtraInitializers);
39
- __esDecorate(this, _private_handleEnableLayoutEvent_descriptor = { value: __setFunctionName(function (status) {
40
- this.#enableLayoutEvent = status;
41
- }, "#handleEnableLayoutEvent") }, _private_handleEnableLayoutEvent_decorators, { kind: "method", name: "#handleEnableLayoutEvent", static: false, private: true, access: { has: obj => #handleEnableLayoutEvent in obj, get: obj => obj.#handleEnableLayoutEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
18
+ __handleAttributeChange_decorators = [registerAttributeHandler('text-maxlength', true), registerAttributeHandler('text-maxline', true), registerAttributeHandler('tail-color-convert', true)];
19
+ __handleEnableLayoutEvent_decorators = [registerEventEnableStatusChangeHandler('layout')];
20
+ __esDecorate(this, null, __handleAttributeChange_decorators, { kind: "method", name: "_handleAttributeChange", static: false, private: false, access: { has: obj => "_handleAttributeChange" in obj, get: obj => obj._handleAttributeChange }, metadata: _metadata }, null, _instanceExtraInitializers);
21
+ __esDecorate(this, null, __handleEnableLayoutEvent_decorators, { kind: "method", name: "_handleEnableLayoutEvent", static: false, private: false, access: { has: obj => "_handleEnableLayoutEvent" in obj, get: obj => obj._handleEnableLayoutEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
42
22
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
43
23
  }
44
24
  static exceedMathLengthAttribute = 'x-text-clipped';
@@ -280,8 +260,26 @@ let XTextTruncation = (() => {
280
260
  this.#resizeObserver?.disconnect();
281
261
  this.#resizeObserver = undefined;
282
262
  }
283
- get #handleAttributeChange() { return _private_handleAttributeChange_descriptor.value; }
284
- get #handleEnableLayoutEvent() { return _private_handleEnableLayoutEvent_descriptor.value; }
263
+ _handleAttributeChange() {
264
+ this.#maxLength = parseFloat(this.#dom.getAttribute('text-maxlength') ?? '');
265
+ this.#maxLine = parseFloat(this.#dom.getAttribute('text-maxline') ?? '');
266
+ this.#tailColorConvert =
267
+ this.#dom.getAttribute('tail-color-convert') !== 'false';
268
+ if (this.#maxLength < 0)
269
+ this.#maxLength = NaN;
270
+ if (this.#maxLine < 1)
271
+ this.#maxLine = NaN;
272
+ if (!isNaN(this.#maxLine)) {
273
+ this.#getInnerBox().style.webkitLineClamp = this.#maxLine.toString();
274
+ }
275
+ else {
276
+ this.#getInnerBox().style.removeProperty('-webkit-line-clamp');
277
+ }
278
+ this.#layoutText();
279
+ }
280
+ _handleEnableLayoutEvent(status) {
281
+ this.#enableLayoutEvent = status;
282
+ }
285
283
  #sendLayoutEvent(truncateAt) {
286
284
  if (!this.#enableLayoutEvent)
287
285
  return;
@@ -336,8 +334,8 @@ let XTextTruncation = (() => {
336
334
  }
337
335
  connectedCallback() {
338
336
  this.#componentConnected = true;
339
- this.#handleEnableLayoutEvent(this.#enableLayoutEvent);
340
- this.#handleAttributeChange();
337
+ this._handleEnableLayoutEvent(this.#enableLayoutEvent);
338
+ this._handleAttributeChange();
341
339
  boostedQueueMicrotask(() => {
342
340
  this.#sendLayoutEvent();
343
341
  });
@@ -3,5 +3,10 @@ import { XTextarea } from './XTextarea.js';
3
3
  export declare class Placeholder implements InstanceType<AttributeReactiveClass<typeof XTextarea>> {
4
4
  #private;
5
5
  static observedAttributes: readonly ["placeholder", "placeholder-color", "placeholder-font-size", "placeholder-font-weight", "placeholder-font-family"];
6
+ _updatePlaceholderColor: (this: void, newVal: string | null) => void;
7
+ _updatePlaceholderFontSize: (this: void, newVal: string | null) => void;
8
+ _updatePlaceholderFontWeight: (this: void, newVal: string | null) => void;
9
+ _updatePlaceholderFontFamily: (this: void, newVal: string | null) => void;
10
+ _handlePlaceholder: (this: void, newVal: string | null) => void;
6
11
  constructor(dom: HTMLElement);
7
12
  }
@@ -7,34 +7,34 @@ import { __esDecorate, __runInitializers } from "tslib";
7
7
  import { bindToAttribute, bindToStyle, genDomGetter, registerAttributeHandler, } from '@lynx-js/web-elements-reactive';
8
8
  import { XTextarea } from './XTextarea.js';
9
9
  let Placeholder = (() => {
10
- let _private_updatePlaceholderColor_decorators;
11
- let _private_updatePlaceholderColor_initializers = [];
12
- let _private_updatePlaceholderColor_extraInitializers = [];
13
- let _private_updatePlaceholderFontSize_decorators;
14
- let _private_updatePlaceholderFontSize_initializers = [];
15
- let _private_updatePlaceholderFontSize_extraInitializers = [];
16
- let _private_updatePlaceholderFontWeight_decorators;
17
- let _private_updatePlaceholderFontWeight_initializers = [];
18
- let _private_updatePlaceholderFontWeight_extraInitializers = [];
19
- let _private_updatePlaceholderFontFamily_decorators;
20
- let _private_updatePlaceholderFontFamily_initializers = [];
21
- let _private_updatePlaceholderFontFamily_extraInitializers = [];
22
- let _private_handlePlaceholder_decorators;
23
- let _private_handlePlaceholder_initializers = [];
24
- let _private_handlePlaceholder_extraInitializers = [];
10
+ let __updatePlaceholderColor_decorators;
11
+ let __updatePlaceholderColor_initializers = [];
12
+ let __updatePlaceholderColor_extraInitializers = [];
13
+ let __updatePlaceholderFontSize_decorators;
14
+ let __updatePlaceholderFontSize_initializers = [];
15
+ let __updatePlaceholderFontSize_extraInitializers = [];
16
+ let __updatePlaceholderFontWeight_decorators;
17
+ let __updatePlaceholderFontWeight_initializers = [];
18
+ let __updatePlaceholderFontWeight_extraInitializers = [];
19
+ let __updatePlaceholderFontFamily_decorators;
20
+ let __updatePlaceholderFontFamily_initializers = [];
21
+ let __updatePlaceholderFontFamily_extraInitializers = [];
22
+ let __handlePlaceholder_decorators;
23
+ let __handlePlaceholder_initializers = [];
24
+ let __handlePlaceholder_extraInitializers = [];
25
25
  return class Placeholder {
26
26
  static {
27
27
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
28
- _private_updatePlaceholderColor_decorators = [registerAttributeHandler('placeholder-color', true)];
29
- _private_updatePlaceholderFontSize_decorators = [registerAttributeHandler('placeholder-font-size', true)];
30
- _private_updatePlaceholderFontWeight_decorators = [registerAttributeHandler('placeholder-font-weight', true)];
31
- _private_updatePlaceholderFontFamily_decorators = [registerAttributeHandler('placeholder-font-family', true)];
32
- _private_handlePlaceholder_decorators = [registerAttributeHandler('placeholder', true)];
33
- __esDecorate(null, null, _private_updatePlaceholderColor_decorators, { kind: "field", name: "#updatePlaceholderColor", static: false, private: true, access: { has: obj => #updatePlaceholderColor in obj, get: obj => obj.#updatePlaceholderColor, set: (obj, value) => { obj.#updatePlaceholderColor = value; } }, metadata: _metadata }, _private_updatePlaceholderColor_initializers, _private_updatePlaceholderColor_extraInitializers);
34
- __esDecorate(null, null, _private_updatePlaceholderFontSize_decorators, { kind: "field", name: "#updatePlaceholderFontSize", static: false, private: true, access: { has: obj => #updatePlaceholderFontSize in obj, get: obj => obj.#updatePlaceholderFontSize, set: (obj, value) => { obj.#updatePlaceholderFontSize = value; } }, metadata: _metadata }, _private_updatePlaceholderFontSize_initializers, _private_updatePlaceholderFontSize_extraInitializers);
35
- __esDecorate(null, null, _private_updatePlaceholderFontWeight_decorators, { kind: "field", name: "#updatePlaceholderFontWeight", static: false, private: true, access: { has: obj => #updatePlaceholderFontWeight in obj, get: obj => obj.#updatePlaceholderFontWeight, set: (obj, value) => { obj.#updatePlaceholderFontWeight = value; } }, metadata: _metadata }, _private_updatePlaceholderFontWeight_initializers, _private_updatePlaceholderFontWeight_extraInitializers);
36
- __esDecorate(null, null, _private_updatePlaceholderFontFamily_decorators, { kind: "field", name: "#updatePlaceholderFontFamily", static: false, private: true, access: { has: obj => #updatePlaceholderFontFamily in obj, get: obj => obj.#updatePlaceholderFontFamily, set: (obj, value) => { obj.#updatePlaceholderFontFamily = value; } }, metadata: _metadata }, _private_updatePlaceholderFontFamily_initializers, _private_updatePlaceholderFontFamily_extraInitializers);
37
- __esDecorate(null, null, _private_handlePlaceholder_decorators, { kind: "field", name: "#handlePlaceholder", static: false, private: true, access: { has: obj => #handlePlaceholder in obj, get: obj => obj.#handlePlaceholder, set: (obj, value) => { obj.#handlePlaceholder = value; } }, metadata: _metadata }, _private_handlePlaceholder_initializers, _private_handlePlaceholder_extraInitializers);
28
+ __updatePlaceholderColor_decorators = [registerAttributeHandler('placeholder-color', true)];
29
+ __updatePlaceholderFontSize_decorators = [registerAttributeHandler('placeholder-font-size', true)];
30
+ __updatePlaceholderFontWeight_decorators = [registerAttributeHandler('placeholder-font-weight', true)];
31
+ __updatePlaceholderFontFamily_decorators = [registerAttributeHandler('placeholder-font-family', true)];
32
+ __handlePlaceholder_decorators = [registerAttributeHandler('placeholder', true)];
33
+ __esDecorate(null, null, __updatePlaceholderColor_decorators, { kind: "field", name: "_updatePlaceholderColor", static: false, private: false, access: { has: obj => "_updatePlaceholderColor" in obj, get: obj => obj._updatePlaceholderColor, set: (obj, value) => { obj._updatePlaceholderColor = value; } }, metadata: _metadata }, __updatePlaceholderColor_initializers, __updatePlaceholderColor_extraInitializers);
34
+ __esDecorate(null, null, __updatePlaceholderFontSize_decorators, { kind: "field", name: "_updatePlaceholderFontSize", static: false, private: false, access: { has: obj => "_updatePlaceholderFontSize" in obj, get: obj => obj._updatePlaceholderFontSize, set: (obj, value) => { obj._updatePlaceholderFontSize = value; } }, metadata: _metadata }, __updatePlaceholderFontSize_initializers, __updatePlaceholderFontSize_extraInitializers);
35
+ __esDecorate(null, null, __updatePlaceholderFontWeight_decorators, { kind: "field", name: "_updatePlaceholderFontWeight", static: false, private: false, access: { has: obj => "_updatePlaceholderFontWeight" in obj, get: obj => obj._updatePlaceholderFontWeight, set: (obj, value) => { obj._updatePlaceholderFontWeight = value; } }, metadata: _metadata }, __updatePlaceholderFontWeight_initializers, __updatePlaceholderFontWeight_extraInitializers);
36
+ __esDecorate(null, null, __updatePlaceholderFontFamily_decorators, { kind: "field", name: "_updatePlaceholderFontFamily", static: false, private: false, access: { has: obj => "_updatePlaceholderFontFamily" in obj, get: obj => obj._updatePlaceholderFontFamily, set: (obj, value) => { obj._updatePlaceholderFontFamily = value; } }, metadata: _metadata }, __updatePlaceholderFontFamily_initializers, __updatePlaceholderFontFamily_extraInitializers);
37
+ __esDecorate(null, null, __handlePlaceholder_decorators, { kind: "field", name: "_handlePlaceholder", static: false, private: false, access: { has: obj => "_handlePlaceholder" in obj, get: obj => obj._handlePlaceholder, set: (obj, value) => { obj._handlePlaceholder = value; } }, metadata: _metadata }, __handlePlaceholder_initializers, __handlePlaceholder_extraInitializers);
38
38
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
39
39
  }
40
40
  static observedAttributes = [
@@ -45,12 +45,12 @@ let Placeholder = (() => {
45
45
  'placeholder-font-family',
46
46
  ];
47
47
  #getTextarea = genDomGetter(() => this.#dom.shadowRoot, '#textarea');
48
- #updatePlaceholderColor = __runInitializers(this, _private_updatePlaceholderColor_initializers, bindToStyle(this.#getTextarea, '--placeholder-color', undefined, true));
49
- #updatePlaceholderFontSize = (__runInitializers(this, _private_updatePlaceholderColor_extraInitializers), __runInitializers(this, _private_updatePlaceholderFontSize_initializers, bindToStyle(this.#getTextarea, '--placeholder-font-size', undefined, true)));
50
- #updatePlaceholderFontWeight = (__runInitializers(this, _private_updatePlaceholderFontSize_extraInitializers), __runInitializers(this, _private_updatePlaceholderFontWeight_initializers, bindToStyle(this.#getTextarea, '--placeholder-font-weight', undefined, true)));
51
- #updatePlaceholderFontFamily = (__runInitializers(this, _private_updatePlaceholderFontWeight_extraInitializers), __runInitializers(this, _private_updatePlaceholderFontFamily_initializers, bindToStyle(this.#getTextarea, '--placeholder-font-family', undefined, true)));
52
- #handlePlaceholder = (__runInitializers(this, _private_updatePlaceholderFontFamily_extraInitializers), __runInitializers(this, _private_handlePlaceholder_initializers, bindToAttribute(this.#getTextarea, 'placeholder')));
53
- #dom = __runInitializers(this, _private_handlePlaceholder_extraInitializers);
48
+ _updatePlaceholderColor = __runInitializers(this, __updatePlaceholderColor_initializers, bindToStyle(this.#getTextarea, '--placeholder-color', undefined, true));
49
+ _updatePlaceholderFontSize = (__runInitializers(this, __updatePlaceholderColor_extraInitializers), __runInitializers(this, __updatePlaceholderFontSize_initializers, bindToStyle(this.#getTextarea, '--placeholder-font-size', undefined, true)));
50
+ _updatePlaceholderFontWeight = (__runInitializers(this, __updatePlaceholderFontSize_extraInitializers), __runInitializers(this, __updatePlaceholderFontWeight_initializers, bindToStyle(this.#getTextarea, '--placeholder-font-weight', undefined, true)));
51
+ _updatePlaceholderFontFamily = (__runInitializers(this, __updatePlaceholderFontWeight_extraInitializers), __runInitializers(this, __updatePlaceholderFontFamily_initializers, bindToStyle(this.#getTextarea, '--placeholder-font-family', undefined, true)));
52
+ _handlePlaceholder = (__runInitializers(this, __updatePlaceholderFontFamily_extraInitializers), __runInitializers(this, __handlePlaceholder_initializers, bindToAttribute(this.#getTextarea, 'placeholder')));
53
+ #dom = __runInitializers(this, __handlePlaceholder_extraInitializers);
54
54
  constructor(dom) {
55
55
  this.#dom = dom;
56
56
  }
@@ -2,5 +2,10 @@ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  export declare class TextareaBaseAttributes implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
3
3
  #private;
4
4
  static observedAttributes: string[];
5
+ _handlerConfirmType: (this: void, newVal: string | null) => void;
6
+ _handlerMaxlength: (this: void, newVal: string | null) => void;
7
+ _handleReadonly: (this: void, newVal: string | null) => void;
8
+ _handleSpellCheck: (this: void, newVal: string | null) => void;
9
+ _handleShowSoftInputOnfocus: (this: void, newVal: string | null) => void;
5
10
  constructor(dom: HTMLElement);
6
11
  }