@dskripchenko/laravel-admin 1.7.0 → 1.8.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,18 @@
1
+ /**
2
+ * Backend IframeWidget::data() — {src, height, sandbox}. Host отвечает за
3
+ * allowedHosts-валидацию src на своей стороне; sandbox-атрибут пробрасываем
4
+ * как есть (default backend'а: allow-scripts allow-same-origin).
5
+ */
6
+ interface Props {
7
+ title?: string;
8
+ src?: string;
9
+ height?: number | null;
10
+ sandbox?: string;
11
+ }
12
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
13
+ title: string;
14
+ height: number | null;
15
+ src: string;
16
+ sandbox: string;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import { type CellMeta } from '../resource/cellFormat';
2
+ /**
3
+ * Backend TableWidget::data() — {rows, columns[TableColumn::toArray]}:
4
+ * колонки в resource-формате ({name, label, preset, meta…}) — ячейки
5
+ * форматируем тем же formatCell, что и Resource list (даты/деньги/boolean).
6
+ */
7
+ interface BackendColumn {
8
+ name: string;
9
+ label: string;
10
+ preset?: string | null;
11
+ align?: 'left' | 'center' | 'right';
12
+ width?: string | null;
13
+ meta?: CellMeta;
14
+ }
15
+ interface Props {
16
+ title?: string;
17
+ columns?: BackendColumn[];
18
+ rows?: Record<string, unknown>[];
19
+ emptyText?: string;
20
+ }
21
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
22
+ title: string;
23
+ columns: BackendColumn[];
24
+ rows: Record<string, unknown>[];
25
+ emptyText: string;
26
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ export default _default;