@fy-/fws-vue-core 3.0.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/dist/index.css +2 -0
- package/dist/index.js +5767 -0
- package/dist/src/components/fws/CmsArticleBoxed.vue.d.ts +32 -0
- package/dist/src/components/fws/CmsArticleBoxed.vue.d.ts.map +1 -0
- package/dist/src/components/fws/CmsArticleSingle.vue.d.ts +29 -0
- package/dist/src/components/fws/CmsArticleSingle.vue.d.ts.map +1 -0
- package/dist/src/components/fws/DataTable.vue.d.ts +52 -0
- package/dist/src/components/fws/DataTable.vue.d.ts.map +1 -0
- package/dist/src/components/fws/FilterData.vue.d.ts +15 -0
- package/dist/src/components/fws/FilterData.vue.d.ts.map +1 -0
- package/dist/src/components/fws/UserData.vue.d.ts +8 -0
- package/dist/src/components/fws/UserData.vue.d.ts.map +1 -0
- package/dist/src/components/fws/UserFlow.vue.d.ts +116 -0
- package/dist/src/components/fws/UserFlow.vue.d.ts.map +1 -0
- package/dist/src/components/fws/UserOAuth2.vue.d.ts +17 -0
- package/dist/src/components/fws/UserOAuth2.vue.d.ts.map +1 -0
- package/dist/src/components/fws/UserProfile.vue.d.ts +40 -0
- package/dist/src/components/fws/UserProfile.vue.d.ts.map +1 -0
- package/dist/src/components/fws/UserProfileStrict.vue.d.ts +12 -0
- package/dist/src/components/fws/UserProfileStrict.vue.d.ts.map +1 -0
- package/dist/src/components/ssr/ClientOnly.d.ts +4 -0
- package/dist/src/components/ssr/ClientOnly.d.ts.map +1 -0
- package/dist/src/components/ui/DefaultBreadcrumb.vue.d.ts +11 -0
- package/dist/src/components/ui/DefaultBreadcrumb.vue.d.ts.map +1 -0
- package/dist/src/components/ui/DefaultConfirm.vue.d.ts +81 -0
- package/dist/src/components/ui/DefaultConfirm.vue.d.ts.map +1 -0
- package/dist/src/components/ui/DefaultConfirmWithInput.vue.d.ts +81 -0
- package/dist/src/components/ui/DefaultConfirmWithInput.vue.d.ts.map +1 -0
- package/dist/src/components/ui/DefaultDropdown.vue.d.ts +35 -0
- package/dist/src/components/ui/DefaultDropdown.vue.d.ts.map +1 -0
- package/dist/src/components/ui/DefaultDropdownLink.vue.d.ts +23 -0
- package/dist/src/components/ui/DefaultDropdownLink.vue.d.ts.map +1 -0
- package/dist/src/components/ui/DefaultGallery.vue.d.ts +114 -0
- package/dist/src/components/ui/DefaultGallery.vue.d.ts.map +1 -0
- package/dist/src/components/ui/DefaultInput.vue.d.ts +61 -0
- package/dist/src/components/ui/DefaultInput.vue.d.ts.map +1 -0
- package/dist/src/components/ui/DefaultLoader.vue.d.ts +12 -0
- package/dist/src/components/ui/DefaultLoader.vue.d.ts.map +1 -0
- package/dist/src/components/ui/DefaultModal.vue.d.ts +36 -0
- package/dist/src/components/ui/DefaultModal.vue.d.ts.map +1 -0
- package/dist/src/components/ui/DefaultNotif.vue.d.ts +3 -0
- package/dist/src/components/ui/DefaultNotif.vue.d.ts.map +1 -0
- package/dist/src/components/ui/DefaultPaging.vue.d.ts +13 -0
- package/dist/src/components/ui/DefaultPaging.vue.d.ts.map +1 -0
- package/dist/src/components/ui/DefaultSidebar.vue.d.ts +29 -0
- package/dist/src/components/ui/DefaultSidebar.vue.d.ts.map +1 -0
- package/dist/src/components/ui/DefaultTagInput.vue.d.ts +34 -0
- package/dist/src/components/ui/DefaultTagInput.vue.d.ts.map +1 -0
- package/dist/src/components/ui/transitions/CollapseTransition.vue.d.ts +18 -0
- package/dist/src/components/ui/transitions/CollapseTransition.vue.d.ts.map +1 -0
- package/dist/src/components/ui/transitions/ExpandTransition.vue.d.ts +18 -0
- package/dist/src/components/ui/transitions/ExpandTransition.vue.d.ts.map +1 -0
- package/dist/src/components/ui/transitions/FadeTransition.vue.d.ts +18 -0
- package/dist/src/components/ui/transitions/FadeTransition.vue.d.ts.map +1 -0
- package/dist/src/components/ui/transitions/ScaleTransition.vue.d.ts +18 -0
- package/dist/src/components/ui/transitions/ScaleTransition.vue.d.ts.map +1 -0
- package/dist/src/components/ui/transitions/SlideTransition.vue.d.ts +21 -0
- package/dist/src/components/ui/transitions/SlideTransition.vue.d.ts.map +1 -0
- package/dist/src/composables/event-bus.d.ts +8 -0
- package/dist/src/composables/event-bus.d.ts.map +1 -0
- package/dist/src/composables/rest.d.ts +24 -0
- package/dist/src/composables/rest.d.ts.map +1 -0
- package/dist/src/composables/seo.d.ts +26 -0
- package/dist/src/composables/seo.d.ts.map +1 -0
- package/dist/src/composables/ssr.d.ts +24 -0
- package/dist/src/composables/ssr.d.ts.map +1 -0
- package/dist/src/composables/templating.d.ts +7 -0
- package/dist/src/composables/templating.d.ts.map +1 -0
- package/dist/src/composables/translations.d.ts +8 -0
- package/dist/src/composables/translations.d.ts.map +1 -0
- package/dist/src/index.d.ts +45 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/plugin.d.ts +3 -0
- package/dist/src/plugin.d.ts.map +1 -0
- package/dist/src/stores/serverRouter.d.ts +34 -0
- package/dist/src/stores/serverRouter.d.ts.map +1 -0
- package/dist/src/stores/user.d.ts +139 -0
- package/dist/src/stores/user.d.ts.map +1 -0
- package/dist/src/types.d.ts +48 -0
- package/dist/src/types.d.ts.map +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export { createFWS } from './plugin';
|
|
2
|
+
export { EVENT_BUS_KEY, useEventBus } from './composables/event-bus';
|
|
3
|
+
export type { Events } from './composables/event-bus';
|
|
4
|
+
export { useRest } from './composables/rest';
|
|
5
|
+
export type { APIPaging, APIResult } from './composables/rest';
|
|
6
|
+
export { useSeo } from './composables/seo';
|
|
7
|
+
export type { LazyHead } from './composables/seo';
|
|
8
|
+
export { initVueClient, initVueServer, isServerRendered } from './composables/ssr';
|
|
9
|
+
export type { SSRResult } from './composables/ssr';
|
|
10
|
+
export { cropText as cropTextFunction, formatBytes as formatBytesFunction, formatDate as formatDateFunction, formatDatetime as formatDatetimeFunction, formatTimeago as formatTimeagoFunction, getContrastingTextColor as getContrastingTextColorFunction, } from './composables/templating';
|
|
11
|
+
export { i18nextPromise, TRANSLATE_KEY, useTranslation } from './composables/translations';
|
|
12
|
+
export type { I18nextTranslate } from './composables/translations';
|
|
13
|
+
export { useServerRouter } from './stores/serverRouter';
|
|
14
|
+
export type { ServerRouterState } from './stores/serverRouter';
|
|
15
|
+
export { useUserCheck, useUserCheckAsync, useUserCheckAsyncSimple, useUserStore, } from './stores/user';
|
|
16
|
+
export { ClientOnly } from './components/ssr/ClientOnly';
|
|
17
|
+
export { default as DefaultBreadcrumb } from './components/ui/DefaultBreadcrumb.vue';
|
|
18
|
+
export { default as DefaultConfirm } from './components/ui/DefaultConfirm.vue';
|
|
19
|
+
export { default as DefaultConfirmWithInput } from './components/ui/DefaultConfirmWithInput.vue';
|
|
20
|
+
export { default as DefaultGallery } from './components/ui/DefaultGallery.vue';
|
|
21
|
+
export { default as DefaultDropdown } from './components/ui/DefaultDropdown.vue';
|
|
22
|
+
export { default as DefaultDropdownLink } from './components/ui/DefaultDropdownLink.vue';
|
|
23
|
+
export { default as DefaultInput } from './components/ui/DefaultInput.vue';
|
|
24
|
+
export { default as DefaultLoader } from './components/ui/DefaultLoader.vue';
|
|
25
|
+
export { default as DefaultModal } from './components/ui/DefaultModal.vue';
|
|
26
|
+
export { default as DefaultNotif } from './components/ui/DefaultNotif.vue';
|
|
27
|
+
export { default as DefaultPaging } from './components/ui/DefaultPaging.vue';
|
|
28
|
+
export { default as DefaultSidebar } from './components/ui/DefaultSidebar.vue';
|
|
29
|
+
export { default as DefaultTagInput } from './components/ui/DefaultTagInput.vue';
|
|
30
|
+
export { default as CmsArticleBoxed } from './components/fws/CmsArticleBoxed.vue';
|
|
31
|
+
export { default as CmsArticleSingle } from './components/fws/CmsArticleSingle.vue';
|
|
32
|
+
export { default as DataTable } from './components/fws/DataTable.vue';
|
|
33
|
+
export { default as FilterData } from './components/fws/FilterData.vue';
|
|
34
|
+
export { default as UserData } from './components/fws/UserData.vue';
|
|
35
|
+
export { default as UserFlow } from './components/fws/UserFlow.vue';
|
|
36
|
+
export { default as UserOAuth2 } from './components/fws/UserOAuth2.vue';
|
|
37
|
+
export { default as UserProfile } from './components/fws/UserProfile.vue';
|
|
38
|
+
export { default as UserProfileStrict } from './components/fws/UserProfileStrict.vue';
|
|
39
|
+
export { default as CollapseTransition } from './components/ui/transitions/CollapseTransition.vue';
|
|
40
|
+
export { default as ExpandTransition } from './components/ui/transitions/ExpandTransition.vue';
|
|
41
|
+
export { default as FadeTransition } from './components/ui/transitions/FadeTransition.vue';
|
|
42
|
+
export { default as ScaleTransition } from './components/ui/transitions/ScaleTransition.vue';
|
|
43
|
+
export { default as SlideTransition } from './components/ui/transitions/SlideTransition.vue';
|
|
44
|
+
export type { BreadcrumbLink, FilterDataItems, NavLink } from './types';
|
|
45
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAGpC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACpE,YAAY,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAClF,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EACL,QAAQ,IAAI,gBAAgB,EAC5B,WAAW,IAAI,mBAAmB,EAClC,UAAU,IAAI,kBAAkB,EAChC,cAAc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AwBlC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Router } from 'vue-router';
|
|
2
|
+
export interface ServerRouterState {
|
|
3
|
+
_router: any | null;
|
|
4
|
+
status: number;
|
|
5
|
+
redirect?: string;
|
|
6
|
+
results: Record<number, any | undefined>;
|
|
7
|
+
}
|
|
8
|
+
export declare const useServerRouter: import('pinia').StoreDefinition<"routerStore", ServerRouterState, {
|
|
9
|
+
currentRoute: (state: {
|
|
10
|
+
_router: any | null;
|
|
11
|
+
status: number;
|
|
12
|
+
redirect?: string | undefined;
|
|
13
|
+
results: Record<number, any | undefined>;
|
|
14
|
+
} & import('pinia').PiniaCustomStateProperties<ServerRouterState>) => any;
|
|
15
|
+
route: (state: {
|
|
16
|
+
_router: any | null;
|
|
17
|
+
status: number;
|
|
18
|
+
redirect?: string | undefined;
|
|
19
|
+
results: Record<number, any | undefined>;
|
|
20
|
+
} & import('pinia').PiniaCustomStateProperties<ServerRouterState>) => any;
|
|
21
|
+
}, {
|
|
22
|
+
setStatus(status: number): void;
|
|
23
|
+
_setRouter(_router: Router | null): void;
|
|
24
|
+
push(path: any, status?: number): any;
|
|
25
|
+
replace(path: any, status?: number): any;
|
|
26
|
+
go(delta: number): void;
|
|
27
|
+
back(): void;
|
|
28
|
+
forward(): void;
|
|
29
|
+
addResult(id: number, result: any): void;
|
|
30
|
+
hasResult(id: number): boolean;
|
|
31
|
+
getResult(id: number): any;
|
|
32
|
+
removeResult(id: number): void;
|
|
33
|
+
}>;
|
|
34
|
+
//# sourceMappingURL=serverRouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverRouter.d.ts","sourceRoot":"","sources":["../../../src/stores/serverRouter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAGxC,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,GAAG,GAAG,IAAI,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,SAAS,CAAC,CAAA;CACzC;AAED,eAAO,MAAM,eAAe;;iBANjB,GAAG,GAAG,IAAI;gBACX,MAAM;mBACH,MAAM;iBACR,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,SAAS,CAAC;;;iBAH/B,GAAG,GAAG,IAAI;gBACX,MAAM;mBACH,MAAM;iBACR,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,SAAS,CAAC;;;sBAgBpB,MAAM;wBAGJ,MAAM,GAAG,IAAI;eAGtB,GAAG;kBASA,GAAG;cASP,MAAM;;;kBAGF,MAAM,UAAU,GAAG;kBAOnB,MAAM;kBACN,MAAM;qBACH,MAAM;EAEzB,CAAA"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { User } from '@fy-/fws-types';
|
|
2
|
+
export interface UserStore {
|
|
3
|
+
user: User | null;
|
|
4
|
+
}
|
|
5
|
+
export declare const useUserStore: import('pinia').StoreDefinition<"userStore", UserStore, {
|
|
6
|
+
isAuth: (state: {
|
|
7
|
+
user: {
|
|
8
|
+
UUID: string;
|
|
9
|
+
CreatedAt: {
|
|
10
|
+
iso: string;
|
|
11
|
+
tz: string;
|
|
12
|
+
unix: number;
|
|
13
|
+
unixms: number;
|
|
14
|
+
us: number;
|
|
15
|
+
full?: number | undefined;
|
|
16
|
+
};
|
|
17
|
+
UpdatedAt: {
|
|
18
|
+
iso: string;
|
|
19
|
+
tz: string;
|
|
20
|
+
unix: number;
|
|
21
|
+
unixms: number;
|
|
22
|
+
us: number;
|
|
23
|
+
full?: number | undefined;
|
|
24
|
+
};
|
|
25
|
+
LoggedAt?: {
|
|
26
|
+
iso: string;
|
|
27
|
+
tz: string;
|
|
28
|
+
unix: number;
|
|
29
|
+
unixms: number;
|
|
30
|
+
us: number;
|
|
31
|
+
full?: number | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
Email: string;
|
|
34
|
+
Password: string;
|
|
35
|
+
Firstname?: string | null | undefined;
|
|
36
|
+
Lastname?: string | null | undefined;
|
|
37
|
+
Phone?: string | null | undefined;
|
|
38
|
+
Bio?: string | null | undefined;
|
|
39
|
+
RealmUUID: string;
|
|
40
|
+
Realm: {
|
|
41
|
+
UUID: string;
|
|
42
|
+
CreatedAt?: {
|
|
43
|
+
iso: string;
|
|
44
|
+
tz: string;
|
|
45
|
+
unix: number;
|
|
46
|
+
unixms: number;
|
|
47
|
+
us: number;
|
|
48
|
+
full?: number | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
UpdatedAt?: {
|
|
51
|
+
iso: string;
|
|
52
|
+
tz: string;
|
|
53
|
+
unix: number;
|
|
54
|
+
unixms: number;
|
|
55
|
+
us: number;
|
|
56
|
+
full?: number | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
Name: string;
|
|
59
|
+
DeletedAt?: {
|
|
60
|
+
iso: string;
|
|
61
|
+
tz: string;
|
|
62
|
+
unix: number;
|
|
63
|
+
unixms: number;
|
|
64
|
+
us: number;
|
|
65
|
+
full?: number | undefined;
|
|
66
|
+
} | null | undefined;
|
|
67
|
+
Deleted: boolean;
|
|
68
|
+
Locales: string[];
|
|
69
|
+
};
|
|
70
|
+
Roles?: {
|
|
71
|
+
Role: string;
|
|
72
|
+
RealmUUID: string;
|
|
73
|
+
}[] | undefined;
|
|
74
|
+
PatreonPledges?: Record<string, any> | undefined;
|
|
75
|
+
AcceptedTerms: boolean;
|
|
76
|
+
EnabledNotifications: boolean;
|
|
77
|
+
EnabledEmails: boolean;
|
|
78
|
+
EnabledTrainingFromMyData: boolean;
|
|
79
|
+
EnabledDarkMode: boolean;
|
|
80
|
+
EnabledAdultContent: boolean;
|
|
81
|
+
UserProfile?: {
|
|
82
|
+
UUID: string;
|
|
83
|
+
Username: string;
|
|
84
|
+
Slug: string;
|
|
85
|
+
Gender: string;
|
|
86
|
+
Bio: string;
|
|
87
|
+
Birthdate: {
|
|
88
|
+
iso: string;
|
|
89
|
+
tz: string;
|
|
90
|
+
unix: number;
|
|
91
|
+
unixms: number;
|
|
92
|
+
us: number;
|
|
93
|
+
full?: number | undefined;
|
|
94
|
+
};
|
|
95
|
+
PublicGender: boolean;
|
|
96
|
+
PublicBio: boolean;
|
|
97
|
+
PublicBirthdate: boolean;
|
|
98
|
+
HasUsernameAndSlug: boolean;
|
|
99
|
+
CreatedAt: {
|
|
100
|
+
iso: string;
|
|
101
|
+
tz: string;
|
|
102
|
+
unix: number;
|
|
103
|
+
unixms: number;
|
|
104
|
+
us: number;
|
|
105
|
+
full?: number | undefined;
|
|
106
|
+
};
|
|
107
|
+
UpdatedAt: {
|
|
108
|
+
iso: string;
|
|
109
|
+
tz: string;
|
|
110
|
+
unix: number;
|
|
111
|
+
unixms: number;
|
|
112
|
+
us: number;
|
|
113
|
+
full?: number | undefined;
|
|
114
|
+
};
|
|
115
|
+
AvatarUUID?: string | undefined;
|
|
116
|
+
UsernameChangedAt?: {
|
|
117
|
+
iso: string;
|
|
118
|
+
tz: string;
|
|
119
|
+
unix: number;
|
|
120
|
+
unixms: number;
|
|
121
|
+
us: number;
|
|
122
|
+
full?: number | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
PreviousSlug?: string | undefined;
|
|
125
|
+
} | undefined;
|
|
126
|
+
IsPremium: boolean;
|
|
127
|
+
UserService?: string | undefined;
|
|
128
|
+
IsDeleted?: boolean | undefined;
|
|
129
|
+
} | null;
|
|
130
|
+
} & import('pinia').PiniaCustomStateProperties<UserStore>) => boolean;
|
|
131
|
+
}, {
|
|
132
|
+
refreshUser(): Promise<void>;
|
|
133
|
+
logout(): Promise<boolean>;
|
|
134
|
+
setUser(user: User | null): void;
|
|
135
|
+
}>;
|
|
136
|
+
export declare function useUserCheckAsyncSimple(path?: string, redirectLink?: boolean): Promise<void>;
|
|
137
|
+
export declare function useUserCheckAsync(path?: string, redirectLink?: boolean): Promise<void>;
|
|
138
|
+
export declare function useUserCheck(path?: string, redirectLink?: boolean): void;
|
|
139
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/stores/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAO1C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAA;CAClB;AAMD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAGJ,OAAO;;;;kBAiCV,IAAI,GAAG,IAAI;EAE3B,CAAA;AAgBF,wBAAsB,uBAAuB,CAAC,IAAI,SAAW,EAAE,YAAY,UAAQ,iBASlF;AAED,wBAAsB,iBAAiB,CAAC,IAAI,SAAW,EAAE,YAAY,UAAQ,iBAiB5E;AAED,wBAAgB,YAAY,CAAC,IAAI,SAAW,EAAE,YAAY,UAAQ,QAkBjE"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { default as i18next } from 'i18next';
|
|
2
|
+
import { Emitter } from 'mitt';
|
|
3
|
+
import { Events } from './composables/event-bus';
|
|
4
|
+
import { cropText, formatBytes, formatDate, formatDatetime, formatTimeago, getContrastingTextColor } from './composables/templating';
|
|
5
|
+
export interface BreadcrumbLink {
|
|
6
|
+
name: string;
|
|
7
|
+
to?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface NavLink {
|
|
10
|
+
to: string;
|
|
11
|
+
isExternal?: boolean;
|
|
12
|
+
name: string;
|
|
13
|
+
childrens?: NavLink[];
|
|
14
|
+
icon?: any;
|
|
15
|
+
id?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface FilterDataItems {
|
|
18
|
+
label: string;
|
|
19
|
+
req: boolean;
|
|
20
|
+
uid: string;
|
|
21
|
+
type: string;
|
|
22
|
+
restValue?: string;
|
|
23
|
+
options?: any[][];
|
|
24
|
+
isHidden?: boolean;
|
|
25
|
+
default?: any | undefined;
|
|
26
|
+
formats?: Record<string, (value: any) => any>;
|
|
27
|
+
autocomplete?: (value: string) => Promise<any[]>;
|
|
28
|
+
formatRestValue?: (value: any) => any;
|
|
29
|
+
onChangeValue?: (form: any, value: any) => void;
|
|
30
|
+
focused?: boolean;
|
|
31
|
+
}
|
|
32
|
+
declare module 'vue' {
|
|
33
|
+
interface ComponentCustomProperties {
|
|
34
|
+
$t: typeof i18next.t;
|
|
35
|
+
$eventBus: Emitter<Events>;
|
|
36
|
+
$cropText: typeof cropText;
|
|
37
|
+
$formatBytes: typeof formatBytes;
|
|
38
|
+
$formatTimeago: typeof formatTimeago;
|
|
39
|
+
$formatDatetime: typeof formatDatetime;
|
|
40
|
+
$formatDate: typeof formatDate;
|
|
41
|
+
$getContrastingTextColor: typeof getContrastingTextColor;
|
|
42
|
+
$formatNumber: (value: number) => string;
|
|
43
|
+
}
|
|
44
|
+
interface GlobalComponents {
|
|
45
|
+
ClientOnly: typeof import('./components/ssr/ClientOnly').ClientOnly;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,KAAK,EACV,QAAQ,EACR,WAAW,EACX,UAAU,EACV,cAAc,EACd,aAAa,EACb,uBAAuB,EACxB,MAAM,0BAA0B,CAAA;AAEjC,MAAM,WAAW,cAAc;IAC7B,IAAI,EA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AE,OAAO,aAAa,CAAA;QACpC,eAAe,EAAE,OAAO,cAAc,CAAA;QACtC,WAAW,EAAE,OAAO,UAAU,CAAA;QAC9B,wBAAwB,EAAE,OAAO,uBAAuB,CAAA;QACxD,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;KACzC;IACD,UAAiB,gBAAgB;QAC/B,UAAU,EAAE,cAAc,6BAA6B,EAAE,UAAU,CAAA;KACpE;CACF"}
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fy-/fws-vue-core",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"author": "Florian 'Fy' Gasquez <m@fy.to>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"*.css",
|
|
20
|
+
"*.vue"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "vite build",
|
|
24
|
+
"type-check": "vue-tsc --noEmit --composite false",
|
|
25
|
+
"lint:check": "eslint src/"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@fy-/fws-js": ">=0.1.8",
|
|
29
|
+
"@fy-/fws-types": ">=0.1.7",
|
|
30
|
+
"@heroicons/vue": ">=2.1.0",
|
|
31
|
+
"@unhead/schema-org": ">=1.9.0",
|
|
32
|
+
"@unhead/ssr": ">=1.9.0",
|
|
33
|
+
"@unhead/vue": ">=1.9.0",
|
|
34
|
+
"@vue/server-renderer": ">=3.5.0",
|
|
35
|
+
"@vueuse/core": ">=12.0.0",
|
|
36
|
+
"i18next": ">=24.0.0",
|
|
37
|
+
"mitt": ">=3.0.0",
|
|
38
|
+
"pinia": ">=2.0.0 || >=3.0.0",
|
|
39
|
+
"timeago.js": ">=4.0.0",
|
|
40
|
+
"vue": ">=3.5.0",
|
|
41
|
+
"vue-router": ">=4.0.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@fy-/fws-js": "^0.1.8",
|
|
45
|
+
"@fy-/fws-types": "^0.1.7",
|
|
46
|
+
"@heroicons/vue": "^2.2.0",
|
|
47
|
+
"@unhead/schema-org": "1.11.20",
|
|
48
|
+
"@unhead/ssr": "1.11.20",
|
|
49
|
+
"@unhead/vue": "1.11.20",
|
|
50
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
51
|
+
"@vue/server-renderer": "^3.5.32",
|
|
52
|
+
"@vueuse/core": "^14.2.1",
|
|
53
|
+
"eslint": "^9.20.0",
|
|
54
|
+
"i18next": "^26.0.4",
|
|
55
|
+
"mitt": "^3.0.1",
|
|
56
|
+
"pinia": "^3.0.4",
|
|
57
|
+
"timeago.js": "^4.0.2",
|
|
58
|
+
"typescript": "^6.0.2",
|
|
59
|
+
"unhead": "1.11.20",
|
|
60
|
+
"vite": "^8.0.8",
|
|
61
|
+
"vite-plugin-dts": "^4.5.4",
|
|
62
|
+
"vue": "^3.5.32",
|
|
63
|
+
"vue-router": "^5.0.4",
|
|
64
|
+
"vue-tsc": "^3.2.6"
|
|
65
|
+
}
|
|
66
|
+
}
|