@dskripchenko/laravel-admin 1.36.0 → 1.37.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/dist/.vite/manifest.json +2 -2
- package/dist/api/client.d.ts +6 -1
- package/dist/assets/{app-w16kkVES.css → app-BISopiIN.css} +1 -1
- package/dist/assets/app-BgiFZBxf.js +43 -0
- package/dist/components/fields/BuilderField.vue.d.ts +1 -1
- package/dist/components/fields/CascaderField.vue.d.ts +1 -1
- package/dist/components/fields/CodeField.vue.d.ts +2 -2
- package/dist/components/fields/ColorField.vue.d.ts +2 -2
- package/dist/components/fields/ComboboxField.vue.d.ts +1 -1
- package/dist/components/fields/DateField.vue.d.ts +9 -2
- package/dist/components/fields/DateRangeField.vue.d.ts +1 -1
- package/dist/components/fields/MarkdownField.vue.d.ts +1 -1
- package/dist/components/fields/MorphSwitcherField.vue.d.ts +1 -1
- package/dist/components/fields/NumberField.vue.d.ts +1 -1
- package/dist/components/fields/RadioField.vue.d.ts +1 -1
- package/dist/components/fields/RatingField.vue.d.ts +1 -1
- package/dist/components/fields/ResourcePickerField.vue.d.ts +1 -1
- package/dist/components/fields/SelectField.vue.d.ts +1 -1
- package/dist/components/fields/SliderField.vue.d.ts +1 -1
- package/dist/components/fields/SlugField.test.d.ts +1 -0
- package/dist/components/fields/SlugField.vue.d.ts +26 -0
- package/dist/components/fields/SwitchField.vue.d.ts +24 -0
- package/dist/components/fields/TagsField.vue.d.ts +1 -1
- package/dist/components/fields/TextAreaField.vue.d.ts +1 -1
- package/dist/components/fields/TextField.vue.d.ts +1 -1
- package/dist/components/fields/TimeField.vue.d.ts +1 -1
- package/dist/components/fields/TreeSelectField.vue.d.ts +1 -1
- package/dist/components/fields/dateTimeSwitch.test.d.ts +1 -0
- package/dist/components/fields/support/dateTime.d.ts +23 -0
- package/dist/components/fields/support/markdown.d.ts +51 -12
- package/dist/components/fields/support/markdown.test.d.ts +1 -0
- package/dist/components/fields/support/slugify.d.ts +1 -0
- package/dist/components/layouts/CodeLayout.vue.d.ts +17 -0
- package/dist/components/layouts/MarkdownCodeLayout.test.d.ts +1 -0
- package/dist/components/layouts/MarkdownLayout.vue.d.ts +21 -0
- package/dist/components/profile/ProfilePage.vue.d.ts +3 -3
- package/dist/components/render/index.d.ts +5 -0
- package/dist/components/shell/iconRegistry.test.d.ts +1 -0
- package/dist/index.cjs +22 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +15977 -15350
- package/dist/index.mjs.map +1 -1
- package/dist/router/guards.d.ts +8 -1
- package/dist/source-hash.txt +1 -1
- package/dist/stores/auth.d.ts +66 -3
- package/dist/stores/locale.d.ts +3 -1
- package/dist/stores/toast.d.ts +7 -0
- package/dist/style.css +1 -1
- package/dist/types/bootstrap.d.ts +23 -0
- package/package.json +1 -1
- package/dist/assets/app-Ce9-9CTP.js +0 -29
|
@@ -17,10 +17,10 @@ interface Props {
|
|
|
17
17
|
}
|
|
18
18
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
19
19
|
label: string | null;
|
|
20
|
+
blocks: Record<string, BlockDef>;
|
|
20
21
|
required: boolean;
|
|
21
22
|
reorderable: boolean;
|
|
22
23
|
help: string | null;
|
|
23
|
-
blocks: Record<string, BlockDef>;
|
|
24
24
|
maxBlocks: number | null;
|
|
25
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
export default _default;
|
|
@@ -19,8 +19,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
19
19
|
disabled: boolean;
|
|
20
20
|
placeholder: string | null;
|
|
21
21
|
tree: never[];
|
|
22
|
-
required: boolean;
|
|
23
22
|
readonly: boolean;
|
|
23
|
+
required: boolean;
|
|
24
24
|
help: string | null;
|
|
25
25
|
separator: string;
|
|
26
26
|
levels: Array<{
|
|
@@ -18,11 +18,11 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
18
18
|
height: number | string | null;
|
|
19
19
|
disabled: boolean;
|
|
20
20
|
placeholder: string | null;
|
|
21
|
-
required: boolean;
|
|
22
21
|
readonly: boolean;
|
|
22
|
+
required: boolean;
|
|
23
23
|
rows: number;
|
|
24
|
-
help: string | null;
|
|
25
24
|
language: string | null;
|
|
25
|
+
help: string | null;
|
|
26
26
|
lineNumbers: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
export default _default;
|
|
@@ -14,10 +14,10 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
14
14
|
label: string | null;
|
|
15
15
|
format: ColorFormat;
|
|
16
16
|
disabled: boolean;
|
|
17
|
-
required: boolean;
|
|
18
17
|
readonly: boolean;
|
|
19
|
-
help: string | null;
|
|
20
18
|
palette: string[] | null;
|
|
19
|
+
required: boolean;
|
|
20
|
+
help: string | null;
|
|
21
21
|
withAlpha: boolean;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
export default _default;
|
|
@@ -27,8 +27,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
27
27
|
label: string | null;
|
|
28
28
|
disabled: boolean;
|
|
29
29
|
placeholder: string | null;
|
|
30
|
-
required: boolean;
|
|
31
30
|
readonly: boolean;
|
|
31
|
+
required: boolean;
|
|
32
32
|
creatable: boolean;
|
|
33
33
|
clearable: boolean;
|
|
34
34
|
help: string | null;
|
|
@@ -5,21 +5,28 @@ interface Props {
|
|
|
5
5
|
required?: boolean;
|
|
6
6
|
/**
|
|
7
7
|
* The input's type: 'date' by default, or 'datetime-local' or 'time'.
|
|
8
|
-
*
|
|
9
|
-
* stays for compatibility with the older API.
|
|
8
|
+
* 'datetime-local' turns the time on, like `withTime`.
|
|
10
9
|
*/
|
|
11
10
|
inputType?: 'date' | 'datetime-local' | 'time';
|
|
12
11
|
min?: string | null;
|
|
13
12
|
max?: string | null;
|
|
14
13
|
disabled?: boolean;
|
|
14
|
+
readonly?: boolean;
|
|
15
|
+
/** DatePicker::withTime(): a time picker next to the date. */
|
|
16
|
+
withTime?: boolean;
|
|
17
|
+
/** The PHP format the value is stored in. */
|
|
18
|
+
format?: string | null;
|
|
15
19
|
}
|
|
16
20
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
17
21
|
label: string | null;
|
|
18
22
|
max: string | null;
|
|
19
23
|
min: string | null;
|
|
24
|
+
format: string | null;
|
|
20
25
|
disabled: boolean;
|
|
26
|
+
readonly: boolean;
|
|
21
27
|
required: boolean;
|
|
22
28
|
inputType: "date" | "datetime-local" | "time";
|
|
23
29
|
help: string | null;
|
|
30
|
+
withTime: boolean;
|
|
24
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
32
|
export default _default;
|
|
@@ -16,8 +16,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
16
16
|
min: string | null;
|
|
17
17
|
disabled: boolean;
|
|
18
18
|
placeholder: string | null;
|
|
19
|
-
required: boolean;
|
|
20
19
|
readonly: boolean;
|
|
20
|
+
required: boolean;
|
|
21
21
|
help: string | null;
|
|
22
22
|
presets: string[] | null;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -19,9 +19,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
19
19
|
height: number | string | null;
|
|
20
20
|
disabled: boolean;
|
|
21
21
|
placeholder: string | null;
|
|
22
|
+
readonly: boolean;
|
|
22
23
|
required: boolean;
|
|
23
24
|
toolbar: boolean;
|
|
24
|
-
readonly: boolean;
|
|
25
25
|
rows: number;
|
|
26
26
|
help: string | null;
|
|
27
27
|
preview: boolean;
|
|
@@ -15,8 +15,8 @@ interface Props {
|
|
|
15
15
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
16
16
|
label: string | null;
|
|
17
17
|
disabled: boolean;
|
|
18
|
-
required: boolean;
|
|
19
18
|
readonly: boolean;
|
|
19
|
+
required: boolean;
|
|
20
20
|
help: string | null;
|
|
21
21
|
morphTypes: Record<string, MorphType> | null;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -17,8 +17,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
17
17
|
disabled: boolean;
|
|
18
18
|
placeholder: string | null;
|
|
19
19
|
step: number | null;
|
|
20
|
-
required: boolean;
|
|
21
20
|
readonly: boolean;
|
|
21
|
+
required: boolean;
|
|
22
22
|
help: string | null;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
export default _default;
|
|
@@ -14,8 +14,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
14
14
|
inline: boolean;
|
|
15
15
|
label: string | null;
|
|
16
16
|
disabled: boolean;
|
|
17
|
-
required: boolean;
|
|
18
17
|
readonly: boolean;
|
|
18
|
+
required: boolean;
|
|
19
19
|
help: string | null;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
export default _default;
|
|
@@ -15,8 +15,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
15
15
|
label: string | null;
|
|
16
16
|
disabled: boolean;
|
|
17
17
|
count: number;
|
|
18
|
-
required: boolean;
|
|
19
18
|
readonly: boolean;
|
|
19
|
+
required: boolean;
|
|
20
20
|
help: string | null;
|
|
21
21
|
half: boolean;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -19,11 +19,11 @@ interface Props {
|
|
|
19
19
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
20
20
|
label: string | null;
|
|
21
21
|
disabled: boolean;
|
|
22
|
+
readonly: boolean;
|
|
22
23
|
filters: Record<string, unknown> | unknown[];
|
|
23
24
|
layout: "grid" | "list" | null;
|
|
24
25
|
upload: PickerUpload | null;
|
|
25
26
|
required: boolean;
|
|
26
|
-
readonly: boolean;
|
|
27
27
|
multiple: boolean;
|
|
28
28
|
perPage: number;
|
|
29
29
|
help: string | null;
|
|
@@ -26,9 +26,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
26
26
|
label: string | null;
|
|
27
27
|
disabled: boolean;
|
|
28
28
|
placeholder: string | null;
|
|
29
|
+
readonly: boolean;
|
|
29
30
|
searchable: boolean;
|
|
30
31
|
required: boolean;
|
|
31
|
-
readonly: boolean;
|
|
32
32
|
clearable: boolean;
|
|
33
33
|
help: string | null;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -16,8 +16,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
16
16
|
min: number;
|
|
17
17
|
disabled: boolean;
|
|
18
18
|
step: number;
|
|
19
|
-
required: boolean;
|
|
20
19
|
readonly: boolean;
|
|
20
|
+
required: boolean;
|
|
21
21
|
help: string | null;
|
|
22
22
|
marks: Record<string, string> | null;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
name: string;
|
|
3
|
+
label?: string | null;
|
|
4
|
+
help?: string | null;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
placeholder?: string | null;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
/** The source field's name. */
|
|
10
|
+
from?: string | null;
|
|
11
|
+
separator?: string | null;
|
|
12
|
+
/** Slug::reactive(): follow every change of the source; true by default. */
|
|
13
|
+
follow?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
16
|
+
label: string | null;
|
|
17
|
+
from: string | null;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
placeholder: string | null;
|
|
20
|
+
readonly: boolean;
|
|
21
|
+
required: boolean;
|
|
22
|
+
help: string | null;
|
|
23
|
+
separator: string | null;
|
|
24
|
+
follow: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
name: string;
|
|
3
|
+
label?: string | null;
|
|
4
|
+
help?: string | null;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
inlineLabel?: string | null;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
onLabel?: string | null;
|
|
10
|
+
offLabel?: string | null;
|
|
11
|
+
size?: 'sm' | 'md' | 'lg' | null;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
+
size: "sm" | "md" | "lg" | null;
|
|
15
|
+
label: string | null;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
readonly: boolean;
|
|
18
|
+
required: boolean;
|
|
19
|
+
help: string | null;
|
|
20
|
+
inlineLabel: string | null;
|
|
21
|
+
onLabel: string | null;
|
|
22
|
+
offLabel: string | null;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
export default _default;
|
|
@@ -30,9 +30,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
30
30
|
placeholder: string | null;
|
|
31
31
|
required: boolean;
|
|
32
32
|
help: string | null;
|
|
33
|
+
separator: string;
|
|
33
34
|
suggestions: string[];
|
|
34
35
|
suggestionsByGroup: SuggestionGroup[];
|
|
35
36
|
maxItems: number;
|
|
36
|
-
separator: string;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
export default _default;
|
|
@@ -12,8 +12,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
12
12
|
label: string | null;
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
placeholder: string | null;
|
|
15
|
-
required: boolean;
|
|
16
15
|
readonly: boolean;
|
|
16
|
+
required: boolean;
|
|
17
17
|
rows: number;
|
|
18
18
|
help: string | null;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -13,9 +13,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
13
13
|
label: string | null;
|
|
14
14
|
disabled: boolean;
|
|
15
15
|
placeholder: string | null;
|
|
16
|
+
readonly: boolean;
|
|
16
17
|
required: boolean;
|
|
17
18
|
autocomplete: string | null;
|
|
18
|
-
readonly: boolean;
|
|
19
19
|
inputType: "text" | "email" | "url" | "password" | "tel" | "search";
|
|
20
20
|
help: string | null;
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -18,8 +18,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
18
18
|
disabled: boolean;
|
|
19
19
|
placeholder: string | null;
|
|
20
20
|
step: number | null;
|
|
21
|
-
required: boolean;
|
|
22
21
|
readonly: boolean;
|
|
22
|
+
required: boolean;
|
|
23
23
|
help: string | null;
|
|
24
24
|
withSeconds: boolean;
|
|
25
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -16,8 +16,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
16
16
|
disabled: boolean;
|
|
17
17
|
placeholder: string | null;
|
|
18
18
|
tree: never[];
|
|
19
|
-
required: boolean;
|
|
20
19
|
readonly: boolean;
|
|
20
|
+
required: boolean;
|
|
21
21
|
checkable: boolean;
|
|
22
22
|
multiple: boolean;
|
|
23
23
|
help: string | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The value of a DatePicker with `withTime()`: a date and a time held in one
|
|
3
|
+
* string the way the backend stores it — 'Y-m-d H:i:s' by default.
|
|
4
|
+
*/
|
|
5
|
+
export interface DateTimeParts {
|
|
6
|
+
date: string | null;
|
|
7
|
+
time: string | null;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Splits a stored value into its date ('YYYY-MM-DD') and time ('HH:mm' or
|
|
11
|
+
* 'HH:mm:ss'). An ISO string a model cast produced ('2026-05-01T10:30:00.000000Z')
|
|
12
|
+
* is read as written, with no time-zone shift.
|
|
13
|
+
*/
|
|
14
|
+
export declare function splitDateTime(value: unknown): DateTimeParts;
|
|
15
|
+
/** Whether a PHP date format carries seconds ('H:i:s'). */
|
|
16
|
+
export declare function formatHasSeconds(format: string | null | undefined): boolean;
|
|
17
|
+
/** The separator between the date and the time a PHP format uses: 'T' or a space. */
|
|
18
|
+
export declare function formatSeparator(format: string | null | undefined): string;
|
|
19
|
+
/**
|
|
20
|
+
* Joins a date and a time into the stored value; a missing time is midnight,
|
|
21
|
+
* a missing date is no value at all.
|
|
22
|
+
*/
|
|
23
|
+
export declare function joinDateTime(date: string | null, time: string | null, format: string | null | undefined): string | null;
|
|
@@ -1,14 +1,53 @@
|
|
|
1
|
+
export declare function escapeHtml(text: string): string;
|
|
2
|
+
/** A heading met while rendering, for a table of contents. */
|
|
3
|
+
export interface MarkdownHeading {
|
|
4
|
+
level: number;
|
|
5
|
+
/** The heading's plain text. */
|
|
6
|
+
text: string;
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
/** Turns heading text into a unique anchor id; shared across the chunks of one document. */
|
|
10
|
+
export type Slugger = (text: string) => string;
|
|
11
|
+
export declare function createSlugger(): Slugger;
|
|
12
|
+
export interface MarkdownOptions {
|
|
13
|
+
/** Gives the headings anchor ids. */
|
|
14
|
+
slugger?: Slugger | null;
|
|
15
|
+
/** Called for every heading, in document order. */
|
|
16
|
+
onHeading?: (heading: MarkdownHeading) => void;
|
|
17
|
+
/**
|
|
18
|
+
* The base relative links resolve against, the way a browser resolves them
|
|
19
|
+
* against `<base href>`. Absolute, anchor and scheme links are left alone.
|
|
20
|
+
*/
|
|
21
|
+
linkBase?: string | null;
|
|
22
|
+
/** Drops a trailing `.md` from relative links resolved through linkBase. */
|
|
23
|
+
stripMdExtension?: boolean;
|
|
24
|
+
/** The base relative image paths resolve against. */
|
|
25
|
+
imageBase?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Opens relative and anchor links in place. By default every link opens in
|
|
28
|
+
* a new tab, which suits a note in a form; a documentation page wants its
|
|
29
|
+
* own links to navigate.
|
|
30
|
+
*/
|
|
31
|
+
internalLinksInPlace?: boolean;
|
|
32
|
+
}
|
|
1
33
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* It covers the everyday subset — headings, paragraphs, emphasis, inline code,
|
|
5
|
-
* fenced code, links, images, block quotes, lists and rules — which is what a
|
|
6
|
-
* description or a note in an admin form usually holds. A host that needs the
|
|
7
|
-
* full CommonMark grammar registers its own `markdown` field or entry.
|
|
8
|
-
*
|
|
9
|
-
* Safety: the source is HTML-escaped BEFORE any markup is produced, so raw
|
|
10
|
-
* HTML in the markdown is shown as text, never executed; link and image URLs
|
|
11
|
-
* are limited to http(s), mailto, relative and anchor targets.
|
|
34
|
+
* Resolves an escaped relative URL against a base. The result is escaped
|
|
35
|
+
* again; an absolute base keeps its origin, a path base yields a path.
|
|
12
36
|
*/
|
|
13
|
-
export declare function
|
|
14
|
-
export declare function renderMarkdown(source: string | null | undefined): string;
|
|
37
|
+
export declare function resolveAgainst(escapedUrl: string, base: string, stripMd?: boolean): string;
|
|
38
|
+
export declare function renderMarkdown(source: string | null | undefined, opts?: MarkdownOptions): string;
|
|
39
|
+
/** A piece of a markdown document: text to render, or a top-level fenced code block. */
|
|
40
|
+
export type MarkdownSegment = {
|
|
41
|
+
kind: 'text';
|
|
42
|
+
source: string;
|
|
43
|
+
} | {
|
|
44
|
+
kind: 'code';
|
|
45
|
+
code: string;
|
|
46
|
+
language: string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Splits a document at its top-level fenced code blocks, so that a caller can
|
|
50
|
+
* draw the code with a real highlighter and the rest with renderMarkdown.
|
|
51
|
+
* Fences inside block quotes stay in the text.
|
|
52
|
+
*/
|
|
53
|
+
export declare function splitMarkdown(source: string | null | undefined): MarkdownSegment[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function slugify(source: unknown, separator?: string): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
code?: string | null;
|
|
3
|
+
language?: string | null;
|
|
4
|
+
title?: string | null;
|
|
5
|
+
lineNumbers?: boolean;
|
|
6
|
+
maxHeight?: string | null;
|
|
7
|
+
wrap?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
|
+
code: string | null;
|
|
11
|
+
title: string | null;
|
|
12
|
+
wrap: boolean;
|
|
13
|
+
language: string | null;
|
|
14
|
+
maxHeight: string | null;
|
|
15
|
+
lineNumbers: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
markdown?: string | null;
|
|
3
|
+
toc?: boolean;
|
|
4
|
+
tocDepth?: number;
|
|
5
|
+
tocLabel?: string | null;
|
|
6
|
+
linkBase?: string | null;
|
|
7
|
+
stripMdExtension?: boolean;
|
|
8
|
+
imageBase?: string | null;
|
|
9
|
+
card?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
12
|
+
markdown: string | null;
|
|
13
|
+
toc: boolean;
|
|
14
|
+
tocDepth: number;
|
|
15
|
+
tocLabel: string | null;
|
|
16
|
+
linkBase: string | null;
|
|
17
|
+
stripMdExtension: boolean;
|
|
18
|
+
imageBase: string | null;
|
|
19
|
+
card: boolean;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
export default _default;
|
|
@@ -6,13 +6,13 @@ interface Props {
|
|
|
6
6
|
/** Which section is active. */
|
|
7
7
|
section?: 'general' | 'security' | 'tokens' | 'sessions' | string;
|
|
8
8
|
}
|
|
9
|
-
declare var
|
|
9
|
+
declare var __VLS_53: {}, __VLS_64: string, __VLS_65: {
|
|
10
10
|
section: string;
|
|
11
11
|
};
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
|
-
[K in NonNullable<typeof
|
|
13
|
+
[K in NonNullable<typeof __VLS_64>]?: (props: typeof __VLS_65) => any;
|
|
14
14
|
} & {
|
|
15
|
-
'enable-2fa'?: (props: typeof
|
|
15
|
+
'enable-2fa'?: (props: typeof __VLS_53) => any;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
18
|
save: (payload: {
|
|
@@ -15,11 +15,14 @@ export type { ScreenContext, ScreenContextOptions, ScreenActionLike } from './sc
|
|
|
15
15
|
export { provideListenerEndpoint, useListenerEndpoint } from './listenerContext';
|
|
16
16
|
export type { ListenerEndpoint } from './listenerContext';
|
|
17
17
|
export { default as TextField } from '../fields/TextField.vue';
|
|
18
|
+
export { default as SlugField } from '../fields/SlugField.vue';
|
|
19
|
+
export { slugify } from '../fields/support/slugify';
|
|
18
20
|
export { default as TextAreaField } from '../fields/TextAreaField.vue';
|
|
19
21
|
export { default as NumberField } from '../fields/NumberField.vue';
|
|
20
22
|
export { default as SelectField } from '../fields/SelectField.vue';
|
|
21
23
|
export { default as ComboboxField } from '../fields/ComboboxField.vue';
|
|
22
24
|
export { default as CheckboxField } from '../fields/CheckboxField.vue';
|
|
25
|
+
export { default as SwitchField } from '../fields/SwitchField.vue';
|
|
23
26
|
export { default as DateField } from '../fields/DateField.vue';
|
|
24
27
|
export { default as UnknownField } from '../fields/UnknownField.vue';
|
|
25
28
|
export { default as RowsLayout } from '../layouts/RowsLayout.vue';
|
|
@@ -34,4 +37,6 @@ export { default as ViewLayout } from '../layouts/ViewLayout.vue';
|
|
|
34
37
|
export { default as WrapperLayout } from '../layouts/WrapperLayout.vue';
|
|
35
38
|
export { default as InfolistLayout } from '../layouts/InfolistLayout.vue';
|
|
36
39
|
export { default as AuditTrailLayout } from '../layouts/AuditTrailLayout.vue';
|
|
40
|
+
export { default as MarkdownLayout } from '../layouts/MarkdownLayout.vue';
|
|
41
|
+
export { default as CodeLayout } from '../layouts/CodeLayout.vue';
|
|
37
42
|
export { default as ListenerLayout } from '../layouts/ListenerLayout.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|