@operato/help 2.0.0-alpha.13 → 2.0.0-alpha.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +613 -0
- package/demo/index.html +13 -2
- package/dist/src/components/ox-help-icon.d.ts +2 -2
- package/dist/src/components/ox-help-icon.js +9 -8
- package/dist/src/components/ox-help-icon.js.map +1 -1
- package/dist/src/components/ox-inline-help.d.ts +1 -1
- package/dist/src/components/ox-title-with-help.d.ts +2 -2
- package/dist/src/components/ox-title-with-help.js +10 -8
- package/dist/src/components/ox-title-with-help.js.map +1 -1
- package/dist/src/help-style.js +4 -3
- package/dist/src/help-style.js.map +1 -1
- package/dist/src/pages/ox-help-home.d.ts +1 -1
- package/dist/src/pages/ox-help-home.js +11 -9
- package/dist/src/pages/ox-help-home.js.map +1 -1
- package/dist/src/viewparts/ox-help-panel.d.ts +1 -1
- package/dist/src/viewparts/ox-help-panel.js +18 -21
- package/dist/src/viewparts/ox-help-panel.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +20 -20
- package/src/components/ox-help-icon.ts +9 -8
- package/src/components/ox-title-with-help.ts +10 -8
- package/src/help-style.ts +4 -3
- package/src/pages/ox-help-home.ts +14 -17
- package/src/viewparts/ox-help-panel.ts +18 -21
@@ -1,4 +1,4 @@
|
|
1
|
-
import '@material/
|
1
|
+
import '@material/web/icon/icon.js'
|
2
2
|
import '@operato/markdown/ox-markdown.js'
|
3
3
|
|
4
4
|
import { css, html, LitElement, PropertyValues } from 'lit'
|
@@ -31,6 +31,9 @@ class HelpPanel extends connect(store)(LitElement) {
|
|
31
31
|
margin: 4px;
|
32
32
|
|
33
33
|
overflow: hidden;
|
34
|
+
|
35
|
+
--md-icon-size: 24px;
|
36
|
+
font-variation-settings: 'FILL' 1;
|
34
37
|
}
|
35
38
|
|
36
39
|
:host(:focus) {
|
@@ -45,7 +48,9 @@ class HelpPanel extends connect(store)(LitElement) {
|
|
45
48
|
border-bottom: var(--help-navigation-bottom);
|
46
49
|
background-color: white;
|
47
50
|
}
|
48
|
-
|
51
|
+
|
52
|
+
#navigation md-icon {
|
53
|
+
padding: var(--help-navigation-icon-padding, var(--padding-default));
|
49
54
|
border-right: var(--help-navigation-icon-border);
|
50
55
|
cursor: pointer;
|
51
56
|
color: var(--help-icon-color);
|
@@ -64,7 +69,7 @@ class HelpPanel extends connect(store)(LitElement) {
|
|
64
69
|
}
|
65
70
|
|
66
71
|
#upward {
|
67
|
-
--
|
72
|
+
--md-icon-size: 26px;
|
68
73
|
position: absolute;
|
69
74
|
bottom: var(--data-list-fab-position-vertical);
|
70
75
|
right: var(--data-list-fab-position-horizontal);
|
@@ -99,28 +104,20 @@ class HelpPanel extends connect(store)(LitElement) {
|
|
99
104
|
|
100
105
|
return html`
|
101
106
|
<div id="navigation">
|
102
|
-
<
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
></mwc-icon-button>
|
112
|
-
<mwc-icon-button
|
113
|
-
icon="keyboard_arrow_right"
|
114
|
-
@click=${() => this.historyForward()}
|
115
|
-
?disabled=${this.historyIndex >= this.history.length - 1}
|
116
|
-
></mwc-icon-button>
|
117
|
-
<mwc-icon-button icon="open_in_new" @click=${() => navigate(`help?topic=${this.topic}`)}></mwc-icon-button>
|
118
|
-
<mwc-icon-button icon="close" id="close" @click=${() => closeOverlay('help')}></mwc-icon-button>
|
107
|
+
<md-icon @click=${() => this.goHome()} ?disabled=${this.history[0] === this.history[this.historyIndex]}>
|
108
|
+
home
|
109
|
+
</md-icon>
|
110
|
+
<md-icon @click=${() => this.historyBack()} ?disabled=${this.historyIndex < 1}> keyboard_arrow_left </md-icon>
|
111
|
+
<md-icon @click=${() => this.historyForward()} ?disabled=${this.historyIndex >= this.history.length - 1}>
|
112
|
+
keyboard_arrow_right
|
113
|
+
</md-icon>
|
114
|
+
<md-icon @click=${() => navigate(`help?topic=${this.topic}`)}> open_in_new </md-icon>
|
115
|
+
<md-icon id="close" @click=${() => closeOverlay('help')}> close </md-icon>
|
119
116
|
</div>
|
120
117
|
|
121
118
|
${!this.showGotoTop
|
122
119
|
? html``
|
123
|
-
: html` <
|
120
|
+
: html` <md-icon id="upward" @click=${(e: Event) => this.gotoTop(e)}>arrow_upward</md-icon> `}
|
124
121
|
<ox-markdown id="content" .src=${src}></ox-markdown>
|
125
122
|
`
|
126
123
|
}
|