@lynx-js/web-elements 0.2.4 → 0.3.0

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 (41) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/ScrollView/FadeEdgeLengthAttribute.d.ts +2 -2
  3. package/dist/ScrollView/ScrollAttributes.d.ts +2 -2
  4. package/dist/ScrollView/ScrollIntoView.d.ts +2 -2
  5. package/dist/ScrollView/ScrollIntoView.js +6 -0
  6. package/dist/ScrollView/ScrollView.js +1 -1
  7. package/dist/ScrollView/ScrollViewEvents.d.ts +1 -1
  8. package/dist/XAudioTT/XAudioAttribute.d.ts +1 -1
  9. package/dist/XAudioTT/XAudioEvents.d.ts +1 -1
  10. package/dist/XCanvas/CanvasAttributes.d.ts +2 -2
  11. package/dist/XFoldViewNg/XFoldviewHeaderNgFeatures.d.ts +1 -1
  12. package/dist/XFoldViewNg/XFoldviewNgEvents.d.ts +2 -2
  13. package/dist/XFoldViewNg/XFoldviewSlotNgTouchEventsHandler.d.ts +1 -1
  14. package/dist/XImage/DropShadow.d.ts +1 -1
  15. package/dist/XImage/ImageEvents.d.ts +1 -1
  16. package/dist/XInput/InputBaseAttributes.d.ts +1 -1
  17. package/dist/XInput/Placeholder.d.ts +1 -1
  18. package/dist/XInput/XInputAttribute.d.ts +1 -1
  19. package/dist/XInput/XInputEvents.d.ts +1 -1
  20. package/dist/XList/XList.js +1 -1
  21. package/dist/XList/XListAttributes.d.ts +1 -1
  22. package/dist/XList/XListEvents.d.ts +1 -1
  23. package/dist/XOverlayNg/XOverlayAttributes.d.ts +2 -2
  24. package/dist/XRefreshView/XRefreshSubElementIntersectionObserver.d.ts +3 -3
  25. package/dist/XRefreshView/XRefreshViewEventsEmitter.d.ts +1 -1
  26. package/dist/XSvg/XSvg.d.ts +1 -1
  27. package/dist/XSwiper/XSwiperAutoScroll.d.ts +2 -2
  28. package/dist/XSwiper/XSwiperCircular.d.ts +2 -2
  29. package/dist/XSwiper/XSwiperEvents.d.ts +1 -1
  30. package/dist/XSwiper/XSwiperIndicator.d.ts +2 -2
  31. package/dist/XText/InlineImage.d.ts +1 -1
  32. package/dist/XText/XTextTruncation.d.ts +1 -1
  33. package/dist/XTextarea/Placeholder.d.ts +1 -1
  34. package/dist/XTextarea/Placeholder.js +1 -0
  35. package/dist/XTextarea/TextareaBaseAttributes.d.ts +1 -1
  36. package/dist/XTextarea/XTextareaAttributes.d.ts +1 -1
  37. package/dist/XTextarea/XTextareaEvents.d.ts +1 -1
  38. package/dist/XView/BlurRadius.d.ts +2 -2
  39. package/dist/XViewpagerNg/XViewpagerNgEvents.d.ts +1 -1
  40. package/package.json +7 -2
  41. package/src/common-css/linear.css +1 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @lynx-js/web-elements
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - feat: support `justify-content`, `align-self` in linear container ([#37](https://github.com/lynx-family/lynx-stack/pull/37))
8
+
9
+ Now these two properties could work in a linear container.
10
+
11
+ We don't transforms the `justify-content` and `align-self` to css vars any more.
12
+
13
+ The previous version of `@lynx-js/web-core` won't work with current `@lynx-js/web-core` after this change.
14
+
15
+ ### Patch Changes
16
+
17
+ - Support NPM provenance. ([#30](https://github.com/lynx-family/lynx-stack/pull/30))
18
+
19
+ - Updated dependencies [[`c617453`](https://github.com/lynx-family/lynx-stack/commit/c617453aea967aba702967deb2916b5c883f03bb)]:
20
+ - @lynx-js/web-elements-reactive@0.1.1
21
+
3
22
  ## 0.2.4
4
23
 
5
24
  ### Patch Changes
@@ -1,5 +1,5 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { ScrollView } from './ScrollView.js';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
+ import type { ScrollView } from './ScrollView.js';
3
3
  export declare class FadeEdgeLengthAttribute implements InstanceType<AttributeReactiveClass<typeof ScrollView>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
@@ -1,5 +1,5 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { ScrollView } from './ScrollView.js';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
+ import type { ScrollView } from './ScrollView.js';
3
3
  export declare class ScrollAttributes implements InstanceType<AttributeReactiveClass<typeof ScrollView>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
@@ -1,5 +1,5 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { ScrollView } from './ScrollView.js';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
+ import type { ScrollView } from './ScrollView.js';
3
3
  export declare class ScrollIntoView implements InstanceType<AttributeReactiveClass<typeof ScrollView>> {
4
4
  #private;
5
5
  static eventName: "__scrollIntoView";
@@ -1,3 +1,9 @@
1
+ /*
2
+ // Copyright 2024 The Lynx Authors. All rights reserved.
3
+ // Licensed under the Apache License Version 2.0 that can be found in the
4
+ // LICENSE file in the root directory of this source tree.
5
+ */
6
+ import {} from '@lynx-js/web-elements-reactive';
1
7
  export class ScrollIntoView {
2
8
  static eventName = '__scrollIntoView';
3
9
  static observedAttributes = [];
@@ -9,7 +9,7 @@ import { FadeEdgeLengthAttribute } from './FadeEdgeLengthAttribute.js';
9
9
  import { ScrollAttributes } from './ScrollAttributes.js';
10
10
  import { ScrollViewEvents } from './ScrollViewEvents.js';
11
11
  import { ScrollIntoView } from './ScrollIntoView.js';
12
- import { Component, html } from '@lynx-js/web-elements-reactive';
12
+ import { Component, genDomGetter, html } from '@lynx-js/web-elements-reactive';
13
13
  import { scrollContainerDom } from '../common/constants.js';
14
14
  let ScrollView = (() => {
15
15
  let _classDecorators = [Component('scroll-view', [
@@ -1,5 +1,5 @@
1
1
  import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { ScrollView } from './ScrollView.js';
2
+ import type { ScrollView } from './ScrollView.js';
3
3
  export declare class ScrollViewEvents implements InstanceType<AttributeReactiveClass<typeof ScrollView>> {
4
4
  #private;
5
5
  constructor(dom: ScrollView);
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  import type { XAudioTT } from './XAudioTT.js';
3
3
  export declare class XAudioAttribute implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
4
4
  #private;
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  import type { XAudioTT } from './XAudioTT.js';
3
3
  export declare class XAudioEvents implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
4
4
  #private;
@@ -1,5 +1,5 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { XCanvas } from './XCanvas.js';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
+ import type { XCanvas } from './XCanvas.js';
3
3
  export declare class CanvasAttributes implements InstanceType<AttributeReactiveClass<typeof XCanvas>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
@@ -1,5 +1,5 @@
1
1
  import type { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { XFoldviewHeaderNg } from './XFoldviewHeaderNg.js';
2
+ import type { XFoldviewHeaderNg } from './XFoldviewHeaderNg.js';
3
3
  export declare class XFoldviewHeaderNgFeatures implements InstanceType<AttributeReactiveClass<typeof XFoldviewHeaderNg>> {
4
4
  #private;
5
5
  static observedAttributes: never[];
@@ -1,5 +1,5 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { XFoldviewNg } from './XFoldviewNg.js';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
+ import type { XFoldviewNg } from './XFoldviewNg.js';
3
3
  export declare class XFoldviewNgEvents implements InstanceType<AttributeReactiveClass<typeof XFoldviewNg>> {
4
4
  #private;
5
5
  constructor(dom: XFoldviewNg);
@@ -1,5 +1,5 @@
1
1
  import type { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { XFoldviewSlotNg } from './XFoldviewSlotNg.js';
2
+ import type { XFoldviewSlotNg } from './XFoldviewSlotNg.js';
3
3
  export declare class XFoldviewSlotNgTouchEventsHandler implements InstanceType<AttributeReactiveClass<typeof XFoldviewSlotNg>> {
4
4
  #private;
5
5
  static observedAttributes: never[];
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  export declare class DropShadow implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
3
3
  #private;
4
4
  static observedAttributes: string[];
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  export declare class ImageEvents implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
3
3
  #private;
4
4
  static observedAttributes: string[];
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  /**
3
3
  * shared by x-input and x-input-ng
4
4
  */
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  export declare class Placeholder implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
3
3
  #private;
4
4
  static observedAttributes: string[];
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  /**
3
3
  * shared by x-input and x-input-ng
4
4
  */
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ 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[];
@@ -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, genDomGetter, html, } from '@lynx-js/web-elements-reactive';
7
+ import { boostedQueueMicrotask, Component, genDomGetter, html, } from '@lynx-js/web-elements-reactive';
8
8
  import { XListAttributes } from './XListAttributes.js';
9
9
  import { XListEvents } from './XListEvents.js';
10
10
  import { LynxExposure } from '../common/Exposure.js';
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  import type { XList } from './XList.js';
3
3
  export declare class XListAttributes implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
4
4
  #private;
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  import type { XList } from './XList.js';
3
3
  export declare class XListEvents implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
4
4
  #private;
@@ -1,5 +1,5 @@
1
- import { XOverlayNg } from './XOverlayNg.js';
2
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import type { XOverlayNg } from './XOverlayNg.js';
2
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
3
3
  export declare class XOverlayAttributes implements InstanceType<AttributeReactiveClass<typeof XOverlayNg>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
@@ -1,6 +1,6 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { XRefreshFooter } from './XRefreshFooter.js';
3
- import { XRefreshHeader } from './XRefreshHeader.js';
1
+ import type { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
+ import type { XRefreshFooter } from './XRefreshFooter.js';
3
+ import type { XRefreshHeader } from './XRefreshHeader.js';
4
4
  export declare class XRefreshIntersectionObserverEvent extends Event {
5
5
  startShowing: boolean;
6
6
  fullyShowing: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { XRefreshView } from './XRefreshView.js';
2
+ import type { XRefreshView } from './XRefreshView.js';
3
3
  export declare class XRefreshViewEventsEmitter implements InstanceType<AttributeReactiveClass<typeof XRefreshView>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  export declare class XSvgFeatures implements InstanceType<AttributeReactiveClass<typeof XSvg>> {
3
3
  #private;
4
4
  static observedAttributes: string[];
@@ -1,5 +1,5 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { XSwiper } from './XSwiper.js';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
+ import type { XSwiper } from './XSwiper.js';
3
3
  export declare class XSwiperAutoScroll implements InstanceType<AttributeReactiveClass<typeof XSwiper>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
@@ -1,5 +1,5 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { XSwiper } from './XSwiper.js';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
+ import type { XSwiper } from './XSwiper.js';
3
3
  export declare class XSwiperCircular implements InstanceType<AttributeReactiveClass<typeof XSwiper>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
@@ -1,5 +1,5 @@
1
1
  import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { XSwiper } from './XSwiper.js';
2
+ import type { XSwiper } from './XSwiper.js';
3
3
  export declare class XSwipeEvents implements InstanceType<AttributeReactiveClass<typeof XSwiper>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
@@ -1,5 +1,5 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { XSwiper } from './XSwiper.js';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
+ import type { XSwiper } from './XSwiper.js';
3
3
  export declare class XSwiperIndicator implements InstanceType<AttributeReactiveClass<typeof XSwiper>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  export declare class InlineImageAttributes implements InstanceType<AttributeReactiveClass<typeof InlineImage>> {
3
3
  #private;
4
4
  static observedAttributes: string[];
@@ -1,5 +1,5 @@
1
1
  import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { XText } from './XText.js';
2
+ import type { XText } from './XText.js';
3
3
  export declare class XTextTruncation implements InstanceType<AttributeReactiveClass<typeof XText>> {
4
4
  #private;
5
5
  static exceedMathLengthAttribute: "x-text-clipped";
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  import { XTextarea } from './XTextarea.js';
3
3
  export declare class Placeholder implements InstanceType<AttributeReactiveClass<typeof XTextarea>> {
4
4
  #private;
@@ -5,6 +5,7 @@ import { __esDecorate, __runInitializers } from "tslib";
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import { bindToAttribute, bindToStyle, genDomGetter, registerAttributeHandler, } from '@lynx-js/web-elements-reactive';
8
+ import { XTextarea } from './XTextarea.js';
8
9
  let Placeholder = (() => {
9
10
  let _private_updatePlaceholderColor_decorators;
10
11
  let _private_updatePlaceholderColor_initializers = [];
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  export declare class TextareaBaseAttributes implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
3
3
  #private;
4
4
  static observedAttributes: string[];
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  export declare class XTextareaAttributes implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
3
3
  #private;
4
4
  static observedAttributes: string[];
@@ -1,4 +1,4 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
2
  export declare class XTextareaEvents implements InstanceType<AttributeReactiveClass<typeof HTMLElement>> {
3
3
  #private;
4
4
  static observedAttributes: string[];
@@ -1,5 +1,5 @@
1
- import { AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { XBlurView } from './XBlurView.js';
1
+ import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
+ import type { XBlurView } from './XBlurView.js';
3
3
  export declare class BlurRadius implements InstanceType<AttributeReactiveClass<typeof XBlurView>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
@@ -1,5 +1,5 @@
1
1
  import { type AttributeReactiveClass } from '@lynx-js/web-elements-reactive';
2
- import { XViewpagerNg } from './XViewpagerNg.js';
2
+ import type { XViewpagerNg } from './XViewpagerNg.js';
3
3
  export declare class XViewpagerNgEvents implements InstanceType<AttributeReactiveClass<typeof XViewpagerNg>> {
4
4
  #private;
5
5
  static observedAttributes: string[];
package/package.json CHANGED
@@ -1,7 +1,12 @@
1
1
  {
2
2
  "name": "@lynx-js/web-elements",
3
- "version": "0.2.4",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/lynx-family/lynx-stack.git",
8
+ "directory": "packages/web-platform/web-elements"
9
+ },
5
10
  "license": "Apache-2.0",
6
11
  "sideEffects": true,
7
12
  "type": "module",
@@ -99,7 +104,7 @@
99
104
  "**/*.css"
100
105
  ],
101
106
  "dependencies": {
102
- "@lynx-js/web-elements-reactive": "0.1.0"
107
+ "@lynx-js/web-elements-reactive": "0.1.1"
103
108
  },
104
109
  "devDependencies": {
105
110
  "tslib": "^2.8.1"
@@ -66,14 +66,6 @@
66
66
  syntax: "*";
67
67
  inherits: false;
68
68
  }
69
- @property --justify-content {
70
- syntax: "*";
71
- inherits: false;
72
- }
73
- @property --align-self {
74
- syntax: "*";
75
- inherits: false;
76
- }
77
69
  @property --flex-grow {
78
70
  syntax: "<number>";
79
71
  inherits: false;
@@ -207,8 +199,7 @@ x-viewpager-ng {
207
199
  --lynx-display-flex,
208
200
  var(--flex-direction)
209
201
  );
210
- justify-content: var(--lynx-display-linear, var(--linear-justify-content))
211
- var(--lynx-display-flex, var(--justify-content));
202
+ justify-content: var(--lynx-display-linear, var(--linear-justify-content));
212
203
  }
213
204
 
214
205
  /** For @container
@@ -318,7 +309,6 @@ x-viewpager-ng {
318
309
  flex-grow: var(--flex-grow);
319
310
  flex-shrink: var(--flex-shrink);
320
311
  flex-basis: var(--flex-basis);
321
- align-self: var(--align-self);
322
312
  }
323
313
  }
324
314