mgv-backoffice 1.18.0 → 1.19.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 (61) hide show
  1. package/README.md +10 -7
  2. package/dist/{src/components → components}/BaseActionButton.vue.d.ts +9 -13
  3. package/dist/{src/components → components}/BaseAlert.vue.d.ts +3 -2
  4. package/dist/components/BaseAppLayout.vue.d.ts +28 -0
  5. package/dist/{src/components → components}/BaseBadge.vue.d.ts +7 -11
  6. package/dist/{src/components → components}/BaseBreadcrumb.vue.d.ts +3 -2
  7. package/dist/{src/components → components}/BaseButton.vue.d.ts +9 -12
  8. package/dist/{src/components → components}/BaseCollapsibleSection.vue.d.ts +7 -11
  9. package/dist/{src/components → components}/BaseConfirmModal.vue.d.ts +9 -12
  10. package/dist/{src/components → components}/BaseCopyButton.vue.d.ts +2 -1
  11. package/dist/{src/components → components}/BaseEntityPickerModal.vue.d.ts +8 -16
  12. package/dist/{src/components → components}/BaseLine.vue.d.ts +2 -1
  13. package/dist/{src/components → components}/BaseLogo.vue.d.ts +2 -1
  14. package/dist/{src/components → components}/BaseModal.vue.d.ts +7 -11
  15. package/dist/{src/components → components}/BaseModalShell.vue.d.ts +19 -17
  16. package/dist/{src/components → components}/BaseNotFoundPage.vue.d.ts +3 -2
  17. package/dist/components/BasePageHeader.vue.d.ts +28 -0
  18. package/dist/{src/components → components}/BaseRow.vue.d.ts +8 -12
  19. package/dist/components/BaseSidebar.vue.d.ts +41 -0
  20. package/dist/{src/components → components}/BaseSpinner.vue.d.ts +2 -1
  21. package/dist/{src/components → components}/BaseTextInputModal.vue.d.ts +8 -16
  22. package/dist/{src/components → components}/BaseToast.vue.d.ts +2 -1
  23. package/dist/{src/components → components}/BaseToolbarButton.vue.d.ts +9 -13
  24. package/dist/components/ColoredSquares.vue.d.ts +23 -0
  25. package/dist/{src/components → components}/EarningsCard.vue.d.ts +3 -2
  26. package/dist/{src/components → components}/EuroAmount.vue.d.ts +2 -1
  27. package/dist/{src/components → components}/Pagination.vue.d.ts +3 -2
  28. package/dist/{src/components → components}/TrendArrow.vue.d.ts +2 -1
  29. package/dist/index.d.ts +54 -1
  30. package/dist/ui-lib.css +2 -2
  31. package/dist/ui-lib.js +11 -11
  32. package/dist/ui-lib.umd.cjs +1 -1
  33. package/package.json +14 -13
  34. package/dist/src/components/BaseAppLayout.vue.d.ts +0 -31
  35. package/dist/src/components/BasePageHeader.vue.d.ts +0 -31
  36. package/dist/src/components/BaseSidebar.vue.d.ts +0 -46
  37. package/dist/src/components/ColoredSquares.vue.d.ts +0 -27
  38. package/dist/src/index.d.ts +0 -54
  39. /package/dist/{src/composables → composables}/useDebounce.d.ts +0 -0
  40. /package/dist/{src/composables → composables}/useEscapeKey.d.ts +0 -0
  41. /package/dist/{src/composables → composables}/useMobileSidebar.d.ts +0 -0
  42. /package/dist/{src/composables → composables}/useTheme.d.ts +0 -0
  43. /package/dist/{src/composables → composables}/useThemeClasses.d.ts +0 -0
  44. /package/dist/{src/composables → composables}/useToast.d.ts +0 -0
  45. /package/dist/{src/enums → enums}/AlertEnum.d.ts +0 -0
  46. /package/dist/{src/enums → enums}/BaseBadgeEnum.d.ts +0 -0
  47. /package/dist/{src/enums → enums}/BaseButtonEnum.d.ts +0 -0
  48. /package/dist/{src/enums → enums}/BaseButtonSizeEnum.d.ts +0 -0
  49. /package/dist/{src/enums → enums}/BaseLogoEnum.d.ts +0 -0
  50. /package/dist/{src/enums → enums}/BaseModalEnum.d.ts +0 -0
  51. /package/dist/{src/enums → enums}/BaseToastEnum.d.ts +0 -0
  52. /package/dist/{src/enums → enums}/ColorsEnums.d.ts +0 -0
  53. /package/dist/{src/enums → enums}/LineEnum.d.ts +0 -0
  54. /package/dist/{src/enums → enums}/PositioningEnum.d.ts +0 -0
  55. /package/dist/{src/types → types}/entityPicker.d.ts +0 -0
  56. /package/dist/{src/types → types}/sidebar.d.ts +0 -0
  57. /package/dist/{src/utils → utils}/format.d.ts +0 -0
  58. /package/dist/{src/utils → utils}/httpColors.d.ts +0 -0
  59. /package/dist/{src/utils → utils}/pnl.d.ts +0 -0
  60. /package/dist/{src/utils → utils}/sanitizeHtml.d.ts +0 -0
  61. /package/dist/{src/utils → utils}/util.d.ts +0 -0
package/README.md CHANGED
@@ -13,9 +13,12 @@ npm install mgv-backoffice
13
13
  These must be installed in your project:
14
14
 
15
15
  ```bash
16
- npm install vue@^3.3.0 vue-router@^4.0.0 @heroicons/vue@^2.0.0
16
+ npm install vue@^3.5.0 vue-router@^5.0.0 @heroicons/vue@^2.0.0
17
17
  ```
18
18
 
19
+ > `vue-router` 5.x is required (peer range `^5.0.0`) — it's what the library is
20
+ > developed and tested against. Upgrade from Router 4 before installing this library.
21
+
19
22
  ### Import Styles
20
23
 
21
24
  Include the library's stylesheet in your app entry point:
@@ -227,17 +230,17 @@ SVG brand logo component.
227
230
 
228
231
  | Prop | Type | Default | Description |
229
232
  | ------ | -------- | ---------------------- | ------------ |
230
- | `size` | `String` | `BaseLoginEnum.MEDIUM` | Logo size |
233
+ | `size` | `String` | `BaseLogoEnum.MEDIUM` | Logo size |
231
234
 
232
235
  **Example:**
233
236
 
234
237
  ```vue
235
238
  <template>
236
- <BaseLogo :size="BaseLoginEnum.LARGE" />
239
+ <BaseLogo :size="BaseLogoEnum.LARGE" />
237
240
  </template>
238
241
 
239
242
  <script setup lang="ts">
240
- import { BaseLogo, BaseLoginEnum } from 'mgv-backoffice'
243
+ import { BaseLogo, BaseLogoEnum } from 'mgv-backoffice'
241
244
  </script>
242
245
  ```
243
246
 
@@ -552,7 +555,7 @@ import {
552
555
  BaseBadgeEnum,
553
556
  BaseButtonEnum,
554
557
  BaseButtonSizeEnum,
555
- BaseLoginEnum,
558
+ BaseLogoEnum,
556
559
  BaseModalEnum,
557
560
  BaseToastEnum,
558
561
  ColorsEnums,
@@ -565,9 +568,9 @@ import {
565
568
  | -------------------- |---------------------------------------------------------------|
566
569
  | `AlertEnum` | `WARNING`, `ERROR`, `SUCCESS`, `INFO` |
567
570
  | `BaseBadgeEnum` | `WIN`, `LOSE` |
568
- | `BaseButtonEnum` | `RED`, `BLUE`, `WHITE`, `DARK`, `GREEN`, `YELLOW`, `PURPLE` |
571
+ | `BaseButtonEnum` | `RED`, `BLUE`, `WHITE`, `DARK`, `GREEN`, `EMERALD`, `YELLOW`, `PURPLE`, `SKY`, `GRAY`, `AMBER` |
569
572
  | `BaseButtonSizeEnum` | `EXTRA_SMALL`, `SMALL`, `BASE`, `LARGE`, `EXTRA_LARGE` |
570
- | `BaseLoginEnum` | `SMALL`, `MEDIUM`, `LARGE` |
573
+ | `BaseLogoEnum` | `SMALL`, `MEDIUM`, `LARGE` (`BaseLoginEnum` is a deprecated alias) |
571
574
  | `BaseModalEnum` | `DELETE`, `SUCCESS` |
572
575
  | `BaseToastEnum` | `SUCCESS`, `WARNING`, `ERROR` |
573
576
  | `ColorsEnums` | `NONE`, `RED`, `YELLOW`, `BLACK`, `GRAY`, `GREEN`, `BLUE` |
@@ -8,18 +8,13 @@ type __VLS_Props = {
8
8
  ariaLabel?: string;
9
9
  type?: 'button' | 'submit' | 'reset';
10
10
  };
11
- declare function __VLS_template(): {
12
- attrs: Partial<{}>;
13
- slots: {
14
- icon?(_: {
15
- iconClass: string;
16
- }): any;
17
- };
18
- refs: {};
19
- rootEl: any;
11
+ declare var __VLS_1: {
12
+ iconClass: string;
13
+ };
14
+ type __VLS_Slots = {} & {
15
+ icon?: (props: typeof __VLS_1) => any;
20
16
  };
21
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
18
  click: (event: MouseEvent) => any;
24
19
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
20
  onClick?: ((event: MouseEvent) => any) | undefined;
@@ -32,9 +27,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
32
27
  fullWidth: boolean;
33
28
  ariaLabel: string;
34
29
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
+ declare const _default: typeof __VLS_export;
36
32
  export default _default;
37
- type __VLS_WithTemplateSlots<T, S> = T & {
33
+ type __VLS_WithSlots<T, S> = T & {
38
34
  new (): {
39
35
  $slots: S;
40
36
  };
@@ -1,6 +1,6 @@
1
1
  import { AlertEnum } from '../enums/AlertEnum';
2
2
  import { PropType } from 'vue';
3
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
4
  title: {
5
5
  type: StringConstructor;
6
6
  required: false;
@@ -25,5 +25,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
25
25
  }>> & Readonly<{}>, {
26
26
  title: string;
27
27
  color: AlertEnum;
28
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
29
+ declare const _default: typeof __VLS_export;
29
30
  export default _default;
@@ -0,0 +1,28 @@
1
+ interface Props {
2
+ /**
3
+ * Whether the sidebar should currently be rendered. Defaults to true.
4
+ * Set to false for routes that should occupy the full viewport (e.g.
5
+ * landing / marketing pages).
6
+ */
7
+ showSidebar?: boolean;
8
+ /** Skip-link label. Defaults to "Skip to main content". */
9
+ skipLinkLabel?: string;
10
+ }
11
+ declare var __VLS_1: {}, __VLS_3: {};
12
+ type __VLS_Slots = {} & {
13
+ sidebar?: (props: typeof __VLS_1) => any;
14
+ } & {
15
+ default?: (props: typeof __VLS_3) => any;
16
+ };
17
+ declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
18
+ showSidebar: boolean;
19
+ skipLinkLabel: string;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -1,13 +1,8 @@
1
- declare function __VLS_template(): {
2
- attrs: Partial<{}>;
3
- slots: {
4
- default?(_: {}): any;
5
- };
6
- refs: {};
7
- rootEl: any;
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
8
4
  };
9
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
6
  color: {
12
7
  type: StringConstructor;
13
8
  required: false;
@@ -18,9 +13,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
18
13
  required: false;
19
14
  };
20
15
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
22
18
  export default _default;
23
- type __VLS_WithTemplateSlots<T, S> = T & {
19
+ type __VLS_WithSlots<T, S> = T & {
24
20
  new (): {
25
21
  $slots: S;
26
22
  };
@@ -2,7 +2,7 @@ export interface BreadCrumb {
2
2
  name: string;
3
3
  url: string;
4
4
  }
5
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
6
  items: {
7
7
  type: () => BreadCrumb[];
8
8
  required: false;
@@ -27,5 +27,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
27
27
  }>> & Readonly<{}>, {
28
28
  path: string;
29
29
  items: BreadCrumb[];
30
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
31
+ declare const _default: typeof __VLS_export;
31
32
  export default _default;
@@ -1,15 +1,11 @@
1
1
  import { BaseButtonEnum } from '../enums/BaseButtonEnum';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- default?(_: {}): any;
6
- default?(_: {}): any;
7
- };
8
- refs: {};
9
- rootEl: any;
2
+ declare var __VLS_8: {}, __VLS_10: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_8) => any;
5
+ } & {
6
+ default?: (props: typeof __VLS_10) => any;
10
7
  };
11
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
8
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
9
  description: {
14
10
  type: StringConstructor;
15
11
  required: true;
@@ -119,9 +115,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
119
115
  isDisable: boolean;
120
116
  isLoading: boolean;
121
117
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
122
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
118
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
119
+ declare const _default: typeof __VLS_export;
123
120
  export default _default;
124
- type __VLS_WithTemplateSlots<T, S> = T & {
121
+ type __VLS_WithSlots<T, S> = T & {
125
122
  new (): {
126
123
  $slots: S;
127
124
  };
@@ -12,23 +12,19 @@ interface Props {
12
12
  */
13
13
  bodyClass?: string;
14
14
  }
15
- declare function __VLS_template(): {
16
- attrs: Partial<{}>;
17
- slots: {
18
- default?(_: {}): any;
19
- };
20
- refs: {};
21
- rootEl: any;
15
+ declare var __VLS_1: {};
16
+ type __VLS_Slots = {} & {
17
+ default?: (props: typeof __VLS_1) => any;
22
18
  };
23
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
+ declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
20
  toggle: () => any;
26
21
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
27
22
  onToggle?: (() => any) | undefined;
28
23
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
30
26
  export default _default;
31
- type __VLS_WithTemplateSlots<T, S> = T & {
27
+ type __VLS_WithSlots<T, S> = T & {
32
28
  new (): {
33
29
  $slots: S;
34
30
  };
@@ -7,17 +7,13 @@ interface Props {
7
7
  variant?: 'danger' | 'warning';
8
8
  submitting?: boolean;
9
9
  }
10
- declare function __VLS_template(): {
11
- attrs: Partial<{}>;
12
- slots: {
13
- message?(_: {}): any;
14
- default?(_: {}): any;
15
- };
16
- refs: {};
17
- rootEl: any;
10
+ declare var __VLS_16: {}, __VLS_18: {};
11
+ type __VLS_Slots = {} & {
12
+ message?: (props: typeof __VLS_16) => any;
13
+ } & {
14
+ default?: (props: typeof __VLS_18) => any;
18
15
  };
19
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
17
  cancel: () => any;
22
18
  confirm: () => any;
23
19
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
@@ -30,9 +26,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
30
26
  variant: "danger" | "warning";
31
27
  submitting: boolean;
32
28
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
34
31
  export default _default;
35
- type __VLS_WithTemplateSlots<T, S> = T & {
32
+ type __VLS_WithSlots<T, S> = T & {
36
33
  new (): {
37
34
  $slots: S;
38
35
  };
@@ -11,7 +11,7 @@ type __VLS_Props = {
11
11
  /** Icon size class. */
12
12
  iconClass?: string;
13
13
  };
14
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
15
  error: (error: unknown) => any;
16
16
  copied: () => any;
17
17
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -23,4 +23,5 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
23
23
  resetMs: number;
24
24
  iconClass: string;
25
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: typeof __VLS_export;
26
27
  export default _default;
@@ -19,18 +19,11 @@ interface Props {
19
19
  submittingText?: string;
20
20
  submitting?: boolean;
21
21
  }
22
- declare function __VLS_template(): {
23
- attrs: Partial<{}>;
24
- slots: {
25
- icon?(_: {}): any;
26
- };
27
- refs: {
28
- searchInputRef: HTMLInputElement;
29
- };
30
- rootEl: any;
22
+ declare var __VLS_11: {};
23
+ type __VLS_Slots = {} & {
24
+ icon?: (props: typeof __VLS_11) => any;
31
25
  };
32
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
33
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
27
  cancel: () => any;
35
28
  confirm: (itemId: string) => any;
36
29
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
@@ -46,12 +39,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
46
39
  searchPlaceholder: string;
47
40
  emptyMessage: string;
48
41
  noMatchMessage: string;
49
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
50
- searchInputRef: HTMLInputElement;
51
- }, any>;
52
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
43
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
44
+ declare const _default: typeof __VLS_export;
53
45
  export default _default;
54
- type __VLS_WithTemplateSlots<T, S> = T & {
46
+ type __VLS_WithSlots<T, S> = T & {
55
47
  new (): {
56
48
  $slots: S;
57
49
  };
@@ -1,5 +1,5 @@
1
1
  import { LineEnum } from '../enums/LineEnum';
2
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
3
  mode: {
4
4
  type: StringConstructor;
5
5
  required: false;
@@ -14,4 +14,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
14
14
  }>> & Readonly<{}>, {
15
15
  mode: string;
16
16
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
+ declare const _default: typeof __VLS_export;
17
18
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { BaseLogoEnum } from '../enums/BaseLogoEnum';
2
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
3
  size: {
4
4
  type: StringConstructor;
5
5
  required: false;
@@ -14,4 +14,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
14
14
  }>> & Readonly<{}>, {
15
15
  size: string;
16
16
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
+ declare const _default: typeof __VLS_export;
17
18
  export default _default;
@@ -1,14 +1,9 @@
1
1
  import { BaseModalEnum } from '../enums/BaseModalEnum';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- default?(_: {}): any;
6
- };
7
- refs: {};
8
- rootEl: any;
2
+ declare var __VLS_25: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_25) => any;
9
5
  };
10
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
12
7
  title: {
13
8
  type: StringConstructor;
14
9
  required: true;
@@ -56,9 +51,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
56
51
  mode: string;
57
52
  to: string;
58
53
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
59
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
54
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
55
+ declare const _default: typeof __VLS_export;
60
56
  export default _default;
61
- type __VLS_WithTemplateSlots<T, S> = T & {
57
+ type __VLS_WithSlots<T, S> = T & {
62
58
  new (): {
63
59
  $slots: S;
64
60
  };
@@ -25,22 +25,23 @@ interface Props {
25
25
  */
26
26
  subtitle?: string;
27
27
  }
28
- declare function __VLS_template(): {
29
- attrs: Partial<{}>;
30
- slots: {
31
- icon?(_: {}): any;
32
- icon?(_: {}): any;
33
- 'header-actions'?(_: {}): any;
34
- default?(_: {}): any;
35
- default?(_: {}): any;
36
- footer?(_: {}): any;
37
- footer?(_: {}): any;
38
- };
39
- refs: {};
40
- rootEl: any;
28
+ declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {};
29
+ type __VLS_Slots = {} & {
30
+ icon?: (props: typeof __VLS_7) => any;
31
+ } & {
32
+ 'header-actions'?: (props: typeof __VLS_9) => any;
33
+ } & {
34
+ default?: (props: typeof __VLS_11) => any;
35
+ } & {
36
+ footer?: (props: typeof __VLS_13) => any;
37
+ } & {
38
+ icon?: (props: typeof __VLS_15) => any;
39
+ } & {
40
+ default?: (props: typeof __VLS_17) => any;
41
+ } & {
42
+ footer?: (props: typeof __VLS_19) => any;
41
43
  };
42
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
43
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
44
+ declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
44
45
  cancel: () => any;
45
46
  backdrop: () => any;
46
47
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
@@ -52,9 +53,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
52
53
  manualClose: boolean;
53
54
  scrollable: boolean;
54
55
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
55
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
56
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
57
+ declare const _default: typeof __VLS_export;
56
58
  export default _default;
57
- type __VLS_WithTemplateSlots<T, S> = T & {
59
+ type __VLS_WithSlots<T, S> = T & {
58
60
  new (): {
59
61
  $slots: S;
60
62
  };
@@ -8,10 +8,11 @@ interface Props {
8
8
  /** Button label. Defaults to 'Go home'. */
9
9
  homeLabel?: string;
10
10
  }
11
- declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
11
+ declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
12
12
  code: string;
13
13
  message: string;
14
14
  homeRouteName: string;
15
15
  homeLabel: string;
16
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
17
18
  export default _default;
@@ -0,0 +1,28 @@
1
+ type IconColor = 'emerald' | 'sky' | 'red' | 'amber';
2
+ type __VLS_Props = {
3
+ title: string;
4
+ subtitle?: string;
5
+ iconColor?: IconColor;
6
+ maxWidthClass?: string;
7
+ };
8
+ declare var __VLS_1: {
9
+ iconClass: string;
10
+ }, __VLS_3: {};
11
+ type __VLS_Slots = {} & {
12
+ icon?: (props: typeof __VLS_1) => any;
13
+ } & {
14
+ actions?: (props: typeof __VLS_3) => any;
15
+ };
16
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ subtitle: string;
18
+ maxWidthClass: string;
19
+ iconColor: IconColor;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -1,13 +1,8 @@
1
- declare function __VLS_template(): {
2
- attrs: Partial<{}>;
3
- slots: {
4
- default?(_: {}): any;
5
- };
6
- refs: {};
7
- rootEl: HTMLDivElement;
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
8
4
  };
9
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
6
  bgColor: {
12
7
  type: StringConstructor;
13
8
  required: false;
@@ -21,10 +16,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
21
16
  };
22
17
  }>> & Readonly<{}>, {
23
18
  bgColor: string;
24
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
25
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
+ declare const _default: typeof __VLS_export;
26
22
  export default _default;
27
- type __VLS_WithTemplateSlots<T, S> = T & {
23
+ type __VLS_WithSlots<T, S> = T & {
28
24
  new (): {
29
25
  $slots: S;
30
26
  };
@@ -0,0 +1,41 @@
1
+ import { NavSection } from '../types/sidebar';
2
+ interface Props {
3
+ /** Nav sections (groups of items). */
4
+ sections: NavSection[];
5
+ /** Route name to navigate to when the logo / home button is clicked. */
6
+ homeRouteName?: string;
7
+ /** Optional app name shown in the footer next to the version. */
8
+ appName?: string;
9
+ /** Optional version string shown in the footer. */
10
+ version?: string;
11
+ /** Whether to render the dark/light toggle in the footer. */
12
+ showThemeToggle?: boolean;
13
+ }
14
+ declare var __VLS_1: {
15
+ size: number;
16
+ }, __VLS_13: {
17
+ size: number;
18
+ }, __VLS_25: {}, __VLS_27: {};
19
+ type __VLS_Slots = {} & {
20
+ logo?: (props: typeof __VLS_1) => any;
21
+ } & {
22
+ logo?: (props: typeof __VLS_13) => any;
23
+ } & {
24
+ status?: (props: typeof __VLS_25) => any;
25
+ } & {
26
+ footer?: (props: typeof __VLS_27) => any;
27
+ };
28
+ declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
29
+ homeRouteName: string;
30
+ appName: string;
31
+ version: string;
32
+ showThemeToggle: boolean;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
+ declare const _default: typeof __VLS_export;
36
+ export default _default;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -4,8 +4,9 @@ type __VLS_Props = {
4
4
  size?: SpinnerSize;
5
5
  color?: SpinnerColor;
6
6
  };
7
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
8
  color: SpinnerColor;
9
9
  size: SpinnerSize;
10
10
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -9,18 +9,11 @@ interface Props {
9
9
  submittingText?: string;
10
10
  submitting?: boolean;
11
11
  }
12
- declare function __VLS_template(): {
13
- attrs: Partial<{}>;
14
- slots: {
15
- icon?(_: {}): any;
16
- };
17
- refs: {
18
- nameInput: HTMLInputElement;
19
- };
20
- rootEl: any;
12
+ declare var __VLS_11: {};
13
+ type __VLS_Slots = {} & {
14
+ icon?: (props: typeof __VLS_11) => any;
21
15
  };
22
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
17
  cancel: () => any;
25
18
  confirm: (value: string) => any;
26
19
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
@@ -34,12 +27,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
34
27
  submitting: boolean;
35
28
  initialValue: string;
36
29
  inputLabel: string;
37
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
38
- nameInput: HTMLInputElement;
39
- }, any>;
40
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
31
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
32
+ declare const _default: typeof __VLS_export;
41
33
  export default _default;
42
- type __VLS_WithTemplateSlots<T, S> = T & {
34
+ type __VLS_WithSlots<T, S> = T & {
43
35
  new (): {
44
36
  $slots: S;
45
37
  };