@omnitend/dashboard-for-laravel 0.38.0 → 0.40.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.
- package/dist/dashboard-for-laravel.js +3841 -3804
- package/dist/dashboard-for-laravel.js.map +1 -1
- package/dist/dashboard-for-laravel.umd.cjs +5 -5
- package/dist/dashboard-for-laravel.umd.cjs.map +1 -1
- package/dist/style.css +2 -2
- package/docs/public/api-reference.json +25 -6
- package/docs/public/docs-map.md +1 -1
- package/package.json +1 -1
- package/resources/css/theme.scss +5 -1
- package/resources/js/components/extended/DXCurrencyInput.vue +23 -1
- package/resources/js/components/extended/DXSwitch.vue +6 -4
- package/resources/js/components/extended/DXTable.vue +44 -4
- package/resources/js/composables/useResourceEditor.ts +102 -21
- package/dist/charts.d.ts +0 -19
- package/dist/components/base/DAccordion.vue.d.ts +0 -12
- package/dist/components/base/DAccordionItem.vue.d.ts +0 -12
- package/dist/components/base/DAlert.vue.d.ts +0 -17
- package/dist/components/base/DAspect.vue.d.ts +0 -12
- package/dist/components/base/DAutocomplete.vue.d.ts +0 -32
- package/dist/components/base/DAvatar.vue.d.ts +0 -12
- package/dist/components/base/DBadge.vue.d.ts +0 -12
- package/dist/components/base/DBreadcrumb.vue.d.ts +0 -12
- package/dist/components/base/DButton.vue.d.ts +0 -88
- package/dist/components/base/DButtonGroup.vue.d.ts +0 -12
- package/dist/components/base/DButtonToolbar.vue.d.ts +0 -12
- package/dist/components/base/DCard.vue.d.ts +0 -12
- package/dist/components/base/DCol.vue.d.ts +0 -12
- package/dist/components/base/DCollapse.vue.d.ts +0 -12
- package/dist/components/base/DContainer.vue.d.ts +0 -12
- package/dist/components/base/DDropdown.vue.d.ts +0 -12
- package/dist/components/base/DDropdownDivider.vue.d.ts +0 -2
- package/dist/components/base/DDropdownItem.vue.d.ts +0 -12
- package/dist/components/base/DForm.vue.d.ts +0 -12
- package/dist/components/base/DFormCheckbox.vue.d.ts +0 -12
- package/dist/components/base/DFormCheckboxGroup.vue.d.ts +0 -12
- package/dist/components/base/DFormGroup.vue.d.ts +0 -12
- package/dist/components/base/DFormInput.vue.d.ts +0 -2
- package/dist/components/base/DFormInvalidFeedback.vue.d.ts +0 -12
- package/dist/components/base/DFormOtp.vue.d.ts +0 -12
- package/dist/components/base/DFormRadio.vue.d.ts +0 -12
- package/dist/components/base/DFormRadioGroup.vue.d.ts +0 -12
- package/dist/components/base/DFormSelect.vue.d.ts +0 -27
- package/dist/components/base/DFormSpinbutton.vue.d.ts +0 -12
- package/dist/components/base/DFormTags.vue.d.ts +0 -12
- package/dist/components/base/DFormText.vue.d.ts +0 -12
- package/dist/components/base/DFormTextarea.vue.d.ts +0 -2
- package/dist/components/base/DImage.vue.d.ts +0 -12
- package/dist/components/base/DInputGroup.vue.d.ts +0 -12
- package/dist/components/base/DLink.vue.d.ts +0 -12
- package/dist/components/base/DListGroup.vue.d.ts +0 -12
- package/dist/components/base/DListGroupItem.vue.d.ts +0 -12
- package/dist/components/base/DModal.vue.d.ts +0 -12
- package/dist/components/base/DNav.vue.d.ts +0 -12
- package/dist/components/base/DNavItem.vue.d.ts +0 -12
- package/dist/components/base/DNavbar.vue.d.ts +0 -12
- package/dist/components/base/DNavbarBrand.vue.d.ts +0 -12
- package/dist/components/base/DNavbarNav.vue.d.ts +0 -12
- package/dist/components/base/DNavbarToggle.vue.d.ts +0 -12
- package/dist/components/base/DOffcanvas.vue.d.ts +0 -12
- package/dist/components/base/DOverlay.vue.d.ts +0 -12
- package/dist/components/base/DPagination.vue.d.ts +0 -2
- package/dist/components/base/DPlaceholder.vue.d.ts +0 -12
- package/dist/components/base/DPopover.vue.d.ts +0 -12
- package/dist/components/base/DProgress.vue.d.ts +0 -12
- package/dist/components/base/DRow.vue.d.ts +0 -12
- package/dist/components/base/DSpinner.vue.d.ts +0 -2
- package/dist/components/base/DTable.vue.d.ts +0 -34
- package/dist/components/base/DTabs.vue.d.ts +0 -12
- package/dist/components/base/DToast.vue.d.ts +0 -12
- package/dist/components/base/DToaster.vue.d.ts +0 -12
- package/dist/components/base/DTooltip.vue.d.ts +0 -12
- package/dist/components/charts/DXBarChart.vue.d.ts +0 -7
- package/dist/components/charts/DXDoughnutChart.vue.d.ts +0 -24
- package/dist/components/charts/DXLineChart.vue.d.ts +0 -7
- package/dist/components/charts/chartTheme.d.ts +0 -59
- package/dist/components/charts/useThemedChart.d.ts +0 -40
- package/dist/components/extended/DXBasicForm.vue.d.ts +0 -10
- package/dist/components/extended/DXChoiceField.vue.d.ts +0 -26
- package/dist/components/extended/DXCurrencyInput.vue.d.ts +0 -27
- package/dist/components/extended/DXDashboard.vue.d.ts +0 -105
- package/dist/components/extended/DXDashboardNavbar.vue.d.ts +0 -86
- package/dist/components/extended/DXDashboardSidebar.vue.d.ts +0 -61
- package/dist/components/extended/DXField.vue.d.ts +0 -86
- package/dist/components/extended/DXFieldLabel.vue.d.ts +0 -18
- package/dist/components/extended/DXFieldShell.vue.d.ts +0 -73
- package/dist/components/extended/DXForm.vue.d.ts +0 -112
- package/dist/components/extended/DXFormField.vue.d.ts +0 -41
- package/dist/components/extended/DXNumericField.vue.d.ts +0 -23
- package/dist/components/extended/DXRepeater.vue.d.ts +0 -46
- package/dist/components/extended/DXRepeaterCards.vue.d.ts +0 -45
- package/dist/components/extended/DXStatCard.vue.d.ts +0 -56
- package/dist/components/extended/DXSwitch.vue.d.ts +0 -46
- package/dist/components/extended/DXTable.vue.d.ts +0 -466
- package/dist/components/extended/DXTableEditorModal.vue.d.ts +0 -100
- package/dist/components/extended/DXTablePagination.vue.d.ts +0 -50
- package/dist/components/extended/DXTableShell.vue.d.ts +0 -24
- package/dist/components/extended/DXUserAvatar.vue.d.ts +0 -40
- package/dist/components/extended/dxFieldContext.d.ts +0 -11
- package/dist/composables/defineForm.d.ts +0 -41
- package/dist/composables/useAsyncOptions.d.ts +0 -20
- package/dist/composables/useContainerWidth.d.ts +0 -96
- package/dist/composables/useForm.d.ts +0 -46
- package/dist/composables/useResourceEditor.d.ts +0 -75
- package/dist/composables/useToast.d.ts +0 -2
- package/dist/index.d.ts +0 -93
- package/dist/types/index.d.ts +0 -477
- package/dist/types/navigation.d.ts +0 -43
- package/dist/utils/api.d.ts +0 -30
- package/dist/utils/formSchema.d.ts +0 -59
- package/dist/utils/objectPath.d.ts +0 -18
|
@@ -1,12 +0,0 @@
|
|
|
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,12 +0,0 @@
|
|
|
1
|
-
declare var __VLS_7: string | number, __VLS_8: {};
|
|
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,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
/**
|
|
3
|
-
* Column definitions. Declared as a prop (rather than passed through
|
|
4
|
-
* `$attrs`) so we can shield the field `formatter` signature across
|
|
5
|
-
* bootstrap-vue-next versions.
|
|
6
|
-
*/
|
|
7
|
-
fields?: any[];
|
|
8
|
-
};
|
|
9
|
-
declare var __VLS_16: string | number, __VLS_17: any;
|
|
10
|
-
type __VLS_Slots = {} & {
|
|
11
|
-
[K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any;
|
|
12
|
-
};
|
|
13
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
14
|
-
refresh: () => void;
|
|
15
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
-
"update:sortBy": (...args: any[]) => void;
|
|
17
|
-
"update:currentPage": (...args: any[]) => void;
|
|
18
|
-
"update:busy": (...args: any[]) => void;
|
|
19
|
-
sorted: (...args: any[]) => void;
|
|
20
|
-
rowClicked: (...args: any[]) => void;
|
|
21
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
-
"onUpdate:sortBy"?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
"onUpdate:currentPage"?: ((...args: any[]) => any) | undefined;
|
|
24
|
-
"onUpdate:busy"?: ((...args: any[]) => any) | undefined;
|
|
25
|
-
onSorted?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
onRowClicked?: ((...args: any[]) => any) | undefined;
|
|
27
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
29
|
-
export default _default;
|
|
30
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
-
new (): {
|
|
32
|
-
$slots: S;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
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,12 +0,0 @@
|
|
|
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,12 +0,0 @@
|
|
|
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,12 +0,0 @@
|
|
|
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,7 +0,0 @@
|
|
|
1
|
-
import { type ThemedChartProps } from "./useThemedChart";
|
|
2
|
-
type __VLS_Props = ThemedChartProps<"bar">;
|
|
3
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
4
|
-
currencySymbol: string;
|
|
5
|
-
showLegend: boolean;
|
|
6
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type ChartValueFormat } from "./chartTheme";
|
|
2
|
-
interface Props {
|
|
3
|
-
/** Slice labels. */
|
|
4
|
-
labels: string[];
|
|
5
|
-
/** Convenience: a single number array (one value per label). */
|
|
6
|
-
data?: number[];
|
|
7
|
-
/** Full Chart.js datasets (alternative to `data`). */
|
|
8
|
-
datasets?: any[];
|
|
9
|
-
/** Chart.js options; deep-merged over the themed defaults. */
|
|
10
|
-
options?: Record<string, any>;
|
|
11
|
-
/** Format tooltip values. */
|
|
12
|
-
valueFormat?: ChartValueFormat;
|
|
13
|
-
/** Currency symbol for valueFormat: "currency" (default "£"). */
|
|
14
|
-
currencySymbol?: string;
|
|
15
|
-
/** Locale for number formatting. */
|
|
16
|
-
locale?: string;
|
|
17
|
-
/** Show the legend (default: true — slices need identifying). */
|
|
18
|
-
showLegend?: boolean;
|
|
19
|
-
}
|
|
20
|
-
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
21
|
-
currencySymbol: string;
|
|
22
|
-
showLegend: boolean;
|
|
23
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type ThemedChartProps } from "./useThemedChart";
|
|
2
|
-
type __VLS_Props = ThemedChartProps<"line">;
|
|
3
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
4
|
-
currencySymbol: string;
|
|
5
|
-
showLegend: boolean;
|
|
6
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
export default _default;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { type Ref } from "vue";
|
|
2
|
-
export type ChartValueFormat = "number" | "currency" | "percent";
|
|
3
|
-
/** Deep-merge consumer `options` over the themed defaults (arrays replace). */
|
|
4
|
-
export declare function mergeOptions(base: Record<string, any>, override: Record<string, any>): Record<string, any>;
|
|
5
|
-
/**
|
|
6
|
-
* Register Chart.js (idempotent). Uses the full `registerables` set so every
|
|
7
|
-
* controller / scale / element / plugin (incl. Legend, Tooltip, Filler) is
|
|
8
|
-
* available — chart.js is an external peer dep, so this adds no bundle weight.
|
|
9
|
-
*/
|
|
10
|
-
export declare function registerCharts(): void;
|
|
11
|
-
export declare const PALETTE_VARS: Array<[string, string]>;
|
|
12
|
-
/**
|
|
13
|
-
* Resolve the themed categorical palette.
|
|
14
|
-
*
|
|
15
|
-
* @param scope The chart's container element; its computed style decides which
|
|
16
|
-
* `data-bs-theme` scope applies. Omit (or pass null) to read the document
|
|
17
|
-
* root — the pre-#161 behaviour, kept so the exported signature stays
|
|
18
|
-
* backward compatible.
|
|
19
|
-
*/
|
|
20
|
-
export declare function getPalette(scope?: Element | null): string[];
|
|
21
|
-
/**
|
|
22
|
-
* A version ref that increments whenever a `data-bs-theme` attribute changes
|
|
23
|
-
* anywhere in the document. Read it inside a computed that resolves theme
|
|
24
|
-
* variables to make that computed re-run on a colour-mode switch.
|
|
25
|
-
*
|
|
26
|
-
* The observer is started on first use and disconnected when the last consumer's
|
|
27
|
-
* effect scope is disposed, so nothing leaks after the charts unmount. Called
|
|
28
|
-
* outside an effect scope (or without a DOM) it is a no-op returning a static
|
|
29
|
-
* ref — there would be no teardown hook to disconnect the observer.
|
|
30
|
-
*/
|
|
31
|
-
export declare function useColorModeVersion(): Ref<number>;
|
|
32
|
-
/** Add an alpha channel to a hex or rgb() colour (best-effort). */
|
|
33
|
-
export declare function withAlpha(color: string, alpha: number): string;
|
|
34
|
-
/** Format a numeric value per the chart's value format (for tick/tooltips). */
|
|
35
|
-
export declare function formatValue(value: number, format: ChartValueFormat | undefined, currencySymbol: string, locale?: string): string;
|
|
36
|
-
export interface BaseOptionArgs {
|
|
37
|
-
valueFormat?: ChartValueFormat;
|
|
38
|
-
currencySymbol?: string;
|
|
39
|
-
locale?: string;
|
|
40
|
-
/** Show the legend (default: false for a single dataset, true for many). */
|
|
41
|
-
showLegend?: boolean;
|
|
42
|
-
/** Whether the chart has value axes (bar/line) vs none (doughnut). */
|
|
43
|
-
hasValueAxis?: boolean;
|
|
44
|
-
/** The chart's container element — decides which `data-bs-theme` scope the
|
|
45
|
-
* grid/tick colours resolve against (#161). Defaults to the document root. */
|
|
46
|
-
scope?: Element | null;
|
|
47
|
-
}
|
|
48
|
-
/** Dashboard default Chart.js options merged under any consumer `options`. */
|
|
49
|
-
export declare function baseOptions(args: BaseOptionArgs): Record<string, any>;
|
|
50
|
-
/**
|
|
51
|
-
* Apply the themed palette to any dataset that doesn't set its own colours.
|
|
52
|
-
* Bar: one colour per dataset (or per bar for a single dataset). Line: a themed
|
|
53
|
-
* stroke + translucent fill. Doughnut/pie: one colour per slice.
|
|
54
|
-
*
|
|
55
|
-
* `scope` is the chart's container element; the palette is resolved from its
|
|
56
|
-
* computed style so a nested `data-bs-theme` container themes correctly (#161).
|
|
57
|
-
* Omit it to resolve against the document root.
|
|
58
|
-
*/
|
|
59
|
-
export declare function applyPalette(datasets: any[], kind: "bar" | "line" | "doughnut", labelsCount: number, scope?: Element | null): any[];
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { type ComputedRef, type Ref } from "vue";
|
|
2
|
-
import type { ChartData, ChartDataset, ChartOptions } from "chart.js";
|
|
3
|
-
import { type ChartValueFormat } from "./chartTheme";
|
|
4
|
-
/**
|
|
5
|
-
* Shared props for the value-axis chart wrappers (`DXBarChart`, `DXLineChart`).
|
|
6
|
-
* `DXBarChart` and `DXLineChart` differ ONLY in the chart.js component they
|
|
7
|
-
* render and the palette kind — everything else (theming, option-merge,
|
|
8
|
-
* legend-default) is identical, and lived duplicated in both SFCs (#135).
|
|
9
|
-
*/
|
|
10
|
-
export interface ThemedChartProps<TType extends "bar" | "line"> {
|
|
11
|
-
/** X-axis category labels. */
|
|
12
|
-
labels: string[];
|
|
13
|
-
/** Chart.js datasets. Colours are themed when a dataset omits them. */
|
|
14
|
-
datasets: ChartDataset<TType>[];
|
|
15
|
-
/** Chart.js options; deep-merged over the themed defaults. */
|
|
16
|
-
options?: ChartOptions<TType>;
|
|
17
|
-
/** Format value-axis ticks and tooltips. */
|
|
18
|
-
valueFormat?: ChartValueFormat;
|
|
19
|
-
/** Currency symbol for valueFormat: "currency" (default "£"). */
|
|
20
|
-
currencySymbol?: string;
|
|
21
|
-
/** Locale for number formatting. */
|
|
22
|
-
locale?: string;
|
|
23
|
-
/** Show the legend (default: only when there is more than one dataset). */
|
|
24
|
-
showLegend?: boolean;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The themed-chart body shared by `DXBarChart` and `DXLineChart`: applies the
|
|
28
|
-
* data-viz palette to un-coloured datasets and deep-merges the consumer's
|
|
29
|
-
* `options` over the dashboard-friendly defaults. Pass the reactive `props`
|
|
30
|
-
* object (property access stays reactive inside the computeds).
|
|
31
|
-
*
|
|
32
|
-
* `host` is the chart's own container element (a template ref). It is BOTH the
|
|
33
|
-
* `data-bs-theme` scope the palette resolves against and — being a ref read
|
|
34
|
-
* inside the computeds — the trigger that re-themes once it is populated on
|
|
35
|
-
* mount, since the first render happens before a template ref exists (#161).
|
|
36
|
-
*/
|
|
37
|
-
export declare function useThemedChart<TType extends "bar" | "line">(type: TType, props: ThemedChartProps<TType>, host: Ref<HTMLElement | null>): {
|
|
38
|
-
chartData: ComputedRef<ChartData<TType>>;
|
|
39
|
-
mergedOptions: ComputedRef<ChartOptions<TType>>;
|
|
40
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
2
|
-
[x: string]: ((props: any) => any) | undefined;
|
|
3
|
-
[x: number]: ((props: any) => any) | undefined;
|
|
4
|
-
}>;
|
|
5
|
-
export default _default;
|
|
6
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
7
|
-
new (): {
|
|
8
|
-
$slots: S;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { FieldDefinition, FieldOption } from "../../types";
|
|
2
|
-
interface Props {
|
|
3
|
-
/** Field definition (type select/radio/checkbox-group + `searchable`). */
|
|
4
|
-
field: FieldDefinition;
|
|
5
|
-
/** Current model value. */
|
|
6
|
-
modelValue: any;
|
|
7
|
-
/** Resolved options (async-loaded or static). */
|
|
8
|
-
options?: FieldOption[];
|
|
9
|
-
/** Validation state passed to the control. */
|
|
10
|
-
state?: boolean | null;
|
|
11
|
-
/** Pre-merged disabled state (`isDisabled || isReadonly || isPlaintext`). */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
/** Escape-hatch control props, already guard-merged by DXField. */
|
|
14
|
-
controlProps?: Record<string, any>;
|
|
15
|
-
/**
|
|
16
|
-
* Whether async options have resolved (a searchable select must not render
|
|
17
|
-
* before its options load, or it shows the raw id instead of the label).
|
|
18
|
-
*/
|
|
19
|
-
optionsReady?: boolean;
|
|
20
|
-
}
|
|
21
|
-
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
22
|
-
"update:modelValue": (value: any) => any;
|
|
23
|
-
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
24
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
25
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
/** The numeric model. In `minorUnits` mode this is the integer minor-unit
|
|
3
|
-
* amount (e.g. pence); otherwise the major-unit amount. `null` = empty. */
|
|
4
|
-
modelValue?: number | null;
|
|
5
|
-
/** Symbol shown in the prepend (default "£"). */
|
|
6
|
-
currencySymbol?: string;
|
|
7
|
-
/** Minor-unit decimal places the display pads to (default 2; 0 for a
|
|
8
|
-
* currency with no minor unit, e.g. JPY). */
|
|
9
|
-
decimals?: number;
|
|
10
|
-
/** Model is stored in integer minor units (pence) but edited in major
|
|
11
|
-
* units (pounds). Scale is 10^decimals. */
|
|
12
|
-
minorUnits?: boolean;
|
|
13
|
-
/** Input step in MAJOR units (default: one minor unit, e.g. 0.01). */
|
|
14
|
-
step?: string | number;
|
|
15
|
-
}
|
|
16
|
-
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
-
"update:modelValue": (value: number | null) => any;
|
|
18
|
-
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
19
|
-
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
20
|
-
}>, {
|
|
21
|
-
currencySymbol: string;
|
|
22
|
-
modelValue: number | null;
|
|
23
|
-
step: string | number;
|
|
24
|
-
decimals: number;
|
|
25
|
-
minorUnits: boolean;
|
|
26
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
-
export default _default;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import type { Navigation, NavbarActionsOnMobile, NavbarSearchAlign } 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
|
-
/** LocalStorage key for sidebar state persistence */
|
|
54
|
-
storageKey?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Unique ID for this dashboard instance (for nested dashboards)
|
|
57
|
-
* Used to scope visibility state when multiple dashboards exist on same page
|
|
58
|
-
* If not provided, uses global HTML class approach (for SSR compatibility)
|
|
59
|
-
*/
|
|
60
|
-
dashboardId?: string;
|
|
61
|
-
}
|
|
62
|
-
declare var __VLS_9: string, __VLS_10: any, __VLS_20: string, __VLS_21: any, __VLS_26: {}, __VLS_37: {};
|
|
63
|
-
type __VLS_Slots = {} & {
|
|
64
|
-
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
65
|
-
} & {
|
|
66
|
-
[K in NonNullable<typeof __VLS_20>]?: (props: typeof __VLS_21) => any;
|
|
67
|
-
} & {
|
|
68
|
-
default?: (props: typeof __VLS_26) => any;
|
|
69
|
-
} & {
|
|
70
|
-
default?: (props: typeof __VLS_37) => any;
|
|
71
|
-
};
|
|
72
|
-
declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
73
|
-
/**
|
|
74
|
-
* Show/hide the sidebar (same as clicking the navbar's hamburger). The
|
|
75
|
-
* dashboard owns the visibility state, so this is the supported way to drive
|
|
76
|
-
* it from outside — page content, a custom brand row, a keyboard shortcut.
|
|
77
|
-
* Also available as a slot binding on every forwarded `sidebar-*`/`navbar-*`
|
|
78
|
-
* slot, which is usually more convenient.
|
|
79
|
-
*/
|
|
80
|
-
toggleSidebar: () => void;
|
|
81
|
-
/** Whether the sidebar is currently hidden. */
|
|
82
|
-
sidebarHidden: import("vue").ComputedRef<boolean>;
|
|
83
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
84
|
-
title: string;
|
|
85
|
-
collapsibleGroups: boolean;
|
|
86
|
-
autoCollapseInactiveGroups: boolean;
|
|
87
|
-
user: {
|
|
88
|
-
name: string;
|
|
89
|
-
email: string;
|
|
90
|
-
} | null;
|
|
91
|
-
pageTitle: string;
|
|
92
|
-
searchAlign: NavbarSearchAlign;
|
|
93
|
-
actionsOnMobile: NavbarActionsOnMobile;
|
|
94
|
-
userMenuLabel: string;
|
|
95
|
-
contentMaxWidth: string;
|
|
96
|
-
storageKey: string;
|
|
97
|
-
dashboardId: string;
|
|
98
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
99
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
100
|
-
export default _default;
|
|
101
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
102
|
-
new (): {
|
|
103
|
-
$slots: S;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import type { NavbarActionsOnMobile, NavbarSearchAlign } from "../../types/navigation";
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
/** The signed-in user shown in the avatar dropdown. `null` hides the menu. */
|
|
4
|
-
user?: {
|
|
5
|
-
name: string;
|
|
6
|
-
email: string;
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
} | null;
|
|
9
|
-
/** Page title shown at the left of the navbar (hidden below the `md` breakpoint). */
|
|
10
|
-
pageTitle?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Horizontal alignment of the search slot content within its region
|
|
13
|
-
* (`"start"` = flush left, `"center"` = centred). Applies at every size:
|
|
14
|
-
* the region sits inline after the title from `md` up, and is its own
|
|
15
|
-
* full-width row below.
|
|
16
|
-
*/
|
|
17
|
-
searchAlign?: NavbarSearchAlign;
|
|
18
|
-
/**
|
|
19
|
-
* What the actions slot does below the `md` breakpoint: `"wrap"` moves it
|
|
20
|
-
* to its own full-width row (the bar grows), `"hide"` removes it entirely
|
|
21
|
-
* (for apps that relocate page actions into the page on phones).
|
|
22
|
-
*/
|
|
23
|
-
actionsOnMobile?: NavbarActionsOnMobile;
|
|
24
|
-
/**
|
|
25
|
-
* Accessible name for the user-menu trigger. Without one, a screen reader
|
|
26
|
-
* announces the trigger as the avatar's initial ("J") rather than as a menu.
|
|
27
|
-
*/
|
|
28
|
-
userMenuLabel?: string;
|
|
29
|
-
};
|
|
30
|
-
declare var __VLS_11: {}, __VLS_13: {}, __VLS_15: {
|
|
31
|
-
pageTitle: string;
|
|
32
|
-
}, __VLS_17: {
|
|
33
|
-
user: {
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
name: string;
|
|
36
|
-
email: string;
|
|
37
|
-
} | null;
|
|
38
|
-
}, __VLS_22: {
|
|
39
|
-
initial: string;
|
|
40
|
-
user: {
|
|
41
|
-
[key: string]: any;
|
|
42
|
-
name: string;
|
|
43
|
-
email: string;
|
|
44
|
-
};
|
|
45
|
-
}, __VLS_27: {
|
|
46
|
-
user: {
|
|
47
|
-
[key: string]: any;
|
|
48
|
-
name: string;
|
|
49
|
-
email: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
type __VLS_Slots = {} & {
|
|
53
|
-
'menu-icon'?: (props: typeof __VLS_11) => any;
|
|
54
|
-
} & {
|
|
55
|
-
search?: (props: typeof __VLS_13) => any;
|
|
56
|
-
} & {
|
|
57
|
-
actions?: (props: typeof __VLS_15) => any;
|
|
58
|
-
} & {
|
|
59
|
-
'user-menu'?: (props: typeof __VLS_17) => any;
|
|
60
|
-
} & {
|
|
61
|
-
'user-icon'?: (props: typeof __VLS_22) => any;
|
|
62
|
-
} & {
|
|
63
|
-
'user-menu-items'?: (props: typeof __VLS_27) => any;
|
|
64
|
-
};
|
|
65
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
66
|
-
toggleSidebar: () => any;
|
|
67
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
68
|
-
onToggleSidebar?: (() => any) | undefined;
|
|
69
|
-
}>, {
|
|
70
|
-
user: {
|
|
71
|
-
name: string;
|
|
72
|
-
email: string;
|
|
73
|
-
[key: string]: any;
|
|
74
|
-
} | null;
|
|
75
|
-
pageTitle: string;
|
|
76
|
-
searchAlign: NavbarSearchAlign;
|
|
77
|
-
actionsOnMobile: NavbarActionsOnMobile;
|
|
78
|
-
userMenuLabel: string;
|
|
79
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
80
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
81
|
-
export default _default;
|
|
82
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
83
|
-
new (): {
|
|
84
|
-
$slots: S;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { Navigation } 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
|
-
declare var __VLS_1: {
|
|
27
|
-
collapsed: boolean;
|
|
28
|
-
title: string;
|
|
29
|
-
}, __VLS_3: {
|
|
30
|
-
item: import("../..").NavigationItem;
|
|
31
|
-
isActive: boolean;
|
|
32
|
-
collapsed: boolean;
|
|
33
|
-
isExpanded: boolean;
|
|
34
|
-
}, __VLS_9: {
|
|
35
|
-
collapsed: boolean;
|
|
36
|
-
};
|
|
37
|
-
type __VLS_Slots = {} & {
|
|
38
|
-
brand?: (props: typeof __VLS_1) => any;
|
|
39
|
-
} & {
|
|
40
|
-
link?: (props: typeof __VLS_3) => any;
|
|
41
|
-
} & {
|
|
42
|
-
footer?: (props: typeof __VLS_9) => any;
|
|
43
|
-
};
|
|
44
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
-
toggle: () => any;
|
|
46
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
47
|
-
onToggle?: (() => any) | undefined;
|
|
48
|
-
}>, {
|
|
49
|
-
hidden: boolean;
|
|
50
|
-
title: string;
|
|
51
|
-
collapsed: boolean;
|
|
52
|
-
collapsibleGroups: boolean;
|
|
53
|
-
autoCollapseInactiveGroups: boolean;
|
|
54
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
55
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
56
|
-
export default _default;
|
|
57
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
58
|
-
new (): {
|
|
59
|
-
$slots: S;
|
|
60
|
-
};
|
|
61
|
-
};
|