Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/f image placeholder #1917

Merged
merged 5 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-accordion/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-box/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-button-list/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-button/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-calendar/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-card-list/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-cell/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-chart/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-checkbox/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-chip/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-combobox/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-dashboard/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-data-table/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-date-picker/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-drawer/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-echart/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-editor/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-family-tree/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-form/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-gauge/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-grid/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-iframe/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export class KupImageList {
clone as PointerEvent
);
const node = details.row as KupImageListDataNode;
if (node.children && node.children.length > 0) {
if (node?.children?.length > 0) {
this.currentNode = node;
}
this.kupClick.emit({
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-image-list/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
justify-content: space-between;
box-sizing: border-box;
position: relative;
height: 100%;
}
.f-cell__content .image-list__wrapper.images{
height: 100%;
Expand Down
14 changes: 7 additions & 7 deletions packages/ketchup/src/components/kup-image/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
| `resource` | `resource` | The resource used to fetch the image. | `string` | `null` |
| `sizeX` | `size-x` | The width of the icon, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.). | `string` | `'100%'` |
| `sizeY` | `size-y` | The height of the icon, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.). | `string` | `'100%'` |
| `zoomEnable` | `zoom-enable` | When set to true, a dialog will be displayed with the same resource set to 100% when image is clicked. | `boolean` | `false` |


## Events
Expand Down Expand Up @@ -81,26 +82,23 @@ Type: `Promise<void>`
- [kup-cell](../kup-cell)
- [kup-data-table](../kup-data-table)
- [kup-form](../kup-form)
- [kup-image](.)
- [kup-image-list](../kup-image-list)
- [kup-input-panel](../kup-input-panel)
- [kup-tree](../kup-tree)

### Depends on

- [kup-spinner](../kup-spinner)
- [kup-card](../kup-card)
- [kup-image](.)
- [kup-dialog](../kup-dialog)
- [kup-spinner](../kup-spinner)
- [kup-badge](../kup-badge)

### Graph
```mermaid
graph TD;
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-dialog
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
kup-image --> kup-image
kup-card --> kup-image
kup-autocomplete --> kup-list
kup-autocomplete --> kup-card
Expand Down Expand Up @@ -152,6 +150,8 @@ graph TD;
kup-button --> kup-card
kup-button --> kup-dialog
kup-button --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
kup-checkbox --> kup-card
kup-checkbox --> kup-dialog
kup-data-table --> kup-image
Expand Down
3 changes: 2 additions & 1 deletion packages/ketchup/src/components/kup-input-panel/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,10 @@ graph TD;
kup-time-picker --> kup-card
kup-time-picker --> kup-list
kup-time-picker --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-card
kup-image --> kup-image
kup-image --> kup-dialog
kup-image --> kup-spinner
kup-image --> kup-badge
kup-spinner --> kup-card
kup-spinner --> kup-dialog
Expand Down
Loading