@omnitend/dashboard-for-laravel 0.45.0 → 0.46.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 (39) hide show
  1. package/dist/assets/IBMPlexSans-Bold-Latin1-914f1400.woff2 +0 -0
  2. package/dist/assets/IBMPlexSans-Medium-Latin1-b5610af0.woff2 +0 -0
  3. package/dist/assets/IBMPlexSans-Regular-Latin1-b5ad7bd3.woff2 +0 -0
  4. package/dist/assets/IBMPlexSans-SemiBold-Latin1-fff0ab3a.woff2 +0 -0
  5. package/dist/components/base/DFormFile.vue.d.ts +17 -0
  6. package/dist/components/base/DFormValidFeedback.vue.d.ts +12 -0
  7. package/dist/components/extended/DXDashboard.vue.d.ts +95 -111
  8. package/dist/components/extended/DXDashboardNavbar.vue.d.ts +2 -36
  9. package/dist/components/extended/DXDashboardSidebar.vue.d.ts +60 -79
  10. package/dist/components/extended/DXTable.vue.d.ts +10 -1
  11. package/dist/dashboard-for-laravel.js +8176 -7953
  12. package/dist/dashboard-for-laravel.js.map +1 -1
  13. package/dist/dashboard-for-laravel.umd.cjs +7 -7
  14. package/dist/dashboard-for-laravel.umd.cjs.map +1 -1
  15. package/dist/index.d.ts +3 -1
  16. package/dist/style.css +2 -2
  17. package/dist/types/navigation.d.ts +153 -3
  18. package/dist/utils/statCardFit.d.ts +19 -0
  19. package/docs/public/api-reference.json +48 -6
  20. package/docs/public/docs-map.md +4 -2
  21. package/docs/public/llms.txt +4 -2
  22. package/package.json +3 -2
  23. package/resources/css/theme.scss +264 -4
  24. package/resources/fonts/ibm-plex-sans/IBMPlexSans-Bold-Latin1.woff2 +0 -0
  25. package/resources/fonts/ibm-plex-sans/IBMPlexSans-Medium-Latin1.woff2 +0 -0
  26. package/resources/fonts/ibm-plex-sans/IBMPlexSans-Regular-Latin1.woff2 +0 -0
  27. package/resources/fonts/ibm-plex-sans/IBMPlexSans-SemiBold-Latin1.woff2 +0 -0
  28. package/resources/fonts/ibm-plex-sans/OFL.txt +93 -0
  29. package/resources/fonts/ibm-plex-sans/SOURCE.txt +18 -0
  30. package/resources/js/components/base/DFormFile.vue +103 -0
  31. package/resources/js/components/base/DFormValidFeedback.vue +16 -0
  32. package/resources/js/components/extended/DXDashboard.vue +41 -18
  33. package/resources/js/components/extended/DXDashboardNavbar.vue +9 -1
  34. package/resources/js/components/extended/DXDashboardSidebar.vue +25 -3
  35. package/resources/js/components/extended/DXStatCard.vue +154 -11
  36. package/resources/js/components/extended/DXTable.vue +58 -5
  37. package/resources/js/index.ts +9 -0
  38. package/resources/js/types/navigation.ts +175 -3
  39. package/resources/js/utils/statCardFit.ts +210 -0
@@ -0,0 +1,17 @@
1
+ declare var __VLS_8: string | number, __VLS_9: any;
2
+ type __VLS_Slots = {} & {
3
+ [K in NonNullable<typeof __VLS_8>]?: (props: typeof __VLS_9) => any;
4
+ };
5
+ declare const __VLS_component: import("vue").DefineComponent<{}, {
6
+ focus: () => void | undefined;
7
+ blur: () => void | undefined;
8
+ reset: () => void | undefined;
9
+ element: HTMLInputElement | HTMLButtonElement | null;
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,12 @@
1
+ declare var __VLS_7: string | number, __VLS_8: any;
2
+ type __VLS_Slots = {} & {
3
+ [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any;
4
+ };
5
+ declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
7
+ export default _default;
8
+ type __VLS_WithSlots<T, S> = T & {
9
+ new (): {
10
+ $slots: S;
11
+ };
12
+ };
@@ -1,113 +1,97 @@
1
- import type { Navigation, NavbarActionsOnMobile, NavbarSearchAlign, SidebarVariant } from '../../types/navigation';
2
- interface Props {
3
- /** Navigation structure for sidebar */
4
- navigation: Navigation;
5
- /** Current URL path for active state */
6
- currentUrl: string;
7
- /** Dashboard title shown in sidebar brand */
8
- title?: string;
9
- /** Page title shown in navbar */
10
- pageTitle?: string;
11
- /**
12
- * Render the page content full-width and left-aligned instead of the default
13
- * centred, reading-width column. Use for data-heavy admin pages (wide tables).
14
- */
15
- fluid?: boolean;
16
- /**
17
- * Max width of the centred content column (any CSS length). A genuine cap, so
18
- * forms and text-heavy pages don't stretch to ~2000px on a wide display.
19
- * Ignored when `fluid`. Set a large value (or use `fluid`) for full width.
20
- */
21
- contentMaxWidth?: string;
22
- /** Extra class(es) applied to the content container/column. */
23
- contentClass?: string;
24
- /** User object for navbar dropdown */
25
- user?: {
26
- name: string;
27
- email: string;
28
- } | null;
29
- /**
30
- * Horizontal alignment of the navbar search slot content (`"start"` = flush
31
- * left, `"center"` = centred), forwarded to DXDashboardNavbar.
32
- */
33
- searchAlign?: NavbarSearchAlign;
34
- /**
35
- * What the navbar actions slot does below `md`: `"wrap"` to its own
36
- * full-width row, `"hide"` to remove it (relocate actions into the page on
37
- * phones). Forwarded to DXDashboardNavbar.
38
- */
39
- actionsOnMobile?: NavbarActionsOnMobile;
40
- /** Accessible name for the navbar's user-menu trigger. Forwarded to DXDashboardNavbar. */
41
- userMenuLabel?: string;
42
- /**
43
- * Turn sidebar group headers into accordion toggles that collapse/expand
44
- * their items. When off (default), every group is permanently expanded.
45
- */
46
- collapsibleGroups?: boolean;
47
- /**
48
- * Only relevant when `collapsibleGroups` is on. `true` (default): only the
49
- * active-route group starts open and opening one closes the others
50
- * (single-open accordion). `false`: all groups start open, toggled independently.
51
- */
52
- autoCollapseInactiveGroups?: boolean;
53
- /**
54
- * Sidebar colour scheme, forwarded to DXDashboardSidebar as `variant`:
55
- * `'light'` (default: white pane, tinted group headers, green active item,
56
- * Poppins) or `'dark'` (the navy rail). Colours come from the
57
- * `--dx-sidebar-*` custom properties, so either can be rebranded in CSS.
58
- */
59
- sidebarVariant?: SidebarVariant;
60
- /** LocalStorage key for sidebar state persistence */
61
- storageKey?: string;
62
- /**
63
- * Unique ID for this dashboard instance (for nested dashboards)
64
- * Used to scope visibility state when multiple dashboards exist on same page
65
- * If not provided, uses global HTML class approach (for SSR compatibility)
66
- */
67
- dashboardId?: string;
68
- }
69
- declare var __VLS_13: string, __VLS_14: any, __VLS_24: string, __VLS_25: any, __VLS_30: {}, __VLS_41: {};
70
- type __VLS_Slots = {} & {
71
- [K in NonNullable<typeof __VLS_13>]?: (props: typeof __VLS_14) => any;
72
- } & {
73
- [K in NonNullable<typeof __VLS_24>]?: (props: typeof __VLS_25) => any;
74
- } & {
75
- default?: (props: typeof __VLS_30) => any;
76
- } & {
77
- default?: (props: typeof __VLS_41) => any;
1
+ import type { DashboardSlots, Navigation, NavigationItemOf, NavbarActionsOnMobile, NavbarSearchAlign, SidebarVariant } from '../../types/navigation';
2
+ declare const _default: <TNavigation extends Navigation = Navigation>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
4
+ /** Navigation structure for sidebar */
5
+ navigation: TNavigation;
6
+ /** Current URL path for active state */
7
+ currentUrl: string;
8
+ /** Dashboard title shown in sidebar brand */
9
+ title?: string;
10
+ /** Page title shown in navbar */
11
+ pageTitle?: string;
12
+ /**
13
+ * Render the page content full-width and left-aligned instead of the default
14
+ * centred, reading-width column. Use for data-heavy admin pages (wide tables).
15
+ */
16
+ fluid?: boolean;
17
+ /**
18
+ * Max width of the centred content column (any CSS length). A genuine cap, so
19
+ * forms and text-heavy pages don't stretch to ~2000px on a wide display.
20
+ * Ignored when `fluid`. Set a large value (or use `fluid`) for full width.
21
+ */
22
+ contentMaxWidth?: string;
23
+ /** Extra class(es) applied to the content container/column. */
24
+ contentClass?: string;
25
+ /** User object for navbar dropdown */
26
+ user?: {
27
+ name: string;
28
+ email: string;
29
+ } | null;
30
+ /**
31
+ * Horizontal alignment of the navbar search slot content (`"start"` = flush
32
+ * left, `"center"` = centred), forwarded to DXDashboardNavbar.
33
+ */
34
+ searchAlign?: NavbarSearchAlign;
35
+ /**
36
+ * What the navbar actions slot does below `md`: `"wrap"` to its own
37
+ * full-width row, `"hide"` to remove it (relocate actions into the page on
38
+ * phones). Forwarded to DXDashboardNavbar.
39
+ */
40
+ actionsOnMobile?: NavbarActionsOnMobile;
41
+ /** Accessible name for the navbar's user-menu trigger. Forwarded to DXDashboardNavbar. */
42
+ userMenuLabel?: string;
43
+ /**
44
+ * Turn sidebar group headers into accordion toggles that collapse/expand
45
+ * their items. When off (default), every group is permanently expanded.
46
+ */
47
+ collapsibleGroups?: boolean;
48
+ /**
49
+ * Only relevant when `collapsibleGroups` is on. `true` (default): only the
50
+ * active-route group starts open and opening one closes the others
51
+ * (single-open accordion). `false`: all groups start open, toggled independently.
52
+ */
53
+ autoCollapseInactiveGroups?: boolean;
54
+ /**
55
+ * Sidebar colour scheme, forwarded to DXDashboardSidebar as `variant`:
56
+ * `'light'` (default: white pane, tinted group headers, green active item,
57
+ * Poppins) or `'dark'` (the navy rail). Colours come from the
58
+ * `--dx-sidebar-*` custom properties, so either can be rebranded in CSS.
59
+ */
60
+ sidebarVariant?: SidebarVariant;
61
+ /** LocalStorage key for sidebar state persistence */
62
+ storageKey?: string;
63
+ /**
64
+ * Unique ID for this dashboard instance (for nested dashboards)
65
+ * Used to scope visibility state when multiple dashboards exist on same page
66
+ * If not provided, uses global HTML class approach (for SSR compatibility)
67
+ */
68
+ dashboardId?: string;
69
+ } & Partial<{}>> & import("vue").PublicProps;
70
+ expose(exposed: import("vue").ShallowUnwrapRef<{
71
+ /**
72
+ * Show/hide the sidebar (same as clicking the navbar's hamburger). The
73
+ * dashboard owns the visibility state, so this is the supported way to drive
74
+ * it from outside — page content, a custom brand row, a keyboard shortcut.
75
+ * Also available as a slot binding on every forwarded `sidebar-*`/`navbar-*`
76
+ * slot, which is usually more convenient.
77
+ */
78
+ toggleSidebar: () => void;
79
+ /** Whether the sidebar is currently hidden. */
80
+ sidebarHidden: import("vue").ComputedRef<boolean>;
81
+ /**
82
+ * The dashboard's root element (the `.dashboard-layout` `<div>`; `null`
83
+ * before mount). A template ref to this generic component carries only its
84
+ * exposed members, so read the DOM node here rather than through `$el`.
85
+ */
86
+ el: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
87
+ }>): void;
88
+ attrs: any;
89
+ slots: DashboardSlots<NavigationItemOf<TNavigation>>;
90
+ emit: {};
91
+ }>) => import("vue").VNode & {
92
+ __ctx?: Awaited<typeof __VLS_setup>;
78
93
  };
79
- declare const __VLS_component: import("vue").DefineComponent<Props, {
80
- /**
81
- * Show/hide the sidebar (same as clicking the navbar's hamburger). The
82
- * dashboard owns the visibility state, so this is the supported way to drive
83
- * it from outside — page content, a custom brand row, a keyboard shortcut.
84
- * Also available as a slot binding on every forwarded `sidebar-*`/`navbar-*`
85
- * slot, which is usually more convenient.
86
- */
87
- toggleSidebar: () => void;
88
- /** Whether the sidebar is currently hidden. */
89
- sidebarHidden: import("vue").ComputedRef<boolean>;
90
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
91
- title: string;
92
- collapsibleGroups: boolean;
93
- autoCollapseInactiveGroups: boolean;
94
- user: {
95
- name: string;
96
- email: string;
97
- } | null;
98
- pageTitle: string;
99
- searchAlign: NavbarSearchAlign;
100
- actionsOnMobile: NavbarActionsOnMobile;
101
- userMenuLabel: string;
102
- contentMaxWidth: string;
103
- sidebarVariant: SidebarVariant;
104
- storageKey: string;
105
- dashboardId: string;
106
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
107
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
108
94
  export default _default;
109
- type __VLS_WithSlots<T, S> = T & {
110
- new (): {
111
- $slots: S;
112
- };
113
- };
95
+ type __VLS_PrettifyLocal<T> = {
96
+ [K in keyof T]: T[K];
97
+ } & {};
@@ -1,4 +1,5 @@
1
- import type { NavbarActionsOnMobile, NavbarSearchAlign } from "../../types/navigation";
1
+ import type { DashboardNavbarSlots, NavbarActionsOnMobile, NavbarSearchAlign } from "../../types/navigation";
2
+ type __VLS_Slots = DashboardNavbarSlots;
2
3
  type __VLS_Props = {
3
4
  /** The signed-in user shown in the avatar dropdown. `null` hides the menu. */
4
5
  user?: {
@@ -34,41 +35,6 @@ type __VLS_Props = {
34
35
  /** `id` of the sidebar the toggle controls (its `aria-controls`). */
35
36
  sidebarId?: string;
36
37
  };
37
- declare var __VLS_11: {}, __VLS_13: {}, __VLS_15: {
38
- pageTitle: string;
39
- }, __VLS_17: {
40
- user: {
41
- [key: string]: any;
42
- name: string;
43
- email: string;
44
- } | null;
45
- }, __VLS_22: {
46
- initial: string;
47
- user: {
48
- [key: string]: any;
49
- name: string;
50
- email: string;
51
- };
52
- }, __VLS_27: {
53
- user: {
54
- [key: string]: any;
55
- name: string;
56
- email: string;
57
- };
58
- };
59
- type __VLS_Slots = {} & {
60
- 'menu-icon'?: (props: typeof __VLS_11) => any;
61
- } & {
62
- search?: (props: typeof __VLS_13) => any;
63
- } & {
64
- actions?: (props: typeof __VLS_15) => any;
65
- } & {
66
- 'user-menu'?: (props: typeof __VLS_17) => any;
67
- } & {
68
- 'user-icon'?: (props: typeof __VLS_22) => any;
69
- } & {
70
- 'user-menu-items'?: (props: typeof __VLS_27) => any;
71
- };
72
38
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
73
39
  toggleSidebar: () => any;
74
40
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -1,81 +1,62 @@
1
- import type { Navigation, SidebarVariant } from '../../types/navigation';
2
- type __VLS_Props = {
3
- /** Grouped navigation to render: an array of groups, each with a label and items. */
4
- navigation: Navigation;
5
- /** The current route URL, used to highlight the matching nav item and open its group. */
6
- currentUrl: string;
7
- /** Collapse the rail to an icons-only strip, hiding labels and the brand title. */
8
- collapsed?: boolean;
9
- /** Hide the sidebar entirely (`display: none`). */
10
- hidden?: boolean;
11
- /** Sidebar title; its first letter is also used as the brand initial. */
12
- title?: string;
13
- /**
14
- * Turn group headers into accordion toggles that collapse/expand their items.
15
- * When off (default), every group is rendered permanently expanded.
16
- */
17
- collapsibleGroups?: boolean;
18
- /**
19
- * Only relevant when `collapsibleGroups` is on.
20
- * `true` (default): only the active-route group starts open, and opening one
21
- * group closes the others (single-open accordion).
22
- * `false`: all groups start open and toggle independently.
23
- */
24
- autoCollapseInactiveGroups?: boolean;
25
- /**
26
- * Colour scheme: `'light'` (default) or `'dark'`. Colours come from the
27
- * `--dx-sidebar-*` custom properties (see the theming guide), so either
28
- * scheme can be rebranded in CSS.
29
- */
30
- variant?: SidebarVariant;
31
- /**
32
- * Below `sm`, show the open sidebar as a full-screen menu over the page,
33
- * with a close button (which emits `close`), instead of a rail beside it;
34
- * hidden there until opened. The owner must answer `close`, Escape and
35
- * `navigate`: DXDashboard sets this and does. Off by default, so a
36
- * standalone sidebar keeps its rail on phones.
37
- */
38
- phoneMenu?: boolean;
1
+ import type { DashboardSidebarSlots, Navigation, NavigationItemOf, SidebarVariant } from '../../types/navigation';
2
+ declare const _default: <TNavigation extends Navigation = Navigation>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onClose?: (() => any) | undefined;
5
+ readonly onToggle?: (() => any) | undefined;
6
+ readonly onNavigate?: (() => any) | undefined;
7
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onToggle" | "onClose" | "onNavigate"> & {
8
+ /** Grouped navigation to render: an array of groups, each with a label and items. */
9
+ navigation: TNavigation;
10
+ /** The current route URL, used to highlight the matching nav item and open its group. */
11
+ currentUrl: string;
12
+ /** Collapse the rail to an icons-only strip, hiding labels and the brand title. */
13
+ collapsed?: boolean;
14
+ /** Hide the sidebar entirely (`display: none`). */
15
+ hidden?: boolean;
16
+ /** Sidebar title; its first letter is also used as the brand initial. */
17
+ title?: string;
18
+ /**
19
+ * Turn group headers into accordion toggles that collapse/expand their items.
20
+ * When off (default), every group is rendered permanently expanded.
21
+ */
22
+ collapsibleGroups?: boolean;
23
+ /**
24
+ * Only relevant when `collapsibleGroups` is on.
25
+ * `true` (default): only the active-route group starts open, and opening one
26
+ * group closes the others (single-open accordion).
27
+ * `false`: all groups start open and toggle independently.
28
+ */
29
+ autoCollapseInactiveGroups?: boolean;
30
+ /**
31
+ * Colour scheme: `'light'` (default) or `'dark'`. Colours come from the
32
+ * `--dx-sidebar-*` custom properties (see the theming guide), so either
33
+ * scheme can be rebranded in CSS.
34
+ */
35
+ variant?: SidebarVariant;
36
+ /**
37
+ * Below `sm`, show the open sidebar as a full-screen menu over the page,
38
+ * with a close button (which emits `close`), instead of a rail beside it;
39
+ * hidden there until opened. The owner must answer `close`, Escape and
40
+ * `navigate`: DXDashboard sets this and does. Off by default, so a
41
+ * standalone sidebar keeps its rail on phones.
42
+ */
43
+ phoneMenu?: boolean;
44
+ } & Partial<{}>> & import("vue").PublicProps;
45
+ expose(exposed: import("vue").ShallowUnwrapRef<{
46
+ /**
47
+ * The sidebar's root `<aside>` element (`null` before mount). A template ref
48
+ * to this generic component carries only its exposed members, so read the
49
+ * DOM node here rather than through `$el`.
50
+ */
51
+ el: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
52
+ }>): void;
53
+ attrs: any;
54
+ slots: DashboardSidebarSlots<NavigationItemOf<TNavigation>>;
55
+ emit: ((evt: "close") => void) & ((evt: "toggle") => void) & ((evt: "navigate") => void);
56
+ }>) => import("vue").VNode & {
57
+ __ctx?: Awaited<typeof __VLS_setup>;
39
58
  };
40
- declare var __VLS_1: {
41
- collapsed: boolean;
42
- title: string;
43
- }, __VLS_3: {
44
- item: import("../..").NavigationItem;
45
- isActive: boolean;
46
- collapsed: boolean;
47
- isExpanded: boolean;
48
- }, __VLS_9: {
49
- collapsed: boolean;
50
- };
51
- type __VLS_Slots = {} & {
52
- brand?: (props: typeof __VLS_1) => any;
53
- } & {
54
- link?: (props: typeof __VLS_3) => any;
55
- } & {
56
- footer?: (props: typeof __VLS_9) => any;
57
- };
58
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
- close: () => any;
60
- toggle: () => any;
61
- navigate: () => any;
62
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
63
- onClose?: (() => any) | undefined;
64
- onToggle?: (() => any) | undefined;
65
- onNavigate?: (() => any) | undefined;
66
- }>, {
67
- hidden: boolean;
68
- title: string;
69
- collapsed: boolean;
70
- collapsibleGroups: boolean;
71
- autoCollapseInactiveGroups: boolean;
72
- variant: SidebarVariant;
73
- phoneMenu: boolean;
74
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
75
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
76
59
  export default _default;
77
- type __VLS_WithSlots<T, S> = T & {
78
- new (): {
79
- $slots: S;
80
- };
81
- };
60
+ type __VLS_PrettifyLocal<T> = {
61
+ [K in keyof T]: T[K];
62
+ } & {};
@@ -1,7 +1,8 @@
1
1
  import type { FieldDefinition, LabelCols } from "../../types";
2
2
  export type FilterType = 'text' | 'select' | 'select-native' | 'number' | 'date' | false;
3
3
  export interface FilterOption {
4
- value: string;
4
+ /** Numbers and booleans are accepted and compared as their string form. */
5
+ value: string | number | boolean | null;
5
6
  text: string;
6
7
  }
7
8
  /**
@@ -103,6 +104,14 @@ export interface TableField {
103
104
  * A number is pixels; a string is used verbatim.
104
105
  */
105
106
  minWidth?: string | number;
107
+ /**
108
+ * Render this column's figures tabular (every digit the same width), so
109
+ * amounts line up down the column: adds the global `.dx-tabular` class to
110
+ * the column's body cells and its header cell. Composes with the field's
111
+ * own `tdClass`/`thClass` (string, array, object or `tdClass` function)
112
+ * rather than replacing them. Default `false`.
113
+ */
114
+ tabular?: boolean;
106
115
  [key: string]: any;
107
116
  }
108
117
  export interface PaginationData {