mgv-backoffice 1.17.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.
- package/README.md +29 -14
- package/dist/{src/components → components}/BaseActionButton.vue.d.ts +9 -13
- package/dist/{src/components → components}/BaseAlert.vue.d.ts +3 -2
- package/dist/components/BaseAppLayout.vue.d.ts +28 -0
- package/dist/{src/components → components}/BaseBadge.vue.d.ts +7 -11
- package/dist/{src/components → components}/BaseBreadcrumb.vue.d.ts +3 -2
- package/dist/{src/components → components}/BaseButton.vue.d.ts +9 -28
- package/dist/{src/components → components}/BaseCollapsibleSection.vue.d.ts +7 -11
- package/dist/{src/components → components}/BaseConfirmModal.vue.d.ts +9 -12
- package/dist/{src/components → components}/BaseCopyButton.vue.d.ts +2 -1
- package/dist/{src/components → components}/BaseEntityPickerModal.vue.d.ts +8 -16
- package/dist/{src/components → components}/BaseLine.vue.d.ts +2 -1
- package/dist/{src/components → components}/BaseLogo.vue.d.ts +2 -1
- package/dist/{src/components → components}/BaseModal.vue.d.ts +12 -1
- package/dist/{src/components → components}/BaseModalShell.vue.d.ts +19 -17
- package/dist/{src/components → components}/BaseNotFoundPage.vue.d.ts +3 -2
- package/dist/components/BasePageHeader.vue.d.ts +28 -0
- package/dist/{src/components → components}/BaseRow.vue.d.ts +8 -12
- package/dist/components/BaseSidebar.vue.d.ts +41 -0
- package/dist/{src/components → components}/BaseSpinner.vue.d.ts +2 -1
- package/dist/{src/components → components}/BaseTextInputModal.vue.d.ts +8 -16
- package/dist/{src/components → components}/BaseToast.vue.d.ts +2 -1
- package/dist/{src/components → components}/BaseToolbarButton.vue.d.ts +9 -13
- package/dist/components/ColoredSquares.vue.d.ts +23 -0
- package/dist/{src/components → components}/EarningsCard.vue.d.ts +3 -2
- package/dist/{src/components → components}/EuroAmount.vue.d.ts +2 -1
- package/dist/{src/components → components}/Pagination.vue.d.ts +3 -2
- package/dist/{src/components → components}/TrendArrow.vue.d.ts +2 -1
- package/dist/{src/composables → composables}/useTheme.d.ts +7 -0
- package/dist/index.d.ts +54 -1
- package/dist/ui-lib.css +2 -2
- package/dist/ui-lib.js +411 -385
- package/dist/ui-lib.umd.cjs +1 -1
- package/package.json +18 -15
- package/src/components/BaseAlert.vue +58 -33
- package/src/components/BaseBadge.vue +1 -0
- package/src/components/BaseButton.vue +1 -9
- package/src/components/BaseModal.vue +35 -31
- package/src/components/BaseRow.vue +1 -1
- package/src/components/BaseSidebar.vue +1 -9
- package/src/components/BaseToast.vue +3 -6
- package/src/components/ColoredSquares.vue +3 -2
- package/src/components/Pagination.test.ts +85 -0
- package/src/components/Pagination.vue +44 -99
- package/src/components/TrendArrow.vue +8 -1
- package/src/composables/useTheme.ts +23 -1
- package/src/index.ts +1 -1
- package/tailwind.safelist.css +43 -123
- package/tailwind.safelist.js +35 -3
- package/dist/src/components/BaseAppLayout.vue.d.ts +0 -31
- package/dist/src/components/BasePageHeader.vue.d.ts +0 -31
- package/dist/src/components/BaseSidebar.vue.d.ts +0 -46
- package/dist/src/components/ColoredSquares.vue.d.ts +0 -27
- package/dist/src/index.d.ts +0 -54
- /package/dist/{src/composables → composables}/useDebounce.d.ts +0 -0
- /package/dist/{src/composables → composables}/useEscapeKey.d.ts +0 -0
- /package/dist/{src/composables → composables}/useMobileSidebar.d.ts +0 -0
- /package/dist/{src/composables → composables}/useThemeClasses.d.ts +0 -0
- /package/dist/{src/composables → composables}/useToast.d.ts +0 -0
- /package/dist/{src/enums → enums}/AlertEnum.d.ts +0 -0
- /package/dist/{src/enums → enums}/BaseBadgeEnum.d.ts +0 -0
- /package/dist/{src/enums → enums}/BaseButtonEnum.d.ts +0 -0
- /package/dist/{src/enums → enums}/BaseButtonSizeEnum.d.ts +0 -0
- /package/dist/{src/enums → enums}/BaseLogoEnum.d.ts +0 -0
- /package/dist/{src/enums → enums}/BaseModalEnum.d.ts +0 -0
- /package/dist/{src/enums → enums}/BaseToastEnum.d.ts +0 -0
- /package/dist/{src/enums → enums}/ColorsEnums.d.ts +0 -0
- /package/dist/{src/enums → enums}/LineEnum.d.ts +0 -0
- /package/dist/{src/enums → enums}/PositioningEnum.d.ts +0 -0
- /package/dist/{src/types → types}/entityPicker.d.ts +0 -0
- /package/dist/{src/types → types}/sidebar.d.ts +0 -0
- /package/dist/{src/utils → utils}/format.d.ts +0 -0
- /package/dist/{src/utils → utils}/httpColors.d.ts +0 -0
- /package/dist/{src/utils → utils}/pnl.d.ts +0 -0
- /package/dist/{src/utils → utils}/sanitizeHtml.d.ts +0 -0
- /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.
|
|
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:
|
|
@@ -39,6 +42,10 @@ Or include the pre-built CSS safelist:
|
|
|
39
42
|
@import 'mgv-backoffice/tailwind.safelist.css';
|
|
40
43
|
```
|
|
41
44
|
|
|
45
|
+
> Maintainers: `tailwind.safelist.js` is the single source of truth.
|
|
46
|
+
> `tailwind.safelist.css` is generated from it via `npm run safelist`
|
|
47
|
+
> (runs automatically before `npm run build`) — don't edit it by hand.
|
|
48
|
+
|
|
42
49
|
---
|
|
43
50
|
|
|
44
51
|
## Components
|
|
@@ -153,9 +160,7 @@ Button with color, size, loading state, and Vue Router integration.
|
|
|
153
160
|
| `ghost` | `Boolean` | `false` | Ghost/borderless style — no border or fill, coloured text + tinted hover (theme-aware). For compact toolbar/action buttons |
|
|
154
161
|
| `to` | `String` | — | Vue Router path (renders `<router-link>`) |
|
|
155
162
|
| `type` | `'button' \| 'submit' \| 'reset'` | `'button'` | HTML button type |
|
|
156
|
-
| `
|
|
157
|
-
| `iconSize` | `String` | — | Icon size class |
|
|
158
|
-
| `iconLeft` | `String` | — | Left-side icon name |
|
|
163
|
+
| `iconLeft` | `Boolean` | `false` | Render the slot icon before the label |
|
|
159
164
|
| `isRounded` | `Boolean` | — | Fully rounded corners |
|
|
160
165
|
| `isDisable` | `Boolean` | — | Disabled state |
|
|
161
166
|
| `size` | `String` | — | Size variant (use `BaseButtonSizeEnum`) |
|
|
@@ -225,17 +230,17 @@ SVG brand logo component.
|
|
|
225
230
|
|
|
226
231
|
| Prop | Type | Default | Description |
|
|
227
232
|
| ------ | -------- | ---------------------- | ------------ |
|
|
228
|
-
| `size` | `String` | `
|
|
233
|
+
| `size` | `String` | `BaseLogoEnum.MEDIUM` | Logo size |
|
|
229
234
|
|
|
230
235
|
**Example:**
|
|
231
236
|
|
|
232
237
|
```vue
|
|
233
238
|
<template>
|
|
234
|
-
<BaseLogo :size="
|
|
239
|
+
<BaseLogo :size="BaseLogoEnum.LARGE" />
|
|
235
240
|
</template>
|
|
236
241
|
|
|
237
242
|
<script setup lang="ts">
|
|
238
|
-
import { BaseLogo,
|
|
243
|
+
import { BaseLogo, BaseLogoEnum } from 'mgv-backoffice'
|
|
239
244
|
</script>
|
|
240
245
|
```
|
|
241
246
|
|
|
@@ -243,7 +248,14 @@ import { BaseLogo, BaseLoginEnum } from 'mgv-backoffice'
|
|
|
243
248
|
|
|
244
249
|
### BaseModal
|
|
245
250
|
|
|
246
|
-
|
|
251
|
+
> ⚠️ **Deprecated.** Prefer [`BaseConfirmModal`](#baseconfirmmodal) for confirm/cancel
|
|
252
|
+
> flows or [`BaseModalShell`](#basemodalshell) for custom dialogs — they support dark
|
|
253
|
+
> mode, teleport to `<body>`, and slot-based composition. Kept for backward
|
|
254
|
+
> compatibility.
|
|
255
|
+
|
|
256
|
+
Confirmation dialog with support for delete and success modes. `DELETE` mode renders
|
|
257
|
+
the confirm/cancel pair; any other mode renders the title, optional `description`,
|
|
258
|
+
the default slot, and a single OK button that emits `closeModal`.
|
|
247
259
|
|
|
248
260
|
**Props:**
|
|
249
261
|
|
|
@@ -514,8 +526,8 @@ Up/down trend indicator displayed as a colored badge.
|
|
|
514
526
|
|
|
515
527
|
| Prop | Type | Default | Description |
|
|
516
528
|
| -------- | -------- | ------- |------------------------------------------------------|
|
|
517
|
-
| `number` | `Number` | — | Positive = green arrow up, negative = red arrow down |
|
|
518
|
-
| `icon` | `String` | — | Optional
|
|
529
|
+
| `number` | `Number` | — | Positive = green arrow up, negative = red arrow down, zero = neutral gray dash |
|
|
530
|
+
| `icon` | `String` | — | Optional suffix appended after the number (e.g. `"%"`) |
|
|
519
531
|
|
|
520
532
|
**Example:**
|
|
521
533
|
|
|
@@ -523,6 +535,7 @@ Up/down trend indicator displayed as a colored badge.
|
|
|
523
535
|
<template>
|
|
524
536
|
<TrendArrow :number="12.5" /> <!-- Green up arrow -->
|
|
525
537
|
<TrendArrow :number="-3.2" /> <!-- Red down arrow -->
|
|
538
|
+
<TrendArrow :number="0" /> <!-- Neutral gray dash -->
|
|
526
539
|
</template>
|
|
527
540
|
|
|
528
541
|
<script setup lang="ts">
|
|
@@ -542,7 +555,7 @@ import {
|
|
|
542
555
|
BaseBadgeEnum,
|
|
543
556
|
BaseButtonEnum,
|
|
544
557
|
BaseButtonSizeEnum,
|
|
545
|
-
|
|
558
|
+
BaseLogoEnum,
|
|
546
559
|
BaseModalEnum,
|
|
547
560
|
BaseToastEnum,
|
|
548
561
|
ColorsEnums,
|
|
@@ -555,9 +568,9 @@ import {
|
|
|
555
568
|
| -------------------- |---------------------------------------------------------------|
|
|
556
569
|
| `AlertEnum` | `WARNING`, `ERROR`, `SUCCESS`, `INFO` |
|
|
557
570
|
| `BaseBadgeEnum` | `WIN`, `LOSE` |
|
|
558
|
-
| `BaseButtonEnum` | `RED`, `BLUE`, `WHITE`, `DARK`, `GREEN`, `YELLOW`, `PURPLE`
|
|
571
|
+
| `BaseButtonEnum` | `RED`, `BLUE`, `WHITE`, `DARK`, `GREEN`, `EMERALD`, `YELLOW`, `PURPLE`, `SKY`, `GRAY`, `AMBER` |
|
|
559
572
|
| `BaseButtonSizeEnum` | `EXTRA_SMALL`, `SMALL`, `BASE`, `LARGE`, `EXTRA_LARGE` |
|
|
560
|
-
| `
|
|
573
|
+
| `BaseLogoEnum` | `SMALL`, `MEDIUM`, `LARGE` (`BaseLoginEnum` is a deprecated alias) |
|
|
561
574
|
| `BaseModalEnum` | `DELETE`, `SUCCESS` |
|
|
562
575
|
| `BaseToastEnum` | `SUCCESS`, `WARNING`, `ERROR` |
|
|
563
576
|
| `ColorsEnums` | `NONE`, `RED`, `YELLOW`, `BLACK`, `GRAY`, `GREEN`, `BLUE` |
|
|
@@ -1005,6 +1018,7 @@ import { BaseCopyButton, BaseToastEnum } from 'mgv-backoffice'
|
|
|
1005
1018
|
|
|
1006
1019
|
```ts
|
|
1007
1020
|
import {
|
|
1021
|
+
initTheme,
|
|
1008
1022
|
useTheme,
|
|
1009
1023
|
useThemeClasses,
|
|
1010
1024
|
useEscapeKey,
|
|
@@ -1016,7 +1030,8 @@ import {
|
|
|
1016
1030
|
|
|
1017
1031
|
| Composable | Purpose |
|
|
1018
1032
|
| ---------- | ------- |
|
|
1019
|
-
| `
|
|
1033
|
+
| `initTheme({ storageKey? })` | Explicitly initialize the theme singleton. Call in your app entry point **before mounting** when you need a custom storage key — library components call `useTheme()` internally, so a component mounting first would otherwise lock in the default key (a dev-mode warning fires if that happens). |
|
|
1034
|
+
| `useTheme({ storageKey? })` | Singleton dark/light controller. Toggles `<html class="dark">` and persists via localStorage (default key `'mgv-theme'`). Prefer `initTheme` at app entry for custom keys. |
|
|
1020
1035
|
| `useThemeClasses()` | Named Tailwind class roles for dark/light (card, border, primaryText, mutedText, dimText, input, ghostButton, emeraldText, redText, …). Returns computed refs auto-unwrapped in templates. |
|
|
1021
1036
|
| `useEscapeKey(handler)` | Component-scoped Escape key listener. |
|
|
1022
1037
|
| `useDebouncedRef(source, delay?)` | Debounced mirror of a ref. Timer cleared on scope dispose. |
|
|
@@ -8,18 +8,13 @@ type __VLS_Props = {
|
|
|
8
8
|
ariaLabel?: string;
|
|
9
9
|
type?: 'button' | 'submit' | 'reset';
|
|
10
10
|
};
|
|
11
|
-
declare
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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, {},
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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, {},
|
|
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
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -28,14 +24,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
28
24
|
required: false;
|
|
29
25
|
default: string;
|
|
30
26
|
};
|
|
31
|
-
icon: {
|
|
32
|
-
type: StringConstructor;
|
|
33
|
-
required: false;
|
|
34
|
-
};
|
|
35
|
-
iconSize: {
|
|
36
|
-
type: StringConstructor;
|
|
37
|
-
required: false;
|
|
38
|
-
};
|
|
39
27
|
iconLeft: {
|
|
40
28
|
type: BooleanConstructor;
|
|
41
29
|
required: false;
|
|
@@ -86,14 +74,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
86
74
|
required: false;
|
|
87
75
|
default: string;
|
|
88
76
|
};
|
|
89
|
-
icon: {
|
|
90
|
-
type: StringConstructor;
|
|
91
|
-
required: false;
|
|
92
|
-
};
|
|
93
|
-
iconSize: {
|
|
94
|
-
type: StringConstructor;
|
|
95
|
-
required: false;
|
|
96
|
-
};
|
|
97
77
|
iconLeft: {
|
|
98
78
|
type: BooleanConstructor;
|
|
99
79
|
required: false;
|
|
@@ -135,9 +115,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
135
115
|
isDisable: boolean;
|
|
136
116
|
isLoading: boolean;
|
|
137
117
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
138
|
-
declare const
|
|
118
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
119
|
+
declare const _default: typeof __VLS_export;
|
|
139
120
|
export default _default;
|
|
140
|
-
type
|
|
121
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
141
122
|
new (): {
|
|
142
123
|
$slots: S;
|
|
143
124
|
};
|
|
@@ -12,23 +12,19 @@ interface Props {
|
|
|
12
12
|
*/
|
|
13
13
|
bodyClass?: string;
|
|
14
14
|
}
|
|
15
|
-
declare
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
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
|
-
|
|
51
|
-
|
|
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
|
|
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
|
|
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
|
|
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,5 +1,9 @@
|
|
|
1
1
|
import { BaseModalEnum } from '../enums/BaseModalEnum';
|
|
2
|
-
declare
|
|
2
|
+
declare var __VLS_25: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_25) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
7
|
title: {
|
|
4
8
|
type: StringConstructor;
|
|
5
9
|
required: true;
|
|
@@ -47,4 +51,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
47
51
|
mode: string;
|
|
48
52
|
to: string;
|
|
49
53
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
54
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
55
|
+
declare const _default: typeof __VLS_export;
|
|
50
56
|
export default _default;
|
|
57
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
58
|
+
new (): {
|
|
59
|
+
$slots: S;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -25,22 +25,23 @@ interface Props {
|
|
|
25
25
|
*/
|
|
26
26
|
subtitle?: string;
|
|
27
27
|
}
|
|
28
|
-
declare
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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, {},
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
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, {},
|
|
25
|
-
declare const
|
|
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
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
24
|
new (): {
|
|
29
25
|
$slots: S;
|
|
30
26
|
};
|