@dskripchenko/laravel-admin 1.32.2 → 1.33.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 (105) hide show
  1. package/README.md +3 -20
  2. package/dist/.vite/manifest.json +11 -0
  3. package/dist/app.d.ts +13 -0
  4. package/dist/assets/app-C5UPrfEf.css +1 -0
  5. package/dist/assets/app-POyU3uzR.js +29 -0
  6. package/dist/components/ScreenPage.test.d.ts +1 -0
  7. package/dist/components/actions/AdminActionButton.vue.d.ts +25 -0
  8. package/dist/components/actions/AdminActionDialogs.vue.d.ts +6 -0
  9. package/dist/components/actions/AdminActionForm.vue.d.ts +8 -0
  10. package/dist/components/actions/AdminActionMenuItems.vue.d.ts +14 -0
  11. package/dist/components/dashboard/BarChartWidget.vue.d.ts +3 -0
  12. package/dist/components/dashboard/CartesianChartWidget.vue.d.ts +21 -0
  13. package/dist/components/dashboard/ChartLegend.vue.d.ts +14 -0
  14. package/dist/components/dashboard/ChartTooltip.vue.d.ts +15 -0
  15. package/dist/components/dashboard/ChartWidget.test.d.ts +1 -0
  16. package/dist/components/dashboard/ChartWidget.vue.d.ts +9 -7
  17. package/dist/components/dashboard/HeatmapWidget.vue.d.ts +1 -1
  18. package/dist/components/dashboard/RadarChartWidget.vue.d.ts +15 -0
  19. package/dist/components/dashboard/chartGeometry.d.ts +62 -0
  20. package/dist/components/dashboard/chartTypes.d.ts +2 -1
  21. package/dist/components/dashboard/useChartSize.d.ts +14 -0
  22. package/dist/components/fields/CascaderField.vue.d.ts +32 -0
  23. package/dist/components/fields/CodeField.vue.d.ts +28 -0
  24. package/dist/components/fields/ColorField.vue.d.ts +23 -0
  25. package/dist/components/fields/DateRangeField.vue.d.ts +24 -0
  26. package/dist/components/fields/GroupField.vue.d.ts +21 -0
  27. package/dist/components/fields/HiddenField.vue.d.ts +8 -0
  28. package/dist/components/fields/LabelField.vue.d.ts +14 -0
  29. package/dist/components/fields/MarkdownField.vue.d.ts +29 -0
  30. package/dist/components/fields/MorphSwitcherField.vue.d.ts +23 -0
  31. package/dist/components/fields/RadioField.vue.d.ts +21 -0
  32. package/dist/components/fields/RatingField.vue.d.ts +23 -0
  33. package/dist/components/fields/SliderField.vue.d.ts +24 -0
  34. package/dist/components/fields/TimeField.vue.d.ts +26 -0
  35. package/dist/components/fields/TreeSelectField.vue.d.ts +26 -0
  36. package/dist/components/fields/WysiwygField.vue.d.ts +1 -1
  37. package/dist/components/fields/pickerFields.test.d.ts +1 -0
  38. package/dist/components/fields/support/color.d.ts +18 -0
  39. package/dist/components/fields/support/dateRange.d.ts +9 -0
  40. package/dist/components/fields/support/markdown.d.ts +14 -0
  41. package/dist/components/fields/support/support.test.d.ts +1 -0
  42. package/dist/components/fields/support/tree.d.ts +23 -0
  43. package/dist/components/infolist/CascaderEntry.vue.d.ts +21 -0
  44. package/dist/components/infolist/CodeEntry.vue.d.ts +17 -0
  45. package/dist/components/infolist/ColorEntry.vue.d.ts +15 -0
  46. package/dist/components/infolist/DateRangeEntry.vue.d.ts +11 -0
  47. package/dist/components/infolist/FieldEntry.vue.d.ts +19 -0
  48. package/dist/components/infolist/GroupEntry.vue.d.ts +19 -0
  49. package/dist/components/infolist/HiddenEntry.vue.d.ts +2 -0
  50. package/dist/components/infolist/ImageEntry.vue.d.ts +21 -0
  51. package/dist/components/infolist/MapEntry.vue.d.ts +17 -0
  52. package/dist/components/infolist/MarkdownEntry.vue.d.ts +11 -0
  53. package/dist/components/infolist/MorphEntry.vue.d.ts +19 -0
  54. package/dist/components/infolist/OptionEntry.vue.d.ts +13 -0
  55. package/dist/components/infolist/RatingEntry.vue.d.ts +19 -0
  56. package/dist/components/infolist/RelationEntry.vue.d.ts +17 -0
  57. package/dist/components/infolist/TreeSelectEntry.vue.d.ts +15 -0
  58. package/dist/components/infolist/entryValue.d.ts +10 -0
  59. package/dist/components/infolist/viewEntries.test.d.ts +1 -0
  60. package/dist/components/layouts/AccordionLayout.vue.d.ts +16 -0
  61. package/dist/components/layouts/AuditTrailLayout.vue.d.ts +13 -0
  62. package/dist/components/layouts/DrawerLayout.vue.d.ts +25 -0
  63. package/dist/components/layouts/InfolistLayout.vue.d.ts +12 -0
  64. package/dist/components/layouts/ModalLayout.vue.d.ts +22 -0
  65. package/dist/components/layouts/StepLayout.vue.d.ts +12 -0
  66. package/dist/components/layouts/ViewLayout.vue.d.ts +7 -0
  67. package/dist/components/layouts/WizardLayout.vue.d.ts +20 -0
  68. package/dist/components/layouts/WrapperLayout.vue.d.ts +12 -0
  69. package/dist/components/layouts/layouts.test.d.ts +1 -0
  70. package/dist/components/layouts/overlay.d.ts +29 -0
  71. package/dist/components/layouts/wizard.d.ts +39 -0
  72. package/dist/components/layouts/wizard.test.d.ts +1 -0
  73. package/dist/components/render/formState.d.ts +11 -0
  74. package/dist/components/render/index.d.ts +10 -0
  75. package/dist/components/render/screenContext.d.ts +75 -0
  76. package/dist/components/render/screenContext.test.d.ts +1 -0
  77. package/dist/components/resource/AuditTimeline.vue.d.ts +5 -1
  78. package/dist/components/resource/ResourceIndexPage.vue.d.ts +5 -5
  79. package/dist/components/resource/ResourceViewPage.vue.d.ts +2 -2
  80. package/dist/composables/useActionRunner.d.ts +112 -0
  81. package/dist/composables/useActionRunner.test.d.ts +1 -0
  82. package/dist/formState-DVU2igtT.js +76 -0
  83. package/dist/formState-DVU2igtT.js.map +1 -0
  84. package/dist/formState-DqHe1Jgd.cjs +2 -0
  85. package/dist/formState-DqHe1Jgd.cjs.map +1 -0
  86. package/dist/index.cjs +19 -4
  87. package/dist/index.cjs.map +1 -1
  88. package/dist/index.d.ts +6 -2
  89. package/dist/index.mjs +18902 -15367
  90. package/dist/index.mjs.map +1 -1
  91. package/dist/quill.cjs +1 -1
  92. package/dist/quill.mjs +1 -1
  93. package/dist/source-hash.txt +1 -0
  94. package/dist/stores/screen.d.ts +3 -5
  95. package/dist/stores/toast.d.ts +21 -0
  96. package/dist/stores/toast.test.d.ts +1 -0
  97. package/dist/style.css +1 -1
  98. package/dist/tinymce.cjs +1 -1
  99. package/dist/tinymce.mjs +1 -1
  100. package/package.json +3 -1
  101. package/dist/.gitkeep +0 -0
  102. package/dist/formState-DeRZBwWH.js +0 -41
  103. package/dist/formState-DeRZBwWH.js.map +0 -1
  104. package/dist/formState-yUTD6wAR.cjs +0 -2
  105. package/dist/formState-yUTD6wAR.cjs.map +0 -1
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ import type { AdminAction } from '../../composables/useActionRunner';
2
+ interface Props {
3
+ action: AdminAction;
4
+ size?: 'sm' | 'md' | 'lg';
5
+ /** Overrides the variant derived from primary/destructive. */
6
+ variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
7
+ /** The variant of a plain (neither primary nor destructive) action. */
8
+ defaultVariant?: 'secondary' | 'ghost';
9
+ disabled?: boolean;
10
+ loading?: boolean;
11
+ isDisabled?: (action: AdminAction) => boolean;
12
+ }
13
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ run: (action: AdminAction) => any;
15
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
16
+ onRun?: ((action: AdminAction) => any) | undefined;
17
+ }>, {
18
+ size: "sm" | "md" | "lg";
19
+ disabled: boolean;
20
+ variant: "primary" | "secondary" | "ghost" | "danger";
21
+ loading: boolean;
22
+ isDisabled: (action: AdminAction) => boolean;
23
+ defaultVariant: "secondary" | "ghost";
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { ActionRunner } from '../../composables/useActionRunner';
2
+ interface Props {
3
+ runner: ActionRunner;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,8 @@
1
+ interface Props {
2
+ fields: Array<Record<string, unknown>>;
3
+ /** The reactive values object; the fields write into it. */
4
+ values: Record<string, unknown>;
5
+ errors: Record<string, string[]>;
6
+ }
7
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import type { AdminAction } from '../../composables/useActionRunner';
2
+ interface Props {
3
+ actions: AdminAction[];
4
+ /** Whether an action is unavailable, e.g. for the current selection size. */
5
+ isDisabled?: (action: AdminAction) => boolean;
6
+ }
7
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ run: (action: AdminAction) => any;
9
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
10
+ onRun?: ((action: AdminAction) => any) | undefined;
11
+ }>, {
12
+ isDisabled: (action: AdminAction) => boolean;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -8,11 +8,14 @@ interface Props {
8
8
  data: Datum[];
9
9
  accent?: string;
10
10
  height?: number;
11
+ /** The series name in the tooltip; the title by default. */
12
+ seriesLabel?: string;
11
13
  }
12
14
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
13
15
  title: string;
14
16
  height: number;
15
17
  description: string;
16
18
  accent: string;
19
+ seriesLabel: string;
17
20
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
21
  export default _default;
@@ -0,0 +1,21 @@
1
+ import './chart.css';
2
+ import { type ChartSeries } from './chartGeometry';
3
+ export type CartesianKind = 'line' | 'area' | 'bar';
4
+ interface Props {
5
+ kind?: CartesianKind;
6
+ title?: string;
7
+ description?: string;
8
+ labels: string[];
9
+ series: ChartSeries[];
10
+ stacked?: boolean;
11
+ /** The minimum plot height in px; the chart grows with its cell beyond it. */
12
+ height?: number;
13
+ }
14
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
15
+ title: string;
16
+ height: number;
17
+ description: string;
18
+ kind: CartesianKind;
19
+ stacked: boolean;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ export default _default;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * ChartLegend — the series key under a multi-series chart. The text stays in
3
+ * the text tokens; the swatch beside it carries the series colour, so identity
4
+ * never rests on colour alone.
5
+ */
6
+ interface Item {
7
+ label: string;
8
+ color: string;
9
+ }
10
+ type __VLS_Props = {
11
+ items: Item[];
12
+ };
13
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -0,0 +1,15 @@
1
+ interface Row {
2
+ label: string;
3
+ color: string;
4
+ value: string;
5
+ }
6
+ interface Props {
7
+ x: number;
8
+ y: number;
9
+ title: string;
10
+ rows: Row[];
11
+ /** The chart box width, to keep the card inside it. */
12
+ boundsWidth: number;
13
+ }
14
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,8 +1,4 @@
1
- interface ChartDataset {
2
- label: string;
3
- data: number[];
4
- color?: string;
5
- }
1
+ import { type RawDataset } from './chartGeometry';
6
2
  interface ChartData {
7
3
  /**
8
4
  * The backend's ChartWidget::data() returns `chartType`. The older wrapper
@@ -10,14 +6,20 @@ interface ChartData {
10
6
  */
11
7
  chartType?: string;
12
8
  type?: string;
13
- labels?: string[];
14
- datasets?: ChartDataset[];
9
+ labels?: Array<string | number>;
10
+ datasets?: RawDataset[];
11
+ stacked?: boolean;
15
12
  }
16
13
  interface Props {
17
14
  type?: string;
18
15
  title?: string;
16
+ description?: string;
19
17
  size?: number;
20
18
  data?: ChartData;
19
+ chartType?: string;
20
+ labels?: Array<string | number>;
21
+ datasets?: RawDataset[];
22
+ stacked?: boolean;
21
23
  }
22
24
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
25
  export default _default;
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
13
13
  color: string;
14
14
  rows: string[];
15
15
  cols: string[];
16
- matrix: number[][];
17
16
  formatValue: (v: number, row: string, col: string) => string;
17
+ matrix: number[][];
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
19
  export default _default;
@@ -0,0 +1,15 @@
1
+ import './chart.css';
2
+ import { type ChartSeries } from './chartGeometry';
3
+ interface Props {
4
+ title?: string;
5
+ description?: string;
6
+ labels: string[];
7
+ series: ChartSeries[];
8
+ height?: number;
9
+ }
10
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
11
+ title: string;
12
+ height: number;
13
+ description: string;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Shared, dependency-free helpers of the SVG charts: the series palette, the
3
+ * normalization of the backend's datasets, nice axis ticks and number
4
+ * formatting. Pure functions — the components only lay the results out.
5
+ */
6
+ /** One drawable series: the backend's dataset with its colour resolved. */
7
+ export interface ChartSeries {
8
+ label: string;
9
+ /** A non-finite entry (null, NaN) is a gap: lines break, bars are skipped. */
10
+ data: Array<number | null>;
11
+ color: string;
12
+ }
13
+ /** The backend's dataset, as ChartWidget::data() sends it. */
14
+ export interface RawDataset {
15
+ label?: string;
16
+ data?: unknown[];
17
+ color?: string;
18
+ }
19
+ /**
20
+ * The categorical order for several series. It is fixed — a series keeps its
21
+ * colour whatever else is on the chart — and validated for colour-vision
22
+ * deficiency on both the light and the dark surface (blue, amber, green,
23
+ * violet, pink, cyan). Each slot can be overridden through a
24
+ * `--admin-chart-series-N` custom property.
25
+ */
26
+ export declare const SERIES_PALETTE: readonly string[];
27
+ /** The colour of a lone series: the theme's accent, as the bar chart always had. */
28
+ export declare const SINGLE_SERIES_COLOR = "var(--uid-accent)";
29
+ /**
30
+ * Turns the backend's datasets into drawable series. An explicit `color` wins;
31
+ * otherwise a lone series takes `singleColor` and several take the palette in
32
+ * order.
33
+ */
34
+ export declare function toSeries(datasets: RawDataset[] | undefined | null, singleColor?: string): ChartSeries[];
35
+ /**
36
+ * The category labels: the backend's `labels`, padded with 1-based indices
37
+ * when a dataset is longer than them.
38
+ */
39
+ export declare function resolveLabels(labels: unknown[] | undefined | null, series: ChartSeries[]): string[];
40
+ /** A chart is empty when no series carries a single non-zero value. */
41
+ export declare function isEmptySeries(series: ChartSeries[]): boolean;
42
+ /**
43
+ * Cumulative sums per category, for stacked charts: result[s][i] is the top of
44
+ * series s at category i. Gaps count as zero.
45
+ */
46
+ export declare function stackSeries(series: ChartSeries[], n: number): number[][];
47
+ export interface NiceScale {
48
+ min: number;
49
+ max: number;
50
+ ticks: number[];
51
+ }
52
+ /**
53
+ * A "nice" linear scale over [min, max] with about `count` intervals. Zero is
54
+ * always inside, so bars and areas grow from a real baseline.
55
+ */
56
+ export declare function niceScale(min: number, max: number, count?: number): NiceScale;
57
+ /** An axis tick: compact (1.2K, 3M). */
58
+ export declare function formatTick(v: number): string;
59
+ /** A value in a tooltip or the data table: full, with grouping. */
60
+ export declare function formatValue(v: number | null): string;
61
+ /** A rough text width in px for the axis font — enough to keep labels apart. */
62
+ export declare function estimateTextWidth(text: string, fontPx?: number): number;
@@ -4,4 +4,5 @@
4
4
  * The backend's ChartWidget::ALLOWED_TYPES lists what a host may ask for;
5
5
  * backendParity.test.ts checks every one of them has an entry here.
6
6
  */
7
- export declare const CHART_RENDERERS: Readonly<Record<string, 'bar' | 'donut'>>;
7
+ export type ChartRenderer = 'bar' | 'line' | 'area' | 'donut' | 'radar';
8
+ export declare const CHART_RENDERERS: Readonly<Record<string, ChartRenderer>>;
@@ -0,0 +1,14 @@
1
+ import { type Ref } from 'vue';
2
+ /**
3
+ * Tracks an element's content box, so a chart is laid out in real pixels —
4
+ * text and stroke widths stay true at any widget size, unlike a stretched
5
+ * viewBox. Without ResizeObserver (jsdom, very old browsers) the fallback size
6
+ * stands.
7
+ */
8
+ export declare function useChartSize(el: Ref<HTMLElement | null>, fallback: {
9
+ width: number;
10
+ height: number;
11
+ }): {
12
+ width: Ref<number>;
13
+ height: Ref<number>;
14
+ };
@@ -0,0 +1,32 @@
1
+ interface Props {
2
+ name: string;
3
+ tree?: unknown;
4
+ levels?: Array<{
5
+ key?: string;
6
+ label?: string;
7
+ options?: unknown;
8
+ }> | null;
9
+ separator?: string;
10
+ label?: string | null;
11
+ help?: string | null;
12
+ required?: boolean;
13
+ placeholder?: string | null;
14
+ disabled?: boolean;
15
+ readonly?: boolean;
16
+ }
17
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
18
+ label: string | null;
19
+ disabled: boolean;
20
+ placeholder: string | null;
21
+ tree: never[];
22
+ required: boolean;
23
+ readonly: boolean;
24
+ help: string | null;
25
+ separator: string;
26
+ levels: Array<{
27
+ key?: string;
28
+ label?: string;
29
+ options?: unknown;
30
+ }> | null;
31
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
+ export default _default;
@@ -0,0 +1,28 @@
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
+ language?: string | null;
10
+ lineNumbers?: boolean;
11
+ /** The editor's maximum height: a number of pixels or a CSS length. */
12
+ height?: number | string | null;
13
+ /** The minimum number of visible lines. */
14
+ rows?: number;
15
+ }
16
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
17
+ label: string | null;
18
+ height: number | string | null;
19
+ disabled: boolean;
20
+ placeholder: string | null;
21
+ required: boolean;
22
+ readonly: boolean;
23
+ rows: number;
24
+ help: string | null;
25
+ language: string | null;
26
+ lineNumbers: boolean;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { type ColorFormat } from './support/color';
2
+ interface Props {
3
+ name: string;
4
+ label?: string | null;
5
+ help?: string | null;
6
+ required?: boolean;
7
+ disabled?: boolean;
8
+ readonly?: boolean;
9
+ format?: ColorFormat;
10
+ palette?: string[] | null;
11
+ withAlpha?: boolean;
12
+ }
13
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
14
+ label: string | null;
15
+ format: ColorFormat;
16
+ disabled: boolean;
17
+ required: boolean;
18
+ readonly: boolean;
19
+ help: string | null;
20
+ palette: string[] | null;
21
+ withAlpha: boolean;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ 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
+ placeholder?: string | null;
7
+ disabled?: boolean;
8
+ readonly?: boolean;
9
+ min?: string | null;
10
+ max?: string | null;
11
+ presets?: string[] | null;
12
+ }
13
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
14
+ label: string | null;
15
+ max: string | null;
16
+ min: string | null;
17
+ disabled: boolean;
18
+ placeholder: string | null;
19
+ required: boolean;
20
+ readonly: boolean;
21
+ help: string | null;
22
+ presets: string[] | null;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { type FieldNode } from '../render/FieldRenderer.vue';
2
+ interface Props {
3
+ name: string;
4
+ fields?: FieldNode[];
5
+ label?: string | null;
6
+ help?: string | null;
7
+ description?: string | null;
8
+ layout?: 'rows' | 'columns' | 'inline';
9
+ collapsible?: boolean;
10
+ collapsed?: boolean;
11
+ }
12
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
13
+ label: string | null;
14
+ fields: FieldNode[];
15
+ description: string | null;
16
+ layout: "rows" | "columns" | "inline";
17
+ collapsed: boolean;
18
+ collapsible: boolean;
19
+ help: string | null;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ export default _default;
@@ -0,0 +1,8 @@
1
+ interface Props {
2
+ name: string;
3
+ value?: unknown;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
6
+ value: undefined;
7
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1,14 @@
1
+ interface Props {
2
+ name: string;
3
+ label?: string | null;
4
+ help?: string | null;
5
+ value?: unknown;
6
+ placeholder?: string | null;
7
+ }
8
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
9
+ value: undefined;
10
+ label: string | null;
11
+ placeholder: string | null;
12
+ help: string | null;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -0,0 +1,29 @@
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
+ /** Whether the preview is available; true by default. */
10
+ preview?: boolean;
11
+ /** Whether the formatting toolbar is shown; true by default. */
12
+ toolbar?: boolean;
13
+ /** The editor's height: a number of pixels or a CSS length. */
14
+ height?: number | string | null;
15
+ rows?: number;
16
+ }
17
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
18
+ label: string | null;
19
+ height: number | string | null;
20
+ disabled: boolean;
21
+ placeholder: string | null;
22
+ required: boolean;
23
+ toolbar: boolean;
24
+ readonly: boolean;
25
+ rows: number;
26
+ help: string | null;
27
+ preview: boolean;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import type { SelectOption } from './SelectField.vue';
2
+ interface MorphType {
3
+ label?: string;
4
+ options?: SelectOption[];
5
+ }
6
+ interface Props {
7
+ name: string;
8
+ morphTypes?: Record<string, MorphType> | null;
9
+ label?: string | null;
10
+ help?: string | null;
11
+ required?: boolean;
12
+ disabled?: boolean;
13
+ readonly?: 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
+ disabled: boolean;
18
+ required: boolean;
19
+ readonly: boolean;
20
+ help: string | null;
21
+ morphTypes: Record<string, MorphType> | null;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import type { SelectOption } from './SelectField.vue';
2
+ interface Props {
3
+ name: string;
4
+ options?: SelectOption[];
5
+ label?: string | null;
6
+ help?: string | null;
7
+ required?: boolean;
8
+ disabled?: boolean;
9
+ readonly?: boolean;
10
+ inline?: boolean;
11
+ }
12
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
13
+ options: SelectOption[];
14
+ inline: boolean;
15
+ label: string | null;
16
+ disabled: boolean;
17
+ required: boolean;
18
+ readonly: boolean;
19
+ help: string | null;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ export default _default;
@@ -0,0 +1,23 @@
1
+ interface Props {
2
+ name: string;
3
+ label?: string | null;
4
+ help?: string | null;
5
+ required?: boolean;
6
+ disabled?: boolean;
7
+ readonly?: boolean;
8
+ count?: number;
9
+ half?: boolean;
10
+ /** A lucide icon name in kebab-case: 'heart', 'thumbs-up'. */
11
+ icon?: string | null;
12
+ }
13
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
14
+ icon: string | null;
15
+ label: string | null;
16
+ disabled: boolean;
17
+ count: number;
18
+ required: boolean;
19
+ readonly: boolean;
20
+ help: string | null;
21
+ half: boolean;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ 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
+ disabled?: boolean;
7
+ readonly?: boolean;
8
+ min?: number;
9
+ max?: number;
10
+ step?: number;
11
+ marks?: Record<string, string> | null;
12
+ }
13
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
14
+ label: string | null;
15
+ max: number;
16
+ min: number;
17
+ disabled: boolean;
18
+ step: number;
19
+ required: boolean;
20
+ readonly: boolean;
21
+ help: string | null;
22
+ marks: Record<string, string> | null;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ export default _default;
@@ -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 PHP date format: 'H:i' by default, 'H:i:s' with seconds. */
10
+ format?: string | null;
11
+ withSeconds?: boolean;
12
+ /** The minutes' step. */
13
+ step?: number | null;
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
+ format: string | null;
18
+ disabled: boolean;
19
+ placeholder: string | null;
20
+ step: number | null;
21
+ required: boolean;
22
+ readonly: boolean;
23
+ help: string | null;
24
+ withSeconds: boolean;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ export default _default;
@@ -0,0 +1,26 @@
1
+ interface Props {
2
+ name: string;
3
+ tree?: unknown;
4
+ label?: string | null;
5
+ help?: string | null;
6
+ required?: boolean;
7
+ placeholder?: string | null;
8
+ disabled?: boolean;
9
+ readonly?: boolean;
10
+ multiple?: boolean;
11
+ checkable?: boolean;
12
+ selectableParents?: boolean;
13
+ }
14
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
15
+ label: string | null;
16
+ disabled: boolean;
17
+ placeholder: string | null;
18
+ tree: never[];
19
+ required: boolean;
20
+ readonly: boolean;
21
+ checkable: boolean;
22
+ multiple: boolean;
23
+ help: string | null;
24
+ selectableParents: boolean;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ export default _default;
@@ -16,8 +16,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
16
16
  disabled: boolean;
17
17
  placeholder: string | null;
18
18
  required: boolean;
19
- help: string | null;
20
19
  minHeight: string;
20
+ help: string | null;
21
21
  maxHeight: string;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  export default _default;
@@ -0,0 +1 @@
1
+ export {};