@fy-/fws-vue 2.1.6 → 2.1.8
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/components/fws/CmsArticleBoxed.vue +23 -20
- package/components/fws/CmsArticleSingle.vue +74 -68
- package/components/fws/DataTable.vue +132 -125
- package/components/fws/FilterData.vue +99 -101
- package/components/fws/UserData.vue +33 -32
- package/components/fws/UserFlow.vue +163 -155
- package/components/fws/UserOAuth2.vue +73 -72
- package/components/fws/UserProfile.vue +98 -101
- package/components/fws/UserProfileStrict.vue +65 -64
- package/components/ssr/ClientOnly.ts +7 -7
- package/components/ui/DefaultBreadcrumb.vue +13 -13
- package/components/ui/DefaultConfirm.vue +35 -34
- package/components/ui/DefaultDateSelection.vue +19 -17
- package/components/ui/DefaultDropdown.vue +25 -25
- package/components/ui/DefaultDropdownLink.vue +15 -14
- package/components/ui/DefaultGallery.vue +179 -168
- package/components/ui/DefaultInput.vue +121 -126
- package/components/ui/DefaultLoader.vue +17 -17
- package/components/ui/DefaultModal.vue +35 -33
- package/components/ui/DefaultNotif.vue +50 -52
- package/components/ui/DefaultPaging.vue +92 -95
- package/components/ui/DefaultSidebar.vue +29 -25
- package/components/ui/DefaultTagInput.vue +121 -119
- package/components/ui/transitions/CollapseTransition.vue +1 -1
- package/components/ui/transitions/ExpandTransition.vue +1 -1
- package/components/ui/transitions/FadeTransition.vue +1 -1
- package/components/ui/transitions/ScaleTransition.vue +1 -1
- package/components/ui/transitions/SlideTransition.vue +3 -3
- package/composables/event-bus.ts +10 -8
- package/composables/rest.ts +59 -56
- package/composables/seo.ts +111 -95
- package/composables/ssr.ts +64 -62
- package/composables/templating.ts +57 -57
- package/composables/translations.ts +13 -13
- package/env.d.ts +6 -4
- package/index.ts +101 -98
- package/package.json +7 -7
- package/stores/serverRouter.ts +25 -25
- package/stores/user.ts +79 -72
- package/types.d.ts +65 -65
package/types.d.ts
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type i18next from 'i18next'
|
|
2
|
+
import type { Emitter } from 'mitt'
|
|
3
|
+
import type { Route } from 'vue-router'
|
|
4
|
+
import type VueRouter from 'vue-router'
|
|
5
|
+
import type { ClientOnly } from './components/ssr/ClientOnly'
|
|
6
|
+
import type { Events } from './composables/event-bus'
|
|
7
|
+
import type {
|
|
2
8
|
cropText,
|
|
3
9
|
formatBytes,
|
|
4
10
|
formatDate,
|
|
5
11
|
formatDatetime,
|
|
6
12
|
formatTimeago,
|
|
7
13
|
getContrastingTextColor,
|
|
8
|
-
} from
|
|
9
|
-
import { Emitter } from "mitt";
|
|
10
|
-
import { Events } from "./composables/event-bus";
|
|
11
|
-
import i18next from "i18next";
|
|
12
|
-
import { ClientOnly } from "./components/ssr/ClientOnly";
|
|
13
|
-
import type { Route } from "vue-router";
|
|
14
|
-
import type VueRouter from "vue-router";
|
|
14
|
+
} from './composables/templating'
|
|
15
15
|
|
|
16
16
|
export interface BreadcrumbLink {
|
|
17
|
-
name: string
|
|
18
|
-
to?: string
|
|
17
|
+
name: string
|
|
18
|
+
to?: string
|
|
19
|
+
}
|
|
20
|
+
export interface NavLink {
|
|
21
|
+
to: string
|
|
22
|
+
isExternal?: boolean
|
|
23
|
+
name: string
|
|
24
|
+
childrens?: NavLink[]
|
|
25
|
+
icon?: Component
|
|
26
|
+
id?: string
|
|
19
27
|
}
|
|
20
|
-
export type NavLink = {
|
|
21
|
-
to: string;
|
|
22
|
-
isExternal?: boolean;
|
|
23
|
-
name: string;
|
|
24
|
-
childrens?: NavLink[];
|
|
25
|
-
icon?: Component;
|
|
26
|
-
id?: string;
|
|
27
|
-
};
|
|
28
28
|
export interface FilterDataItems {
|
|
29
|
-
label: string
|
|
30
|
-
req: boolean
|
|
31
|
-
uid: string
|
|
32
|
-
type: string
|
|
33
|
-
restValue?: string
|
|
34
|
-
options?: any[][]
|
|
35
|
-
isHidden?: boolean
|
|
36
|
-
default?: any | undefined
|
|
37
|
-
formats?: Record<string, (value: any) => any
|
|
38
|
-
autocomplete?: (value: string) => Promise<any[]
|
|
39
|
-
formatRestValue?: (value: any) => any
|
|
40
|
-
onChangeValue?: (form: any, value: any) => void
|
|
41
|
-
focused?: boolean
|
|
29
|
+
label: string
|
|
30
|
+
req: boolean
|
|
31
|
+
uid: string
|
|
32
|
+
type: string
|
|
33
|
+
restValue?: string
|
|
34
|
+
options?: any[][]
|
|
35
|
+
isHidden?: boolean
|
|
36
|
+
default?: any | undefined
|
|
37
|
+
formats?: Record<string, (value: any) => any>
|
|
38
|
+
autocomplete?: (value: string) => Promise<any[]>
|
|
39
|
+
formatRestValue?: (value: any) => any
|
|
40
|
+
onChangeValue?: (form: any, value: any) => void
|
|
41
|
+
focused?: boolean
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export type $t = typeof i18next.t
|
|
45
|
-
export type $eventBus = Emitter<Events
|
|
46
|
-
export type $cropText = typeof cropText
|
|
47
|
-
export type $formatBytes = typeof formatBytes
|
|
48
|
-
export type $formatTimeago = typeof formatTimeago
|
|
49
|
-
export type $formatDatetime = typeof formatDatetime
|
|
50
|
-
export type $formatDate = typeof formatDate
|
|
51
|
-
export type $getContrastingTextColor = typeof getContrastingTextColor
|
|
44
|
+
export type $t = typeof i18next.t
|
|
45
|
+
export type $eventBus = Emitter<Events>
|
|
46
|
+
export type $cropText = typeof cropText
|
|
47
|
+
export type $formatBytes = typeof formatBytes
|
|
48
|
+
export type $formatTimeago = typeof formatTimeago
|
|
49
|
+
export type $formatDatetime = typeof formatDatetime
|
|
50
|
+
export type $formatDate = typeof formatDate
|
|
51
|
+
export type $getContrastingTextColor = typeof getContrastingTextColor
|
|
52
52
|
|
|
53
|
-
declare module
|
|
53
|
+
declare module 'vue' {
|
|
54
54
|
export interface ComponentCustomProperties {
|
|
55
|
-
$t: typeof i18next.t
|
|
56
|
-
$eventBus: Emitter<Events
|
|
57
|
-
$cropText: typeof cropText
|
|
58
|
-
$formatBytes: typeof formatBytes
|
|
59
|
-
$formatTimeago: typeof formatTimeago
|
|
60
|
-
$formatDatetime: typeof formatDatetime
|
|
61
|
-
$formatDate: typeof formatDate
|
|
62
|
-
$getContrastingTextColor: typeof getContrastingTextColor
|
|
63
|
-
$formatNumber: (value: number) => string
|
|
64
|
-
$router: VueRouter
|
|
65
|
-
$route: Route
|
|
55
|
+
$t: typeof i18next.t
|
|
56
|
+
$eventBus: Emitter<Events>
|
|
57
|
+
$cropText: typeof cropText
|
|
58
|
+
$formatBytes: typeof formatBytes
|
|
59
|
+
$formatTimeago: typeof formatTimeago
|
|
60
|
+
$formatDatetime: typeof formatDatetime
|
|
61
|
+
$formatDate: typeof formatDate
|
|
62
|
+
$getContrastingTextColor: typeof getContrastingTextColor
|
|
63
|
+
$formatNumber: (value: number) => string
|
|
64
|
+
$router: VueRouter
|
|
65
|
+
$route: Route
|
|
66
66
|
}
|
|
67
67
|
export interface GlobalComponents {
|
|
68
|
-
ClientOnly: typeof ClientOnly
|
|
68
|
+
ClientOnly: typeof ClientOnly
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
declare module
|
|
72
|
+
declare module '@vue/runtime-core' {
|
|
73
73
|
export interface ComponentCustomProperties {
|
|
74
|
-
$t: typeof i18next.t
|
|
75
|
-
$eventBus: Emitter<Events
|
|
76
|
-
$cropText: typeof cropText
|
|
77
|
-
$formatBytes: typeof formatBytes
|
|
78
|
-
$formatTimeago: typeof formatTimeago
|
|
79
|
-
$formatDatetime: typeof formatDatetime
|
|
80
|
-
$formatDate: typeof formatDate
|
|
81
|
-
$getContrastingTextColor: typeof getContrastingTextColor
|
|
82
|
-
$formatNumber: (value: number) => string
|
|
83
|
-
$router: VueRouter
|
|
84
|
-
$route: Route
|
|
74
|
+
$t: typeof i18next.t
|
|
75
|
+
$eventBus: Emitter<Events>
|
|
76
|
+
$cropText: typeof cropText
|
|
77
|
+
$formatBytes: typeof formatBytes
|
|
78
|
+
$formatTimeago: typeof formatTimeago
|
|
79
|
+
$formatDatetime: typeof formatDatetime
|
|
80
|
+
$formatDate: typeof formatDate
|
|
81
|
+
$getContrastingTextColor: typeof getContrastingTextColor
|
|
82
|
+
$formatNumber: (value: number) => string
|
|
83
|
+
$router: VueRouter
|
|
84
|
+
$route: Route
|
|
85
85
|
}
|
|
86
86
|
export interface GlobalComponents {
|
|
87
|
-
ClientOnly: typeof ClientOnly
|
|
87
|
+
ClientOnly: typeof ClientOnly
|
|
88
88
|
}
|
|
89
89
|
}
|