@dskripchenko/laravel-admin 1.2.4 → 1.3.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.
@@ -0,0 +1,8 @@
1
+ interface Props {
2
+ /** Slug screen'а. Если null — берётся из route.params.slug. */
3
+ slug?: string | null;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
6
+ slug: string | null;
7
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -4,6 +4,11 @@ interface ChartDataset {
4
4
  color?: string;
5
5
  }
6
6
  interface ChartData {
7
+ /**
8
+ * Backend ChartWidget::data() отдаёт `chartType`. Историческая обёртка
9
+ * читала `type` — оставляем как fallback для совместимости.
10
+ */
11
+ chartType?: string;
7
12
  type?: string;
8
13
  labels?: string[];
9
14
  datasets?: ChartDataset[];
@@ -7,6 +7,12 @@ interface Props {
7
7
  max?: number;
8
8
  size?: number;
9
9
  ranges?: GaugeRange[];
10
+ /**
11
+ * Backend GaugeWidget::data() отдаёт `thresholds` — структурно совпадает
12
+ * с UidGauge.ranges ({from, to, color}). Принимаем оба имени.
13
+ */
14
+ thresholds?: GaugeRange[];
15
+ unit?: string;
10
16
  tone?: SemanticTone;
11
17
  color?: string;
12
18
  label?: string;
@@ -25,5 +31,7 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
25
31
  precision: number;
26
32
  tone: SemanticTone;
27
33
  ranges: GaugeRange[];
34
+ thresholds: GaugeRange[];
35
+ unit: string;
28
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
37
  export default _default;
@@ -1,18 +1,19 @@
1
- interface HeatmapPoint {
2
- date: string;
3
- value: number;
4
- }
5
1
  interface Props {
6
2
  title?: string;
7
- data: HeatmapPoint[];
8
- levels?: number;
3
+ rows?: string[];
4
+ cols?: string[];
5
+ matrix?: number[][];
6
+ /** Для подписи в hover'e — формат значения. */
7
+ formatValue?: (v: number, row: string, col: string) => string;
8
+ /** CSS-цвет ячейки. Default — accent token. */
9
9
  color?: string;
10
- gap?: number;
11
10
  }
12
11
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
13
12
  title: string;
14
13
  color: string;
15
- levels: number;
16
- gap: number;
14
+ rows: string[];
15
+ cols: string[];
16
+ matrix: number[][];
17
+ formatValue: (v: number, row: string, col: string) => string;
17
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
19
  export default _default;
@@ -1,12 +1,24 @@
1
1
  import { type UidTableColumn } from '@dskripchenko/ui';
2
+ /**
3
+ * Backend RecentListWidget::data() отдаёт columns как `[{column, label}]`,
4
+ * но UidTable ожидает `{key, label}`. Конвертируем here.
5
+ */
6
+ interface BackendColumn {
7
+ column?: string;
8
+ key?: string;
9
+ label: string;
10
+ align?: 'left' | 'center' | 'right';
11
+ }
2
12
  interface Props {
3
13
  title?: string;
4
- columns: UidTableColumn[];
5
- rows: Record<string, unknown>[];
14
+ columns?: Array<BackendColumn | UidTableColumn>;
15
+ rows?: Record<string, unknown>[];
6
16
  emptyText?: string;
7
17
  }
8
18
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
9
19
  title: string;
20
+ columns: Array<BackendColumn | UidTableColumn>;
21
+ rows: Record<string, unknown>[];
10
22
  emptyText: string;
11
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
24
  export default _default;
@@ -16,9 +16,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
16
16
  min: number | null;
17
17
  disabled: boolean;
18
18
  placeholder: string | null;
19
+ required: boolean;
19
20
  step: number | null;
20
21
  readonly: boolean;
21
- required: boolean;
22
22
  help: string | null;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  export default _default;
@@ -20,8 +20,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
20
20
  label: string | null;
21
21
  disabled: boolean;
22
22
  placeholder: string | null;
23
- searchable: boolean;
24
23
  required: boolean;
24
+ searchable: boolean;
25
25
  clearable: boolean;
26
26
  help: string | null;
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -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
- readonly: boolean;
16
15
  required: boolean;
16
+ readonly: boolean;
17
17
  rows: number;
18
18
  help: string | null;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -13,8 +13,8 @@ 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;
17
16
  required: boolean;
17
+ readonly: boolean;
18
18
  autocomplete: string | null;
19
19
  help: string | null;
20
20
  inputType: "text" | "email" | "url" | "password" | "tel" | "search";
@@ -18,8 +18,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
18
18
  disabled: boolean;
19
19
  placeholder: string | null;
20
20
  theme: "snow" | "bubble" | "core";
21
- toolbar: string | unknown[];
22
21
  required: boolean;
22
+ toolbar: string | unknown[];
23
23
  help: string | null;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  export default _default;
@@ -7,7 +7,7 @@ interface Props {
7
7
  cols?: number;
8
8
  }
9
9
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
10
- gap: string;
11
10
  cols: number;
11
+ gap: string;
12
12
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import type { MenuItem } from '../../stores/menu';
2
+ interface Props {
3
+ item: MenuItem;
4
+ depth?: number;
5
+ collapsed?: boolean;
6
+ /** Глубина, после которой включается stripe-режим (вместо роста indent). */
7
+ stripeAt?: number;
8
+ /** Шаг indent в px на каждый уровень (до stripeAt). */
9
+ indentStep?: number;
10
+ }
11
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
12
+ depth: number;
13
+ collapsed: boolean;
14
+ stripeAt: number;
15
+ indentStep: number;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ export default _default;