@omnitend/dashboard-for-laravel 0.40.0 → 0.41.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 (108) hide show
  1. package/dist/charts.d.ts +19 -0
  2. package/dist/components/base/DAccordion.vue.d.ts +12 -0
  3. package/dist/components/base/DAccordionItem.vue.d.ts +12 -0
  4. package/dist/components/base/DAlert.vue.d.ts +17 -0
  5. package/dist/components/base/DAspect.vue.d.ts +12 -0
  6. package/dist/components/base/DAutocomplete.vue.d.ts +32 -0
  7. package/dist/components/base/DAvatar.vue.d.ts +12 -0
  8. package/dist/components/base/DBadge.vue.d.ts +12 -0
  9. package/dist/components/base/DBreadcrumb.vue.d.ts +12 -0
  10. package/dist/components/base/DButton.vue.d.ts +88 -0
  11. package/dist/components/base/DButtonGroup.vue.d.ts +12 -0
  12. package/dist/components/base/DButtonToolbar.vue.d.ts +12 -0
  13. package/dist/components/base/DCard.vue.d.ts +12 -0
  14. package/dist/components/base/DCol.vue.d.ts +12 -0
  15. package/dist/components/base/DCollapse.vue.d.ts +12 -0
  16. package/dist/components/base/DContainer.vue.d.ts +12 -0
  17. package/dist/components/base/DDropdown.vue.d.ts +12 -0
  18. package/dist/components/base/DDropdownDivider.vue.d.ts +2 -0
  19. package/dist/components/base/DDropdownItem.vue.d.ts +12 -0
  20. package/dist/components/base/DForm.vue.d.ts +12 -0
  21. package/dist/components/base/DFormCheckbox.vue.d.ts +12 -0
  22. package/dist/components/base/DFormCheckboxGroup.vue.d.ts +12 -0
  23. package/dist/components/base/DFormGroup.vue.d.ts +12 -0
  24. package/dist/components/base/DFormInput.vue.d.ts +2 -0
  25. package/dist/components/base/DFormInvalidFeedback.vue.d.ts +12 -0
  26. package/dist/components/base/DFormOtp.vue.d.ts +12 -0
  27. package/dist/components/base/DFormRadio.vue.d.ts +12 -0
  28. package/dist/components/base/DFormRadioGroup.vue.d.ts +12 -0
  29. package/dist/components/base/DFormSelect.vue.d.ts +27 -0
  30. package/dist/components/base/DFormSpinbutton.vue.d.ts +12 -0
  31. package/dist/components/base/DFormTags.vue.d.ts +12 -0
  32. package/dist/components/base/DFormText.vue.d.ts +12 -0
  33. package/dist/components/base/DFormTextarea.vue.d.ts +2 -0
  34. package/dist/components/base/DImage.vue.d.ts +12 -0
  35. package/dist/components/base/DInputGroup.vue.d.ts +12 -0
  36. package/dist/components/base/DLink.vue.d.ts +12 -0
  37. package/dist/components/base/DListGroup.vue.d.ts +12 -0
  38. package/dist/components/base/DListGroupItem.vue.d.ts +12 -0
  39. package/dist/components/base/DModal.vue.d.ts +12 -0
  40. package/dist/components/base/DNav.vue.d.ts +12 -0
  41. package/dist/components/base/DNavItem.vue.d.ts +12 -0
  42. package/dist/components/base/DNavbar.vue.d.ts +12 -0
  43. package/dist/components/base/DNavbarBrand.vue.d.ts +12 -0
  44. package/dist/components/base/DNavbarNav.vue.d.ts +12 -0
  45. package/dist/components/base/DNavbarToggle.vue.d.ts +12 -0
  46. package/dist/components/base/DOffcanvas.vue.d.ts +12 -0
  47. package/dist/components/base/DOverlay.vue.d.ts +12 -0
  48. package/dist/components/base/DPagination.vue.d.ts +2 -0
  49. package/dist/components/base/DPlaceholder.vue.d.ts +12 -0
  50. package/dist/components/base/DPopover.vue.d.ts +12 -0
  51. package/dist/components/base/DProgress.vue.d.ts +12 -0
  52. package/dist/components/base/DRow.vue.d.ts +12 -0
  53. package/dist/components/base/DSpinner.vue.d.ts +2 -0
  54. package/dist/components/base/DTable.vue.d.ts +34 -0
  55. package/dist/components/base/DTabs.vue.d.ts +12 -0
  56. package/dist/components/base/DToast.vue.d.ts +12 -0
  57. package/dist/components/base/DToaster.vue.d.ts +12 -0
  58. package/dist/components/base/DTooltip.vue.d.ts +12 -0
  59. package/dist/components/charts/DXBarChart.vue.d.ts +7 -0
  60. package/dist/components/charts/DXDoughnutChart.vue.d.ts +24 -0
  61. package/dist/components/charts/DXLineChart.vue.d.ts +7 -0
  62. package/dist/components/charts/chartTheme.d.ts +59 -0
  63. package/dist/components/charts/useThemedChart.d.ts +40 -0
  64. package/dist/components/extended/DXBasicForm.vue.d.ts +10 -0
  65. package/dist/components/extended/DXChoiceField.vue.d.ts +26 -0
  66. package/dist/components/extended/DXCurrencyInput.vue.d.ts +42 -0
  67. package/dist/components/extended/DXDashboard.vue.d.ts +105 -0
  68. package/dist/components/extended/DXDashboardNavbar.vue.d.ts +86 -0
  69. package/dist/components/extended/DXDashboardSidebar.vue.d.ts +61 -0
  70. package/dist/components/extended/DXField.vue.d.ts +86 -0
  71. package/dist/components/extended/DXFieldLabel.vue.d.ts +18 -0
  72. package/dist/components/extended/DXFieldShell.vue.d.ts +73 -0
  73. package/dist/components/extended/DXForm.vue.d.ts +112 -0
  74. package/dist/components/extended/DXFormField.vue.d.ts +41 -0
  75. package/dist/components/extended/DXNumericField.vue.d.ts +23 -0
  76. package/dist/components/extended/DXRepeater.vue.d.ts +46 -0
  77. package/dist/components/extended/DXRepeaterCards.vue.d.ts +45 -0
  78. package/dist/components/extended/DXStatCard.vue.d.ts +56 -0
  79. package/dist/components/extended/DXSwitch.vue.d.ts +47 -0
  80. package/dist/components/extended/DXTable.vue.d.ts +493 -0
  81. package/dist/components/extended/DXTableEditorModal.vue.d.ts +100 -0
  82. package/dist/components/extended/DXTablePagination.vue.d.ts +50 -0
  83. package/dist/components/extended/DXTableShell.vue.d.ts +24 -0
  84. package/dist/components/extended/DXUserAvatar.vue.d.ts +40 -0
  85. package/dist/components/extended/dxFieldContext.d.ts +11 -0
  86. package/dist/composables/defineForm.d.ts +41 -0
  87. package/dist/composables/useAsyncOptions.d.ts +20 -0
  88. package/dist/composables/useContainerWidth.d.ts +96 -0
  89. package/dist/composables/useForm.d.ts +46 -0
  90. package/dist/composables/useResourceEditor.d.ts +77 -0
  91. package/dist/composables/useToast.d.ts +2 -0
  92. package/dist/dashboard-for-laravel.js +2855 -2848
  93. package/dist/dashboard-for-laravel.js.map +1 -1
  94. package/dist/dashboard-for-laravel.umd.cjs +5 -5
  95. package/dist/dashboard-for-laravel.umd.cjs.map +1 -1
  96. package/dist/index.d.ts +93 -0
  97. package/dist/style.css +1 -1
  98. package/dist/types/index.d.ts +477 -0
  99. package/dist/types/navigation.d.ts +43 -0
  100. package/dist/utils/api.d.ts +30 -0
  101. package/dist/utils/formSchema.d.ts +59 -0
  102. package/dist/utils/objectPath.d.ts +18 -0
  103. package/docs/public/api-reference.json +3 -3
  104. package/docs/public/docs-map.md +1 -1
  105. package/package.json +1 -1
  106. package/resources/js/components/extended/DXDashboardSidebar.vue +9 -5
  107. package/resources/js/components/extended/DXTable.vue +3 -0
  108. package/resources/js/composables/useResourceEditor.ts +41 -1
@@ -0,0 +1,12 @@
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
+ };
@@ -0,0 +1,12 @@
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
+ };
@@ -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
+ };
@@ -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
+ };
@@ -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
+ };
@@ -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
+ };
@@ -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
+ };
@@ -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
+ };
@@ -0,0 +1,2 @@
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;
@@ -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
+ };
@@ -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
+ };
@@ -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
+ };
@@ -0,0 +1,12 @@
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
+ };
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,34 @@
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
+ };
@@ -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
+ };
@@ -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
+ };
@@ -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
+ };
@@ -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
+ };
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,24 @@
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;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,59 @@
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[];
@@ -0,0 +1,40 @@
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
+ };
@@ -0,0 +1,10 @@
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
+ };
@@ -0,0 +1,26 @@
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;
@@ -0,0 +1,42 @@
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
+ /** Trailing affix shown after the input — the unit the amount is per
16
+ * ("Pint", "per case", "each"). Omit for no trailing cell. The `#append`
17
+ * slot overrides it when the affix needs to be more than a string. */
18
+ append?: string;
19
+ }
20
+ declare var __VLS_14: {};
21
+ type __VLS_Slots = {} & {
22
+ append?: (props: typeof __VLS_14) => any;
23
+ };
24
+ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ "update:modelValue": (value: number | null) => any;
26
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
27
+ "onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
28
+ }>, {
29
+ currencySymbol: string;
30
+ append: string;
31
+ modelValue: number | null;
32
+ step: string | number;
33
+ decimals: number;
34
+ minorUnits: boolean;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
37
+ export default _default;
38
+ type __VLS_WithSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,105 @@
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
+ };