Skip to content

Commit 20b97b8

Browse files
authored
feat(docs): some more webcomponents docs (#13550)
* feat(docs): add docs for webcomponents expandable text * feat(docs): add icons examples * feat(docs): add some ui5-webcomponents list examples * feat(docs): add multiple item drag example and wrapping example * feat(docs): add message-strip examples * fix: fix build * fix(docs): don't run unit tests for fiori timeline * fix(docs): fix prefix and tags
1 parent 6533894 commit 20b97b8

File tree

85 files changed

+2862
-114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+2862
-114
lines changed

libs/docs/ui5-webcomponents-fiori/timeline/jest.config.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

libs/docs/ui5-webcomponents-fiori/timeline/project.json

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,16 @@
33
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
44
"projectType": "library",
55
"sourceRoot": "libs/docs/ui5-webcomponents-fiori/timeline",
6-
"prefix": "ui5",
6+
"prefix": "ui5-doc",
7+
"tags": ["type:lib", "scope:docs"],
78
"targets": {
8-
"test": {
9-
"executor": "@nx/jest:jest",
10-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
9+
"e2e": {
10+
"executor": "@fundamental-ngx/nx-plugin:e2e-test",
1111
"options": {
12-
"jestConfig": "libs/docs/ui5-webcomponents-fiori/timeline/jest.config.ts",
13-
"passWithNoTests": true
14-
}
15-
},
16-
"lint": {
17-
"executor": "@nx/eslint:lint",
18-
"options": {
19-
"lintFilePatterns": [
20-
"libs/docs/ui5-webcomponents-fiori/timeline/**/*.ts",
21-
"libs/docs/ui5-webcomponents-fiori/timeline/**/*.html"
22-
]
23-
}
12+
"e2eFiles": ["libs/docs/ui5-webcomponents-fiori/timeline/e2e/**/*.e2e-spec.ts"],
13+
"devServerTarget": "docs:serve:e2e"
14+
},
15+
"outputs": ["{workspaceRoot}/allure-results/docs-ui5-webcomponents-fiori-timeline"]
2416
}
2517
}
2618
}
Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
{
22
"extends": "../../../../tsconfig.base.json",
33
"files": [],
4-
"include": [],
5-
"references": [
6-
{
7-
"path": "./tsconfig.lib.json"
8-
},
9-
{
10-
"path": "./tsconfig.spec.json"
11-
}
12-
]
4+
"include": ["**/*.ts"],
5+
"compilerOptions": {
6+
"forceConsistentCasingInFileNames": true,
7+
"strict": true,
8+
"noImplicitReturns": false,
9+
"noFallthroughCasesInSwitch": true,
10+
"target": "es2020",
11+
"outDir": "../../../../dist/out-tsc",
12+
"declaration": true,
13+
"declarationMap": true,
14+
"inlineSources": true,
15+
"types": []
16+
},
17+
"exclude": ["**/*.test.ts", "**/*.spec.ts", "**/*.e2e-spec.ts"]
1318
}

libs/docs/ui5-webcomponents-fiori/timeline/tsconfig.lib.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

libs/docs/ui5-webcomponents-fiori/timeline/tsconfig.spec.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

libs/docs/ui5-webcomponents/api-files.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ export const API_FILES = {
1919
checkBox: ['CheckBox'],
2020
colorPalette: ['ColorPalette', 'ColorPaletteItem'],
2121
colorPicker: ['ColorPicker'],
22+
expandableText: ['ExpandableText'],
23+
icon: ['Icon'],
2224
input: ['Input'],
2325
label: ['Label'],
2426
link: ['Link'],
27+
list: ['List', 'ListItemCustom', 'ListItemGroup', 'ListItemStandard'],
28+
messageStrip: ['MessageStrip'],
2529
popover: ['Popover'],
2630
segmentedButton: ['SegmentedButton', 'SegmentedButtonItem'],
2731
slider: ['Slider', 'RangeSlider']

libs/docs/ui5-webcomponents/color-picker/tsconfig.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
"strict": true,
88
"noImplicitReturns": false,
99
"noFallthroughCasesInSwitch": true,
10-
"target": "es2022",
10+
"target": "es2020",
1111
"outDir": "../../../../dist/out-tsc",
1212
"declaration": true,
1313
"declarationMap": true,
1414
"inlineSources": true,
15-
"types": [],
16-
"experimentalDecorators": true,
17-
"emitDecoratorMetadata": true,
18-
"useDefineForClassFields": false
15+
"types": []
1916
},
2017
"exclude": ["**/*.test.ts", "**/*.spec.ts", "**/*.e2e-spec.ts"]
2118
}

libs/docs/ui5-webcomponents/docs-data.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@
5454
"url": "ui5-webcomponents/color-picker",
5555
"name": "Color Picker"
5656
},
57+
{
58+
"url": "ui5-webcomponents/expandable-text",
59+
"name": "Expandable Text"
60+
},
61+
{
62+
"url": "ui5-webcomponents/icon",
63+
"name": "Icon"
64+
},
5765
{
5866
"url": "ui5-webcomponents/input",
5967
"name": "Input"
@@ -66,6 +74,14 @@
6674
"url": "ui5-webcomponents/link",
6775
"name": "Link"
6876
},
77+
{
78+
"url": "ui5-webcomponents/list",
79+
"name": "List"
80+
},
81+
{
82+
"url": "ui5-webcomponents/message-strip",
83+
"name": "Message Strip"
84+
},
6985
{
7086
"url": "ui5-webcomponents/popover",
7187
"name": "Popover"

libs/docs/ui5-webcomponents/docs-routes.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ const componentRoutes = [
6666
path: 'color-picker',
6767
loadChildren: () => import('@fundamental-ngx/docs/ui5-webcomponents/color-picker').then(configureLibRoutes)
6868
},
69+
{
70+
path: 'expandable-text',
71+
loadChildren: () => import('@fundamental-ngx/docs/ui5-webcomponents/expandable-text').then(configureLibRoutes)
72+
},
73+
{
74+
path: 'icon',
75+
loadChildren: () => import('@fundamental-ngx/docs/ui5-webcomponents/icon').then(configureLibRoutes)
76+
},
6977
{
7078
path: 'input',
7179
loadChildren: () => import('@fundamental-ngx/docs/ui5-webcomponents/input').then(configureLibRoutes)
@@ -78,6 +86,14 @@ const componentRoutes = [
7886
path: 'link',
7987
loadChildren: () => import('@fundamental-ngx/docs/ui5-webcomponents/link').then(configureLibRoutes)
8088
},
89+
{
90+
path: 'list',
91+
loadChildren: () => import('@fundamental-ngx/docs/ui5-webcomponents/list').then(configureLibRoutes)
92+
},
93+
{
94+
path: 'message-strip',
95+
loadChildren: () => import('@fundamental-ngx/docs/ui5-webcomponents/message-strip').then(configureLibRoutes)
96+
},
8197
{
8298
path: 'popover',
8399
loadChildren: () => import('@fundamental-ngx/docs/ui5-webcomponents/popover').then(configureLibRoutes)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<ui5-table>
2+
<ui5-table-header-row slot="headerRow">
3+
<ui5-table-header-cell>Product</ui5-table-header-cell>
4+
<ui5-table-header-cell>Description</ui5-table-header-cell>
5+
<ui5-table-header-cell>Dimensions</ui5-table-header-cell>
6+
<ui5-table-header-cell>Price</ui5-table-header-cell>
7+
</ui5-table-header-row>
8+
<ui5-table-row>
9+
<ui5-table-cell><b>Notebook Basic 15</b></ui5-table-cell>
10+
<ui5-table-cell>
11+
<ui5-expandable-text
12+
text="Lorem ipsum dolor sit, amet consectetur adipisicing elit. Perferendis accusamus assumenda debitis excepturi distinctio adipisci magnam qui a id, praesentium ullam voluptatem ad, modi quo perspiciatis soluta quasi facere molestiae"
13+
></ui5-expandable-text>
14+
</ui5-table-cell>
15+
<ui5-table-cell><ui5-label>30 x 18 x 3 cm</ui5-label></ui5-table-cell>
16+
<ui5-table-cell
17+
><ui5-label><b>956</b> EUR</ui5-label></ui5-table-cell
18+
>
19+
</ui5-table-row>
20+
<ui5-table-row>
21+
<ui5-table-cell><b>Notebook Basic 17</b></ui5-table-cell>
22+
<ui5-table-cell>
23+
<ui5-expandable-text
24+
text="Lorem ipsum dolor sit, amet consectetur adipisicing elit. Perferendis accusamus assumenda debitis excepturi distinctio adipisci magnam qui a id, praesentium ullam voluptatem ad, modi quo perspiciatis soluta quasi facere molestiae"
25+
></ui5-expandable-text>
26+
</ui5-table-cell>
27+
<ui5-table-cell><ui5-label>29 x 17 x 3.1 cm</ui5-label></ui5-table-cell>
28+
<ui5-table-cell
29+
><ui5-label><b>1249</b> EUR</ui5-label></ui5-table-cell
30+
>
31+
</ui5-table-row>
32+
</ui5-table>

0 commit comments

Comments
 (0)