@lynx-js/web-elements-canary 0.9.1-canary-20251226-7903c9e4 → 0.10.0-canary-20251226-ccbf3de1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -4
- package/dist/compat/LinearContainer/LinearContainer.d.ts +8 -0
- package/dist/compat/LinearContainer/LinearContainer.js +109 -0
- package/dist/element-reactive/bindSwitchToEventListener.d.ts +1 -0
- package/dist/element-reactive/bindSwitchToEventListener.js +23 -0
- package/dist/element-reactive/bindToAttribute.d.ts +2 -0
- package/dist/element-reactive/bindToAttribute.js +27 -0
- package/dist/element-reactive/bindToStyle.d.ts +2 -0
- package/dist/element-reactive/bindToStyle.js +21 -0
- package/dist/element-reactive/boostedQueueMicrotask.d.ts +1 -0
- package/dist/element-reactive/boostedQueueMicrotask.js +20 -0
- package/dist/element-reactive/component.d.ts +43 -0
- package/dist/element-reactive/component.js +217 -0
- package/dist/element-reactive/genDomGetter.d.ts +9 -0
- package/dist/element-reactive/genDomGetter.js +18 -0
- package/dist/element-reactive/generateRegister.d.ts +6 -0
- package/dist/element-reactive/generateRegister.js +29 -0
- package/dist/element-reactive/html.d.ts +6 -0
- package/dist/element-reactive/html.js +8 -0
- package/dist/element-reactive/index.d.ts +30 -0
- package/dist/element-reactive/index.js +28 -0
- package/dist/element-reactive/registerAttributeHandler.d.ts +12 -0
- package/dist/element-reactive/registerAttributeHandler.js +11 -0
- package/dist/element-reactive/registerEventStatusChangedHandler.d.ts +11 -0
- package/dist/element-reactive/registerEventStatusChangedHandler.js +7 -0
- package/dist/element-reactive/registerStyleChangeHandler.d.ts +2 -0
- package/dist/element-reactive/registerStyleChangeHandler.js +8 -0
- package/dist/{LynxWrapper → elements/LynxWrapper}/LynxWrapper.js +1 -1
- package/dist/elements/LynxWrapper/index.d.ts +14 -0
- package/dist/elements/LynxWrapper/index.js +18 -0
- package/dist/{ScrollView → elements/ScrollView}/FadeEdgeLengthAttribute.d.ts +1 -1
- package/dist/{ScrollView → elements/ScrollView}/FadeEdgeLengthAttribute.js +1 -1
- package/dist/{ScrollView → elements/ScrollView}/ScrollAttributes.d.ts +1 -1
- package/dist/{ScrollView → elements/ScrollView}/ScrollAttributes.js +1 -1
- package/dist/{ScrollView → elements/ScrollView}/ScrollIntoView.d.ts +1 -1
- package/dist/{ScrollView → elements/ScrollView}/ScrollIntoView.js +1 -1
- package/dist/{ScrollView → elements/ScrollView}/ScrollView.js +2 -2
- package/dist/{ScrollView → elements/ScrollView}/ScrollViewEvents.d.ts +1 -1
- package/dist/{ScrollView → elements/ScrollView}/ScrollViewEvents.js +2 -2
- package/dist/elements/ScrollView/index.d.ts +32 -0
- package/dist/elements/ScrollView/index.js +36 -0
- package/dist/{XAudioTT → elements/XAudioTT}/XAudioAttribute.d.ts +1 -1
- package/dist/{XAudioTT → elements/XAudioTT}/XAudioAttribute.js +1 -1
- package/dist/{XAudioTT → elements/XAudioTT}/XAudioEvents.d.ts +1 -1
- package/dist/{XAudioTT → elements/XAudioTT}/XAudioEvents.js +1 -1
- package/dist/{XAudioTT → elements/XAudioTT}/XAudioTT.js +2 -2
- package/dist/elements/XAudioTT/index.d.ts +21 -0
- package/dist/elements/XAudioTT/index.js +25 -0
- package/dist/{XCanvas → elements/XCanvas}/CanvasAttributes.d.ts +1 -1
- package/dist/{XCanvas → elements/XCanvas}/CanvasAttributes.js +1 -1
- package/dist/{XCanvas → elements/XCanvas}/XCanvas.js +1 -1
- package/dist/elements/XCanvas/index.d.ts +14 -0
- package/dist/elements/XCanvas/index.js +18 -0
- package/dist/{XFoldViewNg → elements/XFoldViewNg}/XFoldviewHeaderNg.js +1 -1
- package/dist/{XFoldViewNg → elements/XFoldViewNg}/XFoldviewNg.js +1 -1
- package/dist/{XFoldViewNg → elements/XFoldViewNg}/XFoldviewNgEvents.d.ts +1 -1
- package/dist/{XFoldViewNg → elements/XFoldViewNg}/XFoldviewNgEvents.js +1 -1
- package/dist/{XFoldViewNg → elements/XFoldViewNg}/XFoldviewSlotDragNg.js +1 -1
- package/dist/{XFoldViewNg → elements/XFoldViewNg}/XFoldviewSlotNg.js +1 -1
- package/dist/{XFoldViewNg → elements/XFoldViewNg}/XFoldviewSlotNgTouchEventsHandler.d.ts +1 -1
- package/dist/{XFoldViewNg → elements/XFoldViewNg}/XFoldviewToolbarNg.js +1 -1
- package/dist/elements/XFoldViewNg/index.d.ts +23 -0
- package/dist/elements/XFoldViewNg/index.js +27 -0
- package/dist/{XImage → elements/XImage}/DropShadow.d.ts +1 -1
- package/dist/{XImage → elements/XImage}/DropShadow.js +1 -1
- package/dist/{XImage → elements/XImage}/FilterImage.js +2 -2
- package/dist/{XImage → elements/XImage}/ImageEvents.d.ts +1 -1
- package/dist/{XImage → elements/XImage}/ImageEvents.js +2 -2
- package/dist/{XImage → elements/XImage}/ImageSrc.d.ts +1 -1
- package/dist/{XImage → elements/XImage}/ImageSrc.js +1 -1
- package/dist/{XImage → elements/XImage}/XImage.js +2 -2
- package/dist/elements/XImage/index.d.ts +18 -0
- package/dist/elements/XImage/index.js +22 -0
- package/dist/{XInput → elements/XInput}/InputBaseAttributes.d.ts +1 -1
- package/dist/{XInput → elements/XInput}/InputBaseAttributes.js +1 -1
- package/dist/{XInput → elements/XInput}/Placeholder.d.ts +1 -1
- package/dist/{XInput → elements/XInput}/Placeholder.js +1 -1
- package/dist/{XInput → elements/XInput}/XInput.js +2 -2
- package/dist/{XInput → elements/XInput}/XInputAttribute.d.ts +1 -1
- package/dist/{XInput → elements/XInput}/XInputAttribute.js +1 -1
- package/dist/{XInput → elements/XInput}/XInputEvents.d.ts +1 -1
- package/dist/{XInput → elements/XInput}/XInputEvents.js +2 -2
- package/dist/elements/XInput/index.d.ts +34 -0
- package/dist/elements/XInput/index.js +38 -0
- package/dist/{XList → elements/XList}/ListItem.js +1 -1
- package/dist/{XList → elements/XList}/ListItemAttributes.d.ts +1 -1
- package/dist/{XList → elements/XList}/ListItemAttributes.js +1 -1
- package/dist/{XList → elements/XList}/XList.js +2 -2
- package/dist/{XList → elements/XList}/XListAttributes.d.ts +1 -1
- package/dist/{XList → elements/XList}/XListAttributes.js +1 -1
- package/dist/{XList → elements/XList}/XListEvents.d.ts +1 -1
- package/dist/{XList → elements/XList}/XListEvents.js +2 -2
- package/dist/{XList → elements/XList}/XListWaterfall.d.ts +1 -1
- package/dist/{XList → elements/XList}/XListWaterfall.js +1 -1
- package/dist/elements/XList/index.d.ts +32 -0
- package/dist/elements/XList/index.js +36 -0
- package/dist/{XOverlayNg → elements/XOverlayNg}/XOverlayAttributes.d.ts +1 -1
- package/dist/{XOverlayNg → elements/XOverlayNg}/XOverlayAttributes.js +1 -1
- package/dist/{XOverlayNg → elements/XOverlayNg}/XOverlayNg.js +2 -2
- package/dist/elements/XOverlayNg/index.d.ts +14 -0
- package/dist/elements/XOverlayNg/index.js +18 -0
- package/dist/{XRefreshView → elements/XRefreshView}/XRefreshFooter.js +1 -1
- package/dist/{XRefreshView → elements/XRefreshView}/XRefreshHeader.js +1 -1
- package/dist/{XRefreshView → elements/XRefreshView}/XRefreshSubElementIntersectionObserver.d.ts +1 -1
- package/dist/{XRefreshView → elements/XRefreshView}/XRefreshView.js +2 -2
- package/dist/{XRefreshView → elements/XRefreshView}/XRefreshViewEventsEmitter.d.ts +1 -1
- package/dist/{XRefreshView → elements/XRefreshView}/XRefreshViewEventsEmitter.js +2 -2
- package/dist/elements/XRefreshView/index.d.ts +26 -0
- package/dist/elements/XRefreshView/index.js +30 -0
- package/dist/{XSvg → elements/XSvg}/XSvg.d.ts +1 -1
- package/dist/{XSvg → elements/XSvg}/XSvg.js +2 -2
- package/dist/elements/XSvg/index.d.ts +13 -0
- package/dist/elements/XSvg/index.js +17 -0
- package/dist/{XSwiper → elements/XSwiper}/SwiperItem.js +1 -1
- package/dist/{XSwiper → elements/XSwiper}/XSwiper.js +2 -2
- package/dist/{XSwiper → elements/XSwiper}/XSwiperAutoScroll.d.ts +1 -1
- package/dist/{XSwiper → elements/XSwiper}/XSwiperAutoScroll.js +1 -1
- package/dist/{XSwiper → elements/XSwiper}/XSwiperCircular.d.ts +1 -1
- package/dist/{XSwiper → elements/XSwiper}/XSwiperCircular.js +1 -1
- package/dist/{XSwiper → elements/XSwiper}/XSwiperEvents.d.ts +1 -1
- package/dist/{XSwiper → elements/XSwiper}/XSwiperEvents.js +2 -2
- package/dist/{XSwiper → elements/XSwiper}/XSwiperIndicator.d.ts +1 -1
- package/dist/{XSwiper → elements/XSwiper}/XSwiperIndicator.js +1 -1
- package/dist/elements/XSwiper/index.d.ts +29 -0
- package/dist/elements/XSwiper/index.js +33 -0
- package/dist/{XText → elements/XText}/InlineImage.d.ts +1 -1
- package/dist/{XText → elements/XText}/InlineImage.js +2 -2
- package/dist/{XText → elements/XText}/InlineText.js +1 -1
- package/dist/{XText → elements/XText}/InlineTruncation.js +1 -1
- package/dist/{XText → elements/XText}/RawText.js +1 -1
- package/dist/{XText → elements/XText}/XText.js +2 -2
- package/dist/{XText → elements/XText}/XTextTruncation.d.ts +1 -1
- package/dist/{XText → elements/XText}/XTextTruncation.js +2 -2
- package/dist/elements/XText/index.d.ts +21 -0
- package/dist/elements/XText/index.js +25 -0
- package/dist/{XTextarea → elements/XTextarea}/Placeholder.d.ts +1 -1
- package/dist/{XTextarea → elements/XTextarea}/Placeholder.js +1 -1
- package/dist/{XTextarea → elements/XTextarea}/TextareaBaseAttributes.d.ts +1 -1
- package/dist/{XTextarea → elements/XTextarea}/TextareaBaseAttributes.js +1 -1
- package/dist/{XTextarea → elements/XTextarea}/XTextarea.js +2 -2
- package/dist/{XTextarea → elements/XTextarea}/XTextareaAttributes.d.ts +1 -1
- package/dist/{XTextarea → elements/XTextarea}/XTextareaAttributes.js +1 -1
- package/dist/{XTextarea → elements/XTextarea}/XTextareaEvents.d.ts +1 -1
- package/dist/{XTextarea → elements/XTextarea}/XTextareaEvents.js +2 -2
- package/dist/elements/XTextarea/index.d.ts +35 -0
- package/dist/elements/XTextarea/index.js +39 -0
- package/dist/{XView → elements/XView}/BlurRadius.d.ts +1 -1
- package/dist/{XView → elements/XView}/BlurRadius.js +1 -1
- package/dist/{XView → elements/XView}/XBlurView.js +1 -1
- package/dist/{XView → elements/XView}/XView.js +1 -1
- package/dist/elements/XView/index.d.ts +8 -0
- package/dist/elements/XView/index.js +12 -0
- package/dist/{XViewpagerNg → elements/XViewpagerNg}/XViewpagerItemNg.js +1 -1
- package/dist/{XViewpagerNg → elements/XViewpagerNg}/XViewpagerNg.js +2 -2
- package/dist/{XViewpagerNg → elements/XViewpagerNg}/XViewpagerNgEvents.d.ts +1 -1
- package/dist/{XViewpagerNg → elements/XViewpagerNg}/XViewpagerNgEvents.js +2 -2
- package/dist/elements/XViewpagerNg/index.d.ts +20 -0
- package/dist/elements/XViewpagerNg/index.js +24 -0
- package/dist/{common → elements/common}/CommonEventsAndMethods.js +1 -1
- package/dist/elements/htmlTemplates.d.ts +20 -0
- package/dist/elements/htmlTemplates.js +332 -0
- package/dist/elements/index.d.ts +12 -0
- package/dist/elements/index.js +16 -0
- package/elements.css +14 -14
- package/index.css +1 -1
- package/package.json +81 -58
- package/src/compat/LinearContainer/linear-compat.css +124 -0
- package/src/{common-css → elements/common-css}/linear.css +1 -1
- package/dist/LynxWrapper/index.d.ts +0 -1
- package/dist/LynxWrapper/index.js +0 -2
- package/dist/ScrollView/index.d.ts +0 -1
- package/dist/ScrollView/index.js +0 -2
- package/dist/XAudioTT/index.d.ts +0 -1
- package/dist/XAudioTT/index.js +0 -2
- package/dist/XCanvas/index.d.ts +0 -1
- package/dist/XCanvas/index.js +0 -2
- package/dist/XFoldViewNg/index.d.ts +0 -5
- package/dist/XFoldViewNg/index.js +0 -6
- package/dist/XImage/index.d.ts +0 -2
- package/dist/XImage/index.js +0 -3
- package/dist/XInput/index.d.ts +0 -1
- package/dist/XInput/index.js +0 -2
- package/dist/XList/index.d.ts +0 -2
- package/dist/XList/index.js +0 -3
- package/dist/XOverlayNg/index.d.ts +0 -1
- package/dist/XOverlayNg/index.js +0 -2
- package/dist/XRefreshView/index.d.ts +0 -3
- package/dist/XRefreshView/index.js +0 -4
- package/dist/XSvg/index.d.ts +0 -1
- package/dist/XSvg/index.js +0 -2
- package/dist/XSwiper/index.d.ts +0 -2
- package/dist/XSwiper/index.js +0 -3
- package/dist/XText/index.d.ts +0 -5
- package/dist/XText/index.js +0 -6
- package/dist/XTextarea/index.d.ts +0 -1
- package/dist/XTextarea/index.js +0 -2
- package/dist/XView/index.d.ts +0 -2
- package/dist/XView/index.js +0 -3
- package/dist/XViewpagerNg/index.d.ts +0 -2
- package/dist/XViewpagerNg/index.js +0 -3
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -8
- /package/dist/{LynxWrapper → elements/LynxWrapper}/LynxWrapper.d.ts +0 -0
- /package/dist/{ScrollView → elements/ScrollView}/ScrollView.d.ts +0 -0
- /package/dist/{XAudioTT → elements/XAudioTT}/XAudioTT.d.ts +0 -0
- /package/dist/{XAudioTT → elements/XAudioTT}/utils.d.ts +0 -0
- /package/dist/{XAudioTT → elements/XAudioTT}/utils.js +0 -0
- /package/dist/{XCanvas → elements/XCanvas}/XCanvas.d.ts +0 -0
- /package/dist/{XFoldViewNg → elements/XFoldViewNg}/XFoldviewHeaderNg.d.ts +0 -0
- /package/dist/{XFoldViewNg → elements/XFoldViewNg}/XFoldviewNg.d.ts +0 -0
- /package/dist/{XFoldViewNg → elements/XFoldViewNg}/XFoldviewSlotDragNg.d.ts +0 -0
- /package/dist/{XFoldViewNg → elements/XFoldViewNg}/XFoldviewSlotNg.d.ts +0 -0
- /package/dist/{XFoldViewNg → elements/XFoldViewNg}/XFoldviewSlotNgTouchEventsHandler.js +0 -0
- /package/dist/{XFoldViewNg → elements/XFoldViewNg}/XFoldviewToolbarNg.d.ts +0 -0
- /package/dist/{XImage → elements/XImage}/FilterImage.d.ts +0 -0
- /package/dist/{XImage → elements/XImage}/XImage.d.ts +0 -0
- /package/dist/{XInput → elements/XInput}/XInput.d.ts +0 -0
- /package/dist/{XList → elements/XList}/ListItem.d.ts +0 -0
- /package/dist/{XList → elements/XList}/XList.d.ts +0 -0
- /package/dist/{XOverlayNg → elements/XOverlayNg}/XOverlayNg.d.ts +0 -0
- /package/dist/{XRefreshView → elements/XRefreshView}/XRefreshFooter.d.ts +0 -0
- /package/dist/{XRefreshView → elements/XRefreshView}/XRefreshHeader.d.ts +0 -0
- /package/dist/{XRefreshView → elements/XRefreshView}/XRefreshSubElementIntersectionObserver.js +0 -0
- /package/dist/{XRefreshView → elements/XRefreshView}/XRefreshView.d.ts +0 -0
- /package/dist/{XSwiper → elements/XSwiper}/SwiperItem.d.ts +0 -0
- /package/dist/{XSwiper → elements/XSwiper}/XSwiper.d.ts +0 -0
- /package/dist/{XText → elements/XText}/InlineText.d.ts +0 -0
- /package/dist/{XText → elements/XText}/InlineTruncation.d.ts +0 -0
- /package/dist/{XText → elements/XText}/RawText.d.ts +0 -0
- /package/dist/{XText → elements/XText}/XText.d.ts +0 -0
- /package/dist/{XTextarea → elements/XTextarea}/XTextarea.d.ts +0 -0
- /package/dist/{XView → elements/XView}/XBlurView.d.ts +0 -0
- /package/dist/{XView → elements/XView}/XView.d.ts +0 -0
- /package/dist/{XViewpagerNg → elements/XViewpagerNg}/XViewpagerItemNg.d.ts +0 -0
- /package/dist/{XViewpagerNg → elements/XViewpagerNg}/XViewpagerNg.d.ts +0 -0
- /package/dist/{all.d.ts → elements/all.d.ts} +0 -0
- /package/dist/{all.js → elements/all.js} +0 -0
- /package/dist/{common → elements/common}/CommonEventsAndMethods.d.ts +0 -0
- /package/dist/{common → elements/common}/bindToIntersectionObserver.d.ts +0 -0
- /package/dist/{common → elements/common}/bindToIntersectionObserver.js +0 -0
- /package/dist/{common → elements/common}/commonEventInitConfiguration.d.ts +0 -0
- /package/dist/{common → elements/common}/commonEventInitConfiguration.js +0 -0
- /package/dist/{common → elements/common}/constants.d.ts +0 -0
- /package/dist/{common → elements/common}/constants.js +0 -0
- /package/dist/{common → elements/common}/getCombinedParentElement.d.ts +0 -0
- /package/dist/{common → elements/common}/getCombinedParentElement.js +0 -0
- /package/dist/{common → elements/common}/renameEvent.d.ts +0 -0
- /package/dist/{common → elements/common}/renameEvent.js +0 -0
- /package/dist/{common → elements/common}/throttle.d.ts +0 -0
- /package/dist/{common → elements/common}/throttle.js +0 -0
- /package/src/{LynxWrapper → elements/LynxWrapper}/lynx-wrapper.css +0 -0
- /package/src/{ScrollView → elements/ScrollView}/scroll-view.css +0 -0
- /package/src/{XAudioTT → elements/XAudioTT}/x-audio-tt.css +0 -0
- /package/src/{XCanvas → elements/XCanvas}/x-canvas.css +0 -0
- /package/src/{XFoldViewNg → elements/XFoldViewNg}/x-foldview-ng.css +0 -0
- /package/src/{XImage → elements/XImage}/x-image.css +0 -0
- /package/src/{XInput → elements/XInput}/x-input.css +0 -0
- /package/src/{XList → elements/XList}/x-list.css +0 -0
- /package/src/{XOverlayNg → elements/XOverlayNg}/x-overlay-ng.css +0 -0
- /package/src/{XRefreshView → elements/XRefreshView}/x-refresh-view.css +0 -0
- /package/src/{XSvg → elements/XSvg}/x-svg.css +0 -0
- /package/src/{XSwiper → elements/XSwiper}/x-swiper.css +0 -0
- /package/src/{XText → elements/XText}/x-text.css +0 -0
- /package/src/{XTextarea → elements/XTextarea}/x-textarea.css +0 -0
- /package/src/{XViewpagerNg → elements/XViewpagerNg}/x-viewpager-ng.css +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
export { XRefreshFooter } from './XRefreshFooter.js';
|
|
5
|
+
export { XRefreshHeader } from './XRefreshHeader.js';
|
|
6
|
+
/**
|
|
7
|
+
* @module elements/XRefreshView
|
|
8
|
+
*
|
|
9
|
+
* `x-refresh-view` provides pull-to-refresh and load-more functionality.
|
|
10
|
+
*
|
|
11
|
+
* Attributes:
|
|
12
|
+
* - `enable-refresh`: 'true' | 'false'.
|
|
13
|
+
* - `enable-loadmore`: 'true' | 'false'.
|
|
14
|
+
* - `enable-auto-loadmore`: 'true' | 'false'.
|
|
15
|
+
*
|
|
16
|
+
* Events:
|
|
17
|
+
* - `startrefresh`: Fired when refresh triggers. Detail: `{ isManual }`.
|
|
18
|
+
* - `startloadmore`: Fired when load more triggers.
|
|
19
|
+
* - `headerreleased`: Fired when header is released.
|
|
20
|
+
* - `footerreleased`: Fired when footer is released.
|
|
21
|
+
* - `headeroffset` / `headershow`: Fired during pull down. Detail: `{ isDragging, offsetPercent }`.
|
|
22
|
+
* - `footeroffset`: Fired during pull up. Detail: `{ isDragging, offsetPercent }`.
|
|
23
|
+
*
|
|
24
|
+
* Methods:
|
|
25
|
+
* - `finishRefresh()`: Stops refresh animation.
|
|
26
|
+
* - `finishLoadMore()`: Stops load more animation.
|
|
27
|
+
* - `autoStartRefresh()`: Manually triggers refresh.
|
|
28
|
+
*/
|
|
29
|
+
export { XRefreshView } from './XRefreshView.js';
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AttributeReactiveClass } from '
|
|
1
|
+
import { type AttributeReactiveClass } from '../../element-reactive/index.js';
|
|
2
2
|
export declare class XSvgFeatures implements InstanceType<AttributeReactiveClass<typeof XSvg>> {
|
|
3
3
|
#private;
|
|
4
4
|
static observedAttributes: string[];
|
|
@@ -4,10 +4,10 @@ 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, genDomGetter, registerAttributeHandler, registerEventEnableStatusChangeHandler, } from '
|
|
7
|
+
import { Component, genDomGetter, registerAttributeHandler, registerEventEnableStatusChangeHandler, } from '../../element-reactive/index.js';
|
|
8
8
|
import { CommonEventsAndMethods } from '../common/CommonEventsAndMethods.js';
|
|
9
9
|
import { commonComponentEventSetting } from '../common/commonEventInitConfiguration.js';
|
|
10
|
-
import { templateXSvg } from '
|
|
10
|
+
import { templateXSvg } from '../htmlTemplates.js';
|
|
11
11
|
let XSvgFeatures = (() => {
|
|
12
12
|
let _instanceExtraInitializers = [];
|
|
13
13
|
let __handleSrc_decorators;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module elements/XSvg
|
|
3
|
+
*
|
|
4
|
+
* `x-svg` displays SVG content.
|
|
5
|
+
*
|
|
6
|
+
* Attributes:
|
|
7
|
+
* - `src`: URL of the SVG file.
|
|
8
|
+
* - `content`: Raw SVG content string.
|
|
9
|
+
*
|
|
10
|
+
* Events:
|
|
11
|
+
* - `load`: Fired when SVG loads. Detail: `{ width, height }`.
|
|
12
|
+
*/
|
|
13
|
+
export { XSvg } from './XSvg.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
/**
|
|
5
|
+
* @module elements/XSvg
|
|
6
|
+
*
|
|
7
|
+
* `x-svg` displays SVG content.
|
|
8
|
+
*
|
|
9
|
+
* Attributes:
|
|
10
|
+
* - `src`: URL of the SVG file.
|
|
11
|
+
* - `content`: Raw SVG content string.
|
|
12
|
+
*
|
|
13
|
+
* Events:
|
|
14
|
+
* - `load`: Fired when SVG loads. Detail: `{ width, height }`.
|
|
15
|
+
*/
|
|
16
|
+
export { XSvg } from './XSvg.js';
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -4,7 +4,7 @@ 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 } from '
|
|
7
|
+
import { Component } from '../../element-reactive/index.js';
|
|
8
8
|
import { CommonEventsAndMethods } from '../common/CommonEventsAndMethods.js';
|
|
9
9
|
let SwiperItem = (() => {
|
|
10
10
|
let _classDecorators = [Component('x-swiper-item', [CommonEventsAndMethods])];
|
|
@@ -4,14 +4,14 @@ 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, genDomGetter } from '
|
|
7
|
+
import { Component, genDomGetter } from '../../element-reactive/index.js';
|
|
8
8
|
import { XSwipeEvents } from './XSwiperEvents.js';
|
|
9
9
|
import { XSwiperAutoScroll } from './XSwiperAutoScroll.js';
|
|
10
10
|
import { XSwiperCircular } from './XSwiperCircular.js';
|
|
11
11
|
import { XSwiperIndicator } from './XSwiperIndicator.js';
|
|
12
12
|
import { CommonEventsAndMethods } from '../common/CommonEventsAndMethods.js';
|
|
13
13
|
import { scrollContainerDom } from '../common/constants.js';
|
|
14
|
-
import { templateXSwiper } from '
|
|
14
|
+
import { templateXSwiper } from '../htmlTemplates.js';
|
|
15
15
|
let XSwiper = (() => {
|
|
16
16
|
let _classDecorators = [Component('x-swiper', [
|
|
17
17
|
CommonEventsAndMethods,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AttributeReactiveClass } from '
|
|
1
|
+
import { type AttributeReactiveClass } from '../../element-reactive/index.js';
|
|
2
2
|
import type { XSwiper } from './XSwiper.js';
|
|
3
3
|
export declare class XSwiperAutoScroll implements InstanceType<AttributeReactiveClass<typeof XSwiper>> {
|
|
4
4
|
#private;
|
|
@@ -4,7 +4,7 @@ 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 { registerAttributeHandler, } from '
|
|
7
|
+
import { registerAttributeHandler, } from '../../element-reactive/index.js';
|
|
8
8
|
let XSwiperAutoScroll = (() => {
|
|
9
9
|
let _instanceExtraInitializers = [];
|
|
10
10
|
let __handleCurrentChange_decorators;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AttributeReactiveClass } from '
|
|
1
|
+
import { type AttributeReactiveClass } from '../../element-reactive/index.js';
|
|
2
2
|
import type { XSwiper } from './XSwiper.js';
|
|
3
3
|
export declare class XSwiperCircular implements InstanceType<AttributeReactiveClass<typeof XSwiper>> {
|
|
4
4
|
#private;
|
|
@@ -4,7 +4,7 @@ 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 { bindSwitchToEventListener, genDomGetter, registerAttributeHandler, } from '
|
|
7
|
+
import { bindSwitchToEventListener, genDomGetter, registerAttributeHandler, } from '../../element-reactive/index.js';
|
|
8
8
|
let XSwiperCircular = (() => {
|
|
9
9
|
let _instanceExtraInitializers = [];
|
|
10
10
|
let __handleCircular_decorators;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AttributeReactiveClass } from '
|
|
1
|
+
import { type AttributeReactiveClass } from '../../element-reactive/index.js';
|
|
2
2
|
import type { XSwiper } from './XSwiper.js';
|
|
3
3
|
export declare class XSwipeEvents implements InstanceType<AttributeReactiveClass<typeof XSwiper>> {
|
|
4
4
|
#private;
|
|
@@ -4,10 +4,10 @@ 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 { bindSwitchToEventListener, genDomGetter, } from '
|
|
7
|
+
import { bindSwitchToEventListener, genDomGetter, } from '../../element-reactive/index.js';
|
|
8
8
|
import { commonComponentEventSetting } from '../common/commonEventInitConfiguration.js';
|
|
9
9
|
import { useScrollEnd } from '../common/constants.js';
|
|
10
|
-
import { registerEventEnableStatusChangeHandler } from '
|
|
10
|
+
import { registerEventEnableStatusChangeHandler } from '../../element-reactive/index.js';
|
|
11
11
|
let XSwipeEvents = (() => {
|
|
12
12
|
let _instanceExtraInitializers = [];
|
|
13
13
|
let __handleEnableTransitionEvent_decorators;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AttributeReactiveClass } from '
|
|
1
|
+
import { type AttributeReactiveClass } from '../../element-reactive/index.js';
|
|
2
2
|
import type { XSwiper } from './XSwiper.js';
|
|
3
3
|
export declare class XSwiperIndicator implements InstanceType<AttributeReactiveClass<typeof XSwiper>> {
|
|
4
4
|
#private;
|
|
@@ -4,7 +4,7 @@ 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 { genDomGetter, registerAttributeHandler, bindToStyle, boostedQueueMicrotask, } from '
|
|
7
|
+
import { genDomGetter, registerAttributeHandler, bindToStyle, boostedQueueMicrotask, } from '../../element-reactive/index.js';
|
|
8
8
|
let XSwiperIndicator = (() => {
|
|
9
9
|
let __handleIndicatorColor_decorators;
|
|
10
10
|
let __handleIndicatorColor_initializers = [];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export { SwiperItem } from './SwiperItem.js';
|
|
2
|
+
/**
|
|
3
|
+
* @module elements/XSwiper
|
|
4
|
+
*
|
|
5
|
+
* `x-swiper` provides a swipeable container for items.
|
|
6
|
+
*
|
|
7
|
+
* Attributes:
|
|
8
|
+
* - `mode`: 'normal' | 'carousel' | 'flat-coverflow'.
|
|
9
|
+
* - `vertical`: 'true' | 'false', vertical scrolling.
|
|
10
|
+
* - `circular`: 'true' | 'false', circular scrolling.
|
|
11
|
+
* - `current`: Current index.
|
|
12
|
+
* - `autoplay`: 'true' | 'false'.
|
|
13
|
+
* - `interval`: Autoplay interval in ms (default 5000).
|
|
14
|
+
* - `duration`: Animation duration.
|
|
15
|
+
* - `smooth-scroll`: 'true' | 'false'.
|
|
16
|
+
* - `indicator-dots`: 'true' | 'false', show indicator dots.
|
|
17
|
+
* - `indicator-color`: Color of inactive indicator dots.
|
|
18
|
+
* - `indicator-active-color`: Color of active indicator dot.
|
|
19
|
+
*
|
|
20
|
+
* Events:
|
|
21
|
+
* - `change`: Fired when current index changes. Detail: `{ current, isDragged }`.
|
|
22
|
+
* - `scrollstart`: Fired when scrolling starts.
|
|
23
|
+
* - `scrollend` (mapped to `lynxscrollend`): Fired when scrolling ends.
|
|
24
|
+
* - `transition`: Fired during scroll transition (if enabled). Detail: `{ dx, dy }`.
|
|
25
|
+
*
|
|
26
|
+
* Methods:
|
|
27
|
+
* - `scrollTo({ index, smooth })`: Scrolls to index.
|
|
28
|
+
*/
|
|
29
|
+
export { XSwiper } from './XSwiper.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
export { SwiperItem } from './SwiperItem.js';
|
|
5
|
+
/**
|
|
6
|
+
* @module elements/XSwiper
|
|
7
|
+
*
|
|
8
|
+
* `x-swiper` provides a swipeable container for items.
|
|
9
|
+
*
|
|
10
|
+
* Attributes:
|
|
11
|
+
* - `mode`: 'normal' | 'carousel' | 'flat-coverflow'.
|
|
12
|
+
* - `vertical`: 'true' | 'false', vertical scrolling.
|
|
13
|
+
* - `circular`: 'true' | 'false', circular scrolling.
|
|
14
|
+
* - `current`: Current index.
|
|
15
|
+
* - `autoplay`: 'true' | 'false'.
|
|
16
|
+
* - `interval`: Autoplay interval in ms (default 5000).
|
|
17
|
+
* - `duration`: Animation duration.
|
|
18
|
+
* - `smooth-scroll`: 'true' | 'false'.
|
|
19
|
+
* - `indicator-dots`: 'true' | 'false', show indicator dots.
|
|
20
|
+
* - `indicator-color`: Color of inactive indicator dots.
|
|
21
|
+
* - `indicator-active-color`: Color of active indicator dot.
|
|
22
|
+
*
|
|
23
|
+
* Events:
|
|
24
|
+
* - `change`: Fired when current index changes. Detail: `{ current, isDragged }`.
|
|
25
|
+
* - `scrollstart`: Fired when scrolling starts.
|
|
26
|
+
* - `scrollend` (mapped to `lynxscrollend`): Fired when scrolling ends.
|
|
27
|
+
* - `transition`: Fired during scroll transition (if enabled). Detail: `{ dx, dy }`.
|
|
28
|
+
*
|
|
29
|
+
* Methods:
|
|
30
|
+
* - `scrollTo({ index, smooth })`: Scrolls to index.
|
|
31
|
+
*/
|
|
32
|
+
export { XSwiper } from './XSwiper.js';
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AttributeReactiveClass } from '
|
|
1
|
+
import { type AttributeReactiveClass } from '../../element-reactive/index.js';
|
|
2
2
|
export declare class InlineImageAttributes implements InstanceType<AttributeReactiveClass<typeof InlineImage>> {
|
|
3
3
|
#private;
|
|
4
4
|
static observedAttributes: string[];
|
|
@@ -4,8 +4,8 @@ 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, genDomGetter, registerAttributeHandler, } from '
|
|
8
|
-
import { templateInlineImage } from '
|
|
7
|
+
import { Component, genDomGetter, registerAttributeHandler, } from '../../element-reactive/index.js';
|
|
8
|
+
import { templateInlineImage } from '../htmlTemplates.js';
|
|
9
9
|
let InlineImageAttributes = (() => {
|
|
10
10
|
let _instanceExtraInitializers = [];
|
|
11
11
|
let __handleSrc_decorators;
|
|
@@ -4,7 +4,7 @@ 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 } from '
|
|
7
|
+
import { Component } from '../../element-reactive/index.js';
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated you can use x-text instead in x-text.
|
|
10
10
|
*/
|
|
@@ -4,7 +4,7 @@ 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 } from '
|
|
7
|
+
import { Component } from '../../element-reactive/index.js';
|
|
8
8
|
let InlineTruncation = (() => {
|
|
9
9
|
let _classDecorators = [Component('inline-truncation', [])];
|
|
10
10
|
let _classDescriptor;
|
|
@@ -4,7 +4,7 @@ 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, } from '
|
|
7
|
+
import { Component, registerAttributeHandler, } from '../../element-reactive/index.js';
|
|
8
8
|
let RawTextAttributes = (() => {
|
|
9
9
|
let _instanceExtraInitializers = [];
|
|
10
10
|
let __handleText_decorators;
|
|
@@ -4,12 +4,12 @@ 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 } from '
|
|
7
|
+
import { Component } from '../../element-reactive/index.js';
|
|
8
8
|
import { XTextTruncation } from './XTextTruncation.js';
|
|
9
9
|
import { ScrollIntoView } from '../ScrollView/ScrollIntoView.js';
|
|
10
10
|
import { RawTextAttributes } from './RawText.js';
|
|
11
11
|
import { CommonEventsAndMethods, layoutChangeTarget, } from '../common/CommonEventsAndMethods.js';
|
|
12
|
-
import { templateXText } from '
|
|
12
|
+
import { templateXText } from '../htmlTemplates.js';
|
|
13
13
|
let XText = (() => {
|
|
14
14
|
let _classDecorators = [Component('x-text', [CommonEventsAndMethods, XTextTruncation, RawTextAttributes], templateXText)];
|
|
15
15
|
let _classDescriptor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AttributeReactiveClass } from '
|
|
1
|
+
import { type AttributeReactiveClass } from '../../element-reactive/index.js';
|
|
2
2
|
import type { XText } from './XText.js';
|
|
3
3
|
export declare class XTextTruncation implements InstanceType<AttributeReactiveClass<typeof XText>> {
|
|
4
4
|
#private;
|
|
@@ -4,9 +4,9 @@ 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 { boostedQueueMicrotask, genDomGetter, registerAttributeHandler, } from '
|
|
7
|
+
import { boostedQueueMicrotask, genDomGetter, registerAttributeHandler, } from '../../element-reactive/index.js';
|
|
8
8
|
import { commonComponentEventSetting } from '../common/commonEventInitConfiguration.js';
|
|
9
|
-
import { registerEventEnableStatusChangeHandler } from '
|
|
9
|
+
import { registerEventEnableStatusChangeHandler } from '../../element-reactive/index.js';
|
|
10
10
|
let XTextTruncation = (() => {
|
|
11
11
|
var _a;
|
|
12
12
|
let _instanceExtraInitializers = [];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { InlineImage } from './InlineImage.js';
|
|
2
|
+
export { InlineText } from './InlineText.js';
|
|
3
|
+
export { InlineTruncation } from './InlineTruncation.js';
|
|
4
|
+
export { RawText } from './RawText.js';
|
|
5
|
+
/**
|
|
6
|
+
* @module elements/XText
|
|
7
|
+
*
|
|
8
|
+
* `x-text` displays text content, supporting truncation and rich text.
|
|
9
|
+
*
|
|
10
|
+
* Attributes:
|
|
11
|
+
* - `text-maxlength`: Max characters to show.
|
|
12
|
+
* - `text-maxline`: Max lines to show (ellipsis).
|
|
13
|
+
* - `tail-color-convert`: 'true' | 'false', whether to apply color to truncation ellipsis.
|
|
14
|
+
*
|
|
15
|
+
* Events:
|
|
16
|
+
* - `layout`: Fired when text layout happens (if enabled). Detail provides line info.
|
|
17
|
+
*
|
|
18
|
+
* CSS Variables:
|
|
19
|
+
* - `--lynx-text-bg-color`: Inherited background color for nested text elements.
|
|
20
|
+
*/
|
|
21
|
+
export { XText } from './XText.js';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
export { InlineImage } from './InlineImage.js';
|
|
5
|
+
export { InlineText } from './InlineText.js';
|
|
6
|
+
export { InlineTruncation } from './InlineTruncation.js';
|
|
7
|
+
export { RawText } from './RawText.js';
|
|
8
|
+
/**
|
|
9
|
+
* @module elements/XText
|
|
10
|
+
*
|
|
11
|
+
* `x-text` displays text content, supporting truncation and rich text.
|
|
12
|
+
*
|
|
13
|
+
* Attributes:
|
|
14
|
+
* - `text-maxlength`: Max characters to show.
|
|
15
|
+
* - `text-maxline`: Max lines to show (ellipsis).
|
|
16
|
+
* - `tail-color-convert`: 'true' | 'false', whether to apply color to truncation ellipsis.
|
|
17
|
+
*
|
|
18
|
+
* Events:
|
|
19
|
+
* - `layout`: Fired when text layout happens (if enabled). Detail provides line info.
|
|
20
|
+
*
|
|
21
|
+
* CSS Variables:
|
|
22
|
+
* - `--lynx-text-bg-color`: Inherited background color for nested text elements.
|
|
23
|
+
*/
|
|
24
|
+
export { XText } from './XText.js';
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AttributeReactiveClass } from '
|
|
1
|
+
import { type AttributeReactiveClass } from '../../element-reactive/index.js';
|
|
2
2
|
import { XTextarea } from './XTextarea.js';
|
|
3
3
|
export declare class Placeholder implements InstanceType<AttributeReactiveClass<typeof XTextarea>> {
|
|
4
4
|
#private;
|
|
@@ -4,7 +4,7 @@ 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 { bindToAttribute, bindToStyle, genDomGetter, registerAttributeHandler, } from '
|
|
7
|
+
import { bindToAttribute, bindToStyle, genDomGetter, registerAttributeHandler, } from '../../element-reactive/index.js';
|
|
8
8
|
import { XTextarea } from './XTextarea.js';
|
|
9
9
|
let Placeholder = (() => {
|
|
10
10
|
let __updatePlaceholderColor_decorators;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AttributeReactiveClass } from '
|
|
1
|
+
import { type AttributeReactiveClass } from '../../element-reactive/index.js';
|
|
2
2
|
export declare class TextareaBaseAttributes implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
|
|
3
3
|
#private;
|
|
4
4
|
static observedAttributes: string[];
|
|
@@ -4,7 +4,7 @@ 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 { bindToAttribute, genDomGetter, registerAttributeHandler, } from '
|
|
7
|
+
import { bindToAttribute, genDomGetter, registerAttributeHandler, } from '../../element-reactive/index.js';
|
|
8
8
|
let TextareaBaseAttributes = (() => {
|
|
9
9
|
let __handlerConfirmType_decorators;
|
|
10
10
|
let __handlerConfirmType_initializers = [];
|
|
@@ -4,13 +4,13 @@ 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, genDomGetter } from '
|
|
7
|
+
import { Component, genDomGetter } from '../../element-reactive/index.js';
|
|
8
8
|
import { Placeholder } from './Placeholder.js';
|
|
9
9
|
import { TextareaBaseAttributes } from './TextareaBaseAttributes.js';
|
|
10
10
|
import { XTextareaAttributes } from './XTextareaAttributes.js';
|
|
11
11
|
import { XTextareaEvents } from './XTextareaEvents.js';
|
|
12
12
|
import { CommonEventsAndMethods } from '../common/CommonEventsAndMethods.js';
|
|
13
|
-
import { templateXTextarea } from '
|
|
13
|
+
import { templateXTextarea } from '../htmlTemplates.js';
|
|
14
14
|
// x-textarea
|
|
15
15
|
let XTextarea = (() => {
|
|
16
16
|
let _classDecorators = [Component('x-textarea', [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AttributeReactiveClass } from '
|
|
1
|
+
import { type AttributeReactiveClass } from '../../element-reactive/index.js';
|
|
2
2
|
export declare class XTextareaAttributes implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
|
|
3
3
|
#private;
|
|
4
4
|
static observedAttributes: string[];
|
|
@@ -4,7 +4,7 @@ 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 { bindToAttribute, genDomGetter, registerAttributeHandler, bindToStyle, } from '
|
|
7
|
+
import { bindToAttribute, genDomGetter, registerAttributeHandler, bindToStyle, } from '../../element-reactive/index.js';
|
|
8
8
|
let XTextareaAttributes = (() => {
|
|
9
9
|
let _instanceExtraInitializers = [];
|
|
10
10
|
let __handleConfirmEnter_decorators;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AttributeReactiveClass } from '
|
|
1
|
+
import { type AttributeReactiveClass } from '../../element-reactive/index.js';
|
|
2
2
|
export declare class XTextareaEvents implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
|
|
3
3
|
#private;
|
|
4
4
|
static observedAttributes: string[];
|
|
@@ -4,10 +4,10 @@ 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 { genDomGetter, registerAttributeHandler, } from '
|
|
7
|
+
import { genDomGetter, registerAttributeHandler, } from '../../element-reactive/index.js';
|
|
8
8
|
import { commonComponentEventSetting } from '../common/commonEventInitConfiguration.js';
|
|
9
9
|
import { renameEvent } from '../common/renameEvent.js';
|
|
10
|
-
import { registerEventEnableStatusChangeHandler } from '
|
|
10
|
+
import { registerEventEnableStatusChangeHandler } from '../../element-reactive/index.js';
|
|
11
11
|
let XTextareaEvents = (() => {
|
|
12
12
|
let _instanceExtraInitializers = [];
|
|
13
13
|
let __handleEnableConfirmEvent_decorators;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module elements/XTextarea
|
|
3
|
+
*
|
|
4
|
+
* `x-textarea` provides a multi-line input field.
|
|
5
|
+
*
|
|
6
|
+
* Attributes:
|
|
7
|
+
* - `value`: Input value.
|
|
8
|
+
* - `disabled`: 'true' | 'false'.
|
|
9
|
+
* - `placeholder`: Placeholder text.
|
|
10
|
+
* - `maxlength`: Max character length (default 140).
|
|
11
|
+
* - `auto-height`: 'true' | 'false', auto resize height.
|
|
12
|
+
* - `confirm-type`: 'send' | 'search' | 'next' | 'go' | 'done'.
|
|
13
|
+
* - `confirm-enter`: 'true' | 'false', trigger confirm event on enter.
|
|
14
|
+
* - `max-height`: Max height style.
|
|
15
|
+
* - `min-height`: Min height style.
|
|
16
|
+
* - `placeholder-color`: Color of the placeholder text.
|
|
17
|
+
* - `placeholder-font-weight`: Font weight of the placeholder.
|
|
18
|
+
* - `placeholder-font-size`: Font size of the placeholder.
|
|
19
|
+
* - `placeholder-font-family`: Font family of the placeholder.
|
|
20
|
+
*
|
|
21
|
+
* Events:
|
|
22
|
+
* - `input`: Fired on input.
|
|
23
|
+
* - `focus`: Fired on focus.
|
|
24
|
+
* - `blur`: Fired on blur.
|
|
25
|
+
* - `confirm`: Fired on confirm/enter.
|
|
26
|
+
* - `linechange`: Fired when line count changes.
|
|
27
|
+
*
|
|
28
|
+
* Methods:
|
|
29
|
+
* - `addText({ text })`: Inserts text.
|
|
30
|
+
* - `setValue({ value, index })`: Sets value and cursor.
|
|
31
|
+
* - `getValue()`: Returns value and selection.
|
|
32
|
+
* - `select()`: Selects all text.
|
|
33
|
+
* - `setSelectionRange({ selectionStart, selectionEnd })`: Sets selection.
|
|
34
|
+
*/
|
|
35
|
+
export { XTextarea } from './XTextarea.js';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
/**
|
|
5
|
+
* @module elements/XTextarea
|
|
6
|
+
*
|
|
7
|
+
* `x-textarea` provides a multi-line input field.
|
|
8
|
+
*
|
|
9
|
+
* Attributes:
|
|
10
|
+
* - `value`: Input value.
|
|
11
|
+
* - `disabled`: 'true' | 'false'.
|
|
12
|
+
* - `placeholder`: Placeholder text.
|
|
13
|
+
* - `maxlength`: Max character length (default 140).
|
|
14
|
+
* - `auto-height`: 'true' | 'false', auto resize height.
|
|
15
|
+
* - `confirm-type`: 'send' | 'search' | 'next' | 'go' | 'done'.
|
|
16
|
+
* - `confirm-enter`: 'true' | 'false', trigger confirm event on enter.
|
|
17
|
+
* - `max-height`: Max height style.
|
|
18
|
+
* - `min-height`: Min height style.
|
|
19
|
+
* - `placeholder-color`: Color of the placeholder text.
|
|
20
|
+
* - `placeholder-font-weight`: Font weight of the placeholder.
|
|
21
|
+
* - `placeholder-font-size`: Font size of the placeholder.
|
|
22
|
+
* - `placeholder-font-family`: Font family of the placeholder.
|
|
23
|
+
*
|
|
24
|
+
* Events:
|
|
25
|
+
* - `input`: Fired on input.
|
|
26
|
+
* - `focus`: Fired on focus.
|
|
27
|
+
* - `blur`: Fired on blur.
|
|
28
|
+
* - `confirm`: Fired on confirm/enter.
|
|
29
|
+
* - `linechange`: Fired when line count changes.
|
|
30
|
+
*
|
|
31
|
+
* Methods:
|
|
32
|
+
* - `addText({ text })`: Inserts text.
|
|
33
|
+
* - `setValue({ value, index })`: Sets value and cursor.
|
|
34
|
+
* - `getValue()`: Returns value and selection.
|
|
35
|
+
* - `select()`: Selects all text.
|
|
36
|
+
* - `setSelectionRange({ selectionStart, selectionEnd })`: Sets selection.
|
|
37
|
+
*/
|
|
38
|
+
export { XTextarea } from './XTextarea.js';
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AttributeReactiveClass } from '
|
|
1
|
+
import { type AttributeReactiveClass } from '../../element-reactive/index.js';
|
|
2
2
|
import type { XBlurView } from './XBlurView.js';
|
|
3
3
|
export declare class BlurRadius implements InstanceType<AttributeReactiveClass<typeof XBlurView>> {
|
|
4
4
|
#private;
|
|
@@ -4,7 +4,7 @@ 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 { genDomGetter, registerAttributeHandler, } from '
|
|
7
|
+
import { genDomGetter, registerAttributeHandler, } from '../../element-reactive/index.js';
|
|
8
8
|
let BlurRadius = (() => {
|
|
9
9
|
let _instanceExtraInitializers = [];
|
|
10
10
|
let __handleBlurRadius_decorators;
|
|
@@ -4,7 +4,7 @@ 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 } from '
|
|
7
|
+
import { Component } from '../../element-reactive/index.js';
|
|
8
8
|
import { CommonEventsAndMethods } from '../common/CommonEventsAndMethods.js';
|
|
9
9
|
import { BlurRadius } from './BlurRadius.js';
|
|
10
10
|
let XBlurView = (() => {
|
|
@@ -4,7 +4,7 @@ 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 } from '
|
|
7
|
+
import { Component } from '../../element-reactive/index.js';
|
|
8
8
|
import { ScrollIntoView } from '../ScrollView/ScrollIntoView.js';
|
|
9
9
|
import { CommonEventsAndMethods, layoutChangeTarget, } from '../common/CommonEventsAndMethods.js';
|
|
10
10
|
let XView = (() => {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
/**
|
|
5
|
+
* @module elements/XView
|
|
6
|
+
*
|
|
7
|
+
* `x-view` is a generic container element, similar to `div`.
|
|
8
|
+
* It supports standard layout and styling attributes.
|
|
9
|
+
*/
|
|
10
|
+
export { XView } from './XView.js';
|
|
11
|
+
export { XBlurView } from './XBlurView.js';
|
|
12
|
+
//# sourceMappingURL=index.js.map
|