@lvl99dotcom/edaha-editor 0.3.0 → 0.4.1

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.
Files changed (37) hide show
  1. package/README.md +8 -1
  2. package/dist/client/assets/index--k7n6Qb8.css +1 -0
  3. package/dist/client/assets/{index-BwcJ6yrI.js → index-owkKXGfS.js} +140 -126
  4. package/dist/client/index.html +2 -2
  5. package/dist/client-lib/index.js +4037 -0
  6. package/dist/client-lib/style.css +1569 -0
  7. package/dist/editor/index.d.ts +24 -1
  8. package/dist/editor/index.js +15 -1
  9. package/dist/server/store/index.d.ts +2 -1
  10. package/dist/server/store/index.js +4 -3
  11. package/dist/types/client/components/define/index.d.ts +7 -0
  12. package/dist/types/client/components/edaha-article/index.d.ts +380 -0
  13. package/dist/types/client/components/edaha-article-browser/index.d.ts +162 -0
  14. package/dist/types/client/components/edaha-article-data-field/index.d.ts +121 -0
  15. package/dist/types/client/components/edaha-article-data-group/index.d.ts +40 -0
  16. package/dist/types/client/components/edaha-editor/index.d.ts +289 -0
  17. package/dist/types/client/components/edaha-embed-dialog/index.d.ts +84 -0
  18. package/dist/types/client/components/edaha-file-browser/index.d.ts +203 -0
  19. package/dist/types/client/components/edaha-markdown/index.d.ts +70 -0
  20. package/dist/types/client/components/edaha-metadata-field/index.d.ts +100 -0
  21. package/dist/types/client/components/edaha-richtext/index.d.ts +88 -0
  22. package/dist/types/client/components/edaha-toasts/index.d.ts +47 -0
  23. package/dist/types/client/dates/index.d.ts +14 -0
  24. package/dist/types/client/editorApi/index.d.ts +129 -0
  25. package/dist/types/client/embeds/index.d.ts +74 -0
  26. package/dist/types/client/icons/index.d.ts +60 -0
  27. package/dist/types/client/index.d.ts +3 -0
  28. package/dist/types/client/markdown/index.d.ts +163 -0
  29. package/dist/types/client/metadataForm/index.d.ts +77 -0
  30. package/dist/types/client/narrow/index.d.ts +21 -0
  31. package/dist/types/client/richtext/editor/index.d.ts +34 -0
  32. package/dist/types/client/richtext/extensions/index.d.ts +90 -0
  33. package/dist/types/client/sortTable/index.d.ts +24 -0
  34. package/dist/types/client/theme/index.d.ts +48 -0
  35. package/dist/types/server/types/index.d.ts +251 -0
  36. package/package.json +15 -10
  37. package/dist/client/assets/index-D2Y17Fm-.css +0 -1
@@ -0,0 +1,121 @@
1
+ import { LitElement } from "lit";
2
+ import "../edaha-markdown/index.ts";
3
+ import "../edaha-richtext/index.ts";
4
+ import type { ImageUploader } from "../edaha-richtext/index.ts";
5
+ import type { EmbedTools } from "../../embeds/index.ts";
6
+ import type { FileAddress } from "../../richtext/editor/index.ts";
7
+ import { type FileChooser } from "../edaha-file-browser/index.ts";
8
+ /** Kinds of field */
9
+ export type FieldType = "text" | "email" | "url" | "datetime-local" | "textarea" | "select" | "file" | "richtext" | "markdown";
10
+ /** An option of a select field */
11
+ export interface FieldOption {
12
+ value: string;
13
+ label: string;
14
+ }
15
+ /** Detail of the `field-change` event */
16
+ export interface FieldChange {
17
+ name: string;
18
+ value: string;
19
+ }
20
+ /**
21
+ * One article data field: a label and an input of the given type. Rendered in the light DOM. A `changed` field's label
22
+ * ends with an asterisk, to show it isn't saved yet.
23
+ *
24
+ * Fires `field-change` (detail: {@link FieldChange}) when the value changes, and for file fields `field-file`
25
+ * (detail: the chosen File) so the article can upload it and set the value to the saved file name. With `chooseFile`,
26
+ * a file field can also be set to an existing file.
27
+ *
28
+ * @example
29
+ * html`<edaha-article-data-field name="title" type="text" label="Title" .value=${title}></edaha-article-data-field>`
30
+ */
31
+ export declare class EdahaArticleDataField extends LitElement {
32
+ static properties: {
33
+ name: {};
34
+ type: {};
35
+ label: {};
36
+ placeholder: {};
37
+ accept: {};
38
+ rows: {
39
+ type: NumberConstructor;
40
+ };
41
+ value: {
42
+ attribute: boolean;
43
+ };
44
+ options: {
45
+ attribute: boolean;
46
+ };
47
+ previewUrl: {
48
+ attribute: boolean;
49
+ };
50
+ uploadImage: {
51
+ attribute: boolean;
52
+ };
53
+ chooseFile: {
54
+ attribute: boolean;
55
+ };
56
+ embedTools: {
57
+ attribute: boolean;
58
+ };
59
+ fileAddress: {
60
+ attribute: boolean;
61
+ };
62
+ preview: {
63
+ type: BooleanConstructor;
64
+ };
65
+ allowchange: {
66
+ type: BooleanConstructor;
67
+ };
68
+ allowclear: {
69
+ type: BooleanConstructor;
70
+ };
71
+ disabled: {
72
+ type: BooleanConstructor;
73
+ };
74
+ changed: {
75
+ type: BooleanConstructor;
76
+ };
77
+ };
78
+ name: string;
79
+ type: FieldType;
80
+ label: string;
81
+ placeholder: string;
82
+ /** File types a file field accepts */
83
+ accept: string;
84
+ /** Rows of a textarea */
85
+ rows: number;
86
+ value: string;
87
+ /** Options of a select field */
88
+ options: FieldOption[];
89
+ /** For file fields: the URL to preview the current file at */
90
+ previewUrl?: string | undefined;
91
+ /** For rich text and Markdown fields: uploads images inserted into the text */
92
+ uploadImage?: ImageUploader | undefined;
93
+ /** For file, rich text and Markdown fields: lets the user choose an existing file */
94
+ chooseFile?: FileChooser | undefined;
95
+ /** For rich text and Markdown fields: the site's embeds, the embed dialog, and embed blocks' frames */
96
+ embedTools?: EmbedTools | undefined;
97
+ /** For rich text: the address images in the body are shown from, for their `src` */
98
+ fileAddress?: FileAddress | undefined;
99
+ /** For file fields: show an image preview */
100
+ preview: boolean;
101
+ /** For file fields: allow choosing a new file when one is set */
102
+ allowchange: boolean;
103
+ /** Show a button that clears the value */
104
+ allowclear: boolean;
105
+ disabled: boolean;
106
+ /** Whether the value differs from the saved one (the label gets an asterisk) */
107
+ changed: boolean;
108
+ constructor();
109
+ protected createRenderRoot(): this;
110
+ /** Set the value and announce the change */
111
+ private change;
112
+ /** The input's id, linking it to its label */
113
+ private get inputId();
114
+ /** Render the input for the field's type */
115
+ private renderInput;
116
+ /** Let the user choose an existing file (of the kind the field accepts), and set the value to it */
117
+ private chooseExisting;
118
+ /** Render a file field: the current file (with a preview), a file chooser, and a button choosing an existing file */
119
+ private renderFile;
120
+ render(): import("lit").TemplateResult<1>;
121
+ }
@@ -0,0 +1,40 @@
1
+ import { LitElement } from "lit";
2
+ /**
3
+ * A group of article data fields (e.g. the author's name, email and homepage) shown as a fieldset. Its fields are
4
+ * its children. A `multiple` group has an "Add" button (fires `group-add`); an `allowclear` group has a "Clear"
5
+ * button (fires `group-clear`). The article handles both. A `changed` group's label ends with an asterisk, to show it
6
+ * isn't saved yet.
7
+ *
8
+ * @example
9
+ * html`<edaha-article-data-group label="Tags" multiple @group-add=${addTag}>...</edaha-article-data-group>`
10
+ */
11
+ export declare class EdahaArticleDataGroup extends LitElement {
12
+ static properties: {
13
+ name: {};
14
+ label: {};
15
+ multiple: {
16
+ type: BooleanConstructor;
17
+ };
18
+ allowclear: {
19
+ type: BooleanConstructor;
20
+ };
21
+ disabled: {
22
+ type: BooleanConstructor;
23
+ };
24
+ changed: {
25
+ type: BooleanConstructor;
26
+ };
27
+ };
28
+ static styles: import("lit").CSSResult;
29
+ name: string;
30
+ label: string;
31
+ multiple: boolean;
32
+ allowclear: boolean;
33
+ disabled: boolean;
34
+ /** Whether the group's values differ from the saved ones (the label gets an asterisk) */
35
+ changed: boolean;
36
+ constructor();
37
+ /** Fire a group event */
38
+ private fire;
39
+ render(): import("lit").TemplateResult<1>;
40
+ }
@@ -0,0 +1,289 @@
1
+ import { LitElement } from "lit";
2
+ import type { ArticlePage, ArticleSummary, ArticleTypeLabels, EditorArticle, MetadataInfo, RecentArticles, SiteInfo } from "../../../server/types/index.ts";
3
+ import type { FieldOption } from "../edaha-article-data-field/index.ts";
4
+ import { EditorApi, type ArticleLocation } from "../../editorApi/index.ts";
5
+ import "../edaha-article/index.ts";
6
+ import "../edaha-file-browser/index.ts";
7
+ import type { ArticleBrowserOptions } from "../edaha-article-browser/index.ts";
8
+ import "../edaha-toasts/index.ts";
9
+ /** The choices when leaving an article with unsaved changes */
10
+ export type UnsavedChoice = "save" | "discard" | "cancel";
11
+ /** The question asked before leaving an article with unsaved changes */
12
+ export declare const UNSAVED_DIALOG: {
13
+ readonly heading: "Save changes first?";
14
+ readonly message: "This article has changes that aren't saved.";
15
+ readonly choices: readonly [{
16
+ readonly value: "save";
17
+ readonly label: "Save";
18
+ }, {
19
+ readonly value: "discard";
20
+ readonly label: "Don't save";
21
+ }, {
22
+ readonly value: "cancel";
23
+ readonly label: "Cancel";
24
+ }];
25
+ };
26
+ /** How many of the most recently changed articles the welcome prompt shows */
27
+ export declare const WELCOME_COUNT = 6;
28
+ /** How many articles with metadata problems the welcome prompt shows */
29
+ export declare const ATTENTION_COUNT = 5;
30
+ /** How many matches the nav's title search shows (the article browser shows them all) */
31
+ export declare const NAV_SEARCH_COUNT = 10;
32
+ /** A type's most recently changed articles, as the nav shows them */
33
+ export interface ArticleGroup {
34
+ type: string;
35
+ /** The type's plural label (its name if it isn't configured) */
36
+ label: string;
37
+ articles: ArticleSummary[];
38
+ /** How many articles the type has in all */
39
+ total: number;
40
+ }
41
+ /**
42
+ * Label and order each type's most recently changed articles: configured types in the config file's order, then any
43
+ * other types alphabetically.
44
+ *
45
+ * @example
46
+ * groupRecent(recent, { news: { labelSingle: "News item", labelPlural: "News" } });
47
+ * // [{ type: "news", label: "News", articles: [...], total: 120 }, ...]
48
+ */
49
+ export declare const groupRecent: (recent: RecentArticles[], types: Record<string, ArticleTypeLabels>) => ArticleGroup[];
50
+ /**
51
+ * The article editor: a nav with each type's most recently changed articles (including drafts), a title search and the
52
+ * article browser for finding any article, the selected or new article's form, and toasts for success and error
53
+ * messages. Opening another article or starting a new one
54
+ * while the form has unsaved changes asks whether to save them first; closing or reloading the page gets the browser's
55
+ * own question. On narrow screens, and in focus mode (toggled from the article form), the editor has a compact layout:
56
+ * the article list opens over the page from a menu button, and the host element has the `compact` attribute (and
57
+ * `focus-mode` in focus mode) for the stylesheet.
58
+ *
59
+ * Apps that show the editor inside their own window can hide its "edaha.md" title (the `hide-title` attribute; Home
60
+ * still goes back to the welcome prompt) and its theme switcher (`hide-theme-switcher`; the device's light or dark
61
+ * setting is followed instead, so the app can set it).
62
+ *
63
+ * @example
64
+ * html`<edaha-editor></edaha-editor>`
65
+ * html`<edaha-editor hide-title hide-theme-switcher></edaha-editor>`
66
+ */
67
+ export declare class EdahaEditor extends LitElement {
68
+ static properties: {
69
+ api: {
70
+ attribute: boolean;
71
+ };
72
+ hideTitle: {
73
+ type: BooleanConstructor;
74
+ attribute: string;
75
+ };
76
+ hideThemeSwitcher: {
77
+ type: BooleanConstructor;
78
+ attribute: string;
79
+ };
80
+ recent: {
81
+ state: boolean;
82
+ };
83
+ types: {
84
+ state: boolean;
85
+ };
86
+ selected: {
87
+ state: boolean;
88
+ };
89
+ article: {
90
+ state: boolean;
91
+ };
92
+ editing: {
93
+ state: boolean;
94
+ };
95
+ formKey: {
96
+ state: boolean;
97
+ };
98
+ error: {
99
+ state: boolean;
100
+ };
101
+ searchText: {
102
+ state: boolean;
103
+ };
104
+ searchResult: {
105
+ state: boolean;
106
+ };
107
+ welcome: {
108
+ state: boolean;
109
+ };
110
+ metadata: {
111
+ state: boolean;
112
+ };
113
+ attention: {
114
+ state: boolean;
115
+ };
116
+ site: {
117
+ state: boolean;
118
+ };
119
+ unsaved: {
120
+ state: boolean;
121
+ };
122
+ navOpen: {
123
+ state: boolean;
124
+ };
125
+ narrow: {
126
+ state: boolean;
127
+ };
128
+ focusMode: {
129
+ state: boolean;
130
+ };
131
+ };
132
+ api: EditorApi;
133
+ /** Whether the "edaha.md" title is hidden (the site's name is still the page's heading for screen readers) */
134
+ hideTitle: boolean;
135
+ /** Whether the theme switcher is hidden, showing the device's light or dark theme instead of a chosen one */
136
+ hideThemeSwitcher: boolean;
137
+ /** Each type's most recently changed articles */
138
+ recent: RecentArticles[];
139
+ /** Article types from the config file */
140
+ types: Record<string, ArticleTypeLabels>;
141
+ /** The selected article's location */
142
+ selected?: ArticleLocation | undefined;
143
+ /** The loaded article (undefined when writing a new one) */
144
+ article?: EditorArticle | undefined;
145
+ /** Whether the form is shown */
146
+ editing: boolean;
147
+ /** Changes whenever an article is opened or started, so the form starts afresh */
148
+ formKey: number;
149
+ error: string;
150
+ /** The nav's title search */
151
+ searchText: string;
152
+ /** The nav's title search matches, while searching */
153
+ searchResult?: ArticlePage | undefined;
154
+ /** The most recently changed articles, for the welcome prompt */
155
+ welcome?: ArticlePage | undefined;
156
+ /** The custom metadata fields, and which each type uses */
157
+ metadata?: MetadataInfo | undefined;
158
+ /** Articles whose custom metadata has problems, for the welcome prompt */
159
+ attention?: ArticlePage | undefined;
160
+ /** The website's name and default author */
161
+ site?: SiteInfo | undefined;
162
+ /** The open "Save changes first?" question, with what to do with the answer */
163
+ unsaved?: ((choice: UnsavedChoice) => void) | undefined;
164
+ /** Whether the article list is open over the page (in the compact layout) */
165
+ navOpen: boolean;
166
+ /** Whether the screen is narrow */
167
+ narrow: boolean;
168
+ /** Whether focus mode hides the side panels on wide screens, as on narrow screens */
169
+ focusMode: boolean;
170
+ /** Whether the layout was compact when last updated */
171
+ private wasCompact;
172
+ /** Ask the browser before the page closes or reloads with unsaved changes (browsers word the question) */
173
+ private readonly onBeforeUnload;
174
+ /** Stops updating the theme switcher's label when the device's light or dark setting changes */
175
+ private stopWatchingTheme?;
176
+ /** Stops following whether the screen is narrow */
177
+ private stopWatchingNarrow?;
178
+ /** How long to wait after typing in the nav's search before searching, in ms (replaceable for tests) */
179
+ searchDelay: number;
180
+ /** The waiting search, if any */
181
+ private searchTimer?;
182
+ /** Counts searches, so only the latest one's matches are shown */
183
+ private searches;
184
+ /** Show toasts fired by the form */
185
+ private readonly onToast;
186
+ constructor();
187
+ /** Whether the layout is compact: on narrow screens, or in focus mode */
188
+ get compact(): boolean;
189
+ protected createRenderRoot(): this;
190
+ connectedCallback(): void;
191
+ /**
192
+ * Open the article the page's address names, e.g. "#news/hello" (as the file browser's locations link to).
193
+ */
194
+ private openFromAddress;
195
+ disconnectedCallback(): void;
196
+ /**
197
+ * Mark the host element for the stylesheet's compact layout and focus mode. Leaving the compact layout closes the
198
+ * article list, which is then always shown beside the page.
199
+ */
200
+ protected willUpdate(): void;
201
+ /**
202
+ * Open the article list over the page (in the compact layout), moving focus into it.
203
+ */
204
+ openNav(): Promise<void>;
205
+ /**
206
+ * Close the article list, moving focus back to the menu button if it was in the list.
207
+ */
208
+ closeNav(): void;
209
+ /** Let the user choose an existing file in the file browser, for the article form */
210
+ private readonly pickFile;
211
+ /** The article form, while shown */
212
+ private form;
213
+ /** Show a toast */
214
+ private toast;
215
+ /** Ask whether to save unsaved changes first, and resolve with the answer */
216
+ private askUnsaved;
217
+ /**
218
+ * Whether the open article has unsaved changes, e.g. for an app showing the editor to ask before closing it (see
219
+ * leaveForm).
220
+ */
221
+ get dirty(): boolean;
222
+ /**
223
+ * Whether the form can be left: it has no unsaved changes, or the user chose to save them (and they were saved) or
224
+ * not to. An app showing the editor calls it before closing the editor or showing another site's.
225
+ *
226
+ * @example
227
+ * if (await editor.leaveForm()) editor.remove();
228
+ */
229
+ leaveForm(): Promise<boolean>;
230
+ /**
231
+ * Reload the nav (each type's most recently changed articles, and the title search's matches) and the welcome
232
+ * prompt's articles.
233
+ */
234
+ refresh(): Promise<void>;
235
+ /**
236
+ * Search titles for the nav's search text, showing the first matches in place of the recent articles (none when
237
+ * the search is empty).
238
+ */
239
+ searchTitles(): Promise<void>;
240
+ /** Search once typing pauses */
241
+ private onSearchInput;
242
+ /** Open the file browser */
243
+ openFiles(): Promise<void>;
244
+ /**
245
+ * After a file is replaced or deleted, refresh the nav, and show the open article again if the change touched it
246
+ * (its folder's files or its references). An article with unsaved changes is left as it is, with a warning, as it
247
+ * still has the old references.
248
+ */
249
+ private onFilesChanged;
250
+ /**
251
+ * Open the article browser, e.g. with the nav's search or one type's articles.
252
+ */
253
+ openBrowser(options?: ArticleBrowserOptions): Promise<void>;
254
+ /**
255
+ * Load an article into the form, asking first whether to save unsaved changes in the open one.
256
+ */
257
+ open(location: ArticleLocation): Promise<void>;
258
+ /**
259
+ * The types to choose from: configured types, then any other types articles use.
260
+ */
261
+ typeOptions(): FieldOption[];
262
+ /**
263
+ * Close the open article and show the welcome prompt (refreshed), asking first whether to save unsaved changes.
264
+ */
265
+ showWelcome(): Promise<void>;
266
+ /** Start writing a new article, asking first whether to save unsaved changes in the open one */
267
+ create(): Promise<void>;
268
+ /** After saving, refresh the list and keep the saved article selected */
269
+ private onSaved;
270
+ /** After deleting, refresh the list and close the form */
271
+ private onDeleted;
272
+ /** Render the "Save changes first?" question, if open */
273
+ private renderUnsaved;
274
+ /**
275
+ * Render the welcome prompt, shown until an article is opened or started: links to a new article and to the article
276
+ * browser, then the most recently changed articles, with a link to the article browser when there are more.
277
+ */
278
+ private renderWelcome;
279
+ /**
280
+ * Render the articles whose custom metadata has problems (errors or warnings), each with its count and first problem,
281
+ * with a link to them all in the article browser when there are more.
282
+ */
283
+ private renderAttention;
284
+ /** Render the title search's matches, with a link to see them all in the article browser */
285
+ private renderSearchResult;
286
+ /** Render each type's most recently changed articles, with a link to all of a type's articles */
287
+ private renderGroups;
288
+ render(): import("lit").TemplateResult<1>;
289
+ }
@@ -0,0 +1,84 @@
1
+ import { LitElement } from "lit";
2
+ import type { EmbedInfo } from "../../../server/types/index.ts";
3
+ import { type EmbedValidator, type EmbedValue } from "../../embeds/index.ts";
4
+ import "../edaha-metadata-field/index.ts";
5
+ /** What the content's hint says when the embed doesn't say what its content is */
6
+ export declare const DEFAULT_EMBED_INFO = "Provide the embed's content, e.g. a URL or code";
7
+ /**
8
+ * The embed dialog: asks for the content of an embed of one kind (e.g. a YouTube video's URL, or a diagram's code),
9
+ * showing what the kind embeds, with its options' fields (if it has options) above the content. Its kind can't be
10
+ * changed here: each kind has its own toolbar button. Option fields show their defaults and show or hide by their
11
+ * conditions; the embed is saved with every shown option's value. With a validator, the content and options are
12
+ * checked before they are saved, and any problems are shown under them. Rendered in the light DOM.
13
+ *
14
+ * @example
15
+ * html`<edaha-embed-dialog></edaha-embed-dialog>`
16
+ * const value = await dialog.edit(youtube, { key: "youtube", content: "", options: {} }, true);
17
+ */
18
+ export declare class EdahaEmbedDialog extends LitElement {
19
+ static properties: {
20
+ embed: {
21
+ state: boolean;
22
+ };
23
+ content: {
24
+ state: boolean;
25
+ };
26
+ options: {
27
+ state: boolean;
28
+ };
29
+ changing: {
30
+ state: boolean;
31
+ };
32
+ errors: {
33
+ state: boolean;
34
+ };
35
+ checking: {
36
+ state: boolean;
37
+ };
38
+ };
39
+ /** The kind of embed whose content is asked for */
40
+ embed: EmbedInfo | undefined;
41
+ /** The embed's content */
42
+ content: string;
43
+ /** The embed's options as set (hidden options' values are kept until it is saved, and defaults aren't filled in) */
44
+ options: Record<string, unknown>;
45
+ /** Whether an existing embed is being changed (rather than a new one added) */
46
+ changing: boolean;
47
+ /** Why the content isn't valid, from the last check */
48
+ errors: string[];
49
+ /** Whether the content is being checked */
50
+ checking: boolean;
51
+ /** Resolves the open `edit` call */
52
+ private editing;
53
+ /** Checks the content of the open `edit` call */
54
+ private validator;
55
+ constructor();
56
+ protected createRenderRoot(): this;
57
+ /** The dialog, once rendered */
58
+ private get dialog();
59
+ /** The content's text box, once rendered */
60
+ private get textarea();
61
+ /**
62
+ * Open the dialog to add an embed of a kind (`adding`), or change an embed block's content and options. Resolves with
63
+ * the embed, or undefined if the dialog is closed without saving.
64
+ *
65
+ * @param validate - gives why an embed's content or options aren't valid (none when they are), checked before it is
66
+ * saved
67
+ * @example
68
+ * const value = await dialog.edit(youtube, block, false, ({ key, content, options }) => api.validateEmbed(key, content, options));
69
+ */
70
+ edit(embed: EmbedInfo, { content, options }: EmbedValue, adding: boolean, validate?: EmbedValidator): Promise<EmbedValue | undefined>;
71
+ /** Give the result to the open `edit` call, if there is one */
72
+ private finish;
73
+ /** The options' values with their defaults and without hidden ones, and which are hidden (see resolveFields) */
74
+ private resolvedOptions;
75
+ /** Close the dialog without saving */
76
+ close(): void;
77
+ /** Save the content and options, if there is content (or it is optional) and they are valid; otherwise show why not */
78
+ private save;
79
+ /** Change an option (or a value inside one), from its field */
80
+ private onOptionChange;
81
+ /** Render the embed's options' fields as a group, or nothing when it has none */
82
+ private renderOptionFields;
83
+ render(): import("lit").TemplateResult<1>;
84
+ }