@dskripchenko/laravel-admin 1.36.0 → 1.38.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.
Files changed (55) hide show
  1. package/dist/.vite/manifest.json +2 -2
  2. package/dist/api/client.d.ts +6 -1
  3. package/dist/assets/{app-w16kkVES.css → app-BISopiIN.css} +1 -1
  4. package/dist/assets/app-DL-8fHEv.js +43 -0
  5. package/dist/components/dashboard/TableWidget.test.d.ts +1 -0
  6. package/dist/components/fields/BuilderField.vue.d.ts +1 -1
  7. package/dist/components/fields/CascaderField.vue.d.ts +1 -1
  8. package/dist/components/fields/CodeField.vue.d.ts +2 -2
  9. package/dist/components/fields/ColorField.vue.d.ts +2 -2
  10. package/dist/components/fields/ComboboxField.vue.d.ts +1 -1
  11. package/dist/components/fields/DateField.vue.d.ts +9 -2
  12. package/dist/components/fields/DateRangeField.vue.d.ts +1 -1
  13. package/dist/components/fields/MarkdownField.vue.d.ts +1 -1
  14. package/dist/components/fields/MorphSwitcherField.vue.d.ts +1 -1
  15. package/dist/components/fields/NumberField.vue.d.ts +1 -1
  16. package/dist/components/fields/RadioField.vue.d.ts +1 -1
  17. package/dist/components/fields/RatingField.vue.d.ts +1 -1
  18. package/dist/components/fields/ResourcePickerField.vue.d.ts +1 -1
  19. package/dist/components/fields/SelectField.vue.d.ts +1 -1
  20. package/dist/components/fields/SliderField.vue.d.ts +1 -1
  21. package/dist/components/fields/SlugField.test.d.ts +1 -0
  22. package/dist/components/fields/SlugField.vue.d.ts +26 -0
  23. package/dist/components/fields/SwitchField.vue.d.ts +24 -0
  24. package/dist/components/fields/TagsField.vue.d.ts +1 -1
  25. package/dist/components/fields/TextAreaField.vue.d.ts +1 -1
  26. package/dist/components/fields/TextField.vue.d.ts +1 -1
  27. package/dist/components/fields/TimeField.vue.d.ts +1 -1
  28. package/dist/components/fields/TreeSelectField.vue.d.ts +1 -1
  29. package/dist/components/fields/dateTimeSwitch.test.d.ts +1 -0
  30. package/dist/components/fields/support/dateTime.d.ts +23 -0
  31. package/dist/components/fields/support/markdown.d.ts +51 -12
  32. package/dist/components/fields/support/markdown.test.d.ts +1 -0
  33. package/dist/components/fields/support/slugify.d.ts +1 -0
  34. package/dist/components/layouts/CodeLayout.vue.d.ts +17 -0
  35. package/dist/components/layouts/MarkdownCodeLayout.test.d.ts +1 -0
  36. package/dist/components/layouts/MarkdownLayout.vue.d.ts +21 -0
  37. package/dist/components/profile/ProfilePage.vue.d.ts +3 -3
  38. package/dist/components/render/index.d.ts +5 -0
  39. package/dist/components/resource/cellFormat.d.ts +21 -2
  40. package/dist/components/shell/iconRegistry.test.d.ts +1 -0
  41. package/dist/index.cjs +23 -18
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.d.ts +1 -1
  44. package/dist/index.mjs +15876 -15188
  45. package/dist/index.mjs.map +1 -1
  46. package/dist/router/guards.d.ts +8 -1
  47. package/dist/source-hash.txt +1 -1
  48. package/dist/stores/auth.d.ts +66 -3
  49. package/dist/stores/locale.d.ts +3 -1
  50. package/dist/stores/screen.d.ts +4 -1
  51. package/dist/stores/toast.d.ts +7 -0
  52. package/dist/style.css +1 -1
  53. package/dist/types/bootstrap.d.ts +23 -0
  54. package/package.json +1 -1
  55. package/dist/assets/app-Ce9-9CTP.js +0 -29
@@ -0,0 +1 @@
1
+ export {};
@@ -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
- * UidDatePicker handles the format through its own props inside; the prop
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
- * A small, dependency-free markdown → HTML renderer for previews.
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 escapeHtml(text: string): string;
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,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 __VLS_49: {}, __VLS_60: string, __VLS_61: {
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 __VLS_60>]?: (props: typeof __VLS_61) => any;
13
+ [K in NonNullable<typeof __VLS_64>]?: (props: typeof __VLS_65) => any;
14
14
  } & {
15
- 'enable-2fa'?: (props: typeof __VLS_49) => any;
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';
@@ -7,8 +7,8 @@
7
7
  * - datetime → 'd.m.Y H:i:s' by default.
8
8
  * - money → '{value} {currency}', with decimals.
9
9
  * - boolean → the trueLabel or falseLabel from the meta.
10
- * - badge → the text; the styling happens in the UI, through a slot or
11
- * a CSS class.
10
+ * - badge → the label from meta.labels (TableColumn::asBadge), or the
11
+ * value as it is; the tone comes from badgeTone().
12
12
  * - bytes → a human-readable size.
13
13
  * - text → the fallback.
14
14
  *
@@ -26,3 +26,22 @@ export interface CellMeta {
26
26
  [key: string]: unknown;
27
27
  }
28
28
  export declare function formatCell(value: unknown, preset: string | undefined, meta?: CellMeta): string;
29
+ export type BadgeTone = 'info' | 'success' | 'warning' | 'danger' | 'default';
30
+ /** The badge tone of a value: the column's colour map, meta.colors. */
31
+ export declare function badgeTone(value: unknown, meta?: CellMeta): BadgeTone;
32
+ /** The badge caption of a value: meta.labels, or the value itself. */
33
+ export declare function badgeLabel(value: unknown, meta?: CellMeta): string;
34
+ /** Where formatTableRows keeps the raw row next to the formatted one. */
35
+ export declare const RAW_ROW: unique symbol;
36
+ export interface TableColumnLike {
37
+ name: string;
38
+ preset?: string | null;
39
+ meta?: CellMeta;
40
+ }
41
+ /**
42
+ * Formats every cell of the rows by their columns' presets, keeping the raw
43
+ * row under RAW_ROW — a badge cell needs the raw value for its tone.
44
+ */
45
+ export declare function formatTableRows(rows: Record<string, unknown>[], columns: TableColumnLike[]): Record<string | symbol, unknown>[];
46
+ /** The tone of a badge cell of a row made by formatTableRows. */
47
+ export declare function rowBadgeTone(row: unknown, column: TableColumnLike): BadgeTone;
@@ -0,0 +1 @@
1
+ export {};