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

feat: provide Web Components (StencilJS) #3174

Merged
merged 223 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
0ec02c3
feat: stencil web components
nmerget Sep 5, 2024
b7bb818
chore: update from main
nmerget Sep 5, 2024
0e2c4a8
chore: update @db-ui/web-components to use stencil
nmerget Sep 11, 2024
e2ff8fa
Merge remote-tracking branch 'origin/main' into test-stencil
nmerget Sep 11, 2024
886ca8c
chore: update from main
nmerget Sep 11, 2024
076fcad
Merge branch 'main' into test-stencil
nmerget Sep 11, 2024
c89d173
fix: linting
nmerget Sep 11, 2024
f90c7eb
fix: issue with missing prop
nmerget Sep 11, 2024
2a142f1
fix: issue with wrong workspace
nmerget Sep 11, 2024
2f889d3
fix: issue with post scripts
nmerget Sep 11, 2024
bae16ba
chore: enable stencil tests in cicd
nmerget Sep 11, 2024
b5b05f2
fix: issue with stencil showcase build
nmerget Sep 11, 2024
1707cba
fix: issue with stencil showcase build
nmerget Sep 11, 2024
e3253cf
Merge branch 'main' into test-stencil
nmerget Sep 11, 2024
eb4f203
fix: issues with missing stencil components for showcases
nmerget Sep 16, 2024
714ba31
Merge remote-tracking branch 'origin/main' into test-stencil
nmerget Sep 16, 2024
dad5b1b
fix: issues with stencil components
nmerget Sep 16, 2024
f9e92dd
fix: issues with stencil showcase
nmerget Sep 16, 2024
fd1c2c2
fix: issues with passing props from custom element
nmerget Sep 17, 2024
5ff3f19
Merge remote-tracking branch 'origin/main' into test-stencil
nmerget Sep 17, 2024
b8a10eb
chore: update from main
nmerget Sep 17, 2024
774ea14
Merge branch 'main' into test-stencil
nmerget Sep 17, 2024
cbb14f9
chore: update e2e tests for stencil
nmerget Sep 17, 2024
bb5882d
chore: update e2e tests for stencil
nmerget Sep 17, 2024
29ded4a
chore: update e2e tests for stencil
nmerget Sep 17, 2024
439e6eb
chore: update e2e tests for stencil
nmerget Sep 17, 2024
a9307bb
chore: update e2e tests for stencil
nmerget Sep 17, 2024
fdda349
chore: update e2e tests for stencil
nmerget Sep 17, 2024
78fe0ab
Merge remote-tracking branch 'origin/main' into test-stencil
nmerget Sep 18, 2024
0d8a35c
chore: update e2e tests for stencil
nmerget Sep 18, 2024
c518057
chore: update e2e tests for stencil
nmerget Sep 18, 2024
331a799
chore: update e2e tests for stencil
nmerget Sep 19, 2024
eada3eb
Merge remote-tracking branch 'origin/main' into test-stencil
nmerget Sep 19, 2024
a7436df
fix: issue for playwright patternhub
nmerget Sep 19, 2024
d7a5d4b
feat: add autocompletion for web-components
nmerget Sep 20, 2024
393593d
Merge branch 'main' into test-stencil
nmerget Sep 20, 2024
ad83a66
chore: update from main
nmerget Sep 20, 2024
c1f8c0d
chore: update snapshots
nmerget Sep 20, 2024
020fbc4
feat: add description for properties
nmerget Sep 20, 2024
b346f97
Merge remote-tracking branch 'origin/main' into test-stencil
nmerget Oct 2, 2024
70b78a3
chore: update from main
nmerget Oct 2, 2024
bf55dfe
chore: update stencil to use remaining components
nmerget Oct 2, 2024
e269b02
fix: linting issue
nmerget Oct 2, 2024
a351242
fix: styling issues for stencil
nmerget Oct 2, 2024
98c54a3
Merge branch 'main' into test-stencil
mfranzke Oct 3, 2024
b452140
refactor: prettifying
mfranzke Oct 3, 2024
4c68468
Merge branch 'main' into test-stencil
mfranzke Oct 3, 2024
04d4c9f
chore: order
mfranzke Oct 3, 2024
c22ec99
Merge branch 'main' into test-stencil
mfranzke Oct 3, 2024
d1a2b56
Discard changes to packages/components/src/components/button/docs/Ang…
mfranzke Oct 3, 2024
83f5fbd
Discard changes to packages/components/src/components/icon/docs/Angul…
mfranzke Oct 3, 2024
b52b629
Discard changes to packages/components/src/components/infotext/docs/A…
mfranzke Oct 3, 2024
fcca844
Discard changes to packages/components/src/components/section/docs/An…
mfranzke Oct 3, 2024
8d40c97
Discard changes to packages/components/src/components/switch/docs/Ang…
mfranzke Oct 3, 2024
cfec5e4
Discard changes to packages/components/src/components/tab-item/docs/A…
mfranzke Oct 3, 2024
c33a435
Discard changes to packages/components/src/components/tab-list/docs/A…
mfranzke Oct 3, 2024
156f108
Discard changes to packages/components/src/components/tab-panel/docs/…
mfranzke Oct 3, 2024
7f5e749
Discard changes to packages/components/src/components/tabs/docs/Angul…
mfranzke Oct 3, 2024
fc5287d
Discard changes to packages/components/src/components/tag/docs/Angula…
mfranzke Oct 3, 2024
a80be38
Discard changes to packages/components/src/components/textarea/docs/A…
mfranzke Oct 3, 2024
50fafd1
Discard changes to packages/components/src/components/tooltip/docs/An…
mfranzke Oct 3, 2024
ed7ada4
Discard changes to packages/components/src/components/brand/docs/Angu…
mfranzke Oct 3, 2024
0fccd63
Discard changes to packages/components/src/components/select/docs/Ang…
mfranzke Oct 3, 2024
486bdc3
Discard changes to packages/components/src/components/notification/do…
mfranzke Oct 3, 2024
d986e62
Discard changes to packages/components/src/components/page/docs/Migra…
mfranzke Oct 3, 2024
3fcfd25
Discard changes to packages/components/src/components/radio/docs/Migr…
mfranzke Oct 3, 2024
253e201
Discard changes to packages/components/src/components/section/docs/Mi…
mfranzke Oct 3, 2024
d731b7c
Discard changes to packages/components/src/components/select/docs/Mig…
mfranzke Oct 3, 2024
a93c080
Discard changes to packages/components/src/components/tab-item/docs/M…
mfranzke Oct 3, 2024
ad24e0f
Discard changes to packages/components/src/components/tab-list/docs/M…
mfranzke Oct 3, 2024
c82ce44
Discard changes to packages/components/src/components/tab-panel/docs/…
mfranzke Oct 3, 2024
4f8a4d6
Discard changes to packages/components/src/components/tabs/docs/Migra…
mfranzke Oct 3, 2024
c2c6f73
Discard changes to packages/components/src/components/tabs/docs/React.md
mfranzke Oct 3, 2024
746f391
Discard changes to packages/components/src/components/tag/docs/Migrat…
mfranzke Oct 3, 2024
02fbc12
Discard changes to packages/components/src/components/textarea/docs/M…
mfranzke Oct 3, 2024
eceaaca
Discard changes to packages/components/src/components/tooltip/docs/Mi…
mfranzke Oct 3, 2024
9becf70
Discard changes to packages/components/src/components/brand/docs/Migr…
mfranzke Oct 3, 2024
bacedae
Discard changes to packages/components/src/components/button/docs/Mig…
mfranzke Oct 3, 2024
7a40649
Discard changes to packages/components/src/components/card/docs/Migra…
mfranzke Oct 3, 2024
a837f84
Discard changes to packages/components/src/components/icon/docs/Migra…
mfranzke Oct 3, 2024
45bb936
Discard changes to packages/components/src/components/input/docs/Migr…
mfranzke Oct 3, 2024
575190c
Discard changes to packages/components/src/components/link/docs/Migra…
mfranzke Oct 3, 2024
5ec5ed9
Discard changes to packages/components/src/components/navigation/docs…
mfranzke Oct 3, 2024
d1f77c0
Discard changes to packages/components/src/components/switch/docs/Mig…
mfranzke Oct 3, 2024
ec536d4
Discard changes to packages/components/src/components/tab-item/docs/R…
mfranzke Oct 3, 2024
b687cab
Discard changes to packages/components/src/components/tab-panel/docs/…
mfranzke Oct 3, 2024
8c98816
Discard changes to packages/components/src/components/tag/docs/React.md
mfranzke Oct 3, 2024
7af482b
Discard changes to packages/components/src/components/textarea/docs/R…
mfranzke Oct 3, 2024
40520a1
Discard changes to packages/components/src/components/brand/docs/Reac…
mfranzke Oct 3, 2024
05feeb5
Discard changes to packages/components/src/components/button/docs/Rea…
mfranzke Oct 3, 2024
c0e6edb
Discard changes to packages/components/src/components/icon/docs/React.md
mfranzke Oct 3, 2024
8021c53
Discard changes to packages/components/src/components/page/docs/React.md
mfranzke Oct 3, 2024
1b9d26c
Discard changes to packages/components/src/components/section/docs/Re…
mfranzke Oct 3, 2024
8b21839
Discard changes to packages/components/src/components/switch/docs/Rea…
mfranzke Oct 3, 2024
6a742db
Discard changes to packages/components/src/components/tab-list/docs/R…
mfranzke Oct 3, 2024
d57be25
Discard changes to packages/components/src/components/tooltip/docs/Re…
mfranzke Oct 3, 2024
e9092c3
Discard changes to packages/components/src/components/select/docs/Rea…
mfranzke Oct 3, 2024
1861b2f
Discard changes to packages/components/src/components/icon/docs/HTML.md
mfranzke Oct 3, 2024
27c9b20
Discard changes to packages/components/src/components/section/docs/HT…
mfranzke Oct 3, 2024
9cab7db
Discard changes to packages/components/src/components/select/docs/HTM…
mfranzke Oct 3, 2024
52f3b00
Discard changes to packages/components/src/components/tabs/docs/HTML.md
mfranzke Oct 3, 2024
29fda81
Discard changes to packages/components/src/components/textarea/docs/H…
mfranzke Oct 3, 2024
792408e
Discard changes to packages/components/src/components/accordion-item/…
mfranzke Oct 3, 2024
329fcbf
Discard changes to packages/components/src/components/navigation/docs…
mfranzke Oct 3, 2024
98acbf7
Discard changes to packages/components/src/components/notification/do…
mfranzke Oct 3, 2024
9e2bbd8
Discard changes to packages/components/src/components/popover/docs/An…
mfranzke Oct 3, 2024
32ff2a9
Discard changes to packages/components/src/components/accordion/docs/…
mfranzke Oct 3, 2024
2447913
Discard changes to packages/components/src/components/badge/docs/Angu…
mfranzke Oct 3, 2024
464e75e
Discard changes to packages/components/src/components/card/docs/Angul…
mfranzke Oct 3, 2024
fe9543a
Discard changes to packages/components/src/components/divider/docs/An…
mfranzke Oct 3, 2024
61b23f3
Discard changes to packages/components/src/components/drawer/docs/Ang…
mfranzke Oct 3, 2024
6b65e83
Discard changes to packages/components/src/components/header/docs/Ang…
mfranzke Oct 3, 2024
2b89582
Discard changes to packages/components/src/components/page/docs/Angul…
mfranzke Oct 3, 2024
cfef139
Discard changes to packages/components/src/components/tooltip/docs/HT…
mfranzke Oct 3, 2024
ddc3985
Discard changes to packages/components/src/components/accordion-item/…
mfranzke Oct 3, 2024
29319f3
Discard changes to packages/components/src/components/brand/docs/HTML.md
mfranzke Oct 3, 2024
cab3c91
Discard changes to packages/components/src/components/button/docs/HTM…
mfranzke Oct 3, 2024
0094269
Discard changes to packages/components/src/components/checkbox/docs/H…
mfranzke Oct 3, 2024
e25f4c4
Discard changes to packages/components/src/components/divider/docs/HT…
mfranzke Oct 3, 2024
d2da1d5
Discard changes to packages/components/src/components/drawer/docs/HTM…
mfranzke Oct 3, 2024
0c0ab48
Discard changes to packages/components/src/components/header/docs/HTM…
mfranzke Oct 3, 2024
b51ff36
Discard changes to packages/components/src/components/infotext/docs/H…
mfranzke Oct 3, 2024
2af86ee
Discard changes to packages/components/src/components/link/docs/HTML.md
mfranzke Oct 3, 2024
4054603
Discard changes to packages/components/src/components/navigation/docs…
mfranzke Oct 3, 2024
ff74529
Discard changes to packages/components/src/components/notification/do…
mfranzke Oct 3, 2024
a71316a
Discard changes to packages/components/src/components/tag/docs/HTML.md
mfranzke Oct 3, 2024
f6313b5
Discard changes to packages/components/src/components/page/docs/HTML.md
mfranzke Oct 3, 2024
6680ae2
Discard changes to packages/components/src/components/popover/docs/HT…
mfranzke Oct 3, 2024
15162d5
Discard changes to packages/components/src/components/radio/docs/HTML.md
mfranzke Oct 3, 2024
662674e
Discard changes to packages/components/src/components/switch/docs/HTM…
mfranzke Oct 3, 2024
79f6a3b
Discard changes to packages/components/src/components/tab-item/docs/H…
mfranzke Oct 3, 2024
ed07810
Discard changes to packages/components/src/components/tab-list/docs/H…
mfranzke Oct 3, 2024
cc0f8d3
Discard changes to packages/components/src/components/tab-panel/docs/…
mfranzke Oct 3, 2024
9ebe24f
Discard changes to packages/components/src/components/card/docs/HTML.md
mfranzke Oct 3, 2024
bc67587
Discard changes to packages/components/src/components/badge/docs/Reac…
mfranzke Oct 3, 2024
df1f5a2
Discard changes to packages/components/src/components/card/docs/React.md
mfranzke Oct 3, 2024
0254325
Discard changes to packages/components/src/components/checkbox/docs/R…
mfranzke Oct 3, 2024
c942d7a
Discard changes to packages/components/src/components/divider/docs/Re…
mfranzke Oct 3, 2024
013812e
Discard changes to packages/components/src/components/drawer/docs/Rea…
mfranzke Oct 3, 2024
10d6444
Discard changes to packages/components/src/components/header/docs/Rea…
mfranzke Oct 3, 2024
670958a
Discard changes to packages/components/src/components/infotext/docs/R…
mfranzke Oct 3, 2024
b73b51e
Discard changes to packages/components/src/components/link/docs/React.md
mfranzke Oct 3, 2024
f0ed37e
Discard changes to packages/components/src/components/notification/do…
mfranzke Oct 3, 2024
a3b7aea
Discard changes to packages/components/src/components/popover/docs/Re…
mfranzke Oct 3, 2024
5f309d7
Discard changes to packages/components/src/components/radio/docs/Reac…
mfranzke Oct 3, 2024
6fd5c7c
Discard changes to packages/components/src/components/accordion-item/…
mfranzke Oct 3, 2024
1c0a2ff
Discard changes to packages/components/src/components/accordion/docs/…
mfranzke Oct 3, 2024
7d9ec23
Discard changes to packages/components/src/components/brand/docs/Vue.md
mfranzke Oct 3, 2024
e07aa65
Discard changes to packages/components/src/components/radio/docs/Vue.md
mfranzke Oct 3, 2024
0565a71
Discard changes to packages/components/src/components/section/docs/Vu…
mfranzke Oct 3, 2024
da89825
Discard changes to packages/components/src/components/select/docs/Vue.md
mfranzke Oct 3, 2024
100593c
Discard changes to packages/components/src/components/switch/docs/Vue.md
mfranzke Oct 3, 2024
34a9735
Discard changes to packages/components/src/components/tab-item/docs/V…
mfranzke Oct 3, 2024
f1ad153
Discard changes to packages/components/src/components/tabs/docs/Vue.md
mfranzke Oct 3, 2024
f0dcb64
Discard changes to packages/components/src/components/tag/docs/Vue.md
mfranzke Oct 3, 2024
a8420fb
Discard changes to packages/components/src/components/textarea/docs/V…
mfranzke Oct 3, 2024
661244e
Discard changes to packages/components/src/components/tooltip/docs/Vu…
mfranzke Oct 3, 2024
06d7ace
Discard changes to packages/components/src/components/accordion-item/…
mfranzke Oct 3, 2024
ea1db61
Discard changes to packages/components/src/components/badge/docs/Vue.md
mfranzke Oct 3, 2024
968ac27
Discard changes to packages/components/src/components/button/docs/Vue.md
mfranzke Oct 3, 2024
af76ad6
Discard changes to packages/components/src/components/card/docs/Vue.md
mfranzke Oct 3, 2024
5eac66d
Discard changes to packages/components/src/components/checkbox/docs/V…
mfranzke Oct 3, 2024
f5df1c4
Discard changes to packages/components/src/components/divider/docs/Vu…
mfranzke Oct 3, 2024
e5617ec
Discard changes to packages/components/src/components/drawer/docs/Vue.md
mfranzke Oct 3, 2024
89fdff3
Discard changes to packages/components/src/components/header/docs/Vue.md
mfranzke Oct 3, 2024
ddbceaa
Discard changes to packages/components/src/components/icon/docs/Vue.md
mfranzke Oct 3, 2024
5d23418
Discard changes to packages/components/src/components/infotext/docs/V…
mfranzke Oct 3, 2024
ff0e0a8
Discard changes to packages/components/src/components/link/docs/Vue.md
mfranzke Oct 3, 2024
4dea27e
Discard changes to packages/components/src/components/notification/do…
mfranzke Oct 3, 2024
77a97c8
Discard changes to packages/components/src/components/page/docs/Vue.md
mfranzke Oct 3, 2024
e94312f
Discard changes to packages/components/src/components/tab-list/docs/V…
mfranzke Oct 3, 2024
cd53e8f
Discard changes to packages/components/src/components/tab-panel/docs/…
mfranzke Oct 3, 2024
84b66b8
Discard changes to packages/components/src/components/accordion/docs/…
mfranzke Oct 3, 2024
3c4df4b
Discard changes to packages/components/src/components/badge/docs/HTML.md
mfranzke Oct 3, 2024
ddc4255
Discard changes to packages/components/src/components/input/docs/Angu…
mfranzke Oct 3, 2024
11f394b
Discard changes to packages/components/src/components/navigation-item…
mfranzke Oct 3, 2024
dc4ca08
Discard changes to packages/components/src/components/accordion/docs/…
mfranzke Oct 4, 2024
6cb084f
Discard changes to packages/components/src/components/popover/docs/Vu…
mfranzke Oct 4, 2024
a32b993
Discard changes to packages/components/src/components/navigation/docs…
mfranzke Oct 4, 2024
082c120
Discard changes to packages/components/src/components/navigation-item…
mfranzke Oct 4, 2024
119494d
Discard changes to packages/components/src/components/navigation-item…
mfranzke Oct 4, 2024
13cfdfe
Discard changes to packages/components/src/components/divider/docs/Mi…
mfranzke Oct 4, 2024
966354c
Discard changes to packages/components/src/components/drawer/docs/Mig…
mfranzke Oct 4, 2024
4ba1462
Discard changes to packages/components/src/components/accordion/docs/…
mfranzke Oct 4, 2024
1ce1fda
Discard changes to packages/components/src/components/badge/docs/Migr…
mfranzke Oct 4, 2024
1874613
Discard changes to packages/components/src/components/checkbox/docs/M…
mfranzke Oct 4, 2024
bf1ffc5
Discard changes to packages/components/src/components/header/docs/Mig…
mfranzke Oct 4, 2024
2409949
Discard changes to packages/components/src/components/infotext/docs/M…
mfranzke Oct 4, 2024
3ab14ab
Discard changes to packages/components/src/components/navigation-item…
mfranzke Oct 4, 2024
c69a8e7
Discard changes to packages/components/src/components/popover/docs/Mi…
mfranzke Oct 4, 2024
a78b145
Discard changes to packages/components/src/components/accordion-item/…
mfranzke Oct 4, 2024
883f262
Discard changes to packages/components/src/components/radio/docs/Angu…
mfranzke Oct 4, 2024
bb7e98c
Discard changes to packages/components/src/components/checkbox/docs/A…
mfranzke Oct 4, 2024
bf3608c
Discard changes to packages/components/src/components/link/docs/Angul…
mfranzke Oct 4, 2024
8059a45
Discard changes to packages/components/src/components/navigation-item…
mfranzke Oct 4, 2024
671eee8
Discard changes to packages/components/src/components/navigation/docs…
mfranzke Oct 4, 2024
48d71c5
Discard changes to packages/components/src/components/navigation/docs…
mfranzke Oct 4, 2024
533fa7a
Merge branch 'main' into test-stencil
mfranzke Oct 14, 2024
dca598e
Update packages/components/src/components/button/button.lite.tsx
mfranzke Oct 18, 2024
8853ca2
Merge branch 'main' into test-stencil
mfranzke Oct 18, 2024
20d6bba
refactor: regenerated package lock file
mfranzke Oct 18, 2024
584374e
refactor: regenerated package lock file
mfranzke Oct 18, 2024
080c25e
Update index.html
mfranzke Oct 18, 2024
45a8c89
Update README.md
mfranzke Oct 18, 2024
767d709
refactor: slight optimizations
mfranzke Oct 18, 2024
245fdc9
Merge branch 'test-stencil' of https://github.com/db-ui/mono into tes…
mfranzke Oct 18, 2024
b97fb91
Update index.ts
mfranzke Oct 18, 2024
5b96c3f
Update README.md
mfranzke Oct 18, 2024
e70da0a
chore: removed post-build web-components.ts
nmerget Oct 28, 2024
a7c97ba
Merge remote-tracking branch 'origin/main' into test-stencil
nmerget Oct 28, 2024
e55b38a
fix: issues from PR
nmerget Oct 28, 2024
39e94fb
Merge remote-tracking branch 'origin/main' into test-stencil
nmerget Oct 29, 2024
32eceef
chore: update from main
nmerget Oct 29, 2024
98d308e
fix: revert stencil showcase title for e2e tests
nmerget Oct 29, 2024
7702b3f
Merge remote-tracking branch 'origin/main' into test-stencil
nmerget Oct 29, 2024
c15a154
fix: issues with boolean values for stencil
nmerget Oct 29, 2024
574ac2f
fix: issue with typescript for vue build
nmerget Oct 29, 2024
ae59a30
Merge remote-tracking branch 'origin/main' into test-stencil
nmerget Oct 29, 2024
6f09823
chore: update from main
nmerget Oct 29, 2024
28c22a0
chore: update snapshots
nmerget Oct 29, 2024
b82f10b
Update output/stencil/package.json
nmerget Oct 29, 2024
29b0b61
Update output/stencil/package.json
nmerget Oct 29, 2024
294d9b1
fix: issue from commit suggestion
nmerget Oct 29, 2024
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
1 change: 1 addition & 0 deletions .config/.jscpd.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"reporters": ["console"],
"minTokens": 65,
"ignore": [
"**/.angular/**",
".history/**",
"**/__snapshots__/**",
"**/.github/**",
Expand Down
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
/showcases/nuxt-showcase/**
build-outputs/
build-showcases/
/output/vue/scripts/fix-any-types.ts
/output/**
23 changes: 21 additions & 2 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ jobs:
with:
version: ${{ needs.get-playwright-version.outputs.version }}

build-showcase-stencil:
uses: ./.github/workflows/01-build-showcases.yml
needs: [build-packages]
with:
showcase: stencil-showcase

build-showcase-angular:
uses: ./.github/workflows/01-build-showcases.yml
needs: [build-packages]
Expand Down Expand Up @@ -97,6 +103,13 @@ jobs:
uses: ./.github/workflows/01-build-patternhub.yml
needs: [build-packages]

test-showcase-stencil:
uses: ./.github/workflows/02-e2e-showcases.yml
needs: [build-showcase-stencil, get-playwright-version]
with:
version: ${{ needs.get-playwright-version.outputs.version }}
showcase: stencil-showcase

test-showcase-angular:
uses: ./.github/workflows/02-e2e-showcases.yml
needs: [build-showcase-angular, get-playwright-version]
Expand Down Expand Up @@ -175,6 +188,7 @@ jobs:
steps:
- name: 🎉 Checks done
run: |
resultBuildShowcaseStencil="${{ needs.build-showcase-stencil.result }}"
resultBuildShowcaseAngular="${{ needs.build-showcase-angular.result }}"
resultBuildShowcaseAngularSSR="${{ needs.build-showcase-angular-ssr.result }}"
resultBuildShowcaseReact="${{ needs.build-showcase-react.result }}"
Expand All @@ -185,19 +199,22 @@ jobs:
resultBuildOutputs="${{ needs.build-outputs.result }}"
resultTestPackages="${{ needs.test-components.result }}"
resultTestFoundations="${{ needs.test-foundations.result }}"
resultTestShowcaseStencil="${{ needs.test-showcase-stencil.result }}"
resultTestShowcaseAngular="${{ needs.test-showcase-angular.result }}"
resultTestShowcaseReact="${{ needs.test-showcase-react.result }}"
resultTestShowcaseVue="${{ needs.test-showcase-vue.result }}"
resultTestShowcasePatternhub="${{ needs.test-showcase-patternhub.result }}"
resultTestScreenReaders="${{ needs.test-screen-reader.result }}"
resultTestScreenReader="${{ needs.test-screen-reader.result }}"
if [[ $resultTestFoundations == "success" ]] && \
[[ $resultTestScreenReaders == "success" ]] && \
[[ $resultTestScreenReader == "success" ]] && \
[[ $resultTestShowcaseStencil == "success" ]] && \
[[ $resultTestShowcaseAngular == "success" ]] && \
[[ $resultTestShowcaseReact == "success" ]] && \
[[ $resultTestShowcaseVue == "success" ]] && \
[[ $resultTestShowcasePatternhub == "success" ]] && \
[[ $resultTestPackages == "success" ]] && \
[[ $resultBuildOutputs == "success" ]] && \
[[ $resultBuildShowcaseStencil == "success" ]] && \
[[ $resultBuildShowcaseAngular == "success" ]] && \
[[ $resultBuildShowcaseAngularSSR == "success" ]] && \
[[ $resultBuildShowcaseReact == "success" ]] && \
Expand All @@ -213,6 +230,7 @@ jobs:
fi
needs:
[
build-showcase-stencil,
build-showcase-angular,
build-showcase-angular-ssr,
build-showcase-react,
Expand All @@ -222,6 +240,7 @@ jobs:
build-showcase-patternhub,
build-outputs,
test-components,
test-showcase-stencil,
test-showcase-angular,
test-showcase-react,
test-showcase-vue,
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ jobs:
with:
version: ${{ needs.get-playwright-version.outputs.version }}

build-showcase-stencil:
uses: ./.github/workflows/01-build-showcases.yml
needs: [build-packages]
with:
showcase: stencil-showcase

build-showcase-angular:
uses: ./.github/workflows/01-build-showcases.yml
needs: [build-packages]
Expand Down Expand Up @@ -94,6 +100,13 @@ jobs:
release: ${{ needs.get-publish-version.outputs.release }}
preRelease: ${{ needs.get-publish-version.outputs.preRelease }}

test-showcase-stencil:
uses: ./.github/workflows/02-e2e-showcases.yml
needs: [build-showcase-stencil, get-playwright-version]
with:
version: ${{ needs.get-playwright-version.outputs.version }}
showcase: stencil-showcase

test-showcase-angular:
uses: ./.github/workflows/02-e2e-showcases.yml
needs: [build-showcase-angular, get-playwright-version]
Expand Down Expand Up @@ -134,6 +147,7 @@ jobs:
steps:
- name: 🎉 Checks done
run: |
resultBuildShowcaseStencil="${{ needs.build-showcase-stencil.result }}"
resultBuildShowcaseAngular="${{ needs.build-showcase-angular.result }}"
resultBuildShowcaseAngularSSR="${{ needs.build-showcase-angular-ssr.result }}"
resultBuildShowcaseReact="${{ needs.build-showcase-react.result }}"
Expand All @@ -144,19 +158,22 @@ jobs:
resultBuildOutputs="${{ needs.build-outputs.result }}"
resultTestPackages="${{ needs.test-components.result }}"
resultTestFoundations="${{ needs.test-foundations.result }}"
resultTestShowcaseStencil="${{ needs.test-showcase-stencil.result }}"
resultTestShowcaseAngular="${{ needs.test-showcase-angular.result }}"
resultTestShowcaseReact="${{ needs.test-showcase-react.result }}"
resultTestShowcaseVue="${{ needs.test-showcase-vue.result }}"
resultTestShowcasePatternhub="${{ needs.test-showcase-patternhub.result }}"
resultTestScreenReader="${{ needs.test-screen-reader.result }}"
if [[ $resultTestFoundations == "success" ]] && \
[[ $resultTestScreenReader == "success" ]] && \
[[ $resultTestShowcaseStencil == "success" ]] && \
[[ $resultTestShowcaseAngular == "success" ]] && \
[[ $resultTestShowcaseReact == "success" ]] && \
[[ $resultTestShowcaseVue == "success" ]] && \
[[ $resultTestShowcasePatternhub == "success" ]] && \
[[ $resultTestPackages == "success" ]] && \
[[ $resultBuildOutputs == "success" ]] && \
[[ $resultBuildShowcaseStencil == "success" ]] && \
[[ $resultBuildShowcaseAngular == "success" ]] && \
[[ $resultBuildShowcaseAngularSSR == "success" ]] && \
[[ $resultBuildShowcaseReact == "success" ]] && \
Expand All @@ -172,6 +189,7 @@ jobs:
fi
needs:
[
build-showcase-stencil,
build-showcase-angular,
build-showcase-angular-ssr,
build-showcase-react,
Expand All @@ -181,6 +199,7 @@ jobs:
build-showcase-patternhub,
build-outputs,
test-components,
test-showcase-stencil,
test-showcase-angular,
test-showcase-react,
test-showcase-vue,
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ packages/components/src/**/*.css.map

/output/**/src
/output/**/dist
/output/**/.angular
/output/**/playwright*
/output/**/test-results

Expand Down Expand Up @@ -58,3 +57,8 @@ showcases/patternhub/public/iframe-resizer/*
/packages/foundations/assets/icons/functional/fonts/**/*.svg
/packages/foundations/assets/icons/functional/fonts/**/*.ttf
/packages/foundations/assets/icons/functional/fonts/**/*.woff

/output/stencil/.stencil
/output/stencil/loader
/output/stencil/www
**/.angular
6 changes: 1 addition & 5 deletions .xo-config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ module.exports = {
}
},
{
files: [
'./**/angular-**/**',
'./showcases/vanilla-showcase/**',
'./showcases/svelte-showcase/**'
],
files: ['./**/angular-**/**', './showcases/svelte-showcase/**'],
rules: {
'new-cap': 0, // fixes issue with @Component annotation
'import/no-unassigned-import': 0, // fixes issue with including zone.js or db-components
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ designers, and content authors build, maintain, and scale best of class digital
| [ngx-components](https://github.com/db-ui/mono/tree/main/output/angular) | Native Angular components | [![@db-ui/ngx-components on Npmjs](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Frepos%2Fdb-ui%2Fmono%2Freleases%2Flatest&query=%24.tag_name&label=npm&color=ed1c24 "npm version")](https://npmjs.com/package/@db-ui/ngx-components "DB UI – on NPM") |
| [react-components](https://github.com/db-ui/mono/tree/main/output/react) | Native React components | [![@db-ui/react-components on Npmjs](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Frepos%2Fdb-ui%2Fmono%2Freleases%2Flatest&query=%24.tag_name&label=npm&color=ed1c24 "npm version")](https://npmjs.com/package/@db-ui/react-components "DB UI – on NPM") |
| [v-components](https://github.com/db-ui/mono/tree/main/output/vue) | Native Vue 3 components | [![@db-ui/v-components on Npmjs](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Frepos%2Fdb-ui%2Fmono%2Freleases%2Flatest&query=%24.tag_name&label=npm&color=ed1c24 "npm version")](https://npmjs.com/package/@db-ui/v-components "DB UI – on NPM") |
| [web-components](https://github.com/db-ui/mono/tree/main/output/vue) | Web Components | [![@db-ui/web-components on Npmjs](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Frepos%2Fdb-ui%2Fmono%2Freleases%2Flatest&query=%24.tag_name&label=npm&color=ed1c24 "npm version")](https://npmjs.com/package/@db-ui/web-components "DB UI – on NPM") |

## How to use

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 47 additions & 17 deletions output/webcomponent/README.md → output/stencil/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,68 @@ A web-component library containing all components of [DB UX Design System (techn

## Install

`npm i @db-ui/web-components`
```shell
npm i @db-ui/web-components
```

## Dependencies
> **Note:** This will install [`@db-ui/foundations`](https://www.npmjs.com/package/@db-ui/foundations) and [`@db-ui/components`](https://www.npmjs.com/package/@db-ui/components) as well which contains the `css`/`scss` files

```json
# package.json
"copy:assets": "cpr node_modules/@db-ui/foundations/assets ./public/assets -o",
"copy:styles": "cpr node_modules/@db-ui/components/build/styles/db-ui-42.css ./public/styles/db-ui-42.css -o",
"copy:components": "cpr node_modules/@db-ui/components/build/components ./public/components -o",
## Styling Dependencies

Import the styles in scss or css. Based on your technology the file names could be different.

- Default (db-ui-42): points to `../assets`
- Rollup (db-ui-42-rollup): points to `@db-ui/foundations/assets`
- Webpack (db-ui-42-webpack): points to `~@db-ui/foundations/assets`

<details>
<summary><strong>SCSS</strong></summary>

```scss
// index.scss
@forward "@db-ui/components/build/styles/db-ui-42-rollup";
```

```html
# index.html
</details>
<details>
<summary><strong>CSS</strong></summary>

<head>
...
<link rel="stylesheet" href="styles/db-ui-42.css" />
...
</head>
```js
// main.js
import "@db-ui/components/build/styles/db-ui-42-rollup.css";
```

</details>

> **Note:** The `db-ui-42` file contains optional and all components styles. If you consider performance issues see [@db-ui/components](https://www.npmjs.com/package/@db-ui/components) for more information.

## Usage

```javascript
import "node_modules/@db-ui/web-components/components/button/button.js";
```js
// main.js
import { defineCustomElements } from "@db-ui/web-components";
defineCustomElements();
```

```html
...
<db-button variant="brand" icon="person">Test</db-button>
<db-button icon="person">Test</db-button>
...
```

## VSCode autocomplete

If you don't have it already, add a VS Code settings folder and file at the root of your project - `.vscode/settings.json`. Then add or append the following code:

```json
{
"html.customData": [
"./node_modules/@db-ui/web-components/dist/vscode.html-custom-data.json"
]
}
```


## Deutsche Bahn brand

As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even when being used with the code that we're provide with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UI products free to use and release it under the Apache 2.0 license.
Expand Down
67 changes: 67 additions & 0 deletions output/stencil/custom-elements-manifest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import { generateVsCodeCustomElementData } from 'custom-element-vs-code-integration';
import { getTsProgram } from 'cem-plugin-expanded-types';
import { resolveTypesPlugin } from './scripts/resolveTypes.js';
import { generateJetBrainsWebTypes } from 'custom-element-jet-brains-integration';
import { writeFileSync } from 'node:fs';
import { customElementsManifestToMarkdown } from '@custom-elements-manifest/to-markdown';

const outdir = './dist';

const vsCodeOptions = {
outdir,
cssFileName: null
};

const intellijOptions = {
outdir,
excludeCss: true,
referenceTemplate: (name, tag) => ({
name: 'Documentation',
url: `https://db-ui.github.io/mono/review/main/components/${tag.replace('db-', '')}/properties`
})
};

export default {
globs: ['src'],
outdir,
stencil: true,
overrideModuleCreation: ({ ts, globs }) => {
const program = getTsProgram(ts, globs);
const sourceFiles = program.getSourceFiles();
const filteredFiles = [];

// Wired issue .filter() didn't work
sourceFiles.forEach((sf) => {
if (sf.fileName.includes('node_modules')) {
return false;
}
const foundGlob = globs.find((glob) => sf.fileName.includes(glob));
if (foundGlob) {
filteredFiles.push(sf);
}
});
return filteredFiles;
},
plugins: [
resolveTypesPlugin(({ customElementsManifest }) => {
writeFileSync(
`${outdir}/custom-elements.md`,
customElementsManifestToMarkdown(customElementsManifest, {
private: 'hidden',
omitDeclarations: [
'mixins',
'variables',
'functions',
'exports'
],
omitSections: ['attributes', 'methods']
})
);
generateVsCodeCustomElementData(
customElementsManifest,
vsCodeOptions
);
generateJetBrainsWebTypes(customElementsManifest, intellijOptions);
})
]
};
Loading
Loading