@things-factory/figure-ui 10.1.70 → 10.1.72
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/client/graphql/index.ts +28 -69
- package/client/modeller/figure-v3-parts.ts +16 -136
- package/client/modeller/figure-v3-recipe-catalog.ts +366 -0
- package/client/modeller/v3-editor.ts +25 -5
- package/client/modeller/v3-fields.ts +21 -16
- package/client/modeller/v3-gizmo.ts +1 -1
- package/client/modeller/v3-links.ts +7 -66
- package/client/modeller/v3-palette.ts +3 -0
- package/client/modeller/v3-recipe-source.ts +15 -0
- package/client/modeller/v3-recipes.ts +50 -27
- package/client/pages/figure-v3-modeller-page.ts +16 -13
- package/client/route.ts +0 -4
- package/dist-client/graphql/index.d.ts +11 -18
- package/dist-client/graphql/index.js +18 -59
- package/dist-client/graphql/index.js.map +1 -1
- package/dist-client/modeller/figure-v3-parts.d.ts +5 -12
- package/dist-client/modeller/figure-v3-parts.js +17 -147
- package/dist-client/modeller/figure-v3-parts.js.map +1 -1
- package/dist-client/modeller/figure-v3-recipe-catalog.d.ts +38 -0
- package/dist-client/modeller/figure-v3-recipe-catalog.js +399 -0
- package/dist-client/modeller/figure-v3-recipe-catalog.js.map +1 -0
- package/dist-client/modeller/v3-clips.d.ts +1 -1
- package/dist-client/modeller/v3-editor.d.ts +8 -3
- package/dist-client/modeller/v3-editor.js +35 -6
- package/dist-client/modeller/v3-editor.js.map +1 -1
- package/dist-client/modeller/v3-fields.d.ts +2 -2
- package/dist-client/modeller/v3-fields.js +20 -18
- package/dist-client/modeller/v3-fields.js.map +1 -1
- package/dist-client/modeller/v3-gizmo.js +1 -1
- package/dist-client/modeller/v3-gizmo.js.map +1 -1
- package/dist-client/modeller/v3-links.d.ts +8 -25
- package/dist-client/modeller/v3-links.js +4 -66
- package/dist-client/modeller/v3-links.js.map +1 -1
- package/dist-client/modeller/v3-palette.js +3 -0
- package/dist-client/modeller/v3-palette.js.map +1 -1
- package/dist-client/modeller/v3-recipe-source.d.ts +8 -0
- package/dist-client/modeller/v3-recipe-source.js +14 -0
- package/dist-client/modeller/v3-recipe-source.js.map +1 -0
- package/dist-client/modeller/v3-recipes.d.ts +25 -14
- package/dist-client/modeller/v3-recipes.js +42 -28
- package/dist-client/modeller/v3-recipes.js.map +1 -1
- package/dist-client/pages/figure-v3-modeller-page.d.ts +5 -3
- package/dist-client/pages/figure-v3-modeller-page.js +16 -13
- package/dist-client/pages/figure-v3-modeller-page.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +0 -3
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.fui.tsbuildinfo +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -4
- package/scripts/template-thumbnails.mjs +53 -0
- package/test/browser/build.mjs +15 -3
- package/test/browser/modeller-page.js +26 -3
- package/test/browser/modeller.check.mjs +73 -46
- package/test/browser/serve.mjs +7 -1
- package/test/browser/thumbnail-page.js +14 -0
- package/test/v3-fields.test.ts +5 -1
- package/test/v3-links.test.ts +12 -0
- package/test/v3-recipes.test.ts +47 -25
- package/things-factory.config.js +0 -1
- package/translations/en.json +38 -23
- package/translations/ja.json +38 -23
- package/translations/ko.json +38 -23
- package/translations/ms.json +38 -23
- package/translations/zh.json +38 -23
- package/client/pages/figure-recipe-page.ts +0 -338
- package/dist-client/pages/figure-recipe-page.d.ts +0 -41
- package/dist-client/pages/figure-recipe-page.js +0 -352
- package/dist-client/pages/figure-recipe-page.js.map +0 -1
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
import '@material/web/icon/icon.js'
|
|
2
|
-
import '../modeller/figure-v3-preview.js'
|
|
3
|
-
|
|
4
|
-
import { css, html, nothing } from 'lit'
|
|
5
|
-
import { customElement, state } from 'lit/decorators.js'
|
|
6
|
-
|
|
7
|
-
import { i18next, localize } from '@operato/i18n'
|
|
8
|
-
import { PageView } from '@operato/shell'
|
|
9
|
-
import { OxPrompt } from '@operato/popup'
|
|
10
|
-
import { ScrollbarStyles, WorkSurfacePageStyles } from '@operato/styles'
|
|
11
|
-
import { applyV3Recipe, parseV3Recipe, v3RecipeTestRoom } from '@hatiolab/figure-model'
|
|
12
|
-
import type { V3Asset, V3Recipe } from '@hatiolab/figure-model'
|
|
13
|
-
|
|
14
|
-
import { deleteFigureRecipe, fetchFigureRecipeRows, saveFigureRecipe, setFigureRecipeState, type FigureRecipeRow } from '../graphql/index.js'
|
|
15
|
-
import { paramRangeOf, recipeFieldOf, recipeIsOwn, recipesOf, recipeWord, subdomainOf } from '../modeller/v3-recipes.js'
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The recipes (ADR-0095): what each one puts in, shown put into a room at several sizes, and whose it is.
|
|
19
|
-
*
|
|
20
|
-
* A recipe of this domain's own can be released, taken back to draft, changed or deleted. A parent's -- the ones the
|
|
21
|
-
* system domain ships -- is copied in under its name to be changed, and the copy stands in for it. Figures a recipe was
|
|
22
|
-
* put into keep their parts whatever happens here.
|
|
23
|
-
*/
|
|
24
|
-
@customElement('figure-recipe-page')
|
|
25
|
-
export class FigureRecipePage extends localize(i18next)(PageView) {
|
|
26
|
-
static styles = [
|
|
27
|
-
WorkSurfacePageStyles,
|
|
28
|
-
ScrollbarStyles,
|
|
29
|
-
css`
|
|
30
|
-
:host {
|
|
31
|
-
display: grid;
|
|
32
|
-
grid-template-columns: minmax(220px, 280px) 1fr;
|
|
33
|
-
background-color: var(--md-sys-color-surface);
|
|
34
|
-
color: var(--md-sys-color-on-surface);
|
|
35
|
-
font-size: 0.85rem;
|
|
36
|
-
}
|
|
37
|
-
@container (max-width: 640px) {
|
|
38
|
-
:host {
|
|
39
|
-
grid-template-columns: 1fr;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
nav {
|
|
43
|
-
overflow: auto;
|
|
44
|
-
border-right: 1px solid var(--md-sys-color-outline-variant);
|
|
45
|
-
padding: 8px;
|
|
46
|
-
}
|
|
47
|
-
nav p[intro] {
|
|
48
|
-
margin: 4px 4px 10px;
|
|
49
|
-
color: var(--md-sys-color-on-surface-variant);
|
|
50
|
-
line-height: 1.5;
|
|
51
|
-
}
|
|
52
|
-
button[row] {
|
|
53
|
-
display: grid;
|
|
54
|
-
gap: 2px;
|
|
55
|
-
width: 100%;
|
|
56
|
-
padding: 8px 10px;
|
|
57
|
-
text-align: left;
|
|
58
|
-
font: inherit;
|
|
59
|
-
color: inherit;
|
|
60
|
-
background: none;
|
|
61
|
-
border: none;
|
|
62
|
-
border-radius: 8px;
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
}
|
|
65
|
-
button[row][on] {
|
|
66
|
-
background: var(--md-sys-color-secondary-container);
|
|
67
|
-
color: var(--md-sys-color-on-secondary-container);
|
|
68
|
-
}
|
|
69
|
-
button[row] small {
|
|
70
|
-
display: flex;
|
|
71
|
-
gap: 6px;
|
|
72
|
-
color: var(--md-sys-color-on-surface-variant);
|
|
73
|
-
}
|
|
74
|
-
span[chip] {
|
|
75
|
-
padding: 0 6px;
|
|
76
|
-
border-radius: 999em;
|
|
77
|
-
border: 1px solid var(--md-sys-color-outline-variant);
|
|
78
|
-
font-size: 0.7rem;
|
|
79
|
-
}
|
|
80
|
-
span[chip][draft] {
|
|
81
|
-
color: var(--md-sys-color-tertiary);
|
|
82
|
-
border-color: var(--md-sys-color-tertiary);
|
|
83
|
-
}
|
|
84
|
-
main {
|
|
85
|
-
overflow: auto;
|
|
86
|
-
padding: 12px 16px;
|
|
87
|
-
display: grid;
|
|
88
|
-
gap: 12px;
|
|
89
|
-
align-content: start;
|
|
90
|
-
}
|
|
91
|
-
main h2 {
|
|
92
|
-
margin: 0;
|
|
93
|
-
font-size: var(--ui-t-title, 16px);
|
|
94
|
-
}
|
|
95
|
-
main p {
|
|
96
|
-
margin: 0;
|
|
97
|
-
line-height: 1.5;
|
|
98
|
-
}
|
|
99
|
-
p[muted] {
|
|
100
|
-
color: var(--md-sys-color-on-surface-variant);
|
|
101
|
-
}
|
|
102
|
-
table {
|
|
103
|
-
border-collapse: collapse;
|
|
104
|
-
width: 100%;
|
|
105
|
-
max-width: 720px;
|
|
106
|
-
}
|
|
107
|
-
th,
|
|
108
|
-
td {
|
|
109
|
-
text-align: left;
|
|
110
|
-
padding: 4px 8px;
|
|
111
|
-
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
112
|
-
}
|
|
113
|
-
figure-v3-preview {
|
|
114
|
-
height: 420px;
|
|
115
|
-
border: 1px solid var(--md-sys-color-outline-variant);
|
|
116
|
-
border-radius: 8px;
|
|
117
|
-
overflow: hidden;
|
|
118
|
-
}
|
|
119
|
-
div[actions] {
|
|
120
|
-
display: flex;
|
|
121
|
-
flex-wrap: wrap;
|
|
122
|
-
gap: 8px;
|
|
123
|
-
}
|
|
124
|
-
div[actions] button {
|
|
125
|
-
display: inline-flex;
|
|
126
|
-
align-items: center;
|
|
127
|
-
gap: 4px;
|
|
128
|
-
padding: 6px 12px;
|
|
129
|
-
font: inherit;
|
|
130
|
-
color: var(--md-sys-color-on-surface);
|
|
131
|
-
background: none;
|
|
132
|
-
border: 1px solid var(--md-sys-color-outline-variant);
|
|
133
|
-
border-radius: 999em;
|
|
134
|
-
cursor: pointer;
|
|
135
|
-
}
|
|
136
|
-
div[actions] button[primary] {
|
|
137
|
-
color: var(--md-sys-color-on-primary);
|
|
138
|
-
background: var(--md-sys-color-primary);
|
|
139
|
-
border-color: transparent;
|
|
140
|
-
}
|
|
141
|
-
div[actions] button[danger] {
|
|
142
|
-
color: var(--md-sys-color-error);
|
|
143
|
-
border-color: var(--md-sys-color-error);
|
|
144
|
-
}
|
|
145
|
-
p[role='alert'] {
|
|
146
|
-
padding: 8px;
|
|
147
|
-
white-space: pre-wrap;
|
|
148
|
-
color: var(--md-sys-color-on-error-container);
|
|
149
|
-
background: var(--md-sys-color-error-container);
|
|
150
|
-
border-radius: 8px;
|
|
151
|
-
}
|
|
152
|
-
textarea {
|
|
153
|
-
width: 100%;
|
|
154
|
-
min-height: 320px;
|
|
155
|
-
font: 0.78rem/1.4 monospace;
|
|
156
|
-
box-sizing: border-box;
|
|
157
|
-
}
|
|
158
|
-
`
|
|
159
|
-
]
|
|
160
|
-
|
|
161
|
-
@state() private rows: FigureRecipeRow[] = []
|
|
162
|
-
@state() private chosen = ''
|
|
163
|
-
@state() private error = ''
|
|
164
|
-
@state() private editing = false
|
|
165
|
-
@state() private text = ''
|
|
166
|
-
|
|
167
|
-
get context() {
|
|
168
|
-
return { title: i18next.t('figure.title.recipes') }
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
async pageUpdated(_changes: Record<string, unknown>, _lifecycle: unknown, before: { active?: boolean }) {
|
|
172
|
-
if (this.active && !before?.active) await this.read()
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
private async read() {
|
|
176
|
-
try {
|
|
177
|
-
this.rows = await fetchFigureRecipeRows()
|
|
178
|
-
if (!this.rows.some(r => r.name === this.chosen)) this.chosen = this.rows[0]?.name ?? ''
|
|
179
|
-
this.error = ''
|
|
180
|
-
} catch (error) {
|
|
181
|
-
this.error = error instanceof Error ? error.message : String(error)
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
private get subdomain() {
|
|
186
|
-
return subdomainOf(location.pathname)
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
render() {
|
|
190
|
-
const language = i18next.language || 'en'
|
|
191
|
-
const recipes = recipesOf(this.rows)
|
|
192
|
-
const row = this.rows.find(r => r.name === this.chosen)
|
|
193
|
-
const recipe = recipes.find(r => r.name === this.chosen)
|
|
194
|
-
return html`
|
|
195
|
-
<nav>
|
|
196
|
-
<p intro>${i18next.t('figure.text.recipes-intro')}</p>
|
|
197
|
-
${this.rows.map(one => {
|
|
198
|
-
const r = recipes.find(x => x.name === one.name)
|
|
199
|
-
return html`<button row ?on=${one.name === this.chosen} @click=${() => this.choose(one.name)}>
|
|
200
|
-
<span>${r ? recipeWord(r.title, language) : one.name}</span>
|
|
201
|
-
<small>
|
|
202
|
-
<span>${one.name}</span>
|
|
203
|
-
${one.state === 'draft' ? html`<span chip draft>${i18next.t('figure.label.recipe-draft')}</span>` : nothing}
|
|
204
|
-
${recipeIsOwn(one, this.subdomain) ? nothing : html`<span chip>${i18next.t('figure.label.recipe-inherited')}</span>`}
|
|
205
|
-
</small>
|
|
206
|
-
</button>`
|
|
207
|
-
})}
|
|
208
|
-
</nav>
|
|
209
|
-
<main>
|
|
210
|
-
${this.error ? html`<p role="alert">${this.error}</p>` : nothing}
|
|
211
|
-
${row && recipe ? this.renderRecipe(row, recipe, language) : html`<p muted>${i18next.t('figure.text.recipes-empty')}</p>`}
|
|
212
|
-
</main>
|
|
213
|
-
`
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
private renderRecipe(row: FigureRecipeRow, recipe: V3Recipe, language: string) {
|
|
217
|
-
const own = recipeIsOwn(row, this.subdomain)
|
|
218
|
-
return html`
|
|
219
|
-
<h2>${recipeWord(recipe.title, language)}</h2>
|
|
220
|
-
<p>${recipeWord(recipe.description, language)}</p>
|
|
221
|
-
<p muted>
|
|
222
|
-
${i18next.t(recipe.target === 'part' ? 'figure.text.recipe-target-part' : 'figure.text.recipe-target-figure')} ·
|
|
223
|
-
${i18next.t(own ? 'figure.text.recipe-own' : 'figure.text.recipe-inherited', { domain: row.domain?.subdomain ?? '' })}
|
|
224
|
-
</p>
|
|
225
|
-
<table>
|
|
226
|
-
<thead>
|
|
227
|
-
<tr>
|
|
228
|
-
<th>${i18next.t('figure.label.recipe-param')}</th>
|
|
229
|
-
<th>${i18next.t('figure.label.recipe-default')}</th>
|
|
230
|
-
<th>${i18next.t('figure.label.recipe-range')}</th>
|
|
231
|
-
</tr>
|
|
232
|
-
</thead>
|
|
233
|
-
<tbody>
|
|
234
|
-
${recipe.params.map(
|
|
235
|
-
p => html`<tr>
|
|
236
|
-
<td>${recipeWord(p.label, language) || p.name}</td>
|
|
237
|
-
<td>${p.kind === 'flag' ? i18next.t(p.default ? 'figure.label.yes' : 'figure.label.no') : recipeFieldOf(p, p.default)}${p.kind === 'ratio' ? ' %' : ''}</td>
|
|
238
|
-
<td>${paramRangeOf(p)}</td>
|
|
239
|
-
</tr>`
|
|
240
|
-
)}
|
|
241
|
-
</tbody>
|
|
242
|
-
</table>
|
|
243
|
-
${this.renderPreview(recipe)}
|
|
244
|
-
<div actions>
|
|
245
|
-
${own
|
|
246
|
-
? html`${row.state === 'draft'
|
|
247
|
-
? html`<button primary @click=${() => this.setState(row.name, 'released')}>${i18next.t('figure.button.recipe-release')}</button>`
|
|
248
|
-
: html`<button @click=${() => this.setState(row.name, 'draft')}>${i18next.t('figure.button.recipe-to-draft')}</button>`}
|
|
249
|
-
<button danger @click=${() => this.deleteRecipe(row.name)}><md-icon>delete</md-icon>${i18next.t('figure.button.recipe-delete')}</button>`
|
|
250
|
-
: html`<button primary @click=${() => this.copyIn(row)}>${i18next.t('figure.button.recipe-copy-in')}</button>`}
|
|
251
|
-
<button @click=${() => this.edit(row)}><md-icon>data_object</md-icon>${i18next.t('figure.button.recipe-edit-source')}</button>
|
|
252
|
-
</div>
|
|
253
|
-
${this.editing
|
|
254
|
-
? html`<p muted>${i18next.t('figure.text.recipe-edit-source')}</p>
|
|
255
|
-
<textarea .value=${this.text} @input=${(e: Event) => (this.text = (e.target as HTMLTextAreaElement).value)}></textarea>
|
|
256
|
-
<div actions>
|
|
257
|
-
<button primary @click=${() => this.saveText(own ? row.state : 'draft')}>${i18next.t('figure.button.save')}</button>
|
|
258
|
-
<button @click=${() => (this.editing = false)}>${i18next.t('figure.button.close')}</button>
|
|
259
|
-
</div>`
|
|
260
|
-
: nothing}
|
|
261
|
-
`
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
/** The recipe put into the room it is checked in, with its defaults: what it makes, at several sizes. */
|
|
265
|
-
private renderPreview(recipe: V3Recipe) {
|
|
266
|
-
let asset: V3Asset
|
|
267
|
-
try {
|
|
268
|
-
const room = v3RecipeTestRoom()
|
|
269
|
-
asset = applyV3Recipe(room.asset, parseV3Recipe(recipe), recipe.target === 'part' ? { target: room.target } : {}).asset
|
|
270
|
-
} catch (error) {
|
|
271
|
-
return html`<p role="alert">${error instanceof Error ? error.message : String(error)}</p>`
|
|
272
|
-
}
|
|
273
|
-
return html`<p muted>${i18next.t('figure.text.recipe-preview')}</p>
|
|
274
|
-
<figure-v3-preview .asset=${asset} .context=${`recipe:${recipe.name}`}></figure-v3-preview>`
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
private choose(name: string) {
|
|
278
|
-
this.chosen = name
|
|
279
|
-
this.editing = false
|
|
280
|
-
this.error = ''
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
private edit(row: FigureRecipeRow) {
|
|
284
|
-
this.editing = !this.editing
|
|
285
|
-
try {
|
|
286
|
-
this.text = JSON.stringify(JSON.parse(row.source), null, 2)
|
|
287
|
-
} catch {
|
|
288
|
-
this.text = row.source
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
private async run(action: () => Promise<unknown>) {
|
|
293
|
-
try {
|
|
294
|
-
await action()
|
|
295
|
-
this.error = ''
|
|
296
|
-
await this.read()
|
|
297
|
-
} catch (error) {
|
|
298
|
-
this.error = error instanceof Error ? error.message : String(error)
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
private setState(name: string, state: 'draft' | 'released') {
|
|
303
|
-
return this.run(() => setFigureRecipeState(name, state))
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
/* The app's own prompt, as every operato screen asks -- not the browser's confirm box (user, 2026-09-24). */
|
|
307
|
-
private async deleteRecipe(name: string) {
|
|
308
|
-
const sure = await OxPrompt.open({
|
|
309
|
-
type: 'warning',
|
|
310
|
-
title: i18next.t('figure.button.recipe-delete'),
|
|
311
|
-
text: i18next.t('figure.text.recipe-delete-confirm', { name }),
|
|
312
|
-
confirmButton: { text: i18next.t('figure.button.recipe-delete') },
|
|
313
|
-
cancelButton: { text: i18next.t('figure.button.close') }
|
|
314
|
-
})
|
|
315
|
-
if (sure) await this.run(() => deleteFigureRecipe(name))
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
/** A parent's recipe copied into this domain as a draft, to be changed here. */
|
|
319
|
-
private copyIn(row: FigureRecipeRow) {
|
|
320
|
-
return this.run(() => saveFigureRecipe(row.source, 'draft'))
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/** The source as typed: checked by the server in the test room; a new name is a new recipe. */
|
|
324
|
-
private async saveText(state: 'draft' | 'released') {
|
|
325
|
-
let name = ''
|
|
326
|
-
try {
|
|
327
|
-
name = JSON.parse(this.text).name ?? ''
|
|
328
|
-
} catch (error) {
|
|
329
|
-
this.error = error instanceof Error ? error.message : String(error)
|
|
330
|
-
return
|
|
331
|
-
}
|
|
332
|
-
await this.run(async () => {
|
|
333
|
-
await saveFigureRecipe(this.text, state)
|
|
334
|
-
this.chosen = name
|
|
335
|
-
this.editing = false
|
|
336
|
-
})
|
|
337
|
-
}
|
|
338
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import '@material/web/icon/icon.js';
|
|
2
|
-
import '../modeller/figure-v3-preview.js';
|
|
3
|
-
import { PageView } from '@operato/shell';
|
|
4
|
-
declare const FigureRecipePage_base: (new (...args: any[]) => import("lit").LitElement) & typeof PageView;
|
|
5
|
-
/**
|
|
6
|
-
* The recipes (ADR-0095): what each one puts in, shown put into a room at several sizes, and whose it is.
|
|
7
|
-
*
|
|
8
|
-
* A recipe of this domain's own can be released, taken back to draft, changed or deleted. A parent's -- the ones the
|
|
9
|
-
* system domain ships -- is copied in under its name to be changed, and the copy stands in for it. Figures a recipe was
|
|
10
|
-
* put into keep their parts whatever happens here.
|
|
11
|
-
*/
|
|
12
|
-
export declare class FigureRecipePage extends FigureRecipePage_base {
|
|
13
|
-
static styles: import("lit").CSSResult[];
|
|
14
|
-
private rows;
|
|
15
|
-
private chosen;
|
|
16
|
-
private error;
|
|
17
|
-
private editing;
|
|
18
|
-
private text;
|
|
19
|
-
get context(): {
|
|
20
|
-
title: string;
|
|
21
|
-
};
|
|
22
|
-
pageUpdated(_changes: Record<string, unknown>, _lifecycle: unknown, before: {
|
|
23
|
-
active?: boolean;
|
|
24
|
-
}): Promise<void>;
|
|
25
|
-
private read;
|
|
26
|
-
private get subdomain();
|
|
27
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
28
|
-
private renderRecipe;
|
|
29
|
-
/** The recipe put into the room it is checked in, with its defaults: what it makes, at several sizes. */
|
|
30
|
-
private renderPreview;
|
|
31
|
-
private choose;
|
|
32
|
-
private edit;
|
|
33
|
-
private run;
|
|
34
|
-
private setState;
|
|
35
|
-
private deleteRecipe;
|
|
36
|
-
/** A parent's recipe copied into this domain as a draft, to be changed here. */
|
|
37
|
-
private copyIn;
|
|
38
|
-
/** The source as typed: checked by the server in the test room; a new name is a new recipe. */
|
|
39
|
-
private saveText;
|
|
40
|
-
}
|
|
41
|
-
export {};
|