Skip to content

Commit e4497e8

Browse files
committed
feat(desktop-ui): better docs, new dui-adaptive-container component
1 parent e80edda commit e4497e8

21 files changed

+684
-75
lines changed

packages/desktop-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"font": "node bin/create-font.js",
4242
"build": "npm run font && npm run docjson && rm -rf .angular && ng-packagr --config tsconfig.prod.json && rm dist/.npmignore",
4343
"watch": "ng-packagr --config tsconfig.prod.json --watch",
44-
"docjson": "rm -f docs.json && typedoc --json docs.json --options ../../typedoc.js --plugin ../../typedoc.decorators.js src/index.ts && cp docs.json src/assets/docs.json",
44+
"docjson": "typedoc --json docs.json --options ../../typedoc.js --plugin ../../typedoc.decorators.js src/index.ts && cp docs.json src/assets/docs.json",
4545
"prepublishOnly": "webpack && node bin/create-font.js"
4646
},
4747
"browserslist": [
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
2+
:host {
3+
position: relative;
4+
display: flex;
5+
flex-wrap: wrap;
6+
overflow: hidden;
7+
}
8+
9+
.toggle-button {
10+
position: absolute;
11+
top: 0;
12+
right: 0;
13+
visibility: hidden;
14+
}
15+
16+
:host.row-reverse .toggle-button {
17+
left: 0;
18+
right: unset;
19+
}
20+
21+
:host.column .toggle-button {
22+
top: unset;
23+
left: 0;
24+
bottom: 0;
25+
}
26+
27+
:host.column-reverse .toggle-button {
28+
top: 0;
29+
left: 0;
30+
bottom: unset;
31+
}
32+
33+
:host.has-hidden {
34+
.toggle-button {
35+
visibility: visible;
36+
}
37+
}
38+
39+
:host.row {
40+
flex-direction: row;
41+
}
42+
43+
:host.row-reverse {
44+
flex-direction: row-reverse;
45+
}
46+
47+
:host.column {
48+
flex-direction: column;
49+
}
50+
51+
:host.column-reverse {
52+
flex-direction: column-reverse;
53+
}
54+
55+
:host ::ng-deep > * {
56+
flex: 0 0 auto;
57+
min-width: 0;
58+
}
59+
60+
:host ::ng-deep > .dui-ac-hidden {
61+
visibility: hidden;
62+
pointer-events: none;
63+
}
64+
65+
.dui-dropdown-content {
66+
display: flex;
67+
flex-direction: column;
68+
gap: 4px;
69+
}

0 commit comments

Comments
 (0)