x4js 1.5.26 → 1.5.29
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/lib/cjs/index.js +8 -8
- package/lib/cjs/index.js.map +4 -4
- package/lib/esm/index.mjs +3136 -3045
- package/lib/esm/index.mjs.map +4 -4
- package/lib/src/autocomplete.ts +31 -7
- package/lib/src/combobox.ts +51 -1
- package/lib/src/component.ts +4 -2
- package/lib/src/datastore.ts +7 -3
- package/lib/src/form.ts +43 -5
- package/lib/src/icon.ts +8 -0
- package/lib/src/image.ts +38 -17
- package/lib/src/input.ts +1 -1
- package/lib/src/textedit.ts +1 -1
- package/lib/src/version.ts +1 -1
- package/lib/types/autocomplete.d.ts +4 -2
- package/lib/types/combobox.d.ts +8 -3
- package/lib/types/component.d.ts +2 -1
- package/lib/types/datastore.d.ts +2 -2
- package/lib/types/form.d.ts +12 -3
- package/lib/types/image.d.ts +3 -2
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/lib/types/image.d.ts
CHANGED
|
@@ -27,11 +27,12 @@
|
|
|
27
27
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
28
|
**/
|
|
29
29
|
import { Component, CProps } from './component';
|
|
30
|
-
interface ImageProps extends CProps {
|
|
30
|
+
export interface ImageProps extends CProps {
|
|
31
31
|
src: string;
|
|
32
32
|
alt?: string;
|
|
33
33
|
lazy?: boolean;
|
|
34
34
|
alignment?: 'fill' | 'contain' | 'cover' | 'scale-down' | 'none';
|
|
35
|
+
overlays?: Component[];
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
37
38
|
* Standard image class
|
|
@@ -39,6 +40,7 @@ interface ImageProps extends CProps {
|
|
|
39
40
|
export declare class Image extends Component<ImageProps> {
|
|
40
41
|
protected m_created: boolean;
|
|
41
42
|
protected m_lazysrc: string;
|
|
43
|
+
private m_img;
|
|
42
44
|
constructor(props: ImageProps);
|
|
43
45
|
/** @ignore */
|
|
44
46
|
render(): void;
|
|
@@ -52,4 +54,3 @@ export declare class Image extends Component<ImageProps> {
|
|
|
52
54
|
private static lazy_image_timer;
|
|
53
55
|
private static lazyWatch;
|
|
54
56
|
}
|
|
55
|
-
export {};
|
package/lib/types/version.d.ts
CHANGED