Skip to content

Commit 67084dd

Browse files
authored
Merge pull request #2165 from Infineon/2148-advanced-table-make-tooltip-component-nestable
Advanced table: make tooltip component nestable
2 parents 35be942 + d7c3f28 commit 67084dd

File tree

17 files changed

+733
-710
lines changed

17 files changed

+733
-710
lines changed

examples/wrapper-components/react-vite-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"test:local": "run-p preview:link watch:library"
1919
},
2020
"dependencies": {
21-
"@infineon/infineon-design-system-react": "39.7.0",
21+
"@infineon/infineon-design-system-react": "39.7.1--canary.2165.2a4e1384fcd678fd35f589ade6da9358a2f7389d.0",
2222
"path": "^0.12.7",
2323
"react": "^18.3.1",
2424
"react-dom": "^18.3.1"

examples/wrapper-components/vue-javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"test:local": "run-p preview:link watch:library"
1616
},
1717
"dependencies": {
18-
"@infineon/infineon-design-system-vue": "39.7.0",
18+
"@infineon/infineon-design-system-vue": "39.7.1--canary.2165.2a4e1384fcd678fd35f589ade6da9358a2f7389d.0",
1919
"@vitejs/plugin-vue": "^4.0.0",
2020
"@vitejs/plugin-vue-jsx": "^4.0.0",
2121
"vite": "^5.0.12",

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "39.7.0",
3+
"version": "39.7.1--canary.2165.2a4e1384fcd678fd35f589ade6da9358a2f7389d.0",
44
"command": {
55
"publish": {
66
"verifyAccess": false

package-lock.json

Lines changed: 476 additions & 556 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/components-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "components-angular",
3-
"version": "39.7.0",
3+
"version": "39.7.1--canary.2165.2a4e1384fcd678fd35f589ade6da9358a2f7389d.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",

packages/components-angular/projects/component-library/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@infineon/infineon-design-system-angular",
3-
"version": "39.7.0",
3+
"version": "39.7.1--canary.2165.2a4e1384fcd678fd35f589ade6da9358a2f7389d.0",
44
"description": "Infineon design system Stencil web components for Angular",
55
"author": "Verena Lechner",
66
"license": "MIT",
@@ -11,10 +11,10 @@
1111
"@angular/common": "^20.0.0",
1212
"@angular/core": "^20.0.0",
1313
"@infineon/design-system-tokens": "5.0.0",
14-
"@infineon/infineon-design-system-stencil": "39.7.0"
14+
"@infineon/infineon-design-system-stencil": "39.7.1--canary.2165.2a4e1384fcd678fd35f589ade6da9358a2f7389d.0"
1515
},
1616
"dependencies": {
17-
"@infineon/infineon-design-system-stencil": "39.7.0",
17+
"@infineon/infineon-design-system-stencil": "39.7.1--canary.2165.2a4e1384fcd678fd35f589ade6da9358a2f7389d.0",
1818
"tslib": "^2.3.0"
1919
},
2020
"sideEffects": false,

packages/components-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@infineon/infineon-design-system-react",
3-
"version": "39.7.0",
3+
"version": "39.7.1--canary.2165.2a4e1384fcd678fd35f589ade6da9358a2f7389d.0",
44
"description": "Infineon design system Stencil web components for React",
55
"main": "./dist/index.js",
66
"types": "./dist/types/index.d.ts",
@@ -29,7 +29,7 @@
2929
"dependencies": {
3030
"@infineon/design-system-tokens": "5.0.0",
3131
"@stencil/react-output-target": "^0.7.1",
32-
"@infineon/infineon-design-system-stencil": "39.7.0"
32+
"@infineon/infineon-design-system-stencil": "39.7.1--canary.2165.2a4e1384fcd678fd35f589ade6da9358a2f7389d.0"
3333
},
3434
"auto": {
3535
"plugins": [

packages/components-vue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@infineon/infineon-design-system-vue",
3-
"version": "39.7.0",
3+
"version": "39.7.1--canary.2165.2a4e1384fcd678fd35f589ade6da9358a2f7389d.0",
44
"description": "Infineon design system Stencil web components for Vue",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
@@ -30,7 +30,7 @@
3030
},
3131
"dependencies": {
3232
"@infineon/design-system-tokens": "5.0.0",
33-
"@infineon/infineon-design-system-stencil": "39.7.0"
33+
"@infineon/infineon-design-system-stencil": "39.7.1--canary.2165.2a4e1384fcd678fd35f589ade6da9358a2f7389d.0"
3434
},
3535
"auto": {
3636
"plugins": [

packages/components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@infineon/infineon-design-system-stencil",
3-
"version": "39.7.0",
3+
"version": "39.7.1--canary.2165.2a4e1384fcd678fd35f589ade6da9358a2f7389d.0",
44
"private": false,
55
"description": "Infineon design system Stencil web components",
66
"homepage": "https://infineon.github.io/infineon-design-system-stencil",

packages/components/src/components/table-advanced-version/Development.mdx

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -37,37 +37,6 @@ table.serverPageChangeHandler = async ({ page, pageSize }) => {
3737

3838
### Including custom components
3939

40-
It is possible to fill table cells with custom Ifx web components.
41-
Currently, following components can be included:
42-
* Button
43-
* Status
44-
45-
For this, column definitions need to include the corresponding field name and be passed in the following format:
46-
Rows that should display a button, need to have a reference to the button column and include the desired configuration of the button component.
47-
48-
```javascript
49-
const columnDefsWithButtonCol = [
50-
{ headerName: 'Model', field: 'model', sortable: true, unSortIcon: true },
51-
{ headerName: '', field: 'button' }
52-
...
53-
];
54-
55-
56-
const rowDataWithButtonCol = [
57-
{
58-
make: 'Porsche', model: 'Boxster', price: 72000, button: {
59-
disabled: false, (optional)
60-
variant: "secondary", (optional)
61-
size: "s", (optional)
62-
target: "_blank", (optional)
63-
color: "secondary", (optional)
64-
text: "Button"
65-
// ... you can extend this as per the properties of `ifx-button`
66-
}
67-
}
68-
];
69-
```
70-
7140
#### Example: Including a button column
7241

7342
<Canvas of={TableStories.IncludesButtons} sourceState="shown" />
@@ -199,11 +168,24 @@ export default {
199168
</script>
200169
```
201170

171+
<b>Nesting the tooltip component</b>
172+
173+
For simplicity purposes, the ```variant``` and ```icon``` properties have been removed from the tooltip integration into the table.
174+
175+
```js
176+
"tooltipInfo": {
177+
"value": "Table cell text",
178+
"text": "tooltip text",
179+
"position": "top"
180+
}
181+
```
182+
202183
#### Currently supported nestable components:
203184
- ifx-button
204185
- ifx-status
205186
- ifx-icon-button
206187
- ifx-link
188+
- ifx-tooltip
207189

208190
#### Example: Including inner buttons
209191
<Canvas of={TableStories.IncludesInnerButtons} sourceState="shown" />

0 commit comments

Comments
 (0)