@fy-/fws-vue 2.1.6 → 2.1.7

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 (40) hide show
  1. package/components/fws/CmsArticleBoxed.vue +23 -20
  2. package/components/fws/CmsArticleSingle.vue +74 -68
  3. package/components/fws/DataTable.vue +132 -125
  4. package/components/fws/FilterData.vue +99 -101
  5. package/components/fws/UserData.vue +33 -32
  6. package/components/fws/UserFlow.vue +163 -155
  7. package/components/fws/UserOAuth2.vue +73 -72
  8. package/components/fws/UserProfile.vue +98 -101
  9. package/components/fws/UserProfileStrict.vue +65 -64
  10. package/components/ssr/ClientOnly.ts +7 -7
  11. package/components/ui/DefaultBreadcrumb.vue +13 -13
  12. package/components/ui/DefaultConfirm.vue +35 -34
  13. package/components/ui/DefaultDateSelection.vue +19 -17
  14. package/components/ui/DefaultDropdown.vue +25 -25
  15. package/components/ui/DefaultDropdownLink.vue +15 -14
  16. package/components/ui/DefaultGallery.vue +179 -168
  17. package/components/ui/DefaultInput.vue +121 -126
  18. package/components/ui/DefaultLoader.vue +17 -17
  19. package/components/ui/DefaultModal.vue +35 -33
  20. package/components/ui/DefaultNotif.vue +50 -52
  21. package/components/ui/DefaultPaging.vue +92 -95
  22. package/components/ui/DefaultSidebar.vue +29 -25
  23. package/components/ui/DefaultTagInput.vue +121 -119
  24. package/components/ui/transitions/CollapseTransition.vue +1 -1
  25. package/components/ui/transitions/ExpandTransition.vue +1 -1
  26. package/components/ui/transitions/FadeTransition.vue +1 -1
  27. package/components/ui/transitions/ScaleTransition.vue +1 -1
  28. package/components/ui/transitions/SlideTransition.vue +3 -3
  29. package/composables/event-bus.ts +10 -8
  30. package/composables/rest.ts +59 -56
  31. package/composables/seo.ts +106 -95
  32. package/composables/ssr.ts +64 -62
  33. package/composables/templating.ts +57 -57
  34. package/composables/translations.ts +13 -13
  35. package/env.d.ts +6 -4
  36. package/index.ts +101 -98
  37. package/package.json +7 -7
  38. package/stores/serverRouter.ts +25 -25
  39. package/stores/user.ts +79 -72
  40. 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 "./composables/templating";
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 "vue" {
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 "@vue/runtime-core" {
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
  }