@ferrlabs/ui-ng 1.66.3 → 1.68.0
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/README.md +33 -0
- package/fesm2022/ferrlabs-ui-ng-markdown.mjs +313 -15
- package/fesm2022/ferrlabs-ui-ng-markdown.mjs.map +1 -1
- package/fesm2022/ferrlabs-ui-ng.mjs +838 -495
- package/fesm2022/ferrlabs-ui-ng.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ferrlabs-ui-ng-markdown.d.ts +95 -4
- package/types/ferrlabs-ui-ng-markdown.d.ts.map +1 -1
- package/types/ferrlabs-ui-ng.d.ts +117 -3
- package/types/ferrlabs-ui-ng.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -145,6 +145,32 @@ Hover on the other options keeps using `--color-ink`, and idle options `--color-
|
|
|
145
145
|
thumb is placed (prerendered HTML that has not hydrated yet) the selected option carries the same
|
|
146
146
|
fill and border itself. In `forced-colors` mode the selection uses `Highlight` and `HighlightText`.
|
|
147
147
|
|
|
148
|
+
`--flr-seg-size` (option height, and width when `iconOnly`, default 30px) and `--flr-seg-pad` (track
|
|
149
|
+
padding, default 4px) resize the control. Inside a `flr-menu`, set `inMenu`: the group becomes
|
|
150
|
+
`role="group"` with `role="menuitemradio"` options, and Up and Down are left to the menu.
|
|
151
|
+
|
|
152
|
+
## User menu and theme
|
|
153
|
+
|
|
154
|
+
`flr-user-menu` takes `name`, `email`, `avatarSrc`, `accent`, `showName` and `items`
|
|
155
|
+
(`{ id?, label, href?, icon?, shortcut?, danger?, separatorAbove? }[]`), and emits `select`. `icon` is
|
|
156
|
+
SVG markup from `@ferrlabs/ui-foundation/icons` (any other string is shown as text) and `shortcut` is
|
|
157
|
+
a keyboard hint shown on the right. Items with `danger` are grouped at the bottom.
|
|
158
|
+
|
|
159
|
+
The panel always has a Theme row (System, Light, Dark) wired to `ThemeService`, so an app needs no
|
|
160
|
+
code for it. Pass `locales` (`{ code, label }[]`) and `locale` to get a Language row; it opens the
|
|
161
|
+
list in place and emits `localeChange` with the chosen code. The app applies the locale itself.
|
|
162
|
+
`labels` translates the built-in copy (`theme`, `system`, `light`, `dark`, `language`).
|
|
163
|
+
|
|
164
|
+
`ThemeService` (root) holds the preference as a signal (`preference()`, `resolved()`,
|
|
165
|
+
`setPreference()`), stores it in `localStorage` under `flr-theme`, sets `data-theme="dark"` on
|
|
166
|
+
`<html>` for dark and removes the attribute for light, and follows `prefers-color-scheme` while the
|
|
167
|
+
preference is `system`. It runs once something injects it. To avoid a light flash before Angular
|
|
168
|
+
starts, an app can set the attribute from the same key in an inline script in `index.html`.
|
|
169
|
+
|
|
170
|
+
To add a row of your own to a `flr-menu`, provide `MENU_FOCUSABLE` (`focus()`, `disabled()`) on it so
|
|
171
|
+
the arrow keys reach it. `flr-menu-item` takes `keepOpen` (the click does not close the menu) and
|
|
172
|
+
`checked` (renders a `menuitemradio`).
|
|
173
|
+
|
|
148
174
|
## Versioned docs (`@ferrlabs/ui-ng/docs`)
|
|
149
175
|
|
|
150
176
|
Brand-agnostic versioned-documentation layout, shared across product sites.
|
|
@@ -207,6 +233,13 @@ import {
|
|
|
207
233
|
|
|
208
234
|
- `flr-code`: inputs `code` (required) and `language`. Unknown or missing languages
|
|
209
235
|
render as escaped plain text. The header shows the language and a copy button.
|
|
236
|
+
Optional inputs: `maxLines` (collapses above N lines with a "Show N more lines"
|
|
237
|
+
button; copy always gives the full text), `wrap` and `wrapToggle` (wrap long
|
|
238
|
+
lines, per block; line numbers are hidden while wrapped), `lineNumbers`
|
|
239
|
+
(non selectable gutter), `format="ansi"` (SGR colors, bold and dim become token
|
|
240
|
+
classes; every other escape sequence is stripped), `variant="output"` (muted
|
|
241
|
+
header, no language label) and `maxHeight` (vertical scroll that follows the
|
|
242
|
+
end while the reader is at the bottom).
|
|
210
243
|
- `flr-markdown`: input `source`. Renders GFM (tables, task lists, strikethrough),
|
|
211
244
|
highlights fenced code, and passes the result through Angular's `[innerHTML]`
|
|
212
245
|
sanitizer, so scripts and event handlers in the source are stripped. Links get
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, forwardRef, inject, input, signal, viewChild } from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, forwardRef, inject, input, linkedSignal, signal, viewChild } from "@angular/core";
|
|
3
3
|
import { DOCUMENT } from "@angular/common";
|
|
4
4
|
import Prism from "prismjs";
|
|
5
5
|
import "prismjs/components/prism-clike";
|
|
@@ -18,6 +18,9 @@ import "prismjs/components/prism-diff";
|
|
|
18
18
|
import "prismjs/components/prism-markdown";
|
|
19
19
|
import "prismjs/components/prism-go";
|
|
20
20
|
import "prismjs/components/prism-docker";
|
|
21
|
+
import "prismjs/components/prism-ini";
|
|
22
|
+
import "prismjs/components/prism-log";
|
|
23
|
+
import "prismjs/components/prism-powershell";
|
|
21
24
|
import { Marked } from "marked";
|
|
22
25
|
import { markedHighlight } from "marked-highlight";
|
|
23
26
|
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
@@ -32,6 +35,76 @@ const ENTITIES = {
|
|
|
32
35
|
function escapeHtml(text) {
|
|
33
36
|
return text.replace(/[&<>"']/g, (char) => ENTITIES[char] ?? char);
|
|
34
37
|
}
|
|
38
|
+
const COLOR_CLASSES = [
|
|
39
|
+
"fg",
|
|
40
|
+
"deleted",
|
|
41
|
+
"inserted",
|
|
42
|
+
"number",
|
|
43
|
+
"function",
|
|
44
|
+
"keyword",
|
|
45
|
+
"string",
|
|
46
|
+
"comment"
|
|
47
|
+
];
|
|
48
|
+
const ESCAPE_SEQUENCE = /\u001b\[([0-9;:]*)m|\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b\n]*(?:\u0007|\u001b\\)?|\u001b[@-Z\\-_]?|[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g;
|
|
49
|
+
function applyCodes(state, params) {
|
|
50
|
+
const codes = params === "" ? [0] : params.split(/[;:]/).map((part) => Number(part || 0));
|
|
51
|
+
const next = { ...state };
|
|
52
|
+
for (let i = 0; i < codes.length; i++) {
|
|
53
|
+
const code = codes[i];
|
|
54
|
+
if (code === 0) {
|
|
55
|
+
next.fg = null;
|
|
56
|
+
next.bold = false;
|
|
57
|
+
next.dim = false;
|
|
58
|
+
} else if (code === 1) next.bold = true;
|
|
59
|
+
else if (code === 2) next.dim = true;
|
|
60
|
+
else if (code === 22) {
|
|
61
|
+
next.bold = false;
|
|
62
|
+
next.dim = false;
|
|
63
|
+
} else if (code === 39) next.fg = null;
|
|
64
|
+
else if (code >= 30 && code <= 37 || code >= 90 && code <= 97) {
|
|
65
|
+
const index = code % 10;
|
|
66
|
+
next.fg = code >= 90 && index === 0 ? "comment" : COLOR_CLASSES[index] ?? null;
|
|
67
|
+
} else if (code === 38 || code === 48) {
|
|
68
|
+
const kind = codes[i + 1];
|
|
69
|
+
i += kind === 5 ? 2 : kind === 2 ? 4 : 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return next;
|
|
73
|
+
}
|
|
74
|
+
function classesOf(state) {
|
|
75
|
+
const classes = [];
|
|
76
|
+
if (state.fg) classes.push(`flr-ansi-${state.fg}`);
|
|
77
|
+
if (state.bold) classes.push("flr-ansi-bold");
|
|
78
|
+
if (state.dim) classes.push("flr-ansi-dim");
|
|
79
|
+
return classes.join(" ");
|
|
80
|
+
}
|
|
81
|
+
function ansiToHtml(text) {
|
|
82
|
+
let state = {
|
|
83
|
+
fg: null,
|
|
84
|
+
bold: false,
|
|
85
|
+
dim: false
|
|
86
|
+
};
|
|
87
|
+
let out = "";
|
|
88
|
+
let last = 0;
|
|
89
|
+
const emit = (chunk) => {
|
|
90
|
+
if (!chunk) return;
|
|
91
|
+
const classes = classesOf(state);
|
|
92
|
+
const safe = escapeHtml(chunk);
|
|
93
|
+
out += classes ? `<span class="${classes}">${safe}</span>` : safe;
|
|
94
|
+
};
|
|
95
|
+
for (const match of text.matchAll(ESCAPE_SEQUENCE)) {
|
|
96
|
+
const char = match[0];
|
|
97
|
+
const index = match.index;
|
|
98
|
+
emit(text.slice(last, index));
|
|
99
|
+
last = index + char.length;
|
|
100
|
+
if (match[1] !== void 0) state = applyCodes(state, match[1]);
|
|
101
|
+
}
|
|
102
|
+
emit(text.slice(last));
|
|
103
|
+
return out;
|
|
104
|
+
}
|
|
105
|
+
function stripAnsi(text) {
|
|
106
|
+
return text.replace(ESCAPE_SEQUENCE, "");
|
|
107
|
+
}
|
|
35
108
|
const ALIASES = {
|
|
36
109
|
js: "javascript",
|
|
37
110
|
mjs: "javascript",
|
|
@@ -48,7 +121,10 @@ const ALIASES = {
|
|
|
48
121
|
xml: "markup",
|
|
49
122
|
svg: "markup",
|
|
50
123
|
golang: "go",
|
|
51
|
-
dockerfile: "docker"
|
|
124
|
+
dockerfile: "docker",
|
|
125
|
+
ps1: "powershell",
|
|
126
|
+
pwsh: "powershell",
|
|
127
|
+
conf: "ini"
|
|
52
128
|
};
|
|
53
129
|
function resolveLanguage(language) {
|
|
54
130
|
const name = language?.trim().toLowerCase();
|
|
@@ -68,20 +144,99 @@ function highlightCode(code, language) {
|
|
|
68
144
|
}
|
|
69
145
|
}
|
|
70
146
|
const COPIED_RESET_MS = 1600;
|
|
147
|
+
const FOLLOW_TOLERANCE_PX = 4;
|
|
148
|
+
function isAtBottom(el) {
|
|
149
|
+
return el.scrollHeight - el.scrollTop - el.clientHeight <= FOLLOW_TOLERANCE_PX;
|
|
150
|
+
}
|
|
151
|
+
const DEFAULT_LABELS$1 = {
|
|
152
|
+
copy: "Copy",
|
|
153
|
+
copied: "Copied",
|
|
154
|
+
copyCode: "Copy code",
|
|
155
|
+
copiedToClipboard: "Copied to clipboard",
|
|
156
|
+
output: "Output",
|
|
157
|
+
wrap: "Wrap",
|
|
158
|
+
outputRegion: "Tool output",
|
|
159
|
+
codeRegion: (language) => `${language} code`,
|
|
160
|
+
showMore: (count) => `Show ${count} more ${count === 1 ? "line" : "lines"}`,
|
|
161
|
+
showFewer: "Show fewer lines"
|
|
162
|
+
};
|
|
71
163
|
var CodeComponent = class CodeComponent {
|
|
72
164
|
constructor() {
|
|
73
165
|
this.code = input.required(...ngDevMode ? [{ debugName: "code" }] : /* istanbul ignore next */ []);
|
|
74
166
|
this.language = input(...ngDevMode ? [void 0, { debugName: "language" }] : /* istanbul ignore next */ []);
|
|
167
|
+
this.format = input("text", ...ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []);
|
|
168
|
+
this.variant = input("code", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
169
|
+
this.maxLines = input(void 0, ...ngDevMode ? [{ debugName: "maxLines" }] : /* istanbul ignore next */ []);
|
|
170
|
+
this.wrap = input(false, ...ngDevMode ? [{ debugName: "wrap" }] : /* istanbul ignore next */ []);
|
|
171
|
+
this.wrapToggle = input(false, ...ngDevMode ? [{ debugName: "wrapToggle" }] : /* istanbul ignore next */ []);
|
|
172
|
+
this.lineNumbers = input(false, ...ngDevMode ? [{ debugName: "lineNumbers" }] : /* istanbul ignore next */ []);
|
|
173
|
+
this.maxHeight = input(void 0, ...ngDevMode ? [{ debugName: "maxHeight" }] : /* istanbul ignore next */ []);
|
|
174
|
+
this.labels = input({}, ...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
|
|
75
175
|
this.document = inject(DOCUMENT);
|
|
76
|
-
this.
|
|
77
|
-
this.
|
|
176
|
+
this.followedLength = 0;
|
|
177
|
+
this.body = viewChild("body", ...ngDevMode ? [{ debugName: "body" }] : /* istanbul ignore next */ []);
|
|
178
|
+
this.resolvedLabels = computed(() => ({
|
|
179
|
+
...DEFAULT_LABELS$1,
|
|
180
|
+
...this.labels()
|
|
181
|
+
}), ...ngDevMode ? [{ debugName: "resolvedLabels" }] : /* istanbul ignore next */ []);
|
|
182
|
+
this.wrapped = linkedSignal(() => this.wrap(), ...ngDevMode ? [{ debugName: "wrapped" }] : /* istanbul ignore next */ []);
|
|
183
|
+
this.expanded = signal(false, ...ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []);
|
|
78
184
|
this.copied = signal(false, ...ngDevMode ? [{ debugName: "copied" }] : /* istanbul ignore next */ []);
|
|
185
|
+
this.plain = computed(() => this.format() === "ansi" ? stripAnsi(this.code()) : this.code(), ...ngDevMode ? [{ debugName: "plain" }] : /* istanbul ignore next */ []);
|
|
186
|
+
this.lines = computed(() => this.code().split("\n"), ...ngDevMode ? [{ debugName: "lines" }] : /* istanbul ignore next */ []);
|
|
187
|
+
this.totalLines = computed(() => this.lines().length, ...ngDevMode ? [{ debugName: "totalLines" }] : /* istanbul ignore next */ []);
|
|
188
|
+
this.limit = computed(() => {
|
|
189
|
+
const max = this.maxLines();
|
|
190
|
+
return max !== void 0 && Number.isFinite(max) && max >= 1 ? Math.floor(max) : void 0;
|
|
191
|
+
}, ...ngDevMode ? [{ debugName: "limit" }] : /* istanbul ignore next */ []);
|
|
192
|
+
this.hiddenLines = computed(() => {
|
|
193
|
+
const limit = this.limit();
|
|
194
|
+
return limit === void 0 ? 0 : Math.max(0, this.totalLines() - limit);
|
|
195
|
+
}, ...ngDevMode ? [{ debugName: "hiddenLines" }] : /* istanbul ignore next */ []);
|
|
196
|
+
this.collapsed = computed(() => this.hiddenLines() > 0 && !this.expanded(), ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
|
|
197
|
+
this.shownLines = computed(() => this.collapsed() ? this.limit() ?? this.totalLines() : this.totalLines(), ...ngDevMode ? [{ debugName: "shownLines" }] : /* istanbul ignore next */ []);
|
|
198
|
+
this.visibleCode = computed(() => this.collapsed() ? this.lines().slice(0, this.limit()).join("\n") : this.code(), ...ngDevMode ? [{ debugName: "visibleCode" }] : /* istanbul ignore next */ []);
|
|
199
|
+
this.html = computed(() => {
|
|
200
|
+
const code = this.visibleCode();
|
|
201
|
+
return this.format() === "ansi" ? ansiToHtml(code) : highlightCode(code, this.language());
|
|
202
|
+
}, ...ngDevMode ? [{ debugName: "html" }] : /* istanbul ignore next */ []);
|
|
203
|
+
this.gutter = computed(() => {
|
|
204
|
+
if (!this.lineNumbers()) return "";
|
|
205
|
+
return Array.from({ length: this.shownLines() }, (_, i) => String(i + 1)).join("\n");
|
|
206
|
+
}, ...ngDevMode ? [{ debugName: "gutter" }] : /* istanbul ignore next */ []);
|
|
207
|
+
this.gutterWidth = computed(() => `${String(this.shownLines()).length}ch`, ...ngDevMode ? [{ debugName: "gutterWidth" }] : /* istanbul ignore next */ []);
|
|
208
|
+
this.label = computed(() => this.language()?.trim() || "text", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
209
|
+
this.headerLabel = computed(() => this.variant() === "output" ? this.resolvedLabels().output : this.label(), ...ngDevMode ? [{ debugName: "headerLabel" }] : /* istanbul ignore next */ []);
|
|
210
|
+
this.regionName = computed(() => this.variant() === "output" ? this.resolvedLabels().outputRegion : this.resolvedLabels().codeRegion(this.label()), ...ngDevMode ? [{ debugName: "regionName" }] : /* istanbul ignore next */ []);
|
|
211
|
+
this.toggleLabel = computed(() => this.collapsed() ? this.resolvedLabels().showMore(this.hiddenLines()) : this.resolvedLabels().showFewer, ...ngDevMode ? [{ debugName: "toggleLabel" }] : /* istanbul ignore next */ []);
|
|
212
|
+
this.copyText = computed(() => this.copied() ? this.resolvedLabels().copied : this.resolvedLabels().copy, ...ngDevMode ? [{ debugName: "copyText" }] : /* istanbul ignore next */ []);
|
|
213
|
+
this.copyAriaLabel = computed(() => this.copied() ? this.resolvedLabels().copied : this.resolvedLabels().copyCode, ...ngDevMode ? [{ debugName: "copyAriaLabel" }] : /* istanbul ignore next */ []);
|
|
214
|
+
this.announcement = computed(() => this.copied() ? this.resolvedLabels().copiedToClipboard : "", ...ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []);
|
|
215
|
+
}
|
|
216
|
+
onScroll(event) {
|
|
217
|
+
this.following = isAtBottom(event.target);
|
|
218
|
+
}
|
|
219
|
+
ngAfterViewChecked() {
|
|
220
|
+
const el = this.body()?.nativeElement;
|
|
221
|
+
if (el && this.maxHeight()) this.syncScroll(el);
|
|
222
|
+
}
|
|
223
|
+
syncScroll(el) {
|
|
224
|
+
const length = this.code().length;
|
|
225
|
+
this.following ??= isAtBottom(el);
|
|
226
|
+
if (this.following && length > this.followedLength) el.scrollTop = el.scrollHeight;
|
|
227
|
+
this.followedLength = length;
|
|
228
|
+
}
|
|
229
|
+
toggleExpanded() {
|
|
230
|
+
this.expanded.update((value) => !value);
|
|
231
|
+
}
|
|
232
|
+
toggleWrap() {
|
|
233
|
+
this.wrapped.update((value) => !value);
|
|
79
234
|
}
|
|
80
235
|
async copy() {
|
|
81
236
|
const clipboard = this.document.defaultView?.navigator.clipboard;
|
|
82
237
|
if (!clipboard) return;
|
|
83
238
|
try {
|
|
84
|
-
await clipboard.writeText(this.
|
|
239
|
+
await clipboard.writeText(this.plain());
|
|
85
240
|
} catch {
|
|
86
241
|
return;
|
|
87
242
|
}
|
|
@@ -104,7 +259,7 @@ var CodeComponent = class CodeComponent {
|
|
|
104
259
|
}
|
|
105
260
|
static {
|
|
106
261
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
107
|
-
minVersion: "17.
|
|
262
|
+
minVersion: "17.0.0",
|
|
108
263
|
version: "22.3.0",
|
|
109
264
|
type: CodeComponent,
|
|
110
265
|
isStandalone: true,
|
|
@@ -123,12 +278,82 @@ var CodeComponent = class CodeComponent {
|
|
|
123
278
|
isSignal: true,
|
|
124
279
|
isRequired: false,
|
|
125
280
|
transformFunction: null
|
|
281
|
+
},
|
|
282
|
+
format: {
|
|
283
|
+
classPropertyName: "format",
|
|
284
|
+
publicName: "format",
|
|
285
|
+
isSignal: true,
|
|
286
|
+
isRequired: false,
|
|
287
|
+
transformFunction: null
|
|
288
|
+
},
|
|
289
|
+
variant: {
|
|
290
|
+
classPropertyName: "variant",
|
|
291
|
+
publicName: "variant",
|
|
292
|
+
isSignal: true,
|
|
293
|
+
isRequired: false,
|
|
294
|
+
transformFunction: null
|
|
295
|
+
},
|
|
296
|
+
maxLines: {
|
|
297
|
+
classPropertyName: "maxLines",
|
|
298
|
+
publicName: "maxLines",
|
|
299
|
+
isSignal: true,
|
|
300
|
+
isRequired: false,
|
|
301
|
+
transformFunction: null
|
|
302
|
+
},
|
|
303
|
+
wrap: {
|
|
304
|
+
classPropertyName: "wrap",
|
|
305
|
+
publicName: "wrap",
|
|
306
|
+
isSignal: true,
|
|
307
|
+
isRequired: false,
|
|
308
|
+
transformFunction: null
|
|
309
|
+
},
|
|
310
|
+
wrapToggle: {
|
|
311
|
+
classPropertyName: "wrapToggle",
|
|
312
|
+
publicName: "wrapToggle",
|
|
313
|
+
isSignal: true,
|
|
314
|
+
isRequired: false,
|
|
315
|
+
transformFunction: null
|
|
316
|
+
},
|
|
317
|
+
lineNumbers: {
|
|
318
|
+
classPropertyName: "lineNumbers",
|
|
319
|
+
publicName: "lineNumbers",
|
|
320
|
+
isSignal: true,
|
|
321
|
+
isRequired: false,
|
|
322
|
+
transformFunction: null
|
|
323
|
+
},
|
|
324
|
+
maxHeight: {
|
|
325
|
+
classPropertyName: "maxHeight",
|
|
326
|
+
publicName: "maxHeight",
|
|
327
|
+
isSignal: true,
|
|
328
|
+
isRequired: false,
|
|
329
|
+
transformFunction: null
|
|
330
|
+
},
|
|
331
|
+
labels: {
|
|
332
|
+
classPropertyName: "labels",
|
|
333
|
+
publicName: "labels",
|
|
334
|
+
isSignal: true,
|
|
335
|
+
isRequired: false,
|
|
336
|
+
transformFunction: null
|
|
126
337
|
}
|
|
127
338
|
},
|
|
128
|
-
host: {
|
|
339
|
+
host: {
|
|
340
|
+
properties: {
|
|
341
|
+
"class.flr-code--output": "variant() === \"output\"",
|
|
342
|
+
"class.flr-code--wrap": "wrapped()",
|
|
343
|
+
"class.flr-code--numbered": "lineNumbers()"
|
|
344
|
+
},
|
|
345
|
+
classAttribute: "flr-code"
|
|
346
|
+
},
|
|
347
|
+
viewQueries: [{
|
|
348
|
+
propertyName: "body",
|
|
349
|
+
first: true,
|
|
350
|
+
predicate: ["body"],
|
|
351
|
+
descendants: true,
|
|
352
|
+
isSignal: true
|
|
353
|
+
}],
|
|
129
354
|
ngImport: i0,
|
|
130
|
-
template: "<div class=\"flr-code__header\">\n <span class=\"flr-code__lang\">{{
|
|
131
|
-
styles: [".flr-code .token.comment,.flr-code .token.prolog,.flr-code .token.doctype,.flr-code .token.cdata,.flr-markdown .token.comment,.flr-markdown .token.prolog,.flr-markdown .token.doctype,.flr-markdown .token.cdata{color:var(--color-code-comment, #5d6b80);font-style:italic}.flr-code .token.keyword,.flr-code .token.atrule,.flr-code .token.boolean,.flr-code .token.important,.flr-code .token.selector,.flr-markdown .token.keyword,.flr-markdown .token.atrule,.flr-markdown .token.boolean,.flr-markdown .token.important,.flr-markdown .token.selector{color:var(--color-code-keyword, #6d28d9)}.flr-code .token.string,.flr-code .token.char,.flr-code .token.attr-value,.flr-code .token.regex,.flr-code .token.url,.flr-markdown .token.string,.flr-markdown .token.char,.flr-markdown .token.attr-value,.flr-markdown .token.regex,.flr-markdown .token.url{color:var(--color-code-string, #0f766e)}.flr-code .token.number,.flr-code .token.constant,.flr-code .token.symbol,.flr-markdown .token.number,.flr-markdown .token.constant,.flr-markdown .token.symbol{color:var(--color-code-number, #a04a08)}.flr-code .token.function,.flr-code .token.class-name,.flr-code .token.builtin,.flr-code .token.macro,.flr-markdown .token.function,.flr-markdown .token.class-name,.flr-markdown .token.builtin,.flr-markdown .token.macro{color:var(--color-code-function, #1d4ed8)}.flr-code .token.operator,.flr-code .token.entity,.flr-markdown .token.operator,.flr-markdown .token.entity{color:var(--color-code-operator, #475569)}.flr-code .token.punctuation,.flr-markdown .token.punctuation{color:var(--color-code-punctuation, #475569)}.flr-code .token.property,.flr-code .token.tag,.flr-code .token.attr-name,.flr-code .token.variable,.flr-markdown .token.property,.flr-markdown .token.tag,.flr-markdown .token.attr-name,.flr-markdown .token.variable{color:var(--color-code-property, #be185d)}.flr-code .token.inserted,.flr-markdown .token.inserted{color:var(--color-code-inserted, #166534)}.flr-code .token.deleted,.flr-markdown .token.deleted{color:var(--color-code-deleted, #b91c1c)}.flr-code .token.bold,.flr-code .token.title,.flr-markdown .token.bold,.flr-markdown .token.title{font-weight:700}.flr-code .token.italic,.flr-markdown .token.italic{font-style:italic}\n", ".flr-code{display:block;min-width:0;max-width:100%;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:var(--radius-card, 16px);corner-shape:var(--corner-shape, round);background:var(--color-code-bg, #f1f5f9);color:var(--color-code-fg, #1e293b);overflow:hidden}.flr-code__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 8px 6px 14px;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14))}.flr-code__lang{font-family:var(--font-mono, ui-monospace, monospace);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--color-ink-3, #5d6b80)}.flr-
|
|
355
|
+
template: "<div class=\"flr-code__header\">\n <span class=\"flr-code__lang\">{{ headerLabel() }}</span>\n <span class=\"flr-code__actions\">\n @if (wrapToggle()) {\n <button\n type=\"button\"\n class=\"flr-code__btn\"\n [attr.aria-pressed]=\"wrapped()\"\n (click)=\"toggleWrap()\"\n >\n {{ resolvedLabels().wrap }}\n </button>\n }\n <button\n type=\"button\"\n class=\"flr-code__btn\"\n [attr.aria-label]=\"copyAriaLabel()\"\n (click)=\"copy()\"\n >\n {{ copyText() }}\n </button>\n </span>\n</div>\n<div\n #body\n class=\"flr-code__body\"\n tabindex=\"0\"\n role=\"region\"\n [attr.aria-label]=\"regionName()\"\n [style.max-height]=\"maxHeight() ?? null\"\n (scroll)=\"onScroll($event)\"\n>\n @if (lineNumbers()) {\n <span class=\"flr-code__gutter\" aria-hidden=\"true\" [style.min-width]=\"gutterWidth()\">{{\n gutter()\n }}</span>\n }\n <pre class=\"flr-code__pre\"><code [innerHTML]=\"html()\"></code></pre>\n</div>\n@if (hiddenLines() > 0) {\n <button\n type=\"button\"\n class=\"flr-code__more\"\n [attr.aria-expanded]=\"!collapsed()\"\n (click)=\"toggleExpanded()\"\n >\n {{ toggleLabel() }}\n </button>\n}\n<span class=\"flr-code__status\" role=\"status\" aria-live=\"polite\">{{ announcement() }}</span>\n",
|
|
356
|
+
styles: [".flr-code .token.comment,.flr-code .token.prolog,.flr-code .token.doctype,.flr-code .token.cdata,.flr-markdown .token.comment,.flr-markdown .token.prolog,.flr-markdown .token.doctype,.flr-markdown .token.cdata{color:var(--color-code-comment, #5d6b80);font-style:italic}.flr-code .token.keyword,.flr-code .token.atrule,.flr-code .token.boolean,.flr-code .token.important,.flr-code .token.selector,.flr-markdown .token.keyword,.flr-markdown .token.atrule,.flr-markdown .token.boolean,.flr-markdown .token.important,.flr-markdown .token.selector{color:var(--color-code-keyword, #6d28d9)}.flr-code .token.string,.flr-code .token.char,.flr-code .token.attr-value,.flr-code .token.regex,.flr-code .token.url,.flr-markdown .token.string,.flr-markdown .token.char,.flr-markdown .token.attr-value,.flr-markdown .token.regex,.flr-markdown .token.url{color:var(--color-code-string, #0f766e)}.flr-code .token.number,.flr-code .token.constant,.flr-code .token.symbol,.flr-markdown .token.number,.flr-markdown .token.constant,.flr-markdown .token.symbol{color:var(--color-code-number, #a04a08)}.flr-code .token.function,.flr-code .token.class-name,.flr-code .token.builtin,.flr-code .token.macro,.flr-markdown .token.function,.flr-markdown .token.class-name,.flr-markdown .token.builtin,.flr-markdown .token.macro{color:var(--color-code-function, #1d4ed8)}.flr-code .token.operator,.flr-code .token.entity,.flr-markdown .token.operator,.flr-markdown .token.entity{color:var(--color-code-operator, #475569)}.flr-code .token.punctuation,.flr-markdown .token.punctuation{color:var(--color-code-punctuation, #475569)}.flr-code .token.property,.flr-code .token.tag,.flr-code .token.attr-name,.flr-code .token.variable,.flr-markdown .token.property,.flr-markdown .token.tag,.flr-markdown .token.attr-name,.flr-markdown .token.variable{color:var(--color-code-property, #be185d)}.flr-code .token.inserted,.flr-markdown .token.inserted{color:var(--color-code-inserted, #166534)}.flr-code .token.deleted,.flr-markdown .token.deleted{color:var(--color-code-deleted, #b91c1c)}.flr-code .token.bold,.flr-code .token.title,.flr-markdown .token.bold,.flr-markdown .token.title{font-weight:700}.flr-code .token.italic,.flr-markdown .token.italic{font-style:italic}.flr-code .flr-ansi-fg{color:var(--color-code-fg, #1e293b)}.flr-code .flr-ansi-deleted{color:var(--color-code-deleted, #b91c1c)}.flr-code .flr-ansi-inserted{color:var(--color-code-inserted, #166534)}.flr-code .flr-ansi-number{color:var(--color-code-number, #a04a08)}.flr-code .flr-ansi-function{color:var(--color-code-function, #1d4ed8)}.flr-code .flr-ansi-keyword{color:var(--color-code-keyword, #6d28d9)}.flr-code .flr-ansi-string{color:var(--color-code-string, #0f766e)}.flr-code .flr-ansi-comment{color:var(--color-code-comment, #5d6b80)}.flr-code .flr-ansi-bold{font-weight:700}.flr-code .flr-ansi-dim{color:var(--color-code-comment, #5d6b80)}@media(prefers-contrast:more){.flr-code .token.comment,.flr-code .flr-ansi-comment{color:var(--color-code-fg, #1e293b)}.flr-code .flr-ansi-dim{color:inherit}}\n", ".flr-code{position:relative;display:block;min-width:0;max-width:100%;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:var(--radius-card, 16px);corner-shape:var(--corner-shape, round);background:var(--color-code-bg, #f1f5f9);color:var(--color-code-fg, #1e293b);overflow:hidden}.flr-code__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 8px 6px 14px;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14))}.flr-code__lang{font-family:var(--font-mono, ui-monospace, monospace);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--color-ink-3, #5d6b80)}.flr-code__btn{font:inherit;font-family:var(--font-mono, ui-monospace, monospace);font-size:12px;line-height:1;padding:5px 9px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);background:transparent;color:var(--color-ink-2, #475569);cursor:pointer}.flr-code__btn:hover{background:var(--color-app-nav-active, rgba(30, 41, 59, .06));color:var(--color-ink, #1e293b)}.flr-code__btn:focus-visible,.flr-code__body:focus-visible{outline:2px solid var(--color-accent, #1e293b);outline-offset:-2px}.flr-code__body{display:flex;overflow:auto}.flr-code__actions{display:inline-flex;gap:6px}.flr-code__btn[aria-pressed=true]{background:var(--color-app-nav-active, rgba(30, 41, 59, .06));color:var(--color-ink, #1e293b)}.flr-code__gutter{position:sticky;left:0;flex:none;box-sizing:content-box;padding:14px 10px 14px 14px;background:var(--color-code-bg, #f1f5f9);color:var(--color-code-comment, #5d6b80);font-family:var(--font-mono, ui-monospace, monospace);font-size:13px;line-height:1.6;text-align:right;white-space:pre;user-select:none;-webkit-user-select:none;border-right:1px solid var(--color-rule, rgba(30, 41, 59, .14))}.flr-code--wrap .flr-code__gutter{display:none}.flr-code__pre{flex:1 0 auto;min-width:0;margin:0;padding:14px;font-family:var(--font-mono, ui-monospace, monospace);font-size:13px;line-height:1.6;tab-size:2}.flr-code__pre code{font:inherit;white-space:pre}.flr-code--wrap .flr-code__pre{flex:1 1 0}.flr-code--wrap .flr-code__pre code{white-space:pre-wrap;overflow-wrap:anywhere}.flr-code--output .flr-code__header{background:var(--color-app-nav-active, rgba(30, 41, 59, .06))}.flr-code--output .flr-code__lang{text-transform:none;color:var(--color-ink-2, #475569)}.flr-code__more{display:block;width:100%;font:inherit;font-family:var(--font-mono, ui-monospace, monospace);font-size:12px;padding:8px 14px;border:0;border-top:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:transparent;color:var(--color-ink-2, #475569);text-align:left;cursor:pointer}.flr-code__more:hover{background:var(--color-app-nav-active, rgba(30, 41, 59, .06));color:var(--color-ink, #1e293b)}.flr-code__more:focus-visible{outline:2px solid var(--color-accent, #1e293b);outline-offset:-2px}.flr-code__status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(forced-colors:active){.flr-code,.flr-code__header,.flr-code__gutter,.flr-code__more{border-color:CanvasText}.flr-code__btn[aria-pressed=true]{outline:2px solid Highlight}}\n"],
|
|
132
357
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
133
358
|
encapsulation: i0.ViewEncapsulation.None
|
|
134
359
|
});
|
|
@@ -145,9 +370,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
145
370
|
selector: "flr-code",
|
|
146
371
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
147
372
|
encapsulation: ViewEncapsulation.None,
|
|
148
|
-
host: {
|
|
149
|
-
|
|
150
|
-
|
|
373
|
+
host: {
|
|
374
|
+
class: "flr-code",
|
|
375
|
+
"[class.flr-code--output]": "variant() === \"output\"",
|
|
376
|
+
"[class.flr-code--wrap]": "wrapped()",
|
|
377
|
+
"[class.flr-code--numbered]": "lineNumbers()"
|
|
378
|
+
},
|
|
379
|
+
template: "<div class=\"flr-code__header\">\n <span class=\"flr-code__lang\">{{ headerLabel() }}</span>\n <span class=\"flr-code__actions\">\n @if (wrapToggle()) {\n <button\n type=\"button\"\n class=\"flr-code__btn\"\n [attr.aria-pressed]=\"wrapped()\"\n (click)=\"toggleWrap()\"\n >\n {{ resolvedLabels().wrap }}\n </button>\n }\n <button\n type=\"button\"\n class=\"flr-code__btn\"\n [attr.aria-label]=\"copyAriaLabel()\"\n (click)=\"copy()\"\n >\n {{ copyText() }}\n </button>\n </span>\n</div>\n<div\n #body\n class=\"flr-code__body\"\n tabindex=\"0\"\n role=\"region\"\n [attr.aria-label]=\"regionName()\"\n [style.max-height]=\"maxHeight() ?? null\"\n (scroll)=\"onScroll($event)\"\n>\n @if (lineNumbers()) {\n <span class=\"flr-code__gutter\" aria-hidden=\"true\" [style.min-width]=\"gutterWidth()\">{{\n gutter()\n }}</span>\n }\n <pre class=\"flr-code__pre\"><code [innerHTML]=\"html()\"></code></pre>\n</div>\n@if (hiddenLines() > 0) {\n <button\n type=\"button\"\n class=\"flr-code__more\"\n [attr.aria-expanded]=\"!collapsed()\"\n (click)=\"toggleExpanded()\"\n >\n {{ toggleLabel() }}\n </button>\n}\n<span class=\"flr-code__status\" role=\"status\" aria-live=\"polite\">{{ announcement() }}</span>\n",
|
|
380
|
+
styles: [".flr-code .token.comment,.flr-code .token.prolog,.flr-code .token.doctype,.flr-code .token.cdata,.flr-markdown .token.comment,.flr-markdown .token.prolog,.flr-markdown .token.doctype,.flr-markdown .token.cdata{color:var(--color-code-comment, #5d6b80);font-style:italic}.flr-code .token.keyword,.flr-code .token.atrule,.flr-code .token.boolean,.flr-code .token.important,.flr-code .token.selector,.flr-markdown .token.keyword,.flr-markdown .token.atrule,.flr-markdown .token.boolean,.flr-markdown .token.important,.flr-markdown .token.selector{color:var(--color-code-keyword, #6d28d9)}.flr-code .token.string,.flr-code .token.char,.flr-code .token.attr-value,.flr-code .token.regex,.flr-code .token.url,.flr-markdown .token.string,.flr-markdown .token.char,.flr-markdown .token.attr-value,.flr-markdown .token.regex,.flr-markdown .token.url{color:var(--color-code-string, #0f766e)}.flr-code .token.number,.flr-code .token.constant,.flr-code .token.symbol,.flr-markdown .token.number,.flr-markdown .token.constant,.flr-markdown .token.symbol{color:var(--color-code-number, #a04a08)}.flr-code .token.function,.flr-code .token.class-name,.flr-code .token.builtin,.flr-code .token.macro,.flr-markdown .token.function,.flr-markdown .token.class-name,.flr-markdown .token.builtin,.flr-markdown .token.macro{color:var(--color-code-function, #1d4ed8)}.flr-code .token.operator,.flr-code .token.entity,.flr-markdown .token.operator,.flr-markdown .token.entity{color:var(--color-code-operator, #475569)}.flr-code .token.punctuation,.flr-markdown .token.punctuation{color:var(--color-code-punctuation, #475569)}.flr-code .token.property,.flr-code .token.tag,.flr-code .token.attr-name,.flr-code .token.variable,.flr-markdown .token.property,.flr-markdown .token.tag,.flr-markdown .token.attr-name,.flr-markdown .token.variable{color:var(--color-code-property, #be185d)}.flr-code .token.inserted,.flr-markdown .token.inserted{color:var(--color-code-inserted, #166534)}.flr-code .token.deleted,.flr-markdown .token.deleted{color:var(--color-code-deleted, #b91c1c)}.flr-code .token.bold,.flr-code .token.title,.flr-markdown .token.bold,.flr-markdown .token.title{font-weight:700}.flr-code .token.italic,.flr-markdown .token.italic{font-style:italic}.flr-code .flr-ansi-fg{color:var(--color-code-fg, #1e293b)}.flr-code .flr-ansi-deleted{color:var(--color-code-deleted, #b91c1c)}.flr-code .flr-ansi-inserted{color:var(--color-code-inserted, #166534)}.flr-code .flr-ansi-number{color:var(--color-code-number, #a04a08)}.flr-code .flr-ansi-function{color:var(--color-code-function, #1d4ed8)}.flr-code .flr-ansi-keyword{color:var(--color-code-keyword, #6d28d9)}.flr-code .flr-ansi-string{color:var(--color-code-string, #0f766e)}.flr-code .flr-ansi-comment{color:var(--color-code-comment, #5d6b80)}.flr-code .flr-ansi-bold{font-weight:700}.flr-code .flr-ansi-dim{color:var(--color-code-comment, #5d6b80)}@media(prefers-contrast:more){.flr-code .token.comment,.flr-code .flr-ansi-comment{color:var(--color-code-fg, #1e293b)}.flr-code .flr-ansi-dim{color:inherit}}\n", ".flr-code{position:relative;display:block;min-width:0;max-width:100%;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:var(--radius-card, 16px);corner-shape:var(--corner-shape, round);background:var(--color-code-bg, #f1f5f9);color:var(--color-code-fg, #1e293b);overflow:hidden}.flr-code__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 8px 6px 14px;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14))}.flr-code__lang{font-family:var(--font-mono, ui-monospace, monospace);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--color-ink-3, #5d6b80)}.flr-code__btn{font:inherit;font-family:var(--font-mono, ui-monospace, monospace);font-size:12px;line-height:1;padding:5px 9px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);background:transparent;color:var(--color-ink-2, #475569);cursor:pointer}.flr-code__btn:hover{background:var(--color-app-nav-active, rgba(30, 41, 59, .06));color:var(--color-ink, #1e293b)}.flr-code__btn:focus-visible,.flr-code__body:focus-visible{outline:2px solid var(--color-accent, #1e293b);outline-offset:-2px}.flr-code__body{display:flex;overflow:auto}.flr-code__actions{display:inline-flex;gap:6px}.flr-code__btn[aria-pressed=true]{background:var(--color-app-nav-active, rgba(30, 41, 59, .06));color:var(--color-ink, #1e293b)}.flr-code__gutter{position:sticky;left:0;flex:none;box-sizing:content-box;padding:14px 10px 14px 14px;background:var(--color-code-bg, #f1f5f9);color:var(--color-code-comment, #5d6b80);font-family:var(--font-mono, ui-monospace, monospace);font-size:13px;line-height:1.6;text-align:right;white-space:pre;user-select:none;-webkit-user-select:none;border-right:1px solid var(--color-rule, rgba(30, 41, 59, .14))}.flr-code--wrap .flr-code__gutter{display:none}.flr-code__pre{flex:1 0 auto;min-width:0;margin:0;padding:14px;font-family:var(--font-mono, ui-monospace, monospace);font-size:13px;line-height:1.6;tab-size:2}.flr-code__pre code{font:inherit;white-space:pre}.flr-code--wrap .flr-code__pre{flex:1 1 0}.flr-code--wrap .flr-code__pre code{white-space:pre-wrap;overflow-wrap:anywhere}.flr-code--output .flr-code__header{background:var(--color-app-nav-active, rgba(30, 41, 59, .06))}.flr-code--output .flr-code__lang{text-transform:none;color:var(--color-ink-2, #475569)}.flr-code__more{display:block;width:100%;font:inherit;font-family:var(--font-mono, ui-monospace, monospace);font-size:12px;padding:8px 14px;border:0;border-top:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:transparent;color:var(--color-ink-2, #475569);text-align:left;cursor:pointer}.flr-code__more:hover{background:var(--color-app-nav-active, rgba(30, 41, 59, .06));color:var(--color-ink, #1e293b)}.flr-code__more:focus-visible{outline:2px solid var(--color-accent, #1e293b);outline-offset:-2px}.flr-code__status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(forced-colors:active){.flr-code,.flr-code__header,.flr-code__gutter,.flr-code__more{border-color:CanvasText}.flr-code__btn[aria-pressed=true]{outline:2px solid Highlight}}\n"]
|
|
151
381
|
}]
|
|
152
382
|
}],
|
|
153
383
|
propDecorators: {
|
|
@@ -166,6 +396,74 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
166
396
|
alias: "language",
|
|
167
397
|
required: false
|
|
168
398
|
}]
|
|
399
|
+
}],
|
|
400
|
+
format: [{
|
|
401
|
+
type: i0.Input,
|
|
402
|
+
args: [{
|
|
403
|
+
isSignal: true,
|
|
404
|
+
alias: "format",
|
|
405
|
+
required: false
|
|
406
|
+
}]
|
|
407
|
+
}],
|
|
408
|
+
variant: [{
|
|
409
|
+
type: i0.Input,
|
|
410
|
+
args: [{
|
|
411
|
+
isSignal: true,
|
|
412
|
+
alias: "variant",
|
|
413
|
+
required: false
|
|
414
|
+
}]
|
|
415
|
+
}],
|
|
416
|
+
maxLines: [{
|
|
417
|
+
type: i0.Input,
|
|
418
|
+
args: [{
|
|
419
|
+
isSignal: true,
|
|
420
|
+
alias: "maxLines",
|
|
421
|
+
required: false
|
|
422
|
+
}]
|
|
423
|
+
}],
|
|
424
|
+
wrap: [{
|
|
425
|
+
type: i0.Input,
|
|
426
|
+
args: [{
|
|
427
|
+
isSignal: true,
|
|
428
|
+
alias: "wrap",
|
|
429
|
+
required: false
|
|
430
|
+
}]
|
|
431
|
+
}],
|
|
432
|
+
wrapToggle: [{
|
|
433
|
+
type: i0.Input,
|
|
434
|
+
args: [{
|
|
435
|
+
isSignal: true,
|
|
436
|
+
alias: "wrapToggle",
|
|
437
|
+
required: false
|
|
438
|
+
}]
|
|
439
|
+
}],
|
|
440
|
+
lineNumbers: [{
|
|
441
|
+
type: i0.Input,
|
|
442
|
+
args: [{
|
|
443
|
+
isSignal: true,
|
|
444
|
+
alias: "lineNumbers",
|
|
445
|
+
required: false
|
|
446
|
+
}]
|
|
447
|
+
}],
|
|
448
|
+
maxHeight: [{
|
|
449
|
+
type: i0.Input,
|
|
450
|
+
args: [{
|
|
451
|
+
isSignal: true,
|
|
452
|
+
alias: "maxHeight",
|
|
453
|
+
required: false
|
|
454
|
+
}]
|
|
455
|
+
}],
|
|
456
|
+
labels: [{
|
|
457
|
+
type: i0.Input,
|
|
458
|
+
args: [{
|
|
459
|
+
isSignal: true,
|
|
460
|
+
alias: "labels",
|
|
461
|
+
required: false
|
|
462
|
+
}]
|
|
463
|
+
}],
|
|
464
|
+
body: [{
|
|
465
|
+
type: i0.ViewChild,
|
|
466
|
+
args: ["body", { isSignal: true }]
|
|
169
467
|
}]
|
|
170
468
|
}
|
|
171
469
|
});
|
|
@@ -223,7 +521,7 @@ var MarkdownComponent = class MarkdownComponent {
|
|
|
223
521
|
host: { classAttribute: "flr-markdown" },
|
|
224
522
|
ngImport: i0,
|
|
225
523
|
template: "<div class=\"flr-markdown__body\" [innerHTML]=\"html()\"></div>\n",
|
|
226
|
-
styles: [".flr-code .token.comment,.flr-code .token.prolog,.flr-code .token.doctype,.flr-code .token.cdata,.flr-markdown .token.comment,.flr-markdown .token.prolog,.flr-markdown .token.doctype,.flr-markdown .token.cdata{color:var(--color-code-comment, #5d6b80);font-style:italic}.flr-code .token.keyword,.flr-code .token.atrule,.flr-code .token.boolean,.flr-code .token.important,.flr-code .token.selector,.flr-markdown .token.keyword,.flr-markdown .token.atrule,.flr-markdown .token.boolean,.flr-markdown .token.important,.flr-markdown .token.selector{color:var(--color-code-keyword, #6d28d9)}.flr-code .token.string,.flr-code .token.char,.flr-code .token.attr-value,.flr-code .token.regex,.flr-code .token.url,.flr-markdown .token.string,.flr-markdown .token.char,.flr-markdown .token.attr-value,.flr-markdown .token.regex,.flr-markdown .token.url{color:var(--color-code-string, #0f766e)}.flr-code .token.number,.flr-code .token.constant,.flr-code .token.symbol,.flr-markdown .token.number,.flr-markdown .token.constant,.flr-markdown .token.symbol{color:var(--color-code-number, #a04a08)}.flr-code .token.function,.flr-code .token.class-name,.flr-code .token.builtin,.flr-code .token.macro,.flr-markdown .token.function,.flr-markdown .token.class-name,.flr-markdown .token.builtin,.flr-markdown .token.macro{color:var(--color-code-function, #1d4ed8)}.flr-code .token.operator,.flr-code .token.entity,.flr-markdown .token.operator,.flr-markdown .token.entity{color:var(--color-code-operator, #475569)}.flr-code .token.punctuation,.flr-markdown .token.punctuation{color:var(--color-code-punctuation, #475569)}.flr-code .token.property,.flr-code .token.tag,.flr-code .token.attr-name,.flr-code .token.variable,.flr-markdown .token.property,.flr-markdown .token.tag,.flr-markdown .token.attr-name,.flr-markdown .token.variable{color:var(--color-code-property, #be185d)}.flr-code .token.inserted,.flr-markdown .token.inserted{color:var(--color-code-inserted, #166534)}.flr-code .token.deleted,.flr-markdown .token.deleted{color:var(--color-code-deleted, #b91c1c)}.flr-code .token.bold,.flr-code .token.title,.flr-markdown .token.bold,.flr-markdown .token.title{font-weight:700}.flr-code .token.italic,.flr-markdown .token.italic{font-style:italic}\n", ".flr-markdown{display:block;min-width:0;max-width:100%;color:var(--color-ink-2, #475569);font-size:15px;line-height:1.7;overflow-wrap:anywhere}.flr-markdown__body>:first-child{margin-top:0}.flr-markdown__body>:last-child{margin-bottom:0}.flr-markdown h1,.flr-markdown h2,.flr-markdown h3,.flr-markdown h4,.flr-markdown h5,.flr-markdown h6{font-family:var(--font-display, Georgia, serif);color:var(--color-ink, #1e293b);line-height:1.2;letter-spacing:-.02em;margin:1.6em 0 .5em}.flr-markdown h1{font-size:1.9em}.flr-markdown h2{font-size:1.5em;padding-bottom:.3em;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14))}.flr-markdown h3{font-size:1.25em}.flr-markdown h4,.flr-markdown h5,.flr-markdown h6{font-size:1em}.flr-markdown p,.flr-markdown ul,.flr-markdown ol,.flr-markdown blockquote,.flr-markdown pre,.flr-markdown table{margin:0 0 1em}.flr-markdown ul,.flr-markdown ol{padding-left:1.5em}.flr-markdown li+li{margin-top:.25em}.flr-markdown li>ul,.flr-markdown li>ol{margin:.25em 0 0}.flr-markdown a{color:var(--color-accent, #1e293b);text-decoration:underline;text-underline-offset:2px}.flr-markdown strong{color:var(--color-ink, #1e293b)}.flr-markdown hr{border:0;border-top:1px solid var(--color-rule, rgba(30, 41, 59, .14));margin:1.5em 0}.flr-markdown img{max-width:100%;height:auto}.flr-markdown blockquote{padding:.25em 1em;border-left:3px solid var(--color-rule-strong, rgba(30, 41, 59, .28));color:var(--color-ink-3, #5d6b80)}.flr-markdown blockquote>:last-child{margin-bottom:0}.flr-markdown code{font-family:var(--font-mono, ui-monospace, monospace);font-size:.88em;padding:.15em .4em;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);background:var(--color-code-bg, #f1f5f9);color:var(--color-code-fg, #1e293b);border:1px solid var(--color-card-rule, rgba(30, 41, 59, .1))}.flr-markdown pre{max-width:100%;padding:14px;overflow-x:auto;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:var(--radius-card, 16px);corner-shape:var(--corner-shape, round);background:var(--color-code-bg, #f1f5f9);color:var(--color-code-fg, #1e293b);font-size:13px;line-height:1.6}.flr-markdown pre code{padding:0;border:0;background:transparent;font-size:inherit;white-space:pre;overflow-wrap:normal}.flr-markdown table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:.95em}.flr-markdown th,.flr-markdown td{padding:8px 12px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));text-align:left;vertical-align:top}.flr-markdown th{background:var(--color-paper-2, #f1f5f9);color:var(--color-ink, #1e293b);font-weight:600}.flr-markdown .flr-md-task{display:inline-block;width:1em;height:1em;margin-right:.5em;vertical-align:-.12em;border:1.5px solid var(--color-ink-3, #5d6b80);border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);text-align:center;font-size:.9em;line-height:1}.flr-markdown .flr-md-task--done{background:var(--color-accent, #1e293b);border-color:var(--color-accent, #1e293b)}.flr-markdown .flr-md-task--done:after{content:\"\";display:block;width:.3em;height:.55em;margin:.05em auto 0;border:solid var(--color-paper, #f8fafc);border-width:0 2px 2px 0;transform:rotate(45deg)}.flr-markdown .flr-md-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n"],
|
|
524
|
+
styles: [".flr-code .token.comment,.flr-code .token.prolog,.flr-code .token.doctype,.flr-code .token.cdata,.flr-markdown .token.comment,.flr-markdown .token.prolog,.flr-markdown .token.doctype,.flr-markdown .token.cdata{color:var(--color-code-comment, #5d6b80);font-style:italic}.flr-code .token.keyword,.flr-code .token.atrule,.flr-code .token.boolean,.flr-code .token.important,.flr-code .token.selector,.flr-markdown .token.keyword,.flr-markdown .token.atrule,.flr-markdown .token.boolean,.flr-markdown .token.important,.flr-markdown .token.selector{color:var(--color-code-keyword, #6d28d9)}.flr-code .token.string,.flr-code .token.char,.flr-code .token.attr-value,.flr-code .token.regex,.flr-code .token.url,.flr-markdown .token.string,.flr-markdown .token.char,.flr-markdown .token.attr-value,.flr-markdown .token.regex,.flr-markdown .token.url{color:var(--color-code-string, #0f766e)}.flr-code .token.number,.flr-code .token.constant,.flr-code .token.symbol,.flr-markdown .token.number,.flr-markdown .token.constant,.flr-markdown .token.symbol{color:var(--color-code-number, #a04a08)}.flr-code .token.function,.flr-code .token.class-name,.flr-code .token.builtin,.flr-code .token.macro,.flr-markdown .token.function,.flr-markdown .token.class-name,.flr-markdown .token.builtin,.flr-markdown .token.macro{color:var(--color-code-function, #1d4ed8)}.flr-code .token.operator,.flr-code .token.entity,.flr-markdown .token.operator,.flr-markdown .token.entity{color:var(--color-code-operator, #475569)}.flr-code .token.punctuation,.flr-markdown .token.punctuation{color:var(--color-code-punctuation, #475569)}.flr-code .token.property,.flr-code .token.tag,.flr-code .token.attr-name,.flr-code .token.variable,.flr-markdown .token.property,.flr-markdown .token.tag,.flr-markdown .token.attr-name,.flr-markdown .token.variable{color:var(--color-code-property, #be185d)}.flr-code .token.inserted,.flr-markdown .token.inserted{color:var(--color-code-inserted, #166534)}.flr-code .token.deleted,.flr-markdown .token.deleted{color:var(--color-code-deleted, #b91c1c)}.flr-code .token.bold,.flr-code .token.title,.flr-markdown .token.bold,.flr-markdown .token.title{font-weight:700}.flr-code .token.italic,.flr-markdown .token.italic{font-style:italic}.flr-code .flr-ansi-fg{color:var(--color-code-fg, #1e293b)}.flr-code .flr-ansi-deleted{color:var(--color-code-deleted, #b91c1c)}.flr-code .flr-ansi-inserted{color:var(--color-code-inserted, #166534)}.flr-code .flr-ansi-number{color:var(--color-code-number, #a04a08)}.flr-code .flr-ansi-function{color:var(--color-code-function, #1d4ed8)}.flr-code .flr-ansi-keyword{color:var(--color-code-keyword, #6d28d9)}.flr-code .flr-ansi-string{color:var(--color-code-string, #0f766e)}.flr-code .flr-ansi-comment{color:var(--color-code-comment, #5d6b80)}.flr-code .flr-ansi-bold{font-weight:700}.flr-code .flr-ansi-dim{color:var(--color-code-comment, #5d6b80)}@media(prefers-contrast:more){.flr-code .token.comment,.flr-code .flr-ansi-comment{color:var(--color-code-fg, #1e293b)}.flr-code .flr-ansi-dim{color:inherit}}\n", ".flr-markdown{display:block;min-width:0;max-width:100%;color:var(--color-ink-2, #475569);font-size:15px;line-height:1.7;overflow-wrap:anywhere}.flr-markdown__body>:first-child{margin-top:0}.flr-markdown__body>:last-child{margin-bottom:0}.flr-markdown h1,.flr-markdown h2,.flr-markdown h3,.flr-markdown h4,.flr-markdown h5,.flr-markdown h6{font-family:var(--font-display, Georgia, serif);color:var(--color-ink, #1e293b);line-height:1.2;letter-spacing:-.02em;margin:1.6em 0 .5em}.flr-markdown h1{font-size:1.9em}.flr-markdown h2{font-size:1.5em;padding-bottom:.3em;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14))}.flr-markdown h3{font-size:1.25em}.flr-markdown h4,.flr-markdown h5,.flr-markdown h6{font-size:1em}.flr-markdown p,.flr-markdown ul,.flr-markdown ol,.flr-markdown blockquote,.flr-markdown pre,.flr-markdown table{margin:0 0 1em}.flr-markdown ul,.flr-markdown ol{padding-left:1.5em}.flr-markdown li+li{margin-top:.25em}.flr-markdown li>ul,.flr-markdown li>ol{margin:.25em 0 0}.flr-markdown a{color:var(--color-accent, #1e293b);text-decoration:underline;text-underline-offset:2px}.flr-markdown strong{color:var(--color-ink, #1e293b)}.flr-markdown hr{border:0;border-top:1px solid var(--color-rule, rgba(30, 41, 59, .14));margin:1.5em 0}.flr-markdown img{max-width:100%;height:auto}.flr-markdown blockquote{padding:.25em 1em;border-left:3px solid var(--color-rule-strong, rgba(30, 41, 59, .28));color:var(--color-ink-3, #5d6b80)}.flr-markdown blockquote>:last-child{margin-bottom:0}.flr-markdown code{font-family:var(--font-mono, ui-monospace, monospace);font-size:.88em;padding:.15em .4em;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);background:var(--color-code-bg, #f1f5f9);color:var(--color-code-fg, #1e293b);border:1px solid var(--color-card-rule, rgba(30, 41, 59, .1))}.flr-markdown pre{max-width:100%;padding:14px;overflow-x:auto;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:var(--radius-card, 16px);corner-shape:var(--corner-shape, round);background:var(--color-code-bg, #f1f5f9);color:var(--color-code-fg, #1e293b);font-size:13px;line-height:1.6}.flr-markdown pre code{padding:0;border:0;background:transparent;font-size:inherit;white-space:pre;overflow-wrap:normal}.flr-markdown table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:.95em}.flr-markdown th,.flr-markdown td{padding:8px 12px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));text-align:left;vertical-align:top}.flr-markdown th{background:var(--color-paper-2, #f1f5f9);color:var(--color-ink, #1e293b);font-weight:600}.flr-markdown .flr-md-task{display:inline-block;width:1em;height:1em;margin-right:.5em;vertical-align:-.12em;border:1.5px solid var(--color-ink-3, #5d6b80);border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);text-align:center;font-size:.9em;line-height:1}.flr-markdown .flr-md-task--done{background:var(--color-accent, #1e293b);border-color:var(--color-accent, #1e293b)}.flr-markdown .flr-md-task--done:after{content:\"\";display:block;width:.3em;height:.55em;margin:.05em auto 0;border:solid var(--color-paper, #f8fafc);border-width:0 2px 2px 0;transform:rotate(45deg)}.flr-markdown .flr-md-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n"],
|
|
227
525
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
228
526
|
encapsulation: i0.ViewEncapsulation.None
|
|
229
527
|
});
|
|
@@ -242,7 +540,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
242
540
|
encapsulation: ViewEncapsulation.None,
|
|
243
541
|
host: { class: "flr-markdown" },
|
|
244
542
|
template: "<div class=\"flr-markdown__body\" [innerHTML]=\"html()\"></div>\n",
|
|
245
|
-
styles: [".flr-code .token.comment,.flr-code .token.prolog,.flr-code .token.doctype,.flr-code .token.cdata,.flr-markdown .token.comment,.flr-markdown .token.prolog,.flr-markdown .token.doctype,.flr-markdown .token.cdata{color:var(--color-code-comment, #5d6b80);font-style:italic}.flr-code .token.keyword,.flr-code .token.atrule,.flr-code .token.boolean,.flr-code .token.important,.flr-code .token.selector,.flr-markdown .token.keyword,.flr-markdown .token.atrule,.flr-markdown .token.boolean,.flr-markdown .token.important,.flr-markdown .token.selector{color:var(--color-code-keyword, #6d28d9)}.flr-code .token.string,.flr-code .token.char,.flr-code .token.attr-value,.flr-code .token.regex,.flr-code .token.url,.flr-markdown .token.string,.flr-markdown .token.char,.flr-markdown .token.attr-value,.flr-markdown .token.regex,.flr-markdown .token.url{color:var(--color-code-string, #0f766e)}.flr-code .token.number,.flr-code .token.constant,.flr-code .token.symbol,.flr-markdown .token.number,.flr-markdown .token.constant,.flr-markdown .token.symbol{color:var(--color-code-number, #a04a08)}.flr-code .token.function,.flr-code .token.class-name,.flr-code .token.builtin,.flr-code .token.macro,.flr-markdown .token.function,.flr-markdown .token.class-name,.flr-markdown .token.builtin,.flr-markdown .token.macro{color:var(--color-code-function, #1d4ed8)}.flr-code .token.operator,.flr-code .token.entity,.flr-markdown .token.operator,.flr-markdown .token.entity{color:var(--color-code-operator, #475569)}.flr-code .token.punctuation,.flr-markdown .token.punctuation{color:var(--color-code-punctuation, #475569)}.flr-code .token.property,.flr-code .token.tag,.flr-code .token.attr-name,.flr-code .token.variable,.flr-markdown .token.property,.flr-markdown .token.tag,.flr-markdown .token.attr-name,.flr-markdown .token.variable{color:var(--color-code-property, #be185d)}.flr-code .token.inserted,.flr-markdown .token.inserted{color:var(--color-code-inserted, #166534)}.flr-code .token.deleted,.flr-markdown .token.deleted{color:var(--color-code-deleted, #b91c1c)}.flr-code .token.bold,.flr-code .token.title,.flr-markdown .token.bold,.flr-markdown .token.title{font-weight:700}.flr-code .token.italic,.flr-markdown .token.italic{font-style:italic}\n", ".flr-markdown{display:block;min-width:0;max-width:100%;color:var(--color-ink-2, #475569);font-size:15px;line-height:1.7;overflow-wrap:anywhere}.flr-markdown__body>:first-child{margin-top:0}.flr-markdown__body>:last-child{margin-bottom:0}.flr-markdown h1,.flr-markdown h2,.flr-markdown h3,.flr-markdown h4,.flr-markdown h5,.flr-markdown h6{font-family:var(--font-display, Georgia, serif);color:var(--color-ink, #1e293b);line-height:1.2;letter-spacing:-.02em;margin:1.6em 0 .5em}.flr-markdown h1{font-size:1.9em}.flr-markdown h2{font-size:1.5em;padding-bottom:.3em;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14))}.flr-markdown h3{font-size:1.25em}.flr-markdown h4,.flr-markdown h5,.flr-markdown h6{font-size:1em}.flr-markdown p,.flr-markdown ul,.flr-markdown ol,.flr-markdown blockquote,.flr-markdown pre,.flr-markdown table{margin:0 0 1em}.flr-markdown ul,.flr-markdown ol{padding-left:1.5em}.flr-markdown li+li{margin-top:.25em}.flr-markdown li>ul,.flr-markdown li>ol{margin:.25em 0 0}.flr-markdown a{color:var(--color-accent, #1e293b);text-decoration:underline;text-underline-offset:2px}.flr-markdown strong{color:var(--color-ink, #1e293b)}.flr-markdown hr{border:0;border-top:1px solid var(--color-rule, rgba(30, 41, 59, .14));margin:1.5em 0}.flr-markdown img{max-width:100%;height:auto}.flr-markdown blockquote{padding:.25em 1em;border-left:3px solid var(--color-rule-strong, rgba(30, 41, 59, .28));color:var(--color-ink-3, #5d6b80)}.flr-markdown blockquote>:last-child{margin-bottom:0}.flr-markdown code{font-family:var(--font-mono, ui-monospace, monospace);font-size:.88em;padding:.15em .4em;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);background:var(--color-code-bg, #f1f5f9);color:var(--color-code-fg, #1e293b);border:1px solid var(--color-card-rule, rgba(30, 41, 59, .1))}.flr-markdown pre{max-width:100%;padding:14px;overflow-x:auto;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:var(--radius-card, 16px);corner-shape:var(--corner-shape, round);background:var(--color-code-bg, #f1f5f9);color:var(--color-code-fg, #1e293b);font-size:13px;line-height:1.6}.flr-markdown pre code{padding:0;border:0;background:transparent;font-size:inherit;white-space:pre;overflow-wrap:normal}.flr-markdown table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:.95em}.flr-markdown th,.flr-markdown td{padding:8px 12px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));text-align:left;vertical-align:top}.flr-markdown th{background:var(--color-paper-2, #f1f5f9);color:var(--color-ink, #1e293b);font-weight:600}.flr-markdown .flr-md-task{display:inline-block;width:1em;height:1em;margin-right:.5em;vertical-align:-.12em;border:1.5px solid var(--color-ink-3, #5d6b80);border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);text-align:center;font-size:.9em;line-height:1}.flr-markdown .flr-md-task--done{background:var(--color-accent, #1e293b);border-color:var(--color-accent, #1e293b)}.flr-markdown .flr-md-task--done:after{content:\"\";display:block;width:.3em;height:.55em;margin:.05em auto 0;border:solid var(--color-paper, #f8fafc);border-width:0 2px 2px 0;transform:rotate(45deg)}.flr-markdown .flr-md-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n"]
|
|
543
|
+
styles: [".flr-code .token.comment,.flr-code .token.prolog,.flr-code .token.doctype,.flr-code .token.cdata,.flr-markdown .token.comment,.flr-markdown .token.prolog,.flr-markdown .token.doctype,.flr-markdown .token.cdata{color:var(--color-code-comment, #5d6b80);font-style:italic}.flr-code .token.keyword,.flr-code .token.atrule,.flr-code .token.boolean,.flr-code .token.important,.flr-code .token.selector,.flr-markdown .token.keyword,.flr-markdown .token.atrule,.flr-markdown .token.boolean,.flr-markdown .token.important,.flr-markdown .token.selector{color:var(--color-code-keyword, #6d28d9)}.flr-code .token.string,.flr-code .token.char,.flr-code .token.attr-value,.flr-code .token.regex,.flr-code .token.url,.flr-markdown .token.string,.flr-markdown .token.char,.flr-markdown .token.attr-value,.flr-markdown .token.regex,.flr-markdown .token.url{color:var(--color-code-string, #0f766e)}.flr-code .token.number,.flr-code .token.constant,.flr-code .token.symbol,.flr-markdown .token.number,.flr-markdown .token.constant,.flr-markdown .token.symbol{color:var(--color-code-number, #a04a08)}.flr-code .token.function,.flr-code .token.class-name,.flr-code .token.builtin,.flr-code .token.macro,.flr-markdown .token.function,.flr-markdown .token.class-name,.flr-markdown .token.builtin,.flr-markdown .token.macro{color:var(--color-code-function, #1d4ed8)}.flr-code .token.operator,.flr-code .token.entity,.flr-markdown .token.operator,.flr-markdown .token.entity{color:var(--color-code-operator, #475569)}.flr-code .token.punctuation,.flr-markdown .token.punctuation{color:var(--color-code-punctuation, #475569)}.flr-code .token.property,.flr-code .token.tag,.flr-code .token.attr-name,.flr-code .token.variable,.flr-markdown .token.property,.flr-markdown .token.tag,.flr-markdown .token.attr-name,.flr-markdown .token.variable{color:var(--color-code-property, #be185d)}.flr-code .token.inserted,.flr-markdown .token.inserted{color:var(--color-code-inserted, #166534)}.flr-code .token.deleted,.flr-markdown .token.deleted{color:var(--color-code-deleted, #b91c1c)}.flr-code .token.bold,.flr-code .token.title,.flr-markdown .token.bold,.flr-markdown .token.title{font-weight:700}.flr-code .token.italic,.flr-markdown .token.italic{font-style:italic}.flr-code .flr-ansi-fg{color:var(--color-code-fg, #1e293b)}.flr-code .flr-ansi-deleted{color:var(--color-code-deleted, #b91c1c)}.flr-code .flr-ansi-inserted{color:var(--color-code-inserted, #166534)}.flr-code .flr-ansi-number{color:var(--color-code-number, #a04a08)}.flr-code .flr-ansi-function{color:var(--color-code-function, #1d4ed8)}.flr-code .flr-ansi-keyword{color:var(--color-code-keyword, #6d28d9)}.flr-code .flr-ansi-string{color:var(--color-code-string, #0f766e)}.flr-code .flr-ansi-comment{color:var(--color-code-comment, #5d6b80)}.flr-code .flr-ansi-bold{font-weight:700}.flr-code .flr-ansi-dim{color:var(--color-code-comment, #5d6b80)}@media(prefers-contrast:more){.flr-code .token.comment,.flr-code .flr-ansi-comment{color:var(--color-code-fg, #1e293b)}.flr-code .flr-ansi-dim{color:inherit}}\n", ".flr-markdown{display:block;min-width:0;max-width:100%;color:var(--color-ink-2, #475569);font-size:15px;line-height:1.7;overflow-wrap:anywhere}.flr-markdown__body>:first-child{margin-top:0}.flr-markdown__body>:last-child{margin-bottom:0}.flr-markdown h1,.flr-markdown h2,.flr-markdown h3,.flr-markdown h4,.flr-markdown h5,.flr-markdown h6{font-family:var(--font-display, Georgia, serif);color:var(--color-ink, #1e293b);line-height:1.2;letter-spacing:-.02em;margin:1.6em 0 .5em}.flr-markdown h1{font-size:1.9em}.flr-markdown h2{font-size:1.5em;padding-bottom:.3em;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14))}.flr-markdown h3{font-size:1.25em}.flr-markdown h4,.flr-markdown h5,.flr-markdown h6{font-size:1em}.flr-markdown p,.flr-markdown ul,.flr-markdown ol,.flr-markdown blockquote,.flr-markdown pre,.flr-markdown table{margin:0 0 1em}.flr-markdown ul,.flr-markdown ol{padding-left:1.5em}.flr-markdown li+li{margin-top:.25em}.flr-markdown li>ul,.flr-markdown li>ol{margin:.25em 0 0}.flr-markdown a{color:var(--color-accent, #1e293b);text-decoration:underline;text-underline-offset:2px}.flr-markdown strong{color:var(--color-ink, #1e293b)}.flr-markdown hr{border:0;border-top:1px solid var(--color-rule, rgba(30, 41, 59, .14));margin:1.5em 0}.flr-markdown img{max-width:100%;height:auto}.flr-markdown blockquote{padding:.25em 1em;border-left:3px solid var(--color-rule-strong, rgba(30, 41, 59, .28));color:var(--color-ink-3, #5d6b80)}.flr-markdown blockquote>:last-child{margin-bottom:0}.flr-markdown code{font-family:var(--font-mono, ui-monospace, monospace);font-size:.88em;padding:.15em .4em;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);background:var(--color-code-bg, #f1f5f9);color:var(--color-code-fg, #1e293b);border:1px solid var(--color-card-rule, rgba(30, 41, 59, .1))}.flr-markdown pre{max-width:100%;padding:14px;overflow-x:auto;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:var(--radius-card, 16px);corner-shape:var(--corner-shape, round);background:var(--color-code-bg, #f1f5f9);color:var(--color-code-fg, #1e293b);font-size:13px;line-height:1.6}.flr-markdown pre code{padding:0;border:0;background:transparent;font-size:inherit;white-space:pre;overflow-wrap:normal}.flr-markdown table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:.95em}.flr-markdown th,.flr-markdown td{padding:8px 12px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));text-align:left;vertical-align:top}.flr-markdown th{background:var(--color-paper-2, #f1f5f9);color:var(--color-ink, #1e293b);font-weight:600}.flr-markdown .flr-md-task{display:inline-block;width:1em;height:1em;margin-right:.5em;vertical-align:-.12em;border:1.5px solid var(--color-ink-3, #5d6b80);border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);text-align:center;font-size:.9em;line-height:1}.flr-markdown .flr-md-task--done{background:var(--color-accent, #1e293b);border-color:var(--color-accent, #1e293b)}.flr-markdown .flr-md-task--done:after{content:\"\";display:block;width:.3em;height:.55em;margin:.05em auto 0;border:solid var(--color-paper, #f8fafc);border-width:0 2px 2px 0;transform:rotate(45deg)}.flr-markdown .flr-md-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n"]
|
|
246
544
|
}]
|
|
247
545
|
}],
|
|
248
546
|
propDecorators: { source: [{
|
|
@@ -813,6 +1111,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
813
1111
|
}]
|
|
814
1112
|
}
|
|
815
1113
|
});
|
|
816
|
-
export { CodeComponent, MarkdownComponent, MarkdownEditorComponent };
|
|
1114
|
+
export { CodeComponent, MarkdownComponent, MarkdownEditorComponent, ansiToHtml, stripAnsi };
|
|
817
1115
|
|
|
818
1116
|
//# sourceMappingURL=ferrlabs-ui-ng-markdown.mjs.map
|