This repository has been archived by the owner on Dec 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(image-web): rename image-viewer to image
- Loading branch information
Showing
13 changed files
with
73 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Please see [Image Viewer](https://docs.mendix.com/appstore/widgets/image-viewer) in the Mendix documentation for details. | ||
Please see [Image](https://docs.mendix.com/appstore/widgets/image-viewer) in the Mendix documentation for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...gets/image-viewer-web/src/ImageViewer.tsx → ...bleWidgets/image-viewer-web/src/Image.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...gets/image-viewer-web/src/ImageViewer.xml → ...bleWidgets/image-viewer-web/src/Image.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...components/__tests__/ImageViewer.spec.tsx → ...b/src/components/__tests__/Image.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<package xmlns="http://www.mendix.com/package/1.0/"> | ||
<clientModule name="ImageViewer" version="1.0.0" xmlns="http://www.mendix.com/clientModule/1.0/"> | ||
<clientModule name="Image" version="1.0.0" xmlns="http://www.mendix.com/clientModule/1.0/"> | ||
<widgetFiles> | ||
<widgetFile path="ImageViewer.xml"/> | ||
<widgetFile path="Image.xml"/> | ||
</widgetFiles> | ||
<files> | ||
<file path="com/mendix/widget/web/imageviewer"/> | ||
<file path="com/mendix/widget/web/image"/> | ||
</files> | ||
</clientModule> | ||
</package> |
File renamed without changes.
59 changes: 59 additions & 0 deletions
59
packages/pluggableWidgets/image-viewer-web/typings/ImageProps.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/** | ||
* This file was generated from Image.xml | ||
* WARNING: All changes made to this file will be overwritten | ||
* @author Mendix UI Content Team | ||
*/ | ||
import { CSSProperties } from "react"; | ||
import { ActionValue, DynamicValue, WebIcon, WebImage } from "mendix"; | ||
|
||
export type DatasourceEnum = "image" | "imageUrl" | "icon"; | ||
|
||
export type OnClickTypeEnum = "action" | "enlarge"; | ||
|
||
export type WidthUnitEnum = "auto" | "pixels" | "percentage"; | ||
|
||
export type HeightUnitEnum = "auto" | "pixels"; | ||
|
||
export type DisplayAsEnum = "fullImage" | "thumbnail"; | ||
|
||
export interface ImageContainerProps { | ||
name: string; | ||
class: string; | ||
style?: CSSProperties; | ||
tabIndex?: number; | ||
datasource: DatasourceEnum; | ||
imageObject?: DynamicValue<WebImage>; | ||
defaultImageDynamic?: DynamicValue<WebImage>; | ||
imageUrl?: DynamicValue<string>; | ||
imageIcon?: DynamicValue<WebIcon>; | ||
onClickType: OnClickTypeEnum; | ||
onClick?: ActionValue; | ||
alternativeText?: DynamicValue<string>; | ||
widthUnit: WidthUnitEnum; | ||
width: number; | ||
heightUnit: HeightUnitEnum; | ||
height: number; | ||
iconSize: number; | ||
displayAs: DisplayAsEnum; | ||
responsive: boolean; | ||
} | ||
|
||
export interface ImagePreviewProps { | ||
class: string; | ||
style: string; | ||
datasource: DatasourceEnum; | ||
imageObject: string; | ||
defaultImageDynamic: string; | ||
imageUrl: string; | ||
imageIcon: { type: "glyph"; iconClass: string; } | { type: "image"; imageUrl: string; } | null; | ||
onClickType: OnClickTypeEnum; | ||
onClick: {} | null; | ||
alternativeText: string; | ||
widthUnit: WidthUnitEnum; | ||
width: number | null; | ||
heightUnit: HeightUnitEnum; | ||
height: number | null; | ||
iconSize: number | null; | ||
displayAs: DisplayAsEnum; | ||
responsive: boolean; | ||
} |