sprof 0.0.66 → 0.0.68
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/core/helpers/index.d.ts +60 -7
- package/dist/core/helpers/ui/AdminUI.d.ts +1 -1
- package/dist/core/index.d.ts +7 -7
- package/dist/sprof.js +1031 -1029
- package/dist/sprof.umd.cjs +11 -11
- package/package.json +1 -1
|
@@ -3,11 +3,11 @@ import { Sizes } from '../types/Sizes';
|
|
|
3
3
|
import { Statuses } from '../types/Statuses';
|
|
4
4
|
import { default as Arrays } from './Arrays';
|
|
5
5
|
import { default as Axios } from './Axios';
|
|
6
|
-
import { default as BaseStore } from './BaseStore';
|
|
7
6
|
import { default as Cache } from './Cache';
|
|
8
7
|
import { default as CarouselSwipe } from './CarouselSwipe';
|
|
9
|
-
import { default as Hooks } from './Hooks';
|
|
10
8
|
import { default as Id } from './Id';
|
|
9
|
+
import { default as Phone } from '../classes/Phone';
|
|
10
|
+
import { default as BaseStore } from './BaseStore';
|
|
11
11
|
import { default as Color } from './Color';
|
|
12
12
|
import { default as CreateSortModels } from './CreateSortModels';
|
|
13
13
|
import { default as Cursor } from './Cursor';
|
|
@@ -15,7 +15,6 @@ import { default as DateMask } from './DateMask';
|
|
|
15
15
|
import { default as Dates } from './Dates';
|
|
16
16
|
import { default as Dragger } from './Dragger';
|
|
17
17
|
import { default as Extension } from './Extension';
|
|
18
|
-
import { default as Favourite } from './Favourite';
|
|
19
18
|
import { default as HttpClient } from './HttpClient';
|
|
20
19
|
import { default as MakeCarousel } from './MakeCarousel';
|
|
21
20
|
import { default as Period } from './Period';
|
|
@@ -30,10 +29,64 @@ import { default as Static } from './Static';
|
|
|
30
29
|
import { default as Strings } from './Strings';
|
|
31
30
|
import { default as Time } from './Time';
|
|
32
31
|
import { default as Timer } from './Timer';
|
|
33
|
-
import { default as Token } from './Token';
|
|
34
|
-
import { default as useConfirmLeavePage } from './useConfirmLeavePage';
|
|
35
32
|
import { default as validate } from './validate';
|
|
36
|
-
import { default as WaitElement } from './WaitElement';
|
|
37
33
|
import { default as WebSocketClient } from './WebSocketClient';
|
|
38
34
|
export { default as Classes } from './Classes';
|
|
39
|
-
export
|
|
35
|
+
export default abstract class H {
|
|
36
|
+
Arrays: typeof Arrays;
|
|
37
|
+
Axios: typeof Axios;
|
|
38
|
+
BaseStore: typeof BaseStore;
|
|
39
|
+
Phone: typeof Phone;
|
|
40
|
+
Cache: typeof Cache;
|
|
41
|
+
CarouselSwipe: typeof CarouselSwipe;
|
|
42
|
+
Color: typeof Color;
|
|
43
|
+
CreateSortModels: typeof CreateSortModels;
|
|
44
|
+
Cursor: typeof Cursor;
|
|
45
|
+
DateMask: typeof DateMask;
|
|
46
|
+
Dates: typeof Dates;
|
|
47
|
+
Dragger: typeof Dragger;
|
|
48
|
+
Extension: typeof Extension;
|
|
49
|
+
Favourite: {
|
|
50
|
+
addToFavourite: (domain: string, id: string) => void;
|
|
51
|
+
removeFromFavourite: (domain: string, id: string) => void;
|
|
52
|
+
setFavourite: (domain: string, id: (string | undefined)[]) => void;
|
|
53
|
+
isFavourite: (domain: string, id: string) => boolean;
|
|
54
|
+
clearFavourite: () => void;
|
|
55
|
+
};
|
|
56
|
+
FTSP: typeof FTSP;
|
|
57
|
+
Hooks: {
|
|
58
|
+
onBeforeMount: (f: (param?: string | import('../classes/filters/FilterQuery').default | undefined) => void | Promise<void>, options?: import('./Hooks').IHooksOptions | undefined) => void;
|
|
59
|
+
onBeforeRouteLeave: (submitFunction?: CallableFunction | undefined) => void;
|
|
60
|
+
submit: (submitFunction?: CallableFunction | undefined) => () => Promise<void>;
|
|
61
|
+
};
|
|
62
|
+
HttpClient: typeof HttpClient;
|
|
63
|
+
Id: typeof Id;
|
|
64
|
+
MakeCarousel: typeof MakeCarousel;
|
|
65
|
+
Period: typeof Period;
|
|
66
|
+
PhoneService: typeof PhoneService;
|
|
67
|
+
Rating: typeof Rating;
|
|
68
|
+
Router: typeof Router;
|
|
69
|
+
RouterGuard: typeof RouterGuard;
|
|
70
|
+
Scheduler: typeof Scheduler;
|
|
71
|
+
Scroll: typeof Scroll;
|
|
72
|
+
Sizes: typeof Sizes;
|
|
73
|
+
Sorter: typeof Sorter;
|
|
74
|
+
Static: typeof Static;
|
|
75
|
+
Statuses: typeof Statuses;
|
|
76
|
+
Strings: typeof Strings;
|
|
77
|
+
Time: typeof Time;
|
|
78
|
+
Timer: typeof Timer;
|
|
79
|
+
Token: {
|
|
80
|
+
isAuth: () => boolean;
|
|
81
|
+
setTokens: (tokenObj: import('../interfaces/ITokens').default) => void;
|
|
82
|
+
getAccessToken: () => string | null;
|
|
83
|
+
getRefreshToken: () => string | null;
|
|
84
|
+
getUserId: () => any;
|
|
85
|
+
clearTokens: () => void;
|
|
86
|
+
getUser: () => any;
|
|
87
|
+
updateHuman: (human: import('../classes').Human) => void;
|
|
88
|
+
};
|
|
89
|
+
validate: typeof validate;
|
|
90
|
+
WaitElement: (selector: string) => Promise<unknown>;
|
|
91
|
+
WebSocketClient: typeof WebSocketClient;
|
|
92
|
+
}
|
|
@@ -26,7 +26,7 @@ declare class AdminUI {
|
|
|
26
26
|
title: any;
|
|
27
27
|
buttons: {
|
|
28
28
|
text: string | undefined;
|
|
29
|
-
type?: import('
|
|
29
|
+
type?: import('../../types/Statuses').Statuses | undefined;
|
|
30
30
|
condition?: boolean | undefined;
|
|
31
31
|
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
32
32
|
id: string;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { default as H } from './helpers/index';
|
|
1
2
|
import * as C from '@/core/classes/index';
|
|
2
|
-
import * as H from '@/core/helpers/index';
|
|
3
3
|
import * as UI from '@/core/helpers/ui/index';
|
|
4
4
|
import * as S from '@/core/store/index';
|
|
5
5
|
export default abstract class PF {
|
|
@@ -70,7 +70,7 @@ export default abstract class PF {
|
|
|
70
70
|
title: any;
|
|
71
71
|
buttons: {
|
|
72
72
|
text: string | undefined;
|
|
73
|
-
type?:
|
|
73
|
+
type?: import('./types/Statuses').Statuses | undefined;
|
|
74
74
|
condition?: boolean | undefined;
|
|
75
75
|
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
76
76
|
id: string;
|
|
@@ -95,12 +95,12 @@ export default abstract class PF {
|
|
|
95
95
|
Submit: () => void;
|
|
96
96
|
Cancel: () => void;
|
|
97
97
|
hide: () => void;
|
|
98
|
-
type:
|
|
98
|
+
type: import('./types/Statuses').Statuses;
|
|
99
99
|
text: string;
|
|
100
100
|
title: string;
|
|
101
101
|
GetText: () => string;
|
|
102
102
|
GetTitle: () => string;
|
|
103
|
-
GetType: () =>
|
|
103
|
+
GetType: () => import('./types/Statuses').Statuses;
|
|
104
104
|
Info: (m: string | import('./helpers/Message').MessageOpts) => void;
|
|
105
105
|
Success: (m: string | import('./helpers/Message').MessageOpts) => void;
|
|
106
106
|
Error: (m: string | import('./helpers/Message').MessageOpts) => void;
|
|
@@ -122,16 +122,16 @@ export default abstract class PF {
|
|
|
122
122
|
duration: number;
|
|
123
123
|
showMessage: (m: string | (import('./helpers/Message').MessageOpts & {
|
|
124
124
|
duration: number;
|
|
125
|
-
}), t:
|
|
125
|
+
}), t: import('./types/Statuses').Statuses) => void;
|
|
126
126
|
GetDuration: () => number;
|
|
127
127
|
Dev: () => void;
|
|
128
128
|
Save: () => void;
|
|
129
|
-
type:
|
|
129
|
+
type: import('./types/Statuses').Statuses;
|
|
130
130
|
text: string;
|
|
131
131
|
title: string;
|
|
132
132
|
GetText: () => string;
|
|
133
133
|
GetTitle: () => string;
|
|
134
|
-
GetType: () =>
|
|
134
|
+
GetType: () => import('./types/Statuses').Statuses;
|
|
135
135
|
Info: (m: string | import('./helpers/Message').MessageOpts) => void;
|
|
136
136
|
Success: (m: string | import('./helpers/Message').MessageOpts) => void;
|
|
137
137
|
Error: (m: string | import('./helpers/Message').MessageOpts) => void;
|