@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
@@ -10,46 +10,45 @@ import { bindToAttribute, genDomGetter, registerAttributeHandler, } from '@lynx-
10
10
  */
11
11
  let XInputAttribute = (() => {
12
12
  let _instanceExtraInitializers = [];
13
- let _private_handleValue_decorators;
14
- let _private_handleValue_descriptor;
15
- let _private_handleDisabled_decorators;
16
- let _private_handleDisabled_initializers = [];
17
- let _private_handleDisabled_extraInitializers = [];
18
- let _private_handleAutocomplete_decorators;
19
- let _private_handleAutocomplete_initializers = [];
20
- let _private_handleAutocomplete_extraInitializers = [];
13
+ let __handleValue_decorators;
14
+ let __handleDisabled_decorators;
15
+ let __handleDisabled_initializers = [];
16
+ let __handleDisabled_extraInitializers = [];
17
+ let __handleAutocomplete_decorators;
18
+ let __handleAutocomplete_initializers = [];
19
+ let __handleAutocomplete_extraInitializers = [];
21
20
  return class XInputAttribute {
22
21
  static {
23
22
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
24
- _private_handleValue_decorators = [registerAttributeHandler('value', false)];
25
- _private_handleDisabled_decorators = [registerAttributeHandler('disabled', true)];
26
- _private_handleAutocomplete_decorators = [registerAttributeHandler('autocomplete', true)];
27
- __esDecorate(this, _private_handleValue_descriptor = { value: __setFunctionName(function (newValue) {
28
- if (newValue) {
29
- const maxlength = parseFloat(this.#dom.getAttribute('maxlength') ?? '');
30
- if (!isNaN(maxlength))
31
- newValue = newValue.substring(0, maxlength);
32
- }
33
- else {
34
- newValue = '';
35
- }
36
- const input = this.#getInputElement();
37
- if (input.value !== newValue) {
38
- input.value = newValue;
39
- }
40
- }, "#handleValue") }, _private_handleValue_decorators, { kind: "method", name: "#handleValue", static: false, private: true, access: { has: obj => #handleValue in obj, get: obj => obj.#handleValue }, metadata: _metadata }, null, _instanceExtraInitializers);
41
- __esDecorate(null, null, _private_handleDisabled_decorators, { kind: "field", name: "#handleDisabled", static: false, private: true, access: { has: obj => #handleDisabled in obj, get: obj => obj.#handleDisabled, set: (obj, value) => { obj.#handleDisabled = value; } }, metadata: _metadata }, _private_handleDisabled_initializers, _private_handleDisabled_extraInitializers);
42
- __esDecorate(null, null, _private_handleAutocomplete_decorators, { kind: "field", name: "#handleAutocomplete", static: false, private: true, access: { has: obj => #handleAutocomplete in obj, get: obj => obj.#handleAutocomplete, set: (obj, value) => { obj.#handleAutocomplete = value; } }, metadata: _metadata }, _private_handleAutocomplete_initializers, _private_handleAutocomplete_extraInitializers);
23
+ __handleValue_decorators = [registerAttributeHandler('value', false)];
24
+ __handleDisabled_decorators = [registerAttributeHandler('disabled', true)];
25
+ __handleAutocomplete_decorators = [registerAttributeHandler('autocomplete', true)];
26
+ __esDecorate(this, null, __handleValue_decorators, { kind: "method", name: "_handleValue", static: false, private: false, access: { has: obj => "_handleValue" in obj, get: obj => obj._handleValue }, metadata: _metadata }, null, _instanceExtraInitializers);
27
+ __esDecorate(null, null, __handleDisabled_decorators, { kind: "field", name: "_handleDisabled", static: false, private: false, access: { has: obj => "_handleDisabled" in obj, get: obj => obj._handleDisabled, set: (obj, value) => { obj._handleDisabled = value; } }, metadata: _metadata }, __handleDisabled_initializers, __handleDisabled_extraInitializers);
28
+ __esDecorate(null, null, __handleAutocomplete_decorators, { kind: "field", name: "_handleAutocomplete", static: false, private: false, access: { has: obj => "_handleAutocomplete" in obj, get: obj => obj._handleAutocomplete, set: (obj, value) => { obj._handleAutocomplete = value; } }, metadata: _metadata }, __handleAutocomplete_initializers, __handleAutocomplete_extraInitializers);
43
29
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
44
30
  }
45
31
  static observedAttributes = ['value', 'disabled', 'autocomplete'];
46
32
  #dom = __runInitializers(this, _instanceExtraInitializers);
47
33
  #getInputElement = genDomGetter(() => this.#dom.shadowRoot, '#input');
48
- get #handleValue() { return _private_handleValue_descriptor.value; }
49
- #handleDisabled = __runInitializers(this, _private_handleDisabled_initializers, bindToAttribute(this.#getInputElement, 'disabled', (value) => (value !== null ? '' : null)));
50
- #handleAutocomplete = (__runInitializers(this, _private_handleDisabled_extraInitializers), __runInitializers(this, _private_handleAutocomplete_initializers, bindToAttribute(this.#getInputElement, 'autocomplete')));
34
+ _handleValue(newValue) {
35
+ if (newValue) {
36
+ const maxlength = parseFloat(this.#dom.getAttribute('maxlength') ?? '');
37
+ if (!isNaN(maxlength))
38
+ newValue = newValue.substring(0, maxlength);
39
+ }
40
+ else {
41
+ newValue = '';
42
+ }
43
+ const input = this.#getInputElement();
44
+ if (input.value !== newValue) {
45
+ input.value = newValue;
46
+ }
47
+ }
48
+ _handleDisabled = __runInitializers(this, __handleDisabled_initializers, bindToAttribute(this.#getInputElement, 'disabled', (value) => (value !== null ? '' : null)));
49
+ _handleAutocomplete = (__runInitializers(this, __handleDisabled_extraInitializers), __runInitializers(this, __handleAutocomplete_initializers, bindToAttribute(this.#getInputElement, 'autocomplete')));
51
50
  constructor(dom) {
52
- __runInitializers(this, _private_handleAutocomplete_extraInitializers);
51
+ __runInitializers(this, __handleAutocomplete_extraInitializers);
53
52
  this.#dom = dom;
54
53
  }
55
54
  };
@@ -2,5 +2,8 @@ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  export declare class XInputEvents implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
3
3
  #private;
4
4
  static observedAttributes: string[];
5
+ _handleEnableInputEvent(status: boolean | string | null): void;
6
+ _handleSendComposingInput(newVal: string | null): void;
7
+ _handleEnableSelectionEvent(status: boolean): void;
5
8
  constructor(dom: HTMLElement);
6
9
  }
@@ -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,42 +10,18 @@ import { renameEvent } from '../common/renameEvent.js';
10
10
  import { registerEventEnableStatusChangeHandler } from '@lynx-js/web-elements-reactive';
11
11
  let XInputEvents = (() => {
12
12
  let _instanceExtraInitializers = [];
13
- let _private_handleEnableInputEvent_decorators;
14
- let _private_handleEnableInputEvent_descriptor;
15
- let _private_handleSendComposingInput_decorators;
16
- let _private_handleSendComposingInput_descriptor;
17
- let _private_handleEnableSelectionEvent_decorators;
18
- let _private_handleEnableSelectionEvent_descriptor;
13
+ let __handleEnableInputEvent_decorators;
14
+ let __handleSendComposingInput_decorators;
15
+ let __handleEnableSelectionEvent_decorators;
19
16
  return class XInputEvents {
20
17
  static {
21
18
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
22
- _private_handleEnableInputEvent_decorators = [registerAttributeHandler('input-filter', true), registerEventEnableStatusChangeHandler('lynxinput')];
23
- _private_handleSendComposingInput_decorators = [registerAttributeHandler('send-composing-input', true)];
24
- _private_handleEnableSelectionEvent_decorators = [registerEventEnableStatusChangeHandler('selection')];
25
- __esDecorate(this, _private_handleEnableInputEvent_descriptor = { value: __setFunctionName(function (status) {
26
- const input = this.#getInputElement();
27
- if (status) {
28
- input.addEventListener('input', this.#teleportInput, { passive: true });
29
- input.addEventListener('compositionend', this.#teleportCompositionendInput, { passive: true });
30
- }
31
- else {
32
- input.removeEventListener('input', this.#teleportInput);
33
- input.removeEventListener('compositionend', this.#teleportCompositionendInput);
34
- }
35
- }, "#handleEnableInputEvent") }, _private_handleEnableInputEvent_decorators, { kind: "method", name: "#handleEnableInputEvent", static: false, private: true, access: { has: obj => #handleEnableInputEvent in obj, get: obj => obj.#handleEnableInputEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
36
- __esDecorate(this, _private_handleSendComposingInput_descriptor = { value: __setFunctionName(function (newVal) {
37
- this.#sendComposingInput = newVal !== null;
38
- }, "#handleSendComposingInput") }, _private_handleSendComposingInput_decorators, { kind: "method", name: "#handleSendComposingInput", static: false, private: true, access: { has: obj => #handleSendComposingInput in obj, get: obj => obj.#handleSendComposingInput }, metadata: _metadata }, null, _instanceExtraInitializers);
39
- __esDecorate(this, _private_handleEnableSelectionEvent_descriptor = { value: __setFunctionName(function (status) {
40
- if (status) {
41
- this.#getInputElement().addEventListener('select', this.#selectEvent, {
42
- passive: true,
43
- });
44
- }
45
- else {
46
- this.#getInputElement().removeEventListener('select', this.#selectEvent);
47
- }
48
- }, "#handleEnableSelectionEvent") }, _private_handleEnableSelectionEvent_decorators, { kind: "method", name: "#handleEnableSelectionEvent", static: false, private: true, access: { has: obj => #handleEnableSelectionEvent in obj, get: obj => obj.#handleEnableSelectionEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
19
+ __handleEnableInputEvent_decorators = [registerAttributeHandler('input-filter', true), registerEventEnableStatusChangeHandler('lynxinput')];
20
+ __handleSendComposingInput_decorators = [registerAttributeHandler('send-composing-input', true)];
21
+ __handleEnableSelectionEvent_decorators = [registerEventEnableStatusChangeHandler('selection')];
22
+ __esDecorate(this, null, __handleEnableInputEvent_decorators, { kind: "method", name: "_handleEnableInputEvent", static: false, private: false, access: { has: obj => "_handleEnableInputEvent" in obj, get: obj => obj._handleEnableInputEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
23
+ __esDecorate(this, null, __handleSendComposingInput_decorators, { kind: "method", name: "_handleSendComposingInput", static: false, private: false, access: { has: obj => "_handleSendComposingInput" in obj, get: obj => obj._handleSendComposingInput }, metadata: _metadata }, null, _instanceExtraInitializers);
24
+ __esDecorate(this, null, __handleEnableSelectionEvent_decorators, { kind: "method", name: "_handleEnableSelectionEvent", static: false, private: false, access: { has: obj => "_handleEnableSelectionEvent" in obj, get: obj => obj._handleEnableSelectionEvent }, metadata: _metadata }, null, _instanceExtraInitializers);
49
25
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
50
26
  }
51
27
  static observedAttributes = ['send-composing-input', 'input-filter'];
@@ -53,8 +29,20 @@ let XInputEvents = (() => {
53
29
  #sendComposingInput = false;
54
30
  #getInputElement = genDomGetter(() => this.#dom.shadowRoot, '#input');
55
31
  #getFormElement = genDomGetter(() => this.#dom.shadowRoot, '#form');
56
- get #handleEnableInputEvent() { return _private_handleEnableInputEvent_descriptor.value; }
57
- get #handleSendComposingInput() { return _private_handleSendComposingInput_descriptor.value; }
32
+ _handleEnableInputEvent(status) {
33
+ const input = this.#getInputElement();
34
+ if (status) {
35
+ input.addEventListener('input', this.#teleportInput, { passive: true });
36
+ input.addEventListener('compositionend', this.#teleportCompositionendInput, { passive: true });
37
+ }
38
+ else {
39
+ input.removeEventListener('input', this.#teleportInput);
40
+ input.removeEventListener('compositionend', this.#teleportCompositionendInput);
41
+ }
42
+ }
43
+ _handleSendComposingInput(newVal) {
44
+ this.#sendComposingInput = newVal !== null;
45
+ }
58
46
  #teleportEvent = (event) => {
59
47
  const eventType = renameEvent[event.type] ?? event.type;
60
48
  this.#dom.dispatchEvent(new CustomEvent(eventType, {
@@ -112,7 +100,16 @@ let XInputEvents = (() => {
112
100
  }));
113
101
  }
114
102
  };
115
- get #handleEnableSelectionEvent() { return _private_handleEnableSelectionEvent_descriptor.value; }
103
+ _handleEnableSelectionEvent(status) {
104
+ if (status) {
105
+ this.#getInputElement().addEventListener('select', this.#selectEvent, {
106
+ passive: true,
107
+ });
108
+ }
109
+ else {
110
+ this.#getInputElement().removeEventListener('select', this.#selectEvent);
111
+ }
112
+ }
116
113
  #selectEvent = () => {
117
114
  const input = this.#getInputElement();
118
115
  this.#dom.dispatchEvent(new CustomEvent('selection', {
@@ -3,5 +3,6 @@ import type { ListItem } from './ListItem.js';
3
3
  export declare class ListItemAttributes implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
6
+ _handlerEstimatedMainAxisSizePx: (this: void, newVal: string | null) => void;
6
7
  constructor(dom: ListItem);
7
8
  }
@@ -4,26 +4,25 @@ import { __esDecorate, __runInitializers } from "tslib";
4
4
  // Licensed under the Apache License Version 2.0 that can be found in the
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  */
7
- import { Component, registerAttributeHandler, bindToStyle, } from '@lynx-js/web-elements-reactive';
8
- import { CommonEventsAndMethods } from '../common/CommonEventsAndMethods.js';
7
+ import { registerAttributeHandler, bindToStyle, } from '@lynx-js/web-elements-reactive';
9
8
  let ListItemAttributes = (() => {
10
- let _private_handlerEstimatedMainAxisSizePx_decorators;
11
- let _private_handlerEstimatedMainAxisSizePx_initializers = [];
12
- let _private_handlerEstimatedMainAxisSizePx_extraInitializers = [];
9
+ let __handlerEstimatedMainAxisSizePx_decorators;
10
+ let __handlerEstimatedMainAxisSizePx_initializers = [];
11
+ let __handlerEstimatedMainAxisSizePx_extraInitializers = [];
13
12
  return class ListItemAttributes {
14
13
  static {
15
14
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
16
- _private_handlerEstimatedMainAxisSizePx_decorators = [registerAttributeHandler('estimated-main-axis-size-px', true)];
17
- __esDecorate(null, null, _private_handlerEstimatedMainAxisSizePx_decorators, { kind: "field", name: "#handlerEstimatedMainAxisSizePx", static: false, private: true, access: { has: obj => #handlerEstimatedMainAxisSizePx in obj, get: obj => obj.#handlerEstimatedMainAxisSizePx, set: (obj, value) => { obj.#handlerEstimatedMainAxisSizePx = value; } }, metadata: _metadata }, _private_handlerEstimatedMainAxisSizePx_initializers, _private_handlerEstimatedMainAxisSizePx_extraInitializers);
15
+ __handlerEstimatedMainAxisSizePx_decorators = [registerAttributeHandler('estimated-main-axis-size-px', true)];
16
+ __esDecorate(null, null, __handlerEstimatedMainAxisSizePx_decorators, { kind: "field", name: "_handlerEstimatedMainAxisSizePx", static: false, private: false, access: { has: obj => "_handlerEstimatedMainAxisSizePx" in obj, get: obj => obj._handlerEstimatedMainAxisSizePx, set: (obj, value) => { obj._handlerEstimatedMainAxisSizePx = value; } }, metadata: _metadata }, __handlerEstimatedMainAxisSizePx_initializers, __handlerEstimatedMainAxisSizePx_extraInitializers);
18
17
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
19
18
  }
20
19
  static observedAttributes = [
21
20
  'estimated-main-axis-size-px',
22
21
  ];
23
22
  #dom;
24
- #handlerEstimatedMainAxisSizePx = __runInitializers(this, _private_handlerEstimatedMainAxisSizePx_initializers, bindToStyle(() => this.#dom, '--estimated-main-axis-size-px', (v) => `${parseFloat(v)}px`));
23
+ _handlerEstimatedMainAxisSizePx = __runInitializers(this, __handlerEstimatedMainAxisSizePx_initializers, bindToStyle(() => this.#dom, '--estimated-main-axis-size-px', (v) => `${parseFloat(v)}px`));
25
24
  constructor(dom) {
26
- __runInitializers(this, _private_handlerEstimatedMainAxisSizePx_extraInitializers);
25
+ __runInitializers(this, __handlerEstimatedMainAxisSizePx_extraInitializers);
27
26
  this.#dom = dom;
28
27
  }
29
28
  };
@@ -3,6 +3,8 @@ import type { XList } from './XList.js';
3
3
  export declare class XListAttributes implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
6
+ _handlerStickyOffset: (this: void, newVal: string | null) => void;
7
+ _handlerCount: (this: void, newVal: string | null) => void;
6
8
  constructor(dom: XList);
7
9
  connectedCallback(): void;
8
10
  }
@@ -6,19 +6,19 @@ import { __esDecorate, __runInitializers } from "tslib";
6
6
  */
7
7
  import { bindToStyle, boostedQueueMicrotask, registerAttributeHandler, } from '@lynx-js/web-elements-reactive';
8
8
  let XListAttributes = (() => {
9
- let _private_handlerStickyOffset_decorators;
10
- let _private_handlerStickyOffset_initializers = [];
11
- let _private_handlerStickyOffset_extraInitializers = [];
12
- let _private_handlerCount_decorators;
13
- let _private_handlerCount_initializers = [];
14
- let _private_handlerCount_extraInitializers = [];
9
+ let __handlerStickyOffset_decorators;
10
+ let __handlerStickyOffset_initializers = [];
11
+ let __handlerStickyOffset_extraInitializers = [];
12
+ let __handlerCount_decorators;
13
+ let __handlerCount_initializers = [];
14
+ let __handlerCount_extraInitializers = [];
15
15
  return class XListAttributes {
16
16
  static {
17
17
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
18
- _private_handlerStickyOffset_decorators = [registerAttributeHandler('sticky-offset', true)];
19
- _private_handlerCount_decorators = [registerAttributeHandler('span-count', true), registerAttributeHandler('column-count', true)];
20
- __esDecorate(null, null, _private_handlerStickyOffset_decorators, { kind: "field", name: "#handlerStickyOffset", static: false, private: true, access: { has: obj => #handlerStickyOffset in obj, get: obj => obj.#handlerStickyOffset, set: (obj, value) => { obj.#handlerStickyOffset = value; } }, metadata: _metadata }, _private_handlerStickyOffset_initializers, _private_handlerStickyOffset_extraInitializers);
21
- __esDecorate(null, null, _private_handlerCount_decorators, { kind: "field", name: "#handlerCount", static: false, private: true, access: { has: obj => #handlerCount in obj, get: obj => obj.#handlerCount, set: (obj, value) => { obj.#handlerCount = value; } }, metadata: _metadata }, _private_handlerCount_initializers, _private_handlerCount_extraInitializers);
18
+ __handlerStickyOffset_decorators = [registerAttributeHandler('sticky-offset', true)];
19
+ __handlerCount_decorators = [registerAttributeHandler('span-count', true), registerAttributeHandler('column-count', true)];
20
+ __esDecorate(null, null, __handlerStickyOffset_decorators, { kind: "field", name: "_handlerStickyOffset", static: false, private: false, access: { has: obj => "_handlerStickyOffset" in obj, get: obj => obj._handlerStickyOffset, set: (obj, value) => { obj._handlerStickyOffset = value; } }, metadata: _metadata }, __handlerStickyOffset_initializers, __handlerStickyOffset_extraInitializers);
21
+ __esDecorate(null, null, __handlerCount_decorators, { kind: "field", name: "_handlerCount", static: false, private: false, access: { has: obj => "_handlerCount" in obj, get: obj => obj._handlerCount, set: (obj, value) => { obj._handlerCount = value; } }, metadata: _metadata }, __handlerCount_initializers, __handlerCount_extraInitializers);
22
22
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
23
23
  }
24
24
  static observedAttributes = [
@@ -28,10 +28,10 @@ let XListAttributes = (() => {
28
28
  'column-count',
29
29
  ];
30
30
  #dom;
31
- #handlerStickyOffset = __runInitializers(this, _private_handlerStickyOffset_initializers, bindToStyle(() => this.#dom, '--list-item-sticky-offset', (v) => `${parseFloat(v)}px`));
32
- #handlerCount = (__runInitializers(this, _private_handlerStickyOffset_extraInitializers), __runInitializers(this, _private_handlerCount_initializers, bindToStyle(() => this.#dom, '--list-item-span-count', (v) => `${parseFloat(v)}`)));
31
+ _handlerStickyOffset = __runInitializers(this, __handlerStickyOffset_initializers, bindToStyle(() => this.#dom, '--list-item-sticky-offset', (v) => `${parseFloat(v)}px`));
32
+ _handlerCount = (__runInitializers(this, __handlerStickyOffset_extraInitializers), __runInitializers(this, __handlerCount_initializers, bindToStyle(() => this.#dom, '--list-item-span-count', (v) => `${parseFloat(v)}`)));
33
33
  constructor(dom) {
34
- __runInitializers(this, _private_handlerCount_extraInitializers);
34
+ __runInitializers(this, __handlerCount_extraInitializers);
35
35
  this.#dom = dom;
36
36
  }
37
37
  connectedCallback() {
@@ -3,5 +3,12 @@ import type { XList } from './XList.js';
3
3
  export declare class XListEvents implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
6
+ _updateEventSwitches: (enableScrollToUpper: boolean) => void;
7
+ _handleUpperThresholdItemCountChange(newValue: string | null, oldValue: string | null): void;
8
+ _updateScrollToLowerEventSwitches: (enableScrollToLower: boolean) => void;
9
+ _handleLowerThresholdItemCountChange(newValue: string | null, oldValue: string | null): void;
10
+ _handleScrollEventsSwitches: (enabled: boolean, name: string) => void;
11
+ _handleScrollToUpperEdgeEventEnable: (enabled: boolean) => void;
12
+ _handleScrollToLowerEdgeEventEnable: (enabled: boolean) => void;
6
13
  constructor(dom: XList);
7
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
@@ -12,73 +12,40 @@ import { useScrollEnd } from '../common/constants.js';
12
12
  import { registerEventEnableStatusChangeHandler } from '@lynx-js/web-elements-reactive';
13
13
  let XListEvents = (() => {
14
14
  let _instanceExtraInitializers = [];
15
- let _private_updateEventSwitches_decorators;
16
- let _private_updateEventSwitches_initializers = [];
17
- let _private_updateEventSwitches_extraInitializers = [];
18
- let _private_handleUpperThresholdItemCountChange_decorators;
19
- let _private_handleUpperThresholdItemCountChange_descriptor;
20
- let _private_updateScrollToLowerEventSwitches_decorators;
21
- let _private_updateScrollToLowerEventSwitches_initializers = [];
22
- let _private_updateScrollToLowerEventSwitches_extraInitializers = [];
23
- let _private_handleLowerThresholdItemCountChange_decorators;
24
- let _private_handleLowerThresholdItemCountChange_descriptor;
25
- let _private_handleScrollEventsSwitches_decorators;
26
- let _private_handleScrollEventsSwitches_initializers = [];
27
- let _private_handleScrollEventsSwitches_extraInitializers = [];
28
- let _private_handleScrollToUpperEdgeEventEnable_decorators;
29
- let _private_handleScrollToUpperEdgeEventEnable_initializers = [];
30
- let _private_handleScrollToUpperEdgeEventEnable_extraInitializers = [];
31
- let _private_handleScrollToLowerEdgeEventEnable_decorators;
32
- let _private_handleScrollToLowerEdgeEventEnable_initializers = [];
33
- let _private_handleScrollToLowerEdgeEventEnable_extraInitializers = [];
15
+ let __updateEventSwitches_decorators;
16
+ let __updateEventSwitches_initializers = [];
17
+ let __updateEventSwitches_extraInitializers = [];
18
+ let __handleUpperThresholdItemCountChange_decorators;
19
+ let __updateScrollToLowerEventSwitches_decorators;
20
+ let __updateScrollToLowerEventSwitches_initializers = [];
21
+ let __updateScrollToLowerEventSwitches_extraInitializers = [];
22
+ let __handleLowerThresholdItemCountChange_decorators;
23
+ let __handleScrollEventsSwitches_decorators;
24
+ let __handleScrollEventsSwitches_initializers = [];
25
+ let __handleScrollEventsSwitches_extraInitializers = [];
26
+ let __handleScrollToUpperEdgeEventEnable_decorators;
27
+ let __handleScrollToUpperEdgeEventEnable_initializers = [];
28
+ let __handleScrollToUpperEdgeEventEnable_extraInitializers = [];
29
+ let __handleScrollToLowerEdgeEventEnable_decorators;
30
+ let __handleScrollToLowerEdgeEventEnable_initializers = [];
31
+ let __handleScrollToLowerEdgeEventEnable_extraInitializers = [];
34
32
  return class XListEvents {
35
33
  static {
36
34
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
37
- _private_updateEventSwitches_decorators = [registerEventEnableStatusChangeHandler('scrolltoupper')];
38
- _private_handleUpperThresholdItemCountChange_decorators = [registerAttributeHandler('upper-threshold-item-count', true)];
39
- _private_updateScrollToLowerEventSwitches_decorators = [registerEventEnableStatusChangeHandler('scrolltolower')];
40
- _private_handleLowerThresholdItemCountChange_decorators = [registerAttributeHandler('lower-threshold-item-count', true)];
41
- _private_handleScrollEventsSwitches_decorators = [registerEventEnableStatusChangeHandler('lynxscroll'), registerEventEnableStatusChangeHandler('lynxscrollend'), registerEventEnableStatusChangeHandler('snap')];
42
- _private_handleScrollToUpperEdgeEventEnable_decorators = [registerEventEnableStatusChangeHandler('scrolltoupperedge')];
43
- _private_handleScrollToLowerEdgeEventEnable_decorators = [registerEventEnableStatusChangeHandler('scrolltoloweredge')];
44
- __esDecorate(this, _private_handleUpperThresholdItemCountChange_descriptor = { value: __setFunctionName(function (newValue, oldValue) {
45
- const oldItemCount = oldValue !== null
46
- ? parseFloat(oldValue)
47
- : 0;
48
- const oldObserverDom = oldItemCount === 0
49
- ? this.#getUpperThresholdObserverDom()
50
- : this.#dom.children[oldItemCount - 1];
51
- oldObserverDom && this.#upperObserver?.unobserve(oldObserverDom);
52
- const itemCount = newValue !== null
53
- ? parseFloat(newValue)
54
- : 0;
55
- const observerDom = itemCount === 0
56
- ? this.#getUpperThresholdObserverDom()
57
- : this.#dom.children[itemCount - 1];
58
- observerDom && this.#upperObserver?.observe(observerDom);
59
- }, "#handleUpperThresholdItemCountChange") }, _private_handleUpperThresholdItemCountChange_decorators, { kind: "method", name: "#handleUpperThresholdItemCountChange", static: false, private: true, access: { has: obj => #handleUpperThresholdItemCountChange in obj, get: obj => obj.#handleUpperThresholdItemCountChange }, metadata: _metadata }, null, _instanceExtraInitializers);
60
- __esDecorate(this, _private_handleLowerThresholdItemCountChange_descriptor = { value: __setFunctionName(function (newValue, oldValue) {
61
- const oldItemCount = oldValue !== null
62
- ? parseFloat(oldValue)
63
- : 0;
64
- const oldObserverDom = oldItemCount === 0
65
- ? this.#getLowerThresholdObserverDom()
66
- : this.#dom.children[this.#dom.children.length - oldItemCount];
67
- oldObserverDom && this.#lowerObserver?.unobserve(oldObserverDom);
68
- const itemCount = newValue !== null
69
- ? parseFloat(newValue)
70
- : 0;
71
- const observerDom = itemCount === 0
72
- ? this.#getLowerThresholdObserverDom()
73
- : this.#dom.children[this.#dom.children.length
74
- - itemCount];
75
- observerDom && this.#lowerObserver?.observe(observerDom);
76
- }, "#handleLowerThresholdItemCountChange") }, _private_handleLowerThresholdItemCountChange_decorators, { kind: "method", name: "#handleLowerThresholdItemCountChange", static: false, private: true, access: { has: obj => #handleLowerThresholdItemCountChange in obj, get: obj => obj.#handleLowerThresholdItemCountChange }, metadata: _metadata }, null, _instanceExtraInitializers);
77
- __esDecorate(null, null, _private_updateEventSwitches_decorators, { kind: "field", name: "#updateEventSwitches", static: false, private: true, access: { has: obj => #updateEventSwitches in obj, get: obj => obj.#updateEventSwitches, set: (obj, value) => { obj.#updateEventSwitches = value; } }, metadata: _metadata }, _private_updateEventSwitches_initializers, _private_updateEventSwitches_extraInitializers);
78
- __esDecorate(null, null, _private_updateScrollToLowerEventSwitches_decorators, { kind: "field", name: "#updateScrollToLowerEventSwitches", static: false, private: true, access: { has: obj => #updateScrollToLowerEventSwitches in obj, get: obj => obj.#updateScrollToLowerEventSwitches, set: (obj, value) => { obj.#updateScrollToLowerEventSwitches = value; } }, metadata: _metadata }, _private_updateScrollToLowerEventSwitches_initializers, _private_updateScrollToLowerEventSwitches_extraInitializers);
79
- __esDecorate(null, null, _private_handleScrollEventsSwitches_decorators, { kind: "field", name: "#handleScrollEventsSwitches", static: false, private: true, access: { has: obj => #handleScrollEventsSwitches in obj, get: obj => obj.#handleScrollEventsSwitches, set: (obj, value) => { obj.#handleScrollEventsSwitches = value; } }, metadata: _metadata }, _private_handleScrollEventsSwitches_initializers, _private_handleScrollEventsSwitches_extraInitializers);
80
- __esDecorate(null, null, _private_handleScrollToUpperEdgeEventEnable_decorators, { kind: "field", name: "#handleScrollToUpperEdgeEventEnable", static: false, private: true, access: { has: obj => #handleScrollToUpperEdgeEventEnable in obj, get: obj => obj.#handleScrollToUpperEdgeEventEnable, set: (obj, value) => { obj.#handleScrollToUpperEdgeEventEnable = value; } }, metadata: _metadata }, _private_handleScrollToUpperEdgeEventEnable_initializers, _private_handleScrollToUpperEdgeEventEnable_extraInitializers);
81
- __esDecorate(null, null, _private_handleScrollToLowerEdgeEventEnable_decorators, { kind: "field", name: "#handleScrollToLowerEdgeEventEnable", static: false, private: true, access: { has: obj => #handleScrollToLowerEdgeEventEnable in obj, get: obj => obj.#handleScrollToLowerEdgeEventEnable, set: (obj, value) => { obj.#handleScrollToLowerEdgeEventEnable = value; } }, metadata: _metadata }, _private_handleScrollToLowerEdgeEventEnable_initializers, _private_handleScrollToLowerEdgeEventEnable_extraInitializers);
35
+ __updateEventSwitches_decorators = [registerEventEnableStatusChangeHandler('scrolltoupper')];
36
+ __handleUpperThresholdItemCountChange_decorators = [registerAttributeHandler('upper-threshold-item-count', true)];
37
+ __updateScrollToLowerEventSwitches_decorators = [registerEventEnableStatusChangeHandler('scrolltolower')];
38
+ __handleLowerThresholdItemCountChange_decorators = [registerAttributeHandler('lower-threshold-item-count', true)];
39
+ __handleScrollEventsSwitches_decorators = [registerEventEnableStatusChangeHandler('lynxscroll'), registerEventEnableStatusChangeHandler('lynxscrollend'), registerEventEnableStatusChangeHandler('snap')];
40
+ __handleScrollToUpperEdgeEventEnable_decorators = [registerEventEnableStatusChangeHandler('scrolltoupperedge')];
41
+ __handleScrollToLowerEdgeEventEnable_decorators = [registerEventEnableStatusChangeHandler('scrolltoloweredge')];
42
+ __esDecorate(this, null, __handleUpperThresholdItemCountChange_decorators, { kind: "method", name: "_handleUpperThresholdItemCountChange", static: false, private: false, access: { has: obj => "_handleUpperThresholdItemCountChange" in obj, get: obj => obj._handleUpperThresholdItemCountChange }, metadata: _metadata }, null, _instanceExtraInitializers);
43
+ __esDecorate(this, null, __handleLowerThresholdItemCountChange_decorators, { kind: "method", name: "_handleLowerThresholdItemCountChange", static: false, private: false, access: { has: obj => "_handleLowerThresholdItemCountChange" in obj, get: obj => obj._handleLowerThresholdItemCountChange }, metadata: _metadata }, null, _instanceExtraInitializers);
44
+ __esDecorate(null, null, __updateEventSwitches_decorators, { kind: "field", name: "_updateEventSwitches", static: false, private: false, access: { has: obj => "_updateEventSwitches" in obj, get: obj => obj._updateEventSwitches, set: (obj, value) => { obj._updateEventSwitches = value; } }, metadata: _metadata }, __updateEventSwitches_initializers, __updateEventSwitches_extraInitializers);
45
+ __esDecorate(null, null, __updateScrollToLowerEventSwitches_decorators, { kind: "field", name: "_updateScrollToLowerEventSwitches", static: false, private: false, access: { has: obj => "_updateScrollToLowerEventSwitches" in obj, get: obj => obj._updateScrollToLowerEventSwitches, set: (obj, value) => { obj._updateScrollToLowerEventSwitches = value; } }, metadata: _metadata }, __updateScrollToLowerEventSwitches_initializers, __updateScrollToLowerEventSwitches_extraInitializers);
46
+ __esDecorate(null, null, __handleScrollEventsSwitches_decorators, { kind: "field", name: "_handleScrollEventsSwitches", static: false, private: false, access: { has: obj => "_handleScrollEventsSwitches" in obj, get: obj => obj._handleScrollEventsSwitches, set: (obj, value) => { obj._handleScrollEventsSwitches = value; } }, metadata: _metadata }, __handleScrollEventsSwitches_initializers, __handleScrollEventsSwitches_extraInitializers);
47
+ __esDecorate(null, null, __handleScrollToUpperEdgeEventEnable_decorators, { kind: "field", name: "_handleScrollToUpperEdgeEventEnable", static: false, private: false, access: { has: obj => "_handleScrollToUpperEdgeEventEnable" in obj, get: obj => obj._handleScrollToUpperEdgeEventEnable, set: (obj, value) => { obj._handleScrollToUpperEdgeEventEnable = value; } }, metadata: _metadata }, __handleScrollToUpperEdgeEventEnable_initializers, __handleScrollToUpperEdgeEventEnable_extraInitializers);
48
+ __esDecorate(null, null, __handleScrollToLowerEdgeEventEnable_decorators, { kind: "field", name: "_handleScrollToLowerEdgeEventEnable", static: false, private: false, access: { has: obj => "_handleScrollToLowerEdgeEventEnable" in obj, get: obj => obj._handleScrollToLowerEdgeEventEnable, set: (obj, value) => { obj._handleScrollToLowerEdgeEventEnable = value; } }, metadata: _metadata }, __handleScrollToLowerEdgeEventEnable_initializers, __handleScrollToLowerEdgeEventEnable_extraInitializers);
82
49
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
83
50
  }
84
51
  static observedAttributes = [
@@ -128,7 +95,7 @@ let XListEvents = (() => {
128
95
  }));
129
96
  }
130
97
  };
131
- #updateEventSwitches = __runInitializers(this, _private_updateEventSwitches_initializers, (enableScrollToUpper) => {
98
+ _updateEventSwitches = __runInitializers(this, __updateEventSwitches_initializers, (enableScrollToUpper) => {
132
99
  enableScrollToUpper
133
100
  ? this.#dom.setAttribute('x-enable-scrolltoupper-event', '')
134
101
  : this.#dom.removeAttribute('x-enable-scrolltoupper-event'); // css needs this;
@@ -166,8 +133,23 @@ let XListEvents = (() => {
166
133
  });
167
134
  }
168
135
  });
169
- get #handleUpperThresholdItemCountChange() { return _private_handleUpperThresholdItemCountChange_descriptor.value; }
170
- #handleLowerObserver = (__runInitializers(this, _private_updateEventSwitches_extraInitializers), (entries) => {
136
+ _handleUpperThresholdItemCountChange(newValue, oldValue) {
137
+ const oldItemCount = oldValue !== null
138
+ ? parseFloat(oldValue)
139
+ : 0;
140
+ const oldObserverDom = oldItemCount === 0
141
+ ? this.#getUpperThresholdObserverDom()
142
+ : this.#dom.children[oldItemCount - 1];
143
+ oldObserverDom && this.#upperObserver?.unobserve(oldObserverDom);
144
+ const itemCount = newValue !== null
145
+ ? parseFloat(newValue)
146
+ : 0;
147
+ const observerDom = itemCount === 0
148
+ ? this.#getUpperThresholdObserverDom()
149
+ : this.#dom.children[itemCount - 1];
150
+ observerDom && this.#upperObserver?.observe(observerDom);
151
+ }
152
+ #handleLowerObserver = (__runInitializers(this, __updateEventSwitches_extraInitializers), (entries) => {
171
153
  const { isIntersecting } = entries[0];
172
154
  if (isIntersecting) {
173
155
  this.#dom.dispatchEvent(new CustomEvent('scrolltolower', {
@@ -183,7 +165,7 @@ let XListEvents = (() => {
183
165
  scrolltolower: false,
184
166
  scrolltoupper: false,
185
167
  };
186
- #updateScrollToLowerEventSwitches = __runInitializers(this, _private_updateScrollToLowerEventSwitches_initializers, (enableScrollToLower) => {
168
+ _updateScrollToLowerEventSwitches = __runInitializers(this, __updateScrollToLowerEventSwitches_initializers, (enableScrollToLower) => {
187
169
  this.#eventSwitches.scrolltolower = enableScrollToLower;
188
170
  enableScrollToLower
189
171
  ? this.#dom.setAttribute('x-enable-scrolltolower-event', '')
@@ -221,8 +203,24 @@ let XListEvents = (() => {
221
203
  });
222
204
  }
223
205
  });
224
- get #handleLowerThresholdItemCountChange() { return _private_handleLowerThresholdItemCountChange_descriptor.value; }
225
- #handleChildrenObserver = (__runInitializers(this, _private_updateScrollToLowerEventSwitches_extraInitializers), (mutationList) => {
206
+ _handleLowerThresholdItemCountChange(newValue, oldValue) {
207
+ const oldItemCount = oldValue !== null
208
+ ? parseFloat(oldValue)
209
+ : 0;
210
+ const oldObserverDom = oldItemCount === 0
211
+ ? this.#getLowerThresholdObserverDom()
212
+ : this.#dom.children[this.#dom.children.length - oldItemCount];
213
+ oldObserverDom && this.#lowerObserver?.unobserve(oldObserverDom);
214
+ const itemCount = newValue !== null
215
+ ? parseFloat(newValue)
216
+ : 0;
217
+ const observerDom = itemCount === 0
218
+ ? this.#getLowerThresholdObserverDom()
219
+ : this.#dom.children[this.#dom.children.length
220
+ - itemCount];
221
+ observerDom && this.#lowerObserver?.observe(observerDom);
222
+ }
223
+ #handleChildrenObserver = (__runInitializers(this, __updateScrollToLowerEventSwitches_extraInitializers), (mutationList) => {
226
224
  const mutation = mutationList?.[0];
227
225
  // reset upper and lower observers
228
226
  if (mutation?.type === 'childList') {
@@ -283,7 +281,7 @@ let XListEvents = (() => {
283
281
  detail: this.#getScrollDetail(),
284
282
  }));
285
283
  };
286
- #handleScrollEventsSwitches = __runInitializers(this, _private_handleScrollEventsSwitches_initializers, (enabled, name) => {
284
+ _handleScrollEventsSwitches = __runInitializers(this, __handleScrollEventsSwitches_initializers, (enabled, name) => {
287
285
  this.#eventSwitches[name] =
288
286
  enabled;
289
287
  const { lynxscroll, lynxscrollend, snap } = this.#eventSwitches;
@@ -293,7 +291,7 @@ let XListEvents = (() => {
293
291
  // cancel the previous listener first
294
292
  this.#throttledScroll
295
293
  && listContainer.removeEventListener('scroll', this.#throttledScroll);
296
- if (scroll !== null || this.#enableScrollEnd) {
294
+ if (lynxscroll !== null || this.#enableScrollEnd) {
297
295
  const wait = scrollEventThrottle !== null
298
296
  ? parseFloat(scrollEventThrottle)
299
297
  : 0;
@@ -313,7 +311,7 @@ let XListEvents = (() => {
313
311
  listContainer.removeEventListener('scrollend', this.#handleScrollEnd);
314
312
  }
315
313
  });
316
- #handleObserver = (__runInitializers(this, _private_handleScrollEventsSwitches_extraInitializers), (entries) => {
314
+ #handleObserver = (__runInitializers(this, __handleScrollEventsSwitches_extraInitializers), (entries) => {
317
315
  const { isIntersecting, target } = entries[0];
318
316
  const id = target.id;
319
317
  if (isIntersecting) {
@@ -331,20 +329,20 @@ let XListEvents = (() => {
331
329
  }
332
330
  }
333
331
  });
334
- #handleScrollToUpperEdgeEventEnable = __runInitializers(this, _private_handleScrollToUpperEdgeEventEnable_initializers, (enabled) => {
332
+ _handleScrollToUpperEdgeEventEnable = __runInitializers(this, __handleScrollToUpperEdgeEventEnable_initializers, (enabled) => {
335
333
  enabled
336
334
  ? this.#dom.setAttribute('x-enable-scrolltoupperedge-event', '')
337
335
  : this.#dom.removeAttribute('x-enable-scrolltoupperedge-event'); // css needs this;
338
336
  this.#updateUpperEdgeIntersectionObserver(enabled);
339
337
  });
340
- #updateUpperEdgeIntersectionObserver = (__runInitializers(this, _private_handleScrollToUpperEdgeEventEnable_extraInitializers), bindToIntersectionObserver(this.#getListContainer, this.#getUpperThresholdObserverDom, this.#handleObserver));
341
- #handleScrollToLowerEdgeEventEnable = __runInitializers(this, _private_handleScrollToLowerEdgeEventEnable_initializers, (enabled) => {
338
+ #updateUpperEdgeIntersectionObserver = (__runInitializers(this, __handleScrollToUpperEdgeEventEnable_extraInitializers), bindToIntersectionObserver(this.#getListContainer, this.#getUpperThresholdObserverDom, this.#handleObserver));
339
+ _handleScrollToLowerEdgeEventEnable = __runInitializers(this, __handleScrollToLowerEdgeEventEnable_initializers, (enabled) => {
342
340
  enabled
343
341
  ? this.#dom.setAttribute('x-enable-scrolltoloweredge-event', '')
344
342
  : this.#dom.removeAttribute('x-enable-scrolltoloweredge-event'); // css needs this;
345
343
  this.#updateLowerEdgeIntersectionObserver(enabled);
346
344
  });
347
- #updateLowerEdgeIntersectionObserver = (__runInitializers(this, _private_handleScrollToLowerEdgeEventEnable_extraInitializers), bindToIntersectionObserver(this.#getListContainer, this.#getLowerThresholdObserverDom, this.#handleObserver));
345
+ #updateLowerEdgeIntersectionObserver = (__runInitializers(this, __handleScrollToLowerEdgeEventEnable_extraInitializers), bindToIntersectionObserver(this.#getListContainer, this.#getLowerThresholdObserverDom, this.#handleObserver));
348
346
  #handleScrollEnd = () => {
349
347
  const itemSnap = this.#dom.getAttribute('item-snap');
350
348
  this.#dom.dispatchEvent(new CustomEvent('lynxscrollend', {
@@ -3,5 +3,7 @@ import type { XList } from './XList.js';
3
3
  export declare class XListWaterfall implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
6
+ _handleXEnableHeaderOffsetEvent(enableScrollToLower: boolean): void;
6
7
  constructor(dom: XList);
8
+ _handlerListType(newVal: string | null): void;
7
9
  }