@things-factory/help 10.1.282 → 10.1.290
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/dist-client/bootstrap.js +9 -0
- package/dist-client/guide/deep-find.d.ts +4 -0
- package/dist-client/guide/deep-find.js +29 -0
- package/dist-client/guide/guide-anchors.d.ts +33 -0
- package/dist-client/guide/guide-anchors.js +29 -0
- package/dist-client/guide/guide-api.d.ts +24 -0
- package/dist-client/guide/guide-api.js +23 -0
- package/dist-client/guide/guide-progress.d.ts +37 -0
- package/dist-client/guide/guide-progress.js +51 -0
- package/dist-client/guide/guide-recorder.d.ts +9 -0
- package/dist-client/guide/guide-recorder.js +94 -0
- package/dist-client/guide/guide-runner.d.ts +18 -0
- package/dist-client/guide/guide-runner.js +191 -0
- package/dist-client/guide/guide-words.d.ts +8 -0
- package/dist-client/guide/guide-words.js +21 -0
- package/dist-client/guide/ox-guide-overlay.d.ts +30 -0
- package/dist-client/guide/ox-guide-overlay.js +273 -0
- package/dist-client/guide/ox-guide-recorder-bar.d.ts +10 -0
- package/dist-client/guide/ox-guide-recorder-bar.js +92 -0
- package/dist-client/index.d.ts +4 -0
- package/dist-client/index.js +4 -0
- package/dist-client/pages/guide-editor.d.ts +36 -0
- package/dist-client/pages/guide-editor.js +339 -0
- package/dist-client/pages/guide-list.d.ts +45 -0
- package/dist-client/pages/guide-list.js +74 -0
- package/dist-client/route.js +6 -0
- package/dist-server/index.d.ts +2 -0
- package/dist-server/index.js +8 -1
- package/dist-server/role-tasks.d.ts +2 -0
- package/dist-server/role-tasks.js +11 -0
- package/dist-server/service/guide/guide-conditions.d.ts +21 -0
- package/dist-server/service/guide/guide-conditions.js +27 -0
- package/dist-server/service/guide/guide-resolver.d.ts +12 -0
- package/dist-server/service/guide/guide-resolver.js +142 -0
- package/dist-server/service/guide/guide-rules.d.ts +12 -0
- package/dist-server/service/guide/guide-rules.js +30 -0
- package/dist-server/service/guide/guide-types.d.ts +14 -0
- package/dist-server/service/guide/guide-types.js +43 -0
- package/dist-server/service/guide/guide.d.ts +24 -0
- package/dist-server/service/guide/guide.js +90 -0
- package/dist-server/service/guide/index.d.ts +4 -0
- package/dist-server/service/guide/index.js +8 -0
- package/dist-server/service/index.d.ts +7 -0
- package/dist-server/service/index.js +15 -0
- package/package.json +15 -3
- package/things-factory.config.js +3 -1
- package/translations/en.json +74 -2
- package/translations/es.json +73 -1
- package/translations/ja.json +74 -2
- package/translations/ko.json +74 -2
- package/translations/ms.json +73 -1
- package/translations/zh.json +73 -1
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
/*
|
|
3
|
+
* The overlay of a guide in progress (ADR-0212 decision 5): a frame around the step's point and a glass bubble beside
|
|
4
|
+
* it. It covers nothing - only the bubble takes clicks. The bubble pops in lightly, the frame
|
|
5
|
+
* glides to the next point, and the bubble gives one small wiggle when the work is done.
|
|
6
|
+
*/
|
|
7
|
+
import '@material/web/button/filled-tonal-button.js';
|
|
8
|
+
import '@material/web/button/text-button.js';
|
|
9
|
+
import '@material/web/icon/icon.js';
|
|
10
|
+
import { css, html, LitElement, nothing } from 'lit';
|
|
11
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
12
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
13
|
+
import { t } from './guide-words.js';
|
|
14
|
+
/* Room between the point and the bubble. */
|
|
15
|
+
const GAP = 24;
|
|
16
|
+
const CARD_WIDTH = 320;
|
|
17
|
+
const ICONS = { click: 'touch_app', input: 'edit', select: 'checklist' };
|
|
18
|
+
let OxGuideOverlay = class OxGuideOverlay extends LitElement {
|
|
19
|
+
static { this.styles = css `
|
|
20
|
+
:host {
|
|
21
|
+
position: fixed;
|
|
22
|
+
inset: 0;
|
|
23
|
+
z-index: 10000;
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
/*
|
|
26
|
+
* Glass lightly tinted with the application's accent (operato-suite --ui-accent) over the theme's surface - the
|
|
27
|
+
* page shows through, blurred. Built on the theme's tokens, so it follows the application's light or dark theme
|
|
28
|
+
* (body.dark), not the operating system's.
|
|
29
|
+
*/
|
|
30
|
+
--guide-accent: var(--ui-accent, var(--md-sys-color-primary, #047857));
|
|
31
|
+
--guide-surface: var(--md-sys-color-surface, #fff);
|
|
32
|
+
--guide-glass: linear-gradient(
|
|
33
|
+
135deg,
|
|
34
|
+
color-mix(in srgb, var(--guide-accent) 26%, color-mix(in srgb, var(--guide-surface) 38%, transparent)),
|
|
35
|
+
color-mix(in srgb, var(--guide-accent) 12%, color-mix(in srgb, var(--guide-surface) 30%, transparent))
|
|
36
|
+
);
|
|
37
|
+
--guide-ink: color-mix(in srgb, var(--guide-accent) 40%, var(--md-sys-color-on-surface, #1b1b1f));
|
|
38
|
+
--guide-soft-ink: color-mix(in srgb, var(--guide-ink) 68%, transparent);
|
|
39
|
+
--guide-shine: rgb(255 255 255 / 32%);
|
|
40
|
+
--guide-edge: linear-gradient(160deg, rgb(255 255 255 / 85%), rgb(255 255 255 / 25%) 40%, color-mix(in srgb, var(--guide-accent) 50%, transparent));
|
|
41
|
+
--guide-shadow: 0 18px 44px color-mix(in srgb, var(--guide-accent) 18%, rgb(0 0 0 / 12%)), 0 2px 6px rgb(0 0 0 / 8%);
|
|
42
|
+
}
|
|
43
|
+
.frame {
|
|
44
|
+
position: fixed;
|
|
45
|
+
border: 1.5px solid color-mix(in srgb, var(--guide-accent) 70%, white);
|
|
46
|
+
border-radius: 12px;
|
|
47
|
+
background: color-mix(in srgb, var(--guide-accent) 4%, transparent);
|
|
48
|
+
box-shadow:
|
|
49
|
+
0 0 0 4px color-mix(in srgb, var(--guide-accent) 12%, transparent),
|
|
50
|
+
0 0 18px color-mix(in srgb, var(--guide-accent) 30%, transparent);
|
|
51
|
+
transition:
|
|
52
|
+
top 0.3s ease,
|
|
53
|
+
left 0.3s ease,
|
|
54
|
+
width 0.3s ease,
|
|
55
|
+
height 0.3s ease;
|
|
56
|
+
animation: breathe 1.8s ease-in-out infinite;
|
|
57
|
+
}
|
|
58
|
+
@keyframes breathe {
|
|
59
|
+
50% {
|
|
60
|
+
box-shadow:
|
|
61
|
+
0 0 0 8px color-mix(in srgb, var(--guide-accent) 6%, transparent),
|
|
62
|
+
0 0 26px color-mix(in srgb, var(--guide-accent) 22%, transparent);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/* A click step: a ripple from the middle of the point. */
|
|
66
|
+
.ripple {
|
|
67
|
+
position: fixed;
|
|
68
|
+
width: 28px;
|
|
69
|
+
height: 28px;
|
|
70
|
+
margin: -14px 0 0 -14px;
|
|
71
|
+
border-radius: 50%;
|
|
72
|
+
background: color-mix(in srgb, var(--guide-accent) 35%, transparent);
|
|
73
|
+
animation: ripple 1.8s ease-out infinite;
|
|
74
|
+
}
|
|
75
|
+
@keyframes ripple {
|
|
76
|
+
from {
|
|
77
|
+
transform: scale(0.4);
|
|
78
|
+
opacity: 0.9;
|
|
79
|
+
}
|
|
80
|
+
to {
|
|
81
|
+
transform: scale(2.6);
|
|
82
|
+
opacity: 0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.bubble {
|
|
86
|
+
position: fixed;
|
|
87
|
+
width: min(${CARD_WIDTH}px, calc(100vw - 32px));
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
display: grid;
|
|
90
|
+
grid-template-columns: 36px 1fr;
|
|
91
|
+
align-items: start;
|
|
92
|
+
gap: 14px;
|
|
93
|
+
padding: 16px 16px 10px 16px;
|
|
94
|
+
border-radius: 24px;
|
|
95
|
+
/* The glass inside, and a gradient edge - bright above, tinted below - that shows on a white page too. */
|
|
96
|
+
border: 1px solid transparent;
|
|
97
|
+
background:
|
|
98
|
+
linear-gradient(170deg, var(--guide-shine), transparent 55%) padding-box,
|
|
99
|
+
var(--guide-glass) padding-box,
|
|
100
|
+
var(--guide-edge) border-box;
|
|
101
|
+
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
102
|
+
backdrop-filter: blur(20px) saturate(180%);
|
|
103
|
+
color: var(--guide-ink);
|
|
104
|
+
box-shadow: var(--guide-shadow);
|
|
105
|
+
pointer-events: auto;
|
|
106
|
+
transition:
|
|
107
|
+
top 0.3s ease,
|
|
108
|
+
left 0.3s ease,
|
|
109
|
+
bottom 0.3s ease;
|
|
110
|
+
animation: pop-in 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.25);
|
|
111
|
+
}
|
|
112
|
+
.bubble.done {
|
|
113
|
+
animation: wiggle 0.6s ease-in-out;
|
|
114
|
+
}
|
|
115
|
+
@keyframes pop-in {
|
|
116
|
+
from {
|
|
117
|
+
opacity: 0;
|
|
118
|
+
transform: translateY(8px) scale(0.94);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
@keyframes wiggle {
|
|
122
|
+
20% {
|
|
123
|
+
transform: rotate(-2.5deg);
|
|
124
|
+
}
|
|
125
|
+
45% {
|
|
126
|
+
transform: rotate(2deg);
|
|
127
|
+
}
|
|
128
|
+
70% {
|
|
129
|
+
transform: rotate(-1deg);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
.content {
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
gap: 6px;
|
|
136
|
+
min-width: 0;
|
|
137
|
+
}
|
|
138
|
+
.badge {
|
|
139
|
+
width: 36px;
|
|
140
|
+
height: 36px;
|
|
141
|
+
border-radius: 50%;
|
|
142
|
+
display: grid;
|
|
143
|
+
place-items: center;
|
|
144
|
+
background: linear-gradient(145deg, color-mix(in srgb, var(--guide-accent) 80%, white), var(--guide-accent));
|
|
145
|
+
color: #fff;
|
|
146
|
+
box-shadow: 0 4px 12px color-mix(in srgb, var(--guide-accent) 35%, transparent), inset 0 1px 0 rgb(255 255 255 / 35%);
|
|
147
|
+
--md-icon-size: 20px;
|
|
148
|
+
}
|
|
149
|
+
.dots {
|
|
150
|
+
display: flex;
|
|
151
|
+
gap: 5px;
|
|
152
|
+
align-items: center;
|
|
153
|
+
height: 12px;
|
|
154
|
+
}
|
|
155
|
+
.dots span {
|
|
156
|
+
width: 6px;
|
|
157
|
+
height: 6px;
|
|
158
|
+
border-radius: 3px;
|
|
159
|
+
background: color-mix(in srgb, var(--guide-accent) 22%, transparent);
|
|
160
|
+
transition: width 0.25s ease;
|
|
161
|
+
}
|
|
162
|
+
.dots span.past {
|
|
163
|
+
background: color-mix(in srgb, var(--guide-accent) 50%, transparent);
|
|
164
|
+
}
|
|
165
|
+
.dots span.now {
|
|
166
|
+
width: 16px;
|
|
167
|
+
background: var(--guide-accent);
|
|
168
|
+
}
|
|
169
|
+
p {
|
|
170
|
+
margin: 0;
|
|
171
|
+
font-size: 15px;
|
|
172
|
+
font-weight: 500;
|
|
173
|
+
line-height: 1.55;
|
|
174
|
+
letter-spacing: -0.01em;
|
|
175
|
+
white-space: pre-line;
|
|
176
|
+
}
|
|
177
|
+
.note {
|
|
178
|
+
margin: 0;
|
|
179
|
+
font-size: var(--ui-t-small, 12px);
|
|
180
|
+
color: var(--guide-soft-ink);
|
|
181
|
+
}
|
|
182
|
+
.actions {
|
|
183
|
+
display: flex;
|
|
184
|
+
justify-content: flex-end;
|
|
185
|
+
align-items: center;
|
|
186
|
+
gap: 2px;
|
|
187
|
+
margin-top: -2px;
|
|
188
|
+
margin-inline-end: -6px;
|
|
189
|
+
}
|
|
190
|
+
md-text-button {
|
|
191
|
+
--md-text-button-label-text-color: var(--guide-soft-ink);
|
|
192
|
+
}
|
|
193
|
+
md-filled-tonal-button {
|
|
194
|
+
--md-filled-tonal-button-container-color: var(--guide-accent);
|
|
195
|
+
--md-filled-tonal-button-label-text-color: #fff;
|
|
196
|
+
}
|
|
197
|
+
`; }
|
|
198
|
+
render() {
|
|
199
|
+
const view = this.view;
|
|
200
|
+
if (!view)
|
|
201
|
+
return nothing;
|
|
202
|
+
const { rect, state } = view;
|
|
203
|
+
return html `${rect && state === 'working'
|
|
204
|
+
? html `<div class="frame" style=${styleMap({ top: `${rect.top - 5}px`, left: `${rect.left - 5}px`, width: `${rect.width + 10}px`, height: `${rect.height + 10}px` })}></div>`
|
|
205
|
+
: nothing}
|
|
206
|
+
${rect && state === 'working' && view.action === 'click'
|
|
207
|
+
? html `<div class="ripple" style=${styleMap({ top: `${rect.top + rect.height / 2}px`, left: `${rect.left + rect.width / 2}px` })}></div>`
|
|
208
|
+
: nothing}
|
|
209
|
+
<div class="bubble ${state === 'done' ? 'done' : ''}" role="dialog" aria-live="polite" style=${styleMap(this.placeOf(rect))}>
|
|
210
|
+
<span class="badge" aria-hidden="true"><md-icon>${this.iconOf(view)}</md-icon></span>
|
|
211
|
+
<div class="content">
|
|
212
|
+
<div class="dots" role="img" aria-label=${t('guide.text.progress', { index: view.index + 1, total: view.total })}>
|
|
213
|
+
${Array.from({ length: view.total }, (_one, at) => html `<span class=${at < view.index ? 'past' : at === view.index ? 'now' : ''}></span>`)}
|
|
214
|
+
</div>
|
|
215
|
+
${this.renderBody(view)}
|
|
216
|
+
</div>
|
|
217
|
+
</div>`;
|
|
218
|
+
}
|
|
219
|
+
iconOf(view) {
|
|
220
|
+
if (view.state === 'done')
|
|
221
|
+
return 'celebration';
|
|
222
|
+
if (view.state === 'checking')
|
|
223
|
+
return 'hourglass_top';
|
|
224
|
+
if (view.state === 'unfinished')
|
|
225
|
+
return 'priority_high';
|
|
226
|
+
if (view.explains)
|
|
227
|
+
return 'lightbulb';
|
|
228
|
+
return ICONS[view.action ?? ''] ?? 'touch_app';
|
|
229
|
+
}
|
|
230
|
+
renderBody(view) {
|
|
231
|
+
if (view.state === 'done') {
|
|
232
|
+
return html `<p>${t(view.checked ? 'guide.text.done' : 'guide.text.finished')}</p>
|
|
233
|
+
<div class="actions"><md-filled-tonal-button @click=${() => this.say('guide-stop')}>${t('guide.button.close')}</md-filled-tonal-button></div>`;
|
|
234
|
+
}
|
|
235
|
+
if (view.state === 'checking')
|
|
236
|
+
return html `<p>${t('guide.text.checking')}</p>`;
|
|
237
|
+
return html `<p>${view.text}</p>
|
|
238
|
+
${view.state === 'unfinished' ? html `<div class="note">${t('guide.text.unfinished')}</div>` : nothing}
|
|
239
|
+
${!view.rect && !view.explains && view.state === 'working' ? html `<div class="note">${t('guide.text.point-not-shown')}</div>` : nothing}
|
|
240
|
+
<div class="actions">
|
|
241
|
+
<md-text-button @click=${() => this.say('guide-stop')}>${t('guide.button.stop')}</md-text-button>
|
|
242
|
+
${view.state === 'unfinished'
|
|
243
|
+
? html `<md-filled-tonal-button @click=${() => this.say('guide-check')}>${t('guide.button.check-again')}</md-filled-tonal-button>`
|
|
244
|
+
: view.explains
|
|
245
|
+
? html `<md-filled-tonal-button @click=${() => this.say('guide-next')}>${t(view.index + 1 >= view.total ? 'guide.button.finish' : 'guide.button.next')}</md-filled-tonal-button>`
|
|
246
|
+
: nothing}
|
|
247
|
+
</div>`;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Below the point when there is room, above it otherwise, starting a little left of the point's middle; the upper
|
|
251
|
+
* right when there is no point - the page's actions are below.
|
|
252
|
+
*/
|
|
253
|
+
placeOf(rect) {
|
|
254
|
+
const width = Math.min(CARD_WIDTH, window.innerWidth - 32);
|
|
255
|
+
if (!rect)
|
|
256
|
+
return { right: '24px', top: '72px' };
|
|
257
|
+
const left = Math.max(16, Math.min(rect.left + rect.width / 2 - 40, window.innerWidth - width - 16));
|
|
258
|
+
const below = rect.bottom + GAP;
|
|
259
|
+
return below + 170 < window.innerHeight ? { top: `${below}px`, left: `${left}px` } : { bottom: `${window.innerHeight - rect.top + GAP}px`, left: `${left}px` };
|
|
260
|
+
}
|
|
261
|
+
say(name) {
|
|
262
|
+
this.dispatchEvent(new CustomEvent(name));
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
__decorate([
|
|
266
|
+
property({ attribute: false }),
|
|
267
|
+
__metadata("design:type", Object)
|
|
268
|
+
], OxGuideOverlay.prototype, "view", void 0);
|
|
269
|
+
OxGuideOverlay = __decorate([
|
|
270
|
+
customElement('ox-guide-overlay')
|
|
271
|
+
], OxGuideOverlay);
|
|
272
|
+
export { OxGuideOverlay };
|
|
273
|
+
//# sourceMappingURL=ox-guide-overlay.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@material/web/button/filled-button.js';
|
|
2
|
+
import '@material/web/button/text-button.js';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import type { GuideStep } from './guide-progress.js';
|
|
5
|
+
export declare class OxGuideRecorderBar extends LitElement {
|
|
6
|
+
static styles: import("lit").CSSResult;
|
|
7
|
+
steps: GuideStep[];
|
|
8
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
9
|
+
private end;
|
|
10
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
/*
|
|
3
|
+
* The bar shown while a guide is recorded (ADR-0212 decision 7) - how many steps are recorded, the last one, and the
|
|
4
|
+
* buttons that end the recording.
|
|
5
|
+
*/
|
|
6
|
+
import '@material/web/button/filled-button.js';
|
|
7
|
+
import '@material/web/button/text-button.js';
|
|
8
|
+
import { css, html, LitElement, nothing } from 'lit';
|
|
9
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
10
|
+
import { anchorLabel, t } from './guide-words.js';
|
|
11
|
+
let OxGuideRecorderBar = class OxGuideRecorderBar extends LitElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.steps = [];
|
|
15
|
+
}
|
|
16
|
+
static { this.styles = css `
|
|
17
|
+
:host {
|
|
18
|
+
position: fixed;
|
|
19
|
+
left: 50%;
|
|
20
|
+
bottom: 24px;
|
|
21
|
+
transform: translateX(-50%);
|
|
22
|
+
z-index: 10000;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 12px;
|
|
26
|
+
max-width: calc(100vw - 32px);
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
padding: 8px 8px 8px 16px;
|
|
29
|
+
border-radius: 24px;
|
|
30
|
+
background: var(--md-sys-color-inverse-surface, #303034);
|
|
31
|
+
color: var(--md-sys-color-inverse-on-surface, #f2f0f4);
|
|
32
|
+
box-shadow: 0 8px 28px rgb(0 0 0 / 28%);
|
|
33
|
+
animation: come-in 0.22s ease-out;
|
|
34
|
+
}
|
|
35
|
+
@keyframes come-in {
|
|
36
|
+
from {
|
|
37
|
+
opacity: 0;
|
|
38
|
+
transform: translate(-50%, 6px);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
.dot {
|
|
42
|
+
width: 10px;
|
|
43
|
+
height: 10px;
|
|
44
|
+
border-radius: 50%;
|
|
45
|
+
background: #e5484d;
|
|
46
|
+
animation: blink 1.2s ease-in-out infinite;
|
|
47
|
+
}
|
|
48
|
+
@keyframes blink {
|
|
49
|
+
50% {
|
|
50
|
+
opacity: 0.35;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
.text {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
min-width: 0;
|
|
57
|
+
}
|
|
58
|
+
.last {
|
|
59
|
+
font-size: var(--ui-t-small, 12px);
|
|
60
|
+
opacity: 0.8;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
}
|
|
65
|
+
md-text-button {
|
|
66
|
+
--md-text-button-label-text-color: var(--md-sys-color-inverse-on-surface, #f2f0f4);
|
|
67
|
+
}
|
|
68
|
+
`; }
|
|
69
|
+
render() {
|
|
70
|
+
const last = this.steps[this.steps.length - 1];
|
|
71
|
+
return html `<span class="dot" aria-hidden="true"></span>
|
|
72
|
+
<div class="text">
|
|
73
|
+
<span>${t('guide.text.recording', { n: this.steps.length })}</span>
|
|
74
|
+
<span class="last">${last ? t('guide.text.recorded-last', { label: anchorLabel(last.anchor) }) : t('guide.text.recording-hint')}</span>
|
|
75
|
+
</div>
|
|
76
|
+
<md-text-button @click=${() => this.end(false)}>${t('guide.button.cancel-recording')}</md-text-button>
|
|
77
|
+
<md-filled-button ?disabled=${!this.steps.length} @click=${() => this.end(true)}>${t('guide.button.end-recording')}</md-filled-button>
|
|
78
|
+
${nothing}`;
|
|
79
|
+
}
|
|
80
|
+
end(kept) {
|
|
81
|
+
this.dispatchEvent(new CustomEvent('recording-end', { detail: kept }));
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
__decorate([
|
|
85
|
+
property({ attribute: false }),
|
|
86
|
+
__metadata("design:type", Array)
|
|
87
|
+
], OxGuideRecorderBar.prototype, "steps", void 0);
|
|
88
|
+
OxGuideRecorderBar = __decorate([
|
|
89
|
+
customElement('ox-guide-recorder-bar')
|
|
90
|
+
], OxGuideRecorderBar);
|
|
91
|
+
export { OxGuideRecorderBar };
|
|
92
|
+
//# sourceMappingURL=ox-guide-recorder-bar.js.map
|
package/dist-client/index.d.ts
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
1
|
export * from '@operato/help';
|
|
2
|
+
export { registerGuideAnchors, guideAnchor, guideAnchors, selectorOf, type GuideAnchor, type GuideAnchorAction, type GuideAnchorTarget } from './guide/guide-anchors.js';
|
|
3
|
+
export { brokenSteps, type GuideItem, type GuideStep } from './guide/guide-progress.js';
|
|
4
|
+
export { registerGuideFinisher, startGuide, stopGuide, guideRunning, type GuideFinisher, type GuideOrigin } from './guide/guide-runner.js';
|
|
5
|
+
export { guideApi, type GuideRow } from './guide/guide-api.js';
|
package/dist-client/index.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export * from '@operato/help';
|
|
2
|
+
export { registerGuideAnchors, guideAnchor, guideAnchors, selectorOf } from './guide/guide-anchors.js';
|
|
3
|
+
export { brokenSteps } from './guide/guide-progress.js';
|
|
4
|
+
export { registerGuideFinisher, startGuide, stopGuide, guideRunning } from './guide/guide-runner.js';
|
|
5
|
+
export { guideApi } from './guide/guide-api.js';
|
|
2
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js';
|
|
2
|
+
import '@operato/input/ox-select.js';
|
|
3
|
+
import '@operato/popup/ox-popup-list.js';
|
|
4
|
+
import { PageView } from '@operato/shell';
|
|
5
|
+
declare const GuideEditor_base: (new (...args: any[]) => import("lit").LitElement) & typeof PageView;
|
|
6
|
+
/**
|
|
7
|
+
* 화면 안내 작성 — the guide's name, its opening sentence, its steps and its completion check (ADR-0212 decision 7). The
|
|
8
|
+
* steps are recorded by doing the work once; the writer rewrites each sentence, adds steps that only explain, and tries
|
|
9
|
+
* the guide in a preview, which records nothing.
|
|
10
|
+
*/
|
|
11
|
+
export declare class GuideEditor extends GuideEditor_base {
|
|
12
|
+
static styles: import("lit").CSSResult[];
|
|
13
|
+
private form;
|
|
14
|
+
private guideId?;
|
|
15
|
+
private conditions;
|
|
16
|
+
private busy;
|
|
17
|
+
private address?;
|
|
18
|
+
get context(): {
|
|
19
|
+
title: string;
|
|
20
|
+
frame: string;
|
|
21
|
+
menu: string;
|
|
22
|
+
actions: any[];
|
|
23
|
+
};
|
|
24
|
+
pageUpdated(changes: any, lifecycle: any): Promise<void>;
|
|
25
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
26
|
+
private renderStep;
|
|
27
|
+
private takeRecorded;
|
|
28
|
+
private takeDraft;
|
|
29
|
+
private record;
|
|
30
|
+
/** A step that only explains, on the page of the step before it. */
|
|
31
|
+
private addExplanation;
|
|
32
|
+
private preview;
|
|
33
|
+
private save;
|
|
34
|
+
private deleteGuide;
|
|
35
|
+
}
|
|
36
|
+
export {};
|